ryugi-artifacts 1.121.5 → 1.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/cli.cjs +8 -8
  2. package/dist/document-engine.cjs +1 -1
  3. package/dist/viewer/{ActionIcon-ConGc4Ox.js → ActionIcon-Dy2KWieB.js} +1 -1
  4. package/dist/viewer/{AgentDock-m1pYFN32.js → AgentDock-C36-5-mk.js} +1 -1
  5. package/dist/viewer/ArtboardLayout-CJ-TARvg.js +14 -0
  6. package/dist/viewer/ArtifactList-CVZD4sMU.js +2 -0
  7. package/dist/viewer/{ArtifactModal-BAwvWNgI.js → ArtifactModal-BotF0O31.js} +1 -1
  8. package/dist/viewer/{BottomSheet-BW687D78.js → BottomSheet-CnJa5Pgf.js} +1 -1
  9. package/dist/viewer/{Canvas-CrHvoh0B.js → Canvas-BXbVMU6r.js} +1 -1
  10. package/dist/viewer/{CommentPopover-rhmWzVvA.js → CommentPopover-gJMCoGQr.js} +1 -1
  11. package/dist/viewer/{DocumentExportMenu-Bzgr9FNd.js → DocumentExportMenu-CsTqIE8K.js} +1 -1
  12. package/dist/viewer/DocumentLayout-C68ORH2Z.js +2 -0
  13. package/dist/viewer/DocumentPage-M15XFLPE.js +5 -0
  14. package/dist/viewer/{DraftTray-qu8jJTEj.js → DraftTray-BsaxlUfY.js} +1 -1
  15. package/dist/viewer/DraggablePanel-QiPxiLim.js +1 -0
  16. package/dist/viewer/DropdownMenu-CXlZP0ZU.js +1 -0
  17. package/dist/viewer/{GroupVerdict-SoVZukzu.js → GroupVerdict-BTGc3jF-.js} +1 -1
  18. package/dist/viewer/HtmlLayout-D6Ms-saH.js +1 -0
  19. package/dist/viewer/Input-CCAc0BMa.js +1 -0
  20. package/dist/viewer/MenuSubmenuTrigger-Dbhvh4i-.js +1 -0
  21. package/dist/viewer/{PhoneArtboardBar-BUoO-B6e.js → PhoneArtboardBar-yOcpr3I2.js} +1 -1
  22. package/dist/viewer/Popover-BbmFRoOD.js +1 -0
  23. package/dist/viewer/PreviewArtifactLayout-CS1n8HqO.js +1 -0
  24. package/dist/viewer/PreviewLayout-B9834CCO.js +2 -0
  25. package/dist/viewer/ReportLayout-HL9Evv3q.js +6 -0
  26. package/dist/viewer/SelectScrollUpArrow-BKts3geM.js +1 -0
  27. package/dist/viewer/SlidesLayout-Dafeveg9.js +10 -0
  28. package/dist/viewer/{SnapshotDocument-BBC_Rgeu.js → SnapshotDocument-DNHUscuZ.js} +1 -1
  29. package/dist/viewer/SocialPage-Bqg9GVSM.js +3 -0
  30. package/dist/viewer/{SplitFrame-tIYr7Lzf.js → SplitFrame-EsLnIpMT.js} +1 -1
  31. package/dist/viewer/StoryboardLayout-DvVIad6u.js +1 -0
  32. package/dist/viewer/{StoryboardRender-CY77MwqM.js → StoryboardRender-C3BVf8Un.js} +1 -1
  33. package/dist/viewer/ThreadView-CtsiEPYr.js +1 -0
  34. package/dist/viewer/{VerifyLayout-BHC4LUHj.js → VerifyLayout-Cqt217kO.js} +1 -1
  35. package/dist/viewer/{VirtualizedEditor-uWe43zaI-_OZOpKy4.js → VirtualizedEditor-uWe43zaI-CloTX-ZH.js} +1 -1
  36. package/dist/viewer/{VirtualizedRenderer-C_d95FXi-CcFaQvjI.js → VirtualizedRenderer-C_d95FXi--c7anIr8.js} +1 -1
  37. package/dist/viewer/{WarningsBadge-gDun4L0h.js → WarningsBadge-CU4qbkqU.js} +1 -1
  38. package/dist/viewer/WhiteboardEditor-DrHOvXez-D2lm5yQR.js +22 -0
  39. package/dist/viewer/{WhiteboardLayout-DiKPLj_d.js → WhiteboardLayout-CK8ezZda.js} +3 -3
  40. package/dist/viewer/{WritingCursor-CXg-FMHs.js → WritingCursor-DcGuUOl1.js} +1 -1
  41. package/dist/viewer/{agentLook-BLPVb10E.js → agentLook-DBznDjRU.js} +1 -1
  42. package/dist/viewer/{artifact-list-XGM_ZDrE.js → artifact-list-o4g5yw3a.js} +1 -1
  43. package/dist/viewer/{auto-publish-Y_6RWhO-.js → auto-publish-eTe8f9GW.js} +1 -1
  44. package/dist/viewer/board-1x39nYdt.js +1 -0
  45. package/dist/viewer/caliper-B-iy7d3J.js +1 -0
  46. package/dist/viewer/channel-DfmdMT7b.js +4 -0
  47. package/dist/viewer/chase-_uObxrW-.js +1 -0
  48. package/dist/viewer/clipboard-CpGor8NP.js +1 -0
  49. package/dist/viewer/counter-B1aSqJrm.js +1 -0
  50. package/dist/viewer/{crop-encode-Du8f2pW_.js → crop-encode-DypWnBAW.js} +1 -1
  51. package/dist/viewer/datestamp-LXgbHsZw.js +1 -0
  52. package/dist/viewer/{dist-s0YQWWEp.js → dist-B-dYctLP.js} +1 -1
  53. package/dist/viewer/{dist-DfGm2K2A.js → dist-BDNO-tHl.js} +1 -1
  54. package/dist/viewer/{dist-BNskZR5F.js → dist-BE7aG9wL.js} +1 -1
  55. package/dist/viewer/{dist-BJucjONA.js → dist-BEcVDLWX.js} +1 -1
  56. package/dist/viewer/{dist-CJg5zT8R.js → dist-BoBn12RO.js} +1 -1
  57. package/dist/viewer/{dist-B3iPN1CQ.js → dist-Bw5vigJM.js} +1 -1
  58. package/dist/viewer/{dist-Ds9-xM9K.js → dist-C4GFajbM.js} +1 -1
  59. package/dist/viewer/{dist-DWG4Q8aa.js → dist-CD5-UgfD.js} +1 -1
  60. package/dist/viewer/{dist-DRKSrSsy.js → dist-CMqojIVa.js} +1 -1
  61. package/dist/viewer/{dist-CYuTnsk4.js → dist-CVJd0j_p.js} +1 -1
  62. package/dist/viewer/dist-CZ6fAwl8.js +1 -0
  63. package/dist/viewer/{dist-CdkcqUCU.js → dist-CcwZbcEy.js} +1 -1
  64. package/dist/viewer/{dist-BhN8Hney.js → dist-CgbtG6DV.js} +1 -1
  65. package/dist/viewer/{dist-hCC4fA7b.js → dist-CoVs1rQP.js} +1 -1
  66. package/dist/viewer/{dist-CgT1zUVN.js → dist-CrEj-FmZ.js} +1 -1
  67. package/dist/viewer/{dist-BzOh9F-l.js → dist-DCrV_dvG.js} +1 -1
  68. package/dist/viewer/{dist-BSGIgFlN.js → dist-DQ5Gyy-R.js} +1 -1
  69. package/dist/viewer/{dist-CVVb5P4v.js → dist-DZ21ISHm.js} +1 -1
  70. package/dist/viewer/{dist-Dyp4-GuO.js → dist-Dr07xras.js} +1 -1
  71. package/dist/viewer/{dist-D-rimqOK.js → dist-DsVUaV5M.js} +1 -1
  72. package/dist/viewer/{dist-BSsAmLV9.js → dist-Duh5Ddgu.js} +1 -1
  73. package/dist/viewer/{dist-Bagijazw.js → dist-KxBzKD9T.js} +1 -1
  74. package/dist/viewer/{dist-Cbm5fpVU.js → dist-LHb2KBeH.js} +1 -1
  75. package/dist/viewer/{dist-CAwKXKoh.js → dist-OSy0oNdj.js} +1 -1
  76. package/dist/viewer/{dist-BI8QxvTl.js → dist-aayADgeV.js} +1 -1
  77. package/dist/viewer/{editor-D0_PTaBF.js → editor-DSQF_Yt-.js} +261 -261
  78. package/dist/viewer/{fit-BKnwwrfX.js → fit-DLUHubRB.js} +1 -1
  79. package/dist/viewer/frame-DLYIIAeZ.js +1 -0
  80. package/dist/viewer/galley-Tq5HLugH.js +1 -0
  81. package/dist/viewer/{icons-B_Ke0m09.js → icons-BQ63nuhk.js} +1 -1
  82. package/dist/viewer/imperative-LwQGfiLD.js +1 -0
  83. package/dist/viewer/index.html +13 -12
  84. package/dist/viewer/index.js +2 -2
  85. package/dist/viewer/index3.css +1 -1
  86. package/dist/viewer/index4.css +1 -1
  87. package/dist/viewer/index5.css +1 -6890
  88. package/dist/viewer/index6.css +6902 -0
  89. package/dist/viewer/inkcan-CI3Y3s9V.js +1 -0
  90. package/dist/viewer/ledger-_NJZe9Zi.js +1 -0
  91. package/dist/viewer/local-D4jzGVRa.js +1 -0
  92. package/dist/viewer/{local-split-host-CmTJyglq.js → local-split-host-BEfb-dm6.js} +1 -1
  93. package/dist/viewer/nameplate-QFQFNopG.js +1 -0
  94. package/dist/viewer/pigeonhole-7MPwh7jx.js +1 -0
  95. package/dist/viewer/pigeonhole-bare-CXrXPUy3.js +1 -0
  96. package/dist/viewer/plugin-_bGVeqI0-B4rQyJoT.js +2 -0
  97. package/dist/viewer/press-Ct8KIRv0.js +1 -0
  98. package/dist/viewer/preview.html +3 -3
  99. package/dist/viewer/preview.js +1 -1
  100. package/dist/viewer/{printDocument-hRZCt1s-.js → printDocument-DJXRj3SY.js} +1 -1
  101. package/dist/viewer/rack-B7aTZP_v.js +1 -0
  102. package/dist/viewer/recorder-DuEa8tav.js +1 -0
  103. package/dist/viewer/reel-CWJwFZWj.js +1 -0
  104. package/dist/viewer/{ref-4RDpuo4X.js → ref-CrEkSY88.js} +1 -1
  105. package/dist/viewer/{ref-problem-BLaLykVa.js → ref-problem-Dd5PNPHS.js} +1 -1
  106. package/dist/viewer/{route-Bfz02VQm.js → route-CQqRfwAr.js} +2 -2
  107. package/dist/viewer/{route-messages-Bg9VpCOu.js → route-messages-BKOt9eZO.js} +1 -1
  108. package/dist/viewer/settings-C7sgHejG.js +1 -0
  109. package/dist/viewer/showcase-BWJozZy-.js +1 -0
  110. package/dist/viewer/showcase-idle-7DpZQMol.js +1 -0
  111. package/dist/viewer/snap-DfESnSrC.js +1 -0
  112. package/dist/viewer/spike-bare-DlXWfE_B.js +1 -0
  113. package/dist/viewer/spike-k3c0qARg.js +1 -0
  114. package/dist/viewer/split-Db80exoE.js +2 -0
  115. package/dist/viewer/{stable-B4zaS4IW.js → stable-AJoMGF-k.js} +1 -1
  116. package/dist/viewer/stamps-DcaueBoj.js +1 -0
  117. package/dist/viewer/stick-Dkb8suof.js +1 -0
  118. package/dist/viewer/styles-Do9fD8eb.js +1 -0
  119. package/dist/viewer/transport-DJIhibS3.js +1 -0
  120. package/dist/viewer/typecase-BfWsjo8l.js +1 -0
  121. package/dist/viewer/url-s1iP5JjA.js +29 -0
  122. package/dist/viewer/{useArtifactFeed-CtZpd4VD.js → useArtifactFeed-C9FtfCRG.js} +1 -1
  123. package/dist/viewer/{useDrafts-D3-WMpKD.js → useDrafts-BLvLuDsj.js} +1 -1
  124. package/dist/viewer/useLayerZIndex-DkTnYEGy.js +1 -0
  125. package/dist/viewer/{usePointerShield-D8-IKHlE.js → usePointerShield-6dnoOPoe.js} +1 -1
  126. package/dist/viewer/{useRefBoard-pw46bvUH.js → useRefBoard-vpHQamEw.js} +1 -1
  127. package/dist/viewer/{useSlidesShots-CEzwiFmD.js → useSlidesShots-ELP76wwv.js} +1 -1
  128. package/dist/viewer/{useStoryboardData-eL1bCsil.js → useStoryboardData-C55Ef3as.js} +1 -1
  129. package/dist/viewer/{view-CRNSpmz1.js → view-D0cz0ElG.js} +1 -1
  130. package/dist/viewer/{viewport-CFJHn_Y6-z0aJhzvn.js → viewport-CFJHn_Y6-Cv-tYFWg.js} +1 -1
  131. package/package.json +1 -1
  132. package/dist/viewer/ArtboardLayout-CX5NSkVg.js +0 -14
  133. package/dist/viewer/ArtifactList-1ncsjLIw.js +0 -2
  134. package/dist/viewer/BrandingMark-C16tppRZ.js +0 -1
  135. package/dist/viewer/DocumentLayout-CfJPJXg_.js +0 -2
  136. package/dist/viewer/DocumentPage-ChMfbwey.js +0 -5
  137. package/dist/viewer/DraggablePanel-CIFvK2zc.js +0 -1
  138. package/dist/viewer/DropdownMenu-C0iP_G0l.js +0 -1
  139. package/dist/viewer/HtmlLayout-CG3Q79KX.js +0 -1
  140. package/dist/viewer/Input-DXcnzw6e.js +0 -1
  141. package/dist/viewer/MenuSubmenuTrigger-Doo2DaaP.js +0 -1
  142. package/dist/viewer/Popover-D2Ahav8i.js +0 -1
  143. package/dist/viewer/PreviewArtifactLayout-DorAKE8w.js +0 -1
  144. package/dist/viewer/PreviewLayout-De-ZiLMU.js +0 -2
  145. package/dist/viewer/ReportLayout-ZmSXZSBI.js +0 -6
  146. package/dist/viewer/SelectScrollUpArrow-YRqYwsev.js +0 -1
  147. package/dist/viewer/SlidesLayout-CBjQlFCW.js +0 -10
  148. package/dist/viewer/SocialPage-Cq75OQBV.js +0 -3
  149. package/dist/viewer/StoryboardLayout-D7bY--qM.js +0 -1
  150. package/dist/viewer/ThreadView-BNnqvgKI.js +0 -1
  151. package/dist/viewer/WhiteboardEditor-DrHOvXez-ndvWP_wS.js +0 -22
  152. package/dist/viewer/channel-809N-DO8.js +0 -4
  153. package/dist/viewer/dist-Drk-K20e.js +0 -1
  154. package/dist/viewer/imperative-BirDF7wD.js +0 -1
  155. package/dist/viewer/local-CcJZN9_k.js +0 -1
  156. package/dist/viewer/plugin-_bGVeqI0-C9I6ffUJ.js +0 -2
  157. package/dist/viewer/settings-DYkXJdM_.js +0 -1
  158. package/dist/viewer/snap-C_aK0lHA.js +0 -1
  159. package/dist/viewer/split-DLgin_A7.js +0 -2
  160. package/dist/viewer/styles-BjAmpO_o.js +0 -1
  161. package/dist/viewer/transport-1YvfC-IM.js +0 -1
  162. package/dist/viewer/url-CGj2TqgT.js +0 -29
  163. package/dist/viewer/useLayerZIndex-BqIbp84A.js +0 -1
