@dubusoft/toodo-linux-arm64 1.11.1-dev.177 → 1.11.1-dev.179

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 (70) hide show
  1. package/bin/toodo +0 -0
  2. package/bin/toodo-server +0 -0
  3. package/package.json +1 -1
  4. package/web/assets/Item-DGNS1zZi.js +2 -0
  5. package/web/assets/LayoutChangeSnapshot-CKXseiXe.js +1 -0
  6. package/web/assets/MenuBottomSheet-C8nojjsg.js +1 -0
  7. package/web/assets/MenuBottomSheetActionList-BvD9f8bg.js +1 -0
  8. package/web/assets/Selector-BIzBOipe.js +2 -0
  9. package/web/assets/SwipeActionsLayer-Ck-splN1.js +1 -0
  10. package/web/assets/Tooltip-D5RzAbgJ.js +1 -0
  11. package/web/assets/button-CBaPb4j9.js +1 -0
  12. package/web/assets/createLucideIcon-DtNDbJdC.js +1 -0
  13. package/web/assets/details-sheet-AHboYDbw.js +1 -0
  14. package/web/assets/{event-CB2iK3mK.js → event-COpa9hhp.js} +1 -1
  15. package/web/assets/focusOutline.stylex-ZXdUNMFw.js +1 -0
  16. package/web/assets/focusReturn-BAqtMp_d.js +1 -0
  17. package/web/assets/index-DDiW1AI3.js +64 -0
  18. package/web/assets/index-bmzrMLgi.css +2 -0
  19. package/web/assets/inputHold-CZa_Ny55.js +1 -0
  20. package/web/assets/jsx-runtime-C3cWAN_r.js +1 -0
  21. package/web/assets/markdown-BLbQnFr8.js +32 -0
  22. package/web/assets/mergeProps-Poh9JbFs.js +1 -0
  23. package/web/assets/offline-screen-2u_fz51g.js +1 -0
  24. package/web/assets/padding.stylex-Q-kmgnXU.js +1 -0
  25. package/web/assets/primaryClick-88oQu3_u.js +1 -0
  26. package/web/assets/queries-a7XPgRcU.js +1 -0
  27. package/web/assets/reducedMotion-DCkUC6gt.js +1 -0
  28. package/web/assets/resolveSnapPoint-CBS37OcT.js +1 -0
  29. package/web/assets/review-DCsvyG77.js +1 -0
  30. package/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  31. package/web/assets/server-access-DfQBSxow.js +1 -0
  32. package/web/assets/task-details-C6ICAfEz.js +2 -0
  33. package/web/assets/task-graph-IKOFpxHe.js +8 -0
  34. package/web/assets/useDevWarning-DtAYt56R.js +1 -0
  35. package/web/assets/useLayerDismissal-BWIjwIJ-.js +1 -0
  36. package/web/assets/useLinkComponent-CqCWDM4X.js +4 -0
  37. package/web/assets/useTooltip-C_x74aGj.js +1 -0
  38. package/web/index.html +23 -20
  39. package/web/sw.js +2 -2
  40. package/web/version.json +1 -1
  41. package/web/assets/Item-ZRzKTOOV.js +0 -2
  42. package/web/assets/ItemSwipeLayer-Cd36YhD2.js +0 -1
  43. package/web/assets/LayoutChangeSnapshot-B4oZH00p.js +0 -1
  44. package/web/assets/MenuBottomSheet-DI91g7Ev.js +0 -1
  45. package/web/assets/MenuBottomSheetActionList-B_oeHm6H.js +0 -1
  46. package/web/assets/Selector-BwHo8VGI.js +0 -2
  47. package/web/assets/Tooltip-D2KklOm3.js +0 -1
  48. package/web/assets/button-BpXTpERz.js +0 -1
  49. package/web/assets/createLucideIcon-BVHtiYZr.js +0 -1
  50. package/web/assets/details-sheet-Bmm7uG_t.js +0 -1
  51. package/web/assets/devWarning-WNHQ_jrU.js +0 -1
  52. package/web/assets/focusOutline.stylex-C8peqGyQ.js +0 -1
  53. package/web/assets/focusReturn-sK-DMBDt.js +0 -1
  54. package/web/assets/index-D-zV9pKv.css +0 -2
  55. package/web/assets/index-D_3GoUFa.js +0 -58
  56. package/web/assets/jsx-runtime-D3jfb0Ew.js +0 -1
  57. package/web/assets/markdown-vYLeEAh6.js +0 -29
  58. package/web/assets/mergeProps-ptS-gIMz.js +0 -1
  59. package/web/assets/offline-screen-CD6xBoPC.js +0 -1
  60. package/web/assets/padding.stylex-DZAzBtx2.js +0 -1
  61. package/web/assets/presentation-vnGoTO8Y.js +0 -1
  62. package/web/assets/queries-XyxPBs72.js +0 -1
  63. package/web/assets/review-7e4-j-Mr.js +0 -1
  64. package/web/assets/server-access-vaP57Ouf.js +0 -1
  65. package/web/assets/task-details-CNGTtiAP.js +0 -2
  66. package/web/assets/task-graph-BPifaqer.js +0 -8
  67. package/web/assets/useLayerDismissal-DhnWLnTJ.js +0 -1
  68. package/web/assets/useLinkComponent-Cokdl8Ls.js +0 -4
  69. package/web/assets/useMediaQuery-oNWJZ4E0.js +0 -1
  70. package/web/assets/useTooltip-BCo1T06f.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{n,t as r}from"./jsx-runtime-C3cWAN_r.js";import{At as i,Ft as a,J as o,N as s,P as c,Pt as l,Vt as u,X as d,Y as f,Z as p,ct as m,et as h,gt as g,jt as ee,lt as _,mt as te}from"./focusOutline.stylex-ZXdUNMFw.js";var v=e(n(),1);function ne(e,t){let n=0,r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a];if(r!==null)i?i=!1:o===`\\`?i=!0:o===r&&(r=null);else if(o===`"`||o===`'`)r=o;else if(o===`(`)n++;else if(o===`)`)n=Math.max(0,n-1);else if(n===0&&t(a))return}}function re(e){let t=null;return ne(e,n=>e[n]===`,`&&(t=[e.slice(0,n).trim(),e.slice(n+1).trim()],!0)),t}function ie(e){let t=[],n=0;return ne(e,r=>(/\s/.test(e[r])&&(r>n&&t.push(e.slice(n,r)),n=r+1),!1)),e.length>n&&t.push(e.slice(n)),t}function ae(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e[r];if(t===`(`)n++;else if(t===`)`&&(n--,n===0))return r}return-1}function oe(e,t=e=>e){let n={},r=(t,n)=>{let a=t.indexOf(`var(`);if(a===-1)return t;let o=a+3,s=ae(t,o);if(s===-1)return t;let c=t.slice(o+1,s),l=re(c),u=(l?l[0]:c).trim(),d=l?l[1]:null,f;n.has(u)?f=t.slice(a,s+1):u in e?(n.add(u),f=i(u,n),n.delete(u)):f=d===null?t.slice(a,s+1):r(d.trim(),n);let p=r(t.slice(s+1),n);return t.slice(0,a)+f+p},i=(i,a)=>{if(i in n)return n[i];let o=e[i];if(o===void 0)return``;let s=t(o.includes(`var(`)?r(o,a):o);return n[i]=s,s};for(let t of Object.keys(e))i(t,new Set);return n}var y=null,b=new Map;function se(){return typeof ResizeObserver>`u`?null:(y||=new ResizeObserver(e=>{for(let t of e){let e=b.get(t.target);if(e)for(let n of[...e.keys()])n(t)}}),y)}function ce(e){return b.has(e)}function le(e,t){let n=b.get(e);n?n.set(t,(n.get(t)??0)+1):b.set(e,new Map([[t,1]])),se()?.observe(e),t({target:e});let r=!0;return()=>{r&&(r=!1,de(e,t))}}function ue(e,t){if(typeof ResizeObserver>`u`)return null;let n=ce(e),r=!1,i=!0,a=le(e,e=>{r&&t(e)});return r=!0,n&&queueMicrotask(()=>{i&&t(null)}),()=>{i=!1,a()}}function de(e,t){let n=b.get(e);if(t!=null){let e=n?.get(t);if(n==null||e==null)return;if(e>1){n.set(t,e-1);return}if(n.delete(t),n.size>0)return}b.delete(e),y&&(y.unobserve(e),b.size===0&&(y.disconnect(),y=null))}function x(e,t,n){let r=i(ee(`context/${e}`,t),()=>new WeakMap,e=>e instanceof WeakMap),a=r.get(v.createContext);if(a!=null)return a;let o=(0,v.createContext)(n);return o.displayName=e,r.set(v.createContext,o),o}var fe=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),pe=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=fe()})),me=r();function he(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}var ge=i(ee(`layer-scoped-context-resets`,2),()=>new WeakMap,e=>e instanceof WeakMap),S=ge.get(v.createContext);S??(S=new Map,ge.set(v.createContext,S));var C=S;function _e(e,t,n){let r=x(e,t,n);return C.has(r)||C.set(r,e=>(0,me.jsx)(r,{value:n,children:e})),r}function ve({children:e}){let[t]=(0,v.useState)(()=>[...C.values()]);return t.reduceRight((e,t)=>t(e),e)}function ye(e,t,n,r,i,a){return(0,v.useMemo)(()=>he(e,t,n,r,i,a),[e,t,n,r,i,a])}var be=[`onClick`,`onAuxClick`,`onDoubleClick`,`onContextMenu`,`onMouseDown`,`onMouseUp`,`onMouseMove`,`onMouseOver`,`onMouseOut`,`onPointerDown`,`onPointerUp`,`onPointerMove`,`onPointerOver`,`onPointerOut`,`onPointerCancel`,`onGotPointerCapture`,`onLostPointerCapture`,`onTouchStart`,`onTouchMove`,`onTouchEnd`,`onTouchCancel`],xe=()=>!0;function w(e){e.isPropagationStopped=xe}function Se(e={}){let t={};for(let n of be){let r=e[n];t[n]=typeof r==`function`?e=>{r(e),w(e)}:w}return{...t,...te}}function T(e){let t=e.visualViewport,n=t?.width??0;if(t==null||!(n>0))return e.innerHeight-Ce(e);let r=t.scale;return(Math.abs(e.innerWidth-n)<Math.abs(e.innerWidth-n*r)?e.innerHeight*r:e.innerHeight)-Ce(e)}function Ce(e){let t=e.document.documentElement,n=e.innerHeight-t.clientHeight;return!(n>0)||t.scrollWidth<=t.clientWidth?0:Math.min(n,Te(e.document))}var we=new WeakMap;function Te(e){let t=e.defaultView?.devicePixelRatio??1,n=we.get(e);if(n!=null&&n.devicePixelRatio===t)return n.thickness;let r=Ee(e);return we.set(e,{devicePixelRatio:t,thickness:r}),r}function Ee(e){let t=e.createElement(`div`);t.style.position=`absolute`,t.style.top=`-200px`,t.style.width=`100px`,t.style.height=`100px`,t.style.overflow=`scroll`,t.style.visibility=`hidden`,(e.body??e.documentElement).append(t);let n=t.offsetHeight-t.clientHeight;return t.remove(),n}var De=Number.parseFloat(oe(u)[`--duration-exit`]),E={originX:0,originY:0,phase:`idle`};function Oe(e,t,n){return Math.hypot(t-e.originX,n-e.originY)>10}function D(e,t,n,r){return{gesture:{...e,phase:t},paint:n,timer:r}}function ke(e,t){if(t.kind===`down`)return t.delayed===!1?{gesture:{originX:t.x,originY:t.y,phase:`pressed`},paint:`on`,timer:null}:{gesture:{originX:t.x,originY:t.y,phase:`armed`},paint:`none`,timer:`onset`};if(t.kind===`buttonDown`)return{gesture:{originX:0,originY:0,phase:`buttonHeld`},paint:`on`,timer:null};switch(e.phase){case`armed`:return t.kind===`move`?Oe(e,t.x,t.y)?D(e,`dead`,`none`,null):{gesture:e,paint:`none`,timer:null}:t.kind===`cancel`?D(e,`dead`,`none`,null):t.kind===`onset`?D(e,`pressed`,`on`,null):t.kind===`up`?D(e,`flash`,`on`,`flash`):{gesture:e,paint:`none`,timer:null};case`pressed`:return t.kind===`move`&&!Oe(e,t.x,t.y)?{gesture:e,paint:`on`,timer:null}:t.kind===`move`||t.kind===`cancel`?D(e,`dead`,`none`,null):t.kind===`up`?D(e,`fading`,`fading`,`fade`):{gesture:e,paint:`on`,timer:null};case`buttonHeld`:return t.kind===`up`?D(e,`fading`,`fading`,`fade`):t.kind===`cancel`?D(e,`dead`,`none`,null):{gesture:e,paint:`on`,timer:null};case`flash`:return t.kind===`flashEnd`?D(e,`fading`,`fading`,`fade`):{gesture:e,paint:`on`,timer:null};case`fading`:return t.kind===`fadeEnd`?{gesture:E,paint:`none`,timer:null}:{gesture:e,paint:`fading`,timer:null};case`dead`:return t.kind===`up`?{gesture:E,paint:`none`,timer:null}:{gesture:e,paint:`none`,timer:null};case`idle`:return{gesture:E,paint:`none`,timer:null}}}function Ae(){return E}var je=`(prefers-reduced-motion: reduce)`,Me=300,Ne=1e3,O=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function Pe(e){return e.visualViewport!=null&&e.self===e.top}function k(e){let t=e.visualViewport;if(t==null||!Pe(e))return 0;let n=T(e)-t.height*(t.scale??1);return n>1?Math.round(n*100)/100:0}var A=a(`keyboard/keyboard-height/stores`,2);function Fe(e){let t=A.get(e);return t??(t={height:0,startsAtHide:null,listeners:new Set,focusListeners:new Set,detach:null,detachFocus:null},A.set(e,t)),t}function Ie(e){return`virtualKeyboard`in e.navigator}function Le(e,t,n){return n>1&&n<t-1&&Ie(e)&&g(e,je)}function Re(e,t){let n=e.visualViewport;t.height=k(e);let r=null,i=0,a=0,o=(n,r)=>{n<=1&&t.height>1&&(t.startsAtHide=m(e).starts),t.height=n;let i={type:`viewport`,height:n,timeStamp:r};for(let e of[...t.listeners])e(i)},s=n=>{let s=k(e);if(Le(e,t.height,s)){if(r!=null&&Math.abs(s-i)<1)return;let t=e.performance.now();r==null?a=t+Ne:clearTimeout(r),i=s,r=setTimeout(()=>{r=null,o(k(e),e.performance.now())},Math.min(Me,a-t))}else r!=null&&(clearTimeout(r),r=null),o(s,n.timeStamp)};n?.addEventListener(`resize`,s),n?.addEventListener(`scroll`,s);let c=_(e,`resize`,e=>{p(e.target)||s(e)});return()=>{r!=null&&(clearTimeout(r),r=null),n?.removeEventListener(`resize`,s),n?.removeEventListener(`scroll`,s),c()}}function ze(e,t){let n=e=>{let n={type:e.type===`focusin`?`focusin`:`focusout`,height:t.height,timeStamp:e.timeStamp,target:e.target,relatedTarget:e.relatedTarget};for(let e of[...t.focusListeners])e(n)},r=_(e,`focusin`,n),i=_(e,`focusout`,n);return()=>{r(),i()}}function Be(e,t,{focus:n=!1}={}){let r=Fe(e);return r.listeners.add(t),r.detach??=Re(e,r),n&&(r.focusListeners.add(t),r.detachFocus??=ze(e,r)),()=>{r.listeners.delete(t),n&&(r.focusListeners.delete(t),r.focusListeners.size===0&&r.detachFocus!=null&&(r.detachFocus(),r.detachFocus=null)),r.listeners.size===0&&r.detach!=null&&(r.detach(),r.detach=null)}}function Ve(e){let t=A.get(e)?.startsAtHide,n=m(e);return n.fingers>0&&(t==null||n.starts!==t)}function j(e){let t=A.get(e);return t?.detach==null?k(e):t.height}function M(e){if(!f(e)||e.getAttribute(`inputmode`)===`none`)return!1;if(e.localName===`textarea`){let t=e;return!t.disabled&&!t.readOnly}if(e.localName===`input`){let t=e;return!t.disabled&&!t.readOnly&&!O.has((t.getAttribute(`type`)??`text`).toLowerCase())}return e.matches(`[contenteditable]:not([contenteditable="false"])`)}function He(e,t){if(!o(e))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&M(n))return n;let r=e.closest(`label`),i=f(r)?r.control:null;return t.contains(i)&&M(i)?i:null}var N=a(`keyboard/keyboard-height/focus-takeovers`,1);function Ue(e,{isActive:t,claim:n,park:r}){let i=i=>{if(t!=null&&!t())return;let a=n(i.relatedTarget);a==null?i.relatedTarget??r?.(i.target):a!==e.activeElement&&a.focus({preventScroll:!0})},a=N.get(e);if(a==null){let t=e.defaultView;if(t==null)return()=>{};let n=new Set,r=e=>{for(let t of[...n])n.has(t)&&t(e)};a={stop:_(t,`blur`,e=>{p(e.target)&&r(e)}),callers:n},N.set(e,a)}return a.callers.add(i),()=>{let t=N.get(e);t!=null&&t.callers.delete(i)&&t.callers.size===0&&(t.stop(),N.delete(e))}}var P=a(`keyboard/keyboard-height/touch-start-watches`,1);function We(e,t){let n=P.get(e);if(n==null){let t=e.defaultView;if(t==null)return()=>{};let r=new Set,i=_(t,`touchstart`,()=>{for(let e of[...r])e()}),a=_(t,`touchend`,()=>{}),o=_(t,`touchcancel`,()=>{});n={stop:()=>{i(),a(),o()},watches:r},P.set(e,n)}return n.watches.add(t),()=>{let n=P.get(e);n!=null&&n.watches.delete(t)&&n.watches.size===0&&(n.stop(),P.delete(e))}}function Ge(e,{owns:t,onTouch:n,documentScrollIsReveal:r=!1}){let i=e.document,a=null,o=!1,s=null;return{report:()=>{let t=e.visualViewport;a=t==null?null:{x:e.scrollX,y:e.scrollY,top:t.offsetTop,scale:t.scale},o=Ve(e),s=null},isRevealPan:n=>{let c=e.visualViewport,l=i.activeElement;return c!=null&&a!=null&&!o&&n>0&&c.offsetTop>a.top&&c.scale===a.scale&&l instanceof HTMLElement&&M(l)&&t(l)&&(e.scrollX===a.x&&e.scrollY===a.y||r&&(s??=qe(e,c,l,a)))},putBack:t=>{s=null,r&&a!=null&&(e.scrollX!==a.x||e.scrollY!==a.y)&&e.scrollTo({left:a.x,top:a.y,behavior:`instant`}),t==null?Je(e,a?.top??0):t.scrollIntoView({block:`start`,inline:`nearest`,behavior:`instant`})},stop:We(i,()=>{o=!0,n?.()})}}var Ke=2;function qe(e,t,n,r){let i=n.getBoundingClientRect(),a=(i.top+i.bottom)/2-t.height/2,o=e.document.scrollingElement??e.document.documentElement,s=o.scrollHeight-o.clientHeight,c=T(e)-t.height,l=Math.min(s,Math.max(0,r.y+a)),u=Math.min(c,Math.max(0,a));return e.scrollX===r.x&&Math.abs(e.scrollY-l)<=Ke&&Math.abs(t.offsetTop-u)<=Ke}function Je(e,t){let n=e.document,r=n.createElement(`div`);r.style.position=`fixed`,r.style.left=`0`,r.style.top=`${t}px`,r.style.width=`1px`,r.style.height=`1px`,r.style.visibility=`hidden`,r.style.pointerEvents=`none`,(n.body??n.documentElement).append(r),r.scrollIntoView({block:`start`,inline:`nearest`,behavior:`instant`}),r.remove()}function Ye(e,{claim:t,deliver:n}){let r=null,i=()=>{r=null,e.removeEventListener(`touchmove`,a),e.removeEventListener(`touchend`,o),e.removeEventListener(`touchcancel`,i)};function a(e){let t=e.touches[0];(r==null||e.touches.length!==1||t==null||Math.hypot(t.clientX-r.x,t.clientY-r.y)>10)&&i()}function o(a){let o=a.changedTouches[0],s=r;i(),s!=null&&o!=null&&a.cancelable&&t(s.control)===s.control&&(a.preventDefault(),n(s.control,o.clientX,o.clientY,o),h(e.ownerDocument,{takesLateMouse:!0}))}let s=n=>{if(r!=null){i();return}let s=n.touches[0],c=n.touches.length===1&&s!=null?t(n.target):null;c!=null&&s!=null&&(r={x:s.clientX,y:s.clientY,control:c},e.addEventListener(`touchmove`,a,{passive:!0}),e.addEventListener(`touchend`,o),e.addEventListener(`touchcancel`,i))};return e.addEventListener(`touchstart`,s,{passive:!0}),()=>{i(),e.removeEventListener(`touchstart`,s)}}function Xe(e){return e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement}function Ze(e,t,n){if(e.selectionStart==null)return;let r=c(e.ownerDocument,t,n,[]),i=r!=null&&r.node===e?r.offset:e.value.length;e.setSelectionRange(i,i)}function Qe(e,t,n){if(e.focus({preventScroll:!0}),Xe(e)){Ze(e,t,n);return}let r=e.ownerDocument,i=c(r,t,n,[]);if(i!=null&&e.isContentEditable&&e.contains(i.node)){let e=r.createRange();e.setStart(i.node,i.offset),e.collapse(!0);let t=r.getSelection();t?.removeAllRanges(),t?.addRange(e)}}var $e=Symbol.for(`@astryxdesign/core/interaction-modality/v1`);function F(e){let t=e,n=t[$e];if(n!=null)return n;let r={modality:`keyboard`,isTextEntrySincePointer:!1,isListening:!1,onPointerDown:()=>{r.modality=`pointer`,r.isTextEntrySincePointer=!0},onKeyDown:e=>{e.metaKey||e.altKey||e.ctrlKey||(r.modality=`keyboard`,tt(e)||(r.isTextEntrySincePointer=!1))}};return Object.defineProperty(t,$e,{value:r}),r}var et=new Set([`Backspace`,`CapsLock`,`Dead`,`Delete`,`Enter`,`Process`,`Shift`,`Unidentified`]);function tt(e){let t=typeof e.composedPath==`function`?e.composedPath()[0]:e.target;if(!M(t instanceof Element?t:null))return!1;let n=typeof e.key==`string`?e.key:``;return e.isComposing===!0||[...n].length===1||et.has(n)}function I(e,t,n){t.isListening!==n&&(t.isListening=n,n?(e.addEventListener(`pointerdown`,t.onPointerDown,{capture:!0,passive:!0}),e.addEventListener(`keydown`,t.onKeyDown,{capture:!0,passive:!0})):(e.removeEventListener(`pointerdown`,t.onPointerDown,{capture:!0}),e.removeEventListener(`keydown`,t.onKeyDown,{capture:!0})))}function L(){return typeof document>`u`||I(document,F(document),!0),()=>{}}function nt(e){if(typeof document<`u`&&e===document)return L();let t=F(e);t.consumers=(t.consumers??0)+1,I(e,t,!0);let n=!1;return()=>{n||(n=!0,t.consumers=(t.consumers??1)-1,t.consumers===0&&I(e,t,!1))}}function rt(e,t){t.release?.(),t.release=null;let n=e?.ownerDocument;if(n==null||typeof document<`u`&&n===document)return;let r=nt(n);return t.release=r,()=>{r(),t.release===r&&(t.release=null)}}function it(){(0,v.useEffect)(()=>L(),[]);let e=(0,v.useRef)(null),t=(0,v.useRef)({release:null});return{ref:(0,v.useCallback)(n=>{e.current=n;let r=rt(n,t.current);return()=>{r?.(),e.current===n&&(e.current=null)}},[]),readModality:(0,v.useCallback)(()=>R(e.current),[])}}function at(e,t=!0){return(0,v.useEffect)(()=>t?L():void 0,[t]),(0,v.useEffect)(()=>{let n=e.current?.ownerDocument;if(!(!t||n==null||typeof document<`u`&&n===document))return nt(n)}),(0,v.useCallback)(()=>R(e.current),[e])}function R(e){let t=e==null?null:e.nodeType===9?e:e.ownerDocument;return t==null?typeof document>`u`?`keyboard`:F(document).modality:F(t).modality}function ot(e){let t=e==null?typeof document>`u`?null:document:e.nodeType===9?e:e.ownerDocument;if(t==null)return!1;let n=F(t);return n.isTextEntrySincePointer??n.modality===`pointer`}var st={reset:{kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kKX8nH:`x1j61x8r`,k9WMMc:`x1yc453h`,kJI5tL:`x7ssn7h`,kTHuQy:`xzugeeo`,kP9fke:`x6mezaz`,kb6lSQ:`x1i21sxh`,k4JVr9:`xp3md9m`,kKMj4B:`x19pm5ym`,khDVqt:`xeaf4i8`,kTgw9:`x1lldw8n`,kHjlTd:`x1h4wwuj`,kE4Cay:`xxydokm`,$$css:!0}},ct={reset:{"--step-connector-gap":`x1qkaldv`,"--_astryx-text-overflow-wrap":`x1c9qq8g`,$$css:!0}},z={showMs:267,showCurve:[.1,0,0,1],showReportLagMs:25,hideMs:167,hideCurve:[.3,.1,.2,.9],hideAfterBlurMs:16,hideReportLagMs:33},B=.5;function lt(e=0){let t={kind:`change`,from:e,to:e,start:-1/0,velocity:0,animated:!1,predicted:!1,curve:null},n=null,r=(e,t,n)=>{let r=n.durationMs/1e3,i=s(n.points),a=n=>e+(t-e)*i(Math.min(1,Math.max(0,n/r)));return{value:a,velocity:e=>{if(e>=r)return 0;let t=Math.max(0,e-.001),n=Math.min(r,e+.001);return(a(n)-a(t))/(n-t)}}},i={durationMs:z.showMs,points:z.showCurve},a={durationMs:z.hideMs,points:z.hideCurve},o=()=>t.curve==null?0:t.curve.durationMs,c=e,l=e=>e<t.start?t.from:n==null||e>=t.start+o()?t.to:n.value((e-t.start)/1e3),u=e=>e<=t.start?t.velocity:n==null||e>=t.start+o()?0:n.velocity((e-t.start)/1e3),d=(e,o,s,{animated:d=!0,predicted:f=!1}={})=>{let p=Math.max(s,t.start),m=l(p),h=d?u(p):0,g=d?o>m?i:a:null;return t={kind:e,from:m,to:o,start:p,velocity:h,animated:d,predicted:f,curve:g},n=g!=null&&Math.abs(o-m)+Math.abs(h)>0?r(m,o,g):null,o>B&&(c=o),t},f=()=>(t.predicted&&(t={...t,predicted:!1}),null);return{get inset(){return t.to},get transition(){return t},presentation:l,velocity:u,report(e,n){if(e==null)return null;let r=t.to;if(Math.abs(e-r)<B)return f();if(e<=B)return d(`hide`,0,n-z.hideReportLagMs);if(r<=B){let t=c>e+B;return d(`show`,t?c:e,n-z.showReportLagMs,{predicted:t})}return d(`change`,e,n,{animated:!1})},blurred(e){return t.to<=B?null:d(`hide`,0,e+z.hideAfterBlurMs,{predicted:!0})},focused(e){return t.kind!==`hide`||!t.predicted?null:d(`show`,c,Math.max(e,t.start),{predicted:!0})},verify(e,n){return!t.predicted||e==null||n<t.start+o()?null:Math.abs(e-t.to)<B?f():d(e>t.to?`show`:`hide`,e,n)}}}function V(e){return Ie(e)?`chromium`:null}var ut=150,dt=150,ft=new Set([`date`,`datetime-local`,`month`,`time`,`week`]);function pt(e){let t=e instanceof Element?e:null;return M(t)||t instanceof HTMLSelectElement&&!t.disabled}function mt(e){let t=e;return t==null||t.nodeType!==1?!1:t.tagName===`SELECT`||t.tagName===`INPUT`&&ft.has(t.type)}function ht(e){return e.tagName===`IFRAME`||e.tagName===`FRAME`||e.tagName===`OBJECT`||e.tagName===`EMBED`||e.shadowRoot!=null||e.tagName.includes(`-`)}var gt=a(`keyboard/keyboard-layout-guide/guides`,1);function _t(e){let t=gt.get(e);return t??(t=vt(e),gt.set(e,t)),t}function vt(e){let t=new Set,n=V(e),r=lt(j(e)),i=null,a=null,o=e=>pt(e)&&!(n===`chromium`&&mt(e)),s=()=>{let t=e.document.activeElement;return r.transition.kind===`hide`&&r.transition.predicted&&!o(t)&&!(t!=null&&ht(t))},c=e=>{if(e!=null){e.predicted&&l(e);for(let n of[...t])n(e)}},l=t=>{i!=null&&clearTimeout(i);let n=t.start+(t.curve?.durationMs??0)+ut;i=setTimeout(()=>{i=null;let t=j(e);t!=null&&t>.5&&s()||c(r.verify(t,e.performance.now()))},Math.max(0,n-e.performance.now()))},u=()=>{n=V(e),r=lt(j(e));let t=-1/0,a=null,l=(i,l)=>{a!=null&&(clearTimeout(a),a=null);let u=t+dt;return n===`chromium`&&i<.5&&r.inset>=.5&&l<u&&o(e.document.activeElement)?(a=setTimeout(()=>{a=null,c(r.report(j(e),u))},u-l),null):i>.5&&s()?null:r.report(i,l)},u=Be(e,e=>{e.type===`viewport`?c(l(e.height,e.timeStamp)):e.type===`focusin`?o(e.target)&&(t=e.timeStamp,c(r.focused(e.timeStamp))):o(e.target)&&!o(e.relatedTarget)&&c(r.blurred(e.timeStamp))},{focus:!0});return()=>{u(),a!=null&&(clearTimeout(a),a=null),i!=null&&(clearTimeout(i),i=null)}};return{get profile(){return n},get inset(){return r.inset},get transition(){return r.transition},presentation(t=e.performance.now()){return r.presentation(t)},subscribe(e){return t.add(e),a??=u(),()=>{t.delete(e),t.size===0&&a!=null&&(a(),a=null)}}}}var yt={reset:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--container-corner-start-start":`xcfde6v`,"--container-corner-start-end":`x1os27km`,"--container-corner-end-start":`x102ry9`,"--container-corner-end-end":`x1q2p8vm`,"--_container-bleed-block-start":`x19rxvyz`,"--_container-bleed-block-end":`x1t5kaiv`,"--layout-padding-outer-x":`xdt8ak2`,"--layout-padding-outer-y":`x1rs4lu4`,"--layout-padding-own-outer-x":`x1vii845`,"--layout-padding-own-outer-y":`xojybgt`,"--layout-padding-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}};function bt(e){return()=>{let t=e.withdraw;e.withdraw=null,t?.()}}function xt(e,t){for(let{text:n,receipts:r}of e)for(let e of r)e.withdraw=t(n)}var St=`data-astryx-live-region`,Ct=`position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;inset-block-start:0;inset-inline-start:0;pointer-events:none;user-select:none;`,wt=2e3,H=l(`hooks/use-announce/channel`,1,()=>({clearTimers:{polite:null,assertive:null},pendingFrames:{polite:null,assertive:null},pendingMessages:{polite:[],assertive:[]},lastJoined:null,regions:null,modalRoute:null}));function Tt(e){let t=H.clearTimers[e];t!=null&&(clearTimeout(t),H.clearTimers[e]=null)}function Et(e){let t=H.pendingFrames[e];t!=null&&(cancelAnimationFrame(t),H.pendingFrames[e]=null),H.pendingMessages[e]=[]}function Dt(e,t){Tt(e),H.clearTimers[e]=setTimeout(()=>{H.clearTimers[e]=null,t.textContent=``},wt)}function Ot(e){let t=document.createElement(`div`);return t.setAttribute(St,e),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-atomic`,`true`),t.setAttribute(`role`,e===`assertive`?`alert`:`status`),t.style.cssText=Ct,document.body.appendChild(t),t}function kt(){return typeof document>`u`?null:H.regions?(H.regions.polite.isConnected||document.body.appendChild(H.regions.polite),H.regions.assertive.isConnected||document.body.appendChild(H.regions.assertive),H.regions):(H.regions={polite:Ot(`polite`),assertive:Ot(`assertive`)},H.regions)}function U(e,t){let n=kt();if(!n)return null;let r=t===`assertive`?n.assertive:n.polite,i=H.pendingMessages[t].find(t=>t.text===e);if(i!=null)return i.holders+=1,H.lastJoined=i,()=>Y(i,t);let a={text:e,holders:1};return H.pendingMessages[t].push(a),H.lastJoined=a,H.pendingFrames[t]??(r.textContent=``,H.pendingFrames[t]=requestAnimationFrame(()=>{H.pendingFrames[t]=null,r.textContent=H.pendingMessages[t].map(e=>e.text).join(` `),H.pendingMessages[t]=[]})),Dt(t,r),()=>Y(a,t)}function At(e){if(Et(e),Tt(e),!H.regions)return;let t=e===`assertive`?H.regions.assertive:H.regions.polite;t.textContent=``}function jt({hasReplace:e=!1}={}){let t=(0,v.use)(W),n=(0,v.useRef)(null);return(0,v.useCallback)((r,i=`polite`)=>{if(e){let e=n.current;n.current=null,e?.()}let a;t!=null&&H.modalRoute!=null?a=H.modalRoute.announce(t,r,i):r?a=U(r,i):(At(i),a=null),e&&(n.current=a)},[e,t])}var Mt=`data-astryx-modal-live-region`,W=x(`ModalAnnounceContext`,1,null);W.displayName=`ModalAnnounceContext`;function Nt(e){H.modalRoute=e}function G(e){return e!=null&&e.open&&d(e)}function Pt(e){let t=e?.closest(`dialog`)??null;for(;t!=null;){if(G(t))return t;t=t.parentElement?.closest(`dialog`)??null}return null}function Ft(e,t,n=`polite`){return H.modalRoute==null?G(e)?Bt(e,t,n):U(t,n):H.modalRoute.announceInModal(e,t,n)}var K=a(`hooks/use-announce/pending-by-region`,1);function q(e){e.frame!=null&&cancelAnimationFrame(e.frame),e.settleFrame!=null&&cancelAnimationFrame(e.settleFrame),e.timer!=null&&clearTimeout(e.timer)}function It(e){return Rt(e).map(e=>e.text)}function Lt(e){return e.messages.map(t=>({text:t,receipts:e.receipts.get(t)??[]}))}function Rt(e){let t=K.get(e);return t==null?[]:t.frame!=null||t.settleFrame!=null?Lt(t):[]}function J(e,t){return e.querySelector(`:scope > [${Mt}="${t}"]`)}function zt(e,t){let n=J(e,t);return n??(n=document.createElement(`div`),n.setAttribute(Mt,t),n.setAttribute(`role`,t===`assertive`?`alert`:`status`),n.setAttribute(`aria-live`,t),n.setAttribute(`aria-atomic`,`true`),n.style.cssText=Ct,e.appendChild(n)),n}function Bt(e,t,n,r){let i=zt(e,n),a=It(i),o=a.includes(t)?a:[...a,t],s=K.get(i),c=a.length>0&&s!=null?s.receipts:new Map,l={withdraw:null};c.set(t,[...c.get(t)??[],l]),s!=null&&q(s),i.textContent=``;let u={messages:o,receipts:c,frame:null,settleFrame:null,timer:null};return u.frame=requestAnimationFrame(()=>{u.frame=null,r!=null&&!r.isExposed()?(K.delete(i),r.redirect(Lt(u))):(i.textContent=u.messages.join(` `),u.settleFrame=requestAnimationFrame(()=>{u.settleFrame=null}),u.timer=setTimeout(()=>{i.textContent=``,K.delete(i)},wt))}),K.set(i,u),l.withdraw=()=>Vt(i,t,l),bt(l)}function Vt(e,t,n){let r=K.get(e);if(r==null||r.frame==null&&r.settleFrame==null)return;let i=r.receipts.get(t),a=i?.indexOf(n)??-1;i==null||a<0||(i.splice(a,1),i.length>0||(r.receipts.delete(t),r.messages=r.messages.filter(e=>e!==t),r.messages.length===0?(q(r),K.delete(e),e.textContent=``):r.frame??(e.textContent=r.messages.join(` `))))}function Ht(e,t){let n=J(e,t);if(n==null)return;let r=K.get(n);r!=null&&(q(r),K.delete(n)),n.textContent=``}function Ut(){let e=H.lastJoined;return H.lastJoined=null,e}function Y(e,t){let n=H.pendingMessages[t],r=n.indexOf(e);r<0||(--n[r].holders,n[r].holders<=0&&n.splice(r,1))}var Wt=()=>()=>{},Gt=()=>!1,Kt=()=>!0;function qt(){return(0,v.useSyncExternalStore)(Wt,Gt,Kt)}var X=x(`LayerDepthContext`,1,0);X.displayName=`LayerDepthContext`;function Jt(){return(0,v.use)(X)}function Yt({children:e}){let t=(0,v.use)(X);return(0,me.jsx)(X,{value:t+1,children:e})}Yt.displayName=`LayerDepthProvider`;var Xt=229;function Zt(e){return e.isComposing===!0||e.keyCode===Xt}var Z=l(`layer/layer-stack/state`,1,()=>({entries:[],seqByToken:new WeakMap,nextSeq:0,layerCountByDocument:new Map,composingDocuments:new Set,stopListeningByDocument:new Map}));function Qt(e){let t=Z.seqByToken.get(e);if(t!==void 0)return t;let n=Z.nextSeq++;return Z.seqByToken.set(e,n),n}function $t(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function en(e){return e.isPresent?.()??!0}function tn(){return Z.composingDocuments.size>0}function nn(e){Z.composingDocuments.add(e.currentTarget)}function Q(e){Z.composingDocuments.delete(e.currentTarget)}function $(e){let t=null;for(let n of Z.entries)n.ownerDocument===e&&en(n)&&(t==null||$t(n,t)>0)&&(t=n);return t}function rn(e){let t=Z.entries.find(t=>t.token===e);return t!=null&&$(t.ownerDocument)===t}function an(){return typeof document>`u`?null:document}function on(e){let t=e.target;return t==null?null:t.nodeType===9?t:t.ownerDocument}function sn(e){let t=$(e);return t!=null&&(t.behavior===`block`||t.dismiss(),!0)}function cn(e){if(e.key!==`Escape`)return;let t=on(e)??an();Zt(e)?$(t)!=null&&e.preventDefault():e.defaultPrevented||sn(t)&&e.preventDefault()}function ln(e){e.addEventListener(`keydown`,cn),e.addEventListener(`compositionstart`,nn,!0),e.addEventListener(`compositionend`,Q,!0),e.addEventListener(`blur`,Q,!0),Z.stopListeningByDocument.set(e,()=>{e.removeEventListener(`keydown`,cn),e.removeEventListener(`compositionstart`,nn,!0),e.removeEventListener(`compositionend`,Q,!0),e.removeEventListener(`blur`,Q,!0)})}function un(e){Z.stopListeningByDocument.get(e)?.(),Z.stopListeningByDocument.delete(e),Z.composingDocuments.delete(e)}function dn(e){let t=e.getContainer?.()?.ownerDocument??an(),n={...e,seq:Qt(e.token),ownerDocument:t};if(Z.entries.push(n),t!=null){let e=Z.layerCountByDocument.get(t)??0;Z.layerCountByDocument.set(t,e+1),e===0&&ln(t)}return()=>{let e=Z.entries.indexOf(n);if(e===-1||(Z.entries.splice(e,1),t==null))return;let r=Z.layerCountByDocument.get(t)??1;r>1?Z.layerCountByDocument.set(t,r-1):(Z.layerCountByDocument.delete(t),un(t))}}function fn(e){return pn(e,null)}function pn(e,t){let{isActive:n,onDismiss:r,escapeBehavior:i=`close`,getContainer:a,isPresent:o,isEnabled:s=!0}=e,c=Jt(),l=(0,v.useRef)({}),u=(0,v.useRef)(!1),d=(0,v.useRef)(r),f=(0,v.useRef)(a),p=(0,v.useRef)(o);(0,v.useEffect)(()=>{d.current=r,f.current=a,p.current=o});let m=n&&s;return(0,v.useEffect)(()=>{if(!m)u.current=!1;else return u.current||=(l.current={},!0),dn({token:l.current,depth:c,behavior:i,getContainer:()=>f.current?.()??null,isPresent:()=>p.current?.()??!0,dismiss:()=>d.current()})},[m,c,i,t]),{shouldDismissOnCloseRequest:(0,v.useCallback)(()=>m&&!tn()&&rn(l.current),[m])}}export{he as $,it as A,Je as B,_t as C,st as D,ct as E,Qe as F,Ae as G,Be as H,j as I,Se as J,ke as K,Ve as L,O as M,Ye as N,R as O,He as P,_e as Q,Pe as R,pt as S,V as T,Ge as U,Ue as V,De as W,ye as X,w as Y,ve as Z,Rt as _,W as a,oe as at,Bt as b,Ht as c,xt as d,pe as et,bt as f,Ut as g,J as h,qt as i,ae as it,at as j,ot as k,At as l,G as m,Zt as n,le as nt,Ft as o,re as ot,Nt as p,T as q,Yt as r,ue as rt,U as s,ie as st,fn as t,x as tt,Pt as u,jt as v,ht as w,yt as x,Y as y,M as z};
@@ -0,0 +1,4 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Tooltip-D5RzAbgJ.js","assets/rolldown-runtime-XKyaHtl9.js","assets/jsx-runtime-C3cWAN_r.js","assets/focusOutline.stylex-ZXdUNMFw.js","assets/useTooltip-C_x74aGj.js","assets/useLayerDismissal-BWIjwIJ-.js","assets/primaryClick-88oQu3_u.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{At as r,Bt as i,Dt as a,Ht as o,J as s,Pt as c,Rt as l,Wt as u,b as d,jt as f,lt as p,rn as m,vt as h,wt as g,x as _,y as v}from"./focusOutline.stylex-ZXdUNMFw.js";import{$ as ee,Q as te,X as ne,j as y,rt as b,tt as x}from"./useLayerDismissal-BWIjwIJ-.js";import{t as S}from"./mergeProps-Poh9JbFs.js";import{t as re}from"./useDevWarning-DtAYt56R.js";import{C as ie,U as ae,W as C,d as oe,p as se,r as w,x as ce}from"./useTooltip-C_x74aGj.js";var T=e(t(),1);function le(e,t,n){let i=r(f(`react/${e}`,t),()=>new WeakMap,e=>e instanceof WeakMap);if(i.has(T.createElement))return i.get(T.createElement);let a=n();return i.set(T.createElement,a),a}var ue=le(`theme/theme-registry/themes`,1,()=>new Map);function de(e){ue.set(e.name,e)}function fe(e){return e==null||e===``?null:ue.get(e)??null}var pe=x(`ThemeContext`,1,null);pe.displayName=`ThemeContext`;var me=x(`ThemeSourceContext`,1,null);me.displayName=`ThemeSourceContext`;function he(e){let t=e,n=new Set;return{get:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),set:e=>{if(e!==t){t=e;for(let e of n)e()}}}}var ge=x(`ThemeModeContext`,1,null);ge.displayName=`ThemeModeContext`;var _e=x(`SystemSchemeContext`,1,`root`);_e.displayName=`SystemSchemeContext`;function ve(){return typeof document>`u`?null:document.documentElement.getAttribute(a(`theme`))}function ye(){return null}function be(){return null}var E=new Set,D=null;function xe(){for(let e of E)e()}function Se(e){return E.add(e),E.size===1&&typeof MutationObserver<`u`&&(D=new MutationObserver(xe),D.observe(document.documentElement,{attributes:!0,attributeFilter:[a(`theme`)]})),()=>{E.delete(e),E.size===0&&D&&(D.disconnect(),D=null)}}function Ce(){return()=>{}}var O=c(`theme/use-theme/root-scheme`,1,()=>({listeners:new Set,stop:null})),we=`style, link[rel~="stylesheet"]`,Te=`meta[name="color-scheme" i]`;function Ee(e){let t=e.toLowerCase().split(/\s+/),n=t.includes(`light`),r=t.includes(`dark`);if(n&&r)return null;if(n||r)return r?`dark`:`light`}function De(){let e=window.getComputedStyle(document.documentElement).colorScheme;if(e==null||e===``)return null;if(e!==`normal`)return Ee(e)??null;for(let e of document.querySelectorAll(Te)){let t=e.getAttribute(`content`)??``,n=Ee(t);if(n!==void 0)return n;if(/(^|\s)normal(\s|$)/i.test(t))return`light`}return`light`}function Oe(e){return e.some(e=>{let t=e.target;if(t===document.documentElement)return!0;let n=t instanceof Element?t:t.parentElement;if(n?.closest(`style`)!=null)return!0;if(e.type===`attributes`)return n?.matches(`link, style, meta`)===!0;let r=`${we}, ${Te}`;return[...e.addedNodes,...e.removedNodes].some(e=>e instanceof Element&&(e.matches(r)||e.querySelector(r)!=null))})}function ke(){for(let e of O.listeners)e()}function Ae(e){Oe(e)&&ke()}function je(e){e.target instanceof HTMLLinkElement&&ke()}function Me(e){if(O.listeners.add(e),O.listeners.size===1&&typeof MutationObserver<`u`){let e=new MutationObserver(Ae);e.observe(document.documentElement,{attributes:!0}),e.observe(document.head,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`href`,`media`,`disabled`,`rel`,`name`,`content`]}),document.addEventListener(`load`,je,!0);let t=h(window,`(prefers-color-scheme: dark)`,ke);O.stop=()=>{e.disconnect(),document.removeEventListener(`load`,je,!0),t()}}return()=>{O.listeners.delete(e),O.listeners.size===0&&O.stop!=null&&(O.stop(),O.stop=null)}}function Ne(e){return(0,T.useSyncExternalStore)(e?Me:Ce,e?De:be,be)}function Pe(e){return(0,T.useSyncExternalStore)(e?Ce:Se,e?be:ve,ye)}function Fe(){let e=(0,T.use)(pe),t=(0,T.use)(ge)?.themeless===!0,n=Pe(e!=null||t);return e?.theme.name??n}function Ie(e=!0){let t=e?(0,T.use)(pe):null,n=e&&(0,T.use)(ge)?.themeless===!0,r=Pe(t!=null||n||!e);if(e)return t?.theme??fe(r)??void 0}var k=n(),A={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,width:`1em`,height:`1em`,"aria-hidden":!0},j={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,width:`1em`,height:`1em`,"aria-hidden":!0},Le={close:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M6 6l12 12M6 18L18 6`})}),chevronDown:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M6 9l6 6 6-6`})}),"numberInput:stepperDown":(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M7.5 9.75l4.5 4.5 4.5-4.5`})}),chevronLeft:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M15 6l-6 6 6 6`})}),chevronRight:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M9 6l6 6-6 6`})}),chevronsLeft:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M18 6l-6 6 6 6M11 6l-6 6 6 6`})}),chevronsRight:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M6 6l6 6-6 6M13 6l6 6-6 6`})}),check:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M5 13l4 4L19 7`})}),success:(0,k.jsx)(`svg`,{...j,children:(0,k.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 3a9 9 0 100 18 9 9 0 000-18zm4.06 6.56a.75.75 0 00-1.12-1l-3.94 4.4-1.94-1.94a.75.75 0 00-1.06 1.06l2.5 2.5a.75.75 0 001.09-.03l4.47-5z`})}),error:(0,k.jsx)(`svg`,{...j,children:(0,k.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 3a9 9 0 100 18 9 9 0 000-18zm-2.47 5.47a.75.75 0 00-1.06 1.06L10.94 12l-2.47 2.47a.75.75 0 101.06 1.06L12 13.06l2.47 2.47a.75.75 0 101.06-1.06L13.06 12l2.47-2.47a.75.75 0 00-1.06-1.06L12 10.94l-2.47-2.47z`})}),warning:(0,k.jsx)(`svg`,{...j,children:(0,k.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.29 3.86L2.07 19.05A2 2 0 003.78 22h16.44a2 2 0 001.71-2.95L13.71 3.86a2 2 0 00-3.42 0zM12 9a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 9zm0 9a1 1 0 100-2 1 1 0 000 2z`})}),info:(0,k.jsx)(`svg`,{...j,children:(0,k.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 3a9 9 0 100 18 9 9 0 000-18zm0 4a1 1 0 100 2 1 1 0 000-2zm-.75 3.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5z`})}),calendar:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`}),(0,k.jsx)(`path`,{d:`M16 2v4M8 2v4M3 10h18`})]}),clock:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,k.jsx)(`path`,{d:`M12 7v5l3 3`})]}),externalLink:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),(0,k.jsx)(`path`,{d:`M15 3h6v6`}),(0,k.jsx)(`path`,{d:`M10 14L21 3`})]}),menu:(0,k.jsx)(`svg`,{...A,strokeWidth:2,children:(0,k.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h16`})}),moreHorizontal:(0,k.jsxs)(`svg`,{...j,children:[(0,k.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1.5`}),(0,k.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.5`}),(0,k.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1.5`})]}),search:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,k.jsx)(`path`,{d:`M21 21l-4.35-4.35`})]}),upload:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M12 16V4m0 0L7 9m5-5l5 5M4 15v4a2 2 0 002 2h12a2 2 0 002-2v-4`})}),arrowUp:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M12 19V5m0 0l-7 7m7-7l7 7`})}),arrowDown:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M12 5v14m0 0l7-7m-7 7l-7-7`})}),arrowsUpDown:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M3 7.5L7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5`})}),funnel:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z`})}),eyeSlash:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M3.98 8.223A10.477 10.477 0 001.934 12c1.292 4.338 5.31 7.5 10.066 7.5.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88`})}),viewColumns:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125z`})}),copy:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`path`,{d:`M8 4v12a2 2 0 002 2h8a2 2 0 002-2V7.242a2 2 0 00-.602-1.43L16.083 2.57A2 2 0 0014.685 2H10a2 2 0 00-2 2z`}),(0,k.jsx)(`path`,{d:`M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2`})]}),checkDouble:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`path`,{d:`M2 13l4 4L14 7`}),(0,k.jsx)(`path`,{d:`M9 13l4 4L21 7`})]}),wrench:(0,k.jsx)(`svg`,{...A,children:(0,k.jsx)(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`})}),stop:(0,k.jsx)(`svg`,{...j,children:(0,k.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})}),microphone:(0,k.jsxs)(`svg`,{...A,children:[(0,k.jsx)(`path`,{d:`M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z`}),(0,k.jsx)(`path`,{d:`M19 10v1a7 7 0 01-14 0v-1`}),(0,k.jsx)(`path`,{d:`M12 18v4m-4 0h8`})]})},Re=le(`icon/global-icon-registry/state`,1,()=>({entries:{}}));function ze(e){return typeof e==`string`?fe(e):e??null}function Be(e){return e==null?null:e.__icons??e.icons??null}function Ve(e,t,n){let r=ze(t),i=r?.iconVariants,a=Be(r)?.[e];if(r!=null&&a!=null)return{entry:a,variantLists:[i,r.__iconEntryVariants!=null&&Object.hasOwn(r.__iconEntryVariants,e)?r.__iconEntryVariants[e]:i]};let o=Re.entries[e];return o==null?{entry:Le[e]??n,variantLists:[]}:{entry:o,variantLists:[i]}}function He({entry:e,variantLists:t},{size:n,variant:r}){return typeof e==`function`?e(r!==void 0&&t.length>0&&t.every(e=>e?.includes(r)===!0)?{size:n,variant:r}:{size:n}):e}function Ue(e,t,n){return He(Ve(e,t),n)}var We=te(`IconDefaultSizeContext`,1,null);We.displayName=`IconDefaultSizeContext`;var Ge=We.Provider;function Ke(e){let t=(0,T.use)(We);return e??t??`md`}var qe={xsm:{kzqmXN:`x13u0t82`,kZKoxP:`x89eeu2`,$$css:!0},sm:{kzqmXN:`xomy6nw`,kZKoxP:`x14eyxzr`,$$css:!0},md:{kzqmXN:`x1vvatio`,kZKoxP:`x1jxzzob`,$$css:!0},lg:{kzqmXN:`x1gbskz6`,kZKoxP:`xol4r8t`,$$css:!0}},Je={xsm:{kzqmXN:`x1jw3ynk`,kZKoxP:`xvle69y`,kGuDYH:`xboafo0`,$$css:!0},sm:{kzqmXN:`xcdlrvm`,kZKoxP:`x1l36t39`,kGuDYH:`x1jchvi3`,$$css:!0},md:{kzqmXN:`xwqq7k2`,kZKoxP:`xmll18r`,kGuDYH:`x1603h9y`,$$css:!0},lg:{kzqmXN:`xp8d6y2`,kZKoxP:`xam5rvr`,kGuDYH:`xngnso2`,$$css:!0}},Ye={root:{kmuXW:`x2lah0s`,$$css:!0},span:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,$$css:!0}},Xe={xsm:{kzqmXN:`x13u0t82`,kZKoxP:`x89eeu2`,kGuDYH:`x1uq1jy3`,$$css:!0},sm:{kzqmXN:`xomy6nw`,kZKoxP:`x14eyxzr`,kGuDYH:`x1qzu985`,$$css:!0},md:{kzqmXN:`x1vvatio`,kZKoxP:`x1jxzzob`,kGuDYH:`xhhwgqx`,$$css:!0},lg:{kzqmXN:`x1gbskz6`,kZKoxP:`xol4r8t`,kGuDYH:`x14nqahd`,$$css:!0}},Ze={primary:{kMwMTN:`xtbr613`,$$css:!0},secondary:{kMwMTN:`xv9yike`,$$css:!0},tertiary:{kMwMTN:`xv9yike`,$$css:!0},disabled:{kMwMTN:`xqa6c3m`,$$css:!0},accent:{kMwMTN:`xqwr325`,$$css:!0},info:{kMwMTN:`x1gc9m53`,$$css:!0},success:{kMwMTN:`x1vau044`,$$css:!0},error:{kMwMTN:`xskb5cx`,$$css:!0},warning:{kMwMTN:`x4z9hng`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0},blue:{kMwMTN:`x1fns2mt`,$$css:!0},red:{kMwMTN:`xeffzf7`,$$css:!0},green:{kMwMTN:`xmxeech`,$$css:!0},gray:{kMwMTN:`x1eyinzz`,$$css:!0},cyan:{kMwMTN:`x157w0xa`,$$css:!0},teal:{kMwMTN:`x1f3zxcb`,$$css:!0},yellow:{kMwMTN:`x1g6zdft`,$$css:!0},orange:{kMwMTN:`xxu74a4`,$$css:!0},pink:{kMwMTN:`x1kxxfg5`,$$css:!0},purple:{kMwMTN:`xzdw94u`,$$css:!0}};function Qe(e){return e!=null&&e!==``?{role:`img`,"aria-label":e,"aria-hidden":void 0}:{"aria-hidden":`true`}}function $e({icon:e,color:t=`inherit`,size:n,variant:r,label:i,ref:a,className:o,style:s,xstyle:c,...l}){let{icon:u,props:d}=et(e,l);re(`Icon`,'takes its glyph in `icon`, not `name`. Pass it as icon, for example <Icon icon="close" />.',u!==e);let f=Ke(n),p=Qe(i);return typeof u==`string`?(0,k.jsx)(rt,{name:u,color:t,size:f,variant:r,a11yProps:p,className:o,style:s,xstyle:c,svgRef:a,spanProps:d}):(0,k.jsx)(u,{ref:a,...p,...S(g(`icon`,{size:f,color:t}),m(Ye.root,Ze[t],qe[f],c),o??void 0,s),...d})}$e.displayName=`Icon`;function et(e,t){if(e!=null||!(`name`in t)||!nt(t.name))return{icon:e,props:t};let{name:n,...r}=t;return{icon:n,props:r}}var tt=new Set([Symbol.for(`react.forward_ref`),Symbol.for(`react.memo`),Symbol.for(`react.lazy`)]);function nt(e){return typeof e==`string`&&e!==``||typeof e==`function`||typeof e==`object`&&!!e&&tt.has(e.$$typeof)}function rt({name:e,color:t,size:n,variant:r,a11yProps:i,className:a,style:o,xstyle:s,svgRef:c,spanProps:l}){let u=Ie(),d=Ue(e,u,{size:n,variant:r}),f=(0,T.useCallback)(e=>c==null?void 0:ee(c)(e?.querySelector(`svg`)??null),[c,e,u,n,r]);if(d==null)return null;let p=l??{};return(0,k.jsx)(`span`,{ref:c==null?void 0:f,...i,...p,...S(g(`icon`,{size:n,color:t}),m(Ye.span,Ze[t],Xe[n],s),a??void 0,o),children:d})}function it(e,t){return typeof e==`string`||typeof e==`function`||typeof e==`object`&&e&&`render`in e?(0,k.jsx)($e,{icon:e,...t}):e}var at=c(`i18n/default-translator/default-translator`,1,()=>({})),ot=x(`InternationalizationContext`,1,{locale:`en`,direction:`ltr`,messages:{},translate:(e,t)=>at.translate?.(e,t)??e});ot.displayName=`InternationalizationContext`;function st(e,t){let n=t&&t.cache?t.cache:_t,r=t&&t.serializer?t.serializer:ht;return(t&&t.strategy?t.strategy:ft)(e,{cache:n,serializer:r})}function ct(e){return e==null||typeof e==`number`||typeof e==`boolean`}function lt(e,t,n,r){let i=ct(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function ut(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function dt(e,t,n,r,i){return n.bind(t,e,r,i)}function ft(e,t){let n=e.length===1?lt:ut;return dt(e,this,n,t.cache.create(),t.serializer)}function pt(e,t){return dt(e,this,ut,t.cache.create(),t.serializer)}function mt(e,t){return dt(e,this,lt,t.cache.create(),t.serializer)}var ht=function(){return JSON.stringify(arguments)},gt=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},_t={create:function(){return new gt}},vt={variadic:pt,monadic:mt},yt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function bt(e){let t={};return e.replace(yt,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function St(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(xt).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function Ct(e){return e.replace(/^(.*?)-/,``)}var wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Tt=/^(@+)?(\+|#+)?[rs]?$/g,Et=/(\*)(0+)|(#+)(0+)|(0+)/g,Dt=/^(0+)$/;function Ot(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(Tt,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function kt(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function At(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!Dt.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function jt(e){return kt(e)||{}}function Mt(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=Ct(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...jt(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...jt(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(Et,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(Dt.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(wt.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(wt,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...Ot(e)});continue}if(Tt.test(n.stem)){t={...t,...Ot(n.stem)};continue}let e=kt(n.stem);e&&(t={...t,...e});let r=At(n.stem);r&&(t={...t,...r})}return t}var Nt=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function Pt(e){return e.type===0}function Ft(e){return e.type===1}function It(e){return e.type===2}function Lt(e){return e.type===3}function Rt(e){return e.type===4}function zt(e){return e.type===5}function Bt(e){return e.type===6}function Vt(e){return e.type===7}function Ht(e){return e.type===8}function Ut(e){return!!(e&&typeof e==`object`&&e.type===0)}function Wt(e){return!!(e&&typeof e==`object`&&e.type===1)}var Gt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,M={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function Kt(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=qt(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function qt(e){let t=e.hourCycle;if(t===void 0){let n=e;t=n.getHourCycles?.()[0]??n.hourCycles?.[0]}if(t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(M[`${n}-${r}`]||M[r||``]||M[n||``]||M[`${n}-001`]||M[`001`])[0].charAt(0)}var Jt=RegExp(`^${Gt.source}*`),Yt=RegExp(`${Gt.source}*$`);function N(e,t){return{start:e,end:t}}var Xt=!!Object.fromEntries,Zt=!!String.prototype.trimStart,Qt=!!String.prototype.trimEnd,$t=Xt?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},en=Zt?function(e){return e.trimStart()}:function(e){return e.replace(Jt,``)},tn=Qt?function(e){return e.trimEnd()}:function(e){return e.replace(Yt,``)},nn=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function rn(e,t){return nn.lastIndex=t,nn.exec(e)[1]??``}function an(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var on=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=an(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:N(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:N(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,N(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&sn(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:N(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!sn(this.char()))return this.error(23,N(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:N(n,this.clonePosition())},err:null}:this.error(23,N(o,this.clonePosition()))):this.error(26,N(e,this.clonePosition()))}return this.error(27,N(n,this.clonePosition()))}return this.error(23,N(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&ln(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a)r+=a;else break}let i=N(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!cn(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,N(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,N(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,N(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,N(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:N(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,N(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,N(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=rn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:N(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,N(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=tn(n.val);if(r.length===0)return this.error(6,N(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:N(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=N(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=en(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=Kt(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?bt(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,N(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=N(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:$t(c.val),location:u},err:null}:{val:{type:6,value:n,options:$t(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,N(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,N(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,N(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=St(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Mt(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=N(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,N(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:N(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,N(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=N(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&un(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function sn(e){return e>=97&&e<=122||e>=65&&e<=90}function cn(e){return sn(e)||e===47}function ln(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function un(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function dn(e){e.forEach(e=>{if(delete e.location,zt(e)||Bt(e))for(let t in e.options)delete e.options[t].location,dn(e.options[t].value);else It(e)&&Ut(e.style)||(Lt(e)||Rt(e))&&Wt(e.style)?delete e.style.location:Ht(e)&&dn(e.children)})}function fn(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new on(e,t).parse();if(n.err){let e=SyntaxError(Nt[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||dn(n.val),n.val}var pn=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},mn=class extends pn{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},hn=class extends pn{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},gn=class extends pn{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function _n(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function vn(e){return typeof e==`function`}function P(e,t,n,r,i,a,o){if(e.length===1&&Pt(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(Pt(c)){s.push({type:0,value:c.value});continue}if(Vt(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new gn(e,o);let l=i[e];if(Ft(c))l&&typeof l!=`string`&&typeof l!=`number`&&typeof l!=`bigint`||(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});else if(Lt(c)){let e=typeof c.style==`string`?r.date[c.style]:Wt(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(Rt(c)){let e=typeof c.style==`string`?r.time[c.style]:Wt(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(It(c)){let e=typeof c.style==`string`?r.number[c.style]:Ut(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)})}else{if(Ht(c)){let{children:e,value:l}=c,u=i[l];if(!vn(u))throw new hn(l,`function`,o);let d=u(P(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(zt(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new mn(c.value,l,Object.keys(c.options),o);s.push(...P(a.value,t,n,r,i))}else if(Bt(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new pn(`Intl.PluralRules is not available in this environment.
3
+ Try polyfilling it using "@formatjs/intl-pluralrules"
4
+ `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new mn(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...P(a.value,t,n,r,i,u-(c.offset||0)))}}}return _n(s)}function yn(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function bn(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=yn(e[r],t[r]),n),{...e}):e}function xn(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Sn(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:st((...e)=>new Intl.NumberFormat(...e),{cache:xn(e.number),strategy:vt.variadic}),getDateTimeFormat:st((...e)=>new Intl.DateTimeFormat(...e),{cache:xn(e.dateTime),strategy:vt.variadic}),getPluralRules:st((...e)=>new Intl.PluralRules(...e),{cache:xn(e.pluralRules),strategy:vt.variadic})}}var Cn=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>P(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=bn(e.formats,r),this.formatters=i&&i.formatters||Sn(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=fn}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}},wn=r(f(`i18n/english-fallback`,1),()=>({})),Tn=wn;function En(e){Object.assign(wn,e)}var Dn=new Map;function On(e,t){let n=`${t}::${e}`,r=Dn.get(n);return r===void 0&&(r=new Cn(e,t),Dn.set(n,r)),r}function kn(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}let n=t.split(`-`),r=[];for(let e=n.length;e>0;e--)r.push(n.slice(0,e).join(`-`));return r}function An(e,t,n){let r={},i=kn(e);if(n!==void 0){for(let e of i)if(n[e])for(let[t,i]of Object.entries(n[e]))r[t]===void 0&&i!==null&&(r[t]=i)}for(let e of i)if(t[e])for(let[n,i]of Object.entries(t[e])){let e=typeof i==`string`?i:i?.defaultMessage;r[n]===void 0&&e!=null&&(r[n]=e)}return r}function jn(e,t,n,r=Tn){let i=An(e,t,n);return(t,n)=>{let a=i[t]??r[t];return a===void 0?(`${e}${t}`,`${t}${e}`,t):n===void 0?a:On(a,e).format(n)}}at.translate??=jn(`en`,{});var Mn=ot;function Nn(){return(0,T.use)(Mn).translate}var F={top:0,right:0,bottom:0,left:0},Pn={top:`--astryx-hit-inset-top`,right:`--astryx-hit-inset-right`,bottom:`--astryx-hit-inset-bottom`,left:`--astryx-hit-inset-left`};function Fn(e,t){return{x:Math.max(t.left-e.right,e.left-t.right),y:Math.max(t.top-e.bottom,e.top-t.bottom)}}function I(e,t){return{left:e.left-t.left,top:e.top-t.top,right:e.right+t.right,bottom:e.bottom+t.bottom}}function In(e,t){return e.left<t.right&&t.left<e.right&&e.top<t.bottom&&t.top<e.bottom}function Ln(e,t){let n=Math.max(0,(t-(e.right-e.left))/2),r=Math.max(0,(t-(e.bottom-e.top))/2);return{top:r,right:n,bottom:r,left:n}}function Rn(e,t,n=44){if(t.length===0)return F;let r={top:-1/0,right:-1/0,bottom:-1/0,left:-1/0};for(let i of t){let t=Ln(i,n);r.top=Math.max(r.top,t.top-(i.top-e.top)),r.right=Math.max(r.right,t.right-(e.right-i.right)),r.bottom=Math.max(r.bottom,t.bottom-(e.bottom-i.bottom)),r.left=Math.max(r.left,t.left-(i.left-e.left))}return r}function zn(e,t,n=44,r=Ln(e,n)){if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return F;let i={...r};for(let a of t){let t=Fn(e,a);if(t.x<0&&t.y<0)continue;let o={top:Math.max(0,t.y)/2,right:Math.max(0,t.x)/2,bottom:Math.max(0,t.y)/2,left:Math.max(0,t.x)/2},s=I(e,r),c=I(a,Ln(a,n));(In(s,I(a,o))||In(c,I(e,o))||In(s,c))&&(t.x>=t.y?a.left>=e.right?i.right=Math.min(i.right,o.right):i.left=Math.min(i.left,o.left):a.top>=e.bottom?i.bottom=Math.min(i.bottom,o.bottom):i.top=Math.min(i.top,o.top))}return i}function Bn(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function Vn(e,t,n){let r=Math.max(e.left-t,0,t-e.right),i=Math.max(e.top-n,0,n-e.bottom);return Math.hypot(r,i)}function Hn(e,t,n,r=44){let i=-1,a=1/0;if(n.forEach((n,r)=>{let o=Vn(n,e,t)*1e6+Math.hypot(e-(n.left+n.right)/2,t-(n.top+n.bottom)/2);o<a&&(i=r,a=o)}),i===-1)return-1;let o=n[i];return Bn(I(o,Ln(o,r)),e,t)?i:-1}function Un(e,t){for(let n of[`top`,`right`,`bottom`,`left`])e.style.setProperty(Pn[n],`${t[n]}px`)}var L=`a[href].area[href].button.input:not([type="hidden"]).select.textarea.summary.label[for].[contenteditable=""].[contenteditable="true"].[role="button"].[role="link"].[role="checkbox"].[role="radio"].[role="switch"].[role="tab"].[role="menuitem"].[role="menuitemcheckbox"].[role="menuitemradio"].[role="treeitem"].[role="combobox"].[role="textbox"].[role="searchbox"].[role="spinbutton"].[role="option"].[role="slider"].[tabindex]:not([tabindex="-1"])`.split(`.`).join(`,`),Wn=`(pointer: coarse)`,Gn=4,Kn=100,qn=150,Jn={capture:!0,passive:!0},Yn={childList:!0,subtree:!0,attributes:!0,attributeFilter:[`href`,`type`,`for`,`contenteditable`,`role`,`tabindex`]};function Xn(){return typeof performance>`u`?Date.now():performance.now()}var R=new Map,z=new Set,Zn=new WeakMap,B=new Map,V=null,H=null,Qn=null,U=null,W=null,G=null,K=!1,q=null,$n=null,er=null,J=c(`utils/hit-area/scroll-gate`,1,()=>({isScrolling:!1,timer:void 0,stop:null,onEnd:new Set}));function tr(){er?.(),er=null,$n=null,q=null}function nr(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left}function rr(e,t){nr(e.last,t)||(e.last=t,e.onInsets(t))}function ir(e,t){let{element:n}=e;if(t===n||t.contains(n)||n.contains(t))return!0;let r=t.control;return r!=null&&n.contains(r)}function ar(e){let{left:t,top:n,right:r,bottom:i}=e.getBoundingClientRect();return{left:t,top:n,right:r,bottom:i}}var or={x:1,y:1};function sr(e,t,n){if(!(t>0)||!(e>0))return 1;let r=e/t;return Math.abs(r-1)<n?1:r}var cr={pixels:1,ratio:.001};function lr(e){let t=e.ownerDocument.defaultView?.getComputedStyle(e);if(t==null||!t.width.endsWith(`px`))return null;let n=e=>Number.parseFloat(e)||0,r=t.boxSizing!==`border-box`;return{width:n(t.width)+(r?n(t.paddingLeft)+n(t.paddingRight)+n(t.borderLeftWidth)+n(t.borderRightWidth):0),height:n(t.height)+(r?n(t.paddingTop)+n(t.paddingBottom)+n(t.borderTopWidth)+n(t.borderBottomWidth):0)}}function ur(e,t,n){let r=e,i=r.offsetWidth??0,a=r.offsetHeight??0;if(i===0||a===0||n.pixels>0&&Math.abs(t.right-t.left-i)<=n.pixels&&Math.abs(t.bottom-t.top-a)<=n.pixels)return or;let o=lr(e);if(o==null)return or;let{width:s,height:c}=o;return{x:sr(t.right-t.left,s,n.ratio),y:sr(t.bottom-t.top,c,n.ratio)}}function dr(e,t,n){return n.x===1&&n.y===1?e:{left:t.left+(e.left-t.left)/n.x,top:t.top+(e.top-t.top)/n.y,right:t.left+(e.right-t.left)/n.x,bottom:t.top+(e.bottom-t.top)/n.y}}function Y(e){for(let t=e;t!=null;t=t.parentElement)if(R.has(t))return t;return null}function fr(e){if(typeof MutationObserver>`u`?q=null:$n===e?v(Yn):(tr(),$n=e,er=_(e,Yn,mr)),q!=null){for(let e of q)e.isConnected||q.delete(e);return[...q]}let t=new Set;return pr(t,e),q=t,[...t]}function pr(e,t){s(t)&&t.matches(L)&&e.add(Y(t)??t);for(let n of t.querySelectorAll(L))e.add(Y(n)??n)}function mr(e){let t=q;if(t!=null)for(let n of e){if(n.type!==`attributes`){n.addedNodes.forEach(e=>{s(e)&&pr(t,e)});continue}let{target:e}=n;s(e)&&(e.matches(L)?t.add(Y(e)??e):R.has(e)||t.delete(e))}}function hr(e){if(e.matches(L))return!0;for(let t of e.querySelectorAll(L))if(Y(t)===e)return!0;return!1}function gr(e){let t=q;if(t==null)return;for(let n of e.querySelectorAll(L))t.delete(n);pr(t,e);let n=e.parentElement==null?null:Y(e.parentElement);n!=null&&t.has(n)&&!hr(n)&&t.delete(n)}function _r(e){let t=q;t!=null&&(t.delete(e),pr(t,e))}function vr(e){return fr(e).map(e=>({element:e,rect:ar(e)}))}function yr(e,t){let n=ar(e.element),r=ur(e.element,n,cr),i=Math.max(0,e.minSize),a=I(n,{top:i*r.y,right:i*r.x,bottom:i*r.y,left:i*r.x}),o=t.filter(({element:t,rect:n})=>n.right>n.left&&n.bottom>n.top&&In(a,n)&&!ir(e,t)).map(({rect:e})=>e);return{target:n,insets:zn(dr(n,n,r),o.map(e=>dr(e,n,r)),e.minSize,e.growth?.(dr(n,n,r),e=>dr(e,n,r))),neighbours:o}}function br(e){return typeof e.getAnimations==`function`?(s(e)?e.getAnimations({subtree:!0}):e.getAnimations()).filter(e=>{if(e.playState!==`running`&&e.playState!==`paused`)return!1;let t=e.effect?.getComputedTiming().endTime;return typeof t==`number`&&Number.isFinite(t)}):[]}var xr=/^(transform|translate|scale|rotate|offset[A-Z]\w*|inset\w*|top|right|bottom|left|(min|max)?(Width|Height|width|height|BlockSize|InlineSize)|blockSize|inlineSize|margin\w*|padding\w*)$/;function Sr(e){let t=e.effect;return typeof t?.getKeyframes!=`function`||t.getKeyframes().some(e=>Object.keys(e).some(e=>xr.test(e)))}function Cr(e){return br(e).filter(e=>e.playState===`running`&&Sr(e))}function wr(e,t){Promise.allSettled(e.map(async e=>e.finished)).then(t)}function Tr(e,t){let n=!1;for(let r of t){let t=r.effect?.target;t!=null&&t!==e.element&&t.contains(e.element)&&(n=!0,e.heldBy.has(r)||(e.heldBy.add(r),wr([r],()=>{e.heldBy.delete(r),e.isVisible&&R.get(e.element)?.watches.has(e)&&X(e)})))}return n}function Er(){if(V=null,J.isScrolling)return;let e=[...z].filter(e=>e.isVisible);if(z.clear(),!K||e.length===0)return;let t=e[0].element.ownerDocument,n=Cr(t),r=e.filter(e=>!Tr(e,n));if(r.length===0)return;let i=vr(t),a=Xn(),o=[];for(let e of r)o.length>0&&Xn()-a>Gn?z.add(e):o.push({watch:e,insets:yr(e,i).insets});for(let{watch:e,insets:t}of o)rr(e,t);z.size>0&&Dr()}function Dr(){V==null&&!J.isScrolling&&typeof requestAnimationFrame==`function`&&(V=requestAnimationFrame(Er))}function Or(){J.isScrolling=!0,J.timer!==void 0&&clearTimeout(J.timer),J.timer=setTimeout(kr,qn)}function kr(){if(J.timer!==void 0&&(clearTimeout(J.timer),J.timer=void 0),J.isScrolling){J.isScrolling=!1;for(let e of[...J.onEnd])e()}}function Ar(){z.size>0&&Dr()}function X(e){K&&(z.add(e),Dr())}function jr(){for(let e of R.values())e.watches.forEach(X)}function Mr(e){for(let t=e.target instanceof Element?e.target:null;t!=null;t=t.parentElement)if(R.has(t)){Nr(t,e);return}}function Nr(e,t){let n=R.get(e);if(n==null||(n.disarm?.(),!K||t.pointerType!==`touch`))return;let r=[...n.watches].filter(e=>e.checkAtPress);if(r.length===0)return;let i={x:t.clientX,y:t.clientY,target:t.target},a=r.some(e=>e.heldBy.size>0),o=a&&Ir(e,n,r,i,vr(e.ownerDocument));if(a&&!o)return;let s=t=>{u(),t.detail!==0&&(o||Lr(e,n,r,i))&&(t.preventDefault(),t.stopPropagation())},c=e.ownerDocument,l=null,u=()=>{e.removeEventListener(`click`,s,!0),e.removeEventListener(`pointercancel`,u,!0),l?.(),l=null,n.disarm===u&&(n.disarm=null)};e.addEventListener(`click`,s,!0),e.addEventListener(`pointercancel`,u,!0);let d=c.defaultView;d!=null&&(l=p(d,`pointerdown`,u)),n.disarm=u}function Pr(e,t){let n=e.ownerDocument.defaultView?.getComputedStyle(e).transform,r=/^matrix\(([^,]+),[^,]+,[^,]+,([^,]+),/.exec(n??``);if(r==null)return t;let i=Number.parseFloat(r[1]),a=Number.parseFloat(r[2]);if(!(i>0)||!(a>0))return t;let o=(t.left+t.right)/2,s=(t.top+t.bottom)/2,c=(t.right-t.left)/i/2,l=(t.bottom-t.top)/a/2;return{left:o-c,top:s-l,right:o+c,bottom:s+l}}function Fr(e){let{element:t}=e,n=br(t);n.length===0?X(e):wr(n,()=>{R.get(t)?.watches.has(e)&&X(e)})}function Ir(e,t,n,r,i){let a=!1;for(let e of n){let{target:t,insets:n,neighbours:o}=yr(e,i),s=Vn(Pr(e.element,t),r.x,r.y);a||=o.some(e=>Vn(e,r.x,r.y)<s),nr(e.last,n)||Fr(e)}let o=[...t.watches].some(e=>e.ownsDescendantTouches)&&r.target instanceof Node&&r.target!==e&&e.contains(r.target);return a&&!o}function Lr(e,t,n,r){let i=e.ownerDocument,a=Cr(i),o=(e,t)=>a.some(n=>{let r=n.effect?.target;return r!=null&&r.contains(e)&&(t||r!==e)});return!o(e,!1)&&Ir(e,t,n,r,vr(i).filter(e=>!o(e.element,!0)))}function Rr(e){let t=B.get(e);t!=null&&clearTimeout(t),B.set(e,setTimeout(()=>{B.delete(e);for(let[t,n]of R)t.parentElement===e&&n.watches.forEach(X)},Kn))}function zr(e,t){let n=e.parentElement;W?.observe(e),G?.observe(e),n!=null&&G?.observe(n);let r=n==null?null:d(n,()=>Rr(n));t.release=()=>{W?.unobserve(e),G?.unobserve(e);let i=[...R.keys()].some(t=>t!==e&&t.parentElement===n);if(n!=null&&!i){G?.unobserve(n);let e=B.get(n);e!=null&&(clearTimeout(e),B.delete(n))}r?.(),t.disarm?.()}}function Br(){if(H!=null){if(H.addEventListener(`resize`,jr),J.stop==null){let e=p(H,`scroll`,Or),t=p(H,`scrollend`,kr);J.stop=()=>{e(),t()}}J.onEnd.add(Ar),Qn=H.document,Qn.addEventListener(`pointerdown`,Mr,Jn),typeof IntersectionObserver==`function`&&(W=new IntersectionObserver(e=>{for(let t of e)R.get(t.target)?.watches.forEach(e=>{e.isVisible=t.isIntersecting,e.isVisible?X(e):z.delete(e)})})),typeof ResizeObserver==`function`&&(G=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect,r=`${e}x${n}`,i=Zn.get(t.target);if(Zn.set(t.target,r),i!==void 0&&i!==r)for(let[e,n]of R)(e===t.target||e.parentElement===t.target)&&n.watches.forEach(X)}}));for(let[e,t]of R)t.watches.forEach(e=>{e.isVisible=W==null}),zr(e,t),W??t.watches.forEach(X)}}function Vr(){for(let e of R.values())e.release?.(),e.release=null;H?.removeEventListener(`resize`,jr),J.onEnd.delete(Ar),J.onEnd.size===0&&(J.stop?.(),J.stop=null,J.timer!==void 0&&(clearTimeout(J.timer),J.timer=void 0),J.isScrolling=!1),Qn?.removeEventListener(`pointerdown`,Mr,Jn),Qn=null,W?.disconnect(),G?.disconnect(),W=null,G=null,B.forEach(e=>clearTimeout(e)),B.clear(),tr(),V!=null&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(V),V=null,z.clear()}function Hr(){let e=U?.matches??!1;if(e!==K){if(K=e,K)Br();else{Vr();for(let e of R.values())e.watches.forEach(e=>rr(e,F))}}}function Ur(e,t,{minSize:n=44,ownsDescendantTouches:r=!1,growth:i,checkAtPress:a=!0}={}){let o=e.ownerDocument.defaultView;if(o==null)return()=>{};H=o;let s=o.matchMedia?.(Wn)??null;s!==U&&(U?.removeEventListener(`change`,Hr),U=s,U?.addEventListener(`change`,Hr)),Hr();let c={element:e,minSize:n,ownsDescendantTouches:r,growth:i,checkAtPress:a,onInsets:t,isVisible:K&&W==null,last:F,heldBy:new Set},l=R.get(e);return l==null?(l={watches:new Set,release:null,disarm:null},R.set(e,l),gr(e),l.watches.add(c),K&&zr(e,l)):(c.isVisible=[...l.watches][0]?.isVisible??c.isVisible,l.watches.add(c)),c.isVisible&&X(c),()=>{let t=R.get(e);t!=null&&t.watches.delete(c)&&(z.delete(c),t.watches.size===0&&(t.release?.(),R.delete(e),_r(e)),R.size===0&&(Vr(),U?.removeEventListener(`change`,Hr),U=null,H=null,K=!1))}}var Wr={};function Gr(e,t,{growth:n,checkAtPress:r,ownsDescendantTouches:i=!0}){let a=()=>{},o=!1,s=!1,c=!1,l=()=>{a(),c&&(c=!1,Un(e,F))},u=()=>{a=Ur(e,t=>{let n=br(e.parentElement??e);n.length===0?(c=!0,Un(e,t)):s||(s=!0,wr(n,()=>{s=!1,o||(l(),u())}))},{minSize:t,ownsDescendantTouches:i,growth:n==null?void 0:(t,r)=>n(t,r,e),checkAtPress:r})};return u(),()=>{o=!0,l()}}var Kr=new WeakMap;function qr(e,t){let n=Kr.get(e);n??(n={stop:Gr(e,44,t),holders:0},Kr.set(e,n)),n.holders+=1;let r=n,i=!1;return()=>{i||(i=!0,--r.holders,queueMicrotask(()=>{r.holders===0&&Kr.get(e)===r&&(Kr.delete(e),r.stop())}))}}function Jr(e,t=Wr){return(0,T.useCallback)(n=>{if(e&&n!=null)return qr(n,t)},[e,t])}var Yr={layer:{k5JduY:`x1fjtqre`,kwXMNM:`x7b72wb`,kv0HGH:`x1ukc1h5`,kJYu5r:`x1c440c0`,$$css:!0},layerBelowChildren:{kgeoSG:`xrfab51`,kEoFBp:`xjupvsi`,kFcpXp:`xg52tuh`,ksxFz7:`x1la2cvp`,$$css:!0}},Xr=x(`SpinnerOwnerContext`,1,!1);Xr.displayName=`SpinnerOwnerContext`;var Zr={primary:{kMwMTN:`x1tgivj0`,$$css:!0},secondary:{kMwMTN:`xv1l7n4`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,$$css:!0},placeholder:{kMwMTN:`xv1l7n4`,$$css:!0},accent:{kMwMTN:`xjse4m1`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0}},Qr={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},$r={body:{k63SB2:`xxovm9e`,$$css:!0},large:{k63SB2:`x149oux8`,$$css:!0},label:{k63SB2:`xmhvcl5`,$$css:!0},code:{k63SB2:`xx3eeay`,$$css:!0},supporting:{k63SB2:`xv8on6e`,$$css:!0},"display-1":{k63SB2:`x1txul5o`,$$css:!0},"display-2":{k63SB2:`x1y36c3f`,$$css:!0},"display-3":{k63SB2:`x1on40hk`,$$css:!0},inherit:{k63SB2:`x1pd3egz`,$$css:!0}},ei={body:{kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},large:{kGuDYH:`x18juvz8`,kLWn49:`xf74fhv`,$$css:!0},label:{kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,$$css:!0},code:{kGuDYH:`xp03k98`,kLWn49:`x17iicif`,kMv6JI:`x9m5x89`,$$css:!0},supporting:{kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},"display-1":{kGuDYH:`xsub3ws`,kLWn49:`x112ttwr`,$$css:!0},"display-2":{kGuDYH:`x1yego12`,kLWn49:`xh0iwvy`,$$css:!0},"display-3":{kGuDYH:`xlgnzhf`,kLWn49:`x1ujwuaq`,$$css:!0},inherit:{kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,$$css:!0}},ti={"4xs":{kGuDYH:`xxc45ev`,$$css:!0},"3xs":{kGuDYH:`x10p7juq`,$$css:!0},"2xs":{kGuDYH:`x16a80zy`,$$css:!0},xsm:{kGuDYH:`x51wmvv`,$$css:!0},sm:{kGuDYH:`x1eqnyfr`,$$css:!0},base:{kGuDYH:`x1j29vfg`,$$css:!0},lg:{kGuDYH:`xc7cgfe`,$$css:!0},xl:{kGuDYH:`x1wqms48`,$$css:!0},"2xl":{kGuDYH:`xhs0kqb`,$$css:!0},"3xl":{kGuDYH:`x10srzze`,$$css:!0},"4xl":{kGuDYH:`xqcvi3d`,$$css:!0}},ni={1:{kGuDYH:`xcg7oai`,kLWn49:`xfmsba7`,k63SB2:`x1v68xuy`,$$css:!0},2:{kGuDYH:`x1xvnhcw`,kLWn49:`x1cpk1wn`,k63SB2:`x12yy4cs`,$$css:!0},3:{kGuDYH:`xii13ha`,kLWn49:`xwjzt0u`,k63SB2:`x1jcxfy8`,$$css:!0},4:{kGuDYH:`x8tkxat`,kLWn49:`xqerer`,k63SB2:`x2hcmsi`,$$css:!0},5:{kGuDYH:`xsgqta0`,kLWn49:`xo3gurs`,k63SB2:`xno150v`,$$css:!0},6:{kGuDYH:`xw5ohdf`,kLWn49:`xeixjfn`,k63SB2:`x1pw4frv`,$$css:!0}},ri={inline:{k1xSpc:`xt0psk2`,kHjlTd:`xh015us`,$$css:!0},block:{k1xSpc:`x1lliihq`,kHjlTd:`xh015us`,$$css:!0}},ii={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},ai={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},oi={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},si={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},ci={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},li={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},ui={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},di={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}};function fi(e){let{maxLines:t,isExpanded:n=!1}=e,[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)(``),s=(0,T.useRef)({isTruncated:!1,fullText:``}),c=(0,T.useCallback)(e=>{s.current.isTruncated!==e&&(s.current.isTruncated=e,i(e))},[]),l=(0,T.useCallback)(e=>{s.current.fullText!==e&&(s.current.fullText=e,o(e))},[]),u=(0,T.useRef)(null),f=(0,T.useRef)(null),p=(0,T.useRef)(null),m=(0,T.useRef)({isTruncated:!1,fullText:``}),h=(0,T.useRef)(null),g=(0,T.useCallback)(e=>{if(t===0)c(!1);else if(m.current.fullText=e.textContent??``,l(m.current.fullText),t===1)m.current.isTruncated=e.scrollWidth>e.offsetWidth,c(m.current.isTruncated);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}m.current.isTruncated=t>e.offsetHeight,c(m.current.isTruncated)}},[t,c,l]);return{ref:(0,T.useCallback)(e=>{f.current?.(),f.current=null,p.current?.(),p.current=null;let r=u.current;if(u.current=e,n){e==null?h.current=r:(c(m.current.isTruncated),l(m.current.fullText));return}let i=h.current;if(h.current=null,i!=null&&e!==i&&(m.current={isTruncated:!1,fullText:``},c(!1),l(``)),e&&t>0){let t=b(e,()=>{g(e)});t??g(e),f.current=t,p.current=d(e,()=>{g(e)})}else c(!1),l(``)},[t,n,g,c,l]),isTruncated:r,fullText:a}}function pi(e){let t=null,n=null;return{async load(){return n??=e().then(e=>(t=e,e),e=>{throw n=null,e}),n},loaded:()=>t}}var mi=`modulepreload`,hi=function(e){return`/`+e},gi={},_i=function(e){return e.pathname.endsWith(`.css`)},vi=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},yi=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=hi(t,n);let r=s(t),i=_i(r);return vi(gi,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:mi,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},bi=pi(async()=>yi(()=>import(`./Tooltip-D5RzAbgJ.js`),__vite__mapDeps([0,1,2,3,4,5,6])));function xi(e){let[t,n]=(0,T.useState)(!1),[r,i]=(0,T.useState)(()=>bi.loaded()?.Tooltip??null);(0,T.useEffect)(()=>{if(!e||r!=null)return;let t=!0;return bi.load().then(e=>{t&&i(()=>e.Tooltip)},()=>{}),()=>{t=!1}},[e,r]);let a=(0,T.useRef)({interest:null,tapEvent:null,isRead:!1}),o=ae(),c=(0,T.useCallback)((t,r=null)=>{let i=a.current;e&&!i.isRead&&(i.interest=t,i.tapEvent=r,n(!0))},[e]),l=(0,T.useCallback)(e=>{let t=a.current;!t.isRead&&t.interest===e&&(t.interest=null)},[]);return{isWanted:t,tooltip:r,interestRef:a,onPointerEnter:(0,T.useCallback)(e=>{e.pointerType!==`touch`&&c(`hover`)},[c]),onPointerLeave:(0,T.useCallback)(()=>l(`hover`),[l]),onPointerDown:(0,T.useCallback)(t=>{!e||a.current.isRead?o.forget():o.press(t.nativeEvent,t.currentTarget,e=>c(`tap`,e))||l(`hover`)},[e,o,c,l]),onFocus:(0,T.useCallback)(e=>{let t=e.target;s(t)&&t.matches(`:focus-visible`)&&!o.isTouchPressCurrent()&&c(`focus`)},[c,o]),onBlur:(0,T.useCallback)(()=>l(`focus`),[l])}}function Si({anchorRef:e,content:t,placement:n,interest:r}){let i=r.tooltip;return i==null?null:(0,k.jsx)(C,{value:r.interestRef,children:(0,k.jsx)(i,{anchorRef:e,content:t,placement:n})})}function Ci(e){let t=e.clientWidth||(e instanceof HTMLElement?e.offsetWidth:0);return t>0&&e.scrollWidth>t}function wi(e){let t=e.ownerDocument.defaultView?.getComputedStyle(e);return t!=null&&t.position===`absolute`&&(t.clip!==``&&t.clip!==`auto`||t.clipPath!==``&&t.clipPath!==`none`)}var Ti=`input, textarea, select, [contenteditable]:not([contenteditable="false"]), [role="combobox"], [role="listbox"], [role="searchbox"], [role="spinbutton"], [role="slider"], [role="textbox"]`;function Ei(e){return e.closest(`[hidden], [aria-hidden="true"], ${Ti}`)!=null||wi(e)}function Di(e){return Ci(e)||[...e.querySelectorAll(`*`)].some(e=>!Ei(e)&&Ci(e))}function Oi(e){let t=``,n=e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent??``:e instanceof Element&&!Ei(e)&&e.childNodes.forEach(n)};return n(e),t.replace(/\s+/g,` `).trim()}function ki({anchorRef:e,measureRef:t,isEnabled:n,isSuppressed:r}){let[i,a]=(0,T.useState)(null),[o,c]=(0,T.useState)(()=>bi.loaded()?.UndescribedTooltip??null),l=y(e,n);(0,T.useEffect)(()=>{if(!n||o!=null)return;let e=!0;return bi.load().then(t=>{e&&c(()=>t.UndescribedTooltip)},()=>{}),()=>{e=!1}},[n,o]);let u=(0,T.useCallback)(()=>a(null),[]);return{cutText:i,Tooltip:o,hide:u,onFocus:i=>{let o=e.current,c=t?.current??o,u=i.target;if(!n||o==null||c==null||!s(u)||!o.contains(u)||!u.matches(`:focus-visible`)||l()!==`keyboard`)return;let d=Oi(c),f=d!==``&&!(r?.(o)??!1)&&Di(c);a(f?d:null)},onBlur:t=>{let n=t.relatedTarget;s(n)&&e.current?.contains(n)||a(null)},onPointerDown:u}}function Z(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var Ai=te(`TextClampContext`,1,!1),ji={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`};function Mi(e){return e in ei?e:`body`}function Ni(e){return e in Zr?e:`primary`}function Pi({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:h,style:_,as:v=`span`,children:ee,ref:te,...y}){let b=n??ji[e]??`primary`,x=Mi(e),re=Ni(b),ie=s??(a===1?`break-all`:`break-word`),ae=a>0||u?`block`:i,C=fi({maxLines:o===!1?0:a}),oe=typeof o==`string`?o:`above`,se=a>0&&o!==!1&&C.isTruncated,w=xi(se),ce=(0,T.useRef)(null),le=ne(te,C.ref,ce),ue=(0,T.use)(Ai),de=a===1||a>1&&!u,fe=a>1?{WebkitLineClamp:a}:void 0;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(v,{ref:le,...S(g(`text`,{type:e,size:t,color:b}),m(Zr[re],ei[x],t&&ti[t],$r[x],r&&Qr[r],a===1?ii.singleLine:a>1?ii.multiLine:ri[ae],a>0&&ai[ie],c&&oi[c],l!==`start`&&ui[l],u&&si.enabled,d&&ci.strikethrough,f&&li.enabled,p),h,{..._,...fe}),...y,onPointerEnter:Z(w.onPointerEnter,y.onPointerEnter),onPointerLeave:Z(w.onPointerLeave,y.onPointerLeave),onPointerDown:Z(w.onPointerDown,y.onPointerDown),onFocus:Z(w.onFocus,y.onFocus),onBlur:Z(w.onBlur,y.onBlur),children:(0,k.jsx)(Ai,{value:de||ue,children:ee})}),se&&w.isWanted&&(0,k.jsx)(Si,{anchorRef:ce,content:(0,k.jsx)(`span`,{...m(di.content),children:C.fullText}),placement:oe,interest:w})]})}Pi.displayName=`Text`;var Fi={"@astryx.spinner.loading":`Loading`},Ii={turn:{k6sLGO:`x1so62im`,k44tkh:`xidn0ey x14hxw50`,ko0y90:`xa4qsjk`,kKVMdj:`x129v4ae`,kyAemX:`x1esw782`,$$css:!0}},Q=c(`spinner/spinner-rotor/state`,1,()=>({pendingRotors:new Set,flushScheduled:!1}));function Li(){Q.flushScheduled=!1;let e=[];for(let t of Q.pendingRotors)e.push(...t.getAnimations());Q.pendingRotors.clear();for(let t of e)t.startTime=0}function Ri(e){if(e!=null&&typeof e.getAnimations==`function`)return Q.pendingRotors.add(e),Q.flushScheduled||(Q.flushScheduled=!0,requestAnimationFrame(Li)),()=>{Q.pendingRotors.delete(e)}}function zi(e){return e==null?null:(typeof e==`string`?fe(e):e)?.indicators??null}function Bi(e){return zi(Fe())?.[e]}En(Fi);var Vi=.375,Hi={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},Ui=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],Wi=`--_spinner-box-size`;function Gi(){if(typeof CSS<`u`&&typeof CSS.registerProperty==`function`)for(let e of Ui)try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!0,initialValue:`0px`})}catch{}}Gi();var $={themeSpinner:{k1xSpc:`x1lliihq`,kJuA4N:`x15r89dc`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,$$css:!0},wrapper:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,$$css:!0},spinner:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kXLuUW:`xxymvpz`,"--_spinner-ring-diameter":`x2lq4xu`,"--_spinner-ring-stroke":`x10qssua`,"--_spinner-box-size":`x69vvuq`,kmuXW:`x2lah0s`,$$css:!0},rotor:{k1xSpc:`x1lliihq`,kJuA4N:`x15r89dc`,kzqmXN:`x6v0vjy`,kZKoxP:`x7yyq19`,$$css:!0},circle:{kDwRjp:`xbh8q5q`,kR8GR0:`x1764fhq`,k3nNDw:`x1g0ag68`,kU5bRw:`x1owpc8m`,kPFa82:`xio8zfp`,kfJifR:`xgw3ha0`,$$css:!0},track:{kjVXCG:`xalkhop`,$$css:!0}},Ki={sm:{"--spinner-diameter":`x11wm0hx`,"--spinner-stroke-width":`xls98ul`,"--spinner-arc-fraction":`x7o5821`,$$css:!0},md:{"--spinner-diameter":`x15pu9g6`,"--spinner-stroke-width":`xr0wkrm`,"--spinner-arc-fraction":`x7o5821`,$$css:!0},lg:{"--spinner-diameter":`x1w424tr`,"--spinner-stroke-width":`xr0wkrm`,"--spinner-arc-fraction":`x7o5821`,$$css:!0},xl:{"--spinner-diameter":`x1orj1z9`,"--spinner-stroke-width":`x7y2bof`,"--spinner-arc-fraction":`x7o5821`,$$css:!0}},qi={default:{"--spinner-color":`xt1b8mc`,"--spinner-track-color":`xspt9s2`,$$css:!0},subtle:{"--spinner-color":`x1jevo6s`,"--spinner-track-color":`xspt9s2`,$$css:!0},onMedia:{"--spinner-color":`x13u6jys`,"--spinner-track-color":`x1ufpcf6`,$$css:!0},inherit:{"--spinner-color":`x1uzk0gl`,"--spinner-track-color":`xbfzqbu`,$$css:!0}},Ji={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}};function Yi({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:i,style:a,"aria-label":o,"data-testid":s,ref:c,...l}){let{border:u,diameter:d}=Hi[e],f=d+u*2,p=Math.PI*d,h=p*Vi,_=n!=null,v=(0,T.useId)(),te=Nn(),ne=(0,T.useRef)(null),y=(0,T.useMemo)(()=>ee(ne,c),[c]),b=_&&typeof n==`string`&&o==null,x=o??(typeof n==`string`?n:void 0)??te(`@astryx.spinner.loading`),re=(0,T.use)(Xr),ie=l[`aria-hidden`]===!0||l[`aria-hidden`]===`true`,ae=l.role;w(ne,!re&&!ie&&(ae==null||ae===`progressbar`),``,{skipFirstRender:!0,fallbackText:x});let C=Bi(`spinner`),oe=(0,k.jsx)(`span`,{ref:_?void 0:y,role:`progressbar`,"aria-label":b?void 0:x,"aria-labelledby":b?v:void 0,"data-testid":_?void 0:s,..._?{}:l,...S(_?``:g(`spinner`,{size:e,shade:t}),m($.spinner,!_&&Ki[e],!_&&qi[t],!_&&r),_?void 0:i,{..._?{}:a,width:`var(${Wi}, ${f}px)`,height:`var(${Wi}, ${f}px)`}),children:C?(0,k.jsx)(C,{state:`busy`,xstyle:$.themeSpinner}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`svg`,{width:0,height:0,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x15r89dc x6v0vjy x7yyq19 x1rea2x4`,children:(0,k.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,...m($.circle,$.track,Ji[t])})}),(0,k.jsx)(`span`,{ref:Ri,"aria-hidden":`true`,...m($.rotor,Ii.turn),children:(0,k.jsx)(`svg`,{width:f,height:f,className:`xlp1x4z x1lliihq x15r89dc x6v0vjy x7yyq19 x1rea2x4`,children:(0,k.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,strokeDasharray:`${h} ${p-h}`,className:`xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 xtve3lm x9tu13d xdv9ggb`})})})]})});return _?(0,k.jsxs)(`div`,{ref:y,"data-testid":s,...l,...S(g(`spinner`,{size:e,shade:t}),m($.wrapper,Ki[e],qi[t],r),i,a),children:[oe,typeof n==`string`?(0,k.jsx)(Pi,{id:v,type:`body`,weight:`bold`,children:n}):n]}):oe}Yi.displayName=`Spinner`;function Xi({children:e,as:t=`span`,ref:n,...r}){let{xstyle:i,className:a,style:o,...s}=r;return(0,T.createElement)(t,{ref:n,...s,className:`x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o`},e)}Xi.displayName=`VisuallyHidden`;var Zi={"--astryx-press-alpha":`var(--astryx-press-alpha)`,__varGroupHash__:`x1qqxm5o`};o[`--duration-exit`],`${o[`--duration-exit`]}${ce.duration}`;var Qi=Zi[`--astryx-press-alpha`];`${i[`--color-overlay-hover`]}${i[`--color-overlay-hover`]}`,`${i[`--color-overlay-pressed`]}${i[`--color-overlay-pressed`]}`,`${i[`--color-neutral`]}${i[`--color-neutral`]}`,`${i[`--color-overlay-pressed`]}${Qi}`,u[`--ease-exit`];var $i={backgroundColor:{"--astryx-press-alpha":`x11z29ks xli5ek3`,kKVMdj:`x14e4jsf`,k44tkh:`xem8lmn xogcwkh`,kyAemX:`x1t1ddl7`,kWV6AL:`xziyay6`,"--_press-paint":`xz2mauf`,"--_press-paint-image":`x1l7afqf`,kWkggS:`xjbqb8w x1anq1lc x1s5nr2v x13ugjdw xl8sb5e xoevpu5 xprvw0a`,kKwaWg:`x7ngsy6 xubczrd`,$$css:!0},backgroundImage:{"--astryx-press-alpha":`x11z29ks xli5ek3`,kKVMdj:`x14e4jsf`,k44tkh:`xem8lmn xogcwkh`,kyAemX:`x1t1ddl7`,kWV6AL:`xziyay6`,"--_press-paint":`xz2mauf`,"--_press-paint-image":`x1l7afqf`,kKwaWg:`x7uyq82 x3f84ok x7ngsy6 xubczrd xmvprkv xetgvay`,$$css:!0},backgroundImageOnNeutral:{"--astryx-press-alpha":`x11z29ks xli5ek3`,kKVMdj:`x14e4jsf`,k44tkh:`xem8lmn xogcwkh`,kyAemX:`x1t1ddl7`,kWV6AL:`xziyay6`,"--_press-paint":`xz2mauf`,"--_press-paint-image":`x1l7afqf`,kKwaWg:`x14bno8m xzmimnh xvbnuu x5rw36h x1qxwyo6 x1otsd3y xo3fi6e`,$$css:!0},pressedBackgroundColor:{"--astryx-press-alpha":`x11z29ks xli5ek3`,kKVMdj:`x14e4jsf`,k44tkh:`xem8lmn xogcwkh`,kyAemX:`x1t1ddl7`,kWV6AL:`xziyay6`,"--_press-paint":`xz2mauf`,"--_press-paint-image":`x1l7afqf`,kWkggS:`x1anq1lc x1s5nr2v x13ugjdw xl8sb5e`,kKwaWg:`x7ngsy6 xubczrd`,$$css:!0},pressedAlpha:{"--astryx-press-alpha":`x11z29ks xli5ek3`,kKVMdj:`x14e4jsf`,k44tkh:`xem8lmn xogcwkh`,kyAemX:`x1t1ddl7`,kWV6AL:`xziyay6`,"--_press-paint":`xz2mauf`,"--_press-paint-image":`x1l7afqf`,$$css:!0}};function ea(){return(0,T.useEffect)(()=>oe(),[]),se}function ta(e){return e!=null&&typeof e!=`boolean`&&e!==``}Zi[`--astryx-press-alpha`],`${i[`--color-overlay-hover`]}${i[`--color-overlay-hover`]}`,`${i[`--color-overlay-pressed`]}${i[`--color-overlay-pressed`]}`,o[`--duration-exit`],`${o[`--duration-exit`]}${ce.duration}`,u[`--ease-exit`],`${l[`--border-width`]}`;var na={cell:{kKwaWg:`x7ngsy6 x10ogxw0 xubczrd x18xnkjv`,kKVMdj:`x14e4jsf x6su2wr`,kHBbk8:`xif6eam`,kgeoSG:`x1ocadqd`,kEoFBp:`x1ukh9kf`,kFcpXp:`xrkptjy`,kxmVGU:`xjscm90`,kPB484:`x1kec4ew`,km8f2m:`x13r5q6d`,kLkRvE:`x1dn949c`,k5QlbN:`xw7rim2 xr9xsjc`,k7EzDT:`x1bxn267`,kQZAMR:`x1osot8d xbkwwzw`,kZiNAr:`x10t12yn`,k8Tatv:`x1dn5vsf`,$$css:!0},overDividers:{kGVxlE:`x1a8j72w x1gmmbal xnwmnb6 x1smloqv xmo6azi x1spxf8v xvofup6 xv3779j xrpmvov`,k96MEf:`x1v1ro1q`,k5Ofw7:`x1rj2gwv`,$$css:!0},cellWithoutLayer:{kKwaWg:`x18o3ruo`,kKVMdj:`x14e4jsf`,kHBbk8:`xrqzsdu`,kgeoSG:`x1995whq`,$$css:!0},cellOnImage:{kKwaWg:`x7uyq82 x3f84ok x7ngsy6 x10ogxw0 xubczrd x18xnkjv xmvprkv xetgvay`,$$css:!0},cellOnImagePressOnly:{kKwaWg:`x7uyq82 x3f84ok x7ngsy6 x10ogxw0 xubczrd x18xnkjv`,$$css:!0}},ra={control:{k6sLGO:`x1mrddfy`,$$css:!0}},ia={handDown:{"--_indicator-press-image":`x1dueop1 x189o2zt`,"--_indicator-active-press":`x1qwhovg x858ff1`,$$css:!0},activeFill:{ks3ayO:`xyhc2n1 xur6jaf xtawv5c`,$$css:!0},image:{kNctxI:`x178sc5r x1d4iov5`,$$css:!0}},aa=x(`LinkContext`,1,null);aa.displayName=`LinkContext`;function oa(e){function t({href:t,to:n,ref:r,...i}){return!ie(t)||!ie(n)?(0,T.createElement)(`a`,{ref:r,...i}):e===`a`?(0,T.createElement)(`a`,{ref:r,...i,href:t}):(0,T.createElement)(e,{ref:r,...i,href:t,to:n??t})}return t.displayName=`SafeLink(${typeof e==`string`?e:e.displayName||e.name||`Component`})`,t}function sa(e){let t=(0,T.use)(aa),n=e??t?.component??`a`;return(0,T.useMemo)(()=>oa(n),[n])}export{Ie as $,di as A,Nn as B,$r as C,ei as D,ni as E,Pn as F,Je as G,ot as H,L as I,pe as J,Ge as K,zn as L,ai as M,Yr as N,oi as O,Jr as P,Ne as Q,Rn as R,ci as S,ui as T,$e as U,En as V,it as W,me as X,ge as Y,he as Z,yi as _,ta as a,si as b,Xi as c,Pi as d,Fe as et,Ni as f,xi as g,ki as h,na as i,Qr as j,ii as k,Yi as l,Si as m,ra as n,ea as o,Z as p,_e as q,ia as r,$i as s,sa as t,de as tt,zi as u,pi as v,ri as w,Zr as x,fi as y,Hn as z};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{$ as r,$t as i,B as a,Ft as o,G as s,H as c,Ht as l,It as u,J as d,N as f,O as p,Pt as m,Q as h,T as g,U as _,W as v,Wt as y,Y as b,Z as x,_t as S,dt as C,et as w,ht as T,in as E,it as D,k as O,l as k,lt as A,nt as j,o as M,p as ee,pt as N,rn as P,rt as F,ut as te,wt as ne,x as re}from"./focusOutline.stylex-ZXdUNMFw.js";import{C as I,D as ie,E as ae,G as L,I as R,J as oe,K as z,M as se,O as ce,P as le,W as B,X as ue,Z as de,at as V,et as fe,i as pe,j as me,k as he,nt as ge,q as _e,t as ve,tt as ye,v as H,x as be}from"./useLayerDismissal-BWIjwIJ-.js";import{i as U,o as xe,t as Se}from"./primaryClick-88oQu3_u.js";var W=e(t(),1),Ce=fe(),we=ye(`TooltipPresentInterestContext`,1,null);we.displayName=`TooltipPresentInterestContext`;function G(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:e.isContentEditable}function Te(e,t){return K(e.target,e.currentTarget,t)}function K(e,t,n){return n===`always`||n!==`never`&&t!=null&&(e===t||G(t))}function Ee(){let e=!1;return{focusIn(t,n){return e=Te(t,n),e},focusOut(t,n){return!e&&!Te(t,n)?!1:(e=!1,!0)}}}function De(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Oe(e,t){e.style.anchorName=t.join(`, `)}function ke(e,t){let n=De(e);n.includes(t)||(n.push(t),Oe(e,n))}function Ae(e,t){let n=De(e);n.includes(t)&&Oe(e,n.filter(e=>e!==t))}var q=m(`layer/gesture-counter/state`,1,()=>({gesture:0,clickedGesture:null,contextMenuGesture:null,pressPointerId:null,releasingGesture:null,isDispatchingRelease:!1,releasingPointerType:``,claimedPress:null,isListening:!1,listenedDocuments:new WeakSet,unsubscribePress:null}));function je(){q.releasingGesture===void 0&&(q.releasingGesture=null),q.isDispatchingRelease===void 0&&(q.isDispatchingRelease=!1),q.releasingPointerType===void 0&&(q.releasingPointerType=``),q.listenedDocuments===void 0&&(q.listenedDocuments=new WeakSet)}function Me(){q.gesture+=1}function Ne(e){je(),q.isDispatchingRelease=!1,F(),Me(),q.pressPointerId=e.pointerId;let t=e.view??document.defaultView;if(q.unsubscribePress!=null||t==null)return;let n=[A(t,`pointerup`,Pe,{first:!0}),A(t,`pointercancel`,Pe,{first:!0}),A(t,`contextmenu`,J,{first:!0})];q.unsubscribePress=()=>{for(let e of n)e()}}function Pe(e){if(je(),e.type===`pointerup`){let t=q.gesture;q.releasingGesture=t,q.releasingPointerType=e.pointerType,q.isDispatchingRelease=!0,setTimeout(()=>{q.releasingGesture===t&&(q.releasingGesture=null)},0)}q.pressPointerId=null,q.unsubscribePress?.(),q.unsubscribePress=null}function J(){q.contextMenuGesture=q.gesture}function Fe(e){je(),q.clickedGesture=q.gesture,q.releasingGesture===q.gesture&&!(q.isDispatchingRelease&&e.detail===0)&&(q.releasingGesture=null)}function Ie(){q.isDispatchingRelease=!1}function Y(){je(),q.isListening||typeof document>`u`||(q.isListening=!0,Le(document))}function Le(e){let t=e.defaultView;t!=null&&(A(t,`pointerdown`,Ne,{first:!0}),t.addEventListener(`pointerup`,Ie)),e.addEventListener(`keydown`,Me,!0),e.addEventListener(`click`,Fe,!0)}function Re(e){Y(),e==null||e===document||q.listenedDocuments.has(e)||(q.listenedDocuments.add(e),Le(e))}function ze(){return Y(),q.gesture}function Be(){return Y(),q.clickedGesture===q.gesture}function Ve(){return Y(),q.releasingGesture===null||q.releasingGesture!==q.gesture?!1:!(q.releasingPointerType===`touch`&&D())}function He(e,t){let n=!1,r=()=>{n||(n=!0,s(),t())},i=e.defaultView,a=i==null?()=>{}:A(i,`click`,e=>{q.isDispatchingRelease&&e.detail===0||(q.releasingGesture===q.gesture&&(q.releasingGesture=null),r())},{first:!0}),o=setTimeout(r,0);function s(){n=!0,a(),clearTimeout(o)}return s}function Ue(){return Y(),q.pressPointerId!==null}function We(e,{releaseTarget:t=null,onRelease:n}={}){Y();let r=q.pressPointerId,i=e.ownerDocument.defaultView;if(r===null||i==null||q.claimedPress!==null&&q.claimedPress.layer===e&&q.claimedPress.pointerId===r&&q.claimedPress.gesture===q.gesture)return;let a={layer:e,pointerId:r,gesture:q.gesture};q.claimedPress=a;let o=n=>{try{if(n!==null){n.setPointerCapture(r);return}for(let n of[e,t])n?.hasPointerCapture(r)===!0&&n.releasePointerCapture(r)}catch{}};o(t??e);let s=null,c=()=>{let t=[];try{t=[...e.querySelectorAll(`:popover-open`)]}catch{}return[e,...t].map(e=>e.getBoundingClientRect())},l=(e,t)=>(s??=c(),s.some(n=>e>=n.left&&e<n.right&&t>=n.top&&t<n.bottom)),u=null,d=(e,n)=>(u??=t?.getBoundingClientRect()??null,u!==null&&e>=u.left&&e<u.right&&n>=u.top&&n<u.bottom),f=()=>{s=null,u=null},p=n=>{if(n.pointerId===r){let{clientX:r,clientY:i}=n;l(r,i)?o(null):t!==null&&d(r,i)?o(t):o(e)}},m=[],h=()=>{for(let e of m)e();m.length=0,q.claimedPress===a&&(q.claimedPress=null)},g=n=>{n.pointerId===r&&n.target!==e&&n.target!==t&&h()},_=e=>{e.pointerId===r&&(h(),e.type===`pointerup`&&n?.())},v=t=>{t.target===e&&t.newState===`closed`?(o(null),h()):f()};e.addEventListener(`toggle`,v,!0),m.push(A(i,`pointermove`,p),A(i,`gotpointercapture`,g),A(i,`pointerup`,_),A(i,`pointercancel`,_),A(i,`scroll`,f),A(i,`resize`,f),()=>e.removeEventListener(`toggle`,v,!0))}function Ge(e){Y(),q.contextMenuGesture===q.gesture&&We(e)}var Ke=new Set([`touch`,`pen`]);function qe(){let[e]=(0,W.useState)(Je);return(0,W.useEffect)(()=>()=>e.forget(),[e]),e}function Je(){let e=null,t=null,n=()=>{e?.(),e=null};return{press(r,i,a){if(n(),!Ke.has(r.pointerType))return!1;if(i==null)return!0;let o=ze();t=o;let s=()=>{i.removeEventListener(`click`,c),i.removeEventListener(`pointercancel`,s),e===s&&(e=null)},c=e=>{s(),ze()===o&&a(e)};return i.addEventListener(`click`,c),i.addEventListener(`pointercancel`,s),e=s,!0},forget:n,isTouchPressCurrent:()=>e!=null&&t===ze()}}var Ye=`data-astryx-layer-portal-boundary`,Xe=`external`;function Ze(e){return e.getAttribute(Ye)===Xe}var Qe=new Set(`p.h1.h2.h3.h4.h5.h6.dt.pre.legend.data.dfn.meter.output.progress.option.optgroup.table.thead.tbody.tfoot.tr.colgroup.ul.ol.menu.dl.select.datalist.picture.hgroup.ruby.rt.rp.a.button.label.summary.span.em.strong.b.i.u.s.small.mark.code.kbd.samp.var.sub.sup.abbr.cite.q.time.bdi.bdo.ins.del`.split(`.`));function $e(e){if(!e)return null;let t=null,n=!1,r=e;for(;r;){let e=r.tagName.toLowerCase();if(e===`dialog`)break;N(r)&&(n=!0),Qe.has(e)?(t=r,n=!1):t!==null&&Ze(r)&&!n&&(t=r),r=r.parentElement}return t?.parentElement??null}var et={gutterBlockStart:`calc(max(var(--spacing-4), env(safe-area-inset-top, 0px)) + var(--astryx-layer-inset-block-start, 0px))`,gutterBlockEnd:`calc(max(var(--spacing-4), env(safe-area-inset-bottom, 0px)) + var(--astryx-layer-inset-block-end, 0px))`,gutterInline:`calc(max(var(--spacing-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))`,gutterBlock:`calc(max(var(--spacing-4), env(safe-area-inset-top, 0px), env(safe-area-inset-bottom, 0px)) + max(var(--astryx-layer-inset-block-start, 0px), var(--astryx-layer-inset-block-end, 0px)))`,gutterBlockFallback:`calc(var(--spacing-4) + max(var(--astryx-layer-inset-block-start, 0px), var(--astryx-layer-inset-block-end, 0px)))`,gutterBlockStartFallback:`calc(var(--spacing-4) + var(--astryx-layer-inset-block-start, 0px))`,gutterBlockEndFallback:`calc(var(--spacing-4) + var(--astryx-layer-inset-block-end, 0px))`,gutterInlineFallback:`calc(var(--spacing-4) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))`,maxInlineSize:`calc(100vi - calc(max(var(--spacing-4), env(safe-area-inset-left, 0px)) + var(--astryx-layer-inset-inline-start, 0px)) - calc(max(var(--spacing-4), env(safe-area-inset-right, 0px)) + var(--astryx-layer-inset-inline-end, 0px)))`,maxInlineSizeFallback:`calc(100vw - var(--spacing-4) - var(--spacing-4) - var(--astryx-layer-inset-inline-start, 0px) - var(--astryx-layer-inset-inline-end, 0px))`,maxBlockSize:`min(calc(100dvb - calc(max(var(--spacing-4), env(safe-area-inset-top, 0px)) + var(--astryx-layer-inset-block-start, 0px)) - calc(max(var(--spacing-4), env(safe-area-inset-bottom, 0px)) + var(--astryx-layer-inset-block-end, 0px))), var(--_layer-keyboard-max-block-size, 100dvb))`,maxBlockSizeFallback:`min(calc(100vh - var(--spacing-4) - var(--spacing-4) - var(--astryx-layer-inset-block-start, 0px) - var(--astryx-layer-inset-block-end, 0px)), var(--_layer-keyboard-max-block-size, 100vh))`},tt=`data-layer-anchored`;function nt(e,t,n){if(n<=0)return null;let r=t-n-10;return e.bottom<=r?null:Math.max(0,r-e.top)}var rt=`--_astryx-layer-clearance`,it=`--_astryx-layer-lift`;function at(e,t){return`--astryx-layer-slide-${e}-${t}`}var ot=`var(${rt}, 0px)`,st=`var(${it}, 0px)`;function ct(e,t,n){return`${e}:${t};${e}:${n};`}function lt(e){return ct(e,et.gutterBlockFallback,et.gutterBlock)}function ut(e){return ct(e,et.gutterInlineFallback,et.gutterInline)}var dt={above:`below`,below:`above`,start:`end`,end:`start`};function ft(e){switch(e){case`above`:return`inset-block-end:calc(anchor(outside) + ${st});inset-block-start:calc(0px - ${st});align-self:self-end;margin-block-end:${ot};${lt(`margin-block-start`)}`;case`below`:return`inset-block-start:calc(anchor(outside) - ${st});inset-block-end:${st};align-self:self-start;margin-block-start:${ot};${lt(`margin-block-end`)}`;case`start`:return`inset-inline-end:anchor(outside);inset-inline-start:0;justify-self:self-end;margin-inline-end:${ot};${ut(`margin-inline-start`)}`;case`end`:return`inset-inline-start:anchor(outside);inset-inline-end:0;justify-self:self-start;margin-inline-start:${ot};${ut(`margin-inline-end`)}`}}function pt(e){return e===`above`||e===`below`?`inset-inline-start:0;inset-inline-end:0;justify-self:anchor-center;${ut(`margin-inline-start`)}${ut(`margin-inline-end`)}`:`inset-block-start:calc(0px - ${st});inset-block-end:${st};align-self:anchor-center;${lt(`margin-block-start`)}${lt(`margin-block-end`)}`}function mt(e,t){let n=t===`same`?e:dt[e];return`@position-try ${at(e,t)}{${ft(n)}${pt(n)}}`}var ht=[`above`,`below`,`start`,`end`];function gt(e){return e===`above`||e===`start`?`unsafe self-end`:`unsafe self-start`}function _t(e){return`--astryx-layer-beside-${e}`}function vt(e){return`--astryx-layer-fit-${e}`}function yt(e){return`@position-try ${_t(e)}{${ft(e)}${pt(e)}inline-size:max-content;justify-self:${gt(e)};}`}function bt(e,t){return`calc((${e} - anchor-size(block)) / 2 - ${ot} - ${t} - 1px)`}function xt(e){let t=ct(`min-block-size`,bt(`100vh`,et.gutterBlockFallback),bt(`100dvb`,et.gutterBlock));return`@position-try ${vt(e)}{${ft(e)}${pt(e)}block-size:-webkit-fill-available;block-size:stretch;${t}align-self:${gt(e)};}`}function St(e){if(e!==`above`&&e!==`below`)return``;let t=e===`above`?`below`:`above`;return`flip-block, ${_t(`end`)}, ${_t(`start`)}, ${vt(e)}, ${vt(t)}`}function Ct(){return[...ht.flatMap(e=>[mt(e,`same`),mt(e,`opposite`)]),yt(`end`),yt(`start`),xt(`above`),xt(`below`)].join(``)}var wt=`astryx-layer-slide-rules`;function Tt(e){if(e.getElementById(`astryx-layer-slide-rules`))return;let t=e.createElement(`style`);t.id=wt,t.textContent=Ct(),e.head.appendChild(t)}var Et=[`transform`,`translate`,`scale`,`rotate`],Dt=[1,0,0,1,0,0],Ot=64,kt=1/2048,At=1/32;function jt(e){return Et.some(t=>{let n=e.getPropertyValue(t);return n!==``&&n!==`none`})}function Mt(e){return e!==``&&e!==`none`}function Nt(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Pt(e){let t=e.getPropertyValue(`translate`),n=e.getPropertyValue(`rotate`),r=e.getPropertyValue(`scale`),i=e.getPropertyValue(`transform`),a=Dt;if(Mt(t)){let[e=`0`,n=`0`,r]=t.split(` `);if(r!=null||!t.split(` `).every(e=>e.endsWith(`px`)))return null;a=Nt(a,[1,0,0,1,parseFloat(e),parseFloat(n)])}if(Mt(n)){if(!/^-?[\d.]+deg$/.test(n))return null;let e=parseFloat(n)*Math.PI/180,t=Math.cos(e),r=Math.sin(e);a=Nt(a,[t,r,-r,t,0,0])}if(Mt(r)){let[e=`1`,t=e,n]=r.split(` `);if(n!=null)return null;a=Nt(a,[parseFloat(e),0,0,parseFloat(t),0,0])}if(Mt(i)){let e=/^matrix\(([^)]*)\)$/.exec(i)?.[1].split(`,`).map(e=>parseFloat(e));if(e?.length!==6||e.some(e=>Number.isNaN(e)))return null;a=Nt(a,e)}return a}function Ft([e,t,n,r]){return t===0&&n===0&&e!==0&&r!==0}function It(e){return(e.currentCSSZoom??1)===1&&!(e.getAnimations?.()??[]).some(e=>e.pending)}function Lt(e){let t=t=>parseFloat(e.getPropertyValue(t))||0,n=e.getPropertyValue(`box-sizing`)!==`border-box`,r=e=>n?e.reduce((e,n)=>e+t(`padding-${n}`)+t(`border-${n}-width`),0):0;return{width:t(`width`)+r([`left`,`right`]),height:t(`height`)+r([`top`,`bottom`])}}function Rt(e,t,[n,,,r]){let{width:i,height:a}=Lt(t);if(!(i>0)||!(a>0))return!1;let o=Math.abs(e.width-i*Math.abs(n))+Math.abs(e.height-a*Math.abs(r)),s=Math.abs(e.width-i)+Math.abs(e.height-a);return o+At<s}function zt(e){let t=Math.round(e*Ot)/Ot;return Math.abs(t-e)<kt?t:e}function Bt(e,t,n,r){let[i,a,o,s,c,l]=r,u=Ft(r),d=u?e.width/Math.abs(i):t.offsetWidth,f=u?e.height/Math.abs(s):t.offsetHeight;if(!u&&d<=0)return e;let[p=0,m=0]=n.getPropertyValue(`transform-origin`).split(` `).map(e=>parseFloat(e)),h=d/2-p,g=f/2-m,_=i*h+o*g+c,v=a*h+s*g+l,y=e.left+e.width/2-_-p,b=e.top+e.height/2-v-m;if(!u)return new DOMRect(y,b,d,f);let x=zt(y),S=zt(b);return new DOMRect(x,S,zt(y+d)-x,zt(b+f)-S)}function Vt(e){let t=e.ownerDocument.defaultView,n=t?.getComputedStyle(e);if(n==null||!jt(n))return e.getBoundingClientRect();let r=Pt(n);if(r!=null&&Ft(r)&&It(e)){let t=e.getBoundingClientRect();if(Rt(t,n,r))return Bt(t,e,n,r)}let i=n.getPropertyValue(`transition-property`).split(`,`).map(e=>e.trim()),a=n.getPropertyValue(`transition-duration`).split(`,`).map(parseFloat);if(i.some((e,t)=>(e===`all`||Et.includes(e))&&(a[t%a.length]??0)>0)){let t=e.getBoundingClientRect();return r==null?t:Bt(t,e,n,r)}let o=Et.map(t=>[t,e.style.getPropertyValue(t),e.style.getPropertyPriority(t)]);for(let t of Et)e.style.setProperty(t,`none`,`important`);let s=e.getBoundingClientRect(),c=t?.getComputedStyle(e),l=c!=null&&jt(c)?Pt(c):null,u=c!=null&&l!=null?Bt(s,e,c,l):s;for(let[t,n,r]of o)n===``?e.style.removeProperty(t):e.style.setProperty(t,n,r);return u}function Ht(e,{onClicked:t,onNoClick:n}){let r=e.ownerDocument.defaultView;if(r==null){let e=!1;return queueMicrotask(()=>{e||n()}),()=>{e=!0}}let i=!1,a=null,o=null,s=null,c=()=>{i=!0,s?.(),s=null,o!=null&&(r.clearTimeout(o),o=null)};return s=A(r,`click`,n=>{!i&&n.isTrusted&&e.contains(n.target)&&(c(),a=r.setTimeout(()=>{a=null,t(n.defaultPrevented)},0))}),o=r.setTimeout(()=>{i||(c(),n())},300),()=>{c(),a!=null&&(r.clearTimeout(a),a=null)}}function Ut(e){let t=e.ownerDocument.defaultView,n=null,r=t=>{n==null&&t.target===e&&(n=t)};t?.addEventListener(`click`,r,!0);try{e.click()}finally{t?.removeEventListener(`click`,r,!0)}return n?.defaultPrevented===!0}function Wt(e){return w(e.ownerDocument),j(()=>Ut(e))}var Gt=`--_layer-keyboard-inset-block-end`;function Kt(e,t){let n=e.ownerDocument.defaultView;for(let r=t.parentElement;r!=null;r=r===e?null:r.parentElement){let e=n?.getComputedStyle(r).overflowY;if(r.scrollHeight>r.clientHeight+1&&(e===`auto`||e===`scroll`)){let e=r.getBoundingClientRect(),n=t.getBoundingClientRect();n.bottom>e.bottom?r.scrollTop+=n.bottom-e.bottom:n.top<e.top&&(r.scrollTop-=e.top-n.top);return}}}function qt(e){return e==null?null:{[it]:`${e}px`}}function Jt(e,t){let[n,r]=(0,W.useState)(null),[i,a]=(0,W.useState)(null),[o,s]=(0,W.useState)(null),c=(0,W.useRef)(null),l=(0,W.useRef)(null),u=(0,W.useRef)(null),d=(0,W.useRef)(null);E(()=>{let n=t.current,i=n?.ownerDocument.defaultView;if(!e||n==null||i==null)return;let o=i,f=!1,p=I(i),m=n,h=0,_=()=>{h+=1},v=()=>{let e=t.current;return e==null||e===m?!1:(m.removeEventListener(`pointerdown`,M,!0),m.removeEventListener(`touchstart`,_,{capture:!0}),m.removeEventListener(`wheel`,_,{capture:!0}),m=e,m.addEventListener(`pointerdown`,M,!0),m.addEventListener(`touchstart`,_,{capture:!0,passive:!0}),m.addEventListener(`wheel`,_,{capture:!0,passive:!0}),!0)},y=(e,t=u.current,n=null)=>{f||c.current===e&&u.current===t&&l.current===n||(c.current=e,u.current=t,l.current=n,(0,Ce.flushSync)(()=>{r(e),s(t),a(n)}),v())},b=e=>{let t=e>0?e+10:0,n=Math.max(t,u.current??0);if(y(null,n>0?n:null),e<=0)return!1;let r=_e(i),a=Vt(m),o=nt(a,r,e);if(o==null)return!1;y(o);let s=Vt(m);if(s.top>a.top+1&&Math.abs(s.bottom-a.bottom)>1){y(o,u.current,s.top-a.top);let t=Vt(m);if(Math.abs(t.top-a.top)>1){y(o);let t=nt(s,r,e);t!=null&&y(t)}}let c=r-e-10;return Vt(m).bottom>c+1?(y(null),!1):!0},x=e=>{if(v(),!m.hasAttribute(`data-layer-anchored`)){y(null,null);return}if(!b(e))return;let t=m.ownerDocument.activeElement;if(t!=null&&t!==m&&m.contains(t)){let e=h;i.requestAnimationFrame(()=>i.requestAnimationFrame(()=>{!f&&h===e&&Kt(m,t)}))}},S=null,C=()=>{S!=null&&(i.clearTimeout(S),S=null)},w=new Set,T=null,E=null,D=null,O=()=>{let e=[A(o,`pointerup`,ee),A(o,`pointercancel`,ee)];D=()=>{for(let t of e)t()}},k=()=>{D?.(),D=null},j=()=>{E?.(),E=null,w.clear(),k();let e=T;T=null,e?.()};function M(e){_(),w.size===0&&O(),w.add(e.pointerId)}function ee(e){w.has(e.pointerId)&&(e.type===`pointercancel`?j():E??=Ht(m,{onClicked:j,onNoClick:j}))}m.addEventListener(`pointerdown`,M,!0),m.addEventListener(`touchstart`,_,{capture:!0,passive:!0}),m.addEventListener(`wheel`,_,{capture:!0,passive:!0});let N=p.subscribe(e=>{if(C(),e.animated&&e.to>e.from){let t=e.start+(p.profile===`chromium`&&e.curve!=null?e.curve.durationMs:g.keyboardNotificationMs);S=i.setTimeout(()=>{S=null,x(e.to)},Math.max(0,t-i.performance.now()))}else w.size>0?T=()=>x(e.to):x(e.to)});R(i)>0&&i.queueMicrotask(()=>{f||x(R(i))});let P=null;return d.current=()=>{!v()||P!=null||R(i)<=0||(P=i.requestAnimationFrame(()=>{P=null,f||S!=null||(w.size>0?T=()=>x(R(i)):x(R(i)))}))},()=>{f=!0,d.current=null,P!=null&&i.cancelAnimationFrame(P),N(),C(),E?.(),m.removeEventListener(`pointerdown`,M,!0),m.removeEventListener(`touchstart`,_,{capture:!0}),m.removeEventListener(`wheel`,_,{capture:!0}),k(),c.current!=null&&(c.current=null,r(null)),l.current!=null&&(l.current=null,a(null)),u.current!=null&&(u.current=null,s(null))}},[e,t]);let f=(0,W.useCallback)(()=>{d.current?.()},[]);return{cap:e?n:null,lift:e?i:null,inset:e?o:null,followLayerElement:f}}var Yt=`--_astryx-layer-enter-x`,Xt=`--_astryx-layer-enter-y`,Zt=`--_astryx-layer-enter-origin`,Qt=`--_astryx-layer-enter-gap`,$t=(e,t)=>Math.min(t,Math.max(0,e));function en(e,t){if(e.width<=0||e.height<=0)return null;let n=t.left+t.width/2,r=t.top+t.height/2,i=$t(n-e.left,e.width),a=$t(r-e.top,e.height),o=t.width<=1&&t.height<=1;if(i>0&&i<e.width&&a>0&&a<e.height)return{x:0,y:0,originX:i,originY:a,gap:0};let s=(e.left+e.width/2-n)/((e.width+t.width)/2),c=(e.top+e.height/2-r)/((e.height+t.height)/2);if(Math.abs(c)>=Math.abs(s)){let n=c>0;return{x:0,y:n?-1:1,originX:i,originY:n?0:e.height,gap:o?null:Math.max(0,n?e.top-(t.top+t.height):t.top-(e.top+e.height))}}let l=s>0;return{x:l?-1:1,y:0,originX:l?0:e.width,originY:a,gap:o?null:Math.max(0,l?e.left-(t.left+t.width):t.left-(e.left+e.width))}}function tn(e,t){let n=t.getBoundingClientRect();return en(Vt(e),n)}var nn=e=>`${Math.round(e*1e3)/1e3}px`;function rn(e,t){e.style.setProperty(Yt,t==null?`initial`:String(t.x)),e.style.setProperty(Xt,t==null?`initial`:String(t.y)),e.style.setProperty(Zt,t==null?`initial`:`${nn(t.originX)} ${nn(t.originY)}`);let n=t?.gap==null?null:Math.floor(t.gap*1e3)/1e3;e.style.setProperty(Qt,n==null?`initial`:`${n}px`)}var an=[[`blockStart`,`--astryx-layer-inset-block-start`],[`blockEnd`,`--astryx-layer-inset-block-end`],[`inlineStart`,`--astryx-layer-inset-inline-start`],[`inlineEnd`,`--astryx-layer-inset-inline-end`]];function on(e){return typeof e==`number`?`${e}px`:e}function sn(e){let t={};if(e)for(let[n,r]of an){let i=e[n];i!=null&&i!==``&&(t[r]=on(i))}return t}var cn=o(`layer/popover-operations/own-operations-by-document`,1),ln=o(`layer/popover-operations/browser-hides-by-document`,1),un=o(`layer/popover-operations/settled-callbacks-by-document`,1);function dn(e,t,n){e.set(t,Math.max(0,(e.get(t)??0)+n))}function fn(e){return(cn.get(e)??0)>0||(ln.get(e)??0)>0}function pn(e){!fn(e)&&un.has(e)&&queueMicrotask(()=>mn(e))}function mn(e){if(fn(e))return;let t=un.get(e);if(t!=null){un.delete(e);for(let e of t)queueMicrotask(e)}}function hn(e,t){dn(cn,e,1);try{t()}finally{dn(cn,e,-1),pn(e)}}function gn(e){return(cn.get(e)??0)>0}function _n(e){return(ln.get(e)??0)>0}var vn=u(`layer/popover-operations/browser-hides-in-flight`,1);function yn(e){if(vn.has(e))return;vn.add(e);let t=e.ownerDocument;dn(ln,t,1);let n=t.defaultView??globalThis,r=null,i=!1,a=()=>{i||(i=!0,e.removeEventListener(`toggle`,a),r!=null&&(n.clearTimeout(r),r=null),vn.delete(e),dn(ln,t,-1),pn(t))};e.addEventListener(`toggle`,a),r=n.setTimeout(a,0)}function bn(e,t){if(!fn(e)){t();return}let n=un.get(e);n==null?un.set(e,[t]):n.push(t)}var xn=new Set([`effect`,`timeline`,`rangeStart`,`rangeEnd`,`playbackRate`,`startTime`,`currentTime`]);function Sn(e){let t=new Set;for(let n=Object.getPrototypeOf(e);n!=null&&n!==Object.prototype;n=Object.getPrototypeOf(n))for(let[e,r]of Object.entries(Object.getOwnPropertyDescriptors(n)))r.set!=null&&t.add(e);return[...t]}function Cn(e){return typeof CSSNumericValue<`u`&&e instanceof CSSNumericValue?e.toString():typeof e==`object`&&e&&Object.getPrototypeOf(e)===Object.prototype?Object.entries(e).map(([e,t])=>`${e}:${Cn(t)??String(t)}`).join(`;`):null}function wn(e,t){if(e===t)return!1;let n=Cn(e);return n==null||n!==Cn(t)}function Tn(e){let t=e.effect,n={};for(let t of Sn(e))n[t]=e[t];let r={};if(t!=null)for(let e of Sn(t))r[e]=t[e];return{animation:e,name:e.animationName??``,target:t?.target??null,pseudoElement:t?.pseudoElement??null,values:n,effectValues:r,timing:t?.getTiming()??null,keyframes:t?.getKeyframes()??null,playState:e.playState,replaceState:e.replaceState}}function En(e,t,n){e[t]=n}function Dn(e,t){for(let n of Sn(e))n in t.effectValues&&wn(t.effectValues[n],e[n])&&En(e,n,t.effectValues[n]);if(t.timing!=null){let n=e.getTiming(),r={};for(let[e,i]of Object.entries(t.timing))wn(i,n[e])&&(r[e]=i);Object.keys(r).length>0&&e.updateTiming(r)}t.keyframes!=null&&JSON.stringify(t.keyframes)!==JSON.stringify(e.getKeyframes())&&e.setKeyframes(t.keyframes)}function On(e,t){let n=()=>{t.startTime!=null&&e.playState!==`idle`&&(e.startTime=t.startTime)};t.startTime==null?t.ready.then(n,()=>void 0):n()}function kn(e,t){let n=e.effect;n!=null&&Dn(n,t);let r=e;for(let n of[`timeline`,`rangeStart`,`rangeEnd`])n in t.values&&wn(t.values[n],r[n])&&En(e,n,t.values[n]);for(let n of Sn(e))!xn.has(n)&&n in t.values&&wn(t.values[n],r[n])&&En(e,n,t.values[n]);t.replaceState===`persisted`&&e.replaceState!==`persisted`&&e.persist();let i=t.values.playbackRate;typeof i==`number`&&i!==e.playbackRate&&(e.playbackRate=i),t.playState===`paused`&&e.playState!==`paused`?e.pause():t.playState!==`paused`&&e.playState===`paused`&&e.play();let a=t.values.startTime,o=t.values.currentTime;t.playState===`finished`?e.finish():a==null?o!=null&&(e.currentTime=o,t.playState===`running`&&On(e,t.animation)):e.startTime=a}function An(e){e.target!=null&&e.keyframes!=null&&kn(e.target.animate(e.keyframes,{pseudoElement:e.pseudoElement??void 0}),e)}function jn(e){return typeof CSSTransition<`u`&&e instanceof CSSTransition}function Mn(e){return typeof CSSAnimation<`u`&&e instanceof CSSAnimation}function Nn(e){let t=e.effect?.getComputedTiming().endTime;t!=null&&Number.isFinite(Number(t))&&e.playbackRate!==0&&e.finish()}function Pn(e,t,n){let r=e.getAnimations({subtree:!0}),i=new Set(r),a=[];for(let e of t)i.has(e.animation)||(jn(e.animation)?An(e):a.push(e));let o=r.filter(e=>(Mn(e)||jn(e))&&!n.has(e)),s=[];for(let e of o){let t=e.effect,n=e.animationName??``,r=a.findIndex(e=>e.name===n&&e.target===(t?.target??null)&&e.pseudoElement===(t?.pseudoElement??null));r===-1?s.push(e):kn(e,a.splice(r,1)[0])}for(let e of s){let t=e.animationName??``,n=a.findIndex(e=>e.name===t);n===-1?Nn(e):kn(e,a.splice(n,1)[0])}}function Fn(e,t){if(typeof e.getAnimations!=`function`){t();return}let n=e.getAnimations({subtree:!0}),r=n.map(Tn);t(),Pn(e,r,new Set(n))}var In=ye(`LayerContext`,1,null);In.displayName=`LayerContext`;function Ln(){return(0,W.use)(In)}var X=n(),Rn={keoZOQ:`x1vhfslr`,k1K539:`x119uzjn`,$$css:!0},zn={keoZOQ:`x1lhixnp`,k1K539:`xlm3tn6`,$$css:!0},Bn={k71WvV:`xa3ewmy`,$$css:!0},Vn={keTefX:`x1cytvie`,$$css:!0},Z={keyboardCap:(e,t,n)=>[{"--_layer-keyboard-max-block-size":e==null?e:`x1ex41ac`,"--_layer-keyboard-overflow":t==null?t:`xypflj0`,"--_layer-keyboard-inset-block-end":n==null?n:`xihxjaz`,$$css:!0},{"--x---_layer-keyboard-max-block-size":e??void 0,"--x---_layer-keyboard-overflow":t??void 0,"--x---_layer-keyboard-inset-block-end":n??void 0}],scrollsOnOverflow:{kORKVm:`x1odjw0f`,$$css:!0},base:{keoZOQ:`xdj266r`,k1K539:`xat24cr`,keTefX:`x1lziwak`,k71WvV:`x14z9mp`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kVQacm:`x1rea2x4`,kWkggS:`xjbqb8w`,$$css:!0},fixed:{kVAEAm:`xixxii4`,$$css:!0},placementBelow:e=>[Rn,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],placementAbove:e=>[zn,{"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],placementEnd:e=>[Bn,{keTefX:e==null?e:`x4lel18`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],placementStart:e=>[Vn,{k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],farBelow:{k1K539:`x119uzjn`,$$css:!0},farAbove:{keoZOQ:`x1lhixnp`,$$css:!0},farEnd:{k71WvV:`xa3ewmy`,$$css:!0},farStart:{keTefX:`x1cytvie`,$$css:!0},viewportFit:{kB7OPa:`x9f619`,ks0D6T:`xc0b1yq`,kskxy:`x3v4n1`,$$css:!0},sideBelow:{k87sOh:`x11qqqwi`,krVfgx:`x1ihzn68`,$$css:!0},sideAbove:{k87sOh:`xs7zcsv`,krVfgx:`x1dkbz8d`,$$css:!0},sideEnd:{kLqNvP:`xgn968y`,kt4wiu:`xtijo5x`,$$css:!0},sideStart:{kLqNvP:`x1o0tod`,kt4wiu:`x1rmahmk`,$$css:!0},alignInlineStart:{kLqNvP:`xjlsgp1`,kt4wiu:`xtijo5x`,k71WvV:`x144kxal`,$$css:!0},alignInlineEnd:{kLqNvP:`x1o0tod`,kt4wiu:`x1sii5lc`,keTefX:`xpdk1p0`,$$css:!0},alignBlockStart:{k87sOh:`x1pex6sq`,krVfgx:`x1ihzn68`,k1K539:`x3z50q0`,$$css:!0},alignBlockEnd:{k87sOh:`xs7zcsv`,krVfgx:`x1lalo65`,keoZOQ:`x1j6tnbc`,$$css:!0},heldInlineStart:{kLqNvP:`x1hirqua`,$$css:!0},heldInlineEnd:{kt4wiu:`xt5bzs0`,$$css:!0},heldBlockStart:{k87sOh:`x2tnmsz`,$$css:!0},heldBlockEnd:{krVfgx:`xbmjlmh`,$$css:!0},centerInline:{kLqNvP:`x1o0tod`,kt4wiu:`xtijo5x`,keTefX:`xpdk1p0`,k71WvV:`x144kxal`,$$css:!0},centerBlock:{k87sOh:`xs7zcsv`,krVfgx:`x1ihzn68`,keoZOQ:`x1j6tnbc`,k1K539:`x3z50q0`,$$css:!0}};function Hn(e){return typeof e==`number`?`${e}px`:e}function Un(e){Fn(e,()=>{let t=e.style.display;e.style.display=`none`,e.getBoundingClientRect(),e.style.display=t})}function Wn(e){return e.playState===`running`&&e.effect?.getComputedTiming().endTime!==1/0}function Gn(e){return e==null||typeof e.getAnimations!=`function`?[]:e.getAnimations({subtree:!0}).filter(Wn)}function Kn(e){let t=e.ownerDocument.defaultView?.getComputedStyle(e);if(t==null)return!1;let n=e=>t.getPropertyValue(e).split(`,`).map(e=>e.trim()),r=n(`transition-behavior`),i=n(`transition-duration`).map(parseFloat),a=n(`transition-delay`).map(parseFloat);return n(`transition-property`).some((e,t)=>{let n=r[t%r.length],o=i[t%i.length]||0,s=a[t%a.length]||0;return(e===`all`||e===`display`)&&n===`allow-discrete`&&o+Math.max(0,s)>0})}function qn(e){return(e.ownerDocument.defaultView?.getComputedStyle(e))?.getPropertyValue(`animation-name`).trim()||`none`}function Jn({layer:e,anchor:t},n){if(e.width<=0||e.height<=0)return!1;let r=e.left<t.right&&t.left<e.right&&e.top<t.bottom&&t.top<e.bottom,i=t.bottom>0&&t.top<n;return r||i&&(e.top<0||e.bottom>n)}function Yn(e,t){if(t==null)return null;let n=t.getBoundingClientRect(),r=e.ownerDocument.documentElement.clientHeight,i={anchor:n,layer:Vt(e)};return Jn(i,r)?(Un(e),null):i}function Xn(e,t,n){t==null||!e.hasAttribute(`data-layer-anchored`)?rn(e,null):rn(e,n==null?tn(e,t):en(n.layer,n.anchor))}var Zn=150;function Qn(e){let t=[];for(let n=e;n;n=c(n)){let e=n.getRootNode();h(e)&&!t.includes(e)&&t.push(e)}return t}function $n(e,t,n){let r=null,i=null,o=()=>{r!==null&&(e.cancelAnimationFrame(r),r=null),i!==null&&(e.clearTimeout(i),i=null)},s=()=>{o(),r=e.requestAnimationFrame(()=>{r=null,i=e.setTimeout(()=>{i=null,r=e.requestAnimationFrame(()=>{r=null,n()})})})},c=e.onscrollend!==void 0,l=e=>a(e.target,t),u=t=>{l(t)&&(o(),c||(i=e.setTimeout(()=>{i=null,s()},Zn)))},d=e=>{l(e)&&s()},f=[A(e,`scroll`,u)];c&&f.push(A(e,`scrollend`,d));let p={capture:!0,passive:!0},m=Qn(t);for(let e of m)e.addEventListener(`scroll`,u,p),c&&e.addEventListener(`scrollend`,d,p);return()=>{for(let e of f)e();for(let e of m)e.removeEventListener(`scroll`,u,p),e.removeEventListener(`scrollend`,d,p);o()}}function er(e,t,n,r,i){let a=e.ownerDocument.defaultView;if(!a)return()=>{};let o=()=>{n()&&Yn(e,t)},s=null;if(typeof ResizeObserver<`u`){s=new ResizeObserver(o),s.observe(e);for(let t of Array.from(e.children))s.observe(t);s.observe(t)}a.addEventListener(`resize`,o);let c=$n(a,t,()=>{n()&&(r()&&e.hasAttribute(`data-layer-anchored`)?(Un(e),i()):Yn(e,t))});return()=>{s?.disconnect(),c(),a.removeEventListener(`resize`,o)}}function tr(e){if(e.getClientRects().length===0)return!1;let t=e.closest(`dialog`);return t==null||s(t)}function nr(e){if(e.getClientRects().length===0)return!1;let t=e.closest(`dialog`);return t!=null&&!s(t)}function rr(e,t){let n=e.ownerDocument,r=n.defaultView;if(typeof n.getAnimations!=`function`||r==null)return t(),()=>{};let i=!1,a=r.requestAnimationFrame(()=>{if(i)return;let r=n.getAnimations().filter(t=>{let r=t.effect,i=r!=null&&`target`in r?r.target:null;return!x(i)||!(i===e||i.contains(e))||t.timeline!==n.timeline?!1:Wn(t)});r.length===0?t():Promise.all(r.map(async e=>e.finished.catch(()=>{}))).then(()=>{i||t()})});return()=>{i=!0,r.cancelAnimationFrame(a)}}function ir(){let e=null,t=new Set;return{get:()=>e,set:n=>{if(n!==e){e=n;for(let e of t)e()}},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}var ar=()=>null;function or({mountStore:e,renderLayer:t,sentinelRef:n}){let r=(0,W.useSyncExternalStore)(e.subscribe,e.get,ar),i=(0,X.jsx)(`template`,{ref:n});if(r===null)return(0,X.jsx)(X.Fragment,{children:i});let a=t(r);return(0,X.jsxs)(X.Fragment,{children:[i,r.portalTarget?(0,Ce.createPortal)(a,r.portalTarget):a]})}function sr(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function cr(e=`above`){return`flip-block, flip-inline, flip-block flip-inline, ${at(e,`same`)}, ${at(e,`opposite`)}`}function lr(e,t,n){let r=e===`above`||e===`below`,i=e===`above`||e===`start`?`self-end`:`self-start`,a=t===`center`?`anchor-center`:`${n?``:`unsafe `}self-${t}`;return r?{alignSelf:i,justifySelf:a}:{justifySelf:i,alignSelf:a}}function ur(e,t,n){let r=e===`above`||e===`below`,i=e===`above`?Z.sideAbove:e===`below`?Z.sideBelow:e===`start`?Z.sideStart:Z.sideEnd;if(t===`center`)return[i,r?Z.centerInline:Z.centerBlock];let a=t===`start`,o=r?a?Z.alignInlineStart:Z.alignInlineEnd:a?Z.alignBlockStart:Z.alignBlockEnd,s=n?null:r?a?Z.heldInlineStart:Z.heldInlineEnd:a?Z.heldBlockStart:Z.heldBlockEnd;return s==null?[i,o]:[i,o,s]}function dr(e,t){return(0,W.useMemo)(()=>({onPointerDown:n=>{let i=n.currentTarget,a=i.ownerDocument,o=i.getRootNode(),s=(h(o)?o:a).getElementById(e);if(!t&&(s==null||!r(s)))return;i.setAttribute(`popovertarget`,e);let c=()=>{a.removeEventListener(`pointerup`,c),a.removeEventListener(`pointercancel`,c),a.defaultView?.setTimeout(()=>{i.removeAttribute(`popovertarget`)},0)};a.addEventListener(`pointerup`,c),a.addEventListener(`pointercancel`,c)},onClickCapture:e=>{let t=e.currentTarget;t.hasAttribute(`popovertarget`)&&(e.preventDefault(),t.removeAttribute(`popovertarget`))}}),[e,t])}function fr(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=a&&t===`context`?e.keepsMountAfterShow??!1:!1,s=t===`context`?e.keepsAnchorClear??!1:!1,c=t===`context`?e.watchesOutsidePans:void 0,l=t===`context`?e.writesEntranceSide??!1:!1,u=te(t===`context`?e.onPlacedAfresh:void 0),d=t===`context`?e.onCloseStart:void 0,f=t===`context`?e.onOpenPendingChange:void 0,p=te(t===`context`&&e.waitsForAnchor===!0),m=te(d),h=(0,W.useId)(),g=`--astryx-layer-${h.replace(/:/g,``)}`,[_,v]=(0,W.useState)(!1),[y,b]=(0,W.useState)(!0),x=(0,W.useRef)(!0),S=(0,W.useCallback)(e=>{x.current!==e&&(x.current=e,b(e))},[]),w=Ln()?.inset,T=(0,W.useRef)(null),D=(0,W.useRef)(null),O=(0,W.useRef)(null),k=(0,W.useRef)(null),A=(0,W.useRef)(null),j=(0,W.useRef)(null),[M]=(0,W.useState)(ir),[ee,N]=(0,W.useState)(0),F=(0,W.useRef)(!1),ne=(0,W.useRef)(null),I=(0,W.useRef)(!1),L=(0,W.useRef)(null),R=(0,W.useRef)(!1),z=(0,W.useCallback)(e=>{let t={};L.current=t;let n=()=>{if(L.current!==t)return;L.current=null;let e=O.current;!I.current&&e!=null&&Ae(e,g)},r=R.current?Gn(e):[];r.length===0?n():Promise.all(r.map(async e=>e.finished.catch(()=>void 0))).then(n)},[g]),se=(0,W.useRef)(null),ce=(0,W.useRef)(null),le=(0,W.useRef)(null),B=(0,W.useRef)(null),ue=(0,W.useRef)(null),V=(0,W.useCallback)(()=>{ue.current?.(),ue.current=null},[]),fe=(0,W.useCallback)(()=>{let e=ze();return se.current===e},[]),pe=(0,W.useCallback)(e=>{if(typeof e.showPopover==`function`){let t=e.ownerDocument,n=_n(t);try{hn(t,()=>{let t=O.current,n=t?.ownerDocument.defaultView;e.showPopover({source:n!=null&&t instanceof n.HTMLElement?t:void 0})})}catch(e){if(n&&e?.name===`InvalidStateError`)return!1;throw e}}else e.style.display=`block`;return D.current=e,!0},[]),me=(0,W.useCallback)(e=>{if(t!==`context`)return!0;let n=j.current;if(n===null)return!1;let r=n.portalTarget??A.current?.parentElement??null;return e.parentElement===r},[t]),he=(0,W.useCallback)(()=>{if(t!==`context`)return;let e=A.current,n=e?.parentElement??null;if(!e||!n)return;Tt(e.ownerDocument);let r=$e(n),i=F.current||I.current,a={portalTarget:r,portalStyle:r==null?{}:i?sr(e,r):null},o=j.current!==null;j.current=a,M.set(a),o&&N(e=>e+1)},[t,M]),_e=(0,W.useCallback)(e=>{let t=j.current,n=A.current;if(t===null||t.portalTarget===null||t.portalStyle!==null||n===null)return;let r=sr(n,t.portalTarget);r.direction!=null&&e.style.direction===``&&(e.style.direction=r.direction),r.writingMode!=null&&e.style.writingMode===``&&(e.style.writingMode=r.writingMode);let i={...t,portalStyle:r};j.current=i,M.set(i)},[M]),ve=(0,W.useCallback)(()=>{t===`context`&&a&&!o&&(j.current=null,M.set(null))},[t,a,o,M]),ye=(0,W.useCallback)(()=>{if(fe()&&ce.current===O.current)return;if(i&&!I.current&&Ve()){let e=T.current?.ownerDocument??document;F.current=!0,ne.current?.(),ne.current=He(e,()=>{ne.current=null,F.current&&(F.current=!1,Oe.current())});return}let e=le.current;e!=null&&I.current&&e.popover===T.current&&e.trigger!==O.current&&(e.moved=!0,D.current=null,I.current=!1,V());let t=T.current,r=t&&me(t)?t:null;if(!r)F.current=!0,he();else if(!I.current){let e=()=>{F.current=!0,bn(r.ownerDocument,()=>{F.current&&(F.current=!1,Oe.current())})};if(gn(r.ownerDocument)){e();return}let t=Kn(r),a=qn(r);_e(r);let o=O.current;if(o!=null&&ke(o,g),!pe(r)){o!=null&&L.current==null&&Ae(o,g),e();return}let u=a!==`none`&&a!==qn(r);R.current=t||u,i&&(Ge(r),c!=null&&(V(),ue.current=c(r)));let d=s?Yn(r,O.current):null;l||Xn(r,O.current,d),I.current=!0,v(!0),n?.()}},[g,n,s,l,i,c,V,he,_e,pe,me,fe]),H=(0,W.useRef)(null),U=(0,W.useRef)(null),xe=(0,W.useRef)(null),Se=(0,W.useRef)(null),[Ce,we]=(0,W.useState)(0);E(()=>{let e=Se.current;Se.current=null,e?.()},[Ce]);let G=(0,W.useCallback)(()=>{let e=H.current!=null;H.current?.(),H.current=null,U.current=null,xe.current&&=(xe.current.cancelled=!0,null),e&&f?.(!1)},[f]),Te=(0,W.useCallback)(()=>{let e=H.current!=null;H.current=null,U.current=null,e&&f?.(!1)},[f]),K=(0,W.useCallback)(()=>{let e=t===`context`?O.current:null;if(e!=null&&H.current!=null&&U.current===e)return;if(G(),!e){if(p.current){H.current=()=>{},I.current||f?.(!0);return}ye();return}if(tr(e)||typeof ResizeObserver>`u`||typeof document.getAnimations!=`function`){ye();return}let n=e,r=e.getClientRects().length>0,i=e.closest(`dialog`),a=()=>{},o=!1,s=()=>{},c=()=>{},l=()=>{s(),h?.disconnect(),c(),i?.removeEventListener(`toggle`,m)},u=()=>{o=!0,l(),a=rr(e,()=>{Te(),ye()})},d=()=>{Se.current=()=>{!o&&nr(n)&&(r?(o=!0,l(),Te(),ye()):u())},we(e=>e+1)};function m(){o||(tr(n)?u():nr(n)&&d())}let h=typeof IntersectionObserver>`u`?null:new IntersectionObserver(m);s=ge(e,m),o?l():(h?.observe(e),i&&(c=re(i,{attributes:!0,attributeFilter:[`open`]},m),i.addEventListener(`toggle`,m))),H.current=()=>{o=!0,l(),a()},U.current=e,I.current||f?.(!0)},[t,ye,G,Te,f,p]),Ee=(0,W.useCallback)(()=>{if(ne.current?.(),ne.current=null,G(),F.current=!1,I.current){let e=T.current;m.current?.(),D.current=null,I.current=!1,V(),e&&(typeof e.hidePopover==`function`?hn(e.ownerDocument,()=>{e.hidePopover()}):e.style.display=`none`),v(!1),r?.()}z(T.current),ve()},[r,ve,z,G,V,m]),Oe=(0,W.useRef)(K);C(Oe,K);let q=(0,W.useRef)(null),je=(0,W.useCallback)(e=>{if(!e){let e=O.current;if(!e)return;let t={element:e,cancelled:!1};k.current=t;let n=()=>{t.cancelled||O.current!==e||(Ae(e,g),O.current=null,U.current===e&&G(),s&&I.current&&(q.current?.(),q.current=null))};p.current?n():queueMicrotask(n);return}k.current?.element===e&&(k.current.cancelled=!0,k.current=null),O.current&&O.current!==e&&Ae(O.current,g),e&&(I.current||L.current!=null)&&ke(e,g);let t=O.current;if(O.current=e,Re(e.ownerDocument),s&&I.current&&e!==t){q.current?.(),q.current=null;let t=T.current;t&&(q.current=er(t,e,()=>T.current===t&&O.current===e,()=>x.current,()=>u.current?.()),Yn(t,e))}let n=U.current;if(H.current!=null&&n!==e){G();let t={cancelled:!1};xe.current=t,queueMicrotask(()=>{t.cancelled||(xe.current=null,O.current===e&&!I.current&&Oe.current())})}},[g,G,s,u,p]),Me=(0,W.useCallback)(e=>{if(B.current?.(),Be())return;se.current=ze(),ce.current=O.current;let t=e.defaultView,n=null,r=()=>{se.current=null,ce.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),B.current===r&&(B.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,B.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),B.current=r},[]);(0,W.useEffect)(()=>(ze(),()=>{B.current?.(),H.current?.(),ne.current?.(),ne.current=null,V()}),[V]);let Ne=(0,W.useCallback)(e=>{let t=e,n=e.currentTarget;if(t.newState!==`closed`||n==null)return;if(I.current){yn(n),m.current?.(),le.current={popover:n,trigger:O.current,moved:!1};return}let r=O.current;r!=null&&De(r).includes(g)&&!R.current&&(L.current=null,Ae(r,g))},[g,m]),Pe=(0,W.useCallback)(e=>{let t=e,n=le.current;n!=null&&n.popover===e.currentTarget&&(le.current=null,n.moved)||t.newState===`closed`&&I.current&&(D.current=null,I.current=!1,V(),Me(e.currentTarget?.ownerDocument??document),z(e.currentTarget),v(!1),r?.(),ve())},[r,ve,Me,z,V]),J=(0,W.useRef)(null),Fe=(0,W.useRef)(null),Ie=(0,W.useCallback)((e,t)=>{J.current&&Fe.current&&(J.current!==e||Fe.current!==t)&&(J.current.removeEventListener(`toggle`,Fe.current),J.current.removeEventListener(`beforetoggle`,Ne),J.current=null,Fe.current=null),e&&J.current!==e&&(e.addEventListener(`toggle`,t),e.addEventListener(`beforetoggle`,Ne),J.current=e,Fe.current=t)},[Ne]),{cap:Y,lift:Le,inset:Ue,followLayerElement:We}=Jt(_&&t===`context`,T),Ke=(0,W.useCallback)(e=>{if(T.current=e,Ie(e,Pe),e&&F.current)F.current=!1,K();else if(e&&I.current&&D.current!==e&&me(e)){if(We(),pe(e)){let t=s?Yn(e,O.current):null;Xn(e,O.current,t)}else bn(e.ownerDocument,()=>{let t=T.current;if(I.current&&t===e&&D.current!==e&&pe(e)){let t=s?Yn(e,O.current):null;Xn(e,O.current,t)}})}},[Pe,Ie,K,pe,me,s,We]),qe=(0,W.useCallback)(e=>{A.current=e,e&&(!a||F.current||I.current||o&&j.current!=null)&&he()},[a,o,he]);(0,W.useEffect)(()=>(T.current&&Ie(T.current,Pe),()=>{J.current&&Fe.current&&(J.current.removeEventListener(`toggle`,Fe.current),J.current.removeEventListener(`beforetoggle`,Ne),J.current=null,Fe.current=null)}),[Pe,Ie,Ne]),E(()=>{if(!_||t!==`context`)return;let e=O.current;if(!e)return;let n=e.ownerDocument.defaultView;if(n){let t=e.getBoundingClientRect(),r=t.bottom>=0&&t.right>=0&&t.top<=n.innerHeight&&t.left<=n.innerWidth;S(r)}if(typeof IntersectionObserver>`u`)return;let r=new IntersectionObserver(e=>{let t=e[e.length-1];t&&S(t.isIntersecting)});return r.observe(e),()=>r.disconnect()},[_,t,S]),E(()=>{if(!s||!_||t!==`context`)return;let e=T.current,n=O.current;if(e&&n)return q.current?.(),q.current=er(e,n,()=>T.current===e&&O.current===n,()=>x.current,()=>u.current?.()),()=>{q.current?.(),q.current=null}},[s,_,t,ee]),E(()=>{if(!_||t!==`context`||s)return;let e=T.current,n=O.current,r=n?.ownerDocument.defaultView;if(e&&n&&r)return $n(r,n,()=>{x.current&&T.current===e&&e.hasAttribute(`data-layer-anchored`)&&(Un(e),u.current?.())})},[_,t,s,ee,u]);let Je=(0,W.useCallback)((e,t)=>{let{placement:n=`above`,alignment:r=`center`,positioning:a=`anchor`,offset:o,role:c,"aria-label":l,xstyle:u,className:d,style:f,as:p=`div`,onMouseEnter:m,onMouseLeave:_}=t||{},v=cr(n),b=s&&a===`anchor`?St(n):``,x=a===`custom`?{positionAnchor:g}:{positionAnchor:g,positionTryFallbacks:b||v,...lr(n,r,y),...b?{alignSelf:gt(n)}:{}},S=o?Hn(o):null,C=a===`anchor`&&S!=null?{[rt]:S}:{},T=a===`anchor`?S==null?n===`above`?Z.farAbove:n===`below`?Z.farBelow:n===`start`?Z.farStart:Z.farEnd:n===`above`?Z.placementAbove(S):n===`below`?Z.placementBelow(S):n===`start`?Z.placementStart(S):Z.placementEnd(S):null,E=a===`anchor`?[Z.viewportFit,...ur(n,r,y)]:null,D=P(ie.reset,ae.reset,Z.base,be.reset,Z.keyboardCap(Y==null?`100vh`:`${Y}px`,Y==null?`visible`:`auto`,Ue==null?`initial`:`${Ue}px`),s&&Z.scrollsOnOverflow,E,T,u),O=d?`${d} ${D.className??``}`:D.className;return(0,X.jsx)(or,{mountStore:M,renderLayer:t=>(0,X.jsx)(p,{ref:Ke,id:h,...a===`anchor`?{[tt]:``}:{},role:c,"aria-label":l,popover:i?`auto`:`manual`,className:O,style:{...D.style,...x,...a===`anchor`?qt(Le)??{"--_astryx-layer-lift":`0px`}:null,...C,...sn(w),...t.portalStyle,...f},onMouseEnter:m,onMouseLeave:_,...oe(),children:(0,X.jsx)(de,{children:e})}),sentinelRef:qe})},[g,w,h,y,s,Y,Ue,Le,i,M,Ke,qe]),Ye=(0,W.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:o,style:s}=t,c={top:r,left:n},l=P(ie.reset,ae.reset,Z.base,be.reset,Z.keyboardCap(`100vh`,`visible`,`initial`),Z.fixed,a),u=o?`${o} ${l.className??``}`:l.className;return(0,X.jsx)(`div`,{ref:Ke,id:h,popover:i?`auto`:`manual`,className:u,style:{...l.style,...c,...s},...oe(),children:(0,X.jsx)(de,{children:e})})},[Ke,h,i]),Xe=(0,W.useMemo)(()=>({ref:je,anchorId:g,show:K,hide:Ee,isOpen:_,id:h,render:Je}),[je,g,K,Ee,_,h,Je]),Ze=(0,W.useMemo)(()=>({ref:void 0,show:K,hide:Ee,isOpen:_,id:h,render:Ye}),[K,Ee,_,h,Ye]);return t===`context`?Xe:Ze}function pr(e){return fr(e)}function mr(e){return fr(e)}var hr=o(`layer/outside-press/outside-dismissals`,1);function gr(e){hr.set(e,(hr.get(e)??0)+1)}function _r(e){return hr.get(e)??0}function vr(e,t,n,{pointerTypes:r,closesOnPan:i=!1,onPan:a,onPress:o,root:s=null}={}){let c=e.ownerDocument,l=i?void 0:a,u=i||l!=null,f=s==null?[]:v(s),p=!1,m=null,h=e=>r==null||r.includes(e.pointerType),g=()=>{p=!1,m=null,gr(c),n()},_=e=>{h(e)&&(!i||m==null||m.id===e.pointerId||e.isPrimary)&&(p=!t(e.composedPath()),o?.(!p),u&&(m=p?{id:e.pointerId,x:e.clientX,y:e.clientY}:null))},y=e=>{if(m?.id===e.pointerId&&Math.max(Math.abs(e.clientX-m.x),Math.abs(e.clientY-m.y))>=ee.hysteresis.value){if(l!=null){let t=Math.abs(e.clientX-m.x)>=Math.abs(e.clientY-m.y)?`x`:`y`,n=e.composedPath()[0];p=!1,m=null,d(n)&&k(n,t)&&l();return}g()}},b=e=>{if(l!=null||o!=null||!h(e)||i&&m?.id!==e.pointerId)return;let r=p;p=!1,m=null,r&&!t(e.composedPath())&&(gr(c),n())},x=null,S=e=>t=>{t===x||e!=null&&t.composedPath().includes(e)||(x=t,b(t))},C=S(f.at(-1)?.host??null),w=f.map(({root:e,host:t},n)=>({shadow:e,host:t,handleRootUp:S(n===0?null:f[n-1].host),handleHostUp:S(null)})),T=e=>{h(e)&&(i&&m?.id===e.pointerId?g():i||(p=!1,m=null))},E=[c,...f.map(({root:e})=>e)];for(let e of E)e.addEventListener(`pointerdown`,_,!0);let D=c.defaultView,O=u&&D!=null?A(D,`pointermove`,y):null;c.addEventListener(`pointerup`,C,!0);for(let{shadow:e,host:t,handleRootUp:n,handleHostUp:r}of w)e.addEventListener(`pointerup`,n,!0),t.addEventListener(`pointerup`,r);return c.addEventListener(`pointercancel`,T,!0),()=>{for(let e of E)e.removeEventListener(`pointerdown`,_,!0);O?.(),c.removeEventListener(`pointerup`,C,!0);for(let{shadow:e,host:t,handleRootUp:n,handleHostUp:r}of w)e.removeEventListener(`pointerup`,n,!0),t.removeEventListener(`pointerup`,r);c.removeEventListener(`pointercancel`,T,!0)}}function yr(){let e=(0,W.useRef)(null),t=(0,W.useCallback)(()=>{e.current?.(),e.current=null},[]),n=(0,W.useCallback)((t,n,r,i)=>{e.current?.(),e.current=vr(t,n,r,i)},[]);return(0,W.useEffect)(()=>t,[t]),(0,W.useMemo)(()=>({start:n,stop:t}),[n,t])}function br(e,t){for(let n=e;n!=null;n=n.parentNode??_(n))if(d(n)&&n.id===t)return!0;return!1}function xr(e,t,n){return e.some(e=>e===t||n!==``&&x(e)&&d(e)&&e.id===n)}function Sr(e,t,n){return x(e)&&(t?.contains(e)===!0||br(e,n))}var Cr=u(`layer/layer-surface-press/surfaces`,1);function wr(e){if(e==null)return;Cr.add(e);let t=e.parentElement;t?.hasAttribute(`popover`)&&Cr.add(t)}function Tr(e){return Cr.has(e)}function Er(e){return e.replace(/[\x00-\x1f\x7f]/g,``).trim()}function Dr(e){return e.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/,`$1`)}function Or(e){let t=Er(e),n=Dr(t);return n.startsWith(`javascript:`)||n.startsWith(`vbscript:`)||n.startsWith(`data:text/html`)?null:t}function kr(e){return Or(e)!==null}function Ar(e){if(e==null)return!0;if(typeof e==`string`)return kr(e);if(typeof e!=`object`)return!1;let{pathname:t,href:n,protocol:r,host:i,hostname:a}=e;for(let e of[t,n,r,i,a])if(e!=null&&typeof e!=`string`)return!1;if(typeof t==`string`&&!kr(t)||typeof n==`string`&&!kr(n))return!1;if(typeof r==`string`&&r!==``){let e=Er(r),n=e.endsWith(`:`)?e:`${e}:`;if(!kr(n)||!kr(`${n}${i||a||``}${typeof t==`string`?t:``}`))return!1}return!0}var jr=`data-astryx-menu-press`,Mr={duration:`200ms`,easing:`cubic-bezier(0.42, 0, 0.58, 1)`},Nr={"--duration-fast-min":`130ms`,"--duration-fast":`175ms`,"--duration-fast-max":`230ms`,"--duration-medium-min":`310ms`,"--duration-medium":`410ms`,"--duration-medium-max":`550ms`,"--duration-slow-min":`730ms`,"--duration-slow":`975ms`,"--duration-slow-max":`1300ms`,"--duration-exit":`var(--duration-fast)`,"--ease-standard":`cubic-bezier(0.24, 1, 0.4, 1)`,"--ease-entrance":`cubic-bezier(0.24, 1, 0.4, 1)`,"--ease-move":`cubic-bezier(0.24, 1, 0.4, 1)`,"--ease-exit":`cubic-bezier(0.3, 0, 0.6, 0.6)`};function Pr(e,t,{jumps:n=!1}={}){let r=n=>e<=0||n>=e?1:t(Math.max(0,n)/e),i=Math.min(.001,e/100);return{duration:e,at:r,velocity:t=>{if(e<=0||t>=e)return 0;let a=Math.max(0,t-i),o=Math.min(e,t+i);if(!n)return(r(o)-r(a))/(o-a);let s=r(t),c=[];return t>a&&c.push((s-r(a))/(t-a)),o>t&&c.push((r(o)-s)/(o-t)),c.reduce((e,t)=>Math.abs(t)<Math.abs(e)?t:e)}}}function Fr(e){return O(`duration`,e.transitionDuration.split(`,`)[0]??``)}function Ir(e){return e.transitionTimingFunction.split(/,(?![^(]*\))/)[0]??``}function Lr(e){return p(Ir(e))}function Rr(e,t){let n=e.defaultView;if(typeof n?.Animation!=`function`||typeof n.KeyframeEffect!=`function`)return null;let r;try{r=new n.Animation(new n.KeyframeEffect(null,null,{duration:1e3,easing:t,fill:`both`}),null)}catch{return null}return e=>(r.currentTime=Math.min(1,Math.max(0,e))*1e3,r.effect?.getComputedTiming().progress??1)}function zr(e,{ms:t,points:n},r){if(t==null||t<=0)return null;if(n!=null)return Pr(t/1e3,f(n));let i=Rr(e,r);return i==null?null:Pr(t/1e3,i,{jumps:!0})}function Br(e,{duration:t,easing:n}){let r=t==null?null:O(`duration`,t),i=n==null?null:p(n),a=e.ownerDocument,o=a.defaultView,s=t!=null&&r==null,c=n!=null&&i==null;if(o==null||!s&&!c)return{ms:r,points:i};let l=a.createElement(`span`);l.style.setProperty(`display`,`none`,`important`);let u=(e,t)=>(l.style.setProperty(e,t,`important`),l.style.getPropertyValue(e)!==``),d=s&&u(`transition-duration`,t),f=c&&u(`transition-timing-function`,n);(a.body??a.documentElement).append(l);try{let e=o.getComputedStyle(l);return{ms:d?Fr(e):r,points:f?Lr(e):i}}finally{l.remove()}}function Vr(e,t){let n=e.getPropertyValue(t).trim();if(n!==``)return n;let r={};for(let[t,n]of Object.entries(Nr))r[t]=e.getPropertyValue(t).trim()||n;return V(r)[t]??``}function Hr(e,{duration:t,easing:n}){let r=e.ownerDocument.defaultView?.getComputedStyle(e);return r==null?{ms:null,points:null}:Br(e,{duration:t==null?void 0:Vr(r,t),easing:n==null?void 0:Vr(r,n)})}function Ur(e,t){let n=e.ownerDocument.defaultView?.getComputedStyle(e);return n==null?null:Vr(n,t)}function Wr(e,t){let n=e.ownerDocument,r=n.defaultView?.getComputedStyle(e);if(r==null)return null;if(t!=null){let i=Vr(r,t.easing);return zr(n,Br(e,{duration:Vr(r,t.duration),easing:i}),i)}let i=Ir(r);return zr(n,{ms:Fr(r),points:p(i)},i)}var Gr=`data-astryx-press-box`,Kr=`[data-astryx-pressable]`,qr={[Gr]:``};function Jr(e,t){if(!(e instanceof Element))return null;let n=e.closest(`[${Gr}]`);return n instanceof HTMLElement&&t.contains(n)?n:null}function Yr(e){return Array.from(e.querySelectorAll(`[${Gr}]`)).filter(t=>t.closest(Kr)===e)}var Xr=`data-astryx-press-holds-drag`;function Zr(e){return e.hasAttribute(Xr)}var Qr=`data-astryx-press-group-item`;function $r(e){return{[Qr]:e.join(` `)}}function ei(e){return e.hasAttribute(Qr)}function ti(e,t=null){let n=e.closest(`[${Qr}]`);return n==null?!1:t==null||(n.getAttribute(Qr)??``).split(` `).includes(t)}var ni=`data-astryx-pressable`,ri=`data-astryx-press`,ii={[ni]:``},ai=`:disabled, [aria-disabled="true"]`,oi=new Set([`button`,`image`,`reset`,`submit`]),si=`[${jr}]`,Q={live:null},ci=null;function li(e){let t=ci;ci=null,t?.end(e)}var ui=null;function di(e){ui=e}var $={live:null},fi=0,pi=0,mi=null,hi=0,gi=null,_i={fade:B,flash:100,onset:150};function vi(e){let t=Hr(e,{duration:`--duration-exit`}).ms??B,n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=O(`duration`,Mr.duration);return n&&r!=null?Math.min(t,r):t}function yi(e){return typeof e.getAnimations==`function`?e.getAnimations({subtree:!0}).filter(t=>{let n=t.effect,r=n?.target??null;return n==null||r==null||!(`animationName`in t)||r!==e&&r.closest(`[data-astryx-pressable]`)!==e||!Number.isFinite(Number(n.getComputedTiming().endTime))?!1:t.playState!==`finished`}):[]}function bi(e,t,n){let r=!0,i=setTimeout(()=>{let t=yi(e);t.length===0?n():Promise.allSettled(t.map(async e=>e.finished)).then(()=>{r&&n()})},t);return()=>{r=!1,clearTimeout(i)}}var xi={fade:`fadeEnd`,flash:`flashEnd`,onset:`onset`};function Si(e,t){t===`none`?e.removeAttribute(ri):e.getAttribute(`data-astryx-press`)!==t&&e.setAttribute(ri,t)}function Ci(e){e.live?.timer!=null&&(e.live.timer(),e.live.timer=null)}function wi(e,t,n=0){let r=e.live;if(r==null)return;let i=t.gesture.phase!==r.gesture.phase;if((t.timer!=null||i)&&Ci(e),r.gesture=t.gesture,Si(r.element,t.paint),t.gesture.phase===`idle`)e.live=null;else if(t.timer!=null){let i=t.timer,a=()=>{e.live!=null&&(e.live.timer=null),wi(e,z(e.live?.gesture??L(),{kind:xi[i]}))};if(i===`fade`)r.timer=bi(r.element,vi(r.element),a);else{let e=i===`onset`?Math.max(0,_i.onset-n):_i[i],t=setTimeout(a,e);r.timer=()=>clearTimeout(t)}}}function Ti(e){if(!(e instanceof Element))return null;let t=e.closest(`[${ni}]`);return!(t instanceof HTMLElement)||t.matches(ai)||xe(t)?null:t}function Ei(e){return Date.now()-pi>=150?!1:mi instanceof Node&&mi.contains(e)}function Di(e){e.live?.gesture.phase===`dead`&&(Ci(e),e.live=null)}function Oi(e){let t=e.live;t!=null&&(Ci(e),t.element.removeAttribute(ri),e.live=null,e===$&&sa(!1))}function ki(e){Q.live?.element===e&&Oi(Q),$.live?.element===e&&Oi($)}function Ai(e,t){e.live?.element===t&&Oi(e)}function ji(){return typeof window.matchMedia==`function`&&window.matchMedia(`(pointer: coarse)`).matches}function Mi(e){let t=Ti(e);return t!=null&&Ni(t)}function Ni(e){return Yr(e).length>0}function Pi(e,t){let n=Ti(e);return n==null||n.closest(si)!=null||t!=null&&ti(n,`mouse`)||t==null&&n!==e?null:n}function Fi(e,t){Oi($);let n=Pi(e,t);n!=null&&(Ai(Q,n),$.live={element:n,gesture:L(),pointerId:t,timer:null},sa(t==null),wi($,z($.live.gesture,{kind:`buttonDown`})))}function Ii(e){return Ni(e)&&!ji()&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Li(){sa(!1),$.live!=null&&(Ii($.live.element)?Ri():wi($,z($.live.gesture,{kind:`up`})))}function Ri(){sa(!1),$.live!=null&&(wi($,z($.live.gesture,{kind:`cancel`})),Di($))}function zi(e){if(e.pointerType===`mouse`){(ji()?e.button===0:Se(e)&&Mi(e.target))&&Fi(e.target,e.pointerId);return}if(e.pointerType===`pen`&&!Se(e)&&Mi(e.target))return;if(ta(),li(!1),Q.live!=null){if(Q.live.gesture.phase!==`fading`&&Q.live.gesture.phase!==`flash`){Oi(Q);return}Oi(Q)}let t=Ti(e.target),n=e.pointerType===`pen`&&t!=null&&Ni(t),r=t!=null&&!n&&Ei(t);if(hi=Date.now(),gi=e.target instanceof Node?e.target:null,t==null||ti(t,e.pointerType))return;let i=ui?.start(t,e.target)??null,a=r?null:{element:t,gesture:L(),pointerId:e.pointerId,timer:null};i!=null&&(ci={pointerId:e.pointerId,live:a,end:i}),a!=null&&(Ai($,t),Q.live=a,wi(Q,z(a.gesture,{kind:`down`,x:e.clientX,y:e.clientY,delayed:!n&&M(t)}),U(e.timeStamp,e)))}function Bi(e){let t=Q.live;t==null||t.pointerId!=null&&e.pointerId!==t.pointerId||Zr(t.element)||wi(Q,z(t.gesture,{kind:`move`,x:e.clientX,y:e.clientY}))}function Vi(e){if(e.pointerType===`mouse`){$.live!=null&&$.live.pointerId===e.pointerId&&Li();return}if(hi=Date.now(),e.target instanceof Node&&(gi=e.target),ci!=null&&ci.pointerId===e.pointerId){let e=ci.live;li(e!=null&&Q.live===e&&e.gesture.phase!==`dead`)}let t=Q.live;if(t==null||t.pointerId!=null&&e.pointerId!==t.pointerId)return;let n=e.pointerType===`pen`&&Ii(t.element)?`cancel`:`up`;wi(Q,z(t.gesture,{kind:n})),Di(Q)}function Hi(e){let t=e;if(t?.pointerType===`mouse`){$.live!=null&&$.live.pointerId===t.pointerId&&Ri();return}t?.pointerId!=null&&ci?.pointerId===t.pointerId&&li(!1);let n=Q.live;n!=null&&(wi(Q,z(n.gesture,{kind:`cancel`})),Di(Q))}function Ui(){Hi(),Ri()}function Wi(e){let t=e.target instanceof Node?e.target:document;Date.now()-hi<3e3&&gi!=null&&t.contains(gi)&&(pi=Date.now(),mi=t);let n=Q.live;n!=null&&(t===document||t.contains(n.element))&&Hi()}function Gi(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement&&oi.has(e.type)}function Ki(e){return e instanceof Element&&ti(e)}function qi(e){e.key!==` `||e.repeat||e.isComposing||e.defaultPrevented||!Gi(e.target)||!(ji()||Ki(e.target))||Fi(e.target,null)}function Ji(e){e.key===` `&&$.live!=null&&$.live.pointerId==null&&Li()}function Yi(){$.live!=null&&$.live.pointerId==null&&Li()}function Xi(){document.visibilityState===`hidden`&&(li(!1),Oi(Q),Oi($))}var Zi=[],Qi=null,$i=null;function ea(e){e!==(Qi!=null)&&(e?Qi=A(window,`touchcancel`,Hi):(Qi?.(),Qi=null))}function ta(){$i??($i=S(window,ea),ea(T(window)))}function na(){Zi=[A(window,`pointerdown`,zi),A(window,`pointermove`,Bi),A(window,`pointerup`,Vi),A(window,`pointercancel`,Hi),A(window,`dragstart`,Ui),A(window,`scroll`,Wi),A(window,`visibilitychange`,Xi)],window.addEventListener(`keydown`,qi,aa)}function ra(){li(!1),ui?.endWaits();for(let e of Zi.splice(0))e();$i?.(),$i=null,ea(!1),window.removeEventListener(`keydown`,qi),sa(!1)}var ia={capture:!0,passive:!0},aa={passive:!0},oa=!1;function sa(e){e!==oa&&(oa=e,e?(window.addEventListener(`keyup`,Ji,aa),window.addEventListener(`blur`,Yi,ia)):(window.removeEventListener(`keyup`,Ji),window.removeEventListener(`blur`,Yi,ia)))}function ca(){if(typeof window>`u`)return()=>void 0;fi===0&&na(),fi+=1;let e=!1;return()=>{e||(e=!0,--fi,fi>0||(ra(),Oi(Q),Oi($),pi=0,mi=null,hi=0,gi=null))}}var la=`data-pressable-container`,ua=[`button`,`a`,`input`,`select`,`textarea`,`[role="button"]`,`[role="link"]`,`[role="checkbox"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`,`[role="menuitem"]`,`[role="option"]`,`[role="combobox"]`,`[role="listbox"]`,`[role="slider"]`,`[role="spinbutton"]`,`[${la}]`].join(`,`),da=`[aria-readonly="true"]`;function fa(e){return e.matches(ua)&&!e.matches(da)}function pa(e,t,n=fa){let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(n(r))return r;r=r.parentElement}return null}function ma(e,t){return pa(e,t,ha)!=null}function ha(e){return fa(e)||Tr(e)}function ga(e,t,n){let r=e.target;t!=null&&(e.pointerType===`touch`||Yr(t).length!==0)&&r instanceof Element&&r!==e.currentTarget&&ma(r,t)&&n?.contains(r)!==!0&&ki(t)}function _a(e){if(typeof document>`u`||!(`getSelection`in document))return!1;let t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function va(e){let{containerRef:t}=e;return(0,W.useEffect)(()=>{let e=t.current;e&&e.setAttribute(la,`true`)},[t]),ya(e)}function ya({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return{onClick:(0,W.useCallback)(o=>{if(a)return;let s=e.current;if(!s||_a(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&ma(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&kr(r)&&(i===`_blank`||o.ctrlKey||o.metaKey?window.open(r,`_blank`,`noopener`):t?.current?t.current.click():window.location.href=r),r==null&&n==null&&t?.current))){let e=new MouseEvent(`click`,{bubbles:o.bubbles,cancelable:o.cancelable,ctrlKey:o.ctrlKey,metaKey:o.metaKey,shiftKey:o.shiftKey,altKey:o.altKey,button:o.button});t.current.dispatchEvent(e),o.stopPropagation()}},[e,t,n,r,i,a]),onMouseUp:(0,W.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&kr(r)&&(i===t.currentTarget||!ma(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a]),onPointerDown:(0,W.useCallback)(n=>{a||ga(n,e.current,t?.current??null)},[e,t,a])}}function ba(e){if(e.getAttribute(`aria-disabled`)===`true`)return!0;try{return e.matches(`:disabled`)}catch{return!1}}var xa=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`]);function Sa(e){if(ba(e))return!1;let t=e.getAttribute(`role`);if(t!=null&&t!==``)return xa.has(t);switch(e.tagName){case`LABEL`:{let t=e.control;return t==null||!ba(t)}case`BUTTON`:case`INPUT`:case`SELECT`:case`SUMMARY`:case`TEXTAREA`:return!0;case`A`:case`AREA`:return e.hasAttribute(`href`);default:return Ta(e)}}function Ca(e){if(ba(e))return!0;if(e.tagName===`LABEL`){let t=e.control;return t!=null&&ba(t)}return!1}function wa(e){let t=pa(e,null,e=>fa(e)||e.tagName===`LABEL`||ba(e));return t!=null&&Ca(t)}function Ta(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function Ea(e,t,n=!1){let{touchTrigger:r,isEnabled:i,isControlled:a,isOpen:o,layerId:s,triggerRef:c,show:l,hide:u}=e,f=(0,W.useRef)(!1),p=te(u),m=te(s),h=te(t),g=(0,W.useRef)(!1),_=(0,W.useRef)(null),v=(0,W.useRef)([]),y=qe();me(c);let x=(0,W.useCallback)(()=>{g.current=!1;let e=_.current;if(e!=null){_.current=null;for(let t of v.current)t.removeEventListener(`pointerup`,e,!0),t.removeEventListener(`pointercancel`,e,!0);v.current=[]}},[]),S=(0,W.useCallback)(()=>{if(g.current=!0,_.current!=null)return;let e=c.current?.ownerDocument??document,t=e===document?[document]:[document,e],n=e=>{let n=e.target;if(n!=null){if(e.type===`pointerup`&&c.current?.contains(n)===!0)return;if(t.some(e=>e.getElementById(m.current)?.contains(n)===!0)){e.type===`pointerup`&&h.current?.();return}}x(),n!=null&&gr(n.ownerDocument??document),p.current()};_.current=n,v.current=t;for(let e of t)e.addEventListener(`pointerup`,n,!0),e.addEventListener(`pointercancel`,n,!0)},[c,x,p,m,h]);(0,W.useEffect)(()=>x,[x]);let C=(0,W.useCallback)(()=>f.current&&he(c.current),[c]),w=(0,W.useCallback)(e=>{f.current=e.pointerType===`touch`},[]),T=te(e=>{let t=c.current,a=d(e?.target)?e.target:null;if(n&&a!=null&&b(t)){let e=le(a,t);if(e!=null&&e!==t&&!wa(a))return}(r===`auto`?a!=null&&wa(a)?`tap`:t!=null&&Sa(t)?`none`:`tap`:r)===`none`||!i||o||g.current?(x(),u()):(S(),l())}),E=(0,W.useCallback)(e=>{let t=Ke.has(e.pointerType);if(f.current=t,!t||a)return y.forget(),!1;let n=e.currentTarget instanceof Element?e.currentTarget:c.current;return y.press(e,n,e=>T.current(e)),!0},[a,c,y,T]),D=(0,W.useRef)(o);return(0,W.useEffect)(()=>{D.current&&!o&&x(),D.current=o},[o,x]),{isTouchPointerRef:f,isTouchInteraction:C,handlePointerEnter:w,handlePointerDown:E,clearTapOpen:x,armOutsideDismiss:S,answerTap:(0,W.useCallback)(e=>T.current(e),[T])}}var Da=`[role="log"], [role="status"], [role="alert"], [aria-live="polite"], [aria-live="assertive"]`,Oa=`[aria-hidden="true"], [hidden]`,ka=`p, div, li, br, h1, h2, h3, h4, h5, h6`;function Aa(e,t){return Array.from(e.childNodes).map(e=>{if(e.nodeType===Node.TEXT_NODE)return(e.textContent??``).replace(/\s+/g,` `).trim();if(e.nodeType===Node.ELEMENT_NODE){let n=e;return n.matches(Oa)||t!=null&&n.matches(t)?``:ja(n,t)}return``}).filter(e=>e!==``).join(` `)}function ja(e,t){let n=e.ownerDocument.defaultView,r=e=>n?.getComputedStyle(e).display??``,i=[],a=(e,n)=>{if(e.nodeType===Node.TEXT_NODE){i.push(e.textContent??``);return}if(e.nodeType!==Node.ELEMENT_NODE)return;let o=e;if(o.matches(Oa)||t!=null&&o.matches(t))return;let s=r(o),c=o.matches(ka)||s!==``&&s!==`contents`&&!s.startsWith(`inline`)||/\b(flex|grid)\b/.test(n);c&&i.push(` `),o.childNodes.forEach(e=>a(e,s)),c&&i.push(` `)},o=r(e);return e.childNodes.forEach(e=>a(e,o)),i.join(``).replace(/\s+/g,` `).trim()}function Ma(e,t,n,{skipFirstRender:r=!1,politeness:i=`polite`,fallbackText:a,announce:o,exclude:s}={}){let c=H(),l=o??c,u=(0,W.useRef)(null),d=pe(),[f]=(0,W.useState)(()=>d||document.readyState!==`complete`),p=(0,W.useRef)(!0);(0,W.useEffect)(()=>{let o=p.current;p.current=!1;let c=e.current;if(!t||c?.closest(Oa)||c?.checkVisibility?.()===!1){u.current=null;return}if(!c||r&&c.parentElement?.closest(Da))return;let d=r?Aa(c,s):ja(c,s);if(d===``&&a!==void 0&&(d=(c.getAttribute(`aria-labelledby`)??``).split(/\s+/).map(e=>{let t=c.ownerDocument.getElementById(e);return t==null?``:ja(t)}).join(` `).replace(/\s+/g,` `).trim()||a),d===``)return;let m=`${n}\u0000${d}`;if(u.current===m)return;u.current=m;let h=o&&f||document.readyState!==`complete`;r&&h||l(d,i)})}`${i[`--spacing-2`]}${i[`--spacing-2`]}`,l[`--duration-fast-max`],Mr.duration,y[`--ease-standard`];var Na={below:{kKVMdj:`x1d5jn3a x2g3n7u xaqowwx`,k44tkh:`x9uej1z x10got5w`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,k3nNDw:`x9r0mi6`,$$css:!0},above:{kKVMdj:`xksu0ym x2g3n7u xaqowwx`,k44tkh:`x9uej1z x10got5w`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,k3nNDw:`x9r0mi6`,$$css:!0},end:{kKVMdj:`xyzx0um xixcm9l x2g3n7u xaqowwx`,k44tkh:`x9uej1z x10got5w`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,k3nNDw:`x9r0mi6`,$$css:!0},start:{kKVMdj:`x1qqotkc x1g7o29q x2g3n7u xaqowwx`,k44tkh:`x9uej1z x10got5w`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,k3nNDw:`x9r0mi6`,$$css:!0}};function Pa(e){return e.localName===`input`?!se.has((e.getAttribute(`type`)??`text`).toLowerCase()):e.matches(`textarea, [contenteditable]:not([contenteditable="false"])`)}var Fa=100,Ia={container:{kWkggS:`xenstv7`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}};function La(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:a=0,focusTrigger:o=`auto`,touchTrigger:s=`auto`,isEnabled:c=!0,isOpen:l,isDefaultOpen:u=!1,onShow:d,onHide:f}=e,{ref:p,anchorId:m,show:h,hide:g,isOpen:_,id:v,render:y}=mr({mode:`context`,onShow:d,onHide:f,keepsAnchorClear:!0}),b=Ia.container,x=(0,W.useRef)(null),S=(0,W.useRef)(null),C=(0,W.useRef)(null),w=(0,W.use)(we),T=(0,W.useRef)(0);c||(T.current+=1);let D=(0,W.useCallback)(()=>{x.current&&=(clearTimeout(x.current),null),S.current&&=(clearTimeout(S.current),null)},[]),O=(0,W.useCallback)(()=>{D(),h()},[D,h]),k=(0,W.useCallback)(()=>{D(),g()},[D,g]),A=te({isOpen:l,isLayerOpen:_,onShow:d,onHide:f}),j=(0,W.useRef)(!1),[M,ee]=(0,W.useState)(!1),N=(0,W.useCallback)(e=>{j.current=e,ee(e)},[]),P=(0,W.useRef)(!1),F=(0,W.useRef)(!1),re=(0,W.useCallback)(()=>{P.current&&j.current&&(P.current=!1,N(!1))},[N]),I=(0,W.useCallback)(()=>{if(j.current){N(!1);let e=A.current;if(e.isOpen!==void 0){e.onHide?.();return}}k()},[N,k,A]),{isTouchPointerRef:ie,isTouchInteraction:ae,handlePointerEnter:L,handlePointerDown:R,clearTapOpen:oe,armOutsideDismiss:z,answerTap:se}=Ea({touchTrigger:s,isEnabled:c,isControlled:l!==void 0,isOpen:_,layerId:v,triggerRef:C,show:O,hide:I},re,!0),le=(0,W.useCallback)(()=>{let e=A.current;return j.current&&e.isLayerOpen&&e.isOpen!==!1},[A]),B=(0,W.useCallback)(()=>{oe(),N(!1);let e=A.current;e.isOpen===void 0?k():e.onHide?.()},[oe,N,k,A]),de=(0,W.useCallback)(()=>{j.current&&N(!1)},[N]),V=(0,W.useCallback)(e=>{if(!le())return;let t=e.relatedTarget,n=C.current,r=n?.ownerDocument.defaultView;if(r==null||!(t instanceof r.Node))return;let i=n?.ownerDocument.getElementById(v)??null;n?.contains(t)!==!0&&i?.contains(t)!==!0&&(gr(r.document),B())},[le,v,B]),fe=M&&_&&l!==!1,pe=(0,W.useRef)(null);Ma(pe,fe,`pinned`);let me=ue(pe,wr),he=(0,W.useCallback)(()=>{if(!c||l===!1)return;D();let e=T.current;x.current=setTimeout(()=>{T.current===e&&h()},r)},[c,l,D,h,r]),ge=(0,W.useCallback)(()=>{l===!0||le()||(D(),S.current=setTimeout(()=>{g()},a>0?a:Fa))},[l,le,D,g,a]),_e=(0,W.useCallback)(()=>{S.current&&=(clearTimeout(S.current),null)},[]),ye=(0,W.useCallback)(()=>{ie.current||he()},[ie,he]),H=(0,W.useCallback)(e=>{if(ie.current)return;let t=e.relatedTarget,n=t==null?null:t.ownerDocument?.getElementById(v);n!=null&&n.contains(t)||ge()},[ie,v,ge]),[be]=(0,W.useState)(Ee),U=(0,W.useCallback)((e,t)=>t!=null&&!K(e,t,o)||!Pa(e)&&ce(e)===`pointer`?!1:!ae()&&e.matches(`:focus-visible`),[o,ae]),xe=(0,W.useCallback)(e=>{if(!be.focusIn(e,o)||!c||!U(e.target,null))return;D();let t=A.current;t.isOpen===!1?t.onShow?.():h()},[be,o,c,U,D,h,A]),Se=(0,W.useCallback)(e=>{be.focusOut(e,o)&&ge()},[be,o,ge]),Ce=(0,W.useRef)(!1),G=(0,W.useRef)(null),Te=(0,W.useCallback)(()=>{G.current?.();let e=C.current?.ownerDocument.defaultView;if(e==null)return;Ce.current=!0;let t=C.current,n=r=>{r?.type===`pointerup`&&r.target instanceof e.Node&&t?.contains(r.target)===!0&&(P.current=!1),e.removeEventListener(`pointerup`,n,!0),e.removeEventListener(`pointercancel`,n,!0),Ce.current=!1,G.current=null};e.addEventListener(`pointerup`,n,!0),e.addEventListener(`pointercancel`,n,!0),G.current=n},[]),De=(0,W.useCallback)(e=>{Te(),j.current?F.current&&(P.current=!0):R(e)?x.current&&=(clearTimeout(x.current),null):l===void 0&&(D(),g())},[R,Te,l,D,g]),Oe=te({handleMouseEnter:ye,handleMouseLeave:H,handleFocusIn:xe,handleFocusOut:Se,handleHeldFocusOut:V,handlePointerEnter:L,handlePointerDown:De,focusTrigger:o,isEnabled:c,isOpen:l,dropHold:de,hideNow:k,showNow:O,opensOnFocus:U,presentInterest:w,answerTap:se}),ke=(0,W.useRef)(null),Ae=(0,W.useRef)(!1),q=(0,W.useRef)(!1),je=(0,W.useCallback)(()=>{if(!q.current)return;q.current=!1;let e=Oe.current;!e.isEnabled&&e.isOpen===void 0&&(Ae.current=!0,e.dropHold(),e.hideNow())},[Oe]);E(()=>{je()});let Me=(0,W.useCallback)(e=>{if(e==null){ke.current?.();return}if(e===C.current)return;ke.current?.();let t=()=>Oe.current,n=e=>t().handlePointerEnter(e),r=()=>t().handleMouseEnter(),i=e=>t().handleMouseLeave(e),a=e=>t().handlePointerDown(e),o=e=>{t().focusTrigger!==`never`&&t().handleFocusIn(e)},s=e=>{t().focusTrigger!==`never`&&t().handleFocusOut(e)},c=e=>t().handleHeldFocusOut(e);e.addEventListener(`pointerenter`,n),e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,i),e.addEventListener(`pointerdown`,a),e.addEventListener(`focusin`,o),e.addEventListener(`focusout`,s),e.addEventListener(`focusout`,c),C.current=e;let l=e.ownerDocument.activeElement,u=Ae.current;t().isEnabled&&(Ae.current=!1),u&&t().isEnabled&&t().isOpen===void 0&&t().focusTrigger!==`never`&&l instanceof HTMLElement&&e.contains(l)&&t().opensOnFocus(l,e)&&t().showNow();let d=t().presentInterest?.current,f=d==null||d.isRead?null:d.interest,p=d?.tapEvent??null;d!=null&&(d.isRead=!0),t().isEnabled&&t().isOpen===void 0&&(f===`hover`?t().handleMouseEnter():f===`tap`?t().answerTap(p):f===`focus`&&t().focusTrigger!==`never`&&l instanceof HTMLElement&&e.contains(l)&&t().opensOnFocus(l,e)&&t().showNow());let m=()=>{ke.current===m&&(ke.current=null),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,i),e.removeEventListener(`pointerdown`,a),e.removeEventListener(`focusin`,o),e.removeEventListener(`focusout`,s),e.removeEventListener(`focusout`,c),G.current?.(),C.current===e&&(C.current=null),q.current=!0,queueMicrotask(je)};return ke.current=m,m},[Oe,je]),Ne=(0,W.useCallback)(e=>{p(e);let t=Me(e);if(e!=null)return()=>{t?.(),p(null)}},[p,Me]);return(0,W.useEffect)(()=>()=>{D()},[D]),(0,W.useEffect)(()=>{u&&h()},[]),(0,W.useEffect)(()=>{l!==void 0&&(l?(D(),h()):(D(),de(),g()))},[l,D,h,g,de]),ve({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(v);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return _}},onDismiss:()=>{D(),oe(),de(),l===void 0?g():f?.()}}),{ref:Ne,positionRef:p,interactionRef:Me,anchorId:m,describedBy:v,renderTooltip:(0,W.useCallback)((e,r)=>{let a=r?.placement??t,o={placement:a,alignment:r?.alignment??n,offset:i[`--spacing-1`],role:`tooltip`,xstyle:[b,Na[a]],className:ne(`tooltip`).className,onMouseEnter:_e,onMouseLeave:ge};return y((0,X.jsx)(`div`,{ref:me,className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),o)},[y,t,n,b,_e,ge,me]),show:(0,W.useCallback)(()=>{if(D(),!c)return;N(!0),z(),P.current=Ce.current,F.current=!0,C.current?.ownerDocument.defaultView?.setTimeout(()=>{F.current=!1},0);let e=A.current;e.isOpen===void 0?h():e.onShow?.()},[D,c,N,z,h,A]),hide:(0,W.useCallback)(()=>{D(),B()},[D,B])}}export{dr as A,We as B,Ar as C,_r as D,gr as E,Gt as F,Ue as H,Ht as I,Ut as L,mr as M,tn as N,yr as O,rn as P,Wt as R,jr as S,xr as T,qe as U,ze as V,we as W,qr as _,ga as a,Ur as b,ri as c,ca as d,vi as f,Jr as g,$r as h,la as i,pr as j,vr as k,ki as l,ei as m,Na as n,va as o,ii as p,Ma as r,ya as s,La as t,di as u,Pr as v,Sr as w,Mr as x,Wr as y,et as z};
package/web/index.html CHANGED
@@ -8,30 +8,33 @@
8
8
  <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
9
9
  <meta name="theme-color" content="#0a0a0a" media="(prefers-color-scheme: dark)" />
10
10
  <title>Toodo</title>
11
- <script type="module" crossorigin src="/assets/index-D_3GoUFa.js"></script>
12
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-D3jfb0Ew.js">
13
- <link rel="modulepreload" crossorigin href="/assets/focusOutline.stylex-C8peqGyQ.js">
14
- <link rel="modulepreload" crossorigin href="/assets/useLayerDismissal-DhnWLnTJ.js">
15
- <link rel="modulepreload" crossorigin href="/assets/devWarning-WNHQ_jrU.js">
16
- <link rel="modulepreload" crossorigin href="/assets/mergeProps-ptS-gIMz.js">
17
- <link rel="modulepreload" crossorigin href="/assets/useTooltip-BCo1T06f.js">
18
- <link rel="modulepreload" crossorigin href="/assets/useLinkComponent-Cokdl8Ls.js">
19
- <link rel="modulepreload" crossorigin href="/assets/useMediaQuery-oNWJZ4E0.js">
11
+ <script type="module" crossorigin src="/assets/index-DDiW1AI3.js"></script>
12
+ <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-C3cWAN_r.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/focusOutline.stylex-ZXdUNMFw.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/useLayerDismissal-BWIjwIJ-.js">
16
+ <link rel="modulepreload" crossorigin href="/assets/mergeProps-Poh9JbFs.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/useDevWarning-DtAYt56R.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/primaryClick-88oQu3_u.js">
19
+ <link rel="modulepreload" crossorigin href="/assets/useTooltip-C_x74aGj.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/useLinkComponent-CqCWDM4X.js">
21
+ <link rel="modulepreload" crossorigin href="/assets/inputHold-CZa_Ny55.js">
22
+ <link rel="modulepreload" crossorigin href="/assets/reducedMotion-DCkUC6gt.js">
23
+ <link rel="modulepreload" crossorigin href="/assets/focusReturn-BAqtMp_d.js">
24
+ <link rel="modulepreload" crossorigin href="/assets/padding.stylex-Q-kmgnXU.js">
20
25
  <link rel="modulepreload" crossorigin href="/assets/disabledInteraction-u9yjM5Jo.js">
21
- <link rel="modulepreload" crossorigin href="/assets/focusReturn-sK-DMBDt.js">
22
- <link rel="modulepreload" crossorigin href="/assets/Item-ZRzKTOOV.js">
26
+ <link rel="modulepreload" crossorigin href="/assets/Item-DGNS1zZi.js">
23
27
  <link rel="modulepreload" crossorigin href="/assets/session-sBDFnC3r.js">
24
- <link rel="modulepreload" crossorigin href="/assets/button-BpXTpERz.js">
25
- <link rel="modulepreload" crossorigin href="/assets/padding.stylex-DZAzBtx2.js">
26
- <link rel="modulepreload" crossorigin href="/assets/Selector-BwHo8VGI.js">
27
- <link rel="modulepreload" crossorigin href="/assets/presentation-vnGoTO8Y.js">
28
- <link rel="modulepreload" crossorigin href="/assets/event-CB2iK3mK.js">
29
- <link rel="modulepreload" crossorigin href="/assets/queries-XyxPBs72.js">
30
- <link rel="modulepreload" crossorigin href="/assets/createLucideIcon-BVHtiYZr.js">
31
- <link rel="stylesheet" crossorigin href="/assets/index-D-zV9pKv.css">
28
+ <link rel="modulepreload" crossorigin href="/assets/button-CBaPb4j9.js">
29
+ <link rel="modulepreload" crossorigin href="/assets/Selector-BIzBOipe.js">
30
+ <link rel="modulepreload" crossorigin href="/assets/event-COpa9hhp.js">
31
+ <link rel="modulepreload" crossorigin href="/assets/queries-a7XPgRcU.js">
32
+ <link rel="modulepreload" crossorigin href="/assets/createLucideIcon-DtNDbJdC.js">
33
+ <link rel="modulepreload" crossorigin href="/assets/resolveSnapPoint-CBS37OcT.js">
34
+ <link rel="stylesheet" crossorigin href="/assets/index-bmzrMLgi.css">
32
35
  <link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials">
33
36
  <link rel="apple-touch-icon" href="/pwa/apple-touch-icon.png">
34
- <meta name="toodo-build" content="ba3166ccc1a2c4f9" />
37
+ <meta name="toodo-build" content="11922c437a664f14" />
35
38
  </head>
36
39
 
37
40
  <body>
package/web/sw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by vite-pwa.ts for this build.
2
- const CACHE = "toodo-shell-26470178f97d475d";
3
- const SHELL = ["/","/assets/Item-ZRzKTOOV.js","/assets/ItemSwipeLayer-Cd36YhD2.js","/assets/LayoutChangeSnapshot-B4oZH00p.js","/assets/MenuBottomSheet-DI91g7Ev.js","/assets/MenuBottomSheetActionList-B_oeHm6H.js","/assets/Selector-BwHo8VGI.js","/assets/Tooltip-D2KklOm3.js","/assets/button-BpXTpERz.js","/assets/createLucideIcon-BVHtiYZr.js","/assets/details-sheet-Bmm7uG_t.js","/assets/devWarning-WNHQ_jrU.js","/assets/disabledInteraction-u9yjM5Jo.js","/assets/event-CB2iK3mK.js","/assets/focusOutline.stylex-C8peqGyQ.js","/assets/focusReturn-sK-DMBDt.js","/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2","/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2","/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2","/assets/geist-latin-wght-normal-BgDaEnEv.woff2","/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2","/assets/index-D-zV9pKv.css","/assets/index-D_3GoUFa.js","/assets/jsx-runtime-D3jfb0Ew.js","/assets/markdown-vYLeEAh6.js","/assets/mergeProps-ptS-gIMz.js","/assets/offline-screen-CD6xBoPC.js","/assets/opener-DWhHPoCL.js","/assets/padding.stylex-DZAzBtx2.js","/assets/presentation-vnGoTO8Y.js","/assets/queries-XyxPBs72.js","/assets/review-7e4-j-Mr.js","/assets/server-access-vaP57Ouf.js","/assets/session-sBDFnC3r.js","/assets/task-details-CNGTtiAP.js","/assets/task-graph-BPifaqer.js","/assets/task-graph-DLioOiRN.css","/assets/useLayerDismissal-DhnWLnTJ.js","/assets/useLinkComponent-Cokdl8Ls.js","/assets/useMediaQuery-oNWJZ4E0.js","/assets/useTooltip-BCo1T06f.js","/favicon.svg","/manifest.webmanifest","/pwa/apple-touch-icon.png","/pwa/icon-192.png","/pwa/icon-512.png","/pwa/icon-maskable-192.png","/pwa/icon-maskable-512.png"];
2
+ const CACHE = "toodo-shell-a58d048eee338991";
3
+ const SHELL = ["/","/assets/Item-DGNS1zZi.js","/assets/LayoutChangeSnapshot-CKXseiXe.js","/assets/MenuBottomSheet-C8nojjsg.js","/assets/MenuBottomSheetActionList-BvD9f8bg.js","/assets/Selector-BIzBOipe.js","/assets/SwipeActionsLayer-Ck-splN1.js","/assets/Tooltip-D5RzAbgJ.js","/assets/button-CBaPb4j9.js","/assets/createLucideIcon-DtNDbJdC.js","/assets/details-sheet-AHboYDbw.js","/assets/disabledInteraction-u9yjM5Jo.js","/assets/event-COpa9hhp.js","/assets/focusOutline.stylex-ZXdUNMFw.js","/assets/focusReturn-BAqtMp_d.js","/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2","/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2","/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2","/assets/geist-latin-wght-normal-BgDaEnEv.woff2","/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2","/assets/index-DDiW1AI3.js","/assets/index-bmzrMLgi.css","/assets/inputHold-CZa_Ny55.js","/assets/jsx-runtime-C3cWAN_r.js","/assets/markdown-BLbQnFr8.js","/assets/mergeProps-Poh9JbFs.js","/assets/offline-screen-2u_fz51g.js","/assets/opener-DWhHPoCL.js","/assets/padding.stylex-Q-kmgnXU.js","/assets/primaryClick-88oQu3_u.js","/assets/queries-a7XPgRcU.js","/assets/reducedMotion-DCkUC6gt.js","/assets/resolveSnapPoint-CBS37OcT.js","/assets/review-DCsvyG77.js","/assets/rolldown-runtime-XKyaHtl9.js","/assets/server-access-DfQBSxow.js","/assets/session-sBDFnC3r.js","/assets/task-details-C6ICAfEz.js","/assets/task-graph-DLioOiRN.css","/assets/task-graph-IKOFpxHe.js","/assets/useDevWarning-DtAYt56R.js","/assets/useLayerDismissal-BWIjwIJ-.js","/assets/useLinkComponent-CqCWDM4X.js","/assets/useTooltip-C_x74aGj.js","/favicon.svg","/manifest.webmanifest","/pwa/apple-touch-icon.png","/pwa/icon-192.png","/pwa/icon-512.png","/pwa/icon-maskable-192.png","/pwa/icon-maskable-512.png"];
4
4
  const SERVER_PATHS = ["/api","/mcp"];
5
5
  const NOTIFICATION_ICON = "/pwa/icon-192.png";
6
6
  // The message that asks an open page to show a task; see listenForOpenTask in src/web/push.ts.
package/web/version.json CHANGED
@@ -1 +1 @@
1
- {"build":"ba3166ccc1a2c4f9"}
1
+ {"build":"11922c437a664f14"}