scrum-skills 0.2.6 → 0.2.7

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 (96) hide show
  1. package/README.md +6 -3
  2. package/assets/board/200.html +1 -1
  3. package/assets/board/404.html +1 -1
  4. package/assets/board/_nuxt/{Baq-Hrpf.js → 6gFtTBwm.js} +1 -1
  5. package/assets/board/_nuxt/{CsyY7ot8.js → B3jkABw9.js} +1 -1
  6. package/assets/board/_nuxt/{CoPhTDCT.js → B5n2_jZN.js} +1 -1
  7. package/assets/board/_nuxt/{7DnHvJyr.js → BC0YsiYy.js} +1 -1
  8. package/assets/board/_nuxt/{DDF25zwT.js → BWgbICJ-.js} +1 -1
  9. package/assets/board/_nuxt/{CmvybFI5.js → BaG8y0Wt.js} +1 -1
  10. package/assets/board/_nuxt/{B8d-LQbt.js → BaqGLZhY.js} +1 -1
  11. package/assets/board/_nuxt/{BMRYIH0I.js → BbaAxZ2N.js} +1 -1
  12. package/assets/board/_nuxt/{FxbXzpZ6.js → BetRVCu6.js} +1 -1
  13. package/assets/board/_nuxt/{C8xxmt66.js → BfBP16Im.js} +1 -1
  14. package/assets/board/_nuxt/{ChJuu-Ky.js → BgLeKwx0.js} +1 -1
  15. package/assets/board/_nuxt/{DtVfI_h9.js → BmxvtaMq.js} +1 -1
  16. package/assets/board/_nuxt/{CNCQ_RRC.js → BscJTep0.js} +1 -1
  17. package/assets/board/_nuxt/{Dp5MbiLe.js → C5MtlISK.js} +1 -1
  18. package/assets/board/_nuxt/{BuBpFHLu.js → C7K0R7F-.js} +1 -1
  19. package/assets/board/_nuxt/{MTucdeiW.js → C8vL692X.js} +1 -1
  20. package/assets/board/_nuxt/{BJW3UkS7.js → CJ2mz0WY.js} +1 -1
  21. package/assets/board/_nuxt/{Cu_-fa7D.js → CK-lOYG9.js} +1 -1
  22. package/assets/board/_nuxt/{rV_oonhV.js → CKtAvtay.js} +1 -1
  23. package/assets/board/_nuxt/{B5oiGeHN.js → CLBcBrYf.js} +1 -1
  24. package/assets/board/_nuxt/{CqT7Crsj.js → CMt3SL3m.js} +3 -3
  25. package/assets/board/_nuxt/{Bhg7noz0.js → CSEEUF8S.js} +1 -1
  26. package/assets/board/_nuxt/{D_dkfQp-.js → CTK2Sysu.js} +1 -1
  27. package/assets/board/_nuxt/{CSF_x8S0.js → CXCIZbbz.js} +1 -1
  28. package/assets/board/_nuxt/{Bk5o5EMW.js → CcYp6rwI.js} +1 -1
  29. package/assets/board/_nuxt/{ZuoAH0hh.js → CgDTd7jS.js} +1 -1
  30. package/assets/board/_nuxt/{DsF2J4jZ.js → ChG76uh9.js} +1 -1
  31. package/assets/board/_nuxt/Ci0qbkgh.js +1 -0
  32. package/assets/board/_nuxt/Cj8KbSzE.js +2 -0
  33. package/assets/board/_nuxt/{8QIcohze.js → Cm9lkUvP.js} +1 -1
  34. package/assets/board/_nuxt/{CcCIS_4Q.js → CmyOKc3S.js} +1 -1
  35. package/assets/board/_nuxt/{CnWxhsmi.js → Cplt7ZnK.js} +1 -1
  36. package/assets/board/_nuxt/{CB66hjP7.js → CqTxogVu.js} +1 -1
  37. package/assets/board/_nuxt/{B3oUyqcV.js → CqoQ__I_.js} +1 -1
  38. package/assets/board/_nuxt/{oXSDGTSr.js → Csqgy925.js} +1 -1
  39. package/assets/board/_nuxt/{4G46xON2.js → Cti_rGPY.js} +1 -1
  40. package/assets/board/_nuxt/{x-PrcVk4.js → CyG4hsVv.js} +1 -1
  41. package/assets/board/_nuxt/{5qqsfNvn.js → Cz6rZcLK.js} +1 -1
  42. package/assets/board/_nuxt/{u88eXCXy.js → D2O8Q8x9.js} +1 -1
  43. package/assets/board/_nuxt/{Cq4Q0czX.js → D5CE81jK.js} +1 -1
  44. package/assets/board/_nuxt/{CqhzGRpQ.js → D7ufz00d.js} +1 -1
  45. package/assets/board/_nuxt/{C7wdFLdw.js → D99LbGfb.js} +1 -1
  46. package/assets/board/_nuxt/{D1_aWe_t.js → DF-nsa1Z.js} +1 -1
  47. package/assets/board/_nuxt/{B0YDpoC7.js → DIc8yx98.js} +1 -1
  48. package/assets/board/_nuxt/{BvwhGSdZ.js → DNtz8Ent.js} +1 -1
  49. package/assets/board/_nuxt/{BGRxZnwm.js → DOdi2wDw.js} +1 -1
  50. package/assets/board/_nuxt/{BJcBC4jN.js → DSLbmoWa.js} +1 -1
  51. package/assets/board/_nuxt/{DZXukN7r.js → DUhdM-rb.js} +1 -1
  52. package/assets/board/_nuxt/{C7AVymkF.js → DWO9c9yp.js} +1 -1
  53. package/assets/board/_nuxt/{J9NS0_M_.js → DajA-Tkt.js} +1 -1
  54. package/assets/board/_nuxt/{HclZy1k7.js → DbHiyab-.js} +1 -1
  55. package/assets/board/_nuxt/{BtzBJuQU.js → Dc4dIyTM.js} +1 -1
  56. package/assets/board/_nuxt/{D13eMNHe.js → Dc7Ql6eE.js} +1 -1
  57. package/assets/board/_nuxt/{CkDrD28D.js → Dd9ZukPU.js} +1 -1
  58. package/assets/board/_nuxt/{BGssl5Ao.js → Dg2LiqmN.js} +1 -1
  59. package/assets/board/_nuxt/{DMZvQhvU.js → DgbDcd9I.js} +1 -1
  60. package/assets/board/_nuxt/{Oe3jsM_c.js → DqZgF3hU.js} +1 -1
  61. package/assets/board/_nuxt/{Dwd1XRDX.js → DqcxvfbD.js} +1 -1
  62. package/assets/board/_nuxt/{D2zrOcWn.js → DrZpfjBq.js} +1 -1
  63. package/assets/board/_nuxt/{DdjjthKs.js → DsA2lVci.js} +1 -1
  64. package/assets/board/_nuxt/{CoBNWjS2.js → Du91iq0p.js} +1 -1
  65. package/assets/board/_nuxt/{DNJ5OliG.js → KxQggkNX.js} +1 -1
  66. package/assets/board/_nuxt/{C4MZsmn0.js → M6ZOYZ8R.js} +1 -1
  67. package/assets/board/_nuxt/{C_uy5_kh.js → MaXJprwN.js} +1 -1
  68. package/assets/board/_nuxt/{CurAl_-I.js → V0uynWE2.js} +1 -1
  69. package/assets/board/_nuxt/{3G_ZLrk2.js → ZVTqot-_.js} +1 -1
  70. package/assets/board/_nuxt/{Ck3md8pL.js → ZngEd3HB.js} +1 -1
  71. package/assets/board/_nuxt/{Cp9-r9Yz.js → b2JYbYKt.js} +1 -1
  72. package/assets/board/_nuxt/builds/latest.json +1 -1
  73. package/assets/board/_nuxt/builds/meta/88de87b9-e62d-4466-a908-66ef1b011538.json +1 -0
  74. package/assets/board/_nuxt/{entry.DUA8YVRM.css → entry.CqnxzTAU.css} +1 -1
  75. package/assets/board/_nuxt/{DPeEWyPC.js → f1ditBVp.js} +1 -1
  76. package/assets/board/_nuxt/{HUproyl7.js → jtompfyX.js} +1 -1
  77. package/assets/board/_nuxt/last-change.B59xu_sV.css +1 -0
  78. package/assets/board/_nuxt/{BsNk4K6P.js → o_84IzFk.js} +1 -1
  79. package/assets/board/_nuxt/{13F3FZJq.js → q6p4rsh_.js} +1 -1
  80. package/assets/board/_nuxt/{HvSJjbUd.js → uKzCKCTq.js} +1 -1
  81. package/assets/board/_nuxt/{dI2CahwK.js → wRPvhAJz.js} +1 -1
  82. package/assets/board/_nuxt/{C6wyeu66.js → yh6sf_D5.js} +1 -1
  83. package/assets/board/_nuxt/{DCRsKQUZ.js → z40PaBW1.js} +1 -1
  84. package/assets/board/burndown/index.html +1 -1
  85. package/assets/board/epics/index.html +1 -1
  86. package/assets/board/favicon.svg +16 -0
  87. package/assets/board/gantt/index.html +1 -1
  88. package/assets/board/index.html +1 -1
  89. package/assets/board/last-change/index.html +1 -1
  90. package/assets/board/milestones/index.html +1 -1
  91. package/bin/scrum-skills.mjs +24 -17
  92. package/package.json +1 -1
  93. package/assets/board/_nuxt/B43-KCi6.js +0 -1
  94. package/assets/board/_nuxt/DIAPFfZA.js +0 -2
  95. package/assets/board/_nuxt/builds/meta/ceebd758-b616-48d8-872b-0de05659de19.json +0 -1
  96. package/assets/board/_nuxt/last-change.CaSxA-Z0.css +0 -1
