@luizleon/sf.prefeiturasp.vuecomponents 4.0.0 → 4.0.1

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.
Files changed (67) hide show
  1. package/dist/sf.prefeiturasp.vuecomponents.cjs +423 -0
  2. package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -0
  3. package/dist/{sf.prefeiturasp.vuecomponents.es.js → sf.prefeiturasp.vuecomponents.js} +2103 -2222
  4. package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -0
  5. package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +423 -0
  6. package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -0
  7. package/dist/{axios → src/axios}/axiosClient.d.ts +3 -3
  8. package/dist/{components/button/Button.d.ts → src/components/button/Button.vue.d.ts} +3 -3
  9. package/dist/{components/content/Content.d.ts → src/components/content/Content.vue.d.ts} +2 -2
  10. package/dist/{components/drawer/Drawer.d.ts → src/components/drawer/Drawer.vue.d.ts} +4 -4
  11. package/dist/{components/icon/Icon.d.ts → src/components/icon/Icon.vue.d.ts} +4 -4
  12. package/dist/src/components/internal/HeaderAvatar.vue.d.ts +6 -0
  13. package/dist/src/components/internal/LoadingCircle.vue.d.ts +2 -0
  14. package/dist/src/components/internal/MenuIcon.vue.d.ts +2 -0
  15. package/dist/src/components/internal/ScrollToTop.vue.d.ts +2 -0
  16. package/dist/src/components/internal/ThemeToggle.d.ts +10 -0
  17. package/dist/src/components/internal/ThemeToggle.vue.d.ts +2 -0
  18. package/dist/src/components/layout/Layout.vue.d.ts +27 -0
  19. package/dist/{components/message/Message.d.ts → src/components/message/Message.vue.d.ts} +3 -3
  20. package/dist/src/components/navmenu/NavMenu.vue.d.ts +15 -0
  21. package/dist/{components/tabnavigation/TabNavigation.d.ts → src/components/tabnavigation/TabNavigation.vue.d.ts} +1 -1
  22. package/dist/{components/tooltip/Tooltip.d.ts → src/components/tooltip/Tooltip.vue.d.ts} +1 -1
  23. package/dist/src/index.d.ts +17 -0
  24. package/dist/{services → src/services}/authService.d.ts +2 -2
  25. package/dist/{services → src/services}/dialogService.d.ts +1 -1
  26. package/dist/{types → src/types}/index.d.ts +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -0
  29. package/package.json +7 -5
  30. package/src/components/layout/Layout.vue +7 -0
  31. package/src/components/navmenu/NavMenu.vue +5 -1
  32. package/src/index.ts +0 -4
  33. package/src/vite-env.d.ts +1 -0
  34. package/tsconfig.json +5 -3
  35. package/vite.config.js +2 -4
  36. package/dist/components/internal/HeaderAvatar.d.ts +0 -6
  37. package/dist/components/internal/LoadingCircle.d.ts +0 -2
  38. package/dist/components/internal/MenuIcon.d.ts +0 -2
  39. package/dist/components/internal/ScrollToTop.d.ts +0 -2
  40. package/dist/components/internal/ThemeToggle.d.ts +0 -2
  41. package/dist/components/layout/Layout.d.ts +0 -21
  42. package/dist/components/navmenu/NavMenu.d.ts +0 -12
  43. package/dist/components/navmenulink/NavMenuLink.d.ts +0 -18
  44. package/dist/components/panelmenu/PanelMenu.d.ts +0 -16
  45. package/dist/index.d.ts +0 -18
  46. package/dist/keycloak.d.ts +0 -671
  47. package/dist/sf.prefeiturasp.vuecomponents.es.js.map +0 -1
  48. package/dist/sf.prefeiturasp.vuecomponents.umd.js +0 -423
  49. package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +0 -1
  50. package/src/components/button/Button.d.ts +0 -26
  51. package/src/components/content/Content.d.ts +0 -28
  52. package/src/components/drawer/Drawer.d.ts +0 -50
  53. package/src/components/icon/Icon.d.ts +0 -23
  54. package/src/components/layout/Layout.d.ts +0 -44
  55. package/src/components/message/Message.d.ts +0 -28
  56. package/src/components/navmenu/NavMenu.d.ts +0 -30
  57. package/src/components/navmenulink/NavMenuLink.d.ts +0 -29
  58. package/src/components/navmenulink/NavMenuLink.vue +0 -49
  59. package/src/components/panelmenu/PanelMenu.d.ts +0 -26
  60. package/src/components/panelmenu/PanelMenu.vue +0 -101
  61. package/src/components/tabnavigation/TabNavigation.d.ts +0 -34
  62. package/src/components/tooltip/Tooltip.d.ts +0 -23
  63. package/src/ts-helpers.d.ts +0 -57
  64. /package/dist/{common → src/common}/appResult.d.ts +0 -0
  65. /package/dist/{components → src/components}/internal/cssClassBuilder.d.ts +0 -0
  66. /package/dist/{components → src/components}/internal/getMaxZindex.d.ts +0 -0
  67. /package/dist/{services → src/services}/navMenuService.d.ts +0 -0
