@coffer-org/web 1.6.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/assets/ExtendReasonInfo-2xj7V0H2.js +1 -0
  2. package/dist/assets/{GeoMap-Gfe3Mxlk.js → GeoMap-BMxOWl2s.js} +1 -1
  3. package/dist/assets/MarkdownEditor-CTLTW3oD.js +1060 -0
  4. package/dist/assets/{NewRecordView-DqJNxHM0.js → NewRecordView-pYJnrERV.js} +1 -1
  5. package/dist/assets/{NoMac-D7iyE4U0.js → NoMac-Bs6G_u9v.js} +1 -1
  6. package/dist/assets/{PageBody-CvuReTKD.js → PageBody-QzKQtJfF.js} +1 -1
  7. package/dist/assets/{PluginSettingsPage-BiBoejjn.js → PluginSettingsPage-mnOY76PP.js} +1 -1
  8. package/dist/assets/{ScanSummary-BtTfSAGX.js → ScanSummary-CaSVAMkI.js} +1 -1
  9. package/dist/assets/{SettingsForm-D9kBgf6H.js → SettingsForm-CWhHJOJt.js} +1 -1
  10. package/dist/assets/SettingsPage-DV2d5wUU.js +2 -0
  11. package/dist/assets/Toolbar-S4-Gmm9L.js +3 -0
  12. package/dist/assets/{api-j5etRnzW.js → api-V98HaFMa.js} +1 -1
  13. package/dist/assets/{auth-context-zE-2rDEl.js → auth-context-BlvZgasO.js} +1 -1
  14. package/dist/assets/button-VZuZjj-j.js +5 -0
  15. package/dist/assets/{chunk-KS7C4IRE-B1_Zk64s.js → chunk-KS7C4IRE-dy2r3JTy.js} +1 -1
  16. package/dist/assets/{data-size-DGgafqIa.js → data-size-DCGcE2iT.js} +1 -1
  17. package/dist/assets/{dist-nHZzrtBn.js → dist-BNXMEKVs.js} +1 -1
  18. package/dist/assets/{dist-D0lzj0II.js → dist-BNur_jh6.js} +1 -1
  19. package/dist/assets/{dist-B02SqOKT.js → dist-ByXt-qy32.js} +1 -1
  20. package/dist/assets/{dist-0L0REEL4.js → dist-CFdrMgLX.js} +1 -1
  21. package/dist/assets/dist-CJvyz0jt.js +1 -0
  22. package/dist/assets/dist-CZA4BBQN.js +11 -0
  23. package/dist/assets/dist-Cnq8rabN.js +23 -0
  24. package/dist/assets/dist-DIdoc5C5.js +1 -0
  25. package/dist/assets/{dist-C9iafu0r.js → dist-DfIinXjG.js} +1 -1
  26. package/dist/assets/{dist-BRl6D2sz.js → dist-DgQ7xbd_.js} +1 -1
  27. package/dist/assets/{dist-B3teaDxf.js → dist-DjjCJQor.js} +1 -1
  28. package/dist/assets/dist-Dn87YmtR.js +1 -0
  29. package/dist/assets/dist-mtKKRYXL.js +9 -0
  30. package/dist/assets/{dist-mpdotBBM.js → dist-rZsvLEhc.js} +1 -1
  31. package/dist/assets/{dist-DnLPZbvG.js → dist-tEJ-k59b.js} +1 -1
  32. package/dist/assets/esm-Cmdu3PQ5.js +1 -0
  33. package/dist/assets/esm-DGg7gyTi.js +24 -0
  34. package/dist/assets/{extend-DrbW8fXY.js → extend-DDZLGxKJ.js} +1 -1
  35. package/dist/assets/field-frame-CESVVP3h.js +1 -0
  36. package/dist/assets/fields-B4fdbc1_.js +64 -0
  37. package/dist/assets/{index-D5IQ3-ik.js → index-DeSFnSeF.js} +62 -87
  38. package/dist/assets/index.dom-CA5INa_J.js +1 -0
  39. package/dist/assets/json-DfDguq5e.js +41 -0
  40. package/dist/assets/{jsx-dev-runtime-CSfA-jUb.js → jsx-dev-runtime-DeBf9dJw.js} +1 -1
  41. package/dist/assets/{jsx-runtime-JUshM5qe.js → jsx-runtime-DhzTdv_T.js} +1 -1
  42. package/dist/assets/lib-Bt_xGT1S.js +1 -0
  43. package/dist/assets/lib-DUUz5X6c.js +1 -0
  44. package/dist/assets/objectWithoutPropertiesLoose-DBYSo7QU.js +1 -0
  45. package/dist/assets/{react-n93t21jb.js → react-BKp0oIqV.js} +1 -1
  46. package/dist/assets/shared-Dn2tWEOY.js +1 -0
  47. package/dist/assets/{shelf-iRNXQLvo.js → shelf-e7xL1R3N.js} +1 -1
  48. package/dist/assets/{src-Ds0SdDJ_.js → src-BB5pAQoq.js} +1 -1
  49. package/dist/assets/src-BBTJclQ3.js +1 -0
  50. package/dist/assets/{src-DrOECW8l.js → src-BEw_wZX0.js} +1 -1
  51. package/dist/assets/{src-Dh23dKOF.js → src-BKpM04ou.js} +1 -1
  52. package/dist/assets/{src-DBWRsAkM.js → src-BNqZqACY.js} +1 -1
  53. package/dist/assets/src-BYe9NBzz.js +1 -0
  54. package/dist/assets/{src-Coppd4mf.js → src-BylCqt8_.js} +1 -1
  55. package/dist/assets/src-CB26t1uZ.js +1 -0
  56. package/dist/assets/{src-CVrkkuph.js → src-CQcwtQ4u.js} +1 -1
  57. package/dist/assets/{src-C76fLvMo.js → src-CSLTj9M0.js} +1 -1
  58. package/dist/assets/{src-DEDH6rgD.js → src-CVMB8d9V.js} +1 -1
  59. package/dist/assets/{src-AaMeWnPg.js → src-CW-yI1QF.js} +1 -1
  60. package/dist/assets/{src-CwtznTUh.js → src-Cldq12DB.js} +1 -1
  61. package/dist/assets/{src-YSzd3JaE.js → src-Cq7iaGwG.js} +1 -1
  62. package/dist/assets/src-CrIOZO6Q.js +1 -0
  63. package/dist/assets/{src-BBa4IgZu.js → src-D6YMn8QE.js} +1 -1
  64. package/dist/assets/{src-BxsItvRt.js → src-DlE7vhyV.js} +1 -1
  65. package/dist/assets/{src-Cp_tlXaj2.js → src-Dm6EOjlD2.js} +1 -1
  66. package/dist/assets/{src-kp91nAOQ.js → src-EnowVU3i.js} +1 -1
  67. package/dist/assets/{src-DdtX_tOa.js → src-R62BabNC.js} +1 -1
  68. package/dist/assets/{src-BkfNNzHS.js → src-iQwVT5tJ.js} +1 -1
  69. package/dist/assets/{src-P7xgnaCz.js → src-juXm-tHq.js} +1 -1
  70. package/dist/assets/{src-BfR4XKOl.js → src-w4NORKjp.js} +2 -2
  71. package/dist/assets/{ui-uxAWrOIV.js → ui-6KU4Adjx.js} +2 -2
  72. package/dist/index.html +21 -24
  73. package/dist-vendor/i18next.js +1 -1
  74. package/dist-vendor/jsx-runtime.js +1 -1
  75. package/dist-vendor/react-dom.js +3 -3
  76. package/dist-vendor/{react-CdP73OPv.js → react-yLkyEioL.js} +2 -2
  77. package/dist-vendor/react.js +1 -1
  78. package/dist-vendor/web-sdk.js +224 -210
  79. package/package.json +5 -6
  80. package/dist/assets/ExtendReasonInfo-C9TZgX6o.js +0 -1
  81. package/dist/assets/MarkdownEditor-BRFu6dnQ.js +0 -1057
  82. package/dist/assets/SettingsPage-CSzqxAX9.js +0 -2
  83. package/dist/assets/Toolbar-DFtG8IB3.js +0 -2
  84. package/dist/assets/button-Dlm2GmQs.js +0 -5
  85. package/dist/assets/development-ChLInqDF.js +0 -1
  86. package/dist/assets/dist-CdqdWApy.js +0 -1
  87. package/dist/assets/dist-DCRaLcSL.js +0 -11
  88. package/dist/assets/dist-DKL_233B.js +0 -1
  89. package/dist/assets/dist-DdxaiEI9.js +0 -23
  90. package/dist/assets/dist-DkJnaE0X.js +0 -1
  91. package/dist/assets/dist-TJOGNsUr.js +0 -9
  92. package/dist/assets/dist-qu79xOH5.js +0 -1
  93. package/dist/assets/esm-BNZSV1P6.js +0 -24
  94. package/dist/assets/esm-DCMdnC8o.js +0 -1
  95. package/dist/assets/field-frame-9VMMov4O.js +0 -1
  96. package/dist/assets/fields-CQxZPdka.js +0 -64
  97. package/dist/assets/json-2IEVhd4i.js +0 -41
  98. package/dist/assets/lib-Co4B8qAy.js +0 -1
  99. package/dist/assets/lib-DqTnDi2O.js +0 -1
  100. package/dist/assets/micromark-extension-gfm-Cu0AwUgc.js +0 -2
  101. package/dist/assets/purify.es-sLXpNpJ5.js +0 -3
  102. package/dist/assets/shared-D0511v9d.js +0 -1
  103. package/dist/assets/src-BGSRFSIw.js +0 -1
  104. package/dist/assets/src-BZoeScha.js +0 -1
  105. package/dist/assets/src-CSK1-7o-.js +0 -1
  106. package/dist/assets/src-GOwr0Acm.js +0 -1
  107. /package/dist/assets/{dist-CJsxDt1W2.js → dist-CJsxDt1W.js} +0 -0
  108. /package/dist/assets/{dist-CUwIxyXc2.js → dist-CUwIxyXc.js} +0 -0