@@ -0,0 +1,29 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{A as t,T as n,c as r,d as i,k as a,o,r as s,s as c,u as l,x as u}from"./route-CQqRfwAr.js";import{n as d,r as f,t as p}from"./bem-vbke-3KC.js";import{t as m}from"./react-DlmbjZJV.js";import{t as h}from"./jsx-runtime-LKYXHABd.js";import{$r as g,A as _,An as v,Ar as y,At as b,B as x,Bn as S,Br as C,Bt as w,C as T,Cn as E,Ct as D,Dn as O,Dt as k,E as A,En as j,Et as M,F as N,Fn as P,Ft as F,G as ee,Gn as I,Gr as L,Gt as te,Hn as R,Ht as ne,In as z,Ir as B,It as re,J as V,Jr as ie,K as ae,Kn as oe,Kr as H,Kt as se,Ln as ce,Lt as le,M as ue,Mt as de,N as fe,Nn as pe,Nt as me,On as U,Ot as he,P as ge,Pn as _e,Pr as W,Q as ve,Qn as ye,Qr as be,Rn as xe,Rt as Se,S as Ce,Sn as we,Sr as Te,St as Ee,T as De,Tn as Oe,Tt as ke,Un as Ae,Ut as je,V as Me,Vn as Ne,Vt as Pe,Wn as G,Wr as Fe,Xn as Ie,Xr as K,Yn as Le,Yr as Re,Zn as ze,Zr as Be,_ as Ve,_t as He,an as Ue,at as We,b as Ge,bn as Ke,bt as qe,cn as Je,dn as Ye,dr as Xe,dt as Ze,fn as Qe,fr as $e,ft as et,gn as tt,gt as nt,ht as rt,i as it,in as at,ir as ot,it as st,j as ct,jn as lt,jr as ut,jt as dt,k as ft,kn as pt,kr as mt,kt as ht,l as gt,ln as _t,lt as vt,mt as yt,nn as bt,nt as xt,on as St,or as Ct,ot as wt,pn as Tt,pt as Et,qn as Dt,qr as Ot,r as kt,rn as At,rr as jt,rt as Mt,sn as q,t as Nt,tn as Pt,un as Ft,ut as It,v as Lt,vn as Rt,vt as zt,w as Bt,wn as Vt,wr as Ht,wt as Ut,xt as Wt,y as Gt,yn as Kt,yt as qt,zn as Jt,zt as Yt}from"./useLayerZIndex-DkTnYEGy.js";import{$ as Xt,A as Zt,C as Qt,D as $t,Dt as J,E as en,F as tn,H as nn,J as rn,K as an,L as on,M as sn,O as cn,P as ln,Q as un,R as dn,S as fn,T as pn,U as mn,V as hn,W as gn,X as _n,Y as vn,Z as yn,_ as bn,_t as xn,a as Sn,at as Cn,b as wn,bt as Tn,ct as En,d as Dn,dt as On,et as kn,f as An,ft as jn,g as Mn,h as Nn,ht as Pn,i as Fn,it as In,j as Ln,k as Rn,l as zn,lt as Bn,m as Vn,mt as Hn,n as Un,nt as Wn,o as Gn,ot as Kn,pt as qn,q as Jn,r as Yn,rt as Xn,s as Zn,t as Qn,tt as $n,ut as er,v as tr,vt as nr,w as rr,wt as ir,x as ar,xt as or,y as sr,yt as cr,z as lr}from"./MotionConfigContext-BqjwrGj9.js";import{n as ur,t as dr}from"./is-html-element-DvgHo_1h.js";var Y=e(m(),1),fr=e=>{let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,t},pr=(0,Y.memo)(({url:e})=>{let t=(0,Y.useRef)(null);return(0,Y.useEffect)(()=>{let n=fr(e);document.head.append(n),t.current=n;let r=()=>console.error(`Failed to load font from ${e}`);return n.addEventListener(`error`,r),()=>{n.removeEventListener(`error`,r),n.remove(),t.current=null}},[e]),null});pr.displayName=`FontLoader`;var mr=`
2
+ [data-lobe-global-focus-ring] {
3
+ all: initial;
4
+ position: fixed;
5
+ position-anchor: --lobe-global-focus;
6
+ top: anchor(top);
7
+ right: anchor(right);
8
+ bottom: anchor(bottom);
9
+ left: anchor(left);
10
+ position-visibility: anchors-visible;
11
+ pointer-events: none;
12
+ border-radius: inherit;
13
+ outline: 2px solid ${(e=>`color-mix(in srgb, ${e} 90%, transparent)`)(`var(--lobe-focus-ring-color)`)};
14
+ outline-offset: 2px;
15
+ animation: lobe-global-focus-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
16
+ }
17
+ [data-lobe-global-focus-ring]:not(:popover-open) { display: none; }
18
+ [data-lobe-global-focus-ring]::backdrop { background: transparent; pointer-events: none; }
19
+ @keyframes lobe-global-focus-in {
20
+ from { opacity: 0.25; outline-offset: 5px; }
21
+ to { opacity: 1; outline-offset: 2px; }
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ [data-lobe-global-focus-ring] { animation: none; }
25
+ }
26
+ @media (forced-colors: active) {
27
+ [data-lobe-global-focus-ring] { outline-color: CanvasText; animation: none; }
28
+ }
29
+ `,hr=new WeakMap,gr=(e=document)=>{let t=hr.get(e);if(t){t.users+=1;let e=!1;return()=>{e||(e=!0,--t.users===0&&t.dispose())}}let n=e.defaultView;if(!n||!e.body||!n.CSS?.supports(`top`,`anchor(top)`)||!n.CSS.supports(`position-visibility`,`anchors-visible`)||!(`showPopover`in e.createElement(`div`)))return()=>{};let r=e.createElement(`style`);r.textContent=mr;let i=e.createElement(`div`);i.setAttribute(`data-lobe-global-focus-ring`,``),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`popover`,`manual`),e.head.append(r),e.body.append(i);let a,o,s=0,c=!1,l=()=>{i.matches(`:popover-open`)&&i.hidePopover(),o?.(),o=void 0,a=void 0},u=()=>{if(c)return;let t=e.activeElement;if(t===a&&t?.matches(`:focus-visible`)&&t.isConnected&&i.matches(`:popover-open`)||(l(),!t||t===e.body||t.namespaceURI!==`http://www.w3.org/1999/xhtml`||t.shadowRoot||t.closest(`[data-lobe-focus-ring="off"]`)||t.matches(`[data-lobe-focus-ring="self-off"]`)||t.matches(`textarea`)||t.isContentEditable||t.matches(`input`)&&![`button`,`submit`,`reset`,`image`,`checkbox`,`radio`,`range`,`color`,`file`].includes(t.type)||!t.matches(`:focus-visible`)))return;let r=t,s=r.parentElement;for(;s&&n.getComputedStyle(s).contain===`none`;)s=s.parentElement;let u=s||e.body,f=i.parentElement!==u;f&&u.append(i);let p=n.getComputedStyle(r),m=p.borderRadius,h=p.getPropertyValue(`--lobe-focus-ring-color`).trim()||p.getPropertyValue(`--lobe-color-info`).trim()||`#1677ff`,g=i.style.borderRadius!==m||i.style.getPropertyValue(`--lobe-focus-ring-color`)!==h;if(g&&(i.style.borderRadius=m,i.style.setProperty(`--lobe-focus-ring-color`,h)),f||g){d();return}let _=[`anchor-name`,`outline`].map(e=>({priority:r.style.getPropertyPriority(e),property:e,value:r.style.getPropertyValue(e)})),v=r.getAttribute(`data-lobe-focus-ring`),y=p.getPropertyValue(`anchor-name`).trim(),b=y&&y!==`none`?`${y}, --lobe-global-focus`:`--lobe-global-focus`;r.style.setProperty(`anchor-name`,b,`important`),o=()=>{for(let{property:e,value:t,priority:n}of _){let i=e===`anchor-name`?b:`none`;r.style.getPropertyValue(e)===i&&(t?r.style.setProperty(e,t,n):r.style.removeProperty(e))}r.getAttribute(`data-lobe-focus-ring`)===`managed`&&(v===null?r.removeAttribute(`data-lobe-focus-ring`):r.setAttribute(`data-lobe-focus-ring`,v))};let x=r.getBoundingClientRect();if(r.getClientRects().length!==1||!x.width||!x.height||p.visibility!==`visible`)l();else try{i.showPopover();let e=i.getBoundingClientRect();if(Math.max(...[`top`,`right`,`bottom`,`left`].map(t=>Math.abs(e[t]-x[t])))>1){l();return}r.style.setProperty(`outline`,`none`,`important`),r.setAttribute(`data-lobe-focus-ring`,`managed`),a=r}catch{l()}},d=()=>{s||=n.requestAnimationFrame(()=>{s=0,u()})},f=()=>n.queueMicrotask(u),p=()=>{n.cancelAnimationFrame(s),s=0,i.matches(`:popover-open`)&&i.hidePopover()},m=new MutationObserver(()=>{a&&!a.isConnected&&l()});return m.observe(e.body,{childList:!0,subtree:!0}),e.addEventListener(`focusin`,f,!0),e.addEventListener(`focusout`,d,!0),e.addEventListener(`keydown`,d,!0),e.addEventListener(`pointerdown`,d,!0),n.addEventListener(`blur`,p),n.addEventListener(`focus`,d),hr.set(e,{dispose:()=>{c=!0,n.cancelAnimationFrame(s),m.disconnect(),e.removeEventListener(`focusin`,f,!0),e.removeEventListener(`focusout`,d,!0),e.removeEventListener(`keydown`,d,!0),e.removeEventListener(`pointerdown`,d,!0),n.removeEventListener(`blur`,p),n.removeEventListener(`focus`,d),l(),i.remove(),r.remove(),hr.delete(e)},users:0}),u(),gr(e)},X=h(),_r=(0,Y.createContext)(null);(0,Y.memo)(({children:e,motion:t})=>(0,X.jsx)(_r,{value:t,children:e}));var vr=()=>{let e=(0,Y.use)(_r);if(!e)throw Error(`Please wrap your app with <ConfigProvider> (or <MotionProvider>) and pass the motion component`);return e},yr=`https://unpkg.com`,br=`https://registry.npmmirror.com`,xr=(e,...t)=>{let n=[e.replace(/\/+$/,``),...t.map(e=>e.replaceAll(/^\/+|\/+$/g,``))].filter(Boolean).join(`/`);return t.at(-1)?.endsWith(`/`)?`${n}/`:n},Sr=({pkg:e,version:t=`latest`,path:n,proxy:r})=>{switch(r){case`unpkg`:return xr(yr,`${e}@${t}`,n);default:return xr(br,e,t,`files`,n)}},Cr=[{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist-mono`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-harmony-sans`,version:`1.0.0`},{path:`css/index6.css`,pkg:`@lobehub/webfont-harmony-sans-sc`,version:`1.0.0`},{path:`dist/katex.min.css`,pkg:`katex`,version:`0.19.0`}],wr=`lobe-ui-theme-app`,Tr=(0,Y.createContext)(null),Er=(0,Y.createContext)(`ltr`),Dr=(0,Y.createContext)({locale:`en`,t:e=>e}),Or=e=>typeof e?.then==`function`,kr=(0,Y.memo)(({children:e,config:t,customFonts:n,direction:r=`ltr`,enableCustomFonts:i=!0,locale:a,resources:o,motion:s})=>{let[c,l]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{if(t?.globalFocusRing!==!1)return gr()},[t?.globalFocusRing]);let u=a??`en`,[d,f]=(0,Y.useState)(()=>o&&!Or(o)?o:void 0),[p,m]=(0,Y.useState)(u),h=(0,Y.useRef)(0);(0,Y.useEffect)(()=>{let e=++h.current;if(!o)f(void 0),m(u);else if(Or(o)){let t=u;o.then(n=>{h.current===e&&(f(n),m(t))}).catch(()=>{h.current})}else f(o),m(u)},[u,o]);let g=Or(o)?d:o,_=Or(o)?p:u,v=(0,Y.useMemo)(()=>{let e=Array.isArray(g)?g:g?Object.values(g):[],t=Object.assign({},...e);return{locale:_,t:e=>t[e]||e}},[_,g]);return(0,X.jsx)(Dr,{value:v,children:(0,X.jsx)(Tr,{value:t??null,children:(0,X.jsx)(Er,{value:r,children:(0,X.jsx)(_r,{value:s,children:(0,X.jsxs)(be,{value:c,children:[i&&(0,X.jsx)(jr,{customFonts:n}),e,(0,X.jsx)(`div`,{"data-lobe-portal-host":``,id:wr,ref:l,style:Ar})]})})})})})}),Ar={height:0,left:0,position:`fixed`,right:0,top:0,zIndex:1100},jr=({customFonts:e})=>{let t=Nr();return(0,Y.useMemo)(()=>e||Cr.map(e=>t(e)),[e,t]).map(e=>(0,X.jsx)(pr,{url:e},e))},Mr=({pkg:e,version:t,path:n})=>Sr({path:n,pkg:e,proxy:`aliyun`,version:t}),Nr=()=>{let e=(0,Y.use)(Tr);return e?e?.proxy===`custom`?e?.customCdnFn||Mr:({pkg:t,version:n,path:r})=>Sr({path:r,pkg:t,proxy:e.proxy,version:n}):Mr},Pr=()=>(0,Y.use)(Dr),Z=(e,n,r)=>{let i=t(e);return{className:f(i.className,n),style:i.style||r?{...i.style,...r}:void 0}};function Fr({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=Y.useRef(e!==void 0),[a,o]=Y.useState(()=>t);return[i&&e!==void 0?e:a,Y.useCallback(e=>{i||o(e)},[])]}var Ir=Y.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Lr(){return Y.useContext(Ir)}function Rr(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=K(i),[,o]=Y.useState(0),s=Be(Br).current,c=Be(zr).current,l=Y.useRef(0),u=Y.useRef(!0),d=Y.useRef(null),f=Y.useRef(null),p=K(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=K((e,t)=>{c.set(e,t),p()}),h=K(e=>{c.delete(e),p()}),g=K(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Ur(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Wr(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Hr(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=K(()=>{let[e,t]=Vr(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});H(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),H(()=>{u.current&&v()}),H(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=K(e=>(s.add(e),()=>{s.delete(e)})),b=Y.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,X.jsx)(Ir.Provider,{value:b,children:t})}function zr(){return new Map}function Br(){return new Set}function Vr(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Wr(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Hr(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Ur(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Wr(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Gr(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Lr(),u=Y.useRef(-1),[d,f]=Y.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=Y.useRef(null),h=Y.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return H(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Kr={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Kr.node;var qr=J(Kr),Jr={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Jr.node;var Yr=J(Jr),Xr={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Xr.node;var Zr=J(Xr),Qr={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Qr.node;var $r=J(Qr),ei={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`,`circle-alert`]};ei.node;var ti=J(ei),ni={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ni.node;var ri=J(ni),ii={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};ii.node;var ai=J(ii),oi={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};oi.node;var si=J(oi),ci={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};ci.node;var li=J(ci),ui={name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]};ui.node;var di=J(ui),fi={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};fi.node;var pi=J(fi),mi={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};mi.node;var hi=J(mi),gi={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};gi.node;var _i=J(gi),vi={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};vi.node;var yi=J(vi),bi={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};bi.node;var xi=J(bi),Si={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Si.node;var Ci=J(Si),wi={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};wi.node;var Ti=J(wi),Ei={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Ei.node;var Di=J(Ei),Oi={name:`mouse-pointer-2`,size:24,node:[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]};Oi.node;var ki=J(Oi),Ai={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Ai.node;var ji=J(Ai),Mi={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};Mi.node;var Ni=J(Mi),Pi={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Pi.node;var Fi=J(Pi),Ii={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ii.node;var Li=J(Ii),Ri=e(a(),1),zi={base:{kMwMTN:`lb934ymu`,kMv6JI:`lb11krtmt`,kV0H8L:`lbktt0n9`,krGR0G:`lb1itlwfz`,kcqcaj:`lbj8fevo`,kb6lSQ:`lb1i21sxh`,kLWn49:`lb1evy7pa`,kJwUce:`lb1403hyl`,$$css:!0},card:{kVAM5u:`lb1qvfc6x`,kaIpWk:`lb1qcdoec`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lbjti1iv`,kKwaWg:`lb8lesia`,kGVxlE:`lb1i0rfmy`,$$css:!0},label:{kMwMTN:`lb1b30gpp`,kGuDYH:`lb1ct8sxb`,k63SB2:`lbk50ysn`,$$css:!0},tabular:{kcqcaj:`lbss6m8b`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kVQacm:`lbb3r6kr`,kMwMTN:`lb934ymu`,kGuDYH:`lb4z9k3i`,k63SB2:`lb1s688f`,kb6lSQ:`lb1w69ole`,kLWn49:`lb1evy7pa`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},well:{kVAM5u:`lb1qvfc6x`,kaIpWk:`lb1q4ynmn`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lb1u84f2q`,$$css:!0}},Bi={info:{"--lobe-focus-ring-color":`lb155ckj2`,k44tkh:`lbe1ka5p lb11mn51e lb147fc9v`,kKVMdj:`lb1c1sa8k lbck0e01 lbp55ekp`,kyAemX:`lbgqpy2 lb171d7gl lb1bbl1vv`,kjBf7l:`lb1rxiahi lb1y5du2d`,kInvED:`lb1bf9hc9`,k3XXqK:`lb2xeow7`,kMeerF:`lbjls3y1`,$$css:!0}},Vi=(0,Y.createContext)({}),Hi=(0,Y.memo)(({children:e,config:t={}})=>(0,X.jsx)(Vi,{value:t,children:e})),Ui=()=>(0,Y.use)(Vi);function Wi(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function Gi(e){return typeof e==`object`&&!!e}function Ki(e){return typeof e==`number`||Gi(e)&&Wi(e)===`[object Number]`}var qi=e=>{if(Ki(e))return{size:e};let t,n;switch(e){case`large`:t=24,n=2;break;case`middle`:t=20,n=2;break;case`small`:t=14,n=2;break;default:e?(t=e?.size||24,n=e?.strokeWidth||2):(t=`1em`,n=2)}return{size:t,strokeWidth:n}},Ji=p({block:`icon`,dataAttributes:[`spin`],elements:[]}),Yi={root:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kLWn49:`lb14ju556`,kXLuUW:`lb1x7wgjd`,$$css:!0},spin:{k44tkh:`lb1q3qbx4`,ko0y90:`lba4qsjk`,kKVMdj:`lb1fhqo85`,kyAemX:`lb1esw782`,$$css:!0}},Xi=(0,Y.memo)(({icon:e,size:t,color:n,fill:r=`transparent`,className:i,focusable:a,spin:o,fillRule:s,fillOpacity:c,ref:l,...u})=>{let{color:p,fill:m,fillOpacity:h,fillRule:g,focusable:_,className:v,size:y,...b}=Ui(),{size:x,strokeWidth:S}=(0,Y.useMemo)(()=>qi(t||y),[t,y]),C=e;return(0,X.jsx)(`span`,{role:`img`,...d({spin:o}),className:Z([Yi.root,o&&Yi.spin],f(Ji(),`anticon`,v,i)).className,...b,...u,children:e&&((0,Y.isValidElement)(e)?e:(0,X.jsx)(C,{color:n||p,fill:r||m,fillOpacity:c||h,fillRule:s||g,focusable:a||_,height:x,ref:l,size:x,strokeWidth:S,width:x}))})});Xi.displayName=`Icon`;var Zi=(e=`default`,t=!1)=>{if(e===`link`)return`link`;if(e===`text`||t)return`ghost`;switch(e){case`primary`:return`primary`;case`dashed`:return`dashed`;case`fill`:return`secondary`;default:return`outline`}},Qi=({danger:e,ghost:t,type:n,variant:r})=>{let i=r??Zi(n,t);return{danger:!!e||i===`destructive`,primaryGhost:r===void 0&&!!t&&n===`primary`,variant:i}},$i=(e,t)=>{let{ghost:n,type:r,variant:i}=e??{};return{variant:i??(r!==void 0||n?void 0:t)}},ea=p({block:`button`,dataAttributes:[`variant`,`danger`,`size`,`shape`,`loading`,`block`,`type`,`ghost`],elements:[`icon`,`spinner`]});p({block:`split-button`,dataAttributes:[`variant`,`danger`,`size`,`loading`,`type`],elements:[`main`,`menu`]});var ta={borderRadiusOuter:`var(--lobe-border-radius-outer)`,colorTextLightSolid:`var(--lobe-color-text-light-solid)`,colorWhite:`var(--lobe-color-white)`,controlHeightLG:`var(--lobe-control-height-lg)`,controlHeightSM:`var(--lobe-control-height-sm)`,controlHeightXS:`var(--lobe-control-height-xs)`,controlInteractiveSize:`var(--lobe-control-interactive-size)`,controlOutlineWidth:`var(--lobe-control-outline-width)`,controlPaddingHorizontal:`var(--lobe-control-padding-horizontal)`,controlPaddingHorizontalSM:`var(--lobe-control-padding-horizontal-sm)`,fontHeight:`var(--lobe-font-height)`,fontHeightLG:`var(--lobe-font-height-lg)`,fontHeightSM:`var(--lobe-font-height-sm)`,fontSize:`var(--lobe-font-size)`,fontSizeHeading1:`var(--lobe-font-size-heading-1)`,fontSizeHeading2:`var(--lobe-font-size-heading-2)`,fontSizeHeading3:`var(--lobe-font-size-heading-3)`,fontSizeHeading4:`var(--lobe-font-size-heading-4)`,fontSizeHeading5:`var(--lobe-font-size-heading-5)`,fontSizeIcon:`var(--lobe-font-size-icon)`,fontSizeLG:`var(--lobe-font-size-lg)`,fontSizeSM:`var(--lobe-font-size-sm)`,fontSizeXL:`var(--lobe-font-size-xl)`,fontWeightStrong:`var(--lobe-font-weight-strong)`,lineHeight:`var(--lobe-line-height)`,lineHeightHeading1:`var(--lobe-line-height-heading-1)`,lineHeightHeading2:`var(--lobe-line-height-heading-2)`,lineHeightHeading3:`var(--lobe-line-height-heading-3)`,lineHeightHeading4:`var(--lobe-line-height-heading-4)`,lineHeightHeading5:`var(--lobe-line-height-heading-5)`,lineHeightLG:`var(--lobe-line-height-lg)`,lineHeightSM:`var(--lobe-line-height-sm)`,lineType:`var(--lobe-line-type)`,lineWidth:`var(--lobe-line-width)`,lineWidthBold:`var(--lobe-line-width-bold)`,lineWidthFocus:`var(--lobe-line-width-focus)`,linkDecoration:`var(--lobe-link-decoration)`,linkFocusDecoration:`var(--lobe-link-focus-decoration)`,linkHoverDecoration:`var(--lobe-link-hover-decoration)`,margin:`var(--lobe-margin)`,marginLG:`var(--lobe-margin-lg)`,marginMD:`var(--lobe-margin-md)`,marginSM:`var(--lobe-margin-sm)`,marginXL:`var(--lobe-margin-xl)`,marginXS:`var(--lobe-margin-xs)`,marginXXL:`var(--lobe-margin-xxl)`,marginXXS:`var(--lobe-margin-xxs)`,motionDurationFast:`var(--lobe-motion-duration-fast)`,motionDurationMid:`var(--lobe-motion-duration-mid)`,motionDurationSlow:`var(--lobe-motion-duration-slow)`,motionEaseInBack:`var(--lobe-motion-ease-in-back)`,motionEaseInOut:`var(--lobe-motion-ease-in-out)`,motionEaseInOutCirc:`var(--lobe-motion-ease-in-out-circ)`,motionEaseInQuint:`var(--lobe-motion-ease-in-quint)`,motionEaseOut:`var(--lobe-motion-ease-out)`,motionEaseOutBack:`var(--lobe-motion-ease-out-back)`,motionEaseOutCirc:`var(--lobe-motion-ease-out-circ)`,motionEaseOutQuint:`var(--lobe-motion-ease-out-quint)`,motionSpringBouncy:`var(--lobe-motion-spring-bouncy)`,motionSpringSmooth:`var(--lobe-motion-spring-smooth)`,motionSpringSnappy:`var(--lobe-motion-spring-snappy)`,opacityImage:`var(--lobe-opacity-image)`,opacityLoading:`var(--lobe-opacity-loading)`,padding:`var(--lobe-padding)`,paddingContentHorizontal:`var(--lobe-padding-content-horizontal)`,paddingContentHorizontalLG:`var(--lobe-padding-content-horizontal-lg)`,paddingContentHorizontalSM:`var(--lobe-padding-content-horizontal-sm)`,paddingContentVertical:`var(--lobe-padding-content-vertical)`,paddingContentVerticalLG:`var(--lobe-padding-content-vertical-lg)`,paddingContentVerticalSM:`var(--lobe-padding-content-vertical-sm)`,paddingLG:`var(--lobe-padding-lg)`,paddingMD:`var(--lobe-padding-md)`,paddingSM:`var(--lobe-padding-sm)`,paddingXL:`var(--lobe-padding-xl)`,paddingXS:`var(--lobe-padding-xs)`,paddingXXS:`var(--lobe-padding-xxs)`,pink:`var(--lobe-pink)`,screenLG:`var(--lobe-screen-lg)`,screenLGMax:`var(--lobe-screen-lg-max)`,screenLGMin:`var(--lobe-screen-lg-min)`,screenMD:`var(--lobe-screen-md)`,screenMDMax:`var(--lobe-screen-md-max)`,screenMDMin:`var(--lobe-screen-md-min)`,screenSM:`var(--lobe-screen-sm)`,screenSMMax:`var(--lobe-screen-sm-max)`,screenSMMin:`var(--lobe-screen-sm-min)`,screenXL:`var(--lobe-screen-xl)`,screenXLMax:`var(--lobe-screen-xl-max)`,screenXLMin:`var(--lobe-screen-xl-min)`,screenXS:`var(--lobe-screen-xs)`,screenXSMax:`var(--lobe-screen-xs-max)`,screenXSMin:`var(--lobe-screen-xs-min)`,screenXXL:`var(--lobe-screen-xxl)`,screenXXLMax:`var(--lobe-screen-xxl-max)`,screenXXLMin:`var(--lobe-screen-xxl-min)`,screenXXXL:`var(--lobe-screen-xxxl)`,screenXXXLMin:`var(--lobe-screen-xxxl-min)`,size:`var(--lobe-size)`,sizeLG:`var(--lobe-size-lg)`,sizeMD:`var(--lobe-size-md)`,sizeMS:`var(--lobe-size-ms)`,sizePopupArrow:`var(--lobe-size-popup-arrow)`,sizeSM:`var(--lobe-size-sm)`,sizeStep:`var(--lobe-size-step)`,sizeUnit:`var(--lobe-size-unit)`,sizeXL:`var(--lobe-size-xl)`,sizeXS:`var(--lobe-size-xs)`,sizeXXL:`var(--lobe-size-xxl)`,sizeXXS:`var(--lobe-size-xxs)`,zIndexBase:`var(--lobe-z-index-base)`,zIndexPopupBase:`var(--lobe-z-index-popup-base)`,borderRadius:`var(--lobe-border-radius)`,borderRadiusLG:`var(--lobe-border-radius-lg)`,borderRadiusSM:`var(--lobe-border-radius-sm)`,borderRadiusXS:`var(--lobe-border-radius-xs)`,controlHeight:`var(--lobe-control-height)`,fontFamily:`var(--lobe-font-family)`,fontFamilyCode:`var(--lobe-font-family-code)`,boxShadowCard:`var(--lobe-box-shadow-card)`,boxShadowDrawerDown:`var(--lobe-box-shadow-drawer-down)`,boxShadowDrawerLeft:`var(--lobe-box-shadow-drawer-left)`,boxShadowDrawerRight:`var(--lobe-box-shadow-drawer-right)`,boxShadowDrawerUp:`var(--lobe-box-shadow-drawer-up)`,boxShadowPopoverArrow:`var(--lobe-box-shadow-popover-arrow)`,boxShadowTabsOverflowBottom:`var(--lobe-box-shadow-tabs-overflow-bottom)`,boxShadowTabsOverflowLeft:`var(--lobe-box-shadow-tabs-overflow-left)`,boxShadowTabsOverflowRight:`var(--lobe-box-shadow-tabs-overflow-right)`,boxShadowTabsOverflowTop:`var(--lobe-box-shadow-tabs-overflow-top)`,colorBgBase:`var(--lobe-color-bg-base)`,colorBgBlur:`var(--lobe-color-bg-blur)`,colorBgSolid:`var(--lobe-color-bg-solid)`,colorBgSolidActive:`var(--lobe-color-bg-solid-active)`,colorBgSolidHover:`var(--lobe-color-bg-solid-hover)`,colorBorderDisabled:`var(--lobe-color-border-disabled)`,colorErrorBgActive:`var(--lobe-color-error-bg-active)`,colorErrorBgFilledHover:`var(--lobe-color-error-bg-filled-hover)`,colorShadow:`var(--lobe-color-shadow)`,colorTextBase:`var(--lobe-color-text-base)`,dropShadowPopover:`var(--lobe-drop-shadow-popover)`,pink1:`var(--lobe-pink-1)`,pink10:`var(--lobe-pink-10)`,pink2:`var(--lobe-pink-2)`,pink3:`var(--lobe-pink-3)`,pink4:`var(--lobe-pink-4)`,pink5:`var(--lobe-pink-5)`,pink6:`var(--lobe-pink-6)`,pink7:`var(--lobe-pink-7)`,pink8:`var(--lobe-pink-8)`,pink9:`var(--lobe-pink-9)`,pinkActive:`var(--lobe-pink-active)`,pinkHover:`var(--lobe-pink-hover)`,colorErrorFill:`var(--lobe-color-error-fill)`,colorErrorFillSecondary:`var(--lobe-color-error-fill-secondary)`,colorErrorFillTertiary:`var(--lobe-color-error-fill-tertiary)`,colorErrorFillQuaternary:`var(--lobe-color-error-fill-quaternary)`,colorErrorBg:`var(--lobe-color-error-bg)`,colorErrorBgHover:`var(--lobe-color-error-bg-hover)`,colorErrorBorder:`var(--lobe-color-error-border)`,colorErrorBorderHover:`var(--lobe-color-error-border-hover)`,colorErrorHover:`var(--lobe-color-error-hover)`,colorError:`var(--lobe-color-error)`,colorErrorActive:`var(--lobe-color-error-active)`,colorErrorTextHover:`var(--lobe-color-error-text-hover)`,colorErrorText:`var(--lobe-color-error-text)`,colorErrorTextActive:`var(--lobe-color-error-text-active)`,colorInfoFill:`var(--lobe-color-info-fill)`,colorInfoFillSecondary:`var(--lobe-color-info-fill-secondary)`,colorInfoFillTertiary:`var(--lobe-color-info-fill-tertiary)`,colorInfoFillQuaternary:`var(--lobe-color-info-fill-quaternary)`,colorInfoBg:`var(--lobe-color-info-bg)`,colorInfoBgHover:`var(--lobe-color-info-bg-hover)`,colorInfoBorder:`var(--lobe-color-info-border)`,colorInfoBorderHover:`var(--lobe-color-info-border-hover)`,colorInfoHover:`var(--lobe-color-info-hover)`,colorInfo:`var(--lobe-color-info)`,colorInfoActive:`var(--lobe-color-info-active)`,colorInfoTextHover:`var(--lobe-color-info-text-hover)`,colorInfoText:`var(--lobe-color-info-text)`,colorInfoTextActive:`var(--lobe-color-info-text-active)`,colorSuccessFill:`var(--lobe-color-success-fill)`,colorSuccessFillSecondary:`var(--lobe-color-success-fill-secondary)`,colorSuccessFillTertiary:`var(--lobe-color-success-fill-tertiary)`,colorSuccessFillQuaternary:`var(--lobe-color-success-fill-quaternary)`,colorSuccessBg:`var(--lobe-color-success-bg)`,colorSuccessBgHover:`var(--lobe-color-success-bg-hover)`,colorSuccessBorder:`var(--lobe-color-success-border)`,colorSuccessBorderHover:`var(--lobe-color-success-border-hover)`,colorSuccessHover:`var(--lobe-color-success-hover)`,colorSuccess:`var(--lobe-color-success)`,colorSuccessActive:`var(--lobe-color-success-active)`,colorSuccessTextHover:`var(--lobe-color-success-text-hover)`,colorSuccessText:`var(--lobe-color-success-text)`,colorSuccessTextActive:`var(--lobe-color-success-text-active)`,colorWarningFill:`var(--lobe-color-warning-fill)`,colorWarningFillSecondary:`var(--lobe-color-warning-fill-secondary)`,colorWarningFillTertiary:`var(--lobe-color-warning-fill-tertiary)`,colorWarningFillQuaternary:`var(--lobe-color-warning-fill-quaternary)`,colorWarningBg:`var(--lobe-color-warning-bg)`,colorWarningBgHover:`var(--lobe-color-warning-bg-hover)`,colorWarningBorder:`var(--lobe-color-warning-border)`,colorWarningBorderHover:`var(--lobe-color-warning-border-hover)`,colorWarningHover:`var(--lobe-color-warning-hover)`,colorWarning:`var(--lobe-color-warning)`,colorWarningActive:`var(--lobe-color-warning-active)`,colorWarningTextHover:`var(--lobe-color-warning-text-hover)`,colorWarningText:`var(--lobe-color-warning-text)`,colorWarningTextActive:`var(--lobe-color-warning-text-active)`,blue1:`var(--lobe-blue-1)`,blue2:`var(--lobe-blue-2)`,blue3:`var(--lobe-blue-3)`,blue4:`var(--lobe-blue-4)`,blue5:`var(--lobe-blue-5)`,blue6:`var(--lobe-blue-6)`,blue7:`var(--lobe-blue-7)`,blue8:`var(--lobe-blue-8)`,blue9:`var(--lobe-blue-9)`,blue10:`var(--lobe-blue-10)`,blue11:`var(--lobe-blue-11)`,blue1A:`var(--lobe-blue-1-a)`,blue2A:`var(--lobe-blue-2-a)`,blue3A:`var(--lobe-blue-3-a)`,blue4A:`var(--lobe-blue-4-a)`,blue5A:`var(--lobe-blue-5-a)`,blue6A:`var(--lobe-blue-6-a)`,blue7A:`var(--lobe-blue-7-a)`,blue8A:`var(--lobe-blue-8-a)`,blue9A:`var(--lobe-blue-9-a)`,blue10A:`var(--lobe-blue-10-a)`,blue11A:`var(--lobe-blue-11-a)`,blueFill:`var(--lobe-blue-fill)`,blueFillSecondary:`var(--lobe-blue-fill-secondary)`,blueFillTertiary:`var(--lobe-blue-fill-tertiary)`,blueFillQuaternary:`var(--lobe-blue-fill-quaternary)`,blueBg:`var(--lobe-blue-bg)`,blueBgHover:`var(--lobe-blue-bg-hover)`,blueBorder:`var(--lobe-blue-border)`,blueBorderSecondary:`var(--lobe-blue-border-secondary)`,blueBorderHover:`var(--lobe-blue-border-hover)`,blueHover:`var(--lobe-blue-hover)`,blue:`var(--lobe-blue)`,blueActive:`var(--lobe-blue-active)`,blueTextHover:`var(--lobe-blue-text-hover)`,blueText:`var(--lobe-blue-text)`,blueTextActive:`var(--lobe-blue-text-active)`,cyan1:`var(--lobe-cyan-1)`,cyan2:`var(--lobe-cyan-2)`,cyan3:`var(--lobe-cyan-3)`,cyan4:`var(--lobe-cyan-4)`,cyan5:`var(--lobe-cyan-5)`,cyan6:`var(--lobe-cyan-6)`,cyan7:`var(--lobe-cyan-7)`,cyan8:`var(--lobe-cyan-8)`,cyan9:`var(--lobe-cyan-9)`,cyan10:`var(--lobe-cyan-10)`,cyan11:`var(--lobe-cyan-11)`,cyan1A:`var(--lobe-cyan-1-a)`,cyan2A:`var(--lobe-cyan-2-a)`,cyan3A:`var(--lobe-cyan-3-a)`,cyan4A:`var(--lobe-cyan-4-a)`,cyan5A:`var(--lobe-cyan-5-a)`,cyan6A:`var(--lobe-cyan-6-a)`,cyan7A:`var(--lobe-cyan-7-a)`,cyan8A:`var(--lobe-cyan-8-a)`,cyan9A:`var(--lobe-cyan-9-a)`,cyan10A:`var(--lobe-cyan-10-a)`,cyan11A:`var(--lobe-cyan-11-a)`,cyanFill:`var(--lobe-cyan-fill)`,cyanFillSecondary:`var(--lobe-cyan-fill-secondary)`,cyanFillTertiary:`var(--lobe-cyan-fill-tertiary)`,cyanFillQuaternary:`var(--lobe-cyan-fill-quaternary)`,cyanBg:`var(--lobe-cyan-bg)`,cyanBgHover:`var(--lobe-cyan-bg-hover)`,cyanBorder:`var(--lobe-cyan-border)`,cyanBorderSecondary:`var(--lobe-cyan-border-secondary)`,cyanBorderHover:`var(--lobe-cyan-border-hover)`,cyanHover:`var(--lobe-cyan-hover)`,cyan:`var(--lobe-cyan)`,cyanActive:`var(--lobe-cyan-active)`,cyanTextHover:`var(--lobe-cyan-text-hover)`,cyanText:`var(--lobe-cyan-text)`,cyanTextActive:`var(--lobe-cyan-text-active)`,geekblue1:`var(--lobe-geekblue-1)`,geekblue2:`var(--lobe-geekblue-2)`,geekblue3:`var(--lobe-geekblue-3)`,geekblue4:`var(--lobe-geekblue-4)`,geekblue5:`var(--lobe-geekblue-5)`,geekblue6:`var(--lobe-geekblue-6)`,geekblue7:`var(--lobe-geekblue-7)`,geekblue8:`var(--lobe-geekblue-8)`,geekblue9:`var(--lobe-geekblue-9)`,geekblue10:`var(--lobe-geekblue-10)`,geekblue11:`var(--lobe-geekblue-11)`,geekblue1A:`var(--lobe-geekblue-1-a)`,geekblue2A:`var(--lobe-geekblue-2-a)`,geekblue3A:`var(--lobe-geekblue-3-a)`,geekblue4A:`var(--lobe-geekblue-4-a)`,geekblue5A:`var(--lobe-geekblue-5-a)`,geekblue6A:`var(--lobe-geekblue-6-a)`,geekblue7A:`var(--lobe-geekblue-7-a)`,geekblue8A:`var(--lobe-geekblue-8-a)`,geekblue9A:`var(--lobe-geekblue-9-a)`,geekblue10A:`var(--lobe-geekblue-10-a)`,geekblue11A:`var(--lobe-geekblue-11-a)`,geekblueFill:`var(--lobe-geekblue-fill)`,geekblueFillSecondary:`var(--lobe-geekblue-fill-secondary)`,geekblueFillTertiary:`var(--lobe-geekblue-fill-tertiary)`,geekblueFillQuaternary:`var(--lobe-geekblue-fill-quaternary)`,geekblueBg:`var(--lobe-geekblue-bg)`,geekblueBgHover:`var(--lobe-geekblue-bg-hover)`,geekblueBorder:`var(--lobe-geekblue-border)`,geekblueBorderSecondary:`var(--lobe-geekblue-border-secondary)`,geekblueBorderHover:`var(--lobe-geekblue-border-hover)`,geekblueHover:`var(--lobe-geekblue-hover)`,geekblue:`var(--lobe-geekblue)`,geekblueActive:`var(--lobe-geekblue-active)`,geekblueTextHover:`var(--lobe-geekblue-text-hover)`,geekblueText:`var(--lobe-geekblue-text)`,geekblueTextActive:`var(--lobe-geekblue-text-active)`,gold1:`var(--lobe-gold-1)`,gold2:`var(--lobe-gold-2)`,gold3:`var(--lobe-gold-3)`,gold4:`var(--lobe-gold-4)`,gold5:`var(--lobe-gold-5)`,gold6:`var(--lobe-gold-6)`,gold7:`var(--lobe-gold-7)`,gold8:`var(--lobe-gold-8)`,gold9:`var(--lobe-gold-9)`,gold10:`var(--lobe-gold-10)`,gold11:`var(--lobe-gold-11)`,gold1A:`var(--lobe-gold-1-a)`,gold2A:`var(--lobe-gold-2-a)`,gold3A:`var(--lobe-gold-3-a)`,gold4A:`var(--lobe-gold-4-a)`,gold5A:`var(--lobe-gold-5-a)`,gold6A:`var(--lobe-gold-6-a)`,gold7A:`var(--lobe-gold-7-a)`,gold8A:`var(--lobe-gold-8-a)`,gold9A:`var(--lobe-gold-9-a)`,gold10A:`var(--lobe-gold-10-a)`,gold11A:`var(--lobe-gold-11-a)`,goldFill:`var(--lobe-gold-fill)`,goldFillSecondary:`var(--lobe-gold-fill-secondary)`,goldFillTertiary:`var(--lobe-gold-fill-tertiary)`,goldFillQuaternary:`var(--lobe-gold-fill-quaternary)`,goldBg:`var(--lobe-gold-bg)`,goldBgHover:`var(--lobe-gold-bg-hover)`,goldBorder:`var(--lobe-gold-border)`,goldBorderSecondary:`var(--lobe-gold-border-secondary)`,goldBorderHover:`var(--lobe-gold-border-hover)`,goldHover:`var(--lobe-gold-hover)`,gold:`var(--lobe-gold)`,goldActive:`var(--lobe-gold-active)`,goldTextHover:`var(--lobe-gold-text-hover)`,goldText:`var(--lobe-gold-text)`,goldTextActive:`var(--lobe-gold-text-active)`,gray1:`var(--lobe-gray-1)`,gray2:`var(--lobe-gray-2)`,gray3:`var(--lobe-gray-3)`,gray4:`var(--lobe-gray-4)`,gray5:`var(--lobe-gray-5)`,gray6:`var(--lobe-gray-6)`,gray7:`var(--lobe-gray-7)`,gray8:`var(--lobe-gray-8)`,gray9:`var(--lobe-gray-9)`,gray10:`var(--lobe-gray-10)`,gray11:`var(--lobe-gray-11)`,gray1A:`var(--lobe-gray-1-a)`,gray2A:`var(--lobe-gray-2-a)`,gray3A:`var(--lobe-gray-3-a)`,gray4A:`var(--lobe-gray-4-a)`,gray5A:`var(--lobe-gray-5-a)`,gray6A:`var(--lobe-gray-6-a)`,gray7A:`var(--lobe-gray-7-a)`,gray8A:`var(--lobe-gray-8-a)`,gray9A:`var(--lobe-gray-9-a)`,gray10A:`var(--lobe-gray-10-a)`,gray11A:`var(--lobe-gray-11-a)`,grayFill:`var(--lobe-gray-fill)`,grayFillSecondary:`var(--lobe-gray-fill-secondary)`,grayFillTertiary:`var(--lobe-gray-fill-tertiary)`,grayFillQuaternary:`var(--lobe-gray-fill-quaternary)`,grayBg:`var(--lobe-gray-bg)`,grayBgHover:`var(--lobe-gray-bg-hover)`,grayBorder:`var(--lobe-gray-border)`,grayBorderSecondary:`var(--lobe-gray-border-secondary)`,grayBorderHover:`var(--lobe-gray-border-hover)`,grayHover:`var(--lobe-gray-hover)`,gray:`var(--lobe-gray)`,grayActive:`var(--lobe-gray-active)`,grayTextHover:`var(--lobe-gray-text-hover)`,grayText:`var(--lobe-gray-text)`,grayTextActive:`var(--lobe-gray-text-active)`,green1:`var(--lobe-green-1)`,green2:`var(--lobe-green-2)`,green3:`var(--lobe-green-3)`,green4:`var(--lobe-green-4)`,green5:`var(--lobe-green-5)`,green6:`var(--lobe-green-6)`,green7:`var(--lobe-green-7)`,green8:`var(--lobe-green-8)`,green9:`var(--lobe-green-9)`,green10:`var(--lobe-green-10)`,green11:`var(--lobe-green-11)`,green1A:`var(--lobe-green-1-a)`,green2A:`var(--lobe-green-2-a)`,green3A:`var(--lobe-green-3-a)`,green4A:`var(--lobe-green-4-a)`,green5A:`var(--lobe-green-5-a)`,green6A:`var(--lobe-green-6-a)`,green7A:`var(--lobe-green-7-a)`,green8A:`var(--lobe-green-8-a)`,green9A:`var(--lobe-green-9-a)`,green10A:`var(--lobe-green-10-a)`,green11A:`var(--lobe-green-11-a)`,greenFill:`var(--lobe-green-fill)`,greenFillSecondary:`var(--lobe-green-fill-secondary)`,greenFillTertiary:`var(--lobe-green-fill-tertiary)`,greenFillQuaternary:`var(--lobe-green-fill-quaternary)`,greenBg:`var(--lobe-green-bg)`,greenBgHover:`var(--lobe-green-bg-hover)`,greenBorder:`var(--lobe-green-border)`,greenBorderSecondary:`var(--lobe-green-border-secondary)`,greenBorderHover:`var(--lobe-green-border-hover)`,greenHover:`var(--lobe-green-hover)`,green:`var(--lobe-green)`,greenActive:`var(--lobe-green-active)`,greenTextHover:`var(--lobe-green-text-hover)`,greenText:`var(--lobe-green-text)`,greenTextActive:`var(--lobe-green-text-active)`,lime1:`var(--lobe-lime-1)`,lime2:`var(--lobe-lime-2)`,lime3:`var(--lobe-lime-3)`,lime4:`var(--lobe-lime-4)`,lime5:`var(--lobe-lime-5)`,lime6:`var(--lobe-lime-6)`,lime7:`var(--lobe-lime-7)`,lime8:`var(--lobe-lime-8)`,lime9:`var(--lobe-lime-9)`,lime10:`var(--lobe-lime-10)`,lime11:`var(--lobe-lime-11)`,lime1A:`var(--lobe-lime-1-a)`,lime2A:`var(--lobe-lime-2-a)`,lime3A:`var(--lobe-lime-3-a)`,lime4A:`var(--lobe-lime-4-a)`,lime5A:`var(--lobe-lime-5-a)`,lime6A:`var(--lobe-lime-6-a)`,lime7A:`var(--lobe-lime-7-a)`,lime8A:`var(--lobe-lime-8-a)`,lime9A:`var(--lobe-lime-9-a)`,lime10A:`var(--lobe-lime-10-a)`,lime11A:`var(--lobe-lime-11-a)`,limeFill:`var(--lobe-lime-fill)`,limeFillSecondary:`var(--lobe-lime-fill-secondary)`,limeFillTertiary:`var(--lobe-lime-fill-tertiary)`,limeFillQuaternary:`var(--lobe-lime-fill-quaternary)`,limeBg:`var(--lobe-lime-bg)`,limeBgHover:`var(--lobe-lime-bg-hover)`,limeBorder:`var(--lobe-lime-border)`,limeBorderSecondary:`var(--lobe-lime-border-secondary)`,limeBorderHover:`var(--lobe-lime-border-hover)`,limeHover:`var(--lobe-lime-hover)`,lime:`var(--lobe-lime)`,limeActive:`var(--lobe-lime-active)`,limeTextHover:`var(--lobe-lime-text-hover)`,limeText:`var(--lobe-lime-text)`,limeTextActive:`var(--lobe-lime-text-active)`,magenta1:`var(--lobe-magenta-1)`,magenta2:`var(--lobe-magenta-2)`,magenta3:`var(--lobe-magenta-3)`,magenta4:`var(--lobe-magenta-4)`,magenta5:`var(--lobe-magenta-5)`,magenta6:`var(--lobe-magenta-6)`,magenta7:`var(--lobe-magenta-7)`,magenta8:`var(--lobe-magenta-8)`,magenta9:`var(--lobe-magenta-9)`,magenta10:`var(--lobe-magenta-10)`,magenta11:`var(--lobe-magenta-11)`,magenta1A:`var(--lobe-magenta-1-a)`,magenta2A:`var(--lobe-magenta-2-a)`,magenta3A:`var(--lobe-magenta-3-a)`,magenta4A:`var(--lobe-magenta-4-a)`,magenta5A:`var(--lobe-magenta-5-a)`,magenta6A:`var(--lobe-magenta-6-a)`,magenta7A:`var(--lobe-magenta-7-a)`,magenta8A:`var(--lobe-magenta-8-a)`,magenta9A:`var(--lobe-magenta-9-a)`,magenta10A:`var(--lobe-magenta-10-a)`,magenta11A:`var(--lobe-magenta-11-a)`,magentaFill:`var(--lobe-magenta-fill)`,magentaFillSecondary:`var(--lobe-magenta-fill-secondary)`,magentaFillTertiary:`var(--lobe-magenta-fill-tertiary)`,magentaFillQuaternary:`var(--lobe-magenta-fill-quaternary)`,magentaBg:`var(--lobe-magenta-bg)`,magentaBgHover:`var(--lobe-magenta-bg-hover)`,magentaBorder:`var(--lobe-magenta-border)`,magentaBorderSecondary:`var(--lobe-magenta-border-secondary)`,magentaBorderHover:`var(--lobe-magenta-border-hover)`,magentaHover:`var(--lobe-magenta-hover)`,magenta:`var(--lobe-magenta)`,magentaActive:`var(--lobe-magenta-active)`,magentaTextHover:`var(--lobe-magenta-text-hover)`,magentaText:`var(--lobe-magenta-text)`,magentaTextActive:`var(--lobe-magenta-text-active)`,orange1:`var(--lobe-orange-1)`,orange2:`var(--lobe-orange-2)`,orange3:`var(--lobe-orange-3)`,orange4:`var(--lobe-orange-4)`,orange5:`var(--lobe-orange-5)`,orange6:`var(--lobe-orange-6)`,orange7:`var(--lobe-orange-7)`,orange8:`var(--lobe-orange-8)`,orange9:`var(--lobe-orange-9)`,orange10:`var(--lobe-orange-10)`,orange11:`var(--lobe-orange-11)`,orange1A:`var(--lobe-orange-1-a)`,orange2A:`var(--lobe-orange-2-a)`,orange3A:`var(--lobe-orange-3-a)`,orange4A:`var(--lobe-orange-4-a)`,orange5A:`var(--lobe-orange-5-a)`,orange6A:`var(--lobe-orange-6-a)`,orange7A:`var(--lobe-orange-7-a)`,orange8A:`var(--lobe-orange-8-a)`,orange9A:`var(--lobe-orange-9-a)`,orange10A:`var(--lobe-orange-10-a)`,orange11A:`var(--lobe-orange-11-a)`,orangeFill:`var(--lobe-orange-fill)`,orangeFillSecondary:`var(--lobe-orange-fill-secondary)`,orangeFillTertiary:`var(--lobe-orange-fill-tertiary)`,orangeFillQuaternary:`var(--lobe-orange-fill-quaternary)`,orangeBg:`var(--lobe-orange-bg)`,orangeBgHover:`var(--lobe-orange-bg-hover)`,orangeBorder:`var(--lobe-orange-border)`,orangeBorderSecondary:`var(--lobe-orange-border-secondary)`,orangeBorderHover:`var(--lobe-orange-border-hover)`,orangeHover:`var(--lobe-orange-hover)`,orange:`var(--lobe-orange)`,orangeActive:`var(--lobe-orange-active)`,orangeTextHover:`var(--lobe-orange-text-hover)`,orangeText:`var(--lobe-orange-text)`,orangeTextActive:`var(--lobe-orange-text-active)`,primary1:`var(--lobe-primary-1)`,primary2:`var(--lobe-primary-2)`,primary3:`var(--lobe-primary-3)`,primary4:`var(--lobe-primary-4)`,primary5:`var(--lobe-primary-5)`,primary6:`var(--lobe-primary-6)`,primary7:`var(--lobe-primary-7)`,primary8:`var(--lobe-primary-8)`,primary9:`var(--lobe-primary-9)`,primary10:`var(--lobe-primary-10)`,primary11:`var(--lobe-primary-11)`,primary1A:`var(--lobe-primary-1-a)`,primary2A:`var(--lobe-primary-2-a)`,primary3A:`var(--lobe-primary-3-a)`,primary4A:`var(--lobe-primary-4-a)`,primary5A:`var(--lobe-primary-5-a)`,primary6A:`var(--lobe-primary-6-a)`,primary7A:`var(--lobe-primary-7-a)`,primary8A:`var(--lobe-primary-8-a)`,primary9A:`var(--lobe-primary-9-a)`,primary10A:`var(--lobe-primary-10-a)`,primary11A:`var(--lobe-primary-11-a)`,primaryFill:`var(--lobe-primary-fill)`,primaryFillSecondary:`var(--lobe-primary-fill-secondary)`,primaryFillTertiary:`var(--lobe-primary-fill-tertiary)`,primaryFillQuaternary:`var(--lobe-primary-fill-quaternary)`,primaryBg:`var(--lobe-primary-bg)`,primaryBgHover:`var(--lobe-primary-bg-hover)`,primaryBorder:`var(--lobe-primary-border)`,primaryBorderSecondary:`var(--lobe-primary-border-secondary)`,primaryBorderHover:`var(--lobe-primary-border-hover)`,primaryHover:`var(--lobe-primary-hover)`,primary:`var(--lobe-primary)`,primaryActive:`var(--lobe-primary-active)`,primaryTextHover:`var(--lobe-primary-text-hover)`,primaryText:`var(--lobe-primary-text)`,primaryTextActive:`var(--lobe-primary-text-active)`,purple1:`var(--lobe-purple-1)`,purple2:`var(--lobe-purple-2)`,purple3:`var(--lobe-purple-3)`,purple4:`var(--lobe-purple-4)`,purple5:`var(--lobe-purple-5)`,purple6:`var(--lobe-purple-6)`,purple7:`var(--lobe-purple-7)`,purple8:`var(--lobe-purple-8)`,purple9:`var(--lobe-purple-9)`,purple10:`var(--lobe-purple-10)`,purple11:`var(--lobe-purple-11)`,purple1A:`var(--lobe-purple-1-a)`,purple2A:`var(--lobe-purple-2-a)`,purple3A:`var(--lobe-purple-3-a)`,purple4A:`var(--lobe-purple-4-a)`,purple5A:`var(--lobe-purple-5-a)`,purple6A:`var(--lobe-purple-6-a)`,purple7A:`var(--lobe-purple-7-a)`,purple8A:`var(--lobe-purple-8-a)`,purple9A:`var(--lobe-purple-9-a)`,purple10A:`var(--lobe-purple-10-a)`,purple11A:`var(--lobe-purple-11-a)`,purpleFill:`var(--lobe-purple-fill)`,purpleFillSecondary:`var(--lobe-purple-fill-secondary)`,purpleFillTertiary:`var(--lobe-purple-fill-tertiary)`,purpleFillQuaternary:`var(--lobe-purple-fill-quaternary)`,purpleBg:`var(--lobe-purple-bg)`,purpleBgHover:`var(--lobe-purple-bg-hover)`,purpleBorder:`var(--lobe-purple-border)`,purpleBorderSecondary:`var(--lobe-purple-border-secondary)`,purpleBorderHover:`var(--lobe-purple-border-hover)`,purpleHover:`var(--lobe-purple-hover)`,purple:`var(--lobe-purple)`,purpleActive:`var(--lobe-purple-active)`,purpleTextHover:`var(--lobe-purple-text-hover)`,purpleText:`var(--lobe-purple-text)`,purpleTextActive:`var(--lobe-purple-text-active)`,red1:`var(--lobe-red-1)`,red2:`var(--lobe-red-2)`,red3:`var(--lobe-red-3)`,red4:`var(--lobe-red-4)`,red5:`var(--lobe-red-5)`,red6:`var(--lobe-red-6)`,red7:`var(--lobe-red-7)`,red8:`var(--lobe-red-8)`,red9:`var(--lobe-red-9)`,red10:`var(--lobe-red-10)`,red11:`var(--lobe-red-11)`,red1A:`var(--lobe-red-1-a)`,red2A:`var(--lobe-red-2-a)`,red3A:`var(--lobe-red-3-a)`,red4A:`var(--lobe-red-4-a)`,red5A:`var(--lobe-red-5-a)`,red6A:`var(--lobe-red-6-a)`,red7A:`var(--lobe-red-7-a)`,red8A:`var(--lobe-red-8-a)`,red9A:`var(--lobe-red-9-a)`,red10A:`var(--lobe-red-10-a)`,red11A:`var(--lobe-red-11-a)`,redFill:`var(--lobe-red-fill)`,redFillSecondary:`var(--lobe-red-fill-secondary)`,redFillTertiary:`var(--lobe-red-fill-tertiary)`,redFillQuaternary:`var(--lobe-red-fill-quaternary)`,redBg:`var(--lobe-red-bg)`,redBgHover:`var(--lobe-red-bg-hover)`,redBorder:`var(--lobe-red-border)`,redBorderSecondary:`var(--lobe-red-border-secondary)`,redBorderHover:`var(--lobe-red-border-hover)`,redHover:`var(--lobe-red-hover)`,red:`var(--lobe-red)`,redActive:`var(--lobe-red-active)`,redTextHover:`var(--lobe-red-text-hover)`,redText:`var(--lobe-red-text)`,redTextActive:`var(--lobe-red-text-active)`,volcano1:`var(--lobe-volcano-1)`,volcano2:`var(--lobe-volcano-2)`,volcano3:`var(--lobe-volcano-3)`,volcano4:`var(--lobe-volcano-4)`,volcano5:`var(--lobe-volcano-5)`,volcano6:`var(--lobe-volcano-6)`,volcano7:`var(--lobe-volcano-7)`,volcano8:`var(--lobe-volcano-8)`,volcano9:`var(--lobe-volcano-9)`,volcano10:`var(--lobe-volcano-10)`,volcano11:`var(--lobe-volcano-11)`,volcano1A:`var(--lobe-volcano-1-a)`,volcano2A:`var(--lobe-volcano-2-a)`,volcano3A:`var(--lobe-volcano-3-a)`,volcano4A:`var(--lobe-volcano-4-a)`,volcano5A:`var(--lobe-volcano-5-a)`,volcano6A:`var(--lobe-volcano-6-a)`,volcano7A:`var(--lobe-volcano-7-a)`,volcano8A:`var(--lobe-volcano-8-a)`,volcano9A:`var(--lobe-volcano-9-a)`,volcano10A:`var(--lobe-volcano-10-a)`,volcano11A:`var(--lobe-volcano-11-a)`,volcanoFill:`var(--lobe-volcano-fill)`,volcanoFillSecondary:`var(--lobe-volcano-fill-secondary)`,volcanoFillTertiary:`var(--lobe-volcano-fill-tertiary)`,volcanoFillQuaternary:`var(--lobe-volcano-fill-quaternary)`,volcanoBg:`var(--lobe-volcano-bg)`,volcanoBgHover:`var(--lobe-volcano-bg-hover)`,volcanoBorder:`var(--lobe-volcano-border)`,volcanoBorderSecondary:`var(--lobe-volcano-border-secondary)`,volcanoBorderHover:`var(--lobe-volcano-border-hover)`,volcanoHover:`var(--lobe-volcano-hover)`,volcano:`var(--lobe-volcano)`,volcanoActive:`var(--lobe-volcano-active)`,volcanoTextHover:`var(--lobe-volcano-text-hover)`,volcanoText:`var(--lobe-volcano-text)`,volcanoTextActive:`var(--lobe-volcano-text-active)`,yellow1:`var(--lobe-yellow-1)`,yellow2:`var(--lobe-yellow-2)`,yellow3:`var(--lobe-yellow-3)`,yellow4:`var(--lobe-yellow-4)`,yellow5:`var(--lobe-yellow-5)`,yellow6:`var(--lobe-yellow-6)`,yellow7:`var(--lobe-yellow-7)`,yellow8:`var(--lobe-yellow-8)`,yellow9:`var(--lobe-yellow-9)`,yellow10:`var(--lobe-yellow-10)`,yellow11:`var(--lobe-yellow-11)`,yellow1A:`var(--lobe-yellow-1-a)`,yellow2A:`var(--lobe-yellow-2-a)`,yellow3A:`var(--lobe-yellow-3-a)`,yellow4A:`var(--lobe-yellow-4-a)`,yellow5A:`var(--lobe-yellow-5-a)`,yellow6A:`var(--lobe-yellow-6-a)`,yellow7A:`var(--lobe-yellow-7-a)`,yellow8A:`var(--lobe-yellow-8-a)`,yellow9A:`var(--lobe-yellow-9-a)`,yellow10A:`var(--lobe-yellow-10-a)`,yellow11A:`var(--lobe-yellow-11-a)`,yellowFill:`var(--lobe-yellow-fill)`,yellowFillSecondary:`var(--lobe-yellow-fill-secondary)`,yellowFillTertiary:`var(--lobe-yellow-fill-tertiary)`,yellowFillQuaternary:`var(--lobe-yellow-fill-quaternary)`,yellowBg:`var(--lobe-yellow-bg)`,yellowBgHover:`var(--lobe-yellow-bg-hover)`,yellowBorder:`var(--lobe-yellow-border)`,yellowBorderSecondary:`var(--lobe-yellow-border-secondary)`,yellowBorderHover:`var(--lobe-yellow-border-hover)`,yellowHover:`var(--lobe-yellow-hover)`,yellow:`var(--lobe-yellow)`,yellowActive:`var(--lobe-yellow-active)`,yellowTextHover:`var(--lobe-yellow-text-hover)`,yellowText:`var(--lobe-yellow-text)`,yellowTextActive:`var(--lobe-yellow-text-active)`,boxShadow:`var(--lobe-box-shadow)`,boxShadowSecondary:`var(--lobe-box-shadow-secondary)`,boxShadowTertiary:`var(--lobe-box-shadow-tertiary)`,colorErrorAffix:`var(--lobe-color-error-affix)`,colorHighlight:`var(--lobe-color-highlight)`,colorLink:`var(--lobe-color-link)`,colorLinkActive:`var(--lobe-color-link-active)`,colorLinkHover:`var(--lobe-color-link-hover)`,colorWarningAffix:`var(--lobe-color-warning-affix)`,colorPrimaryFill:`var(--lobe-color-primary-fill)`,colorPrimaryFillSecondary:`var(--lobe-color-primary-fill-secondary)`,colorPrimaryFillTertiary:`var(--lobe-color-primary-fill-tertiary)`,colorPrimaryFillQuaternary:`var(--lobe-color-primary-fill-quaternary)`,colorPrimaryBg:`var(--lobe-color-primary-bg)`,colorPrimaryBgHover:`var(--lobe-color-primary-bg-hover)`,colorPrimaryBorder:`var(--lobe-color-primary-border)`,colorPrimaryBorderHover:`var(--lobe-color-primary-border-hover)`,colorPrimaryHover:`var(--lobe-color-primary-hover)`,colorPrimary:`var(--lobe-color-primary)`,colorPrimaryActive:`var(--lobe-color-primary-active)`,colorPrimaryTextHover:`var(--lobe-color-primary-text-hover)`,colorPrimaryText:`var(--lobe-color-primary-text)`,colorPrimaryTextActive:`var(--lobe-color-primary-text-active)`,controlItemBgActive:`var(--lobe-control-item-bg-active)`,controlItemBgActiveHover:`var(--lobe-control-item-bg-active-hover)`,colorBgContainer:`var(--lobe-color-bg-container)`,colorBgElevated:`var(--lobe-color-bg-elevated)`,colorBgLayout:`var(--lobe-color-bg-layout)`,colorBgMask:`var(--lobe-color-bg-mask)`,colorBgSpotlight:`var(--lobe-color-bg-spotlight)`,colorBorder:`var(--lobe-color-border)`,colorBorderSecondary:`var(--lobe-color-border-secondary)`,colorFill:`var(--lobe-color-fill)`,colorFillQuaternary:`var(--lobe-color-fill-quaternary)`,colorFillSecondary:`var(--lobe-color-fill-secondary)`,colorFillTertiary:`var(--lobe-color-fill-tertiary)`,colorText:`var(--lobe-color-text)`,colorTextQuaternary:`var(--lobe-color-text-quaternary)`,colorTextSecondary:`var(--lobe-color-text-secondary)`,colorTextTertiary:`var(--lobe-color-text-tertiary)`,colorBgContainerDisabled:`var(--lobe-color-bg-container-disabled)`,colorBgContainerSecondary:`var(--lobe-color-bg-container-secondary)`,colorBgTextActive:`var(--lobe-color-bg-text-active)`,colorBgTextHover:`var(--lobe-color-bg-text-hover)`,colorBorderBg:`var(--lobe-color-border-bg)`,colorErrorOutline:`var(--lobe-color-error-outline)`,colorFillAlter:`var(--lobe-color-fill-alter)`,colorFillContent:`var(--lobe-color-fill-content)`,colorFillContentHover:`var(--lobe-color-fill-content-hover)`,colorIcon:`var(--lobe-color-icon)`,colorIconHover:`var(--lobe-color-icon-hover)`,colorSplit:`var(--lobe-color-split)`,colorTextDescription:`var(--lobe-color-text-description)`,colorTextDisabled:`var(--lobe-color-text-disabled)`,colorTextHeading:`var(--lobe-color-text-heading)`,colorTextLabel:`var(--lobe-color-text-label)`,colorTextPlaceholder:`var(--lobe-color-text-placeholder)`,colorWarningOutline:`var(--lobe-color-warning-outline)`,controlItemBgActiveDisabled:`var(--lobe-control-item-bg-active-disabled)`,controlItemBgHover:`var(--lobe-control-item-bg-hover)`,controlTmpOutline:`var(--lobe-control-tmp-outline)`};`${ta.colorBgContainer}`;var Q={base:{kVAM5u:`lbqnr5ac`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb17d4w8g`,kybGjl:`lb1hl2dhg`,kmkexE:`lb15xd0no`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb126qsmr`,k1xSpc:`lb3nfvp2`,k63SB2:`lbk50ysn`,kjj79g:`lbl56j7k`,kLWn49:`lbo5v014`,kSiTet:`lby3kg0r`,kfzvcC:`lb1cp6yjb`,kVAEAm:`lb1n2onr6`,khDVqt:`lbuxw1ft`,$$css:!0},sizeSmall:{"--button-padding-inline":`lb1xvjv2a`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lbfifm61`,kZKoxP:`lbxk0z11`,$$css:!0},sizeMiddle:{"--button-padding-inline":`lb1l3x1nm`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lb4z9k3i`,kZKoxP:`lb10w6t97`,$$css:!0},sizeLarge:{"--button-padding-inline":`lb1r8q1i9`,kaIpWk:`lb1sbi92r`,kg3NbH:`lb1v42klx`,kGuDYH:`lbif65rj`,kZKoxP:`lb1vqgdyp`,$$css:!0},outdentStart:{keTefX:`lbugkenv`,$$css:!0},outdentEnd:{k71WvV:`lb8o6c4q`,$$css:!0},shapeCircle:{kaIpWk:`lb16rqkct`,kg3NbH:`lbnjsko4`,$$css:!0},shapeRound:{kaIpWk:`lb1e6avla`,$$css:!0},block:{kzqmXN:`lbh8yej3`,$$css:!0},iconEnd:{kXwgrk:`lb15zctf7`,$$css:!0},iconOnlySmall:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lbvy4d1p`,$$css:!0},iconOnlyMiddle:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb1td3qas`,$$css:!0},iconOnlyLarge:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb100vrsf`,$$css:!0},iconBox:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,$$css:!0},spinnerSlot:{kVQacm:`lb1rea2x4`,kmkexE:`lbp7890b`,kmuXW:`lb2lah0s`,k71WvV:`lb1ws5yxj`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbnalus7`,$$css:!0},spinnerSlotEnd:{k71WvV:`lb14z9mp`,keTefX:`lbw01apr`,$$css:!0},spinnerSlotShow:{k71WvV:`lb14z9mp`,keTefX:`lb1lziwak`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerStacked:{kBCFzs:`lbgkxs2y`,kbNqZ1:`lb1ms6mhf`,kmuXW:`lb2lah0s`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0},iconStack:{kgQiWS:`lb1ku5rj1`,k1xSpc:`lbwz0xwf`,$$css:!0},iconGlyph:{kBCFzs:`lbgkxs2y`,kbNqZ1:`lb1ms6mhf`,kmkexE:`lb1ja9v0h`,$$css:!0},iconGlyphHide:{kSiTet:`lbg01cxk`,k3aq6I:`lb1a33avv`,$$css:!0},spinnerVisual:{kmkexE:`lb1ja9v0h`,k87sOh:`lb13vifvy`,kLqNvP:`lb1o0tod`,kSiTet:`lbg01cxk`,kVAEAm:`lb10l6tqk`,k3aq6I:`lb1a33avv`,k3nNDw:`lb1g0ag68`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisualShow:{kSiTet:`lb1hc1fzr`,k3aq6I:`lb3oybdh`,$$css:!0},variantDefault:{kVAM5u:`lb1hp26e lb1unke58`,kWkggS:`lb1rc61lj`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantPrimary:{kVAM5u:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj`,kWkggS:`lb65u3hq lb1hsafae lb1n16ko lbep1hoi`,kMwMTN:`lb15g0kca`,$$css:!0},variantDashed:{kVAM5u:`lb1hp26e lb1unke58`,ksu8eU:`lbbsl7fq`,kWkggS:`lb1rc61lj`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbaljia1 lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},variantText:{"--button-padding-inline":`lb1wdnxgk`,kVAM5u:`lb9r1u3d`,kg3NbH:`lbnjsko4`,kWkggS:`lbjbqb8w`,kMwMTN:`lbc77et8 lbnukedi`,$$css:!0},variantLink:{kVAM5u:`lb9r1u3d`,kg3NbH:`lbnjsko4`,kWkggS:`lbjbqb8w`,kMwMTN:`lb16owwnm lbvdzly1`,$$css:!0},dangerOutlined:{kVAM5u:`lb1mpi7gh lbs8cwth`,kWkggS:`lb1ovlner lb1rc61lj lbl79ibe`,kKwaWg:null,kMwMTN:`lb12ap7uz`,$$css:!0},dangerSolid:{kVAM5u:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq`,kWkggS:`lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph`,kMwMTN:`lb15g0kca`,$$css:!0},dangerFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lbrq8w1b lb1f2tfg0 lb1lf6bdk`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerInline:{kMwMTN:`lb12ap7uz lbcu7z5f`,$$css:!0},dangerText:{kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},ghostDefault:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},ghostPrimary:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lbjwxqu3 lb16owwnm lbpro1qx`,$$css:!0},ghostDanger:{kVAM5u:`lb9r1u3d`,kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},spinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbvndefy`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,kB7OPa:`lb9f619`,k1xSpc:`lb1rg5ohu`,kmuXW:`lb2lah0s`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};({className:`lbqnr5ac lb1y0btm7 lbmkeg23 lb17d4w8g lb1hl2dhg lb15xd0no lb6s0dn4 lb9f619 lb1ypdohk lb126qsmr lb3nfvp2 lbk50ysn lbl56j7k lbo5v014 lby3kg0r lb1cp6yjb lb1n2onr6 lbuxw1ft`}).className,{className:`lb1xvjv2a lb1vihcfj lb1v42klx lbfifm61 lbxk0z11`}.className,{className:`lb1l3x1nm lb1vihcfj lb1v42klx lb4z9k3i lb10w6t97`}.className,{className:`lb1r8q1i9 lb1sbi92r lb1v42klx lbif65rj lb1vqgdyp`}.className,{className:`lbugkenv`}.className,{className:`lb8o6c4q`}.className,{className:`lb16rqkct lbnjsko4`}.className,{className:`lb1e6avla`}.className,{className:`lbh8yej3`}.className,{className:`lb15zctf7`}.className,{className:`lb1wdnxgk lbnjsko4 lbvy4d1p`}.className,{className:`lb1wdnxgk lbnjsko4 lb1td3qas`}.className,{className:`lb1wdnxgk lbnjsko4 lb100vrsf`}.className,{className:`lb6s0dn4 lb3nfvp2 lbl56j7k`}.className,{className:`lb1rea2x4 lbp7890b lb2lah0s lb1ws5yxj lb1n2onr6 lb1kpxq89 lbnalus7`}.className,{className:`lb14z9mp lbw01apr`}.className,{className:`lb14z9mp lb1lziwak lbsmyaan`}.className,{className:`lb1ja9v0h lb13vifvy lb1o0tod lbg01cxk lb10l6tqk lb1a33avv lb1g0ag68 lb1kpxq89 lbsmyaan`}.className,{className:`lb1hc1fzr lb3oybdh`}.className,{className:`lbgkxs2y lb1ms6mhf lb2lah0s lb1n2onr6 lb1kpxq89 lbsmyaan`}.className,{className:`lb1ku5rj1 lbwz0xwf`}.className,{className:`lbgkxs2y lb1ms6mhf lb1ja9v0h`}.className,{className:`lbg01cxk lb1a33avv`}.className,{className:`lb1hp26e lb1unke58 lb1rc61lj lb1hdlj1n lbx7ggy6 lb66ogz0`}.className,{className:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj lb65u3hq lb1hsafae lb1n16ko lbep1hoi lb15g0kca`}.className,{className:`lb1hp26e lb1unke58 lbbsl7fq lb1rc61lj lb1hdlj1n lbx7ggy6 lb66ogz0`}.className,{className:`lb9r1u3d lb1qlulce lbaljia1 lb5d67gy lb66ogz0`}.className,{className:`lb1wdnxgk lb9r1u3d lbnjsko4 lbjbqb8w lbc77et8 lbnukedi`}.className,{className:`lb9r1u3d lbnjsko4 lbjbqb8w lb16owwnm lbvdzly1`}.className,{className:`lb1mpi7gh lbs8cwth lb1ovlner lb1rc61lj lbl79ibe lb12ap7uz`}.className,{className:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph lb15g0kca`}.className,{className:`lb9r1u3d lbrq8w1b lb1f2tfg0 lb1lf6bdk lb12ap7uz`}.className,{className:`lb14kxky9 lbjbqb8w lb3lzv3l lb12ap7uz`}.className,{className:`lb12ap7uz lbcu7z5f`}.className,{className:`lb9r1u3d lb1qlulce lbjbqb8w lb5d67gy lb66ogz0`}.className,{className:`lb9r1u3d lb1qlulce lbjbqb8w lb5d67gy lbjwxqu3 lb16owwnm lbpro1qx`}.className,{className:`lb9r1u3d lb14kxky9 lbjbqb8w lb3lzv3l lb12ap7uz`}.className,{className:`lb181nr7w lb16rqkct lb1y0btm7 lbvndefy lbdz8niu lba4qsjk lb1v0ides lb1esw782 lb1v8p93f lb9f619 lb1rg5ohu lb2lah0s lb1kpxq89 lbsmyaan`}.className;var na=e=>e==null?null:(0,Y.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,X.jsx)(Xi,{icon:e,size:`small`}),ra=e=>e===`small`?Q.sizeSmall:e===`large`?Q.sizeLarge:Q.sizeMiddle,ia=e=>e===`small`?Q.iconOnlySmall:e===`large`?Q.iconOnlyLarge:Q.iconOnlyMiddle,aa=({danger:e,primaryGhost:t,variant:n})=>{switch(n){case`primary`:case`destructive`:return e?Q.dangerSolid:Q.variantPrimary;case`secondary`:return e?Q.dangerFill:Q.variantFill;case`dashed`:return[Q.variantDashed,e&&Q.dangerOutlined];case`ghost`:return e?Q.ghostDanger:t?Q.ghostPrimary:Q.ghostDefault;case`text`:return[Q.variantText,e&&Q.dangerInline];case`link`:return[Q.variantLink,e&&Q.dangerInline];default:return[Q.variantDefault,e&&Q.dangerOutlined]}},oa={scale:.98},sa={damping:26,mass:.6,stiffness:600,type:`spring`},ca=({block:e,children:n,className:r,classNames:i,danger:a,disabled:o,outdent:s,ghost:c,href:l,htmlType:u=`button`,icon:p,iconPosition:m=`start`,loading:h,onClick:g,ref:_,shape:v=`default`,size:y=`middle`,stableData:b,styles:x,target:S,type:C,variant:w,xstyle:T,...E})=>{let D=vr(),O=(0,Y.useRef)(null),k=(0,Y.useRef)(null),[A,j]=(0,Y.useState)(!!h);h&&!A&&j(!0),(0,Y.useLayoutEffect)(()=>{if(h||!A)return;let e=[...O.current?.getAnimations?.()??[],...k.current?.getAnimations?.()??[]].filter(e=>`transitionProperty`in e),t=!1;return Promise.allSettled(e.map(e=>e.finished)).then(()=>{t||j(!1)}),()=>{t=!0}},[h,A]);let M=o||h,N=ra(y),P=Qi({danger:a,ghost:c,type:C,variant:w}),F=aa(P),ee=v===`circle`?Q.shapeCircle:v===`round`?Q.shapeRound:void 0,I=n!=null&&n!==!1&&n!==``,L=!!p,te=!I&&(h||p||h!==void 0)?ia(y):void 0,R=C===`text`&&w===void 0&&s?s===`end`?Q.outdentEnd:Q.outdentStart:void 0,ne=Z([Q.base,Bi.info,N,F,ee,e&&Q.block,m===`end`&&Q.iconEnd,te,R,T],f(ea(),r)).className,z=b??d({block:e,danger:P.danger,ghost:c,loading:h,shape:v,size:y,type:C??(w===void 0?`default`:void 0),variant:P.variant}),B=(0,X.jsx)(`span`,{"aria-hidden":!h,ref:O,...L?Z([Q.iconBox,Q.spinnerStacked],ea(`spinner`)):Z([Q.iconBox,Q.spinnerSlot,m===`end`&&Q.spinnerSlotEnd,(h||!I)&&Q.spinnerSlotShow],f(ea(`spinner`),i?.icon),x?.icon),children:(0,X.jsx)(`span`,{ref:k,...t(Q.spinnerVisual,h&&Q.spinnerVisualShow),children:(h||A)&&(0,X.jsx)(`span`,{...t(Q.spinner)})})}),re=L?(0,X.jsxs)(`span`,{...Z([Q.iconBox,Q.iconStack],f(ea(`icon`),i?.icon),x?.icon),children:[(0,X.jsx)(`span`,{"aria-hidden":h||void 0,...t(Q.iconBox,Q.iconGlyph,h&&Q.iconGlyphHide),children:na(p)}),B]}):null,V=(0,X.jsxs)(X.Fragment,{children:[L?re:B,n]}),ie=M?{}:{transition:sa,whileTap:oa};if(l!==void 0){let e=e=>{M?e.preventDefault():g?.(e)};return(0,X.jsx)(D.a,{"aria-busy":h||void 0,"aria-disabled":M||void 0,href:o?void 0:l,target:S,...z,...E,className:ne,ref:_,onClick:e,...ie,children:V})}let ae=e=>{M?e.preventDefault():g?.(e)};return(0,X.jsx)(D.button,{type:u,...z,...E,"aria-busy":h||void 0,"aria-disabled":M||void 0,className:ne,disabled:o,ref:_,onClick:ae,...ie,children:V})};ca.displayName=`BaseButton`;var la=ca;function ua(e,t){return t!=null&&!_t(t)?0:typeof e==`function`?e():e}function da(e,t,n){let r=ua(e,n);return typeof r==`number`?r:r?.[t]}function fa(e){return typeof e==`function`?e():e}function pa(e,t){return t||e===`click`||e===`mousedown`}function ma(e){return e?.includes(`mouse`)&&e!==`mousedown`}function ha(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=ut}=t,l=e.context.dataRef,u=Y.useRef(void 0),d=jt(),f=O(),p=Y.useMemo(()=>{function t(t,n,r,i){let a=W(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=_t(e.pointerType,!0)&&Ye(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||_t(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=Je(s),p=ne(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:_t(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return Y.useMemo(()=>n?{reference:p}:ie,[n,p])}var ga=T();function _a(e){let t=Y.useCallback(t=>e===void 0?Re:e.subscribeStore(t),[e]),n=Y.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,ga.useSyncExternalStore)(t,n,()=>e?.serverStore)}var va=Kt&&tt;function ya(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=Y.useRef(!1),s=Y.useRef(null),c=Y.useRef(!0),l=O();Y.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=R(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&I(t)&&t===Ue(lt(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return le(U(r,`blur`,i),va&&U(r,`keydown`,a,!0),va&&U(r,`pointerdown`,l,!0))},[e,n]),Y.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);G(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=Y.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=Je(n.nativeEvent);if(G(a)){if(va&&!n.relatedTarget){if(!c.current&&!ne(a))return}else if(!je(a))return}let u=w(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,W(mt,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,W(mt,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=G(r)&&r.hasAttribute(Mt(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=Ue(lt(t));!r&&n===t||q(a.current.floatingContext?.refs.floating.current,n)||q(t,n)||o||w(r??n,e.context.triggerElements)||e.setOpen(!1,W(mt,i))})}}},[a,r,e,l]);return Y.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var ba=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new j;restTimeout=new j;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},xa=new WeakMap;function Sa(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&xa.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),xa.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Ca(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=xa.get(n);a&&a!==e&&Sa(a),Sa(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,xa.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function wa(e){let t=e.context.dataRef.current,n=Be(()=>t.hoverInteractionState??ba.create()).current;return t.hoverInteractionState||=n,ot(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ta(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=ae(),u=ee(),d=wa(e),f=O(),p=K(()=>pa(c.current.openEvent?.type,d.interactedInside)),m=K(()=>ma(c.current.openEvent?.type)),h=K(()=>{Sa(d)});H(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),Y.useEffect(()=>h,[h]),H(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&G(s)&&o){let e=s,t=o,n=lt(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??St(e,`[data-rootownerid]`)??n.body;return Ca(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),Y.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&st(l.nodesRef.current,u).length>0)}function a(t){let n=da(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,W(y,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=Je(e);Yt(t)?d.interactedInside=St(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(w(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&G(o)&&st(l.nodesRef.current,r,!1).some(e=>q(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,W(y,n)),l.events.emit(`floating.closed`,n)})}let b=o;return le(b&&U(b,`mouseenter`,g),b&&U(b,`mouseleave`,_),b&&U(b,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var Ea={current:null};function Da(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Ea,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=ae(l),v=wa(e),b=Y.useRef(!1),x=Oe(i),S=Oe(r),C=Oe(o),T=Oe(n),E=Oe(p),D=Oe(f),O=K(()=>pa(h.current.openEvent?.type,v.interactedInside)),k=K(()=>E.current?.()!==!1),A=K((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!q(t,n);if(!G(r))return!1;let a=r;return i.hasMatchingElement(e=>q(e,a))&&(!t||!q(t,a))}),j=K(()=>{v.handler&&=(lt(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),M=K(()=>{Sa(v)});return u&&(v.handleCloseOptions=i?.__options),Y.useEffect(()=>j,[j]),Y.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===y,j(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,j]),Y.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=da(S.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,W(y,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,W(y,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!G(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!_t(v.pointerType))return;let n=fa(C.current),r=da(S.current,`open`,v.pointerType),i=Je(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(G(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(q(t,i)){c=t;break}}G(o)&&G(s)&&!e.context.triggerElements.hasElement(o)&&q(o,s)&&(c=s);let l=c!=null&&A(s,c,i),u=e.select(`open`),d=D.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&b.current,p=!l&&G(c)&&G(s)&&q(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?k()&&e.setOpen(!0,W(y,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&k()&&e.setOpen(!0,W(y,t,c))}):g&&k()&&e.setOpen(!0,W(y,t,c)))}function o(n){if(O()){M();return}j();let r=e.select(`domReferenceElement`),i=lt(r);v.restTimeout.clear(),v.restTimeoutPending=!1;let a=h.current.floatingContext??d?.();if(!w(n.relatedTarget,e.context.triggerElements)){if(x.current&&a){e.select(`open`)||v.openChangeTimeout.clear();let r=c.current;v.handler=x.current({...a,tree:_,x:n.clientX,y:n.clientY,onClose(){M(),j(),T.current&&!O()&&r===e.select(`domReferenceElement`)&&t(n,!0)}}),i.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&q(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){q(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?U(r,`mouseout`,l):void 0;return s?le(U(r,`mousemove`,i,{once:!0}),U(r,`mouseenter`,i),U(r,`mouseleave`,o),f):le(U(r,`mouseenter`,i),U(r,`mouseleave`,o),f)},[j,M,h,S,e,n,x,v,u,A,O,a,s,C,c,_,T,d,D,k,m]),Y.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=A(i,r,t.target);if(a&&!_t(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;Ca(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=fa(C.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,O())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&k()&&e.setOpen(!0,W(y,n,r))}v.pointerType===`touch`?Ri.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,O,A,a,e,C,k])}function Oa(e){return tt&&e.movementX===0&&e.movementY===0}function ka(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Aa(e,t){return ka(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function ja(e,t,n){return ka(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Ma(e,t,n){return ka(t,n?e===bt:e===At,e===Pt)}function Na(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:ka(t,n?e===At:e===bt,e===at)}function Pa(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=Se(E),A=Pe(D),j=Oe(k),M=ee(),N=ae(x),P=Y.useRef(f),F=Y.useRef(o??-1),L=Y.useRef(null),te=Y.useRef(!0),R=K(e=>{i(F.current===-1?null:F.current,e)}),z=Y.useRef(!!E),B=Y.useRef(T),re=Y.useRef(!1),V=Y.useRef(!1),ie=Y.useRef(null),oe=Oe(h),se=Oe(T),ce=Oe(o),le=Oe(b),ue=jt(),de=jt(),fe=K(()=>{ue.cancel();function e(e){d||(ie.current=xt(e,{sync:re.current,preventScroll:!0}))}let t=n.current[F.current],r=V.current;t&&e(t),(re.current?e=>e():e=>ue.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),_e&&(r||!te.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});H(()=>{O.current.orientation=g},[O,g]),H(()=>{T||(L.current=null),T&&f===`auto`||(P.current=f)},[T,f]),H(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(V.current=!0,R())):z.current&&(F.current=-1,R()))},[a,T,E,o,R]),H(()=>{if(a){if(!T)re.current=!1;else if(E){if(r==null){if(re.current=!1,ce.current!=null)return;if(z.current&&(F.current=-1,fe()),(!B.current||!z.current)&&P.current&&(L.current!=null||P.current===!0&&L.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>de.request(e):queueMicrotask)(t),e+=1):(F.current=L.current==null||ja(L.current,_,u)||l?It(n):vt(n),L.current=null,R())};t()}}else Et(n.current,r)||(F.current=r,fe(),V.current=!1)}}},[a,T,E,r,ce,l,n,_,u,R,fe,de]),H(()=>{if(!a||E||!N||d||!z.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=Ue(lt(D??t??null)),r=e.some(e=>e.context&&q(e.context.elements.floating,n));t&&!r&&te.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),H(()=>{B.current=T,z.current=!!E});let pe=r!=null,me=K(e=>{if(!se.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),U=K(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),he=K(()=>It(n,oe.current)),ge=K(t=>{if(te.current=!1,re.current=!0,t.which===229||!se.current&&t.currentTarget===j.current)return;if(l&&Na(t.key,g,u,w)){Aa(t.key,U())||Qe(t),e.setOpen(!1,W(Te,t.nativeEvent));let n=S?.current??D;I(n)&&n.focus();return}r!=null&&r!==F.current&&!Et(n.current,r)&&(F.current=r);let i=F.current,a=It(n,h),o=vt(n,h);if(A||(t.key===`Home`&&(Qe(t),F.current=a,R(t)),t.key===`End`&&(Qe(t),F.current=o,R(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,R(t)),g===`both`)return}if(Aa(t.key,g)){Qe(t);let e=Ue(t.currentTarget.ownerDocument);if(T&&!d&&q(t.currentTarget,e)&&!n.current.some(t=>t!=null&&q(t,e))){F.current=ja(t.key,g,u)?a:o,R(t),r===F.current&&fe();return}let{index:l,wrapped:f}=Ze(n.current,i,{decrement:!ja(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(re.current=!1),F.current=l,R(t)}}),_e=Y.useMemo(()=>({onFocus(e){re.current=!0,me(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){Oa(e)||(re.current=!0,V.current=!1,p&&me(e))},onPointerLeave(e){if(!se.current||!te.current||e.pointerType===`touch`)return;re.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&le.current&&(ie.current?.(),ie.current=null,F.current=-1,R(e),!d)){let e=j.current,t=Ue(lt(e));e&&q(e,t)&&e.focus({preventScroll:!0})}}}),[me,se,j,p,n,R,le,d]),ve=Y.useMemo(()=>d&&T&&pe&&{"aria-activedescendant":`${y}-${r}`},[d,T,pe,y,r]),ye=Y.useMemo(()=>({...A?{}:ve,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=Je(t.nativeEvent);if(n&&!q(j.current,n))return;Qe(t);let r=W(Xe,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&I(i)&&i.focus()}else ge(t)},onPointerMove(e){Oa(e)||(te.current=!0)}}),[ve,ge,j,A,e,T,d,D,S]),be=Y.useMemo(()=>{function t(t){e.setOpen(!0,W(Te,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&Ft(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&Ye(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);te.current=!1;let i=n.key.startsWith(`Arrow`),a=Ma(n.key,U(),u),o=Aa(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||ne(n.currentTarget)))return ge(n);if(r||m||!i){if(s){let e=Aa(n.key,U());L.current=l&&e?null:n.key}l?a&&(Qe(n),r?(F.current=he(),R(n),d&&j.current?.focus()):t(n)):o&&(ce.current!=null&&(F.current=ce.current),Qe(n),!r&&m?t(n):ge(n),r&&R(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,R(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[ge,f,he,l,R,e,m,g,_,U,u,ce,d,j]),xe=Y.useMemo(()=>({...ve,...be}),[ve,be]);return Y.useMemo(()=>a?{reference:xe,floating:ye,item:_e,trigger:be}:{},[a,xe,ye,be,_e])}function Fa(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=K(s),f=e.useState(`open`),p=O(),m=Y.useRef(``),h=Y.useRef(u??i??-1),g=Y.useRef(null),_=K(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!et(n)||n?.matches(`:disabled`)?!1:o==null||!yt(Ot,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(Qe(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Qe(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=K(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);q(r,n)||q(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});H(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=Y.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return Y.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var Ia=.1,La=Ia*Ia,$=.5;function Ra(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function za(e,t,n,r,i,a,o,s,c,l){let u=!1;return Ra(e,t,n,r,i,a)&&(u=!u),Ra(e,t,i,a,o,s)&&(u=!u),Ra(e,t,o,s,c,l)&&(u=!u),Ra(e,t,c,l,n,r)&&(u=!u),u}function Ba(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Va(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Ha(e={}){let{blockPointerEvents:t=!1}=e,n=new j,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*La;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Je(r),g=r.type===`mouseleave`,_=q(u,h),v=q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&G(r.relatedTarget)&&q(u,r.relatedTarget))return;function y(){return!!(s&&st(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=Va(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Va(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Va(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Va(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!Ba(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?$/2:$*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+$+1,o=C||T?S.bottom-$:S.top,s=C?T?S.bottom-$:S.top:S.bottom-$;M=za(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?$/2:$*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-$,o=C||T?S.top+$:S.bottom,s=C?T?S.top+$:S.bottom:S.top+$;M=za(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?$/2:$*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+$+1,o=w||E?S.right-$:S.left,s=w?E?S.right-$:S.left:S.right-$;M=za(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?$/2:$*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-$,o=w||E?S.left+$:S.right,s=w?E?S.left+$:S.right:S.left+$;M=za(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Ua(e,t,n){let{reference:r,floating:i}=e,a=ht(t),o=qe(t),s=Ee(o),c=he(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=qt(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Wa(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=He(t,e),p=k(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=de(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=de(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ga=50,Ka=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Wa},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ua(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ga&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ua(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},qa=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=He(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=he(r),_=ht(o),v=he(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[M(o)]:D(o)),x=p!==`none`;!d&&x&&b.push(...ke(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Wt(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===ht(t)||T.every(e=>ht(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ht(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Ja=new Set([`left`,`top`]);async function Ya(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=he(n),s=qt(n),c=ht(n)===`y`,l=Ja.has(o)?-1:1,u=a&&c?-1:1,d=He(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Xa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ya(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Za=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=He(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ht(i),p=Ut(f),m=u[p],h=u[f],g=(e,t)=>rt(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Qa=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=He(e,t),u={x:n,y:r},d=ht(i),f=Ut(d),p=u[f],m=u[d],h=He(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ja.has(he(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},$a=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=He(e,t),c=await i.detectOverflow(t,s),l=he(n),u=qt(n),d=ht(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=dt(p-c[m],g),y=dt(f-c[h],_),x=t.middlewareData.shift,S=!x,C=v,w=y;x!=null&&x.enabled.x&&(w=_),x!=null&&x.enabled.y&&(C=g),S&&!u&&(d?w=f-2*b(c.left,c.right):C=p-2*b(c.top,c.bottom)),await o({...t,availableWidth:w,availableHeight:C});let T=await i.getDimensions(a.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function eo(e){let t=_e(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=I(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=me(n)!==a||me(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function to(e){return G(e)?e:e.contextElement}function no(e){let t=to(e);if(!I(t))return nt(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eo(t),o=(a?me(n.width):n.width)/r,s=(a?me(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var ro=nt(0);function io(e){let t=R(e);return!ze()||!t.visualViewport?ro:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ao(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===R(e)}function oo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=to(e),o=nt(1);t&&(r?G(r)&&(o=no(r)):o=no(e));let s=ao(a,n,r)?io(a):nt(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=R(a),t=G(r)?R(r):r,n=e,i=ce(n);for(;i&&t!==n;){let e=no(i),t=i.getBoundingClientRect(),r=_e(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=R(i),i=ce(n)}}return de({width:u,height:d,x:c,y:l})}function so(e,t){let n=Jt(e).scrollLeft;return t?t.left+n:oo(z(e)).left+n}function co(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-so(e,n),y:n.top+t.scrollTop}}function lo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=z(r),s=t?Ie(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=nt(1),u=nt(0),d=I(r);if((d||!a)&&((xe(r)!==`body`||Dt(o))&&(c=Jt(r)),d)){let e=oo(r);l=no(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?co(o,c):nt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function uo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function fo(e){let t=Jt(e),n=e.ownerDocument.body,r=b(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=b(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+so(e),o=-t.scrollTop;return _e(n).direction===`rtl`&&(a+=b(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var po=25;function mo(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=R(e),a=z(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ze()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(so(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=po&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ho(e,t){let n=oo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=no(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function go(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=mo(e,n,t);else if(t===`document`)r=fo(z(e));else if(G(t))r=ho(t,n);else{let n=io(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return de(r)}function _o(e,t){let n=t.get(e);if(n)return n;let r=S(e,[],!1).filter(e=>G(e)&&xe(e)!==`body`),i=null,a=_e(e).position===`fixed`,o=a?Ne(e):e;for(;G(o)&&!oe(o);){let e=_e(o),t=Ae(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Ne(o)}return t.set(e,r),r}function vo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ie(t)?[]:_o(t,this._c):[].concat(n),r],o=go(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=go(t,a[e],i);s=b(n.top,s),c=dt(n.right,c),l=dt(n.bottom,l),u=b(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function yo(e){let{width:t,height:n}=eo(e);return{width:t,height:n}}function bo(e,t,n){let r=I(t),i=z(t),a=n===`fixed`,o=oo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=nt(0);if((r||!a)&&((xe(t)!==`body`||Dt(i))&&(s=Jt(t)),r)){let e=oo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=so(i));let l=i&&!r&&!a?co(i,s):nt(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function xo(e){return _e(e).position===`static`}function So(e,t){if(!I(e)||_e(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return z(e)===n&&(n=n.ownerDocument.body),n}function Co(e,t){let n=R(e);if(Ie(e))return n;if(!I(e)){let t=Ne(e);for(;t&&!oe(t);){if(G(t)&&!xo(t))return t;t=Ne(t)}return n}let r=So(e,t);for(;r&&Le(r)&&xo(r);)r=So(r,t);return r&&oe(r)&&xo(r)&&!Ae(r)?n:r||P(e)||n}var wo=async function(e){let t=this.getOffsetParent||Co,n=this.getDimensions,r=await n(e.floating);return{reference:bo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function To(e){return _e(e).direction===`rtl`}var Eo={convertOffsetParentRelativeRectToViewportRelativeRect:lo,getDocumentElement:z,getClippingRect:vo,getOffsetParent:Co,getElementRects:wo,getClientRects:uo,getDimensions:yo,getScale:no,isElement:G,isRTL:To};function Do(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oo(e,t,n){let r=null,i,a=z(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=zt(d),h=zt(a.clientWidth-(u+f)),g=zt(a.clientHeight-(d+p)),_=zt(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:b(0,dt(1,c))||1},y=!0;function x(t){let n=t[0].intersectionRatio;if(!Do(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(x,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(x,v)}r.observe(e)}let c=R(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ko(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=to(e),u=i||a?[...l?S(l):[],...t?S(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Oo(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?oo(e):null;c&&g();function g(){let t=oo(e);h&&!Do(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ao=Xa,jo=Za,Mo=qa,No=$a,Po=Qa,Fo=(e,t,n)=>{let r=new Map,i=n??{},a={...Eo,...i.platform,_c:r};return Ka(e,t,{...i,platform:a})},Io=typeof document<`u`?Y.useLayoutEffect:function(){};function Lo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lo(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Lo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ro(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zo(e,t){let n=Ro(e);return Math.round(t*n)/n}function Bo(e){let t=Y.useRef(e);return Io(()=>{t.current=e}),t}function Vo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Y.useState(r);Lo(f,r)||p(r);let[m,h]=Y.useState(null),[g,_]=Y.useState(null),v=Y.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Y.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=Y.useRef(null),C=Y.useRef(null),w=Y.useRef(u),T=c!=null,E=Bo(c),D=Bo(i),O=Bo(l),k=Y.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Fo(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Lo(w.current,t)&&(w.current=t,Ri.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Io(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=Y.useRef(!1);Io(()=>(A.current=!0,()=>{A.current=!1}),[]),Io(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=Y.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=Y.useMemo(()=>({reference:b,floating:x}),[b,x]),N=Y.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=zo(M.floating,u.x),r=zo(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ro(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return Y.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Ho=(e,t)=>{let n=Ao(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uo=(e,t)=>{let n=jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wo=(e,t)=>({fn:Po(e).fn,options:[e,t]}),Go=(e,t)=>{let n=Mo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ko=(e,t)=>{let n=No(e);return{name:n.name,fn:n.fn,options:[e,t]}};function qo(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=Y.useState(null),d=Y.useRef(null),f=ae(n),p=Y.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=Vo({...e,elements:{...p,...l&&{reference:l}}}),h=Y.useCallback(e=>{let t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=Y.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=Y.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=Y.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return H(()=>{o&&(d.current=o)},[o]),H(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),Y.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var Jo=Y.createContext(void 0);function Yo(){return Y.useContext(Jo)?.direction??`ltr`}var Xo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=He(e,t)||{};if(l==null)return{};let d=k(u),f={x:n,y:r},p=qe(i),m=Ee(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,A=S/2-h[m]/2+C,j=rt(D,A,O),M=!c.arrow&&qt(i)!=null&&A!==j&&a.reference[m]/2-(A<D?T:E)-h[m]/2<0,N=M?A<D?A-D:A-O:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Zo=(e,t)=>{let{name:n,fn:r}=Xo(e);return{name:n,fn:r,options:[e,t]}},Qo={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},$o={sideX:`left`,sideY:`top`},es=`--available-width`,ts=`--available-height`,ns=`--anchor-width`,rs=`--anchor-height`,is=`--transform-origin`,as=`--positioner-width`,os=`--positioner-height`,ss=es,cs=ts;function ls(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function us(e,t,n){let{rects:r,placement:i}=e;return{side:ls(t,he(i),n),align:qt(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ds(e){return fs(e,qo)}function fs(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=K(O),A=O?k:n,j=Oe(n),M=Oe(g),N=Yo()===`rtl`,[P,F]=Y.useState(null);!g&&P!==null&&F(null);let ee=x===`placement`,I=P?he(P):null,L=P&&ee?qt(P)||`center`:null,te=I||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],ne=L||o,z=ne===`center`?te:`${te}-${ne}`,B=l;typeof B==`number`?B={top:B,right:B,bottom:B,left:B}:B&&={top:B.top||0,right:B.right||0,bottom:B.bottom||0,left:B.left||0};let re=+(i===`bottom`),V=+(i===`top`),ie=+(i===`right`),ae=+(i===`left`),oe={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:B},se=Y.useRef(null),ce=Oe(a),le=Oe(s),ue=typeof a==`function`?0:a,de=typeof s==`function`?0:s,fe=[];p&&fe.push(p),fe.push(Ho(e=>{let t=us(e,i,N),n=typeof ce.current==`function`?ce.current(t):ce.current,r=typeof le.current==`function`?le.current(t):le.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ue,de,N,i]));let pe=w===`none`&&C!==`shift`,me=!pe&&(u||E||C===`shift`),U=C===`none`?null:Go({...oe,padding:{top:B.top+1+re,right:B.right+1+ae,bottom:B.bottom+1+V,left:B.left+1+ie},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),ge=pe?null:Uo({...oe,rootBoundary:D,mainAxis:w!==`none`,crossAxis:me,limiter:u||E?void 0:Wo(e=>{if(!se.current)return{};let{width:t,height:n}=se.current.getBoundingClientRect(),r=ht(he(e.placement)),i=r===`y`?t:n,a=r===`y`?B.left+B.right:B.top+B.bottom;return{offset:i/2+a/2}})},[oe,u,E,D,B,w]);C===`shift`||w===`shift`||ne===`center`?fe.push(ge,U):fe.push(U,ge),fe.push(Ko({...oe,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(ss,`${t}px`),i.setProperty(cs,`${n}px`);let a=R(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(ns,`${u}px`),i.setProperty(rs,`${d}px`)}}),Zo(e=>({element:se.current||lt(e.elements.floating).createElement(`div`),padding:se.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=he(r),u=qt(r),d=ht(l)===`y`,f=se.current,p=typeof a==`function`?a(us(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return me&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(is,d?`${m} ${h}`:`${h} ${m}`),{}}},Qo,b),H(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let _e=Y.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:W,elements:ve,x:ye,y:be,middlewareData:xe,update:Se,placement:Ce,context:we,isPositioned:Te,floatingStyles:Ee}=t({rootContext:h,open:m?g:void 0,placement:z,middleware:fe,strategy:r,whileElementsMounted:m?void 0:(...e)=>ko(...e,_e),nodeId:y,externalTree:S}),{sideX:De,sideY:ke}=xe.adaptiveOrigin||$o,Ae=Te?r:`fixed`,je=Y.useMemo(()=>{let e;return e=Te?b?{position:Ae,[De]:ye,[ke]:be}:{...Ee,position:Ae}:{position:Ae,top:0,left:0},e[ss]=`100vw`,e[cs]=`100vh`,Te||(e.opacity=0),e},[b,Ae,De,ye,ke,be,Ee,Te]),Me=Y.useRef(null);H(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(ps(t)?t.current:t)||null;n!==Me.current&&(W.setPositionReference(n),Me.current=n)},[g,W,A,j]),Y.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&ps(e)&&e.current!==Me.current&&(W.setPositionReference(e.current),Me.current=e.current)},[g,W,A,j]),Y.useEffect(()=>{if(m&&g&&ve.reference&&ve.floating)return ko(ve.reference,ve.floating,Se,_e)},[m,g,ve,Se,_e]);let Ne=he(Ce),Pe=ls(i,Ne,N),G=qt(Ce)||`center`,Fe=!!xe.hide?.referenceHidden;H(()=>{x&&g&&Te&&(Ne!==te||ee&&G!==ne)&&F(Ce)},[x,ee,g,Te,Ce,Ne,G,te,ne]);let Ie=Y.useMemo(()=>({position:`absolute`,top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Le=xe.arrow?.centerOffset!==0;return Y.useMemo(()=>({positionerStyles:je,arrowStyles:Ie,arrowRef:se,arrowUncentered:Le,side:Pe,align:G,physicalSide:Ne,anchorHidden:Fe,refs:W,context:we,isPositioned:Te,update:Se}),[je,Ie,se,Le,Pe,G,Ne,Fe,W,we,Te,Se])}function ps(e){return e!=null&&`current`in e}function ms(e){return e===`starting`?ve:ie}function hs(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),C(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},ms(r),i],stateAttributesMapping:te})}var gs={A:!1,ActionIcon:!1,ActionIconGroup:!1,Alert:!1,Avatar:!1,AvatarGroup:!1,BaseActionIcon:!0,BaseButton:!0,Block:!1,BottomGradientButton:!0,Burger:!1,Button:!0,Center:!1,Checkbox:!1,CheckboxGroup:!1,Collapse:!1,ColorSwatches:!1,CopyButton:!1,DownloadButton:!1,EditableText:!1,Empty:!1,FileTypeIcon:!1,Flexbox:!1,FluentEmoji:!1,GradientButton:!0,Highlighter:!1,Hotkey:!1,Icon:!1,Image:!1,Img:!1,Input:!1,InputNumber:!1,InputPassword:!1,List:!1,ListItem:!1,Select:!1,Switch:!1,Markdown:!1,MaterialFileTypeIcon:!1,Segmented:!1,Skeleton:!1,SkeletonAvatar:!1,SkeletonBlock:!1,SkeletonButton:!1,SkeletonParagraph:!1,SkeletonTags:!1,SkeletonText:!1,SkeletonTitle:!1,Snippet:!1,Tag:!1,Text:!1,TextArea:!1,ThemeSwitch:!1,Video:!1};function _s(e){let t=e.type;if(typeof t!=`string`){if(typeof t==`function`)return t.displayName||t.name;if(typeof t==`object`&&t)return t.displayName||t.render?.displayName||t.render?.name||t.type?.displayName||t.type?.name}}function vs({children:e,nativeButton:t,triggerNativeButton:n}){let r=(0,Y.useMemo)(()=>(0,Y.isValidElement)(e)?typeof e.type==`string`&&e.type===`button`:!1,[e]);return{isNativeButtonTriggerElement:r,resolvedNativeButton:(0,Y.useMemo)(()=>{if(t!==void 0)return t;if(n!==void 0)return n;if(r)return!0;if(!(0,Y.isValidElement)(e))return;if(typeof e.type==`string`||e.props?.href!==void 0)return!1;let i=_s(e);return i&&i in gs?gs[i]:!1},[e,r,t,n])}}var ys=Number.parseInt(Y.version,10)>=19,bs=e=>{if((0,Y.isValidElement)(e))return ys?e.props?.ref:e.ref},xs=(0,Y.createContext)(null),Ss=()=>(0,Y.use)(xs),Cs=xs.Provider,ws=()=>{let[e,t]=(0,Y.useState)(typeof document<`u`);return(0,Y.useEffect)(()=>{e||t(!0)},[]),e},Ts,Es=()=>Ts,Ds={align:`center`,side:`top`},Os={align:`start`,side:`top`},ks={align:`end`,side:`top`},As={align:`center`,side:`bottom`},js={bottom:As,bottomCenter:As,bottomLeft:{align:`start`,side:`bottom`},bottomRight:{align:`end`,side:`bottom`},left:{align:`center`,side:`left`},leftBottom:{align:`end`,side:`left`},leftTop:{align:`start`,side:`left`},right:{align:`center`,side:`right`},rightBottom:{align:`end`,side:`right`},rightTop:{align:`start`,side:`right`},top:Ds,topCenter:Ds,topLeft:Os,topRight:ks},Ms={variantBorderlessWithoutHover:{kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w`,kGVxlE:`lb1gnnqk1`,$$css:!0},variantFilledWithoutHover:{kWkggS:`lbaljia1`,$$css:!0},variantOutlinedWithoutHover:{kVAM5u:`lb6d5vuu`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lb1rc61lj`,$$css:!0}},Ns=Y.createContext(void 0);function Ps(e){let t=Y.useContext(Ns);if(t===void 0&&!e)throw Error(L(69));return t}function Fs(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=Y.useRef(null),o=Y.useRef(null),s=E(r);H(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),H(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}var Is=20;function Ls(e,t,n,r){let[i,a]=Y.useState(!1);H(()=>{if(!e||!t||n==null){a(!1);return}let r=lt(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Is)},[e,t,n]),kt(e&&(!t||i),r)}function Rs(e){let t=Y.useRef(``),n=Y.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Y.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function zs(e,t){let n=Y.useRef(e),r=K(t);H(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function Bs(e,t){let{onClick:n,onPointerDown:r}=Rs(K((n,r)=>{(typeof e==`function`?e():e)||t(r||(Rt?`touch`:``))}));return Y.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Vs(e){let[t,n]=Y.useState(null),r=Bs(e,n);return zs(e,t=>{t&&!e&&n(null)}),Y.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var Hs=5;function Us(e,t){let n=Ws(t);return e.clientX>=n.left-Hs&&e.clientX<=n.right+Hs&&e.clientY>=n.top-Hs&&e.clientY<=n.bottom+Hs}function Ws(e){let t=e.getBoundingClientRect(),n=R(e);if(Tt)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function Gs(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=pe(),{ref:i,index:a}=Gr(e),o=n===a,s=Y.useRef(null),c=Fe(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Ks(e){let{render:t,className:n,style:r,state:i=ie,props:a=Ot,refs:o=Ot,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Gs({metadata:s});return C(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function qs(e,t){function n(n,r,i){let a=n.currentTarget;Ri.flushSync(()=>{e.setOpen(!1,W(Xe,n.nativeEvent,a))}),We(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&wt(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Js(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function Ys(e){let t=new Set((Array.isArray(e)?e:[e]).flatMap(e=>e===`both`?[`hover`,`click`]:[e]));return{openOnClick:t.has(`click`),openOnHover:t.has(`hover`)}}var Xs,{min:Zs,max:Qs,abs:$s,floor:ec}=Math,tc=(e,t,n)=>Qs(t,Zs(n,e)),nc=e=>e.sort((e,t)=>e-t),rc=setTimeout,ic=clearTimeout,ac=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},oc=()=>{let e;return[new Promise(t=>{e=t}),e]},sc=typeof window<`u`,cc=()=>(Xs??=/iP(hone|od|ad)/.test(navigator.userAgent)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>0,Xs),lc=e=>Qs(e.t(),e.o()),uc=({$:e,p:t,i:n,m:r,_:i,t:a,S:o,v:s,I:c},l=0)=>{let u=!!l,d=1,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=null,x=[0,u?Qs(l-1,0):-1],S=!1,C=new Set,w=()=>m-p,T=()=>w()+g+h,E=(e,t)=>{let i=n(e),a=r(e);return v!==1&&y===0?i+a<=t:i<t&&i+a<t+f},D=e=>{e&&(cc()&&v!==0||b&&y===1?g+=e:h+=e)},O=e=>{let n=o();if(y===2)return n;if(e)return 0;if(b&&y===1)return Zs(b[0],n);let r=T(),i=t(r);for(;i>0&&!E(i-1,r);)i--;for(;i<n&&E(i,r);)i++;return i};return{R:()=>d,$:(t=200)=>{let n,r;if(!S||u||_)[n,r]=x;else{let i=T(),o=i+f;c()||(t=Qs(0,t),v!==1&&(i-=t),v!==2&&(o+=t)),[n,r]=x=!b&&(o<=0||i>=a())?[0,-1]:e(Qs(0,i),Qs(0,o)),b&&(n=Zs(n,b[0]),r=Qs(r,b[1]))}return[n,Zs(r,o()-1)]},l:O,i:e=>n(e)-g,O:()=>m,T:()=>v!==0,o:()=>f,k:()=>p,t:a,C:()=>(_=h,h=0,[_,y===2]),M:e=>(C.add(e),()=>{C.delete(e)}),h:(t,r,c)=>{let l,x=0;switch(t){case 1:{if(c!=null&&(p=c),r===m&&y===0)break;let e=r-m,t=$s(e),n=_&&t<$s(_)+1;_=0,n||y!==0||(v=e<0?2:1),u=!1,m=r,x=4;let i=w();i>=-f-t&&i<=a()+t&&(x+=1,l=t>f);break}case 2:x=8,v!==0&&(h+=g,g=0,x+=1),v=0,y=0,b=null;break;case 3:if(r.length){let e=O(c),t=n(e);i(r,f),D(n(e)-t),x=3,l=!0}break;case 4:f!==r&&(f||(S=l=!0),f=r,x=3);break;case 5:if(r!==o()){if(c){let e=a();s(r,!0),D(a()-e),y=2}else s(r);x=1}break;case 6:D(r),x=1;break;case 7:r!==p&&(p=r,x=1);break;case 8:y=1;break;case 9:b=e(r,r+f),x=1}x&&(d=1+(2147483647&d),C.forEach(e=>{e(x,l)}))}}},dc=(e,t,n)=>{let r=n?`unshift`:`push`;for(let n=0;n<t;n++)e[r](-1);return e},fc=(e,t,n)=>{let r=0,i=t-1,a=0;for(;r<=i;){let t=ec((r+i)/2);e(t)<=n?(a=t,r=t+1):i=t-1}return a},pc=(e,t,n)=>{let r=n&&n[1]||t||40,i=0,a=!t,o=n?n[0].slice(0,e):[];dc(o,e-o.length);let s=[0],c=e=>{let t=o.length+1;for(let n=e;n<t;n++){let e=o[n-1];e===-1&&(e=r);for(let t=1;t<(n&-n);t<<=1)e+=s[n-t];s[n]=e}s.length=t};c(1);let l=e=>{let t=o[e];return t===-1?r:t},u=t=>{if(!e)return 0;let n=0;for(;t>0;t-=t&-t)n+=s[t];return n},d=t=>fc(u,e,t);return{$:(e,t)=>[d(e),d(t)],p:d,i:u,m:l,L:(e,t=-1)=>o[e]===t,_:(e,t)=>{for(let[t,n]of e){let e=n-l(t);i+=o[t]===-1?n:e,o[t]=n;for(let n=t+1;n<s.length;n+=n&-n)s[n]+=e}if(a&&t&&i>t){let e=nc(o.filter(e=>e!==-1&&e)),t=e.length,n=t/2|0;r=t%2==0?(e[n-1]+e[n])/2:e[n],c(1),a=!1}},t:()=>u(e),S:()=>e,v:(t,n)=>{let r=t-e;e=t,r>=0?dc(o,r,n):o.splice(n?0:r,-r),c(n?1:s.length)},I:()=>a,A:()=>[o.slice(),r]}},mc=e=>{let t,n,r=null;return{J(i){t||=(n=i.ownerDocument.defaultView,new n.ResizeObserver(t=>{r=t,e(t),r=null})),r&&!r.some(e=>e.target.contains(i))?n.requestAnimationFrame(()=>{i.isConnected&&t.observe(i)}):t.observe(i)},j(e){t.unobserve(e)},G(){t&&t.disconnect()}}},hc=(e,t,n,r,i,a,o,s)=>{let c,l,u=!1,d=!1,f=!1,p=!1,m=i?`scrollLeft`:`scrollTop`,h=i?`left`:`top`,g=e=>a?-e:e,_=()=>g(r[m]),v=(e,t)=>{r.scrollTo({[h]:e,behavior:t?`smooth`:`instant`})},y=()=>{u||d?(u=!1,b()):(f=!1,e.h(2))},b=()=>{ic(l),l=rc(y,150)},x=()=>{u=!1,f&&(p=!0),e.h(1,_(),s&&s()),b()},S=t=>{e.T()&&!t.ctrlKey&&(i?t.deltaX:t.deltaY)&&(u=!0)},C=()=>{d=!0,f=p=!1},w=()=>{d=!1,cc()&&(f=!0)};return n.addEventListener(`scroll`,x),n.addEventListener(`wheel`,S,{passive:!0}),n.addEventListener(`touchstart`,C,{passive:!0}),n.addEventListener(`touchend`,w,{passive:!0}),n.addEventListener(`touchcancel`,w,{passive:!0}),{D:()=>{_()===e.O()?s&&e.h(7,s()):x()},G:()=>{n.removeEventListener(`scroll`,x),n.removeEventListener(`wheel`,S),n.removeEventListener(`touchstart`,C),n.removeEventListener(`touchend`,w),n.removeEventListener(`touchcancel`,w),ic(l),c&&c()},F:()=>{let[t,n]=e.C();if(t){p&&o&&o(),p=!1;let i=e.O(),a=i+t,s=e.k()+e.t()-e.o();a<=0||a>=s||i>=s?v(g(a)):r.scrollBy({[h]:g(t),behavior:`instant`}),n&&(c&&c(),e.o()>e.t()&&e.h(1,_()))}return n},K:(n,r,i=v)=>{let a,o,s;c&&c();let l=c=()=>{a=!0,ic(o),s&&s()},u=()=>{if(!a){if(e.o()&&(ic(o),o=rc(l,150)),r){for(let[n,r]=e.$(0);n<=r;n++)if(t.L(n))return;l()}e.h(8),i(g(n()),r)}};if(r&&e.h(9,n()),!a){let t;s=e.M(e=>{2&e&&!t&&(t=!0,ac(()=>{t=!1,u()}))}),u()}}}},gc=(e,t,n)=>{let r,i,a=oc(),o=0,s=new Map,c=new WeakMap,l=mc(a=>{let o=[],l=[];for(let{target:u,contentRect:{width:d,height:f}}of a)if(u===r)(d||f)&&(i.D(),e.h(4,n?d:f));else if(u.offsetParent){let e=s.get(u),r=c.get(u);c.set(u,e);let i=n?d:f;e==null||t.L(e,i)||(r!=null&&r!==e?l:o).push([e,i])}e.h(3,l,!0),e.h(3,o)});return{N(o,s=o.parentElement){l.J(r=s),i=hc(e,t,s,s,n,n&&getComputedStyle(s).direction===`rtl`,()=>{let e=n?`overflowX`:`overflowY`,t=s.style,r=t[e];t[e]=`hidden`,rc(()=>{t[e]=r})}),a[1](!0)},U(){l.G(),i&&i.G(),a[1](!1),a=oc()},Z:(e,t)=>(s.set(e,t),l.J(e),()=>{s.delete(e),l.j(e)}),async ee(n,{align:r,smooth:o,offset:s=0}={}){if(n!=null&&(n=tc(n,0,t.S()-1),r===`nearest`)){let i=e.i(n),a=e.O()-e.k();if(i<a)r=`start`;else{if(!(i+t.m(n)>a+e.o()))return;r=`end`}}await a[0]&&i.K(()=>n==null?s:s+e.k()+e.i(n)+(r===`end`?t.m(n)-e.o():r===`center`?(t.m(n)-e.o())/2:0),o)},te(){let e=i&&i.F();o!==(o=t.S())&&e&&s.forEach((e,t)=>{l.j(t),l.J(t)})}}},_c=sc?Y.useLayoutEffect:Y.useEffect,vc=(e,t)=>{if(Array.isArray(e))for(let n of e)vc(n,t);else e==null||typeof e==`boolean`||t.push(e)},yc=(e,t)=>e.key??`_`+t,bc=e=>{let t=(0,Y.useRef)(null);return t.current||=e()},xc=e=>{let t=(0,Y.useRef)(e);return _c(()=>{t.current=e},[e]),t},Sc=(0,Y.memo)(({ne:e,re:t,se:n,le:r,ie:i,ce:a,fe:o,ae:s})=>{let c=(0,Y.useRef)(null);_c(()=>t(c.current,n),[n]);let l=(0,Y.useMemo)(()=>{let e={contain:`layout style`,overflowAnchor:`none`,position:i&&s?void 0:`absolute`,[o?`height`:`width`]:`100%`,[o?`top`:`left`]:0,[o?`insetInlineStart`:`top`]:r,visibility:!i||s?void 0:`hidden`};return o&&(e.display=`inline-flex`),e},[r,i,s,o]);return(0,X.jsx)(a,typeof a==`string`?{ref:c,style:l,children:e}:{ref:c,style:l,index:n,children:e})}),Cc=(e,t)=>(0,Y.useMemo)(()=>{if(typeof e==`function`)return[n=>e(t[n],n),t.length];let n=(e=>{let t=[];return vc(e,t),t})(e);return[e=>n[e],n.length]},[e,t]),wc=(0,Y.forwardRef)(({children:e,data:t,bufferSize:n,itemSize:r,shift:i,horizontal:a,keepMounted:o,cache:s,startMargin:c=0,ssrCount:l,as:u=`div`,item:d=`div`,scrollRef:f,onScroll:p,onScrollEnd:m,onResize:h},g)=>{"use no memo";let[_,v]=Cc(e,t),y=(0,Y.useRef)(null),b=(0,Y.useRef)(!!l),x=xc(p),S=xc(m),C=xc(h),[w,T,E,D]=bc(()=>{let e=!!a,t=pc(v,r,s),n=uc(t,l);return[n,t,gc(n,t,e),e]});w.h(5,v,i),w.h(7,c);let[O,k]=(0,Y.useReducer)(w.R,void 0,w.R),A=w.T(),j=w.t(),M=[];_c(()=>{let e=!1;b.current=!1;let t=w.M((e,t)=>{1&e&&(t?(0,Ri.flushSync)(k):k()),4&e&&x.current&&x.current(w.O()),8&e&&S.current&&S.current(),2&e&&C.current&&C.current()}),n=y.current;return f?ac(()=>{!e&&f.current&&E.N(n,f.current)}):E.N(n),()=>{e=!0,t(),E.U()}},[]),_c(()=>{E.te()},[O]),(0,Y.useImperativeHandle)(g,()=>({get cache(){return T.A()},get scrollOffset(){return w.O()},get scrollSize(){return lc(w)},get viewportSize(){return w.o()},findItemIndex:e=>T.p(e-w.k()),getItemOffset:w.i,getItemSize:T.m,scrollToIndex:E.ee,scrollTo:e=>E.ee(void 0,{offset:e}),scrollBy:e=>E.ee(void 0,{offset:e+w.O()})}),[]);let N=[];if(o){let e=new Set(o);for(let[t,r]=w.$(n);t<=r;t++)e.add(t);for(let t of nc([...e]))t>=0&&t<v&&N.push(t)}else for(let[e,t]=w.$(n);e<=t;e++)N.push(e);for(let e of N){let t=_(e);M.push((0,X.jsx)(Sc,{re:E.Z,se:e,le:w.i(e),ie:T.L(e),ce:d,ne:t,fe:D,ae:b.current},yc(t,e)))}return(0,X.jsx)(u,{ref:y,style:{contain:`size style`,flex:`none`,position:`relative`,width:D?j:`100%`,height:D?`100%`:j,pointerEvents:A?`none`:void 0},children:M})}),Tc=Y.createContext(void 0);function Ec(){let e=Y.useContext(Tc);if(e===void 0)throw Error(L(53));return e}function Dc(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${n===`x`?`Inline`:`Block`}`,a=parseFloat(r[`${i}Start`]);return n===`x`&&t===`margin`?a*2:a+parseFloat(r[`${i}End`])}var Oc=`base-ui-disable-scrollbar`,kc={className:Oc,getElement(e){return(0,X.jsx)(`style`,{nonce:e,href:Oc,precedence:`base-ui:low`,children:`.${Oc}{scrollbar-width:none}.${Oc}::-webkit-scrollbar{display:none}`})}},Ac=`data-has-overflow-x`,jc=`data-has-overflow-y`,Mc=`data-overflow-x-start`,Nc=`data-overflow-x-end`,Pc=`data-overflow-y-start`,Fc=`data-overflow-y-end`,Ic=e=>t=>t?{[e]:``}:null,Lc={hasOverflowX:Ic(Ac),hasOverflowY:Ic(jc),overflowXStart:Ic(Mc),overflowXEnd:Ic(Nc),overflowYStart:Ic(Pc),overflowYEnd:Ic(Fc),cornerHidden:()=>null},Rc=Y.createContext(void 0),zc={disableStyleElements:!1};function Bc(){return Y.useContext(Rc)??zc}var Vc=`--scroll-area-corner-height`,Hc=`--scroll-area-corner-width`,Uc=`data-orientation`,Wc={x:0,y:0},Gc={width:0,height:0},Kc={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},qc={x:!0,y:!0,corner:!0},Jc=Y.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,{xStart:s,xEnd:c,yStart:l,yEnd:u}=Yc(i),d=B(),f=O(),p=O(),{nonce:m,disableStyleElements:h}=Bc(),[g,_]=Y.useState(!1),[v,y]=Y.useState(!1),[b,x]=Y.useState(!1),[S,w]=Y.useState(!1),[T,E]=Y.useState(!1),[D,k]=Y.useState(Gc),[A,j]=Y.useState(Gc),[M,N]=Y.useState(Kc),[P,F]=Y.useState(qc),ee=Y.useRef(null),I=Y.useRef(null),L=Y.useRef(null),te=Y.useRef(null),R=Y.useRef(null),ne=Y.useRef(null),z=Y.useRef(null),re=Y.useRef(null),V=Y.useRef(0),ie=Y.useRef(0),ae=Y.useRef(0),oe=Y.useRef(0),H=Y.useRef(`vertical`),se=Y.useRef(Wc),ce=Y.useRef(null);function le(e){let t=e?x:y,n=e?f:p;t(!0),n.start(500,()=>{t(!1)})}let ue=K(e=>{let t=e.x-se.current.x,n=e.y-se.current.y;se.current=e,n!==0&&le(!0),t!==0&&le(!1)}),de=K(()=>{let e=I.current;e&&ce.current===null&&(ce.current=e.style.scrollSnapType,e.style.scrollSnapType=`none`)}),fe=K(e=>{if(e.button!==0||re.current!==null&&(H.current===`vertical`?R.current:ne.current)?.hasPointerCapture(re.current))return;re.current=e.pointerId,V.current=e.clientY,ie.current=e.clientX,H.current=e.currentTarget.getAttribute(Uc);let t=I.current;t&&(ae.current=t.scrollTop,oe.current=t.scrollLeft,de()),(H.current===`vertical`?R.current:ne.current)?.setPointerCapture(e.pointerId)}),pe=K(e=>{if(e.pointerId!==re.current)return;re.current=null,(H.current===`vertical`?x:y)(!1),ce.current!==null&&(I.current&&(I.current.style.scrollSnapType=ce.current),ce.current=null);let t=H.current===`vertical`?R.current:ne.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),me=K(e=>{if(e.pointerId!==re.current)return;if(e.buttons%2==0){pe(e);return}let t=I.current;if(!t)return;let n=H.current===`vertical`,r=n?R.current:ne.current,i=n?L.current:te.current;if(!r||!i)return;let a=n?`y`:`x`,o=Dc(i,`padding`,a),s=Dc(r,`margin`,a),c=n?r.offsetHeight:r.offsetWidth,l=(n?i.offsetHeight:i.offsetWidth)-c-o-s,u=n?e.clientY-V.current:e.clientX-ie.current,d=l<=0?0:u/l,f=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,m=(n?ae.current:oe.current)+d*(f-p);n?t.scrollTop=m:t.scrollLeft=m,e.preventDefault(),le(n)});function U(e){w(e.pointerType===`touch`)}function he(e){if(U(e),e.pointerType!==`touch`){let t=q(ee.current,e.target);_(t)}}let ge=Y.useMemo(()=>({scrolling:v||b,hasOverflowX:!P.x,hasOverflowY:!P.y,overflowXStart:M.xStart,overflowXEnd:M.xEnd,overflowYStart:M.yStart,overflowYEnd:M.yEnd,cornerHidden:P.corner}),[v,b,P.x,P.y,P.corner,M]),_e={role:`presentation`,onPointerEnter:he,onPointerMove:he,onPointerDown:U,onPointerLeave(){_(!1)},style:{position:`relative`,[Vc]:`${D.height}px`,[Hc]:`${D.width}px`}},W=C(`div`,e,{state:ge,ref:[t,ee],props:[_e,o],stateAttributesMapping:Lc}),ve=Y.useMemo(()=>({handlePointerDown:fe,handlePointerMove:me,handlePointerUp:pe,handleScroll:ue,disableViewportSnap:de,cornerSize:D,setCornerSize:k,thumbSize:A,setThumbSize:j,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:E,touchModality:S,cornerRef:z,scrollingX:v,scrollingY:b,hovering:g,setHovering:_,viewportRef:I,scrollbarYRef:L,scrollbarXRef:te,thumbYRef:R,thumbXRef:ne,rootId:d,hiddenState:P,setHiddenState:F,overflowEdges:M,setOverflowEdges:N,viewportState:ge,overflowEdgeThreshold:{xStart:s,xEnd:c,yStart:l,yEnd:u}}),[fe,me,pe,ue,de,D,A,T,S,v,b,g,d,P,M,ge,s,c,l,u]);return(0,X.jsxs)(Tc.Provider,{value:ve,children:[!h&&kc.getElement(m),W]})});function Yc(e){let t=typeof e==`number`?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}function Xc(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Zc=Y.createContext(void 0);function Qc(e,t){return Math.max(0,e-t)}function $c(e,t){if(t<=0)return 0;let n=Xc(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var el=`--scroll-area-overflow-x-start`,tl=`--scroll-area-overflow-x-end`,nl=`--scroll-area-overflow-y-start`,rl=`--scroll-area-overflow-y-end`,il=`--scroll-area-thumb-height`,al=`--scroll-area-thumb-width`,ol=[el,tl,nl,rl],sl=!1;function cl(){sl||tt||(typeof CSS<`u`&&`registerProperty`in CSS&&ol.forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),sl=!0)}var ll=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:_,setHasMeasuredScrollbar:v,handleScroll:y,touchModality:b,setHovering:x,setOverflowEdges:S,overflowEdgeThreshold:w,viewportState:T}=Ec(),E=Yo(),D=Y.useRef(!0),k=Y.useRef([NaN,NaN,NaN,NaN]),A=O(),j=O(),M=K(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,y=e.clientHeight,b=e.clientWidth,x=e.scrollTop,C=e.scrollLeft,T=k.current,D=Number.isNaN(T[0]);if(T[0]=y,T[1]=h,T[2]=b,T[3]=_,D&&v(!0),h===0||_===0)return;let O=ul(e),A=O.y,j=O.x,M=b/_,N=y/h,P=Math.max(0,_-b),F=Math.max(0,h-y),ee=0,I=0;j||(ee=$c(E===`rtl`?-C:C,P),I=P-ee);let L=A?0:$c(x,F),te=A?0:F-L,R=j?0:b,ne=A?0:y,z=0,B=0;!j&&!A&&(z=t?.offsetWidth||0,B=n?.offsetHeight||0);let re=f.width===0&&f.height===0,V=re?z:0,ie=re?B:0,ae=Dc(n,`padding`,`x`),oe=Dc(t,`padding`,`y`),H=Dc(i,`margin`,`x`),se=Dc(r,`margin`,`y`),ce=R-ae-H,le=ne-oe-se,ue=n?Math.min(n.offsetWidth-V,ce):ce,de=t?Math.min(t.offsetHeight-ie,le):le,fe=Math.max(16,ue*M),pe=Math.max(16,de*N);if(m(e=>dl(e,{width:fe,height:pe})),t&&r){let e=fl(r,il,x,F,h,pe,t.offsetHeight-pe-oe-se);r.style.transform=`translate3d(0,${e}px,0)`}if(n&&i){let e=n.offsetWidth-fe-ae-H,t=fl(i,al,E===`rtl`?-C:C,P,_,fe,e);i.style.transform=`translate3d(${E===`rtl`?-t:t}px,0,0)`}let me=[ee,I,L,te];ol.forEach((t,n)=>{e.style.setProperty(t,`${me[n]}px`)}),a&&p(e=>dl(e,{width:z,height:B})),g(e=>dl(e,O));let U={xStart:!j&&ee>w.xStart,xEnd:!j&&I>w.xEnd,yStart:!A&&L>w.yStart,yEnd:!A&&te>w.yEnd};S(e=>dl(e,U))});H(()=>{cl()},[]),H(()=>{queueMicrotask(M)},[M,_,E,w.xStart,w.xEnd,w.yStart,w.yEnd]),H(()=>{o.current?.matches(`:hover`)&&x(!0)},[o,x]),H(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=k.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}M()});return n.observe(e),j.start(0,()=>{let t=Vt(e,{subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished.then(Re))).then(M).catch(()=>{})}),()=>{n.disconnect(),j.clear()}},[M,o,j]);function N(){D.current=!1}let P={...h&&{"data-id":`${h}-viewport`},tabIndex:_.x&&_.y?-1:0,className:kc.className,style:{overflow:`scroll`},onScroll(){o.current&&(M(),(b||!D.current)&&y({x:o.current.scrollLeft,y:o.current.scrollTop}),A.start(100,()=>{D.current=!0}))},onWheel:N,onPointerMove:N,onPointerEnter:N,onKeyDown:N},F=C(`div`,e,{ref:[t,o],state:T,props:[P,a],stateAttributesMapping:Lc}),ee=Y.useMemo(()=>({computeThumbPosition:M}),[M]);return(0,X.jsx)(Zc.Provider,{value:ee,children:F})});function ul(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function dl(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function fl(e,t,n,r,i,a,o){let s=Xc(n,0,r),c=n-s,l=Math.max(16,a*i/(i+Math.abs(c)));return e.style.setProperty(t,c?`${l}px`:``),(r?s/r*o:0)+(c>0?a-l:0)}var pl=Y.createContext(void 0);function ml(){let e=Y.useContext(pl);if(e===void 0)throw Error(L(54));return e}var hl=Y.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,scrollbarYRef:f,scrollbarXRef:p,viewportRef:m,thumbYRef:h,thumbXRef:g,handlePointerDown:_,handlePointerUp:v,handleScroll:y,disableViewportSnap:b,rootId:x,thumbSize:S,hasMeasuredScrollbar:w,viewportState:T}=Ec(),E=i===`vertical`,D={...T,hovering:c,scrolling:E?u:l,orientation:i},O=Yo(),k=!w&&!a,A=E?d.y:d.x,j=a||!A;Y.useEffect(()=>{if(!j)return;let e=m.current,t=E?f.current:p.current;if(!t)return;function n(t){if(!e||t.ctrlKey)return;let n=!E,r=n?`scrollLeft`:`scrollTop`,i=n?t.deltaX:t.deltaY;if(i===0)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&O===`rtl`?-a:0,s=n&&O===`rtl`?0:a,c=e[r];c<=o&&i<0||c>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,c+i)),y({x:e.scrollLeft,y:e.scrollTop}))}return U(t,`wheel`,n,{passive:!1})},[O,y,E,p,f,j,m]);let M={...x&&{"data-id":`${x}-scrollbar`},"aria-hidden":!0,onPointerDown(e){if(e.button!==0)return;let t=Je(e.nativeEvent),n=E?h.current:g.current;if(n&&q(n,t))return;let r=m.current;if(!r)return;let i=E?f.current:p.current;if(!n||!i)return;let a=E?`y`:`x`,o=Dc(n,`margin`,a),s=Dc(i,`padding`,a),c=E?n.offsetHeight:n.offsetWidth,l=i.getBoundingClientRect(),u=E?e.clientY-l.top-c/2-s+o/2:e.clientX-l.left-c/2-s+o/2,d=E?r.scrollHeight:r.scrollWidth,v=E?r.clientHeight:r.clientWidth,x=(E?i.offsetHeight:i.offsetWidth)-c-s-o;if(x<=0)return;let S=u/x,C=d-v;b(),E?r.scrollTop=S*C:r.scrollLeft=O===`rtl`?-(1-S)*C:S*C,y({x:r.scrollLeft,y:r.scrollTop}),_(e)},onMouseDown(e){e.preventDefault()},onPointerUp:v,onPointerCancel:v,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:k?`hidden`:void 0,...E?{top:0,bottom:`var(${Vc})`,insetInlineEnd:0,[il]:`${S.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${Hc})`,bottom:0,[al]:`${S.width}px`}}},N=C(`div`,e,{ref:[t,E?f:p],state:D,props:[M,s],stateAttributesMapping:Lc});return j?(0,X.jsx)(pl.Provider,{value:i,children:N}):null}),gl=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,scrollingX:d,scrollingY:f,hasMeasuredScrollbar:p}=Ec(),m=ml(),h=m===`vertical`;return C(`div`,e,{ref:[t,h?o:s],state:{scrolling:h?f:d,orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:u,style:{visibility:p?void 0:`hidden`,...h?{height:`var(--scroll-area-thumb-height)`}:{width:`var(--scroll-area-thumb-width)`}}},a]})}),_l=p({block:`scroll-area`,elements:[`viewport`,`content`,`scrollbar`,`thumb`,`corner`]}),vl={corner:{kWkggS:`lbjjy28o`,$$css:!0},root:{kB7OPa:`lb9f619`,kVAEAm:`lb1n2onr6`,$$css:!0},scrollbar:{kogj98:`lb10d6zji`,kaIpWk:`lb1vihcfj`,kmkexE:`lbbq4x80`,kWkggS:`lbjbqb8w`,kSiTet:`lb1d72f0e lbg01cxk`,kfzvcC:`lbjtggp9 lb47corl`,kIyJzY:`lb1x59bry`,kZKoxP:`lbey0qcv lbgmi5vj`,kzqmXN:`lbdv5nhs lb1mnm1az`,kgeoSG:`lb10tli2e`,k96MEf:`lb1ify4wq`,kSJ0CW:`lbs81dfj`,kEoFBp:`lb1hmns74`,kcTAPf:`lb5buv36 lbx6tml3`,kgzTxl:`lb1s3lflt lb1uphyuq`,kOlAkY:`lb1hodj4j lb1lntsp6`,$$css:!0},thumb:{kaIpWk:`lb1pjcqnp`,kWkggS:`lbur9dxv`,kZKoxP:`lb5yr21d`,kzqmXN:`lbh8yej3`,$$css:!0},viewport:{kI3sdo:`lb1a2a7pz`,kZeWKH:`lbxqldzo`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb5yr21d`,$$css:!0}},yl=e=>Z(e).className,bl=(e,t)=>typeof t==`function`?n=>f(e,t(n)):f(e,t),xl=({className:e,...t})=>(0,X.jsx)(Jc,{...t,className:bl(f(yl(vl.root),_l()),e)});xl.displayName=`ScrollAreaRoot`;var Sl=e=>{if(!e)return;let t=e===!0?`vertical`:e;return t===`horizontal`?`lobe-scroll-area-fade-horizontal`:t===`both`?`lobe-scroll-area-fade-both`:`lobe-scroll-area-fade`},Cl=({className:e,scrollFade:t=!1,xstyle:n,...r})=>(0,X.jsx)(ll,{...r,className:bl(f(yl([vl.viewport,Bi.info,n]),_l(`viewport`),Sl(t)),e)});Cl.displayName=`ScrollAreaViewport`;var wl=Cl,Tl=({className:e,...t})=>(0,X.jsx)(hl,{...t,className:bl(f(yl(vl.scrollbar),_l(`scrollbar`)),e)});Tl.displayName=`ScrollAreaScrollbar`;var El=({className:e,...t})=>(0,X.jsx)(gl,{...t,className:bl(f(yl(vl.thumb),_l(`thumb`)),e)});El.displayName=`ScrollAreaThumb`;var Dl={root:{kUOVxO:`lba2rfrd`,k1xSpc:`lb78zum5`,kCS8Yb:`lb1t1x2f9`,kXwgrk:`lbdt5ytf`,kzQI83:`lb1iyjqo2`,kmuXW:`lbs83m0k`,kAzted:`lb2lwn1j`,$$css:!0},viewport:{kg3NbH:`lb9xwowr`,kCS8Yb:`lb1t1x2f9`,kzQI83:`lb1iyjqo2`,kmuXW:`lbs83m0k`,kZKoxP:`lbt7dq6l`,kAzted:`lb2lwn1j`,$$css:!0}},Ol=20,kl=({children:e,className:t,itemSize:n,keepMounted:r,viewport:i,viewportProps:a,virtualizerRef:o,...s})=>{let c=(0,Y.useRef)(null),l=Ve([c,a?.ref]),u=(0,X.jsx)(wc,{itemSize:n,keepMounted:r,ref:o,scrollRef:c,ssrCount:Math.min(Ol,Y.Children.count(e)),children:e}),d=(0,X.jsx)(Cl,{tabIndex:-1,...a,ref:l,xstyle:Dl.viewport});return(0,X.jsxs)(xl,{"data-virtual":``,...s,className:Z(Dl.root,t).className,children:[(0,Y.cloneElement)(i??d,{children:u,...i&&{render:d}}),(0,X.jsx)(Tl,{children:(0,X.jsx)(El,{})})]})};kl.displayName=`VirtualScrollArea`;function Al(){let e=(0,Y.useRef)(!1),t=(0,Y.useRef)(null),n=(0,Y.useCallback)(()=>{e.current=!0,t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{e.current=!1},120)},[]);return(0,Y.useEffect)(()=>()=>{t.current&&clearTimeout(t.current)},[]),{markPointerScroll:n,pointerScrollRef:e,scrollGuardProps:{onPointerDown:n,onTouchMove:n,onWheel:n}}}var jl=`[role^="menuitem"], [role="option"]`,Ml=`data-virtual-index`,Nl=60,Pl=e=>e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(Pl).join(``):(0,Y.isValidElement)(e)?Pl(e.props.children):``,Fl=(e,t,n)=>{if(!(0,Y.isValidElement)(e))return{disabled:!0,label:``};let r=e.props,i=n?.(e,t)??r.label??r[`aria-label`]??Pl(r.children);return{disabled:!!r.disabled||r[`aria-disabled`]===!0||r[`aria-disabled`]===`true`,label:i.trim()}},Il=(e,t,n)=>{if(e.length===0)return-1;let r=t.toLowerCase(),i=(n%e.length+e.length)%e.length;for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,a=e[n];if(!a.disabled&&a.label.toLowerCase().startsWith(r))return n}return-1},Ll=(e,t)=>{if(t){for(let t=e.length-1;t>=0;--t)if(!e[t].disabled)return t;return-1}return e.findIndex(e=>!e.disabled)};function Rl({children:e,enabled:t,getItemLabel:n,keepMounted:r,typeaheadResetMs:i=500}){let a=(0,Y.useRef)(null),o=(0,Y.useRef)(null),s=(0,Y.useRef)(null),c=(0,Y.useRef)(null),[l,u]=(0,Y.useState)(null),d=(0,Y.useRef)(null),[f,p]=(0,Y.useState)(null),{pointerScrollRef:m,scrollGuardProps:h}=Al(),g=(0,Y.useMemo)(()=>t?Y.Children.map(e,(e,t)=>Fl(e,t,n))??[]:[],[e,t,n]),_=(0,Y.useCallback)(e=>{Object.hasOwn(e,`scrollIntoView`)||(e.scrollIntoView=(...t)=>{m.current||HTMLElement.prototype.scrollIntoView.call(e,...t)})},[m]),v=(0,Y.useCallback)(()=>{let e=a.current;e&&!e.contains(document.activeElement)&&e.focus({preventScroll:!0})},[]),y=(0,Y.useRef)(-1),b=(0,Y.useCallback)(()=>{let e=d.current,t=a.current;if(e===null||!t)return!1;v();let n=t.scrollTop,r=n===y.current;if(y.current=n,!r)return!1;let i=t.querySelector(`[${Ml}="${e}"]`),o=i&&(i.matches(jl)?i:i.querySelector(jl));return o?(_(o),s.current=o,o.focus({preventScroll:!0}),!0):!1},[_,v]);(0,Y.useEffect)(()=>{let e=a.current;if(!t||!e)return;let n=new MutationObserver(()=>{if(d.current!==null){b();return}let t=s.current,n=document.activeElement;t&&!t.isConnected&&n===document.body?(s.current=null,e.focus({preventScroll:!0})):t&&n===t&&t.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0}))});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[t,b]);let x=(0,Y.useRef)(null);(0,Y.useEffect)(()=>()=>{x.current!==null&&cancelAnimationFrame(x.current)},[]);let S=(0,Y.useCallback)(e=>{c.current=e,d.current=e,u(e),p(e),a.current?.focus({preventScroll:!0}),y.current=-1,o.current?.scrollToIndex(e,{align:`nearest`}),x.current!==null&&cancelAnimationFrame(x.current);let t=0,n=()=>{x.current=null,b(),t+=1,d.current!==null&&t<Nl?x.current=requestAnimationFrame(n):d.current!==null&&(d.current=null,p(null))};x.current=requestAnimationFrame(n)},[b]),C=(0,Y.useRef)(``),w=(0,Y.useRef)(null),T=(0,Y.useRef)(null),E=(0,Y.useCallback)(()=>{C.current=``,T.current&&clearTimeout(T.current),T.current=null},[]);(0,Y.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);let D=(0,Y.useCallback)(e=>{if(!t||g.length===0||e.target instanceof HTMLElement&&e.target.matches(`input, textarea`))return;if(e.key===`Home`||e.key===`End`){let t=e.key===`End`,n=Ll(g,t);if(n===-1)return;e.preventDefault(),e.stopPropagation(),E(),S(n);return}if(e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===` `&&C.current===``)return;e.preventDefault(),e.stopPropagation();let n=C.current===``;g.every(e=>e.disabled||e.label[0]?.toLowerCase()!==e.label[1]?.toLowerCase())&&C.current===e.key&&(C.current=``),C.current+=e.key,T.current&&clearTimeout(T.current),T.current=setTimeout(E,i);let r=n||C.current.length===1?c.current??w.current??-1:w.current??c.current??-1,a=C.current.length===1?r+1:r,o=Il(g,C.current,a);o===-1?e.key!==` `&&E():(w.current=o,S(o))},[t,g,S,E,i]),O=(0,Y.useMemo)(()=>t?Y.Children.map(e,(e,t)=>{if(!(0,Y.isValidElement)(e))return e;let{onFocus:n}=e.props;return(0,Y.cloneElement)(e,{[Ml]:t,onFocus:e=>{n?.(e);let r=e.target.closest(jl);r&&e.currentTarget.contains(r)&&(s.current=r,_(r)),c.current=t,u(t),d.current===t&&(d.current=null,p(null))}})}):e,[e,t,_]),k=(0,Y.useMemo)(()=>{if(!t)return;let n=Y.Children.count(e),i=new Set(r);l!==null&&i.add(l),f!==null&&i.add(f);let a=[...i].filter(e=>e>=0&&e<n);return a.length?a:void 0},[l,e,t,f,r]),A=(0,Y.useCallback)(e=>{if(d.current===null)return;let t=a.current;t&&(e.relatedTarget&&t.contains(e.relatedTarget)||t.focus({preventScroll:!0}))},[]);return{keepMountedIndices:k,viewportProps:(0,Y.useMemo)(()=>({...h,onBlur:A,onKeyDownCapture:D}),[A,D,h]),viewportRef:a,virtualChildren:O,virtualizerRef:o}}var zl=Y.createContext(void 0);function Bl(){let e=Y.useContext(zl);if(e===void 0)throw Error(L(63));return e}var Vl=`data-valid`,Hl=`data-invalid`,Ul={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Wl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Gl={disabled:!1,...Wl},Kl={valid(e){return e===null?null:e?{[Vl]:``}:{[Hl]:``}}},ql=`data-checked`,Jl=`data-unchecked`,Yl={...Kl,checked(e){return e?{[ql]:``}:{[Jl]:``}}},Xl={invalid:void 0,name:void 0,validityData:{state:Ul,errors:[],error:``,value:``,initialValue:null},setValidityData:Re,disabled:void 0,setTouched:Re,setDirty:Re,setFilled:Re,setFocused:Re,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Gl,registerFieldControl:Re,validation:{getValidationProps:(e,t=ie)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Re,getInputControl:()=>null,commit:async()=>{},change:Re}},Zl=Y.createContext(Xl);function Ql(e=!0){let t=Y.useContext(Zl);if(t.setValidityData===Re&&!e)throw Error(L(28));return t}function $l(e,t,n){let{setFocused:r,focusOwnerRef:i}=Ql(),a=K(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return H(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function eu(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Ql(),s=Be(()=>Symbol());H(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),H(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var tu=Y.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Re,validationMode:`onSubmit`,submitCountRef:{current:0}});function nu(){return Y.useContext(tu)}var ru=Y.createContext({controlId:void 0,registerControlId:Re,resetControlId:Re,labelId:void 0,setLabelId:Re,messageIds:[],setMessageIds:Re,getDescriptionProps:e=>e});function iu(){return Y.useContext(ru)}function au(e,t,n,r=!0,i,a){let[o,s]=Y.useState(),c=B(i?`${i}-label`:void 0),l=!!a?.trim(),u=e??(l?void 0:t)??o;return H(()=>{let i=e||t||l||!r?void 0:ou(n.current,c);o!==i&&s(i)}),u}function ou(e,t){let n=su(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function su(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function cu(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=iu(),o=B(),s=Be(()=>Symbol()),c=Y.useRef(!1),l=Y.useRef(!1),u=K(()=>{c.current&&i!==Re&&(c.current=!1,i(s.current,void 0))});return H(()=>{if(!n||i===Re){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),H(()=>u,[u]),(n?r:void 0)??t??o}var lu=Y.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:m=!1,render:h,uncheckedValue:g,value:_,style:y,...b}=e,{clearErrors:x}=nu(),{state:S,setTouched:w,setDirty:T,validityData:E,setFilled:D,validationMode:O,disabled:k,name:A,validation:j}=Ql(),{labelId:M}=iu(),N=k||m,P=A??l,ee=Y.useRef(null),I=Fe(ee,c,j.inputRef),L=Y.useRef(null),te=$l(N,L),R=B(),ne=cu({id:s}),z=u?void 0:ne,[V,ae]=Fr({controlled:n,default:!!i,name:`Switch`,state:`checked`});eu(L,R,V,void 0,!N,l),H(()=>{D(V)},[V,D]),zs(V,()=>{x(P),T(V!==E.initialValue),j.change(V)});let{getButtonProps:oe,buttonRef:se}=pt({disabled:N,native:u}),ce=au(a,M,ee,!u,z,b[`aria-label`]),le={id:u?ne:R,role:`switch`,"aria-checked":V,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":ce,onFocus(){te(!0)},onBlur(){let e=ee.current;e&&!N&&(w(!0),te(!1),O===`onBlur`&&j.commit(e.checked))},onClick(e){if(f||N)return;e.preventDefault();let t=ee.current;t&&v(t,e)}},ue={...j.getValidationProps(N),checked:V,disabled:N,form:o,id:z,name:P,required:p,style:P?re:F,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:I,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=W(Ht,e.nativeEvent);d?.(t,n),n.isCanceled||ae(t)},onClick(e){e.stopPropagation()},onFocus(){L.current?.focus()},..._===void 0?ie:{value:_}},de=Y.useMemo(()=>({...S,checked:V,disabled:N,readOnly:f,required:p}),[S,V,N,f,p]),fe=C(`span`,e,{state:de,ref:[t,L,se],props:[le,b,oe,e=>j.getValidationProps(N,e)],stateAttributesMapping:Yl});return(0,X.jsxs)(zl.Provider,{value:de,children:[fe,!V&&P&&g!==void 0&&(0,X.jsx)(`input`,{type:`hidden`,form:o,name:P,value:g,disabled:N}),(0,X.jsx)(`input`,{...ue,suppressHydrationWarning:!0})]})}),uu=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Bl();return C(`span`,e,{state:o,ref:t,stateAttributesMapping:Yl,props:a})}),du=(...e)=>e.reduce((e,t)=>n=>t(e(n))),fu=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},pu=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},mu=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function hu(e,t,n,r){return e===t&&n===r?xn:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=mu(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(mu(s+1e-7,e,n)-i-r)}return mu(s,t,r)}}var gu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_u=e=>t=>1-e(1-t),vu=hu(.33,1.53,.69,.99),yu=_u(vu),bu=gu(yu),xu=e=>e>=1?1:(e*=2)<1?.5*yu(e):.5*(2-2**(-10*(e-1))),Su=e=>1-Math.sin(Math.acos(e)),Cu=_u(Su),wu=gu(Su),Tu=hu(.42,0,1,1),Eu=hu(0,0,.58,1),Du=hu(.42,0,.58,1),Ou=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ku(e,t){return Ou(e)?e[pu(0,e.length,t)]:e}var Au={linear:xn,easeIn:Tu,easeInOut:Du,easeOut:Eu,circIn:Su,circInOut:wu,circOut:Cu,backIn:yu,backInOut:bu,backOut:vu,anticipate:xu},ju=e=>typeof e==`string`,Mu=e=>{if(jn(e)){let[t,n,r,i]=e;return hu(t,n,r,i)}return ju(e)?Au[e]:e};function Nu(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Nu(s,r,e+1/3),a=Nu(s,r,e),o=Nu(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Fu(e,t){return n=>n>0?t:e}var Iu=(e,t,n)=>e+(t-e)*n,Lu=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ru=[Xn,In,yn],zu=e=>Ru.find(t=>t.test(e));function Bu(e){let t=zu(e);if(!t)return!1;let n=t.parse(e);return t===yn&&(n=Pu(n)),n}var Vu=(e,t)=>{let n=Bu(e),r=Bu(t);if(!n||!r)return Fu(e,t);let i={...n};return e=>(i.red=Lu(n.red,r.red,e),i.green=Lu(n.green,r.green,e),i.blue=Lu(n.blue,r.blue,e),i.alpha=Iu(n.alpha,r.alpha,e),In.transform(i))},Hu=new Set([`none`,`hidden`]);function Uu(e,t){return Hu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Wu(e,t){return n=>Iu(e,t,n)}function Gu(e){return typeof e==`number`?Wu:typeof e==`string`?En(e)?Fu:_n.test(e)?Vu:Yu:Array.isArray(e)?Ku:typeof e==`object`?_n.test(e)?Vu:qu:Fu}function Ku(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Gu(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function qu(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Gu(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ju(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Yu=(e,t)=>{let n=an(e),r=an(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Hu.has(e)&&!r.values.length||Hu.has(t)&&!n.values.length?Uu(e,t):du(Ku(Ju(n,r),r.values),Jn(r)):Fu(e,t)},Xu=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Zu(e,t){let n=Xu.exec(e);if(!n)return;let r=Xu.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Bn(Iu(a,o,e))+i}function Qu(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return Iu(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Zu(e,t);if(n)return n}return Gu(e)(e,t)}var $u=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>gn.update(t,e),stop:()=>mn(t),now:()=>On.isProcessing?On.timestamp:er.now()}},ed=2e4;function td(e,t=50,n=ed,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function nd(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(td(o),ed);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Hn(s)}}var rd=100,id=10,ad=1,od=800,sd=.3,cd=.3,ld=.01,ud=2,dd=.005,fd=.5,pd=.01,md=10,hd=.05,gd=e=>e<0?1/Math.max(1+e,hd):Math.max(1-e,hd);function _d(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return bd(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function vd(e,t){return e*Math.sqrt(1-t*t)}var yd=12;function bd(e,t,n){let r=n;for(let n=1;n<yd;n++)r-=e(r)/t(r);return r}var xd=.001;function Sd({duration:e=od,bounce:t=sd}){let n,r,i=gd(t);e=or(pd,md,Hn(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=vd(t,i),o=Math.exp(-r);return xd-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=vd(t*t,i);return(-n(t)+xd>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=bd(n,r,a),s=o*_d(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Pn(e)}}var Cd=(e,t)=>(t?e>=0:e>0)&&e<1/0;function wd(e,t){if(Cd(e,t))return e}function Td(e){let t=wd(e.stiffness),n=wd(e.damping,!0),r=wd(e.mass),i={...e,stiffness:t??rd,damping:n??id,mass:r??ad,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=gd(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*_d(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Sd(i)),i.isResolvedFromDuration=!0;Cd(i.stiffness)&&Cd(i.damping,!0)||(i.stiffness=rd,i.damping=id)}return i}function Ed(e=cd,t=sd){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Td({...n}),f=e=>u?0:-Hn(e),p=s/(2*Math.sqrt(o*c)),m=Hn(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?ld:ud),g.restDelta=n.restDelta||(e?dd:fd)};_();let v,y,b;if(p<1){let e=vd(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>Pn(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Pn(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(td(S),ed),t=nn(t=>S.next(e*t).value,e,30);return e+`ms `+t}};return S}var Dd=Object.assign(Ed,{applyToOptions:e=>{let t=nd(e,100,Ed);return e.ease=t.ease,e.duration=Pn(t.duration),e.type=`keyframes`,e}});function Od({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=Dd({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function kd(e,t,n){let r=[],i=Tn.mix||Qu,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=du(Array.isArray(t)?t[o]||xn:t,a)),r.push(a)}return r}function Ad(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=kd(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=fu(e[r],e[r+1],n);return s[r](i)};return n?t=>l(or(e[0],e[a-1],t)):l}function jd(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=fu(0,t,r);e.push(Iu(n,1,i))}}function Md(e){let t=[0];return jd(t,e.length-1),t}function Nd(e,t){return e.map(e=>e*t)}function Pd(e,t){return e.map(()=>t||Du).splice(0,e.length-1)}function Fd({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=Ou(r)?r.map(Mu):Mu(r)||Du,s={done:!1,value:t[0]},c=-1;if(!a){for(let e=1;e<t.length;e++)if(t[e]!==t[e-1]){if(c>=0){c=-2;break}c=e-1}}if(c>=0){let r=n&&n.length===t.length?n:Md(t),i=r[c]*e,a=r[c+1]*e,l=t[c],u=t[c+1],d=Array.isArray(o)?o[c]:o,f=(Tn.mix||Qu)(l,u),p=t.length-2;return{calculatedDuration:e,next:t=>(s.value=c&&t<i?f(0):c<p&&(t>=a||!e)?typeof u==`number`?u:f(1):f(d(t>=a||!e?1:t<=i?0:(t-i)/(a-i))),s.done=t>=e,s)}}let l=Ad(Nd(n&&n.length===t.length?n:Md(t),e),t,{ease:Array.isArray(o)?o:Pd(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var Id=5;function Ld(e,t,n){let r=Math.max(t-Id,0);return qn(n-e(r),t-r)}function Rd(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Ld(t=>e.next(t).value,t,e.next(t).value)}var zd={decay:Od,inertia:Od,tween:Fd,keyframes:Fd,spring:Dd};function Bd(e){typeof e.type==`string`&&(e.type=zd[e.type])}var Vd=40,Hd=(e,t)=>t-e>Vd&&!Tn.useManualTiming?t:e,Ud=e=>e/100,Wd=e=>Math.round(e*1e4)/1e4,Gd=class extends dn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options,t=er.now();e&&e.updatedAt!==t&&this.tick(e.updatedAt=t),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),lr(this,this.options)}initAnimation(){let{options:e}=this;Bd(e);let{type:t=Fd,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Fd;this.mixKeyframes=void 0,s!==Fd&&typeof o[0]!=`number`&&(this.mixKeyframes=du(Ud,e.mixer?.(o[0],o[1])||Qu(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=td(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Hd(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==Od&&(f.value=hn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Wd((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==Od?hn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=or(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return Hn(this.calculatedDuration)}get iterationDuration(){return this.duration+Hn(this.options.delay??0)}get time(){return Hn(this.currentTime)}set time(e){this.state===`finished`&&this.updateFinished(),e=Pn(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Rd(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(er.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Hn(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=$u,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(er.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Kd(e){return new Gd(e)}var qd={anticipate:xu,backInOut:bu,circInOut:wu};function Jd(e){return e in qd}function Yd(e){typeof e.ease==`string`&&Jd(e.ease)&&(e.ease=qd[e.ease])}var Xd=class extends wn{constructor(e){Yd(e),Bd(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(er.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Gd({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?or(0,10,a):0,s=this.sample(a);n&&r&&pn(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Zd=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(rn.test(e)||e===`0`)&&!e.startsWith(`url(`));function Qd(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $d(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Zd(i,t),s=Zd(a,t);return!o||!s?!1:Qd(e)||(n===`spring`||ar(n))&&r}function ef(e){e.duration=0,e.type=`keyframes`}var tf=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function nf(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&tf.test(e[t]))return!0;return!1}var rf=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),af=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),of=()=>!Tn.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function sf(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(sr.has(n)||af.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return of()&&(sr.has(n)||af.has(n)&&nf(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!rf(e)}var cf=200,lf=.001,uf=.1,df=.001,ff=100,pf=100,mf=new Set([`linear`,`easeIn`,`easeOut`,`easeInOut`]),hf=e=>mf.has(e),gf=new WeakMap,_f=(e,t)=>{let n=gf.get(e);return n?.[0]!==t&&(n=[t,`linear(`+Md(Array(t+1)).map(t=>Wd(e(t))+` `+Wd(t*100)+`%`)+`)`],gf.set(e,n)),n[1]},vf=(e,t)=>Math.min(cf,Math.max(2,Math.ceil((t-e)/10))),yf=(e,t)=>Math.abs(e-t)<=lf,bf=(e,t)=>e-t,xf=(e,t,n)=>Md(Array(n+1)).map(n=>Iu(e,t,n)),Sf=e=>e.motionValue.owner,Cf=e=>Nn.get(e),wf=({state:e})=>e===`idle`||e===`finished`,Tf=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Ef=({name:e,motionValue:t})=>e&&Ln.includes(e)&&t?.owner?.current instanceof HTMLElement&&of()&&rr();function Df(e){let t=Sf(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Tf(t,`transform`)||`none`)===`none`&&!Tf(t,`pathRotation`)&&!t.projection?.isProjecting()&&!rf(e)}var Of=class{constructor(e,t,n,r){this.element=e,this.update=t,this.makeDriver=n,this.animation=r}get js(){return this.driver||=this.makeDriver(this.update)}now(){return this.driver||this.makeDriver!==$u?this.js.now():On.isProcessing?On.timestamp:er.now()}start(e=!0){let t=Cf(this.element);!t||t.isJS?this.js.start(e):t.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=Cf(this.element);e&&!e.isFinishing&&e.release(this.animation)}},kf,Af=class extends Gd{constructor(e){let t=Sf(e).current,{driver:n=$u}=e,r,i=Df(e);e.driver=e=>new Of(t,e,n,r),super(e),r=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=i;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:e,times:t}=this.options;return t||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=Md(e)),this.cachedOffsets)}get group(){return Cf(Sf(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(er.now()):void 0}tween(){let{keyframes:e,type:t,repeat:n,delay:r=0}=this.options,i=-1;if(n||t!==Fd||this.holdTime!==null)return;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]){if(i>=0)return;i=t-1}let{ease:a}=this.options;Ou(a)&&(a=a[i]);let o=this.offsets(),s=e=>this.startTime+(r+o[e]*this.totalDuration)/this.speed;if(i>=0){let e=jn(a)?Qt(a):hf(a)?fn[a]:Mu(a);return[s(i),s(i+1),typeof e==`string`||yf(e(0),0)&&yf(e(1),1)?e:void 0]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,type:u}=a,d=(u||Fd)===Fd?this.offsets():[0,1],f=n+o/r,p=[];if(this.holdTime!==null||!(i>0))return p;for(let n=Math.max(0,Math.floor((e-f)*r/i));n<=s;n++){let a=f+n*i/r;if(a>t)break;for(let o of d){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&p.push(s)}}return p}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=er.now(),t=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-10,!0):t,t,10)}play(){this.isStopped||((this.group||Nf(Sf(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(er.now())}get time(){return this.isAccelerated()?Hn(or(0,this.totalDuration,this.at(er.now())-(this.options.delay||0))):super.time}set time(e){(kf??=Object.getOwnPropertyDescriptor(Gd.prototype,`time`).set).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},jf,Mf=e=>{jf||queueMicrotask(()=>{let e=jf;jf=void 0,e.forEach(e=>e())}),(jf||=[]).push(e)};function Nf(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p,m=1/0,h,g=e=>{for(let t of n)if(t.name===e)return!0},_=(t,n)=>{let o={};for(let s of t===void 0?Ln:a){let a=r.get(s),c=t===void 0?Tf(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},v=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&Mn(r,i)||(n+=bn(r,i)+` `)}return(t?n.trim():n)||`none`},y=(e,t)=>v(_(e,t)),b=(e=_())=>{t.style.transform=v(e,!0)},x=e=>{e.onfinish=e.oncancel=null,e.cancel()},S=(e=!0)=>{clearTimeout(p),m=1/0,h=void 0,e&&b(),s.forEach(({animation:e})=>x(e)),s=[]},C=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),w=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=er.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(x(e),s=s.filter(e=>e!==r)),F.schedule(!1)}),e.oncancel=()=>s.includes(r)&&F.demote(),s.push(r)},T=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},E=(e,t,n,r)=>{let i=vf(t,n);if(r.length*4>i)return;let a;for(let r of e){let e=r.numberAt(t),i=(r.numberAt((t+n)/2)-e)/(r.numberAt(n)-e);if(i===i){if(a===void 0)a=i;else if(!yf(i,a))return}}let o=xf(t,n,i).concat(r).sort(bf),s=e=>fu(t,n,e),c,l;for(let n of e){let e=n.numberAt(t),r=o.map(t=>n.numberAt(t)-e),i=r[r.length-1],a=r.some(e=>Math.abs(e)*lf>Math.abs(i))?0:i,s=r.map(e=>a?e/a:e);if(a&&!c)c=s,l=t=>(n.numberAt(t)-e)/a;else if(s.some((e,t)=>!yf(e,a&&c[t])))return}if(!c||c.every((e,t)=>yf(e,s(o[t]))))return`linear`;let u=[],d=(e,t=l(e))=>u.push(Wd(t)+` `+Wd(s(e)*100)+`%`);return c.forEach((e,t)=>{t&&Math.abs(e-c[t-1])>.2&&T(l,o[t-1],o[t]).forEach(e=>d(e)),d(o[t],e)}),`linear(`+u+`)`},D=(e,t,n,r)=>{let i=[t],a=[],o=n,s=t;for(let r of e){let e=r.tween();if(e?.[2]!==`linear`){let[i,c]=r.timing(),[l,u]=e||[t,c?n:i];o=Math.min(o,l),s=Math.max(s,u),a.push(r)}}o=Math.max(t,o),s=Math.min(n,s);let c=(e,t)=>a.every(n=>!(Math.abs(n.numberAt((e+t)/2)-(n.numberAt(e)+n.numberAt(t))/2)>(n.name.startsWith(`scale`)?df:uf))),l=(t,n,r)=>{if(n-t<1||c(t,n))i.push(n);else if(r<4)l(t,(t+n)/2,r+1),l((t+n)/2,n,r+1);else{for(let r of e)i.push(...T(e=>r.numberAt(e),t,n));i.push(n)}},u=s>o?xf(o,s,Math.ceil((s-o)/100)):[];u.push(n);for(let e of r)u.push(e,Math.min(e+.01,n));let d=t;for(let e of u.sort(bf))e>d&&l(d,e,0),d=e;return i.sort(bf)},O=e=>{let t;for(let n of e){let e=n.tween();if(!e||t&&(Math.abs(e[0]-t[0])>1||Math.abs(e[1]-t[1])>1))return;t=[e[0],e[1],!t||e[2]===t[2]?e[2]:void 0]}return t},k=(e,t,n,r,i={fill:`both`},a)=>{let o=r?[]:e.flatMap(e=>e.boundaries(t,n)),s=r||E(e,t,n,o),c=s?[t,n]:D(e,t,n,o),l=c.map(e=>y(e,a)),u={transform:l};return s||(u.offset=c.map(e=>fu(t,n,e))),l.every(e=>e===l[0])&&(b(_(t,a)),u=null),C(u,{...i,duration:n-t,easing:s||`linear`})},A=e=>{let t=er.now()+e;t<m&&(clearTimeout(p),m=t,p=setTimeout(()=>{m=1/0,F.schedule(!1)},e))},j=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),!a){if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=Ln.filter(t=>{if(r.has(t))return!0;let n=i[t]=Tf(e,t);return n!==void 0&&!Mn(t,n)}),S(!1);let m=!l&&O(d);try{if(c>t){let e;if(m&&m[1]>t){let[n,r,i]=m;if(n-t>pf)return d.forEach(e=>e.sync()),A(h=n-t-pf),!0;e=typeof i==`string`?i:i?_f(i,vf(n,r)):E(d,n,r,[]),e&&w(k(d,n,r,e,{fill:`both`,endDelay:c-r}),n-t,c-n)}e||w(k(d,t,c),0,c-t),p.forEach(e=>e<c-1&&w(C(null,{duration:e-t}),0,e-t))}if(l){let e=u+Math.floor((c-u)/l)*l;w(k(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||S(),!0},M=(e,t)=>{let r,i=0;for(let t of n){let n=o.get(t);if(!n)return!1;let[a,c,l]=n,u=t.at(e),d=t.timing()[0]===1/0;if(l){if(d&&(u===a||!s.length))continue;return!1}let f=(u-a)/c,p=d?0:t.speed/c;if(r===void 0)r=f,i=p;else if(Math.abs(f-r)>1||p!==i)return!1}if(r===void 0)return!0;if(!s.length){if(h===void 0||t&&i)return!1;if(i){let e=(h-r)/i;if(e<1)return!1;A(e)}return!0}for(let{offset:e,end:n,isDone:i}of s){let a=r-e;if(n<1/0&&(i?a<n-1:a<0&&(t||e<=0)||a>=n))return!1}for(let{animation:t,offset:n,isDone:a}of s){if(a)continue;let o=r-n;i&&t.updatePlaybackRate&&t.playState===`running`&&Math.abs(Number(t.currentTime)-o)<20?t.playbackRate!==i&&t.updatePlaybackRate(i):i?(t.playbackRate!==i&&(t.playbackRate=i),t.startTime=e-o/i):(t.startTime=null,t.currentTime=o)}return!0},N=()=>!n.size&&(u=!0,Cf(t)===F&&Nn.delete(t),F.isJS||S(),!0),P=()=>{let t=er.now();if(F.isJS||(F.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=Tf(e,n.name),o.has(n)||(c=!0))}),F.isFinishing=!1),l=!1,u||(n.forEach(e=>wf(e)&&n.delete(e)),N()))return;for(let e of n)if(!e.canAccelerate)return F.demote(!0);F.isJS&&(F.isJS=!1,c=!0,n.forEach(e=>e.stopJS()));let r=c,a=d;if(c=d=!1,r||!M(t,a)){if(a){if(t-f<ff)return F.demote();f=t}if(!j(t))return F.demote()}else if(h!==void 0&&!a)return;n.forEach(e=>e.timing()[0]===1/0&&e.sync())},F={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,On.isProcessing?gn.render(P,!1,!0):Mf(P)))},release(e){wf(e)&&n.delete(e),N()||F.schedule(!0)},check(){if(!F.isJS){for(let t in i)if(Tf(e,t)!==i[t]&&!g(t))return F.schedule(!0,!0)}},demote(e){if(!(F.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),F.isJS=!0,o=new Map,S(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return Nn.set(t,F),F}var Pf=class extends dn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=er.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||$t;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=er.now();let u=$d(e,i,a,o);u||((Tn.instantAnimations||!s)&&l?.(hn(e,n,t)),e[0]=e[e.length-1],ef(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&sf(n),p=!f&&Ef(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Hd(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Xd(n)}catch{m=new Gd(n)}}else m=p?new Af(n):new Gd(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),cn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}},Ff=class{constructor(e){this.stop=()=>{for(let e of this.animations)e.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){for(let t of this.animations)t.time=e}get speed(){return this.getAll(`speed`)}set speed(e){for(let t of this.animations)t.speed=e}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return If(this.animations,`duration`)}get iterationDuration(){return If(this.animations,`iterationDuration`)}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function If(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Lf=class extends Ff{then(e,t){return this.finished.finally(e).then(()=>{})}};function Rf(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function zf(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Rf(n,e)}var Bf={type:`spring`,stiffness:500,damping:25,restSpeed:10},Vf=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Hf={type:`keyframes`,duration:.8},Uf={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Wf=(e,{keyframes:t})=>t.length>2?Hf:sn.has(e)?e.startsWith(`scale`)?Vf(t[1]):Bf:Uf,Gf=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function Kf(e){for(let t in e)if(!Gf.has(t))return!0;return!1}var qf=(e,t,n,r={},i,a)=>o=>{let s=zf(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Pn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Kf(s)||Object.assign(u,Wf(e,u)),u.duration&&=Pn(u.duration),u.repeatDelay&&=Pn(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ef(u),u.delay===0&&(d=!0)),(Tn.instantAnimations||Tn.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ef(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=hn(u.keyframes,s);if(e!==void 0){gn.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Gd(u):new Pf(u)},Jf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yf(e){let t=Jf.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Xf(e,t,n=1){let[r,i]=Yf(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return cr(e)?parseFloat(e):e}return En(i)?Xf(i,t,n+1):i}var Zf=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ln]),Qf={test:e=>e===`auto`,parse:e=>e},$f=e=>t=>t.test(e),ep=[Cn,kn,Xt,un,Wn,$n,Qf],tp=e=>ep.find($f(e));function np(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||nr(e)}var rp=new Set([`auto`,`none`,`0`]);function ip(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!rp.has(t)&&vn(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=tn(n,i))}var ap=class extends $t{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Kn(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),En(r))){let i=Xf(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Zf.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=tp(r),o=tp(i);if(Kn(r)!==Kn(i)&&Zt[n])this.needsMeasurement=!0;else if(a!==o){if(Rn(a)&&Rn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Zt[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||np(e[t]))&&n.push(t);n.length&&ip(e,n,t)}measure(){let{element:e,name:t}=this;return Zt[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},op=[];function sp(e){cp(e),op.unshift(e)}function cp(e){ir(op,e)}function lp(e){return op.find(t=>t.test(e))}function up(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?gn.update(()=>l.set(c)):(l.run(qf(o,l,c,s&&Zf.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>gn.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function dp(e,t,n,r,i){let a,o=!1,s=up(r=>{let s=a?.[r]??e.get(t,r);if(!s){let c;if(!i){let i=n[r];c=fp(i)??e.read(t,r,i)}s=Vn(c,{owner:i}),o?e(t,{[r]:s}):(a||={})[r]=s}return s},n,r,i);return o=!0,a&&e(t,a),s}function fp(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function pp(e){return ur(e)&&`ownerSVGElement`in e}var mp={};function hp(e){return mp.current?.add(e),e}var gp=e=>mp.current?mp.current.bind(e):e;function _p(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:mp.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var vp=class{constructor(e=gn.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function yp(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new vp(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function bp(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(Mn(i,a)||(t+=(t&&` `)+bn(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+bn(`rotate`,i)),t||`none`}var xp=new Set([`originX`,`originY`,`originZ`]),Sp=(e,t)=>tr(e.get(t)?.get(),on[t]),Cp=(e,t,n,r)=>{let i,a;if(sn.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Ln.indexOf(e)-Ln.indexOf(t)))}t.get(`transform`)||(!dr(e)&&!t.get(`transformBox`)&&Cp(e,t,`transformBox`,new An(`fill-box`)),t.set(`transform`,new An(`none`),()=>{Nn.get(e)?.check(),e.style.transform=bp(t)})),a=t.get(`transform`)}else xp.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new An(``),()=>{let n=Sp(t,`originX`)??`50%`,r=Sp(t,`originY`)??`50%`,i=Sp(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=en(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=tr(r.getCurrent(),on[n])};return t.set(n,r,i,a)},wp=e=>dr(e)||pp(e),Tp=(e,t)=>{if(sn.has(t))return ln(e,t);let n=getComputedStyle(e),r=en(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Ep=yp(Cp,{test:wp,read:Tp});function Dp(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Op(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var kp=(e,t,n,r,i=n)=>{let a=Op(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Dp(i));let o=on[n]||on[i],s=a?()=>{e[i]=tr(r.get(),on[n])}:()=>{let t=tr(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ap(e,t,n,r){return gn.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new An(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var jp=yp((e,t,n,r)=>n.startsWith(`path`)&&!sn.has(n)?Ap(e,t,n,r):n.startsWith(`attr`)?kp(e,t,n,r,Mp(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(sn.has(n)||xp.has(n)||en(n)||n in e.style?Cp:kp)(e,t,n,r),{test:pp,read:(e,t)=>sn.has(t)?on[t]?.default||0:en(t)||zn.includes(t)?Tp(e,t)||e.getAttribute(Dp(t))||0:(t=Mp(t),e.getAttribute(Dp(t))??e.getAttribute(t)??void 0)});function Mp(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Np({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Pp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fp(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ip(e){return e===void 0||e===1}function Lp({scale:e,scaleX:t,scaleY:n}){return!Ip(e)||!Ip(t)||!Ip(n)}var Rp=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function zp(e){return Lp(e)||Vp(e)||Bp(e)}function Bp(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Vp(e){return Hp(e.x)||Hp(e.y)}function Hp(e){return e&&e!==`0%`}function Up(e,t,n){return n+t*(e-n)}function Wp(e,t,n,r,i){return i!==void 0&&(e=Up(e,i,r)),Up(e,n,r)+t}function Gp(e,t=0,n=1,r,i){e.min=Wp(e.min,t,n,r,i),e.max=Wp(e.max,t,n,r,i)}function Kp(e,{x:t,y:n}){Gp(e.x,t.translate,t.scale,t.originPoint),Gp(e.y,n.translate,n.scale,n.originPoint)}var qp=.999999999999,Jp=1.0000000000001;function Yp(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++)a=n[s],o=a.projectionDelta,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Xp(e.x,-a.scroll.offset.x),Xp(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Kp(e,o)),r&&(r.path?.[s]||r)!==a&&zp(a.latestValues)&&$p(e,a.latestValues,a.layout?.layoutBox));t.x<Jp&&t.x>qp&&(t.x=1),t.y<Jp&&t.y>qp&&(t.y=1)}function Xp(e,t){e.min+=t,e.max+=t}function Zp(e,t,n,r,i=.5){Gp(e,t,n,Iu(e.min,e.max,i),r)}function Qp(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function $p(e,t,n){let r=n??e;Zp(e.x,Qp(t.x,r.x),t.scaleX,t.scale,t.originX),Zp(e.y,Qp(t.y,r.y),t.scaleY,t.scale,t.originY)}function em(e,t){return Np(Fp(e.getBoundingClientRect(),t))}function tm(e,t,n){let r=em(e,n),{scroll:i}=t;return i&&(Xp(r.x,i.offset.x),Xp(r.y,i.offset.y)),r}var nm=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),rm={},im=e=>pp(e)?jp:Ep,am=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=ap}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return em(this.current)}getProps(){return rm}};function om(e,t,n,r){if(mp.current?.track(e),r)return up(e=>r.getValue(e,null),t,n,r);let i=im(e);return dp(i,e,t,n,new am(i,e))}var sm=yp((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ur(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}});function cm(e,t,n){let r=Dn(e)?e:Vn(e);return r.run(qf(``,r,t,n)),r.animation}function lm(e){return typeof e==`object`&&!Array.isArray(e)}function um(e,t,n,r){return e==null?[]:typeof e==`string`&&lm(t)?_p(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function dm(e,t,n){return e*(t+1)+n*t}function fm(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function pm(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):fm(t,r)??e}function mm(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(ir(e,i),r--)}}function hm(e,t,n,r,i,a){mm(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Iu(i,a,r[o]),easing:ku(n,o)})}function gm(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function _m(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var vm=`easeInOut`,ym=20;function bm(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:pm(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=Cm(e),{delay:l=0,times:u=Md(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=ar(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Em(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=Pn(b));let r=nd(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&jd(u,T),c.length===1&&c.unshift(null),m&&m<ym){let e=b>0?g/b:0;b=dm(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?_u(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:ku(f,e-1))}gm(u,m,e)}let E=w+b;hm(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(Dn(g)){let e=xm(g,c);b(_,v,Sm(`default`,e))}else{let e=um(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=xm(r,c);for(let e in _)b(_[e],wm(v,e),Sm(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};m(e,0),a&&(a.duration=p,a.labels=u);let{type:h,...g}=t;return c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(_m);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(fu(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(vm)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o,u.transition[i]={...g,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function xm(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Sm(e,t){return t[e]||(t[e]=[]),t[e]}function Cm(e){return Array.isArray(e)?e:[e]}function wm(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Tm=e=>typeof e==`number`,Em=e=>e.every(Tm);function Dm(e,t){return Dn(e)||typeof e==`number`||typeof e==`string`&&!lm(t)}function Om(e,t,n,r){let i=[];if(Dm(e,t))i.push(cm(e,lm(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=um(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...om(r,t,s,Gn.get(r))):i.push(...dp(lp(r)??sm,r,t,s))}}return i}function km(e,t,n,r){let i=[],a=bm(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Vn(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Dd},r),o=t?.reduceMotion??t?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:e,transition:t},n)=>{i.push(...Om(n,e,{...t,reduceMotion:o}))}),i}var Am=0;function jm({repeat:e=0,repeatDelay:t=0,repeatType:n=`loop`,delay:r=0},i,a,o){let s=i+t,c=o===void 0;if(c){let t=Math.max(0,a-r);o=s&&t>0?Math.min(e,Math.ceil(t/s-1e-9)-1):0,a=Math.min(t-o*s,i)}return n!==`loop`&&o%2&&(a=i-a),[o,c?a:r+o*s+a]}function Mm(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var Nm=(e,t)=>t===void 0?e:{name:e,at:t};function Pm(e){e.pause(),e.time=0,e.stop()}var Fm=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=mp.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new Lf(n),this.watch()):(this.invalidate(),this.flush())}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+Am++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+Am++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=this.iterationDuration,r=this.time,[i]=jm(this.options,n,r),a=jm(this.options,n,t,i)[1],o=Math.abs(this.speed);return this.speed=a<r?-o:o,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(Pm(this.group),void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let t=this.group,n=0;t&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),t.cancel()):(n=t.animations.length?t.time:0,Pm(t)),this.isRebuilding=!1);let{defaultTransition:r,onComplete:i,onUpdate:a,onRepeat:o,onReverseComplete:s,autoplay:c,scope:l,...u}=this.options,d={};l?.reduceMotion!==void 0&&(d.reduceMotion=l.reduceMotion),l?.skipAnimations!==void 0&&(d.skipAnimations=l.skipAnimations),Object.assign(d,u);let f=new Map,p={},m=mp.current;mp.current=this.motionScope;let h;try{h=km(this.toSequence(f),{defaultTransition:r,...d},l,p)}finally{mp.current=m}let g=p.labels,_=d.duration??p.duration,v=p.duration?_/p.duration:1;if(g.forEach((e,t)=>g.set(t,e*v)),this.markers=[],f.forEach((e,t)=>{e.time=g.get(t),g.delete(t),_=Math.max(_,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=g,this.totalDuration=_,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||o){let e=this.clock=Vn(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),h.unshift(this.clockAnimation=cm(e,[0,_],{...d,duration:_,ease:`linear`}))}let y=this.group=new Lf(h),{delay:b=0,repeat:x=0,repeatDelay:S=0}=this.options,[C,w]=jm(this.options,e,n);n>b&&(n=jm(this.options,_,Math.min(w,_),C)[1]),this.isDone&&n<b+(x+1)*(_+S)-S&&this.newFinished(),this.scrollTimeline?this.detachScroll=y.attachTimeline(this.scrollTimeline):(y.speed=this.playbackSpeed,this.isPaused&&y.pause(),n&&(y.time=n)),this.repeatIndex=this.currentRepeat(),this.prevTime=n||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),Nm(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?Nm(n,r):r===void 0?n:Array.isArray(n)?Mm(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:fm(e,this.labels)??this.time}currentRepeat(){return jm(this.options,this.totalDuration,this.clockAnimation?.time??0)[0]}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat(),o=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let e=this.speed>0==(i===`loop`||!(this.repeatIndex%2)),n=e?this.totalDuration:0;if(this.cross(t,n))return;this.repeatIndex+=o,r?.(),t=i===`loop`?e?-1:1/0:n}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=jm(this.options,this.totalDuration,e,this.repeatIndex)[1],!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options,r=this.speed<0&&n||t,i=this.resolveFinished;r?.(),i()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let{scope:e}=this.options,t=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{t?.(),e&&ir(e.animations,this)})}};function Im(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e)||e?.sequence)}function Lm(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=mp.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(Im(e)){let r={...s,...i,scope:t};o&&(r.defaultTransition={...o,...r.defaultTransition}),r.reduceMotion=i?.reduceMotion??r.defaultTransition?.reduceMotion??n,c=new Fm(e,r)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new Fm([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},Om(e,i,l,t))}return c}return i}var Rm=Object.assign(Lm(),{addEffect:sp,removeEffect:cp});function zm(e){let t=(0,Y.useRef)(e);return(0,Y.useLayoutEffect)(()=>{t.current=e}),(0,Y.useCallback)((...e)=>t.current(...e),[])}var Bm=e=>typeof e==`function`?e():e,Vm=(e,{defaultValue:t,onChange:n,value:r}={})=>{let[i,a]=(0,Y.useState)(()=>r===void 0?Bm(t===void 0?e:t):r),o=r===void 0?i:r;return[o,zm(e=>{a(e),o!==e&&n?.(e,o)})]},Hm={lbruu1v2:`lbruu1v2`,$$css:!0},Um=p({block:`switch`,dataAttributes:[`size`,`loading`,`variant`],elements:[`content`,`thumb`,`field`,`label`,`description`]}),Wm={a2uiDescription:{kogj98:`lb1ghz6dp`,kMwMTN:`lb1b30gpp`,kGuDYH:`lb1qt5hsa`,kLWn49:`lb1ksxc8v`,$$css:!0},a2uiLabel:{kOIVth:`lb167g77z`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb16j836z`,kkrTdU:`lbt0e3qv`,k1xSpc:`lb78zum5`,kGuDYH:`lb4z9k3i`,k63SB2:`lbk50ysn`,kfSwDN:`lb87ps6o`,$$css:!0},a2uiRoot:{kmVPX3:`lb1717udv`,kVAM5u:`lb9r1u3d`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kmkexE:`lbsn8bb8`,kWkggS:`lb7daezu lbvscxgj lb1j7gpvn lb14rlgkv`,kGVxlE:`lb1gnnqk1`,kSiTet:`lbxh3kiz`,kZKoxP:`lb1j1s6r4`,k7Eaqz:`lb46jg8d`,kzqmXN:`lb1td3qas`,$$css:!0},a2uiText:{kOIVth:`lb195vfkc`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,k7Eaqz:`lbeuugli`,$$css:!0},a2uiThumb:{kmkexE:`lbq2gx43`,kWkggS:`lb1htjt7i lb18jrz2t`,kGVxlE:`lb1gnnqk1`,kZKoxP:`lblup9mm`,$$css:!0},a2uiWell:{kOIVth:`lbou54vl`,k8WAf4:`lb10dr8xq`,kg3NbH:`lbqin4a2`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,k7Eaqz:`lbeuugli`,kzqmXN:`lbh8yej3`,$$css:!0},icon:{kYYq5F:`lb10no89f`,kmkexE:`lbaqpy6h`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb15g0kca`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lb10l6tqk`,kIyJzY:`lb12w9bfk`,khDVqt:`lbuxw1ft`,$$css:!0},iconLeft:{kLqNvP:`lbjwk6fx`,kSiTet:`lbg01cxk lbqtmd8e`,km0Bbg:`lb1t448cz lb1gshqrl`,$$css:!0},iconRight:{kt4wiu:`lb1inkcgm`,kSiTet:`lb12foe86`,km0Bbg:`lb1t60ft6`,$$css:!0},iconThumb:{kpwlN0:`lbh3736h`,kYYq5F:`lb1saa4dr`,kMwMTN:`lb16owwnm`,kVAEAm:`lb1n2onr6`,k3aq6I:`lb1c071of`,$$css:!0},loading:{k44tkh:`lb1q3qbx4 lb1u6grsq`,ko0y90:`lba4qsjk`,kKVMdj:`lbb6ayas`,kyAemX:`lb1esw782`,$$css:!0},root:{kmVPX3:`lb1i3ajwb`,kVAM5u:`lb181nr7w`,kaIpWk:`lb1xwekrv`,ksu8eU:`lbng3xce`,kMzoRj:`lbc342km`,kI3sdo:`lb1a2a7pz`,kVQacm:`lbb3r6kr`,kmkexE:`lbr3aam3`,kGNEyG:`lb6s0dn4`,kWkggS:`lbjjy28o lb1ljx72h lb1j7gpvn lbx0eq3e`,kGVxlE:`lb11a9emz lb19y05k0`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb5ezrf1`,k1xSpc:`lb3nfvp2`,kjj79g:`lb1nhvcw1`,kSiTet:`lb1k4xm7o`,kVAEAm:`lb1n2onr6`,kIyJzY:`lb12w9bfk`,kfSwDN:`lb87ps6o`,$$css:!0},rootDefault:{kZKoxP:`lb17rw0jw`,k7Eaqz:`lb15hfatp`,kzqmXN:`lb14qfxbe`,$$css:!0},rootSmall:{kZKoxP:`lblup9mm`,k7Eaqz:`lb1264ykn`,kzqmXN:`lbgd8bvy`,$$css:!0},rootText:{kGuDYH:`lbfifm61`,kLWn49:`lbo5v014`,k7Eaqz:`lb1nb6za0`,kzqmXN:`lb14atkfc`,$$css:!0},rootTextSmall:{kGuDYH:`lb1k6wstc`,kLWn49:`lbo5v014`,k7Eaqz:`lb46jg8d`,kzqmXN:`lb14atkfc`,$$css:!0},textSizer:{kUk6DE:`lb1okw0bk`,k1xSpc:`lbrvj5dj`,kayTVb:`lb9ek82g`,kwRFfy:`lb11lfxj5`,kZCmMZ:`lb13jy36j`,kfzvcC:`lb47corl`,k33iCy:`lblshs6z`,khDVqt:`lbuxw1ft`,$$css:!0},textSizerSmall:{kwRFfy:`lb14vy60q`,kZCmMZ:`lbf7dkkf`,$$css:!0},thumb:{kaIpWk:`lb16rqkct`,kmkexE:`lbxj5fsl`,kGNEyG:`lb6s0dn4`,kWkggS:`lb6yijhg`,kGVxlE:`lb1oicym lbiy1ocm lb4g9y83`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,k3aq6I:`lb1u2ey76`,kIyJzY:`lb12w9bfk`,$$css:!0},thumbDefault:{kZKoxP:`lbmix8c7`,kzqmXN:`lb1xp8n7a`,$$css:!0},thumbSmall:{kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};({className:`lb10no89f lbaqpy6h lb6s0dn4 lb15g0kca lb78zum5 lbl56j7k lb47corl lb10l6tqk lb12w9bfk lbuxw1ft`}).className,{className:`lbjwk6fx lbg01cxk lbqtmd8e lb1t448cz lb1gshqrl`}.className,{className:`lb1inkcgm lb12foe86 lb1t60ft6`}.className,{className:`lbh3736h lb1saa4dr lb16owwnm lb1n2onr6 lb1c071of`}.className,{className:`lb1q3qbx4 lb1u6grsq lba4qsjk lbb6ayas lb1esw782`}.className,{className:`lb1i3ajwb lb181nr7w lb1xwekrv lbng3xce lbc342km lb1a2a7pz lbb3r6kr lbr3aam3 lb6s0dn4 lbjjy28o lb1ljx72h lb1j7gpvn lbx0eq3e lb11a9emz lb19y05k0 lb9f619 lb1ypdohk lb5ezrf1 lb3nfvp2 lb1nhvcw1 lb1k4xm7o lb1n2onr6 lb12w9bfk lb87ps6o`}.className,{className:`lb17rw0jw lb15hfatp lb14qfxbe`}.className,{className:`lblup9mm lb1264ykn lbgd8bvy`}.className,{className:`lbfifm61 lbo5v014 lb1nb6za0 lb14atkfc`}.className,{className:`lb1k6wstc lbo5v014 lb46jg8d lb14atkfc`}.className,{className:`lb1okw0bk lbrvj5dj lb9ek82g lb11lfxj5 lb13jy36j lb47corl lblshs6z lbuxw1ft`}.className,{className:`lb14vy60q lbf7dkkf`}.className,{className:`lb16rqkct lbxj5fsl lb6s0dn4 lb6yijhg lb1oicym lbiy1ocm lb4g9y83 lb78zum5 lb2lah0s lbl56j7k lb1u2ey76 lb12w9bfk`}.className,{className:`lbmix8c7 lb1xp8n7a`}.className,{className:`lb1kpxq89 lbsmyaan`}.className,{className:`lbjwk6fx lbg01cxk lbqtmd8e lb1t448cz lb1gshqrl`}.className,{className:`lb1inkcgm lb12foe86 lb1t60ft6`}.className;var Gm={a2ui:{checkedX:14,pressedCheckedX:14,pressedWidth:16,width:16},default:{checkedX:14,pressedCheckedX:10,pressedWidth:22,width:18},small:{checkedX:12,pressedCheckedX:8,pressedWidth:16,width:12}},Km={default:Wm.rootDefault,small:Wm.rootSmall},qm={default:Wm.thumbDefault,small:Wm.thumbSmall},Jm={damping:24,stiffness:360,type:`spring`},Ym=(0,Y.createContext)(null),Xm=()=>{let e=(0,Y.use)(Ym);if(!e)throw Error(`useSwitchContext must be used within a SwitchRoot`);return e},Zm=({checked:e,className:t,defaultChecked:n,onCheckedChange:r,onClick:i,onKeyDown:a,onKeyUp:o,onPointerCancel:s,onPointerDown:c,onPointerLeave:l,onPointerUp:u,size:p=`default`,children:m,disabled:h,readOnly:g,required:_,inputRef:v,id:y,name:b,style:x,xstyle:S,...C})=>{let[w,T]=(0,Y.useState)(!1),E=(0,Y.useRef)(null),[D,O]=Vm(n??!1,{defaultValue:n,onChange:e=>{E.current&&r?.(e,E.current)},value:e}),k=(0,Y.useMemo)(()=>({isChecked:!!D,isPressed:w,setIsChecked:e=>O(e),setIsPressed:T}),[D,w,O]),A=e=>{E.current=e,i?.(!D,e)},j=!h&&!g,M=e=>{(e.key===`Enter`||e.key===` `)&&(E.current=e),e.key===` `&&j&&T(!0),a?.(e)},N=e=>{e.key===` `&&T(!1),o?.(e)},P=e=>{j&&T(!0),c?.(e)},F=e=>{T(!1),u?.(e)},ee=e=>{T(!1),s?.(e)},I=e=>{T(!1),l?.(e)};return(0,X.jsx)(Ym,{value:k,children:(0,X.jsx)(lu,{nativeButton:!0,checked:D,defaultChecked:n,disabled:h,id:y,inputRef:v,name:b,readOnly:g,required:_,render:(0,X.jsx)(`button`,{...d({size:p}),...C,...Z([Hm,Bi.info,Wm.root,Km[p],S],f(Um(),t),x),onClick:A,onKeyDown:M,onKeyUp:N,onPointerCancel:ee,onPointerDown:P,onPointerLeave:I,onPointerUp:F}),onCheckedChange:O,children:m})})};Zm.displayName=`SwitchRoot`;var Qm=({className:e,size:t=`default`,style:n,children:r,variant:i,...a})=>{let{isChecked:o,isPressed:s}=Xm(),c=(0,Y.useRef)(null),l=i===`a2ui`,u=Gm[l?`a2ui`:t],[d,p]=(0,Y.useState)(u.checkedX);(0,Y.useLayoutEffect)(()=>{let e=c.current?.parentElement;if(!e)return;let t=()=>{let t=e.clientWidth;p(t>0?Math.max(u.checkedX,t-4-u.width):u.checkedX)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[u]);let m=d-u.checkedX,h=o?(s?u.pressedCheckedX:u.checkedX)+m:0,g=s?u.pressedWidth:u.width,[_]=(0,Y.useState)(()=>({width:Vn(g),x:Vn(h)})),[v]=(0,Y.useState)(()=>({"--switch-x":`${h}px`,width:g}));return(0,Y.useEffect)(()=>{let e=c.current;if(!e)return;let t=_.x.on(`change`,t=>{e.style.setProperty(`--switch-x`,`${t}px`)}),n=_.width.on(`change`,t=>{e.style.setProperty(`width`,`${t}px`)});return()=>{t(),n()}},[_]),(0,Y.useEffect)(()=>{let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1?{duration:0}:Jm,t=[Rm(_.x,h,e),Rm(_.width,g,e)];return()=>{for(let e of t)e.stop()}},[_,h,g]),(0,X.jsx)(uu,{render:(0,X.jsx)(`span`,{...a,ref:c,...Z([Wm.thumb,qm[t],l&&Wm.a2uiThumb],f(Um(`thumb`),e),{...v,...n}),children:r})})};Qm.displayName=`SwitchThumb`;var $m={left:Wm.iconLeft,right:Wm.iconRight,thumb:Wm.iconThumb},eh=({children:e,className:t,position:n,size:r,style:i,...a})=>(0,X.jsx)(`span`,{...Z([Wm.icon,$m[n]],f(Um(`content`),t),i),...a,children:e});eh.displayName=`SwitchIcon`;var th=(0,Y.memo)(({autoFocus:e,checked:n,checkedChildren:r,className:i,classNames:a,defaultChecked:o,defaultValue:s,description:c,disabled:l,id:u,label:p,loading:m,name:h,onChange:g,onClick:_,ref:v,rootClassName:y,size:b=`default`,style:x,styles:S,tabIndex:C,title:w,unCheckedChildren:T,value:E,variant:D=`default`,...O})=>{let k=(0,Y.useId)(),A=l||m,j=E??n,M=s??o,N=!!(r||T);if(D===`a2ui`){let t=u??k,n=(0,X.jsx)(Zm,{...d({loading:m,variant:D}),...O,autoFocus:e,checked:j,className:f(i,y,a?.root),defaultChecked:M,disabled:A,id:t,name:h,ref:v,style:{...x,...S?.root},tabIndex:C,title:w,xstyle:Wm.a2uiRoot,onCheckedChange:g,onClick:_,children:(0,X.jsx)(Qm,{className:a?.thumb,style:S?.thumb,variant:`a2ui`})});return p==null&&c==null?n:(0,X.jsxs)(`div`,{...d({variant:D}),...Z([zi.base,zi.well,Wm.a2uiWell],f(Um(`field`),a?.field),S?.field),children:[(0,X.jsxs)(`div`,{...Z(Wm.a2uiText),children:[p!=null&&(0,X.jsx)(`label`,{htmlFor:t,...Z(Wm.a2uiLabel,f(Um(`label`),a?.label),S?.label),children:p}),c!=null&&(0,X.jsx)(`p`,{...Z(Wm.a2uiDescription,f(Um(`description`),a?.description),S?.description),children:c})]}),n]})}return(0,X.jsxs)(Zm,{...d({loading:m}),...O,autoFocus:e,checked:j,className:f(N&&`lobe-switch-text`,i,y,a?.root),defaultChecked:M,disabled:A,id:u,name:h,ref:v,size:b,style:{...x,...S?.root},tabIndex:C,title:w,xstyle:N&&(b===`small`?Wm.rootTextSmall:Wm.rootText),onCheckedChange:g,onClick:_,children:[r&&(0,X.jsx)(eh,{className:a?.content,position:`left`,size:b,style:S?.content,children:r}),T&&(0,X.jsx)(eh,{className:a?.content,position:`right`,size:b,style:S?.content,children:T}),N&&(0,X.jsxs)(`span`,{"aria-hidden":!0,...t(Wm.textSizer,b===`small`&&Wm.textSizerSmall),children:[(0,X.jsx)(`span`,{children:r}),(0,X.jsx)(`span`,{children:T})]}),(0,X.jsx)(Qm,{className:a?.thumb,size:b,style:S?.thumb,children:m&&(0,X.jsx)(Xi,{...t(Wm.loading),icon:Ci,size:b===`small`?8:12,style:{color:ta.colorPrimary}})})]})});th.displayName=`Switch`;var nh={icon:`lobe-menu-icon`,label:`lobe-menu-label`,popup:`lobe-menu-popup`,positioner:`lobe-menu-positioner`,submenuArrow:`lobe-menu-submenu-arrow`},rh={danger:{"--lobe-menu-icon-color":`lb107ansx`,kWkggS:`lb86rvtz lb85pxvj lb16xa4ls`,kMwMTN:`lb12ap7uz`,$$css:!0},empty:{kMwMTN:`lb53gy9q lb2poks1`,kkrTdU:`lbt0e3qv lb5ezrf1`,kKX8nH:`lb1k4tb9n`,$$css:!0},extra:{kMwMTN:`lb53gy9q`,kMv6JI:`lb2xbw48`,kGuDYH:`lbfifm61`,keTefX:`lbvc5jky`,kZCmMZ:`lbf7dkkf`,$$css:!0},footer:{k8WAf4:`lb1vvogim lbdzg2pt`,kg3NbH:`lbaope02 lb8x5n49`,kLZC3w:`lb592eyn`,kPef9Z:`lb13fuv20`,kEafiO:`lb178xt8z`,kmuXW:`lb2lah0s`,$$css:!0},groupLabel:{kg3NbH:`lbaope02`,kMwMTN:`lb53gy9q`,kGuDYH:`lb1k6wstc`,k63SB2:`lb1s688f`,kb6lSQ:`lbkv8mnm`,kLWn49:`lb1xxsxie`,kGO01o:`lbjkvuk6`,kLKAdn:`lb1y1aw1k lb1t8wt99`,kP9fke:`lbtvhhri`,kfSwDN:`lb87ps6o`,$$css:!0},header:{k8WAf4:`lb1vvogim lbdzg2pt`,kg3NbH:`lbaope02 lb8x5n49`,kL6WhQ:`lbsyjar`,kfdmCh:`lb1q0q8m5`,kt9PQ7:`lbso031l`,kmuXW:`lb2lah0s`,$$css:!0},icon:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb18nsyn`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,k71WvV:`lbbmvrgn`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},iconAlignStart:{kSGwAc:`lbqcrz7y`,keoZOQ:`lbr9ek0c`,$$css:!0},item:{kaIpWk:`lb1vihcfj`,kI3sdo:`lb1a2a7pz`,kVQacm:`lbb3r6kr`,k8WAf4:`lb1t0vds8`,kg3NbH:`lbaope02`,kmkexE:`lb18nfrvi`,kGNEyG:`lb6s0dn4`,kWkggS:`lb1kvtry4 lbwew3ed lbn4ptgj`,kMwMTN:`lb66ogz0 lb2poks1`,kkrTdU:`lb5ezrf1`,k1xSpc:`lb78zum5`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,kSiTet:`lbxh3kiz`,kVAEAm:`lb1n2onr6`,kfSwDN:`lb87ps6o`,kAzted:`lb21xpn4`,kzqmXN:`lbh8yej3`,$$css:!0},itemContent:{kUk6DE:`lb98rzlu`,kOIVth:`lbxhr3t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,$$css:!0},itemContentAlignStart:{kGNEyG:`lb1cy8zhl`,$$css:!0},label:{kUk6DE:`lb98rzlu`,kVQacm:`lbb3r6kr`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},labelGroup:{kUk6DE:`lb98rzlu`,kVQacm:`lbb3r6kr`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,k7Eaqz:`lbeuugli`,$$css:!0},desc:{kVQacm:`lbb3r6kr`,kMwMTN:`lb53gy9q`,kGuDYH:`lbfifm61`,kLWn49:`lb1d3mw78`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},popup:{"--lobe-menu-popup-padding":`lbx5256q`,"--lobe-virtual-scroll-inset":`lb19d6fe`,kaIpWk:`lb1sbi92r`,kI3sdo:`lb1a2a7pz`,kg3NbH:`lb1ctfek0`,kWkggS:`lb1w937bt`,kGVxlE:`lbj07k4p`,k1xSpc:`lb1cuf08c`,kXwgrk:`lbrk0jpx`,kGO01o:`lb5fj2l4 lb1f9yvpy`,kLKAdn:`lblztzta lb7ao2f8`,kskxy:`lb1374xjt`,k7Eaqz:`lb12rczxh`,kXHlph:`lbj8hqjc`,kORKVm:`lb1odjw0f lb1j8km66`,$$css:!0},popupWithSlots:{k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kskxy:`lb1374xjt`,kXHlph:`lb6ikm8r`,kORKVm:`lb10wlt62`,$$css:!0},slotViewport:{kUk6DE:`lb98rzlu`,kAzted:`lb2lwn1j`,kORKVm:`lb1odjw0f`,$$css:!0},positioner:{"--lobe-dropdown-animation-duration":`lbx26zto lb13mkx0c`,"--lobe-dropdown-animation-ease-in":`lb1l96weh`,"--lobe-dropdown-animation-ease-out":`lbmyf473`,"--lobe-dropdown-animation-scale-y":`lbkiw9s4 lbdiwzxj`,kY2c9j:`lbp6lfbs lbkskvg3`,$$css:!0},separator:{kqGvvJ:`lbg9jes1`,kUOVxO:`lbrxpjvj`,kWkggS:`lb1yqcoyj`,kZKoxP:`lbjm9jq1`,$$css:!0},switchWrap:{k1xSpc:`lb3nfvp2`,keTefX:`lbyqm7xq`,$$css:!0},submenuArrow:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb18nsyn`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,keTefX:`lb13fj5qh`,kZKoxP:`lblup9mm`,kzqmXN:`lb1kky2od`,$$css:!0}},ih={danger:{className:`lb107ansx lb86rvtz lb85pxvj lb16xa4ls lb12ap7uz`}.className??``,empty:{className:`lb53gy9q lb2poks1 lbt0e3qv lb5ezrf1 lb1k4tb9n`}.className??``,extra:{className:`lb53gy9q lb2xbw48 lbfifm61 lbvc5jky lbf7dkkf`}.className??``,footer:{className:`lb1vvogim lbdzg2pt lbaope02 lb8x5n49 lb592eyn lb13fuv20 lb178xt8z lb2lah0s`}.className??``,groupLabel:{className:`lbaope02 lb53gy9q lb1k6wstc lb1s688f lbkv8mnm lb1xxsxie lbjkvuk6 lb1y1aw1k lb1t8wt99 lbtvhhri lb87ps6o`}.className??``,header:{className:`lb1vvogim lbdzg2pt lbaope02 lb8x5n49 lbsyjar lb1q0q8m5 lbso031l lb2lah0s`}.className??``,icon:`${{className:`lb6s0dn4 lb18nsyn lb78zum5 lb2lah0s lbl56j7k lbbmvrgn lb1v9usgg lb6jxa94`}.className??``} ${nh.icon}`,iconAlignStart:{className:`lbqcrz7y lbr9ek0c`}.className??``,item:{className:`lb1vihcfj lb1a2a7pz lbb3r6kr lb1t0vds8 lbaope02 lb18nfrvi lb6s0dn4 lb1kvtry4 lbwew3ed lbn4ptgj lb66ogz0 lb2poks1 lb5ezrf1 lb78zum5 lbif65rj lb1fc57z9 lbxh3kiz lb1n2onr6 lb87ps6o lb21xpn4 lbh8yej3`}.className??``,itemContent:{className:`lb98rzlu lbxhr3t lb6s0dn4 lb78zum5`}.className??``,itemContentAlignStart:{className:`lb1cy8zhl`}.className??``,label:`${{className:`lb98rzlu lbb3r6kr lblyipyv lbuxw1ft`}.className??``} ${nh.label}`,labelGroup:{className:`lb98rzlu lbb3r6kr lb78zum5 lbdt5ytf lbeuugli`}.className??``,desc:{className:`lbb3r6kr lb53gy9q lbfifm61 lb1d3mw78 lblyipyv lbuxw1ft`}.className??``,popup:`${{className:`lbx5256q lb19d6fe lb1sbi92r lb1a2a7pz lb1ctfek0 lb1w937bt lbj07k4p lb1cuf08c lbrk0jpx lb5fj2l4 lb1f9yvpy lblztzta lb7ao2f8 lb1374xjt lb12rczxh lbj8hqjc lb1odjw0f lb1j8km66`}.className??``} ${nh.popup}`,popupWithSlots:{className:`lb78zum5 lbdt5ytf lb1374xjt lb6ikm8r lb10wlt62`}.className??``,slotViewport:{className:`lb98rzlu lb2lwn1j lb1odjw0f`}.className??``,positioner:`${{className:`lbx26zto lb13mkx0c lb1l96weh lbmyf473 lbkiw9s4 lbdiwzxj lbp6lfbs lbkskvg3`}.className??``} ${nh.positioner}`,separator:{className:`lbg9jes1 lbrxpjvj lb1yqcoyj lbjm9jq1`}.className??``,switchWrap:{className:`lb3nfvp2 lbyqm7xq`}.className??``,submenuArrow:`${{className:`lb6s0dn4 lb18nsyn lb78zum5 lb2lah0s lbl56j7k lb13fj5qh lblup9mm lb1kky2od`}.className??``} ${nh.submenuArrow}`},ah=Y.createContext(void 0);function oh(e){let t=Y.useContext(ah);if(!e&&t===void 0)throw Error(L(27));return t}var sh=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=oh(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return C(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:se,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),ch=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=oh(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=pt({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,W(Ct,e.nativeEvent))}return C(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),lh=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=oh(),c=B(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),C(`p`,e,{ref:t,props:[{id:c},o]})}),uh=Y.createContext(void 0);function dh(){let e=Y.useContext(uh);if(e===void 0)throw Error(L(26));return e}var fh=`--nested-dialogs`,ph=`data-nested-dialog-open`,mh={...te,...ye,nestedDialogOpen(e){return e?{[ph]:``}:null}},hh=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=oh(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);dh(),we({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?ft(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=C(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...De,hidden:!m,onKeyDown(e){gt.has(e.key)&&e.stopPropagation()},style:{[fh]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:mh});return(0,X.jsx)(Me,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})}),gh=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=oh(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(uh.Provider,{value:n,children:(0,X.jsxs)(V,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(it,{ref:i.context.internalBackdropRef,inert:Lt(!s)}),e.children]})}):null});function _h({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=Y.useState(0),[d,f]=Y.useState(0),p=l===0,m=x(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=Je(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||q(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return kt(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),H(()=>{!r&&!i&&(u(0),f(0))},[r,i]),H(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),fe(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var vh={...Ge,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},yh=class extends Ce{constructor(e,t,n){let r=new Bt,i=bh(e,r,t,n);super(i,xh(r),vh)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(_(this.state,e,t.trigger)))}};function bh(e,t,n,r=!1){return{...Gt(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function xh(e){return{popupRef:Y.createRef(),backdropRef:Y.createRef(),internalBackdropRef:Y.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Sh(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=oh(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=ge((e,t)=>new yh({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);N(b,x),ct(b);let{forceUnmount:w}=ue(x,b);Y.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,W($e))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(ah.Provider,{value:b,children:[u&&(0,X.jsx)(A,{handle:u,store:b}),T&&(0,X.jsx)(_h,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Ch=Ke(function(e){return Sh(`dialog`,e)}),wh=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=oh(),c=B(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),C(`h2`,e,{ref:t,props:[{id:c},o]})});function Th(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Eh(...e){return t=>{let n=!1,r=e.map(e=>{let r=Th(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Th(e[t],null)}}}}function Dh(...e){return Y.useCallback(Eh(...e),e)}var Oh=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},kh=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=Oh(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=Oh(e.offsetParent);return[t/i,n/a]},Ah=class extends Y.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(dr(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=dr(e)&&e.offsetWidth||0,r=dr(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=kh(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function jh({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,Y.useId)(),c=(0,Y.useRef)(null),l=(0,Y.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,Y.useContext)(Qn),d=Dh(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current,p=e=>{let{width:t,height:i,top:a,left:o,right:c,bottom:u,direction:d}=l.current,f=d===`rtl`,p=n===`left`?f?`right:${c}`:`left:${o}`:f?`left:${o}`:`right:${c}`,m=r===`bottom`?`bottom:${u}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return(0,Y.useInsertionEffect)(()=>{let{width:e,height:n}=l.current,r=f();if(t||a===!1||!r||!e||!n)return;r.dataset.motionPopId=s;let o=r.ownerDocument,c=o.createElement(`style`);u&&(c.nonce=u);let d=i??o.head;d.appendChild(c),p(c.sheet);let m=0,h=0;return Zn.setup(()=>{let[e,t]=kh(r);m=l.current.point[0]-e,h=l.current.point[1]-t}),Zn.read(()=>{let{sheet:e}=c;if(!e||!m&&!h)return;let t=l.current;t.left+=m,t.right-=m,t.top+=h,t.bottom-=h,e.deleteRule(0),p(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),d.contains(c)&&d.removeChild(c)}},[t]),(0,X.jsx)(Ah,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:Y.cloneElement(e,{ref:d})})}var Mh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Fn(Nh),d=(0,Y.useId)(),f=(0,Y.useRef)(),p=(0,Y.useRef)(n),m=(0,Y.useRef)(r);Yn(()=>{p.current=n,m.current=r});let h=!0,g=(0,Y.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,Y.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),Y.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,X.jsx)(jh,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,X.jsx)(Un.Provider,{value:g,children:e})};function Nh(){return new Map}function Ph(e=!0){let t=(0,Y.useContext)(Un);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,Y.useId)();(0,Y.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,Y.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Fh=e=>e.key||``;function Ih(e){let t=[];return Y.Children.forEach(e,e=>{(0,Y.isValidElement)(e)&&t.push(e)}),t}var Lh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Ph(o),f=(0,Y.useMemo)(()=>Ih(e),[e]),p=o&&!u?[]:f.map(Fh),m=(0,Y.useRef)(!0),h=Fn(()=>new Map),g=(0,Y.useRef)(new Set),[_,v]=(0,Y.useState)(f),[y,b]=(0,Y.useState)(f);Yn(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,Y.useRef)();(0,Y.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),Yn(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Fh(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Fh(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Fh(e)))?e=f:a===`wait`&&(e=S),b(Ih(e)),v(f),null}let{forceRender:C}=(0,Y.useContext)(Sn);return(0,X.jsx)(X.Fragment,{children:y.map(e=>{let _=Fh(e),b=o&&!u?!1:f===y||p.includes(_);return(0,X.jsx)(Mh,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},Rh=`self-off`,zh=`a[href], button, input, select, textarea, [tabindex], [contenteditable]:not([contenteditable="false"])`,Bh=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]),Vh=e=>[...e.querySelectorAll(zh)].find(e=>e.tabIndex>=0&&!e.disabled&&!e.closest(`[inert], [hidden]`)),Hh=e=>e?e instanceof HTMLInputElement?!Bh.has(e.type):e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e.isContentEditable||e.matches(`[contenteditable]:not([contenteditable="false"])`):!1,Uh=e=>{let t=(0,Y.useRef)(null),n=(0,Y.useCallback)(()=>{let e=t.current;return e?Hh(Vh(e))?!0:e:!0},[]);return{focusRingProps:{"data-lobe-focus-ring":Rh},initialFocus:e??n,popupRef:t}};({accent:`var(--lobe-color-primary)`,accent14:`color-mix(in srgb, var(--lobe-color-primary) 14%, transparent)`,accent50:`color-mix(in srgb, var(--lobe-color-primary) 50%, transparent)`,alertErrorBase:`var(--lobe-color-error)`,alertErrorIcon:`var(--lobe-color-error)`,alertErrorText:`var(--lobe-color-error-text)`,alertInfoBase:`var(--lobe-color-info)`,alertInfoIcon:`var(--lobe-color-info)`,alertInfoText:`var(--lobe-color-info-text)`,alertSuccessBase:`var(--lobe-color-success)`,alertSuccessIcon:`var(--lobe-color-success)`,alertSuccessText:`var(--lobe-color-success-text)`,alertWarningBase:`var(--lobe-color-warning)`,alertWarningIcon:`var(--lobe-color-warning)`,alertWarningText:`var(--lobe-color-warning-text)`,avatarTintBg:`var(--lobe-a2ui-tint-bg, var(--lobe-color-fill-secondary))`,avatarTintFg:`var(--lobe-a2ui-tint-fg, var(--lobe-color-text))`,bg:`var(--lobe-color-bg-layout)`,calloutIcon:`var(--lobe-color-primary-text)`,cardShadow:`var(--lobe-a2ui-card-shadow)`,cardSheen:`var(--lobe-a2ui-card-sheen)`,fg:`var(--lobe-color-text)`,fg10:`color-mix(in srgb, var(--lobe-color-text) 10%, transparent)`,fg65:`color-mix(in srgb, var(--lobe-color-text) 65%, transparent)`,fg80:`color-mix(in srgb, var(--lobe-color-text) 80%, transparent)`,fg85:`color-mix(in srgb, var(--lobe-color-text) 85%, transparent)`,fg90:`color-mix(in srgb, var(--lobe-color-text) 90%, transparent)`,fgMuted:`var(--lobe-color-text-secondary)`,fgMuted40:`color-mix(in srgb, var(--lobe-color-text-secondary) 40%, transparent)`,fgMuted80:`color-mix(in srgb, var(--lobe-color-text-secondary) 80%, transparent)`,fontFamily:`var(--lobe-font-family)`,fontFamilyCode:`var(--lobe-font-family-code)`,info:`var(--lobe-color-info)`,input:`var(--lobe-color-border)`,inputBg:`var(--lobe-a2ui-input-bg, var(--lobe-color-bg-container))`,ink3:`var(--lobe-color-fill-tertiary)`,inverted:`var(--lobe-color-text)`,line:`var(--lobe-color-border-secondary)`,lineStrong:`var(--lobe-color-border)`,muted:`var(--lobe-color-fill-tertiary)`,negative:`var(--lobe-color-error)`,onInverted:`var(--lobe-color-bg-layout)`,onSolid:`var(--lobe-color-bg-layout)`,overlay1_5:`var(--lobe-color-fill-quaternary)`,overlay2:`var(--lobe-color-fill-quaternary)`,overlay2_5:`var(--lobe-color-fill-quaternary)`,overlay4:`var(--lobe-color-fill-tertiary)`,overlay5:`var(--lobe-color-fill-tertiary)`,overlay6:`var(--lobe-color-fill-tertiary)`,overlay7:`var(--lobe-color-fill-secondary)`,overlay8:`var(--lobe-color-fill-secondary)`,overlay12:`var(--lobe-color-fill)`,overlay14:`var(--lobe-color-fill)`,overlay15:`var(--lobe-color-fill)`,positive:`var(--lobe-color-success)`,primary:`var(--lobe-color-primary)`,primaryFg:`var(--lobe-color-bg-layout)`,radius:`var(--lobe-a2ui-radius)`,ring:`var(--lobe-color-primary-border)`,secondary:`var(--lobe-color-fill-tertiary)`,shadowMd:`var(--lobe-a2ui-shadow-md)`,shadowSm:`var(--lobe-a2ui-shadow-sm)`,shadowXs:`var(--lobe-a2ui-shadow-xs)`,shimmer:`var(--lobe-color-fill)`,surface:`var(--lobe-a2ui-surface, var(--lobe-color-bg-container))`,surface2:`var(--lobe-a2ui-surface-2, var(--lobe-color-bg-elevated))`,warning:`var(--lobe-color-warning)`}).info;var Wh={base:{kGuDYH:`lb1qlqyl8`,$$css:!0},control:{kVAM5u:`lb1hrqgpp`,kaIpWk:`lb10hpsqq`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,k8WAf4:`lbt970qd`,kg3NbH:`lb12j899k`,kWkggS:`lbjti1iv`,kB7OPa:`lb9f619`,kMwMTN:`lb934ymu`,kMv6JI:`lbjb2p0i`,kGuDYH:`lbrv4cvt`,ks0D6T:`lb193iq5w`,kAzted:`lb1ba4aug`,k7Eaqz:`lbeuugli`,kzqmXN:`lbh8yej3`,$$css:!0},controlDisabled:{kkrTdU:`lb1h6gzvc`,kSiTet:`lbbyyjgo`,$$css:!0},controlFocus:{kjBf7l:`lb3qwifc`,kInvED:`lb13iak60`,k3XXqK:`lb9v5kkp`,kMeerF:`lb784prv`,$$css:!0},controlFocusWithin:{kjBf7l:`lb1td2im8`,kInvED:`lbtsxt1s`,k3XXqK:`lbnnj0qo`,kMeerF:`lb1odlxkb`,$$css:!0},controlInvalid:{kVAM5u:`lb11fhi00`,$$css:!0},error:{kMwMTN:`lb13hb1zy`,kGuDYH:`lb1s8wshw`,kLWn49:`lbcl6epg`,$$css:!0},field:{kOIVth:`lb167g77z`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,k7Eaqz:`lbeuugli`,kzqmXN:`lbh8yej3`,$$css:!0},label:{kogj98:`lb1ghz6dp`,kmVPX3:`lb1717udv`,kMwMTN:`lb1b30gpp`,k1xSpc:`lb1lliihq`,kGuDYH:`lb1s8wshw`,k63SB2:`lbk50ysn`,kLWn49:`lbcl6epg`,$$css:!0},labelRow:{kOIVth:`lb167g77z`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,k7Eaqz:`lbeuugli`,$$css:!0},placeholder:{k8Qsv1:`lbka93f4`,kH8XJS:`lb7xwk5j`,$$css:!0}},Gh=({children:e,className:t,error:n,htmlFor:r,label:i,labelEnd:a,labelId:o,style:s})=>{let c=i!=null&&i!==``;if(!c&&a===void 0&&n===void 0)return(0,X.jsx)(X.Fragment,{children:e});let l=c?r===void 0?(0,X.jsx)(`span`,{id:o,...Z(Wh.label),children:i}):(0,X.jsx)(`label`,{htmlFor:r,id:o,...Z(Wh.label),children:i}):null;return(0,X.jsxs)(`div`,{...Z([zi.base,Wh.base,Wh.field],t,s),children:[a===void 0?l:(0,X.jsxs)(`div`,{...Z(Wh.labelRow),children:[l??(0,X.jsx)(`span`,{}),a]}),e,n==null?null:(0,X.jsx)(`span`,{role:`alert`,...Z(Wh.error),children:n})]})},Kh=(e,t)=>()=>{},qh=[.32,.72,0,1],Jh={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:qh}},Yh={duration:.18,ease:qh},Xh=(0,Y.createContext)(null),Zh=()=>(0,Y.use)(Xh),Qh=Xh.Provider,$h=p({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),eg={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},contentWithFooter:{kGO01o:`lbwxc41k`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},footerFilled:{kWkggS:`lb91pywm`,kLZC3w:`lb1eeeq6e`,kPef9Z:`lb13fuv20`,kEafiO:`lb178xt8z`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kI3sdo:`lb1a2a7pz`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},tg=(e,n,r)=>{let i=f(t(e).className,r);return typeof n==`function`?e=>f(i,n(e)):f(i,n)},ng=(0,Y.createContext)(null),rg=(0,Y.createContext)(null),ig=()=>(0,Y.use)(ng),ag=()=>(0,Y.use)(rg),og=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,Y.useState)(!!e);(0,Y.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,Y.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,Y.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Nt(`modal`,r),d=(0,Y.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,X.jsx)(ng,{value:e,children:(0,X.jsx)(rg,{value:c,children:(0,X.jsx)(Qh,{value:d,children:(0,X.jsx)(Ch,{modal:!0,open:!0,...i,children:t})})})}):null},sg=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Nt(`modal`,e),a=(0,Y.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,X.jsx)(Qh,{value:a,children:(0,X.jsx)(Ch,{modal:!0,...n,children:t})})},cg=({open:e,onExitComplete:t,...n})=>e===void 0?(0,X.jsx)(sg,{...n}):(0,X.jsx)(og,{open:e,onExitComplete:t,...n}),lg=({container:e,...t})=>{let n=g();return(0,X.jsx)(gh,{container:e??n??void 0,...t})},ug=({className:e,style:n,...r})=>{let i=ig(),a=Zh(),o=vr(),s=a?.zIndex===void 0?void 0:{zIndex:a.zIndex};return i===null?(0,X.jsx)(sh,{...r,style:{...s,...n},className:tg(eg.backdrop,e,$h(`backdrop`))}):(0,X.jsx)(sh,{...r,style:{...s,...n,transition:`none`},className:f(t(eg.backdrop).className,$h(`backdrop`),e),render:(0,X.jsx)(o.div,{animate:{opacity:+!!i},initial:{opacity:0},transition:Yh})})},dg=({className:e,children:n,initialFocus:r,width:i,style:a,motionProps:o,panelClassName:s,panelData:c,panelXstyle:l,popupStyle:u,ref:d,xstyle:p,...m})=>{let h=ig(),g=ag(),_=Zh(),v=vr(),y=_?.zIndex===void 0?void 0:{zIndex:_.zIndex+1},{focusRingProps:b,initialFocus:x,popupRef:S}=Uh(r),C=Ve([d,_?.popupRef,S]);return h!==null&&g?(0,X.jsx)(hh,{...b,...m,initialFocus:x,ref:C,style:{...y,...u},className:f(t(eg.popup,p).className,$h(`wrapper`),e),children:(0,X.jsx)(Lh,{onExitComplete:g.onExitComplete,children:h?(0,X.jsx)(v.div,{...Jh,...o,...c,style:{maxWidth:i??void 0,transition:`none`,...a},className:f(t(eg.popupInner,l).className,$h(),s),children:n},`modal-popup-panel`):null})}):(0,X.jsx)(hh,{...b,...m,initialFocus:x,ref:C,style:{...y,...u},className:tg([eg.popup,p],e,$h(`wrapper`)),children:(0,X.jsx)(`div`,{...c,...Z([eg.popupInner,l],f($h(),s),{maxWidth:i??void 0,...a}),children:n})})},fg=dg,pg=({className:e,style:t,xstyle:n,...r})=>(0,X.jsx)(`div`,{...r,...Z([eg.header,n],f($h(`header`),e),t)}),mg=pg,hg=({className:e,xstyle:t,...n})=>(0,X.jsx)(wh,{...n,className:tg([eg.title,t],e,$h(`title`))}),gg=({className:e,...t})=>(0,X.jsx)(lh,{...t,className:tg(void 0,e,$h(`description`))}),_g=({className:e,style:t,xstyle:n,...r})=>(0,X.jsx)(`div`,{...r,...Z([eg.content,n],f($h(`content`),e),t)}),vg=({className:e,style:t,variant:n=`filled`,xstyle:r,...i})=>(0,X.jsx)(`div`,{...i,"data-variant":n,...Z([eg.footer,n===`filled`&&eg.footerFilled,r],f($h(`footer`),e),t)}),yg=({className:e,children:t,xstyle:n,...r})=>(0,X.jsx)(ch,{...r,className:tg([eg.closeInline,eg.close,Bi.info,n],e,$h(`close`)),children:t??(0,X.jsx)(Li,{size:16})}),bg=(0,Y.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),xg=()=>(0,Y.use)(bg),Sg=({children:e,root:t})=>{let n=g(),r=t??n??document.body;return(0,Ri.createPortal)(e,r)},Cg=({config:e})=>{let{close:t}=xg(),[n,r]=(0,Y.useState)(!1),{cancelText:i=`Cancel`,content:a,footerVariant:o=`filled`,okButtonProps:s,okText:c=`OK`,onCancel:l,onOk:u}=e,d=(0,Y.useCallback)(()=>{t(),l?.()},[t,l]),f=(0,Y.useCallback)(async()=>{if(u)try{let e=u();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,u]);return(0,X.jsxs)(X.Fragment,{children:[a&&(0,X.jsx)(`div`,{style:{padding:o===`filled`?`12px 16px 24px`:`12px 16px`},children:a}),(0,X.jsxs)(vg,{variant:o,children:[(0,X.jsx)(la,{onClick:d,children:i}),(0,X.jsx)(la,{loading:n,...s,...$i(s,`primary`),onClick:f,children:c})]})]})};Cg.displayName=`ConfirmBody`;var wg=0;function Tg(){let e=wg++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,Y.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,footerVariant:s=`filled`,initialFocus:c,maskClosable:l,onOpenChange:p,onOpenChangeComplete:m,open:h,styles:g,title:_,width:v}=n,y=h??!0,b=(0,Y.useCallback)((e,n)=>{(e||l!==!1||n?.reason!==`outside-press`)&&(e||d(t),p?.(e))},[t,l,p]),x=(0,Y.useCallback)(()=>{m?.(!1),f(t)},[t,m]),S=(0,Y.useCallback)(()=>d(t),[t]),C=(0,Y.useCallback)(e=>u(t,{maskClosable:e}),[t]),w=_!==void 0&&_!==!1&&_!==null;return(0,X.jsx)(bg,{value:{close:S,setCanDismissByClickOutside:C},children:(0,X.jsx)(cg,{open:y,onExitComplete:x,onOpenChange:b,children:(0,X.jsxs)(lg,{children:[(0,X.jsx)(ug,{className:i?.backdrop,style:g?.backdrop}),(0,X.jsxs)(fg,{className:i?.popup,initialFocus:c,popupStyle:g?.popup,width:v,children:[w&&(0,X.jsxs)(mg,{className:i?.header,style:g?.header,children:[(0,X.jsx)(hg,{className:i?.title,style:g?.title,children:_}),(0,X.jsx)(yg,{className:i?.close,style:g?.close})]}),(0,X.jsx)(_g,{className:i?.content,style:g?.content,xstyle:[!w&&eg.contentNoHeader,o!=null&&s===`filled`&&eg.contentWithFooter],children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,Y.memo)(({stack:e})=>ws()?e.map(e=>(0,X.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,Y.useSyncExternalStore)(o,c,l),r=ws();return(0,Y.useEffect)(()=>{if(!r)return;let n=e??document.body;return Kh(t,n)},[r,e]),!r||n.length===0?null:(0,X.jsx)(Sg,{root:e,children:(0,X.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,X.jsx)(Cg,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var Eg=Tg(),Dg=Eg.ModalHost,Og=Eg.createModal;Eg.confirmModal;var kg=`ryugi:modal-escape`,Ag=e=>{try{return!!e.frameElement?.hasAttribute(`data-ryugi-modal`)}catch{return!1}},jg=e=>e instanceof HTMLElement&&(e.isContentEditable||e.tagName===`INPUT`||e.tagName===`TEXTAREA`);function Mg(e=window){if(!Ag(e))return()=>void 0;let t=t=>{t.key!==`Escape`||jg(t.target)||e.parent.postMessage({type:kg},e.location.origin)};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}var Ng=new Map,Pg=new Set,Fg=()=>{for(let e of Pg)e()};function Ig(e){if(typeof e!=`object`||!e)return;let{type:t,artifact:n,threads:r}=e;t===`thread-activity`&&typeof n==`string`&&typeof r==`object`&&r&&(Object.keys(r).length===0?Ng.delete(n):Ng.set(n,r),Fg())}function Lg(){Ng.size!==0&&(Ng.clear(),Fg())}var Rg=e=>(Pg.add(e),()=>{Pg.delete(e)}),zg=e=>{for(let t of Ng.values())if(t[e])return t[e];return null};function Bg(e){return(0,Y.useSyncExternalStore)(Rg,()=>zg(e),()=>null)}var Vg=new Set;function Hg(e){return Vg.add(e),()=>{Vg.delete(e)}}function Ug(e){for(let t of Vg)t(e)}function Wg(e,t=r()){return`${e.protocol===`https:`?`wss`:`ws`}://${e.host}/ws?at=${encodeURIComponent(t)}`}function Gg(e,t){let[n,r]=(0,Y.useState)(!1),i=(0,Y.useRef)({onMessage:e,onOpen:t}),a=(0,Y.useRef)(null),o=(0,Y.useRef)([]);return i.current={onMessage:e,onOpen:t},(0,Y.useEffect)(()=>{let e=null,t,n=!1,s=()=>{e=new WebSocket(Wg(location)),a.current=e,e.onopen=()=>{r(!0),Lg();for(let t of o.current.splice(0))e?.send(t);i.current.onOpen?.()},e.onclose=()=>{r(!1),n||(t=setTimeout(s,1e3))},e.onmessage=e=>{let t=JSON.parse(String(e.data));i.current.onMessage(t),Ig(t),Ug(t)}};return s(),()=>{n=!0,clearTimeout(t),e?.close()}},[]),{live:n,send:(0,Y.useCallback)(e=>{let t=a.current,n=JSON.stringify(e);t?.readyState===WebSocket.OPEN?t.send(n):o.current.length<50&&o.current.push(n)},[])}}var Kg=()=>document.documentElement.dataset.ryugiEmbedParent??null,qg=()=>Kg()??location.origin,Jg=e=>e.source===window.parent&&e.origin===qg();function Yg(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},qg())}function Xg(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g,report:_}=t??{},v=_===void 0?void 0:JSON.stringify(_);return(0,Y.useEffect)(()=>{n&&Yg(e,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g,report:_})},[e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,v]),n&&window.parent!==window}var Zg=2e3,Qg=1e3,$g=3e5;async function e_(e,t,n){try{let r=await fetch(c(`/api/cloud/${t}`),{method:e,cache:`no-store`,headers:n===void 0?{}:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),i=await r.json().catch(()=>({}));return{ok:r.ok,status:r.status,json:i}}catch(e){return{ok:!1,status:0,json:{error:e.message}}}}var t_=null,n_=null,r_,i_=null,a_=new Set;function o_(){return n_??=e_(`GET`,`status`).then(e=>{if(n_=null,!e.ok)return null;t_=e.json;for(let e of a_)e(t_);return t_}),n_}function s_(e){return a_.add(e),i_??=Hg(e=>{(e.type===`cloud-publication`||e.type===`cloud-published`)&&(clearTimeout(r_),r_=setTimeout(()=>void o_(),Qg))}),()=>{a_.delete(e),a_.size>0||(i_?.(),i_=null,clearTimeout(r_))}}function c_(){let[e,t]=(0,Y.useState)(t_),[n,r]=(0,Y.useState)(!1),i=(0,Y.useRef)(null),a=(0,Y.useCallback)(()=>o_(),[]),o=(0,Y.useCallback)(()=>{i.current!==null&&window.clearInterval(i.current),i.current=null,r(!1)},[]),s=(0,Y.useCallback)(async e=>{let t=e??(await e_(`POST`,`login`,{source:`viewer`})).json.url;if(!t)return;window.open(t,`_blank`,`noopener`),o(),r(!0);let n=Date.now();i.current=window.setInterval(async()=>{((await a())?.signedIn||Date.now()-n>$g)&&o()},Zg)},[a,o]);return(0,Y.useEffect)(()=>{let e=s_(t);return a(),()=>{e(),o()}},[a,o]),{status:e,refresh:a,login:s,waitingForLogin:n}}var l_=`ryugi:split`;function u_(e){if(e.parent===e)return!1;try{return e.parent.location.origin===e.location.origin}catch{return!1}}function d_(e=window){return Ag(e)?null:e.document.documentElement.dataset.ryugiEmbedParent||(u_(e)?e.location.origin:null)}var f_=(e=window)=>d_(e)!==null,p_=(e=window)=>u_(e),m_=(e,t=window)=>{let n=d_(t);n&&t.parent.postMessage({type:l_,...e},n)},h_=(e,t)=>e?.postMessage({type:l_,...t},location.origin);function g_(e){let t=t=>{let n=document.documentElement.dataset.ryugiEmbedParent,r=!!n&&t.origin===n&&t.source===window.parent;if(t.origin!==location.origin&&!r)return;let i=t.data;i&&i.type===l_&&e(i,t.source)};return window.addEventListener(`message`,t),()=>window.removeEventListener(`message`,t)}var __=640,v_=(e,t=window)=>e&&(!u_(t)||t.parent.innerWidth<=__);function y_(){let[e,t]=(0,Y.useState)({role:null,other:null});return(0,Y.useEffect)(()=>{if(!f_())return;let e=g_(e=>{e.kind===`split-role`&&t({role:e.role,other:e.other})});return m_({kind:`want-role`}),e},[]),e}function b_({comments:e,open:t,available:n,onComments:r,onHistory:i,compact:a=!1}){let o=u(`document.railComments`,{count:e}),s=u(`document.history`);return(0,X.jsxs)(`div`,{"aria-label":u(`document.rail`),role:`group`,className:`x78zum5 x6s0dn4 x1jnr06f x2lah0s`,children:[(0,X.jsxs)(`button`,{"aria-label":a?o:void 0,"aria-pressed":!t,title:a?o:void 0,type:`button`,onClick:()=>{t&&r()},...{0:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk`},1:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xahzvm9 xo2rkog`}}[!t|0],children:[(0,X.jsx)(Ti,{"aria-hidden":`true`,size:14}),a?e:o]}),(0,X.jsxs)(`button`,{"aria-label":a?s:void 0,"aria-pressed":t,disabled:!n,title:n?a?s:void 0:u(`document.historyOffline`),type:`button`,onClick:()=>{t||i()},...{0:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk`},2:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xgd8bvy xl56j7k xnjsko4`},1:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xahzvm9 xo2rkog`},3:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xgd8bvy xl56j7k xnjsko4 xahzvm9 xo2rkog`}}[!!a<<1|!!t],children:[(0,X.jsx)(ji,{"aria-hidden":`true`,size:14}),a?null:s]})]})}var x_=new Map,S_=new Map,C_=new Set;function w_(e){for(let[t,n]of Object.entries(e)){if(typeof n!=`string`)continue;let e=x_.get(t);(!e||e.allowed(n))&&S_.get(t)!==n&&(S_.set(t,n),e&&typeof window<`u`&&window.dispatchEvent(new Event(e.event)))}}function T_(e,t,n,r={}){let i=r.event??`${e}:change`,a=null,o=e=>t.includes(e);x_.set(e,{allowed:o,event:i});let s=()=>{let t=S_.get(e);if(t!==void 0&&o(t))return t;try{let t=window.localStorage.getItem(e);return o(t)?t:n}catch{return a??n}},c=t=>{S_.has(e)&&S_.set(e,t);try{window.localStorage.setItem(e,t)}catch{a=t}window.dispatchEvent(new Event(i));for(let e of C_)e()},l=t=>{let n=n=>{(n.key===e||n.key===null)&&t()};return window.addEventListener(i,t),window.addEventListener(`storage`,n),()=>{window.removeEventListener(i,t),window.removeEventListener(`storage`,n)}};return{key:e,values:t,fallback:n,read:s,set:c,use:()=>(0,Y.useSyncExternalStore)(l,s,()=>n)}}var E_=T_(`ryugi:whiteboard-readable-font:v1`,[`false`,`true`],`false`,{event:`ryugi:whiteboard-font`}),D_=()=>E_.use()===`true`,O_=T_(`ryugi:pref:document-width:v1`,[`narrow`,`standard`,`wide`],`standard`),k_=T_(`ryugi:pref:document-font-size:v1`,[`small`,`standard`,`large`],`standard`),A_=T_(`ryugi:pref:code-wrap:v1`,[`off`,`on`],`off`),j_=T_(`ryugi:pref:document-toc:v1`,[`auto`,`pinned`,`hidden`],`auto`),M_=T_(`ryugi:pref:whiteboard-viewport:v1`,[`remember`,`fit`],`remember`),N_=T_(`ryugi:pref:slides-notes:v1`,[`closed`,`open`],`closed`),P_=T_(`ryugi:pref:artboard-labels:v1`,[`always`,`hover`],`always`),F_=T_(`ryugi:pref:artboard-tweaks:v1`,[`manual`,`auto`],`manual`),I_=T_(`ryugi:pref:artboard-grid:v1`,[`none`,`dots`],`none`),L_=null,R_=new Set,z_=()=>L_;function B_(e){L_=e;for(let t of R_)t(e)}function V_(e){return R_.add(e),()=>void R_.delete(e)}var H_=e=>e===`queue`?`queue`:`send`,U_=e=>B_(H_(e)),W_=(0,Y.createContext)(null),G_=W_.Provider;function K_(){let e=(0,Y.use)(W_);if(!e)throw Error(`This view needs a HubTransportProvider around it`);return e}function q_(e,t){let n=(0,Y.use)(W_),{status:r}=c_(),[i,a]=(0,Y.useState)(z_()??`send`);return(0,Y.useEffect)(()=>V_(a),[]),(0,Y.useEffect)(()=>{r?.commentPrimary&&B_(H_(r.commentPrimary))},[r?.commentPrimary]),(0,Y.useEffect)(()=>{if(!e)return;let r=!0,i=n?n.fetch:(e,t)=>fetch(c(e),t);return(t?t():i(`/api/${e}/comment-primary`,{cache:`no-store`}).then(e=>e.ok?e.json():null).then(e=>e?.commentPrimary)).then(e=>{r&&e!==void 0&&B_(H_(e))}).catch(()=>{}),()=>{r=!1}},[n,e,t]),[i,(0,Y.useCallback)(async e=>{B_(e),await e_(`POST`,`comment-primary`,{value:e})},[])]}var J_={rack:{height:260,load:()=>n(()=>import(`./rack-B7aTZP_v.js`),[],import.meta.url),parts:[`clip`,`clip-lit`,`rail`,`sheet`,`tray`],tier:`page`,width:420},pigeonhole:{height:260,load:()=>n(()=>import(`./pigeonhole-7MPwh7jx.js`),[],import.meta.url),parts:[`cubby`,`sheet`],tier:`page`,width:420},showcase:{height:260,load:()=>n(()=>import(`./showcase-BWJozZy-.js`),[],import.meta.url),parts:[`card`,`slot`],tier:`page`,width:420},"showcase-idle":{height:260,load:()=>n(()=>import(`./showcase-idle-7DpZQMol.js`),[],import.meta.url),parts:[],tier:`page`,width:420},nameplate:{height:260,load:()=>n(()=>import(`./nameplate-QFQFNopG.js`),[],import.meta.url),parts:[`slot`],tier:`page`,width:420},press:{height:260,load:()=>n(()=>import(`./press-Ct8KIRv0.js`),[],import.meta.url),parts:[`roller`,`sheet`],tier:`page`,width:420},chase:{height:260,load:()=>n(()=>import(`./chase-_uObxrW-.js`),[],import.meta.url),parts:[`area`,`cursor`],tier:`page`,width:420},stick:{height:260,load:()=>n(()=>import(`./stick-Dkb8suof.js`),[],import.meta.url),parts:[`knee`,`line`],tier:`page`,width:420},spike:{height:260,load:()=>n(()=>import(`./spike-k3c0qARg.js`),[],import.meta.url),parts:[`spike`],tier:`page`,width:420},stamps:{height:260,load:()=>n(()=>import(`./stamps-DcaueBoj.js`),[],import.meta.url),parts:[`hole`,`stamp`],tier:`page`,width:420},counter:{height:260,load:()=>n(()=>import(`./counter-B1aSqJrm.js`),[],import.meta.url),parts:[`digits`,`plunger`],tier:`page`,width:420},clipboard:{height:140,load:()=>n(()=>import(`./clipboard-CpGor8NP.js`),[],import.meta.url),parts:[`pen`],tier:`panel`,width:200},typecase:{height:140,load:()=>n(()=>import(`./typecase-BfWsjo8l.js`),[],import.meta.url),parts:[`gap`,`lens`],tier:`panel`,width:200},caliper:{height:140,load:()=>n(()=>import(`./caliper-B-iy7d3J.js`),[],import.meta.url),parts:[`jaw`],tier:`panel`,width:200},galley:{height:140,load:()=>n(()=>import(`./galley-Tq5HLugH.js`),[],import.meta.url),parts:[`floor`],tier:`panel`,width:200},board:{height:140,load:()=>n(()=>import(`./board-1x39nYdt.js`),[],import.meta.url),parts:[`pencil`],tier:`panel`,width:200},inkcan:{height:140,load:()=>n(()=>import(`./inkcan-CI3Y3s9V.js`),[],import.meta.url),parts:[`bottom`,`knife`],tier:`panel`,width:200},datestamp:{height:140,load:()=>n(()=>import(`./datestamp-LXgbHsZw.js`),[],import.meta.url),parts:[],tier:`panel`,width:200},frame:{height:140,load:()=>n(()=>import(`./frame-DLYIIAeZ.js`),[],import.meta.url),parts:[`window`],tier:`panel`,width:200},reel:{height:140,load:()=>n(()=>import(`./reel-CWJwFZWj.js`),[],import.meta.url),parts:[`hub`],tier:`panel`,width:200},"spike-bare":{height:140,load:()=>n(()=>import(`./spike-bare-DlXWfE_B.js`),[],import.meta.url),parts:[`spike`],tier:`panel`,width:200},"pigeonhole-bare":{height:140,load:()=>n(()=>import(`./pigeonhole-bare-CXrXPUy3.js`),[],import.meta.url),parts:[`cubby`],tier:`panel`,width:200},ledger:{height:140,load:()=>n(()=>import(`./ledger-_NJZe9Zi.js`),[],import.meta.url),parts:[`row`],tier:`panel`,width:200},recorder:{height:140,load:()=>n(()=>import(`./recorder-DuEa8tav.js`),[],import.meta.url),parts:[`trace`],tier:`panel`,width:200}},Y_=2600,X_=`[data-light],[data-reveal]`;function Z_(e){return e?e.split(` `).filter(Boolean):[]}function Q_({figure:e,title:t,titleAs:n=`p`,description:r,children:i,className:a,role:o,paper:s}){let c=J_[e],l=c.tier===`page`,[u,d]=(0,Y.useState)(null),f=u?.figure===e?u.body:null,p=(0,Y.useRef)(null),m=(0,Y.useRef)(null),h=(0,Y.useRef)(new Map);(0,Y.useEffect)(()=>{let t=!0;return c.load().then(n=>t&&d({figure:e,body:n.default})).catch(()=>t&&d({figure:e,body:``})),()=>{t=!1}},[c,e]),(0,Y.useEffect)(()=>{let e=h.current;return()=>{for(let t of e.values())clearTimeout(t);e.clear()}},[]);let g=(e,t,n)=>{for(let r of p.current?.querySelectorAll(`[data-part="${CSS.escape(e)}"]`)??[])r.classList.toggle(t,n)},_=(e,t)=>{let n=e;for(let e of Z_(n.dataset.light))g(e,`is-lit`,t);for(let e of Z_(n.dataset.reveal))(t||!h.current.has(e))&&g(e,`is-shown`,t)},v=e=>{let t=e instanceof Element?e.closest(X_):null;t!==m.current&&(m.current&&_(m.current,!1),m.current=t,t&&_(t,!0))},y=e=>{m.current&&(e instanceof Node&&m.current.contains(e)||(_(m.current,!1),m.current=null))},b=e=>{let t=e instanceof Element?e.closest(`[data-reveal]`):null;for(let e of Z_(t?.dataset.reveal))clearTimeout(h.current.get(e)),g(e,`is-shown`,!0),h.current.set(e,setTimeout(()=>{h.current.delete(e),m.current&&Z_(m.current.dataset.reveal).includes(e)||g(e,`is-shown`,!1)},Y_))},x={0:{className:`x78zum5 xdt5ytf x6s0dn4 x167g77z x2b8uid xeuugli`},1:{className:`x78zum5 xdt5ytf x6s0dn4 x2b8uid xeuugli x883omv`}}[!!l|0];return(0,X.jsxs)(`div`,{...x,className:[x.className,a].filter(Boolean).join(` `),"data-empty-figure":e,"data-empty-size":c.tier,role:o,onBlur:e=>y(e.relatedTarget),onClick:e=>b(e.target),onFocus:e=>v(e.target),onPointerOut:e=>y(e.relatedTarget),onPointerOver:e=>v(e.target),children:[(0,X.jsx)(`div`,{"aria-hidden":`true`,ref:p,className:[`empty-figure`,{0:{className:`x16s0kzc x193iq5w`},1:{className:`x193iq5w x1m258z3 xjpr12u`}}[!!l|0].className].filter(Boolean).join(` `),dangerouslySetInnerHTML:f?{__html:`<svg viewBox="0 0 ${c.width} ${c.height}">${f}</svg>`}:void 0,style:{aspectRatio:`${c.width} / ${c.height}`,...s?{"--empty-figure-paper":s}:null}}),t?(0,X.jsx)(n,{...{0:{className:`x1ghz6dp x4z9k3i x1fc57z9 xk50ysn xo2rkog`},1:{className:`x1ghz6dp x1fc57z9 xo2rkog x1jvydc1 x1s688f`}}[!!l|0],children:t}):null,r?(0,X.jsx)(`p`,{...{0:{className:`x1ghz6dp xxc7z9f xfifm61 xd4r4e8 x1bo0w0s`},1:{className:`x1ghz6dp x1bo0w0s x4z9k3i x1fc57z9 xq2pcee`}}[!!l|0],children:r}):null,i?(0,X.jsx)(`div`,{className:`x78zum5 xdt5ytf x6s0dn4 x167g77z xh8yej3`,children:i}):null]})}var $_=3e3,ev=globalThis;function tv(e){return ev.__ryugiEmbedAnchor=e,()=>{ev.__ryugiEmbedAnchor===e&&(ev.__ryugiEmbedAnchor=null)}}var nv=()=>ev.__ryugiEmbedAnchor?.read()??null,rv=e=>ev.__ryugiEmbedAnchor?.apply(e)??!1;function iv(e,t=Date.now()){ev.__ryugiPendingAnchor={anchor:e,until:t+$_}}function av(e=Date.now()){let t=ev.__ryugiPendingAnchor;return t&&e<t.until?t.anchor:null}function ov(){ev.__ryugiPendingAnchor=null}var sv=[{type:`document`,refAttribute:`document`,subTargets:[`block`],splitPane:!0},{type:`artboard`,refAttribute:`artboard`,subTargets:[`group`,`board`],splitPane:!0},{type:`whiteboard`,refAttribute:`whiteboard`,subTargets:[`page`,`frame`],splitPane:!0},{type:`html`,refAttribute:`html`,subTargets:[],splitPane:!0},{type:`slides`,refAttribute:`slides`,subTargets:[`slide`],splitPane:!0},{type:`report`,refAttribute:`report`,subTargets:[`block`],splitPane:!0},{type:`storyboard`,refAttribute:`storyboard`,subTargets:[`shot`],splitPane:!0},{type:`verify`,refAttribute:`verify`,subTargets:[],splitPane:!0}],cv=sv.map(e=>e.refAttribute),lv=[...new Set(sv.flatMap(e=>e.subTargets))];function uv(e){return sv.find(t=>t.type===e)??null}var dv=e=>i(e)&&o(e).splitRole===`board`,fv=[...sv.filter(e=>e.splitPane).map(e=>e.type),`verify`],pv=e=>fv.includes(e),mv=[`with`,`kind`,`board`,`group`,`frame`,`wbpage`,`slide`,`block`],hv={block:`block`,frame:`frame`,page:`wbpage`,slide:`slide`,group:`group`,board:`board`},gv=(e,t)=>{for(let n of e){let e=t(n);if(e)return{[n]:e}}return{}};function _v(e){let t=new URLSearchParams(e),n=t.get(`with`);if(!n||!l(n))return null;let r=t.get(`kind`);if(r&&i(r)&&o(r).linksOut)return{with:n,kind:r,...gv(o(r).splitFocus??[],e=>t.get(hv[e]))};let a=r&&i(r)&&o(r).splitFocus&&!o(r).splitUnnamed?r:null;return{with:n,...a?{kind:a}:{},...gv(o(a??s).splitFocus??[],e=>t.get(hv[e]))}}function vv(e,t){let n=new URLSearchParams(e);for(let e of mv)n.delete(e);t&&(n.set(`with`,t.with),t.kind&&n.set(`kind`,t.kind),t.frame?n.set(`frame`,t.frame):t.page?n.set(`wbpage`,t.page):t.slide?n.set(`slide`,t.slide):t.group?n.set(`group`,t.group):t.board?n.set(`board`,t.board):t.block&&n.set(`block`,t.block));let r=n.toString();return r?`?${r}`:``}function yv(e,t){if(e.kind!==`artifact`||!pv(e.type))return null;let n=_v(t);return n?{type:e.type,split:n}:null}export{Lg as $,Ps as $n,pi as $r,_p as $t,M_ as A,Kl as An,_a as Ar,ih as At,g_ as B,Bc as Bn,Bi as Br,Kp as Bt,P_ as C,eu as Cn,Ha as Cr,Ch as Ct,j_ as D,Ql as Dn,Ta as Dr,ch as Dt,k_ as E,Zl as En,Da as Er,lh as Et,b_ as F,El as Fn,ta as Fr,Rm as Ft,Kg as G,Ks as Gn,ji as Gr,Rp as Gt,m_ as H,Ys as Hn,Li as Hr,Up as Ht,y_ as I,wl as In,$i as Ir,cm as It,Xg as J,Vs as Jn,Ci as Jr,Lp as Jt,Jg as K,Gs as Kn,ki as Kr,Vp as Kt,p_ as L,Qc as Ln,Xi as Lr,nm as Lt,D_ as M,kl as Mn,da as Mr,th as Mt,w_ as N,xl as Nn,la as Nr,Vm as Nt,O_ as O,Wl as On,wa as Or,sh as Ot,T_ as P,Tl as Pn,ca as Pr,zm as Pt,Ig as Q,Fs as Qn,hi as Qr,Dp as Qt,v_ as R,$c as Rn,Ki as Rr,tm as Rt,I_ as S,nu as Sn,Eo as Sr,wh as St,A_ as T,Xl as Tn,Pa as Tr,hh as Tt,e_ as U,Js as Un,Fi as Ur,$p as Ut,h_ as V,kc as Vn,zi as Vr,Yp as Vt,c_ as W,qs as Wn,Ni as Wr,Xp as Wt,Gg as X,zs as Xn,yi as Xr,Np as Xt,Wg as Y,Bs as Yn,xi as Yr,zp as Yt,Hg as Z,Ls as Zn,_i as Zr,Pp as Zt,q_ as _,Pr as _i,du as _n,Go as _r,eg as _t,vv as a,ti as ai,Xf as an,Ss as ar,Og as at,K_ as b,ru as bn,Vo as br,Wh as bt,lv as c,Yr as ci,Rf as cn,hs as cr,_g as ct,ov as d,Rr as di,Td as dn,ts as dr,pg as dt,di as ei,hp as en,Ms as er,Bg as et,tv as f,Fr as fi,Dd as fn,es as fr,fg as ft,Q_ as g,Nr as gi,fu as gn,Yo as gr,hg as gt,iv as h,kr as hi,Cu as hn,$o as hr,cg as ht,yv as i,ri as ii,Zf as in,Cs as ir,Dg as it,E_ as j,Rl as jn,ha as jr,rh as jt,N_ as k,Ul as kn,ya as kr,nh as kt,uv as l,qr as li,Kd as ln,ms as lr,gg as lt,nv as m,Tr as mi,Iu as mn,as as mr,lg as mt,dv as n,si as ni,pp as nn,Es as nr,Mg as nt,sv as o,$r as oi,qf as on,bs as or,xg as ot,av as p,Z as pi,td as pn,os as pr,dg as pt,Yg as q,Us as qn,Di as qr,Bp as qt,_v as r,ai as ri,ap as rn,ws as rr,Ag as rt,cv as s,Zr as si,zf as sn,vs as sr,ug as st,gv as t,li as ti,gp as tn,js as tr,kg as tt,rv as u,Gr as ui,Ad as un,ds as ur,vg as ut,W_ as v,vr as vi,cu as vn,Ho as vr,$h as vt,F_ as w,$l as wn,Fa as wr,gh as wt,U_ as x,iu as xn,ko as xr,Ph as xt,G_ as y,au as yn,Uo as yr,Gh as yt,f_ as z,Xc as zn,Hi as zr,em as zt};