@brightspot/ui 1.9.0 → 1.11.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 (178) hide show
  1. package/dist/components/action-bar/ActionBar.d.ts +163 -0
  2. package/dist/components/action-bar/ActionBar.d.ts.map +1 -0
  3. package/dist/components/action-bar/ActionBar.js +479 -0
  4. package/dist/components/action-bar/ActionBar.js.map +1 -0
  5. package/dist/components/action-bar/ActionItem.d.ts +103 -0
  6. package/dist/components/action-bar/ActionItem.d.ts.map +1 -0
  7. package/dist/components/action-bar/ActionItem.js +237 -0
  8. package/dist/components/action-bar/ActionItem.js.map +1 -0
  9. package/dist/components/copy-to-clipboard/CopyToClipboard.d.ts.map +1 -1
  10. package/dist/components/copy-to-clipboard/CopyToClipboard.js +4 -0
  11. package/dist/components/copy-to-clipboard/CopyToClipboard.js.map +1 -1
  12. package/dist/components/dropdown/Dropdown.d.ts +3 -1
  13. package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
  14. package/dist/components/dropdown/Dropdown.js +22 -6
  15. package/dist/components/dropdown/Dropdown.js.map +1 -1
  16. package/dist/components/dropdown/DropdownItem.d.ts +14 -1
  17. package/dist/components/dropdown/DropdownItem.d.ts.map +1 -1
  18. package/dist/components/dropdown/DropdownItem.js +20 -1
  19. package/dist/components/dropdown/DropdownItem.js.map +1 -1
  20. package/dist/components/dropdown/DropdownMenu.d.ts +3 -5
  21. package/dist/components/dropdown/DropdownMenu.d.ts.map +1 -1
  22. package/dist/components/dropdown/DropdownMenu.js +17 -32
  23. package/dist/components/dropdown/DropdownMenu.js.map +1 -1
  24. package/dist/components/pagination/Pagination.d.ts +33 -4
  25. package/dist/components/pagination/Pagination.d.ts.map +1 -1
  26. package/dist/components/pagination/Pagination.js +80 -16
  27. package/dist/components/pagination/Pagination.js.map +1 -1
  28. package/dist/components/switch/Switch.d.ts +92 -0
  29. package/dist/components/switch/Switch.d.ts.map +1 -0
  30. package/dist/components/switch/Switch.js +189 -0
  31. package/dist/components/switch/Switch.js.map +1 -0
  32. package/dist/components/tabs/Tab.d.ts +108 -0
  33. package/dist/components/tabs/Tab.d.ts.map +1 -0
  34. package/dist/components/tabs/Tab.js +152 -0
  35. package/dist/components/tabs/Tab.js.map +1 -0
  36. package/dist/components/tabs/Tabs.d.ts +126 -0
  37. package/dist/components/tabs/Tabs.d.ts.map +1 -0
  38. package/dist/components/tabs/Tabs.js +390 -0
  39. package/dist/components/tabs/Tabs.js.map +1 -0
  40. package/dist/custom-elements.json +2736 -1390
  41. package/dist/effects/celebrate.d.ts +18 -0
  42. package/dist/effects/celebrate.d.ts.map +1 -0
  43. package/dist/effects/celebrate.js +81 -0
  44. package/dist/effects/celebrate.js.map +1 -0
  45. package/dist/effects/ripple.d.ts +31 -0
  46. package/dist/effects/ripple.d.ts.map +1 -0
  47. package/dist/effects/ripple.js +131 -0
  48. package/dist/effects/ripple.js.map +1 -0
  49. package/dist/effects/sparkle-worklet.d.ts +7 -0
  50. package/dist/effects/sparkle-worklet.d.ts.map +1 -0
  51. package/dist/effects/sparkle-worklet.js +211 -0
  52. package/dist/effects/sparkle-worklet.js.map +1 -0
  53. package/dist/effects/sparkle.d.ts +6 -0
  54. package/dist/effects/sparkle.d.ts.map +1 -0
  55. package/dist/effects/sparkle.js +91 -0
  56. package/dist/effects/sparkle.js.map +1 -0
  57. package/dist/storybook/BSPLogoMark.svg +3 -0
  58. package/dist/storybook/WelcomeBG.svg +292 -0
  59. package/dist/storybook/assets/ActionBar.stories--nAeDC-G.js +408 -0
  60. package/dist/storybook/assets/ActionItem.stories-BHrGjk-P.js +203 -0
  61. package/dist/storybook/assets/{Avatar.stories-Du1qM73U.js → Avatar.stories-Da-mRj6_.js} +1 -1
  62. package/dist/storybook/assets/{AvatarGroup.stories-DxwZQE-q.js → AvatarGroup.stories-BQlaC_yl.js} +1 -1
  63. package/dist/storybook/assets/{Badge.stories-CfvkMIx2.js → Badge.stories-DnVnOrnF.js} +1 -1
  64. package/dist/storybook/assets/Button-CFLAI1H9.js +10 -0
  65. package/dist/storybook/assets/Button.stories-DxaBOjwv.js +54 -0
  66. package/dist/storybook/assets/Celebrate.stories-CuMm15Nr.js +184 -0
  67. package/dist/storybook/assets/{CircularProgress.stories-rPzKwQYD.js → CircularProgress.stories-DRN8Mtvj.js} +1 -1
  68. package/dist/storybook/assets/{ClipboardMixin.stories-BlUeYDSi.js → ClipboardMixin.stories-DR7Ou2Av.js} +1 -1
  69. package/dist/storybook/assets/Color-6BZIO3FS-Die62Y0Z.js +1 -0
  70. package/dist/storybook/assets/{Colors.stories-BspfjZ5q.js → Colors.stories-bIq_ssbI.js} +1 -1
  71. package/dist/storybook/assets/CombinedEffects.stories-CtKzOUZn.js +355 -0
  72. package/dist/storybook/assets/{ComponentStatesMixin-eTV7XXqB.js → ComponentStatesMixin-DMLCk9fE.js} +1 -1
  73. package/dist/storybook/assets/{ComponentStatesMixin.stories-BbLSY3df.js → ComponentStatesMixin.stories-D8UI9o-d.js} +1 -1
  74. package/dist/storybook/assets/{CopyToClipboard.stories-B2ailiFF.js → CopyToClipboard.stories-ti6CpJNp.js} +1 -1
  75. package/dist/storybook/assets/{Debounce.stories-DJmp4eNo.js → Debounce.stories-DzZUSvbk.js} +1 -1
  76. package/dist/storybook/assets/DocsRenderer-LL677BLK-CIRGv5IX.js +10 -0
  77. package/dist/storybook/assets/{Dropdown.stories-Dd6vKiDd.js → Dropdown.stories-Lt4cY0Re.js} +41 -14
  78. package/dist/storybook/assets/{Events.stories-Byj-VOM9.js → Events.stories-B1ddcgpT.js} +1 -1
  79. package/dist/storybook/assets/{Heading.stories-Dqw-wzpx.js → Heading.stories-DI4w61cf.js} +1 -1
  80. package/dist/storybook/assets/HueRipple.stories-DjhoxxEw.js +310 -0
  81. package/dist/storybook/assets/{Icon.stories-Bp1nvWER.js → Icon.stories-CpziAhae.js} +1 -1
  82. package/dist/storybook/assets/{IconButton.stories-o9g9mGdh.js → IconButton.stories-KjN28hfc.js} +1 -1
  83. package/dist/storybook/assets/{LinearProgress.stories-DnXQVpzX.js → LinearProgress.stories-DcIpdz6R.js} +1 -1
  84. package/dist/storybook/assets/Pagination.stories-BBkLEwoP.js +252 -0
  85. package/dist/storybook/assets/{Popover.stories-BvavsRfq.js → Popover.stories-DLv48c2h.js} +3 -11
  86. package/dist/storybook/assets/{ReadyMixin-6On1MFFr.js → ReadyMixin-Cw2Dfbu2.js} +1 -1
  87. package/dist/storybook/assets/RovingTabindexMixin.stories-BWaFx9mu.js +192 -0
  88. package/dist/storybook/assets/{Rtc.stories-Bb5Y-908.js → Rtc.stories-Ve7Bwo_l.js} +1 -1
  89. package/dist/storybook/assets/ScrollShadow.stories-C6XmrRLm.js +17 -0
  90. package/dist/storybook/assets/Switch.stories-Cf8WM1LG.js +312 -0
  91. package/dist/storybook/assets/Tab.stories-CEtdEtOx.js +218 -0
  92. package/dist/storybook/assets/Tabs.stories-CIAO1bPO.js +211 -0
  93. package/dist/storybook/assets/{Throttle.stories-DmP-yKke.js → Throttle.stories-BqxVIb-r.js} +1 -1
  94. package/dist/storybook/assets/{Tooltip.stories-Dl6xHBaM.js → Tooltip.stories-B6fw6875.js} +3 -7
  95. package/dist/storybook/assets/Welcome.stories-CfJtSM19.js +215 -0
  96. package/dist/storybook/assets/{Widget.stories-BjXfgNjZ.js → Widget.stories-CiOho7lO.js} +1 -1
  97. package/dist/storybook/assets/WithTooltip-65CFNBJE-PGcopp73.js +9 -0
  98. package/dist/storybook/assets/blocks-dP2DwISI.js +707 -0
  99. package/dist/storybook/assets/celebrate-KwPoF1K3.js +21 -0
  100. package/dist/storybook/assets/formatter-EIJCOSYU-CZSAC3tg.js +1 -0
  101. package/dist/storybook/assets/if-defined-B1RdczOE.js +1 -0
  102. package/dist/storybook/assets/iframe-DloIUNZz.js +1104 -0
  103. package/dist/storybook/assets/{iframe-CNxIA3cQ.css → iframe-bJgLXZKK.css} +1 -1
  104. package/dist/storybook/assets/index-DKF0ypu5.js +1 -0
  105. package/dist/storybook/assets/onFind-C0l4Gew0.js +1 -0
  106. package/dist/storybook/assets/{onFind.stories-B2GYLrjV.js → onFind.stories-DOTt9puO.js} +2 -2
  107. package/dist/storybook/assets/{onRemove.stories-CoLJFkWa.js → onRemove.stories-CQ9ZC5dm.js} +1 -1
  108. package/dist/storybook/assets/{onVisible.stories-DOeZx7wi.js → onVisible.stories-Cbj5_Vz0.js} +2 -2
  109. package/dist/storybook/assets/position-CFNQy3J6.js +1 -0
  110. package/dist/storybook/assets/ripple-DQbyyRUw.js +251 -0
  111. package/dist/storybook/assets/style-map-DLXysq3r.js +1 -0
  112. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-Bjjbl9ca.js +6 -0
  113. package/dist/storybook/brightspot-logo.svg +19 -0
  114. package/dist/storybook/iframe.html +23 -3
  115. package/dist/storybook/index.html +42 -1
  116. package/dist/storybook/index.json +1 -1
  117. package/dist/storybook/project.json +1 -1
  118. package/dist/storybook/sb-addons/storybook-3/manager-bundle.js +3 -0
  119. package/dist/tailwind-plugin-action-bar.d.ts +2 -0
  120. package/dist/tailwind-plugin-action-bar.d.ts.map +1 -0
  121. package/dist/tailwind-plugin-action-bar.js +120 -0
  122. package/dist/tailwind-plugin-action-bar.js.map +1 -0
  123. package/dist/tailwind-plugin-action-bar.ts +134 -0
  124. package/dist/tailwind-plugin-badge.js +4 -5
  125. package/dist/tailwind-plugin-badge.js.map +1 -1
  126. package/dist/tailwind-plugin-badge.ts +4 -5
  127. package/dist/tailwind-plugin-button.js +1 -0
  128. package/dist/tailwind-plugin-button.js.map +1 -1
  129. package/dist/tailwind-plugin-button.ts +1 -0
  130. package/dist/tailwind-plugin-pagination.js +13 -23
  131. package/dist/tailwind-plugin-pagination.js.map +1 -1
  132. package/dist/tailwind-plugin-pagination.ts +15 -25
  133. package/dist/tailwind-plugin-switch.d.ts +2 -0
  134. package/dist/tailwind-plugin-switch.d.ts.map +1 -0
  135. package/dist/tailwind-plugin-switch.js +223 -0
  136. package/dist/tailwind-plugin-switch.js.map +1 -0
  137. package/dist/tailwind-plugin-switch.ts +252 -0
  138. package/dist/tailwind-plugin-tabs.d.ts +2 -0
  139. package/dist/tailwind-plugin-tabs.d.ts.map +1 -0
  140. package/dist/tailwind-plugin-tabs.js +151 -0
  141. package/dist/tailwind-plugin-tabs.js.map +1 -0
  142. package/dist/tailwind-plugin-tabs.ts +162 -0
  143. package/dist/util/EventEmitterMixin.d.ts +21 -0
  144. package/dist/util/EventEmitterMixin.d.ts.map +1 -1
  145. package/dist/util/EventEmitterMixin.js.map +1 -1
  146. package/dist/util/RovingTabindexMixin.d.ts +38 -0
  147. package/dist/util/RovingTabindexMixin.d.ts.map +1 -0
  148. package/dist/util/RovingTabindexMixin.js +83 -0
  149. package/dist/util/RovingTabindexMixin.js.map +1 -0
  150. package/dist/util/position.d.ts +9 -0
  151. package/dist/util/position.d.ts.map +1 -0
  152. package/dist/util/position.js +11 -0
  153. package/dist/util/position.js.map +1 -0
  154. package/docs/components/ActionBar.md +71 -0
  155. package/docs/components/ActionItem.md +76 -0
  156. package/docs/components/Dropdown.md +7 -7
  157. package/docs/components/DropdownItem.md +9 -5
  158. package/docs/components/DropdownMenu.md +12 -12
  159. package/docs/components/Pagination.md +37 -34
  160. package/docs/components/README.md +5 -0
  161. package/docs/components/Switch.md +79 -0
  162. package/docs/components/Tab.md +73 -0
  163. package/docs/components/Tabs.md +77 -0
  164. package/package.json +2 -1
  165. package/dist/storybook/assets/Button.stories-hDMDDh81.js +0 -63
  166. package/dist/storybook/assets/Color-6BZIO3FS-C_nQSB2u.js +0 -1
  167. package/dist/storybook/assets/DocsRenderer-LL677BLK-56Pige1J.js +0 -758
  168. package/dist/storybook/assets/Pagination.stories-DQD8uvDc.js +0 -272
  169. package/dist/storybook/assets/ScrollShadow.stories-ZovRXpte.js +0 -17
  170. package/dist/storybook/assets/WithTooltip-65CFNBJE-CGB5q-AN.js +0 -9
  171. package/dist/storybook/assets/_commonjsHelpers-CqkleIqs.js +0 -1
  172. package/dist/storybook/assets/formatter-EIJCOSYU-BhNtSFM9.js +0 -1
  173. package/dist/storybook/assets/if-defined-BFyUeSVF.js +0 -1
  174. package/dist/storybook/assets/iframe-BeKreX-l.js +0 -1061
  175. package/dist/storybook/assets/index-Uz2kGy8J.js +0 -1
  176. package/dist/storybook/assets/onFind-DqriYjEB.js +0 -1
  177. package/dist/storybook/assets/style-map-CmHqpCu1.js +0 -1
  178. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-BqFfcc7x.js +0 -6
@@ -0,0 +1,707 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./iframe-DloIUNZz.js","./preload-helper-PPVm8Dsz.js","./iframe-bJgLXZKK.css","./syntaxhighlighter-ED5Y7EFY-Bjjbl9ca.js","./formatter-EIJCOSYU-CZSAC3tg.js","./WithTooltip-65CFNBJE-PGcopp73.js","./Color-6BZIO3FS-Die62Y0Z.js"])))=>i.map(i=>d[i]);
2
+ import{_ as cr}from"./preload-helper-PPVm8Dsz.js";import{_ as pt,a as Nt,b as c$,c as d$,d as Md,h as f$,j as p$,s as h$,k as g$,l as m$,n as y$,m as b$,o as Pa,p as Bd,q as v$,t as E$,u as S$,v as $$,w as x$,y as w$,z as C$,A as _$,B as T$,C as A$,D as D$,F as R$,G as O$,H as P$,I as I$,J as F$,K as L$,L as jd,M as wt,N as Le,O as Et,P as Wm,Q as Vm,R as g,S as R,r as p,T as yo,U as k$,V as Xt,W as nt,X as Ge,Y as qm,Z as N$,$ as Ia,a0 as M$,a1 as Ym,a2 as Dr,a3 as B$,a4 as Hs,a5 as Hd,a6 as Zu,a7 as Xm,a8 as j$,a9 as Ud,aa as H$,ab as Kd,ac as U$,ad as Fa}from"./iframe-DloIUNZz.js";var zd="backgrounds",K$="outline",z$={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function G$(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var La={DEV:"dev",TEST:"test"},Jm=pt({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let a="",l=0,s=0;e:for(;s<i;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(a+=o.slice(l,s)),l=s+1,a+=t[u]),++s===i)break e;u=o.charCodeAt(s)}if(l<s&&(a+=o.slice(l,s)),u<2048){l=s+1,a+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=i)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?a+o.slice(l):a}}}),Qu=pt({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Jm(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),Zm=pt({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=Qu(),r=Jm();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,h,m,b){if(n(f))return d;let v=d[f];return typeof v=="object"&&v!==null?v:!m&&(b||typeof h=="number"||typeof h=="string"&&h*0===0&&h.indexOf(".")===-1)?d[f]=[]:d[f]={}}var i=20,a="[]",l="[",s="]",u=".";function c(d,f,h=0,m,b){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:y=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:E=t.defaultOptions.arrayRepeatSyntax,nesting:S=t.defaultOptions.nesting,delimiter:$=t.defaultOptions.delimiter,valueSerializer:C=t.defaultOptions.valueSerializer,shouldSerializeObject:_=t.defaultOptions.shouldSerializeObject}=f,w=typeof $=="number"?String.fromCharCode($):$,T=b===!0&&y,D=v==="dot"||v==="js"&&!b;if(h>i)return"";let P="",x=!0,k=!1;for(let L in d){let A=d[L];if(A===void 0)continue;let O;m?(O=m,T?E==="bracket"&&(O+=a):D?(O+=u,O+=L):(O+=l,O+=L,O+=s)):O=L,x||(P+=w),typeof A=="object"&&A!==null&&!_(A)?(k=A.pop!==void 0,(S||y&&k)&&(P+=c(A,f,h+1,O,k))):(P+=(0,r.encodeString)(O),P+="=",P+=C(A,L)),x&&(x=!1)}return P}}}),W$=pt({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,h=s,m=t;for(;s>-1&&s<u;){let b=a(l[s+1],4),v=a(l[s+2],0),y=b|v,E=n[y];if(m=n[256+m+E],f=f<<6|y&n[364+E],m===t)c+=l.slice(d,h),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=h=l.indexOf("%",d);else{if(m===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(l,s){let u=i[l];return u===void 0?255:u<<s}}}),V$=pt({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=Zm(),r=Qu(),n=W$(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var i=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=i;var a=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,h,m){let b=c.substring(d,f);return h&&(b=b.replace(a," ")),m&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:h=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:m=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:y=r.defaultOptions.nestingSyntax,delimiter:E=r.defaultOptions.delimiter}=d??{},S=typeof E=="string"?E.charCodeAt(0):E,$=y==="js",C=new l;if(typeof c!="string")return C;let _=c.length,w="",T=-1,D=-1,P=-1,x=C,k,L="",A="",O=!1,I=!1,F=!1,M=!1,B=!1,N=!1,K=0,H=-1,G=-1,U=-1;for(let j=0;j<_+1;j++){if(K=j!==_?c.charCodeAt(j):S,K===S){if(N=D>T,N||(D=j),P!==D-1&&(A=s(c,P+1,H>-1?H:D,F,O),L=h(A),k!==void 0&&(x=(0,t.getDeepObject)(x,k,L,$&&B,void 0))),N||L!==""){N&&(w=c.slice(D+1,j),M&&(w=w.replace(a," ")),I&&(w=(0,n.decodeURIComponent)(w)||w));let W=f(w,L);if(v){let q=x[L];q===void 0?H>-1?x[L]=[W]:x[L]=W:q.pop?q.push(W):x[L]=[q,W]}else x[L]=W}w="",T=j,D=j,O=!1,I=!1,F=!1,M=!1,B=!1,H=-1,P=j,x=C,k=void 0,L=""}else K===93?(v&&m==="bracket"&&U===91&&(H=G),b&&(y==="index"||$)&&D<=T&&(P!==G&&(A=s(c,P+1,j,F,O),L=h(A),k!==void 0&&(x=(0,t.getDeepObject)(x,k,L,void 0,void 0)),k=L,F=!1,O=!1),P=j,B=!1)):K===46?b&&(y==="dot"||$)&&D<=T&&(P!==G&&(A=s(c,P+1,j,F,O),L=h(A),k!==void 0&&(x=(0,t.getDeepObject)(x,k,L,$)),k=L,F=!1,O=!1),B=!0,P=j):K===91?b&&(y==="index"||$)&&D<=T&&(P!==G&&(A=s(c,P+1,j,F,O),L=h(A),$&&k!==void 0&&(x=(0,t.getDeepObject)(x,k,L,$)),k=L,F=!1,O=!1,B=!1),P=j):K===61?D<=T?D=j:I=!0:K===43?D>T?M=!0:F=!0:K===37&&(D>T?I=!0:O=!0);G=j,U=K}return C}}}),q$=pt({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Zm();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),Qm=pt({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(i,a,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,s,u)}):(function(i,a,l,s){s===void 0&&(s=l),i[s]=a[l]})),r=e&&e.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=V$();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=q$();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(Qu(),e)}});function Y$(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];r[i]=t(a,i,e)}return r}function X$(e){return e==="__proto__"}function rt(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let i=n[o];if(X$(i))continue;let a=t[i],l=e[i],s=r(l,a,i,e,t);s!==void 0?e[i]=s:Array.isArray(a)?Array.isArray(l)?e[i]=rt(l,a,r):e[i]=rt([],a,r):Nt(a)?Nt(l)?e[i]=rt(l,a,r):e[i]=rt({},a,r):(l===void 0||a!==void 0)&&(e[i]=a)}return e}function In(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r}function ka(e){if(c$(e))return e;if(Array.isArray(e)||d$(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function J$(e,t){let r={...e};for(let n=0;n<t.length;n++){let o=t[n];delete r[o]}return r}function Na(e,t){return rt(ka(e),t,function r(n,o){if(Array.isArray(o))return Array.isArray(n)?rt(ka(n),o,r):rt([],o,r);if(Nt(o))return Nt(n)?rt(ka(n),o,r):rt({},o,r)})}function Z$(){}function Q$(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function ex(e,t,r){return Gn(e,t,void 0,void 0,void 0,void 0,r)}function Gn(e,t,r,n,o,i,a){let l=a(e,t,r,n,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Jn(e,t,i,a)}return Jn(e,t,i,a)}function Jn(e,t,r,n){if(Object.is(e,t))return!0;let o=Md(e),i=Md(t);if(o===jd&&(o=Pa),i===jd&&(i=Pa),o!==i)return!1;switch(o){case b$:return e.toString()===t.toString();case y$:{let s=e.valueOf(),u=t.valueOf();return Q$(s,u)}case m$:case g$:case h$:return Object.is(e.valueOf(),t.valueOf());case p$:return e.source===t.source&&e.flags===t.flags;case f$:return e===t}r=r??new Map;let a=r.get(e),l=r.get(t);if(a!=null&&l!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case L$:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!Gn(u,t.get(s),s,e,t,r,n))return!1;return!0}case F$:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(h=>Gn(d,h,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case I$:case P$:case O$:case R$:case D$:case A$:case T$:case _$:case C$:case w$:case x$:case $$:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!Gn(e[s],t[s],s,e,t,r,n))return!1;return!0}case S$:return e.byteLength!==t.byteLength?!1:Jn(new Uint8Array(e),new Uint8Array(t),r,n);case E$:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Jn(new Uint8Array(e),new Uint8Array(t),r,n);case v$:return e.name===t.name&&e.message===t.message;case Pa:{if(!(Jn(e.constructor,t.constructor,r,n)||Nt(e)&&Nt(t)))return!1;let s=[...Object.keys(e),...Bd(e)],u=[...Object.keys(t),...Bd(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let h=t[d];if(!Gn(f,h,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function Pt(e,t){return ex(e,t,Z$)}var tx="Invariant failed";function Us(e,t){if(!e)throw new Error(tx)}var zi="storybook/highlight",rx=`${zi}/add`,nx=`${zi}/remove`,ox=`${zi}/reset`,ix=`${zi}/scroll-into-view`,Gd=2147483647,ir=28,ax="storybook/actions",lx=`${ax}/action-event`,sx={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:ux}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:Wd}=__STORYBOOK_MODULE_GLOBAL__,{addons:cx}=__STORYBOOK_MODULE_PREVIEW_API__;var e0=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:e0(r,t)},dx=e=>!!(typeof e=="object"&&e&&e0(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),fx=e=>{if(dx(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function ec(e,t={}){let r={...sx,...t},n=function(...o){if(t.implicit){let d=("__STORYBOOK_PREVIEW__"in Wd?Wd.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(d){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,h=new ux({phase:d.phase,name:e,deprecated:f});if(f)console.warn(h);else throw h}}let i=cx.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(fx),u=o.length>1?s:s[0],c={id:a,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};i.emit(lx,c)};return n.isAction=!0,n.implicit=t.implicit,n}var Ut={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},px={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},t0=Object.entries(px);function Gi(e){return String(e)}Gi.open="";Gi.close="";t0.reduce((e,[t])=>(e[t]=Gi,e),{isColorSupported:!1});function hx(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function gx(e=!1){let t=hx(e),r=(a,l,s,u)=>{let c="",d=0;do c+=a.substring(d,u)+s,d=u+l.length,u=a.indexOf(l,d);while(~u);return c+a.substring(d)},n=(a,l,s=a)=>{let u=c=>{let d=String(c),f=d.indexOf(l,a.length);return~f?a+r(d,l,s,f)+l:a+d+l};return u.open=a,u.close=l,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,l]of t0)o[a]=t?n(i(l[0]),i(l[1]),l[2]):Gi;return o}var qt=gx();function r0(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function mx(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function bo(e,t,r,n,o,i,a=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=i(u.value[0],t,c,n,o),f=i(u.value[1],t,c,n,o);l+=d+a+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function tc(e,t,r,n,o,i){let a="",l=0,s=e.next();if(!s.done){a+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(a+=u,l++===t.maxWidth){a+="…";break}a+=i(s.value,t,u,n,o),s=e.next(),s.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Si(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){a+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(a+=u,c===t.maxWidth){a+="…";break}(l(e)||c in e)&&(a+=i(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function rc(e,t,r,n,o,i){let a="",l=mx(e,t.compareKeys);if(l.length>0){a+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=i(c,t,s,n,o),f=i(e[c],t,s,n,o);a+=`${s+d}: ${f}`,u<l.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var yx=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ma=" ",bx=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ma}[${Si(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ma}{${rc(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Ma+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},vx=e=>e&&e.$$typeof===yx,Ex={serialize:bx,test:vx},Sx=" ",n0=new Set(["DOMStringMap","NamedNodeMap"]),$x=/^(?:HTML\w*Collection|NodeList)$/;function xx(e){return n0.has(e)||$x.test(e)}var wx=e=>e&&e.constructor&&!!e.constructor.name&&xx(e.constructor.name);function Cx(e){return e.constructor.name==="NamedNodeMap"}var _x=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+Sx)+(n0.has(a)?`{${rc(Cx(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,i)}}`:`[${Si([...e],t,r,n,o,i)}]`)},Tx={serialize:_x,test:wx};function o0(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function nc(e,t,r,n,o,i,a){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=a(c,r,l,o,i);return typeof c!="string"&&(d.includes(`
3
+ `)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function oc(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?i0(a,t):i(a,t,r,n,o))).join("")}function i0(e,t){let r=t.colors.content;return r.open+o0(e)+r.close}function Ax(e,t){let r=t.colors.comment;return`${r.open}<!--${o0(e)}-->${r.close}`}function ic(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function ac(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var Dx=1,a0=3,l0=8,s0=11,Rx=/^(?:(?:HTML|SVG)\w*)?Element$/;function Ox(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function Px(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||Ox(e);return r===Dx&&(Rx.test(t)||o)||r===a0&&t==="Text"||r===l0&&t==="Comment"||r===s0&&t==="DocumentFragment"}var Ix=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&Px(e)};function Fx(e){return e.nodeType===a0}function Lx(e){return e.nodeType===l0}function Ba(e){return e.nodeType===s0}var kx=(e,t,r,n,o,i)=>{if(Fx(e))return i0(e.data,t);if(Lx(e))return Ax(e.data,t);let a=Ba(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?ac(a,t):ic(a,nc(Ba(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Ba(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,i),oc(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},Nx={serialize:kx,test:Ix},Mx="@@__IMMUTABLE_ITERABLE__@@",Bx="@@__IMMUTABLE_LIST__@@",jx="@@__IMMUTABLE_KEYED__@@",Hx="@@__IMMUTABLE_MAP__@@",Vd="@@__IMMUTABLE_ORDERED__@@",Ux="@@__IMMUTABLE_RECORD__@@",Kx="@@__IMMUTABLE_SEQ__@@",zx="@@__IMMUTABLE_SET__@@",Gx="@@__IMMUTABLE_STACK__@@",ln=e=>`Immutable.${e}`,Wi=e=>`[${e}]`,no=" ",qd="…";function Wx(e,t,r,n,o,i,a){return++n>t.maxDepth?Wi(ln(a)):`${ln(a)+no}{${bo(e.entries(),t,r,n,o,i)}}`}function Vx(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function qx(e,t,r,n,o,i){let a=ln(e._name||"Record");return++n>t.maxDepth?Wi(a):`${a+no}{${bo(Vx(e),t,r,n,o,i)}}`}function Yx(e,t,r,n,o,i){let a=ln("Seq");return++n>t.maxDepth?Wi(a):e[jx]?`${a+no}{${e._iter||e._object?bo(e.entries(),t,r,n,o,i):qd}}`:`${a+no}[${e._iter||e._array||e._collection||e._iterable?tc(e.values(),t,r,n,o,i):qd}]`}function ja(e,t,r,n,o,i,a){return++n>t.maxDepth?Wi(ln(a)):`${ln(a)+no}[${tc(e.values(),t,r,n,o,i)}]`}var Xx=(e,t,r,n,o,i)=>e[Hx]?Wx(e,t,r,n,o,i,e[Vd]?"OrderedMap":"Map"):e[Bx]?ja(e,t,r,n,o,i,"List"):e[zx]?ja(e,t,r,n,o,i,e[Vd]?"OrderedSet":"Set"):e[Gx]?ja(e,t,r,n,o,i,"Stack"):e[Kx]?Yx(e,t,r,n,o,i):qx(e,t,r,n,o,i),Jx=e=>e&&(e[Mx]===!0||e[Ux]===!0),Zx={serialize:Xx,test:Jx};function u0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yd={exports:{}},fe={},Xd;function Qx(){if(Xd)return fe;Xd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(b){if(typeof b=="object"&&b!==null){var v=b.$$typeof;switch(v){case e:switch(b=b.type,b){case r:case o:case n:case s:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case l:case d:case c:return b;case i:return b;default:return v}}case t:return v}}}return fe.ContextConsumer=i,fe.ContextProvider=a,fe.Element=e,fe.ForwardRef=l,fe.Fragment=r,fe.Lazy=d,fe.Memo=c,fe.Portal=t,fe.Profiler=o,fe.StrictMode=n,fe.Suspense=s,fe.SuspenseList=u,fe.isContextConsumer=function(b){return m(b)===i},fe.isContextProvider=function(b){return m(b)===a},fe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},fe.isForwardRef=function(b){return m(b)===l},fe.isFragment=function(b){return m(b)===r},fe.isLazy=function(b){return m(b)===d},fe.isMemo=function(b){return m(b)===c},fe.isPortal=function(b){return m(b)===t},fe.isProfiler=function(b){return m(b)===o},fe.isStrictMode=function(b){return m(b)===n},fe.isSuspense=function(b){return m(b)===s},fe.isSuspenseList=function(b){return m(b)===u},fe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===s||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===c||b.$$typeof===a||b.$$typeof===i||b.$$typeof===l||b.$$typeof===h||b.getModuleId!==void 0)},fe.typeOf=m,fe}var Jd;function ew(){return Jd||(Jd=1,Yd.exports=Qx()),Yd.exports}var c0=ew(),tw=u0(c0),rw=r0({__proto__:null,default:tw},[c0]),Zd={exports:{}},de={},Qd;function nw(){if(Qd)return de;Qd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case o:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case s:case f:case d:case i:return v;default:return y}}case t:return y}}}return de.ContextConsumer=a,de.ContextProvider=i,de.Element=e,de.ForwardRef=s,de.Fragment=r,de.Lazy=f,de.Memo=d,de.Portal=t,de.Profiler=o,de.StrictMode=n,de.Suspense=u,de.SuspenseList=c,de.isAsyncMode=function(){return!1},de.isConcurrentMode=function(){return!1},de.isContextConsumer=function(v){return b(v)===a},de.isContextProvider=function(v){return b(v)===i},de.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},de.isForwardRef=function(v){return b(v)===s},de.isFragment=function(v){return b(v)===r},de.isLazy=function(v){return b(v)===f},de.isMemo=function(v){return b(v)===d},de.isPortal=function(v){return b(v)===t},de.isProfiler=function(v){return b(v)===o},de.isStrictMode=function(v){return b(v)===n},de.isSuspense=function(v){return b(v)===u},de.isSuspenseList=function(v){return b(v)===c},de.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===u||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===d||v.$$typeof===i||v.$$typeof===a||v.$$typeof===s||v.$$typeof===m||v.getModuleId!==void 0)},de.typeOf=b,de}var ef;function ow(){return ef||(ef=1,Zd.exports=nw()),Zd.exports}var d0=ow(),iw=u0(d0),aw=r0({__proto__:null,default:iw},[d0]),lw=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],wr=Object.fromEntries(lw.map(e=>[e,t=>aw[e](t)||rw[e](t)]));function f0(e,t=[]){if(Array.isArray(e))for(let r of e)f0(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function tf(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(wr.isFragment(e))return"React.Fragment";if(wr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(wr.isContextProvider(e))return"Context.Provider";if(wr.isContextConsumer(e))return"Context.Consumer";if(wr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(wr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function sw(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var uw=(e,t,r,n,o,i)=>++n>t.maxDepth?ac(tf(e),t):ic(tf(e),nc(sw(e),e.props,t,r+t.indent,n,o,i),oc(f0(e.props.children),t,r+t.indent,n,o,i),t,r),cw=e=>e!=null&&wr.isElement(e),dw={serialize:uw,test:cw},fw=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function pw(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var hw=(e,t,r,n,o,i)=>++n>t.maxDepth?ac(e.type,t):ic(e.type,e.props?nc(pw(e),e.props,t,r+t.indent,n,o,i):"",e.children?oc(e.children,t,r+t.indent,n,o,i):"",t,r),gw=e=>e&&e.$$typeof===fw,mw={serialize:hw,test:gw},p0=Object.prototype.toString,yw=Date.prototype.toISOString,bw=Error.prototype.toString,rf=RegExp.prototype.toString;function li(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function vw(e){return typeof window<"u"&&e===window}var Ew=/^Symbol\((.*)\)(.*)$/,Sw=/\n/g,h0=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function $w(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function xw(e){return Object.is(e,-0)?"-0":String(e)}function ww(e){return`${e}n`}function nf(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function of(e){return String(e).replace(Ew,"Symbol($1)")}function af(e){return`[${bw.call(e)}]`}function g0(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return xw(e);if(o==="bigint")return ww(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return nf(e,t);if(o==="symbol")return of(e);let i=p0.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?nf(e,t):i==="[object Symbol]"?of(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":yw.call(e):i==="[object Error]"?af(e):i==="[object RegExp]"?r?rf.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):rf.call(e):e instanceof Error?af(e):null}function m0(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return ar(e.toJSON(),t,r,n,o,!0);let s=p0.call(e);return s==="[object Arguments]"?a?"[Arguments]":`${l?"":"Arguments "}[${Si(e,t,r,n,o,ar)}]`:$w(s)?a?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Si(e,t,r,n,o,ar)}]`:s==="[object Map]"?a?"[Map]":`Map {${bo(e.entries(),t,r,n,o,ar," => ")}}`:s==="[object Set]"?a?"[Set]":`Set {${tc(e.values(),t,r,n,o,ar)}}`:a||vw(e)?`[${li(e)}]`:`${l||!t.printBasicPrototype&&li(e)==="Object"?"":`${li(e)} `}{${rc(e,t,r,n,o,ar)}}`}var Cw={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,{message:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:li(e);return a?`[${d}]`:`${d} {${bo(Object.entries(c).values(),t,r,n,o,i)}}`}};function _w(e){return e.serialize!=null}function y0(e,t,r,n,o,i){let a;try{a=_w(e)?e.serialize(t,r,n,o,i,ar):e.print(t,l=>ar(l,r,n,o,i),l=>{let s=n+r.indent;return s+l.replaceAll(Sw,`
4
+ ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new h0(l.message,l.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function b0(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new h0(n.message,n.stack)}return null}function ar(e,t,r,n,o,i){let a=b0(t.plugins,e);if(a!==null)return y0(a,e,t,r,n,o);let l=g0(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:m0(e,t,r,n,o,i)}var lc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},v0=Object.keys(lc),bt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:lc};function Tw(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(bt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function Aw(){return v0.reduce((e,t)=>{let r=lc[t],n=r&&qt[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function Dw(){return v0.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function E0(e){return e?.printFunctionName??bt.printFunctionName}function S0(e){return e?.escapeRegex??bt.escapeRegex}function $0(e){return e?.escapeString??bt.escapeString}function lf(e){return{callToJSON:e?.callToJSON??bt.callToJSON,colors:e?.highlight?Aw():Dw(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:bt.compareKeys,escapeRegex:S0(e),escapeString:$0(e),indent:e?.min?"":Rw(e?.indent??bt.indent),maxDepth:e?.maxDepth??bt.maxDepth,maxWidth:e?.maxWidth??bt.maxWidth,min:e?.min??bt.min,plugins:e?.plugins??bt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:E0(e),spacingInner:e?.min?" ":`
5
+ `,spacingOuter:e?.min?"":`
6
+ `}}function Rw(e){return Array.from({length:e+1}).join(" ")}function It(e,t){if(t&&(Tw(t),t.plugins)){let n=b0(t.plugins,e);if(n!==null)return y0(n,e,lf(t),"",0,[])}let r=g0(e,E0(t),S0(t),$0(t));return r!==null?r:m0(e,lf(t),"",0,[])}var sc={AsymmetricMatcher:Ex,DOMCollection:Tx,DOMElement:Nx,Immutable:Zx,ReactElement:dw,ReactTestComponent:mw,Error:Cw},sf={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Ow={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},sn="…";function Pw(e,t){let r=sf[Ow[t]]||sf[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function Iw({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=Pw),d}function Fw(e){return e>="\uD800"&&e<="\uDBFF"}function pr(e,t,r=sn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&Fw(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function xt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${sn}(${e.length-u})`;let f=e[u];t.truncate=i-a.length-(c?0:n.length);let h=l||r(f,t)+(c?"":n),m=a.length+h.length,b=m+s.length;if(c&&m>i&&a.length+s.length<=i||!c&&!d&&b>i||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&b>i&&m+l.length>i))break;if(a+=h,!c&&!d&&m+l.length>=i){s=`${sn}(${e.length-u-1})`;break}s=""}return`${a}${s}`}function Lw(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function oo([e,t],r){return r.truncate-=2,typeof e=="string"?e=Lw(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function kw(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=xt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=xt(r.map(i=>[i,e[i]]),t,oo)),`[ ${n}${o?`, ${o}`:""} ]`}var Nw=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Kt(e,t){let r=Nw(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let l=`${t.stylize(pr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){o+=`${sn}(${e.length-e[a]+1})`;break}o+=l}let i="";return n.length&&(i=xt(n.map(a=>[a,e[a]]),t,oo)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function Mw(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${pr(n[1],t.truncate-o.length-1)}`,"date")}function uf(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${pr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function Bw([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function jw(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function Hw(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${xt(jw(e),t,Bw)} }`)}var Uw=Number.isNaN||(e=>e!==e);function cf(e,t){return Uw(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(pr(String(e),t.truncate),"number")}function df(e,t){let r=pr(e.toString(),t.truncate-1);return r!==sn&&(r+="n"),t.stylize(r,"bigint")}function Kw(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${pr(o,n)}/${r}`,"regexp")}function zw(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function Gw(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${xt(zw(e),t)} }`)}var ff=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Ww={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Vw=16;function qw(e){return Ww[e]||`\\u${`0000${e.charCodeAt(0).toString(Vw)}`.slice(-4)}`}function pf(e,t){return ff.test(e)&&(e=e.replace(ff,qw)),t.stylize(`'${pr(e,t.truncate-2)}'`,"string")}function hf(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var x0=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(x0=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var Yw=x0;function si(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=xt(r.map(l=>[l,e[l]]),t,oo),i=xt(n.map(l=>[l,e[l]]),t,oo);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Ha=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Xw(e,t){let r="";return Ha&&Ha in e&&(r=e[Ha]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${si(e,t)}`}function Jw(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${xt(e,t)} ]`)}var Zw=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Qw(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>Zw.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=pr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=xt(r.map(a=>[a,e[a]]),t,oo);return`${n}${o}${i?` { ${i} }`:""}`}function eC([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Ks(e,t){return xt(e,t,tC,`
7
+ `)}function tC(e,t){switch(e.nodeType){case 1:return w0(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function w0(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=xt(r.map(c=>[c,e.getAttribute(c)]),t,eC," ")),t.truncate-=l.length;let s=t.truncate,u=Ks(e.children,t);return u&&u.length>s&&(u=`${sn}(${e.children.length})`),`${o}${l}${i}${u}${a}`}var rC=typeof Symbol=="function"&&typeof Symbol.for=="function",Ua=rC?Symbol.for("chai/inspect"):"@@chai/inspect",Ka=Symbol.for("nodejs.util.inspect.custom"),gf=new WeakMap,mf={},yf={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:cf,Number:cf,bigint:df,BigInt:df,string:pf,String:pf,function:uf,Function:uf,symbol:hf,Symbol:hf,Array:kw,Date:Mw,Map:Hw,Set:Gw,RegExp:Kw,Promise:Yw,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:Jw,Int8Array:Kt,Uint8Array:Kt,Uint8ClampedArray:Kt,Int16Array:Kt,Uint16Array:Kt,Int32Array:Kt,Uint32Array:Kt,Float32Array:Kt,Float64Array:Kt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Qw,HTMLCollection:Ks,NodeList:Ks},nC=(e,t,r)=>Ua in e&&typeof e[Ua]=="function"?e[Ua](t):Ka in e&&typeof e[Ka]=="function"?e[Ka](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&gf.has(e.constructor)?gf.get(e.constructor)(e,t):mf[r]?mf[r](e,t):"",oC=Object.prototype.toString;function zs(e,t={}){let r=Iw(t,zs),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=oC.call(e).slice(8,-1)),o in yf)return yf[o](e,r);if(n&&e){let a=nC(e,r,o);if(a)return typeof a=="string"?a:zs(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?si(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?w0(e,r):"constructor"in e?e.constructor!==Object?Xw(e,r):si(e,r):e===Object(e)?si(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:iC,DOMCollection:aC,DOMElement:lC,Immutable:sC,ReactElement:uC,ReactTestComponent:cC}=sc,bf=[cC,uC,lC,aC,sC,iC];function io(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=It(e,{maxDepth:t,escapeString:!1,plugins:bf,...n})}catch{i=It(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:bf,...n})}return i.length>=o&&t>1?io(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var dC=/%[sdjifoOc%]/g;function fC(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(Fn(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(dC,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Fn(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Fn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Fn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let l=a.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Fn(i)}`;return o}function Fn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),zs(e,t)}function pC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hC(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Gs(e){return Object.prototype.toString.apply(e).slice(8,-1)}function gC(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function C0(e){let t=new Set;return hC(e)?[]:(gC(e,t),Array.from(t))}var _0={forceWritable:!1};function vf(e,t=_0){return Ws(e,new WeakMap,t)}function Ws(e,t,r=_0){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=Ws(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=C0(e);for(let a of i){let l=Object.getOwnPropertyDescriptor(e,a);if(!l)continue;let s=Ws(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,a,{...l,get(){return s}}):Object.defineProperty(o,a,{...l,value:s})}return o}return e}var Be=-1,Ie=1,Ee=0,ye=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function mC(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function T0(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function Ef(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,a=1;for(;;){let l=e.substring(o-a),s=t.indexOf(l);if(s===-1)return i;a+=s,(s===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function yC(e){let t=!1,r=[],n=0,o=null,i=0,a=0,l=0,s=0,u=0;for(;i<e.length;)e[i][0]===Ee?(r[n++]=i,a=s,l=u,s=0,u=0,o=e[i][1]):(e[i][0]===Ie?s+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(a,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new ye(Be,o)),e[r[n-1]+1][0]=Ie,n--,n--,i=n>0?r[n-1]:-1,a=0,l=0,s=0,u=0,o=null,t=!0)),i++;for(t&&A0(e),EC(e),i=1;i<e.length;){if(e[i-1][0]===Be&&e[i][0]===Ie){let c=e[i-1][1],d=e[i][1],f=Ef(c,d),h=Ef(d,c);f>=h?(f>=c.length/2||f>=d.length/2)&&(e.splice(i,0,new ye(Ee,d.substring(0,f))),e[i-1][1]=c.substring(0,c.length-f),e[i+1][1]=d.substring(f),i++):(h>=c.length/2||h>=d.length/2)&&(e.splice(i,0,new ye(Ee,c.substring(0,h))),e[i-1][0]=Ie,e[i-1][1]=d.substring(0,d.length-h),e[i+1][0]=Be,e[i+1][1]=c.substring(h),i++),i++}i++}}var Sf=/[^a-z0-9]/i,$f=/\s/,xf=/[\r\n]/,bC=/\n\r?\n$/,vC=/^\r?\n\r?\n/;function EC(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ee&&e[t+1][0]===Ee){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=T0(r,n);if(i){let c=n.substring(n.length-i);r=r.substring(0,r.length-i),n=c+n.substring(0,n.length-i),o=c+o}let a=r,l=n,s=o,u=Lo(r,n)+Lo(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let c=Lo(r,n)+Lo(n,o);c>=u&&(u=c,a=r,l=n,s=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function A0(e){e.push(new ye(Ee,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case Ie:n++,i+=e[t][1],t++;break;case Be:r++,o+=e[t][1],t++;break;case Ee:r+n>1?(r!==0&&n!==0&&(a=mC(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ee?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new ye(Ee,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=T0(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new ye(Be,o)),t++),i.length&&(e.splice(t,0,new ye(Ie,i)),t++),t++):t!==0&&e[t-1][0]===Ee?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ee&&e[t+1][0]===Ee&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&A0(e)}function Lo(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Sf),i=n.match(Sf),a=o&&r.match($f),l=i&&n.match($f),s=a&&r.match(xf),u=l&&n.match(xf),c=s&&e.match(bC),d=u&&t.match(vC);return c||d?5:s||u?4:o&&!a&&l?3:a||l?2:o||i?1:0}var D0="Compared values have no visual difference.",SC="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ko={},wf;function $C(){if(wf)return ko;wf=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=f;let e="diff-sequences",t=0,r=(h,m,b,v,y)=>{let E=0;for(;h<m&&b<v&&y(h,b);)h+=1,b+=1,E+=1;return E},n=(h,m,b,v,y)=>{let E=0;for(;h<=m&&b<=v&&y(m,v);)m-=1,v-=1,E+=1;return E},o=(h,m,b,v,y,E,S)=>{let $=0,C=-h,_=E[$],w=_;E[$]+=r(_+1,m,v+_-C+1,b,y);let T=h<S?h:S;for($+=1,C+=2;$<=T;$+=1,C+=2){if($!==h&&w<E[$])_=E[$];else if(_=w+1,m<=_)return $-1;w=E[$],E[$]=_+r(_+1,m,v+_-C+1,b,y)}return S},i=(h,m,b,v,y,E,S)=>{let $=0,C=h,_=E[$],w=_;E[$]-=n(m,_-1,b,v+_-C-1,y);let T=h<S?h:S;for($+=1,C-=2;$<=T;$+=1,C-=2){if($!==h&&E[$]<w)_=E[$];else if(_=w-1,_<m)return $-1;w=E[$],E[$]=_-n(m,_-1,b,v+_-C-1,y)}return S},a=(h,m,b,v,y,E,S,$,C,_,w)=>{let T=v-m,D=b-m,P=y-v-D,x=-P-(h-1),k=-P+(h-1),L=t,A=h<$?h:$;for(let O=0,I=-h;O<=A;O+=1,I+=2){let F=O===0||O!==h&&L<S[O],M=F?S[O]:L,B=F?M:M+1,N=T+B-I,K=r(B+1,b,N+1,y,E),H=B+K;if(L=S[O],S[O]=H,x<=I&&I<=k){let G=(h-1-(I+P))/2;if(G<=_&&C[G]-1<=H){let U=T+M-(F?I+1:I-1),j=n(m,M,v,U,E),W=M-j,q=U-j,J=W+1,Se=q+1;w.nChangePreceding=h-1,h-1===J+Se-m-v?(w.aEndPreceding=m,w.bEndPreceding=v):(w.aEndPreceding=J,w.bEndPreceding=Se),w.nCommonPreceding=j,j!==0&&(w.aCommonPreceding=J,w.bCommonPreceding=Se),w.nCommonFollowing=K,K!==0&&(w.aCommonFollowing=B+1,w.bCommonFollowing=N+1);let ke=H+1,X=N+K+1;return w.nChangeFollowing=h-1,h-1===b+y-ke-X?(w.aStartFollowing=b,w.bStartFollowing=y):(w.aStartFollowing=ke,w.bStartFollowing=X),!0}}}return!1},l=(h,m,b,v,y,E,S,$,C,_,w)=>{let T=y-b,D=b-m,P=y-v-D,x=P-h,k=P+h,L=t,A=h<_?h:_;for(let O=0,I=h;O<=A;O+=1,I-=2){let F=O===0||O!==h&&C[O]<L,M=F?C[O]:L,B=F?M:M-1,N=T+B-I,K=n(m,B-1,v,N-1,E),H=B-K;if(L=C[O],C[O]=H,x<=I&&I<=k){let G=(h+(I-P))/2;if(G<=$&&H-1<=S[G]){let U=N-K;if(w.nChangePreceding=h,h===H+U-m-v?(w.aEndPreceding=m,w.bEndPreceding=v):(w.aEndPreceding=H,w.bEndPreceding=U),w.nCommonPreceding=K,K!==0&&(w.aCommonPreceding=H,w.bCommonPreceding=U),w.nChangeFollowing=h-1,h===1)w.nCommonFollowing=0,w.aStartFollowing=b,w.bStartFollowing=y;else{let j=T+M-(F?I-1:I+1),W=r(M,b,j,y,E);w.nCommonFollowing=W,W!==0&&(w.aCommonFollowing=M,w.bCommonFollowing=j);let q=M+W,J=j+W;h-1===b+y-q-J?(w.aStartFollowing=b,w.bStartFollowing=y):(w.aStartFollowing=q,w.bStartFollowing=J)}return!0}}}return!1},s=(h,m,b,v,y,E,S,$,C)=>{let _=v-m,w=y-b,T=b-m,D=y-v,P=D-T,x=T,k=T;if(S[0]=m-1,$[0]=b,P%2===0){let L=(h||P)/2,A=(T+D)/2;for(let O=1;O<=A;O+=1)if(x=o(O,b,y,_,E,S,x),O<L)k=i(O,m,v,w,E,$,k);else if(l(O,m,b,v,y,E,S,x,$,k,C))return}else{let L=((h||P)+1)/2,A=(T+D+1)/2,O=1;for(x=o(O,b,y,_,E,S,x),O+=1;O<=A;O+=1)if(k=i(O-1,m,v,w,E,$,k),O<L)x=o(O,b,y,_,E,S,x);else if(a(O,m,b,v,y,E,S,x,$,k,C))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${b} bStart=${v} bEnd=${y}`)},u=(h,m,b,v,y,E,S,$,C,_)=>{if(y-v<b-m){if(E=!E,E&&S.length===1){let{foundSubsequence:G,isCommon:U}=S[0];S[1]={foundSubsequence:(j,W,q)=>{G(j,q,W)},isCommon:(j,W)=>U(W,j)}}let K=m,H=b;m=v,b=y,v=K,y=H}let{foundSubsequence:w,isCommon:T}=S[E?1:0];s(h,m,b,v,y,T,$,C,_);let{nChangePreceding:D,aEndPreceding:P,bEndPreceding:x,nCommonPreceding:k,aCommonPreceding:L,bCommonPreceding:A,nCommonFollowing:O,aCommonFollowing:I,bCommonFollowing:F,nChangeFollowing:M,aStartFollowing:B,bStartFollowing:N}=_;m<P&&v<x&&u(D,m,P,v,x,E,S,$,C,_),k!==0&&w(k,L,A),O!==0&&w(O,I,F),B<b&&N<y&&u(M,B,b,N,y,E,S,$,C,_)},c=(h,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${h} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${h} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${h} value ${m} is a negative integer`)},d=(h,m)=>{let b=typeof m;if(b!=="function")throw new TypeError(`${e}: ${h} typeof ${b} is not a function`)};function f(h,m,b,v){c("aLength",h),c("bLength",m),d("isCommon",b),d("foundSubsequence",v);let y=r(0,h,0,m,b);if(y!==0&&v(y,0,0),h!==y||m!==y){let E=y,S=y,$=n(E,h-1,S,m-1,b),C=h-$,_=m-$,w=y+$;h!==w&&m!==w&&u(0,E,C,S,_,!1,[{foundSubsequence:v,isCommon:b}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),$!==0&&v($,C,_)}}return ko}var xC=$C(),R0=pC(xC);function wC(e,t){return e.replace(/\s+$/,r=>t(r))}function uc(e,t,r,n,o,i){return e.length!==0?r(`${n} ${wC(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function O0(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return uc(e,t,r,n,o,i)}function P0(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return uc(e,t,r,n,o,i)}function I0(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return uc(e,t,r,n,o,i)}function Cf(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function CC(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,l=0,s=0;for(;s!==r;){let $=s;for(;s!==r&&e[s][0]===Ee;)s+=1;if($!==s)if($===0)s>n&&(i-=s-n,a=!0);else if(s===r){let C=s-$;C>n&&(i-=C-n,a=!0)}else{let C=s-$;C>o&&(i-=C-o,l+=1)}for(;s!==r&&e[s][0]!==Ee;)s+=1}let u=l!==0||a;l!==0?i+=l+1:a&&(i+=1);let c=i-1,d=[],f=0;u&&d.push("");let h=0,m=0,b=0,v=0,y=$=>{let C=d.length;d.push(I0($,C===0||C===c,t)),b+=1,v+=1},E=$=>{let C=d.length;d.push(O0($,C===0||C===c,t)),b+=1},S=$=>{let C=d.length;d.push(P0($,C===0||C===c,t)),v+=1};for(s=0;s!==r;){let $=s;for(;s!==r&&e[s][0]===Ee;)s+=1;if($!==s)if($===0){s>n&&($=s-n,h=$,m=$,b=h,v=m);for(let C=$;C!==s;C+=1)y(e[C][1])}else if(s===r){let C=s-$>n?$+n:s;for(let _=$;_!==C;_+=1)y(e[_][1])}else{let C=s-$;if(C>o){let _=$+n;for(let T=$;T!==_;T+=1)y(e[T][1]);d[f]=Cf(h,b,m,v,t),f=d.length,d.push("");let w=C-o;h=b+w,m=v+w,b=h,v=m;for(let T=s-n;T!==s;T+=1)y(e[T][1])}else for(let _=$;_!==s;_+=1)y(e[_][1])}for(;s!==r&&e[s][0]===Be;)E(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Ie;)S(e[s][1]),s+=1}return u&&(d[f]=Cf(h,b,m,v,t)),d.join(`
8
+ `)}function _C(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case Be:return O0(i,a,t);case Ie:return P0(i,a,t);default:return I0(i,a,t)}}).join(`
9
+ `)}var za=e=>e,F0=5,TC=0;function AC(){return{aAnnotation:"Expected",aColor:qt.green,aIndicator:"-",bAnnotation:"Received",bColor:qt.red,bIndicator:"+",changeColor:qt.inverse,changeLineTrailingSpaceColor:za,commonColor:qt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:za,compareKeys:void 0,contextLines:F0,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:qt.yellow,printBasicPrototype:!1,truncateThreshold:TC,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:za}}function DC(e){return e&&typeof e=="function"?e:void 0}function RC(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:F0}function Br(e={}){return{...AC(),...e,compareKeys:DC(e.compareKeys),contextLines:RC(e.contextLines)}}function Qr(e){return e.length===1&&e[0].length===0}function OC(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Be:t+=1;break;case Ie:r+=1;break}}),{a:t,b:r}}function PC({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(a){let h=String(s.a),m=String(s.b),b=n.length-e.length,v=" ".repeat(Math.max(0,b)),y=" ".repeat(Math.max(0,-b)),E=m.length-h.length,S=" ".repeat(Math.max(0,E)),$=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${S}${h}`,c=`${y} ${i} ${$}${m}`}let d=`${r} ${e}${u}`,f=`${i} ${n}${c}`;return`${t(d)}
10
+ ${o(f)}
11
+
12
+ `}function cc(e,t,r){return PC(r,OC(e))+(r.expand?_C(e,r):CC(e,r))+(t?r.truncateAnnotationColor(`
13
+ ${r.truncateAnnotation}`):"")}function Vi(e,t,r){let n=Br(r),[o,i]=L0(Qr(e)?[]:e,Qr(t)?[]:t,n);return cc(o,i,n)}function IC(e,t,r,n,o){if(Qr(e)&&Qr(r)&&(e=[],r=[]),Qr(t)&&Qr(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Vi(e,t,o);let[i,a]=L0(r,n,o),l=0,s=0;return i.forEach(u=>{switch(u[0]){case Be:u[1]=e[l],l+=1;break;case Ie:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),cc(i,a,Br(o))}function L0(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,l=i!==e.length||a!==t.length,s=(f,h)=>e[f]===t[h],u=[],c=0,d=0;for(R0(i,a,s,(f,h,m)=>{for(;c!==h;c+=1)u.push(new ye(Be,e[c]));for(;d!==m;d+=1)u.push(new ye(Ie,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new ye(Ee,t[d]))});c!==i;c+=1)u.push(new ye(Be,e[c]));for(;d!==a;d+=1)u.push(new ye(Ie,t[d]));return[u,l]}function _f(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function Tf(e){return e.includes(`\r
14
+ `)?`\r
15
+ `:`
16
+ `}function FC(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,a=t.length;if(n){let f=e.includes(`
17
+ `),h=t.includes(`
18
+ `),m=Tf(e),b=Tf(t),v=f?`${e.split(m,o).join(m)}
19
+ `:e,y=h?`${t.split(b,o).join(b)}
20
+ `:t;i=v.length,a=y.length}let l=i!==e.length||a!==t.length,s=(f,h)=>e[f]===t[h],u=0,c=0,d=[];return R0(i,a,s,(f,h,m)=>{u!==h&&d.push(new ye(Be,e.slice(u,h))),c!==m&&d.push(new ye(Ie,t.slice(c,m))),u=h+f,c=m+f,d.push(new ye(Ee,t.slice(m,c)))}),u!==i&&d.push(new ye(Be,e.slice(u))),c!==a&&d.push(new ye(Ie,t.slice(c))),[d,l]}function LC(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ee?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Af=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new ye(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new ye(this.op,LC(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ye(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
21
+ `)){let r=t.split(`
22
+ `),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},kC=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
23
+ `)){let n=r.split(`
24
+ `),o=n.length-1;n.forEach((i,a)=>{if(a===0){let l=new ye(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new ye(t,i)):i.length!==0&&this.pushDiffChangeLines(new ye(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function NC(e,t){let r=new Af(Be,t),n=new Af(Ie,t),o=new kC(r,n);return e.forEach(i=>{switch(i[0]){case Be:r.align(i);break;case Ie:n.align(i);break;default:o.align(i)}}),o.getLines()}function MC(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ee&&(o!==r||n[1]!==`
25
+ `))}return e.some(r=>r[0]===Ee)}function BC(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
26
+ `)||t.includes(`
27
+ `),[o,i]=k0(n?`${e}
28
+ `:e,n?`${t}
29
+ `:t,!0,r);if(MC(o,n)){let a=Br(r),l=NC(o,a.changeColor);return cc(l,i,a)}}return Vi(e.split(`
30
+ `),t.split(`
31
+ `),r)}function k0(e,t,r,n){let[o,i]=FC(e,t,n);return yC(o),[o,i]}function Vs(e,t){let{commonColor:r}=Br(t);return r(e)}var{AsymmetricMatcher:jC,DOMCollection:HC,DOMElement:UC,Immutable:KC,ReactElement:zC,ReactTestComponent:GC}=sc,N0=[GC,zC,UC,HC,KC,jC,sc.Error],qs={maxDepth:20,plugins:N0},M0={callToJSON:!1,maxDepth:8,plugins:N0};function WC(e,t,r){if(Object.is(e,t))return"";let n=_f(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==_f(t)){let a=function(S){return S.length<=v?S:`${S.slice(0,v)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=Br(r),h=Ys(M0,r),m=It(e,h),b=It(t,h),v=1e5;m=a(m),b=a(b);let y=`${s(`${u} ${l}:`)}
32
+ ${m}`,E=`${d(`${f} ${c}:`)}
33
+ ${b}`;return`${y}
34
+
35
+ ${E}`}if(!i)switch(n){case"string":return Vi(e.split(`
36
+ `),t.split(`
37
+ `),r);case"boolean":case"number":return VC(e,t,r);case"map":return Ga(Df(e),Df(t),r);case"set":return Ga(Rf(e),Rf(t),r);default:return Ga(e,t,r)}}function VC(e,t,r){let n=It(e,qs),o=It(t,qs);return n===o?"":Vi(n.split(`
38
+ `),o.split(`
39
+ `),r)}function Df(e){return new Map(Array.from(e.entries()).sort())}function Rf(e){return new Set(Array.from(e.values()).sort())}function Ga(e,t,r){let n,o=!1;try{let a=Ys(qs,r);n=Of(e,t,a,r)}catch{o=!0}let i=Vs(D0,r);if(n===void 0||n===i){let a=Ys(M0,r);n=Of(e,t,a,r),n!==i&&!o&&(n=`${Vs(SC,r)}
40
+
41
+ ${n}`)}return n}function Ys(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Br(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Of(e,t,r,n){let o={...r,indent:0},i=It(e,o),a=It(t,o);if(i===a)return Vs(D0,n);{let l=It(e,r),s=It(t,r);return IC(l.split(`
42
+ `),s.split(`
43
+ `),i.split(`
44
+ `),a.split(`
45
+ `),n)}}var Pf=2e4;function If(e){return Gs(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Ff(e,t){let r=Gs(e),n=Gs(t);return r===n&&(r==="Object"||r==="Array")}function qC(e,t,r){let{aAnnotation:n,bAnnotation:o}=Br(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Pf&&e.length<=Pf&&t!==e){if(t.includes(`
46
+ `)||e.includes(`
47
+ `))return BC(t,e,r);let[u]=k0(t,e),c=u.some(m=>m[0]===Ee),d=YC(n,o),f=d(n)+ZC(Lf(u,Be,c)),h=d(o)+JC(Lf(u,Ie,c));return`${f}
48
+ ${h}`}let i=vf(t,{forceWritable:!0}),a=vf(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=B0(a,i);return WC(l,s,r)}function B0(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Ff(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),C0(t).forEach(o=>{let i=t[o],a=e[o];if(If(i))i.asymmetricMatch(a)&&(e[o]=i);else if(If(a))a.asymmetricMatch(i)&&(t[o]=a);else if(Ff(a,i)){let l=B0(a,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function YC(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var XC="·";function j0(e){return e.replace(/\s+$/gm,t=>XC.repeat(t.length))}function JC(e){return qt.red(j0(io(e)))}function ZC(e){return qt.green(j0(io(e)))}function Lf(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ee?o[1]:o[0]===t?r?qt.inverse(o[1]):o[1]:""),"")}var QC="@@__IMMUTABLE_RECORD__@@",e_="@@__IMMUTABLE_ITERABLE__@@";function t_(e){return e&&(e[e_]||e[QC])}var r_=Object.getPrototypeOf({});function kf(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function lr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&No(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&No(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&No(()=>r.name??(r.name=e.name)),e.cause!=null&&No(()=>r.cause??(r.cause=lr(e.cause,t)))),lr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(t_(e))return lr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${fC(e.sample)}`;if(typeof e.toJSON=="function")return lr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=lr(n,t)}catch(i){r[o]=kf(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==r_;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=lr(e[o],t)}catch(i){delete r[o],r[o]=kf(i)}}),n=Object.getPrototypeOf(n);return r}}function No(e){try{return e()}catch{}}function n_(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function H0(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=qC(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=io(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=io(n.actual,10));try{typeof n.message=="string"&&(n.message=n_(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=H0(n.cause,t,r))}catch{}try{return lr(n)}catch(o){return lr(new Error(`Failed to fully serialize error: ${o?.message}
49
+ Inner error message: ${n?.message}`))}}const{once:o_}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Nf,SET_CURRENT_STORY:i_,STORY_RENDER_PHASE_CHANGED:a_}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ut}=__STORYBOOK_MODULE_GLOBAL__;var Wa=globalThis.__STORYBOOK_ADDONS_PREVIEW,l_=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Mf=e=>Object.prototype.toString.call(e)==="[object Object]",s_=e=>Object.prototype.toString.call(e)==="[object Module]",u_=e=>{if(!Mf(e)&&!s_(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Mf(t)},c_=e=>{try{return new e.constructor}catch{return{}}},Va=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Bf=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},d_=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=ut.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{ut.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...Va(),...Bf(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{if(u||!c.length)return{playUntil:u};let f=d.findIndex(h=>h.id===c[0].callId);return{playUntil:d.slice(0,f).filter(h=>h.interceptable&&!h.ancestors?.length).slice(-1)[0]?.id}}),l.emit(Nf,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{let u=this.getLog(s).filter(d=>!d.ancestors?.length),c=u.reduceRight((d,f,h)=>d>=0||f.status==="waiting"?d:h,-1);t(l)({storyId:s,playUntil:u[c-1]?.callId})},n=l=>({storyId:s,callId:u})=>{let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),h=c.find(({id:b})=>b===u),m=d.find(({id:b})=>b===u);if(!h&&m&&Object.values(f).length>0){let b=this.getLog(s).find(v=>v.status==="waiting")?.callId;m.id!==b&&this.setState(s,{playUntil:m.id}),Object.values(f).forEach(v=>v())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(c=>c());else{let c=this.getLog(s).find(d=>d.status==="waiting")?.callId;c?t(l)({storyId:s,playUntil:c}):i({storyId:s})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},a=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};Wa&&Wa.ready().then(()=>{this.channel=Wa.getChannel(),this.channel.on(Nf,e),this.channel.on(a_,a),this.channel.on(i_,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Ut.START,t(this.channel)),this.channel.on(Ut.BACK,r(this.channel)),this.channel.on(Ut.GOTO,n(this.channel)),this.channel.on(Ut.NEXT,o(this.channel)),this.channel.on(Ut.END,i)})}getState(e){return this.state[e]||Va()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=Bf(n);return o&&(t[r]=Object.assign(Va(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Ut.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),a.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!u_(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,l)=>{let s=p_(e,l);if(typeof s?.get=="function"){if(s.configurable){let c=()=>s?.get?.bind(e)?.();Object.defineProperty(a,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return a}let u=e[l];return typeof u!="function"?(a[l]=this.instrument(u,{...t,path:o.concat(l)},r),a):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(a[l]=u,a):(a[l]=(...c)=>this.track(l,u,e,c,t),a[l].__originalFn__=u,Object.defineProperty(a[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(a[l],this.instrument({...u},{...t,path:o.concat(l)},r)),a)},n?e:c_(e))}track(e,t,r,n,o){let i=n?.[0]?.__storyId__||ut.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:l}=this.getState(i);this.setState(i,{cursor:a+1});let s=`${l.slice(-1)[0]||i} [${a}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,h={id:s,cursor:a,storyId:i,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},m=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,h,o);return this.instrument(m,{...o,mutate:!0,path:[{__callId__:h.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),l=o.has(r.id);return!i||l||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,l=(c,d,f)=>{if(f.includes(c))return"[Circular]";if(f=[...f,c],d>a)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(h=>l(h,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:h,message:m,stack:b}=c;return{__error__:{name:h,message:m,stack:b}}}if(c instanceof RegExp){let{flags:h,source:m}=c;return{__regexp__:{flags:h,source:m}}}if(c instanceof ut.window?.HTMLElement){let{prefix:h,localName:m,id:b,classList:v,innerText:y}=c,E=Array.from(v);return{__element__:{prefix:h,localName:m,id:b,classNames:E,innerText:y}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&c?.constructor?.name&&c?.constructor?.name!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([h,m])=>[h,l(m,++d,f)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{if(c instanceof Error){let{name:d,message:f,stack:h,callId:m=r.id}=c,{showDiff:b=void 0,diff:v=void 0,actual:y=void 0,expected:E=void 0}=c.name==="AssertionError"?H0(c):c,S={name:d,message:f,stack:h,callId:m,showDiff:b,diff:v,actual:y,expected:E};if(this.update({...s,status:"error",exception:S}),this.setState(r.storyId,$=>({callRefsByResult:new Map([...Array.from($.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(i==="played"&&!r.retain)throw l_;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||h_(f)||Object.keys(f).length?f:(...h)=>{let{cursor:m,ancestors:b}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...b,r.id]});let v=()=>this.setState(r.storyId,{cursor:m,ancestors:b}),y=!1;try{let E=f(...h);return E instanceof Promise?(y=!0,E.finally(v)):E}finally{y||v()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){this.channel?.emit(Ut.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting")?.callId,a=o.some(u=>u.status==="active");if(this.detached||r||a||o.length===0){let u={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(Ut.SYNC,u);return}let l=o.some(u=>u.status==="done"||u.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:i};this.channel?.emit(Ut.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function f_(e,t={}){try{let r=!1,n=!1;return ut.window?.location?.search?.includes("instrument=true")?r=!0:ut.window?.location?.search?.includes("instrument=false")&&(n=!0),ut.window?.parent===ut.window&&!r||n?e:(ut.window&&!ut.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(ut.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new d_),(ut.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return o_.warn(r),e}}function p_(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function h_(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var g_=pt({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return(function a(l,s,u){var c,d,f,h=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),h!=m||(c=n(l),d=n(s),c.length!=d.length||c.some(function(b){return!a(l[b],s[b],u)})))return!1;switch(h.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!a((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(f=0;f<l.length;f++)if((f in l||f in s)&&(f in l!=f in s||!a(l[f],s[f],u)))return!1;return!0;case"Object":return a(r(l),r(s),u);default:return!1}})(o,i,[])}})()}}),jf=wt(g_(),1),U0=e=>e.map(t=>typeof t<"u").filter(Boolean).length,m_=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(U0([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,jf.isEqual)(t,n);if(typeof o<"u")return!(0,jf.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},y_=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(U0([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return m_(e.if,i)},b_={};Le(b_,{argsEnhancers:()=>S_});var K0=(e,t)=>typeof t[e]>"u"&&!(e in t),v_=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[l,s])=>(K0(l,t)&&(a[l]=ec(l,{implicit:!0,id:n})),a),{})},E_=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(K0(i,t)&&(o[i]=ec(typeof a.action=="string"?a.action:i)),o),{})},S_=[E_,v_],$_={};Le($_,{loaders:()=>C_});const{onMockCall:x_}=__STORYBOOK_MODULE_TEST__;var Hf=!1,w_=e=>{let{parameters:t}=e;t?.actions?.disable||Hf||(x_((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>o.startsWith(i)))&&ec(o)(n)}),Hf=!0)},C_=[w_];const{useEffect:Uf}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:$t}=globalThis,__=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Kf=e=>{(Array.isArray(e)?e:[e]).forEach(T_)},T_=e=>{if(!$t)return;let t=$t.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},A_=(e,t)=>{if(!$t)return;let r=$t.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=$t.createElement("style");n.setAttribute("id",e),n.innerHTML=t,$t.head.appendChild(n)}},D_=(e,t,r)=>{if(!$t)return;let n=$t.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=$t.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=$t.getElementById(i);a?a.parentElement?.insertBefore(o,a):$t.head.appendChild(o)}},R_={cellSize:100,cellAmount:10,opacity:.8},zf="addon-backgrounds",Gf="addon-backgrounds-grid",O_=__()?"":"transition: background-color 0.3s;",P_=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=z$,disable:l,grid:s=R_}=n[zd]||{},u=r[zd]||{},c=typeof u=="string"?u:u?.value,d=c?a[c]:void 0,f=typeof d=="string"?d:d?.value||"transparent",h=typeof u=="string"?!1:u.grid||!1,m=!!d&&!l,b=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",y=n.layout===void 0||n.layout==="padded",E=o==="docs"?20:y?16:0,{cellAmount:S,cellSize:$,opacity:C,offsetX:_=E,offsetY:w=E}=s,T=o==="docs"?`${zf}-docs-${i}`:`${zf}-color`,D=o==="docs"?i:null;Uf(()=>{let x=`
50
+ ${b} {
51
+ background: ${f} !important;
52
+ ${O_}
53
+ }`;if(!m){Kf(T);return}D_(T,x,D)},[b,T,D,m,f]);let P=o==="docs"?`${Gf}-docs-${i}`:`${Gf}`;return Uf(()=>{if(!h){Kf(P);return}let x=[`${$*S}px ${$*S}px`,`${$*S}px ${$*S}px`,`${$}px ${$}px`,`${$}px ${$}px`].join(", "),k=`
54
+ ${v} {
55
+ background-size: ${x} !important;
56
+ background-position: ${_}px ${w}px, ${_}px ${w}px, ${_}px ${w}px, ${_}px ${w}px !important;
57
+ background-blend-mode: difference !important;
58
+ background-image: linear-gradient(rgba(130, 130, 130, ${C}) 1px, transparent 1px),
59
+ linear-gradient(90deg, rgba(130, 130, 130, ${C}) 1px, transparent 1px),
60
+ linear-gradient(rgba(130, 130, 130, ${C/2}) 1px, transparent 1px),
61
+ linear-gradient(90deg, rgba(130, 130, 130, ${C/2}) 1px, transparent 1px) !important;
62
+ }
63
+ `;A_(P,k)},[S,$,v,P,h,_,w,C]),e()};globalThis.FEATURES?.backgrounds;var{step:FK}=f_({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:Wf}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:I_}=__STORYBOOK_MODULE_CORE_EVENTS__;var Vf={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},F_="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),De=(e,t={},r)=>{let n=F_.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Mo=e=>Vf[e]&&De("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Vf[e].map(t=>De("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),L_=e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},k_=e=>e instanceof Function,Ln=new Map,mr=new Map,Bo=new Map,zt=e=>{let t=Symbol();return mr.set(t,[]),Ln.set(t,e),{get:()=>Ln.get(t),set:r=>{let n=Ln.get(t),o=k_(r)?r(n):r;o!==n&&(Ln.set(t,o),mr.get(t)?.forEach(i=>{Bo.get(i)?.(),Bo.set(i,i(o))}))},subscribe:r=>(mr.get(t)?.push(r),()=>{let n=mr.get(t);n&&mr.set(t,n.filter(o=>o!==r))}),teardown:()=>{mr.get(t)?.forEach(r=>{Bo.get(r)?.(),Bo.delete(r)}),mr.delete(t),Ln.delete(t)}}},qf=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let l of a){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((s?.selectors||[]).concat(i)))})}}}return r},N_=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),Yf=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},Xf=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<ir&&(o=o-Math.round((ir-a)/2),a=ir),i<ir&&(n=n-Math.round((ir-i)/2),i=ir),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+i&&s>=o&&s<=o+a},M_=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-i-a+u),h=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,d-h-i),h+i):Math.max(Math.min(n,d-h-i+s),h+i+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...f!==o&&{top:`${f}px`}})},Jf=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},B_=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},j_=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),he="storybook-highlights-menu",Zf="storybook-highlights-root",H_="storybook-root",U_=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=zt([]),n=zt(new Map),o=zt([]),i=zt(),a=zt(),l=zt([]),s=zt([]),u=zt(),c=zt(),d=t.getElementById(Zf);r.subscribe(()=>{d||(d=De("div",{id:Zf}),t.body.appendChild(d))}),r.subscribe(w=>{let T=t.getElementById(H_);if(!T)return;n.set(qf(w));let D=new MutationObserver(()=>n.set(qf(w)));return D.observe(T,{subtree:!0,childList:!0}),()=>{D.disconnect()}}),n.subscribe(w=>{let T=()=>requestAnimationFrame(()=>o.set(N_(w))),D=new ResizeObserver(T);D.observe(t.body),Array.from(w.keys()).forEach(x=>D.observe(x));let P=Array.from(t.body.querySelectorAll("*")).filter(x=>{let{overflow:k,overflowX:L,overflowY:A}=window.getComputedStyle(x);return["auto","scroll"].some(O=>[k,L,A].includes(O))});return P.forEach(x=>x.addEventListener("scroll",T)),()=>{D.disconnect(),P.forEach(x=>x.removeEventListener("scroll",T))}}),n.subscribe(w=>{let T=Array.from(w.keys()).filter(({style:P})=>P.position==="sticky"),D=()=>requestAnimationFrame(()=>{o.set(P=>P.map(x=>{if(T.includes(x.element)){let{top:k,left:L}=x.element.getBoundingClientRect();return{...x,top:k+window.scrollY,left:L+window.scrollX}}return x}))});return t.addEventListener("scroll",D),()=>t.removeEventListener("scroll",D)}),n.subscribe(w=>{l.set(T=>T.filter(({element:D})=>w.has(D)))}),l.subscribe(w=>{w.length?(c.set(T=>w.some(D=>D.element===T?.element)?T:void 0),u.set(T=>w.some(D=>D.element===T?.element)?T:void 0)):(c.set(void 0),u.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(w=>{w.forEach(({keyframes:T})=>{if(T){let D=f.get(T);D||(D=t.createElement("style"),D.setAttribute("data-highlight","keyframes"),f.set(T,D),t.head.appendChild(D)),D.innerHTML=T}}),f.forEach((T,D)=>{w.some(P=>P.keyframes===D)||(T.remove(),f.delete(D))})});let h=new Map(new Map);o.subscribe(w=>{w.forEach(T=>{let D=h.get(T.element);if(d&&!D){let P={popover:"manual","data-highlight-dimensions":`w${T.width.toFixed(0)}h${T.height.toFixed(0)}`,"data-highlight-coordinates":`x${T.left.toFixed(0)}y${T.top.toFixed(0)}`};D=d.appendChild(De("div",P,[De("div")])),h.set(T.element,D)}}),h.forEach((T,D)=>{w.some(({element:P})=>P===D)||(T.remove(),h.delete(D))})}),o.subscribe(w=>{let T=w.filter(P=>P.menu);if(!T.length)return;let D=P=>{requestAnimationFrame(()=>{let x=t.getElementById(he),k={x:P.pageX,y:P.pageY};if(x&&!Yf(x,k)){let L=T.filter(A=>{let O=h.get(A.element);return Xf(A,O,k)});i.set(L.length?k:void 0),l.set(L)}})};return t.addEventListener("click",D),()=>t.removeEventListener("click",D)});let m=()=>{let w=t.getElementById(he),T=a.get();!T||w&&Yf(w,T)||s.set(D=>{let P=o.get().filter(A=>{let O=h.get(A.element);return Xf(A,O,T)}),x=D.filter(A=>P.includes(A)),k=P.filter(A=>!D.includes(A)),L=D.length-x.length;return k.length||L?[...x,...k]:D})};a.subscribe(m),o.subscribe(m);let b=()=>{let w=c.get(),T=w?[w]:l.get(),D=T.length===1?T[0]:u.get(),P=i.get()!==void 0;o.get().forEach(x=>{let k=h.get(x.element);if(k){let L=D===x,A=P?D?L:T.includes(x):s.get()?.includes(x);Object.assign(k.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...x.styles,...A?x.hoverStyles:{},...L?x.focusStyles:{},position:getComputedStyle(x.element).position==="fixed"?"fixed":"absolute",zIndex:Gd-10,top:`${x.top}px`,left:`${x.left}px`,width:`${x.width}px`,height:`${x.height}px`,margin:0,padding:0,cursor:x.menu&&A?"pointer":"default",pointerEvents:x.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(k.children[0].style,{width:"100%",height:"100%",minHeight:`${ir}px`,minWidth:`${ir}px`,boxSizing:"content-box",padding:k.style.outlineWidth||"0px"}),Jf(k)}})};o.subscribe(b),l.subscribe(b),s.subscribe(b),u.subscribe(b),c.subscribe(b);let v=()=>{if(!d)return;let w=t.getElementById(he);if(w)w.innerHTML="";else{let x={id:he,popover:"manual"};w=d.appendChild(De("div",x)),d.appendChild(De("style",{},[`
64
+ #${he} {
65
+ position: absolute;
66
+ z-index: ${Gd};
67
+ width: 300px;
68
+ padding: 0px;
69
+ margin: 15px 0 0 0;
70
+ transform: translateX(-50%);
71
+ font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
72
+ font-size: 12px;
73
+ background: white;
74
+ border: none;
75
+ border-radius: 6px;
76
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
77
+ color: #2E3438;
78
+ }
79
+ #${he} ul {
80
+ list-style: none;
81
+ margin: 0;
82
+ padding: 0;
83
+ }
84
+ #${he} > ul {
85
+ max-height: 300px;
86
+ overflow-y: auto;
87
+ padding: 4px 0;
88
+ }
89
+ #${he} li {
90
+ padding: 0 4px;
91
+ margin: 0;
92
+ }
93
+ #${he} li > :not(ul) {
94
+ display: flex;
95
+ padding: 8px;
96
+ margin: 0;
97
+ align-items: center;
98
+ gap: 8px;
99
+ border-radius: 4px;
100
+ }
101
+ #${he} button {
102
+ width: 100%;
103
+ border: 0;
104
+ background: transparent;
105
+ color: inherit;
106
+ text-align: left;
107
+ font-family: inherit;
108
+ font-size: inherit;
109
+ }
110
+ #${he} button:focus-visible {
111
+ outline-color: #029CFD;
112
+ }
113
+ #${he} button:hover {
114
+ background: rgba(2, 156, 253, 0.07);
115
+ color: #029CFD;
116
+ cursor: pointer;
117
+ }
118
+ #${he} li code {
119
+ white-space: nowrap;
120
+ overflow: hidden;
121
+ text-overflow: ellipsis;
122
+ line-height: 16px;
123
+ font-size: 11px;
124
+ }
125
+ #${he} li svg {
126
+ flex-shrink: 0;
127
+ margin: 1px;
128
+ color: #73828C;
129
+ }
130
+ #${he} li > button:hover svg, #${he} li > button:focus-visible svg {
131
+ color: #029CFD;
132
+ }
133
+ #${he} .element-list li svg {
134
+ display: none;
135
+ }
136
+ #${he} li.selectable svg, #${he} li.selected svg {
137
+ display: block;
138
+ }
139
+ #${he} .menu-list {
140
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
141
+ }
142
+ #${he} .menu-list > li:not(:last-child) {
143
+ padding-bottom: 4px;
144
+ margin-bottom: 4px;
145
+ border-bottom: 1px solid rgba(38, 85, 115, 0.15);
146
+ }
147
+ #${he} .menu-items, #${he} .menu-items li {
148
+ padding: 0;
149
+ }
150
+ #${he} .menu-item {
151
+ display: flex;
152
+ }
153
+ #${he} .menu-item-content {
154
+ display: flex;
155
+ flex-direction: column;
156
+ flex-grow: 1;
157
+ }
158
+ `]))}let T=c.get(),D=T?[T]:l.get();if(D.length&&(w.style.position=getComputedStyle(D[0].element).position==="fixed"?"fixed":"absolute",w.appendChild(De("ul",{class:"element-list"},D.map(x=>{let k=D.length>1&&!!x.menu?.some(O=>O.some(I=>!I.selectors||I.selectors.some(F=>x.selectors.includes(F)))),L=k?{class:"selectable",onClick:()=>c.set(x),onMouseEnter:()=>u.set(x),onMouseLeave:()=>u.set(void 0)}:T?{class:"selected",onClick:()=>c.set(void 0)}:{},A=k||T;return De("li",L,[De(A?"button":"div",A?{type:"button"}:{},[T?Mo("chevronLeft"):null,De("code",{},[x.element.outerHTML]),k?Mo("chevronRight"):null])])})))),c.get()||l.get().length===1){let x=c.get()||l.get()[0],k=x.menu?.filter(L=>L.some(A=>!A.selectors||A.selectors.some(O=>x.selectors.includes(O))));k?.length&&w.appendChild(De("ul",{class:"menu-list"},k.map(L=>De("li",{},[De("ul",{class:"menu-items"},L.map(({id:A,title:O,description:I,iconLeft:F,iconRight:M,clickEvent:B})=>{let N=B&&(()=>e.emit(B,A,j_(x)));return De("li",{},[De(N?"button":"div",N?{class:"menu-item",type:"button",onClick:N}:{class:"menu-item"},[F?Mo(F):null,De("div",{class:"menu-item-content"},[De(I?"strong":"span",{},[O]),I&&De("span",{},[I])]),M?Mo(M):null])])}))]))))}let P=i.get();P?(Object.assign(w.style,{display:"block",left:`${w.style.position==="fixed"?P.x-window.scrollX:P.x}px`,top:`${w.style.position==="fixed"?P.y-window.scrollY:P.y}px`}),Jf(w),requestAnimationFrame(()=>M_(w,P,{topOffset:15,centered:!0}))):(B_(w),Object.assign(w.style,{display:"none"}))};l.subscribe(v),c.subscribe(v);let y=w=>{let T=L_(w);r.set(D=>{let P=T.id?D.filter(x=>x.id!==T.id):D;return T.selectors?.length?[...P,T]:P})},E=w=>{w&&r.set(T=>T.filter(D=>D.id!==w))},S=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},$,C=(w,T)=>{let D="scrollIntoView-highlight";clearTimeout($),E(D);let P=t.querySelector(w);if(!P){console.warn(`Cannot scroll into view: ${w} not found`);return}P.scrollIntoView({behavior:"smooth",block:"center",...T});let x=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(k=>[...k,{id:D,priority:1e3,selectors:[w],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${x} 3s linear forwards`},keyframes:`@keyframes ${x} {
159
+ 0% { outline: 2px solid #1EA7FD; }
160
+ 20% { outline: 2px solid #1EA7FD00; }
161
+ 40% { outline: 2px solid #1EA7FD; }
162
+ 60% { outline: 2px solid #1EA7FD00; }
163
+ 80% { outline: 2px solid #1EA7FD; }
164
+ 100% { outline: 2px solid #1EA7FD00; }
165
+ }`}]),$=setTimeout(()=>E(D),3500)},_=w=>{requestAnimationFrame(()=>a.set({x:w.pageX,y:w.pageY}))};t.body.addEventListener("mousemove",_),e.on(rx,y),e.on(nx,E),e.on(ox,S),e.on(ix,C),e.on(I_,({newPhase:w})=>{w==="loading"&&S()})};globalThis?.FEATURES?.highlight&&Wf?.ready&&Wf.ready().then(U_);const{useEffect:Qf}=__STORYBOOK_MODULE_PREVIEW_API__,{global:$i}=__STORYBOOK_MODULE_GLOBAL__;function z0(){let e=$i.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function K_(){let e=$i.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Us(t!=null);let{width:r,height:n}=z0();return Xs(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",$i.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Xs(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=$i.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Re={};function z_(){Re.canvas||(Re=K_())}function G0(){Re.context&&Re.context.clearRect(0,0,Re.width??0,Re.height??0)}function G_(e){G0(),e(Re.context)}function W_(){Us(Re.canvas),Us(Re.context),Xs(Re.canvas,Re.context,{width:0,height:0});let{width:e,height:t}=z0();Xs(Re.canvas,Re.context,{width:e,height:t}),Re.width=e,Re.height=t}function V_(){Re.canvas&&(G0(),Re.canvas.parentNode?.removeChild(Re.canvas),Re={})}const{global:St}=__STORYBOOK_MODULE_GLOBAL__;var Wr={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Yt=6;function ep(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function q_(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=a+r.left+t.left,c=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function Y_(e,t,{margin:r,border:n,padding:o},i,a){let l=f=>0,s=0,u=0,c=a?1:.5,d=a?i*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function X_(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function J_(e,t,r){return e==="top"?t.y=r.y-r.h-Yt:e==="right"?t.x=r.x+r.w/2+Yt+t.w/2:e==="bottom"?t.y=r.y+r.h+Yt:e==="left"&&(t.x=r.x-r.w/2-Yt-t.w/2),{x:t.x,y:t.y}}function W0(e,t,{x:r,y:n,w:o,h:i},a){return ep(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Wr[t]}dd`,e.fill(),e.strokeStyle=Wr[t],e.stroke(),e.fillStyle=Wr.text,e.fillText(a,r,n),ep(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Wr[t]}dd`,e.fill(),e.strokeStyle=Wr[t],e.stroke(),e.fillStyle=Wr.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function V0(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+Yt*2,i=n+Yt*2;return{w:o,h:i}}function Z_(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:l,y:s}=q_(n,t),{offsetX:u,offsetY:c}=Y_(r,n,t,Yt+1,a);l+=u,s+=c;let{w:d,h:f}=V0(e,o);if(i&&X_({x:l,y:s,w:d,h:f},i)){let h=J_(n,{x:l,y:s,w:d},i);l=h.x,s=h.y}return W0(e,r,{x:l,y:s,w:d,h:f},o)}function Q_(e,{w:t,h:r}){let n=t*.5+Yt,o=r*.5+Yt;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function eT(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],l=i[o.y],{w:s,h:u}=V0(e,n),{offsetX:c,offsetY:d}=Q_(o,{w:s,h:u});return a+=c,l+=d,W0(e,r,{x:a,y:l,w:s,h:u},n)}function kn(e,t,r,n){let o=[];r.forEach((i,a)=>{let l=n&&i.position==="center"?eT(e,t,i):Z_(e,t,i,o[a-1],n);o[a]=l})}function tT(e,t,r,n){let o=r.reduce((i,a)=>(Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),i[a.position]?.push(a),i),{});o.top&&kn(e,t,o.top,n),o.right&&kn(e,t,o.right,n),o.bottom&&kn(e,t,o.bottom,n),o.left&&kn(e,t,o.left,n),o.center&&kn(e,t,o.center,n)}var qi={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},tp=30;function at(e){return parseInt(e.replace("px",""),10)}function en(e){return Number.isInteger(e)?e:e.toFixed(2)}function dc(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function rT(e){let t={top:St.window.scrollY,bottom:St.window.scrollY+St.window.innerHeight,left:St.window.scrollX,right:St.window.scrollX+St.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function nT(e){let t=St.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:h,paddingLeft:m,paddingRight:b,borderBottomWidth:v,borderTopWidth:y,borderLeftWidth:E,borderRightWidth:S}=t;r=r+St.window.scrollY,n=n+St.window.scrollX,i=i+St.window.scrollY,o=o+St.window.scrollX;let $={top:at(s),bottom:at(u),left:at(c),right:at(d)},C={top:at(f),bottom:at(h),left:at(m),right:at(b)},_={top:at(y),bottom:at(v),left:at(E),right:at(S)},w={top:r-$.top,bottom:i+$.bottom,left:n-$.left,right:o+$.right};return{margin:$,padding:C,border:_,top:r,left:n,bottom:i,right:o,width:a,height:l,extremities:w,floatingAlignment:rT(w)}}function oT(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n+t.bottom+t.top;e.fillStyle=qi.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:en(t.top),position:"top"},{type:"margin",text:en(t.right),position:"right"},{type:"margin",text:en(t.bottom),position:"bottom"},{type:"margin",text:en(t.left),position:"left"}];return dc(u)}function iT(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=qi.padding,e.fillRect(a+r.left,i+r.top,u,t.top),e.fillRect(s-t.right-r.right,i+t.top+r.top,t.right,c),e.fillRect(a+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,c);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return dc(d)}function aT(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n-t.top-t.bottom;e.fillStyle=qi.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return dc(u)}function lT(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=qi.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,l,s),[{type:"content",position:"center",text:`${en(l)} x ${en(s)}`}]}function sT(e){return t=>{if(e&&t){let r=nT(e),n=oT(t,r),o=iT(t,r),i=aT(t,r),a=lT(t,r),l=r.width<=tp*3||r.height<=tp;tT(t,r,[...a,...o,...i,...n],l)}}}function uT(e){G_(sT(e))}const{global:cT}=__STORYBOOK_MODULE_GLOBAL__;var dT=(e,t)=>{let r=cT.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},rp,jo={x:0,y:0};function np(e,t){rp=dT(e,t),uT(rp)}var fT=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Qf(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),jo.x=o.clientX,jo.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Qf(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),np(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{W_()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),z_(),globalThis.window.addEventListener("resize",o),np(jo.x,jo.y)),()=>{globalThis.window.removeEventListener("resize",o),V_()}},[r,t.viewMode]),e()};globalThis.FEATURES?.measure;const{useEffect:pT,useMemo:hT}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ui}=__STORYBOOK_MODULE_GLOBAL__;var op=e=>{(Array.isArray(e)?e:[e]).forEach(gT)},gT=e=>{let t=typeof e=="string"?e:e.join(""),r=ui.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},mT=(e,t)=>{let r=ui.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ui.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ui.document.head.appendChild(n)}};function yT(e){return Et`
166
+ ${e} body {
167
+ outline: 1px solid #2980b9 !important;
168
+ }
169
+
170
+ ${e} article {
171
+ outline: 1px solid #3498db !important;
172
+ }
173
+
174
+ ${e} nav {
175
+ outline: 1px solid #0088c3 !important;
176
+ }
177
+
178
+ ${e} aside {
179
+ outline: 1px solid #33a0ce !important;
180
+ }
181
+
182
+ ${e} section {
183
+ outline: 1px solid #66b8da !important;
184
+ }
185
+
186
+ ${e} header {
187
+ outline: 1px solid #99cfe7 !important;
188
+ }
189
+
190
+ ${e} footer {
191
+ outline: 1px solid #cce7f3 !important;
192
+ }
193
+
194
+ ${e} h1 {
195
+ outline: 1px solid #162544 !important;
196
+ }
197
+
198
+ ${e} h2 {
199
+ outline: 1px solid #314e6e !important;
200
+ }
201
+
202
+ ${e} h3 {
203
+ outline: 1px solid #3e5e85 !important;
204
+ }
205
+
206
+ ${e} h4 {
207
+ outline: 1px solid #449baf !important;
208
+ }
209
+
210
+ ${e} h5 {
211
+ outline: 1px solid #c7d1cb !important;
212
+ }
213
+
214
+ ${e} h6 {
215
+ outline: 1px solid #4371d0 !important;
216
+ }
217
+
218
+ ${e} main {
219
+ outline: 1px solid #2f4f90 !important;
220
+ }
221
+
222
+ ${e} address {
223
+ outline: 1px solid #1a2c51 !important;
224
+ }
225
+
226
+ ${e} div {
227
+ outline: 1px solid #036cdb !important;
228
+ }
229
+
230
+ ${e} p {
231
+ outline: 1px solid #ac050b !important;
232
+ }
233
+
234
+ ${e} hr {
235
+ outline: 1px solid #ff063f !important;
236
+ }
237
+
238
+ ${e} pre {
239
+ outline: 1px solid #850440 !important;
240
+ }
241
+
242
+ ${e} blockquote {
243
+ outline: 1px solid #f1b8e7 !important;
244
+ }
245
+
246
+ ${e} ol {
247
+ outline: 1px solid #ff050c !important;
248
+ }
249
+
250
+ ${e} ul {
251
+ outline: 1px solid #d90416 !important;
252
+ }
253
+
254
+ ${e} li {
255
+ outline: 1px solid #d90416 !important;
256
+ }
257
+
258
+ ${e} dl {
259
+ outline: 1px solid #fd3427 !important;
260
+ }
261
+
262
+ ${e} dt {
263
+ outline: 1px solid #ff0043 !important;
264
+ }
265
+
266
+ ${e} dd {
267
+ outline: 1px solid #e80174 !important;
268
+ }
269
+
270
+ ${e} figure {
271
+ outline: 1px solid #ff00bb !important;
272
+ }
273
+
274
+ ${e} figcaption {
275
+ outline: 1px solid #bf0032 !important;
276
+ }
277
+
278
+ ${e} table {
279
+ outline: 1px solid #00cc99 !important;
280
+ }
281
+
282
+ ${e} caption {
283
+ outline: 1px solid #37ffc4 !important;
284
+ }
285
+
286
+ ${e} thead {
287
+ outline: 1px solid #98daca !important;
288
+ }
289
+
290
+ ${e} tbody {
291
+ outline: 1px solid #64a7a0 !important;
292
+ }
293
+
294
+ ${e} tfoot {
295
+ outline: 1px solid #22746b !important;
296
+ }
297
+
298
+ ${e} tr {
299
+ outline: 1px solid #86c0b2 !important;
300
+ }
301
+
302
+ ${e} th {
303
+ outline: 1px solid #a1e7d6 !important;
304
+ }
305
+
306
+ ${e} td {
307
+ outline: 1px solid #3f5a54 !important;
308
+ }
309
+
310
+ ${e} col {
311
+ outline: 1px solid #6c9a8f !important;
312
+ }
313
+
314
+ ${e} colgroup {
315
+ outline: 1px solid #6c9a9d !important;
316
+ }
317
+
318
+ ${e} button {
319
+ outline: 1px solid #da8301 !important;
320
+ }
321
+
322
+ ${e} datalist {
323
+ outline: 1px solid #c06000 !important;
324
+ }
325
+
326
+ ${e} fieldset {
327
+ outline: 1px solid #d95100 !important;
328
+ }
329
+
330
+ ${e} form {
331
+ outline: 1px solid #d23600 !important;
332
+ }
333
+
334
+ ${e} input {
335
+ outline: 1px solid #fca600 !important;
336
+ }
337
+
338
+ ${e} keygen {
339
+ outline: 1px solid #b31e00 !important;
340
+ }
341
+
342
+ ${e} label {
343
+ outline: 1px solid #ee8900 !important;
344
+ }
345
+
346
+ ${e} legend {
347
+ outline: 1px solid #de6d00 !important;
348
+ }
349
+
350
+ ${e} meter {
351
+ outline: 1px solid #e8630c !important;
352
+ }
353
+
354
+ ${e} optgroup {
355
+ outline: 1px solid #b33600 !important;
356
+ }
357
+
358
+ ${e} option {
359
+ outline: 1px solid #ff8a00 !important;
360
+ }
361
+
362
+ ${e} output {
363
+ outline: 1px solid #ff9619 !important;
364
+ }
365
+
366
+ ${e} progress {
367
+ outline: 1px solid #e57c00 !important;
368
+ }
369
+
370
+ ${e} select {
371
+ outline: 1px solid #e26e0f !important;
372
+ }
373
+
374
+ ${e} textarea {
375
+ outline: 1px solid #cc5400 !important;
376
+ }
377
+
378
+ ${e} details {
379
+ outline: 1px solid #33848f !important;
380
+ }
381
+
382
+ ${e} summary {
383
+ outline: 1px solid #60a1a6 !important;
384
+ }
385
+
386
+ ${e} command {
387
+ outline: 1px solid #438da1 !important;
388
+ }
389
+
390
+ ${e} menu {
391
+ outline: 1px solid #449da6 !important;
392
+ }
393
+
394
+ ${e} del {
395
+ outline: 1px solid #bf0000 !important;
396
+ }
397
+
398
+ ${e} ins {
399
+ outline: 1px solid #400000 !important;
400
+ }
401
+
402
+ ${e} img {
403
+ outline: 1px solid #22746b !important;
404
+ }
405
+
406
+ ${e} iframe {
407
+ outline: 1px solid #64a7a0 !important;
408
+ }
409
+
410
+ ${e} embed {
411
+ outline: 1px solid #98daca !important;
412
+ }
413
+
414
+ ${e} object {
415
+ outline: 1px solid #00cc99 !important;
416
+ }
417
+
418
+ ${e} param {
419
+ outline: 1px solid #37ffc4 !important;
420
+ }
421
+
422
+ ${e} video {
423
+ outline: 1px solid #6ee866 !important;
424
+ }
425
+
426
+ ${e} audio {
427
+ outline: 1px solid #027353 !important;
428
+ }
429
+
430
+ ${e} source {
431
+ outline: 1px solid #012426 !important;
432
+ }
433
+
434
+ ${e} canvas {
435
+ outline: 1px solid #a2f570 !important;
436
+ }
437
+
438
+ ${e} track {
439
+ outline: 1px solid #59a600 !important;
440
+ }
441
+
442
+ ${e} map {
443
+ outline: 1px solid #7be500 !important;
444
+ }
445
+
446
+ ${e} area {
447
+ outline: 1px solid #305900 !important;
448
+ }
449
+
450
+ ${e} a {
451
+ outline: 1px solid #ff62ab !important;
452
+ }
453
+
454
+ ${e} em {
455
+ outline: 1px solid #800b41 !important;
456
+ }
457
+
458
+ ${e} strong {
459
+ outline: 1px solid #ff1583 !important;
460
+ }
461
+
462
+ ${e} i {
463
+ outline: 1px solid #803156 !important;
464
+ }
465
+
466
+ ${e} b {
467
+ outline: 1px solid #cc1169 !important;
468
+ }
469
+
470
+ ${e} u {
471
+ outline: 1px solid #ff0430 !important;
472
+ }
473
+
474
+ ${e} s {
475
+ outline: 1px solid #f805e3 !important;
476
+ }
477
+
478
+ ${e} small {
479
+ outline: 1px solid #d107b2 !important;
480
+ }
481
+
482
+ ${e} abbr {
483
+ outline: 1px solid #4a0263 !important;
484
+ }
485
+
486
+ ${e} q {
487
+ outline: 1px solid #240018 !important;
488
+ }
489
+
490
+ ${e} cite {
491
+ outline: 1px solid #64003c !important;
492
+ }
493
+
494
+ ${e} dfn {
495
+ outline: 1px solid #b4005a !important;
496
+ }
497
+
498
+ ${e} sub {
499
+ outline: 1px solid #dba0c8 !important;
500
+ }
501
+
502
+ ${e} sup {
503
+ outline: 1px solid #cc0256 !important;
504
+ }
505
+
506
+ ${e} time {
507
+ outline: 1px solid #d6606d !important;
508
+ }
509
+
510
+ ${e} code {
511
+ outline: 1px solid #e04251 !important;
512
+ }
513
+
514
+ ${e} kbd {
515
+ outline: 1px solid #5e001f !important;
516
+ }
517
+
518
+ ${e} samp {
519
+ outline: 1px solid #9c0033 !important;
520
+ }
521
+
522
+ ${e} var {
523
+ outline: 1px solid #d90047 !important;
524
+ }
525
+
526
+ ${e} mark {
527
+ outline: 1px solid #ff0053 !important;
528
+ }
529
+
530
+ ${e} bdi {
531
+ outline: 1px solid #bf3668 !important;
532
+ }
533
+
534
+ ${e} bdo {
535
+ outline: 1px solid #6f1400 !important;
536
+ }
537
+
538
+ ${e} ruby {
539
+ outline: 1px solid #ff7b93 !important;
540
+ }
541
+
542
+ ${e} rt {
543
+ outline: 1px solid #ff2f54 !important;
544
+ }
545
+
546
+ ${e} rp {
547
+ outline: 1px solid #803e49 !important;
548
+ }
549
+
550
+ ${e} span {
551
+ outline: 1px solid #cc2643 !important;
552
+ }
553
+
554
+ ${e} br {
555
+ outline: 1px solid #db687d !important;
556
+ }
557
+
558
+ ${e} wbr {
559
+ outline: 1px solid #db175b !important;
560
+ }`}var bT=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[K$]),o=t.viewMode==="docs",i=hT(()=>yT(o?'[data-story-block="true"]':".sb-show-main"),[t]);return pT(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?mT(a,i):op(a),()=>{op(a)}},[n,i,t]),e()};globalThis.FEATURES?.outline;const{clearAllMocks:LK,fn:kK,isMockFunction:NK,resetAllMocks:MK,restoreAllMocks:BK,uninstrumentedUserEvent:jK,within:HK}=__STORYBOOK_MODULE_TEST__;var un=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),ip=(e,t)=>{let r=un(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Ho=(e,t)=>`${ip(e,"kind")}${t?`--${ip(t,"name")}`:""}`,Ct=e=>`control-${e.replace(/\s+/g,"-")}`,Yi=e=>`set-${e.replace(/\s+/g,"-")}`,qa={exports:{}},Ne={};var ap;function vT(){if(ap)return Ne;ap=1;var e=Wm();function t(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(s,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:s,containerInfo:u,implementation:c}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(s,u){if(s==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Ne.createPortal=function(s,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(s,u,null,c)},Ne.flushSync=function(s){var u=a.T,c=n.p;try{if(a.T=null,n.p=2,s)return s()}finally{a.T=u,n.p=c,n.d.f()}},Ne.preconnect=function(s,u){typeof s=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(s,u))},Ne.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},Ne.preinit=function(s,u){if(typeof s=="string"&&u&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,h=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(s,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:f,fetchPriority:h}):c==="script"&&n.d.X(s,{crossOrigin:d,integrity:f,fetchPriority:h,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ne.preinitModule=function(s,u){if(typeof s=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=l(u.as,u.crossOrigin);n.d.M(s,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(s)},Ne.preload=function(s,u){if(typeof s=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin);n.d.L(s,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ne.preloadModule=function(s,u){if(typeof s=="string")if(u){var c=l(u.as,u.crossOrigin);n.d.m(s,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(s)},Ne.requestFormReset=function(s){n.d.r(s)},Ne.unstable_batchedUpdates=function(s,u){return s(u)},Ne.useFormState=function(s,u,c){return a.H.useFormState(s,u,c)},Ne.useFormStatus=function(){return a.H.useHostTransitionStatus()},Ne.version="19.2.0",Ne}var lp;function ET(){if(lp)return qa.exports;lp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qa.exports=vT(),qa.exports}var vo=ET();const q0=Vm(vo);var Ya={exports:{}},Nn={};var sp;function ST(){if(sp)return Nn;sp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return Nn.Fragment=t,Nn.jsx=r,Nn.jsxs=r,Nn}var up;function $T(){return up||(up=1,Ya.exports=ST()),Ya.exports}var oe=$T(),xT=R.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Y0=R.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Y0.displayName="ActionButton";var X0=({actionItems:e,...t})=>g.createElement(xT,{...t},e.map(({title:r,className:n,onClick:o,disabled:i},a)=>g.createElement(Y0,{key:a,className:n,onClick:o,disabled:!!i},r)));function wT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function J0(...e){return t=>e.forEach(r=>wT(r,t))}function jr(...e){return p.useCallback(J0(...e),e)}var Z0=p.forwardRef((e,t)=>{let{children:r,...n}=e,o=p.Children.toArray(r),i=o.find(_T);if(i){let a=i.props.children,l=o.map(s=>s===i?p.Children.count(a)>1?p.Children.only(null):p.isValidElement(a)?a.props.children:null:s);return oe.jsx(Js,{...n,ref:t,children:p.isValidElement(a)?p.cloneElement(a,void 0,l):null})}return oe.jsx(Js,{...n,ref:t,children:r})});Z0.displayName="Slot";var Js=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){let o=AT(r);return p.cloneElement(r,{...TT(n,r.props),ref:t?J0(t,o):o})}return p.Children.count(r)>1?p.Children.only(null):null});Js.displayName="SlotClone";var CT=({children:e})=>oe.jsx(oe.Fragment,{children:e});function _T(e){return p.isValidElement(e)&&e.type===CT}function TT(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function AT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var DT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Eo=DT.reduce((e,t)=>{let r=p.forwardRef((n,o)=>{let{asChild:i,...a}=n,l=i?Z0:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),oe.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Zs=globalThis?.document?p.useLayoutEffect:()=>{};function RT(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var So=e=>{let{present:t,children:r}=e,n=OT(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=jr(n.ref,PT(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:i}):null};So.displayName="Presence";function OT(e){let[t,r]=p.useState(),n=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[l,s]=RT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{let u=Uo(n.current);i.current=l==="mounted"?u:"none"},[l]),Zs(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,f=Uo(u);e?s("MOUNT"):f==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Zs(()=>{if(t){let u=d=>{let f=Uo(n.current).includes(d.animationName);d.target===t&&f&&vo.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=Uo(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Uo(e){return e?.animationName||"none"}function PT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function IT(e,t=[]){let r=[];function n(i,a){let l=p.createContext(a),s=r.length;r=[...r,a];function u(d){let{scope:f,children:h,...m}=d,b=f?.[e][s]||l,v=p.useMemo(()=>m,Object.values(m));return oe.jsx(b.Provider,{value:v,children:h})}function c(d,f){let h=f?.[e][s]||l,m=p.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>p.createContext(a));return function(a){let l=a?.[e]||i;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,FT(o,...t)]}function FT(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...a,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Tr(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}var LT=p.createContext(void 0);function kT(e){let t=p.useContext(LT);return e||t||"ltr"}function NT(e,[t,r]){return Math.min(r,Math.max(t,e))}function Pr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function MT(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var fc="ScrollArea",[Q0]=IT(fc),[BT,ht]=Q0(fc),ey=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[l,s]=p.useState(null),[u,c]=p.useState(null),[d,f]=p.useState(null),[h,m]=p.useState(null),[b,v]=p.useState(null),[y,E]=p.useState(0),[S,$]=p.useState(0),[C,_]=p.useState(!1),[w,T]=p.useState(!1),D=jr(t,x=>s(x)),P=kT(o);return oe.jsx(BT,{scope:r,type:n,dir:P,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:C,onScrollbarXEnabledChange:_,scrollbarY:b,onScrollbarYChange:v,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:E,onCornerHeightChange:$,children:oe.jsx(Eo.div,{dir:P,...a,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});ey.displayName=fc;var ty="ScrollAreaViewport",ry=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,l=ht(ty,r),s=p.useRef(null),u=jr(t,s,l.onViewportChange);return oe.jsxs(oe.Fragment,{children:[oe.jsx("style",{dangerouslySetInnerHTML:{__html:`
561
+ [data-radix-scroll-area-viewport] {
562
+ scrollbar-width: none;
563
+ -ms-overflow-style: none;
564
+ -webkit-overflow-scrolling: touch;
565
+ }
566
+ [data-radix-scroll-area-viewport]::-webkit-scrollbar {
567
+ display: none;
568
+ }
569
+ :where([data-radix-scroll-area-viewport]) {
570
+ display: flex;
571
+ flex-direction: column;
572
+ align-items: stretch;
573
+ }
574
+ :where([data-radix-scroll-area-content]) {
575
+ flex-grow: 1;
576
+ }
577
+ `},nonce:i}),oe.jsx(Eo.div,{"data-radix-scroll-area-viewport":"",...a,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:YT({asChild:o,children:n},c=>oe.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});ry.displayName=ty;var Mt="ScrollAreaScrollbar",ny=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ht(Mt,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,l=e.orientation==="horizontal";return p.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),o.type==="hover"?oe.jsx(jT,{...n,ref:t,forceMount:r}):o.type==="scroll"?oe.jsx(HT,{...n,ref:t,forceMount:r}):o.type==="auto"?oe.jsx(oy,{...n,ref:t,forceMount:r}):o.type==="always"?oe.jsx(pc,{...n,ref:t}):null});ny.displayName=Mt;var jT=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ht(Mt,e.__scopeScrollArea),[i,a]=p.useState(!1);return p.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),a(!0)},c=()=>{s=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),oe.jsx(So,{present:r||i,children:oe.jsx(oy,{"data-state":i?"visible":"hidden",...n,ref:t})})}),HT=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ht(Mt,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Ji(()=>s("SCROLL_END"),100),[l,s]=MT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),p.useEffect(()=>{let u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let h=u[c];d!==h&&(s("SCROLL"),a()),d=h};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,s,a]),oe.jsx(So,{present:r||l!=="hidden",children:oe.jsx(pc,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Pr(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Pr(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),oy=p.forwardRef((e,t)=>{let r=ht(Mt,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,a]=p.useState(!1),l=e.orientation==="horizontal",s=Ji(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?u:c)}},10);return cn(r.viewport,s),cn(r.content,s),oe.jsx(So,{present:n||i,children:oe.jsx(pc,{"data-state":i?"visible":"hidden",...o,ref:t})})}),pc=p.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=ht(Mt,e.__scopeScrollArea),i=p.useRef(null),a=p.useRef(0),[l,s]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uy(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,h){return VT(f,a.current,l,h)}return r==="horizontal"?oe.jsx(UT,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let f=o.viewport.scrollLeft,h=cp(f,l,o.dir);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?oe.jsx(KT,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let f=o.viewport.scrollTop,h=cp(f,l);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),UT=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=ht(Mt,e.__scopeScrollArea),[a,l]=p.useState(),s=p.useRef(null),u=jr(t,s,i.onScrollbarXChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),oe.jsx(ay,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xi(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(i.viewport){let f=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),dy(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:wi(a.paddingLeft),paddingEnd:wi(a.paddingRight)}})}})}),KT=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=ht(Mt,e.__scopeScrollArea),[a,l]=p.useState(),s=p.useRef(null),u=jr(t,s,i.onScrollbarYChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),oe.jsx(ay,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xi(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(i.viewport){let f=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),dy(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:wi(a.paddingTop),paddingEnd:wi(a.paddingBottom)}})}})}),[zT,iy]=Q0(Mt),ay=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=ht(Mt,r),[m,b]=p.useState(null),v=jr(t,D=>b(D)),y=p.useRef(null),E=p.useRef(""),S=h.viewport,$=n.content-n.viewport,C=Tr(c),_=Tr(s),w=Ji(d,10);function T(D){if(y.current){let P=D.clientX-y.current.left,x=D.clientY-y.current.top;u({x:P,y:x})}}return p.useEffect(()=>{let D=P=>{let x=P.target;m?.contains(x)&&C(P,$)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[S,m,$,C]),p.useEffect(_,[n,_]),cn(m,w),cn(h.content,w),oe.jsx(zT,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:Tr(i),onThumbPointerUp:Tr(a),onThumbPositionChange:_,onThumbPointerDown:Tr(l),children:oe.jsx(Eo.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:Pr(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),y.current=m.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),T(D))}),onPointerMove:Pr(e.onPointerMove,T),onPointerUp:Pr(e.onPointerUp,D=>{let P=D.target;P.hasPointerCapture(D.pointerId)&&P.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=E.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null})})})}),xi="ScrollAreaThumb",ly=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=iy(xi,e.__scopeScrollArea);return oe.jsx(So,{present:r||o.hasThumb,children:oe.jsx(GT,{ref:t,...n})})}),GT=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=ht(xi,r),a=iy(xi,r),{onThumbPositionChange:l}=a,s=jr(t,d=>a.onThumbChange(d)),u=p.useRef(),c=Ji(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{let d=i.viewport;if(d){let f=()=>{if(c(),!u.current){let h=qT(d,l);u.current=h,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,c,l]),oe.jsx(Eo.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Pr(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),h=d.clientX-f.left,m=d.clientY-f.top;a.onThumbPointerDown({x:h,y:m})}),onPointerUp:Pr(e.onPointerUp,a.onThumbPointerUp)})});ly.displayName=xi;var hc="ScrollAreaCorner",sy=p.forwardRef((e,t)=>{let r=ht(hc,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?oe.jsx(WT,{...e,ref:t}):null});sy.displayName=hc;var WT=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=ht(hc,r),[i,a]=p.useState(0),[l,s]=p.useState(0),u=!!(i&&l);return cn(o.scrollbarX,()=>{let c=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(c),s(c)}),cn(o.scrollbarY,()=>{let c=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(c),a(c)}),u?oe.jsx(Eo.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function wi(e){return e?parseInt(e,10):0}function uy(e,t){let r=e/t;return isNaN(r)?0:r}function Xi(e){let t=uy(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function VT(e,t,r,n="ltr"){let o=Xi(r),i=o/2,a=t||i,l=o-a,s=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return cy([s,u],d)(e)}function cp(e,t,r="ltr"){let n=Xi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=i-n,s=r==="ltr"?[0,a]:[a*-1,0],u=NT(e,s);return cy([0,a],[0,l])(u)}function cy(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function dy(e,t){return e>0&&e<t}var qT=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,l=r.top!==i.top;(a||l)&&t(),r=i,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function Ji(e,t){let r=Tr(e),n=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function cn(e,t){let r=Tr(t);Zs(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function YT(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=p.Children.only(n);return p.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var XT=ey,JT=ry,ZT=ny,QT=ly,eA=sy,tA=R(XT)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),rA=R(JT)({width:"100%",height:"100%"}),dp=R(ZT)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),fp=R(QT)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),gc=p.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:i=0,className:a},l)=>g.createElement(tA,{scrollbarsize:o,offset:n,className:a},g.createElement(rA,{ref:l,style:{scrollPadding:i}},e),t&&g.createElement(dp,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},g.createElement(fp,null)),r&&g.createElement(dp,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},g.createElement(fp,null)),t&&r&&g.createElement(eA,null)));gc.displayName="ScrollArea";const{global:nA}=__STORYBOOK_MODULE_GLOBAL__;var{document:Mn,window:Qs}=nA;async function oA(e){try{await Qs.top?.navigator.clipboard.writeText(e)}catch{await Qs.navigator.clipboard.writeText(e)}}async function iA(e){let t=Mn.createElement("TEXTAREA"),r=Mn.activeElement;t.value=e,Mn.body.appendChild(t),t.select(),Mn.execCommand("copy"),Mn.body.removeChild(t),r.focus()}function aA(){return Qs.navigator?.clipboard?oA:iA}function lA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var sA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),uA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),cA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),dA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),eu=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),UK=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),fy=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),fA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),pA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),hA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),gA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),mA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),p.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),yA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),p.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),bA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),py=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),vA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),hy=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),EA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),SA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),$A=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),xA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),pp=new Map,wA="UNIVERSAL_STORE:",lt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Cr=class Z{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",a=i?"*":n,l=i?n:o;if(this.debug("subscribe",{eventType:a,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(l),()=>{this.debug("unsubscribe",{eventType:a,listener:l}),this.listeners.has(a)&&(this.listeners.get(a).delete(l),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==Z.Status.READY)throw new TypeError(Et`Cannot send event before store is ready. You can get the current status with store.status,
578
+ or await store.readyPromise to wait for the store to be ready before sending events.
579
+ ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!Z.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Z.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Z.ActorType.LEADER:Z.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${wA}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Z.ActorType.LEADER)this.syncing={state:lt.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,l)=>{n=()=>{this.syncing.state===lt.PENDING&&(this.syncing.state=lt.RESOLVED,a())},o=s=>{this.syncing.state===lt.PENDING&&(this.syncing.state=lt.REJECTED,l(s))}});this.syncing={state:lt.PENDING,promise:i,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??Z.preparation.channel,this.environment=r?.environment??Z.preparation.environment,this.channel&&this.environment?(Z.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Z.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});Z.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Z.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return Z.Status.UNPREPARED;switch(this.syncing?.state){case lt.PENDING:case void 0:return Z.Status.SYNCING;case lt.REJECTED:return Z.Status.ERROR;case lt.RESOLVED:default:return Z.Status.READY}}untilReady(){return Promise.all([Z.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Et`[UniversalStore]
580
+ create`,{options:t});let r=pp.get(t.id);if(r)return console.warn(Et`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
581
+ You should reuse the existing instance instead of trying to create a new one.`),r;Z.isInternalConstructing=!0;let n=new Z(t);return pp.set(t.id,n),n}static __prepare(t,r){Z.preparation.channel=t,Z.preparation.environment=r,Z.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==Z.Status.READY)throw new TypeError(Et`Cannot set state before store is ready. You can get the current status with store.status,
582
+ or await store.readyPromise to wait for the store to be ready before sending events.
583
+ ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:Z.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(Z.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===Z.ActorType.LEADER?this.emitToChannel({type:Z.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Z.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Z.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===lt.PENDING&&r.type!==Z.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Z.ActorType.LEADER){let o=!0;switch(r.type){case Z.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let i={type:Z.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:i}),this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor});break;case Z.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=lt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Et`Detected multiple UniversalStore leaders created with the same id "${this.id}".
584
+ Only one leader can exists at a time, your stores are now in an invalid state.
585
+ Leaders detected:
586
+ this: ${JSON.stringify(this.actor,null,2)}
587
+ other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===Z.ActorType.FOLLOWER)switch(r.type){case Z.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==lt.PENDING)break;this.syncing.resolve?.();let o={type:Z.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case Z.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Et`[UniversalStore::${this.id}::${this.environment??Z.Environment.UNKNOWN}]
588
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Z.preparation.reject(new Error("reset")),Z.setupPreparationPromise(),Z.isInternalConstructing=!1}};Cr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Cr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Cr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},Cr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Cr.isInternalConstructing=!1,Cr.setupPreparationPromise();var mc=Cr,CA=Object.create,gy=Object.defineProperty,_A=Object.getOwnPropertyDescriptor,my=Object.getOwnPropertyNames,TA=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty,te=(e,t)=>function(){return t||(0,e[my(e)[0]])((t={exports:{}}).exports,t),t.exports},DA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of my(t))!AA.call(e,o)&&o!==r&&gy(e,o,{get:()=>t[o],enumerable:!(n=_A(t,o))||n.enumerable});return e},yc=(e,t,r)=>(r=e!=null?CA(TA(e)):{},DA(!e||!e.__esModule?gy(r,"default",{value:e,enumerable:!0}):r,e)),RA=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],OA=["detail"];function PA(e){let t=RA.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of OA.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var yy=te({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),IA=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),FA=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),LA=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),kA=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),NA=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),bc=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),MA=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),BA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),jA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),HA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),UA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),KA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),zA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),GA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),WA=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=GA();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),VA=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),vc=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=VA();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),qA=te({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),by=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),vy=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=by();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Ey=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),Sy=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=yy();t.exports=r.getPrototypeOf||null}}),YA=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var h=0;h<c.length;h+=1)d[h+u.length]=c[h];return d},l=function(u,c){for(var d=[],f=c,h=0;f<u.length;f+=1,h+=1)d[h]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),f,h=function(){if(this instanceof f){var E=c.apply(this,a(d,arguments));return Object(E)===E?E:this}return c.apply(u,a(d,arguments))},m=o(0,c.length-d.length),b=[],v=0;v<m;v++)b[v]="$"+v;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var y=function(){};y.prototype=c.prototype,f.prototype=new y,y.prototype=null}return f}}}),Zi=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=YA();t.exports=Function.prototype.bind||r}}),Ec=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),$y=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),XA=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),JA=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Zi(),n=$y(),o=Ec(),i=XA();t.exports=i||r.call(o,n)}}),xy=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Zi(),n=bc(),o=Ec(),i=JA();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),ZA=te({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=xy(),n=vc(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?(function(s){return l(s==null?s:a(s))}):!1}}),QA=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Ey(),n=Sy(),o=ZA();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),wy=te({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Zi();t.exports=o.call(r,n)}}),eD=te({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=yy(),o=IA(),i=FA(),a=LA(),l=kA(),s=NA(),u=bc(),c=MA(),d=BA(),f=jA(),h=HA(),m=UA(),b=KA(),v=zA(),y=WA(),E=Function,S=function(X){try{return E('"use strict"; return ('+X+").constructor;")()}catch{}},$=vc(),C=qA(),_=function(){throw new u},w=$?(function(){try{return arguments.callee,_}catch{try{return $(arguments,"callee").get}catch{return _}}})():_,T=vy()(),D=QA(),P=Sy(),x=Ey(),k=$y(),L=Ec(),A={},O=typeof Uint8Array>"u"||!D?r:D(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":$,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&D?D(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":O,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":k,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":P,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":x};if(D)try{null.error}catch(X){F=D(D(X)),I["%Error.prototype%"]=F}var F,M=function X(z){var V;if(z==="%AsyncFunction%")V=S("async function () {}");else if(z==="%GeneratorFunction%")V=S("function* () {}");else if(z==="%AsyncGeneratorFunction%")V=S("async function* () {}");else if(z==="%AsyncGenerator%"){var Q=X("%AsyncGeneratorFunction%");Q&&(V=Q.prototype)}else if(z==="%AsyncIteratorPrototype%"){var le=X("%AsyncGenerator%");le&&D&&(V=D(le.prototype))}return I[z]=V,V},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Zi(),K=wy(),H=N.call(L,Array.prototype.concat),G=N.call(k,Array.prototype.splice),U=N.call(L,String.prototype.replace),j=N.call(L,String.prototype.slice),W=N.call(L,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,Se=function(X){var z=j(X,0,1),V=j(X,-1);if(z==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&z!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return U(X,q,function(le,He,Y,Ue){Q[Q.length]=Y?U(Ue,J,"$1"):He||le}),Q},ke=function(X,z){var V=X,Q;if(K(B,V)&&(Q=B[V],V="%"+Q[0]+"%"),K(I,V)){var le=I[V];if(le===A&&(le=M(V)),typeof le>"u"&&!z)throw new u("intrinsic "+X+" exists, but is not available. Please file an issue!");return{alias:Q,name:V,value:le}}throw new s("intrinsic "+X+" does not exist!")};t.exports=function(X,z){if(typeof X!="string"||X.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,X)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=Se(X),Q=V.length>0?V[0]:"",le=ke("%"+Q+"%",z),He=le.name,Y=le.value,Ue=!1,gt=le.alias;gt&&(Q=gt[0],G(V,H([0,1],gt)));for(var Ze=1,mt=!0;Ze<V.length;Ze+=1){var _e=V[Ze],Bt=j(_e,0,1),jt=j(_e,-1);if((Bt==='"'||Bt==="'"||Bt==="`"||jt==='"'||jt==="'"||jt==="`")&&Bt!==jt)throw new s("property names with quotes must have matching quotes");if((_e==="constructor"||!mt)&&(Ue=!0),Q+="."+_e,He="%"+Q+"%",K(I,He))Y=I[He];else if(Y!=null){if(!(_e in Y)){if(!z)throw new u("base intrinsic for "+X+" exists, but the property is not available.");return}if($&&Ze+1>=V.length){var Ht=$(Y,_e);mt=!!Ht,mt&&"get"in Ht&&!("originalValue"in Ht.get)?Y=Ht.get:Y=Y[_e]}else mt=K(Y,_e),Y=Y[_e];mt&&!Ue&&(I[He]=Y)}}return Y}}}),Sc=te({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=eD(),n=xy(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),tD=te({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=by();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Cy=te({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Sc(),n=tD()(),o=wy(),i=vc(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(h){if(!h||typeof h!="object")return!1;var m=i(h,"lastIndex"),b=m&&o(m,"value");if(!b)return!1;try{l(h,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===f});var l,s,u,c,d,f;t.exports=a}}),rD=te({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),nD=te({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Sc(),n=Cy(),o=r("RegExp.prototype.exec"),i=bc();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),oD=te({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Sc(),n=r("Object.prototype.toString"),o=vy()(),i=nD();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),iD=yc(Cy()),aD=yc(rD()),lD=yc(oD());function sD(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var uD=typeof global=="object"&&global&&global.Object===Object&&global,cD=uD,dD=typeof self=="object"&&self&&self.Object===Object&&self,fD=cD||dD||Function("return this")(),$c=fD,pD=$c.Symbol,dn=pD,_y=Object.prototype,hD=_y.hasOwnProperty,gD=_y.toString,Bn=dn?dn.toStringTag:void 0;function mD(e){var t=hD.call(e,Bn),r=e[Bn];try{e[Bn]=void 0;var n=!0}catch{}var o=gD.call(e);return n&&(t?e[Bn]=r:delete e[Bn]),o}var yD=mD,bD=Object.prototype,vD=bD.toString;function ED(e){return vD.call(e)}var SD=ED,$D="[object Null]",xD="[object Undefined]",hp=dn?dn.toStringTag:void 0;function wD(e){return e==null?e===void 0?xD:$D:hp&&hp in Object(e)?yD(e):SD(e)}var Ty=wD;function CD(e){return e!=null&&typeof e=="object"}var _D=CD,TD="[object Symbol]";function AD(e){return typeof e=="symbol"||_D(e)&&Ty(e)==TD}var xc=AD;function DD(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var RD=DD,OD=Array.isArray,wc=OD,gp=dn?dn.prototype:void 0,mp=gp?gp.toString:void 0;function Ay(e){if(typeof e=="string")return e;if(wc(e))return RD(e,Ay)+"";if(xc(e))return mp?mp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var PD=Ay;function ID(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dy=ID,FD="[object AsyncFunction]",LD="[object Function]",kD="[object GeneratorFunction]",ND="[object Proxy]";function MD(e){if(!Dy(e))return!1;var t=Ty(e);return t==LD||t==kD||t==FD||t==ND}var BD=MD,jD=$c["__core-js_shared__"],Xa=jD,yp=(function(){var e=/[^.]+$/.exec(Xa&&Xa.keys&&Xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function HD(e){return!!yp&&yp in e}var UD=HD,KD=Function.prototype,zD=KD.toString;function GD(e){if(e!=null){try{return zD.call(e)}catch{}try{return e+""}catch{}}return""}var WD=GD,VD=/[\\^$.*+?()[\]{}|]/g,qD=/^\[object .+?Constructor\]$/,YD=Function.prototype,XD=Object.prototype,JD=YD.toString,ZD=XD.hasOwnProperty,QD=RegExp("^"+JD.call(ZD).replace(VD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eR(e){if(!Dy(e)||UD(e))return!1;var t=BD(e)?QD:qD;return t.test(WD(e))}var tR=eR;function rR(e,t){return e?.[t]}var nR=rR;function oR(e,t){var r=nR(e,t);return tR(r)?r:void 0}var Ry=oR;function iR(e,t){return e===t||e!==e&&t!==t}var aR=iR,lR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sR=/^\w*$/;function uR(e,t){if(wc(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xc(e)?!0:sR.test(e)||!lR.test(e)||t!=null&&e in Object(t)}var cR=uR,dR=Ry(Object,"create"),ao=dR;function fR(){this.__data__=ao?ao(null):{},this.size=0}var pR=fR;function hR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gR=hR,mR="__lodash_hash_undefined__",yR=Object.prototype,bR=yR.hasOwnProperty;function vR(e){var t=this.__data__;if(ao){var r=t[e];return r===mR?void 0:r}return bR.call(t,e)?t[e]:void 0}var ER=vR,SR=Object.prototype,$R=SR.hasOwnProperty;function xR(e){var t=this.__data__;return ao?t[e]!==void 0:$R.call(t,e)}var wR=xR,CR="__lodash_hash_undefined__";function _R(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ao&&t===void 0?CR:t,this}var TR=_R;function $n(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$n.prototype.clear=pR;$n.prototype.delete=gR;$n.prototype.get=ER;$n.prototype.has=wR;$n.prototype.set=TR;var bp=$n;function AR(){this.__data__=[],this.size=0}var DR=AR;function RR(e,t){for(var r=e.length;r--;)if(aR(e[r][0],t))return r;return-1}var Qi=RR,OR=Array.prototype,PR=OR.splice;function IR(e){var t=this.__data__,r=Qi(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():PR.call(t,r,1),--this.size,!0}var FR=IR;function LR(e){var t=this.__data__,r=Qi(t,e);return r<0?void 0:t[r][1]}var kR=LR;function NR(e){return Qi(this.__data__,e)>-1}var MR=NR;function BR(e,t){var r=this.__data__,n=Qi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var jR=BR;function xn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xn.prototype.clear=DR;xn.prototype.delete=FR;xn.prototype.get=kR;xn.prototype.has=MR;xn.prototype.set=jR;var HR=xn,UR=Ry($c,"Map"),KR=UR;function zR(){this.size=0,this.__data__={hash:new bp,map:new(KR||HR),string:new bp}}var GR=zR;function WR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var VR=WR;function qR(e,t){var r=e.__data__;return VR(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ea=qR;function YR(e){var t=ea(this,e).delete(e);return this.size-=t?1:0,t}var XR=YR;function JR(e){return ea(this,e).get(e)}var ZR=JR;function QR(e){return ea(this,e).has(e)}var eO=QR;function tO(e,t){var r=ea(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var rO=tO;function wn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wn.prototype.clear=GR;wn.prototype.delete=XR;wn.prototype.get=ZR;wn.prototype.has=eO;wn.prototype.set=rO;var Oy=wn,nO="Expected a function";function Cc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(nO);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Cc.Cache||Oy),r}Cc.Cache=Oy;var oO=Cc,iO=500;function aO(e){var t=oO(e,function(n){return r.size===iO&&r.clear(),n}),r=t.cache;return t}var lO=aO,sO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uO=/\\(\\)?/g,cO=lO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sO,function(r,n,o,i){t.push(o?i.replace(uO,"$1"):n||r)}),t}),dO=cO;function fO(e){return e==null?"":PD(e)}var pO=fO;function hO(e,t){return wc(e)?e:cR(e,t)?[e]:dO(pO(e))}var gO=hO;function mO(e){if(typeof e=="string"||xc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var yO=mO;function bO(e,t){t=gO(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[yO(t[r++])];return r&&r==n?e:void 0}var vO=bO;function EO(e,t,r){var n=e==null?void 0:vO(e,t);return n===void 0?r:n}var SO=EO,_c=sD,$O=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,xO=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function Py(e){if(!_c(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=PA(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var wO=function(e){let t,r,n,o;return function(i,a){try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return $O.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,iD.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,aD.default)(a))return;if((0,lD.default)(a)){if(!e.allowSymbol)return;let u=Symbol.keyFor(a);return u!==void 0?`_gsymbol_${u}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let u=t.get(a);if(!u){let c={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((d,f)=>{try{d[f]=a[f]}catch{}return d},{})};return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}let s=t.get(a);if(!s){let u=Array.isArray(a)?a:Py(a);return o.push(i),n.unshift(u),t.set(a,JSON.stringify(o)),a!==u&&r.set(a,u),u}return`_duplicate_${s}`}catch{return}}},CO=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:l})=>{let s=xO(l)?JSON.parse(l):l.split(".");s.length===0?a[i]=r:a[i]=SO(r,s)})),n==="_constructor-name_")return o;if(_c(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,l=new Error(i);return Object.assign(l,a),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,a]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},Iy={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},_O=(e,t={})=>{let r={...Iy,...t};return JSON.stringify(Py(e),wO(r),t.space)},TO=()=>{let e=new Map;return function t(r){_c(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},AO=(e,t={})=>{let r={...Iy,...t},n=JSON.parse(e,CO(r));return TO()(n),n};function vp({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function Ep(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Tc=class Fy extends Error{constructor(t){super(Fy.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return vp({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${vp({code:r,category:n})}?ref=error`:typeof t=="string"?i=Ep(t):Array.isArray(t)&&(i=`
589
+ ${t.map(a=>` - ${Ep(a)}`).join(`
590
+ `)}`),`${o}${i!=null?`
591
+
592
+ More info: ${i}
593
+ `:""}`}},DO=class extends Tc{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},RO=class extends Tc{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},Sp=Object.prototype.hasOwnProperty;function $p(e,t,r){for(r of e.keys())if(Ft(r,t))return r}function Ft(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Ft(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=$p(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=$p(t,o),!o)||!Ft(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Sp.call(e,r)&&++n&&!Sp.call(t,r)||!(r in t)||!Ft(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function xp(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let i=e[o];t(i)?r.push(i):n.push(i)}return[r,n]}function OO(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],i=t(o);r[i]=(r[i]??0)+1}return r}const{once:PO}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ac=wt(yo(),1),Ly=wt(Qm(),1),IO=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,Ac.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(IO)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var ci=Symbol("Deeply equal"),tu=(e,t)=>{if(typeof e!=typeof t)return t;if(Pt(e,t))return ci;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=tu(e[i],o);return a!==ci&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Nt(e)&&Nt(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=tu(e?.[n],t?.[n]);return o===ci?r:Object.assign(r,{[n]:o})},{}):t},wp=/^[a-zA-Z0-9 _-]*$/,FO=/^-?[0-9]+(\.[0-9]+)?$/,ky=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,Ny=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,ru=(e="",t)=>e===null||e===""||!wp.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?wp.test(t)||FO.test(t)||ky.test(t)||Ny.test(t):Array.isArray(t)?t.every(r=>ru(e,r)):Nt(t)?Object.entries(t).every(([r,n])=>ru(r,n)):!1,nu=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?ky.test(e)?`!hex(${e.slice(1)})`:Ny.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(nu):Nt(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:nu(n)}),{}):e,LO=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},kO=/%[0-9A-F]{2}/g,Cp=(e,t)=>{let r=tu(e,t);if(!r||r===ci)return"";let n=Object.entries(r).reduce((o,[i,a])=>ru(i,a)?Object.assign(o,{[i]:a}):(PO.warn(Et`
594
+ Omitted potentially unsafe URL args.
595
+
596
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
597
+ `),o),{});return(0,Ly.stringify)(nu(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(kO,LO).split(";").map(o=>o.replace("=",":")).join(";")},NO=(0,Ac.default)(1e3)(e=>e!==void 0?(0,Ly.parse)(e):{}),MO=e=>NO(e.search?e.search.slice(1):"");(0,Ac.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:BO}=__STORYBOOK_MODULE_GLOBAL__;function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(this,arguments)}var _p;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(_p||(_p={}));function dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iu(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function My(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Tp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tp||(Tp={}));function au(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function jO(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?My(e):e;return{pathname:r?r.startsWith("/")?r:HO(r,t):t,search:UO(n),hash:KO(o)}}function HO(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Ja(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function By(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function jy(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=My(e):(o=ou({},e),dt(!o.pathname||!o.pathname.includes("?"),Ja("?","pathname","search",o)),dt(!o.pathname||!o.pathname.includes("#"),Ja("#","pathname","hash",o)),dt(!o.search||!o.search.includes("#"),Ja("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(n||a==null)l=r;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=jO(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var Dc=e=>e.join("/").replace(/\/\/+/g,"/"),UO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,KO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Hy=["post","put","patch","delete"];new Set(Hy);var GO=["get",...Hy];new Set(GO);function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lu.apply(this,arguments)}var Rc=p.createContext(null),Uy=p.createContext(null);p.createContext(null);var Hr=p.createContext(null),Ky=p.createContext(null),$o=p.createContext({outlet:null,matches:[],isDataRoute:!1}),WO=p.createContext(null);function VO(e,t){let{relative:r}=t===void 0?{}:t;Oc()||dt(!1);let{basename:n,navigator:o}=p.useContext(Hr),{hash:i,pathname:a,search:l}=ta(e,{relative:r}),s=a;return n!=="/"&&(s=a==="/"?n:Dc([n,a])),o.createHref({pathname:s,search:l,hash:i})}function Oc(){return p.useContext(Ky)!=null}function xo(){return Oc()||dt(!1),p.useContext(Ky).location}function zy(e){p.useContext(Hr).static||p.useLayoutEffect(e)}function qO(){let{isDataRoute:e}=p.useContext($o);return e?r5():YO()}function YO(){Oc()||dt(!1);let e=p.useContext(Rc),{basename:t,navigator:r}=p.useContext(Hr),{matches:n}=p.useContext($o),{pathname:o}=xo(),i=JSON.stringify(By(n).map(l=>l.pathnameBase)),a=p.useRef(!1);return zy(()=>{a.current=!0}),p.useCallback(function(l,s){if(s===void 0&&(s={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let u=jy(l,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Dc([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,i,o,e])}p.createContext(null);function ta(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext($o),{pathname:o}=xo(),i=JSON.stringify(By(n).map(a=>a.pathnameBase));return p.useMemo(()=>jy(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function XO(){let e=t5(),t=zO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,null)}p.createElement(XO,null);var Gy=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Gy||{}),lo=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(lo||{});function JO(e){let t=p.useContext(Rc);return t||dt(!1),t}function ZO(e){let t=p.useContext(Uy);return t||dt(!1),t}function QO(e){let t=p.useContext($o);return t||dt(!1),t}function Pc(e){let t=QO(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function e5(){return Pc(lo.UseRouteId)}function t5(){var e;let t=p.useContext(WO),r=ZO(lo.UseRouteError),n=Pc(lo.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function r5(){let{router:e}=JO(Gy.UseNavigateStable),t=Pc(lo.UseNavigateStable),r=p.useRef(!1);return zy(()=>{r.current=!0}),p.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,lu({fromRouteId:t},o)))},[e,t])}var n5=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(n5||{});new Promise(()=>{});function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lr.apply(this,arguments)}function Ic(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var di="get",Za="application/x-www-form-urlencoded";function ra(e){return e!=null&&typeof e.tagName=="string"}function o5(e){return ra(e)&&e.tagName.toLowerCase()==="button"}function i5(e){return ra(e)&&e.tagName.toLowerCase()==="form"}function a5(e){return ra(e)&&e.tagName.toLowerCase()==="input"}function l5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s5(e,t){return e.button===0&&(!t||t==="_self")&&!l5(e)}var Ko=null;function u5(){if(Ko===null)try{new FormData(document.createElement("form"),0),Ko=!1}catch{Ko=!0}return Ko}var c5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qa(e){return e!=null&&!c5.has(e)?null:e}function d5(e,t){let r,n,o,i,a;if(i5(e)){let l=e.getAttribute("action");n=l?au(l,t):null,r=e.getAttribute("method")||di,o=Qa(e.getAttribute("enctype"))||Za,i=new FormData(e)}else if(o5(e)||a5(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?au(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||di,o=Qa(e.getAttribute("formenctype"))||Qa(l.getAttribute("enctype"))||Za,i=new FormData(l,e),!u5()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";i.append(f+"x","0"),i.append(f+"y","0")}else u&&i.append(u,d)}}else{if(ra(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=di,n=null,o=Za,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}var f5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],p5=["aria-current","caseSensitive","className","end","style","to","children"],h5=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],g5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y5=p.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:i,state:a,target:l,to:s,preventScrollReset:u}=e,c=Ic(e,f5),{basename:d}=p.useContext(Hr),f,h=!1;if(typeof s=="string"&&m5.test(s)&&(f=s,g5))try{let y=new URL(window.location.href),E=s.startsWith("//")?new URL(y.protocol+s):new URL(s),S=au(E.pathname,d);E.origin===y.origin&&S!=null?s=S+E.search+E.hash:h=!0}catch{}let m=VO(s,{relative:n}),b=E5(s,{replace:i,state:a,target:l,preventScrollReset:u,relative:n});function v(y){r&&r(y),y.defaultPrevented||b(y)}return p.createElement("a",Lr({},c,{href:f||m,onClick:h||o?r:v,ref:t,target:l}))});p.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:a,to:l,children:s}=e,u=Ic(e,p5),c=ta(l,{relative:u.relative}),d=xo(),f=p.useContext(Uy),{navigator:h}=p.useContext(Hr),m=h.encodeLocation?h.encodeLocation(c).pathname:c.pathname,b=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(b=b.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase());let y=b===m||!i&&b.startsWith(m)&&b.charAt(m.length)==="/",E=v!=null&&(v===m||!i&&v.startsWith(m)&&v.charAt(m.length)==="/"),S=y?r:void 0,$;typeof o=="function"?$=o({isActive:y,isPending:E}):$=[o,y?"active":null,E?"pending":null].filter(Boolean).join(" ");let C=typeof a=="function"?a({isActive:y,isPending:E}):a;return p.createElement(y5,Lr({},u,{"aria-current":S,className:$,ref:t,style:C,to:l}),typeof s=="function"?s({isActive:y,isPending:E}):s)});p.forwardRef((e,t)=>{let r=$5();return p.createElement(b5,Lr({},e,{submit:r,ref:t}))});var b5=p.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:i=di,action:a,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=Ic(e,h5),f=i.toLowerCase()==="get"?"get":"post",h=x5(a,{relative:u});return p.createElement("form",Lr({ref:t,method:f,action:h,onSubmit:r?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let b=m.nativeEvent.submitter,v=b?.getAttribute("formmethod")||i;s(b||m.currentTarget,{method:v,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),su;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(su||(su={}));var Ap;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ap||(Ap={}));function v5(e){let t=p.useContext(Rc);return t||dt(!1),t}function E5(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,l=qO(),s=xo(),u=ta(e,{relative:a});return p.useCallback(c=>{if(s5(c,r)){c.preventDefault();let d=n!==void 0?n:iu(s)===iu(u);l(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[s,l,u,n,o,r,e,i,a])}function S5(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function $5(){let{router:e}=v5(su.UseSubmit),{basename:t}=p.useContext(Hr),r=e5();return p.useCallback(function(n,o){o===void 0&&(o={}),S5();let{action:i,method:a,encType:l,formData:s,body:u}=d5(n,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function x5(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=p.useContext(Hr),o=p.useContext($o);o||dt(!1);let[i]=o.matches.slice(-1),a=Lr({},ta(e||".",{relative:r})),l=xo();if(e==null&&(a.search=l.search,i.route.index)){let s=new URLSearchParams(a.search);s.delete("index"),a.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Dc([n,a.pathname])),iu(a)}var{document:zK}=BO,zo={exports:{}},el,Dp;function na(){if(Dp)return el;Dp=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return el={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},el}var tl,Rp;function oa(){if(Rp)return tl;Rp=1;var e={};return tl=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},tl}var Op;function wo(){return Op||(Op=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=na(),i=oa();t=e.exports={};const a=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,n]],m=v=>{for(const[y,E]of h)v=v.split(`${y}*`).join(`${y}{0,${E}}`).split(`${y}+`).join(`${y}{1,${E}}`);return v},b=(v,y,E)=>{const S=m(y),$=d++;i(v,$,y),c[v]=$,s[$]=y,u[$]=S,a[$]=new RegExp(y,E?"g":void 0),l[$]=new RegExp(S,E?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),b("FULL",`^${s[c.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),b("LOOSE",`^${s[c.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),b("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),b("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",s[c.COERCE],!0),b("COERCERTLFULL",s[c.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(zo,zo.exports)),zo.exports}var rl,Pp;function Fc(){if(Pp)return rl;Pp=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return rl=n=>n?typeof n!="object"?e:n:t,rl}var nl,Ip;function Wy(){if(Ip)return nl;Ip=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const i=e.test(n),a=e.test(o);return i&&a&&(n=+n,o=+o),n===o?0:i&&!a?-1:a&&!i?1:n<o?-1:1};return nl={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},nl}var ol,Fp;function We(){if(Fp)return ol;Fp=1;const e=oa(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=na(),{safeRe:n,t:o}=wo(),i=Fc(),{compareIdentifiers:a}=Wy();class l{constructor(u,c){if(c=i(c),u instanceof l){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const h=+f;if(h>=0&&h<r)return h}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof l)){if(typeof u=="string"&&u===this.version)return 0;u=new l(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof l||(u=new l(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof l||(u=new l(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],f=u.prerelease[c];if(e("prerelease compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return a(d,f)}while(++c)}compareBuild(u){u instanceof l||(u=new l(u,this.options));let c=0;do{const d=this.build[c],f=u.build[c];if(e("build compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return a(d,f)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const f=`-${c}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!f||f[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(c){let h=[c,f];d===!1&&(h=[c]),a(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ol=l,ol}var il,Lp;function Cn(){if(Lp)return il;Lp=1;const e=We();return il=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(i){if(!o)return null;throw i}},il}var al,kp;function w5(){if(kp)return al;kp=1;const e=Cn();return al=(r,n)=>{const o=e(r,n);return o?o.version:null},al}var ll,Np;function C5(){if(Np)return ll;Np=1;const e=Cn();return ll=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},ll}var sl,Mp;function _5(){if(Mp)return sl;Mp=1;const e=We();return sl=(r,n,o,i,a)=>{typeof o=="string"&&(a=i,i=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,i,a).version}catch{return null}},sl}var ul,Bp;function T5(){if(Bp)return ul;Bp=1;const e=Cn();return ul=(r,n)=>{const o=e(r,null,!0),i=e(n,null,!0),a=o.compare(i);if(a===0)return null;const l=a>0,s=l?o:i,u=l?i:o,c=!!s.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(s)===0)return u.minor&&!u.patch?"minor":"patch"}const f=c?"pre":"";return o.major!==i.major?f+"major":o.minor!==i.minor?f+"minor":o.patch!==i.patch?f+"patch":"prerelease"},ul}var cl,jp;function A5(){if(jp)return cl;jp=1;const e=We();return cl=(r,n)=>new e(r,n).major,cl}var dl,Hp;function D5(){if(Hp)return dl;Hp=1;const e=We();return dl=(r,n)=>new e(r,n).minor,dl}var fl,Up;function R5(){if(Up)return fl;Up=1;const e=We();return fl=(r,n)=>new e(r,n).patch,fl}var pl,Kp;function O5(){if(Kp)return pl;Kp=1;const e=Cn();return pl=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},pl}var hl,zp;function _t(){if(zp)return hl;zp=1;const e=We();return hl=(r,n,o)=>new e(r,o).compare(new e(n,o)),hl}var gl,Gp;function P5(){if(Gp)return gl;Gp=1;const e=_t();return gl=(r,n,o)=>e(n,r,o),gl}var ml,Wp;function I5(){if(Wp)return ml;Wp=1;const e=_t();return ml=(r,n)=>e(r,n,!0),ml}var yl,Vp;function Lc(){if(Vp)return yl;Vp=1;const e=We();return yl=(r,n,o)=>{const i=new e(r,o),a=new e(n,o);return i.compare(a)||i.compareBuild(a)},yl}var bl,qp;function F5(){if(qp)return bl;qp=1;const e=Lc();return bl=(r,n)=>r.sort((o,i)=>e(o,i,n)),bl}var vl,Yp;function L5(){if(Yp)return vl;Yp=1;const e=Lc();return vl=(r,n)=>r.sort((o,i)=>e(i,o,n)),vl}var El,Xp;function ia(){if(Xp)return El;Xp=1;const e=_t();return El=(r,n,o)=>e(r,n,o)>0,El}var Sl,Jp;function kc(){if(Jp)return Sl;Jp=1;const e=_t();return Sl=(r,n,o)=>e(r,n,o)<0,Sl}var $l,Zp;function Vy(){if(Zp)return $l;Zp=1;const e=_t();return $l=(r,n,o)=>e(r,n,o)===0,$l}var xl,Qp;function qy(){if(Qp)return xl;Qp=1;const e=_t();return xl=(r,n,o)=>e(r,n,o)!==0,xl}var wl,eh;function Nc(){if(eh)return wl;eh=1;const e=_t();return wl=(r,n,o)=>e(r,n,o)>=0,wl}var Cl,th;function Mc(){if(th)return Cl;th=1;const e=_t();return Cl=(r,n,o)=>e(r,n,o)<=0,Cl}var _l,rh;function Yy(){if(rh)return _l;rh=1;const e=Vy(),t=qy(),r=ia(),n=Nc(),o=kc(),i=Mc();return _l=(l,s,u,c)=>{switch(s){case"===":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l===u;case"!==":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l!==u;case"":case"=":case"==":return e(l,u,c);case"!=":return t(l,u,c);case">":return r(l,u,c);case">=":return n(l,u,c);case"<":return o(l,u,c);case"<=":return i(l,u,c);default:throw new TypeError(`Invalid operator: ${s}`)}},_l}var Tl,nh;function k5(){if(nh)return Tl;nh=1;const e=We(),t=Cn(),{safeRe:r,t:n}=wo();return Tl=(i,a)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;a=a||{};let l=null;if(!a.rtl)l=i.match(a.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const h=a.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let m;for(;(m=h.exec(i))&&(!l||l.index+l[0].length!==i.length);)(!l||m.index+m[0].length!==l.index+l[0].length)&&(l=m),h.lastIndex=m.index+m[1].length+m[2].length;h.lastIndex=-1}if(l===null)return null;const s=l[2],u=l[3]||"0",c=l[4]||"0",d=a.includePrerelease&&l[5]?`-${l[5]}`:"",f=a.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${s}.${u}.${c}${d}${f}`,a)},Tl}var Al,oh;function N5(){if(oh)return Al;oh=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(r,n)}return this}}return Al=e,Al}var Dl,ih;function Tt(){if(ih)return Dl;ih=1;const e=/\s+/g;class t{constructor(O,I){if(I=o(I),O instanceof t)return O.loose===!!I.loose&&O.includePrerelease===!!I.includePrerelease?O:new t(O.raw,I);if(O instanceof i)return this.raw=O.value,this.set=[[O]],this.formatted=void 0,this;if(this.options=I,this.loose=!!I.loose,this.includePrerelease=!!I.includePrerelease,this.raw=O.trim().replace(e," "),this.set=this.raw.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(M=>!b(M[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const M of this.set)if(M.length===1&&v(M[0])){this.set=[M];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let O=0;O<this.set.length;O++){O>0&&(this.formatted+="||");const I=this.set[O];for(let F=0;F<I.length;F++)F>0&&(this.formatted+=" "),this.formatted+=I[F].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(O){const F=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+O,M=n.get(F);if(M)return M;const B=this.options.loose,N=B?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];O=O.replace(N,k(this.options.includePrerelease)),a("hyphen replace",O),O=O.replace(s[u.COMPARATORTRIM],c),a("comparator trim",O),O=O.replace(s[u.TILDETRIM],d),a("tilde trim",O),O=O.replace(s[u.CARETTRIM],f),a("caret trim",O);let K=O.split(" ").map(j=>E(j,this.options)).join(" ").split(/\s+/).map(j=>x(j,this.options));B&&(K=K.filter(j=>(a("loose invalid filter",j,this.options),!!j.match(s[u.COMPARATORLOOSE])))),a("range list",K);const H=new Map,G=K.map(j=>new i(j,this.options));for(const j of G){if(b(j))return[j];H.set(j.value,j)}H.size>1&&H.has("")&&H.delete("");const U=[...H.values()];return n.set(F,U),U}intersects(O,I){if(!(O instanceof t))throw new TypeError("a Range is required");return this.set.some(F=>y(F,I)&&O.set.some(M=>y(M,I)&&F.every(B=>M.every(N=>B.intersects(N,I)))))}test(O){if(!O)return!1;if(typeof O=="string")try{O=new l(O,this.options)}catch{return!1}for(let I=0;I<this.set.length;I++)if(L(this.set[I],O,this.options))return!0;return!1}}Dl=t;const r=N5(),n=new r,o=Fc(),i=aa(),a=oa(),l=We(),{safeRe:s,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:f}=wo(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=na(),b=A=>A.value==="<0.0.0-0",v=A=>A.value==="",y=(A,O)=>{let I=!0;const F=A.slice();let M=F.pop();for(;I&&F.length;)I=F.every(B=>M.intersects(B,O)),M=F.pop();return I},E=(A,O)=>(A=A.replace(s[u.BUILD],""),a("comp",A,O),A=_(A,O),a("caret",A),A=$(A,O),a("tildes",A),A=T(A,O),a("xrange",A),A=P(A,O),a("stars",A),A),S=A=>!A||A.toLowerCase()==="x"||A==="*",$=(A,O)=>A.trim().split(/\s+/).map(I=>C(I,O)).join(" "),C=(A,O)=>{const I=O.loose?s[u.TILDELOOSE]:s[u.TILDE];return A.replace(I,(F,M,B,N,K)=>{a("tilde",A,F,M,B,N,K);let H;return S(M)?H="":S(B)?H=`>=${M}.0.0 <${+M+1}.0.0-0`:S(N)?H=`>=${M}.${B}.0 <${M}.${+B+1}.0-0`:K?(a("replaceTilde pr",K),H=`>=${M}.${B}.${N}-${K} <${M}.${+B+1}.0-0`):H=`>=${M}.${B}.${N} <${M}.${+B+1}.0-0`,a("tilde return",H),H})},_=(A,O)=>A.trim().split(/\s+/).map(I=>w(I,O)).join(" "),w=(A,O)=>{a("caret",A,O);const I=O.loose?s[u.CARETLOOSE]:s[u.CARET],F=O.includePrerelease?"-0":"";return A.replace(I,(M,B,N,K,H)=>{a("caret",A,M,B,N,K,H);let G;return S(B)?G="":S(N)?G=`>=${B}.0.0${F} <${+B+1}.0.0-0`:S(K)?B==="0"?G=`>=${B}.${N}.0${F} <${B}.${+N+1}.0-0`:G=`>=${B}.${N}.0${F} <${+B+1}.0.0-0`:H?(a("replaceCaret pr",H),B==="0"?N==="0"?G=`>=${B}.${N}.${K}-${H} <${B}.${N}.${+K+1}-0`:G=`>=${B}.${N}.${K}-${H} <${B}.${+N+1}.0-0`:G=`>=${B}.${N}.${K}-${H} <${+B+1}.0.0-0`):(a("no pr"),B==="0"?N==="0"?G=`>=${B}.${N}.${K}${F} <${B}.${N}.${+K+1}-0`:G=`>=${B}.${N}.${K}${F} <${B}.${+N+1}.0-0`:G=`>=${B}.${N}.${K} <${+B+1}.0.0-0`),a("caret return",G),G})},T=(A,O)=>(a("replaceXRanges",A,O),A.split(/\s+/).map(I=>D(I,O)).join(" ")),D=(A,O)=>{A=A.trim();const I=O.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return A.replace(I,(F,M,B,N,K,H)=>{a("xRange",A,F,M,B,N,K,H);const G=S(B),U=G||S(N),j=U||S(K),W=j;return M==="="&&W&&(M=""),H=O.includePrerelease?"-0":"",G?M===">"||M==="<"?F="<0.0.0-0":F="*":M&&W?(U&&(N=0),K=0,M===">"?(M=">=",U?(B=+B+1,N=0,K=0):(N=+N+1,K=0)):M==="<="&&(M="<",U?B=+B+1:N=+N+1),M==="<"&&(H="-0"),F=`${M+B}.${N}.${K}${H}`):U?F=`>=${B}.0.0${H} <${+B+1}.0.0-0`:j&&(F=`>=${B}.${N}.0${H} <${B}.${+N+1}.0-0`),a("xRange return",F),F})},P=(A,O)=>(a("replaceStars",A,O),A.trim().replace(s[u.STAR],"")),x=(A,O)=>(a("replaceGTE0",A,O),A.trim().replace(s[O.includePrerelease?u.GTE0PRE:u.GTE0],"")),k=A=>(O,I,F,M,B,N,K,H,G,U,j,W)=>(S(F)?I="":S(M)?I=`>=${F}.0.0${A?"-0":""}`:S(B)?I=`>=${F}.${M}.0${A?"-0":""}`:N?I=`>=${I}`:I=`>=${I}${A?"-0":""}`,S(G)?H="":S(U)?H=`<${+G+1}.0.0-0`:S(j)?H=`<${G}.${+U+1}.0-0`:W?H=`<=${G}.${U}.${j}-${W}`:A?H=`<${G}.${U}.${+j+1}-0`:H=`<=${H}`,`${I} ${H}`.trim()),L=(A,O,I)=>{for(let F=0;F<A.length;F++)if(!A[F].test(O))return!1;if(O.prerelease.length&&!I.includePrerelease){for(let F=0;F<A.length;F++)if(a(A[F].semver),A[F].semver!==i.ANY&&A[F].semver.prerelease.length>0){const M=A[F].semver;if(M.major===O.major&&M.minor===O.minor&&M.patch===O.patch)return!0}return!1}return!0};return Dl}var Rl,ah;function aa(){if(ah)return Rl;ah=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),a("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(c){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],f=c.match(d);if(!f)throw new TypeError(`Invalid comparator: ${c}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(a("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch{return!1}return i(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||i(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Rl=t;const r=Fc(),{safeRe:n,t:o}=wo(),i=Yy(),a=oa(),l=We(),s=Tt();return Rl}var Ol,lh;function la(){if(lh)return Ol;lh=1;const e=Tt();return Ol=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},Ol}var Pl,sh;function M5(){if(sh)return Pl;sh=1;const e=Tt();return Pl=(r,n)=>new e(r,n).set.map(o=>o.map(i=>i.value).join(" ").trim().split(" ")),Pl}var Il,uh;function B5(){if(uh)return Il;uh=1;const e=We(),t=Tt();return Il=(n,o,i)=>{let a=null,l=null,s=null;try{s=new t(o,i)}catch{return null}return n.forEach(u=>{s.test(u)&&(!a||l.compare(u)===-1)&&(a=u,l=new e(a,i))}),a},Il}var Fl,ch;function j5(){if(ch)return Fl;ch=1;const e=We(),t=Tt();return Fl=(n,o,i)=>{let a=null,l=null,s=null;try{s=new t(o,i)}catch{return null}return n.forEach(u=>{s.test(u)&&(!a||l.compare(u)===1)&&(a=u,l=new e(a,i))}),a},Fl}var Ll,dh;function H5(){if(dh)return Ll;dh=1;const e=We(),t=Tt(),r=ia();return Ll=(o,i)=>{o=new t(o,i);let a=new e("0.0.0");if(o.test(a)||(a=new e("0.0.0-0"),o.test(a)))return a;a=null;for(let l=0;l<o.set.length;++l){const s=o.set[l];let u=null;s.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||r(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!a||r(a,u))&&(a=u)}return a&&o.test(a)?a:null},Ll}var kl,fh;function U5(){if(fh)return kl;fh=1;const e=Tt();return kl=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},kl}var Nl,ph;function Bc(){if(ph)return Nl;ph=1;const e=We(),t=aa(),{ANY:r}=t,n=Tt(),o=la(),i=ia(),a=kc(),l=Mc(),s=Nc();return Nl=(c,d,f,h)=>{c=new e(c,h),d=new n(d,h);let m,b,v,y,E;switch(f){case">":m=i,b=l,v=a,y=">",E=">=";break;case"<":m=a,b=s,v=i,y="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,h))return!1;for(let S=0;S<d.set.length;++S){const $=d.set[S];let C=null,_=null;if($.forEach(w=>{w.semver===r&&(w=new t(">=0.0.0")),C=C||w,_=_||w,m(w.semver,C.semver,h)?C=w:v(w.semver,_.semver,h)&&(_=w)}),C.operator===y||C.operator===E||(!_.operator||_.operator===y)&&b(c,_.semver))return!1;if(_.operator===E&&v(c,_.semver))return!1}return!0},Nl}var Ml,hh;function K5(){if(hh)return Ml;hh=1;const e=Bc();return Ml=(r,n,o)=>e(r,n,">",o),Ml}var Bl,gh;function z5(){if(gh)return Bl;gh=1;const e=Bc();return Bl=(r,n,o)=>e(r,n,"<",o),Bl}var jl,mh;function G5(){if(mh)return jl;mh=1;const e=Tt();return jl=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),jl}var Hl,yh;function W5(){if(yh)return Hl;yh=1;const e=la(),t=_t();return Hl=(r,n,o)=>{const i=[];let a=null,l=null;const s=r.sort((f,h)=>t(f,h,o));for(const f of s)e(f,n,o)?(l=f,a||(a=f)):(l&&i.push([a,l]),l=null,a=null);a&&i.push([a,null]);const u=[];for(const[f,h]of i)f===h?u.push(f):!h&&f===s[0]?u.push("*"):h?f===s[0]?u.push(`<=${h}`):u.push(`${f} - ${h}`):u.push(`>=${f}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},Hl}var Ul,bh;function V5(){if(bh)return Ul;bh=1;const e=Tt(),t=aa(),{ANY:r}=t,n=la(),o=_t(),i=(d,f,h={})=>{if(d===f)return!0;d=new e(d,h),f=new e(f,h);let m=!1;e:for(const b of d.set){for(const v of f.set){const y=s(b,v,h);if(m=m||y!==null,y)continue e}if(m)return!1}return!0},a=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,f,h)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;h.includePrerelease?d=a:d=l}if(f.length===1&&f[0].semver===r){if(h.includePrerelease)return!0;f=l}const m=new Set;let b,v;for(const T of d)T.operator===">"||T.operator===">="?b=u(b,T,h):T.operator==="<"||T.operator==="<="?v=c(v,T,h):m.add(T.semver);if(m.size>1)return null;let y;if(b&&v){if(y=o(b.semver,v.semver,h),y>0)return null;if(y===0&&(b.operator!==">="||v.operator!=="<="))return null}for(const T of m){if(b&&!n(T,String(b),h)||v&&!n(T,String(v),h))return null;for(const D of f)if(!n(T,String(D),h))return!1;return!0}let E,S,$,C,_=v&&!h.includePrerelease&&v.semver.prerelease.length?v.semver:!1,w=b&&!h.includePrerelease&&b.semver.prerelease.length?b.semver:!1;_&&_.prerelease.length===1&&v.operator==="<"&&_.prerelease[0]===0&&(_=!1);for(const T of f){if(C=C||T.operator===">"||T.operator===">=",$=$||T.operator==="<"||T.operator==="<=",b){if(w&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===w.major&&T.semver.minor===w.minor&&T.semver.patch===w.patch&&(w=!1),T.operator===">"||T.operator===">="){if(E=u(b,T,h),E===T&&E!==b)return!1}else if(b.operator===">="&&!n(b.semver,String(T),h))return!1}if(v){if(_&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===_.major&&T.semver.minor===_.minor&&T.semver.patch===_.patch&&(_=!1),T.operator==="<"||T.operator==="<="){if(S=c(v,T,h),S===T&&S!==v)return!1}else if(v.operator==="<="&&!n(v.semver,String(T),h))return!1}if(!T.operator&&(v||b)&&y!==0)return!1}return!(b&&$&&!v&&y!==0||v&&C&&!b&&y!==0||w||_)},u=(d,f,h)=>{if(!d)return f;const m=o(d.semver,f.semver,h);return m>0?d:m<0||f.operator===">"&&d.operator===">="?f:d},c=(d,f,h)=>{if(!d)return f;const m=o(d.semver,f.semver,h);return m<0?d:m>0||f.operator==="<"&&d.operator==="<="?f:d};return Ul=i,Ul}var Kl,vh;function q5(){if(vh)return Kl;vh=1;const e=wo(),t=na(),r=We(),n=Wy(),o=Cn(),i=w5(),a=C5(),l=_5(),s=T5(),u=A5(),c=D5(),d=R5(),f=O5(),h=_t(),m=P5(),b=I5(),v=Lc(),y=F5(),E=L5(),S=ia(),$=kc(),C=Vy(),_=qy(),w=Nc(),T=Mc(),D=Yy(),P=k5(),x=aa(),k=Tt(),L=la(),A=M5(),O=B5(),I=j5(),F=H5(),M=U5(),B=Bc(),N=K5(),K=z5(),H=G5(),G=W5(),U=V5();return Kl={parse:o,valid:i,clean:a,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:f,compare:h,rcompare:m,compareLoose:b,compareBuild:v,sort:y,rsort:E,gt:S,lt:$,eq:C,neq:_,gte:w,lte:T,cmp:D,coerce:P,Comparator:x,Range:k,satisfies:L,toComparators:A,maxSatisfying:O,minSatisfying:I,minVersion:F,validRange:M,outside:B,gtr:N,ltr:K,intersects:H,simplifyRange:G,subset:U,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Kl}var Y5=q5();const Qe=Vm(Y5);var X5=pt({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,o=[],i=0;i<r.rangeCount;i++)o.push(r.getRangeAt(i));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||o.forEach(function(a){r.addRange(a)}),n&&n.focus()}}}}),J5=pt({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=X5(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function i(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function a(l,s){var u,c,d,f,h,m,b=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),h=document.getSelection(),m=document.createElement("span"),m.textContent=l,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(y){if(y.stopPropagation(),s.format)if(y.preventDefault(),typeof y.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=n[s.format]||n.default;window.clipboardData.setData(E,l)}else y.clipboardData.clearData(),y.clipboardData.setData(s.format,l);s.onCopy&&(y.preventDefault(),s.onCopy(y.clipboardData))}),document.body.appendChild(m),f.selectNodeContents(m),h.addRange(f);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");b=!0}catch(y){u&&console.error("unable to copy using execCommand: ",y),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),c=i("message"in s?s.message:o),window.prompt(c,l)}}finally{h&&(typeof h.removeRange=="function"?h.removeRange(f):h.removeAllRanges()),m&&document.body.removeChild(m),d()}return b}t.exports=a}}),Z5=pt({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),Q5=pt({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(a,l){for(var s in a)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(a,s));return l},stringify:function(a,l){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a,l||o.replace)},parse:function(a,l){try{return JSON.parse(a,l||o.revive)}catch{return a}},fn:function(a,l){o.storeAPI[a]=l;for(var s in o.apis)o.apis[s][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,s){a.setItem(l,s)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,s){var u=o.inherit(o.storeAPI,function(d,f,h){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,h):f!==void 0?u.set(d,f,h):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=a;try{var c="__store2_test";l.setItem(c,"ok"),u._area=l,l.removeItem(c)}catch{u._area=o.storage("fake")}return u._ns=s||"",o.areas[a]||(o.areas[a]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(a,l){var s=this[a];return(!s||!s.area)&&(s=o.Store(a,l,this._ns),this[a]||(this[a]=s)),s},namespace:function(a,l,s){if(s=s||this._delim||o.nsdelim,!a)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=a,c=this[u];if((!c||!c.namespace)&&(c=o.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!l))for(var d in o.areas)c.area(d,o.areas[d]);return c},isFake:function(a){return a?(this._real=this._area,this._area=o.storage("fake")):a===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var s=0,u=o.length(this._area);s<u;s++){var c=this._out(o.key(this._area,s));if(c!==void 0&&a.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(a){return this.each(function(l,s,u){u.push(l)},a||[])},get:function(a,l){var s=o.get(this._area,this._in(a)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l??s},getAll:function(a){return this.each(function(l,s,u){u[l]=s},a||{})},transact:function(a,l,s){var u=this.get(a,s),c=l(u);return this.set(a,c===void 0?u:c),this},set:function(a,l,s){var u=this.get(a),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(a),o.stringify(l,c),s)||u)},setAll:function(a,l){var s,u;for(var c in a)u=a[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(a,l,s){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return o.set(this._area,this._in(a),o.stringify(l,s)),l},remove:function(a,l){var s=this.get(a,l);return o.remove(this._area,this._in(a)),s},clear:function(){return this._ns?this.each(function(a){o.remove(this._area,this._in(a))},1):o.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=o.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return o.inherit(o.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var s in this.items)if(this.has(s)&&a===l++)return s},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},i=o.Store("local",(function(){try{return localStorage}catch{}})());i.local=i,i._=o,i.area("session",(function(){try{return sessionStorage}catch{}})()),i.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return i}):typeof t<"u"&&t.exports?t.exports=i:(r.store&&(o.conflict=r.store),r.store=i)})(e,e&&e.define)}});const{DOCS_PREPARED:GK,SET_STORIES:WK,SHARED_STATE_CHANGED:VK,SHARED_STATE_SET:qK,STORY_CHANGED:YK,STORY_PREPARED:XK}=__STORYBOOK_MODULE_CORE_EVENTS__;var eP=({api:e,state:t})=>p.createContext({api:e,state:t});const{logger:Eh}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ir=(e,...t)=>{let r={};r=rt({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(i=>{n.find(a=>a===i||Pt(a,i))||n.push(i)}),n;if(Array.isArray(n))return Eh.log(["the types mismatch, picking",n]),n});for(let n of t)r=rt(r,n,(o,i)=>{if(Array.isArray(i)&&Array.isArray(o))return i.forEach(a=>{o.find(l=>l===a||Pt(l,a))||o.push(a)}),o;if(Array.isArray(o))return Eh.log(["the types mismatch, picking",o]),o});return r},tP=(e,...t)=>{let r={};r=rt({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=rt(r,n,(o,i)=>{if(Array.isArray(i))return i});return r},rP=(...e)=>e.reduce((t,r)=>Ir(t,r),{}),uu=rP;const{logger:nP}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:Sh}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:JK}=__STORYBOOK_MODULE_TYPES__,{global:zl}=__STORYBOOK_MODULE_GLOBAL__,{Channel:oP}=__STORYBOOK_MODULE_CHANNELS__;function iP(){let e={setHandler:()=>{},send:()=>{}};return new oP({transport:e})}var aP=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(iP()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(Sh,this.config):this.ready().then(t=>{t.emit(Sh,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&nP.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]={...t,id:e}}experimental_getRegisteredAddons(){return Object.keys(this.loaders)}},Gl="__STORYBOOK_ADDONS_MANAGER";function lP(){return zl[Gl]||(zl[Gl]=new aP),zl[Gl]}lP();var Xy={};Le(Xy,{ensurePanel:()=>cu,init:()=>sP});const{Addon_TypesEnum:$h}=__STORYBOOK_MODULE_TYPES__;function cu(e,t,r){let n=Object.keys(e);return n.indexOf(t)>=0?t:n.length?n[0]:r}var sP=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return cu(n.getElements($h.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,i,a){let l=typeof i=="function"?i:()=>i;return t.setState(s=>({...s,addons:{...s.addons,[o]:l(s.addons[o])}}),a).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||globalThis?.STORYBOOK_ADDON_STATE[o]};return{api:n,state:{selectedPanel:cu(n.getElements($h.PANEL),t.getState().selectedPanel),addons:{}}}},Jy={};Le(Jy,{init:()=>uP});var uP=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>(e.channel?.on(t,r),()=>e.channel?.off(t,r)),off:(t,r)=>e.channel?.off(t,r),once:(t,r)=>e.channel?.once(t,r),emit:(t,r,...n)=>{r?.options?.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),e.channel?.emit(t,r,...n)}},state:{}}),Zy={};Le(Zy,{init:()=>TP});const{logger:xh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:cP,SET_GLOBALS:dP,UPDATE_GLOBALS:fP}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:pP}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Qy={};Le(Qy,{defaultStoryMapper:()=>nb,getSourceType:()=>rb,init:()=>_P});const{global:eb}=__STORYBOOK_MODULE_GLOBAL__;var tb=wt(yo(),1),hP=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),gP=/\s*\/\s*/,mP=({globalParameters:e,kindParameters:t,stories:r})=>Y$(r,n=>({...n,parameters:q3(e,t[n.kind],n.parameters)})),yP=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:i,...a}=n.parameters,l={title:n.kind,id:r,name:n.name,importPath:i};if(o)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...l};else{let{argTypes:s,args:u,initialArgs:c}=n;t[r]={type:"story",subtype:"story",...l,parameters:a,argTypes:s,args:u,initialArgs:c}}return t},{})}),bP=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]={...r,title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""},t),{})}),vP=e=>{let t=OO(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{let o="story";return(n.parameters?.docsOnly||n.name==="Page"&&t[n.title]===1)&&(o="docs"),r[n.id]={type:o,...o==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...n},delete r[n.id].story,delete r[n.id].kind,r},{})}},EP=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[La.DEV,La.TEST,...r.tags]:[La.DEV]},t),{})}),Ci=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let i=e;i=i.v===2?bP(i):i,i=i.v===3?vP(i):i,i=i.v===4?EP(i):i,i=i;let a=Object.values(i.entries),l=Object.values(n),s=a.filter(y=>{let E=o[y.id]??{};return Object.values(E).some(({value:S})=>S==="status-value:error")||l.every(S=>S({...y,statuses:E}))?!0:a.filter(S=>"parent"in S&&S.parent===y.id).some(S=>l.every($=>$({...S,statuses:E})))}),{sidebar:u={}}=t.getConfig(),{showRoots:c,collapsedRoots:d=[],renderLabel:f}=u,h=typeof c<"u",m=s.reduce((y,E)=>{if(r.docsMode&&E.type!=="docs")return y;let{title:S}=E,$=S.trim().split(gP),C=(!h||c)&&$.length>1?[$.shift()]:[],_=[...C,...$],w=_.reduce((T,D,P)=>{let x=P>0&&T[P-1],k=un(x?`${x}-${D}`:D);if(D.trim()==="")throw new Error(Et`Invalid title ${S} ending in slash.`);if(x===k)throw new Error(Et`
598
+ Invalid part '${D}', leading to id === parentId ('${k}'), inside title '${S}'
599
+
600
+ Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
601
+ `);return T.push(k),T},[]);return w.forEach((T,D)=>{let P=w[D+1]||E.id;C.length&&D===0?y[T]=Ir(y[T]||{},{type:"root",id:T,name:_[D],tags:[],depth:D,renderLabel:f,startCollapsed:d.includes(T),children:[P]}):(!y[T]||y[T].type==="component")&&D===w.length-1?y[T]=Ir(y[T]||{},{type:"component",id:T,name:_[D],tags:[],parent:w[D-1],depth:D,renderLabel:f,...P&&{children:[P]}}):y[T]=Ir(y[T]||{},{type:"group",id:T,name:_[D],tags:[],parent:w[D-1],depth:D,renderLabel:f,...P&&{children:[P]}})}),y[E.id]={tags:[],...E,depth:w.length,parent:"parent"in E?E.parent:w[w.length-1],renderLabel:f,prepared:!!E.parameters},y},{});function b(y,E){if(y[E.id]||(y[E.id]=E,"children"in E&&E.children&&(E.children.forEach(S=>b(y,m[S])),E.tags=E.children.reduce((S,$)=>S===null?y[$].tags:hP(S,y[$].tags),null)||[])),E.type==="component"){let S=y[E.children[0]];S&&"importPath"in S&&(E.importPath=S.importPath)}return y}let v=Object.values(m).filter(y=>y.type!=="root"&&!y.parent).reduce((y,E)=>b(y,E),{});return v=Object.values(m).filter(y=>y.type==="root").reduce(b,v),v=Object.values(v).reduce((y,E)=>{if(E.type==="story"&&E.subtype==="test"){let S=y[E.parent],$=y[S.parent];y[$.id]={...$,children:$.children&&$.children.filter(C=>C!==E.id)},y[S.id]={...S,children:(S.children||[]).concat(E.id)},y[E.id]={...E,depth:E.depth+1}}else y[E.id]=E;return y},{}),v},wh=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let o=t[r];return n.type==="story"&&o?.type==="story"&&o.prepared?("children"in o&&delete o.children,[r,{...o,...n,prepared:!0}]):[r,n]})):e,SP=(0,tb.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),$P=(0,tb.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:xP,fetch:Ch}=eb,rb=(e,t)=>{let{origin:r,pathname:n}=xP,{origin:o,pathname:i}=new URL(e),a=`${r+n}`.replace(/\/[^\/]*$/,""),l=`${o+i}`.replace(/\/[^\/]*$/,"");return a===l?["local",l]:t||e?["external",l]:[null,null]},nb=(e,t)=>({...t,kind:t.kind.replace("|","/")}),_h=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{});async function Th(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok){if(t.status===401)try{let n=await t.json();if(n.loginUrl)return{loginUrl:n.loginUrl}}catch{}throw new Error(`Unexpected response not OK: ${t.statusText}`)}let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var wP=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},CP=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[i,a])=>({...o,[i]:n(t,a)}),{}):e},_P=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let i={findRef:s=>{let u=i.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=i.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await i.setRef(s,{...f,type:"unknown"},!1),await i.checkRef(f)},changeRefState:(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,h=f==="server-checked",m={},b=d?`?version=${d}`:"",v=h?"omit":"include",y=wP(c),E={Accept:"application/json"};y.authorization&&Object.assign(E,{Authorization:`Basic ${y.authorization}`});let[S,$]=await Promise.all(["index.json","stories.json"].map(async _=>Th(Ch(`${y.url}/${_}${b}`,{headers:E,credentials:v}))));if(!S.indexError||!$.indexError){let _=await Th(Ch(`${y.url}/metadata.json${b}`,{headers:E,credentials:v,cache:"no-cache"}).catch(()=>!1));Object.assign(m,{...S.indexError?$:S,...!_.indexError&&_})}else h||(m.indexError={message:Et`
602
+ Error: Loading of ref failed
603
+ at fetch (lib/api/src/modules/refs.ts)
604
+
605
+ URL: ${y.url}
606
+
607
+ We weren't able to load the above URL,
608
+ it's possible a CORS error happened.
609
+
610
+ Please check your dev-tools network tab.
611
+ `});let C=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await i.setRef(u,{id:u,url:y.url,...m,...C?{versions:C}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let h,m,b,{filters:v}=e.getState(),{storyMapper:y=nb}=t.getConfig(),E=i.getRefs()[s];(u||c)&&(h=c?yP(CP(c,E,{storyMapper:y})):u,b=Ci(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),m=Ci(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=_h(m,E)),b&&(b=_h(b,E)),await i.updateRef(s,{...E,...d,index:m,filteredIndex:b,internal_index:h})},updateRef:async(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((h,m)=>(h[m]=d[m],h),{});await e.setState({refs:f})}},a=!r&&eb.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef({...u,stories:{}});s(void 0)}),{api:i,state:{refs:l}}},et=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=rb(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return pP.warn(`Received a ${o} frame that was not configured as a ref`),null}},TP=({store:e,fullAPI:t,provider:r})=>{let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(a){r.channel?.emit(fP,{globals:a,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:a,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();Ft(a,u)||e.setState({globals:a}),Ft(s,c)||e.setState({userGlobals:s}),Ft(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(cP,function({globals:a,storyGlobals:l,userGlobals:s}){let{ref:u}=et(this,t);u?xh.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:a,storyGlobals:l,userGlobals:s})}),r.channel?.on(dP,function({globals:a,globalTypes:l}){let{ref:s}=et(this,t),u=e.getState()?.globals;s?Object.keys(a).length>0&&xh.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:a,userGlobals:a,globalTypes:l}),u&&Object.keys(u).length!==0&&!Ft(a,u)&&n.updateGlobals(u)}),{api:n,state:o}},jc={};Le(jc,{ActiveTabs:()=>ob,defaultLayoutState:()=>tt,focusableUIElements:()=>fi,init:()=>RP});const{SET_CONFIG:AP}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:DP}=__STORYBOOK_MODULE_GLOBAL__;var{document:Ah}=DP,Wl=e=>typeof e=="function",ob={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},tt={ui:{enableShortcuts:!0},layout:{initialActive:ob.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:k$()},fi={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},du=e=>e.layout.navSize>0,fu=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},Dh=e=>!du(e)&&!fu(e),Go=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),RP=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(i){return e.setState(a=>{let l=Dh(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Go(a.layout)}}:{layout:{...a.layout,navSize:a.singleStory?0:a.layout.recentVisibleSizes.navSize,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(i){return e.setState(a=>{let l=fu(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...a.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Go(a.layout)}}},{persistence:"session"})},togglePanelPosition(i){return e.setState(a=>{let l=i||(a.layout.panelPosition==="right"?"bottom":"right");return{layout:{...a.layout,panelPosition:l,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(i){return e.setState(a=>{if(a.singleStory)return{layout:a.layout};let l=du(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,navSize:a.layout.recentVisibleSizes.navSize}}:{layout:{...a.layout,navSize:0,recentVisibleSizes:Go(a.layout)}}},{persistence:"session"})},toggleToolbar(i){return e.setState(a=>{let l=typeof i<"u"?i:!a.layout.showToolbar;return{layout:{...a.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:i,bottomPanelHeight:a,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:i??s.layout.navSize,bottomPanelHeight:a??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Go(u)}}},{persistence:"session"})},focusOnUIElement(i,a){if(!i)return;let l=Date.now(),s=500,u=50,c=()=>{let f=Ah.getElementById(i);return!f||(f.focus(),f!==Ah.activeElement)?!1:(a&&f.select?.(),!0)};if(c())return;let d=setInterval(()=>{if(Date.now()-l>=s){clearInterval(d);return}c()&&clearInterval(d)},u)},getInitialOptions(){let{theme:i,selectedPanel:a,layoutCustomisations:l,...s}=t.getConfig();return{...tt,layout:{...Na(tt.layout,In(s,Object.keys(tt.layout))),...r&&{navSize:0}},layoutCustomisations:{...tt.layoutCustomisations,...l??{}},ui:Na(tt.ui,In(s,Object.keys(tt.ui))),selectedPanel:a||tt.selectedPanel,theme:i||tt.theme}},getIsFullscreen(){return Dh(e.getState())},getIsPanelShown(){return fu(e.getState())},getIsNavShown(){return du(e.getState())},getShowToolbarWithCustomisations(i){let a=e.getState();return Wl(a.layoutCustomisations.showToolbar)?a.layoutCustomisations.showToolbar(a,i)??i:i},getShowPanelWithCustomisations(i){let a=e.getState();return Wl(a.layoutCustomisations.showPanel)?a.layoutCustomisations.showPanel(a,i)??i:i},getNavSizeWithCustomisations(i){let a=e.getState();if(Wl(a.layoutCustomisations.showSidebar)){let l=a.layoutCustomisations.showSidebar(a,i!==0);if(i===0&&l===!0)return a.layout.recentVisibleSizes.navSize;if(i!==0&&l===!1)return 0}return i},setOptions:i=>{let{layout:a,ui:l,selectedPanel:s,theme:u}=e.getState();if(!i)return;let c={...a,...i.layout||{},...In(i,Object.keys(a)),...r&&{navSize:0}},d={...l,...i.ui,...Na(i.ui||{},In(i,Object.keys(l)))},f={...u,...i.theme},h={};Pt(l,d)||(h.ui=d),Pt(a,c)||(h.layout=c),i.selectedPanel&&!Pt(s,i.selectedPanel)&&(h.selectedPanel=i.selectedPanel),Object.keys(h).length&&e.setState(h,{persistence:"permanent"}),Pt(u,f)||e.setState({theme:f})}},o=In(e.getState(),["layout","selectedPanel"]);return t.channel?.on(AP,()=>{n.setOptions(Ir(n.getInitialOptions(),o))}),{api:n,state:Ir(n.getInitialOptions(),o)}},ib={};Le(ib,{init:()=>OP});var OP=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=xp(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=xp(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),ab={};Le(ab,{init:()=>IP});const{OPEN_IN_EDITOR_REQUEST:PP,OPEN_IN_EDITOR_RESPONSE:Vl}=__STORYBOOK_MODULE_CORE_EVENTS__;var IP=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:i,column:a}=r,l=s=>{s.file===o&&s.line===i&&s.column===a&&(e.channel?.off(Vl,l),n(s))};e.channel?.on(Vl,l),e.channel?.emit(PP,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await cr(async()=>{const{color:n}=await import("./iframe-DloIUNZz.js").then(o=>o.al);return{color:n}},__vite__mapDeps([0,1,2]),import.meta.url);e.channel?.on(Vl,n=>{n.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:n.error||"Check the Storybook process on the command line for more details."},icon:g.createElement(gA,{color:r.negative}),duration:8e3})})}}),lb={};Le(lb,{init:()=>FP});var FP=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),sb={};Le(sb,{init:()=>LP});var LP=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),ub={};Le(ub,{controlOrMetaKey:()=>Xr,defaultShortcuts:()=>Jr,init:()=>XP,isMacLike:()=>db,keys:()=>pu});var kP=wt(J5(),1);const{FORCE_REMOUNT:NP,PREVIEW_KEYDOWN:MP,STORIES_COLLAPSE_ALL:BP,STORIES_EXPAND_ALL:jP}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:cb}=__STORYBOOK_MODULE_GLOBAL__,{global:HP}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:ql}=HP,UP=()=>ql&&ql.platform?!!ql.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,KP=()=>UP()?"⌥":"alt",zP=e=>{if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=e.code?.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let i=e.key.toUpperCase(),a=o;a&&a.length===1&&a!==i?t.push([i,a]):t.push(i)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},GP=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),WP=e=>e==="alt"?KP():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧​":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e?.toUpperCase(),VP=e=>e.map(WP).join(" "),qP=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Yl,document:Rh}=cb,db=()=>Yl&&Yl.platform?!!Yl.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Xr=()=>db()?"meta":"control";function pu(e){return Object.keys(e)}var Jr=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[Xr(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[Xr(),"shift",","],aboutPage:[Xr(),","],escape:["escape"],collapseAll:[Xr(),"shift","ArrowUp"],expandAll:[Xr(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Xl={};function YP(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var XP=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Jr,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Xl},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof a=="function"?a(s.shortcuts):a}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){return await n.setShortcuts(s=>({...s,[a]:l})),l},async setAddonShortcut(a,l){return await n.setShortcuts(s=>({...s,[`${a}-${l.actionName}`]:l.defaultShortcut})),Xl[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=zP(a),s=n.getShortcutKeys(),u=pu(s).find(c=>GP(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let{ui:{enableShortcuts:s},storyId:u,refId:c,viewMode:d}=e.getState();if(s)switch(l?.preventDefault&&l.preventDefault(),a){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(fi.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(fi.storySearchField,!0)},0);break}case"focusIframe":{let f=Rh.getElementById("storybook-preview-iframe");if(f)try{f.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(fi.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{t.togglePanel();break}case"toggleNav":{t.toggleNav();break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(BP);break}case"expandAll":{t.emit(jP);break}case"remount":{t.emit(NP,{storyId:u});break}case"openInEditor":{cb.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(u&&d==="story"){let{previewHref:f}=t.getStoryHrefs(u,{refId:c});window.open(f,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(u){let{managerHref:f}=t.getStoryHrefs(u,{refId:c});(0,kP.default)(f)}break}default:Xl[a].action();break}}},{shortcuts:o=Jr}=e.getState(),i={shortcuts:pu(Jr).reduce((a,l)=>({...a,[l]:o[l]||Jr[l]}),Jr)};return{api:n,state:i,init:()=>{Rh.addEventListener("keydown",a=>{YP(a)||n.handleKeydownEvent(a)}),r.channel?.on(MP,a=>{n.handleKeydownEvent(a.event)})}}},fb={};Le(fb,{init:()=>w3});const{logger:JP}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:ZP,CURRENT_STORY_WAS_SET:QP,DOCS_PREPARED:e3,PRELOAD_ENTRIES:t3,RESET_STORY_ARGS:r3,SELECT_STORY:n3,SET_CONFIG:o3,SET_CURRENT_STORY:i3,SET_FILTER:a3,SET_INDEX:l3,SET_STORIES:s3,STORY_ARGS_UPDATED:u3,STORY_CHANGED:c3,STORY_INDEX_INVALIDATED:d3,STORY_MISSING:f3,STORY_PREPARED:p3,STORY_SPECIFIED:h3,UPDATE_STORY_ARGS:g3}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:m3}=__STORYBOOK_MODULE_GLOBAL__;wt(Z5(),1);var y3=class extends Tc{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},b3={id:"storybook/status",leader:!0,initialState:{}},Jl={SELECT:"select"};function v3({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let l={...a};for(let s of i){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe(Jl.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:Jl.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l={...a};for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{let s={...l};for(let u of a){let{storyId:c}=u;if(u.typeId!==i)switch(r){case"server":throw new y3({status:u,typeId:i});case"manager":throw new DO({status:u,typeId:i});case"preview":default:throw new RO({status:u,typeId:i})}s[c]={...s[c]??{},[i]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe(Jl.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{let s={...l};for(let u in s)if(s[u]?.[i]&&(!a||a?.includes(u))){let{[i]:c,...d}=s[u];s[u]=d}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var pb=(e,t)=>{let r=p.useRef(t?t(e.getState()):e.getState()),n=p.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!Pt(s,u)&&(r.current=s,i())}),[e,t]),o=p.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return Pt(a,r.current)||(r.current=a),r.current},[e,t]);return[p.useSyncExternalStore(n,o),e.setState]},E3=v3({universalStatusStore:mc.create({...b3,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:pb,environment:"manager"}),{fullStatusStore:Oh}=E3,{fetch:S3}=m3,$3="./index.json",x3=["enableShortcuts","theme","showRoots"];function Zl(e){if(!e||typeof e=="string")return e;let t={...e};return x3.forEach(r=>{r in t&&delete t[r]}),t}var w3=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:i,docsOptions:a={}})=>{let l={storyId:Ho,getData:(u,c)=>{let d=l.resolveStory(u,c);if(d?.type==="story"||d?.type==="docs")return d},isPrepared:(u,c)=>{let d=l.getData(u,c);return d?d.type==="story"?d.prepared:!0:!1},resolveStory:(u,c)=>{let{refs:d,index:f}=t.getState();if(!(c&&!d[c]))return c?d?.[c]?.index?.[u]??void 0:f?f[u]:void 0},getCurrentStoryData:()=>{let{storyId:u,refId:c}=t.getState();return l.getData(u,c)},getIndex:()=>{let{internal_index:u}=t.getState();return u},getParameters:(u,c)=>{let{storyId:d,refId:f}=typeof u=="string"?{storyId:u,refId:void 0}:u,h=l.getData(d,f);if(["story","docs"].includes(h?.type)){let{parameters:m}=h;if(m)return c?m[c]:m}return null},getCurrentParameter:u=>{let{storyId:c,refId:d}=t.getState();return l.getParameters({storyId:c,refId:d},u)||void 0},jumpToComponent:u=>{let{filteredIndex:c,storyId:d,refs:f,refId:h}=t.getState();if(!l.getData(d,h))return;let m=h?f[h].filteredIndex||{}:c;if(!m)return;let b=l.findSiblingStoryId(d,m,u,!0);b&&l.selectStory(b,void 0,{ref:h})},jumpToStory:u=>{let{filteredIndex:c,storyId:d,refs:f,refId:h}=t.getState(),m=l.getData(d,h);if(!m)return;let b=m.refId?f[m.refId].filteredIndex:c;if(!b)return;let v=l.findSiblingStoryId(d,b,u,!1);v&&l.selectStory(v,void 0,{ref:h})},selectFirstStory:()=>{let{index:u}=t.getState();if(!u)return;let c=Object.keys(u).find(d=>u[d].type==="story");if(c){l.selectStory(c);return}r("/")},selectStory:(u=void 0,c=void 0,d={})=>{let{ref:f}=d,{storyId:h,index:m,filteredIndex:b,refs:v,settings:y}=t.getState(),E=_=>_?.type==="docs"||_?.type==="story"?(t.setState({settings:{...y,lastTrackedStoryId:_.id}}),r(`/${_.type}/${_.refId?`${_.refId}_${_.id}`:_.id}`),!0):!1,S=h?.split("--",2)[0],$=f?v[f].index:m,C=f?v[f].filteredIndex:b;if(!(!$||!C))if(c)if(!u)E($[Ho(S,c)]);else{let _=f?`${f}_${Ho(u,c)}`:Ho(u,c);if($[_])E($[_]);else{let w=$[un(u)];if(w?.type==="component"){let T=w.children.find(D=>$[D].name===c);E(T?$[T]:void 0)}}}else{let _=u?$[u]||$[un(u)]:$[S];if(!_)throw new Error(`Unknown id or title: '${u}'`);E(_)||E(l.findLeafEntry(C,_.id))}},findLeafEntry(u,c){let d=u[c];if(d.type==="docs"||d.type==="story")return d;let f=d.children.find(h=>u[h])||d.children[0];return l.findLeafEntry(u,f)},findLeafStoryId(u,c){return l.findLeafEntry(u,c)?.id},findAllLeafStoryIds(u){let{index:c}=t.getState();if(!c)return[];let d=(f,h=[])=>{let m=c[f];return m&&(m.type==="story"&&h.push(m.id),"children"in m&&m.children?.forEach(b=>d(b,h))),h};return d(u,[])},findSiblingStoryId(u,c,d,f){if(f){let b=SP(c),v=b.findIndex(y=>y.includes(u));return v===b.length-1&&d>0||v===0&&d<0?void 0:b[v+d]?b[v+d][0]:void 0}let h=$P(c),m=h.indexOf(u);if(!(m===h.length-1&&d>0)&&!(m===0&&d<0))return h[m+d]},updateStoryArgs:(u,c)=>{let{id:d,refId:f}=u;n.channel?.emit(g3,{storyId:d,updatedArgs:c,options:{target:f}})},resetStoryArgs:(u,c)=>{let{id:d,refId:f}=u;n.channel?.emit(r3,{storyId:d,argNames:c,options:{target:f}})},fetchIndex:async()=>{try{let u=await S3($3);if(u.status!==200)throw new Error(await u.text());let c=await u.json();if(c.v<3){JP.warn(`Skipping story index with version v${c.v}, awaiting SET_STORIES.`);return}await l.setIndex(c)}catch(u){await t.setState({indexError:u})}},setIndex:async u=>{let{filteredIndex:c,index:d,filters:f}=t.getState(),h=Oh.getAll(),m=Ci(u,{provider:n,docsOptions:a,filters:f,allStatuses:h}),b=Ci(u,{provider:n,docsOptions:a,filters:{},allStatuses:h});await t.setState({internal_index:u,filteredIndex:wh(m,c),index:wh(b,d),indexError:void 0})},updateStory:async(u,c,d)=>{if(d){let{id:f,index:h,filteredIndex:m}=d;h&&h[u]&&(h[u]={...h[u],...c}),m&&m[u]&&(m[u]={...m[u],...c}),await e.updateRef(f,{index:h,filteredIndex:m})}else{let{index:f,filteredIndex:h}=t.getState();f&&f[u]&&(f[u]={...f[u],...c}),h&&h[u]&&(h[u]={...h[u],...c}),(f||h)&&await t.setState({index:f,filteredIndex:h})}},updateDocs:async(u,c,d)=>{if(d){let{id:f,index:h,filteredIndex:m}=d;h[u]={...h[u],...c},m[u]={...m[u],...c},await e.updateRef(f,{index:h,filteredIndex:m})}else{let{index:f,filteredIndex:h}=t.getState();f&&(f[u]={...f[u],...c}),h&&(h[u]={...h[u],...c}),(f||h)&&await t.setState({index:f,filteredIndex:h})}},setPreviewInitialized:async u=>{u?e.updateRef(u.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(u,c)=>{await t.setState({filters:{...t.getState().filters,[u]:c}});let{internal_index:d}=t.getState();if(!d)return;await l.setIndex(d);let f=await e.getRefs();Object.entries(f).forEach(([h,{internal_index:m,...b}])=>{e.setRef(h,{...b,storyIndex:m},!0)}),n.channel?.emit(a3,{id:u})}};n.channel?.on(h3,function({storyId:u,viewMode:c}){let{sourceType:d}=et(this,e);if(d==="local"){let f=t.getState(),h=f.path==="/"||f.viewMode==="story"||f.viewMode==="docs",m=f.viewMode&&f.storyId,b=f.viewMode!==c||f.storyId!==u,{type:v}=f.index?.[f.storyId]||{};h&&(m&&b&&!(v==="root"||v==="component"||v==="group")?n.channel?.emit(i3,{storyId:f.storyId,viewMode:f.viewMode}):b&&r(`/${c}/${u}`))}}),n.channel?.on(QP,function(){let{ref:u}=et(this,e);l.setPreviewInitialized(u)}),n.channel?.on(c3,function(){let{sourceType:u}=et(this,e);if(u==="local"){let c=l.getCurrentParameter("options");c&&e.setOptions(Zl(c))}}),n.channel?.on(p3,function({id:u,...c}){let{ref:d,sourceType:f}=et(this,e);if(l.updateStory(u,{...c,prepared:!0},d),!d&&!t.getState().hasCalledSetOptions){let{options:h}=c.parameters;e.setOptions(Zl(h)),t.setState({hasCalledSetOptions:!0})}if(f==="local"){let{storyId:h,index:m,refId:b}=t.getState();if(!m)return;let v=Array.from(new Set([l.findSiblingStoryId(h,m,1,!0),l.findSiblingStoryId(h,m,-1,!0)])).filter(Boolean);n.channel?.emit(t3,{ids:v,options:{target:b}})}}),n.channel?.on(e3,function({id:u,...c}){let{ref:d}=et(this,e);l.updateStory(u,{...c,prepared:!0},d)}),n.channel?.on(l3,function(u){let{ref:c}=et(this,e);if(c)e.setRef(c.id,{...c,storyIndex:u},!0);else{l.setIndex(u);let d=l.getCurrentParameter("options");e.setOptions(Zl(d))}}),n.channel?.on(s3,function(u){let{ref:c}=et(this,e),d=u.v?mP(u):u.stories;if(c)e.setRef(c.id,{...c,setStoriesData:d},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(n3,function({kind:u,title:c=u,story:d,name:f=d,storyId:h,...m}){let{ref:b}=et(this,e);b?e.selectStory(h||c,f,{...m,ref:b.id}):e.selectStory(h||c,f,m)}),n.channel?.on(u3,function({storyId:u,args:c}){let{ref:d}=et(this,e);l.updateStory(u,{args:c},d)}),n.channel?.on(ZP,function(u){let{ref:c}=et(this,e);l.setPreviewInitialized(c)}),n.channel?.on(f3,function(u){let{ref:c}=et(this,e);l.setPreviewInitialized(c)}),n.channel?.on(o3,()=>{let u=n.getConfig();u?.sidebar?.filters&&t.setState({filters:{...t.getState().filters,...u?.sidebar?.filters}})}),Oh.onAllStatusChange(async()=>{let{internal_index:u}=t.getState();if(!u)return;await l.setIndex(u);let c=await e.getRefs();Object.entries(c).forEach(([d,{internal_index:f,...h}])=>{e.setRef(d,{...h,storyIndex:f},!0)})});let s=n.getConfig();return{api:l,state:{storyId:o,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:s?.sidebar?.filters||{}},init:async()=>{n.channel?.on(d3,()=>l.fetchIndex()),await l.fetchIndex()}}},hb={};Le(hb,{init:()=>O3});const{GLOBALS_UPDATED:C3,NAVIGATE_URL:_3,SET_CURRENT_STORY:T3,STORY_ARGS_UPDATED:A3,UPDATE_QUERY_PARAMS:D3}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Vr}=__STORYBOOK_MODULE_GLOBAL__;var Ph=wt(Qm(),1),yr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},Ih=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),Fh=(e,t)=>{let r=Ih(e),n=Ih(t);return Object.entries({...r,...n}).map(([o,i])=>`${o}:${i}`).join(";")},Ql,R3=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d,...f}=MO(e),h,m,b;yr(i)===!0?(h=0,m=0,b=0):yr(i)===!1&&(h=tt.layout.navSize,m=tt.layout.bottomPanelHeight,b=tt.layout.rightPanelWidth),o||(yr(l)===!0&&(h=tt.layout.navSize),yr(l)===!1&&(h=0)),yr(a)===!1&&(m=0,b=0);let v={navSize:h,bottomPanelHeight:m,rightPanelWidth:b,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:yr(c)},y={enableShortcuts:yr(s)},E=u||void 0,S=n,$=Ft(Ql,f)?Ql:f;return Ql=$,{viewMode:r,layout:v,ui:y,selectedPanel:E,location:e,path:t,customQueryParams:$,storyId:S}},O3=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(u,c={},d={})=>{let f=Object.entries(c).filter(([,m])=>m).sort(([m],[b])=>m<b?-1:1).map(([m,b])=>`${m}=${b}`),h=[u,...f].join("&");return r(h,d)},a={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},h=u===d&&c.refId===f,{customQueryParams:m,location:b,refs:v}=t.getState(),{base:y,inheritArgs:E=h,inheritGlobals:S=!0,queryParams:$={},refId:C,viewMode:_="story"}=c;if(C&&!v[C])throw new Error(`Invalid refId: ${C}`);let w=b.pathname||"/",T=Vr.window.location.origin+w,D=Vr.STORYBOOK_NETWORK_ADDRESS??T,P=y==="origin"?T:y==="network"?D:w,x=C?v[C].url+"/iframe.html":Vr.PREVIEW_URL||`${P.replace(/\/[^/]*$/,"/")}iframe.html`,k=C?`&refId=${encodeURIComponent(C)}`:"",{args:L="",globals:A="",...O}=$,I=E?Fh(m?.args??"",L):L,F=S?Fh(m?.globals??"",A):A,M=(0,Ph.stringify)(O,{nesting:!0,nestingSyntax:"js"}),B=(0,Ph.stringify)(J$(O,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return I=I&&`&args=${I}`,F=F&&`&globals=${F}`,M=M&&`&${M}`,B=B&&`&${B}`,{managerHref:`${P}?path=/${_}/${C?`${C}_`:""}${u}${I}${F}${M}`,previewHref:`${x}?id=${u}&viewMode=${_}${k}${I}${C?"":F}${B}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:h,viewMode:m}=t.getState();return{path:c,hash:u.hash??"",queryParams:d,storyId:f,url:h,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={},f={...c,...Object.entries(u).reduce((h,[m,b])=>(b!==null&&(h[m]=b),h),d)};Ft(c,f)||(t.setState({customQueryParams:f}),n.channel?.emit(D3,f))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:h}=a.getUrlState();i(`${d}${f}`,{...h,...u},c),a.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:f}=a.getUrlState();if(f!=="story")return;let h=o.getCurrentStoryData();if(h?.type!=="story")return;let{args:m,initialArgs:b}=h,v=Cp(b,m);i(`${u}${c}`,{...d,args:v},{replace:!0}),a.setQueryParams({args:v})};n.channel?.on(T3,()=>l());let s;return n.channel?.on(A3,()=>{"requestIdleCallback"in Vr.window?(s&&Vr.window.cancelIdleCallback(s),s=Vr.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(C3,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:h}=a.getUrlState(),m=Cp(c,Ir(c,u));i(`${d}${f}`,{...h,globals:m},{replace:!0}),a.setQueryParams({globals:m})}),n.channel?.on(_3,(u,c)=>{a.navigateUrl(u,c)}),{api:a,state:R3(e)}},gb={};Le(gb,{init:()=>k3});var P3=wt(yo(),1);const{global:hu}=__STORYBOOK_MODULE_GLOBAL__;var I3="10.2.12",{VERSIONCHECK:F3}=hu,Lh=(0,P3.default)(1)(()=>{try{return{...JSON.parse(F3).data||{}}}catch{return{}}}),L3=e=>e.includes("vue")?"vue":e,k3=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:I3},...Lh()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&&Qe.prerelease(a.version)&&i?o&&Qe.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,f=d?.startsWith("0.0.0")&&c||d,h=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)h+=`${Qe.major(f)}.${Qe.minor(f)}/`;else if(a&&f&&c){let v=Qe.diff(c,f);v==="patch"||v===null||(h+=`${Qe.major(f)}.${Qe.minor(f)}/`)}let[m,b]=i?.split("#")||[];if(m&&(h+=o?m:`${m}/`),l&&typeof hu.STORYBOOK_RENDERER<"u"){let v=hu.STORYBOOK_RENDERER;v&&(h+=`?renderer=${L3(v)}`)}return s&&(h+=`${h.includes("?")?"&":"?"}ref=${s}`),b&&(h+=`#${b}`),h},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=Qe.prerelease(i.version)?`${Qe.major(i.version)}.${Qe.minor(i.version)}.${Qe.patch(i.version)}`:i.version,l=Qe.diff(a,o.version);return Qe.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=Lh();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},mb={};Le(mb,{init:()=>K3});const{REQUEST_WHATS_NEW_DATA:N3,RESULT_WHATS_NEW_DATA:M3,SET_WHATS_NEW_CACHE:B3,TOGGLE_WHATS_NEW_NOTIFICATIONS:j3}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:H3}=__STORYBOOK_MODULE_GLOBAL__;var kh="whats-new",U3=({color:e="currentColor",size:t=14})=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),K3=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={isWhatsNewUnread(){return n.whatsNewData?.status==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){n.whatsNewData?.status==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(kh))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(j3,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){return r.channel?.emit(N3),new Promise(s=>r.channel?.once(M3,({data:u})=>s(u)))}function l(s){r.channel?.emit(B3,s)}return{init:async()=>{if(H3.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();o(s);let u=e.getUrlState();!(u?.path==="/onboarding"||u.queryParams?.onboarding==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:kh,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:g.createElement(U3,null),onClear({dismissed:c}){c&&l({lastDismissedPost:s.url})}})},state:n,api:i}},Wn=wt(Q5(),1),z3=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),_O(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?AO(n):r||n})};z3(Wn.default._);var yb="@storybook/manager/store";function gu(e){return e.get(yb)||{}}function G3(e,t){return e.set(yb,t)}function W3(e,t){let r=gu(e);return G3(e,{...r,...t})}var V3=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return{...e,...gu(Wn.default.local),...gu(Wn.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:i="none"}=o||{},a={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"){let u=i==="session"?Wn.default.session:Wn.default.local;await W3(u,l)}return n&&n(s),s}},{ActiveTabs:ZK}=jc,bb=eP({api:void 0,state:uu({})}),q3=(...e)=>tP({},...e),Y3=class extends p.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(b=>{"init"in b&&b.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:i,storyId:a,docsOptions:l,navigate:s}=e,u=new V3({getState:()=>this.state,setState:(b,v)=>(this.setState(b,()=>v(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(uu({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[lb,Jy,Xy,jc,ib,sb,ub,fb,Qy,Zy,hb,gb,mb,ab].map(b=>b.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let h=uu(this.state,...this.modules.map(b=>b.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(b=>b.api));this.state=h,this.api=m}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Pt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return g.createElement(X3,{effect:this.initModules},g.createElement(bb.Provider,{value:t},g.createElement(Z3,null,e)))}};Y3.displayName="Manager";var X3=({children:e,effect:t})=>(g.useEffect(t,[]),e),J3=e=>e;function Z3({filter:e=J3,children:t}){let r=p.useContext(bb),n=p.useRef(t),o=p.useRef(e);if(typeof n.current!="function")return g.createElement(p.Fragment,null,n.current);let i=o.current(r),a=p.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return p.useMemo(()=>{let l=n.current;return g.createElement(l,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:QK}=__STORYBOOK_MODULE_CHANNELS__;var Q3={id:"storybook/test-provider",leader:!0,initialState:{}};function e2({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=i=>{let a=()=>e.getState()[i]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[i]:s}))})};return{...r,testProviderId:i,getState:a,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}e2({universalTestProviderStore:mc.create({...Q3,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:pb});var t2={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},r2={id:"storybook/checklist",initialState:t2};mc.create({...r2,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var es={exports:{}},ts={};var Nh;function n2(){if(Nh)return ts;Nh=1;var e=Wm();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(d,f){var h=f(),m=n({inst:{value:h,getSnapshot:f}}),b=m[0].inst,v=m[1];return i(function(){b.value=h,b.getSnapshot=f,s(b)&&v({inst:b})},[d,h,f]),o(function(){return s(b)&&v({inst:b}),d(function(){s(b)&&v({inst:b})})},[d]),a(h),h}function s(d){var f=d.getSnapshot;d=d.value;try{var h=f();return!r(d,h)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return ts.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,ts}var Mh;function o2(){return Mh||(Mh=1,es.exports=n2()),es.exports}var i2=o2(),ge=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},_n=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Jt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),be=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Ur={margin:"16px 0"},Hc=R.div(be),a2=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return g.createElement("a",{href:r,target:n,...t})},vb=R(a2)(be,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),Eb=R.blockquote(be,Ur,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Fr=[],fn=null,l2=p.lazy(async()=>{let{SyntaxHighlighter:e}=await cr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-ED5Y7EFY-Bjjbl9ca.js");return{SyntaxHighlighter:t}},__vite__mapDeps([3,0,1,2]),import.meta.url);return Fr.length>0&&(Fr.forEach(t=>{e.registerLanguage(...t)}),Fr=[]),fn===null&&(fn=e),{default:t=>g.createElement(e,{...t})}}),s2=p.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([cr(()=>import("./syntaxhighlighter-ED5Y7EFY-Bjjbl9ca.js"),__vite__mapDeps([3,0,1,2]),import.meta.url),cr(()=>import("./formatter-EIJCOSYU-CZSAC3tg.js"),__vite__mapDeps([4,0,1,2]),import.meta.url)]);return Fr.length>0&&(Fr.forEach(r=>{e.registerLanguage(...r)}),Fr=[]),fn===null&&(fn=e),{default:r=>g.createElement(e,{...r,formatter:t})}}),Co=e=>g.createElement(p.Suspense,{fallback:g.createElement("div",null)},e.format!==!1?g.createElement(s2,{...e}):g.createElement(l2,{...e}));Co.registerLanguage=(...e)=>{if(fn!==null){fn.registerLanguage(...e);return}Fr.push(e)};var u2=e=>typeof e=="string",c2=/[\n\r]/g,d2=R.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),Jt),f2=R(Co)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Uc=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=p.Children.toArray(t);return o.filter(u2).some(i=>i.match(c2))?g.createElement(f2,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):g.createElement(d2,{...r,className:e},o)},Sb=R.dl(be,Ur,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),$b=R.div(be),xb=R.h1(be,_n,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Kc=R.h2(be,_n,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),zc=R.h3(be,_n,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),wb=R.h4(be,_n,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),Cb=R.h5(be,_n,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),_b=R.h6(be,_n,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),Tb=R.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),Ab=R.img({maxWidth:"100%"}),Db=R.li(be,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Jt({theme:e})})),p2={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Rb=R.ol(be,Ur,p2,{listStyle:"decimal"}),Ob=R.p(be,Ur,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Jt({theme:e})})),Pb=R.pre(be,Ur,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),Ib=R.span(be,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),Fb=R.title(Jt),Lb=R.table(be,Ur,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),h2={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},kb=R.ul(be,Ur,h2,{listStyle:"disc"}),Nb={h1:e=>g.createElement(xb,{...ge(e,"h1")}),h2:e=>g.createElement(Kc,{...ge(e,"h2")}),h3:e=>g.createElement(zc,{...ge(e,"h3")}),h4:e=>g.createElement(wb,{...ge(e,"h4")}),h5:e=>g.createElement(Cb,{...ge(e,"h5")}),h6:e=>g.createElement(_b,{...ge(e,"h6")}),pre:e=>g.createElement(Pb,{...ge(e,"pre")}),a:e=>g.createElement(vb,{...ge(e,"a")}),hr:e=>g.createElement(Tb,{...ge(e,"hr")}),dl:e=>g.createElement(Sb,{...ge(e,"dl")}),blockquote:e=>g.createElement(Eb,{...ge(e,"blockquote")}),table:e=>g.createElement(Lb,{...ge(e,"table")}),img:e=>g.createElement(Ab,{...ge(e,"img")}),div:e=>g.createElement($b,{...ge(e,"div")}),span:e=>g.createElement(Ib,{...ge(e,"span")}),li:e=>g.createElement(Db,{...ge(e,"li")}),ul:e=>g.createElement(kb,{...ge(e,"ul")}),ol:e=>g.createElement(Rb,{...ge(e,"ol")}),p:e=>g.createElement(Ob,{...ge(e,"p")}),code:e=>g.createElement(Uc,{...ge(e,"code")}),tt:e=>g.createElement(Fb,{...ge(e,"tt")}),resetwrapper:e=>g.createElement(Hc,{...ge(e,"resetwrapper")})};R.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${Xt(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Ge(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${Xt(.9,e.color.secondary)}`};default:return{}}});var g2=0,m2=e=>e.button===g2&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,y2=(e,t)=>{m2(e)&&(e.preventDefault(),t(e))},b2=R.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),v2=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ge(.07,e.color.secondary),"svg path:not([fill])":{fill:Ge(.07,e.color.secondary)}},"&:active":{color:Ge(.1,e.color.secondary),"svg path:not([fill])":{fill:Ge(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),pn=p.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,style:a=void 0,isButton:l=!1,...s},u)=>g.createElement(v2,{...s,ref:u,isButton:l,role:l?"button":void 0,onClick:r&&e?c=>y2(c,r):r,className:i},g.createElement(b2,{withArrow:n,containsIcon:o},t,n&&g.createElement(py,null))));pn.displayName="Link";R.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:mu}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Bh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function E2(...e){return t=>{let r=!1,n=e.map(o=>{let i=Bh(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():Bh(e[o],null)}}}}var S2=Symbol.for("react.lazy"),_i=M$[" use ".trim().toString()];function $2(e){return typeof e=="object"&&e!==null&&"then"in e}function Mb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===S2&&"_payload"in e&&$2(e._payload)}function x2(e){let t=C2(e),r=p.forwardRef((n,o)=>{let{children:i,...a}=n;Mb(i)&&typeof _i=="function"&&(i=_i(i._payload));let l=p.Children.toArray(i),s=l.find(T2);if(s){let u=s.props.children,c=l.map(d=>d===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:d);return oe.jsx(t,{...a,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return oe.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var w2=x2("Slot");function C2(e){let t=p.forwardRef((r,n)=>{let{children:o,...i}=r;if(Mb(o)&&typeof _i=="function"&&(o=_i(o._payload)),p.isValidElement(o)){let a=D2(o),l=A2(i,o.props);return o.type!==p.Fragment&&(l.ref=n?E2(n,a):a),p.cloneElement(o,l)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _2=Symbol("radix.slottable");function T2(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_2}function A2(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function D2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var R2=R.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),Bb=({note:e,...t})=>g.createElement(R2,{...t},e);const{deprecate:O2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ue=typeof document<"u"?g.useLayoutEffect:()=>{};function P2(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),i=p.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?i.current():r(l.value)});ue(()=>{n.current=t,o.current&&i.current()});let a=p.useCallback(l=>{o.current=l(n.current),i.current()},[i]);return[t,a]}var jb={prefix:String(Math.round(Math.random()*1e10)),current:0},Hb=g.createContext(jb),I2=g.createContext(!1),rs=new WeakMap;function F2(e=!1){let t=p.useContext(Hb),r=p.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=rs.get(i);a==null?rs.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,rs.delete(i))}r.current=++t.current}return r.current}function L2(e){let t=p.useContext(Hb),r=F2(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function k2(e){let t=g.useId(),[r]=p.useState(Kr()),n=r?"react-aria":`react-aria${jb.prefix}`;return e||`${n}-${t}`}var N2=typeof g.useId=="function"?k2:L2;function M2(){return!1}function B2(){return!0}function j2(e){return()=>{}}function Kr(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(j2,M2,B2):p.useContext(I2)}var H2=!!(typeof window<"u"&&window.document&&window.document.createElement),nn=new Map,Vn;typeof FinalizationRegistry<"u"&&(Vn=new FinalizationRegistry(e=>{nn.delete(e)}));function Fe(e){let[t,r]=p.useState(e),n=p.useRef(null),o=N2(t),i=p.useRef(null);if(Vn&&Vn.register(i,o),H2){let a=nn.get(o);a&&!a.includes(n)?a.push(n):nn.set(o,[n])}return ue(()=>{let a=o;return()=>{Vn&&Vn.unregister(i),nn.delete(a)}},[o]),p.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function U2(e,t){if(e===t)return e;let r=nn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=nn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function pi(e=[]){let t=Fe(),[r,n]=P2(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ue(o,[t,o,...e]),r}function _o(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ce=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},ct=e=>e&&"window"in e&&e.window===e?e:ce(e).defaultView||window;function st(e,t){return t&&e?e.contains(t):!1}var Oe=(e=document)=>e.activeElement;function $e(e){return e.target}function K2(e,t,r,n){return e.createTreeWalker(t,r,n)}function Ub(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ub(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function z2(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ub(e))&&(n&&(n+=" "),n+=t);return n}var G2=z2;function ee(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=_o(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=G2(i,a):o==="id"&&i&&a?t.id=U2(i,a):t[o]=a!==void 0?a:i}}return t}function Gc(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=jh(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():jh(e[i],null)})}}}function jh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var W2=new Set(["id"]),V2=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),q2=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Y2=new Set(["dir","lang","hidden","inert","translate"]),Hh=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),X2=/^(data-.*)$/;function ve(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(W2.has(s)||r&&V2.has(s)||n&&q2.has(s)||o&&Y2.has(s)||i&&(Hh.has(s)||s.endsWith("Capture")&&Hh.has(s.slice(0,-7)))||a?.has(s)||X2.test(s))&&(l[s]=e[s]);return l}function qe(e){if(J2())e.focus({preventScroll:!0});else{let t=Z2(e);e.focus(),Q2(t)}}var Wo=null;function J2(){if(Wo==null){Wo=!1;try{document.createElement("div").focus({get preventScroll(){return Wo=!0,!0}})}catch{}}return Wo}function Z2(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Q2(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function sa(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Wc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Zt(e){let t=null;return()=>(t==null&&(t=e()),t)}var kr=Zt(function(){return Wc(/^Mac/i)}),eI=Zt(function(){return Wc(/^iPhone/i)}),Kb=Zt(function(){return Wc(/^iPad/i)||kr()&&navigator.maxTouchPoints>1}),ua=Zt(function(){return eI()||Kb()}),tI=Zt(function(){return kr()||ua()}),zb=Zt(function(){return sa(/AppleWebKit/i)&&!Gb()}),Gb=Zt(function(){return sa(/Chrome/i)}),Vc=Zt(function(){return sa(/Android/i)}),rI=Zt(function(){return sa(/Firefox/i)}),nI=p.createContext({isNative:!0,open:aI,useHref:e=>e});function ca(){return p.useContext(nI)}function oI(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Nr(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;rI()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(kr()?i=!0:a=!0);let u=zb()&&kr()&&!Kb()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Nr.isOpening=r,qe(e),e.dispatchEvent(u),Nr.isOpening=!1}Nr.isOpening=!1;function iI(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function aI(e,t){iI(e,r=>Nr(r,t))}function Wb(e){let t=ca();var r;let n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function lI(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&oI(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var sr=new Map,yu=new Set;function Uh(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=sr.get(n.target);o||(o=new Set,sr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=sr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),sr.delete(n.target)),sr.size===0)){for(let i of yu)i();yu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Uh():document.addEventListener("DOMContentLoaded",Uh));function sI(){for(let[e]of sr)"isConnected"in e&&!e.isConnected&&sr.delete(e)}function Vb(e){requestAnimationFrame(()=>{sI(),sr.size===0?e():yu.add(e)})}function da(){let e=p.useRef(new Map),t=p.useCallback((o,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=p.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=p.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function fa(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Fe(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function At(e){let t=p.useRef(null),r=p.useRef(void 0),n=p.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var ns,uI=(ns=g.useInsertionEffect)!==null&&ns!==void 0?ns:ue;function Pe(e){let t=p.useRef(null);return uI(()=>{t.current=e},[e]),p.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function Kh(e,t){let r=p.useRef(!0),n=p.useRef(null);ue(()=>(r.current=!0,()=>{r.current=!1}),[]),ue(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function cI(){return typeof window.ResizeObserver<"u"}function Ti(e){let{ref:t,box:r,onResize:n}=e,o=Pe(n);p.useEffect(()=>{let i=t?.current;if(i)if(cI()){let a=new window.ResizeObserver(l=>{l.length&&o()});return a.observe(i,{box:r}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function qc(e,t){ue(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function hn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function qb(e,t){let r=e;for(hn(r,t)&&(r=r.parentElement);r&&!hn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function dI(e,t){let r=[];for(;e&&e!==document.documentElement;)hn(e,t)&&r.push(e),e=e.parentElement;return r}function Zr(e){return kr()?e.metaKey:e.ctrlKey}var fI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function os(e){return e instanceof HTMLInputElement&&!fI.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var pI=0,is=new Map;function hI(e){let[t,r]=p.useState();return ue(()=>{if(!e)return;let n=is.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${pI++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},is.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),is.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function qn(e,t,r,n){let o=Pe(r),i=r==null;p.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i])}function Yb(e,t){let r=zh(e,t,"left"),n=zh(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:h}=getComputedStyle(e),m=a+parseInt(u,10),b=l+parseInt(s,10),v=m+e.clientWidth,y=b+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(f,10)||0,$=parseInt(d,10)||0,C=parseInt(h,10)||0;r<=a+C?a=r-parseInt(u,10)-C:r+o>v-$&&(a+=r+o-v+$),n<=b+E?l=n-parseInt(s,10)-E:n+i>y-S&&(l+=n+i-y+S),e.scrollLeft=a,e.scrollTop=l}function zh(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Gh(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,l=window.getComputedStyle(a).overflow==="hidden";if(l){let s=dI(e);l||s.push(a);for(let u of s)Yb(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Xb(e){return e.pointerType===""&&e.isTrusted?!0:Vc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function gI(e){return!Vc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Wh(e){let t=p.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var mI="react-aria-clear-focus",yI="react-aria-focus";function Jb(e,t=!0){let[r,n]=p.useState(!0),o=r&&t;return ue(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),Qb(e,o,p.useCallback(()=>n(!1),[])),o}function Zb(e,t){let[r,n]=p.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return Qb(e,o,p.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Qb(e,t,r){ue(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||vo.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var bI=typeof Element<"u"&&"checkVisibility"in Element.prototype;function vI(e){let t=ct(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function EI(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Yc(e,t){return bI?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&vI(e)&&EI(e,t)&&(!e.parentElement||Yc(e.parentElement,e))}var Xc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],SI=Xc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Xc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var $I=Xc.join(':not([hidden]):not([tabindex="-1"]),');function e1(e){return e.matches(SI)&&Yc(e)&&!t1(e)}function xI(e){return e.matches($I)&&Yc(e)&&!t1(e)}function t1(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var as,wI=typeof document<"u"?(as=g.useInsertionEffect)!==null&&as!==void 0?as:g.useLayoutEffect:()=>{};function pa(e,t,r){let[n,o]=p.useState(e||t),i=p.useRef(n),a=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{a.current,a.current=l},[l]);let s=l?e:n;wI(()=>{i.current=s});let[,u]=p.useReducer(()=>({}),{}),c=p.useCallback((d,...f)=>{let h=typeof d=="function"?d(i.current):d;Object.is(i.current,h)||(i.current=h,o(h),u(),r?.(h,...f))},[r]);return[s,c]}function so(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Jc(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function r1(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function n1(e){let t=p.useRef({isFocused:!1,observer:null});ue(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Pe(n=>{e?.(n)});return p.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=Jc(a);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var Ai=!1;function CI(e){for(;e&&!e1(e);)e=e.parentElement;let t=ct(e),r=t.document.activeElement;if(!r||r===e)return;Ai=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,qe(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,qe(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),Ai=!1,n=!1},u=requestAnimationFrame(s);return s}var tn="default",bu="",hi=new WeakMap;function _I(e){if(ua()){if(tn==="default"){let t=ce(e);bu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";hi.set(e,e.style[t]),e.style[t]="none"}}function Vh(e){if(ua()){if(tn!=="disabled")return;tn="restoring",setTimeout(()=>{Vb(()=>{if(tn==="restoring"){let t=ce(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=bu||""),bu="",tn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&hi.has(e)){let t=hi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),hi.delete(e)}}var uo=g.createContext({register:()=>{}});uo.displayName="PressResponderContext";function TI(e,t){return t.get?t.get.call(e):t.value}function o1(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function AI(e,t){var r=o1(e,t,"get");return TI(e,r)}function DI(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function RI(e,t,r){DI(e,t),t.set(e,r)}function OI(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function qh(e,t,r){var n=o1(e,t,"set");return OI(e,n,r),r}function PI(e){let t=p.useContext(uo);if(t){let{register:r,...n}=t;e=ee(n,e),r()}return qc(t,e.ref),e}var Vo=new WeakMap,qo=class{continuePropagation(){qh(this,Vo,!1)}get shouldStopPropagation(){return AI(this,Vo)}constructor(e,t,r,n){RI(this,Vo,{writable:!0,value:void 0}),qh(this,Vo,!0);var o;let i=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,a=i?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},Yh=Symbol("linkClicked"),Xh="react-aria-pressable-style",Jh="data-react-aria-pressable";function To(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...h}=PI(e),[m,b]=p.useState(!1),v=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:E}=da(),S=Pe((x,k)=>{let L=v.current;if(l||L.didFirePressStart)return!1;let A=!0;if(L.isTriggeringEvent=!0,n){let O=new qo("pressstart",k,x);n(O),A=O.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,b(!0),A}),$=Pe((x,k,L=!0)=>{let A=v.current;if(!A.didFirePressStart)return!1;A.didFirePressStart=!1,A.isTriggeringEvent=!0;let O=!0;if(o){let I=new qo("pressend",k,x);o(I),O=I.shouldStopPropagation}if(r&&r(!1),b(!1),t&&L&&!l){let I=new qo("press",k,x);t(I),O&&(O=I.shouldStopPropagation)}return A.isTriggeringEvent=!1,O}),C=Pe((x,k)=>{let L=v.current;if(l)return!1;if(i){L.isTriggeringEvent=!0;let A=new qo("pressup",k,x);return i(A),L.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),_=Pe(x=>{let k=v.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&$(br(k.target,x),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,E(),d||Vh(k.target);for(let L of k.disposables)L();k.disposables=[]}}),w=Pe(x=>{c&&_(x)}),T=Pe(x=>{l||a?.(x)}),D=Pe((x,k)=>{if(!l&&a){let L=new MouseEvent("click",x);r1(L,k),a(Jc(L))}}),P=p.useMemo(()=>{let x=v.current,k={onKeyDown(A){if(ls(A.nativeEvent,A.currentTarget)&&st(A.currentTarget,$e(A.nativeEvent))){var O;Zh($e(A.nativeEvent),A.key)&&A.preventDefault();let I=!0;if(!x.isPressed&&!A.repeat){x.target=A.currentTarget,x.isPressed=!0,x.pointerType="keyboard",I=S(A,"keyboard");let F=A.currentTarget,M=B=>{ls(B,F)&&!B.repeat&&st(F,$e(B))&&x.target&&C(br(x.target,B),"keyboard")};y(ce(A.currentTarget),"keyup",_o(M,L),!0)}I&&A.stopPropagation(),A.metaKey&&kr()&&((O=x.metaKeyEvents)===null||O===void 0||O.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(A){if(!(A&&!st(A.currentTarget,$e(A.nativeEvent)))&&A&&A.button===0&&!x.isTriggeringEvent&&!Nr.isOpening){let O=!0;if(l&&A.preventDefault(),!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||Xb(A.nativeEvent))){let I=S(A,"virtual"),F=C(A,"virtual"),M=$(A,"virtual");T(A),O=I&&F&&M}else if(x.isPressed&&x.pointerType!=="keyboard"){let I=x.pointerType||A.nativeEvent.pointerType||"virtual",F=C(br(A.currentTarget,A),I),M=$(br(A.currentTarget,A),I,!0);O=F&&M,x.isOverTarget=!1,T(A),_(A)}x.ignoreEmulatedMouseEvents=!1,O&&A.stopPropagation()}}},L=A=>{var O;if(x.isPressed&&x.target&&ls(A,x.target)){var I;Zh($e(A),A.key)&&A.preventDefault();let M=$e(A),B=st(x.target,$e(A));$(br(x.target,A),"keyboard",B),B&&D(A,x.target),E(),A.key!=="Enter"&&Zc(x.target)&&st(x.target,M)&&!A[Yh]&&(A[Yh]=!0,Nr(x.target,A,!1)),x.isPressed=!1,(I=x.metaKeyEvents)===null||I===void 0||I.delete(A.key)}else if(A.key==="Meta"&&!((O=x.metaKeyEvents)===null||O===void 0)&&O.size){var F;let M=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let B of M.values())(F=x.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){k.onPointerDown=I=>{if(I.button!==0||!st(I.currentTarget,$e(I.nativeEvent)))return;if(gI(I.nativeEvent)){x.pointerType="virtual";return}x.pointerType=I.pointerType;let F=!0;if(!x.isPressed){x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=I.pointerId,x.target=I.currentTarget,d||_I(x.target),F=S(I,x.pointerType);let M=$e(I.nativeEvent);"releasePointerCapture"in M&&M.releasePointerCapture(I.pointerId),y(ce(I.currentTarget),"pointerup",A,!1),y(ce(I.currentTarget),"pointercancel",O,!1)}F&&I.stopPropagation()},k.onMouseDown=I=>{if(st(I.currentTarget,$e(I.nativeEvent))&&I.button===0){if(u){let F=CI(I.target);F&&x.disposables.push(F)}I.stopPropagation()}},k.onPointerUp=I=>{!st(I.currentTarget,$e(I.nativeEvent))||x.pointerType==="virtual"||I.button===0&&!x.isPressed&&C(I,x.pointerType||I.pointerType)},k.onPointerEnter=I=>{I.pointerId===x.activePointerId&&x.target&&!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,S(br(x.target,I),x.pointerType))},k.onPointerLeave=I=>{I.pointerId===x.activePointerId&&x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,$(br(x.target,I),x.pointerType,!1),w(I))};let A=I=>{if(I.pointerId===x.activePointerId&&x.isPressed&&I.button===0&&x.target){if(st(x.target,$e(I))&&x.pointerType!=null){let F=!1,M=setTimeout(()=>{x.isPressed&&x.target instanceof HTMLElement&&(F?_(I):(qe(x.target),x.target.click()))},80);y(I.currentTarget,"click",()=>F=!0,!0),x.disposables.push(()=>clearTimeout(M))}else _(I);x.isOverTarget=!1}},O=I=>{_(I)};k.onDragStart=I=>{st(I.currentTarget,$e(I.nativeEvent))&&_(I)}}return k},[y,l,u,E,d,_,w,$,S,C,T,D]);return p.useEffect(()=>{if(!f)return;let x=ce(f.current);if(!x||!x.head||x.getElementById(Xh))return;let k=x.createElement("style");k.id=Xh,k.textContent=`
612
+ @layer {
613
+ [${Jh}] {
614
+ touch-action: pan-x pan-y pinch-zoom;
615
+ }
616
+ }
617
+ `.trim(),x.head.prepend(k)},[f]),p.useEffect(()=>{let x=v.current;return()=>{var k;d||Vh((k=x.target)!==null&&k!==void 0?k:void 0);for(let L of x.disposables)L();x.disposables=[]}},[d]),{isPressed:s||m,pressProps:ee(h,P,{[Jh]:!0})}}function Zc(e){return e.tagName==="A"&&e.hasAttribute("href")}function ls(e,t){let{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof ct(o).HTMLInputElement&&!i1(o,r)||o instanceof ct(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Zc(o))&&r!=="Enter")}function br(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function II(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zc(e)}function Zh(e,t){return e instanceof HTMLInputElement?!i1(e,t):II(e)}var FI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function i1(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":FI.has(e.type)}var dr=null,co=new Set,Zn=new Map,Mr=!1,vu=!1,LI={Tab:!0,Escape:!0};function Qc(e,t){for(let r of co)r(e,t)}function kI(e){return!(e.metaKey||!kr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Di(e){Mr=!0,kI(e)&&(dr="keyboard",Qc("keyboard",e))}function on(e){dr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mr=!0,Qc("pointer",e))}function a1(e){Xb(e)&&(Mr=!0,dr="virtual")}function l1(e){e.target===window||e.target===document||Ai||!e.isTrusted||(!Mr&&!vu&&(dr="virtual",Qc("virtual",e)),Mr=!1,vu=!1)}function s1(){Ai||(Mr=!1,vu=!0)}function Ri(e){if(typeof window>"u"||typeof document>"u"||Zn.get(ct(e)))return;let t=ct(e),r=ce(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mr=!0,n.apply(this,arguments)},r.addEventListener("keydown",Di,!0),r.addEventListener("keyup",Di,!0),r.addEventListener("click",a1,!0),t.addEventListener("focus",l1,!0),t.addEventListener("blur",s1,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",on,!0),r.addEventListener("pointermove",on,!0),r.addEventListener("pointerup",on,!0)),t.addEventListener("beforeunload",()=>{u1(e)},{once:!0}),Zn.set(t,{focus:n})}var u1=(e,t)=>{let r=ct(e),n=ce(e);t&&n.removeEventListener("DOMContentLoaded",t),Zn.has(r)&&(r.HTMLElement.prototype.focus=Zn.get(r).focus,n.removeEventListener("keydown",Di,!0),n.removeEventListener("keyup",Di,!0),n.removeEventListener("click",a1,!0),r.removeEventListener("focus",l1,!0),r.removeEventListener("blur",s1,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",on,!0),n.removeEventListener("pointermove",on,!0),n.removeEventListener("pointerup",on,!0)),Zn.delete(r))};function NI(e){let t=ce(e),r;return t.readyState!=="loading"?Ri(e):(r=()=>{Ri(e)},t.addEventListener("DOMContentLoaded",r)),()=>u1(e,r)}typeof document<"u"&&NI();function fo(){return dr!=="pointer"}function po(){return dr}function MI(){Ri();let[e,t]=p.useState(dr);return p.useEffect(()=>{let r=()=>{t(dr)};return co.add(r),()=>{co.delete(r)}},[]),Kr()?null:e}var BI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function jI(e,t,r){let n=ce(r?.target),o=typeof window<"u"?ct(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ct(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ct(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?ct(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!BI.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!LI[r.key])}function HI(e,t,r){Ri(),p.useEffect(()=>{let n=(o,i)=>{jI(!!r?.isTextInput,o,i)&&e(fo())};return co.add(n),()=>{co.delete(n)}},t)}function fr(e){let t=ce(e),r=Oe(t);if(po()==="virtual"){let n=r;Vb(()=>{Oe(t)===n&&e.isConnected&&qe(e)})}else qe(e)}function ed(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,i=p.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),a=n1(i),l=p.useCallback(s=>{let u=ce(s.target),c=u?Oe(u):Oe();s.target===s.currentTarget&&c===$e(s.nativeEvent)&&(r&&r(s),o&&o(!0),a(s))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function Qh(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function c1(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Qh(e.onKeyDown),onKeyUp:Qh(e.onKeyUp)}}}var Oi=g.createContext(null);function UI(e){let t=p.useContext(Oi)||{};qc(t,e);let{ref:r,...n}=t;return n}var KI=g.forwardRef(function(e,t){let{children:r,...n}=e,o=At(t),i={...n,ref:o};return g.createElement(Oi.Provider,{value:i},r)});function Ao(e,t){let{focusProps:r}=ed(e),{keyboardProps:n}=c1(e),o=ee(r,n),i=UI(t),a=e.isDisabled?{}:i,l=p.useRef(e.autoFocus);p.useEffect(()=>{l.current&&t.current&&fr(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ee({...o,tabIndex:s},a)}}var zI=p.forwardRef(({children:e,...t},r)=>{r=At(r);let{focusableProps:n}=Ao(t,r),o=g.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(g.version,10)<19?o.ref:o.props.ref;return g.cloneElement(o,{...ee(n,o.props),ref:Gc(i,r)})}),GI=g.forwardRef(({children:e,...t},r)=>{r=At(r);let{pressProps:n}=To({...t,ref:r}),{focusableProps:o}=Ao(t,r),i=g.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(g.version,10)<19?i.ref:i.props.ref;return g.cloneElement(i,{...ee(n,o,i.props),ref:Gc(a,r)})}),WI=g.forwardRef(({children:e,...t},r)=>{let n=p.useRef(!1),o=p.useContext(uo);r=At(r||o?.ref);let i=ee(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return qc(o,r),p.useEffect(()=>{n.current||(n.current=!0)},[]),g.createElement(uo.Provider,{value:i},e)});function VI({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return g.createElement(uo.Provider,{value:t},e)}function td(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=da(),s=p.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,i,l]),u=n1(s),c=p.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=ce(d.target),h=Oe(f);if(!i.current.isFocusWithin&&h===$e(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let m=d.currentTarget;a(f,"focus",b=>{if(i.current.isFocusWithin&&!st(m,b.target)){let v=new f.defaultView.FocusEvent("blur",{relatedTarget:b.target});r1(v,m);let y=Jc(v);s(y)}},{capture:!0})}},[n,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var Eu=!1,Yo=0;function qI(){Eu=!0,setTimeout(()=>{Eu=!1},50)}function eg(e){e.pointerType==="touch"&&qI()}function YI(){if(!(typeof document>"u"))return Yo===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",eg)),Yo++,()=>{Yo--,!(Yo>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",eg))}}function Tn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(YI,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=da(),{hoverProps:c,triggerHoverEnd:d}=p.useMemo(()=>{let f=(b,v)=>{if(l.pointerType=v,o||v==="touch"||l.isHovered||!b.currentTarget.contains(b.target))return;l.isHovered=!0;let y=b.currentTarget;l.target=y,s(ce(b.target),"pointerover",E=>{l.isHovered&&l.target&&!st(l.target,E.target)&&h(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:v}),r&&r(!0),a(!0)},h=(b,v)=>{let y=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!y)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:y,pointerType:v}),r&&r(!1),a(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=b=>{Eu&&b.pointerType==="mouse"||f(b,b.pointerType)},m.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&h(b,b.pointerType)}),{hoverProps:m,triggerHoverEnd:h}},[t,r,n,o,l,s,u]);return p.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:i}}function d1(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(s=>{r&&tg(s,t)&&(o&&o(s),i.current.isPointerDown=!0)}),l=Pe(s=>{r&&r(s)});p.useEffect(()=>{let s=i.current;if(n)return;let u=t.current,c=ce(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&tg(f,t)&&l(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("click",d,!0)}}},[t,n,a,l])}function tg(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var XI=500;function JI(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=XI,accessibilityDescription:a}=e,l=p.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=da(),{pressProps:c}=To({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ce(f.target).activeElement!==f.target&&qe(f.target),o&&o({...f,type:"longpress"}),l.current=void 0},i),f.pointerType==="touch")){let h=m=>{m.preventDefault()};s(f.target,"contextmenu",h,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=hI(o&&!t?a:void 0);return{longPressProps:ee(c,d)}}var Pi=Symbol("default");function Qt({values:e,children:t}){for(let[r,n]of e)t=g.createElement(r.Provider,{value:n},t);return t}function ot(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l}=e;return p.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t({...l,defaultClassName:o}):s=t,typeof r=="function"?u=r({...l,defaultStyle:a||{}}):u=r,typeof n=="function"?c=n({...l,defaultChildren:i}):n==null?c=i:c=n,{className:s??o,style:u||a?{...a,...u}:void 0,children:c??i,"data-rac":""}},[t,r,n,o,i,a,l])}function rd(e,t){let r=p.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Pi;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function je(e,t,r){let n=rd(r,e.slot)||{},{ref:o,...i}=n,a=At(p.useMemo(()=>Gc(t,o),[t,o])),l=ee(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function f1(e=!0){let[t,r]=p.useState(e),n=p.useRef(!1),o=p.useCallback(i=>{n.current=!0,r(!!i)},[]);return ue(()=>{n.current||r(!1)},[]),[o,t]}var nd=p.createContext({placement:"bottom"});p.forwardRef(function(e,t){[e,t]=je(e,t,nd);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=ot({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(a=>o.style[a]===void 0&&delete o.style[a]);let i=ve(e);return g.createElement("div",{...i,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function ZI(e,t){let r=ve(e,{labelable:!0}),{hoverProps:n}=Tn({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:ee(r,n,{role:"tooltip"})}}function QI(e,t,r){let{isDisabled:n,trigger:o}=e,i=Fe(),a=p.useRef(!1),l=p.useRef(!1),s=()=>{(a.current||l.current)&&t.open(l.current)},u=y=>{!a.current&&!l.current&&t.close(y)};p.useEffect(()=>{let y=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",y,!0),()=>{document.removeEventListener("keydown",y,!0)}},[r,t]);let c=()=>{o!=="focus"&&(po()==="pointer"?a.current=!0:a.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,a.current=!1,u())},f=()=>{l.current=!1,a.current=!1,u(!0)},h=()=>{fo()&&(l.current=!0,s())},m=()=>{l.current=!1,a.current=!1,u(!0)},{hoverProps:b}=Tn({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:v}=Ao({isDisabled:n,onFocus:h,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...ee(v,b,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:i}}}var Lt={top:"top",bottom:"top",left:"left",right:"left"},Ii={top:"bottom",bottom:"top",left:"right",right:"left"},e4={top:"left",left:"top"},Su={top:"height",left:"width"},p1={width:"totalWidth",height:"totalHeight"},Xo={},tr=typeof document<"u"?window.visualViewport:null;function rg(e){let t=0,r=0,n=0,o=0,i=0,a=0,l={};var s;let u=((s=tr?.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var c;t=(c=tr?.width)!==null&&c!==void 0?c:n;var d;r=(d=tr?.height)!==null&&d!==void 0?d:o,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,tr&&(i=tr.offsetTop,a=tr.offsetLeft)}else({width:t,height:r,top:i,left:a}=an(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(zb()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;i=(f=tr?.pageTop)!==null&&f!==void 0?f:0;var h;a=(h=tr?.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:i,left:a}}function t4(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function ng(e,t,r,n,o,i,a){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Su[e]],c=n.scroll[Lt[e]]+i,d=u+n.scroll[Lt[e]]-i,f=t-s+a[e]-n[Lt[e]],h=t-s+r+a[e]-n[Lt[e]];return f<c?c-f:h>d?Math.max(d-h,c-f):0}function r4(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function og(e){if(Xo[e])return Xo[e];let[t,r]=e.split(" "),n=Lt[t]||"right",o=e4[n];Lt[r]||(r="center");let i=Su[n],a=Su[o];return Xo[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},Xo[e]}function ss(e,t,r,n,o,i,a,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:h,size:m,crossSize:b}=n,v={};var y;v[h]=(y=e[h])!==null&&y!==void 0?y:0;var E,S,$,C;d==="center"?v[h]+=(((E=e[b])!==null&&E!==void 0?E:0)-((S=r[b])!==null&&S!==void 0?S:0))/2:d!==h&&(v[h]+=(($=e[b])!==null&&$!==void 0?$:0)-((C=r[b])!==null&&C!==void 0?C:0)),v[h]+=i;let _=e[h]-r[b]+s+u,w=e[h]+e[b]-s-u;if(v[h]=so(v[h],_,w),c===f){let T=l?a[m]:t[p1[m]];v[Ii[f]]=Math.floor(T-e[f]+o)}else v[f]=Math.floor(e[f]+e[m]+o);return v}function n4(e,t,r,n,o,i,a,l){let s=n?r.height:t[p1.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var d,f,h,m,b,v;let y=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((f=o.top)!==null&&f!==void 0?f:0)+((h=o.bottom)!==null&&h!==void 0?h:0)+i)):Math.max(0,c+a-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((b=o.top)!==null&&b!==void 0?b:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i));return Math.min(t.height-i*2,y)}function ig(e,t,r,n,o,i){let{placement:a,axis:l,size:s}=i;var u,c;if(a===l)return Math.max(0,r[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((c=n[l])!==null&&c!==void 0?c:0)-n[Ii[l]]-o);var d;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((d=n[l])!==null&&d!==void 0?d:0)-n[Ii[l]]-o)}function o4(e,t,r,n,o,i,a,l,s,u,c,d,f,h,m,b){let v=og(e),{size:y,crossAxis:E,crossSize:S,placement:$,crossPlacement:C}=v,_=ss(t,l,r,v,c,d,u,f,m,b),w=c,T=ig(l,u,t,o,i+c,v);if(a&&n[y]>T){let q=og(`${Ii[$]} ${C}`),J=ss(t,l,r,q,c,d,u,f,m,b);ig(l,u,t,o,i+c,q)>T&&(v=q,_=J,w=c)}let D="bottom";v.axis==="top"?v.placement==="top"?D="top":v.placement==="bottom"&&(D="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?D="bottom":v.crossPlacement==="bottom"&&(D="top"));let P=ng(E,_[E],r[S],l,s,i,u);_[E]+=P;let x=n4(_,l,u,f,o,i,r.height,D);h&&h<x&&(x=h),r.height=Math.min(r.height,x),_=ss(t,l,r,v,w,d,u,f,m,b),P=ng(E,_[E],r[S],l,s,i,u),_[E]+=P;let k={},L=t[E]-_[E]-o[Lt[E]],A=L+.5*t[S],O=m/2+b;var I,F,M,B;let N=Lt[E]==="left"?((I=o.left)!==null&&I!==void 0?I:0)+((F=o.right)!==null&&F!==void 0?F:0):((M=o.top)!==null&&M!==void 0?M:0)+((B=o.bottom)!==null&&B!==void 0?B:0),K=r[S]-N-m/2-b,H=t[E]+m/2-(_[E]+o[Lt[E]]),G=t[E]+t[S]-m/2-(_[E]+o[Lt[E]]),U=so(A,H,G);k[E]=so(U,O,K),{placement:$,crossPlacement:C}=v,m?L=k[E]:C==="right"?L+=t[S]:C==="center"&&(L+=t[S]/2);let j=$==="left"||$==="top"?r[y]:0,W={x:$==="top"||$==="bottom"?L:j,y:$==="left"||$==="right"?L:j};return{position:_,maxHeight:x,arrowOffsetLeft:k.left,arrowOffsetTop:k.top,placement:$,triggerAnchorPoint:W}}function i4(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,h=n instanceof HTMLElement?a4(n):document.documentElement,m=h===document.documentElement,b=window.getComputedStyle(h).position,v=!!b&&b!=="static",y=m?an(r,!1):ag(r,h,!1);if(!m){let{marginTop:k,marginLeft:L}=window.getComputedStyle(r);y.top+=parseInt(k,10)||0,y.left+=parseInt(L,10)||0}let E=an(n,!0),S=r4(n);var $,C;E.width+=(($=S.left)!==null&&$!==void 0?$:0)+((C=S.right)!==null&&C!==void 0?C:0);var _,w;E.height+=((_=S.top)!==null&&_!==void 0?_:0)+((w=S.bottom)!==null&&w!==void 0?w:0);let T=t4(o),D=rg(l),P=rg(h),x=l.tagName==="BODY"?an(h,!1):ag(h,l,!1);return h.tagName==="HTML"&&l.tagName==="BODY"&&(P.scroll.top=0,P.scroll.left=0),o4(t,y,E,T,S,i,a,D,P,x,s,u,v,c,d,f)}function od(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function an(e,t){let{top:r,left:n,width:o,height:i}=od(e,t),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+a-s,left:n+l-u,width:o,height:i}}function ag(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=od(e,r);else{o=an(e,r);let i=an(t,r),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function a4(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!lg(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!lg(t);)t=t.parentElement;return t||document.documentElement}function lg(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var h1=new WeakMap;function l4(e){let{triggerRef:t,isOpen:r,onClose:n}=e;p.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=n||h1.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var s4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),u4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function c4(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return s4.has(r.script)}let t=e.split("-")[0];return u4.has(t)}var d4=Symbol.for("react-aria.i18n.locale");function g1(){let e=typeof window<"u"&&window[d4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:c4(e)?"rtl":"ltr"}}var $u=g1(),Yn=new Set;function sg(){$u=g1();for(let e of Yn)e($u)}function f4(){let e=Kr(),[t,r]=p.useState($u);return p.useEffect(()=>(Yn.size===0&&window.addEventListener("languagechange",sg),Yn.add(r),()=>{Yn.delete(r),Yn.size===0&&window.removeEventListener("languagechange",sg)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var p4=g.createContext(null);function er(){let e=f4();return p.useContext(p4)||e}var xu=function(e,t){return xu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},xu(e,t)};function ha(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var se=function(){return se=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},se.apply(this,arguments)};function h4(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function us(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function cs(e,t){var r=t&&t.cache?t.cache:S4,n=t&&t.serializer?t.serializer:v4,o=t&&t.strategy?t.strategy:y4;return o(e,{cache:r,serializer:n})}function g4(e){return e==null||typeof e=="number"||typeof e=="boolean"}function m4(e,t,r,n){var o=g4(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function m1(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function y1(e,t,r,n,o){return r.bind(t,e,n,o)}function y4(e,t){var r=e.length===1?m4:m1;return y1(e,this,r,t.cache.create(),t.serializer)}function b4(e,t){return y1(e,this,m1,t.cache.create(),t.serializer)}var v4=function(){return JSON.stringify(arguments)},E4=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e})(),S4={create:function(){return new E4}},ds={variadic:b4},ie;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ie||(ie={}));var me;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(me||(me={}));var gn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(gn||(gn={}));function ug(e){return e.type===me.literal}function $4(e){return e.type===me.argument}function b1(e){return e.type===me.number}function v1(e){return e.type===me.date}function E1(e){return e.type===me.time}function S1(e){return e.type===me.select}function $1(e){return e.type===me.plural}function x4(e){return e.type===me.pound}function x1(e){return e.type===me.tag}function w1(e){return!!(e&&typeof e=="object"&&e.type===gn.number)}function wu(e){return!!(e&&typeof e=="object"&&e.type===gn.dateTime)}var C1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w4=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function C4(e){var t={};return e.replace(w4,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var _4=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function T4(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(_4).filter(function(f){return f.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],s=a.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s})}return r}function A4(e){return e.replace(/^(.*?)-/,"")}var cg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_1=/^(@+)?(\+|#+)?[rs]?$/g,D4=/(\*)(0+)|(#+)(0+)|(0+)/g,T1=/^(0+)$/;function dg(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(_1,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function A1(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function R4(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!T1.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function fg(e){var t={},r=A1(e);return r||t}function O4(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=A4(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=se(se(se({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return se(se({},s),fg(u))},{}));continue;case"engineering":t=se(se(se({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return se(se({},s),fg(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(D4,function(s,u,c,d,f,h){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(T1.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(cg.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(cg,function(s,u,c,d,f,h){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=se(se({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=se(se({},t),dg(i)));continue}if(_1.test(o.stem)){t=se(se({},t),dg(o.stem));continue}var a=A1(o.stem);a&&(t=se(se({},t),a));var l=R4(o.stem);l&&(t=se(se({},t),l))}return t}var Jo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function P4(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(i&1),l=i<2?1:3+(i>>1),s="a",u=I4(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;a-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function I4(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Jo[n||""]||Jo[r||""]||Jo["".concat(r,"-001")]||Jo["001"];return o[0]}var fs,F4=new RegExp("^".concat(C1.source,"*")),L4=new RegExp("".concat(C1.source,"*$"));function ae(e,t){return{start:e,end:t}}var k4=!!String.prototype.startsWith&&"_a".startsWith("a",1),N4=!!String.fromCodePoint,M4=!!Object.fromEntries,B4=!!String.prototype.codePointAt,j4=!!String.prototype.trimStart,H4=!!String.prototype.trimEnd,U4=!!Number.isSafeInteger,K4=U4?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Cu=!0;try{pg=R1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Cu=((fs=pg.exec("a"))===null||fs===void 0?void 0:fs[0])==="a"}catch{Cu=!1}var pg,hg=k4?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),_u=N4?String.fromCodePoint:(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,i;n>o;){if(i=e[o++],i>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return r}),gg=M4?Object.fromEntries:(function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t}),D1=B4?(function(e,t){return e.codePointAt(t)}):(function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}}),z4=j4?(function(e){return e.trimStart()}):(function(e){return e.replace(F4,"")}),G4=H4?(function(e){return e.trimEnd()}):(function(e){return e.replace(L4,"")});function R1(e,t){return new RegExp(e,t)}var Tu;Cu?(ps=R1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Tu=function(e,t){var r;ps.lastIndex=t;var n=ps.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):Tu=function(e,t){for(var r=[];;){var n=D1(e,t);if(n===void 0||O1(n)||Y4(n))break;r.push(n),t+=n>=65536?2:1}return _u.apply(void 0,r)};var ps,W4=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:me.pound,location:ae(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ie.UNMATCHED_CLOSING_TAG,ae(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Au(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:me.literal,value:"<".concat(o,"/>"),location:ae(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Au(this.char()))return this.error(ie.INVALID_TAG,ae(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(ie.UNMATCHED_CLOSING_TAG,ae(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:me.tag,value:o,children:a,location:ae(n,this.clonePosition())},err:null}:this.error(ie.INVALID_TAG,ae(l,this.clonePosition())))}else return this.error(ie.UNCLOSED_TAG,ae(n,this.clonePosition()))}else return this.error(ie.INVALID_TAG,ae(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&q4(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=ae(n,this.clonePosition());return{val:{type:me.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!V4(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return _u.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),_u(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,ae(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ie.EMPTY_ARGUMENT,ae(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ie.MALFORMED_ARGUMENT,ae(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,ae(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:me.argument,value:o,location:ae(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,ae(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ie.MALFORMED_ARGUMENT,ae(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Tu(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=ae(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(ie.EXPECT_ARGUMENT_TYPE,ae(a,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=G4(d.val);if(f.length===0)return this.error(ie.EXPECT_ARGUMENT_STYLE,ae(this.clonePosition(),this.clonePosition()));var h=ae(c,this.clonePosition());u={style:f,styleLocation:h}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var b=ae(o,this.clonePosition());if(u&&hg(u?.style,"::",0)){var v=z4(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:me.number,value:n,location:b,style:d.val},err:null}}else{if(v.length===0)return this.error(ie.EXPECT_DATE_TIME_SKELETON,b);var y=v;this.locale&&(y=P4(v,this.locale));var f={type:gn.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?C4(y):{}},E=l==="date"?me.date:me.time;return{val:{type:E,value:n,location:b,style:f},err:null}}}return{val:{type:l==="number"?me.number:l==="date"?me.date:me.time,value:n,location:b,style:(i=u?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ie.EXPECT_SELECT_ARGUMENT_OPTIONS,ae(S,se({},S)));this.bumpSpace();var $=this.parseIdentifierIfPossible(),C=0;if(l!=="select"&&$.value==="offset"){if(!this.bumpIf(":"))return this.error(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ae(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ie.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),$=this.parseIdentifierIfPossible(),C=d.val}var _=this.tryParsePluralOrSelectOptions(t,l,r,$);if(_.err)return _;var m=this.tryParseArgumentClose(o);if(m.err)return m;var w=ae(o,this.clonePosition());return l==="select"?{val:{type:me.select,value:n,options:gg(_.val),location:w},err:null}:{val:{type:me.plural,value:n,options:gg(_.val),offset:C,pluralType:l==="plural"?"cardinal":"ordinal",location:w},err:null}}default:return this.error(ie.INVALID_ARGUMENT_TYPE,ae(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,ae(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ie.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ae(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=T4(t)}catch{return this.error(ie.INVALID_NUMBER_SKELETON,r)}return{val:{type:gn.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?O4(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,l=[],s=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,ie.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=ae(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?ie.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ie.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ae(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var b=this.tryParseArgumentClose(h);if(b.err)return b;l.push([u,{value:m.val,location:ae(h,this.clonePosition())}]),s.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return l.length===0?this.error(r==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,ae(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ie.MISSING_OTHER_CLAUSE,ae(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var s=ae(o,this.clonePosition());return i?(a*=n,K4(a)?{val:a,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=D1(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(hg(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&O1(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function Au(e){return e>=97&&e<=122||e>=65&&e<=90}function V4(e){return Au(e)||e===47}function q4(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function O1(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Y4(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Du(e){e.forEach(function(t){if(delete t.location,S1(t)||$1(t))for(var r in t.options)delete t.options[r].location,Du(t.options[r].value);else b1(t)&&w1(t.style)||(v1(t)||E1(t))&&wu(t.style)?delete t.style.location:x1(t)&&Du(t.children)})}function X4(e,t){t===void 0&&(t={}),t=se({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new W4(e,t).parse();if(r.err){var n=SyntaxError(ie[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Du(r.val),r.val}var mn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(mn||(mn={}));var ga=(function(e){ha(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),mg=(function(e){ha(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),mn.INVALID_VALUE,i)||this}return t})(ga),J4=(function(e){ha(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),mn.INVALID_VALUE,o)||this}return t})(ga),Z4=(function(e){ha(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),mn.MISSING_VALUE,n)||this}return t})(ga),ze;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ze||(ze={}));function Q4(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ze.literal||r.type!==ze.literal?t.push(r):n.value+=r.value,t},[])}function eF(e){return typeof e=="function"}function gi(e,t,r,n,o,i,a){if(e.length===1&&ug(e[0]))return[{type:ze.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(ug(c)){l.push({type:ze.literal,value:c.value});continue}if(x4(c)){typeof i=="number"&&l.push({type:ze.literal,value:r.getNumberFormat(t).format(i)});continue}var d=c.value;if(!(o&&d in o))throw new Z4(d,a);var f=o[d];if($4(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?ze.literal:ze.object,value:f});continue}if(v1(c)){var h=typeof c.style=="string"?n.date[c.style]:wu(c.style)?c.style.parsedOptions:void 0;l.push({type:ze.literal,value:r.getDateTimeFormat(t,h).format(f)});continue}if(E1(c)){var h=typeof c.style=="string"?n.time[c.style]:wu(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:ze.literal,value:r.getDateTimeFormat(t,h).format(f)});continue}if(b1(c)){var h=typeof c.style=="string"?n.number[c.style]:w1(c.style)?c.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),l.push({type:ze.literal,value:r.getNumberFormat(t,h).format(f)});continue}if(x1(c)){var m=c.children,b=c.value,v=o[b];if(!eF(v))throw new J4(b,"function",a);var y=gi(m,t,r,n,o,i),E=v(y.map(function(C){return C.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(C){return{type:typeof C=="string"?ze.literal:ze.object,value:C}}))}if(S1(c)){var S=c.options[f]||c.options.other;if(!S)throw new mg(c.value,f,Object.keys(c.options),a);l.push.apply(l,gi(S.value,t,r,n,o));continue}if($1(c)){var S=c.options["=".concat(f)];if(!S){if(!Intl.PluralRules)throw new ga(`Intl.PluralRules is not available in this environment.
618
+ Try polyfilling it using "@formatjs/intl-pluralrules"
619
+ `,mn.MISSING_INTL_API,a);var $=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));S=c.options[$]||c.options.other}if(!S)throw new mg(c.value,f,Object.keys(c.options),a);l.push.apply(l,gi(S.value,t,r,n,o,f-(c.offset||0)));continue}}return Q4(l)}function tF(e,t){return t?se(se(se({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=se(se({},e[n]),t[n]||{}),r},{})):e}function rF(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=tF(e[n],t[n]),r},se({},e)):e}function hs(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function nF(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cs(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,us([void 0],r,!1)))},{cache:hs(e.number),strategy:ds.variadic}),getDateTimeFormat:cs(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,us([void 0],r,!1)))},{cache:hs(e.dateTime),strategy:ds.variadic}),getPluralRules:cs(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,us([void 0],r,!1)))},{cache:hs(e.pluralRules),strategy:ds.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=i.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==ze.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return gi(i.ast,i.locales,i.formatters,i.formats,s,void 0,i.message)},this.resolvedOptions=function(){var s;return{locale:((s=i.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{};a.formatters;var l=h4(a,["formatters"]);this.ast=e.__parse(t,se(se({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=rF(e.formats,n),this.formatters=o&&o.formatters||nF(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=X4,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var oF=Symbol.for("react-aria.i18n.locale"),iF=Symbol.for("react-aria.i18n.strings"),Zo,P1=class I1{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=aF(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[oF];if(Zo===void 0){let o=window[iF];if(!o)return null;Zo={};for(let i in o)Zo[i]=new I1({[r]:o[i]},r)}let n=Zo?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function aF(e,t,r="en-US"){if(t[e])return t[e];let n=lF(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function lF(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var yg=new Map,bg=new Map,sF=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,i=yg.get(o);i||(i=new Intl.PluralRules(this.locale,{type:r}),yg.set(o,i));let a=i.select(e);return n=t[a]||t.other,typeof n=="function"?n():n}number(e){let t=bg.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),bg.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},vg=new WeakMap;function uF(e){let t=vg.get(e);return t||(t=new P1(e),vg.set(e,t)),t}function cF(e,t){return P1.getGlobalDictionaryForPackage(t)||uF(e)}function dF(e,t){let{locale:r}=er(),n=cF(e,t);return p.useMemo(()=>new sF(r,n),[r,n])}var gs=new Map,Ru=!1;try{Ru=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var Fi=!1;try{Fi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var F1={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},fF=class{format(e){let t="";if(!Ru&&this.options.signDisplay!=null?t=hF(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!Fi){var r;let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return t;let a=(r=F1[n])===null||r===void 0?void 0:r[o];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Ru&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Fi&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=pF(e,t),this.options=t}};function pF(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Fi){var n;let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=F1[a])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(gs.has(o))return gs.get(o);let i=new Intl.NumberFormat(e,t);return gs.set(o,i),i}function hF(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}function gF(e={}){let{locale:t}=er();return p.useMemo(()=>new fF(t,e),[t,e])}var ms=new Map;function mF(e){let{locale:t}=er(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ms.has(r))return ms.get(r);let n=new Intl.Collator(t,e);return ms.set(r,n),n}var vr=typeof document<"u"?window.visualViewport:null;function id(e){let{direction:t}=er(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:b,maxHeight:v,arrowBoundaryOffset:y=0}=e,[E,S]=p.useState(null),$=[h,l,o.current,n.current,i?.current,a.current,s,u,c,d,f,m,t,v,y,r],C=p.useRef(vr?.scale);p.useEffect(()=>{m&&(C.current=vr?.scale)},[m]);let _=p.useCallback(()=>{if(h===!1||!m||!o.current||!n.current||!c||vr?.scale!==C.current)return;let k=null;if(a.current&&a.current.contains(document.activeElement)){var L;let N=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),K=a.current.getBoundingClientRect();var A;if(k={type:"top",offset:((A=N?.top)!==null&&A!==void 0?A:0)-K.top},k.offset>K.height/2){k.type="bottom";var O;k.offset=((O=N?.bottom)!==null&&O!==void 0?O:0)-K.bottom}}let I=o.current;if(!v&&o.current){var F;I.style.top="0px",I.style.bottom="";var M;I.style.maxHeight=((M=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let B=i4({placement:bF(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:v,arrowSize:r??(i?.current?od(i.current,!0).width:0),arrowBoundaryOffset:y});if(B.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(B.position).forEach(N=>I.style[N]=B.position[N]+"px"),I.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",k&&document.activeElement&&a.current){let N=document.activeElement.getBoundingClientRect(),K=a.current.getBoundingClientRect(),H=N[k.type]-K[k.type];a.current.scrollTop+=H-k.offset}S(B)}},$);ue(_,$),yF(_),Ti({ref:o,onResize:_}),Ti({ref:n,onResize:_});let w=p.useRef(!1);ue(()=>{let k,L=()=>{w.current=!0,clearTimeout(k),k=setTimeout(()=>{w.current=!1},500),_()},A=()=>{w.current&&L()};return vr?.addEventListener("resize",L),vr?.addEventListener("scroll",A),()=>{vr?.removeEventListener("resize",L),vr?.removeEventListener("scroll",A)}},[_]);let T=p.useCallback(()=>{w.current||b?.()},[b,w]);l4({triggerRef:n,isOpen:m,onClose:b&&T});var D,P,x;return{overlayProps:{style:{position:E?"absolute":"fixed",top:E?void 0:0,left:E?void 0:0,zIndex:1e5,...E?.position,maxHeight:(D=E?.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(P=E?.placement)!==null&&P!==void 0?P:null,triggerAnchorPoint:(x=E?.triggerAnchorPoint)!==null&&x!==void 0?x:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:E?.arrowOffsetLeft,top:E?.arrowOffsetTop}},updatePosition:_}}function yF(e){ue(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function bF(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var Eg=g.createContext(null),Ou="react-aria-focus-scope-restore",pe=null;function ad(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=p.useRef(null),a=p.useRef(null),l=p.useRef([]),{parentNode:s}=p.useContext(Eg)||{},u=p.useMemo(()=>new Iu({scopeRef:l}),[l]);ue(()=>{let f=s||we.root;if(we.getTreeNode(f.scopeRef)&&pe&&!Li(pe,f.scopeRef)){let h=we.getTreeNode(pe);h&&(f=h)}f.addChild(u),we.addNode(u)},[u,s]),ue(()=>{let f=we.getTreeNode(l);f&&(f.contain=!!r)},[r]),ue(()=>{var f;let h=(f=i.current)===null||f===void 0?void 0:f.nextSibling,m=[],b=v=>v.stopPropagation();for(;h&&h!==a.current;)m.push(h),h.addEventListener(Ou,b),h=h.nextSibling;return l.current=m,()=>{for(let v of m)v.removeEventListener(Ou,b)}},[t]),wF(l,n,r),SF(l,r),CF(l,n,r),xF(l,o),p.useEffect(()=>{let f=Oe(ce(l.current?l.current[0]:void 0)),h=null;if(ft(f,l.current)){for(let m of we.traverse())m.scopeRef&&ft(f,m.scopeRef.current)&&(h=m);h===we.getTreeNode(l)&&(pe=h.scopeRef)}},[l]),ue(()=>()=>{var f,h,m;let b=(m=(h=we.getTreeNode(l))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(l===pe||Li(l,pe))&&(!b||we.getTreeNode(b))&&(pe=b),we.removeTreeNode(l)},[l]);let c=p.useMemo(()=>vF(l),[]),d=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return g.createElement(Eg.Provider,{value:d},g.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,g.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function vF(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||Oe(ce((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=Rr(r),d=Xe(c,{tabbable:o,accept:a},r);d.currentNode=ft(s,r)?s:u;let f=d.nextNode();return!f&&i&&(d.currentNode=u,f=d.nextNode()),f&&Ye(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||Oe(ce((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=Rr(r),d=Xe(c,{tabbable:o,accept:a},r);d.currentNode=ft(s,r)?s:u;let f=d.previousNode();return!f&&i&&(d.currentNode=u,f=d.previousNode()),f&&Ye(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Rr(r),a=Xe(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&Ye(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Rr(r),a=Xe(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&Ye(l,!0),l}}}function Rr(e){return e[0].parentElement}function Xn(e){let t=we.getTreeNode(pe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function EF(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...ce(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form);else{var r,n;t=[...((n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name))??[]]}return t?!t.some(o=>o.checked):!1}function SF(e,t){let r=p.useRef(void 0),n=p.useRef(void 0);ue(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let i=ce(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xn(e)||u.isComposing)return;let c=Oe(i),d=e.current;if(!d||!ft(c,d))return;let f=Rr(d),h=Xe(f,{tabbable:!0},d);if(!c)return;h.currentNode=c;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&Ye(m,!0)},l=u=>{(!pe||Li(pe,e))&&ft($e(u),e.current)?(pe=e,r.current=$e(u)):Xn(e)&&!ur($e(u),e)?r.current?r.current.focus():pe&&pe.current&&Pu(pe.current):Xn(e)&&(r.current=$e(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=po(),d=(c==="virtual"||c===null)&&Vc()&&Gb(),f=Oe(i);if(!d&&f&&Xn(e)&&!ur(f,e)){pe=e;let m=$e(u);if(m&&m.isConnected){var h;r.current=m,(h=r.current)===null||h===void 0||h.focus()}else pe.current&&Pu(pe.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),ue(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function L1(e){return ur(e)}function ft(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function ur(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of we.traverse(we.getTreeNode(t)))if(r&&ft(e,r.current))return!0;return!1}function $F(e){return ur(e,pe)}function Li(e,t){var r;let n=(r=we.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Ye(e,t=!1){if(e!=null&&!t)try{fr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function k1(e,t=!0){let r=e[0].previousElementSibling,n=Rr(e),o=Xe(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=Rr(e),o=Xe(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Pu(e,t=!0){Ye(k1(e,t))}function xF(e,t){let r=g.useRef(t);p.useEffect(()=>{if(r.current){pe=e;let n=ce(e.current?e.current[0]:void 0);!ft(Oe(n),pe.current)&&e.current&&Pu(e.current)}r.current=!1},[e])}function wF(e,t,r){ue(()=>{if(t||r)return;let n=e.current,o=ce(n?n[0]:void 0),i=a=>{let l=$e(a);ft(l,e.current)?pe=e:L1(l)||(pe=null)};return o.addEventListener("focusin",i,!1),n?.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function Sg(e){let t=we.getTreeNode(pe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function CF(e,t,r){let n=p.useRef(typeof document<"u"?Oe(ce(e.current?e.current[0]:void 0)):null);ue(()=>{let o=e.current,i=ce(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!pe||Li(pe,e))&&ft(Oe(i),e.current)&&(pe=e)};return i.addEventListener("focusin",a,!1),o?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,r]),ue(()=>{let o=ce(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Xn(e)||a.isComposing)return;let l=o.activeElement;if(!ur(l,e)||!Sg(e))return;let s=we.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=Xe(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!ur(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(ur(d,e));a.preventDefault(),a.stopPropagation(),d?Ye(d,!0):L1(u)?Ye(u,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),ue(()=>{let o=ce(e.current?e.current[0]:void 0);if(!t)return;let i=we.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=we.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=Oe(o);if(t&&s&&(u&&ur(u,e)||u===o.body&&Sg(e))){let c=we.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){$g(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&we.getTreeNode(d.scopeRef)){let f=k1(d.scopeRef.current,!0);$g(f);return}d=d.parent}}})}}}},[e,t])}function $g(e){e.dispatchEvent(new CustomEvent(Ou,{bubbles:!0,cancelable:!0}))&&Ye(e)}function Xe(e,t,r){let n=t?.tabbable?xI:e1,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=ce(o),a=K2(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!EF(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||ft(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function _F(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||Oe(ce(n)),u=Xe(n,{tabbable:i,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&a&&(u.currentNode=n,c=u.nextNode()),c&&Ye(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||Oe(ce(n)),u=Xe(n,{tabbable:i,accept:l});if(n.contains(s))u.currentNode=s;else{let d=ys(u);return d&&Ye(d,!0),d??null}let c=u.previousNode();if(!c&&a){u.currentNode=n;let d=ys(u);if(!d)return null;c=d}return c&&Ye(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=Xe(n,{tabbable:o,accept:i}).nextNode();return a&&Ye(a,!0),a},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=Xe(n,{tabbable:o,accept:i}),l=ys(a);return l&&Ye(l,!0),l??null}}}function ys(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var TF=class N1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Iu({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&ft(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new N1;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Iu({scopeRef:null}),this.fastMap.set(null,this.root)}},Iu=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},we=new TF;function ma(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||fo()}),[i,a]=p.useState(!1),[l,s]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(h=>{o.current.isFocused=h,a(h),u()},[u]);HI(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:r});let{focusProps:d}=ed({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=td({isDisabled:!n,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:n?f:d}}function AF(e,t){let[r,n]=p.useState(!1);return ue(()=>{if(e?.current){let o=()=>{if(e.current){let a=Xe(e.current,{tabbable:!0});n(!!a.nextNode())}};o();let i=new MutationObserver(o);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),r}function M1(e){let t=RF(ce(e));t!==e&&(t&&DF(t,e),e&&B1(e,t))}function DF(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function B1(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function RF(e){let t=Oe(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Rt=[];function ld(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=e;p.useEffect(()=>{if(o&&!Rt.includes(t))return Rt.push(t),()=>{let m=Rt.indexOf(t);m>=0&&Rt.splice(m,1)}},[o,t]);let s=()=>{Rt[Rt.length-1]===t&&r&&r()},u=m=>{(!l||l(m.target))&&Rt[Rt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(Rt[Rt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},d=m=>{m.key==="Escape"&&!a&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};d1({ref:t,onInteractOutside:i&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=td({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||$F(m.relatedTarget)||(!l||l(m.relatedTarget))&&r?.()}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:h}}}function OF(e,t,r){let{isOpen:n}=t;p.useEffect(()=>{r&&r.current&&h1.set(r.current,t.close)});let o,i=Fe();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}var Qn=typeof document<"u"&&window.visualViewport,Qo=0,bs;function j1(e={}){let{isDisabled:t}=e;ue(()=>{if(!t)return Qo++,Qo===1&&(ua()?bs=IF():bs=PF()),()=>{Qo--,Qo===0&&bs()}},[t])}function PF(){let e=window.innerWidth-document.documentElement.clientWidth;return _o(e>0&&("scrollbarGutter"in document.documentElement.style?vs(document.documentElement,"scrollbarGutter","stable"):vs(document.documentElement,"paddingRight",`${e}px`)),vs(document.documentElement,"overflow","hidden"))}function IF(){let e,t=!1,r=s=>{let u=s.target;e=hn(u)?u:qb(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
620
+ @layer {
621
+ * {
622
+ overscroll-behavior: contain;
623
+ }
624
+ }`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},i=s=>{let u=s.target,c=s.relatedTarget;if(c&&os(c))c.focus({preventScroll:!0}),xg(c,os(u));else if(!c){var d;((d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]"))?.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&os(document.activeElement);a.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&xg(this,u)};let l=_o(Es(document,"touchstart",r,{passive:!1,capture:!0}),Es(document,"touchmove",o,{passive:!1,capture:!0}),Es(document,"blur",i,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=a}}function vs(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Es(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function xg(e,t){t||!Qn?wg(e):Qn.addEventListener("resize",()=>wg(e),{once:!0})}function wg(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=qb(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let a=o.bottom;Qn&&(a=Math.min(a,Qn.offsetTop+Qn.height));let l=i.top-o.top-((a-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}var FF=p.createContext({});function H1(){var e;return(e=p.useContext(FF))!==null&&e!==void 0?e:{}}var Fu=g.createContext(null);function LF(e){let{children:t}=e,r=p.useContext(Fu),[n,o]=p.useState(0),i=p.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return g.createElement(Fu.Provider,{value:i},t)}function kF(){let e=p.useContext(Fu);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function NF(e){let{modalProviderProps:t}=kF();return g.createElement("div",{"data-overlay-container":!0,...e,...t})}function MF(e){return g.createElement(LF,null,g.createElement(NF,e))}function BF(e){let t=Kr(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=H1();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=g.createElement(MF,n);return q0.createPortal(i,r)}var U1={};U1={dismiss:"تجاهل"};var K1={};K1={dismiss:"Отхвърляне"};var z1={};z1={dismiss:"Odstranit"};var G1={};G1={dismiss:"Luk"};var W1={};W1={dismiss:"Schließen"};var V1={};V1={dismiss:"Απόρριψη"};var q1={};q1={dismiss:"Dismiss"};var Y1={};Y1={dismiss:"Descartar"};var X1={};X1={dismiss:"Lõpeta"};var J1={};J1={dismiss:"Hylkää"};var Z1={};Z1={dismiss:"Rejeter"};var Q1={};Q1={dismiss:"התעלם"};var ev={};ev={dismiss:"Odbaci"};var tv={};tv={dismiss:"Elutasítás"};var rv={};rv={dismiss:"Ignora"};var nv={};nv={dismiss:"閉じる"};var ov={};ov={dismiss:"무시"};var iv={};iv={dismiss:"Atmesti"};var av={};av={dismiss:"Nerādīt"};var lv={};lv={dismiss:"Lukk"};var sv={};sv={dismiss:"Negeren"};var uv={};uv={dismiss:"Zignoruj"};var cv={};cv={dismiss:"Descartar"};var dv={};dv={dismiss:"Dispensar"};var fv={};fv={dismiss:"Revocare"};var pv={};pv={dismiss:"Пропустить"};var hv={};hv={dismiss:"Zrušiť"};var gv={};gv={dismiss:"Opusti"};var mv={};mv={dismiss:"Odbaci"};var yv={};yv={dismiss:"Avvisa"};var bv={};bv={dismiss:"Kapat"};var vv={};vv={dismiss:"Скасувати"};var Ev={};Ev={dismiss:"取消"};var Sv={};Sv={dismiss:"關閉"};var $v={};$v={"ar-AE":U1,"bg-BG":K1,"cs-CZ":z1,"da-DK":G1,"de-DE":W1,"el-GR":V1,"en-US":q1,"es-ES":Y1,"et-EE":X1,"fi-FI":J1,"fr-FR":Z1,"he-IL":Q1,"hr-HR":ev,"hu-HU":tv,"it-IT":rv,"ja-JP":nv,"ko-KR":ov,"lt-LT":iv,"lv-LV":av,"nb-NO":lv,"nl-NL":sv,"pl-PL":uv,"pt-BR":cv,"pt-PT":dv,"ro-RO":fv,"ru-RU":pv,"sk-SK":hv,"sl-SI":gv,"sr-SP":mv,"sv-SE":yv,"tr-TR":bv,"uk-UA":vv,"zh-CN":Ev,"zh-TW":Sv};var Cg={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function jF(e={}){let{style:t,isFocusable:r}=e,[n,o]=p.useState(!1),{focusWithinProps:i}=td({isDisabled:!r,onFocusWithinChange:l=>o(l)}),a=p.useMemo(()=>n?t:t?{...Cg,...t}:Cg,[n]);return{visuallyHiddenProps:{...i,style:a}}}function HF(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=jF(e);return g.createElement(r,ee(i,a),t)}function UF(e){return e&&e.__esModule?e.default:e}function _g(e){let{onDismiss:t,...r}=e,n=dF(UF($v),"@react-aria/overlays"),o=fa(r,n.format("dismiss")),i=()=>{t&&t()};return g.createElement(HF,null,g.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var KF=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,jn=new WeakMap,Ve=[];function ya(e,t){let r=ct(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n?.root)!==null&&o!==void 0?o:document.body,a=n?.shouldUseInert&&KF,l=new Set(e),s=new Set,u=b=>a&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,v)=>{a&&b instanceof r.HTMLElement?b.inert=v:v?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let S of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(S);let v=S=>{if(s.has(S)||l.has(S)||S.parentElement&&s.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of l)if(S.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),E=v(b);if(E===NodeFilter.FILTER_ACCEPT&&f(b),E!==NodeFilter.FILTER_REJECT){let S=y.nextNode();for(;S!=null;)f(S),S=y.nextNode()}},f=b=>{var v;let y=(v=jn.get(b))!==null&&v!==void 0?v:0;u(b)&&y===0||(y===0&&c(b,!0),s.add(b),jn.set(b,y+1))};Ve.length&&Ve[Ve.length-1].disconnect(),d(i);let h=new MutationObserver(b=>{for(let v of b)if(v.type==="childList"&&![...l,...s].some(y=>y.contains(v.target)))for(let y of v.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?l.add(y):y instanceof Element&&d(y)});h.observe(i,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Ve.push(m),()=>{h.disconnect();for(let b of s){let v=jn.get(b);v!=null&&(v===1?(c(b,!1),jn.delete(b)):jn.set(b,v-1))}m===Ve[Ve.length-1]?(Ve.pop(),Ve.length&&Ve[Ve.length-1].observe()):Ve.splice(Ve.indexOf(m),1)}}function zF(e){let t=Ve[Ve.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function GF(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=ld({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},o??n),{overlayProps:f,arrowProps:h,placement:m,triggerAnchorPoint:b}=id({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return j1({isDisabled:i||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&n.current){var v,y;return i?zF((v=o?.current)!==null&&v!==void 0?v:n.current):ya([(y=o?.current)!==null&&y!==void 0?y:n.current],{shouldUseInert:!0})}},[i,t.isOpen,n,o]),{popoverProps:ee(c,f),arrowProps:h,underlayProps:d,placement:m,triggerAnchorPoint:b}}var xv=g.createContext(null);function ki(e){let t=Kr(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=p.useState(!1),a=p.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=H1();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=g.createElement(ad,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=g.createElement(xv.Provider,{value:a},g.createElement(VI,null,s)),q0.createPortal(s,r)}function wv(){let e=p.useContext(xv),t=e?.setContain;ue(()=>{t?.(!0)},[t])}function WF(e,t,r){let{overlayProps:n,underlayProps:o}=ld({...e,isOpen:t.isOpen,onClose:t.close},r);return j1({isDisabled:!t.isOpen}),wv(),p.useEffect(()=>{if(t.isOpen&&r.current)return ya([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:ee(n),underlayProps:o}}function Do(e){let[t,r]=pa(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=p.useCallback(()=>{r(!0)},[r]),o=p.useCallback(()=>{r(!1)},[r]),i=p.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}var VF=1500,Tg=500,Er={},qF=0,Hn=!1,Gt=null,Sr=null;function Cv(e={}){let{delay:t=VF,closeDelay:r=Tg}=e,{isOpen:n,open:o,close:i}=Do(e),a=p.useMemo(()=>`${++qF}`,[]),l=p.useRef(null),s=p.useRef(i),u=()=>{Er[a]=f},c=()=>{for(let m in Er)m!==a&&(Er[m](!0),delete Er[m])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),Hn=!0,o(),Gt&&(clearTimeout(Gt),Gt=null),Sr&&(clearTimeout(Sr),Sr=null)},f=m=>{m||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),Gt&&(clearTimeout(Gt),Gt=null),Hn&&(Sr&&clearTimeout(Sr),Sr=setTimeout(()=>{delete Er[a],Sr=null,Hn=!1},Math.max(Tg,r)))},h=()=>{c(),u(),!n&&!Gt&&!Hn?Gt=setTimeout(()=>{Gt=null,Hn=!0,d()},t):n||d()};return p.useEffect(()=>{s.current=i},[i]),p.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Er[a]&&delete Er[a]},[a]),{isOpen:n,open:m=>{!m&&t>0&&!l.current?h():d()},close:f}}var sd=p.createContext(null),_v=p.createContext(null);function YF(e){let t=Cv(e),r=p.useRef(null),{triggerProps:n,tooltipProps:o}=QI(e,t,r);return g.createElement(Qt,{values:[[sd,t],[_v,{...o,triggerRef:r}]]},g.createElement(KI,{...n,ref:r},e.children))}var XF=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=je(t,r,_v);let n=p.useContext(sd),o=Cv(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=Zb(r,i.isOpen)||t.isExiting||!1;return!i.isOpen&&!a?null:g.createElement(BF,{portalContainer:e},g.createElement(JF,{...t,tooltipRef:r,isExiting:a}))});function JF(e){let t=p.useContext(sd),r=p.useRef(null),{overlayProps:n,arrowProps:o,placement:i,triggerAnchorPoint:a}=id({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),l=Jb(e.tooltipRef,!!i)||e.isEntering||!1,s=ot({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:l,isExiting:e.isExiting,state:t}});e=ee(e,n);let{tooltipProps:u}=ZI(e,t),c=ve(e,{global:!0});return g.createElement("div",{...ee(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...s.style},"data-placement":i??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},g.createElement(nd.Provider,{value:{...o,placement:i,ref:r}},s.children))}var ZF=wt(yo(),1),ud=(0,ZF.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));R.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var QF=p.forwardRef((e,t)=>g.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));QF.displayName="Trigger";var Tv=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:i,startOpen:a,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let f=ud(t),h=g.Children.only(o);a!==void 0&&O2("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,b]=p.useState(i??a??!1),v=p.useCallback(y=>{b(y),c?.(y)},[c]);return g.createElement(YF,{delay:l,closeDelay:s,isOpen:u??m,onOpenChange:v,trigger:e?"focus":void 0,...d},g.createElement(zI,null,g.cloneElement(h,{"aria-describedby":null})),g.createElement(XF,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:v,style:{outline:"none"},...d},n))},Av=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=p.useMemo(()=>{let i=document?.body?.getAttribute("data-shortcuts-enabled")!=="false";if(!(!n&&(!r||!i)))return[n,r&&i&&`[${VP(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?g.createElement(Tv,{placement:"top",tooltip:g.createElement(Bb,{note:o}),visible:t?!1:void 0},e):g.createElement(g.Fragment,null,e)};Av.displayName="InteractiveTooltipWrapper";function e8(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?g.createElement("span",{id:t,hidden:!0},e):null}}var xe=p.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:o="outline",padding:i="medium",disabled:a=!1,readOnly:l=!1,active:s,onClick:u,ariaLabel:c,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:h=void 0,disableAllTooltips:m=!1,...b},v)=>{let y=t?w2:e,E;!l&&(c===void 0||c==="")&&(E="ariaLabel",mu(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${b.children}.`)),s!==void 0&&(E="active",mu("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:S,AriaDescription:$}=e8(d),C=p.useMemo(()=>h?qP(h):void 0,[h]),[_,w]=p.useState(!1),T=D=>{u&&u(D),r!=="none"&&w(!0)};return p.useEffect(()=>{let D=setTimeout(()=>{_&&w(!1)},1e3);return()=>clearTimeout(D)},[_]),g.createElement(g.Fragment,null,g.createElement(Av,{disableAllTooltips:m,shortcut:h,tooltip:f||(c!==!1?c:void 0)},g.createElement(t8,{"data-deprecated":E,as:y,ref:v,variant:o,size:n,padding:i,disabled:a||l,readOnly:l,active:s,animating:_,animation:r,onClick:T,"aria-label":!l&&c!==!1?c:void 0,"aria-keyshortcuts":l?void 0:C,...l?{}:S,...b})),g.createElement($,null))});xe.displayName="Button";var t8=R("button",{shouldForwardProp:e=>qm(e)})(({theme:e,variant:t,size:r,disabled:n,readOnly:o,active:i,animating:a,animation:l="none",padding:s})=>({border:0,cursor:o?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n&&!o?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.base==="light"?e.color.secondary:Ge(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&i?Xt(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&i?e.base==="light"?Ge(.1,e.color.secondary):e.color.secondary:t==="ghost"?e.textMutedColor:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!o&&{"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.base==="light"?Ia(.1,e.color.secondary):Ge(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?Xt(.86,e.color.secondary):e.base==="light"?Ge(.02,u):Ia(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Ge(.02,u):Ia(.03,u)})()},"&:focus-visible":{outline:`2px solid ${N$(e.color.secondary,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:a&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),Dv=p.forwardRef((e,t)=>(mu("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),g.createElement(xe,{ref:t,...e,"data-deprecated":"IconButton"})));Dv.displayName="IconButton";var ba=p.forwardRef(({pressed:e,...t},r)=>g.createElement(r8,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));ba.displayName="ToggleButton";var r8=R(xe)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?Ge(.1,e.color.secondary):Ge(.2,e.color.secondary)}:{},...t==="outline"?{background:Xt(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:Xt(.93,e.barSelectedColor),color:e.base==="light"?Ge(.1,e.color.secondary):e.color.secondary}:{}}:{}})),Rv=R.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?"var(--listbox-item-active-color)":t.color.defaultText,"--listbox-item-active-color":t.base==="light"?Ge(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?"var(--listbox-item-active-color)":t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:"var(--listbox-item-active-color)",fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":"var(--listbox-item-active-color)"},"&:not(:hover, :has(:focus-visible)) svg + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:Xt(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionBehavior:"allow-discrete",transitionDuration:"var(--transition-duration, 0.2s)",transitionProperty:"opacity, block-size, content-visibility"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),n8=R(Rv)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),o8=R(xe)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),i8=R(ba)({"&:focus-visible":{outlineOffset:-2}}),Ov=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return g.createElement(o8,{...n,variant:r,padding:e,size:t,ref:o})}),a8=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return g.createElement(i8,{...n,variant:r,padding:e,size:t,ref:o})}),Pv=R(Ov)(({theme:e})=>({height:"auto",minHeight:32,flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),l8=e=>g.createElement(Pv,{as:"a",...e}),s8=R.div(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& > *":{margin:0,whiteSpace:"normal"},"& > span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& small":{fontSize:"inherit",color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),u8=R.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),mi=Object.assign(R.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:Rv,HoverItem:n8,Button:Ov,Toggle:a8,Action:Pv,Link:l8,Text:s8,Icon:u8}),Ag=R.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function({children:e,summary:t,collapsed:r,disabled:n,initialCollapsed:o,storageKey:i,state:a,...l}){let s=d8({collapsed:r,disabled:n,initialCollapsed:o,storageKey:i}),u=a||s;return g.createElement(g.Fragment,null,typeof t=="function"?t(u):t,g.createElement(Ag,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:Ag});var c8=(e,t)=>{let[r,n]=p.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return p.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},d8=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,i]=c8(n&&`useCollapsible:${n}`,!!r);p.useEffect(()=>{e!==void 0&&i(e)},[e,i]);let a=p.useCallback(s=>{s?.stopPropagation(),t||i(u=>!u)},[t,i]),l=Fe();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:i,toggleCollapsed:a,toggleProps:{disabled:t,onClick:a,"aria-controls":l,"aria-expanded":!o}}},f8=nt({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),p8=nt({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(10deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(350deg)"},"100%":{transform:"rotate(360deg)"}}),h8=nt({to:{backgroundPositionX:"36%"}}),Dg=R.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),Rg=R.div(({animation:e="none",color:t,theme:r})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:r.background.content,borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&t&&r.color[t]||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":{content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1,...e==="rainbow"&&{animation:`${h8} 10s infinite linear, ${f8} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"},...e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${p8} 3s linear infinite`,backgroundImage:t==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(p.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},o){return g.createElement(Rg,{animation:e,color:t,ref:o,...r},g.createElement(Dg,{...n}))}),{Content:Dg,Outline:Rg});const{deprecate:Ss}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var g8=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Iv=e=>({_s:e,status:g8[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),Lu=e=>e?6:5,m8=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Lu(t)}},y8=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],b8=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),Og=(e,t,r,n,o)=>{clearTimeout(n.current);let i=Iv(e);t(i),r.current=i,o&&o({current:i})},v8=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=p.useState(()=>Iv(i?2:Lu(a))),d=p.useRef(u),f=p.useRef(),[h,m]=y8(o),b=p.useCallback(()=>{let y=m8(d.current._s,l);y&&Og(y,c,d,f,s)},[s,l]),v=p.useCallback(y=>{let E=$=>{switch(Og($,c,d,f,s),$){case 1:h>=0&&(f.current=setTimeout(b,h));break;case 4:m>=0&&(f.current=setTimeout(b,m));break;case 0:case 3:f.current=b8(E,$);break}},S=d.current.isEnter;typeof y!="boolean"&&(y=!S),y?!S&&E(e?r?0:1:2):S&&E(t?n?3:4:Lu(l))},[b,s,e,t,r,n,h,m,l]);return[u,v,b]};function E8(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[r,n]=p.useState(t(e));function o(){n(t(e))}return p.useEffect(()=>{let i=window.matchMedia(e);return o(),i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[e]),r}var Fv={};Le(Fv,{Actions:()=>L8,Close:()=>va,CloseButton:()=>R8,Col:()=>Uv,Container:()=>jv,Content:()=>O8,Description:()=>F8,Dialog:()=>D8,Error:()=>k8,ErrorWrapper:()=>Kv,Header:()=>P8,Overlay:()=>Bv,Row:()=>Hv,Title:()=>I8});const{deprecate:Lv}=__STORYBOOK_MODULE_CLIENT_LOGGER__;p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);var kv=p.createContext({}),S8=p.forwardRef(function(e,t){[e,t]=je(e,t,kv);let{children:r,level:n=3,className:o,...i}=e,a=`h${n}`;return g.createElement(a,{...i,ref:t,className:o??"react-aria-Heading"},r)}),Nv=p.createContext({}),$8=p.forwardRef(function(e,t){[e,t]=je(e,t,Nv);let{elementType:r="span",...n}=e;return g.createElement(r,{className:"react-aria-Text",...n,ref:t})}),Mv=nt({from:{opacity:0},to:{opacity:1}}),x8=nt({from:{opacity:1},to:{opacity:0}}),w8=nt({from:{maxHeight:0},to:{}}),C8=nt({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),_8=nt({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),T8=nt({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),A8=nt({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),Bv=R.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:90,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${x8} ${t}ms`:`${Mv} ${t}ms`,animationFillMode:"forwards"}})),jv=R.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:100,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:o,$transitionDuration:i})=>n==="dialog"?{top:"50%",left:"50%",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:o==="exiting"||o==="preExit"?`${_8} ${i}ms`:`${C8} ${i}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",borderRadius:"10px 10px 0 0",overflow:"hidden",width:t??"100%",height:r??"80%",maxWidth:"100%",background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:o==="exiting"||o==="preExit"?`${A8} ${i}ms`:`${T8} ${i}ms`,animationFillMode:"forwards !important"}}),va=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=p.useContext(zv);if(e&&g.isValidElement(t)){let i=a=>{r?.(a),t.props.onClick?.(a),o?.()};return g.cloneElement(t,{...n,onClick:i})}return g.createElement(xe,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},g.createElement(fy,null))},D8={Close:()=>(Lv("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),g.createElement(va,{"data-deprecated":"Modal.Dialog.Close"}))},R8=({ariaLabel:e,...t})=>(Lv("Modal.CloseButton is deprecated, please use Modal.Close instead."),g.createElement(va,{asChild:!0},g.createElement(xe,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},g.createElement(fy,null)))),O8=R.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Hv=R.div({display:"flex",justifyContent:"space-between",gap:16}),Uv=R.div({display:"flex",flexDirection:"column",gap:4}),P8=({hasClose:e=!0,onClose:t,...r})=>g.createElement(Hv,null,g.createElement(Uv,{...r}),e&&g.createElement(va,{onClick:t})),I8=R(e=>g.createElement(S8,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),F8=R($8)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),L8=R.div({display:"flex",flexDirection:"row-reverse",gap:8}),Kv=R.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${w8} 300ms, ${Mv} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),k8=({children:e,...t})=>g.createElement(Kv,{...t},g.createElement("div",null,e)),zv=p.createContext({});function N8({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:i,dismissOnClickOutside:a=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:h,transitionDuration:m=200,variant:b="dialog",...v}){let y;(i===void 0||i==="")&&(y="ariaLabel",Ss("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(y="onEscapeKeyDown",Ss("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(y="onInteractOutside",Ss("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let E=p.useRef(null),S=E8("(prefers-reduced-motion: reduce)"),[{status:$,isMounted:C},_]=v8({timeout:S?0:m,mountOnEnter:!0,unmountOnExit:!0}),w=Do({isOpen:u||C,defaultOpen:h,onOpenChange:L=>{_(L),f?.(L)}}),T=()=>{w.close()},{modalProps:D,underlayProps:P}=WF({isDismissable:a,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?L=>{let A=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:L});return d(A),!A.defaultPrevented}:void 0},w,E);if(p.useEffect(()=>{let L=u??h??!1;L&&!C?_(!0):!L&&C&&_(!1)},[u,h,C,_]),p.useEffect(()=>{C&&(u||h)&&f?.(!0)},[C]),p.useEffect(()=>{if(C&&(u||h)&&E.current)return ya([E.current],{shouldUseInert:!0})},[C,u,h,E]),!C||$==="exited"||$==="unmounted")return null;let x=ee(D,{onKeyDown:L=>{L.key!=="Escape"?D.onKeyDown?.(L):l&&(c?.(L.nativeEvent),L.nativeEvent.defaultPrevented||T())}}),k=e??(t?document.querySelector(t):void 0);return g.createElement(ki,{disableFocusManagement:!0,portalContainer:k||void 0},g.createElement(ad,{restoreFocus:!0,contain:!0,autoFocus:!0},g.createElement(Bv,{$status:$,$transitionDuration:m,...P}),g.createElement("div",{role:"dialog","aria-label":i,ref:E,...x},g.createElement(zv.Provider,{value:{close:T}},g.createElement(jv,{"data-deprecated":y,$variant:b,$status:$,$transitionDuration:m,className:s,width:n,height:o,...v},r)))))}Object.assign(N8,Fv);R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Hs}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Hs}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.div();R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function M8(e,t){var r=p.useRef(null),n=p.useRef(null);n.current=t;var o=p.useRef(null);p.useEffect(function(){i()});var i=p.useCallback(function(){var a=o.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return p.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),p.useCallback(function(a){o.current=a,i()},[i])}function Pg(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function Gv(e){e===void 0&&(e={});var t=e.onResize,r=p.useRef(void 0);r.current=t;var n=e.round||Math.round,o=p.useRef(),i=p.useState({width:void 0,height:void 0}),a=i[0],l=i[1],s=p.useRef(!1);p.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=p.useRef({width:void 0,height:void 0}),c=M8(p.useCallback(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var h=f[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",b=Pg(h,m,"inlineSize"),v=Pg(h,m,"blockSize"),y=b?n(b):void 0,E=v?n(v):void 0;if(u.current.width!==y||u.current.height!==E){var S={width:y,height:E};u.current.width=y,u.current.height=E,r.current?r.current(S):s.current||l(S)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,n]),e.ref);return p.useMemo(function(){return{ref:c,width:a.width,height:a.height}},[c,a.width,a.height])}var B8=R.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function j8({centered:e,scale:t,children:r}){let n=p.useRef(null),[o,i]=p.useState(0),a=p.useCallback(({height:l})=>{l&&i(l/t)},[t]);return p.useEffect(()=>{n.current&&i(n.current.getBoundingClientRect().height)},[t]),Gv({ref:n,onResize:a}),g.createElement(B8,{centered:e,scale:t,elementHeight:o},g.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var Wv={Element:j8};const{global:H8}=__STORYBOOK_MODULE_GLOBAL__;var{document:U8}=H8,K8=R.strong(({theme:e})=>({color:e.color.orange})),z8=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Ig=R.em(({theme:e})=>({color:e.textMutedColor})),G8=/(Error): (.*)\n/,W8=/at (?:(.*) )?\(?(.+)\)?/,V8=/([^@]+)?(?:\/<)?@(.+)?/,q8=/([^@]+)?@(.+)?/,Vv=({error:e})=>{if(!e)return g.createElement(p.Fragment,null,"This error has no stack or message");if(!e.stack)return g.createElement(p.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
625
+
626
+ ${t}`);let r=t.match(G8);if(!r)return g.createElement(p.Fragment,null,t);let[,n,o]=r,i=t.split(/\n/).slice(1),[,...a]=i.map(l=>{let s=l.match(W8)||l.match(V8)||l.match(q8);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(U8.location.origin,"")}:null}).filter(Boolean);return g.createElement(p.Fragment,null,g.createElement("span",null,n),": ",g.createElement(K8,null,o),g.createElement("br",null),a.map((l,s)=>l?.name?g.createElement(p.Fragment,{key:s}," ","at ",g.createElement(z8,null,l.name)," (",g.createElement(Ig,null,l.location),")",g.createElement("br",null)):g.createElement(p.Fragment,{key:s}," ","at ",g.createElement(Ig,null,l?.location),g.createElement("br",null))))},Y8=R.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?Dr.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:Dr.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),X8=e=>g.createElement(Y8,{...e,type:"checkbox"}),J8=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Z8=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Q8=({label:e,children:t,...r})=>g.createElement(J8,{...r},e?g.createElement(Z8,null,g.createElement("span",null,e)):null,t),cd=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}}),qv=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}}),Yv=(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}}),eL={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},dd=(({theme:e})=>({...eL,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},'&[disabled], &[aria-disabled="true"]':{background:e.base==="light"?e.color.lighter:"transparent",cursor:"not-allowed"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),tL=R.div({position:"relative",width:"100%"}),rL=R.div(({theme:e})=>({position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",overflow:"hidden",color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:r,padding:n}=dd(e);return{fontSize:t,lineHeight:r,padding:n}}),nL=Object.assign(R(p.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...i},a){let l=Fe();return g.createElement(tL,null,g.createElement("input",{...i,value:n,ref:a,"aria-describedby":o?l:void 0}),o&&g.createElement(rL,{"aria-hidden":!0},g.createElement("span",null,n),g.createElement("span",{id:l},o)))}))(dd,cd,qv,Yv,{minHeight:32,width:"100%"}),{displayName:"Input"}),oL=R.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?Dr.dark:e.color.mediumdark,borderColor:e.base==="dark"?Dr.dark:e.color.mediumdark},"&:checked":{backgroundColor:Dr.secondary,borderColor:Dr.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),iL=e=>g.createElement(oL,{...e,type:"radio"}),aL=R.select(cd,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base==="light"?Ym(e.background.app):e.background.app,filter:`
627
+ drop-shadow(0 5px 5px rgba(0,0,0,0.05))
628
+ drop-shadow(0 0 3px rgba(0,0,0,0.1))
629
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),lL=({children:e,...t})=>g.createElement(aL,{...t},!G$()&&g.createElement("button",null,g.createElement("selectedcontent",null),g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},g.createElement("path",{d:"m6 9 6 6 6-6"}))),g.createElement("optgroup",null,e)),sL=p.useLayoutEffect,uL=function(e){var t=g.useRef(e);return sL(function(){t.current=e}),t},Fg=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},cL=function(e,t){var r=g.useRef();return g.useCallback(function(n){e.current=n,r.current&&Fg(r.current,null),r.current=t,t&&Fg(t,n)},[t])},Lg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},dL=function(e){Object.keys(Lg).forEach(function(t){e.style.setProperty(t,Lg[t],"important")})},kg=dL,Ke=null,Ng=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function fL(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Ke||(Ke=document.createElement("textarea"),Ke.setAttribute("tabindex","-1"),Ke.setAttribute("aria-hidden","true"),kg(Ke)),Ke.parentNode===null&&document.body.appendChild(Ke);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,l=a.boxSizing;Object.keys(a).forEach(function(f){var h=f;Ke.style[h]=a[h]}),kg(Ke),Ke.value=t;var s=Ng(Ke,e);Ke.value=t,s=Ng(Ke,e),Ke.value="x";var u=Ke.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+i),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+i),s=Math.min(d,s),[s,u]}var Mg=function(){},pL=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},hL=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],gL=!!document.documentElement.currentStyle,mL=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=pL(hL,t),n=r.boxSizing;if(n==="")return null;gL&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},yL=mL;function fd(e,t,r){var n=uL(r);p.useLayoutEffect(function(){var o=function(i){return n.current(i)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var bL=function(e,t){fd(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},vL=function(e){fd(window,"resize",e)},EL=function(e){fd(document.fonts,"loadingdone",e)},SL=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],$L=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?Mg:i,l=e.onHeightChange,s=l===void 0?Mg:l,u=lA(e,SL),c=u.value!==void 0,d=p.useRef(null),f=cL(d,t),h=p.useRef(0),m=p.useRef(),b=function(){var y=d.current,E=r&&m.current?m.current:yL(y);if(E){m.current=E;var S=fL(E,y.value||y.placeholder||"x",o,n),$=S[0],C=S[1];h.current!==$&&(h.current=$,y.style.setProperty("height",$+"px","important"),s($,{rowHeight:C}))}},v=function(y){c||b(),a(y)};return p.useLayoutEffect(b),bL(d,function(){if(!c){var y=d.current.value;requestAnimationFrame(function(){var E=d.current;E&&y!==E.value&&b()})}}),vL(b),EL(b),p.createElement("textarea",B$({},u,{onChange:v,ref:f}))},xL=p.forwardRef($L),wL=Object.assign(R(p.forwardRef(function({size:e,valid:t,align:r,...n},o){return g.createElement(xL,{...n,ref:o})}))(dd,cd,qv,Yv,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),zr=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:Q8,Input:nL,Select:lL,Textarea:wL,Button:xe,Checkbox:X8,Radio:iL}),CL=R.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
630
+ drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
631
+ drop-shadow(0 1px 3px rgba(0,0,0,0.1))
632
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ym(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),_L=R(xe)({position:"absolute",top:4,right:4}),Ro=p.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},l)=>g.createElement(CL,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l,...a},e,o&&g.createElement(_L,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},g.createElement(hA,null))));Ro.displayName="Popover";var Xv=({id:e,title:t,description:r,icon:n,aside:o,children:i,isSelected:a,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>g.createElement(mi.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":a,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},i??g.createElement(g.Fragment,null,n&&g.createElement(mi.Icon,null,n),g.createElement(mi.Text,null,g.createElement("p",null,t),r&&g.createElement("small",null,r)),o));Xv.displayName="SelectOption";var ei=5,Jv=Symbol.for("undefined");function TL(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function ku(e){return{...e,type:"option",value:yi(e.value)}}function $s(e){return"type"in e&&e.type==="reset"?e:ku(e)}function Un(e){if(e!==Jv)return e}function yi(e){return e===void 0?Jv:e}var AL=R("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Bg(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var DL=R.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function jg(e,t){return t===void 0?[]:TL(t)?e.filter(r=>r.value===t).map(ku):e.filter(r=>t.some(n=>r.value===n)).map(ku)}var RL=R(xe)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:Xt(.93,r.barSelectedColor),color:r.base==="light"?Ge(.1,r.color.secondary):r.color.secondary}:{}),OL=R.div({position:"fixed",inset:0,zIndex:1e3}),PL=({children:e,handleClose:t,triggerRef:r})=>{let n=g.useRef(null);d1({ref:n,onInteractOutside:t}),p.useEffect(()=>{if(n.current)return ya([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=id({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=ld({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=Zu();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},g.createElement(ki,{disableFocusManagement:!0,...i},g.createElement(OL,{...a}),g.createElement(Ro,{hasChrome:!0,ref:n,padding:0,...o},e))},Zv=p.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:h,showSelectedOptionTitle:m=!0,...b},v)=>{let[y,E]=p.useState(b.defaultOpen||!1),[S,$]=p.useState(!1),C=At(v),_=p.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),w=`${_}-listbox`,T=p.useRef(null),D=Do({isOpen:y&&!r,onOpenChange:E}),P=p.useCallback(()=>{E(!1),$(!0)},[]);p.useEffect(()=>{!D.isOpen&&S&&(C.current?.focus(),$(!1))},[D.isOpen,S,C]);let[x,k]=p.useState(jg(n,o)),L=p.useCallback(U=>{U.type==="reset"?(d?.([]),a?.(),k([])):k(i?j=>{let W=[];return j?.some(q=>q.value===U.value)?(c?.(Un(U.value)),W=j?.filter(q=>q.value!==U.value)??[]):(u?.(Un(U.value)),W=[...j??[],U]),d?.(W.map(q=>Un(q.value))),W}:j=>j.every(W=>W.value!==U.value)?(u?.(Un(U.value)),d?.([Un(U.value)]),[U]):j)},[i,d,u,c,a]),A=p.useMemo(()=>a?{type:"reset",value:void 0,title:s??"Reset selection",icon:g.createElement(xA,null),description:void 0,children:void 0}:void 0,[a,s]),O=p.useMemo(()=>A?[A,...n]:n,[n,A]);p.useEffect(()=>{o&&k(jg(n,o))},[o,n]);let[I,F]=p.useState(void 0),M=p.useCallback((U,j=!0)=>{F($s(U)),!i&&j&&L($s(U))},[i,L]),B=p.useCallback((U=1)=>{if(!y||!I){M(O[U===1?0:Math.min(U,O.length-1)]);return}let j=O.findIndex(J=>I.type==="reset"?"type"in J&&J.type==="reset":yi(J.value)===I.value),W=j+U,q;W>=O.length&&j===O.length-1?q=O[0]:q=O[Math.min(O.length-1,W)],M(q)},[y,I,M,O]),N=p.useCallback((U=1)=>{if(!y||!I){M(O[Math.max(0,O.length-U)]);return}let j=O.findIndex(J=>I.type==="reset"?"type"in J&&J.type==="reset":yi(J.value)===I.value),W=j-U,q;W<0&&j===0?q=O[O.length-1]:q=O[Math.max(0,W)],M(q)},[y,I,M,O]),K=p.useCallback(U=>{let j=ke=>{U.preventDefault(),M(O[ke]),E(!0)},W=O.findIndex(ke=>x.some(X=>X.value===yi(ke.value))),q=W!==-1,J=A&&!q?1:0,Se=O.length-1;U.key==="Enter"||U.key===" "?j(q?Math.min(W,Se):J):U.key==="ArrowDown"?j(q?Math.min(W+1,Se):J):U.key==="ArrowUp"?j(q?Math.max(W-1,J):Se):U.key==="Home"?j(J):U.key==="End"?j(Se):U.key==="PageDown"?j(Math.min((q?W:J)+ei,Se)):U.key==="PageUp"&&j(Math.max(0,(q?W:Se)-ei))},[O,A,M,x]),H=p.useCallback(U=>{U.key!=="Tab"?U.preventDefault():P(),U.key==="Escape"?P():U.key==="ArrowDown"?B():U.key==="ArrowUp"?N():U.key==="Home"?M(O[0]):U.key==="End"?M(O[O.length-1]):U.key==="PageDown"?B(ei):U.key==="PageUp"&&N(ei)},[P,B,N,O,M]);p.useEffect(()=>{if(y&&I){let U=document.getElementById(Bg(_,I));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else y&&T.current?.focus()},[y,I,_]);let G=p.useMemo(()=>x.length===1?`${h} ${x[0].title}`:x.length?`${h}, ${x.length} values selected`:h,[h,x]);return g.createElement(g.Fragment,null,g.createElement(RL,{...b,variant:"ghost",ariaLabel:G,tooltip:f??h,disableAllTooltips:y,id:_,ref:C,padding:l,$isOpen:y,$hasSelection:!!x.length,"aria-disabled":r,disabled:r,onClick:()=>{y?P():E(!0)},tabIndex:y?-1:0,onKeyDown:K,role:"button","aria-controls":y?w:void 0,"aria-expanded":y,"aria-haspopup":"listbox"},!i&&g.createElement(g.Fragment,null,t,m&&x[0]?.title||e),i&&g.createElement(g.Fragment,null,t,e,!!x.length&&g.createElement(DL,{"aria-label":`${x.length} ${x.length>1?"items":"item"} selected`},x?.length))),D.isOpen&&g.createElement(PL,{handleClose:P,triggerRef:C},g.createElement(AL,{"aria-label":h,role:"listbox",id:w,ref:T,"aria-multiselectable":i,onKeyDown:H,tabIndex:y?0:-1},O.map(U=>({option:$s(U),externalOption:U})).map(({externalOption:U,option:j})=>{let W=x?.some(J=>J.value===j.value)&&j!==A,q=j===A;return g.createElement(Xv,{key:j.value===void 0?"sb-reset":String(j.value),title:j.title,description:j.description,aside:j.aside,icon:!q&&i?g.createElement(zr.Checkbox,{checked:W,hidden:!0,role:"presentation"}):j.icon,id:Bg(_,j),isActive:y&&I?.value===j.value,isSelected:W,onClick:()=>{L(j),i||P()},onFocus:()=>M(U,!1),shouldLookDisabled:q&&x.length===0&&i,onKeyDown:J=>{J.key==="Enter"||J.key===" "?(J.preventDefault(),L(j),i||P()):J.key==="Tab"&&(i||L(j),P())}},j.children)}))))});Zv.displayName="Select";var Gr=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},Qv=class extends Gr{filter(e,t,r){let[n,o]=nE(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},eE=class extends Gr{};eE.type="header";var IL=class extends Gr{};IL.type="loader";var tE=class extends Qv{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};tE.type="item";var rE=class extends Qv{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};rE.type="section";var FL=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=r?.firstChildKey!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=nE(this,t,this.firstKey,e);return t?.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function nE(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=i?.key)!==null&&s!==void 0?s:null]}var oE=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},xs=class Nu extends oE{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Nu?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,a,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof Nu&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var h;c.nextKey=(h=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&h!==void 0?h:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&m!==void 0?m:null;var b;if(c.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null,(c.colSpan!=null||c.colIndex!=null)&&u){var v,y;let E=((v=c.colIndex)!==null&&v!==void 0?v:c.index)+((y=c.colSpan)!==null&&y!==void 0?y:1);if(u.node!=null&&E!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=E}}}}setProps(t,r,n,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},LL=class extends oE{get isConnected(){return this.isMounted}createElement(e){return new xs(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof xs&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof xs&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function iE(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=p.useMemo(()=>new WeakMap,i);return p.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=p.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),a.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Ni=p.createContext(!1);function kL(e){if(p.useContext(Ni))return g.createElement(g.Fragment,null,e.children);let t=g.createElement(Ni.Provider,{value:!0},e.children);return g.createElement("template",{"data-react-aria-hidden":!0},t)}function pd(e){let t=(r,n)=>p.useContext(Ni)?null:e(r,n);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function NL(){return p.useContext(Ni)}var aE=p.createContext(!1),ho=p.createContext(null);function lE(e){if(p.useContext(ho))return e.content;let{collection:t,document:r}=HL(e.createCollection);return g.createElement(g.Fragment,null,g.createElement(kL,null,g.createElement(ho.Provider,{value:r},e.content)),g.createElement(ML,{render:e.children,collection:t}))}function ML({collection:e,render:t}){return t(e)}function BL(e,t,r){let n=Kr(),o=p.useRef(n);o.current=n;let i=p.useCallback(()=>o.current?r():t(),[t,r]);return i2.useSyncExternalStore(e,i)}var jL=typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore:BL;function HL(e){let[t]=p.useState(()=>new LL(e?.()||new FL)),r=p.useCallback(a=>t.subscribe(a),[t]),n=p.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=jL(r,n,o);return ue(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var Mu=p.createContext(null);function UL(e){var t;return t=class extends Gr{},t.type=e,t}function sE(e,t,r,n,o,i){typeof e=="string"&&(e=UL(e));let a=p.useCallback(s=>{s?.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=p.useContext(Mu);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?g.createElement(Mu.Provider,{value:s},o):null}return g.createElement(e.type,{ref:a},o)}function Ea(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=p.forwardRef((o,i)=>{let a=p.useContext(Oi);if(!p.useContext(aE)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return sE(e,o,i,"children"in o?o.children:null,null,l=>g.createElement(Oi.Provider,{value:a},g.createElement(r,{node:l})))});return n.displayName=t.name,n}function hd(e,t,r=uE){let n=({node:i})=>t(i.props,i.props.ref,i),o=p.forwardRef((i,a)=>{let l=r(i);var s;return(s=sE(e,i,a,null,l,u=>g.createElement(n,{node:u})))!==null&&s!==void 0?s:g.createElement(g.Fragment,null)});return o.displayName=t.name,o}function uE(e){return iE({...e,addIdAndValue:!0})}var Hg=p.createContext(null);function cE(e){let t=p.useContext(Hg),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=uE({...e,idScope:n,dependencies:r});return p.useContext(ho)&&(o=g.createElement(KL,null,o)),t=p.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),g.createElement(Hg.Provider,{value:t},o)}function KL({children:e}){let t=p.useContext(ho),r=p.useMemo(()=>g.createElement(ho.Provider,{value:null},g.createElement(aE.Provider,{value:!0},e)),[e]);return Kr()?g.createElement(Mu.Provider,{value:t},r):vo.createPortal(r,t)}var dE=p.createContext({});pd(function(e,t){[e,t]=je(e,t,dE);let{elementType:r="label",...n}=e;return g.createElement(r,{className:"react-aria-Label",...n,ref:t})});function zL(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Fe(t);let a=Fe(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=fa({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function GL(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=ve(e,{labelable:!0}),{labelProps:s,fieldProps:u}=zL({...e,labelElementType:"span"});t=so(t,r,n);let c=(t-r)/(n-r),d=gF(a);if(!i&&!o){let f=a.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:ee(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}var fE=p.createContext(null);p.forwardRef(function(e,t){[e,t]=je(e,t,fE);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=so(r,n,o);let[a,l]=f1(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=GL({...e,label:l}),c=i?void 0:(r-n)/(o-n)*100,d=ot({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}}),f=ve(e,{global:!0});return g.createElement("div",{...ee(f,d,s),ref:t,slot:e.slot||void 0},g.createElement(dE.Provider,{value:{...u,ref:a,elementType:"span"}},d.children))});var qr=null;function Ug(e,t="assertive",r=7e3){qr?qr.announce(e,t,r):(qr=new WL,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?qr.announce(e,t,r):setTimeout(()=>{qr?.isAttached()&&qr?.announce(e,t,r)},100))}var WL=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function VL(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:h,rel:m,type:b="button"}=e,v;r==="button"?v={type:b,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?h:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:y,isPressed:E}=To({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=Ao(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let $=ee(S,y,ve(e,{labelable:!0}));return{isPressed:E,buttonProps:ee(v,$,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var pE=p.createContext({});pd(function(e,t){[e,t]=je(e,t,pE),e=qL(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=VL(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=ma(e),{hoverProps:u,isHovered:c}=Tn({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=ot({...e,values:d,defaultClassName:"react-aria-Button"}),h=Fe(o.id),m=Fe(),b=o["aria-labelledby"];n&&(b?b=`${b} ${m}`:o["aria-label"]&&(b=`${h} ${m}`));let v=p.useRef(n);p.useEffect(()=>{let E={"aria-labelledby":b||h};(!v.current&&l&&n||v.current&&l&&!n)&&Ug(E,"assertive"),v.current=n},[n,l,b,h]);let y=ve(e,{global:!0});return delete y.onClick,g.createElement("button",{...ee(y,f,o,a,u),type:o.type==="submit"&&n?"button":o.type,id:h,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},g.createElement(fE.Provider,{value:{id:m}},f.children))});function qL(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var gd=p.createContext(null),Kg=p.createContext(null),YL=p.forwardRef(function(e,t){[e,t]=je(e,t,gd);let r=p.useContext($a),n=Do(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=Zb(t,o.isOpen)||e.isExiting||!1,a=NL(),{direction:l}=er();if(a){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),g.createElement(g.Fragment,null,s)}return o&&!o.isOpen&&!i?null:g.createElement(XL,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l})});function XL({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=p.useRef(null),a=p.useRef(null),l=p.useContext(Kg),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:h,triggerAnchorPoint:m}=GF({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:s?l:a},e),b=o.popoverRef,v=Jb(b,!!h)||o.isEntering||!1,y=ot({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:h,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,$]=p.useState(!1);ue(()=>{b.current&&$(E&&!b.current.querySelector("[role=dialog]"))},[b,E]),p.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&fr(b.current)},[S,b,o.trigger]);let C=p.useMemo(()=>{let D=y.children;if(n)for(let P of n)D=g.createElement(P.Provider,{value:null},D);return D},[y.children,n]),_={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...y.style},w=g.createElement("div",{...ee(ve(o,{global:!0}),c),...y,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:_,dir:o.dir,"data-trigger":o.trigger,"data-placement":h,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&g.createElement(_g,{onDismiss:e.close}),g.createElement(nd.Provider,{value:{...f,placement:h,ref:i}},C),g.createElement(_g,{onDismiss:e.close}));if(!s)return g.createElement(ki,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&g.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),g.createElement("div",{ref:a,style:{display:"contents"}},g.createElement(Kg.Provider,{value:a},w)));var T;return g.createElement(ki,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(T=r??l?.current)!==null&&T!==void 0?T:void 0},w)}var hE=p.createContext(null);hd("section",(e,t,r)=>{let{name:n,render:o}=p.useContext(hE);return o(e,t,r,"react-aria-Section")});var gE={CollectionRoot({collection:e,renderDropIndicator:t}){return zg(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return zg(e,t,r)}};function zg(e,t,r){return iE({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:g.createElement(g.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,JL(e,n,r))}})}function JL(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&l.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Oo=p.createContext(gE);function mE(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}var Gg=p.createContext(null),ZL=p.createContext(null),yE=p.createContext({});Ea(eE,function(e,t){return[e,t]=je(e,t,yE),g.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var bE=p.createContext({});p.forwardRef(function(e,t){return[e,t]=je(e,t,bE),g.createElement("kbd",{dir:"ltr",...e,ref:t})});function QL(e){let t=ve(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var vE=p.createContext({}),EE=class extends Gr{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};EE.type="separator";Ea(EE,function(e,t){[e,t]=je(e,t,vE);let{elementType:r,orientation:n,style:o,className:i,slot:a,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=QL({...l,elementType:r,orientation:n}),c=ve(e,{global:!0});return g.createElement(s,{...ee(c,u),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var SE=new WeakMap;function Bu(e){return tI()?e.altKey:e.ctrlKey}function bi(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var $E=new WeakMap;function e6(e){let t=Fe();return $E.set(e,t),t}function t6(e){return $E.get(e)}var r6=1e3;function n6(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=p.useRef({search:"",timeout:void 0}).current,i=a=>{let l=o6(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},r6)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function o6(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function xE(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:m=n,linkBehavior:b="action"}=e,{direction:v}=er(),y=ca(),E=F=>{var M;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((M=n.current)===null||M===void 0)&&M.contains(F.target)))return;let B=(z,V)=>{if(z!=null){if(t.isLink(z)&&b==="selection"&&u&&!Bu(F)){vo.flushSync(()=>{t.setFocusedKey(z,V)});let Q=bi(n,z),le=t.getItemProps(z);Q&&y.open(Q,F,le.href,le.routerOptions);return}if(t.setFocusedKey(z,V),t.isLink(z)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(z):u&&!Bu(F)&&t.replaceSelection(z)}};switch(F.key){case"ArrowDown":if(r.getKeyBelow){var N,K,H;let z=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);z==null&&i&&(z=(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),z!=null&&(F.preventDefault(),B(z))}break;case"ArrowUp":if(r.getKeyAbove){var G,U,j;let z=t.focusedKey!=null?(G=r.getKeyAbove)===null||G===void 0?void 0:G.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);z==null&&i&&(z=(j=r.getLastKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),z!=null&&(F.preventDefault(),B(z))}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,q,J;let z=t.focusedKey!=null?(W=r.getKeyLeftOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;z==null&&i&&(z=v==="rtl"?(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(J=r.getLastKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),z!=null&&(F.preventDefault(),B(z,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var Se,ke,X;let z=t.focusedKey!=null?(Se=r.getKeyRightOf)===null||Se===void 0?void 0:Se.call(r,t.focusedKey):null;z==null&&i&&(z=v==="rtl"?(ke=r.getLastKey)===null||ke===void 0?void 0:ke.call(r,t.focusedKey):(X=r.getFirstKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),z!=null&&(F.preventDefault(),B(z,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let z=r.getFirstKey(t.focusedKey,Zr(F));t.setFocusedKey(z),z!=null&&(Zr(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(z):u&&t.replaceSelection(z))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let z=r.getLastKey(t.focusedKey,Zr(F));t.setFocusedKey(z),z!=null&&(Zr(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(z):u&&t.replaceSelection(z))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let z=r.getKeyPageBelow(t.focusedKey);z!=null&&(F.preventDefault(),B(z))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let z=r.getKeyPageAbove(t.focusedKey);z!=null&&(F.preventDefault(),B(z))}break;case"a":Zr(F)&&t.selectionMode==="multiple"&&l!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(F.shiftKey)n.current.focus();else{let z=Xe(n.current,{tabbable:!0}),V,Q;do Q=z.lastChild(),Q&&(V=Q);while(Q);V&&!V.contains(document.activeElement)&&qe(V)}break}}},S=p.useRef({top:0,left:0});qn(m,"scroll",h?void 0:()=>{var F,M,B,N;S.current={top:(B=(F=m.current)===null||F===void 0?void 0:F.scrollTop)!==null&&B!==void 0?B:0,left:(N=(M=m.current)===null||M===void 0?void 0:M.scrollLeft)!==null&&N!==void 0?N:0}});let $=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){var M,B;let H=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},G=F.relatedTarget;var N,K;G&&F.currentTarget.compareDocumentPosition(G)&Node.DOCUMENT_POSITION_FOLLOWING?H((N=t.lastSelectedKey)!==null&&N!==void 0?N:(M=r.getLastKey)===null||M===void 0?void 0:M.call(r)):H((K=t.firstSelectedKey)!==null&&K!==void 0?K:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!h&&m.current&&(m.current.scrollTop=S.current.top,m.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&m.current){let H=bi(n,t.focusedKey);H instanceof HTMLElement&&(!H.contains(document.activeElement)&&!d&&qe(H),po()==="keyboard"&&Gh(H,{containingElement:n.current}))}}},C=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)},_=p.useRef(!1);qn(n,yI,d?F=>{let{detail:M}=F;F.stopPropagation(),t.setFocused(!0),M?.focusStrategy==="first"&&(_.current=!0)}:void 0);let w=Pe(()=>{var F,M;let B=(M=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&M!==void 0?M:null;if(B==null){let N=Oe();M1(n.current),B1(N,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(B),_.current=!1});Kh(()=>{_.current&&w()},[t.collection,w]);let T=Pe(()=>{t.collection.size>0&&(_.current=!1)});Kh(()=>{T()},[t.focusedKey,T]),qn(n,mI,d?F=>{var M;F.stopPropagation(),t.setFocused(!1),!((M=F.detail)===null||M===void 0)&&M.clearFocusKey&&t.setFocusedKey(null)}:void 0);let D=p.useRef(o),P=p.useRef(!1);p.useEffect(()=>{if(D.current){var F,M;let K=null;var B;o==="first"&&(K=(B=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&B!==void 0?B:null);var N;o==="last"&&(K=(N=(M=r.getLastKey)===null||M===void 0?void 0:M.call(r))!==null&&N!==void 0?N:null);let H=t.selectedKeys;if(H.size){for(let G of H)if(t.canSelectItem(G)){K=G;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&fr(n.current),t.collection.size>0&&(D.current=!1,P.current=!0)}});let x=p.useRef(t.focusedKey),k=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==x.current||P.current)&&m.current&&n.current){let F=po(),M=bi(n,t.focusedKey);if(!(M instanceof HTMLElement))return;(F==="keyboard"||P.current)&&(k.current&&cancelAnimationFrame(k.current),k.current=requestAnimationFrame(()=>{m.current&&(Yb(m.current,M),F!=="virtual"&&Gh(M,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&x.current!=null&&n.current&&fr(n.current),x.current=t.focusedKey,P.current=!1}),p.useEffect(()=>()=>{k.current&&cancelAnimationFrame(k.current)},[]),qn(n,"react-aria-focus-scope-restore",F=>{F.preventDefault(),t.setFocused(!0)});let L={onKeyDown:E,onFocus:$,onBlur:C,onMouseDown(F){m.current===F.target&&F.preventDefault()}},{typeSelectProps:A}=n6({keyboardDelegate:r,selectionManager:t});c||(L=ee(A,L));let O;d||(O=t.focusedKey==null?0:-1);let I=e6(t.collection);return{collectionProps:ee(L,{tabIndex:O,"data-collection":I})}}function wE(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=ca();t=Fe(t);let h=N=>{if(N.pointerType==="keyboard"&&Bu(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);f.open(o.current,N,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(Zr(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};p.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?M1(o.current):l?l():document.activeElement!==o.current&&o.current&&fr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let m={};!a&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=N=>{N.preventDefault()});let b=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",y=r.isLink(n)&&d!=="selection"&&d!=="none",E=!s&&r.canSelectItem(n)&&!b&&!v,S=(u||y)&&!s,$=S&&(r.selectionBehavior==="replace"?!E:!E||r.isEmpty),C=S&&E&&r.selectionBehavior==="replace",_=$||C,w=p.useRef(null),T=_&&E,D=p.useRef(!1),P=p.useRef(!1),x=r.getItemProps(n),k=N=>{if(u){var K;u(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}y&&o.current&&f.open(o.current,N,x.href,x.routerOptions)},L={ref:o};if(i?(L.onPressStart=N=>{w.current=N.pointerType,D.current=T,N.pointerType==="keyboard"&&(!_||Vg())&&h(N)},c?(L.onPressUp=$?void 0:N=>{N.pointerType==="mouse"&&E&&h(N)},L.onPress=$?k:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&E&&h(N)}):L.onPress=N=>{if($||C&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Wg())return;k(N)}else N.pointerType!=="keyboard"&&E&&h(N)}):(L.onPressStart=N=>{w.current=N.pointerType,D.current=T,P.current=$,E&&(N.pointerType==="mouse"&&!$||N.pointerType==="keyboard"&&(!S||Vg()))&&h(N)},L.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&_&&Wg()||N.pointerType==="mouse"&&P.current)&&(_?k(N):E&&h(N))}),m["data-collection"]=t6(r.collection),m["data-key"]=n,L.preventFocusOnPress=a,a&&(L=ee(L,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),x)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])x[N]&&(L[N]=_o(L[N],x[N]));let{pressProps:A,isPressed:O}=To(L),I=C?N=>{w.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),k(N))}:void 0,{longPressProps:F}=JI({isDisabled:!T,onLongPress(N){N.pointerType==="touch"&&(h(N),r.setSelectionBehavior("toggle"))}}),M=N=>{w.current==="touch"&&D.current&&N.preventDefault()},B=d!=="none"&&r.isLink(n)?N=>{Nr.isOpening||N.preventDefault()}:void 0;return{itemProps:ee(m,E||$||a&&!s?A:{},T?F:{},{onDoubleClick:I,onDragStartCapture:M,onClick:B,id:t},a?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:O,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:_}}function Wg(){return window.event?.key==="Enter"}function Vg(){let e=window.event;return e?.key===" "||e?.code==="Space"}var qg=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?bi(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e?.scrollTop)!==null&&r!==void 0?r:0,width:(n=e?.clientWidth)!==null&&n!==void 0?n:0,height:(o=e?.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},i6=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if(n?.type==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!hn(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!hn(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new qg(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new qg(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function a6(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=mF({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>i||new i6({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=xE({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function l6(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=ve(e,{labelable:!0}),{listProps:s}=a6({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return SE.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ee(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function CE(e){return null}CE.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:s6(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];g.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function s6(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&g.Children.count(e.children)>0)}var u6=CE,c6=class{build(e,t){return this.context=t,Yg(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(g.isValidElement(t)&&t.type===g.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];g.Children.forEach(t,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let l of a)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(g.isValidElement(e.element)&&e.element.type===g.Fragment){let b=[];g.Children.forEach(e.element.props.children,y=>{b.push(y)});var o;let v=(o=e.index)!==null&&o!==void 0?o:0;for(let y of b)yield*this.getFullNode({element:y,index:v++},t,r,n);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=n?n.key:null,yield b;return}i=t.renderer(e.value)}if(g.isValidElement(i)){let b=i.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let S=i.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=b.getCollectionNode(i.props,this.context);var a;let y=(a=e.index)!==null&&a!==void 0?a:0,E=v.next();for(;!E.done&&E.value;){let S=E.value;e.index=y;var l;let $=(l=S.key)!==null&&l!==void 0?l:null;$==null&&($=S.element?null:this.getKey(i,e,t,r));let C=[...this.getFullNode({...S,key:$,index:y,wrapper:d6(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${i.key}`:i.key,n)];for(let _ of C){var s,u;_.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,_.value&&this.cache.set(_.value,_);var c;if(e.type&&_.type!==e.type)throw new Error(`Unsupported type <${ws(_.type)}> in <${ws((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${ws(e.type)}> is supported.`);y++,yield _}E=v.next(C)}return}if(e.key==null||e.type==null)return;let d=this;var f,h;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(h=e.textValue)!==null&&h!==void 0?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Yg(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let v of e.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let y=d.getFullNode({...v,index:b},d.getChildState(t,v),m.key,m);for(let E of y)b++,yield E}})};yield m}constructor(){this.cache=new WeakMap}};function Yg(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function d6(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function ws(e){return e[0].toUpperCase()+e.slice(1)}function _E(e,t,r){let n=p.useMemo(()=>new c6,[]),{children:o,items:i,collection:a}=e;return p.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function TE(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function f6(e){return p6(e)}function p6(e,t){for(let r of e)return r}function Cs(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Xg(e,t),t],o=[...Xg(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Xg(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var Jg=new WeakMap;function h6(e){let t=Jg.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(TE(i,e)):i.type==="item"&&r++};return n(e),Jg.set(e,r),r}function g6(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:h,onHoverStart:m,onHoverChange:b,onHoverEnd:v,onKeyDown:y,onKeyUp:E,onFocus:S,onFocusChange:$,onBlur:C,selectionManager:_=t.selectionManager}=e,w=!!l,T=w&&e["aria-expanded"]==="true";var D;let P=(D=e.isDisabled)!==null&&D!==void 0?D:_.isDisabled(o);var x;let k=(x=e.isSelected)!==null&&x!==void 0?x:_.isSelected(o),L=SE.get(t),A=t.collection.getItem(o),O=e.onClose||L.onClose,I=ca(),F=()=>{var Y;if(!w&&(!(A==null||(Y=A.props)===null||Y===void 0)&&Y.onAction?A.props.onAction():e.onAction&&e.onAction(o),L.onAction)){let Ue=L.onAction;Ue(o)}},M="menuitem";w||(_.selectionMode==="single"?M="menuitemradio":_.selectionMode==="multiple"&&(M="menuitemcheckbox"));let B=pi(),N=pi(),K=pi(),H={id:n,"aria-disabled":P||void 0,role:M,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[N,K].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};_.selectionMode!=="none"&&!w&&(H["aria-checked"]=k),a&&(H["aria-posinset"]=A?.index,H["aria-setsize"]=h6(t.collection));let G=p.useRef(!1),U=Y=>{d?.(Y),G.current=Y},j=p.useRef(null),W=Y=>{Y.pointerType!=="keyboard"&&(j.current={pointerType:Y.pointerType}),Y.pointerType==="mouse"&&(G.current||Y.target.click()),u?.(Y)},q=Y=>{var Ue,gt;h?.(Y),F(),lI(Y,I,A.props.href,A?.props.routerOptions);let Ze=((Ue=j.current)===null||Ue===void 0?void 0:Ue.pointerType)==="keyboard"?((gt=j.current)===null||gt===void 0?void 0:gt.key)==="Enter"||_.selectionMode==="none"||_.isLink(o):_.selectionMode!=="multiple"||_.isLink(o);Ze=i??Ze,O&&!w&&Ze&&O(),j.current=null},{itemProps:J,isFocused:Se}=wE({id:n,selectionManager:_,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:L.shouldUseVirtualFocus}),{pressProps:ke,isPressed:X}=To({onPressStart:s,onPress:c,onPressUp:W,onPressChange:U,onPressEnd:f,isDisabled:P}),{hoverProps:z}=Tn({isDisabled:P,onHoverStart(Y){!fo()&&!(T&&l)&&(_.setFocused(!0),_.setFocusedKey(o)),m?.(Y)},onHoverChange:b,onHoverEnd:v}),{keyboardProps:V}=c1({onKeyDown:Y=>{if(Y.repeat){Y.continuePropagation();return}switch(Y.key){case" ":j.current={pointerType:"keyboard",key:" "},Y.target.click();break;case"Enter":j.current={pointerType:"keyboard",key:"Enter"},Y.target.tagName!=="A"&&Y.target.click();break;default:w||Y.continuePropagation(),y?.(Y);break}},onKeyUp:E}),{focusProps:Q}=ed({onBlur:C,onFocus:S,onFocusChange:$}),le=ve(A?.props);delete le.id;let He=Wb(A?.props);return{menuItemProps:{...H,...ee(le,He,w?{onFocus:J.onFocus,"data-collection":J["data-collection"],"data-key":J["data-key"]}:J,ke,z,V,Q,L.shouldUseVirtualFocus||w?{onMouseDown:Y=>Y.preventDefault()}:void 0,P?void 0:{onClick:q}),tabIndex:J.tabIndex!=null&&T&&!L.shouldUseVirtualFocus?-1:J.tabIndex},labelProps:{id:B},descriptionProps:{id:N},keyboardShortcutProps:{id:K},isFocused:Se,isFocusVisible:Se&&_.isFocused&&fo()&&!T,isSelected:k,isPressed:X,isDisabled:P}}function m6(e){let{heading:t,"aria-label":r}=e,n=Fe();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var ti=2,y6=50,b6=1e3,Zg=Math.PI/12;function v6(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=p.useRef(void 0),a=p.useRef(void 0),l=p.useRef(0),s=p.useRef(void 0),u=p.useRef(void 0),c=p.useRef(void 0),d=p.useRef(2),[f,h]=p.useState(!1);Ti({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{h(!1),d.current=ti,i.current=void 0},b=MI(),v=Pe(y=>{f&&y.preventDefault()});p.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),p.useEffect(()=>{let y=r.current,E=t.current;if(o||!y||!n||b!=="pointer"||!E){m();return}a.current=y.getBoundingClientRect();let S=$=>{if($.pointerType==="touch"||$.pointerType==="pen")return;let C=Date.now();if(C-l.current<y6)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:_,clientY:w}=$;if(!i.current){i.current={x:_,y:w};return}if(!a.current)return;if(c.current||(c.current=_>a.current.right?"left":"right"),_<E.getBoundingClientRect().left||_>E.getBoundingClientRect().right||w<E.getBoundingClientRect().top||w>E.getBoundingClientRect().bottom){m();return}let T=i.current.x,D=i.current.y,P=c.current==="right"?a.current.left-T:T-a.current.right,x=Math.atan2(D-a.current.top,P)+Zg,k=Math.atan2(D-a.current.bottom,P)-Zg,L=Math.atan2(D-w,c.current==="left"?-(_-T):_-T),A=L<x&&L>k;d.current=A?Math.min(d.current+1,ti):Math.max(d.current-1,0),d.current>=ti?h(!0):h(!1),l.current=C,i.current={x:_,y:w},A&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let O=document.elementFromPoint(_,w);O&&E.contains(O)&&O.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},b6))};return window.addEventListener("pointermove",S),window.addEventListener("pointerdown",v,!0),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerdown",v,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=ti}},[o,n,t,b,h,v,r])}function E6(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=Fe(),c=Fe(),{direction:d}=er(),f=p.useRef(void 0),h=p.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=Pe(T=>{h(),t.open(T)}),b=Pe(()=>{h(),t.close()});ue(()=>()=>{h()},[h]);let v=T=>{if(T.currentTarget.contains(document.activeElement))switch(T.key){case"ArrowLeft":d==="ltr"&&T.currentTarget.contains(T.target)&&(T.preventDefault(),T.stopPropagation(),b(),!s&&r.current&&qe(r.current));break;case"ArrowRight":d==="rtl"&&T.currentTarget.contains(T.target)&&(T.preventDefault(),T.stopPropagation(),b(),!s&&r.current&&qe(r.current));break;case"Escape":var D;!((D=o.current)===null||D===void 0)&&D.contains(T.target)&&(T.stopPropagation(),b(),!s&&r.current&&qe(r.current));break}};var y;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(y=t.focusStrategy)!==null&&y!==void 0?y:void 0,onKeyDown:v}},S=T=>{switch(T.key){case"ArrowRight":a||(d==="ltr"?(T.preventDefault(),t.isOpen||m("first"),i==="menu"&&o?.current&&document.activeElement===r?.current&&qe(o.current)):t.isOpen?b():T.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?(T.preventDefault(),t.isOpen||m("first"),i==="menu"&&o?.current&&document.activeElement===r?.current&&qe(o.current)):t.isOpen?b():T.continuePropagation());break;default:T.continuePropagation();break}},$=T=>{!a&&(T.pointerType==="virtual"||T.pointerType==="keyboard")&&m("first")},C=T=>{!a&&(T.pointerType==="touch"||T.pointerType==="mouse")&&m()},_=T=>{a||(T&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):T||h())};qn(n,"focusin",T=>{var D;t.isOpen&&!((D=n.current)===null||D===void 0)&&D.contains(T.target)&&T.target!==r.current&&b()});let w=T=>T!==r.current;return v6({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:$,onPress:C,onHoverChange:_,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:w}}}function AE(e){let t=Do(e),[r,n]=p.useState(null),[o,i]=p.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}}}function S6(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=p.useState(n?.length),s=p.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=p.useState(null),d=p.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),f=p.useCallback(()=>{c(null),i(r,l)},[i,l,r]),h=p.useCallback(m=>{c(m??null),s?f():d(m)},[f,d,s]);return p.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:h}),[s,d,f,a,u,h,l])}var $6=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n?.key)!==null&&i!==void 0?i:null}},Vt=class DE extends Set{constructor(t,r,n){super(t),t instanceof DE?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function x6(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function md(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=p.useRef(!1),[,l]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>Qg(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>Qg(e.defaultSelectedKeys,new Vt),[e.defaultSelectedKeys]),[h,m]=pa(d,f,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,y]=p.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let E=p.useRef(o);return p.useEffect(()=>{o!==E.current&&(y(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(S){a.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,$="first"){s.current=S,u.current=$,c(S)},selectedKeys:h,setSelectedKeys(S){(n||!x6(S,h))&&m(S)},disabledKeys:b,disabledBehavior:i}}function Qg(e,t){return e?e==="all"?"all":new Vt(e):t}var yd=class RE{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Cs(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Cs(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Vt([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new Vt(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Cs(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Vt([r],r,r):new Vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Vt;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);a?.type==="item"&&t.push(n);var i;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=f6(TE(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new RE(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function w6(e){let{onExpandedChange:t}=e,[r,n]=pa(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=md(e),i=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=_E(e,p.useCallback(l=>new $6(l,{expandedKeys:r}),[r]),null);return p.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(C6(r,l))},setExpandedKeys:n,selectionManager:new yd(a,o)}}function C6(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var OE=p.createContext(null),Sa=p.createContext(null),Mi=p.createContext(null),Bi=p.createContext(null),PE=p.createContext(null),IE=class extends Gr{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};IE.type="submenutrigger";hd(IE,(e,t,r)=>{let{CollectionBranch:n}=p.useContext(Oo),o=p.useContext(Sa),i=p.useContext(Mi),a=S6({triggerKey:r.key},i),l=p.useRef(null),s=At(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=p.useContext(PE),{submenuTriggerProps:d,submenuProps:f,popoverProps:h}=E6({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return g.createElement(Qt,{values:[[ji,{...d,onAction:void 0,ref:s}],[OE,{ref:l,...f}],[$a,a],[gd,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...h}]]},g.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);p.forwardRef(function(e,t){return[e,t]=je(e,t,OE),g.createElement(lE,{content:g.createElement(cE,e)},r=>g.createElement(_6,{props:e,collection:r,menuRef:t}))});function _6({props:e,collection:t,menuRef:r}){[e,r]=je(e,r,Gg);let{filter:n,...o}=e,i=p.useMemo(()=>n?t.filter(n):t,[t,n]),a=w6({...e,collection:i,children:void 0}),l=p.useContext(Mi),{isVirtualized:s,CollectionRoot:u}=p.useContext(Oo),{menuProps:c}=l6({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,r),d=ot({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),f=null;a.collection.size===0&&e.renderEmptyState&&(f=g.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=ve(e,{global:!0});return g.createElement(ad,null,g.createElement("div",{...ee(h,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},g.createElement(Qt,{values:[[Sa,a],[vE,{elementType:"div"}],[hE,{name:"MenuSection",render:FE}],[PE,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[ji,null],[Gg,null],[ZL,null],[Bi,a.selectionManager],[Mi,l??AE({})]]},g.createElement(u,{collection:a.collection,persistedKeys:mE(a.selectionManager.focusedKey),scrollRef:r})),f))}var T6=class extends yd{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function FE(e,t,r,n="react-aria-MenuSection"){var o,i;let a=p.useContext(Sa),{CollectionBranch:l}=p.useContext(Oo),[s,u]=f1();var c;let{headingProps:d,groupProps:f}=m6({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),h=ot({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),m=p.useContext(Bi),b=md(e),v=e.selectionMode!=null?new T6(m,b):m,y=ve(e,{global:!0});return delete y.id,g.createElement("section",{...ee(y,h,f),ref:t},g.createElement(Qt,{values:[[yE,{...d,ref:s}],[Bi,v]]},g.createElement(l,{collection:a.collection,parent:r})))}hd(rE,FE);var ji=p.createContext(null);Ea(tE,function(e,t,r){var n;[e,t]=je(e,t,ji);let o=(n=rd(ji))===null||n===void 0?void 0:n.id,i=p.useContext(Sa),a=At(t),l=p.useContext(Bi),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=g6({...e,id:o,key:r.key,selectionManager:l},i,a),{hoverProps:h,isHovered:m}=Tn({isDisabled:f.isDisabled}),b=ot({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),v=e.href?"a":"div",y=ve(e,{global:!0});return delete y.id,delete y.onClick,g.createElement(v,{...ee(y,b,s,h),ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},g.createElement(Qt,{values:[[Nv,{slots:{[Pi]:u,label:u,description:c}}],[bE,d]]},b.children))});function A6(e,t){let{role:r="dialog"}=e,n=pi();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){fr(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),fr(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),wv(),{dialogProps:{...ve(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var LE=p.createContext(null),$a=p.createContext(null);function D6(e){let t=AE(e),r=p.useRef(null),{triggerProps:n,overlayProps:o}=OF({},t,r),[i,a]=p.useState(null),l=p.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return Ti({ref:r,onResize:l}),n.id=Fe(),o["aria-labelledby"]=n.id,g.createElement(Qt,{values:[[$a,t],[Mi,t],[LE,o],[gd,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},g.createElement(WI,{...n,ref:r,isPressed:t.isOpen},e.children))}p.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=je(e,t,LE);let{dialogProps:n,titleProps:o}=A6({...e,"aria-labelledby":r},t),i=p.useContext($a);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=ot({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:i?.close||(()=>{})}}),l=ve(e,{global:!0});return g.createElement("section",{...ee(l,a,n),ref:t,slot:e.slot||void 0},g.createElement(Qt,{values:[[kv,{slots:{[Pi]:{},title:{...o,level:2}}}],[pE,{slots:{[Pi]:{},close:{onPress:()=>i?.close()}}}]]},a.children))});var bd=({placement:e="bottom-start",hasChrome:t=!0,hasCloseButton:r=!1,closeLabel:n,offset:o=8,padding:i,popover:a,children:l,defaultVisible:s,visible:u,onVisibleChange:c,...d})=>{let f=ud(e),[h,m]=p.useState(s??!1),b=p.useCallback(y=>{m(y),c?.(y)},[c]),v=p.useCallback(()=>b(!1),[b]);return g.createElement(D6,{defaultOpen:s,isOpen:u??h,onOpenChange:b,...d},g.createElement(GI,null,l),g.createElement(YL,{placement:f,offset:o,style:{outline:"none"}},g.createElement(Ro,{hasChrome:t,hideLabel:n,onHide:r?v:void 0,padding:i},typeof a=="function"?a({onHide:v}):a)))},kE=p.forwardRef((e,t)=>g.createElement(Ro,{ref:t,...e}));kE.displayName="Tooltip";p.lazy(()=>cr(()=>import("./WithTooltip-65CFNBJE-PGcopp73.js"),__vite__mapDeps([5,0,1,2]),import.meta.url).then(e=>({default:e.WithTooltip})));p.lazy(()=>cr(()=>import("./WithTooltip-65CFNBJE-PGcopp73.js"),__vite__mapDeps([5,0,1,2]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:ez}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.span();R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));R.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:R6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var O6=wt(yo(),1);const{deprecate:P6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var I6=R(({active:e,loading:t,disabled:r,...n})=>g.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),F6=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),L6=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),k6=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),N6=R.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),M6=R.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),B6=(0,O6.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),NE=p.forwardRef((e,t)=>{let{loading:r=!1,title:n=g.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:h=void 0,...m}=e,b={active:a,disabled:l},v=B6(e),y=d||f;return P6("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),g.createElement(M6,{"data-deprecated":"ListItem",ref:t,...m,...b,...v},g.createElement(g.Fragment,null,y&&g.createElement(N6,{...b},y),n||o?g.createElement(L6,{isIndented:s&&!y},n&&g.createElement(I6,{...b,loading:r},n),o&&g.createElement(k6,{...b},o)):null,i&&g.createElement(F6,{...b},i)))});NE.displayName="ListItem";var ME=NE,j6=R.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),H6=R.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),U6=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,l=p.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return g.createElement(ME,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},BE=({links:e,LinkWrapper:t,...r})=>{R6("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(i=>i.some(a=>"icon"in a&&a.icon||"input"in a&&a.input));return g.createElement(j6,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>g.createElement(H6,{key:i.map(l=>l.id).join(`~${a}~`)},i.map(l=>"content"in l?g.createElement(p.Fragment,{key:l.id},l.content):g.createElement(U6,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:xa}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:K6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var z6=R.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),G6=R.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Po=p.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>g.createElement(z6,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?g.createElement(G6,{innerStyle:r},t):t));Po.displayName="Bar";var ju=R.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});ju.displayName="Side";var W6=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),V6=R(Po)({paddingInline:0}),vd=({children:e,backgroundColor:t,className:r="",...n})=>{K6('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=p.Children.toArray(e);return g.createElement(V6,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},g.createElement(W6,{bgColor:t},g.createElement(ju,{scrollable:n.scrollable,left:!0},o),i?g.createElement(ju,{right:!0},i):null))};vd.displayName="FlexBar";const{deprecate:q6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Y6=e=>typeof e.props.href=="string",X6=e=>typeof e.props.href!="string";function J6({children:e,...t},r){let n={props:t,ref:r};if(Y6(n))return g.createElement("a",{ref:n.ref,...n.props},e);if(X6(n))return g.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var jE=p.forwardRef(J6);jE.displayName="ButtonOrLink";var Z6=R(jE,{shouldForwardProp:qm})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Io=p.forwardRef((e,t)=>(q6("The `TabButton` component is deprecated. Use `TabList` instead."),g.createElement(Z6,{"data-deprecated":"TabButton",ref:t,...e})));Io.displayName="TabButton";var Q6=R.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),e7=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),t7=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),r7=R.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),n7=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Fo=({title:e,description:t,footer:r})=>g.createElement(Q6,null,g.createElement(e7,null,g.createElement(t7,null,e),t&&g.createElement(n7,null,t)),r&&g.createElement(r7,null,r));const{deprecate:o7}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var HE=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),i7=e=>(o7("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),p.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:a})=>g.createElement(HE,{active:a,role:"tabpanel"},i)}}));const{deprecate:a7}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var l7=R.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),s7=R(Io)(({active:e,theme:t,preActive:r})=>`
633
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
634
+ .addon-collapsible-icon {
635
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
636
+ }
637
+ &:hover {
638
+ color: ${t.barHoverColor};
639
+ .addon-collapsible-icon {
640
+ color: ${t.barHoverColor};
641
+ }
642
+ }
643
+ `);function u7(e){a7("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=p.useRef(),r=p.useRef(),n=p.useRef(new Map),{width:o=1}=Gv({ref:t}),[i,a]=p.useState(e),[l,s]=p.useState([]),u=p.useRef(e),c=p.useCallback(({menuName:f,actions:h})=>{let m=l.some(({active:y})=>y),[b,v]=p.useState(!1);return g.createElement(g.Fragment,null,g.createElement(bd,{visible:b,onVisibleChange:v,placement:"bottom",popover:g.createElement(BE,{links:l.map(({title:y,id:E,color:S,active:$})=>({id:E,title:y,color:S,active:$,onClick:C=>{C.preventDefault(),h.onSelect(E)}}))})},g.createElement(s7,{id:"addons-menu-button",ref:r,active:m,preActive:b,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,g.createElement(l7,{className:"addon-collapsible-icon",isActive:m||b}))),l.map(({title:y,id:E,color:S},$)=>{let C=`index-${$}`;return g.createElement(Io,{id:`tabbutton-${un(E)??C}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:_=>{n.current.set(E,_)},className:"tabbutton",type:"button",key:E,textColor:S,role:"tab"},y)}))},[l]),d=p.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:h}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),b=l.length?f+h-m:f+h,v=[],y=0,E=e.filter(S=>{let{id:$}=S,C=n.current.get($),{width:_=0}=C?.getBoundingClientRect()||{},w=f+y+_>b;return(!w||!C)&&v.push(S),y+=_,w});(v.length!==i.length||u.current!==e)&&(a(v),s(E),u.current=e)},[l.length,e,i]);return p.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:l,AddonTab:c}}var c7="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",d7=R.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),f7=R.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),Ed=p.forwardRef((e,t)=>(xa("The `TabBar` component is deprecated. Use `TabsView` instead."),g.createElement(f7,{"data-deprecated":"TabBar",...e,ref:t})));Ed.displayName="TabBar";var p7=R.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${c7}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),UE=p.forwardRef(({active:e,render:t,children:r},n)=>(xa("The `TabWrapper` component is deprecated. Use `TabsView` instead."),g.createElement(HE,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));UE.displayName="TabWrapper";var h7=class extends p.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?g.createElement(Fo,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},Sd=p.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:i=null,backgroundColor:a,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{xa("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=p.useMemo(()=>i7(e).map((y,E)=>({...y,active:t?y.id===t:E===0})),[e,t]),{visibleList:f,tabBarRef:h,tabRefs:m,AddonTab:b}=u7(d),v=u??g.createElement(Fo,{title:"Nothing found"});return!c&&d.length===0?v:g.createElement(d7,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},g.createElement(vd,{scrollable:!1,border:!0,backgroundColor:a},g.createElement(Ed,{style:{whiteSpace:"normal"},ref:h,role:"tablist"},f.map(({title:y,id:E,active:S,color:$},C)=>{let _=`index-${C}`;return g.createElement(Io,{id:`tabbutton-${un(E)??_}`,ref:w=>{m.current.set(E,w)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:E,active:S,textColor:$,onClick:w=>{w.preventDefault(),r.onSelect(E)},role:"tab","aria-selected":S},typeof y=="function"?g.createElement("title",null):y)}),g.createElement(b,{menuName:s,actions:r})),i),g.createElement(p7,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:y,active:E,render:S})=>g.createElement(h7,{key:y,active:E},g.createElement(S,{active:E},null))):v))});Sd.displayName="Tabs";var KE=class extends p.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},xa("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:i}=this.state;return g.createElement(Sd,{bordered:e,absolute:t,selected:i,backgroundColor:n,menuName:o,actions:this.handlers},r)}};KE.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var zE=R.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});zE.displayName="Separator";R.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function g7(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[i,a]=p.useState(!1);ue(()=>{var m;a(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});let{direction:l}=er(),s=l==="rtl"&&o==="horizontal",u=_F(t),c=m=>{if(m.currentTarget.contains(m.target)){if(o==="horizontal"&&m.key==="ArrowRight"||o==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&m.key==="ArrowLeft"||o==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),d.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},d=p.useRef(null),f=m=>{!m.currentTarget.contains(m.relatedTarget)&&!d.current&&(d.current=m.target)},h=m=>{var b;if(d.current&&!m.currentTarget.contains(m.relatedTarget)&&!((b=t.current)===null||b===void 0)&&b.contains(m.target)){var v;(v=d.current)===null||v===void 0||v.focus(),d.current=null}};return{toolbarProps:{...ve(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:c,onFocusCapture:i?void 0:h,onBlurCapture:i?void 0:f}}}var GE=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=p.useRef(null),{toolbarProps:o}=g7({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return g.createElement(Po,{ref:n,...o,...r})},WE=new WeakMap;function Hi(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${WE.get(e)}-${r}-${t}`):""}function VE(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=wE({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:i,linkBehavior:"selection"}),f=Hi(t,n,"tab"),h=Hi(t,n,"tabpanel"),{tabIndex:m}=c,b=t.collection.getItem(n),v=ve(b?.props,{labelable:!0});delete v.id;let y=Wb(b?.props),{focusableProps:E}=Ao({isDisabled:u},r);return{tabProps:ee(v,E,y,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?h:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function qE(e,t,r){let n=AF(r)?void 0:0;var o;let i=Hi(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),a=fa({...e,id:i,"aria-labelledby":Hi(t,t?.selectedKey,"tab")});return{tabPanelProps:ee(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var m7=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function YE(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:l}=t,{direction:s}=er(),u=p.useMemo(()=>new m7(i,s,n,l),[i,l,n,s]),{collectionProps:c}=xE({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Fe();WE.set(t,d);let f=fa({...e,id:d});return{tabListProps:{...ee(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var y7=R.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),b7=R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),v7=R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),E7=R.div({display:"flex",flexShrink:0}),em=28,tm=R.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),rm=R(xe)({flexShrink:0,paddingInline:0,width:16}),S7=({item:e,state:t})=>{let{rendered:r}=e,n=g.useRef(null),o=t,{tabProps:i,isDisabled:a,isPressed:l,isSelected:s}=VE(e,o,n);return g.createElement(y7,{...i,isDisabled:a,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},XE=({state:e,...t})=>{let r=p.useRef(null),n=p.useRef(null),o=p.useRef(null),{tabListProps:i}=YE({orientation:"horizontal"},e,o),[a,l]=p.useState(!1),[s,u]=p.useState(!1),[c,d]=p.useState(!1),f=p.useCallback(()=>{let y=n.current,E=r.current;if(!y||!E)return;let{scrollLeft:S,scrollWidth:$,clientWidth:C}=y,_=E.clientWidth-(a?em*2:0),w=$>_;l(w),w?(u(S>0),d(S<$-C)):(u(!1),d(!1))},[a]),h=p.useCallback(()=>{f()},[f]);p.useEffect(()=>{let y=n.current;if(!y||typeof window>"u")return;y.addEventListener("scroll",h,{passive:!0});let E=null;typeof ResizeObserver<"u"&&(E=new ResizeObserver(h),E.observe(y));let S=setTimeout(h,0);return()=>{clearTimeout(S),y.removeEventListener("scroll",h),E&&E.disconnect()}},[h]);let m=p.useCallback(y=>{let E=n.current,S=r.current;if(!E||!S||typeof window>"u")return;let $=S.clientWidth-em*2,C=y==="backward"?-$:$;typeof E.scrollBy=="function"?E.scrollBy({left:C,behavior:"smooth"}):E.scrollLeft+=C},[]),b=p.useCallback(()=>m("backward"),[m]),v=p.useCallback(()=>m("forward"),[m]);return g.createElement(b7,{...t,ref:r,"data-show-scroll-buttons":a},a&&g.createElement(tm,{$showEndBorder:s},g.createElement(rm,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:b,tabIndex:-1},g.createElement(EA,null))),g.createElement(v7,{ref:n},g.createElement(E7,{ref:o,...i},[...e.collection].map(y=>g.createElement(S7,{key:y.key,item:y,state:e})))),a&&g.createElement(tm,{$showStartBorder:c},g.createElement(rm,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:v,tabIndex:-1},g.createElement(SA,null))))},$7=R.div({overflowY:"hidden",height:"100%"}),JE=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=p.useRef(null),o=r,{tabPanelProps:i}=qE(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(a=>!!a).map(a=>{let l=o.selectedKey===a.key;return g.createElement($7,{key:a.key,ref:l?n:void 0,...l?i:{},id:l?`${i.id}`.replace(/null$/,`${a.key}`):void 0,hidden:l?void 0:!0},e?g.createElement(gc,{vertical:!0},a.props.children):a.props.children)})},nm=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)t(l)};for(let a of e)t(a);let r=null,n=0,o=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&o++,r=l,r.nextKey=void 0;this._size=o;var i;this.lastKey=(i=r?.key)!==null&&i!==void 0?i:null}};function x7(e){let{filter:t,layoutDelegate:r}=e,n=md(e),o=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=p.useCallback(u=>t?new nm(t(u)):new nm(u),[t]),a=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=_E(e,i,a),s=p.useMemo(()=>new yd(l,n,{layoutDelegate:r}),[l,n,r]);return w7(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function w7(e,t){let r=p.useRef(null);p.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(y=>{let E=r.current.getItem(y);return E?.type==="item"?E:null}).filter(y=>y!==null),f=[...e.getKeys()].map(y=>{let E=e.getItem(y);return E?.type==="item"?E:null}).filter(y=>y!==null);var n,o;let h=((n=d?.length)!==null&&n!==void 0?n:0)-((o=f?.length)!==null&&o!==void 0?o:0);var i,a,l;let m=Math.min(h>1?Math.max(((i=c?.index)!==null&&i!==void 0?i:0)-h+1,0):(a=c?.index)!==null&&a!==void 0?a:0,((l=f?.length)!==null&&l!==void 0?l:0)-1),b=null,v=!1;for(;m>=0;){if(!t.isDisabled(f[m].key)){b=f[m];break}if(m<f.length-1&&!v)m++;else{v=!0;var s,u;m>((s=c?.index)!==null&&s!==void 0?s:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function C7(e){var t;let[r,n]=pa(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:l}=x7({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),s=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function ZE(e){var t,r;let n=C7({...e,onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:om(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:i,selectedKey:a}=n,l=p.useRef(a);return p.useEffect(()=>{let s=a;e.selectedKey==null&&(o.isEmpty||s==null||!i.getItem(s))&&(s=om(i,n.disabledKeys),s!=null&&o.setSelectedKeys([s])),(s!=null&&o.focusedKey==null||!o.isFocused&&s!==l.current)&&o.setFocusedKey(s),l.current=s}),{...n,isDisabled:e.isDisabled||!1}}function om(e,t){let r=null;if(e){var n,o,i,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(i=a.props)===null||i===void 0)&&i.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var QE=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>ZE({children:n.map(({children:o,id:i,"aria-label":a,title:l})=>g.createElement(u6,{key:i,"aria-label":a,title:typeof l=="function"?g.createElement(l,null):l},typeof o=="function"?g.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t?.(`${o}`),selectedKey:r}),_7=R.div({display:"flex",flexDirection:"column",height:"100%"}),T7=R(JE)(()=>({flex:1})),A7=R(XE)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),eS=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:i={},selected:a,showToolsWhenEmpty:l,tabs:s,tools:u,...c})=>{let d=QE({defaultSelected:r,onSelectionChange:o,selected:a,tabs:s}),f=n??g.createElement(Fo,{title:"Nothing found"}),h=s.length>0;return!l&&!h?f:g.createElement(_7,{...c},g.createElement(Po,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},u,h?g.createElement(A7,{state:d,$simulatedGap:t?.gap??6}):g.createElement("div",null)),h?g.createElement(T7,{state:d,...i}):f)},wa=p.createContext(null),yn=p.createContext(null),D7=p.forwardRef(function(e,t){[e,t]=je(e,t,wa);let{children:r,orientation:n="horizontal"}=e;return r=p.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),g.createElement(lE,{content:r},o=>g.createElement(R7,{props:e,collection:o,tabsRef:t}))});function R7({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=ZE({...e,collection:r,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:l}=ma({within:!0}),s=p.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:l}),[n,a,l]),u=ot({...e,defaultClassName:"react-aria-Tabs",values:s}),c=ve(e,{global:!0});return g.createElement("div",{...ee(c,u,i),ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0},g.createElement(Qt,{values:[[wa,e],[yn,o]]},u.children))}var O7=p.forwardRef(function(e,t){return p.useContext(yn)?g.createElement(P7,{props:e,forwardedRef:t}):g.createElement(cE,e)});function P7({props:e,forwardedRef:t}){let r=p.useContext(yn),{CollectionRoot:n}=p.useContext(Oo),{orientation:o="horizontal",keyboardActivation:i="automatic"}=rd(wa),a=At(t),{tabListProps:l}=YE({...e,orientation:o,keyboardActivation:i},r,a),s=ot({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=ve(e,{global:!0});return delete u.id,g.createElement("div",{...ee(u,s,l),ref:a,"data-orientation":o||void 0},g.createElement(n,{collection:r.collection,persistedKeys:mE(r.selectionManager.focusedKey)}))}var tS=class extends Gr{};tS.type="item";var I7=Ea(tS,(e,t,r)=>{let n=p.useContext(yn),o=At(t),{tabProps:i,isSelected:a,isDisabled:l,isPressed:s}=VE({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=ma(),{hoverProps:f,isHovered:h}=Tn({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=ot({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:h}}),b=r.props.href?"a":"div",v=ve(e,{global:!0});return delete v.id,delete v.onClick,g.createElement(b,{...ee(v,m,i,u,f),ref:o,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},m.children)}),F7=pd(function(e,t){let r=p.useContext(yn),n=At(t),{id:o,...i}=e,{tabPanelProps:a}=qE(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=ma(),c=r.selectedKey===e.id,d=ot({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:Wh(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=ve(i,{global:!0});delete f.id;let h=c?ee(f,a,l,d):d;return g.createElement("div",{...h,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:Wh(!c||e.inert),"data-inert":c?void 0:"true"},g.createElement(Qt,{values:[[wa,null],[yn,null]]},g.createElement(Oo.Provider,{value:gE},d.children)))});R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});R(O7)({display:"flex",flexShrink:0});R.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));R(xe)({flexShrink:0,paddingInline:0,width:16});R(F7)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});R(D7)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));R(I7)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var L7=nt`
644
+ from {
645
+ transform: rotate(0deg);
646
+ }
647
+ to {
648
+ transform: rotate(360deg);
649
+ }
650
+ `,k7=R.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${L7} 0.7s linear infinite`,mixBlendMode:"difference"})),im=R.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),N7=R.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:Xt(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),M7=R.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),am=R.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),B7=R(dA)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),j7=nt`
651
+ from { content: "..." }
652
+ 33% { content: "." }
653
+ 66% { content: ".." }
654
+ to { content: "..." }
655
+ `,H7=R.span({"&::after":{content:"'...'",animation:`${j7} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),rS=({progress:e,error:t,size:r,...n})=>{if(t)return g.createElement(im,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},g.createElement(B7,null),g.createElement(am,null,t.message));if(e){let{value:o,modules:i}=e,{message:a}=e;return i&&(a+=` ${i.complete} / ${i.total} modules`),g.createElement(im,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":a,role:"progressbar",...n},g.createElement(N7,null,g.createElement(M7,{style:{width:`${o*100}%`}})),g.createElement(am,null,a,o<1&&g.createElement(H7,{key:a})))}return g.createElement(k7,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},U7=nt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});R.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));R.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${U7} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:tz}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.pre`
656
+ line-height: 18px;
657
+ padding: 11px 1rem;
658
+ white-space: pre-wrap;
659
+ background: rgba(0, 0, 0, 0.05);
660
+ color: ${Dr.darkest};
661
+ border-radius: 3px;
662
+ margin: 1rem 0;
663
+ width: 100%;
664
+ display: block;
665
+ overflow: hidden;
666
+ font-family: ${Hd.fonts.mono};
667
+ font-size: ${Hd.size.s2-1}px;
668
+ `;var nS=Nb;Object.keys(Nb).forEach(e=>{p.forwardRef((t,r)=>p.createElement(e,{...t,ref:r}))});const K7=Object.freeze(Object.defineProperty({__proto__:null,A:vb,ActionBar:X0,ActionList:mi,Bar:Po,Blockquote:Eb,Button:xe,Code:Uc,DL:Sb,Div:$b,EmptyTabContent:Fo,ErrorFormatter:Vv,FlexBar:vd,Form:zr,H1:xb,H2:Kc,H3:zc,H4:wb,H5:Cb,H6:_b,HR:Tb,IconButton:Dv,Img:Ab,LI:Db,Link:pn,ListItem:ME,Loader:rS,OL:Rb,P:Ob,Popover:Ro,PopoverProvider:bd,Pre:Pb,ResetWrapper:Hc,ScrollArea:gc,Select:Zv,Separator:zE,Span:Ib,SyntaxHighlighter:Co,TT:Fb,TabBar:Ed,TabButton:Io,TabList:XE,TabPanel:JE,TabWrapper:UE,Table:Lb,Tabs:Sd,TabsState:KE,TabsView:eS,ToggleButton:ba,Toolbar:GE,Tooltip:kE,TooltipLinkList:BE,TooltipNote:Bb,TooltipProvider:Tv,UL:kb,Zoom:Wv,codeCommon:Jt,components:nS,convertToReactAriaPlacement:ud,createCopyToClipboardFunction:aA,nameSpaceClassNames:ge,useTabsState:QE,withReset:be},Symbol.toStringTag,{value:"Module"}));function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Je.apply(null,arguments)}function z7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function go(e,t){return go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},go(e,t)}function G7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,go(e,t)}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hu(e)}function W7(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function oS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oS=function(){return!!e})()}function V7(e,t,r){if(oS())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&go(o,r.prototype),o}function Uu(e){var t=typeof Map=="function"?new Map:void 0;return Uu=function(r){if(r===null||!W7(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return V7(r,arguments,Hu(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),go(n,r)},Uu(e)}var kt=(function(e){G7(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,z7(n)}return t})(Uu(Error));function _s(e){return Math.round(e*255)}function q7(e,t,r){return _s(e)+","+_s(t)+","+_s(r)}function Ui(e,t,r,n){if(n===void 0&&(n=q7),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,f=s+c,h=u+c;return n(d,f,h)}var lm={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Y7(e){if(typeof e!="string")return e;var t=e.toLowerCase();return lm[t]?"#"+lm[t]:e}var X7=/^#[a-fA-F0-9]{6}$/,J7=/^#[a-fA-F0-9]{8}$/,Z7=/^#[a-fA-F0-9]{3}$/,Q7=/^#[a-fA-F0-9]{4}$/,Ts=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ek=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,tk=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,rk=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function bn(e){if(typeof e!="string")throw new kt(3);var t=Y7(e);if(t.match(X7))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(J7)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Z7))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Q7)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Ts.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=ek.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=tk.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+Ui(l,s,u)+")",d=Ts.exec(c);if(!d)throw new kt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=rk.exec(t.substring(0,50));if(f){var h=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,v="rgb("+Ui(h,m,b)+")",y=Ts.exec(v);if(!y)throw new kt(4,t,v);return{red:parseInt(""+y[1],10),green:parseInt(""+y[2],10),blue:parseInt(""+y[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new kt(5)}function nk(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function hr(e){return nk(bn(e))}var ok=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},Ku=ok;function _r(e){var t=e.toString(16);return t.length===1?"0"+t:t}function As(e){return _r(Math.round(e*255))}function ik(e,t,r){return Ku("#"+As(e)+As(t)+As(r))}function iS(e,t,r){return Ui(e,t,r,ik)}function ak(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return iS(e.hue,e.saturation,e.lightness);throw new kt(1)}function lk(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?iS(e.hue,e.saturation,e.lightness):"rgba("+Ui(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new kt(2)}function aS(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ku("#"+_r(e)+_r(t)+_r(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ku("#"+_r(e.red)+_r(e.green)+_r(e.blue));throw new kt(6)}function vn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=bn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?aS(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new kt(7)}var sk=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},uk=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},ck=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},dk=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function gr(e){if(typeof e!="object")throw new kt(8);if(uk(e))return vn(e);if(sk(e))return aS(e);if(dk(e))return lk(e);if(ck(e))return ak(e);throw new kt(8)}function lS(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):lS(e,t,n)}}function it(e){return lS(e,e.length,[])}function fk(e,t){if(t==="transparent")return t;var r=hr(t);return gr(Je({},r,{hue:r.hue+parseFloat(e)}))}it(fk);function An(e,t,r){return Math.max(e,Math.min(t,r))}function pk(e,t){if(t==="transparent")return t;var r=hr(t);return gr(Je({},r,{lightness:An(0,1,r.lightness-parseFloat(e))}))}var hk=it(pk),eo=hk;function gk(e,t){if(t==="transparent")return t;var r=hr(t);return gr(Je({},r,{saturation:An(0,1,r.saturation-parseFloat(e))}))}it(gk);function mk(e,t){if(t==="transparent")return t;var r=hr(t);return gr(Je({},r,{lightness:An(0,1,r.lightness+parseFloat(e))}))}var yk=it(mk),zu=yk;function bk(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=bn(t),o=Je({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=bn(r),a=Je({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,h={red:Math.floor(o.red*d+a.red*f),green:Math.floor(o.green*d+a.green*f),blue:Math.floor(o.blue*d+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return vn(h)}var vk=it(bk),sS=vk;function Ek(e,t){if(t==="transparent")return t;var r=bn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Je({},r,{alpha:An(0,1,(n*100+parseFloat(e)*100)/100)});return vn(o)}var Sk=it(Ek),ri=Sk;function $k(e,t){if(t==="transparent")return t;var r=hr(t);return gr(Je({},r,{saturation:An(0,1,r.saturation+parseFloat(e))}))}it($k);function xk(e,t){return t==="transparent"?t:gr(Je({},hr(t),{hue:parseFloat(e)}))}it(xk);function wk(e,t){return t==="transparent"?t:gr(Je({},hr(t),{lightness:parseFloat(e)}))}it(wk);function Ck(e,t){return t==="transparent"?t:gr(Je({},hr(t),{saturation:parseFloat(e)}))}it(Ck);function _k(e,t){return t==="transparent"?t:sS(parseFloat(e),"rgb(0, 0, 0)",t)}it(_k);function Tk(e,t){return t==="transparent"?t:sS(parseFloat(e),"rgb(255, 255, 255)",t)}it(Tk);function Ak(e,t){if(t==="transparent")return t;var r=bn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Je({},r,{alpha:An(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return vn(o)}var Dk=it(Ak),Ce=Dk,Rk=R.div(be,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Ce(.3,e.color.defaultText),fontSize:e.typography.size.s2})),uS=e=>g.createElement(Rk,{...e,className:"docblock-emptyblock sb-unstyled"}),Ok=R(Co)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Pk=R.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),ni=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Hs}`]:{margin:0}})),Ik=()=>g.createElement(Pk,null,g.createElement(ni,null),g.createElement(ni,{style:{width:"80%"}}),g.createElement(ni,{style:{width:"30%"}}),g.createElement(ni,{style:{width:"80%"}})),cS=({isLoading:e,error:t,language:r,code:n,dark:o,format:i=!0,...a})=>{let{typography:l}=Zu();if(e)return g.createElement(Ik,null);if(t)return g.createElement(uS,null,t);let s=g.createElement(Ok,{bordered:!0,copyable:!0,format:i,language:r??"jsx",className:"docblock-source sb-unstyled",...a},n);if(typeof o>"u")return s;let u=o?Ud.dark:Ud.light;return g.createElement(Xm,{theme:j$({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)};const{once:Fk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Lk(e){return e==null||typeof e!="object"&&typeof e!="function"}function kk(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Nk(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Mk(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Bk="[object RegExp]",jk="[object String]",Hk="[object Number]",Uk="[object Boolean]",Kk="[object Arguments]",zk="[object Symbol]",Gk="[object Date]",Wk="[object Map]",Vk="[object Set]",qk="[object Array]",Yk="[object ArrayBuffer]",Xk="[object Object]",Jk="[object DataView]",Zk="[object Uint8Array]",Qk="[object Uint8ClampedArray]",eN="[object Uint16Array]",tN="[object Uint32Array]",rN="[object Int8Array]",nN="[object Int16Array]",oN="[object Int32Array]",iN="[object Float32Array]",aN="[object Float64Array]";function rn(e,t,r,n=new Map,o=void 0){let i=o?.(e,t,r,n);if(i!==void 0)return i;if(Lk(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=rn(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){let a=new Map;n.set(e,a);for(let[l,s]of e)a.set(l,rn(s,l,r,n,o));return a}if(e instanceof Set){let a=new Set;n.set(e,a);for(let l of e)a.add(rn(l,void 0,r,n,o));return a}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(kk(e)){let a=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=rn(e[l],l,r,n,o);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,a),rr(a,e,r,n,o),a}if(typeof File<"u"&&e instanceof File){let a=new File([e],e.name,{type:e.type});return n.set(e,a),rr(a,e,r,n,o),a}if(typeof Blob<"u"&&e instanceof Blob){let a=new Blob([e],{type:e.type});return n.set(e,a),rr(a,e,r,n,o),a}if(e instanceof Error){let a=new e.constructor;return n.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,rr(a,e,r,n,o),a}if(e instanceof Boolean){let a=new Boolean(e.valueOf());return n.set(e,a),rr(a,e,r,n,o),a}if(e instanceof Number){let a=new Number(e.valueOf());return n.set(e,a),rr(a,e,r,n,o),a}if(e instanceof String){let a=new String(e.valueOf());return n.set(e,a),rr(a,e,r,n,o),a}if(typeof e=="object"&&lN(e)){let a=Object.create(Object.getPrototypeOf(e));return n.set(e,a),rr(a,e,r,n,o),a}return e}function rr(e,t,r=e,n,o){let i=[...Object.keys(t),...Nk(t)];for(let a=0;a<i.length;a++){let l=i[a],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=rn(t[l],l,r,n,o))}}function lN(e){switch(Mk(e)){case Kk:case qk:case Yk:case Jk:case Uk:case Gk:case iN:case aN:case rN:case nN:case oN:case Wk:case Hk:case Xk:case Bk:case Vk:case jk:case zk:case Zk:case Qk:case eN:case tN:return!0;default:return!1}}function sN(e){return rn(e,void 0,e,new Map,void 0)}function uN(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];t(a,i)&&(r[i]=a)}return r}function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ar.apply(this,arguments)}var cN=["children","options"],sm=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),um={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},dN=["style","script","pre"],fN=["src","href","data","formAction","srcDoc","action"],pN=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,hN=/\n{2,}$/,cm=/^(\s*>[\s\S]*?)(?=\n\n|$)/,gN=/^ *> ?/gm,mN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,yN=/^ {2,}\n/,bN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,dm=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,fm=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,vN=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,EN=/^(?:\n *)*\n/,SN=/\r\n?/g,$N=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,xN=/^\[\^([^\]]+)]/,wN=/\f/g,CN=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,_N=/^\s*?\[(x|\s)\]/,pm=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,hm=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gm=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ds=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,TN=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,mm=/^<!--[\s\S]*?(?:-->)/,AN=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Rs=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,DN=/^\{.*\}$/,RN=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ON=/^<([^ >]+[:@\/][^ >]+)>/,PN=/-([a-z])?/gi,ym=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,IN=/^[^\n]+(?: \n|\n{2,})/,FN=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LN=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,kN=/^\[([^\]]*)\] ?\[([^\]]*)\]/,NN=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,MN=/\t/g,BN=/(^ *\||\| *$)/g,jN=/^ *:-+: *$/,HN=/^ *:-+ *$/,UN=/^ *-+: *$/,Ca=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,_a="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",KN=RegExp(`^([*_])\\1${Ca(1)}${_a}\\1\\1(?!\\1)`),zN=RegExp(`^([*_])${Ca(0)}${_a}\\1(?!\\1)`),GN=RegExp(`^(==)${Ca(0)}${_a}\\1`),WN=RegExp(`^(~~)${Ca(0)}${_a}\\1`),VN=/^(:[a-zA-Z0-9-_]+:)/,qN=/^\\([^0-9A-Za-z\s])/,YN=/\\([^0-9A-Za-z\s])/g,XN=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,JN=/^\n+/,ZN=/^([ \t]*)/,QN=/(?:^|\n)( *)$/,$d="(?:\\d+\\.)",xd="(?:[*+-])";function dS(e){return"( *)("+(e===1?$d:xd)+") +"}var fS=dS(1),pS=dS(2);function hS(e){return RegExp("^"+(e===1?fS:pS))}var e9=hS(1),t9=hS(2);function gS(e){return RegExp("^"+(e===1?fS:pS)+"[^\\n]*(?:\\n(?!\\1"+(e===1?$d:xd)+" )[^\\n]*)*(\\n|$)","gm")}var r9=gS(1),n9=gS(2);function mS(e){let t=e===1?$d:xd;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var yS=mS(1),bS=mS(2);function bm(e,t){let r=t===1,n=r?yS:bS,o=r?r9:n9,i=r?e9:t9;return{t:a=>i.test(a),o:En(function(a,l){let s=QN.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(a=s[1]+a):null}),i:1,u(a,l,s){let u=r?+a[2]:void 0,c=a[0].replace(hN,`
669
+ `).match(o),d=!1;return{items:c.map(function(f,h){let m=i.exec(f)[0].length,b=RegExp("^ {1,"+m+"}","gm"),v=f.replace(b,"").replace(i,""),y=h===c.length-1,E=v.indexOf(`
670
+
671
+ `)!==-1||y&&d;d=E;let S=s.inline,$=s.list,C;s.list=!0,E?(s.inline=!1,C=to(v)+`
672
+
673
+ `):(s.inline=!0,C=to(v));let _=l(C,s);return s.inline=S,s.list=$,_}),ordered:r,start:u}},l:(a,l,s)=>e(a.ordered?"ol":"ul",{key:s.key,start:a.type==="20"?a.start:void 0},a.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var o9=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),i9=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function vm(e){return typeof e=="string"}function to(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function vi(e,t){return e.startsWith(t)}function a9(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(vi(e,r[n]))return!0;return!1}return r(e,t)}function Kn(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function l9(e){return UN.test(e)?"right":jN.test(e)?"center":HN.test(e)?"left":null}function Em(e,t,r,n){let o=r.inTable;r.inTable=!0;let i=[[]],a="";function l(){if(!a)return;let s=i[i.length-1];s.push.apply(s,t(a,r)),a=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&i.push([]):a+=s}),l(),r.inTable=o,i}function s9(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(BN,"").split("|").map(l9):[],o=e[3]?(function(a,l,s){return a.trim().split(`
674
+ `).map(function(u){return Em(u,l,s,!0)})})(e[3],t,r):[],i=Em(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:i,type:"25"}:{children:i,type:"21"}}function Sm(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function En(e){return e.inline=1,e}function $r(e){return En(function(t,r){return r.inline?e.exec(t):null})}function nr(e){return En(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Wt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function oi(e){return En(function(t){return e.exec(t)})}var u9=/(javascript|vbscript|data(?!:image)):/i;function c9(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(u9.test(t))return null}catch{return null}return e}function Ot(e){return e&&e.replace(YN,"$1")}function Ei(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function d9(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function f9(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Os=(e,t,r)=>({children:Ei(t,e[2],r)});function Ps(){return{}}function Is(){return null}function p9(...e){return e.filter(Boolean).join(" ")}function Fs(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function h9(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Ar({},um,t.namedCodesToUnicode):um;let r=t.slugify||Kn,n=t.sanitizer||c9,o=t.createElement||p.createElement,i=[cm,dm,fm,t.enforceAtxHeadings?hm:pm,gm,ym,yS,bS],a=[...i,IN,Ds,mm,Rs];function l(y,E){for(let S=0;S<y.length;S++)if(y[S].test(E))return!0;return!1}function s(y,E,...S){let $=Fs(t.overrides,y+".props",{});return o((function(C,_){let w=Fs(_,C);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:Fs(_,C+".component",C):C})(y,t.overrides),Ar({},E,$,{className:p9(E?.className,$.className)||void 0}),...S)}function u(y){y=y.replace(CN,"");let E=!1;t.forceInline?E=!0:t.forceBlock||(E=NN.test(y)===!1);let S=b(m(E?y:to(y).replace(JN,"")+`
675
+
676
+ `,{inline:E}));for(;vm(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;let $=t.wrapper||(E?"span":"div"),C;if(S.length>1||t.forceWrapper)C=S;else{if(S.length===1)return C=S[0],typeof C=="string"?s("span",{key:"outer"},C):C;C=null}return o($,{key:"outer"},C)}function c(y,E){if(!E||!E.trim())return null;let S=E.match(pN);return S?S.reduce(function($,C){let _=C.indexOf("=");if(_!==-1){let w=(function(x){return x.indexOf("-")!==-1&&x.match(AN)===null&&(x=x.replace(PN,function(k,L){return L.toUpperCase()})),x})(C.slice(0,_)).trim(),T=(function(x){let k=x[0];return(k==='"'||k==="'")&&x.length>=2&&x[x.length-1]===k?x.slice(1,-1):x})(C.slice(_+1).trim()),D=sm[w]||w;if(D==="ref")return $;let P=$[D]=(function(x,k,L,A){return k==="style"?(function(O){let I=[],F="",M=!1,B=!1,N="";if(!O)return I;for(let H=0;H<O.length;H++){let G=O[H];if(G!=='"'&&G!=="'"||M||(B?G===N&&(B=!1,N=""):(B=!0,N=G)),G==="("&&F.endsWith("url")?M=!0:G===")"&&M&&(M=!1),G!==";"||B||M)F+=G;else{let U=F.trim();if(U){let j=U.indexOf(":");if(j>0){let W=U.slice(0,j).trim(),q=U.slice(j+1).trim();I.push([W,q])}}F=""}}let K=F.trim();if(K){let H=K.indexOf(":");if(H>0){let G=K.slice(0,H).trim(),U=K.slice(H+1).trim();I.push([G,U])}}return I})(L).reduce(function(O,[I,F]){return O[I.replace(/(-[a-z])/g,M=>M[1].toUpperCase())]=A(F,x,I),O},{}):fN.indexOf(k)!==-1?A(Ot(L),x,k):(L.match(DN)&&(L=Ot(L.slice(1,L.length-1))),L==="true"||L!=="false"&&L)})(y,w,T,n);typeof P=="string"&&(Ds.test(P)||Rs.test(P))&&($[D]=u(P.trim()))}else C!=="style"&&($[sm[C]||C]=!0);return $},{}):null}let d=[],f={},h={0:{t:[">"],o:Wt(cm),i:1,u(y,E,S){let[,$,C]=y[0].replace(gN,"").match(mN);return{alert:$,children:E(C,S)}},l(y,E,S){let $={key:S.key};return y.alert&&($.className="markdown-alert-"+r(y.alert.toLowerCase(),Kn),y.children.unshift({attrs:{},children:[{type:"27",text:y.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",$,E(y.children,S))}},1:{t:[" "],o:oi(yN),i:1,u:Ps,l:(y,E,S)=>s("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:Wt(bN),i:1,u:Ps,l:(y,E,S)=>s("hr",{key:S.key})},3:{t:[" "],o:Wt(fm),i:0,u:y=>({lang:void 0,text:Ot(to(y[0].replace(/^ {4}/gm,"")))}),l:(y,E,S)=>s("pre",{key:S.key},s("code",Ar({},y.attrs,{className:y.lang?"lang-"+y.lang:""}),y.text))},4:{t:["```","~~~"],o:Wt(dm),i:0,u:y=>({attrs:c("code",y[3]||""),lang:y[2]||void 0,text:y[4],type:"3"})},5:{t:["`"],o:nr(vN),i:3,u:y=>({text:Ot(y[2])}),l:(y,E,S)=>s("code",{key:S.key},y.text)},6:{t:["[^"],o:Wt($N),i:0,u:y=>(d.push({footnote:y[2],identifier:y[1]}),{}),l:Is},7:{t:["[^"],o:$r(xN),i:1,u:y=>({target:"#"+r(y[1],Kn),text:y[1]}),l:(y,E,S)=>s("a",{key:S.key,href:n(y.target,"a","href")},s("sup",{key:S.key},y.text))},8:{t:["[ ]","[x]"],o:$r(_N),i:1,u:y=>({completed:y[1].toLowerCase()==="x"}),l:(y,E,S)=>s("input",{checked:y.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Wt(t.enforceAtxHeadings?hm:pm),i:1,u:(y,E,S)=>({children:Ei(E,y[2],S),id:r(y[2],Kn),level:y[1].length}),l:(y,E,S)=>s("h"+y.level,{id:y.id,key:S.key},E(y.children,S))},10:{t:y=>{let E=y.indexOf(`
677
+ `);return E>0&&E<y.length-1&&(y[E+1]==="="||y[E+1]==="-")},o:Wt(gm),i:1,u:(y,E,S)=>({children:Ei(E,y[1],S),level:y[2]==="="?1:2,type:"9"})},11:{t:["<"],o:oi(Ds),i:1,u(y,E,S){let[,$]=y[3].match(ZN),C=RegExp("^"+$,"gm"),_=y[3].replace(C,""),w=l(a,_)?f9:Ei,T=y[1].toLowerCase(),D=dN.indexOf(T)!==-1,P=(D?T:y[1]).trim(),x={attrs:c(P,y[2]),noInnerParse:D,tag:P};if(S.inAnchor=S.inAnchor||T==="a",D)x.text=y[3];else{let k=S.inHTML;S.inHTML=!0,x.children=w(E,_,S),S.inHTML=k}return S.inAnchor=!1,x},l:(y,E,S)=>s(y.tag,Ar({key:S.key},y.attrs),y.text||(y.children?E(y.children,S):""))},13:{t:["<"],o:oi(Rs),i:1,u(y){let E=y[1].trim();return{attrs:c(E,y[2]||""),tag:E}},l:(y,E,S)=>s(y.tag,Ar({},y.attrs,{key:S.key}))},12:{t:["<!--"],o:oi(mm),i:1,u:()=>({}),l:Is},14:{t:["!["],o:nr(i9),i:1,u:y=>({alt:Ot(y[1]),target:Ot(y[2]),title:Ot(y[3])}),l:(y,E,S)=>s("img",{key:S.key,alt:y.alt||void 0,title:y.title||void 0,src:n(y.target,"img","src")})},15:{t:["["],o:$r(o9),i:3,u:(y,E,S)=>({children:d9(E,y[1],S),target:Ot(y[2]),title:Ot(y[3])}),l:(y,E,S)=>s("a",{key:S.key,href:n(y.target,"a","href"),title:y.title},E(y.children,S))},16:{t:["<"],o:$r(ON),i:0,u(y){let E=y[1],S=!1;return E.indexOf("@")!==-1&&E.indexOf("//")===-1&&(S=!0,E=E.replace("mailto:","")),{children:[{text:E,type:"27"}],target:S?"mailto:"+E:E,type:"15"}}},17:{t:(y,E)=>!E.inAnchor&&!t.disableAutoLink&&(vi(y,"http://")||vi(y,"https://")),o:$r(RN),i:0,u:y=>({children:[{text:y[1],type:"27"}],target:y[1],title:void 0,type:"15"})},20:bm(s,1),33:bm(s,2),19:{t:[`
678
+ `],o:Wt(EN),i:3,u:Ps,l:()=>`
679
+ `},21:{o:En(function(y,E){if(E.inline||E.simple||E.inHTML&&y.indexOf(`
680
+
681
+ `)===-1&&E.prevCapture.indexOf(`
682
+
683
+ `)===-1)return null;let S="",$=0;for(;;){let _=y.indexOf(`
684
+ `,$),w=y.slice($,_===-1?void 0:_+1);if(l(i,w)||(S+=w,_===-1||!w.trim()))break;$=_+1}let C=to(S);return C===""?null:[S,,C]}),i:3,u:Os,l:(y,E,S)=>s("p",{key:S.key},E(y.children,S))},22:{t:["["],o:$r(FN),i:0,u:y=>(f[y[1]]={target:y[2],title:y[4]},{}),l:Is},23:{t:["!["],o:nr(LN),i:0,u:y=>({alt:y[1]?Ot(y[1]):void 0,ref:y[2]}),l:(y,E,S)=>f[y.ref]?s("img",{key:S.key,alt:y.alt,src:n(f[y.ref].target,"img","src"),title:f[y.ref].title}):null},24:{t:y=>y[0]==="["&&y.indexOf("](")===-1,o:$r(kN),i:0,u:(y,E,S)=>({children:E(y[1],S),fallbackChildren:y[0],ref:y[2]}),l:(y,E,S)=>f[y.ref]?s("a",{key:S.key,href:n(f[y.ref].target,"a","href"),title:f[y.ref].title},E(y.children,S)):s("span",{key:S.key},y.fallbackChildren)},25:{t:["|"],o:Wt(ym),i:1,u:s9,l(y,E,S){let $=y;return s("table",{key:S.key},s("thead",null,s("tr",null,$.header.map(function(C,_){return s("th",{key:_,style:Sm($,_)},E(C,S))}))),s("tbody",null,$.cells.map(function(C,_){return s("tr",{key:_},C.map(function(w,T){return s("td",{key:T,style:Sm($,T)},E(w,S))}))})))}},27:{o:En(function(y,E){let S;return vi(y,":")&&(S=VN.exec(y)),S||XN.exec(y)}),i:4,u(y){let E=y[0];return{text:E.indexOf("&")===-1?E:E.replace(TN,(S,$)=>t.namedCodesToUnicode[$]||S)}},l:y=>y.text},28:{t:["**","__"],o:nr(KN),i:2,u:(y,E,S)=>({children:E(y[2],S)}),l:(y,E,S)=>s("strong",{key:S.key},E(y.children,S))},29:{t:y=>{let E=y[0];return(E==="*"||E==="_")&&y[1]!==E},o:nr(zN),i:3,u:(y,E,S)=>({children:E(y[2],S)}),l:(y,E,S)=>s("em",{key:S.key},E(y.children,S))},30:{t:["\\"],o:nr(qN),i:1,u:y=>({text:y[1],type:"27"})},31:{t:["=="],o:nr(GN),i:3,u:Os,l:(y,E,S)=>s("mark",{key:S.key},E(y.children,S))},32:{t:["~~"],o:nr(WN),i:3,u:Os,l:(y,E,S)=>s("del",{key:S.key},E(y.children,S))}};t.disableParsingRawHTML===!0&&(delete h[11],delete h[13]);let m=(function(y){var E=Object.keys(y);function S($,C){var _=[];if(C.prevCapture=C.prevCapture||"",$.trim())for(;$;)for(var w=0;w<E.length;){var T=E[w],D=y[T];if(!D.t||a9($,C,D.t)){var P=D.o($,C);if(P&&P[0]){$=$.substring(P[0].length);var x=D.u(P,S,C);C.prevCapture+=P[0],x.type||(x.type=T),_.push(x);break}w++}else w++}return C.prevCapture="",_}return E.sort(function($,C){return y[$].i-y[C].i||($<C?-1:1)}),function($,C){return S((function(_){return _.replace(SN,`
685
+ `).replace(wN,"").replace(MN," ")})($),C)}})(h),b=(function(y,E){return function S($,C={}){if(Array.isArray($)){let _=C.key,w=[],T=!1;for(let D=0;D<$.length;D++){C.key=D;let P=S($[D],C),x=vm(P);x&&T?w[w.length-1]+=P:P!==null&&w.push(P),T=x}return C.key=_,w}return(function(_,w,T){let D=y[_.type].l;return E?E(()=>D(_,w,T),_,w,T):D(_,w,T)})($,S,C)}})(h,t.renderRule),v=u(e);return d.length?s("div",null,v,s("footer",{key:"footer"},d.map(function(y){return s("div",{id:r(y.identifier,Kn),key:y.identifier},y.identifier,b(m(y.footnote,{inline:!0})))}))):v}var vS=e=>{let{children:t,options:r}=e,n=(function(o,i){if(o==null)return{};var a,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)i.indexOf(a=u[l])>=0||(s[a]=o[a]);return s})(e,cN);return p.cloneElement(h9(t??"",r),n)},g9=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Ce(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${ri(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${ri(.05,e.appBorderColor)} 0 0 0 2px inset`,color:ri(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${ri(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),m9=e=>e==="true",y9=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:i})=>{let a=p.useCallback(()=>r(!1),[r]),l=!!i?.table?.readonly;if(t===void 0)return g.createElement(xe,{ariaLabel:!1,variant:"outline",size:"medium",id:Yi(e),onClick:a,disabled:l},"Set boolean");let s=Ct(e),u=typeof t=="string"?m9(t):t;return g.createElement(g9,{"aria-disabled":l,htmlFor:s,"aria-label":e},g.createElement("input",{id:s,type:"checkbox",onChange:c=>r(c.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),g.createElement("span",{"aria-hidden":"true"},"False"),g.createElement("span",{"aria-hidden":"true"},"True"))},b9=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},v9=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},E9=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},S9=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},$m=R(zr.Input)(({theme:e})=>({"&[readonly]":{background:e.base==="light"?e.color.lighter:"transparent"},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}})),$9=R.fieldset({flex:1,display:"flex",border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),x9=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:i})=>{let[a,l]=p.useState(!0),s=p.useRef(),u=p.useRef(),c=!!i?.table?.readonly;p.useEffect(()=>{a!==!1&&(s&&s.current&&(s.current.value=t?E9(t):""),u&&u.current&&(u.current.value=t?S9(t):""))},[t]);let d=m=>{if(!m.target.value)return r();let b=b9(m.target.value),v=new Date(t??"");v.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let y=v.getTime();y&&r(y),l(!!y)},f=m=>{if(!m.target.value)return r();let b=v9(m.target.value),v=new Date(t??"");v.setHours(b.getHours()),v.setMinutes(b.getMinutes());let y=v.getTime();y&&r(y),l(!!y)},h=Ct(e);return g.createElement($9,null,g.createElement("legend",{className:"sb-sr-only"},e),g.createElement("label",{htmlFor:`${h}-date`,className:"sb-sr-only"},"Date"),g.createElement($m,{type:"date",max:"9999-12-31",ref:s,id:`${h}-date`,name:`${h}-date`,readOnly:c,onChange:d,onFocus:n,onBlur:o}),g.createElement("label",{htmlFor:`${h}-time`,className:"sb-sr-only"},"Time"),g.createElement($m,{type:"time",id:`${h}-time`,name:`${h}-time`,ref:u,onChange:f,readOnly:c,onFocus:n,onBlur:o}),a?null:g.createElement("div",null,"invalid"))},w9=R.label({display:"flex"}),C9=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},_9=R(zr.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),T9=({name:e,value:t,onChange:r,min:n,max:o,step:i,onBlur:a,onFocus:l,argType:s})=>{let[u,c]=p.useState(typeof t=="number"?t:""),[d,f]=p.useState(!1),[h,m]=p.useState(null),b=!!s?.table?.readonly,v=p.useCallback(S=>{c(S.target.value);let $=parseFloat(S.target.value);if(Number.isNaN($))m(new Error(`'${S.target.value}' is not a number`));else{let C=$;typeof n=="number"&&C<n&&(C=n),typeof o=="number"&&C>o&&(C=o),r(C),m(null),C!==$&&c(String(C))}},[r,m,n,o]),y=p.useCallback(()=>{c("0"),r(0),f(!0)},[f]),E=p.useRef(null);return p.useEffect(()=>{d&&E.current&&E.current.select()},[d]),p.useEffect(()=>{let S=typeof t=="number"?t:"";u!==S&&c(S)},[t]),t===void 0?g.createElement(xe,{ariaLabel:!1,variant:"outline",size:"medium",id:Yi(e),onClick:y,disabled:b},"Set number"):g.createElement(w9,null,g.createElement(_9,{ref:E,id:Ct(e),type:"number",onChange:v,size:"flex",placeholder:"Edit number...",value:u,valid:h?"error":void 0,autoFocus:d,readOnly:b,name:e,min:n,max:o,step:i,onFocus:l,onBlur:a}))};const{logger:A9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ES=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},Gu=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],SS=(e,t)=>e&&t&&e.map(r=>t[r]),D9=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),R9=R.span(({$readOnly:e})=>({opacity:e?.5:1})),O9=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),xm=({name:e,options:t,value:r,onChange:n,isInline:o,argType:i})=>{if(!t)return A9.warn(`Checkbox with no options: ${e}`),g.createElement(g.Fragment,null,"-");let a=Gu(r||[],t),[l,s]=p.useState(a),u=!!i?.table?.readonly,c=f=>{let h=f.target.value,m=[...l];m.includes(h)?m.splice(m.indexOf(h),1):m.push(h),n(SS(m,t)),s(m)};p.useEffect(()=>{s(Gu(r||[],t))},[r]);let d=Ct(e);return g.createElement(D9,{$isInline:o},g.createElement("legend",{className:"sb-sr-only"},e),Object.keys(t).map((f,h)=>{let m=`${d}-${h}`;return g.createElement(O9,{key:m,htmlFor:m,$readOnly:u},g.createElement("input",{type:"checkbox",disabled:u,id:m,name:m,value:f,onChange:c,checked:l?.includes(f)}),g.createElement(R9,{$readOnly:u},f))}))};const{logger:P9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var I9=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),F9=R.span(({$readOnly:e})=>({opacity:e?.5:1})),L9=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),wm=({name:e,options:t,value:r,onChange:n,isInline:o,argType:i})=>{if(!t)return P9.warn(`Radio with no options: ${e}`),g.createElement(g.Fragment,null,"-");let a=ES(r,t),l=Ct(e),s=!!i?.table?.readonly;return g.createElement(I9,{isInline:o},g.createElement("legend",{className:"sb-sr-only"},e),Object.keys(t).map((u,c)=>{let d=`${l}-${c}`;return g.createElement(L9,{key:d,htmlFor:d,$readOnly:s},g.createElement("input",{type:"radio",id:d,name:l,disabled:s,value:u,onChange:f=>n(t[f.currentTarget.value]),checked:u===a}),g.createElement(F9,{$readOnly:s},u))}))};const{logger:k9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var N9={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},$S=R.select(N9,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),xS=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Ls="Choose option...",M9=({name:e,value:t,options:r,onChange:n,argType:o})=>{let i=u=>{n(r[u.currentTarget.value])},a=ES(t,r)||Ls,l=Ct(e),s=!!o?.table?.readonly;return g.createElement(xS,null,g.createElement(hy,null),g.createElement("label",{htmlFor:l,className:"sb-sr-only"},e),g.createElement($S,{disabled:s,id:l,value:a,onChange:i},g.createElement("option",{disabled:a===Ls,key:"no-selection"},Ls),Object.keys(r).map(u=>g.createElement("option",{key:u,value:u},u))))},B9=({name:e,value:t,options:r,onChange:n,argType:o})=>{let i=u=>{let c=Array.from(u.currentTarget.options).filter(d=>d.selected).map(d=>d.value);n(SS(c,r))},a=Gu(t,r),l=Ct(e),s=!!o?.table?.readonly;return g.createElement(xS,null,g.createElement("label",{htmlFor:l,className:"sb-sr-only"},e),g.createElement($S,{disabled:s,id:l,multiple:!0,value:a,onChange:i},Object.keys(r).map(u=>g.createElement("option",{key:u,value:u},u))))},Cm=e=>{let{name:t,options:r}=e;return r?e.isMulti?g.createElement(B9,{...e}):g.createElement(M9,{...e}):(k9.warn(`Select with no options: ${t}`),g.createElement(g.Fragment,null,"-"))},j9=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,H9={check:xm,"inline-check":xm,radio:wm,"inline-radio":wm,select:Cm,"multi-select":Cm},Yr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?j9(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},i=H9[t];if(i)return g.createElement(i,{...o});throw new Error(`Unknown options type: ${t}`)},U9=R.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),K9=R.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),z9=R.div({display:"inline"});function wS({children:e,name:t,collapsed:r,keyPath:n,deep:o,...i}){let a=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${a}-trigger`,region:`${a}-region`},s=n.length>0?"li":"div";return g.createElement(U9,{as:s},g.createElement(K9,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...i},t," :"),g.createElement(z9,{role:"region",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var G9="Error",W9="Object",V9="Array",q9="String",Y9="Number",X9="Boolean",J9="Date",Z9="Null",Q9="Undefined",eM="Function",tM="Symbol",CS="ADD_DELTA_TYPE",_S="REMOVE_DELTA_TYPE",TS="UPDATE_DELTA_TYPE",wd="value";function Or(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function AS(e,t){let r=Or(e),n=Or(t);return(r==="Function"||n==="Function")&&n!==r}var Cd=class extends p.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(i=>i===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:i,inputRefValue:a}=this.state,l={};if(!t){if(!i.value)return;l.key=i.value}l.newValue=r(!1,n,o,l.key,a.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:i,deep:a}=this.props,l=r&&p.cloneElement(r,{onClick:this.onSubmit}),s=n&&p.cloneElement(n,{onClick:e}),u=o(wd,i,a),c=p.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=o("key",i,a);d=p.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return g.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};Cd.defaultProps={onlyValue:!1,addButtonElement:g.createElement("button",null,"+"),cancelButtonElement:g.createElement("button",null,"c")};var DS=class extends p.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:_S};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:o,logger:i}=this.props,a=t.length;(o||Promise.resolve.bind(Promise))(a,r,n,e).then(()=>{t[a]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:CS,keyPath:r,deep:n,key:a,newValue:e})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a,nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:TS,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:i,getStyle:a,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:c}=a(e,t,r,n,l),d=i(e,t,r,n,l),f=s&&p.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the array '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{style:c},"[...] ",t.length," ",t.length===1?"item":"items"),!d&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:c,dataType:d,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:m,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:$,logger:C,onSubmitValueParser:_}=this.props,{minus:w,plus:T,delimiter:D,ul:P,addForm:x}=c(e,t,r,n,d),k=u(e,t,r,n,d),L=y&&p.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T,"aria-label":`add a new item to the '${String(e)}' array`}),A=v&&p.cloneElement(v,{onClick:l,className:"rejt-minus-menu",style:w,"aria-label":`remove the array '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:D},"["),!o&&L,g.createElement("ul",{className:"rejt-not-collapsed-list",style:P},t.map((O,I)=>g.createElement(Ta,{key:I,name:I.toString(),data:O,keyPath:r,deep:i,isCollapsed:a,handleRemove:this.handleRemoveItem(I),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:m,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:$,logger:C,onSubmitValueParser:_}))),!k&&o&&g.createElement("div",{className:"rejt-add-form",style:x},g.createElement(Cd,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:_})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:D},"]"),!k&&A)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return g.createElement(wS,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};DS.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var RS=class extends p.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{AS(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,getStyle:u,textareaElementGenerator:c,minusMenuElement:d,keyPath:f=[]}=this.props,h=u(e,a,n,o,s),m=null,b=null,v=l(e,a,n,o,s);if(r&&!v){let y=c(wd,f,o,e,a,s),E=p.cloneElement(y,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});m=g.createElement("span",{className:"rejt-edit-form",style:h.editForm},E),b=null}else{m=g.createElement("span",{className:"rejt-value",style:h.value,onClick:v?void 0:this.handleEditMode},t);let y=f.at(-1),E=d&&p.cloneElement(d,{onClick:i,className:"rejt-minus-menu",style:h.minus,"aria-label":`remove the function '${String(e)}'${String(y)?` from '${String(y)}'`:""}`});b=v?null:E}return g.createElement("li",{className:"rejt-value-node",style:h.li},g.createElement("span",{className:"rejt-name",style:h.name},e," :"," "),m,b)}};RS.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};var Ta=class extends p.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:i,handleUpdateValue:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:h,textareaElementGenerator:m,minusMenuElement:b,plusMenuElement:v,beforeRemoveAction:y,beforeAddAction:E,beforeUpdateAction:S,logger:$,onSubmitValueParser:C}=this.props,_=()=>!0,w=Or(e);switch(w){case G9:return g.createElement(Wu,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:_,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:h,textareaElementGenerator:m,minusMenuElement:b,plusMenuElement:v,beforeRemoveAction:y,beforeAddAction:E,beforeUpdateAction:S,logger:$,onSubmitValueParser:C});case W9:return g.createElement(Wu,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:h,textareaElementGenerator:m,minusMenuElement:b,plusMenuElement:v,beforeRemoveAction:y,beforeAddAction:E,beforeUpdateAction:S,logger:$,onSubmitValueParser:C});case V9:return g.createElement(DS,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:h,textareaElementGenerator:m,minusMenuElement:b,plusMenuElement:v,beforeRemoveAction:y,beforeAddAction:E,beforeUpdateAction:S,logger:$,onSubmitValueParser:C});case q9:return g.createElement(or,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});case Y9:return g.createElement(or,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});case X9:return g.createElement(or,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});case J9:return g.createElement(or,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:_,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});case Z9:return g.createElement(or,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});case Q9:return g.createElement(or,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});case eM:return g.createElement(RS,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,textareaElementGenerator:m,minusMenuElement:b,logger:$,onSubmitValueParser:C});case tM:return g.createElement(or,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:_,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:h,minusMenuElement:b,logger:$,onSubmitValueParser:C});default:return null}}};Ta.defaultProps={keyPath:[],deep:0};var Wu=class extends p.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:i,logger:a}=this.props;(i||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:CS,keyPath:n,deep:o,key:e,newValue:t})}).catch(a.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:_S};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a=[],nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:TS,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:i,dataType:a,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:c}=l(e,n,t,r,a),d=Object.getOwnPropertyNames(n),f=i(e,n,t,r,a),h=s&&p.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the object '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{style:c},"{...}"," ",d.length," ",d.length===1?"key":"keys"),!f&&h)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:c,dataType:d,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:m,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:$,logger:C,onSubmitValueParser:_}=this.props,{minus:w,plus:T,addForm:D,ul:P,delimiter:x}=c(e,t,r,n,d),k=Object.getOwnPropertyNames(t),L=u(e,t,r,n,d),A=y&&p.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T,"aria-label":`add a new property to the object '${String(e)}'`}),O=v&&p.cloneElement(v,{onClick:l,className:"rejt-minus-menu",style:w,"aria-label":`remove the object '${String(e)}'`}),I=k.map(F=>g.createElement(Ta,{key:F,name:F,data:t[F],keyPath:r,deep:o,isCollapsed:a,handleRemove:this.handleRemoveValue(F),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:m,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:y,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:$,logger:C,onSubmitValueParser:_}));return g.createElement(g.Fragment,null,g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:x},"{"),!L&&A,g.createElement("ul",{className:"rejt-not-collapsed-list",style:P},I),!L&&i&&g.createElement("div",{className:"rejt-add-form",style:D},g.createElement(Cd,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:_})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:x},"}"),!L&&O)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return g.createElement(wS,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};Wu.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var or=class extends p.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{AS(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,getStyle:u,inputElementGenerator:c,minusMenuElement:d,keyPath:f}=this.props,h=u(e,a,n,o,s),m=l(e,a,n,o,s),b=r&&!m,v=c(wd,f,o,e,a,s),y=p.cloneElement(v,{ref:this.refInput,defaultValue:JSON.stringify(a),onKeyDown:this.onKeydown}),E=n.at(-2),S=d&&p.cloneElement(d,{onClick:i,className:"rejt-minus-menu",style:h.minus,"aria-label":`remove the property '${String(e)}' with value '${String(a)}'${String(E)?` from '${String(E)}'`:""}`});return g.createElement("li",{className:"rejt-value-node",style:h.li},g.createElement("span",{className:"rejt-name",style:h.name},e," : "),b?g.createElement("span",{className:"rejt-edit-form",style:h.editForm},y):g.createElement("span",{className:"rejt-value",style:h.value,onClick:m?void 0:this.handleEditMode},String(t)),!m&&!b&&S)}};or.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};function rM(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var nM={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},oM={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},iM={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},OS=class extends p.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:i,addButtonElement:a,cancelButtonElement:l,inputElement:s,textareaElement:u,minusMenuElement:c,plusMenuElement:d,beforeRemoveAction:f,beforeAddAction:h,beforeUpdateAction:m,logger:b,onSubmitValueParser:v,fallback:y=null}=this.props,E=Or(e),S=o;Or(o)==="Boolean"&&(S=()=>o);let $=s;s&&Or(s)!=="Function"&&($=()=>s);let C=u;return u&&Or(u)!=="Function"&&(C=()=>u),E==="Object"||E==="Array"?g.createElement("div",{className:"rejt-tree"},g.createElement(Ta,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:S,getStyle:i??(()=>({})),addButtonElement:a,cancelButtonElement:l,inputElementGenerator:$,textareaElementGenerator:C,minusMenuElement:c,plusMenuElement:d,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:h,beforeUpdateAction:m,logger:b??{},onSubmitValueParser:v??(_=>_)})):y}};OS.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return nM;case"Array":return oM;default:return iM}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>rM(o),inputElement:()=>g.createElement("input",null),textareaElement:()=>g.createElement("textarea",null),fallback:null};var{window:aM}=globalThis,lM=R.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor}})),_m=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),Tm=R.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),Am=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),sM=R(ba)({position:"absolute",zIndex:2,top:2,right:2}),uM=R(zr.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),cM={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dM=e=>{e.currentTarget.dispatchEvent(new aM.KeyboardEvent("keydown",cM))},fM=e=>{e.currentTarget.select()},pM=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Dm=({name:e,value:t,onChange:r,argType:n})=>{let o=Zu(),i=p.useMemo(()=>t&&sN(t),[t]),a=i!=null,[l,s]=p.useState(!a),[u,c]=p.useState(null),d=!!n?.table?.readonly,f=p.useCallback($=>{try{$&&r(JSON.parse($)),c(null)}catch(C){c(C)}},[r]),[h,m]=p.useState(!1),b=p.useCallback(()=>{r({}),m(!0)},[m]),v=p.useRef(null);p.useEffect(()=>{h&&v.current&&v.current.select()},[h]);let y=p.useMemo(()=>JSON.stringify(i??"",null,2),[i]);if(!a)return g.createElement(xe,{ariaLabel:!1,disabled:d,id:Yi(e),onClick:b},"Set object");let E=g.createElement(uM,{ref:v,id:Ct(e),minRows:3,name:e,key:y,defaultValue:y,onBlur:$=>f($.target.value),placeholder:"Edit JSON string...",autoFocus:h,valid:u?"error":void 0,readOnly:d}),S=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return g.createElement(lM,null,S&&g.createElement(sM,{disabled:d,pressed:l,ariaLabel:`Edit the ${e} properties in JSON format`,onClick:$=>{$.preventDefault(),s(C=>!C)}},"Edit JSON"),l?E:g.createElement(OS,{readOnly:d||!S,isCollapsed:S?void 0:()=>!0,data:i,rootName:e,onFullyUpdate:r,getStyle:pM(o),cancelButtonElement:g.createElement(_m,{type:"button"},"Cancel"),addButtonElement:g.createElement(_m,{type:"submit",primary:!0},"Save"),plusMenuElement:g.createElement(Tm,{type:"button"},g.createElement(fA,null)),minusMenuElement:g.createElement(Tm,{type:"button"},g.createElement(pA,null)),inputElement:($,C,_,w)=>w?g.createElement(Am,{onFocus:fM,onBlur:dM}):g.createElement(Am,null),fallback:E}))},hM=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let i={background:e.base==="light"?`linear-gradient(to right,
686
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
687
+ ${eo(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
688
+ ${eo(.02,e.input.background)} 100%)`:`linear-gradient(to right,
689
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
690
+ ${zu(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
691
+ ${zu(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},a={borderColor:vn(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${vn(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${eo(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":{...i,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),PS=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),gM=R(PS)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),mM=R.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function yM(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var bM=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:i=1,onBlur:a,onFocus:l,argType:s})=>{let u=m=>{r(C9(m.target.value))},c=t!==void 0,d=p.useMemo(()=>yM(i),[i]),f=!!s?.table?.readonly,h=Ct(e);return g.createElement(mM,{readOnly:f},g.createElement("label",{htmlFor:h,className:"sb-sr-only"},e),g.createElement(PS,null,n),g.createElement(hM,{id:h,type:"range",disabled:f,onChange:u,name:e,min:n,max:o,step:i,onFocus:l,onBlur:a,value:t??n}),g.createElement(gM,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},vM=R.label({display:"flex"}),EM=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),SM=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:i,argType:a})=>{let l=h=>{r(h.target.value)},s=!!a?.table?.readonly,[u,c]=p.useState(!1),d=p.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return g.createElement(xe,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Yi(e),onClick:d},"Set string");let f=typeof t=="string";return g.createElement(vM,null,g.createElement(zr.Textarea,{id:Ct(e),maxLength:i,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:o}),i&&g.createElement(EM,{isMaxed:t?.length===i},t?.length??0," / ",i))},$M=R(zr.Input)({padding:10});function xM(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var wM=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let i=p.useRef(null),a=o?.control?.readOnly;function l(u){if(!u.target.files)return;let c=Array.from(u.target.files).map(d=>URL.createObjectURL(d));e(c),xM(n||[])}p.useEffect(()=>{n==null&&i.current&&(i.current.value="")},[n,t]);let s=Ct(t);return g.createElement(g.Fragment,null,g.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),g.createElement($M,{ref:i,id:s,type:"file",name:t,multiple:!0,disabled:a,onChange:l,accept:r,size:"flex"}))},CM=p.lazy(()=>cr(()=>import("./Color-6BZIO3FS-Die62Y0Z.js"),__vite__mapDeps([6,0,1,2]),import.meta.url)),_M=e=>g.createElement(p.Suspense,{fallback:g.createElement("div",null)},g.createElement(CM,{...e})),TM={array:Dm,object:Dm,boolean:y9,color:_M,date:x9,number:T9,check:Yr,"inline-check":Yr,radio:Yr,"inline-radio":Yr,select:Yr,"multi-select":Yr,range:bM,text:SM,file:wM},Rm=()=>g.createElement(g.Fragment,null,"-"),AM=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:i}=e,[a,l]=p.useState(!1),[s,u]=p.useState({value:t});p.useEffect(()=>{a||u({value:t})},[a,t]);let c=p.useCallback(b=>(u({value:b}),r({[o]:b}),b),[r,o]),d=p.useCallback(()=>l(!1),[]),f=p.useCallback(()=>l(!0),[]);if(!i||i.disable){let b=i?.disable!==!0&&e?.type?.name!=="function";return n&&b?g.createElement(pn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):g.createElement(Rm,null)}let h={name:o,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},m=TM[i.type]||Rm;return g.createElement(m,{...h,...i,controlType:i.type})},DM=R.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Jt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),RM=({tags:e})=>{let t=(e.params||[]).filter(i=>i.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:g.createElement(g.Fragment,null,g.createElement(DM,null,g.createElement("tbody",null,n&&g.createElement("tr",{key:"deprecated"},g.createElement("td",{colSpan:2},g.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(i=>g.createElement("tr",{key:i.name},g.createElement("td",null,g.createElement("code",null,i.name)),g.createElement("td",null,i.description))),o&&g.createElement("tr",{key:"returns"},g.createElement("td",null,g.createElement("code",null,"Returns")),g.createElement("td",null,e.returns?.description)))))};function OM(e){return[...new Set(e)]}var Ki=8,Om=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),PM=R.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),IM=R.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),FM=R.span(Jt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),LM=R.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),kM=R.button(Jt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),NM=R.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),MM=R(vA)({marginLeft:4}),BM=R(hy)({marginLeft:4}),jM=()=>g.createElement("span",null,"-"),_d=({text:e,simple:t})=>g.createElement(FM,{simple:t},e),HM=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return OM(t)},Pm=e=>e.slice(0,Ki).map(t=>g.createElement(_d,{key:t,text:t===""?'""':t})),UM=e=>e.slice(Ki).map(t=>g.createElement(_d,{key:t,text:t===""?'""':t})),KM=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=p.useState(!1),[a,l]=p.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return g.createElement(_d,{text:s});let u=HM(s),c=u.length;return c>Ki?g.createElement(Om,{isExpanded:a},Pm(u),g.createElement(PM,{open:a,onToggle:d=>l(d.currentTarget.open)},g.createElement(IM,null,UM(u)),g.createElement(LM,{role:"button"},a?"Show less...":`Show ${c-Ki} more...`))):g.createElement(Om,null,Pm(u))}return g.createElement(bd,{placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},hasCloseButton:!0,popover:g.createElement(NM,null,g.createElement(Co,{language:"jsx",format:!1},n))},g.createElement(kM,{className:"sbdocs-expandable"},g.createElement("span",null,s),o?g.createElement(MM,null):g.createElement(BM,null)))},ks=({value:e,initialExpandedArgs:t})=>e==null?g.createElement(jM,null):g.createElement(KM,{value:e,initialExpandedArgs:t}),zM=R.span({fontWeight:"bold"}),GM=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),WM=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Jt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),VM=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ce(.1,e.color.defaultText):Ce(.2,e.color.defaultText),marginTop:t?4:0})),qM=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ce(.1,e.color.defaultText):Ce(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),YM=R.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),XM=e=>e&&{summary:typeof e=="string"?e:e.name},ii=e=>{let[t,r]=p.useState(!1),{row:n,updateArgs:o,compact:i,expandable:a,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||XM(n.type),f=c.defaultValue||n.defaultValue,h=n.type?.required,m=u!=null&&u!=="";return g.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},g.createElement(YM,{expandable:a??!1},g.createElement(zM,null,s),h?g.createElement(GM,{title:"Required"},"*"):null),i?null:g.createElement("td",null,m&&g.createElement(WM,null,g.createElement(vS,null,u)),c.jsDocTags!=null?g.createElement(g.Fragment,null,g.createElement(qM,{hasDescription:m},g.createElement(ks,{value:d,initialExpandedArgs:l})),g.createElement(RM,{tags:c.jsDocTags})):g.createElement(VM,{hasDescription:m},g.createElement(ks,{value:d,initialExpandedArgs:l}))),i?null:g.createElement("td",null,g.createElement(ks,{value:f,initialExpandedArgs:l})),o?g.createElement("td",null,g.createElement(AM,{...e,isHovered:t})):null)},JM=R.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),ZM=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),QM=({inAddonPanel:e})=>{let[t,r]=p.useState(!0);return p.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:g.createElement(JM,{inAddonPanel:e},g.createElement(Fo,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:g.createElement(g.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:g.createElement(ZM,null,e&&g.createElement(g.Fragment,null,g.createElement(pn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},g.createElement(eu,null)," Read docs")),!e&&g.createElement(pn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},g.createElement(eu,null)," Learn how to set that up"))}))},eB=R(bA)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ce(.25,e.color.defaultText):Ce(.3,e.color.defaultText),border:"none",display:"inline-block"})),tB=R(py)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ce(.25,e.color.defaultText):Ce(.3,e.color.defaultText),border:"none",display:"inline-block"})),rB=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),nB=R.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Ce(.4,e.color.defaultText):Ce(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),oB=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),iB=R.td({position:"relative"}),aB=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${zu(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Im=R.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Ns=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=p.useState(n),l=e==="subsection"?oB:nB,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return g.createElement(g.Fragment,null,g.createElement(aB,{title:c},g.createElement(l,{colSpan:1},g.createElement(Im,{onClick:d=>a(!i),tabIndex:0},c),g.createElement(rB,null,i?g.createElement(eB,null):g.createElement(tB,null),t)),g.createElement(iB,{colSpan:o-1},g.createElement(Im,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},lB=R.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),ai=R.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Me=R.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Te=R.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),sB=()=>g.createElement(lB,null,g.createElement(ai,null,g.createElement(Me,{position:"first"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"second"},g.createElement(Te,{width:"30%"})),g.createElement(Me,{position:"third"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"last"},g.createElement(Te,{width:"60%"}))),g.createElement(ai,null,g.createElement(Me,{position:"first"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"second"},g.createElement(Te,{width:"80%"}),g.createElement(Te,{width:"30%"})),g.createElement(Me,{position:"third"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"last"},g.createElement(Te,{width:"60%"}))),g.createElement(ai,null,g.createElement(Me,{position:"first"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"second"},g.createElement(Te,{width:"80%"}),g.createElement(Te,{width:"30%"})),g.createElement(Me,{position:"third"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"last"},g.createElement(Te,{width:"60%"}))),g.createElement(ai,null,g.createElement(Me,{position:"first"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"second"},g.createElement(Te,{width:"80%"}),g.createElement(Te,{width:"30%"})),g.createElement(Me,{position:"third"},g.createElement(Te,{width:"60%"})),g.createElement(Me,{position:"last"},g.createElement(Te,{width:"60%"})))),uB=R.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),cB=R.div({position:"relative"}),dB=R.div({position:"absolute",right:22,top:10}),fB=R(xe)({margin:"-4px -12px -4px 0"}),pB={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},hB=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=a?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:i,...a});else{let c=u.subsections[s]||[];c.push({key:i,...a}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:i,...a}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:i,...a})});let n=pB[t],o=i=>n?Object.keys(i).reduce((a,l)=>({...a,[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>({...i,[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},gB=(e,t,r)=>{try{return y_(e,t,r)}catch(n){return Fk.warn(n.message),!1}},Vu=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s}=e;if("error"in e){let{error:S}=e;return g.createElement(uS,null,S," ",g.createElement(pn,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},g.createElement(eu,null)," Read the docs"))}if(s)return g.createElement(sB,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=hB(uN(u||{},S=>!S?.table?.disable&&gB(S,c||{},d||{})),l),h=f.ungrouped.length===0,m=Object.entries(f.sections).length===0,b=Object.entries(f.ungroupedSubsections).length===0;if(h&&m&&b)return g.createElement(QM,{inAddonPanel:o});let v=1;t&&(v+=1),n||(v+=2);let y=Object.keys(f.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return g.createElement(Hc,null,g.createElement(cB,null,t&&!s&&r&&g.createElement(dB,null,g.createElement(fB,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},g.createElement($A,null))),g.createElement(uB,{compact:n,inAddonPanel:o,inTabPanel:i,className:"docblock-argstable sb-unstyled"},g.createElement("thead",{className:"docblock-argstable-head"},g.createElement("tr",null,g.createElement("th",null,g.createElement("span",null,"Name")),n?null:g.createElement("th",null,g.createElement("span",null,"Description")),n?null:g.createElement("th",null,g.createElement("span",null,"Default")),t?g.createElement("th",null,g.createElement("span",null,"Control")):null)),g.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(S=>g.createElement(ii,{key:S.key,row:S,arg:c&&c[S.key],...E})),Object.entries(f.ungroupedSubsections).map(([S,$])=>g.createElement(Ns,{key:S,label:S,level:"subsection",colSpan:v},$.map(C=>g.createElement(ii,{key:C.key,row:C,arg:c&&c[C.key],expandable:y,...E})))),Object.entries(f.sections).map(([S,$])=>g.createElement(Ns,{key:S,label:S,level:"section",colSpan:v},$.ungrouped.map(C=>g.createElement(ii,{key:C.key,row:C,arg:c&&c[C.key],...E})),Object.entries($.subsections).map(([C,_])=>g.createElement(Ns,{key:C,label:C,level:"subsection",colSpan:v},_.map(w=>g.createElement(ii,{key:w.key,row:w,arg:c&&c[w.key],expandable:y,...E}))))))))))},Ae=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Td=600,mB=R.h1(be,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Td}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),yB=R.h2(be,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Td}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Ce(.25,e.color.defaultText)})),bB=R.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ce(.1,e.color.defaultText):Ce(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Ae("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Ae("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Ae("div")]:t,[Ae("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Ae("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Ae("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Ae("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Ae("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Ae("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Ae("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Ae("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Ae("img")]:{maxWidth:"100%"},[Ae("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Ae("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Ae("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Ae("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Ae("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Ae("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Ae("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),vB=R.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Td}px)`]:{}})),EB=({children:e,toc:t})=>g.createElement(vB,{className:"sbdocs sbdocs-wrapper"},t,g.createElement(bB,{className:"sbdocs sbdocs-content"},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=p.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Dt=globalThis?globalThis.__DOCS_CONTEXT__:p.createContext(null);function SB(e,t){let r=$B([e],t);return r&&r[0]}function $B(e,t){let[r,n]=p.useState({});return p.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:{...a,[o]:i})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var IS=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},xB=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if(e.inline??i.inline??!1){let l=e.height??i.height,s=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},wB=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=p.useContext(Dt),r=IS(e,t),n=SB(r,t);if(!n)return g.createElement(kS,null);let o=xB(e,n,t);return o?g.createElement(RB,{...o}):null},Aa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),FS=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),i=new URLSearchParams(o||"");return Object.entries(t).forEach(([a,l])=>{i.set(a,l)}),i.set("id",e),`${n}?${i.toString()}`},{window:CB}=globalThis,_B=class extends p.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=CB.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...i}=this.props;return g.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...i})}},LS=p.createContext({scale:1}),qu=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,TB=e=>{let t=p.useRef(),[r,n]=p.useState(!0),[o,i]=p.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return p.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,f=c(a,d,{showMain:()=>{},showError:({title:h,description:m})=>i(new Error(`${h} - ${m}`)),showException:h=>i(h)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,a]),o?g.createElement("pre",null,g.createElement(Vv,{error:o})):g.createElement(g.Fragment,null,l?g.createElement("style",null,`#${qu(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&g.createElement(kS,null),g.createElement("div",{ref:t,id:`${qu(e)}-inner`,"data-name":a.name}))},AB=({story:e,height:t="500px"})=>g.createElement("div",{style:{width:"100%",height:t}},g.createElement(LS.Consumer,null,({scale:r})=>g.createElement(_B,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:FS(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),DB=R.strong(({theme:e})=>({color:e.color.orange})),RB=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?g.createElement(DB,null,"This story mounts inside of play. Set"," ",g.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):g.createElement("div",{id:qu(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?g.createElement(TB,{...e}):g.createElement(AB,{...e}))},kS=()=>g.createElement(rS,null),OB=R(GE)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Ms=R.div({display:"flex",alignItems:"center",gap:4}),Fm=R.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),PB=({isLoading:e,storyId:t,zoom:r,resetZoom:n,...o})=>g.createElement(OB,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...o},g.createElement(Ms,{key:"left"},e?[1,2,3].map(i=>g.createElement(Fm,{key:i})):g.createElement(g.Fragment,null,g.createElement(xe,{padding:"small",variant:"ghost",key:"zoomin",onClick:i=>{i.preventDefault(),r(.8)},ariaLabel:"Zoom in"},g.createElement(sA,null)),g.createElement(xe,{padding:"small",variant:"ghost",key:"zoomout",onClick:i=>{i.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},g.createElement(uA,null)),g.createElement(xe,{padding:"small",variant:"ghost",key:"zoomreset",onClick:i=>{i.preventDefault(),n()},ariaLabel:"Reset zoom"},g.createElement(cA,null)))),e?g.createElement(Ms,{key:"right"},g.createElement(Fm,null)):t&&g.createElement(Ms,{key:"right"},g.createElement(xe,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},g.createElement("a",{href:FS(t),target:"_blank",rel:"noopener noreferrer"},g.createElement(yA,null))))),IB=R.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Lm=R(cS)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":eo(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":eo(.05,e.background.content)}})),FB=R.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Aa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),LB=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:g.createElement(Lm,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:g.createElement(Lm,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function kB(e){if(p.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var NB=R(PB)({position:"absolute",top:0,left:0,right:0,height:40}),MB=R.div({overflow:"hidden",position:"relative"}),NS=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,...d})=>{let[f,h]=p.useState(a),{source:m,actionItem:b}=LB(o,f,h),[v,y]=p.useState(1),E=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),S=o?[b]:[],[$,C]=p.useState(l?[...l]:[]),_=[...S,...$],{window:w}=globalThis,T=p.useContext(Dt),D=p.useCallback(async k=>{let{createCopyToClipboardFunction:L}=await cr(async()=>{const{createCopyToClipboardFunction:A}=await Promise.resolve().then(()=>K7);return{createCopyToClipboardFunction:A}},void 0,import.meta.url);L()},[]),P=k=>{let L=w.getSelection();L&&L.type==="Range"||(k.preventDefault(),$.filter(A=>A.title==="Copied").length===0&&D(m?.props.code??"").then(()=>{C([...$,{title:"Copied",onClick:()=>{}}]),w.setTimeout(()=>C($.filter(A=>A.title!=="Copied")),1500)}))},x=kB(n);return g.createElement(FB,{withSource:o,withToolbar:i,...d,className:E.join(" ")},i&&g.createElement(NB,{isLoading:e,border:!0,zoom:k=>y(v*k),resetZoom:()=>y(1),storyId:!e&&x?IS(x,T):void 0}),g.createElement(LS.Provider,{value:{scale:v}},g.createElement(MB,{className:"docs-story",onCopyCapture:o&&P},g.createElement(IB,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c},g.createElement(Wv.Element,{centered:u==="centered",scale:c?v:1},Array.isArray(n)?n.map((k,L)=>g.createElement("div",{key:L},k)):g.createElement("div",null,n))),g.createElement(X0,{actionItems:_}))),o&&f&&m)};R(NS)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var BB=R(eS)({height:"fit-content"}),jB=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return g.createElement(Vu,{...r[0][1],...t});let n=r.map(([o,i],a)=>({id:`prop_table_div_${o}`,title:o,children:()=>{let l=a===0?t:{sort:t.sort};return g.createElement(Vu,{inTabPanel:!0,key:`prop_table_${o}`,...i,...l})}}));return g.createElement(BB,{tabs:n})};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ce(.4,e.color.defaultText):Ce(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(be,({theme:e})=>({...Aa(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:Ce(.3,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Ce(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...Aa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Ce(.3,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));R.div(({theme:e})=>({...Aa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});R.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:HB}=__STORYBOOK_MODULE_CORE_EVENTS__;function UB(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(P,x){let k=x.appendChild(c(P));if(P.children.length){let L=d(P.isCollapsed);P.children.forEach(A=>{s(A,L)}),k.appendChild(L)}}function u(P,x){let k=d(!1);if(x.forEach(L=>{s(L,k)}),i=P||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),x.length===0?i:i.appendChild(k)}function c(P){let x=document.createElement("li"),k=document.createElement("a");return e.listItemClass&&x.setAttribute("class",e.listItemClass),e.onClick&&(k.onclick=e.onClick),e.includeTitleTags&&k.setAttribute("title",P.textContent),e.includeHtml&&P.childNodes.length?t.call(P.childNodes,L=>{k.appendChild(L.cloneNode(!0))}):k.textContent=P.textContent,k.setAttribute("href",`${e.basePath}#${P.id}`),k.setAttribute("class",`${e.linkClass+o}node-name--${P.nodeName}${o}${e.extraLinkClasses}`),x.appendChild(k),x}function d(P){let x=e.orderedList?"ol":"ul",k=document.createElement(x),L=e.listClass+o+e.extraListClasses;return P&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),k.setAttribute("class",L),k}function f(){let P=w(),x=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),P>e.fixedSidebarOffset?x.className.indexOf(e.positionFixedClass)===-1&&(x.className+=o+e.positionFixedClass):x.className=x.className.replace(o+e.positionFixedClass,"")}function h(P){let x=0;return P!==null&&(x=P.offsetTop,e.hasInnerContainers&&(x+=h(P.offsetParent))),x}function m(P,x){return P&&P.className!==x&&(P.className=x),P}function b(P,x){e.positionFixedSelector&&f();let k=P,L=x?.target?.getAttribute?x?.target?.getAttribute("href"):null,A=L&&L.charAt(0)==="#"?$(L.replace("#","")):!1,O=a||A;if(x&&l<5&&l++,O&&i&&k.length>0){let I=T(k),F=i.querySelector(`.${e.activeLinkClass}`),M=I.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),B=window.location.hash.replace("#",""),N=M,K=C();L&&A?N=L.replace("#",""):B&&B!==M&&K&&($(M)||l<=2)&&(N=B);let H=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${N}"]`);if(F===H)return;let G=i.querySelectorAll(`.${e.linkClass}`);t.call(G,q=>{m(q,q.className.replace(o+e.activeLinkClass,""))});let U=i.querySelectorAll(`.${e.listItemClass}`);t.call(U,q=>{m(q,q.className.replace(o+e.activeListItemClass,""))}),H&&H.className.indexOf(e.activeLinkClass)===-1&&(H.className+=o+e.activeLinkClass);let j=H?.parentNode;j&&j.className.indexOf(e.activeListItemClass)===-1&&(j.className+=o+e.activeListItemClass);let W=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(W,q=>{q.className.indexOf(e.isCollapsedClass)===-1&&(q.className+=o+e.isCollapsedClass)}),H?.nextSibling&&H.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(H.nextSibling,H.nextSibling.className.replace(o+e.isCollapsedClass,"")),v(H?.parentNode.parentNode)}}function v(P){return P&&P.className.indexOf(e.collapsibleClass)!==-1&&P.className.indexOf(e.isCollapsedClass)!==-1?(m(P,P.className.replace(o+e.isCollapsedClass,"")),v(P.parentNode.parentNode)):P}function y(P){let x=P.target||P.srcElement;typeof x.className!="string"||x.className.indexOf(e.linkClass)===-1||(a=!1)}function E(){a=!0}function S(){return a}function $(P){let x=_();return(document?.getElementById(P)).offsetTop>x.offsetHeight-x.clientHeight*1.4-e.bottomModeThreshold}function C(){let P=_(),x=P.scrollHeight>P.clientHeight,k=w()+P.clientHeight>P.offsetHeight-e.bottomModeThreshold;return x&&k}function _(){let P;return e.scrollContainer&&document.querySelector(e.scrollContainer)?P=document.querySelector(e.scrollContainer):P=document.documentElement||n,P}function w(){return _()?.scrollTop||0}function T(P,x=w()){let k;return r.call(P,(L,A)=>{if(h(L)>x+e.headingsOffset+10){let O=A===0?A:A-1;return k=P[O],!0}if(A===P.length-1)return k=P[P.length-1],!0}),k}function D(P){let x=w(),k=T(P,x),L=C();if((!k||x<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(k&&!L){let A=`#${k.id}`;window.location.hash!==A&&window.history.pushState(null,null,A)}}return{enableTocAnimation:E,disableTocAnimation:y,render:u,updateToc:b,getCurrentlyHighlighting:S,getTopHeader:T,getScrollTop:w,updateUrlHashForHeader:D}}var KB={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function zB(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function i(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function a(u,c){let d=i(u),f=d.headingLevel,h=c,m=r(h),b=m?m.headingLevel:0,v=f-b;for(;v>0&&(m=r(h),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(h=m.children),v--;return f>=e.collapseDepth&&(d.isCollapsed=!0),h.push(d),h}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=i(d);return f&&a(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function GB(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||WB(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function WB(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(f,h,m,b){return f/=b/2,f<1?m/2*f*f+h:(f--,-m/2*(f*(f-2)-1)+h)}}function VB(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ne={},yt,Bs,xr,vt,ro;function MS(e){let t=!1;ne=XB(KB,e||{}),ne.scrollSmooth&&(ne.duration=ne.scrollSmoothDuration,ne.offset=ne.scrollSmoothOffset,GB(ne)),yt=UB(ne),Bs=zB(ne),Ad();let r=ZB(ne);if(r===null)return;let n=BS(ne);if(n===null||(xr=Bs.selectHeadings(r,ne.headingSelector),xr===null))return;let o=Bs.nestHeadingsArray(xr).nest;if(!ne.skipRendering)yt.render(n,o);else return this;let i=!1,a=ne.scrollHandlerTimeout||ne.throttleTimeout;vt=((s,u)=>JB(s,u,ne.scrollHandlerType))(s=>{yt.updateToc(xr,s),!ne.disableTocScrollSync&&!i&&VB(ne),ne.enableUrlHashUpdateOnScroll&&t&&yt.getCurrentlyHighlighting()&&yt.updateUrlHashForHeader(xr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(yt.updateToc(xr),ne.scrollEndCallback?.(s))},a),t||(vt(),t=!0),window.onhashchange=window.onscrollend=s=>{vt(s)},ne.scrollContainer&&document.querySelector(ne.scrollContainer)?(document.querySelector(ne.scrollContainer).addEventListener("scroll",vt,!1),document.querySelector(ne.scrollContainer).addEventListener("resize",vt,!1)):(document.addEventListener("scroll",vt,!1),document.addEventListener("resize",vt,!1));let l=null;ro=Yu(s=>{i=!0,ne.scrollSmooth&&yt.disableTocAnimation(s),yt.updateToc(xr,s),l&&clearTimeout(l),l=setTimeout(()=>{yt.enableTocAnimation()},ne.scrollSmoothDuration),setTimeout(()=>{i=!1},ne.scrollSmoothDuration+100)},ne.throttleTimeout),ne.scrollContainer&&document.querySelector(ne.scrollContainer)?document.querySelector(ne.scrollContainer).addEventListener("click",ro,!1):document.addEventListener("click",ro,!1)}function Ad(){let e=BS(ne);e!==null&&(ne.skipRendering||e&&(e.innerHTML=""),ne.scrollContainer&&document.querySelector(ne.scrollContainer)?(document.querySelector(ne.scrollContainer).removeEventListener("scroll",vt,!1),document.querySelector(ne.scrollContainer).removeEventListener("resize",vt,!1),yt&&document.querySelector(ne.scrollContainer).removeEventListener("click",ro,!1)):(document.removeEventListener("scroll",vt,!1),document.removeEventListener("resize",vt,!1),yt&&document.removeEventListener("click",ro,!1)))}function qB(e){Ad(),MS(e||ne)}var YB=Object.prototype.hasOwnProperty;function XB(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)YB.call(n,o)&&(t[o]=n[o])}return t}function Yu(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function km(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function JB(e,t,r="auto"){switch(r){case"debounce":return km(e,t);case"throttle":return Yu(e,t);default:return t<334?km(e,t):Yu(e,t)}}function ZB(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function BS(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var QB={destroy:Ad,init:MS,refresh:qB},Nm=QB,ej=R.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),tj=R.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),rj=R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),nj=({headingId:e,title:t})=>typeof t=="string"||!t?g.createElement(rj,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):g.createElement("div",{id:e},t),oj=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{p.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&a.emit(HB,`#${f}`)}},...i},c=setTimeout(()=>Nm.init(u),100);return()=>{clearTimeout(c),Nm.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return g.createElement(ej,{className:l},t?null:g.createElement(tj,{"aria-labelledby":s},g.createElement(nj,{headingId:s,title:e}),g.createElement("div",{className:"toc-wrapper"})))},ij=e=>`anchor--${e}`,aj=({storyId:e,children:t})=>g.createElement("div",{id:ij(e),className:"sb-anchor"},t);const{filterArgTypes:rz}=__STORYBOOK_MODULE_PREVIEW_API__;var Dn=(e,t)=>p.useContext(Dt).resolveOf(e,t),lj=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),sj=e=>{if(e)return typeof e=="string"?e.includes("-")?lj(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function uj(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var cj=Object.create,jS=Object.defineProperty,dj=Object.getOwnPropertyDescriptor,HS=Object.getOwnPropertyNames,fj=Object.getPrototypeOf,pj=Object.prototype.hasOwnProperty,re=(e,t)=>function(){return t||(0,e[HS(e)[0]])((t={exports:{}}).exports,t),t.exports},hj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HS(t))!pj.call(e,o)&&o!==r&&jS(e,o,{get:()=>t[o],enumerable:!(n=dj(t,o))||n.enumerable});return e},Dd=(e,t,r)=>(r=e!=null?cj(fj(e)):{},hj(!e||!e.__esModule?jS(r,"default",{value:e,enumerable:!0}):r,e)),gj=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],mj=["detail"];function yj(e){let t=gj.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of mj.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var US=re({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),bj=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),vj=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Ej=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Sj=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),$j=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Rd=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),xj=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),wj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Cj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),_j=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Tj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Aj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Dj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Rj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),Oj=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Rj();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),Pj=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Od=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Pj();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Ij=re({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),KS=re({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),zS=re({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=KS();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),GS=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),WS=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=US();t.exports=r.getPrototypeOf||null}}),Fj=re({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var h=0;h<c.length;h+=1)d[h+u.length]=c[h];return d},l=function(u,c){for(var d=[],f=c,h=0;f<u.length;f+=1,h+=1)d[h]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),f,h=function(){if(this instanceof f){var E=c.apply(this,a(d,arguments));return Object(E)===E?E:this}return c.apply(u,a(d,arguments))},m=o(0,c.length-d.length),b=[],v=0;v<m;v++)b[v]="$"+v;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var y=function(){};y.prototype=c.prototype,f.prototype=new y,y.prototype=null}return f}}}),Da=re({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Fj();t.exports=Function.prototype.bind||r}}),Pd=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),VS=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),Lj=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),kj=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Da(),n=VS(),o=Pd(),i=Lj();t.exports=i||r.call(o,n)}}),qS=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Da(),n=Rd(),o=Pd(),i=kj();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),Nj=re({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=qS(),n=Od(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?(function(s){return l(s==null?s:a(s))}):!1}}),Mj=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=GS(),n=WS(),o=Nj();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),YS=re({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Da();t.exports=o.call(r,n)}}),Bj=re({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=US(),o=bj(),i=vj(),a=Ej(),l=Sj(),s=$j(),u=Rd(),c=xj(),d=wj(),f=Cj(),h=_j(),m=Tj(),b=Aj(),v=Dj(),y=Oj(),E=Function,S=function(X){try{return E('"use strict"; return ('+X+").constructor;")()}catch{}},$=Od(),C=Ij(),_=function(){throw new u},w=$?(function(){try{return arguments.callee,_}catch{try{return $(arguments,"callee").get}catch{return _}}})():_,T=zS()(),D=Mj(),P=WS(),x=GS(),k=VS(),L=Pd(),A={},O=typeof Uint8Array>"u"||!D?r:D(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":$,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&D?D(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":O,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":k,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":P,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":x};if(D)try{null.error}catch(X){F=D(D(X)),I["%Error.prototype%"]=F}var F,M=function X(z){var V;if(z==="%AsyncFunction%")V=S("async function () {}");else if(z==="%GeneratorFunction%")V=S("function* () {}");else if(z==="%AsyncGeneratorFunction%")V=S("async function* () {}");else if(z==="%AsyncGenerator%"){var Q=X("%AsyncGeneratorFunction%");Q&&(V=Q.prototype)}else if(z==="%AsyncIteratorPrototype%"){var le=X("%AsyncGenerator%");le&&D&&(V=D(le.prototype))}return I[z]=V,V},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Da(),K=YS(),H=N.call(L,Array.prototype.concat),G=N.call(k,Array.prototype.splice),U=N.call(L,String.prototype.replace),j=N.call(L,String.prototype.slice),W=N.call(L,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,Se=function(X){var z=j(X,0,1),V=j(X,-1);if(z==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&z!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return U(X,q,function(le,He,Y,Ue){Q[Q.length]=Y?U(Ue,J,"$1"):He||le}),Q},ke=function(X,z){var V=X,Q;if(K(B,V)&&(Q=B[V],V="%"+Q[0]+"%"),K(I,V)){var le=I[V];if(le===A&&(le=M(V)),typeof le>"u"&&!z)throw new u("intrinsic "+X+" exists, but is not available. Please file an issue!");return{alias:Q,name:V,value:le}}throw new s("intrinsic "+X+" does not exist!")};t.exports=function(X,z){if(typeof X!="string"||X.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,X)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=Se(X),Q=V.length>0?V[0]:"",le=ke("%"+Q+"%",z),He=le.name,Y=le.value,Ue=!1,gt=le.alias;gt&&(Q=gt[0],G(V,H([0,1],gt)));for(var Ze=1,mt=!0;Ze<V.length;Ze+=1){var _e=V[Ze],Bt=j(_e,0,1),jt=j(_e,-1);if((Bt==='"'||Bt==="'"||Bt==="`"||jt==='"'||jt==="'"||jt==="`")&&Bt!==jt)throw new s("property names with quotes must have matching quotes");if((_e==="constructor"||!mt)&&(Ue=!0),Q+="."+_e,He="%"+Q+"%",K(I,He))Y=I[He];else if(Y!=null){if(!(_e in Y)){if(!z)throw new u("base intrinsic for "+X+" exists, but the property is not available.");return}if($&&Ze+1>=V.length){var Ht=$(Y,_e);mt=!!Ht,mt&&"get"in Ht&&!("originalValue"in Ht.get)?Y=Ht.get:Y=Y[_e]}else mt=K(Y,_e),Y=Y[_e];mt&&!Ue&&(I[He]=Y)}}return Y}}}),Id=re({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=Bj(),n=qS(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),jj=re({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=KS();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),XS=re({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Id(),n=jj()(),o=YS(),i=Od(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(h){if(!h||typeof h!="object")return!1;var m=i(h,"lastIndex"),b=m&&o(m,"value");if(!b)return!1;try{l(h,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===f});var l,s,u,c,d,f;t.exports=a}}),Hj=re({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),Uj=re({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Id(),n=XS(),o=r("RegExp.prototype.exec"),i=Rd();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),Kj=re({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Id(),n=r("Object.prototype.toString"),o=zS()(),i=Uj();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),zj=Dd(XS()),Gj=Dd(Hj()),Wj=Dd(Kj());function Vj(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var qj=typeof global=="object"&&global&&global.Object===Object&&global,Yj=qj,Xj=typeof self=="object"&&self&&self.Object===Object&&self,Jj=Yj||Xj||Function("return this")(),Fd=Jj,Zj=Fd.Symbol,Sn=Zj,JS=Object.prototype,Qj=JS.hasOwnProperty,eH=JS.toString,zn=Sn?Sn.toStringTag:void 0;function tH(e){var t=Qj.call(e,zn),r=e[zn];try{e[zn]=void 0;var n=!0}catch{}var o=eH.call(e);return n&&(t?e[zn]=r:delete e[zn]),o}var rH=tH,nH=Object.prototype,oH=nH.toString;function iH(e){return oH.call(e)}var aH=iH,lH="[object Null]",sH="[object Undefined]",Mm=Sn?Sn.toStringTag:void 0;function uH(e){return e==null?e===void 0?sH:lH:Mm&&Mm in Object(e)?rH(e):aH(e)}var cH=uH,Bm=Sn?Sn.prototype:void 0;Bm&&Bm.toString;function dH(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ZS=dH,fH="[object AsyncFunction]",pH="[object Function]",hH="[object GeneratorFunction]",gH="[object Proxy]";function mH(e){if(!ZS(e))return!1;var t=cH(e);return t==pH||t==hH||t==fH||t==gH}var yH=mH,bH=Fd["__core-js_shared__"],js=bH,jm=(function(){var e=/[^.]+$/.exec(js&&js.keys&&js.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function vH(e){return!!jm&&jm in e}var EH=vH,SH=Function.prototype,$H=SH.toString;function xH(e){if(e!=null){try{return $H.call(e)}catch{}try{return e+""}catch{}}return""}var wH=xH,CH=/[\\^$.*+?()[\]{}|]/g,_H=/^\[object .+?Constructor\]$/,TH=Function.prototype,AH=Object.prototype,DH=TH.toString,RH=AH.hasOwnProperty,OH=RegExp("^"+DH.call(RH).replace(CH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PH(e){if(!ZS(e)||EH(e))return!1;var t=yH(e)?OH:_H;return t.test(wH(e))}var IH=PH;function FH(e,t){return e?.[t]}var LH=FH;function kH(e,t){var r=LH(e,t);return IH(r)?r:void 0}var QS=kH;function NH(e,t){return e===t||e!==e&&t!==t}var MH=NH,BH=QS(Object,"create"),mo=BH;function jH(){this.__data__=mo?mo(null):{},this.size=0}var HH=jH;function UH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var KH=UH,zH="__lodash_hash_undefined__",GH=Object.prototype,WH=GH.hasOwnProperty;function VH(e){var t=this.__data__;if(mo){var r=t[e];return r===zH?void 0:r}return WH.call(t,e)?t[e]:void 0}var qH=VH,YH=Object.prototype,XH=YH.hasOwnProperty;function JH(e){var t=this.__data__;return mo?t[e]!==void 0:XH.call(t,e)}var ZH=JH,QH="__lodash_hash_undefined__";function eU(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=mo&&t===void 0?QH:t,this}var tU=eU;function Rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Rn.prototype.clear=HH;Rn.prototype.delete=KH;Rn.prototype.get=qH;Rn.prototype.has=ZH;Rn.prototype.set=tU;var Hm=Rn;function rU(){this.__data__=[],this.size=0}var nU=rU;function oU(e,t){for(var r=e.length;r--;)if(MH(e[r][0],t))return r;return-1}var Ra=oU,iU=Array.prototype,aU=iU.splice;function lU(e){var t=this.__data__,r=Ra(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():aU.call(t,r,1),--this.size,!0}var sU=lU;function uU(e){var t=this.__data__,r=Ra(t,e);return r<0?void 0:t[r][1]}var cU=uU;function dU(e){return Ra(this.__data__,e)>-1}var fU=dU;function pU(e,t){var r=this.__data__,n=Ra(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var hU=pU;function On(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}On.prototype.clear=nU;On.prototype.delete=sU;On.prototype.get=cU;On.prototype.has=fU;On.prototype.set=hU;var gU=On,mU=QS(Fd,"Map"),yU=mU;function bU(){this.size=0,this.__data__={hash:new Hm,map:new(yU||gU),string:new Hm}}var vU=bU;function EU(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var SU=EU;function $U(e,t){var r=e.__data__;return SU(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Oa=$U;function xU(e){var t=Oa(this,e).delete(e);return this.size-=t?1:0,t}var wU=xU;function CU(e){return Oa(this,e).get(e)}var _U=CU;function TU(e){return Oa(this,e).has(e)}var AU=TU;function DU(e,t){var r=Oa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var RU=DU;function Pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pn.prototype.clear=vU;Pn.prototype.delete=wU;Pn.prototype.get=_U;Pn.prototype.has=AU;Pn.prototype.set=RU;var e$=Pn,OU="Expected a function";function Ld(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(OU);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ld.Cache||e$),r}Ld.Cache=e$;var PU=Ld,IU=500;function FU(e){var t=PU(e,function(n){return r.size===IU&&r.clear(),n}),r=t.cache;return t}var LU=FU,kU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NU=/\\(\\)?/g;LU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kU,function(r,n,o,i){t.push(o?i.replace(NU,"$1"):n||r)}),t});var MU=Vj,BU=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function t$(e){if(!MU(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=yj(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var jU=function(e){let t,r,n,o;return function(i,a){try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return BU.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,zj.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,Gj.default)(a))return;if((0,Wj.default)(a)){if(!e.allowSymbol)return;let u=Symbol.keyFor(a);return u!==void 0?`_gsymbol_${u}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let u=t.get(a);if(!u){let c={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((d,f)=>{try{d[f]=a[f]}catch{}return d},{})};return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}let s=t.get(a);if(!s){let u=Array.isArray(a)?a:t$(a);return o.push(i),n.unshift(u),t.set(a,JSON.stringify(o)),a!==u&&r.set(a,u),u}return`_duplicate_${s}`}catch{return}}},HU={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},UU=(e,t={})=>{let r={...HU,...t};return JSON.stringify(t$(e),jU(r),t.space)};function r$(e){return UU(e,{maxDepth:50})}var n$=p.createContext({sources:{}}),o$="--unknown--",KU=({children:e,channel:t})=>{let[r,n]=p.useState({});return p.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,f=u?r$(u):o$;n(h=>({...h,[s]:{...h[s],[f]:{code:c||"",format:d}}}))};return t.on(Kd,o),()=>t.off(Kd,o)},[]),g.createElement(n$.Provider,{value:{sources:r}},e)};function zU(e,t,r){let[n,o]=p.useState("Transforming..."),i=t?t?.(e,r):e;return p.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var GU=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[r$(t)]||o?.[o$]||{code:""}},WU=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let o=t.parameters??{},{__isArgsStory:i}=o,a=o.docs?.source||{},l=r||a.type||Fa.AUTO,s=l===Fa.DYNAMIC||l===Fa.AUTO&&e&&i?e:a.originalSource||"",u=n??a.transform,c=u?zU(s,u,t):s;return a.code!==void 0?a.code:c},VU=(e,t,r)=>{let{of:n}=e,o=p.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),i=o?t.getStoryContext(o):{},a=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,l=o?GU(o.id,a,r):null,s=WU({snippet:l?l.code:"",storyContext:{...i,args:a},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=o?.parameters?.docs?.source||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=l?.format??!0,{code:s,format:c,language:d,dark:f})},qU=e=>{let t=p.useContext(Dt),r=p.useContext(n$),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:i}=Dn(n||"story",["story"]),a=VU({...o,...n&&{of:n}},t,r),l=e.layout??i.parameters.layout??i.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??i.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??i.parameters.docs?.canvas?.additionalActions,c=e.sourceState??i.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??i.parameters.docs?.canvas?.className,f=e.story?.inline??i.parameters?.docs?.story?.inline??!1;return g.createElement(NS,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f},g.createElement(wB,{of:n||i.moduleExport,meta:e.meta,...e.story}))};const{filterArgTypes:Um}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:YU,STORY_ARGS_UPDATED:Km,UPDATE_STORY_ARGS:XU}=__STORYBOOK_MODULE_CORE_EVENTS__;var JU=(e,t)=>{let r=ZU(e,t);if(!r)throw new Error("No result when story was defined");return r},ZU=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=p.useState(r.args);p.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Km,s),()=>t.channel.off(Km,s)},[n,t.channel]);let a=p.useCallback(s=>t.channel.emit(XU,{storyId:n,updatedArgs:s}),[n,t.channel]),l=p.useCallback(s=>t.channel.emit(YU,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:zm}=__STORYBOOK_MODULE_CORE_EVENTS__;var QU=(e,t)=>{let r=t.getStoryContext(e),[n,o]=p.useState(r.globals);return p.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(zm,i),()=>t.channel.off(zm,i)},[t.channel]),[n]};const{Tag:eK}=__STORYBOOK_MODULE_PREVIEW_API__;var i$=()=>p.useContext(Dt).componentStories().find(e=>e.tags.includes(eK.AUTODOCS));function tK(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var rK=e=>{let{of:t}=e,r=p.useContext(Dt),n=i$(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let{parameters:i,argTypes:a,component:l,subcomponents:s}=o,u=i.docs?.controls||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[h,m,b]=JU(o,r),[v]=QU(o,r),y=Um(a,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(y).length>0||Object.keys(h).length>0?g.createElement(Vu,{rows:y,sort:f,args:h,globals:v,updateArgs:m,resetArgs:b}):null;let E=sj(l)||"Story",S=Object.fromEntries(Object.entries(s||{}).map(([C,_])=>[C,{rows:Um(tK(_,i),c,d),sort:f}])),$={[E]:{rows:y,sort:f},...S};return g.createElement(jB,{tabs:$,sort:f,args:h,globals:v,updateArgs:m,resetArgs:b})};const{NAVIGATE_URL:nK}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:a$}=globalThis,oK=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return g.createElement(Uc,null,t);let n=e&&e.split("-");return g.createElement(cS,{language:n&&n[1]||"text",format:!1,code:t,...r})};function kd(e,t){e.channel.emit(nK,t)}var Xu=nS.a,iK=({hash:e,children:t})=>{let r=p.useContext(Dt);return g.createElement(Xu,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);a$.getElementById(o)&&kd(r,e)}},t)},aK=e=>{let{href:t,target:r,children:n,...o}=e,i=p.useContext(Dt);return!t||r==="_blank"||/^https?:\/\//.test(t)?g.createElement(Xu,{...e}):t.startsWith("#")?g.createElement(iK,{hash:t},n):g.createElement(Xu,{href:t,onClick:a=>{a.button===0&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&(a.preventDefault(),kd(i,a.currentTarget.getAttribute("href")||""))},target:r,...o},n)},l$=["h1","h2","h3","h4","h5","h6"],lK=l$.reduce((e,t)=>({...e,[t]:R(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),sK=R.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),uK=({as:e,id:t,children:r,...n})=>{let o=p.useContext(Dt),i=lK[e],a=`#${t}`;return g.createElement(i,{id:t,...n},g.createElement(sK,{"aria-hidden":"true",href:a,tabIndex:-1,target:"_self",onClick:l=>{a$.getElementById(t)&&kd(o,a)}},g.createElement(mA,null)),r)},Nd=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return g.createElement(uK,{as:t,id:r,...o},n);let i=t,{as:a,...l}=e;return g.createElement(i,{...ge(l,t)})},cK=l$.reduce((e,t)=>({...e,[t]:r=>g.createElement(Nd,{as:t,...r})}),{}),dK=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(U$`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
692
+ This is often caused by not wrapping the child in a template string.
693
+
694
+ This is invalid:
695
+ <Markdown>
696
+ # Some heading
697
+ A paragraph
698
+ </Markdown>
699
+
700
+ Instead do:
701
+ <Markdown>
702
+ {\`
703
+ # Some heading
704
+ A paragraph
705
+ \`}
706
+ </Markdown>
707
+ `);return g.createElement(vS,{...e,options:{forceBlock:!0,overrides:{code:oK,a:aK,...cK,...e?.options?.overrides},...e?.options}})},fK=e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{let{parameters:t,component:r}=e.preparedMeta;return t.docs?.description?.component||t.docs?.extractComponentDescription?.(r,{component:r,parameters:t})||null}case"component":{let{component:t,projectAnnotations:{parameters:r}}=e;return r?.docs?.extractComponentDescription?.(t,{component:t,parameters:r})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},Ju=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=Dn(t||"meta"),n=fK(r);return n?g.createElement(dK,null,n):null},{document:pK,window:hK}=globalThis,gK=({context:e,theme:t,children:r})=>{let n;try{n=e.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{n=e?.projectAnnotations?.parameters?.docs?.toc}return p.useEffect(()=>{let o;try{if(o=new URL(hK.parent.location.toString()),o.hash){let i=pK.getElementById(decodeURIComponent(o.hash.substring(1)));i&&setTimeout(()=>{uj(i)},200)}}catch{}}),g.createElement(Dt.Provider,{value:e},g.createElement(KU,{channel:e.channel},g.createElement(Xm,{theme:H$(t)},g.createElement(EB,{toc:n?g.createElement(oj,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},mK=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,yK=Object.hasOwnProperty,bK=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=vK(e,t===!0),o=n;for(;yK.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function vK(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(mK,"").replace(/ /g,"-"))}var s$=new bK,EK=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return g.createElement(Kc,null,e);let n=s$.slug(e.toLowerCase());return g.createElement(Nd,{as:"h2",id:n,...r},e)},SK=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return g.createElement(zc,null,e);let r=s$.slug(e.toLowerCase());return g.createElement(Nd,{as:"h3",id:r},e)},u$=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:i}=Dn(e||"story",["story"]),a=i.parameters.docs?.canvas?.withToolbar??r;return g.createElement(aj,{storyId:o?`primary--${i.id}`:i.id},t&&g.createElement(g.Fragment,null,g.createElement(SK,null,i.name),g.createElement(Ju,{of:e})),g.createElement(qU,{of:e,withToolbar:a,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},$K=()=>{let e=i$();return e?g.createElement(u$,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};const{Tag:Gm}=__STORYBOOK_MODULE_PREVIEW_API__;var xK=R(EK)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),wK=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=p.useContext(Dt),i=r(),{stories:{filter:a}={filter:void 0}}=n.parameters?.docs||{};return a&&(i=i.filter(l=>a(l,o(l)))),i.some(l=>l.tags?.includes(Gm.AUTODOCS))&&(i=i.filter(l=>l.tags?.includes(Gm.AUTODOCS)&&!l.usesMount)),t||(i=i.slice(1)),!i||i.length===0?null:g.createElement(g.Fragment,null,typeof e=="string"?g.createElement(xK,null,e):e,i.map(l=>l&&g.createElement(u$,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))};const{deprecate:CK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var _K="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",TK=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=Dn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:i}=n?.parameters||{};o&&CK(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${_K}`);let a=r||i?.subtitle||o;return a?g.createElement(yB,{className:"sbdocs-subtitle sb-unstyled"},a):null},AK=/\s*\/\s*/,DK=e=>{let t=e.trim().split(AK);return t?.[t?.length-1]||e},RK=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=Dn(r||"meta",["meta"]).preparedMeta}catch(i){if(t&&i instanceof Error&&!i.message.includes("did you forget to use <Meta of={} />?"))throw i}let o=t||DK(n?.title||"");return o?g.createElement(mB,{className:"sbdocs-title sb-unstyled"},o):null},OK=()=>{let e=Dn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return g.createElement(g.Fragment,null,g.createElement(RK,null),g.createElement(TK,null),g.createElement(Ju,{of:"meta"}),r?g.createElement(Ju,{of:"story"}):null,g.createElement($K,null),g.createElement(rK,null),r?null:g.createElement(wK,null))};function nz({context:e,docsParameter:t}){let r=t.container||gK,n=t.page||OK;return g.createElement(r,{context:e,theme:t.theme},g.createElement(n,null))}const{composeConfigs:oz}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:iz}=__STORYBOOK_MODULE_CHANNELS__,{Preview:az,composeConfigs:lz}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:sz}=__STORYBOOK_MODULE_PREVIEW_API__;export{aK as A,xe as B,oK as C,nz as D,zr as F,cK as H,UK as M,bd as P,q0 as R,wB as S,lA as _,X0 as a,gc as b,aA as c,vo as d,Ct as g,ET as r};