@@ -1 +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"./D2zrOcWn.js";import{a as Se,n as Ce,t as we}from"./CNCQ_RRC.js";import{n as Te}from"./BsNk4K6P.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};
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"./B3jkABw9.js";import{t as ee}from"./DSaWoFHS.js";import{r as te}from"./Csqgy925.js";import{c as ne,h as re,i as F,l as ie,n as ae,t as oe}from"./6gFtTBwm.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"./Ci0qbkgh.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"./DrZpfjBq.js";import{a as Se,n as Ce,t as we}from"./BscJTep0.js";import{n as Te}from"./o_84IzFk.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};
@@ -1 +1 @@
1
- import{s as e}from"./u88eXCXy.js";import{D as t,On as n,Zn as r,_ as i,b as a,g as o,mt as s,xt as c}from"./DZo3dYLJ.js";import{r as l}from"./oXSDGTSr.js";import{n as u,t as d}from"./Baq-Hrpf.js";import{t as f}from"./D2zrOcWn.js";var p={slots:{base:[`relative text-2xl text-highlighted font-bold mt-12 mb-6 scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-xl/7 [&>a>code]:font-bold`,`[&>a>code]:transition-colors`],leading:[`absolute -ms-8 top-1 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated group-hover:text-primary group-focus:text-primary rounded-md hidden lg:flex text-muted`,`transition`],leadingIcon:`size-4 shrink-0`,link:`group lg:after:absolute lg:after:inset-y-0 lg:after:-inset-s-2 lg:after:w-2`}},m=[`id`],h=[`href`],g={__name:`ProseH2`,props:{id:{type:String,required:!1},anchor:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(g){let _=u(`prose.h2`,g),v=l(),{headings:y}=e().public?.mdc||{},b=o(()=>d({extend:p,...v.ui?.prose?.h2||{}})()),x=o(()=>_.id&&(_.anchor??(typeof y?.anchorLinks==`boolean`?y.anchorLinks:y?.anchorLinks?.h2)??!1));return(e,o)=>(s(),a(`h2`,{id:n(_).id,class:r(b.value.base({class:[n(_).ui?.base,n(_).class]}))},[n(_).id&&x.value?(s(),a(`a`,{key:0,href:`#${n(_).id}`,class:r(b.value.link({class:n(_).ui?.link}))},[i(`span`,{class:r(b.value.leading({class:n(_).ui?.leading}))},[t(f,{name:n(v).ui.icons.hash,class:r(b.value.leadingIcon({class:n(_).ui?.leadingIcon}))},null,8,[`name`,`class`])],2),c(e.$slots,`default`)],10,h)):c(e.$slots,`default`,{},void 0,void 0,1)],10,m))}};export{g as default};
1
+ import{s as e}from"./D2O8Q8x9.js";import{D as t,On as n,Zn as r,_ as i,b as a,g as o,mt as s,xt as c}from"./DZo3dYLJ.js";import{r as l}from"./Csqgy925.js";import{n as u,t as d}from"./6gFtTBwm.js";import{t as f}from"./DrZpfjBq.js";var p={slots:{base:[`relative text-2xl text-highlighted font-bold mt-12 mb-6 scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-xl/7 [&>a>code]:font-bold`,`[&>a>code]:transition-colors`],leading:[`absolute -ms-8 top-1 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated group-hover:text-primary group-focus:text-primary rounded-md hidden lg:flex text-muted`,`transition`],leadingIcon:`size-4 shrink-0`,link:`group lg:after:absolute lg:after:inset-y-0 lg:after:-inset-s-2 lg:after:w-2`}},m=[`id`],h=[`href`],g={__name:`ProseH2`,props:{id:{type:String,required:!1},anchor:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(g){let _=u(`prose.h2`,g),v=l(),{headings:y}=e().public?.mdc||{},b=o(()=>d({extend:p,...v.ui?.prose?.h2||{}})()),x=o(()=>_.id&&(_.anchor??(typeof y?.anchorLinks==`boolean`?y.anchorLinks:y?.anchorLinks?.h2)??!1));return(e,o)=>(s(),a(`h2`,{id:n(_).id,class:r(b.value.base({class:[n(_).ui?.base,n(_).class]}))},[n(_).id&&x.value?(s(),a(`a`,{key:0,href:`#${n(_).id}`,class:r(b.value.link({class:n(_).ui?.link}))},[i(`span`,{class:r(b.value.leading({class:n(_).ui?.leading}))},[t(f,{name:n(v).ui.icons.hash,class:r(b.value.leadingIcon({class:n(_).ui?.leadingIcon}))},null,8,[`name`,`class`])],2),c(e.$slots,`default`)],10,h)):c(e.$slots,`default`,{},void 0,void 0,1)],10,m))}};export{g as default};
@@ -1 +1 @@
1
- import{o as e}from"./u88eXCXy.js";import{$n as t,L as n,On as r,ct as i,et as a,g as o,it as s,mt as c,qt as l,v as u,xt as d,z as f}from"./DZo3dYLJ.js";import{i as p,t as m}from"./DSaWoFHS.js";import{ct as h,t as g}from"./BuBpFHLu.js";import{t as _}from"./BJW3UkS7.js";import{n as v,r as y,t as b}from"./oXSDGTSr.js";import{t as x,u as S}from"./Baq-Hrpf.js";import{p as C}from"./CuJUHLl8.js";import{n as w,t as T}from"./CK9_veoz.js";import{t as E}from"./B_SlFcWp.js";var D=`__proto__`;function O(e,t){let n=[];return k(e,t,``,n),n}function k(e,t,n,r){if(e===t)return;let i=typeof e!=`object`||!e,a=typeof t!=`object`||!t;if(!i&&!a){let i=A(e),a=A(t);for(let[e,t]of i){let i=n?`${n}.${e}`:e;a.has(e)?k(t,a.get(e),i,r):r.push(new F(i,`removed`,void 0,N(t,i)))}for(let[e,t]of a){if(i.has(e))continue;let a=n?`${n}.${e}`:e;r.push(new F(a,`added`,N(t,a)))}return}if(j(e,i)||j(t,a))return;let o=M(e,n,i),s=M(t,n,a);o.hash!==s.hash&&r.push(new F(n,`changed`,s,o))}function A(e){let t=new Map;for(let n in e)n!==D&&t.set(n,e[n]);return t}function j(e,t){if(t)return!1;for(let t in e)if(t!==D)return!0;return!1}function M(e,t,n){return n?new I(t,e,P(e)):new I(t,e,`{}`,Object.create(null))}function N(e,t=``){if(typeof e!=`object`||!e)return new I(t,e,P(e));let n=Object.create(null),r=[];for(let i in e){if(i===D)continue;let a=N(e[i],t?`${t}.${i}`:i);n[i]=a,r.push(a.hash)}return new I(t,e,`{${r.join(`:`)}}`,n)}function P(e){switch(typeof e){case`string`:return`'${e}'`;case`number`:case`boolean`:return``+e;case`bigint`:return`${e}n`;default:return v(e)}}var F=class{key;type;newValue;oldValue;constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue?.toString()}\``}}},I=class{key;value;hash;props;constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}},L=new Set(`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.locale.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`));function R(e){let t={};for(let n of Object.keys(e))(L.has(n)||n.startsWith(`aria-`)||n.startsWith(`data-`))&&(t[n]=e[n]);return t}function z(e,t){let n=O(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set),r=Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),i=Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e)));return b(r,i)}var B={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:[String,null],required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let t=e;function n(e){if(t.disabled){e.stopPropagation(),e.preventDefault();return}let n=[];if(t.onClick)for(let r of Array.isArray(t.onClick)?t.onClick:[t.onClick])n.push(r(e));return t.href&&t.navigate&&!t.isExternal&&t.navigate(e),Promise.all(n)}return(t,i)=>(c(),u(r(T),a(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:l(()=>[d(t.$slots,`default`)]),_:3},16,[`rel`,`target`]))}};function V(e){if(typeof window<`u`)return typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e):setTimeout(e,1)}function H(e){typeof window<`u`&&e!==void 0&&(typeof window.cancelIdleCallback==`function`?window.cancelIdleCallback(e):clearTimeout(e))}var U=null,W=new Map;function G(e,t){return typeof IntersectionObserver>`u`?()=>{}:(U||=new IntersectionObserver(e=>{for(let t of e){let e=W.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),W.set(e,t),U.observe(e),()=>{W.delete(e),U?.unobserve(e),W.size===0&&(U?.disconnect(),U=null)})}var K={base:`outline-primary/25 focus-visible:outline-3 rounded-md`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]},q=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},locale:{type:[Boolean,String],required:!1,default:void 0},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(v){let T=v,D=h(),O=y(),k=e(),A=E(C(T,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`locale`,`class`)),j=o(()=>x({extend:K,...m({variants:{active:{true:S(O.ui?.link?.variants?.active?.true,T.activeClass),false:S(O.ui?.link?.variants?.active?.false,T.inactiveClass)}}},O.ui?.link||{})})),M=o(()=>{let e=T.to??T.href;if(!e||typeof e!=`string`||T.external||p(e,{acceptRelative:!0})||T.locale===!1)return e;let t=k.$localePath;if(!t)return e;let n=k.$i18n?.localeCodes?.value;return n?.length&&RegExp(`^/(${n.join(`|`)})($|[/?#])`).test(e)?e:t(e,typeof T.locale==`string`?T.locale:void 0)||e}),N=o(()=>!M.value||T.external?!1:typeof M.value!=`string`||!(p(M.value,{acceptRelative:!0})||T.target&&T.target!==`_self`)),P=o(()=>T.noRel?null:T.rel===void 0?!N.value||T.target&&T.target!==`_self`?`noopener noreferrer`:null:T.rel||null);function F({route:e,isActive:t,isExactActive:n}={}){if(T.active!==void 0)return T.active;if(!M.value)return!1;if(T.exactQuery===`partial`){if(!z(e.query,D.query))return!1}else if(T.exactQuery===!0&&!b(e.query,D.query))return!1;return T.exactHash&&e.hash!==D.hash?!1:!!(T.exact&&n||!T.exact&&t)}function I({route:e,isActive:t,isExactActive:n,prefetched:r}={}){let i=F({route:e,isActive:t,isExactActive:n}),a=r?T.prefetchedClass:void 0;return T.raw?[T.class,i?T.activeClass:T.inactiveClass,a]:j.value({class:a?[T.class,a]:T.class,active:i,disabled:T.disabled})}let L=n(),R;function U(){R?.prefetch?.(k)}function W(){if(!R?.prefetched){R?.shouldPrefetch?.(`interaction`)&&U();return}if(R.fullPath===void 0)return;let{pathname:e,search:t}=new URL(R.fullPath,window.location.href);k._prefetch?.promote?.(e+t)}function q({prefetch:e,shouldPrefetch:t,prefetched:n,isExternal:r},i,o){if(e&&t&&(R={prefetch:e,shouldPrefetch:t,prefetched:n,fullPath:r?void 0:o?.fullPath},n||t(`interaction`)))return a({onPointerenter:i.onPointerenter,onFocus:i.onFocus,onPointerdown:i.onPointerdown},{onPointerenter:W,onFocus:W,onPointerdown:W})}let J,Y=null,X=!1;return i(()=>{if(!R?.shouldPrefetch?.(`visibility`))return;let e=L?.proxy?.$el,t=e instanceof Element?e:e?.nextElementSibling;t&&g(()=>{X||(J=V(()=>{Y=G(t,()=>{Y?.(),Y=null,U()})}))})}),s(()=>{X=!0,H(J),Y?.(),Y=null}),(e,n)=>{let i=_;return N.value?(c(),u(i,a({key:0},r(A),{to:M.value,custom:``}),{default:l(({href:n,navigate:i,route:o,isActive:s,isExactActive:p,...m})=>[v.custom?(c(),u(r(w),{key:0},{default:l(()=>[d(e.$slots,`default`,t(f({...e.$attrs,...v.exact&&p?{"aria-current":T.ariaCurrentValue}:{},...m.prefetched&&v.prefetchedClass?{class:v.prefetchedClass}:{},...q(m,e.$attrs,o),as:v.as,type:v.type,disabled:v.disabled,href:n,navigate:i,rel:P.value,target:m.target,isExternal:m.isExternal,active:F({route:o,isActive:s,isExactActive:p})})))]),_:2},1024)):(c(),u(B,a({key:1},{...e.$attrs,...v.exact&&p?{"aria-current":T.ariaCurrentValue}:{},as:v.as,type:v.type,disabled:v.disabled,href:n,navigate:i,rel:P.value,target:m.target,isExternal:m.isExternal,...q(m,e.$attrs,o)},{class:I({route:o,isActive:s,isExactActive:p,prefetched:m.prefetched})}),{default:l(()=>[d(e.$slots,`default`,{active:F({route:o,isActive:s,isExactActive:p})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])):v.custom?(c(),u(r(w),{key:1},{default:l(()=>[d(e.$slots,`default`,t(f({...e.$attrs,as:v.as,type:v.type,disabled:v.disabled,...M.value?{href:String(M.value),target:T.target,rel:P.value,isExternal:!0}:{},active:v.active??!1})))]),_:3})):(c(),u(B,a({key:2},{...e.$attrs,as:v.as,type:v.type,disabled:v.disabled,...M.value?{href:String(M.value),target:T.target,rel:P.value,isExternal:!0}:{}},{class:I()}),{default:l(()=>[d(e.$slots,`default`,{active:v.active??!1})]),_:3},16,[`class`]))}}});export{R as a,B as i,H as n,V as r,q as t};
1
+ import{o as e}from"./D2O8Q8x9.js";import{$n as t,L as n,On as r,ct as i,et as a,g as o,it as s,mt as c,qt as l,v as u,xt as d,z as f}from"./DZo3dYLJ.js";import{i as p,t as m}from"./DSaWoFHS.js";import{ct as h,t as g}from"./C7K0R7F-.js";import{t as _}from"./CJ2mz0WY.js";import{n as v,r as y,t as b}from"./Csqgy925.js";import{t as x,u as S}from"./6gFtTBwm.js";import{p as C}from"./CuJUHLl8.js";import{n as w,t as T}from"./CK9_veoz.js";import{t as E}from"./B_SlFcWp.js";var D=`__proto__`;function O(e,t){let n=[];return k(e,t,``,n),n}function k(e,t,n,r){if(e===t)return;let i=typeof e!=`object`||!e,a=typeof t!=`object`||!t;if(!i&&!a){let i=A(e),a=A(t);for(let[e,t]of i){let i=n?`${n}.${e}`:e;a.has(e)?k(t,a.get(e),i,r):r.push(new F(i,`removed`,void 0,N(t,i)))}for(let[e,t]of a){if(i.has(e))continue;let a=n?`${n}.${e}`:e;r.push(new F(a,`added`,N(t,a)))}return}if(j(e,i)||j(t,a))return;let o=M(e,n,i),s=M(t,n,a);o.hash!==s.hash&&r.push(new F(n,`changed`,s,o))}function A(e){let t=new Map;for(let n in e)n!==D&&t.set(n,e[n]);return t}function j(e,t){if(t)return!1;for(let t in e)if(t!==D)return!0;return!1}function M(e,t,n){return n?new I(t,e,P(e)):new I(t,e,`{}`,Object.create(null))}function N(e,t=``){if(typeof e!=`object`||!e)return new I(t,e,P(e));let n=Object.create(null),r=[];for(let i in e){if(i===D)continue;let a=N(e[i],t?`${t}.${i}`:i);n[i]=a,r.push(a.hash)}return new I(t,e,`{${r.join(`:`)}}`,n)}function P(e){switch(typeof e){case`string`:return`'${e}'`;case`number`:case`boolean`:return``+e;case`bigint`:return`${e}n`;default:return v(e)}}var F=class{key;type;newValue;oldValue;constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue?.toString()}\``}}},I=class{key;value;hash;props;constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}},L=new Set(`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.locale.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`));function R(e){let t={};for(let n of Object.keys(e))(L.has(n)||n.startsWith(`aria-`)||n.startsWith(`data-`))&&(t[n]=e[n]);return t}function z(e,t){let n=O(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set),r=Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),i=Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e)));return b(r,i)}var B={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:[String,null],required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let t=e;function n(e){if(t.disabled){e.stopPropagation(),e.preventDefault();return}let n=[];if(t.onClick)for(let r of Array.isArray(t.onClick)?t.onClick:[t.onClick])n.push(r(e));return t.href&&t.navigate&&!t.isExternal&&t.navigate(e),Promise.all(n)}return(t,i)=>(c(),u(r(T),a(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:l(()=>[d(t.$slots,`default`)]),_:3},16,[`rel`,`target`]))}};function V(e){if(typeof window<`u`)return typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e):setTimeout(e,1)}function H(e){typeof window<`u`&&e!==void 0&&(typeof window.cancelIdleCallback==`function`?window.cancelIdleCallback(e):clearTimeout(e))}var U=null,W=new Map;function G(e,t){return typeof IntersectionObserver>`u`?()=>{}:(U||=new IntersectionObserver(e=>{for(let t of e){let e=W.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),W.set(e,t),U.observe(e),()=>{W.delete(e),U?.unobserve(e),W.size===0&&(U?.disconnect(),U=null)})}var K={base:`outline-primary/25 focus-visible:outline-3 rounded-md`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]},q=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},locale:{type:[Boolean,String],required:!1,default:void 0},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(v){let T=v,D=h(),O=y(),k=e(),A=E(C(T,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`locale`,`class`)),j=o(()=>x({extend:K,...m({variants:{active:{true:S(O.ui?.link?.variants?.active?.true,T.activeClass),false:S(O.ui?.link?.variants?.active?.false,T.inactiveClass)}}},O.ui?.link||{})})),M=o(()=>{let e=T.to??T.href;if(!e||typeof e!=`string`||T.external||p(e,{acceptRelative:!0})||T.locale===!1)return e;let t=k.$localePath;if(!t)return e;let n=k.$i18n?.localeCodes?.value;return n?.length&&RegExp(`^/(${n.join(`|`)})($|[/?#])`).test(e)?e:t(e,typeof T.locale==`string`?T.locale:void 0)||e}),N=o(()=>!M.value||T.external?!1:typeof M.value!=`string`||!(p(M.value,{acceptRelative:!0})||T.target&&T.target!==`_self`)),P=o(()=>T.noRel?null:T.rel===void 0?!N.value||T.target&&T.target!==`_self`?`noopener noreferrer`:null:T.rel||null);function F({route:e,isActive:t,isExactActive:n}={}){if(T.active!==void 0)return T.active;if(!M.value)return!1;if(T.exactQuery===`partial`){if(!z(e.query,D.query))return!1}else if(T.exactQuery===!0&&!b(e.query,D.query))return!1;return T.exactHash&&e.hash!==D.hash?!1:!!(T.exact&&n||!T.exact&&t)}function I({route:e,isActive:t,isExactActive:n,prefetched:r}={}){let i=F({route:e,isActive:t,isExactActive:n}),a=r?T.prefetchedClass:void 0;return T.raw?[T.class,i?T.activeClass:T.inactiveClass,a]:j.value({class:a?[T.class,a]:T.class,active:i,disabled:T.disabled})}let L=n(),R;function U(){R?.prefetch?.(k)}function W(){if(!R?.prefetched){R?.shouldPrefetch?.(`interaction`)&&U();return}if(R.fullPath===void 0)return;let{pathname:e,search:t}=new URL(R.fullPath,window.location.href);k._prefetch?.promote?.(e+t)}function q({prefetch:e,shouldPrefetch:t,prefetched:n,isExternal:r},i,o){if(e&&t&&(R={prefetch:e,shouldPrefetch:t,prefetched:n,fullPath:r?void 0:o?.fullPath},n||t(`interaction`)))return a({onPointerenter:i.onPointerenter,onFocus:i.onFocus,onPointerdown:i.onPointerdown},{onPointerenter:W,onFocus:W,onPointerdown:W})}let J,Y=null,X=!1;return i(()=>{if(!R?.shouldPrefetch?.(`visibility`))return;let e=L?.proxy?.$el,t=e instanceof Element?e:e?.nextElementSibling;t&&g(()=>{X||(J=V(()=>{Y=G(t,()=>{Y?.(),Y=null,U()})}))})}),s(()=>{X=!0,H(J),Y?.(),Y=null}),(e,n)=>{let i=_;return N.value?(c(),u(i,a({key:0},r(A),{to:M.value,custom:``}),{default:l(({href:n,navigate:i,route:o,isActive:s,isExactActive:p,...m})=>[v.custom?(c(),u(r(w),{key:0},{default:l(()=>[d(e.$slots,`default`,t(f({...e.$attrs,...v.exact&&p?{"aria-current":T.ariaCurrentValue}:{},...m.prefetched&&v.prefetchedClass?{class:v.prefetchedClass}:{},...q(m,e.$attrs,o),as:v.as,type:v.type,disabled:v.disabled,href:n,navigate:i,rel:P.value,target:m.target,isExternal:m.isExternal,active:F({route:o,isActive:s,isExactActive:p})})))]),_:2},1024)):(c(),u(B,a({key:1},{...e.$attrs,...v.exact&&p?{"aria-current":T.ariaCurrentValue}:{},as:v.as,type:v.type,disabled:v.disabled,href:n,navigate:i,rel:P.value,target:m.target,isExternal:m.isExternal,...q(m,e.$attrs,o)},{class:I({route:o,isActive:s,isExactActive:p,prefetched:m.prefetched})}),{default:l(()=>[d(e.$slots,`default`,{active:F({route:o,isActive:s,isExactActive:p})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])):v.custom?(c(),u(r(w),{key:1},{default:l(()=>[d(e.$slots,`default`,t(f({...e.$attrs,as:v.as,type:v.type,disabled:v.disabled,...M.value?{href:String(M.value),target:T.target,rel:P.value,isExternal:!0}:{},active:v.active??!1})))]),_:3})):(c(),u(B,a({key:2},{...e.$attrs,as:v.as,type:v.type,disabled:v.disabled,...M.value?{href:String(M.value),target:T.target,rel:P.value,isExternal:!0}:{}},{class:I()}),{default:l(()=>[d(e.$slots,`default`,{active:v.active??!1})]),_:3},16,[`class`]))}}});export{R as a,B as i,H as n,V as r,q as t};
@@ -1 +1 @@
1
- import{E as e,On as t,Zn as n,b as r,g as i,mt as a,tr as o,xt as s}from"./DZo3dYLJ.js";import{r as c}from"./oXSDGTSr.js";import{n as l,t as u}from"./Baq-Hrpf.js";var d={base:`*:first:mt-0 *:last:mb-0 *:my-1.5`},f={__name:`ProseTabsItem`,props:{label:{type:String,required:!0},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){let p=l(`prose.tabsItem`,f),m=c(),h=i(()=>u({extend:d,...m.ui?.prose?.tabsItem||{}}));return(i,c)=>(a(),r(`div`,{class:n(h.value({class:[t(p).ui?.base,t(p).class]}))},[s(i.$slots,`default`,{},()=>[e(o(t(p).description),1)])],2))}};export{f as default};
1
+ import{E as e,On as t,Zn as n,b as r,g as i,mt as a,tr as o,xt as s}from"./DZo3dYLJ.js";import{r as c}from"./Csqgy925.js";import{n as l,t as u}from"./6gFtTBwm.js";var d={base:`*:first:mt-0 *:last:mb-0 *:my-1.5`},f={__name:`ProseTabsItem`,props:{label:{type:String,required:!0},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){let p=l(`prose.tabsItem`,f),m=c(),h=i(()=>u({extend:d,...m.ui?.prose?.tabsItem||{}}));return(i,c)=>(a(),r(`div`,{class:n(h.value({class:[t(p).ui?.base,t(p).class]}))},[s(i.$slots,`default`,{},()=>[e(o(t(p).description),1)])],2))}};export{f as default};
@@ -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"./D2zrOcWn.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"./Csqgy925.js";import{f as T,n as E,t as D}from"./6gFtTBwm.js";import{n as O,t as k}from"./CK9_veoz.js";import{t as A}from"./DrZpfjBq.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 +1 @@
1
- import{Lt as e,On as t,Zn as n,b as r,et as i,g as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./DZo3dYLJ.js";import{r as f}from"./oXSDGTSr.js";import{n as p,t as m}from"./Baq-Hrpf.js";import{t as h}from"./CK9_veoz.js";import{t as g}from"./D2zrOcWn.js";import{a as _,n as v,t as y}from"./CNCQ_RRC.js";var b={slots:{base:`font-medium inline-flex items-center`,label:`truncate`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailingIcon:`shrink-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]`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{xs:{base:`text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm`,leadingIcon:`size-3`,leadingAvatarSize:`3xs`,trailingIcon:`size-3`},sm:{base:`text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm`,leadingIcon:`size-3`,leadingAvatarSize:`3xs`,trailingIcon:`size-3`},md:{base:`text-xs px-2 py-1 gap-1 rounded-md`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},lg:{base:`text-sm px-2 py-1 gap-1.5 rounded-md`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`text-base px-2.5 py-1 gap-1.5 rounded-md`,leadingIcon:`size-6`,leadingAvatarSize:`2xs`,trailingIcon:`size-6`}},square:{true:``}},compoundVariants:[{color:`primary`,variant:`solid`,class:`bg-primary text-inverted`},{color:`secondary`,variant:`solid`,class:`bg-secondary text-inverted`},{color:`success`,variant:`solid`,class:`bg-success text-inverted`},{color:`info`,variant:`solid`,class:`bg-info text-inverted`},{color:`warning`,variant:`solid`,class:`bg-warning text-inverted`},{color:`error`,variant:`solid`,class:`bg-error text-inverted`},{color:`primary`,variant:`outline`,class:`text-primary ring ring-inset ring-primary/50`},{color:`secondary`,variant:`outline`,class:`text-secondary ring ring-inset ring-secondary/50`},{color:`success`,variant:`outline`,class:`text-success ring ring-inset ring-success/50`},{color:`info`,variant:`outline`,class:`text-info ring ring-inset ring-info/50`},{color:`warning`,variant:`outline`,class:`text-warning ring ring-inset ring-warning/50`},{color:`error`,variant:`outline`,class:`text-error ring ring-inset ring-error/50`},{color:`primary`,variant:`soft`,class:`bg-primary/10 text-primary`},{color:`secondary`,variant:`soft`,class:`bg-secondary/10 text-secondary`},{color:`success`,variant:`soft`,class:`bg-success/10 text-success`},{color:`info`,variant:`soft`,class:`bg-info/10 text-info`},{color:`warning`,variant:`soft`,class:`bg-warning/10 text-warning`},{color:`error`,variant:`soft`,class:`bg-error/10 text-error`},{color:`primary`,variant:`subtle`,class:`bg-primary/10 text-primary ring ring-inset ring-primary/25`},{color:`secondary`,variant:`subtle`,class:`bg-secondary/10 text-secondary ring ring-inset ring-secondary/25`},{color:`success`,variant:`subtle`,class:`bg-success/10 text-success ring ring-inset ring-success/25`},{color:`info`,variant:`subtle`,class:`bg-info/10 text-info ring ring-inset ring-info/25`},{color:`warning`,variant:`subtle`,class:`bg-warning/10 text-warning ring ring-inset ring-warning/25`},{color:`error`,variant:`subtle`,class:`bg-error/10 text-error ring ring-inset ring-error/25`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`},{size:`xs`,square:!0,class:`p-0.5`},{size:`sm`,square:!0,class:`p-1`},{size:`md`,square:!0,class:`p-1`},{size:`lg`,square:!0,class:`p-1`},{size:`xl`,square:!0,class:`p-1`}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`}},x={__name:`UBadge`,props:{as:{type:null,required:!1,default:`span`},label:{type:[String,Number],required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,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}},setup(x){let S=x,C=e(),w=p(`badge`,S),T=f(),{orientation:E,size:D}=_(S),{isLeading:O,isTrailing:k,leadingIconName:A,trailingIconName:j}=y(w),M=a(()=>m({extend:b,...T.ui?.badge||{}})({color:w.color,variant:w.variant,size:D.value??w.size,square:w.square||!C.default&&!w.label,fieldGroup:E.value}));return(e,a)=>(o(),l(t(h),{as:t(w).as,"data-slot":`base`,class:n(M.value.base({class:[t(w).ui?.base,t(w).class]}))},{default:s(()=>[u(e.$slots,`leading`,{ui:M.value},()=>[t(O)&&t(A)?(o(),l(g,{key:0,name:t(A),"data-slot":`leadingIcon`,class:n(M.value.leadingIcon({class:t(w).ui?.leadingIcon}))},null,8,[`name`,`class`])):t(w).avatar?(o(),l(v,i({key:1,size:t(w).ui?.leadingAvatarSize||M.value.leadingAvatarSize()},t(w).avatar,{"data-slot":`leadingAvatar`,class:M.value.leadingAvatar({class:t(w).ui?.leadingAvatar})}),null,16,[`size`,`class`])):d(``,!0)]),u(e.$slots,`default`,{ui:M.value},()=>[t(w).label!==void 0&&t(w).label!==null?(o(),r(`span`,{key:0,"data-slot":`label`,class:n(M.value.label({class:t(w).ui?.label}))},c(t(w).label),3)):d(``,!0)]),u(e.$slots,`trailing`,{ui:M.value},()=>[t(k)&&t(j)?(o(),l(g,{key:0,name:t(j),"data-slot":`trailingIcon`,class:n(M.value.trailingIcon({class:t(w).ui?.trailingIcon}))},null,8,[`name`,`class`])):d(``,!0)])]),_:3},8,[`as`,`class`]))}};export{x as t};
1
+ import{Lt as e,On as t,Zn as n,b as r,et as i,g as a,mt as o,qt as s,tr as c,v as l,xt as u,y as d}from"./DZo3dYLJ.js";import{r as f}from"./Csqgy925.js";import{n as p,t as m}from"./6gFtTBwm.js";import{t as h}from"./CK9_veoz.js";import{t as g}from"./DrZpfjBq.js";import{a as _,n as v,t as y}from"./BscJTep0.js";var b={slots:{base:`font-medium inline-flex items-center`,label:`truncate`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailingIcon:`shrink-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]`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{xs:{base:`text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm`,leadingIcon:`size-3`,leadingAvatarSize:`3xs`,trailingIcon:`size-3`},sm:{base:`text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm`,leadingIcon:`size-3`,leadingAvatarSize:`3xs`,trailingIcon:`size-3`},md:{base:`text-xs px-2 py-1 gap-1 rounded-md`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},lg:{base:`text-sm px-2 py-1 gap-1.5 rounded-md`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`text-base px-2.5 py-1 gap-1.5 rounded-md`,leadingIcon:`size-6`,leadingAvatarSize:`2xs`,trailingIcon:`size-6`}},square:{true:``}},compoundVariants:[{color:`primary`,variant:`solid`,class:`bg-primary text-inverted`},{color:`secondary`,variant:`solid`,class:`bg-secondary text-inverted`},{color:`success`,variant:`solid`,class:`bg-success text-inverted`},{color:`info`,variant:`solid`,class:`bg-info text-inverted`},{color:`warning`,variant:`solid`,class:`bg-warning text-inverted`},{color:`error`,variant:`solid`,class:`bg-error text-inverted`},{color:`primary`,variant:`outline`,class:`text-primary ring ring-inset ring-primary/50`},{color:`secondary`,variant:`outline`,class:`text-secondary ring ring-inset ring-secondary/50`},{color:`success`,variant:`outline`,class:`text-success ring ring-inset ring-success/50`},{color:`info`,variant:`outline`,class:`text-info ring ring-inset ring-info/50`},{color:`warning`,variant:`outline`,class:`text-warning ring ring-inset ring-warning/50`},{color:`error`,variant:`outline`,class:`text-error ring ring-inset ring-error/50`},{color:`primary`,variant:`soft`,class:`bg-primary/10 text-primary`},{color:`secondary`,variant:`soft`,class:`bg-secondary/10 text-secondary`},{color:`success`,variant:`soft`,class:`bg-success/10 text-success`},{color:`info`,variant:`soft`,class:`bg-info/10 text-info`},{color:`warning`,variant:`soft`,class:`bg-warning/10 text-warning`},{color:`error`,variant:`soft`,class:`bg-error/10 text-error`},{color:`primary`,variant:`subtle`,class:`bg-primary/10 text-primary ring ring-inset ring-primary/25`},{color:`secondary`,variant:`subtle`,class:`bg-secondary/10 text-secondary ring ring-inset ring-secondary/25`},{color:`success`,variant:`subtle`,class:`bg-success/10 text-success ring ring-inset ring-success/25`},{color:`info`,variant:`subtle`,class:`bg-info/10 text-info ring ring-inset ring-info/25`},{color:`warning`,variant:`subtle`,class:`bg-warning/10 text-warning ring ring-inset ring-warning/25`},{color:`error`,variant:`subtle`,class:`bg-error/10 text-error ring ring-inset ring-error/25`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`},{size:`xs`,square:!0,class:`p-0.5`},{size:`sm`,square:!0,class:`p-1`},{size:`md`,square:!0,class:`p-1`},{size:`lg`,square:!0,class:`p-1`},{size:`xl`,square:!0,class:`p-1`}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`}},x={__name:`UBadge`,props:{as:{type:null,required:!1,default:`span`},label:{type:[String,Number],required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,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}},setup(x){let S=x,C=e(),w=p(`badge`,S),T=f(),{orientation:E,size:D}=_(S),{isLeading:O,isTrailing:k,leadingIconName:A,trailingIconName:j}=y(w),M=a(()=>m({extend:b,...T.ui?.badge||{}})({color:w.color,variant:w.variant,size:D.value??w.size,square:w.square||!C.default&&!w.label,fieldGroup:E.value}));return(e,a)=>(o(),l(t(h),{as:t(w).as,"data-slot":`base`,class:n(M.value.base({class:[t(w).ui?.base,t(w).class]}))},{default:s(()=>[u(e.$slots,`leading`,{ui:M.value},()=>[t(O)&&t(A)?(o(),l(g,{key:0,name:t(A),"data-slot":`leadingIcon`,class:n(M.value.leadingIcon({class:t(w).ui?.leadingIcon}))},null,8,[`name`,`class`])):t(w).avatar?(o(),l(v,i({key:1,size:t(w).ui?.leadingAvatarSize||M.value.leadingAvatarSize()},t(w).avatar,{"data-slot":`leadingAvatar`,class:M.value.leadingAvatar({class:t(w).ui?.leadingAvatar})}),null,16,[`size`,`class`])):d(``,!0)]),u(e.$slots,`default`,{ui:M.value},()=>[t(w).label!==void 0&&t(w).label!==null?(o(),r(`span`,{key:0,"data-slot":`label`,class:n(M.value.label({class:t(w).ui?.label}))},c(t(w).label),3)):d(``,!0)]),u(e.$slots,`trailing`,{ui:M.value},()=>[t(k)&&t(j)?(o(),l(g,{key:0,name:t(j),"data-slot":`trailingIcon`,class:n(M.value.trailingIcon({class:t(w).ui?.trailingIcon}))},null,8,[`name`,`class`])):d(``,!0)])]),_:3},8,[`as`,`class`]))}};export{x as t};
@@ -1,2 +1,2 @@
1
- import{_ as e,b as t,o as n,s as r,v as i,y as a}from"./u88eXCXy.js";import{B as o,H as s,J as c,L as l,an as u,wn as d}from"./DZo3dYLJ.js";import{t as ee}from"./51OWHj8c.js";import{c as te,l as ne,o as re,p as ie,r as ae,t as oe,u as f}from"./DSaWoFHS.js";function se(e,t){try{return t in e}catch{return!1}}var p=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:h(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=m(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function ce(e){if(typeof e==`string`)return new p(e);if(le(e))return e;let t=new p(e.message??e.statusMessage??``,{cause:e.cause||e});if(se(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=h(e.statusCode,t.statusCode):e.status&&(t.statusCode=h(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;m(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function le(e){return e?.constructor?.__h3_error__===!0}var ue=/[^\u0009\u0020-\u007E]/g;function m(e=``){return e.replace(ue,``)}function h(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var de=`__nuxt_error`,g=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,_=e=>{if(g(e))return e;typeof e!=`string`&&e?.statusText&&(e.message??=e.statusText);let t=ce(e??{});return Object.defineProperty(t,de,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t},fe=`https://a.invalid/probe/`,pe=`https://b.invalid/probe/`;function v(e,t=fe){try{return new URL(e,t)}catch{return null}}function y(e){let t=v(e);return!!t&&t.href===v(e,pe)?.href}function b(e){return e[0]!==`/`||e[1]===`/`||e[1]===`\\`?!1:e[1]!==` `&&e[1]!==`
1
+ import{_ as e,b as t,o as n,s as r,v as i,y as a}from"./D2O8Q8x9.js";import{B as o,H as s,J as c,L as l,an as u,wn as d}from"./DZo3dYLJ.js";import{t as ee}from"./51OWHj8c.js";import{c as te,l as ne,o as re,p as ie,r as ae,t as oe,u as f}from"./DSaWoFHS.js";function se(e,t){try{return t in e}catch{return!1}}var p=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:h(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=m(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function ce(e){if(typeof e==`string`)return new p(e);if(le(e))return e;let t=new p(e.message??e.statusMessage??``,{cause:e.cause||e});if(se(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=h(e.statusCode,t.statusCode):e.status&&(t.statusCode=h(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;m(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function le(e){return e?.constructor?.__h3_error__===!0}var ue=/[^\u0009\u0020-\u007E]/g;function m(e=``){return e.replace(ue,``)}function h(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var de=`__nuxt_error`,g=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,_=e=>{if(g(e))return e;typeof e!=`string`&&e?.statusText&&(e.message??=e.statusText);let t=ce(e??{});return Object.defineProperty(t,de,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t},fe=`https://a.invalid/probe/`,pe=`https://b.invalid/probe/`;function v(e,t=fe){try{return new URL(e,t)}catch{return null}}function y(e){let t=v(e);return!!t&&t.href===v(e,pe)?.href}function b(e){return e[0]!==`/`||e[1]===`/`||e[1]===`\\`?!1:e[1]!==` `&&e[1]!==`
2
2
  `&&e[1]!==`\r`||!y(e)}function x(e){return!!e&&!b(e)&&y(e)}function S(e){if(!e||b(e))return null;let t=v(e.replace(/[\u0000-\u001F\u007F\s]+/g,``));for(;t?.protocol===`view-source:`;)t=v(t.pathname);return t?re(t.protocol)?t.protocol:null:``}function me(e){return S(e)===null?e:null}var he=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function C(e){return he.test(e)}var ge=Symbol(`layout-meta`),w=Symbol(`route`),T=t({docsBase:i,reporters:a}),E=(()=>n()?.$router);function _e(e){let t=e;return t.parent??t.subs?.sub}function ve(e){let t=e.scope,n=u();for(;n;){if(n===t)return!0;n=_e(n)}return!1}var ye=(()=>{if(s()){let e=l();if(!e||ve(e))return c(w,n()._route)}return n()._route});function be(e){return e}var xe=()=>{try{if(n()._processingMiddleware)return!0}catch{return!1}return!1},Se=(e,t)=>{e||=`/`;let i=typeof e==`string`||`path`in e,a=typeof e==`string`?e:`path`in e?D(e):E().resolve(e).href;if(t?.open){let e=S(a);if(e!==null)throw T.NUXT_E2002({toPath:a,protocol:e});let n=i&&!x(a)&&!a.startsWith(`#`)?te(r().app.baseURL,a):a,{target:o=`_blank`,windowFeatures:s={}}=t.open,c=[];for(let[e,t]of Object.entries(s))t!==void 0&&c.push(`${e.toLowerCase()}=${t}`);return open(n,o,c.join(`, `)),Promise.resolve()}let o=x(a),s=t?.external||o;if(s){if(!t?.external)throw T.NUXT_E2001({toPath:a});let e=S(a);if(e!==null)throw T.NUXT_E2002({toPath:a,protocol:e})}let c=xe();if(!s&&c){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=f(e);return{path:t,...n&&{query:ne(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let l=E(),u=n();if(s)return u._scope.stop(),t?.replace?location.replace(a):location.href=a,c?u.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let d=typeof e==`string`?O(e):e;return t?.replace?l.replace(d):l.push(d)};function D(e){return ie(e.path||``,e.query||{})+(e.hash||``)}function O(e){let t=f(e);return ke(ae(t.pathname))+t.search+t.hash}var Ce=/%7C/g,we=/%5B/g,Te=/%5D/g,Ee=/%252F/gi,De=/#/g,Oe=/\?/g;function ke(e){return encodeURI(e).replace(Ce,`|`).replace(we,`[`).replace(Te,`]`).replace(De,`%23`).replace(Oe,`%3F`).replace(Ee,`%2F`)}var k=()=>d(n().payload,`error`),A=e=>{let t=_(e);try{let e=k();n().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Ae=(t,n)=>{let r=t.callHook(`app:error`,_(n));return e.NUXT_E1012({userAgent:navigator.userAgent,cause:n}),r},je=async(e,t)=>{C(navigator.userAgent)?await Ae(e,t):await e.runWithContext(()=>A(t))},Me=async(e={})=>{let t=n(),r=k();t.callHook(`app:error:cleared`,e),e.redirect&&await E().replace(e.redirect),r.value=void 0},Ne=typeof document<`u`;function j(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Pe(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&j(e.default)}var M=Object.assign;function Fe(e,t){let n={};for(let r in t){let i=t[r];n[r]=N(i)?i.map(e):e(i)}return n}var Ie=()=>{},N=Array.isArray;function Le(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var P=/#/g,Re=/&/g,ze=/\//g,Be=/=/g,Ve=/\?/g,F=/\+/g,He=/%5B/g,Ue=/%5D/g,I=/%5E/g,We=/%60/g,L=/%7B/g,Ge=/%7C/g,R=/%7D/g,Ke=/%20/g;function z(e){return e==null?``:encodeURI(``+e).replace(Ge,`|`).replace(He,`[`).replace(Ue,`]`)}function qe(e){return z(e).replace(L,`{`).replace(R,`}`).replace(I,`^`)}function B(e){return z(e).replace(F,`%2B`).replace(Ke,`+`).replace(P,`%23`).replace(Re,`%26`).replace(We,"`").replace(L,`{`).replace(R,`}`).replace(I,`^`)}function Je(e){return B(e).replace(Be,`%3D`)}function Ye(e){return z(e).replace(P,`%23`).replace(Ve,`%3F`)}function Xe(e){return Ye(e).replace(ze,`%2F`)}function V(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ze=/\/$/,Qe=e=>e.replace(Ze,``);function $e(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=it(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:V(o)}}function et(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function tt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function nt(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&H(t.matched[r],n.matched[i])&&U(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function H(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function U(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rt(e[n],t[n]))return!1;return!0}function rt(e,t){return N(e)?W(e,t):N(t)?W(t,e):e?.valueOf()===t?.valueOf()}function W(e,t){return N(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function it(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},at=function(e){return e.pop=`pop`,e.push=`push`,e}({}),ot=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function st(e){if(!e){if(Ne){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Qe(e)}var ct=/^[^#]+#/;function lt(e,t){return e.replace(ct,`#`)+t}function ut(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var dt=()=>({left:window.scrollX,top:window.scrollY});function ft(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ut(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function pt(e,t){return(history.state?history.state.position-t:-1)+e}var K=new Map;function mt(e,t){K.set(e,t)}function ht(e){let t=K.get(e);return K.delete(e),t}function gt(e){return typeof e==`string`||e&&typeof e==`object`}function _t(e){return typeof e==`string`||typeof e==`symbol`}var q=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),J=Symbol(``),vt=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});q.MATCHER_NOT_FOUND,q.NAVIGATION_GUARD_REDIRECT,q.NAVIGATION_ABORTED,q.NAVIGATION_CANCELLED,q.NAVIGATION_DUPLICATED;function Y(e,t){return M(Error(),{type:e,[J]:!0},t)}function yt(e,t){return e instanceof Error&&J in e&&(t==null||!!(e.type&t))}function bt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(F,` `),i=r.indexOf(`=`),a=V(i<0?r:r.slice(0,i)),o=i<0?null:V(r.slice(i+1));if(a in t){let e=t[a];N(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function xt(e){let t=``;for(let n in e){let r=e[n];n=Je(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(N(r)?r.map(e=>e&&B(e)):[r&&B(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function St(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=N(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Ct=Symbol(``),wt=Symbol(``),Tt=Symbol(``),Et=Symbol(``),Dt=Symbol(``);function Ot(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Y(q.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):gt(e)?c(Y(q.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function kt(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(j(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Pe(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}}return a}function At(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>H(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>H(e,s))||i.push(s))}return[n,r,i]}var jt=(e,t)=>({default:()=>e?o(ee,e===!0?{}:e,t):t.default?.()}),Mt=/(:\w+)\([^)]+\)/g,Nt=/(:\w+)[?+*]/g,Pt=/:\w+/g;function Z(e){let t=e?.meta.key??e.path.replace(Mt,`$1`).replace(Nt,`$1`).replace(Pt,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Ft(e,t){return e===t||t===G?!1:Z(e)!==Z(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}function It(e){return!1}var Lt=/^[a-z][a-z0-9-]*$/i;function Rt(e,t){return e&&Lt.test(e)?e:t}function Q(e){return Array.isArray(e)?e:[e]}function zt(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Q(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Q(n.onBeforeLeave):void 0});return oe(...t)}function Bt(e){e[`~transitionPromise`]||=new Promise(t=>{e[`~transitionFinish`]=t})}function Vt(e){e[`~transitionFinish`]?.(),delete e[`~transitionFinish`],delete e[`~transitionPromise`]}var $=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ht=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ut=e=>{let t=n();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{$(()=>e())}):$(()=>e())};export{Ae as $,Ne as A,St as B,Xe as C,pt as D,ht as E,H as F,Dt as G,$e as H,Ct as I,xt as J,mt as K,Le as L,_t as M,nt as N,X as O,U as P,wt as Q,Ie as R,qe as S,kt as T,Et as U,bt as V,Tt as W,tt as X,et as Y,Ot as Z,M as _,_ as _t,zt as a,O as at,Y as b,Ft as c,ye as ct,q as d,ge as dt,je as et,ot as f,w as ft,Fe as g,me as gt,G as h,b as ht,Vt as i,be as it,yt as j,N as k,It as l,E as lt,at as m,C as mt,Ht as n,A as nt,Bt as o,Se as ot,vt as p,x as pt,ft as q,$ as r,k as rt,jt as s,D as st,Ut as t,Me as tt,Rt as u,T as ut,dt as v,g as vt,At as w,V as x,lt as y,st as z};
@@ -1 +1 @@
1
- import{On as e,Zn as t,g as n,mt as r,qt as i,v as a,xt as o}from"./DZo3dYLJ.js";import{r as s}from"./oXSDGTSr.js";import{n as c,t as l}from"./Baq-Hrpf.js";import{t as u}from"./ChJuu-Ky.js";var d={base:[`text-primary border-b border-transparent hover:border-primary focus-visible:border-transparent font-medium focus-visible:rounded-xs outline-primary/25 focus-visible:outline-3 focus-visible:has-[>code]:outline-0 has-[>code]:border-b-0 [&>code]:border-dashed [&>code]:outline-primary/25 focus-visible:[&>code]:outline-3 hover:[&>code]:border-primary hover:[&>code]:text-primary focus-visible:[&>code]:border-primary focus-visible:[&>code]:text-primary`,`transition-colors [&>code]:transition-colors`]},f={__name:`ProseA`,props:{href:{type:String,required:!1},target:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){let p=c(`prose.a`,f),m=s(),h=n(()=>l({extend:d,...m.ui?.prose?.a||{}}));return(n,s)=>(r(),a(u,{href:e(p).href,target:e(p).target,class:t(h.value({class:[e(p).ui?.base,e(p).class]})),raw:``},{default:i(()=>[o(n.$slots,`default`)]),_:3},8,[`href`,`target`,`class`]))}};export{f as default};
1
+ import{On as e,Zn as t,g as n,mt as r,qt as i,v as a,xt as o}from"./DZo3dYLJ.js";import{r as s}from"./Csqgy925.js";import{n as c,t as l}from"./6gFtTBwm.js";import{t as u}from"./BgLeKwx0.js";var d={base:[`text-primary border-b border-transparent hover:border-primary focus-visible:border-transparent font-medium focus-visible:rounded-xs outline-primary/25 focus-visible:outline-3 focus-visible:has-[>code]:outline-0 has-[>code]:border-b-0 [&>code]:border-dashed [&>code]:outline-primary/25 focus-visible:[&>code]:outline-3 hover:[&>code]:border-primary hover:[&>code]:text-primary focus-visible:[&>code]:border-primary focus-visible:[&>code]:text-primary`,`transition-colors [&>code]:transition-colors`]},f={__name:`ProseA`,props:{href:{type:String,required:!1},target:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){let p=c(`prose.a`,f),m=s(),h=n(()=>l({extend:d,...m.ui?.prose?.a||{}}));return(n,s)=>(r(),a(u,{href:e(p).href,target:e(p).target,class:t(h.value({class:[e(p).ui?.base,e(p).class]})),raw:``},{default:i(()=>[o(n.$slots,`default`)]),_:3},8,[`href`,`target`,`class`]))}};export{f as default};
@@ -1 +1 @@
1
- import{a as e,o as t,p as n,s as r}from"./u88eXCXy.js";import{B as i,On as a,St as o,ct as s,g as c,it as l,k as u,vn as d,xn as f}from"./DZo3dYLJ.js";import{c as p,g as m,i as h,l as g,m as _}from"./DSaWoFHS.js";import{at as v,c as y,gt as b,h as x,ht as S,lt as C,n as w,ot as T,pt as E,r as D,st as O,t as k}from"./BuBpFHLu.js";var A={scrollBehavior(e,n,r){let i=t(),a=C(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:j(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===x?M(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{a.currentRoute.value.fullPath===e.fullPath?t(M(e,n,r,o)):t(!1)})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function j(e){let t=document.getElementById(e.slice(1));return t?(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0):0}function M(e,t,n,r){return n||(e.hash?{el:e.hash,top:j(e.hash),behavior:y(e,t)?r:`instant`}:{left:0,top:0})}var N={hashMode:!1,scrollBehaviorType:`auto`,sensitive:!1,...A},P=/2g/;function F(){let e=navigator.connection;return!e||!e.saveData&&!P.test(e.effectiveType||``)}function I(e){let{pathname:t,search:n}=new URL(e,window.location.href);return t+n}function L(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}function R(e){return Promise.all(e.map(e=>{let t=e.components?.default;return typeof t==`function`?Promise.resolve(t()).catch(()=>{}):void 0}))}function z(t,n){let{fullPath:r,path:i,matched:a}=n.resolve(t);if(!a.length)return;let o=e()?._prefetch;o?o.schedule({key:`route:${i}`,priority:`route`,scope:`navigation`,group:I(r),run:e=>e.aborted?void 0:R(a)}):R(a)}var B=(...e)=>e.find(e=>e!==void 0);function V(e){let n=e.componentName||`NuxtLink`;function m(e){return typeof e==`string`&&e.startsWith(`#`)}function h(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return U(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:U(a,i)}}function _(t){let n=C(),i=r(),o=n.options?.history?.createHref??(e=>p(i.app.baseURL,e)),s=c(()=>!!a(t.target)&&a(t.target)!==`_self`),l=c(()=>{let e=a(t.to)||a(t.href)||``;return typeof e==`string`&&E(e)}),u=c(()=>{if(a(t.external))return!0;let e=a(t.to)||a(t.href)||``;return typeof e==`object`?!1:e===``||l.value}),d=c(()=>{let e=a(t.to)||a(t.href)||``;return u.value?e:h(e,n.resolve,a(t.trailingSlash))}),f=c(()=>{let r=a(t.trailingSlash)??e.trailingSlash;if(!d.value||l.value||m(d.value)){let e=d.value;return typeof e==`string`?b(e):e}if(u.value){let e=typeof d.value==`object`&&`path`in d.value?O(d.value):d.value,t=typeof e==`object`?n.resolve(e).href:e,i=typeof t==`string`?b(t):t;return i===null?null:U(i,r)}return typeof d.value==`object`?n.resolve(d.value)?.href??null:U(S(d.value)?o(d.value):n.resolve(d.value).href,r)});return{to:d,hasTarget:s,isAbsoluteUrl:l,isExternal:u,href:f,async navigate(e){f.value!==null&&await T(f.value,{replace:a(t.replace),external:u.value||s.value})}}}function y(e){let t=C(),n=_(e),r=o(`RouterLink`),i=r&&typeof r!=`string`?r.useLink:void 0,s=n.isExternal.value?void 0:i?.({...e,to:n.to,viewTransition:a(e.viewTransition)});return{...n,isActive:s?.isActive??c(()=>n.to.value===t.currentRoute.value.path),isExactActive:s?.isExactActive??c(()=>n.to.value===t.currentRoute.value.path),route:s?.route??c(()=>t.resolve(n.to.value))}}return u({name:n,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:y,setup(n,{slots:r}){let a=C(),c=o(`RouterLink`),{to:u,href:p,navigate:h,isExternal:y,hasTarget:x,isAbsoluteUrl:S}=_(n),T=f(!1),E=d(null),A=e=>{E.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function j(t){return typeof n.prefetchOn==`string`?n.prefetchOn===t:n.prefetchOn?.[t]??e.prefetchOn?.[t]}function M(){return!!((n.prefetch??e.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&F())}function N(e){return!!(!T.value&&j(e)&&M())}function P(){let e=typeof u.value==`string`?u.value:y.value?O(u.value):a.resolve(u.value).fullPath;return y.value?new URL(e,window.location.href).href:e}function L(){T.value?y.value||t()._prefetch?.promote(I(P())):j(`interaction`)&&R()}async function R(e=t()){if(T.value||p.value===null)return;T.value=!0;let n=P();await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!y.value&&!x.value&&z(u.value,a)])}if(!n.custom&&N(`visibility`)){let e=t(),n,r=null;s(()=>{let t=W();k(()=>{n=D(()=>{E?.value?.tagName&&(r=t.observe(E.value,async()=>{r?.(),r=null,await R(e)}))})})}),l(()=>{n&&w(n),r?.(),r=null})}return()=>{let t=n.target||null,o=B(n.noRel?``:n.rel,e.externalRelAttribute,S.value||x.value?`noopener noreferrer`:``)||null,s=e=>({navigate:h,get route(){if(!p.value)return;let e=new URL(p.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return g(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p.value}},rel:o,target:t,isExternal:y.value||x.value,isActive:!1,isExactActive:!1,...e,href:typeof e?.href==`string`?b(e.href):p.value,prefetch:R,prefetched:T.value,shouldPrefetch:N});if(!y.value&&!x.value&&!m(u.value)){let t={ref:A,to:u.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||((j(`interaction`)||T.value)&&M()&&(t.onPointerenter=L,t.onFocus=L,t.onPointerdown=L),T.value&&(t.class=n.prefetchedClass||e.prefetchedClass),t.rel=n.rel||void 0),i(c,t,n.custom&&r.default?{default:e=>r.default(s(e))}:r.default)}return n.custom?r.default?r.default(s()):null:i(`a`,{ref:E,href:p.value||null,rel:o,target:t,onClick:async e=>{if(!(y.value||x.value)){e.preventDefault();try{let e=v(p.value??``);return await(n.replace?a.replace(e):a.push(e))}finally{if(m(u.value)){let e=u.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},r.default?.())}}})}var H=V(n);function U(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?_:m;return h(e)&&!e.startsWith(`http`)?e:n(e,!0)}function W(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}export{F as a,z as i,W as n,I as o,L as r,N as s,H as t};
1
+ import{a as e,o as t,p as n,s as r}from"./D2O8Q8x9.js";import{B as i,On as a,St as o,ct as s,g as c,it as l,k as u,vn as d,xn as f}from"./DZo3dYLJ.js";import{c as p,g as m,i as h,l as g,m as _}from"./DSaWoFHS.js";import{at as v,c as y,gt as b,h as x,ht as S,lt as C,n as w,ot as T,pt as E,r as D,st as O,t as k}from"./C7K0R7F-.js";var A={scrollBehavior(e,n,r){let i=t(),a=C(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:j(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===x?M(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{a.currentRoute.value.fullPath===e.fullPath?t(M(e,n,r,o)):t(!1)})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function j(e){let t=document.getElementById(e.slice(1));return t?(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0):0}function M(e,t,n,r){return n||(e.hash?{el:e.hash,top:j(e.hash),behavior:y(e,t)?r:`instant`}:{left:0,top:0})}var N={hashMode:!1,scrollBehaviorType:`auto`,sensitive:!1,...A},P=/2g/;function F(){let e=navigator.connection;return!e||!e.saveData&&!P.test(e.effectiveType||``)}function I(e){let{pathname:t,search:n}=new URL(e,window.location.href);return t+n}function L(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}function R(e){return Promise.all(e.map(e=>{let t=e.components?.default;return typeof t==`function`?Promise.resolve(t()).catch(()=>{}):void 0}))}function z(t,n){let{fullPath:r,path:i,matched:a}=n.resolve(t);if(!a.length)return;let o=e()?._prefetch;o?o.schedule({key:`route:${i}`,priority:`route`,scope:`navigation`,group:I(r),run:e=>e.aborted?void 0:R(a)}):R(a)}var B=(...e)=>e.find(e=>e!==void 0);function V(e){let n=e.componentName||`NuxtLink`;function m(e){return typeof e==`string`&&e.startsWith(`#`)}function h(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return U(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:U(a,i)}}function _(t){let n=C(),i=r(),o=n.options?.history?.createHref??(e=>p(i.app.baseURL,e)),s=c(()=>!!a(t.target)&&a(t.target)!==`_self`),l=c(()=>{let e=a(t.to)||a(t.href)||``;return typeof e==`string`&&E(e)}),u=c(()=>{if(a(t.external))return!0;let e=a(t.to)||a(t.href)||``;return typeof e==`object`?!1:e===``||l.value}),d=c(()=>{let e=a(t.to)||a(t.href)||``;return u.value?e:h(e,n.resolve,a(t.trailingSlash))}),f=c(()=>{let r=a(t.trailingSlash)??e.trailingSlash;if(!d.value||l.value||m(d.value)){let e=d.value;return typeof e==`string`?b(e):e}if(u.value){let e=typeof d.value==`object`&&`path`in d.value?O(d.value):d.value,t=typeof e==`object`?n.resolve(e).href:e,i=typeof t==`string`?b(t):t;return i===null?null:U(i,r)}return typeof d.value==`object`?n.resolve(d.value)?.href??null:U(S(d.value)?o(d.value):n.resolve(d.value).href,r)});return{to:d,hasTarget:s,isAbsoluteUrl:l,isExternal:u,href:f,async navigate(e){f.value!==null&&await T(f.value,{replace:a(t.replace),external:u.value||s.value})}}}function y(e){let t=C(),n=_(e),r=o(`RouterLink`),i=r&&typeof r!=`string`?r.useLink:void 0,s=n.isExternal.value?void 0:i?.({...e,to:n.to,viewTransition:a(e.viewTransition)});return{...n,isActive:s?.isActive??c(()=>n.to.value===t.currentRoute.value.path),isExactActive:s?.isExactActive??c(()=>n.to.value===t.currentRoute.value.path),route:s?.route??c(()=>t.resolve(n.to.value))}}return u({name:n,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:y,setup(n,{slots:r}){let a=C(),c=o(`RouterLink`),{to:u,href:p,navigate:h,isExternal:y,hasTarget:x,isAbsoluteUrl:S}=_(n),T=f(!1),E=d(null),A=e=>{E.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function j(t){return typeof n.prefetchOn==`string`?n.prefetchOn===t:n.prefetchOn?.[t]??e.prefetchOn?.[t]}function M(){return!!((n.prefetch??e.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&F())}function N(e){return!!(!T.value&&j(e)&&M())}function P(){let e=typeof u.value==`string`?u.value:y.value?O(u.value):a.resolve(u.value).fullPath;return y.value?new URL(e,window.location.href).href:e}function L(){T.value?y.value||t()._prefetch?.promote(I(P())):j(`interaction`)&&R()}async function R(e=t()){if(T.value||p.value===null)return;T.value=!0;let n=P();await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!y.value&&!x.value&&z(u.value,a)])}if(!n.custom&&N(`visibility`)){let e=t(),n,r=null;s(()=>{let t=W();k(()=>{n=D(()=>{E?.value?.tagName&&(r=t.observe(E.value,async()=>{r?.(),r=null,await R(e)}))})})}),l(()=>{n&&w(n),r?.(),r=null})}return()=>{let t=n.target||null,o=B(n.noRel?``:n.rel,e.externalRelAttribute,S.value||x.value?`noopener noreferrer`:``)||null,s=e=>({navigate:h,get route(){if(!p.value)return;let e=new URL(p.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return g(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p.value}},rel:o,target:t,isExternal:y.value||x.value,isActive:!1,isExactActive:!1,...e,href:typeof e?.href==`string`?b(e.href):p.value,prefetch:R,prefetched:T.value,shouldPrefetch:N});if(!y.value&&!x.value&&!m(u.value)){let t={ref:A,to:u.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||((j(`interaction`)||T.value)&&M()&&(t.onPointerenter=L,t.onFocus=L,t.onPointerdown=L),T.value&&(t.class=n.prefetchedClass||e.prefetchedClass),t.rel=n.rel||void 0),i(c,t,n.custom&&r.default?{default:e=>r.default(s(e))}:r.default)}return n.custom?r.default?r.default(s()):null:i(`a`,{ref:E,href:p.value||null,rel:o,target:t,onClick:async e=>{if(!(y.value||x.value)){e.preventDefault();try{let e=v(p.value??``);return await(n.replace?a.replace(e):a.push(e))}finally{if(m(u.value)){let e=u.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},r.default?.())}}})}var H=V(n);function U(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?_:m;return h(e)&&!e.startsWith(`http`)?e:n(e,!0)}function W(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}export{F as a,z as i,W as n,I as o,L as r,N as s,H as t};
@@ -1 +1 @@
1
- import{On as e,Zn as t,b as n,g as r,mt as i,xt as a}from"./DZo3dYLJ.js";import{r as o}from"./oXSDGTSr.js";import{n as s,t as c}from"./Baq-Hrpf.js";var l={base:``},u={__name:`ProseEm`,props:{class:{type:String,required:!1},ui:{type:Object,required:!1}},setup(u){let d=s(`prose.em`,u),f=o(),p=r(()=>c({extend:l,...f.ui?.prose?.em||{}}));return(r,o)=>(i(),n(`em`,{class:t(p.value({class:[e(d).ui?.base,e(d).class]}))},[a(r.$slots,`default`)],2))}};export{u as default};
1
+ import{On as e,Zn as t,b as n,g as r,mt as i,xt as a}from"./DZo3dYLJ.js";import{r as o}from"./Csqgy925.js";import{n as s,t as c}from"./6gFtTBwm.js";var l={base:``},u={__name:`ProseEm`,props:{class:{type:String,required:!1},ui:{type:Object,required:!1}},setup(u){let d=s(`prose.em`,u),f=o(),p=r(()=>c({extend:l,...f.ui?.prose?.em||{}}));return(r,o)=>(i(),n(`em`,{class:t(p.value({class:[e(d).ui?.base,e(d).class]}))},[a(r.$slots,`default`)],2))}};export{u as default};
@@ -1 +1 @@
1
- import{On as e,Zn as t,g as n,mt as r,v as i}from"./DZo3dYLJ.js";import{r as a}from"./oXSDGTSr.js";import{n as o,t as s}from"./Baq-Hrpf.js";import{t as c}from"./D2zrOcWn.js";var l={base:`size-4 shrink-0 align-sub`},u={__name:`ProseIcon`,props:{name:{type:String,required:!0},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(u){let d=o(`prose.icon`,u),f=a(),p=n(()=>s({extend:l,...f.ui?.prose?.icon||{}}));return(n,a)=>(r(),i(c,{name:e(d).name,class:t(p.value({class:[e(d).ui?.base,e(d).class]}))},null,8,[`name`,`class`]))}};export{u as default};
1
+ import{On as e,Zn as t,g as n,mt as r,v as i}from"./DZo3dYLJ.js";import{r as a}from"./Csqgy925.js";import{n as o,t as s}from"./6gFtTBwm.js";import{t as c}from"./DrZpfjBq.js";var l={base:`size-4 shrink-0 align-sub`},u={__name:`ProseIcon`,props:{name:{type:String,required:!0},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(u){let d=o(`prose.icon`,u),f=a(),p=n(()=>s({extend:l,...f.ui?.prose?.icon||{}}));return(n,a)=>(r(),i(c,{name:e(d).name,class:t(p.value({class:[e(d).ui?.base,e(d).class]}))},null,8,[`name`,`class`]))}};export{u as default};
@@ -1 +1 @@
1
- import{s as e}from"./u88eXCXy.js";import{On as t,Zn as n,b as r,g as i,mt as a,xt as o}from"./DZo3dYLJ.js";import{r as s}from"./oXSDGTSr.js";import{n as c,t as l}from"./Baq-Hrpf.js";var u={slots:{base:`text-4xl text-highlighted font-bold mb-8 scroll-mt-[calc(45px+var(--ui-header-height))] lg:scroll-mt-(--ui-header-height)`,link:`inline-flex items-center gap-2`}},d=[`id`],f=[`href`],p={__name:`ProseH1`,props:{id:{type:String,required:!1},anchor:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(p){let m=c(`prose.h1`,p),h=s(),{headings:g}=e().public?.mdc||{},_=i(()=>l({extend:u,...h.ui?.prose?.h1||{}})()),v=i(()=>m.id&&(m.anchor??(typeof g?.anchorLinks==`boolean`?g.anchorLinks:g?.anchorLinks?.h1)??!1));return(e,i)=>(a(),r(`h1`,{id:t(m).id,class:n(_.value.base({class:[t(m).ui?.base,t(m).class]}))},[t(m).id&&v.value?(a(),r(`a`,{key:0,href:`#${t(m).id}`,class:n(_.value.link({class:t(m).ui?.link}))},[o(e.$slots,`default`)],10,f)):o(e.$slots,`default`,{},void 0,void 0,1)],10,d))}};export{p as default};
1
+ import{s as e}from"./D2O8Q8x9.js";import{On as t,Zn as n,b as r,g as i,mt as a,xt as o}from"./DZo3dYLJ.js";import{r as s}from"./Csqgy925.js";import{n as c,t as l}from"./6gFtTBwm.js";var u={slots:{base:`text-4xl text-highlighted font-bold mb-8 scroll-mt-[calc(45px+var(--ui-header-height))] lg:scroll-mt-(--ui-header-height)`,link:`inline-flex items-center gap-2`}},d=[`id`],f=[`href`],p={__name:`ProseH1`,props:{id:{type:String,required:!1},anchor:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(p){let m=c(`prose.h1`,p),h=s(),{headings:g}=e().public?.mdc||{},_=i(()=>l({extend:u,...h.ui?.prose?.h1||{}})()),v=i(()=>m.id&&(m.anchor??(typeof g?.anchorLinks==`boolean`?g.anchorLinks:g?.anchorLinks?.h1)??!1));return(e,i)=>(a(),r(`h1`,{id:t(m).id,class:n(_.value.base({class:[t(m).ui?.base,t(m).class]}))},[t(m).id&&v.value?(a(),r(`a`,{key:0,href:`#${t(m).id}`,class:n(_.value.link({class:t(m).ui?.link}))},[o(e.$slots,`default`)],10,f)):o(e.$slots,`default`,{},void 0,void 0,1)],10,d))}};export{p as default};