@returnless/focus-ui 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost';
|
|
1
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost' | 'outline';
|
|
2
2
|
export interface ButtonProps {
|
|
3
3
|
/** The button's content alignment. */
|
|
4
4
|
align?: 'left' | 'center' | 'right';
|
package/dist/focus-ui.js
CHANGED
|
@@ -3072,6 +3072,7 @@ const ff = /* @__PURE__ */ T({
|
|
|
3072
3072
|
{ "bg-slate-200 hover:bg-slate-300": e.variant === "secondary" },
|
|
3073
3073
|
{ "bg-red-500/20 hover:bg-red-500/30 text-red-600": e.variant === "destructive" },
|
|
3074
3074
|
{ "hover:bg-slate-200": e.variant === "ghost" },
|
|
3075
|
+
{ "hover:bg-slate-200 ring-1 ring-slate-200 ring-inset": e.variant === "outline" },
|
|
3075
3076
|
{ "px-4 py-3": e.size === "normal" && !e.iconOnly },
|
|
3076
3077
|
{ "px-3 py-2": e.size === "small" && !e.iconOnly },
|
|
3077
3078
|
{ "p-3": e.size === "normal" && e.iconOnly },
|
|
@@ -5382,7 +5383,10 @@ const Ab = /* @__PURE__ */ Z(wb, [["render", Sb]]), Eb = ["aria-labelledby"], xb
|
|
|
5382
5383
|
[ji, b(r)]
|
|
5383
5384
|
]);
|
|
5384
5385
|
}
|
|
5385
|
-
}), Rb = ["onMouseenter"], Bb = {
|
|
5386
|
+
}), Rb = ["onMouseenter"], Bb = {
|
|
5387
|
+
key: 1,
|
|
5388
|
+
class: "flex items-center justify-between mt-2 px-3"
|
|
5389
|
+
}, Jx = /* @__PURE__ */ T({
|
|
5386
5390
|
__name: "BarChart",
|
|
5387
5391
|
props: {
|
|
5388
5392
|
categories: {},
|
|
@@ -5400,7 +5404,7 @@ const Ab = /* @__PURE__ */ Z(wb, [["render", Sb]]), Eb = ["aria-labelledby"], xb
|
|
|
5400
5404
|
]), u = F(() => [
|
|
5401
5405
|
{ "first:rounded-b-sm last:rounded-t-sm": e.stacked },
|
|
5402
5406
|
{ "rounded-sm": !e.stacked }
|
|
5403
|
-
]), f = F(() => [
|
|
5407
|
+
]), f = F(() => e.data.length === 0 ? null : [
|
|
5404
5408
|
e.data[0][e.labelAccessorKey],
|
|
5405
5409
|
e.data[e.data.length - 1][e.labelAccessorKey]
|
|
5406
5410
|
]);
|
|
@@ -5418,12 +5422,12 @@ const Ab = /* @__PURE__ */ Z(wb, [["render", Sb]]), Eb = ["aria-labelledby"], xb
|
|
|
5418
5422
|
r.value = null;
|
|
5419
5423
|
}
|
|
5420
5424
|
return Se("barChartCategories", e.categories), Se("barChartHiddenCategories", n), Se("barChartHighlightedRecord", r), Se("barChartLabelAccessorKey", e.labelAccessorKey), (p, _) => (m(), w(it, null, [
|
|
5421
|
-
|
|
5425
|
+
p.categories.length > 1 ? (m(), L(Tb, { key: 0 })) : H("", !0),
|
|
5422
5426
|
A("div", {
|
|
5423
5427
|
ref_key: "$container",
|
|
5424
5428
|
ref: o,
|
|
5425
5429
|
class: "relative flex w-full mt-4",
|
|
5426
|
-
style: { "aspect-ratio": "16 / 5" }
|
|
5430
|
+
style: { "aspect-ratio": "16 / 5", "max-height": "250px" }
|
|
5427
5431
|
}, [
|
|
5428
5432
|
P(Pb, {
|
|
5429
5433
|
ref_key: "$tooltip",
|
|
@@ -5452,10 +5456,10 @@ const Ab = /* @__PURE__ */ Z(wb, [["render", Sb]]), Eb = ["aria-labelledby"], xb
|
|
|
5452
5456
|
], 2)
|
|
5453
5457
|
], 44, Rb))), 128))
|
|
5454
5458
|
], 512),
|
|
5455
|
-
|
|
5459
|
+
f.value ? (m(), w("div", Bb, [
|
|
5456
5460
|
A("div", null, J(f.value[0]), 1),
|
|
5457
5461
|
A("div", null, J(f.value[1]), 1)
|
|
5458
|
-
])
|
|
5462
|
+
])) : H("", !0)
|
|
5459
5463
|
], 64));
|
|
5460
5464
|
}
|
|
5461
5465
|
}), Mb = {}, Lb = { "aria-label": "breadcrumb" };
|
package/dist/focus-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(S,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(S=typeof globalThis<"u"?globalThis:S||self,o(S["@returnless/focus-ui"]={},S.Vue))})(this,function(S,o){"use strict";const pd={class:"w-full"},hd=o.defineComponent({__name:"Accordion",props:{orientation:{default:"vertical"}},setup(t){const e=o.ref(null);return o.provide("activeAccordionItem",e),(r,n)=>(o.openBlock(),o.createElementBlock("div",pd,[o.renderSlot(r.$slots,"default")]))}}),md=["id"],yd={class:"py-3"},gd=o.defineComponent({__name:"AccordionContent",setup(t){const e=o.inject("accordionItemActive"),r=o.inject("accordionItemId");function n(l){l.style.height="0"}function i(l){l.style.height=l.scrollHeight+"px"}function a(l){l.style.height=l.scrollHeight+"px"}function s(l){l.style.height="0"}return(l,c)=>(o.openBlock(),o.createBlock(o.Transition,{name:"accordion",onEnter:i,onLeave:s,onBeforeEnter:n,onBeforeLeave:a},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{id:o.unref(r),class:"transition-all duration-200 ease-in-out overflow-hidden",role:"region"},[o.createElementVNode("div",yd,[o.renderSlot(l.$slots,"default")])],8,md),[[o.vShow,o.unref(e)]])]),_:3}))}});var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ki(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function bd(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Nl={},Il={},Ti={exports:{}},ne=String,Pl=function(){return{isColorSupported:!1,reset:ne,bold:ne,dim:ne,italic:ne,underline:ne,inverse:ne,hidden:ne,strikethrough:ne,black:ne,red:ne,green:ne,yellow:ne,blue:ne,magenta:ne,cyan:ne,white:ne,gray:ne,bgBlack:ne,bgRed:ne,bgGreen:ne,bgYellow:ne,bgBlue:ne,bgMagenta:ne,bgCyan:ne,bgWhite:ne}};Ti.exports=Pl(),Ti.exports.createColors=Pl;var _d=Ti.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(c,u){for(var d in u)Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}e(t,{dim:function(){return s},default:function(){return l}});const r=n(_d);function n(c){return c&&c.__esModule?c:{default:c}}let i=new Set;function a(c,u,d){typeof process<"u"&&process.env.JEST_WORKER_ID||d&&i.has(d)||(d&&i.add(d),console.warn(""),u.forEach(m=>console.warn(c,"-",m)))}function s(c){return r.default.dim(c)}const l={info(c,u){a(r.default.bold(r.default.cyan("info")),...Array.isArray(c)?[c]:[u,c])},warn(c,u){a(r.default.bold(r.default.yellow("warn")),...Array.isArray(c)?[c]:[u,c])},risk(c,u){a(r.default.bold(r.default.magenta("risk")),...Array.isArray(c)?[c]:[u,c])}}})(Il),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=r(Il);function r(a){return a&&a.__esModule?a:{default:a}}function n({version:a,from:s,to:l}){e.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${a}, \`${s}\` has been renamed to \`${l}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(Nl);let Di=Nl;var wd=(Di.__esModule?Di:{default:Di}).default;const Vl=ki(wd);function Se(t,e){if(!Vl[t])throw new Error(`Color '${t}' does not exist in the Tailwind CSS color palette.`);return Vl[t][e]}function Ni(t,e){return t-e*Math.floor(t/e)}const Ml=1721426;function Jn(t,e,r,n){e=Ii(t,e);let i=e-1,a=-2;return r<=2?a=0:Zn(e)&&(a=-1),Ml-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}function Zn(t){return t%4===0&&(t%100!==0||t%400===0)}function Ii(t,e){return t==="BC"?1-e:e}function Sd(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const $d={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class lr{fromJulianDay(e){let r=e,n=r-Ml,i=Math.floor(n/146097),a=Ni(n,146097),s=Math.floor(a/36524),l=Ni(a,36524),c=Math.floor(l/1461),u=Ni(l,1461),d=Math.floor(u/365),m=i*400+s*100+c*4+d+(s!==4&&d!==4?1:0),[y,g]=Sd(m),h=r-Jn(y,g,1,1),_=2;r<Jn(y,g,3,1)?_=0:Zn(g)&&(_=1);let w=Math.floor(((h+_)*12+373)/367),v=r-Jn(y,g,w,1)+1;return new ur(y,g,w,v)}toJulianDay(e){return Jn(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return $d[Zn(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Zn(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const Ed={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Rl(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-kd(e))%7;return n<0&&(n+=7),n}function vd(t){return mt(Date.now(),t)}function Ad(t){return Nd(vd(t))}function Ll(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Cd(t,e){return Fl(t)-Fl(e)}function Fl(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let Pi=null;function Zr(){return Pi==null&&(Pi=new Intl.DateTimeFormat().resolvedOptions().timeZone),Pi}function Bd(t){return t.subtract({days:t.day-1})}function xd(t,e){let r=Rl(t,e);return t.subtract({days:r})}const jl=new Map;function Od(t){if(Intl.Locale){let r=jl.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&jl.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function kd(t){let e=Od(t);return e&&Ed[e]||0}function cr(t){t=tt(t,new lr);let e=Ii(t.era,t.year);return zl(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function zl(t,e,r,n,i,a,s){let l=new Date;return l.setUTCHours(n,i,a,s),l.setUTCFullYear(t,e-1,r),l.getTime()}function Vi(t,e){if(e==="UTC")return 0;if(t>0&&e===Zr())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:i,hour:a,minute:s,second:l}=Hl(t,e);return zl(r,n,i,a,s,l,0)-Math.floor(t/1e3)*1e3}const Ul=new Map;function Hl(t,e){let r=Ul.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ul.set(e,r));let n=r.formatToParts(new Date(t)),i={};for(let a of n)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Wl=864e5;function Td(t,e,r,n){return(r===n?[r]:[r,n]).filter(a=>Dd(t,e,a))}function Dd(t,e,r){let n=Hl(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function ht(t,e,r="compatible"){let n=fr(t);if(e==="UTC")return cr(n);if(e===Zr()&&r==="compatible"){n=tt(n,new lr);let c=new Date,u=Ii(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let i=cr(n),a=Vi(i-Wl,e),s=Vi(i+Wl,e),l=Td(n,e,i-a,i-s);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function ql(t,e,r="compatible"){return new Date(ht(t,e,r))}function mt(t,e){let r=Vi(t,e),n=new Date(t+r),i=n.getUTCFullYear(),a=n.getUTCMonth()+1,s=n.getUTCDate(),l=n.getUTCHours(),c=n.getUTCMinutes(),u=n.getUTCSeconds(),d=n.getUTCMilliseconds();return new dr(i,a,s,e,r,l,c,u,d)}function Nd(t){return new ur(t.calendar,t.era,t.year,t.month,t.day)}function fr(t,e){let r=0,n=0,i=0,a=0;if("timeZone"in t)({hour:r,minute:n,second:i,millisecond:a}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:i,millisecond:a}=e),new to(t.calendar,t.era,t.year,t.month,t.day,r,n,i,a)}function tt(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,Lt(n),n}function Id(t,e,r){if(t instanceof dr)return t.timeZone===e?t:Vd(t,e);let n=ht(t,e,r);return mt(n,e)}function Pd(t){let e=cr(t)-t.offset;return new Date(e)}function Vd(t,e){let r=cr(t)-t.offset;return tt(mt(r,e),t.calendar)}const Xr=36e5;function Xn(t,e){let r=t.copy(),n="hour"in r?Fd(r,e):0;Mi(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,Ri(r),Kl(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Md(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var a,s;let c=(a=(s=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,r);r.year=i,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Mi(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function Ri(t){for(;t.month<1;)Mi(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Mi(t,1)}function Md(t){for(;t.day<1;)t.month--,Ri(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Ri(t)}function Kl(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Lt(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Kl(t)}function Gl(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Yl(t,e){return Xn(t,Gl(e))}function Li(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),Lt(r),r}function Qn(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Ld(r),r}function Rd(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=eo(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=eo(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=eo(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=eo(t.hour,24),e}function Ld(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function eo(t,e){let r=t%e;return r<0&&(r+=e),r}function Fd(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Rd(t)}function Fi(t,e,r,n){let i=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),c=l.indexOf(t.era);if(c<0)throw new Error("Invalid era: "+t.era);c=yt(c,r,0,l.length-1,n==null?void 0:n.round),i.era=l[c],Lt(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(r=-r),i.year=yt(t.year,r,-1/0,9999,n==null?void 0:n.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,t);break;case"month":i.month=yt(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":i.day=yt(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(i),Lt(i),i}function Jl(t,e,r,n){let i=t.copy();switch(e){case"hour":{let a=t.hour,s=0,l=23;if((n==null?void 0:n.hourCycle)===12){let c=a>=12;s=c?12:0,l=c?23:11}i.hour=yt(a,r,s,l,n==null?void 0:n.round);break}case"minute":i.minute=yt(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":i.second=yt(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":i.millisecond=yt(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return i}function yt(t,e,r,n,i=!1){if(i){t+=Math.sign(e),t<r&&(t=n);let a=Math.abs(e);e>0?t=Math.ceil(t/a)*a:t=Math.floor(t/a)*a,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function Zl(t,e){let r;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let i=Xn(fr(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=ht(i,t.timeZone)}else r=cr(t)-t.offset;r+=e.milliseconds||0,r+=(e.seconds||0)*1e3,r+=(e.minutes||0)*6e4,r+=(e.hours||0)*36e5;let n=mt(r,t.timeZone);return tt(n,t.calendar)}function jd(t,e){return Zl(t,Gl(e))}function zd(t,e,r,n){switch(e){case"hour":{let i=0,a=23;if((n==null?void 0:n.hourCycle)===12){let h=t.hour>=12;i=h?12:0,a=h?23:11}let s=fr(t),l=tt(Qn(s,{hour:i}),new lr),c=[ht(l,t.timeZone,"earlier"),ht(l,t.timeZone,"later")].filter(h=>mt(h,t.timeZone).day===l.day)[0],u=tt(Qn(s,{hour:a}),new lr),d=[ht(u,t.timeZone,"earlier"),ht(u,t.timeZone,"later")].filter(h=>mt(h,t.timeZone).day===u.day).pop(),m=cr(t)-t.offset,y=Math.floor(m/Xr),g=m%Xr;return m=yt(y,r,Math.floor(c/Xr),Math.floor(d/Xr),n==null?void 0:n.round)*Xr+g,tt(mt(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Jl(t,e,r,n);case"era":case"year":case"month":case"day":{let i=Fi(fr(t),e,r,n),a=ht(i,t.timeZone);return tt(mt(a,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function Ud(t,e,r){let n=fr(t),i=Qn(Li(n,e),e);if(i.compare(n)===0)return t;let a=ht(i,t.timeZone,r);return tt(mt(a,t.timeZone),t.calendar)}const Hd=/^(\d{4})-(\d{2})-(\d{2})$/;function ji(t){let e=t.match(Hd);if(!e)throw new Error("Invalid ISO 8601 date string: "+t);let r=new ur(zi(e[1],0,9999),zi(e[2],1,12),1);return r.day=zi(e[3],0,r.calendar.getDaysInMonth(r)),r}function zi(t,e,r){let n=Number(t);if(n<e||n>r)throw new RangeError(`Value out of range: ${e} <= ${n} <= ${r}`);return n}function Wd(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Xl(t){let e=tt(t,new lr);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Ql(t){return`${Xl(t)}T${Wd(t)}`}function qd(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),n=t%36e5/6e4;return`${e}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function Kd(t){return`${Ql(t)}${qd(t.offset)}[${t.timeZone}]`}function Gd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ui(t,e,r){Gd(t,e),e.set(t,r)}function Hi(t){let e=typeof t[0]=="object"?t.shift():new lr,r;if(typeof t[0]=="string")r=t.shift();else{let s=e.getEras();r=s[s.length-1]}let n=t.shift(),i=t.shift(),a=t.shift();return[e,r,n,i,a]}var Yd=new WeakMap;class ur{copy(){return this.era?new ur(this.calendar,this.era,this.year,this.month,this.day):new ur(this.calendar,this.year,this.month,this.day)}add(e){return Xn(this,e)}subtract(e){return Yl(this,e)}set(e){return Li(this,e)}cycle(e,r,n){return Fi(this,e,r,n)}toDate(e){return ql(this,e)}toString(){return Xl(this)}compare(e){return Ll(this,e)}constructor(...e){Ui(this,Yd,{writable:!0,value:void 0});let[r,n,i,a,s]=Hi(e);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=s,Lt(this)}}var Jd=new WeakMap;class to{copy(){return this.era?new to(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new to(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Xn(this,e)}subtract(e){return Yl(this,e)}set(e){return Li(Qn(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Fi(this,e,r,n);default:return Jl(this,e,r,n)}}toDate(e,r){return ql(this,e,r)}toString(){return Ql(this)}compare(e){let r=Ll(this,e);return r===0?Cd(this,fr(e)):r}constructor(...e){Ui(this,Jd,{writable:!0,value:void 0});let[r,n,i,a,s]=Hi(e);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Lt(this)}}var Zd=new WeakMap;class dr{copy(){return this.era?new dr(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new dr(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Zl(this,e)}subtract(e){return jd(this,e)}set(e,r){return Ud(this,e,r)}cycle(e,r,n){return zd(this,e,r,n)}toDate(){return Pd(this)}toString(){return Kd(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Id(e,this.timeZone).toDate().getTime()}constructor(...e){Ui(this,Zd,{writable:!0,value:void 0});let[r,n,i,a,s]=Hi(e),l=e.shift(),c=e.shift();this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=s,this.timeZone=l,this.offset=c,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Lt(this)}}let Wi=new Map;class qi{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),i=this.formatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return ep()&&(this.resolvedHourCycle||(this.resolvedHourCycle=tp(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,r={}){this.formatter=ec(e,r),this.options=r}}const Xd={true:{ja:"h11"},false:{}};function ec(t,e={}){if(typeof e.hour12=="boolean"&&Qd()){e={...e};let i=Xd[String(e.hour12)][t.split("-")[0]],a=e.hour12?"h12":"h23";e.hourCycle=i??a,delete e.hour12}let r=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Wi.has(r))return Wi.get(r);let n=new Intl.DateTimeFormat(t,e);return Wi.set(r,n),n}let Ki=null;function Qd(){return Ki==null&&(Ki=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ki}let Gi=null;function ep(){return Gi==null&&(Gi=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Gi}function tp(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let r=ec(t,{...e,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(n===0&&i===23)return"h23";if(n===24&&i===23)return"h24";if(n===0&&i===11)return"h11";if(n===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function tc(t){function e(a,s=Zr()){return a instanceof dr?a.toDate():a.toDate(s)}function r(a,s={}){return new qi(t.value,s).format(e(a)).toString()}function n(a,s="narrow"){return new qi(t.value,{weekday:s}).format(a)}function i(a,s={}){return new qi(t.value,{...s,month:"long",year:"numeric"}).format(e(a))}return{format:r,dayOfWeek:n,fullMonthAndYear:i}}function rc(t,e){const r=ji(e.value),n=6*7,i=tc(t),a=o.ref(0),s=o.computed(()=>Bd(r.add({months:a.value}))),l=o.computed(()=>{const g=[],h=Rl(s.value,t.value),_=s.value.subtract({days:h});for(let w=0;w<n;w++){const v=_.add({days:w});g.push({day:v.day,selected:v.toString()===ji(e.value).toString(),inCurrentMonth:v.month===s.value.month,value:v.toString(),isToday:v.toString()===Ad(Zr()).toString()})}return g}),c=o.computed(()=>i.fullMonthAndYear(s.value)),u=o.computed(()=>{const g=xd(s.value,t.value);return Array.from({length:7}).map((h,_)=>{const w=g.add({days:_}).toDate(Zr());return i.dayOfWeek(w,"short")})}),d=o.computed(()=>i.format(ji(e.value),{dateStyle:"short"}));function m(){a.value-=1}function y(){a.value+=1}return{displayDate:d,grid:l,monthName:c,next:y,previous:m,weekDays:u}}const rp={focus:{default:["focus:ring-brand-100","focus:ring-2","focus:outline","focus:outline-1","focus:outline-offset-0","focus:outline-brand-500/50"],destructive:["focus:ring-red-100","focus:ring-2","focus:outline","focus:outline-1","focus:outline-offset-0","focus:outline-red-500/50"]},focusWithin:{default:["focus-within:border-brand-500","focus-within:ring-brand-100","focus-within:ring-2"],destructive:["focus-within:border-red-500","focus-within:ring-red-100","focus-within:ring-2"]}};function Oe(t,e="default"){return Array.isArray(t)?t.map(r=>Oe(r,e)).join(" "):rp[t][e]}function nc(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function np(){const t=new Set,e=i=>{t.delete(i)};return{on:i=>{t.add(i);const a=()=>e(i);return nc(a),{off:a}},off:e,trigger:(...i)=>Promise.all(Array.from(t).map(a=>a(...i)))}}function oc(t){return typeof t=="function"?t():o.unref(t)}const ro=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const op=t=>t!=null,ip=Object.prototype.toString,ap=t=>ip.call(t)==="[object Object]",no=()=>{},sp=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),lp=cp();function cp(){var t,e;return ro&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Qr(t){var e;const r=oc(t);return(e=r==null?void 0:r.$el)!=null?e:r}const ic=ro?window:void 0,fp=ro?window.document:void 0;function Ft(...t){let e,r,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,i]=t,e=ic):[e,r,n,i]=t,!e)return no;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(d=>d()),a.length=0},l=(d,m,y,g)=>(d.addEventListener(m,y,g),()=>d.removeEventListener(m,y,g)),c=o.watch(()=>[Qr(e),oc(i)],([d,m])=>{if(s(),!d)return;const y=ap(m)?{...m}:m;a.push(...r.flatMap(g=>n.map(h=>l(d,g,h,y))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return nc(u),u}let ac=!1;function Yi(t,e,r={}){const{window:n=ic,ignore:i=[],capture:a=!0,detectIframe:s=!1}=r;if(!n)return no;lp&&!ac&&(ac=!0,Array.from(n.document.body.children).forEach(y=>y.addEventListener("click",no)),n.document.documentElement.addEventListener("click",no));let l=!0;const c=y=>i.some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(h=>h===y.target||y.composedPath().includes(h));{const h=Qr(g);return h&&(y.target===h||y.composedPath().includes(h))}}),d=[Ft(n,"click",y=>{const g=Qr(t);if(!(!g||g===y.target||y.composedPath().includes(g))){if(y.detail===0&&(l=!c(y)),!l){l=!0;return}e(y)}},{passive:!0,capture:a}),Ft(n,"pointerdown",y=>{const g=Qr(t);l=!c(y)&&!!(g&&!y.composedPath().includes(g))},{passive:!0}),s&&Ft(n,"blur",y=>{setTimeout(()=>{var g;const h=Qr(t);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&e(y)},0)})].filter(Boolean);return()=>d.forEach(y=>y())}function up(t,e={}){const r=o.ref(!1),n=o.shallowRef(null);let i=0,a=!0;if(ro){const s=typeof e=="function"?{onDrop:e}:e,l=c=>{var u,d;const m=Array.from((d=(u=c.dataTransfer)==null?void 0:u.files)!=null?d:[]);return n.value=m.length===0?null:m};Ft(t,"dragenter",c=>{var u,d;const m=Array.from(((u=c==null?void 0:c.dataTransfer)==null?void 0:u.items)||[]).map(y=>y.kind==="file"?y.type:null).filter(op);if(s.dataTypes&&c.dataTransfer){const y=o.unref(s.dataTypes);if(a=typeof y=="function"?y(m):y?y.some(g=>m.includes(g)):!0,!a)return}c.preventDefault(),i+=1,r.value=!0,(d=s.onEnter)==null||d.call(s,l(c),c)}),Ft(t,"dragover",c=>{var u;a&&(c.preventDefault(),(u=s.onOver)==null||u.call(s,l(c),c))}),Ft(t,"dragleave",c=>{var u;a&&(c.preventDefault(),i-=1,i===0&&(r.value=!1),(u=s.onLeave)==null||u.call(s,l(c),c))}),Ft(t,"drop",c=>{var u;c.preventDefault(),i=0,r.value=!1,(u=s.onDrop)==null||u.call(s,l(c),c)})}return{files:n,isOverDropZone:r}}const en=new Map;function dp(t){const e=o.getCurrentScope();function r(l){var c;const u=en.get(t)||new Set;u.add(l),en.set(t,u);const d=()=>i(l);return(c=e==null?void 0:e.cleanups)==null||c.push(d),d}function n(l){function c(...u){i(c),l(...u)}return r(c)}function i(l){const c=en.get(t);c&&(c.delete(l),c.size||a())}function a(){en.delete(t)}function s(l,c){var u;(u=en.get(t))==null||u.forEach(d=>d(l,c))}return{on:r,once:n,off:i,emit:s,reset:a}}const pp={multiple:!0,accept:"*",reset:!1,directory:!1};function sc(t={}){const{document:e=fp}=t,r=o.ref(null),{on:n,trigger:i}=np();let a;e&&(a=e.createElement("input"),a.type="file",a.onchange=c=>{const u=c.target;r.value=u.files,i(r.value)});const s=()=>{r.value=null,a&&a.value&&(a.value="",i(null))},l=c=>{if(!a)return;const u={...pp,...t,...c};a.multiple=u.multiple,a.accept=u.accept,a.webkitdirectory=u.directory,sp(u,"capture")&&(a.capture=u.capture),u.reset&&s(),a.click()};return{files:o.readonly(r),open:l,reset:s,onChange:n}}function oe(t="id"){return Math.random().toString(36).replace("0.",`${t}-`||"")}function hp(){const t=o.ref([]),e=dp("toastNotifications");function r(){e.on(function(s){t.value.push(s)})}function n(s){t.value=t.value.filter(l=>l.id!==s.id)}function i(s){s.id=oe("toast-notification"),e.emit(s)}function a(s){s.forEach(l=>{l.id=oe("toast"),i(l)})}return{toastNotifications:t,initializeNotificationHandlers:r,closeToastNotification:n,emitToastNotificationEvent:i,emitToastNotificationEvents:a}}const mp=["aria-expanded"],yp=o.defineComponent({__name:"AccordionItem",setup(t){const e=oe("accordionItem"),r=o.inject("activeAccordionItem"),n=o.computed(()=>r.value===e);return o.provide("accordionItemId",e),o.provide("accordionItemActive",n),(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:"border-b","aria-expanded":n.value},[o.renderSlot(i.$slots,"default")],8,mp))}});function gp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 8a.75.75 0 0 1-.75.75H4.56l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 1.06L4.56 7.25h8.69A.75.75 0 0 1 14 8Z","clip-rule":"evenodd"})])}function bp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function _p(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4 1.75a.75.75 0 0 1 1.5 0V3h5V1.75a.75.75 0 0 1 1.5 0V3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2V1.75ZM4.5 6a1 1 0 0 0-1 1v4.5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-7Z","clip-rule":"evenodd"})])}function wp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function lc(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function cc(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.78 4.22a.75.75 0 0 1 0 1.06L7.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L5.47 8.53a.75.75 0 0 1 0-1.06l3.25-3.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Ji(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Sp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function $p(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Ep(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M2 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM12.5 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})])}function vp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l10.5 10.5a.75.75 0 1 0 1.06-1.06l-1.322-1.323a7.012 7.012 0 0 0 2.16-3.11.87.87 0 0 0 0-.567A7.003 7.003 0 0 0 4.82 3.76l-1.54-1.54Zm3.196 3.195 1.135 1.136A1.502 1.502 0 0 1 9.45 8.389l1.136 1.135a3 3 0 0 0-4.109-4.109Z","clip-rule":"evenodd"}),o.createElementVNode("path",{d:"m7.812 10.994 1.816 1.816A7.003 7.003 0 0 1 1.38 8.28a.87.87 0 0 1 0-.566 6.985 6.985 0 0 1 1.113-2.039l2.513 2.513a3 3 0 0 0 2.806 2.806Z"})])}function Ap(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),o.createElementVNode("path",{"fill-rule":"evenodd",d:"M1.38 8.28a.87.87 0 0 1 0-.566 7.003 7.003 0 0 1 13.238.006.87.87 0 0 1 0 .566A7.003 7.003 0 0 1 1.379 8.28ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z","clip-rule":"evenodd"})])}function Cp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z","clip-rule":"evenodd"})])}function Bp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z","clip-rule":"evenodd"})])}function xp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM12.735 14c.618 0 1.093-.561.872-1.139a6.002 6.002 0 0 0-11.215 0c-.22.578.254 1.139.872 1.139h9.47Z"})])}function oo(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"})])}const J=o.defineComponent({__name:"TextStyle",props:{subdued:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup(t){const e=t,r=o.computed(()=>[{"text-slate-500":e.subdued},{"font-medium":e.strong}]);return(n,i)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([r.value,"inline-block"])},[o.renderSlot(n.$slots,"default")],2))}}),Op=["aria-controls"],kp={class:"py-3 group-hover:underline"},Tp=o.defineComponent({__name:"AccordionTrigger",setup(t){const e=o.inject("activeAccordionItem"),r=o.inject("accordionItemId"),n=o.inject("accordionItemActive");function i(){e.value=e.value!==r?r:null}return(a,s)=>(o.openBlock(),o.createElementBlock("button",{"aria-controls":o.unref(r),class:"w-full flex flex-1 items-center justify-between group",onClick:i},[o.createElementVNode("span",kp,[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3})]),o.unref(n)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(lc),{key:0,class:"size-4"})),o.unref(n)?(o.openBlock(),o.createBlock(o.unref($p),{key:1,class:"size-4"})):o.createCommentVNode("",!0)],8,Op))}}),tn=Math.min,pr=Math.max,io=Math.round,At=t=>({x:t,y:t}),Dp={left:"right",right:"left",bottom:"top",top:"bottom"},Np={start:"end",end:"start"};function Zi(t,e,r){return pr(t,tn(e,r))}function rn(t,e){return typeof t=="function"?t(e):t}function jt(t){return t.split("-")[0]}function nn(t){return t.split("-")[1]}function fc(t){return t==="x"?"y":"x"}function Xi(t){return t==="y"?"height":"width"}function ao(t){return["top","bottom"].includes(jt(t))?"y":"x"}function Qi(t){return fc(ao(t))}function Ip(t,e,r){r===void 0&&(r=!1);const n=nn(t),i=Qi(t),a=Xi(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=so(s)),[s,so(s)]}function Pp(t){const e=so(t);return[ea(t),e,ea(e)]}function ea(t){return t.replace(/start|end/g,e=>Np[e])}function Vp(t,e,r){const n=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?a:s;default:return[]}}function Mp(t,e,r,n){const i=nn(t);let a=Vp(jt(t),r==="start",n);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(ea)))),a}function so(t){return t.replace(/left|right|bottom|top/g,e=>Dp[e])}function Rp(t){return{top:0,right:0,bottom:0,left:0,...t}}function uc(t){return typeof t!="number"?Rp(t):{top:t,right:t,bottom:t,left:t}}function lo(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function dc(t,e,r){let{reference:n,floating:i}=t;const a=ao(e),s=Qi(e),l=Xi(s),c=jt(e),u=a==="y",d=n.x+n.width/2-i.width/2,m=n.y+n.height/2-i.height/2,y=n[l]/2-i[l]/2;let g;switch(c){case"top":g={x:d,y:n.y-i.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:m};break;case"left":g={x:n.x-i.width,y:m};break;default:g={x:n.x,y:n.y}}switch(nn(e)){case"start":g[s]-=y*(r&&u?-1:1);break;case"end":g[s]+=y*(r&&u?-1:1);break}return g}const Lp=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:m}=dc(u,n,c),y=n,g={},h=0;for(let _=0;_<l.length;_++){const{name:w,fn:v}=l[_],{x:C,y:A,data:x,reset:k}=await v({x:d,y:m,initialPlacement:n,placement:y,strategy:i,middlewareData:g,rects:u,platform:s,elements:{reference:t,floating:e}});d=C??d,m=A??m,g={...g,[w]:{...g[w],...x}},k&&h<=50&&(h++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:d,y:m}=dc(u,y,c)),_=-1)}return{x:d,y:m,placement:y,strategy:i,middlewareData:g}};async function pc(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:s,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:y=!1,padding:g=0}=rn(e,t),h=uc(g),w=l[y?m==="floating"?"reference":"floating":m],v=lo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(w)))==null||r?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),C=m==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},k=lo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:A,strategy:c}):C);return{top:(v.top-k.top+h.top)/x.y,bottom:(k.bottom-v.bottom+h.bottom)/x.y,left:(v.left-k.left+h.left)/x.x,right:(k.right-v.right+h.right)/x.x}}const Fp=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:a,platform:s,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=rn(t,e)||{};if(u==null)return{};const m=uc(d),y={x:r,y:n},g=Qi(i),h=Xi(g),_=await s.getDimensions(u),w=g==="y",v=w?"top":"left",C=w?"bottom":"right",A=w?"clientHeight":"clientWidth",x=a.reference[h]+a.reference[g]-y[g]-a.floating[h],k=y[g]-a.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let V=T?T[A]:0;(!V||!await(s.isElement==null?void 0:s.isElement(T)))&&(V=l.floating[A]||a.floating[h]);const O=x/2-k/2,N=V/2-_[h]/2-1,H=tn(m[v],N),X=tn(m[C],N),U=H,q=V-_[h]-X,j=V/2-_[h]/2+O,Q=Zi(U,j,q),te=!c.arrow&&nn(i)!=null&&j!==Q&&a.reference[h]/2-(j<U?H:X)-_[h]/2<0,ce=te?j<U?j-U:j-q:0;return{[g]:y[g]+ce,data:{[g]:Q,centerOffset:j-Q-ce,...te&&{alignmentOffset:ce}},reset:te}}}),jp=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:a,rects:s,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:_=!0,...w}=rn(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=jt(i),C=jt(l)===l,A=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=y||(C||!_?[so(l)]:Pp(l));!y&&h!=="none"&&x.push(...Mp(l,_,h,A));const k=[l,...x],T=await pc(e,w),V=[];let O=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&V.push(T[v]),m){const U=Ip(i,s,A);V.push(T[U[0]],T[U[1]])}if(O=[...O,{placement:i,overflows:V}],!V.every(U=>U<=0)){var N,H;const U=(((N=a.flip)==null?void 0:N.index)||0)+1,q=k[U];if(q)return{data:{index:U,overflows:O},reset:{placement:q}};let j=(H=O.filter(Q=>Q.overflows[0]<=0).sort((Q,te)=>Q.overflows[1]-te.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(g){case"bestFit":{var X;const Q=(X=O.map(te=>[te.placement,te.overflows.filter(ce=>ce>0).reduce((ce,Le)=>ce+Le,0)]).sort((te,ce)=>te[1]-ce[1])[0])==null?void 0:X[0];Q&&(j=Q);break}case"initialPlacement":j=l;break}if(i!==j)return{reset:{placement:j}}}return{}}}};async function zp(t,e){const{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=jt(r),l=nn(r),c=ao(r)==="y",u=["left","top"].includes(s)?-1:1,d=a&&c?-1:1,m=rn(e,t);let{mainAxis:y,crossAxis:g,alignmentAxis:h}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof h=="number"&&(g=l==="end"?h*-1:h),c?{x:g*d,y:y*u}:{x:y*u,y:g*d}}const Up=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:a,placement:s,middlewareData:l}=e,c=await zp(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},Hp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:v,y:C}=w;return{x:v,y:C}}},...c}=rn(t,e),u={x:r,y:n},d=await pc(e,c),m=ao(jt(i)),y=fc(m);let g=u[y],h=u[m];if(a){const w=y==="y"?"top":"left",v=y==="y"?"bottom":"right",C=g+d[w],A=g-d[v];g=Zi(C,g,A)}if(s){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",C=h+d[w],A=h-d[v];h=Zi(C,h,A)}const _=l.fn({...e,[y]:g,[m]:h});return{..._,data:{x:_.x-r,y:_.y-n}}}}};function zt(t){return ta(t)?(t.nodeName||"").toLowerCase():"#document"}function Ie(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(ta(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ta(t){return t instanceof Node||t instanceof Ie(t).Node}function rt(t){return t instanceof Element||t instanceof Ie(t).Element}function nt(t){return t instanceof HTMLElement||t instanceof Ie(t).HTMLElement}function hc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ie(t).ShadowRoot}function on(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=We(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Wp(t){return["table","td","th"].includes(zt(t))}function ra(t){const e=na(),r=We(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function qp(t){let e=Bt(t);for(;nt(e)&&!hr(e);){if(ra(e))return e;e=Bt(e)}return null}function na(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hr(t){return["html","body","#document"].includes(zt(t))}function We(t){return Ie(t).getComputedStyle(t)}function co(t){return rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bt(t){if(zt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||hc(t)&&t.host||Ct(t);return hc(e)?e.host:e}function mc(t){const e=Bt(t);return hr(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&&on(e)?e:mc(e)}function oa(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=mc(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Ie(i);return a?e.concat(s,s.visualViewport||[],on(i)?i:[],s.frameElement&&r?oa(s.frameElement):[]):e.concat(i,oa(i,[],r))}function yc(t){const e=We(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=nt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=io(r)!==a||io(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function gc(t){return rt(t)?t:t.contextElement}function mr(t){const e=gc(t);if(!nt(e))return At(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:a}=yc(e);let s=(a?io(r.width):r.width)/n,l=(a?io(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Kp=At(0);function bc(t){const e=Ie(t);return!na()||!e.visualViewport?Kp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gp(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ie(t)?!1:e}function an(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),a=gc(t);let s=At(1);e&&(n?rt(n)&&(s=mr(n)):s=mr(t));const l=Gp(a,r,n)?bc(a):At(0);let c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,d=i.width/s.x,m=i.height/s.y;if(a){const y=Ie(a),g=n&&rt(n)?Ie(n):n;let h=y,_=h.frameElement;for(;_&&n&&g!==h;){const w=mr(_),v=_.getBoundingClientRect(),C=We(_),A=v.left+(_.clientLeft+parseFloat(C.paddingLeft))*w.x,x=v.top+(_.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,m*=w.y,c+=A,u+=x,h=Ie(_),_=h.frameElement}}return lo({width:d,height:m,x:c,y:u})}const Yp=[":popover-open",":modal"];function ia(t){return Yp.some(e=>{try{return t.matches(e)}catch{return!1}})}function Jp(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const a=i==="fixed",s=Ct(n),l=e?ia(e.floating):!1;if(n===s||l&&a)return r;let c={scrollLeft:0,scrollTop:0},u=At(1);const d=At(0),m=nt(n);if((m||!m&&!a)&&((zt(n)!=="body"||on(s))&&(c=co(n)),nt(n))){const y=an(n);u=mr(n),d.x=y.x+n.clientLeft,d.y=y.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x,y:r.y*u.y-c.scrollTop*u.y+d.y}}function Zp(t){return Array.from(t.getClientRects())}function _c(t){return an(Ct(t)).left+co(t).scrollLeft}function Xp(t){const e=Ct(t),r=co(t),n=t.ownerDocument.body,i=pr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=pr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+_c(t);const l=-r.scrollTop;return We(n).direction==="rtl"&&(s+=pr(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function Qp(t,e){const r=Ie(t),n=Ct(t),i=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;const u=na();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l,y:c}}function eh(t,e){const r=an(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=nt(t)?mr(t):At(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:s,height:l,x:c,y:u}}function wc(t,e,r){let n;if(e==="viewport")n=Qp(t,r);else if(e==="document")n=Xp(Ct(t));else if(rt(e))n=eh(e,r);else{const i=bc(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return lo(n)}function Sc(t,e){const r=Bt(t);return r===e||!rt(r)||hr(r)?!1:We(r).position==="fixed"||Sc(r,e)}function th(t,e){const r=e.get(t);if(r)return r;let n=oa(t,[],!1).filter(l=>rt(l)&&zt(l)!=="body"),i=null;const a=We(t).position==="fixed";let s=a?Bt(t):t;for(;rt(s)&&!hr(s);){const l=We(s),c=ra(s);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||on(s)&&!c&&Sc(t,s))?n=n.filter(d=>d!==s):i=l,s=Bt(s)}return e.set(t,n),n}function rh(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=[...r==="clippingAncestors"?ia(e)?[]:th(e,this._c):[].concat(r),n],l=s[0],c=s.reduce((u,d)=>{const m=wc(e,d,i);return u.top=pr(m.top,u.top),u.right=tn(m.right,u.right),u.bottom=tn(m.bottom,u.bottom),u.left=pr(m.left,u.left),u},wc(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function nh(t){const{width:e,height:r}=yc(t);return{width:e,height:r}}function oh(t,e,r){const n=nt(e),i=Ct(e),a=r==="fixed",s=an(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const c=At(0);if(n||!n&&!a)if((zt(e)!=="body"||on(i))&&(l=co(e)),n){const m=an(e,!0,a,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=_c(i));const u=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:u,y:d,width:s.width,height:s.height}}function aa(t){return We(t).position==="static"}function $c(t,e){return!nt(t)||We(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ec(t,e){const r=Ie(t);if(ia(t))return r;if(!nt(t)){let i=Bt(t);for(;i&&!hr(i);){if(rt(i)&&!aa(i))return i;i=Bt(i)}return r}let n=$c(t,e);for(;n&&Wp(n)&&aa(n);)n=$c(n,e);return n&&hr(n)&&aa(n)&&!ra(n)?r:n||qp(t)||r}const ih=async function(t){const e=this.getOffsetParent||Ec,r=this.getDimensions,n=await r(t.floating);return{reference:oh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ah(t){return We(t).direction==="rtl"}const sh={convertOffsetParentRelativeRectToViewportRelativeRect:Jp,getDocumentElement:Ct,getClippingRect:rh,getOffsetParent:Ec,getElementRects:ih,getClientRects:Zp,getDimensions:nh,getScale:mr,isElement:rt,isRTL:ah},lh=Up,ch=Hp,fh=jp,uh=Fp,dh=(t,e,r)=>{const n=new Map,i={platform:sh,...r},a={...i.platform,_c:n};return Lp(t,e,{...i,platform:a})};function ph(t){return t!=null&&typeof t=="object"&&"$el"in t}function hh(t){if(ph(t)){const e=t.$el;return ta(e)&&zt(e)==="#comment"?null:e}return t}function mh(t){return{name:"arrow",options:t,fn(e){const r=hh(o.unref(t.element));return r==null?{}:uh({element:r,padding:t.padding}).fn(e)}}}const sa=o.defineComponent({__name:"Popper",props:{trigger:{},placement:{},timeout:{default:0}},setup(t){const e=t,r=oe("popperBody"),n=oe("popperTrigger"),i=oe("popperArrow"),a=o.ref(!1),s=o.ref(),l=o.ref(),c=o.ref(),u=o.ref();o.provide("popperBodyId",r),o.provide("popperTriggerId",n),o.provide("popperBodyVisible",a),o.provide("popperArrowId",i);function d(){dh(l.value,c.value,{placement:e.placement,middleware:[mh({element:u}),lh(6),fh(),ch({padding:5})]}).then(({x:_,y:w,placement:v,middlewareData:C})=>{if(u.value!==null){const{x:A,y:x}=C.arrow,k={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(u.value.style,{left:A!=null?`${A}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",[k]:"-4px"})}Object.assign(c.value.style,{left:`${_}px`,top:`${w}px`})})}function m(){a.value=!0,d()}function y(){setTimeout(()=>{a.value=!1},e.timeout)}function g(){l.value.addEventListener("mouseenter",m),l.value.addEventListener("mouseleave",y)}function h(){l.value.addEventListener("click",()=>{a.value?y():m()})}return o.onMounted(()=>{l.value=document.getElementById(n),c.value=document.getElementById(r),u.value=document.getElementById(i),Yi(s,()=>{y()}),e.trigger==="hover"&&g(),e.trigger==="click"&&h()}),(_,w)=>(o.openBlock(),o.createElementBlock("span",{ref_key:"$popperWrapper",ref:s},[o.renderSlot(_.$slots,"default")],512))}}),yh=["id"],gh=o.defineComponent({__name:"PopperArrow",setup(t){const e=o.inject("popperArrowId");return(r,n)=>(o.openBlock(),o.createElementBlock("div",{id:o.unref(e),class:"w-2 h-2 rotate-45 bg-black",style:{position:"absolute"}},null,8,yh))}}),bh=["id"],la=o.defineComponent({__name:"PopperBody",setup(t){const e=o.inject("popperBodyId"),r=o.inject("popperBodyVisible");return(n,i)=>(o.openBlock(),o.createElementBlock("div",{id:o.unref(e),class:o.normalizeClass(["absolute z-10",{hidden:!o.unref(r),block:o.unref(r)}])},[o.renderSlot(n.$slots,"default")],10,bh))}}),_h=["id"],ca=o.defineComponent({__name:"PopperTrigger",setup(t){const e=o.inject("popperTriggerId");return(r,n)=>(o.openBlock(),o.createElementBlock("span",{id:o.unref(e),class:"inline-block"},[o.renderSlot(r.$slots,"default")],8,_h))}}),fa=o.defineComponent({__name:"Popover",props:{alignment:{}},setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(sa),{trigger:"click",placement:`bottom-${e.alignment}`},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["placement"]))}}),wh={class:"overflow-hidden rounded-md border bg-white shadow-lg"},ua=o.defineComponent({__name:"PopoverBody",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(la),null,{default:o.withCtx(()=>[o.createElementVNode("div",wh,[o.renderSlot(e.$slots,"default")])]),_:3}))}}),da=o.defineComponent({__name:"PopoverTrigger",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(ca),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),Sh=o.defineComponent({__name:"ActionList",props:{alignment:{default:"start"}},setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(fa),{alignment:e.alignment},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["alignment"]))}}),$h={class:"min-w-[200px]"},Eh=o.defineComponent({__name:"ActionListBody",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(ua),null,{default:o.withCtx(()=>[o.createElementVNode("div",$h,[o.renderSlot(e.$slots,"default")])]),_:3}))}}),fo=o.defineComponent({__name:"InertiaLink",props:{as:{},data:{},href:{},method:{},headers:{},onClick:{type:Function},preserveScroll:{type:[Boolean,Function]},preserveState:{type:[Boolean,Function,null]},replace:{type:Boolean},only:{},except:{},onCancelToken:{type:Function},onBefore:{type:Function},onStart:{type:Function},onProgress:{type:Function},onFinish:{type:Function},onCancel:{type:Function},onSuccess:{type:Function},queryStringArrayFormat:{}},setup(t){return(e,r)=>{const n=o.resolveComponent("InertiaLink",!0);return o.openBlock(),o.createBlock(n,o.normalizeProps(o.guardReactiveProps(e.$props)),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16)}}}),vh=["id"],Ah={key:0,class:"ml-2"},Fe=o.defineComponent({inheritAttrs:!1,__name:"Button",props:{align:{default:"center"},disabled:{type:Boolean,default:!1},disclosure:{type:Boolean,default:!1},external:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},href:{default:null},iconOnly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},native:{type:Boolean,default:!1},size:{default:"normal"},type:{default:"button"},variant:{default:"primary"}},setup(t){const e=t,r=oe("buttonLabel"),n=o.computed(()=>[{"bg-brand-500 hover:bg-brand-600 text-white":e.variant==="primary"},{"bg-slate-200 hover:bg-slate-300":e.variant==="secondary"},{"bg-red-500/20 hover:bg-red-500/30 text-red-600":e.variant==="destructive"},{"hover:bg-slate-200":e.variant==="ghost"},{"px-4 py-3":e.size==="normal"&&!e.iconOnly},{"px-3 py-2":e.size==="small"&&!e.iconOnly},{"p-3":e.size==="normal"&&e.iconOnly},{"p-2":e.size==="small"&&e.iconOnly},{"opacity-50 cursor-not-allowed":e.disabled},{"pointer-events-none opacity-75 justify-center":e.loading},{"w-full":e.fullWidth},...Oe("focus",e.variant==="destructive"?"destructive":"default")]),i=o.computed(()=>e.href?e.native?"a":fo:"button");return(a,s)=>(o.openBlock(),o.createElementBlock("span",null,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.value),o.mergeProps({"aria-busy":a.loading,"aria-disabled":a.disabled||a.loading,"aria-labelledby":o.unref(r),class:[n.value,"inline-flex items-center rounded text-sm font-medium leading-none active:opacity-80 active:shadow-inner"],disabled:a.disabled||a.loading,href:a.href,type:a.type,role:"button"},a.$attrs),{default:o.withCtx(()=>[o.createElementVNode("span",{id:o.unref(r),class:o.normalizeClass([{invisible:a.loading,"mx-auto":e.align==="center","mr-auto":e.align==="left","ml-auto":e.align==="right"},"inline-flex items-center justify-center space-x-2"])},[o.renderSlot(a.$slots,"default"),a.disclosure?(o.openBlock(),o.createElementBlock("span",Ah,[o.createVNode(o.unref(lc),{class:"h-4 w-4"})])):o.createCommentVNode("",!0)],10,vh),a.loading?(o.openBlock(),o.createBlock(o.unref(ud),{key:0,class:"absolute",variant:e.variant==="primary"?"light":"dark"},null,8,["variant"])):o.createCommentVNode("",!0)]),_:3},16,["aria-busy","aria-disabled","aria-labelledby","class","disabled","href","type"]))]))}}),Ch={visuallyHidden:"_visuallyHidden_o6qmb_6"},F=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},Bh={};function xh(t,e){return o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(t.$style.visuallyHidden)},[o.renderSlot(t.$slots,"default")],2)}const Ut=F(Bh,[["render",xh],["__cssModules",{$style:Ch}]]),Oh={class:"flex items-center space-x-2"},kh=o.defineComponent({__name:"ButtonBadge",props:{accessibilityLabel:{default:null},color:{}},setup(t){const e=t,r=o.computed(()=>({backgroundColor:Se(e.color,"400")}));return(n,i)=>(o.openBlock(),o.createElementBlock("span",{class:"-my-2 inline-flex rounded bg-slate-200 px-2 py-1 text-xs text-white",style:o.normalizeStyle(r.value)},[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.createElementVNode("div",Oh,[o.renderSlot(n.$slots,"default")])]),_:3}),n.accessibilityLabel?(o.openBlock(),o.createBlock(o.unref(Ut),{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.accessibilityLabel),1)]),_:1})):o.createCommentVNode("",!0)],4))}}),Th={},Dh={class:"text-sm leading-none"};function Nh(t,e){return o.openBlock(),o.createElementBlock("span",Dh,[o.renderSlot(t.$slots,"default")])}const vc=F(Th,[["render",Nh]]),Ih=["alt","crossorigin","src"],Ht=o.defineComponent({__name:"Image",props:{alt:{},source:{},crossOrigin:{default:void 0},rounded:{type:Boolean,default:!1}},emits:["load","error"],setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("img",o.mergeProps({alt:e.alt,crossorigin:e.crossOrigin,src:e.source},e.$attrs,{class:{rounded:e.rounded},onError:r[0]||(r[0]=n=>e.$emit("error")),onLoad:r[1]||(r[1]=n=>e.$emit("load"))}),null,16,Ih))}}),Ph={class:"flex-shrink-0 h-4 w-4 -mt-0.5 -mb-0.5"},yr=o.defineComponent({__name:"ButtonIcon",props:{alt:{default:void 0},icon:{type:[Function,Object,null],default:null},source:{default:null}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",Ph,[e.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.icon),{key:0})):o.createCommentVNode("",!0),e.source?(o.openBlock(),o.createBlock(o.unref(Ht),{key:1,alt:e.alt,source:e.source},null,8,["alt","source"])):o.createCommentVNode("",!0)]))}}),Vh={class:"block"},Mh=o.defineComponent({__name:"ActionListItem",props:{active:{type:Boolean,default:!1},icon:{type:[Function,Object,null],default:null},variant:{default:"ghost"}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("li",Vh,[o.createVNode(o.unref(Fe),o.mergeProps({active:e.active,variant:e.variant,align:"left","full-width":"",role:"menuitem",size:"small"},e.$attrs),{default:o.withCtx(()=>[e.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.icon),{key:0,class:"size-4"})):o.createCommentVNode("",!0),o.createVNode(o.unref(vc),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3},16,["active","variant"])]))}}),Rh={},Lh={class:"[&:not(:last-child)]:border-b p-1.5 space-y-0.5"};function Fh(t,e){return o.openBlock(),o.createElementBlock("ul",Lh,[o.renderSlot(t.$slots,"default")])}const jh=F(Rh,[["render",Fh]]),zh=o.defineComponent({__name:"ActionListTrigger",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(da),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),Uh=o.defineComponent({__name:"DismissableAlertButton",props:{variant:{default:"default"}},emits:["dismiss"],setup(t){const e=t,r=o.computed(()=>({"hover:bg-red-900/20":e.variant==="destructive","hover:bg-yellow-900/20":e.variant==="warning","hover:bg-slate-200":e.variant==="default"}));return(n,i)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass([r.value,"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded"]),"aria-label":"Dismiss notification",type:"button",onClick:i[0]||(i[0]=a=>n.$emit("dismiss"))},[o.createVNode(o.unref(oo),{class:"h-4 w-4"})],2))}}),Hh=["role","aria-live"],Wh=o.defineComponent({__name:"Alert",props:{flush:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},variant:{default:"default"}},emits:["dismiss"],setup(t,{emit:e}){const r=t,n=e;o.provide("alertVariant",r.variant);const i=o.ref(!1),a=o.computed(()=>[{"bg-white":r.variant==="default"},{"bg-blue-50 border-blue-500/40 text-blue-800":r.variant==="informative"},{"bg-red-50 border-red-500/40 text-red-800":r.variant==="destructive"},{"bg-yellow-50 border-yellow-500/40 text-yellow-800":r.variant==="warning"},{"border rounded px-4 py-3":!r.flush},{"border-y px-6 py-3 mt-6":r.flush}]),s=o.computed(()=>r.variant==="destructive"?"alert":"status"),l=o.computed(()=>r.variant==="destructive"?"assertive":"polite");function c(){n("dismiss"),i.value=!0}return(u,d)=>i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass([a.value,"relative shadow-sm"]),role:s.value,"aria-live":l.value,tabindex:"0"},[o.renderSlot(u.$slots,"default"),u.dismissible?(o.openBlock(),o.createBlock(Uh,{key:0,variant:u.variant,onDismiss:c},null,8,["variant"])):o.createCommentVNode("",!0)],10,Hh))}}),qh=o.defineComponent({__name:"AlertDescription",setup(t){const e=o.inject("alertVariant"),r=o.computed(()=>({"text-red-900/80":e==="destructive","text-yellow-900/80":e==="warning","text-gray-900/80":e==="default"}));return(n,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(r.value)},[o.renderSlot(n.$slots,"default")],2))}}),Kh={class:"mb-4 leading-none"},Gh=o.defineComponent({__name:"AlertTitle",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("h5",Kh,[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]))}}),Yh=["aria-describedby","aria-labelledby"],Jh={class:"flex min-h-full items-center justify-center"},Zh=o.defineComponent({__name:"AlertDialog",props:{open:{type:Boolean,default:!1}},emits:["cancel"],setup(t,{emit:e}){const r=e;function n(){r("cancel")}const i=oe("alertDialogLabel"),a=oe("alertDialogDescription");return o.provide("cancelAlertDialog",n),o.provide("alertDialogLabelledBy",i),o.provide("alertDialogDescribedBy",a),(s,l)=>s.open?(o.openBlock(),o.createElementBlock("div",{key:0,"aria-describedby":o.unref(a),"aria-labelledby":o.unref(i),class:"fixed top-0 left-0 z-10 h-screen w-screen select-none bg-slate-500/50 px-2 text-sm",role:"alertdialog"},[o.createElementVNode("div",Jh,[o.renderSlot(s.$slots,"default")])],8,Yh)):o.createCommentVNode("",!0)}}),Xh=o.defineComponent({__name:"AlertDialogActionButton",props:{variant:{default:"primary"}},setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(Fe),{variant:e.variant},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["variant"]))}}),Qh=o.defineComponent({__name:"AlertDialogCancelButton",setup(t){const e=o.inject("cancelAlertDialog");return(r,n)=>(o.openBlock(),o.createBlock(o.unref(Fe),{variant:"secondary",onClick:o.unref(e)},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["onClick"]))}}),em=o.defineComponent({__name:"AlertDialogContent",setup(t){const e=o.ref(!1),r=o.ref(null);Yi(r,i);function n(a){a.key==="Escape"&&i()}function i(){e.value=!0,setTimeout(()=>{e.value=!1},250)}return o.onMounted(()=>{document.addEventListener("keydown",n)}),o.onUnmounted(()=>{document.removeEventListener("keydown",n)}),(a,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"clickOutsideTarget",ref:r,class:o.normalizeClass([{shake:e.value},"w-full max-w-lg select-text overflow-hidden rounded-lg bg-white shadow-2xl"])},[o.renderSlot(a.$slots,"default")],2))}}),tm=o.defineComponent({__name:"AlertDialogDescription",setup(t){const e=o.inject("alertDialogLabelledBy");return(r,n)=>(o.openBlock(),o.createElementBlock("p",null,[o.createVNode(o.unref(J),{id:o.unref(e),subdued:""},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["id"])]))}}),rm={},nm={class:"space-x-2"};function om(t,e){return o.openBlock(),o.createElementBlock("div",nm,[o.renderSlot(t.$slots,"default")])}const uo=F(rm,[["render",om]]),im={class:"bg-slate-100 px-4 py-3 flex items-center justify-end"},am=o.defineComponent({__name:"AlertDialogFooter",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",im,[o.createVNode(o.unref(uo),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]))}}),sm={},lm={class:"flex flex-col space-y-4 p-6"};function cm(t,e){return o.openBlock(),o.createElementBlock("div",lm,[o.renderSlot(t.$slots,"default")])}const fm=F(sm,[["render",cm]]),gr=o.defineComponent({__name:"Heading",props:{level:{default:"h2"},size:{default:"xl"}},setup(t){const e=t,r=o.computed(()=>({"text-lg":e.size==="lg","text-xl":e.size==="xl","text-2xl":e.size==="2xl"}));return(n,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.level),{class:o.normalizeClass([r.value,"font-semibold leading-tight"])},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),um=o.defineComponent({__name:"AlertDialogTitle",setup(t){const e=o.inject("alertDialogLabelledBy");return(r,n)=>(o.openBlock(),o.createBlock(o.unref(gr),{id:o.unref(e),level:"h2"},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["id"]))}}),dm={class:"absolute inset-0 [&>*]:object-cover [&>*]:w-full [&>*]:h-full"},br=o.defineComponent({__name:"AspectRatio",props:{ratio:{default:1}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle({paddingBottom:`${100/e.ratio}%`}),class:"relative w-full"},[o.createElementVNode("div",dm,[o.renderSlot(e.$slots,"default")])],4))}}),pm=["aria-label"],hm={key:1,class:"absolute h-full w-full"},mm=o.defineComponent({__name:"Avatar",props:{size:{default:"md"},name:{default:void 0},initials:{default:null},source:{default:void 0},accessibilityLabel:{default:null}},setup(t){const e=t,r=o.ref("PENDING"),n=o.computed(()=>[{"size-4":e.size==="xs"},{"size-6":e.size==="sm"},{"size-8":e.size==="md"},{"size-10":e.size==="lg"},{"size-12":e.size==="xl"},{"bg-slate-200":r.value!=="LOADED"}]),i=o.computed(()=>[{"w-3 h-3":e.size==="xs"}]),a=o.computed(()=>[{"text-xs":e.size==="xs"},{"text-xs":e.size==="sm"},{"text-md":e.size==="md"},{"text-lg":e.size==="lg"},{"text-lg":e.size==="xl"}]);function s(d){return e.size==="xs"?d==null?void 0:d.slice(0,1):d}function l(){r.value="ERRORED"}function c(){r.value="LOADED"}const u=o.computed(()=>{const d=e.accessibilityLabel||e.name;return d||void 0});return(d,m)=>(o.openBlock(),o.createElementBlock("span",{"aria-label":u.value,class:o.normalizeClass([n.value,"relative flex items-center justify-center overflow-hidden rounded"])},[d.initials?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(xp),{key:0,class:o.normalizeClass(i.value),role:"img"},null,8,["class"])),d.source?(o.openBlock(),o.createElementBlock("span",hm,[o.createVNode(o.unref(br),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Ht),{alt:d.name,class:o.normalizeClass({hidden:r.value!=="LOADED"}),source:d.source,onError:l,onLoad:c},null,8,["alt","class","source"])]),_:1})])):o.createCommentVNode("",!0),d.initials&&r.value!=="LOADED"?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass([a.value,"font-semibold"])},o.toDisplayString(s(d.initials)),3)):o.createCommentVNode("",!0)],10,pm))}}),ym={class:"flex items-center space-x-2"},gm=o.defineComponent({__name:"Badge",props:{accessibilityLabel:{default:null},color:{},size:{default:"sm"}},setup(t){const e=t,r=o.computed(()=>({backgroundColor:Se(e.color,"100"),color:Se(e.color,"900")})),n=o.computed(()=>[{"text-xs px-2 py-1":e.size==="sm"},{"text-sm px-3 py-1.5":e.size==="md"},{"text-md px-4 py-2":e.size==="lg"}]);return(i,a)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["inline-flex rounded bg-slate-200",n.value]),style:o.normalizeStyle(r.value)},[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.createElementVNode("div",ym,[o.renderSlot(i.$slots,"default")])]),_:3}),i.accessibilityLabel?(o.openBlock(),o.createBlock(o.unref(Ut),{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.accessibilityLabel),1)]),_:1})):o.createCommentVNode("",!0)],6))}}),bm=o.defineComponent({__name:"BadgeContent",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),_m={},wm={class:"size-4"};function Sm(t,e){return o.openBlock(),o.createElementBlock("div",wm,[o.renderSlot(t.$slots,"default")])}const $m=F(_m,[["render",Sm]]);var Ac={exports:{}},Em=function(){var e=this,r=-1;return{next:function(){return r+=1,{value:e.items[r],done:r>=e.items.length}}}},vm=function(){return this.items};function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var ae={isArray:function(e){return Array.isArray(e)},isObject:function(e){return pa(e)==="object"&&Array.isArray(e)===!1&&e!==null},isFunction:function(e){return typeof e=="function"}},Am=ae,Cm=Am.isFunction,Cc=function(e){return e===void 0?this.sum()/this.items.length:Cm(e)?new this.constructor(this.items).sum(e)/this.items.length:new this.constructor(this.items).pluck(e).sum()/this.items.length},Bm=Cc,xm=Bm;function ha(t){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ha(t)}var Om=function(e){var r=this,n=[],i=0;if(Array.isArray(this.items))do{var a=this.items.slice(i,i+e),s=new this.constructor(a);n.push(s),i+=e}while(i<this.items.length);else if(ha(this.items)==="object"){var l=Object.keys(this.items),c=function(){var d=l.slice(i,i+e),m=new r.constructor({});d.forEach(function(y){return m.put(y,r.items[y])}),n.push(m),i+=e};do c();while(i<l.length)}else n.push(new this.constructor([this.items]));return new this.constructor(n)};function km(t){return Im(t)||Nm(t)||Dm(t)||Tm()}function Tm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1
|
+
(function(S,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(S=typeof globalThis<"u"?globalThis:S||self,o(S["@returnless/focus-ui"]={},S.Vue))})(this,function(S,o){"use strict";const pd={class:"w-full"},hd=o.defineComponent({__name:"Accordion",props:{orientation:{default:"vertical"}},setup(t){const e=o.ref(null);return o.provide("activeAccordionItem",e),(r,n)=>(o.openBlock(),o.createElementBlock("div",pd,[o.renderSlot(r.$slots,"default")]))}}),md=["id"],yd={class:"py-3"},gd=o.defineComponent({__name:"AccordionContent",setup(t){const e=o.inject("accordionItemActive"),r=o.inject("accordionItemId");function n(l){l.style.height="0"}function i(l){l.style.height=l.scrollHeight+"px"}function a(l){l.style.height=l.scrollHeight+"px"}function s(l){l.style.height="0"}return(l,c)=>(o.openBlock(),o.createBlock(o.Transition,{name:"accordion",onEnter:i,onLeave:s,onBeforeEnter:n,onBeforeLeave:a},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{id:o.unref(r),class:"transition-all duration-200 ease-in-out overflow-hidden",role:"region"},[o.createElementVNode("div",yd,[o.renderSlot(l.$slots,"default")])],8,md),[[o.vShow,o.unref(e)]])]),_:3}))}});var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ki(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function bd(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Nl={},Il={},Ti={exports:{}},ne=String,Pl=function(){return{isColorSupported:!1,reset:ne,bold:ne,dim:ne,italic:ne,underline:ne,inverse:ne,hidden:ne,strikethrough:ne,black:ne,red:ne,green:ne,yellow:ne,blue:ne,magenta:ne,cyan:ne,white:ne,gray:ne,bgBlack:ne,bgRed:ne,bgGreen:ne,bgYellow:ne,bgBlue:ne,bgMagenta:ne,bgCyan:ne,bgWhite:ne}};Ti.exports=Pl(),Ti.exports.createColors=Pl;var _d=Ti.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(c,u){for(var d in u)Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}e(t,{dim:function(){return s},default:function(){return l}});const r=n(_d);function n(c){return c&&c.__esModule?c:{default:c}}let i=new Set;function a(c,u,d){typeof process<"u"&&process.env.JEST_WORKER_ID||d&&i.has(d)||(d&&i.add(d),console.warn(""),u.forEach(m=>console.warn(c,"-",m)))}function s(c){return r.default.dim(c)}const l={info(c,u){a(r.default.bold(r.default.cyan("info")),...Array.isArray(c)?[c]:[u,c])},warn(c,u){a(r.default.bold(r.default.yellow("warn")),...Array.isArray(c)?[c]:[u,c])},risk(c,u){a(r.default.bold(r.default.magenta("risk")),...Array.isArray(c)?[c]:[u,c])}}})(Il),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const e=r(Il);function r(a){return a&&a.__esModule?a:{default:a}}function n({version:a,from:s,to:l}){e.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${a}, \`${s}\` has been renamed to \`${l}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(Nl);let Di=Nl;var wd=(Di.__esModule?Di:{default:Di}).default;const Vl=ki(wd);function Se(t,e){if(!Vl[t])throw new Error(`Color '${t}' does not exist in the Tailwind CSS color palette.`);return Vl[t][e]}function Ni(t,e){return t-e*Math.floor(t/e)}const Ml=1721426;function Jn(t,e,r,n){e=Ii(t,e);let i=e-1,a=-2;return r<=2?a=0:Zn(e)&&(a=-1),Ml-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}function Zn(t){return t%4===0&&(t%100!==0||t%400===0)}function Ii(t,e){return t==="BC"?1-e:e}function Sd(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const $d={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class lr{fromJulianDay(e){let r=e,n=r-Ml,i=Math.floor(n/146097),a=Ni(n,146097),s=Math.floor(a/36524),l=Ni(a,36524),c=Math.floor(l/1461),u=Ni(l,1461),d=Math.floor(u/365),m=i*400+s*100+c*4+d+(s!==4&&d!==4?1:0),[y,g]=Sd(m),h=r-Jn(y,g,1,1),_=2;r<Jn(y,g,3,1)?_=0:Zn(g)&&(_=1);let w=Math.floor(((h+_)*12+373)/367),v=r-Jn(y,g,w,1)+1;return new ur(y,g,w,v)}toJulianDay(e){return Jn(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return $d[Zn(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Zn(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const Ed={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Rl(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-kd(e))%7;return n<0&&(n+=7),n}function vd(t){return mt(Date.now(),t)}function Ad(t){return Nd(vd(t))}function Ll(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Cd(t,e){return Fl(t)-Fl(e)}function Fl(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let Pi=null;function Zr(){return Pi==null&&(Pi=new Intl.DateTimeFormat().resolvedOptions().timeZone),Pi}function Bd(t){return t.subtract({days:t.day-1})}function xd(t,e){let r=Rl(t,e);return t.subtract({days:r})}const jl=new Map;function Od(t){if(Intl.Locale){let r=jl.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&jl.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function kd(t){let e=Od(t);return e&&Ed[e]||0}function cr(t){t=tt(t,new lr);let e=Ii(t.era,t.year);return zl(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function zl(t,e,r,n,i,a,s){let l=new Date;return l.setUTCHours(n,i,a,s),l.setUTCFullYear(t,e-1,r),l.getTime()}function Vi(t,e){if(e==="UTC")return 0;if(t>0&&e===Zr())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:i,hour:a,minute:s,second:l}=Hl(t,e);return zl(r,n,i,a,s,l,0)-Math.floor(t/1e3)*1e3}const Ul=new Map;function Hl(t,e){let r=Ul.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ul.set(e,r));let n=r.formatToParts(new Date(t)),i={};for(let a of n)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Wl=864e5;function Td(t,e,r,n){return(r===n?[r]:[r,n]).filter(a=>Dd(t,e,a))}function Dd(t,e,r){let n=Hl(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function ht(t,e,r="compatible"){let n=fr(t);if(e==="UTC")return cr(n);if(e===Zr()&&r==="compatible"){n=tt(n,new lr);let c=new Date,u=Ii(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let i=cr(n),a=Vi(i-Wl,e),s=Vi(i+Wl,e),l=Td(n,e,i-a,i-s);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function ql(t,e,r="compatible"){return new Date(ht(t,e,r))}function mt(t,e){let r=Vi(t,e),n=new Date(t+r),i=n.getUTCFullYear(),a=n.getUTCMonth()+1,s=n.getUTCDate(),l=n.getUTCHours(),c=n.getUTCMinutes(),u=n.getUTCSeconds(),d=n.getUTCMilliseconds();return new dr(i,a,s,e,r,l,c,u,d)}function Nd(t){return new ur(t.calendar,t.era,t.year,t.month,t.day)}function fr(t,e){let r=0,n=0,i=0,a=0;if("timeZone"in t)({hour:r,minute:n,second:i,millisecond:a}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:i,millisecond:a}=e),new to(t.calendar,t.era,t.year,t.month,t.day,r,n,i,a)}function tt(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,Lt(n),n}function Id(t,e,r){if(t instanceof dr)return t.timeZone===e?t:Vd(t,e);let n=ht(t,e,r);return mt(n,e)}function Pd(t){let e=cr(t)-t.offset;return new Date(e)}function Vd(t,e){let r=cr(t)-t.offset;return tt(mt(r,e),t.calendar)}const Xr=36e5;function Xn(t,e){let r=t.copy(),n="hour"in r?Fd(r,e):0;Mi(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,Ri(r),Kl(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Md(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var a,s;let c=(a=(s=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,r);r.year=i,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Mi(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function Ri(t){for(;t.month<1;)Mi(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Mi(t,1)}function Md(t){for(;t.day<1;)t.month--,Ri(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Ri(t)}function Kl(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Lt(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Kl(t)}function Gl(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Yl(t,e){return Xn(t,Gl(e))}function Li(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),Lt(r),r}function Qn(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Ld(r),r}function Rd(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=eo(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=eo(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=eo(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=eo(t.hour,24),e}function Ld(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function eo(t,e){let r=t%e;return r<0&&(r+=e),r}function Fd(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Rd(t)}function Fi(t,e,r,n){let i=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),c=l.indexOf(t.era);if(c<0)throw new Error("Invalid era: "+t.era);c=yt(c,r,0,l.length-1,n==null?void 0:n.round),i.era=l[c],Lt(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(r=-r),i.year=yt(t.year,r,-1/0,9999,n==null?void 0:n.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,t);break;case"month":i.month=yt(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":i.day=yt(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(i),Lt(i),i}function Jl(t,e,r,n){let i=t.copy();switch(e){case"hour":{let a=t.hour,s=0,l=23;if((n==null?void 0:n.hourCycle)===12){let c=a>=12;s=c?12:0,l=c?23:11}i.hour=yt(a,r,s,l,n==null?void 0:n.round);break}case"minute":i.minute=yt(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":i.second=yt(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":i.millisecond=yt(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return i}function yt(t,e,r,n,i=!1){if(i){t+=Math.sign(e),t<r&&(t=n);let a=Math.abs(e);e>0?t=Math.ceil(t/a)*a:t=Math.floor(t/a)*a,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function Zl(t,e){let r;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let i=Xn(fr(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=ht(i,t.timeZone)}else r=cr(t)-t.offset;r+=e.milliseconds||0,r+=(e.seconds||0)*1e3,r+=(e.minutes||0)*6e4,r+=(e.hours||0)*36e5;let n=mt(r,t.timeZone);return tt(n,t.calendar)}function jd(t,e){return Zl(t,Gl(e))}function zd(t,e,r,n){switch(e){case"hour":{let i=0,a=23;if((n==null?void 0:n.hourCycle)===12){let h=t.hour>=12;i=h?12:0,a=h?23:11}let s=fr(t),l=tt(Qn(s,{hour:i}),new lr),c=[ht(l,t.timeZone,"earlier"),ht(l,t.timeZone,"later")].filter(h=>mt(h,t.timeZone).day===l.day)[0],u=tt(Qn(s,{hour:a}),new lr),d=[ht(u,t.timeZone,"earlier"),ht(u,t.timeZone,"later")].filter(h=>mt(h,t.timeZone).day===u.day).pop(),m=cr(t)-t.offset,y=Math.floor(m/Xr),g=m%Xr;return m=yt(y,r,Math.floor(c/Xr),Math.floor(d/Xr),n==null?void 0:n.round)*Xr+g,tt(mt(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Jl(t,e,r,n);case"era":case"year":case"month":case"day":{let i=Fi(fr(t),e,r,n),a=ht(i,t.timeZone);return tt(mt(a,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function Ud(t,e,r){let n=fr(t),i=Qn(Li(n,e),e);if(i.compare(n)===0)return t;let a=ht(i,t.timeZone,r);return tt(mt(a,t.timeZone),t.calendar)}const Hd=/^(\d{4})-(\d{2})-(\d{2})$/;function ji(t){let e=t.match(Hd);if(!e)throw new Error("Invalid ISO 8601 date string: "+t);let r=new ur(zi(e[1],0,9999),zi(e[2],1,12),1);return r.day=zi(e[3],0,r.calendar.getDaysInMonth(r)),r}function zi(t,e,r){let n=Number(t);if(n<e||n>r)throw new RangeError(`Value out of range: ${e} <= ${n} <= ${r}`);return n}function Wd(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Xl(t){let e=tt(t,new lr);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Ql(t){return`${Xl(t)}T${Wd(t)}`}function qd(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),n=t%36e5/6e4;return`${e}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function Kd(t){return`${Ql(t)}${qd(t.offset)}[${t.timeZone}]`}function Gd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ui(t,e,r){Gd(t,e),e.set(t,r)}function Hi(t){let e=typeof t[0]=="object"?t.shift():new lr,r;if(typeof t[0]=="string")r=t.shift();else{let s=e.getEras();r=s[s.length-1]}let n=t.shift(),i=t.shift(),a=t.shift();return[e,r,n,i,a]}var Yd=new WeakMap;class ur{copy(){return this.era?new ur(this.calendar,this.era,this.year,this.month,this.day):new ur(this.calendar,this.year,this.month,this.day)}add(e){return Xn(this,e)}subtract(e){return Yl(this,e)}set(e){return Li(this,e)}cycle(e,r,n){return Fi(this,e,r,n)}toDate(e){return ql(this,e)}toString(){return Xl(this)}compare(e){return Ll(this,e)}constructor(...e){Ui(this,Yd,{writable:!0,value:void 0});let[r,n,i,a,s]=Hi(e);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=s,Lt(this)}}var Jd=new WeakMap;class to{copy(){return this.era?new to(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new to(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Xn(this,e)}subtract(e){return Yl(this,e)}set(e){return Li(Qn(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Fi(this,e,r,n);default:return Jl(this,e,r,n)}}toDate(e,r){return ql(this,e,r)}toString(){return Ql(this)}compare(e){let r=Ll(this,e);return r===0?Cd(this,fr(e)):r}constructor(...e){Ui(this,Jd,{writable:!0,value:void 0});let[r,n,i,a,s]=Hi(e);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Lt(this)}}var Zd=new WeakMap;class dr{copy(){return this.era?new dr(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new dr(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Zl(this,e)}subtract(e){return jd(this,e)}set(e,r){return Ud(this,e,r)}cycle(e,r,n){return zd(this,e,r,n)}toDate(){return Pd(this)}toString(){return Kd(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Id(e,this.timeZone).toDate().getTime()}constructor(...e){Ui(this,Zd,{writable:!0,value:void 0});let[r,n,i,a,s]=Hi(e),l=e.shift(),c=e.shift();this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=s,this.timeZone=l,this.offset=c,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Lt(this)}}let Wi=new Map;class qi{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),i=this.formatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return ep()&&(this.resolvedHourCycle||(this.resolvedHourCycle=tp(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,r={}){this.formatter=ec(e,r),this.options=r}}const Xd={true:{ja:"h11"},false:{}};function ec(t,e={}){if(typeof e.hour12=="boolean"&&Qd()){e={...e};let i=Xd[String(e.hour12)][t.split("-")[0]],a=e.hour12?"h12":"h23";e.hourCycle=i??a,delete e.hour12}let r=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Wi.has(r))return Wi.get(r);let n=new Intl.DateTimeFormat(t,e);return Wi.set(r,n),n}let Ki=null;function Qd(){return Ki==null&&(Ki=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ki}let Gi=null;function ep(){return Gi==null&&(Gi=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Gi}function tp(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let r=ec(t,{...e,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(n===0&&i===23)return"h23";if(n===24&&i===23)return"h24";if(n===0&&i===11)return"h11";if(n===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function tc(t){function e(a,s=Zr()){return a instanceof dr?a.toDate():a.toDate(s)}function r(a,s={}){return new qi(t.value,s).format(e(a)).toString()}function n(a,s="narrow"){return new qi(t.value,{weekday:s}).format(a)}function i(a,s={}){return new qi(t.value,{...s,month:"long",year:"numeric"}).format(e(a))}return{format:r,dayOfWeek:n,fullMonthAndYear:i}}function rc(t,e){const r=ji(e.value),n=6*7,i=tc(t),a=o.ref(0),s=o.computed(()=>Bd(r.add({months:a.value}))),l=o.computed(()=>{const g=[],h=Rl(s.value,t.value),_=s.value.subtract({days:h});for(let w=0;w<n;w++){const v=_.add({days:w});g.push({day:v.day,selected:v.toString()===ji(e.value).toString(),inCurrentMonth:v.month===s.value.month,value:v.toString(),isToday:v.toString()===Ad(Zr()).toString()})}return g}),c=o.computed(()=>i.fullMonthAndYear(s.value)),u=o.computed(()=>{const g=xd(s.value,t.value);return Array.from({length:7}).map((h,_)=>{const w=g.add({days:_}).toDate(Zr());return i.dayOfWeek(w,"short")})}),d=o.computed(()=>i.format(ji(e.value),{dateStyle:"short"}));function m(){a.value-=1}function y(){a.value+=1}return{displayDate:d,grid:l,monthName:c,next:y,previous:m,weekDays:u}}const rp={focus:{default:["focus:ring-brand-100","focus:ring-2","focus:outline","focus:outline-1","focus:outline-offset-0","focus:outline-brand-500/50"],destructive:["focus:ring-red-100","focus:ring-2","focus:outline","focus:outline-1","focus:outline-offset-0","focus:outline-red-500/50"]},focusWithin:{default:["focus-within:border-brand-500","focus-within:ring-brand-100","focus-within:ring-2"],destructive:["focus-within:border-red-500","focus-within:ring-red-100","focus-within:ring-2"]}};function Oe(t,e="default"){return Array.isArray(t)?t.map(r=>Oe(r,e)).join(" "):rp[t][e]}function nc(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function np(){const t=new Set,e=i=>{t.delete(i)};return{on:i=>{t.add(i);const a=()=>e(i);return nc(a),{off:a}},off:e,trigger:(...i)=>Promise.all(Array.from(t).map(a=>a(...i)))}}function oc(t){return typeof t=="function"?t():o.unref(t)}const ro=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const op=t=>t!=null,ip=Object.prototype.toString,ap=t=>ip.call(t)==="[object Object]",no=()=>{},sp=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),lp=cp();function cp(){var t,e;return ro&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Qr(t){var e;const r=oc(t);return(e=r==null?void 0:r.$el)!=null?e:r}const ic=ro?window:void 0,fp=ro?window.document:void 0;function Ft(...t){let e,r,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,i]=t,e=ic):[e,r,n,i]=t,!e)return no;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(d=>d()),a.length=0},l=(d,m,y,g)=>(d.addEventListener(m,y,g),()=>d.removeEventListener(m,y,g)),c=o.watch(()=>[Qr(e),oc(i)],([d,m])=>{if(s(),!d)return;const y=ap(m)?{...m}:m;a.push(...r.flatMap(g=>n.map(h=>l(d,g,h,y))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return nc(u),u}let ac=!1;function Yi(t,e,r={}){const{window:n=ic,ignore:i=[],capture:a=!0,detectIframe:s=!1}=r;if(!n)return no;lp&&!ac&&(ac=!0,Array.from(n.document.body.children).forEach(y=>y.addEventListener("click",no)),n.document.documentElement.addEventListener("click",no));let l=!0;const c=y=>i.some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(h=>h===y.target||y.composedPath().includes(h));{const h=Qr(g);return h&&(y.target===h||y.composedPath().includes(h))}}),d=[Ft(n,"click",y=>{const g=Qr(t);if(!(!g||g===y.target||y.composedPath().includes(g))){if(y.detail===0&&(l=!c(y)),!l){l=!0;return}e(y)}},{passive:!0,capture:a}),Ft(n,"pointerdown",y=>{const g=Qr(t);l=!c(y)&&!!(g&&!y.composedPath().includes(g))},{passive:!0}),s&&Ft(n,"blur",y=>{setTimeout(()=>{var g;const h=Qr(t);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&e(y)},0)})].filter(Boolean);return()=>d.forEach(y=>y())}function up(t,e={}){const r=o.ref(!1),n=o.shallowRef(null);let i=0,a=!0;if(ro){const s=typeof e=="function"?{onDrop:e}:e,l=c=>{var u,d;const m=Array.from((d=(u=c.dataTransfer)==null?void 0:u.files)!=null?d:[]);return n.value=m.length===0?null:m};Ft(t,"dragenter",c=>{var u,d;const m=Array.from(((u=c==null?void 0:c.dataTransfer)==null?void 0:u.items)||[]).map(y=>y.kind==="file"?y.type:null).filter(op);if(s.dataTypes&&c.dataTransfer){const y=o.unref(s.dataTypes);if(a=typeof y=="function"?y(m):y?y.some(g=>m.includes(g)):!0,!a)return}c.preventDefault(),i+=1,r.value=!0,(d=s.onEnter)==null||d.call(s,l(c),c)}),Ft(t,"dragover",c=>{var u;a&&(c.preventDefault(),(u=s.onOver)==null||u.call(s,l(c),c))}),Ft(t,"dragleave",c=>{var u;a&&(c.preventDefault(),i-=1,i===0&&(r.value=!1),(u=s.onLeave)==null||u.call(s,l(c),c))}),Ft(t,"drop",c=>{var u;c.preventDefault(),i=0,r.value=!1,(u=s.onDrop)==null||u.call(s,l(c),c)})}return{files:n,isOverDropZone:r}}const en=new Map;function dp(t){const e=o.getCurrentScope();function r(l){var c;const u=en.get(t)||new Set;u.add(l),en.set(t,u);const d=()=>i(l);return(c=e==null?void 0:e.cleanups)==null||c.push(d),d}function n(l){function c(...u){i(c),l(...u)}return r(c)}function i(l){const c=en.get(t);c&&(c.delete(l),c.size||a())}function a(){en.delete(t)}function s(l,c){var u;(u=en.get(t))==null||u.forEach(d=>d(l,c))}return{on:r,once:n,off:i,emit:s,reset:a}}const pp={multiple:!0,accept:"*",reset:!1,directory:!1};function sc(t={}){const{document:e=fp}=t,r=o.ref(null),{on:n,trigger:i}=np();let a;e&&(a=e.createElement("input"),a.type="file",a.onchange=c=>{const u=c.target;r.value=u.files,i(r.value)});const s=()=>{r.value=null,a&&a.value&&(a.value="",i(null))},l=c=>{if(!a)return;const u={...pp,...t,...c};a.multiple=u.multiple,a.accept=u.accept,a.webkitdirectory=u.directory,sp(u,"capture")&&(a.capture=u.capture),u.reset&&s(),a.click()};return{files:o.readonly(r),open:l,reset:s,onChange:n}}function oe(t="id"){return Math.random().toString(36).replace("0.",`${t}-`||"")}function hp(){const t=o.ref([]),e=dp("toastNotifications");function r(){e.on(function(s){t.value.push(s)})}function n(s){t.value=t.value.filter(l=>l.id!==s.id)}function i(s){s.id=oe("toast-notification"),e.emit(s)}function a(s){s.forEach(l=>{l.id=oe("toast"),i(l)})}return{toastNotifications:t,initializeNotificationHandlers:r,closeToastNotification:n,emitToastNotificationEvent:i,emitToastNotificationEvents:a}}const mp=["aria-expanded"],yp=o.defineComponent({__name:"AccordionItem",setup(t){const e=oe("accordionItem"),r=o.inject("activeAccordionItem"),n=o.computed(()=>r.value===e);return o.provide("accordionItemId",e),o.provide("accordionItemActive",n),(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:"border-b","aria-expanded":n.value},[o.renderSlot(i.$slots,"default")],8,mp))}});function gp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 8a.75.75 0 0 1-.75.75H4.56l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 1.06L4.56 7.25h8.69A.75.75 0 0 1 14 8Z","clip-rule":"evenodd"})])}function bp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function _p(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4 1.75a.75.75 0 0 1 1.5 0V3h5V1.75a.75.75 0 0 1 1.5 0V3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2V1.75ZM4.5 6a1 1 0 0 0-1 1v4.5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-7Z","clip-rule":"evenodd"})])}function wp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function lc(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function cc(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.78 4.22a.75.75 0 0 1 0 1.06L7.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L5.47 8.53a.75.75 0 0 1 0-1.06l3.25-3.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Ji(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Sp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function $p(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Ep(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M2 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM12.5 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})])}function vp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l10.5 10.5a.75.75 0 1 0 1.06-1.06l-1.322-1.323a7.012 7.012 0 0 0 2.16-3.11.87.87 0 0 0 0-.567A7.003 7.003 0 0 0 4.82 3.76l-1.54-1.54Zm3.196 3.195 1.135 1.136A1.502 1.502 0 0 1 9.45 8.389l1.136 1.135a3 3 0 0 0-4.109-4.109Z","clip-rule":"evenodd"}),o.createElementVNode("path",{d:"m7.812 10.994 1.816 1.816A7.003 7.003 0 0 1 1.38 8.28a.87.87 0 0 1 0-.566 6.985 6.985 0 0 1 1.113-2.039l2.513 2.513a3 3 0 0 0 2.806 2.806Z"})])}function Ap(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),o.createElementVNode("path",{"fill-rule":"evenodd",d:"M1.38 8.28a.87.87 0 0 1 0-.566 7.003 7.003 0 0 1 13.238.006.87.87 0 0 1 0 .566A7.003 7.003 0 0 1 1.379 8.28ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z","clip-rule":"evenodd"})])}function Cp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z","clip-rule":"evenodd"})])}function Bp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z","clip-rule":"evenodd"})])}function xp(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM12.735 14c.618 0 1.093-.561.872-1.139a6.002 6.002 0 0 0-11.215 0c-.22.578.254 1.139.872 1.139h9.47Z"})])}function oo(t,e){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"})])}const J=o.defineComponent({__name:"TextStyle",props:{subdued:{type:Boolean,default:!1},strong:{type:Boolean,default:!1}},setup(t){const e=t,r=o.computed(()=>[{"text-slate-500":e.subdued},{"font-medium":e.strong}]);return(n,i)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([r.value,"inline-block"])},[o.renderSlot(n.$slots,"default")],2))}}),Op=["aria-controls"],kp={class:"py-3 group-hover:underline"},Tp=o.defineComponent({__name:"AccordionTrigger",setup(t){const e=o.inject("activeAccordionItem"),r=o.inject("accordionItemId"),n=o.inject("accordionItemActive");function i(){e.value=e.value!==r?r:null}return(a,s)=>(o.openBlock(),o.createElementBlock("button",{"aria-controls":o.unref(r),class:"w-full flex flex-1 items-center justify-between group",onClick:i},[o.createElementVNode("span",kp,[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3})]),o.unref(n)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(lc),{key:0,class:"size-4"})),o.unref(n)?(o.openBlock(),o.createBlock(o.unref($p),{key:1,class:"size-4"})):o.createCommentVNode("",!0)],8,Op))}}),tn=Math.min,pr=Math.max,io=Math.round,At=t=>({x:t,y:t}),Dp={left:"right",right:"left",bottom:"top",top:"bottom"},Np={start:"end",end:"start"};function Zi(t,e,r){return pr(t,tn(e,r))}function rn(t,e){return typeof t=="function"?t(e):t}function jt(t){return t.split("-")[0]}function nn(t){return t.split("-")[1]}function fc(t){return t==="x"?"y":"x"}function Xi(t){return t==="y"?"height":"width"}function ao(t){return["top","bottom"].includes(jt(t))?"y":"x"}function Qi(t){return fc(ao(t))}function Ip(t,e,r){r===void 0&&(r=!1);const n=nn(t),i=Qi(t),a=Xi(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=so(s)),[s,so(s)]}function Pp(t){const e=so(t);return[ea(t),e,ea(e)]}function ea(t){return t.replace(/start|end/g,e=>Np[e])}function Vp(t,e,r){const n=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?a:s;default:return[]}}function Mp(t,e,r,n){const i=nn(t);let a=Vp(jt(t),r==="start",n);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(ea)))),a}function so(t){return t.replace(/left|right|bottom|top/g,e=>Dp[e])}function Rp(t){return{top:0,right:0,bottom:0,left:0,...t}}function uc(t){return typeof t!="number"?Rp(t):{top:t,right:t,bottom:t,left:t}}function lo(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function dc(t,e,r){let{reference:n,floating:i}=t;const a=ao(e),s=Qi(e),l=Xi(s),c=jt(e),u=a==="y",d=n.x+n.width/2-i.width/2,m=n.y+n.height/2-i.height/2,y=n[l]/2-i[l]/2;let g;switch(c){case"top":g={x:d,y:n.y-i.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:m};break;case"left":g={x:n.x-i.width,y:m};break;default:g={x:n.x,y:n.y}}switch(nn(e)){case"start":g[s]-=y*(r&&u?-1:1);break;case"end":g[s]+=y*(r&&u?-1:1);break}return g}const Lp=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:m}=dc(u,n,c),y=n,g={},h=0;for(let _=0;_<l.length;_++){const{name:w,fn:v}=l[_],{x:C,y:A,data:x,reset:k}=await v({x:d,y:m,initialPlacement:n,placement:y,strategy:i,middlewareData:g,rects:u,platform:s,elements:{reference:t,floating:e}});d=C??d,m=A??m,g={...g,[w]:{...g[w],...x}},k&&h<=50&&(h++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:d,y:m}=dc(u,y,c)),_=-1)}return{x:d,y:m,placement:y,strategy:i,middlewareData:g}};async function pc(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:s,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:y=!1,padding:g=0}=rn(e,t),h=uc(g),w=l[y?m==="floating"?"reference":"floating":m],v=lo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(w)))==null||r?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),C=m==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},k=lo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:A,strategy:c}):C);return{top:(v.top-k.top+h.top)/x.y,bottom:(k.bottom-v.bottom+h.bottom)/x.y,left:(v.left-k.left+h.left)/x.x,right:(k.right-v.right+h.right)/x.x}}const Fp=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:a,platform:s,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=rn(t,e)||{};if(u==null)return{};const m=uc(d),y={x:r,y:n},g=Qi(i),h=Xi(g),_=await s.getDimensions(u),w=g==="y",v=w?"top":"left",C=w?"bottom":"right",A=w?"clientHeight":"clientWidth",x=a.reference[h]+a.reference[g]-y[g]-a.floating[h],k=y[g]-a.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let V=T?T[A]:0;(!V||!await(s.isElement==null?void 0:s.isElement(T)))&&(V=l.floating[A]||a.floating[h]);const O=x/2-k/2,N=V/2-_[h]/2-1,H=tn(m[v],N),X=tn(m[C],N),U=H,q=V-_[h]-X,j=V/2-_[h]/2+O,Q=Zi(U,j,q),te=!c.arrow&&nn(i)!=null&&j!==Q&&a.reference[h]/2-(j<U?H:X)-_[h]/2<0,ce=te?j<U?j-U:j-q:0;return{[g]:y[g]+ce,data:{[g]:Q,centerOffset:j-Q-ce,...te&&{alignmentOffset:ce}},reset:te}}}),jp=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:a,rects:s,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:_=!0,...w}=rn(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=jt(i),C=jt(l)===l,A=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=y||(C||!_?[so(l)]:Pp(l));!y&&h!=="none"&&x.push(...Mp(l,_,h,A));const k=[l,...x],T=await pc(e,w),V=[];let O=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&V.push(T[v]),m){const U=Ip(i,s,A);V.push(T[U[0]],T[U[1]])}if(O=[...O,{placement:i,overflows:V}],!V.every(U=>U<=0)){var N,H;const U=(((N=a.flip)==null?void 0:N.index)||0)+1,q=k[U];if(q)return{data:{index:U,overflows:O},reset:{placement:q}};let j=(H=O.filter(Q=>Q.overflows[0]<=0).sort((Q,te)=>Q.overflows[1]-te.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(g){case"bestFit":{var X;const Q=(X=O.map(te=>[te.placement,te.overflows.filter(ce=>ce>0).reduce((ce,Le)=>ce+Le,0)]).sort((te,ce)=>te[1]-ce[1])[0])==null?void 0:X[0];Q&&(j=Q);break}case"initialPlacement":j=l;break}if(i!==j)return{reset:{placement:j}}}return{}}}};async function zp(t,e){const{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=jt(r),l=nn(r),c=ao(r)==="y",u=["left","top"].includes(s)?-1:1,d=a&&c?-1:1,m=rn(e,t);let{mainAxis:y,crossAxis:g,alignmentAxis:h}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof h=="number"&&(g=l==="end"?h*-1:h),c?{x:g*d,y:y*u}:{x:y*u,y:g*d}}const Up=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:a,placement:s,middlewareData:l}=e,c=await zp(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},Hp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:v,y:C}=w;return{x:v,y:C}}},...c}=rn(t,e),u={x:r,y:n},d=await pc(e,c),m=ao(jt(i)),y=fc(m);let g=u[y],h=u[m];if(a){const w=y==="y"?"top":"left",v=y==="y"?"bottom":"right",C=g+d[w],A=g-d[v];g=Zi(C,g,A)}if(s){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",C=h+d[w],A=h-d[v];h=Zi(C,h,A)}const _=l.fn({...e,[y]:g,[m]:h});return{..._,data:{x:_.x-r,y:_.y-n}}}}};function zt(t){return ta(t)?(t.nodeName||"").toLowerCase():"#document"}function Ie(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(ta(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ta(t){return t instanceof Node||t instanceof Ie(t).Node}function rt(t){return t instanceof Element||t instanceof Ie(t).Element}function nt(t){return t instanceof HTMLElement||t instanceof Ie(t).HTMLElement}function hc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ie(t).ShadowRoot}function on(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=We(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Wp(t){return["table","td","th"].includes(zt(t))}function ra(t){const e=na(),r=We(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function qp(t){let e=Bt(t);for(;nt(e)&&!hr(e);){if(ra(e))return e;e=Bt(e)}return null}function na(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hr(t){return["html","body","#document"].includes(zt(t))}function We(t){return Ie(t).getComputedStyle(t)}function co(t){return rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bt(t){if(zt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||hc(t)&&t.host||Ct(t);return hc(e)?e.host:e}function mc(t){const e=Bt(t);return hr(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&&on(e)?e:mc(e)}function oa(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=mc(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Ie(i);return a?e.concat(s,s.visualViewport||[],on(i)?i:[],s.frameElement&&r?oa(s.frameElement):[]):e.concat(i,oa(i,[],r))}function yc(t){const e=We(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=nt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=io(r)!==a||io(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function gc(t){return rt(t)?t:t.contextElement}function mr(t){const e=gc(t);if(!nt(e))return At(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:a}=yc(e);let s=(a?io(r.width):r.width)/n,l=(a?io(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Kp=At(0);function bc(t){const e=Ie(t);return!na()||!e.visualViewport?Kp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gp(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ie(t)?!1:e}function an(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),a=gc(t);let s=At(1);e&&(n?rt(n)&&(s=mr(n)):s=mr(t));const l=Gp(a,r,n)?bc(a):At(0);let c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,d=i.width/s.x,m=i.height/s.y;if(a){const y=Ie(a),g=n&&rt(n)?Ie(n):n;let h=y,_=h.frameElement;for(;_&&n&&g!==h;){const w=mr(_),v=_.getBoundingClientRect(),C=We(_),A=v.left+(_.clientLeft+parseFloat(C.paddingLeft))*w.x,x=v.top+(_.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,m*=w.y,c+=A,u+=x,h=Ie(_),_=h.frameElement}}return lo({width:d,height:m,x:c,y:u})}const Yp=[":popover-open",":modal"];function ia(t){return Yp.some(e=>{try{return t.matches(e)}catch{return!1}})}function Jp(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const a=i==="fixed",s=Ct(n),l=e?ia(e.floating):!1;if(n===s||l&&a)return r;let c={scrollLeft:0,scrollTop:0},u=At(1);const d=At(0),m=nt(n);if((m||!m&&!a)&&((zt(n)!=="body"||on(s))&&(c=co(n)),nt(n))){const y=an(n);u=mr(n),d.x=y.x+n.clientLeft,d.y=y.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x,y:r.y*u.y-c.scrollTop*u.y+d.y}}function Zp(t){return Array.from(t.getClientRects())}function _c(t){return an(Ct(t)).left+co(t).scrollLeft}function Xp(t){const e=Ct(t),r=co(t),n=t.ownerDocument.body,i=pr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=pr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+_c(t);const l=-r.scrollTop;return We(n).direction==="rtl"&&(s+=pr(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function Qp(t,e){const r=Ie(t),n=Ct(t),i=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;const u=na();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l,y:c}}function eh(t,e){const r=an(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=nt(t)?mr(t):At(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:s,height:l,x:c,y:u}}function wc(t,e,r){let n;if(e==="viewport")n=Qp(t,r);else if(e==="document")n=Xp(Ct(t));else if(rt(e))n=eh(e,r);else{const i=bc(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return lo(n)}function Sc(t,e){const r=Bt(t);return r===e||!rt(r)||hr(r)?!1:We(r).position==="fixed"||Sc(r,e)}function th(t,e){const r=e.get(t);if(r)return r;let n=oa(t,[],!1).filter(l=>rt(l)&&zt(l)!=="body"),i=null;const a=We(t).position==="fixed";let s=a?Bt(t):t;for(;rt(s)&&!hr(s);){const l=We(s),c=ra(s);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||on(s)&&!c&&Sc(t,s))?n=n.filter(d=>d!==s):i=l,s=Bt(s)}return e.set(t,n),n}function rh(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=[...r==="clippingAncestors"?ia(e)?[]:th(e,this._c):[].concat(r),n],l=s[0],c=s.reduce((u,d)=>{const m=wc(e,d,i);return u.top=pr(m.top,u.top),u.right=tn(m.right,u.right),u.bottom=tn(m.bottom,u.bottom),u.left=pr(m.left,u.left),u},wc(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function nh(t){const{width:e,height:r}=yc(t);return{width:e,height:r}}function oh(t,e,r){const n=nt(e),i=Ct(e),a=r==="fixed",s=an(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const c=At(0);if(n||!n&&!a)if((zt(e)!=="body"||on(i))&&(l=co(e)),n){const m=an(e,!0,a,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=_c(i));const u=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:u,y:d,width:s.width,height:s.height}}function aa(t){return We(t).position==="static"}function $c(t,e){return!nt(t)||We(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ec(t,e){const r=Ie(t);if(ia(t))return r;if(!nt(t)){let i=Bt(t);for(;i&&!hr(i);){if(rt(i)&&!aa(i))return i;i=Bt(i)}return r}let n=$c(t,e);for(;n&&Wp(n)&&aa(n);)n=$c(n,e);return n&&hr(n)&&aa(n)&&!ra(n)?r:n||qp(t)||r}const ih=async function(t){const e=this.getOffsetParent||Ec,r=this.getDimensions,n=await r(t.floating);return{reference:oh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ah(t){return We(t).direction==="rtl"}const sh={convertOffsetParentRelativeRectToViewportRelativeRect:Jp,getDocumentElement:Ct,getClippingRect:rh,getOffsetParent:Ec,getElementRects:ih,getClientRects:Zp,getDimensions:nh,getScale:mr,isElement:rt,isRTL:ah},lh=Up,ch=Hp,fh=jp,uh=Fp,dh=(t,e,r)=>{const n=new Map,i={platform:sh,...r},a={...i.platform,_c:n};return Lp(t,e,{...i,platform:a})};function ph(t){return t!=null&&typeof t=="object"&&"$el"in t}function hh(t){if(ph(t)){const e=t.$el;return ta(e)&&zt(e)==="#comment"?null:e}return t}function mh(t){return{name:"arrow",options:t,fn(e){const r=hh(o.unref(t.element));return r==null?{}:uh({element:r,padding:t.padding}).fn(e)}}}const sa=o.defineComponent({__name:"Popper",props:{trigger:{},placement:{},timeout:{default:0}},setup(t){const e=t,r=oe("popperBody"),n=oe("popperTrigger"),i=oe("popperArrow"),a=o.ref(!1),s=o.ref(),l=o.ref(),c=o.ref(),u=o.ref();o.provide("popperBodyId",r),o.provide("popperTriggerId",n),o.provide("popperBodyVisible",a),o.provide("popperArrowId",i);function d(){dh(l.value,c.value,{placement:e.placement,middleware:[mh({element:u}),lh(6),fh(),ch({padding:5})]}).then(({x:_,y:w,placement:v,middlewareData:C})=>{if(u.value!==null){const{x:A,y:x}=C.arrow,k={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(u.value.style,{left:A!=null?`${A}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",[k]:"-4px"})}Object.assign(c.value.style,{left:`${_}px`,top:`${w}px`})})}function m(){a.value=!0,d()}function y(){setTimeout(()=>{a.value=!1},e.timeout)}function g(){l.value.addEventListener("mouseenter",m),l.value.addEventListener("mouseleave",y)}function h(){l.value.addEventListener("click",()=>{a.value?y():m()})}return o.onMounted(()=>{l.value=document.getElementById(n),c.value=document.getElementById(r),u.value=document.getElementById(i),Yi(s,()=>{y()}),e.trigger==="hover"&&g(),e.trigger==="click"&&h()}),(_,w)=>(o.openBlock(),o.createElementBlock("span",{ref_key:"$popperWrapper",ref:s},[o.renderSlot(_.$slots,"default")],512))}}),yh=["id"],gh=o.defineComponent({__name:"PopperArrow",setup(t){const e=o.inject("popperArrowId");return(r,n)=>(o.openBlock(),o.createElementBlock("div",{id:o.unref(e),class:"w-2 h-2 rotate-45 bg-black",style:{position:"absolute"}},null,8,yh))}}),bh=["id"],la=o.defineComponent({__name:"PopperBody",setup(t){const e=o.inject("popperBodyId"),r=o.inject("popperBodyVisible");return(n,i)=>(o.openBlock(),o.createElementBlock("div",{id:o.unref(e),class:o.normalizeClass(["absolute z-10",{hidden:!o.unref(r),block:o.unref(r)}])},[o.renderSlot(n.$slots,"default")],10,bh))}}),_h=["id"],ca=o.defineComponent({__name:"PopperTrigger",setup(t){const e=o.inject("popperTriggerId");return(r,n)=>(o.openBlock(),o.createElementBlock("span",{id:o.unref(e),class:"inline-block"},[o.renderSlot(r.$slots,"default")],8,_h))}}),fa=o.defineComponent({__name:"Popover",props:{alignment:{}},setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(sa),{trigger:"click",placement:`bottom-${e.alignment}`},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["placement"]))}}),wh={class:"overflow-hidden rounded-md border bg-white shadow-lg"},ua=o.defineComponent({__name:"PopoverBody",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(la),null,{default:o.withCtx(()=>[o.createElementVNode("div",wh,[o.renderSlot(e.$slots,"default")])]),_:3}))}}),da=o.defineComponent({__name:"PopoverTrigger",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(ca),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),Sh=o.defineComponent({__name:"ActionList",props:{alignment:{default:"start"}},setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(fa),{alignment:e.alignment},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["alignment"]))}}),$h={class:"min-w-[200px]"},Eh=o.defineComponent({__name:"ActionListBody",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(ua),null,{default:o.withCtx(()=>[o.createElementVNode("div",$h,[o.renderSlot(e.$slots,"default")])]),_:3}))}}),fo=o.defineComponent({__name:"InertiaLink",props:{as:{},data:{},href:{},method:{},headers:{},onClick:{type:Function},preserveScroll:{type:[Boolean,Function]},preserveState:{type:[Boolean,Function,null]},replace:{type:Boolean},only:{},except:{},onCancelToken:{type:Function},onBefore:{type:Function},onStart:{type:Function},onProgress:{type:Function},onFinish:{type:Function},onCancel:{type:Function},onSuccess:{type:Function},queryStringArrayFormat:{}},setup(t){return(e,r)=>{const n=o.resolveComponent("InertiaLink",!0);return o.openBlock(),o.createBlock(n,o.normalizeProps(o.guardReactiveProps(e.$props)),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16)}}}),vh=["id"],Ah={key:0,class:"ml-2"},Fe=o.defineComponent({inheritAttrs:!1,__name:"Button",props:{align:{default:"center"},disabled:{type:Boolean,default:!1},disclosure:{type:Boolean,default:!1},external:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},href:{default:null},iconOnly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},native:{type:Boolean,default:!1},size:{default:"normal"},type:{default:"button"},variant:{default:"primary"}},setup(t){const e=t,r=oe("buttonLabel"),n=o.computed(()=>[{"bg-brand-500 hover:bg-brand-600 text-white":e.variant==="primary"},{"bg-slate-200 hover:bg-slate-300":e.variant==="secondary"},{"bg-red-500/20 hover:bg-red-500/30 text-red-600":e.variant==="destructive"},{"hover:bg-slate-200":e.variant==="ghost"},{"hover:bg-slate-200 ring-1 ring-slate-200 ring-inset":e.variant==="outline"},{"px-4 py-3":e.size==="normal"&&!e.iconOnly},{"px-3 py-2":e.size==="small"&&!e.iconOnly},{"p-3":e.size==="normal"&&e.iconOnly},{"p-2":e.size==="small"&&e.iconOnly},{"opacity-50 cursor-not-allowed":e.disabled},{"pointer-events-none opacity-75 justify-center":e.loading},{"w-full":e.fullWidth},...Oe("focus",e.variant==="destructive"?"destructive":"default")]),i=o.computed(()=>e.href?e.native?"a":fo:"button");return(a,s)=>(o.openBlock(),o.createElementBlock("span",null,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.value),o.mergeProps({"aria-busy":a.loading,"aria-disabled":a.disabled||a.loading,"aria-labelledby":o.unref(r),class:[n.value,"inline-flex items-center rounded text-sm font-medium leading-none active:opacity-80 active:shadow-inner"],disabled:a.disabled||a.loading,href:a.href,type:a.type,role:"button"},a.$attrs),{default:o.withCtx(()=>[o.createElementVNode("span",{id:o.unref(r),class:o.normalizeClass([{invisible:a.loading,"mx-auto":e.align==="center","mr-auto":e.align==="left","ml-auto":e.align==="right"},"inline-flex items-center justify-center space-x-2"])},[o.renderSlot(a.$slots,"default"),a.disclosure?(o.openBlock(),o.createElementBlock("span",Ah,[o.createVNode(o.unref(lc),{class:"h-4 w-4"})])):o.createCommentVNode("",!0)],10,vh),a.loading?(o.openBlock(),o.createBlock(o.unref(ud),{key:0,class:"absolute",variant:e.variant==="primary"?"light":"dark"},null,8,["variant"])):o.createCommentVNode("",!0)]),_:3},16,["aria-busy","aria-disabled","aria-labelledby","class","disabled","href","type"]))]))}}),Ch={visuallyHidden:"_visuallyHidden_o6qmb_6"},F=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},Bh={};function xh(t,e){return o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(t.$style.visuallyHidden)},[o.renderSlot(t.$slots,"default")],2)}const Ut=F(Bh,[["render",xh],["__cssModules",{$style:Ch}]]),Oh={class:"flex items-center space-x-2"},kh=o.defineComponent({__name:"ButtonBadge",props:{accessibilityLabel:{default:null},color:{}},setup(t){const e=t,r=o.computed(()=>({backgroundColor:Se(e.color,"400")}));return(n,i)=>(o.openBlock(),o.createElementBlock("span",{class:"-my-2 inline-flex rounded bg-slate-200 px-2 py-1 text-xs text-white",style:o.normalizeStyle(r.value)},[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.createElementVNode("div",Oh,[o.renderSlot(n.$slots,"default")])]),_:3}),n.accessibilityLabel?(o.openBlock(),o.createBlock(o.unref(Ut),{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.accessibilityLabel),1)]),_:1})):o.createCommentVNode("",!0)],4))}}),Th={},Dh={class:"text-sm leading-none"};function Nh(t,e){return o.openBlock(),o.createElementBlock("span",Dh,[o.renderSlot(t.$slots,"default")])}const vc=F(Th,[["render",Nh]]),Ih=["alt","crossorigin","src"],Ht=o.defineComponent({__name:"Image",props:{alt:{},source:{},crossOrigin:{default:void 0},rounded:{type:Boolean,default:!1}},emits:["load","error"],setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("img",o.mergeProps({alt:e.alt,crossorigin:e.crossOrigin,src:e.source},e.$attrs,{class:{rounded:e.rounded},onError:r[0]||(r[0]=n=>e.$emit("error")),onLoad:r[1]||(r[1]=n=>e.$emit("load"))}),null,16,Ih))}}),Ph={class:"flex-shrink-0 h-4 w-4 -mt-0.5 -mb-0.5"},yr=o.defineComponent({__name:"ButtonIcon",props:{alt:{default:void 0},icon:{type:[Function,Object,null],default:null},source:{default:null}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",Ph,[e.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.icon),{key:0})):o.createCommentVNode("",!0),e.source?(o.openBlock(),o.createBlock(o.unref(Ht),{key:1,alt:e.alt,source:e.source},null,8,["alt","source"])):o.createCommentVNode("",!0)]))}}),Vh={class:"block"},Mh=o.defineComponent({__name:"ActionListItem",props:{active:{type:Boolean,default:!1},icon:{type:[Function,Object,null],default:null},variant:{default:"ghost"}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("li",Vh,[o.createVNode(o.unref(Fe),o.mergeProps({active:e.active,variant:e.variant,align:"left","full-width":"",role:"menuitem",size:"small"},e.$attrs),{default:o.withCtx(()=>[e.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.icon),{key:0,class:"size-4"})):o.createCommentVNode("",!0),o.createVNode(o.unref(vc),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3},16,["active","variant"])]))}}),Rh={},Lh={class:"[&:not(:last-child)]:border-b p-1.5 space-y-0.5"};function Fh(t,e){return o.openBlock(),o.createElementBlock("ul",Lh,[o.renderSlot(t.$slots,"default")])}const jh=F(Rh,[["render",Fh]]),zh=o.defineComponent({__name:"ActionListTrigger",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(da),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),Uh=o.defineComponent({__name:"DismissableAlertButton",props:{variant:{default:"default"}},emits:["dismiss"],setup(t){const e=t,r=o.computed(()=>({"hover:bg-red-900/20":e.variant==="destructive","hover:bg-yellow-900/20":e.variant==="warning","hover:bg-slate-200":e.variant==="default"}));return(n,i)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass([r.value,"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded"]),"aria-label":"Dismiss notification",type:"button",onClick:i[0]||(i[0]=a=>n.$emit("dismiss"))},[o.createVNode(o.unref(oo),{class:"h-4 w-4"})],2))}}),Hh=["role","aria-live"],Wh=o.defineComponent({__name:"Alert",props:{flush:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},variant:{default:"default"}},emits:["dismiss"],setup(t,{emit:e}){const r=t,n=e;o.provide("alertVariant",r.variant);const i=o.ref(!1),a=o.computed(()=>[{"bg-white":r.variant==="default"},{"bg-blue-50 border-blue-500/40 text-blue-800":r.variant==="informative"},{"bg-red-50 border-red-500/40 text-red-800":r.variant==="destructive"},{"bg-yellow-50 border-yellow-500/40 text-yellow-800":r.variant==="warning"},{"border rounded px-4 py-3":!r.flush},{"border-y px-6 py-3 mt-6":r.flush}]),s=o.computed(()=>r.variant==="destructive"?"alert":"status"),l=o.computed(()=>r.variant==="destructive"?"assertive":"polite");function c(){n("dismiss"),i.value=!0}return(u,d)=>i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass([a.value,"relative shadow-sm"]),role:s.value,"aria-live":l.value,tabindex:"0"},[o.renderSlot(u.$slots,"default"),u.dismissible?(o.openBlock(),o.createBlock(Uh,{key:0,variant:u.variant,onDismiss:c},null,8,["variant"])):o.createCommentVNode("",!0)],10,Hh))}}),qh=o.defineComponent({__name:"AlertDescription",setup(t){const e=o.inject("alertVariant"),r=o.computed(()=>({"text-red-900/80":e==="destructive","text-yellow-900/80":e==="warning","text-gray-900/80":e==="default"}));return(n,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(r.value)},[o.renderSlot(n.$slots,"default")],2))}}),Kh={class:"mb-4 leading-none"},Gh=o.defineComponent({__name:"AlertTitle",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("h5",Kh,[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]))}}),Yh=["aria-describedby","aria-labelledby"],Jh={class:"flex min-h-full items-center justify-center"},Zh=o.defineComponent({__name:"AlertDialog",props:{open:{type:Boolean,default:!1}},emits:["cancel"],setup(t,{emit:e}){const r=e;function n(){r("cancel")}const i=oe("alertDialogLabel"),a=oe("alertDialogDescription");return o.provide("cancelAlertDialog",n),o.provide("alertDialogLabelledBy",i),o.provide("alertDialogDescribedBy",a),(s,l)=>s.open?(o.openBlock(),o.createElementBlock("div",{key:0,"aria-describedby":o.unref(a),"aria-labelledby":o.unref(i),class:"fixed top-0 left-0 z-10 h-screen w-screen select-none bg-slate-500/50 px-2 text-sm",role:"alertdialog"},[o.createElementVNode("div",Jh,[o.renderSlot(s.$slots,"default")])],8,Yh)):o.createCommentVNode("",!0)}}),Xh=o.defineComponent({__name:"AlertDialogActionButton",props:{variant:{default:"primary"}},setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(Fe),{variant:e.variant},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["variant"]))}}),Qh=o.defineComponent({__name:"AlertDialogCancelButton",setup(t){const e=o.inject("cancelAlertDialog");return(r,n)=>(o.openBlock(),o.createBlock(o.unref(Fe),{variant:"secondary",onClick:o.unref(e)},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["onClick"]))}}),em=o.defineComponent({__name:"AlertDialogContent",setup(t){const e=o.ref(!1),r=o.ref(null);Yi(r,i);function n(a){a.key==="Escape"&&i()}function i(){e.value=!0,setTimeout(()=>{e.value=!1},250)}return o.onMounted(()=>{document.addEventListener("keydown",n)}),o.onUnmounted(()=>{document.removeEventListener("keydown",n)}),(a,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"clickOutsideTarget",ref:r,class:o.normalizeClass([{shake:e.value},"w-full max-w-lg select-text overflow-hidden rounded-lg bg-white shadow-2xl"])},[o.renderSlot(a.$slots,"default")],2))}}),tm=o.defineComponent({__name:"AlertDialogDescription",setup(t){const e=o.inject("alertDialogLabelledBy");return(r,n)=>(o.openBlock(),o.createElementBlock("p",null,[o.createVNode(o.unref(J),{id:o.unref(e),subdued:""},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["id"])]))}}),rm={},nm={class:"space-x-2"};function om(t,e){return o.openBlock(),o.createElementBlock("div",nm,[o.renderSlot(t.$slots,"default")])}const uo=F(rm,[["render",om]]),im={class:"bg-slate-100 px-4 py-3 flex items-center justify-end"},am=o.defineComponent({__name:"AlertDialogFooter",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",im,[o.createVNode(o.unref(uo),null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]))}}),sm={},lm={class:"flex flex-col space-y-4 p-6"};function cm(t,e){return o.openBlock(),o.createElementBlock("div",lm,[o.renderSlot(t.$slots,"default")])}const fm=F(sm,[["render",cm]]),gr=o.defineComponent({__name:"Heading",props:{level:{default:"h2"},size:{default:"xl"}},setup(t){const e=t,r=o.computed(()=>({"text-lg":e.size==="lg","text-xl":e.size==="xl","text-2xl":e.size==="2xl"}));return(n,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.level),{class:o.normalizeClass([r.value,"font-semibold leading-tight"])},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),um=o.defineComponent({__name:"AlertDialogTitle",setup(t){const e=o.inject("alertDialogLabelledBy");return(r,n)=>(o.openBlock(),o.createBlock(o.unref(gr),{id:o.unref(e),level:"h2"},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["id"]))}}),dm={class:"absolute inset-0 [&>*]:object-cover [&>*]:w-full [&>*]:h-full"},br=o.defineComponent({__name:"AspectRatio",props:{ratio:{default:1}},setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle({paddingBottom:`${100/e.ratio}%`}),class:"relative w-full"},[o.createElementVNode("div",dm,[o.renderSlot(e.$slots,"default")])],4))}}),pm=["aria-label"],hm={key:1,class:"absolute h-full w-full"},mm=o.defineComponent({__name:"Avatar",props:{size:{default:"md"},name:{default:void 0},initials:{default:null},source:{default:void 0},accessibilityLabel:{default:null}},setup(t){const e=t,r=o.ref("PENDING"),n=o.computed(()=>[{"size-4":e.size==="xs"},{"size-6":e.size==="sm"},{"size-8":e.size==="md"},{"size-10":e.size==="lg"},{"size-12":e.size==="xl"},{"bg-slate-200":r.value!=="LOADED"}]),i=o.computed(()=>[{"w-3 h-3":e.size==="xs"}]),a=o.computed(()=>[{"text-xs":e.size==="xs"},{"text-xs":e.size==="sm"},{"text-md":e.size==="md"},{"text-lg":e.size==="lg"},{"text-lg":e.size==="xl"}]);function s(d){return e.size==="xs"?d==null?void 0:d.slice(0,1):d}function l(){r.value="ERRORED"}function c(){r.value="LOADED"}const u=o.computed(()=>{const d=e.accessibilityLabel||e.name;return d||void 0});return(d,m)=>(o.openBlock(),o.createElementBlock("span",{"aria-label":u.value,class:o.normalizeClass([n.value,"relative flex items-center justify-center overflow-hidden rounded"])},[d.initials?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(xp),{key:0,class:o.normalizeClass(i.value),role:"img"},null,8,["class"])),d.source?(o.openBlock(),o.createElementBlock("span",hm,[o.createVNode(o.unref(br),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Ht),{alt:d.name,class:o.normalizeClass({hidden:r.value!=="LOADED"}),source:d.source,onError:l,onLoad:c},null,8,["alt","class","source"])]),_:1})])):o.createCommentVNode("",!0),d.initials&&r.value!=="LOADED"?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass([a.value,"font-semibold"])},o.toDisplayString(s(d.initials)),3)):o.createCommentVNode("",!0)],10,pm))}}),ym={class:"flex items-center space-x-2"},gm=o.defineComponent({__name:"Badge",props:{accessibilityLabel:{default:null},color:{},size:{default:"sm"}},setup(t){const e=t,r=o.computed(()=>({backgroundColor:Se(e.color,"100"),color:Se(e.color,"900")})),n=o.computed(()=>[{"text-xs px-2 py-1":e.size==="sm"},{"text-sm px-3 py-1.5":e.size==="md"},{"text-md px-4 py-2":e.size==="lg"}]);return(i,a)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["inline-flex rounded bg-slate-200",n.value]),style:o.normalizeStyle(r.value)},[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.createElementVNode("div",ym,[o.renderSlot(i.$slots,"default")])]),_:3}),i.accessibilityLabel?(o.openBlock(),o.createBlock(o.unref(Ut),{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.accessibilityLabel),1)]),_:1})):o.createCommentVNode("",!0)],6))}}),bm=o.defineComponent({__name:"BadgeContent",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),_m={},wm={class:"size-4"};function Sm(t,e){return o.openBlock(),o.createElementBlock("div",wm,[o.renderSlot(t.$slots,"default")])}const $m=F(_m,[["render",Sm]]);var Ac={exports:{}},Em=function(){var e=this,r=-1;return{next:function(){return r+=1,{value:e.items[r],done:r>=e.items.length}}}},vm=function(){return this.items};function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var ae={isArray:function(e){return Array.isArray(e)},isObject:function(e){return pa(e)==="object"&&Array.isArray(e)===!1&&e!==null},isFunction:function(e){return typeof e=="function"}},Am=ae,Cm=Am.isFunction,Cc=function(e){return e===void 0?this.sum()/this.items.length:Cm(e)?new this.constructor(this.items).sum(e)/this.items.length:new this.constructor(this.items).pluck(e).sum()/this.items.length},Bm=Cc,xm=Bm;function ha(t){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ha(t)}var Om=function(e){var r=this,n=[],i=0;if(Array.isArray(this.items))do{var a=this.items.slice(i,i+e),s=new this.constructor(a);n.push(s),i+=e}while(i<this.items.length);else if(ha(this.items)==="object"){var l=Object.keys(this.items),c=function(){var d=l.slice(i,i+e),m=new r.constructor({});d.forEach(function(y){return m.put(y,r.items[y])}),n.push(m),i+=e};do c();while(i<l.length)}else n.push(new this.constructor([this.items]));return new this.constructor(n)};function km(t){return Im(t)||Nm(t)||Dm(t)||Tm()}function Tm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dm(t,e){if(t){if(typeof t=="string")return ma(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ma(t,e)}}function Nm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Im(t){if(Array.isArray(t))return ma(t)}function ma(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pm=function(){var e;return new this.constructor((e=[]).concat.apply(e,km(this.items)))};function Vm(t,e){return Fm(t)||Lm(t,e)||Rm(t,e)||Mm()}function Mm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rm(t,e){if(t){if(typeof t=="string")return Bc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bc(t,e)}}function Bc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lm(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,s,l;try{for(r=r.call(t);!(i=(s=r.next()).done)&&(n.push(s.value),!(e&&n.length===e));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function Fm(t){if(Array.isArray(t))return t}function po(t){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},po(t)}var jm=function(e){var r=this,n=e;n instanceof this.constructor&&(n=e.all());var i={};if(Array.isArray(this.items)&&Array.isArray(n))this.items.forEach(function(l,c){i[l]=n[c]});else if(po(this.items)==="object"&&po(n)==="object")Object.keys(this.items).forEach(function(l,c){i[r.items[l]]=n[Object.keys(n)[c]]});else if(Array.isArray(this.items))i[this.items[0]]=n;else if(typeof this.items=="string"&&Array.isArray(n)){var a=n,s=Vm(a,1);i[this.items]=s[0]}else typeof this.items=="string"&&(i[this.items]=n);return new this.constructor(i)};function zm(t){return qm(t)||Wm(t)||Hm(t)||Um()}function Um(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hm(t,e){if(t){if(typeof t=="string")return ya(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ya(t,e)}}function Wm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qm(t){if(Array.isArray(t))return ya(t)}function ya(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var xc=function(e){var r;if(Array.isArray(e)){var n;r=[],(n=r).push.apply(n,zm(e))}else r={},Object.keys(e).forEach(function(i){r[i]=e[i]});return r};function ho(t){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ho(t)}var Km=xc,Gm=function(e){var r=e;e instanceof this.constructor?r=e.all():ho(e)==="object"&&(r=[],Object.keys(e).forEach(function(i){r.push(e[i])}));var n=Km(this.items);return r.forEach(function(i){ho(i)==="object"?Object.keys(i).forEach(function(a){return n.push(i[a])}):n.push(i)}),new this.constructor(n)};function Oc(t){return Xm(t)||Zm(t)||Jm(t)||Ym()}function Ym(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -10,7 +10,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10
10
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Og(t,e){if(t){if(typeof t=="string")return Pc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pc(t,e)}}function Pc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kg(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,s,l;try{for(r=r.call(t);!(i=(s=r.next()).done)&&(n.push(s.value),!(e&&n.length===e));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function Tg(t){if(Array.isArray(t))return t}var Dg=function(e){var r={};return this.items.forEach(function(n,i){var a=e(n,i),s=Bg(a,2),l=s[0],c=s[1];r[l]===void 0?r[l]=[c]:r[l].push(c)}),new this.constructor(r)};function Vc(t,e){return Vg(t)||Pg(t,e)||Ig(t,e)||Ng()}function Ng(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
11
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ig(t,e){if(t){if(typeof t=="string")return Mc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mc(t,e)}}function Mc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pg(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,s,l;try{for(r=r.call(t);!(i=(s=r.next()).done)&&(n.push(s.value),!(e&&n.length===e));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function Vg(t){if(Array.isArray(t))return t}var Mg=function(e){var r=this,n={};return Array.isArray(this.items)?this.items.forEach(function(i,a){var s=e(i,a),l=Vc(s,2),c=l[0],u=l[1];n[c]=u}):Object.keys(this.items).forEach(function(i){var a=e(r.items[i],i),s=Vc(a,2),l=s[0],c=s[1];n[l]=c}),new this.constructor(n)};function Rc(t){return jg(t)||Fg(t)||Lg(t)||Rg()}function Rg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
12
12
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lg(t,e){if(t){if(typeof t=="string")return Ca(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ca(t,e)}}function Fg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jg(t){if(Array.isArray(t))return Ca(t)}function Ca(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var zg=function(e){if(typeof e=="string"){var r=this.items.filter(function(n){return n[e]!==void 0});return Math.max.apply(Math,Rc(r.map(function(n){return n[e]})))}return Math.max.apply(Math,Rc(this.items))},Ug=function(e){var r=this.items.length;return e===void 0?r%2===0?(this.items[r/2-1]+this.items[r/2])/2:this.items[Math.floor(r/2)]:r%2===0?(this.items[r/2-1][e]+this.items[r/2][e])/2:this.items[Math.floor(r/2)][e]},Hg=function(e){var r=e;if(typeof r=="string"&&(r=[r]),Array.isArray(this.items)&&Array.isArray(r))return new this.constructor(this.items.concat(r));var n=JSON.parse(JSON.stringify(this.items));return Object.keys(r).forEach(function(i){n[i]=r[i]}),new this.constructor(n)};function go(t){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(t)}function Lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lc(Object(r),!0).forEach(function(n){Wg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qg=function(e){var r=function n(i,a){var s={},l=Object.keys(Fc(Fc({},i),a));return l.forEach(function(c){i[c]===void 0&&a[c]!==void 0?s[c]=a[c]:i[c]!==void 0&&a[c]===void 0?s[c]=i[c]:i[c]!==void 0&&a[c]!==void 0&&(i[c]===a[c]?s[c]=i[c]:!Array.isArray(i[c])&&go(i[c])==="object"&&!Array.isArray(a[c])&&go(a[c])==="object"?s[c]=n(i[c],a[c]):s[c]=[].concat(i[c],a[c]))}),s};return e?e.constructor.name==="Collection"?new this.constructor(r(this.items,e.all())):new this.constructor(r(this.items,e)):this};function jc(t){return Jg(t)||Yg(t)||Gg(t)||Kg()}function Kg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gg(t,e){if(t){if(typeof t=="string")return Ba(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ba(t,e)}}function Yg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jg(t){if(Array.isArray(t))return Ba(t)}function Ba(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zg=function(e){if(e!==void 0){var r=this.items.filter(function(n){return n[e]!==void 0});return Math.min.apply(Math,jc(r.map(function(n){return n[e]})))}return Math.min.apply(Math,jc(this.items))},Xg=function(e){var r=[],n=1;return this.items.length?(this.items.forEach(function(i){var a=r.filter(function(l){return e!==void 0?l.key===i[e]:l.key===i});if(!a.length)e!==void 0?r.push({key:i[e],count:1}):r.push({key:i,count:1});else{a[0].count+=1;var s=a[0].count;s>n&&(n=s)}}),r.filter(function(i){return i.count===n}).map(function(i){return i.key})):null},Qg=ot,e0=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=Qg(this.items),i=n.slice(r).filter(function(a,s){return s%e===0});return new this.constructor(i)},t0=yo,r0=function(){for(var e=this,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=t0(n);if(Array.isArray(this.items)){var s=this.items.filter(function(c){return a.indexOf(c)!==-1});return new this.constructor(s)}var l={};return Object.keys(this.items).forEach(function(c){a.indexOf(c)!==-1&&(l[c]=e.items[c])}),new this.constructor(l)},n0=xc,o0=function(e,r){var n=Math.abs(e),i=this.count();if(n<=i)return this;for(var a=n-i,s=n0(this.items),l=Array.isArray(this.items),c=e<0,u=0;u<a;)l?c?s.unshift(r):s.push(r):s[u]!==void 0?a+=1:s[u]=r,u+=1;return new this.constructor(s)},i0=function(e){var r=this,n;return Array.isArray(this.items)?(n=[new this.constructor([]),new this.constructor([])],this.items.forEach(function(i){e(i)===!0?n[0].push(i):n[1].push(i)})):(n=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach(function(i){var a=r.items[i];e(a)===!0?n[0].put(i,a):n[1].put(i,a)})),new this.constructor(n)},a0=function(e){return e(this)},zc=ae,s0=zc.isArray,l0=zc.isObject,bo=xt,c0=function(e){var r={};return e.forEach(function(n,i){function a(s,l){l0(s)?Object.keys(s).forEach(function(c){a(s[c],"".concat(l,".").concat(c))}):s0(s)&&s.forEach(function(c,u){a(c,"".concat(l,".").concat(u))}),r[l]=s}a(n,i)}),r},f0=function(e,r){if(e.indexOf("*")!==-1){var n=c0(this.items),i=[];if(r!==void 0){var a=new RegExp("0.".concat(r),"g"),s="0.".concat(r).split(".").length;Object.keys(n).forEach(function(y){var g=y.match(a);if(g){var h=g[0];h.split(".").length===s&&i.push(n[h])}})}var l=[],c=new RegExp("0.".concat(e),"g"),u="0.".concat(e).split(".").length;if(Object.keys(n).forEach(function(y){var g=y.match(c);if(g){var h=g[0];h.split(".").length===u&&l.push(n[h])}}),r!==void 0){var d={};return this.items.forEach(function(y,g){d[i[g]||""]=l}),new this.constructor(d)}return new this.constructor([l])}if(r!==void 0){var m={};return this.items.forEach(function(y){bo(y,e)!==void 0?m[y[r]||""]=bo(y,e):m[y[r]||""]=null}),new this.constructor(m)}return this.map(function(y){return bo(y,e)!==void 0?bo(y,e):null})},u0=yo,Uc=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];u0(n).forEach(function(a){delete e[a]})},Hc=ae,d0=Hc.isArray,p0=Hc.isObject,Wc=Uc,h0=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(this.isEmpty())return null;if(d0(this.items))return r===1?this.items.pop():new this.constructor(this.items.splice(-r));if(p0(this.items)){var n=Object.keys(this.items);if(r===1){var i=n[n.length-1],a=this.items[i];return Wc(this.items,i),a}var s=n.slice(-r),l=s.reduce(function(c,u){return c[u]=e.items[u],c},{});return Wc(this.items,s),new this.constructor(l)}return null},m0=function(e,r){return r!==void 0?this.put(r,e):(this.items.unshift(e),this)},y0=ae,g0=y0.isFunction,b0=function(e,r){var n=this.items[e]||null;return!n&&r!==void 0&&(g0(r)?n=r():n=r),delete this.items[e],n},_0=function(){var e;return(e=this.items).push.apply(e,arguments),this},w0=function(e,r){return this.items[e]=r,this},S0=ot,$0=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=S0(this.items),n=new this.constructor(r).shuffle();return e!==parseInt(e,10)?n.first():n.take(e)},E0=function(e,r){var n=this,i=null;return r!==void 0&&(i=r),Array.isArray(this.items)?this.items.forEach(function(a){i=e(i,a)}):Object.keys(this.items).forEach(function(a){i=e(i,n.items[a],a)}),i},v0=function(e){return new this.constructor(this.items).filter(function(r){return!e(r)})};function qc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _o(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qc(Object(r),!0).forEach(function(n){A0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function A0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var C0=function(e){if(!e)return this;if(Array.isArray(e)){var r=this.items.map(function(a,s){return e[s]||a});return new this.constructor(r)}if(e.constructor.name==="Collection"){var n=_o(_o({},this.items),e.all());return new this.constructor(n)}var i=_o(_o({},this.items),e);return new this.constructor(i)};function Wt(t){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(t)}function Kc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _r(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kc(Object(r),!0).forEach(function(n){B0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function B0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var x0=function(e){var r=function n(i,a){var s=_r({},i),l=Object.keys(_r(_r({},i),a));return l.forEach(function(c){!Array.isArray(a[c])&&Wt(a[c])==="object"?s[c]=n(i[c],a[c]):i[c]===void 0&&a[c]!==void 0?Wt(i[c])==="object"?s[c]=_r({},a[c]):s[c]=a[c]:i[c]!==void 0&&a[c]===void 0?Wt(i[c])==="object"?s[c]=_r({},i[c]):s[c]=i[c]:i[c]!==void 0&&a[c]!==void 0&&(Wt(a[c])==="object"?s[c]=_r({},a[c]):s[c]=a[c])}),s};return e?!Array.isArray(e)&&Wt(e)!=="object"?new this.constructor(r(this.items,[e])):e.constructor.name==="Collection"?new this.constructor(r(this.items,e.all())):new this.constructor(r(this.items,e)):this},O0=function(){var e=[].concat(this.items).reverse();return new this.constructor(e)},xa=ae,k0=xa.isArray,T0=xa.isObject,D0=xa.isFunction,N0=function(e,r){var n=this,i,a=function(l,c){return D0(e)?e(n.items[c],c):r?n.items[c]===e:n.items[c]==e};return k0(this.items)?i=this.items.findIndex(a):T0(this.items)&&(i=Object.keys(this.items).find(function(s){return a(n.items[s],s)})),i===void 0||i<0?!1:i},Gc=ae,I0=Gc.isArray,P0=Gc.isObject,V0=Uc,M0=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(this.isEmpty())return null;if(I0(this.items))return r===1?this.items.shift():new this.constructor(this.items.splice(0,r));if(P0(this.items)){if(r===1){var n=Object.keys(this.items)[0],i=this.items[n];return delete this.items[n],i}var a=Object.keys(this.items),s=a.slice(0,r),l=s.reduce(function(c,u){return c[u]=e.items[u],c},{});return V0(this.items,s),new this.constructor(l)}return null},R0=ot,L0=function(){var e=R0(this.items),r,n,i;for(i=e.length;i;i-=1)r=Math.floor(Math.random()*i),n=e[i-1],e[i-1]=e[r],e[r]=n;return this.items=e,this},F0=ae,j0=F0.isObject,z0=function(e){var r=this;return j0(this.items)?new this.constructor(Object.keys(this.items).reduce(function(n,i,a){return a+1>e&&(n[i]=r.items[i]),n},{})):new this.constructor(this.items.slice(e))},Oa=ae,U0=Oa.isArray,H0=Oa.isObject,W0=Oa.isFunction,q0=function(e){var r=this,n=null,i,a=function(l){return l===e};return W0(e)&&(a=e),U0(this.items)&&(i=this.items.filter(function(s){return n!==!0&&(n=a(s)),n})),H0(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!0&&(n=a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},ka=ae,K0=ka.isArray,G0=ka.isObject,Y0=ka.isFunction,J0=function(e){var r=this,n=null,i,a=function(l){return l===e};return Y0(e)&&(a=e),K0(this.items)&&(i=this.items.filter(function(s){return n!==!0&&(n=!a(s)),n})),G0(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!0&&(n=!a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},Z0=function(e,r){var n=this.items.slice(e);return r!==void 0&&(n=n.slice(0,r)),new this.constructor(n)},X0=ae,Q0=X0.isFunction,eb=function(e,r,n){var i;if(Q0(e)?i=this.filter(e):i=this.where(e,r,n),i.isEmpty())throw new Error("Item not found.");if(i.count()>1)throw new Error("Multiple items found.");return i.first()},tb=kc,rb=tb,nb=function(e){var r=[].concat(this.items);return e===void 0?this.every(function(n){return typeof n=="number"})?r.sort(function(n,i){return n-i}):r.sort():r.sort(e),new this.constructor(r)},ob=function(){return this.sort().reverse()},ib=xt,ab=ae,sb=ab.isFunction,lb=function(e){var r=[].concat(this.items),n=function(a){return sb(e)?e(a):ib(a,e)};return r.sort(function(i,a){var s=n(i),l=n(a);return s==null?1:l==null||s<l?-1:s>l?1:0}),new this.constructor(r)},cb=function(e){return this.sortBy(e).reverse()},fb=function(){var e=this,r={};return Object.keys(this.items).sort().forEach(function(n){r[n]=e.items[n]}),new this.constructor(r)},ub=function(){var e=this,r={};return Object.keys(this.items).sort().reverse().forEach(function(n){r[n]=e.items[n]}),new this.constructor(r)},db=function(e,r,n){var i=this.slice(e,r);if(this.items=this.diff(i.all()).all(),Array.isArray(n))for(var a=0,s=n.length;a<s;a+=1)this.items.splice(e+a,0,n[a]);return i},pb=function(e){for(var r=Math.round(this.items.length/e),n=JSON.parse(JSON.stringify(this.items)),i=[],a=0;a<e;a+=1)i.push(new this.constructor(n.splice(0,r)));return new this.constructor(i)},hb=ot,mb=ae,yb=mb.isFunction,gb=function(e){var r=hb(this.items),n=0;if(e===void 0)for(var i=0,a=r.length;i<a;i+=1)n+=parseFloat(r[i]);else if(yb(e))for(var s=0,l=r.length;s<l;s+=1)n+=parseFloat(e(r[s]));else for(var c=0,u=r.length;c<u;c+=1)n+=parseFloat(r[c][e]);return parseFloat(n.toPrecision(12))};function Ta(t){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(t)}var bb=function(e){var r=this;if(!Array.isArray(this.items)&&Ta(this.items)==="object"){var n=Object.keys(this.items),i;e<0?i=n.slice(e):i=n.slice(0,e);var a={};return n.forEach(function(s){i.indexOf(s)!==-1&&(a[s]=r.items[s])}),new this.constructor(a)}return e<0?new this.constructor(this.items.slice(e)):new this.constructor(this.items.slice(0,e))},Da=ae,_b=Da.isArray,wb=Da.isObject,Sb=Da.isFunction,$b=function(e){var r=this,n=null,i,a=function(l){return l===e};return Sb(e)&&(a=e),_b(this.items)&&(i=this.items.filter(function(s){return n!==!1&&(n=!a(s)),n})),wb(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!1&&(n=!a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},Na=ae,Eb=Na.isArray,vb=Na.isObject,Ab=Na.isFunction,Cb=function(e){var r=this,n=null,i,a=function(l){return l===e};return Ab(e)&&(a=e),Eb(this.items)&&(i=this.items.filter(function(s){return n!==!1&&(n=a(s)),n})),vb(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!1&&(n=a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},Bb=function(e){return e(this),this},xb=function(e,r){for(var n=1;n<=e;n+=1)this.items.push(r(n));return this},Ob=function(){var e=this.constructor;function r(i,a){var s=[];i instanceof e?(i.items.forEach(function(l){return r(l,s)}),a.push(s)):Array.isArray(i)?(i.forEach(function(l){return r(l,s)}),a.push(s)):a.push(i)}if(Array.isArray(this.items)){var n=[];return this.items.forEach(function(i){r(i,n)}),n}return this.values().all()};function Ia(t){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(t)}var kb=function(){return Ia(this.items)==="object"&&!Array.isArray(this.items)?JSON.stringify(this.all()):JSON.stringify(this.toArray())},Tb=function(e){var r=this;if(Array.isArray(this.items))this.items=this.items.map(e);else{var n={};Object.keys(this.items).forEach(function(i){n[i]=e(r.items[i],i)}),this.items=n}return this};function Yc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Jc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yc(Object(r),!0).forEach(function(n){Db(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Db(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Nb=function(){var e=this;if(Array.isArray(this.items))return this;var r={};return Object.keys(this.items).forEach(function(n){if(n.indexOf(".")!==-1){var i=r;n.split(".").reduce(function(a,s,l,c){return a[s]||(a[s]={}),l===c.length-1&&(a[s]=e.items[n]),a[s]},i),r=Jc(Jc({},r),i)}else r[n]=e.items[n]}),new this.constructor(r)},Ib=function(e,r,n){e?n(this):r(this)},Zc=function(e,r){if(Array.isArray(this.items)&&this.items.length)return e(this);if(Object.keys(this.items).length)return e(this);if(r!==void 0){if(Array.isArray(this.items)&&!this.items.length)return r(this);if(!Object.keys(this.items).length)return r(this)}return this},Xc=function(e,r){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this);if(r!==void 0){if(Array.isArray(this.items)&&this.items.length)return r(this);if(Object.keys(this.items).length)return r(this)}return this},Pb=function(e){var r=this,n=JSON.parse(JSON.stringify(this.items));return Object.keys(e).forEach(function(i){r.items[i]===void 0&&(n[i]=e[i])}),new this.constructor(n)},Vb=ae,Mb=Vb.isFunction,Rb=function(e){var r;if(e===void 0)r=this.items.filter(function(l,c,u){return u.indexOf(l)===c});else{r=[];for(var n=[],i=0,a=this.items.length;i<a;i+=1){var s=void 0;Mb(e)?s=e(this.items[i]):s=this.items[i][e],n.indexOf(s)===-1&&(r.push(this.items[i]),n.push(s))}}return new this.constructor(r)},Lb=function(e){return e instanceof this.constructor?e.all():e},Fb=ot,jb=function(){return new this.constructor(Fb(this.items))},zb=function(e,r,n){return e?r(this,e):n?n(this,e):this},Ub=ot,je=xt,Hb=function(e,r,n){var i=r,a=n,s=Ub(this.items);if(r===void 0||r===!0)return new this.constructor(s.filter(function(c){return je(c,e)}));if(r===!1)return new this.constructor(s.filter(function(c){return!je(c,e)}));n===void 0&&(a=r,i="===");var l=s.filter(function(c){switch(i){case"==":return je(c,e)===Number(a)||je(c,e)===a.toString();default:case"===":return je(c,e)===a;case"!=":case"<>":return je(c,e)!==Number(a)&&je(c,e)!==a.toString();case"!==":return je(c,e)!==a;case"<":return je(c,e)<a;case"<=":return je(c,e)<=a;case">":return je(c,e)>a;case">=":return je(c,e)>=a}});return new this.constructor(l)},Wb=function(e,r){return this.where(e,">=",r[0]).where(e,"<=",r[r.length-1])},qb=ot,Kb=xt,Gb=function(e,r){var n=qb(r),i=this.items.filter(function(a){return n.indexOf(Kb(a,e))!==-1});return new this.constructor(i)},Yb=function(e){return this.filter(function(r){return r instanceof e})},Qc=xt,Jb=function(e,r){return this.filter(function(n){return Qc(n,e)<r[0]||Qc(n,e)>r[r.length-1]})},Zb=ot,Xb=xt,Qb=function(e,r){var n=Zb(r),i=this.items.filter(function(a){return n.indexOf(Xb(a,e))===-1});return new this.constructor(i)},e_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.where(e,"===",null)},t_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.where(e,"!==",null)};function Pa(t){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(t)}var r_=function(e){return e instanceof this.constructor?e:Pa(e)==="object"?new this.constructor(e):new this.constructor([e])},n_=function(e){var r=this,n=e;n instanceof this.constructor&&(n=n.all());var i=this.items.map(function(a,s){return new r.constructor([a,n[s]])});return new this.constructor(i)};(function(t){function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(a)}function r(a){a!==void 0&&!Array.isArray(a)&&e(a)!=="object"?this.items=[a]:a instanceof this.constructor?this.items=a.all():this.items=a||[]}var n=Em;typeof Symbol<"u"&&(r.prototype[Symbol.iterator]=n),r.prototype.toJSON=function(){return this.items},r.prototype.all=vm,r.prototype.average=Cc,r.prototype.avg=xm,r.prototype.chunk=Om,r.prototype.collapse=Pm,r.prototype.combine=jm,r.prototype.concat=Gm,r.prototype.contains=kc,r.prototype.containsOneItem=sy,r.prototype.count=ly,r.prototype.countBy=cy,r.prototype.crossJoin=fy,r.prototype.dd=uy,r.prototype.diff=dy,r.prototype.diffAssoc=py,r.prototype.diffKeys=hy,r.prototype.diffUsing=my,r.prototype.doesntContain=yy,r.prototype.dump=gy,r.prototype.duplicates=by,r.prototype.each=_y,r.prototype.eachSpread=Ay,r.prototype.every=By,r.prototype.except=Oy,r.prototype.filter=Dy,r.prototype.first=Iy,r.prototype.firstOrFail=My,r.prototype.firstWhere=Ry,r.prototype.flatMap=Ly,r.prototype.flatten=Fy,r.prototype.flip=jy,r.prototype.forPage=zy,r.prototype.forget=Uy,r.prototype.get=qy,r.prototype.groupBy=Yy,r.prototype.has=Zy,r.prototype.implode=Xy,r.prototype.intersect=Qy,r.prototype.intersectByKeys=eg,r.prototype.isEmpty=tg,r.prototype.isNotEmpty=rg,r.prototype.join=ng,r.prototype.keyBy=sg,r.prototype.keys=lg,r.prototype.last=fg,r.prototype.macro=ug,r.prototype.make=dg,r.prototype.map=pg,r.prototype.mapSpread=_g,r.prototype.mapToDictionary=Ag,r.prototype.mapInto=Cg,r.prototype.mapToGroups=Dg,r.prototype.mapWithKeys=Mg,r.prototype.max=zg,r.prototype.median=Ug,r.prototype.merge=Hg,r.prototype.mergeRecursive=qg,r.prototype.min=Zg,r.prototype.mode=Xg,r.prototype.nth=e0,r.prototype.only=r0,r.prototype.pad=o0,r.prototype.partition=i0,r.prototype.pipe=a0,r.prototype.pluck=f0,r.prototype.pop=h0,r.prototype.prepend=m0,r.prototype.pull=b0,r.prototype.push=_0,r.prototype.put=w0,r.prototype.random=$0,r.prototype.reduce=E0,r.prototype.reject=v0,r.prototype.replace=C0,r.prototype.replaceRecursive=x0,r.prototype.reverse=O0,r.prototype.search=N0,r.prototype.shift=M0,r.prototype.shuffle=L0,r.prototype.skip=z0,r.prototype.skipUntil=q0,r.prototype.skipWhile=J0,r.prototype.slice=Z0,r.prototype.sole=eb,r.prototype.some=rb,r.prototype.sort=nb,r.prototype.sortDesc=ob,r.prototype.sortBy=lb,r.prototype.sortByDesc=cb,r.prototype.sortKeys=fb,r.prototype.sortKeysDesc=ub,r.prototype.splice=db,r.prototype.split=pb,r.prototype.sum=gb,r.prototype.take=bb,r.prototype.takeUntil=$b,r.prototype.takeWhile=Cb,r.prototype.tap=Bb,r.prototype.times=xb,r.prototype.toArray=Ob,r.prototype.toJson=kb,r.prototype.transform=Tb,r.prototype.undot=Nb,r.prototype.unless=Ib,r.prototype.unlessEmpty=Zc,r.prototype.unlessNotEmpty=Xc,r.prototype.union=Pb,r.prototype.unique=Rb,r.prototype.unwrap=Lb,r.prototype.values=jb,r.prototype.when=zb,r.prototype.whenEmpty=Xc,r.prototype.whenNotEmpty=Zc,r.prototype.where=Hb,r.prototype.whereBetween=Wb,r.prototype.whereIn=Gb,r.prototype.whereInstanceOf=Yb,r.prototype.whereNotBetween=Jb,r.prototype.whereNotIn=Qb,r.prototype.whereNull=e_,r.prototype.whereNotNull=t_,r.prototype.wrap=r_,r.prototype.zip=n_;var i=function(s){return new r(s)};t.exports=i,t.exports.collect=i,t.exports.default=i,t.exports.Collection=r})(Ac);var o_=Ac.exports;const ef=ki(o_),i_={},a_={class:"flex items-center space-x-2"};function s_(t,e){return o.openBlock(),o.createElementBlock("ul",a_,[o.renderSlot(t.$slots,"default")])}const tf=F(i_,[["render",s_]]),l_=["aria-labelledby"],rf=o.defineComponent({__name:"LegendItem",props:{color:{}},setup(t){const e=t,r=oe("legendItem"),n=Se(e.color,"500");return(i,a)=>(o.openBlock(),o.createElementBlock("li",{"aria-labelledby":o.unref(r)},[o.createElementVNode("button",{class:o.normalizeClass([o.unref(Oe)("focus"),"flex items-center rounded border border-transparent px-2 space-x-2 py-0.5 hover:bg-slate-100"]),role:"button"},[o.createElementVNode("span",{class:"h-2 w-2 rounded-full flex-shrink-0",style:o.normalizeStyle({backgroundColor:o.unref(n)})},null,4),o.createVNode(o.unref(J),{id:o.unref(r),class:"whitespace-nowrap",strong:""},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3},8,["id"])],2)],8,l_))}}),c_={class:"flex justify-end"},f_=o.defineComponent({__name:"BarChartLegend",setup(t){const e=o.inject("barChartCategories"),r=o.inject("barChartHiddenCategories");function n(i){const a=i.accessorKey;e.length!==1&&(r.value=r.value.includes(a)?r.value.filter(s=>s!==a):[...r.value,a])}return(i,a)=>(o.openBlock(),o.createElementBlock("div",c_,[o.createVNode(o.unref(tf),null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(e),s=>(o.openBlock(),o.createBlock(o.unref(rf),{key:s.accessorKey,color:s.color,class:o.normalizeClass({"opacity-50":o.unref(r).includes(s.accessorKey)}),onClick:l=>n(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.label),1)]),_:2},1032,["color","class","onClick"]))),128))]),_:1})]))}}),u_={class:"px-4 pt-3"},d_={class:"px-4 py-3"},p_={class:"flex items-center space-x-2"},h_=o.defineComponent({__name:"BarChartTooltip",setup(t,{expose:e}){const r=o.inject("barChartHighlightedRecord"),n=o.inject("barChartLabelAccessorKey"),i=o.inject("barChartCategories"),a=o.ref();e({$tooltip:a});const s=o.computed(()=>r.value[n]);return(l,c)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{ref_key:"$tooltip",ref:a,class:"absolute transition-all duration-75 m-1 rounded border bg-white shadow-lg min-w-[200px] pointer-events-none"},[o.unref(r)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",u_,[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.value),1)]),_:1})]),o.createElementVNode("ul",d_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),u=>(o.openBlock(),o.createElementBlock("li",{key:u.accessorKey,class:"flex items-center justify-between space-x-2"},[o.createElementVNode("div",p_,[o.createElementVNode("div",{class:"rounded-full size-2",style:o.normalizeStyle({backgroundColor:o.unref(Se)(u.color,"500")})},null,4),o.createElementVNode("div",null,o.toDisplayString(u.label),1)]),o.createElementVNode("div",null,o.toDisplayString(o.unref(r)[u.accessorKey]),1)]))),128))])],64)):o.createCommentVNode("",!0)],512)),[[o.vShow,o.unref(r)]])}}),m_=["onMouseenter"],y_={class:"flex items-center justify-between mt-2 px-3"},g_=o.defineComponent({__name:"BarChart",props:{categories:{},data:{},labelAccessorKey:{},stacked:{type:Boolean,default:!1}},setup(t){const e=t,r=o.ref(null),n=o.ref([]),i=o.ref(),a=o.ref(),s=o.computed(()=>ef(e.categories).filter(h=>!n.value.includes(h.accessorKey))),l=o.computed(()=>{const h=ef(e.data),_=s.value;return e.stacked?h.map(w=>_.sum(v=>w[v.accessorKey])).max():_.map(w=>h.max(w.accessorKey)).max()}),c=o.computed(()=>[{"flex-col-reverse":e.stacked},{"space-x-1":!e.stacked}]),u=o.computed(()=>[{"first:rounded-b-sm last:rounded-t-sm":e.stacked},{"rounded-sm":!e.stacked}]),d=o.computed(()=>[e.data[0][e.labelAccessorKey],e.data[e.data.length-1][e.labelAccessorKey]]);function m(h,_){return(h[_.accessorKey]/l.value*100).toFixed(2)}function y(h,_){const w=a.value.$tooltip;r.value=_,o.nextTick(()=>{const v=h.target,C=v.offsetLeft+v.offsetWidth;w.style.left=w.offsetWidth+C>i.value.offsetWidth?`${v.offsetLeft-w.offsetWidth-8}px`:`${C}px`})}function g(){r.value=null}return o.provide("barChartCategories",e.categories),o.provide("barChartHiddenCategories",n),o.provide("barChartHighlightedRecord",r),o.provide("barChartLabelAccessorKey",e.labelAccessorKey),(h,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(f_),o.createElementVNode("div",{ref_key:"$container",ref:i,class:"relative flex w-full mt-4",style:{"aspect-ratio":"16 / 5"}},[o.createVNode(h_,{ref_key:"$tooltip",ref:a},null,512),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.data,(w,v)=>(o.openBlock(),o.createElementBlock("div",{key:v,style:o.normalizeStyle({width:`${100/h.data.length}%`}),class:"px-0.5",onMouseenter:C=>y(C,w),onMouseleave:g},[o.createElementVNode("div",{class:o.normalizeClass(["flex h-full w-full items-end overflow-hidden rounded-sm bg-slate-100 p-1.5 hover:bg-slate-200",c.value])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,C=>(o.openBlock(),o.createElementBlock("div",{key:C.accessorKey,class:o.normalizeClass(["w-full",u.value]),style:o.normalizeStyle({height:`${m(w,C)}%`,backgroundColor:o.unref(Se)(C.color,"500")})},null,6))),128))],2)],44,m_))),128))],512),o.createElementVNode("div",y_,[o.createElementVNode("div",null,o.toDisplayString(d.value[0]),1),o.createElementVNode("div",null,o.toDisplayString(d.value[1]),1)])],64))}}),b_={},__={"aria-label":"breadcrumb"};function w_(t,e){return o.openBlock(),o.createElementBlock("nav",__,[o.renderSlot(t.$slots,"default")])}const S_=F(b_,[["render",w_]]),$_={role:"presentation","aria-hidden":"true"},E_=o.defineComponent({__name:"BreadcrumbEllipsis",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("span",$_,[o.createVNode(o.unref(Ep),{class:"size-4"})]))}}),v_={},A_={class:"inline-flex items-center text-slate-500"};function C_(t,e){return o.openBlock(),o.createElementBlock("li",A_,[o.renderSlot(t.$slots,"default")])}const B_=F(v_,[["render",C_]]),x_=o.defineComponent({__name:"BreadcrumbLink",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(fo),{class:"hover:underline hover:text-black",href:"/",role:"link"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),O_={},k_={class:"flex flex-wrap items-center gap-2 break-words"};function T_(t,e){return o.openBlock(),o.createElementBlock("ol",k_,[o.renderSlot(t.$slots,"default")])}const D_=F(O_,[["render",T_]]),N_={},I_={"aria-current":"page","aria-disabled":"true",class:"text-black",role:"link"};function P_(t,e){return o.openBlock(),o.createElementBlock("span",I_,[o.renderSlot(t.$slots,"default")])}const V_=F(N_,[["render",P_]]),M_={"aria-hidden":"true",role:"presentation"},R_=o.defineComponent({__name:"BreadcrumbSeparator",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("li",M_,[o.createVNode(o.unref(Ji),{class:"size-4"})]))}}),L_={},F_={class:"flex flex-col overflow-auto rounded-lg border bg-white shadow-sm"};function j_(t,e){return o.openBlock(),o.createElementBlock("div",F_,[o.renderSlot(t.$slots,"default")])}const Va=F(L_,[["render",j_]]),z_=o.defineComponent({__name:"CardDescription",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("p",null,[o.createVNode(o.unref(J),{subdued:""},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]))}}),U_={},H_={class:"flex items-center justify-end bg-slate-100 px-6 py-3"};function W_(t,e){return o.openBlock(),o.createElementBlock("div",H_,[o.renderSlot(t.$slots,"default")])}const q_=F(U_,[["render",W_]]),K_={},G_={class:"flex flex-col space-y-1.5 p-6 pb-0"};function Y_(t,e){return o.openBlock(),o.createElementBlock("div",G_,[o.renderSlot(t.$slots,"default")])}const J_=F(K_,[["render",Y_]]);function nf(t,e){return function(){return t.apply(e,arguments)}}const{toString:Z_}=Object.prototype,{getPrototypeOf:Ma}=Object,wo=(t=>e=>{const r=Z_.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qe=t=>(t=t.toLowerCase(),e=>wo(e)===t),So=t=>e=>typeof e===t,{isArray:wr}=Array,sn=So("undefined");function X_(t){return t!==null&&!sn(t)&&t.constructor!==null&&!sn(t.constructor)&&ze(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const of=qe("ArrayBuffer");function Q_(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&of(t.buffer),e}const e1=So("string"),ze=So("function"),af=So("number"),$o=t=>t!==null&&typeof t=="object",t1=t=>t===!0||t===!1,Eo=t=>{if(wo(t)!=="object")return!1;const e=Ma(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},r1=qe("Date"),n1=qe("File"),o1=qe("Blob"),i1=qe("FileList"),a1=t=>$o(t)&&ze(t.pipe),s1=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ze(t.append)&&((e=wo(t))==="formdata"||e==="object"&&ze(t.toString)&&t.toString()==="[object FormData]"))},l1=qe("URLSearchParams"),[c1,f1,u1,d1]=["ReadableStream","Request","Response","Headers"].map(qe),p1=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ln(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),wr(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const a=r?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let l;for(n=0;n<s;n++)l=a[n],e.call(null,t[l],l,t)}}function sf(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const lf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cf=t=>!sn(t)&&t!==lf;function Ra(){const{caseless:t}=cf(this)&&this||{},e={},r=(n,i)=>{const a=t&&sf(e,i)||i;Eo(e[a])&&Eo(n)?e[a]=Ra(e[a],n):Eo(n)?e[a]=Ra({},n):wr(n)?e[a]=n.slice():e[a]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ln(arguments[n],r);return e}const h1=(t,e,r,{allOwnKeys:n}={})=>(ln(e,(i,a)=>{r&&ze(i)?t[a]=nf(i,r):t[a]=i},{allOwnKeys:n}),t),m1=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),y1=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},g1=(t,e,r,n)=>{let i,a,s;const l={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)s=i[a],(!n||n(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=r!==!1&&Ma(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},b1=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},_1=t=>{if(!t)return null;if(wr(t))return t;let e=t.length;if(!af(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},w1=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ma(Uint8Array)),S1=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},$1=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},E1=qe("HTMLFormElement"),v1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ff=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),A1=qe("RegExp"),uf=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ln(r,(i,a)=>{let s;(s=e(i,a,t))!==!1&&(n[a]=s||i)}),Object.defineProperties(t,n)},C1=t=>{uf(t,(e,r)=>{if(ze(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ze(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},B1=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return wr(t)?n(t):n(String(t).split(e)),r},x1=()=>{},O1=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,La="abcdefghijklmnopqrstuvwxyz",df="0123456789",pf={DIGIT:df,ALPHA:La,ALPHA_DIGIT:La+La.toUpperCase()+df},k1=(t=16,e=pf.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function T1(t){return!!(t&&ze(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const D1=t=>{const e=new Array(10),r=(n,i)=>{if($o(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const a=wr(n)?[]:{};return ln(n,(s,l)=>{const c=r(s,i+1);!sn(c)&&(a[l]=c)}),e[i]=void 0,a}}return n};return r(t,0)},N1=qe("AsyncFunction"),$={isArray:wr,isArrayBuffer:of,isBuffer:X_,isFormData:s1,isArrayBufferView:Q_,isString:e1,isNumber:af,isBoolean:t1,isObject:$o,isPlainObject:Eo,isReadableStream:c1,isRequest:f1,isResponse:u1,isHeaders:d1,isUndefined:sn,isDate:r1,isFile:n1,isBlob:o1,isRegExp:A1,isFunction:ze,isStream:a1,isURLSearchParams:l1,isTypedArray:w1,isFileList:i1,forEach:ln,merge:Ra,extend:h1,trim:p1,stripBOM:m1,inherits:y1,toFlatObject:g1,kindOf:wo,kindOfTest:qe,endsWith:b1,toArray:_1,forEachEntry:S1,matchAll:$1,isHTMLForm:E1,hasOwnProperty:ff,hasOwnProp:ff,reduceDescriptors:uf,freezeMethods:C1,toObjectSet:B1,toCamelCase:v1,noop:x1,toFiniteNumber:O1,findKey:sf,global:lf,isContextDefined:cf,ALPHABET:pf,generateString:k1,isSpecCompliantForm:T1,toJSONObject:D1,isAsyncFn:N1,isThenable:t=>t&&($o(t)||ze(t))&&ze(t.then)&&ze(t.catch)};function L(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}$.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hf=L.prototype,mf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{mf[t]={value:t}}),Object.defineProperties(L,mf),Object.defineProperty(hf,"isAxiosError",{value:!0}),L.from=(t,e,r,n,i,a)=>{const s=Object.create(hf);return $.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),L.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const I1=null;function Fa(t){return $.isPlainObject(t)||$.isArray(t)}function yf(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function gf(t,e,r){return t?t.concat(e).map(function(i,a){return i=yf(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function P1(t){return $.isArray(t)&&!t.some(Fa)}const V1=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function vo(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,w){return!$.isUndefined(w[_])});const n=r.metaTokens,i=r.visitor||d,a=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if($.isDate(h))return h.toISOString();if(!c&&$.isBlob(h))throw new L("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(h)||$.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,_,w){let v=h;if(h&&!w&&typeof h=="object"){if($.endsWith(_,"{}"))_=n?_:_.slice(0,-2),h=JSON.stringify(h);else if($.isArray(h)&&P1(h)||($.isFileList(h)||$.endsWith(_,"[]"))&&(v=$.toArray(h)))return _=yf(_),v.forEach(function(A,x){!($.isUndefined(A)||A===null)&&e.append(s===!0?gf([_],x,a):s===null?_:_+"[]",u(A))}),!1}return Fa(h)?!0:(e.append(gf(w,_,a),u(h)),!1)}const m=[],y=Object.assign(V1,{defaultVisitor:d,convertValue:u,isVisitable:Fa});function g(h,_){if(!$.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));m.push(h),$.forEach(h,function(v,C){(!($.isUndefined(v)||v===null)&&i.call(e,v,$.isString(C)?C.trim():C,_,y))===!0&&g(v,_?_.concat(C):[C])}),m.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return g(t),e}function bf(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ja(t,e){this._pairs=[],t&&vo(t,this,e)}const _f=ja.prototype;_f.append=function(e,r){this._pairs.push([e,r])},_f.toString=function(e){const r=e?function(n){return e.call(this,n,bf)}:bf;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function M1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wf(t,e,r){if(!e)return t;const n=r&&r.encode||M1,i=r&&r.serialize;let a;if(i?a=i(e,r):a=$.isURLSearchParams(e)?e.toString():new ja(e,r).toString(n),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Sf{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(n){n!==null&&e(n)})}}const $f={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ja,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},za=typeof window<"u"&&typeof document<"u",L1=(t=>za&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),F1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",j1=za&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:za,hasStandardBrowserEnv:L1,hasStandardBrowserWebWorkerEnv:F1,origin:j1},Symbol.toStringTag,{value:"Module"})),...R1};function z1(t,e){return vo(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Ke.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function U1(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function H1(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function Ef(t){function e(r,n,i,a){let s=r[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=a>=r.length;return s=!s&&$.isArray(i)?i.length:s,c?($.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!$.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],a)&&$.isArray(i[s])&&(i[s]=H1(i[s])),!l)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(n,i)=>{e(U1(n),i,r,0)}),r}return null}function W1(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const cn={transitional:$f,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=$.isObject(e);if(a&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i?JSON.stringify(Ef(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return z1(e,this.formSerializer).toString();if((l=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return vo(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),W1(e)):e}],transformResponse:[function(e){const r=this.transitional||cn.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?L.from(l,L.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{cn.headers[t]={}});const q1=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),K1=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gg(t,e){if(t){if(typeof t=="string")return Ba(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ba(t,e)}}function Yg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jg(t){if(Array.isArray(t))return Ba(t)}function Ba(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zg=function(e){if(e!==void 0){var r=this.items.filter(function(n){return n[e]!==void 0});return Math.min.apply(Math,jc(r.map(function(n){return n[e]})))}return Math.min.apply(Math,jc(this.items))},Xg=function(e){var r=[],n=1;return this.items.length?(this.items.forEach(function(i){var a=r.filter(function(l){return e!==void 0?l.key===i[e]:l.key===i});if(!a.length)e!==void 0?r.push({key:i[e],count:1}):r.push({key:i,count:1});else{a[0].count+=1;var s=a[0].count;s>n&&(n=s)}}),r.filter(function(i){return i.count===n}).map(function(i){return i.key})):null},Qg=ot,e0=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=Qg(this.items),i=n.slice(r).filter(function(a,s){return s%e===0});return new this.constructor(i)},t0=yo,r0=function(){for(var e=this,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=t0(n);if(Array.isArray(this.items)){var s=this.items.filter(function(c){return a.indexOf(c)!==-1});return new this.constructor(s)}var l={};return Object.keys(this.items).forEach(function(c){a.indexOf(c)!==-1&&(l[c]=e.items[c])}),new this.constructor(l)},n0=xc,o0=function(e,r){var n=Math.abs(e),i=this.count();if(n<=i)return this;for(var a=n-i,s=n0(this.items),l=Array.isArray(this.items),c=e<0,u=0;u<a;)l?c?s.unshift(r):s.push(r):s[u]!==void 0?a+=1:s[u]=r,u+=1;return new this.constructor(s)},i0=function(e){var r=this,n;return Array.isArray(this.items)?(n=[new this.constructor([]),new this.constructor([])],this.items.forEach(function(i){e(i)===!0?n[0].push(i):n[1].push(i)})):(n=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach(function(i){var a=r.items[i];e(a)===!0?n[0].put(i,a):n[1].put(i,a)})),new this.constructor(n)},a0=function(e){return e(this)},zc=ae,s0=zc.isArray,l0=zc.isObject,bo=xt,c0=function(e){var r={};return e.forEach(function(n,i){function a(s,l){l0(s)?Object.keys(s).forEach(function(c){a(s[c],"".concat(l,".").concat(c))}):s0(s)&&s.forEach(function(c,u){a(c,"".concat(l,".").concat(u))}),r[l]=s}a(n,i)}),r},f0=function(e,r){if(e.indexOf("*")!==-1){var n=c0(this.items),i=[];if(r!==void 0){var a=new RegExp("0.".concat(r),"g"),s="0.".concat(r).split(".").length;Object.keys(n).forEach(function(y){var g=y.match(a);if(g){var h=g[0];h.split(".").length===s&&i.push(n[h])}})}var l=[],c=new RegExp("0.".concat(e),"g"),u="0.".concat(e).split(".").length;if(Object.keys(n).forEach(function(y){var g=y.match(c);if(g){var h=g[0];h.split(".").length===u&&l.push(n[h])}}),r!==void 0){var d={};return this.items.forEach(function(y,g){d[i[g]||""]=l}),new this.constructor(d)}return new this.constructor([l])}if(r!==void 0){var m={};return this.items.forEach(function(y){bo(y,e)!==void 0?m[y[r]||""]=bo(y,e):m[y[r]||""]=null}),new this.constructor(m)}return this.map(function(y){return bo(y,e)!==void 0?bo(y,e):null})},u0=yo,Uc=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];u0(n).forEach(function(a){delete e[a]})},Hc=ae,d0=Hc.isArray,p0=Hc.isObject,Wc=Uc,h0=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(this.isEmpty())return null;if(d0(this.items))return r===1?this.items.pop():new this.constructor(this.items.splice(-r));if(p0(this.items)){var n=Object.keys(this.items);if(r===1){var i=n[n.length-1],a=this.items[i];return Wc(this.items,i),a}var s=n.slice(-r),l=s.reduce(function(c,u){return c[u]=e.items[u],c},{});return Wc(this.items,s),new this.constructor(l)}return null},m0=function(e,r){return r!==void 0?this.put(r,e):(this.items.unshift(e),this)},y0=ae,g0=y0.isFunction,b0=function(e,r){var n=this.items[e]||null;return!n&&r!==void 0&&(g0(r)?n=r():n=r),delete this.items[e],n},_0=function(){var e;return(e=this.items).push.apply(e,arguments),this},w0=function(e,r){return this.items[e]=r,this},S0=ot,$0=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=S0(this.items),n=new this.constructor(r).shuffle();return e!==parseInt(e,10)?n.first():n.take(e)},E0=function(e,r){var n=this,i=null;return r!==void 0&&(i=r),Array.isArray(this.items)?this.items.forEach(function(a){i=e(i,a)}):Object.keys(this.items).forEach(function(a){i=e(i,n.items[a],a)}),i},v0=function(e){return new this.constructor(this.items).filter(function(r){return!e(r)})};function qc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _o(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qc(Object(r),!0).forEach(function(n){A0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function A0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var C0=function(e){if(!e)return this;if(Array.isArray(e)){var r=this.items.map(function(a,s){return e[s]||a});return new this.constructor(r)}if(e.constructor.name==="Collection"){var n=_o(_o({},this.items),e.all());return new this.constructor(n)}var i=_o(_o({},this.items),e);return new this.constructor(i)};function Wt(t){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(t)}function Kc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _r(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kc(Object(r),!0).forEach(function(n){B0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function B0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var x0=function(e){var r=function n(i,a){var s=_r({},i),l=Object.keys(_r(_r({},i),a));return l.forEach(function(c){!Array.isArray(a[c])&&Wt(a[c])==="object"?s[c]=n(i[c],a[c]):i[c]===void 0&&a[c]!==void 0?Wt(i[c])==="object"?s[c]=_r({},a[c]):s[c]=a[c]:i[c]!==void 0&&a[c]===void 0?Wt(i[c])==="object"?s[c]=_r({},i[c]):s[c]=i[c]:i[c]!==void 0&&a[c]!==void 0&&(Wt(a[c])==="object"?s[c]=_r({},a[c]):s[c]=a[c])}),s};return e?!Array.isArray(e)&&Wt(e)!=="object"?new this.constructor(r(this.items,[e])):e.constructor.name==="Collection"?new this.constructor(r(this.items,e.all())):new this.constructor(r(this.items,e)):this},O0=function(){var e=[].concat(this.items).reverse();return new this.constructor(e)},xa=ae,k0=xa.isArray,T0=xa.isObject,D0=xa.isFunction,N0=function(e,r){var n=this,i,a=function(l,c){return D0(e)?e(n.items[c],c):r?n.items[c]===e:n.items[c]==e};return k0(this.items)?i=this.items.findIndex(a):T0(this.items)&&(i=Object.keys(this.items).find(function(s){return a(n.items[s],s)})),i===void 0||i<0?!1:i},Gc=ae,I0=Gc.isArray,P0=Gc.isObject,V0=Uc,M0=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(this.isEmpty())return null;if(I0(this.items))return r===1?this.items.shift():new this.constructor(this.items.splice(0,r));if(P0(this.items)){if(r===1){var n=Object.keys(this.items)[0],i=this.items[n];return delete this.items[n],i}var a=Object.keys(this.items),s=a.slice(0,r),l=s.reduce(function(c,u){return c[u]=e.items[u],c},{});return V0(this.items,s),new this.constructor(l)}return null},R0=ot,L0=function(){var e=R0(this.items),r,n,i;for(i=e.length;i;i-=1)r=Math.floor(Math.random()*i),n=e[i-1],e[i-1]=e[r],e[r]=n;return this.items=e,this},F0=ae,j0=F0.isObject,z0=function(e){var r=this;return j0(this.items)?new this.constructor(Object.keys(this.items).reduce(function(n,i,a){return a+1>e&&(n[i]=r.items[i]),n},{})):new this.constructor(this.items.slice(e))},Oa=ae,U0=Oa.isArray,H0=Oa.isObject,W0=Oa.isFunction,q0=function(e){var r=this,n=null,i,a=function(l){return l===e};return W0(e)&&(a=e),U0(this.items)&&(i=this.items.filter(function(s){return n!==!0&&(n=a(s)),n})),H0(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!0&&(n=a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},ka=ae,K0=ka.isArray,G0=ka.isObject,Y0=ka.isFunction,J0=function(e){var r=this,n=null,i,a=function(l){return l===e};return Y0(e)&&(a=e),K0(this.items)&&(i=this.items.filter(function(s){return n!==!0&&(n=!a(s)),n})),G0(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!0&&(n=!a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},Z0=function(e,r){var n=this.items.slice(e);return r!==void 0&&(n=n.slice(0,r)),new this.constructor(n)},X0=ae,Q0=X0.isFunction,eb=function(e,r,n){var i;if(Q0(e)?i=this.filter(e):i=this.where(e,r,n),i.isEmpty())throw new Error("Item not found.");if(i.count()>1)throw new Error("Multiple items found.");return i.first()},tb=kc,rb=tb,nb=function(e){var r=[].concat(this.items);return e===void 0?this.every(function(n){return typeof n=="number"})?r.sort(function(n,i){return n-i}):r.sort():r.sort(e),new this.constructor(r)},ob=function(){return this.sort().reverse()},ib=xt,ab=ae,sb=ab.isFunction,lb=function(e){var r=[].concat(this.items),n=function(a){return sb(e)?e(a):ib(a,e)};return r.sort(function(i,a){var s=n(i),l=n(a);return s==null?1:l==null||s<l?-1:s>l?1:0}),new this.constructor(r)},cb=function(e){return this.sortBy(e).reverse()},fb=function(){var e=this,r={};return Object.keys(this.items).sort().forEach(function(n){r[n]=e.items[n]}),new this.constructor(r)},ub=function(){var e=this,r={};return Object.keys(this.items).sort().reverse().forEach(function(n){r[n]=e.items[n]}),new this.constructor(r)},db=function(e,r,n){var i=this.slice(e,r);if(this.items=this.diff(i.all()).all(),Array.isArray(n))for(var a=0,s=n.length;a<s;a+=1)this.items.splice(e+a,0,n[a]);return i},pb=function(e){for(var r=Math.round(this.items.length/e),n=JSON.parse(JSON.stringify(this.items)),i=[],a=0;a<e;a+=1)i.push(new this.constructor(n.splice(0,r)));return new this.constructor(i)},hb=ot,mb=ae,yb=mb.isFunction,gb=function(e){var r=hb(this.items),n=0;if(e===void 0)for(var i=0,a=r.length;i<a;i+=1)n+=parseFloat(r[i]);else if(yb(e))for(var s=0,l=r.length;s<l;s+=1)n+=parseFloat(e(r[s]));else for(var c=0,u=r.length;c<u;c+=1)n+=parseFloat(r[c][e]);return parseFloat(n.toPrecision(12))};function Ta(t){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(t)}var bb=function(e){var r=this;if(!Array.isArray(this.items)&&Ta(this.items)==="object"){var n=Object.keys(this.items),i;e<0?i=n.slice(e):i=n.slice(0,e);var a={};return n.forEach(function(s){i.indexOf(s)!==-1&&(a[s]=r.items[s])}),new this.constructor(a)}return e<0?new this.constructor(this.items.slice(e)):new this.constructor(this.items.slice(0,e))},Da=ae,_b=Da.isArray,wb=Da.isObject,Sb=Da.isFunction,$b=function(e){var r=this,n=null,i,a=function(l){return l===e};return Sb(e)&&(a=e),_b(this.items)&&(i=this.items.filter(function(s){return n!==!1&&(n=!a(s)),n})),wb(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!1&&(n=!a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},Na=ae,Eb=Na.isArray,vb=Na.isObject,Ab=Na.isFunction,Cb=function(e){var r=this,n=null,i,a=function(l){return l===e};return Ab(e)&&(a=e),Eb(this.items)&&(i=this.items.filter(function(s){return n!==!1&&(n=a(s)),n})),vb(this.items)&&(i=Object.keys(this.items).reduce(function(s,l){return n!==!1&&(n=a(r.items[l])),n!==!1&&(s[l]=r.items[l]),s},{})),new this.constructor(i)},Bb=function(e){return e(this),this},xb=function(e,r){for(var n=1;n<=e;n+=1)this.items.push(r(n));return this},Ob=function(){var e=this.constructor;function r(i,a){var s=[];i instanceof e?(i.items.forEach(function(l){return r(l,s)}),a.push(s)):Array.isArray(i)?(i.forEach(function(l){return r(l,s)}),a.push(s)):a.push(i)}if(Array.isArray(this.items)){var n=[];return this.items.forEach(function(i){r(i,n)}),n}return this.values().all()};function Ia(t){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(t)}var kb=function(){return Ia(this.items)==="object"&&!Array.isArray(this.items)?JSON.stringify(this.all()):JSON.stringify(this.toArray())},Tb=function(e){var r=this;if(Array.isArray(this.items))this.items=this.items.map(e);else{var n={};Object.keys(this.items).forEach(function(i){n[i]=e(r.items[i],i)}),this.items=n}return this};function Yc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Jc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yc(Object(r),!0).forEach(function(n){Db(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Db(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Nb=function(){var e=this;if(Array.isArray(this.items))return this;var r={};return Object.keys(this.items).forEach(function(n){if(n.indexOf(".")!==-1){var i=r;n.split(".").reduce(function(a,s,l,c){return a[s]||(a[s]={}),l===c.length-1&&(a[s]=e.items[n]),a[s]},i),r=Jc(Jc({},r),i)}else r[n]=e.items[n]}),new this.constructor(r)},Ib=function(e,r,n){e?n(this):r(this)},Zc=function(e,r){if(Array.isArray(this.items)&&this.items.length)return e(this);if(Object.keys(this.items).length)return e(this);if(r!==void 0){if(Array.isArray(this.items)&&!this.items.length)return r(this);if(!Object.keys(this.items).length)return r(this)}return this},Xc=function(e,r){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this);if(r!==void 0){if(Array.isArray(this.items)&&this.items.length)return r(this);if(Object.keys(this.items).length)return r(this)}return this},Pb=function(e){var r=this,n=JSON.parse(JSON.stringify(this.items));return Object.keys(e).forEach(function(i){r.items[i]===void 0&&(n[i]=e[i])}),new this.constructor(n)},Vb=ae,Mb=Vb.isFunction,Rb=function(e){var r;if(e===void 0)r=this.items.filter(function(l,c,u){return u.indexOf(l)===c});else{r=[];for(var n=[],i=0,a=this.items.length;i<a;i+=1){var s=void 0;Mb(e)?s=e(this.items[i]):s=this.items[i][e],n.indexOf(s)===-1&&(r.push(this.items[i]),n.push(s))}}return new this.constructor(r)},Lb=function(e){return e instanceof this.constructor?e.all():e},Fb=ot,jb=function(){return new this.constructor(Fb(this.items))},zb=function(e,r,n){return e?r(this,e):n?n(this,e):this},Ub=ot,je=xt,Hb=function(e,r,n){var i=r,a=n,s=Ub(this.items);if(r===void 0||r===!0)return new this.constructor(s.filter(function(c){return je(c,e)}));if(r===!1)return new this.constructor(s.filter(function(c){return!je(c,e)}));n===void 0&&(a=r,i="===");var l=s.filter(function(c){switch(i){case"==":return je(c,e)===Number(a)||je(c,e)===a.toString();default:case"===":return je(c,e)===a;case"!=":case"<>":return je(c,e)!==Number(a)&&je(c,e)!==a.toString();case"!==":return je(c,e)!==a;case"<":return je(c,e)<a;case"<=":return je(c,e)<=a;case">":return je(c,e)>a;case">=":return je(c,e)>=a}});return new this.constructor(l)},Wb=function(e,r){return this.where(e,">=",r[0]).where(e,"<=",r[r.length-1])},qb=ot,Kb=xt,Gb=function(e,r){var n=qb(r),i=this.items.filter(function(a){return n.indexOf(Kb(a,e))!==-1});return new this.constructor(i)},Yb=function(e){return this.filter(function(r){return r instanceof e})},Qc=xt,Jb=function(e,r){return this.filter(function(n){return Qc(n,e)<r[0]||Qc(n,e)>r[r.length-1]})},Zb=ot,Xb=xt,Qb=function(e,r){var n=Zb(r),i=this.items.filter(function(a){return n.indexOf(Xb(a,e))===-1});return new this.constructor(i)},e_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.where(e,"===",null)},t_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.where(e,"!==",null)};function Pa(t){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(t)}var r_=function(e){return e instanceof this.constructor?e:Pa(e)==="object"?new this.constructor(e):new this.constructor([e])},n_=function(e){var r=this,n=e;n instanceof this.constructor&&(n=n.all());var i=this.items.map(function(a,s){return new r.constructor([a,n[s]])});return new this.constructor(i)};(function(t){function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(a)}function r(a){a!==void 0&&!Array.isArray(a)&&e(a)!=="object"?this.items=[a]:a instanceof this.constructor?this.items=a.all():this.items=a||[]}var n=Em;typeof Symbol<"u"&&(r.prototype[Symbol.iterator]=n),r.prototype.toJSON=function(){return this.items},r.prototype.all=vm,r.prototype.average=Cc,r.prototype.avg=xm,r.prototype.chunk=Om,r.prototype.collapse=Pm,r.prototype.combine=jm,r.prototype.concat=Gm,r.prototype.contains=kc,r.prototype.containsOneItem=sy,r.prototype.count=ly,r.prototype.countBy=cy,r.prototype.crossJoin=fy,r.prototype.dd=uy,r.prototype.diff=dy,r.prototype.diffAssoc=py,r.prototype.diffKeys=hy,r.prototype.diffUsing=my,r.prototype.doesntContain=yy,r.prototype.dump=gy,r.prototype.duplicates=by,r.prototype.each=_y,r.prototype.eachSpread=Ay,r.prototype.every=By,r.prototype.except=Oy,r.prototype.filter=Dy,r.prototype.first=Iy,r.prototype.firstOrFail=My,r.prototype.firstWhere=Ry,r.prototype.flatMap=Ly,r.prototype.flatten=Fy,r.prototype.flip=jy,r.prototype.forPage=zy,r.prototype.forget=Uy,r.prototype.get=qy,r.prototype.groupBy=Yy,r.prototype.has=Zy,r.prototype.implode=Xy,r.prototype.intersect=Qy,r.prototype.intersectByKeys=eg,r.prototype.isEmpty=tg,r.prototype.isNotEmpty=rg,r.prototype.join=ng,r.prototype.keyBy=sg,r.prototype.keys=lg,r.prototype.last=fg,r.prototype.macro=ug,r.prototype.make=dg,r.prototype.map=pg,r.prototype.mapSpread=_g,r.prototype.mapToDictionary=Ag,r.prototype.mapInto=Cg,r.prototype.mapToGroups=Dg,r.prototype.mapWithKeys=Mg,r.prototype.max=zg,r.prototype.median=Ug,r.prototype.merge=Hg,r.prototype.mergeRecursive=qg,r.prototype.min=Zg,r.prototype.mode=Xg,r.prototype.nth=e0,r.prototype.only=r0,r.prototype.pad=o0,r.prototype.partition=i0,r.prototype.pipe=a0,r.prototype.pluck=f0,r.prototype.pop=h0,r.prototype.prepend=m0,r.prototype.pull=b0,r.prototype.push=_0,r.prototype.put=w0,r.prototype.random=$0,r.prototype.reduce=E0,r.prototype.reject=v0,r.prototype.replace=C0,r.prototype.replaceRecursive=x0,r.prototype.reverse=O0,r.prototype.search=N0,r.prototype.shift=M0,r.prototype.shuffle=L0,r.prototype.skip=z0,r.prototype.skipUntil=q0,r.prototype.skipWhile=J0,r.prototype.slice=Z0,r.prototype.sole=eb,r.prototype.some=rb,r.prototype.sort=nb,r.prototype.sortDesc=ob,r.prototype.sortBy=lb,r.prototype.sortByDesc=cb,r.prototype.sortKeys=fb,r.prototype.sortKeysDesc=ub,r.prototype.splice=db,r.prototype.split=pb,r.prototype.sum=gb,r.prototype.take=bb,r.prototype.takeUntil=$b,r.prototype.takeWhile=Cb,r.prototype.tap=Bb,r.prototype.times=xb,r.prototype.toArray=Ob,r.prototype.toJson=kb,r.prototype.transform=Tb,r.prototype.undot=Nb,r.prototype.unless=Ib,r.prototype.unlessEmpty=Zc,r.prototype.unlessNotEmpty=Xc,r.prototype.union=Pb,r.prototype.unique=Rb,r.prototype.unwrap=Lb,r.prototype.values=jb,r.prototype.when=zb,r.prototype.whenEmpty=Xc,r.prototype.whenNotEmpty=Zc,r.prototype.where=Hb,r.prototype.whereBetween=Wb,r.prototype.whereIn=Gb,r.prototype.whereInstanceOf=Yb,r.prototype.whereNotBetween=Jb,r.prototype.whereNotIn=Qb,r.prototype.whereNull=e_,r.prototype.whereNotNull=t_,r.prototype.wrap=r_,r.prototype.zip=n_;var i=function(s){return new r(s)};t.exports=i,t.exports.collect=i,t.exports.default=i,t.exports.Collection=r})(Ac);var o_=Ac.exports;const ef=ki(o_),i_={},a_={class:"flex items-center space-x-2"};function s_(t,e){return o.openBlock(),o.createElementBlock("ul",a_,[o.renderSlot(t.$slots,"default")])}const tf=F(i_,[["render",s_]]),l_=["aria-labelledby"],rf=o.defineComponent({__name:"LegendItem",props:{color:{}},setup(t){const e=t,r=oe("legendItem"),n=Se(e.color,"500");return(i,a)=>(o.openBlock(),o.createElementBlock("li",{"aria-labelledby":o.unref(r)},[o.createElementVNode("button",{class:o.normalizeClass([o.unref(Oe)("focus"),"flex items-center rounded border border-transparent px-2 space-x-2 py-0.5 hover:bg-slate-100"]),role:"button"},[o.createElementVNode("span",{class:"h-2 w-2 rounded-full flex-shrink-0",style:o.normalizeStyle({backgroundColor:o.unref(n)})},null,4),o.createVNode(o.unref(J),{id:o.unref(r),class:"whitespace-nowrap",strong:""},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3},8,["id"])],2)],8,l_))}}),c_={class:"flex justify-end"},f_=o.defineComponent({__name:"BarChartLegend",setup(t){const e=o.inject("barChartCategories"),r=o.inject("barChartHiddenCategories");function n(i){const a=i.accessorKey;e.length!==1&&(r.value=r.value.includes(a)?r.value.filter(s=>s!==a):[...r.value,a])}return(i,a)=>(o.openBlock(),o.createElementBlock("div",c_,[o.createVNode(o.unref(tf),null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(e),s=>(o.openBlock(),o.createBlock(o.unref(rf),{key:s.accessorKey,color:s.color,class:o.normalizeClass({"opacity-50":o.unref(r).includes(s.accessorKey)}),onClick:l=>n(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.label),1)]),_:2},1032,["color","class","onClick"]))),128))]),_:1})]))}}),u_={class:"px-4 pt-3"},d_={class:"px-4 py-3"},p_={class:"flex items-center space-x-2"},h_=o.defineComponent({__name:"BarChartTooltip",setup(t,{expose:e}){const r=o.inject("barChartHighlightedRecord"),n=o.inject("barChartLabelAccessorKey"),i=o.inject("barChartCategories"),a=o.ref();e({$tooltip:a});const s=o.computed(()=>r.value[n]);return(l,c)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{ref_key:"$tooltip",ref:a,class:"absolute transition-all duration-75 m-1 rounded border bg-white shadow-lg min-w-[200px] pointer-events-none"},[o.unref(r)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",u_,[o.createVNode(o.unref(J),{strong:""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.value),1)]),_:1})]),o.createElementVNode("ul",d_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),u=>(o.openBlock(),o.createElementBlock("li",{key:u.accessorKey,class:"flex items-center justify-between space-x-2"},[o.createElementVNode("div",p_,[o.createElementVNode("div",{class:"rounded-full size-2",style:o.normalizeStyle({backgroundColor:o.unref(Se)(u.color,"500")})},null,4),o.createElementVNode("div",null,o.toDisplayString(u.label),1)]),o.createElementVNode("div",null,o.toDisplayString(o.unref(r)[u.accessorKey]),1)]))),128))])],64)):o.createCommentVNode("",!0)],512)),[[o.vShow,o.unref(r)]])}}),m_=["onMouseenter"],y_={key:1,class:"flex items-center justify-between mt-2 px-3"},g_=o.defineComponent({__name:"BarChart",props:{categories:{},data:{},labelAccessorKey:{},stacked:{type:Boolean,default:!1}},setup(t){const e=t,r=o.ref(null),n=o.ref([]),i=o.ref(),a=o.ref(),s=o.computed(()=>ef(e.categories).filter(h=>!n.value.includes(h.accessorKey))),l=o.computed(()=>{const h=ef(e.data),_=s.value;return e.stacked?h.map(w=>_.sum(v=>w[v.accessorKey])).max():_.map(w=>h.max(w.accessorKey)).max()}),c=o.computed(()=>[{"flex-col-reverse":e.stacked},{"space-x-1":!e.stacked}]),u=o.computed(()=>[{"first:rounded-b-sm last:rounded-t-sm":e.stacked},{"rounded-sm":!e.stacked}]),d=o.computed(()=>e.data.length===0?null:[e.data[0][e.labelAccessorKey],e.data[e.data.length-1][e.labelAccessorKey]]);function m(h,_){return(h[_.accessorKey]/l.value*100).toFixed(2)}function y(h,_){const w=a.value.$tooltip;r.value=_,o.nextTick(()=>{const v=h.target,C=v.offsetLeft+v.offsetWidth;w.style.left=w.offsetWidth+C>i.value.offsetWidth?`${v.offsetLeft-w.offsetWidth-8}px`:`${C}px`})}function g(){r.value=null}return o.provide("barChartCategories",e.categories),o.provide("barChartHiddenCategories",n),o.provide("barChartHighlightedRecord",r),o.provide("barChartLabelAccessorKey",e.labelAccessorKey),(h,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[h.categories.length>1?(o.openBlock(),o.createBlock(f_,{key:0})):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"$container",ref:i,class:"relative flex w-full mt-4",style:{"aspect-ratio":"16 / 5","max-height":"250px"}},[o.createVNode(h_,{ref_key:"$tooltip",ref:a},null,512),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.data,(w,v)=>(o.openBlock(),o.createElementBlock("div",{key:v,style:o.normalizeStyle({width:`${100/h.data.length}%`}),class:"px-0.5",onMouseenter:C=>y(C,w),onMouseleave:g},[o.createElementVNode("div",{class:o.normalizeClass(["flex h-full w-full items-end overflow-hidden rounded-sm bg-slate-100 p-1.5 hover:bg-slate-200",c.value])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,C=>(o.openBlock(),o.createElementBlock("div",{key:C.accessorKey,class:o.normalizeClass(["w-full",u.value]),style:o.normalizeStyle({height:`${m(w,C)}%`,backgroundColor:o.unref(Se)(C.color,"500")})},null,6))),128))],2)],44,m_))),128))],512),d.value?(o.openBlock(),o.createElementBlock("div",y_,[o.createElementVNode("div",null,o.toDisplayString(d.value[0]),1),o.createElementVNode("div",null,o.toDisplayString(d.value[1]),1)])):o.createCommentVNode("",!0)],64))}}),b_={},__={"aria-label":"breadcrumb"};function w_(t,e){return o.openBlock(),o.createElementBlock("nav",__,[o.renderSlot(t.$slots,"default")])}const S_=F(b_,[["render",w_]]),$_={role:"presentation","aria-hidden":"true"},E_=o.defineComponent({__name:"BreadcrumbEllipsis",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("span",$_,[o.createVNode(o.unref(Ep),{class:"size-4"})]))}}),v_={},A_={class:"inline-flex items-center text-slate-500"};function C_(t,e){return o.openBlock(),o.createElementBlock("li",A_,[o.renderSlot(t.$slots,"default")])}const B_=F(v_,[["render",C_]]),x_=o.defineComponent({__name:"BreadcrumbLink",setup(t){return(e,r)=>(o.openBlock(),o.createBlock(o.unref(fo),{class:"hover:underline hover:text-black",href:"/",role:"link"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),O_={},k_={class:"flex flex-wrap items-center gap-2 break-words"};function T_(t,e){return o.openBlock(),o.createElementBlock("ol",k_,[o.renderSlot(t.$slots,"default")])}const D_=F(O_,[["render",T_]]),N_={},I_={"aria-current":"page","aria-disabled":"true",class:"text-black",role:"link"};function P_(t,e){return o.openBlock(),o.createElementBlock("span",I_,[o.renderSlot(t.$slots,"default")])}const V_=F(N_,[["render",P_]]),M_={"aria-hidden":"true",role:"presentation"},R_=o.defineComponent({__name:"BreadcrumbSeparator",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("li",M_,[o.createVNode(o.unref(Ji),{class:"size-4"})]))}}),L_={},F_={class:"flex flex-col overflow-auto rounded-lg border bg-white shadow-sm"};function j_(t,e){return o.openBlock(),o.createElementBlock("div",F_,[o.renderSlot(t.$slots,"default")])}const Va=F(L_,[["render",j_]]),z_=o.defineComponent({__name:"CardDescription",setup(t){return(e,r)=>(o.openBlock(),o.createElementBlock("p",null,[o.createVNode(o.unref(J),{subdued:""},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]))}}),U_={},H_={class:"flex items-center justify-end bg-slate-100 px-6 py-3"};function W_(t,e){return o.openBlock(),o.createElementBlock("div",H_,[o.renderSlot(t.$slots,"default")])}const q_=F(U_,[["render",W_]]),K_={},G_={class:"flex flex-col space-y-1.5 p-6 pb-0"};function Y_(t,e){return o.openBlock(),o.createElementBlock("div",G_,[o.renderSlot(t.$slots,"default")])}const J_=F(K_,[["render",Y_]]);function nf(t,e){return function(){return t.apply(e,arguments)}}const{toString:Z_}=Object.prototype,{getPrototypeOf:Ma}=Object,wo=(t=>e=>{const r=Z_.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qe=t=>(t=t.toLowerCase(),e=>wo(e)===t),So=t=>e=>typeof e===t,{isArray:wr}=Array,sn=So("undefined");function X_(t){return t!==null&&!sn(t)&&t.constructor!==null&&!sn(t.constructor)&&ze(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const of=qe("ArrayBuffer");function Q_(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&of(t.buffer),e}const e1=So("string"),ze=So("function"),af=So("number"),$o=t=>t!==null&&typeof t=="object",t1=t=>t===!0||t===!1,Eo=t=>{if(wo(t)!=="object")return!1;const e=Ma(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},r1=qe("Date"),n1=qe("File"),o1=qe("Blob"),i1=qe("FileList"),a1=t=>$o(t)&&ze(t.pipe),s1=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ze(t.append)&&((e=wo(t))==="formdata"||e==="object"&&ze(t.toString)&&t.toString()==="[object FormData]"))},l1=qe("URLSearchParams"),[c1,f1,u1,d1]=["ReadableStream","Request","Response","Headers"].map(qe),p1=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ln(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),wr(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const a=r?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let l;for(n=0;n<s;n++)l=a[n],e.call(null,t[l],l,t)}}function sf(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const lf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cf=t=>!sn(t)&&t!==lf;function Ra(){const{caseless:t}=cf(this)&&this||{},e={},r=(n,i)=>{const a=t&&sf(e,i)||i;Eo(e[a])&&Eo(n)?e[a]=Ra(e[a],n):Eo(n)?e[a]=Ra({},n):wr(n)?e[a]=n.slice():e[a]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ln(arguments[n],r);return e}const h1=(t,e,r,{allOwnKeys:n}={})=>(ln(e,(i,a)=>{r&&ze(i)?t[a]=nf(i,r):t[a]=i},{allOwnKeys:n}),t),m1=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),y1=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},g1=(t,e,r,n)=>{let i,a,s;const l={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)s=i[a],(!n||n(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=r!==!1&&Ma(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},b1=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},_1=t=>{if(!t)return null;if(wr(t))return t;let e=t.length;if(!af(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},w1=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ma(Uint8Array)),S1=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},$1=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},E1=qe("HTMLFormElement"),v1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ff=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),A1=qe("RegExp"),uf=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ln(r,(i,a)=>{let s;(s=e(i,a,t))!==!1&&(n[a]=s||i)}),Object.defineProperties(t,n)},C1=t=>{uf(t,(e,r)=>{if(ze(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ze(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},B1=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return wr(t)?n(t):n(String(t).split(e)),r},x1=()=>{},O1=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,La="abcdefghijklmnopqrstuvwxyz",df="0123456789",pf={DIGIT:df,ALPHA:La,ALPHA_DIGIT:La+La.toUpperCase()+df},k1=(t=16,e=pf.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function T1(t){return!!(t&&ze(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const D1=t=>{const e=new Array(10),r=(n,i)=>{if($o(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const a=wr(n)?[]:{};return ln(n,(s,l)=>{const c=r(s,i+1);!sn(c)&&(a[l]=c)}),e[i]=void 0,a}}return n};return r(t,0)},N1=qe("AsyncFunction"),$={isArray:wr,isArrayBuffer:of,isBuffer:X_,isFormData:s1,isArrayBufferView:Q_,isString:e1,isNumber:af,isBoolean:t1,isObject:$o,isPlainObject:Eo,isReadableStream:c1,isRequest:f1,isResponse:u1,isHeaders:d1,isUndefined:sn,isDate:r1,isFile:n1,isBlob:o1,isRegExp:A1,isFunction:ze,isStream:a1,isURLSearchParams:l1,isTypedArray:w1,isFileList:i1,forEach:ln,merge:Ra,extend:h1,trim:p1,stripBOM:m1,inherits:y1,toFlatObject:g1,kindOf:wo,kindOfTest:qe,endsWith:b1,toArray:_1,forEachEntry:S1,matchAll:$1,isHTMLForm:E1,hasOwnProperty:ff,hasOwnProp:ff,reduceDescriptors:uf,freezeMethods:C1,toObjectSet:B1,toCamelCase:v1,noop:x1,toFiniteNumber:O1,findKey:sf,global:lf,isContextDefined:cf,ALPHABET:pf,generateString:k1,isSpecCompliantForm:T1,toJSONObject:D1,isAsyncFn:N1,isThenable:t=>t&&($o(t)||ze(t))&&ze(t.then)&&ze(t.catch)};function L(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}$.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hf=L.prototype,mf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{mf[t]={value:t}}),Object.defineProperties(L,mf),Object.defineProperty(hf,"isAxiosError",{value:!0}),L.from=(t,e,r,n,i,a)=>{const s=Object.create(hf);return $.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),L.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const I1=null;function Fa(t){return $.isPlainObject(t)||$.isArray(t)}function yf(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function gf(t,e,r){return t?t.concat(e).map(function(i,a){return i=yf(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function P1(t){return $.isArray(t)&&!t.some(Fa)}const V1=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function vo(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,w){return!$.isUndefined(w[_])});const n=r.metaTokens,i=r.visitor||d,a=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if($.isDate(h))return h.toISOString();if(!c&&$.isBlob(h))throw new L("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(h)||$.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,_,w){let v=h;if(h&&!w&&typeof h=="object"){if($.endsWith(_,"{}"))_=n?_:_.slice(0,-2),h=JSON.stringify(h);else if($.isArray(h)&&P1(h)||($.isFileList(h)||$.endsWith(_,"[]"))&&(v=$.toArray(h)))return _=yf(_),v.forEach(function(A,x){!($.isUndefined(A)||A===null)&&e.append(s===!0?gf([_],x,a):s===null?_:_+"[]",u(A))}),!1}return Fa(h)?!0:(e.append(gf(w,_,a),u(h)),!1)}const m=[],y=Object.assign(V1,{defaultVisitor:d,convertValue:u,isVisitable:Fa});function g(h,_){if(!$.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));m.push(h),$.forEach(h,function(v,C){(!($.isUndefined(v)||v===null)&&i.call(e,v,$.isString(C)?C.trim():C,_,y))===!0&&g(v,_?_.concat(C):[C])}),m.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return g(t),e}function bf(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ja(t,e){this._pairs=[],t&&vo(t,this,e)}const _f=ja.prototype;_f.append=function(e,r){this._pairs.push([e,r])},_f.toString=function(e){const r=e?function(n){return e.call(this,n,bf)}:bf;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function M1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wf(t,e,r){if(!e)return t;const n=r&&r.encode||M1,i=r&&r.serialize;let a;if(i?a=i(e,r):a=$.isURLSearchParams(e)?e.toString():new ja(e,r).toString(n),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Sf{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(n){n!==null&&e(n)})}}const $f={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ja,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},za=typeof window<"u"&&typeof document<"u",L1=(t=>za&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),F1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",j1=za&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:za,hasStandardBrowserEnv:L1,hasStandardBrowserWebWorkerEnv:F1,origin:j1},Symbol.toStringTag,{value:"Module"})),...R1};function z1(t,e){return vo(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Ke.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function U1(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function H1(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function Ef(t){function e(r,n,i,a){let s=r[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=a>=r.length;return s=!s&&$.isArray(i)?i.length:s,c?($.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!$.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],a)&&$.isArray(i[s])&&(i[s]=H1(i[s])),!l)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(n,i)=>{e(U1(n),i,r,0)}),r}return null}function W1(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const cn={transitional:$f,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=$.isObject(e);if(a&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i?JSON.stringify(Ef(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return z1(e,this.formSerializer).toString();if((l=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return vo(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),W1(e)):e}],transformResponse:[function(e){const r=this.transitional||cn.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?L.from(l,L.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{cn.headers[t]={}});const q1=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),K1=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
14
14
|
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&q1[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},vf=Symbol("internals");function fn(t){return t&&String(t).trim().toLowerCase()}function Ao(t){return t===!1||t==null?t:$.isArray(t)?t.map(Ao):String(t)}function G1(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Y1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ua(t,e,r,n,i){if($.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!$.isString(e)){if($.isString(n))return e.indexOf(n)!==-1;if($.isRegExp(n))return n.test(e)}}function J1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Z1(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,s){return this[n].call(this,e,i,a,s)},configurable:!0})})}class ke{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(l,c,u){const d=fn(c);if(!d)throw new Error("header name must be a non-empty string");const m=$.findKey(i,d);(!m||i[m]===void 0||u===!0||u===void 0&&i[m]!==!1)&&(i[m||c]=Ao(l))}const s=(l,c)=>$.forEach(l,(u,d)=>a(u,d,c));if($.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if($.isString(e)&&(e=e.trim())&&!Y1(e))s(K1(e),r);else if($.isHeaders(e))for(const[l,c]of e.entries())a(c,l,n);else e!=null&&a(r,e,n);return this}get(e,r){if(e=fn(e),e){const n=$.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return G1(i);if($.isFunction(r))return r.call(this,i,n);if($.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=fn(e),e){const n=$.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Ua(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(s){if(s=fn(s),s){const l=$.findKey(n,s);l&&(!r||Ua(n,n[l],l,r))&&(delete n[l],i=!0)}}return $.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||Ua(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return $.forEach(this,(i,a)=>{const s=$.findKey(n,a);if(s){r[s]=Ao(i),delete r[a];return}const l=e?J1(a):String(a).trim();l!==a&&delete r[a],r[l]=Ao(i),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return $.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
15
15
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[vf]=this[vf]={accessors:{}}).accessors,i=this.prototype;function a(s){const l=fn(s);n[l]||(Z1(i,s),n[l]=!0)}return $.isArray(e)?e.forEach(a):a(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(ke.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),$.freezeMethods(ke);function Ha(t,e){const r=this||cn,n=e||r,i=ke.from(n.headers);let a=n.data;return $.forEach(t,function(l){a=l.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function Af(t){return!!(t&&t.__CANCEL__)}function Sr(t,e,r){L.call(this,t??"canceled",L.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(Sr,L,{__CANCEL__:!0});function Cf(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new L("Request failed with status code "+r.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function X1(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Q1(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=n[a];s||(s=u),r[i]=c,n[i]=u;let m=a,y=0;for(;m!==i;)y+=r[m++],m=m%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-s<e)return;const g=d&&u-d;return g?Math.round(y*1e3/g):void 0}}function ew(t,e){let r=0;const n=1e3/e;let i=null;return function(){const s=this===!0,l=Date.now();if(s||l-r>n)return i&&(clearTimeout(i),i=null),r=l,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),t.apply(null,arguments)),n-(l-r)))}}const Co=(t,e,r=3)=>{let n=0;const i=Q1(50,250);return ew(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-n,u=i(c),d=s<=l;n=s;const m={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:a,lengthComputable:l!=null};m[e?"download":"upload"]=!0,t(m)},r)},tw=Ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(a){let s=a;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(s){const l=$.isString(s)?i(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),rw=Ke.hasStandardBrowserEnv?{write(t,e,r,n,i,a){const s=[t+"="+encodeURIComponent(e)];$.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),$.isString(n)&&s.push("path="+n),$.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nw(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ow(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bf(t,e){return t&&!nw(e)?ow(t,e):e}const xf=t=>t instanceof ke?{...t}:t;function qt(t,e){e=e||{};const r={};function n(u,d,m){return $.isPlainObject(u)&&$.isPlainObject(d)?$.merge.call({caseless:m},u,d):$.isPlainObject(d)?$.merge({},d):$.isArray(d)?d.slice():d}function i(u,d,m){if($.isUndefined(d)){if(!$.isUndefined(u))return n(void 0,u,m)}else return n(u,d,m)}function a(u,d){if(!$.isUndefined(d))return n(void 0,d)}function s(u,d){if($.isUndefined(d)){if(!$.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,m){if(m in e)return n(u,d);if(m in t)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>i(xf(u),xf(d),!0)};return $.forEach(Object.keys(Object.assign({},t,e)),function(d){const m=c[d]||i,y=m(t[d],e[d],d);$.isUndefined(y)&&m!==l||(r[d]=y)}),r}const Of=t=>{const e=qt({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=e;e.headers=s=ke.from(s),e.url=wf(Bf(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if($.isFormData(r)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ke.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(e)),n||n!==!1&&tw(e.url))){const u=i&&a&&rw.read(a);u&&s.set(i,u)}return e},iw=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){const i=Of(t);let a=i.data;const s=ke.from(i.headers).normalize();let{responseType:l}=i,c;function u(){i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout;function m(){if(!d)return;const g=ke.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:t,request:d};Cf(function(v){r(v),u()},function(v){n(v),u()},_),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new L("Request aborted",L.ECONNABORTED,i,d)),d=null)},d.onerror=function(){n(new L("Network Error",L.ERR_NETWORK,i,d)),d=null},d.ontimeout=function(){let h=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||$f;i.timeoutErrorMessage&&(h=i.timeoutErrorMessage),n(new L(h,_.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,i,d)),d=null},a===void 0&&s.setContentType(null),"setRequestHeader"in d&&$.forEach(s.toJSON(),function(h,_){d.setRequestHeader(_,h)}),$.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),l&&l!=="json"&&(d.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&d.addEventListener("progress",Co(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Co(i.onUploadProgress)),(i.cancelToken||i.signal)&&(c=g=>{d&&(n(!g||g.type?new Sr(null,t,d):g),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=X1(i.url);if(y&&Ke.protocols.indexOf(y)===-1){n(new L("Unsupported protocol "+y+":",L.ERR_BAD_REQUEST,t));return}d.send(a||null)})},aw=(t,e)=>{let r=new AbortController,n;const i=function(c){if(!n){n=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof L?u:new Sr(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{i(new L(`timeout ${e} of ms exceeded`,L.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=s,[l,()=>{a&&clearTimeout(a),a=null}]},sw=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},lw=async function*(t,e,r){for await(const n of t)yield*sw(ArrayBuffer.isView(n)?n:await r(String(n)),e)},kf=(t,e,r,n,i)=>{const a=lw(t,e,i);let s=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await a.next();if(c){l.close(),n();return}let d=u.byteLength;r&&r(s+=d),l.enqueue(new Uint8Array(u))},cancel(l){return n(l),a.return()}},{highWaterMark:2})},Tf=(t,e)=>{const r=t!=null;return n=>setTimeout(()=>e({lengthComputable:r,total:t,loaded:n}))},Bo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Df=Bo&&typeof ReadableStream=="function",Wa=Bo&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),cw=Df&&(()=>{let t=!1;const e=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),Nf=64*1024,qa=Df&&!!(()=>{try{return $.isReadableStream(new Response("").body)}catch{}})(),xo={stream:qa&&(t=>t.body)};Bo&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!xo[e]&&(xo[e]=$.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new L(`Response type '${e}' is not supported`,L.ERR_NOT_SUPPORT,n)})})})(new Response);const fw=async t=>{if(t==null)return 0;if($.isBlob(t))return t.size;if($.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if($.isArrayBufferView(t))return t.byteLength;if($.isURLSearchParams(t)&&(t=t+""),$.isString(t))return(await Wa(t)).byteLength},uw=async(t,e)=>{const r=$.toFiniteNumber(t.getContentLength());return r??fw(e)},Ka={http:I1,xhr:iw,fetch:Bo&&(async t=>{let{url:e,method:r,data:n,signal:i,cancelToken:a,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:y}=Of(t);u=u?(u+"").toLowerCase():"text";let[g,h]=i||a||s?aw([i,a],s):[],_,w;const v=()=>{!_&&setTimeout(()=>{g&&g.unsubscribe()}),_=!0};let C;try{if(c&&cw&&r!=="get"&&r!=="head"&&(C=await uw(d,n))!==0){let T=new Request(e,{method:"POST",body:n,duplex:"half"}),V;$.isFormData(n)&&(V=T.headers.get("content-type"))&&d.setContentType(V),T.body&&(n=kf(T.body,Nf,Tf(C,Co(c)),null,Wa))}$.isString(m)||(m=m?"cors":"omit"),w=new Request(e,{...y,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",withCredentials:m});let A=await fetch(w);const x=qa&&(u==="stream"||u==="response");if(qa&&(l||x)){const T={};["status","statusText","headers"].forEach(O=>{T[O]=A[O]});const V=$.toFiniteNumber(A.headers.get("content-length"));A=new Response(kf(A.body,Nf,l&&Tf(V,Co(l,!0)),x&&v,Wa),T)}u=u||"text";let k=await xo[$.findKey(xo,u)||"text"](A,t);return!x&&v(),h&&h(),await new Promise((T,V)=>{Cf(T,V,{data:k,headers:ke.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:w})})}catch(A){throw v(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,t,w),{cause:A.cause||A}):L.from(A,A&&A.code,t,w)}})};$.forEach(Ka,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const If=t=>`- ${t}`,dw=t=>$.isFunction(t)||t===null||t===!1,Pf={getAdapter:t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let a=0;a<e;a++){r=t[a];let s;if(n=r,!dw(r)&&(n=Ka[(s=String(r)).toLowerCase()],n===void 0))throw new L(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+a]=n}if(!n){const a=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?a.length>1?`since :
|
|
16
16
|
`+a.map(If).join(`
|