scrum-skills 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/.agents/skills/scrum-planning/references/schema.md +3 -2
  2. package/README.md +17 -8
  3. package/assets/board/200.html +1 -1
  4. package/assets/board/404.html +1 -1
  5. package/assets/board/_nuxt/{C9Eg7sGC.js → -8mcJ5uq.js} +1 -1
  6. package/assets/board/_nuxt/{DA0S9GHd.js → 9qnowzZi.js} +1 -1
  7. package/assets/board/_nuxt/{BQSM1Ln0.js → BPTrRhcw.js} +1 -1
  8. package/assets/board/_nuxt/{B7foC6AH.js → BSov4ehT.js} +1 -1
  9. package/assets/board/_nuxt/{D8NAsEfE.js → Bb3Limos.js} +1 -1
  10. package/assets/board/_nuxt/Bi9Axj3V.js +1 -0
  11. package/assets/board/_nuxt/{C9lP5soO.js → BkjUg7GC.js} +1 -1
  12. package/assets/board/_nuxt/Bu400pfa.js +1 -0
  13. package/assets/board/_nuxt/{DiYBussm.js → BuuAjxsV.js} +1 -1
  14. package/assets/board/_nuxt/{DEBhVwtl.js → C9StZL3D.js} +1 -1
  15. package/assets/board/_nuxt/{B5u1XkK4.js → CBhhj6QT.js} +1 -1
  16. package/assets/board/_nuxt/{ADHYAojV.js → CD0uJuyA.js} +1 -1
  17. package/assets/board/_nuxt/{C3ssq3NT.js → CHZ_IHOa.js} +1 -1
  18. package/assets/board/_nuxt/{DVC07Kf9.js → CUnX_QKi.js} +1 -1
  19. package/assets/board/_nuxt/{BJ0EVa07.js → CdvimHoq.js} +1 -1
  20. package/assets/board/_nuxt/{DhkiugsE.js → ChJuu-Ky.js} +1 -1
  21. package/assets/board/_nuxt/{DwNOEVN_.js → CjRYYbsC.js} +1 -1
  22. package/assets/board/_nuxt/Co0ISufR.js +95 -0
  23. package/assets/board/_nuxt/CuJUHLl8.js +1 -0
  24. package/assets/board/_nuxt/{BKgQBiDB.js → CvFE1CeN.js} +1 -1
  25. package/assets/board/_nuxt/{CAJYxF-h.js → CyAQx5wv.js} +1 -1
  26. package/assets/board/_nuxt/{CviJuCa4.js → D3YCAmfu.js} +1 -1
  27. package/assets/board/_nuxt/{joIhBaO-.js → D8Bpf7sE.js} +1 -1
  28. package/assets/board/_nuxt/DDA06Sqv.js +1 -0
  29. package/assets/board/_nuxt/DFuirznt.js +1 -0
  30. package/assets/board/_nuxt/{4FVXNzN-.js → DG3IySrP.js} +1 -1
  31. package/assets/board/_nuxt/{BXQZAVYz.js → DLkAKotw.js} +1 -1
  32. package/assets/board/_nuxt/DNMF9lr0.js +1 -0
  33. package/assets/board/_nuxt/{DQRn5Z3H.js → DaqxYsbV.js} +1 -1
  34. package/assets/board/_nuxt/{jCMbKsJ3.js → DhhR1iR4.js} +1 -1
  35. package/assets/board/_nuxt/{CL3OrPP7.js → DmKZi-Wo.js} +1 -1
  36. package/assets/board/_nuxt/{DcWIG384.js → DsNkyZPc.js} +1 -1
  37. package/assets/board/_nuxt/{BCXs9rBJ.js → DwcwzwSx.js} +1 -1
  38. package/assets/board/_nuxt/Dzd1U0TD.js +1 -0
  39. package/assets/board/_nuxt/{BuVRe79A.js → HrhQecsY.js} +1 -1
  40. package/assets/board/_nuxt/{Db4IStii.js → KhBLkIKl.js} +1 -1
  41. package/assets/board/_nuxt/{bXQUY80V.js → MTucdeiW.js} +1 -1
  42. package/assets/board/_nuxt/{CZPwmwA5.js → RJtjdZeG.js} +1 -1
  43. package/assets/board/_nuxt/Vo4wMbnS.js +1 -0
  44. package/assets/board/_nuxt/Y5b2rXjB.js +1 -0
  45. package/assets/board/_nuxt/builds/latest.json +1 -1
  46. package/assets/board/_nuxt/builds/meta/a2ba436a-230e-43f9-884e-0a5d37f5ba22.json +1 -0
  47. package/assets/board/_nuxt/{CPfeOlrH.js → d-5IhxZm.js} +1 -1
  48. package/assets/board/_nuxt/entry.CTKz4ouw.css +2 -0
  49. package/assets/board/_nuxt/gRdnZpJw.js +1 -0
  50. package/assets/board/_nuxt/{-_kK9OzO.js → l05SqxhY.js} +1 -1
  51. package/assets/board/_nuxt/milestones.z-UuT44X.css +1 -0
  52. package/assets/board/_nuxt/{GzmVZqnA.js → oIa7syc0.js} +1 -1
  53. package/assets/board/_nuxt/pages.YYGvroeE.css +1 -0
  54. package/assets/board/_nuxt/{BannxgAO.js → qDn8FnYE.js} +1 -1
  55. package/assets/board/_nuxt/uGmbQYdY.js +1 -0
  56. package/assets/board/_nuxt/z9IMa9Iy.js +13 -0
  57. package/assets/board/burndown/index.html +1 -1
  58. package/assets/board/epics/index.html +1 -1
  59. package/assets/board/gantt/index.html +1 -1
  60. package/assets/board/index.html +1 -1
  61. package/assets/board/milestones/index.html +1 -1
  62. package/bin/scrum-skills.mjs +33 -10
  63. package/package.json +1 -1
  64. package/templates/AGENTS.md +1 -1
  65. package/tools/ai.mjs +24 -2
  66. package/tools/projects.mjs +46 -11
  67. package/tools/serve.mjs +1 -1
  68. package/tools/validate.mjs +21 -7
  69. package/assets/board/_nuxt/BpR5gMZX.js +0 -95
  70. package/assets/board/_nuxt/BvaAl29K.js +0 -13
  71. package/assets/board/_nuxt/CDL4GvLz.js +0 -1
  72. package/assets/board/_nuxt/CTOFhZkc.js +0 -1
  73. package/assets/board/_nuxt/CZc2Mypg.js +0 -1
  74. package/assets/board/_nuxt/Cw7Z2eHM.js +0 -1
  75. package/assets/board/_nuxt/DWxQkuvT.js +0 -1
  76. package/assets/board/_nuxt/Dpzighda.js +0 -1
  77. package/assets/board/_nuxt/DttMo5b5.js +0 -1
  78. package/assets/board/_nuxt/FCuSfyjP.js +0 -1
  79. package/assets/board/_nuxt/builds/meta/24603984-d514-4dff-badc-898a1fd5e770.json +0 -1
  80. package/assets/board/_nuxt/entry.ChOvfapw.css +0 -2
  81. package/assets/board/_nuxt/milestones.CVvAMKg4.css +0 -1
  82. package/assets/board/_nuxt/pages.DSSttn9g.css +0 -1