@@ -0,0 +1 @@
1
+ var e=document.createElement(`i`);function t(t){let n=`&`+t+`;`;e.innerHTML=n;let r=e.textContent;return r.charCodeAt(r.length-1)===59&&t!==`semi`?!1:r!==n&&r}export{t};
@@ -0,0 +1,41 @@
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";import{O as n,S as r}from"./button-VZuZjj-j.js";import{a as i,i as a,n as o,o as s,r as c,s as l}from"./dist-DIdoc5C5.js";import{t as u}from"./jsx-runtime-DhzTdv_T.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as v,t as y}from"./floating-ui.dom-BiC1_AXf.js";var b=e(t(),1),x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0});function C(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>((...e)=>t.current?.(...e)),[])}S(C,`useCallbackRef`);var w=u(),T=Object.defineProperty,E=(e,t)=>T(e,`name`,{value:t,configurable:!0}),D=`dismissableLayer.update`,O=`dismissableLayer.pointerDownOutside`,k=`dismissableLayer.focusOutside`,A,j=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),M=b.forwardRef(E(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...f}=e,p=b.useContext(j),[m,h]=b.useState(null),g=m?.ownerDocument??globalThis?.document,[,_]=b.useState({}),v=r(t,h),y=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=x?y.indexOf(x):-1,T=m?y.indexOf(m):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,k=T>=S,M=b.useRef(!1),N=F(e=>{o?.(e),u?.(e),e.defaultPrevented||d?.()},{ownerDocument:g,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:b.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...p.branches].some(t=>t.contains(e));return k&&!t},[p.branches,k])}),P=ee(e=>{if(i&&M.current)return;let t=e.target;[...p.branches].some(e=>e.contains(t))||(l?.(e),u?.(e),e.defaultPrevented||d?.())},g),L=m?T===y.length-1:!1,R=C(e=>{e.key===`Escape`&&(a?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return b.useEffect(()=>{if(L)return g.addEventListener(`keydown`,R,{capture:!0}),()=>g.removeEventListener(`keydown`,R,{capture:!0})},[g,L,R]),b.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(A=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),I(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(m),p.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=A))}},[m,g,n,p]),b.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),I())},[m,p]),b.useEffect(()=>{let e=E(()=>_({}),`handleUpdate`);return document.addEventListener(D,e),()=>document.removeEventListener(D,e)},[]),(0,w.jsx)(c.div,{...f,ref:v,style:{pointerEvents:O?k?`auto`:`none`:void 0,...e.style},onFocusCapture:s(e.onFocusCapture,P.onFocusCapture),onBlurCapture:s(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,N.onPointerDownCapture)})},`DismissableLayer`));function N(){let e=b.useContext(j),[t,n]=b.useState(null);return b.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}E(N,`useDismissableLayerSurface`);var P=E(()=>!0,`IS_TRUE`);function F(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=P}=t,s=C(e),c=b.useRef(!1),l=b.useRef(!1),u=b.useRef(new Map),d=b.useRef(()=>{});return b.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}E(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}E(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}E(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}E(p,`handleInteractionBubble`);let m=E(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||L(O,s,p,{discrete:!0})};if(E(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:E(()=>c.current=!0,`onPointerDownCapture`)}}E(F,`usePointerDownOutside`);function ee(e,t=globalThis?.document){let n=C(e),r=b.useRef(!1);return b.useEffect(()=>{let e=E(e=>{e.target&&!r.current&&L(k,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:E(()=>r.current=!0,`onFocusCapture`),onBlurCapture:E(()=>r.current=!1,`onBlurCapture`)}}E(ee,`useFocusOutside`);function I(){let e=new CustomEvent(D);document.dispatchEvent(e)}E(I,`dispatchUpdate`);function L(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?a(i,o):i.dispatchEvent(o)}E(L,`handleAndDispatchCustomEvent`);var R=Object.defineProperty,z=(e,t)=>R(e,`name`,{value:t,configurable:!0}),B=0,V=null;function te(e){return H(),e.children}z(te,`FocusGuards`);function H(){b.useEffect(()=>{V||={start:U(),end:U()};let{start:e,end:t}=V;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),B++,()=>{B===1&&(V?.start.remove(),V?.end.remove(),V=null),B=Math.max(0,B-1)}},[])}z(H,`useFocusGuards`);function U(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}z(U,`createFocusGuard`);var ne=Object.defineProperty,W=(e,t)=>ne(e,`name`,{value:t,configurable:!0}),re=`focusScope.autoFocusOnMount`,ie=`focusScope.autoFocusOnUnmount`,ae={bubbles:!1,cancelable:!0},oe=b.forwardRef(W(function(e,t){let{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=b.useState(null),d=C(a),f=C(o),p=b.useRef(null),m=r(t,u),h=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:G(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;t!==null&&(l.contains(t)||G(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&G(l)};W(e,`handleFocusIn`),W(t,`handleFocusOut`),W(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,l,h.paused]),b.useEffect(()=>{if(l){pe.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(re,ae);l.addEventListener(re,d),l.dispatchEvent(t),t.defaultPrevented||(se(ge(le(l)),{select:!0}),document.activeElement===e&&G(l))}return()=>{l.removeEventListener(re,d),setTimeout(()=>{let t=new CustomEvent(ie,ae);l.addEventListener(ie,f),l.dispatchEvent(t),t.defaultPrevented||G(e??document.body,{select:!0}),l.removeEventListener(ie,f),pe.remove(h)},0)}}},[l,d,f,h]);let g=b.useCallback(e=>{if(!n&&!i||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,a]=ce(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n&&G(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n&&G(a,{select:!0})):r===t&&e.preventDefault()}},[n,i,h.paused]);return(0,w.jsx)(c.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})},`FocusScope`));function se(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(G(r,{select:t}),document.activeElement!==n)return}W(se,`focusFirst`);function ce(e){let t=le(e);return[ue(t,e),ue(t.reverse(),e)]}W(ce,`getTabbableEdges`);function le(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:W(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},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}W(le,`getTabbableCandidates`);function ue(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):de(r,{upTo:t})))return r}W(ue,`findVisible`);function de(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}W(de,`isHidden`);function fe(e){return e instanceof HTMLInputElement&&`select`in e}W(fe,`isSelectableInput`);function G(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fe(e)&&t&&e.select()}}W(G,`focus`);var pe=me();function me(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=he(e,t),e.unshift(t)},remove(t){e=he(e,t),e[0]?.resume()}}}W(me,`createFocusScopesStack`);function he(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}W(he,`arrayRemove`);function ge(e){return e.filter(e=>e.tagName!==`A`)}W(ge,`removeLinks`);var _e=Object.defineProperty,ve=(e,t)=>_e(e,`name`,{value:t,configurable:!0}),ye=b.useId||(()=>void 0),be=0;function xe(e){let[t,n]=b.useState(ye());return l(()=>{e||n(e=>e??String(be++))},[e]),e||(t?`radix-${t}`:``)}ve(xe,`useId`);var Se=e(n(),1),Ce=typeof document<`u`?b.useLayoutEffect:function(){};function we(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!we(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!we(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Te(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){let n=Te(e);return Math.round(t*n)/n}function De(e){let t=b.useRef(e);return Ce(()=>{t.current=e}),t}function Oe(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);we(f,r)||p(r);let[m,h]=b.useState(null),[g,v]=b.useState(null),y=b.useCallback(e=>{e!==w.current&&(w.current=e,h(e))},[]),x=b.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),S=a||m,C=o||g,w=b.useRef(null),T=b.useRef(null),E=b.useRef(u),D=c!=null,O=De(c),k=De(i),A=De(l),j=b.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),_(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!we(E.current,t)&&(E.current=t,Se.flushSync(()=>{d(t)}))})},[f,t,n,k,A]);Ce(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=b.useRef(!1);Ce(()=>(M.current=!0,()=>{M.current=!1}),[]),Ce(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=b.useMemo(()=>({reference:w,floating:T,setReference:y,setFloating:x}),[y,x]),P=b.useMemo(()=>({reference:S,floating:C}),[S,C]),F=b.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Ee(P.floating,u.x),r=Ee(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Te(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:F}),[u,j,N,P,F])}var ke=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:y({element:r.current,padding:i}).fn(n):r?y({element:r,padding:i}).fn(n):{}}}},Ae=(e,t)=>{let n=v(e);return{name:n.name,fn:n.fn,options:[e,t]}},je=(e,t)=>{let n=f(e);return{name:n.name,fn:n.fn,options:[e,t]}},Me=(e,t)=>({fn:g(e).fn,options:[e,t]}),Ne=(e,t)=>{let n=p(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pe=(e,t)=>{let n=m(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fe=(e,t)=>{let n=d(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ie=(e,t)=>{let n=ke(e);return{name:n.name,fn:n.fn,options:[e,t]}},Le=Object.defineProperty,K=(e,t)=>Le(e,`name`,{value:t,configurable:!0}),Re=`Popper`,[ze,Be]=i(Re),[Ve,He]=ze(Re),Ue=K(e=>{let{__scopePopper:t,children:n}=e,[r,i]=b.useState(null),[a,o]=b.useState(void 0);return(0,w.jsx)(Ve,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),We=`PopperAnchor`,Ge=b.forwardRef(K(function(e,t){let{__scopePopper:n,virtualRef:i,...a}=e,o=He(We,n),s=b.useRef(null),l=o.onAnchorChange,u=r(t,b.useCallback(e=>{s.current=e,e&&l(e)},[l])),d=b.useRef(null);b.useEffect(()=>{if(!i)return;let e=d.current;d.current=i.current,e!==d.current&&l(d.current)});let f=o.placementState&&Qe(o.placementState),p=f?.[0],m=f?.[1];return i?null:(0,w.jsx)(c.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...a,ref:u})},`PopperAnchor`)),Ke=`PopperContent`,[qe,Je]=ze(Ke),Ye=b.forwardRef(K(function(e,t){let{__scopePopper:n,side:i=`bottom`,sideOffset:a=0,align:s=`center`,alignOffset:u=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:g=`partial`,hideWhenDetached:_=!1,updatePositionStrategy:v=`optimized`,onPlaced:y,...x}=e,S=He(Ke,n),[T,E]=b.useState(null),D=r(t,E),[O,k]=b.useState(null),A=o(O),j=A?.width??0,M=A?.height??0,N=i+(s===`center`?``:`-`+s),P=typeof m==`number`?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(p)?p:[p],ee=F.length>0,I={padding:P,boundary:F.filter(Xe),altBoundary:ee},{refs:L,floatingStyles:R,placement:z,isPositioned:B,middlewareData:V}=Oe({strategy:`fixed`,placement:N,whileElementsMounted:K((...e)=>h(...e,{animationFrame:v===`always`}),`whileElementsMounted`),elements:{reference:S.anchor},middleware:[Ae({mainAxis:a+M,alignmentAxis:u}),f&&je({mainAxis:!0,crossAxis:!1,limiter:g===`partial`?Me():void 0,...I}),f&&Ne({...I}),Pe({...I,apply:K(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),O&&Ie({element:O,padding:d}),Ze({arrowWidth:j,arrowHeight:M}),_&&Fe({strategy:`referenceHidden`,...I,boundary:ee?I.boundary:void 0})]}),te=S.setPlacementState;l(()=>(te(z),()=>{te(void 0)}),[z,te]);let[H,U]=Qe(z),ne=C(y);l(()=>{B&&ne?.()},[B,ne]);let W=V.arrow?.x,re=V.arrow?.y,ie=V.arrow?.centerOffset!==0,[ae,oe]=b.useState();return l(()=>{T&&oe(window.getComputedStyle(T).zIndex)},[T]),(0,w.jsx)(`div`,{ref:L.setFloating,"data-radix-popper-content-wrapper":``,style:{...R,transform:B?R.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(` `),...V.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,w.jsx)(qe,{scope:n,placedSide:H,placedAlign:U,onArrowChange:k,arrowX:W,arrowY:re,shouldHideArrow:ie,children:(0,w.jsx)(c.div,{"data-side":H,"data-align":U,...x,ref:D,style:{...x.style,animation:B?x.style?.animation:`none`}})})})},`PopperContent`));function Xe(e){return e!==null}K(Xe,`isNotNull`);var Ze=K(e=>({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]=Qe(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Qe(e){let[t,n=`center`]=e.split(`-`);return[t,n]}K(Qe,`getSideAndAlignFromPlacement`);var $e=Object.defineProperty,et=b.forwardRef(((e,t)=>$e(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=b.useState(!1);l(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Se.createPortal((0,w.jsx)(c.div,{...r,ref:t}),o):null},`Portal`)),tt=Object.defineProperty,q=(e,t)=>tt(e,`name`,{value:t,configurable:!0});function nt(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}q(nt,`useStateMachine`);var rt=q(e=>{let{present:t,children:n}=e,r=it(t),i=typeof n==`function`?n({present:r.isPresent}):b.Children.only(n),a=ot(r.ref,st(i));return typeof n==`function`||r.isPresent?b.cloneElement(i,{ref:a}):null},`Presence`);function it(e){let[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),a=b.useRef(`none`),o=b.useRef(void 0),[s,c]=nt(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return b.useEffect(()=>{s===`mounted`?(a.current=o.current??J(r.current),o.current=void 0):a.current=`none`},[s]),l(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=J(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),l(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=q(a=>{let o=J(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=q(e=>{e.target===t&&(a.current=J(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:b.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=J(t)}else r.current=null;n(e)},[])}}q(it,`usePresence`);function at(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}q(at,`setRef`);function ot(...e){let t=b.useRef(e);return t.current=e,b.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=at(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():at(n[e],null)}}},[])}q(ot,`useStableComposedRefs`);function J(e){return e?.animationName||`none`}q(J,`getAnimationName`);function st(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}q(st,`getElementRef`);var ct=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,lt=new WeakMap,ut={},dt=0,ft=function(e){return e&&(e.host||ft(e.parentNode))},pt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ft(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})},mt=function(e,t,n,r){var i=pt(t,Array.isArray(e)?e:[e]);ut[n]||(ut[n]=new WeakMap);var a=ut[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=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&lt.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(),dt++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(lt.has(e)||e.removeAttribute(r),lt.delete(e)),i||e.removeAttribute(n)}),dt--,dt||(Y=new WeakMap,Y=new WeakMap,lt=new WeakMap,ut={})}},ht=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ct(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),mt(r,i,n,`aria-hidden`)):function(){return null}},X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X.apply(this,arguments)};function gt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function _t(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var vt=`right-scroll-bar-position`,yt=`width-before-scroll-bar`,bt=`with-scroll-bars-hidden`,xt=`--removed-body-scroll-bar-size`;function St(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ct(e,t){var n=(0,b.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var wt=typeof window<`u`?b.useLayoutEffect:b.useEffect,Tt=new WeakMap;function Et(e,t){var n=Ct(t||null,function(t){return e.forEach(function(e){return St(e,t)})});return wt(function(){var t=Tt.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||St(e,null)}),i.forEach(function(e){r.has(e)||St(e,a)})}Tt.set(n,e)},[e]),n}function Dt(e){return e}function Ot(e,t){t===void 0&&(t=Dt);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function kt(e){e===void 0&&(e={});var t=Ot(null);return t.options=X({async:!0,ssr:!1},e),t}var At=function(e){var t=e.sideCar,n=gt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return b.createElement(r,X({},n))};At.isSideCarExport=!0;function jt(e,t){return e.useMedium(t),At}var Mt=kt(),Nt=function(){},Pt=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:Nt,onWheelCapture:Nt,onTouchMoveCapture:Nt}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,x=gt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Et([n,t]),w=X(X({},x),i);return b.createElement(b.Fragment,null,u&&b.createElement(S,{sideCar:Mt,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?b.cloneElement(b.Children.only(s),X(X({},w),{ref:C})):b.createElement(v,X({},w,{className:c,ref:C}),s))});Pt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pt.classNames={fullWidth:yt,zeroRight:vt};var Ft,It=function(){if(Ft)return Ft;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Lt(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=It();return t&&e.setAttribute(`nonce`,t),e}function Rt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Bt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Lt())&&(Rt(t,n),zt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vt=function(){var e=Bt();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ht=function(){var e=Vt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ut={left:0,top:0,right:0,gap:0},Wt=function(e){return parseInt(e||``,10)||0},Gt=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Wt(n),Wt(r),Wt(i)]},Kt=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ut;var t=Gt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qt=Ht(),Z=`data-scroll-locked`,Jt=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${bt} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${Z}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${vt} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${yt} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${vt} .${vt} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${yt} .${yt} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${Z}] {
36
+ ${xt}: ${s}px;
37
+ }
38
+ `},Yt=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Xt=function(){b.useEffect(function(){return document.body.setAttribute(Z,(Yt()+1).toString()),function(){var e=Yt()-1;e<=0?document.body.removeAttribute(Z):document.body.setAttribute(Z,e.toString())}},[])},Zt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Xt();var a=b.useMemo(function(){return Kt(i)},[i]);return b.createElement(qt,{styles:Jt(a,!t,i,n?``:`!important`)})},Qt=!1;if(typeof window<`u`)try{var $t=Object.defineProperty({},"passive",{get:function(){return Qt=!0,!0}});window.addEventListener(`test`,$t,$t),window.removeEventListener(`test`,$t,$t)}catch{Qt=!1}var Q=Qt?{passive:!1}:!1,en=function(e){return e.tagName===`TEXTAREA`},tn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!en(e)&&n[t]===`visible`)},nn=function(e){return tn(e,`overflowY`)},rn=function(e){return tn(e,`overflowX`)},an=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),cn(e,r)){var i=ln(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},on=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},sn=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},cn=function(e,t){return e===`v`?nn(t):rn(t)},ln=function(e,t){return e===`v`?on(t):sn(t)},un=function(e,t){return e===`h`&&t===`rtl`?-1:1},dn=function(e,t,n,r,i){var a=un(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ln(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&cn(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},fn=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pn=function(e){return[e.deltaX,e.deltaY]},mn=function(e){return e&&`current`in e?e.current:e},hn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gn=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},_n=0,$=[];function vn(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(_n++)[0],a=b.useState(Ht)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=_t([e.lockRef.current],(e.shards||[]).map(mn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=b.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=fn(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=an(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=an(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return dn(h,t,e,h===`h`?s:c,!0)},[]),c=b.useCallback(function(e){var n=e;if(!(!$.length||$[$.length-1]!==a)){var r=`deltaY`in n?pn(n):fn(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&hn(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(mn).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=b.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:yn(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=b.useCallback(function(e){n.current=fn(e),r.current=void 0},[]),d=b.useCallback(function(t){l(t.type,pn(t),t.target,s(t,e.lockRef.current))},[]),f=b.useCallback(function(t){l(t.type,fn(t),t.target,s(t,e.lockRef.current))},[]);b.useEffect(function(){return $.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Q),document.addEventListener(`touchmove`,c,Q),document.addEventListener(`touchstart`,u,Q),function(){$=$.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Q),document.removeEventListener(`touchmove`,c,Q),document.removeEventListener(`touchstart`,u,Q)}},[]);var p=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(a,{styles:gn(i)}):null,p?b.createElement(Zt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var bn=jt(Mt,vn),xn=b.forwardRef(function(e,t){return b.createElement(Pt,X({},e,{ref:t,sideCar:bn}))});xn.classNames=Pt.classNames;function Sn(e,t){if(e==null||e===``)return t;if(typeof e==`object`)return e;try{return JSON.parse(String(e))}catch{return t}}export{C as S,xe as _,et as a,M as b,Ye as c,Fe as d,Me as f,Oe as g,Pe as h,rt as i,Be as l,je as m,xn as n,Ue as o,Ae as p,ht as r,Ge as s,Sn as t,Ne as u,oe as v,N as x,H as y};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-n93t21jb.js";var n=e((e=>{(function(){function n(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?n(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var t=n(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function u(){var e=n(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,t,r,a,s,u){var f=t.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(t,`key`)){f=n(e);var m=Object.keys(t).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";var n=e((e=>{(function(){function n(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?n(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var t=n(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function u(){var e=n(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,t,r,a,s,u){var f=t.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(t,`key`)){f=n(e);var m=Object.keys(t).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-n93t21jb.js";var n=e((e=>{(function(){function n(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?n(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var t=n(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function u(){var e=n(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,t,r,a,s,u){var f=t.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(t,`key`)){f=n(e);var m=Object.keys(t).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";var n=e((e=>{(function(){function n(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?n(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var t=n(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function u(){var e=n(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,t,r,a,s,u){var f=t.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(t,`key`)){f=n(e);var m=Object.keys(t).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";var n=class extends Error{name=`Assertion`;code=`ERR_ASSERTION`;constructor(e,t,n,r,i){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=t,this.expected=n,this.generated=i,this.operator=r}};function r(e,t){i(!!e,!1,!0,`ok`,`Expected value to be truthy`,t)}function i(e,t,r,i,a,o){if(!e)throw o instanceof Error?o:new n(o||a,t,r,i,!o)}function a(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?s(e.position):`start`in e||`end`in e?s(e):`line`in e||`column`in e?o(e):``}function o(e){return c(e&&e.line)+`:`+c(e&&e.column)}function s(e){return o(e&&e.start)+`-`+o(e&&e.end)}function c(e){return e&&typeof e==`number`?e:1}var l=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},o=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let s=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=s?s.line:void 0,this.name=a(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};l.prototype.file=``,l.prototype.name=``,l.prototype.reason=``,l.prototype.message=``,l.prototype.stack=``,l.prototype.column=void 0,l.prototype.line=void 0,l.prototype.ancestors=void 0,l.prototype.cause=void 0,l.prototype.fatal=void 0,l.prototype.place=void 0,l.prototype.ruleId=void 0,l.prototype.source=void 0;var u={basename:d,dirname:f,extname:p,join:m,sep:`/`};function d(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);_(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function f(e){if(_(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function p(e){_(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function m(...e){let t=-1,n;for(;++t<e.length;)_(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:h(n)}function h(e){_(e);let t=e.codePointAt(0)===47,n=g(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function g(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function _(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var v={cwd:y};function y(){return`/`}function b(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function x(e){if(typeof e==`string`)e=new URL(e);else if(!b(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return S(e)}function S(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var C=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],w=class{constructor(e){let t;t=e?b(e)?{path:e}:typeof e==`string`||O(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:v.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<C.length;){let e=C[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)C.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?u.basename(this.path):void 0}set basename(e){E(e,`basename`),T(e,`basename`),this.path=u.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?u.dirname(this.path):void 0}set dirname(e){D(this.basename,`dirname`),this.path=u.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?u.extname(this.path):void 0}set extname(e){if(T(e,`extname`),D(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=u.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){b(e)&&(e=x(e)),E(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?u.basename(this.path,this.extname):void 0}set stem(e){E(e,`stem`),T(e,`stem`),this.path=u.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new l(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function T(e,t){if(e&&e.includes(u.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+u.sep+"`")}function E(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function D(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function O(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var k={}.hasOwnProperty;function A(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&k.call(t,e)){let n=String(t[e]);i=k.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function j(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function M(e){if(e)throw e}var N=e(t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function P(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function F(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?ee(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function ee(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var te=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),I={}.hasOwnProperty,L=new class e extends te{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=F()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,N.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(B(`data`,this.frozen),this.namespace[e]=t,this):I.call(this.namespace,e)&&this.namespace[e]||void 0:e?(B(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=U(e),n=this.parser||this.Parser;return R(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),R(`process`,this.parser||this.Parser),z(`process`,this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,a){let o=U(e),s=n.parse(o);n.run(s,o,function(e,t,r){if(e||!t||!r)return c(e);let i=t,a=n.stringify(i,r);G(a)?r.value=a:r.result=a,c(e,r)});function c(e,n){e||!n?a(e):i?i(n):(r(t,"`done` is defined if `resolve` is not"),t(void 0,n))}}}processSync(e){let t=!1,n;return this.freeze(),R(`processSync`,this.parser||this.Parser),z(`processSync`,this.compiler||this.Compiler),this.process(e,i),H(`processSync`,`process`,t),r(n,`we either bailed on an error or have a tree`),n;function i(e,r){t=!0,M(e),n=r}}run(e,t,n){V(e),this.freeze();let i=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){r(typeof t!=`function`,"`file` can’t be a `done` anymore, we checked");let s=U(t);i.run(e,s,c);function c(t,i,s){let c=i||e;t?o(t):a?a(c):(r(n,"`done` is defined if `resolve` is not"),n(void 0,c,s))}}}runSync(e,t){let n=!1,i;return this.run(e,t,a),H(`runSync`,`run`,n),r(i,`we either bailed on an error or have a tree`),i;function a(e,t){M(e),i=t,n=!0}}stringify(e,t){this.freeze();let n=U(t),r=this.compiler||this.Compiler;return z(`stringify`,r),V(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(B(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,N.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];P(o)&&P(r)&&(r=(0,N.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function R(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function z(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function B(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function V(e){if(!P(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function H(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function U(e){return W(e)?e:new w(e)}function W(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function G(e){return typeof e==`string`||K(e)}function K(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var q=(function(e){if(e==null)return ne;if(typeof e==`function`)return Z(e);if(typeof e==`object`)return Array.isArray(e)?J(e):Y(e);if(typeof e==`string`)return X(e);throw Error(`Expected function, string, or object as test`)});function J(e){let t=[],n=-1;for(;++n<e.length;)t[n]=q(e[n]);return Z(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Y(e){let t=e;return Z(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function X(e){return Z(t);function t(t){return t&&t.type===e}}function Z(e){return t;function t(t,n,r){return!!(re(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function ne(){return!0}function re(e){return typeof e==`object`&&!!e&&`type`in e}function ie(e){return e}var Q=[],ae=`skip`;function $(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=q(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+ie(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Q,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=oe(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function oe(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Q:[e]}function se(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),$(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}export{L as a,w as c,r as d,q as i,l,ae as n,j as o,$ as r,A as s,se as t,a as u};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./index.dom-CA5INa_J.js";var n=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};n.prototype.normal={},n.prototype.property={},n.prototype.space=void 0;function r(e,t){let r={},i={};for(let t of e)Object.assign(r,t.property),Object.assign(i,t.normal);return new n(r,i,t)}function i(e){return e.toLowerCase()}var a=class{constructor(e,t){this.attribute=t,this.property=e}};a.prototype.attribute=``,a.prototype.booleanish=!1,a.prototype.boolean=!1,a.prototype.commaOrSpaceSeparated=!1,a.prototype.commaSeparated=!1,a.prototype.defined=!1,a.prototype.mustUseProperty=!1,a.prototype.number=!1,a.prototype.overloadedBoolean=!1,a.prototype.property=``,a.prototype.spaceSeparated=!1,a.prototype.space=void 0;var o=e({boolean:()=>c,booleanish:()=>l,commaOrSpaceSeparated:()=>m,commaSeparated:()=>p,number:()=>d,overloadedBoolean:()=>u,spaceSeparated:()=>f}),s=0,c=h(),l=h(),u=h(),d=h(),f=h(),p=h(),m=h();function h(){return 2**++s}var g=Object.keys(o),_=class extends a{constructor(e,t,n,r){let i=-1;if(super(e,t),v(this,`space`,r),typeof n==`number`)for(;++i<g.length;){let e=g[i];v(this,g[i],(n&o[e])===o[e])}}};_.prototype.defined=!0;function v(e,t,n){n&&(e[t]=n)}function y(e){let t={},r={};for(let[n,a]of Object.entries(e.properties)){let o=new _(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[i(n)]=n,r[i(o.attribute)]=n}return new n(t,r,e.space)}var b=y({properties:{ariaActiveDescendant:null,ariaAtomic:l,ariaAutoComplete:null,ariaBusy:l,ariaChecked:l,ariaColCount:d,ariaColIndex:d,ariaColSpan:d,ariaControls:f,ariaCurrent:null,ariaDescribedBy:f,ariaDetails:null,ariaDisabled:l,ariaDropEffect:f,ariaErrorMessage:null,ariaExpanded:l,ariaFlowTo:f,ariaGrabbed:l,ariaHasPopup:null,ariaHidden:l,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f,ariaLevel:d,ariaLive:null,ariaModal:l,ariaMultiLine:l,ariaMultiSelectable:l,ariaOrientation:null,ariaOwns:f,ariaPlaceholder:null,ariaPosInSet:d,ariaPressed:l,ariaReadOnly:l,ariaRelevant:null,ariaRequired:l,ariaRoleDescription:f,ariaRowCount:d,ariaRowIndex:d,ariaRowSpan:d,ariaSelected:l,ariaSetSize:d,ariaSort:null,ariaValueMax:d,ariaValueMin:d,ariaValueNow:d,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function x(e,t){return t in e?e[t]:t}function S(e,t){return x(e,t.toLowerCase())}var C=y({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:p,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:c,allowPaymentRequest:c,allowUserMedia:c,alpha:c,alt:null,as:null,async:c,autoCapitalize:null,autoComplete:f,autoFocus:c,autoPlay:c,blocking:f,capture:null,charSet:null,checked:c,cite:null,className:f,closedBy:null,colorSpace:null,cols:d,colSpan:d,command:null,commandFor:null,content:null,contentEditable:l,controls:c,controlsList:f,coords:d|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:c,defer:c,dir:null,dirName:null,disabled:c,download:u,draggable:l,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:c,formTarget:null,headers:f,height:d,hidden:u,high:d,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:null,inert:c,inputMode:null,integrity:null,is:null,isMap:c,itemId:null,itemProp:f,itemRef:f,itemScope:c,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:c,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:c,muted:c,name:null,nonce:null,noModule:c,noValidate:c,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:c,optimum:d,pattern:null,ping:f,placeholder:null,playsInline:c,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:c,referrerPolicy:null,rel:f,required:c,reversed:c,rows:d,rowSpan:d,sandbox:f,scope:null,scoped:c,seamless:c,selected:c,shadowRootClonable:c,shadowRootCustomElementRegistry:c,shadowRootDelegatesFocus:c,shadowRootMode:null,shadowRootSerializable:c,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:null,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:c,useMap:null,value:l,width:d,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:c,declare:c,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:c,noHref:c,noShade:c,noWrap:c,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:c,disablePictureInPicture:c,disableRemotePlayback:c,exportParts:p,part:f,prefix:null,property:null,results:d,security:null,unselectable:null},space:`html`,transform:S}),w=y({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:m,accentHeight:d,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:d,amplitude:d,arabicForm:null,ascent:d,attributeName:null,attributeType:null,azimuth:d,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:d,by:null,calcMode:null,capHeight:d,className:f,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:d,diffuseConstant:d,direction:null,display:null,dur:null,divisor:d,dominantBaseline:null,download:c,dx:null,dy:null,edgeMode:null,editable:null,elevation:d,enableBackground:null,end:null,event:null,exponent:d,externalResourcesRequired:null,fill:null,fillOpacity:d,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p,g2:p,glyphName:p,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:d,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:d,horizOriginX:d,horizOriginY:d,id:null,ideographic:d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:d,k:d,k1:d,k2:d,k3:d,k4:d,kernelMatrix:m,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:d,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:d,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:d,overlineThickness:d,paintOrder:null,panose1:null,path:null,pathLength:d,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:d,pointsAtY:d,pointsAtZ:d,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:m,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:m,rev:m,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:m,requiredFeatures:m,requiredFonts:m,requiredFormats:m,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:d,specularExponent:d,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:d,strikethroughThickness:d,string:null,stroke:null,strokeDashArray:m,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:d,strokeOpacity:d,strokeWidth:null,style:null,surfaceScale:d,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:m,tabIndex:d,tableValues:null,target:null,targetX:d,targetY:d,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:m,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:d,underlineThickness:d,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:d,values:null,vAlphabetic:d,vMathematical:d,vectorEffect:null,vHanging:d,vIdeographic:d,version:null,vertAdvY:d,vertOriginX:d,vertOriginY:d,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:d,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:x}),T=y({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),E=y({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:S}),D=y({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ee=/[A-Z]/g,O=/-[a-z]/g,k=/^data[-\w.:]+$/i;function A(e,t){let n=i(t),r=t,o=a;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&k.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(O,M);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!O.test(e)){let n=e.replace(ee,j);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}o=_}return new o(r,t)}function j(e){return`-`+e.toLowerCase()}function M(e){return e.charAt(1).toUpperCase()}var N=r([b,C,T,E,D],`html`),P=r([b,w,T,E,D],`svg`);function F(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function I(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var L=/[#.]/g;function R(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){L.lastIndex=i;let e=L.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function z(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function te(e){return e.join(` `).trim()}function B(e,t,n){let r=n?K(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=R(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,V(i))a.unshift(i);else for(let[t,n]of Object.entries(i))H(e,o.properties,t,n)}for(let e of a)U(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function V(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function H(e,t,n,r){let i=A(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?z(r):i.commaSeparated?F(r):i.commaOrSpaceSeparated?z(F(r).join(` `)):W(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?G(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(W(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function U(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)U(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?U(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function W(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||i(n)===i(t)))return!0}return n}function G(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function K(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var q=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),J=B(N,`div`),Y=B(P,`g`,q),X=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Z={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Q(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function ne(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function re(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function $(e){return re(e)||Q(e)}var ie=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function ae(e,n){let r=n||{},i=typeof r.additional==`string`?r.additional.charCodeAt(0):r.additional,a=[],o=0,s=-1,c=``,l,u;r.position&&(`start`in r.position||`indent`in r.position?(u=r.position.indent,l=r.position.start):l=r.position);let d=(l?l.line:0)||1,f=(l?l.column:0)||1,p=h(),m;for(o--;++o<=e.length;)if(m===10&&(f=(u?u[s]:0)||1),m=e.charCodeAt(o),m===38){let n=e.charCodeAt(o+1);if(n===9||n===10||n===12||n===32||n===38||n===60||Number.isNaN(n)||i&&n===i){c+=String.fromCharCode(m),f++;continue}let s=o+1,l=s,u=s,d;if(n===35){u=++l;let t=e.charCodeAt(u);t===88||t===120?(d=`hexadecimal`,u=++l):d=`decimal`}else d=`named`;let v=``,y=``,b=``,x=d===`named`?$:d===`decimal`?Q:ne;for(u--;++u<=e.length;){let n=e.charCodeAt(u);if(!x(n))break;b+=String.fromCharCode(n),d===`named`&&X.includes(b)&&(v=b,y=t(b))}let S=e.charCodeAt(u)===59;if(S){u++;let e=d===`named`&&t(b);e&&(v=b,y=e)}let C=1+u-s,w=``;if(!(!S&&r.nonTerminated===!1))if(!b)d!==`named`&&g(4,C);else if(d===`named`){if(S&&!y)g(5,1);else if(v!==b&&(u=l+v.length,C=1+u-l,S=!1),!S){let t=v?1:3;if(r.attribute){let n=e.charCodeAt(u);n===61?(g(t,C),y=``):$(n)?y=``:g(t,C)}else g(t,C)}w=y}else{S||g(2,C);let e=Number.parseInt(b,d===`hexadecimal`?16:10);if(oe(e))g(7,C),w=`�`;else if(e in Z)g(6,C),w=Z[e];else{let t=``;se(e)&&g(6,C),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),w=t+String.fromCharCode(e)}}if(w){_(),p=h(),o=u-1,f+=u-s+1,a.push(w);let t=h();t.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,w,{start:p,end:t},e.slice(s-1,u)),p=t}else b=e.slice(s-1,u),c+=b,f+=b.length,o=u-1}else m===10&&(d++,s++,f=0),Number.isNaN(m)?_():(c+=String.fromCharCode(m),f++);return a.join(``);function h(){return{line:d,column:f,offset:o+((l?l.offset:0)||0)}}function g(e,t){let n;r.warning&&(n=h(),n.column+=t,n.offset+=t,r.warning.call(r.warningContext||void 0,ie[e],n,e))}function _(){c&&=(a.push(c),r.text&&r.text.call(r.textContext||void 0,c,{start:p,end:h()}),``)}}function oe(e){return e>=55296&&e<=57343||e>1114111}function se(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}export{z as a,I as c,A as d,Y as i,N as l,X as n,te as o,J as r,F as s,ae as t,P as u};
@@ -0,0 +1 @@
1
+ function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(null,arguments)}function t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}export{e as n,t};
@@ -10,4 +10,4 @@ Your code should look like:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function b(){U.asyncTransitions--}function x(e){if(Y===null)try{var n=(`require`+Math.random()).slice(0,7);Y=(t&&t[n]).call(t,`timers`).setImmediate}catch{Y=function(e){!1===J&&(J=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Y(e)}function S(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function C(e,t){t!==X-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),X=t}function w(e,t,n){var r=U.actQueue;if(r!==null)if(r.length!==0)try{T(r),x(function(){return w(e,t,n)});return}catch(e){U.thrownErrors.push(e)}else U.actQueue=null;0<U.thrownErrors.length?(r=S(U.thrownErrors),U.thrownErrors.length=0,n(r)):t(e)}function T(e){if(!Q){Q=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{U.didUsePromise=!1;var r=n(!1);if(r!==null){if(U.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),U.thrownErrors.push(n)}finally{Q=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var E=Symbol.for(`react.transitional.element`),le=Symbol.for(`react.portal`),D=Symbol.for(`react.fragment`),O=Symbol.for(`react.strict_mode`),k=Symbol.for(`react.profiler`),A=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),M=Symbol.for(`react.forward_ref`),N=Symbol.for(`react.suspense`),ue=Symbol.for(`react.suspense_list`),P=Symbol.for(`react.memo`),F=Symbol.for(`react.lazy`),I=Symbol.for(`react.activity`),L=Symbol.iterator,R={},z={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},B=Object.assign,V={};Object.freeze(V),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var H={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for($ in H)H.hasOwnProperty($)&&n($,H[$]);o.prototype=a.prototype,H=s.prototype=new o,H.constructor=s,B(H,a.prototype),H.isPureReactComponent=!0;var de=Array.isArray,fe=Symbol.for(`react.client.reference`),U={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},W=Object.prototype.hasOwnProperty,G=console.createTask?console.createTask:function(){return null};H={react_stack_bottom_frame:function(e){return e()}};var K,q,pe={},me=H.react_stack_bottom_frame.bind(H,te)(),he=G(f(te)),ge=!1,_e=/\/+/g,ve=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},J=!1,Y=null,X=0,Z=!1,Q=!1,ye=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:x;H=Object.freeze({__proto__:null,c:function(e){return y().useMemoCache(e)}});var $={map:v,forEach:function(e,t,n){v(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return v(e,function(){t++}),t},toArray:function(e){return v(e,function(e){return e})||[]},only:function(e){if(!h(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=I,e.Children=$,e.Component=a,e.Fragment=D,e.Profiler=k,e.PureComponent=s,e.StrictMode=O,e.Suspense=N,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,e.__COMPILER_RUNTIME=H,e.act=function(e){var t=U.actQueue,n=X;X++;var r=U.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){U.thrownErrors.push(e)}if(0<U.thrownErrors.length)throw C(t,n),e=S(U.thrownErrors),U.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return ye(function(){i||Z||(Z=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(C(t,n),n===0){try{T(r),x(function(){return w(i,e,a)})}catch(e){U.thrownErrors.push(e)}if(0<U.thrownErrors.length){var o=S(U.thrownErrors);U.thrownErrors.length=0,a(o)}}else e(i)},function(e){C(t,n),0<U.thrownErrors.length?(e=S(U.thrownErrors),U.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(C(t,n),n===0&&(T(r),r.length!==0&&ye(function(){i||Z||(Z=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),U.actQueue=null),0<U.thrownErrors.length)throw e=S(U.thrownErrors),U.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(U.actQueue=r,x(function(){return w(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=U.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=B({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(W.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=ee()),p(t)&&(u(t.key),i=``+t.key),t)!W.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=m(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)ae(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:j,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:A,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)ae(arguments[r]);r={};var i=null;if(t!=null)for(c in q||!(`__self`in t)||`key`in t||(q=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),p(t)&&(u(t.key),i=``+t.key),t)W.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&ne(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>U.recentlyCreatedOwnerStacks++;return m(e,i,r,ee(),c?Error(`react-stack-top-frame`):me,c?G(f(e)):he)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===P?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:M,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=h,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:F,_payload:e,_init:ce},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:P,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=U.T,n={};n._updatedFibers=new Set,U.T=n;try{var r=e(),i=U.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(U.asyncTransitions++,r.then(b,b),r.then(c,ve))}catch(e){ve(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),U.T=t}},e.unstable_useCacheRefresh=function(){return y().useCacheRefresh()},e.use=function(e){return y().use(e)},e.useActionState=function(e,t,n){return y().useActionState(e,t,n)},e.useCallback=function(e,t){return y().useCallback(e,t)},e.useContext=function(e){var t=y();return e.$$typeof===A&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return y().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return y().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),y().useEffect(e,t)},e.useEffectEvent=function(e){return y().useEffectEvent(e)},e.useId=function(){return y().useId()},e.useImperativeHandle=function(e,t,n){return y().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),y().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),y().useLayoutEffect(e,t)},e.useMemo=function(e,t){return y().useMemo(e,t)},e.useOptimistic=function(e,t){return y().useOptimistic(e,t)},e.useReducer=function(e,t,n){return y().useReducer(e,t,n)},e.useRef=function(e){return y().useRef(e)},e.useState=function(e){return y().useState(e)},e.useSyncExternalStore=function(e,t,n){return y().useSyncExternalStore(e,t,n)},e.useTransition=function(){return y().useTransition()},e.version=`19.2.7`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),n=e(((e,n)=>{n.exports=t()}));export{n as t};
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function b(){U.asyncTransitions--}function x(e){if(Y===null)try{var n=(`require`+Math.random()).slice(0,7);Y=(t&&t[n]).call(t,`timers`).setImmediate}catch{Y=function(e){!1===J&&(J=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Y(e)}function S(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function C(e,t){t!==X-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),X=t}function w(e,t,n){var r=U.actQueue;if(r!==null)if(r.length!==0)try{T(r),x(function(){return w(e,t,n)});return}catch(e){U.thrownErrors.push(e)}else U.actQueue=null;0<U.thrownErrors.length?(r=S(U.thrownErrors),U.thrownErrors.length=0,n(r)):t(e)}function T(e){if(!Q){Q=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{U.didUsePromise=!1;var r=n(!1);if(r!==null){if(U.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),U.thrownErrors.push(n)}finally{Q=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var E=Symbol.for(`react.transitional.element`),le=Symbol.for(`react.portal`),D=Symbol.for(`react.fragment`),O=Symbol.for(`react.strict_mode`),k=Symbol.for(`react.profiler`),A=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),M=Symbol.for(`react.forward_ref`),N=Symbol.for(`react.suspense`),ue=Symbol.for(`react.suspense_list`),P=Symbol.for(`react.memo`),F=Symbol.for(`react.lazy`),I=Symbol.for(`react.activity`),L=Symbol.iterator,R={},z={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},B=Object.assign,V={};Object.freeze(V),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var H={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for($ in H)H.hasOwnProperty($)&&n($,H[$]);o.prototype=a.prototype,H=s.prototype=new o,H.constructor=s,B(H,a.prototype),H.isPureReactComponent=!0;var de=Array.isArray,fe=Symbol.for(`react.client.reference`),U={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},W=Object.prototype.hasOwnProperty,G=console.createTask?console.createTask:function(){return null};H={react_stack_bottom_frame:function(e){return e()}};var K,q,pe={},me=H.react_stack_bottom_frame.bind(H,te)(),he=G(f(te)),ge=!1,_e=/\/+/g,ve=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},J=!1,Y=null,X=0,Z=!1,Q=!1,ye=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:x;H=Object.freeze({__proto__:null,c:function(e){return y().useMemoCache(e)}});var $={map:v,forEach:function(e,t,n){v(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return v(e,function(){t++}),t},toArray:function(e){return v(e,function(e){return e})||[]},only:function(e){if(!h(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=I,e.Children=$,e.Component=a,e.Fragment=D,e.Profiler=k,e.PureComponent=s,e.StrictMode=O,e.Suspense=N,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,e.__COMPILER_RUNTIME=H,e.act=function(e){var t=U.actQueue,n=X;X++;var r=U.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){U.thrownErrors.push(e)}if(0<U.thrownErrors.length)throw C(t,n),e=S(U.thrownErrors),U.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return ye(function(){i||Z||(Z=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(C(t,n),n===0){try{T(r),x(function(){return w(i,e,a)})}catch(e){U.thrownErrors.push(e)}if(0<U.thrownErrors.length){var o=S(U.thrownErrors);U.thrownErrors.length=0,a(o)}}else e(i)},function(e){C(t,n),0<U.thrownErrors.length?(e=S(U.thrownErrors),U.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(C(t,n),n===0&&(T(r),r.length!==0&&ye(function(){i||Z||(Z=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),U.actQueue=null),0<U.thrownErrors.length)throw e=S(U.thrownErrors),U.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(U.actQueue=r,x(function(){return w(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=U.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=B({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(W.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=ee()),p(t)&&(u(t.key),i=``+t.key),t)!W.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=m(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)ae(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:j,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:A,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)ae(arguments[r]);r={};var i=null;if(t!=null)for(c in q||!(`__self`in t)||`key`in t||(q=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),p(t)&&(u(t.key),i=``+t.key),t)W.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&ne(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>U.recentlyCreatedOwnerStacks++;return m(e,i,r,ee(),c?Error(`react-stack-top-frame`):me,c?G(f(e)):he)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===P?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:M,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=h,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:F,_payload:e,_init:ce},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:P,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=U.T,n={};n._updatedFibers=new Set,U.T=n;try{var r=e(),i=U.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(U.asyncTransitions++,r.then(b,b),r.then(c,ve))}catch(e){ve(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),U.T=t}},e.unstable_useCacheRefresh=function(){return y().useCacheRefresh()},e.use=function(e){return y().use(e)},e.useActionState=function(e,t,n){return y().useActionState(e,t,n)},e.useCallback=function(e,t){return y().useCallback(e,t)},e.useContext=function(e){var t=y();return e.$$typeof===A&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return y().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return y().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),y().useEffect(e,t)},e.useEffectEvent=function(e){return y().useEffectEvent(e)},e.useId=function(){return y().useId()},e.useImperativeHandle=function(e,t,n){return y().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),y().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),y().useLayoutEffect(e,t)},e.useMemo=function(e,t){return y().useMemo(e,t)},e.useOptimistic=function(e,t){return y().useOptimistic(e,t)},e.useReducer=function(e,t,n){return y().useReducer(e,t,n)},e.useRef=function(e){return y().useRef(e)},e.useState=function(e){return y().useState(e)},e.useSyncExternalStore=function(e,t,n){return y().useSyncExternalStore(e,t,n)},e.useTransition=function(){return y().useTransition()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),n=e(((e,n)=>{n.exports=t()}));export{n as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";import{C as n,O as r,S as i,a,l as o,r as s,t as c,v as l,w as u,x as d,y as f}from"./button-VZuZjj-j.js";import{t as p}from"./jsx-dev-runtime-DeBf9dJw.js";import{a as m,o as h,r as g,s as _,t as v}from"./dist-DIdoc5C5.js";import{t as y}from"./jsx-runtime-DhzTdv_T.js";import{S as b,_ as x,a as S,b as C,c as w,i as ee,l as T,n as te,o as E,r as D,s as O,t as k,v as ne,y as re}from"./json-DfDguq5e.js";var A=e(t(),1),j=p(),M=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/input.tsx`,N=A.forwardRef(({className:e,type:t,...r},i)=>(0,j.jsxDEV)(`input`,{type:t,ref:i,className:n(`flex h-9 w-full rounded-lg border border-input bg-background px-2 py-1 text-sm text-foreground transition-colors`,`placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,`disabled:cursor-not-allowed disabled:opacity-50`,e),...r},void 0,!1,{fileName:M,lineNumber:6,columnNumber:5},void 0));N.displayName=`Input`;var ie=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/textarea.tsx`,P=A.forwardRef(({className:e,...t},r)=>(0,j.jsxDEV)(`textarea`,{ref:r,className:n(`flex min-h-20 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground transition-colors`,`placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,`disabled:cursor-not-allowed disabled:opacity-50`,e),...t},void 0,!1,{fileName:ie,lineNumber:6,columnNumber:5},void 0));P.displayName=`Textarea`;var F=f(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),I=f(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),L=f(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),R=f(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ae=f(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),z=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/input-group.tsx`;function oe({className:e,...t}){return(0,j.jsxDEV)(`div`,{"data-slot":`input-group`,role:`group`,className:n(`group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30`,`h-9 min-w-0 has-[>textarea]:h-auto`,`has-[>[data-align=inline-start]]:[&>input]:pl-2`,`has-[>[data-align=inline-end]]:[&>input]:pr-2`,`has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3`,`has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3`,`has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50`,`has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40`,e),...t},void 0,!1,{fileName:z,lineNumber:11,columnNumber:5},this)}var se=s(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]`,"inline-end":`order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]`,"block-start":`order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3`,"block-end":`order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3`}},defaultVariants:{align:`inline-start`}});function ce({className:e,align:t=`inline-start`,...r}){return(0,j.jsxDEV)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:n(se({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...r},void 0,!1,{fileName:z,lineNumber:61,columnNumber:5},this)}var le=s(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5`,sm:`h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5`,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function ue({className:e,type:t=`button`,variant:r=`ghost`,size:i=`xs`,...a}){return(0,j.jsxDEV)(c,{type:t,"data-size":i,variant:r,className:n(le({size:i}),e),...a},void 0,!1,{fileName:z,lineNumber:99,columnNumber:5},this)}function de({className:e,...t}){return(0,j.jsxDEV)(`span`,{className:n(`flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4`,e),...t},void 0,!1,{fileName:z,lineNumber:111,columnNumber:5},this)}function fe({className:e,...t}){return(0,j.jsxDEV)(N,{"data-slot":`input-group-control`,className:n(`flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent`,e),...t},void 0,!1,{fileName:z,lineNumber:123,columnNumber:5},this)}var pe=e(r(),1),B=y(),me=Object.defineProperty,he=(e,t)=>me(e,`name`,{value:t,configurable:!0}),ge=A.createContext(void 0);function _e(e){let t=A.useContext(ge);return e||t||`ltr`}he(_e,`useDirection`);var ve=Object.defineProperty,ye=(e,t)=>ve(e,`name`,{value:t,configurable:!0});function V(e,[t,n]){return Math.min(n,Math.max(t,e))}ye(V,`clamp`);var be=Object.defineProperty,H=(e,t)=>be(e,`name`,{value:t,configurable:!0});function xe(e){let t=e+`CollectionProvider`,[n,r]=m(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=H(e=>{let{scope:t,children:n}=e,r=A.useRef(null),i=A.useRef(new Map).current;return(0,B.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);s.displayName=t;let c=e+`CollectionSlot`,l=d(c),u=A.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=i(t,o(c,n).collectionRef);return(0,B.jsx)(l,{ref:a,children:r})});u.displayName=c;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,h=d(f),g=A.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,s=A.useRef(null),c=i(t,s),l=o(f,n);return A.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),(0,B.jsx)(h,{[p]:``,ref:c,children:r})});g.displayName=f;function _(t){let n=o(e+`CollectionConsumer`,t);return A.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return H(_,`useCollection`),[{Provider:s,Slot:u,ItemSlot:g},_,r]}H(xe,`createCollection`);var Se=new WeakMap,Ce=class e extends Map{static{H(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Se.set(this,!0)}set(e,t){return Se.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=Ee(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=we(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=we(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return we(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function we(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Te(e,t);return n===-1?void 0:e[n]}H(we,`at`);function Te(e,t){let n=e.length,r=Ee(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}H(Te,`toSafeIndex`);function Ee(e){return e!==e||e===0?0:Math.trunc(e)}H(Ee,`toSafeInteger`);function De(e){let t=e+`CollectionProvider`,[n,r]=m(t),[a,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Ce,setItemMap:H(()=>void 0,`setItemMap`)}),s=H(({state:e,...t})=>e?(0,B.jsx)(l,{...t,state:e}):(0,B.jsx)(c,{...t}),`CollectionProvider`);s.displayName=t;let c=H(e=>{let t=v();return(0,B.jsx)(l,{...e,state:t})},`CollectionInit`);c.displayName=t+`Init`;let l=H(e=>{let{scope:t,children:n,state:r}=e,o=A.useRef(null),[s,c]=A.useState(null),l=i(o,c),[u,d]=r;return A.useEffect(()=>{if(!s)return;let e=je(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,B.jsx)(a,{scope:t,itemMap:u,setItemMap:d,collectionRef:l,collectionRefObject:o,collectionElement:s,children:n})},`CollectionProviderImpl`);l.displayName=t+`Impl`;let u=e+`CollectionSlot`,f=d(u),p=A.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=i(t,o(u,n).collectionRef);return(0,B.jsx)(f,{ref:a,children:r})});p.displayName=u;let h=e+`CollectionItemSlot`,g=d(h),_=A.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,s=A.useRef(null),[c,l]=A.useState(null),u=i(t,s,l),{setItemMap:d}=o(h,n),f=A.useRef(a);Oe(f.current,a)||(f.current=a);let p=f.current;return A.useEffect(()=>{let e=p;return d(t=>c?t.has(c)?t.set(c,{...e,element:c}).toSorted(Ae):(t.set(c,{...e,element:c}),t.toSorted(Ae)):t),()=>{d(e=>!c||!e.has(c)?e:(e.delete(c),new Ce(e)))}},[c,p,d]),(0,B.jsx)(g,{"data-radix-collection-item":``,ref:u,children:r})});_.displayName=h;function v(){return A.useState(new Ce)}H(v,`useInitCollection`);function y(t){let{itemMap:n}=o(e+`CollectionConsumer`,t);return n}return H(y,`useCollection`),[{Provider:s,Slot:p,ItemSlot:_},{createCollectionScope:r,useCollection:y,useInitCollection:v}]}H(De,`createCollection`);function Oe(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}H(Oe,`shallowEqual`);function ke(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}H(ke,`isElementPreceding`);function Ae(e,t){return!e[1].element||!t[1].element?0:ke(e[1].element,t[1].element)?-1:1}H(Ae,`sortByDocumentPosition`);function je(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}H(je,`getChildListObserver`);var Me=Object.defineProperty,Ne=(e,t)=>Me(e,`name`,{value:t,configurable:!0});function Pe(e){let t=A.useRef({value:e,previous:e});return A.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Ne(Pe,`usePrevious`);var Fe=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Ie=Object.defineProperty,U=(e,t)=>Ie(e,`name`,{value:t,configurable:!0}),Le=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Re=[` `,`Enter`],W=`Select`,[ze,Be,Ve]=xe(W),[G,He]=m(W,[Ve,T]),Ue=T(),[We,K]=G(W),[Ge,Ke]=G(W);function qe(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=Ue(t),[_,y]=A.useState(null),[b,S]=A.useState(null),[C,w]=A.useState(!1),ee=_e(l),[T,te]=v({prop:r,defaultProp:i??!1,onChange:a,caller:W}),[D,O]=v({prop:o,defaultProp:s,onChange:c,caller:W}),k=A.useRef(null),ne=A.useRef(D);A.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=U(()=>O(ne.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,O]);let re=!_||!!m||!!_.closest(`form`),[j,M]=A.useState(new Set),N=x(),ie=Array.from(j).map(e=>e.props.value).join(`;`),P=A.useCallback(e=>{M(t=>new Set(t).add(e))},[]),F=A.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),I={required:p,trigger:_,onTriggerChange:y,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:N,value:D,onValueChange:O,open:T,onOpenChange:te,dir:ee,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:j,nativeSelectKey:ie,isFormControl:re};return(0,B.jsx)(E,{...g,children:(0,B.jsx)(We,{scope:t,...I,children:(0,B.jsx)(ze.Provider,{scope:t,children:(0,B.jsx)(Ge,{scope:t,onNativeOptionAdd:P,onNativeOptionRemove:F,children:Pt(h)?h(I):n})})})})}U(qe,`SelectProvider`);var Je=U(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,B.jsx)(qe,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,B.jsxs)(B.Fragment,{children:[n,e?(0,B.jsx)(Nt,{__scopeSelect:t}):null]})})},`Select`),Ye=`SelectTrigger`,Xe=A.forwardRef(U(function(e,t){let{__scopeSelect:n,disabled:r=!1,...a}=e,o=Ue(n),s=K(Ye,n),c=s.disabled||r,l=i(t,s.onTriggerChange),u=Be(n),d=A.useRef(`touch`),[f,p,m]=Ft(e=>{let t=u().filter(e=>!e.disabled),n=It(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),_=U(e=>{c||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,B.jsx)(O,{asChild:!0,...o,children:(0,B.jsx)(g.button,{type:`button`,role:`combobox`,"aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":X(s.value)?``:void 0,...a,ref:l,onClick:h(a.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&_(e)}),onPointerDown:h(a.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:h(a.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&Le.includes(e.key)&&(_(),e.preventDefault())})})})},`SelectTrigger`)),Ze=`SelectValue`,Qe=A.forwardRef(U(function(e,t){let{__scopeSelect:n,className:r,style:a,children:o,placeholder:s=``,...c}=e,l=K(Ze,n),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,f=i(t,l.onValueNodeChange);_(()=>{u(d)},[u,d]);let p=X(l.value);return(0,B.jsx)(g.span,{...c,asChild:!p&&c.asChild,ref:f,style:{pointerEvents:`none`},children:(0,B.jsx)(A.Fragment,{children:p?s:o},p?`placeholder`:`value`)})},`SelectValue`)),$e=A.forwardRef(U(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,B.jsx)(g.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[et,tt]=G(`SelectPortal`,{forceMount:void 0}),nt=U(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,B.jsx)(et,{scope:e.__scopeSelect,forceMount:n,children:(0,B.jsx)(S,{asChild:!0,...r})})},`SelectPortal`),q=`SelectContent`,rt=A.forwardRef(U(function(e,t){let n=tt(q,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=K(q,e.__scopeSelect),[o,s]=A.useState();return _(()=>{s(new DocumentFragment)},[]),(0,B.jsx)(ee,{present:r||a.open,children:({present:e})=>e?(0,B.jsx)(st,{...i,ref:t}):(0,B.jsx)(it,{...i,fragment:o})})},`SelectContent`)),it=A.forwardRef(U(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?pe.createPortal((0,B.jsx)(at,{scope:n,children:(0,B.jsx)(ze.Slot,{scope:n,children:(0,B.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),J=10,[at,Y]=G(q),ot=d(`SelectContent.RemoveScroll`),st=A.forwardRef(U(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:_,avoidCollisions:v,...y}=e,b=K(q,n),[x,S]=A.useState(null),[w,ee]=A.useState(null),T=i(t,S),[E,O]=A.useState(null),[k,j]=A.useState(null),M=Be(n),[N,ie]=A.useState(!1),P=A.useRef(!1);A.useEffect(()=>{if(x)return D(x)},[x]),re();let F=A.useCallback(e=>{let[t,...n]=M().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&w&&(w.scrollTop=0),n===r&&w&&(w.scrollTop=w.scrollHeight),n?.focus(),document.activeElement!==i))return},[M,w]),I=A.useCallback(()=>F([E,x]),[F,E,x]);A.useEffect(()=>{N&&I()},[N,I]);let{onOpenChange:L,triggerPointerDownPosRef:R}=b;A.useEffect(()=>{if(x){let e={x:0,y:0},t=U(t=>{e={x:Math.abs(Math.round(t.pageX)-(R.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(R.current?.y??0))}},`handlePointerMove`),n=U(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(x)||L(!1),document.removeEventListener(`pointermove`,t),R.current=null},`handlePointerUp`);return R.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[x,L,R]),A.useEffect(()=>{let e=U(()=>L(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[L]);let[ae,z]=Ft(e=>{let t=M().filter(e=>!e.disabled),n=It(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),oe=A.useCallback((e,t,n)=>{let r=!P.current&&!n;(b.value!==void 0&&b.value===t||r)&&(O(e),r&&(P.current=!0))},[b.value]),se=A.useCallback(()=>x?.focus(),[x]),ce=A.useCallback((e,t,n)=>{let r=!P.current&&!n;(b.value!==void 0&&b.value===t||r)&&j(e)},[b.value]),le=r===`popper`?lt:ct,ue=le===lt?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:_,avoidCollisions:v}:{};return(0,B.jsx)(at,{scope:n,content:x,viewport:w,onViewportChange:ee,itemRefCallback:oe,selectedItem:E,onItemLeave:se,itemTextRefCallback:ce,focusSelectedItem:I,selectedItemText:k,position:r,isPositioned:N,searchRef:ae,children:(0,B.jsx)(te,{as:ot,allowPinchZoom:!0,children:(0,B.jsx)(ne,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:h(a,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,B.jsx)(C,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,B.jsx)(le,{role:`listbox`,id:b.contentId,"data-state":b.open?`open`:`closed`,dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...ue,onPlaced:()=>ie(!0),ref:T,style:{display:`flex`,flexDirection:`column`,outline:`none`,...y.style},onKeyDown:h(y.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&z(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),ct=A.forwardRef(U(function(e,t){let{__scopeSelect:n,onPlaced:r,...a}=e,o=K(q,n),s=Y(q,n),[c,l]=A.useState(null),[u,d]=A.useState(null),f=i(t,d),p=Be(n),m=A.useRef(!1),h=A.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=s,S=A.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-J,d=V(a,[J,Math.max(J,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-J,d=V(a,[J,Math.max(J,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let a=p(),s=window.innerHeight-J*2,l=v.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),_=parseInt(d.paddingBottom,10),x=f+h+l+_+g,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),ee=parseInt(C.paddingBottom,10),T=e.top+e.height/2-J,te=s-T,E=y.offsetHeight/2,D=y.offsetTop+E,O=f+h+D,k=x-O;if(O<=T){let e=a.length>0&&y===a[a.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-v.offsetTop-v.offsetHeight,n=O+Math.max(te,E+(e?ee:0)+t+g);c.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;c.style.top=`0px`;let t=Math.max(T,f+v.offsetTop+(e?w:0)+E)+k;c.style.height=t+`px`,v.scrollTop=O-T+v.offsetTop}c.style.margin=`${J}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,o.trigger,o.valueNode,c,u,v,y,b,o.dir,r]);_(()=>S(),[S]);let[C,w]=A.useState();return _(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]),(0,B.jsx)(ut,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:A.useCallback(e=>{e&&h.current===!0&&(S(),x?.(),h.current=!1)},[S,x]),children:(0,B.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,B.jsx)(g.div,{...a,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})},`SelectItemAlignedPosition`)),lt=A.forwardRef(U(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=J,...a}=e,o=Ue(n);return(0,B.jsx)(w,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[ut,dt]=G(q,{}),ft=`SelectViewport`,pt=A.forwardRef(U(function(e,t){let{__scopeSelect:n,nonce:r,...a}=e,o=Y(ft,n),s=dt(ft,n),c=i(t,o.onViewportChange),l=A.useRef(0);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,B.jsx)(ze.Slot,{scope:n,children:(0,B.jsx)(g.div,{"data-radix-select-viewport":``,role:`presentation`,...a,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...a.style},onScroll:h(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-J*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})},`SelectViewport`)),[mt,ht]=G(`SelectGroup`),gt=`SelectLabel`,_t=A.forwardRef(U(function(e,t){let{__scopeSelect:n,...r}=e,i=ht(gt,n);return(0,B.jsx)(g.div,{id:i.id,...r,ref:t})},`SelectLabel`)),vt=`SelectItem`,[yt,bt]=G(vt),xt=A.forwardRef(U(function(e,t){let{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...s}=e,c=K(vt,n),l=Y(vt,n),u=c.value===r,[d,f]=A.useState(o??``),[p,m]=A.useState(!1),_=i(t,b(e=>l.itemRefCallback?.(e,r,a))),v=x(),y=A.useRef(`touch`),S=U(()=>{a||(c.onValueChange(r),c.onOpenChange(!1))},`handleSelect`);return(0,B.jsx)(yt,{scope:n,value:r,disabled:a,textId:v,isSelected:u,onItemTextChange:A.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,B.jsx)(ze.ItemSlot,{scope:n,value:r,disabled:a,textValue:d,children:(0,B.jsx)(g.div,{role:`option`,"aria-labelledby":v,"data-highlighted":p?``:void 0,"aria-selected":u&&p,"data-state":u?`checked`:`unchecked`,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,tabIndex:a?void 0:-1,...s,ref:_,onFocus:h(s.onFocus,()=>m(!0)),onBlur:h(s.onBlur,()=>m(!1)),onClick:h(s.onClick,()=>{y.current!==`mouse`&&S()}),onPointerUp:h(s.onPointerUp,()=>{y.current===`mouse`&&S()}),onPointerDown:h(s.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:h(s.onPointerMove,e=>{y.current=e.pointerType,a?l.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:h(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:h(s.onKeyDown,e=>{a||e.target!==e.currentTarget||l.searchRef?.current!==``&&e.key===` `||(Re.includes(e.key)&&S(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),St=`SelectItemText`,Ct=A.forwardRef(U(function(e,t){let{__scopeSelect:n,className:r,style:a,...o}=e,s=K(St,n),c=Y(St,n),l=bt(St,n),u=Ke(St,n),[d,f]=A.useState(null),p=b(e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=i(t,f,l.onItemTextChange,p),h=d?.textContent,v=A.useMemo(()=>(0,B.jsx)(`option`,{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=u;return _(()=>(y(v),()=>x(v)),[y,x,v]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(g.span,{id:l.textId,...o,ref:m}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!X(s.value)?pe.createPortal(o.children,s.valueNode):null]})},`SelectItemText`)),wt=`SelectItemIndicator`,Tt=A.forwardRef(U(function(e,t){let{__scopeSelect:n,...r}=e;return bt(wt,n).isSelected?(0,B.jsx)(g.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Et=`SelectScrollUpButton`,Dt=A.forwardRef(U(function(e,t){let n=Y(Et,e.__scopeSelect),r=dt(Et,e.__scopeSelect),[a,o]=A.useState(!1),s=i(t,r.onScrollButtonChange);return _(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;o(e)};U(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),a?(0,B.jsx)(At,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Ot=`SelectScrollDownButton`,kt=A.forwardRef(U(function(e,t){let n=Y(Ot,e.__scopeSelect),r=dt(Ot,e.__scopeSelect),[a,o]=A.useState(!1),s=i(t,r.onScrollButtonChange);return _(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};U(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),a?(0,B.jsx)(At,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),At=A.forwardRef(U(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Y(`SelectScrollButton`,n),o=A.useRef(null),s=Be(n),c=A.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return A.useEffect(()=>()=>c(),[c]),_(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,B.jsx)(g.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:h(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:h(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:h(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),jt=A.forwardRef(U(function(e,t){let{__scopeSelect:n,...r}=e;return(0,B.jsx)(g.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Mt=`SelectBubbleInput`,Nt=A.forwardRef(U(function({__scopeSelect:e,...t},n){let r=K(Mt,e),{value:a,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=A.useRef(null),h=i(n,m),_=a??``,v=Pe(_),y=Array.from(f).some(e=>(e.props.value??``)===``);return A.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(v!==_&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,_),e.dispatchEvent(t)}},[v,_]),(0,B.jsxs)(g.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>o(e.target.value),...t,style:{...Fe,...t.style},ref:h,defaultValue:_,children:[X(a)&&!y?(0,B.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function Pt(e){return typeof e==`function`}U(Pt,`isFunction`);function X(e){return e===``||e===void 0}U(X,`shouldShowPlaceholder`);function Ft(e){let t=b(e),n=A.useRef(``),r=A.useRef(0),i=A.useCallback(e=>{let i=n.current+e;t(i),U((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=A.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}U(Ft,`useTypeaheadSearch`);function It(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Lt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}U(It,`findNextItem`);function Lt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}U(Lt,`wrapArray`);var Z=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/select.tsx`,Rt=Je,zt=Qe,Bt=A.forwardRef(({className:e,children:t,...r},i)=>(0,j.jsxDEV)(Xe,{ref:i,className:n(`flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-input bg-background px-3 py-1 text-sm text-foreground transition-colors`,`data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring`,`disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,e),...r,children:[t,(0,j.jsxDEV)($e,{asChild:!0,children:(0,j.jsxDEV)(F,{className:`h-4 w-4 opacity-60`},void 0,!1,{fileName:Z,lineNumber:26,columnNumber:7},void 0)},void 0,!1,{fileName:Z,lineNumber:25,columnNumber:5},void 0)]},void 0,!0,{fileName:Z,lineNumber:14,columnNumber:3},void 0));Bt.displayName=Xe.displayName;var Vt=A.forwardRef(({className:e,...t},r)=>(0,j.jsxDEV)(Dt,{ref:r,className:n(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsxDEV)(I,{className:`h-4 w-4`},void 0,!1,{fileName:Z,lineNumber:41,columnNumber:5},void 0)},void 0,!1,{fileName:Z,lineNumber:36,columnNumber:3},void 0));Vt.displayName=Dt.displayName;var Ht=A.forwardRef(({className:e,...t},r)=>(0,j.jsxDEV)(kt,{ref:r,className:n(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsxDEV)(F,{className:`h-4 w-4`},void 0,!1,{fileName:Z,lineNumber:55,columnNumber:5},void 0)},void 0,!1,{fileName:Z,lineNumber:50,columnNumber:3},void 0));Ht.displayName=kt.displayName;var Ut=A.forwardRef(({className:e,children:t,position:r=`popper`,...i},a)=>(0,j.jsxDEV)(nt,{children:(0,j.jsxDEV)(rt,{ref:a,className:n(`relative z-50 max-h-96 min-w-32 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,r===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:r,...i,children:[(0,j.jsxDEV)(Vt,{},void 0,!1,{fileName:Z,lineNumber:76,columnNumber:7},void 0),(0,j.jsxDEV)(pt,{className:n(`p-1`,r===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t},void 0,!1,{fileName:Z,lineNumber:77,columnNumber:7},void 0),(0,j.jsxDEV)(Ht,{},void 0,!1,{fileName:Z,lineNumber:86,columnNumber:7},void 0)]},void 0,!0,{fileName:Z,lineNumber:65,columnNumber:5},void 0)},void 0,!1,{fileName:Z,lineNumber:64,columnNumber:3},void 0));Ut.displayName=rt.displayName;var Wt=A.forwardRef(({className:e,...t},r)=>(0,j.jsxDEV)(_t,{ref:r,className:n(`px-2 py-1.5 text-xs font-semibold text-muted-foreground`,e),...t},void 0,!1,{fileName:Z,lineNumber:96,columnNumber:3},void 0));Wt.displayName=_t.displayName;var Gt=A.forwardRef(({className:e,children:t,...r},i)=>(0,j.jsxDEV)(xt,{ref:i,className:n(`relative flex w-full cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none`,`focus:bg-elevated focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...r,children:[(0,j.jsxDEV)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsxDEV)(Tt,{children:(0,j.jsxDEV)(l,{className:`h-4 w-4 text-accent`},void 0,!1,{fileName:Z,lineNumber:119,columnNumber:9},void 0)},void 0,!1,{fileName:Z,lineNumber:118,columnNumber:7},void 0)},void 0,!1,{fileName:Z,lineNumber:117,columnNumber:5},void 0),(0,j.jsxDEV)(Ct,{children:t},void 0,!1,{fileName:Z,lineNumber:122,columnNumber:5},void 0)]},void 0,!0,{fileName:Z,lineNumber:108,columnNumber:3},void 0));Gt.displayName=xt.displayName;var Kt=A.forwardRef(({className:e,...t},r)=>(0,j.jsxDEV)(jt,{ref:r,className:n(`-mx-1 my-1 h-px bg-border`,e),...t},void 0,!1,{fileName:Z,lineNumber:131,columnNumber:3},void 0));Kt.displayName=jt.displayName;var qt=`inline-flex items-center gap-1.5 bg-surface text-text border border-border rounded-full px-2.5 py-0.5 text-sm`,Q=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/render/multiple-chips.tsx`,Jt=()=>(0,j.jsxDEV)(`span`,{className:`text-sm text-muted/50 select-none`,children:`—`},void 0,!1,{fileName:Q,lineNumber:12,columnNumber:27},void 0);function Yt({onClick:e,className:t}){return(0,j.jsxDEV)(`button`,{type:`button`,onClick:e,"aria-label":`remove`,className:`inline-flex shrink-0 items-center text-muted transition-colors hover:text-danger ${t??``}`,children:(0,j.jsxDEV)(a,{size:13},void 0,!1,{fileName:Q,lineNumber:23,columnNumber:7},this)},void 0,!1,{fileName:Q,lineNumber:17,columnNumber:5},this)}function Xt({children:e,className:t,style:n,onRemove:r}){return(0,j.jsxDEV)(`span`,{className:`${qt} ${t??``}`,style:n,children:[e,r?(0,j.jsxDEV)(Yt,{onClick:r},void 0,!1,{fileName:Q,lineNumber:44,columnNumber:9},this):(0,j.jsxDEV)(`span`,{"aria-hidden":!0,className:`invisible inline-flex shrink-0 items-center`,children:(0,j.jsxDEV)(a,{size:13},void 0,!1,{fileName:Q,lineNumber:49,columnNumber:11},this)},void 0,!1,{fileName:Q,lineNumber:48,columnNumber:9},this)]},void 0,!0,{fileName:Q,lineNumber:41,columnNumber:5},this)}function Zt({children:e}){return(0,j.jsxDEV)(`div`,{className:`flex flex-wrap gap-1.5`,children:e},void 0,!1,{fileName:Q,lineNumber:58,columnNumber:10},this)}function Qt({items:e,content:t,chipClassName:n,chipStyle:r,onRemove:i,editor:a,reserveEditor:o,emptyDash:s=!0}){return!e.length&&!a?s?(0,j.jsxDEV)(Jt,{},void 0,!1,{fileName:Q,lineNumber:85,columnNumber:52},this):null:(0,j.jsxDEV)(`div`,{className:`flex flex-col gap-2 ${a?`px-2`:``}`,children:[e.length>0&&(0,j.jsxDEV)(Zt,{children:e.map((e,a)=>(0,j.jsxDEV)(Xt,{className:n?.(e,a),style:r?.(e,a),onRemove:i?()=>i(a):void 0,children:t(e,a)},a,!1,{fileName:Q,lineNumber:91,columnNumber:13},this))},void 0,!1,{fileName:Q,lineNumber:89,columnNumber:9},this),a,!a&&o&&e.length>0&&(0,j.jsxDEV)(`div`,{"aria-hidden":!0,className:`invisible h-9`},void 0,!1,{fileName:Q,lineNumber:98,columnNumber:56},this)]},void 0,!0,{fileName:Q,lineNumber:87,columnNumber:5},this)}var $=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/render/shared.tsx`,$t=e=>Array.isArray(e)?e:k(e,[]);function en({onRemove:e,className:t}){let{t:n}=u();return(0,j.jsxDEV)(c,{type:`button`,variant:`outline`,size:`iconSm`,onClick:e,title:n(`actions.delete`),"aria-hidden":!e||void 0,tabIndex:e?void 0:-1,className:`shrink-0 rounded-lg text-muted hover:border-danger hover:text-danger${e?``:` invisible`}${t?` ${t}`:``}`,children:(0,j.jsxDEV)(R,{size:14},void 0,!1,{fileName:$,lineNumber:42,columnNumber:7},this)},void 0,!1,{fileName:$,lineNumber:32,columnNumber:5},this)}function tn({onClick:e,children:t,className:n}){return(0,j.jsxDEV)(c,{type:`button`,variant:`outline`,size:`sm`,onClick:e,className:`self-start border-accent/30 text-accent hover:border-accent/60 hover:text-accent2 ${n??``}`,children:[(0,j.jsxDEV)(o,{size:13},void 0,!1,{fileName:$,lineNumber:65,columnNumber:7},this),` `,t]},void 0,!0,{fileName:$,lineNumber:58,columnNumber:5},this)}function nn({accept:e,busy:t,error:n,onPick:r,compact:i}){let{t:a}=u();return(0,j.jsxDEV)(`div`,{className:`flex flex-col gap-1`,children:[(0,j.jsxDEV)(`label`,{className:`inline-flex w-fit cursor-pointer items-center gap-1.5 rounded-lg border border-accent/30 text-xs font-medium text-accent hover:border-accent/60 ${i?`px-2.5 py-1`:`px-3 py-2`} ${t?`pointer-events-none opacity-60`:``}`,children:[t?(0,j.jsxDEV)(L,{size:13,className:`animate-spin`},void 0,!1,{fileName:$,lineNumber:95,columnNumber:17},this):(0,j.jsxDEV)(ae,{size:13},void 0,!1,{fileName:$,lineNumber:95,columnNumber:66},this),` `,a(`actions.upload`),(0,j.jsxDEV)(`input`,{type:`file`,accept:e,className:`hidden`,disabled:t,onChange:e=>r(e.target.files?.[0]??null)},void 0,!1,{fileName:$,lineNumber:96,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:90,columnNumber:7},this),n&&(0,j.jsxDEV)(`span`,{className:`text-xs text-danger`,children:a(n)},void 0,!1,{fileName:$,lineNumber:104,columnNumber:17},this)]},void 0,!0,{fileName:$,lineNumber:89,columnNumber:5},this)}function rn(e,t){return e.map(e=>({value:e.value,title:t(e.title),subtitle:e.subtitle,icon:e.icon}))}function an(e){return e>=0&&e<20?String.fromCodePoint(9312+e):String(e+1)}function on(e,t){let n=e;if(typeof n==`string`)try{n=JSON.parse(n)}catch{n={}}let r=n&&typeof n==`object`?n:{};if(Array.isArray(r.checks)){let e=r.checks;return{text:String(r.text??``),checks:Array.from({length:t},(t,n)=>e[n]===!0)}}return{text:String(r.text??``),checks:Array.from({length:t},(e,t)=>r[`check${t}`]===!0)}}function sn(e){let t={text:e.text};return e.checks.forEach((e,n)=>{t[`check${n}`]=e}),t}function cn({slots:e}){let{t}=u();if(e.length<=1||!e.some(e=>e))return null;let n=e.length>3;return(0,j.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-x-1.5 gap-y-0.5 text-xs text-muted`,children:e.map((e,r)=>(0,j.jsxDEV)(A.Fragment,{children:[r>0&&(0,j.jsxDEV)(`span`,{className:`opacity-40`,children:`•`},void 0,!1,{fileName:$,lineNumber:196,columnNumber:21},this),(0,j.jsxDEV)(`span`,{children:[n?`${an(r)} `:``,e?t(e):`—`]},void 0,!0,{fileName:$,lineNumber:197,columnNumber:11},this)]},r,!0,{fileName:$,lineNumber:195,columnNumber:9},this))},void 0,!1,{fileName:$,lineNumber:193,columnNumber:5},this)}var ln=e=>e>3;function un({value:e,onChange:t,renderInput:n,validate:r,serialize:i,display:a}){let[s,c]=(0,A.useState)(()=>$t(e)),[l,u]=(0,A.useState)(``);(0,A.useEffect)(()=>{c($t(e))},[e]);function d(e){c(e),t(e.length>0?e:``)}function f(){let e=l.trim();if(!e||r&&!r(e))return;let t=i?i(e):e;t===null||s.includes(t)||(d([...s,t]),u(``))}return(0,j.jsxDEV)(Qt,{items:s,content:e=>a?a(String(e)):String(e),onRemove:e=>d(s.filter((t,n)=>n!==e)),editor:(0,j.jsxDEV)(oe,{className:`[&>input]:h-auto [&>input]:rounded-none [&>input]:border-0 [&>input]:bg-transparent [&>input]:shadow-none [&>input]:focus-visible:ring-0 focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50`,children:[n(l,u,f),(0,j.jsxDEV)(ce,{align:`inline-end`,children:(0,j.jsxDEV)(ue,{size:`icon-xs`,"aria-label":`add`,onClick:f,children:(0,j.jsxDEV)(o,{},void 0,!1,{fileName:$,lineNumber:267,columnNumber:15},this)},void 0,!1,{fileName:$,lineNumber:266,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:263,columnNumber:9},this)},void 0,!1,{fileName:$,lineNumber:258,columnNumber:5},this)}function dn(e){return e!=null&&e!==``}function fn(e,t,n,r){return t.includes(n)?e.filter((e,t)=>t!==r).map(e=>String(e[n]??``)).filter(Boolean):[]}function pn(e){return e.slice(0,8)+`…`}var mn=e=>e.length>60?e.slice(0,57)+`…`:e;function hn(e,t,n){return e.hints.multiple===!0?(0,j.jsxDEV)(Qt,{items:k(t,[]),content:n,reserveEditor:!0},void 0,!1,{fileName:$,lineNumber:316,columnNumber:12},this):dn(t)?(0,j.jsxDEV)(j.Fragment,{children:n(t)},void 0,!1,{fileName:$,lineNumber:317,columnNumber:28},this):(0,j.jsxDEV)(Jt,{},void 0,!1,{fileName:$,lineNumber:317,columnNumber:52},this)}function gn(e,t,n=e=>!dn(e)){return n(e)?(0,j.jsxDEV)(Jt,{},void 0,!1,{fileName:$,lineNumber:326,columnNumber:27},this):(0,j.jsxDEV)(j.Fragment,{children:t(e)},void 0,!1,{fileName:$,lineNumber:326,columnNumber:38},this)}function _n(e){return Object.keys(e).find(t=>e[t]?.kind===`cover`)}export{oe as A,P as B,Ut as C,xe as D,zt as E,ae as F,R as I,L,ue as M,fe as N,V as O,de as P,I as R,Rt as S,Bt as T,N as V,mn as _,nn as a,Qt as b,an as c,dn as d,hn as f,rn as g,pn as h,en as i,ce as j,_e as k,on as l,$t as m,cn as n,ln as o,gn as p,un as r,sn as s,tn as t,_n as u,fn as v,Gt as w,Yt as x,Jt as y,F as z};
@@ -1 +1 @@
1
- import{I as e,L as t,M as n,c as r,d as i,f as a,u as o}from"./fields-CQxZPdka.js";var s=/^[a-z][a-z0-9+.-]*:\/\//i;function c(e){let t=e.trim();if(!t)return null;let n=s.test(t),r;try{r=new URL(n?t:`http://${t}`)}catch{return{host:t}}let i={};return n&&(i.scheme=r.protocol.replace(/:$/,``)),r.username&&(i.username=r.username),r.password&&(i.password=r.password),r.hostname&&(i.host=r.hostname),r.port&&(i.port=Number(r.port)),r.pathname&&r.pathname!==`/`&&(i.path=r.pathname),r.search&&(i.query=r.search.slice(1)),r.hash&&(i.hash=r.hash.slice(1)),i}function l(e){return e?`${e.scheme?`${e.scheme}://`:``}${e.username?`${e.username}${e.password?`:${e.password}`:``}@`:``}${e.host??``}${e.port==null?``:`:${e.port}`}${e.path??``}${e.query?`?${e.query}`:``}${e.hash?`#${e.hash}`:``}`:``}function u(e){return!e||!l(e)?``:e.scheme?l(e):`https://${l(e)}`}var d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)};function f(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);d(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(e){var t=`[object `+e+`]`;return function(e){return ee(e)===t}},ee=function(e){return Object.prototype.toString.call(e)},m=function(e){return e instanceof Date?e.getTime():h(e)?e.map(m):e&&typeof e.toJSON==`function`?e.toJSON():e},te=function(e){return e??null},h=p(`Array`),ne=p(`Object`),g=p(`Function`),re=function(e,t){return e.hasOwnProperty(t)&&!g(e[t])},ie=function(e){return e&&(e.constructor===Object||e.constructor===Array||e.constructor.toString()===`function Object() { [native code] }`||e.constructor.toString()===`function Array() { [native code] }`)&&!e.toJSON},_=function(e,t){if(e==null&&e==t||e===t)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(t))return!1;if(h(e)){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!_(e[n],t[n]))return!1;return!0}else if(ne(e)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!_(e[i],t[i]))return!1;return!0}return!1},v=function(e,t,n,r,i,a){var o=t[r];if(h(e)&&isNaN(Number(o))&&!re(e,o)){for(var s=0,c=e.length;s<c;s++)if(!v(e[s],t,n,r,s,e))return!1}return r===t.length||e==null?n(e,i,a,r===0,r===t.length):v(e[o],t,n,r+1,o,e)},y=function(){function e(e,t,n,r){this.params=e,this.owneryQuery=t,this.options=n,this.name=r,this.init()}return e.prototype.init=function(){},e.prototype.reset=function(){this.done=!1,this.keep=!1},e}(),b=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.children=i,a}return t.prototype.reset=function(){this.keep=!1,this.done=!1;for(var e=0,t=this.children.length;e<t;e++)this.children[e].reset()},t.prototype.childrenNext=function(e,t,n,r,i){for(var a=!0,o=!0,s=0,c=this.children.length;s<c;s++){var l=this.children[s];if(l.done||l.next(e,t,n,r,i),l.keep||(o=!1),l.done){if(!l.keep)break}else a=!1}this.done=a,this.keep=o},t}(y),x=function(e){f(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r,i)||this;return o.name=a,o}return t}(b),ae=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(b),S=function(e){f(t,e);function t(t,n,r,i,a){var o=e.call(this,n,r,i,a)||this;return o.keyPath=t,o.propop=!0,o._nextNestedValue=function(e,t,n,r,i){return o.childrenNext(e,t,n,r,i),!o.done},o}return t.prototype.next=function(e,t,n){v(e,this.keyPath,this._nextNestedValue,0,t,n)},t}(b),C=function(e,t){if(e instanceof Function)return e;if(e instanceof RegExp)return function(t){var n=typeof t==`string`&&e.test(t);return e.lastIndex=0,n};var n=m(e);return function(e){return t(n,m(e))}},w=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._test=C(this.params,this.options.compare)},t.prototype.next=function(e,t,n){(!Array.isArray(n)||n.hasOwnProperty(t))&&this._test(e,t,n)&&(this.done=!0,this.keep=!0)},t}(y),oe=function(e){return function(t,n,r,i){return e(t,n,r,i)}},T=function(e){return oe(function(t,n,r,i){var a=typeof m(t),o=e(t);return new w(function(e){var t=te(e);return typeof m(t)===a&&o(t)},n,r,i)})},se=function(e,t,n,r){var i=r.operations[e];return i||E(e),i(t,n,r,e)},E=function(e){throw Error(`Unsupported operation: ${e}`)},D=function(e,t){for(var n in e)if(t.operations.hasOwnProperty(n)||n.charAt(0)===`$`)return!0;return!1},ce=function(e,t,n,r,i){if(D(t,i)){var a=k(t,n,i),o=a[0];if(a[1].length)throw Error(`Property queries must contain only operations, or exact objects.`);return new S(e,t,r,i,o)}return new S(e,t,r,i,[new w(t,r,i)])},O=function(e,t,n){t===void 0&&(t=null);var r=n===void 0?{}:n,i=r.compare,a=r.operations,o={compare:i||_,operations:Object.assign({},a||{})},s=k(e,null,o),c=s[0],l=s[1],u=[];return c.length&&u.push(new S([],e,t,o,c)),u.push.apply(u,l),u.length===1?u[0]:new ae(e,t,o,u)},k=function(e,t,n){var r=[],i=[];if(!ie(e))return r.push(new w(e,e,n)),[r,i];for(var a in e)if(n.operations.hasOwnProperty(a)){var o=se(a,e[a],e,n);if(o&&!o.propop&&t&&!n.operations[t])throw Error(`Malformed query. ${a} cannot be matched against property.`);o!=null&&r.push(o)}else a.charAt(0)===`$`?E(a):i.push(ce(a.split(`.`),e[a],a,e,n));return[r,i]},le=function(e){return function(t,n,r){return e.reset(),e.next(t,n,r),e.keep}},ue=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._test=C(this.params,this.options.compare)},t.prototype.reset=function(){e.prototype.reset.call(this),this.keep=!0},t.prototype.next=function(e){this._test(e)&&(this.done=!0,this.keep=!1)},t}(y),de=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){if(!this.params||typeof this.params!=`object`)throw Error(`Malformed query. $elemMatch must by an object.`);this._queryOperation=O(this.params,this.owneryQuery,this.options)},t.prototype.reset=function(){e.prototype.reset.call(this),this._queryOperation.reset()},t.prototype.next=function(e){if(h(e)){for(var t=0,n=e.length;t<n;t++){this._queryOperation.reset();var r=e[t];this._queryOperation.next(r,t,e,!1),this.keep=this.keep||this._queryOperation.keep}this.done=!0}else this.done=!1,this.keep=!1},t}(y),fe=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._queryOperation=O(this.params,this.owneryQuery,this.options)},t.prototype.reset=function(){e.prototype.reset.call(this),this._queryOperation.reset()},t.prototype.next=function(e,t,n,r){this._queryOperation.next(e,t,n,r),this.done=this._queryOperation.done,this.keep=!this._queryOperation.keep},t}(y),A=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){},t.prototype.next=function(e){h(e)&&e.length===this.params&&(this.done=!0,this.keep=!0)},t}(y),j=function(e){if(e.length===0)throw Error(`$and/$or/$nor must be a nonempty array`)},M=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!1,t}return t.prototype.init=function(){var e=this;j(this.params),this._ops=this.params.map(function(t){return O(t,null,e.options)})},t.prototype.reset=function(){this.done=!1,this.keep=!1;for(var e=0,t=this._ops.length;e<t;e++)this._ops[e].reset()},t.prototype.next=function(e,t,n){for(var r=!1,i=!1,a=0,o=this._ops.length;a<o;a++){var s=this._ops[a];if(s.next(e,t,n),s.keep){r=!0,i=s.keep;break}}this.keep=i,this.done=r},t}(y),pe=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!1,t}return t.prototype.next=function(t,n,r){e.prototype.next.call(this,t,n,r),this.keep=!this.keep},t}(M),N=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){var e=this,t=Array.isArray(this.params)?this.params:[this.params];this._testers=t.map(function(t){if(D(t,e.options))throw Error(`cannot nest \$ under ${e.name.toLowerCase()}`);return C(t,e.options.compare)})},t.prototype.next=function(e,t,n){for(var r=!1,i=!1,a=0,o=this._testers.length;a<o;a++){var s=this._testers[a];if(s(e)){r=!0,i=!0;break}}this.keep=i,this.done=r},t}(y),me=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.propop=!0,a._in=new N(t,n,r,i),a}return t.prototype.next=function(e,t,n,r){this._in.next(e,t,n),h(n)&&!r?this._in.keep?(this.keep=!1,this.done=!0):t==n.length-1&&(this.keep=!0,this.done=!0):(this.keep=!this._in.keep,this.done=!0)},t.prototype.reset=function(){e.prototype.reset.call(this),this._in.reset()},t}(y),he=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.next=function(e,t,n,r,i){i?n.hasOwnProperty(t)===this.params&&(this.done=!0,this.keep=!0):(this.done=!0,this.keep=!this.params)},t}(y),ge=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,t.map(function(e){return O(e,n,r)}),i)||this;return a.propop=!1,j(t),a}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(x),P=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,t.map(function(e){return O(e,n,r)}),i)||this;return a.propop=!0,a}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(x),F=function(e,t,n){return new w(e,t,n)},I=function(e,t,n,r){return new ue(e,t,n,r)},L=function(e,t,n,r){return new M(e,t,n,r)},_e=function(e,t,n,r){return new pe(e,t,n,r)},ve=function(e,t,n,r){return new de(e,t,n,r)},ye=function(e,t,n,r){return new me(e,t,n,r)},be=function(e,t,n,r){return new N(e,t,n,r)},xe=T(function(e){return function(t){return t!=null&&t<e}}),Se=T(function(e){return function(t){return t===e||t<=e}}),Ce=T(function(e){return function(t){return t!=null&&t>e}}),we=T(function(e){return function(t){return t===e||t>=e}}),Te=function(e,t,n){var r=e[0],i=e[1];return new w(function(e){return m(e)%r===i},t,n)},Ee=function(e,t,n,r){return new he(e,t,n,r)},De=function(e,t,n){return new w(new RegExp(e,t.$options),t,n)},Oe=function(e,t,n,r){return new fe(e,t,n,r)},R={number:function(e){return typeof e==`number`},string:function(e){return typeof e==`string`},bool:function(e){return typeof e==`boolean`},array:function(e){return Array.isArray(e)},null:function(e){return e===null},timestamp:function(e){return e instanceof Date}},ke=Object.freeze({__proto__:null,$Size:A,$all:function(e,t,n,r){return new P(e,t,n,r)},$and:function(e,t,n,r){return new ge(e,t,n,r)},$elemMatch:ve,$eq:F,$exists:Ee,$gt:Ce,$gte:we,$in:be,$lt:xe,$lte:Se,$mod:Te,$ne:I,$nin:ye,$nor:_e,$not:Oe,$options:function(){return null},$or:L,$regex:De,$size:function(e,t,n){return new A(e,t,n,`$size`)},$type:function(e,t,n){return new w(function(t){if(typeof e==`string`){if(!R[e])throw Error(`Type alias does not exist`);return R[e](t)}return t==null?!1:t instanceof e||t.constructor===e},t,n)},$where:function(e,t,n){var r;if(g(e))r=e;else if(!{}.CSP_ENABLED)r=Function(`obj`,`return `+e);else throw Error(`In CSP mode, sift does not support strings in "$where" condition`);return new w(function(e){return r.bind(e)(e)},t,n)}}),Ae=function(e,t,n){var r=n===void 0?{}:n,i=r.compare,a=r.operations;return O(e,t,{compare:i,operations:Object.assign({},ke,a||{})})},z=function(e,t){return t===void 0&&(t={}),le(Ae(e,null,t))},je=z.createEqualsOperation,Me=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`,Ne=(e,t)=>String(e)===String(t),Pe={$contains(e,t,n){return je(t=>Array.isArray(t)&&t.some(t=>Ne(t,e)),t,n)}};function B(e,t){if(!e)return!0;try{return z(e,{operations:Pe})(t)}catch{return!1}}function V(e,t){return typeof e==`boolean`?e:e?B(e,t):!1}function Fe(e,t,n){if(Me(t))return[`${e} = ${n(t)}`];let r=[];for(let[i,a]of Object.entries(t))if(a!==void 0)switch(i){case`$eq`:r.push(`${e} = ${n(a)}`);break;case`$ne`:r.push(`${e} ≠ ${n(a)}`);break;case`$gt`:r.push(`${e} > ${String(a)}`);break;case`$lt`:r.push(`${e} < ${String(a)}`);break;case`$gte`:r.push(`${e} ≥ ${String(a)}`);break;case`$lte`:r.push(`${e} ≤ ${String(a)}`);break;case`$in`:r.push(`${e} ∈ {${a.map(n).join(`, `)}}`);break;case`$nin`:r.push(`${e} ∉ {${a.map(n).join(`, `)}}`);break;case`$contains`:r.push(`${e} contains ${n(a)}`);break;default:break}return r}function H(e,t,n){if(!e)return[];let r=[];for(let[i,a]of Object.entries(e))if(a!==void 0){if(i===`$and`){for(let e of a)r.push(...H(e,t,n));continue}if(i===`$or`){let e=a.map(e=>H(e,t,n)).filter(e=>e.length>0).map(e=>e.length>1?`(${e.join(` and `)})`:e[0]);e.length&&r.push(e.join(` or `));continue}r.push(...Fe(t(i),a,e=>n?n(i,e):String(e)))}return r}function U(e){let t=[];for(let n of e)if(i(n))t.push([n.key,n.type]);else if(a(n)){if(r(n))continue;let e=n.key?`${n.key}__`:``;for(let[r,i]of U(n.fields))t.push([e+r,i])}return t}var W=new WeakMap;function G(e){let t=W.get(e);return t||(t=Object.fromEntries(U(e)),W.set(e,t)),t}function Ie(e){let t=U(e.fields).map(([e])=>e),n=t.find((e,n)=>t.indexOf(e)!==n);if(n)throw Error(`[shelf] ${e.library}/${e.shelf}: duplicate key '${n}'`);return e.standalone!==!1&&!e.views?.table?.length&&console.warn(`[shelf] ${e.library}/${e.shelf}: standalone shelf without an explicit views.table`),e}function K(e){if(e.views?.title)return e.views.title;let t=G(e.fields),n=e.views?.inline?.find(e=>t[e]&&!J(t[e].kind));if(n)return n;if(t.name)return`name`;let r=U(e.fields).find(([,e])=>!e.virtual&&Y(e.prim));return r?r[0]:`id`}function Le(e,t){return String(t[K(e)]??t.id??``)}function q(e,t){let n=G(e.fields);return t.filter(e=>n[e]&&!n[e].virtual)}var Re=new Set([`image`,`media`,`avatar`,`cover`]),J=e=>Re.has(e),Y=e=>e===`string`||e===`text`;function X(e){let t=e.views?.inline?.length?q(e,e.views.inline):[];return t.length?t:[K(e)]}function ze(e){let t=G(e.fields);return X(e).find(e=>t[e]&&J(t[e].kind))}function Be(e,t){let n=G(e.fields);return X(e).reduce((e,r)=>{if(!n[r]||!J(n[r].kind)){let n=t[r];n!=null&&n!==``&&e.push(String(n))}return e},[]).join(` `).trim()||Le(e,t)}function Ve(e){let t=K(e);return[t,...e.views?.table?.length?q(e,e.views.table.filter(e=>e!==t)):[]]}var He=new Set([`select`,`checkbox`,`relation`]);function Z(e){return e.views?.groupBy?.length?q(e,e.views.groupBy):U(e.fields).filter(([,e])=>!e.virtual&&He.has(e.prim)).map(([e])=>e)}function Ue(e){let t=e.views?.defaultGroupBy;if(t){let n=G(e.fields);if(n[t]&&!n[t].virtual)return t}return Z(e)[0]}function Q(s,l){let u={};for(let d of s)if(i(d)){if(d.type.virtual)continue;u[d.key]=l?d.type.zod.optional():d.type.zod}else if(a(d))if(r(d)){let t=n(e(Q(d.fields,l)).passthrough());u[d.key]=l?t.optional():d.required?t:t.optional()}else if(o(d)){let n=e(Q(d.fields,l)).passthrough();d.kind===`url`&&(n=t(e=>typeof e==`string`?c(e)??{}:e,n)),u[d.key]=l?n.optional():d.required?n:n.optional()}else Object.assign(u,Q(d.fields,l));return u}var We=e=>e==null||e===``||Array.isArray(e)&&e.length===0;function $(e,t,n){return e.superRefine((e,r)=>{for(let[i,a]of U(t.fields))a.virtual||i.includes(`__`)||n&&!(i in e)||a.required!==!0&&V(a.required,e)&&We(e[i])&&r.addIssue({code:`custom`,path:[i],message:JSON.stringify({code:`required`})})})}function Ge(t){return $(e(Q(t.fields,!1)),t,!1)}function Ke(t){return $(e(Q(t.fields,!0)),t,!0)}export{u as _,U as a,ze as c,Ve as d,K as f,l as g,V as h,Ie as i,Be as l,B as m,Ke as n,G as o,H as p,Ue as r,Z as s,Ge as t,J as u,c as v};
1
+ import{I as e,L as t,M as n,c as r,d as i,f as a,u as o}from"./fields-B4fdbc1_.js";var s=/^[a-z][a-z0-9+.-]*:\/\//i;function c(e){let t=e.trim();if(!t)return null;let n=s.test(t),r;try{r=new URL(n?t:`http://${t}`)}catch{return{host:t}}let i={};return n&&(i.scheme=r.protocol.replace(/:$/,``)),r.username&&(i.username=r.username),r.password&&(i.password=r.password),r.hostname&&(i.host=r.hostname),r.port&&(i.port=Number(r.port)),r.pathname&&r.pathname!==`/`&&(i.path=r.pathname),r.search&&(i.query=r.search.slice(1)),r.hash&&(i.hash=r.hash.slice(1)),i}function l(e){return e?`${e.scheme?`${e.scheme}://`:``}${e.username?`${e.username}${e.password?`:${e.password}`:``}@`:``}${e.host??``}${e.port==null?``:`:${e.port}`}${e.path??``}${e.query?`?${e.query}`:``}${e.hash?`#${e.hash}`:``}`:``}function u(e){return!e||!l(e)?``:e.scheme?l(e):`https://${l(e)}`}var d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)};function f(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);d(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(e){var t=`[object `+e+`]`;return function(e){return ee(e)===t}},ee=function(e){return Object.prototype.toString.call(e)},m=function(e){return e instanceof Date?e.getTime():h(e)?e.map(m):e&&typeof e.toJSON==`function`?e.toJSON():e},te=function(e){return e??null},h=p(`Array`),ne=p(`Object`),g=p(`Function`),re=function(e,t){return e.hasOwnProperty(t)&&!g(e[t])},ie=function(e){return e&&(e.constructor===Object||e.constructor===Array||e.constructor.toString()===`function Object() { [native code] }`||e.constructor.toString()===`function Array() { [native code] }`)&&!e.toJSON},_=function(e,t){if(e==null&&e==t||e===t)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(t))return!1;if(h(e)){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!_(e[n],t[n]))return!1;return!0}else if(ne(e)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!_(e[i],t[i]))return!1;return!0}return!1},v=function(e,t,n,r,i,a){var o=t[r];if(h(e)&&isNaN(Number(o))&&!re(e,o)){for(var s=0,c=e.length;s<c;s++)if(!v(e[s],t,n,r,s,e))return!1}return r===t.length||e==null?n(e,i,a,r===0,r===t.length):v(e[o],t,n,r+1,o,e)},y=function(){function e(e,t,n,r){this.params=e,this.owneryQuery=t,this.options=n,this.name=r,this.init()}return e.prototype.init=function(){},e.prototype.reset=function(){this.done=!1,this.keep=!1},e}(),b=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.children=i,a}return t.prototype.reset=function(){this.keep=!1,this.done=!1;for(var e=0,t=this.children.length;e<t;e++)this.children[e].reset()},t.prototype.childrenNext=function(e,t,n,r,i){for(var a=!0,o=!0,s=0,c=this.children.length;s<c;s++){var l=this.children[s];if(l.done||l.next(e,t,n,r,i),l.keep||(o=!1),l.done){if(!l.keep)break}else a=!1}this.done=a,this.keep=o},t}(y),x=function(e){f(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r,i)||this;return o.name=a,o}return t}(b),ae=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(b),S=function(e){f(t,e);function t(t,n,r,i,a){var o=e.call(this,n,r,i,a)||this;return o.keyPath=t,o.propop=!0,o._nextNestedValue=function(e,t,n,r,i){return o.childrenNext(e,t,n,r,i),!o.done},o}return t.prototype.next=function(e,t,n){v(e,this.keyPath,this._nextNestedValue,0,t,n)},t}(b),C=function(e,t){if(e instanceof Function)return e;if(e instanceof RegExp)return function(t){var n=typeof t==`string`&&e.test(t);return e.lastIndex=0,n};var n=m(e);return function(e){return t(n,m(e))}},w=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._test=C(this.params,this.options.compare)},t.prototype.next=function(e,t,n){(!Array.isArray(n)||n.hasOwnProperty(t))&&this._test(e,t,n)&&(this.done=!0,this.keep=!0)},t}(y),oe=function(e){return function(t,n,r,i){return e(t,n,r,i)}},T=function(e){return oe(function(t,n,r,i){var a=typeof m(t),o=e(t);return new w(function(e){var t=te(e);return typeof m(t)===a&&o(t)},n,r,i)})},se=function(e,t,n,r){var i=r.operations[e];return i||E(e),i(t,n,r,e)},E=function(e){throw Error(`Unsupported operation: ${e}`)},D=function(e,t){for(var n in e)if(t.operations.hasOwnProperty(n)||n.charAt(0)===`$`)return!0;return!1},ce=function(e,t,n,r,i){if(D(t,i)){var a=k(t,n,i),o=a[0];if(a[1].length)throw Error(`Property queries must contain only operations, or exact objects.`);return new S(e,t,r,i,o)}return new S(e,t,r,i,[new w(t,r,i)])},O=function(e,t,n){t===void 0&&(t=null);var r=n===void 0?{}:n,i=r.compare,a=r.operations,o={compare:i||_,operations:Object.assign({},a||{})},s=k(e,null,o),c=s[0],l=s[1],u=[];return c.length&&u.push(new S([],e,t,o,c)),u.push.apply(u,l),u.length===1?u[0]:new ae(e,t,o,u)},k=function(e,t,n){var r=[],i=[];if(!ie(e))return r.push(new w(e,e,n)),[r,i];for(var a in e)if(n.operations.hasOwnProperty(a)){var o=se(a,e[a],e,n);if(o&&!o.propop&&t&&!n.operations[t])throw Error(`Malformed query. ${a} cannot be matched against property.`);o!=null&&r.push(o)}else a.charAt(0)===`$`?E(a):i.push(ce(a.split(`.`),e[a],a,e,n));return[r,i]},le=function(e){return function(t,n,r){return e.reset(),e.next(t,n,r),e.keep}},ue=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._test=C(this.params,this.options.compare)},t.prototype.reset=function(){e.prototype.reset.call(this),this.keep=!0},t.prototype.next=function(e){this._test(e)&&(this.done=!0,this.keep=!1)},t}(y),de=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){if(!this.params||typeof this.params!=`object`)throw Error(`Malformed query. $elemMatch must by an object.`);this._queryOperation=O(this.params,this.owneryQuery,this.options)},t.prototype.reset=function(){e.prototype.reset.call(this),this._queryOperation.reset()},t.prototype.next=function(e){if(h(e)){for(var t=0,n=e.length;t<n;t++){this._queryOperation.reset();var r=e[t];this._queryOperation.next(r,t,e,!1),this.keep=this.keep||this._queryOperation.keep}this.done=!0}else this.done=!1,this.keep=!1},t}(y),fe=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){this._queryOperation=O(this.params,this.owneryQuery,this.options)},t.prototype.reset=function(){e.prototype.reset.call(this),this._queryOperation.reset()},t.prototype.next=function(e,t,n,r){this._queryOperation.next(e,t,n,r),this.done=this._queryOperation.done,this.keep=!this._queryOperation.keep},t}(y),A=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){},t.prototype.next=function(e){h(e)&&e.length===this.params&&(this.done=!0,this.keep=!0)},t}(y),j=function(e){if(e.length===0)throw Error(`$and/$or/$nor must be a nonempty array`)},M=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!1,t}return t.prototype.init=function(){var e=this;j(this.params),this._ops=this.params.map(function(t){return O(t,null,e.options)})},t.prototype.reset=function(){this.done=!1,this.keep=!1;for(var e=0,t=this._ops.length;e<t;e++)this._ops[e].reset()},t.prototype.next=function(e,t,n){for(var r=!1,i=!1,a=0,o=this._ops.length;a<o;a++){var s=this._ops[a];if(s.next(e,t,n),s.keep){r=!0,i=s.keep;break}}this.keep=i,this.done=r},t}(y),pe=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!1,t}return t.prototype.next=function(t,n,r){e.prototype.next.call(this,t,n,r),this.keep=!this.keep},t}(M),N=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.init=function(){var e=this,t=Array.isArray(this.params)?this.params:[this.params];this._testers=t.map(function(t){if(D(t,e.options))throw Error(`cannot nest \$ under ${e.name.toLowerCase()}`);return C(t,e.options.compare)})},t.prototype.next=function(e,t,n){for(var r=!1,i=!1,a=0,o=this._testers.length;a<o;a++){var s=this._testers[a];if(s(e)){r=!0,i=!0;break}}this.keep=i,this.done=r},t}(y),me=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,i)||this;return a.propop=!0,a._in=new N(t,n,r,i),a}return t.prototype.next=function(e,t,n,r){this._in.next(e,t,n),h(n)&&!r?this._in.keep?(this.keep=!1,this.done=!0):t==n.length-1&&(this.keep=!0,this.done=!0):(this.keep=!this._in.keep,this.done=!0)},t.prototype.reset=function(){e.prototype.reset.call(this),this._in.reset()},t}(y),he=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.propop=!0,t}return t.prototype.next=function(e,t,n,r,i){i?n.hasOwnProperty(t)===this.params&&(this.done=!0,this.keep=!0):(this.done=!0,this.keep=!this.params)},t}(y),ge=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,t.map(function(e){return O(e,n,r)}),i)||this;return a.propop=!1,j(t),a}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(x),P=function(e){f(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r,t.map(function(e){return O(e,n,r)}),i)||this;return a.propop=!0,a}return t.prototype.next=function(e,t,n,r){this.childrenNext(e,t,n,r)},t}(x),F=function(e,t,n){return new w(e,t,n)},I=function(e,t,n,r){return new ue(e,t,n,r)},L=function(e,t,n,r){return new M(e,t,n,r)},_e=function(e,t,n,r){return new pe(e,t,n,r)},ve=function(e,t,n,r){return new de(e,t,n,r)},ye=function(e,t,n,r){return new me(e,t,n,r)},be=function(e,t,n,r){return new N(e,t,n,r)},xe=T(function(e){return function(t){return t!=null&&t<e}}),Se=T(function(e){return function(t){return t===e||t<=e}}),Ce=T(function(e){return function(t){return t!=null&&t>e}}),we=T(function(e){return function(t){return t===e||t>=e}}),Te=function(e,t,n){var r=e[0],i=e[1];return new w(function(e){return m(e)%r===i},t,n)},Ee=function(e,t,n,r){return new he(e,t,n,r)},De=function(e,t,n){return new w(new RegExp(e,t.$options),t,n)},Oe=function(e,t,n,r){return new fe(e,t,n,r)},R={number:function(e){return typeof e==`number`},string:function(e){return typeof e==`string`},bool:function(e){return typeof e==`boolean`},array:function(e){return Array.isArray(e)},null:function(e){return e===null},timestamp:function(e){return e instanceof Date}},ke=Object.freeze({__proto__:null,$Size:A,$all:function(e,t,n,r){return new P(e,t,n,r)},$and:function(e,t,n,r){return new ge(e,t,n,r)},$elemMatch:ve,$eq:F,$exists:Ee,$gt:Ce,$gte:we,$in:be,$lt:xe,$lte:Se,$mod:Te,$ne:I,$nin:ye,$nor:_e,$not:Oe,$options:function(){return null},$or:L,$regex:De,$size:function(e,t,n){return new A(e,t,n,`$size`)},$type:function(e,t,n){return new w(function(t){if(typeof e==`string`){if(!R[e])throw Error(`Type alias does not exist`);return R[e](t)}return t==null?!1:t instanceof e||t.constructor===e},t,n)},$where:function(e,t,n){var r;if(g(e))r=e;else if(!{}.CSP_ENABLED)r=Function(`obj`,`return `+e);else throw Error(`In CSP mode, sift does not support strings in "$where" condition`);return new w(function(e){return r.bind(e)(e)},t,n)}}),Ae=function(e,t,n){var r=n===void 0?{}:n,i=r.compare,a=r.operations;return O(e,t,{compare:i,operations:Object.assign({},ke,a||{})})},z=function(e,t){return t===void 0&&(t={}),le(Ae(e,null,t))},je=z.createEqualsOperation,Me=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`,Ne=(e,t)=>String(e)===String(t),Pe={$contains(e,t,n){return je(t=>Array.isArray(t)&&t.some(t=>Ne(t,e)),t,n)}};function B(e,t){if(!e)return!0;try{return z(e,{operations:Pe})(t)}catch{return!1}}function V(e,t){return typeof e==`boolean`?e:e?B(e,t):!1}function Fe(e,t,n){if(Me(t))return[`${e} = ${n(t)}`];let r=[];for(let[i,a]of Object.entries(t))if(a!==void 0)switch(i){case`$eq`:r.push(`${e} = ${n(a)}`);break;case`$ne`:r.push(`${e} ≠ ${n(a)}`);break;case`$gt`:r.push(`${e} > ${String(a)}`);break;case`$lt`:r.push(`${e} < ${String(a)}`);break;case`$gte`:r.push(`${e} ≥ ${String(a)}`);break;case`$lte`:r.push(`${e} ≤ ${String(a)}`);break;case`$in`:r.push(`${e} ∈ {${a.map(n).join(`, `)}}`);break;case`$nin`:r.push(`${e} ∉ {${a.map(n).join(`, `)}}`);break;case`$contains`:r.push(`${e} contains ${n(a)}`);break;default:break}return r}function H(e,t,n){if(!e)return[];let r=[];for(let[i,a]of Object.entries(e))if(a!==void 0){if(i===`$and`){for(let e of a)r.push(...H(e,t,n));continue}if(i===`$or`){let e=a.map(e=>H(e,t,n)).filter(e=>e.length>0).map(e=>e.length>1?`(${e.join(` and `)})`:e[0]);e.length&&r.push(e.join(` or `));continue}r.push(...Fe(t(i),a,e=>n?n(i,e):String(e)))}return r}function U(e){let t=[];for(let n of e)if(i(n))t.push([n.key,n.type]);else if(a(n)){if(r(n))continue;let e=n.key?`${n.key}__`:``;for(let[r,i]of U(n.fields))t.push([e+r,i])}return t}var W=new WeakMap;function G(e){let t=W.get(e);return t||(t=Object.fromEntries(U(e)),W.set(e,t)),t}function Ie(e){let t=U(e.fields).map(([e])=>e),n=t.find((e,n)=>t.indexOf(e)!==n);if(n)throw Error(`[shelf] ${e.library}/${e.shelf}: duplicate key '${n}'`);return e.standalone!==!1&&!e.views?.table?.length&&console.warn(`[shelf] ${e.library}/${e.shelf}: standalone shelf without an explicit views.table`),e}function K(e){if(e.views?.title)return e.views.title;let t=G(e.fields),n=e.views?.inline?.find(e=>t[e]&&!J(t[e].kind));if(n)return n;if(t.name)return`name`;let r=U(e.fields).find(([,e])=>!e.virtual&&Y(e.prim));return r?r[0]:`id`}function Le(e,t){return String(t[K(e)]??t.id??``)}function q(e,t){let n=G(e.fields);return t.filter(e=>n[e]&&!n[e].virtual)}var Re=new Set([`image`,`media`,`avatar`,`cover`]),J=e=>Re.has(e),Y=e=>e===`string`||e===`text`;function X(e){let t=e.views?.inline?.length?q(e,e.views.inline):[];return t.length?t:[K(e)]}function ze(e){let t=G(e.fields);return X(e).find(e=>t[e]&&J(t[e].kind))}function Be(e,t){let n=G(e.fields);return X(e).reduce((e,r)=>{if(!n[r]||!J(n[r].kind)){let n=t[r];n!=null&&n!==``&&e.push(String(n))}return e},[]).join(` `).trim()||Le(e,t)}function Ve(e){let t=K(e);return[t,...e.views?.table?.length?q(e,e.views.table.filter(e=>e!==t)):[]]}var He=new Set([`select`,`checkbox`,`relation`]);function Z(e){return e.views?.groupBy?.length?q(e,e.views.groupBy):U(e.fields).filter(([,e])=>!e.virtual&&He.has(e.prim)).map(([e])=>e)}function Ue(e){let t=e.views?.defaultGroupBy;if(t){let n=G(e.fields);if(n[t]&&!n[t].virtual)return t}return Z(e)[0]}function Q(s,l){let u={};for(let d of s)if(i(d)){if(d.type.virtual)continue;u[d.key]=l?d.type.zod.optional():d.type.zod}else if(a(d))if(r(d)){let t=n(e(Q(d.fields,l)).passthrough());u[d.key]=l?t.optional():d.required?t:t.optional()}else if(o(d)){let n=e(Q(d.fields,l)).passthrough();d.kind===`url`&&(n=t(e=>typeof e==`string`?c(e)??{}:e,n)),u[d.key]=l?n.optional():d.required?n:n.optional()}else Object.assign(u,Q(d.fields,l));return u}var We=e=>e==null||e===``||Array.isArray(e)&&e.length===0;function $(e,t,n){return e.superRefine((e,r)=>{for(let[i,a]of U(t.fields))a.virtual||i.includes(`__`)||n&&!(i in e)||a.required!==!0&&V(a.required,e)&&We(e[i])&&r.addIssue({code:`custom`,path:[i],message:JSON.stringify({code:`required`})})})}function Ge(t){return $(e(Q(t.fields,!1)),t,!1)}function Ke(t){return $(e(Q(t.fields,!0)),t,!0)}export{u as _,U as a,ze as c,Ve as d,K as f,l as g,V as h,Ie as i,Be as l,B as m,Ke as n,G as o,H as p,Ue as r,Z as s,Ge as t,J as u,c as v};
@@ -1,4 +1,4 @@
1
- import{E as e,R as t,_ as n,i as r,t as i,w as a}from"./fields-CQxZPdka.js";import{i as o}from"./shelf-iRNXQLvo.js";import{t as s}from"./extend-DrbW8fXY.js";import{n as c,r as l}from"./plugin-q1oOYqt7.js";import{t as u}from"./settings-Dfvzj6n2.js";var d=/^[A-Za-z]{2}\d{2}[A-Za-z0-9]{11,30}$/;function f(e){let t=e.toUpperCase().replace(/\s+/g,``),n=t.slice(4)+t.slice(0,4),r=``;for(let e of n){let t=e.charCodeAt(0);t>=65&&t<=90?r+=(t-55).toString():r+=e}let i=0;for(let e of r)i=(i*10+(e.charCodeAt(0)-48))%97;return i===1}function p(r){let o=r.required??!1,s=t().regex(d,{message:e(`pattern`,{messageKey:`core.presets.iban`})}).refine(f,{message:e(`pattern`,{messageKey:`core.presets.iban`})});return n(r,i({kind:`text`,label:r.label??``,required:o,prim:`text`,column:`text`,hints:{mask:`iban`,maskStore:`unmasked`},zod:a(s,o)},r.multiple??!1))}var m=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function h(r){let o=r.required??!1,s=t().regex(m,{message:e(`pattern`,{messageKey:`finance.presets.bic`})});return n(r,i({kind:`text`,label:r.label??``,required:o,prim:`text`,column:`text`,hints:{},zod:a(s,o)},r.multiple??!1))}var g=o({shelf:`account`,library:`finance`,label:`finance.account.label`,icon:`lucide:landmark`,claude:`Firefly III account (read-only mirror). kind — account type.
1
+ import{E as e,R as t,_ as n,i as r,t as i,w as a}from"./fields-B4fdbc1_.js";import{i as o}from"./shelf-e7xL1R3N.js";import{t as s}from"./extend-DDZLGxKJ.js";import{n as c,r as l}from"./plugin-q1oOYqt7.js";import{t as u}from"./settings-Dfvzj6n2.js";var d=/^[A-Za-z]{2}\d{2}[A-Za-z0-9]{11,30}$/;function f(e){let t=e.toUpperCase().replace(/\s+/g,``),n=t.slice(4)+t.slice(0,4),r=``;for(let e of n){let t=e.charCodeAt(0);t>=65&&t<=90?r+=(t-55).toString():r+=e}let i=0;for(let e of r)i=(i*10+(e.charCodeAt(0)-48))%97;return i===1}function p(r){let o=r.required??!1,s=t().regex(d,{message:e(`pattern`,{messageKey:`core.presets.iban`})}).refine(f,{message:e(`pattern`,{messageKey:`core.presets.iban`})});return n(r,i({kind:`text`,label:r.label??``,required:o,prim:`text`,column:`text`,hints:{mask:`iban`,maskStore:`unmasked`},zod:a(s,o)},r.multiple??!1))}var m=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function h(r){let o=r.required??!1,s=t().regex(m,{message:e(`pattern`,{messageKey:`finance.presets.bic`})});return n(r,i({kind:`text`,label:r.label??``,required:o,prim:`text`,column:`text`,hints:{},zod:a(s,o)},r.multiple??!1))}var g=o({shelf:`account`,library:`finance`,label:`finance.account.label`,icon:`lucide:landmark`,claude:`Firefly III account (read-only mirror). kind — account type.
2
2
  current_balance — current balance. firefly_id — external key (do not edit).`,views:{table:[`kind`,`currency`,`current_balance`]},fields:[r.title({key:`name`,label:`core.fields.name`}),r.sheet({fields:[[r.select({key:`kind`,label:`finance.account.fields.kind`,options:[{value:`asset`,title:`finance.account.options.asset`},{value:`expense`,title:`finance.account.options.expense`},{value:`revenue`,title:`finance.account.options.revenue`},{value:`liability`,title:`finance.account.options.liability`},{value:`cash`,title:`finance.account.options.cash`}]}),r.string({key:`currency`,label:`finance.account.fields.currency`,rules:{max:3}})],[r.money({key:`current_balance`,label:`finance.account.fields.current_balance`}),p({key:`iban`,label:`finance.account.fields.iban`})],[r.string({key:`bank`,label:`finance.account.fields.bank`,rules:{max:120}}),h({key:`bic`,label:`finance.account.fields.bic`})]]}),r.string({key:`firefly_id`,label:`finance.account.fields.firefly_id`,rules:{max:32}})]}),_=o({shelf:`transaction`,library:`finance`,label:`finance.transaction.label`,icon:`lucide:arrow-left-right`,claude:`Firefly III transaction (read-only). Each split = a separate record.
3
3
  source/destination — accounts. firefly_id — split journal id (do not edit).`,views:{table:[`date`,`amount`,`kind`,`description`]},fields:[r.title({key:`description`,label:`finance.transaction.fields.description`}),r.sheet({fields:[[r.date({key:`date`,label:`finance.transaction.fields.date`}),r.money({key:`amount`,label:`finance.transaction.fields.amount`})],[r.select({key:`kind`,label:`finance.transaction.fields.kind`,options:[{value:`withdrawal`,title:`finance.transaction.options.withdrawal`},{value:`deposit`,title:`finance.transaction.options.deposit`},{value:`transfer`,title:`finance.transaction.options.transfer`}]}),r.string({key:`category`,label:`finance.transaction.fields.category`,rules:{max:100}})],[r.relation({key:`source`,label:`finance.transaction.fields.source`,options:{library:`finance`,shelf:`account`}}),r.relation({key:`destination`,label:`finance.transaction.fields.destination`,options:{library:`finance`,shelf:`account`}})]]}),r.string({key:`firefly_id`,label:`finance.transaction.fields.firefly_id`,rules:{max:32}})]}),v=o({shelf:`bill`,library:`finance`,label:`finance.bill.label`,icon:`lucide:receipt`,claude:`Recurring Firefly III payment (Bill = subscription, read-only).
4
4
  repeat — recurrence. next_expected — next expected date. firefly_id — do not edit.`,views:{table:[`amount_min`,`repeat`,`next_expected`,`active`]},fields:[r.title({key:`name`,label:`core.fields.name`}),r.sheet({fields:[[r.money({key:`amount_min`,label:`finance.bill.fields.amount_min`}),r.money({key:`amount_max`,label:`finance.bill.fields.amount_max`})],[r.select({key:`repeat`,label:`finance.bill.fields.repeat`,options:[{value:`weekly`,title:`finance.bill.options.weekly`},{value:`monthly`,title:`finance.bill.options.monthly`},{value:`quarterly`,title:`finance.bill.options.quarterly`},{value:`yearly`,title:`finance.bill.options.yearly`}]}),r.date({key:`next_expected`,label:`finance.bill.fields.next_expected`})]]}),r.boolean({key:`active`,label:`finance.bill.fields.active`}),r.string({key:`firefly_id`,label:`finance.bill.fields.firefly_id`,rules:{max:32}})]}),y=s({id:`item_financing`,label:`finance.item_financing.label`,icon:`lucide:credit-card`,attachTo:[{library:`things`,shelf:`item`}],showWhen:{paymentStatus:{$in:[`installment`,`credit`]}},claude:`Installment/credit details for an item. creditor — who is owed (bank/store).
@@ -0,0 +1 @@
1
+ import{i as e,r as t,s as n}from"./data-size-DCGcE2iT.js";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./src-CQcwtQ4u.js";export{s as cidr,t as dataSize,a as default,l as dev,e as diskSize,i as hostname,r as imei,o as ip,c as mac,n as ram};
@@ -1 +1 @@
1
- import{i as e}from"./fields-CQxZPdka.js";import{i as t}from"./shelf-iRNXQLvo.js";import{n,r}from"./plugin-q1oOYqt7.js";import{t as i}from"./settings-Dfvzj6n2.js";var a=t({shelf:`bus_route`,library:`transit`,label:`transit.bus_route.label`,icon:`lucide:bus`,views:{table:[`route_number`,`from`,`to`]},fields:[e.title({key:`name`,label:`core.fields.name`}),e.int({key:`route_number`,label:`transit.bus_route.fields.route_number`}),e.string({key:`from`,label:`transit.bus_route.fields.from`,rules:{max:100}}),e.string({key:`to`,label:`transit.bus_route.fields.to`,rules:{max:100}}),e.string({key:`stop`,label:`transit.bus_route.fields.stop`,rules:{max:200}}),e.time({key:`weekday_times`,label:`transit.bus_route.fields.weekday_times`,multiple:!0}),e.time({key:`saturday_times`,label:`transit.bus_route.fields.saturday_times`,multiple:!0}),e.time({key:`sunday_times`,label:`transit.bus_route.fields.sunday_times`,multiple:!0}),e.text({key:`notes`,label:`transit.bus_route.fields.notes`,rules:{max:500}}),e.tags({key:`tags`,label:`transit.bus_route.fields.tags`})]}),o=n({id:`transit`,version:`1.0.0`,dependsOn:[],libraries:[{meta:r({id:`transit`,label:`transit.library.label`,icon:`lucide:bus`,agent:`Local bus routes and their departure schedules (bus_route).`}),shelves:[a]}],settings:i({label:`transit.settings.label`,fields:[e.string({key:`caldav_calendar`,label:`transit.settings.caldav_calendar`}),e.string({key:`caldav_url`,label:`transit.settings.caldav_url`}),e.string({key:`caldav_username`,label:`transit.settings.caldav_username`}),e.password({key:`caldav_password`,label:`transit.settings.caldav_password`})]})});export{o as default};
1
+ import{i as e}from"./fields-B4fdbc1_.js";import{i as t}from"./shelf-e7xL1R3N.js";import{n,r}from"./plugin-q1oOYqt7.js";import{t as i}from"./settings-Dfvzj6n2.js";var a=t({shelf:`bus_route`,library:`transit`,label:`transit.bus_route.label`,icon:`lucide:bus`,views:{table:[`route_number`,`from`,`to`]},fields:[e.title({key:`name`,label:`core.fields.name`}),e.int({key:`route_number`,label:`transit.bus_route.fields.route_number`}),e.string({key:`from`,label:`transit.bus_route.fields.from`,rules:{max:100}}),e.string({key:`to`,label:`transit.bus_route.fields.to`,rules:{max:100}}),e.string({key:`stop`,label:`transit.bus_route.fields.stop`,rules:{max:200}}),e.time({key:`weekday_times`,label:`transit.bus_route.fields.weekday_times`,multiple:!0}),e.time({key:`saturday_times`,label:`transit.bus_route.fields.saturday_times`,multiple:!0}),e.time({key:`sunday_times`,label:`transit.bus_route.fields.sunday_times`,multiple:!0}),e.text({key:`notes`,label:`transit.bus_route.fields.notes`,rules:{max:500}}),e.tags({key:`tags`,label:`transit.bus_route.fields.tags`})]}),o=n({id:`transit`,version:`1.0.0`,dependsOn:[],libraries:[{meta:r({id:`transit`,label:`transit.library.label`,icon:`lucide:bus`,agent:`Local bus routes and their departure schedules (bus_route).`}),shelves:[a]}],settings:i({label:`transit.settings.label`,fields:[e.string({key:`caldav_calendar`,label:`transit.settings.caldav_calendar`}),e.string({key:`caldav_url`,label:`transit.settings.caldav_url`}),e.string({key:`caldav_username`,label:`transit.settings.caldav_username`}),e.password({key:`caldav_password`,label:`transit.settings.caldav_password`})]})});export{o as default};
@@ -1,2 +1,2 @@
1
- import{i as e}from"./fields-CQxZPdka.js";import{i as t}from"./shelf-iRNXQLvo.js";import{t as n}from"./extend-DrbW8fXY.js";import{n as r,r as i}from"./plugin-q1oOYqt7.js";var a=t({shelf:`personal_document`,library:`documents`,label:`documents.personal_document.label`,icon:`lucide:id-card`,views:{table:[`owner`,`type`,`surname`,`expires`]},fields:[e.title({key:`name`,label:`core.fields.name`}),e.image({key:`logo`,label:`documents.personal_document.fields.logo`}),e.text({key:`description`,label:`documents.personal_document.fields.description`,rules:{max:1e3}}),e.string({key:`surname`,label:`documents.personal_document.fields.surname`,rules:{max:100}}),e.string({key:`given_names`,label:`documents.personal_document.fields.given_names`,rules:{max:200}}),e.select({key:`sex`,label:`documents.personal_document.fields.sex`,options:[{value:`M`,title:`documents.personal_document.options.sex.M`},{value:`F`,title:`documents.personal_document.options.sex.F`}]}),e.date({key:`birth_date`,label:`documents.personal_document.fields.birth_date`}),e.select({key:`nationality`,label:`documents.personal_document.fields.nationality`,options:`countries`}),e.string({key:`number`,label:`documents.personal_document.fields.number`,rules:{max:50}}),e.string({key:`record_no`,label:`documents.personal_document.fields.record_no`,rules:{max:50}}),e.date({key:`issued`,label:`documents.personal_document.fields.issued`}),e.reminder({key:`expires`,label:`documents.personal_document.fields.expires`,rules:{lead:60}}),e.string({key:`authority`,label:`documents.personal_document.fields.authority`,rules:{max:200}}),e.relation({key:`storage`,label:`documents.personal_document.fields.storage`,options:{library:`things`,shelf:`storage_location`}}),e.string({key:`mrz`,label:`documents.personal_document.fields.mrz`,rules:{max:200}}),e.relation({key:`owner`,label:`documents.personal_document.fields.owner`,options:{library:`people`,shelf:`person`}}),e.image({key:`photos`,label:`documents.personal_document.fields.photos`,multiple:!0}),e.text({key:`notes`,label:`documents.personal_document.fields.notes`,rules:{max:1e3}}),e.select({key:`type`,label:`core.fields.type`,required:!0,options:[{value:`P`,title:`documents.personal_document.options.type.P`},{value:`PA`,title:`documents.personal_document.options.type.PA`},{value:`TP`,title:`documents.personal_document.options.type.TP`},{value:`ID`,title:`documents.personal_document.options.type.ID`},{value:`DL`,title:`documents.personal_document.options.type.DL`},{value:`BR`,title:`documents.personal_document.options.type.BR`},{value:`MC`,title:`documents.personal_document.options.type.MC`},{value:`OT`,title:`documents.personal_document.options.type.OT`}]}),e.tags({key:`tags`,label:`documents.personal_document.fields.tags`})]}),o=n({id:`person_identity`,label:`documents.person_identity.label`,icon:`lucide:globe`,attachTo:[{library:`people`,shelf:`person`}],claude:`Canonical person identity (not tied to a physical document).
1
+ import{i as e}from"./fields-B4fdbc1_.js";import{i as t}from"./shelf-e7xL1R3N.js";import{t as n}from"./extend-DDZLGxKJ.js";import{n as r,r as i}from"./plugin-q1oOYqt7.js";var a=t({shelf:`personal_document`,library:`documents`,label:`documents.personal_document.label`,icon:`lucide:id-card`,views:{table:[`owner`,`type`,`surname`,`expires`]},fields:[e.title({key:`name`,label:`core.fields.name`}),e.image({key:`logo`,label:`documents.personal_document.fields.logo`}),e.text({key:`description`,label:`documents.personal_document.fields.description`,rules:{max:1e3}}),e.string({key:`surname`,label:`documents.personal_document.fields.surname`,rules:{max:100}}),e.string({key:`given_names`,label:`documents.personal_document.fields.given_names`,rules:{max:200}}),e.select({key:`sex`,label:`documents.personal_document.fields.sex`,options:[{value:`M`,title:`documents.personal_document.options.sex.M`},{value:`F`,title:`documents.personal_document.options.sex.F`}]}),e.date({key:`birth_date`,label:`documents.personal_document.fields.birth_date`}),e.select({key:`nationality`,label:`documents.personal_document.fields.nationality`,options:`countries`}),e.string({key:`number`,label:`documents.personal_document.fields.number`,rules:{max:50}}),e.string({key:`record_no`,label:`documents.personal_document.fields.record_no`,rules:{max:50}}),e.date({key:`issued`,label:`documents.personal_document.fields.issued`}),e.reminder({key:`expires`,label:`documents.personal_document.fields.expires`,rules:{lead:60}}),e.string({key:`authority`,label:`documents.personal_document.fields.authority`,rules:{max:200}}),e.relation({key:`storage`,label:`documents.personal_document.fields.storage`,options:{library:`things`,shelf:`storage_location`}}),e.string({key:`mrz`,label:`documents.personal_document.fields.mrz`,rules:{max:200}}),e.relation({key:`owner`,label:`documents.personal_document.fields.owner`,options:{library:`people`,shelf:`person`}}),e.image({key:`photos`,label:`documents.personal_document.fields.photos`,multiple:!0}),e.text({key:`notes`,label:`documents.personal_document.fields.notes`,rules:{max:1e3}}),e.select({key:`type`,label:`core.fields.type`,required:!0,options:[{value:`P`,title:`documents.personal_document.options.type.P`},{value:`PA`,title:`documents.personal_document.options.type.PA`},{value:`TP`,title:`documents.personal_document.options.type.TP`},{value:`ID`,title:`documents.personal_document.options.type.ID`},{value:`DL`,title:`documents.personal_document.options.type.DL`},{value:`BR`,title:`documents.personal_document.options.type.BR`},{value:`MC`,title:`documents.personal_document.options.type.MC`},{value:`OT`,title:`documents.personal_document.options.type.OT`}]}),e.tags({key:`tags`,label:`documents.personal_document.fields.tags`})]}),o=n({id:`person_identity`,label:`documents.person_identity.label`,icon:`lucide:globe`,attachTo:[{library:`people`,shelf:`person`}],claude:`Canonical person identity (not tied to a physical document).
2
2
  nationality — ISO alpha-2. variants — given/family name per language (field.group multiple: lang+name+surname).`,fields:[e.select({key:`nationality`,label:`documents.person_identity.fields.nationality`,options:`countries`}),e.keyed({key:`variants`,label:`documents.person_identity.fields.variants`,by:e.select({key:`lang`,label:`documents.person_identity.variants.lang`,options:`languages`}),fields:[e.string({key:`name`,label:`documents.person_identity.variants.name`}),e.string({key:`surname`,label:`documents.person_identity.variants.surname`})]})]}),s=r({id:`documents`,version:`1.0.0`,dependsOn:[`people`],libraries:[{meta:i({id:`documents`,label:`documents.library.label`,icon:`lucide:id-card`,agent:`Personal documents — IDs, passports, licences (personal_document); tracks expiry.`}),shelves:[a]}],extends_:[o]});export{s as default};
@@ -1 +1 @@
1
- import{i as e}from"./fields-CQxZPdka.js";import{i as t}from"./shelf-iRNXQLvo.js";import{n,r}from"./plugin-q1oOYqt7.js";var i=t({shelf:`person`,library:`people`,label:`people.person.label`,icon:`lucide:user`,claude:`A person card. fullName — the full name (first + last), used as the title.`,views:{inline:[`logo`,`fullName`],table:[`birthDate`],select:{icon:`logo`,title:`fullName`,subtitle:`birthDate`}},fields:[e.image({key:`logo`,label:`people.person.fields.logo`}),e.string({key:`fullName`,label:`people.person.fields.fullName`,required:!0}),e.string({key:`description`,label:`people.person.fields.description`,rules:{max:500}}),e.date({key:`birthDate`,label:`people.person.fields.birthDate`,rules:{min:`1900-01-01`,max:`today`}}),e.select({key:`sex`,label:`people.person.fields.sex`,options:`sex`}),e.tel({key:`phone`,label:`people.person.fields.phone`}),e.email({key:`email`,label:`people.person.fields.email`}),e.text({key:`address`,label:`people.person.fields.address`,rules:{max:300}}),e.string({key:`occupation`,label:`people.person.fields.occupation`,rules:{max:200}}),e.string({key:`notes`,label:`people.person.fields.notes`,rules:{max:1e3}}),e.tags({key:`tags`,label:`people.person.fields.tags`})]}),a=n({id:`people`,version:`1.0.0`,dependsOn:[],libraries:[{meta:r({id:`people`,label:`people.library.label`,icon:`lucide:users`,agent:`People (person) — contacts, birthdays, jobs; referenced by health, travel, and others.`}),shelves:[i]}]});export{a as default};
1
+ import{i as e}from"./fields-B4fdbc1_.js";import{i as t}from"./shelf-e7xL1R3N.js";import{n,r}from"./plugin-q1oOYqt7.js";var i=t({shelf:`person`,library:`people`,label:`people.person.label`,icon:`lucide:user`,claude:`A person card. fullName — the full name (first + last), used as the title.`,views:{inline:[`logo`,`fullName`],table:[`birthDate`],select:{icon:`logo`,title:`fullName`,subtitle:`birthDate`}},fields:[e.image({key:`logo`,label:`people.person.fields.logo`}),e.string({key:`fullName`,label:`people.person.fields.fullName`,required:!0}),e.string({key:`description`,label:`people.person.fields.description`,rules:{max:500}}),e.date({key:`birthDate`,label:`people.person.fields.birthDate`,rules:{min:`1900-01-01`,max:`today`}}),e.select({key:`sex`,label:`people.person.fields.sex`,options:`sex`}),e.tel({key:`phone`,label:`people.person.fields.phone`}),e.email({key:`email`,label:`people.person.fields.email`}),e.text({key:`address`,label:`people.person.fields.address`,rules:{max:300}}),e.string({key:`occupation`,label:`people.person.fields.occupation`,rules:{max:200}}),e.string({key:`notes`,label:`people.person.fields.notes`,rules:{max:1e3}}),e.tags({key:`tags`,label:`people.person.fields.tags`})]}),a=n({id:`people`,version:`1.0.0`,dependsOn:[],libraries:[{meta:r({id:`people`,label:`people.library.label`,icon:`lucide:users`,agent:`People (person) — contacts, birthdays, jobs; referenced by health, travel, and others.`}),shelves:[i]}]});export{a as default};