@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.
- package/bin/toodo +0 -0
- package/bin/toodo-server +0 -0
- package/package.json +1 -1
- package/web/assets/Item-DGNS1zZi.js +2 -0
- package/web/assets/LayoutChangeSnapshot-CKXseiXe.js +1 -0
- package/web/assets/MenuBottomSheet-C8nojjsg.js +1 -0
- package/web/assets/MenuBottomSheetActionList-BvD9f8bg.js +1 -0
- package/web/assets/Selector-BIzBOipe.js +2 -0
- package/web/assets/SwipeActionsLayer-Ck-splN1.js +1 -0
- package/web/assets/Tooltip-D5RzAbgJ.js +1 -0
- package/web/assets/button-CBaPb4j9.js +1 -0
- package/web/assets/createLucideIcon-DtNDbJdC.js +1 -0
- package/web/assets/details-sheet-AHboYDbw.js +1 -0
- package/web/assets/{event-CB2iK3mK.js → event-COpa9hhp.js} +1 -1
- package/web/assets/focusOutline.stylex-ZXdUNMFw.js +1 -0
- package/web/assets/focusReturn-BAqtMp_d.js +1 -0
- package/web/assets/index-DDiW1AI3.js +64 -0
- package/web/assets/index-bmzrMLgi.css +2 -0
- package/web/assets/inputHold-CZa_Ny55.js +1 -0
- package/web/assets/jsx-runtime-C3cWAN_r.js +1 -0
- package/web/assets/markdown-BLbQnFr8.js +32 -0
- package/web/assets/mergeProps-Poh9JbFs.js +1 -0
- package/web/assets/offline-screen-2u_fz51g.js +1 -0
- package/web/assets/padding.stylex-Q-kmgnXU.js +1 -0
- package/web/assets/primaryClick-88oQu3_u.js +1 -0
- package/web/assets/queries-a7XPgRcU.js +1 -0
- package/web/assets/reducedMotion-DCkUC6gt.js +1 -0
- package/web/assets/resolveSnapPoint-CBS37OcT.js +1 -0
- package/web/assets/review-DCsvyG77.js +1 -0
- package/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/web/assets/server-access-DfQBSxow.js +1 -0
- package/web/assets/task-details-C6ICAfEz.js +2 -0
- package/web/assets/task-graph-IKOFpxHe.js +8 -0
- package/web/assets/useDevWarning-DtAYt56R.js +1 -0
- package/web/assets/useLayerDismissal-BWIjwIJ-.js +1 -0
- package/web/assets/useLinkComponent-CqCWDM4X.js +4 -0
- package/web/assets/useTooltip-C_x74aGj.js +1 -0
- package/web/index.html +23 -20
- package/web/sw.js +2 -2
- package/web/version.json +1 -1
- package/web/assets/Item-ZRzKTOOV.js +0 -2
- package/web/assets/ItemSwipeLayer-Cd36YhD2.js +0 -1
- package/web/assets/LayoutChangeSnapshot-B4oZH00p.js +0 -1
- package/web/assets/MenuBottomSheet-DI91g7Ev.js +0 -1
- package/web/assets/MenuBottomSheetActionList-B_oeHm6H.js +0 -1
- package/web/assets/Selector-BwHo8VGI.js +0 -2
- package/web/assets/Tooltip-D2KklOm3.js +0 -1
- package/web/assets/button-BpXTpERz.js +0 -1
- package/web/assets/createLucideIcon-BVHtiYZr.js +0 -1
- package/web/assets/details-sheet-Bmm7uG_t.js +0 -1
- package/web/assets/devWarning-WNHQ_jrU.js +0 -1
- package/web/assets/focusOutline.stylex-C8peqGyQ.js +0 -1
- package/web/assets/focusReturn-sK-DMBDt.js +0 -1
- package/web/assets/index-D-zV9pKv.css +0 -2
- package/web/assets/index-D_3GoUFa.js +0 -58
- package/web/assets/jsx-runtime-D3jfb0Ew.js +0 -1
- package/web/assets/markdown-vYLeEAh6.js +0 -29
- package/web/assets/mergeProps-ptS-gIMz.js +0 -1
- package/web/assets/offline-screen-CD6xBoPC.js +0 -1
- package/web/assets/padding.stylex-DZAzBtx2.js +0 -1
- package/web/assets/presentation-vnGoTO8Y.js +0 -1
- package/web/assets/queries-XyxPBs72.js +0 -1
- package/web/assets/review-7e4-j-Mr.js +0 -1
- package/web/assets/server-access-vaP57Ouf.js +0 -1
- package/web/assets/task-details-CNGTtiAP.js +0 -2
- package/web/assets/task-graph-BPifaqer.js +0 -8
- package/web/assets/useLayerDismissal-DhnWLnTJ.js +0 -1
- package/web/assets/useLinkComponent-Cokdl8Ls.js +0 -4
- package/web/assets/useMediaQuery-oNWJZ4E0.js +0 -1
- package/web/assets/useTooltip-BCo1T06f.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,r as n,t as r}from"./jsx-runtime-D3jfb0Ew.js";import{T as i,d as a,o}from"./focusOutline.stylex-C8peqGyQ.js";var s=e(t(),1),c=typeof window<`u`?s.useLayoutEffect:s.useEffect;function l(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 u(e){let t=null;return l(e,n=>e[n]===`,`&&(t=[e.slice(0,n).trim(),e.slice(n+1).trim()],!0)),t}function d(e){let t=[],n=0;return l(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 f(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 p(e,t=e=>e){let n={},r=(t,n)=>{let a=t.indexOf(`var(`);if(a===-1)return t;let o=a+3,s=f(t,o);if(s===-1)return t;let c=t.slice(o+1,s),l=u(c),d=(l?l[0]:c).trim(),p=l?l[1]:null,m;n.has(d)?m=t.slice(a,s+1):d in e?(n.add(d),m=i(d,n),n.delete(d)):m=p===null?t.slice(a,s+1):r(p.trim(),n);let h=r(t.slice(s+1),n);return t.slice(0,a)+m+h},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}function m(e,t){return Symbol.for(`@astryxdesign/core/${e}/v${t}`)}function h(e,t,n=()=>!0){let r=globalThis;if(Object.hasOwn(r,e)){let i=r[e];return n(i)?i:t()}let i=t();return r[e]=i,i}function g(e,t,n){return h(m(e,t),n)}function ee(e,t){return g(e,t,()=>new Map)}function _(e,t){return g(e,t,()=>new WeakMap)}function te(e,t){return g(e,t,()=>new WeakSet)}function ne(e,t){let n=g(e,t,()=>({next:0}));return()=>(n.next+=1,n.next)}var v=null,y=new Map;function re(){return typeof ResizeObserver>`u`?null:(v||=new ResizeObserver(e=>{for(let t of e){let e=y.get(t.target);if(e)for(let n of[...e.keys()])n(t)}}),v)}function ie(e){return y.has(e)}function ae(e,t){let n=y.get(e);n?n.set(t,(n.get(t)??0)+1):y.set(e,new Map([[t,1]])),re()?.observe(e),t({target:e});let r=!0;return()=>{r&&(r=!1,se(e,t))}}function oe(e,t){if(typeof ResizeObserver>`u`)return null;let n=ie(e),r=!1,i=!0,a=ae(e,e=>{r&&t(e)});return r=!0,n&&queueMicrotask(()=>{i&&t(null)}),()=>{i=!1,a()}}function se(e,t){let n=y.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}y.delete(e),v&&(v.unobserve(e),y.size===0&&(v.disconnect(),v=null))}function b(e,t,n){let r=h(m(`context/${e}`,t),()=>new WeakMap,e=>e instanceof WeakMap),i=r.get(s.createContext);if(i!=null)return i;let a=(0,s.createContext)(n);return a.displayName=e,r.set(s.createContext,a),a}var ce=n((e=>{var n=t();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=n.__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.0`})),le=n(((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=ce()})),ue=r();function de(...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 fe=h(m(`layer-scoped-context-resets`,2),()=>new WeakMap,e=>e instanceof WeakMap),x=fe.get(s.createContext);x??(x=new Map,fe.set(s.createContext,x));var pe=x;function me(e,t,n){let r=b(e,t,n);return pe.has(r)||pe.set(r,e=>(0,ue.jsx)(r,{value:n,children:e})),r}function he({children:e}){let[t]=(0,s.useState)(()=>[...pe.values()]);return t.reduceRight((e,t)=>t(e),e)}function ge(e,t,n,r,i,a){return(0,s.useMemo)(()=>de(e,t,n,r,i,a),[e,t,n,r,i,a])}var _e=`data-astryx-layer-root`,ve={[_e]:``};function ye(e){return e.hasAttribute(_e)}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 Se(e){e.isPropagationStopped=xe}function Ce(e={}){let t={};for(let n of be){let r=e[n];t[n]=typeof r==`function`?e=>{r(e),Se(e)}:Se}return{...t,...ve}}function we(e){let t=(0,s.useRef)(e);return Te(t,e),t}function Te(e,t){(0,s.useInsertionEffect)(()=>{e.current=t})}var{streams:S,lastPointerTypes:Ee,lastMousePoints:De,downPresses:C}=h(m(`input-stream`,1),()=>({streams:new WeakMap,lastPointerTypes:new WeakMap,lastMousePoints:new WeakMap,downPresses:new WeakMap})),Oe=new Map;function ke(e){return Ee.get(e)??null}function Ae(e){return De.get(e)??null}function je(e){return C.get(e)??Oe}function w(e,t,n,{cancels:r=!1,first:i=!1}={}){let a=S.get(e);a??(a=new Map,S.set(e,a));let o=a.get(t);o??(o={subscribers:[],native:null},a.set(t,o));let s={listener:n,cancels:r,isFirst:i},c=i?o.subscribers.findIndex(e=>!e.isFirst):-1;c===-1?o.subscribers.push(s):o.subscribers.splice(c,0,s),Me(e,t,o);let l=!0;return()=>{if(!l)return;l=!1;let n=S.get(e)?.get(t);if(n==null)return;let r=n.subscribers.indexOf(s);r!==-1&&n.subscribers.splice(r,1),Me(e,t,n),n.subscribers.length===0&&(S.get(e)?.delete(t),(t===`pointerup`||t===`pointercancel`)&&C.delete(e))}}function Me(e,t,n){let r=n.subscribers.length===0?null:n.subscribers.some(e=>e.cancels),i=n.native;if(i!=null&&i.cancels===r||(i!=null&&(e.removeEventListener(t,i.listener,{capture:!0}),n.native=null),r==null))return;let a=t=>Ne(e,n,t);e.addEventListener(t,a,{capture:!0,passive:!r}),n.native={listener:a,cancels:r}}function Ne(e,t,n){let{pointerType:r,clientX:i,clientY:a}=n;typeof r==`string`&&r!==``&&Ee.set(e,r),r===`mouse`&&typeof i==`number`&&typeof a==`number`&&De.set(e,{x:i,y:a}),(r===`touch`||r===`pen`)&&Pe(e,n);for(let e of[...t.subscribers])if(t.subscribers.includes(e))try{if(e.listener(n)===!0&&e.isFirst)return}catch(e){Fe(e)}}function Pe(e,t){let{pointerId:n,clientX:r,clientY:i}=t;if(typeof n!=`number`)return;let a=C.get(e);t.type===`pointerup`||t.type===`pointercancel`?a?.delete(n):(t.type===`pointerdown`||t.type===`pointermove`&&a?.has(n)===!0)&&typeof r==`number`&&typeof i==`number`&&(a??(a=new Map,C.set(e,a)),a.set(n,{x:r,y:i}))}function Fe(e){typeof globalThis.reportError==`function`?globalThis.reportError(e):queueMicrotask(()=>{throw e})}var Ie=g(`utils/touch-end-mark/state`,1,()=>({isSet:!1}));function Le(){Ie.isSet=!0}function Re(){return Ie.isSet}function ze(){Ie.isSet=!1}var Be={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}},Ve={reset:{"--step-connector-gap":`x1qkaldv`,"--_astryx-text-overflow-wrap":`x1c9qq8g`,$$css:!0}},He=`data-astryx-haptic-switch`;function Ue(e){return e instanceof Element&&e.hasAttribute(He)}var T=h(m(`click-guard`,1),()=>({guards:new Map,stayingClickListeners:new WeakMap,unguardedDepth:0})),{guards:E,stayingClickListeners:We}=T;function Ge(e){return w(e,`click`,t=>{let n=e.document;E.has(n)&&!Xe(t)&&(t.preventDefault(),t.stopImmediatePropagation(),D(n))},{cancels:!0})}function Ke(e,{staysInstalled:t=!1,takesLateMouse:n=!1,cancelsTouchEnd:r=!1,touchIdentifier:i}={}){let a=e.defaultView;if(a==null)return;D(e);let o={unsubscribers:[],timer:null};if(t&&!We.has(a)&&We.set(a,Ge(a)),We.has(a)||o.unsubscribers.push(Ge(a)),E.set(e,o),o.unsubscribers.push(w(a,`pointerdown`,()=>D(e))),n)for(let e of[`mousedown`,`mouseup`])o.unsubscribers.push(w(a,e,Ye,{cancels:!0}));if(r){Le();let t=w(a,`touchend`,n=>{(i==null||qe(n,i))&&(t(),n.cancelable&&(n.preventDefault(),D(e)))},{cancels:!0});o.unsubscribers.push(t)}o.timer=setTimeout(()=>D(e),400)}function qe(e,t){let n=e.changedTouches;return n==null||Array.from(n).some(e=>e.identifier===t)}function D(e){let t=E.get(e);if(t!=null){E.delete(e),t.timer!=null&&clearTimeout(t.timer);for(let e of t.unsubscribers)e()}}function Je(e){T.unguardedDepth++;try{return e()}finally{T.unguardedDepth--}}function Ye(e){Xe(e)||(e.preventDefault(),e.stopImmediatePropagation())}function Xe(e){return e.detail===0||T.unguardedDepth>0||Ue(e.target)}function O(e){return typeof e==`object`&&!!e&&typeof e.nodeType==`number`}function k(e){return O(e)&&e.nodeType===1}function Ze(e){return O(e)&&e.nodeType===9}function Qe(e){return O(e)&&e.nodeType===11&&`host`in e}function $e(e){return k(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`}function et(e){let t=e.visualViewport,n=t?.width??0;if(t==null||!(n>0))return e.innerHeight-tt(e);let r=t.scale;return(Math.abs(e.innerWidth-n)<Math.abs(e.innerWidth-n*r)?e.innerHeight*r:e.innerHeight)-tt(e)}function tt(e){let t=e.document.documentElement,n=e.innerHeight-t.clientHeight;return!(n>0)||t.scrollWidth<=t.clientWidth?0:Math.min(n,rt(e.document))}var nt=new WeakMap;function rt(e){let t=e.defaultView?.devicePixelRatio??1,n=nt.get(e);if(n!=null&&n.devicePixelRatio===t)return n.thickness;let r=it(e);return nt.set(e,{devicePixelRatio:t,thickness:r}),r}function it(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 at=Number.parseFloat(p(i)[`--duration-exit`]),A={originX:0,originY:0,phase:`idle`};function ot(e,t,n){return Math.hypot(t-e.originX,n-e.originY)>10}function j(e,t,n,r){return{gesture:{...e,phase:t},paint:n,timer:r}}function st(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`?ot(e,t.x,t.y)?j(e,`dead`,`none`,null):{gesture:e,paint:`none`,timer:null}:t.kind===`cancel`?j(e,`dead`,`none`,null):t.kind===`onset`?j(e,`pressed`,`on`,null):t.kind===`up`?j(e,`flash`,`on`,`flash`):{gesture:e,paint:`none`,timer:null};case`pressed`:return t.kind===`move`&&!ot(e,t.x,t.y)?{gesture:e,paint:`on`,timer:null}:t.kind===`move`||t.kind===`cancel`?j(e,`dead`,`none`,null):t.kind===`up`?j(e,`fading`,`fading`,`fade`):{gesture:e,paint:`on`,timer:null};case`buttonHeld`:return t.kind===`up`?j(e,`fading`,`fading`,`fade`):t.kind===`cancel`?j(e,`dead`,`none`,null):{gesture:e,paint:`on`,timer:null};case`flash`:return t.kind===`flashEnd`?j(e,`fading`,`fading`,`fade`):{gesture:e,paint:`on`,timer:null};case`fading`:return t.kind===`fadeEnd`?{gesture:A,paint:`none`,timer:null}:{gesture:e,paint:`fading`,timer:null};case`dead`:return t.kind===`up`?{gesture:A,paint:`none`,timer:null}:{gesture:e,paint:`none`,timer:null};case`idle`:return{gesture:A,paint:`none`,timer:null}}}function ct(){return A}function M(e){return e.assignedSlot??(e.parentNode==null?null:Qe(e.parentNode)?e.parentNode.host:e.parentNode)}function lt(e,t){for(let n=t;n!=null;n=M(n))if(n===e)return!0;return!1}function ut(e){let t=e?.activeElement??null;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function N(e){return Qe(e)?e.host:null}function dt(e){let t=[];for(let n=e,r=N(n);r!=null;n=r.getRootNode(),r=N(n))t.push({root:n,host:r});return t}var ft=[`-webkit-touch-callout`,`-webkit-user-select`,`user-select`],pt=new Set([`text`,`search`,`email`,`url`,`tel`,`password`,`number`]);function mt(e){return e!==`mouse`}var P=_(`utils/selection-lock/locks`,1);function ht(e,t){let n=new Set(e);if(Nt(t)&&[...n].some(e=>lt(e,t))&&n.add(t),!a()){let e=e=>{F(e.target)||e.preventDefault()};for(let t of n)t.addEventListener(`selectstart`,e);let t=!0;return()=>{if(t){t=!1;for(let t of n)t.removeEventListener(`selectstart`,e)}}}return Mt(n)}function gt(e,t,n,r){let i=t?.document??null,a=n,o=kt(a),s=null,c=()=>{let e=t?.getSelection();if(e==null||F(ut(i)))return;let n=St(e,o);a.length===0?n.some(e=>!e.collapsed)&&e.removeAllRanges():!Et(n,a)&&a.every(wt)&&Dt(e,a)};c();let l=new Set(e),u=e=>{F(e.target)||e.preventDefault()};for(let e of l)e.addEventListener(`selectstart`,u);let d=t==null?[]:[w(t,`selectstart`,u,{cancels:!0}),w(t,`selectionchange`,c)],f=Mt(l),p=`held`,m=null,h=()=>{if(p!==`done`){p=`done`,m!=null&&(t?.clearTimeout(m),m=null);try{c()}finally{for(let e of d)e();r?.()}}},g=({isCancel:e=!1}={})=>{if(p===`held`){p=`lifted`,s=_t(t);for(let e of l)e.removeEventListener(`selectstart`,u);f(),t==null||e?h():m=t.setTimeout(h,0)}else p===`lifted`&&e&&h()};return g.keepLiftSelection=()=>{if(p!==`lifted`||s==null)return;let e=s;s=null;let n=()=>{let n=_t(t);p!==`done`&&!Et(n,e)&&(a=n,o=kt(n))};n(),queueMicrotask(n)},g}function _t(e){let t=e?.getSelection();if(t==null)return[];let n=Ot(t,[]);if(n!=null)return n.filter(e=>!e.collapsed).map(Ct);if(t.isCollapsed)return[];let r=[];for(let e=0;e<t.rangeCount;e++)r.push(t.getRangeAt(e).cloneRange());return r}function vt(e,t,n,r){if(F(r))return!0;let i=bt(e,t,n,[...At(r),...jt(r)]);if(i==null)return!1;let{node:a,offset:o}=i;if(a.nodeType!==3||(a.textContent??``).trim()===``)return!1;let s=a.parentElement??(a.parentNode==null?null:N(a.parentNode));if(s==null||!xt(s)||yt(a))return!1;let c=(a.textContent??``).length,l=e.createRange();if(typeof l.getClientRects!=`function`)return!1;for(let e of[o-1,o])if(!(e<0||e>=c)){l.setStart(a,e),l.setEnd(a,e+1);for(let e of Array.from(l.getClientRects()))if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return!0}return!1}function yt(e){for(let t=e;t!=null;t=M(t))if(t.nodeType===1&&t.localName===`button`)return!0;return!1}function bt(e,t,n,r){let i=e;if(typeof i.caretPositionFromPoint==`function`){let e=r.length>0?i.caretPositionFromPoint(t,n,{shadowRoots:[...r]}):i.caretPositionFromPoint(t,n);return e==null?null:{node:e.offsetNode,offset:e.offset}}if(typeof i.caretRangeFromPoint==`function`){let e=i.caretRangeFromPoint(t,n);return e==null?null:{node:e.startContainer,offset:e.startOffset}}return null}function xt(e){let t=e.ownerDocument.defaultView?.getComputedStyle(e);return t!=null&&t.getPropertyValue(`user-select`)!==`none`&&t.getPropertyValue(`-webkit-user-select`)!==`none`}function St(e,t){let n=Ot(e,t);if(n!=null)return n;let r=[];for(let t=0;t<e.rangeCount;t++)r.push(e.getRangeAt(t));return r}function Ct(e){let t=e.startContainer.ownerDocument?.createRange();return t==null||e.startContainer.getRootNode()!==e.endContainer.getRootNode()?e:(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t)}function wt(e){return Tt(e.startContainer,e.startOffset)&&Tt(e.endContainer,e.endOffset)}function Tt(e,t){let n=e.nodeType===3||e.nodeType===4||e.nodeType===8?e.length:e.childNodes.length;return e.isConnected&&t>=0&&t<=n}function Et(e,t){return e.length===t.length&&t.every((t,n)=>{let r=e[n];return r.startContainer===t.startContainer&&r.startOffset===t.startOffset&&r.endContainer===t.endContainer&&r.endOffset===t.endOffset})}function Dt(e,t){let[n]=t;if(t.length===1&&typeof e.setBaseAndExtent==`function`)e.setBaseAndExtent(n.startContainer,n.startOffset,n.endContainer,n.endOffset);else{e.removeAllRanges();for(let n of t){let t=n.startContainer.ownerDocument?.createRange();t!=null&&(t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.addRange(t))}}}function Ot(e,t){let n=e.getComposedRanges;if(typeof n!=`function`)return null;let r=t=>{try{return n.call(e,{shadowRoots:t})}catch{try{return n.call(e,...t)}catch{return null}}},i=[...t];for(;;){let e=r([...i]);if(e==null)return null;let t=new Set;for(let n of e)for(let[e,r]of[[n.startContainer,n.startOffset],[n.endContainer,n.endOffset]])for(let n of[e.childNodes[r],e.childNodes[r-1]]){let e=n?.nodeType===1?n.shadowRoot:null;e!=null&&!i.includes(e)&&t.add(e)}if(t.size===0)return e;i.push(...t)}}function kt(e){let t=new Set;for(let n of e)for(let e of[...jt(n.startContainer),...jt(n.endContainer)])t.add(e);return[...t]}function At(e){let t=e?.nodeType===1?e.shadowRoot:null;return t==null?[]:[t]}function jt(e){return e==null||typeof e.nodeType!=`number`?[]:dt(e.getRootNode()).map(({root:e})=>e).filter(e=>e.mode===`open`)}function Mt(e){let t=[];for(let n of e){let e=Pt(n);if(e==null)continue;t.push(n);let r=P.get(n);if(r!=null)r.count+=1;else{P.set(n,{count:1,saved:ft.map(t=>({name:t,value:e.getPropertyValue(t),priority:e.getPropertyPriority(t)}))});for(let t of ft)e.setProperty(t,`none`)}}let n=!1;return()=>{if(!n){n=!0;for(let e of t){let t=P.get(e);if(t==null||--t.count>0)continue;P.delete(e);let n=Pt(e);for(let{name:e,value:r,priority:i}of t.saved)r===``?n?.removeProperty(e):n?.setProperty(e,r,i)}}}}function Nt(e){return k(e)&&e.localName===`input`&&!pt.has(e.type)}function F(e){let t=k(e)?e:O(e)?e.parentElement:null;return t==null?!1:t.localName===`textarea`?!0:t.localName===`input`?pt.has(t.type):t.isContentEditable}function Pt(e){let t=e.style;return typeof t==`object`&&t?t:null}var Ft=`(prefers-reduced-motion: reduce)`,It=300,Lt=1e3,Rt=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function zt(e){return e.visualViewport!=null&&e.self===e.top}function I(e){let t=e.visualViewport;if(t==null||!zt(e))return 0;let n=et(e)-t.height*(t.scale??1);return n>1?Math.round(n*100)/100:0}var Bt=_(`keyboard/keyboard-height/stores`,1);function Vt(e){let t=Bt.get(e);return t??(t={height:0,listeners:new Set,focusListeners:new Set,detach:null,detachFocus:null},Bt.set(e,t)),t}function Ht(e){return`virtualKeyboard`in e.navigator}function Ut(e,t,n){return n>1&&n<t-1&&Ht(e)&&o(e,Ft)}function Wt(e,t){let n=e.visualViewport;t.height=I(e);let r=null,i=0,a=0,o=(e,n)=>{t.height=e;let r={type:`viewport`,height:e,timeStamp:n};for(let e of[...t.listeners])e(r)},s=n=>{let s=I(e);if(Ut(e,t.height,s)){if(r!=null&&Math.abs(s-i)<1)return;let t=e.performance.now();r==null?a=t+Lt:clearTimeout(r),i=s,r=setTimeout(()=>{r=null,o(I(e),e.performance.now())},Math.min(It,a-t))}else r!=null&&(clearTimeout(r),r=null),o(s,n.timeStamp)};n?.addEventListener(`resize`,s),n?.addEventListener(`scroll`,s);let c=w(e,`resize`,e=>{O(e.target)||s(e)});return()=>{r!=null&&(clearTimeout(r),r=null),n?.removeEventListener(`resize`,s),n?.removeEventListener(`scroll`,s),c()}}function Gt(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=w(e,`focusin`,n),i=w(e,`focusout`,n);return()=>{r(),i()}}function Kt(e,t,{focus:n=!1}={}){let r=Vt(e);return r.listeners.add(t),r.detach??=Wt(e,r),n&&(r.focusListeners.add(t),r.detachFocus??=Gt(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 L(e){let t=Bt.get(e);return t?.detach==null?I(e):t.height}function R(e){if(!$e(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&&!Rt.has((t.getAttribute(`type`)??`text`).toLowerCase())}return e.matches(`[contenteditable]:not([contenteditable="false"])`)}function qt(e,t){if(!k(e))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&R(n))return n;let r=e.closest(`label`),i=$e(r)?r.control:null;return t.contains(i)&&R(i)?i:null}var z=_(`keyboard/keyboard-height/focus-takeovers`,1);function Jt(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=z.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:w(t,`blur`,e=>{O(e.target)&&r(e)}),callers:n},z.set(e,a)}return a.callers.add(i),()=>{let t=z.get(e);t!=null&&t.callers.delete(i)&&t.callers.size===0&&(t.stop(),z.delete(e))}}var B=_(`keyboard/keyboard-height/touch-start-watches`,1);function Yt(e,t){let n=B.get(e);if(n==null){let t=e.defaultView;if(t==null)return()=>{};let r=new Set;n={stop:w(t,`touchstart`,()=>{for(let e of[...r])e()}),watches:r},B.set(e,n)}return n.watches.add(t),()=>{let n=B.get(e);n!=null&&n.watches.delete(t)&&n.watches.size===0&&(n.stop(),B.delete(e))}}function Xt(e,{owns:t,onTouch:n}){let r=e.document,i=null,a=!1;return{report:()=>{let t=e.visualViewport;i=t==null?null:{x:e.scrollX,y:e.scrollY,top:t.offsetTop,scale:t.scale},a=!1},isRevealPan:n=>{let o=e.visualViewport,s=r.activeElement;return o!=null&&i!=null&&!a&&n>0&&o.offsetTop>i.top&&o.scale===i.scale&&e.scrollX===i.x&&e.scrollY===i.y&&s instanceof HTMLElement&&R(s)&&t(s)},putBack:e=>{let t={block:`start`,inline:`nearest`,behavior:`instant`};if(e!=null){e.scrollIntoView(t);return}let n=r.createElement(`div`);n.style.position=`fixed`,n.style.left=`0`,n.style.top=`${i?.top??0}px`,n.style.width=`1px`,n.style.height=`1px`,n.style.visibility=`hidden`,n.style.pointerEvents=`none`,(r.body??r.documentElement).append(n),n.scrollIntoView(t),n.remove()},stop:Yt(r,()=>{a=!0,n?.()})}}function Zt(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),Ke(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 Qt(e){return e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement}function $t(e,t,n){if(e.selectionStart==null)return;let r=bt(e.ownerDocument,t,n,[]),i=r!=null&&r.node===e?r.offset:e.value.length;e.setSelectionRange(i,i)}function en(e,t,n){if(e.focus({preventScroll:!0}),Qt(e)){$t(e,t,n);return}let r=e.ownerDocument,i=bt(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 V={showMs:267,showCurve:[.1,0,0,1],showReportLagMs:25,hideMs:167,hideCurve:[.3,.1,.2,.9],hideAfterBlurMs:16,hideReportLagMs:33};function tn([e,t,n,r]){let i=3*e,a=3*(n-e)-i,o=1-i-a,s=3*t,c=3*(r-t)-s,l=1-s-c,u=e=>((o*e+a)*e+i)*e,d=e=>((l*e+c)*e+s)*e,f=e=>(3*o*e+2*a)*e+i,p=e=>{let t=e;for(let n=0;n<8;n++){let n=u(t)-e;if(Math.abs(n)<1e-7)return t;let r=f(t);if(Math.abs(r)<1e-6)break;t-=n/r}let n=0,r=1;t=e;for(let i=0;i<60;i++){let i=u(t);if(Math.abs(i-e)<1e-7)break;i<e?n=t:r=t,t=(n+r)/2}return t};return e=>e<=0?0:e>=1?1:d(p(e))}var H=.5;function nn(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=tn(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:V.showMs,points:V.showCurve},a={durationMs:V.hideMs,points:V.hideCurve},o=()=>t.curve==null?0:t.curve.durationMs,s=e,c=e=>e<t.start?t.from:n==null||e>=t.start+o()?t.to:n.value((e-t.start)/1e3),l=e=>e<=t.start?t.velocity:n==null||e>=t.start+o()?0:n.velocity((e-t.start)/1e3),u=(e,o,u,{animated:d=!0,predicted:f=!1}={})=>{let p=Math.max(u,t.start),m=c(p),h=d?l(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>H&&(s=o),t},d=()=>(t.predicted&&(t={...t,predicted:!1}),null);return{get inset(){return t.to},get transition(){return t},presentation:c,velocity:l,report(e,n){if(e==null)return null;let r=t.to;if(Math.abs(e-r)<H)return d();if(e<=H)return u(`hide`,0,n-V.hideReportLagMs);if(r<=H){let t=s>e+H;return u(`show`,t?s:e,n-V.showReportLagMs,{predicted:t})}return u(`change`,e,n,{animated:!1})},blurred(e){return t.to<=H?null:u(`hide`,0,e+V.hideAfterBlurMs,{predicted:!0})},focused(e){return t.kind!==`hide`||!t.predicted?null:u(`show`,s,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)<H?d():u(e>t.to?`show`:`hide`,e,n)}}}function rn(e){return Ht(e)?`chromium`:null}var an=150,on=150,sn=new Set([`date`,`datetime-local`,`month`,`time`,`week`]);function cn(e){let t=e instanceof Element?e:null;return R(t)||t instanceof HTMLSelectElement&&!t.disabled}function ln(e){let t=e;return t==null||t.nodeType!==1?!1:t.tagName===`SELECT`||t.tagName===`INPUT`&&sn.has(t.type)}function un(e){return e.tagName===`IFRAME`||e.tagName===`FRAME`||e.tagName===`OBJECT`||e.tagName===`EMBED`||e.shadowRoot!=null||e.tagName.includes(`-`)}var dn=_(`keyboard/keyboard-layout-guide/guides`,1);function fn(e){let t=dn.get(e);return t??(t=pn(e),dn.set(e,t)),t}function pn(e){let t=new Set,n=rn(e),r=nn(L(e)),i=null,a=null,o=e=>cn(e)&&!(n===`chromium`&&ln(e)),s=()=>{let t=e.document.activeElement;return r.transition.kind===`hide`&&r.transition.predicted&&!o(t)&&!(t!=null&&un(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)+an;i=setTimeout(()=>{i=null;let t=L(e);t!=null&&t>.5&&s()||c(r.verify(t,e.performance.now()))},Math.max(0,n-e.performance.now()))},u=()=>{n=rn(e),r=nn(L(e));let t=-1/0,a=null,l=(i,l)=>{a!=null&&(clearTimeout(a),a=null);let u=t+on;return n===`chromium`&&i<.5&&r.inset>=.5&&l<u&&o(e.document.activeElement)?(a=setTimeout(()=>{a=null,c(r.report(L(e),u))},u-l),null):i>.5&&s()?null:r.report(i,l)},u=Kt(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 mn=/^[a-z][A-Za-z0-9]*(\.[a-z][A-Za-z0-9]*)+$/;function hn(e){return mn.test(e)}function gn(e){if(!hn(e))throw Error(`motion role "${e}" must be a dotted table path such as "springs.sheetPresent"`);return`--motion-${e.split(`.`).map(e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)).join(`-`)}`}function _n(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`response`in e&&`dampingRatio`in e||`duration`in e&&`bounce`in e||`stiffness`in e&&`damping`in e}function vn(e){return Array.isArray(e)&&e.length===4&&e.every(e=>typeof e==`number`)}var yn=new Map,bn=new Map,U=new WeakMap,xn=new WeakMap,Sn=new Map;function Cn(e,t,{roles:n=[],exclude:r=[],rename:i={}}={}){if(!/^[a-z][A-Za-z0-9]*$/.test(e))throw Error(`motion table id "${e}" must be one camelCase word`);if(bn.get(e)===t)return;bn.set(e,t);let a=new Set(r.map(t=>`${e}.${t}`)),o=new Set(n.map(t=>`${e}.${t}`)),s=(t,n)=>{xn.set(t,n);for(let[r,c]of Object.entries(t)){let l=`${n}.${r}`;if(a.has(l))continue;let u=null;if(_n(c))u=`spring`;else if(vn(c))u=`curve`;else if(typeof c==`number`&&r.endsWith(`Ms`))u=`duration`;else if(typeof c==`object`&&c&&!Array.isArray(c)){s(c,l);continue}if(u==null)continue;let d=l.slice(e.length+1),f=d in i?`${e}.${i[d]}`:l;if(!o.has(f))continue;f!==l&&Sn.set(l,f);let p=c;if(typeof p==`object`){let e=U.get(p);e!=null&&e.id!==f&&(p=Object.freeze(Array.isArray(p)?[...p]:{...p}),t[r]=p)}let m={id:f,kind:u,variable:gn(f),value:p};yn.set(f,m),typeof p==`object`&&U.set(p,m)}};s(t,e)}function wn(e,t){if(!hn(e))throw Error(`motion role "${e}" must be a dotted table path such as "springs.settle"`);if(U.get(t)?.id!==e){let n={id:e,kind:`spring`,variable:gn(e),value:t};yn.set(e,n),U.set(t,n)}return t}function Tn(e){return typeof e==`object`&&e?U.get(e):void 0}function En(e,t){let n=xn.get(e);if(n==null)return;let r=`${n}.${t}`;return yn.get(Sn.get(r)??r)}var W=`(-?(?:\\d+\\.?\\d*|\\.\\d+)(?:e-?\\d+)?)`,Dn=RegExp(`^${W}s\\s+${W}$`),On=RegExp(`^${W}(ms|s)$`),kn=RegExp(`^cubic-bezier\\(\\s*${W}\\s*,\\s*${W}\\s*,\\s*${W}\\s*,\\s*${W}\\s*\\)$`);function An(e,t){let n=t.trim();if(n===``)return null;if(e===`spring`){let e=Dn.exec(n);if(e==null)return null;let t=Number(e[1]),r=Number(e[2]);return t>0&&r>-1&&r<1?{duration:t,bounce:r}:null}if(e===`duration`){let e=On.exec(n);if(e==null)return null;let t=Number(e[1])*(e[2]===`s`?1e3:1);return t>=0?t:null}let r=kn.exec(n);if(r==null)return null;let i=[r[1],r[2],r[3],r[4]].map(Number);return i[0]>=0&&i[0]<=1&&i[2]>=0&&i[2]<=1?i:null}var jn={linear:[0,0,1,1],ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]};function Mn(e){let t=e.trim();return jn[t]??An(`curve`,t)}var Nn={highlightInMs:0,flashMs:100,highlightOutMs:200,highlightOutCurve:[0,0,.2,1],scrollBrakeMs:150,buttonReleaseMs:250},Pn={durationMs:200,curve:[.42,0,.58,1]},{durationMs:Fn,curve:In}=Pn,Ln={press:Nn,curves:{viewChange:[.25,.1,.25,1],move:In,exit:[.42,0,1,1],entrance:[0,0,.58,1]},navigationBarHideShowMs:200,keyboardNotificationMs:383.3,stateChangeMs:250,reducedMotionCrossFadeMs:Fn},Rn={curves:{move:In}};function zn(){Cn(`timing`,Rn,{roles:[`curves.move`]})}var Bn={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`,"--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}},Vn={characterData:!0,childList:!0,subtree:!0},G=new Map;function Hn(e){return JSON.stringify([e.attributes===!0,e.attributeFilter==null?null:[...e.attributeFilter].sort(),e.attributeOldValue===!0,e.characterData===!0,e.childList===!0,e.subtree===!0])}function Un(e){let t=new Map,n=e.subtree===!0,r=e=>{let r=new Map;for(let i of e){let e=new Set;if(!n)t.get(i.target)?.forEach(t=>e.add(t));else for(let n=i.target;n;n=n.parentNode)t.get(n)?.forEach(t=>e.add(t));e.forEach(e=>{let t=r.get(e);t?t.push(i):r.set(e,[i])})}r.forEach((e,t)=>t(e))};return{observer:new MutationObserver(r),callbacks:t,deliver:r}}function Wn(e,t,n){if(typeof MutationObserver>`u`)return()=>{};let r=Hn(t),i=G.get(r);i??(i=Un(t),G.set(r,i));let{observer:a,callbacks:o}=i,s=o.get(e);s?s.add(n):(o.set(e,new Set([n])),a.observe(e,t));let c=!0;return()=>{if(!c)return;c=!1;let t=o.get(e);t?.delete(n),t?.size===0&&o.delete(e),o.size===0&&G.get(r)?.observer===a&&(a.disconnect(),G.delete(r))}}function Gn(e,t){return Wn(e,Vn,t)}function Kn(e){let t=G.get(Hn(e)),n=t?.observer.takeRecords()??[];t!=null&&n.length>0&&t.deliver(n)}var qn={decelerationRate:{normal:.998,fast:.99},rubberBand:{coefficient:.55},bounce:{duration:.5,bounce:0},delaysContentTouchesMs:150,scrollToTopRate:.99035};function Jn(){Cn(`scroll`,qn,{exclude:[`delaysContentTouchesMs`]})}var Yn={allowableMovement:{value:45,unit:`px`},maximumIntervalBetweenTaps:{value:350,unit:`ms`},allowableSeparation:{value:45,unit:`px`},maximumTapDuration:{value:1500,unit:`ms`}},Xn={minimumPressDuration:{value:500,unit:`ms`},allowableMovement:{value:10,unit:`px`}},Zn={hysteresis:{value:10,unit:`px`}},Qn={trackingExpansion:{value:70,unit:`px`}},$n={contentTouchDelay:{value:150,unit:`ms`},quickTapFlash:{value:100,unit:`ms`},slop:{value:10,unit:`px`},scrollBrake:{value:150,unit:`ms`},momentumMemory:{value:3e3,unit:`ms`}},er={currentWeight:{value:.2,unit:`ratio`},scrollReleaseWeight:{value:.25,unit:`ratio`},stillness:{value:40,unit:`ms`}},tr={selection:{value:[5],unit:`ms`},impactLight:{value:[8],unit:`ms`},impactMedium:{value:[12],unit:`ms`},impactHeavy:{value:[18],unit:`ms`},impactSoft:{value:[10],unit:`ms`},impactRigid:{value:[6],unit:`ms`},notificationSuccess:{value:[8,60,12],unit:`ms`},notificationWarning:{value:[12,80,12],unit:`ms`},notificationError:{value:[12,50,12,50,18],unit:`ms`}},K=new Set([`auto`,`scroll`,`overlay`]),nr=1;function rr(e){let t=e.trim().split(/\s+/);return t.includes(`auto`)||t.includes(`manipulation`)?{x:!0,y:!0}:t.includes(`none`)?{x:!1,y:!1}:{x:t.some(e=>e===`pan-x`||e===`pan-left`||e===`pan-right`),y:t.some(e=>e===`pan-y`||e===`pan-up`||e===`pan-down`)}}function ir(e,t){let n=e.ownerDocument.defaultView;if(n==null)return!1;for(let r=e;r!=null;r=M(r))if(k(r)&&!rr(n.getComputedStyle(r).touchAction||`auto`)[t])return!1;return!0}function ar(e,t){let n=e.defaultView;if(n==null)return`hidden`;for(let r of[e.documentElement,e.body]){if(r==null)continue;let e=n.getComputedStyle(r),i=t===`x`?e.overflowX:e.overflowY;if(i===`hidden`||i===`clip`)return`hidden`}return`auto`}function q(e,t){return t===`y`?e.scrollHeight-e.clientHeight>nr:e.scrollWidth-e.clientWidth>nr}function or(e,{readsTouchAction:t=!0}={}){let n=e.ownerDocument,r=n.defaultView;if(r==null)return!1;let i=n.scrollingElement??n.documentElement,a=!0,o=!0;for(let s=e;s!=null;){if(k(s)){let e=r.getComputedStyle(s);if(t){let t=rr(e.touchAction||`auto`);a&&=t.x,o&&=t.y}if(s===i||s===n.documentElement)break;if(o&&K.has(e.overflowY)&&q(s,`y`)||a&&K.has(e.overflowX)&&q(s,`x`))return!0;if(e.position===`fixed`)return!1}s=M(s)}return o&&K.has(ar(n,`y`))&&q(i,`y`)||a&&K.has(ar(n,`x`))&&q(i,`x`)}var sr=Symbol.for(`@astryxdesign/core/interaction-modality/v1`);function J(e){let t=e,n=t[sr];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`,lr(e)||(r.isTextEntrySincePointer=!1))}};return Object.defineProperty(t,sr,{value:r}),r}var cr=new Set([`Backspace`,`CapsLock`,`Dead`,`Delete`,`Enter`,`Process`,`Shift`,`Unidentified`]);function lr(e){let t=typeof e.composedPath==`function`?e.composedPath()[0]:e.target;if(!R(t instanceof Element?t:null))return!1;let n=typeof e.key==`string`?e.key:``;return e.isComposing===!0||[...n].length===1||cr.has(n)}function ur(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 dr(){return typeof document>`u`||ur(document,J(document),!0),()=>{}}function fr(e){if(typeof document<`u`&&e===document)return dr();let t=J(e);t.consumers=(t.consumers??0)+1,ur(e,t,!0);let n=!1;return()=>{n||(n=!0,t.consumers=(t.consumers??1)-1,t.consumers===0&&ur(e,t,!1))}}function pr(e,t){t.release?.(),t.release=null;let n=e?.ownerDocument;if(n==null||typeof document<`u`&&n===document)return;let r=fr(n);return t.release=r,()=>{r(),t.release===r&&(t.release=null)}}function mr(){(0,s.useEffect)(()=>dr(),[]);let e=(0,s.useRef)(null),t=(0,s.useRef)({release:null});return{ref:(0,s.useCallback)(n=>{e.current=n;let r=pr(n,t.current);return()=>{r?.(),e.current===n&&(e.current=null)}},[]),readModality:(0,s.useCallback)(()=>gr(e.current),[])}}function hr(e,t=!0){return(0,s.useEffect)(()=>t?dr():void 0,[t]),(0,s.useEffect)(()=>{let n=e.current?.ownerDocument;if(!(!t||n==null||typeof document<`u`&&n===document))return fr(n)}),(0,s.useCallback)(()=>gr(e.current),[e])}function gr(e){let t=e==null?null:e.nodeType===9?e:e.ownerDocument;return t==null?typeof document>`u`?`keyboard`:J(document).modality:J(t).modality}function _r(e){let t=e==null?typeof document>`u`?null:document:e.nodeType===9?e:e.ownerDocument;if(t==null)return!1;let n=J(t);return n.isTextEntrySincePointer??n.modality===`pointer`}function vr(e){return()=>{let t=e.withdraw;e.withdraw=null,t?.()}}function yr(e,t){for(let{text:n,receipts:r}of e)for(let e of r)e.withdraw=t(n)}var br=`data-astryx-live-region`,xr=`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;`,Sr=2e3,Y=g(`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 Cr(e){let t=Y.clearTimers[e];t!=null&&(clearTimeout(t),Y.clearTimers[e]=null)}function wr(e){let t=Y.pendingFrames[e];t!=null&&(cancelAnimationFrame(t),Y.pendingFrames[e]=null),Y.pendingMessages[e]=[]}function Tr(e,t){Cr(e),Y.clearTimers[e]=setTimeout(()=>{Y.clearTimers[e]=null,t.textContent=``},Sr)}function Er(e){let t=document.createElement(`div`);return t.setAttribute(br,e),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-atomic`,`true`),t.setAttribute(`role`,e===`assertive`?`alert`:`status`),t.style.cssText=xr,document.body.appendChild(t),t}function Dr(){return typeof document>`u`?null:Y.regions?(Y.regions.polite.isConnected||document.body.appendChild(Y.regions.polite),Y.regions.assertive.isConnected||document.body.appendChild(Y.regions.assertive),Y.regions):(Y.regions={polite:Er(`polite`),assertive:Er(`assertive`)},Y.regions)}function Or(e,t){let n=Dr();if(!n)return null;let r=t===`assertive`?n.assertive:n.polite,i=Y.pendingMessages[t].find(t=>t.text===e);if(i!=null)return i.holders+=1,Y.lastJoined=i,()=>qr(i,t);let a={text:e,holders:1};return Y.pendingMessages[t].push(a),Y.lastJoined=a,Y.pendingFrames[t]??(r.textContent=``,Y.pendingFrames[t]=requestAnimationFrame(()=>{Y.pendingFrames[t]=null,r.textContent=Y.pendingMessages[t].map(e=>e.text).join(` `),Y.pendingMessages[t]=[]})),Tr(t,r),()=>qr(a,t)}function kr(e){if(wr(e),Cr(e),!Y.regions)return;let t=e===`assertive`?Y.regions.assertive:Y.regions.polite;t.textContent=``}function Ar({hasReplace:e=!1}={}){let t=(0,s.use)(Mr),n=(0,s.useRef)(null);return(0,s.useCallback)((r,i=`polite`)=>{if(e){let e=n.current;n.current=null,e?.()}let a;t!=null&&Y.modalRoute!=null?a=Y.modalRoute.announce(t,r,i):r?a=Or(r,i):(kr(i),a=null),e&&(n.current=a)},[e,t])}var jr=`data-astryx-modal-live-region`,Mr=b(`ModalAnnounceContext`,1,null);Mr.displayName=`ModalAnnounceContext`;function Nr(e){Y.modalRoute=e}function Pr(e){return e!=null&&e.open&&e.matches(`:modal`)}function Fr(e){let t=e?.closest(`dialog`)??null;for(;t!=null;){if(Pr(t))return t;t=t.parentElement?.closest(`dialog`)??null}return null}function Ir(e,t,n=`polite`){return Y.modalRoute==null?Pr(e)?Ur(e,t,n):Or(t,n):Y.modalRoute.announceInModal(e,t,n)}var X=_(`hooks/use-announce/pending-by-region`,1);function Lr(e){e.frame!=null&&cancelAnimationFrame(e.frame),e.settleFrame!=null&&cancelAnimationFrame(e.settleFrame),e.timer!=null&&clearTimeout(e.timer)}function Rr(e){return Br(e).map(e=>e.text)}function zr(e){return e.messages.map(t=>({text:t,receipts:e.receipts.get(t)??[]}))}function Br(e){let t=X.get(e);return t==null?[]:t.frame!=null||t.settleFrame!=null?zr(t):[]}function Vr(e,t){return e.querySelector(`:scope > [${jr}="${t}"]`)}function Hr(e,t){let n=Vr(e,t);return n??(n=document.createElement(`div`),n.setAttribute(jr,t),n.setAttribute(`role`,t===`assertive`?`alert`:`status`),n.setAttribute(`aria-live`,t),n.setAttribute(`aria-atomic`,`true`),n.style.cssText=xr,e.appendChild(n)),n}function Ur(e,t,n,r){let i=Hr(e,n),a=Rr(i),o=a.includes(t)?a:[...a,t],s=X.get(i),c=a.length>0&&s!=null?s.receipts:new Map,l={withdraw:null};c.set(t,[...c.get(t)??[],l]),s!=null&&Lr(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()?(X.delete(i),r.redirect(zr(u))):(i.textContent=u.messages.join(` `),u.settleFrame=requestAnimationFrame(()=>{u.settleFrame=null}),u.timer=setTimeout(()=>{i.textContent=``,X.delete(i)},Sr))}),X.set(i,u),l.withdraw=()=>Wr(i,t,l),vr(l)}function Wr(e,t,n){let r=X.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?(Lr(r),X.delete(e),e.textContent=``):r.frame??(e.textContent=r.messages.join(` `))))}function Gr(e,t){let n=Vr(e,t);if(n==null)return;let r=X.get(n);r!=null&&(Lr(r),X.delete(n)),n.textContent=``}function Kr(){let e=Y.lastJoined;return Y.lastJoined=null,e}function qr(e,t){let n=Y.pendingMessages[t],r=n.indexOf(e);r<0||(--n[r].holders,n[r].holders<=0&&n.splice(r,1))}var Jr=()=>()=>{},Yr=()=>!1,Xr=()=>!0;function Zr(){return(0,s.useSyncExternalStore)(Jr,Yr,Xr)}var Z=b(`LayerDepthContext`,1,0);Z.displayName=`LayerDepthContext`;function Qr(){return(0,s.use)(Z)}function $r({children:e}){let t=(0,s.use)(Z);return(0,ue.jsx)(Z,{value:t+1,children:e})}$r.displayName=`LayerDepthProvider`;var ei=229;function ti(e){return e.isComposing===!0||e.keyCode===ei}var Q=g(`layer/layer-stack/state`,1,()=>({entries:[],seqByToken:new WeakMap,nextSeq:0,layerCountByDocument:new Map,composingDocuments:new Set,stopListeningByDocument:new Map}));function ni(e){let t=Q.seqByToken.get(e);if(t!==void 0)return t;let n=Q.nextSeq++;return Q.seqByToken.set(e,n),n}function ri(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 ii(e){return e.isPresent?.()??!0}function ai(){return Q.composingDocuments.size>0}function oi(e){Q.composingDocuments.add(e.currentTarget)}function $(e){Q.composingDocuments.delete(e.currentTarget)}function si(e){let t=null;for(let n of Q.entries)n.ownerDocument===e&&ii(n)&&(t==null||ri(n,t)>0)&&(t=n);return t}function ci(e){let t=Q.entries.find(t=>t.token===e);return t!=null&&si(t.ownerDocument)===t}function li(){return typeof document>`u`?null:document}function ui(e){let t=e.target;return t==null?null:t.nodeType===9?t:t.ownerDocument}function di(e){let t=si(e);return t!=null&&(t.behavior===`block`||t.dismiss(),!0)}function fi(e){if(e.key!==`Escape`)return;let t=ui(e)??li();ti(e)?si(t)!=null&&e.preventDefault():e.defaultPrevented||di(t)&&e.preventDefault()}function pi(e){e.addEventListener(`keydown`,fi),e.addEventListener(`compositionstart`,oi,!0),e.addEventListener(`compositionend`,$,!0),e.addEventListener(`blur`,$,!0),Q.stopListeningByDocument.set(e,()=>{e.removeEventListener(`keydown`,fi),e.removeEventListener(`compositionstart`,oi,!0),e.removeEventListener(`compositionend`,$,!0),e.removeEventListener(`blur`,$,!0)})}function mi(e){Q.stopListeningByDocument.get(e)?.(),Q.stopListeningByDocument.delete(e),Q.composingDocuments.delete(e)}function hi(e){let t=e.getContainer?.()?.ownerDocument??li(),n={...e,seq:ni(e.token),ownerDocument:t};if(Q.entries.push(n),t!=null){let e=Q.layerCountByDocument.get(t)??0;Q.layerCountByDocument.set(t,e+1),e===0&&pi(t)}return()=>{let e=Q.entries.indexOf(n);if(e===-1||(Q.entries.splice(e,1),t==null))return;let r=Q.layerCountByDocument.get(t)??1;r>1?Q.layerCountByDocument.set(t,r-1):(Q.layerCountByDocument.delete(t),mi(t))}}function gi(e){return _i(e,null)}function _i(e,t){let{isActive:n,onDismiss:r,escapeBehavior:i=`close`,getContainer:a,isPresent:o,isEnabled:c=!0}=e,l=Qr(),u=(0,s.useRef)({}),d=(0,s.useRef)(!1),f=(0,s.useRef)(r),p=(0,s.useRef)(a),m=(0,s.useRef)(o);(0,s.useEffect)(()=>{f.current=r,p.current=a,m.current=o});let h=n&&c;return(0,s.useEffect)(()=>{if(!h)d.current=!1;else return d.current||=(u.current={},!0),hi({token:u.current,depth:l,behavior:i,getContainer:()=>p.current?.()??null,isPresent:()=>m.current?.()??!0,dismiss:()=>f.current()})},[h,l,i,t]),{shouldDismissOnCloseRequest:(0,s.useCallback)(()=>h&&!ai()&&ci(u.current),[h])}}export{_n as $,le as $t,tr as A,$e as At,Gn as B,je as Bt,mr as C,dt as Ct,rr as D,et as Dt,or as E,st as Et,Yn as F,Je as Ft,zn as G,Te as Gt,Bn as H,ke as Ht,er as I,Ve as It,Tn as J,ye as Jt,Ln as K,Ce as Kt,Jn as L,Be as Lt,Xn as M,Qe as Mt,Zn as N,Ke as Nt,ar as O,Ze as Ot,$n as P,D as Pt,wn as Q,de as Qt,qn as R,ze as Rt,_r as S,N as St,K as T,ct as Tt,Nn as U,w as Ut,Wn as V,Ae as Vt,Pn as W,we as Wt,An as X,he as Xt,Mn as Y,ge as Yt,Cn as Z,me as Zt,Br as _,_t,Mr as a,ee as an,Zt as at,Ur as b,ut as bt,Gr as c,_ as cn,L as ct,yr as d,p as dn,Jt as dt,b as en,cn as et,vr as f,u as fn,Kt as ft,Kr as g,mt as gt,Vr as h,ht,Zr as i,m as in,tn as it,Qn as j,O as jt,ir as k,k as kt,kr as l,te as ln,zt as lt,Pr as m,c as mn,gt as mt,ti as n,oe as nn,un as nt,Ir as o,ne as on,qt as ot,Nr as p,d as pn,Xt as pt,En as q,Se as qt,$r as r,h as rn,rn as rt,Or as s,g as sn,en as st,gi as t,ae as tn,fn as tt,Fr as u,f as un,R as ut,Ar as v,vt,hr as w,at as wt,gr as x,M as xt,qr as y,lt as yt,Kn as z,Re as zt};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Tooltip-D2KklOm3.js","assets/jsx-runtime-D3jfb0Ew.js","assets/useLayerDismissal-DhnWLnTJ.js","assets/focusOutline.stylex-C8peqGyQ.js","assets/useTooltip-BCo1T06f.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{B as r,Qt as i,Ut as a,V as o,Yt as s,Zt as c,en as l,in as u,kt as d,nn as f,rn as p,sn as m,z as ee}from"./useLayerDismissal-DhnWLnTJ.js";import{E as h,O as g,S as te,V as _,h as v,v as y,w as b}from"./focusOutline.stylex-C8peqGyQ.js";import"./devWarning-WNHQ_jrU.js";import{t as x}from"./mergeProps-ptS-gIMz.js";import{D as S,Y as C,f as ne,i as re,k as w,m as T,r as ie}from"./useTooltip-BCo1T06f.js";var E=e(t(),1);function ae(e,t,n){let r=p(u(`react/${e}`,t),()=>new WeakMap,e=>e instanceof WeakMap);if(r.has(E.createElement))return r.get(E.createElement);let i=n();return r.set(E.createElement,i),i}var D=ae(`theme/theme-registry/themes`,1,()=>new Map);function oe(e){D.set(e.name,e)}function se(e){return e==null||e===``?null:D.get(e)??null}var O=l(`ThemeContext`,1,null);O.displayName=`ThemeContext`;function ce(){return typeof document>`u`?null:document.documentElement.getAttribute(y(`theme`))}function le(){return null}function ue(){return null}var k=new Set,A=null;function de(){for(let e of k)e()}function fe(e){return k.add(e),k.size===1&&typeof MutationObserver<`u`&&(A=new MutationObserver(de),A.observe(document.documentElement,{attributes:!0,attributeFilter:[y(`theme`)]})),()=>{k.delete(e),k.size===0&&A&&(A.disconnect(),A=null)}}function pe(){return()=>{}}function me(e){return(0,E.useSyncExternalStore)(e?pe:fe,e?ue:ce,le)}function he(){let e=(0,E.use)(O),t=me(e!=null);return e?.theme.name??t}function ge(e=!0){let t=e?(0,E.use)(O):null,n=me(t!=null||!e);if(e)return t?.theme??se(n)??void 0}var j=n(),M={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},N={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,width:`1em`,height:`1em`,"aria-hidden":!0},_e={close:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M6 6l12 12M6 18L18 6`})}),chevronDown:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M6 9l6 6 6-6`})}),"numberInput:stepperDown":(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M7.5 9.75l4.5 4.5 4.5-4.5`})}),chevronLeft:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M15 6l-6 6 6 6`})}),chevronRight:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M9 6l6 6-6 6`})}),chevronsLeft:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M18 6l-6 6 6 6M11 6l-6 6 6 6`})}),chevronsRight:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M6 6l6 6-6 6M13 6l6 6-6 6`})}),check:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M5 13l4 4L19 7`})}),success:(0,j.jsx)(`svg`,{...N,children:(0,j.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,j.jsx)(`svg`,{...N,children:(0,j.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,j.jsx)(`svg`,{...N,children:(0,j.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,j.jsx)(`svg`,{...N,children:(0,j.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,j.jsxs)(`svg`,{...M,children:[(0,j.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`}),(0,j.jsx)(`path`,{d:`M16 2v4M8 2v4M3 10h18`})]}),clock:(0,j.jsxs)(`svg`,{...M,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,j.jsx)(`path`,{d:`M12 7v5l3 3`})]}),externalLink:(0,j.jsxs)(`svg`,{...M,children:[(0,j.jsx)(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),(0,j.jsx)(`path`,{d:`M15 3h6v6`}),(0,j.jsx)(`path`,{d:`M10 14L21 3`})]}),menu:(0,j.jsx)(`svg`,{...M,strokeWidth:2,children:(0,j.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h16`})}),moreHorizontal:(0,j.jsxs)(`svg`,{...N,children:[(0,j.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1.5`}),(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.5`}),(0,j.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1.5`})]}),search:(0,j.jsxs)(`svg`,{...M,children:[(0,j.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,j.jsx)(`path`,{d:`M21 21l-4.35-4.35`})]}),upload:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M12 16V4m0 0L7 9m5-5l5 5M4 15v4a2 2 0 002 2h12a2 2 0 002-2v-4`})}),arrowUp:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M12 19V5m0 0l-7 7m7-7l7 7`})}),arrowDown:(0,j.jsx)(`svg`,{...M,children:(0,j.jsx)(`path`,{d:`M12 5v14m0 0l7-7m-7 7l-7-7`})}),arrowsUpDown:(0,j.jsx)(`svg`,{...M,children:(0,j.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,j.jsx)(`svg`,{...M,children:(0,j.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,j.jsx)(`svg`,{...M,children:(0,j.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,j.jsx)(`svg`,{...M,children:(0,j.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,j.jsxs)(`svg`,{...M,children:[(0,j.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,j.jsx)(`path`,{d:`M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2`})]}),checkDouble:(0,j.jsxs)(`svg`,{...M,children:[(0,j.jsx)(`path`,{d:`M2 13l4 4L14 7`}),(0,j.jsx)(`path`,{d:`M9 13l4 4L21 7`})]}),wrench:(0,j.jsx)(`svg`,{...M,children:(0,j.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,j.jsx)(`svg`,{...N,children:(0,j.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})}),microphone:(0,j.jsxs)(`svg`,{...M,children:[(0,j.jsx)(`path`,{d:`M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z`}),(0,j.jsx)(`path`,{d:`M19 10v1a7 7 0 01-14 0v-1`}),(0,j.jsx)(`path`,{d:`M12 18v4m-4 0h8`})]})},ve=ae(`icon/global-icon-registry/state`,1,()=>({entries:{}}));function ye(e){return typeof e==`string`?se(e):e??null}function be(e){return e==null?null:e.__icons??e.icons??null}function xe(e,t,n){let r=ye(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=ve.entries[e];return o==null?{entry:_e[e]??n,variantLists:[]}:{entry:o,variantLists:[i]}}function Se({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 Ce(e,t,n){return Se(xe(e,t),n)}var we=c(`IconDefaultSizeContext`,1,null);we.displayName=`IconDefaultSizeContext`;var Te=we.Provider;function Ee(e){let t=(0,E.use)(we);return e??t??`md`}var De={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}},Oe={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}},ke={root:{kmuXW:`x2lah0s`,$$css:!0},span:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,$$css:!0}},Ae={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}},je={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 Me(e){return e!=null&&e!==``?{role:`img`,"aria-label":e,"aria-hidden":void 0}:{"aria-hidden":`true`}}function Ne({icon:e,color:t=`inherit`,size:n,variant:r,label:i,ref:a,className:o,style:s,xstyle:c,...l}){let u=Ee(n),d=Me(i);return typeof e==`string`?(0,j.jsx)(Pe,{name:e,color:t,size:u,variant:r,a11yProps:d,className:o,style:s,xstyle:c,svgRef:a,spanProps:l}):(0,j.jsx)(e,{ref:a,...d,...x(v(`icon`,{size:u,color:t}),_(ke.root,je[t],De[u],c),o??void 0,s),...l})}Ne.displayName=`Icon`;function Pe({name:e,color:t,size:n,variant:r,a11yProps:a,className:o,style:s,xstyle:c,svgRef:l,spanProps:u}){let d=he(),f=Ce(e,d,{size:n,variant:r}),p=(0,E.useCallback)(e=>l==null?void 0:i(l)(e?.querySelector(`svg`)??null),[l,e,d,n,r]);if(f==null)return null;let m=u??{};return(0,j.jsx)(`span`,{ref:l==null?void 0:p,...a,...m,...x(v(`icon`,{size:n,color:t}),_(ke.span,je[t],Ae[n],c),o??void 0,s),children:f})}function Fe(e,t){return typeof e==`string`||typeof e==`function`||typeof e==`object`&&e&&`render`in e?(0,j.jsx)(Ne,{icon:e,...t}):e}function Ie(e,t){let n=t&&t.cache?t.cache:Ke,r=t&&t.serializer?t.serializer:We;return(t&&t.strategy?t.strategy:Ve)(e,{cache:n,serializer:r})}function Le(e){return e==null||typeof e==`number`||typeof e==`boolean`}function Re(e,t,n,r){let i=Le(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function ze(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 Be(e,t,n,r,i){return n.bind(t,e,r,i)}function Ve(e,t){let n=e.length===1?Re:ze;return Be(e,this,n,t.cache.create(),t.serializer)}function He(e,t){return Be(e,this,ze,t.cache.create(),t.serializer)}function Ue(e,t){return Be(e,this,Re,t.cache.create(),t.serializer)}var We=function(){return JSON.stringify(arguments)},Ge=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},Ke={create:function(){return new Ge}},qe={variadic:He,monadic:Ue},Je=/(?:[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 Ye(e){let t={};return e.replace(Je,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 Xe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ze(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(Xe).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 Qe(e){return e.replace(/^(.*?)-/,``)}var $e=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,et=/^(@+)?(\+|#+)?[rs]?$/g,tt=/(\*)(0+)|(#+)(0+)|(0+)/g,nt=/^(0+)$/;function rt(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(et,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 it(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)),!nt.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function ot(e){return it(e)||{}}function st(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=Qe(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,...ot(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...ot(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(tt,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(nt.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if($e.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace($e,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,...rt(e)});continue}if(et.test(n.stem)){t={...t,...rt(n.stem)};continue}let e=it(n.stem);e&&(t={...t,...e});let r=at(n.stem);r&&(t={...t,...r})}return t}var ct=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 lt(e){return e.type===0}function ut(e){return e.type===1}function dt(e){return e.type===2}function ft(e){return e.type===3}function pt(e){return e.type===4}function mt(e){return e.type===5}function ht(e){return e.type===6}function gt(e){return e.type===7}function _t(e){return e.type===8}function vt(e){return!!(e&&typeof e==`object`&&e.type===0)}function yt(e){return!!(e&&typeof e==`object`&&e.type===1)}var bt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,P={"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 xt(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=St(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 St(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),(P[`${n}-${r}`]||P[r||``]||P[n||``]||P[`${n}-001`]||P[`001`])[0].charAt(0)}var Ct=RegExp(`^${bt.source}*`),wt=RegExp(`${bt.source}*$`);function F(e,t){return{start:e,end:t}}var Tt=!!Object.fromEntries,Et=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,Ot=Tt?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},kt=Et?function(e){return e.trimStart()}:function(e){return e.replace(Ct,``)},At=Dt?function(e){return e.trimEnd()}:function(e){return e.replace(wt,``)},jt=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function Mt(e,t){return jt.lastIndex=t,jt.exec(e)[1]??``}function Nt(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 Pt=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=Nt(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:F(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:F(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,F(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Ft(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:F(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()||!Ft(this.char()))return this.error(23,F(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:F(n,this.clonePosition())},err:null}:this.error(23,F(o,this.clonePosition()))):this.error(26,F(e,this.clonePosition()))}return this.error(27,F(n,this.clonePosition()))}return this.error(23,F(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&Lt(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=F(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!It(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,F(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,F(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,F(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,F(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:F(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,F(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,F(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=Mt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:F(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,F(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=At(n.val);if(r.length===0)return this.error(6,F(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:F(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=F(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=kt(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=xt(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?Ye(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,F(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,F(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=F(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:Ot(c.val),location:u},err:null}:{val:{type:6,value:n,options:Ot(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,F(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,F(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,F(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=Ze(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?st(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=F(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,F(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:F(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,F(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=F(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()&&Rt(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 Ft(e){return e>=97&&e<=122||e>=65&&e<=90}function It(e){return Ft(e)||e===47}function Lt(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 Rt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function zt(e){e.forEach(e=>{if(delete e.location,mt(e)||ht(e))for(let t in e.options)delete e.options[t].location,zt(e.options[t].value);else dt(e)&&vt(e.style)||(ft(e)||pt(e))&&yt(e.style)?delete e.style.location:_t(e)&&zt(e.children)})}function Bt(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new Pt(e,t).parse();if(n.err){let e=SyntaxError(ct[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||zt(n.val),n.val}var Vt=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},Ht=class extends Vt{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},Ut=class extends Vt{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},Wt=class extends Vt{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function Gt(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 Kt(e){return typeof e==`function`}function qt(e,t,n,r,i,a,o){if(e.length===1&<(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(lt(c)){s.push({type:0,value:c.value});continue}if(gt(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 Wt(e,o);let l=i[e];if(ut(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(ft(c)){let e=typeof c.style==`string`?r.date[c.style]:yt(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(pt(c)){let e=typeof c.style==`string`?r.time[c.style]:yt(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)})}else if(dt(c)){let e=typeof c.style==`string`?r.number[c.style]:vt(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(_t(c)){let{children:e,value:l}=c,u=i[l];if(!Kt(u))throw new Ut(l,`function`,o);let d=u(qt(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(mt(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new Ht(c.value,l,Object.keys(c.options),o);s.push(...qt(a.value,t,n,r,i))}else if(ht(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new Vt(`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 Ht(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...qt(a.value,t,n,r,i,u-(c.offset||0)))}}}return Gt(s)}function Jt(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function Yt(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=Jt(e[r],t[r]),n),{...e}):e}function Xt(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Zt(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:Ie((...e)=>new Intl.NumberFormat(...e),{cache:Xt(e.number),strategy:qe.variadic}),getDateTimeFormat:Ie((...e)=>new Intl.DateTimeFormat(...e),{cache:Xt(e.dateTime),strategy:qe.variadic}),getPluralRules:Ie((...e)=>new Intl.PluralRules(...e),{cache:Xt(e.pluralRules),strategy:qe.variadic})}}var Qt=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=>qt(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=Yt(e.formats,r),this.formatters=i&&i.formatters||Zt(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=Bt}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`}}}}},$t=p(u(`i18n/english-fallback`,1),()=>({})),en=$t;function tn(e){Object.assign($t,e)}var nn=new Map;function rn(e,t){let n=`${t}::${e}`,r=nn.get(n);return r===void 0&&(r=new Qt(e,t),nn.set(n,r)),r}function an(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 on(e,t,n){let r={},i=an(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 sn(e,t,n,r=en){let i=on(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:rn(a,e).format(n)}}var cn=l(`InternationalizationContext`,1,{locale:`en`,direction:`ltr`,messages:{},translate:sn(`en`,{})});cn.displayName=`InternationalizationContext`;function ln(){return(0,E.use)(cn).translate}var I={top:0,right:0,bottom:0,left:0},un={top:`--astryx-hit-inset-top`,right:`--astryx-hit-inset-right`,bottom:`--astryx-hit-inset-bottom`,left:`--astryx-hit-inset-left`};function dn(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 L(e,t){return{left:e.left-t.left,top:e.top-t.top,right:e.right+t.right,bottom:e.bottom+t.bottom}}function fn(e,t){return e.left<t.right&&t.left<e.right&&e.top<t.bottom&&t.top<e.bottom}function pn(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 mn(e,t,n=44){if(t.length===0)return I;let r={top:-1/0,right:-1/0,bottom:-1/0,left:-1/0};for(let i of t){let t=pn(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 hn(e,t,n=44,r=pn(e,n)){if(r.top===0&&r.right===0&&r.bottom===0&&r.left===0)return I;let i={...r};for(let a of t){let t=dn(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=L(e,r),c=L(a,pn(a,n));(fn(s,L(a,o))||fn(c,L(e,o))||fn(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 gn(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function _n(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 vn(e,t,n,r=44){let i=-1,a=1/0;if(n.forEach((n,r)=>{let o=_n(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 gn(L(o,pn(o,r)),e,t)?i:-1}function yn(e,t){for(let n of[`top`,`right`,`bottom`,`left`])e.style.setProperty(un[n],`${t[n]}px`)}var R=`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(`,`),bn=`(pointer: coarse)`,xn=4,Sn=100,Cn=150,wn={capture:!0,passive:!0},Tn={childList:!0,subtree:!0,attributes:!0,attributeFilter:[`href`,`type`,`for`,`contenteditable`,`role`,`tabindex`]};function En(){return typeof performance>`u`?Date.now():performance.now()}var z=new Map,B=new Set,Dn=new WeakMap,V=new Map,H=null,U=null,On=null,W=null,G=null,K=null,q=!1,J=null,kn=null,An=null,Y=m(`utils/hit-area/scroll-gate`,1,()=>({isScrolling:!1,timer:void 0,stop:null,onEnd:new Set}));function jn(){An?.(),An=null,kn=null,J=null}function Mn(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left}function Nn(e,t){Mn(e.last,t)||(e.last=t,e.onInsets(t))}function Pn(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 Fn(e){let{left:t,top:n,right:r,bottom:i}=e.getBoundingClientRect();return{left:t,top:n,right:r,bottom:i}}var In={x:1,y:1};function Ln(e,t){if(!(t>0)||!(e>0))return 1;let n=e/t;return Math.abs(n-1)<.001?1:n}function Rn(e,t){let n=e,r=n.offsetWidth??0,i=n.offsetHeight??0;if(r===0||i===0||Math.abs(t.right-t.left-r)<=1&&Math.abs(t.bottom-t.top-i)<=1)return In;let a=e.ownerDocument.defaultView?.getComputedStyle(e);if(a==null||!a.width.endsWith(`px`))return In;let o=e=>Number.parseFloat(e)||0,s=a.boxSizing!==`border-box`,c=o(a.width)+(s?o(a.paddingLeft)+o(a.paddingRight)+o(a.borderLeftWidth)+o(a.borderRightWidth):0),l=o(a.height)+(s?o(a.paddingTop)+o(a.paddingBottom)+o(a.borderTopWidth)+o(a.borderBottomWidth):0);return{x:Ln(t.right-t.left,c),y:Ln(t.bottom-t.top,l)}}function zn(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 X(e){for(let t=e;t!=null;t=t.parentElement)if(z.has(t))return t;return null}function Bn(e){if(typeof MutationObserver>`u`?J=null:kn===e?ee(Tn):(jn(),kn=e,An=o(e,Tn,Hn)),J!=null){for(let e of J)e.isConnected||J.delete(e);return[...J]}let t=new Set;return Vn(t,e),J=t,[...t]}function Vn(e,t){d(t)&&t.matches(R)&&e.add(X(t)??t);for(let n of t.querySelectorAll(R))e.add(X(n)??n)}function Hn(e){let t=J;if(t!=null)for(let n of e){if(n.type!==`attributes`){n.addedNodes.forEach(e=>{d(e)&&Vn(t,e)});continue}let{target:e}=n;d(e)&&(e.matches(R)?t.add(X(e)??e):z.has(e)||t.delete(e))}}function Un(e){if(e.matches(R))return!0;for(let t of e.querySelectorAll(R))if(X(t)===e)return!0;return!1}function Wn(e){let t=J;if(t==null)return;for(let n of e.querySelectorAll(R))t.delete(n);Vn(t,e);let n=e.parentElement==null?null:X(e.parentElement);n!=null&&t.has(n)&&!Un(n)&&t.delete(n)}function Gn(e){let t=J;t!=null&&(t.delete(e),Vn(t,e))}function Kn(e){return Bn(e).map(e=>({element:e,rect:Fn(e)}))}function qn(e,t){let n=Fn(e.element),r=Rn(e.element,n),i=Math.max(0,e.minSize),a=L(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&&fn(a,n)&&!Pn(e,t)).map(({rect:e})=>e);return{target:n,insets:hn(zn(n,n,r),o.map(e=>zn(e,n,r)),e.minSize,e.growth?.(zn(n,n,r),e=>zn(e,n,r))),neighbours:o}}function Jn(e){return typeof e.getAnimations==`function`?(d(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 Yn=/^(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 Xn(e){let t=e.effect;return typeof t?.getKeyframes!=`function`||t.getKeyframes().some(e=>Object.keys(e).some(e=>Yn.test(e)))}function Zn(e){return Jn(e).filter(e=>e.playState===`running`&&Xn(e))}function Qn(e,t){Promise.allSettled(e.map(async e=>e.finished)).then(t)}function $n(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),Qn([r],()=>{e.heldBy.delete(r),e.isVisible&&z.get(e.element)?.watches.has(e)&&Z(e)})))}return n}function er(){if(H=null,Y.isScrolling)return;let e=[...B].filter(e=>e.isVisible);if(B.clear(),!q||e.length===0)return;let t=e[0].element.ownerDocument,n=Zn(t),r=e.filter(e=>!$n(e,n));if(r.length===0)return;let i=Kn(t),a=En(),o=[];for(let e of r)o.length>0&&En()-a>xn?B.add(e):o.push({watch:e,insets:qn(e,i).insets});for(let{watch:e,insets:t}of o)Nn(e,t);B.size>0&&tr()}function tr(){H==null&&!Y.isScrolling&&typeof requestAnimationFrame==`function`&&(H=requestAnimationFrame(er))}function nr(){Y.isScrolling=!0,Y.timer!==void 0&&clearTimeout(Y.timer),Y.timer=setTimeout(rr,Cn)}function rr(){if(Y.timer!==void 0&&(clearTimeout(Y.timer),Y.timer=void 0),Y.isScrolling){Y.isScrolling=!1;for(let e of[...Y.onEnd])e()}}function ir(){B.size>0&&tr()}function Z(e){q&&(B.add(e),tr())}function ar(){for(let e of z.values())e.watches.forEach(Z)}function or(e){for(let t=e.target instanceof Element?e.target:null;t!=null;t=t.parentElement)if(z.has(t)){sr(t,e);return}}function sr(e,t){let n=z.get(e);if(n==null||(n.disarm?.(),!q||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},o=r.some(e=>e.heldBy.size>0),s=o&&ur(e,n,r,i,Kn(e.ownerDocument));if(o&&!s)return;let c=t=>{d(),t.detail!==0&&(s||dr(e,n,r,i))&&(t.preventDefault(),t.stopPropagation())},l=e.ownerDocument,u=null,d=()=>{e.removeEventListener(`click`,c,!0),e.removeEventListener(`pointercancel`,d,!0),u?.(),u=null,n.disarm===d&&(n.disarm=null)};e.addEventListener(`click`,c,!0),e.addEventListener(`pointercancel`,d,!0);let f=l.defaultView;f!=null&&(u=a(f,`pointerdown`,d)),n.disarm=d}function cr(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 lr(e){let{element:t}=e,n=Jn(t);n.length===0?Z(e):Qn(n,()=>{z.get(t)?.watches.has(e)&&Z(e)})}function ur(e,t,n,r,i){let a=!1;for(let e of n){let{target:t,insets:n,neighbours:o}=qn(e,i),s=_n(cr(e.element,t),r.x,r.y);a||=o.some(e=>_n(e,r.x,r.y)<s),Mn(e.last,n)||lr(e)}let o=[...t.watches].some(e=>e.ownsDescendantTouches)&&r.target instanceof Node&&r.target!==e&&e.contains(r.target);return a&&!o}function dr(e,t,n,r){let i=e.ownerDocument,a=Zn(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)&&ur(e,t,n,r,Kn(i).filter(e=>!o(e.element,!0)))}function fr(e){let t=V.get(e);t!=null&&clearTimeout(t),V.set(e,setTimeout(()=>{V.delete(e);for(let[t,n]of z)t.parentElement===e&&n.watches.forEach(Z)},Sn))}function pr(e,t){let n=e.parentElement;G?.observe(e),K?.observe(e),n!=null&&K?.observe(n);let i=n==null?null:r(n,()=>fr(n));t.release=()=>{G?.unobserve(e),K?.unobserve(e);let r=[...z.keys()].some(t=>t!==e&&t.parentElement===n);if(n!=null&&!r){K?.unobserve(n);let e=V.get(n);e!=null&&(clearTimeout(e),V.delete(n))}i?.(),t.disarm?.()}}function mr(){if(U!=null){if(U.addEventListener(`resize`,ar),Y.stop==null){let e=a(U,`scroll`,nr),t=a(U,`scrollend`,rr);Y.stop=()=>{e(),t()}}Y.onEnd.add(ir),On=U.document,On.addEventListener(`pointerdown`,or,wn),typeof IntersectionObserver==`function`&&(G=new IntersectionObserver(e=>{for(let t of e)z.get(t.target)?.watches.forEach(e=>{e.isVisible=t.isIntersecting,e.isVisible?Z(e):B.delete(e)})})),typeof ResizeObserver==`function`&&(K=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect,r=`${e}x${n}`,i=Dn.get(t.target);if(Dn.set(t.target,r),i!==void 0&&i!==r)for(let[e,n]of z)(e===t.target||e.parentElement===t.target)&&n.watches.forEach(Z)}}));for(let[e,t]of z)t.watches.forEach(e=>{e.isVisible=G==null}),pr(e,t),G??t.watches.forEach(Z)}}function hr(){for(let e of z.values())e.release?.(),e.release=null;U?.removeEventListener(`resize`,ar),Y.onEnd.delete(ir),Y.onEnd.size===0&&(Y.stop?.(),Y.stop=null,Y.timer!==void 0&&(clearTimeout(Y.timer),Y.timer=void 0),Y.isScrolling=!1),On?.removeEventListener(`pointerdown`,or,wn),On=null,G?.disconnect(),K?.disconnect(),G=null,K=null,V.forEach(e=>clearTimeout(e)),V.clear(),jn(),H!=null&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(H),H=null,B.clear()}function gr(){let e=W?.matches??!1;if(e!==q){if(q=e,q)mr();else{hr();for(let e of z.values())e.watches.forEach(e=>Nn(e,I))}}}function _r(e,t,{minSize:n=44,ownsDescendantTouches:r=!1,growth:i,checkAtPress:a=!0}={}){let o=e.ownerDocument.defaultView;if(o==null)return()=>{};U=o;let s=o.matchMedia?.(bn)??null;s!==W&&(W?.removeEventListener(`change`,gr),W=s,W?.addEventListener(`change`,gr)),gr();let c={element:e,minSize:n,ownsDescendantTouches:r,growth:i,checkAtPress:a,onInsets:t,isVisible:q&&G==null,last:I,heldBy:new Set},l=z.get(e);return l==null?(l={watches:new Set,release:null,disarm:null},z.set(e,l),Wn(e),l.watches.add(c),q&&pr(e,l)):(c.isVisible=[...l.watches][0]?.isVisible??c.isVisible,l.watches.add(c)),c.isVisible&&Z(c),()=>{let t=z.get(e);t!=null&&t.watches.delete(c)&&(B.delete(c),t.watches.size===0&&(t.release?.(),z.delete(e),Gn(e)),z.size===0&&(hr(),W?.removeEventListener(`change`,gr),W=null,U=null,q=!1))}}var vr={};function yr(e,t,{growth:n,checkAtPress:r,ownsDescendantTouches:i=!0}){let a=()=>{},o=!1,s=!1,c=!1,l=()=>{a(),c&&(c=!1,yn(e,I))},u=()=>{a=_r(e,t=>{let n=Jn(e.parentElement??e);n.length===0?(c=!0,yn(e,t)):s||(s=!0,Qn(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 br=new WeakMap;function xr(e,t){let n=br.get(e);n??(n={stop:yr(e,44,t),holders:0},br.set(e,n)),n.holders+=1;let r=n,i=!1;return()=>{i||(i=!0,--r.holders,queueMicrotask(()=>{r.holders===0&&br.get(e)===r&&(br.delete(e),r.stop())}))}}function Sr(e,t=vr){return(0,E.useCallback)(n=>{if(e&&n!=null)return xr(n,t)},[e,t])}var Cr={layer:{k5JduY:`x1fjtqre`,kwXMNM:`x7b72wb`,kv0HGH:`x1ukc1h5`,kJYu5r:`x1c440c0`,$$css:!0},layerBelowChildren:{kgeoSG:`xrfab51`,kEoFBp:`xjupvsi`,kFcpXp:`xg52tuh`,ksxFz7:`x1la2cvp`,$$css:!0}},wr=l(`SpinnerOwnerContext`,1,!1);wr.displayName=`SpinnerOwnerContext`;var Tr={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}},Er={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},Dr={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}},Or={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}},kr={"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}},Ar={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}},jr={inline:{k1xSpc:`xt0psk2`,kHjlTd:`xh015us`,$$css:!0},block:{k1xSpc:`x1lliihq`,kHjlTd:`xh015us`,$$css:!0}},Mr={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},Nr={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},Pr={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},Fr={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},Ir={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},Lr={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},Rr={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},zr={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}};function Br(e){let{maxLines:t,isExpanded:n=!1}=e,[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(``),c=(0,E.useRef)(null),l=(0,E.useRef)(null),u=(0,E.useRef)(null),d=(0,E.useRef)({isTruncated:!1,fullText:``}),p=(0,E.useRef)(null),m=(0,E.useCallback)(e=>{if(t===0)a(!1);else if(d.current.fullText=e.textContent??``,s(d.current.fullText),t===1)d.current.isTruncated=e.scrollWidth>e.offsetWidth,a(d.current.isTruncated);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}d.current.isTruncated=t>e.offsetHeight,a(d.current.isTruncated)}},[t]);return{ref:(0,E.useCallback)(e=>{l.current?.(),l.current=null,u.current?.(),u.current=null;let i=c.current;if(c.current=e,n){e==null?p.current=i:(a(d.current.isTruncated),s(d.current.fullText));return}let o=p.current;if(p.current=null,o!=null&&e!==o&&(d.current={isTruncated:!1,fullText:``},a(!1),s(``)),e&&t>0){let t=f(e,()=>{m(e)});t??m(e),l.current=t,u.current=r(e,()=>{m(e)})}else a(!1),s(``)},[t,n,m]),isTruncated:i,fullText:o}}function Vr(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 Hr=`modulepreload`,Ur=function(e){return`/`+e},Wr={},Gr=function(e){return e.pathname.endsWith(`.css`)},Kr=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},qr=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=Ur(t,n);let r=s(t),i=Gr(r);return Kr(Wr,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`:Hr,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)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).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)})},Jr=Vr(async()=>qr(()=>import(`./Tooltip-D2KklOm3.js`),__vite__mapDeps([0,1,2,3,4])));function Yr(e){let[t,n]=(0,E.useState)(!1),[r,i]=(0,E.useState)(()=>Jr.loaded()?.Tooltip??null);(0,E.useEffect)(()=>{if(!e||r!=null)return;let t=!0;return Jr.load().then(e=>{t&&i(()=>e.Tooltip)},()=>{}),()=>{t=!1}},[e,r]);let a=(0,E.useRef)({interest:null,tapEvent:null,isRead:!1}),o=re(),s=(0,E.useCallback)((t,r=null)=>{let i=a.current;e&&!i.isRead&&(i.interest=t,i.tapEvent=r,n(!0))},[e]),c=(0,E.useCallback)(e=>{let t=a.current;!t.isRead&&t.interest===e&&(t.interest=null)},[]);return{isWanted:t,tooltip:r,interestRef:a,onPointerEnter:(0,E.useCallback)(e=>{e.pointerType!==`touch`&&s(`hover`)},[s]),onPointerLeave:(0,E.useCallback)(()=>c(`hover`),[c]),onPointerDown:(0,E.useCallback)(t=>{!e||a.current.isRead?o.forget():o.press(t.nativeEvent,t.currentTarget,e=>s(`tap`,e))||c(`hover`)},[e,o,s,c]),onFocus:(0,E.useCallback)(e=>{let t=e.target;d(t)&&t.matches(`:focus-visible`)&&!o.isTouchPressCurrent()&&s(`focus`)},[s,o]),onBlur:(0,E.useCallback)(()=>c(`focus`),[c])}}function Xr({anchorRef:e,content:t,placement:n,interest:r}){let i=r.tooltip;return i==null?null:(0,j.jsx)(C,{value:r.interestRef,children:(0,j.jsx)(i,{anchorRef:e,content:t,placement:n})})}function Q(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var Zr=c(`TextClampContext`,1,!1),Qr={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`};function $r(e){return e in Or?e:`body`}function ei(e){return e in Tr?e:`primary`}function ti({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:c,textWrap:l,justify:u=`start`,hasCapsize:d=!1,hasStrikethrough:f=!1,hasTabularNumbers:p=!1,xstyle:m,className:ee,style:h,as:g=`span`,children:te,ref:y,...b}){let S=n??Qr[e]??`primary`,C=$r(e),ne=ei(S),re=c??(a===1?`break-all`:`break-word`),w=a>0||d?`block`:i,T=Br({maxLines:o===!1?0:a}),ie=typeof o==`string`?o:`above`,ae=a>0&&o!==!1&&T.isTruncated,D=Yr(ae),oe=(0,E.useRef)(null),se=s(y,T.ref,oe),O=(0,E.use)(Zr),ce=a===1||a>1&&!d,le=a>1?{WebkitLineClamp:a}:void 0;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(g,{ref:se,...x(v(`text`,{type:e,size:t,color:S}),_(Tr[ne],Or[C],t&&kr[t],Dr[C],r&&Er[r],a===1?Mr.singleLine:a>1?Mr.multiLine:jr[w],a>0&&Nr[re],l&&Pr[l],u!==`start`&&Rr[u],d&&Fr.enabled,f&&Ir.strikethrough,p&&Lr.enabled,m),ee,{...h,...le}),...b,onPointerEnter:Q(D.onPointerEnter,b.onPointerEnter),onPointerLeave:Q(D.onPointerLeave,b.onPointerLeave),onPointerDown:Q(D.onPointerDown,b.onPointerDown),onFocus:Q(D.onFocus,b.onFocus),onBlur:Q(D.onBlur,b.onBlur),children:(0,j.jsx)(Zr,{value:ce||O,children:te})}),ae&&D.isWanted&&(0,j.jsx)(Xr,{anchorRef:oe,content:(0,j.jsx)(`span`,{..._(zr.content),children:T.fullText}),placement:ie,interest:D})]})}ti.displayName=`Text`;var ni={"@astryx.spinner.loading":`Loading`},ri={turn:{k6sLGO:`x1so62im`,k44tkh:`xidn0ey x14hxw50`,ko0y90:`xa4qsjk`,kKVMdj:`x129v4ae`,kyAemX:`x1esw782`,$$css:!0}},$=m(`spinner/spinner-rotor/state`,1,()=>({pendingRotors:new Set,flushScheduled:!1}));function ii(){$.flushScheduled=!1;let e=[];for(let t of $.pendingRotors)e.push(...t.getAnimations());$.pendingRotors.clear();for(let t of e)t.startTime=0}function ai(e){if(e!=null&&typeof e.getAnimations==`function`)return $.pendingRotors.add(e),$.flushScheduled||($.flushScheduled=!0,requestAnimationFrame(ii)),()=>{$.pendingRotors.delete(e)}}tn(ni);var oi=.375,si={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},ci=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],li=`--_spinner-box-size`;function ui(){if(typeof CSS<`u`&&typeof CSS.registerProperty==`function`)for(let e of ci)try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!0,initialValue:`0px`})}catch{}}ui();var di={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}},fi={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}},pi={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}},mi={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}};function hi({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:a,style:o,"aria-label":s,"data-testid":c,ref:l,...u}){let{border:d,diameter:f}=si[e],p=f+d*2,m=Math.PI*f,ee=m*oi,h=n!=null,g=(0,E.useId)(),te=ln(),y=(0,E.useRef)(null),b=(0,E.useMemo)(()=>i(y,l),[l]),S=h&&typeof n==`string`&&s==null,C=s??(typeof n==`string`?n:void 0)??te(`@astryx.spinner.loading`),ne=(0,E.use)(wr),re=u[`aria-hidden`]===!0||u[`aria-hidden`]===`true`,w=u.role;ie(y,!ne&&!re&&(w==null||w===`progressbar`),``,{skipFirstRender:!0,fallbackText:C});let T=(0,j.jsxs)(`span`,{ref:h?void 0:b,role:`progressbar`,"aria-label":S?void 0:C,"aria-labelledby":S?g:void 0,"data-testid":h?void 0:c,...h?{}:u,...x(h?``:v(`spinner`,{size:e,shade:t}),_(di.spinner,!h&&fi[e],!h&&pi[t],!h&&r),h?void 0:a,{...h?{}:o,width:`var(${li}, ${p}px)`,height:`var(${li}, ${p}px)`}),children:[(0,j.jsx)(`svg`,{width:0,height:0,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x15r89dc x6v0vjy x7yyq19 x1rea2x4`,children:(0,j.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:f/2,strokeWidth:d,..._(di.circle,di.track,mi[t])})}),(0,j.jsx)(`span`,{ref:ai,"aria-hidden":`true`,..._(di.rotor,ri.turn),children:(0,j.jsx)(`svg`,{width:p,height:p,className:`xlp1x4z x1lliihq x15r89dc x6v0vjy x7yyq19 x1rea2x4`,children:(0,j.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:f/2,strokeWidth:d,strokeDasharray:`${ee} ${m-ee}`,className:`xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 xtve3lm x9tu13d xdv9ggb`})})})]});return h?(0,j.jsxs)(`div`,{ref:b,"data-testid":c,...u,...x(v(`spinner`,{size:e,shade:t}),_(di.wrapper,fi[e],pi[t],r),a,o),children:[T,typeof n==`string`?(0,j.jsx)(ti,{id:g,type:`body`,weight:`bold`,children:n}):n]}):T}hi.displayName=`Spinner`;var gi={"--astryx-press-alpha":`var(--astryx-press-alpha)`,__varGroupHash__:`x1qqxm5o`};h[`--duration-exit`],`${h[`--duration-exit`]}${S.duration}`;var _i=gi[`--astryx-press-alpha`];`${b[`--color-overlay-hover`]}${b[`--color-overlay-hover`]}`,`${b[`--color-overlay-pressed`]}${b[`--color-overlay-pressed`]}`,`${b[`--color-neutral`]}${b[`--color-neutral`]}`,`${b[`--color-overlay-pressed`]}${_i}`,g[`--ease-exit`];var vi={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 yi(){return(0,E.useEffect)(()=>ne(),[]),T}function bi(e){return e!=null&&typeof e!=`boolean`&&e!==``}gi[`--astryx-press-alpha`],`${b[`--color-overlay-hover`]}${b[`--color-overlay-hover`]}`,`${b[`--color-overlay-pressed`]}${b[`--color-overlay-pressed`]}`,h[`--duration-exit`],`${h[`--duration-exit`]}${S.duration}`,g[`--ease-exit`],`${te[`--border-width`]}`;var xi={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}},Si={control:{k6sLGO:`x1mrddfy`,$$css:!0}},Ci={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}},wi=l(`LinkContext`,1,null);wi.displayName=`LinkContext`;function Ti(e){function t({href:t,to:n,ref:r,...i}){return!w(t)||!w(n)?(0,E.createElement)(`a`,{ref:r,...i}):e===`a`?(0,E.createElement)(`a`,{ref:r,...i,href:t}):(0,E.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 Ei(e){let t=(0,E.use)(wi),n=e??t?.component??`a`;return(0,E.useMemo)(()=>Ti(n),[n])}export{Cr as A,Ne as B,Ar as C,zr as D,Mr as E,mn as F,ge as G,Oe as H,vn as I,oe as J,he as K,ln as L,un as M,R as N,Er as O,hn as P,cn as R,Rr as S,Pr as T,Te as U,Fe as V,O as W,Fr as _,bi as a,Dr as b,hi as c,Q as d,Xr as f,Br as g,Vr as h,xi as i,Sr as j,Nr as k,ti as l,qr as m,Si as n,yi as o,Yr as p,se as q,Ci as r,vi as s,Ei as t,ei as u,Tr as v,Or as w,jr as x,Ir as y,tn as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-D3jfb0Ew.js";import{c as n}from"./focusOutline.stylex-C8peqGyQ.js";var r=e(t(),1),i=new Map;function a(e,t){if(typeof window.matchMedia!=`function`)return()=>{};let r=i.get(e);if(r==null){let t=new Set;r={readers:t,stop:n(window,e,()=>{for(let e of Array.from(t))e()})},i.set(e,r)}let a=r;return a.readers.add(t),()=>{a.readers.delete(t),a.readers.size===0&&i.get(e)===a&&(a.stop(),i.delete(e))}}function o(e,t=!1){let n=(0,r.useCallback)(t=>a(e,t),[e]),i=(0,r.useCallback)(()=>typeof window.matchMedia==`function`?window.matchMedia(e).matches:t,[e,t]),o=(0,r.useCallback)(()=>t,[t]);return(0,r.useSyncExternalStore)(n,i,o)}export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{$t as r,At as i,Ct as a,Dt as o,E as s,Et as c,Ft as l,Gt as u,H as d,It as f,Jt as p,K as m,Kt as h,Lt as g,Mt as _,N as v,Nt as y,Ot as b,Rt as x,S,St as C,Tt as w,Ut as T,V as E,Wt as D,X as O,Xt as k,Y as A,Yt as j,cn as M,ct as N,dn as P,en as F,i as ee,it as te,jt as I,k as L,kt as R,ln as ne,mn as re,ot as ie,sn as ae,t as oe,tn as se,tt as ce,v as le,w as z,wt as ue,xt as B,yt as de,zt as fe}from"./useLayerDismissal-DhnWLnTJ.js";import{E as pe,L as me,O as he,V as ge,a as _e,h as ve,s as ye}from"./focusOutline.stylex-C8peqGyQ.js";var V=e(t(),1),be=r(),xe=F(`TooltipPresentInterestContext`,1,null);xe.displayName=`TooltipPresentInterestContext`;function H(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:e.isContentEditable}function Se(e,t){return U(e.target,e.currentTarget,t)}function U(e,t,n){return n===`always`||n!==`never`&&t!=null&&(e===t||H(t))}function Ce(){let e=!1;return{focusIn(t,n){return e=Se(t,n),e},focusOut(t,n){return!e&&!Se(t,n)?!1:(e=!1,!0)}}}function we(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Te(e,t){e.style.anchorName=t.join(`, `)}function Ee(e,t){let n=we(e);n.includes(t)||(n.push(t),Te(e,n))}function De(e,t){let n=we(e);n.includes(t)&&Te(e,n.filter(e=>e!==t))}var W=ae(`layer/gesture-counter/state`,1,()=>({gesture:0,clickedGesture:null,contextMenuGesture:null,pressPointerId:null,releasingGesture:null,isDispatchingRelease:!1,releasingPointerType:``,claimedPress:null,isListening:!1,unsubscribePress:null}));function Oe(){W.releasingGesture===void 0&&(W.releasingGesture=null),W.isDispatchingRelease===void 0&&(W.isDispatchingRelease=!1),W.releasingPointerType===void 0&&(W.releasingPointerType=``)}function ke(){W.gesture+=1}function G(e){Oe(),W.isDispatchingRelease=!1,x(),ke(),W.pressPointerId=e.pointerId;let t=e.view??document.defaultView;if(W.unsubscribePress!=null||t==null)return;let n=[T(t,`pointerup`,Ae,{first:!0}),T(t,`pointercancel`,Ae,{first:!0}),T(t,`contextmenu`,K,{first:!0})];W.unsubscribePress=()=>{for(let e of n)e()}}function Ae(e){if(Oe(),e.type===`pointerup`){let t=W.gesture;W.releasingGesture=t,W.releasingPointerType=e.pointerType,W.isDispatchingRelease=!0,setTimeout(()=>{W.releasingGesture===t&&(W.releasingGesture=null)},0)}W.pressPointerId=null,W.unsubscribePress?.(),W.unsubscribePress=null}function K(){W.contextMenuGesture=W.gesture}function q(e){Oe(),W.clickedGesture=W.gesture,W.releasingGesture===W.gesture&&!(W.isDispatchingRelease&&e.detail===0)&&(W.releasingGesture=null)}function je(){W.isDispatchingRelease=!1}function J(){if(Oe(),W.isListening||typeof document>`u`)return;W.isListening=!0;let e=document.defaultView;e!=null&&(T(e,`pointerdown`,G,{first:!0}),e.addEventListener(`pointerup`,je)),document.addEventListener(`keydown`,ke,!0),document.addEventListener(`click`,q,!0)}function Me(){return J(),W.gesture}function Ne(){return J(),W.clickedGesture===W.gesture}function Pe(){return J(),W.releasingGesture===null||W.releasingGesture!==W.gesture?!1:!(W.releasingPointerType===`touch`&&fe())}function Fe(e,t){let n=!1,r=()=>{n||(n=!0,s(),t())},i=e.defaultView,a=i==null?()=>{}:T(i,`click`,e=>{W.isDispatchingRelease&&e.detail===0||(W.releasingGesture===W.gesture&&(W.releasingGesture=null),r())},{first:!0}),o=setTimeout(r,0);function s(){n=!0,a(),clearTimeout(o)}return s}function Ie(){return J(),W.pressPointerId!==null}function Le(e,{releaseTarget:t=null,onRelease:n}={}){J();let r=W.pressPointerId,i=e.ownerDocument.defaultView;if(r===null||i==null||W.claimedPress!==null&&W.claimedPress.layer===e&&W.claimedPress.pointerId===r&&W.claimedPress.gesture===W.gesture)return;let a={layer:e,pointerId:r,gesture:W.gesture};W.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,W.claimedPress===a&&(W.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(T(i,`pointermove`,p),T(i,`gotpointercapture`,g),T(i,`pointerup`,_),T(i,`pointercancel`,_),T(i,`scroll`,f),T(i,`resize`,f),()=>e.removeEventListener(`toggle`,v,!0))}function Re(e){J(),W.contextMenuGesture===W.gesture&&Le(e)}var ze=`data-astryx-layer-portal-boundary`,Be=`external`;function Ve(e){return e.getAttribute(ze)===Be}var He=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 Ue(e){if(!e)return null;let t=null,n=!1,r=e;for(;r;){let e=r.tagName.toLowerCase();if(e===`dialog`)break;p(r)&&(n=!0),He.has(e)?(t=r,n=!1):t!==null&&Ve(r)&&!n&&(t=r),r=r.parentElement}return t?.parentElement??null}var We={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))`},Ge=`data-layer-anchored`;function Ke(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 qe=[`transform`,`translate`,`scale`,`rotate`],Je=[1,0,0,1,0,0],Ye=64,Xe=1/2048,Ze=1/32;function Qe(e){return qe.some(t=>{let n=e.getPropertyValue(t);return n!==``&&n!==`none`})}function $e(e){return e!==``&&e!==`none`}function et(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 tt(e){let t=e.getPropertyValue(`translate`),n=e.getPropertyValue(`rotate`),r=e.getPropertyValue(`scale`),i=e.getPropertyValue(`transform`),a=Je;if($e(t)){let[e=`0`,n=`0`,r]=t.split(` `);if(r!=null||!t.split(` `).every(e=>e.endsWith(`px`)))return null;a=et(a,[1,0,0,1,parseFloat(e),parseFloat(n)])}if($e(n)){if(!/^-?[\d.]+deg$/.test(n))return null;let e=parseFloat(n)*Math.PI/180,t=Math.cos(e),r=Math.sin(e);a=et(a,[t,r,-r,t,0,0])}if($e(r)){let[e=`1`,t=e,n]=r.split(` `);if(n!=null)return null;a=et(a,[parseFloat(e),0,0,parseFloat(t),0,0])}if($e(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=et(a,e)}return a}function nt([e,t,n,r]){return t===0&&n===0&&e!==0&&r!==0}function rt(e){return(e.currentCSSZoom??1)===1&&!(e.getAnimations?.()??[]).some(e=>e.pending)}function it(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 at(e,t,[n,,,r]){let{width:i,height:a}=it(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+Ze<s}function ot(e){let t=Math.round(e*Ye)/Ye;return Math.abs(t-e)<Xe?t:e}function st(e,t,n,r){let[i,a,o,s,c,l]=r,u=nt(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=ot(y),S=ot(b);return new DOMRect(x,S,ot(y+d)-x,ot(b+f)-S)}function ct(e){let t=e.ownerDocument.defaultView,n=t?.getComputedStyle(e);if(n==null||!Qe(n))return e.getBoundingClientRect();let r=tt(n);if(r!=null&&nt(r)&&rt(e)){let t=e.getBoundingClientRect();if(at(t,n,r))return st(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`||qe.includes(e))&&(a[t%a.length]??0)>0)){let t=e.getBoundingClientRect();return r==null?t:st(t,e,n,r)}let o=qe.map(t=>[t,e.style.getPropertyValue(t),e.style.getPropertyPriority(t)]);for(let t of qe)e.style.setProperty(t,`none`,`important`);let s=e.getBoundingClientRect(),c=t?.getComputedStyle(e),l=c!=null&&Qe(c)?tt(c):null,u=c!=null&&l!=null?st(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 lt(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=T(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 dt(e){return y(e.ownerDocument),l(()=>ut(e))}var ft=`--_layer-keyboard-inset-block-end`;function pt(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 mt(e){return e==null?null:{insetBlockStart:-e,insetBlockEnd:e}}function ht(e,t){let[n,r]=(0,V.useState)(null),[i,a]=(0,V.useState)(null),[s,c]=(0,V.useState)(null),l=(0,V.useRef)(null),u=(0,V.useRef)(null),d=(0,V.useRef)(null),f=(0,V.useRef)(null);re(()=>{let n=t.current,i=n?.ownerDocument.defaultView;if(!e||n==null||i==null)return;let s=i,p=!1,h=ce(i),g=n,_=0,v=()=>{_+=1},y=()=>{let e=t.current;return e==null||e===g?!1:(g.removeEventListener(`pointerdown`,P,!0),g.removeEventListener(`touchstart`,v,{capture:!0}),g.removeEventListener(`wheel`,v,{capture:!0}),g=e,g.addEventListener(`pointerdown`,P,!0),g.addEventListener(`touchstart`,v,{capture:!0,passive:!0}),g.addEventListener(`wheel`,v,{capture:!0,passive:!0}),!0)},b=(e,t=d.current,n=null)=>{p||l.current===e&&d.current===t&&u.current===n||(l.current=e,d.current=t,u.current=n,(0,be.flushSync)(()=>{r(e),c(t),a(n)}),y())},x=e=>{let t=e>0?e+10:0,n=Math.max(t,d.current??0);if(b(null,n>0?n:null),e<=0)return!1;let r=o(i),a=ct(g),s=Ke(a,r,e);if(s==null)return!1;b(s);let c=ct(g);if(c.top>a.top+1&&Math.abs(c.bottom-a.bottom)>1){b(s,d.current,c.top-a.top);let t=ct(g);if(Math.abs(t.top-a.top)>1){b(s);let t=Ke(c,r,e);t!=null&&b(t)}}let l=r-e-10;return ct(g).bottom>l+1?(b(null),!1):!0},S=e=>{if(y(),!g.hasAttribute(`data-layer-anchored`)){b(null,null);return}if(!x(e))return;let t=g.ownerDocument.activeElement;if(t!=null&&t!==g&&g.contains(t)){let e=_;i.requestAnimationFrame(()=>i.requestAnimationFrame(()=>{!p&&_===e&&pt(g,t)}))}},C=null,w=()=>{C!=null&&(i.clearTimeout(C),C=null)},E=new Set,D=null,O=null,k=null,A=()=>{let e=[T(s,`pointerup`,F),T(s,`pointercancel`,F)];k=()=>{for(let t of e)t()}},j=()=>{k?.(),k=null},M=()=>{O?.(),O=null,E.clear(),j();let e=D;D=null,e?.()};function P(e){v(),E.size===0&&A(),E.add(e.pointerId)}function F(e){E.has(e.pointerId)&&(e.type===`pointercancel`?M():O??=lt(g,{onClicked:M,onNoClick:M}))}g.addEventListener(`pointerdown`,P,!0),g.addEventListener(`touchstart`,v,{capture:!0,passive:!0}),g.addEventListener(`wheel`,v,{capture:!0,passive:!0});let ee=h.subscribe(e=>{if(w(),e.animated&&e.to>e.from){let t=e.start+(h.profile===`chromium`&&e.curve!=null?e.curve.durationMs:m.keyboardNotificationMs);C=i.setTimeout(()=>{C=null,S(e.to)},Math.max(0,t-i.performance.now()))}else E.size>0?D=()=>S(e.to):S(e.to)});N(i)>0&&i.queueMicrotask(()=>{p||S(N(i))});let te=null;return f.current=()=>{!y()||te!=null||N(i)<=0||(te=i.requestAnimationFrame(()=>{te=null,!(p||C!=null)&&(E.size>0?D=()=>S(N(i)):S(N(i)))}))},()=>{p=!0,f.current=null,te!=null&&i.cancelAnimationFrame(te),ee(),w(),O?.(),g.removeEventListener(`pointerdown`,P,!0),g.removeEventListener(`touchstart`,v,{capture:!0}),g.removeEventListener(`wheel`,v,{capture:!0}),j(),l.current!=null&&(l.current=null,r(null)),u.current!=null&&(u.current=null,a(null)),d.current!=null&&(d.current=null,c(null))}},[e,t]);let p=(0,V.useCallback)(()=>{f.current?.()},[]);return{cap:e?n:null,lift:e?i:null,inset:e?s:null,followLayerElement:p}}var gt=`--_astryx-layer-enter-x`,_t=`--_astryx-layer-enter-y`,vt=`--_astryx-layer-enter-origin`,yt=`--_astryx-layer-enter-gap`,bt=(e,t)=>Math.min(t,Math.max(0,e));function xt(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=bt(n-e.left,e.width),a=bt(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 St(e,t){let n=t.getBoundingClientRect();return xt(ct(e),n)}var Ct=e=>`${Math.round(e*1e3)/1e3}px`;function wt(e,t){e.style.setProperty(gt,t==null?`initial`:String(t.x)),e.style.setProperty(_t,t==null?`initial`:String(t.y)),e.style.setProperty(vt,t==null?`initial`:`${Ct(t.originX)} ${Ct(t.originY)}`);let n=t?.gap==null?null:Math.floor(t.gap*1e3)/1e3;e.style.setProperty(yt,n==null?`initial`:`${n}px`)}var Tt=[[`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 Et(e){return typeof e==`number`?`${e}px`:e}function Dt(e){let t={};if(e)for(let[n,r]of Tt){let i=e[n];i!=null&&i!==``&&(t[r]=Et(i))}return t}var Ot=`--_astryx-layer-clearance`;function kt(e,t,n){return`--astryx-layer-slide-${e}-${t}-${n}`}var At=`var(${Ot}, 0px)`;function jt(e,t,n){return`${e}:${t};${e}:${n};`}function Mt(e){return jt(e,We.gutterBlockFallback,We.gutterBlock)}function Nt(e){return jt(e,We.gutterInlineFallback,We.gutterInline)}var Pt={above:`below`,below:`above`,start:`end`,end:`start`};function Ft(e){switch(e){case`above`:return`self-block-start span-all`;case`below`:return`self-block-end span-all`;case`start`:return`self-inline-start span-all`;case`end`:return`self-inline-end span-all`}}function It(e){switch(e){case`above`:return`margin-block-end:${At};${Mt(`margin-block-start`)}`;case`below`:return`margin-block-start:${At};${Mt(`margin-block-end`)}`;case`start`:return`margin-inline-end:${At};${Nt(`margin-inline-start`)}`;case`end`:return`margin-inline-start:${At};${Nt(`margin-inline-end`)}`}}function Lt(e){return e===`above`||e===`below`?`${Nt(`margin-inline-start`)}${Nt(`margin-inline-end`)}inset-inline-start:0;inset-inline-end:0;`:`${Mt(`margin-block-start`)}${Mt(`margin-block-end`)}inset-block-start:0;inset-block-end:0;`}function Rt(e,t,n){let r=n===`same`?e:Pt[e];return`@position-try ${kt(e,t,n)}{position-area:${Ft(r)};${It(r)}${Lt(r)}}`}var zt=[`above`,`below`,`start`,`end`],Bt=[`start`,`center`,`end`];function Vt(e){return e===`above`||e===`start`?`unsafe self-end`:`unsafe self-start`}function Ht(e){return`--astryx-layer-beside-${e}`}function Ut(e){return`--astryx-layer-fit-${e}`}function Wt(e){return`@position-try ${Ht(e)}{position-area:${Ft(e)};${It(e)}${Lt(e)}inline-size:max-content;align-self:normal;justify-self:${Vt(e)};}`}function Gt(e){return`calc(100% - ${At} - ${e})`}function Kt(e,t){return`calc((${e} - anchor-size(block)) / 2 - ${At} - ${t} - 1px)`}function qt(e){let t=(e,t)=>`max(${Gt(t)}, ${Kt(e,t)})`,n=jt(`block-size`,t(`100vh`,We.gutterBlockFallback),t(`100dvb`,We.gutterBlock));return`@position-try ${Ut(e)}{position-area:${Ft(e)};${It(e)}${Lt(e)}${n}align-self:${Vt(e)};}`}function Jt(e){if(e!==`above`&&e!==`below`)return``;let t=e===`above`?`below`:`above`;return`flip-block, ${Ht(`end`)}, ${Ht(`start`)}, ${Ut(e)}, ${Ut(t)}`}function Yt(){return[...zt.flatMap(e=>Bt.flatMap(t=>[Rt(e,t,`same`),Rt(e,t,`opposite`)])),Wt(`end`),Wt(`start`),qt(`above`),qt(`below`)].join(``)}var Xt=`astryx-layer-slide-rules`;function Zt(e){if(e.getElementById(`astryx-layer-slide-rules`))return;let t=e.createElement(`style`);t.id=Xt,t.textContent=Yt(),e.head.appendChild(t)}var Qt=M(`layer/popover-operations/own-operations-by-document`,1),$t=M(`layer/popover-operations/browser-hides-by-document`,1),en=M(`layer/popover-operations/settled-callbacks-by-document`,1);function tn(e,t,n){e.set(t,Math.max(0,(e.get(t)??0)+n))}function nn(e){return(Qt.get(e)??0)>0||($t.get(e)??0)>0}function rn(e){!nn(e)&&en.has(e)&&queueMicrotask(()=>an(e))}function an(e){if(nn(e))return;let t=en.get(e);if(t!=null){en.delete(e);for(let e of t)queueMicrotask(e)}}function on(e,t){tn(Qt,e,1);try{t()}finally{tn(Qt,e,-1),rn(e)}}function sn(e){return(Qt.get(e)??0)>0}function cn(e){return($t.get(e)??0)>0}var ln=ne(`layer/popover-operations/browser-hides-in-flight`,1);function un(e){if(ln.has(e))return;ln.add(e);let t=e.ownerDocument;tn($t,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),ln.delete(e),tn($t,t,-1),rn(t))};e.addEventListener(`toggle`,a),r=n.setTimeout(a,0)}function dn(e,t){if(!nn(e)){t();return}let n=en.get(e);n==null?en.set(e,[t]):n.push(t)}var fn=new Set([`effect`,`timeline`,`rangeStart`,`rangeEnd`,`playbackRate`,`startTime`,`currentTime`]);function pn(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 mn(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}:${mn(t)??String(t)}`).join(`;`):null}function hn(e,t){if(e===t)return!1;let n=mn(e);return n==null||n!==mn(t)}function gn(e){let t=e.effect,n={};for(let t of pn(e))n[t]=e[t];let r={};if(t!=null)for(let e of pn(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 _n(e,t,n){e[t]=n}function vn(e,t){for(let n of pn(e))n in t.effectValues&&hn(t.effectValues[n],e[n])&&_n(e,n,t.effectValues[n]);if(t.timing!=null){let n=e.getTiming(),r={};for(let[e,i]of Object.entries(t.timing))hn(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 yn(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 bn(e,t){let n=e.effect;n!=null&&vn(n,t);let r=e;for(let n of[`timeline`,`rangeStart`,`rangeEnd`])n in t.values&&hn(t.values[n],r[n])&&_n(e,n,t.values[n]);for(let n of pn(e))!fn.has(n)&&n in t.values&&hn(t.values[n],r[n])&&_n(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`&&yn(e,t.animation)):e.startTime=a}function xn(e){e.target!=null&&e.keyframes!=null&&bn(e.target.animate(e.keyframes,{pseudoElement:e.pseudoElement??void 0}),e)}function Sn(e){return typeof CSSTransition<`u`&&e instanceof CSSTransition}function Cn(e){return typeof CSSAnimation<`u`&&e instanceof CSSAnimation}function wn(e){let t=e.effect?.getComputedTiming().endTime;t!=null&&Number.isFinite(Number(t))&&e.playbackRate!==0&&e.finish()}function Tn(e,t,n){let r=e.getAnimations({subtree:!0}),i=new Set(r),a=[];for(let e of t)i.has(e.animation)||(Sn(e.animation)?xn(e):a.push(e));let o=r.filter(e=>(Cn(e)||Sn(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):bn(e,a.splice(r,1)[0])}for(let e of s){let t=e.animationName??``,n=a.findIndex(e=>e.name===t);n===-1?wn(e):bn(e,a.splice(n,1)[0])}}function En(e,t){if(typeof e.getAnimations!=`function`){t();return}let n=e.getAnimations({subtree:!0}),r=n.map(gn);t(),Tn(e,r,new Set(n))}var Dn=F(`LayerContext`,1,null);Dn.displayName=`LayerContext`;function On(){return(0,V.use)(Dn)}var Y=n(),kn={keoZOQ:`x1vhfslr`,k1K539:`x119uzjn`,$$css:!0},An={keoZOQ:`x1lhixnp`,k1K539:`xlm3tn6`,$$css:!0},jn={k71WvV:`xa3ewmy`,$$css:!0},Mn={keTefX:`x1cytvie`,$$css:!0},X={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=>[kn,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],placementAbove:e=>[An,{"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],placementEnd:e=>[jn,{keTefX:e==null?e:`x4lel18`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],placementStart:e=>[Mn,{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},gutterInlineEnd:{k71WvV:`x144kxal`,$$css:!0},gutterInlineStart:{keTefX:`xpdk1p0`,$$css:!0},gutterBlockEnd:{k1K539:`x3z50q0`,$$css:!0},gutterBlockStart:{keoZOQ:`x1j6tnbc`,$$css:!0}};function Nn(e){return typeof e==`number`?`${e}px`:e}function Pn(e){En(e,()=>{let t=e.style.display;e.style.display=`none`,e.getBoundingClientRect(),e.style.display=t})}function Fn(e){return e.playState===`running`&&e.effect?.getComputedTiming().endTime!==1/0}function In(e){return e==null||typeof e.getAnimations!=`function`?[]:e.getAnimations({subtree:!0}).filter(Fn)}function Ln(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 Rn(e){return(e.ownerDocument.defaultView?.getComputedStyle(e))?.getPropertyValue(`animation-name`).trim()||`none`}function zn({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 Bn(e,t){if(t==null)return null;let n=t.getBoundingClientRect(),r=e.ownerDocument.documentElement.clientHeight,i={anchor:n,layer:ct(e)};return zn(i,r)?(Pn(e),null):i}function Vn(e,t,n){t==null||!e.hasAttribute(`data-layer-anchored`)?wt(e,null):wt(e,n==null?St(e,t):xt(n.layer,n.anchor))}var Hn=150;function Un(e){let t=[];for(let n=e;n;n=B(n)){let e=n.getRootNode();_(e)&&!t.includes(e)&&t.push(e)}return t}function Wn(e,t,n){let r=null,i=null,a=()=>{r!==null&&(e.cancelAnimationFrame(r),r=null),i!==null&&(e.clearTimeout(i),i=null)},o=()=>{a(),r=e.requestAnimationFrame(()=>{r=null,i=e.setTimeout(()=>{i=null,r=e.requestAnimationFrame(()=>{r=null,n()})})})},s=e.onscrollend!==void 0,c=e=>de(e.target,t),l=t=>{c(t)&&(a(),s||(i=e.setTimeout(()=>{i=null,o()},Hn)))},u=e=>{c(e)&&o()},d=[T(e,`scroll`,l)];s&&d.push(T(e,`scrollend`,u));let f={capture:!0,passive:!0},p=Un(t);for(let e of p)e.addEventListener(`scroll`,l,f),s&&e.addEventListener(`scrollend`,u,f);return()=>{for(let e of d)e();for(let e of p)e.removeEventListener(`scroll`,l,f),e.removeEventListener(`scrollend`,u,f);a()}}function Gn(e,t,n){let r=e.ownerDocument.defaultView;if(!r)return()=>{};let i=()=>{n()&&Bn(e,t)},a=null;if(typeof ResizeObserver<`u`){a=new ResizeObserver(i),a.observe(e);for(let t of Array.from(e.children))a.observe(t);a.observe(t)}r.addEventListener(`resize`,i);let o=Wn(r,t,i);return()=>{a?.disconnect(),o(),r.removeEventListener(`resize`,i)}}function Kn(e){try{return e.matches(`:popover-open`)}catch{return!1}}function qn(e){if(e.getClientRects().length===0)return!1;let t=e.closest(`dialog`);return t==null||t.open||Kn(t)}function Jn(e,t){if(typeof document.getAnimations!=`function`)return t(),()=>{};let n=!1,r=requestAnimationFrame(()=>{if(n)return;let r=document.getAnimations().filter(t=>{let n=t.effect instanceof KeyframeEffect?t.effect.target:null;return!(n instanceof Node)||!(n===e||n.contains(e))||t.timeline!==document.timeline?!1:Fn(t)});r.length===0?t():Promise.all(r.map(async e=>e.finished.catch(()=>{}))).then(()=>{n||t()})});return()=>{n=!0,cancelAnimationFrame(r)}}function Yn(){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 Xn=()=>null;function Zn({mountStore:e,renderLayer:t,sentinelRef:n}){let r=(0,V.useSyncExternalStore)(e.subscribe,e.get,Xn),i=(0,Y.jsx)(`template`,{ref:n});if(r===null)return(0,Y.jsx)(Y.Fragment,{children:i});let a=t(r);return(0,Y.jsxs)(Y.Fragment,{children:[i,r.portalTarget?(0,be.createPortal)(a,r.portalTarget):a]})}function Qn(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 $n(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function er(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`,r=`${kt(e,t,`same`)}, ${kt(e,t,`opposite`)}`;if(t!==`center`)return`${n}, ${r}`;if(e===`above`||e===`below`){let[t,i]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${i} span-left, ${i} span-right, ${r}`}let[i,a]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${i} span-top, ${i} span-bottom, ${a} span-top, ${a} span-bottom, ${r}`}function tr(e,t,n){if(n||t===`center`)return{};let r=t===`start`?`unsafe self-start`:`unsafe self-end`;return e===`above`||e===`below`?{justifySelf:r}:{alignSelf:r}}function nr(e,t){return e===`above`||e===`below`?t===`start`?[X.gutterInlineEnd]:t===`end`?[X.gutterInlineStart]:[X.gutterInlineStart,X.gutterInlineEnd]:t===`start`?[X.gutterBlockEnd]:t===`end`?[X.gutterBlockStart]:[X.gutterBlockStart,X.gutterBlockEnd]}function rr(e,t){return(0,V.useMemo)(()=>({onPointerDown:n=>{let r=n.currentTarget,i=r.ownerDocument,a=r.getRootNode(),o=(_(a)?a:i).getElementById(e);if(!t&&(o==null||!Kn(o)))return;r.setAttribute(`popovertarget`,e);let s=()=>{i.removeEventListener(`pointerup`,s),i.removeEventListener(`pointercancel`,s),i.defaultView?.setTimeout(()=>{r.removeAttribute(`popovertarget`)},0)};i.addEventListener(`pointerup`,s),i.addEventListener(`pointercancel`,s)},onClickCapture:e=>{let t=e.currentTarget;t.hasAttribute(`popovertarget`)&&(e.preventDefault(),t.removeAttribute(`popovertarget`))}}),[e,t])}function ir(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,p=t===`context`?e.onCloseStart:void 0,m=D(p),_=(0,V.useId)(),v=`--astryx-layer-${_.replace(/:/g,``)}`,[y,b]=(0,V.useState)(!1),[x,S]=(0,V.useState)(!0),C=(0,V.useRef)(!0),w=(0,V.useCallback)(e=>{C.current!==e&&(C.current=e,S(e))},[]),T=On()?.inset,O=(0,V.useRef)(null),A=(0,V.useRef)(null),j=(0,V.useRef)(null),M=(0,V.useRef)(null),N=(0,V.useRef)(null),P=(0,V.useRef)(null),[F]=(0,V.useState)(Yn),[ee,te]=(0,V.useState)(0),I=(0,V.useRef)(!1),L=(0,V.useRef)(null),R=(0,V.useRef)(!1),ne=(0,V.useRef)(null),ie=(0,V.useRef)(!1),ae=(0,V.useCallback)(e=>{let t={};ne.current=t;let n=()=>{if(ne.current!==t)return;ne.current=null;let e=j.current;!R.current&&e!=null&&De(e,v)},r=ie.current?In(e):[];r.length===0?n():Promise.all(r.map(async e=>e.finished.catch(()=>void 0))).then(n)},[v]),oe=(0,V.useRef)(null),ce=(0,V.useRef)(null),le=(0,V.useRef)(null),z=(0,V.useRef)(null),ue=(0,V.useRef)(null),B=(0,V.useCallback)(()=>{ue.current?.(),ue.current=null},[]),de=(0,V.useCallback)(()=>{let e=Me();return oe.current===e},[]),fe=(0,V.useCallback)(e=>{if(typeof e.showPopover==`function`){let t=e.ownerDocument,n=cn(t);try{on(t,()=>{let t=j.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 A.current=e,!0},[]),pe=(0,V.useCallback)(e=>{if(t!==`context`)return!0;let n=P.current;if(n===null)return!1;let r=n.portalTarget??N.current?.parentElement??null;return e.parentElement===r},[t]),me=(0,V.useCallback)(()=>{if(t!==`context`)return;let e=N.current,n=e?.parentElement??null;if(!e||!n)return;Zt(e.ownerDocument);let r=Ue(n),i=I.current||R.current,a={portalTarget:r,portalStyle:r==null?{}:i?Qn(e,r):null},o=P.current!==null;P.current=a,F.set(a),o&&te(e=>e+1)},[t,F]),he=(0,V.useCallback)(e=>{let t=P.current,n=N.current;if(t===null||t.portalTarget===null||t.portalStyle!==null||n===null)return;let r=Qn(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};P.current=i,F.set(i)},[F]),_e=(0,V.useCallback)(()=>{t===`context`&&a&&!o&&(P.current=null,F.set(null))},[t,a,o,F]),ve=(0,V.useCallback)(()=>{if(de()&&ce.current===j.current)return;if(i&&!R.current&&Pe()){let e=O.current?.ownerDocument??document;I.current=!0,L.current?.(),L.current=Fe(e,()=>{L.current=null,I.current&&(I.current=!1,Te.current())});return}let e=le.current;e!=null&&R.current&&e.popover===O.current&&e.trigger!==j.current&&(e.moved=!0,A.current=null,R.current=!1,B());let t=O.current,r=t&&pe(t)?t:null;if(!r)I.current=!0,me();else if(!R.current){let e=()=>{I.current=!0,dn(r.ownerDocument,()=>{I.current&&(I.current=!1,Te.current())})};if(sn(r.ownerDocument)){e();return}let t=Ln(r),a=Rn(r);he(r);let o=j.current;if(o!=null&&Ee(o,v),!fe(r)){o!=null&&ne.current==null&&De(o,v),e();return}let u=a!==`none`&&a!==Rn(r);ie.current=t||u,i&&(Re(r),c!=null&&(B(),ue.current=c(r)));let d=s?Bn(r,j.current):null;l||Vn(r,j.current,d),R.current=!0,b(!0),n?.()}},[v,n,s,l,i,c,B,me,he,fe,pe,de]),ye=(0,V.useRef)(null),be=(0,V.useRef)(null),xe=(0,V.useRef)(null),H=(0,V.useCallback)(()=>{ye.current?.(),ye.current=null,be.current=null,xe.current&&=(xe.current.cancelled=!0,null)},[]),Se=(0,V.useCallback)(()=>{ye.current=null,be.current=null},[]),U=(0,V.useCallback)(()=>{H();let e=t===`context`?j.current:null;if(!e||qn(e)||typeof ResizeObserver>`u`||typeof document.getAnimations!=`function`){ve();return}let n=e,r=e.closest(`dialog`),i=()=>{},a=!1,o=()=>{},s=()=>{},c=()=>{o(),d?.disconnect(),s(),r?.removeEventListener(`toggle`,u)},l=()=>{a=!0,c(),i=Jn(e,()=>{Se(),ve()})};function u(){!a&&qn(n)&&l()}let d=typeof IntersectionObserver>`u`?null:new IntersectionObserver(u);o=se(e,u),a?c():(d?.observe(e),r&&(s=E(r,{attributes:!0,attributeFilter:[`open`]},u),r.addEventListener(`toggle`,u))),ye.current=()=>{a=!0,c(),i()},be.current=e},[t,ve,H,Se]),Ce=(0,V.useCallback)(()=>{if(L.current?.(),L.current=null,H(),I.current=!1,R.current){let e=O.current;m.current?.(),A.current=null,R.current=!1,B(),e&&(typeof e.hidePopover==`function`?on(e.ownerDocument,()=>{e.hidePopover()}):e.style.display=`none`),b(!1),r?.()}ae(O.current),_e()},[r,_e,ae,H,B,m]),Te=(0,V.useRef)(U);u(Te,U);let W=(0,V.useRef)(null),Oe=(0,V.useCallback)(e=>{if(!e){let e=j.current;if(!e)return;let t={element:e,cancelled:!1};M.current=t,queueMicrotask(()=>{t.cancelled||j.current!==e||(De(e,v),j.current=null,be.current===e&&H(),s&&R.current&&(W.current?.(),W.current=null))});return}M.current?.element===e&&(M.current.cancelled=!0,M.current=null),j.current&&j.current!==e&&De(j.current,v),e&&(R.current||ne.current!=null)&&Ee(e,v);let t=j.current;if(j.current=e,s&&R.current&&e!==t){W.current?.(),W.current=null;let t=O.current;t&&(W.current=Gn(t,e,()=>O.current===t&&j.current===e),Bn(t,e))}let n=be.current;if(n&&n!==e){H();let t={cancelled:!1};xe.current=t,queueMicrotask(()=>{t.cancelled||(xe.current=null,j.current===e&&!R.current&&Te.current())})}},[v,H,s]),ke=(0,V.useCallback)(e=>{if(z.current?.(),Ne())return;oe.current=Me(),ce.current=j.current;let t=e.defaultView,n=null,r=()=>{oe.current=null,ce.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),z.current===r&&(z.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,z.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),z.current=r},[]);(0,V.useEffect)(()=>(Me(),()=>{z.current?.(),ye.current?.(),L.current?.(),L.current=null,B()}),[B]);let G=(0,V.useCallback)(e=>{let t=e,n=e.currentTarget;if(t.newState!==`closed`||n==null)return;if(R.current){un(n),m.current?.(),le.current={popover:n,trigger:j.current,moved:!1};return}let r=j.current;r!=null&&we(r).includes(v)&&!ie.current&&(ne.current=null,De(r,v))},[v,m]),Ae=(0,V.useCallback)(e=>{let t=e,n=le.current;n!=null&&n.popover===e.currentTarget&&(le.current=null,n.moved)||t.newState===`closed`&&R.current&&(A.current=null,R.current=!1,B(),ke(e.currentTarget?.ownerDocument??document),ae(e.currentTarget),b(!1),r?.(),_e())},[r,_e,ke,ae,B]),K=(0,V.useRef)(null),q=(0,V.useRef)(null),je=(0,V.useCallback)((e,t)=>{K.current&&q.current&&(K.current!==e||q.current!==t)&&(K.current.removeEventListener(`toggle`,q.current),K.current.removeEventListener(`beforetoggle`,G),K.current=null,q.current=null),e&&K.current!==e&&(e.addEventListener(`toggle`,t),e.addEventListener(`beforetoggle`,G),K.current=e,q.current=t)},[G]),{cap:J,lift:Ie,inset:Le,followLayerElement:ze}=ht(y&&t===`context`,O),Be=(0,V.useCallback)(e=>{if(O.current=e,je(e,Ae),e&&I.current)I.current=!1,U();else if(e&&R.current&&A.current!==e&&pe(e)){if(ze(),fe(e)){let t=s?Bn(e,j.current):null;Vn(e,j.current,t)}else dn(e.ownerDocument,()=>{let t=O.current;if(R.current&&t===e&&A.current!==e&&fe(e)){let t=s?Bn(e,j.current):null;Vn(e,j.current,t)}})}},[Ae,je,U,fe,pe,s,ze]),Ve=(0,V.useCallback)(e=>{N.current=e,e&&(!a||I.current||R.current||o&&P.current!=null)&&me()},[a,o,me]);(0,V.useEffect)(()=>(O.current&&je(O.current,Ae),()=>{K.current&&q.current&&(K.current.removeEventListener(`toggle`,q.current),K.current.removeEventListener(`beforetoggle`,G),K.current=null,q.current=null)}),[Ae,je,G]),re(()=>{if(!y||t!==`context`)return;let e=j.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;w(r)}if(typeof IntersectionObserver>`u`)return;let r=new IntersectionObserver(e=>{let t=e[e.length-1];t&&w(t.isIntersecting)});return r.observe(e),()=>r.disconnect()},[y,t,w]),re(()=>{if(!s||!y||t!==`context`)return;let e=O.current,n=j.current;if(e&&n)return W.current?.(),W.current=Gn(e,n,()=>O.current===e&&j.current===n),()=>{W.current?.(),W.current=null}},[s,y,t,ee]);let He=(0,V.useCallback)((e,t)=>{let{placement:n=`above`,alignment:r=`center`,positioning:a=`anchor`,offset:o,role:c,"aria-label":l,xstyle:u,className:p,style:m,as:y=`div`,onMouseEnter:b,onMouseLeave:S}=t||{},C=er(n,r),w=s&&a===`anchor`?Jt(n):``,E=a===`custom`?{positionAnchor:v}:{positionAnchor:v,positionArea:$n(n,r),positionTryFallbacks:w||C,...w?{alignSelf:Vt(n)}:{},...tr(n,r,x)},D=o?Nn(o):null,O=a===`anchor`&&D!=null?{[Ot]:D}:{},A=a===`anchor`?D==null?n===`above`?X.farAbove:n===`below`?X.farBelow:n===`start`?X.farStart:X.farEnd:n===`above`?X.placementAbove(D):n===`below`?X.placementBelow(D):n===`start`?X.placementStart(D):X.placementEnd(D):null,j=a===`anchor`?[X.viewportFit,...nr(n,r)]:null,M=ge(g.reset,f.reset,X.base,d.reset,X.keyboardCap(J==null?`100vh`:`${J}px`,J==null?`visible`:`auto`,Le==null?`initial`:`${Le}px`),s&&X.scrollsOnOverflow,j,A,u),N=p?`${p} ${M.className??``}`:M.className;return(0,Y.jsx)(Zn,{mountStore:F,renderLayer:t=>(0,Y.jsx)(y,{ref:Be,id:_,...a===`anchor`?{[Ge]:``}:{},role:c,"aria-label":l,popover:i?`auto`:`manual`,className:N,style:{...M.style,...E,...mt(Ie),...O,...Dt(T),...t.portalStyle,...m},onMouseEnter:b,onMouseLeave:S,...h(),children:(0,Y.jsx)(k,{children:e})}),sentinelRef:Ve})},[v,T,_,x,s,J,Le,Ie,i,F,Be,Ve]),We=(0,V.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:o,style:s}=t,c={top:r,left:n},l=ge(g.reset,f.reset,X.base,d.reset,X.keyboardCap(`100vh`,`visible`,`initial`),X.fixed,a),u=o?`${o} ${l.className??``}`:l.className;return(0,Y.jsx)(`div`,{ref:Be,id:_,popover:i?`auto`:`manual`,className:u,style:{...l.style,...c,...s},...h(),children:(0,Y.jsx)(k,{children:e})})},[Be,_,i]),Ke=(0,V.useMemo)(()=>({ref:Oe,anchorId:v,show:U,hide:Ce,isOpen:y,id:_,render:He}),[Oe,v,U,Ce,y,_,He]),qe=(0,V.useMemo)(()=>({ref:void 0,show:U,hide:Ce,isOpen:y,id:_,render:We}),[U,Ce,y,_,We]);return t===`context`?Ke:qe}function ar(e){return ir(e)}function or(e){return ir(e)}var sr=M(`layer/outside-press/outside-dismissals`,1);function cr(e){sr.set(e,(sr.get(e)??0)+1)}function lr(e){return sr.get(e)??0}function ur(e,t,n,{pointerTypes:r,closesOnPan:i=!1,onPan:o,root:s=null}={}){let c=e.ownerDocument,l=i?void 0:o,u=i||l!=null,d=s==null?[]:a(s),f=!1,p=null,m=e=>r==null||r.includes(e.pointerType),h=()=>{f=!1,p=null,cr(c),n()},g=e=>{m(e)&&(!i||p==null||p.id===e.pointerId||e.isPrimary)&&(f=!t(e.composedPath()),u&&(p=f?{id:e.pointerId,x:e.clientX,y:e.clientY}:null))},_=e=>{if(p?.id===e.pointerId&&Math.max(Math.abs(e.clientX-p.x),Math.abs(e.clientY-p.y))>=v.hysteresis.value){if(l!=null){let t=Math.abs(e.clientX-p.x)>=Math.abs(e.clientY-p.y)?`x`:`y`,n=e.composedPath()[0];f=!1,p=null,R(n)&&L(n,t)&&l();return}h()}},y=e=>{if(l!=null||!m(e)||i&&p?.id!==e.pointerId)return;let r=f;f=!1,p=null,r&&!t(e.composedPath())&&(cr(c),n())},b=null,x=e=>t=>{t===b||e!=null&&t.composedPath().includes(e)||(b=t,y(t))},S=x(d.at(-1)?.host??null),C=d.map(({root:e,host:t},n)=>({shadow:e,host:t,handleRootUp:x(n===0?null:d[n-1].host),handleHostUp:x(null)})),w=e=>{m(e)&&(i&&p?.id===e.pointerId?h():i||(f=!1,p=null))},E=[c,...d.map(({root:e})=>e)];for(let e of E)e.addEventListener(`pointerdown`,g,!0);let D=c.defaultView,O=u&&D!=null?T(D,`pointermove`,_):null;c.addEventListener(`pointerup`,S,!0);for(let{shadow:e,host:t,handleRootUp:n,handleHostUp:r}of C)e.addEventListener(`pointerup`,n,!0),t.addEventListener(`pointerup`,r);return c.addEventListener(`pointercancel`,w,!0),()=>{for(let e of E)e.removeEventListener(`pointerdown`,g,!0);O?.(),c.removeEventListener(`pointerup`,S,!0);for(let{shadow:e,host:t,handleRootUp:n,handleHostUp:r}of C)e.removeEventListener(`pointerup`,n,!0),t.removeEventListener(`pointerup`,r);c.removeEventListener(`pointercancel`,w,!0)}}function dr(){let e=(0,V.useRef)(null),t=(0,V.useCallback)(()=>{e.current?.(),e.current=null},[]),n=(0,V.useCallback)((t,n,r,i)=>{e.current?.(),e.current=ur(t,n,r,i)},[]);return(0,V.useEffect)(()=>t,[t]),(0,V.useMemo)(()=>({start:n,stop:t}),[n,t])}function fr(e,t){for(let n=e;n!=null;n=n.parentNode??C(n))if(R(n)&&n.id===t)return!0;return!1}function pr(e,t,n){return e.some(e=>e===t||n!==``&&I(e)&&R(e)&&e.id===n)}function mr(e,t,n){return I(e)&&(t?.contains(e)===!0||fr(e,n))}var hr=ne(`layer/layer-surface-press/surfaces`,1);function gr(e){if(e==null)return;hr.add(e);let t=e.parentElement;t?.hasAttribute(`popover`)&&hr.add(t)}function _r(e){return hr.has(e)}function vr(e){return e.replace(/[\x00-\x1f\x7f]/g,``).trim()}function yr(e){return e.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/,`$1`)}function br(e){let t=vr(e),n=yr(t);return n.startsWith(`javascript:`)||n.startsWith(`vbscript:`)||n.startsWith(`data:text/html`)?null:t}function xr(e){return br(e)!==null}function Sr(e){if(e==null)return!0;if(typeof e==`string`)return xr(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`&&!xr(t)||typeof n==`string`&&!xr(n))return!1;if(typeof r==`string`&&r!==``){let e=vr(r),n=e.endsWith(`:`)?e:`${e}:`;if(!xr(n)||!xr(`${n}${i||a||``}${typeof t==`string`?t:``}`))return!1}return!0}var Cr=`data-astryx-menu-press`,wr={duration:`200ms`,easing:`cubic-bezier(0.42, 0, 0.58, 1)`},Tr={"--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 Er(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 Dr(e){return O(`duration`,e.transitionDuration.split(`,`)[0]??``)}function Or(e){return e.transitionTimingFunction.split(/,(?![^(]*\))/)[0]??``}function kr(e){return A(Or(e))}function Ar(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 jr(e,{ms:t,points:n},r){if(t==null||t<=0)return null;if(n!=null)return Er(t/1e3,te(n));let i=Ar(e,r);return i==null?null:Er(t/1e3,i,{jumps:!0})}function Mr(e,{duration:t,easing:n}){let r=t==null?null:O(`duration`,t),i=n==null?null:A(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?Dr(e):r,points:f?kr(e):i}}finally{l.remove()}}function Nr(e,t){let n=e.getPropertyValue(t).trim();if(n!==``)return n;let r={};for(let[t,n]of Object.entries(Tr))r[t]=e.getPropertyValue(t).trim()||n;return P(r)[t]??``}function Pr(e,{duration:t,easing:n}){let r=e.ownerDocument.defaultView?.getComputedStyle(e);return r==null?{ms:null,points:null}:Mr(e,{duration:t==null?void 0:Nr(r,t),easing:n==null?void 0:Nr(r,n)})}function Fr(e,t){let n=e.ownerDocument.defaultView?.getComputedStyle(e);return n==null?null:Nr(n,t)}function Ir(e,t){let n=e.ownerDocument,r=n.defaultView?.getComputedStyle(e);if(r==null)return null;if(t!=null){let i=Nr(r,t.easing);return jr(n,Mr(e,{duration:Nr(r,t.duration),easing:i}),i)}let i=Or(r);return jr(n,{ms:Dr(r),points:A(i)},i)}function Lr(e){return(I(e)?(b(e)?e:e.ownerDocument)?.defaultView:e?.view)?.performance??(typeof performance>`u`?null:performance)}function Rr(e,t){if(!(t==null||!Number.isFinite(t)||t<=0))return e!=null&&Math.abs(Date.now()-t)<Math.abs(e.now()-t)?e.now()-(Date.now()-t):t}function zr(e,t){let n=Lr(t),r=Rr(n,e);return n==null||r==null?0:Math.max(0,n.now()-r)}var Br=`data-astryx-press-box`,Vr=`[data-astryx-pressable]`,Hr={[Br]:``};function Ur(e,t){if(!(e instanceof Element))return null;let n=e.closest(`[${Br}]`);return n instanceof HTMLElement&&t.contains(n)?n:null}function Wr(e){return Array.from(e.querySelectorAll(`[${Br}]`)).filter(t=>t.closest(Vr)===e)}function Gr(){if(typeof navigator>`u`)return!1;let e=`userAgentData`in navigator?navigator.userAgentData:null;if(e&&typeof e==`object`&&`platform`in e){let t=e.platform,n=typeof t==`string`?t.trim():``;if(n!==``&&n.toLowerCase()!==`unknown`)return/mac/i.test(n)}return/Mac|iPhone|iPad|iPod/.test(navigator.platform??``)}function Kr(e){return e.button===0&&!(e.ctrlKey&&Gr())}var qr=`data-astryx-press-holds-drag`;function Jr(e){return e.hasAttribute(qr)}var Yr=`data-astryx-press-group-item`;function Xr(e){return{[Yr]:e.join(` `)}}function Zr(e){return e.hasAttribute(Yr)}function Qr(e,t=null){let n=e.closest(`[${Yr}]`);return n==null?!1:t==null||(n.getAttribute(Yr)??``).split(` `).includes(t)}var $r=`data-astryx-pressable`,ei=`data-astryx-press`,ti={[$r]:``},ni=`:disabled, [aria-disabled="true"]`,ri=new Set([`button`,`image`,`reset`,`submit`]),ii=`[${Cr}]`,Z={live:null},ai=null;function oi(e){let t=ai;ai=null,t?.end(e)}var si=null;function ci(e){si=e}var Q={live:null},li=0,ui=0,di=null,fi=0,pi=null,mi={fade:ue,flash:100,onset:150};function hi(e){let t=Pr(e,{duration:`--duration-exit`}).ms??ue,n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=O(`duration`,wr.duration);return n&&r!=null?Math.min(t,r):t}function gi(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 _i(e,t,n){let r=!0,i=setTimeout(()=>{let t=gi(e);t.length===0?n():Promise.allSettled(t.map(async e=>e.finished)).then(()=>{r&&n()})},t);return()=>{r=!1,clearTimeout(i)}}var vi={fade:`fadeEnd`,flash:`flashEnd`,onset:`onset`};function yi(e,t){t===`none`?e.removeAttribute(ei):e.getAttribute(`data-astryx-press`)!==t&&e.setAttribute(ei,t)}function bi(e){e.live?.timer!=null&&(e.live.timer(),e.live.timer=null)}function xi(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)&&bi(e),r.gesture=t.gesture,yi(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),xi(e,c(e.live?.gesture??w(),{kind:vi[i]}))};if(i===`fade`)r.timer=_i(r.element,hi(r.element),a);else{let e=i===`onset`?Math.max(0,mi.onset-n):mi[i],t=setTimeout(a,e);r.timer=()=>clearTimeout(t)}}}function Si(e){if(!(e instanceof Element))return null;let t=e.closest(`[${$r}]`);return!(t instanceof HTMLElement)||t.matches(ni)?null:t}function Ci(e){return Date.now()-ui>=150?!1:di instanceof Node&&di.contains(e)}function wi(e){e.live?.gesture.phase===`dead`&&(bi(e),e.live=null)}function $(e){let t=e.live;t!=null&&(bi(e),t.element.removeAttribute(ei),e.live=null,e===Q&&ra(!1))}function Ti(e){Z.live?.element===e&&$(Z),Q.live?.element===e&&$(Q)}function Ei(e,t){e.live?.element===t&&$(e)}function Di(){return typeof window.matchMedia==`function`&&window.matchMedia(`(pointer: coarse)`).matches}function Oi(e){let t=Si(e);return t!=null&&ki(t)}function ki(e){return Wr(e).length>0}function Ai(e,t){let n=Si(e);return n==null||n.closest(ii)!=null||t!=null&&Qr(n,`mouse`)||t==null&&n!==e?null:n}function ji(e,t){$(Q);let n=Ai(e,t);n!=null&&(Ei(Z,n),Q.live={element:n,gesture:w(),pointerId:t,timer:null},ra(t==null),xi(Q,c(Q.live.gesture,{kind:`buttonDown`})))}function Mi(e){return ki(e)&&!Di()&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Ni(){ra(!1),Q.live!=null&&(Mi(Q.live.element)?Pi():xi(Q,c(Q.live.gesture,{kind:`up`})))}function Pi(){ra(!1),Q.live!=null&&(xi(Q,c(Q.live.gesture,{kind:`cancel`})),wi(Q))}function Fi(e){if(e.pointerType===`mouse`){(Di()?e.button===0:Kr(e)&&Oi(e.target))&&ji(e.target,e.pointerId);return}if(e.pointerType===`pen`&&!Kr(e)&&Oi(e.target))return;if(Zi(),oi(!1),Z.live!=null){if(Z.live.gesture.phase!==`fading`&&Z.live.gesture.phase!==`flash`){$(Z);return}$(Z)}let t=Si(e.target),n=e.pointerType===`pen`&&t!=null&&ki(t),r=t!=null&&!n&&Ci(t);if(fi=Date.now(),pi=e.target instanceof Node?e.target:null,t==null||Qr(t,e.pointerType))return;let i=si?.start(t,e.target)??null,a=r?null:{element:t,gesture:w(),pointerId:e.pointerId,timer:null};i!=null&&(ai={pointerId:e.pointerId,live:a,end:i}),a!=null&&(Ei(Q,t),Z.live=a,xi(Z,c(a.gesture,{kind:`down`,x:e.clientX,y:e.clientY,delayed:!n&&s(t)}),zr(e.timeStamp,e)))}function Ii(e){let t=Z.live;t==null||t.pointerId!=null&&e.pointerId!==t.pointerId||Jr(t.element)||xi(Z,c(t.gesture,{kind:`move`,x:e.clientX,y:e.clientY}))}function Li(e){if(e.pointerType===`mouse`){Q.live!=null&&Q.live.pointerId===e.pointerId&&Ni();return}if(fi=Date.now(),e.target instanceof Node&&(pi=e.target),ai!=null&&ai.pointerId===e.pointerId){let e=ai.live;oi(e!=null&&Z.live===e&&e.gesture.phase!==`dead`)}let t=Z.live;if(t==null||t.pointerId!=null&&e.pointerId!==t.pointerId)return;let n=e.pointerType===`pen`&&Mi(t.element)?`cancel`:`up`;xi(Z,c(t.gesture,{kind:n})),wi(Z)}function Ri(e){let t=e;if(t?.pointerType===`mouse`){Q.live!=null&&Q.live.pointerId===t.pointerId&&Pi();return}t?.pointerId!=null&&ai?.pointerId===t.pointerId&&oi(!1);let n=Z.live;n!=null&&(xi(Z,c(n.gesture,{kind:`cancel`})),wi(Z))}function zi(){Ri(),Pi()}function Bi(e){let t=e.target instanceof Node?e.target:document;Date.now()-fi<3e3&&pi!=null&&t.contains(pi)&&(ui=Date.now(),di=t);let n=Z.live;n!=null&&(t===document||t.contains(n.element))&&Ri()}function Vi(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement&&ri.has(e.type)}function Hi(e){return e instanceof Element&&Qr(e)}function Ui(e){e.key!==` `||e.repeat||e.isComposing||e.defaultPrevented||!Vi(e.target)||!(Di()||Hi(e.target))||ji(e.target,null)}function Wi(e){e.key===` `&&Q.live!=null&&Q.live.pointerId==null&&Ni()}function Gi(){Q.live!=null&&Q.live.pointerId==null&&Ni()}function Ki(){document.visibilityState===`hidden`&&(oi(!1),$(Z),$(Q))}var qi=[],Ji=null,Yi=null;function Xi(e){e!==(Ji!=null)&&(e?Ji=T(window,`touchcancel`,Ri):(Ji?.(),Ji=null))}function Zi(){Yi??(Yi=ye(window,Xi),Xi(_e(window)))}function Qi(){qi=[T(window,`pointerdown`,Fi),T(window,`pointermove`,Ii),T(window,`pointerup`,Li),T(window,`pointercancel`,Ri),T(window,`dragstart`,zi),T(window,`scroll`,Bi),T(window,`visibilitychange`,Ki)],window.addEventListener(`keydown`,Ui,ta)}function $i(){oi(!1),si?.endWaits();for(let e of qi.splice(0))e();Yi?.(),Yi=null,Xi(!1),window.removeEventListener(`keydown`,Ui),ra(!1)}var ea={capture:!0,passive:!0},ta={passive:!0},na=!1;function ra(e){e!==na&&(na=e,e?(window.addEventListener(`keyup`,Wi,ta),window.addEventListener(`blur`,Gi,ea)):(window.removeEventListener(`keyup`,Wi),window.removeEventListener(`blur`,Gi,ea)))}function ia(){if(typeof window>`u`)return()=>void 0;li===0&&Qi(),li+=1;let e=!1;return()=>{e||(e=!0,--li,!(li>0)&&($i(),$(Z),$(Q),ui=0,di=null,fi=0,pi=null))}}var aa=`data-pressable-container`,oa=[`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"]`,`[${aa}]`].join(`,`),sa=`[aria-readonly="true"]`;function ca(e){return e.matches(oa)&&!e.matches(sa)}function la(e,t,n=ca){let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(n(r))return r;r=r.parentElement}return null}function ua(e,t){return la(e,t,da)!=null}function da(e){return ca(e)||_r(e)}function fa(e,t,n){let r=e.target;t!=null&&(e.pointerType===`touch`||Wr(t).length!==0)&&r instanceof Element&&r!==e.currentTarget&&ua(r,t)&&n?.contains(r)!==!0&&Ti(t)}function pa(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 ma(e){let{containerRef:t}=e;return(0,V.useEffect)(()=>{let e=t.current;e&&e.setAttribute(aa,`true`)},[t]),ha(e)}function ha({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return{onClick:(0,V.useCallback)(o=>{if(a)return;let s=e.current;if(!s||pa(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&ua(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&xr(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,V.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&xr(r)&&(i===t.currentTarget||!ua(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a]),onPointerDown:(0,V.useCallback)(n=>{a||fa(n,e.current,t?.current??null)},[e,t,a])}}function ga(e){if(e.getAttribute(`aria-disabled`)===`true`)return!0;try{return e.matches(`:disabled`)}catch{return!1}}var _a=new Set([`touch`,`pen`]);function va(){let[e]=(0,V.useState)(ya);return(0,V.useEffect)(()=>()=>e.forget(),[e]),e}function ya(){let e=null,t=null,n=()=>{e?.(),e=null};return{press(r,i,a){if(n(),!_a.has(r.pointerType))return!1;if(i==null)return!0;let o=Me();t=o;let s=()=>{i.removeEventListener(`click`,c),i.removeEventListener(`pointercancel`,s),e===s&&(e=null)},c=e=>{s(),Me()===o&&a(e)};return i.addEventListener(`click`,c),i.addEventListener(`pointercancel`,s),e=s,!0},forget:n,isTouchPressCurrent:()=>e!=null&&t===Me()}}var ba=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`]);function xa(e){if(ga(e))return!1;let t=e.getAttribute(`role`);if(t!=null&&t!==``)return ba.has(t);switch(e.tagName){case`LABEL`:{let t=e.control;return t==null||!ga(t)}case`BUTTON`:case`INPUT`:case`SELECT`:case`SUMMARY`:case`TEXTAREA`:return!0;case`A`:case`AREA`:return e.hasAttribute(`href`);default:return wa(e)}}function Sa(e){if(ga(e))return!0;if(e.tagName===`LABEL`){let t=e.control;return t!=null&&ga(t)}return!1}function Ca(e){let t=la(e,null,e=>ca(e)||e.tagName===`LABEL`||ga(e));return t!=null&&Sa(t)}function wa(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function Ta(e,t,n=!1){let{touchTrigger:r,isEnabled:a,isControlled:o,isOpen:s,layerId:c,triggerRef:l,show:u,hide:d}=e,f=(0,V.useRef)(!1),p=D(d),m=D(c),h=D(t),g=(0,V.useRef)(!1),_=(0,V.useRef)(null),v=(0,V.useRef)([]),y=va();z(l);let b=(0,V.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=[]}},[]),x=(0,V.useCallback)(()=>{if(g.current=!0,_.current!=null)return;let e=l.current?.ownerDocument??document,t=e===document?[document]:[document,e],n=e=>{let n=e.target;if(n!=null){if(e.type===`pointerup`&&l.current?.contains(n)===!0)return;if(t.some(e=>e.getElementById(m.current)?.contains(n)===!0)){e.type===`pointerup`&&h.current?.();return}}b(),n!=null&&cr(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)},[l,b,p,m,h]);(0,V.useEffect)(()=>b,[b]);let C=(0,V.useCallback)(()=>f.current&&S(l.current),[l]),w=(0,V.useCallback)(e=>{f.current=e.pointerType===`touch`},[]),T=D(e=>{let t=l.current,o=R(e?.target)?e.target:null;if(n&&o!=null&&i(t)){let e=ie(o,t);if(e!=null&&e!==t&&!Ca(o))return}(r===`auto`?o!=null&&Ca(o)?`tap`:t!=null&&xa(t)?`none`:`tap`:r)===`none`||!a||s||g.current?(b(),d()):(x(),u())}),E=(0,V.useCallback)(e=>{let t=_a.has(e.pointerType);if(f.current=t,!t||o)return y.forget(),!1;let n=e.currentTarget instanceof Element?e.currentTarget:l.current;return y.press(e,n,e=>T.current(e)),!0},[o,l,y,T]),O=(0,V.useRef)(s);return(0,V.useEffect)(()=>{O.current&&!s&&b(),O.current=s},[s,b]),{isTouchPointerRef:f,isTouchInteraction:C,handlePointerEnter:w,handlePointerDown:E,clearTapOpen:b,armOutsideDismiss:x,answerTap:(0,V.useCallback)(e=>T.current(e),[T])}}var Ea=`[role="log"], [role="status"], [role="alert"], [aria-live="polite"], [aria-live="assertive"]`,Da=`[aria-hidden="true"], [hidden]`,Oa=`p, div, li, br, h1, h2, h3, h4, h5, h6`;function ka(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(Da)||t!=null&&n.matches(t)?``:Aa(n,t)}return``}).filter(e=>e!==``).join(` `)}function Aa(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(Da)||t!=null&&o.matches(t))return;let s=r(o),c=o.matches(Oa)||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 ja(e,t,n,{skipFirstRender:r=!1,politeness:i=`polite`,fallbackText:a,announce:o,exclude:s}={}){let c=le(),l=o??c,u=(0,V.useRef)(null),d=ee(),[f]=(0,V.useState)(()=>d||document.readyState!==`complete`),p=(0,V.useRef)(!0);(0,V.useEffect)(()=>{let o=p.current;p.current=!1;let c=e.current;if(!t||c?.closest(Da)||c?.checkVisibility?.()===!1){u.current=null;return}if(!c||r&&c.parentElement?.closest(Ea))return;let d=r?ka(c,s):Aa(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?``:Aa(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)})}`${me[`--spacing-2`]}${me[`--spacing-2`]}`,pe[`--duration-fast-max`],wr.duration,he[`--ease-standard`];var Ma={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}},Na=100,Pa={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}};function Fa(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,{ref:f,anchorId:p,show:m,hide:h,isOpen:g,id:_,render:v}=or({mode:`context`,onShow:u,onHide:d,keepsAnchorClear:!0}),y=Pa.container,b=(0,V.useRef)(null),x=(0,V.useRef)(null),S=(0,V.useRef)(null),C=(0,V.use)(xe),w=(0,V.useRef)(0);s||(w.current+=1);let T=(0,V.useCallback)(()=>{b.current&&=(clearTimeout(b.current),null),x.current&&=(clearTimeout(x.current),null)},[]),E=(0,V.useCallback)(()=>{T(),m()},[T,m]),O=(0,V.useCallback)(()=>{T(),h()},[T,h]),k=D({isOpen:c,isLayerOpen:g,onShow:u,onHide:d}),A=(0,V.useRef)(!1),[M,N]=(0,V.useState)(!1),P=(0,V.useCallback)(e=>{A.current=e,N(e)},[]),F=(0,V.useRef)(!1),ee=(0,V.useRef)(!1),te=(0,V.useCallback)(()=>{F.current&&A.current&&(F.current=!1,P(!1))},[P]),I=(0,V.useCallback)(()=>{if(A.current){P(!1);let e=k.current;if(e.isOpen!==void 0){e.onHide?.();return}}O()},[P,O,k]),{isTouchPointerRef:L,isTouchInteraction:R,handlePointerEnter:ne,handlePointerDown:ie,clearTapOpen:ae,armOutsideDismiss:se,answerTap:ce}=Ta({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:g,layerId:_,triggerRef:S,show:E,hide:I},te,!0),le=(0,V.useCallback)(()=>{let e=k.current;return A.current&&e.isLayerOpen&&e.isOpen!==!1},[k]),z=(0,V.useCallback)(()=>{ae(),P(!1);let e=k.current;e.isOpen===void 0?O():e.onHide?.()},[ae,P,O,k]),ue=(0,V.useCallback)(()=>{A.current&&P(!1)},[P]),B=(0,V.useCallback)(e=>{if(!le())return;let t=e.relatedTarget,n=S.current,r=n?.ownerDocument.defaultView;if(r==null||!(t instanceof r.Node))return;let i=n?.ownerDocument.getElementById(_)??null;n?.contains(t)!==!0&&i?.contains(t)!==!0&&(cr(r.document),z())},[le,_,z]),de=M&&g&&c!==!1,fe=(0,V.useRef)(null);ja(fe,de,`pinned`);let pe=j(fe,gr),he=(0,V.useCallback)(()=>{if(!s||c===!1)return;T();let e=w.current;b.current=setTimeout(()=>{w.current===e&&m()},r)},[s,c,T,m,r]),ge=(0,V.useCallback)(()=>{c===!0||le()||(T(),x.current=setTimeout(()=>{h()},i>0?i:Na))},[c,le,T,h,i]),_e=(0,V.useCallback)(()=>{x.current&&=(clearTimeout(x.current),null)},[]),ye=(0,V.useCallback)(()=>{L.current||he()},[L,he]),be=(0,V.useCallback)(e=>{if(L.current)return;let t=e.relatedTarget,n=t==null?null:t.ownerDocument?.getElementById(_);n!=null&&n.contains(t)||ge()},[L,_,ge]),[H]=(0,V.useState)(Ce),Se=(0,V.useCallback)((e,t)=>t!=null&&!U(e,t,a)?!1:!R()&&e.matches(`:focus-visible`),[a,R]),we=(0,V.useCallback)(e=>{if(!H.focusIn(e,a)||!s||!Se(e.target,null))return;T();let t=k.current;t.isOpen===!1?t.onShow?.():m()},[H,a,s,Se,T,m,k]),Te=(0,V.useCallback)(e=>{H.focusOut(e,a)&&ge()},[H,a,ge]),Ee=(0,V.useRef)(!1),De=(0,V.useRef)(null),W=(0,V.useCallback)(()=>{De.current?.();let e=S.current?.ownerDocument.defaultView;if(e==null)return;Ee.current=!0;let t=S.current,n=r=>{r?.type===`pointerup`&&r.target instanceof e.Node&&t?.contains(r.target)===!0&&(F.current=!1),e.removeEventListener(`pointerup`,n,!0),e.removeEventListener(`pointercancel`,n,!0),Ee.current=!1,De.current=null};e.addEventListener(`pointerup`,n,!0),e.addEventListener(`pointercancel`,n,!0),De.current=n},[]),Oe=(0,V.useCallback)(e=>{W(),A.current?ee.current&&(F.current=!0):ie(e)?b.current&&=(clearTimeout(b.current),null):c===void 0&&(T(),h())},[ie,W,c,T,h]),ke=D({handleMouseEnter:ye,handleMouseLeave:be,handleFocusIn:we,handleFocusOut:Te,handleHeldFocusOut:B,handlePointerEnter:ne,handlePointerDown:Oe,focusTrigger:a,isEnabled:s,isOpen:c,dropHold:ue,hideNow:O,showNow:E,opensOnFocus:Se,presentInterest:C,answerTap:ce}),G=(0,V.useRef)(null),Ae=(0,V.useRef)(!1),K=(0,V.useRef)(!1),q=(0,V.useCallback)(()=>{if(!K.current)return;K.current=!1;let e=ke.current;!e.isEnabled&&e.isOpen===void 0&&(Ae.current=!0,e.dropHold(),e.hideNow())},[ke]);re(()=>{q()});let je=(0,V.useCallback)(e=>{if(e==null){G.current?.();return}if(e===S.current)return;G.current?.();let t=()=>ke.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),S.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=()=>{G.current===m&&(G.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),De.current?.(),S.current===e&&(S.current=null),K.current=!0,queueMicrotask(q)};return G.current=m,m},[ke,q]),J=(0,V.useCallback)(e=>{f(e);let t=je(e);if(e!=null)return()=>{t?.(),f(null)}},[f,je]);return(0,V.useEffect)(()=>()=>{T()},[T]),(0,V.useEffect)(()=>{l&&m()},[]),(0,V.useEffect)(()=>{c!==void 0&&(c?(T(),m()):(T(),ue(),h()))},[c,T,m,h,ue]),oe({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(_);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return g}},onDismiss:()=>{T(),ae(),ue(),c===void 0?h():d?.()}}),{ref:J,positionRef:f,interactionRef:je,anchorId:p,describedBy:_,renderTooltip:(0,V.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:me[`--spacing-1`],role:`tooltip`,xstyle:[y,Ma[i]],className:ve(`tooltip`).className,onMouseEnter:_e,onMouseLeave:ge};return v((0,Y.jsx)(`div`,{ref:pe,className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[v,t,n,y,_e,ge,pe]),show:(0,V.useCallback)(()=>{if(T(),!s)return;P(!0),se(),F.current=Ee.current,ee.current=!0,S.current?.ownerDocument.defaultView?.setTimeout(()=>{ee.current=!1},0);let e=k.current;e.isOpen===void 0?m():e.onShow?.()},[T,s,P,se,m,k]),hide:(0,V.useCallback)(()=>{T(),z()},[T,z])}}export{mr as A,wt as B,Rr as C,wr as D,Fr as E,ur as F,We as G,lt as H,rr as I,Ie as J,Le as K,ar as L,cr as M,lr as N,Cr as O,dr as P,or as R,zr as S,Ir as T,ut as U,ft as V,dt as W,xe as Y,Kr as _,aa as a,Hr as b,ha as c,ci as d,ia as f,Xr as g,Zr as h,va as i,pr as j,Sr as k,ei as l,ti as m,Ma as n,fa as o,hi as p,Me as q,ja as r,ma as s,Fa as t,Ti as u,Gr as v,Er as w,Lr as x,Ur as y,St as z};
|