@@ -0,0 +1,423 @@
1
+ "use strict";var _a=Object.defineProperty;var ka=(t,e,n)=>e in t?_a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Me=(t,e,n)=>ka(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue");class Ca{constructor(){Me(this,"_visible",c.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const Ea=new Ca,jr=()=>Ea;class at{constructor(e){Me(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Fi(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let Aa=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const Mn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Ta={},xa={class:"sf-loading-circle"},Pa=c.createElementVNode("div",null,[c.createElementVNode("svg",{viewBox:"25 25 50 50"},[c.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1),Ia=[Pa];function Oa(t,e){return c.openBlock(),c.createElementBlock("div",xa,Ia)}const La=Mn(Ta,[["render",Oa]]),Vr=c.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Me(this,"zIndex");Me(this,"wrapper");Me(this,"inner");this.zIndex=Fi()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text;const s=i.target;document.body.appendChild(this.wrapper),this.Position(s.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const l=i.top,a=i.bottom,u=i.left,d=i.right,m=i.width/2-15,g=this.wrapper;g.style.top=`${a+10}px`,g.style.left=`${u}px`,g.style.marginLeft=`${m}px`,this.OutOfBottom()&&(g.style.top=`${l-g.clientHeight-10}px`,g.classList.add("top")),this.OutOfRight()&&(g.style.left=`${d-g.clientWidth}px`,g.style.marginLeft=`-${m}px`,g.classList.add("left"))}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)}}const r=new n;return c.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(c.openBlock(),c.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>c.unref(r).Show&&c.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>c.unref(r).Hide&&c.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>c.unref(r).Hide&&c.unref(r).Hide(...s))},[c.renderSlot(o.$slots,"default")],32))}}),Ra=["disabled","tabindex"],$a=["data-color"],Na=c.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=c.computed(()=>e.tooltip?Vr:"div"),r=c.computed(()=>e.tooltip?"":"display-content"),o=c.computed(()=>new at(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,s)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(n.value),{text:e.tooltip,class:c.normalizeClass(r.value)},{default:c.withCtx(()=>[e.visible?(c.openBlock(),c.createElementBlock("div",{key:0,style:c.normalizeStyle(e.style),class:c.normalizeClass(o.value)},[c.createElementVNode("button",c.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(c.openBlock(),c.createBlock(La,{key:0})):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(e.icon),1)],64))],16,Ra),e.dot?(c.openBlock(),c.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,$a)):c.createCommentVNode("",!0)],6)):c.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),On=Mn(Na,[["__scopeId","data-v-acf8f09c"]]),Ba=["id","onClick"],Da={class:"sf-drawer-header"},Fa={class:"sf-drawer-title"},Ma={class:"sf-drawer-content"},Ua={key:0,class:"sf-drawer-footer"},Mi=c.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=c.useSlots(),i=c.ref(n.visible),s=c.ref(!1),l=c.ref(0),a=Aa();function u(){i.value=!1}function d(S){(S.key==="Escape"||S.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(S){l.value=Fi(),S.style.zIndex=`${l.value}`}function _(S){var j;r("before-close"),(j=S==null?void 0:S.parentElement)==null||j.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",d,!0),s.value=!1}function B(){return new at("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return c.watch(()=>n.visible,S=>{i.value=S}),c.watch(()=>i.value,S=>{r("update:visible",S),S&&(s.value=!0)}),(S,j)=>(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[s.value?(c.openBlock(),c.createElementBlock("div",{key:0,id:c.unref(a),class:c.normalizeClass(B()),style:c.normalizeStyle({zIndex:l.value-1}),onClick:c.withModifiers(u,["stop"])},[c.createVNode(c.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:_,onAfterLeave:w},{default:c.withCtx(()=>[i.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!c.unref(o).footer}]),style:c.normalizeStyle(n.style),role:"dialog",onClick:j[0]||(j[0]=c.withModifiers(A=>S.void,["stop"]))},[c.createElementVNode("div",Da,[c.createElementVNode("span",Fa,[c.renderSlot(S.$slots,"title")]),c.createVNode(On,{button:!0,icon:"close",onClick:c.withModifiers(u,["stop"])},null,8,["onClick"])]),c.createElementVNode("div",Ma,[c.renderSlot(S.$slots,"default")]),c.unref(o).footer?(c.openBlock(),c.createElementBlock("div",Ua,[c.renderSlot(S.$slots,"footer")])):c.createCommentVNode("",!0)],6)):c.createCommentVNode("",!0)]),_:3})],14,Ba)):c.createCommentVNode("",!0)]))}}),Ha=["id","name","disabled","data-color","form","type"],ja={class:"sf-button-label"},Ui=c.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new at(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(c.openBlock(),c.createElementBlock("button",{key:0,id:e.id,name:e.name,class:c.normalizeClass(n()),style:c.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(c.openBlock(),c.createBlock(On,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1}},null,8,["icon","loading","size"])):e.loading?(c.openBlock(),c.createBlock(On,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):c.createCommentVNode("",!0),c.createElementVNode("span",ja,[c.renderSlot(r.$slots,"default")])],14,Ha)):c.createCommentVNode("",!0)}}),Hi="SweetAlert2:",Va=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},zr=t=>t.charAt(0).toUpperCase()+t.slice(1),De=t=>Array.prototype.slice.call(t),Le=t=>{console.warn(`${Hi} ${typeof t=="object"?t.join(" "):t}`)},St=t=>{console.error(`${Hi} ${t}`)},Ro=[],za=t=>{Ro.includes(t)||(Ro.push(t),Le(t))},Ka=(t,e)=>{za(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Un=t=>typeof t=="function"?t():t,Kr=t=>t&&typeof t.toPromise=="function",un=t=>Kr(t)?t.toPromise():Promise.resolve(t),Wr=t=>t&&Promise.resolve(t)===t,xt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Wa=["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"],qa={},Ga=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ji=t=>Object.prototype.hasOwnProperty.call(xt,t),Vi=t=>Wa.indexOf(t)!==-1,_r=t=>qa[t],Ja=t=>{ji(t)||Le(`Unknown parameter "${t}"`)},Ya=t=>{Ga.includes(t)&&Le(`The parameter "${t}" is incompatible with toasts`)},Xa=t=>{_r(t)&&Ka(t,_r(t))},Za=t=>{!t.backdrop&&t.allowOutsideClick&&Le('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ja(e),t.toast&&Ya(e),Xa(e)},Qa="swal2-",zi=t=>{const e={};for(const n in t)e[t[n]]=Qa+t[n];return e},b=zi(["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"]),Yt=zi(["success","warning","info","question","error"]),Se=()=>document.body.querySelector(`.${b.container}`),dn=t=>{const e=Se();return e?e.querySelector(t):null},je=t=>dn(`.${t}`),ae=()=>je(b.popup),fn=()=>je(b.icon),Ki=()=>je(b.title),Ln=()=>je(b["html-container"]),Wi=()=>je(b.image),qi=()=>je(b["progress-steps"]),Hn=()=>je(b["validation-message"]),Ge=()=>dn(`.${b.actions} .${b.confirm}`),ct=()=>dn(`.${b.actions} .${b.deny}`),el=()=>je(b["input-label"]),Lt=()=>dn(`.${b.loader}`),vt=()=>dn(`.${b.actions} .${b.cancel}`),mn=()=>je(b.actions),Gi=()=>je(b.footer),jn=()=>je(b["timer-progress-bar"]),qr=()=>je(b.close),tl=`
2
+ a[href],
3
+ area[href],
4
+ input:not([disabled]),
5
+ select:not([disabled]),
6
+ textarea:not([disabled]),
7
+ button:not([disabled]),
8
+ iframe,
9
+ object,
10
+ embed,
11
+ [tabindex="0"],
12
+ [contenteditable],
13
+ audio[controls],
14
+ video[controls],
15
+ summary
16
+ `,Gr=()=>{const t=De(ae().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=De(ae().querySelectorAll(tl)).filter(n=>n.getAttribute("tabindex")!=="-1");return Va(t.concat(e)).filter(n=>$e(n))},Jr=()=>ot(document.body,b.shown)&&!ot(document.body,b["toast-shown"])&&!ot(document.body,b["no-backdrop"]),Vn=()=>ae()&&ot(ae(),b.toast),nl=()=>ae().hasAttribute("data-loading"),Pt={previousBodyPadding:null},we=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");De(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),De(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},ot=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},rl=(t,e)=>{De(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(Yt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},He=(t,e,n)=>{if(rl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return Le(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);re(t,e.customClass[n])}},Yr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return t.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return t.querySelector(`.${b.popup} > .${b.radio} input:checked`)||t.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return t.querySelector(`.${b.popup} > .${b.range} input`);default:return t.querySelector(`.${b.popup} > .${b.input}`)}},Ji=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Yi=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},re=(t,e)=>{Yi(t,e,!0)},Qe=(t,e)=>{Yi(t,e,!1)},lt=(t,e)=>{const n=De(t.childNodes);for(let r=0;r<n.length;r++)if(ot(n[r],e))return n[r]},Xt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},ye=(t,e="flex")=>{t.style.display=e},_e=t=>{t.style.display="none"},$o=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},zn=(t,e,n)=>{e?ye(t,n):_e(t)},$e=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),ol=()=>!$e(Ge())&&!$e(ct())&&!$e(vt()),No=t=>t.scrollHeight>t.clientHeight,Xi=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Xr=(t,e=!1)=>{const n=jn();$e(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},il=()=>{const t=jn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},Zi=()=>typeof window>"u"||typeof document>"u",sl=100,Y={},al=()=>{Y.previousActiveElement&&Y.previousActiveElement.focus?(Y.previousActiveElement.focus(),Y.previousActiveElement=null):document.body&&document.body.focus()},ll=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;Y.restoreFocusTimeout=setTimeout(()=>{al(),e()},sl),window.scrollTo(n,r)}),cl=`
17
+ <div aria-labelledby="${b.title}" aria-describedby="${b["html-container"]}" class="${b.popup}" tabindex="-1">
18
+ <button type="button" class="${b.close}"></button>
19
+ <ul class="${b["progress-steps"]}"></ul>
20
+ <div class="${b.icon}"></div>
21
+ <img class="${b.image}" />
22
+ <h2 class="${b.title}" id="${b.title}"></h2>
23
+ <div class="${b["html-container"]}" id="${b["html-container"]}"></div>
24
+ <input class="${b.input}" />
25
+ <input type="file" class="${b.file}" />
26
+ <div class="${b.range}">
27
+ <input type="range" />
28
+ <output></output>
29
+ </div>
30
+ <select class="${b.select}"></select>
31
+ <div class="${b.radio}"></div>
32
+ <label for="${b.checkbox}" class="${b.checkbox}">
33
+ <input type="checkbox" />
34
+ <span class="${b.label}"></span>
35
+ </label>
36
+ <textarea class="${b.textarea}"></textarea>
37
+ <div class="${b["validation-message"]}" id="${b["validation-message"]}"></div>
38
+ <div class="${b.actions}">
39
+ <div class="${b.loader}"></div>
40
+ <button type="button" class="${b.confirm}"></button>
41
+ <button type="button" class="${b.deny}"></button>
42
+ <button type="button" class="${b.cancel}"></button>
43
+ </div>
44
+ <div class="${b.footer}"></div>
45
+ <div class="${b["timer-progress-bar-container"]}">
46
+ <div class="${b["timer-progress-bar"]}"></div>
47
+ </div>
48
+ </div>
49
+ `.replace(/(^|\n)\s*/g,""),ul=()=>{const t=Se();return t?(t.remove(),Qe([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},mt=()=>{Y.currentInstance.resetValidationMessage()},dl=()=>{const t=ae(),e=lt(t,b.input),n=lt(t,b.file),r=t.querySelector(`.${b.range} input`),o=t.querySelector(`.${b.range} output`),i=lt(t,b.select),s=t.querySelector(`.${b.checkbox} input`),l=lt(t,b.textarea);e.oninput=mt,n.onchange=mt,i.onchange=mt,s.onchange=mt,l.oninput=mt,r.oninput=()=>{mt(),o.value=r.value},r.onchange=()=>{mt(),r.nextSibling.value=r.value}},fl=t=>typeof t=="string"?document.querySelector(t):t,ml=t=>{const e=ae();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},pl=t=>{window.getComputedStyle(t).direction==="rtl"&&re(Se(),b.rtl)},hl=t=>{const e=ul();if(Zi()){St("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&re(n,b["no-transition"]),we(n,cl);const r=fl(t.target);r.appendChild(n),ml(t),pl(r),dl()},Zr=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?gl(t,e):t&&we(e,t)},gl=(t,e)=>{t.jquery?yl(e,t):we(e,t.toString())},yl=(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))},Qt=(()=>{if(Zi())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),vl=()=>{const t=document.createElement("div");t.className=b["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},bl=(t,e)=>{const n=mn(),r=Lt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?_e(n):ye(n),He(n,e,"actions"),wl(n,r,e),we(r,e.loaderHtml),He(r,e,"loader")};function wl(t,e,n){const r=Ge(),o=ct(),i=vt();ir(r,"confirm",n),ir(o,"deny",n),ir(i,"cancel",n),Sl(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function Sl(t,e,n,r){if(!r.buttonsStyling)return Qe([t,e,n],b.styled);re([t,e,n],b.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,re(t,b["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,re(e,b["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,re(n,b["default-outline"]))}function ir(t,e,n){zn(t,n[`show${zr(e)}Button`],"inline-block"),we(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=b[e],He(t,n,`${e}Button`),re(t,n[`${e}ButtonClass`])}function _l(t,e){typeof e=="string"?t.style.background=e:e||re([document.documentElement,document.body],b["no-backdrop"])}function kl(t,e){e in b?re(t,b[e]):(Le('The "position" parameter is not valid, defaulting to "center"'),re(t,b.center))}function Cl(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in b&&re(t,b[n])}}const El=(t,e)=>{const n=Se();n&&(_l(n,e.backdrop),kl(n,e.position),Cl(n,e.grow),He(n,e,"container"))},X={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Al=["input","file","range","select","radio","checkbox","textarea"],Tl=(t,e)=>{const n=ae(),r=X.innerParams.get(t),o=!r||e.input!==r.input;Al.forEach(i=>{const s=b[i],l=lt(n,s);Il(i,e.inputAttributes),l.className=s,o&&_e(l)}),e.input&&(o&&xl(e),Ol(e))},xl=t=>{if(!Pe[t.input])return St(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Qi(t.input),n=Pe[t.input](e,t);ye(n),setTimeout(()=>{Ji(n)})},Pl=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Il=(t,e)=>{const n=Yr(ae(),t);if(n){Pl(n);for(const r in e)n.setAttribute(r,e[r])}},Ol=t=>{const e=Qi(t.input);t.customClass&&re(e,t.customClass.input)},Qr=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},pn=(t,e,n)=>{if(n.inputLabel){t.id=b.input;const r=document.createElement("label"),o=b["input-label"];r.setAttribute("for",t.id),r.className=o,re(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Qi=t=>{const e=b[t]?b[t]:b.input;return lt(ae(),e)},Pe={};Pe.text=Pe.email=Pe.password=Pe.number=Pe.tel=Pe.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Wr(e.inputValue)||Le(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),pn(t,t,e),Qr(t,e),t.type=e.input,t);Pe.file=(t,e)=>(pn(t,t,e),Qr(t,e),t);Pe.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,pn(n,t,e),t};Pe.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");we(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return pn(t,t,e),t};Pe.radio=t=>(t.textContent="",t);Pe.checkbox=(t,e)=>{const n=Yr(ae(),"checkbox");n.value="1",n.id=b.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return we(r,e.inputPlaceholder),t};Pe.textarea=(t,e)=>{t.value=e.inputValue,Qr(t,e),pn(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(ae()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?ae().style.width=`${i}px`:ae().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Ll=(t,e)=>{const n=Ln();He(n,e,"htmlContainer"),e.html?(Zr(e.html,n),ye(n,"block")):e.text?(n.textContent=e.text,ye(n,"block")):_e(n),Tl(t,e)},Rl=(t,e)=>{const n=Gi();zn(n,e.footer),e.footer&&Zr(e.footer,n),He(n,e,"footer")},$l=(t,e)=>{const n=qr();we(n,e.closeButtonHtml),He(n,e,"closeButton"),zn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Nl=(t,e)=>{const n=X.innerParams.get(t),r=fn();if(n&&e.icon===n.icon){Do(r,e),Bo(r,e);return}if(!e.icon&&!e.iconHtml)return _e(r);if(e.icon&&Object.keys(Yt).indexOf(e.icon)===-1)return St(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),_e(r);ye(r),Do(r,e),Bo(r,e),re(r,e.showClass.icon)},Bo=(t,e)=>{for(const n in Yt)e.icon!==n&&Qe(t,Yt[n]);re(t,Yt[e.icon]),Ml(t,e),Bl(),He(t,e,"icon")},Bl=()=>{const t=ae(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},Dl=`
50
+ <div class="swal2-success-circular-line-left"></div>
51
+ <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
52
+ <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
53
+ <div class="swal2-success-circular-line-right"></div>
54
+ `,Fl=`
55
+ <span class="swal2-x-mark">
56
+ <span class="swal2-x-mark-line-left"></span>
57
+ <span class="swal2-x-mark-line-right"></span>
58
+ </span>
59
+ `,Do=(t,e)=>{t.textContent="",e.iconHtml?we(t,Fo(e.iconHtml)):e.icon==="success"?we(t,Dl):e.icon==="error"?we(t,Fl):we(t,Fo({question:"?",warning:"!",info:"i"}[e.icon]))},Ml=(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"])$o(t,n,"backgroundColor",e.iconColor);$o(t,".swal2-success-ring","borderColor",e.iconColor)}},Fo=t=>`<div class="${b["icon-content"]}">${t}</div>`,Ul=(t,e)=>{const n=Wi();if(!e.imageUrl)return _e(n);ye(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Xt(n,"width",e.imageWidth),Xt(n,"height",e.imageHeight),n.className=b.image,He(n,e,"image")},Hl=t=>{const e=document.createElement("li");return re(e,b["progress-step"]),we(e,t),e},jl=t=>{const e=document.createElement("li");return re(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Vl=(t,e)=>{const n=qi();if(!e.progressSteps||e.progressSteps.length===0)return _e(n);ye(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&Le("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=Hl(r);if(n.appendChild(i),o===e.currentProgressStep&&re(i,b["active-progress-step"]),o!==e.progressSteps.length-1){const s=jl(e);n.appendChild(s)}})},zl=(t,e)=>{const n=Ki();zn(n,e.title||e.titleText,"block"),e.title&&Zr(e.title,n),e.titleText&&(n.innerText=e.titleText),He(n,e,"title")},Kl=(t,e)=>{const n=Se(),r=ae();e.toast?(Xt(n,"width",e.width),r.style.width="100%",r.insertBefore(Lt(),fn())):Xt(r,"width",e.width),Xt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),_e(Hn()),Wl(r,e)},Wl=(t,e)=>{t.className=`${b.popup} ${$e(t)?e.showClass.popup:""}`,e.toast?(re([document.documentElement,document.body],b["toast-shown"]),re(t,b.toast)):re(t,b.modal),He(t,e,"popup"),typeof e.customClass=="string"&&re(t,e.customClass),e.icon&&re(t,b[`icon-${e.icon}`])},es=(t,e)=>{Kl(t,e),El(t,e),Vl(t,e),Nl(t,e),Ul(t,e),zl(t,e),$l(t,e),Ll(t,e),bl(t,e),Rl(t,e),typeof e.didRender=="function"&&e.didRender(ae())},Rt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),ql=()=>{De(document.body.children).forEach(e=>{e===Se()||e.contains(Se())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},ts=()=>{De(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")})},ns=["swal-title","swal-html","swal-footer"],Gl=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return tc(n),Object.assign(Jl(n),Yl(n),Xl(n),Zl(n),Ql(n),ec(n,ns))},Jl=t=>{const e={};return De(t.querySelectorAll("swal-param")).forEach(n=>{bt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof xt[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof xt[r]=="object"&&(e[r]=JSON.parse(o))}),e},Yl=t=>{const e={};return De(t.querySelectorAll("swal-button")).forEach(n=>{bt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${zr(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Xl=t=>{const e={},n=t.querySelector("swal-image");return n&&(bt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Zl=t=>{const e={},n=t.querySelector("swal-icon");return n&&(bt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Ql=t=>{const e={},n=t.querySelector("swal-input");n&&(bt(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},De(r).forEach(o=>{bt(o,["value"]);const i=o.getAttribute("value"),s=o.innerHTML;e.inputOptions[i]=s})),e},ec=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(bt(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},tc=t=>{const e=ns.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);De(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&Le(`Unrecognized element <${r}>`)})},bt=(t,e)=>{De(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Le([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Mo={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 nc(t){t.inputValidator||Object.keys(Mo).forEach(e=>{t.input===e&&(t.inputValidator=Mo[e])})}function rc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Le('Target parameter is not valid, defaulting to "body"'),t.target="body")}function oc(t){nc(t),t.showLoaderOnConfirm&&!t.preConfirm&&Le(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
60
+ showLoaderOnConfirm should be used together with preConfirm, see usage example:
61
+ https://sweetalert2.github.io/#ajax-request`),rc(t),typeof t.title=="string"&&(t.title=t.title.split(`
62
+ `).join("<br />")),hl(t)}class ic{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 sc=()=>{Pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Pt.previousBodyPadding+vl()}px`)},ac=()=>{Pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Pt.previousBodyPadding}px`,Pt.previousBodyPadding=null)},lc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!ot(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,re(document.body,b.iosfix),uc(),cc()}},cc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&ae().scrollHeight>window.innerHeight-44&&(Se().style.paddingBottom="44px")},uc=()=>{const t=Se();let e;t.ontouchstart=n=>{e=dc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},dc=t=>{const e=t.target,n=Se();return fc(t)||mc(t)?!1:e===n||!No(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(No(Ln())&&Ln().contains(e))},fc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",mc=t=>t.touches&&t.touches.length>1,pc=()=>{if(ot(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Qe(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},rs=10,hc=t=>{const e=Se(),n=ae();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;vc(e,n,t),setTimeout(()=>{gc(e,n)},rs),Jr()&&(yc(e,t.scrollbarPadding,o),ql()),!Vn()&&!Y.previousActiveElement&&(Y.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Qe(e,b["no-transition"])},os=t=>{const e=ae();if(t.target!==e)return;const n=Se();e.removeEventListener(Qt,os),n.style.overflowY="auto"},gc=(t,e)=>{Qt&&Xi(e)?(t.style.overflowY="hidden",e.addEventListener(Qt,os)):t.style.overflowY="auto"},yc=(t,e,n)=>{lc(),e&&n!=="hidden"&&sc(),setTimeout(()=>{t.scrollTop=0})},vc=(t,e,n)=>{re(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ye(e,"grid"),setTimeout(()=>{re(e,n.showClass.popup),e.style.removeProperty("opacity")},rs),re([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&re([document.documentElement,document.body],b["height-auto"])},It=t=>{let e=ae();e||new Ot,e=ae();const n=Lt();Vn()?_e(fn()):bc(e,t),ye(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},bc=(t,e)=>{const n=mn(),r=Lt();!e&&$e(Ge())&&(e=Ge()),ye(n),e&&(_e(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),re([t,n],b.loading)},wc=(t,e)=>{e.input==="select"||e.input==="radio"?Ec(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Kr(e.inputValue)||Wr(e.inputValue))&&(It(Ge()),Ac(t,e))},Sc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return _c(n);case"radio":return kc(n);case"file":return Cc(n);default:return e.inputAutoTrim?n.value.trim():n.value}},_c=t=>t.checked?1:0,kc=t=>t.checked?t.value:null,Cc=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Ec=(t,e)=>{const n=ae(),r=o=>Tc[e.input](n,kr(o),e);Kr(e.inputOptions)||Wr(e.inputOptions)?(It(Ge()),un(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):St(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ac=(t,e)=>{const n=t.getInput();_e(n),un(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,ye(n),n.focus(),t.hideLoading()}).catch(r=>{St(`Error in inputValue promise: ${r}`),n.value="",ye(n),n.focus(),t.hideLoading()})},Tc={select:(t,e,n)=>{const r=lt(t,b.select),o=(i,s,l)=>{const a=document.createElement("option");a.value=l,we(a,s),a.selected=Uo(l,n.inputValue),i.appendChild(a)};e.forEach(i=>{const s=i[0],l=i[1];if(Array.isArray(l)){const a=document.createElement("optgroup");a.label=s,a.disabled=!1,r.appendChild(a),l.forEach(u=>o(a,u[1],u[0]))}else o(r,l,s)}),r.focus()},radio:(t,e,n)=>{const r=lt(t,b.radio);e.forEach(i=>{const s=i[0],l=i[1],a=document.createElement("input"),u=document.createElement("label");a.type="radio",a.name=b.radio,a.value=s,Uo(s,n.inputValue)&&(a.checked=!0);const d=document.createElement("span");we(d,l),d.className=b.label,u.appendChild(a),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},kr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=kr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=kr(r)),e.push([n,r])}),e},Uo=(t,e)=>e&&e.toString()===t.toString();function Ho(){const t=X.innerParams.get(this);if(!t)return;const e=X.domCache.get(this);_e(e.loader),Vn()?t.icon&&ye(fn()):xc(e),Qe([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const xc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ye(e[0],"inline-block"):ol()&&_e(t.actions)};function Pc(t){const e=X.innerParams.get(t||this),n=X.domCache.get(t||this);return n?Yr(n.popup,e.input):null}const en={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Ic=()=>$e(ae()),is=()=>Ge()&&Ge().click(),Oc=()=>ct()&&ct().click(),Lc=()=>vt()&&vt().click(),ss=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Rc=(t,e,n,r)=>{ss(e),n.toast||(e.keydownHandler=o=>Nc(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:ae(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Cr=(t,e,n)=>{const r=Gr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();ae().focus()},as=["ArrowRight","ArrowDown"],$c=["ArrowLeft","ArrowUp"],Nc=(t,e,n)=>{const r=X.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Bc(t,e,r):e.key==="Tab"?Dc(e,r):[...as,...$c].includes(e.key)?Fc(e.key):e.key==="Escape"&&Mc(e,r,n)))},Bc=(t,e,n)=>{if(Un(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;is(),e.preventDefault()}},Dc=(t,e)=>{const n=t.target,r=Gr();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?Cr(e,o,-1):Cr(e,o,1),t.stopPropagation(),t.preventDefault()},Fc=t=>{const e=Ge(),n=ct(),r=vt();if(![e,n,r].includes(document.activeElement))return;const o=as.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let s=0;s<mn().children.length;s++){if(i=i[o],!i)return;if($e(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Mc=(t,e,n)=>{Un(e.allowEscapeKey)&&(t.preventDefault(),n(Rt.esc))};function ls(t,e,n,r){Vn()?jo(t,r):(ll(n).then(()=>jo(t,r)),ss(Y)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Jr()&&(ac(),pc(),ts()),Uc()}function Uc(){Qe([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function wn(t){t=zc(t);const e=en.swalPromiseResolve.get(this),n=jc(this);this.isAwaitingPromise()?t.isDismissed||(hn(this),e(t)):n&&e(t)}function Hc(){return!!X.awaitingPromise.get(this)}const jc=t=>{const e=ae();if(!e)return!1;const n=X.innerParams.get(t);if(!n||ot(e,n.hideClass.popup))return!1;Qe(e,n.showClass.popup),re(e,n.hideClass.popup);const r=Se();return Qe(r,n.showClass.backdrop),re(r,n.hideClass.backdrop),Kc(t,e,n),!0};function Vc(t){const e=en.swalPromiseReject.get(this);hn(this),e&&e(t)}const hn=t=>{t.isAwaitingPromise()&&(X.awaitingPromise.delete(t),X.innerParams.get(t)||t._destroy())},zc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Kc=(t,e,n)=>{const r=Se(),o=Qt&&Xi(e);typeof n.willClose=="function"&&n.willClose(e),o?Wc(t,e,r,n.returnFocus,n.didClose):ls(t,r,n.returnFocus,n.didClose)},Wc=(t,e,n,r,o)=>{Y.swalCloseEventFinishedCallback=ls.bind(null,t,n,r,o),e.addEventListener(Qt,function(i){i.target===e&&(Y.swalCloseEventFinishedCallback(),delete Y.swalCloseEventFinishedCallback)})},jo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function cs(t,e,n){const r=X.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function us(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function qc(){cs(this,["confirmButton","denyButton","cancelButton"],!1)}function Gc(){cs(this,["confirmButton","denyButton","cancelButton"],!0)}function Jc(){return us(this.getInput(),!1)}function Yc(){return us(this.getInput(),!0)}function Xc(t){const e=X.domCache.get(this),n=X.innerParams.get(this);we(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&re(e.validationMessage,n.customClass.validationMessage),ye(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",b["validation-message"]),Ji(r),re(r,b.inputerror))}function Zc(){const t=X.domCache.get(this);t.validationMessage&&_e(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Qe(e,b.inputerror))}function Qc(){return X.domCache.get(this).progressSteps}function eu(t){const e=ae(),n=X.innerParams.get(this);if(!e||ot(e,n.hideClass.popup))return Le("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=tu(t),o=Object.assign({},n,r);es(this,o),X.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const tu=t=>{const e={};return Object.keys(t).forEach(n=>{Vi(n)?e[n]=t[n]:Le(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
63
+
64
+ If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function nu(){const t=X.domCache.get(this),e=X.innerParams.get(this);if(!e){ds(this);return}t.popup&&Y.swalCloseEventFinishedCallback&&(Y.swalCloseEventFinishedCallback(),delete Y.swalCloseEventFinishedCallback),Y.deferDisposalTimer&&(clearTimeout(Y.deferDisposalTimer),delete Y.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),ru(this)}const ru=t=>{ds(t),delete t.params,delete Y.keydownHandler,delete Y.keydownTarget,delete Y.currentInstance},ds=t=>{t.isAwaitingPromise()?(sr(X,t),X.awaitingPromise.set(t,!0)):(sr(en,t),sr(X,t))},sr=(t,e)=>{for(const n in t)t[n].delete(e)},fs=Object.freeze(Object.defineProperty({__proto__:null,_destroy:nu,close:wn,closeModal:wn,closePopup:wn,closeToast:wn,disableButtons:Gc,disableInput:Yc,disableLoading:Ho,enableButtons:qc,enableInput:Jc,getInput:Pc,getProgressSteps:Qc,handleAwaitingPromise:hn,hideLoading:Ho,isAwaitingPromise:Hc,rejectPromise:Vc,resetValidationMessage:Zc,showValidationMessage:Xc,update:eu},Symbol.toStringTag,{value:"Module"})),ou=t=>{const e=X.innerParams.get(t);t.disableButtons(),e.input?ms(t,"confirm"):to(t,!0)},iu=t=>{const e=X.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ms(t,"deny"):eo(t,!1)},su=(t,e)=>{t.disableButtons(),e(Rt.cancel)},ms=(t,e)=>{const n=X.innerParams.get(t);if(!n.input)return St(`The "input" parameter is needed to be set when using returnInputValueOn${zr(e)}`);const r=Sc(t,n);n.inputValidator?au(t,r,e):t.getInput().checkValidity()?e==="deny"?eo(t,r):to(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},au=(t,e,n)=>{const r=X.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>un(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?eo(t,e):to(t,e)})},eo=(t,e)=>{const n=X.innerParams.get(t||void 0);n.showLoaderOnDeny&&It(ct()),n.preDeny?(X.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>un(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),hn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>ps(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},Vo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},ps=(t,e)=>{t.rejectPromise(e)},to=(t,e)=>{const n=X.innerParams.get(t||void 0);n.showLoaderOnConfirm&&It(),n.preConfirm?(t.resetValidationMessage(),X.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>un(n.preConfirm(e,n.validationMessage))).then(o=>{$e(Hn())||o===!1?(t.hideLoading(),hn(t)):Vo(t,typeof o>"u"?e:o)}).catch(o=>ps(t||void 0,o))):Vo(t,e)},lu=(t,e,n)=>{X.innerParams.get(t).toast?cu(t,e,n):(du(e),fu(e),mu(t,e,n))},cu=(t,e,n)=>{e.popup.onclick=()=>{const r=X.innerParams.get(t);r&&(uu(r)||r.timer||r.input)||n(Rt.close)}},uu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Rn=!1;const du=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Rn=!0)}}},fu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Rn=!0)}}},mu=(t,e,n)=>{e.container.onclick=r=>{const o=X.innerParams.get(t);if(Rn){Rn=!1;return}r.target===e.container&&Un(o.allowOutsideClick)&&n(Rt.backdrop)}},pu=t=>typeof t=="object"&&t.jquery,zo=t=>t instanceof Element||pu(t),hu=t=>{const e={};return typeof t[0]=="object"&&!zo(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||zo(o)?e[n]=o:o!==void 0&&St(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function gu(...t){const e=this;return new e(...t)}function yu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const vu=()=>Y.timeout&&Y.timeout.getTimerLeft(),hs=()=>{if(Y.timeout)return il(),Y.timeout.stop()},gs=()=>{if(Y.timeout){const t=Y.timeout.start();return Xr(t),t}},bu=()=>{const t=Y.timeout;return t&&(t.running?hs():gs())},wu=t=>{if(Y.timeout){const e=Y.timeout.increase(t);return Xr(e,!0),e}},Su=()=>Y.timeout&&Y.timeout.isRunning();let Ko=!1;const Er={};function _u(t="data-swal-template"){Er[t]=this,Ko||(document.body.addEventListener("click",ku),Ko=!0)}const ku=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Er){const r=e.getAttribute(n);if(r){Er[n].fire({template:r});return}}},Cu=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:hu,bindClickHandler:_u,clickCancel:Lc,clickConfirm:is,clickDeny:Oc,enableLoading:It,fire:gu,getActions:mn,getCancelButton:vt,getCloseButton:qr,getConfirmButton:Ge,getContainer:Se,getDenyButton:ct,getFocusableElements:Gr,getFooter:Gi,getHtmlContainer:Ln,getIcon:fn,getImage:Wi,getInputLabel:el,getLoader:Lt,getPopup:ae,getTimerLeft:vu,getTimerProgressBar:jn,getTitle:Ki,getValidationMessage:Hn,increaseTimer:wu,isDeprecatedParameter:_r,isLoading:nl,isTimerRunning:Su,isUpdatableParameter:Vi,isValidParameter:ji,isVisible:Ic,mixin:yu,resumeTimer:gs,showLoading:It,stopTimer:hs,toggleTimer:bu},Symbol.toStringTag,{value:"Module"}));let Ar;class $t{constructor(...e){if(typeof window>"u")return;Ar=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);X.promise.set(this,r)}_main(e,n={}){Za(Object.assign({},n,e)),Y.currentInstance&&(Y.currentInstance._destroy(),Jr()&&ts()),Y.currentInstance=this;const r=Au(e,n);oc(r),Object.freeze(r),Y.timeout&&(Y.timeout.stop(),delete Y.timeout),clearTimeout(Y.restoreFocusTimeout);const o=Tu(this);return es(this,r),X.innerParams.set(this,r),Eu(this,o,r)}then(e){return X.promise.get(this).then(e)}finally(e){return X.promise.get(this).finally(e)}}const Eu=(t,e,n)=>new Promise((r,o)=>{const i=s=>{t.closePopup({isDismissed:!0,dismiss:s})};en.swalPromiseResolve.set(t,r),en.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>ou(t),e.denyButton.onclick=()=>iu(t),e.cancelButton.onclick=()=>su(t,i),e.closeButton.onclick=()=>i(Rt.close),lu(t,e,i),Rc(t,Y,n,i),wc(t,n),hc(n),xu(Y,n,i),Pu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Au=(t,e)=>{const n=Gl(t),r=Object.assign({},xt,e,n,t);return r.showClass=Object.assign({},xt.showClass,r.showClass),r.hideClass=Object.assign({},xt.hideClass,r.hideClass),r},Tu=t=>{const e={popup:ae(),container:Se(),actions:mn(),confirmButton:Ge(),denyButton:ct(),cancelButton:vt(),loader:Lt(),closeButton:qr(),validationMessage:Hn(),progressSteps:qi()};return X.domCache.set(t,e),e},xu=(t,e,n)=>{const r=jn();_e(r),e.timer&&(t.timeout=new ic(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ye(r),He(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Xr(e.timer)})))},Pu=(t,e)=>{if(!e.toast){if(!Un(e.allowEnterKey))return Ou();Iu(t,e)||Cr(e,-1,1)}},Iu=(t,e)=>e.focusDeny&&$e(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&$e(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&$e(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Ou=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign($t.prototype,fs);Object.assign($t,Cu);Object.keys(fs).forEach(t=>{$t[t]=function(...e){if(Ar)return Ar[t](...e)}});$t.DismissReason=Rt;$t.version="11.4.8";const Ot=$t;Ot.default=Ot;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:ys,setPrototypeOf:Wo,isFrozen:Lu,getPrototypeOf:Ru,getOwnPropertyDescriptor:$u}=Object;let{freeze:Ee,seal:Je,create:vs}=Object,{apply:Tr,construct:xr}=typeof Reflect<"u"&&Reflect;Ee||(Ee=function(e){return e});Je||(Je=function(e){return e});Tr||(Tr=function(e,n,r){return e.apply(n,r)});xr||(xr=function(e,n){return new e(...n)});const Sn=Fe(Array.prototype.forEach),qo=Fe(Array.prototype.pop),Ut=Fe(Array.prototype.push),An=Fe(String.prototype.toLowerCase),ar=Fe(String.prototype.toString),Nu=Fe(String.prototype.match),Ht=Fe(String.prototype.replace),Bu=Fe(String.prototype.indexOf),Du=Fe(String.prototype.trim),ze=Fe(Object.prototype.hasOwnProperty),Re=Fe(RegExp.prototype.test),jt=Fu(TypeError);function Fe(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Tr(t,e,r)}}function Fu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xr(t,n)}}function ee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;Wo&&Wo(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(Lu(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Mu(t){for(let e=0;e<t.length;e++)ze(t,e)||(t[e]=null);return t}function pt(t){const e=vs(null);for(const[n,r]of ys(t))ze(t,n)&&(Array.isArray(r)?e[n]=Mu(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=pt(r):e[n]=r);return e}function _n(t,e){for(;t!==null;){const r=$u(t,e);if(r){if(r.get)return Fe(r.get);if(typeof r.value=="function")return Fe(r.value)}t=Ru(t)}function n(){return null}return n}const Go=Ee(["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"]),lr=Ee(["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"]),cr=Ee(["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"]),Uu=Ee(["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"]),ur=Ee(["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"]),Hu=Ee(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jo=Ee(["#text"]),Yo=Ee(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),dr=Ee(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xo=Ee(["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"]),kn=Ee(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ju=Je(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vu=Je(/<%[\w\W]*|[\w\W]*%>/gm),zu=Je(/\${[\w\W]*}/gm),Ku=Je(/^data-[\-\w.\u00B7-\uFFFF]/),Wu=Je(/^aria-[\-\w]+$/),bs=Je(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qu=Je(/^(?:\w+script|data):/i),Gu=Je(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ws=Je(/^html$/i);var Zo=Object.freeze({__proto__:null,MUSTACHE_EXPR:ju,ERB_EXPR:Vu,TMPLIT_EXPR:zu,DATA_ATTR:Ku,ARIA_ATTR:Wu,IS_ALLOWED_URI:bs,IS_SCRIPT_OR_DATA:qu,ATTR_WHITESPACE:Gu,DOCTYPE_NAME:ws});const Ju=function(){return typeof window>"u"?null:window},Yu=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Ss(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ju();const e=V=>Ss(V);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:l,Element:a,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:_}=t,w=a.prototype,B=_n(w,"cloneNode"),S=_n(w,"nextSibling"),j=_n(w,"childNodes"),A=_n(w,"parentNode");if(typeof s=="function"){const V=n.createElement("template");V.content&&V.content.ownerDocument&&(n=V.content.ownerDocument)}let E,G="";const{implementation:Q,createNodeIterator:v,createDocumentFragment:T,getElementsByTagName:M}=n,{importNode:I}=r;let O={};e.isSupported=typeof ys=="function"&&typeof A=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:K,TMPLIT_EXPR:x,DATA_ATTR:q,ARIA_ATTR:ie,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:ce}=Zo;let{IS_ALLOWED_URI:pe}=Zo,z=null;const fe=ee({},[...Go,...lr,...cr,...ur,...Jo]);let f=null;const h=ee({},[...Yo,...dr,...Xo,...kn]);let k=Object.seal(vs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,C=null,D=!0,R=!0,$=!1,U=!0,F=!1,W=!1,te=!1,Ae=!1,ke=!1,ge=!1,Xe=!1,mo=!0,po=!1;const ma="user-content-";let Qn=!0,Dt=!1,_t={},kt=null;const ho=ee({},["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 go=null;const yo=ee({},["audio","video","img","source","image","track"]);let er=null;const vo=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vn="http://www.w3.org/1998/Math/MathML",bn="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let Ct=et,tr=!1,nr=null;const pa=ee({},[vn,bn,et],ar);let Ft=null;const ha=["application/xhtml+xml","text/html"],ga="text/html";let he=null,Et=null;const ya=n.createElement("form"),bo=function(p){return p instanceof RegExp||p instanceof Function},rr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===p)){if((!p||typeof p!="object")&&(p={}),p=pt(p),Ft=ha.indexOf(p.PARSER_MEDIA_TYPE)===-1?ga:p.PARSER_MEDIA_TYPE,he=Ft==="application/xhtml+xml"?ar:An,z=ze(p,"ALLOWED_TAGS")?ee({},p.ALLOWED_TAGS,he):fe,f=ze(p,"ALLOWED_ATTR")?ee({},p.ALLOWED_ATTR,he):h,nr=ze(p,"ALLOWED_NAMESPACES")?ee({},p.ALLOWED_NAMESPACES,ar):pa,er=ze(p,"ADD_URI_SAFE_ATTR")?ee(pt(vo),p.ADD_URI_SAFE_ATTR,he):vo,go=ze(p,"ADD_DATA_URI_TAGS")?ee(pt(yo),p.ADD_DATA_URI_TAGS,he):yo,kt=ze(p,"FORBID_CONTENTS")?ee({},p.FORBID_CONTENTS,he):ho,P=ze(p,"FORBID_TAGS")?ee({},p.FORBID_TAGS,he):{},C=ze(p,"FORBID_ATTR")?ee({},p.FORBID_ATTR,he):{},_t=ze(p,"USE_PROFILES")?p.USE_PROFILES:!1,D=p.ALLOW_ARIA_ATTR!==!1,R=p.ALLOW_DATA_ATTR!==!1,$=p.ALLOW_UNKNOWN_PROTOCOLS||!1,U=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=p.SAFE_FOR_TEMPLATES||!1,W=p.WHOLE_DOCUMENT||!1,ke=p.RETURN_DOM||!1,ge=p.RETURN_DOM_FRAGMENT||!1,Xe=p.RETURN_TRUSTED_TYPE||!1,Ae=p.FORCE_BODY||!1,mo=p.SANITIZE_DOM!==!1,po=p.SANITIZE_NAMED_PROPS||!1,Qn=p.KEEP_CONTENT!==!1,Dt=p.IN_PLACE||!1,pe=p.ALLOWED_URI_REGEXP||bs,Ct=p.NAMESPACE||et,k=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&bo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&bo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(R=!1),ge&&(ke=!0),_t&&(z=ee({},Jo),f=[],_t.html===!0&&(ee(z,Go),ee(f,Yo)),_t.svg===!0&&(ee(z,lr),ee(f,dr),ee(f,kn)),_t.svgFilters===!0&&(ee(z,cr),ee(f,dr),ee(f,kn)),_t.mathMl===!0&&(ee(z,ur),ee(f,Xo),ee(f,kn))),p.ADD_TAGS&&(z===fe&&(z=pt(z)),ee(z,p.ADD_TAGS,he)),p.ADD_ATTR&&(f===h&&(f=pt(f)),ee(f,p.ADD_ATTR,he)),p.ADD_URI_SAFE_ATTR&&ee(er,p.ADD_URI_SAFE_ATTR,he),p.FORBID_CONTENTS&&(kt===ho&&(kt=pt(kt)),ee(kt,p.FORBID_CONTENTS,he)),Qn&&(z["#text"]=!0),W&&ee(z,["html","head","body"]),z.table&&(ee(z,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw jt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=p.TRUSTED_TYPES_POLICY,G=E.createHTML("")}else E===void 0&&(E=Yu(_,o)),E!==null&&typeof G=="string"&&(G=E.createHTML(""));Ee&&Ee(p),Et=p}},wo=ee({},["mi","mo","mn","ms","mtext"]),So=ee({},["foreignobject","desc","title","annotation-xml"]),va=ee({},["title","style","font","a","script"]),_o=ee({},[...lr,...cr,...Uu]),ko=ee({},[...ur,...Hu]),ba=function(p){let N=A(p);(!N||!N.tagName)&&(N={namespaceURI:Ct,tagName:"template"});const H=An(p.tagName),le=An(N.tagName);return nr[p.namespaceURI]?p.namespaceURI===bn?N.namespaceURI===et?H==="svg":N.namespaceURI===vn?H==="svg"&&(le==="annotation-xml"||wo[le]):!!_o[H]:p.namespaceURI===vn?N.namespaceURI===et?H==="math":N.namespaceURI===bn?H==="math"&&So[le]:!!ko[H]:p.namespaceURI===et?N.namespaceURI===bn&&!So[le]||N.namespaceURI===vn&&!wo[le]?!1:!ko[H]&&(va[H]||!_o[H]):!!(Ft==="application/xhtml+xml"&&nr[p.namespaceURI]):!1},dt=function(p){Ut(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},or=function(p,N){try{Ut(e.removed,{attribute:N.getAttributeNode(p),from:N})}catch{Ut(e.removed,{attribute:null,from:N})}if(N.removeAttribute(p),p==="is"&&!f[p])if(ke||ge)try{dt(N)}catch{}else try{N.setAttribute(p,"")}catch{}},Co=function(p){let N=null,H=null;if(Ae)p="<remove></remove>"+p;else{const be=Nu(p,/^[\r\n\t ]+/);H=be&&be[0]}Ft==="application/xhtml+xml"&&Ct===et&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const le=E?E.createHTML(p):p;if(Ct===et)try{N=new g().parseFromString(le,Ft)}catch{}if(!N||!N.documentElement){N=Q.createDocument(Ct,"template",null);try{N.documentElement.innerHTML=tr?G:le}catch{}}const ve=N.body||N.documentElement;return p&&H&&ve.insertBefore(n.createTextNode(H),ve.childNodes[0]||null),Ct===et?M.call(N,W?"html":"body")[0]:W?N.documentElement:ve},Eo=function(p){return v.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},wa=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof d)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Ao=function(p){return typeof l=="function"&&p instanceof l},tt=function(p,N,H){O[p]&&Sn(O[p],le=>{le.call(e,N,H,Et)})},To=function(p){let N=null;if(tt("beforeSanitizeElements",p,null),wa(p))return dt(p),!0;const H=he(p.nodeName);if(tt("uponSanitizeElement",p,{tagName:H,allowedTags:z}),p.hasChildNodes()&&!Ao(p.firstElementChild)&&Re(/<[/\w]/g,p.innerHTML)&&Re(/<[/\w]/g,p.textContent))return dt(p),!0;if(!z[H]||P[H]){if(!P[H]&&Po(H)&&(k.tagNameCheck instanceof RegExp&&Re(k.tagNameCheck,H)||k.tagNameCheck instanceof Function&&k.tagNameCheck(H)))return!1;if(Qn&&!kt[H]){const le=A(p)||p.parentNode,ve=j(p)||p.childNodes;if(ve&&le){const be=ve.length;for(let Te=be-1;Te>=0;--Te)le.insertBefore(B(ve[Te],!0),S(p))}}return dt(p),!0}return p instanceof a&&!ba(p)||(H==="noscript"||H==="noembed"||H==="noframes")&&Re(/<\/no(script|embed|frames)/i,p.innerHTML)?(dt(p),!0):(F&&p.nodeType===3&&(N=p.textContent,Sn([L,K,x],le=>{N=Ht(N,le," ")}),p.textContent!==N&&(Ut(e.removed,{element:p.cloneNode()}),p.textContent=N)),tt("afterSanitizeElements",p,null),!1)},xo=function(p,N,H){if(mo&&(N==="id"||N==="name")&&(H in n||H in ya))return!1;if(!(R&&!C[N]&&Re(q,N))){if(!(D&&Re(ie,N))){if(!f[N]||C[N]){if(!(Po(p)&&(k.tagNameCheck instanceof RegExp&&Re(k.tagNameCheck,p)||k.tagNameCheck instanceof Function&&k.tagNameCheck(p))&&(k.attributeNameCheck instanceof RegExp&&Re(k.attributeNameCheck,N)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(N))||N==="is"&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&Re(k.tagNameCheck,H)||k.tagNameCheck instanceof Function&&k.tagNameCheck(H))))return!1}else if(!er[N]){if(!Re(pe,Ht(H,ce,""))){if(!((N==="src"||N==="xlink:href"||N==="href")&&p!=="script"&&Bu(H,"data:")===0&&go[p])){if(!($&&!Re(de,Ht(H,ce,"")))){if(H)return!1}}}}}}return!0},Po=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},Io=function(p){tt("beforeSanitizeAttributes",p,null);const{attributes:N}=p;if(!N)return;const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let le=N.length;for(;le--;){const ve=N[le],{name:be,namespaceURI:Te,value:ft}=ve,Mt=he(be);let xe=be==="value"?ft:Du(ft);if(H.attrName=Mt,H.attrValue=xe,H.keepAttr=!0,H.forceKeepAttr=void 0,tt("uponSanitizeAttribute",p,H),xe=H.attrValue,H.forceKeepAttr||(or(be,p),!H.keepAttr))continue;if(!U&&Re(/\/>/i,xe)){or(be,p);continue}F&&Sn([L,K,x],Lo=>{xe=Ht(xe,Lo," ")});const Oo=he(p.nodeName);if(xo(Oo,Mt,xe)){if(po&&(Mt==="id"||Mt==="name")&&(or(be,p),xe=ma+xe),E&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Te)switch(_.getAttributeType(Oo,Mt)){case"TrustedHTML":{xe=E.createHTML(xe);break}case"TrustedScriptURL":{xe=E.createScriptURL(xe);break}}try{Te?p.setAttributeNS(Te,be,xe):p.setAttribute(be,xe),qo(e.removed)}catch{}}}tt("afterSanitizeAttributes",p,null)},Sa=function V(p){let N=null;const H=Eo(p);for(tt("beforeSanitizeShadowDOM",p,null);N=H.nextNode();)tt("uponSanitizeShadowNode",N,null),!To(N)&&(N.content instanceof i&&V(N.content),Io(N));tt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(V){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null,H=null,le=null,ve=null;if(tr=!V,tr&&(V="<!-->"),typeof V!="string"&&!Ao(V))if(typeof V.toString=="function"){if(V=V.toString(),typeof V!="string")throw jt("dirty is not a string, aborting")}else throw jt("toString is not a function");if(!e.isSupported)return V;if(te||rr(p),e.removed=[],typeof V=="string"&&(Dt=!1),Dt){if(V.nodeName){const ft=he(V.nodeName);if(!z[ft]||P[ft])throw jt("root node is forbidden and cannot be sanitized in-place")}}else if(V instanceof l)N=Co("<!---->"),H=N.ownerDocument.importNode(V,!0),H.nodeType===1&&H.nodeName==="BODY"||H.nodeName==="HTML"?N=H:N.appendChild(H);else{if(!ke&&!F&&!W&&V.indexOf("<")===-1)return E&&Xe?E.createHTML(V):V;if(N=Co(V),!N)return ke?null:Xe?G:""}N&&Ae&&dt(N.firstChild);const be=Eo(Dt?V:N);for(;le=be.nextNode();)To(le)||(le.content instanceof i&&Sa(le.content),Io(le));if(Dt)return V;if(ke){if(ge)for(ve=T.call(N.ownerDocument);N.firstChild;)ve.appendChild(N.firstChild);else ve=N;return(f.shadowroot||f.shadowrootmode)&&(ve=I.call(r,ve,!0)),ve}let Te=W?N.outerHTML:N.innerHTML;return W&&z["!doctype"]&&N.ownerDocument&&N.ownerDocument.doctype&&N.ownerDocument.doctype.name&&Re(ws,N.ownerDocument.doctype.name)&&(Te="<!DOCTYPE "+N.ownerDocument.doctype.name+`>
65
+ `+Te),F&&Sn([L,K,x],ft=>{Te=Ht(Te,ft," ")}),E&&Xe?E.createHTML(Te):Te},e.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rr(V),te=!0},e.clearConfig=function(){Et=null,te=!1},e.isValidAttribute=function(V,p,N){Et||rr({});const H=he(V),le=he(p);return xo(H,le,N)},e.addHook=function(V,p){typeof p=="function"&&(O[V]=O[V]||[],Ut(O[V],p))},e.removeHook=function(V){if(O[V])return qo(O[V])},e.removeHooks=function(V){O[V]&&(O[V]=[])},e.removeAllHooks=function(){O={}},e}var _s=Ss();let ks=class{get IsVisible(){return Ot.isVisible()}};class Xu extends ks{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{Ot.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${_s.sanitize(r)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class Zu extends ks{async CreateConfirmAsync(e){return new Promise(n=>{Ot.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:_s.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Qu=()=>new Xu,Cs=()=>new Zu,ed=["data-cor"],td={class:"sf-p-4"},nd=c.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Cs(),r=c.ref("?"),o=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&o("logout")}function s(){const u=sessionStorage.getItem("name");let d="?";if(!u)return d;const m=u.split(" ").filter(_=>_.length>0).map(_=>_[0].toUpperCase()),g=Math.min(2,m.length);return d=m.slice(0,g).join(""),d.length>0?d:"?"}const l=c.computed(()=>{const u=r.value[0],d=u==="?"?0:(u.charCodeAt(0)-64)%19;return Math.max(d,0)}),a=c.ref(!1);return c.onMounted(()=>{r.value=s()}),(u,d)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",{id:"sf-header-avatar","data-cor":l.value,onClick:d[0]||(d[0]=m=>a.value=!0)},c.toDisplayString(r.value),9,ed),c.createVNode(Mi,{visible:a.value,"onUpdate:visible":d[1]||(d[1]=m=>a.value=m),position:"right"},{title:c.withCtx(()=>[c.createTextVNode("Minha conta")]),default:c.withCtx(()=>[c.createElementVNode("div",td,[c.createVNode(Ui,{color:"error",onClick:i},{default:c.withCtx(()=>[c.createTextVNode("Sair")]),_:1})])]),_:1},8,["visible"])],64))}}),rd={},od={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},id=c.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1),sd=[id];function ad(t,e){return c.openBlock(),c.createElementBlock("svg",od,sd)}const ld=Mn(rd,[["render",ad]]);class cd{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()}}const Pr=new cd,ud=c.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1),dd=[ud],fd=c.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>c.unref(Pr).Toggle&&c.unref(Pr).Toggle(...r))},dd))}}),md={id:"sf-layout"},pd=c.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),hd={class:"title"},gd={class:"sf-layout-nav-content"},yd=c.createElementVNode("div",{class:"sf-layout-nav-footer"},[c.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),vd=c.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),bd={id:"sf-layout-content"},wd=c.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=jr(),r=e;return c.onMounted(()=>{r("mounted")}),(o,i)=>(c.openBlock(),c.createElementBlock("div",md,[c.createElementVNode("header",null,[c.createElementVNode("div",{class:c.normalizeClass(["sf-layout-menu-toggler",{invert:c.unref(n).IsVisible}]),onClick:i[0]||(i[0]=s=>c.unref(n).Toggle())},[pd,c.createVNode(ld)],2),c.createElementVNode("div",hd,[c.renderSlot(o.$slots,"title")]),c.renderSlot(o.$slots,"action"),c.createVNode(Vr,{text:"Tema"},{default:c.withCtx(()=>[c.createVNode(fd)]),_:1}),c.createVNode(nd,{onLogout:i[1]||(i[1]=s=>r("logout"))})]),c.createElementVNode("nav",{class:c.normalizeClass({visible:c.unref(n).IsVisible})},[c.createElementVNode("div",gd,[c.renderSlot(o.$slots,"menu")]),yd],2),c.createElementVNode("main",{class:c.normalizeClass({"menu-visible":c.unref(n).IsVisible})},[vd,c.createElementVNode("section",bd,[c.renderSlot(o.$slots,"content")])],2)]))}}),Sd=c.defineComponent({__name:"ScrollToTop",setup(t){const e=c.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return c.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,s)=>(c.openBlock(),c.createElementBlock("button",{id:n,class:c.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),_d=c.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new at("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new at("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new at("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new at("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(s,l)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(n()),style:c.normalizeStyle(e.style)},[c.createElementVNode("div",{class:c.normalizeClass(o())},[c.renderSlot(s.$slots,"header")],2),c.createElementVNode("div",{class:c.normalizeClass(r())},[c.renderSlot(s.$slots,"default"),c.createVNode(Sd)],2),c.createElementVNode("div",{class:c.normalizeClass(i())},[c.renderSlot(s.$slots,"footer")],2)],6))}}),kd={class:"sf-tab-navigation"},Cd=c.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"},[c.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),Ed=[Cd],Ad=["data-active"],Td=["href","onClick"],xd=c.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"},[c.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1),Pd=[xd],Id=c.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=c.ref(null),r=new ResizeObserver(a=>{l()}),o=c.ref(!1),i=c.ref(!1);function s(a=!1){const u=n.value.clientWidth;n.value.scrollLeft+=a?-u:u}function l(){const a=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<a-10}return c.onMounted(()=>{n.value.addEventListener("scroll",l),r.observe(n.value)}),c.onBeforeUnmount(()=>{var a;try{(a=n.value)==null||a.removeEventListener("scroll",l),r.unobserve(n.value),r.disconnect()}catch{}}),(a,u)=>{const d=c.resolveComponent("RouterLink");return c.openBlock(),c.createElementBlock("div",kd,[c.createElementVNode("div",{class:c.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>s(!0))},Ed,2),c.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.tabs,m=>(c.openBlock(),c.createBlock(d,{to:m.route,custom:!0},{default:c.withCtx(({navigate:g,isActive:_})=>[c.createElementVNode("li",{"data-active":_},[c.renderSlot(a.$slots,"item",{item:m,navigate:g,isActive:_},()=>[c.createElementVNode("a",{href:m.route,class:c.normalizeClass({active:_}),onClick:g},c.toDisplayString(m.text),11,Td)])],8,Ad)]),_:2},1032,["to"]))),256))],512),c.createElementVNode("div",{class:c.normalizeClass(["right-arrow",{active:i.value}]),onClick:u[1]||(u[1]=m=>s())},Pd,2)])}}}),Od=["data-icon"],Ld=c.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=c.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=c.computed(()=>new at("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(r.value),"data-icon":n.value},[c.renderSlot(o.$slots,"default")],10,Od))}});function Rd(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function $d(t,e){if(t&&e){const n=r=>{Rd(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function fr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Nd(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Kn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function $n(t,e={}){if(Kn(t)){const n=(r,o)=>{var i,s;const l=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,u)=>{if(u!=null){const d=typeof u;if(d==="string"||d==="number")a.push(u);else if(d==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([g,_])=>r==="style"&&(_||_===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?g:void 0);a=m.length?a.concat(m.filter(g=>!!g)):a}}return a},l)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"?$n(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function Bd(t,e={},...n){{const r=document.createElement(t);return $n(r,e),r.append(...n),r}}function Ke(t,e){return Kn(t)?t.matches(e)?t:t.querySelector(e):null}function Wt(t,e){t&&document.activeElement!==t&&t.focus(e)}function qt(t,e){if(Kn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Qo(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function Dd(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Fd(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Md(t,e){return t?t.offsetHeight:0}function Ud(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Dd(t))}function ei(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 Hd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function jd(t,e="",n){Kn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Es(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function gt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Ir(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,i,s;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!Ir(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var l=t instanceof Date,a=e instanceof Date;if(l!=a)return!1;if(l&&a)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var m=Object.keys(t);if(i=m.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=i;o--!==0;)if(s=m[o],!Ir(t[s],e[s]))return!1;return!0}return t!==t&&e!==e}function no(t){return!!(t&&t.constructor&&t.call&&t.apply)}function se(t){return!gt(t)}function At(t,e,n){return Ir(t,e)}function ti(t,e){let n;if(se(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ut(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ne(t,...e){return no(t)?t(...e):t}function Ie(t,e=!0){return typeof t=="string"&&(e||t!=="")}function We(t){return Ie(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function ro(t,e="",n={}){const r=We(e).split("."),o=r.shift();return o?ut(t)?ro(Ne(t[Object.keys(t).find(i=>We(i)===o)||""],n),r.join("."),n):void 0:Ne(t,n)}function oo(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function As(t){return se(t)&&!isNaN(t)}function Vd(t=""){return se(t)&&t.length===1&&!!t.match(/\S| /)}function rt(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Zt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function zd(t){return Ie(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Ts(t){return Ie(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function ni(t){return Ie(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Cn={};function Kd(t="pui_id_"){return Cn.hasOwnProperty(t)||(Cn[t]=0),Cn[t]++,`${t}${Cn[t]}`}function Nn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Kd(t)}var Wd=Object.defineProperty,qd=Object.defineProperties,Gd=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,xs=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable,ri=(t,e,n)=>e in t?Wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vt=(t,e)=>{for(var n in e||(e={}))xs.call(e,n)&&ri(t,n,e[n]);if(Bn)for(var n of Bn(e))Ps.call(e,n)&&ri(t,n,e[n]);return t},mr=(t,e)=>qd(t,Gd(e)),zt=(t,e)=>{var n={};for(var r in t)xs.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Bn)for(var r of Bn(t))e.indexOf(r)<0&&Ps.call(t,r)&&(n[r]=t[r]);return n},Jd=Es(),nt=Jd;function oi(t,e){oo(t)?t.push(...e||[]):ut(t)&&Object.assign(t,e)}function Yd(t){return ut(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function ii(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(i=>As(i)?`${i}px`:i).join(" ")}function Xd(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Or(t="",e=""){return Xd(`${Ie(t,!1)&&Ie(e,!1)?`${t}-`:t}${e}`)}function Is(t="",e=""){return`--${Or(t,e)}`}function Os(t,e="",n="",r=[],o){if(Ie(t)){const i=/{([^}]*)}/g,s=t.trim();if(rt(s,i)){const l=s.replaceAll(i,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(w=>rt(_,w)));return`var(${Is(n,Ts(g.join("-")))}${se(o)?`, ${o}`:""})`}),a=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return rt(l.replace(u,"0"),a)?`calc(${l})`:l}return ii(s,e)}else if(As(t))return ii(t,e)}function Zd(t,e,n){Ie(e,!1)&&t.push(`${e}:${n};`)}function Gt(t,e){return t?`${t}{${e}}`:""}var pr=(...t)=>Qd(ue.getTheme(),...t),Qd=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=ue.defaults||{},{prefix:s,transform:l}=(t==null?void 0:t.options)||i||{},u=rt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||l==="strict"?ue.getTokenValue(e):Os(u,void 0,s,[o.excludedKeyRegex],n)}return""};function ef(t,e={}){const n=ue.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=(u,d="")=>Object.entries(u).reduce((m,[g,_])=>{const w=rt(g,i)?Or(d):Or(d,Ts(g)),B=Yd(_);if(ut(B)){const{variables:S,tokens:j}=s(B,w);oi(m.tokens,j),oi(m.variables,S)}else m.tokens.push((r?w.replace(`${r}-`,""):w).replaceAll("-",".")),Zd(m.variables,Is(w),Os(B,w,r,[i]));return m},{variables:[],tokens:[]}),{variables:l,tokens:a}=s(t,r);return{value:l,tokens:a,declarations:l.join(""),css:Gt(o,l.join(""))}}var Ve={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return ef(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,l,a;const{preset:u,options:d}=e;let m,g,_,w;if(se(u)){const{primitive:B,semantic:S}=u,j=S||{},{colorScheme:A}=j,E=zt(j,["colorScheme"]),G=A||{},{dark:Q}=G,v=zt(G,["dark"]),T=se(B)?this._toVariables({primitive:B},d):{},M=se(E)?this._toVariables({semantic:E},d):{},I=se(v)?this._toVariables({light:v},d):{},O=se(Q)?this._toVariables({dark:Q},d):{},[L,K]=[(i=T.declarations)!=null?i:"",T.tokens],[x,q]=[(s=M.declarations)!=null?s:"",M.tokens||[]],[ie,de]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[ce,pe]=[(a=O.declarations)!=null?a:"",O.tokens||[]];m=this.transformCSS(t,L,"light","variable",d,r,o),g=K;const z=this.transformCSS(t,`${x}${ie}color-scheme:light`,"light","variable",d,r,o),fe=this.transformCSS(t,`${ce}color-scheme:dark`,"dark","variable",d,r,o);_=`${z}${fe}`,w=[...new Set([...q,...de,...pe])]}return{primitive:{css:m,tokens:g},semantic:{css:_,tokens:w}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var l,a,u;const d=t.replace("-directive",""),m=e,{colorScheme:g}=m,_=zt(m,["colorScheme"]),w=g||{},{dark:B}=w,S=zt(w,["dark"]),j=se(_)?this._toVariables({[d]:_},n):{},A=se(S)?this._toVariables({[d]:S},n):{},E=se(B)?this._toVariables({[d]:B},n):{},[G,Q]=[(l=j.declarations)!=null?l:"",j.tokens||[]],[v,T]=[(a=A.declarations)!=null?a:"",A.tokens||[]],[M,I]=[(u=E.declarations)!=null?u:"",E.tokens||[]],O=[...new Set([...Q,...T,...I])],L=this.transformCSS(d,`${G}${v}`,"light","variable",n,o,i,s),K=this.transformCSS(d,M,"dark","variable",n,o,i,s);return{css:`${L}${K}`,tokens:O}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:s,options:l}=e,a=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:a,options:l,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const s=t.replace("-directive",""),{preset:l,options:a}=e,u=(i=l==null?void 0:l.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:u,options:a,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ne(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),l=Object.entries(r).reduce((a,[u,d])=>a.push(`${u}="${d}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[u,d])=>{if(d!=null&&d.css){const m=Zt(d==null?void 0:d.css),g=`${u}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${g}" ${l}>${m}</style>`)}return a},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;const l={name:t,theme:e,params:n,set:o,defaults:i},a=(s=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:s.css,u=Object.entries(r).reduce((d,[m,g])=>d.push(`${m}="${g}"`)&&d,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Zt(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,s])=>{const l=rt(i,e.variable.excludedKeyRegex)?n:n?`${n}.${ni(i)}`:ni(i),a=r?`${r}.${i}`:i;ut(s)?this.createTokens(s,e,l,a,o):(o[l]||(o[l]={paths:[],computed(u,d={}){if(u){const m=this.paths.find(g=>g.scheme===u)||this.paths.find(g=>g.scheme==="none");return m==null?void 0:m.computed(u,d.binding)}return this.paths.map(m=>m.computed(m.scheme,d[m.scheme]))}}),o[l].paths.push({path:a,value:s,scheme:a.includes("colorScheme.light")?"light":a.includes("colorScheme.dark")?"dark":"none",computed(u,d={}){const m=/{([^}]*)}/g;let g=s;if(d.name=this.path,d.binding||(d.binding={}),rt(s,m)){const w=s.trim().replaceAll(m,j=>{var A,E;const G=j.replace(/{|}/g,"");return(E=(A=o[G])==null?void 0:A.computed(u,d))==null?void 0:E.value}),B=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,S=/var\([^)]+\)/g;g=rt(w.replace(S,"0"),B)?`calc(${w})`:w}return gt(d.binding)&&delete d.binding,{colorScheme:u,path:this.path,paths:d,value:g.includes("undefined")?void 0:g}}}))}),o},getTokenValue(t,e,n){var r;const i=(a=>a.split(".").filter(d=>!rt(d.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(a=>a);return l.length===1?l[0].value:l.reduce((a={},u)=>{const d=u,{colorScheme:m}=d,g=zt(d,["colorScheme"]);return a[m]=g,a},void 0)},transformCSS(t,e,n,r,o={},i,s,l){if(se(e)){const{cssLayer:a}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,s),d=l?Gt(l,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(se(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):Gt(g,d)),m),""):Gt(l??":root",e)}if(a){const u={name:"primeui",order:"primeui"};ut(a)&&(u.name=Ne(a.name,{name:t,type:r})),se(u.name)&&(e=Gt(`@layer ${u.name}`,e),i==null||i.layerNames(u.name))}return e}return""}},ue={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=mr(Vt({},e),{options:Vt(Vt({},this.defaults.options),e.options)}),this._tokens=Ve.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}),nt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=mr(Vt({},this.theme),{preset:t}),this._tokens=Ve.createTokens(t,this.defaults),this.clearLoadedStyleNames(),nt.emit("preset:change",t),nt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=mr(Vt({},this.theme),{options:t}),this.clearLoadedStyleNames(),nt.emit("options:change",t),nt.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 Ve.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Ve.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ve.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ve.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ve.getPreset(o)},getLayerOrderCSS(t=""){return Ve.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Ve.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Ve.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Ve.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),nt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&nt.emit("theme:load"))}},st={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function tn(t){"@babel/helpers - typeof";return tn=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},tn(t)}function si(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ai(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?si(Object(n),!0).forEach(function(r){tf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tf(t,e,n){return(e=nf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nf(t){var e=rf(t,"string");return tn(e)=="symbol"?e:e+""}function rf(t,e){if(tn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(tn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function of(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;c.getCurrentInstance()?c.onMounted(t):e?t():c.nextTick(t)}var sf=0;function af(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.ref(!1),r=c.ref(t),o=c.ref(null),i=Hd()?window.document:void 0,s=e.document,l=s===void 0?i:s,a=e.immediate,u=a===void 0?!0:a,d=e.manual,m=d===void 0?!1:d,g=e.name,_=g===void 0?"style_".concat(++sf):g,w=e.id,B=w===void 0?void 0:w,S=e.media,j=S===void 0?void 0:S,A=e.nonce,E=A===void 0?void 0:A,G=e.first,Q=G===void 0?!1:G,v=e.onMounted,T=v===void 0?void 0:v,M=e.onUpdated,I=M===void 0?void 0:M,O=e.onLoad,L=O===void 0?void 0:O,K=e.props,x=K===void 0?{}:K,q=function(){},ie=function(pe){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var fe=ai(ai({},x),z),f=fe.name||_,h=fe.id||B,k=fe.nonce||E;o.value=l.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||l.getElementById(h)||l.createElement("style"),o.value.isConnected||(r.value=pe||t,$n(o.value,{type:"text/css",id:h,media:j,nonce:k}),Q?l.head.prepend(o.value):l.head.appendChild(o.value),jd(o.value,"data-primevue-style-id",f),$n(o.value,fe),o.value.onload=function(P){return L==null?void 0:L(P,{name:f})},T==null||T(f)),!n.value&&(q=c.watch(r,function(P){o.value.textContent=P,I==null||I(f)},{immediate:!0}),n.value=!0)}},de=function(){!l||!n.value||(q(),Ud(o.value)&&l.head.removeChild(o.value),n.value=!1)};return u&&!m&&of(ie),{id:B,name:_,el:o,css:r,unload:de,load:ie,isLoaded:c.readonly(n)}}function nn(t){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(t)}function li(t,e){return df(t)||uf(t,e)||cf(t,e)||lf()}function lf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cf(t,e){if(t){if(typeof t=="string")return ci(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)?ci(t,e):void 0}}function ci(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function uf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],a=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function df(t){if(Array.isArray(t))return t}function ui(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function hr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ui(Object(n),!0).forEach(function(r){ff(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ff(t,e,n){return(e=mf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mf(t){var e=pf(t,"string");return nn(e)=="symbol"?e:e+""}function pf(t,e){if(nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hf=function(e){var n=e.dt;return`
67
+ * {
68
+ box-sizing: border-box;
69
+ }
70
+
71
+ /* Non vue overlay animations */
72
+ .p-connected-overlay {
73
+ opacity: 0;
74
+ transform: scaleY(0.8);
75
+ transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
76
+ opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
77
+ }
78
+
79
+ .p-connected-overlay-visible {
80
+ opacity: 1;
81
+ transform: scaleY(1);
82
+ }
83
+
84
+ .p-connected-overlay-hidden {
85
+ opacity: 0;
86
+ transform: scaleY(1);
87
+ transition: opacity 0.1s linear;
88
+ }
89
+
90
+ /* Vue based overlay animations */
91
+ .p-connected-overlay-enter-from {
92
+ opacity: 0;
93
+ transform: scaleY(0.8);
94
+ }
95
+
96
+ .p-connected-overlay-leave-to {
97
+ opacity: 0;
98
+ }
99
+
100
+ .p-connected-overlay-enter-active {
101
+ transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
102
+ opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
103
+ }
104
+
105
+ .p-connected-overlay-leave-active {
106
+ transition: opacity 0.1s linear;
107
+ }
108
+
109
+ /* Toggleable Content */
110
+ .p-toggleable-content-enter-from,
111
+ .p-toggleable-content-leave-to {
112
+ max-height: 0;
113
+ }
114
+
115
+ .p-toggleable-content-enter-to,
116
+ .p-toggleable-content-leave-from {
117
+ max-height: 1000px;
118
+ }
119
+
120
+ .p-toggleable-content-leave-active {
121
+ overflow: hidden;
122
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
123
+ }
124
+
125
+ .p-toggleable-content-enter-active {
126
+ overflow: hidden;
127
+ transition: max-height 1s ease-in-out;
128
+ }
129
+
130
+ .p-disabled,
131
+ .p-disabled * {
132
+ cursor: default;
133
+ pointer-events: none;
134
+ user-select: none;
135
+ }
136
+
137
+ .p-disabled,
138
+ .p-component:disabled {
139
+ opacity: `.concat(n("disabled.opacity"),`;
140
+ }
141
+
142
+ .pi {
143
+ font-size: `).concat(n("icon.size"),`;
144
+ }
145
+
146
+ .p-icon {
147
+ width: `).concat(n("icon.size"),`;
148
+ height: `).concat(n("icon.size"),`;
149
+ }
150
+
151
+ .p-overlay-mask {
152
+ background: `).concat(n("mask.background"),`;
153
+ color: `).concat(n("mask.color"),`;
154
+ position: fixed;
155
+ top: 0;
156
+ left: 0;
157
+ width: 100%;
158
+ height: 100%;
159
+ }
160
+
161
+ .p-overlay-mask-enter {
162
+ animation: p-overlay-mask-enter-animation `).concat(n("mask.transition.duration"),` forwards;
163
+ }
164
+
165
+ .p-overlay-mask-leave {
166
+ animation: p-overlay-mask-leave-animation `).concat(n("mask.transition.duration"),` forwards;
167
+ }
168
+
169
+ @keyframes p-overlay-mask-enter-animation {
170
+ from {
171
+ background: transparent;
172
+ }
173
+ to {
174
+ background: `).concat(n("mask.background"),`;
175
+ }
176
+ }
177
+ @keyframes p-overlay-mask-leave-animation {
178
+ from {
179
+ background: `).concat(n("mask.background"),`;
180
+ }
181
+ to {
182
+ background: transparent;
183
+ }
184
+ }
185
+ `)},gf=function(e){var n=e.dt;return`
186
+ .p-hidden-accessible {
187
+ border: 0;
188
+ clip: rect(0 0 0 0);
189
+ height: 1px;
190
+ margin: -1px;
191
+ overflow: hidden;
192
+ padding: 0;
193
+ position: absolute;
194
+ width: 1px;
195
+ }
196
+
197
+ .p-hidden-accessible input,
198
+ .p-hidden-accessible select {
199
+ transform: scale(0);
200
+ }
201
+
202
+ .p-overflow-hidden {
203
+ overflow: hidden;
204
+ padding-right: `.concat(n("scrollbar.width"),`;
205
+ }
206
+ `)},yf={},vf={},Ce={name:"base",css:gf,theme:hf,classes:yf,inlineStyles:vf,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},o=r(Ne(e,{dt:pr}));return o?af(Zt(o),hr({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.theme,n,function(r){return ue.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return ue.getCommon(this.name,e)},getComponentTheme:function(e){return ue.getComponent(this.name,e)},getDirectiveTheme:function(e){return ue.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return ue.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return ue.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=Ne(this.css,{dt:pr}),o=Zt("".concat(r).concat(e)),i=Object.entries(n).reduce(function(s,l){var a=li(l,2),u=a[0],d=a[1];return s.push("".concat(u,'="').concat(d,'"'))&&s},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ue.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[ue.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Ne(this.theme,{dt:pr}),s=Zt(ue.transformCSS(o,i)),l=Object.entries(n).reduce(function(a,u){var d=li(u,2),m=d[0],g=d[1];return a.push("".concat(m,'="').concat(g,'"'))&&a},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(l,">").concat(s,"</style>"))}return r.join("")},extend:function(e){return hr(hr({},this),{},{css:void 0,theme:void 0},e)}},di=Ce.extend({name:"common"});function rn(t){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function bf(t){return $s(t)||wf(t)||Rs(t)||Ls()}function wf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function En(t,e){return $s(t)||Sf(t,e)||Rs(t,e)||Ls()}function Ls(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
207
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rs(t,e){if(t){if(typeof t=="string")return fi(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)?fi(t,e):void 0}}function fi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Sf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],a=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function $s(t){if(Array.isArray(t))return t}function mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mi(Object(n),!0).forEach(function(r){Tn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tn(t,e,n){return(e=_f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _f(t){var e=kf(t,"string");return rn(e)=="symbol"?e:e+""}function kf(t,e){if(rn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(rn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,i,s,l,a,u,d,m,g=(e=this.pt)===null||e===void 0?void 0:e._usept,_=g?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,w=g?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=w||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var B=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,S=B?(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,j=B?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=j||S)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(m=d.onBeforeCreate)===null||m===void 0||m.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Ke(this.$el,'[data-pc-name="'.concat(We(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=ne({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return no(e)?e.apply(void 0,r):c.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){st.isStyleNameLoaded("base")||(Ce.loadCSS(e.$styleOptions),e._loadGlobalStyles(),st.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!st.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(di.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),st.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);se(e)&&Ce.load(e,ne({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!ue.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,l=i.semantic;Ce.load(s==null?void 0:s.css,ne({name:"primitive-variables"},this.$styleOptions)),Ce.load(l==null?void 0:l.css,ne({name:"semantic-variables"},this.$styleOptions)),Ce.loadTheme(ne({name:"global-style"},this.$styleOptions)),ue.setLoadedStyleName("common")}if(!ue.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var a,u,d,m,g=((a=this.$style)===null||a===void 0||(u=a.getComponentTheme)===null||u===void 0?void 0:u.call(a))||{},_=g.css;(d=this.$style)===null||d===void 0||d.load(_,ne({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(ne({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ue.setLoadedStyleName(this.$style.name)}if(!ue.isStyleNameLoaded("layer-order")){var w,B,S=(w=this.$style)===null||w===void 0||(B=w.getLayerOrderThemeCSS)===null||B===void 0?void 0:B.call(w);Ce.load(S,ne({name:"layer-order",first:!0},this.$styleOptions)),ue.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,l=(o=this.$style)===null||o===void 0?void 0:o.load(s,ne({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(){};st.clearLoadedStyleNames(),nt.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ro(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},a=l.mergeSections,u=a===void 0?!0:a,d=l.mergeProps,m=d===void 0?!1:d,g=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,ne(ne({},o),{},{global:g||{}})),w=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,w):ne(ne(ne({},g),_),w):ne(ne({},_),w)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return c.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&se((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&ne(ne({},r==="root"&&ne(Tn({},"".concat(o,"name"),We(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Tn({},"".concat(o,"extend"),We(this.$.type.name)))),{},Tn({},"".concat(o,"section"),We(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Ie(e)||oo(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(l){var a,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(l):l,m=We(r),g=We(n.$name);return(a=u?m!==g?d==null?void 0:d[m]:void 0:d==null?void 0:d[m])!==null&&a!==void 0?a:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(B){return n(B,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,l=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},a=l.mergeSections,u=a===void 0?!0:a,d=l.mergeProps,m=d===void 0?!1:d,g=i(e.originalValue),_=i(e.value);return g===void 0&&_===void 0?void 0:Ie(_)?_:Ie(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):ne(ne({},g),_):_}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,ne(ne({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return c.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,ne({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,ne(ne({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,ne(ne({},this.$params),r)),i=this._getOptionValue(di.inlineStyles,e,ne(ne({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return Ne(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,ne({},n.$params))||Ne(r,ne({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return ne(ne({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=En(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=En(n,2),o=r[0],i=r[1],s=o.split(":"),l=bf(s),a=l.slice(1);return a==null||a.reduce(function(u,d,m,g){return!u[d]&&(u[d]=m===g.length-1?i:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=En(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=En(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return Nn("pc")}}},Cf=`
208
+ .p-icon {
209
+ display: inline-block;
210
+ vertical-align: baseline;
211
+ }
212
+
213
+ .p-icon-spin {
214
+ -webkit-animation: p-icon-spin 2s infinite linear;
215
+ animation: p-icon-spin 2s infinite linear;
216
+ }
217
+
218
+ @-webkit-keyframes p-icon-spin {
219
+ 0% {
220
+ -webkit-transform: rotate(0deg);
221
+ transform: rotate(0deg);
222
+ }
223
+ 100% {
224
+ -webkit-transform: rotate(359deg);
225
+ transform: rotate(359deg);
226
+ }
227
+ }
228
+
229
+ @keyframes p-icon-spin {
230
+ 0% {
231
+ -webkit-transform: rotate(0deg);
232
+ transform: rotate(0deg);
233
+ }
234
+ 100% {
235
+ -webkit-transform: rotate(359deg);
236
+ transform: rotate(359deg);
237
+ }
238
+ }
239
+ `,Ef=Ce.extend({name:"baseicon",css:Cf});function on(t){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function pi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function hi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pi(Object(n),!0).forEach(function(r){Af(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Af(t,e,n){return(e=Tf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tf(t){var e=xf(t,"string");return on(e)=="symbol"?e:e+""}function xf(t,e){if(on(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ns={name:"BaseIcon",extends:Wn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Ef,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=gt(this.label);return hi(hi({},!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})}}},io={name:"ChevronDownIcon",extends:Ns},Pf=c.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),If=[Pf];function Of(t,e,n,r,o,i){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),If,16)}io.render=Of;var so={name:"ChevronRightIcon",extends:Ns},Lf=c.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),Rf=[Lf];function $f(t,e,n,r,o,i){return c.openBlock(),c.createElementBlock("svg",c.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Rf,16)}so.render=$f;var Nf=function(e){var n=e.dt;return`
240
+ .p-panelmenu {
241
+ display: flex;
242
+ flex-direction: column;
243
+ gap: `.concat(n("panelmenu.gap"),`;
244
+ }
245
+
246
+ .p-panelmenu-panel {
247
+ background: `).concat(n("panelmenu.panel.background"),`;
248
+ border-width: `).concat(n("panelmenu.panel.border.width"),`;
249
+ border-style: solid;
250
+ border-color: `).concat(n("panelmenu.panel.border.color"),`;
251
+ color: `).concat(n("panelmenu.panel.color"),`;
252
+ border-radius: `).concat(n("panelmenu.panel.border.radius"),`;
253
+ padding: `).concat(n("panelmenu.panel.padding"),`;
254
+ }
255
+
256
+ .p-panelmenu-panel:first-child {
257
+ border-width: `).concat(n("panelmenu.panel.first.border.width"),`;
258
+ border-top-left-radius: `).concat(n("panelmenu.panel.first.top.border.radius"),`;
259
+ border-top-right-radius: `).concat(n("panelmenu.panel.first.top.border.radius"),`;
260
+ }
261
+
262
+ .p-panelmenu-panel:last-child {
263
+ border-width: `).concat(n("panelmenu.panel.last.border.width"),`;
264
+ border-bottom-left-radius: `).concat(n("panelmenu.panel.last.bottom.border.radius"),`;
265
+ border-bottom-right-radius: `).concat(n("panelmenu.panel.last.bottom.border.radius"),`;
266
+ }
267
+
268
+ .p-panelmenu-header {
269
+ outline: 0 none;
270
+ }
271
+
272
+ .p-panelmenu-header-content {
273
+ border-radius: `).concat(n("panelmenu.item.border.radius"),`;
274
+ transition: background `).concat(n("panelmenu.transition.duration"),", color ").concat(n("panelmenu.transition.duration"),", outline-color ").concat(n("panelmenu.transition.duration"),", box-shadow ").concat(n("panelmenu.transition.duration"),`;
275
+ outline-color: transparent;
276
+ color: `).concat(n("panelmenu.item.color"),`;
277
+ }
278
+
279
+ .p-panelmenu-header-link {
280
+ display: flex;
281
+ gap: `).concat(n("panelmenu.item.gap"),`;
282
+ padding: `).concat(n("panelmenu.item.padding"),`;
283
+ align-items: center;
284
+ user-select: none;
285
+ cursor: pointer;
286
+ position: relative;
287
+ text-decoration: none;
288
+ color: inherit;
289
+ }
290
+
291
+ .p-panelmenu-header-icon,
292
+ .p-panelmenu-item-icon {
293
+ color: `).concat(n("panelmenu.item.icon.color"),`;
294
+ }
295
+
296
+ .p-panelmenu-submenu-icon {
297
+ color: `).concat(n("panelmenu.submenu.icon.color"),`;
298
+ }
299
+
300
+ .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
301
+ background: `).concat(n("panelmenu.item.focus.background"),`;
302
+ color: `).concat(n("panelmenu.item.focus.color"),`;
303
+ }
304
+
305
+ .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon {
306
+ color: `).concat(n("panelmenu.item.icon.focus.color"),`;
307
+ }
308
+
309
+ .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon {
310
+ color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
311
+ }
312
+
313
+ .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
314
+ background: `).concat(n("panelmenu.item.focus.background"),`;
315
+ color: `).concat(n("panelmenu.item.focus.color"),`;
316
+ }
317
+
318
+ .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon {
319
+ color: `).concat(n("panelmenu.item.icon.focus.color"),`;
320
+ }
321
+
322
+ .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon {
323
+ color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
324
+ }
325
+
326
+ .p-panelmenu-submenu {
327
+ margin: 0;
328
+ padding: 0 0 0 `).concat(n("panelmenu.submenu.indent"),`;
329
+ outline: 0;
330
+ list-style: none;
331
+ }
332
+
333
+ .p-panelmenu-item-link {
334
+ display: flex;
335
+ gap: `).concat(n("panelmenu.item.gap"),`;
336
+ padding: `).concat(n("panelmenu.item.padding"),`;
337
+ align-items: center;
338
+ user-select: none;
339
+ cursor: pointer;
340
+ text-decoration: none;
341
+ color: inherit;
342
+ position: relative;
343
+ overflow: hidden;
344
+ }
345
+
346
+ .p-panelmenu-item-label {
347
+ line-height: 1;
348
+ }
349
+
350
+ .p-panelmenu-item-content {
351
+ border-radius: `).concat(n("panelmenu.item.border.radius"),`;
352
+ transition: background `).concat(n("panelmenu.transition.duration"),", color ").concat(n("panelmenu.transition.duration"),", outline-color ").concat(n("panelmenu.transition.duration"),", box-shadow ").concat(n("panelmenu.transition.duration"),`;
353
+ color: `).concat(n("panelmenu.item.color"),`;
354
+ outline-color: transparent;
355
+ }
356
+
357
+ .p-panelmenu-item.p-focus > .p-panelmenu-item-content {
358
+ background: `).concat(n("panelmenu.item.focus.background"),`;
359
+ color: `).concat(n("panelmenu.item.focus.color"),`;
360
+ }
361
+
362
+ .p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-item-icon {
363
+ color: `).concat(n("panelmenu.item.focus.color"),`;
364
+ }
365
+
366
+ .p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-submenu-icon {
367
+ color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
368
+ }
369
+
370
+ .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover {
371
+ background: `).concat(n("panelmenu.item.focus.background"),`;
372
+ color: `).concat(n("panelmenu.item.focus.color"),`;
373
+ }
374
+
375
+ .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon {
376
+ color: `).concat(n("panelmenu.item.icon.focus.color"),`;
377
+ }
378
+
379
+ .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
380
+ color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
381
+ }
382
+ `)},Bf={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,r=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},Df=Ce.extend({name:"panelmenu",theme:Nf,classes:Bf}),gi=Es();function sn(t){"@babel/helpers - typeof";return sn=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},sn(t)}function yi(t,e){return Hf(t)||Uf(t,e)||Mf(t,e)||Ff()}function Ff(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
383
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mf(t,e){if(t){if(typeof t=="string")return vi(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)?vi(t,e):void 0}}function vi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Uf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],a=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function Hf(t){if(Array.isArray(t))return t}function bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bi(Object(n),!0).forEach(function(r){Lr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lr(t,e,n){return(e=jf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jf(t){var e=Vf(t,"string");return sn(e)=="symbol"?e:e+""}function Vf(t,e){if(sn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(sn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Z={_getMeta:function(){return[ut(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ne(ut(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:ro,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=function(){var A=Z._getOptionValue.apply(Z,arguments);return Ie(A)||oo(A)?{class:A}:A},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,m=d===void 0?!0:d,g=u.mergeProps,_=g===void 0?!1:g,w=l?Z._useDefaultPT(r,r.defaultPT(),a,i,s):void 0,B=Z._usePT(r,Z._getPT(o,r.$name),a,i,oe(oe({},s),{},{global:w||{}})),S=Z._getPTDatasets(r,i);return m||!m&&B?_?Z._mergeProps(r,_,w,B,S):oe(oe(oe({},w),B),S):oe(oe({},B),S)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return oe(oe({},n==="root"&&Lr({},"".concat(r,"name"),We(e.$name))),{},Lr({},"".concat(r,"section"),We(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var l,a=r?r(s):s,u=We(n);return(l=a==null?void 0:a[u])!==null&&l!==void 0?l:a};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(S){return r(S,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var l,a=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=a.mergeSections,d=u===void 0?!0:u,m=a.mergeProps,g=m===void 0?!1:m,_=s(n.originalValue),w=s(n.value);return _===void 0&&w===void 0?void 0:Ie(w)?w:Ie(_)?_:d||!d&&w?g?Z._mergeProps(e,g,_,w):oe(oe({},_),w):w}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Z._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=Z._getConfig(n,r),s={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};Z._loadCoreStyles(e.$instance,s),Z._loadThemeStyles(e.$instance,s),Z._loadScopedThemeStyles(e.$instance,s),Z._themeChangeListener(function(){return Z._loadThemeStyles(e.$instance,s)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!st.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;Ce.loadCSS(o),r.isUnstyled()&&((i=r.$style)===null||i===void 0||i.loadCSS(o)),st.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ue.isStyleNameLoaded("common")){var i,s,l=((i=r.$style)===null||i===void 0||(s=i.getCommonTheme)===null||s===void 0?void 0:s.call(i))||{},a=l.primitive,u=l.semantic;Ce.load(a==null?void 0:a.css,oe({name:"primitive-variables"},o)),Ce.load(u==null?void 0:u.css,oe({name:"semantic-variables"},o)),Ce.loadTheme(oe({name:"global-style"},o)),ue.setLoadedStyleName("common")}if(!ue.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var d,m,g,_,w=((d=r.$style)===null||d===void 0||(m=d.getDirectiveTheme)===null||m===void 0?void 0:m.call(d))||{},B=w.css;(g=r.$style)===null||g===void 0||g.load(B,oe({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(oe({name:"".concat(r.$style.name,"-style")},o)),ue.setLoadedStyleName(r.$style.name)}if(!ue.isStyleNameLoaded("layer-order")){var S,j,A=(S=r.$style)===null||S===void 0||(j=S.getLayerOrderThemeCSS)===null||j===void 0?void 0:j.call(S);Ce.load(A,oe({name:"layer-order",first:!0},o)),ue.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,l=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},a=l.css,u=(s=e.$style)===null||s===void 0?void 0:s.load(a,oe({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};st.clearLoadedStyleNames(),nt.on("theme:change",e)},_hook:function(e,n,r,o,i,s){var l,a,u="on".concat(zd(n)),d=Z._getConfig(o,i),m=r==null?void 0:r.$instance,g=Z._usePT(m,Z._getPT(o==null||(l=o.value)===null||l===void 0?void 0:l.pt,e),Z._getOptionValue,"hooks.".concat(u)),_=Z._useDefaultPT(m,d==null||(a=d.pt)===null||a===void 0||(a=a.directives)===null||a===void 0?void 0:a[e],Z._getOptionValue,"hooks.".concat(u)),w={el:r,binding:o,vnode:i,prevVnode:s};g==null||g(m,w),_==null||_(m,w)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return no(e)?e.apply(void 0,r):c.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(s,l,a,u,d){var m,g,_;l._$instances=l._$instances||{};var w=Z._getConfig(a,u),B=l._$instances[e]||{},S=gt(B)?oe(oe({},n),n==null?void 0:n.methods):{};l._$instances[e]=oe(oe({},B),{},{$name:e,$host:l,$binding:a,$modifiers:a==null?void 0:a.modifiers,$value:a==null?void 0:a.value,$el:B.$el||l||void 0,$style:oe({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:w,$attrSelector:l.$attrSelector,defaultPT:function(){return Z._getPT(w==null?void 0:w.pt,void 0,function(A){var E;return A==null||(E=A.directives)===null||E===void 0?void 0:E[e]})},isUnstyled:function(){var A,E;return((A=l.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.unstyled)!==void 0?(E=l.$instance)===null||E===void 0||(E=E.$binding)===null||E===void 0||(E=E.value)===null||E===void 0?void 0:E.unstyled:w==null?void 0:w.unstyled},theme:function(){var A;return(A=l.$instance)===null||A===void 0||(A=A.$primevueConfig)===null||A===void 0?void 0:A.theme},preset:function(){var A;return(A=l.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.dt},ptm:function(){var A,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Z._getPTValue(l.$instance,(A=l.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.pt,E,oe({},G))},ptmo:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Z._getPTValue(l.$instance,A,E,G,!1)},cx:function(){var A,E,G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(A=l.$instance)!==null&&A!==void 0&&A.isUnstyled()?void 0:Z._getOptionValue((E=l.$instance)===null||E===void 0||(E=E.$style)===null||E===void 0?void 0:E.classes,G,oe({},Q))},sx:function(){var A,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return G?Z._getOptionValue((A=l.$instance)===null||A===void 0||(A=A.$style)===null||A===void 0?void 0:A.inlineStyles,E,oe({},Q)):void 0}},S),l.$instance=l._$instances[e],(m=(g=l.$instance)[s])===null||m===void 0||m.call(g,l,a,u,d),l["$".concat(e)]=l.$instance,Z._hook(e,s,l,a,u,d),l.$pd||(l.$pd={}),l.$pd[e]=oe(oe({},(_=l.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:l.$instance})},o=function(s){var l,a,u,d,m,g=(l=s.$instance)===null||l===void 0?void 0:l.watch;g==null||(a=g.config)===null||a===void 0||a.call(s.$instance,(u=s.$instance)===null||u===void 0?void 0:u.$primevueConfig),gi.on("config:change",function(_){var w,B=_.newValue,S=_.oldValue;return g==null||(w=g.config)===null||w===void 0?void 0:w.call(s.$instance,B,S)}),g==null||(d=g["config.ripple"])===null||d===void 0||d.call(s.$instance,(m=s.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),gi.on("config:ripple:change",function(_){var w,B=_.newValue,S=_.oldValue;return g==null||(w=g["config.ripple"])===null||w===void 0?void 0:w.call(s.$instance,B,S)})};return{created:function(s,l,a,u){r("created",s,l,a,u)},beforeMount:function(s,l,a,u){s.$attrSelector=Nn("pd"),Z._loadStyles(s,l,a),r("beforeMount",s,l,a,u),o(s)},mounted:function(s,l,a,u){Z._loadStyles(s,l,a),r("mounted",s,l,a,u)},beforeUpdate:function(s,l,a,u){r("beforeUpdate",s,l,a,u)},updated:function(s,l,a,u){Z._loadStyles(s,l,a),r("updated",s,l,a,u)},beforeUnmount:function(s,l,a,u){r("beforeUnmount",s,l,a,u)},unmounted:function(s,l,a,u){var d;(d=s.$instance)===null||d===void 0||(d=d.scopedStyleEl)===null||d===void 0||(d=d.value)===null||d===void 0||d.remove(),r("unmounted",s,l,a,u)}}},extend:function(){var e=Z._getMeta.apply(Z,arguments),n=yi(e,2),r=n[0],o=n[1];return oe({extend:function(){var s=Z._getMeta.apply(Z,arguments),l=yi(s,2),a=l[0],u=l[1];return Z.extend(a,oe(oe(oe({},o),o==null?void 0:o.methods),u))}},Z._extend(r,o))}},zf=function(e){var n=e.dt;return`
384
+ .p-ink {
385
+ display: block;
386
+ position: absolute;
387
+ background: `.concat(n("ripple.background"),`;
388
+ border-radius: 100%;
389
+ transform: scale(0);
390
+ pointer-events: none;
391
+ }
392
+
393
+ .p-ink-active {
394
+ animation: ripple 0.4s linear;
395
+ }
396
+
397
+ @keyframes ripple {
398
+ 100% {
399
+ opacity: 0;
400
+ transform: scale(2.5);
401
+ }
402
+ }
403
+ `)},Kf={root:"p-ink"},Wf=Ce.extend({name:"ripple-directive",theme:zf,classes:Kf}),qf=Z.extend({style:Wf});function an(t){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(t)}function Gf(t){return Zf(t)||Xf(t)||Yf(t)||Jf()}function Jf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
404
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yf(t,e){if(t){if(typeof t=="string")return Rr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(t,e):void 0}}function Xf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Zf(t){if(Array.isArray(t))return Rr(t)}function Rr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function wi(t,e,n){return(e=Qf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qf(t){var e=em(t,"string");return an(e)=="symbol"?e:e+""}function em(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var tm=qf.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=Bd("span",wi(wi({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&fr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!Qo(o)&&!ei(o)){var i=Math.max(Nd(r),Md(r));o.style.height=i+"px",o.style.width=i+"px"}var s=Fd(r),l=e.pageX-s.left+document.body.scrollTop-ei(o)/2,a=e.pageY-s.top+document.body.scrollLeft-Qo(o)/2;o.style.top=a+"px",o.style.left=l+"px",!this.isUnstyled()&&$d(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&fr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&fr(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Gf(e.children).find(function(n){return qt(n,"data-pc-name")==="ripple"}):void 0}}}),nm={name:"BasePanelMenu",extends:Wn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Df,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Bs={name:"PanelMenuSub",hostName:"PanelMenu",extends:Wn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?Ne(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return se(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:c.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:c.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:c.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:c.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:so,ChevronDownIcon:io},directives:{ripple:tm}},rm=["tabindex"],om=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],im=["onClick","onMousemove"],sm=["href","target"];function am(t,e,n,r,o,i){var s=c.resolveComponent("PanelMenuSub",!0),l=c.resolveDirective("ripple");return c.openBlock(),c.createElementBlock("ul",{class:c.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,function(a,u){return c.openBlock(),c.createElementBlock(c.Fragment,{key:i.getItemKey(a)},[i.isItemVisible(a)&&!i.getItemProp(a,"separator")?(c.openBlock(),c.createElementBlock("li",c.mergeProps({key:0,id:i.getItemId(a),class:[t.cx("item",{processedItem:a}),i.getItemProp(a,"class")],style:i.getItemProp(a,"style"),role:"treeitem","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemGroup(a)?i.isItemActive(a):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(u),ref_for:!0},i.getPTOptions("item",a,u),{"data-p-focused":i.isItemFocused(a),"data-p-disabled":i.isItemDisabled(a)}),[c.createElementVNode("div",c.mergeProps({class:t.cx("itemContent"),onClick:function(m){return i.onItemClick(m,a)},onMousemove:function(m){return i.onItemMouseMove(m,a)},ref_for:!0},i.getPTOptions("itemContent",a,u)),[n.templates.item?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(n.templates.item),{key:1,item:a.item,root:!1,active:i.isItemActive(a),hasSubmenu:i.isItemGroup(a),label:i.getItemLabel(a),props:i.getMenuItemProps(a,u)},null,8,["item","active","hasSubmenu","label","props"])):c.withDirectives((c.openBlock(),c.createElementBlock("a",c.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("itemLink"),target:i.getItemProp(a,"target"),tabindex:"-1","aria-hidden":"true",ref_for:!0},i.getPTOptions("itemLink",a,u)),[i.isItemGroup(a)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[n.templates.submenuicon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(n.templates.submenuicon),c.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(a),ref_for:!0},i.getPTOptions("submenuIcon",a,u)),null,16,["class","active"])):(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),c.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,u)),null,16,["class"]))],64)):c.createCommentVNode("",!0),n.templates.itemicon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(n.templates.itemicon),{key:1,item:a.item,class:c.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(a,"icon")?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("itemIcon",a,u)),null,16)):c.createCommentVNode("",!0),c.createElementVNode("span",c.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",a,u)),c.toDisplayString(i.getItemLabel(a)),17)],16,sm)),[[l]])],16,im),c.createVNode(c.Transition,c.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:c.withCtx(function(){return[c.withDirectives(c.createElementVNode("div",c.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(a)&&i.isItemGroup(a)?(c.openBlock(),c.createBlock(s,c.mergeProps({key:0,id:i.getItemId(a)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:a.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(d){return t.$emit("item-mousemove",d)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):c.createCommentVNode("",!0)],16),[[c.vShow,i.isItemActive(a)]])]}),_:2},1040)],16,om)):c.createCommentVNode("",!0),i.isItemVisible(a)&&i.getItemProp(a,"separator")?(c.openBlock(),c.createElementBlock("li",c.mergeProps({key:1,style:i.getItemProp(a,"style"),class:[t.cx("separator"),i.getItemProp(a,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):c.createCommentVNode("",!0)],64)}),128))],10,rm)}Bs.render=am;function lm(t,e){return fm(t)||dm(t,e)||um(t,e)||cm()}function cm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
405
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function um(t,e){if(t){if(typeof t=="string")return Si(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)?Si(t,e):void 0}}function Si(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function dm(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],a=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function fm(t){if(Array.isArray(t))return t}var Ds={name:"PanelMenuList",hostName:"PanelMenu",extends:Wn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Ne(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 se(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&&Vd(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=se(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=se(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(se(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=se(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(se(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(se(this.focusedItem)){var n=Ke(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Ke(n,'[data-pc-section="itemlink"]')||Ke(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,Wt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return ti(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?ti(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(se(this.focusedItem)){var s=this.visibleItems.findIndex(function(l){return l.key===r.focusedItem.key});o=this.visibleItems.slice(s).find(function(l){return r.isItemMatched(l)}),o=gt(o)?this.visibleItems.slice(0,s).find(function(l){return r.isItemMatched(l)}):o}else o=this.visibleItems.find(function(l){return r.isItemMatched(l)});return se(o)&&(i=!0),gt(o)&&gt(this.focusedItem)&&(o=this.findFirstItem()),se(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,s=e.allowHeaderFocus,l=s===void 0?!0:s;se(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},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(r,o){var i=lm(o,2),s=i[0],l=i[1];if(l){var a=n.findProcessedItemByItemKey(s);a&&r.push(a)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var s=this.findProcessedItemByItemKey(e,i.items,r+1);if(s)return s}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(l,a){var u=(i!==""?i+"_":"")+a,d={item:l,index:a,level:r,key:u,parent:o,parentKey:i};d.items=n.createProcessedItems(l.items,r+1,d,u),s.push(d)}),s},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return se(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Bs}};function mm(t,e,n,r,o,i){var s=c.resolveComponent("PanelMenuSub");return c.openBlock(),c.createBlock(s,c.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Ds.render=mm;function ln(t){"@babel/helpers - typeof";return ln=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},ln(t)}function _i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_i(Object(n),!0).forEach(function(r){hm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hm(t,e,n){return(e=gm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gm(t){var e=ym(t,"string");return ln(e)=="symbol"?e:e+""}function ym(t,e){if(ln(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ln(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fs={name:"PanelMenu",extends:nm,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||Nn()}},mounted:function(){this.id=this.id||Nn()},methods:{getItemProp:function(e,n){return e?Ne(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return At(e,n)}):At(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return At(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Wt(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=qt(e.currentTarget,"data-p-active")===!0?Ke(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Wt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=qt(n,"data-p-active")===!0?Ke(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Wt(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=Ke(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=Ke(r,'[data-pc-section="header"]');return o?qt(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=Ke(r,'[data-pc-section="header"]');return o?qt(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),s=o?Ke(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);s?this.changeFocusedHeader(n,s):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&At(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(s){return At(n,s)})?this.activeItems=this.activeItems.filter(function(s){return!At(n,s)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=pm({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Wt(n)},getMenuItemProps:function(e,n){return{icon:c.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:c.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Ds,ChevronRightIcon:so,ChevronDownIcon:io}},vm=["id"],bm=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],wm=["href"],Sm=["id","aria-labelledby"];function _m(t,e,n,r,o,i){var s=c.resolveComponent("PanelMenuList");return c.openBlock(),c.createElementBlock("div",c.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.model,function(l,a){return c.openBlock(),c.createElementBlock(c.Fragment,{key:i.getPanelKey(a)},[i.isItemVisible(l)?(c.openBlock(),c.createElementBlock("div",c.mergeProps({key:0,style:i.getItemProp(l,"style"),class:[t.cx("panel"),i.getItemProp(l,"class")],ref_for:!0},t.ptm("panel")),[c.createElementVNode("div",c.mergeProps({id:i.getHeaderId(a),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(a),"aria-disabled":i.isItemDisabled(l),onClick:function(d){return i.onHeaderClick(d,l)},onKeydown:function(d){return i.onHeaderKeyDown(d,l)},ref_for:!0},i.getPTOptions("header",l,a),{"data-p-active":i.isItemActive(l),"data-p-disabled":i.isItemDisabled(l)}),[c.createElementVNode("div",c.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",l,a)),[t.$slots.item?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:i.isItemActive(l),hasSubmenu:i.getItemProp(l,"items"),label:i.getItemLabel(l),props:i.getMenuItemProps(l,a)},null,8,["item","active","hasSubmenu","label","props"])):(c.openBlock(),c.createElementBlock("a",c.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",l,a)),[i.getItemProp(l,"items")?c.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(l)},function(){return[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),c.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",l,a)),null,16,["class"]))]}):c.createCommentVNode("",!0),t.$slots.headericon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:c.normalizeClass([t.cx("headerIcon"),i.getItemProp(l,"icon")])},null,8,["item","class"])):i.getItemProp(l,"icon")?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(l,"icon")],ref_for:!0},i.getPTOptions("headerIcon",l,a)),null,16)):c.createCommentVNode("",!0),c.createElementVNode("span",c.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",l,a)),c.toDisplayString(i.getItemLabel(l)),17)],16,wm))],16)],16,bm),c.createVNode(c.Transition,c.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:c.withCtx(function(){return[c.withDirectives(c.createElementVNode("div",c.mergeProps({id:i.getContentId(a),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(a),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(l,"items")?(c.openBlock(),c.createElementBlock("div",c.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[c.createVNode(s,{panelId:i.getPanelId(a),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)):c.createCommentVNode("",!0)],16,Sm),[[c.vShow,i.isItemActive(l)]])]}),_:2},1040)],16)):c.createCommentVNode("",!0)],64)}),128))],16,vm)}Fs.render=_m;const km=t=>(c.pushScopeId("data-v-ba1ebc06"),t=t(),c.popScopeId(),t),Cm={class:"panel-menu-wrapper"},Em=["data-active","href","onClick"],Am={class:"material-symbols-outlined sf-mr-3"},Tm={key:1,class:"item-menu sf-ripple"},xm={key:0,class:"material-symbols-outlined sf-mr-3"},Pm=km(()=>c.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),Im=c.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=jr();function r(o,i){o.preventDefault();const l=o.target.closest(".panel-menu-wrapper");l&&l.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(o,i)=>{const s=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",Cm,[c.createVNode(c.unref(Fs),{model:e.items,unstyled:!0},{item:c.withCtx(({item:l,active:a})=>[l.href?(c.openBlock(),c.createBlock(s,{key:0,to:{path:l.href,params:l.params??{},query:l.query??{}},custom:""},{default:c.withCtx(({navigate:u,isActive:d})=>[c.createElementVNode("a",{class:"item-menu sf-ripple","data-active":d,href:l.href,onClick:m=>r(m,u)},[c.createElementVNode("span",Am,c.toDisplayString(l.icon??"chevron_right"),1),c.createElementVNode("span",null,c.toDisplayString(l.text),1)],8,Em)]),_:2},1032,["to"])):(c.openBlock(),c.createElementBlock("a",Tm,[l.icon?(c.openBlock(),c.createElementBlock("span",xm,c.toDisplayString(l.icon),1)):c.createCommentVNode("",!0),c.createElementVNode("span",null,c.toDisplayString(l.text),1),Pm,c.createElementVNode("span",{class:c.normalizeClass(["material-symbols-outlined arrow",{"--expand":a}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),Om=Mn(Im,[["__scopeId","data-v-ba1ebc06"]]);var Lm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $m(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var qn={};qn.byteLength=Dm;qn.toByteArray=Mm;qn.fromByteArray=jm;var Ze=[],Ue=[],Nm=typeof Uint8Array<"u"?Uint8Array:Array,gr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Tt=0,Bm=gr.length;Tt<Bm;++Tt)Ze[Tt]=gr[Tt],Ue[gr.charCodeAt(Tt)]=Tt;Ue[45]=62;Ue[95]=63;function Ms(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Dm(t){var e=Ms(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Fm(t,e,n){return(e+n)*3/4-n}function Mm(t){var e,n=Ms(t),r=n[0],o=n[1],i=new Nm(Fm(t,r,o)),s=0,l=o>0?r-4:r,a;for(a=0;a<l;a+=4)e=Ue[t.charCodeAt(a)]<<18|Ue[t.charCodeAt(a+1)]<<12|Ue[t.charCodeAt(a+2)]<<6|Ue[t.charCodeAt(a+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Ue[t.charCodeAt(a)]<<2|Ue[t.charCodeAt(a+1)]>>4,i[s++]=e&255),o===1&&(e=Ue[t.charCodeAt(a)]<<10|Ue[t.charCodeAt(a+1)]<<4|Ue[t.charCodeAt(a+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function Um(t){return Ze[t>>18&63]+Ze[t>>12&63]+Ze[t>>6&63]+Ze[t&63]}function Hm(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(Um(r));return o.join("")}function jm(t){for(var e,n=t.length,r=n%3,o=[],i=16383,s=0,l=n-r;s<l;s+=i)o.push(Hm(t,s,s+i>l?l:s+i));return r===1?(e=t[n-1],o.push(Ze[e>>2]+Ze[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],o.push(Ze[e>>10]+Ze[e>>4&63]+Ze[e<<2&63]+"=")),o.join("")}var Us={exports:{}};const Vm={},zm=Object.freeze(Object.defineProperty({__proto__:null,default:Vm},Symbol.toStringTag,{value:"Module"})),ki=$m(zm);/**
406
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
407
+ *
408
+ * @version 0.10.1
409
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
410
+ * @copyright Chen, Yi-Cyuan 2014-2023
411
+ * @license MIT
412
+ */(function(t){(function(){var e="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var o=!n&&typeof self=="object",i=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i?r=Lm:o&&(r=self);var s=!r.JS_SHA256_NO_COMMON_JS&&!0&&t.exports,l=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",a="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],d=[24,16,8,0],m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],g=["hex","array","digest","arrayBuffer"],_=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(v){return Object.prototype.toString.call(v)==="[object Array]"}),l&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(v){return typeof v=="object"&&v.buffer&&v.buffer.constructor===ArrayBuffer});var w=function(v,T){return function(M){return new E(T,!0).update(M)[v]()}},B=function(v){var T=w("hex",v);i&&(T=S(T,v)),T.create=function(){return new E(v)},T.update=function(O){return T.create().update(O)};for(var M=0;M<g.length;++M){var I=g[M];T[I]=w(I,v)}return T},S=function(v,T){var M=ki,I=ki.Buffer,O=T?"sha224":"sha256",L;I.from&&!r.JS_SHA256_NO_BUFFER_FROM?L=I.from:L=function(x){return new I(x)};var K=function(x){if(typeof x=="string")return M.createHash(O).update(x,"utf8").digest("hex");if(x==null)throw new Error(e);return x.constructor===ArrayBuffer&&(x=new Uint8Array(x)),Array.isArray(x)||ArrayBuffer.isView(x)||x.constructor===I?M.createHash(O).update(L(x)).digest("hex"):v(x)};return K},j=function(v,T){return function(M,I){return new G(M,T,!0).update(I)[v]()}},A=function(v){var T=j("hex",v);T.create=function(O){return new G(O,v)},T.update=function(O,L){return T.create(O).update(L)};for(var M=0;M<g.length;++M){var I=g[M];T[I]=j(I,v)}return T};function E(v,T){T?(_[0]=_[16]=_[1]=_[2]=_[3]=_[4]=_[5]=_[6]=_[7]=_[8]=_[9]=_[10]=_[11]=_[12]=_[13]=_[14]=_[15]=0,this.blocks=_):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=v}E.prototype.update=function(v){if(!this.finalized){var T,M=typeof v;if(M!=="string"){if(M==="object"){if(v===null)throw new Error(e);if(l&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!l||!ArrayBuffer.isView(v)))throw new Error(e)}else throw new Error(e);T=!0}for(var I,O=0,L,K=v.length,x=this.blocks;O<K;){if(this.hashed&&(this.hashed=!1,x[0]=this.block,x[16]=x[1]=x[2]=x[3]=x[4]=x[5]=x[6]=x[7]=x[8]=x[9]=x[10]=x[11]=x[12]=x[13]=x[14]=x[15]=0),T)for(L=this.start;O<K&&L<64;++O)x[L>>2]|=v[O]<<d[L++&3];else for(L=this.start;O<K&&L<64;++O)I=v.charCodeAt(O),I<128?x[L>>2]|=I<<d[L++&3]:I<2048?(x[L>>2]|=(192|I>>6)<<d[L++&3],x[L>>2]|=(128|I&63)<<d[L++&3]):I<55296||I>=57344?(x[L>>2]|=(224|I>>12)<<d[L++&3],x[L>>2]|=(128|I>>6&63)<<d[L++&3],x[L>>2]|=(128|I&63)<<d[L++&3]):(I=65536+((I&1023)<<10|v.charCodeAt(++O)&1023),x[L>>2]|=(240|I>>18)<<d[L++&3],x[L>>2]|=(128|I>>12&63)<<d[L++&3],x[L>>2]|=(128|I>>6&63)<<d[L++&3],x[L>>2]|=(128|I&63)<<d[L++&3]);this.lastByteIndex=L,this.bytes+=L-this.start,L>=64?(this.block=x[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,T=this.lastByteIndex;v[16]=this.block,v[T>>2]|=u[T&3],this.block=v[16],T>=56&&(this.hashed||this.hash(),v[0]=this.block,v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),v[14]=this.hBytes<<3|this.bytes>>>29,v[15]=this.bytes<<3,this.hash()}},E.prototype.hash=function(){var v=this.h0,T=this.h1,M=this.h2,I=this.h3,O=this.h4,L=this.h5,K=this.h6,x=this.h7,q=this.blocks,ie,de,ce,pe,z,fe,f,h,k,P,C;for(ie=16;ie<64;++ie)z=q[ie-15],de=(z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3,z=q[ie-2],ce=(z>>>17|z<<15)^(z>>>19|z<<13)^z>>>10,q[ie]=q[ie-16]+de+q[ie-7]+ce<<0;for(C=T&M,ie=0;ie<64;ie+=4)this.first?(this.is224?(h=300032,z=q[0]-1413257819,x=z-150054599<<0,I=z+24177077<<0):(h=704751109,z=q[0]-210244248,x=z-1521486534<<0,I=z+143694565<<0),this.first=!1):(de=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),ce=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),h=v&T,pe=h^v&M^C,f=O&L^~O&K,z=x+ce+f+m[ie]+q[ie],fe=de+pe,x=I+z<<0,I=z+fe<<0),de=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),ce=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),k=I&v,pe=k^I&T^h,f=x&O^~x&L,z=K+ce+f+m[ie+1]+q[ie+1],fe=de+pe,K=M+z<<0,M=z+fe<<0,de=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),ce=(K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7),P=M&I,pe=P^M&v^k,f=K&x^~K&O,z=L+ce+f+m[ie+2]+q[ie+2],fe=de+pe,L=T+z<<0,T=z+fe<<0,de=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),ce=(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7),C=T&M,pe=C^T&I^P,f=L&K^~L&x,z=O+ce+f+m[ie+3]+q[ie+3],fe=de+pe,O=v+z<<0,v=z+fe<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+v<<0,this.h1=this.h1+T<<0,this.h2=this.h2+M<<0,this.h3=this.h3+I<<0,this.h4=this.h4+O<<0,this.h5=this.h5+L<<0,this.h6=this.h6+K<<0,this.h7=this.h7+x<<0},E.prototype.hex=function(){this.finalize();var v=this.h0,T=this.h1,M=this.h2,I=this.h3,O=this.h4,L=this.h5,K=this.h6,x=this.h7,q=a[v>>28&15]+a[v>>24&15]+a[v>>20&15]+a[v>>16&15]+a[v>>12&15]+a[v>>8&15]+a[v>>4&15]+a[v&15]+a[T>>28&15]+a[T>>24&15]+a[T>>20&15]+a[T>>16&15]+a[T>>12&15]+a[T>>8&15]+a[T>>4&15]+a[T&15]+a[M>>28&15]+a[M>>24&15]+a[M>>20&15]+a[M>>16&15]+a[M>>12&15]+a[M>>8&15]+a[M>>4&15]+a[M&15]+a[I>>28&15]+a[I>>24&15]+a[I>>20&15]+a[I>>16&15]+a[I>>12&15]+a[I>>8&15]+a[I>>4&15]+a[I&15]+a[O>>28&15]+a[O>>24&15]+a[O>>20&15]+a[O>>16&15]+a[O>>12&15]+a[O>>8&15]+a[O>>4&15]+a[O&15]+a[L>>28&15]+a[L>>24&15]+a[L>>20&15]+a[L>>16&15]+a[L>>12&15]+a[L>>8&15]+a[L>>4&15]+a[L&15]+a[K>>28&15]+a[K>>24&15]+a[K>>20&15]+a[K>>16&15]+a[K>>12&15]+a[K>>8&15]+a[K>>4&15]+a[K&15];return this.is224||(q+=a[x>>28&15]+a[x>>24&15]+a[x>>20&15]+a[x>>16&15]+a[x>>12&15]+a[x>>8&15]+a[x>>4&15]+a[x&15]),q},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var v=this.h0,T=this.h1,M=this.h2,I=this.h3,O=this.h4,L=this.h5,K=this.h6,x=this.h7,q=[v>>24&255,v>>16&255,v>>8&255,v&255,T>>24&255,T>>16&255,T>>8&255,T&255,M>>24&255,M>>16&255,M>>8&255,M&255,I>>24&255,I>>16&255,I>>8&255,I&255,O>>24&255,O>>16&255,O>>8&255,O&255,L>>24&255,L>>16&255,L>>8&255,L&255,K>>24&255,K>>16&255,K>>8&255,K&255];return this.is224||q.push(x>>24&255,x>>16&255,x>>8&255,x&255),q},E.prototype.array=E.prototype.digest,E.prototype.arrayBuffer=function(){this.finalize();var v=new ArrayBuffer(this.is224?28:32),T=new DataView(v);return T.setUint32(0,this.h0),T.setUint32(4,this.h1),T.setUint32(8,this.h2),T.setUint32(12,this.h3),T.setUint32(16,this.h4),T.setUint32(20,this.h5),T.setUint32(24,this.h6),this.is224||T.setUint32(28,this.h7),v};function G(v,T,M){var I,O=typeof v;if(O==="string"){var L=[],K=v.length,x=0,q;for(I=0;I<K;++I)q=v.charCodeAt(I),q<128?L[x++]=q:q<2048?(L[x++]=192|q>>6,L[x++]=128|q&63):q<55296||q>=57344?(L[x++]=224|q>>12,L[x++]=128|q>>6&63,L[x++]=128|q&63):(q=65536+((q&1023)<<10|v.charCodeAt(++I)&1023),L[x++]=240|q>>18,L[x++]=128|q>>12&63,L[x++]=128|q>>6&63,L[x++]=128|q&63);v=L}else if(O==="object"){if(v===null)throw new Error(e);if(l&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!l||!ArrayBuffer.isView(v)))throw new Error(e)}else throw new Error(e);v.length>64&&(v=new E(T,!0).update(v).array());var ie=[],de=[];for(I=0;I<64;++I){var ce=v[I]||0;ie[I]=92^ce,de[I]=54^ce}E.call(this,T,M),this.update(de),this.oKeyPad=ie,this.inner=!0,this.sharedMemory=M}G.prototype=new E,G.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var v=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(v),E.prototype.finalize.call(this)}};var Q=B();Q.sha256=Q,Q.sha224=B(!0),Q.sha256.hmac=A(),Q.sha224.hmac=A(!0),s?t.exports=Q:(r.sha256=Q.sha256,r.sha224=Q.sha224)})()})(Us);var Km=Us.exports;const Wm=Rm(Km);class Jt extends Error{}Jt.prototype.name="InvalidTokenError";function qm(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Gm(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return qm(e)}catch{return atob(e)}}function yr(t,e){if(typeof t!="string")throw new Jt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new Jt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Gm(r)}catch(i){throw new Jt(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Jt(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function Hs(t){if(!(this instanceof Hs))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,i={enable:!0,callbackList:[],interval:5},s=document.getElementsByTagName("script"),l=0;l<s.length;l++)(s[l].src.indexOf("keycloak.js")!==-1||s[l].src.indexOf("keycloak.min.js")!==-1)&&s[l].src.indexOf("version=")!==-1&&(e.iframeVersion=s[l].src.substring(s[l].src.indexOf("version=")+8).split("&")[0]);var a=!0,u=fe(console.info),d=fe(console.warn);e.init=function(f){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=z();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=de(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=de("cordova"):n=de(),f){if(typeof f.useNonce<"u"&&(a=f.useNonce),typeof f.checkLoginIframe<"u"&&(i.enable=f.checkLoginIframe),f.checkLoginIframeInterval&&(i.interval=f.checkLoginIframeInterval),f.onLoad==="login-required"&&(e.loginRequired=!0),f.responseMode)if(f.responseMode==="query"||f.responseMode==="fragment")e.responseMode=f.responseMode;else throw"Invalid value for responseMode";if(f.flow){switch(f.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=f.flow}if(f.timeSkew!=null&&(e.timeSkew=f.timeSkew),f.redirectUri&&(e.redirectUri=f.redirectUri),f.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=f.silentCheckSsoRedirectUri),typeof f.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=f.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,f.pkceMethod){if(f.pkceMethod!=="S256")throw"Invalid value for pkceMethod";e.pkceMethod=f.pkceMethod}typeof f.enableLogging=="boolean"?e.enableLogging=f.enableLogging:e.enableLogging=!1,typeof f.scope=="string"&&(e.scope=f.scope),typeof f.acrValues=="string"&&(e.acrValues=f.acrValues),typeof f.messageReceiveTimeout=="number"&&f.messageReceiveTimeout>0?e.messageReceiveTimeout=f.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var k=O(),P=O();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),k.setSuccess(e.authenticated)}).catch(function(U){k.setError(U)});var C=E();function D(){var U=function(te){te||(W.prompt="none"),f&&f.locale&&(W.locale=f.locale),e.login(W).then(function(){P.setSuccess()}).catch(function(Ae){P.setError(Ae)})},F=function(){var te=document.createElement("iframe"),Ae=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});te.setAttribute("src",Ae),te.setAttribute("sandbox","allow-scripts allow-same-origin"),te.setAttribute("title","keycloak-silent-check-sso"),te.style.display="none",document.body.appendChild(te);var ke=function(ge){if(!(ge.origin!==window.location.origin||te.contentWindow!==ge.source)){var Xe=T(ge.data);A(Xe,P),document.body.removeChild(te),window.removeEventListener("message",ke)}};window.addEventListener("message",ke)},W={};switch(f.onLoad){case"check-sso":i.enable?K().then(function(){q().then(function(te){te?P.setSuccess():e.silentCheckSsoRedirectUri?F():U(!1)}).catch(function(te){P.setError(te)})}):e.silentCheckSsoRedirectUri?F():U(!1);break;case"login-required":U(!0);break;default:throw"Invalid value for onLoad"}}function R(){var U=T(window.location.href);if(U&&window.history.replaceState(window.history.state,null,U.newUrl),U&&U.valid)return K().then(function(){A(U,P)}).catch(function(F){P.setError(F)});f?f.token&&f.refreshToken?(Q(f.token,f.refreshToken,f.idToken),i.enable?K().then(function(){q().then(function(F){F?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),x()):P.setSuccess()}).catch(function(F){P.setError(F)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function(F){e.onAuthError&&e.onAuthError(),f.onLoad?D():P.setError(F)})):f.onLoad?D():P.setSuccess():P.setSuccess()}function $(){var U=O(),F=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",F),U.setSuccess())};return document.addEventListener("readystatechange",F),F(),U.promise}return C.then(function(){$().then(ie).then(R).catch(function(U){k.setError(U)})}),C.catch(function(U){k.setError(U)}),k.promise},e.login=function(f){return n.login(f)};function m(f){var h=null,k=window.crypto||window.msCrypto;if(k&&k.getRandomValues&&window.Uint8Array)return h=new Uint8Array(f),k.getRandomValues(h),h;h=new Array(f);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function g(f){return _(f,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(f,h){for(var k=m(f),P=new Array(f),C=0;C<f;C++)P[C]=h.charCodeAt(k[C]%h.length);return String.fromCharCode.apply(null,P)}function w(f,h){switch(f){case"S256":var k=new Uint8Array(Wm.arrayBuffer(h)),P=qn.fromByteArray(k).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");return P;default:throw"Invalid value for pkceMethod"}}function B(f){var h={id_token:{acr:f}};return JSON.stringify(h)}e.createLoginUrl=function(f){var h=v(),k=v(),P=n.redirectUri(f),C={state:h,nonce:k,redirectUri:encodeURIComponent(P)};f&&f.prompt&&(C.prompt=f.prompt);var D;f&&f.action=="register"?D=e.endpoints.register():D=e.endpoints.authorize();var R=f&&f.scope||e.scope;R?R.indexOf("openid")===-1&&(R="openid "+R):R="openid";var $=D+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(R);if(a&&($=$+"&nonce="+encodeURIComponent(k)),f&&f.prompt&&($+="&prompt="+encodeURIComponent(f.prompt)),f&&f.maxAge&&($+="&max_age="+encodeURIComponent(f.maxAge)),f&&f.loginHint&&($+="&login_hint="+encodeURIComponent(f.loginHint)),f&&f.idpHint&&($+="&kc_idp_hint="+encodeURIComponent(f.idpHint)),f&&f.action&&f.action!="register"&&($+="&kc_action="+encodeURIComponent(f.action)),f&&f.locale&&($+="&ui_locales="+encodeURIComponent(f.locale)),f&&f.acr){var U=B(f.acr);$+="&claims="+encodeURIComponent(U)}if((f&&f.acrValues||e.acrValues)&&($+="&acr_values="+encodeURIComponent(f.acrValues||e.acrValues)),e.pkceMethod){var F=g(96);C.pkceCodeVerifier=F;var W=w(e.pkceMethod,F);$+="&code_challenge="+W,$+="&code_challenge_method="+e.pkceMethod}return o.add(C),$},e.logout=function(f){return n.logout(f)},e.createLogoutUrl=function(f){var h=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(f,!1));return e.idToken&&(h+="&id_token_hint="+encodeURIComponent(e.idToken)),h},e.register=function(f){return n.register(f)},e.createRegisterUrl=function(f){return f||(f={}),f.action="register",e.createLoginUrl(f)},e.createAccountUrl=function(f){var h=S(),k=void 0;return typeof h<"u"&&(k=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(f))),k},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(f){var h=e.realmAccess;return!!h&&h.roles.indexOf(f)>=0},e.hasResourceRole=function(f,h){if(!e.resourceAccess)return!1;var k=e.resourceAccess[h||e.clientId];return!!k&&k.roles.indexOf(f)>=0},e.loadUserProfile=function(){var f=S()+"/account",h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var k=O();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),k.setSuccess(e.profile)):k.setError())},h.send(),k.promise},e.loadUserInfo=function(){var f=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var k=O();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),k.setSuccess(e.userInfo)):k.setError())},h.send(),k.promise},e.isTokenExpired=function(f){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(f){if(isNaN(f))throw"Invalid minValidity";h-=f}return h<0},e.updateToken=function(f){var h=O();if(!e.refreshToken)return h.setError(),h.promise;f=f||5;var k=function(){var C=!1;if(f==-1?(C=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(f))&&(C=!0,u("[KEYCLOAK] Refreshing token: token expired")),!C)h.setSuccess(!1);else{var D="grant_type=refresh_token&refresh_token="+e.refreshToken,R=e.endpoints.token();if(r.push(h),r.length==1){var $=new XMLHttpRequest;$.open("POST",R,!0),$.setRequestHeader("Content-type","application/x-www-form-urlencoded"),$.withCredentials=!0,D+="&client_id="+encodeURIComponent(e.clientId);var U=new Date().getTime();$.onreadystatechange=function(){if($.readyState==4)if($.status==200){u("[KEYCLOAK] Token refreshed"),U=(U+new Date().getTime())/2;var F=JSON.parse($.responseText);Q(F.access_token,F.refresh_token,F.id_token,U),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var W=r.pop();W!=null;W=r.pop())W.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),$.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var W=r.pop();W!=null;W=r.pop())W.setError(!0)}},$.send(D)}}};if(i.enable){var P=q();P.then(function(){k()}).catch(function(C){h.setError(C)})}else k();return h.promise},e.clearToken=function(){e.token&&(Q(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())},e.setToken=Q;function S(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function j(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function A(f,h){var k=f.code,P=f.error,C=f.prompt,D=new Date().getTime();if(f.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(f.kc_action_status),P){if(C!="none"){var R={error:P,error_description:f.error_description};e.onAuthError&&e.onAuthError(R),h&&h.setError(R)}else h&&h.setSuccess();return}else e.flow!="standard"&&(f.access_token||f.id_token)&&W(f.access_token,null,f.id_token,!0);if(e.flow!="implicit"&&k){var $="code="+k+"&grant_type=authorization_code",U=e.endpoints.token(),F=new XMLHttpRequest;F.open("POST",U,!0),F.setRequestHeader("Content-type","application/x-www-form-urlencoded"),$+="&client_id="+encodeURIComponent(e.clientId),$+="&redirect_uri="+f.redirectUri,f.pkceCodeVerifier&&($+="&code_verifier="+f.pkceCodeVerifier),F.withCredentials=!0,F.onreadystatechange=function(){if(F.readyState==4)if(F.status==200){var te=JSON.parse(F.responseText);W(te.access_token,te.refresh_token,te.id_token,e.flow==="standard"),x()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},F.send($)}function W(te,Ae,ke,ge){D=(D+new Date().getTime())/2,Q(te,Ae,ke,D),a&&(e.tokenParsed&&e.tokenParsed.nonce!=f.storedNonce||e.refreshTokenParsed&&e.refreshTokenParsed.nonce!=f.storedNonce||e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)?(u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):ge&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function E(f){var h=O(),k;t?typeof t=="string"&&(k=t):k=location.origin+"/keycloak.json";function P(F){F?e.endpoints={authorize:function(){return F.authorization_endpoint},token:function(){return F.token_endpoint},logout:function(){if(!F.end_session_endpoint)throw"Not supported by the OIDC server";return F.end_session_endpoint},checkSessionIframe:function(){if(!F.check_session_iframe)throw"Not supported by the OIDC server";return F.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!F.userinfo_endpoint)throw"Not supported by the OIDC server";return F.userinfo_endpoint}}:e.endpoints={authorize:function(){return S()+"/protocol/openid-connect/auth"},token:function(){return S()+"/protocol/openid-connect/token"},logout:function(){return S()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var W=S()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(W=W+"?version="+e.iframeVersion),W},thirdPartyCookiesIframe:function(){var W=S()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(W=W+"?version="+e.iframeVersion),W},register:function(){return S()+"/protocol/openid-connect/registrations"},userinfo:function(){return S()+"/protocol/openid-connect/userinfo"}}}if(k){var C=new XMLHttpRequest;C.open("GET",k,!0),C.setRequestHeader("Accept","application/json"),C.onreadystatechange=function(){if(C.readyState==4)if(C.status==200||G(C)){var F=JSON.parse(C.responseText);e.authServerUrl=F["auth-server-url"],e.realm=F.realm,e.clientId=F.resource,P(null),h.setSuccess()}else h.setError()},C.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var D=t.oidcProvider;if(D)if(typeof D=="string"){var U;D.charAt(D.length-1)=="/"?U=D+".well-known/openid-configuration":U=D+"/.well-known/openid-configuration";var C=new XMLHttpRequest;C.open("GET",U,!0),C.setRequestHeader("Accept","application/json"),C.onreadystatechange=function(){if(C.readyState==4)if(C.status==200||G(C)){var W=JSON.parse(C.responseText);P(W),h.setSuccess()}else h.setError()},C.send()}else P(D),h.setSuccess();else{if(!t.url){for(var R=document.getElementsByTagName("script"),$=0;$<R.length;$++)if(R[$].src.match(/.*keycloak\.js/)){t.url=R[$].src.substr(0,R[$].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function G(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function Q(f,h,k,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=yr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),k?(e.idToken=k,e.idTokenParsed=yr(k)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=yr(f),e.sessionId=e.tokenParsed.session_state,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var C=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(C/1e3)+" s"),C<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,C)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function v(){var f="0123456789abcdef",h=_(36,f).split("");h[14]="4",h[19]=f.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var k=h.join("");return k}function T(f){var h=M(f);if(h){var k=o.get(h.state);return k&&(h.valid=!0,h.redirectUri=k.redirectUri,h.storedNonce=k.nonce,h.prompt=k.prompt,h.pkceCodeVerifier=k.pkceCodeVerifier),h}}function M(f){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var k=f.indexOf("?"),P=f.indexOf("#"),C,D;if(e.responseMode==="query"&&k!==-1?(C=f.substring(0,k),D=I(f.substring(k+1,P!==-1?P:f.length),h),D.paramsString!==""&&(C+="?"+D.paramsString),P!==-1&&(C+=f.substring(P))):e.responseMode==="fragment"&&P!==-1&&(C=f.substring(0,P),D=I(f.substring(P+1),h),D.paramsString!==""&&(C+="#"+D.paramsString)),D&&D.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((D.oauthParams.code||D.oauthParams.error)&&D.oauthParams.state)return D.oauthParams.newUrl=C,D.oauthParams}else if(e.flow==="implicit"&&(D.oauthParams.access_token||D.oauthParams.error)&&D.oauthParams.state)return D.oauthParams.newUrl=C,D.oauthParams}}function I(f,h){for(var k=f.split("&"),P={paramsString:"",oauthParams:{}},C=0;C<k.length;C++){var D=k[C].indexOf("="),R=k[C].slice(0,D);h.indexOf(R)!==-1?P.oauthParams[R]=k[C].slice(D+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=k[C])}return P}function O(){var f={setSuccess:function(h){f.resolve(h)},setError:function(h){f.reject(h)}};return f.promise=new Promise(function(h,k){f.resolve=h,f.reject=k}),f}function L(f,h,k){var P=null,C=new Promise(function(D,R){P=setTimeout(function(){R({error:k})},h)});return Promise.race([f,C]).finally(function(){clearTimeout(P)})}function K(){var f=O();if(!i.enable||i.iframe)return f.setSuccess(),f.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var C=e.endpoints.authorize();C.charAt(0)==="/"?i.iframeOrigin=j():i.iframeOrigin=C.substring(0,C.indexOf("/",8)),f.setSuccess()};var k=e.endpoints.checkSessionIframe();h.setAttribute("src",k),h.setAttribute("sandbox","allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(C){if(!(C.origin!==i.iframeOrigin||i.iframe.contentWindow!==C.source)&&(C.data=="unchanged"||C.data=="changed"||C.data=="error")){C.data!="unchanged"&&e.clearToken();for(var D=i.callbackList.splice(0,i.callbackList.length),R=D.length-1;R>=0;--R){var $=D[R];C.data=="error"?$.setError():$.setSuccess(C.data=="unchanged")}}};return window.addEventListener("message",P,!1),f.promise}function x(){i.enable&&e.token&&setTimeout(function(){q().then(function(f){f&&x()})},i.interval*1e3)}function q(){var f=O();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(f);var k=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,k)}else f.setSuccess();return f.promise}function ie(){var f=O();if(i.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var k=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(d(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
413
+
414
+ - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
415
+ - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
416
+
417
+ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",k),f.setSuccess()))};window.addEventListener("message",k,!1)}else f.setSuccess();return L(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function de(f){if(!f||f=="default")return{login:function(R){return window.location.assign(e.createLoginUrl(R)),O().promise},logout:function(R){return window.location.replace(e.createLogoutUrl(R)),O().promise},register:function(R){return window.location.assign(e.createRegisterUrl(R)),O().promise},accountManagement:function(){var R=e.createAccountUrl();if(typeof R<"u")window.location.href=R;else throw"Not supported by the OIDC server";return O().promise},redirectUri:function(R,$){return R&&R.redirectUri?R.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(f=="cordova"){i.enable=!1;var h=function(R,$,U){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(R,$,U):window.open(R,$,U)},k=function(R){return R&&R.cordovaOptions?Object.keys(R.cordovaOptions).reduce(function($,U){return $[U]=R.cordovaOptions[U],$},{}):{}},P=function(R){return Object.keys(R).reduce(function($,U){return $.push(U+"="+R[U]),$},[]).join(",")},C=function(R){var $=k(R);return $.location="no",R&&R.prompt=="none"&&($.hidden="yes"),P($)},D=function(){return e.redirectUri||"http://localhost"};return{login:function(R){var $=O(),U=C(R),F=e.createLoginUrl(R),W=h(F,"_blank",U),te=!1,Ae=!1,ke=function(){Ae=!0,W.close()};return W.addEventListener("loadstart",function(ge){if(ge.url.indexOf(D())==0){var Xe=T(ge.url);A(Xe,$),ke(),te=!0}}),W.addEventListener("loaderror",function(ge){if(!te)if(ge.url.indexOf(D())==0){var Xe=T(ge.url);A(Xe,$),ke(),te=!0}else $.setError(),ke()}),W.addEventListener("exit",function(ge){Ae||$.setError({reason:"closed_by_user"})}),$.promise},logout:function(R){var $=O(),U=e.createLogoutUrl(R),F=h(U,"_blank","location=no,hidden=yes,clearcache=yes"),W;return F.addEventListener("loadstart",function(te){te.url.indexOf(D())==0&&F.close()}),F.addEventListener("loaderror",function(te){te.url.indexOf(D())==0||(W=!0),F.close()}),F.addEventListener("exit",function(te){W?$.setError():(e.clearToken(),$.setSuccess())}),$.promise},register:function(R){var $=O(),U=e.createRegisterUrl(),F=C(R),W=h(U,"_blank",F);return W.addEventListener("loadstart",function(te){if(te.url.indexOf(D())==0){W.close();var Ae=T(te.url);A(Ae,$)}}),$.promise},accountManagement:function(){var R=e.createAccountUrl();if(typeof R<"u"){var $=h(R,"_blank","location=no");$.addEventListener("loadstart",function(U){U.url.indexOf(D())==0&&$.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(R){return D()}}}if(f=="cordova-native")return i.enable=!1,{login:function(R){var $=O(),U=e.createLoginUrl(R);return universalLinks.subscribe("keycloak",function(F){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var W=T(F.url);A(W,$)}),window.cordova.plugins.browsertab.openUrl(U),$.promise},logout:function(R){var $=O(),U=e.createLogoutUrl(R);return universalLinks.subscribe("keycloak",function(F){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),$.setSuccess()}),window.cordova.plugins.browsertab.openUrl(U),$.promise},register:function(R){var $=O(),U=e.createRegisterUrl(R);return universalLinks.subscribe("keycloak",function(F){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var W=T(F.url);A(W,$)}),window.cordova.plugins.browsertab.openUrl(U),$.promise},accountManagement:function(){var R=e.createAccountUrl();if(typeof R<"u")window.cordova.plugins.browsertab.openUrl(R);else throw"Not supported by the OIDC server"},redirectUri:function(R){return R&&R.redirectUri?R.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+f}var ce=function(){if(!(this instanceof ce))return new ce;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var f=this;function h(){for(var k=new Date().getTime(),P=0;P<localStorage.length;P++){var C=localStorage.key(P);if(C&&C.indexOf("kc-callback-")==0){var D=localStorage.getItem(C);if(D)try{var R=JSON.parse(D).expires;(!R||R<k)&&localStorage.removeItem(C)}catch{localStorage.removeItem(C)}}}}f.get=function(k){if(k){var P="kc-callback-"+k,C=localStorage.getItem(P);return C&&(localStorage.removeItem(P),C=JSON.parse(C)),h(),C}},f.add=function(k){h();var P="kc-callback-"+k.state;k.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(k))}},pe=function(){if(!(this instanceof pe))return new pe;var f=this;f.get=function(C){if(C){var D=k("kc-callback-"+C);if(P("kc-callback-"+C,"",h(-100)),D)return JSON.parse(D)}},f.add=function(C){P("kc-callback-"+C.state,JSON.stringify(C),h(60))},f.removeItem=function(C){P(C,"",h(-100))};var h=function(C){var D=new Date;return D.setTime(D.getTime()+C*60*1e3),D},k=function(C){for(var D=C+"=",R=document.cookie.split(";"),$=0;$<R.length;$++){for(var U=R[$];U.charAt(0)==" ";)U=U.substring(1);if(U.indexOf(D)==0)return U.substring(D.length,U.length)}return""},P=function(C,D,R){var $=C+"="+D+"; expires="+R.toUTCString()+"; ";document.cookie=$}};function z(){try{return new ce}catch{}return new pe}function fe(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}async function Jm(){const t="silent-login.html",e=await fetch(location.origin+"/"+t).then(async n=>n.status!==200?!1:(await n.text()).includes("silent-login-iframe-result")).catch(()=>!1);if(!e){const n=`O arquivo ${t} não foi localizado no projeto ou não possui o conteúdo correto!`;console.warn(n),document.documentElement.setAttribute("data-app-message",n)}return e}let xn;function Ym(t){if(!t)return xn;const e=new Hs(t),n={},r=async(s={},l)=>{if(await Jm())return s.onLoad==="login-required"&&document.documentElement.setAttribute("data-app-message","Autorizando..."),e.init(s).then(async u=>{if(u&&await o(),l&&typeof l=="function")try{l(),document.documentElement.classList.add("app-mounted")}catch(d){console.error(d),document.documentElement.setAttribute("data-app-message","Ocorreu um erro na inicialização. Verifique o console para mais detalhes.")}}).catch(u=>{document.documentElement.setAttribute("data-app-message","Ocorreu na comunicação com o servidor de autenticação.")})},o=async()=>{const s=await e.loadUserInfo();n.email=s.email??"",n.emailVerified=s.email_verified===!0,n.firstName=s.given_name??"",n.lastName=s.family_name??"",n.name=s.name??"",n.sub=s.sub??"",n.username=s.preferred_username??"",n.roles=[...s.role??[]],n.groups=[...s.group??[]],n.IsInRole=l=>n.roles.includes(l),sessionStorage.setItem("name",n.name)};return xn={Instance:e,User:n,Init:r,Logout:()=>{e.logout({redirectUri:location.origin}).then(()=>{sessionStorage.removeItem("name")})}},xn}const Xm=()=>xn,Zm=t=>Ym(t);class $r{constructor(e=null){Me(this,"errors",[]);Me(this,"_value",null);Me(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}function js(t,e){return function(){return t.apply(e,arguments)}}const{toString:Qm}=Object.prototype,{getPrototypeOf:ao}=Object,Gn=(t=>e=>{const n=Qm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ye=t=>(t=t.toLowerCase(),e=>Gn(e)===t),Jn=t=>e=>typeof e===t,{isArray:Nt}=Array,cn=Jn("undefined");function ep(t){return t!==null&&!cn(t)&&t.constructor!==null&&!cn(t.constructor)&&Be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Vs=Ye("ArrayBuffer");function tp(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Vs(t.buffer),e}const np=Jn("string"),Be=Jn("function"),zs=Jn("number"),Yn=t=>t!==null&&typeof t=="object",rp=t=>t===!0||t===!1,Pn=t=>{if(Gn(t)!=="object")return!1;const e=ao(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},op=Ye("Date"),ip=Ye("File"),sp=Ye("Blob"),ap=Ye("FileList"),lp=t=>Yn(t)&&Be(t.pipe),cp=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Be(t.append)&&((e=Gn(t))==="formdata"||e==="object"&&Be(t.toString)&&t.toString()==="[object FormData]"))},up=Ye("URLSearchParams"),[dp,fp,mp,pp]=["ReadableStream","Request","Response","Headers"].map(Ye),hp=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Nt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function Ks(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const ht=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ws=t=>!cn(t)&&t!==ht;function Nr(){const{caseless:t}=Ws(this)&&this||{},e={},n=(r,o)=>{const i=t&&Ks(e,o)||o;Pn(e[i])&&Pn(r)?e[i]=Nr(e[i],r):Pn(r)?e[i]=Nr({},r):Nt(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&gn(arguments[r],n);return e}const gp=(t,e,n,{allOwnKeys:r}={})=>(gn(e,(o,i)=>{n&&Be(o)?t[i]=js(o,n):t[i]=o},{allOwnKeys:r}),t),yp=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),vp=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},bp=(t,e,n,r)=>{let o,i,s;const l={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=n!==!1&&ao(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},wp=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Sp=t=>{if(!t)return null;if(Nt(t))return t;let e=t.length;if(!zs(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_p=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ao(Uint8Array)),kp=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Cp=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Ep=Ye("HTMLFormElement"),Ap=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ci=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Tp=Ye("RegExp"),qs=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gn(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},xp=t=>{qs(t,(e,n)=>{if(Be(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Be(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Pp=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Nt(t)?r(t):r(String(t).split(e)),n},Ip=()=>{},Op=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,vr="abcdefghijklmnopqrstuvwxyz",Ei="0123456789",Gs={DIGIT:Ei,ALPHA:vr,ALPHA_DIGIT:vr+vr.toUpperCase()+Ei},Lp=(t=16,e=Gs.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Rp(t){return!!(t&&Be(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const $p=t=>{const e=new Array(10),n=(r,o)=>{if(Yn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=Nt(r)?[]:{};return gn(r,(s,l)=>{const a=n(s,o+1);!cn(a)&&(i[l]=a)}),e[o]=void 0,i}}return r};return n(t,0)},Np=Ye("AsyncFunction"),Bp=t=>t&&(Yn(t)||Be(t))&&Be(t.then)&&Be(t.catch),Js=((t,e)=>t?setImmediate:e?((n,r)=>(ht.addEventListener("message",({source:o,data:i})=>{o===ht&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ht.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Be(ht.postMessage)),Dp=typeof queueMicrotask<"u"?queueMicrotask.bind(ht):typeof process<"u"&&process.nextTick||Js,y={isArray:Nt,isArrayBuffer:Vs,isBuffer:ep,isFormData:cp,isArrayBufferView:tp,isString:np,isNumber:zs,isBoolean:rp,isObject:Yn,isPlainObject:Pn,isReadableStream:dp,isRequest:fp,isResponse:mp,isHeaders:pp,isUndefined:cn,isDate:op,isFile:ip,isBlob:sp,isRegExp:Tp,isFunction:Be,isStream:lp,isURLSearchParams:up,isTypedArray:_p,isFileList:ap,forEach:gn,merge:Nr,extend:gp,trim:hp,stripBOM:yp,inherits:vp,toFlatObject:bp,kindOf:Gn,kindOfTest:Ye,endsWith:wp,toArray:Sp,forEachEntry:kp,matchAll:Cp,isHTMLForm:Ep,hasOwnProperty:Ci,hasOwnProp:Ci,reduceDescriptors:qs,freezeMethods:xp,toObjectSet:Pp,toCamelCase:Ap,noop:Ip,toFiniteNumber:Op,findKey:Ks,global:ht,isContextDefined:Ws,ALPHABET:Gs,generateString:Lp,isSpecCompliantForm:Rp,toJSONObject:$p,isAsyncFn:Np,isThenable:Bp,setImmediate:Js,asap:Dp};function J(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}y.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ys=J.prototype,Xs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Xs[t]={value:t}});Object.defineProperties(J,Xs);Object.defineProperty(Ys,"isAxiosError",{value:!0});J.from=(t,e,n,r,o,i)=>{const s=Object.create(Ys);return y.toFlatObject(t,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),J.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Fp=null;function Br(t){return y.isPlainObject(t)||y.isArray(t)}function Zs(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function Ai(t,e,n){return t?t.concat(e).map(function(o,i){return o=Zs(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function Mp(t){return y.isArray(t)&&!t.some(Br)}const Up=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Xn(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(B,S){return!y.isUndefined(S[B])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function u(w){if(w===null)return"";if(y.isDate(w))return w.toISOString();if(!a&&y.isBlob(w))throw new J("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(w)||y.isTypedArray(w)?a&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function d(w,B,S){let j=w;if(w&&!S&&typeof w=="object"){if(y.endsWith(B,"{}"))B=r?B:B.slice(0,-2),w=JSON.stringify(w);else if(y.isArray(w)&&Mp(w)||(y.isFileList(w)||y.endsWith(B,"[]"))&&(j=y.toArray(w)))return B=Zs(B),j.forEach(function(E,G){!(y.isUndefined(E)||E===null)&&e.append(s===!0?Ai([B],G,i):s===null?B:B+"[]",u(E))}),!1}return Br(w)?!0:(e.append(Ai(S,B,i),u(w)),!1)}const m=[],g=Object.assign(Up,{defaultVisitor:d,convertValue:u,isVisitable:Br});function _(w,B){if(!y.isUndefined(w)){if(m.indexOf(w)!==-1)throw Error("Circular reference detected in "+B.join("."));m.push(w),y.forEach(w,function(j,A){(!(y.isUndefined(j)||j===null)&&o.call(e,j,y.isString(A)?A.trim():A,B,g))===!0&&_(j,B?B.concat(A):[A])}),m.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ti(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function lo(t,e){this._pairs=[],t&&Xn(t,this,e)}const Qs=lo.prototype;Qs.append=function(e,n){this._pairs.push([e,n])};Qs.toString=function(e){const n=e?function(r){return e.call(this,r,Ti)}:Ti;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Hp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ea(t,e,n){if(!e)return t;const r=n&&n.encode||Hp,o=n&&n.serialize;let i;if(o?i=o(e,n):i=y.isURLSearchParams(e)?e.toString():new lo(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class xi{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ta={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jp=typeof URLSearchParams<"u"?URLSearchParams:lo,Vp=typeof FormData<"u"?FormData:null,zp=typeof Blob<"u"?Blob:null,Kp={isBrowser:!0,classes:{URLSearchParams:jp,FormData:Vp,Blob:zp},protocols:["http","https","file","blob","url","data"]},co=typeof window<"u"&&typeof document<"u",Wp=(t=>co&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),qp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gp=co&&window.location.href||"http://localhost",Jp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:co,hasStandardBrowserEnv:Wp,hasStandardBrowserWebWorkerEnv:qp,origin:Gp},Symbol.toStringTag,{value:"Module"})),qe={...Jp,...Kp};function Yp(t,e){return Xn(t,new qe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return qe.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Xp(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Zp(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function na(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),a=i>=n.length;return s=!s&&y.isArray(o)?o.length:s,a?(y.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!y.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&y.isArray(o[s])&&(o[s]=Zp(o[s])),!l)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(r,o)=>{e(Xp(r),o,n,0)}),n}return null}function Qp(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const yn={transitional:ta,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=y.isObject(e);if(i&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return o?JSON.stringify(na(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yp(e,this.formSerializer).toString();if((l=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Xn(l?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Qp(e)):e}],transformResponse:[function(e){const n=this.transitional||yn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{yn.headers[t]={}});const eh=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),th=t=>{const e={};let n,r,o;return t&&t.split(`
418
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&eh[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Pi=Symbol("internals");function Kt(t){return t&&String(t).trim().toLowerCase()}function In(t){return t===!1||t==null?t:y.isArray(t)?t.map(In):String(t)}function nh(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const rh=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function br(t,e,n,r,o){if(y.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!y.isString(e)){if(y.isString(r))return e.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(e)}}function oh(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function ih(t,e){const n=y.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class Oe{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(l,a,u){const d=Kt(a);if(!d)throw new Error("header name must be a non-empty string");const m=y.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||a]=In(l))}const s=(l,a)=>y.forEach(l,(u,d)=>i(u,d,a));if(y.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(y.isString(e)&&(e=e.trim())&&!rh(e))s(th(e),n);else if(y.isHeaders(e))for(const[l,a]of e.entries())i(a,l,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=Kt(e),e){const r=y.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return nh(o);if(y.isFunction(n))return n.call(this,o,r);if(y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Kt(e),e){const r=y.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||br(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Kt(s),s){const l=y.findKey(r,s);l&&(!n||br(r,r[l],l,n))&&(delete r[l],o=!0)}}return y.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||br(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return y.forEach(this,(o,i)=>{const s=y.findKey(r,i);if(s){n[s]=In(o),delete n[i];return}const l=e?oh(i):String(i).trim();l!==i&&delete n[i],n[l]=In(o),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
419
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Pi]=this[Pi]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=Kt(s);r[l]||(ih(o,s),r[l]=!0)}return y.isArray(e)?e.forEach(i):i(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Oe.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});y.freezeMethods(Oe);function wr(t,e){const n=this||yn,r=e||n,o=Oe.from(r.headers);let i=r.data;return y.forEach(t,function(l){i=l.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function ra(t){return!!(t&&t.__CANCEL__)}function Bt(t,e,n){J.call(this,t??"canceled",J.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Bt,J,{__CANCEL__:!0});function oa(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sh(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ah(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(a){const u=Date.now(),d=r[i];s||(s=u),n[o]=a,r[o]=u;let m=i,g=0;for(;m!==o;)g+=n[m++],m=m%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const _=d&&u-d;return _?Math.round(g*1e3/_):void 0}}function lh(t,e){let n=0,r=1e3/e,o,i;const s=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-n;m>=r?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-m)))},()=>o&&s(o)]}const Dn=(t,e,n=3)=>{let r=0;const o=ah(50,250);return lh(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,a=s-r,u=o(a),d=s<=l;r=s;const m={loaded:s,total:l,progress:l?s/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(m)},n)},Ii=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Oi=t=>(...e)=>y.asap(()=>t(...e)),ch=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=y.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),uh=qe.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),y.isString(r)&&s.push("path="+r),y.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dh(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function fh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ia(t,e){return t&&!dh(e)?fh(t,e):e}const Li=t=>t instanceof Oe?{...t}:t;function wt(t,e){e=e||{};const n={};function r(u,d,m){return y.isPlainObject(u)&&y.isPlainObject(d)?y.merge.call({caseless:m},u,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function o(u,d,m){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u,m)}else return r(u,d,m)}function i(u,d){if(!y.isUndefined(d))return r(void 0,d)}function s(u,d){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,m){if(m in e)return r(u,d);if(m in t)return r(void 0,u)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>o(Li(u),Li(d),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(d){const m=a[d]||o,g=m(t[d],e[d],d);y.isUndefined(g)&&m!==l||(n[d]=g)}),n}const sa=t=>{const e=wt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=e;e.headers=s=Oe.from(s),e.url=ea(ia(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(y.isFormData(n)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((a=s.getContentType())!==!1){const[u,...d]=a?a.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(qe.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&ch(e.url))){const u=o&&i&&uh.read(i);u&&s.set(o,u)}return e},mh=typeof XMLHttpRequest<"u",ph=mh&&function(t){return new Promise(function(n,r){const o=sa(t);let i=o.data;const s=Oe.from(o.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=o,d,m,g,_,w;function B(){_&&_(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function j(){if(!S)return;const E=Oe.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),Q={data:!l||l==="text"||l==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:E,config:t,request:S};oa(function(T){n(T),B()},function(T){r(T),B()},Q),S=null}"onloadend"in S?S.onloadend=j:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(j)},S.onabort=function(){S&&(r(new J("Request aborted",J.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let G=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Q=o.transitional||ta;o.timeoutErrorMessage&&(G=o.timeoutErrorMessage),r(new J(G,Q.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,S)),S=null},i===void 0&&s.setContentType(null),"setRequestHeader"in S&&y.forEach(s.toJSON(),function(G,Q){S.setRequestHeader(Q,G)}),y.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),l&&l!=="json"&&(S.responseType=o.responseType),u&&([g,w]=Dn(u,!0),S.addEventListener("progress",g)),a&&S.upload&&([m,_]=Dn(a),S.upload.addEventListener("progress",m),S.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=E=>{S&&(r(!E||E.type?new Bt(null,t,S):E),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const A=sh(o.url);if(A&&qe.protocols.indexOf(A)===-1){r(new J("Unsupported protocol "+A+":",J.ERR_BAD_REQUEST,t));return}S.send(i||null)})},hh=(t,e)=>{let n=new AbortController,r;const o=function(a){if(!r){r=!0,s();const u=a instanceof Error?a:this.reason;n.abort(u instanceof J?u:new Bt(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{o(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(a=>{a&&(a.removeEventListener?a.removeEventListener("abort",o):a.unsubscribe(o))}),t=null)};t.forEach(a=>a&&a.addEventListener&&a.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},gh=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},yh=async function*(t,e,n){for await(const r of t)yield*gh(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Ri=(t,e,n,r,o)=>{const i=yh(t,e,o);let s=0,l,a=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await i.next();if(d){a(),u.close();return}let g=m.byteLength;if(n){let _=s+=g;n(_)}u.enqueue(new Uint8Array(m))}catch(d){throw a(d),d}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Zn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",aa=Zn&&typeof ReadableStream=="function",Dr=Zn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),la=(t,...e)=>{try{return!!t(...e)}catch{return!1}},vh=aa&&la(()=>{let t=!1;const e=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),$i=64*1024,Fr=aa&&la(()=>y.isReadableStream(new Response("").body)),Fn={stream:Fr&&(t=>t.body)};Zn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Fn[e]&&(Fn[e]=y.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,r)})})})(new Response);const bh=async t=>{if(t==null)return 0;if(y.isBlob(t))return t.size;if(y.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(y.isArrayBufferView(t)||y.isArrayBuffer(t))return t.byteLength;if(y.isURLSearchParams(t)&&(t=t+""),y.isString(t))return(await Dr(t)).byteLength},wh=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??bh(e)},Sh=Zn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:a,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:g}=sa(t);u=u?(u+"").toLowerCase():"text";let[_,w]=o||i||s?hh([o,i],s):[],B,S;const j=()=>{!B&&setTimeout(()=>{_&&_.unsubscribe()}),B=!0};let A;try{if(a&&vh&&n!=="get"&&n!=="head"&&(A=await wh(d,r))!==0){let v=new Request(e,{method:"POST",body:r,duplex:"half"}),T;if(y.isFormData(r)&&(T=v.headers.get("content-type"))&&d.setContentType(T),v.body){const[M,I]=Ii(A,Dn(Oi(a)));r=Ri(v.body,$i,M,I,Dr)}}y.isString(m)||(m=m?"include":"omit"),S=new Request(e,{...g,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m});let E=await fetch(S);const G=Fr&&(u==="stream"||u==="response");if(Fr&&(l||G)){const v={};["status","statusText","headers"].forEach(O=>{v[O]=E[O]});const T=y.toFiniteNumber(E.headers.get("content-length")),[M,I]=l&&Ii(T,Dn(Oi(l),!0))||[];E=new Response(Ri(E.body,$i,M,()=>{I&&I(),G&&j()},Dr),v)}u=u||"text";let Q=await Fn[y.findKey(Fn,u)||"text"](E,t);return!G&&j(),w&&w(),await new Promise((v,T)=>{oa(v,T,{data:Q,headers:Oe.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:S})})}catch(E){throw j(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,t,S),{cause:E.cause||E}):J.from(E,E&&E.code,t,S)}}),Mr={http:Fp,xhr:ph,fetch:Sh};y.forEach(Mr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ni=t=>`- ${t}`,_h=t=>y.isFunction(t)||t===null||t===!1,ca={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!_h(n)&&(r=Mr[(s=String(n)).toLowerCase()],r===void 0))throw new J(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
420
+ `+i.map(Ni).join(`
421
+ `):" "+Ni(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Mr};function Sr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt(null,t)}function Bi(t){return Sr(t),t.headers=Oe.from(t.headers),t.data=wr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ca.getAdapter(t.adapter||yn.adapter)(t).then(function(r){return Sr(t),r.data=wr.call(t,t.transformResponse,r),r.headers=Oe.from(r.headers),r},function(r){return ra(r)||(Sr(t),r&&r.response&&(r.response.data=wr.call(t,t.transformResponse,r.response),r.response.headers=Oe.from(r.response.headers))),Promise.reject(r)})}const ua="1.7.4",uo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{uo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Di={};uo.transitional=function(e,n,r){function o(i,s){return"[Axios v"+ua+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(e===!1)throw new J(o(s," has been removed"+(n?" in "+n:"")),J.ERR_DEPRECATED);return n&&!Di[s]&&(Di[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,l):!0}};function kh(t,e,n){if(typeof t!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const l=t[i],a=l===void 0||s(l,i,t);if(a!==!0)throw new J("option "+i+" must be "+a,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const Ur={assertOptions:kh,validators:uo},it=Ur.validators;class yt{constructor(e){this.defaults=e,this.interceptors={request:new xi,response:new xi}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
422
+ `+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=wt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ur.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:Ur.assertOptions(o,{encode:it.function,serialize:it.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&y.merge(i.common,i[n.method]);i&&y.forEach(["delete","get","head","post","put","patch","common"],w=>{delete i[w]}),n.headers=Oe.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(B){typeof B.runWhen=="function"&&B.runWhen(n)===!1||(a=a&&B.synchronous,l.unshift(B.fulfilled,B.rejected))});const u=[];this.interceptors.response.forEach(function(B){u.push(B.fulfilled,B.rejected)});let d,m=0,g;if(!a){const w=[Bi.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,u),g=w.length,d=Promise.resolve(n);m<g;)d=d.then(w[m++],w[m++]);return d}g=l.length;let _=n;for(m=0;m<g;){const w=l[m++],B=l[m++];try{_=w(_)}catch(S){B.call(this,S);break}}try{d=Bi.call(this,_)}catch(w){return Promise.reject(w)}for(m=0,g=u.length;m<g;)d=d.then(u[m++],u[m++]);return d}getUri(e){e=wt(this.defaults,e);const n=ia(e.baseURL,e.url);return ea(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){yt.prototype[e]=function(n,r){return this.request(wt(r||{},{method:e,url:n,data:(r||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,l){return this.request(wt(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}yt.prototype[e]=n(),yt.prototype[e+"Form"]=n(!0)});class fo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,l){r.reason||(r.reason=new Bt(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new fo(function(o){e=o}),cancel:e}}}function Ch(t){return function(n){return t.apply(null,n)}}function Eh(t){return y.isObject(t)&&t.isAxiosError===!0}const Hr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hr).forEach(([t,e])=>{Hr[e]=t});function da(t){const e=new yt(t),n=js(yt.prototype.request,e);return y.extend(n,yt.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return da(wt(t,o))},n}const me=da(yn);me.Axios=yt;me.CanceledError=Bt;me.CancelToken=fo;me.isCancel=ra;me.VERSION=ua;me.toFormData=Xn;me.AxiosError=J;me.Cancel=me.CanceledError;me.all=function(e){return Promise.all(e)};me.spread=Ch;me.isAxiosError=Eh;me.mergeConfig=wt;me.AxiosHeaders=Oe;me.formToJSON=t=>na(y.isHTMLForm(t)?new FormData(t):t);me.getAdapter=ca.getAdapter;me.HttpStatusCode=Hr;me.default=me;class fa{constructor(e,n){Me(this,"keycloak");Me(this,"axios");Me(this,"fileName","silent-login.html");this.keycloak=e,this.axios=me.create(),this.axios.defaults.baseURL=n,this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async r=>{await this.SilentLogin();const o=this.keycloak.token;return r.headers.Authorization=`Bearer ${o}`,r})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",i=Array.isArray(e.errors);return n&&r&&o&&i?e:null}catch{return null}}HandleThen(e){const n=new $r,r=this.ParseAppResult(e.data);return r===null?(n.value=e.data,n):r.hasError?(r.errors.forEach(o=>n.WithError(o)),n.httpStatusCode=r.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var o;const n=new $r,r=this.ParseAppResult((o=e.response)==null?void 0:o.data);return r===null?n.WithError(e.message):(n.WithErrors(r.errors),n.httpStatusCode=r.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),r=o=>{if(document.body.removeChild(n),window.removeEventListener("message",r),o.origin!==location.origin){e(!1);return}const i=o.data.action,s=o.data.code,l=o.data.state,a=o.data.error;if(i!=="silent-login-iframe-result"||a==="login_required"||!s){e(!1);return}const u=new XMLHttpRequest;u.open("POST",this.tokenExchangeUrl,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.onreadystatechange=()=>{if(u.readyState===4){if(u.status===200){const d=JSON.parse(u.responseText);this.keycloak.setToken(d.access_token,null,d.id_token,new Date().getTime()),e(!0);return}e(!1)}},u.send(this.TokenExchangeParams(s,l))};window.addEventListener("message",r)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,r=localStorage.getItem(n);if(r)return localStorage.removeItem(n),JSON.parse(r).pkceCodeVerifier}TokenExchangeParams(e,n){let r=`code=${e}&grant_type=authorization_code`;return r+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,r+=`&redirect_uri=${this.silentLoginRedirectUrl}`,r+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,r}GenerateIframe(){const e=document.createElement("iframe");return e.src=this.keycloak.createLoginUrl({prompt:"none",redirectUri:this.silentLoginRedirectUrl})??"",document.body.appendChild(e),e}get silentLoginRedirectUrl(){return`${location.origin}/${this.fileName}`}get tokenExchangeUrl(){return`${this.keycloak.authServerUrl}/realms/${this.keycloak.realm}/protocol/openid-connect/token`}get isTokenExpired(){const e=this.keycloak.tokenParsed,n=e?e.exp:null;return!e||!n?!0:n-Math.ceil(new Date().getTime()/1e3)+(this.keycloak.timeSkew??0)<10}}const Ah=(t,e)=>new fa(t,e);Pr.SetInitialTheme();exports.AppResult=$r;exports.AxiosClient=fa;exports.SfButton=Ui;exports.SfContent=_d;exports.SfDrawer=Mi;exports.SfIcon=On;exports.SfLayout=wd;exports.SfMessage=Ld;exports.SfNavMenu=Om;exports.SfTabNavigation=Id;exports.SfTooltip=Vr;exports.StartAuthService=Zm;exports.UseAlertService=Qu;exports.UseAuthService=Xm;exports.UseAxiosClient=Ah;exports.UseConfirmService=Cs;exports.UseNavMenuService=jr;
423
+ //# sourceMappingURL=sf.prefeiturasp.vuecomponents.cjs.map