@luizleon/sf.prefeiturasp.vuecomponents 6.0.9 → 6.0.11
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.
- package/dist/sf.prefeiturasp.vuecomponents.css +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +4012 -3629
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +33 -29
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/components/drawer/Drawer.vue.d.ts +4 -0
- package/dist/types/components/drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/types/components/internal/ConfirmPopover.vue.d.ts.map +1 -1
- package/dist/types/components/layout/Account.vue.d.ts +24 -0
- package/dist/types/components/layout/Account.vue.d.ts.map +1 -0
- package/dist/types/components/layout/Login.vue.d.ts.map +1 -1
- package/dist/types/components/layout/LoginLogout.vue.d.ts +7 -0
- package/dist/types/components/layout/LoginLogout.vue.d.ts.map +1 -0
- package/dist/types/components/layout/Main.vue.d.ts +74 -6
- package/dist/types/components/layout/Main.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugin/configSF.d.ts.map +1 -1
- package/dist/types/symbols/appInject.d.ts +2 -1
- package/dist/types/symbols/appInject.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(x,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@luizleon/sf.prefeiturasp.vueauth"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@luizleon/sf.prefeiturasp.vueauth","vue-router"],r):(x=typeof globalThis<"u"?globalThis:x||self,r(x.SfPrefeituraSPVueComponents={},x.Vue,x.SfPrefeituraSPVueAuth,x.VueRouter))})(this,function(x,r,Un,da){"use strict";class It{constructor(e){this.retorno=e??""}retorno;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 pn(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 i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return n>=100?n:100}const jo=r.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{target=null;wrapper=null;inner=null;showTimeout=null;Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${pn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(a=>a.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(a){this.showTimeout&&clearTimeout(this.showTimeout),this.target=a.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 a=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${a.top+a.height-l}px`,c.style.left=`${a.left+a.width-l}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+l}px`)}FixWidth(){const a=this.wrapper;if(!a)return;a.style.width="fit-content",a.style.wordBreak="normal",a.style.whiteSpace="nowrap";const c=window.innerWidth/2;a.clientWidth>c&&(a.style.width=`${c}px`,a.style.wordBreak="break-word",a.style.whiteSpace="normal")}OutOfBottom(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:a[0]||(a[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:a[1]||(a[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:a[2]||(a[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(i.$slots,"default")],32))}}),Pe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},ma={},fa={class:"sf-loading-circle"};function pa(t,e){return r.openBlock(),r.createElementBlock("div",fa,e[0]||(e[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Ho=Pe(ma,[["render",pa]]),ha=["data-size"],ga=["disabled","data-p-loading","tabindex"],ya=["data-color"],Ae=Pe(r.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=r.computed(()=>n.tooltip?jo:"div"),i=r.computed(()=>new It(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),a=r.computed(()=>new It(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,u)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(i.value),onClick:c},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.style),class:r.normalizeClass(a.value)},[n.loading?(r.openBlock(),r.createBlock(Ho,{key:0})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",r.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}),r.toDisplayString(n.icon),17,ga),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ya)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,ha)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),va={class:"sf-tab-navigation"},ba=["data-active"],Ca=["href","onClick"],wa=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),i=r.ref(!1),a=r.ref(!1);function c(s=!1){const u=n.value.clientWidth;n.value.scrollLeft+=s?-u:u}function l(){const s=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,a.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,u)=>{const d=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",va,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:u[0]||(u[0]=f=>c(!0))},u[2]||(u[2]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),r.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,f=>(r.openBlock(),r.createBlock(d,{to:f.route,custom:!0},{default:r.withCtx(({navigate:h,isActive:p})=>[r.createElementVNode("li",{"data-active":p},[r.renderSlot(s.$slots,"item",{item:f,navigate:h,isActive:p},()=>[r.createElementVNode("a",{href:f.route,class:r.normalizeClass({active:p}),onClick:h},r.toDisplayString(f.text),11,Ca)])],8,ba)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:a.value}]),onClick:u[1]||(u[1]=f=>c())},u[3]||(u[3]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Fo=Pe(r.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,i)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},i[0]||(i[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),ka=["id","name","disabled","data-color","form","type","data-p-loading"],Pt=Pe(r.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 It(`${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 i=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,l)=>n.visible?(r.openBlock(),r.createElementBlock("button",{key:0,id:n.id,name:n.name,class:r.normalizeClass(o()),style:r.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:i},[n.loading?(r.openBlock(),r.createBlock(Fo,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(Ae,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:r.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[r.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,ka)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-b8d46db3"]]),Sa={class:"sf-drawer-title"},_a={class:"sf-drawer-action"},zo=r.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,i=r.useSlots(),a=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function u(){a.value=!1}function d(y){if(!n.dismissableMask)return;const T=y.target;T&&T.id===s&&(a.value=!1)}function f(y){(y.key==="Escape"||y.code==="Escape")&&u()}function h(){o("open"),window.document.addEventListener("keydown",f,!0)}function p(y){l.value=pn()+1,y.style.zIndex=`${l.value}`}function v(y){o("before-close"),y?.parentElement?.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",f,!0),c.value=!1}function k(){return new It("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 r.watch(()=>n.visible,y=>{a.value=y}),r.watch(()=>a.value,y=>{o("update:visible",y),y&&(c.value=!0)}),(y,T)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(k()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:r.withModifiers(d,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:p,onEnter:h,onBeforeLeave:v,onAfterLeave:w},{default:r.withCtx(()=>[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(y.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(y.$slots,"title",{},()=>[r.createElementVNode("div",Sa,r.toDisplayString(n.title),1)]),T[0]||(T[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",_a,[r.renderSlot(y.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createVNode(Ae,{button:!0,icon:"close",onClick:u})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(y.$slots,"default")],2),r.unref(i).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(y.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:u})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),Ea=["data-icon"],Ta=r.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=r.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=r.computed(()=>new It("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(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,Ea))}});function Ia(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Pa(t,e){if(t&&e){let n=o=>{Ia(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Wn(t,e){if(t&&e){let 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 Uo(t){return t?Math.abs(t.scrollLeft):0}function Aa(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function xa(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ba(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&xa(t))}function At(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function hn(t,e={}){if(At(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")s.push(u);else if(d==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([h,p])=>o==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);s=f.length?s.concat(f.filter(h=>!!h)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?hn(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function $a(t,e={},...n){{let o=document.createElement(t);return hn(o,e),o.append(...n),o}}function ke(t,e){return At(t)?t.matches(e)?t:t.querySelector(e):null}function xt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Bt(t,e){if(At(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Wo(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 Oa(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||Uo(document.documentElement)||Uo(document.body)||0)}}return{top:"auto",left:"auto"}}function La(t,e){return t?t.offsetHeight:0}function Ko(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 Na(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ma(t,e="",n){At(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ue(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Kn(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),i=Array.isArray(e),a,c,l;if(o&&i){if(c=t.length,c!=e.length)return!1;for(a=c;a--!==0;)if(!Kn(t[a],e[a],n))return!1;return!0}if(o!=i)return!1;let s=t instanceof Date,u=e instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==e.getTime();let d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();let h=Object.keys(t);if(c=h.length,c!==Object.keys(e).length)return!1;for(a=c;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,h[a]))return!1;for(a=c;a--!==0;)if(l=h[a],!Kn(t[l],e[l],n))return!1;return!0}function Da(t,e){return Kn(t,e)}function Gn(t){return typeof t=="function"&&"call"in t&&"apply"in t}function $(t){return!Ue(t)}function Go(t,e){return null}function ct(t,e,n){return n?Go()===Go():Da(t,e)}function We(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function qo(t,e){let n;if($(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Z(t,...e){return Gn(t)?t(...e):t}function ue(t,e=!0){return typeof t=="string"&&(e||t!=="")}function xe(t){return ue(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function qn(t,e="",n={}){let o=xe(e).split("."),i=o.shift();if(i){if(We(t)){let a=Object.keys(t).find(c=>xe(c)===i)||"";return qn(Z(t[a],n),o.join("."),n)}return}return Z(t,n)}function Yo(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Ra(t){return $(t)&&!isNaN(t)}function Va(t=""){return $(t)&&t.length===1&&!!t.match(/\S| /)}function tt(t,e){if(e){let 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,":").trim()}function ja(t){return ue(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Xo(t){return ue(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Zo(){let 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.forEach(i=>{i(n)})},clear(){t.clear()}}}var gn={};function Ha(t="pui_id_"){return Object.hasOwn(gn,t)||(gn[t]=0),gn[t]++,`${t}${gn[t]}`}var Fa=Object.defineProperty,za=Object.defineProperties,Ua=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Qo=Object.prototype.propertyIsEnumerable,er=(t,e,n)=>e in t?Fa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Se=(t,e)=>{for(var n in e||(e={}))Jo.call(e,n)&&er(t,n,e[n]);if(yn)for(var n of yn(e))Qo.call(e,n)&&er(t,n,e[n]);return t},Yn=(t,e)=>za(t,Ua(e)),Le=(t,e)=>{var n={};for(var o in t)Jo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&yn)for(var o of yn(t))e.indexOf(o)<0&&Qo.call(t,o)&&(n[o]=t[o]);return n},Wa=Zo(),ie=Wa,Ot=/{([^}]*)}/g,tr=/(\d+\s+[\+\-\*\/]\s+\d+)/g,nr=/var\([^)]+\)/g;function or(t){return ue(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function Ka(t){return We(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function Ga(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Xn(t="",e=""){return Ga(`${ue(t,!1)&&ue(e,!1)?`${t}-`:t}${e}`)}function rr(t="",e=""){return`--${Xn(t,e)}`}function qa(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function ir(t,e="",n="",o=[],i){if(ue(t)){let a=t.trim();if(qa(a))return;if(tt(a,Ot)){let c=a.replaceAll(Ot,l=>{let s=l.replace(/{|}/g,"").split(".").filter(u=>!o.some(d=>tt(u,d)));return`var(${rr(n,Xo(s.join("-")))}${$(i)?`, ${i}`:""})`});return tt(c.replace(nr,"0"),tr)?`calc(${c})`:c}return a}else if(Ra(t))return t}function Ya(t,e,n){ue(e,!1)&&t.push(`${e}:${n};`)}function ut(t,e){return t?`${t}{${e}}`:""}function ar(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],u=0,d="",f=null,h=0;for(;u<=c.length;){let p=c[u];if((p==='"'||p==="'"||p==="`")&&c[u-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||u===c.length)&&h===0)){let v=d.trim();v.startsWith("dt(")?s.push(ar(v,l)):s.push(o(v)),d="",u++;continue}p!==void 0&&(d+=p),u++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let i=[],a=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")a.push(c),c+=2;else if(t[c]===")"&&a.length>0){let l=a.pop();a.length===0&&i.push([l,c])}if(!i.length)return t;for(let c=i.length-1;c>=0;c--){let[l,s]=i[c],u=t.slice(l+3,s),d=n(u,e),f=e(...d);t=t.slice(0,l)+f+t.slice(s+1)}return t}var nt=(...t)=>Xa(H.getTheme(),...t),Xa=(t={},e,n,o)=>{if(e){let{variable:i,options:a}=H.defaults||{},{prefix:c,transform:l}=t?.options||a||{},s=tt(e,Ot)?e:`{${e}}`;return o==="value"||Ue(o)&&l==="strict"?H.getTokenValue(e):ir(s,void 0,c,[i.excludedKeyRegex],n)}return""};function vn(t,...e){if(t instanceof Array){let n=t.reduce((o,i,a)=>{var c;return o+i+((c=Z(e[a],{dt:nt}))!=null?c:"")},"");return ar(n,nt)}return Z(t,{dt:nt})}function Za(t,e={}){let n=H.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:d,path:f}=s.pop();for(let h in d){let p=d[h],v=Ka(p),w=tt(h,a)?Xn(f):Xn(f,Xo(h));if(We(v))s.push({node:v,path:w});else{let k=rr(w),y=ir(v,w,o,[a]);Ya(l,k,y);let T=w;o&&T.startsWith(o+"-")&&(T=T.slice(o.length+1)),c.push(T.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:c,declarations:u,css:ut(i,u)}}var _e={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let 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(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Za(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c,l,s,u,d,f;let{preset:h,options:p}=e,v,w,k,y,T,I,b;if($(h)&&p.transform!=="strict"){let{primitive:_,semantic:U,extend:X}=h,be=U||{},{colorScheme:te}=be,Ce=Le(be,["colorScheme"]),P=X||{},{colorScheme:j}=P,ne=Le(P,["colorScheme"]),ce=te||{},{dark:Ie}=ce,Xe=Le(ce,["dark"]),De=j||{},{dark:Re}=De,Ze=Le(De,["dark"]),we=$(_)?this._toVariables({primitive:_},p):{},V=$(Ce)?this._toVariables({semantic:Ce},p):{},$e=$(Xe)?this._toVariables({light:Xe},p):{},W=$(Ie)?this._toVariables({dark:Ie},p):{},Ve=$(ne)?this._toVariables({semantic:ne},p):{},F=$(Ze)?this._toVariables({light:Ze},p):{},Je=$(Re)?this._toVariables({dark:Re},p):{},[sn,Nn]=[(a=we.declarations)!=null?a:"",we.tokens],[ln,Mn]=[(c=V.declarations)!=null?c:"",V.tokens||[]],[Dn,Qe]=[(l=$e.declarations)!=null?l:"",$e.tokens||[]],[bt,je]=[(s=W.declarations)!=null?s:"",W.tokens||[]],[cn,un]=[(u=Ve.declarations)!=null?u:"",Ve.tokens||[]],[et,Ct]=[(d=F.declarations)!=null?d:"",F.tokens||[]],[wt,Rn]=[(f=Je.declarations)!=null?f:"",Je.tokens||[]];v=this.transformCSS(t,sn,"light","variable",p,o,i),w=Nn;let Vn=this.transformCSS(t,`${ln}${Dn}`,"light","variable",p,o,i),Oo=this.transformCSS(t,`${bt}`,"dark","variable",p,o,i);k=`${Vn}${Oo}`,y=[...new Set([...Mn,...Qe,...je])];let dn=this.transformCSS(t,`${cn}${et}color-scheme:light`,"light","variable",p,o,i),lt=this.transformCSS(t,`${wt}color-scheme:dark`,"dark","variable",p,o,i);T=`${dn}${lt}`,I=[...new Set([...un,...Ct,...Rn])],b=Z(h.css,{dt:nt})}return{primitive:{css:v,tokens:w},semantic:{css:k,tokens:y},global:{css:T,tokens:I},style:b}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:a,selector:c}){var l,s,u;let d,f,h;if($(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),v=e,{colorScheme:w,extend:k,css:y}=v,T=Le(v,["colorScheme","extend","css"]),I=k||{},{colorScheme:b}=I,_=Le(I,["colorScheme"]),U=w||{},{dark:X}=U,be=Le(U,["dark"]),te=b||{},{dark:Ce}=te,P=Le(te,["dark"]),j=$(T)?this._toVariables({[p]:Se(Se({},T),_)},n):{},ne=$(be)?this._toVariables({[p]:Se(Se({},be),P)},n):{},ce=$(X)?this._toVariables({[p]:Se(Se({},X),Ce)},n):{},[Ie,Xe]=[(l=j.declarations)!=null?l:"",j.tokens||[]],[De,Re]=[(s=ne.declarations)!=null?s:"",ne.tokens||[]],[Ze,we]=[(u=ce.declarations)!=null?u:"",ce.tokens||[]],V=this.transformCSS(p,`${Ie}${De}`,"light","variable",n,i,a,c),$e=this.transformCSS(p,Ze,"dark","variable",n,i,a,c);d=`${V}${$e}`,f=[...new Set([...Xe,...Re,...we])],h=Z(y,{dt:nt})}return{css:d,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var a;let{preset:c,options:l}=e,s=(a=c?.components)==null?void 0:a[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c;let l=t.replace("-directive",""),{preset:s,options:u}=e,d=((a=s?.components)==null?void 0:a[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:d,options:u,params:n,set:o,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:i}=e;return i?`@layer ${Z(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){let c=this.getCommon({name:t,theme:e,params:n,set:i,defaults:a}),l=Object.entries(o).reduce((s,[u,d])=>s.push(`${u}="${d}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[u,d])=>{if(We(d)&&Object.hasOwn(d,"css")){let f=$t(d.css),h=`${u}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){var c;let l={name:t,theme:e,params:n,set:i,defaults:a},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,u=Object.entries(o).reduce((d,[f,h])=>d.push(`${f}="${h}"`)&&d,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${$t(s)}</style>`:""},createTokens(t={},e,n="",o="",i={}){let a=function(l,s={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};u.push(this.path),s.name=this.path,s.binding||(s.binding={});let d=this.value;if(typeof this.value=="string"&&Ot.test(this.value)){let f=this.value.trim().replace(Ot,h=>{var p;let v=h.slice(1,-1),w=this.tokens[v];if(!w)return console.warn(`Token not found for path: ${v}`),"__UNRESOLVED__";let k=w.computed(l,s,u);return Array.isArray(k)&&k.length===2?`light-dark(${k[0].value},${k[1].value})`:(p=k?.value)!=null?p:"__UNRESOLVED__"});d=tr.test(f.replace(nr,"0"))?`calc(${f})`:f}return Ue(s.binding)&&delete s.binding,u.pop(),{colorScheme:l,path:this.path,paths:s,value:d.includes("__UNRESOLVED__")?void 0:d}},c=(l,s,u)=>{Object.entries(l).forEach(([d,f])=>{let h=tt(d,e.variable.excludedKeyRegex)?s:s?`${s}.${or(d)}`:or(d),p=u?`${u}.${d}`:d;We(f)?c(f,h,p):(i[h]||(i[h]={paths:[],computed:(v,w={},k=[])=>{if(i[h].paths.length===1)return i[h].paths[0].computed(i[h].paths[0].scheme,w.binding,k);if(v&&v!=="none")for(let y=0;y<i[h].paths.length;y++){let T=i[h].paths[y];if(T.scheme===v)return T.computed(v,w.binding,k)}return i[h].paths.map(y=>y.computed(y.scheme,w[y.scheme],k))}}),i[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:a,tokens:i}))})};return c(t,n,o),i},getTokenValue(t,e,n){var o;let i=(l=>l.split(".").filter(s=>!tt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[i])==null?void 0:o.computed(a)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let u=s,{colorScheme:d}=u,f=Le(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?ut($(e)?`${t}${e},${t} ${e}`:t,o):ut(t,ut(e??":root",o))},transformCSS(t,e,n,o,i={},a,c,l){if($(e)){let{cssLayer:s}=i;if(o!=="style"){let u=this.getColorSchemeOption(i,c);e=n==="dark"?u.reduce((d,{type:f,selector:h})=>($(h)&&(d+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,l,f,e)),d),""):ut(l??":root",e)}if(s){let u={name:"primeui"};We(s)&&(u.name=Z(s.name,{name:t,type:o})),$(u.name)&&(e=ut(`@layer ${u.name}`,e),a?.layerNames(u.name))}return e}return""}},H={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Yn(Se({},e),{options:Se(Se({},this.defaults.options),e.options)}),this._tokens=_e.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),ie.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Yn(Se({},this.theme),{preset:t}),this._tokens=_e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ie.emit("preset:change",t),ie.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Yn(Se({},this.theme),{options:t}),this.clearLoadedStyleNames(),ie.emit("options:change",t),ie.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return _e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return _e.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetD(n)},getCustomPreset(t="",e,n,o){let i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPreset(i)},getLayerOrderCSS(t=""){return _e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return _e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return _e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return _e.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),ie.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ie.emit("theme:load"))}},Ke={_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()}},Ja=`
|
|
1
|
+
(function(A,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@luizleon/sf.prefeiturasp.vueauth"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@luizleon/sf.prefeiturasp.vueauth","vue-router"],r):(A=typeof globalThis<"u"?globalThis:A||self,r(A.SfPrefeituraSPVueComponents={},A.Vue,A.SfPrefeituraSPVueAuth,A.VueRouter))})(this,(function(A,r,ft,Vi){"use strict";class Nt{constructor(e){this.retorno=e??""}retorno;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 hn(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 a=getComputedStyle(o).zIndex;return+a==+a?+a:0}));return n>=100?n:100}const er=r.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{target=null;wrapper=null;inner=null;showTimeout=null;Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${hn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(i=>i.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.showTimeout&&clearTimeout(this.showTimeout),this.target=i.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 i=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${i.top+i.height-l}px`,c.style.left=`${i.left+i.width-l}px`,this.OutOfBottom()&&(c.style.top=`${i.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${i.left-c.clientWidth+l}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:i[1]||(i[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:i[2]||(i[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(a.$slots,"default")],32))}}),_e=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},ji={},Hi={class:"sf-loading-circle"};function zi(t,e){return r.openBlock(),r.createElementBlock("div",Hi,[...e[0]||(e[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)])])}const tr=_e(ji,[["render",zi]]),Fi=["data-size"],Ui=["disabled","data-p-loading","tabindex"],Wi=["data-color"],we=_e(r.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=r.computed(()=>n.tooltip?er:"div"),a=r.computed(()=>new Nt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=r.computed(()=>new Nt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(a.value),onClick:c},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.style),class:r.normalizeClass(i.value)},[n.loading?(r.openBlock(),r.createBlock(tr,{key:0})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",r.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}),r.toDisplayString(n.icon),17,Ui),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,Wi)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,Fi)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),Ki={class:"sf-tab-navigation"},Gi=["data-active"],qi=["href","onClick"],Yi=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),a=r.ref(!1),i=r.ref(!1);function c(s=!1){const d=n.value.clientWidth;n.value.scrollLeft+=s?-d:d}function l(){const s=n.value.scrollWidth-n.value.clientWidth;a.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,d)=>{const u=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Ki,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:a.value}]),onClick:d[0]||(d[0]=m=>c(!0))},[...d[2]||(d[2]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)])],2),r.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,m=>(r.openBlock(),r.createBlock(u,{to:m.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:m,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:m.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(m.text),11,qi)])],8,Gi)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=m=>c())},[...d[3]||(d[3]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)])],2)])}}}),nr=_e(r.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,a)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},[...a[0]||(a[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)])],2)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),Xi=["id","name","disabled","data-color","form","type","data-p-loading"],pt=_e(r.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 Nt(`${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 a=c=>{n.disabled||n.loading||i("click",c)},i=e;return(c,l)=>n.visible?(r.openBlock(),r.createElementBlock("button",{key:0,id:n.id,name:n.name,class:r.normalizeClass(o()),style:r.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:a},[n.loading?(r.openBlock(),r.createBlock(nr,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(we,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:r.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[r.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,Xi)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-b8d46db3"]]),Zi={class:"sf-drawer-title"},Ji={class:"sf-drawer-action"},Qn=r.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","before-open","open","before-close","close"],setup(t,{emit:e}){const n=t,o=e,a=r.useSlots(),i=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function u(b){if(!n.dismissableMask)return;const S=b.target;S&&S.id===s&&(i.value=!1)}function m(b){(b.key==="Escape"||b.code==="Escape")&&d()}function p(){o("open"),window.document.addEventListener("keydown",m,!0)}function h(b){o("before-open"),l.value=hn()+1,b.style.zIndex=`${l.value}`}function w(b){o("before-close"),b?.parentElement?.classList.add("sf-mask-overlay-leave")}function k(){o("close"),window.document.removeEventListener("keydown",m,!0),c.value=!1}function C(){return new Nt("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 r.watch(()=>n.visible,b=>{i.value=b}),r.watch(()=>i.value,b=>{o("update:visible",b),b&&(c.value=!0)}),(b,S)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(C()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:u},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:w,onAfterLeave:k},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(b.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(b.$slots,"title",{},()=>[r.createElementVNode("div",Zi,r.toDisplayString(n.title),1)]),S[0]||(S[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",Ji,[r.renderSlot(b.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createVNode(we,{button:!0,icon:"close",onClick:d})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(b.$slots,"default")],2),r.unref(a).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(b.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:d})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),Qi=["data-icon"],es=r.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=r.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=r.computed(()=>new Nt("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(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(a.$slots,"default")],10,Qi))}});function ts(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function ns(t,e){if(t&&e){let n=o=>{ts(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function eo(t,e){if(t&&e){let 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 or(t){return t?Math.abs(t.scrollLeft):0}function os(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function rs(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function as(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&rs(t))}function Mt(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function gn(t,e={}){if(Mt(t)){let n=(o,a)=>{var i,c;let l=(i=t?.$attrs)!=null&&i[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[a].flat().reduce((s,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")s.push(d);else if(u==="object"){let m=Array.isArray(d)?n(o,d):Object.entries(d).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=m.length?s.concat(m.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,a])=>{if(a!=null){let i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),a):o==="p-bind"||o==="pBind"?gn(t,a):(a=o==="class"?[...new Set(n("class",a))].join(" ").trim():o==="style"?n("style",a).join(";").trim():a,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=a),t.setAttribute(o,a))}})}}function is(t,e={},...n){{let o=document.createElement(t);return gn(o,e),o.append(...n),o}}function Ee(t,e){return Mt(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Rt(t,e){if(Mt(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function rr(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 ss(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||or(document.documentElement)||or(document.body)||0)}}return{top:"auto",left:"auto"}}function ls(t,e){return t?t.offsetHeight:0}function ar(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 cs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ds(t,e="",n){Mt(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ke(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function to(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),a=Array.isArray(e),i,c,l;if(o&&a){if(c=t.length,c!=e.length)return!1;for(i=c;i--!==0;)if(!to(t[i],e[i],n))return!1;return!0}if(o!=a)return!1;let s=t instanceof Date,d=e instanceof Date;if(s!=d)return!1;if(s&&d)return t.getTime()==e.getTime();let u=t instanceof RegExp,m=e instanceof RegExp;if(u!=m)return!1;if(u&&m)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(i=c;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[i]))return!1;for(i=c;i--!==0;)if(l=p[i],!to(t[l],e[l],n))return!1;return!0}function us(t,e){return to(t,e)}function no(t){return typeof t=="function"&&"call"in t&&"apply"in t}function $(t){return!Ke(t)}function ir(t,e){return null}function ht(t,e,n){return n?ir()===ir():us(t,e)}function Ge(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function sr(t,e){let n;if($(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ee(t,...e){return no(t)?t(...e):t}function me(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Pe(t){return me(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function oo(t,e="",n={}){let o=Pe(e).split("."),a=o.shift();if(a){if(Ge(t)){let i=Object.keys(t).find(c=>Pe(c)===a)||"";return oo(ee(t[i],n),o.join("."),n)}return}return ee(t,n)}function lr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function ms(t){return $(t)&&!isNaN(t)}function fs(t=""){return $(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Vt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function ps(t){return me(t,!1)?t[0].toUpperCase()+t.slice(1):t}function cr(t){return me(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function dr(){let 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.forEach(a=>{a(n)})},clear(){t.clear()}}}var bn={};function hs(t="pui_id_"){return Object.hasOwn(bn,t)||(bn[t]=0),bn[t]++,`${t}${bn[t]}`}var gs=Object.defineProperty,bs=Object.defineProperties,ws=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,fr=(t,e,n)=>e in t?gs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e)=>{for(var n in e||(e={}))ur.call(e,n)&&fr(t,n,e[n]);if(wn)for(var n of wn(e))mr.call(e,n)&&fr(t,n,e[n]);return t},ro=(t,e)=>bs(t,ws(e)),Ne=(t,e)=>{var n={};for(var o in t)ur.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&mr.call(t,o)&&(n[o]=t[o]);return n},vs=dr(),ae=vs,jt=/{([^}]*)}/g,pr=/(\d+\s+[\+\-\*\/]\s+\d+)/g,hr=/var\([^)]+\)/g;function gr(t){return me(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function ys(t){return Ge(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function ks(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ao(t="",e=""){return ks(`${me(t,!1)&&me(e,!1)?`${t}-`:t}${e}`)}function br(t="",e=""){return`--${ao(t,e)}`}function Cs(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function wr(t,e="",n="",o=[],a){if(me(t)){let i=t.trim();if(Cs(i))return;if(nt(i,jt)){let c=i.replaceAll(jt,l=>{let s=l.replace(/{|}/g,"").split(".").filter(d=>!o.some(u=>nt(d,u)));return`var(${br(n,cr(s.join("-")))}${$(a)?`, ${a}`:""})`});return nt(c.replace(hr,"0"),pr)?`calc(${c})`:c}return i}else if(ms(t))return t}function Ss(t,e,n){me(e,!1)&&t.push(`${e}:${n};`)}function gt(t,e){return t?`${t}{${e}}`:""}function vr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],d=0,u="",m=null,p=0;for(;d<=c.length;){let h=c[d];if((h==='"'||h==="'"||h==="`")&&c[d-1]!=="\\"&&(m=m===h?null:h),!m&&(h==="("&&p++,h===")"&&p--,(h===","||d===c.length)&&p===0)){let w=u.trim();w.startsWith("dt(")?s.push(vr(w,l)):s.push(o(w)),u="",d++;continue}h!==void 0&&(u+=h),d++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let a=[],i=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")i.push(c),c+=2;else if(t[c]===")"&&i.length>0){let l=i.pop();i.length===0&&a.push([l,c])}if(!a.length)return t;for(let c=a.length-1;c>=0;c--){let[l,s]=a[c],d=t.slice(l+3,s),u=n(d,e),m=e(...u);t=t.slice(0,l)+m+t.slice(s+1)}return t}var ot=(...t)=>_s(H.getTheme(),...t),_s=(t={},e,n,o)=>{if(e){let{variable:a,options:i}=H.defaults||{},{prefix:c,transform:l}=t?.options||i||{},s=nt(e,jt)?e:`{${e}}`;return o==="value"||Ke(o)&&l==="strict"?H.getTokenValue(e):wr(s,void 0,c,[a.excludedKeyRegex],n)}return""};function vn(t,...e){if(t instanceof Array){let n=t.reduce((o,a,i)=>{var c;return o+a+((c=ee(e[i],{dt:ot}))!=null?c:"")},"");return vr(n,ot)}return ee(t,{dt:ot})}function Es(t,e={}){let n=H.defaults.variable,{prefix:o=n.prefix,selector:a=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:u,path:m}=s.pop();for(let p in u){let h=u[p],w=ys(h),k=nt(p,i)?ao(m):ao(m,cr(p));if(Ge(w))s.push({node:w,path:k});else{let C=br(k),b=wr(w,k,o,[i]);Ss(l,C,b);let S=k;o&&S.startsWith(o+"-")&&(S=S.slice(o.length+1)),c.push(S.replace(/-/g,"."))}}}let d=l.join("");return{value:l,tokens:c,declarations:d,css:gt(a,d)}}var Te={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,:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let 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(a=>a.resolve(n)).find(a=>a.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Es(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c,l,s,d,u,m;let{preset:p,options:h}=e,w,k,C,b,S,B,v;if($(p)&&h.transform!=="strict"){let{primitive:E,semantic:U,extend:J}=p,ke=U||{},{colorScheme:ne}=ke,Ce=Ne(ke,["colorScheme"]),I=J||{},{colorScheme:V}=I,oe=Ne(I,["colorScheme"]),ue=ne||{},{dark:Ae}=ue,Ze=Ne(ue,["dark"]),Ve=V||{},{dark:je}=Ve,Je=Ne(Ve,["dark"]),Se=$(E)?this._toVariables({primitive:E},h):{},R=$(Ce)?this._toVariables({semantic:Ce},h):{},Le=$(Ze)?this._toVariables({light:Ze},h):{},W=$(Ae)?this._toVariables({dark:Ae},h):{},He=$(oe)?this._toVariables({semantic:oe},h):{},z=$(Je)?this._toVariables({light:Je},h):{},Qe=$(je)?this._toVariables({dark:je},h):{},[cn,Un]=[(i=Se.declarations)!=null?i:"",Se.tokens],[dn,Wn]=[(c=R.declarations)!=null?c:"",R.tokens||[]],[Kn,et]=[(l=Le.declarations)!=null?l:"",Le.tokens||[]],[Tt,ze]=[(s=W.declarations)!=null?s:"",W.tokens||[]],[un,mn]=[(d=He.declarations)!=null?d:"",He.tokens||[]],[tt,It]=[(u=z.declarations)!=null?u:"",z.tokens||[]],[At,Gn]=[(m=Qe.declarations)!=null?m:"",Qe.tokens||[]];w=this.transformCSS(t,cn,"light","variable",h,o,a),k=Un;let qn=this.transformCSS(t,`${dn}${Kn}`,"light","variable",h,o,a),Go=this.transformCSS(t,`${Tt}`,"dark","variable",h,o,a);C=`${qn}${Go}`,b=[...new Set([...Wn,...et,...ze])];let fn=this.transformCSS(t,`${un}${tt}color-scheme:light`,"light","variable",h,o,a),ut=this.transformCSS(t,`${At}color-scheme:dark`,"dark","variable",h,o,a);S=`${fn}${ut}`,B=[...new Set([...mn,...It,...Gn])],v=ee(p.css,{dt:ot})}return{primitive:{css:w,tokens:k},semantic:{css:C,tokens:b},global:{css:S,tokens:B},style:v}},getPreset({name:t="",preset:e={},options:n,params:o,set:a,defaults:i,selector:c}){var l,s,d;let u,m,p;if($(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),w=e,{colorScheme:k,extend:C,css:b}=w,S=Ne(w,["colorScheme","extend","css"]),B=C||{},{colorScheme:v}=B,E=Ne(B,["colorScheme"]),U=k||{},{dark:J}=U,ke=Ne(U,["dark"]),ne=v||{},{dark:Ce}=ne,I=Ne(ne,["dark"]),V=$(S)?this._toVariables({[h]:xe(xe({},S),E)},n):{},oe=$(ke)?this._toVariables({[h]:xe(xe({},ke),I)},n):{},ue=$(J)?this._toVariables({[h]:xe(xe({},J),Ce)},n):{},[Ae,Ze]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[Ve,je]=[(s=oe.declarations)!=null?s:"",oe.tokens||[]],[Je,Se]=[(d=ue.declarations)!=null?d:"",ue.tokens||[]],R=this.transformCSS(h,`${Ae}${Ve}`,"light","variable",n,a,i,c),Le=this.transformCSS(h,Je,"dark","variable",n,a,i,c);u=`${R}${Le}`,m=[...new Set([...Ze,...je,...Se])],p=ee(b,{dt:ot})}return{css:u,tokens:m,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:a}){var i;let{preset:c,options:l}=e,s=(i=c?.components)==null?void 0:i[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:a})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:a}){var i,c;let l=t.replace("-directive",""),{preset:s,options:d}=e,u=((i=s?.components)==null?void 0:i[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:u,options:d,params:n,set:o,defaults:a})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:a}=e;return a?`@layer ${ee(a.order||a.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){let c=this.getCommon({name:t,theme:e,params:n,set:a,defaults:i}),l=Object.entries(o).reduce((s,[d,u])=>s.push(`${d}="${u}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[d,u])=>{if(Ge(u)&&Object.hasOwn(u,"css")){let m=Vt(u.css),p=`${d}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${m}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:a,defaults:i}){var c;let l={name:t,theme:e,params:n,set:a,defaults:i},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,d=Object.entries(o).reduce((u,[m,p])=>u.push(`${m}="${p}"`)&&u,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Vt(s)}</style>`:""},createTokens(t={},e,n="",o="",a={}){let i=function(l,s={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};d.push(this.path),s.name=this.path,s.binding||(s.binding={});let u=this.value;if(typeof this.value=="string"&&jt.test(this.value)){let m=this.value.trim().replace(jt,p=>{var h;let w=p.slice(1,-1),k=this.tokens[w];if(!k)return console.warn(`Token not found for path: ${w}`),"__UNRESOLVED__";let C=k.computed(l,s,d);return Array.isArray(C)&&C.length===2?`light-dark(${C[0].value},${C[1].value})`:(h=C?.value)!=null?h:"__UNRESOLVED__"});u=pr.test(m.replace(hr,"0"))?`calc(${m})`:m}return Ke(s.binding)&&delete s.binding,d.pop(),{colorScheme:l,path:this.path,paths:s,value:u.includes("__UNRESOLVED__")?void 0:u}},c=(l,s,d)=>{Object.entries(l).forEach(([u,m])=>{let p=nt(u,e.variable.excludedKeyRegex)?s:s?`${s}.${gr(u)}`:gr(u),h=d?`${d}.${u}`:u;Ge(m)?c(m,p,h):(a[p]||(a[p]={paths:[],computed:(w,k={},C=[])=>{if(a[p].paths.length===1)return a[p].paths[0].computed(a[p].paths[0].scheme,k.binding,C);if(w&&w!=="none")for(let b=0;b<a[p].paths.length;b++){let S=a[p].paths[b];if(S.scheme===w)return S.computed(w,k.binding,C)}return a[p].paths.map(b=>b.computed(b.scheme,k[b.scheme],C))}}),a[p].paths.push({path:h,value:m,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:a}))})};return c(t,n,o),a},getTokenValue(t,e,n){var o;let a=(l=>l.split(".").filter(s=>!nt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[a])==null?void 0:o.computed(i)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let d=s,{colorScheme:u}=d,m=Ne(d,["colorScheme"]);return l[u]=m,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?gt($(e)?`${t}${e},${t} ${e}`:t,o):gt(t,gt(e??":root,:host",o))},transformCSS(t,e,n,o,a={},i,c,l){if($(e)){let{cssLayer:s}=a;if(o!=="style"){let d=this.getColorSchemeOption(a,c);e=n==="dark"?d.reduce((u,{type:m,selector:p})=>($(p)&&(u+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,m,e)),u),""):gt(l??":root,:host",e)}if(s){let d={name:"primeui"};Ge(s)&&(d.name=ee(s.name,{name:t,type:o})),$(d.name)&&(e=gt(`@layer ${d.name}`,e),i?.layerNames(d.name))}return e}return""}},H={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=ro(xe({},e),{options:xe(xe({},this.defaults.options),e.options)}),this._tokens=Te.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}),ae.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=ro(xe({},this.theme),{preset:t}),this._tokens=Te.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ae.emit("preset:change",t),ae.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=ro(xe({},this.theme),{options:t}),this.clearLoadedStyleNames(),ae.emit("options:change",t),ae.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 Te.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Te.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Te.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Te.getPresetD(n)},getCustomPreset(t="",e,n,o){let a={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Te.getPreset(a)},getLayerOrderCSS(t=""){return Te.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return Te.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Te.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Te.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),ae.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ae.emit("theme:load"))}},qe={_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()}},xs=`
|
|
2
2
|
*,
|
|
3
3
|
::before,
|
|
4
4
|
::after {
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
background: transparent;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
`;function
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
124
|
+
`;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 yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function kr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yr(Object(n),!0).forEach(function(o){Ts(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ts(t,e,n){return(e=Is(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Is(t){var e=As(t,"string");return Ht(e)=="symbol"?e:e+""}function As(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)}function Ps(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r.getCurrentInstance()&&r.getCurrentInstance().components?r.onMounted(t):e?t():r.nextTick(t)}var $s=0;function Bs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),a=r.ref(null),i=cs()?window.document:void 0,c=e.document,l=c===void 0?i:c,s=e.immediate,d=s===void 0?!0:s,u=e.manual,m=u===void 0?!1:u,p=e.name,h=p===void 0?"style_".concat(++$s):p,w=e.id,k=w===void 0?void 0:w,C=e.media,b=C===void 0?void 0:C,S=e.nonce,B=S===void 0?void 0:S,v=e.first,E=v===void 0?!1:v,U=e.onMounted,J=U===void 0?void 0:U,ke=e.onUpdated,ne=ke===void 0?void 0:ke,Ce=e.onLoad,I=Ce===void 0?void 0:Ce,V=e.props,oe=V===void 0?{}:V,ue=function(){},Ae=function(je){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var Se=kr(kr({},oe),Je),R=Se.name||h,Le=Se.id||k,W=Se.nonce||B;a.value=l.querySelector('style[data-primevue-style-id="'.concat(R,'"]'))||l.getElementById(Le)||l.createElement("style"),a.value.isConnected||(o.value=je||t,gn(a.value,{type:"text/css",id:Le,media:b,nonce:W}),E?l.head.prepend(a.value):l.head.appendChild(a.value),ds(a.value,"data-primevue-style-id",R),gn(a.value,Se),a.value.onload=function(He){return I?.(He,{name:R})},J?.(R)),!n.value&&(ue=r.watch(o,function(He){a.value.textContent=He,ne?.(R)},{immediate:!0}),n.value=!0)}},Ze=function(){!l||!n.value||(ue(),as(a.value)&&l.head.removeChild(a.value),n.value=!1,a.value=null)};return d&&!m&&Ps(Ae),{id:k,name:h,el:a,css:o,unload:Ze,load:Ae,isLoaded:r.readonly(n)}}function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}var Cr,Sr,_r,Er;function xr(t,e){return Ms(t)||Ns(t,e)||Os(t,e)||Ls()}function Ls(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Os(t,e){if(t){if(typeof t=="string")return Tr(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)?Tr(t,e):void 0}}function Tr(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 Ns(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Ms(t){if(Array.isArray(t))return t}function Ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function io(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ir(Object(n),!0).forEach(function(o){Ds(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ds(t,e,n){return(e=Rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rs(t){var e=Vs(t,"string");return zt(e)=="symbol"?e:e+""}function Vs(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(zt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var js=function(e){var n=e.dt;return`
|
|
126
126
|
.p-hidden-accessible {
|
|
127
127
|
border: 0;
|
|
128
128
|
clip: rect(0 0 0 0);
|
|
@@ -141,8 +141,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
141
141
|
overflow: hidden;
|
|
142
142
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
143
143
|
}
|
|
144
|
-
`)},
|
|
145
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(t,e){if(t){if(typeof t=="string")return br(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)?br(t,e):void 0}}function br(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 vs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Cr(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(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function N(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){Rt(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 Rt(t,e,n){return(e=bs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bs(t){var e=Cs(t,"string");return Mt(e)=="symbol"?e:e+""}function Cs(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Mt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Cn={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){ie.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ie.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return o._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,o,i,a,c,l,s,u,d,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=h?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=v||p)===null||i===void 0||(i=i.hooks)===null||i===void 0||(a=i.onBeforeCreate)===null||a===void 0||a.call(i);var w=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,k=w?(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,y=w?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=y||k)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d),this.$attrSelector=hs(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=ke(At(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=N({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),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?.(),o?.()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return Gn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){Ke.isStyleNameLoaded("base")||(q.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ke.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ke.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(gr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ke.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);$(e)&&q.load(e,N({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,i,a=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},c=a.primitive,l=a.semantic,s=a.global,u=a.style;q.load(c?.css,N({name:"primitive-variables"},this.$styleOptions)),q.load(l?.css,N({name:"semantic-variables"},this.$styleOptions)),q.load(s?.css,N({name:"global-variables"},this.$styleOptions)),q.loadStyle(N({name:"global-style"},this.$styleOptions),u),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var d,f,h,p,v=((d=this.$style)===null||d===void 0||(f=d.getComponentTheme)===null||f===void 0?void 0:f.call(d))||{},w=v.css,k=v.style;(h=this.$style)===null||h===void 0||h.load(w,N({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(N({name:"".concat(this.$style.name,"-style")},this.$styleOptions),k),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var y,T,I=(y=this.$style)===null||y===void 0||(T=y.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(y);q.load(I,N({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,a=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=a.css,l=(i=this.$style)===null||i===void 0?void 0:i.load(c,N({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(){};Ke.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){ie.off("theme:change",this._loadCoreStyles),ie.off("theme:change",this._load),ie.off("theme:change",this._themeScopedListener)},_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 qn(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]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!i[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,h=a?c?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,p=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,N(N({},i),{},{global:h||{}})),v=this._getPTDatasets(o);return u||!u&&p?f?this._mergeProps(f,h,p,v):N(N(N({},h),p),v):N(N({},p),v)},_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),i=1;i<n;i++)o[i-1]=arguments[i];return r.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]:"",i="data-pc-",a=o==="root"&&$((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&N(N({},o==="root"&&N(N(Rt({},"".concat(i,"name"),xe(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Rt({},"".concat(i,"extend"),xe(this.$.type.name))),{},Rt({},"".concat(this.$attrSelector),""))),{},Rt({},"".concat(i,"section"),xe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ue(e)||Yo(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,a=function(l){var s,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=i?i(l):l,f=xe(o),h=xe(n.$name);return(s=u?f!==h?d?.[f]:void 0:d?.[f])!==null&&s!==void 0?s:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,o,i){var a=function(w){return n(w,o,i)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,h=a(e.originalValue),p=a(e.value);return h===void 0&&p===void 0?void 0:ue(p)?p:ue(h)?h:u||!u&&p?f?this._mergeProps(f,h,p):N(N({},h),p):p}return a(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,N(N({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return i?.hasOwnProperty("id")&&((e=i.id)!==null&&e!==void 0||(i.id=this.$id)),i},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,N({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,N(N({},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 i=this._getOptionValue(this.$style.inlineStyles,e,N(N({},this.$params),o)),a=this._getOptionValue(gr.inlineStyles,e,N(N({},this.$params),o));return[a,i]}}},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 Z(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,N({},n.$params))||Z(o,N({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(o){var i=Dt(o,1),a=i[0];return n?.includes(a)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return N(N({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle: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?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Dt(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Dt(n,2),i=o[0],a=o[1],c=i.split(":"),l=gs(c),s=l.slice(1);return s?.reduce(function(u,d,f,h){return!u[d]&&(u[d]=f===h.length-1?a:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Dt(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Dt(n,2),i=o[0],a=o[1];return e[i]=a,e},{})}}},ws=`
|
|
144
|
+
`)},Hs={},zs={},Z={name:"base",css:js,style:xs,classes:Hs,inlineStyles:zs,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},a=o(vn(Cr||(Cr=yn(["",""])),e));return $(a)?Bs(Vt(a),io({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return H.transformCSS(n.name||e.name,"".concat(a).concat(vn(Sr||(Sr=yn(["",""])),o)))})},getCommonTheme:function(e){return H.getCommon(this.name,e)},getComponentTheme:function(e){return H.getComponent(this.name,e)},getDirectiveTheme:function(e){return H.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return H.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return H.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=ee(this.css,{dt:ot})||"",a=Vt(vn(_r||(_r=yn(["","",""])),o,e)),i=Object.entries(n).reduce(function(c,l){var s=xr(l,2),d=s[0],u=s[1];return c.push("".concat(d,'="').concat(u,'"'))&&c},[]).join(" ");return $(a)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(a,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return H.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[H.getStyleSheet(this.name,e,n)];if(this.style){var a=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=vn(Er||(Er=yn(["",""])),ee(this.style,{dt:ot})),c=Vt(H.transformCSS(a,i)),l=Object.entries(n).reduce(function(s,d){var u=xr(d,2),m=u[0],p=u[1];return s.push("".concat(m,'="').concat(p,'"'))&&s},[]).join(" ");$(c)&&o.push('<style type="text/css" data-primevue-style-id="'.concat(a,'" ').concat(l,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return io(io({},this),{},{css:void 0,style:void 0},e)}};function Fs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var Ar=Z.extend({name:"common"});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 Us(t){return Lr(t)||Ws(t)||$r(t)||Pr()}function Ws(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ut(t,e){return Lr(t)||Ks(t,e)||$r(t,e)||Pr()}function Pr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
145
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $r(t,e){if(t){if(typeof t=="string")return Br(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)?Br(t,e):void 0}}function Br(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 Ks(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Lr(t){if(Array.isArray(t))return t}function Or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function O(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){Wt(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 Wt(t,e,n){return(e=Gs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gs(t){var e=qs(t,"string");return Ft(e)=="symbol"?e:e+""}function qs(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 kn={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){ae.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ae.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return o._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,o,a,i,c,l,s,d,u,m,p=(e=this.pt)===null||e===void 0?void 0:e._usept,h=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,w=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(a=w||h)===null||a===void 0||(a=a.hooks)===null||a===void 0||(i=a.onBeforeCreate)===null||i===void 0||i.call(a);var k=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,C=k?(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,b=k?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=b||C)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(m=u.onBeforeCreate)===null||m===void 0||m.call(u),this.$attrSelector=Fs(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Ee(Mt(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=O({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),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?.(),o?.()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return no(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){qe.isStyleNameLoaded("base")||(Z.loadCSS(this.$styleOptions),this._loadGlobalStyles(),qe.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!qe.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Ar.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),qe.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);$(e)&&Z.load(e,O({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,a,i=((o=this.$style)===null||o===void 0||(a=o.getCommonTheme)===null||a===void 0?void 0:a.call(o))||{},c=i.primitive,l=i.semantic,s=i.global,d=i.style;Z.load(c?.css,O({name:"primitive-variables"},this.$styleOptions)),Z.load(l?.css,O({name:"semantic-variables"},this.$styleOptions)),Z.load(s?.css,O({name:"global-variables"},this.$styleOptions)),Z.loadStyle(O({name:"global-style"},this.$styleOptions),d),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,m,p,h,w=((u=this.$style)===null||u===void 0||(m=u.getComponentTheme)===null||m===void 0?void 0:m.call(u))||{},k=w.css,C=w.style;(p=this.$style)===null||p===void 0||p.load(k,O({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(O({name:"".concat(this.$style.name,"-style")},this.$styleOptions),C),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var b,S,B=(b=this.$style)===null||b===void 0||(S=b.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(b);Z.load(B,O({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,a,i=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,l=(a=this.$style)===null||a===void 0?void 0:a.load(c,O({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){ae.off("theme:change",this._loadCoreStyles),ae.off("theme:change",this._load),ae.off("theme:change",this._themeScopedListener)},_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 oo(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]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!a[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,u=l.mergeProps,m=u===void 0?!1:u,p=i?c?this._useGlobalPT(this._getPTClassValue,o,a):this._useDefaultPT(this._getPTClassValue,o,a):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,O(O({},a),{},{global:p||{}})),w=this._getPTDatasets(o);return d||!d&&h?m?this._mergeProps(m,p,h,w):O(O(O({},p),h),w):O(O({},h),w)},_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),a=1;a<n;a++)o[a-1]=arguments[a];return r.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]:"",a="data-pc-",i=o==="root"&&$((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&O(O({},o==="root"&&O(O(Wt({},"".concat(a,"name"),Pe(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Wt({},"".concat(a,"extend"),Pe(this.$.type.name))),{},Wt({},"".concat(this.$attrSelector),""))),{},Wt({},"".concat(a,"section"),Pe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return me(e)||lr(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,i=function(l){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=a?a(l):l,m=Pe(o),p=Pe(n.$name);return(s=d?m!==p?u?.[m]:void 0:u?.[m])!==null&&s!==void 0?s:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,o,a){var i=function(k){return n(k,o,a)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,d=s===void 0?!0:s,u=l.mergeProps,m=u===void 0?!1:u,p=i(e.originalValue),h=i(e.value);return p===void 0&&h===void 0?void 0:me(h)?h:me(p)?p:d||!d&&h?m?this._mergeProps(m,p,h):O(O({},p),h):h}return i(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,O(O({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return a?.hasOwnProperty("id")&&((e=a.id)!==null&&e!==void 0||(a.id=this.$id)),a},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,O({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,O(O({},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 a=this._getOptionValue(this.$style.inlineStyles,e,O(O({},this.$params),o)),i=this._getOptionValue(Ar.inlineStyles,e,O(O({},this.$params),o));return[i,a]}}},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 ee(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,O({},n.$params))||ee(o,O({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(o){var a=Ut(o,1),i=a[0];return n?.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return O(O({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle: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?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ut(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1],c=a.split(":"),l=Us(c),s=l.slice(1);return s?.reduce(function(d,u,m,p){return!d[u]&&(d[u]=m===p.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ut(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Ut(n,2),a=o[0],i=o[1];return e[a]=i,e},{})}}},Ys=`
|
|
146
146
|
.p-icon {
|
|
147
147
|
display: inline-block;
|
|
148
148
|
vertical-align: baseline;
|
|
@@ -174,7 +174,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
174
174
|
transform: rotate(359deg);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,Xs=Z.extend({name:"baseicon",css:Ys});function Kt(t){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(t)}function Nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function Mr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nr(Object(n),!0).forEach(function(o){Zs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Zs(t,e,n){return(e=Js(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Js(t){var e=Qs(t,"string");return Kt(e)=="symbol"?e:e+""}function Qs(t,e){if(Kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Kt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Dr={name:"BaseIcon",extends:kn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Xs,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Ke(this.label);return Mr(Mr({},!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})}}},so={name:"ChevronDownIcon",extends:Dr};function el(t){return rl(t)||ol(t)||nl(t)||tl()}function tl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
178
|
+
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 lo(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(t,e):void 0}}function ol(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rl(t){if(Array.isArray(t))return lo(t)}function lo(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 al(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),el(e[0]||(e[0]=[r.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)])),16)}so.render=al;var co={name:"ChevronRightIcon",extends:Dr};function il(t){return dl(t)||cl(t)||ll(t)||sl()}function sl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ll(t,e){if(t){if(typeof t=="string")return uo(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)?uo(t,e):void 0}}function cl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dl(t){if(Array.isArray(t))return uo(t)}function uo(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 ul(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),il(e[0]||(e[0]=[r.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)])),16)}co.render=ul;var ml=`
|
|
178
180
|
.p-panelmenu {
|
|
179
181
|
display: flex;
|
|
180
182
|
flex-direction: column;
|
|
@@ -333,8 +335,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
333
335
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
334
336
|
color: dt('panelmenu.submenu.icon.focus.color');
|
|
335
337
|
}
|
|
336
|
-
`,
|
|
337
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $s(t,e){if(t){if(typeof t=="string")return Tr(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)?Tr(t,e):void 0}}function Tr(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 Os(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Ls(t){if(Array.isArray(t))return t}function Ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ir(Object(n),!0).forEach(function(o){eo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function eo(t,e,n){return(e=Ns(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ns(t){var e=Ms(t,"string");return jt(e)=="symbol"?e:e+""}function Ms(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 B={_getMeta:function(){return[We(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Z(We(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,i,a;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(a=n.ctx)===null||a===void 0||(a=a.appContext)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.globalProperties)===null||a===void 0?void 0:a.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:qn,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var T=B._getOptionValue.apply(B,arguments);return ue(T)||Yo(T)?{class:T}:T},u=((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)||{},d=u.mergeSections,f=d===void 0?!0:d,h=u.mergeProps,p=h===void 0?!1:h,v=l?B._useDefaultPT(o,o.defaultPT(),s,a,c):void 0,w=B._usePT(o,B._getPT(i,o.$name),s,a,D(D({},c),{},{global:v||{}})),k=B._getPTDatasets(o,a);return f||!f&&w?p?B._mergeProps(o,p,v,w,k):D(D(D({},v),w),k):D(D({},w),k)},_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 D(D({},n==="root"&&eo({},"".concat(o,"name"),xe(e.$name))),{},eo({},"".concat(o,"section"),xe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,s=o?o(c):c,u=xe(n);return(l=s?.[u])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(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,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=function(k){return o(k,i,a)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=s.mergeSections,d=u===void 0?!0:u,f=s.mergeProps,h=f===void 0?!1:f,p=c(n.originalValue),v=c(n.value);return p===void 0&&v===void 0?void 0:ue(v)?v:ue(p)?p:d||!d&&v?h?B._mergeProps(e,h,p,v):D(D({},p),v):v}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return B._usePT(e,n,o,i,a)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=B._getConfig(o,i),c={nonce:a==null||(e=a.csp)===null||e===void 0?void 0:e.nonce};B._loadCoreStyles(n,c),B._loadThemeStyles(n,c),B._loadScopedThemeStyles(n,c),B._removeThemeListeners(n),n.$loadStyles=function(){return B._loadThemeStyles(n,c)},B._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!Ke.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var a;q.loadCSS(i),(a=o.$style)===null||a===void 0||a.loadCSS(i),Ke.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!(i!=null&&i.isUnstyled()||(i==null||(e=i.theme)===null||e===void 0?void 0:e.call(i))==="none")){if(!H.isStyleNameLoaded("common")){var c,l,s=((c=i.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},u=s.primitive,d=s.semantic,f=s.global,h=s.style;q.load(u?.css,D({name:"primitive-variables"},a)),q.load(d?.css,D({name:"semantic-variables"},a)),q.load(f?.css,D({name:"global-variables"},a)),q.loadStyle(D({name:"global-style"},a),h),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=i.$style)===null||n===void 0?void 0:n.name)&&(o=i.$style)!==null&&o!==void 0&&o.name){var p,v,w,k,y=((p=i.$style)===null||p===void 0||(v=p.getDirectiveTheme)===null||v===void 0?void 0:v.call(p))||{},T=y.css,I=y.style;(w=i.$style)===null||w===void 0||w.load(T,D({name:"".concat(i.$style.name,"-variables")},a)),(k=i.$style)===null||k===void 0||k.loadStyle(D({name:"".concat(i.$style.name,"-style")},a),I),H.setLoadedStyleName(i.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var b,_,U=(b=i.$style)===null||b===void 0||(_=b.getLayerOrderThemeCSS)===null||_===void 0?void 0:_.call(b);q.load(U,D({name:"layer-order",first:!0},a)),H.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 i,a,c,l=((i=e.$style)===null||i===void 0||(a=i.getPresetTheme)===null||a===void 0?void 0:a.call(i,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,u=(c=e.$style)===null||c===void 0?void 0:c.load(s,D({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ke.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,i,a,c){var l,s,u="on".concat(ja(n)),d=B._getConfig(i,a),f=o?.$instance,h=B._usePT(f,B._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),B._getOptionValue,"hooks.".concat(u)),p=B._useDefaultPT(f,d==null||(s=d.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],B._getOptionValue,"hooks.".concat(u)),v={el:o,binding:i,vnode:a,prevVnode:c};h?.(f,v),p?.(f,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return Gn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,u,d,f){var h,p,v,w;s._$instances=s._$instances||{};var k=B._getConfig(u,d),y=s._$instances[e]||{},T=Ue(y)?D(D({},n),n?.methods):{};s._$instances[e]=D(D({},y),{},{$name:e,$host:s,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||s||void 0,$style:D({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:k,$attrSelector:(h=s.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return B._getPT(k?.pt,void 0,function(b){var _;return b==null||(_=b.directives)===null||_===void 0?void 0:_[e]})},isUnstyled:function(){var b,_;return((b=s._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.unstyled)!==void 0?(_=s._$instances[e])===null||_===void 0||(_=_.$binding)===null||_===void 0||(_=_.value)===null||_===void 0?void 0:_.unstyled:k?.unstyled},theme:function(){var b;return(b=s._$instances[e])===null||b===void 0||(b=b.$primevueConfig)===null||b===void 0?void 0:b.theme},preset:function(){var b;return(b=s._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.dt},ptm:function(){var b,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B._getPTValue(s._$instances[e],(b=s._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.pt,_,D({},U))},ptmo:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B._getPTValue(s._$instances[e],b,_,U,!1)},cx:function(){var b,_,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(b=s._$instances[e])!==null&&b!==void 0&&b.isUnstyled()?void 0:B._getOptionValue((_=s._$instances[e])===null||_===void 0||(_=_.$style)===null||_===void 0?void 0:_.classes,U,D({},X))},sx:function(){var b,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?B._getOptionValue((b=s._$instances[e])===null||b===void 0||(b=b.$style)===null||b===void 0?void 0:b.inlineStyles,_,D({},X)):void 0}},T),s.$instance=s._$instances[e],(p=(v=s.$instance)[l])===null||p===void 0||p.call(v,s,u,d,f),s["$".concat(e)]=s.$instance,B._hook(e,l,s,u,d,f),s.$pd||(s.$pd={}),s.$pd[e]=D(D({},(w=s.$pd)===null||w===void 0?void 0:w[e]),{},{name:e,instance:s._$instances[e]})},i=function(l){var s,u,d,f=l._$instances[e],h=f?.watch,p=function(k){var y,T=k.newValue,I=k.oldValue;return h==null||(y=h.config)===null||y===void 0?void 0:y.call(f,T,I)},v=function(k){var y,T=k.newValue,I=k.oldValue;return h==null||(y=h["config.ripple"])===null||y===void 0?void 0:y.call(f,T,I)};f.$watchersCallback={config:p,"config.ripple":v},h==null||(s=h.config)===null||s===void 0||s.call(f,f?.$primevueConfig),wn.on("config:change",p),h==null||(u=h["config.ripple"])===null||u===void 0||u.call(f,f==null||(d=f.$primevueConfig)===null||d===void 0?void 0:d.ripple),wn.on("config:ripple:change",v)},a=function(l){var s=l._$instances[e].$watchersCallback;s&&(wn.off("config:change",s.config),wn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,u,d){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:Ha("pd")},o("created",l,s,u,d)},beforeMount:function(l,s,u,d){var f;B._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("beforeMount",l,s,u,d),i(l)},mounted:function(l,s,u,d){var f;B._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("mounted",l,s,u,d)},beforeUpdate:function(l,s,u,d){o("beforeUpdate",l,s,u,d)},updated:function(l,s,u,d){var f;B._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("updated",l,s,u,d)},beforeUnmount:function(l,s,u,d){var f;a(l),B._removeThemeListeners((f=l.$pd[e])===null||f===void 0?void 0:f.instance),o("beforeUnmount",l,s,u,d)},unmounted:function(l,s,u,d){var f;(f=l.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,s,u,d)}}},extend:function(){var e=B._getMeta.apply(B,arguments),n=Er(e,2),o=n[0],i=n[1];return D({extend:function(){var c=B._getMeta.apply(B,arguments),l=Er(c,2),s=l[0],u=l[1];return B.extend(s,D(D(D({},i),i?.methods),u))}},B._extend(o,i))}},Ds=`
|
|
338
|
+
`,fl={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"},pl=Z.extend({name:"panelmenu",style:ml,classes:fl}),Cn=dr();function Gt(t){"@babel/helpers - typeof";return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(t)}function Rr(t,e){return wl(t)||bl(t,e)||gl(t,e)||hl()}function hl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
339
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gl(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 bl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function wl(t){if(Array.isArray(t))return t}function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jr(Object(n),!0).forEach(function(o){mo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function mo(t,e,n){return(e=vl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vl(t){var e=yl(t,"string");return Gt(e)=="symbol"?e:e+""}function yl(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var P={_getMeta:function(){return[Ge(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ee(Ge(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,a,i;return(o=(e==null||(a=e.instance)===null||a===void 0?void 0:a.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:oo,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var S=P._getOptionValue.apply(P,arguments);return me(S)||lr(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)||{},u=d.mergeSections,m=u===void 0?!0:u,p=d.mergeProps,h=p===void 0?!1:p,w=l?P._useDefaultPT(o,o.defaultPT(),s,i,c):void 0,k=P._usePT(o,P._getPT(a,o.$name),s,i,N(N({},c),{},{global:w||{}})),C=P._getPTDatasets(o,i);return m||!m&&k?h?P._mergeProps(o,h,w,k,C):N(N(N({},w),k),C):N(N({},k),C)},_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 N(N({},n==="root"&&mo({},"".concat(o,"name"),Pe(e.$name))),{},mo({},"".concat(o,"section"),Pe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=function(c){var l,s=o?o(c):c,d=Pe(n);return(l=s?.[d])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(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,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(C){return o(C,a,i)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},d=s.mergeSections,u=d===void 0?!0:d,m=s.mergeProps,p=m===void 0?!1:m,h=c(n.originalValue),w=c(n.value);return h===void 0&&w===void 0?void 0:me(w)?w:me(h)?h:u||!u&&w?p?P._mergeProps(e,p,h,w):N(N({},h),w):w}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return P._usePT(e,n,o,a,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,i=P._getConfig(o,a),c={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};P._loadCoreStyles(n,c),P._loadThemeStyles(n,c),P._loadScopedThemeStyles(n,c),P._removeThemeListeners(n),n.$loadStyles=function(){return P._loadThemeStyles(n,c)},P._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!qe.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;Z.loadCSS(a),(i=o.$style)===null||i===void 0||i.loadCSS(a),qe.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(a!=null&&a.isUnstyled()||(a==null||(e=a.theme)===null||e===void 0?void 0:e.call(a))==="none")){if(!H.isStyleNameLoaded("common")){var c,l,s=((c=a.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},d=s.primitive,u=s.semantic,m=s.global,p=s.style;Z.load(d?.css,N({name:"primitive-variables"},i)),Z.load(u?.css,N({name:"semantic-variables"},i)),Z.load(m?.css,N({name:"global-variables"},i)),Z.loadStyle(N({name:"global-style"},i),p),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=a.$style)===null||n===void 0?void 0:n.name)&&(o=a.$style)!==null&&o!==void 0&&o.name){var h,w,k,C,b=((h=a.$style)===null||h===void 0||(w=h.getDirectiveTheme)===null||w===void 0?void 0:w.call(h))||{},S=b.css,B=b.style;(k=a.$style)===null||k===void 0||k.load(S,N({name:"".concat(a.$style.name,"-variables")},i)),(C=a.$style)===null||C===void 0||C.loadStyle(N({name:"".concat(a.$style.name,"-style")},i),B),H.setLoadedStyleName(a.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var v,E,U=(v=a.$style)===null||v===void 0||(E=v.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(v);Z.load(U,N({name:"layer-order",first:!0},i)),H.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 a,i,c,l=((a=e.$style)===null||a===void 0||(i=a.getPresetTheme)===null||i===void 0?void 0:i.call(a,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(s,N({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(){};qe.clearLoadedStyleNames(),ae.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ae.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,a,i,c){var l,s,d="on".concat(ps(n)),u=P._getConfig(a,i),m=o?.$instance,p=P._usePT(m,P._getPT(a==null||(l=a.value)===null||l===void 0?void 0:l.pt,e),P._getOptionValue,"hooks.".concat(d)),h=P._useDefaultPT(m,u==null||(s=u.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],P._getOptionValue,"hooks.".concat(d)),w={el:o,binding:a,vnode:i,prevVnode:c};p?.(m,w),h?.(m,w)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return no(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,d,u,m){var p,h,w,k;s._$instances=s._$instances||{};var C=P._getConfig(d,u),b=s._$instances[e]||{},S=Ke(b)?N(N({},n),n?.methods):{};s._$instances[e]=N(N({},b),{},{$name:e,$host:s,$binding:d,$modifiers:d?.modifiers,$value:d?.value,$el:b.$el||s||void 0,$style:N({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:C,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return P._getPT(C?.pt,void 0,function(v){var E;return v==null||(E=v.directives)===null||E===void 0?void 0:E[e]})},isUnstyled:function(){var v,E;return((v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(E=s._$instances[e])===null||E===void 0||(E=E.$binding)===null||E===void 0||(E=E.value)===null||E===void 0?void 0:E.unstyled:C?.unstyled},theme:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P._getPTValue(s._$instances[e],(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,E,N({},U))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P._getPTValue(s._$instances[e],v,E,U,!1)},cx:function(){var v,E,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=s._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:P._getOptionValue((E=s._$instances[e])===null||E===void 0||(E=E.$style)===null||E===void 0?void 0:E.classes,U,N({},J))},sx:function(){var v,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?P._getOptionValue((v=s._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,E,N({},J)):void 0}},S),s.$instance=s._$instances[e],(h=(w=s.$instance)[l])===null||h===void 0||h.call(w,s,d,u,m),s["$".concat(e)]=s.$instance,P._hook(e,l,s,d,u,m),s.$pd||(s.$pd={}),s.$pd[e]=N(N({},(k=s.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:s._$instances[e]})},a=function(l){var s,d,u,m=l._$instances[e],p=m?.watch,h=function(C){var b,S=C.newValue,B=C.oldValue;return p==null||(b=p.config)===null||b===void 0?void 0:b.call(m,S,B)},w=function(C){var b,S=C.newValue,B=C.oldValue;return p==null||(b=p["config.ripple"])===null||b===void 0?void 0:b.call(m,S,B)};m.$watchersCallback={config:h,"config.ripple":w},p==null||(s=p.config)===null||s===void 0||s.call(m,m?.$primevueConfig),Cn.on("config:change",h),p==null||(d=p["config.ripple"])===null||d===void 0||d.call(m,m==null||(u=m.$primevueConfig)===null||u===void 0?void 0:u.ripple),Cn.on("config:ripple:change",w)},i=function(l){var s=l._$instances[e].$watchersCallback;s&&(Cn.off("config:change",s.config),Cn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,d,u){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:hs("pd")},o("created",l,s,d,u)},beforeMount:function(l,s,d,u){var m;P._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,s,d),o("beforeMount",l,s,d,u),a(l)},mounted:function(l,s,d,u){var m;P._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,s,d),o("mounted",l,s,d,u)},beforeUpdate:function(l,s,d,u){o("beforeUpdate",l,s,d,u)},updated:function(l,s,d,u){var m;P._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,s,d),o("updated",l,s,d,u)},beforeUnmount:function(l,s,d,u){var m;i(l),P._removeThemeListeners((m=l.$pd[e])===null||m===void 0?void 0:m.instance),o("beforeUnmount",l,s,d,u)},unmounted:function(l,s,d,u){var m;(m=l.$pd[e])===null||m===void 0||(m=m.instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),o("unmounted",l,s,d,u)}}},extend:function(){var e=P._getMeta.apply(P,arguments),n=Rr(e,2),o=n[0],a=n[1];return N({extend:function(){var c=P._getMeta.apply(P,arguments),l=Rr(c,2),s=l[0],d=l[1];return P.extend(s,N(N(N({},a),a?.methods),d))}},P._extend(o,a))}},kl=`
|
|
338
340
|
.p-ink {
|
|
339
341
|
display: block;
|
|
340
342
|
position: absolute;
|
|
@@ -354,9 +356,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
354
356
|
transform: scale(2.5);
|
|
355
357
|
}
|
|
356
358
|
}
|
|
357
|
-
`,
|
|
358
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
359
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ol(t,e){if(t){if(typeof t=="string")return xr(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)?xr(t,e):void 0}}function xr(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 rl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function il(t){if(Array.isArray(t))return t}var Br={name:"PanelMenuList",hostName:"PanelMenu",extends:Cn,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)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Z(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 $(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&&Va(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=$(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=$(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($(this.focusedItem)){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(i){return i.key!==n.focusedItem.key}):this.focusedItem=$(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if($(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var i=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(a){return a.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($(this.focusedItem)){var n=ke(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(ke(n,'[data-pc-section="itemlink"]')||ke(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(i){return i.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 qo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(a){return n.isValidItem(a)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o>0?qo(this.visibleItems.slice(0,o),function(a){return n.isValidItem(a)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,a=!1;if($(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});i=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),i=Ue(i)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):i}else i=this.visibleItems.find(function(l){return o.isItemMatched(l)});return $(i)&&(a=!0),Ue(i)&&Ue(this.focusedItem)&&(i=this.findFirstItem()),$(i)&&this.changeFocusedItem({originalEvent:e,processedItem:i,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),a},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,a=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;$(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:a})},scrollInView:function(){var e=ke(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,i){var a=tl(i,2),c=a[0],l=a[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}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 i=0;i<n.length;i++){var a=n[i];if(this.getItemProp(a,"key")===e)return a;var c=this.findProcessedItemByItemKey(e,a.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var u=(a!==""?a+"_":"")+s,d={item:l,index:s,level:o,key:u,parent:i,parentKey:a};d.items=n.createProcessedItems(l.items,o+1,d,u),c.push(d)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(i){n.isVisibleItem(i)&&(o.push(i),n.flatItems(i.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return $(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Ar}};function al(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(c,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":i.focused?a.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?a.focusedItemId:void 0,items:a.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.onKeyDown,onItemToggle:a.onItemToggle,onItemMousemove:a.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"])}Br.render=al;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 $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).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?$r(Object(n),!0).forEach(function(o){ll(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ll(t,e,n){return(e=cl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cl(t){var e=ul(t,"string");return Ft(e)=="symbol"?e:e+""}function ul(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 Or={name:"PanelMenu",extends:Ys,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?Z(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 ct(e,n)}):ct(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ct(e,this.activeItem)},isItemGroup:function(e){return $(e.items)},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=Bt(e.currentTarget,"data-p-active")===!0?ke(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=Bt(n,"data-p-active")===!0?ke(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=ke(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,i=ke(o,'[data-pc-section="header"]');return i?Bt(i,"data-p-disabled")?this.findNextHeader(i.parentElement):i:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,i=ke(o,'[data-pc-section="header"]');return i?Bt(i,"data-p-disabled")?this.findPrevHeader(i.parentElement):i: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,i=e.selfCheck,a=n.currentTarget.closest('[data-pc-section="panel"]'),c=i?ke(a,'[data-pc-section="header"]'):o?this.findNextHeader(a):this.findPrevHeader(a);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var i=this.isItemActive(n),a=i?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ct(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ct(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ct(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!i}),this.$emit(a,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var a=sl({},this.expandedKeys);i?a[n.key]=!0:delete a[n.key],this.$emit("update:expandedKeys",a)}},changeFocusedHeader:function(e,n){n&&xt(n)},getMenuItemProps:function(e,n){return{icon:r.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:r.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Br,ChevronRightIcon:Qn,ChevronDownIcon:Jn}},dl=["id"],ml=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],fl=["href"],pl=["id","aria-labelledby"];function hl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getPanelKey(s)},[a.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:a.getItemProp(l,"style"),class:[t.cx("panel"),a.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:a.getHeaderId(s),class:[t.cx("header",{item:l}),a.getItemProp(l,"headerClass")],tabindex:a.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":a.getItemLabel(l),"aria-expanded":a.isItemActive(l),"aria-controls":a.getContentId(s),"aria-disabled":a.isItemDisabled(l),onClick:function(d){return a.onHeaderClick(d,l)},onKeydown:function(d){return a.onHeaderKeyDown(d,l)}},{ref_for:!0},a.getPTOptions("header",l,s),{"data-p-active":a.isItemActive(l),"data-p-disabled":a.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},a.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:a.isItemActive(l),hasSubmenu:a.isItemGroup(l),label:a.getItemLabel(l),props:a.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},a.getPTOptions("headerLink",l,s)),[a.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:a.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),a.getItemProp(l,"icon")])},null,8,["item","class"])):a.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),a.getItemProp(l,"icon")]},{ref_for:!0},a.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},a.getPTOptions("headerLabel",l,s)),r.toDisplayString(a.getItemLabel(l)),17)],16,fl))],16)],16,ml),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({id:a.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":a.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[a.getItemProp(l,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content")},{ref_for:!0},t.ptm("content")),[r.createVNode(c,{panelId:a.getPanelId(s),items:a.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:a.changeExpandedKeys,onHeaderFocus:a.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,pl),[[r.vShow,a.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,dl)}Or.render=hl;const gl={class:"panel-menu-wrapper select-none"},yl=["data-active","onClick"],vl={key:0,class:"material-symbols-outlined item-menu-icon-left"},bl=["textContent"],Cl=["onClick"],wl={key:0,class:"material-symbols-outlined item-menu-icon-left"},kl=["textContent"],Sl={key:2,class:r.normalizeClass(["item-menu"])},_l={key:0,class:"material-symbols-outlined item-menu-icon-left"},El=["textContent"],Tl=Pe(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},i=l=>typeof l.label=="function"?l.label():l.label??"Item",a=(l,s,u)=>l.to?(l.exact=l.exact??!1,l.exact?u:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const u=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",gl,[r.createVNode(r.unref(Or),{model:c.value,unstyled:!0},{item:r.withCtx(({item:d,active:f})=>[d.to?(r.openBlock(),r.createBlock(u,{key:0,to:d.to,custom:""},{default:r.withCtx(({navigate:h,isExactActive:p,isActive:v})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),"data-active":a(d,v,p),onClick:r.withModifiers(w=>n(d,h),["prevent"])},[d.icon?(r.openBlock(),r.createElementBlock("span",vl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,bl)],10,yl)]),_:2},1032,["to"])):typeof d.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),onClick:r.withModifiers(h=>o(h,d),["stop"])},[d.icon?(r.openBlock(),r.createElementBlock("span",wl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,kl)],10,Cl)):(r.openBlock(),r.createElementBlock("a",Sl,[d.icon?(r.openBlock(),r.createElementBlock("span",_l,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,El),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":f}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),Il=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;r.useSlots();const n=r.ref(!1);function o(){n.value=!0}return(i,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(i.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Ae,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"text",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(zo,{visible:n.value,"onUpdate:visible":a[0]||(a[0]=c=>n.value=c),position:"center"},{title:r.withCtx(()=>[r.createElementVNode("b",null,r.toDisplayString(e.title??"Ajuda"),1)]),default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["visible"])],64))}}),Pl=Pe(r.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return r.useSlots(),(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[r.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]);function Al(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const xl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Bl(t){return Array.isArray(t)?t:[t]}function $l(t){return r.getCurrentInstance()}function Ol(t,e=!0,n){$l()?r.onMounted(t,n):e?t():r.nextTick(t)}const Lr=xl?window:void 0;function dt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function Ll(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Nl(t){const e=Ll();return r.computed(()=>(e.value,!!t()))}function Nr(t,e,n={}){const{window:o=Lr,...i}=n;let a;const c=Nl(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},s=r.computed(()=>{const f=r.toValue(t);return Array.isArray(f)?f.map(h=>dt(h)):[dt(f)]}),u=r.watch(s,f=>{if(l(),c.value&&o){a=new ResizeObserver(e);for(const h of f)h&&a.observe(h,i)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Al(d),{isSupported:c,stop:d}}function Ml(t,e={width:0,height:0},n={}){const{window:o=Lr,box:i="content-box"}=n,a=r.computed(()=>{var f,h;return(h=(f=dt(t))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=Nr(t,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const p=dt(t);if(p){const v=p.getBoundingClientRect();c.value=v.width,l.value=v.height}}else if(h){const p=Bl(h);c.value=p.reduce((v,{inlineSize:w})=>v+w,0),l.value=p.reduce((v,{blockSize:w})=>v+w,0)}else c.value=f.contentRect.width,l.value=f.contentRect.height},n);Ol(()=>{const f=dt(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:e.width,l.value="offsetHeight"in f?f.offsetHeight:e.height)});const u=r.watch(()=>dt(t),f=>{c.value=f?e.width:0,l.value=f?e.height:0});function d(){s(),u()}return{width:c,height:l,stop:d}}const Mr=Symbol();function Dl(){return r.inject(Mr)}const zt=()=>Dl(),Rl={class:"body"},Vl={class:"my-3 name"},jl={class:"login-buttons py-3 mx-auto"},Hl={class:"my-3 footer"},Fl=Pe(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Ml(n),i=r.computed(()=>o.value>300?"md":"sm"),a=Un.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=zt(),s=r.computed(()=>e.enableAdlogin===!0),u=r.ref(!1),d=r.ref(null);async function f(h){u.value||(u.value=!0,d.value=h,await new Promise(p=>setTimeout(p,400)),c(),h==="govbr"?a.LoginGovBr():s&&h==="sf"&&a.oidc.login())}return r.onBeforeMount(()=>{l()}),(h,p)=>(r.openBlock(),r.createElementBlock("div",Rl,[p[6]||(p[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[p[5]||(p[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Vl,[r.renderSlot(h.$slots,"name",{},()=>[p[2]||(p[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",jl,[r.renderSlot(h.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:f})),()=>[r.createVNode(r.unref(Pt),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="govbr",onClick:p[0]||(p[0]=v=>f("govbr"))},{default:r.withCtx(()=>p[3]||(p[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])),_:1,__:[3]},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(Pt),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="sf",onClick:p[1]||(p[1]=v=>f("sf"))},{default:r.withCtx(()=>p[4]||(p[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])),_:1,__:[4]},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(h.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Hl,[r.renderSlot(h.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-a9cae4be"]]);class zl{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 Ut=new zl,Dr="SweetAlert2:",Ul=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},no=t=>t.charAt(0).toUpperCase()+t.slice(1),pe=t=>Array.prototype.slice.call(t),de=t=>{console.warn(`${Dr} ${typeof t=="object"?t.join(" "):t}`)},ot=t=>{console.error(`${Dr} ${t}`)},Rr=[],Wl=t=>{Rr.includes(t)||(Rr.push(t),de(t))},Kl=(t,e)=>{Wl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},kn=t=>typeof t=="function"?t():t,oo=t=>t&&typeof t.toPromise=="function",Wt=t=>oo(t)?t.toPromise():Promise.resolve(t),ro=t=>t&&Promise.resolve(t)===t,mt={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:"×",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},Gl=["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"],ql={},Yl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Vr=t=>Object.prototype.hasOwnProperty.call(mt,t),jr=t=>Gl.indexOf(t)!==-1,io=t=>ql[t],Xl=t=>{Vr(t)||de(`Unknown parameter "${t}"`)},Zl=t=>{Yl.includes(t)&&de(`The parameter "${t}" is incompatible with toasts`)},Jl=t=>{io(t)&&Kl(t,io(t))},Ql=t=>{!t.backdrop&&t.allowOutsideClick&&de('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Xl(e),t.toast&&Zl(e),Jl(e)},ec="swal2-",Hr=t=>{const e={};for(const n in t)e[t[n]]=ec+t[n];return e},g=Hr(["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"]),Kt=Hr(["success","warning","info","question","error"]),J=()=>document.body.querySelector(`.${g.container}`),Gt=t=>{const e=J();return e?e.querySelector(t):null},ge=t=>Gt(`.${t}`),R=()=>ge(g.popup),qt=()=>ge(g.icon),Fr=()=>ge(g.title),Sn=()=>ge(g["html-container"]),zr=()=>ge(g.image),Ur=()=>ge(g["progress-steps"]),_n=()=>ge(g["validation-message"]),Ee=()=>Gt(`.${g.actions} .${g.confirm}`),Ge=()=>Gt(`.${g.actions} .${g.deny}`),tc=()=>ge(g["input-label"]),ft=()=>Gt(`.${g.loader}`),rt=()=>Gt(`.${g.actions} .${g.cancel}`),Yt=()=>ge(g.actions),Wr=()=>ge(g.footer),En=()=>ge(g["timer-progress-bar"]),ao=()=>ge(g.close),nc=`
|
|
359
|
+
`,Cl={root:"p-ink"},Sl=Z.extend({name:"ripple-directive",style:kl,classes:Cl}),_l=P.extend({style:Sl});function qt(t){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(t)}function El(t){return Al(t)||Il(t)||Tl(t)||xl()}function xl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
360
|
+
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 fo(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)?fo(t,e):void 0}}function Il(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Al(t){if(Array.isArray(t))return fo(t)}function fo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Hr(t,e,n){return(e=Pl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pl(t){var e=$l(t,"string");return qt(e)=="symbol"?e:e+""}function $l(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(qt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bl=_l.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=this.getInk(e);n||(n=is("span",Hr(Hr({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root"))),e.appendChild(n),this.$el=n)},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,o=e.currentTarget,a=this.getInk(o);if(!(!a||getComputedStyle(a,null).display==="none")){if(!this.isUnstyled()&&eo(a,"p-ink-active"),a.setAttribute("data-p-ink-active","false"),!rr(a)&&!ar(a)){var i=Math.max(os(o),ls(o));a.style.height=i+"px",a.style.width=i+"px"}var c=ss(o),l=e.pageX-c.left+document.body.scrollTop-ar(a)/2,s=e.pageY-c.top+document.body.scrollLeft-rr(a)/2;a.style.top=s+"px",a.style.left=l+"px",!this.isUnstyled()&&ns(a,"p-ink-active"),a.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){a&&(!n.isUnstyled()&&eo(a,"p-ink-active"),a.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&eo(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?El(e.children).find(function(n){return Rt(n,"data-pc-name")==="ripple"}):void 0}}}),Ll={name:"BasePanelMenu",extends:kn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:pl,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},zr={name:"PanelMenuSub",hostName:"PanelMenu",extends:kn,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?ee(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 $(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:r.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions("itemLink",e,n)),icon:r.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:r.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:co,ChevronDownIcon:so},directives:{ripple:Bl}},Ol=["tabindex"],Nl=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Ml=["onClick","onMousemove"],Dl=["href","target"];function Rl(t,e,n,o,a,i){var c=r.resolveComponent("PanelMenuSub",!0),l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,function(s,d){return r.openBlock(),r.createElementBlock(r.Fragment,{key:i.getItemKey(s)},[i.isItemVisible(s)&&!i.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:i.getItemId(s),class:[t.cx("item",{processedItem:s}),i.getItemProp(s,"class")],style:i.getItemProp(s,"style"),role:"treeitem","aria-label":i.getItemLabel(s),"aria-expanded":i.isItemGroup(s)?i.isItemActive(s):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d)},{ref_for:!0},i.getPTOptions("item",s,d),{"data-p-focused":i.isItemFocused(s),"data-p-disabled":i.isItemDisabled(s)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(m){return i.onItemClick(m,s)},onMousemove:function(m){return i.onItemMouseMove(m,s)}},{ref_for:!0},i.getPTOptions("itemContent",s,d)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:s.item,root:!1,active:i.isItemActive(s),hasSubmenu:i.isItemGroup(s),label:i.getItemLabel(s),props:i.getMenuItemProps(s,d)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(s,"url"),class:t.cx("itemLink"),target:i.getItemProp(s,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions("itemLink",s,d)),[i.isItemGroup(s)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.submenuicon),r.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(s)},{ref_for:!0},i.getPTOptions("submenuIcon",s,d)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(s)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions("submenuIcon",s,d)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:s.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(s,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(s,"icon")]},{ref_for:!0},i.getPTOptions("itemIcon",s,d)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions("itemLabel",s,d)),r.toDisplayString(i.getItemLabel(s)),17)],16,Dl)),[[l]])],16,Ml),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({class:t.cx("contentContainer")},{ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(s)&&i.isItemGroup(s)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:i.getItemId(s)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:s.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(u){return t.$emit("item-mousemove",u)}),pt:t.pt,unstyled:t.unstyled},{ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):r.createCommentVNode("",!0)],16),[[r.vShow,i.isItemActive(s)]])]}),_:2},1040)],16,Nl)):r.createCommentVNode("",!0),i.isItemVisible(s)&&i.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:i.getItemProp(s,"style"),class:[t.cx("separator"),i.getItemProp(s,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,Ol)}zr.render=Rl;function Vl(t,e){return Fl(t)||zl(t,e)||Hl(t,e)||jl()}function jl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
361
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hl(t,e){if(t){if(typeof t=="string")return Fr(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)?Fr(t,e):void 0}}function Fr(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 zl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,a,i,c,l=[],s=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Fl(t){if(Array.isArray(t))return t}var Ur={name:"PanelMenuList",hostName:"PanelMenu",extends:kn,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)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?ee(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 $(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&&fs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=$(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=$(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($(this.focusedItem)){var o=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(a){return a.key!==n.focusedItem.key}):this.focusedItem=$(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if($(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var a=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});a?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if($(this.focusedItem)){var n=Ee(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Ee(n,'[data-pc-section="itemlink"]')||Ee(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(a){return a.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Dt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return sr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return a||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),a=o>0?sr(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return a||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var a=null,i=!1;if($(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});a=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),a=Ke(a)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):a}else a=this.visibleItems.find(function(l){return o.isItemMatched(l)});return $(a)&&(i=!0),Ke(a)&&Ke(this.focusedItem)&&(a=this.findFirstItem()),$(a)&&this.changeFocusedItem({originalEvent:e,processedItem:a,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,a=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;$(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:a,selfCheck:i})},scrollInView:function(){var e=Ee(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,a){var i=Vl(a,2),c=i[0],l=i[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}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 a=0;a<n.length;a++){var i=n[a];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var d=(i!==""?i+"_":"")+s,u={item:l,index:s,level:o,key:d,parent:a,parentKey:i};u.items=n.createProcessedItems(l.items,o+1,u,d),c.push(u)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(a){n.isVisibleItem(a)&&(o.push(a),n.flatItems(a.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return $(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:zr}};function Ul(t,e,n,o,a,i){var c=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(c,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":a.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:a.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:a.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Ur.render=Ul;function Yt(t){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(t)}function Wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function Wl(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){Kl(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 Kl(t,e,n){return(e=Gl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gl(t){var e=ql(t,"string");return Yt(e)=="symbol"?e:e+""}function ql(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Kr={name:"PanelMenu",extends:Ll,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?ee(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},isItemGroup:function(e){return $(e.items)},getPanelId:function(e){return"".concat(this.$id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Dt(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=Rt(e.currentTarget,"data-p-active")===!0?Ee(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Rt(n,"data-p-active")===!0?Ee(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=Ee(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,a=Ee(o,'[data-pc-section="header"]');return a?Rt(a,"data-p-disabled")?this.findNextHeader(a.parentElement):a:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,a=Ee(o,'[data-pc-section="header"]');return a?Rt(a,"data-p-disabled")?this.findPrevHeader(a.parentElement):a: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,a=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=a?Ee(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var a=this.isItemActive(n),i=a?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!a}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,a=o===void 0?!1:o;if(this.expandedKeys){var i=Wl({},this.expandedKeys);a?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(n)},getMenuItemProps:function(e,n){return{icon:r.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:r.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Ur,ChevronRightIcon:co,ChevronDownIcon:so}},Yl=["id"],Xl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Zl=["href"],Jl=["id","aria-labelledby"];function Ql(t,e,n,o,a,i){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:i.getPanelKey(s)},[i.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:i.getItemProp(l,"style"),class:[t.cx("panel"),i.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:i.getHeaderId(s),class:[t.cx("header",{item:l}),i.getItemProp(l,"headerClass")],tabindex:i.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemActive(l),"aria-controls":i.getContentId(s),"aria-disabled":i.isItemDisabled(l),onClick:function(u){return i.onHeaderClick(u,l)},onKeydown:function(u){return i.onHeaderKeyDown(u,l)}},{ref_for:!0},i.getPTOptions("header",l,s),{"data-p-active":i.isItemActive(l),"data-p-disabled":i.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},i.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},i.getPTOptions("headerLink",l,s)),[i.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),i.getItemProp(l,"icon")])},null,8,["item","class"])):i.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(l,"icon")]},{ref_for:!0},i.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},i.getPTOptions("headerLabel",l,s)),r.toDisplayString(i.getItemLabel(l)),17)],16,Zl))],16)],16,Xl),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({id:i.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(l,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content")},{ref_for:!0},t.ptm("content")),[r.createVNode(c,{panelId:i.getPanelId(s),items:i.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,Jl),[[r.vShow,i.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,Yl)}Kr.render=Ql;const ec={class:"panel-menu-wrapper select-none"},tc=["data-active","onClick"],nc={key:0,class:"material-symbols-outlined item-menu-icon-left"},oc=["textContent"],rc=["onClick"],ac={key:0,class:"material-symbols-outlined item-menu-icon-left"},ic=["textContent"],sc={key:2,class:r.normalizeClass(["item-menu"])},lc={key:0,class:"material-symbols-outlined item-menu-icon-left"},cc=["textContent"],dc=_e(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},a=l=>typeof l.label=="function"?l.label():l.label??"Item",i=(l,s,d)=>l.to?(l.exact=l.exact??!1,l.exact?d:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const d=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",ec,[r.createVNode(r.unref(Kr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:u,active:m})=>[u.to?(r.openBlock(),r.createBlock(d,{key:0,to:u.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:w})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:u.disabled}]),"data-active":i(u,w,h),onClick:r.withModifiers(k=>n(u,p),["prevent"])},[u.icon?(r.openBlock(),r.createElementBlock("span",nc,r.toDisplayString(u.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(u))},null,8,oc)],10,tc)]),_:2},1032,["to"])):typeof u.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:u.disabled}]),onClick:r.withModifiers(p=>o(p,u),["stop"])},[u.icon?(r.openBlock(),r.createElementBlock("span",ac,r.toDisplayString(u.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(u))},null,8,ic)],10,rc)):(r.openBlock(),r.createElementBlock("a",sc,[u.icon?(r.openBlock(),r.createElementBlock("span",lc,r.toDisplayString(u.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(a(u))},null,8,cc),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":m}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),uc=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;r.useSlots();const n=r.ref(!1);function o(){n.value=!0}return(a,i)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(a.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(we,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"text",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(Qn,{visible:n.value,"onUpdate:visible":i[0]||(i[0]=c=>n.value=c),position:"center"},{title:r.withCtx(()=>[r.createElementVNode("b",null,r.toDisplayString(e.title??"Ajuda"),1)]),default:r.withCtx(()=>[r.renderSlot(a.$slots,"default")]),_:3},8,["visible"])],64))}}),mc=_e(r.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return r.useSlots(),(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[r.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]);function fc(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const pc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function hc(t){return Array.isArray(t)?t:[t]}function gc(t){return r.getCurrentInstance()}function bc(t,e=!0,n){gc()?r.onMounted(t,n):e?t():r.nextTick(t)}const Gr=pc?window:void 0;function bt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function wc(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function vc(t){const e=wc();return r.computed(()=>(e.value,!!t()))}function qr(t,e,n={}){const{window:o=Gr,...a}=n;let i;const c=vc(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},s=r.computed(()=>{const m=r.toValue(t);return Array.isArray(m)?m.map(p=>bt(p)):[bt(m)]}),d=r.watch(s,m=>{if(l(),c.value&&o){i=new ResizeObserver(e);for(const p of m)p&&i.observe(p,a)}},{immediate:!0,flush:"post"}),u=()=>{l(),d()};return fc(u),{isSupported:c,stop:u}}function yc(t,e={width:0,height:0},n={}){const{window:o=Gr,box:a="content-box"}=n,i=r.computed(()=>{var m,p;return(p=(m=bt(t))==null?void 0:m.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=qr(t,([m])=>{const p=a==="border-box"?m.borderBoxSize:a==="content-box"?m.contentBoxSize:m.devicePixelContentBoxSize;if(o&&i.value){const h=bt(t);if(h){const w=h.getBoundingClientRect();c.value=w.width,l.value=w.height}}else if(p){const h=hc(p);c.value=h.reduce((w,{inlineSize:k})=>w+k,0),l.value=h.reduce((w,{blockSize:k})=>w+k,0)}else c.value=m.contentRect.width,l.value=m.contentRect.height},n);bc(()=>{const m=bt(t);m&&(c.value="offsetWidth"in m?m.offsetWidth:e.width,l.value="offsetHeight"in m?m.offsetHeight:e.height)});const d=r.watch(()=>bt(t),m=>{c.value=m?e.width:0,l.value=m?e.height:0});function u(){s(),d()}return{width:c,height:l,stop:u}}const Yr=Symbol();function kc(){return r.inject(Yr)}const rt=()=>kc(),Cc={class:"body"},Sc={class:"my-3 name"},_c={class:"login-buttons py-3 mx-auto"},Ec={class:"my-3 footer"},xc=_e(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=yc(n),a=r.computed(()=>o.value>300?"md":"sm"),i=ft.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=rt(),s=r.computed(()=>e.enableAdlogin===!0),d=r.ref(!1),u=r.ref(null);async function m(p){d.value||(d.value=!0,u.value=p,await new Promise(h=>setTimeout(h,400)),p==="govbr"?i.LoginGovBr():s&&p==="sf"&&i.oidc.login())}return r.onBeforeMount(()=>{l()}),r.onUnmounted(()=>{c(),d.value=!1,u.value=null}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Cc,[h[6]||(h[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[h[5]||(h[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Sc,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",_c,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:m})),()=>[r.createVNode(r.unref(pt),{size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&u.value==="govbr",onClick:h[0]||(h[0]=w=>m("govbr"))},{default:r.withCtx(()=>[...h[3]||(h[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])]),_:1},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(pt),{key:0,size:a.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&u.value==="sf",onClick:h[1]||(h[1]=w=>m("sf"))},{default:r.withCtx(()=>[...h[4]||(h[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])]),_:1},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Ec,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-ff672b03"]]);class Me{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const a of e)n+=`, ${a}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(a=>{const i=getComputedStyle(a).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,a=e.toString();return n.replace(/#/g,()=>a[o++]||"")}static MaskCpf(e){return Me.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Me.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Me.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}const Tc={key:0},Ic={class:"logout"},Ac={class:"email"},Pc={class:"userinfo"},$c={class:"userinfo"},Bc={key:0,class:"userinfo"},Lc={key:1,class:"userinfo"},Oc={class:"userinfo"},Nc={key:0},Mc={key:1,class:"roles"},Xr=_e(r.defineComponent({__name:"Account",setup(t){const{LogoutWithoutConfirmation:e}=rt(),n=r.ref(!1),o=ft.UseAuth(),a=r.ref(null),i=r.ref(!1),c=async()=>{try{const d=await o.oidc.loadUserInfo().TrackStateWith(i);a.value=d}catch(d){console.warn("[SfVueComponents]",`Erro ao obter informações do usuário: ${d}`)}},l=r.computed(()=>Array.isArray(a.value?.role)?a.value.role:typeof a.value?.role=="string"?[a.value.role]:[]),s=()=>a.value?.identity_provider==="GOV.BR"?"GOV.BR":"SF";return r.watch(()=>o.oidc.authenticated,d=>{if(!d){a.value=null;return}c()},{immediate:!0}),(d,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(we,{size:"sm",icon:"account_circle",button:!0,tooltip:"Minha Conta",loading:i.value,onClick:u[0]||(u[0]=m=>n.value=!0)},null,8,["loading"]),r.createVNode(Qn,{visible:n.value,"onUpdate:visible":u[1]||(u[1]=m=>n.value=m),position:"right",title:`Autenticado por ${s()}`},{default:r.withCtx(()=>[r.renderSlot(d.$slots,"content",r.normalizeProps(r.guardReactiveProps({userinfo:a.value})),()=>[a.value?(r.openBlock(),r.createElementBlock("div",Tc,[r.createElementVNode("div",Ic,[r.createElementVNode("div",Ac,[r.createVNode(we,{icon:"email",size:"sm",color:"primary"}),r.createTextVNode(" "+r.toDisplayString(a.value.email),1)]),r.createVNode(pt,{size:"sm",color:"error",onClick:r.unref(e)},{default:r.withCtx(()=>[...u[2]||(u[2]=[r.createTextVNode(" sair ",-1)])]),_:1},8,["onClick"])]),r.createElementVNode("div",Pc,[u[3]||(u[3]=r.createElementVNode("div",null,"CPF",-1)),r.createElementVNode("div",null,r.toDisplayString(r.unref(Me).MaskCpf(a.value.cpf)),1)]),r.createElementVNode("div",$c,[u[4]||(u[4]=r.createElementVNode("div",null,"Nome",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.name),1)]),a.value.jobTitle?(r.openBlock(),r.createElementBlock("div",Bc,[u[5]||(u[5]=r.createElementVNode("div",null,"Cargo",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.jobTitle),1)])):r.createCommentVNode("",!0),a.value.department?(r.openBlock(),r.createElementBlock("div",Lc,[u[6]||(u[6]=r.createElementVNode("div",null,"Departamento",-1)),r.createElementVNode("div",null,r.toDisplayString(a.value.department),1)])):r.createCommentVNode("",!0),r.createElementVNode("div",Oc,[u[7]||(u[7]=r.createElementVNode("div",null,"Perfis nesta aplicação",-1)),l.value.length===0?(r.openBlock(),r.createElementBlock("div",Nc,"Nenhum perfil atribuído.")):(r.openBlock(),r.createElementBlock("div",Mc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,m=>(r.openBlock(),r.createElementBlock("span",{key:m},r.toDisplayString(m),1))),128))]))])])):r.createCommentVNode("",!0)],!0)]),_:3},8,["visible","title"])],64))}}),[["__scopeId","data-v-6c47ddb3"]]),Dc={class:"font-percentage"},Zr="--font-size-increment",Rc="tamanho-fonte",Vc=_e(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=hn(),e.value=!0},a=()=>{e.value=!1},i=()=>document.documentElement,c=()=>parseInt(getComputedStyle(i()).getPropertyValue(Zr)||"1"),l=p=>{p<.5||p>1.6||(i().style.setProperty(Zr,p.toString()),m.value=p)},s=()=>{l(m.value+.1)},d=()=>{l(m.value-.1)},u=()=>{l(1)},m=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(Rc)}),r.onMounted(()=>{m.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(we,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:d}),r.createElementVNode("span",Dc,r.toDisplayString(m.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:u}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:a},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),jc=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=rt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(a,i)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),Hc=["aria-labelledby"],zc={key:0,class:"mb-3"},Fc={class:"flex align-items-center flex-wrap gap-3"},Uc=["innerHTML"],Wc={class:"flex flex-grow-1 gap-2"},Kc=_e(r.defineComponent({__name:"ConfirmPopover",setup(t){const e=r.useTemplateRef("popoverRef"),n=()=>{a.detail.resolve(!0),c.value=!1},o=()=>{a.detail.resolve(!1),c.value=!1};let a;const i=r.ref(null),c=r.ref(!1),l=r.ref({top:"0px",left:"0px",zIndex:"0"}),s=r.ref(!1),d=r.ref(!1),u=h=>{let w=h instanceof HTMLElement?h:null;for(;w&&w.getBoundingClientRect;){const k=w.getBoundingClientRect();if(k.width>0&&k.height>0)return k;const C=w.children[0];if(!C||!(C instanceof HTMLElement))return null;w=C}return null},m=()=>{const h=a.detail.options.target;h&&(i.value=u(h),i.value&&(l.value={top:`${i.value.bottom+window.scrollY}px`,left:`${i.value.left+window.scrollX}px`,zIndex:`${hn()+1}`}))},p=()=>{s.value=!1,d.value=!1,r.nextTick(()=>{const h=e.value?.getBoundingClientRect();h&&(window.innerWidth<h.right&&(l.value.left=`${(i.value?.right??0)+window.scrollX}px`,s.value=!0),window.innerHeight<h.bottom&&(l.value.top=`${(i.value?.top??0)+window.scrollY}px`,d.value=!0))})};return document.addEventListener("sfconfirm:popup",h=>{a=h,m(),c.value=!0,p()}),document.addEventListener("click",h=>{if(!c.value)return;const w=h.target;if(!(w instanceof Node)||e.value?.contains(w))return;const k=a.detail.options.target;k instanceof Node&&k.contains(w)||o()}),(h,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref:"popoverRef",id:"sf-confirm-popover",class:r.normalizeClass({translateX:s.value,translateY:d.value}),style:r.normalizeStyle({...l.value,zIndex:+l.value.zIndex+1}),role:"dialog","aria-modal":!0,"aria-labelledby":r.unref(a).detail.options?.text,tabindex:"-1"},[r.unref(a).detail.options?.title?(r.openBlock(),r.createElementBlock("div",zc,r.toDisplayString(r.unref(a).detail.options.title),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Fc,[r.createElementVNode("div",{innerHTML:r.unref(a).detail.options?.text},null,8,Uc),r.createElementVNode("div",Wc,[r.createVNode(r.unref(pt),{name:"botao-confirmar",size:"sm",color:r.unref(a).detail.options?.confirmColor,onClick:n},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(a).detail.options?.confirmLabel),1)]),_:1},8,["color"]),r.createVNode(r.unref(pt),{size:"sm",name:"botao-cancelar",color:r.unref(a).detail.options?.rejectColor,onClick:o},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(a).detail.options?.rejectLabel),1)]),_:1},8,["color"])])])],14,Hc)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ab141cd0"]]),Gc=r.defineComponent({__name:"LoginLogout",emits:["login"],setup(t,{emit:e}){const n=ft.UseAuth(),{LogoutAsync:o}=rt(),a=e;return(i,c)=>r.unref(n).isAuthenticated?(r.openBlock(),r.createBlock(we,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(o)},null,8,["onClick"])):(r.openBlock(),r.createBlock(we,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:c[0]||(c[0]=l=>a("login"))}))}}),qc={class:"nav-menu-header"},Yc={class:"nav-menu-inner-close"},Xc={class:"main-content"},Zc={class:"page-title"},Jc={class:"action"},Qc={id:"content"},ed={key:0,id:"logging-out"},td={class:"info-fazenda"},nd={class:"font-bold"},od={class:"info-endereco text-muted"},rd={class:"footer-right"},ad=_e(r.defineComponent({__name:"Main",props:{auth:{},public:{type:Boolean}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:a,pageTitle:i,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:d,CloseMenu:u,isLoggingOut:m,mainRef:p,mainWidth:h}=rt(),w=r.ref(null),k=()=>{if(!w.value||!a.value)return!1;w.value.offsetWidth!==o&&u()};r.onMounted(()=>{if(Vi.useRouter().afterEach(()=>{k()}),p.value){let S=null;qr(p,B=>{r.nextTick(()=>{S&&clearTimeout(S),S=setTimeout(()=>{h.value=B[0].contentRect.width},10)}),h.value=B[0].contentRect.width}),h.value=p.value.clientWidth}});const C=e;return(b,S)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:p,class:r.normalizeClass({disabled:r.unref(m),"nav-menu-visible":r.unref(a)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(a)})},[r.createElementVNode("div",qc,[S[1]||(S[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",Yc,[r.createVNode(we,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(b.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",Xc,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(we,{button:!0,icon:r.unref(a)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",Zc,r.toDisplayString(r.unref(m)?"Saindo...":r.unref(i)),1),S[2]||(S[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",Jc,[r.createVNode(we,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(d)},null,8,["icon","tooltip","onClick"]),r.createVNode(Vc),r.renderSlot(b.$slots,"top-bar-account",{},()=>[r.createVNode(Xr)],!0),n.public?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Gc,{key:0,onLogin:S[0]||(S[0]=B=>C("login"))}))])],2),r.createElementVNode("div",Qc,[r.unref(m)?(r.openBlock(),r.createElementBlock("div",ed,[r.createVNode(tr)])):r.renderSlot(b.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[r.renderSlot(b.$slots,"footer",{},()=>[S[5]||(S[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",td,[r.createElementVNode("span",nd,[r.renderSlot(b.$slots,"footer-nome-fazenda",{},()=>[S[3]||(S[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",od,[r.renderSlot(b.$slots,"footer-endereco-fazenda",{},()=>[S[4]||(S[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",rd,[r.renderSlot(b.$slots,"footer-right",{},void 0,!0)])],!0)]),r.createVNode(jc),r.createVNode(Kc)],2))}}),[["__scopeId","data-v-d77d1546"]]),id=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=rt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,a)=>null}});class sd{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 Xt=new sd;/*!
|
|
362
|
+
* sweetalert2 v11.23.0
|
|
363
|
+
* Released under the MIT License.
|
|
364
|
+
*/function Jr(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function ld(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qr(t,e){return t.get(Jr(t,e))}function cd(t,e,n){ld(t,e),e.set(t,n)}function dd(t,e,n){return t.set(Jr(t,e),n),n}const ud=100,T={},md=()=>{T.previousActiveElement instanceof HTMLElement?(T.previousActiveElement.focus(),T.previousActiveElement=null):document.body&&document.body.focus()},fd=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;T.restoreFocusTimeout=setTimeout(()=>{md(),e()},ud),window.scrollTo(n,o)}),ea="swal2-",g=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","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","draggable","dragging"].reduce((t,e)=>(t[e]=ea+e,t),{}),Sn=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=ea+e,t),{}),ta="SweetAlert2:",po=t=>t.charAt(0).toUpperCase()+t.slice(1),ie=t=>{console.warn(`${ta} ${typeof t=="object"?t.join(" "):t}`)},at=t=>{console.error(`${ta} ${t}`)},na=[],pd=t=>{na.includes(t)||(na.push(t),ie(t))},oa=(t,e=null)=>{pd(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},_n=t=>typeof t=="function"?t():t,ho=t=>t&&typeof t.toPromise=="function",Zt=t=>ho(t)?t.toPromise():Promise.resolve(t),go=t=>t&&Promise.resolve(t)===t,se=()=>document.body.querySelector(`.${g.container}`),Jt=t=>{const e=se();return e?e.querySelector(t):null},he=t=>Jt(`.${t}`),M=()=>he(g.popup),wt=()=>he(g.icon),hd=()=>he(g["icon-content"]),ra=()=>he(g.title),bo=()=>he(g["html-container"]),aa=()=>he(g.image),wo=()=>he(g["progress-steps"]),En=()=>he(g["validation-message"]),$e=()=>Jt(`.${g.actions} .${g.confirm}`),vt=()=>Jt(`.${g.actions} .${g.cancel}`),it=()=>Jt(`.${g.actions} .${g.deny}`),gd=()=>he(g["input-label"]),yt=()=>Jt(`.${g.loader}`),Qt=()=>he(g.actions),ia=()=>he(g.footer),xn=()=>he(g["timer-progress-bar"]),vo=()=>he(g.close),bd=`
|
|
360
365
|
a[href],
|
|
361
366
|
area[href],
|
|
362
367
|
input:not([disabled]),
|
|
@@ -371,7 +376,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
371
376
|
audio[controls],
|
|
372
377
|
video[controls],
|
|
373
378
|
summary
|
|
374
|
-
`,
|
|
379
|
+
`,yo=()=>{const t=M();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((i,c)=>{const l=parseInt(i.getAttribute("tabindex")||"0"),s=parseInt(c.getAttribute("tabindex")||"0");return l>s?1:l<s?-1:0}),o=t.querySelectorAll(bd),a=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(a))].filter(i=>fe(i))},ko=()=>De(document.body,g.shown)&&!De(document.body,g["toast-shown"])&&!De(document.body,g["no-backdrop"]),Tn=()=>{const t=M();return t?De(t,g.toast):!1},wd=()=>{const t=M();return t?t.hasAttribute("data-loading"):!1},ge=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html"),a=o.querySelector("head");a&&Array.from(a.childNodes).forEach(c=>{t.appendChild(c)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(c=>{c instanceof HTMLVideoElement||c instanceof HTMLAudioElement?t.appendChild(c.cloneNode(!0)):t.appendChild(c)})}},De=(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},vd=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Sn).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},be=(t,e,n)=>{if(vd(t,e),!e.customClass)return;const o=e.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){ie(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}D(t,o)}},In=(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}`)}},sa=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},la=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(a=>{n?a.classList.add(o):a.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},D=(t,e)=>{la(t,e,!0)},ve=(t,e)=>{la(t,e,!1)},Ye=(t,e)=>{const n=Array.from(t.children);for(let o=0;o<n.length;o++){const a=n[o];if(a instanceof HTMLElement&&De(a,e))return a}},st=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},Y=(t,e="flex")=>{t&&(t.style.display=e)},te=t=>{t&&(t.style.display="none")},Co=(t,e="block")=>{t&&new MutationObserver(()=>{en(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},ca=(t,e,n,o)=>{const a=t.querySelector(e);a&&a.style.setProperty(n,o)},en=(t,e,n="flex")=>{e?Y(t,n):te(t)},fe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),yd=()=>!fe($e())&&!fe(it())&&!fe(vt()),So=t=>t.scrollHeight>t.clientHeight,kd=(t,e)=>{let n=t;for(;n&&n!==e;){if(So(n))return!0;n=n.parentElement}return!1},da=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},_o=(t,e=!1)=>{const n=xn();n&&fe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Cd=()=>{const t=xn();if(!t)return;const 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.width=`${o}%`},Sd=()=>typeof window>"u"||typeof document>"u",_d=`
|
|
375
380
|
<div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
|
|
376
381
|
<button type="button" class="${g.close}"></button>
|
|
377
382
|
<ul class="${g["progress-steps"]}"></ul>
|
|
@@ -379,19 +384,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
379
384
|
<img class="${g.image}" />
|
|
380
385
|
<h2 class="${g.title}" id="${g.title}"></h2>
|
|
381
386
|
<div class="${g["html-container"]}" id="${g["html-container"]}"></div>
|
|
382
|
-
<input class="${g.input}" />
|
|
387
|
+
<input class="${g.input}" id="${g.input}" />
|
|
383
388
|
<input type="file" class="${g.file}" />
|
|
384
389
|
<div class="${g.range}">
|
|
385
390
|
<input type="range" />
|
|
386
391
|
<output></output>
|
|
387
392
|
</div>
|
|
388
|
-
<select class="${g.select}"></select>
|
|
393
|
+
<select class="${g.select}" id="${g.select}"></select>
|
|
389
394
|
<div class="${g.radio}"></div>
|
|
390
|
-
<label
|
|
391
|
-
<input type="checkbox" />
|
|
395
|
+
<label class="${g.checkbox}">
|
|
396
|
+
<input type="checkbox" id="${g.checkbox}" />
|
|
392
397
|
<span class="${g.label}"></span>
|
|
393
398
|
</label>
|
|
394
|
-
<textarea class="${g.textarea}"></textarea>
|
|
399
|
+
<textarea class="${g.textarea}" id="${g.textarea}"></textarea>
|
|
395
400
|
<div class="${g["validation-message"]}" id="${g["validation-message"]}"></div>
|
|
396
401
|
<div class="${g.actions}">
|
|
397
402
|
<div class="${g.loader}"></div>
|
|
@@ -404,22 +409,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
404
409
|
<div class="${g["timer-progress-bar"]}"></div>
|
|
405
410
|
</div>
|
|
406
411
|
</div>
|
|
407
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
408
|
-
<div class="swal2-success-circular-line-left"></div>
|
|
412
|
+
`.replace(/(^|\n)\s*/g,""),Ed=()=>{const t=se();return t?(t.remove(),ve([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},lt=()=>{T.currentInstance.resetValidationMessage()},xd=()=>{const t=M(),e=Ye(t,g.input),n=Ye(t,g.file),o=t.querySelector(`.${g.range} input`),a=t.querySelector(`.${g.range} output`),i=Ye(t,g.select),c=t.querySelector(`.${g.checkbox} input`),l=Ye(t,g.textarea);e.oninput=lt,n.onchange=lt,i.onchange=lt,c.onchange=lt,l.oninput=lt,o.oninput=()=>{lt(),a.value=o.value},o.onchange=()=>{lt(),a.value=o.value}},Td=t=>typeof t=="string"?document.querySelector(t):t,Id=t=>{const e=M();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Ad=t=>{window.getComputedStyle(t).direction==="rtl"&&D(se(),g.rtl)},Pd=t=>{const e=Ed();if(Sd()){at("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&D(n,g["no-transition"]),ge(n,_d),n.dataset.swal2Theme=t.theme;const o=Td(t.target);o.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),Id(t),Ad(o),xd()},Eo=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?$d(t,e):t&&ge(e,t)},$d=(t,e)=>{t.jquery?Bd(e,t):ge(e,t.toString())},Bd=(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))},Ld=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?te(n):Y(n),be(n,e,"actions"),Od(n,o,e),ge(o,e.loaderHtml||""),be(o,e,"loader"))};function Od(t,e,n){const o=$e(),a=it(),i=vt();!o||!a||!i||(To(o,"confirm",n),To(a,"deny",n),To(i,"cancel",n),Nd(o,a,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(a,o)):(t.insertBefore(i,e),t.insertBefore(a,e),t.insertBefore(o,e))))}function Nd(t,e,n,o){if(!o.buttonsStyling){ve([t,e,n],g.styled);return}D([t,e,n],g.styled),o.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),xo(t),xo(e),xo(n)}function xo(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function To(t,e,n){const o=po(e);en(t,n[`show${o}Button`],"inline-block"),ge(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=g[e],be(t,n,`${e}Button`)}const Md=(t,e)=>{const n=vo();n&&(ge(n,e.closeButtonHtml||""),be(n,e,"closeButton"),en(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},Dd=(t,e)=>{const n=se();n&&(Rd(n,e.backdrop),Vd(n,e.position),jd(n,e.grow),be(n,e,"container"))};function Rd(t,e){typeof e=="string"?t.style.background=e:e||D([document.documentElement,document.body],g["no-backdrop"])}function Vd(t,e){e&&(e in g?D(t,g[e]):(ie('The "position" parameter is not valid, defaulting to "center"'),D(t,g.center)))}function jd(t,e){e&&D(t,g[`grow-${e}`])}var j={innerParams:new WeakMap,domCache:new WeakMap};const Hd=["input","file","range","select","radio","checkbox","textarea"],zd=(t,e)=>{const n=M();if(!n)return;const o=j.innerParams.get(t),a=!o||e.input!==o.input;Hd.forEach(i=>{const c=Ye(n,g[i]);c&&(Wd(i,e.inputAttributes),c.className=g[i],a&&te(c))}),e.input&&(a&&Fd(e),Kd(e))},Fd=t=>{if(!t.input)return;if(!K[t.input]){at(`Unexpected type of input! Expected ${Object.keys(K).join(" | ")}, got "${t.input}"`);return}const e=ua(t.input);if(!e)return;const n=K[t.input](e,t);Y(e),t.inputAutoFocus&&setTimeout(()=>{sa(n)})},Ud=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},Wd=(t,e)=>{const n=M();if(!n)return;const o=In(n,t);if(o){Ud(o);for(const a in e)o.setAttribute(a,e[a])}},Kd=t=>{if(!t.input)return;const e=ua(t.input);e&&be(e,t,"input")},Io=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},tn=(t,e,n)=>{if(n.inputLabel){const o=document.createElement("label"),a=g["input-label"];o.setAttribute("for",t.id),o.className=a,typeof n.customClass=="object"&&D(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},ua=t=>{const e=M();if(e)return Ye(e,g[t]||g.input)},An=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:go(e)||ie(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},K={};K.text=K.email=K.password=K.number=K.tel=K.url=K.search=K.date=K["datetime-local"]=K.time=K.week=K.month=(t,e)=>(An(t,e.inputValue),tn(t,t,e),Io(t,e),t.type=e.input,t),K.file=(t,e)=>(tn(t,t,e),Io(t,e),t),K.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return An(n,e.inputValue),n.type=e.input,An(o,e.inputValue),tn(n,t,e),t},K.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ge(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return tn(t,t,e),t},K.radio=t=>(t.textContent="",t),K.checkbox=(t,e)=>{const n=In(M(),"checkbox");n.value="1",n.checked=!!e.inputValue;const o=t.querySelector("span");return ge(o,e.inputPlaceholder||e.inputLabel),n},K.textarea=(t,e)=>{An(t,e.inputValue),Io(t,e),tn(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(M()).width),a=()=>{if(!document.body.contains(t))return;const i=t.offsetWidth+n(t);i>o?M().style.width=`${i}px`:st(M(),"width",e.width)};new MutationObserver(a).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Gd=(t,e)=>{const n=bo();n&&(Co(n),be(n,e,"htmlContainer"),e.html?(Eo(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):te(n),zd(t,e))},qd=(t,e)=>{const n=ia();n&&(Co(n),en(n,e.footer,"block"),e.footer&&Eo(e.footer,n),be(n,e,"footer"))},Yd=(t,e)=>{const n=j.innerParams.get(t),o=wt();if(!o)return;if(n&&e.icon===n.icon){pa(o,e),ma(o,e);return}if(!e.icon&&!e.iconHtml){te(o);return}if(e.icon&&Object.keys(Sn).indexOf(e.icon)===-1){at(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),te(o);return}Y(o),pa(o,e),ma(o,e),D(o,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",fa)},ma=(t,e)=>{for(const[n,o]of Object.entries(Sn))e.icon!==n&&ve(t,o);D(t,e.icon&&Sn[e.icon]),Jd(t,e),fa(),be(t,e,"icon")},fa=()=>{const t=M();if(!t)return;const 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},Xd=t=>`
|
|
413
|
+
${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
|
|
409
414
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
410
|
-
<div class="swal2-success-ring"></div>
|
|
411
|
-
<div class="swal2-success-
|
|
412
|
-
|
|
415
|
+
<div class="swal2-success-ring"></div>
|
|
416
|
+
${t.animation?'<div class="swal2-success-fix"></div>':""}
|
|
417
|
+
${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
|
|
418
|
+
`,Zd=`
|
|
413
419
|
<span class="swal2-x-mark">
|
|
414
420
|
<span class="swal2-x-mark-line-left"></span>
|
|
415
421
|
<span class="swal2-x-mark-line-right"></span>
|
|
416
422
|
</span>
|
|
417
|
-
`,ei=(t,e)=>{t.textContent="",e.iconHtml?Q(t,ti(e.iconHtml)):e.icon==="success"?Q(t,Rc):e.icon==="error"?Q(t,Vc):Q(t,ti({question:"?",warning:"!",info:"i"}[e.icon]))},jc=(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"])qr(t,n,"backgroundColor",e.iconColor);qr(t,".swal2-success-ring","borderColor",e.iconColor)}},ti=t=>`<div class="${g["icon-content"]}">${t}</div>`,Hc=(t,e)=>{const n=zr();if(!e.imageUrl)return ee(n);Y(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,ye(n,e,"image")},Fc=t=>{const e=document.createElement("li");return M(e,g["progress-step"]),Q(e,t),e},zc=t=>{const e=document.createElement("li");return M(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Uc=(t,e)=>{const n=Ur();if(!e.progressSteps||e.progressSteps.length===0)return ee(n);Y(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&de("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,i)=>{const a=Fc(o);if(n.appendChild(a),i===e.currentProgressStep&&M(a,g["active-progress-step"]),i!==e.progressSteps.length-1){const c=zc(e);n.appendChild(c)}})},Wc=(t,e)=>{const n=Fr();In(n,e.title||e.titleText,"block"),e.title&&mo(e.title,n),e.titleText&&(n.innerText=e.titleText),ye(n,e,"title")},Kc=(t,e)=>{const n=J(),o=R();e.toast?(Xt(n,"width",e.width),o.style.width="100%",o.insertBefore(ft(),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),ee(_n()),Gc(o,e)},Gc=(t,e)=>{t.className=`${g.popup} ${he(t)?e.showClass.popup:""}`,e.toast?(M([document.documentElement,document.body],g["toast-shown"]),M(t,g.toast)):M(t,g.modal),ye(t,e,"popup"),typeof e.customClass=="string"&&M(t,e.customClass),e.icon&&M(t,g[`icon-${e.icon}`])},ni=(t,e)=>{Kc(t,e),Tc(t,e),Uc(t,e),Mc(t,e),Hc(t,e),Wc(t,e),Nc(t,e),Oc(t,e),Cc(t,e),Lc(t,e),typeof e.didRender=="function"&&e.didRender(R())},ht=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),qc=()=>{pe(document.body.children).forEach(e=>{e===J()||e.contains(J())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},oi=()=>{pe(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ri=["swal-title","swal-html","swal-footer"],Yc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return nu(n),Object.assign(Xc(n),Zc(n),Jc(n),Qc(n),eu(n),tu(n,ri))},Xc=t=>{const e={};return pe(t.querySelectorAll("swal-param")).forEach(n=>{at(n,["name","value"]);const o=n.getAttribute("name"),i=n.getAttribute("value");typeof mt[o]=="boolean"&&i==="false"&&(e[o]=!1),typeof mt[o]=="object"&&(e[o]=JSON.parse(i))}),e},Zc=t=>{const e={};return pe(t.querySelectorAll("swal-button")).forEach(n=>{at(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${no(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Jc=t=>{const e={},n=t.querySelector("swal-image");return n&&(at(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},Qc=t=>{const e={},n=t.querySelector("swal-icon");return n&&(at(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},eu=t=>{const e={},n=t.querySelector("swal-input");n&&(at(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={},pe(o).forEach(i=>{at(i,["value"]);const a=i.getAttribute("value"),c=i.innerHTML;e.inputOptions[a]=c})),e},tu=(t,e)=>{const n={};for(const o in e){const i=e[o],a=t.querySelector(i);a&&(at(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},nu=t=>{const e=ri.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);pe(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&de(`Unrecognized element <${o}>`)})},at=(t,e)=>{pe(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&de([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ii={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 ou(t){t.inputValidator||Object.keys(ii).forEach(e=>{t.input===e&&(t.inputValidator=ii[e])})}function ru(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(de('Target parameter is not valid, defaulting to "body"'),t.target="body")}function iu(t){ou(t),t.showLoaderOnConfirm&&!t.preConfirm&&de(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
423
|
+
`,pa=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,o="";e.iconHtml?o=ha(e.iconHtml):e.icon==="success"?(o=Xd(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?o=Zd:e.icon&&(o=ha({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==o.trim()&&ge(t,o)},Jd=(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"])ca(t,n,"background-color",e.iconColor);ca(t,".swal2-success-ring","border-color",e.iconColor)}},ha=t=>`<div class="${g["icon-content"]}">${t}</div>`,Qd=(t,e)=>{const n=aa();if(n){if(!e.imageUrl){te(n);return}Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),st(n,"width",e.imageWidth),st(n,"height",e.imageHeight),n.className=g.image,be(n,e,"image")}};let Ao=!1,ga=0,ba=0,wa=0,va=0;const eu=t=>{t.addEventListener("mousedown",Pn),document.body.addEventListener("mousemove",$n),t.addEventListener("mouseup",Bn),t.addEventListener("touchstart",Pn),document.body.addEventListener("touchmove",$n),t.addEventListener("touchend",Bn)},tu=t=>{t.removeEventListener("mousedown",Pn),document.body.removeEventListener("mousemove",$n),t.removeEventListener("mouseup",Bn),t.removeEventListener("touchstart",Pn),document.body.removeEventListener("touchmove",$n),t.removeEventListener("touchend",Bn)},Pn=t=>{const e=M();if(t.target===e||wt().contains(t.target)){Ao=!0;const n=ya(t);ga=n.clientX,ba=n.clientY,wa=parseInt(e.style.insetInlineStart)||0,va=parseInt(e.style.insetBlockStart)||0,D(e,"swal2-dragging")}},$n=t=>{const e=M();if(Ao){let{clientX:n,clientY:o}=ya(t);e.style.insetInlineStart=`${wa+(n-ga)}px`,e.style.insetBlockStart=`${va+(o-ba)}px`}},Bn=()=>{const t=M();Ao=!1,ve(t,"swal2-dragging")},ya=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},nu=(t,e)=>{const n=se(),o=M();if(!(!n||!o)){if(e.toast){st(n,"width",e.width),o.style.width="100%";const a=yt();a&&o.insertBefore(a,wt())}else st(o,"width",e.width);st(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),te(En()),ou(o,e),e.draggable&&!e.toast?(D(o,g.draggable),eu(o)):(ve(o,g.draggable),tu(o))}},ou=(t,e)=>{const n=e.showClass||{};t.className=`${g.popup} ${fe(t)?n.popup:""}`,e.toast?(D([document.documentElement,document.body],g["toast-shown"]),D(t,g.toast)):D(t,g.modal),be(t,e,"popup"),typeof e.customClass=="string"&&D(t,e.customClass),e.icon&&D(t,g[`icon-${e.icon}`])},ru=(t,e)=>{const n=wo();if(!n)return;const{progressSteps:o,currentProgressStep:a}=e;if(!o||o.length===0||a===void 0){te(n);return}Y(n),n.textContent="",a>=o.length&&ie("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,c)=>{const l=au(i);if(n.appendChild(l),c===a&&D(l,g["active-progress-step"]),c!==o.length-1){const s=iu(e);n.appendChild(s)}})},au=t=>{const e=document.createElement("li");return D(e,g["progress-step"]),ge(e,t),e},iu=t=>{const e=document.createElement("li");return D(e,g["progress-step-line"]),t.progressStepsDistance&&st(e,"width",t.progressStepsDistance),e},su=(t,e)=>{const n=ra();n&&(Co(n),en(n,e.title||e.titleText,"block"),e.title&&Eo(e.title,n),e.titleText&&(n.innerText=e.titleText),be(n,e,"title"))},ka=(t,e)=>{nu(t,e),Dd(t,e),ru(t,e),Yd(t,e),Qd(t,e),su(t,e),Md(t,e),Gd(t,e),Ld(t,e),qd(t,e);const n=M();typeof e.didRender=="function"&&n&&e.didRender(n),T.eventEmitter.emit("didRender",n)},lu=()=>fe(M()),Ca=()=>{var t;return(t=$e())===null||t===void 0?void 0:t.click()},cu=()=>{var t;return(t=it())===null||t===void 0?void 0:t.click()},du=()=>{var t;return(t=vt())===null||t===void 0?void 0:t.click()},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Sa=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},uu=(t,e,n)=>{Sa(t),e.toast||(t.keydownHandler=o=>fu(e,o,n),t.keydownTarget=e.keydownListenerCapture?window:M(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},Po=(t,e)=>{var n;const o=yo();if(o.length){t=t+e,t===-2&&(t=o.length-1),t===o.length?t=0:t===-1&&(t=o.length-1),o[t].focus();return}(n=M())===null||n===void 0||n.focus()},_a=["ArrowRight","ArrowDown"],mu=["ArrowLeft","ArrowUp"],fu=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?pu(e,t):e.key==="Tab"?hu(e):[..._a,...mu].includes(e.key)?gu(e.key):e.key==="Escape"&&bu(e,t,n)))},pu=(t,e)=>{if(!_n(e.allowEnterKey))return;const n=In(M(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Ca(),t.preventDefault()}},hu=t=>{const e=t.target,n=yo();let o=-1;for(let a=0;a<n.length;a++)if(e===n[a]){o=a;break}t.shiftKey?Po(o,-1):Po(o,1),t.stopPropagation(),t.preventDefault()},gu=t=>{const e=Qt(),n=$e(),o=it(),a=vt();if(!e||!n||!o||!a)return;const i=[n,o,a];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const c=_a.includes(t)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let s=0;s<e.children.length;s++){if(l=l[c],!l)return;if(l instanceof HTMLButtonElement&&fe(l))break}l instanceof HTMLButtonElement&&l.focus()}},bu=(t,e,n)=>{t.preventDefault(),_n(e.allowEscapeKey)&&n(kt.esc)};var Ct={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const wu=()=>{const t=se();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ea=()=>{Array.from(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")})},xa=typeof window<"u"&&!!window.GestureEvent,vu=()=>{if(xa&&!De(document.body,g.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,D(document.body,g.iosfix),yu()}},yu=()=>{const t=se();if(!t)return;let e;t.ontouchstart=n=>{e=ku(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},ku=t=>{const e=t.target,n=se(),o=bo();return!n||!o||Cu(t)||Su(t)?!1:e===n||!So(n)&&e instanceof HTMLElement&&!kd(e,o)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(So(o)&&o.contains(e))},Cu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Su=t=>t.touches&&t.touches.length>1,_u=()=>{if(De(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}},Eu=()=>{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};let St=null;const xu=t=>{St===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(St=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${St+Eu()}px`)},Tu=()=>{St!==null&&(document.body.style.paddingRight=`${St}px`,St=null)};function Ta(t,e,n,o){Tn()?Aa(t,o):(fd(n).then(()=>Aa(t,o)),Sa(T)),xa?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),ko()&&(Tu(),_u(),Ea()),Iu()}function Iu(){ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Xe(t){t=Pu(t);const e=Ct.swalPromiseResolve.get(this),n=Au(this);this.isAwaitingPromise?t.isDismissed||(nn(this),e(t)):n&&e(t)}const Au=t=>{const e=M();if(!e)return!1;const n=j.innerParams.get(t);if(!n||De(e,n.hideClass.popup))return!1;ve(e,n.showClass.popup),D(e,n.hideClass.popup);const o=se();return ve(o,n.showClass.backdrop),D(o,n.hideClass.backdrop),$u(t,e,n),!0};function Ia(t){const e=Ct.swalPromiseReject.get(this);nn(this),e&&e(t)}const nn=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,j.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),$u=(t,e,n)=>{var o;const a=se(),i=da(e);typeof n.willClose=="function"&&n.willClose(e),(o=T.eventEmitter)===null||o===void 0||o.emit("willClose",e),i?Bu(t,e,a,n.returnFocus,n.didClose):Ta(t,a,n.returnFocus,n.didClose)},Bu=(t,e,n,o,a)=>{T.swalCloseEventFinishedCallback=Ta.bind(null,t,n,o,a);const i=function(c){if(c.target===e){var l;(l=T.swalCloseEventFinishedCallback)===null||l===void 0||l.call(T),delete T.swalCloseEventFinishedCallback,e.removeEventListener("animationend",i),e.removeEventListener("transitionend",i)}};e.addEventListener("animationend",i),e.addEventListener("transitionend",i)},Aa=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=T.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},_t=t=>{let e=M();if(e||new dt,e=M(),!e)return;const n=yt();Tn()?te(wt()):Lu(e,t),Y(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},Lu=(t,e)=>{const n=Qt(),o=yt();!n||!o||(!e&&fe($e())&&(e=$e()),Y(n),e&&(te(e),o.setAttribute("data-button-to-replace",e.className),n.insertBefore(o,e)),D([t,n],g.loading))},Ou=(t,e)=>{e.input==="select"||e.input==="radio"?Vu(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(ho(e.inputValue)||go(e.inputValue))&&(_t($e()),ju(t,e))},Nu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Mu(n);case"radio":return Du(n);case"file":return Ru(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Mu=t=>t.checked?1:0,Du=t=>t.checked?t.value:null,Ru=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Vu=(t,e)=>{const n=M();if(!n)return;const o=a=>{e.input==="select"?Hu(n,Ln(a),e):e.input==="radio"&&zu(n,Ln(a),e)};ho(e.inputOptions)||go(e.inputOptions)?(_t($e()),Zt(e.inputOptions).then(a=>{t.hideLoading(),o(a)})):typeof e.inputOptions=="object"?o(e.inputOptions):at(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},ju=(t,e)=>{const n=t.getInput();n&&(te(n),Zt(e.inputValue).then(o=>{n.value=e.input==="number"?`${parseFloat(o)||0}`:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{at(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()}))};function Hu(t,e,n){const o=Ye(t,g.select);if(!o)return;const a=(i,c,l)=>{const s=document.createElement("option");s.value=l,ge(s,c),s.selected=Pa(l,n.inputValue),i.appendChild(s)};e.forEach(i=>{const c=i[0],l=i[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(d=>a(s,d[1],d[0]))}else a(o,l,c)}),o.focus()}function zu(t,e,n){const o=Ye(t,g.radio);if(!o)return;e.forEach(i=>{const c=i[0],l=i[1],s=document.createElement("input"),d=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,Pa(c,n.inputValue)&&(s.checked=!0);const u=document.createElement("span");ge(u,l),u.className=g.label,d.appendChild(s),d.appendChild(u),o.appendChild(d)});const a=o.querySelectorAll("input");a.length&&a[0].focus()}const Ln=t=>{const e=[];return t instanceof Map?t.forEach((n,o)=>{let a=n;typeof a=="object"&&(a=Ln(a)),e.push([o,a])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=Ln(o)),e.push([n,o])}),e},Pa=(t,e)=>!!e&&e.toString()===t.toString(),Fu=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?$a(t,"confirm"):Bo(t,!0)},Uu=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?$a(t,"deny"):$o(t,!1)},Wu=(t,e)=>{t.disableButtons(),e(kt.cancel)},$a=(t,e)=>{const n=j.innerParams.get(t);if(!n.input){at(`The "input" parameter is needed to be set when using returnInputValueOn${po(e)}`);return}const o=t.getInput(),a=Nu(t,n);n.inputValidator?Ku(t,a,e):o&&!o.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||o.validationMessage)):e==="deny"?$o(t,a):Bo(t,a)},Ku=(t,e,n)=>{const o=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Zt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?$o(t,e):Bo(t,e)})},$o=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(it()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preDeny(e,n.validationMessage))).then(a=>{a===!1?(t.hideLoading(),nn(t)):t.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>La(t||void 0,a))):t.close({isDenied:!0,value:e})},Ba=(t,e)=>{t.close({isConfirmed:!0,value:e})},La=(t,e)=>{t.rejectPromise(e)},Bo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>Zt(n.preConfirm(e,n.validationMessage))).then(a=>{fe(En())||a===!1?(t.hideLoading(),nn(t)):Ba(t,typeof a>"u"?e:a)}).catch(a=>La(t||void 0,a))):Ba(t,e)};function On(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);te(e.loader),Tn()?t.icon&&Y(wt()):Gu(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 Gu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):yd()&&te(t.actions)};function Oa(){const t=j.innerParams.get(this),e=j.domCache.get(this);return e?In(e.popup,t.input):null}function Na(t,e,n){const o=j.domCache.get(t);e.forEach(a=>{o[a].disabled=n})}function Ma(t,e){const n=M();if(!(!n||!t))if(t.type==="radio"){const o=n.querySelectorAll(`[name="${g.radio}"]`);for(let a=0;a<o.length;a++)o[a].disabled=e}else t.disabled=e}function Da(){Na(this,["confirmButton","denyButton","cancelButton"],!1)}function Ra(){Na(this,["confirmButton","denyButton","cancelButton"],!0)}function Va(){Ma(this.getInput(),!1)}function ja(){Ma(this.getInput(),!0)}function Ha(t){const e=j.domCache.get(this),n=j.innerParams.get(this);ge(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&D(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",g["validation-message"]),sa(o),D(o,g.inputerror))}function za(){const t=j.domCache.get(this);t.validationMessage&&te(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),ve(e,g.inputerror))}const Et={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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:"×",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:{},inputAutoFocus:!0,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,topLayer:!1},qu=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Yu={allowEnterKey:void 0},Xu=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Fa=t=>Object.prototype.hasOwnProperty.call(Et,t),Ua=t=>qu.indexOf(t)!==-1,Wa=t=>Yu[t],Zu=t=>{Fa(t)||ie(`Unknown parameter "${t}"`)},Ju=t=>{Xu.includes(t)&&ie(`The parameter "${t}" is incompatible with toasts`)},Qu=t=>{const e=Wa(t);e&&oa(t,e)},Ka=t=>{t.backdrop===!1&&t.allowOutsideClick&&ie('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&ie(`Invalid theme "${t.theme}"`);for(const e in t)Zu(e),t.toast&&Ju(e),Qu(e)};function Ga(t){const e=se(),n=M(),o=j.innerParams.get(this);if(!n||De(n,o.hideClass.popup)){ie("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.");return}const a=em(t),i=Object.assign({},o,a);Ka(i),e.dataset.swal2Theme=i.theme,ka(this,i),j.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const em=t=>{const e={};return Object.keys(t).forEach(n=>{Ua(n)?e[n]=t[n]:ie(`Invalid parameter to update: ${n}`)}),e};function qa(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Ya(this);return}t.popup&&T.swalCloseEventFinishedCallback&&(T.swalCloseEventFinishedCallback(),delete T.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),T.eventEmitter.emit("didDestroy"),tm(this)}const tm=t=>{Ya(t),delete t.params,delete T.keydownHandler,delete T.keydownTarget,delete T.currentInstance},Ya=t=>{t.isAwaitingPromise?(Lo(j,t),t.isAwaitingPromise=!0):(Lo(Ct,t),Lo(j,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},Lo=(t,e)=>{for(const n in t)t[n].delete(e)};var nm=Object.freeze({__proto__:null,_destroy:qa,close:Xe,closeModal:Xe,closePopup:Xe,closeToast:Xe,disableButtons:Ra,disableInput:ja,disableLoading:On,enableButtons:Da,enableInput:Va,getInput:Oa,handleAwaitingPromise:nn,hideLoading:On,rejectPromise:Ia,resetValidationMessage:za,showValidationMessage:Ha,update:Ga});const om=(t,e,n)=>{t.toast?rm(t,e,n):(im(e),sm(e),lm(t,e,n))},rm=(t,e,n)=>{e.popup.onclick=()=>{t&&(am(t)||t.timer||t.input)||n(kt.close)}},am=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Nn=!1;const im=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(Nn=!0)}}},sm=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(Nn=!0)}}},lm=(t,e,n)=>{e.container.onclick=o=>{if(Nn){Nn=!1;return}o.target===e.container&&_n(t.allowOutsideClick)&&n(kt.backdrop)}},cm=t=>typeof t=="object"&&t.jquery,Xa=t=>t instanceof Element||cm(t),dm=t=>{const e={};return typeof t[0]=="object"&&!Xa(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const a=t[o];typeof a=="string"||Xa(a)?e[n]=a:a!==void 0&&at(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof a}`)}),e};function um(...t){return new this(...t)}function mm(t){class e extends this{_main(o,a){return super._main(o,Object.assign({},t,a))}}return e}const fm=()=>T.timeout&&T.timeout.getTimerLeft(),Za=()=>{if(T.timeout)return Cd(),T.timeout.stop()},Ja=()=>{if(T.timeout){const t=T.timeout.start();return _o(t),t}},pm=()=>{const t=T.timeout;return t&&(t.running?Za():Ja())},hm=t=>{if(T.timeout){const e=T.timeout.increase(t);return _o(e,!0),e}},gm=()=>!!(T.timeout&&T.timeout.isRunning());let Qa=!1;const Oo={};function bm(t="data-swal-template"){Oo[t]=this,Qa||(document.body.addEventListener("click",wm),Qa=!0)}const wm=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Oo){const o=e.getAttribute(n);if(o){Oo[n].fire({template:o});return}}};class vm{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const o=this._getHandlersByEventName(e);o.includes(n)||o.push(n)}once(e,n){const o=(...a)=>{this.removeListener(e,o),n.apply(this,a)};this.on(e,o)}emit(e,...n){this._getHandlersByEventName(e).forEach(o=>{try{o.apply(this,n)}catch(a){console.error(a)}})}removeListener(e,n){const o=this._getHandlersByEventName(e),a=o.indexOf(n);a>-1&&o.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}T.eventEmitter=new vm;var ym=Object.freeze({__proto__:null,argsToParams:dm,bindClickHandler:bm,clickCancel:du,clickConfirm:Ca,clickDeny:cu,enableLoading:_t,fire:um,getActions:Qt,getCancelButton:vt,getCloseButton:vo,getConfirmButton:$e,getContainer:se,getDenyButton:it,getFocusableElements:yo,getFooter:ia,getHtmlContainer:bo,getIcon:wt,getIconContent:hd,getImage:aa,getInputLabel:gd,getLoader:yt,getPopup:M,getProgressSteps:wo,getTimerLeft:fm,getTimerProgressBar:xn,getTitle:ra,getValidationMessage:En,increaseTimer:hm,isDeprecatedParameter:Wa,isLoading:wd,isTimerRunning:gm,isUpdatableParameter:Ua,isValidParameter:Fa,isVisible:lu,mixin:mm,off:(t,e)=>{if(!t){T.eventEmitter.reset();return}e?T.eventEmitter.removeListener(t,e):T.eventEmitter.removeAllListeners(t)},on:(t,e)=>{T.eventEmitter.on(t,e)},once:(t,e)=>{T.eventEmitter.once(t,e)},resumeTimer:Ja,showLoading:_t,stopTimer:Za,toggleTimer:pm});class km{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.started&&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 ei=["swal-title","swal-html","swal-footer"],Cm=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Pm(n),Object.assign(Sm(n),_m(n),Em(n),xm(n),Tm(n),Im(n),Am(n,ei))},Sm=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(o=>{ct(o,["name","value"]);const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(typeof Et[a]=="boolean"?e[a]=i!=="false":typeof Et[a]=="object"?e[a]=JSON.parse(i):e[a]=i)}),e},_m=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(o=>{const a=o.getAttribute("name"),i=o.getAttribute("value");!a||!i||(e[a]=new Function(`return ${i}`)())}),e},Em=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(o=>{ct(o,["type","color","aria-label"]);const a=o.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=o.innerHTML,e[`show${po(a)}Button`]=!0,o.hasAttribute("color")&&(e[`${a}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),e},xm=t=>{const e={},n=t.querySelector("swal-image");return n&&(ct(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},Tm=t=>{const e={},n=t.querySelector("swal-icon");return n&&(ct(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Im=t=>{const e={},n=t.querySelector("swal-input");n&&(ct(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=Array.from(t.querySelectorAll("swal-input-option"));return o.length&&(e.inputOptions={},o.forEach(a=>{ct(a,["value"]);const i=a.getAttribute("value");if(!i)return;const c=a.innerHTML;e.inputOptions[i]=c})),e},Am=(t,e)=>{const n={};for(const o in e){const a=e[o],i=t.querySelector(a);i&&(ct(i,[]),n[a.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Pm=t=>{const e=ei.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.includes(o)||ie(`Unrecognized element <${o}>`)})},ct=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ie([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ti=10,$m=t=>{const e=se(),n=M();typeof t.willOpen=="function"&&t.willOpen(n),T.eventEmitter.emit("willOpen",n);const a=window.getComputedStyle(document.body).overflowY;Om(e,n,t),setTimeout(()=>{Bm(e,n)},ti),ko()&&(Lm(e,t.scrollbarPadding,a),wu()),!Tn()&&!T.previousActiveElement&&(T.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),T.eventEmitter.emit("didOpen",n),ve(e,g["no-transition"])},Mn=t=>{const e=M();if(t.target!==e)return;const n=se();e.removeEventListener("animationend",Mn),e.removeEventListener("transitionend",Mn),n.style.overflowY="auto"},Bm=(t,e)=>{da(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Mn),e.addEventListener("transitionend",Mn)):t.style.overflowY="auto"},Lm=(t,e,n)=>{vu(),e&&n!=="hidden"&&xu(n),setTimeout(()=>{t.scrollTop=0})},Om=(t,e,n)=>{D(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{D(e,n.showClass.popup),e.style.removeProperty("opacity")},ti)):Y(e,"grid"),D([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&D([document.documentElement,document.body],g["height-auto"])};var ni={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.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 Nm(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=ni.email),t.input==="url"&&(t.inputValidator=ni.url))}function Mm(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ie('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Dm(t){Nm(t),t.showLoaderOnConfirm&&!t.preConfirm&&ie(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
418
424
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
419
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
420
|
-
`).join("<br />")),gc(t)}class au{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 su=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+bc()}px`)},lu=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},cu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ne(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,M(document.body,g.iosfix),du(),uu()}},uu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&R().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},du=()=>{const t=J();let e;t.ontouchstart=n=>{e=mu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},mu=t=>{const e=t.target,n=J();return fu(t)||pu(t)?!1:e===n||!Yr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Yr(Sn())&&Sn().contains(e))},fu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",pu=t=>t.touches&&t.touches.length>1,hu=()=>{if(Ne(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Be(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},ai=10,gu=t=>{const e=J(),n=R();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;bu(e,n,t),setTimeout(()=>{yu(e,n)},ai),lo()&&(vu(e,t.scrollbarPadding,i),qc()),!Tn()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Be(e,g["no-transition"])},si=t=>{const e=R();if(t.target!==e)return;const n=J();e.removeEventListener(Zt,si),n.style.overflowY="auto"},yu=(t,e)=>{Zt&&Xr(e)?(t.style.overflowY="hidden",e.addEventListener(Zt,si)):t.style.overflowY="auto"},vu=(t,e,n)=>{cu(),e&&n!=="hidden"&&su(),setTimeout(()=>{t.scrollTop=0})},bu=(t,e,n)=>{M(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{M(e,n.showClass.popup),e.style.removeProperty("opacity")},ai),M([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&M([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=R();e||new st,e=R();const n=ft();Tn()?ee(qt()):Cu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Cu=(t,e)=>{const n=Yt(),o=ft();!e&&he(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),M([t,n],g.loading)},wu=(t,e)=>{e.input==="select"||e.input==="radio"?Tu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(oo(e.inputValue)||ro(e.inputValue))&&(gt(Ee()),Iu(t,e))},ku=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Su(n);case"radio":return _u(n);case"file":return Eu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Su=t=>t.checked?1:0,_u=t=>t.checked?t.value:null,Eu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Tu=(t,e)=>{const n=R(),o=i=>Pu[e.input](n,ho(i),e);oo(e.inputOptions)||ro(e.inputOptions)?(gt(Ee()),Wt(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):ot(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Iu=(t,e)=>{const n=t.getInput();ee(n),Wt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{ot(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()})},Pu={select:(t,e,n)=>{const o=qe(t,g.select),i=(a,c,l)=>{const s=document.createElement("option");s.value=l,Q(s,c),s.selected=li(l,n.inputValue),a.appendChild(s)};e.forEach(a=>{const c=a[0],l=a[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(u=>i(s,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=qe(t,g.radio);e.forEach(a=>{const c=a[0],l=a[1],s=document.createElement("input"),u=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,li(c,n.inputValue)&&(s.checked=!0);const d=document.createElement("span");Q(d,l),d.className=g.label,u.appendChild(s),u.appendChild(d),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},ho=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=ho(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ho(o)),e.push([n,o])}),e},li=(t,e)=>e&&e.toString()===t.toString();function ci(){const t=O.innerParams.get(this);if(!t)return;const e=O.domCache.get(this);ee(e.loader),Tn()?t.icon&&Y(qt()):Au(e),Be([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 Au=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):ic()&&ee(t.actions)};function xu(t){const e=O.innerParams.get(t||this),n=O.domCache.get(t||this);return n?co(n.popup,e.input):null}const Qt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Bu=()=>he(R()),ui=()=>Ee()&&Ee().click(),$u=()=>Ge()&&Ge().click(),Ou=()=>rt()&&rt().click(),di=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Lu=(t,e,n,o)=>{di(e),n.toast||(e.keydownHandler=i=>Mu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:R(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},go=(t,e,n)=>{const o=so();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();R().focus()},mi=["ArrowRight","ArrowDown"],Nu=["ArrowLeft","ArrowUp"],Mu=(t,e,n)=>{const o=O.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Du(t,e,o):e.key==="Tab"?Ru(e,o):[...mi,...Nu].includes(e.key)?Vu(e.key):e.key==="Escape"&&ju(e,o,n)))},Du=(t,e,n)=>{if(kn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ui(),e.preventDefault()}},Ru=(t,e)=>{const n=t.target,o=so();let i=-1;for(let a=0;a<o.length;a++)if(n===o[a]){i=a;break}t.shiftKey?go(e,i,-1):go(e,i,1),t.stopPropagation(),t.preventDefault()},Vu=t=>{const e=Ee(),n=Ge(),o=rt();if(![e,n,o].includes(document.activeElement))return;const i=mi.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;for(let c=0;c<Yt().children.length;c++){if(a=a[i],!a)return;if(he(a)&&a instanceof HTMLButtonElement)break}a instanceof HTMLButtonElement&&a.focus()},ju=(t,e,n)=>{kn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function fi(t,e,n,o){Tn()?pi(t,o):(cc(n).then(()=>pi(t,o)),di(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),lo()&&(lu(),hu(),oi()),Hu()}function Hu(){Be([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Pn(t){t=Wu(t);const e=Qt.swalPromiseResolve.get(this),n=zu(this);this.isAwaitingPromise()?t.isDismissed||(en(this),e(t)):n&&e(t)}function Fu(){return!!O.awaitingPromise.get(this)}const zu=t=>{const e=R();if(!e)return!1;const n=O.innerParams.get(t);if(!n||Ne(e,n.hideClass.popup))return!1;Be(e,n.showClass.popup),M(e,n.hideClass.popup);const o=J();return Be(o,n.showClass.backdrop),M(o,n.hideClass.backdrop),Ku(t,e,n),!0};function Uu(t){const e=Qt.swalPromiseReject.get(this);en(this),e&&e(t)}const en=t=>{t.isAwaitingPromise()&&(O.awaitingPromise.delete(t),O.innerParams.get(t)||t._destroy())},Wu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Ku=(t,e,n)=>{const o=J(),i=Zt&&Xr(e);typeof n.willClose=="function"&&n.willClose(e),i?Gu(t,e,o,n.returnFocus,n.didClose):fi(t,o,n.returnFocus,n.didClose)},Gu=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=fi.bind(null,t,n,o,i),e.addEventListener(Zt,function(a){a.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},pi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function hi(t,e,n){const o=O.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function gi(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<o.length;i++)o[i].disabled=e}else t.disabled=e}function qu(){hi(this,["confirmButton","denyButton","cancelButton"],!1)}function Yu(){hi(this,["confirmButton","denyButton","cancelButton"],!0)}function Xu(){return gi(this.getInput(),!1)}function Zu(){return gi(this.getInput(),!0)}function Ju(t){const e=O.domCache.get(this),n=O.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&M(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Kr(o),M(o,g.inputerror))}function Qu(){const t=O.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Be(e,g.inputerror))}function ed(){return O.domCache.get(this).progressSteps}function td(t){const e=R(),n=O.innerParams.get(this);if(!e||Ne(e,n.hideClass.popup))return de("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=nd(t),i=Object.assign({},n,o);ni(this,i),O.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const nd=t=>{const e={};return Object.keys(t).forEach(n=>{jr(n)?e[n]=t[n]:de(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
421
|
-
|
|
422
|
-
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 od(){const t=O.domCache.get(this),e=O.innerParams.get(this);if(!e){yi(this);return}t.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),A.deferDisposalTimer&&(clearTimeout(A.deferDisposalTimer),delete A.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),rd(this)}const rd=t=>{yi(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},yi=t=>{t.isAwaitingPromise()?(yo(O,t),O.awaitingPromise.set(t,!0)):(yo(Qt,t),yo(O,t))},yo=(t,e)=>{for(const n in t)t[n].delete(e)},vi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:od,close:Pn,closeModal:Pn,closePopup:Pn,closeToast:Pn,disableButtons:Yu,disableInput:Zu,disableLoading:ci,enableButtons:qu,enableInput:Xu,getInput:xu,getProgressSteps:ed,handleAwaitingPromise:en,hideLoading:ci,isAwaitingPromise:Fu,rejectPromise:Uu,resetValidationMessage:Qu,showValidationMessage:Ju,update:td},Symbol.toStringTag,{value:"Module"})),id=t=>{const e=O.innerParams.get(t);t.disableButtons(),e.input?bi(t,"confirm"):bo(t,!0)},ad=t=>{const e=O.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?bi(t,"deny"):vo(t,!1)},sd=(t,e)=>{t.disableButtons(),e(ht.cancel)},bi=(t,e)=>{const n=O.innerParams.get(t);if(!n.input)return ot(`The "input" parameter is needed to be set when using returnInputValueOn${no(e)}`);const o=ku(t,n);n.inputValidator?ld(t,o,e):t.getInput().checkValidity()?e==="deny"?vo(t,o):bo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},ld=(t,e,n)=>{const o=O.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Wt(o.inputValidator(e,o.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?vo(t,e):bo(t,e)})},vo=(t,e)=>{const n=O.innerParams.get(t||void 0);n.showLoaderOnDeny&>(Ge()),n.preDeny?(O.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Wt(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),en(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>wi(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},Ci=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},wi=(t,e)=>{t.rejectPromise(e)},bo=(t,e)=>{const n=O.innerParams.get(t||void 0);n.showLoaderOnConfirm&>(),n.preConfirm?(t.resetValidationMessage(),O.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Wt(n.preConfirm(e,n.validationMessage))).then(i=>{he(_n())||i===!1?(t.hideLoading(),en(t)):Ci(t,typeof i>"u"?e:i)}).catch(i=>wi(t||void 0,i))):Ci(t,e)},cd=(t,e,n)=>{O.innerParams.get(t).toast?ud(t,e,n):(md(e),fd(e),pd(t,e,n))},ud=(t,e,n)=>{e.popup.onclick=()=>{const o=O.innerParams.get(t);o&&(dd(o)||o.timer||o.input)||n(ht.close)}},dd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let An=!1;const md=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(An=!0)}}},fd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(An=!0)}}},pd=(t,e,n)=>{e.container.onclick=o=>{const i=O.innerParams.get(t);if(An){An=!1;return}o.target===e.container&&kn(i.allowOutsideClick)&&n(ht.backdrop)}},hd=t=>typeof t=="object"&&t.jquery,ki=t=>t instanceof Element||hd(t),gd=t=>{const e={};return typeof t[0]=="object"&&!ki(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||ki(i)?e[n]=i:i!==void 0&&ot(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function yd(...t){const e=this;return new e(...t)}function vd(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const bd=()=>A.timeout&&A.timeout.getTimerLeft(),Si=()=>{if(A.timeout)return ac(),A.timeout.stop()},_i=()=>{if(A.timeout){const t=A.timeout.start();return uo(t),t}},Cd=()=>{const t=A.timeout;return t&&(t.running?Si():_i())},wd=t=>{if(A.timeout){const e=A.timeout.increase(t);return uo(e,!0),e}},kd=()=>A.timeout&&A.timeout.isRunning();let Ei=!1;const Co={};function Sd(t="data-swal-template"){Co[t]=this,Ei||(document.body.addEventListener("click",_d),Ei=!0)}const _d=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Co){const o=e.getAttribute(n);if(o){Co[n].fire({template:o});return}}},Ed=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:gd,bindClickHandler:Sd,clickCancel:Ou,clickConfirm:ui,clickDeny:$u,enableLoading:gt,fire:yd,getActions:Yt,getCancelButton:rt,getCloseButton:ao,getConfirmButton:Ee,getContainer:J,getDenyButton:Ge,getFocusableElements:so,getFooter:Wr,getHtmlContainer:Sn,getIcon:qt,getImage:zr,getInputLabel:tc,getLoader:ft,getPopup:R,getTimerLeft:bd,getTimerProgressBar:En,getTitle:Fr,getValidationMessage:_n,increaseTimer:wd,isDeprecatedParameter:io,isLoading:oc,isTimerRunning:kd,isUpdatableParameter:jr,isValidParameter:Vr,isVisible:Bu,mixin:vd,resumeTimer:_i,showLoading:gt,stopTimer:Si,toggleTimer:Cd},Symbol.toStringTag,{value:"Module"}));let wo;class yt{constructor(...e){if(typeof window>"u")return;wo=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);O.promise.set(this,o)}_main(e,n={}){Ql(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),lo()&&oi()),A.currentInstance=this;const o=Id(e,n);iu(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Pd(this);return ni(this,o),O.innerParams.set(this,o),Td(this,i,o)}then(e){return O.promise.get(this).then(e)}finally(e){return O.promise.get(this).finally(e)}}const Td=(t,e,n)=>new Promise((o,i)=>{const a=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Qt.swalPromiseResolve.set(t,o),Qt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>id(t),e.denyButton.onclick=()=>ad(t),e.cancelButton.onclick=()=>sd(t,a),e.closeButton.onclick=()=>a(ht.close),cd(t,e,a),Lu(t,A,n,a),wu(t,n),gu(n),Ad(A,n,a),xd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Id=(t,e)=>{const n=Yc(t),o=Object.assign({},mt,e,n,t);return o.showClass=Object.assign({},mt.showClass,o.showClass),o.hideClass=Object.assign({},mt.hideClass,o.hideClass),o},Pd=t=>{const e={popup:R(),container:J(),actions:Yt(),confirmButton:Ee(),denyButton:Ge(),cancelButton:rt(),loader:ft(),closeButton:ao(),validationMessage:_n(),progressSteps:Ur()};return O.domCache.set(t,e),e},Ad=(t,e,n)=>{const o=En();ee(o),e.timer&&(t.timeout=new au(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ye(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&uo(e.timer)})))},xd=(t,e)=>{if(!e.toast){if(!kn(e.allowEnterKey))return $d();Bd(t,e)||go(e,-1,1)}},Bd=(t,e)=>e.focusDeny&&he(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&he(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&he(t.confirmButton)?(t.confirmButton.focus(),!0):!1,$d=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,vi),Object.assign(yt,Ed),Object.keys(vi).forEach(t=>{yt[t]=function(...e){if(wo)return wo[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const st=yt;st.default=st;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:Ti,setPrototypeOf:Ii,isFrozen:Od,getPrototypeOf:Ld,getOwnPropertyDescriptor:Nd}=Object;let{freeze:ae,seal:ve,create:Pi}=Object,{apply:ko,construct:So}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),ve||(ve=function(e){return e}),ko||(ko=function(e,n,o){return e.apply(n,o)}),So||(So=function(e,n){return new e(...n)});const xn=le(Array.prototype.forEach),Md=le(Array.prototype.lastIndexOf),Ai=le(Array.prototype.pop),tn=le(Array.prototype.push),Dd=le(Array.prototype.splice),Bn=le(String.prototype.toLowerCase),_o=le(String.prototype.toString),xi=le(String.prototype.match),nn=le(String.prototype.replace),Rd=le(String.prototype.indexOf),Vd=le(String.prototype.trim),Te=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),on=jd(TypeError);function le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return ko(t,e,o)}}function jd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return So(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bn;Ii&&Ii(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const a=n(i);a!==i&&(Od(e)||(e[o]=a),i=a)}t[i]=!0}return t}function Hd(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function Me(t){const e=Pi(null);for(const[n,o]of Ti(t))Te(t,n)&&(Array.isArray(o)?e[n]=Hd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Me(o):e[n]=o);return e}function rn(t,e){for(;t!==null;){const o=Nd(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Ld(t)}function n(){return null}return n}const Bi=ae(["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"]),Eo=ae(["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"]),To=ae(["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"]),Fd=ae(["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"]),Io=ae(["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"]),zd=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$i=ae(["#text"]),Oi=ae(["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"]),Po=ae(["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"]),Li=ae(["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"]),$n=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ud=ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wd=ve(/<%[\w\W]*|[\w\W]*%>/gm),Kd=ve(/\$\{[\w\W]*/gm),Gd=ve(/^data-[\-\w.\u00B7-\uFFFF]+$/),qd=ve(/^aria-[\-\w]+$/),Ni=ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yd=ve(/^(?:\w+script|data):/i),Xd=ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mi=ve(/^html$/i),Zd=ve(/^[a-z][.\w]*(-[.\w]+)+$/i);var Di=Object.freeze({__proto__:null,ARIA_ATTR:qd,ATTR_WHITESPACE:Xd,CUSTOM_ELEMENT:Zd,DATA_ATTR:Gd,DOCTYPE_NAME:Mi,ERB_EXPR:Wd,IS_ALLOWED_URI:Ni,IS_SCRIPT_OR_DATA:Yd,MUSTACHE_EXPR:Ud,TMPLIT_EXPR:Kd});const an={element:1,text:3,progressingInstruction:7,comment:8,document:9},Jd=function(){return typeof window>"u"?null:window},Qd=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ri=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Vi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jd();const e=E=>Vi(E);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==an.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,v=s.prototype,w=rn(v,"cloneNode"),k=rn(v,"remove"),y=rn(v,"nextSibling"),T=rn(v,"childNodes"),I=rn(v,"parentNode");if(typeof c=="function"){const E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}let b,_="";const{implementation:U,createNodeIterator:X,createDocumentFragment:be,getElementsByTagName:te}=n,{importNode:Ce}=o;let P=Ri();e.isSupported=typeof Ti=="function"&&typeof I=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:j,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Ie,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:Re,CUSTOM_ELEMENT:Ze}=Di;let{IS_ALLOWED_URI:we}=Di,V=null;const $e=L({},[...Bi,...Eo,...To,...Io,...$i]);let W=null;const Ve=L({},[...Oi,...Po,...Li,...$n]);let F=Object.seal(Pi(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}})),Je=null,sn=null,Nn=!0,ln=!0,Mn=!1,Dn=!0,Qe=!1,bt=!0,je=!1,cn=!1,un=!1,et=!1,Ct=!1,wt=!1,Rn=!0,Vn=!1;const Oo="user-content-";let dn=!0,lt=!1,kt={},St=null;const Yi=L({},["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 Xi=null;const Zi=L({},["audio","video","img","source","image","track"]);let Lo=null;const Ji=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jn="http://www.w3.org/1998/Math/MathML",Hn="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let _t=He,No=!1,Mo=null;const Hm=L({},[jn,Hn,He],_o);let Fn=L({},["mi","mo","mn","ms","mtext"]),zn=L({},["annotation-xml"]);const Fm=L({},["title","style","font","a","script"]);let mn=null;const zm=["application/xhtml+xml","text/html"],Um="text/html";let G=null,Et=null;const Wm=n.createElement("form"),Qi=function(m){return m instanceof RegExp||m instanceof Function},Do=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===m)){if((!m||typeof m!="object")&&(m={}),m=Me(m),mn=zm.indexOf(m.PARSER_MEDIA_TYPE)===-1?Um:m.PARSER_MEDIA_TYPE,G=mn==="application/xhtml+xml"?_o:Bn,V=Te(m,"ALLOWED_TAGS")?L({},m.ALLOWED_TAGS,G):$e,W=Te(m,"ALLOWED_ATTR")?L({},m.ALLOWED_ATTR,G):Ve,Mo=Te(m,"ALLOWED_NAMESPACES")?L({},m.ALLOWED_NAMESPACES,_o):Hm,Lo=Te(m,"ADD_URI_SAFE_ATTR")?L(Me(Ji),m.ADD_URI_SAFE_ATTR,G):Ji,Xi=Te(m,"ADD_DATA_URI_TAGS")?L(Me(Zi),m.ADD_DATA_URI_TAGS,G):Zi,St=Te(m,"FORBID_CONTENTS")?L({},m.FORBID_CONTENTS,G):Yi,Je=Te(m,"FORBID_TAGS")?L({},m.FORBID_TAGS,G):Me({}),sn=Te(m,"FORBID_ATTR")?L({},m.FORBID_ATTR,G):Me({}),kt=Te(m,"USE_PROFILES")?m.USE_PROFILES:!1,Nn=m.ALLOW_ARIA_ATTR!==!1,ln=m.ALLOW_DATA_ATTR!==!1,Mn=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Dn=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=m.SAFE_FOR_TEMPLATES||!1,bt=m.SAFE_FOR_XML!==!1,je=m.WHOLE_DOCUMENT||!1,et=m.RETURN_DOM||!1,Ct=m.RETURN_DOM_FRAGMENT||!1,wt=m.RETURN_TRUSTED_TYPE||!1,un=m.FORCE_BODY||!1,Rn=m.SANITIZE_DOM!==!1,Vn=m.SANITIZE_NAMED_PROPS||!1,dn=m.KEEP_CONTENT!==!1,lt=m.IN_PLACE||!1,we=m.ALLOWED_URI_REGEXP||Ni,_t=m.NAMESPACE||He,Fn=m.MATHML_TEXT_INTEGRATION_POINTS||Fn,zn=m.HTML_INTEGRATION_POINTS||zn,F=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Qi(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Qi(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(ln=!1),Ct&&(et=!0),kt&&(V=L({},$i),W=[],kt.html===!0&&(L(V,Bi),L(W,Oi)),kt.svg===!0&&(L(V,Eo),L(W,Po),L(W,$n)),kt.svgFilters===!0&&(L(V,To),L(W,Po),L(W,$n)),kt.mathMl===!0&&(L(V,Io),L(W,Li),L(W,$n))),m.ADD_TAGS&&(V===$e&&(V=Me(V)),L(V,m.ADD_TAGS,G)),m.ADD_ATTR&&(W===Ve&&(W=Me(W)),L(W,m.ADD_ATTR,G)),m.ADD_URI_SAFE_ATTR&&L(Lo,m.ADD_URI_SAFE_ATTR,G),m.FORBID_CONTENTS&&(St===Yi&&(St=Me(St)),L(St,m.FORBID_CONTENTS,G)),dn&&(V["#text"]=!0),je&&L(V,["html","head","body"]),V.table&&(L(V,["tbody"]),delete Je.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.');b=m.TRUSTED_TYPES_POLICY,_=b.createHTML("")}else b===void 0&&(b=Qd(p,i)),b!==null&&typeof _=="string"&&(_=b.createHTML(""));ae&&ae(m),Et=m}},ea=L({},[...Eo,...To,...Fd]),ta=L({},[...Io,...zd]),Km=function(m){let C=I(m);(!C||!C.tagName)&&(C={namespaceURI:_t,tagName:"template"});const S=Bn(m.tagName),z=Bn(C.tagName);return Mo[m.namespaceURI]?m.namespaceURI===Hn?C.namespaceURI===He?S==="svg":C.namespaceURI===jn?S==="svg"&&(z==="annotation-xml"||Fn[z]):!!ea[S]:m.namespaceURI===jn?C.namespaceURI===He?S==="math":C.namespaceURI===Hn?S==="math"&&zn[z]:!!ta[S]:m.namespaceURI===He?C.namespaceURI===Hn&&!zn[z]||C.namespaceURI===jn&&!Fn[z]?!1:!ta[S]&&(Fm[S]||!ea[S]):!!(mn==="application/xhtml+xml"&&Mo[m.namespaceURI]):!1},Oe=function(m){tn(e.removed,{element:m});try{I(m).removeChild(m)}catch{k(m)}},Tt=function(m,C){try{tn(e.removed,{attribute:C.getAttributeNode(m),from:C})}catch{tn(e.removed,{attribute:null,from:C})}if(C.removeAttribute(m),m==="is")if(et||Ct)try{Oe(C)}catch{}else try{C.setAttribute(m,"")}catch{}},na=function(m){let C=null,S=null;if(un)m="<remove></remove>"+m;else{const K=xi(m,/^[\r\n\t ]+/);S=K&&K[0]}mn==="application/xhtml+xml"&&_t===He&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const z=b?b.createHTML(m):m;if(_t===He)try{C=new h().parseFromString(z,mn)}catch{}if(!C||!C.documentElement){C=U.createDocument(_t,"template",null);try{C.documentElement.innerHTML=No?_:z}catch{}}const oe=C.body||C.documentElement;return m&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),_t===He?te.call(C,je?"html":"body")[0]:je?C.documentElement:oe},oa=function(m){return X.call(m.ownerDocument||m,m,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ro=function(m){return m instanceof f&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof d)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},ra=function(m){return typeof l=="function"&&m instanceof l};function Fe(E,m,C){xn(E,S=>{S.call(e,m,C,Et)})}const ia=function(m){let C=null;if(Fe(P.beforeSanitizeElements,m,null),Ro(m))return Oe(m),!0;const S=G(m.nodeName);if(Fe(P.uponSanitizeElement,m,{tagName:S,allowedTags:V}),bt&&m.hasChildNodes()&&!ra(m.firstElementChild)&&se(/<[/\w!]/g,m.innerHTML)&&se(/<[/\w!]/g,m.textContent)||m.nodeType===an.progressingInstruction||bt&&m.nodeType===an.comment&&se(/<[/\w]/g,m.data))return Oe(m),!0;if(!V[S]||Je[S]){if(!Je[S]&&sa(S)&&(F.tagNameCheck instanceof RegExp&&se(F.tagNameCheck,S)||F.tagNameCheck instanceof Function&&F.tagNameCheck(S)))return!1;if(dn&&!St[S]){const z=I(m)||m.parentNode,oe=T(m)||m.childNodes;if(oe&&z){const K=oe.length;for(let fe=K-1;fe>=0;--fe){const ze=w(oe[fe],!0);ze.__removalCount=(m.__removalCount||0)+1,z.insertBefore(ze,y(m))}}}return Oe(m),!0}return m instanceof s&&!Km(m)||(S==="noscript"||S==="noembed"||S==="noframes")&&se(/<\/no(script|embed|frames)/i,m.innerHTML)?(Oe(m),!0):(Qe&&m.nodeType===an.text&&(C=m.textContent,xn([j,ne,ce],z=>{C=nn(C,z," ")}),m.textContent!==C&&(tn(e.removed,{element:m.cloneNode()}),m.textContent=C)),Fe(P.afterSanitizeElements,m,null),!1)},aa=function(m,C,S){if(Rn&&(C==="id"||C==="name")&&(S in n||S in Wm))return!1;if(!(ln&&!sn[C]&&se(Ie,C))){if(!(Nn&&se(Xe,C))){if(!W[C]||sn[C]){if(!(sa(m)&&(F.tagNameCheck instanceof RegExp&&se(F.tagNameCheck,m)||F.tagNameCheck instanceof Function&&F.tagNameCheck(m))&&(F.attributeNameCheck instanceof RegExp&&se(F.attributeNameCheck,C)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(C))||C==="is"&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&se(F.tagNameCheck,S)||F.tagNameCheck instanceof Function&&F.tagNameCheck(S))))return!1}else if(!Lo[C]){if(!se(we,nn(S,Re,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&m!=="script"&&Rd(S,"data:")===0&&Xi[m])){if(!(Mn&&!se(De,nn(S,Re,"")))){if(S)return!1}}}}}}return!0},sa=function(m){return m!=="annotation-xml"&&xi(m,Ze)},la=function(m){Fe(P.beforeSanitizeAttributes,m,null);const{attributes:C}=m;if(!C||Ro(m))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let z=C.length;for(;z--;){const oe=C[z],{name:K,namespaceURI:fe,value:ze}=oe,fn=G(K),Vo=ze;let re=K==="value"?Vo:Vd(Vo);if(S.attrName=fn,S.attrValue=re,S.keepAttr=!0,S.forceKeepAttr=void 0,Fe(P.uponSanitizeAttribute,m,S),re=S.attrValue,Vn&&(fn==="id"||fn==="name")&&(Tt(K,m),re=Oo+re),bt&&se(/((--!?|])>)|<\/(style|title)/i,re)){Tt(K,m);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){Tt(K,m);continue}if(!Dn&&se(/\/>/i,re)){Tt(K,m);continue}Qe&&xn([j,ne,ce],ua=>{re=nn(re,ua," ")});const ca=G(m.nodeName);if(!aa(ca,fn,re)){Tt(K,m);continue}if(b&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!fe)switch(p.getAttributeType(ca,fn)){case"TrustedHTML":{re=b.createHTML(re);break}case"TrustedScriptURL":{re=b.createScriptURL(re);break}}if(re!==Vo)try{fe?m.setAttributeNS(fe,K,re):m.setAttribute(K,re),Ro(m)?Oe(m):Ai(e.removed)}catch{Tt(K,m)}}Fe(P.afterSanitizeAttributes,m,null)},Gm=function E(m){let C=null;const S=oa(m);for(Fe(P.beforeSanitizeShadowDOM,m,null);C=S.nextNode();)Fe(P.uponSanitizeShadowNode,C,null),ia(C),la(C),C.content instanceof a&&E(C.content);Fe(P.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(E){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,S=null,z=null,oe=null;if(No=!E,No&&(E="<!-->"),typeof E!="string"&&!ra(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw on("dirty is not a string, aborting")}else throw on("toString is not a function");if(!e.isSupported)return E;if(cn||Do(m),e.removed=[],typeof E=="string"&&(lt=!1),lt){if(E.nodeName){const ze=G(E.nodeName);if(!V[ze]||Je[ze])throw on("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof l)C=na("<!---->"),S=C.ownerDocument.importNode(E,!0),S.nodeType===an.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?C=S:C.appendChild(S);else{if(!et&&!Qe&&!je&&E.indexOf("<")===-1)return b&&wt?b.createHTML(E):E;if(C=na(E),!C)return et?null:wt?_:""}C&&un&&Oe(C.firstChild);const K=oa(lt?E:C);for(;z=K.nextNode();)ia(z),la(z),z.content instanceof a&&Gm(z.content);if(lt)return E;if(et){if(Ct)for(oe=be.call(C.ownerDocument);C.firstChild;)oe.appendChild(C.firstChild);else oe=C;return(W.shadowroot||W.shadowrootmode)&&(oe=Ce.call(o,oe,!0)),oe}let fe=je?C.outerHTML:C.innerHTML;return je&&V["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&se(Mi,C.ownerDocument.doctype.name)&&(fe="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
423
|
-
`+fe),Qe&&xn([j,ne,ce],ze=>{fe=nn(fe,ze," ")}),b&&wt?b.createHTML(fe):fe},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(E),cn=!0},e.clearConfig=function(){Et=null,cn=!1},e.isValidAttribute=function(E,m,C){Et||Do({});const S=G(E),z=G(m);return aa(S,z,C)},e.addHook=function(E,m){typeof m=="function"&&tn(P[E],m)},e.removeHook=function(E,m){if(m!==void 0){const C=Md(P[E],m);return C===-1?void 0:Dd(P[E],C,1)[0]}return Ai(P[E])},e.removeHooks=function(E){P[E]=[]},e.removeAllHooks=function(){P=Ri()},e}var Ao=Vi();const em=t=>!(!t||!(t instanceof HTMLElement)||Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<640);class ji{get IsVisible(){return st.isVisible()}async CreateConfirmAsync(e){return this.ConfirmWithOptionsAsync(e)}async ConfirmWithOptionsAsync(e){return e.confirmLabel??="sim",e.rejectLabel??="não",e.confirmColor??="primary",e.rejectColor??="primary",em(e.target)?this.CreatePopoverAsync(e).then(n=>n===!0):new Promise(n=>{st.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Ao.sanitize(e.text),confirmButtonText:e.confirmLabel,cancelButtonText:e.rejectLabel,confirmButtonColor:`var(--${e.confirmColor}-color)`,cancelButtonColor:`var(--${e.rejectColor}-color)`}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e,n){return this.ConfirmWithOptionsAsync({text:e,target:n})}async CreatePopoverAsync(e){let n;const o=new Promise(a=>{n=a}),i=new CustomEvent("sfconfirm:popup",{detail:{options:e,resolve:n},bubbles:!0,cancelable:!0,composed:!0});return document.dispatchEvent(i),o}}const Hi=()=>new ji,tm=()=>new ji;function nm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var On={exports:{}},om=On.exports,Fi;function rm(){return Fi||(Fi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(om,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function d(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(d.call(this),this[w].apply(this,arguments))}}function h(w,k,y){return u(w)||f.apply(this,arguments)}function p(w,k){var y=this,T,I,b,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function U(P){var j=(i[P]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=j;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+j+";"}catch{}}}function X(){var P;if(!(typeof window===n||!_)){try{P=window.localStorage[_]}catch{}if(typeof P===n)try{var j=window.document.cookie,ne=encodeURIComponent(_),ce=j.indexOf(ne+"=");ce!==-1&&(P=/^([^;]+)/.exec(j.slice(ce+ne.length+1))[1])}catch{}return y.levels[P]===void 0&&(P=void 0),P}}function be(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(P){var j=P;if(typeof j=="string"&&y.levels[j.toUpperCase()]!==void 0&&(j=y.levels[j.toUpperCase()]),typeof j=="number"&&j>=0&&j<=y.levels.SILENT)return j;throw new TypeError("log.setLevel() called with invalid level: "+P)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||h,y.getLevel=function(){return b??I??T},y.setLevel=function(P,j){return b=te(P),j!==!1&&U(b),d.call(y)},y.setDefaultLevel=function(P){I=te(P),X()||y.setLevel(P,!1)},y.resetLevel=function(){b=null,be(),d.call(y)},y.enableAll=function(P){y.setLevel(y.levels.TRACE,P)},y.disableAll=function(P){y.setLevel(y.levels.SILENT,P)},y.rebuild=function(){if(c!==y&&(T=te(c.getLevel())),d.call(y),c===y)for(var P in a)a[P].rebuild()},T=te(c?c.getLevel():"WARN");var Ce=X();Ce!=null&&(b=te(Ce)),d.call(y)}c=new p,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new p(k,c.methodFactory)),y};var v=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=v),c},c.getLoggers=function(){return a},c.default=c,c})}(On)),On.exports}var im=rm();const Ln=nm(im),am=(t,e={})=>{Ln.setDefaultLevel(e.enableLogging?Ln.levels.DEBUG:Ln.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Mr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ut.Toggle(),EnableDarkMode:()=>Ut.EnableDarkMode(),EnableLightMode:()=>Ut.EnableLightMode(),ClearStoredTheme:()=>Ut.ClearStoredTheme(),LogoutAsync:async()=>{const f=Hi(),{oidc:h}=Un.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&($o("Saindo..."),c.value=!0,await new Promise(v=>setTimeout(v,1e3)),h.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,qi()}))},Login:()=>{const{oidc:f}=Un.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ut.SetInitialTheme()},sm=Ln;class xo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class zi{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}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 xo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Ui{get IsVisible(){return st.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{st.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Ao.sanitize(o)}</div>`}).then(()=>a(!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 Wi=()=>new Ui,lm=()=>new Ui;window.addEventListener("error",function(t){return Bo(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Bo(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const cm=t=>{t.config.errorHandler=(e,n,o)=>{Bo(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Bo=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof xo||t instanceof zi?(Wi().AlertErrorAsync(t.errors),!0):!1},um={class:"font-percentage"},Ki="--font-size-increment",dm="tamanho-fonte",mm=Pe(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=pn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(Ki)||"1"),l=h=>{h<.5||h>1.6||(a().style.setProperty(Ki,h.toString()),f.value=h)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},d=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(dm)}),r.onMounted(()=>{f.value=c()}),(h,p)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ae,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",um,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:d}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),fm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=zt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),pm=["aria-labelledby"],hm={key:0,class:"mb-3"},gm={class:"flex align-items-center flex-wrap gap-3"},ym=["innerHTML"],vm={class:"flex flex-grow-1 gap-2"},bm=Pe(r.defineComponent({__name:"ConfirmPopover",setup(t){const e=r.useTemplateRef("popoverRef"),n=()=>{i.detail.resolve(!0),c.value=!1},o=()=>{i.detail.resolve(!1),c.value=!1};let i;const a=r.ref(null),c=r.ref(!1),l=r.ref({top:"0px",left:"0px",zIndex:"0"}),s=r.ref(!1),u=r.ref(!1),d=p=>{let v=p instanceof HTMLElement?p:null;for(;v&&v.getBoundingClientRect;){const w=v.getBoundingClientRect();if(w.width>0&&w.height>0)return w;const k=v.children[0];if(!k||!(k instanceof HTMLElement))return null;v=k}return null},f=()=>{const p=i.detail.options.target;p&&(a.value=d(p),a.value&&(l.value={top:`${a.value.bottom+window.scrollY}px`,left:`${a.value.left+window.scrollX}px`,zIndex:`${pn()+1}`}))},h=()=>{s.value=!1,u.value=!1,r.nextTick(()=>{const p=e.value?.getBoundingClientRect();p&&(window.innerWidth<p.right&&(l.value.left=`${(a.value?.right??0)+window.scrollX}px`,s.value=!0),window.innerHeight<p.bottom&&(l.value.top=`${(a.value?.top??0)+window.scrollY}px`,u.value=!0))})};return document.addEventListener("sfconfirm:popup",p=>{i=p,f(),c.value=!0,h()}),(p,v)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{id:"sf-confirm-popover-overlay",style:r.normalizeStyle({zIndex:l.value.zIndex}),onClick:o},null,4),r.createElementVNode("div",{ref:"popoverRef",id:"sf-confirm-popover",class:r.normalizeClass({translateX:s.value,translateY:u.value}),style:r.normalizeStyle({...l.value,zIndex:+l.value.zIndex+1}),role:"dialog","aria-modal":!0,"aria-labelledby":r.unref(i).detail.options?.text,tabindex:"-1"},[r.unref(i).detail.options?.title?(r.openBlock(),r.createElementBlock("div",hm,r.toDisplayString(r.unref(i).detail.options.title),1)):r.createCommentVNode("",!0),r.createElementVNode("div",gm,[r.createElementVNode("div",{innerHTML:r.unref(i).detail.options?.text},null,8,ym),r.createElementVNode("div",vm,[r.createVNode(r.unref(Pt),{name:"botao-confirmar",size:"sm",color:r.unref(i).detail.options?.confirmColor,onClick:n},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i).detail.options?.confirmLabel),1)]),_:1},8,["color"]),r.createVNode(r.unref(Pt),{size:"sm",name:"botao-cancelar",color:r.unref(i).detail.options?.rejectColor,onClick:o},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(i).detail.options?.rejectLabel),1)]),_:1},8,["color"])])])],14,pm)],64)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-66f3d8a1"]]),Cm={class:"nav-menu-header"},wm={class:"nav-menu-inner-close"},km={class:"main-content"},Sm={class:"page-title"},_m={class:"action"},Em={id:"content"},Tm={key:0,id:"logging-out"},Im={class:"info-fazenda"},Pm={class:"font-bold"},Am={class:"info-endereco text-muted"},xm={class:"footer-right"},Bm=Pe(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:d,LogoutAsync:f,isLoggingOut:h,mainRef:p,mainWidth:v}=zt(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&d()};r.onMounted(()=>{if(da.useRouter().afterEach(()=>{k()}),p.value){let I=null;Nr(p,b=>{r.nextTick(()=>{I&&clearTimeout(I),I=setTimeout(()=>{v.value=b[0].contentRect.width},10)}),v.value=b[0].contentRect.width}),v.value=p.value.clientWidth}});const y=e;return(T,I)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:p,class:r.normalizeClass({disabled:r.unref(h),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",Cm,[I[1]||(I[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",wm,[r.createVNode(Ae,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(T.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",km,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ae,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",Sm,r.toDisplayString(r.unref(h)?"Saindo...":r.unref(a)),1),I[2]||(I[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",_m,[r.createVNode(Ae,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(mm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ae,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ae,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:I[0]||(I[0]=b=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Em,[r.unref(h)?(r.openBlock(),r.createElementBlock("div",Tm,[r.createVNode(Ho)])):r.renderSlot(T.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[I[5]||(I[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Im,[r.createElementVNode("span",Pm,[r.renderSlot(T.$slots,"footer-nome-fazenda",{},()=>[I[3]||(I[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",Am,[r.renderSlot(T.$slots,"footer-endereco-fazenda",{},()=>[I[4]||(I[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",xm,[r.renderSlot(T.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(fm),r.createVNode(bm)],2))}}),[["__scopeId","data-v-21d8b87a"]]),$m=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=zt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Gi={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Om={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Gi},dark:{...Gi}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class Ye{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a: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,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return Ye.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Ye.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Ye.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Lm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){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?Ye.MaskCpf(this.username):this.username.length===14?Ye.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Nm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Mm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
|
|
424
|
-
`));e.add(i)}if(a&&Array.isArray(a))for(const c of a)n(c)}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}});class Dm{current=null;resolve=null;async showAsync(e,n){const o={message:e,life:n??5e3};return this.Render(o)}async Render(e){return new Promise(n=>{this.resolve=n,this.current&&(this.current.style.opacity="0",setTimeout((function(){this.parentElement&&this.parentElement.removeChild(this)}).bind(this.current),500));const o=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");i.className="content",a.className="progress",i.appendChild(a),o.className="sf-toast",o.style.zIndex=Ye.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const u=s.propertyName==="opacity",d=s.target.classList.contains("visible");u&&!d&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const u=document.createElement("p");u.innerHTML=Ao.sanitize(s),i.appendChild(u)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),i.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){a.style.transitionDuration=`${e.life-300}ms`,i.classList.add("animate"),setTimeout(()=>{this.current===o&&this.Close()},e.life);return}})}Close(){this.resolve&&this.resolve(),this.current&&this.current.classList.remove("visible")}}const Rm=new Dm,Vm=()=>Rm;function qi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function $o(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function jm(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw $o("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}x.AppError=xo,x.AppResult=zi,x.BaseAppState=Nm,x.EnsureUniqueRouteNames=Mm,x.GetEnvironmentAsync=jm,x.RemovePreloader=qi,x.RestorePreloader=$o,x.SfButton=Pt,x.SfContent=Pl,x.SfDrawer=zo,x.SfHelpButton=Il,x.SfIcon=Ae,x.SfLoadingCircle=Fo,x.SfLogin=Fl,x.SfMain=Bm,x.SfMessage=Ta,x.SfNavMenu=Tl,x.SfPageTitle=$m,x.SfTabNavigation=wa,x.SfTooltip=jo,x.UseAlert=Wi,x.UseAlertService=lm,x.UseAppInject=zt,x.UseConfirm=Hi,x.UseConfirmService=tm,x.UseSimpleToast=Vm,x.User=Lm,x.Utilities=Ye,x._logger=sm,x.configSF=am,x.globalErrorHandler=cm,x.themePreset=Om,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
425
|
+
https://sweetalert2.github.io/#ajax-request`),Mm(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
426
|
+
`).join("<br />")),Pd(t)}let Be;var Dn=new WeakMap;class G{constructor(...e){if(cd(this,Dn,void 0),typeof window>"u")return;Be=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,dd(Dn,this,this._main(Be.params))}_main(e,n={}){if(Ka(Object.assign({},n,e)),T.currentInstance){const i=Ct.swalPromiseResolve.get(T.currentInstance),{isAwaitingPromise:c}=T.currentInstance;T.currentInstance._destroy(),c||i({isDismissed:!0}),ko()&&Ea()}T.currentInstance=Be;const o=Vm(e,n);Dm(o),Object.freeze(o),T.timeout&&(T.timeout.stop(),delete T.timeout),clearTimeout(T.restoreFocusTimeout);const a=jm(Be);return ka(Be,o),j.innerParams.set(Be,o),Rm(Be,a,o)}then(e){return Qr(Dn,this).then(e)}finally(e){return Qr(Dn,this).finally(e)}}const Rm=(t,e,n)=>new Promise((o,a)=>{const i=c=>{t.close({isDismissed:!0,dismiss:c})};Ct.swalPromiseResolve.set(t,o),Ct.swalPromiseReject.set(t,a),e.confirmButton.onclick=()=>{Fu(t)},e.denyButton.onclick=()=>{Uu(t)},e.cancelButton.onclick=()=>{Wu(t,i)},e.closeButton.onclick=()=>{i(kt.close)},om(n,e,i),uu(T,n,i),Ou(t,n),$m(n),Hm(T,n,i),zm(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Vm=(t,e)=>{const n=Cm(t),o=Object.assign({},Et,e,n,t);return o.showClass=Object.assign({},Et.showClass,o.showClass),o.hideClass=Object.assign({},Et.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},jm=t=>{const e={popup:M(),container:se(),actions:Qt(),confirmButton:$e(),denyButton:it(),cancelButton:vt(),loader:yt(),closeButton:vo(),validationMessage:En(),progressSteps:wo()};return j.domCache.set(t,e),e},Hm=(t,e,n)=>{const o=xn();te(o),e.timer&&(t.timeout=new km(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),be(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&_o(e.timer)})))},zm=(t,e)=>{if(!e.toast){if(!_n(e.allowEnterKey)){oa("allowEnterKey"),Wm();return}Fm(t)||Um(t,e)||Po(-1,1)}},Fm=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&fe(n))return n.focus(),!0;return!1},Um=(t,e)=>e.focusDeny&&fe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&fe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&fe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Wm=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};G.prototype.disableButtons=Ra,G.prototype.enableButtons=Da,G.prototype.getInput=Oa,G.prototype.disableInput=ja,G.prototype.enableInput=Va,G.prototype.hideLoading=On,G.prototype.disableLoading=On,G.prototype.showValidationMessage=Ha,G.prototype.resetValidationMessage=za,G.prototype.close=Xe,G.prototype.closePopup=Xe,G.prototype.closeModal=Xe,G.prototype.closeToast=Xe,G.prototype.rejectPromise=Ia,G.prototype.update=Ga,G.prototype._destroy=qa,Object.assign(G,ym),Object.keys(nm).forEach(t=>{G[t]=function(...e){return Be&&Be[t]?Be[t](...e):null}}),G.DismissReason=kt,G.version="11.23.0";const dt=G;dt.default=dt,typeof document<"u"&&(function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');/*! @license DOMPurify 3.2.7 | (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.7/LICENSE */const{entries:oi,setPrototypeOf:ri,isFrozen:Km,getPrototypeOf:Gm,getOwnPropertyDescriptor:qm}=Object;let{freeze:le,seal:ye,create:ai}=Object,{apply:No,construct:Mo}=typeof Reflect<"u"&&Reflect;le||(le=function(e){return e}),ye||(ye=function(e){return e}),No||(No=function(e,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return e.apply(n,a)}),Mo||(Mo=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return new e(...o)});const Rn=de(Array.prototype.forEach),Ym=de(Array.prototype.lastIndexOf),ii=de(Array.prototype.pop),on=de(Array.prototype.push),Xm=de(Array.prototype.splice),Vn=de(String.prototype.toLowerCase),Do=de(String.prototype.toString),Ro=de(String.prototype.match),rn=de(String.prototype.replace),Zm=de(String.prototype.indexOf),Jm=de(String.prototype.trim),Ie=de(Object.prototype.hasOwnProperty),ce=de(RegExp.prototype.test),an=Qm(TypeError);function de(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return No(t,e,o)}}function Qm(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Mo(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vn;ri&&ri(t,null);let o=e.length;for(;o--;){let a=e[o];if(typeof a=="string"){const i=n(a);i!==a&&(Km(e)||(e[o]=i),a=i)}t[a]=!0}return t}function ef(t){for(let e=0;e<t.length;e++)Ie(t,e)||(t[e]=null);return t}function Re(t){const e=ai(null);for(const[n,o]of oi(t))Ie(t,n)&&(Array.isArray(o)?e[n]=ef(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Re(o):e[n]=o);return e}function sn(t,e){for(;t!==null;){const o=qm(t,e);if(o){if(o.get)return de(o.get);if(typeof o.value=="function")return de(o.value)}t=Gm(t)}function n(){return null}return n}const si=le(["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","search","section","select","shadow","slot","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"]),Vo=le(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jo=le(["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"]),tf=le(["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"]),Ho=le(["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"]),nf=le(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),li=le(["#text"]),ci=le(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zo=le(["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"]),di=le(["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"]),jn=le(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),of=ye(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rf=ye(/<%[\w\W]*|[\w\W]*%>/gm),af=ye(/\$\{[\w\W]*/gm),sf=ye(/^data-[\-\w.\u00B7-\uFFFF]+$/),lf=ye(/^aria-[\-\w]+$/),ui=ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cf=ye(/^(?:\w+script|data):/i),df=ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mi=ye(/^html$/i),uf=ye(/^[a-z][.\w]*(-[.\w]+)+$/i);var fi=Object.freeze({__proto__:null,ARIA_ATTR:lf,ATTR_WHITESPACE:df,CUSTOM_ELEMENT:uf,DATA_ATTR:sf,DOCTYPE_NAME:mi,ERB_EXPR:rf,IS_ALLOWED_URI:ui,IS_SCRIPT_OR_DATA:cf,MUSTACHE_EXPR:of,TMPLIT_EXPR:af});const ln={element:1,text:3,progressingInstruction:7,comment:8,document:9},mf=function(){return typeof window>"u"?null:window},ff=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(o=n.getAttribute(a));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},pi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mf();const e=x=>hi(x);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==ln.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:h}=t,w=s.prototype,k=sn(w,"cloneNode"),C=sn(w,"remove"),b=sn(w,"nextSibling"),S=sn(w,"childNodes"),B=sn(w,"parentNode");if(typeof c=="function"){const x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let v,E="";const{implementation:U,createNodeIterator:J,createDocumentFragment:ke,getElementsByTagName:ne}=n,{importNode:Ce}=o;let I=pi();e.isSupported=typeof oi=="function"&&typeof B=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:oe,TMPLIT_EXPR:ue,DATA_ATTR:Ae,ARIA_ATTR:Ze,IS_SCRIPT_OR_DATA:Ve,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:Je}=fi;let{IS_ALLOWED_URI:Se}=fi,R=null;const Le=L({},[...si,...Vo,...jo,...Ho,...li]);let W=null;const He=L({},[...ci,...zo,...di,...jn]);let z=Object.seal(ai(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}})),Qe=null,cn=null,Un=!0,dn=!0,Wn=!1,Kn=!0,et=!1,Tt=!0,ze=!1,un=!1,mn=!1,tt=!1,It=!1,At=!1,Gn=!0,qn=!1;const Go="user-content-";let fn=!0,ut=!1,Pt={},$t=null;const Si=L({},["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 _i=null;const Ei=L({},["audio","video","img","source","image","track"]);let qo=null;const xi=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",Xn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Bt=Fe,Yo=!1,Xo=null;const Bf=L({},[Yn,Xn,Fe],Do);let Zn=L({},["mi","mo","mn","ms","mtext"]),Jn=L({},["annotation-xml"]);const Lf=L({},["title","style","font","a","script"]);let pn=null;const Of=["application/xhtml+xml","text/html"],Nf="text/html";let X=null,Lt=null;const Mf=n.createElement("form"),Ti=function(f){return f instanceof RegExp||f instanceof Function},Zo=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===f)){if((!f||typeof f!="object")&&(f={}),f=Re(f),pn=Of.indexOf(f.PARSER_MEDIA_TYPE)===-1?Nf:f.PARSER_MEDIA_TYPE,X=pn==="application/xhtml+xml"?Do:Vn,R=Ie(f,"ALLOWED_TAGS")?L({},f.ALLOWED_TAGS,X):Le,W=Ie(f,"ALLOWED_ATTR")?L({},f.ALLOWED_ATTR,X):He,Xo=Ie(f,"ALLOWED_NAMESPACES")?L({},f.ALLOWED_NAMESPACES,Do):Bf,qo=Ie(f,"ADD_URI_SAFE_ATTR")?L(Re(xi),f.ADD_URI_SAFE_ATTR,X):xi,_i=Ie(f,"ADD_DATA_URI_TAGS")?L(Re(Ei),f.ADD_DATA_URI_TAGS,X):Ei,$t=Ie(f,"FORBID_CONTENTS")?L({},f.FORBID_CONTENTS,X):Si,Qe=Ie(f,"FORBID_TAGS")?L({},f.FORBID_TAGS,X):Re({}),cn=Ie(f,"FORBID_ATTR")?L({},f.FORBID_ATTR,X):Re({}),Pt=Ie(f,"USE_PROFILES")?f.USE_PROFILES:!1,Un=f.ALLOW_ARIA_ATTR!==!1,dn=f.ALLOW_DATA_ATTR!==!1,Wn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Kn=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=f.SAFE_FOR_TEMPLATES||!1,Tt=f.SAFE_FOR_XML!==!1,ze=f.WHOLE_DOCUMENT||!1,tt=f.RETURN_DOM||!1,It=f.RETURN_DOM_FRAGMENT||!1,At=f.RETURN_TRUSTED_TYPE||!1,mn=f.FORCE_BODY||!1,Gn=f.SANITIZE_DOM!==!1,qn=f.SANITIZE_NAMED_PROPS||!1,fn=f.KEEP_CONTENT!==!1,ut=f.IN_PLACE||!1,Se=f.ALLOWED_URI_REGEXP||ui,Bt=f.NAMESPACE||Fe,Zn=f.MATHML_TEXT_INTEGRATION_POINTS||Zn,Jn=f.HTML_INTEGRATION_POINTS||Jn,z=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&Ti(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&Ti(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(dn=!1),It&&(tt=!0),Pt&&(R=L({},li),W=[],Pt.html===!0&&(L(R,si),L(W,ci)),Pt.svg===!0&&(L(R,Vo),L(W,zo),L(W,jn)),Pt.svgFilters===!0&&(L(R,jo),L(W,zo),L(W,jn)),Pt.mathMl===!0&&(L(R,Ho),L(W,di),L(W,jn))),f.ADD_TAGS&&(R===Le&&(R=Re(R)),L(R,f.ADD_TAGS,X)),f.ADD_ATTR&&(W===He&&(W=Re(W)),L(W,f.ADD_ATTR,X)),f.ADD_URI_SAFE_ATTR&&L(qo,f.ADD_URI_SAFE_ATTR,X),f.FORBID_CONTENTS&&($t===Si&&($t=Re($t)),L($t,f.FORBID_CONTENTS,X)),fn&&(R["#text"]=!0),ze&&L(R,["html","head","body"]),R.table&&(L(R,["tbody"]),delete Qe.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw an('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=f.TRUSTED_TYPES_POLICY,E=v.createHTML("")}else v===void 0&&(v=ff(h,a)),v!==null&&typeof E=="string"&&(E=v.createHTML(""));le&&le(f),Lt=f}},Ii=L({},[...Vo,...jo,...tf]),Ai=L({},[...Ho,...nf]),Df=function(f){let y=B(f);(!y||!y.tagName)&&(y={namespaceURI:Bt,tagName:"template"});const _=Vn(f.tagName),F=Vn(y.tagName);return Xo[f.namespaceURI]?f.namespaceURI===Xn?y.namespaceURI===Fe?_==="svg":y.namespaceURI===Yn?_==="svg"&&(F==="annotation-xml"||Zn[F]):!!Ii[_]:f.namespaceURI===Yn?y.namespaceURI===Fe?_==="math":y.namespaceURI===Xn?_==="math"&&Jn[F]:!!Ai[_]:f.namespaceURI===Fe?y.namespaceURI===Xn&&!Jn[F]||y.namespaceURI===Yn&&!Zn[F]?!1:!Ai[_]&&(Lf[_]||!Ii[_]):!!(pn==="application/xhtml+xml"&&Xo[f.namespaceURI]):!1},Oe=function(f){on(e.removed,{element:f});try{B(f).removeChild(f)}catch{C(f)}},mt=function(f,y){try{on(e.removed,{attribute:y.getAttributeNode(f),from:y})}catch{on(e.removed,{attribute:null,from:y})}if(y.removeAttribute(f),f==="is")if(tt||It)try{Oe(y)}catch{}else try{y.setAttribute(f,"")}catch{}},Pi=function(f){let y=null,_=null;if(mn)f="<remove></remove>"+f;else{const q=Ro(f,/^[\r\n\t ]+/);_=q&&q[0]}pn==="application/xhtml+xml"&&Bt===Fe&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const F=v?v.createHTML(f):f;if(Bt===Fe)try{y=new p().parseFromString(F,pn)}catch{}if(!y||!y.documentElement){y=U.createDocument(Bt,"template",null);try{y.documentElement.innerHTML=Yo?E:F}catch{}}const re=y.body||y.documentElement;return f&&_&&re.insertBefore(n.createTextNode(_),re.childNodes[0]||null),Bt===Fe?ne.call(y,ze?"html":"body")[0]:ze?y.documentElement:re},$i=function(f){return J.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Jo=function(f){return f instanceof m&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof u)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Bi=function(f){return typeof l=="function"&&f instanceof l};function Ue(x,f,y){Rn(x,_=>{_.call(e,f,y,Lt)})}const Li=function(f){let y=null;if(Ue(I.beforeSanitizeElements,f,null),Jo(f))return Oe(f),!0;const _=X(f.nodeName);if(Ue(I.uponSanitizeElement,f,{tagName:_,allowedTags:R}),Tt&&f.hasChildNodes()&&!Bi(f.firstElementChild)&&ce(/<[/\w!]/g,f.innerHTML)&&ce(/<[/\w!]/g,f.textContent)||f.nodeType===ln.progressingInstruction||Tt&&f.nodeType===ln.comment&&ce(/<[/\w]/g,f.data))return Oe(f),!0;if(!R[_]||Qe[_]){if(!Qe[_]&&Ni(_)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_)))return!1;if(fn&&!$t[_]){const F=B(f)||f.parentNode,re=S(f)||f.childNodes;if(re&&F){const q=re.length;for(let pe=q-1;pe>=0;--pe){const We=k(re[pe],!0);We.__removalCount=(f.__removalCount||0)+1,F.insertBefore(We,b(f))}}}return Oe(f),!0}return f instanceof s&&!Df(f)||(_==="noscript"||_==="noembed"||_==="noframes")&&ce(/<\/no(script|embed|frames)/i,f.innerHTML)?(Oe(f),!0):(et&&f.nodeType===ln.text&&(y=f.textContent,Rn([V,oe,ue],F=>{y=rn(y,F," ")}),f.textContent!==y&&(on(e.removed,{element:f.cloneNode()}),f.textContent=y)),Ue(I.afterSanitizeElements,f,null),!1)},Oi=function(f,y,_){if(Gn&&(y==="id"||y==="name")&&(_ in n||_ in Mf))return!1;if(!(dn&&!cn[y]&&ce(Ae,y))){if(!(Un&&ce(Ze,y))){if(!W[y]||cn[y]){if(!(Ni(f)&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,f)||z.tagNameCheck instanceof Function&&z.tagNameCheck(f))&&(z.attributeNameCheck instanceof RegExp&&ce(z.attributeNameCheck,y)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(y,f))||y==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&ce(z.tagNameCheck,_)||z.tagNameCheck instanceof Function&&z.tagNameCheck(_))))return!1}else if(!qo[y]){if(!ce(Se,rn(_,je,""))){if(!((y==="src"||y==="xlink:href"||y==="href")&&f!=="script"&&Zm(_,"data:")===0&&_i[f])){if(!(Wn&&!ce(Ve,rn(_,je,"")))){if(_)return!1}}}}}}return!0},Ni=function(f){return f!=="annotation-xml"&&Ro(f,Je)},Mi=function(f){Ue(I.beforeSanitizeAttributes,f,null);const{attributes:y}=f;if(!y||Jo(f))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let F=y.length;for(;F--;){const re=y[F],{name:q,namespaceURI:pe,value:We}=re,Ot=X(q),Qo=We;let Q=q==="value"?Qo:Jm(Qo);if(_.attrName=Ot,_.attrValue=Q,_.keepAttr=!0,_.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,f,_),Q=_.attrValue,qn&&(Ot==="id"||Ot==="name")&&(mt(q,f),Q=Go+Q),Tt&&ce(/((--!?|])>)|<\/(style|title|textarea)/i,Q)){mt(q,f);continue}if(Ot==="attributename"&&Ro(Q,"href")){mt(q,f);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){mt(q,f);continue}if(!Kn&&ce(/\/>/i,Q)){mt(q,f);continue}et&&Rn([V,oe,ue],Ri=>{Q=rn(Q,Ri," ")});const Di=X(f.nodeName);if(!Oi(Di,Ot,Q)){mt(q,f);continue}if(v&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!pe)switch(h.getAttributeType(Di,Ot)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}if(Q!==Qo)try{pe?f.setAttributeNS(pe,q,Q):f.setAttribute(q,Q),Jo(f)?Oe(f):ii(e.removed)}catch{mt(q,f)}}Ue(I.afterSanitizeAttributes,f,null)},Rf=function x(f){let y=null;const _=$i(f);for(Ue(I.beforeSanitizeShadowDOM,f,null);y=_.nextNode();)Ue(I.uponSanitizeShadowNode,y,null),Li(y),Mi(y),y.content instanceof i&&x(y.content);Ue(I.afterSanitizeShadowDOM,f,null)};return e.sanitize=function(x){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=null,_=null,F=null,re=null;if(Yo=!x,Yo&&(x="<!-->"),typeof x!="string"&&!Bi(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw an("dirty is not a string, aborting")}else throw an("toString is not a function");if(!e.isSupported)return x;if(un||Zo(f),e.removed=[],typeof x=="string"&&(ut=!1),ut){if(x.nodeName){const We=X(x.nodeName);if(!R[We]||Qe[We])throw an("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof l)y=Pi("<!---->"),_=y.ownerDocument.importNode(x,!0),_.nodeType===ln.element&&_.nodeName==="BODY"||_.nodeName==="HTML"?y=_:y.appendChild(_);else{if(!tt&&!et&&!ze&&x.indexOf("<")===-1)return v&&At?v.createHTML(x):x;if(y=Pi(x),!y)return tt?null:At?E:""}y&&mn&&Oe(y.firstChild);const q=$i(ut?x:y);for(;F=q.nextNode();)Li(F),Mi(F),F.content instanceof i&&Rf(F.content);if(ut)return x;if(tt){if(It)for(re=ke.call(y.ownerDocument);y.firstChild;)re.appendChild(y.firstChild);else re=y;return(W.shadowroot||W.shadowrootmode)&&(re=Ce.call(o,re,!0)),re}let pe=ze?y.outerHTML:y.innerHTML;return ze&&R["!doctype"]&&y.ownerDocument&&y.ownerDocument.doctype&&y.ownerDocument.doctype.name&&ce(mi,y.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+y.ownerDocument.doctype.name+`>
|
|
427
|
+
`+pe),et&&Rn([V,oe,ue],We=>{pe=rn(pe,We," ")}),v&&At?v.createHTML(pe):pe},e.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(x),un=!0},e.clearConfig=function(){Lt=null,un=!1},e.isValidAttribute=function(x,f,y){Lt||Zo({});const _=X(x),F=X(f);return Oi(_,F,y)},e.addHook=function(x,f){typeof f=="function"&&on(I[x],f)},e.removeHook=function(x,f){if(f!==void 0){const y=Ym(I[x],f);return y===-1?void 0:Xm(I[x],y,1)[0]}return ii(I[x])},e.removeHooks=function(x){I[x]=[]},e.removeAllHooks=function(){I=pi()},e}var Fo=hi();const pf=t=>!(!t||!(t instanceof HTMLElement)||Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<640);class gi{get IsVisible(){return dt.isVisible()}async CreateConfirmAsync(e){return this.ConfirmWithOptionsAsync(e)}async ConfirmWithOptionsAsync(e){return e.confirmLabel??="sim",e.rejectLabel??="não",e.confirmColor??="primary",e.rejectColor??="primary",pf(e.target)?this.CreatePopoverAsync(e).then(n=>n===!0):new Promise(n=>{dt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Fo.sanitize(e.text),confirmButtonText:e.confirmLabel,cancelButtonText:e.rejectLabel,confirmButtonColor:`var(--${e.confirmColor}-color)`,cancelButtonColor:`var(--${e.rejectColor}-color)`}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e,n){return this.ConfirmWithOptionsAsync({text:e,target:n})}async CreatePopoverAsync(e){let n;const o=new Promise(i=>{n=i}),a=new CustomEvent("sfconfirm:popup",{detail:{options:e,resolve:n},bubbles:!0,cancelable:!0,composed:!0});return document.dispatchEvent(a),o}}const bi=()=>new gi,hf=()=>new gi;function gf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hn={exports:{}},bf=Hn.exports,wi;function wf(){return wi||(wi=1,(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(bf,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],i={},c=null;function l(k,C){var b=k[C];if(typeof b.bind=="function")return b.bind(k);try{return Function.prototype.bind.call(b,k)}catch{return function(){return Function.prototype.apply.apply(b,[k,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(k){return k==="debug"&&(k="log"),typeof console===n?!1:k==="trace"&&o?s:console[k]!==void 0?l(console,k):console.log!==void 0?l(console,"log"):e}function u(){for(var k=this.getLevel(),C=0;C<a.length;C++){var b=a[C];this[b]=C<k?e:this.methodFactory(b,k,this.name)}if(this.log=this.debug,typeof console===n&&k<this.levels.SILENT)return"No console available for logging"}function m(k){return function(){typeof console!==n&&(u.call(this),this[k].apply(this,arguments))}}function p(k,C,b){return d(k)||m.apply(this,arguments)}function h(k,C){var b=this,S,B,v,E="loglevel";typeof k=="string"?E+=":"+k:typeof k=="symbol"&&(E=void 0);function U(I){var V=(a[I]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=V;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+V+";"}catch{}}}function J(){var I;if(!(typeof window===n||!E)){try{I=window.localStorage[E]}catch{}if(typeof I===n)try{var V=window.document.cookie,oe=encodeURIComponent(E),ue=V.indexOf(oe+"=");ue!==-1&&(I=/^([^;]+)/.exec(V.slice(ue+oe.length+1))[1])}catch{}return b.levels[I]===void 0&&(I=void 0),I}}function ke(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ne(I){var V=I;if(typeof V=="string"&&b.levels[V.toUpperCase()]!==void 0&&(V=b.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=b.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}b.name=k,b.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},b.methodFactory=C||p,b.getLevel=function(){return v??B??S},b.setLevel=function(I,V){return v=ne(I),V!==!1&&U(v),u.call(b)},b.setDefaultLevel=function(I){B=ne(I),J()||b.setLevel(I,!1)},b.resetLevel=function(){v=null,ke(),u.call(b)},b.enableAll=function(I){b.setLevel(b.levels.TRACE,I)},b.disableAll=function(I){b.setLevel(b.levels.SILENT,I)},b.rebuild=function(){if(c!==b&&(S=ne(c.getLevel())),u.call(b),c===b)for(var I in i)i[I].rebuild()},S=ne(c?c.getLevel():"WARN");var Ce=J();Ce!=null&&(v=ne(Ce)),u.call(b)}c=new h,c.getLogger=function(C){if(typeof C!="symbol"&&typeof C!="string"||C==="")throw new TypeError("You must supply a name when creating a logger.");var b=i[C];return b||(b=i[C]=new h(C,c.methodFactory)),b};var w=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=w),c},c.getLoggers=function(){return i},c.default=c,c})})(Hn)),Hn.exports}var vf=wf();const zn=gf(vf),yf=(t,e={})=>{zn.setDefaultLevel(e.enableLogging?zn.levels.DEBUG:zn.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),a=r.ref(0),i=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),d=r.ref(0);t.provide(Yr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:a,pageTitle:l,isDarkMode:i,ToggleTheme:()=>Xt.Toggle(),EnableDarkMode:()=>Xt.EnableDarkMode(),EnableLightMode:()=>Xt.EnableLightMode(),ClearStoredTheme:()=>Xt.ClearStoredTheme(),LogoutAsync:async m=>{const p=bi(),{oidc:h}=ft.UseAuth();await p.ConfirmWithOptionsAsync({text:"Deseja sair da sua conta?",target:m.currentTarget,confirmColor:"error"})&&(Fn("Saindo..."),c.value=!0,await new Promise(k=>setTimeout(k,1e3)),h.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Ko()}))},LogoutWithoutConfirmation:async()=>{const{oidc:m}=ft.UseAuth();Fn("Saindo..."),c.value=!0,await new Promise(p=>setTimeout(p,1e3)),m.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Ko()})},Login:()=>{const{oidc:m}=ft.UseAuth();m.login()},isLoggingOut:c,mainRef:s,mainWidth:d,isMainXs:r.computed(()=>d.value<=384),isMainSm:r.computed(()=>d.value>384),isMainMd:r.computed(()=>d.value>768),isMainLg:r.computed(()=>d.value>992),isMainXl:r.computed(()=>d.value>1280),isMain2Xl:r.computed(()=>d.value>1536),isMain3Xl:r.computed(()=>d.value>1920)}),new MutationObserver(()=>{i.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{a.value=document.documentElement.scrollTop}),Xt.SetInitialTheme()},kf=zn;class Uo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class vi{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}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 Uo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class yi{get IsVisible(){return dt.isVisible()}async CreateAlertAsync(e){let n="info",o,a;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",a=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{dt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:a,html:`<div style="max-height: 50vh; overflow: auto">${Fo.sanitize(o)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const ki=()=>new yi,Cf=()=>new yi;window.addEventListener("error",function(t){return Wo(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Wo(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const Sf=t=>{t.config.errorHandler=(e,n,o)=>{Wo(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Wo=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Uo||t instanceof vi?(ki().AlertErrorAsync(t.errors),!0):!1},xt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Ci={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},_f={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Ci},dark:{...Ci}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:xt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:xt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:xt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:xt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class Ef{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){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?Me.MaskCpf(this.username):this.username.length===14?Me.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function xf(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),a=r.computed(()=>t.value==="hml"),i=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:a,isProd:i,user:c,$reset:l}}const Tf=t=>{const e=new Set;function n(o){const{name:a,children:i}=o;if(a){if(e.has(a))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${a}`].join(`
|
|
428
|
+
`));e.add(a)}if(i&&Array.isArray(i))for(const c of i)n(c)}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}});class If{current=null;resolve=null;async showAsync(e,n){const o={message:e,life:n??5e3};return this.Render(o)}async Render(e){return new Promise(n=>{this.resolve=n,this.current&&(this.current.style.opacity="0",setTimeout((function(){this.parentElement&&this.parentElement.removeChild(this)}).bind(this.current),500));const o=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");a.className="content",i.className="progress",a.appendChild(i),o.className="sf-toast",o.style.zIndex=Me.GetMaxZindex().toString(),o.appendChild(a),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const d=s.propertyName==="opacity",u=s.target.classList.contains("visible");d&&!u&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const d=document.createElement("p");d.innerHTML=Fo.sanitize(s),a.appendChild(d)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),a.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){i.style.transitionDuration=`${e.life-300}ms`,a.classList.add("animate"),setTimeout(()=>{this.current===o&&this.Close()},e.life);return}})}Close(){this.resolve&&this.resolve(),this.current&&this.current.classList.remove("visible")}}const Af=new If,Pf=()=>Af;function Ko(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Fn(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function $f(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw Fn("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}A.AppError=Uo,A.AppResult=vi,A.BaseAppState=xf,A.EnsureUniqueRouteNames=Tf,A.GetEnvironmentAsync=$f,A.RemovePreloader=Ko,A.RestorePreloader=Fn,A.SfButton=pt,A.SfContent=mc,A.SfDrawer=Qn,A.SfHelpButton=uc,A.SfIcon=we,A.SfLoadingCircle=nr,A.SfLogin=xc,A.SfMain=ad,A.SfMainTopBarAccount=Xr,A.SfMessage=es,A.SfNavMenu=dc,A.SfPageTitle=id,A.SfTabNavigation=Yi,A.SfTooltip=er,A.UseAlert=ki,A.UseAlertService=Cf,A.UseAppInject=rt,A.UseConfirm=bi,A.UseConfirmService=hf,A.UseSimpleToast=Pf,A.User=Ef,A.Utilities=Me,A._logger=kf,A.configSF=yf,A.globalErrorHandler=Sf,A.themePreset=_f,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
425
429
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|