@xy-planning-network/trees 0.7.5-rc4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/trees.es.js +2 -1
- package/dist/trees.umd.js +1 -1
- package/package.json +1 -1
- package/src/lib-components/forms/InputLabel.vue +1 -1
- package/types/helpers/Slots.d.ts +0 -2
- package/types/lib-components/lists/StaticTable.vue.d.ts +0 -21
- package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +0 -27
- package/types/lib-components/lists/Table.vue.d.ts +0 -39
- package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +0 -18
- package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +0 -22
package/dist/trees.es.js
CHANGED
|
@@ -5017,7 +5017,8 @@ const Cu = /* @__PURE__ */ v("span", { class: "sr-only" }, "Open options", -1),
|
|
|
5017
5017
|
}
|
|
5018
5018
|
}), Fu = {
|
|
5019
5019
|
key: 0,
|
|
5020
|
-
class: "text-red-700/80"
|
|
5020
|
+
class: "text-red-700/80",
|
|
5021
|
+
"aria-hidden": ""
|
|
5021
5022
|
}, Ye = /* @__PURE__ */ L({
|
|
5022
5023
|
__name: "InputLabel",
|
|
5023
5024
|
props: {
|
package/dist/trees.umd.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return e=n[Symbol.iterator](),e.next.bind(e)}function de(n,r){if(n in r){for(var e=r[n],o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return typeof e=="function"?e.apply(void 0,a):e}var l=new Error('Tried to handle "'+n+'" but there is no handler defined. Only defined handlers are: '+Object.keys(r).map(function(s){return'"'+s+'"'}).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(l,de),l}var ue;(function(n){n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static"})(ue||(ue={}));var me;(function(n){n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden"})(me||(me={}));function K(n){var r=n.visible,e=r===void 0?!0:r,o=n.features,a=o===void 0?ue.None:o,i=De(n,["visible","features"]);if(e||a&ue.Static&&i.props.static)return zt(i);if(a&ue.RenderStrategy){var l,s,c=(l=i.props.unmount)==null||l?me.Unmount:me.Hidden;return de(c,(s={},s[me.Unmount]=function(){return null},s[me.Hidden]=function(){return zt(z({},i,{props:z({},i.props,{hidden:!0,style:{display:"none"}})}))},s))}return zt(i)}function zt(n){var r=n.props,e=n.attrs,o=n.slots,a=n.slot,i=n.name,l=Cl(r,["unmount","static"]),s=l.as,c=De(l,["as"]),d=o.default==null?void 0:o.default(a);if(s==="template"){if(Object.keys(c).length>0||Object.keys(e).length>0){var u=d??[],p=u[0],m=u.slice(1);if(!kl(p)||m.length>0)throw new Error(['Passing props on "template"!',"","The current component <"+i+' /> is rendering a "template".',"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(function(g){return" - "+g}).join(`
|
|
5
5
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(function(g){return" - "+g}).join(`
|
|
6
6
|
`)].join(`
|
|
7
|
-
`));return t.cloneVNode(p,c)}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(s,c,d)}function Cl(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=Te(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function kl(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var uo=Symbol("StackContext"),et;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(et||(et={}));function fo(){return t.inject(uo,function(){})}function El(n){var r=fo();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(et.AddElement,o),e(function(){return r(et.RemoveElement,o)}))})}function po(n){var r=fo();function e(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n==null||n.apply(void 0,a),r.apply(void 0,a)}t.provide(uo,e)}var mo=Symbol("ForcePortalRootContext");function _l(){return t.inject(mo,!1)}var ho=t.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs;return t.provide(mo,r.force),function(){var i=De(r,["force"]);return K({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function go(){var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}var jn=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=_l(),l=t.inject(bo,null),s=t.ref(i===!0||l===null?go():l.resolveTarget());t.watchEffect(function(){i||l!==null&&(s.value=l.resolveTarget())});var c=t.ref(null);return El(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&s.value===d&&s.value.children.length<=0){var u;(u=s.value.parentElement)==null||u.removeChild(s.value)}}),po(),function(){if(s.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:s.value},K({props:z({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),bo=Symbol("PortalGroupContext"),Dl=t.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup:function(r,e){var o=e.attrs,a=e.slots,i=t.reactive({resolveTarget:function(){return r.target}});return t.provide(bo,i),function(){var l=De(r,["target"]);return K({props:l,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),T;(function(n){n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab"})(T||(T={}));var Nl=0;function Sl(){return++Nl}function re(){return Sl()}function Me(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function Hn(n,r){for(var e=Te(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var Un=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?function(n){return n+":not([tabindex='-1']):not([style*='display: none'])"}:function(n){return n+":not([tabindex='-1'])"}).join(","),Y;(function(n){n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll"})(Y||(Y={}));var he;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(he||(he={}));var Yt;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(Yt||(Yt={}));function qt(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(Un))}var tt;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(tt||(tt={}));function vl(n,r){var e;return r===void 0&&(r=tt.Strict),n===document.body?!1:de(r,(e={},e[tt.Strict]=function(){return n.matches(Un)},e[tt.Loose]=function(){for(var o=n;o!==null;){if(o.matches(Un))return!0;o=o.parentElement}return!1},e))}function bt(n){n==null||n.focus({preventScroll:!0})}function Ne(n,r){var e=Array.isArray(n)?n:qt(n),o=document.activeElement,a=function(){if(r&(Y.First|Y.Next))return Yt.Next;if(r&(Y.Previous|Y.Last))return Yt.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(r&Y.First)return 0;if(r&Y.Previous)return Math.max(0,e.indexOf(o))-1;if(r&Y.Next)return Math.max(0,e.indexOf(o))+1;if(r&Y.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),l=r&Y.NoScroll?{preventScroll:!0}:{},s=0,c=e.length,d=void 0;do{var u;if(s>=c||s+c<=0)return he.Error;var p=i+s;if(r&Y.WrapAround)p=(p+c)%c;else{if(p<0)return he.Underflow;if(p>=c)return he.Overflow}d=e[p],(u=d)==null||u.focus(l),s+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),he.Success}function Vl(n,r,e){r===void 0&&(r=t.ref(!0)),e===void 0&&(e=t.ref({}));var o=t.ref(typeof window<"u"?document.activeElement:null),a=t.ref(null);function i(){if(r.value&&n.value.size===1){var s=e.value.initialFocus,c=document.activeElement;if(s){if(s===c)return}else if(Hn(n.value,c))return;if(o.value=c,s)bt(s);else{for(var d=!1,u=Te(n.value),p;!(p=u()).done;){var m=p.value,g=Ne(m,Y.First);if(g===he.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function l(){bt(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():l()}),t.onUnmounted(l),Me("keydown",function(s){if(r.value&&s.key===T.Tab&&document.activeElement&&n.value.size===1){s.preventDefault();for(var c=Te(n.value),d;!(d=c()).done;){var u=d.value,p=Ne(u,(s.shiftKey?Y.Previous:Y.Next)|Y.WrapAround);if(p===he.Success){a.value=document.activeElement;break}}}}),Me("focus",function(s){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=s.target;d&&d instanceof HTMLElement?Hn(n.value,d)?(a.value=d,bt(d)):(s.preventDefault(),s.stopPropagation(),bt(c)):bt(a.value)}}},!0)}var yo=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",nt=new Set,Fe=new Map;function wo(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function xo(n){var r=Fe.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function $l(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;nt.add(o);for(var a=Te(Fe.keys()),i;!(i=a()).done;){var l=i.value;l.contains(o)&&(xo(l),Fe.delete(l))}document.querySelectorAll(yo).forEach(function(s){if(s instanceof HTMLElement){for(var c=Te(nt),d;!(d=c()).done;){var u=d.value;if(s.contains(u))return}nt.size===1&&(Fe.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),wo(s))}}),e(function(){if(nt.delete(o),nt.size>0)document.querySelectorAll(yo).forEach(function(u){if(u instanceof HTMLElement&&!Fe.has(u)){for(var p=Te(nt),m;!(m=p()).done;){var g=m.value;if(u.contains(g))return}Fe.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),wo(u)}});else for(var s=Te(Fe.keys()),c;!(c=s()).done;){var d=c.value;xo(d),Fe.delete(d)}})}})}var Co=Symbol("DescriptionContext");function Bl(){var n=t.inject(Co,null);if(n===null)throw new Error("Missing parent");return n}function Wt(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?t.ref({}):e,a=r.name,i=a===void 0?"Description":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Co,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var ko=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Description":e,a=r.slot,i=a===void 0?t.ref({}):a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=z({},Object.entries(s).reduce(function(u,p){var m,g=p[0],b=p[1];return Object.assign(u,(m={},m[g]=t.unref(b),m))},{}),{id:this.id});return K({props:z({},c,d),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Bl(),e="headlessui-description-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function V(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var Eo=Symbol("Context"),te;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(te||(te={}));function Tl(){return rt()!==null}function rt(){return t.inject(Eo,null)}function Kt(n){t.provide(Eo,n)}var le;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(le||(le={}));var _o=Symbol("DialogContext");function yt(n){var r=t.inject(_o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,yt),e}return r}var Gt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Jt=t.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Gt},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=z({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===le.Open?!0:void 0,"aria-labelledby":this.titleId,"aria-describedby":this.describedby,onClick:this.handleClick}),o=this.$props,a=De(o,["open","initialFocus"]),i={open:this.dialogState===le.Open};return t.h(ho,{force:!0},function(){return t.h(jn,function(){return t.h(Dl,{target:r.dialogRef},function(){return t.h(ho,{force:!1},function(){return K({props:z({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:ue.RenderStrategy|ue.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=rt(),l=t.computed(function(){if(r.open===Gt&&i!==null){var k;return de(i.value,(k={},k[te.Open]=!0,k[te.Closed]=!1,k))}return r.open}),s=r.open!==Gt||i!==null;if(!s)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof l.value!="boolean")throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+(l.value===Gt?void 0:r.open));var c=t.computed(function(){return r.open?le.Open:le.Closed}),d=t.computed(function(){return i!==null?i.value===te.Open:c.value===le.Open}),u=t.ref(null),p=t.ref(c.value===le.Open);t.onUpdated(function(){p.value=c.value===le.Open});var m="headlessui-dialog-"+re(),g=t.computed(function(){return{initialFocus:r.initialFocus}});Vl(a,p,g),$l(u,p),po(function(k,D){var v;return de(k,(v={},v[et.AddElement]=function(){a.value.add(D)},v[et.RemoveElement]=function(){a.value.delete(D)},v))});var b=Wt({name:"DialogDescription",slot:t.computed(function(){return{open:l.value}})}),y=t.ref(null),x={titleId:y,dialogState:c,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(_o,x),Me("mousedown",function(k){var D=k.target;c.value===le.Open&&a.value.size===1&&(Hn(a.value,D)||(x.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),Me("keydown",function(k){k.key===T.Escape&&c.value===le.Open&&(a.value.size>1||(k.preventDefault(),k.stopPropagation(),x.close()))}),t.watchEffect(function(k){if(c.value===le.Open){var D=document.documentElement.style.overflow,v=document.documentElement.style.paddingRight,H=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=H+"px",k(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=v})}}),t.watchEffect(function(k){if(c.value===le.Open){var D=V(u);if(D){var v=new IntersectionObserver(function(H){for(var A=Te(H),R;!(R=A()).done;){var M=R.value;M.boundingClientRect.x===0&&M.boundingClientRect.y===0&&M.boundingClientRect.width===0&&M.boundingClientRect.height===0&&x.close()}});v.observe(D),k(function(){return v.disconnect()})}}}),{id:m,el:u,dialogRef:u,containers:a,dialogState:c,titleId:y,describedby:b,visible:d,open:l,handleClick:function(D){D.stopPropagation()}}}}),Xt=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=yt("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=yt("DialogOverlay"),e="headlessui-dialog-overlay-"+re();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),zn=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=yt("DialogTitle"),e={id:this.id},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=yt("DialogTitle"),e="headlessui-dialog-title-"+re();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function Do(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Zt(n,r){var e=t.ref(Do(n.value.type,n.value.as));return t.onMounted(function(){e.value=Do(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||V(r)&&V(r)instanceof HTMLButtonElement&&!((o=V(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var ne;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ne||(ne={}));var No=Symbol("DisclosureContext");function wt(n){var r=t.inject(No,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,wt),e}return r}var So=Symbol("DisclosurePanelContext");function Ml(){return t.inject(So,null)}var Ol=t.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-disclosure-button-"+re(),l="headlessui-disclosure-panel-"+re(),s=t.ref(r.defaultOpen?ne.Open:ne.Closed),c=t.ref(null),d=t.ref(null),u={buttonId:i,panelId:l,disclosureState:s,panel:c,button:d,toggleDisclosure:function(){var m;s.value=de(s.value,(m={},m[ne.Open]=ne.Closed,m[ne.Closed]=ne.Open,m))},closeDisclosure:function(){s.value!==ne.Closed&&(s.value=ne.Closed)},close:function(m){u.closeDisclosure();var g=function(){return m?m instanceof HTMLElement?m:m.value instanceof HTMLElement?V(m):V(u.button):V(u.button)}();g==null||g.focus()}};return t.provide(No,u),Kt(t.computed(function(){var p;return de(s.value,(p={},p[ne.Open]=te.Open,p[ne.Closed]=te.Closed,p))})),function(){var p=De(r,["defaultOpen"]),m={open:s.value===ne.Open,close:u.close};return K({props:p,slot:m,slots:o,attrs:a,name:"Disclosure"})}}}),Pl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=wt("DisclosureButton"),e={open:r.disclosureState.value===ne.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onClick:this.handleClick,onKeydown:this.handleKeyDown}:{id:this.id,ref:"el",type:this.type,"aria-expanded":this.$props.disabled?void 0:r.disclosureState.value===ne.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onClick:this.handleClick,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=wt("DisclosureButton"),i=Ml(),l=i===null?!1:i===a.panelId,s=t.ref(null);return l||t.watchEffect(function(){a.button.value=s.value}),{isWithinPanel:l,id:a.buttonId,el:s,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),s),handleClick:function(){if(!r.disabled)if(l){var d;a.toggleDisclosure(),(d=V(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var u;if(!r.disabled)if(l)switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(u=V(a.button))==null||u.focus();break}else switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case T.Space:d.preventDefault();break}}}}}),Al=t.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r=wt("DisclosurePanel"),e={open:r.disclosureState.value===ne.Open,close:r.close},o={id:this.id,ref:"el"};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=wt("DisclosurePanel");t.provide(So,r.panelId);var e=rt(),o=t.computed(function(){return e!==null?e.value===te.Open:r.disclosureState.value===ne.Open});return{id:r.panelId,el:r.panel,visible:o}}});function Ll(n){throw new Error("Unexpected object: "+n)}var Q;(function(n){n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing"})(Q||(Q={}));function Rl(n,r){var e=r.resolveItems();if(e.length<=0)return null;var o=r.resolveActiveIndex(),a=o??-1,i=function(){switch(n.focus){case Q.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case Q.Previous:{var l=e.slice().reverse().findIndex(function(c,d,u){return a!==-1&&u.length-d-1>=a?!1:!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case Q.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case Q.Last:{var s=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return s===-1?s:e.length-1-s}case Q.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case Q.Nothing:return null;default:Ll(n)}}();return i===-1?o:i}function vo(n){var r=n.container,e=n.accept,o=n.walk,a=n.enabled;t.watchEffect(function(){var i=r.value;if(i&&!(a!==void 0&&!a.value))for(var l=Object.assign(function(c){return e(c)},{acceptNode:e}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,l,!1);s.nextNode();)o(s.currentNode)})}var oe;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(oe||(oe={}));function Il(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var Vo=Symbol("MenuContext");function ot(n){var r=t.inject(Vo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ot),e}return r}var Yn=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(oe.Closed),l=t.ref(null),s=t.ref(null),c=t.ref([]),d=t.ref(""),u=t.ref(null),p={menuState:i,buttonRef:l,itemsRef:s,items:c,searchQuery:d,activeItemIndex:u,closeMenu:function(){i.value=oe.Closed,u.value=null},openMenu:function(){return i.value=oe.Open},goToItem:function(g,b){var y=Rl(g===Q.Specific?{focus:Q.Specific,id:b}:{focus:g},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return u.value},resolveId:function(k){return k.id},resolveDisabled:function(k){return k.dataRef.disabled}});d.value===""&&u.value===y||(d.value="",u.value=y)},search:function(g){d.value+=g.toLowerCase();var b=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});b===-1||b===u.value||(u.value=b)},clearSearch:function(){d.value=""},registerItem:function(g,b){c.value.push({id:g,dataRef:b})},unregisterItem:function(g){var b=c.value.slice(),y=u.value!==null?b[u.value]:null,x=b.findIndex(function(k){return k.id===g});x!==-1&&b.splice(x,1),c.value=b,u.value=function(){return x===u.value||y===null?null:b.indexOf(y)}()}};return Me("mousedown",function(m){var g,b,y,x=m.target,k=document.activeElement;i.value===oe.Open&&((g=V(l))!=null&&g.contains(x)||((b=V(s))!=null&&b.contains(x)||p.closeMenu(),!(k!==document.body&&(k!=null&&k.contains(x)))&&(m.defaultPrevented||(y=V(l))==null||y.focus({preventScroll:!0}))))}),t.provide(Vo,p),Kt(t.computed(function(){var m;return de(i.value,(m={},m[oe.Open]=te.Open,m[oe.Closed]=te.Closed,m))})),function(){var m={open:i.value===oe.Open};return K({props:r,slot:m,slots:o,attrs:a,name:"Menu"})}}}),qn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=ot("MenuButton"),o={open:e.menuState.value===oe.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=V(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===oe.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=ot("MenuButton"),i="headlessui-menu-button-"+re();function l(d){switch(d.key){case T.Space:case T.Enter:case T.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.First)});break;case T.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.Last)});break}}function s(d){switch(d.key){case T.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===oe.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=V(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),Il(function(){var u;return(u=V(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:l,handleKeyUp:s,handleClick:c}}}),Wn=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r,e,o=ot("MenuItems"),a={open:o.menuState.value===oe.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=V(o.buttonRef))==null?void 0:e.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},l=this.$props;return K({props:z({},l,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=ot("MenuItems"),e="headlessui-menu-items-"+re(),o=t.ref(null);vo({container:t.computed(function(){return V(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===oe.Open}),accept:function(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(d){d.setAttribute("role","none")}});function a(c){switch(o.value&&clearTimeout(o.value),c.key){case T.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case T.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,u=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(u))==null||d.click()}r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Next);case T.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Previous);case T.Home:case T.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.First);case T.End:case T.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Last);case T.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function i(c){switch(c.key){case T.Space:c.preventDefault();break}}var l=rt(),s=t.computed(function(){return l!==null?l.value===te.Open:r.menuState.value===oe.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Kn=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i=ot("MenuItem"),l="headlessui-menu-item-"+re(),s=t.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===l:!1}),c=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var g,b,y=(g=document.getElementById(l))==null||(b=g.textContent)==null?void 0:b.toLowerCase().trim();y!==void 0&&(c.value.textValue=y)}),t.onMounted(function(){return i.registerItem(l,c)}),t.onUnmounted(function(){return i.unregisterItem(l)}),t.watchEffect(function(){i.menuState.value===oe.Open&&s.value&&t.nextTick(function(){var g;return(g=document.getElementById(l))==null||g.scrollIntoView==null?void 0:g.scrollIntoView({block:"nearest"})})});function d(g){if(r.disabled)return g.preventDefault();i.closeMenu(),t.nextTick(function(){var b;return(b=V(i.buttonRef))==null?void 0:b.focus({preventScroll:!0})})}function u(){if(r.disabled)return i.goToItem(Q.Nothing);i.goToItem(Q.Specific,l)}function p(){r.disabled||s.value||i.goToItem(Q.Specific,l)}function m(){r.disabled||s.value&&i.goToItem(Q.Nothing)}return function(){var g=r.disabled,b={active:s.value,disabled:g},y={id:l,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,onClick:d,onFocus:u,onPointermove:p,onMousemove:p,onPointerleave:m,onMouseleave:m};return K({props:z({},r,y),slot:b,attrs:a,slots:o,name:"MenuItem"})}}}),q;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(q||(q={}));var $o=Symbol("PopoverContext");function xt(n){var r=t.inject($o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+Mo.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,xt),e}return r}var Fl=Symbol("PopoverGroupContext");function Bo(){return t.inject(Fl,null)}var To=Symbol("PopoverPanelContext");function jl(){return t.inject(To,null)}var Mo=t.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-popover-button-"+re(),l="headlessui-popover-panel-"+re(),s=t.ref(q.Closed),c=t.ref(null),d=t.ref(null),u={popoverState:s,buttonId:i,panelId:l,panel:d,button:c,togglePopover:function(){var x;s.value=de(s.value,(x={},x[q.Open]=q.Closed,x[q.Closed]=q.Open,x))},closePopover:function(){s.value!==q.Closed&&(s.value=q.Closed)},close:function(x){u.closePopover();var k=function(){return x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?V(x):V(u.button):V(u.button)}();k==null||k.focus()}};t.provide($o,u),Kt(t.computed(function(){var y;return de(s.value,(y={},y[q.Open]=te.Open,y[q.Closed]=te.Closed,y))}));var p={buttonId:i,panelId:l,close:function(){u.closePopover()}},m=Bo(),g=m==null?void 0:m.registerPopover;function b(){var y,x,k;return(y=m==null?void 0:m.isFocusWithinPopoverGroup())!=null?y:((x=V(c))==null?void 0:x.contains(document.activeElement))||((k=V(d))==null?void 0:k.contains(document.activeElement))}return t.watchEffect(function(){return g==null?void 0:g(p)}),Me("focus",function(){s.value===q.Open&&(b()||c&&d&&u.closePopover())},!0),Me("mousedown",function(y){var x,k,D=y.target;if(s.value===q.Open&&!((x=V(c))!=null&&x.contains(D))&&!((k=V(d))!=null&&k.contains(D))&&(u.closePopover(),!vl(D,tt.Loose))){var v;y.preventDefault(),(v=V(c))==null||v.focus()}}),function(){var y={open:s.value===q.Open,close:u.close};return K({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),Hl=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=xt("PopoverButton"),e={open:r.popoverState.value===q.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onKeydown:this.handleKeyDown,onClick:this.handleClick}:{ref:"el",id:r.buttonId,type:this.type,"aria-expanded":this.$props.disabled?void 0:r.popoverState.value===q.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=xt("PopoverButton"),i=Bo(),l=i==null?void 0:i.closeOthers,s=jl(),c=s===null?!1:s===a.panelId,d=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);Me("focus",function(){u.value=d.value,d.value=document.activeElement},!0);var p=t.ref(null);return c||t.watchEffect(function(){a.button.value=p.value}),{isWithinPanel:c,el:p,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),p),handleKeyDown:function(g){var b,y;if(c){if(a.popoverState.value===q.Closed)return;switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.closePopover(),(b=V(a.button))==null||b.focus();break}}else switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.popoverState.value===q.Closed&&(l==null||l(a.buttonId)),a.togglePopover();break;case T.Escape:if(a.popoverState.value!==q.Open)return l==null?void 0:l(a.buttonId);if(!V(a.button)||!((y=V(a.button))!=null&&y.contains(document.activeElement)))return;g.preventDefault(),g.stopPropagation(),a.closePopover();break;case T.Tab:if(a.popoverState.value!==q.Open||!a.panel||!a.button)return;if(g.shiftKey){var x,k;if(!u.value||(x=V(a.button))!=null&&x.contains(u.value)||(k=V(a.panel))!=null&&k.contains(u.value))return;var D=qt(),v=D.indexOf(u.value),H=D.indexOf(V(a.button));if(H>v)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),Y.Last)}else g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),Y.First);break}},handleKeyUp:function(g){var b,y;if(!c&&(g.key===T.Space&&g.preventDefault(),a.popoverState.value===q.Open&&a.panel&&a.button))switch(g.key){case T.Tab:if(!u.value||(b=V(a.button))!=null&&b.contains(u.value)||(y=V(a.panel))!=null&&y.contains(u.value))return;var x=qt(),k=x.indexOf(u.value),D=x.indexOf(V(a.button));if(D>k)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),Y.Last);break}},handleClick:function(){if(!r.disabled)if(c){var g;a.closePopover(),(g=V(a.button))==null||g.focus()}else{var b;a.popoverState.value===q.Closed&&(l==null||l(a.buttonId)),(b=V(a.button))==null||b.focus(),a.togglePopover()}}}}}),Ul=t.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1}},render:function(){var r=xt("PopoverPanel"),e={open:r.popoverState.value===q.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=xt("PopoverPanel");t.provide(To,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var l;if(e&&o.popoverState.value===q.Open&&o.panel){var s=document.activeElement;(l=V(o.panel))!=null&&l.contains(s)||Ne(V(o.panel),Y.First)}}),Me("keydown",function(l){var s;if(o.popoverState.value===q.Open&&V(o.panel)&&l.key===T.Tab&&document.activeElement&&(s=V(o.panel))!=null&&s.contains(document.activeElement)){l.preventDefault();var c=Ne(V(o.panel),l.shiftKey?Y.Previous:Y.Next);if(c===he.Underflow){var d;return(d=V(o.button))==null?void 0:d.focus()}else if(c===he.Overflow){if(!V(o.button))return;var u=qt(),p=u.indexOf(V(o.button)),m=u.splice(p+1).filter(function(g){var b;return!((b=V(o.panel))!=null&&b.contains(g))});Ne(m,Y.First)===he.Error&&Ne(document.body,Y.First)}}}),Me("focus",function(){var l;e&&o.popoverState.value===q.Open&&V(o.panel)&&((l=V(o.panel))!=null&&l.contains(document.activeElement)||o.closePopover())},!0);var a=rt(),i=t.computed(function(){return a!==null?a.value===te.Open:o.popoverState.value===q.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(s){var c,d;switch(s.key){case T.Escape:if(o.popoverState.value!==q.Open||!V(o.panel)||!((c=V(o.panel))!=null&&c.contains(document.activeElement)))return;s.preventDefault(),s.stopPropagation(),o.closePopover(),(d=V(o.button))==null||d.focus();break}},visible:i}}}),Oo=Symbol("LabelContext");function Po(){var n=t.inject(Oo,null);if(n===null){var r=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Po),r}return n}function Gn(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?{}:e,a=r.name,i=a===void 0?"Label":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Oo,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var Ao=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Label":e,a=r.slot,i=a===void 0?{}:a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=c.passive,u=De(c,["passive"]),p=z({},Object.entries(s).reduce(function(g,b){var y,x=b[0],k=b[1];return Object.assign(g,(y={},y[x]=t.unref(k),y))},{}),{id:this.id}),m=z({},u,p);return d&&delete m.onClick,K({props:m,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Po(),e="headlessui-label-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),Lo=Symbol("RadioGroupContext");function Ro(n){var r=t.inject(Lo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ro),e}return r}var zl=t.defineComponent({name:"RadioGroup",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},render:function(){var r=this.$props,e=De(r,["modelValue","disabled"]),o={ref:"el",id:this.id,role:"radiogroup","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onKeydown:this.handleKeyDown};return K({props:z({},e,o),slot:{},attrs:this.$attrs,slots:this.$slots,name:"RadioGroup"})},setup:function(r,e){var o=e.emit,a=t.ref(null),i=t.ref([]),l=Gn({name:"RadioGroupLabel"}),s=Wt({name:"RadioGroupDescription"}),c=t.computed(function(){return r.modelValue}),d={options:i,value:c,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return i.value.find(function(m){return!m.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(m){return t.toRaw(m.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(g){var b;if(r.disabled||c.value===g)return!1;var y=(b=i.value.find(function(x){return t.toRaw(x.propsRef.value)===t.toRaw(g)}))==null?void 0:b.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",g),!0)},registerOption:function(g){var b,y=Array.from((b=a.value)==null?void 0:b.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(x,k,D){var v;return Object.assign(x,(v={},v[k.id]=D,v))},{});i.value.push(g),i.value.sort(function(x,k){return y[x.id]-y[k.id]})},unregisterOption:function(g){var b=i.value.findIndex(function(y){return y.id===g});b!==-1&&i.value.splice(b,1)}};t.provide(Lo,d),vo({container:t.computed(function(){return V(a)}),accept:function(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(g){g.setAttribute("role","none")}});function u(m){if(a.value&&a.value.contains(m.target)){var g=i.value.filter(function(v){return v.propsRef.disabled===!1}).map(function(v){return v.element});switch(m.key){case T.ArrowLeft:case T.ArrowUp:{m.preventDefault(),m.stopPropagation();var b=Ne(g,Y.Previous|Y.WrapAround);if(b===he.Success){var y=i.value.find(function(v){return v.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case T.ArrowRight:case T.ArrowDown:{m.preventDefault(),m.stopPropagation();var x=Ne(g,Y.Next|Y.WrapAround);if(x===he.Success){var k=i.value.find(function(v){return v.element===document.activeElement});k&&d.change(k.propsRef.value)}}break;case T.Space:{m.preventDefault(),m.stopPropagation();var D=i.value.find(function(v){return v.element===document.activeElement});D&&d.change(D.propsRef.value)}break}}}var p="headlessui-radiogroup-"+re();return{id:p,labelledby:l,describedby:s,el:a,handleKeyDown:u}}}),qe;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(qe||(qe={}));var Yl=t.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},render:function(){var r=this.$props,e=De(r,["value","disabled"]),o={checked:this.checked,disabled:this.disabled,active:!!(this.state&qe.Active)},a={id:this.id,ref:"el",role:"radio","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,"aria-disabled":this.disabled?!0:void 0,tabIndex:this.tabIndex,onClick:this.disabled?void 0:this.handleClick,onFocus:this.disabled?void 0:this.handleFocus,onBlur:this.disabled?void 0:this.handleBlur};return K({props:z({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=Ro("RadioGroupOption"),o="headlessui-radiogroup-option-"+re(),a=Gn({name:"RadioGroupLabel"}),i=Wt({name:"RadioGroupDescription"}),l=t.ref(null),s=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(qe.Empty);t.onMounted(function(){return e.registerOption({id:o,element:l,propsRef:s})}),t.onUnmounted(function(){return e.unregisterOption(o)});var d=t.computed(function(){var m;return((m=e.firstOption.value)==null?void 0:m.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),p=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:l,labelledby:a,describedby:i,state:c,disabled:u,checked:p,tabIndex:t.computed(function(){return u.value?-1:p.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var g;e.change(r.value)&&(c.value|=qe.Active,(g=l.value)==null||g.focus())},handleFocus:function(){c.value|=qe.Active},handleBlur:function(){c.value&=~qe.Active}}}}),Io=Ao,Jn=ko,Fo=Symbol("GroupContext"),ql=t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(null),l=Gn({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),s=Wt({name:"SwitchDescription"}),c={switchRef:i,labelledby:l,describedby:s};return t.provide(Fo,c),function(){return K({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),Wl=t.defineComponent({name:"Switch",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var r={checked:this.$props.modelValue},e={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return K({props:z({},this.$props,e),slot:r,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(r,e){var o=e.emit,a=e.attrs,i=t.inject(Fo,null),l="headlessui-switch-"+re();function s(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=i===null?c:i.switchRef;return{id:l,el:d,type:Zt(t.computed(function(){return{as:r.as,type:a.type}}),d),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(p){p.preventDefault(),s()},handleKeyUp:function(p){p.key!==T.Tab&&p.preventDefault(),p.key===T.Space&&s()},handleKeyPress:function(p){p.preventDefault()}}}}),Kl=Ao,Gl=ko;function Jl(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function jo(){var n=[],r={requestAnimationFrame:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=requestAnimationFrame.apply(void 0,arguments);r.add(function(){return cancelAnimationFrame(e)})}),nextFrame:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r.requestAnimationFrame(function(){r.requestAnimationFrame.apply(r,a)})},setTimeout:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=setTimeout.apply(void 0,arguments);r.add(function(){return clearTimeout(e)})}),add:function(o){n.push(o)},dispose:function(){for(var o=Te(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function Xn(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).add.apply(r,o)}function Qt(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).remove.apply(r,o)}var je;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(je||(je={}));function Xl(n,r){var e=jo();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,l=[a,i].map(function(d){var u=d.split(",").filter(Boolean).map(function(g){return g.includes("ms")?parseFloat(g):parseFloat(g)*1e3}).sort(function(g,b){return b-g}),p=u[0],m=p===void 0?0:p;return m}),s=l[0],c=l[1];return s!==0?e.setTimeout(function(){return r(je.Finished)},s+c):r(je.Finished),e.add(function(){return r(je.Cancelled)}),e.dispose}function Ho(n,r,e,o,a,i){var l=jo(),s=i!==void 0?Jl(i):function(){};return Qt.apply(void 0,[n].concat(a)),Xn.apply(void 0,[n].concat(r,e)),l.nextFrame(function(){Qt.apply(void 0,[n].concat(e)),Xn.apply(void 0,[n].concat(o)),l.add(Xl(n,function(c){return Qt.apply(void 0,[n].concat(o,r)),Xn.apply(void 0,[n].concat(a)),s(c)}))}),l.add(function(){return Qt.apply(void 0,[n].concat(r,e,o,a))}),l.add(function(){return s(je.Cancelled)}),l.dispose}function We(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Zn=Symbol("TransitionContext"),G;(function(n){n.Visible="visible",n.Hidden="hidden"})(G||(G={}));function Zl(){return t.inject(Zn,null)!==null}function Ql(){var n=t.inject(Zn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function es(){var n=t.inject(Qn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Qn=Symbol("NestingContext");function en(n){return"children"in n?en(n.children):n.value.filter(function(r){var e=r.state;return e===G.Visible}).length>0}function Uo(n){var r=t.ref([]),e=t.ref(!1);t.onMounted(function(){return e.value=!0}),t.onUnmounted(function(){return e.value=!1});function o(i,l){var s;l===void 0&&(l=me.Hidden);var c=r.value.findIndex(function(d){var u=d.id;return u===i});c!==-1&&(de(l,(s={},s[me.Unmount]=function(){r.value.splice(c,1)},s[me.Hidden]=function(){r.value[c].state=G.Hidden},s)),!en(r)&&e.value&&(n==null||n()))}function a(i){var l=r.value.find(function(s){var c=s.id;return c===i});return l?l.state!==G.Visible&&(l.state=G.Visible):r.value.push({id:i,state:G.Visible}),function(){return o(i,me.Unmount)}}return{children:r,register:a,unregister:o}}var zo=ue.RenderStrategy,Le=t.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this;if(this.renderAsRoot)return t.h(Ct,z({},this.$props,{onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}}),this.$slots);var e=this.$props,o=De(e,["appear","show","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),a={ref:"el"},i=o;return K({props:z({},i,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:zo,visible:this.state===G.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!Zl()&&Tl())return{renderAsRoot:!0};var a=t.ref(null),i=t.ref(G.Visible),l=t.computed(function(){return r.unmount?me.Unmount:me.Hidden}),s=Ql(),c=s.show,d=s.appear,u=es(),p=u.register,m=u.unregister,g={value:!0},b=re(),y={value:!1},x=Uo(function(){y.value||(i.value=G.Hidden,m(b),o("afterLeave"))});t.onMounted(function(){var I=p(b);t.onUnmounted(I)}),t.watchEffect(function(){var I;if(l.value===me.Hidden&&b){if(c&&i.value!==G.Visible){i.value=G.Visible;return}de(i.value,(I={},I[G.Hidden]=function(){return m(b)},I[G.Visible]=function(){return p(b)},I))}});var k=We(r.enter),D=We(r.enterFrom),v=We(r.enterTo),H=We(r.entered),A=We(r.leave),R=We(r.leaveFrom),M=We(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===G.Visible){var I=V(a),F=I instanceof Comment&&I.data==="";if(F)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function U(I){var F=g.value&&!d.value,X=V(a);!X||!(X instanceof HTMLElement)||F||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),I(c.value?Ho(X,k,D,v,H,function(ae){y.value=!1,ae===je.Finished&&o("afterEnter")}):Ho(X,A,R,M,H,function(ae){y.value=!1,ae===je.Finished&&(en(x)||(i.value=G.Hidden,m(b),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(I,F,X){U(X),g.value=!1},{immediate:!0})}),t.provide(Qn,x),Kt(t.computed(function(){var I;return de(i.value,(I={},I[G.Visible]=te.Open,I[G.Hidden]=te.Closed,I))})),{el:a,renderAsRoot:!1,state:i}}}),Ct=t.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this,e=this.$props,o=e.unmount,a=De(e,["show","appear","unmount"]),i={unmount:o};return K({props:z({},i,{as:"template"}),slot:{},slots:z({},this.$slots,{default:function(){return[t.h(Le,z({onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}},r.$attrs,i,a),r.$slots.default)]}}),attrs:{},features:zo,visible:this.state===G.Visible,name:"Transition"})},setup:function(r){var e=rt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return de(e.value,(c={},c[te.Open]=!0,c[te.Closed]=!1,c))}return r.show});t.watchEffect(function(){if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});var a=t.ref(o.value?G.Visible:G.Hidden),i=Uo(function(){a.value=G.Hidden}),l={value:!0},s={show:o,appear:t.computed(function(){return r.appear||!l.value})};return t.onMounted(function(){t.watchEffect(function(){l.value=!1,o.value?a.value=G.Visible:en(i)||(a.value=G.Hidden)})}),t.provide(Qn,i),t.provide(Zn,s),{state:a,show:o}}});function Yo(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function ts(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"})])}function ns(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})])}function rs(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function os(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function as(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])}function is(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const qo=n=>{const r=t.ref(n),e=t.computed(()=>o.value.length>0),o=t.computed(()=>r.value.map(a=>({...a,disabled:a.disabled!==void 0?typeof a.disabled=="boolean"?a.disabled:a.disabled():!1,show:a.show!==void 0?typeof a.show=="boolean"?a.show:a.show():!0})).filter(a=>a.show));return{actions:o,hasActions:e}};function He(n){return n.split("-")[1]}function Wo(n){return n==="y"?"height":"width"}function at(n){return n.split("-")[0]}function tn(n){return["top","bottom"].includes(at(n))?"x":"y"}function Ko(n,r,e){let{reference:o,floating:a}=n;const i=o.x+o.width/2-a.width/2,l=o.y+o.height/2-a.height/2,s=tn(r),c=Wo(s),d=o[c]/2-a[c]/2,u=s==="x";let p;switch(at(r)){case"top":p={x:i,y:o.y-a.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:l};break;case"left":p={x:o.x-a.width,y:l};break;default:p={x:o.x,y:o.y}}switch(He(r)){case"start":p[s]-=d*(e&&u?-1:1);break;case"end":p[s]+=d*(e&&u?-1:1)}return p}const ls=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let d=await l.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:p}=Ko(d,o,c),m=o,g={},b=0;for(let y=0;y<s.length;y++){const{name:x,fn:k}=s[y],{x:D,y:v,data:H,reset:A}=await k({x:u,y:p,initialPlacement:o,placement:m,strategy:a,middlewareData:g,rects:d,platform:l,elements:{reference:n,floating:r}});u=D??u,p=v??p,g={...g,[x]:{...g[x],...H}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(d=A.rects===!0?await l.getElementRects({reference:n,floating:r,strategy:a}):A.rects),{x:u,y:p}=Ko(d,m,c)),y=-1)}return{x:u,y:p,placement:m,strategy:a,middlewareData:g}};function nn(n,r){return typeof n=="function"?n(r):n}function ss(n){return typeof n!="number"?function(r){return{top:0,right:0,bottom:0,left:0,...r}}(n):{top:n,right:n,bottom:n,left:n}}function rn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Go(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:c}=n,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=nn(r,n),b=ss(g),y=s[m?p==="floating"?"reference":"floating":p],x=rn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(y)))==null||e?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:c})),k=p==="floating"?{...l.floating,x:o,y:a}:l.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),v=await(i.isElement==null?void 0:i.isElement(D))&&await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1},H=rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:D,strategy:c}):k);return{top:(x.top-H.top+b.top)/v.y,bottom:(H.bottom-x.bottom+b.bottom)/v.y,left:(x.left-H.left+b.left)/v.x,right:(H.right-x.right+b.right)/v.x}}const cs=Math.min,ds=Math.max;function Jo(n,r,e){return ds(n,cs(r,e))}const us=["top","right","bottom","left"],Xo=us.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),fs={left:"right",right:"left",bottom:"top",top:"bottom"};function Zo(n){return n.replace(/left|right|bottom|top/g,r=>fs[r])}function ps(n,r,e){e===void 0&&(e=!1);const o=He(n),a=tn(n),i=Wo(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Zo(l)),{main:l,cross:Zo(l)}}const ms={start:"end",end:"start"};function hs(n){return n.replace(/start|end/g,r=>ms[r])}const gs=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(r){var e,o,a;const{rects:i,middlewareData:l,placement:s,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:p,allowedPlacements:m=Xo,autoAlignment:g=!0,...b}=nn(n,r),y=p!==void 0||m===Xo?function(F,X,ae){return(F?[...ae.filter(pe=>He(pe)===F),...ae.filter(pe=>He(pe)!==F)]:ae.filter(pe=>at(pe)===pe)).filter(pe=>!F||He(pe)===F||!!X&&hs(pe)!==pe)}(p||null,g,m):m,x=await Go(r,b),k=((e=l.autoPlacement)==null?void 0:e.index)||0,D=y[k];if(D==null)return{};const{main:v,cross:H}=ps(D,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(s!==D)return{reset:{placement:y[0]}};const A=[x[at(D)],x[v],x[H]],R=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:A}],M=y[k+1];if(M)return{data:{index:k+1,overflows:R},reset:{placement:M}};const U=R.map(F=>{const X=He(F.placement);return[F.placement,X&&u?F.overflows.slice(0,2).reduce((ae,pe)=>ae+pe,0):F.overflows[0],F.overflows]}).sort((F,X)=>F[1]-X[1]),I=((a=U.filter(F=>F[2].slice(0,He(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:a[0])||U[0][0];return I!==s?{data:{index:k+1,overflows:R},reset:{placement:I}}:{}}}},bs=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){const{x:e,y:o}=r,a=await async function(i,l){const{placement:s,platform:c,elements:d}=i,u=await(c.isRTL==null?void 0:c.isRTL(d.floating)),p=at(s),m=He(s),g=tn(s)==="x",b=["left","top"].includes(p)?-1:1,y=u&&g?-1:1,x=nn(l,i);let{mainAxis:k,crossAxis:D,alignmentAxis:v}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...x};return m&&typeof v=="number"&&(D=m==="end"?-1*v:v),g?{x:D*y,y:k*b}:{x:k*b,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function ys(n){return n==="x"?"y":"x"}const ws=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:k,y:D}=x;return{x:k,y:D}}},...c}=nn(n,r),d={x:e,y:o},u=await Go(r,c),p=tn(at(a)),m=ys(p);let g=d[p],b=d[m];if(i){const x=p==="y"?"bottom":"right";g=Jo(g+u[p==="y"?"top":"left"],g,g-u[x])}if(l){const x=m==="y"?"bottom":"right";b=Jo(b+u[m==="y"?"top":"left"],b,b-u[x])}const y=s.fn({...r,[p]:g,[m]:b});return{...y,data:{x:y.x-e,y:y.y-o}}}}};function Ce(n){var r;return((r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Se(n){return Ce(n).getComputedStyle(n)}function Qo(n){return n instanceof Ce(n).Node}function Ue(n){return Qo(n)?(n.nodeName||"").toLowerCase():""}function ve(n){return n instanceof Ce(n).HTMLElement}function ge(n){return n instanceof Ce(n).Element}function ea(n){return typeof ShadowRoot>"u"?!1:n instanceof Ce(n).ShadowRoot||n instanceof ShadowRoot}function kt(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Se(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function xs(n){return["table","td","th"].includes(Ue(n))}function er(n){const r=tr(),e=Se(n);return e.transform!=="none"||e.perspective!=="none"||!r&&!!e.backdropFilter&&e.backdropFilter!=="none"||!r&&!!e.filter&&e.filter!=="none"||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function tr(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function on(n){return["html","body","#document"].includes(Ue(n))}const ta=Math.min,Et=Math.max,an=Math.round;function na(n){const r=Se(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=ve(n),i=a?n.offsetWidth:e,l=a?n.offsetHeight:o,s=an(e)!==i||an(o)!==l;return s&&(e=i,o=l),{width:e,height:o,fallback:s}}function ra(n){return ge(n)?n:n.contextElement}const oa={x:1,y:1};function it(n){const r=ra(n);if(!ve(r))return oa;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=na(r);let l=(i?an(e.width):e.width)/o,s=(i?an(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const aa={x:0,y:0};function ia(n,r,e){var o,a;if(r===void 0&&(r=!0),!tr())return aa;const i=n?Ce(n):window;return!e||r&&e!==i?aa:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function Ke(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=ra(n);let l=oa;r&&(o?ge(o)&&(l=it(o)):l=it(n));const s=ia(i,e,o);let c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,u=a.width/l.x,p=a.height/l.y;if(i){const m=Ce(i),g=o&&ge(o)?Ce(o):o;let b=m.frameElement;for(;b&&o&&g!==m;){const y=it(b),x=b.getBoundingClientRect(),k=getComputedStyle(b);x.x+=(b.clientLeft+parseFloat(k.paddingLeft))*y.x,x.y+=(b.clientTop+parseFloat(k.paddingTop))*y.y,c*=y.x,d*=y.y,u*=y.x,p*=y.y,c+=x.x,d+=x.y,b=Ce(b).frameElement}}return rn({width:u,height:p,x:c,y:d})}function ze(n){return((Qo(n)?n.ownerDocument:n.document)||window.document).documentElement}function ln(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function la(n){return Ke(ze(n)).left+ln(n).scrollLeft}function lt(n){if(Ue(n)==="html")return n;const r=n.assignedSlot||n.parentNode||ea(n)&&n.host||ze(n);return ea(r)?r.host:r}function sa(n){const r=lt(n);return on(r)?r.ownerDocument.body:ve(r)&&kt(r)?r:sa(r)}function _t(n,r){var e;r===void 0&&(r=[]);const o=sa(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=Ce(o);return a?r.concat(i,i.visualViewport||[],kt(o)?o:[]):r.concat(o,_t(o))}function ca(n,r,e){let o;if(r==="viewport")o=function(a,i){const l=Ce(a),s=ze(a),c=l.visualViewport;let d=s.clientWidth,u=s.clientHeight,p=0,m=0;if(c){d=c.width,u=c.height;const g=tr();(!g||g&&i==="fixed")&&(p=c.offsetLeft,m=c.offsetTop)}return{width:d,height:u,x:p,y:m}}(n,e);else if(r==="document")o=function(a){const i=ze(a),l=ln(a),s=a.ownerDocument.body,c=Et(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=Et(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let u=-l.scrollLeft+la(a);const p=-l.scrollTop;return Se(s).direction==="rtl"&&(u+=Et(i.clientWidth,s.clientWidth)-c),{width:c,height:d,x:u,y:p}}(ze(n));else if(ge(r))o=function(a,i){const l=Ke(a,!0,i==="fixed"),s=l.top+a.clientTop,c=l.left+a.clientLeft,d=ve(a)?it(a):{x:1,y:1};return{width:a.clientWidth*d.x,height:a.clientHeight*d.y,x:c*d.x,y:s*d.y}}(r,e);else{const a=ia(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return rn(o)}function da(n,r){const e=lt(n);return!(e===r||!ge(e)||on(e))&&(Se(e).position==="fixed"||da(e,r))}function ua(n,r){return ve(n)&&Se(n).position!=="fixed"?r?r(n):n.offsetParent:null}function fa(n,r){const e=Ce(n);if(!ve(n))return e;let o=ua(n,r);for(;o&&xs(o)&&Se(o).position==="static";)o=ua(o,r);return o&&(Ue(o)==="html"||Ue(o)==="body"&&Se(o).position==="static"&&!er(o))?e:o||function(a){let i=lt(a);for(;ve(i)&&!on(i);){if(er(i))return i;i=lt(i)}return null}(n)||e}function Cs(n,r,e){const o=ve(r),a=ze(r),i=e==="fixed",l=Ke(n,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if((Ue(r)!=="body"||kt(a))&&(s=ln(r)),ve(r)){const d=Ke(r,!0,i,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=la(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}const ks={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(d,u){const p=u.get(d);if(p)return p;let m=_t(d).filter(x=>ge(x)&&Ue(x)!=="body"),g=null;const b=Se(d).position==="fixed";let y=b?lt(d):d;for(;ge(y)&&!on(y);){const x=Se(y),k=er(y);k||x.position!=="fixed"||(g=null),(b?!k&&!g:!k&&x.position==="static"&&g&&["absolute","fixed"].includes(g.position)||kt(y)&&!k&&da(d,y))?m=m.filter(D=>D!==y):g=x,y=lt(y)}return u.set(d,m),m}(r,this._c):[].concat(e),l=[...i,o],s=l[0],c=l.reduce((d,u)=>{const p=ca(r,u,a);return d.top=Et(p.top,d.top),d.right=ta(p.right,d.right),d.bottom=ta(p.bottom,d.bottom),d.left=Et(p.left,d.left),d},ca(r,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=ve(e),i=ze(e);if(e===i)return r;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((Ue(e)!=="body"||kt(i))&&(l=ln(e)),ve(e))){const d=Ke(e);s=it(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-l.scrollLeft*s.x+c.x,y:r.y*s.y-l.scrollTop*s.y+c.y}},isElement:ge,getDimensions:function(n){return na(n)},getOffsetParent:fa,getDocumentElement:ze,getScale:it,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||fa,i=this.getDimensions;return{reference:Cs(r,await a(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Se(n).direction==="rtl"};function pa(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:s=!1}=o,c=a||i?[...ge(n)?_t(n):n.contextElement?_t(n.contextElement):[],..._t(r)]:[];c.forEach(m=>{const g=!ge(m)&&m.toString().includes("V");!a||s&&!g||m.addEventListener("scroll",e,{passive:!0}),i&&m.addEventListener("resize",e)});let d,u=null;l&&(u=new ResizeObserver(()=>{e()}),ge(n)&&!s&&u.observe(n),ge(n)||!n.contextElement||s||u.observe(n.contextElement),u.observe(r));let p=s?Ke(n):null;return s&&function m(){const g=Ke(n);!p||g.x===p.x&&g.y===p.y&&g.width===p.width&&g.height===p.height||e(),p=g,d=requestAnimationFrame(m)}(),e(),()=>{var m;c.forEach(g=>{a&&g.removeEventListener("scroll",e),i&&g.removeEventListener("resize",e)}),(m=u)==null||m.disconnect(),u=null,s&&cancelAnimationFrame(d)}}const Es=(n,r,e)=>{const o=new Map,a={platform:ks,...e},i={...a.platform,_c:o};return ls(n,r,{...a,platform:i})};function ma(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function ha(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(n,r){const e=ha(n);return Math.round(r*e)/e}function ba(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var M;return(M=t.unref(e.open))!=null?M:!0}),i=t.computed(()=>t.unref(e.middleware)),l=t.computed(()=>{var M;return(M=t.unref(e.placement))!=null?M:"bottom"}),s=t.computed(()=>{var M;return(M=t.unref(e.strategy))!=null?M:"absolute"}),c=t.computed(()=>{var M;return(M=t.unref(e.transform))!=null?M:!0}),d=t.computed(()=>ma(n.value)),u=t.computed(()=>ma(r.value)),p=t.ref(0),m=t.ref(0),g=t.ref(s.value),b=t.ref(l.value),y=t.shallowRef({}),x=t.ref(!1),k=t.computed(()=>{const M={position:g.value,left:"0",top:"0"};if(!u.value)return M;const U=ga(u.value,p.value),I=ga(u.value,m.value);return c.value?{...M,transform:"translate("+U+"px, "+I+"px)",...ha(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:U+"px",top:I+"px"}});let D;function v(){d.value==null||u.value==null||Es(d.value,u.value,{middleware:i.value,placement:l.value,strategy:s.value}).then(M=>{p.value=M.x,m.value=M.y,g.value=M.strategy,b.value=M.placement,y.value=M.middlewareData,x.value=!0})}function H(){typeof D=="function"&&(D(),D=void 0)}function A(){if(H(),o===void 0){v();return}if(d.value!=null&&u.value!=null){D=o(d.value,u.value,v);return}}function R(){a.value||(x.value=!1)}return t.watch([i,l,s],v,{flush:"sync"}),t.watch([d,u],A,{flush:"sync"}),t.watch(a,R,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(H),{x:t.shallowReadonly(p),y:t.shallowReadonly(m),strategy:t.shallowReadonly(g),placement:t.shallowReadonly(b),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(x),floatingStyles:k,update:v}}const _s=t.createElementVNode("span",{class:"sr-only"},"Open options",-1),Ds={class:"py-1"},Ns=["disabled","onClick"],Ss={class:"relative inline-flex items-center gap-x-1.5"},sn=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=qo(t.toRef(r,"actions")),a=t.ref(null),i=t.ref(null),{floatingStyles:l}=ba(a,i,{placement:"bottom-end",strategy:"fixed",whileElementsMounted:pa});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Yn),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(qn),{ref_key:"trigger",ref:a,class:"w-8 h-8 bg-white inline-flex items-center justify-center text-gray-700 rounded-full hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",disabled:!t.unref(o)},{default:t.withCtx(()=>[_s,t.createVNode(t.unref(ns),{class:"w-5 h-5","aria-hidden":"true"})]),_:1},8,["disabled"]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"wrapper",ref:i,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Wn),{class:"w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none"},{default:t.withCtx(()=>[t.createElementVNode("div",Ds,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,u)=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:u,as:"div"},{default:t.withCtx(({active:p})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([p?"bg-gray-100 text-gray-900":"text-gray-700","block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"]),onClick:d.onClick},[t.createElementVNode("span",Ss,[d.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(d.label),1)])],10,Ns)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),vs={class:"px-4 py-5 sm:p-6 text-center"},Vs=["textContent"],$s=["textContent"],ya=t.defineComponent({__name:"Cards",props:{cards:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["mt-5 grid grid-cols-1 gap-5","lg:grid-cols-"+r.cards.length])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.cards,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"bg-white overflow-hidden shadow rounded-lg"},[t.createElementVNode("div",vs,[t.createElementVNode("dl",null,[t.createElementVNode("dd",{class:"mt-1 text-3xl leading-9 font-semibold text-xy-blue",textContent:t.toDisplayString(o.primary)},null,8,Vs),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,$s)])])]))),128))],2))}}),Bs={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Ts=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),Ms={class:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"},Os={class:"mt-3 text-center sm:mt-5"},Ps={class:"mt-2"},As={class:"mt-5 sm:mt-6"},wa=t.defineComponent({__name:"ContentModal",props:{modelValue:{type:Boolean},title:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=o=>{r("update:modelValue",o)};return(o,a)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:o.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:o.modelValue,onClose:a[1]||(a[1]=i=>e(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",Bs,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Ts,t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Ms,[t.createElementVNode("div",null,[t.renderSlot(o.$slots,"icon"),t.createElementVNode("div",Os,[t.createVNode(t.unref(zn),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createElementVNode("div",Ps,[t.renderSlot(o.$slots,"default")])])]),t.createElementVNode("div",As,[t.createElementVNode("button",{type:"button",class:"inline-flex justify-center w-full xy-btn",onClick:a[0]||(a[0]=i=>e(!1))}," Go back ")])])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Ls={key:0,class:"text-red-700/80"},be=t.defineComponent({__name:"InputLabel",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"label"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>e.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Ls,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),se=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"text-sm leading-snug font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),Rs={key:0,class:"text-sm text-red-700"},Ve=t.defineComponent({__name:"InputError",props:{text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createElementBlock("p",Rs,t.toDisplayString(r.text),1)):t.createCommentVNode("",!0)}}),nr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],st={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:n=>typeof console<"u"&&console.warn(n),getWeek:n=>{const r=new Date(n.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Dt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:n=>{const r=n%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},fe=(n,r=2)=>`000${n}`.slice(r*-1),ke=n=>n===!0?1:0;function xa(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const rr=n=>n instanceof Array?n:[n];function ce(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function j(n,r,e){const o=window.document.createElement(n);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function cn(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ca(n,r){if(r(n))return n;if(n.parentNode)return Ca(n.parentNode,r)}function dn(n,r){const e=j("div","numInputWrapper"),o=j("input","numInput "+n),a=j("span","arrowUp"),i=j("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(const l in r)o.setAttribute(l,r[l]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function ye(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const or=()=>{},un=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],Is={D:or,F:function(n,r,e){n.setMonth(e.months.longhand.indexOf(r))},G:(n,r)=>{n.setHours(parseFloat(r))},H:(n,r)=>{n.setHours(parseFloat(r))},J:(n,r)=>{n.setDate(parseFloat(r))},K:(n,r,e)=>{n.setHours(n.getHours()%12+12*ke(new RegExp(e.amPM[1],"i").test(r)))},M:function(n,r,e){n.setMonth(e.months.shorthand.indexOf(r))},S:(n,r)=>{n.setSeconds(parseFloat(r))},U:(n,r)=>new Date(parseFloat(r)*1e3),W:function(n,r,e){const o=parseInt(r),a=new Date(n.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:(n,r)=>{n.setFullYear(parseFloat(r))},Z:(n,r)=>new Date(r),d:(n,r)=>{n.setDate(parseFloat(r))},h:(n,r)=>{n.setHours(parseFloat(r))},i:(n,r)=>{n.setMinutes(parseFloat(r))},j:(n,r)=>{n.setDate(parseFloat(r))},l:or,m:(n,r)=>{n.setMonth(parseFloat(r)-1)},n:(n,r)=>{n.setMonth(parseFloat(r)-1)},s:(n,r)=>{n.setSeconds(parseFloat(r))},u:(n,r)=>new Date(parseFloat(r)),w:or,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},ar={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Nt={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[Nt.w(n,r,e)]},F:function(n,r,e){return un(Nt.n(n,r,e)-1,!1,r)},G:function(n,r,e){return fe(Nt.h(n,r,e))},H:n=>fe(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[ke(n.getHours()>11)],M:function(n,r){return un(n.getMonth(),!0,r)},S:n=>fe(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>fe(n.getFullYear(),4),d:n=>fe(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>fe(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>fe(n.getMonth()+1),n:n=>n.getMonth()+1,s:n=>n.getSeconds(),u:n=>n.getTime(),w:n=>n.getDay(),y:n=>String(n.getFullYear()).substring(2)},ka=({config:n=st,l10n:r=Dt,isMobile:e=!1})=>(o,a,i)=>{const l=i||r;return n.formatDate!==void 0&&!e?n.formatDate(o,a,l):a.split("").map((s,c,d)=>Nt[s]&&d[c-1]!=="\\"?Nt[s](o,l,n):s!=="\\"?s:"").join("")},ir=({config:n=st,l10n:r=Dt})=>(e,o,a,i)=>{if(e!==0&&!e)return;const l=i||r;let s;const c=e;if(e instanceof Date)s=new Date(e.getTime());else if(typeof e!="string"&&e.toFixed!==void 0)s=new Date(e);else if(typeof e=="string"){const d=o||(n||st).dateFormat,u=String(e).trim();if(u==="today")s=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,d);else{s=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let p,m=[];for(let g=0,b=0,y="";g<d.length;g++){const x=d[g],k=x==="\\",D=d[g-1]==="\\"||k;if(ar[x]&&!D){y+=ar[x];const v=new RegExp(y).exec(e);v&&(p=!0)&&m[x!=="Y"?"push":"unshift"]({fn:Is[x],val:v[++b]})}else k||(y+=".");m.forEach(({fn:v,val:H})=>s=v(s,H,l)||s)}s=p?s:void 0}}if(!(s instanceof Date&&!isNaN(s.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${c}`));return}return a===!0&&s.setHours(0,0,0,0),s};function we(n,r,e=!0){return e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):n.getTime()-r.getTime()}const Fs=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),js={DAY:864e5};function lr(n){let r=n.defaultHour,e=n.defaultMinute,o=n.defaultSeconds;if(n.minDate!==void 0){const a=n.minDate.getHours(),i=n.minDate.getMinutes(),l=n.minDate.getSeconds();r<a&&(r=a),r===a&&e<i&&(e=i),r===a&&e===i&&o<l&&(o=n.minDate.getSeconds())}if(n.maxDate!==void 0){const a=n.maxDate.getHours(),i=n.maxDate.getMinutes();r=Math.min(r,a),r===a&&(e=Math.min(i,e)),r===a&&e===i&&(o=n.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(n,...r){if(!n)throw TypeError("Cannot convert undefined or null to object");for(const e of r)e&&Object.keys(e).forEach(o=>n[o]=e[o]);return n});const Hs=300;function Us(n,r){const e={config:Object.assign(Object.assign({},st),ee.defaultConfig),l10n:Dt};e.parseDate=ir({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=b,e._setHoursFromDate=p,e._positionCalendar=yn,e.changeMonth=pr,e.changeYear=gn,e.clear=fp,e.close=pp,e._createElement=j,e.destroy=mp,e.isEnabled=Je,e.jumpToDate=k,e.open=yp,e.redraw=ei,e.set=kp,e.setDate=Ep,e.toggle=Sp;function o(){e.utils={getDaysInMonth(f=e.currentMonth,h=e.currentYear){return f===1&&(h%4===0&&h%100!==0||h%400===0)?29:e.l10n.daysInMonth[f]}}}function a(){e.element=e.input=n,e.isOpen=!1,wp(),Qa(),Dp(),_p(),o(),e.isMobile||H(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&p(e.config.noCalendar?e.latestSelectedDateObj:void 0),Ye(!1)),l();const f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&f&&yn(),J("onReady")}function i(f){return f.bind(e)}function l(){const f=e.config;f.weekNumbers===!1&&f.showMonths===1||f.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){const h=(e.days.offsetWidth+1)*f.showMonths;e.daysContainer.style.width=h+"px",e.calendarContainer.style.width=h+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function s(f){if(e.selectedDates.length===0){const w=e.config.minDate===void 0||we(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),C=lr(e.config);w.setHours(C.hours,C.minutes,C.seconds,w.getMilliseconds()),e.selectedDates=[w],e.latestSelectedDateObj=w}f!==void 0&&f.type!=="blur"&&$p(f);const h=e._input.value;u(),Ye(),e._input.value!==h&&e._debouncedChange()}function c(f,h){return f%12+12*ke(h===e.l10n.amPM[1])}function d(f){switch(f%24){case 0:case 12:return 12;default:return f%12}}function u(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let f=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,h=(parseInt(e.minuteElement.value,10)||0)%60,w=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(f=c(f,e.amPM.textContent));const C=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const _=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;f=Math.min(f,_.getHours()),f===_.getHours()&&(h=Math.min(h,_.getMinutes())),h===_.getMinutes()&&(w=Math.min(w,_.getSeconds()))}if(C){const _=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;f=Math.max(f,_.getHours()),f===_.getHours()&&h<_.getMinutes()&&(h=_.getMinutes()),h===_.getMinutes()&&(w=Math.max(w,_.getSeconds()))}m(f,h,w)}function p(f){const h=f||e.latestSelectedDateObj;h&&m(h.getHours(),h.getMinutes(),h.getSeconds())}function m(f,h,w){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(f%24,h,w||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=fe(e.config.time_24hr?f:(12+f)%12+12*ke(f%12===0)),e.minuteElement.value=fe(h),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[ke(f>=12)]),e.secondElement!==void 0&&(e.secondElement.value=fe(w)))}function g(f){const h=ye(f),w=parseInt(h.value)+(f.delta||0);(w/1e3>1||f.key==="Enter"&&!/[^\d]/.test(w.toString()))&&gn(w)}function b(f,h,w,C){if(h instanceof Array)return h.forEach(N=>b(f,N,w,C));if(f instanceof Array)return f.forEach(N=>b(N,h,w,C));f.addEventListener(h,w,C),e._handlers.push({remove:()=>f.removeEventListener(h,w)})}function y(){J("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(h=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${h}]`),w=>b(w,"click",e[h]))}),e.isMobile){Np();return}const f=xa(bp,50);if(e._debouncedChange=xa(y,Hs),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(e.daysContainer,"mouseover",h=>{e.config.mode==="range"&&hr(ye(h))}),b(window.document.body,"keydown",gp),!e.config.inline&&!e.config.static&&b(window,"resize",f),window.ontouchstart!==void 0?b(window.document,"touchstart",mr):b(window.document,"mousedown",mr),b(window.document,"focus",mr,{capture:!0}),e.config.clickOpens===!0&&(b(e._input,"focus",e.open),b(e._input,"click",e.open)),e.daysContainer!==void 0&&(b(e.monthNav,"click",Vp),b(e.monthNav,["keyup","increment"],g),b(e.daysContainer,"click",ti)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const h=w=>ye(w).select();b(e.timeContainer,["increment"],s),b(e.timeContainer,"blur",s,{capture:!0}),b(e.timeContainer,"click",D),b([e.hourElement,e.minuteElement],["focus","click"],h),e.secondElement!==void 0&&b(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&b(e.amPM,"click",w=>{s(w),y()})}e.config.allowInput&&b(e._input,"blur",hp)}function k(f,h){const w=f!==void 0?e.parseDate(f):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),C=e.currentYear,N=e.currentMonth;try{w!==void 0&&(e.currentYear=w.getFullYear(),e.currentMonth=w.getMonth())}catch(_){_.message="Invalid date supplied: "+w,e.config.errorHandler(_)}h&&e.currentYear!==C&&(J("onYearChange"),ae()),h&&(e.currentYear!==C||e.currentMonth!==N)&&J("onMonthChange"),e.redraw()}function D(f){const h=ye(f);~h.className.indexOf("arrow")&&v(f,h.classList.contains("arrowUp")?1:-1)}function v(f,h,w){const C=f&&ye(f),N=w||C&&C.parentNode&&C.parentNode.firstChild,_=br("increment");_.delta=h,N&&N.dispatchEvent(_)}function H(){const f=window.document.createDocumentFragment();if(e.calendarContainer=j("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(f.appendChild(cp()),e.innerContainer=j("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:w,weekNumbers:C}=up();e.innerContainer.appendChild(w),e.weekNumbers=C,e.weekWrapper=w}e.rContainer=j("div","flatpickr-rContainer"),e.rContainer.appendChild(Ga()),e.daysContainer||(e.daysContainer=j("div","flatpickr-days"),e.daysContainer.tabIndex=-1),X(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),f.appendChild(e.innerContainer)}e.config.enableTime&&f.appendChild(dp()),ce(e.calendarContainer,"rangeMode",e.config.mode==="range"),ce(e.calendarContainer,"animate",e.config.animate===!0),ce(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(f);const h=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!h&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const w=j("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(w,e.element),w.appendChild(e.element),e.altInput&&w.appendChild(e.altInput),w.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function A(f,h,w,C){const N=Je(h,!0),_=j("span","flatpickr-day "+f,h.getDate().toString());return _.dateObj=h,_.$i=C,_.setAttribute("aria-label",e.formatDate(h,e.config.ariaDateFormat)),f.indexOf("hidden")===-1&&we(h,e.now)===0&&(e.todayDateElem=_,_.classList.add("today"),_.setAttribute("aria-current","date")),N?(_.tabIndex=-1,yr(h)&&(_.classList.add("selected"),e.selectedDateElem=_,e.config.mode==="range"&&(ce(_,"startRange",e.selectedDates[0]&&we(h,e.selectedDates[0],!0)===0),ce(_,"endRange",e.selectedDates[1]&&we(h,e.selectedDates[1],!0)===0),f==="nextMonthDay"&&_.classList.add("inRange")))):_.classList.add("flatpickr-disabled"),e.config.mode==="range"&&vp(h)&&!yr(h)&&_.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&f!=="prevMonthDay"&&w%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(h)+"</span>"),J("onDayCreate",_),_}function R(f){f.focus(),e.config.mode==="range"&&hr(f)}function M(f){const h=f>0?0:e.config.showMonths-1,w=f>0?e.config.showMonths:-1;for(let C=h;C!=w;C+=f){const N=e.daysContainer.children[C],_=f>0?0:N.children.length-1,B=f>0?N.children.length:-1;for(let $=_;$!=B;$+=f){const O=N.children[$];if(O.className.indexOf("hidden")===-1&&Je(O.dateObj))return O}}}function U(f,h){const w=f.className.indexOf("Month")===-1?f.dateObj.getMonth():e.currentMonth,C=h>0?e.config.showMonths:-1,N=h>0?1:-1;for(let _=w-e.currentMonth;_!=C;_+=N){const B=e.daysContainer.children[_],$=w-e.currentMonth===_?f.$i+h:h<0?B.children.length-1:0,O=B.children.length;for(let P=$;P>=0&&P<O&&P!=(h>0?O:-1);P+=N){const W=B.children[P];if(W.className.indexOf("hidden")===-1&&Je(W.dateObj)&&Math.abs(f.$i-P)>=Math.abs(h))return R(W)}}e.changeMonth(N),I(M(N),0)}function I(f,h){const w=bn(document.activeElement||document.body),C=f!==void 0?f:w?document.activeElement:e.selectedDateElem!==void 0&&bn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&bn(e.todayDateElem)?e.todayDateElem:M(h>0?1:-1);C===void 0?e._input.focus():w?U(C,h):R(C)}function F(f,h){const w=(new Date(f,h,1).getDay()-e.l10n.firstDayOfWeek+7)%7,C=e.utils.getDaysInMonth((h-1+12)%12,f),N=e.utils.getDaysInMonth(h,f),_=window.document.createDocumentFragment(),B=e.config.showMonths>1,$=B?"prevMonthDay hidden":"prevMonthDay",O=B?"nextMonthDay hidden":"nextMonthDay";let P=C+1-w,W=0;for(;P<=C;P++,W++)_.appendChild(A($,new Date(f,h-1,P),P,W));for(P=1;P<=N;P++,W++)_.appendChild(A("",new Date(f,h,P),P,W));for(let ie=N+1;ie<=42-w&&(e.config.showMonths===1||W%7!==0);ie++,W++)_.appendChild(A(O,new Date(f,h+1,ie%N),ie,W));const Ee=j("div","dayContainer");return Ee.appendChild(_),Ee}function X(){if(e.daysContainer===void 0)return;cn(e.daysContainer),e.weekNumbers&&cn(e.weekNumbers);const f=document.createDocumentFragment();for(let h=0;h<e.config.showMonths;h++){const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+h),f.appendChild(F(w.getFullYear(),w.getMonth()))}e.daysContainer.appendChild(f),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&hr()}function ae(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const f=function(h){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&h<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&h>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let h=0;h<12;h++){if(!f(h))continue;const w=j("option","flatpickr-monthDropdown-month");w.value=new Date(e.currentYear,h).getMonth().toString(),w.textContent=un(h,e.config.shorthandCurrentMonth,e.l10n),w.tabIndex=-1,e.currentMonth===h&&(w.selected=!0),e.monthsDropdownContainer.appendChild(w)}}function pe(){const f=j("div","flatpickr-month"),h=window.document.createDocumentFragment();let w;e.config.showMonths>1||e.config.monthSelectorType==="static"?w=j("span","cur-month"):(e.monthsDropdownContainer=j("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),b(e.monthsDropdownContainer,"change",B=>{const $=ye(B),O=parseInt($.value,10);e.changeMonth(O-e.currentMonth),J("onMonthChange")}),ae(),w=e.monthsDropdownContainer);const C=dn("cur-year",{tabindex:"-1"}),N=C.getElementsByTagName("input")[0];N.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&N.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(N.setAttribute("max",e.config.maxDate.getFullYear().toString()),N.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const _=j("div","flatpickr-current-month");return _.appendChild(w),_.appendChild(C),h.appendChild(_),f.appendChild(h),{container:f,yearElement:N,monthElement:w}}function Ka(){cn(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let f=e.config.showMonths;f--;){const h=pe();e.yearElements.push(h.yearElement),e.monthElements.push(h.monthElement),e.monthNav.appendChild(h.container)}e.monthNav.appendChild(e.nextMonthNav)}function cp(){return e.monthNav=j("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=j("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=j("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ka(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(f){e.__hidePrevMonthArrow!==f&&(ce(e.prevMonthNav,"flatpickr-disabled",f),e.__hidePrevMonthArrow=f)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(f){e.__hideNextMonthArrow!==f&&(ce(e.nextMonthNav,"flatpickr-disabled",f),e.__hideNextMonthArrow=f)}}),e.currentYearElement=e.yearElements[0],xn(),e.monthNav}function dp(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const f=lr(e.config);e.timeContainer=j("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const h=j("span","flatpickr-time-separator",":"),w=dn("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=w.getElementsByTagName("input")[0];const C=dn("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=C.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?f.hours:d(f.hours)),e.minuteElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():f.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(w),e.timeContainer.appendChild(h),e.timeContainer.appendChild(C),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const N=dn("flatpickr-second");e.secondElement=N.getElementsByTagName("input")[0],e.secondElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():f.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(j("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(N)}return e.config.time_24hr||(e.amPM=j("span","flatpickr-am-pm",e.l10n.amPM[ke((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function Ga(){e.weekdayContainer?cn(e.weekdayContainer):e.weekdayContainer=j("div","flatpickr-weekdays");for(let f=e.config.showMonths;f--;){const h=j("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(h)}return Ja(),e.weekdayContainer}function Ja(){if(!e.weekdayContainer)return;const f=e.l10n.firstDayOfWeek;let h=[...e.l10n.weekdays.shorthand];f>0&&f<h.length&&(h=[...h.splice(f,h.length),...h.splice(0,f)]);for(let w=e.config.showMonths;w--;)e.weekdayContainer.children[w].innerHTML=`
|
|
7
|
+
`));return t.cloneVNode(p,c)}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(s,c,d)}function Cl(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=Te(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function kl(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var uo=Symbol("StackContext"),et;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(et||(et={}));function fo(){return t.inject(uo,function(){})}function El(n){var r=fo();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(et.AddElement,o),e(function(){return r(et.RemoveElement,o)}))})}function po(n){var r=fo();function e(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n==null||n.apply(void 0,a),r.apply(void 0,a)}t.provide(uo,e)}var mo=Symbol("ForcePortalRootContext");function _l(){return t.inject(mo,!1)}var ho=t.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs;return t.provide(mo,r.force),function(){var i=De(r,["force"]);return K({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function go(){var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}var jn=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=_l(),l=t.inject(bo,null),s=t.ref(i===!0||l===null?go():l.resolveTarget());t.watchEffect(function(){i||l!==null&&(s.value=l.resolveTarget())});var c=t.ref(null);return El(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&s.value===d&&s.value.children.length<=0){var u;(u=s.value.parentElement)==null||u.removeChild(s.value)}}),po(),function(){if(s.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:s.value},K({props:z({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),bo=Symbol("PortalGroupContext"),Dl=t.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup:function(r,e){var o=e.attrs,a=e.slots,i=t.reactive({resolveTarget:function(){return r.target}});return t.provide(bo,i),function(){var l=De(r,["target"]);return K({props:l,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),T;(function(n){n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab"})(T||(T={}));var Nl=0;function Sl(){return++Nl}function re(){return Sl()}function Me(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function Hn(n,r){for(var e=Te(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var Un=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?function(n){return n+":not([tabindex='-1']):not([style*='display: none'])"}:function(n){return n+":not([tabindex='-1'])"}).join(","),Y;(function(n){n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll"})(Y||(Y={}));var he;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(he||(he={}));var Yt;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(Yt||(Yt={}));function qt(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(Un))}var tt;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(tt||(tt={}));function vl(n,r){var e;return r===void 0&&(r=tt.Strict),n===document.body?!1:de(r,(e={},e[tt.Strict]=function(){return n.matches(Un)},e[tt.Loose]=function(){for(var o=n;o!==null;){if(o.matches(Un))return!0;o=o.parentElement}return!1},e))}function bt(n){n==null||n.focus({preventScroll:!0})}function Ne(n,r){var e=Array.isArray(n)?n:qt(n),o=document.activeElement,a=function(){if(r&(Y.First|Y.Next))return Yt.Next;if(r&(Y.Previous|Y.Last))return Yt.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(r&Y.First)return 0;if(r&Y.Previous)return Math.max(0,e.indexOf(o))-1;if(r&Y.Next)return Math.max(0,e.indexOf(o))+1;if(r&Y.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),l=r&Y.NoScroll?{preventScroll:!0}:{},s=0,c=e.length,d=void 0;do{var u;if(s>=c||s+c<=0)return he.Error;var p=i+s;if(r&Y.WrapAround)p=(p+c)%c;else{if(p<0)return he.Underflow;if(p>=c)return he.Overflow}d=e[p],(u=d)==null||u.focus(l),s+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),he.Success}function Vl(n,r,e){r===void 0&&(r=t.ref(!0)),e===void 0&&(e=t.ref({}));var o=t.ref(typeof window<"u"?document.activeElement:null),a=t.ref(null);function i(){if(r.value&&n.value.size===1){var s=e.value.initialFocus,c=document.activeElement;if(s){if(s===c)return}else if(Hn(n.value,c))return;if(o.value=c,s)bt(s);else{for(var d=!1,u=Te(n.value),p;!(p=u()).done;){var m=p.value,g=Ne(m,Y.First);if(g===he.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function l(){bt(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():l()}),t.onUnmounted(l),Me("keydown",function(s){if(r.value&&s.key===T.Tab&&document.activeElement&&n.value.size===1){s.preventDefault();for(var c=Te(n.value),d;!(d=c()).done;){var u=d.value,p=Ne(u,(s.shiftKey?Y.Previous:Y.Next)|Y.WrapAround);if(p===he.Success){a.value=document.activeElement;break}}}}),Me("focus",function(s){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=s.target;d&&d instanceof HTMLElement?Hn(n.value,d)?(a.value=d,bt(d)):(s.preventDefault(),s.stopPropagation(),bt(c)):bt(a.value)}}},!0)}var yo=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",nt=new Set,Fe=new Map;function wo(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function xo(n){var r=Fe.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function $l(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;nt.add(o);for(var a=Te(Fe.keys()),i;!(i=a()).done;){var l=i.value;l.contains(o)&&(xo(l),Fe.delete(l))}document.querySelectorAll(yo).forEach(function(s){if(s instanceof HTMLElement){for(var c=Te(nt),d;!(d=c()).done;){var u=d.value;if(s.contains(u))return}nt.size===1&&(Fe.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),wo(s))}}),e(function(){if(nt.delete(o),nt.size>0)document.querySelectorAll(yo).forEach(function(u){if(u instanceof HTMLElement&&!Fe.has(u)){for(var p=Te(nt),m;!(m=p()).done;){var g=m.value;if(u.contains(g))return}Fe.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),wo(u)}});else for(var s=Te(Fe.keys()),c;!(c=s()).done;){var d=c.value;xo(d),Fe.delete(d)}})}})}var Co=Symbol("DescriptionContext");function Bl(){var n=t.inject(Co,null);if(n===null)throw new Error("Missing parent");return n}function Wt(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?t.ref({}):e,a=r.name,i=a===void 0?"Description":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Co,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var ko=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Description":e,a=r.slot,i=a===void 0?t.ref({}):a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=z({},Object.entries(s).reduce(function(u,p){var m,g=p[0],b=p[1];return Object.assign(u,(m={},m[g]=t.unref(b),m))},{}),{id:this.id});return K({props:z({},c,d),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Bl(),e="headlessui-description-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function V(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var Eo=Symbol("Context"),te;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(te||(te={}));function Tl(){return rt()!==null}function rt(){return t.inject(Eo,null)}function Kt(n){t.provide(Eo,n)}var le;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(le||(le={}));var _o=Symbol("DialogContext");function yt(n){var r=t.inject(_o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,yt),e}return r}var Gt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Jt=t.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Gt},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=z({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===le.Open?!0:void 0,"aria-labelledby":this.titleId,"aria-describedby":this.describedby,onClick:this.handleClick}),o=this.$props,a=De(o,["open","initialFocus"]),i={open:this.dialogState===le.Open};return t.h(ho,{force:!0},function(){return t.h(jn,function(){return t.h(Dl,{target:r.dialogRef},function(){return t.h(ho,{force:!1},function(){return K({props:z({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:ue.RenderStrategy|ue.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=rt(),l=t.computed(function(){if(r.open===Gt&&i!==null){var k;return de(i.value,(k={},k[te.Open]=!0,k[te.Closed]=!1,k))}return r.open}),s=r.open!==Gt||i!==null;if(!s)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof l.value!="boolean")throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+(l.value===Gt?void 0:r.open));var c=t.computed(function(){return r.open?le.Open:le.Closed}),d=t.computed(function(){return i!==null?i.value===te.Open:c.value===le.Open}),u=t.ref(null),p=t.ref(c.value===le.Open);t.onUpdated(function(){p.value=c.value===le.Open});var m="headlessui-dialog-"+re(),g=t.computed(function(){return{initialFocus:r.initialFocus}});Vl(a,p,g),$l(u,p),po(function(k,D){var v;return de(k,(v={},v[et.AddElement]=function(){a.value.add(D)},v[et.RemoveElement]=function(){a.value.delete(D)},v))});var b=Wt({name:"DialogDescription",slot:t.computed(function(){return{open:l.value}})}),y=t.ref(null),x={titleId:y,dialogState:c,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(_o,x),Me("mousedown",function(k){var D=k.target;c.value===le.Open&&a.value.size===1&&(Hn(a.value,D)||(x.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),Me("keydown",function(k){k.key===T.Escape&&c.value===le.Open&&(a.value.size>1||(k.preventDefault(),k.stopPropagation(),x.close()))}),t.watchEffect(function(k){if(c.value===le.Open){var D=document.documentElement.style.overflow,v=document.documentElement.style.paddingRight,H=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=H+"px",k(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=v})}}),t.watchEffect(function(k){if(c.value===le.Open){var D=V(u);if(D){var v=new IntersectionObserver(function(H){for(var A=Te(H),R;!(R=A()).done;){var M=R.value;M.boundingClientRect.x===0&&M.boundingClientRect.y===0&&M.boundingClientRect.width===0&&M.boundingClientRect.height===0&&x.close()}});v.observe(D),k(function(){return v.disconnect()})}}}),{id:m,el:u,dialogRef:u,containers:a,dialogState:c,titleId:y,describedby:b,visible:d,open:l,handleClick:function(D){D.stopPropagation()}}}}),Xt=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=yt("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=yt("DialogOverlay"),e="headlessui-dialog-overlay-"+re();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),zn=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=yt("DialogTitle"),e={id:this.id},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=yt("DialogTitle"),e="headlessui-dialog-title-"+re();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function Do(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Zt(n,r){var e=t.ref(Do(n.value.type,n.value.as));return t.onMounted(function(){e.value=Do(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||V(r)&&V(r)instanceof HTMLButtonElement&&!((o=V(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var ne;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ne||(ne={}));var No=Symbol("DisclosureContext");function wt(n){var r=t.inject(No,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,wt),e}return r}var So=Symbol("DisclosurePanelContext");function Ml(){return t.inject(So,null)}var Ol=t.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-disclosure-button-"+re(),l="headlessui-disclosure-panel-"+re(),s=t.ref(r.defaultOpen?ne.Open:ne.Closed),c=t.ref(null),d=t.ref(null),u={buttonId:i,panelId:l,disclosureState:s,panel:c,button:d,toggleDisclosure:function(){var m;s.value=de(s.value,(m={},m[ne.Open]=ne.Closed,m[ne.Closed]=ne.Open,m))},closeDisclosure:function(){s.value!==ne.Closed&&(s.value=ne.Closed)},close:function(m){u.closeDisclosure();var g=function(){return m?m instanceof HTMLElement?m:m.value instanceof HTMLElement?V(m):V(u.button):V(u.button)}();g==null||g.focus()}};return t.provide(No,u),Kt(t.computed(function(){var p;return de(s.value,(p={},p[ne.Open]=te.Open,p[ne.Closed]=te.Closed,p))})),function(){var p=De(r,["defaultOpen"]),m={open:s.value===ne.Open,close:u.close};return K({props:p,slot:m,slots:o,attrs:a,name:"Disclosure"})}}}),Pl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=wt("DisclosureButton"),e={open:r.disclosureState.value===ne.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onClick:this.handleClick,onKeydown:this.handleKeyDown}:{id:this.id,ref:"el",type:this.type,"aria-expanded":this.$props.disabled?void 0:r.disclosureState.value===ne.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onClick:this.handleClick,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=wt("DisclosureButton"),i=Ml(),l=i===null?!1:i===a.panelId,s=t.ref(null);return l||t.watchEffect(function(){a.button.value=s.value}),{isWithinPanel:l,id:a.buttonId,el:s,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),s),handleClick:function(){if(!r.disabled)if(l){var d;a.toggleDisclosure(),(d=V(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var u;if(!r.disabled)if(l)switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(u=V(a.button))==null||u.focus();break}else switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case T.Space:d.preventDefault();break}}}}}),Al=t.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r=wt("DisclosurePanel"),e={open:r.disclosureState.value===ne.Open,close:r.close},o={id:this.id,ref:"el"};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=wt("DisclosurePanel");t.provide(So,r.panelId);var e=rt(),o=t.computed(function(){return e!==null?e.value===te.Open:r.disclosureState.value===ne.Open});return{id:r.panelId,el:r.panel,visible:o}}});function Ll(n){throw new Error("Unexpected object: "+n)}var Q;(function(n){n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing"})(Q||(Q={}));function Rl(n,r){var e=r.resolveItems();if(e.length<=0)return null;var o=r.resolveActiveIndex(),a=o??-1,i=function(){switch(n.focus){case Q.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case Q.Previous:{var l=e.slice().reverse().findIndex(function(c,d,u){return a!==-1&&u.length-d-1>=a?!1:!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case Q.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case Q.Last:{var s=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return s===-1?s:e.length-1-s}case Q.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case Q.Nothing:return null;default:Ll(n)}}();return i===-1?o:i}function vo(n){var r=n.container,e=n.accept,o=n.walk,a=n.enabled;t.watchEffect(function(){var i=r.value;if(i&&!(a!==void 0&&!a.value))for(var l=Object.assign(function(c){return e(c)},{acceptNode:e}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,l,!1);s.nextNode();)o(s.currentNode)})}var oe;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(oe||(oe={}));function Il(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var Vo=Symbol("MenuContext");function ot(n){var r=t.inject(Vo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ot),e}return r}var Yn=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(oe.Closed),l=t.ref(null),s=t.ref(null),c=t.ref([]),d=t.ref(""),u=t.ref(null),p={menuState:i,buttonRef:l,itemsRef:s,items:c,searchQuery:d,activeItemIndex:u,closeMenu:function(){i.value=oe.Closed,u.value=null},openMenu:function(){return i.value=oe.Open},goToItem:function(g,b){var y=Rl(g===Q.Specific?{focus:Q.Specific,id:b}:{focus:g},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return u.value},resolveId:function(k){return k.id},resolveDisabled:function(k){return k.dataRef.disabled}});d.value===""&&u.value===y||(d.value="",u.value=y)},search:function(g){d.value+=g.toLowerCase();var b=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});b===-1||b===u.value||(u.value=b)},clearSearch:function(){d.value=""},registerItem:function(g,b){c.value.push({id:g,dataRef:b})},unregisterItem:function(g){var b=c.value.slice(),y=u.value!==null?b[u.value]:null,x=b.findIndex(function(k){return k.id===g});x!==-1&&b.splice(x,1),c.value=b,u.value=function(){return x===u.value||y===null?null:b.indexOf(y)}()}};return Me("mousedown",function(m){var g,b,y,x=m.target,k=document.activeElement;i.value===oe.Open&&((g=V(l))!=null&&g.contains(x)||((b=V(s))!=null&&b.contains(x)||p.closeMenu(),!(k!==document.body&&(k!=null&&k.contains(x)))&&(m.defaultPrevented||(y=V(l))==null||y.focus({preventScroll:!0}))))}),t.provide(Vo,p),Kt(t.computed(function(){var m;return de(i.value,(m={},m[oe.Open]=te.Open,m[oe.Closed]=te.Closed,m))})),function(){var m={open:i.value===oe.Open};return K({props:r,slot:m,slots:o,attrs:a,name:"Menu"})}}}),qn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=ot("MenuButton"),o={open:e.menuState.value===oe.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=V(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===oe.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=ot("MenuButton"),i="headlessui-menu-button-"+re();function l(d){switch(d.key){case T.Space:case T.Enter:case T.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.First)});break;case T.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.Last)});break}}function s(d){switch(d.key){case T.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===oe.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=V(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),Il(function(){var u;return(u=V(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:l,handleKeyUp:s,handleClick:c}}}),Wn=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r,e,o=ot("MenuItems"),a={open:o.menuState.value===oe.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=V(o.buttonRef))==null?void 0:e.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},l=this.$props;return K({props:z({},l,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=ot("MenuItems"),e="headlessui-menu-items-"+re(),o=t.ref(null);vo({container:t.computed(function(){return V(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===oe.Open}),accept:function(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(d){d.setAttribute("role","none")}});function a(c){switch(o.value&&clearTimeout(o.value),c.key){case T.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case T.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,u=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(u))==null||d.click()}r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Next);case T.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Previous);case T.Home:case T.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.First);case T.End:case T.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Last);case T.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function i(c){switch(c.key){case T.Space:c.preventDefault();break}}var l=rt(),s=t.computed(function(){return l!==null?l.value===te.Open:r.menuState.value===oe.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Kn=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i=ot("MenuItem"),l="headlessui-menu-item-"+re(),s=t.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===l:!1}),c=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var g,b,y=(g=document.getElementById(l))==null||(b=g.textContent)==null?void 0:b.toLowerCase().trim();y!==void 0&&(c.value.textValue=y)}),t.onMounted(function(){return i.registerItem(l,c)}),t.onUnmounted(function(){return i.unregisterItem(l)}),t.watchEffect(function(){i.menuState.value===oe.Open&&s.value&&t.nextTick(function(){var g;return(g=document.getElementById(l))==null||g.scrollIntoView==null?void 0:g.scrollIntoView({block:"nearest"})})});function d(g){if(r.disabled)return g.preventDefault();i.closeMenu(),t.nextTick(function(){var b;return(b=V(i.buttonRef))==null?void 0:b.focus({preventScroll:!0})})}function u(){if(r.disabled)return i.goToItem(Q.Nothing);i.goToItem(Q.Specific,l)}function p(){r.disabled||s.value||i.goToItem(Q.Specific,l)}function m(){r.disabled||s.value&&i.goToItem(Q.Nothing)}return function(){var g=r.disabled,b={active:s.value,disabled:g},y={id:l,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,onClick:d,onFocus:u,onPointermove:p,onMousemove:p,onPointerleave:m,onMouseleave:m};return K({props:z({},r,y),slot:b,attrs:a,slots:o,name:"MenuItem"})}}}),q;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(q||(q={}));var $o=Symbol("PopoverContext");function xt(n){var r=t.inject($o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+Mo.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,xt),e}return r}var Fl=Symbol("PopoverGroupContext");function Bo(){return t.inject(Fl,null)}var To=Symbol("PopoverPanelContext");function jl(){return t.inject(To,null)}var Mo=t.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-popover-button-"+re(),l="headlessui-popover-panel-"+re(),s=t.ref(q.Closed),c=t.ref(null),d=t.ref(null),u={popoverState:s,buttonId:i,panelId:l,panel:d,button:c,togglePopover:function(){var x;s.value=de(s.value,(x={},x[q.Open]=q.Closed,x[q.Closed]=q.Open,x))},closePopover:function(){s.value!==q.Closed&&(s.value=q.Closed)},close:function(x){u.closePopover();var k=function(){return x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?V(x):V(u.button):V(u.button)}();k==null||k.focus()}};t.provide($o,u),Kt(t.computed(function(){var y;return de(s.value,(y={},y[q.Open]=te.Open,y[q.Closed]=te.Closed,y))}));var p={buttonId:i,panelId:l,close:function(){u.closePopover()}},m=Bo(),g=m==null?void 0:m.registerPopover;function b(){var y,x,k;return(y=m==null?void 0:m.isFocusWithinPopoverGroup())!=null?y:((x=V(c))==null?void 0:x.contains(document.activeElement))||((k=V(d))==null?void 0:k.contains(document.activeElement))}return t.watchEffect(function(){return g==null?void 0:g(p)}),Me("focus",function(){s.value===q.Open&&(b()||c&&d&&u.closePopover())},!0),Me("mousedown",function(y){var x,k,D=y.target;if(s.value===q.Open&&!((x=V(c))!=null&&x.contains(D))&&!((k=V(d))!=null&&k.contains(D))&&(u.closePopover(),!vl(D,tt.Loose))){var v;y.preventDefault(),(v=V(c))==null||v.focus()}}),function(){var y={open:s.value===q.Open,close:u.close};return K({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),Hl=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=xt("PopoverButton"),e={open:r.popoverState.value===q.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onKeydown:this.handleKeyDown,onClick:this.handleClick}:{ref:"el",id:r.buttonId,type:this.type,"aria-expanded":this.$props.disabled?void 0:r.popoverState.value===q.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=xt("PopoverButton"),i=Bo(),l=i==null?void 0:i.closeOthers,s=jl(),c=s===null?!1:s===a.panelId,d=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);Me("focus",function(){u.value=d.value,d.value=document.activeElement},!0);var p=t.ref(null);return c||t.watchEffect(function(){a.button.value=p.value}),{isWithinPanel:c,el:p,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),p),handleKeyDown:function(g){var b,y;if(c){if(a.popoverState.value===q.Closed)return;switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.closePopover(),(b=V(a.button))==null||b.focus();break}}else switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.popoverState.value===q.Closed&&(l==null||l(a.buttonId)),a.togglePopover();break;case T.Escape:if(a.popoverState.value!==q.Open)return l==null?void 0:l(a.buttonId);if(!V(a.button)||!((y=V(a.button))!=null&&y.contains(document.activeElement)))return;g.preventDefault(),g.stopPropagation(),a.closePopover();break;case T.Tab:if(a.popoverState.value!==q.Open||!a.panel||!a.button)return;if(g.shiftKey){var x,k;if(!u.value||(x=V(a.button))!=null&&x.contains(u.value)||(k=V(a.panel))!=null&&k.contains(u.value))return;var D=qt(),v=D.indexOf(u.value),H=D.indexOf(V(a.button));if(H>v)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),Y.Last)}else g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),Y.First);break}},handleKeyUp:function(g){var b,y;if(!c&&(g.key===T.Space&&g.preventDefault(),a.popoverState.value===q.Open&&a.panel&&a.button))switch(g.key){case T.Tab:if(!u.value||(b=V(a.button))!=null&&b.contains(u.value)||(y=V(a.panel))!=null&&y.contains(u.value))return;var x=qt(),k=x.indexOf(u.value),D=x.indexOf(V(a.button));if(D>k)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),Y.Last);break}},handleClick:function(){if(!r.disabled)if(c){var g;a.closePopover(),(g=V(a.button))==null||g.focus()}else{var b;a.popoverState.value===q.Closed&&(l==null||l(a.buttonId)),(b=V(a.button))==null||b.focus(),a.togglePopover()}}}}}),Ul=t.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1}},render:function(){var r=xt("PopoverPanel"),e={open:r.popoverState.value===q.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=xt("PopoverPanel");t.provide(To,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var l;if(e&&o.popoverState.value===q.Open&&o.panel){var s=document.activeElement;(l=V(o.panel))!=null&&l.contains(s)||Ne(V(o.panel),Y.First)}}),Me("keydown",function(l){var s;if(o.popoverState.value===q.Open&&V(o.panel)&&l.key===T.Tab&&document.activeElement&&(s=V(o.panel))!=null&&s.contains(document.activeElement)){l.preventDefault();var c=Ne(V(o.panel),l.shiftKey?Y.Previous:Y.Next);if(c===he.Underflow){var d;return(d=V(o.button))==null?void 0:d.focus()}else if(c===he.Overflow){if(!V(o.button))return;var u=qt(),p=u.indexOf(V(o.button)),m=u.splice(p+1).filter(function(g){var b;return!((b=V(o.panel))!=null&&b.contains(g))});Ne(m,Y.First)===he.Error&&Ne(document.body,Y.First)}}}),Me("focus",function(){var l;e&&o.popoverState.value===q.Open&&V(o.panel)&&((l=V(o.panel))!=null&&l.contains(document.activeElement)||o.closePopover())},!0);var a=rt(),i=t.computed(function(){return a!==null?a.value===te.Open:o.popoverState.value===q.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(s){var c,d;switch(s.key){case T.Escape:if(o.popoverState.value!==q.Open||!V(o.panel)||!((c=V(o.panel))!=null&&c.contains(document.activeElement)))return;s.preventDefault(),s.stopPropagation(),o.closePopover(),(d=V(o.button))==null||d.focus();break}},visible:i}}}),Oo=Symbol("LabelContext");function Po(){var n=t.inject(Oo,null);if(n===null){var r=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Po),r}return n}function Gn(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?{}:e,a=r.name,i=a===void 0?"Label":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Oo,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var Ao=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Label":e,a=r.slot,i=a===void 0?{}:a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=c.passive,u=De(c,["passive"]),p=z({},Object.entries(s).reduce(function(g,b){var y,x=b[0],k=b[1];return Object.assign(g,(y={},y[x]=t.unref(k),y))},{}),{id:this.id}),m=z({},u,p);return d&&delete m.onClick,K({props:m,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Po(),e="headlessui-label-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),Lo=Symbol("RadioGroupContext");function Ro(n){var r=t.inject(Lo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ro),e}return r}var zl=t.defineComponent({name:"RadioGroup",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},render:function(){var r=this.$props,e=De(r,["modelValue","disabled"]),o={ref:"el",id:this.id,role:"radiogroup","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onKeydown:this.handleKeyDown};return K({props:z({},e,o),slot:{},attrs:this.$attrs,slots:this.$slots,name:"RadioGroup"})},setup:function(r,e){var o=e.emit,a=t.ref(null),i=t.ref([]),l=Gn({name:"RadioGroupLabel"}),s=Wt({name:"RadioGroupDescription"}),c=t.computed(function(){return r.modelValue}),d={options:i,value:c,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return i.value.find(function(m){return!m.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(m){return t.toRaw(m.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(g){var b;if(r.disabled||c.value===g)return!1;var y=(b=i.value.find(function(x){return t.toRaw(x.propsRef.value)===t.toRaw(g)}))==null?void 0:b.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",g),!0)},registerOption:function(g){var b,y=Array.from((b=a.value)==null?void 0:b.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(x,k,D){var v;return Object.assign(x,(v={},v[k.id]=D,v))},{});i.value.push(g),i.value.sort(function(x,k){return y[x.id]-y[k.id]})},unregisterOption:function(g){var b=i.value.findIndex(function(y){return y.id===g});b!==-1&&i.value.splice(b,1)}};t.provide(Lo,d),vo({container:t.computed(function(){return V(a)}),accept:function(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(g){g.setAttribute("role","none")}});function u(m){if(a.value&&a.value.contains(m.target)){var g=i.value.filter(function(v){return v.propsRef.disabled===!1}).map(function(v){return v.element});switch(m.key){case T.ArrowLeft:case T.ArrowUp:{m.preventDefault(),m.stopPropagation();var b=Ne(g,Y.Previous|Y.WrapAround);if(b===he.Success){var y=i.value.find(function(v){return v.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case T.ArrowRight:case T.ArrowDown:{m.preventDefault(),m.stopPropagation();var x=Ne(g,Y.Next|Y.WrapAround);if(x===he.Success){var k=i.value.find(function(v){return v.element===document.activeElement});k&&d.change(k.propsRef.value)}}break;case T.Space:{m.preventDefault(),m.stopPropagation();var D=i.value.find(function(v){return v.element===document.activeElement});D&&d.change(D.propsRef.value)}break}}}var p="headlessui-radiogroup-"+re();return{id:p,labelledby:l,describedby:s,el:a,handleKeyDown:u}}}),qe;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(qe||(qe={}));var Yl=t.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},render:function(){var r=this.$props,e=De(r,["value","disabled"]),o={checked:this.checked,disabled:this.disabled,active:!!(this.state&qe.Active)},a={id:this.id,ref:"el",role:"radio","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,"aria-disabled":this.disabled?!0:void 0,tabIndex:this.tabIndex,onClick:this.disabled?void 0:this.handleClick,onFocus:this.disabled?void 0:this.handleFocus,onBlur:this.disabled?void 0:this.handleBlur};return K({props:z({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=Ro("RadioGroupOption"),o="headlessui-radiogroup-option-"+re(),a=Gn({name:"RadioGroupLabel"}),i=Wt({name:"RadioGroupDescription"}),l=t.ref(null),s=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(qe.Empty);t.onMounted(function(){return e.registerOption({id:o,element:l,propsRef:s})}),t.onUnmounted(function(){return e.unregisterOption(o)});var d=t.computed(function(){var m;return((m=e.firstOption.value)==null?void 0:m.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),p=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:l,labelledby:a,describedby:i,state:c,disabled:u,checked:p,tabIndex:t.computed(function(){return u.value?-1:p.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var g;e.change(r.value)&&(c.value|=qe.Active,(g=l.value)==null||g.focus())},handleFocus:function(){c.value|=qe.Active},handleBlur:function(){c.value&=~qe.Active}}}}),Io=Ao,Jn=ko,Fo=Symbol("GroupContext"),ql=t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(null),l=Gn({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),s=Wt({name:"SwitchDescription"}),c={switchRef:i,labelledby:l,describedby:s};return t.provide(Fo,c),function(){return K({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),Wl=t.defineComponent({name:"Switch",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var r={checked:this.$props.modelValue},e={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return K({props:z({},this.$props,e),slot:r,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(r,e){var o=e.emit,a=e.attrs,i=t.inject(Fo,null),l="headlessui-switch-"+re();function s(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=i===null?c:i.switchRef;return{id:l,el:d,type:Zt(t.computed(function(){return{as:r.as,type:a.type}}),d),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(p){p.preventDefault(),s()},handleKeyUp:function(p){p.key!==T.Tab&&p.preventDefault(),p.key===T.Space&&s()},handleKeyPress:function(p){p.preventDefault()}}}}),Kl=Ao,Gl=ko;function Jl(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function jo(){var n=[],r={requestAnimationFrame:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=requestAnimationFrame.apply(void 0,arguments);r.add(function(){return cancelAnimationFrame(e)})}),nextFrame:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r.requestAnimationFrame(function(){r.requestAnimationFrame.apply(r,a)})},setTimeout:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=setTimeout.apply(void 0,arguments);r.add(function(){return clearTimeout(e)})}),add:function(o){n.push(o)},dispose:function(){for(var o=Te(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function Xn(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).add.apply(r,o)}function Qt(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).remove.apply(r,o)}var je;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(je||(je={}));function Xl(n,r){var e=jo();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,l=[a,i].map(function(d){var u=d.split(",").filter(Boolean).map(function(g){return g.includes("ms")?parseFloat(g):parseFloat(g)*1e3}).sort(function(g,b){return b-g}),p=u[0],m=p===void 0?0:p;return m}),s=l[0],c=l[1];return s!==0?e.setTimeout(function(){return r(je.Finished)},s+c):r(je.Finished),e.add(function(){return r(je.Cancelled)}),e.dispose}function Ho(n,r,e,o,a,i){var l=jo(),s=i!==void 0?Jl(i):function(){};return Qt.apply(void 0,[n].concat(a)),Xn.apply(void 0,[n].concat(r,e)),l.nextFrame(function(){Qt.apply(void 0,[n].concat(e)),Xn.apply(void 0,[n].concat(o)),l.add(Xl(n,function(c){return Qt.apply(void 0,[n].concat(o,r)),Xn.apply(void 0,[n].concat(a)),s(c)}))}),l.add(function(){return Qt.apply(void 0,[n].concat(r,e,o,a))}),l.add(function(){return s(je.Cancelled)}),l.dispose}function We(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Zn=Symbol("TransitionContext"),G;(function(n){n.Visible="visible",n.Hidden="hidden"})(G||(G={}));function Zl(){return t.inject(Zn,null)!==null}function Ql(){var n=t.inject(Zn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function es(){var n=t.inject(Qn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Qn=Symbol("NestingContext");function en(n){return"children"in n?en(n.children):n.value.filter(function(r){var e=r.state;return e===G.Visible}).length>0}function Uo(n){var r=t.ref([]),e=t.ref(!1);t.onMounted(function(){return e.value=!0}),t.onUnmounted(function(){return e.value=!1});function o(i,l){var s;l===void 0&&(l=me.Hidden);var c=r.value.findIndex(function(d){var u=d.id;return u===i});c!==-1&&(de(l,(s={},s[me.Unmount]=function(){r.value.splice(c,1)},s[me.Hidden]=function(){r.value[c].state=G.Hidden},s)),!en(r)&&e.value&&(n==null||n()))}function a(i){var l=r.value.find(function(s){var c=s.id;return c===i});return l?l.state!==G.Visible&&(l.state=G.Visible):r.value.push({id:i,state:G.Visible}),function(){return o(i,me.Unmount)}}return{children:r,register:a,unregister:o}}var zo=ue.RenderStrategy,Le=t.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this;if(this.renderAsRoot)return t.h(Ct,z({},this.$props,{onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}}),this.$slots);var e=this.$props,o=De(e,["appear","show","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),a={ref:"el"},i=o;return K({props:z({},i,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:zo,visible:this.state===G.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!Zl()&&Tl())return{renderAsRoot:!0};var a=t.ref(null),i=t.ref(G.Visible),l=t.computed(function(){return r.unmount?me.Unmount:me.Hidden}),s=Ql(),c=s.show,d=s.appear,u=es(),p=u.register,m=u.unregister,g={value:!0},b=re(),y={value:!1},x=Uo(function(){y.value||(i.value=G.Hidden,m(b),o("afterLeave"))});t.onMounted(function(){var I=p(b);t.onUnmounted(I)}),t.watchEffect(function(){var I;if(l.value===me.Hidden&&b){if(c&&i.value!==G.Visible){i.value=G.Visible;return}de(i.value,(I={},I[G.Hidden]=function(){return m(b)},I[G.Visible]=function(){return p(b)},I))}});var k=We(r.enter),D=We(r.enterFrom),v=We(r.enterTo),H=We(r.entered),A=We(r.leave),R=We(r.leaveFrom),M=We(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===G.Visible){var I=V(a),F=I instanceof Comment&&I.data==="";if(F)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function U(I){var F=g.value&&!d.value,X=V(a);!X||!(X instanceof HTMLElement)||F||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),I(c.value?Ho(X,k,D,v,H,function(ae){y.value=!1,ae===je.Finished&&o("afterEnter")}):Ho(X,A,R,M,H,function(ae){y.value=!1,ae===je.Finished&&(en(x)||(i.value=G.Hidden,m(b),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(I,F,X){U(X),g.value=!1},{immediate:!0})}),t.provide(Qn,x),Kt(t.computed(function(){var I;return de(i.value,(I={},I[G.Visible]=te.Open,I[G.Hidden]=te.Closed,I))})),{el:a,renderAsRoot:!1,state:i}}}),Ct=t.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this,e=this.$props,o=e.unmount,a=De(e,["show","appear","unmount"]),i={unmount:o};return K({props:z({},i,{as:"template"}),slot:{},slots:z({},this.$slots,{default:function(){return[t.h(Le,z({onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}},r.$attrs,i,a),r.$slots.default)]}}),attrs:{},features:zo,visible:this.state===G.Visible,name:"Transition"})},setup:function(r){var e=rt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return de(e.value,(c={},c[te.Open]=!0,c[te.Closed]=!1,c))}return r.show});t.watchEffect(function(){if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});var a=t.ref(o.value?G.Visible:G.Hidden),i=Uo(function(){a.value=G.Hidden}),l={value:!0},s={show:o,appear:t.computed(function(){return r.appear||!l.value})};return t.onMounted(function(){t.watchEffect(function(){l.value=!1,o.value?a.value=G.Visible:en(i)||(a.value=G.Hidden)})}),t.provide(Qn,i),t.provide(Zn,s),{state:a,show:o}}});function Yo(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function ts(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"})])}function ns(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})])}function rs(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function os(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function as(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])}function is(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const qo=n=>{const r=t.ref(n),e=t.computed(()=>o.value.length>0),o=t.computed(()=>r.value.map(a=>({...a,disabled:a.disabled!==void 0?typeof a.disabled=="boolean"?a.disabled:a.disabled():!1,show:a.show!==void 0?typeof a.show=="boolean"?a.show:a.show():!0})).filter(a=>a.show));return{actions:o,hasActions:e}};function He(n){return n.split("-")[1]}function Wo(n){return n==="y"?"height":"width"}function at(n){return n.split("-")[0]}function tn(n){return["top","bottom"].includes(at(n))?"x":"y"}function Ko(n,r,e){let{reference:o,floating:a}=n;const i=o.x+o.width/2-a.width/2,l=o.y+o.height/2-a.height/2,s=tn(r),c=Wo(s),d=o[c]/2-a[c]/2,u=s==="x";let p;switch(at(r)){case"top":p={x:i,y:o.y-a.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:l};break;case"left":p={x:o.x-a.width,y:l};break;default:p={x:o.x,y:o.y}}switch(He(r)){case"start":p[s]-=d*(e&&u?-1:1);break;case"end":p[s]+=d*(e&&u?-1:1)}return p}const ls=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let d=await l.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:p}=Ko(d,o,c),m=o,g={},b=0;for(let y=0;y<s.length;y++){const{name:x,fn:k}=s[y],{x:D,y:v,data:H,reset:A}=await k({x:u,y:p,initialPlacement:o,placement:m,strategy:a,middlewareData:g,rects:d,platform:l,elements:{reference:n,floating:r}});u=D??u,p=v??p,g={...g,[x]:{...g[x],...H}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(d=A.rects===!0?await l.getElementRects({reference:n,floating:r,strategy:a}):A.rects),{x:u,y:p}=Ko(d,m,c)),y=-1)}return{x:u,y:p,placement:m,strategy:a,middlewareData:g}};function nn(n,r){return typeof n=="function"?n(r):n}function ss(n){return typeof n!="number"?function(r){return{top:0,right:0,bottom:0,left:0,...r}}(n):{top:n,right:n,bottom:n,left:n}}function rn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Go(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:c}=n,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=nn(r,n),b=ss(g),y=s[m?p==="floating"?"reference":"floating":p],x=rn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(y)))==null||e?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:c})),k=p==="floating"?{...l.floating,x:o,y:a}:l.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),v=await(i.isElement==null?void 0:i.isElement(D))&&await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1},H=rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:D,strategy:c}):k);return{top:(x.top-H.top+b.top)/v.y,bottom:(H.bottom-x.bottom+b.bottom)/v.y,left:(x.left-H.left+b.left)/v.x,right:(H.right-x.right+b.right)/v.x}}const cs=Math.min,ds=Math.max;function Jo(n,r,e){return ds(n,cs(r,e))}const us=["top","right","bottom","left"],Xo=us.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),fs={left:"right",right:"left",bottom:"top",top:"bottom"};function Zo(n){return n.replace(/left|right|bottom|top/g,r=>fs[r])}function ps(n,r,e){e===void 0&&(e=!1);const o=He(n),a=tn(n),i=Wo(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Zo(l)),{main:l,cross:Zo(l)}}const ms={start:"end",end:"start"};function hs(n){return n.replace(/start|end/g,r=>ms[r])}const gs=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(r){var e,o,a;const{rects:i,middlewareData:l,placement:s,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:p,allowedPlacements:m=Xo,autoAlignment:g=!0,...b}=nn(n,r),y=p!==void 0||m===Xo?function(F,X,ae){return(F?[...ae.filter(pe=>He(pe)===F),...ae.filter(pe=>He(pe)!==F)]:ae.filter(pe=>at(pe)===pe)).filter(pe=>!F||He(pe)===F||!!X&&hs(pe)!==pe)}(p||null,g,m):m,x=await Go(r,b),k=((e=l.autoPlacement)==null?void 0:e.index)||0,D=y[k];if(D==null)return{};const{main:v,cross:H}=ps(D,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(s!==D)return{reset:{placement:y[0]}};const A=[x[at(D)],x[v],x[H]],R=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:A}],M=y[k+1];if(M)return{data:{index:k+1,overflows:R},reset:{placement:M}};const U=R.map(F=>{const X=He(F.placement);return[F.placement,X&&u?F.overflows.slice(0,2).reduce((ae,pe)=>ae+pe,0):F.overflows[0],F.overflows]}).sort((F,X)=>F[1]-X[1]),I=((a=U.filter(F=>F[2].slice(0,He(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:a[0])||U[0][0];return I!==s?{data:{index:k+1,overflows:R},reset:{placement:I}}:{}}}},bs=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){const{x:e,y:o}=r,a=await async function(i,l){const{placement:s,platform:c,elements:d}=i,u=await(c.isRTL==null?void 0:c.isRTL(d.floating)),p=at(s),m=He(s),g=tn(s)==="x",b=["left","top"].includes(p)?-1:1,y=u&&g?-1:1,x=nn(l,i);let{mainAxis:k,crossAxis:D,alignmentAxis:v}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...x};return m&&typeof v=="number"&&(D=m==="end"?-1*v:v),g?{x:D*y,y:k*b}:{x:k*b,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function ys(n){return n==="x"?"y":"x"}const ws=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:k,y:D}=x;return{x:k,y:D}}},...c}=nn(n,r),d={x:e,y:o},u=await Go(r,c),p=tn(at(a)),m=ys(p);let g=d[p],b=d[m];if(i){const x=p==="y"?"bottom":"right";g=Jo(g+u[p==="y"?"top":"left"],g,g-u[x])}if(l){const x=m==="y"?"bottom":"right";b=Jo(b+u[m==="y"?"top":"left"],b,b-u[x])}const y=s.fn({...r,[p]:g,[m]:b});return{...y,data:{x:y.x-e,y:y.y-o}}}}};function Ce(n){var r;return((r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Se(n){return Ce(n).getComputedStyle(n)}function Qo(n){return n instanceof Ce(n).Node}function Ue(n){return Qo(n)?(n.nodeName||"").toLowerCase():""}function ve(n){return n instanceof Ce(n).HTMLElement}function ge(n){return n instanceof Ce(n).Element}function ea(n){return typeof ShadowRoot>"u"?!1:n instanceof Ce(n).ShadowRoot||n instanceof ShadowRoot}function kt(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Se(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function xs(n){return["table","td","th"].includes(Ue(n))}function er(n){const r=tr(),e=Se(n);return e.transform!=="none"||e.perspective!=="none"||!r&&!!e.backdropFilter&&e.backdropFilter!=="none"||!r&&!!e.filter&&e.filter!=="none"||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function tr(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function on(n){return["html","body","#document"].includes(Ue(n))}const ta=Math.min,Et=Math.max,an=Math.round;function na(n){const r=Se(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=ve(n),i=a?n.offsetWidth:e,l=a?n.offsetHeight:o,s=an(e)!==i||an(o)!==l;return s&&(e=i,o=l),{width:e,height:o,fallback:s}}function ra(n){return ge(n)?n:n.contextElement}const oa={x:1,y:1};function it(n){const r=ra(n);if(!ve(r))return oa;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=na(r);let l=(i?an(e.width):e.width)/o,s=(i?an(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const aa={x:0,y:0};function ia(n,r,e){var o,a;if(r===void 0&&(r=!0),!tr())return aa;const i=n?Ce(n):window;return!e||r&&e!==i?aa:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function Ke(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=ra(n);let l=oa;r&&(o?ge(o)&&(l=it(o)):l=it(n));const s=ia(i,e,o);let c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,u=a.width/l.x,p=a.height/l.y;if(i){const m=Ce(i),g=o&&ge(o)?Ce(o):o;let b=m.frameElement;for(;b&&o&&g!==m;){const y=it(b),x=b.getBoundingClientRect(),k=getComputedStyle(b);x.x+=(b.clientLeft+parseFloat(k.paddingLeft))*y.x,x.y+=(b.clientTop+parseFloat(k.paddingTop))*y.y,c*=y.x,d*=y.y,u*=y.x,p*=y.y,c+=x.x,d+=x.y,b=Ce(b).frameElement}}return rn({width:u,height:p,x:c,y:d})}function ze(n){return((Qo(n)?n.ownerDocument:n.document)||window.document).documentElement}function ln(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function la(n){return Ke(ze(n)).left+ln(n).scrollLeft}function lt(n){if(Ue(n)==="html")return n;const r=n.assignedSlot||n.parentNode||ea(n)&&n.host||ze(n);return ea(r)?r.host:r}function sa(n){const r=lt(n);return on(r)?r.ownerDocument.body:ve(r)&&kt(r)?r:sa(r)}function _t(n,r){var e;r===void 0&&(r=[]);const o=sa(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=Ce(o);return a?r.concat(i,i.visualViewport||[],kt(o)?o:[]):r.concat(o,_t(o))}function ca(n,r,e){let o;if(r==="viewport")o=function(a,i){const l=Ce(a),s=ze(a),c=l.visualViewport;let d=s.clientWidth,u=s.clientHeight,p=0,m=0;if(c){d=c.width,u=c.height;const g=tr();(!g||g&&i==="fixed")&&(p=c.offsetLeft,m=c.offsetTop)}return{width:d,height:u,x:p,y:m}}(n,e);else if(r==="document")o=function(a){const i=ze(a),l=ln(a),s=a.ownerDocument.body,c=Et(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=Et(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let u=-l.scrollLeft+la(a);const p=-l.scrollTop;return Se(s).direction==="rtl"&&(u+=Et(i.clientWidth,s.clientWidth)-c),{width:c,height:d,x:u,y:p}}(ze(n));else if(ge(r))o=function(a,i){const l=Ke(a,!0,i==="fixed"),s=l.top+a.clientTop,c=l.left+a.clientLeft,d=ve(a)?it(a):{x:1,y:1};return{width:a.clientWidth*d.x,height:a.clientHeight*d.y,x:c*d.x,y:s*d.y}}(r,e);else{const a=ia(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return rn(o)}function da(n,r){const e=lt(n);return!(e===r||!ge(e)||on(e))&&(Se(e).position==="fixed"||da(e,r))}function ua(n,r){return ve(n)&&Se(n).position!=="fixed"?r?r(n):n.offsetParent:null}function fa(n,r){const e=Ce(n);if(!ve(n))return e;let o=ua(n,r);for(;o&&xs(o)&&Se(o).position==="static";)o=ua(o,r);return o&&(Ue(o)==="html"||Ue(o)==="body"&&Se(o).position==="static"&&!er(o))?e:o||function(a){let i=lt(a);for(;ve(i)&&!on(i);){if(er(i))return i;i=lt(i)}return null}(n)||e}function Cs(n,r,e){const o=ve(r),a=ze(r),i=e==="fixed",l=Ke(n,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if((Ue(r)!=="body"||kt(a))&&(s=ln(r)),ve(r)){const d=Ke(r,!0,i,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=la(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}const ks={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(d,u){const p=u.get(d);if(p)return p;let m=_t(d).filter(x=>ge(x)&&Ue(x)!=="body"),g=null;const b=Se(d).position==="fixed";let y=b?lt(d):d;for(;ge(y)&&!on(y);){const x=Se(y),k=er(y);k||x.position!=="fixed"||(g=null),(b?!k&&!g:!k&&x.position==="static"&&g&&["absolute","fixed"].includes(g.position)||kt(y)&&!k&&da(d,y))?m=m.filter(D=>D!==y):g=x,y=lt(y)}return u.set(d,m),m}(r,this._c):[].concat(e),l=[...i,o],s=l[0],c=l.reduce((d,u)=>{const p=ca(r,u,a);return d.top=Et(p.top,d.top),d.right=ta(p.right,d.right),d.bottom=ta(p.bottom,d.bottom),d.left=Et(p.left,d.left),d},ca(r,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=ve(e),i=ze(e);if(e===i)return r;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((Ue(e)!=="body"||kt(i))&&(l=ln(e)),ve(e))){const d=Ke(e);s=it(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-l.scrollLeft*s.x+c.x,y:r.y*s.y-l.scrollTop*s.y+c.y}},isElement:ge,getDimensions:function(n){return na(n)},getOffsetParent:fa,getDocumentElement:ze,getScale:it,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||fa,i=this.getDimensions;return{reference:Cs(r,await a(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Se(n).direction==="rtl"};function pa(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:s=!1}=o,c=a||i?[...ge(n)?_t(n):n.contextElement?_t(n.contextElement):[],..._t(r)]:[];c.forEach(m=>{const g=!ge(m)&&m.toString().includes("V");!a||s&&!g||m.addEventListener("scroll",e,{passive:!0}),i&&m.addEventListener("resize",e)});let d,u=null;l&&(u=new ResizeObserver(()=>{e()}),ge(n)&&!s&&u.observe(n),ge(n)||!n.contextElement||s||u.observe(n.contextElement),u.observe(r));let p=s?Ke(n):null;return s&&function m(){const g=Ke(n);!p||g.x===p.x&&g.y===p.y&&g.width===p.width&&g.height===p.height||e(),p=g,d=requestAnimationFrame(m)}(),e(),()=>{var m;c.forEach(g=>{a&&g.removeEventListener("scroll",e),i&&g.removeEventListener("resize",e)}),(m=u)==null||m.disconnect(),u=null,s&&cancelAnimationFrame(d)}}const Es=(n,r,e)=>{const o=new Map,a={platform:ks,...e},i={...a.platform,_c:o};return ls(n,r,{...a,platform:i})};function ma(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function ha(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(n,r){const e=ha(n);return Math.round(r*e)/e}function ba(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var M;return(M=t.unref(e.open))!=null?M:!0}),i=t.computed(()=>t.unref(e.middleware)),l=t.computed(()=>{var M;return(M=t.unref(e.placement))!=null?M:"bottom"}),s=t.computed(()=>{var M;return(M=t.unref(e.strategy))!=null?M:"absolute"}),c=t.computed(()=>{var M;return(M=t.unref(e.transform))!=null?M:!0}),d=t.computed(()=>ma(n.value)),u=t.computed(()=>ma(r.value)),p=t.ref(0),m=t.ref(0),g=t.ref(s.value),b=t.ref(l.value),y=t.shallowRef({}),x=t.ref(!1),k=t.computed(()=>{const M={position:g.value,left:"0",top:"0"};if(!u.value)return M;const U=ga(u.value,p.value),I=ga(u.value,m.value);return c.value?{...M,transform:"translate("+U+"px, "+I+"px)",...ha(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:U+"px",top:I+"px"}});let D;function v(){d.value==null||u.value==null||Es(d.value,u.value,{middleware:i.value,placement:l.value,strategy:s.value}).then(M=>{p.value=M.x,m.value=M.y,g.value=M.strategy,b.value=M.placement,y.value=M.middlewareData,x.value=!0})}function H(){typeof D=="function"&&(D(),D=void 0)}function A(){if(H(),o===void 0){v();return}if(d.value!=null&&u.value!=null){D=o(d.value,u.value,v);return}}function R(){a.value||(x.value=!1)}return t.watch([i,l,s],v,{flush:"sync"}),t.watch([d,u],A,{flush:"sync"}),t.watch(a,R,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(H),{x:t.shallowReadonly(p),y:t.shallowReadonly(m),strategy:t.shallowReadonly(g),placement:t.shallowReadonly(b),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(x),floatingStyles:k,update:v}}const _s=t.createElementVNode("span",{class:"sr-only"},"Open options",-1),Ds={class:"py-1"},Ns=["disabled","onClick"],Ss={class:"relative inline-flex items-center gap-x-1.5"},sn=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=qo(t.toRef(r,"actions")),a=t.ref(null),i=t.ref(null),{floatingStyles:l}=ba(a,i,{placement:"bottom-end",strategy:"fixed",whileElementsMounted:pa});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Yn),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(qn),{ref_key:"trigger",ref:a,class:"w-8 h-8 bg-white inline-flex items-center justify-center text-gray-700 rounded-full hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",disabled:!t.unref(o)},{default:t.withCtx(()=>[_s,t.createVNode(t.unref(ns),{class:"w-5 h-5","aria-hidden":"true"})]),_:1},8,["disabled"]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"wrapper",ref:i,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Wn),{class:"w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none"},{default:t.withCtx(()=>[t.createElementVNode("div",Ds,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,u)=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:u,as:"div"},{default:t.withCtx(({active:p})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([p?"bg-gray-100 text-gray-900":"text-gray-700","block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"]),onClick:d.onClick},[t.createElementVNode("span",Ss,[d.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(d.label),1)])],10,Ns)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),vs={class:"px-4 py-5 sm:p-6 text-center"},Vs=["textContent"],$s=["textContent"],ya=t.defineComponent({__name:"Cards",props:{cards:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["mt-5 grid grid-cols-1 gap-5","lg:grid-cols-"+r.cards.length])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.cards,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"bg-white overflow-hidden shadow rounded-lg"},[t.createElementVNode("div",vs,[t.createElementVNode("dl",null,[t.createElementVNode("dd",{class:"mt-1 text-3xl leading-9 font-semibold text-xy-blue",textContent:t.toDisplayString(o.primary)},null,8,Vs),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,$s)])])]))),128))],2))}}),Bs={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Ts=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),Ms={class:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"},Os={class:"mt-3 text-center sm:mt-5"},Ps={class:"mt-2"},As={class:"mt-5 sm:mt-6"},wa=t.defineComponent({__name:"ContentModal",props:{modelValue:{type:Boolean},title:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=o=>{r("update:modelValue",o)};return(o,a)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:o.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:o.modelValue,onClose:a[1]||(a[1]=i=>e(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",Bs,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Ts,t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Ms,[t.createElementVNode("div",null,[t.renderSlot(o.$slots,"icon"),t.createElementVNode("div",Os,[t.createVNode(t.unref(zn),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createElementVNode("div",Ps,[t.renderSlot(o.$slots,"default")])])]),t.createElementVNode("div",As,[t.createElementVNode("button",{type:"button",class:"inline-flex justify-center w-full xy-btn",onClick:a[0]||(a[0]=i=>e(!1))}," Go back ")])])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Ls={key:0,class:"text-red-700/80","aria-hidden":""},be=t.defineComponent({__name:"InputLabel",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"label"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>e.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Ls,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),se=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"text-sm leading-snug font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),Rs={key:0,class:"text-sm text-red-700"},Ve=t.defineComponent({__name:"InputError",props:{text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createElementBlock("p",Rs,t.toDisplayString(r.text),1)):t.createCommentVNode("",!0)}}),nr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],st={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:n=>typeof console<"u"&&console.warn(n),getWeek:n=>{const r=new Date(n.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Dt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:n=>{const r=n%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},fe=(n,r=2)=>`000${n}`.slice(r*-1),ke=n=>n===!0?1:0;function xa(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const rr=n=>n instanceof Array?n:[n];function ce(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function j(n,r,e){const o=window.document.createElement(n);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function cn(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ca(n,r){if(r(n))return n;if(n.parentNode)return Ca(n.parentNode,r)}function dn(n,r){const e=j("div","numInputWrapper"),o=j("input","numInput "+n),a=j("span","arrowUp"),i=j("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(const l in r)o.setAttribute(l,r[l]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function ye(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const or=()=>{},un=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],Is={D:or,F:function(n,r,e){n.setMonth(e.months.longhand.indexOf(r))},G:(n,r)=>{n.setHours(parseFloat(r))},H:(n,r)=>{n.setHours(parseFloat(r))},J:(n,r)=>{n.setDate(parseFloat(r))},K:(n,r,e)=>{n.setHours(n.getHours()%12+12*ke(new RegExp(e.amPM[1],"i").test(r)))},M:function(n,r,e){n.setMonth(e.months.shorthand.indexOf(r))},S:(n,r)=>{n.setSeconds(parseFloat(r))},U:(n,r)=>new Date(parseFloat(r)*1e3),W:function(n,r,e){const o=parseInt(r),a=new Date(n.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:(n,r)=>{n.setFullYear(parseFloat(r))},Z:(n,r)=>new Date(r),d:(n,r)=>{n.setDate(parseFloat(r))},h:(n,r)=>{n.setHours(parseFloat(r))},i:(n,r)=>{n.setMinutes(parseFloat(r))},j:(n,r)=>{n.setDate(parseFloat(r))},l:or,m:(n,r)=>{n.setMonth(parseFloat(r)-1)},n:(n,r)=>{n.setMonth(parseFloat(r)-1)},s:(n,r)=>{n.setSeconds(parseFloat(r))},u:(n,r)=>new Date(parseFloat(r)),w:or,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},ar={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Nt={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[Nt.w(n,r,e)]},F:function(n,r,e){return un(Nt.n(n,r,e)-1,!1,r)},G:function(n,r,e){return fe(Nt.h(n,r,e))},H:n=>fe(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[ke(n.getHours()>11)],M:function(n,r){return un(n.getMonth(),!0,r)},S:n=>fe(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>fe(n.getFullYear(),4),d:n=>fe(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>fe(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>fe(n.getMonth()+1),n:n=>n.getMonth()+1,s:n=>n.getSeconds(),u:n=>n.getTime(),w:n=>n.getDay(),y:n=>String(n.getFullYear()).substring(2)},ka=({config:n=st,l10n:r=Dt,isMobile:e=!1})=>(o,a,i)=>{const l=i||r;return n.formatDate!==void 0&&!e?n.formatDate(o,a,l):a.split("").map((s,c,d)=>Nt[s]&&d[c-1]!=="\\"?Nt[s](o,l,n):s!=="\\"?s:"").join("")},ir=({config:n=st,l10n:r=Dt})=>(e,o,a,i)=>{if(e!==0&&!e)return;const l=i||r;let s;const c=e;if(e instanceof Date)s=new Date(e.getTime());else if(typeof e!="string"&&e.toFixed!==void 0)s=new Date(e);else if(typeof e=="string"){const d=o||(n||st).dateFormat,u=String(e).trim();if(u==="today")s=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,d);else{s=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let p,m=[];for(let g=0,b=0,y="";g<d.length;g++){const x=d[g],k=x==="\\",D=d[g-1]==="\\"||k;if(ar[x]&&!D){y+=ar[x];const v=new RegExp(y).exec(e);v&&(p=!0)&&m[x!=="Y"?"push":"unshift"]({fn:Is[x],val:v[++b]})}else k||(y+=".");m.forEach(({fn:v,val:H})=>s=v(s,H,l)||s)}s=p?s:void 0}}if(!(s instanceof Date&&!isNaN(s.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${c}`));return}return a===!0&&s.setHours(0,0,0,0),s};function we(n,r,e=!0){return e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):n.getTime()-r.getTime()}const Fs=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),js={DAY:864e5};function lr(n){let r=n.defaultHour,e=n.defaultMinute,o=n.defaultSeconds;if(n.minDate!==void 0){const a=n.minDate.getHours(),i=n.minDate.getMinutes(),l=n.minDate.getSeconds();r<a&&(r=a),r===a&&e<i&&(e=i),r===a&&e===i&&o<l&&(o=n.minDate.getSeconds())}if(n.maxDate!==void 0){const a=n.maxDate.getHours(),i=n.maxDate.getMinutes();r=Math.min(r,a),r===a&&(e=Math.min(i,e)),r===a&&e===i&&(o=n.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(n,...r){if(!n)throw TypeError("Cannot convert undefined or null to object");for(const e of r)e&&Object.keys(e).forEach(o=>n[o]=e[o]);return n});const Hs=300;function Us(n,r){const e={config:Object.assign(Object.assign({},st),ee.defaultConfig),l10n:Dt};e.parseDate=ir({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=b,e._setHoursFromDate=p,e._positionCalendar=yn,e.changeMonth=pr,e.changeYear=gn,e.clear=fp,e.close=pp,e._createElement=j,e.destroy=mp,e.isEnabled=Je,e.jumpToDate=k,e.open=yp,e.redraw=ei,e.set=kp,e.setDate=Ep,e.toggle=Sp;function o(){e.utils={getDaysInMonth(f=e.currentMonth,h=e.currentYear){return f===1&&(h%4===0&&h%100!==0||h%400===0)?29:e.l10n.daysInMonth[f]}}}function a(){e.element=e.input=n,e.isOpen=!1,wp(),Qa(),Dp(),_p(),o(),e.isMobile||H(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&p(e.config.noCalendar?e.latestSelectedDateObj:void 0),Ye(!1)),l();const f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&f&&yn(),J("onReady")}function i(f){return f.bind(e)}function l(){const f=e.config;f.weekNumbers===!1&&f.showMonths===1||f.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){const h=(e.days.offsetWidth+1)*f.showMonths;e.daysContainer.style.width=h+"px",e.calendarContainer.style.width=h+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function s(f){if(e.selectedDates.length===0){const w=e.config.minDate===void 0||we(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),C=lr(e.config);w.setHours(C.hours,C.minutes,C.seconds,w.getMilliseconds()),e.selectedDates=[w],e.latestSelectedDateObj=w}f!==void 0&&f.type!=="blur"&&$p(f);const h=e._input.value;u(),Ye(),e._input.value!==h&&e._debouncedChange()}function c(f,h){return f%12+12*ke(h===e.l10n.amPM[1])}function d(f){switch(f%24){case 0:case 12:return 12;default:return f%12}}function u(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let f=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,h=(parseInt(e.minuteElement.value,10)||0)%60,w=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(f=c(f,e.amPM.textContent));const C=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const _=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;f=Math.min(f,_.getHours()),f===_.getHours()&&(h=Math.min(h,_.getMinutes())),h===_.getMinutes()&&(w=Math.min(w,_.getSeconds()))}if(C){const _=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;f=Math.max(f,_.getHours()),f===_.getHours()&&h<_.getMinutes()&&(h=_.getMinutes()),h===_.getMinutes()&&(w=Math.max(w,_.getSeconds()))}m(f,h,w)}function p(f){const h=f||e.latestSelectedDateObj;h&&m(h.getHours(),h.getMinutes(),h.getSeconds())}function m(f,h,w){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(f%24,h,w||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=fe(e.config.time_24hr?f:(12+f)%12+12*ke(f%12===0)),e.minuteElement.value=fe(h),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[ke(f>=12)]),e.secondElement!==void 0&&(e.secondElement.value=fe(w)))}function g(f){const h=ye(f),w=parseInt(h.value)+(f.delta||0);(w/1e3>1||f.key==="Enter"&&!/[^\d]/.test(w.toString()))&&gn(w)}function b(f,h,w,C){if(h instanceof Array)return h.forEach(N=>b(f,N,w,C));if(f instanceof Array)return f.forEach(N=>b(N,h,w,C));f.addEventListener(h,w,C),e._handlers.push({remove:()=>f.removeEventListener(h,w)})}function y(){J("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(h=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${h}]`),w=>b(w,"click",e[h]))}),e.isMobile){Np();return}const f=xa(bp,50);if(e._debouncedChange=xa(y,Hs),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(e.daysContainer,"mouseover",h=>{e.config.mode==="range"&&hr(ye(h))}),b(window.document.body,"keydown",gp),!e.config.inline&&!e.config.static&&b(window,"resize",f),window.ontouchstart!==void 0?b(window.document,"touchstart",mr):b(window.document,"mousedown",mr),b(window.document,"focus",mr,{capture:!0}),e.config.clickOpens===!0&&(b(e._input,"focus",e.open),b(e._input,"click",e.open)),e.daysContainer!==void 0&&(b(e.monthNav,"click",Vp),b(e.monthNav,["keyup","increment"],g),b(e.daysContainer,"click",ti)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const h=w=>ye(w).select();b(e.timeContainer,["increment"],s),b(e.timeContainer,"blur",s,{capture:!0}),b(e.timeContainer,"click",D),b([e.hourElement,e.minuteElement],["focus","click"],h),e.secondElement!==void 0&&b(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&b(e.amPM,"click",w=>{s(w),y()})}e.config.allowInput&&b(e._input,"blur",hp)}function k(f,h){const w=f!==void 0?e.parseDate(f):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),C=e.currentYear,N=e.currentMonth;try{w!==void 0&&(e.currentYear=w.getFullYear(),e.currentMonth=w.getMonth())}catch(_){_.message="Invalid date supplied: "+w,e.config.errorHandler(_)}h&&e.currentYear!==C&&(J("onYearChange"),ae()),h&&(e.currentYear!==C||e.currentMonth!==N)&&J("onMonthChange"),e.redraw()}function D(f){const h=ye(f);~h.className.indexOf("arrow")&&v(f,h.classList.contains("arrowUp")?1:-1)}function v(f,h,w){const C=f&&ye(f),N=w||C&&C.parentNode&&C.parentNode.firstChild,_=br("increment");_.delta=h,N&&N.dispatchEvent(_)}function H(){const f=window.document.createDocumentFragment();if(e.calendarContainer=j("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(f.appendChild(cp()),e.innerContainer=j("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:w,weekNumbers:C}=up();e.innerContainer.appendChild(w),e.weekNumbers=C,e.weekWrapper=w}e.rContainer=j("div","flatpickr-rContainer"),e.rContainer.appendChild(Ga()),e.daysContainer||(e.daysContainer=j("div","flatpickr-days"),e.daysContainer.tabIndex=-1),X(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),f.appendChild(e.innerContainer)}e.config.enableTime&&f.appendChild(dp()),ce(e.calendarContainer,"rangeMode",e.config.mode==="range"),ce(e.calendarContainer,"animate",e.config.animate===!0),ce(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(f);const h=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!h&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const w=j("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(w,e.element),w.appendChild(e.element),e.altInput&&w.appendChild(e.altInput),w.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function A(f,h,w,C){const N=Je(h,!0),_=j("span","flatpickr-day "+f,h.getDate().toString());return _.dateObj=h,_.$i=C,_.setAttribute("aria-label",e.formatDate(h,e.config.ariaDateFormat)),f.indexOf("hidden")===-1&&we(h,e.now)===0&&(e.todayDateElem=_,_.classList.add("today"),_.setAttribute("aria-current","date")),N?(_.tabIndex=-1,yr(h)&&(_.classList.add("selected"),e.selectedDateElem=_,e.config.mode==="range"&&(ce(_,"startRange",e.selectedDates[0]&&we(h,e.selectedDates[0],!0)===0),ce(_,"endRange",e.selectedDates[1]&&we(h,e.selectedDates[1],!0)===0),f==="nextMonthDay"&&_.classList.add("inRange")))):_.classList.add("flatpickr-disabled"),e.config.mode==="range"&&vp(h)&&!yr(h)&&_.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&f!=="prevMonthDay"&&w%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(h)+"</span>"),J("onDayCreate",_),_}function R(f){f.focus(),e.config.mode==="range"&&hr(f)}function M(f){const h=f>0?0:e.config.showMonths-1,w=f>0?e.config.showMonths:-1;for(let C=h;C!=w;C+=f){const N=e.daysContainer.children[C],_=f>0?0:N.children.length-1,B=f>0?N.children.length:-1;for(let $=_;$!=B;$+=f){const O=N.children[$];if(O.className.indexOf("hidden")===-1&&Je(O.dateObj))return O}}}function U(f,h){const w=f.className.indexOf("Month")===-1?f.dateObj.getMonth():e.currentMonth,C=h>0?e.config.showMonths:-1,N=h>0?1:-1;for(let _=w-e.currentMonth;_!=C;_+=N){const B=e.daysContainer.children[_],$=w-e.currentMonth===_?f.$i+h:h<0?B.children.length-1:0,O=B.children.length;for(let P=$;P>=0&&P<O&&P!=(h>0?O:-1);P+=N){const W=B.children[P];if(W.className.indexOf("hidden")===-1&&Je(W.dateObj)&&Math.abs(f.$i-P)>=Math.abs(h))return R(W)}}e.changeMonth(N),I(M(N),0)}function I(f,h){const w=bn(document.activeElement||document.body),C=f!==void 0?f:w?document.activeElement:e.selectedDateElem!==void 0&&bn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&bn(e.todayDateElem)?e.todayDateElem:M(h>0?1:-1);C===void 0?e._input.focus():w?U(C,h):R(C)}function F(f,h){const w=(new Date(f,h,1).getDay()-e.l10n.firstDayOfWeek+7)%7,C=e.utils.getDaysInMonth((h-1+12)%12,f),N=e.utils.getDaysInMonth(h,f),_=window.document.createDocumentFragment(),B=e.config.showMonths>1,$=B?"prevMonthDay hidden":"prevMonthDay",O=B?"nextMonthDay hidden":"nextMonthDay";let P=C+1-w,W=0;for(;P<=C;P++,W++)_.appendChild(A($,new Date(f,h-1,P),P,W));for(P=1;P<=N;P++,W++)_.appendChild(A("",new Date(f,h,P),P,W));for(let ie=N+1;ie<=42-w&&(e.config.showMonths===1||W%7!==0);ie++,W++)_.appendChild(A(O,new Date(f,h+1,ie%N),ie,W));const Ee=j("div","dayContainer");return Ee.appendChild(_),Ee}function X(){if(e.daysContainer===void 0)return;cn(e.daysContainer),e.weekNumbers&&cn(e.weekNumbers);const f=document.createDocumentFragment();for(let h=0;h<e.config.showMonths;h++){const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+h),f.appendChild(F(w.getFullYear(),w.getMonth()))}e.daysContainer.appendChild(f),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&hr()}function ae(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const f=function(h){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&h<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&h>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let h=0;h<12;h++){if(!f(h))continue;const w=j("option","flatpickr-monthDropdown-month");w.value=new Date(e.currentYear,h).getMonth().toString(),w.textContent=un(h,e.config.shorthandCurrentMonth,e.l10n),w.tabIndex=-1,e.currentMonth===h&&(w.selected=!0),e.monthsDropdownContainer.appendChild(w)}}function pe(){const f=j("div","flatpickr-month"),h=window.document.createDocumentFragment();let w;e.config.showMonths>1||e.config.monthSelectorType==="static"?w=j("span","cur-month"):(e.monthsDropdownContainer=j("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),b(e.monthsDropdownContainer,"change",B=>{const $=ye(B),O=parseInt($.value,10);e.changeMonth(O-e.currentMonth),J("onMonthChange")}),ae(),w=e.monthsDropdownContainer);const C=dn("cur-year",{tabindex:"-1"}),N=C.getElementsByTagName("input")[0];N.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&N.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(N.setAttribute("max",e.config.maxDate.getFullYear().toString()),N.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const _=j("div","flatpickr-current-month");return _.appendChild(w),_.appendChild(C),h.appendChild(_),f.appendChild(h),{container:f,yearElement:N,monthElement:w}}function Ka(){cn(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let f=e.config.showMonths;f--;){const h=pe();e.yearElements.push(h.yearElement),e.monthElements.push(h.monthElement),e.monthNav.appendChild(h.container)}e.monthNav.appendChild(e.nextMonthNav)}function cp(){return e.monthNav=j("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=j("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=j("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ka(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(f){e.__hidePrevMonthArrow!==f&&(ce(e.prevMonthNav,"flatpickr-disabled",f),e.__hidePrevMonthArrow=f)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(f){e.__hideNextMonthArrow!==f&&(ce(e.nextMonthNav,"flatpickr-disabled",f),e.__hideNextMonthArrow=f)}}),e.currentYearElement=e.yearElements[0],xn(),e.monthNav}function dp(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const f=lr(e.config);e.timeContainer=j("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const h=j("span","flatpickr-time-separator",":"),w=dn("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=w.getElementsByTagName("input")[0];const C=dn("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=C.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?f.hours:d(f.hours)),e.minuteElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():f.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(w),e.timeContainer.appendChild(h),e.timeContainer.appendChild(C),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const N=dn("flatpickr-second");e.secondElement=N.getElementsByTagName("input")[0],e.secondElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():f.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(j("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(N)}return e.config.time_24hr||(e.amPM=j("span","flatpickr-am-pm",e.l10n.amPM[ke((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function Ga(){e.weekdayContainer?cn(e.weekdayContainer):e.weekdayContainer=j("div","flatpickr-weekdays");for(let f=e.config.showMonths;f--;){const h=j("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(h)}return Ja(),e.weekdayContainer}function Ja(){if(!e.weekdayContainer)return;const f=e.l10n.firstDayOfWeek;let h=[...e.l10n.weekdays.shorthand];f>0&&f<h.length&&(h=[...h.splice(f,h.length),...h.splice(0,f)]);for(let w=e.config.showMonths;w--;)e.weekdayContainer.children[w].innerHTML=`
|
|
8
8
|
<span class='flatpickr-weekday'>
|
|
9
9
|
${h.join("</span><span class='flatpickr-weekday'>")}
|
|
10
10
|
</span>
|
package/package.json
CHANGED
package/types/helpers/Slots.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TableColumn, TableRow } from "../../composables/table";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
columns: TableColumn<TableRow>[];
|
|
4
|
-
rows: TableRow[];
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
6
|
-
columns?: unknown;
|
|
7
|
-
rows?: unknown;
|
|
8
|
-
} & {
|
|
9
|
-
columns: TableColumn<TableRow>[];
|
|
10
|
-
rows: TableRow[];
|
|
11
|
-
} & {}>, {}>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
-
} : {
|
|
18
|
-
type: import('vue').PropType<T[K]>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as TableTypes from "../../composables/table";
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
tableData: Omit<TableTypes.Static, "currentUser">;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
5
|
-
tableData?: unknown;
|
|
6
|
-
} & {
|
|
7
|
-
tableData: Omit<TableTypes.Static, "currentUser">;
|
|
8
|
-
} & {}>, {}>, {
|
|
9
|
-
actions: (_: {
|
|
10
|
-
row: Record<string, unknown>;
|
|
11
|
-
}) => any;
|
|
12
|
-
}>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as TableTypes from "../../composables/table";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
clickable?: boolean | undefined;
|
|
4
|
-
loader?: boolean | undefined;
|
|
5
|
-
tableData: TableTypes.Dynamic;
|
|
6
|
-
}>, {
|
|
7
|
-
clickable: boolean;
|
|
8
|
-
loader: boolean;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
handleClick: (v: any) => void;
|
|
11
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
12
|
-
tableData?: unknown;
|
|
13
|
-
clickable?: unknown;
|
|
14
|
-
loader?: unknown;
|
|
15
|
-
} & {
|
|
16
|
-
tableData: TableTypes.Dynamic;
|
|
17
|
-
clickable: boolean;
|
|
18
|
-
loader: boolean;
|
|
19
|
-
} & {}> & {
|
|
20
|
-
onHandleClick?: ((v: any) => any) | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
clickable: boolean;
|
|
23
|
-
loader: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: import('vue').PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
37
|
-
default: D[K];
|
|
38
|
-
} : P[K];
|
|
39
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ActionMenuItemCallback } from "../../composables/nav";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
items: ActionMenuItemCallback[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
5
|
-
items?: unknown;
|
|
6
|
-
} & {
|
|
7
|
-
items: ActionMenuItemCallback[];
|
|
8
|
-
} & {}>, {}>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
-
} : {
|
|
15
|
-
type: import('vue').PropType<T[K]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ActionMenuEmit } from "../../composables/nav";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
items: ActionMenuEmit[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
click: (v: string) => void;
|
|
6
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
7
|
-
items?: unknown;
|
|
8
|
-
} & {
|
|
9
|
-
items: ActionMenuEmit[];
|
|
10
|
-
} & {}> & {
|
|
11
|
-
onClick?: ((v: string) => any) | undefined;
|
|
12
|
-
}, {}>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|