@@ -0,0 +1 @@
1
+ import{En as e,Ht as t,L as n,On as r,Tn as i,_n as a,an as o,bn as s,ct as c,g as l,gn as u,in as d,it as f,nn as p,pn as m,tt as h,un as g,vn as _,wn as v,xn as y}from"./DZo3dYLJ.js";function b(e,n,r={}){let i,a,o,s=!0,c=()=>{s=!0,o()};t(e,c,{flush:`sync`,...r});let l=typeof n==`function`?n:n.get,u=typeof n==`function`?void 0:n.set,d=p((e,t)=>(a=e,o=t,{get(){return s&&=(i=l(i),!1),a(),i},set(e){u?.(e)}}));return d.trigger=c,d}function x(e,t){return o()?(m(e,t),!0):!1}function S(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return x(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function C(e){let t=!1,n,r=d(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var w=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var T=e=>e!==void 0,E=e=>e!=null,D=Object.prototype.toString,ee=e=>D.call(e)===`[object Object]`,O=()=>{},k=A();function A(){var e,t;return w&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function j(...e){if(e.length!==1)return v(...e);let t=e[0];return typeof t==`function`?a(p(()=>({get:t,set:O}))):_(t)}function M(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var N=e=>e();function P(t,n={}){let r,i,a=O,o=O,c=y(!1),l=e=>{clearTimeout(e),a(),a=O},u;return Object.assign(s=>{let d=e(t),f=e(n.maxWait);return r&&l(r),d<=0||f!==void 0&&f<=0?(i&&=(l(i),void 0),c.value=!1,Promise.resolve(s())):(c.value=!0,new Promise((e,t)=>{a=n.rejectOnCancel?t:e,o=e,u=s,f&&!i&&(i=setTimeout(()=>{r&&l(r),i=void 0,c.value=!1,e(u())},f)),r=setTimeout(()=>{i&&l(i),i=void 0,c.value=!1,e(s())},d)}))},{cancel:()=>{r&&=(l(r),void 0),i&&=(l(i),void 0),c.value=!1,o=O},flush:()=>{if(c.value){r&&=(clearTimeout(r),void 0),i&&=(clearTimeout(i),void 0),c.value=!1;let e=o;a=O,o=O,e(u())}},isPending:s(c)})}function F(...t){let n=0,r,i=!0,a=O,o,s,c,l,u;!g(t[0])&&typeof t[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=t[0]:[s,c=!0,l=!0,u=!1]=t;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=O)};return t=>{let f=e(s),p=Date.now()-n,m=()=>o=t();return d(),f<=0?(n=Date.now(),m()):(p>f?(n=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,t)=>{a=u?t:e,r=setTimeout(()=>{n=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function I(e=N,t={}){let{initialState:n=`active`}=t,r=j(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:s(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function L(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function R(e){return Array.isArray(e)?e:[e]}function z(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var B=/-(\w)/g,V=z(e=>e.replace(B,(e,t)=>t?t.toUpperCase():``));function H(e){return e||n()}function U(e){if(!w)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=d(!0),n=r.run(()=>e(...a))),x(i),n))}function W(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function G(e){return g(e)?u(new Proxy({},{get(t,n,i){return r(Reflect.get(e.value,n,i))},set(t,n,r){return g(e.value[n])&&!g(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):u(e)}function K(e){return G(l(e))}function q(t,...n){let r=n.flat(),a=r[0];return K(()=>Object.fromEntries(typeof a==`function`?Object.entries(i(t)).filter(([t,n])=>!a(e(n),t)):Object.entries(i(t)).filter(e=>!r.includes(e[0]))))}function J(t,...n){let r=n.flat(),a=r[0];return K(()=>Object.fromEntries(typeof a==`function`?Object.entries(i(t)).filter(([t,n])=>a(e(n),t)):r.map(e=>[e,j(t,e)])))}function Y(t,n=1e4){return p((r,i)=>{let a=e(t),o,s=()=>setTimeout(()=>{a=e(t),i()},e(n));return x(()=>{clearTimeout(o)}),{get(){return r(),a},set(e){a=e,i(),clearTimeout(o),o=s()}}})}function X(e,t=200,n={}){return M(P(t,n),e)}function Z(e,n,r={}){let{eventFilter:i=N,...a}=r;return t(e,M(i,n),a)}function Q(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=I(r,{initialState:i});return{stop:Z(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function te(e,t,...[n]){let{flush:r=`sync`,deep:i=!1,immediate:a=!0,direction:o=`both`,transform:s={}}=n||{},c=[],l=`ltr`in s&&s.ltr||(e=>e),u=`rtl`in s&&s.rtl||(e=>e);return(o===`both`||o===`ltr`)&&c.push(Q(e,e=>{c.forEach(e=>e.pause()),t.value=l(e),c.forEach(e=>e.resume())},{flush:r,deep:i,immediate:a})),(o===`both`||o===`rtl`)&&c.push(Q(t,t=>{c.forEach(e=>e.pause()),e.value=u(t),c.forEach(e=>e.resume())},{flush:r,deep:i,immediate:a})),()=>{c.forEach(e=>e.stop())}}function ne(e,t){H(t)&&f(e,t)}function re(e,t=!0,n){H(n)?c(e,n):t?e():h(e)}function $(t,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=y(!1),c;function l(){c&&=(clearTimeout(c),void 0)}function u(){o.value=!1,l()}function d(...r){a&&t(),l(),o.value=!0,c=setTimeout(()=>{o.value=!1,c=void 0,t(...r)},e(n))}return i&&(o.value=!0,w&&d()),x(u),{isPending:s(o),start:d,stop:u}}function ie(e=1e3,t={}){let{controls:n=!1,callback:r}=t,i=$(r??O,e,t),a=l(()=>!i.isPending.value);return n?{ready:a,...i}:a}function ae(e,n,r){return t(e,n,{...r,immediate:!0})}function oe(e,t,n={}){let{throttle:r=0,trailing:i=!0,leading:a=!0,...o}=n;return Z(e,t,{...o,eventFilter:F(r,i,a)})}export{$ as C,ie as S,oe as T,R as _,U as a,x as b,T as c,W as d,E as f,te as g,Y as h,C as i,k as l,J as m,b as n,L as o,q as p,S as r,w as s,V as t,ee as u,ne as v,ae as w,X as x,re as y};
@@ -1 +1 @@
1
- import{On as e,mt as t,qt as n,v as r}from"./DZo3dYLJ.js";import{r as i}from"./oXSDGTSr.js";import{t as a}from"./CQTvWh4i.js";import o from"./DcWIG384.js";var s={__name:`ProseWarning`,setup(s){let c=i();return(i,s)=>(t(),r(o,{color:`warning`,icon:e(c).ui.icons.warning},{default:n(()=>[a(i.$slots,`default`,{mdcUnwrap:`p`})]),_:3},8,[`icon`]))}};export{s as default};
1
+ import{On as e,mt as t,qt as n,v as r}from"./DZo3dYLJ.js";import{r as i}from"./oXSDGTSr.js";import{t as a}from"./CQTvWh4i.js";import o from"./DsNkyZPc.js";var s={__name:`ProseWarning`,setup(s){let c=i();return(i,s)=>(t(),r(o,{color:`warning`,icon:e(c).ui.icons.warning},{default:n(()=>[a(i.$slots,`default`,{mdcUnwrap:`p`})]),_:3},8,[`icon`]))}};export{s as default};
@@ -1 +1 @@
1
- import{E as e,Lt as t,On as n,Zn as r,_ as i,b as a,et as o,g as s,mt as c,qt as l,tr as u,v as d,xt as f,y as p}from"./DZo3dYLJ.js";import{r as m}from"./oXSDGTSr.js";import{n as h,t as g}from"./Baq-Hrpf.js";import{t as _}from"./DwNOEVN_.js";import{t as v}from"./DhkiugsE.js";import{t as y}from"./CQTvWh4i.js";var b={slots:{base:[`group relative block my-5 p-4 sm:p-6 border border-default rounded-md bg-default`,`transition-colors`],icon:`size-6 mb-2 block`,title:`text-highlighted font-semibold`,description:`text-[15px] text-muted *:first:mt-0 *:last:mb-0 *:my-1`,externalIcon:[`size-4 align-top absolute end-2 top-2 text-dimmed pointer-events-none`,`transition-colors`]},variants:{color:{primary:{icon:`text-primary`},secondary:{icon:`text-secondary`},success:{icon:`text-success`},info:{icon:`text-info`},warning:{icon:`text-warning`},error:{icon:`text-error`},neutral:{icon:`text-highlighted`}},to:{true:``},title:{true:{description:`mt-1`}}},compoundVariants:[{color:`primary`,to:!0,class:{base:`hover:bg-primary/10 hover:border-primary outline-primary/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-primary`,externalIcon:`group-hover:text-primary`}},{color:`secondary`,to:!0,class:{base:`hover:bg-secondary/10 hover:border-secondary outline-secondary/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-secondary`,externalIcon:`group-hover:text-secondary`}},{color:`success`,to:!0,class:{base:`hover:bg-success/10 hover:border-success outline-success/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-success`,externalIcon:`group-hover:text-success`}},{color:`info`,to:!0,class:{base:`hover:bg-info/10 hover:border-info outline-info/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-info`,externalIcon:`group-hover:text-info`}},{color:`warning`,to:!0,class:{base:`hover:bg-warning/10 hover:border-warning outline-warning/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-warning`,externalIcon:`group-hover:text-warning`}},{color:`error`,to:!0,class:{base:`hover:bg-error/10 hover:border-error outline-error/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-error`,externalIcon:`group-hover:text-error`}},{color:`neutral`,to:!0,class:{base:`hover:bg-elevated/50 hover:border-inverted outline-inverted/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-inverted`,externalIcon:`group-hover:text-highlighted`}}],defaultVariants:{color:`primary`}},x=Object.assign({inheritAttrs:!1},{__name:`ProseCard`,props:{to:{type:null,required:!1},target:{type:[String,Object,null],required:!1},icon:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},color:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(x){let S=x,C=t(),w=h(`prose.card`,S),T=m(),E=s(()=>g({extend:b,...T.ui?.prose?.card||{}})({color:w.color,to:!!w.to,title:!!w.title})),D=s(()=>w.target||(w.to&&typeof w.to==`string`&&w.to.startsWith(`http`)?`_blank`:void 0)),O=s(()=>(w.title||`Card link`).trim());return(t,s)=>(c(),a(`div`,o(n(w).to?{}:t.$attrs,{class:E.value.base({class:[n(w).ui?.base,n(w).class]})}),[n(w).to?(c(),d(v,o({key:0,"aria-label":O.value},{to:n(w).to,target:D.value,...t.$attrs},{class:`focus:outline-none`,raw:``}),{default:l(()=>[...s[0]||=[i(`span`,{class:`absolute inset-0`,"aria-hidden":`true`},null,-1)]]),_:1},16,[`aria-label`])):p(``,!0),n(w).icon?(c(),d(_,{key:1,name:n(w).icon,class:r(E.value.icon({class:n(w).ui?.icon}))},null,8,[`name`,`class`])):p(``,!0),n(w).to&&D.value===`_blank`?(c(),d(_,{key:2,name:n(T).ui.icons.external,class:r(E.value.externalIcon({class:n(w).ui?.externalIcon}))},null,8,[`name`,`class`])):p(``,!0),n(w).title||C.title?(c(),a(`p`,{key:3,class:r(E.value.title({class:n(w).ui?.title}))},[y(t.$slots,`title`,{mdcUnwrap:`p`},()=>[e(u(n(w).title),1)])],2)):p(``,!0),C.default?(c(),a(`div`,{key:4,class:r(E.value.description({class:n(w).ui?.description}))},[f(t.$slots,`default`,{},()=>[e(u(n(w).description),1)])],2)):p(``,!0)],16))}});export{x as default};
1
+ import{E as e,Lt as t,On as n,Zn as r,_ as i,b as a,et as o,g as s,mt as c,qt as l,tr as u,v as d,xt as f,y as p}from"./DZo3dYLJ.js";import{r as m}from"./oXSDGTSr.js";import{n as h,t as g}from"./Baq-Hrpf.js";import{t as _}from"./CjRYYbsC.js";import{t as v}from"./ChJuu-Ky.js";import{t as y}from"./CQTvWh4i.js";var b={slots:{base:[`group relative block my-5 p-4 sm:p-6 border border-default rounded-md bg-default`,`transition-colors`],icon:`size-6 mb-2 block`,title:`text-highlighted font-semibold`,description:`text-[15px] text-muted *:first:mt-0 *:last:mb-0 *:my-1`,externalIcon:[`size-4 align-top absolute end-2 top-2 text-dimmed pointer-events-none`,`transition-colors`]},variants:{color:{primary:{icon:`text-primary`},secondary:{icon:`text-secondary`},success:{icon:`text-success`},info:{icon:`text-info`},warning:{icon:`text-warning`},error:{icon:`text-error`},neutral:{icon:`text-highlighted`}},to:{true:``},title:{true:{description:`mt-1`}}},compoundVariants:[{color:`primary`,to:!0,class:{base:`hover:bg-primary/10 hover:border-primary outline-primary/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-primary`,externalIcon:`group-hover:text-primary`}},{color:`secondary`,to:!0,class:{base:`hover:bg-secondary/10 hover:border-secondary outline-secondary/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-secondary`,externalIcon:`group-hover:text-secondary`}},{color:`success`,to:!0,class:{base:`hover:bg-success/10 hover:border-success outline-success/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-success`,externalIcon:`group-hover:text-success`}},{color:`info`,to:!0,class:{base:`hover:bg-info/10 hover:border-info outline-info/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-info`,externalIcon:`group-hover:text-info`}},{color:`warning`,to:!0,class:{base:`hover:bg-warning/10 hover:border-warning outline-warning/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-warning`,externalIcon:`group-hover:text-warning`}},{color:`error`,to:!0,class:{base:`hover:bg-error/10 hover:border-error outline-error/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-error`,externalIcon:`group-hover:text-error`}},{color:`neutral`,to:!0,class:{base:`hover:bg-elevated/50 hover:border-inverted outline-inverted/25 has-[>a:focus-visible]:outline-3 has-[>a:focus-visible]:border-inverted`,externalIcon:`group-hover:text-highlighted`}}],defaultVariants:{color:`primary`}},x=Object.assign({inheritAttrs:!1},{__name:`ProseCard`,props:{to:{type:null,required:!1},target:{type:[String,Object,null],required:!1},icon:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},color:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(x){let S=x,C=t(),w=h(`prose.card`,S),T=m(),E=s(()=>g({extend:b,...T.ui?.prose?.card||{}})({color:w.color,to:!!w.to,title:!!w.title})),D=s(()=>w.target||(w.to&&typeof w.to==`string`&&w.to.startsWith(`http`)?`_blank`:void 0)),O=s(()=>(w.title||`Card link`).trim());return(t,s)=>(c(),a(`div`,o(n(w).to?{}:t.$attrs,{class:E.value.base({class:[n(w).ui?.base,n(w).class]})}),[n(w).to?(c(),d(v,o({key:0,"aria-label":O.value},{to:n(w).to,target:D.value,...t.$attrs},{class:`focus:outline-none`,raw:``}),{default:l(()=>[...s[0]||=[i(`span`,{class:`absolute inset-0`,"aria-hidden":`true`},null,-1)]]),_:1},16,[`aria-label`])):p(``,!0),n(w).icon?(c(),d(_,{key:1,name:n(w).icon,class:r(E.value.icon({class:n(w).ui?.icon}))},null,8,[`name`,`class`])):p(``,!0),n(w).to&&D.value===`_blank`?(c(),d(_,{key:2,name:n(T).ui.icons.external,class:r(E.value.externalIcon({class:n(w).ui?.externalIcon}))},null,8,[`name`,`class`])):p(``,!0),n(w).title||C.title?(c(),a(`p`,{key:3,class:r(E.value.title({class:n(w).ui?.title}))},[y(t.$slots,`title`,{mdcUnwrap:`p`},()=>[e(u(n(w).title),1)])],2)):p(``,!0),C.default?(c(),a(`div`,{key:4,class:r(E.value.description({class:n(w).ui?.description}))},[f(t.$slots,`default`,{},()=>[e(u(n(w).description),1)])],2)):p(``,!0)],16))}});export{x as default};
@@ -1 +1 @@
1
- import{Dn as e,L as t,g as n,pt as r,vn as i}from"./DZo3dYLJ.js";import{i as a}from"./CZc2Mypg.js";function o(){let o=t(),s=i(),c=n(()=>l());r(()=>{c.value!==l()&&e(s)});function l(){return s.value&&`$el`in s.value&&[`#text`,`#comment`].includes(s.value.$el.nodeName)?s.value.$el.nextElementSibling:a(s)}let u=Object.assign({},o.exposed),d={};for(let e in o.props)Object.defineProperty(d,e,{enumerable:!0,configurable:!0,get:()=>o.props[e]});if(Object.keys(u).length>0)for(let e in u)Object.defineProperty(d,e,{enumerable:!0,configurable:!0,get:()=>u[e]});Object.defineProperty(d,"$el",{enumerable:!0,configurable:!0,get:()=>o.vnode.el}),o.exposed=d;function f(e){if(s.value=e,e&&(Object.defineProperty(d,"$el",{enumerable:!0,configurable:!0,get:()=>e instanceof Element?e:e.$el}),!(e instanceof Element)&&!Object.hasOwn(e,`$el`))){let t=e.$.exposed,n=Object.assign({},d);for(let e in t)Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:()=>t[e]});o.exposed=n}}return{forwardRef:f,currentRef:s,currentElement:c}}export{o as t};
1
+ import{Dn as e,L as t,g as n,pt as r,vn as i}from"./DZo3dYLJ.js";import{i as a}from"./Vo4wMbnS.js";function o(){let o=t(),s=i(),c=n(()=>l());r(()=>{c.value!==l()&&e(s)});function l(){return s.value&&`$el`in s.value&&[`#text`,`#comment`].includes(s.value.$el.nodeName)?s.value.$el.nextElementSibling:a(s)}let u=Object.assign({},o.exposed),d={};for(let e in o.props)Object.defineProperty(d,e,{enumerable:!0,configurable:!0,get:()=>o.props[e]});if(Object.keys(u).length>0)for(let e in u)Object.defineProperty(d,e,{enumerable:!0,configurable:!0,get:()=>u[e]});Object.defineProperty(d,"$el",{enumerable:!0,configurable:!0,get:()=>o.vnode.el}),o.exposed=d;function f(e){if(s.value=e,e&&(Object.defineProperty(d,"$el",{enumerable:!0,configurable:!0,get:()=>e instanceof Element?e:e.$el}),!(e instanceof Element)&&!Object.hasOwn(e,`$el`))){let t=e.$.exposed,n=Object.assign({},d);for(let e in t)Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:()=>t[e]});o.exposed=n}}return{forwardRef:f,currentRef:s,currentElement:c}}export{o as t};
@@ -1 +1 @@
1
- import{$ as e,$n as t,D as n,E as r,En as i,Ft as a,Ht as o,J as s,On as c,Zn as l,b as u,et as d,g as f,gt as p,k as m,mt as h,qt as g,tr as _,v,vn as y,wt as b,xt as x,y as S,z as C}from"./DZo3dYLJ.js";import{r as w}from"./oXSDGTSr.js";import{f as T,n as E,t as D}from"./Baq-Hrpf.js";import{n as O,t as k}from"./CK9_veoz.js";import{t as A}from"./DwNOEVN_.js";var j=Symbol(`nuxt-ui.field-group`);function M(e){let t=s(j,void 0);return{orientation:f(()=>t?.value.orientation),size:f(()=>e?.size??t?.value.size)}}var N=m({name:`FieldGroupReset`,setup(e,{slots:t}){return p(j,f(()=>({size:void 0,orientation:void 0}))),()=>t.default?.()}}),P=Symbol(`nuxt-ui.avatar-group`);function F(e){let t=s(P,void 0),n=f(()=>e.size??t?.value.size),r=f(()=>e.color??t?.value.color);return p(P,f(()=>({size:n.value,color:r.value}))),{size:n,color:r}}var I={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},position:{"top-right":`top-0 right-0`,"bottom-right":`bottom-0 right-0`,"top-left":`top-0 left-0`,"bottom-left":`bottom-0 left-0`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},L=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:e({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let i=e,o=E(`chip`,i),s=a(e,`show`,{type:Boolean,default:!0}),{size:d}=F(i),p=w(),m=f(()=>D({extend:I,...p.ui?.chip||{}})({color:o.color,size:d.value??o.size,position:o.position,inset:o.inset,standalone:o.standalone}));return(e,i)=>(h(),v(c(k),{as:c(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:l(m.value.root({class:[c(o).ui?.root,c(o).class]}))},{default:g(()=>[n(c(O),t(C({...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`)]),_:3},16),s.value?(h(),u(`span`,{key:0,"data-slot":`base`,class:l(m.value.base({class:c(o).ui?.base}))},[x(e.$slots,`content`,{},()=>[r(_(c(o).text),1)])],2)):S(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),R={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium truncate`,icon:`shrink-0`},variants:{color:{primary:{root:`bg-primary/10`,fallback:`text-primary`,icon:`text-primary`},secondary:{root:`bg-secondary/10`,fallback:`text-secondary`,icon:`text-secondary`},success:{root:`bg-success/10`,fallback:`text-success`,icon:`text-success`},info:{root:`bg-info/10`,fallback:`text-info`,icon:`text-info`},warning:{root:`bg-warning/10`,fallback:`text-warning`,icon:`text-warning`},error:{root:`bg-error/10`,fallback:`text-error`,icon:`text-error`},neutral:{root:`bg-elevated`,fallback:`text-muted`,icon:`text-muted`}},size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`,color:`neutral`}},z=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},color:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=e,r=E(`avatar`,n),i=f(()=>T(r.as,{root:`span`})),a=f(()=>r.text||(r.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=w(),{size:p,color:m}=F(n),S=f(()=>D({extend:R,...s.ui?.avatar||{}})({size:p.value??r.size,color:m.value??r.color})),C=f(()=>S.value.root({class:[r.ui?.root,r.class]})),j=f(()=>{let e=(C.value||``).split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),M=y(!1);o(()=>r.src,()=>{M.value&&=!1});function N(){M.value=!0}return(e,n)=>(h(),v(b(c(r).chip?L:c(k)),d({as:i.value.root},c(r).chip?typeof c(r).chip==`object`?{inset:!0,...c(r).chip}:{inset:!0}:{},{"data-slot":e.$attrs[`data-slot`]??`root`,class:C.value,style:c(r).style}),{default:g(()=>[c(r).src&&!M.value?(h(),v(b(i.value.img||c(`img`)),d({key:0,src:c(r).src,alt:c(r).alt,width:j.value,height:j.value},e.$attrs,{"data-slot":`image`,class:S.value.image({class:c(r).ui?.image}),onError:N}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(h(),v(c(O),t(d({key:1},{...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`,{},()=>[c(r).icon?(h(),v(A,{key:0,name:c(r).icon,"data-slot":`icon`,class:l(S.value.icon({class:c(r).ui?.icon}))},null,8,[`name`,`class`])):(h(),u(`span`,{key:1,"data-slot":`fallback`,class:l(S.value.fallback({class:c(r).ui?.fallback}))},_(a.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`data-slot`,`class`,`style`]))}});function B(e){let t=w(),n=f(()=>i(e)),r=f(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:f(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing&&!r.value||!!n.value.trailingIcon&&n.value.trailing!==!1),leadingIconName:f(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:f(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}export{M as a,N as i,z as n,L as r,B as t};
1
+ import{$ as e,$n as t,D as n,E as r,En as i,Ft as a,Ht as o,J as s,On as c,Zn as l,b as u,et as d,g as f,gt as p,k as m,mt as h,qt as g,tr as _,v,vn as y,wt as b,xt as x,y as S,z as C}from"./DZo3dYLJ.js";import{r as w}from"./oXSDGTSr.js";import{f as T,n as E,t as D}from"./Baq-Hrpf.js";import{n as O,t as k}from"./CK9_veoz.js";import{t as A}from"./CjRYYbsC.js";var j=Symbol(`nuxt-ui.field-group`);function M(e){let t=s(j,void 0);return{orientation:f(()=>t?.value.orientation),size:f(()=>e?.size??t?.value.size)}}var N=m({name:`FieldGroupReset`,setup(e,{slots:t}){return p(j,f(()=>({size:void 0,orientation:void 0}))),()=>t.default?.()}}),P=Symbol(`nuxt-ui.avatar-group`);function F(e){let t=s(P,void 0),n=f(()=>e.size??t?.value.size),r=f(()=>e.color??t?.value.color);return p(P,f(()=>({size:n.value,color:r.value}))),{size:n,color:r}}var I={slots:{root:`relative inline-flex items-center justify-center shrink-0`,base:`rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap`},variants:{color:{primary:`bg-primary`,secondary:`bg-secondary`,success:`bg-success`,info:`bg-info`,warning:`bg-warning`,error:`bg-error`,neutral:`bg-inverted`},size:{"3xs":`h-[4px] min-w-[4px] text-[4px]`,"2xs":`h-[5px] min-w-[5px] text-[5px]`,xs:`h-[6px] min-w-[6px] text-[6px]`,sm:`h-[7px] min-w-[7px] text-[7px]`,md:`h-[8px] min-w-[8px] text-[8px]`,lg:`h-[9px] min-w-[9px] text-[9px]`,xl:`h-[10px] min-w-[10px] text-[10px]`,"2xl":`h-[11px] min-w-[11px] text-[11px]`,"3xl":`h-[12px] min-w-[12px] text-[12px]`},position:{"top-right":`top-0 right-0`,"bottom-right":`bottom-0 right-0`,"top-left":`top-0 left-0`,"bottom-left":`bottom-0 left-0`},inset:{false:``},standalone:{false:`absolute`}},compoundVariants:[{position:`top-right`,inset:!1,class:`-translate-y-1/2 translate-x-1/2 transform`},{position:`bottom-right`,inset:!1,class:`translate-y-1/2 translate-x-1/2 transform`},{position:`top-left`,inset:!1,class:`-translate-y-1/2 -translate-x-1/2 transform`},{position:`bottom-left`,inset:!1,class:`translate-y-1/2 -translate-x-1/2 transform`}],defaultVariants:{size:`md`,color:`primary`,position:`top-right`}},L=Object.assign({inheritAttrs:!1},{__name:`UChip`,props:e({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:[`update:show`],setup(e){let i=e,o=E(`chip`,i),s=a(e,`show`,{type:Boolean,default:!0}),{size:d}=F(i),p=w(),m=f(()=>D({extend:I,...p.ui?.chip||{}})({color:o.color,size:d.value??o.size,position:o.position,inset:o.inset,standalone:o.standalone}));return(e,i)=>(h(),v(c(k),{as:c(o).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:l(m.value.root({class:[c(o).ui?.root,c(o).class]}))},{default:g(()=>[n(c(O),t(C({...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`)]),_:3},16),s.value?(h(),u(`span`,{key:0,"data-slot":`base`,class:l(m.value.base({class:c(o).ui?.base}))},[x(e.$slots,`content`,{},()=>[r(_(c(o).text),1)])],2)):S(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),R={slots:{root:`inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle`,image:`h-full w-full rounded-[inherit] object-cover`,fallback:`font-medium truncate`,icon:`shrink-0`},variants:{color:{primary:{root:`bg-primary/10`,fallback:`text-primary`,icon:`text-primary`},secondary:{root:`bg-secondary/10`,fallback:`text-secondary`,icon:`text-secondary`},success:{root:`bg-success/10`,fallback:`text-success`,icon:`text-success`},info:{root:`bg-info/10`,fallback:`text-info`,icon:`text-info`},warning:{root:`bg-warning/10`,fallback:`text-warning`,icon:`text-warning`},error:{root:`bg-error/10`,fallback:`text-error`,icon:`text-error`},neutral:{root:`bg-elevated`,fallback:`text-muted`,icon:`text-muted`}},size:{"3xs":{root:`size-4 text-[8px]`},"2xs":{root:`size-5 text-[10px]`},xs:{root:`size-6 text-xs`},sm:{root:`size-7 text-sm`},md:{root:`size-8 text-base`},lg:{root:`size-9 text-lg`},xl:{root:`size-10 text-xl`},"2xl":{root:`size-11 text-[22px]`},"3xl":{root:`size-12 text-2xl`}}},defaultVariants:{size:`md`,color:`neutral`}},z=Object.assign({inheritAttrs:!1},{__name:`UAvatar`,props:{as:{type:null,required:!1},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:null,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},color:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=e,r=E(`avatar`,n),i=f(()=>T(r.as,{root:`span`})),a=f(()=>r.text||(r.alt||``).split(` `).map(e=>e.charAt(0)).join(``).substring(0,2)),s=w(),{size:p,color:m}=F(n),S=f(()=>D({extend:R,...s.ui?.avatar||{}})({size:p.value??r.size,color:m.value??r.color})),C=f(()=>S.value.root({class:[r.ui?.root,r.class]})),j=f(()=>{let e=(C.value||``).split(` `).find(e=>/^size-\d+$/.test(e));if(e){let t=Number.parseFloat(e.split(`-`)[1]??``);if(!Number.isNaN(t))return t*4}return null}),M=y(!1);o(()=>r.src,()=>{M.value&&=!1});function N(){M.value=!0}return(e,n)=>(h(),v(b(c(r).chip?L:c(k)),d({as:i.value.root},c(r).chip?typeof c(r).chip==`object`?{inset:!0,...c(r).chip}:{inset:!0}:{},{"data-slot":e.$attrs[`data-slot`]??`root`,class:C.value,style:c(r).style}),{default:g(()=>[c(r).src&&!M.value?(h(),v(b(i.value.img||c(`img`)),d({key:0,src:c(r).src,alt:c(r).alt,width:j.value,height:j.value},e.$attrs,{"data-slot":`image`,class:S.value.image({class:c(r).ui?.image}),onError:N}),null,16,[`src`,`alt`,`width`,`height`,`class`])):(h(),v(c(O),t(d({key:1},{...e.$attrs,"data-slot":void 0})),{default:g(()=>[x(e.$slots,`default`,{},()=>[c(r).icon?(h(),v(A,{key:0,name:c(r).icon,"data-slot":`icon`,class:l(S.value.icon({class:c(r).ui?.icon}))},null,8,[`name`,`class`])):(h(),u(`span`,{key:1,"data-slot":`fallback`,class:l(S.value.fallback({class:c(r).ui?.fallback}))},_(a.value||`\xA0`),3))])]),_:3},16))]),_:3},16,[`as`,`data-slot`,`class`,`style`]))}});function B(e){let t=w(),n=f(()=>i(e)),r=f(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon);return{isLeading:r,isTrailing:f(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing&&!r.value||!!n.value.trailingIcon&&n.value.trailing!==!1),leadingIconName:f(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),trailingIconName:f(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon)}}export{M as a,N as i,z as n,L as r,B as t};
@@ -0,0 +1 @@
1
+ import{D as e,En as t,Ht as n,J as r,Lt as i,On as a,Q as o,Rt as s,Ut as c,Wt as l,Xt as u,Zn as d,_ as f,an as p,b as m,bn as h,bt as g,ct as _,er as v,et as y,ft as b,g as x,gn as S,k as C,mt as w,o as T,pn as E,qt as D,tt as O,v as k,vn as A,xn as j,xt as M,y as N}from"./DZo3dYLJ.js";import{r as P}from"./CsyY7ot8.js";import{t as ee}from"./DSaWoFHS.js";import{r as te}from"./oXSDGTSr.js";import{c as ne,h as re,i as F,l as ie,n as ae,t as oe}from"./Baq-Hrpf.js";import{n as se,r as I}from"./DLkAKotw.js";import{r as ce}from"./Bb3Limos.js";import{a as le,i as ue,l as de,s as L,v as R}from"./CuJUHLl8.js";import{i as fe,p as pe,r as me,s as he}from"./Vo4wMbnS.js";import{t as ge}from"./CK9_veoz.js";import{t as _e}from"./B43-KCi6.js";import{n as ve}from"./BuOKDFiJ.js";import{t as z}from"./D3YCAmfu.js";import{t as ye}from"./B_SlFcWp.js";import{t as be}from"./Bi9Axj3V.js";import{t as xe}from"./CjRYYbsC.js";import{a as Se,n as Ce,t as we}from"./D8Bpf7sE.js";import{n as Te}from"./DNMF9lr0.js";var Ee=new WeakMap;function De(e,t){let n=Ee.get(e);n||(n={owners:new Set,original:e.body.style.pointerEvents},Ee.set(e,n)),n.owners.add(t),e.body.style.pointerEvents=`none`}function Oe(e,t){let n=Ee.get(e);n?.owners.delete(t)&&n.owners.size===0&&(Ee.delete(e),e.body.style.pointerEvents=n.original)}var ke=Symbol(`useBodyScrollLock`),Ae=le(()=>{let e=A(new Map),t=A(),r=x(()=>{for(let t of e.value.values())if(t)return!0;return!1}),i=P({scrollBody:A(!0)}),a=null,o=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,Oe(document,ke),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,de&&a?.(),t.value=void 0};return n(r,(e,n)=>{if(!L)return;if(!e){n&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=i.scrollBody?.value?typeof i.scrollBody.value==`object`?ee({padding:i.scrollBody.value.padding===!0?s:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?s:i.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),de&&(a=he(document,`touchmove`,e=>Ne(e),{passive:!1})),O(()=>{r.value&&(De(document,ke),document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function je(e){let t=Math.random().toString(36).substring(2,7),n=Ae();n.value.set(t,e??!1);let r=x({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return R(()=>{n.value.delete(t)}),r}function Me(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:Me(t)}}function Ne(e){let t=e||window.event,n=t.target;return n instanceof Element&&Me(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var Pe=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Bopomofo}]/u,Fe=/android/i;function Ie(){return typeof navigator<`u`&&Fe.test(navigator.userAgent)}function Le(e){let t=A(!1),n=A(!0),r=A(!1),i=x(()=>t.value&&n.value);function a(){t.value=!0,n.value=!0,r.value=!1}function o(e){e.data&&(Pe.test(e.data)?(n.value=!0,r.value=!0):Ie()&&!r.value&&(n.value=!1))}function s(n){O(()=>{t.value=!1,e?.(n)})}return{isComposing:t,shouldDeferInput:i,handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:s}}function Re(e){let t=x(()=>a(e)),n=x(()=>new Intl.Collator(`en`,{usage:`search`,...t.value}));return{startsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(0,t.length),t)===0),endsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(-t.length),t)===0),contains:(e,t)=>{if(t.length===0)return!0;if(e=e.normalize(`NFC`),t=t.normalize(`NFC`),t.length>e.length)return!1;let r=n.value.compare;if(e.includes(t))return!0;let i=t.length;for(let n=0;n+i<=e.length;n++)if(r(t,e.slice(n,n+i))===0)return!0;return!1}}}var ze=0;function Be(){c(e=>{if(!L)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??Ve()),document.body.insertAdjacentElement(`beforeend`,t[1]??Ve()),ze++,e(()=>{ze===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),ze--})})}function Ve(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function He(e){return x(()=>!t(e)||!!fe(e)?.closest(`form`))}function Ue(e,t){let n=ye(e),r=t?ve(t):{};return x(()=>({...n.value,...r}))}var We=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ge=new WeakMap,Ke=new WeakMap,qe={},Je=0,Ye=function(e){return e&&(e.host||Ye(e.parentNode))},Xe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ye(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ze=function(e,t,n,r){var i=Xe(t,Array.isArray(e)?e:[e]);qe[n]||(qe[n]=new WeakMap);var a=qe[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Ge.get(e)||0)+1,l=(a.get(e)||0)+1;Ge.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ke.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Je++,function(){o.forEach(function(e){var t=Ge.get(e)-1,i=a.get(e)-1;Ge.set(e,t),a.set(e,i),t||(Ke.has(e)||e.removeAttribute(r),Ke.delete(e)),i||e.removeAttribute(n)}),Je--,Je||(Ge=new WeakMap,Ge=new WeakMap,Ke=new WeakMap,qe={})}},Qe=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||We(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ze(r,i,n,`aria-hidden`)):function(){return null}};function $e(e){let t;n(()=>fe(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=Qe(e):t&&t()}),b(()=>{t&&t()})}function et(e){let t=A(),n=x(()=>t.value?.width??0),r=x(()=>t.value?.height??0),i;return _(()=>{let n=fe(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),b(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}var tt=`dismissableLayer.pointerDownOutside`,nt=`dismissableLayer.focusOutside`;function rt(e){if(typeof e!=`object`||!e)return!1;let t=e.ownerDocument?.defaultView;return typeof Element<`u`&&e instanceof Element||!!t&&e instanceof t.Element}function it(e,t){if(!rt(t))return!1;if(e.contains(t))return!0;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function at(e,n,r=!0){let i=A(!1),a=A(()=>{});return c(o=>{if(!L||!t(r))return;let s=n?.value?.ownerDocument??globalThis.document,c=async t=>{let r=t.target;if(n?.value&&r){if(it(n.value,r))s.removeEventListener(`click`,a.value),i.value=!1;else{if(t.target&&!i.value){let n={originalEvent:t};function r(){ce(tt,e,n)}t.pointerType===`touch`?(s.removeEventListener(`click`,a.value),a.value=r,s.addEventListener(`click`,a.value,{once:!0})):r()}else s.removeEventListener(`click`,a.value);i.value=!1}}},l=window.setTimeout(()=>{s.addEventListener(`pointerdown`,c)},0);o(()=>{window.clearTimeout(l),s.removeEventListener(`pointerdown`,c),s.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{t(r)&&(i.value=!0)}}}function ot(e,n,r=!0){let i=A(!1);return c(a=>{if(!L||!t(r))return;let o=n?.value?.ownerDocument??globalThis.document,s=async t=>{if(!n?.value)return;await O(),await O();let r=t.target;n.value&&r&&!it(n.value,r)&&t.target&&!i.value&&ce(nt,e,{originalEvent:t})};o.addEventListener(`focusin`,s),a(()=>o.removeEventListener(`focusin`,s))}),{onFocusCapture:()=>{t(r)&&(i.value=!0)},onBlurCapture:()=>{t(r)&&(i.value=!1)}}}var B=S({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),st=C({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let r=e,i=t,{forwardRef:o,currentElement:s}=z(),l=x(()=>s.value?.ownerDocument??globalThis.document),u=x(()=>B.layersRoot),d=x(()=>s.value?Array.from(u.value).indexOf(s.value):-1),f=x(()=>B.layersWithOutsidePointerEventsDisabled.size>0),p=x(()=>{let e=Array.from(u.value),[t]=[...B.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return d.value>=n}),m=at(async e=>{let t=[...B.branches].some(t=>t?.contains(e.target));r.present&&p.value&&!t&&(i(`pointerDownOutside`,e),i(`interactOutside`,e),await O(),e.defaultPrevented||i(`dismiss`))},s,()=>r.present),h=ot(e=>{let t=[...B.branches].some(t=>t?.contains(e.target));r.present&&!t&&(i(`focusOutside`,e),i(`interactOutside`,e),e.defaultPrevented||i(`dismiss`))},s);return me(`Escape`,e=>{r.present&&d.value===u.value.size-1&&(i(`escapeKeyDown`,e),e.defaultPrevented||i(`dismiss`))},{target:()=>l.value?.defaultView??globalThis.window}),n([s,()=>r.disableOutsidePointerEvents,()=>r.present],([e,t,n],r,i)=>{if(e&&n&&t){let t=e.ownerDocument;De(t,e),B.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{B.layersWithOutsidePointerEventsDisabled.delete(e),Oe(t,e)})}},{immediate:!0}),n([s,()=>r.present],([e,t],n,r)=>{e&&t&&(u.value.add(e),r(()=>{u.value.delete(e)}))},{immediate:!0}),c(e=>{e(()=>{s.value&&(u.value.delete(s.value),B.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(t,n)=>(w(),k(a(ge),{ref:a(o),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:v({pointerEvents:f.value?p.value?`auto`:`none`:void 0}),onFocusCapture:a(h).onFocusCapture,onBlurCapture:a(h).onBlurCapture,onPointerdownCapture:a(m).onPointerDownCapture},{default:D(()=>[M(t.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),ct=ue(()=>A([]));function lt(){let e=ct();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=ut(e.value,t),e.value.unshift(t)},remove(t){e.value=ut(e.value,t),e.value[0]?.resume()}}}function ut(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var dt=`focusScope.autoFocusOnMount`,ft=`focusScope.autoFocusOnUnmount`,pt={bubbles:!1,cancelable:!0};function mt(e,t){let n=t;for(;n;){if(e.contains(n))return!0;n=n.getRootNode().host??null}return!1}function ht(e,{select:t=!1}={}){let n=I();for(let r of e)if(V(r,{select:t}),I()!==n)return!0}function gt(e){let t=_t(e);return[vt(t,e),vt(t.reverse(),e)]}function _t(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t.sort((e,t)=>e.tabIndex===t.tabIndex?0:e.tabIndex===0?1:t.tabIndex===0?-1:e.tabIndex-t.tabIndex)}function vt(e,t){for(let n of e)if(!yt(n,{upTo:t}))return n}function yt(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function bt(e){return e instanceof HTMLInputElement&&`select`in e}function V(e,{select:t=!1}={}){if(e&&e.focus){let n=I();e.focus({preventScroll:!0}),e!==n&&bt(e)&&t&&e.select()}}var xt=C({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let r=e,i=t,{currentRef:o,currentElement:s}=z(),l=A(null),u=lt(),d=S({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});c(e=>{if(!L)return;let t=s.value;if(!r.trapped)return;let n=t?.ownerDocument??document,i=t?t.getRootNode():n;function a(e){if(d.paused||!t)return;let n=e.target;t.contains(n)?l.value=n:V(l.value,{select:!0})}function o(e){if(d.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||V(l.value,{select:!0}))}function c(e){let n=l.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=I();r&&t.contains(r)||t.contains(n)||V(t)}function u(e){if(d.paused||!t)return;let n=e.composedPath()[0];mt(t,n)||V(l.value,{select:!0})}i.addEventListener(`focusin`,a),i.addEventListener(`focusout`,o),i!==n&&n.addEventListener(`focusin`,u);let f=new MutationObserver(c);t&&f.observe(t,{childList:!0,subtree:!0}),e(()=>{i.removeEventListener(`focusin`,a),i.removeEventListener(`focusout`,o),i!==n&&n.removeEventListener(`focusin`,u),f.disconnect()})});function f(e,t){let n=new CustomEvent(dt,pt),r=e=>i(`mountAutoFocus`,e);e.addEventListener(dt,r),e.dispatchEvent(n),e.removeEventListener(dt,r),n.defaultPrevented||(ht(_t(e),{select:!0}),I()===t&&V(e))}c(async e=>{let t=s.value;if(await O(),!t)return;r.present!==!1&&u.add(d);let n=I();!t.contains(n)&&r.present!==!1&&f(t,n),e(()=>{let e=new CustomEvent(ft,pt),r=e=>{i(`unmountAutoFocus`,e)};t.addEventListener(ft,r),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||V(n??document.body,{select:!0}),t.removeEventListener(ft,r),u.remove(d),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),n(()=>r.present,async(e,t)=>{if(!L)return;if(e===!1&&t===!0){u.remove(d);return}if(e!==!0||t!==!1)return;u.add(d),await O();let n=s.value;if(!n)return;let r=I();n.contains(r)||f(n,r)});function p(e){if(!r.loop&&!r.trapped||d.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=I();if(t&&n){let t=e.currentTarget,[i,a]=gt(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r.loop&&V(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r.loop&&V(a,{select:!0})):n===t&&e.preventDefault()}}return(t,n)=>(w(),k(a(ge),{ref_key:`currentRef`,ref:o,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:p},{default:D(()=>[M(t.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),St=C({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:r,currentElement:i}=se(),a=x(()=>t.checked??t.value);return n(a,(e,t)=>{if(!i.value)return;let n=i.value,r=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(r,`value`).set;if(a&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});a.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,n)=>(w(),k(be,y({ref_key:`primitiveElement`,ref:r},{...t,...e.$attrs},{as:`input`}),null,16))}}),Ct=C({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=x(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=x(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(i,a)=>(w(),m(T,null,[N(` We render single input if it's required `),n.value?(w(),k(St,y({key:e.name},{...t,...i.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(w(!0),m(T,{key:1},g(r.value,e=>(w(),k(St,y({key:e.name},{ref_for:!0},{...t,...i.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`]))),128))],2112))}}),[wt,Tt]=re(`PopperRoot`),Et=C({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=A();return Tt({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>M(e.$slots,`default`)}}),Dt=C({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=z(),i=wt();return l(()=>{i.onAnchorChange(t.reference??r.value)}),(t,r)=>(w(),k(a(ge),{ref:a(n),as:e.as,"as-child":e.asChild},{default:D(()=>[M(t.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),Ot={key:0,d:`M0 0L6 6L12 0`},kt={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`},At=C({__name:`Arrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return z(),(n,r)=>(w(),k(a(ge),y(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:`0 0 12 6`,preserveAspectRatio:e.asChild?void 0:`none`}),{default:D(()=>[M(n.$slots,`default`,{},()=>[e.rounded?(w(),m(`path`,kt)):(w(),m(`path`,Ot))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}});function jt(e){return e!==null}function Mt(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Nt(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function Nt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Pt=[`top`,`right`,`bottom`,`left`],H=Math.min,U=Math.max,Ft=Math.round,It=Math.floor,W=e=>({x:e,y:e}),Lt={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Rt(e,t,n){return U(e,H(t,n))}function G(e,t){return typeof e==`function`?e(t):e}function K(e){return e.split(`-`)[0]}function zt(e){return e.split(`-`)[1]}function Bt(e){return e===`x`?`y`:`x`}function Vt(e){return e===`y`?`height`:`width`}function q(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ht(e){return Bt(q(e))}function Ut(e,t,n){n===void 0&&(n=!1);let r=zt(e),i=Ht(e),a=Vt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Qt(o)),[o,Qt(o)]}function Wt(e){let t=Qt(e);return[Gt(e),t,Gt(t)]}function Gt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Kt=[`left`,`right`],qt=[`right`,`left`],Jt=[`top`,`bottom`],Yt=[`bottom`,`top`];function Xt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?qt:Kt:t?Kt:qt;case`left`:case`right`:return t?Jt:Yt;default:return[]}}function Zt(e,t,n,r){let i=zt(e),a=Xt(K(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Gt)))),a}function Qt(e){let t=K(e);return Lt[t]+e.slice(t.length)}function $t(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function en(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:$t(e)}function tn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function nn(e,t,n){let{reference:r,floating:i}=e,a=q(t),o=Ht(t),s=Vt(o),c=K(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=zt(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function rn(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=G(t,e),p=en(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=tn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=tn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var an=50,on=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:rn},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=nn(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<an&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=nn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},sn=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};let d=en(u),f={x:n,y:r},p=Ht(i),m=Vt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=H(d[_],T),D=H(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Rt(E,k,O),j=!c.arrow&&zt(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),cn=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=K(r),_=q(o),v=K(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Qt(o)]:Wt(o)),x=p!==`none`;!d&&x&&b.push(...Zt(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ut(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===q(t)||T.every(e=>q(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=q(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function ln(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function un(e){return Pt.some(t=>e[t]>=0)}var dn=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=G(e,t);switch(i){case`referenceHidden`:{let e=ln(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:un(e)}}}case`escaped`:{let e=ln(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:un(e)}}}default:return{}}}}},fn=new Set([`left`,`top`]);async function pn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=K(n),s=zt(n),c=q(n)===`y`,l=fn.has(o)?-1:1,u=a&&c?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var mn=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await pn(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},hn=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=G(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=q(i),p=Bt(f),m=u[p],h=u[f],g=(e,t)=>Rt(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},gn=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:r},d=q(i),f=Bt(d),p=u[f],m=u[d],h=G(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=fn.has(K(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},_n=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=G(e,t),c=await i.detectOverflow(t,s),l=K(n),u=zt(n),d=q(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=H(p-c[m],g),y=H(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*U(c.left,c.right):S=p-2*U(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function vn(){return typeof window<`u`}function J(e){return yn(e)?(e.nodeName||``).toLowerCase():`#document`}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){return((yn(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function yn(e){return vn()?e instanceof Node||e instanceof Y(e).Node:!1}function Z(e){return vn()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return vn()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function bn(e){return!vn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function xn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Sn(e){return/^(table|td|th)$/.test(J(e))}function Cn(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wn=/transform|translate|scale|rotate|perspective|filter/,Tn=/paint|layout|strict|content/,En=e=>!!e&&e!==`none`,Dn;function On(e){let t=Z(e)?$(e):e;return En(t.transform)||En(t.translate)||En(t.scale)||En(t.rotate)||En(t.perspective)||!An()&&(En(t.backdropFilter)||En(t.filter))||wn.test(t.willChange||``)||Tn.test(t.contain||``)}function kn(e){let t=Nn(e);for(;Q(t)&&!jn(t);){if(On(t))return t;if(Cn(t))return null;t=Nn(t)}return null}function An(){return Dn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Dn}function jn(e){return/^(html|body|#document)$/.test(J(e))}function $(e){return Y(e).getComputedStyle(e)}function Mn(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nn(e){if(J(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bn(e)&&e.host||X(e);return bn(t)?t.host:t}function Pn(e){let t=Nn(e);return jn(t)?(e.ownerDocument||e).body:Q(t)&&xn(t)?t:Pn(t)}function Fn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Pn(e),i=r===e.ownerDocument?.body,a=Y(r);if(i){let e=In(a);return t.concat(a,a.visualViewport||[],xn(r)?r:[],e&&n?Fn(e):[])}return t.concat(r,Fn(r,[],n))}function In(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ln(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ft(n)!==a||Ft(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Rn(e){return Z(e)?e:e.contextElement}function zn(e){let t=Rn(e);if(!Q(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ln(t),o=(a?Ft(n.width):n.width)/r,s=(a?Ft(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Bn=W(0);function Vn(e){let t=Y(e);return!An()||!t.visualViewport?Bn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hn(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function Un(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Rn(e),o=W(1);t&&(r?Z(r)&&(o=zn(r)):o=zn(e));let s=Hn(a,n,r)?Vn(a):W(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Y(a),t=Z(r)?Y(r):r,n=e,i=In(n);for(;i&&t!==n;){let e=zn(i),t=i.getBoundingClientRect(),r=$(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Y(i),i=In(n)}}return tn({width:u,height:d,x:c,y:l})}function Wn(e,t){let n=Mn(e).scrollLeft;return t?t.left+n:Un(X(e)).left+n}function Gn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wn(e,n),y:n.top+t.scrollTop}}function Kn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=X(r),s=t?Cn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W(1),u=W(0),d=Q(r);if((d||!a)&&((J(r)!==`body`||xn(o))&&(c=Mn(r)),d)){let e=Un(r);l=zn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Gn(o,c):W(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function qn(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jn(e){let t=Mn(e),n=e.ownerDocument.body,r=U(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=U(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Wn(e),o=-t.scrollTop;return $(n).direction===`rtl`&&(a+=U(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Yn=25;function Xn(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Y(e),a=X(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!An()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Wn(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Yn&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Zn(e,t){let n=Un(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=zn(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Qn(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Xn(e,n,t);else if(t===`document`)r=Jn(X(e));else if(Z(t))r=Zn(t,n);else{let n=Vn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tn(r)}function $n(e,t){let n=t.get(e);if(n)return n;let r=Fn(e,[],!1).filter(e=>Z(e)&&J(e)!==`body`),i=null,a=$(e).position===`fixed`,o=a?Nn(e):e;for(;Z(o)&&!jn(o);){let e=$(o),t=On(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Nn(o)}return t.set(e,r),r}function er(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Cn(t)?[]:$n(t,this._c):[].concat(n),r],o=Qn(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Qn(t,a[e],i);s=U(n.top,s),c=H(n.right,c),l=H(n.bottom,l),u=U(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function tr(e){let{width:t,height:n}=Ln(e);return{width:t,height:n}}function nr(e,t,n){let r=Q(t),i=X(t),a=n===`fixed`,o=Un(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W(0);if((r||!a)&&((J(t)!==`body`||xn(i))&&(s=Mn(t)),r)){let e=Un(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Wn(i));let l=i&&!r&&!a?Gn(i,s):W(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function rr(e){return $(e).position===`static`}function ir(e,t){if(!Q(e)||$(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function ar(e,t){let n=Y(e);if(Cn(e))return n;if(!Q(e)){let t=Nn(e);for(;t&&!jn(t);){if(Z(t)&&!rr(t))return t;t=Nn(t)}return n}let r=ir(e,t);for(;r&&Sn(r)&&rr(r);)r=ir(r,t);return r&&jn(r)&&rr(r)&&!On(r)?n:r||kn(e)||n}var or=async function(e){let t=this.getOffsetParent||ar,n=this.getDimensions,r=await n(e.floating);return{reference:nr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sr(e){return $(e).direction===`rtl`}var cr={convertOffsetParentRelativeRectToViewportRelativeRect:Kn,getDocumentElement:X,getClippingRect:er,getOffsetParent:ar,getElementRects:or,getClientRects:qn,getDimensions:tr,getScale:zn,isElement:Z,isRTL:sr};function lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ur(e,t,n){let r=null,i,a=X(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=It(d),h=It(a.clientWidth-(u+f)),g=It(a.clientHeight-(d+p)),_=It(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:U(0,H(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!lr(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Y(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function dr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Rn(e),u=i||a?[...l?Fn(l):[],...t?Fn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ur(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Un(e):null;c&&g();function g(){let t=Un(e);h&&!lr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var fr=mn,pr=hn,mr=cn,hr=_n,gr=dn,_r=sn,vr=gn,yr=(e,t,n)=>{let r=new Map,i=n??{},a={...cr,...i.platform,_c:r};return on(e,t,{...i,platform:a})};function br(e){return typeof e==`object`&&!!e&&`$el`in e}function xr(e){if(br(e)){let t=e.$el;return yn(t)&&J(t)===`#comment`?null:t}return e}function Sr(e){return{name:`arrow`,options:e,fn(n){let r=xr(t(e.element));return r==null?{}:_r({element:r,padding:e.padding}).fn(n)}}}function Cr(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wr(e,t){let n=Cr(e);return Math.round(t*n)/n}function Tr(e,r,i){i===void 0&&(i={});let a=i.whileElementsMounted,o=x(()=>t(i.open)??!0),s=x(()=>t(i.middleware)),c=x(()=>t(i.placement)??`bottom`),l=x(()=>t(i.strategy)??`absolute`),u=x(()=>t(i.transform)??!0),d=x(()=>xr(e.value)),f=x(()=>xr(r.value)),m=A(0),g=A(0),_=A(l.value),v=A(c.value),y=j({}),b=A(!1),S=x(()=>{let e={position:_.value,left:`0`,top:`0`};if(!f.value)return e;let t=wr(f.value,m.value),n=wr(f.value,g.value);return u.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...Cr(f.value)>=1.5&&{willChange:`transform`}}:{position:_.value,left:t+`px`,top:n+`px`}}),C;function w(){if(d.value==null||f.value==null)return;let e=o.value;yr(d.value,f.value,{middleware:s.value,placement:c.value,strategy:l.value}).then(t=>{m.value=t.x,g.value=t.y,_.value=t.strategy,v.value=t.placement,y.value=t.middlewareData,b.value=e!==!1})}function T(){typeof C==`function`&&(C(),C=void 0)}function D(){T(),a===void 0?w():d.value!=null&&f.value!=null&&(C=a(d.value,f.value,w))}function O(){o.value||(b.value=!1)}return n([s,c,l,o],w,{flush:`sync`}),n([d,f],D,{flush:`sync`}),n(o,O,{flush:`sync`}),p()&&E(T),{x:h(m),y:h(g),strategy:h(_),placement:h(v),middlewareData:h(y),isPositioned:h(b),floatingStyles:S,update:w}}var Er=[`dir`],Dr={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[Or,kr]=re(`PopperContent`),Ar=C({inheritAttrs:!1,__name:`PopperContent`,props:o({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Dr}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=wt(),{forwardRef:o,currentElement:s}=z(),d=_e(x(()=>n.dir)),f=A(),p=A(),{width:h,height:g}=et(p),_=x(()=>n.side+(n.align===`center`?``:`-${n.align}`)),b=x(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),S=x(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),C=x(()=>({padding:b.value,boundary:S.value.filter(jt),altBoundary:S.value.length>0})),T=x(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),E=x(()=>[fr({mainAxis:n.sideOffset+g.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&mr({...C.value,...T.value}),n.avoidCollisions&&pr({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?vr():void 0,...C.value}),!n.prioritizePosition&&n.avoidCollisions&&mr({...C.value,...T.value}),hr({...C.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),p.value&&Sr({element:p.value,padding:n.arrowPadding}),Mt({arrowWidth:h.value,arrowHeight:g.value,dir:d.value}),n.hideWhenDetached&&gr({strategy:`referenceHidden`,...C.value})]),{floatingStyles:O,placement:j,isPositioned:N,middlewareData:P,update:ee}=Tr(x(()=>n.reference??i.anchor.value),f,{strategy:n.positionStrategy,placement:_,whileElementsMounted:(...e)=>dr(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:E}),te=x(()=>Nt(j.value)[0]),ne=x(()=>Nt(j.value)[1]);l(()=>{N.value&&r(`placed`)});let re=x(()=>{let e=P.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),F=A(``);return c(()=>{s.value&&(F.value=window.getComputedStyle(s.value).zIndex)}),kr({placedSide:te,onArrowChange:e=>p.value=e,arrowX:x(()=>P.value.arrow?.x??0),arrowY:x(()=>P.value.arrow?.y??0),shouldHideArrow:re}),(e,t)=>(w(),m(`div`,{ref_key:`floatingRef`,ref:f,"data-reka-popper-content-wrapper":``,dir:a(d),style:v({...a(O),transform:a(N)?a(O).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:F.value,"--reka-popper-transform-origin":[a(P).transformOrigin?.x,a(P).transformOrigin?.y].join(` `),...a(P).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[n.memoDependencies?u([n.asChild,n.as,te.value,ne.value,a(N),...Object.values(e.$attrs),...n.memoDependencies],()=>(w(),k(a(ge),y({key:0,ref:a(o)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":te.value,"data-align":ne.value,style:{animation:a(N)?void 0:`none`}}),{default:D(()=>[M(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(w(),k(a(ge),y({key:1,ref:a(o)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":te.value,"data-align":ne.value,dir:a(d),style:{animation:a(N)?void 0:`none`}}),{default:D(()=>[M(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,Er))}}),jr={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Mr=C({inheritAttrs:!1,__name:`PopperArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(t){let{forwardRef:n}=z(),r=Or(),i=x(()=>jr[r.placedSide.value]);return(o,s)=>(w(),m(`span`,{ref:e=>{a(r).onArrowChange(e??void 0)},style:v({position:`absolute`,left:a(r).arrowX?.value?`${a(r).arrowX?.value}px`:void 0,top:a(r).arrowY?.value?`${a(r).arrowY?.value}px`:void 0,[i.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[a(r).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[a(r).placedSide.value],visibility:a(r).shouldHideArrow.value?`hidden`:void 0})},[e(At,y(o.$attrs,{ref:a(n),style:{display:`block`},as:t.as,"as-child":t.asChild,rounded:t.rounded,width:t.width,height:t.height}),{default:D(()=>[M(o.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}});function Nr(){let{contains:e,startsWith:t}=Re({sensitivity:`base`});function n(n,r){return e(n,r)?e(r,n)?0:t(n,r)?1:2:null}function r(e,t,r){if(typeof e!=`object`||!e)return n(String(e),t);let i=null;for(let a of r){let r=F(e,a);if(r==null)continue;let o=Array.isArray(r)?r.map(String):[String(r)];for(let e of o){let r=n(e,t);if(r!==null&&(i===null||r<i)&&(i=r),i===0)return 0}}return i}function i(e,t,n){if(!t)return e;let i=[];for(let a of e){let e=r(a,t,n);e!==null&&i.push({item:a,score:e})}return i.sort((e,t)=>e.score-t.score),i.map(({item:e})=>e)}function a(e,t,n){return t?e.map(e=>{let i=[];for(let a of e){if(a==null)continue;if(n.isStructural?.(a)){i.push({item:a,score:-1});continue}let e=r(a,t,n.fields);e!==null&&i.push({item:a,score:e})}let a=0;for(let e=0;e<=i.length;e++)(e===i.length||i[e].score===-1)&&(i.splice(a,e-a,...i.slice(a,e).sort((e,t)=>e.score-t.score)),a=e+1);return i.map(({item:e})=>e)}).filter(e=>e.some(e=>!n.isStructural?.(e))):e}return{score:n,scoreItem:r,filter:i,filterGroups:a}}var Pr=Symbol(`nuxt-ui.portal-target`);function Fr(e){let t=r(Pr,void 0),n=x(()=>e.value===!0?t?.value:e.value),i=x(()=>typeof n.value==`boolean`&&!n.value),a=x(()=>typeof n.value==`boolean`?`body`:n.value);return x(()=>({to:a.value,disabled:i.value}))}var Ir={slots:{root:`relative inline-flex items-center`,base:[`w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`},variants:{fieldGroup:{horizontal:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none`},vertical:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none`}},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`}},Lr=[`id`,`type`,`value`,`name`,`placeholder`,`disabled`,`required`,`autocomplete`],Rr=Object.assign({inheritAttrs:!1},{__name:`UInput`,props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},type:{type:null,required:!1,default:`text`},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autocomplete:{type:[String,Object],required:!1,default:`off`},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`update:modelValue`,`blur`,`change`],setup(e,{expose:t,emit:n}){let r=e,o=n,c=i(),l=ae(`input`,r),u=pe(l,`modelValue`,o,{defaultValue:l.defaultValue}),p=te(),{emitFormBlur:h,emitFormInput:g,emitFormChange:v,size:b,color:S,id:C,name:T,highlight:O,disabled:A,emitFormFocus:j,ariaAttrs:P}=Te(r,{deferInputValidation:!0}),{orientation:ee,size:re}=Se(r),{isLeading:F,isTrailing:se,leadingIconName:I,trailingIconName:ce}=we(l),le=x(()=>S.value??l.color),ue=x(()=>O.value??l.highlight),de=x(()=>re.value??b.value??l.size),L=x(()=>A.value??l.disabled),R=x(()=>oe({extend:Ir,...p.ui?.input||{}})({type:l.type,color:le.value,variant:l.variant,size:de.value,loading:l.loading,highlight:ue.value,fixed:l.fixed,leading:F.value||!!l.avatar||!!c.leading,trailing:se.value||!!c.trailing,fieldGroup:ee.value})),fe=s(`inputRef`);function me(e){l.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),(l.modelModifiers?.number||l.type===`number`)&&(e=ie(e)),l.modelModifiers?.nullable&&ne(e)&&(e=null),l.modelModifiers?.optional&&!l.modelModifiers?.nullable&&e!==null&&ne(e)&&(e=void 0),u.value=e,g()}function he(e){l.modelModifiers?.lazy||me(e.target.value)}function _e(e){let t=e.target.value;l.modelModifiers?.lazy&&me(t),l.modelModifiers?.trim&&(e.target.value=t.trim()),v(),o(`change`,e)}function ve(e){h(),o(`blur`,e)}function z(){l.autofocus&&fe.value?.focus()}let ye;return _(()=>{ye=setTimeout(()=>{z()},l.autofocusDelay)}),E(()=>clearTimeout(ye)),t({inputRef:fe}),(e,t)=>(w(),k(a(ge),{as:a(l).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:d(R.value.root({class:[a(l).ui?.root,a(l).class]}))},{default:D(()=>[f(`input`,y({id:a(C),ref_key:`inputRef`,ref:fe,type:a(l).type,value:a(u),name:a(T),placeholder:a(l).placeholder,class:R.value.base({class:a(l).ui?.base}),disabled:L.value,required:a(l).required,autocomplete:a(l).autocomplete},{...e.$attrs,...a(P)},{"data-slot":`base`,onInput:he,onBlur:ve,onChange:_e,onFocus:t[0]||=(...e)=>a(j)&&a(j)(...e)}),null,16,Lr),M(e.$slots,`default`,{ui:R.value}),a(F)||a(l).avatar||c.leading?(w(),m(`span`,{key:0,"data-slot":`leading`,class:d(R.value.leading({class:a(l).ui?.leading}))},[M(e.$slots,`leading`,{ui:R.value},()=>[a(F)&&a(I)?(w(),k(xe,{key:0,name:a(I),"data-slot":`leadingIcon`,class:d(R.value.leadingIcon({class:a(l).ui?.leadingIcon}))},null,8,[`name`,`class`])):a(l).avatar?(w(),k(Ce,y({key:1,size:a(l).ui?.leadingAvatarSize||R.value.leadingAvatarSize()},a(l).avatar,{"data-slot":`leadingAvatar`,class:R.value.leadingAvatar({class:a(l).ui?.leadingAvatar})}),null,16,[`size`,`class`])):N(``,!0)])],2)):N(``,!0),a(se)||c.trailing?(w(),m(`span`,{key:1,"data-slot":`trailing`,class:d(R.value.trailing({class:a(l).ui?.trailing}))},[M(e.$slots,`trailing`,{ui:R.value},()=>[a(ce)?(w(),k(xe,{key:0,name:a(ce),"data-slot":`trailingIcon`,class:d(R.value.trailingIcon({class:a(l).ui?.trailingIcon,leading:a(F)}))},null,8,[`name`,`class`])):N(``,!0)])],2)):N(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}});export{je as S,Ue as _,Mr as a,Re as b,Dt as c,xt as d,ht as f,$e as g,B as h,Nr as i,Et as l,st as m,Pr as n,Dr as o,_t as p,Fr as r,Ar as s,Rr as t,Ct as u,He as v,Le as x,Be as y};
@@ -0,0 +1 @@
1
+ import{$ as e,$n as t,Cn as n,D as r,Dn as i,E as a,Ft as o,Gt as s,Ht as c,L as l,Lt as u,On as d,Pt as f,Rt as p,Tn as m,Xt as h,Yt as g,Zn as _,_ as v,b as y,bt as b,ct as x,er as S,et as C,ft as w,g as T,h as E,jt as D,k as O,mt as k,o as A,pn as j,qt as M,tr as N,tt as P,un as ee,v as F,vn as I,wn as L,wt as R,xn as te,xt as z,y as B,z as V}from"./DZo3dYLJ.js";import{C as H,S as ne,w as U}from"./51OWHj8c.js";import{t as W}from"./CsyY7ot8.js";import{t as G}from"./DSaWoFHS.js";import{r as re,t as ie}from"./oXSDGTSr.js";import{t as ae}from"./8QIcohze.js";import{a as oe,h as K,i as q,l as se,n as ce,r as le,s as ue,t as de}from"./Baq-Hrpf.js";import{n as fe,r as pe,t as me}from"./DLkAKotw.js";import{n as he,r as ge,t as _e}from"./Bb3Limos.js";import{h as ve,m as ye,r as be,s as xe}from"./CuJUHLl8.js";import{p as Se,t as Ce,u as we}from"./Vo4wMbnS.js";import{t as J}from"./CK9_veoz.js";import{S as Te,_ as Ee,a as De,b as Oe,c as ke,d as Ae,g as je,i as Me,l as Ne,m as Pe,r as Fe,s as Ie,t as Le,u as Re,v as ze,x as Y,y as Be}from"./DDA06Sqv.js";import{t as Ve}from"./B43-KCi6.js";import{t as He}from"./BuOKDFiJ.js";import{t as X}from"./D3YCAmfu.js";import{t as Ue}from"./B_SlFcWp.js";import{t as We}from"./C9StZL3D.js";import{a as Ge,r as Ke}from"./BPTrRhcw.js";import{t as qe}from"./CjRYYbsC.js";import{a as Je,i as Ye,n as Xe,r as Ze,t as Qe}from"./D8Bpf7sE.js";import{n as $e,t as et}from"./DNMF9lr0.js";import{c as tt,x as nt}from"#entry";function rt(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function it(e){return e?.querySelector(`[data-state=checked]`)}function at(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>Z(e,t,n)):Z(e,t,n)}function Z(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:ie(e,t)}var[ot,st]=K(`ListboxRoot`),[ct,lt]=K(`ListboxHighlightScroll`),ut=O({__name:`ListboxRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:`vertical`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:`toggle`},highlightOnHover:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(e,{expose:t,emit:n}){let r=e,i=n,{multiple:a,highlightOnHover:o,loop:s,orientation:l,disabled:u,selectionBehavior:f,dir:p}=m(r),{getItems:h,getItem:g}=me({isProvider:!0}),{handleTypeaheadSearch:_}=he(),{primitiveElement:v,currentElement:y}=fe(),b=rt(),x=Ve(p),S=ct(null);lt({suppressHighlightScroll:I(!1),onHighlightScrollRequest:()=>{}});let C=ze(y),w=I(),T=I(!1),E=I(!0),D=Se(r,`modelValue`,i,{defaultValue:r.defaultValue??(a.value?[]:void 0),passive:r.modelValue===void 0,deep:!0});function O(e){if(T.value=!0,r.multiple){let t=Array.isArray(D.value)?[...D.value]:[],n=t.findIndex(t=>Z(t,e,r.by));r.selectionBehavior===`toggle`?(n===-1?t.push(e):t.splice(n,1),D.value=t):(D.value=[e],w.value=e)}else r.selectionBehavior===`toggle`&&Z(D.value,e,r.by)?D.value=void 0:D.value=e;setTimeout(()=>{T.value=!1},1)}let A=I(null),j=I(null),N=I(!1),ee=I(!1),L=be(),R=be(),te=be();function V(){return h().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)}function H(e,t=!0,n){if(!e)return;A.value=e;let r=S?.suppressHighlightScroll.value??!1;(n??E.value)&&(r?A.value.focus({preventScroll:!0}):A.value.focus()),r?S?.onHighlightScrollRequest(t?()=>{let e=A.value;e?.isConnected&&e.scrollIntoView({block:`nearest`})}:void 0):t&&A.value.scrollIntoView({block:`nearest`});let a=g(e);i(`highlight`,a)}function ne(e){if(N.value)te.trigger(e);else{let t=h().find(t=>Z(t.value,e,r.by));t&&(A.value=t.ref,H(t.ref))}}function U(e){if(A.value&&A.value.isConnected){if(e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault(),e.stopPropagation(),ee.value||A.value.click()}}function W(e){if(E.value){if(T.value=!0,N.value)R.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey;if(t&&e.key===`a`&&a.value){let t=h(),n=t.map(e=>e.value);D.value=[...n],e.preventDefault();let r=t.at(-1);r&&H(r.ref)}else if(!t){let t=_(e.key,h());t&&H(t)}}setTimeout(()=>{T.value=!1},1)}}function G(){ee.value=!0}function re(){P(()=>{ee.value=!1})}function ie(){P(()=>{se(new KeyboardEvent(`keydown`,{key:`PageUp`}))})}function oe(e){let t=A.value;t?.isConnected&&(j.value=t),A.value=null,i(`leave`,e)}function K(e){let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){if(j.value)H(j.value);else{let e=V()?.[0];H(e)}}}function q(e){let t=h(!0).map(e=>e.ref),n=e===`next`?t.at(-1):t[0];if(!n)return!1;let r=Number(n.getAttribute(`aria-posinset`)),i=Number(n.getAttribute(`aria-setsize`));return e===`next`?r===i:r===1}function se(e){let t=Ge(e,l.value,x.value);if(!t)return;let n=V();if(A.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(A.value),i=s.value&&r===n.length-1;if(i&&N.value){if(q(t)){let n=t===`next`?b.HOME:b.END;return R.trigger(new KeyboardEvent(`keydown`,{key:n,shiftKey:e.shiftKey}))}n=[]}else n=i?n.slice(0,1):n.slice(r+1)}ce(e,n[0])}if(n.length){let e=!A.value&&t===`prev`?n.length-1:0;H(n[e])}if(N.value)return R.trigger(e)}function ce(e,t){if(!N.value&&r.selectionBehavior===`replace`&&a.value&&Array.isArray(D.value)&&(!e.altKey&&!e.ctrlKey&&!e.metaKey||e.shiftKey)&&e.shiftKey){let n=h().filter(e=>e.ref.dataset.disabled!==``),r=n.find(e=>e.ref===t)?.value;if(e.key===b.END?r=n.at(-1)?.value:e.key===b.HOME&&(r=n[0]?.value),!r||!w.value)return;let i=ae(n.map(e=>e.value),w.value,r);D.value=i}}async function le(e,t=!0){if(xe){if(await P(),N.value)L.trigger({event:e,scroll:t});else{let e=V(),n=e.find(e=>e.dataset.state===`checked`),r=t?void 0:!1;n?H(n,t,r):e.length&&H(e[0],t,r)}}}let ue=!1;return c(D,()=>{if(!T.value){let e=ue;ue=!0,P(()=>{le(void 0,e)})}},{immediate:!0,deep:!0}),t({highlightedElement:A,highlightItem:ne,highlightFirstItem:ie,highlightSelected:le,getItems:h}),st({modelValue:D,onValueChange:O,multiple:a,orientation:l,dir:x,disabled:u,highlightOnHover:o,loop:s,highlightedElement:A,isVirtual:N,virtualFocusHook:L,virtualKeydownHook:R,virtualHighlightHook:te,by:r.by,firstValue:w,selectionBehavior:f,focusable:E,onLeave:oe,onEnter:K,changeHighlight:H,onKeydownEnter:U,onKeydownNavigation:se,onKeydownTypeAhead:W,onCompositionStart:G,onCompositionEnd:re,highlightFirstItem:ie}),(t,n)=>(k(),F(d(J),{ref_key:`primitiveElement`,ref:v,as:e.as,"as-child":e.asChild,dir:d(x),"data-disabled":d(u)?``:void 0,onPointerleave:oe,onFocusout:n[0]||=async e=>{let t=e.relatedTarget||e.target;await P(),A.value&&d(y)&&!d(y).contains(t)&&oe(e)}},{default:M(()=>[z(t.$slots,`default`,{modelValue:d(D)}),d(C)&&e.name?(k(),F(d(Re),{key:0,name:e.name,value:d(D),disabled:d(u),required:e.required},null,8,[`name`,`value`,`disabled`,`required`])):B(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`]))}}),Q=O({__name:`ListboxContent`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{CollectionSlot:t}=me(),n=ot(),i=ve(!1,10);return(a,o)=>(k(),F(d(t),null,{default:M(()=>[r(d(J),{role:`listbox`,as:e.as,"as-child":e.asChild,tabindex:d(n).focusable.value?d(n).highlightedElement.value?`-1`:`0`:`-1`,"aria-orientation":d(n).orientation.value,"aria-multiselectable":!!d(n).multiple.value,"data-orientation":d(n).orientation.value,onMousedown:o[0]||=U(e=>i.value=!0,[`left`]),onFocus:o[1]||=e=>{d(i)||d(n).onEnter(e)},onKeydown:[o[2]||=H(e=>{(d(n).orientation.value!==`vertical`||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)&&(d(n).orientation.value!==`horizontal`||e.key!==`ArrowUp`&&e.key!==`ArrowDown`)&&(e.preventDefault(),d(n).focusable.value&&d(n).onKeydownNavigation(e))},[`down`,`up`,`left`,`right`,`home`,`end`]),H(d(n).onKeydownEnter,[`enter`]),d(n).onKeydownTypeAhead]},{default:M(()=>[z(a.$slots,`default`)]),_:3},8,[`as`,`as-child`,`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`])]),_:3}))}}),dt=O({__name:`ListboxFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=Se(n,`modelValue`,t,{defaultValue:``,passive:n.modelValue===void 0}),i=ot(),{primitiveElement:a,currentElement:o}=fe(),c=T(()=>n.disabled||i.disabled.value||!1),l=I();s(()=>l.value=i.highlightedElement.value?.id),x(()=>{i.focusable.value=!1,setTimeout(()=>{n.autoFocus&&o.value?.focus()},1)}),w(()=>{i.focusable.value=!0});let{isComposing:u,shouldDeferInput:f,handleCompositionStart:p,handleCompositionUpdate:m,handleCompositionEnd:h}=Y(e=>{r.value=e.target.value,i.onCompositionEnd(),i.highlightFirstItem()});function g(){i.onCompositionStart(),p()}function _(e){f.value||(r.value=e.target.value,i.highlightFirstItem())}function v(e){u.value||(e.preventDefault(),i.onKeydownNavigation(e))}function y(e){u.value||i.onKeydownEnter(e)}return(t,n)=>(k(),F(d(J),{ref_key:`primitiveElement`,ref:a,as:e.as,"as-child":e.asChild,value:d(r),disabled:c.value?``:void 0,"data-disabled":c.value?``:void 0,"aria-disabled":c.value??void 0,"aria-activedescendant":l.value,type:`text`,onKeydown:[H(v,[`down`,`up`,`home`,`end`]),H(y,[`enter`])],onInput:_,onCompositionstart:g,onCompositionupdate:d(m),onCompositionend:d(h)},{default:M(()=>[z(t.$slots,`default`,{modelValue:d(r)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onCompositionupdate`,`onCompositionend`]))}}),[ft,pt]=K(`ListboxGroup`),mt=O({__name:`ListboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=W(void 0,`reka-listbox-group`);return pt({id:n}),(e,r)=>(k(),F(d(J),C({role:`group`},t,{"aria-labelledby":d(n)}),{default:M(()=>[z(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),ht=`listbox.select`,[gt,_t]=K(`ListboxItem`),vt=O({__name:`ListboxItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},emits:[`select`],setup(e,{emit:t}){let n=e,i=t,a=W(void 0,`reka-listbox-item`),{CollectionItem:o}=me(),{forwardRef:s,currentElement:c}=X(),l=ot(),u=T(()=>c.value!=null&&c.value===l.highlightedElement.value),f=T(()=>at(l.modelValue.value,n.value,l.by)),p=T(()=>l.disabled.value||n.disabled);async function m(e){i(`select`,e),!e?.defaultPrevented&&!p.value&&e&&(l.onValueChange(n.value),l.changeHighlight(c.value))}function g(e){let t={originalEvent:e,value:n.value};ge(ht,m,t)}return _t({isSelected:f}),(t,n)=>(k(),F(d(o),{value:e.value},{default:M(()=>[h([u.value,f.value,p.value,d(l).focusable.value,...Object.entries(t.$attrs).flat()],()=>r(d(J),C({id:d(a)},t.$attrs,{ref:d(s),role:`option`,tabindex:d(l).focusable.value?u.value?`0`:`-1`:-1,"aria-selected":f.value,as:e.as,"as-child":e.asChild,disabled:p.value?``:void 0,"data-disabled":p.value?``:void 0,"data-highlighted":u.value?``:void 0,"data-state":f.value?`checked`:`unchecked`,onClick:g,onKeydown:H(U(g,[`prevent`]),[`space`]),onPointermove:n[0]||=()=>{d(l).highlightedElement.value!==d(c)&&d(l).highlightOnHover.value&&d(l).changeHighlight(d(c),!1,!1)}}),{default:M(()=>[z(t.$slots,`default`,{selected:f.value})]),_:3},16,[`id`,`tabindex`,`aria-selected`,`as`,`as-child`,`disabled`,`data-disabled`,`data-highlighted`,`data-state`,`onKeydown`]),n,1)]),_:3},8,[`value`]))}}),yt=O({__name:`ListboxItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=X(),n=gt();return(i,a)=>(k(),F(d(We),{present:e.forceMount||d(n).isSelected.value},{default:M(()=>[r(d(J),{ref:d(t),"aria-hidden":`true`,"data-state":d(n).isSelected.value?`checked`:`unchecked`,as:e.as,"as-child":e.asChild},{default:M(()=>[z(i.$slots,`default`)]),_:3},8,[`data-state`,`as`,`as-child`])]),_:3},8,[`present`]))}});function bt(e){return typeof e==`object`?e.key:e}function xt(e,t){let n=e.length;return new Proxy(e,{get(e,r,i){if(typeof r==`string`){let i=r.charCodeAt(0);if(i>=48&&i<=57){let i=+r;if(Number.isInteger(i)&&i>=0&&i<n){let n=e[i];if(typeof n!=`object`){let r=t[i*2];n=e[i]={index:i,key:n,start:r,size:t[i*2+1],end:r+t[i*2+1],lane:0}}return n}}if(r===`length`)return n}return Reflect.get(e,r,i)}})}function St(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return(o.length!==r.length||o.some((e,t)=>r[t]!==e))&&(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1),i}return o.updateDeps=e=>{r=e},o}function Ct(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var wt=(e,t)=>Math.abs(e-t)<1.01,Tt=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})};function Et({offset:e,isScrolling:t,elementMax:n,holdOffset:r,scrollOffset:i,pendingWrite:a,clampedMaxAtWrite:o}){return t&&a===null&&e===i?`spurious`:a!==null&&Math.abs(e-a.target)<1.5?`readBack`:a!==null&&!a.smooth&&n!==null&&a.target>n+r+.5&&Math.abs(e-(n+r))<1.5||a!==null&&!a.smooth&&a.lowMaxes?.some(t=>Math.abs(e-t)<1.5)?`clampedReadBack`:o!==null&&Math.abs(e-o)<1.5?`clampedEcho`:`external`}var Dt=e=>e===`smooth`||e===`smoothFinishing`;function Ot({kind:e,offset:t,command:n,target:r}){return e!==`spurious`&&e!==`readBack`&&e!==`clampedReadBack`&&n?.index!=null&&n.phase!==`queued`&&!Dt(n.phase)&&!wt(t,n.lastTargetOffset)&&!wt(t,r())&&e!==`clampedEcho`}var kt=40;function At(e){let t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<kt;)n--;if(n<0)return!1;let r=e[n],i=n-1;for(;i>=0&&r.t-e[i].t<kt;)i--;if(i<0)return!1;let a=e[i],o=(t.offset-r.offset)/(t.t-r.t),s=(r.offset-a.offset)/(r.t-a.t);return o*s>=0&&Math.abs(o)>=2*Math.abs(s)&&Math.abs(o)-Math.abs(s)>=.8}function jt(e){let t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<kt;)n--;if(n<0)return!1;let r=e[n];return Math.abs(t.offset-r.offset)/(t.t-r.t)>=.05}var Mt,Nt=()=>{if(Mt!==void 0)return Mt;if(typeof navigator>`u`)return Mt=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Mt=!0;let e=navigator.maxTouchPoints;return Mt=navigator.platform===`MacIntel`&&e!==void 0&&e>0},Pt,Ft=()=>Pt===void 0?Pt=Nt()&&typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`overflow-anchor: auto`):Pt,It={capture:!0,passive:!0},Lt=class{constructor(e){this.host=e,this._touch=null,this.inMotion=()=>this._touch!==null&&this._touch.phase!==`lateFling`,this.dragging=()=>this._touch?.phase===`down`&&this._touch.moved,this.tail=()=>this._touch?.phase===`tail`?this._touch.moved?`fling`:`tap`:null,this.onScroll=({isScrolling:e,ownReadBack:t,moved:n,external:r})=>(e&&this._touch?.phase===`tail`?this._openTail(this._touch.moved||!t,!1):this._touch?.phase===`lateFling`&&(this.host.now()>this._touch.until?this._touch=null:r&&e&&n&&this._openTail(!0,!1)),!t&&e&&n&&this._touch?.phase===`down`?(this._touch.moved=!0,!0):!1),this.touchStart=()=>{this.end(),this._touch={phase:`down`,moved:!1}},this.touchEnd=()=>{let e=this._touch?.phase===`down`&&this._touch.moved;this.end(),this._openTail(e,e)},this.end=()=>{let e=this.host.getWindow();this._touch?.phase===`tail`&&e!=null&&e.clearTimeout(this._touch.timerId),this._touch=null},this.listen=e=>{let t=()=>this.touchStart(),n=()=>this.touchEnd();return e.addEventListener(`touchstart`,t,It),e.addEventListener(`touchend`,n,It),e.addEventListener(`touchcancel`,n,It),()=>{e.removeEventListener(`touchstart`,t,It),e.removeEventListener(`touchend`,n,It),e.removeEventListener(`touchcancel`,n,It),this.end()}},this._openTail=(e,t)=>{let n=this.host.getWindow();if(!Nt()||n==null)return;this.end();let r={phase:`tail`,moved:e,awaitingFling:t,timerId:n.setTimeout(()=>{this.host.tailStillMoving()?this._openTail(r.moved,r.awaitingFling):(this._touch=r.awaitingFling?{phase:`lateFling`,until:this.host.now()+1e3}:null,this.host.onTailClosed())},150)};this._touch=r}}get touch(){return this._touch}},Rt=e=>{let{clientWidth:t,clientHeight:n}=e;return{width:t,height:n}},zt=e=>{let t=new Set;return{schedule:n=>{let r=e.requestAnimationFrame(()=>{t.delete(r),n()});t.add(r)},cancel:()=>{t.forEach(t=>e.cancelAnimationFrame(t)),t.clear()}}},Bt=e=>e,Vt=e=>{let t=e.overscan*Math.max(e.lanes??1,1),n=Math.max(e.startIndex-t,0),r=Math.min(e.endIndex+t,e.count-1)-n+1,i=Array(r);for(let e=0;e<r;e++)i[e]=n+e;return i},Ht=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(Rt(n)),!r.ResizeObserver)return()=>{};let a=zt(r),o=new r.ResizeObserver(()=>{let t=()=>{i(Rt(n))};e.options.useAnimationFrameWithResizeObserver?a.schedule(t):t()});return o.observe(n,{box:`content-box`}),()=>{o.unobserve(n),a.cancel()}},Ut={passive:!0},Wt=typeof window>`u`||`onscrollend`in window,Gt=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Wt,o=0,s=a?null:Tt(i,()=>t(n(r),!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,Ut),a&&r.addEventListener(`scrollend`,u,Ut),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u),s?.cancel()}},Kt=(e,t)=>Gt(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),qt=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},Jt=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},Yt=(e,t)=>e===`smooth`?t?`smoothLanded`:`smooth`:`instant`,Xt=e=>e?.phase===`smooth`||e?.phase===`smoothLanded`;function Zt(e,t,n,r){if(t===0)return!1;let i=r(0),a=new Set,o=0;for(;o<e;){let e=n(o);if(e===i)break;a.add(e),o++}let s=e-o;if(s===0||s>=t)return!1;for(let e=0;e<s;e++)if(r(e)!==n(o+e))return!1;for(let e=s;e<t;e++)if(a.has(r(e)))return!1;return!0}var Qt=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._iosGesture=new Lt({getWindow:()=>this.targetWindow,now:()=>this.now(),tailStillMoving:()=>{let e=this.scrollState;if(e?.phase!==`queued`||this.pendingWrite!==null)return!1;let t=this._readElementOffset();return t===null||this._lastElementOffset===null||Math.abs(t-this._lastElementOffset)<1?!1:(this._lastElementOffset=t,e.samples=[...e.samples??[],{t:this.now(),offset:t}],!0)},onTailClosed:()=>{let e=this.scrollState;e?.phase===`queued`&&jt(e.samples??[])&&(this.scrollState=null),this._flushHoldIfReady(!0),this._writeAwaitingCommand(),this._retryClampedAdjustment()}}),this._lastElementOffset=null,this.pendingWrite=null,this._clampedAdjustment=null,this.elementsCache=new Map,this._resizeBatch=null,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=null,n=()=>{if(e)return e;let n=this.targetWindow;if(!n||!n.ResizeObserver)return null;let i=t=zt(n);return e=new n.ResizeObserver(e=>{let t=()=>{let t={sync:!1};this._resizeBatch=t;try{e.forEach(r)}finally{this._resizeBatch=null,t.notify&&(this.notify(t.sync),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment())}};this.options.useAnimationFrameWithResizeObserver?i.schedule(t):t()})},r=e=>{let t=e.target,n=this.indexFromElement(t);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),t?.cancel(),e=null,t=null},observe:e=>n()?.observe(e,{box:`border-box`}),unobserve:e=>n()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Bt,rangeExtractor:Vt,onChange:()=>{},measureElement:qt,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=this._singleLaneMeasurements?.items??s,l=e=>bt(c[e]),u=e>0?l(0):null,d=e>0?l(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==u||t.getItemKey(o-1)!==d)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>0&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==d)&&(o>e||Zt(e,o,l,t.getItemKey))&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=null;if(r&&this.scrollOffset!==null&&!this._awaitingCommandReadBack()){let[e,t]=r,n=this.getMeasurements(),{count:a,getItemKey:s}=this.options,c=0;for(;c<a&&s(c)!==e;)c++;if(c<a){let e=n[c];if(e){let n=Math.max(0,e.start+t);!i&&n!==this.scrollOffset&&(o=n-this.scrollOffset,this.scrollOffset=n)}}}i?this.pendingScrollAnchor={kind:`follow`,behavior:i}:o!==null&&(this._canWriteScroll()?this.pendingScrollAnchor={kind:`anchor`,delta:o}:(this._holdOffset+=o,this._followOffsetTarget(o)))},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{var e;this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,(e=this._momentumStop)==null||e.restore(),this._momentumStop=null,this.isScrolling=!1,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._clampedAdjustment=null,this.pendingWrite=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{let n=t?this._elementMaxScrollOffset():null,r=this._reportedOverscroll;this._reportedOverscroll=e<0||n!==null&&e>n+1;let i=e;this._lastElementOffset=i,e=this._toLayoutOffset(e);let a=this._classifyScrollEvent(e,t,n);if(a===`spurious`)return;a===`readBack`?e=this.pendingWrite.target:a===`clampedReadBack`&&this.scrollState?.index!=null&&e<this.getMaxScrollOffset()-1.5?this.scrollState.lastTargetOffset=e:Ot({kind:a,offset:e,command:this.scrollState,target:()=>this.getScrollStateTarget(this.scrollState)})&&(this.scrollState=null),this.pendingWrite=null,this._clampedAdjustment!==null&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null);let o=this.getScrollOffset(),s=this.scrollDirection;this.scrollDirection=t?o===e?this.scrollDirection:o<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t;let c=this.scrollState;if(c?.phase===`queued`&&a===`external`&&t){if(r||this._reportedOverscroll)c.samples=[];else{let e=this.now();c.samples=[...(c.samples??[]).filter(t=>e-t.t<=200),{t:e,offset:i}],(s!==null&&this.scrollDirection!==s||At(c.samples))&&(this.scrollState=null)}}this._iosGesture.onScroll({isScrolling:t,ownReadBack:a===`readBack`,moved:e!==o,external:a===`external`&&this.scrollState?.phase!==`smooth`&&this.scrollState?.phase!==`smoothFinishing`})&&this.scrollState?.phase===`queued`&&(this.scrollState=null),this._flushHoldIfReady(!0),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement&&this.unsubs.push(this._iosGesture.listen(this.scrollElement)),this._scrollToOffset(this.getScrollOffset())}this._noteClampMax();let t=this.pendingScrollAnchor;this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled&&(t.kind===`anchor`?this._canWriteScroll()?Xt(this.scrollState)&&!wt(this.getScrollOffset()-t.delta,this.scrollState.lastTargetOffset)||(this._followOffsetTarget(t.delta),this._scrollToOffset(this.getScrollOffset())):(this._holdOffset+=t.delta,this._followOffsetTarget(t.delta),this.notify(!1)):this.scrollToEnd({behavior:t.behavior})),this._flushHoldIfReady(!1),this._retryClampedAdjustment()},this._classifyScrollEvent=(e,t,n)=>Et({offset:e,isScrolling:t,elementMax:n,holdOffset:this._holdOffset,scrollOffset:this.scrollOffset,pendingWrite:this.pendingWrite,clampedMaxAtWrite:this._clampedAdjustment?.maxAtWrite??null}),this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled||!this._canWriteScroll())return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e))},this._writeAwaitingCommand=()=>{let e=this.scrollState;if(e===null||e.phase!==`queued`)return;let{behavior:t}=e;this.getMeasurements();let n=this.getScrollStateTarget(e);e.lastTargetOffset=n,this._clampedAdjustment=null,e.phase=Yt(t,e.index!=null&&wt(n,this.getScrollOffset())),this._scrollToOffset(n,{behavior:t}),this.scheduleScrollReconcile()},this._readElementOffset=()=>{let e=this.scrollElement;if(e==null)return null;let{horizontal:t,isRtl:n}=this.options;return typeof e.scrollTop==`number`?t?e.scrollLeft*(n&&-1||1):e.scrollTop:typeof e.scrollY==`number`?t?e.scrollX:e.scrollY:null},this._canWriteScroll=()=>!(Nt()&&this._iosGesture.inMotion())&&!this._reportedOverscroll,this._flushHoldIfReady=e=>{if(this._holdOffset===0||!this.scrollElement||!this.options.enabled||!this._canWriteScroll()||this.scrollState?.phase===`smooth`)return;this._holdOffset=0,this.scrollOffset!==null&&this.scrollOffset<0&&(this.scrollOffset=0),this.notify(e);let t=this.getCommandWrittenOffset()??this.getScrollOffset();this._clampedAdjustment=this._clampedBy(t),this._scrollToOffset(t)},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._singleLaneMeasurements?.flat;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e}let o=u===0?Array(e):this._singleLaneMeasurements.items.slice(),c;if(u===0)c=t+n;else{let e=u-1;c=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t);o[t]=e;let n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=c,a[t*2+1]=i,c+=i+s}this._singleLaneMeasurements={flat:a,items:o};let d=xt(o,a);return this.measurementsCache=d,d}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=tn(e,t,n,r,r===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=St(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t,this.options.lanes]},(e,t,n,r,i,a)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n,lanes:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!Xt(this.scrollState))return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;if(!this.isIndexInRange(e))return;this._resizeBatch?.sync&&this.getMeasurements();let r,i,a,o=this._singleLaneMeasurements?.flat;if(this.options.lanes===1&&o!=null)a=this.options.getItemKey(e),i=o[e*2],r=o[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;a=t.key,i=t.start,r=t.size}let s=this.itemSizeCache.get(a)??r,c=t-s;if(c!==0){let o=this.options.anchorTo===`end`&&!Xt(this.scrollState)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,l=o?this._getLayoutTotalSize():0,u=this.getScrollOffset(),d=this.itemSizeCache.has(a)?i+s<=u&&this.scrollDirection!==`backward`:i<u,f=!Xt(this.scrollState)&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?d:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:i,size:r,end:i+r,lane:0},c,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++;let p=!1;if(this._awaitingCommandReadBack()||(o?p=this.applyScrollAdjustment(this._getLayoutTotalSize()-l):f&&(p=this.applyScrollAdjustment(c))),this._resizeBatch){this._resizeBatch.notify=!0,(n=this._resizeBatch).sync||(n.sync=p);return}this.notify(p),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment()}},this.getVirtualItems=St(()=>[this.getVirtualIndexes(),this.getMeasurements(),this._holdOffset],(e,t,n)=>{let r=[];for(let i=0,a=e.length;i<a;i++){let a=t[e[i]];r.push(n===0?a:{...a,start:a.start-n,end:a.end-n})}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._singleLaneMeasurements?.flat,r=this.options.lanes===1&&n!=null;return Ct(t[$t(0,t.length-1,r?e=>n[e*2]:e=>Ct(t[e]).start,e)])},this._noteClampMax=()=>{if(!this._awaitingCommandReadBack())return;let e=this._elementMaxScrollOffset();if(e===null)return;let t=this.pendingWrite,n=Math.max(e,0)+this._holdOffset;if(n>=t.target)return;let r=t.lowMaxes??=[];r[r.length-1]!==n&&r.push(n)},this.getMaxScrollOffset=()=>(this._elementMaxScrollOffset()??0)+this._holdOffset,this._toLayoutOffset=e=>{let t=e+this._holdOffset;return this.pendingScrollAnchor?.kind===`anchor`&&(t+=this.pendingScrollAnchor.delta),t},this._elementMaxScrollOffset=()=>{let e=this.scrollElement;if(e===null)return null;if(`scrollHeight`in e)return this.options.horizontal?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight;if(`document`in e){let t=e.document.documentElement;return this.options.horizontal?t.scrollWidth-e.innerWidth:t.scrollHeight-e.innerHeight}return null},this._momentumStop=null,this._stopMomentum=e=>{let t=this.scrollElement,n=this.targetWindow;if(t===null||n===null)return;let r=`document`in t?t.document.scrollingElement:t;if(!r?.style)return;if(this._momentumStop){this._momentumStop.done=e;return}let{style:i}=r,a=this.options.horizontal?`overflow-x`:`overflow-y`,o=i.getPropertyValue(a),s=i.getPropertyPriority(a);i.setProperty(a,`hidden`,`important`);let c={restore:()=>i.getPropertyValue(a)!==`hidden`||i.getPropertyPriority(a)!==`important`?!1:(i.setProperty(a,o,s),!0),done:e};this._momentumStop=c,n.requestAnimationFrame(()=>n.requestAnimationFrame(()=>{this._momentumStop===c&&(this._momentumStop=null,c.restore()&&c.done())}))},this._clampedBy=e=>{let t=this._elementMaxScrollOffset();if(t===null)return null;let n=t+this._holdOffset;return e>n+.5?{target:e,maxAtWrite:n}:null},this.getVirtualDistanceFromEnd=()=>Math.max(this._getLayoutTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1){let e=this.getMaxScrollOffset(),n=e-this.options.paddingEnd+this.options.scrollPaddingEnd;return[Math.max(Math.min(n,e),0),t]}let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._startScroll({index:null,align:t},this.getOffsetForAlignment(e,t),n,`absolute`)},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r;this._startScroll({index:e,align:a},i,n,`absolute`)},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getOffsetForAlignment((this.getCommandWrittenOffset()??this.getScrollOffset())+e,`start`);this._startScroll({index:null,align:`start`},n,t,`relative`)},this.scrollToEnd=({behavior:e=`auto`}={})=>{this.options.count>0?this._startScroll({index:this.options.count-1,align:`end`,toEnd:!0},Math.max(this.getMaxScrollOffset(),0),e,`absolute`):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.cancelScroll=()=>{this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>Math.max(this._getLayoutTotalSize()-this._holdOffset,0),this._getLayoutTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._singleLaneMeasurements?.flat;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n}={})=>{let r={target:e+(t??0),smooth:n===`smooth`};return this.pendingWrite=r,this.options.scrollToFn(e-this._holdOffset,{behavior:n,adjustments:t},this),r},this.getCommandWrittenOffset=()=>this.scrollState!==null&&this.pendingWrite!==null&&!this.pendingWrite.smooth?this.pendingWrite.target:null,this._awaitingCommandReadBack=()=>{let e=this.getCommandWrittenOffset();return!(Nt()&&this._iosGesture.dragging())&&e!==null&&!wt(e,this.getScrollOffset())},this._followOffsetTarget=e=>{this.scrollState!==null&&this.scrollState.index==null&&(this.scrollState.lastTargetOffset+=e)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}get scrollAdjustments(){return 0}applyScrollAdjustment(e,t){if(e===0)return!1;if(this._followOffsetTarget(e),this._canWriteScroll()){let n=this.getScrollOffset();this._clampedAdjustment=this._clampedBy(n+e);let r=this._scrollToOffset(n,{adjustments:e,behavior:t});return this.scrollOffset!==null&&(this.pendingWrite===r&&(this.scrollOffset+=e),this.scrollOffset<0&&(this.scrollOffset=0)),!0}return this._holdOffset+=e,this.scrollOffset!==null&&(this.scrollOffset+=e),!0}scheduleScrollReconcile(){this.targetWindow?this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}):this.scrollState=null}getScrollStateTarget(e){let t=e.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:e.index==null?void 0:this.getOffsetForIndex(e.index,e.align);return t?t[0]:e.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}if(this.scrollState.phase===`queued`){this.scheduleScrollReconcile();return}this.getMeasurements();let e=this.getScrollStateTarget(this.scrollState),t=this.scrollState.index==null?1:this.options.useAnimationFrameWithResizeObserver?3:2,n=e!==this.scrollState.lastTargetOffset;if(!n&&wt(e,this.getScrollOffset())){if(this.scrollState.phase===`smooth`?this.scrollState.phase=`smoothLanded`:this.scrollState.phase===`smoothFinishing`&&(this.scrollState.phase=`instant`),this.scrollState.stableFrames++,this.scrollState.stableFrames>=t){this.getScrollOffset()!==e&&this._scrollToOffset(e,{behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let t=this.getSize()||600,n=Math.abs(e-this.getScrollOffset()),r=Xt(this.scrollState)&&n>t;this.scrollState.lastTargetOffset=e,r?this.scrollState.phase=`smooth`:this.scrollState.phase===`smooth`?this.scrollState.phase=`smoothFinishing`:this.scrollState.phase===`smoothLanded`&&(this.scrollState.phase=`instant`),this._scrollToOffset(e,{behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}_startScroll(e,t,n,r){this.pendingScrollAnchor=null,this._clampedAdjustment=null;let i=this._iosGesture.tail();if(r===`absolute`&&i!==null){if(i===`fling`&&Ft()){this._stopMomentum(()=>{this.scrollState?.phase!==`queued`||this._iosGesture.tail()!==`fling`||this._reportedOverscroll||(this._iosGesture.end(),this._flushHoldIfReady(!0),this._writeAwaitingCommand())}),this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,phase:`queued`,behavior:n,samples:[]},this.scheduleScrollReconcile();return}this._iosGesture.end()}this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,behavior:n,phase:Yt(n,e.index!=null&&wt(t,this.getScrollOffset()))},this._scrollToOffset(t,{behavior:n}),this.scheduleScrollReconcile()}},$t=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function en(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function tn(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=en(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=$t(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function nn(e){let t=new Qt(d(e)),n=te(t),r=t._didMount();return c(()=>d(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),c(()=>d(e),e=>{t.setOptions({...e,onChange:(t,r)=>{var a;i(n),(a=e.onChange)==null||a.call(e,t,r)}}),t._willUpdate(),i(n)},{immediate:!0}),j(r),n}function rn(e){return nn(T(()=>({observeElementRect:Ht,observeElementOffset:Kt,scrollToFn:Jt,...d(e)})))}var an=O({__name:`ListboxVirtualizer`,props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){let t=e,n=u(),r=ot(),i=we(),{getItems:a}=me();r.isVirtual.value=!0;let o=T(()=>{let e=i.value;if(e){let t=window.getComputedStyle(e);return{start:Number.parseFloat(t.paddingBlockStart||t.paddingTop),end:Number.parseFloat(t.paddingBlockEnd||t.paddingBottom)}}return{start:0,end:0}}),s=rn({get scrollPaddingStart(){return o.value.start},get scrollPaddingEnd(){return o.value.end},get count(){return t.options.length},get horizontal(){return r.orientation.value===`horizontal`},estimateSize(e){return typeof t.estimateSize==`function`?t.estimateSize(e):t.estimateSize??28},getScrollElement(){return i.value},overscan:t.overscan??12}),c=T(()=>s.value.getVirtualItems().map(e=>{let r=n.default({option:t.options[e.index],virtualizer:s.value,virtualItem:e})[0],i=r.type===A&&Array.isArray(r.children)?r.children.find(e=>typeof e.type!=`symbol`):r;return{item:e,is:E(i,{key:`${e.key}`,"data-index":e.index,"aria-setsize":t.options.length,"aria-posinset":e.index+1,style:{position:`absolute`,top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:`none`}})}}));r.virtualFocusHook.on(({event:e,scroll:n})=>{let o=t.options.findIndex(e=>Array.isArray(r.modelValue.value)?Z(e,r.modelValue.value[0],r.by):Z(e,r.modelValue.value,r.by));o===-1?n?r.highlightFirstItem():requestAnimationFrame(()=>{let e=a().find(e=>e.ref.dataset.disabled!==``)?.ref;e&&r.changeHighlight(e,!1,!1)}):(e?.preventDefault(),s.value.scrollToIndex(o,{align:`start`}),requestAnimationFrame(()=>{let t=it(i.value);if(t){let i=e?!0:n?void 0:!1;r.changeHighlight(t,n,i)}}))}),r.virtualHighlightHook.on(e=>{let n=t.options.findIndex(t=>Z(t,e,r.by));s.value.scrollToIndex(n,{align:`start`}),requestAnimationFrame(()=>{let e=it(i.value);e&&r.changeHighlight(e)})});let l=ve(``,1e3),f=T(()=>{let e=e=>t.textContent?t.textContent(e):e?.toString().toLowerCase();return t.options.map((t,n)=>({index:n,textContent:e(t)}))});function p(e,n){if(!r.firstValue?.value||!r.multiple.value||!Array.isArray(r.modelValue.value))return;let i=a().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===r.highlightedElement.value)?.value;if(!i)return;let o=null;switch(n){case`prev`:case`next`:o=ae(t.options,r.firstValue.value,i);break;case`first`:o=ae(t.options,r.firstValue.value,t.options?.[0]);break;case`last`:o=ae(t.options,r.firstValue.value,t.options.at(-1))}r.modelValue.value=o}return r.virtualKeydownHook.on(e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n)return;let o=Ke[e.key];if(n&&e.key===`a`&&r.multiple.value?(e.preventDefault(),r.modelValue.value=[...t.options],o=`last`):e.shiftKey&&o&&p(e,o),[`first`,`last`].includes(o)){e.preventDefault();let n=o===`first`?0:t.options.length-1;s.value.scrollToIndex(n),requestAnimationFrame(()=>{let e=a(),t=o===`first`?e[0]:e.at(-1);t&&r.changeHighlight(t.ref)})}else if(!o&&!n){l.value+=e.key;let t=Number(pe()?.getAttribute(`data-index`)),n=f.value[t].textContent,a=f.value.map(e=>e.textContent??``),o=_e(a,l.value,n),c=f.value.find(e=>e.textContent===o);c&&(s.value.scrollToIndex(c.index,{align:`start`}),requestAnimationFrame(()=>{let e=i.value.querySelector(`[data-index="${c.index}"]`);e instanceof HTMLElement&&r.changeHighlight(e)}))}}),(e,t)=>(k(),y(`div`,{"data-reka-virtualizer":``,style:S({position:`relative`,width:`100%`,height:`${d(s).getTotalSize()}px`})},[(k(!0),y(A,null,b(c.value,({is:e,item:t})=>(k(),F(R(e),{key:t.index}))),128))],4))}});function on(e){let t=I(`inline`),n=I(!1),r=I(),i=T(()=>t.value===`popper`&&!n.value),a;lt({suppressHighlightScroll:i,onHighlightScrollRequest(e){a=e}});function o(e,i){(r.value!==e||t.value!==i)&&(n.value=!1,a=void 0),r.value=e,t.value=i}function s(i){if(r.value!==i||t.value!==`popper`||n.value)return;n.value=!0;let o=a;a=void 0,e.value&&o?.()}function c(e){r.value===e&&(r.value=void 0,t.value=`inline`,n.value=!1,a=void 0)}return{onContentPositionChange:o,onContentPlaced:s,onContentUnmount:c}}var[$,sn]=K(`ComboboxRoot`),cn=O({__name:`ComboboxRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},resetModelValueOnClear:{type:Boolean,required:!1,default:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`update:open`],setup(e,{expose:t,emit:n}){let i=e,a=n,{primitiveElement:o,currentElement:s}=fe(),{multiple:c,disabled:u,ignoreFilter:f,resetSearchTermOnSelect:p,openOnFocus:h,openOnClick:g,dir:_,resetModelValueOnClear:v,highlightOnHover:y,loop:b,unmountOnHide:S}=m(i),w=Ve(_),E=Se(i,`modelValue`,a,{defaultValue:i.defaultValue??(c.value?[]:void 0),passive:i.modelValue===void 0,deep:!0}),D=Se(i,`open`,a,{defaultValue:i.defaultOpen,passive:i.open===void 0});async function O(e){D.value=e,U.value=``,e?(await P(),o.value?.highlightSelected(),j.value=!0,L.value?.focus()):(j.value=!1,setTimeout(()=>{!e&&i.resetSearchTermOnBlur&&A.trigger()},1))}let A=be(),j=I(!1),N=I(!1),L=I(),R=I(),te=T(()=>o.value?.highlightedElement??void 0),B=on(D),V=I(new Map),H=I(new Map),{contains:ne}=Oe({sensitivity:`base`}),U=I(``),W=T(e=>{if(!U.value||i.ignoreFilter||N.value)return{count:V.value.size,items:e?.items??new Map,groups:e?.groups??new Set(H.value.keys())};let t=0,n=new Map,r=new Set;for(let[e,r]of V.value){let i=ne(r,U.value);n.set(e,+!!i),i&&t++}for(let[e,t]of H.value)for(let i of t)if(n.get(i)>0){r.add(e);break}return{count:t,items:n,groups:r}}),G=l();return x(()=>{G?.exposed&&(G.exposed.highlightItem=o.value?.highlightItem,G.exposed.highlightFirstItem=o.value?.highlightFirstItem,G.exposed.highlightSelected=o.value?.highlightSelected)}),t({filtered:W,highlightedElement:te,highlightItem:o.value?.highlightItem,highlightFirstItem:o.value?.highlightFirstItem,highlightSelected:o.value?.highlightSelected}),sn({modelValue:E,multiple:c,disabled:u,open:D,onOpenChange:O,...B,contentId:``,isUserInputted:j,isVirtual:N,inputElement:L,highlightedElement:te,onInputElementChange:e=>L.value=e,triggerElement:R,onTriggerElementChange:e=>R.value=e,parentElement:s,resetSearchTermOnSelect:p,onResetSearchTerm:A.on,allItems:V,allGroups:H,filterSearch:U,filterState:W,ignoreFilter:f,openOnFocus:h,openOnClick:g,resetModelValueOnClear:v,unmountOnHide:S}),(t,n)=>(k(),F(d(Ne),null,{default:M(()=>[r(d(ut),C({ref_key:`primitiveElement`,ref:o},t.$attrs,{modelValue:d(E),"onUpdate:modelValue":n[0]||=e=>ee(E)?E.value=e:null,style:{pointerEvents:d(D)?`auto`:void 0},as:e.as,"as-child":e.asChild,dir:d(w),multiple:d(c),name:e.name,required:e.required,disabled:d(u),"highlight-on-hover":d(y),loop:d(b),by:i.by,onHighlight:n[1]||=e=>a(`highlight`,e)}),{default:M(()=>[z(t.$slots,`default`,{open:d(D),modelValue:d(E)})]),_:3},16,[`modelValue`,`style`,`as`,`as-child`,`dir`,`multiple`,`name`,`required`,`disabled`,`highlight-on-hover`,`loop`,`by`])]),_:3}))}}),ln=O({__name:`ComboboxAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{forwardRef:t}=X();return(n,i)=>(k(),F(d(ke),{"as-child":``,reference:e.reference},{default:M(()=>[r(d(J),C({ref:d(t),"as-child":e.asChild,as:e.as},n.$attrs),{default:M(()=>[z(n.$slots,`default`)]),_:3},16,[`as-child`,`as`])]),_:3},8,[`reference`]))}}),[un,dn]=K(`ComboboxContent`),fn=O({__name:`ComboboxContentImpl`,props:{position:{type:String,required:!1,default:`inline`},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,i=t,{position:a}=m(n),o=$(),s=Symbol(`ComboboxContent`);c(a,e=>o.onContentPositionChange(s,e),{immediate:!0});let l=T(()=>o.ignoreFilter.value?o.allItems.value.size===0:o.filterState.value.count===0),{forwardRef:u,currentElement:f}=X(),p=Te(n.present&&n.bodyLock);c([()=>n.present,()=>n.bodyLock],([e,t])=>p.value=e&&t),Be();let h=T(()=>n.present?o.parentElement.value:void 0);je(h);let g=T(()=>{if(n.position===`popper`){let{present:e,...t}=n;return t}return{}}),_=Ue(g),v={boxSizing:`border-box`,"--reka-combobox-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-combobox-content-available-width":`var(--reka-popper-available-width)`,"--reka-combobox-content-available-height":`var(--reka-popper-available-height)`,"--reka-combobox-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-combobox-trigger-height":`var(--reka-popper-anchor-height)`};dn({position:a});let y=I(!1);x(()=>{o.inputElement.value&&(y.value=f.value.contains(o.inputElement.value),n.present&&y.value&&o.inputElement.value.focus())}),c(()=>n.present,async(e,t)=>{if(e||!t)return;let n=pe();n&&f.value.contains(n)&&(await P(),o.triggerElement.value?.focus())}),w(()=>{o.onContentUnmount(s);let e=pe();y.value&&(!e||e===document.body)&&o.triggerElement.value?.focus()});function b(e){if(o.parentElement.value?.contains(e))return!0;let t=(e instanceof Element?e.closest(`label`):null)?.control;return!!t&&!!o.parentElement.value?.contains(t)}let S={placed:()=>o.onContentPlaced(s)};return(t,s)=>(k(),F(d(Q),{"as-child":``},{default:M(()=>[r(d(Ae),{"as-child":``,present:n.present,onMountAutoFocus:s[5]||=U(()=>{},[`prevent`]),onUnmountAutoFocus:s[6]||=U(()=>{},[`prevent`])},{default:M(()=>[r(d(Pe),{"as-child":``,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onDismiss:s[0]||=e=>d(o).onOpenChange(!1),onFocusOutside:s[1]||=e=>{b(e.target)&&e.preventDefault(),i(`focusOutside`,e)},onInteractOutside:s[2]||=e=>i(`interactOutside`,e),onEscapeKeyDown:s[3]||=e=>i(`escapeKeyDown`,e),onPointerDownOutside:s[4]||=e=>{b(e.target)&&e.preventDefault(),i(`pointerDownOutside`,e)}},{default:M(()=>[(k(),F(R(d(a)===`popper`?d(Ie):d(J)),C({...t.$attrs,...d(_)},{id:d(o).contentId,ref:d(u),"memo-dependencies":d(a)===`popper`?[d(o).filterSearch.value,d(o).filterState.value]:void 0,"data-state":d(o).open.value?`open`:`closed`,"data-empty":l.value?``:void 0,style:{display:n.hideWhenEmpty&&l.value?`none`:`flex`,flexDirection:`column`,outline:`none`,...d(a)===`popper`?v:{}}},D(d(a)===`popper`?S:{})),{default:M(()=>[z(t.$slots,`default`)]),_:3},16,[`id`,`memo-dependencies`,`data-state`,`data-empty`,`style`]))]),_:3},8,[`present`,`disable-outside-pointer-events`])]),_:3},8,[`present`])]),_:3}))}}),pn=O({__name:`ComboboxArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let n=e,r=$(),i=un();return X(),(e,a)=>d(r).open.value&&d(i).position.value===`popper`?(k(),F(d(De),t(C({key:0},n)),{default:M(()=>[z(e.$slots,`default`)]),_:3},16)):B(`v-if`,!0)}}),mn=O({__name:`ComboboxCancel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;X();let n=$();function r(){n.inputElement.value&&(n.inputElement.value.value=``,n.inputElement.value.focus()),n.resetModelValueOnClear?.value&&(n.modelValue.value=n.multiple.value?[]:null),n.filterSearch.value=``}return(n,i)=>(k(),F(d(J),C({type:e.as===`button`?`button`:void 0},t,{tabindex:`-1`,onClick:r}),{default:M(()=>[z(n.$slots,`default`)]),_:3},16,[`type`]))}}),hn=O({__name:`ComboboxContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=Ee(e,t),{forwardRef:i}=X(),a=$();return a.contentId||=W(void 0,`reka-combobox-content`),(t,o)=>(k(),F(d(We),{present:e.forceMount||d(a).open.value,"force-mount":e.forceMount||!d(a).unmountOnHide.value},{default:M(({present:e})=>[g(r(fn,C({...d(n),...t.$attrs},{ref:d(i),present:d(a).unmountOnHide.value||e}),{default:M(()=>[z(t.$slots,`default`)]),_:3},16,[`present`]),[[ne,d(a).unmountOnHide.value||e]])]),_:3},8,[`present`,`force-mount`]))}}),gn=O({__name:`ComboboxEmpty`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let n=e,r=$(),i=T(()=>r.ignoreFilter.value?r.allItems.value.size===0:r.filterState.value.count===0);return(e,r)=>i.value?(k(),F(d(J),t(C({key:0},n)),{default:M(()=>[z(e.$slots,`default`,{},()=>[r[0]||=a(`No options`,-1)])]),_:3},16)):B(`v-if`,!0)}}),[_n,vn]=K(`ComboboxGroup`),yn=O({__name:`ComboboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=W(void 0,`reka-combobox-group`),r=$(),i=T(()=>r.ignoreFilter.value?!0:!r.filterSearch.value||r.filterState.value.groups.has(n)),a=vn({id:n,labelId:``});return x(()=>{r.allGroups.value.has(n)||r.allGroups.value.set(n,new Set)}),w(()=>{r.allGroups.value.delete(n)}),(e,r)=>(k(),F(d(mt),C({id:d(n),"aria-labelledby":d(a).labelId},t,{hidden:!i.value||void 0}),{default:M(()=>[z(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`hidden`]))}}),bn=O({__name:`ComboboxInput`,props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=$(),a=ot(),{primitiveElement:o,currentElement:s}=fe(),l=Se(n,`modelValue`,r,{passive:n.modelValue===void 0});x(()=>{s.value&&i.onInputElementChange(s.value)});let{isComposing:u,shouldDeferInput:f,handleCompositionStart:p,handleCompositionUpdate:m,handleCompositionEnd:h}=Y(e=>{let t=e.target;t&&_(t.value)});function g(e){u.value||(e.preventDefault(),i.open.value||i.onOpenChange(!0))}function _(e){i.open.value?i.filterSearch.value=e:(i.onOpenChange(!0),P(()=>{e&&(i.filterSearch.value=e,a.highlightFirstItem())}))}function v(e){f.value||_(e.target.value)}function y(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function b(e){if(!i.open.value)return;let t=e.relatedTarget;if(!t)return;let n=i.parentElement.value?.contains(t),r=document.getElementById(i.contentId)?.contains(t);!n&&!r&&requestAnimationFrame(()=>{if(!i.open.value)return;let e=document.activeElement;!i.parentElement.value?.contains(e)&&!document.getElementById(i.contentId)?.contains(e)&&i.onOpenChange(!1)})}function S(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function C(){let e=i.modelValue.value;n.displayValue?l.value=n.displayValue(e):!i.multiple.value&&e&&!Array.isArray(e)?typeof e==`object`?l.value=``:l.value=e.toString():l.value=``,P(()=>{l.value=l.value})}return i.onResetSearchTerm(()=>{C()}),c(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&C()},{immediate:!0,deep:!0}),c(i.filterState,(e,t)=>{!i.isVirtual.value&&t.count===0&&a.highlightFirstItem()}),(t,n)=>(k(),F(d(dt),{ref_key:`primitiveElement`,ref:o,modelValue:d(l),"onUpdate:modelValue":n[0]||=e=>ee(l)?l.value=e:null,as:e.as,"as-child":e.asChild,"auto-focus":e.autoFocus,disabled:e.disabled,"aria-expanded":d(i).open.value,"aria-controls":d(i).contentId,"aria-autocomplete":`list`,role:`combobox`,autocomplete:`off`,onClick:S,onInput:v,onKeydown:H(g,[`down`,`up`]),onFocus:y,onBlur:b,onCompositionstart:d(p),onCompositionupdate:d(m),onCompositionend:d(h)},{default:M(()=>[z(t.$slots,`default`)]),_:3},8,[`modelValue`,`as`,`as-child`,`auto-focus`,`disabled`,`aria-expanded`,`aria-controls`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`]))}}),xn=O({__name:`ComboboxItem`,props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,o=W(void 0,`reka-combobox-item`),s=$(),c=_n(null),{primitiveElement:l,currentElement:u}=fe();if(r.value===``)throw Error(`A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.`);let f=T(()=>{if(s.isVirtual.value||s.ignoreFilter.value||!s.filterSearch.value)return!0;{let e=s.filterState.value.items.get(o);return e===void 0||e>0}});return x(()=>{s.allItems.value.set(o,r.textValue||u.value.textContent||u.value.innerText);let e=c?.id;e&&(s.allGroups.value.has(e)?s.allGroups.value.get(e)?.add(o):s.allGroups.value.set(e,new Set([o])))}),w(()=>{s.allItems.value.delete(o)}),(n,c)=>f.value?h([f.value,d(s).filterSearch.value,d(s).disabled.value,e.disabled,r.value,r.as,r.asChild,...Object.values(n.$attrs)],()=>(k(),F(d(vt),C({key:0},r,{id:d(o),ref_key:`primitiveElement`,ref:l,disabled:d(s).disabled.value||e.disabled,onSelect:c[0]||=t=>{i(`select`,t),!t.defaultPrevented&&(!d(s).multiple.value&&!e.disabled&&!d(s).disabled.value?(t.preventDefault(),d(s).onOpenChange(!1),d(s).modelValue.value=r.value):d(s).multiple.value&&d(s).inputElement.value?.focus())}}),{default:M(r=>[z(n.$slots,`default`,t(V(r)),()=>[a(N(e.value),1)])]),_:3},16,[`id`,`disabled`])),c,1):B(`v-if`,!0)}}),Sn=O({__name:`ComboboxItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let n=e;return(e,r)=>(k(),F(d(yt),t(V(n)),{default:M(()=>[z(e.$slots,`default`)]),_:3},16))}}),Cn=O({__name:`ComboboxLabel`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e;X();let n=_n({id:``,labelId:``});return n.labelId||=W(void 0,`reka-combobox-group-label`),(e,r)=>(k(),F(d(J),C(t,{id:d(n).labelId}),{default:M(()=>[z(e.$slots,`default`)]),_:3},16,[`id`]))}}),wn=O({__name:`ComboboxPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let n=e;return(e,r)=>(k(),F(d(nt),t(V(n)),{default:M(()=>[z(e.$slots,`default`)]),_:3},16))}}),Tn=O({__name:`ComboboxSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return X(),(e,n)=>(k(),F(d(J),C(t,{"aria-hidden":`true`}),{default:M(()=>[z(e.$slots,`default`)]),_:3},16))}}),En=O({__name:`ComboboxTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n,currentElement:r}=X(),i=$(),a=T(()=>t.disabled||i.disabled.value||!1);return x(()=>{r.value&&i.onTriggerElementChange(r.value)}),(r,o)=>(k(),F(d(J),C(t,{ref:d(n),type:e.as===`button`?`button`:void 0,tabindex:`-1`,"aria-label":`Show popup`,"aria-haspopup":`listbox`,"aria-expanded":d(i).open.value,"aria-controls":d(i).contentId,"data-state":d(i).open.value?`open`:`closed`,disabled:a.value,"data-disabled":a.value?``:void 0,"aria-disabled":a.value??void 0,onClick:o[0]||=e=>d(i).onOpenChange(!d(i).open.value)}),{default:M(()=>[z(r.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`aria-disabled`]))}}),Dn=O({__name:`ComboboxVirtualizer`,props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){let n=e,r=$();return r.isVirtual.value=!0,(e,r)=>(k(),F(an,t(V(n)),{default:M(n=>[z(e.$slots,`default`,t(V(n)))]),_:3},16))}});function On(e,t){if(typeof e!=`object`||!e)return!1;let n=q(e,t);return n!=null&&n!==``}function kn(e,t){let n=t?{xs:44,sm:48,md:52,lg:56,xl:60}:{xs:24,sm:28,md:32,lg:36,xl:40};return n[e]??n.md}function An(e,t,n,r){let i=kn(t,!0),a=kn(t,!1);return r?()=>i:n?t=>On(e[t],n)?i:a:()=>a}var jn={slots:{base:[`relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`,value:`truncate pointer-events-none`,placeholder:`truncate text-dimmed`,arrow:`fill-bg stroke-default`,content:[`max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col`,`max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)`],viewport:`relative scroll-py-1 overflow-y-auto flex-1`,group:`p-1 isolate`,empty:`text-center text-muted`,label:`font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:[`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default`,`transition-colors`],itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemLeadingChip:`shrink-0`,itemLeadingChipSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemWrapper:`flex-1 flex flex-col min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`,input:`border-b border-default`,focusScope:`flex flex-col min-h-0`,trailingClear:`p-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1 text-[10px]/3 gap-1`,item:`p-1 text-xs gap-1`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2 text-xs`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1.5 text-[10px]/3 gap-1.5`,item:`p-1.5 text-xs gap-1.5`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2.5 text-xs`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-sm gap-1.5`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-2.5 text-sm`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-2 text-xs gap-2`,item:`p-2 text-sm gap-2`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-3 text-sm`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`,label:`p-2 text-sm gap-2`,item:`p-2 text-base gap-2`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemLeadingChip:`size-6`,itemLeadingChipSize:`lg`,itemTrailingIcon:`size-6`,empty:`p-3 text-base`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},position:{popper:{content:`data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]`},"item-aligned":{content:``}},multiple:{true:``},virtualize:{true:{viewport:`p-1 isolate`},false:{viewport:`divide-y divide-default`}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`,position:`popper`}},Mn=[`aria-labelledby`,`aria-multiselectable`],Nn=Object.assign({inheritAttrs:!1},{__name:`USelectMenu`,props:e({id:{type:String,required:!1},placeholder:{type:String,required:!1},searchInput:{type:[Boolean,Object],required:!1,default:!0},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},clear:{type:[Boolean,Object],required:!1},clearIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},virtualize:{type:[Boolean,Object],required:!1,default:!1},valueKey:{type:null,required:!1},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},createItem:{type:[Boolean,String,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},resetModelValueOnClear:{type:Boolean,required:!1,default:!0},highlightOnHover:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:``},searchTermModifiers:{}}),emits:e([`change`,`blur`,`focus`,`create`,`clear`,`highlight`,`update:modelValue`,`update:open`],[`update:searchTerm`]),setup(e,{expose:i,emit:s}){let l=e,m=s,h=u(),g=ce(`selectMenu`,l),S=o(e,`searchTerm`,{type:String,default:``}),{t:w}=tt(),E=re(),{filterGroups:D}=Me(),O=He(ye(g,`modelValue`,`defaultValue`,`open`,`defaultOpen`,`required`,`multiple`,`resetSearchTermOnBlur`,`resetSearchTermOnSelect`,`resetModelValueOnClear`,`highlightOnHover`,`loop`,`by`),m),ee=Fe(L(()=>g.portal)),R=L(()=>G(g.content,{side:`bottom`,sideOffset:8,collisionPadding:8,position:`popper`})),te=L(()=>G(g.arrow,{rounded:!0})),ne=T(()=>typeof g.clear==`object`?g.clear:{}),W=L(()=>g.virtualize?G(typeof g.virtualize==`boolean`?{}:g.virtualize,{estimateSize:An(We.value,je.value??`md`,g.descriptionKey,!!h[`item-description`])}):!1),ie=L(()=>G(g.searchInput,{placeholder:w(`selectMenu.search`),variant:`none`,fixed:g.fixed})),{emitFormBlur:ae,emitFormFocus:K,emitFormInput:fe,emitFormChange:pe,size:me,color:he,id:ge,name:_e,highlight:ve,disabled:be,ariaAttrs:xe}=$e(l),{orientation:Se,size:we}=Je(l),{isLeading:J,isTrailing:Te,leadingIconName:Ee,trailingIconName:De}=Qe(T(()=>({icon:g.icon,leading:g.leading,leadingIcon:g.leadingIcon,trailing:g.trailing,trailingIcon:g.trailingIcon??E.ui.icons.chevronDown,loading:g.loading,loadingIcon:g.loadingIcon}))),Oe=T(()=>he.value??g.color),ke=T(()=>ve.value??g.highlight),je=T(()=>we.value??me.value??g.size),Ne=T(()=>be.value??g.disabled),[Pe,Ie]=Ce(),[Re,ze]=Ce({props:{item:{type:[Object,String,Number,Boolean],required:!0},index:{type:Number,required:!1}}}),Y=T(()=>de({extend:jn,...E.ui?.selectMenu||{}})({color:Oe.value,variant:g.variant,size:je.value,loading:g.loading,highlight:ke.value,fixed:g.fixed,leading:J.value||!!g.avatar||!!h.leading,trailing:Te.value||!!h.trailing,fieldGroup:Se.value,virtualize:!!g.virtualize,multiple:g.multiple}));function Be(e){if(g.multiple&&Array.isArray(e)){let t=e.map(e=>oe(X.value,e,{labelKey:g.labelKey,valueKey:g.valueKey,by:g.by})).filter(e=>e!=null&&e!==``);return t.length>0?t.join(`, `):void 0}return oe(X.value,e,{labelKey:g.labelKey,valueKey:g.valueKey,by:g.by})}let Ve=T(()=>g.items?.length?ue(g.items)?g.items:[g.items]:[]),X=T(()=>Ve.value.flatMap(e=>e)),Ue=T(()=>{if(g.ignoreFilter||!S.value)return Ve.value;let e=Array.isArray(g.filterFields)?g.filterFields:[g.labelKey];return D(Ve.value,S.value,{fields:e,isStructural:e=>Q(e)&&!!e.type&&[`label`,`separator`].includes(e.type)})}),We=T(()=>Ue.value.flatMap(e=>e)),Ge=T(()=>{if(!g.createItem||!S.value)return!1;let e=g.valueKey?{[g.valueKey]:S.value}:S.value;return typeof g.createItem==`object`&&g.createItem.when===`always`||g.createItem===`always`?!We.value.find(t=>le(t,e,g.by??g.valueKey)):!We.value.length}),Ke=T(()=>typeof g.createItem==`object`?g.createItem.position:`bottom`),nt=p(`triggerRef`);function rt(){g.autofocus&&nt.value?.$el?.focus({focusVisible:!0})}let it;x(()=>{it=setTimeout(()=>{rt()},g.autofocusDelay)}),j(()=>clearTimeout(it));function at(e){if(n(g.modelValue)===e)return;g.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),g.modelModifiers?.number&&(e=se(e)),g.modelModifiers?.nullable&&(e??=null),g.modelModifiers?.optional&&!g.modelModifiers?.nullable&&e!==null&&(e??=void 0);let t=new Event(`change`,{target:{value:e}});m(`change`,t),pe(),fe(),g.resetSearchTermOnSelect&&(S.value=``)}let Z=I(!1),ot;j(()=>clearTimeout(ot));function st(e){if(Z.value=e,e){let e=new FocusEvent(`focus`);m(`focus`,e),K(),clearTimeout(ot)}else{let e=new FocusEvent(`blur`);m(`blur`,e),ae(),g.resetSearchTermOnBlur&&(ot=setTimeout(()=>{S.value=``},100))}}function ct(e){if(Z.value)return;let t=e.currentTarget;e.preventDefault(),t.click()}function lt(e){e.preventDefault(),e.stopPropagation(),m(`create`,S.value)}function ut(e,t){Q(t)&&(t.disabled?e.preventDefault():t.onSelect?.(e))}function Q(e){return typeof e==`object`&&!!e}function dt(e){return g.multiple&&Array.isArray(e)?e.length===0:e==null||e===``}function ft(){Ne.value||m(`clear`)}function pt(e){ie.value.autofocus===!1&&e.preventDefault()}let mt=p(`focusScopeRef`);function ht(e){let t=mt.value?.$el;e.defaultPrevented||t?.parentElement?.dataset.state!==`open`||(e.preventDefault(),((ie.value.autofocus===!1?null:t.querySelector(`[data-slot="input"] input`))??t).focus({preventScroll:!0}))}function gt(e){let t=document.activeElement;t&&t!==document.body&&!e.target.contains(t)&&e.preventDefault()}let _t=p(`viewportRef`),vt=f(),yt=T(()=>ge.value??`select-menu-${vt}`),bt=`select-menu-listbox-${vt}`,xt=p(`comboboxRootRef`);return c(()=>g.items,async()=>{Z.value&&g.createItem&&(await P(),xt.value?.highlightFirstItem?.())},{flush:`post`}),i({triggerRef:L(()=>nt.value?.$el),viewportRef:L(()=>_t.value)}),(e,n)=>(k(),y(A,null,[r(d(Pe),null,{default:M(()=>[r(d(xn),{"data-slot":`item`,class:_(Y.value.item({class:d(g).ui?.item})),value:S.value,onSelect:lt},{default:M(()=>[v(`span`,{"data-slot":`itemLabel`,class:_(Y.value.itemLabel({class:d(g).ui?.itemLabel}))},[z(e.$slots,`create-item-label`,{item:S.value},()=>[a(N(d(w)(`selectMenu.create`,{label:S.value})),1)])],2)]),_:3},8,[`class`,`value`])]),_:3}),r(d(Re),null,{default:M(({item:t,index:n})=>[Q(t)&&t.type===`label`?(k(),F(d(Cn),{key:0,"data-slot":`label`,class:_(Y.value.label({class:[d(g).ui?.label,t.ui?.label,t.class]}))},{default:M(()=>[a(N(d(q)(t,d(g).labelKey)),1)]),_:2},1032,[`class`])):Q(t)&&t.type===`separator`?(k(),F(d(Tn),{key:1,"data-slot":`separator`,class:_(Y.value.separator({class:[d(g).ui?.separator,t.ui?.separator,t.class]}))},null,8,[`class`])):(k(),F(d(xn),{key:2,"data-slot":`item`,class:_(Y.value.item({class:[d(g).ui?.item,Q(t)&&t.ui?.item,Q(t)&&t.class]})),disabled:Q(t)&&t.disabled,value:d(g).valueKey&&Q(t)?d(q)(t,d(g).valueKey):t,onSelect:e=>ut(e,t)},{default:M(()=>[z(e.$slots,`item`,{item:t,index:n,ui:Y.value},()=>[z(e.$slots,`item-leading`,{item:t,index:n,ui:Y.value},()=>[Q(t)&&t.icon?(k(),F(qe,{key:0,name:t.icon,"data-slot":`itemLeadingIcon`,class:_(Y.value.itemLeadingIcon({class:[d(g).ui?.itemLeadingIcon,t.ui?.itemLeadingIcon]}))},null,8,[`name`,`class`])):Q(t)&&t.avatar?(k(),F(Xe,C({key:1,size:t.ui?.itemLeadingAvatarSize||d(g).ui?.itemLeadingAvatarSize||Y.value.itemLeadingAvatarSize()},t.avatar,{"data-slot":`itemLeadingAvatar`,class:Y.value.itemLeadingAvatar({class:[d(g).ui?.itemLeadingAvatar,t.ui?.itemLeadingAvatar]})}),null,16,[`size`,`class`])):Q(t)&&t.chip?(k(),F(Ze,C({key:2,size:t.ui?.itemLeadingChipSize||d(g).ui?.itemLeadingChipSize||Y.value.itemLeadingChipSize(),inset:``,standalone:``},t.chip,{"data-slot":`itemLeadingChip`,class:Y.value.itemLeadingChip({class:[d(g).ui?.itemLeadingChip,t.ui?.itemLeadingChip]})}),null,16,[`size`,`class`])):B(``,!0)]),v(`span`,{"data-slot":`itemWrapper`,class:_(Y.value.itemWrapper({class:[d(g).ui?.itemWrapper,Q(t)&&t.ui?.itemWrapper]}))},[v(`span`,{"data-slot":`itemLabel`,class:_(Y.value.itemLabel({class:[d(g).ui?.itemLabel,Q(t)&&t.ui?.itemLabel]}))},[z(e.$slots,`item-label`,{item:t,index:n},()=>[a(N(Q(t)?d(q)(t,d(g).labelKey):t),1)])],2),Q(t)&&(d(q)(t,d(g).descriptionKey)||h[`item-description`])?(k(),y(`span`,{key:0,"data-slot":`itemDescription`,class:_(Y.value.itemDescription({class:[d(g).ui?.itemDescription,Q(t)&&t.ui?.itemDescription]}))},[z(e.$slots,`item-description`,{item:t,index:n},()=>[a(N(d(q)(t,d(g).descriptionKey)),1)])],2)):B(``,!0)],2),v(`span`,{"data-slot":`itemTrailing`,class:_(Y.value.itemTrailing({class:[d(g).ui?.itemTrailing,Q(t)&&t.ui?.itemTrailing]}))},[z(e.$slots,`item-trailing`,{item:t,index:n,ui:Y.value}),r(d(Sn),{"as-child":``},{default:M(()=>[r(qe,{name:d(g).selectedIcon||d(E).ui.icons.check,"data-slot":`itemTrailingIcon`,class:_(Y.value.itemTrailingIcon({class:[d(g).ui?.itemTrailingIcon,Q(t)&&t.ui?.itemTrailingIcon]}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:2},1032,[`class`,`disabled`,`value`,`onSelect`]))]),_:3}),r(d(cn),C({ref_key:`comboboxRootRef`,ref:xt},d(O),{"ignore-filter":``,"as-child":``,name:d(_e),disabled:Ne.value,"onUpdate:modelValue":at,"onUpdate:open":st}),{default:M(({modelValue:i,open:o})=>[r(d(ln),{"as-child":``},{default:M(()=>[r(d(En),C({id:yt.value,ref_key:`triggerRef`,ref:nt,"data-slot":`base`,class:Y.value.base({class:[d(g).ui?.base,d(g).class]}),tabindex:`0`},{"aria-label":void 0,...e.$attrs,...d(xe)},{"aria-controls":bt,onKeydown:[H(ct,[`down`]),H(ct,[`up`])]}),{default:M(()=>[d(J)||d(g).avatar||h.leading?(k(),y(`span`,{key:0,"data-slot":`leading`,class:_(Y.value.leading({class:d(g).ui?.leading}))},[z(e.$slots,`leading`,{modelValue:i,open:o,ui:Y.value},()=>[d(J)&&d(Ee)?(k(),F(qe,{key:0,name:d(Ee),"data-slot":`leadingIcon`,class:_(Y.value.leadingIcon({class:d(g).ui?.leadingIcon}))},null,8,[`name`,`class`])):d(g).avatar?(k(),F(Xe,C({key:1,size:d(g).ui?.itemLeadingAvatarSize||Y.value.itemLeadingAvatarSize()},d(g).avatar,{"data-slot":`itemLeadingAvatar`,class:Y.value.itemLeadingAvatar({class:d(g).ui?.itemLeadingAvatar})}),null,16,[`size`,`class`])):B(``,!0)])],2)):B(``,!0),z(e.$slots,`default`,{modelValue:i,open:o,ui:Y.value},()=>[(k(!0),y(A,null,b([Be(i)],e=>(k(),y(A,{key:e},[e==null?(k(),y(`span`,{key:1,"data-slot":`placeholder`,class:_(Y.value.placeholder({class:d(g).ui?.placeholder}))},N(d(g).placeholder??`\xA0`),3)):(k(),y(`span`,{key:0,"data-slot":`value`,class:_(Y.value.value({class:d(g).ui?.value}))},N(e),3))],64))),128))]),d(Te)||h.trailing||d(g).clear?(k(),y(`span`,{key:1,"data-slot":`trailing`,class:_(Y.value.trailing({class:d(g).ui?.trailing}))},[z(e.$slots,`trailing`,{modelValue:i,open:o,ui:Y.value},()=>[d(g).clear&&!Ne.value&&!dt(i)?(k(),F(d(mn),{key:0,"as-child":``},{default:M(()=>[r(et,C({as:`span`,icon:d(g).clearIcon||d(E).ui.icons.close,size:je.value,variant:`link`,color:`neutral`,tabindex:`-1`},ne.value,{"data-slot":`trailingClear`,class:Y.value.trailingClear({class:d(g).ui?.trailingClear}),onClick:U(ft,[`stop`])}),null,16,[`icon`,`size`,`class`])]),_:1})):d(De)?(k(),F(qe,{key:1,name:d(De),"data-slot":`trailingIcon`,class:_(Y.value.trailingIcon({class:d(g).ui?.trailingIcon,leading:d(J)}))},null,8,[`name`,`class`])):B(``,!0)])],2)):B(``,!0)]),_:2},1040,[`id`,`class`])]),_:2},1024),r(d(wn),t(V(d(ee))),{default:M(()=>[r(d(Ye),null,{default:M(()=>[r(d(hn),C({"data-slot":`content`,class:Y.value.content({class:d(g).ui?.content})},R.value,{role:void 0,"aria-orientation":void 0,"aria-multiselectable":void 0,onFocusOutside:ht}),{default:M(()=>[r(d(Ae),{ref_key:`focusScopeRef`,ref:mt,loop:``,"data-slot":`focusScope`,class:_(Y.value.focusScope({class:d(g).ui?.focusScope})),onMountAutoFocus:pt,onUnmountAutoFocus:gt},{default:M(()=>[z(e.$slots,`content-top`),d(g).searchInput?(k(),F(d(bn),{key:0,modelValue:S.value,"onUpdate:modelValue":n[1]||=e=>S.value=e,"display-value":()=>S.value,"aria-controls":bt,"as-child":``},{default:M(()=>[r(Le,C({autofocus:``,autocomplete:`off`,size:je.value},ie.value,{"model-modifiers":{trim:d(g).modelModifiers?.trim},"data-slot":`input`,class:Y.value.input({class:d(g).ui?.input}),onChange:n[0]||=U(()=>{},[`stop`])}),null,16,[`size`,`model-modifiers`,`class`])]),_:1},8,[`modelValue`,`display-value`])):B(``,!0),r(d(gn),{"data-slot":`empty`,class:_(Y.value.empty({class:d(g).ui?.empty}))},{default:M(()=>[z(e.$slots,`empty`,{searchTerm:S.value},()=>[a(N(S.value?d(w)(`selectMenu.noMatch`,{searchTerm:S.value}):d(w)(`selectMenu.noData`)),1)])]),_:3},8,[`class`]),v(`div`,{id:bt,ref_key:`viewportRef`,ref:_t,role:`listbox`,"aria-labelledby":yt.value,"aria-multiselectable":!!d(g).multiple,"aria-orientation":`vertical`,"data-slot":`viewport`,class:_(Y.value.viewport({class:d(g).ui?.viewport}))},[d(g).virtualize?(k(),y(A,{key:0},[Ge.value&&Ke.value===`top`?(k(),F(d(Ie),{key:0})):B(``,!0),r(d(Dn),C({options:We.value,"text-content":e=>Q(e)?d(q)(e,d(g).labelKey):String(e)},W.value),{default:M(({option:e,virtualItem:t})=>[r(d(ze),{item:e,index:t.index},null,8,[`item`,`index`])]),_:1},16,[`options`,`text-content`]),Ge.value&&Ke.value===`bottom`?(k(),F(d(Ie),{key:1})):B(``,!0)],64)):(k(),y(A,{key:1},[Ge.value&&Ke.value===`top`?(k(),F(d(yn),{key:0,"data-slot":`group`,class:_(Y.value.group({class:d(g).ui?.group}))},{default:M(()=>[r(d(Ie))]),_:1},8,[`class`])):B(``,!0),(k(!0),y(A,null,b(Ue.value,(e,t)=>(k(),F(d(yn),{key:`group-${t}`,"data-slot":`group`,class:_(Y.value.group({class:d(g).ui?.group}))},{default:M(()=>[(k(!0),y(A,null,b(e,(e,n)=>(k(),F(d(ze),{key:`group-${t}-${n}`,item:e,index:n},null,8,[`item`,`index`]))),128))]),_:2},1032,[`class`]))),128)),Ge.value&&Ke.value===`bottom`?(k(),F(d(yn),{key:1,"data-slot":`group`,class:_(Y.value.group({class:d(g).ui?.group}))},{default:M(()=>[r(d(Ie))]),_:1},8,[`class`])):B(``,!0)],64))],10,Mn),z(e.$slots,`content-bottom`)]),_:3},8,[`class`]),d(g).arrow?(k(),F(d(pn),C({key:0},te.value,{"data-slot":`arrow`,class:Y.value.arrow({class:d(g).ui?.arrow})}),null,16,[`class`])):B(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`name`,`disabled`])],64))}}),Pn=Object.assign(O({inheritAttrs:!1,__name:`SkinSelect`,props:e({items:{},icon:{},placeholder:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=o(e,`modelValue`),n={base:`skin-select`,content:`skin-pop`,viewport:`skin-pop-view`,item:`skin-pop-item`,label:`skin-pop-label`,empty:`skin-pop-empty`};return(r,i)=>{let a=Nn;return k(),F(a,C({modelValue:t.value,"onUpdate:modelValue":i[0]||=e=>t.value=e,items:e.items,"value-key":`value`,"search-input":!1,size:`sm`,variant:`outline`,icon:e.icon,placeholder:e.placeholder,ui:n},r.$attrs),null,16,[`modelValue`,`items`,`icon`,`placeholder`])}}}),{__name:`SkinSelect`});export{Pn as t};