@sis-cc/dotstatsuite-visions 14.4.1 → 15.0.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 (262) hide show
  1. package/dist/Dataflow/Dataflow.js +1 -1
  2. package/dist/DeleteAllChip/DeleteAllChip.js +1 -1
  3. package/dist/GroupedChips/GroupedChips.js +2 -2
  4. package/dist/TableLayout/TableLayout.js +10 -22
  5. package/dist/TableLayout/TableLayout.js.map +1 -1
  6. package/dist/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
  7. package/dist/assets/Alert-BahPnaEA.js +5 -0
  8. package/dist/assets/Alert.stories-BHPHG3Jv.js +3 -0
  9. package/dist/assets/ApiQueries.stories-Cm3FNTRK.js +1 -0
  10. package/dist/assets/ArrowForward-sklQJJL1.js +1 -0
  11. package/dist/assets/Asterisk-BMLA7sbs.js +1 -0
  12. package/dist/assets/AuthDialog.stories-HYEzrAoY.js +1 -0
  13. package/dist/assets/Breadcrumbs.stories-BOXD4dIR.js +1 -0
  14. package/dist/assets/Button-BkzVjK6l.js +1 -0
  15. package/dist/assets/Button-b3QRzebi.js +1 -0
  16. package/dist/assets/Button.stories-Hb6Cf8h9.js +20 -0
  17. package/dist/assets/ButtonBase-DhZMwPE_.js +74 -0
  18. package/dist/assets/CardContent-D1o8D4MM.js +1 -0
  19. package/dist/assets/ChartsConfig.stories-CcP95z9e.js +1 -0
  20. package/dist/assets/Checkbox-BExCj3Zn.js +1 -0
  21. package/dist/assets/Chips.stories-BVdmfGBU.js +1 -0
  22. package/dist/assets/CircularProgress-8uws3hxz.js +28 -0
  23. package/dist/assets/Close-Ca-XHoFo.js +1 -0
  24. package/dist/assets/Collapse-DeFEs_Rz.js +1 -0
  25. package/dist/assets/CollapseButtons.stories-YEGJ3u19.js +1 -0
  26. package/dist/assets/CollapsibleTree.stories-D13JKbMu.js +1 -0
  27. package/dist/assets/Color-6AOWCN3U-g9ydbrnJ.js +1 -0
  28. package/dist/assets/Contact.stories-CmleM-dR.js +1 -0
  29. package/dist/assets/Container-BCPjrSA7.js +1 -0
  30. package/dist/assets/Cross-Cri6NfUz.js +1 -0
  31. package/dist/assets/CustomChip-CIxIQNL9.js +1 -0
  32. package/dist/assets/DataEdit-4eRxHmEk.js +1 -0
  33. package/dist/assets/DataEdit.stories-CCP9iKtw.js +1 -0
  34. package/dist/assets/DataFooter.stories-qVVa4vYb.js +1 -0
  35. package/dist/assets/DataHeader.stories-BQiHHVoJ.js +3 -0
  36. package/dist/assets/Dataflow.stories-BJZEwPx1.js +3 -0
  37. package/dist/assets/DeleteAllChip.stories-CZ3OemLc.js +1 -0
  38. package/dist/assets/Dialog-COBT3hSc.js +1 -0
  39. package/dist/assets/Divider-B7sul2Rx.js +1 -0
  40. package/dist/assets/DocsRenderer-JROSPFPF-2EuJnos7.js +752 -0
  41. package/dist/assets/Done-DcUBAPE1.js +1 -0
  42. package/dist/assets/DynamicDrawer.stories-Dv1vlwoU.js +5 -0
  43. package/dist/assets/EmojiObjects-CKzZ5Ih6.js +1 -0
  44. package/dist/assets/ExpandLess-Cb78Kxnw.js +1 -0
  45. package/dist/assets/ExpandMore-DTogUJli.js +1 -0
  46. package/dist/assets/ExpansionPanel-e_6V_EWh.js +1 -0
  47. package/dist/assets/ExpansionPanel.stories-Bv2wUZpI.js +1 -0
  48. package/dist/assets/FormControlLabel-Bb15Ebo4.js +1 -0
  49. package/dist/assets/Grid-ybm6vQ70.js +1 -0
  50. package/dist/assets/GroupedChips.stories-DvKWty97.js +1 -0
  51. package/dist/assets/Grow-DTmQPbJ8.js +1 -0
  52. package/dist/assets/HierarchicalFilter.stories-BfI-7vgF.js +1 -0
  53. package/dist/assets/IconButton-VboFWChz.js +1 -0
  54. package/dist/assets/Info-5vSSn_L8.js +1 -0
  55. package/dist/assets/Input-rGp0lo2o.js +1 -0
  56. package/dist/assets/Input.stories-DSYh9DQJ.js +1 -0
  57. package/dist/assets/InputAdornment-CdjHoutR.js +1 -0
  58. package/dist/assets/InputNumber.stories-CvVXLS9F.js +1 -0
  59. package/dist/assets/KeyboardArrowUp-CJqtKlLa.js +1 -0
  60. package/dist/assets/LabelDivider.stories-DnGpkMfA.js +1 -0
  61. package/dist/assets/Lens-ayM3nQ4F.js +1 -0
  62. package/dist/assets/Link-ZT8vCTL_.js +1 -0
  63. package/dist/assets/ListContext-WtRDE57m.js +1 -0
  64. package/dist/assets/Loading.stories-B0i6A2bN.js +1 -0
  65. package/dist/assets/Logo.stories-iZtjK4xB.js +1 -0
  66. package/dist/assets/MenuItem-yuDxPIxK.js +1 -0
  67. package/dist/assets/Mode-CjQrAIoR.js +1 -0
  68. package/dist/assets/Mode.stories-Fg4X3zsm.js +1 -0
  69. package/dist/assets/NoData-DH5uF7wK.js +1 -0
  70. package/dist/assets/NoData.stories-DZMHsYur.js +1 -0
  71. package/dist/assets/Pagination.stories-RvC-DxeA.js +1 -0
  72. package/dist/assets/Paper-CZCZSMBQ.js +1 -0
  73. package/dist/assets/PeriodPicker.stories-BWHGe_fV.js +1 -0
  74. package/dist/assets/Popover-BK_iPZDP.js +1 -0
  75. package/dist/assets/RadioGroup-BXSfsTC4.js +1 -0
  76. package/dist/assets/Select-C6PymK1y.js +1 -0
  77. package/dist/assets/Select-abrb4A4y.js +1 -0
  78. package/dist/assets/Select.stories-tKPrQXFk.js +1 -0
  79. package/dist/assets/Share.stories-fU-XikOg.js +1 -0
  80. package/dist/assets/ShortUrls.stories-CZnHY4SV.js +1 -0
  81. package/dist/assets/SisccFooter.stories-D8ZAcmO4.js +1 -0
  82. package/dist/assets/Spotlight-DOEwTanm.js +1 -0
  83. package/dist/assets/Spotlight.stories-Q21oDkh-.js +1 -0
  84. package/dist/assets/SvgIcon-Dvaj6YGR.js +1 -0
  85. package/dist/assets/SwitchBase-Cr6pwfF7.js +1 -0
  86. package/dist/assets/T-Y1RunoT4.js +1 -0
  87. package/dist/assets/TableFooter.stories-Dbim0FX4.js +1 -0
  88. package/dist/assets/TableHeader.stories-D4l_N9uE.js +1 -0
  89. package/dist/assets/TableHtml5.stories-vE1cQW9O.js +6 -0
  90. package/dist/assets/TableLayout.stories-WSodxkci.js +5 -0
  91. package/dist/assets/TablePreview-DeG7DEQ7.js +1 -0
  92. package/dist/assets/TablePreview.stories-CWPDGmZJ.js +1 -0
  93. package/dist/assets/TableRow-BNA5BRpC.js +2 -0
  94. package/dist/assets/Tabs-BVkK2C35.js +1 -0
  95. package/dist/assets/Tag-BPffPm_y.js +1 -0
  96. package/dist/assets/Tag.stories-ahgqPj3B.js +1 -0
  97. package/dist/assets/TextField-EIydlugS.js +1 -0
  98. package/dist/assets/TextareaAutosize-K18CN-Th.js +2 -0
  99. package/dist/assets/ToggleButton-DBrNE6ll.js +1 -0
  100. package/dist/assets/ToggleButton.stories-BmgpJZ4V.js +1 -0
  101. package/dist/assets/Tooltip-D1R1sXI6.js +1 -0
  102. package/dist/assets/Tooltip-Q-HL_fsv.js +1 -0
  103. package/dist/assets/Tooltip.stories-eDKs-rYV.js +1 -0
  104. package/dist/assets/TransitionGroupContext-BCqGtjLe.js +1 -0
  105. package/dist/assets/Typography-raIQbVPd.js +1 -0
  106. package/dist/assets/UserRightForm.stories-BB1ESyB8.js +1 -0
  107. package/dist/assets/VerticalButton-CJUzjK4o.js +1 -0
  108. package/dist/assets/VerticalButton.stories-yuR7IUIF.js +1 -0
  109. package/dist/assets/VirtualizedTree-C5V4Kc3I.js +9 -0
  110. package/dist/assets/VirtualizedTree.stories-COexQ4lU.js +3 -0
  111. package/dist/assets/Warning-BTID1o13.js +7 -0
  112. package/dist/assets/WithTooltip-7X4HQR7L-CEX1gWpG.js +9 -0
  113. package/dist/assets/_cloneRegExp-xedU2qh5.js +1 -0
  114. package/dist/assets/_concat-CKc59O9E.js +1 -0
  115. package/dist/assets/_curry1-DZES3h6F.js +1 -0
  116. package/dist/assets/_curry3-B7ARCYrl.js +1 -0
  117. package/dist/assets/_isObject-6WN73bNV.js +1 -0
  118. package/dist/assets/_isString-qgG10cDy.js +1 -0
  119. package/dist/assets/_reduce-jCRHcH4g.js +1 -0
  120. package/dist/assets/_reduced-C8HAFxGt.js +1 -0
  121. package/dist/assets/addIndex-oJ56c-D4.js +1 -0
  122. package/dist/assets/all-pAWO0bOP.js +1 -0
  123. package/dist/assets/always-C_Ync45z.js +1 -0
  124. package/dist/assets/any-CfLUVj0h.js +1 -0
  125. package/dist/assets/anyPass-CYXEa91G.js +1 -0
  126. package/dist/assets/append-C8VlU-CL.js +1 -0
  127. package/dist/assets/assoc-Dg7iWEwB.js +1 -0
  128. package/dist/assets/axe-BqaH7f9C.js +20 -0
  129. package/dist/assets/client-B3aSWC9V.js +1 -0
  130. package/dist/assets/concat-BaCSP4bP.js +1 -0
  131. package/dist/assets/cond-D3AegoZw.js +1 -0
  132. package/dist/assets/createSvgIcon-BQj7h82W.js +1 -0
  133. package/dist/assets/curryN-CtlObJyB.js +1 -0
  134. package/dist/assets/difference-DDKgd6CJ.js +1 -0
  135. package/dist/assets/dissoc-BUYWJSj1.js +1 -0
  136. package/dist/assets/dividerClasses-8MxKAQz3.js +1 -0
  137. package/dist/assets/dropLast-ChWL3mCh.js +1 -0
  138. package/dist/assets/either-DkAOohkF.js +1 -0
  139. package/dist/assets/evolve-BatOtooD.js +1 -0
  140. package/dist/assets/find-DPVcla78.js +1 -0
  141. package/dist/assets/flip-DUR8w3Wu.js +1 -0
  142. package/dist/assets/forEach-CD9EYxEB.js +1 -0
  143. package/dist/assets/formControlState-CAP3NLpz.js +1 -0
  144. package/dist/assets/formatter-L2YTDE3Q-DurSE8zx.js +1 -0
  145. package/dist/assets/getThemeProps-DgmE1JNI.js +1 -0
  146. package/dist/assets/gt-BHd0ZsSb.js +1 -0
  147. package/dist/assets/gte-pCP_etx_.js +1 -0
  148. package/dist/assets/has-iQO9y9kE.js +1 -0
  149. package/dist/assets/head-qAhnf9Tw.js +1 -0
  150. package/dist/assets/identity-BtKjXVdB.js +1 -0
  151. package/dist/assets/ifElse-C4TX1NDU.js +1 -0
  152. package/dist/assets/iframe-H9RJD_jt.js +1162 -0
  153. package/dist/assets/index-BIT3w0N7.js +1 -0
  154. package/dist/assets/index-CFw5yPBL.js +1 -0
  155. package/dist/assets/index-DAQ7BYo-.js +1 -0
  156. package/dist/assets/index-Da_4nJ4V.js +1 -0
  157. package/dist/assets/index-DtooENrT.js +8 -0
  158. package/dist/assets/indexBy-BS-vJGsQ.js +1 -0
  159. package/dist/assets/init-D1ASY6bQ.js +1 -0
  160. package/dist/assets/innerJoin-Dosi0D91.js +1 -0
  161. package/dist/assets/intersperse-fqmJiggE.js +1 -0
  162. package/dist/assets/invoker-CzjdWzzC.js +1 -0
  163. package/dist/assets/is-D-2gRytX.js +1 -0
  164. package/dist/assets/isEmpty-BDVj1T2C.js +1 -0
  165. package/dist/assets/isMuiElement-BEn1gvXI.js +1 -0
  166. package/dist/assets/isNil-COslMkIS.js +1 -0
  167. package/dist/assets/join-D4-hXwt-.js +1 -0
  168. package/dist/assets/keys-MRUazFsh.js +1 -0
  169. package/dist/assets/last-BHjgfAsb.js +1 -0
  170. package/dist/assets/length-IXM-4ocd.js +1 -0
  171. package/dist/assets/lensIndex-DjJS719w.js +1 -0
  172. package/dist/assets/lensPath-BgbL4fVJ.js +1 -0
  173. package/dist/assets/lensProp-CbZVApjL.js +1 -0
  174. package/dist/assets/lift-DWG_WmTa.js +1 -0
  175. package/dist/assets/listItemTextClasses-Bb0m2K_C.js +1 -0
  176. package/dist/assets/lt-DLHCA0M9.js +1 -0
  177. package/dist/assets/lte-Bdgz3EA-.js +1 -0
  178. package/dist/assets/makeStyles-CD33PxwO.js +1 -0
  179. package/dist/assets/map-x4uThvOW.js +1 -0
  180. package/dist/assets/match-C0UqbTsC.js +1 -0
  181. package/dist/assets/matchers-JIUQ3HVY-N4FjKbka.js +14 -0
  182. package/dist/assets/max-kgon7wA-.js +1 -0
  183. package/dist/assets/min-CEC8M_KS.js +1 -0
  184. package/dist/assets/not-BYZhl9KK.js +1 -0
  185. package/dist/assets/of-jJbie-2W.js +1 -0
  186. package/dist/assets/omit-DlVJ9qIR.js +1 -0
  187. package/dist/assets/or-CjN1zdxp.js +1 -0
  188. package/dist/assets/over-f093ucEk.js +1 -0
  189. package/dist/assets/ownerDocument-DW-IO8s5.js +1 -0
  190. package/dist/assets/path-DwLTp3pU.js +1 -0
  191. package/dist/assets/pathOr-BmjUXfCm.js +1 -0
  192. package/dist/assets/pick-Zfnu-6mP.js +1 -0
  193. package/dist/assets/pipe-BtUDRn-R.js +1 -0
  194. package/dist/assets/pluck-DLxRFKfx.js +1 -0
  195. package/dist/assets/preload-helper-PPVm8Dsz.js +1 -0
  196. package/dist/assets/prepend-DsY2ekGJ.js +1 -0
  197. package/dist/assets/prop-D5hAeHhE.js +1 -0
  198. package/dist/assets/propEq-C5bw9tHb.js +1 -0
  199. package/dist/assets/propOr-C6krihMT.js +1 -0
  200. package/dist/assets/props-C7I1YqbB.js +1 -0
  201. package/dist/assets/react-18-CaF9HqVz.js +1 -0
  202. package/dist/assets/reverse-DjLk_5XO.js +1 -0
  203. package/dist/assets/set-8jiRfFh4.js +1 -0
  204. package/dist/assets/styled-DrorPOrE.js +1 -0
  205. package/dist/assets/subtract-tdm8zQ4O.js +1 -0
  206. package/dist/assets/syntaxhighlighter-YFXUGROL-D_-uxkyV.js +6 -0
  207. package/dist/assets/test-Bn_PxCzV.js +1 -0
  208. package/dist/assets/times-Jg5IS051.js +1 -0
  209. package/dist/assets/toString-CZqbYCtr.js +1 -0
  210. package/dist/assets/trim-DDjgxVjx.js +2 -0
  211. package/dist/assets/uniq-CZIvUTXI.js +1 -0
  212. package/dist/assets/unnest-CIXacqCq.js +1 -0
  213. package/dist/assets/useControlled-2Crdg_wq.js +1 -0
  214. package/dist/assets/useKeybordEscapeHandler-XV4USZbE.js +1 -0
  215. package/dist/assets/useMediaQuery-EL2udmJD.js +1 -0
  216. package/dist/assets/useSlotProps-DqSyzc0j.js +1 -0
  217. package/dist/assets/useTheme-rH_TrTQG.js +1 -0
  218. package/dist/assets/useThemeProps-huLGQ4l4.js +1 -0
  219. package/dist/assets/utils-BMkeX4GP.js +1 -0
  220. package/dist/assets/utils-C137tHnF.js +1 -0
  221. package/dist/assets/utils-CZc-gVZ4.js +1 -0
  222. package/dist/assets/values-CAwOW2HW.js +1 -0
  223. package/dist/assets/visuallyHidden-Dan1xhjv.js +1 -0
  224. package/dist/assets/when-DECS4LTO.js +1 -0
  225. package/dist/assets/with-input-ChRsbSCU.js +1 -0
  226. package/dist/assets/withSpotlight-DEVzorSt.js +1 -0
  227. package/dist/assets/without-6vRGZm_m.js +1 -0
  228. package/dist/assets/zip-QSYbJSwa.js +1 -0
  229. package/dist/chunks/{CustomChip-VonwGtLq.js → CustomChip-DwQGCNHM.js} +2 -2
  230. package/dist/chunks/{CustomChip-VonwGtLq.js.map → CustomChip-DwQGCNHM.js.map} +1 -1
  231. package/dist/chunks/{utils-BQc_rN44.js → utils-ovYpz27I.js} +2 -2
  232. package/dist/chunks/{utils-BQc_rN44.js.map → utils-ovYpz27I.js.map} +1 -1
  233. package/dist/favicon-wrapper.svg +46 -0
  234. package/dist/favicon.svg +1 -0
  235. package/dist/iframe.html +709 -0
  236. package/dist/index.html +161 -0
  237. package/dist/index.json +1 -0
  238. package/dist/manifests/components.html +4255 -0
  239. package/dist/manifests/components.json +2002 -0
  240. package/dist/nunito-sans-bold-italic.woff2 +0 -0
  241. package/dist/nunito-sans-bold.woff2 +0 -0
  242. package/dist/nunito-sans-italic.woff2 +0 -0
  243. package/dist/nunito-sans-regular.woff2 +0 -0
  244. package/dist/project.json +1 -0
  245. package/dist/sb-addons/a11y-3/manager-bundle.js +57 -0
  246. package/dist/sb-addons/chromatic-com-storybook-1/manager-bundle.js +352 -0
  247. package/dist/sb-addons/chromatic-com-storybook-1/manager-bundle.js.LEGAL.txt +31 -0
  248. package/dist/sb-addons/docs-4/manager-bundle.js +18 -0
  249. package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
  250. package/dist/sb-addons/vitest-2/manager-bundle.js +3 -0
  251. package/dist/sb-common-assets/favicon-wrapper.svg +46 -0
  252. package/dist/sb-common-assets/favicon.svg +1 -0
  253. package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  254. package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  255. package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  256. package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  257. package/dist/sb-manager/globals-runtime.js +78957 -0
  258. package/dist/sb-manager/globals.js +24 -0
  259. package/dist/sb-manager/manager-stores.js +23 -0
  260. package/dist/sb-manager/runtime.js +28253 -0
  261. package/dist/vite-inject-mocker-entry.js +2 -0
  262. package/package.json +14 -2
@@ -0,0 +1,752 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-YFXUGROL-D_-uxkyV.js","./iframe-H9RJD_jt.js","./preload-helper-PPVm8Dsz.js","./client-B3aSWC9V.js","./index-DtooENrT.js","./index-BIT3w0N7.js","./formatter-L2YTDE3Q-DurSE8zx.js","./WithTooltip-7X4HQR7L-CEX1gWpG.js","./Color-6AOWCN3U-g9ydbrnJ.js"])))=>i.map(i=>d[i]);
2
+ import{_ as yr}from"./preload-helper-PPVm8Dsz.js";import{r as p,n as vr,a4 as La,l as Ct,m as yt,R as h,j as ae,a5 as We,a6 as p_,a7 as h_,a8 as g_,a9 as m_,aa as mh,ab as Or,ac as Xt,ad as ki,g as y_,ae as Mc,af as Ni,ag as Wo,ah as b_,ai as Mi,Q as v_,aj as E_,ak as yh,al as S_,am as x_,an as vs}from"./iframe-H9RJD_jt.js";import{c as $_}from"./client-B3aSWC9V.js";import{r as Sl,R as Bb}from"./index-BIT3w0N7.js";var Bi=new Map;function w_(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var C_=({callback:e,children:t})=>{let r=p.useRef();return p.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var __=async(e,t,r)=>{let n=await O_(t,r);if(w_()){n.render(e);return}let{promise:o,resolve:a}=Promise.withResolvers();return n.render(p.createElement(C_,{callback:a},e)),o},T_=(e,t)=>{let r=Bi.get(e);r&&(r.unmount(),Bi.delete(e))},O_=async(e,t)=>{let r=Bi.get(e);return r||(r=$_.createRoot(e,t),Bi.set(e,r)),r},jt=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["control"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},xl=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["set"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},Ar=null;function Bc(e,t="assertive",r=7e3){Ar?Ar.announce(e,t,r):(Ar=new R_,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ar.announce(e,t,r):setTimeout(()=>{Ar?.isAttached()&&Ar?.announce(e,t,r)},100))}function A_(e){Ar&&Ar.clear(e)}var R_=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 a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.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 ze(){return ze=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},ze.apply(null,arguments)}function D_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vo(e,t)}function P_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jc(e)}function I_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jb=function(){return!!e})()}function F_(e,t,r){if(jb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Vo(o,r.prototype),o}function Hc(e){var t=typeof Map=="function"?new Map:void 0;return Hc=function(r){if(r===null||!I_(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 F_(r,arguments,jc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vo(n,r)},Hc(e)}var Jt=(function(e){P_(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,D_(n)}return t})(Hc(Error));function Es(e){return Math.round(e*255)}function L_(e,t,r){return Es(e)+","+Es(t)+","+Es(r)}function ji(e,t,r,n){if(n===void 0&&(n=L_),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var bh={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 k_(e){if(typeof e!="string")return e;var t=e.toLowerCase();return bh[t]?"#"+bh[t]:e}var N_=/^#[a-fA-F0-9]{6}$/,M_=/^#[a-fA-F0-9]{8}$/,B_=/^#[a-fA-F0-9]{3}$/,j_=/^#[a-fA-F0-9]{4}$/,Ss=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,H_=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,U_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,K_=/^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 Gn(e){if(typeof e!="string")throw new Jt(3);var t=k_(e);if(t.match(N_))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(M_)){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(B_))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(j_)){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=Ss.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=H_.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=U_.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+ji(l,s,u)+")",d=Ss.exec(c);if(!d)throw new Jt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=K_.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,v="rgb("+ji(g,m,y)+")",b=Ss.exec(v);if(!b)throw new Jt(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Jt(5)}function z_(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);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:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Mr(e){return z_(Gn(e))}var G_=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},Uc=G_;function Zr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function xs(e){return Zr(Math.round(e*255))}function W_(e,t,r){return Uc("#"+xs(e)+xs(t)+xs(r))}function Hb(e,t,r){return ji(e,t,r,W_)}function V_(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Hb(e.hue,e.saturation,e.lightness);throw new Jt(1)}function q_(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Hb(e.hue,e.saturation,e.lightness):"rgba("+ji(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Jt(2)}function Kc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Uc("#"+Zr(e)+Zr(t)+Zr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Uc("#"+Zr(e.red)+Zr(e.green)+Zr(e.blue));throw new Jt(6)}function pn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Gn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Kc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Kc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Jt(7)}var Y_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},X_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},J_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Z_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Br(e){if(typeof e!="object")throw new Jt(8);if(X_(e))return pn(e);if(Y_(e))return Kc(e);if(Z_(e))return q_(e);if(J_(e))return V_(e);throw new Jt(8)}function Ub(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Ub(e,t,n)}}function bt(e){return Ub(e,e.length,[])}function Q_(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{hue:r.hue+parseFloat(e)}))}bt(Q_);function so(e,t,r){return Math.max(e,Math.min(t,r))}function eT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{lightness:so(0,1,r.lightness-parseFloat(e))}))}var tT=bt(eT),Ye=tT;function rT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{saturation:so(0,1,r.saturation-parseFloat(e))}))}bt(rT);function nT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{lightness:so(0,1,r.lightness+parseFloat(e))}))}var oT=bt(nT),pi=oT;function aT(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Gn(t),o=ze({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Gn(r),i=ze({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.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,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return pn(g)}var iT=bt(aT),Kb=iT;function lT(e,t){if(t==="transparent")return t;var r=Gn(t),n=typeof r.alpha=="number"?r.alpha:1,o=ze({},r,{alpha:so(0,1,(n*100+parseFloat(e)*100)/100)});return pn(o)}var sT=bt(lT),uT=sT;function cT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{saturation:so(0,1,r.saturation+parseFloat(e))}))}bt(cT);function dT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{hue:parseFloat(e)}))}bt(dT);function fT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{lightness:parseFloat(e)}))}bt(fT);function pT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{saturation:parseFloat(e)}))}bt(pT);function hT(e,t){return t==="transparent"?t:Kb(parseFloat(e),"rgb(0, 0, 0)",t)}bt(hT);function gT(e,t){return t==="transparent"?t:Kb(parseFloat(e),"rgb(255, 255, 255)",t)}bt(gT);function mT(e,t){if(t==="transparent")return t;var r=Gn(t),n=typeof r.alpha=="number"?r.alpha:1,o=ze({},r,{alpha:so(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return pn(o)}var yT=bt(mT),br=yT,X={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},hr={app:"#F6F9FC",bar:X.lightest,content:X.lightest,preview:X.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Nt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},zc={light:{fgColor:{default:X.darkest,muted:X.dark,accent:X.secondary,inverse:X.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF",agentic:"#723aa6"},bgColor:{default:X.lightest,muted:hr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800",agentic:"#f5f0fa"},borderColor:{default:X.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)",agentic:"#e1d2ef"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933",agentic:"#b07fdc"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)",agentic:"rgba(114,58,166,0.15)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933",agentic:"rgba(114,58,166,0.35)"}}},bT={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:X.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},vT=bT,ET={base:"light",colorPrimary:X.primary,colorSecondary:X.secondary,appBg:hr.app,appContentBg:X.lightest,appHoverBg:"#DBECFF",appPreviewBg:X.lightest,appBorderColor:X.border,appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:X.darkest,textInverseColor:X.lightest,textMutedColor:X.dark,barTextColor:X.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:X.lightest,buttonBg:hr.app,buttonBorder:X.medium,booleanBg:X.mediumlight,booleanSelectedBg:X.lightest,inputBg:X.lightest,inputBorder:X.border,inputTextColor:X.darkest,inputBorderRadius:4},Gc=ET;const{logger:ST}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:xT}=__STORYBOOK_MODULE_GLOBAL__;var{window:$s}=xT,$T=e=>({color:e}),wT=e=>typeof e!="string"?(ST.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,CT=e=>!/(gradient|var|calc)/.test(e),_T=(e,t)=>e==="darken"?pn(`${Ye(1,t)}`,.95):e==="lighten"?pn(`${pi(1,t)}`,.95):t,TT=e=>t=>{if(!wT(t)||!CT(t))return t;try{return _T(e,t)}catch{return t}},uf=TT("lighten"),cf=()=>!$s||!$s.matchMedia?"light":$s.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",vh={light:Gc,dark:vT},hi=cf(),sn={...vh,normal:vh[hi]},zb=(e={base:hi},t)=>{let r={...sn[hi],...sn[e.base]||{},...e,base:sn[e.base]?e.base:hi};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},vn=vr({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof La=="function"&&La;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var g=o[u]={exports:{}};n[u][0].call(g.exports,function(m){var y=n[u][1][m];return i(y||m)},g,g.exports,r,n,o,a)}return o[u].exports}for(var l=typeof La=="function"&&La,s=0;s<a.length;s++)i(a[s]);return i})({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var c=new a(!1),d=[];return function(f){var g=function(){var m=c,y,v,b=arguments.length-1,E=Array(b+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(E[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,y=new a(!1),m.set(arguments[x],y),m=y}return S&&(m.has(arguments[b])?v=m.get(arguments[b]):S=!1),S||(v=f.apply(null,arguments),m.set(arguments[b],v)),u>0&&(E[b]={cacheItem:m,arg:arguments[b]},S?i(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=b+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,m,y;for(m=0;m<d;m++){for(g=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){g=!1;break}if(g)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}}),OT=vr({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x($){if(typeof $=="object"&&$!==null){var T=$.$$typeof;switch(T){case r:switch($=$.type,$){case u:case c:case o:case i:case a:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case y:case m:case l:return $;default:return T}}case n:return T}}}function C($){return x($)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=i,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function($){return C($)||x($)===u},e.isConcurrentMode=C,e.isContextConsumer=function($){return x($)===s},e.isContextProvider=function($){return x($)===l},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===r},e.isForwardRef=function($){return x($)===d},e.isFragment=function($){return x($)===o},e.isLazy=function($){return x($)===y},e.isMemo=function($){return x($)===m},e.isPortal=function($){return x($)===n},e.isProfiler=function($){return x($)===i},e.isStrictMode=function($){return x($)===a},e.isSuspense=function($){return x($)===f},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===o||$===c||$===i||$===a||$===f||$===g||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===m||$.$$typeof===l||$.$$typeof===s||$.$$typeof===d||$.$$typeof===b||$.$$typeof===E||$.$$typeof===S||$.$$typeof===v)},e.typeOf=x}}),AT=vr({"../../node_modules/react-is/index.js"(e,t){t.exports=OT()}}),Gb=vr({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=AT(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(v){return r.isMemo(v)?i:l[v.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(v,b,E){if(typeof b!="string"){if(m){var S=g(b);S&&S!==m&&y(v,S,E)}var x=c(b);d&&(x=x.concat(d(b)));for(var C=s(v),$=s(b),T=0;T<x.length;++T){var O=x[T];if(!o[O]&&!(E&&E[O])&&!($&&$[O])&&!(C&&C[O])){var L=f(b,O);try{u(v,O,L)}catch{}}}}return v}t.exports=y}});function RT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function DT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var PT=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(DT(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=RT(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),qe="-ms-",Hi="-moz-",pe="-webkit-",Wb="comm",df="rule",ff="decl",IT="@import",Vb="@keyframes",FT="@layer",LT=Math.abs,$l=String.fromCharCode,kT=Object.assign;function NT(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function qb(e){return e.trim()}function MT(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function Wc(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function qo(e,t,r){return e.slice(t,r)}function qt(e){return e.length}function pf(e){return e.length}function ka(e,t){return t.push(e),e}function BT(e,t){return e.map(t).join("")}var wl=1,Wn=1,Yb=0,ct=0,Re=0,uo="";function Cl(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:wl,column:Wn,length:i,return:""}}function $o(e,t){return kT(Cl("",null,null,"",null,null,0),e,{length:-e.length},t)}function jT(){return Re}function HT(){return Re=ct>0?je(uo,--ct):0,Wn--,Re===10&&(Wn=1,wl--),Re}function mt(){return Re=ct<Yb?je(uo,ct++):0,Wn++,Re===10&&(Wn=1,wl++),Re}function rr(){return je(uo,ct)}function gi(){return ct}function pa(e,t){return qo(uo,e,t)}function Yo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xb(e){return wl=Wn=1,Yb=qt(uo=e),ct=0,[]}function Jb(e){return uo="",e}function mi(e){return qb(pa(ct-1,Vc(e===91?e+2:e===40?e+1:e)))}function UT(e){for(;(Re=rr())&&Re<33;)mt();return Yo(e)>2||Yo(Re)>3?"":" "}function KT(e,t){for(;--t&&mt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return pa(e,gi()+(t<6&&rr()==32&&mt()==32))}function Vc(e){for(;mt();)switch(Re){case e:return ct;case 34:case 39:e!==34&&e!==39&&Vc(Re);break;case 40:e===41&&Vc(e);break;case 92:mt();break}return ct}function zT(e,t){for(;mt()&&e+Re!==57&&!(e+Re===84&&rr()===47););return"/*"+pa(t,ct-1)+"*"+$l(e===47?e:mt())}function GT(e){for(;!Yo(rr());)mt();return pa(e,ct)}function WT(e){return Jb(yi("",null,null,null,[""],e=Xb(e),0,[0],e))}function yi(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,g=0,m=0,y=1,v=1,b=1,E=0,S="",x=o,C=a,$=n,T=S;v;)switch(m=E,E=mt()){case 40:if(m!=108&&je(T,d-1)==58){Wc(T+=he(mi(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=mi(E);break;case 9:case 10:case 13:case 32:T+=UT(m);break;case 92:T+=KT(gi()-1,7);continue;case 47:switch(rr()){case 42:case 47:ka(VT(zT(mt(),gi()),t,r),s);break;default:T+="/"}break;case 123*y:l[u++]=qt(T)*b;case 125*y:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+c:b==-1&&(T=he(T,/\f/g,"")),g>0&&qt(T)-d&&ka(g>32?Sh(T+";",n,r,d-1):Sh(he(T," ","")+";",n,r,d-2),s);break;case 59:T+=";";default:if(ka($=Eh(T,t,r,u,c,o,l,S,x=[],C=[],d),a),E===123)if(c===0)yi(T,t,$,$,x,a,d,l,C);else switch(f===99&&je(T,3)===110?100:f){case 100:case 108:case 109:case 115:yi(e,$,$,n&&ka(Eh(e,$,$,0,0,o,l,S,o,x=[],d),C),o,C,d,l,n?x:C);break;default:yi(T,$,$,$,[""],C,0,l,C)}}u=c=g=0,y=b=1,S=T="",d=i;break;case 58:d=1+qt(T),g=m;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&HT()==125)continue}switch(T+=$l(E),E*y){case 38:b=c>0?1:(T+="\f",-1);break;case 44:l[u++]=(qt(T)-1)*b,b=1;break;case 64:rr()===45&&(T+=mi(mt())),f=rr(),c=d=qt(S=T+=GT(gi())),E++;break;case 45:m===45&&qt(T)==2&&(y=0)}}return a}function Eh(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],g=pf(f),m=0,y=0,v=0;m<n;++m)for(var b=0,E=qo(e,d+1,d=LT(y=i[m])),S=e;b<g;++b)(S=qb(y>0?f[b]+" "+E:he(E,/&\f/g,f[b])))&&(s[v++]=S);return Cl(e,t,r,o===0?df:l,s,u,c)}function VT(e,t,r){return Cl(e,t,r,Wb,$l(jT()),qo(e,2,-2),0)}function Sh(e,t,r,n){return Cl(e,t,r,ff,qo(e,0,n),qo(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=pf(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function qT(e,t,r,n){switch(e.type){case FT:if(e.children.length)break;case IT:case ff:return e.return=e.return||e.value;case Wb:return"";case Vb:return e.return=e.value+"{"+Hn(e.children,n)+"}";case df:e.value=e.props.join(",")}return qt(r=Hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function YT(e){var t=pf(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function XT(e){return function(t){t.root||(t=t.return)&&e(t)}}var xh=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function Zb(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var JT=function(e,t,r){for(var n=0,o=0;n=o,o=rr(),n===38&&o===12&&(t[r]=1),!Yo(o);)mt();return pa(e,ct)},ZT=function(e,t){var r=-1,n=44;do switch(Yo(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=JT(ct-1,t,r);break;case 2:e[r]+=mi(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=$l(n)}while(n=mt());return e},QT=function(e,t){return Jb(ZT(Xb(e),t))},$h=new WeakMap,eO=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!$h.get(r))&&!n){$h.set(e,!0);for(var o=[],a=QT(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},tO=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Qb(e,t){switch(NT(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Hi+e+qe+e+e;case 6828:case 4268:return pe+e+qe+e+e;case 6165:return pe+e+qe+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return pe+e+qe+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+qe+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+qe+he(e,"shrink","negative")+e;case 5292:return pe+e+qe+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+qe+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Hi+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wc(e,"stretch")?Qb(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,qt(e)-3-(~Wc(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(je(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+qe+e+e}return e}var rO=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ff:e.return=Qb(e.value,e.length);break;case Vb:return Hn([$o(e,{value:he(e.value,"@","@"+pe)})],n);case df:if(e.length)return BT(e.props,function(o){switch(MT(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([$o(e,{props:[he(o,/:(read-\w+)/,":"+Hi+"$1")]})],n);case"::placeholder":return Hn([$o(e,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),$o(e,{props:[he(o,/:(plac\w+)/,":"+Hi+"$1")]}),$o(e,{props:[he(o,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},nO=[rO],e1=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||nO,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;i.push(m)});var l,s=[eO,tO];{var u,c=[qT,XT(function(m){u.insert(m)})],d=YT(s.concat(n,c)),f=function(m){return Hn(WT(m),d)};l=function(m,y,v,b){u=v,f(m?m+"{"+y.styles+"}":y.styles),b&&(g.inserted[y.name]=!0)}}var g={key:t,sheet:new PT({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(i),g};yt(Gb());var oO=!0;function hf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var _l=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||oO===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Tl=function(e,t,r){_l(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function aO(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lO=/[A-Z]|^ms/g,sO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t1=function(e){return e.charCodeAt(1)===45},wh=function(e){return e!=null&&typeof e!="boolean"},ws=Zb(function(e){return t1(e)?e:e.replace(lO,"-$&").toLowerCase()}),Ch=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(sO,function(r,n,o){return Yt={name:n,styles:o,next:Yt},n})}return iO[e]!==1&&!t1(e)&&typeof t=="number"&&t!==0?t+"px":t};function Xo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Yt={name:o.name,styles:o.styles,next:Yt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Yt={name:i.name,styles:i.styles,next:Yt},i=i.next;var l=a.styles+";";return l}return uO(e,t,r)}case"function":{if(e!==void 0){var s=Yt,u=r(e);return Yt=s,Xo(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function uO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xo(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":wh(l)&&(n+=ws(a)+":"+Ch(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)wh(i[s])&&(n+=ws(a)+":"+Ch(a,i[s])+";");else{var u=Xo(e,t,i);switch(a){case"animation":case"animationName":{n+=ws(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var _h=/label:\s*([^\s;{]+)\s*(;|$)/g,Yt;function ha(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Yt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Xo(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Xo(r,t,e[l]),n){var s=a;o+=s[l]}_h.lastIndex=0;for(var u="",c;(c=_h.exec(o))!==null;)u+="-"+c[1];var d=aO(o)+u;return{name:d,styles:o,next:Yt}}var cO=function(e){return e()},r1=p.useInsertionEffect?p.useInsertionEffect:!1,gf=r1||cO,Th=r1||p.useLayoutEffect,n1=p.createContext(typeof HTMLElement<"u"?e1({key:"css"}):null);n1.Provider;var Ol=function(e){return p.forwardRef(function(t,r){var n=p.useContext(n1);return e(t,n,r)})},hn=p.createContext({}),mf=function(){return p.useContext(hn)},dO=function(e,t){if(typeof t=="function"){var r=t(e);return r}return ze({},e,t)},fO=xh(function(e){return xh(function(t){return dO(e,t)})}),yf=function(e){var t=p.useContext(hn);return e.theme!==t&&(t=fO(t)(e.theme)),p.createElement(hn.Provider,{value:t},e.children)},bf={}.hasOwnProperty,qc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pO=function(e,t){var r={};for(var n in t)bf.call(t,n)&&(r[n]=t[n]);return r[qc]=e,r},hO=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _l(t,r,n),gf(function(){return Tl(t,r,n)}),null},gO=Ol(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[qc],a=[n],i="";typeof e.className=="string"?i=hf(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=ha(a,void 0,p.useContext(hn));i+=t.key+"-"+l.name;var s={};for(var u in e)bf.call(e,u)&&u!=="css"&&u!==qc&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),p.createElement(p.Fragment,null,p.createElement(hO,{cache:t,serialized:l,isStringTag:typeof o=="string"}),p.createElement(o,s))}),mO=gO;yt(Gb());var Yc=function(e,t){var r=arguments;if(t==null||!bf.call(t,"css"))return p.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=mO,o[1]=pO(e,t);for(var a=2;a<n;a++)o[a]=r[a];return p.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yc||(Yc={}));Ol(function(e,t){var r=e.styles,n=ha([r],void 0,p.useContext(hn)),o=p.useRef();return Th(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),i.hydrate([s])),o.current=[i,l],function(){i.flush()}},[t]),Th(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(n.next!==void 0&&Tl(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Al(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ha(t)}function Be(){var e=Al.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var yO=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var l in a)a[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function bO(e,t,r){var n=[],o=hf(e,n,r);return n.length<2?r:o+t(n)}var vO=function(e){var t=e.cache,r=e.serializedArr;return gf(function(){for(var n=0;n<r.length;n++)Tl(t,r[n],!1)}),null};Ol(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=ha(s,t.registered);return r.push(c),_l(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return bO(t.registered,n,yO(s))},a={css:n,cx:o,theme:p.useContext(hn)},i=e.children(a);return p.createElement(p.Fragment,null,p.createElement(vO,{cache:t,serializedArr:r}),i)});var EO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rl=Zb(function(e){return EO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),SO=Rl,xO=function(e){return e!=="theme"},Oh=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?SO:xO},Ah=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},$O=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _l(t,r,n),gf(function(){return Tl(t,r,n)}),null},wO=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Ah(t,r,n),s=l||Oh(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,m=1;m<g;m++)d.push(c[m],f[m])}var y=Ol(function(v,b,E){var S=u&&v.as||o,x="",C=[],$=v;if(v.theme==null){$={};for(var T in v)$[T]=v[T];$.theme=p.useContext(hn)}typeof v.className=="string"?x=hf(b.registered,C,v.className):v.className!=null&&(x=v.className+" ");var O=ha(d.concat(C),b.registered,$);x+=b.key+"-"+O.name,i!==void 0&&(x+=" "+i);var L=u&&l===void 0?Oh(S):s,I={};for(var _ in v)u&&_==="as"||L(_)&&(I[_]=v[_]);return I.className=x,E&&(I.ref=E),p.createElement(p.Fragment,null,p.createElement($O,{cache:b,serialized:O,isStringTag:typeof S=="string"}),p.createElement(S,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(v,b){var E=e(v,ze({},r,b,{shouldForwardProp:Ah(y,b,!0)}));return E.apply(void 0,d)},y}},CO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],F=wO.bind(null);CO.forEach(function(e){F[e]=F(e)});var o1=yt(vn(),1),Jo={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},a1={position:"unset",width:"unset",height:"unset",padding:"unset",margin:"unset",overflow:"unset",whiteSpace:"unset",clip:"unset",clipPath:"unset",border:"unset"},i1=(0,o1.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,o1.default)(1)(({color:e,background:t,typography:r})=>{let n=i1({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":Jo,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var _O={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},TO=Be`
3
+ from {
4
+ transform: rotate(0deg);
5
+ }
6
+ to {
7
+ transform: rotate(360deg);
8
+ }
9
+ `,l1=Be`
10
+ 0%, 100% { opacity: 1; }
11
+ 50% { opacity: .4; }
12
+ `,OO=Be`
13
+ 0% { transform: translateY(1px); }
14
+ 25% { transform: translateY(0px); }
15
+ 50% { transform: translateY(-3px); }
16
+ 100% { transform: translateY(1px); }
17
+ `,AO=Be`
18
+ 0%, 100% { transform:translate3d(0,0,0); }
19
+ 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
20
+ 37.5%, 87.5% { transform: translate3d(4px,0,0); }
21
+ `,RO=Al`
22
+ animation: ${l1} 1.5s ease-in-out infinite;
23
+ color: transparent;
24
+ cursor: progress;
25
+ `,DO=Al`
26
+ transition: all 150ms ease-out;
27
+ transform: translate3d(0, 0, 0);
28
+
29
+ &:hover {
30
+ transform: translate3d(0, -2px, 0);
31
+ }
32
+
33
+ &:active {
34
+ transform: translate3d(0, 0, 0);
35
+ }
36
+ `,PO={rotate360:TO,glow:l1,float:OO,jiggle:AO,inlineGlow:RO,hoverable:DO},IO={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},FO={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},LO=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:$T(n)}),{}),kO=({colors:e,mono:t})=>{let r=LO(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},NO={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},MO={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},BO=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:X.tertiary,ancillary:X.ancillary,orange:X.orange,gold:X.gold,green:X.green,seafoam:X.seafoam,purple:X.purple,ultraviolet:X.ultraviolet,lightest:X.lightest,lighter:X.lighter,light:X.light,mediumlight:X.mediumlight,medium:X.medium,mediumdark:X.mediumdark,dark:X.dark,darker:X.darker,darkest:X.darkest,border:X.border,positive:X.positive,negative:X.negative,warning:X.warning,critical:X.critical,defaultText:e.textColor||X.darkest,inverseText:e.textInverseColor||X.lightest,positiveText:X.positiveText,negativeText:X.negativeText,warningText:X.warningText}),Ui=(e=sn[cf()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:a,appHoverBg:i,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:g,barTextColor:m,barHoverColor:y,barSelectedColor:v,barBg:b,buttonBg:E,buttonBorder:S,booleanBg:x,booleanSelectedBg:C,inputBg:$,inputBorder:T,inputTextColor:O,inputBorderRadius:L,brandTitle:I,brandUrl:_,brandImage:N,brandTarget:B,gridCellSize:w,...R}=e;return{...R,base:t,...t==="dark"?zc.dark:zc.light,color:BO(e),background:{app:o,bar:b,content:a,preview:l,gridCellSize:w||hr.gridCellSize,hoverable:i,positive:hr.positive,negative:hr.negative,warning:hr.warning,critical:hr.critical},typography:{fonts:{base:c,mono:d},weight:Nt.weight,size:Nt.size},animation:PO,easing:_O,input:{background:$,border:T,borderRadius:L,color:O},button:{background:E||$,border:S||T},boolean:{background:x||T,selectedBackground:C||$},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:m,barHoverColor:y||n,barSelectedColor:v||n,barBg:b,brand:{title:I,url:_,image:N||(I?null:void 0),target:B},code:kO({colors:t==="dark"?MO:NO,mono:d}),addonActionsTheme:{...t==="dark"?IO:FO,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Nt.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:uT(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Nt.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:jO}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var HO=e=>Object.keys(e).length===0,Cs=e=>e!=null&&typeof e=="object",UO=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),KO=()=>Object.create(null),s1=(e,t)=>e===t||!Cs(e)||!Cs(t)?{}:Object.keys(e).reduce((r,n)=>{if(UO(t,n)){let o=s1(e[n],t[n]);return Cs(o)&&HO(o)||(r[n]=o),r}return r[n]=void 0,r},KO()),zO=s1,u1=e=>{if(!e)return Ui(Gc);let t=zO(Gc,e);return Object.keys(t).length&&jO.warn(Ct`
37
+ Your theme is missing properties, you should update your theme!
38
+
39
+ theme-data missing:
40
+ `,t),Ui(e)},Ki="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const GO=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:yf,background:hr,color:X,convert:Ui,create:zb,createCache:e1,createReset:i1,css:Al,ensure:u1,getPreferredColorScheme:cf,ignoreSsrWarning:Ki,isPropValid:Rl,get jsx(){return Yc},keyframes:Be,lighten:uf,srOnlyStyles:Jo,srOnlyUnsetStyles:a1,styled:F,themes:sn,tokens:zc,typography:Nt,useTheme:mf},Symbol.toStringTag,{value:"Module"}));var WO=F.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),c1=F.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:"2px solid ButtonBorder",outlineOffset:"2px"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});c1.displayName="ActionButton";var VO=({actionItems:e,flexLayout:t=!1,...r})=>h.createElement(WO,{...r,$flexLayout:t},e.map(({title:n,ariaLabel:o,className:a,onClick:i,disabled:l},s)=>h.createElement(c1,{key:s,"aria-label":o,className:a,onClick:i,disabled:!!l},n)));function qO(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function d1(...e){return t=>e.forEach(r=>qO(r,t))}function En(...e){return p.useCallback(d1(...e),e)}var f1=p.forwardRef((e,t)=>{let{children:r,...n}=e,o=p.Children.toArray(r),a=o.find(XO);if(a){let i=a.props.children,l=o.map(s=>s===a?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:s);return ae.jsx(Xc,{...n,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,l):null})}return ae.jsx(Xc,{...n,ref:t,children:r})});f1.displayName="Slot";var Xc=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){let o=ZO(r);return p.cloneElement(r,{...JO(n,r.props),ref:t?d1(t,o):o})}return p.Children.count(r)>1?p.Children.only(null):null});Xc.displayName="SlotClone";var YO=({children:e})=>ae.jsx(ae.Fragment,{children:e});function XO(e){return p.isValidElement(e)&&e.type===YO}function JO(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ZO(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 QO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ga=QO.reduce((e,t)=>{let r=p.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?f1:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ae.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Jc=globalThis?.document?p.useLayoutEffect:()=>{};function eA(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var ma=e=>{let{present:t,children:r}=e,n=tA(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=En(n.ref,rA(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:a}):null};ma.displayName="Presence";function tA(e){let[t,r]=p.useState(),n=p.useRef({}),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[l,s]=eA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{let u=Na(n.current);a.current=l==="mounted"?u:"none"},[l]),Jc(()=>{let u=n.current,c=o.current;if(c!==e){let d=a.current,f=Na(u);e?s("MOUNT"):f==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Jc(()=>{if(t){let u=d=>{let f=Na(n.current).includes(d.animationName);d.target===t&&f&&Sl.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(a.current=Na(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 Na(e){return e?.animationName||"none"}function rA(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 nA(e,t=[]){let r=[];function n(a,i){let l=p.createContext(i),s=r.length;r=[...r,i];function u(d){let{scope:f,children:g,...m}=d,y=f?.[e][s]||l,v=p.useMemo(()=>m,Object.values(m));return ae.jsx(y.Provider,{value:v,children:g})}function c(d,f){let g=f?.[e][s]||l,m=p.useContext(g);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,c]}let o=()=>{let a=r.map(i=>p.createContext(i));return function(i){let l=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,oA(o,...t)]}function oA(...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 a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function nn(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}var aA=p.createContext(void 0);function iA(e){let t=p.useContext(aA);return e||t||"ltr"}function lA(e,[t,r]){return Math.min(r,Math.max(t,e))}function un(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function sA(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var vf="ScrollArea",[p1]=nA(vf),[uA,At]=p1(vf),h1=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=p.useState(null),[u,c]=p.useState(null),[d,f]=p.useState(null),[g,m]=p.useState(null),[y,v]=p.useState(null),[b,E]=p.useState(0),[S,x]=p.useState(0),[C,$]=p.useState(!1),[T,O]=p.useState(!1),L=En(t,_=>s(_)),I=iA(o);return ae.jsx(uA,{scope:r,type:n,dir:I,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:g,onScrollbarXChange:m,scrollbarXEnabled:C,onScrollbarXEnabledChange:$,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:T,onScrollbarYEnabledChange:O,onCornerWidthChange:E,onCornerHeightChange:x,children:ae.jsx(ga.div,{dir:I,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});h1.displayName=vf;var g1="ScrollAreaViewport",m1=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=At(g1,r),s=p.useRef(null),u=En(t,s,l.onViewportChange);return ae.jsxs(ae.Fragment,{children:[ae.jsx("style",{dangerouslySetInnerHTML:{__html:`
41
+ [data-radix-scroll-area-viewport] {
42
+ scrollbar-width: none;
43
+ -ms-overflow-style: none;
44
+ -webkit-overflow-scrolling: touch;
45
+ }
46
+ [data-radix-scroll-area-viewport]::-webkit-scrollbar {
47
+ display: none;
48
+ }
49
+ :where([data-radix-scroll-area-viewport]) {
50
+ display: flex;
51
+ flex-direction: column;
52
+ align-items: stretch;
53
+ }
54
+ :where([data-radix-scroll-area-content]) {
55
+ flex-grow: 1;
56
+ }
57
+ `},nonce:a}),ae.jsx(ga.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:vA({asChild:o,children:n},c=>ae.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});m1.displayName=g1;var nr="ScrollAreaScrollbar",y1=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=At(nr,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return p.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?ae.jsx(cA,{...n,ref:t,forceMount:r}):o.type==="scroll"?ae.jsx(dA,{...n,ref:t,forceMount:r}):o.type==="auto"?ae.jsx(b1,{...n,ref:t,forceMount:r}):o.type==="always"?ae.jsx(Ef,{...n,ref:t}):null});y1.displayName=nr;var cA=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=At(nr,e.__scopeScrollArea),[a,i]=p.useState(!1);return p.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!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]),ae.jsx(ma,{present:r||a,children:ae.jsx(b1,{"data-state":a?"visible":"hidden",...n,ref:t})})}),dA=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=At(nr,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Pl(()=>s("SCROLL_END"),100),[l,s]=sA("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=a?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let g=u[c];d!==g&&(s("SCROLL"),i()),d=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,a,s,i]),ae.jsx(ma,{present:r||l!=="hidden",children:ae.jsx(Ef,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:un(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:un(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),b1=p.forwardRef((e,t)=>{let r=At(nr,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=p.useState(!1),l=e.orientation==="horizontal",s=Pl(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:c)}},10);return Vn(r.viewport,s),Vn(r.content,s),ae.jsx(ma,{present:n||a,children:ae.jsx(Ef,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Ef=p.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=At(nr,e.__scopeScrollArea),a=p.useRef(null),i=p.useRef(0),[l,s]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=$1(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,g){return yA(f,i.current,l,g)}return r==="horizontal"?ae.jsx(fA,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollLeft,g=Rh(f,l,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?ae.jsx(pA,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollTop,g=Rh(f,l);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),fA=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=At(nr,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=En(t,s,a.onScrollbarXChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),ae.jsx(E1,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Dl(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),C1(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Gi(i.paddingLeft),paddingEnd:Gi(i.paddingRight)}})}})}),pA=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=At(nr,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=En(t,s,a.onScrollbarYChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),ae.jsx(E1,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Dl(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),C1(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Gi(i.paddingTop),paddingEnd:Gi(i.paddingBottom)}})}})}),[hA,v1]=p1(nr),E1=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,g=At(nr,r),[m,y]=p.useState(null),v=En(t,L=>y(L)),b=p.useRef(null),E=p.useRef(""),S=g.viewport,x=n.content-n.viewport,C=nn(c),$=nn(s),T=Pl(d,10);function O(L){if(b.current){let I=L.clientX-b.current.left,_=L.clientY-b.current.top;u({x:I,y:_})}}return p.useEffect(()=>{let L=I=>{let _=I.target;m?.contains(_)&&C(I,x)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[S,m,x,C]),p.useEffect($,[n,$]),Vn(m,T),Vn(g.content,T),ae.jsx(hA,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:nn(a),onThumbPointerUp:nn(i),onThumbPositionChange:$,onThumbPointerDown:nn(l),children:ae.jsx(ga.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:un(e.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),b.current=m.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),O(L))}),onPointerMove:un(e.onPointerMove,O),onPointerUp:un(e.onPointerUp,L=>{let I=L.target;I.hasPointerCapture(L.pointerId)&&I.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=E.current,g.viewport&&(g.viewport.style.scrollBehavior=""),b.current=null})})})}),zi="ScrollAreaThumb",S1=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=v1(zi,e.__scopeScrollArea);return ae.jsx(ma,{present:r||o.hasThumb,children:ae.jsx(gA,{ref:t,...n})})}),gA=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=At(zi,r),i=v1(zi,r),{onThumbPositionChange:l}=i,s=En(t,d=>i.onThumbChange(d)),u=p.useRef(),c=Pl(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{let d=a.viewport;if(d){let f=()=>{if(c(),!u.current){let g=bA(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,c,l]),ae.jsx(ga.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:un(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),g=d.clientX-f.left,m=d.clientY-f.top;i.onThumbPointerDown({x:g,y:m})}),onPointerUp:un(e.onPointerUp,i.onThumbPointerUp)})});S1.displayName=zi;var Sf="ScrollAreaCorner",x1=p.forwardRef((e,t)=>{let r=At(Sf,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?ae.jsx(mA,{...e,ref:t}):null});x1.displayName=Sf;var mA=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=At(Sf,r),[a,i]=p.useState(0),[l,s]=p.useState(0),u=!!(a&&l);return Vn(o.scrollbarX,()=>{let c=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(c),s(c)}),Vn(o.scrollbarY,()=>{let c=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(c),i(c)}),u?ae.jsx(ga.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Gi(e){return e?parseInt(e,10):0}function $1(e,t){let r=e/t;return isNaN(r)?0:r}function Dl(e){let t=$1(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function yA(e,t,r,n="ltr"){let o=Dl(r),a=o/2,i=t||a,l=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return w1([s,u],d)(e)}function Rh(e,t,r="ltr"){let n=Dl(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-n,s=r==="ltr"?[0,i]:[i*-1,0],u=lA(e,s);return w1([0,i],[0,l])(u)}function w1(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 C1(e,t){return e>0&&e<t}var bA=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function Pl(e,t){let r=nn(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 Vn(e,t){let r=nn(t);Jc(()=>{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 vA(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 EA=h1,SA=m1,xA=y1,$A=S1,wA=x1,CA=F(EA)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),_A=F(SA)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),Dh=F(xA)(({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}})),Ph=F($A)(({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%"}})),xf=p.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:a=0,className:i,focusable:l=!1},s)=>h.createElement(CA,{scrollbarsize:o,offset:n,className:i},h.createElement(_A,{ref:s,style:{scrollPadding:a},tabIndex:l?0:void 0,focusable:l},e),t&&h.createElement(Dh,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(Ph,null)),r&&h.createElement(Dh,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(Ph,null)),t&&r&&h.createElement(wA,null)));xf.displayName="ScrollArea";function TA({children:e="Copy",childrenOnCopy:t="Copied!",content:r,onCopy:n,ariaLabel:o=!1,ariaLabelOnCopy:a=!1,duration:i=3e3}){let[l,s]=p.useState(!1),u=p.useRef(null);p.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);let c=p.useCallback(d=>{u.current&&clearTimeout(u.current);let f=typeof a=="string"?a:"Copied to clipboard";navigator.clipboard?.writeText(r).then(()=>{n?.(d),s(!0),Bc(f,"polite"),u.current=setTimeout(()=>{s(!1),A_("polite"),u.current=null},i)})},[r,n,a,i]);return{children:l?t:e,buttonProps:p.useMemo(()=>({onClick:c,ariaLabel:l?a:o}),[c,l,a,o])}}function OA(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}function AA(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var RA=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}))),_1=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.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",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:"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}))),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",{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}))),IA=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}))),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",{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}))),LA=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}))),kA=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})));function Ih({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function Fh(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 Il=class T1 extends Error{constructor(t){super(T1.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),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 Ih({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 a;return t===!0?a=`https://storybook.js.org/error/${Ih({code:r,category:n})}?ref=error`:typeof t=="string"?a=Fh(t):Array.isArray(t)&&(a=`
58
+ ${t.map(i=>` - ${Fh(i)}`).join(`
59
+ `)}`),`${o}${a!=null?`
60
+
61
+ More info: ${a}
62
+ `:""}`}},NA=class extends Il{constructor(t){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,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}},MA=vr({"../../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}});yt(MA(),1);var BA=class extends Il{constructor(t){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,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}},jA=class extends Il{constructor(e){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,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}},HA=class extends Il{constructor(e){super({name:"UniversalStoreFollowerTimeoutError",category:"MANAGER_UNIVERSAL-STORE",code:1,message:`Timed out waiting for leader state for UniversalStore follower with id: '${e}'. Ensure a leader with the same id exists and is reachable before creating a follower.`})}},O1="status-value:",UA=["status-value:pending","status-value:success","status-value:new","status-value:modified","status-value:affected","status-value:reviewing","status-value:warning","status-value:error","status-value:unknown"],KA=e=>{if(e==="related")return"status-value:affected";let t=`${O1}${e}`;return UA.includes(t)?t:void 0},Lh=e=>e==="status-value:affected"?"related":e.slice(O1.length),zA={id:"storybook/status",leader:!0,initialState:{}},_s={SELECT:"select"};function GA(e){let t={};for(let r of Object.values(e))for(let n of Object.values(r))t[n.value]=(t[n.value]??0)+1;return t}function WA({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(a){e.setState(i=>{let l={...i};for(let s of a){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(a){return e.onStateChange((i,l)=>{a(i,l)})},onSelect(a){return e.subscribe(_s.SELECT,i=>{a(i.payload)})},selectStatuses:a=>{e.send({type:_s.SELECT,payload:a})},unset(a){if(!a){e.setState({});return}e.setState(i=>{let l={...i};for(let s of a)delete l[s];return l})},typeId:void 0},o=a=>({getAll:n.getAll,set(i){e.setState(l=>{let s={...l};for(let u of i){let{storyId:c}=u;if(u.typeId!==a)switch(r){case"server":throw new BA({status:u,typeId:a});case"manager":throw new jA({status:u,typeId:a});default:throw new NA({status:u,typeId:a})}s[c]={...s[c]??{},[a]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe(_s.SELECT,l=>{l.payload.some(s=>s.typeId===a)&&i(l.payload)})},unset(i){e.setState(l=>{let s={...l};for(let u in s)if(s[u]?.[a]&&(!i||i?.includes(u))){let{[a]:c,...d}=s[u];s[u]=d}return s})},typeId:a});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:a=>t(e,a)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var VA="collection",A1=e=>e==="/review/"||e==="/review",qA=(e,t)=>!!e&&e.startsWith("/story/")&&t?.[VA]!==void 0,R1=(e,t)=>!!e&&(A1(e)||e.startsWith("/review/")||qA(e,t)),kh=new Map,YA="UNIVERSAL_STORE:",St={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Qr=class Q{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 a=typeof n=="function",i=a?"*":n,l=a?n:o;if(this.debug("subscribe",{eventType:i,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(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(l),()=>{this.debug("unsubscribe",{eventType:i,listener:l}),this.listeners.has(i)&&(this.listeners.get(i).delete(l),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==Q.Status.READY)throw new TypeError(Ct`Cannot send event before store is ready. You can get the current status with store.status,
63
+ or await store.readyPromise to wait for the store to be ready before sending events.
64
+ ${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,!Q.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Q.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Q.ActorType.LEADER:Q.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${YA}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Q.ActorType.LEADER)this.syncing={state:St.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,l)=>{n=()=>{this.syncing.state===St.PENDING&&(this.syncing.state=St.RESOLVED,i())},o=s=>{this.syncing.state===St.PENDING&&(this.syncing.state=St.REJECTED,l(s))}});this.syncing={state:St.PENDING,promise:a,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??Q.preparation.channel,this.environment=r?.environment??Q.preparation.environment,this.channel&&this.environment?(r||Q.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Q.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=i=>{o(i)},r=(...i)=>{a(i)}});Q.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Q.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return Q.Status.UNPREPARED;switch(this.syncing?.state){case St.PENDING:case void 0:return Q.Status.SYNCING;case St.REJECTED:return Q.Status.ERROR;case St.RESOLVED:default:return Q.Status.READY}}untilReady(){let t=this.channel&&this.environment?Promise.resolve():Q.preparation.promise;return Promise.all([t,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(Ct`[UniversalStore]
65
+ create`,{options:t});let r=kh.get(t.id);if(r)return console.warn(Ct`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
66
+ You should reuse the existing instance instead of trying to create a new one.`),r;Q.isInternalConstructing=!0;let n=new Q(t);return kh.set(t.id,n),n}static __prepare(t,r){Q.preparation.channel=t,Q.preparation.environment=r,Q.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!==Q.Status.READY)throw new TypeError(Ct`Cannot set state before store is ready. You can get the current status with store.status,
67
+ or await store.readyPromise to wait for the store to be ready before sending events.
68
+ ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:Q.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(Q.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===Q.ActorType.LEADER?this.emitToChannel({type:Q.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Q.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Q.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new HA(this.id))},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(a=>a(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===St.PENDING&&r.type!==Q.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Q.ActorType.LEADER){let o=!0;switch(r.type){case Q.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let a={type:Q.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor}),this.emitToListeners(a,{actor:this.actor});break;case Q.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=St.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Ct`Detected multiple UniversalStore leaders created with the same id "${this.id}".
69
+ Only one leader can exists at a time, your stores are now in an invalid state.
70
+ Leaders detected:
71
+ this: ${JSON.stringify(this.actor,null,2)}
72
+ 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===Q.ActorType.FOLLOWER)switch(r.type){case Q.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==St.PENDING)break;this.syncing.resolve?.();let o={type:Q.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}r.type===Q.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Ct`[UniversalStore::${this.id}::${this.environment??Q.Environment.UNKNOWN}]
73
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Q.preparation.reject(new Error("reset")),Q.setupPreparationPromise(),Q.isInternalConstructing=!1}};Qr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Qr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Qr.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"},Qr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Qr.isInternalConstructing=!1,Qr.setupPreparationPromise();var $f=Qr,XA=Object.create,D1=Object.defineProperty,JA=Object.getOwnPropertyDescriptor,P1=Object.getOwnPropertyNames,ZA=Object.getPrototypeOf,QA=Object.prototype.hasOwnProperty,re=(e,t)=>function(){return t||(0,e[P1(e)[0]])((t={exports:{}}).exports,t),t.exports},e5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of P1(t))!QA.call(e,o)&&o!==r&&D1(e,o,{get:()=>t[o],enumerable:!(n=JA(t,o))||n.enumerable});return e},wf=(e,t,r)=>(r=e!=null?XA(ZA(e)):{},e5(!e||!e.__esModule?D1(r,"default",{value:e,enumerable:!0}):r,e)),t5=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],r5=["detail"];function n5(e){let t=t5.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of r5.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var I1=re({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),o5=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),a5=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),i5=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),l5=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),s5=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Cf=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),u5=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),c5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),d5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),f5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),p5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),h5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),g5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),m5=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}}}),y5=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=m5();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),b5=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),_f=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=b5();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),v5=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}}),F1=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 a=42;r[n]=a;for(var i 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!==a||s.enumerable!==!0)return!1}return!0}}}),L1=re({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=F1();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),k1=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}}),N1=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=I1();t.exports=r.getPrototypeOf||null}}),E5=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,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=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)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,g=function(){if(this instanceof f){var E=c.apply(this,i(d,arguments));return Object(E)===E?E:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],v=0;v<m;v++)y[v]="$"+v;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),Fl=re({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=E5();t.exports=Function.prototype.bind||r}}),Tf=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}}),M1=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}}),S5=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}}),x5=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Fl(),n=M1(),o=Tf(),a=S5();t.exports=a||r.call(o,n)}}),B1=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Fl(),n=Cf(),o=Tf(),a=x5();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),$5=re({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=B1(),n=_f(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),w5=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=k1(),n=N1(),o=$5();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),j1=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=Fl();t.exports=o.call(r,n)}}),C5=re({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=I1(),o=o5(),a=a5(),i=i5(),l=l5(),s=s5(),u=Cf(),c=u5(),d=c5(),f=d5(),g=f5(),m=p5(),y=h5(),v=g5(),b=y5(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=_f(),C=v5(),$=function(){throw new u},T=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,O=L1()(),L=w5(),I=N1(),_=k1(),N=M1(),B=Tf(),w={},R=typeof Uint8Array>"u"||!L?r:L(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%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%":a,"%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%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!L?r:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&L?L(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":R,"%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%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(L)try{null.error}catch(Z){A=L(L(Z)),P["%Error.prototype%"]=A}var A,D=function Z(V){var Y;if(V==="%AsyncFunction%")Y=S("async function () {}");else if(V==="%GeneratorFunction%")Y=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")Y=S("async function* () {}");else if(V==="%AsyncGenerator%"){var ee=Z("%AsyncGeneratorFunction%");ee&&(Y=ee.prototype)}else if(V==="%AsyncIteratorPrototype%"){var se=Z("%AsyncGenerator%");se&&L&&(Y=L(se.prototype))}return P[V]=Y,Y},M={__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"]},k=Fl(),K=j1(),j=k.call(B,Array.prototype.concat),z=k.call(N,Array.prototype.splice),U=k.call(B,String.prototype.replace),H=k.call(B,String.prototype.slice),G=k.call(B,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,ge=function(Z){var V=H(Z,0,1),Y=H(Z,-1);if(V==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ee=[];return U(Z,W,function(se,et,J,tt){ee[ee.length]=J?U(tt,q,"$1"):et||se}),ee},Ne=function(Z,V){var Y=Z,ee;if(K(M,Y)&&(ee=M[Y],Y="%"+ee[0]+"%"),K(P,Y)){var se=P[Y];if(se===w&&(se=D(Y)),typeof se>"u"&&!V)throw new u("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:ee,name:Y,value:se}}throw new s("intrinsic "+Z+" does not exist!")};t.exports=function(Z,V){if(typeof Z!="string"||Z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new u('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ge(Z),ee=Y.length>0?Y[0]:"",se=Ne("%"+ee+"%",V),et=se.name,J=se.value,tt=!1,Rt=se.alias;Rt&&(ee=Rt[0],z(Y,j([0,1],Rt)));for(var pt=1,Dt=!0;pt<Y.length;pt+=1){var Pe=Y[pt],ar=H(Pe,0,1),ir=H(Pe,-1);if((ar==='"'||ar==="'"||ar==="`"||ir==='"'||ir==="'"||ir==="`")&&ar!==ir)throw new s("property names with quotes must have matching quotes");if((Pe==="constructor"||!Dt)&&(tt=!0),ee+="."+Pe,et="%"+ee+"%",K(P,et))J=P[et];else if(J!=null){if(!(Pe in J)){if(!V)throw new u("base intrinsic for "+Z+" exists, but the property is not available.");return}if(x&&pt+1>=Y.length){var lr=x(J,Pe);Dt=!!lr,Dt&&"get"in lr&&!("originalValue"in lr.get)?J=lr.get:J=J[Pe]}else Dt=K(J,Pe),J=J[Pe];Dt&&!tt&&(P[et]=J)}}return J}}}),Of=re({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=C5(),n=B1(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),_5=re({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=F1();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),H1=re({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Of(),n=_5()(),o=j1(),a=_f(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var m=a(g,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(g,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),T5=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 a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),O5=re({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Of(),n=H1(),o=r("RegExp.prototype.exec"),a=Cf();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),A5=re({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Of(),n=r("Object.prototype.toString"),o=L1()(),a=O5();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(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 i,l,s}}),R5=wf(H1()),D5=wf(T5()),P5=wf(A5());function I5(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var F5=typeof global=="object"&&global&&global.Object===Object&&global,L5=F5,k5=typeof self=="object"&&self&&self.Object===Object&&self,N5=L5||k5||Function("return this")(),Af=N5,M5=Af.Symbol,qn=M5,U1=Object.prototype,B5=U1.hasOwnProperty,j5=U1.toString,wo=qn?qn.toStringTag:void 0;function H5(e){var t=B5.call(e,wo),r=e[wo];try{e[wo]=void 0;var n=!0}catch{}var o=j5.call(e);return n&&(t?e[wo]=r:delete e[wo]),o}var U5=H5,K5=Object.prototype,z5=K5.toString;function G5(e){return z5.call(e)}var W5=G5,V5="[object Null]",q5="[object Undefined]",Nh=qn?qn.toStringTag:void 0;function Y5(e){return e==null?e===void 0?q5:V5:Nh&&Nh in Object(e)?U5(e):W5(e)}var K1=Y5;function X5(e){return e!=null&&typeof e=="object"}var J5=X5,Z5="[object Symbol]";function Q5(e){return typeof e=="symbol"||J5(e)&&K1(e)==Z5}var Rf=Q5;function eR(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 tR=eR,rR=Array.isArray,Df=rR,Mh=qn?qn.prototype:void 0,Bh=Mh?Mh.toString:void 0;function z1(e){if(typeof e=="string")return e;if(Df(e))return tR(e,z1)+"";if(Rf(e))return Bh?Bh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var nR=z1;function oR(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var G1=oR,aR="[object AsyncFunction]",iR="[object Function]",lR="[object GeneratorFunction]",sR="[object Proxy]";function uR(e){if(!G1(e))return!1;var t=K1(e);return t==iR||t==lR||t==aR||t==sR}var cR=uR,dR=Af["__core-js_shared__"],Ts=dR,jh=(function(){var e=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function fR(e){return!!jh&&jh in e}var pR=fR,hR=Function.prototype,gR=hR.toString;function mR(e){if(e!=null){try{return gR.call(e)}catch{}try{return e+""}catch{}}return""}var yR=mR,bR=/[\\^$.*+?()[\]{}|]/g,vR=/^\[object .+?Constructor\]$/,ER=Function.prototype,SR=Object.prototype,xR=ER.toString,$R=SR.hasOwnProperty,wR=RegExp("^"+xR.call($R).replace(bR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function CR(e){if(!G1(e)||pR(e))return!1;var t=cR(e)?wR:vR;return t.test(yR(e))}var _R=CR;function TR(e,t){return e?.[t]}var OR=TR;function AR(e,t){var r=OR(e,t);return _R(r)?r:void 0}var W1=AR;function RR(e,t){return e===t||e!==e&&t!==t}var DR=RR,PR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IR=/^\w*$/;function FR(e,t){if(Df(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Rf(e)?!0:IR.test(e)||!PR.test(e)||t!=null&&e in Object(t)}var LR=FR,kR=W1(Object,"create"),Zo=kR;function NR(){this.__data__=Zo?Zo(null):{},this.size=0}var MR=NR;function BR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jR=BR,HR="__lodash_hash_undefined__",UR=Object.prototype,KR=UR.hasOwnProperty;function zR(e){var t=this.__data__;if(Zo){var r=t[e];return r===HR?void 0:r}return KR.call(t,e)?t[e]:void 0}var GR=zR,WR=Object.prototype,VR=WR.hasOwnProperty;function qR(e){var t=this.__data__;return Zo?t[e]!==void 0:VR.call(t,e)}var YR=qR,XR="__lodash_hash_undefined__";function JR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zo&&t===void 0?XR:t,this}var ZR=JR;function co(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])}}co.prototype.clear=MR;co.prototype.delete=jR;co.prototype.get=GR;co.prototype.has=YR;co.prototype.set=ZR;var Hh=co;function QR(){this.__data__=[],this.size=0}var eD=QR;function tD(e,t){for(var r=e.length;r--;)if(DR(e[r][0],t))return r;return-1}var Ll=tD,rD=Array.prototype,nD=rD.splice;function oD(e){var t=this.__data__,r=Ll(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():nD.call(t,r,1),--this.size,!0}var aD=oD;function iD(e){var t=this.__data__,r=Ll(t,e);return r<0?void 0:t[r][1]}var lD=iD;function sD(e){return Ll(this.__data__,e)>-1}var uD=sD;function cD(e,t){var r=this.__data__,n=Ll(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var dD=cD;function fo(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])}}fo.prototype.clear=eD;fo.prototype.delete=aD;fo.prototype.get=lD;fo.prototype.has=uD;fo.prototype.set=dD;var fD=fo,pD=W1(Af,"Map"),hD=pD;function gD(){this.size=0,this.__data__={hash:new Hh,map:new(hD||fD),string:new Hh}}var mD=gD;function yD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bD=yD;function vD(e,t){var r=e.__data__;return bD(t)?r[typeof t=="string"?"string":"hash"]:r.map}var kl=vD;function ED(e){var t=kl(this,e).delete(e);return this.size-=t?1:0,t}var SD=ED;function xD(e){return kl(this,e).get(e)}var $D=xD;function wD(e){return kl(this,e).has(e)}var CD=wD;function _D(e,t){var r=kl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var TD=_D;function po(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])}}po.prototype.clear=mD;po.prototype.delete=SD;po.prototype.get=$D;po.prototype.has=CD;po.prototype.set=TD;var V1=po,OD="Expected a function";function Pf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(OD);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Pf.Cache||V1),r}Pf.Cache=V1;var AD=Pf,RD=500;function DD(e){var t=AD(e,function(n){return r.size===RD&&r.clear(),n}),r=t.cache;return t}var PD=DD,ID=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,FD=/\\(\\)?/g,LD=PD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ID,function(r,n,o,a){t.push(o?a.replace(FD,"$1"):n||r)}),t}),kD=LD;function ND(e){return e==null?"":nR(e)}var MD=ND;function BD(e,t){return Df(e)?e:LR(e,t)?[e]:kD(MD(e))}var jD=BD;function HD(e){if(typeof e=="string"||Rf(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var UD=HD;function KD(e,t){t=jD(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[UD(t[r++])];return r&&r==n?e:void 0}var zD=KD;function GD(e,t,r){var n=e==null?void 0:zD(e,t);return n===void 0?r:n}var WD=GD,If=I5,VD=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,qD=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function q1(e){if(!If(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=n5(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 YD=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return VD.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,R5.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,D5.default)(i))return;if((0,P5.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:q1(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},XD=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:a,container:i,replacement:l})=>{let s=qD(l)?JSON.parse(l):l.split(".");s.length===0?i[a]=r:i[a]=WD(r,s)})),n==="_constructor-name_")return o;if(If(o)&&o.__isConvertedError__){let{message:a,...i}=o.errorProperties,l=new Error(a);return Object.assign(l,i),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,a,i]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(i,a)}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}},Y1={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},JD=(e,t={})=>{let r={...Y1,...t};return JSON.stringify(q1(e),YD(r),t.space)},ZD=()=>{let e=new Map;return function t(r){If(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))})}},QD=(e,t={})=>{let r={...Y1,...t},n=JSON.parse(e,XD(r));return ZD()(n),n};function Uh(e,t){let r=t.status==="pending",n=t.loadStatus==="loading";return{data:e,error:t.error,status:t.status,loadStatus:t.loadStatus,isPending:r,isSuccess:t.status==="success",isError:t.status==="error",isLoading:n,isInitialLoading:r&&n&&e===void 0,isRefreshing:n&&!r}}function e2(e){return e instanceof Error?e:new Error(String(e))}function Kh(e,t,r){try{let n=e.get(t);return Uh(r?r(n):n,{status:"pending",error:void 0,loadStatus:"loading"})}catch(n){return Uh(void 0,{status:"error",error:e2(n),loadStatus:"idle"})}}var t2=e=>e.transports!==void 0,r2=()=>Math.random().toString(16).slice(2),X1=class{constructor(t={}){this.sender=r2(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,t2(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let n={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let a=()=>{this.transports.forEach(i=>{i.send(n,o)}),this.handleEvent(n)};this.isAsync?setImmediate(a):a()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let n=this.listeners(t);n&&(this.events[t]=n.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let n=(...o)=>(this.removeListener(t,n),r(...o));return n}},Wi;function n2(e){globalThis.__STORYBOOK_ADDONS_CHANNEL__=e}function Zc(){let e=globalThis.__STORYBOOK_ADDONS_CHANNEL__;return e&&(Wi=e),Wi??null}function J1(e){Wi=e??void 0,n2(Wi)}function o2(){J1(new X1({}))}function a2(){Zc()||o2()}typeof window>"u"&&a2();var Ma,i2={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function l2(e){return!e&&!Ma?i2:{lang:e?.lang??Ma?.lang,message:e?.message,abortEarly:e?.abortEarly??Ma?.abortEarly,abortPipeEarly:e?.abortPipeEarly??Ma?.abortPipeEarly}}var s2;function u2(e){return s2?.get(e)}var c2;function d2(e){return c2?.get(e)}var f2;function p2(e,t){return f2?.get(e)?.get(t)}function Qc(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function Mt(e,t,r,n,o){let a=o&&"input"in o?o.input:r.value,i=o?.expected??e.expects??null,l=o?.received??Qc(a),s={kind:e.kind,type:e.type,input:a,expected:i,received:l,message:`Invalid ${t}: ${i?`Expected ${i} but r`:"R"}eceived ${l}`,requirement:e.requirement,path:o?.path,issues:o?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},u=e.kind==="schema",c=o?.message??e.message??p2(e.reference,s.lang)??(u?d2(s.lang):null)??n.message??u2(s.lang);c!==void 0&&(s.message=typeof c=="function"?c(s):c),u&&(r.typed=!1),r.issues?r.issues.push(s):r.issues=[s]}var zh=new WeakMap;function or(e){let t=zh.get(e);return t||(t={version:1,vendor:"valibot",validate(r){return e["~run"]({value:r},l2())}},zh.set(e,t)),t}function Z1(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Q1(e,t){return{kind:"validation",type:"min_value",reference:Q1,async:!1,expects:`>=${e instanceof Date?e.toJSON():Qc(e)}`,requirement:e,message:t,"~run"(r,n){return r.typed&&!(r.value>=this.requirement)&&Mt(this,"value",r,n,{received:r.value instanceof Date?r.value.toJSON():Qc(r.value)}),r}}}function ev(e){return{kind:"validation",type:"safe_integer",reference:ev,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(t,r){return t.typed&&!this.requirement(t.value)&&Mt(this,"safe integer",t,r),t}}}function tv(e,t,r){return typeof e.fallback=="function"?e.fallback(t,r):e.fallback}function Ff(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function rv(e,t){return{kind:"schema",type:"array",reference:rv,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return or(this)},"~run"(r,n){let o=r.value;if(Array.isArray(o)){r.typed=!0,r.value=[];for(let a=0;a<o.length;a++){let i=o[a],l=this.item["~run"]({value:i},n);if(l.issues){let s={type:"array",origin:"value",input:o,key:a,value:i};for(let u of l.issues)u.path?u.path.unshift(s):u.path=[s],r.issues?.push(u);if(r.issues||(r.issues=l.issues),n.abortEarly){r.typed=!1;break}}l.typed||(r.typed=!1),r.value.push(l.value)}}else Mt(this,"type",r,n);return r}}}function Lf(e,t){return{kind:"schema",type:"custom",reference:Lf,expects:"unknown",async:!1,check:e,message:t,get"~standard"(){return or(this)},"~run"(r,n){return this.check(r.value)?r.typed=!0:Mt(this,"type",r,n),r}}}function kf(e,t){return{kind:"schema",type:"loose_object",reference:kf,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return or(this)},"~run"(r,n){let o=r.value;if(o&&typeof o=="object"){r.typed=!0,r.value={};for(let a in this.entries){let i=this.entries[a];if(a in o||(i.type==="exact_optional"||i.type==="optional"||i.type==="nullish")&&i.default!==void 0){let l=a in o?o[a]:Ff(i),s=i["~run"]({value:l},n);if(s.issues){let u={type:"object",origin:"value",input:o,key:a,value:l};for(let c of s.issues)c.path?c.path.unshift(u):c.path=[u],r.issues?.push(c);if(r.issues||(r.issues=s.issues),n.abortEarly){r.typed=!1;break}}s.typed||(r.typed=!1),r.value[a]=s.value}else if(i.fallback!==void 0)r.value[a]=tv(i);else if(i.type!=="exact_optional"&&i.type!=="optional"&&i.type!=="nullish"&&(Mt(this,"key",r,n,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:o,key:a,value:o[a]}]}),n.abortEarly))break}if(!r.issues||!n.abortEarly)for(let a in o)Z1(o,a)&&!(a in this.entries)&&(r.value[a]=o[a])}else Mt(this,"type",r,n);return r}}}function nv(e){return{kind:"schema",type:"number",reference:nv,expects:"number",async:!1,message:e,get"~standard"(){return or(this)},"~run"(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:Mt(this,"type",t,r),t}}}function jr(e,t){return{kind:"schema",type:"object",reference:jr,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return or(this)},"~run"(r,n){let o=r.value;if(o&&typeof o=="object"){r.typed=!0,r.value={};for(let a in this.entries){let i=this.entries[a];if(a in o||(i.type==="exact_optional"||i.type==="optional"||i.type==="nullish")&&i.default!==void 0){let l=a in o?o[a]:Ff(i),s=i["~run"]({value:l},n);if(s.issues){let u={type:"object",origin:"value",input:o,key:a,value:l};for(let c of s.issues)c.path?c.path.unshift(u):c.path=[u],r.issues?.push(c);if(r.issues||(r.issues=s.issues),n.abortEarly){r.typed=!1;break}}s.typed||(r.typed=!1),r.value[a]=s.value}else if(i.fallback!==void 0)r.value[a]=tv(i);else if(i.type!=="exact_optional"&&i.type!=="optional"&&i.type!=="nullish"&&(Mt(this,"key",r,n,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:o,key:a,value:o[a]}]}),n.abortEarly))break}}else Mt(this,"type",r,n);return r}}}function Ue(e,t){return{kind:"schema",type:"optional",reference:Ue,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return or(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=Ff(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function Nl(e,t,r){return{kind:"schema",type:"record",reference:Nl,expects:"Object",async:!1,key:e,value:t,message:r,get"~standard"(){return or(this)},"~run"(n,o){let a=n.value;if(a&&typeof a=="object"){n.typed=!0,n.value={};for(let i in a)if(Z1(a,i)){let l=a[i],s=this.key["~run"]({value:i},o);if(s.issues){let c={type:"object",origin:"key",input:a,key:i,value:l};for(let d of s.issues)d.path=[c],n.issues?.push(d);if(n.issues||(n.issues=s.issues),o.abortEarly){n.typed=!1;break}}let u=this.value["~run"]({value:l},o);if(u.issues){let c={type:"object",origin:"value",input:a,key:i,value:l};for(let d of u.issues)d.path?d.path.unshift(c):d.path=[c],n.issues?.push(d);if(n.issues||(n.issues=u.issues),o.abortEarly){n.typed=!1;break}}(!s.typed||!u.typed)&&(n.typed=!1),s.typed&&(n.value[s.value]=u.value)}}else Mt(this,"type",n,o);return n}}}function ue(e){return{kind:"schema",type:"string",reference:ue,expects:"string",async:!1,message:e,get"~standard"(){return or(this)},"~run"(t,r){return typeof t.value=="string"?t.typed=!0:Mt(this,"type",t,r),t}}}function Nf(){return{kind:"schema",type:"unknown",reference:Nf,expects:"unknown",async:!1,get"~standard"(){return or(this)},"~run"(e){return e.typed=!0,e}}}function h2(...e){return{...e[0],pipe:e,get"~standard"(){return or(this)},"~run"(t,r){for(let n of e)if(n.kind!=="metadata"){if(t.issues&&(n.kind==="schema"||n.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=n["~run"](t,r))}return t}}}var g2=Lf(e=>typeof e=="object"&&e!==null&&!Array.isArray(e));jr({serviceId:ue(),state:g2,version:h2(nv(),ev(),Q1(0)),clientId:ue()});jr({serviceId:ue(),commandName:ue(),input:Ue(Nf()),callId:ue(),clientId:ue()});jr({serviceId:ue(),callId:ue(),result:Ue(Nf()),clientId:ue()});var m2=Symbol.for("preact-signals");function Mf(){if(cn>1)cn--;else{var e,t=!1;for((function(){var o=qi;for(qi=void 0;o!==void 0;)o.S.v===o.v&&(o.S.i=o.i),o=o.o})();jo!==void 0;){var r=jo;for(jo=void 0,Vi++;r!==void 0;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&av(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(Vi=0,cn--,t)throw e}}var be=void 0;function Bf(e){var t=be;be=void 0;try{return e()}finally{be=t}}var jo=void 0,cn=0,Vi=0,Gh=0,qi=void 0,Yi=0;function ov(e){if(be!==void 0){var t=e.n;if(t===void 0||t.t!==be)return t={i:0,S:e,p:be.s,n:void 0,t:be,e:void 0,x:void 0,r:t},be.s!==void 0&&(be.s.n=t),be.s=t,e.n=t,32&be.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=be.s,t.n=void 0,be.s.n=t,be.s=t),t}}function ft(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}ft.prototype.brand=m2;ft.prototype.h=function(){return!0};ft.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Bf(function(){var n;(n=t.W)==null||n.call(t)}))};ft.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Bf(function(){var o;(o=t.Z)==null||o.call(t)}))}};ft.prototype.subscribe=function(e){var t=this;return b2(function(){var r=t.value,n=be;be=void 0;try{e(r)}finally{be=n}},{name:"sub"})};ft.prototype.valueOf=function(){return this.value};ft.prototype.toString=function(){return this.value+""};ft.prototype.toJSON=function(){return this.value};ft.prototype.peek=function(){var e=this;return Bf(function(){return e.value})};Object.defineProperty(ft.prototype,"value",{get:function(){var e=ov(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Vi>100)throw new Error("Cycle detected");(function(r){cn!==0&&Vi===0&&r.l!==Gh&&(r.l=Gh,qi={S:r,v:r.v,i:r.i,o:qi})})(this),this.v=e,this.i++,Yi++,cn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Mf()}}}});function av(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function iv(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function lv(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function ho(e,t){ft.call(this,void 0),this.x=e,this.s=void 0,this.g=Yi-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}ho.prototype=new ft;ho.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Yi))return!0;if(this.g=Yi,this.f|=1,this.i>0&&!av(this))return this.f&=-2,!0;var e=be;try{iv(this),be=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return be=e,lv(this),this.f&=-2,!0};ho.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ft.prototype.S.call(this,e)};ho.prototype.U=function(e){if(this.t!==void 0&&(ft.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};ho.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(ho.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ov(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function sv(e){var t=e.m;if(e.m=void 0,typeof t=="function"){cn++;var r=be;be=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,jf(e),n}finally{be=r,Mf()}}}function jf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,sv(e)}function y2(e){if(be!==this)throw new Error("Out-of-order effect");lv(this),be=e,this.f&=-2,8&this.f&&jf(this),Mf()}function go(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name}go.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};go.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,sv(this),iv(this),cn++;var e=be;return be=this,y2.bind(this,e)};go.prototype.N=function(){2&this.f||(this.f|=2,this.u=jo,jo=this)};go.prototype.d=function(){this.f|=8,1&this.f||jf(this)};go.prototype.dispose=function(){this.d()};function b2(e,t){var r=new go(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return typeof e=="symbol"}));var Wh=Object.prototype.hasOwnProperty;function Vh(e,t,r){for(r of e.keys())if(Zt(r,t))return r}function Zt(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--&&Zt(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=Vh(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=Vh(t,o),!o)||!Zt(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(Wh.call(e,r)&&++n&&!Wh.call(t,r)||!(r in t)||!Zt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function qh(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let a=e[o];t(a)?r.push(a):n.push(a)}return[r,n]}function v2(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],a=t(o);r[a]=(r[a]??0)+1}return r}function E2(){return new X1({transport:{setHandler:()=>{},send:()=>{}}})}var Lr={ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Xi={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>t?e.type!=="story"||!e.tags?.includes(Lr.PLAY_FN):e.type==="story"&&!!e.tags?.includes(Lr.PLAY_FN),_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},S2=e=>(t,r)=>r?!t.tags?.includes(e):!!t.tags?.includes(e),zt=Array.from({length:256},(e,t)=>"%"+((t<16?"0":"")+t.toString(16)).toUpperCase()),x2=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 bi(e){let t=e.length;if(t===0)return"";let r="",n=0,o=0;e:for(;o<t;o++){let a=e.charCodeAt(o);for(;a<128;){if(x2[a]!==1&&(n<o&&(r+=e.slice(n,o)),n=o+1,r+=zt[a]),++o===t)break e;a=e.charCodeAt(o)}if(n<o&&(r+=e.slice(n,o)),a<2048){n=o+1,r+=zt[192|a>>6]+zt[128|a&63];continue}if(a<55296||a>=57344){n=o+1,r+=zt[224|a>>12]+zt[128|a>>6&63]+zt[128|a&63];continue}if(++o,o>=t)throw new Error("URI malformed");let i=e.charCodeAt(o)&1023;n=o+1,a=65536+((a&1023)<<10|i),r+=zt[240|a>>18]+zt[128|a>>12&63]+zt[128|a>>6&63]+zt[128|a&63]}return n===0?e:n<t?r+e.slice(n):r}var $2=e=>{switch(typeof e){case"string":return bi(e);case"bigint":case"boolean":return""+e;case"number":if(Number.isFinite(e))return e<1e21?""+e:bi(""+e);break}return e instanceof Date?bi(e.toISOString()):""},w2=e=>e instanceof Date,Yh=e=>e,it={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:Yh,valueSerializer:$2,keyDeserializer:Yh,shouldSerializeObject:w2};function C2(e){return e==="__proto__"||e==="constructor"||e==="prototype"}function Ba(e,t,r,n,o){if(C2(t))return e;let a=e[t];return typeof a=="object"&&a!==null?a:!n&&(o||typeof r=="number"||typeof r=="string"&&r*0===0&&r.indexOf(".")===-1)?e[t]=[]:e[t]={}}var _2=20,T2="[]",O2="[",A2="]",R2=".";function uv(e,t,r=0,n,o){let{nestingSyntax:a=it.nestingSyntax,arrayRepeat:i=it.arrayRepeat,arrayRepeatSyntax:l=it.arrayRepeatSyntax,nesting:s=it.nesting,delimiter:u=it.delimiter,valueSerializer:c=it.valueSerializer,shouldSerializeObject:d=it.shouldSerializeObject}=t,f=typeof u=="number"?String.fromCharCode(u):u,g=o===!0&&i,m=a==="dot"||a==="js"&&!o;if(r>_2)return"";let y="",v=!0,b=!1;for(let E in e){let S=e[E];if(S===void 0)continue;let x;n?(x=n,g?l==="bracket"&&(x+=T2):m?(x+=R2,x+=E):(x+=O2,x+=E,x+=A2)):x=E,v||(y+=f),typeof S=="object"&&S!==null&&!d(S)?(b=S.pop!==void 0,(s||i&&b)&&(y+=uv(S,t,r+1,x,b))):(y+=bi(x),y+="=",y+=c(S,E)),v&&(v=!1)}return y}var Os=[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 cv(e){let t=e.indexOf("%");if(t===-1)return e;let r=e.length,n="",o=0,a=0,i=t,l=12;for(;t>-1&&t<r;){let s=Xh(e[t+1],4),u=Xh(e[t+2],0),c=s|u,d=Os[c];if(l=Os[256+l+d],a=a<<6|c&Os[364+d],l===12)n+=e.slice(o,i),n+=a<=65535?String.fromCharCode(a):String.fromCharCode(55232+(a>>10),56320+(a&1023)),a=0,o=t+3,t=i=e.indexOf("%",o);else{if(l===0)return null;if(t+=3,t<r&&e.charCodeAt(t)===37)continue;return null}}return n+e.slice(o)}var D2={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 Xh(e,t){let r=D2[e];return r===void 0?255:r<<t}var dv=/\+/g,fv=function(){};fv.prototype=Object.create(null);function ja(e,t,r,n,o){let a=e.substring(t,r);return n&&(a=a.replace(dv," ")),o&&(a=cv(a)||a),a}function P2(e,t){let{valueDeserializer:r=it.valueDeserializer,keyDeserializer:n=it.keyDeserializer,arrayRepeatSyntax:o=it.arrayRepeatSyntax,nesting:a=it.nesting,arrayRepeat:i=it.arrayRepeat,nestingSyntax:l=it.nestingSyntax,delimiter:s=it.delimiter}={},u=typeof s=="string"?s.charCodeAt(0):s,c=l==="js",d=new fv;if(typeof e!="string")return d;let f=e.length,g="",m=-1,y=-1,v=-1,b=d,E,S="",x="",C=!1,$=!1,T=!1,O=!1,L=!1,I=!1,_=0,N=-1,B=-1,w=-1;for(let R=0;R<f+1;R++){if(_=R!==f?e.charCodeAt(R):u,_===u){if(I=y>m,I||(y=R),v!==y-1&&(x=ja(e,v+1,N>-1?N:y,T,C),S=n(x),E!==void 0&&(b=Ba(b,E,S,c&&L,void 0))),I||S!==""){I&&(g=e.slice(y+1,R),O&&(g=g.replace(dv," ")),$&&(g=cv(g)||g));let P=r(g,S);if(i){let A=b[S];A===void 0?N>-1?b[S]=[P]:b[S]=P:A.pop?A.push(P):b[S]=[A,P]}else b[S]=P}g="",m=R,y=R,C=!1,$=!1,T=!1,O=!1,L=!1,N=-1,v=R,b=d,E=void 0,S=""}else _===93?(i&&o==="bracket"&&w===91&&(N=B),a&&(l==="index"||c)&&y<=m&&(v!==B&&(x=ja(e,v+1,R,T,C),S=n(x),E!==void 0&&(b=Ba(b,E,S,void 0,void 0)),E=S,T=!1,C=!1),v=R,L=!1)):_===46?a&&(l==="dot"||c)&&y<=m&&(v!==B&&(x=ja(e,v+1,R,T,C),S=n(x),E!==void 0&&(b=Ba(b,E,S,c)),E=S,T=!1,C=!1),L=!0,v=R):_===91?a&&(l==="index"||c)&&y<=m&&(v!==B&&(x=ja(e,v+1,R,T,C),S=n(x),c&&E!==void 0&&(b=Ba(b,E,S,c)),E=S,T=!1,C=!1,L=!1),v=R):_===61?y<=m?y=R:$=!0:_===43?y>m?O=!0:T=!0:_===37&&(y>m?$=!0:C=!0);B=R,w=_}return d}function ed(e,t){return e===null||typeof e!="object"?"":uv(e,t??{})}function I2(e,t){let r=e?.trim();return r?`${r}
74
+
75
+ ${t}`:t}function F2(e,t){return e?.stories[t]}function L2(e,t){let r=e?.stories[t];if(r?.snippet!==void 0)return I2(e?.import,r.snippet)}var Jh="outline",k2=Lf(e=>typeof e=="object"&&e!==null&&!Array.isArray(e)),N2=jr({name:ue(),message:ue()}),M2=Nl(ue(),rv(ue())),pv={name:ue(),path:ue(),description:Ue(ue()),summary:Ue(ue()),jsDocTags:M2,argTypes:Ue(k2),error:Ue(N2)},B2={...pv,import:Ue(ue())},j2=kf(B2),H2=kf({id:ue(),...pv,subcomponents:Ue(Nl(ue(),j2))});Ue(H2);var U2="Invariant failed";function td(e,t){if(!e)throw new Error(U2)}var K2="storybook/actions",z2=`${K2}/action-event`,G2={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:W2}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:Zh}=__STORYBOOK_MODULE_GLOBAL__,{addons:V2}=__STORYBOOK_MODULE_PREVIEW_API__;var hv=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:hv(r,t)},q2=e=>!!(typeof e=="object"&&e&&hv(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),Y2=e=>{if(q2(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 Hf(e,t={}){let r={...G2,...t},n=function(...o){if(t.implicit){let d=("__STORYBOOK_PREVIEW__"in Zh?Zh.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(d){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,g=new W2({phase:d.phase,name:e,deprecated:f});if(f)console.warn(g);else throw g}}let a=V2.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(Y2),u=o.length>1?s:s[0],c={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};a.emit(z2,c)};return n.isAction=!0,n.implicit=t.implicit,n}var Qh="backgrounds",X2={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},sr={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"},J2={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]},gv=Object.entries(J2);function Ml(e){return String(e)}Ml.open="";Ml.close="";gv.reduce((e,[t])=>(e[t]=Ml,e),{isColorSupported:!1});function Z2(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 Q2(e=!1){let t=Z2(e),r=(i,l,s,u)=>{let c="",d=0;do c+=i.substring(d,u)+s,d=u+l.length,u=i.indexOf(l,d);while(~u);return c+i.substring(d)},n=(i,l,s=i)=>{let u=c=>{let d=String(c),f=d.indexOf(l,i.length);return~f?i+r(d,l,s,f)+l:i+d+l};return u.open=i,u.close=l,u},o={isColorSupported:t},a=i=>`\x1B[${i}m`;for(let[i,l]of gv)o[i]=t?n(a(l[0]),a(l[1]),l[2]):Ml;return o}var gr=Q2();function mv(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 eP(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 ya(e,t,r,n,o,a,i=": "){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=a(u.value[0],t,c,n,o),f=a(u.value[1],t,c,n,o);l+=d+i+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function Uf(e,t,r,n,o,a){let i="",l=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,l++===t.maxWidth){i+="…";break}i+=a(s.value,t,u,n,o),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function Ji(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(i+=u,c===t.maxWidth){i+="…";break}(l(e)||c in e)&&(i+=a(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function Kf(e,t,r,n,o,a){let i="",l=eP(e,t.compareKeys);if(l.length>0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=a(c,t,s,n,o),f=a(e[c],t,s,n,o);i+=`${s+d}: ${f}`,u<l.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var tP=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,As=" ",rP=(e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+As}[${Ji(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+As}{${Kf(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+As+a(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()},nP=e=>e&&e.$$typeof===tP,oP={serialize:rP,test:nP},aP=" ",yv=new Set(["DOMStringMap","NamedNodeMap"]),iP=/^(?:HTML\w*Collection|NodeList)$/;function lP(e){return yv.has(e)||iP.test(e)}var sP=e=>e&&e.constructor&&!!e.constructor.name&&lP(e.constructor.name);function uP(e){return e.constructor.name==="NamedNodeMap"}var cP=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+aP)+(yv.has(i)?`{${Kf(uP(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${Ji([...e],t,r,n,o,a)}]`)},dP={serialize:cP,test:sP};function bv(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function zf(e,t,r,n,o,a,i){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=i(c,r,l,o,a);return typeof c!="string"&&(d.includes(`
76
+ `)&&(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 Gf(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?vv(i,t):a(i,t,r,n,o))).join("")}function vv(e,t){let r=t.colors.content;return r.open+bv(e)+r.close}function fP(e,t){let r=t.colors.comment;return`${r.open}<!--${bv(e)}-->${r.close}`}function Wf(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}function Vf(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var pP=1,Ev=3,Sv=8,xv=11,hP=/^(?:(?:HTML|SVG)\w*)?Element$/;function gP(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function mP(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||gP(e);return r===pP&&(hP.test(t)||o)||r===Ev&&t==="Text"||r===Sv&&t==="Comment"||r===xv&&t==="DocumentFragment"}var yP=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&mP(e)};function bP(e){return e.nodeType===Ev}function vP(e){return e.nodeType===Sv}function Rs(e){return e.nodeType===xv}var EP=(e,t,r,n,o,a)=>{if(bP(e))return vv(e.data,t);if(vP(e))return fP(e.data,t);let i=Rs(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Vf(i,t):Wf(i,zf(Rs(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Rs(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),Gf(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},SP={serialize:EP,test:yP},xP="@@__IMMUTABLE_ITERABLE__@@",$P="@@__IMMUTABLE_LIST__@@",wP="@@__IMMUTABLE_KEYED__@@",CP="@@__IMMUTABLE_MAP__@@",eg="@@__IMMUTABLE_ORDERED__@@",_P="@@__IMMUTABLE_RECORD__@@",TP="@@__IMMUTABLE_SEQ__@@",OP="@@__IMMUTABLE_SET__@@",AP="@@__IMMUTABLE_STACK__@@",Yn=e=>`Immutable.${e}`,Bl=e=>`[${e}]`,Qo=" ",tg="…";function RP(e,t,r,n,o,a,i){return++n>t.maxDepth?Bl(Yn(i)):`${Yn(i)+Qo}{${ya(e.entries(),t,r,n,o,a)}}`}function DP(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 PP(e,t,r,n,o,a){let i=Yn(e._name||"Record");return++n>t.maxDepth?Bl(i):`${i+Qo}{${ya(DP(e),t,r,n,o,a)}}`}function IP(e,t,r,n,o,a){let i=Yn("Seq");return++n>t.maxDepth?Bl(i):e[wP]?`${i+Qo}{${e._iter||e._object?ya(e.entries(),t,r,n,o,a):tg}}`:`${i+Qo}[${e._iter||e._array||e._collection||e._iterable?Uf(e.values(),t,r,n,o,a):tg}]`}function Ds(e,t,r,n,o,a,i){return++n>t.maxDepth?Bl(Yn(i)):`${Yn(i)+Qo}[${Uf(e.values(),t,r,n,o,a)}]`}var FP=(e,t,r,n,o,a)=>e[CP]?RP(e,t,r,n,o,a,e[eg]?"OrderedMap":"Map"):e[$P]?Ds(e,t,r,n,o,a,"List"):e[OP]?Ds(e,t,r,n,o,a,e[eg]?"OrderedSet":"Set"):e[AP]?Ds(e,t,r,n,o,a,"Stack"):e[TP]?IP(e,t,r,n,o,a):PP(e,t,r,n,o,a),LP=e=>e&&(e[xP]===!0||e[_P]===!0),kP={serialize:FP,test:LP};function $v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rg={exports:{}},ye={},ng;function NP(){if(ng)return ye;ng=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"),a=Symbol.for("react.consumer"),i=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"),g=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case r:case o:case n:case s:case u:case f:return y;default:switch(y=y&&y.$$typeof,y){case i:case l:case d:case c:return y;case a:return y;default:return v}}case t:return v}}}return ye.ContextConsumer=a,ye.ContextProvider=i,ye.Element=e,ye.ForwardRef=l,ye.Fragment=r,ye.Lazy=d,ye.Memo=c,ye.Portal=t,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=s,ye.SuspenseList=u,ye.isContextConsumer=function(y){return m(y)===a},ye.isContextProvider=function(y){return m(y)===i},ye.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ye.isForwardRef=function(y){return m(y)===l},ye.isFragment=function(y){return m(y)===r},ye.isLazy=function(y){return m(y)===d},ye.isMemo=function(y){return m(y)===c},ye.isPortal=function(y){return m(y)===t},ye.isProfiler=function(y){return m(y)===o},ye.isStrictMode=function(y){return m(y)===n},ye.isSuspense=function(y){return m(y)===s},ye.isSuspenseList=function(y){return m(y)===u},ye.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===s||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===c||y.$$typeof===i||y.$$typeof===a||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},ye.typeOf=m,ye}var og;function MP(){return og||(og=1,rg.exports=NP()),rg.exports}var wv=MP(),BP=$v(wv),jP=mv({__proto__:null,default:BP},[wv]),ag={exports:{}},me={},ig;function HP(){if(ig)return me;ig=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"),a=Symbol.for("react.provider"),i=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"),g=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){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 i:case s:case f:case d:case a:return v;default:return b}}case t:return b}}}return me.ContextConsumer=i,me.ContextProvider=a,me.Element=e,me.ForwardRef=s,me.Fragment=r,me.Lazy=f,me.Memo=d,me.Portal=t,me.Profiler=o,me.StrictMode=n,me.Suspense=u,me.SuspenseList=c,me.isAsyncMode=function(){return!1},me.isConcurrentMode=function(){return!1},me.isContextConsumer=function(v){return y(v)===i},me.isContextProvider=function(v){return y(v)===a},me.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},me.isForwardRef=function(v){return y(v)===s},me.isFragment=function(v){return y(v)===r},me.isLazy=function(v){return y(v)===f},me.isMemo=function(v){return y(v)===d},me.isPortal=function(v){return y(v)===t},me.isProfiler=function(v){return y(v)===o},me.isStrictMode=function(v){return y(v)===n},me.isSuspense=function(v){return y(v)===u},me.isSuspenseList=function(v){return y(v)===c},me.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===u||v===c||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===d||v.$$typeof===a||v.$$typeof===i||v.$$typeof===s||v.$$typeof===m||v.getModuleId!==void 0)},me.typeOf=y,me}var lg;function UP(){return lg||(lg=1,ag.exports=HP()),ag.exports}var Cv=UP(),KP=$v(Cv),zP=mv({__proto__:null,default:KP},[Cv]),GP=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],en=Object.fromEntries(GP.map(e=>[e,t=>zP[e](t)||jP[e](t)]));function _v(e,t=[]){if(Array.isArray(e))for(let r of e)_v(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function sg(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(en.isFragment(e))return"React.Fragment";if(en.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(en.isContextProvider(e))return"Context.Provider";if(en.isContextConsumer(e))return"Context.Consumer";if(en.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(en.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function WP(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var VP=(e,t,r,n,o,a)=>++n>t.maxDepth?Vf(sg(e),t):Wf(sg(e),zf(WP(e),e.props,t,r+t.indent,n,o,a),Gf(_v(e.props.children),t,r+t.indent,n,o,a),t,r),qP=e=>e!=null&&en.isElement(e),YP={serialize:VP,test:qP},XP=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function JP(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var ZP=(e,t,r,n,o,a)=>++n>t.maxDepth?Vf(e.type,t):Wf(e.type,e.props?zf(JP(e),e.props,t,r+t.indent,n,o,a):"",e.children?Gf(e.children,t,r+t.indent,n,o,a):"",t,r),QP=e=>e&&e.$$typeof===XP,e3={serialize:ZP,test:QP},Tv=Object.prototype.toString,t3=Date.prototype.toISOString,r3=Error.prototype.toString,ug=RegExp.prototype.toString;function vi(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function n3(e){return typeof window<"u"&&e===window}var o3=/^Symbol\((.*)\)(.*)$/,a3=/\n/g,Ov=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function i3(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 l3(e){return Object.is(e,-0)?"-0":String(e)}function s3(e){return`${e}n`}function cg(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function dg(e){return String(e).replace(o3,"Symbol($1)")}function fg(e){return`[${r3.call(e)}]`}function Av(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 l3(e);if(o==="bigint")return s3(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return cg(e,t);if(o==="symbol")return dg(e);let a=Tv.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?cg(e,t):a==="[object Symbol]"?dg(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":t3.call(e):a==="[object Error]"?fg(e):a==="[object RegExp]"?r?ug.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):ug.call(e):e instanceof Error?fg(e):null}function Rv(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return Rr(e.toJSON(),t,r,n,o,!0);let s=Tv.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${Ji(e,t,r,n,o,Rr)}]`:i3(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ji(e,t,r,n,o,Rr)}]`:s==="[object Map]"?i?"[Map]":`Map {${ya(e.entries(),t,r,n,o,Rr," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${Uf(e.values(),t,r,n,o,Rr)}}`:i||n3(e)?`[${vi(e)}]`:`${l||!t.printBasicPrototype&&vi(e)==="Object"?"":`${vi(e)} `}{${Kf(e,t,r,n,o,Rr)}}`}var u3={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++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:vi(e);return i?`[${d}]`:`${d} {${ya(Object.entries(c).values(),t,r,n,o,a)}}`}};function c3(e){return e.serialize!=null}function Dv(e,t,r,n,o,a){let i;try{i=c3(e)?e.serialize(t,r,n,o,a,Rr):e.print(t,l=>Rr(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(a3,`
77
+ ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new Ov(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function Pv(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Ov(n.message,n.stack)}return null}function Rr(e,t,r,n,o,a){let i=Pv(t.plugins,e);if(i!==null)return Dv(i,e,t,r,n,o);let l=Av(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:Rv(e,t,r,n,o,a)}var qf={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Iv=Object.keys(qf),It={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:qf};function d3(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(It,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 f3(){return Iv.reduce((e,t)=>{let r=qf[t],n=r&&gr[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 p3(){return Iv.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Fv(e){return e?.printFunctionName??It.printFunctionName}function Lv(e){return e?.escapeRegex??It.escapeRegex}function kv(e){return e?.escapeString??It.escapeString}function pg(e){return{callToJSON:e?.callToJSON??It.callToJSON,colors:e?.highlight?f3():p3(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:It.compareKeys,escapeRegex:Lv(e),escapeString:kv(e),indent:e?.min?"":h3(e?.indent??It.indent),maxDepth:e?.maxDepth??It.maxDepth,maxWidth:e?.maxWidth??It.maxWidth,min:e?.min??It.min,plugins:e?.plugins??It.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Fv(e),spacingInner:e?.min?" ":`
78
+ `,spacingOuter:e?.min?"":`
79
+ `}}function h3(e){return Array.from({length:e+1}).join(" ")}function Qt(e,t){if(t&&(d3(t),t.plugins)){let n=Pv(t.plugins,e);if(n!==null)return Dv(n,e,pg(t),"",0,[])}let r=Av(e,Fv(t),Lv(t),kv(t));return r!==null?r:Rv(e,pg(t),"",0,[])}var Yf={AsymmetricMatcher:oP,DOMCollection:dP,DOMElement:SP,Immutable:kP,ReactElement:YP,ReactTestComponent:e3,Error:u3},hg={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"]},g3={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Xn="…";function m3(e,t){let r=hg[g3[t]]||hg[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function y3({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=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(a),breakLength:Number(i),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=m3),d}function b3(e){return e>="\uD800"&&e<="\uDBFF"}function Hr(e,t,r=Xn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&b3(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function Bt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${Xn}(${e.length-u})`;let f=e[u];t.truncate=a-i.length-(c?0:n.length);let g=l||r(f,t)+(c?"":n),m=i.length+g.length,y=m+s.length;if(c&&m>a&&i.length+s.length<=a||!c&&!d&&y>a||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&y>a&&m+l.length>a))break;if(i+=g,!c&&!d&&m+l.length>=a){s=`${Xn}(${e.length-u-1})`;break}s=""}return`${i}${s}`}function v3(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ea([e,t],r){return r.truncate-=2,typeof e=="string"?e=v3(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function E3(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Bt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Bt(r.map(a=>[a,e[a]]),t,ea)),`[ ${n}${o?`, ${o}`:""} ]`}var S3=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function ur(e,t){let r=S3(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 i=0;i<e.length;i++){let l=`${t.stylize(Hr(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){o+=`${Xn}(${e.length-e[i]+1})`;break}o+=l}let a="";return n.length&&(a=Bt(n.map(i=>[i,e[i]]),t,ea)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function x3(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${Hr(n[1],t.truncate-o.length-1)}`,"date")}function gg(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Hr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function $3([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function w3(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function C3(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Bt(w3(e),t,$3)} }`)}var _3=Number.isNaN||(e=>e!==e);function mg(e,t){return _3(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(Hr(String(e),t.truncate),"number")}function yg(e,t){let r=Hr(e.toString(),t.truncate-1);return r!==Xn&&(r+="n"),t.stylize(r,"bigint")}function T3(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Hr(o,n)}/${r}`,"regexp")}function O3(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function A3(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Bt(O3(e),t)} }`)}var bg=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),R3={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},D3=16;function P3(e){return R3[e]||`\\u${`0000${e.charCodeAt(0).toString(D3)}`.slice(-4)}`}function vg(e,t){return bg.test(e)&&(e=e.replace(bg,P3)),t.stylize(`'${Hr(e,t.truncate-2)}'`,"string")}function Eg(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Nv=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Nv=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var I3=Nv;function Ei(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=Bt(r.map(l=>[l,e[l]]),t,ea),a=Bt(n.map(l=>[l,e[l]]),t,ea);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var Ps=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function F3(e,t){let r="";return Ps&&Ps in e&&(r=e[Ps]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ei(e,t)}`}function L3(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Bt(e,t)} ]`)}var k3=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function N3(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>k3.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Hr(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 a=Bt(r.map(i=>[i,e[i]]),t,ea);return`${n}${o}${a?` { ${a} }`:""}`}function M3([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function rd(e,t){return Bt(e,t,B3,`
80
+ `)}function B3(e,t){switch(e.nodeType){case 1:return Mv(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Mv(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=Bt(r.map(c=>[c,e.getAttribute(c)]),t,M3," ")),t.truncate-=l.length;let s=t.truncate,u=rd(e.children,t);return u&&u.length>s&&(u=`${Xn}(${e.children.length})`),`${o}${l}${a}${u}${i}`}var j3=typeof Symbol=="function"&&typeof Symbol.for=="function",Is=j3?Symbol.for("chai/inspect"):"@@chai/inspect",Fs=Symbol.for("nodejs.util.inspect.custom"),Sg=new WeakMap,xg={},$g={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:mg,Number:mg,bigint:yg,BigInt:yg,string:vg,String:vg,function:gg,Function:gg,symbol:Eg,Symbol:Eg,Array:E3,Date:x3,Map:C3,Set:A3,RegExp:T3,Promise:I3,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:L3,Int8Array:ur,Uint8Array:ur,Uint8ClampedArray:ur,Int16Array:ur,Uint16Array:ur,Int32Array:ur,Uint32Array:ur,Float32Array:ur,Float64Array:ur,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:N3,HTMLCollection:rd,NodeList:rd},H3=(e,t,r)=>Is in e&&typeof e[Is]=="function"?e[Is](t):Fs in e&&typeof e[Fs]=="function"?e[Fs](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Sg.has(e.constructor)?Sg.get(e.constructor)(e,t):xg[r]?xg[r](e,t):"",U3=Object.prototype.toString;function nd(e,t={}){let r=y3(t,nd),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=U3.call(e).slice(8,-1)),o in $g)return $g[o](e,r);if(n&&e){let i=H3(e,r,o);if(i)return typeof i=="string"?i:nd(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Ei(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Mv(e,r):"constructor"in e?e.constructor!==Object?F3(e,r):Ei(e,r):e===Object(e)?Ei(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:K3,DOMCollection:z3,DOMElement:G3,Immutable:W3,ReactElement:V3,ReactTestComponent:q3}=Yf,wg=[q3,V3,G3,z3,W3,K3];function ta(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Qt(e,{maxDepth:t,escapeString:!1,plugins:wg,...n})}catch{a=Qt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:wg,...n})}return a.length>=o&&t>1?ta(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}var Y3=/%[sdjifoOc%]/g;function X3(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(Co(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(Y3,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():Co(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Co(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Co(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${Co(a)}`;return o}function Co(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),nd(e,t)}function J3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z3(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function od(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Q3(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Bv(e){let t=new Set;return Z3(e)?[]:(Q3(e,t),Array.from(t))}var jv={forceWritable:!1};function Cg(e,t=jv){return ad(e,new WeakMap,t)}function ad(e,t,r=jv){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]=ad(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 a=Bv(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=ad(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,i,{...l,get(){return s}}):Object.defineProperty(o,i,{...l,value:s})}return o}return e}var Xe=-1,Ke=1,Te=0,we=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function eI(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,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}function Hv(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,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}function _g(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 a=0,i=1;for(;;){let l=e.substring(o-i),s=t.indexOf(l);if(s===-1)return a;i+=s,(s===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}}function tI(e){let t=!1,r=[],n=0,o=null,a=0,i=0,l=0,s=0,u=0;for(;a<e.length;)e[a][0]===Te?(r[n++]=a,i=s,l=u,s=0,u=0,o=e[a][1]):(e[a][0]===Ke?s+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(i,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new we(Xe,o)),e[r[n-1]+1][0]=Ke,n--,n--,a=n>0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&Uv(e),oI(e),a=1;a<e.length;){if(e[a-1][0]===Xe&&e[a][0]===Ke){let c=e[a-1][1],d=e[a][1],f=_g(c,d),g=_g(d,c);f>=g?(f>=c.length/2||f>=d.length/2)&&(e.splice(a,0,new we(Te,d.substring(0,f))),e[a-1][1]=c.substring(0,c.length-f),e[a+1][1]=d.substring(f),a++):(g>=c.length/2||g>=d.length/2)&&(e.splice(a,0,new we(Te,c.substring(0,g))),e[a-1][0]=Ke,e[a-1][1]=d.substring(0,d.length-g),e[a+1][0]=Xe,e[a+1][1]=c.substring(g),a++),a++}a++}}var Tg=/[^a-z0-9]/i,Og=/\s/,Ag=/[\r\n]/,rI=/\n\r?\n$/,nI=/^\r?\n\r?\n/;function oI(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Te&&e[t+1][0]===Te){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Hv(r,n);if(a){let c=n.substring(n.length-a);r=r.substring(0,r.length-a),n=c+n.substring(0,n.length-a),o=c+o}let i=r,l=n,s=o,u=Ha(r,n)+Ha(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=Ha(r,n)+Ha(n,o);c>=u&&(u=c,i=r,l=n,s=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function Uv(e){e.push(new we(Te,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case Ke:n++,a+=e[t][1],t++;break;case Xe:r++,o+=e[t][1],t++;break;case Te:r+n>1?(r!==0&&n!==0&&(i=eI(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Te?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new we(Te,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Hv(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new we(Xe,o)),t++),a.length&&(e.splice(t,0,new we(Ke,a)),t++),t++):t!==0&&e[t-1][0]===Te?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Te&&e[t+1][0]===Te&&(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&&Uv(e)}function Ha(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Tg),a=n.match(Tg),i=o&&r.match(Og),l=a&&n.match(Og),s=i&&r.match(Ag),u=l&&n.match(Ag),c=s&&e.match(rI),d=u&&t.match(nI);return c||d?5:s||u?4:o&&!i&&l?3:i||l?2:o||a?1:0}var Kv="Compared values have no visual difference.",aI="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Ua={},Rg;function iI(){if(Rg)return Ua;Rg=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=f;let e="diff-sequences",t=0,r=(g,m,y,v,b)=>{let E=0;for(;g<m&&y<v&&b(g,y);)g+=1,y+=1,E+=1;return E},n=(g,m,y,v,b)=>{let E=0;for(;g<=m&&y<=v&&b(m,v);)m-=1,v-=1,E+=1;return E},o=(g,m,y,v,b,E,S)=>{let x=0,C=-g,$=E[x],T=$;E[x]+=r($+1,m,v+$-C+1,y,b);let O=g<S?g:S;for(x+=1,C+=2;x<=O;x+=1,C+=2){if(x!==g&&T<E[x])$=E[x];else if($=T+1,m<=$)return x-1;T=E[x],E[x]=$+r($+1,m,v+$-C+1,y,b)}return S},a=(g,m,y,v,b,E,S)=>{let x=0,C=g,$=E[x],T=$;E[x]-=n(m,$-1,y,v+$-C-1,b);let O=g<S?g:S;for(x+=1,C-=2;x<=O;x+=1,C-=2){if(x!==g&&E[x]<T)$=E[x];else if($=T-1,$<m)return x-1;T=E[x],E[x]=$-n(m,$-1,y,v+$-C-1,b)}return S},i=(g,m,y,v,b,E,S,x,C,$,T)=>{let O=v-m,L=y-m,I=b-v-L,_=-I-(g-1),N=-I+(g-1),B=t,w=g<x?g:x;for(let R=0,P=-g;R<=w;R+=1,P+=2){let A=R===0||R!==g&&B<S[R],D=A?S[R]:B,M=A?D:D+1,k=O+M-P,K=r(M+1,y,k+1,b,E),j=M+K;if(B=S[R],S[R]=j,_<=P&&P<=N){let z=(g-1-(P+I))/2;if(z<=$&&C[z]-1<=j){let U=O+D-(A?P+1:P-1),H=n(m,D,v,U,E),G=D-H,W=U-H,q=G+1,ge=W+1;T.nChangePreceding=g-1,g-1===q+ge-m-v?(T.aEndPreceding=m,T.bEndPreceding=v):(T.aEndPreceding=q,T.bEndPreceding=ge),T.nCommonPreceding=H,H!==0&&(T.aCommonPreceding=q,T.bCommonPreceding=ge),T.nCommonFollowing=K,K!==0&&(T.aCommonFollowing=M+1,T.bCommonFollowing=k+1);let Ne=j+1,Z=k+K+1;return T.nChangeFollowing=g-1,g-1===y+b-Ne-Z?(T.aStartFollowing=y,T.bStartFollowing=b):(T.aStartFollowing=Ne,T.bStartFollowing=Z),!0}}}return!1},l=(g,m,y,v,b,E,S,x,C,$,T)=>{let O=b-y,L=y-m,I=b-v-L,_=I-g,N=I+g,B=t,w=g<$?g:$;for(let R=0,P=g;R<=w;R+=1,P-=2){let A=R===0||R!==g&&C[R]<B,D=A?C[R]:B,M=A?D:D-1,k=O+M-P,K=n(m,M-1,v,k-1,E),j=M-K;if(B=C[R],C[R]=j,_<=P&&P<=N){let z=(g+(P-I))/2;if(z<=x&&j-1<=S[z]){let U=k-K;if(T.nChangePreceding=g,g===j+U-m-v?(T.aEndPreceding=m,T.bEndPreceding=v):(T.aEndPreceding=j,T.bEndPreceding=U),T.nCommonPreceding=K,K!==0&&(T.aCommonPreceding=j,T.bCommonPreceding=U),T.nChangeFollowing=g-1,g===1)T.nCommonFollowing=0,T.aStartFollowing=y,T.bStartFollowing=b;else{let H=O+D-(A?P-1:P+1),G=r(D,y,H,b,E);T.nCommonFollowing=G,G!==0&&(T.aCommonFollowing=D,T.bCommonFollowing=H);let W=D+G,q=H+G;g-1===y+b-W-q?(T.aStartFollowing=y,T.bStartFollowing=b):(T.aStartFollowing=W,T.bStartFollowing=q)}return!0}}}return!1},s=(g,m,y,v,b,E,S,x,C)=>{let $=v-m,T=b-y,O=y-m,L=b-v,I=L-O,_=O,N=O;if(S[0]=m-1,x[0]=y,I%2===0){let B=(g||I)/2,w=(O+L)/2;for(let R=1;R<=w;R+=1)if(_=o(R,y,b,$,E,S,_),R<B)N=a(R,m,v,T,E,x,N);else if(l(R,m,y,v,b,E,S,_,x,N,C))return}else{let B=((g||I)+1)/2,w=(O+L+1)/2,R=1;for(_=o(R,y,b,$,E,S,_),R+=1;R<=w;R+=1)if(N=a(R-1,m,v,T,E,x,N),R<B)_=o(R,y,b,$,E,S,_);else if(i(R,m,y,v,b,E,S,_,x,N,C))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${v} bEnd=${b}`)},u=(g,m,y,v,b,E,S,x,C,$)=>{if(b-v<y-m){if(E=!E,E&&S.length===1){let{foundSubsequence:z,isCommon:U}=S[0];S[1]={foundSubsequence:(H,G,W)=>{z(H,W,G)},isCommon:(H,G)=>U(G,H)}}let K=m,j=y;m=v,y=b,v=K,b=j}let{foundSubsequence:T,isCommon:O}=S[E?1:0];s(g,m,y,v,b,O,x,C,$);let{nChangePreceding:L,aEndPreceding:I,bEndPreceding:_,nCommonPreceding:N,aCommonPreceding:B,bCommonPreceding:w,nCommonFollowing:R,aCommonFollowing:P,bCommonFollowing:A,nChangeFollowing:D,aStartFollowing:M,bStartFollowing:k}=$;m<I&&v<_&&u(L,m,I,v,_,E,S,x,C,$),N!==0&&T(N,B,w),R!==0&&T(R,P,A),M<y&&k<b&&u(D,M,y,k,b,E,S,x,C,$)},c=(g,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${g} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${g} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${g} value ${m} is a negative integer`)},d=(g,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${g} typeof ${y} is not a function`)};function f(g,m,y,v){c("aLength",g),c("bLength",m),d("isCommon",y),d("foundSubsequence",v);let b=r(0,g,0,m,y);if(b!==0&&v(b,0,0),g!==b||m!==b){let E=b,S=b,x=n(E,g-1,S,m-1,y),C=g-x,$=m-x,T=b+x;g!==T&&m!==T&&u(0,E,C,S,$,!1,[{foundSubsequence:v,isCommon:y}],[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}),x!==0&&v(x,C,$)}}return Ua}var lI=iI(),zv=J3(lI);function sI(e,t){return e.replace(/\s+$/,r=>t(r))}function Xf(e,t,r,n,o,a){return e.length!==0?r(`${n} ${sI(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function Gv(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Xf(e,t,r,n,o,a)}function Wv(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Xf(e,t,r,n,o,a)}function Vv(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Xf(e,t,r,n,o,a)}function Dg(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function uI(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,l=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===Te;)s+=1;if(x!==s)if(x===0)s>n&&(a-=s-n,i=!0);else if(s===r){let C=s-x;C>n&&(a-=C-n,i=!0)}else{let C=s-x;C>o&&(a-=C-o,l+=1)}for(;s!==r&&e[s][0]!==Te;)s+=1}let u=l!==0||i;l!==0?a+=l+1:i&&(a+=1);let c=a-1,d=[],f=0;u&&d.push("");let g=0,m=0,y=0,v=0,b=x=>{let C=d.length;d.push(Vv(x,C===0||C===c,t)),y+=1,v+=1},E=x=>{let C=d.length;d.push(Gv(x,C===0||C===c,t)),y+=1},S=x=>{let C=d.length;d.push(Wv(x,C===0||C===c,t)),v+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===Te;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,g=x,m=x,y=g,v=m);for(let C=x;C!==s;C+=1)b(e[C][1])}else if(s===r){let C=s-x>n?x+n:s;for(let $=x;$!==C;$+=1)b(e[$][1])}else{let C=s-x;if(C>o){let $=x+n;for(let O=x;O!==$;O+=1)b(e[O][1]);d[f]=Dg(g,y,m,v,t),f=d.length,d.push("");let T=C-o;g=y+T,m=v+T,y=g,v=m;for(let O=s-n;O!==s;O+=1)b(e[O][1])}else for(let $=x;$!==s;$+=1)b(e[$][1])}for(;s!==r&&e[s][0]===Xe;)E(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Ke;)S(e[s][1]),s+=1}return u&&(d[f]=Dg(g,y,m,v,t)),d.join(`
81
+ `)}function cI(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Xe:return Gv(a,i,t);case Ke:return Wv(a,i,t);default:return Vv(a,i,t)}}).join(`
82
+ `)}var Ls=e=>e,qv=5,dI=0;function fI(){return{aAnnotation:"Expected",aColor:gr.green,aIndicator:"-",bAnnotation:"Received",bColor:gr.red,bIndicator:"+",changeColor:gr.inverse,changeLineTrailingSpaceColor:Ls,commonColor:gr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Ls,compareKeys:void 0,contextLines:qv,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:gr.yellow,printBasicPrototype:!1,truncateThreshold:dI,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Ls}}function pI(e){return e&&typeof e=="function"?e:void 0}function hI(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:qv}function Sn(e={}){return{...fI(),...e,compareKeys:pI(e.compareKeys),contextLines:hI(e.contextLines)}}function kn(e){return e.length===1&&e[0].length===0}function gI(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Xe:t+=1;break;case Ke:r+=1;break}}),{a:t,b:r}}function mI({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(i){let g=String(s.a),m=String(s.b),y=n.length-e.length,v=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),E=m.length-g.length,S=" ".repeat(Math.max(0,E)),x=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${S}${g}`,c=`${b} ${a} ${x}${m}`}let d=`${r} ${e}${u}`,f=`${a} ${n}${c}`;return`${t(d)}
83
+ ${o(f)}
84
+
85
+ `}function Jf(e,t,r){return mI(r,gI(e))+(r.expand?cI(e,r):uI(e,r))+(t?r.truncateAnnotationColor(`
86
+ ${r.truncateAnnotation}`):"")}function jl(e,t,r){let n=Sn(r),[o,a]=Yv(kn(e)?[]:e,kn(t)?[]:t,n);return Jf(o,a,n)}function yI(e,t,r,n,o){if(kn(e)&&kn(r)&&(e=[],r=[]),kn(t)&&kn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return jl(e,t,o);let[a,i]=Yv(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case Xe:u[1]=e[l],l+=1;break;case Ke:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),Jf(a,i,Sn(o))}function Yv(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=[],c=0,d=0;for(zv(a,i,s,(f,g,m)=>{for(;c!==g;c+=1)u.push(new we(Xe,e[c]));for(;d!==m;d+=1)u.push(new we(Ke,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new we(Te,t[d]))});c!==a;c+=1)u.push(new we(Xe,e[c]));for(;d!==i;d+=1)u.push(new we(Ke,t[d]));return[u,l]}function Pg(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 Ig(e){return e.includes(`\r
87
+ `)?`\r
88
+ `:`
89
+ `}function bI(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let f=e.includes(`
90
+ `),g=t.includes(`
91
+ `),m=Ig(e),y=Ig(t),v=f?`${e.split(m,o).join(m)}
92
+ `:e,b=g?`${t.split(y,o).join(y)}
93
+ `:t;a=v.length,i=b.length}let l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=0,c=0,d=[];return zv(a,i,s,(f,g,m)=>{u!==g&&d.push(new we(Xe,e.slice(u,g))),c!==m&&d.push(new we(Ke,t.slice(c,m))),u=g+f,c=m+f,d.push(new we(Te,t.slice(m,c)))}),u!==a&&d.push(new we(Xe,e.slice(u))),c!==i&&d.push(new we(Ke,t.slice(c))),[d,l]}function vI(e,t,r){return t.reduce((n,o)=>n+(o[0]===Te?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Fg=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new we(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new we(this.op,vI(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new we(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(`
94
+ `)){let r=t.split(`
95
+ `),n=r.length-1;r.forEach((o,a)=>{a<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}},EI=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(`
96
+ `)){let n=r.split(`
97
+ `),o=n.length-1;n.forEach((a,i)=>{if(i===0){let l=new we(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new we(t,a)):a.length!==0&&this.pushDiffChangeLines(new we(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function SI(e,t){let r=new Fg(Xe,t),n=new Fg(Ke,t),o=new EI(r,n);return e.forEach(a=>{switch(a[0]){case Xe:r.align(a);break;case Ke:n.align(a);break;default:o.align(a)}}),o.getLines()}function xI(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Te&&(o!==r||n[1]!==`
98
+ `))}return e.some(r=>r[0]===Te)}function $I(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
99
+ `)||t.includes(`
100
+ `),[o,a]=Xv(n?`${e}
101
+ `:e,n?`${t}
102
+ `:t,!0,r);if(xI(o,n)){let i=Sn(r),l=SI(o,i.changeColor);return Jf(l,a,i)}}return jl(e.split(`
103
+ `),t.split(`
104
+ `),r)}function Xv(e,t,r,n){let[o,a]=bI(e,t,n);return tI(o),[o,a]}function id(e,t){let{commonColor:r}=Sn(t);return r(e)}var{AsymmetricMatcher:wI,DOMCollection:CI,DOMElement:_I,Immutable:TI,ReactElement:OI,ReactTestComponent:AI}=Yf,Jv=[AI,OI,_I,CI,TI,wI,Yf.Error],ld={maxDepth:20,plugins:Jv},Zv={callToJSON:!1,maxDepth:8,plugins:Jv};function RI(e,t,r){if(Object.is(e,t))return"";let n=Pg(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Pg(t)){let i=function(S){return S.length<=v?S:`${S.slice(0,v)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=Sn(r),g=sd(Zv,r),m=Qt(e,g),y=Qt(t,g),v=1e5;m=i(m),y=i(y);let b=`${s(`${u} ${l}:`)}
105
+ ${m}`,E=`${d(`${f} ${c}:`)}
106
+ ${y}`;return`${b}
107
+
108
+ ${E}`}if(!a)switch(n){case"string":return jl(e.split(`
109
+ `),t.split(`
110
+ `),r);case"boolean":case"number":return DI(e,t,r);case"map":return ks(Lg(e),Lg(t),r);case"set":return ks(kg(e),kg(t),r);default:return ks(e,t,r)}}function DI(e,t,r){let n=Qt(e,ld),o=Qt(t,ld);return n===o?"":jl(n.split(`
111
+ `),o.split(`
112
+ `),r)}function Lg(e){return new Map(Array.from(e.entries()).sort())}function kg(e){return new Set(Array.from(e.values()).sort())}function ks(e,t,r){let n,o=!1;try{let i=sd(ld,r);n=Ng(e,t,i,r)}catch{o=!0}let a=id(Kv,r);if(n===void 0||n===a){let i=sd(Zv,r);n=Ng(e,t,i,r),n!==a&&!o&&(n=`${id(aI,r)}
113
+
114
+ ${n}`)}return n}function sd(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Sn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Ng(e,t,r,n){let o={...r,indent:0},a=Qt(e,o),i=Qt(t,o);if(a===i)return id(Kv,n);{let l=Qt(e,r),s=Qt(t,r);return yI(l.split(`
115
+ `),s.split(`
116
+ `),a.split(`
117
+ `),i.split(`
118
+ `),n)}}var Mg=2e4;function Bg(e){return od(e)==="Object"&&typeof e.asymmetricMatch=="function"}function jg(e,t){let r=od(e),n=od(t);return r===n&&(r==="Object"||r==="Array")}function PI(e,t,r){let{aAnnotation:n,bAnnotation:o}=Sn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Mg&&e.length<=Mg&&t!==e){if(t.includes(`
119
+ `)||e.includes(`
120
+ `))return $I(t,e,r);let[u]=Xv(t,e),c=u.some(m=>m[0]===Te),d=II(n,o),f=d(n)+kI(Hg(u,Xe,c)),g=d(o)+LI(Hg(u,Ke,c));return`${f}
121
+ ${g}`}let a=Cg(t,{forceWritable:!0}),i=Cg(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=Qv(i,a);return RI(l,s,r)}function Qv(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}):jg(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Bv(t).forEach(o=>{let a=t[o],i=e[o];if(Bg(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Bg(i))i.asymmetricMatch(a)&&(t[o]=i);else if(jg(i,a)){let l=Qv(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function II(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var FI="·";function eE(e){return e.replace(/\s+$/gm,t=>FI.repeat(t.length))}function LI(e){return gr.red(eE(ta(e)))}function kI(e){return gr.green(eE(ta(e)))}function Hg(e,t,r){return e.reduce((n,o)=>n+(o[0]===Te?o[1]:o[0]===t?r?gr.inverse(o[1]):o[1]:""),"")}var NI="@@__IMMUTABLE_RECORD__@@",MI="@@__IMMUTABLE_ITERABLE__@@";function BI(e){return e&&(e[MI]||e[NI])}var jI=Object.getPrototypeOf({});function Ug(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Dr(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"&&Ka(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Ka(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Ka(()=>r.name??(r.name=e.name)),e.cause!=null&&Ka(()=>r.cause??(r.cause=Dr(e.cause,t)))),Dr(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(BI(e))return Dr(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()} ${X3(e.sample)}`;if(typeof e.toJSON=="function")return Dr(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]=Dr(n,t)}catch(a){r[o]=Ug(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==jI;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Dr(e[o],t)}catch(a){delete r[o],r[o]=Ug(a)}}),n=Object.getPrototypeOf(n);return r}}function Ka(e){try{return e()}catch{}}function HI(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function tE(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=PI(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=ta(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=ta(n.actual,10));try{typeof n.message=="string"&&(n.message=HI(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=tE(n.cause,t,r))}catch{}try{return Dr(n)}catch(o){return Dr(new Error(`Failed to fully serialize error: ${o?.message}
122
+ Inner error message: ${n?.message}`))}}const{once:UI}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Kg,SET_CURRENT_STORY:KI,STORY_RENDER_PHASE_CHANGED:zI}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:wt}=__STORYBOOK_MODULE_GLOBAL__;var Ns=globalThis.__STORYBOOK_ADDONS_PREVIEW,GI=new Error("This function ran after the play function completed. Did you forget to `await` it?"),zg=e=>Object.prototype.toString.call(e)==="[object Object]",WI=e=>Object.prototype.toString.call(e)==="[object Module]",VI=e=>{if(!zg(e)&&!WI(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!zg(t)},qI=e=>{try{return new e.constructor}catch{return{}}},Ms=()=>({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}),Gg=(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}},YI=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=wt.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{wt.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,{...Ms(),...Gg(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(g=>g.id===c[0].callId);return{playUntil:d.slice(0,f).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),l.emit(Kg,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{let u=this.getLog(s).filter(d=>!d.ancestors?.length),c=u.reduceRight((d,f,g)=>d>=0||f.status==="waiting"?d:g,-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),g=c.find(({id:y})=>y===u),m=d.find(({id:y})=>y===u);if(!g&&m&&Object.values(f).length>0){let y=this.getLog(s).find(v=>v.status==="waiting")?.callId;m.id!==y&&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}):a({storyId:s})}},a=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},i=({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)};Ns&&Ns.ready().then(()=>{this.channel=Ns.getChannel(),this.channel.on(Kg,e),this.channel.on(zI,i),this.channel.on(KI,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(sr.START,t(this.channel)),this.channel.on(sr.BACK,r(this.channel)),this.channel.on(sr.GOTO,n(this.channel)),this.channel.on(sr.NEXT,o(this.channel)),this.channel.on(sr.END,a)})}getState(e){return this.state[e]||Ms()}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=Gg(n);return o&&(t[r]=Object.assign(Ms(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(sr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,i)=>{n[i]=a});let o=new Set;return n.reduceRight((a,i)=>(i.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),i.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(e,t,r=0){if(!VI(e))return e;let{mutate:n=!1,path:o=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((i,l)=>{let s=JI(e,l);if(typeof s?.get=="function"){if(s.configurable){let c=()=>s?.get?.bind(e)?.();Object.defineProperty(i,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return i}let u=e[l];return typeof u!="function"?(i[l]=this.instrument(u,{...t,path:o.concat(l)},r),i):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(i[l]=u,i):(i[l]=(...c)=>this.track(l,u,e,c,t),i[l].__originalFn__=u,Object.defineProperty(i[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(i[l],this.instrument({...u},{...t,path:o.concat(l)},r)),i)},n?e:qI(e))}track(e,t,r,n,o){let a=n?.[0]?.__storyId__||wt.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:i,ancestors:l}=this.getState(a);this.setState(a,{cursor:i+1});let s=`${l.slice(-1)[0]||a} [${i}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,g={id:s,cursor:i,storyId:a,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},m=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,g,o);return this.instrument(m,{...o,mutate:!0,path:[{__callId__:g.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:a,playUntil:i}=this.getState(r.storyId),l=o.has(r.id);return!a||l||i?(i===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:a}=this.getState(r.storyId),i=25,l=(c,d,f)=>{if(f.includes(c))return"[Circular]";if(f=[...f,c],d>i)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(g=>l(g,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:g,message:m,stack:y}=c;return{__error__:{name:g,message:m,stack:y}}}if(c instanceof RegExp){let{flags:g,source:m}=c;return{__regexp__:{flags:g,source:m}}}if(c instanceof wt.window?.HTMLElement){let{prefix:g,localName:m,id:y,classList:v,innerText:b}=c,E=Array.from(v);return{__element__:{prefix:g,localName:m,id:y,classNames:E,innerText:b}}}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(([g,m])=>[g,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:g,callId:m=r.id}=c,{showDiff:y=void 0,diff:v=void 0,actual:b=void 0,expected:E=void 0}=c.name==="AssertionError"?tE(c):c,S={name:d,message:f,stack:g,callId:m,showDiff:y,diff:v,actual:b,expected:E};if(this.update({...s,status:"error",exception:S}),this.setState(r.storyId,x=>({callRefsByResult:new Map([...Array.from(x.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(a==="played"&&!r.retain)throw GI;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||ZI(f)||Object.keys(f).length?f:(...g)=>{let{cursor:m,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let v=()=>this.setState(r.storyId,{cursor:m,ancestors:y}),b=!1;try{let E=f(...g);return E instanceof Promise?(b=!0,E.finally(v)):E}finally{b||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(sr.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),a=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting")?.callId,i=o.some(u=>u.status==="active");if(this.detached||r||i||o.length===0){let u={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(sr.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:a};this.channel?.emit(sr.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function XI(e,t={}){try{let r=!1,n=!1;return wt.window?.location?.search?.includes("instrument=true")?r=!0:wt.window?.location?.search?.includes("instrument=false")&&(n=!0),wt.window?.parent===wt.window&&!r||n?e:(wt.window&&!wt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(wt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new YI),(wt.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return UI.warn(r),e}}function JI(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ZI(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var QI=vr({"../../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,a){return(function i(l,s,u){var c,d,f,g=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),g!=m||(c=n(l),d=n(s),c.length!=d.length||c.some(function(y){return!i(l[y],s[y],u)})))return!1;switch(g.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(!i((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||!i(l[f],s[f],u)))return!1;return!0;case"Object":return i(r(l),r(s),u);default:return!1}})(o,a,[])}})()}}),Wg=yt(QI(),1),rE=e=>e.map(t=>typeof t<"u").filter(Boolean).length,e4=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(rE([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Wg.isEqual)(t,n);if(typeof o<"u")return!(0,Wg.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},t4=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(rE([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return e4(e.if,a)},r4={};We(r4,{argsEnhancers:()=>a4});var nE=(e,t)=>typeof t[e]>"u"&&!(e in t),n4=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[l,s])=>(nE(l,t)&&(i[l]=Hf(l,{implicit:!0,id:n})),i),{})},o4=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(nE(a,t)&&(o[a]=Hf(typeof i.action=="string"?i.action:a)),o),{})},a4=[o4,n4],i4={};We(i4,{loaders:()=>u4});const{onMockCall:l4}=__STORYBOOK_MODULE_TEST__;var Vg=!1,s4=e=>{let{parameters:t}=e;t?.actions?.disable||Vg||(l4((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/link::Link","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>o.startsWith(a)))&&Hf(o)(n)}),Vg=!0)},u4=[s4];const{useEffect:qg}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:kt}=globalThis,c4=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Yg=e=>{(Array.isArray(e)?e:[e]).forEach(d4)},d4=e=>{if(!kt)return;let t=kt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},f4=(e,t)=>{if(!kt)return;let r=kt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=kt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,kt.head.appendChild(n)}},p4=(e,t,r)=>{if(!kt)return;let n=kt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=kt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=kt.getElementById(a);i?i.parentElement?.insertBefore(o,i):kt.head.appendChild(o)}},h4={cellSize:100,cellAmount:10,opacity:.8},Xg="addon-backgrounds",Jg="addon-backgrounds-grid",g4=c4()?"":"transition: background-color 0.3s;",m4=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=X2,disable:l,grid:s=h4}=n[Qh]||{},u=r[Qh]||{},c=typeof u=="string"?u:u?.value,d=c?i[c]:void 0,f=typeof d=="string"?d:d?.value||"transparent",g=typeof u=="string"?!1:u.grid||!1,m=!!d&&!l,y=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",E=o==="docs"?20:b?16:0,{cellAmount:S,cellSize:x,opacity:C,offsetX:$=E,offsetY:T=E}=s,O=o==="docs"?`${Xg}-docs-${a}`:`${Xg}-color`,L=o==="docs"?a:null;qg(()=>{let _=`
123
+ ${y} {
124
+ background: ${f} !important;
125
+ ${g4}
126
+ }`;if(!m){Yg(O);return}p4(O,_,L)},[y,O,L,m,f]);let I=o==="docs"?`${Jg}-docs-${a}`:`${Jg}`;return qg(()=>{if(!g){Yg(I);return}let _=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),N=`
127
+ ${v} {
128
+ background-size: ${_} !important;
129
+ background-position: ${$}px ${T}px, ${$}px ${T}px, ${$}px ${T}px, ${$}px ${T}px !important;
130
+ background-blend-mode: difference !important;
131
+ background-image: linear-gradient(rgba(130, 130, 130, ${C}) 1px, transparent 1px),
132
+ linear-gradient(90deg, rgba(130, 130, 130, ${C}) 1px, transparent 1px),
133
+ linear-gradient(rgba(130, 130, 130, ${C/2}) 1px, transparent 1px),
134
+ linear-gradient(90deg, rgba(130, 130, 130, ${C/2}) 1px, transparent 1px) !important;
135
+ }
136
+ `;f4(I,N)},[S,x,v,I,g,$,T,C]),e()};globalThis.FEATURES?.backgrounds;var{step:UJ}=XI({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:Zg}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:y4}=__STORYBOOK_MODULE_CORE_EVENTS__;var Qg={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"]},b4="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Le=(e,t={},r)=>{let n=b4.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},za=e=>Qg[e]&&Le("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Qg[e].map(t=>Le("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),v4=e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${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}},E4=e=>e instanceof Function,_o=new Map,zr=new Map,Ga=new Map,cr=e=>{let t=Symbol();return zr.set(t,[]),_o.set(t,e),{get:()=>_o.get(t),set:r=>{let n=_o.get(t),o=E4(r)?r(n):r;o!==n&&(_o.set(t,o),zr.get(t)?.forEach(a=>{Ga.get(a)?.(),Ga.set(a,a(o))}))},subscribe:r=>(zr.get(t)?.push(r),()=>{let n=zr.get(t);n&&zr.set(t,n.filter(o=>o!==r))}),teardown:()=>{zr.get(t)?.forEach(r=>{Ga.get(r)?.(),Ga.delete(r)}),zr.delete(t),_o.delete(t)}}},em=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let l of i){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((s?.selectors||[]).concat(a)))})}}}return r},S4=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{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:a,menu:i,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),tm=(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},rm=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<Or&&(o=o-Math.round((Or-i)/2),i=Or),a<Or&&(n=n-Math.round((Or-a)/2),a=Or),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+a&&s>=o&&s<=o+i},x4=(e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=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-a-i+u),g=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,d-g-a),g+a):Math.max(Math.min(n,d-g-a+s),g+a+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...f!==o&&{top:`${f}px`}})},nm=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},$4=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},w4=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}}),Se="storybook-highlights-menu",om="storybook-highlights-root",C4="storybook-root",_4=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=cr([]),n=cr(new Map),o=cr([]),a=cr(),i=cr(),l=cr([]),s=cr([]),u=cr(),c=cr(),d=t.getElementById(om);r.subscribe(()=>{d||(d=Le("div",{id:om}),t.body.appendChild(d))}),r.subscribe(T=>{let O=t.getElementById(C4);if(!O)return;n.set(em(T));let L=new MutationObserver(()=>n.set(em(T)));return L.observe(O,{subtree:!0,childList:!0}),()=>{L.disconnect()}}),n.subscribe(T=>{let O=()=>requestAnimationFrame(()=>o.set(S4(T))),L=new ResizeObserver(O);L.observe(t.body),Array.from(T.keys()).forEach(_=>L.observe(_));let I=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:N,overflowX:B,overflowY:w}=window.getComputedStyle(_);return["auto","scroll"].some(R=>[N,B,w].includes(R))});return I.forEach(_=>_.addEventListener("scroll",O)),()=>{L.disconnect(),I.forEach(_=>_.removeEventListener("scroll",O))}}),n.subscribe(T=>{let O=Array.from(T.keys()).filter(({style:I})=>I.position==="sticky"),L=()=>requestAnimationFrame(()=>{o.set(I=>I.map(_=>{if(O.includes(_.element)){let{top:N,left:B}=_.element.getBoundingClientRect();return{..._,top:N+window.scrollY,left:B+window.scrollX}}return _}))});return t.addEventListener("scroll",L),()=>t.removeEventListener("scroll",L)}),n.subscribe(T=>{l.set(O=>O.filter(({element:L})=>T.has(L)))}),l.subscribe(T=>{T.length?(c.set(O=>T.some(L=>L.element===O?.element)?O:void 0),u.set(O=>T.some(L=>L.element===O?.element)?O:void 0)):(c.set(void 0),u.set(void 0),a.set(void 0))});let f=new Map(new Map);r.subscribe(T=>{T.forEach(({keyframes:O})=>{if(O){let L=f.get(O);L||(L=t.createElement("style"),L.setAttribute("data-highlight","keyframes"),f.set(O,L),t.head.appendChild(L)),L.innerHTML=O}}),f.forEach((O,L)=>{T.some(I=>I.keyframes===L)||(O.remove(),f.delete(L))})});let g=new Map(new Map);o.subscribe(T=>{T.forEach(O=>{let L=g.get(O.element);if(d&&!L){let I={popover:"manual","data-highlight-dimensions":`w${O.width.toFixed(0)}h${O.height.toFixed(0)}`,"data-highlight-coordinates":`x${O.left.toFixed(0)}y${O.top.toFixed(0)}`};L=d.appendChild(Le("div",I,[Le("div")])),g.set(O.element,L)}}),g.forEach((O,L)=>{T.some(({element:I})=>I===L)||(O.remove(),g.delete(L))})}),o.subscribe(T=>{let O=T.filter(I=>I.menu);if(!O.length)return;let L=I=>{requestAnimationFrame(()=>{let _=t.getElementById(Se),N={x:I.pageX,y:I.pageY};if(_&&!tm(_,N)){let B=O.filter(w=>{let R=g.get(w.element);return rm(w,R,N)});a.set(B.length?N:void 0),l.set(B)}})};return t.addEventListener("click",L),()=>t.removeEventListener("click",L)});let m=()=>{let T=t.getElementById(Se),O=i.get();!O||T&&tm(T,O)||s.set(L=>{let I=o.get().filter(w=>{let R=g.get(w.element);return rm(w,R,O)}),_=L.filter(w=>I.includes(w)),N=I.filter(w=>!L.includes(w)),B=L.length-_.length;return N.length||B?[..._,...N]:L})};i.subscribe(m),o.subscribe(m);let y=()=>{let T=c.get(),O=T?[T]:l.get(),L=O.length===1?O[0]:u.get(),I=a.get()!==void 0;o.get().forEach(_=>{let N=g.get(_.element);if(N){let B=L===_,w=I?L?B:O.includes(_):s.get()?.includes(_);Object.assign(N.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...w?_.hoverStyles:{},...B?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:mh-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&w?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(N.children[0].style,{width:"100%",height:"100%",minHeight:`${Or}px`,minWidth:`${Or}px`,boxSizing:"content-box",padding:N.style.outlineWidth||"0px"}),nm(N)}})};o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),c.subscribe(y);let v=()=>{if(!d)return;let T=t.getElementById(Se);if(T)T.innerHTML="";else{let _={id:Se,popover:"manual"};T=d.appendChild(Le("div",_)),d.appendChild(Le("style",{},[`
137
+ #${Se} {
138
+ position: absolute;
139
+ z-index: ${mh};
140
+ width: 300px;
141
+ padding: 0px;
142
+ margin: 15px 0 0 0;
143
+ transform: translateX(-50%);
144
+ font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
145
+ font-size: 12px;
146
+ background: white;
147
+ border: none;
148
+ border-radius: 6px;
149
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
150
+ color: #2E3438;
151
+ }
152
+ #${Se} ul {
153
+ list-style: none;
154
+ margin: 0;
155
+ padding: 0;
156
+ }
157
+ #${Se} > ul {
158
+ max-height: 300px;
159
+ overflow-y: auto;
160
+ padding: 4px 0;
161
+ }
162
+ #${Se} li {
163
+ padding: 0 4px;
164
+ margin: 0;
165
+ }
166
+ #${Se} li > :not(ul) {
167
+ display: flex;
168
+ padding: 8px;
169
+ margin: 0;
170
+ align-items: center;
171
+ gap: 8px;
172
+ border-radius: 4px;
173
+ }
174
+ #${Se} button {
175
+ width: 100%;
176
+ border: 0;
177
+ background: transparent;
178
+ color: inherit;
179
+ text-align: left;
180
+ font-family: inherit;
181
+ font-size: inherit;
182
+ }
183
+ #${Se} button:focus-visible {
184
+ outline-color: #029CFD;
185
+ }
186
+ #${Se} button:hover {
187
+ background: rgba(2, 156, 253, 0.07);
188
+ color: #029CFD;
189
+ cursor: pointer;
190
+ }
191
+ #${Se} li code {
192
+ white-space: nowrap;
193
+ overflow: hidden;
194
+ text-overflow: ellipsis;
195
+ line-height: 16px;
196
+ font-size: 11px;
197
+ }
198
+ #${Se} li svg {
199
+ flex-shrink: 0;
200
+ margin: 1px;
201
+ color: #73828C;
202
+ }
203
+ #${Se} li > button:hover svg, #${Se} li > button:focus-visible svg {
204
+ color: #029CFD;
205
+ }
206
+ #${Se} .element-list li svg {
207
+ display: none;
208
+ }
209
+ #${Se} li.selectable svg, #${Se} li.selected svg {
210
+ display: block;
211
+ }
212
+ #${Se} .menu-list {
213
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
214
+ }
215
+ #${Se} .menu-list > li:not(:last-child) {
216
+ padding-bottom: 4px;
217
+ margin-bottom: 4px;
218
+ border-bottom: 1px solid rgba(38, 85, 115, 0.15);
219
+ }
220
+ #${Se} .menu-items, #${Se} .menu-items li {
221
+ padding: 0;
222
+ }
223
+ #${Se} .menu-item {
224
+ display: flex;
225
+ }
226
+ #${Se} .menu-item-content {
227
+ display: flex;
228
+ flex-direction: column;
229
+ flex-grow: 1;
230
+ }
231
+ `]))}let O=c.get(),L=O?[O]:l.get();if(L.length&&(T.style.position=getComputedStyle(L[0].element).position==="fixed"?"fixed":"absolute",T.appendChild(Le("ul",{class:"element-list"},L.map(_=>{let N=L.length>1&&!!_.menu?.some(R=>R.some(P=>!P.selectors||P.selectors.some(A=>_.selectors.includes(A)))),B=N?{class:"selectable",onClick:()=>c.set(_),onMouseEnter:()=>u.set(_),onMouseLeave:()=>u.set(void 0)}:O?{class:"selected",onClick:()=>c.set(void 0)}:{},w=N||O;return Le("li",B,[Le(w?"button":"div",w?{type:"button"}:{},[O?za("chevronLeft"):null,Le("code",{},[_.element.outerHTML]),N?za("chevronRight"):null])])})))),c.get()||l.get().length===1){let _=c.get()||l.get()[0],N=_.menu?.filter(B=>B.some(w=>!w.selectors||w.selectors.some(R=>_.selectors.includes(R))));N?.length&&T.appendChild(Le("ul",{class:"menu-list"},N.map(B=>Le("li",{},[Le("ul",{class:"menu-items"},B.map(({id:w,title:R,description:P,iconLeft:A,iconRight:D,clickEvent:M})=>{let k=M&&(()=>e.emit(M,w,w4(_)));return Le("li",{},[Le(k?"button":"div",k?{class:"menu-item",type:"button",onClick:k}:{class:"menu-item"},[A?za(A):null,Le("div",{class:"menu-item-content"},[Le(P?"strong":"span",{},[R]),P&&Le("span",{},[P])]),D?za(D):null])])}))]))))}let I=a.get();I?(Object.assign(T.style,{display:"block",left:`${T.style.position==="fixed"?I.x-window.scrollX:I.x}px`,top:`${T.style.position==="fixed"?I.y-window.scrollY:I.y}px`}),nm(T),requestAnimationFrame(()=>x4(T,I,{topOffset:15,centered:!0}))):($4(T),Object.assign(T.style,{display:"none"}))};l.subscribe(v),c.subscribe(v);let b=T=>{let O=v4(T);r.set(L=>{let I=O.id?L.filter(_=>_.id!==O.id):L;return O.selectors?.length?[...I,O]:I})},E=T=>{T&&r.set(O=>O.filter(L=>L.id!==T))},S=()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},x,C=(T,O)=>{let L="scrollIntoView-highlight";clearTimeout(x),E(L);let I=t.querySelector(T);if(!I){console.warn(`Cannot scroll into view: ${T} not found`);return}I.scrollIntoView({behavior:"smooth",block:"center",...O});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(N=>[...N,{id:L,priority:1e3,selectors:[T],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} {
232
+ 0% { outline: 2px solid #1EA7FD; }
233
+ 20% { outline: 2px solid #1EA7FD00; }
234
+ 40% { outline: 2px solid #1EA7FD; }
235
+ 60% { outline: 2px solid #1EA7FD00; }
236
+ 80% { outline: 2px solid #1EA7FD; }
237
+ 100% { outline: 2px solid #1EA7FD00; }
238
+ }`}]),x=setTimeout(()=>E(L),3500)},$=T=>{requestAnimationFrame(()=>i.set({x:T.pageX,y:T.pageY}))};t.body.addEventListener("mousemove",$),e.on(p_,b),e.on(h_,E),e.on(g_,S),e.on(m_,C),e.on(y4,({newPhase:T})=>{T==="loading"&&S()})};globalThis?.FEATURES?.highlight&&Zg?.ready&&Zg.ready().then(_4);const{useEffect:am}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Zi}=__STORYBOOK_MODULE_GLOBAL__;function oE(){let e=Zi.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function T4(){let e=Zi.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");td(t!=null);let{width:r,height:n}=oE();return ud(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",Zi.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function ud(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=Zi.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var ke={};function O4(){ke.canvas||(ke=T4())}function aE(){ke.context&&ke.context.clearRect(0,0,ke.width??0,ke.height??0)}function A4(e){aE(),e(ke.context)}function R4(){td(ke.canvas),td(ke.context),ud(ke.canvas,ke.context,{width:0,height:0});let{width:e,height:t}=oE();ud(ke.canvas,ke.context,{width:e,height:t}),ke.width=e,ke.height=t}function D4(){ke.canvas&&(aE(),ke.canvas.parentNode?.removeChild(ke.canvas),ke={})}const{global:Lt}=__STORYBOOK_MODULE_GLOBAL__;var An={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},mr=6;function im(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}function P4(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,c=a+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 I4(e,t,{margin:r,border:n,padding:o},a,i){let l=f=>0,s=0,u=0,c=i?1:.5,d=i?a*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 F4(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 L4(e,t,r){return e==="top"?t.y=r.y-r.h-mr:e==="right"?t.x=r.x+r.w/2+mr+t.w/2:e==="bottom"?t.y=r.y+r.h+mr:e==="left"&&(t.x=r.x-r.w/2-mr-t.w/2),{x:t.x,y:t.y}}function iE(e,t,{x:r,y:n,w:o,h:a},i){return im(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${An[t]}dd`,e.fill(),e.strokeStyle=An[t],e.stroke(),e.fillStyle=An.text,e.fillText(i,r,n),im(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${An[t]}dd`,e.fill(),e.strokeStyle=An[t],e.stroke(),e.fillStyle=An.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}function lE(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+mr*2,a=n+mr*2;return{w:o,h:a}}function k4(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:l,y:s}=P4(n,t),{offsetX:u,offsetY:c}=I4(r,n,t,mr+1,i);l+=u,s+=c;let{w:d,h:f}=lE(e,o);if(a&&F4({x:l,y:s,w:d,h:f},a)){let g=L4(n,{x:l,y:s,w:d},a);l=g.x,s=g.y}return iE(e,r,{x:l,y:s,w:d,h:f},o)}function N4(e,{w:t,h:r}){let n=t*.5+mr,o=r*.5+mr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function M4(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],l=a[o.y],{w:s,h:u}=lE(e,n),{offsetX:c,offsetY:d}=N4(o,{w:s,h:u});return i+=c,l+=d,iE(e,r,{x:i,y:l,w:s,h:u},n)}function To(e,t,r,n){let o=[];r.forEach((a,i)=>{let l=n&&a.position==="center"?M4(e,t,a):k4(e,t,a,o[i-1],n);o[i]=l})}function B4(e,t,r,n){let o=r.reduce((a,i)=>(Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),a[i.position]?.push(i),a),{});o.top&&To(e,t,o.top,n),o.right&&To(e,t,o.right,n),o.bottom&&To(e,t,o.bottom,n),o.left&&To(e,t,o.left,n),o.center&&To(e,t,o.center,n)}var Hl={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},lm=30;function xt(e){return parseInt(e.replace("px",""),10)}function Nn(e){return Number.isInteger(e)?e:e.toFixed(2)}function Zf(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function j4(e){let t={top:Lt.window.scrollY,bottom:Lt.window.scrollY+Lt.window.innerHeight,left:Lt.window.scrollX,right:Lt.window.scrollX+Lt.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 H4(e){let t=Lt.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:g,paddingLeft:m,paddingRight:y,borderBottomWidth:v,borderTopWidth:b,borderLeftWidth:E,borderRightWidth:S}=t;r=r+Lt.window.scrollY,n=n+Lt.window.scrollX,a=a+Lt.window.scrollY,o=o+Lt.window.scrollX;let x={top:xt(s),bottom:xt(u),left:xt(c),right:xt(d)},C={top:xt(f),bottom:xt(g),left:xt(m),right:xt(y)},$={top:xt(b),bottom:xt(v),left:xt(E),right:xt(S)},T={top:r-x.top,bottom:a+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:C,border:$,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:T,floatingAlignment:j4(T)}}function U4(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=Hl.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:Nn(t.top),position:"top"},{type:"margin",text:Nn(t.right),position:"right"},{type:"margin",text:Nn(t.bottom),position:"bottom"},{type:"margin",text:Nn(t.left),position:"left"}];return Zf(u)}function K4(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Hl.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(s-t.right-r.right,a+t.top+r.top,t.right,c),e.fillRect(i+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+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 Zf(d)}function z4(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=Hl.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,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 Zf(u)}function G4(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Hl.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Nn(l)} x ${Nn(s)}`}]}function W4(e){return t=>{if(e&&t){let r=H4(e),n=U4(t,r),o=K4(t,r),a=z4(t,r),i=G4(t,r),l=r.width<=lm*3||r.height<=lm;B4(t,r,[...i,...o,...a,...n],l)}}}function V4(e){A4(W4(e))}const{global:q4}=__STORYBOOK_MODULE_GLOBAL__;var Y4=(e,t)=>{let r=q4.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o};return n(r)||r},sm,Wa={x:0,y:0};function um(e,t){sm=Y4(e,t),V4(sm)}var X4=(e,t)=>{let{measureEnabled:r}=t.globals||{},n=r&&!t.parameters?.measure?.disable;return am(()=>{if(typeof globalThis.document>"u")return;let o=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),Wa.x=a.clientX,Wa.y=a.clientY})};return globalThis.document.addEventListener("pointermove",o),()=>{globalThis.document.removeEventListener("pointermove",o)}},[]),am(()=>{let o=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),um(i.clientX,i.clientY)})},a=()=>{window.requestAnimationFrame(()=>{R4()})};return t.viewMode==="story"&&n&&(globalThis.document.addEventListener("pointerover",o),O4(),globalThis.window.addEventListener("resize",a),um(Wa.x,Wa.y)),()=>{globalThis.window.removeEventListener("resize",a),D4()}},[n,t.viewMode]),e()};globalThis.FEATURES?.measure;const{useEffect:J4,useMemo:Z4}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Si}=__STORYBOOK_MODULE_GLOBAL__;var cm=e=>{(Array.isArray(e)?e:[e]).forEach(Q4)},Q4=e=>{let t=typeof e=="string"?e:e.join(""),r=Si.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},eF=(e,t)=>{let r=Si.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Si.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Si.document.head.appendChild(n)}};function tF(e){return Ct`
239
+ ${e} body {
240
+ outline: 1px solid #2980b9 !important;
241
+ }
242
+
243
+ ${e} article {
244
+ outline: 1px solid #3498db !important;
245
+ }
246
+
247
+ ${e} nav {
248
+ outline: 1px solid #0088c3 !important;
249
+ }
250
+
251
+ ${e} aside {
252
+ outline: 1px solid #33a0ce !important;
253
+ }
254
+
255
+ ${e} section {
256
+ outline: 1px solid #66b8da !important;
257
+ }
258
+
259
+ ${e} header {
260
+ outline: 1px solid #99cfe7 !important;
261
+ }
262
+
263
+ ${e} footer {
264
+ outline: 1px solid #cce7f3 !important;
265
+ }
266
+
267
+ ${e} h1 {
268
+ outline: 1px solid #162544 !important;
269
+ }
270
+
271
+ ${e} h2 {
272
+ outline: 1px solid #314e6e !important;
273
+ }
274
+
275
+ ${e} h3 {
276
+ outline: 1px solid #3e5e85 !important;
277
+ }
278
+
279
+ ${e} h4 {
280
+ outline: 1px solid #449baf !important;
281
+ }
282
+
283
+ ${e} h5 {
284
+ outline: 1px solid #c7d1cb !important;
285
+ }
286
+
287
+ ${e} h6 {
288
+ outline: 1px solid #4371d0 !important;
289
+ }
290
+
291
+ ${e} main {
292
+ outline: 1px solid #2f4f90 !important;
293
+ }
294
+
295
+ ${e} address {
296
+ outline: 1px solid #1a2c51 !important;
297
+ }
298
+
299
+ ${e} div {
300
+ outline: 1px solid #036cdb !important;
301
+ }
302
+
303
+ ${e} p {
304
+ outline: 1px solid #ac050b !important;
305
+ }
306
+
307
+ ${e} hr {
308
+ outline: 1px solid #ff063f !important;
309
+ }
310
+
311
+ ${e} pre {
312
+ outline: 1px solid #850440 !important;
313
+ }
314
+
315
+ ${e} blockquote {
316
+ outline: 1px solid #f1b8e7 !important;
317
+ }
318
+
319
+ ${e} ol {
320
+ outline: 1px solid #ff050c !important;
321
+ }
322
+
323
+ ${e} ul {
324
+ outline: 1px solid #d90416 !important;
325
+ }
326
+
327
+ ${e} li {
328
+ outline: 1px solid #d90416 !important;
329
+ }
330
+
331
+ ${e} dl {
332
+ outline: 1px solid #fd3427 !important;
333
+ }
334
+
335
+ ${e} dt {
336
+ outline: 1px solid #ff0043 !important;
337
+ }
338
+
339
+ ${e} dd {
340
+ outline: 1px solid #e80174 !important;
341
+ }
342
+
343
+ ${e} figure {
344
+ outline: 1px solid #ff00bb !important;
345
+ }
346
+
347
+ ${e} figcaption {
348
+ outline: 1px solid #bf0032 !important;
349
+ }
350
+
351
+ ${e} table {
352
+ outline: 1px solid #00cc99 !important;
353
+ }
354
+
355
+ ${e} caption {
356
+ outline: 1px solid #37ffc4 !important;
357
+ }
358
+
359
+ ${e} thead {
360
+ outline: 1px solid #98daca !important;
361
+ }
362
+
363
+ ${e} tbody {
364
+ outline: 1px solid #64a7a0 !important;
365
+ }
366
+
367
+ ${e} tfoot {
368
+ outline: 1px solid #22746b !important;
369
+ }
370
+
371
+ ${e} tr {
372
+ outline: 1px solid #86c0b2 !important;
373
+ }
374
+
375
+ ${e} th {
376
+ outline: 1px solid #a1e7d6 !important;
377
+ }
378
+
379
+ ${e} td {
380
+ outline: 1px solid #3f5a54 !important;
381
+ }
382
+
383
+ ${e} col {
384
+ outline: 1px solid #6c9a8f !important;
385
+ }
386
+
387
+ ${e} colgroup {
388
+ outline: 1px solid #6c9a9d !important;
389
+ }
390
+
391
+ ${e} button {
392
+ outline: 1px solid #da8301 !important;
393
+ }
394
+
395
+ ${e} datalist {
396
+ outline: 1px solid #c06000 !important;
397
+ }
398
+
399
+ ${e} fieldset {
400
+ outline: 1px solid #d95100 !important;
401
+ }
402
+
403
+ ${e} form {
404
+ outline: 1px solid #d23600 !important;
405
+ }
406
+
407
+ ${e} input {
408
+ outline: 1px solid #fca600 !important;
409
+ }
410
+
411
+ ${e} keygen {
412
+ outline: 1px solid #b31e00 !important;
413
+ }
414
+
415
+ ${e} label {
416
+ outline: 1px solid #ee8900 !important;
417
+ }
418
+
419
+ ${e} legend {
420
+ outline: 1px solid #de6d00 !important;
421
+ }
422
+
423
+ ${e} meter {
424
+ outline: 1px solid #e8630c !important;
425
+ }
426
+
427
+ ${e} optgroup {
428
+ outline: 1px solid #b33600 !important;
429
+ }
430
+
431
+ ${e} option {
432
+ outline: 1px solid #ff8a00 !important;
433
+ }
434
+
435
+ ${e} output {
436
+ outline: 1px solid #ff9619 !important;
437
+ }
438
+
439
+ ${e} progress {
440
+ outline: 1px solid #e57c00 !important;
441
+ }
442
+
443
+ ${e} select {
444
+ outline: 1px solid #e26e0f !important;
445
+ }
446
+
447
+ ${e} textarea {
448
+ outline: 1px solid #cc5400 !important;
449
+ }
450
+
451
+ ${e} details {
452
+ outline: 1px solid #33848f !important;
453
+ }
454
+
455
+ ${e} summary {
456
+ outline: 1px solid #60a1a6 !important;
457
+ }
458
+
459
+ ${e} command {
460
+ outline: 1px solid #438da1 !important;
461
+ }
462
+
463
+ ${e} menu {
464
+ outline: 1px solid #449da6 !important;
465
+ }
466
+
467
+ ${e} del {
468
+ outline: 1px solid #bf0000 !important;
469
+ }
470
+
471
+ ${e} ins {
472
+ outline: 1px solid #400000 !important;
473
+ }
474
+
475
+ ${e} img {
476
+ outline: 1px solid #22746b !important;
477
+ }
478
+
479
+ ${e} iframe {
480
+ outline: 1px solid #64a7a0 !important;
481
+ }
482
+
483
+ ${e} embed {
484
+ outline: 1px solid #98daca !important;
485
+ }
486
+
487
+ ${e} object {
488
+ outline: 1px solid #00cc99 !important;
489
+ }
490
+
491
+ ${e} param {
492
+ outline: 1px solid #37ffc4 !important;
493
+ }
494
+
495
+ ${e} video {
496
+ outline: 1px solid #6ee866 !important;
497
+ }
498
+
499
+ ${e} audio {
500
+ outline: 1px solid #027353 !important;
501
+ }
502
+
503
+ ${e} source {
504
+ outline: 1px solid #012426 !important;
505
+ }
506
+
507
+ ${e} canvas {
508
+ outline: 1px solid #a2f570 !important;
509
+ }
510
+
511
+ ${e} track {
512
+ outline: 1px solid #59a600 !important;
513
+ }
514
+
515
+ ${e} map {
516
+ outline: 1px solid #7be500 !important;
517
+ }
518
+
519
+ ${e} area {
520
+ outline: 1px solid #305900 !important;
521
+ }
522
+
523
+ ${e} a {
524
+ outline: 1px solid #ff62ab !important;
525
+ }
526
+
527
+ ${e} em {
528
+ outline: 1px solid #800b41 !important;
529
+ }
530
+
531
+ ${e} strong {
532
+ outline: 1px solid #ff1583 !important;
533
+ }
534
+
535
+ ${e} i {
536
+ outline: 1px solid #803156 !important;
537
+ }
538
+
539
+ ${e} b {
540
+ outline: 1px solid #cc1169 !important;
541
+ }
542
+
543
+ ${e} u {
544
+ outline: 1px solid #ff0430 !important;
545
+ }
546
+
547
+ ${e} s {
548
+ outline: 1px solid #f805e3 !important;
549
+ }
550
+
551
+ ${e} small {
552
+ outline: 1px solid #d107b2 !important;
553
+ }
554
+
555
+ ${e} abbr {
556
+ outline: 1px solid #4a0263 !important;
557
+ }
558
+
559
+ ${e} q {
560
+ outline: 1px solid #240018 !important;
561
+ }
562
+
563
+ ${e} cite {
564
+ outline: 1px solid #64003c !important;
565
+ }
566
+
567
+ ${e} dfn {
568
+ outline: 1px solid #b4005a !important;
569
+ }
570
+
571
+ ${e} sub {
572
+ outline: 1px solid #dba0c8 !important;
573
+ }
574
+
575
+ ${e} sup {
576
+ outline: 1px solid #cc0256 !important;
577
+ }
578
+
579
+ ${e} time {
580
+ outline: 1px solid #d6606d !important;
581
+ }
582
+
583
+ ${e} code {
584
+ outline: 1px solid #e04251 !important;
585
+ }
586
+
587
+ ${e} kbd {
588
+ outline: 1px solid #5e001f !important;
589
+ }
590
+
591
+ ${e} samp {
592
+ outline: 1px solid #9c0033 !important;
593
+ }
594
+
595
+ ${e} var {
596
+ outline: 1px solid #d90047 !important;
597
+ }
598
+
599
+ ${e} mark {
600
+ outline: 1px solid #ff0053 !important;
601
+ }
602
+
603
+ ${e} bdi {
604
+ outline: 1px solid #bf3668 !important;
605
+ }
606
+
607
+ ${e} bdo {
608
+ outline: 1px solid #6f1400 !important;
609
+ }
610
+
611
+ ${e} ruby {
612
+ outline: 1px solid #ff7b93 !important;
613
+ }
614
+
615
+ ${e} rt {
616
+ outline: 1px solid #ff2f54 !important;
617
+ }
618
+
619
+ ${e} rp {
620
+ outline: 1px solid #803e49 !important;
621
+ }
622
+
623
+ ${e} span {
624
+ outline: 1px solid #cc2643 !important;
625
+ }
626
+
627
+ ${e} br {
628
+ outline: 1px solid #db687d !important;
629
+ }
630
+
631
+ ${e} wbr {
632
+ outline: 1px solid #db175b !important;
633
+ }`}var rF=(e,t)=>{let r=t.globals||{},n=!t.parameters?.[Jh]?.disable&&[!0,"true"].includes(r[Jh]),o=t.viewMode==="docs",a=Z4(()=>tF(o?'[data-story-block="true"]':".sb-show-main"),[t]);return J4(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?eF(i,a):cm(i),()=>{cm(i)}},[n,a,t]),e()};globalThis.FEATURES?.outline;var sE=jr({name:ue(),message:ue()}),nF=jr({id:ue(),name:ue(),snippet:Ue(ue()),description:Ue(ue()),summary:Ue(ue()),error:Ue(sE)}),oF=jr({id:ue(),name:ue(),path:ue(),import:Ue(ue()),stories:Nl(ue(),nF),error:Ue(sE)});Ue(oF);const{emitTransformCode:KJ,getService:zJ}=__STORYBOOK_MODULE_PREVIEW_API__,{clearAllMocks:GJ,fn:WJ,isMockFunction:VJ,resetAllMocks:qJ,restoreAllMocks:YJ,uninstrumentedUserEvent:XJ,within:JJ}=__STORYBOOK_MODULE_TEST__;var Jn=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),dm=(e,t)=>{let r=Jn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Va=(e,t)=>`${dm(e,"kind")}${t?`--${dm(t,"name")}`:""}`;const{once:aF}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Qf=yt(vn(),1),iF=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,Qf.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(iF)||[];r?Object.assign(t,{viewMode:r,storyId:o,refId:n}):A1(e)&&(t.viewMode="review")}return t});var xi=Symbol("Deeply equal"),cd=(e,t)=>{if(typeof e!=typeof t)return t;if(Xt(e,t))return xi;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=cd(e[a],o);return i!==xi&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return ki(e)&&ki(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=cd(e?.[n],t?.[n]);return o===xi?r:Object.assign(r,{[n]:o})},{}):t},fm=/^[a-zA-Z0-9 _-]*$/,lF=/^-?[0-9]+(\.[0-9]+)?$/,uE=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,cE=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,dd=(e="",t)=>e===null||e===""||!fm.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?fm.test(t)||lF.test(t)||uE.test(t)||cE.test(t):Array.isArray(t)?t.every(r=>dd(e,r)):ki(t)?Object.entries(t).every(([r,n])=>dd(r,n)):!1,fd=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?uE.test(e)?`!hex(${e.slice(1)})`:cE.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(fd):ki(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:fd(n)}),{}):e,sF=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},uF=/%[0-9A-F]{2}/g,pm=(e,t)=>{let r=cd(e,t);if(!r||r===xi)return"";let n=Object.entries(r).reduce((o,[a,i])=>dd(a,i)?Object.assign(o,{[a]:i}):(aF.warn(Ct`
634
+ Omitted potentially unsafe URL args.
635
+
636
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
637
+ `),o),{});return ed(fd(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(uF,sF).split(";").map(o=>o.replace("=",":")).join(";")},cF=(0,Qf.default)(1e3)(e=>e!==void 0?P2(e):{}),ep=e=>cF(e?.search?e.search.slice(1):"");(0,Qf.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:dF}=__STORYBOOK_MODULE_GLOBAL__;function pd(){return pd=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},pd.apply(this,arguments)}var hm;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hm||(hm={}));function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hd(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 dE(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 gm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gm||(gm={}));function gd(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 fF(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?dE(e):e;return{pathname:r?r.startsWith("/")?r:pF(r,t):t,search:hF(n),hash:gF(o)}}function pF(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 Bs(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 fE(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function pE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=dE(e):(o=pd({},e),Tt(!o.pathname||!o.pathname.includes("?"),Bs("?","pathname","search",o)),Tt(!o.pathname||!o.pathname.includes("#"),Bs("#","pathname","hash",o)),Tt(!o.search||!o.search.includes("#"),Bs("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(n||i==null)l=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=fF(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var tp=e=>e.join("/").replace(/\/\/+/g,"/"),hF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var hE=["post","put","patch","delete"];new Set(hE);var yF=["get",...hE];new Set(yF);function md(){return md=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},md.apply(this,arguments)}var rp=p.createContext(null),gE=p.createContext(null);p.createContext(null);var xn=p.createContext(null),mE=p.createContext(null),ba=p.createContext({outlet:null,matches:[],isDataRoute:!1}),bF=p.createContext(null);function vF(e,t){let{relative:r}=t===void 0?{}:t;np()||Tt(!1);let{basename:n,navigator:o}=p.useContext(xn),{hash:a,pathname:i,search:l}=Ul(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:tp([n,i])),o.createHref({pathname:s,search:l,hash:a})}function np(){return p.useContext(mE)!=null}function va(){return np()||Tt(!1),p.useContext(mE).location}function yE(e){p.useContext(xn).static||p.useLayoutEffect(e)}function EF(){let{isDataRoute:e}=p.useContext(ba);return e?OF():SF()}function SF(){np()||Tt(!1);let e=p.useContext(rp),{basename:t,navigator:r}=p.useContext(xn),{matches:n}=p.useContext(ba),{pathname:o}=va(),a=JSON.stringify(fE(n).map(l=>l.pathnameBase)),i=p.useRef(!1);return yE(()=>{i.current=!0}),p.useCallback(function(l,s){if(s===void 0&&(s={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=pE(l,JSON.parse(a),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:tp([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,a,o,e])}p.createContext(null);function Ul(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext(ba),{pathname:o}=va(),a=JSON.stringify(fE(n).map(i=>i.pathnameBase));return p.useMemo(()=>pE(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function xF(){let e=TF(),t=mF(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(xF,null);var bE=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(bE||{}),ra=(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})(ra||{});function $F(e){let t=p.useContext(rp);return t||Tt(!1),t}function wF(e){let t=p.useContext(gE);return t||Tt(!1),t}function CF(e){let t=p.useContext(ba);return t||Tt(!1),t}function op(e){let t=CF(),r=t.matches[t.matches.length-1];return r.route.id||Tt(!1),r.route.id}function _F(){return op(ra.UseRouteId)}function TF(){var e;let t=p.useContext(bF),r=wF(ra.UseRouteError),n=op(ra.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function OF(){let{router:e}=$F(bE.UseNavigateStable),t=op(ra.UseNavigateStable),r=p.useRef(!1);return yE(()=>{r.current=!0}),p.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,md({fromRouteId:t},o)))},[e,t])}var AF=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(AF||{});new Promise(()=>{});function gn(){return gn=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},gn.apply(this,arguments)}function ap(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var $i="get",js="application/x-www-form-urlencoded";function Kl(e){return e!=null&&typeof e.tagName=="string"}function RF(e){return Kl(e)&&e.tagName.toLowerCase()==="button"}function DF(e){return Kl(e)&&e.tagName.toLowerCase()==="form"}function PF(e){return Kl(e)&&e.tagName.toLowerCase()==="input"}function IF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FF(e,t){return e.button===0&&(!t||t==="_self")&&!IF(e)}var qa=null;function LF(){if(qa===null)try{new FormData(document.createElement("form"),0),qa=!1}catch{qa=!0}return qa}var kF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hs(e){return e!=null&&!kF.has(e)?null:e}function NF(e,t){let r,n,o,a,i;if(DF(e)){let l=e.getAttribute("action");n=l?gd(l,t):null,r=e.getAttribute("method")||$i,o=Hs(e.getAttribute("enctype"))||js,a=new FormData(e)}else if(RF(e)||PF(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?gd(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||$i,o=Hs(e.getAttribute("formenctype"))||Hs(l.getAttribute("enctype"))||js,a=new FormData(l,e),!LF()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";a.append(f+"x","0"),a.append(f+"y","0")}else u&&a.append(u,d)}}else{if(Kl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=$i,n=null,o=js,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}var MF=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],BF=["aria-current","caseSensitive","className","end","style","to","children"],jF=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],HF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,KF=p.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:a,state:i,target:l,to:s,preventScrollReset:u}=e,c=ap(e,MF),{basename:d}=p.useContext(xn),f,g=!1;if(typeof s=="string"&&UF.test(s)&&(f=s,HF))try{let b=new URL(window.location.href),E=s.startsWith("//")?new URL(b.protocol+s):new URL(s),S=gd(E.pathname,d);E.origin===b.origin&&S!=null?s=S+E.search+E.hash:g=!0}catch{}let m=vF(s,{relative:n}),y=WF(s,{replace:a,state:i,target:l,preventScrollReset:u,relative:n});function v(b){r&&r(b),b.defaultPrevented||y(b)}return p.createElement("a",gn({},c,{href:f||m,onClick:g||o?r:v,ref:t,target:l}))});p.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:a=!1,style:i,to:l,children:s}=e,u=ap(e,BF),c=Ul(l,{relative:u.relative}),d=va(),f=p.useContext(gE),{navigator:g}=p.useContext(xn),m=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,y=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase());let b=y===m||!a&&y.startsWith(m)&&y.charAt(m.length)==="/",E=v!=null&&(v===m||!a&&v.startsWith(m)&&v.charAt(m.length)==="/"),S=b?r:void 0,x;typeof o=="function"?x=o({isActive:b,isPending:E}):x=[o,b?"active":null,E?"pending":null].filter(Boolean).join(" ");let C=typeof i=="function"?i({isActive:b,isPending:E}):i;return p.createElement(KF,gn({},u,{"aria-current":S,className:x,ref:t,style:C,to:l}),typeof s=="function"?s({isActive:b,isPending:E}):s)});p.forwardRef((e,t)=>{let r=qF();return p.createElement(zF,gn({},e,{submit:r,ref:t}))});var zF=p.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:a=$i,action:i,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=ap(e,jF),f=a.toLowerCase()==="get"?"get":"post",g=YF(i,{relative:u});return p.createElement("form",gn({ref:t,method:f,action:g,onSubmit:r?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let y=m.nativeEvent.submitter,v=y?.getAttribute("formmethod")||a;s(y||m.currentTarget,{method:v,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),yd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(yd||(yd={}));var mm;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mm||(mm={}));function GF(e){let t=p.useContext(rp);return t||Tt(!1),t}function WF(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,l=EF(),s=va(),u=Ul(e,{relative:i});return p.useCallback(c=>{if(FF(c,r)){c.preventDefault();let d=n!==void 0?n:hd(s)===hd(u);l(e,{replace:d,state:o,preventScrollReset:a,relative:i})}},[s,l,u,n,o,r,e,a,i])}function VF(){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 qF(){let{router:e}=GF(yd.UseSubmit),{basename:t}=p.useContext(xn),r=_F();return p.useCallback(function(n,o){o===void 0&&(o={}),VF();let{action:a,method:i,encType:l,formData:s,body:u}=NF(n,t);e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function YF(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=p.useContext(xn),o=p.useContext(ba);o||Tt(!1);let[a]=o.matches.slice(-1),i=gn({},Ul(e||".",{relative:r})),l=va();if(e==null&&(i.search=l.search,a.route.index)){let s=new URLSearchParams(i.search);s.delete("index"),i.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:tp([n,i.pathname])),hd(i)}var{document:ZJ}=dF,Ya={exports:{}},Us,ym;function Ea(){if(ym)return Us;ym=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return Us={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},Us}var Ks,bm;function zl(){if(bm)return Ks;bm=1;var e={};return Ks=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},Ks}var vm;function Sa(){return vm||(vm=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=Ea(),a=zl();t=e.exports={};const i=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",o],[f,n]],m=v=>{for(const[b,E]of g)v=v.split(`${b}*`).join(`${b}{0,${E}}`).split(`${b}+`).join(`${b}{1,${E}}`);return v},y=(v,b,E)=>{const S=m(b),x=d++;a(v,x,b),c[v]=x,s[x]=b,u[x]=S,i[x]=new RegExp(b,E?"g":void 0),l[x]=new RegExp(S,E?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),y("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${f}+`),y("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),y("FULL",`^${s[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),y("LOOSE",`^${s[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),y("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",s[c.COERCE],!0),y("COERCERTLFULL",s[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ya,Ya.exports)),Ya.exports}var zs,Em;function ip(){if(Em)return zs;Em=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return zs=n=>n?typeof n!="object"?e:n:t,zs}var Gs,Sm;function vE(){if(Sm)return Gs;Sm=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const a=e.test(n),i=e.test(o);return a&&i&&(n=+n,o=+o),n===o?0:a&&!i?-1:i&&!a?1:n<o?-1:1};return Gs={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},Gs}var Ws,xm;function Je(){if(xm)return Ws;xm=1;const e=zl(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Ea(),{safeRe:n,t:o}=Sa(),a=ip(),{compareIdentifiers:i}=vE(),l=(u,c)=>{const d=c.split(".");if(d.length>u.length)return!1;for(let f=0;f<d.length;f++)if(i(u[f],d[f])!==0)return!1;return!0};class s{constructor(c,d){if(d=a(d),c instanceof s){if(c.loose===!!d.loose&&c.includePrerelease===!!d.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",c,d),this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease;const f=c.trim().match(d.loose?n[o.LOOSE]:n[o.FULL]);if(!f)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+f[1],this.minor=+f[2],this.patch=+f[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");f[4]?this.prerelease=f[4].split(".").map(g=>{if(/^[0-9]+$/.test(g)){const m=+g;if(m>=0&&m<r)return m}return g}):this.prerelease=[],this.build=f[5]?f[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(c){if(e("SemVer.compare",this.version,this.options,c),!(c instanceof s)){if(typeof c=="string"&&c===this.version)return 0;c=new s(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof s||(c=new s(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof s||(c=new s(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let d=0;do{const f=this.prerelease[d],g=c.prerelease[d];if(e("prerelease compare",d,f,g),f===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(f===void 0)return-1;if(f===g)continue;return i(f,g)}while(++d)}compareBuild(c){c instanceof s||(c=new s(c,this.options));let d=0;do{const f=this.build[d],g=c.build[d];if(e("build compare",d,f,g),f===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(f===void 0)return-1;if(f===g)continue;return i(f,g)}while(++d)}inc(c,d,f){if(c.startsWith("pre")){if(!d&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(d){const g=`-${d}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!g||g[1]!==d)throw new Error(`invalid identifier: ${d}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",d,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",d,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",d,f),this.inc("pre",d,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",d,f),this.inc("pre",d,f);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 g=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[g];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(d===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(g)}}if(d){let m=[d,g];if(f===!1&&(m=[d]),l(this.prerelease,d)){const y=this.prerelease[d.split(".").length];isNaN(y)&&(this.prerelease=m)}else this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Ws=s,Ws}var Vs,$m;function $n(){if($m)return Vs;$m=1;const e=Je();return Vs=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(a){if(!o)return null;throw a}},Vs}var qs,wm;function XF(){if(wm)return qs;wm=1;const e=$n();return qs=(r,n)=>{const o=e(r,n);return o?o.version:null},qs}var Ys,Cm;function JF(){if(Cm)return Ys;Cm=1;const e=$n();return Ys=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},Ys}var Xs,_m;function ZF(){if(_m)return Xs;_m=1;const e=Je();return Xs=(r,n,o,a,i)=>{typeof o=="string"&&(i=a,a=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,a,i).version}catch{return null}},Xs}var Js,Tm;function QF(){if(Tm)return Js;Tm=1;const e=$n();return Js=(r,n)=>{const o=e(r,null,!0),a=e(n,null,!0),i=o.compare(a);if(i===0)return null;const l=i>0,s=l?o:a,u=l?a: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!==a.major?f+"major":o.minor!==a.minor?f+"minor":o.patch!==a.patch?f+"patch":"prerelease"},Js}var Zs,Om;function e6(){if(Om)return Zs;Om=1;const e=Je();return Zs=(r,n)=>new e(r,n).major,Zs}var Qs,Am;function t6(){if(Am)return Qs;Am=1;const e=Je();return Qs=(r,n)=>new e(r,n).minor,Qs}var eu,Rm;function r6(){if(Rm)return eu;Rm=1;const e=Je();return eu=(r,n)=>new e(r,n).patch,eu}var tu,Dm;function n6(){if(Dm)return tu;Dm=1;const e=$n();return tu=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},tu}var ru,Pm;function Ht(){if(Pm)return ru;Pm=1;const e=Je();return ru=(r,n,o)=>new e(r,o).compare(new e(n,o)),ru}var nu,Im;function o6(){if(Im)return nu;Im=1;const e=Ht();return nu=(r,n,o)=>e(n,r,o),nu}var ou,Fm;function a6(){if(Fm)return ou;Fm=1;const e=Ht();return ou=(r,n)=>e(r,n,!0),ou}var au,Lm;function lp(){if(Lm)return au;Lm=1;const e=Je();return au=(r,n,o)=>{const a=new e(r,o),i=new e(n,o);return a.compare(i)||a.compareBuild(i)},au}var iu,km;function i6(){if(km)return iu;km=1;const e=lp();return iu=(r,n)=>r.sort((o,a)=>e(o,a,n)),iu}var lu,Nm;function l6(){if(Nm)return lu;Nm=1;const e=lp();return lu=(r,n)=>r.sort((o,a)=>e(a,o,n)),lu}var su,Mm;function Gl(){if(Mm)return su;Mm=1;const e=Ht();return su=(r,n,o)=>e(r,n,o)>0,su}var uu,Bm;function sp(){if(Bm)return uu;Bm=1;const e=Ht();return uu=(r,n,o)=>e(r,n,o)<0,uu}var cu,jm;function EE(){if(jm)return cu;jm=1;const e=Ht();return cu=(r,n,o)=>e(r,n,o)===0,cu}var du,Hm;function SE(){if(Hm)return du;Hm=1;const e=Ht();return du=(r,n,o)=>e(r,n,o)!==0,du}var fu,Um;function up(){if(Um)return fu;Um=1;const e=Ht();return fu=(r,n,o)=>e(r,n,o)>=0,fu}var pu,Km;function cp(){if(Km)return pu;Km=1;const e=Ht();return pu=(r,n,o)=>e(r,n,o)<=0,pu}var hu,zm;function xE(){if(zm)return hu;zm=1;const e=EE(),t=SE(),r=Gl(),n=up(),o=sp(),a=cp();return hu=(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 a(l,u,c);default:throw new TypeError(`Invalid operator: ${s}`)}},hu}var gu,Gm;function s6(){if(Gm)return gu;Gm=1;const e=Je(),t=$n(),{safeRe:r,t:n}=Sa();return gu=(a,i)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;i=i||{};let l=null;if(!i.rtl)l=a.match(i.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const g=i.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let m;for(;(m=g.exec(a))&&(!l||l.index+l[0].length!==a.length);)(!l||m.index+m[0].length!==l.index+l[0].length)&&(l=m),g.lastIndex=m.index+m[1].length+m[2].length;g.lastIndex=-1}if(l===null)return null;const s=l[2],u=l[3]||"0",c=l[4]||"0",d=i.includePrerelease&&l[5]?`-${l[5]}`:"",f=i.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${s}.${u}.${c}${d}${f}`,i)},gu}var mu,Wm;function u6(){if(Wm)return mu;Wm=1;const e=$n(),t=Ea(),r=Je(),n=(l,s,u)=>{if(!t.RELEASE_TYPES.includes(s))return null;const c=o(l,u);return c&&a(c,s)},o=(l,s)=>{const u=l instanceof r?l.version:l;return e(u,s)},a=(l,s)=>{if(i(s))return l.version;switch(l.prerelease=[],s){case"major":l.minor=0,l.patch=0;break;case"minor":l.patch=0;break}return l.format()},i=l=>l.startsWith("pre");return mu=n,mu}var yu,Vm;function c6(){if(Vm)return yu;Vm=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 a=this.map.keys().next().value;this.delete(a)}this.map.set(r,n)}return this}}return yu=e,yu}var bu,qm;function Ut(){if(qm)return bu;qm=1;const e=/\s+/g;class t{constructor(D,M){if(M=o(M),D instanceof t)return D.loose===!!M.loose&&D.includePrerelease===!!M.includePrerelease?D:new t(D.raw,M);if(D instanceof a)return this.raw=D.value,this.set=[[D]],this.formatted=void 0,this;if(this.options=M,this.loose=!!M.loose,this.includePrerelease=!!M.includePrerelease,this.raw=D.trim().replace(e," "),this.set=this.raw.split("||").map(k=>this.parseRange(k.trim())).filter(k=>k.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const k=this.set[0];if(this.set=this.set.filter(K=>!b(K[0])),this.set.length===0)this.set=[k];else if(this.set.length>1){for(const K of this.set)if(K.length===1&&E(K[0])){this.set=[K];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let D=0;D<this.set.length;D++){D>0&&(this.formatted+="||");const M=this.set[D];for(let k=0;k<M.length;k++)k>0&&(this.formatted+=" "),this.formatted+=M[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(D){D=D.replace(v,"");const k=((this.options.includePrerelease&&m)|(this.options.loose&&y))+":"+D,K=n.get(k);if(K)return K;const j=this.options.loose,z=j?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];D=D.replace(z,R(this.options.includePrerelease)),i("hyphen replace",D),D=D.replace(s[c.COMPARATORTRIM],d),i("comparator trim",D),D=D.replace(s[c.TILDETRIM],f),i("tilde trim",D),D=D.replace(s[c.CARETTRIM],g),i("caret trim",D);let U=D.split(" ").map(q=>x(q,this.options)).join(" ").split(/\s+/).map(q=>w(q,this.options));j&&(U=U.filter(q=>(i("loose invalid filter",q,this.options),!!q.match(s[c.COMPARATORLOOSE])))),i("range list",U);const H=new Map,G=U.map(q=>new a(q,this.options));for(const q of G){if(b(q))return[q];H.set(q.value,q)}H.size>1&&H.has("")&&H.delete("");const W=[...H.values()];return n.set(k,W),W}intersects(D,M){if(!(D instanceof t))throw new TypeError("a Range is required");return this.set.some(k=>S(k,M)&&D.set.some(K=>S(K,M)&&k.every(j=>K.every(z=>j.intersects(z,M)))))}test(D){if(!D)return!1;if(typeof D=="string")try{D=new l(D,this.options)}catch{return!1}for(let M=0;M<this.set.length;M++)if(P(this.set[M],D,this.options))return!0;return!1}}bu=t;const r=c6(),n=new r,o=ip(),a=Wl(),i=zl(),l=Je(),{safeRe:s,src:u,t:c,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:g}=Sa(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:y}=Ea(),v=new RegExp(u[c.BUILD],"g"),b=A=>A.value==="<0.0.0-0",E=A=>A.value==="",S=(A,D)=>{let M=!0;const k=A.slice();let K=k.pop();for(;M&&k.length;)M=k.every(j=>K.intersects(j,D)),K=k.pop();return M},x=(A,D)=>(A=A.replace(s[c.BUILD],""),i("comp",A,D),A=L(A,D),i("caret",A),A=T(A,D),i("tildes",A),A=_(A,D),i("xrange",A),A=B(A,D),i("stars",A),A),C=A=>!A||A.toLowerCase()==="x"||A==="*",$=(A,D,M)=>C(A)&&!C(D)||C(D)&&M&&!C(M),T=(A,D)=>A.trim().split(/\s+/).map(M=>O(M,D)).join(" "),O=(A,D)=>{const M=D.loose?s[c.TILDELOOSE]:s[c.TILDE],k=D.includePrerelease?"-0":"";return A.replace(M,(K,j,z,U,H)=>{i("tilde",A,K,j,z,U,H);let G;return C(j)?G="":C(z)?G=`>=${j}.0.0${k} <${+j+1}.0.0-0`:C(U)?G=`>=${j}.${z}.0${k} <${j}.${+z+1}.0-0`:H?(i("replaceTilde pr",H),G=`>=${j}.${z}.${U}-${H} <${j}.${+z+1}.0-0`):G=`>=${j}.${z}.${U} <${j}.${+z+1}.0-0`,i("tilde return",G),G})},L=(A,D)=>A.trim().split(/\s+/).map(M=>I(M,D)).join(" "),I=(A,D)=>{i("caret",A,D);const M=D.loose?s[c.CARETLOOSE]:s[c.CARET],k=D.includePrerelease?"-0":"";return A.replace(M,(K,j,z,U,H)=>{i("caret",A,K,j,z,U,H);let G;return C(j)?G="":C(z)?G=`>=${j}.0.0${k} <${+j+1}.0.0-0`:C(U)?j==="0"?G=`>=${j}.${z}.0${k} <${j}.${+z+1}.0-0`:G=`>=${j}.${z}.0${k} <${+j+1}.0.0-0`:H?(i("replaceCaret pr",H),j==="0"?z==="0"?G=`>=${j}.${z}.${U}-${H} <${j}.${z}.${+U+1}-0`:G=`>=${j}.${z}.${U}-${H} <${j}.${+z+1}.0-0`:G=`>=${j}.${z}.${U}-${H} <${+j+1}.0.0-0`):(i("no pr"),j==="0"?z==="0"?G=`>=${j}.${z}.${U} <${j}.${z}.${+U+1}-0`:G=`>=${j}.${z}.${U} <${j}.${+z+1}.0-0`:G=`>=${j}.${z}.${U} <${+j+1}.0.0-0`),i("caret return",G),G})},_=(A,D)=>(i("replaceXRanges",A,D),A.split(/\s+/).map(M=>N(M,D)).join(" ")),N=(A,D)=>{A=A.trim();const M=D.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return A.replace(M,(k,K,j,z,U,H)=>{if(i("xRange",A,k,K,j,z,U,H),$(j,z,U))return A;const G=C(j),W=G||C(z),q=W||C(U),ge=q;return K==="="&&ge&&(K=""),H=D.includePrerelease?"-0":"",G?K===">"||K==="<"?k="<0.0.0-0":k="*":K&&ge?(W&&(z=0),U=0,K===">"?(K=">=",W?(j=+j+1,z=0,U=0):(z=+z+1,U=0)):K==="<="&&(K="<",W?j=+j+1:z=+z+1),K==="<"&&(H="-0"),k=`${K+j}.${z}.${U}${H}`):W?k=`>=${j}.0.0${H} <${+j+1}.0.0-0`:q&&(k=`>=${j}.${z}.0${H} <${j}.${+z+1}.0-0`),i("xRange return",k),k})},B=(A,D)=>(i("replaceStars",A,D),A.trim().replace(s[c.STAR],"")),w=(A,D)=>(i("replaceGTE0",A,D),A.trim().replace(s[D.includePrerelease?c.GTE0PRE:c.GTE0],"")),R=A=>(D,M,k,K,j,z,U,H,G,W,q,ge)=>(C(k)?M="":C(K)?M=`>=${k}.0.0${A?"-0":""}`:C(j)?M=`>=${k}.${K}.0${A?"-0":""}`:z?M=`>=${M}`:M=`>=${M}${A?"-0":""}`,C(G)?H="":C(W)?H=`<${+G+1}.0.0-0`:C(q)?H=`<${G}.${+W+1}.0-0`:ge?H=`<=${G}.${W}.${q}-${ge}`:A?H=`<${G}.${W}.${+q+1}-0`:H=`<=${H}`,`${M} ${H}`.trim()),P=(A,D,M)=>{for(let k=0;k<A.length;k++)if(!A[k].test(D))return!1;if(D.prerelease.length&&!M.includePrerelease){for(let k=0;k<A.length;k++)if(i(A[k].semver),A[k].semver!==a.ANY&&A[k].semver.prerelease.length>0){const K=A[k].semver;if(K.major===D.major&&K.minor===D.minor&&K.patch===D.patch)return!0}return!1}return!0};return bu}var vu,Ym;function Wl(){if(Ym)return vu;Ym=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(" "),i("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,i("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(i("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 a(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("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}vu=t;const r=ip(),{safeRe:n,t:o}=Sa(),a=xE(),i=zl(),l=Je(),s=Ut();return vu}var Eu,Xm;function Vl(){if(Xm)return Eu;Xm=1;const e=Ut();return Eu=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},Eu}var Su,Jm;function d6(){if(Jm)return Su;Jm=1;const e=Ut();return Su=(r,n)=>new e(r,n).set.map(o=>o.map(a=>a.value).join(" ").trim().split(" ")),Su}var xu,Zm;function f6(){if(Zm)return xu;Zm=1;const e=Je(),t=Ut();return xu=(n,o,a)=>{let i=null,l=null,s=null;try{s=new t(o,a)}catch{return null}return n.forEach(u=>{s.test(u)&&(!i||l.compare(u)===-1)&&(i=u,l=new e(i,a))}),i},xu}var $u,Qm;function p6(){if(Qm)return $u;Qm=1;const e=Je(),t=Ut();return $u=(n,o,a)=>{let i=null,l=null,s=null;try{s=new t(o,a)}catch{return null}return n.forEach(u=>{s.test(u)&&(!i||l.compare(u)===1)&&(i=u,l=new e(i,a))}),i},$u}var wu,e0;function h6(){if(e0)return wu;e0=1;const e=Je(),t=Ut(),r=Gl();return wu=(o,a)=>{o=new t(o,a);let i=new e("0.0.0");if(o.test(i)||(i=new e("0.0.0-0"),o.test(i)))return i;i=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&&(!i||r(i,u))&&(i=u)}return i&&o.test(i)?i:null},wu}var Cu,t0;function g6(){if(t0)return Cu;t0=1;const e=Ut();return Cu=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Cu}var _u,r0;function dp(){if(r0)return _u;r0=1;const e=Je(),t=Wl(),{ANY:r}=t,n=Ut(),o=Vl(),a=Gl(),i=sp(),l=cp(),s=up();return _u=(c,d,f,g)=>{c=new e(c,g),d=new n(d,g);let m,y,v,b,E;switch(f){case">":m=a,y=l,v=i,b=">",E=">=";break;case"<":m=i,y=s,v=a,b="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,g))return!1;for(let S=0;S<d.set.length;++S){const x=d.set[S];let C=null,$=null;if(x.forEach(T=>{T.semver===r&&(T=new t(">=0.0.0")),C=C||T,$=$||T,m(T.semver,C.semver,g)?C=T:v(T.semver,$.semver,g)&&($=T)}),C.operator===b||C.operator===E||(!$.operator||$.operator===b)&&y(c,$.semver))return!1;if($.operator===E&&v(c,$.semver))return!1}return!0},_u}var Tu,n0;function m6(){if(n0)return Tu;n0=1;const e=dp();return Tu=(r,n,o)=>e(r,n,">",o),Tu}var Ou,o0;function y6(){if(o0)return Ou;o0=1;const e=dp();return Ou=(r,n,o)=>e(r,n,"<",o),Ou}var Au,a0;function b6(){if(a0)return Au;a0=1;const e=Ut();return Au=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),Au}var Ru,i0;function v6(){if(i0)return Ru;i0=1;const e=Vl(),t=Ht();return Ru=(r,n,o)=>{const a=[];let i=null,l=null;const s=r.sort((f,g)=>t(f,g,o));for(const f of s)e(f,n,o)?(l=f,i||(i=f)):(l&&a.push([i,l]),l=null,i=null);i&&a.push([i,null]);const u=[];for(const[f,g]of a)f===g?u.push(f):!g&&f===s[0]?u.push("*"):g?f===s[0]?u.push(`<=${g}`):u.push(`${f} - ${g}`):u.push(`>=${f}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},Ru}var Du,l0;function E6(){if(l0)return Du;l0=1;const e=Ut(),t=Wl(),{ANY:r}=t,n=Vl(),o=Ht(),a=(d,f,g={})=>{if(d===f)return!0;d=new e(d,g),f=new e(f,g);let m=!1;e:for(const y of d.set){for(const v of f.set){const b=s(y,v,g);if(m=m||b!==null,b)continue e}if(m)return!1}return!0},i=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,f,g)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;g.includePrerelease?d=i:d=l}if(f.length===1&&f[0].semver===r){if(g.includePrerelease)return!0;f=l}const m=new Set;let y,v;for(const O of d)O.operator===">"||O.operator===">="?y=u(y,O,g):O.operator==="<"||O.operator==="<="?v=c(v,O,g):m.add(O.semver);if(m.size>1)return null;let b;if(y&&v){if(b=o(y.semver,v.semver,g),b>0)return null;if(b===0&&(y.operator!==">="||v.operator!=="<="))return null}for(const O of m){if(y&&!n(O,String(y),g)||v&&!n(O,String(v),g))return null;for(const L of f)if(!n(O,String(L),g))return!1;return!0}let E,S,x,C,$=v&&!g.includePrerelease&&v.semver.prerelease.length?v.semver:!1,T=y&&!g.includePrerelease&&y.semver.prerelease.length?y.semver:!1;$&&$.prerelease.length===1&&v.operator==="<"&&$.prerelease[0]===0&&($=!1);for(const O of f){if(C=C||O.operator===">"||O.operator===">=",x=x||O.operator==="<"||O.operator==="<=",y){if(T&&O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===T.major&&O.semver.minor===T.minor&&O.semver.patch===T.patch&&(T=!1),O.operator===">"||O.operator===">="){if(E=u(y,O,g),E===O&&E!==y)return!1}else if(y.operator===">="&&!O.test(y.semver))return!1}if(v){if($&&O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===$.major&&O.semver.minor===$.minor&&O.semver.patch===$.patch&&($=!1),O.operator==="<"||O.operator==="<="){if(S=c(v,O,g),S===O&&S!==v)return!1}else if(v.operator==="<="&&!O.test(v.semver))return!1}if(!O.operator&&(v||y)&&b!==0)return!1}return!(y&&x&&!v&&b!==0||v&&C&&!y&&b!==0||T||$)},u=(d,f,g)=>{if(!d)return f;const m=o(d.semver,f.semver,g);return m>0?d:m<0||f.operator===">"&&d.operator===">="?f:d},c=(d,f,g)=>{if(!d)return f;const m=o(d.semver,f.semver,g);return m<0?d:m>0||f.operator==="<"&&d.operator==="<="?f:d};return Du=a,Du}var Pu,s0;function S6(){if(s0)return Pu;s0=1;const e=Sa(),t=Ea(),r=Je(),n=vE(),o=$n(),a=XF(),i=JF(),l=ZF(),s=QF(),u=e6(),c=t6(),d=r6(),f=n6(),g=Ht(),m=o6(),y=a6(),v=lp(),b=i6(),E=l6(),S=Gl(),x=sp(),C=EE(),$=SE(),T=up(),O=cp(),L=xE(),I=s6(),_=u6(),N=Wl(),B=Ut(),w=Vl(),R=d6(),P=f6(),A=p6(),D=h6(),M=g6(),k=dp(),K=m6(),j=y6(),z=b6(),U=v6(),H=E6();return Pu={parse:o,valid:a,clean:i,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:f,compare:g,rcompare:m,compareLoose:y,compareBuild:v,sort:b,rsort:E,gt:S,lt:x,eq:C,neq:$,gte:T,lte:O,cmp:L,coerce:I,truncate:_,Comparator:N,Range:B,satisfies:w,toComparators:R,maxSatisfying:P,minSatisfying:A,minVersion:D,validRange:M,outside:k,gtr:K,ltr:j,intersects:z,simplifyRange:U,subset:H,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},Pu}var x6=S6();const ht=y_(x6);var $6=vr({"../../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=[],a=0;a<r.rangeCount;a++)o.push(r.getRangeAt(a));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(i){r.addRange(i)}),n&&n.focus()}}}}),w6=vr({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=$6(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function a(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function i(l,s){var u,c,d,f,g,m,y=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),g=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(b){if(b.stopPropagation(),s.format)if(b.preventDefault(),typeof b.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 b.clipboardData.clearData(),b.clipboardData.setData(s.format,l);s.onCopy&&(b.preventDefault(),s.onCopy(b.clipboardData))}),document.body.appendChild(m),f.selectNodeContents(m),g.addRange(f);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");y=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),c=a("message"in s?s.message:o),window.prompt(c,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(f):g.removeAllRanges()),m&&document.body.removeChild(m),d()}return y}t.exports=i}}),C6=vr({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(i,l){for(var s in i)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s));return l},stringify:function(i,l){return i===void 0||typeof i=="function"?i+"":JSON.stringify(i,l||o.replace)},parse:function(i,l){try{return JSON.parse(i,l||o.revive)}catch{return i}},fn:function(i,l){o.storeAPI[i]=l;for(var s in o.apis)o.apis[s][i]=l},get:function(i,l){return i.getItem(l)},set:function(i,l,s){i.setItem(l,s)},remove:function(i,l){i.removeItem(l)},key:function(i,l){return i.key(l)},length:function(i){return i.length},clear:function(i){i.clear()},Store:function(i,l,s){var u=o.inherit(o.storeAPI,function(d,f,g){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,g):f!==void 0?u.set(d,f,g):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=i;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[i]||(o.areas[i]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(i,l){var s=this[i];return(!s||!s.area)&&(s=o.Store(i,l,this._ns),this[i]||(this[i]=s)),s},namespace:function(i,l,s){if(s=s||this._delim||o.nsdelim,!i)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=i,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(i){return i?(this._real=this._area,this._area=o.storage("fake")):i===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(i){return this._area.has?this._area.has(this._in(i)):this._in(i)in this._area},size:function(){return this.keys().length},each:function(i,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&&i.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(i){return this.each(function(l,s,u){u.push(l)},i||[])},get:function(i,l){var s=o.get(this._area,this._in(i)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l??s},getAll:function(i){return this.each(function(l,s,u){u[l]=s},i||{})},transact:function(i,l,s){var u=this.get(i,s),c=l(u);return this.set(i,c===void 0?u:c),this},set:function(i,l,s){var u=this.get(i),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(i),o.stringify(l,c),s)||u)},setAll:function(i,l){var s,u;for(var c in i)u=i[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(i,l,s){var u=this.get(i);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(i),o.stringify(l,s)),l},remove:function(i,l){var s=this.get(i,l);return o.remove(this._area,this._in(i)),s},clear:function(){return this._ns?this.each(function(i){o.remove(this._area,this._in(i))},1):o.clear(this._area),this},clearAll:function(){var i=this._area;for(var l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],this.clear());return this._area=i,this},_in:function(i){return typeof i!="string"&&(i=o.stringify(i)),this._ns?this._ns+i:i},_out:function(i){return this._ns?i&&i.indexOf(this._ns)===0?i.substring(this._ns.length):void 0:i}},storage:function(i){return o.inherit(o.storageAPI,{items:{},name:i})},storageAPI:{length:0,has:function(i){return this.items.hasOwnProperty(i)},key:function(i){var l=0;for(var s in this.items)if(this.has(s)&&i===l++)return s},setItem:function(i,l){this.has(i)||this.length++,this.items[i]=l},removeItem:function(i){this.has(i)&&(delete this.items[i],this.length--)},getItem:function(i){return this.has(i)?this.items[i]:null},clear:function(){for(var i in this.items)this.removeItem(i)}}},a=o.Store("local",(function(){try{return localStorage}catch{}})());a.local=a,a._=o,a.area("session",(function(){try{return sessionStorage}catch{}})()),a.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):typeof t<"u"&&t.exports?t.exports=a:(r.store&&(o.conflict=r.store),r.store=a)})(e,e&&e.define)}});const{DOCS_PREPARED:QJ,SET_STORIES:eZ,SHARED_STATE_CHANGED:tZ,SHARED_STATE_SET:rZ,STORY_CHANGED:nZ,STORY_PREPARED:oZ}=__STORYBOOK_MODULE_CORE_EVENTS__;var _6=({api:e,state:t})=>p.createContext({api:e,state:t});const{logger:u0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var dn=(e,...t)=>{let r={};r=Ni({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(a=>{n.find(i=>i===a||Xt(i,a))||n.push(a)}),n;if(Array.isArray(n))return u0.log(["the types mismatch, picking",n]),n});for(let n of t)r=Ni(r,n,(o,a)=>{if(Array.isArray(a)&&Array.isArray(o))return a.forEach(i=>{o.find(l=>l===i||Xt(l,i))||o.push(i)}),o;if(Array.isArray(o))return u0.log(["the types mismatch, picking",o]),o});return r},T6=(e,...t)=>{let r={};r=Ni({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=Ni(r,n,(o,a)=>{if(Array.isArray(a))return a});return r},O6=(...e)=>e.reduce((t,r)=>dn(t,r),{}),bd=O6;const{logger:A6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:c0}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:aZ}=__STORYBOOK_MODULE_TYPES__;var R6=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>{if(this.channel)return this.channel;let e=Zc();return e?(this.channel=e,this.resolve(),this.channel):E2()},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel||!!Zc(),this.setChannel=e=>{this.channel=e,J1(e),this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(c0,this.config):this.ready().then(t=>{t.emit(c0,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&A6.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(e){return Object.keys(e?this.getElements(e):this.loaders)}},Iu="__STORYBOOK_ADDONS_MANAGER";function D6(){return globalThis[Iu]||(globalThis[Iu]=new R6),globalThis[Iu]}D6();var $E={};We($E,{ensurePanel:()=>vd,init:()=>I6});const{logger:P6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:Fu}=__STORYBOOK_MODULE_TYPES__;function vd(e,t,r){let n=Object.keys(e??{});return n.indexOf(t)>=0?t:n.length?n[0]:r}var I6=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),clearStatuses:()=>{let o=n.getElements(Fu.experimental_TEST_PROVIDER);Object.values(o).forEach(a=>{try{a.clear?.()}catch(i){try{P6.warn(`Failed to clear test provider "${a.id}":`,i)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return vd(n.getElements(Fu.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,a,i){let l=typeof a=="function"?a:()=>a;return t.setState(s=>({...s,addons:{...s.addons,[o]:l(s.addons[o])}}),i).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||globalThis?.STORYBOOK_ADDON_STATE[o]};return{api:n,state:{selectedPanel:vd(n.getElements(Fu.PANEL),t.getState().selectedPanel),addons:{}}}},wE={};We(wE,{init:()=>F6});var F6=({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:{}}),CE={};We(CE,{init:()=>Z6});const{logger:d0}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:L6,SET_GLOBALS:k6,UPDATE_GLOBALS:N6}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:M6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var _E={};We(_E,{defaultStoryMapper:()=>RE,getSourceType:()=>AE,init:()=>J6});const{global:TE}=__STORYBOOK_MODULE_GLOBAL__;var OE=yt(vn(),1),B6=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),j6=/\s*\/\s*/,H6=({globalParameters:e,kindParameters:t,stories:r})=>b_(r,n=>({...n,parameters:$L(e,t[n.kind],n.parameters)})),U6=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:a,...i}=n.parameters,l={title:n.kind,id:r,name:n.name,importPath:a};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:i,argTypes:s,args:u,initialArgs:c}}return t},{})}),K6=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),{})}),z6=e=>{let t=v2(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},{})}},G6=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[Lr.DEV,Lr.TEST,...r.tags]:[Lr.DEV]},t),{})}),Qi=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o,statusFilterKey:a})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let i=e;i=i.v===2?K6(i):i,i=i.v===3?z6(i):i,i=i.v===4?G6(i):i,i=i;let l=Object.values(i.entries),s=Object.values(n),u=a?n[a]:void 0,c=l.filter(S=>{let x=o[S.id]??{};return u&&!u({...S,statuses:x})&&!l.filter(C=>"parent"in C&&C.parent===S.id).some(C=>u({...C,statuses:o[C.id]??{}}))?!1:Object.values(x).some(({value:C})=>C==="status-value:error")||s.every(C=>C({...S,statuses:x}))?!0:l.filter(C=>"parent"in C&&C.parent===S.id).some(C=>s.every($=>$({...C,statuses:x})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:g=[],renderLabel:m}=d,y=typeof f<"u",v=c.reduce((S,x)=>{if(r.docsMode&&x.type!=="docs")return S;let{title:C}=x,$=C.trim().split(j6),T=(!y||f)&&$.length>1?[$.shift()]:[],O=[...T,...$],L=O.reduce((I,_,N)=>{let B=N>0&&I[N-1],w=Jn(B?`${B}-${_}`:_);if(_.trim()==="")throw new Error(Ct`Invalid title ${C} ending in slash.`);if(B===w)throw new Error(Ct`
638
+ Invalid part '${_}', leading to id === parentId ('${w}'), inside title '${C}'
639
+
640
+ 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
641
+ `);return I.push(w),I},[]);return L.forEach((I,_)=>{let N=L[_+1]||x.id;T.length&&_===0?S[I]=dn(S[I]||{},{type:"root",id:I,name:O[_],tags:[],depth:_,renderLabel:m,startCollapsed:g.includes(I),children:[N]}):(!S[I]||S[I].type==="component")&&_===L.length-1?S[I]=dn(S[I]||{},{type:"component",id:I,name:O[_],tags:[],parent:L[_-1],depth:_,renderLabel:m,...N&&{children:[N]}}):S[I]=dn(S[I]||{},{type:"group",id:I,name:O[_],tags:[],parent:L[_-1],depth:_,renderLabel:m,...N&&{children:[N]}})}),S[x.id]={tags:[],...x,depth:L.length,parent:"parent"in x?x.parent:L[L.length-1],renderLabel:m,prepared:!!x.parameters},S},{});function b(S,x){if(S[x.id]||(S[x.id]=x,"children"in x&&x.children&&(x.children.forEach(C=>b(S,v[C])),x.tags=x.children.reduce((C,$)=>C===null?S[$].tags:B6(C,S[$].tags),null)||[])),x.type==="component"){let C=S[x.children[0]];C&&"importPath"in C&&(x.importPath=C.importPath)}return S}let E=Object.values(v).filter(S=>S.type!=="root"&&!S.parent).reduce((S,x)=>b(S,x),{});return E=Object.values(v).filter(S=>S.type==="root").reduce(b,E),E=Object.values(E).reduce((S,x)=>{if(x.type==="story"&&x.subtype==="test"){let C=S[x.parent],$=S[C.parent];S[$.id]={...$,children:$.children&&$.children.filter(T=>T!==x.id)},S[C.id]={...C,children:(C.children||[]).concat(x.id)},S[x.id]={...x,depth:x.depth+1}}else S[x.id]=x;return S},{}),E},f0=(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,W6=(0,OE.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),V6=(0,OE.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:q6,fetch:p0}=TE,AE=(e,t)=>{let{origin:r,pathname:n}=q6,{origin:o,pathname:a}=new URL(e),i=`${r+n}`.replace(/\/[^\/]*$/,""),l=`${o+a}`.replace(/\/[^\/]*$/,"");return i===l?["local",l]:t||e?["external",l]:[null,null]},RE=(e,t)=>({...t,kind:t.kind.replace("|","/")}),h0=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{}),g0=(e,t)=>(t&&Object.entries(t).forEach(([r,n])=>{let o=e[r];o&&(o.type==="story"||o.type==="docs")&&(e[r]={...o,...n})}),e);async function m0(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 Y6=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},X6=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[a,i])=>({...o,[a]:n(t,i)}),{}):e},J6=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let a={findRef:s=>{let u=a.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=a.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await a.setRef(s,{...f,type:"unknown"},!1),await a.checkRef(f)},changeRefState:(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,g=f==="server-checked",m={},y=d?`?version=${d}`:"",v=g?"omit":"include",b=Y6(c),E={Accept:"application/json"};b.authorization&&Object.assign(E,{Authorization:`Basic ${b.authorization}`});let[S,x]=await Promise.all(["index.json","stories.json"].map(async $=>m0(p0(`${b.url}/${$}${y}`,{headers:E,credentials:v}))));if(!S.indexError||!x.indexError){let $=await m0(p0(`${b.url}/metadata.json${y}`,{headers:E,credentials:v,cache:"no-cache"}).catch(()=>!1));Object.assign(m,{...S.indexError?x:S,...!$.indexError&&$})}else g||(m.indexError={message:Ct`
642
+ Error: Loading of ref failed
643
+ at fetch (lib/api/src/modules/refs.ts)
644
+
645
+ URL: ${b.url}
646
+
647
+ We weren't able to load the above URL,
648
+ it's possible a CORS error happened.
649
+
650
+ Please check your dev-tools network tab.
651
+ `});let C=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await a.setRef(u,{id:u,url:b.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 g,m,y,{filters:v}=e.getState(),{storyMapper:b=RE}=t.getConfig(),E=a.getRefs()[s];(u||c)&&(g=c?U6(X6(c,E,{storyMapper:b})):u,y=Qi(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),m=Qi(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=h0(m,E),m=g0(m,E?.storyUpdates)),y&&(y=h0(y,E),y=g0(y,E?.storyUpdates)),await a.updateRef(s,{...E,...d,index:m,filteredIndex:y,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((g,m)=>(g[m]=d[m],g),{});await e.setState({refs:f})}},i=!r&&TE.REFS||{},l=i;return o&&new Promise(async s=>{for(let u of Object.values(i))await a.checkRef({...u,stories:{}});s(void 0)}),{api:a,state:{refs:l}}},gt=(e,t)=>{let{source:r,refId:n,type:o}=e,[a,i]=AE(r,n),l;(n||a==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:a,sourceLocation:i,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case a==="local":case a==="external":return s;default:return M6.warn(`Received a ${o} frame that was not configured as a ref`),null}},Z6=({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(i){r.channel?.emit(N6,{globals:i,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:i,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();Zt(i,u)||e.setState({globals:i}),Zt(s,c)||e.setState({userGlobals:s}),Zt(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(L6,function({globals:i,storyGlobals:l,userGlobals:s}){let{ref:u}=gt(this,t);u?d0.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):a({globals:i,storyGlobals:l,userGlobals:s})}),r.channel?.on(k6,function({globals:i,globalTypes:l}){let{ref:s}=gt(this,t),u=e.getState()?.userGlobals;s?Object.keys(i).length>0&&d0.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:i,userGlobals:i,globalTypes:l}),u&&Object.keys(u).length!==0&&!Zt(i,u)&&n.updateGlobals(u)}),{api:n,state:o}},fp={};We(fp,{ActiveTabs:()=>PE,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>el,DEFAULT_NAV_SIZE:()=>na,DEFAULT_RIGHT_PANEL_WIDTH:()=>tl,focusableUIElements:()=>Vt,getDefaultLayoutState:()=>IE,init:()=>r8,isPagesViewMode:()=>t8});const{SET_CONFIG:Q6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:e8}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:DE}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{document:Xa}=e8,Lu=e=>typeof e=="function",PE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},t8=e=>e!==void 0&&e!=="story"&&e!=="docs"&&e!=="review",na=300,el=300,tl=400,IE=()=>({ui:{enableShortcuts:!0},layout:{initialActive:PE.CANVAS,navSize:na,bottomPanelHeight:el,rightPanelWidth:tl,recentVisibleSizes:{navSize:na,bottomPanelHeight:el,rightPanelWidth:tl},panelPosition:"bottom",showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:zb()}),Vt={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},wi=e=>e.layout.navSize>0,Ed=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},y0=e=>!wi(e)&&!Ed(e),Mn=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}),b0=(e,t,r)=>{let n=Object.keys(e),o=Wo(t,n);for(let u of Object.keys(o))DE(`Calling \`setConfig({ ${u}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${u}: ... } })\` instead.`);let a=Mi(o,t.layout||{}),{showPanel:i,showNav:l}=a,s=Mi(e,Wo(a,n));return l===!1||r?(s.recentVisibleSizes=Mn(s),s.navSize=0):l===!0&&(s.navSize=s.recentVisibleSizes.navSize),i===!1?(s.recentVisibleSizes=Mn(s),s.bottomPanelHeight=0,s.rightPanelWidth=0):i===!0&&(s.bottomPanelHeight=s.recentVisibleSizes.bottomPanelHeight,s.rightPanelWidth=s.recentVisibleSizes.rightPanelWidth),s},v0=(e,t)=>{let r=Object.keys(e),n=Wo(t,r);for(let a of Object.keys(n))DE(`Calling \`setConfig({ ${a}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${a}: ... } })\` instead.`);let o=r;return Mi(e,Wo(Mi(n,t.ui||{}),o))},r8=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(a){return e.setState(i=>{let l=y0(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Mn(i.layout)}}:{layout:{...i.layout,navSize:i.singleStory?0:i.layout.recentVisibleSizes.navSize,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(i=>{let l=Ed(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...i.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Mn(i.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(i=>{let l=a||(i.layout.panelPosition==="right"?"bottom":"right");return{layout:{...i.layout,panelPosition:l,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(i=>{if(i.singleStory)return{layout:i.layout};let l=wi(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:i.layout.recentVisibleSizes.navSize}}:{layout:{...i.layout,navSize:0,recentVisibleSizes:Mn(i.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(i=>{let l=typeof a<"u"?a:!i.layout.showToolbar;return{layout:{...i.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:i,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:a??s.layout.navSize,bottomPanelHeight:i??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Mn(u)}}},{persistence:"session"})},focusOnUIElement(a,i){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof i=="boolean"?{select:i}:i??{};if(!a)return!1;let c=()=>{let d=Xa.getElementById(a);return!d||(d.focus(),d!==Xa.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Xa.activeElement&&d.id!==Xa.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let f=Date.now(),g=500,m=setInterval(()=>{let y=Date.now()-f;if(c()){clearInterval(m),d(!0);return}y>=g&&(clearInterval(m),d(!1))},50)}):!1},getInitialOptions(){let a=t.getConfig(),i=IE(),{theme:l,selectedPanel:s,layoutCustomisations:u}=a;return{...i,layout:b0(i.layout,a,!!r),layoutCustomisations:{...i.layoutCustomisations,...u??{}},ui:v0(i.ui,a),selectedPanel:s||i.selectedPanel,theme:l||i.theme}},getIsFullscreen(){return y0(e.getState())},getIsPanelShown(){return Ed(e.getState())},getIsNavShown(){return wi(e.getState())},getNavAvailability(){let a=e.getState();return R1(a.path,a.customQueryParams)?"unavailable":wi(a)?"shown":"hidden"},getShowToolbarWithCustomisations(a){let i=e.getState();return Lu(i.layoutCustomisations.showToolbar)?i.layoutCustomisations.showToolbar(i,a)??a:a},getShowPanelWithCustomisations(a){let i=e.getState();return Lu(i.layoutCustomisations.showPanel)?i.layoutCustomisations.showPanel(i,a)??a:a},getNavSizeWithCustomisations(a){let i=e.getState();if(Lu(i.layoutCustomisations.showSidebar)){let l=i.layoutCustomisations.showSidebar(i,a!==0);if(a===0&&l===!0)return i.layout.recentVisibleSizes.navSize;if(a!==0&&l===!1)return 0}return a},setOptions:a=>{let{layout:i,ui:l,selectedPanel:s,theme:u}=e.getState();if(!a)return;let c=b0(i,a,!!r),d=v0(l,a),f={...u,...a.theme},g={};Xt(l,d)||(g.ui=d),Xt(i,c)||(g.layout=c),a.selectedPanel&&!Xt(s,a.selectedPanel)&&(g.selectedPanel=a.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Xt(u,f)||e.setState({theme:f})}},o=Wo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(Q6,()=>{n.setOptions(dn(n.getInitialOptions(),o))}),{api:n,state:dn(n.getInitialOptions(),o)}},FE={};We(FE,{init:()=>n8});var n8=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=qh(r,a=>a.id===t.id);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=qh(r,a=>a.id===t);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),LE={};We(LE,{init:()=>a8});const{OPEN_IN_EDITOR_REQUEST:o8,OPEN_IN_EDITOR_RESPONSE:ku}=__STORYBOOK_MODULE_CORE_EVENTS__;var a8=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:a,column:i}=r,l=s=>{s.file===o&&s.line===a&&s.column===i&&(e.channel?.off(ku,l),n(s))};e.channel?.on(ku,l),e.channel?.emit(o8,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await yr(async()=>{const{color:n}=await Promise.resolve().then(()=>GO);return{color:n}},void 0,import.meta.url);e.channel?.on(ku,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:h.createElement(PA,{color:r.negative}),duration:8e3})})}}),kE={};We(kE,{init:()=>i8});var i8=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),NE={};We(NE,{init:()=>l8});var l8=({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}})}}}),ME={};We(ME,{controlOrMetaKey:()=>In,defaultShortcuts:()=>Fn,init:()=>x8,isMacLike:()=>jE,keys:()=>Sd});var s8=yt(w6(),1);const{FORCE_REMOUNT:u8,PREVIEW_KEYDOWN:c8,STORIES_COLLAPSE_ALL:d8,STORIES_EXPAND_ALL:f8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:BE}=__STORYBOOK_MODULE_GLOBAL__,{global:p8}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Nu}=p8,h8=()=>Nu&&Nu.platform?!!Nu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,g8=()=>h8()?"⌥":"alt",m8=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 a=e.key.toUpperCase(),i=o;i&&i.length===1&&i!==a?t.push([a,i]):t.push(a)}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},y8=(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]),b8=e=>e==="alt"?g8():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(),v8=e=>e.map(b8).join(" "),E8=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Mu,document:Pr}=BE;function E0(e){return Pr.activeElement&&e?.contains(Pr.activeElement)}var jE=()=>Mu&&Mu.platform?!!Mu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,In=()=>jE()?"meta":"control";function Sd(e){return Object.keys(e)}var Fn=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[In(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[In(),"shift",","],aboutPage:[In(),","],escape:["escape"],collapseAll:[In(),"shift","ArrowUp"],expandAll:[In(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Bu={};function S8(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var x8=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Fn,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Bu},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{i[l]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{i[l]=s}),i},async setShortcuts(i){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,l){return await n.setShortcuts(s=>({...s,[i]:l})),l},async setAddonShortcut(i,l){return await n.setShortcuts(s=>({...s,[`${i}-${l.actionName}`]:l.defaultShortcut})),Bu[`${i}-${l.actionName}`]=l,l},async restoreDefaultShortcut(i){let l=n.getDefaultShortcuts()[i];return n.setShortcut(i,l)},handleKeydownEvent(i){let l=m8(i),s=n.getShortcutKeys(),u=Sd(s).find(c=>y8(l,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,l){let s=e.getState(),{ui:{enableShortcuts:u},storyId:c,refId:d,viewMode:f}=s;if(!u)return;let g=t.getNavAvailability()==="unavailable",m=["focusNav","search","toggleNav"].includes(i);if(!(g&&m))switch(l?.preventDefault&&l.preventDefault(),i){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(Vt.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Vt.storySearchField,!0)},0);break}case"focusIframe":{let y=Pr.getElementById("storybook-preview-iframe");if(y)try{y.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Vt.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":{let y=t.getIsPanelShown(),v=Pr.getElementById(Vt.addonPanel);t.togglePanel(),y&&E0(v)&&t.focusOnUIElement(Vt.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Pr.body.focus()}),y||t.focusOnUIElement(Vt.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let y=t.getIsNavShown(),v=Pr.getElementById(Vt.sidebarRegion);t.toggleNav(),y&&E0(v)&&t.focusOnUIElement(Vt.showSidebar,{poll:!0}).then(b=>{b===!1&&Pr.body.focus()}),y||t.focusOnUIElement(Vt.sidebarRegion,{forceFocus:!0,poll:!0});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(d8);break}case"expandAll":{t.emit(f8);break}case"remount":{t.emit(u8,{storyId:c});break}case"openInEditor":{BE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(c&&f==="story"){let{previewHref:y}=t.getStoryHrefs(c,{refId:d});window.open(y,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(c){let{managerHref:y}=t.getStoryHrefs(c,{refId:d});(0,s8.default)(y)}break}default:Bu[i].action();break}}},{shortcuts:o=Fn}=e.getState(),a={shortcuts:Sd(Fn).reduce((i,l)=>({...i,[l]:o[l]||Fn[l]}),Fn)};return{api:n,state:a,init:()=>{Pr.addEventListener("keydown",i=>{S8(i)||n.handleKeydownEvent(i)}),r.channel?.on(c8,i=>{n.handleKeydownEvent(i.event)})}}},HE={};We(HE,{init:()=>Q8});const{logger:$8}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:w8,CURRENT_STORY_WAS_SET:C8,DOCS_PREPARED:_8,PRELOAD_ENTRIES:T8,RESET_STORY_ARGS:O8,SELECT_STORY:A8,SET_CONFIG:R8,SET_CURRENT_STORY:D8,SET_FILTER:P8,SET_INDEX:I8,SET_STORIES:F8,SIDEBAR_FILTER_CHANGED:L8,STORY_ARGS_UPDATED:k8,STORY_CHANGED:N8,STORY_INDEX_INVALIDATED:M8,STORY_MISSING:B8,STORY_PREPARED:j8,STORY_SPECIFIED:H8,UPDATE_STORY_ARGS:U8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:UE}=__STORYBOOK_MODULE_GLOBAL__;var KE=(e,t={})=>{let r=Object.entries(t).filter(([n,o])=>n!=="path"&&o!==null&&o!==void 0).sort(([n],[o])=>n<o?-1:1).map(([n,o])=>`${n}=${o}`);return[e,...r].join("&")},zE=(e,t)=>{let r=p.useRef(t?t(e.getState()):e.getState()),n=p.useCallback(a=>e.onStateChange((i,l)=>{if(!t){r.current=i,a();return}let s=t(i),u=t(l);!Xt(s,u)&&(r.current=s,a())}),[e,t]),o=p.useCallback(()=>{let a=e.getState(),i=t?t(a):a;return Xt(i,r.current)||(r.current=i),r.current},[e,t]);return[p.useSyncExternalStore(n,o),e.setState]},K8=WA({universalStatusStore:$f.create({...zA,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:zE,environment:"manager"}),{fullStatusStore:Ci}=K8,GE=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let a=o.startsWith("!"),i=t(a?o.slice(1):o);i!=null&&(a?n.push(i):r.push(i))}),{included:r,excluded:n}},z8=e=>GE(e,KA),G8=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>Lh(o)).sort(),n=t.map(o=>`!${Lh(o)}`).sort();return[...r,...n].join(";")},ju=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(Ci.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],a=!e.length||e.some(l=>o.includes(l)),i=!t.length||t.every(l=>!o.includes(l));return a&&i},W8=yt(vn(),1),WE={$docs:"_docs",$play:"_play",$test:"_test"},V8=e=>GE(e,t=>WE[t]??t),q8=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(WE).map(([a,i])=>[i,a])),n=e.map(a=>r[a]??a).sort(),o=t.map(a=>`!${r[a]??a}`).sort();return[...n,...o].join(";")},Y8=(0,W8.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),S0=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,a]=n;return a.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[],o=r.type==="docs"&&!n.includes(Lr.ATTACHED_MDX)&&!n.includes(Lr.UNATTACHED_MDX);return(n.includes(Lr.DEV)||o)&&n.filter(a=>t[a]).length===0}},Hu=(e,t)=>{let r=n=>Object.values(n.reduce((o,a)=>(Object.hasOwn(Xi,a)?o["built-in"].push(Xi[a]):o.user.push(S2(a)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),a=r(t);return(!o.length||o.every(i=>i.some(l=>l(n,!1))))&&(!a.length||a.every(i=>i.every(l=>l(n,!0))))}},{fetch:X8}=UE,J8="./index.json",Uu="tags-filter",x0="static-filter",Ja="status-filter",Rn=new Set(Object.keys(Xi)),Z8=["enableShortcuts","theme","showRoots"];function Ku(e){if(!e||typeof e=="string")return e;let t={...e};return Z8.forEach(r=>{r in t&&delete t[r]}),t}var $0={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},Q8=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:a,viewMode:i,docsOptions:l={}})=>{let s=(w,R)=>{let{customQueryParams:P}=t.getState();r(KE(w,P??{}),R)},u=w=>t.setState(w,{persistence:"url",serialize:R=>{let P=q8(R.includedTagFilters,R.excludedTagFilters),A=G8(R.includedStatusFilters,R.excludedStatusFilters);return{tags:P??null,statuses:A??null}}}),c=!1,d=async(w,R,P)=>{let{included:A,excluded:D}=$0[w],M=t.getState(),k=new Set(M[A]),K=new Set(M[D]);for(let j of R){let[z,U]=P?[K,k]:[k,K];U.delete(j),z.add(j)}await u({[A]:Array.from(k),[D]:Array.from(K)})},f=async(w,R)=>{let{included:P,excluded:A}=$0[w],D=t.getState(),M=new Set(R);await u({[P]:D[P].filter(k=>!M.has(k)),[A]:D[A].filter(k=>!M.has(k))})},g=(w,R)=>{let P=t.getState(),A=(P.includedTagFilters??[]).filter(U=>Rn.has(U)),D=(P.excludedTagFilters??[]).filter(U=>Rn.has(U)),M=!!globalThis?.FEATURES?.changeDetection,k=M?P.includedStatusFilters??[]:[],K=M?P.excludedStatusFilters??[]:[],j={},z=P.internal_index?Object.values(P.internal_index.entries):[];for(let U of new Set([...A,...D])){let H=Xi[U];j[U]=z.filter(G=>H(G)).length}if(k.length>0||K.length>0){let U=GA(Ci.getAll());for(let H of new Set([...k,...K]))U[H]!==void 0&&(j[H]=U[H])}n.channel?.emit(L8,{trigger:w,changed:R,activeTagFilters:{included:A,excluded:D},activeStatusFilters:{included:k,excluded:K},storyCounts:j})},m={storyId:Va,getData:(w,R)=>{let P=m.resolveStory(w,R);if(P?.type==="story"||P?.type==="docs")return P},isPrepared:(w,R)=>{let P=m.getData(w,R);return P?P.type==="story"?P.prepared:!0:!1},resolveStory:(w,R)=>{let{refs:P,index:A}=t.getState();if(!(R&&!P[R]))return R?P?.[R]?.index?.[w]??void 0:A?A[w]:void 0},getCurrentStoryData:()=>{let{storyId:w,refId:R}=t.getState();return m.getData(w,R)},getIndex:()=>{let{internal_index:w}=t.getState();return w},getParameters:(w,R)=>{let{storyId:P,refId:A}=typeof w=="string"?{storyId:w,refId:void 0}:w,D=m.getData(P,A);if(["story","docs"].includes(D?.type)){let{parameters:M}=D;if(M)return R?M[R]:M}return null},getCurrentParameter:w=>{let{storyId:R,refId:P}=t.getState();return m.getParameters({storyId:R,refId:P},w)||void 0},jumpToComponent:w=>{let{filteredIndex:R,storyId:P,refs:A,refId:D}=t.getState();if(!m.getData(P,D))return;let M=D?A[D].filteredIndex||{}:R;if(!M)return;let k=m.findSiblingStoryId(P,M,w,!0);k&&m.selectStory(k,void 0,{ref:D})},jumpToStory:w=>{let{filteredIndex:R,storyId:P,refs:A,refId:D}=t.getState(),M=m.getData(P,D);if(!M)return;let k=M.refId?A[M.refId].filteredIndex:R;if(!k)return;let K=m.findSiblingStoryId(P,k,w,!1);K&&m.selectStory(K,void 0,{ref:D})},selectFirstStory:()=>{let w=t.getState(),{filteredIndex:R}=w;if(R){let D=Object.keys(R).find(M=>R[M].type==="story");D&&m.selectStory(D);return}let{index:P}=w;if(!P)return;let A=Object.keys(P).find(D=>P[D].type==="story");if(A){m.selectStory(A);return}s("/")},selectStory:(w=void 0,R=void 0,P={})=>{let{ref:A}=P,{storyId:D,index:M,filteredIndex:k,refs:K,settings:j}=t.getState(),z=W=>W?.type==="docs"||W?.type==="story"?(t.setState({settings:{...j,lastTrackedStoryId:W.id}}),s(`/${W.type}/${W.refId?`${W.refId}_${W.id}`:W.id}`),!0):!1,U=D?.split("--",2)[0],H=A?K[A].index:M,G=A?K[A].filteredIndex:k;if(!(!H||!G))if(R)if(!w)z(H[Va(U,R)]);else{let W=A?`${A}_${Va(w,R)}`:Va(w,R);if(H[W])z(H[W]);else{let q=H[Jn(w)];if(q?.type==="component"){let ge=q.children.find(Ne=>H[Ne].name===R);z(ge?H[ge]:void 0)}}}else{let W=w?H[w]||H[Jn(w)]:H[U];if(!W)throw new Error(`Unknown id or title: '${w}'`);z(W)||z(m.findLeafEntry(G,W.id))}},findLeafEntry(w,R){let P=w[R];if(!P)return;if(P.type==="docs"||P.type==="story")return P;let A=P.children.find(D=>w[D]);return A?m.findLeafEntry(w,A):void 0},findLeafStoryId(w,R){return m.findLeafEntry(w,R)?.id},findAllLeafStoryIds(w){let{index:R}=t.getState();if(!R)return[];let P=(A,D=[])=>{let M=R[A];return M&&(M.type==="story"&&D.push(M.id),"children"in M&&M.children?.forEach(k=>P(k,D))),D};return P(w,[])},findSiblingStoryId(w,R,P,A){if(A){let k=W6(R),K=k.findIndex(j=>j.includes(w));return K===k.length-1&&P>0||K===0&&P<0?void 0:k[K+P]?k[K+P][0]:void 0}let D=V6(R),M=D.indexOf(w);if(!(M===D.length-1&&P>0)&&!(M===0&&P<0))return D[M+P]},updateStoryArgs:(w,R)=>{let{id:P,refId:A}=w;n.channel?.emit(U8,{storyId:P,updatedArgs:R,options:{target:A}})},resetStoryArgs:(w,R)=>{let{id:P,refId:A}=w;n.channel?.emit(O8,{storyId:P,argNames:R,options:{target:A}})},fetchIndex:async()=>{try{let w=await X8(J8);if(w.status!==200)throw new Error(await w.text());let R=await w.json();if(R.v<3){$8.warn(`Skipping story index with version v${R.v}, awaiting SET_STORIES.`);return}await m.setIndex(R)}catch(w){await t.setState({indexError:w})}},setIndex:async w=>{let{filteredIndex:R,index:P,filters:A}=t.getState(),D=Ci.getAll(),M=Qi(w,{provider:n,docsOptions:l,filters:A,allStatuses:D,statusFilterKey:Ja}),k=Qi(w,{provider:n,docsOptions:l,filters:{},allStatuses:D});await t.setState({internal_index:w,filteredIndex:f0(M,R),index:f0(k,P),indexError:void 0})},updateStory:async(w,R,P)=>{if(P){let{id:A,index:D,filteredIndex:M}=P,k={...P.storyUpdates,[w]:{...P.storyUpdates?.[w],...R}};D&&D[w]&&(D[w]={...D[w],...R}),M&&M[w]&&(M[w]={...M[w],...R}),await e.updateRef(A,{index:D,filteredIndex:M,storyUpdates:k})}else{let{index:A,filteredIndex:D}=t.getState();A&&A[w]&&(A[w]={...A[w],...R}),D&&D[w]&&(D[w]={...D[w],...R}),(A||D)&&await t.setState({index:A,filteredIndex:D})}},updateDocs:async(w,R,P)=>{if(P){let{id:A,index:D,filteredIndex:M}=P,k={...P.storyUpdates,[w]:{...P.storyUpdates?.[w],...R}};D&&D[w]&&(D[w]={...D[w],...R}),M&&M[w]&&(M[w]={...M[w],...R}),await e.updateRef(A,{index:D,filteredIndex:M,storyUpdates:k})}else{let{index:A,filteredIndex:D}=t.getState();A&&(A[w]={...A[w],...R}),D&&(D[w]={...D[w],...R}),(A||D)&&await t.setState({index:A,filteredIndex:D})}},setPreviewInitialized:async w=>{w?e.updateRef(w.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(w,R)=>{await t.setState(D=>({filters:{...D.filters,[w]:R}}));let{internal_index:P}=t.getState();if(!P)return;await m.setIndex(P);let A=await e.getRefs();for(let[D,{internal_index:M,...k}]of Object.entries(A))await e.setRef(D,{...k,storyIndex:M},!0);n.channel?.emit(P8,{id:w})},resetTagFilters:async()=>{await u(w=>({includedTagFilters:w.defaultIncludedTagFilters,excludedTagFilters:w.defaultExcludedTagFilters})),await y()},setAllTagFilters:async(w,R)=>{await u({includedTagFilters:w,excludedTagFilters:R}),await y()},addTagFilters:async(w,R)=>{await d("tag",w,R),await y(),w.length===1&&Rn.has(w[0])&&g("interaction",{filterType:"tag",filterId:w[0],action:R?"exclude":"include"})},removeTagFilters:async w=>{await f("tag",w),await y(),w.length===1&&Rn.has(w[0])&&g("interaction",{filterType:"tag",filterId:w[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await v()},setAllStatusFilters:async(w,R)=>{let P=t.getState(),A=new Set(P.includedStatusFilters??[]),D=new Set(P.excludedStatusFilters??[]),M=new Set(w),k=new Set(R);await u({includedStatusFilters:w,excludedStatusFilters:R}),await v();let K=new Set([...A,...D,...M,...k]);for(let j of K){let z=A.has(j),U=D.has(j),H=M.has(j),G=k.has(j);if(z===H&&U===G)continue;let W;H?W="include":G?W="exclude":W="remove",g("interaction",{filterType:"status",filterId:j,action:W})}},addStatusFilters:async(w,R)=>{await d("status",w,R),await v(),w.length===1&&g("interaction",{filterType:"status",filterId:w[0],action:R?"exclude":"include"})},removeStatusFilters:async w=>{await f("status",w),await v(),w.length===1&&g("interaction",{filterType:"status",filterId:w[0],action:"remove"})}},y=()=>{let{includedTagFilters:w,excludedTagFilters:R}=t.getState();return m.experimental_setFilter(Uu,Hu(w,R))},v=()=>{let{includedStatusFilters:w,excludedStatusFilters:R}=t.getState();return m.experimental_setFilter(Ja,ju(w??[],R??[]))};n.channel?.on(H8,function({storyId:w,viewMode:R}){let{sourceType:P}=gt(this,e);if(P==="local"){let A=t.getState(),D=!R1(A.path,A.customQueryParams)&&(A.path==="/"||A.viewMode==="story"||A.viewMode==="docs"),M=A.viewMode&&A.storyId,k=A.viewMode!==R||A.storyId!==w,{type:K}=A.index?.[A.storyId]||{},j=!(K==="root"||K==="component"||K==="group");if(D){let{filteredIndex:z}=A;if(z&&!M&&z[w]?.type!=="story"){let U=z?Object.keys(z).find(H=>{let G=z[H];return G.type==="story"||G.type==="docs"}):void 0;U&&s(`/${R}/${U}`);return}M&&k&&j?n.channel?.emit(D8,{storyId:A.storyId,viewMode:A.viewMode}):k&&s(`/${R}/${w}`)}}}),n.channel?.on(C8,function(){let{ref:w}=gt(this,e);m.setPreviewInitialized(w)}),n.channel?.on(N8,function(){let{sourceType:w}=gt(this,e);if(w==="local"){let R=m.getCurrentParameter("options");R&&e.setOptions(Ku(R))}}),n.channel?.on(j8,function({id:w,...R}){let{ref:P,sourceType:A}=gt(this,e);if(m.updateStory(w,{...R,prepared:!0},P),!P&&!t.getState().hasCalledSetOptions){let{options:D}=R.parameters;e.setOptions(Ku(D)),t.setState({hasCalledSetOptions:!0})}if(A==="local"){let{storyId:D,index:M,refId:k}=t.getState();if(!M)return;let K=Array.from(new Set([m.findSiblingStoryId(D,M,1,!0),m.findSiblingStoryId(D,M,-1,!0)])).filter(Boolean);n.channel?.emit(T8,{ids:K,options:{target:k}})}}),n.channel?.on(_8,function({id:w,...R}){let{ref:P}=gt(this,e);m.updateStory(w,{...R,prepared:!0},P)}),n.channel?.on(I8,function(w){let{ref:R}=gt(this,e);if(R)e.setRef(R.id,{...R,storyIndex:w},!0);else{m.setIndex(w);let P=m.getCurrentParameter("options");e.setOptions(Ku(P))}}),n.channel?.on(F8,function(w){let{ref:R}=gt(this,e),P=w.v?H6(w):w.stories;if(R)e.setRef(R.id,{...R,setStoriesData:P},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(A8,function({kind:w,title:R=w,story:P,name:A=P,storyId:D,...M}){let{ref:k}=gt(this,e);k?e.selectStory(D||R,A,{...M,ref:k.id}):e.selectStory(D||R,A,M)}),n.channel?.on(k8,function({storyId:w,args:R}){let{ref:P}=gt(this,e);m.updateStory(w,{args:R},P)}),n.channel?.on(w8,function(w){let{ref:R}=gt(this,e);m.setPreviewInitialized(R)}),n.channel?.on(B8,function(w){let{ref:R}=gt(this,e);m.setPreviewInitialized(R)}),n.channel?.on(R8,()=>{let w=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:R,excludedTagFilters:P,includedStatusFilters:A,excludedStatusFilters:D,tagPresets:M}=t.getState();t.setState(({filters:k})=>({filters:{...k,...w,[x0]:S0(M),[Uu]:Hu(R,P),[Ja]:ju(A,D)}}))}),Ci.onAllStatusChange(async()=>{v();let{internal_index:w}=t.getState();if(!w)return;await m.setIndex(w);let R=await e.getRefs();Object.entries(R).forEach(([P,{internal_index:A,...D}])=>{e.setRef(P,{...D,storyIndex:A},!0)})});let b=n.getConfig()?.sidebar?.filters||{},E=UE.TAGS_OPTIONS||{},S=Y8(E),{tags:x,statuses:C}=ep(o??{search:""}),$=V8(x),T=x!==void 0,O=T?$.included:S.included,L=T?$.excluded:S.excluded,I=z8(C),_=I.included,N=I.excluded,B={...b,[x0]:S0(E),[Uu]:Hu(O,L),[Ja]:ju(_,N)};return{api:m,state:{storyId:a,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:B,tagPresets:E,defaultIncludedTagFilters:S.included,defaultExcludedTagFilters:S.excluded,includedTagFilters:O,excludedTagFilters:L,includedStatusFilters:_,excludedStatusFilters:N},init:async()=>{if(n.channel?.on(M8,()=>m.fetchIndex()),await m.fetchIndex(),c)return;c=!0;let w=O.some(P=>Rn.has(P))||L.some(P=>Rn.has(P)),R=!!globalThis?.FEATURES?.changeDetection&&(_.length>0||N.length>0);(w||R)&&g("url")}}},VE={};We(VE,{getCustomQueryParams:()=>pp,init:()=>lL});const{GLOBALS_UPDATED:eL,NAVIGATE_URL:tL,SET_CURRENT_STORY:rL,STORY_ARGS_UPDATED:nL,UPDATE_QUERY_PARAMS:oL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Dn}=__STORYBOOK_MODULE_GLOBAL__;var Gr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},w0=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),C0=(e,t)=>{let r=w0(e),n=w0(t);return Object.entries({...r,...n}).map(([o,a])=>`${o}:${a}`).join(";")},aL=["full","panel","nav","shortcuts","addonPanel","tabs","path"],pp=e=>Mc(ep(e),aL),zu,iL=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:a,panel:i,nav:l,shortcuts:s,addonPanel:u,tabs:c}=ep(e),d,f,g;Gr(a)===!0?(d=0,f=0,g=0):Gr(a)===!1&&(d=na,f=el,g=tl),o||(Gr(l)===!0&&(d=na),Gr(l)===!1&&(d=0)),Gr(i)===!1&&(f=0,g=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:g,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:Gr(c)},y={enableShortcuts:Gr(s)},v=u||void 0,b=n,E=pp(e),S=Zt(zu,E)?zu:E;return zu=S,{viewMode:r,layout:m,ui:y,selectedPanel:v,location:e,path:t,customQueryParams:S,storyId:b}},lL=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,a=(u,c={},d={})=>r(KE(u,c),d),i={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},g=u===d&&c.refId===f,{customQueryParams:m,location:y,refs:v}=t.getState(),{base:b,inheritArgs:E=g,inheritGlobals:S=!0,queryParams:x={},refId:C,viewMode:$="story",embed:T=!1,freeze:O=!1}=c;if(C&&!v[C])throw new Error(`Invalid refId: ${C}`);let L=y.pathname||"/",I=Dn.window.location.origin+L,_=Dn.STORYBOOK_NETWORK_ADDRESS??I,N=b==="origin"?I:b==="network"?_:L,B=C?v[C].url+"/iframe.html":Dn.PREVIEW_URL||`${N.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,w=C?`&refId=${encodeURIComponent(C)}`:"",{args:R="",globals:P="",...A}=x,D=E?C0(m?.args??"",R):R,M=S?C0(m?.globals??"",P):P,k=Mc(A,["embed","freeze"]),K=Mc(A,["id","viewMode","embed","freeze"]),j=ed(k,{nesting:!0,nestingSyntax:"js"}),z=ed(K,{nesting:!0,nestingSyntax:"js"});D=D&&`&args=${D}`,M=M&&`&globals=${M}`,j=j&&`&${j}`,z=z&&`&${z}`;let U=T?"&embed=true":"",H=O?"&freeze=finished":"";return{managerHref:`${N}?path=/${$}/${C?`${C}_`:""}${u}${D}${M}${j}`,previewHref:`${B}?id=${u}&viewMode=${$}${w}${D}${C?"":M}${z}${U}${H}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:g,viewMode:m}=t.getState();return{path:c,hash:u?.hash??"",queryParams:d,storyId:f,url:g,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={...c};for(let[f,g]of Object.entries(u))g==null?delete d[f]:d[f]=g;Zt(c,d)||(t.setState({customQueryParams:d}),n.channel?.emit(oL,d))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:g}=i.getUrlState();a(`${d}${f}`,{...g,...u},c),i.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:f}=i.getUrlState();if(f!=="story")return;let g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:m,initialArgs:y}=g,v=pm(y,m);a(`${u}${c}`,{...d,args:v||null},{replace:!0}),i.setQueryParams({args:v||null})};n.channel?.on(rL,()=>l());let s;return n.channel?.on(nL,()=>{"requestIdleCallback"in Dn.window?(s&&Dn.window.cancelIdleCallback(s),s=Dn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(eL,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:g}=i.getUrlState(),m=pm(c,dn(c,u));a(`${d}${f}`,{...g,globals:m||null},{replace:!0}),i.setQueryParams({globals:m||null})}),n.channel?.on(tL,(u,c)=>{i.navigateUrl(u,c)}),{api:i,state:iL(e),init:()=>{t.registerPersistenceHandler("url",(u,c)=>{if(c){let d=c(t.getState());i.applyQueryParams(d,{replace:!0})}})}}},qE={};We(qE,{init:()=>fL});var sL=yt(vn(),1);const{global:xd}=__STORYBOOK_MODULE_GLOBAL__;var uL="10.5.0",{VERSIONCHECK:cL}=xd,_0=(0,sL.default)(1)(()=>{try{return{...JSON.parse(cL).data||{}}}catch{return{}}}),dL=e=>e.includes("vue")?"vue":e,fL=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:uL},..._0()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:a,current:i}}=e.getState();return i&&ht.prerelease(i.version)&&a?o&&ht.gt(o.version,a.version)?o:a:o},getDocsUrl:({asset:o,subpath:a=o,versioned:i,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,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)g+=`${ht.major(f)}.${ht.minor(f)}/`;else if(i&&f&&c){let v=ht.diff(c,f);v==="patch"||v===null||(g+=`${ht.major(f)}.${ht.minor(f)}/`)}let[m,y]=a?.split("#")||[];if(m&&(g+=o?m:`${m}/`),l&&typeof xd.STORYBOOK_RENDERER<"u"){let v=xd.STORYBOOK_RENDERER;v&&(g+=`?renderer=${dL(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),y&&(g+=`#${y}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),a=n.getCurrentVersion();if(o){if(!o.version||!a.version)return!0;let i=ht.prerelease(a.version)?`${ht.major(a.version)}.${ht.minor(a.version)}.${ht.patch(a.version)}`:a.version,l=ht.diff(i,o.version);return ht.gt(o.version,i)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:a,next:i}=_0();await e.setState({versions:{...o,latest:a,next:i}})},state:r,api:n}},YE={};We(YE,{init:()=>vL});const{REQUEST_WHATS_NEW_DATA:pL,RESULT_WHATS_NEW_DATA:hL,SET_WHATS_NEW_CACHE:gL,TOGGLE_WHATS_NEW_NOTIFICATIONS:mL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:yL}=__STORYBOOK_MODULE_GLOBAL__;var T0="whats-new",bL=({color:e="currentColor",size:t=14})=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h.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})),vL=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let a={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(T0))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(mL,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){return r.channel?.emit(pL),new Promise(s=>r.channel?.once(hL,({data:u})=>s(u)))}function l(s){r.channel?.emit(gL,s)}return{init:async()=>{if(yL.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();o(s);let u=e.getUrlState(),c=u?.path==="/onboarding"||u.queryParams?.onboarding==="true",d=u?.path==="/review/"||u?.path==="/review"||u?.path?.startsWith("/review/");!c&&!d&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:T0,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:h.createElement(bL,null),onClear({dismissed:f}){f&&l({lastDismissedPost:s.url})}})},state:n,api:a}},tn=yt(C6(),1),EL=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),JD(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?QD(n):r||n})};EL(tn.default._);var XE="@storybook/manager/store";function _i(e){return e.get(XE)||{}}function JE(e,t){return e.set(XE,t)}function SL(e,t){let r=_i(e);return JE(e,{...r,...t})}var xL=class{constructor({allowPersistence:e,setState:t,getState:r}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let n of[tn.default.local,tn.default.session]){let o=_i(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:a,excludedTagFilters:i,...l}=o;JE(n,l)}}let t=_i(tn.default.local),r=_i(tn.default.session);return{...e,...t,...r}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:a="none"}=o||{},i={},l={};typeof e=="function"?i=u=>(l=e(u),l):(i=e,l=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(a!=="none"&&this.upstreamPersistence)if(a==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o?.serialize)}else{let u=a==="session"?tn.default.session:tn.default.local;await SL(u,l)}return n&&n(s),s}},{ActiveTabs:iZ}=fp,ZE=_6({api:void 0,state:bd({})}),$L=(...e)=>T6({},...e),wL=class extends p.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(y=>{"init"in y&&y.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:a,storyId:i,docsOptions:l,navigate:s}=e,u=new xL({getState:()=>this.state,setState:(y,v)=>{if(!this.mounted){let b=typeof y=="function"?y(this.state):y;return this.state={...this.state,...b},v?.(this.state),this.state}return this.setState(y,()=>v(this.state)),this.state}}),c={location:t,path:r,viewMode:o,singleStory:a,storyId:i,refId:n},d={docsOptions:l};this.state=u.getInitialState(bd({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[kE,wE,$E,fp,FE,NE,ME,HE,_E,CE,VE,qE,YE,LE].map(y=>y.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let g=bd(this.state,...this.modules.map(y=>y.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(y=>y.api));this.state=g,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let r=t.location?.search!==e.location?.search;return t.path!==e.path||r?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:pp(e.location)}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Xt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return h.createElement(CL,{effect:this.initModules},h.createElement(ZE.Provider,{value:t},h.createElement(TL,null,e)))}};wL.displayName="Manager";var CL=({children:e,effect:t})=>(h.useEffect(t,[]),e),_L=e=>e;function TL({filter:e=_L,children:t}){let r=p.useContext(ZE),n=p.useRef(t),o=p.useRef(e);if(typeof n.current!="function")return h.createElement(p.Fragment,null,n.current);let a=o.current(r),i=p.useMemo(()=>[...Object.entries(a).reduce((l,s)=>l.concat(s),[])],[r.state]);return p.useMemo(()=>{let l=n.current;return h.createElement(l,{...a})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:lZ}=__STORYBOOK_MODULE_CHANNELS__;var OL={id:"storybook/test-provider",leader:!0,initialState:{}};function AL({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:a=>e.subscribe("run-all",a),onClearAll:a=>e.subscribe("clear-all",a)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:a=>e.subscribe("settings-changed",a),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=a=>{let i=()=>e.getState()[a]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[a]:s}))})};return{...r,testProviderId:a,getState:i,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:a=>t(e,a)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}AL({universalTestProviderStore:$f.create({...OL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:zE});var RL={items:{accessibilityTests:{status:"open"},aiSetup:{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"},renderComponent:{status:"open"},runTests:{status:"open"},publishStorybook:{status:"open"},shareStorybook:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},DL={id:"storybook/checklist",initialState:RL};$f.create({...DL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Gu={exports:{}},Wu={};var O0;function PL(){if(O0)return Wu;O0=1;var e=v_();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,a=e.useLayoutEffect,i=e.useDebugValue;function l(d,f){var g=f(),m=n({inst:{value:g,getSnapshot:f}}),y=m[0].inst,v=m[1];return a(function(){y.value=g,y.getSnapshot=f,s(y)&&v({inst:y})},[d,g,f]),o(function(){return s(y)&&v({inst:y}),d(function(){s(y)&&v({inst:y})})},[d]),i(g),g}function s(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!r(d,g)}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 Wu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Wu}var A0;function IL(){return A0||(A0=1,Gu.exports=PL()),Gu.exports}var FL=IL(),xe=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},mo=({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"}}),Er=({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)"}),Ce=({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"}),wn={margin:"16px 0"},hp=F.div(Ce),LL=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},QE=F(LL)(({theme:e})=>({...Ce({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}})),eS=F.blockquote(({theme:e})=>({...Ce({theme:e}),...wn,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),fn=[],Zn=null,kL=p.lazy(async()=>{let{SyntaxHighlighter:e}=await yr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-YFXUGROL-D_-uxkyV.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return fn.length>0&&(fn.forEach(t=>{e.registerLanguage(...t)}),fn=[]),Zn===null&&(Zn=e),{default:t=>h.createElement(e,{...t})}}),NL=p.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([yr(()=>import("./syntaxhighlighter-YFXUGROL-D_-uxkyV.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),yr(()=>import("./formatter-L2YTDE3Q-DurSE8zx.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)]);return fn.length>0&&(fn.forEach(r=>{e.registerLanguage(...r)}),fn=[]),Zn===null&&(Zn=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),xa=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(NL,{...e}):h.createElement(kL,{...e}));xa.registerLanguage=(...e)=>{if(Zn!==null){Zn.registerLanguage(...e);return}fn.push(e)};var ML=e=>typeof e=="string",BL=/[\n\r]/g,jL=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...Er({theme:e})})),HL=F(xa)(({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"}})),gp=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=p.Children.toArray(t);return o.filter(ML).some(a=>a.match(BL))?h.createElement(HL,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(jL,{...r,className:e},o)},tS=F.dl(({theme:e})=>({...Ce({theme:e}),...wn,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}})),rS=F.div(Ce),nS=F.h1(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),mp=F.h2(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),yp=F.h3(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m1}px`})),oS=F.h4(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s3}px`})),aS=F.h5(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`})),iS=F.h6(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),lS=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),sS=F.img({maxWidth:"100%"}),uS=F.li(({theme:e})=>({...Ce({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Er({theme:e})})),UL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},cS=F.ol(({theme:e})=>({...Ce({theme:e}),...wn,...UL,listStyle:"decimal"})),dS=F.p(({theme:e})=>({...Ce({theme:e}),...wn,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Er({theme:e})})),fS=F.pre(({theme:e})=>({...Ce({theme:e}),...wn,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"}})),pS=F.span(({theme:e})=>({...Ce({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"}}})),hS=F.title(Er),gS=F.table(({theme:e})=>({...Ce({theme:e}),...wn,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}})),KL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},mS=F.ul(({theme:e})=>({...Ce({theme:e}),...wn,...KL,listStyle:"disc"})),yS={h1:e=>h.createElement(nS,{...xe(e,"h1")}),h2:e=>h.createElement(mp,{...xe(e,"h2")}),h3:e=>h.createElement(yp,{...xe(e,"h3")}),h4:e=>h.createElement(oS,{...xe(e,"h4")}),h5:e=>h.createElement(aS,{...xe(e,"h5")}),h6:e=>h.createElement(iS,{...xe(e,"h6")}),pre:e=>h.createElement(fS,{...xe(e,"pre")}),a:e=>h.createElement(QE,{...xe(e,"a")}),hr:e=>h.createElement(lS,{...xe(e,"hr")}),dl:e=>h.createElement(tS,{...xe(e,"dl")}),blockquote:e=>h.createElement(eS,{...xe(e,"blockquote")}),table:e=>h.createElement(gS,{...xe(e,"table")}),img:e=>h.createElement(sS,{...xe(e,"img")}),div:e=>h.createElement(rS,{...xe(e,"div")}),span:e=>h.createElement(pS,{...xe(e,"span")}),li:e=>h.createElement(uS,{...xe(e,"li")}),ul:e=>h.createElement(mS,{...xe(e,"ul")}),ol:e=>h.createElement(cS,{...xe(e,"ol")}),p:e=>h.createElement(dS,{...xe(e,"p")}),code:e=>h.createElement(gp,{...xe(e,"code")}),tt:e=>h.createElement(hS,{...xe(e,"tt")}),resetwrapper:e=>h.createElement(hp,{...xe(e,"resetwrapper")})};F.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 ${br(.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"?Ye(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${br(.9,e.color.secondary)}`};default:return{}}});const{deprecate:zL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var GL=0,WL=e=>e.button===GL&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,VL=(e,t)=>{WL(e)&&(e.preventDefault(),t(e))},qL=F.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}}:{}),YL=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ye(.07,e.color.secondary),"svg path:not([fill])":{fill:Ye(.07,e.color.secondary)}},"&:active":{color:Ye(.1,e.color.secondary),"svg path:not([fill])":{fill:Ye(.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,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),$a=p.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,isButton:i=void 0,href:l,...s},u)=>(i!==void 0&&zL("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),h.createElement(YL,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||i===!0,onClick:r&&e?c=>VL(c,r):r,className:a},h.createElement(qL,{withArrow:n,containsIcon:o},t,n&&h.createElement(IA,null)))));$a.displayName="Link";F.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:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"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{global:XL}=__STORYBOOK_MODULE_GLOBAL__;var{document:Oo,window:$d}=XL;async function JL(e){try{await $d.top?.navigator.clipboard.writeText(e)}catch{await $d.navigator.clipboard.writeText(e)}}async function ZL(e){let t=Oo.createElement("TEXTAREA"),r=Oo.activeElement;t.value=e,Oo.body.appendChild(t),t.select(),Oo.execCommand("copy"),Oo.body.removeChild(t),r.focus()}function QL(){return $d.navigator?.clipboard?JL:ZL}const{deprecate:wd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function R0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ek(...e){return t=>{let r=!1,n=e.map(o=>{let a=R0(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():R0(e[o],null)}}}}var tk=Symbol.for("react.lazy"),rl=E_[" use ".trim().toString()];function rk(e){return typeof e=="object"&&e!==null&&"then"in e}function bS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===tk&&"_payload"in e&&rk(e._payload)}function nk(e){let t=ak(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;bS(a)&&typeof rl=="function"&&(a=rl(a._payload));let l=p.Children.toArray(a),s=l.find(lk);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 ae.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return ae.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var ok=nk("Slot");function ak(e){let t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(bS(o)&&typeof rl=="function"&&(o=rl(o._payload)),p.isValidElement(o)){let i=uk(o),l=sk(a,o.props);return o.type!==p.Fragment&&(l.ref=n?ek(n,i):i),p.cloneElement(o,l)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ik=Symbol("radix.slottable");function lk(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ik}function sk(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{let l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function uk(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 ck=F.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)"})),vS=({note:e,...t})=>h.createElement(ck,{...t},e);const{deprecate:dk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var de=typeof document<"u"?h.useLayoutEffect:()=>{};function fk(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),a=p.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?a.current():r(l.value)});de(()=>{n.current=t,o.current&&a.current()});let i=p.useCallback(l=>{o.current=l(n.current),a.current()},[a]);return[t,i]}var ES={prefix:String(Math.round(Math.random()*1e10)),current:0},SS=h.createContext(ES),pk=h.createContext(!1),Vu=new WeakMap;function hk(e=!1){let t=p.useContext(SS),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__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(a){let i=Vu.get(a);i==null?Vu.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Vu.delete(a))}r.current=++t.current}return r.current}function gk(e){let t=p.useContext(SS),r=hk(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function mk(e){let t=h.useId(),[r]=p.useState(Cn()),n=r?"react-aria":`react-aria${ES.prefix}`;return e||`${n}-${t}`}var yk=typeof h.useId=="function"?mk:gk;function bk(){return!1}function vk(){return!0}function Ek(e){return()=>{}}function Cn(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Ek,bk,vk):p.useContext(pk)}var Sk=!!(typeof window<"u"&&window.document&&window.document.createElement),Un=new Map,Lo;typeof FinalizationRegistry<"u"&&(Lo=new FinalizationRegistry(e=>{Un.delete(e)}));function Ge(e){let[t,r]=p.useState(e),n=p.useRef(null),o=yk(t),a=p.useRef(null);if(Lo&&Lo.register(a,o),Sk){let i=Un.get(o);i&&!i.includes(n)?i.push(n):Un.set(o,[n])}return de(()=>{let i=o;return()=>{Lo&&Lo.unregister(a),Un.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function xk(e,t){if(e===t)return e;let r=Un.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Un.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ti(e=[]){let t=Ge(),[r,n]=fk(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return de(o,[t,o,...e]),r}function wa(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var fe=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},_t=e=>e&&"window"in e&&e.window===e?e:fe(e).defaultView||window;function $t(e,t){return t&&e?e.contains(t):!1}var Me=(e=document)=>e.activeElement;function Oe(e){return e.target}function $k(e,t,r,n){return e.createTreeWalker(t,r,n)}function xS(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=xS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xS(e))&&(n&&(n+=" "),n+=t);return n}var Ck=wk;function te(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],i=n[o];typeof a=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wa(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=Ck(a,i):o==="id"&&a&&i?t.id=xk(a,i):t[o]=i!==void 0?i:a}}return t}function bp(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let a=D0(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():D0(e[a],null)})}}}function D0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var _k=new Set(["id"]),Tk=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ok=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ak=new Set(["dir","lang","hidden","inert","translate"]),P0=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"]),Rk=/^(data-.*)$/;function _e(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:i}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_k.has(s)||r&&Tk.has(s)||n&&Ok.has(s)||o&&Ak.has(s)||a&&(P0.has(s)||s.endsWith("Capture")&&P0.has(s.slice(0,-7)))||i?.has(s)||Rk.test(s))&&(l[s]=e[s]);return l}function lt(e){if(Dk())e.focus({preventScroll:!0});else{let t=Pk(e);e.focus(),Ik(t)}}var Za=null;function Dk(){if(Za==null){Za=!1;try{document.createElement("div").focus({get preventScroll(){return Za=!0,!0}})}catch{}}return Za}function Pk(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 Ik(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function ql(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 vp(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 Sr(e){let t=null;return()=>(t==null&&(t=e()),t)}var mn=Sr(function(){return vp(/^Mac/i)}),Fk=Sr(function(){return vp(/^iPhone/i)}),$S=Sr(function(){return vp(/^iPad/i)||mn()&&navigator.maxTouchPoints>1}),Yl=Sr(function(){return Fk()||$S()}),Lk=Sr(function(){return mn()||Yl()}),wS=Sr(function(){return ql(/AppleWebKit/i)&&!CS()}),CS=Sr(function(){return ql(/Chrome/i)}),Ep=Sr(function(){return ql(/Android/i)}),kk=Sr(function(){return ql(/Firefox/i)}),Nk=p.createContext({isNative:!0,open:jk,useHref:e=>e});function Xl(){return p.useContext(Nk)}function Mk(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 yn(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;kk()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(mn()?a=!0:i=!0);let u=wS()&&mn()&&!$S()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});yn.isOpening=r,lt(e),e.dispatchEvent(u),yn.isOpening=!1}yn.isOpening=!1;function Bk(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 jk(e,t){Bk(e,r=>yn(r,t))}function _S(e){let t=Xl();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 Hk(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Mk(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ir=new Map,Cd=new Set;function I0(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Ir.get(n.target);o||(o=new Set,Ir.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=Ir.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Ir.delete(n.target)),Ir.size===0)){for(let a of Cd)a();Cd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?I0():document.addEventListener("DOMContentLoaded",I0));function Uk(){for(let[e]of Ir)"isConnected"in e&&!e.isConnected&&Ir.delete(e)}function TS(e){requestAnimationFrame(()=>{Uk(),Ir.size===0?e():Cd.add(e)})}function Jl(){let e=p.useRef(new Map),t=p.useCallback((o,a,i,l)=>{let s=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),r=p.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),n=p.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Zl(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ge(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 Kt(e){let t=p.useRef(null),r=p.useRef(void 0),n=p.useCallback(o=>{if(typeof e=="function"){let a=e,i=a(o);return()=>{typeof i=="function"?i():a(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 qu,Kk=(qu=h.useInsertionEffect)!==null&&qu!==void 0?qu:de;function He(e){let t=p.useRef(null);return Kk(()=>{t.current=e},[e]),p.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function F0(e,t){let r=p.useRef(!0),n=p.useRef(null);de(()=>(r.current=!0,()=>{r.current=!1}),[]),de(()=>{r.current?r.current=!1:(!n.current||t.some((o,a)=>!Object.is(o,n[a])))&&e(),n.current=t},t)}function zk(){return typeof window.ResizeObserver<"u"}function nl(e){let{ref:t,box:r,onResize:n}=e,o=He(n);p.useEffect(()=>{let a=t?.current;if(a)if(zk()){let i=new window.ResizeObserver(l=>{l.length&&o()});return i.observe(a,{box:r}),()=>{a&&i.unobserve(a)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Sp(e,t){de(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Qn(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 OS(e,t){let r=e;for(Qn(r,t)&&(r=r.parentElement);r&&!Qn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Gk(e,t){let r=[];for(;e&&e!==document.documentElement;)Qn(e,t)&&r.push(e),e=e.parentElement;return r}function Ln(e){return mn()?e.metaKey:e.ctrlKey}var Wk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yu(e){return e instanceof HTMLInputElement&&!Wk.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Vk=0,Xu=new Map;function qk(e){let[t,r]=p.useState();return de(()=>{if(!e)return;let n=Xu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Vk++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},Xu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Xu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ko(e,t,r,n){let o=He(r),a=r==null;p.useEffect(()=>{if(a||!e.current)return;let i=e.current;return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[e,t,n,a])}function AS(e,t){let r=L0(e,t,"left"),n=L0(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:g}=getComputedStyle(e),m=i+parseInt(u,10),y=l+parseInt(s,10),v=m+e.clientWidth,b=y+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(f,10)||0,x=parseInt(d,10)||0,C=parseInt(g,10)||0;r<=i+C?i=r-parseInt(u,10)-C:r+o>v-x&&(i+=r+o-v+x),n<=y+E?l=n-parseInt(s,10)-E:n+a>b-S&&(l+=n+a-b+S),e.scrollLeft=i,e.scrollTop=l}function L0(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 k0(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,l=window.getComputedStyle(i).overflow==="hidden";if(l){let s=Gk(e);l||s.push(i);for(let u of s)AS(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,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function RS(e){return e.pointerType===""&&e.isTrusted?!0:Ep()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Yk(e){return!Ep()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function N0(e){let t=p.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var Xk="react-aria-clear-focus",Jk="react-aria-focus";function DS(e,t=!0){let[r,n]=p.useState(!0),o=r&&t;return de(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,o]),IS(e,o,p.useCallback(()=>n(!1),[])),o}function PS(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 IS(e,o,p.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),o}function IS(e,t,r){de(()=>{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(a=>a.finished)).then(()=>{o||Sl.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var Zk=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Qk(e){let t=_t(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:a}=e.ownerDocument.defaultView,{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function e7(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 xp(e,t){return Zk?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Qk(e)&&e7(e,t)&&(!e.parentElement||xp(e.parentElement,e))}var $p=["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"],t7=$p.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$p.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var r7=$p.join(':not([hidden]):not([tabindex="-1"]),');function FS(e){return e.matches(t7)&&xp(e)&&!LS(e)}function n7(e){return e.matches(r7)&&xp(e)&&!LS(e)}function LS(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Ju,o7=typeof document<"u"?(Ju=h.useInsertionEffect)!==null&&Ju!==void 0?Ju:h.useLayoutEffect:()=>{};function Ql(e,t,r){let[n,o]=p.useState(e||t),a=p.useRef(n),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{i.current,i.current=l},[l]);let s=l?e:n;o7(()=>{a.current=s});let[,u]=p.useReducer(()=>({}),{}),c=p.useCallback((d,...f)=>{let g=typeof d=="function"?d(a.current):d;Object.is(a.current,g)||(a.current=g,o(g),u(),r?.(g,...f))},[r]);return[s,c]}function oa(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function wp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function NS(e){let t=p.useRef({isFocused:!1,observer:null});de(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=He(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,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=wp(i);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.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 ol=!1;function a7(e){for(;e&&!FS(e);)e=e.parentElement;let t=_t(e),r=t.document.activeElement;if(!r||r===e)return;ol=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},a=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,lt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,lt(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),ol=!1,n=!1},u=requestAnimationFrame(s);return s}var Bn="default",_d="",Oi=new WeakMap;function i7(e){if(Yl()){if(Bn==="default"){let t=fe(e);_d=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Bn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Oi.set(e,e.style[t]),e.style[t]="none"}}function M0(e){if(Yl()){if(Bn!=="disabled")return;Bn="restoring",setTimeout(()=>{TS(()=>{if(Bn==="restoring"){let t=fe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_d||""),_d="",Bn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Oi.has(e)){let t=Oi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Oi.delete(e)}}var aa=h.createContext({register:()=>{}});aa.displayName="PressResponderContext";function l7(e,t){return t.get?t.get.call(e):t.value}function MS(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function s7(e,t){var r=MS(e,t,"get");return l7(e,r)}function u7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c7(e,t,r){u7(e,t),t.set(e,r)}function d7(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 B0(e,t,r){var n=MS(e,t,"set");return d7(e,n,r),r}function f7(e){let t=p.useContext(aa);if(t){let{register:r,...n}=t;e=te(n,e),r()}return Sp(t,e.ref),e}var Qa=new WeakMap,ei=class{continuePropagation(){B0(this,Qa,!1)}get shouldStopPropagation(){return s7(this,Qa)}constructor(e,t,r,n){c7(this,Qa,{writable:!0,value:void 0}),B0(this,Qa,!0);var o;let a=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,i=a?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(l=u-i.left,s=c-i.top):(l=i.width/2,s=i.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}},j0=Symbol("linkClicked"),H0="react-aria-pressable-style",U0="data-react-aria-pressable";function Ca(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...g}=f7(e),[m,y]=p.useState(!1),v=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:E}=Jl(),S=He((_,N)=>{let B=v.current;if(l||B.didFirePressStart)return!1;let w=!0;if(B.isTriggeringEvent=!0,n){let R=new ei("pressstart",N,_);n(R),w=R.shouldStopPropagation}return r&&r(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,y(!0),w}),x=He((_,N,B=!0)=>{let w=v.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let R=!0;if(o){let P=new ei("pressend",N,_);o(P),R=P.shouldStopPropagation}if(r&&r(!1),y(!1),t&&B&&!l){let P=new ei("press",N,_);t(P),R&&(R=P.shouldStopPropagation)}return w.isTriggeringEvent=!1,R}),C=He((_,N)=>{let B=v.current;if(l)return!1;if(a){B.isTriggeringEvent=!0;let w=new ei("pressup",N,_);return a(w),B.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),$=He(_=>{let N=v.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&x(Wr(N.target,_),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,E(),d||M0(N.target);for(let B of N.disposables)B();N.disposables=[]}}),T=He(_=>{c&&$(_)}),O=He(_=>{l||i?.(_)}),L=He((_,N)=>{if(!l&&i){let B=new MouseEvent("click",_);kS(B,N),i(wp(B))}}),I=p.useMemo(()=>{let _=v.current,N={onKeyDown(w){if(Zu(w.nativeEvent,w.currentTarget)&&$t(w.currentTarget,Oe(w.nativeEvent))){var R;K0(Oe(w.nativeEvent),w.key)&&w.preventDefault();let P=!0;if(!_.isPressed&&!w.repeat){_.target=w.currentTarget,_.isPressed=!0,_.pointerType="keyboard",P=S(w,"keyboard");let A=w.currentTarget,D=M=>{Zu(M,A)&&!M.repeat&&$t(A,Oe(M))&&_.target&&C(Wr(_.target,M),"keyboard")};b(fe(w.currentTarget),"keyup",wa(D,B),!0)}P&&w.stopPropagation(),w.metaKey&&mn()&&((R=_.metaKeyEvents)===null||R===void 0||R.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(w){if(!(w&&!$t(w.currentTarget,Oe(w.nativeEvent)))&&w&&w.button===0&&!_.isTriggeringEvent&&!yn.isOpening){let R=!0;if(l&&w.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||RS(w.nativeEvent))){let P=S(w,"virtual"),A=C(w,"virtual"),D=x(w,"virtual");O(w),R=P&&A&&D}else if(_.isPressed&&_.pointerType!=="keyboard"){let P=_.pointerType||w.nativeEvent.pointerType||"virtual",A=C(Wr(w.currentTarget,w),P),D=x(Wr(w.currentTarget,w),P,!0);R=A&&D,_.isOverTarget=!1,O(w),$(w)}_.ignoreEmulatedMouseEvents=!1,R&&w.stopPropagation()}}},B=w=>{var R;if(_.isPressed&&_.target&&Zu(w,_.target)){var P;K0(Oe(w),w.key)&&w.preventDefault();let D=Oe(w),M=$t(_.target,Oe(w));x(Wr(_.target,w),"keyboard",M),M&&L(w,_.target),E(),w.key!=="Enter"&&Cp(_.target)&&$t(_.target,D)&&!w[j0]&&(w[j0]=!0,yn(_.target,w,!1)),_.isPressed=!1,(P=_.metaKeyEvents)===null||P===void 0||P.delete(w.key)}else if(w.key==="Meta"&&!((R=_.metaKeyEvents)===null||R===void 0)&&R.size){var A;let D=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let M of D.values())(A=_.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",M))}};if(typeof PointerEvent<"u"){N.onPointerDown=P=>{if(P.button!==0||!$t(P.currentTarget,Oe(P.nativeEvent)))return;if(Yk(P.nativeEvent)){_.pointerType="virtual";return}_.pointerType=P.pointerType;let A=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=P.pointerId,_.target=P.currentTarget,d||i7(_.target),A=S(P,_.pointerType);let D=Oe(P.nativeEvent);"releasePointerCapture"in D&&D.releasePointerCapture(P.pointerId),b(fe(P.currentTarget),"pointerup",w,!1),b(fe(P.currentTarget),"pointercancel",R,!1)}A&&P.stopPropagation()},N.onMouseDown=P=>{if($t(P.currentTarget,Oe(P.nativeEvent))&&P.button===0){if(u){let A=a7(P.target);A&&_.disposables.push(A)}P.stopPropagation()}},N.onPointerUp=P=>{!$t(P.currentTarget,Oe(P.nativeEvent))||_.pointerType==="virtual"||P.button===0&&!_.isPressed&&C(P,_.pointerType||P.pointerType)},N.onPointerEnter=P=>{P.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,S(Wr(_.target,P),_.pointerType))},N.onPointerLeave=P=>{P.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,x(Wr(_.target,P),_.pointerType,!1),T(P))};let w=P=>{if(P.pointerId===_.activePointerId&&_.isPressed&&P.button===0&&_.target){if($t(_.target,Oe(P))&&_.pointerType!=null){let A=!1,D=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(A?$(P):(lt(_.target),_.target.click()))},80);b(P.currentTarget,"click",()=>A=!0,!0),_.disposables.push(()=>clearTimeout(D))}else $(P);_.isOverTarget=!1}},R=P=>{$(P)};N.onDragStart=P=>{$t(P.currentTarget,Oe(P.nativeEvent))&&$(P)}}return N},[b,l,u,E,d,$,T,x,S,C,O,L]);return p.useEffect(()=>{if(!f)return;let _=fe(f.current);if(!_||!_.head||_.getElementById(H0))return;let N=_.createElement("style");N.id=H0,N.textContent=`
652
+ @layer {
653
+ [${U0}] {
654
+ touch-action: pan-x pan-y pinch-zoom;
655
+ }
656
+ }
657
+ `.trim(),_.head.prepend(N)},[f]),p.useEffect(()=>{let _=v.current;return()=>{var N;d||M0((N=_.target)!==null&&N!==void 0?N:void 0);for(let B of _.disposables)B();_.disposables=[]}},[d]),{isPressed:s||m,pressProps:te(g,I,{[U0]:!0})}}function Cp(e){return e.tagName==="A"&&e.hasAttribute("href")}function Zu(e,t){let{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof _t(o).HTMLInputElement&&!BS(o,r)||o instanceof _t(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Cp(o))&&r!=="Enter")}function Wr(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 p7(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Cp(e)}function K0(e,t){return e instanceof HTMLInputElement?!BS(e,t):p7(e)}var h7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function BS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":h7.has(e.type)}var kr=null,ia=new Set,Ho=new Map,bn=!1,Td=!1,g7={Tab:!0,Escape:!0};function _p(e,t){for(let r of ia)r(e,t)}function m7(e){return!(e.metaKey||!mn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function al(e){bn=!0,m7(e)&&(kr="keyboard",_p("keyboard",e))}function Kn(e){kr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bn=!0,_p("pointer",e))}function jS(e){RS(e)&&(bn=!0,kr="virtual")}function HS(e){e.target===window||e.target===document||ol||!e.isTrusted||(!bn&&!Td&&(kr="virtual",_p("virtual",e)),bn=!1,Td=!1)}function US(){ol||(bn=!1,Td=!0)}function il(e){if(typeof window>"u"||typeof document>"u"||Ho.get(_t(e)))return;let t=_t(e),r=fe(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bn=!0,n.apply(this,arguments)},r.addEventListener("keydown",al,!0),r.addEventListener("keyup",al,!0),r.addEventListener("click",jS,!0),t.addEventListener("focus",HS,!0),t.addEventListener("blur",US,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Kn,!0),r.addEventListener("pointermove",Kn,!0),r.addEventListener("pointerup",Kn,!0)),t.addEventListener("beforeunload",()=>{KS(e)},{once:!0}),Ho.set(t,{focus:n})}var KS=(e,t)=>{let r=_t(e),n=fe(e);t&&n.removeEventListener("DOMContentLoaded",t),Ho.has(r)&&(r.HTMLElement.prototype.focus=Ho.get(r).focus,n.removeEventListener("keydown",al,!0),n.removeEventListener("keyup",al,!0),n.removeEventListener("click",jS,!0),r.removeEventListener("focus",HS,!0),r.removeEventListener("blur",US,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",Kn,!0),n.removeEventListener("pointermove",Kn,!0),n.removeEventListener("pointerup",Kn,!0)),Ho.delete(r))};function y7(e){let t=fe(e),r;return t.readyState!=="loading"?il(e):(r=()=>{il(e)},t.addEventListener("DOMContentLoaded",r)),()=>KS(e,r)}typeof document<"u"&&y7();function la(){return kr!=="pointer"}function sa(){return kr}function b7(){il();let[e,t]=p.useState(kr);return p.useEffect(()=>{let r=()=>{t(kr)};return ia.add(r),()=>{ia.delete(r)}},[]),Cn()?null:e}var v7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function E7(e,t,r){let n=fe(r?.target),o=typeof window<"u"?_t(r?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?_t(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?_t(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?_t(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!v7.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!g7[r.key])}function S7(e,t,r){il(),p.useEffect(()=>{let n=(o,a)=>{E7(!!r?.isTextInput,o,a)&&e(la())};return ia.add(n),()=>{ia.delete(n)}},t)}function Nr(e){let t=fe(e),r=Me(t);if(sa()==="virtual"){let n=r;TS(()=>{Me(t)===n&&e.isConnected&&lt(e)})}else lt(e)}function Tp(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,a=p.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),i=NS(a),l=p.useCallback(s=>{let u=fe(s.target),c=u?Me(u):Me();s.target===s.currentTarget&&c===Oe(s.nativeEvent)&&(r&&r(s),o&&o(!0),i(s))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?a:void 0}}}function z0(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 zS(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:z0(e.onKeyDown),onKeyUp:z0(e.onKeyUp)}}}var ll=h.createContext(null);function x7(e){let t=p.useContext(ll)||{};Sp(t,e);let{ref:r,...n}=t;return n}var $7=h.forwardRef(function(e,t){let{children:r,...n}=e,o=Kt(t),a={...n,ref:o};return h.createElement(ll.Provider,{value:a},r)});function _a(e,t){let{focusProps:r}=Tp(e),{keyboardProps:n}=zS(e),o=te(r,n),a=x7(t),i=e.isDisabled?{}:a,l=p.useRef(e.autoFocus);p.useEffect(()=>{l.current&&t.current&&Nr(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:te({...o,tabIndex:s},i)}}var w7=p.forwardRef(({children:e,...t},r)=>{r=Kt(r);let{focusableProps:n}=_a(t,r),o=h.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(h.version,10)<19?o.ref:o.props.ref;return h.cloneElement(o,{...te(n,o.props),ref:bp(a,r)})}),C7=h.forwardRef(({children:e,...t},r)=>{r=Kt(r);let{pressProps:n}=Ca({...t,ref:r}),{focusableProps:o}=_a(t,r),a=h.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(h.version,10)<19?a.ref:a.props.ref;return h.cloneElement(a,{...te(n,o,a.props),ref:bp(i,r)})}),_7=h.forwardRef(({children:e,...t},r)=>{let n=p.useRef(!1),o=p.useContext(aa);r=Kt(r||o?.ref);let a=te(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Sp(o,r),p.useEffect(()=>{n.current||(n.current=!0)},[]),h.createElement(aa.Provider,{value:a},e)});function T7({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return h.createElement(aa.Provider,{value:t},e)}function Op(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=Jl(),s=p.useCallback(d=>{d.currentTarget.contains(d.target)&&a.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,a,l]),u=NS(s),c=p.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=fe(d.target),g=Me(f);if(!a.current.isFocusWithin&&g===Oe(d.nativeEvent)){n&&n(d),o&&o(!0),a.current.isFocusWithin=!0,u(d);let m=d.currentTarget;i(f,"focus",y=>{if(a.current.isFocusWithin&&!$t(m,y.target)){let v=new f.defaultView.FocusEvent("blur",{relatedTarget:y.target});kS(v,m);let b=wp(v);s(b)}},{capture:!0})}},[n,o,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var Od=!1,ti=0;function O7(){Od=!0,setTimeout(()=>{Od=!1},50)}function G0(e){e.pointerType==="touch"&&O7()}function A7(){if(!(typeof document>"u"))return ti===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",G0)),ti++,()=>{ti--,!(ti>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",G0))}}function yo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(A7,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Jl(),{hoverProps:c,triggerHoverEnd:d}=p.useMemo(()=>{let f=(y,v)=>{if(l.pointerType=v,o||v==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let b=y.currentTarget;l.target=b,s(fe(y.target),"pointerover",E=>{l.isHovered&&l.target&&!$t(l.target,E.target)&&g(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),r&&r(!0),i(!0)},g=(y,v)=>{let b=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!b)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:b,pointerType:v}),r&&r(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=y=>{Od&&y.pointerType==="mouse"||f(y,y.pointerType)},m.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&g(y,y.pointerType)}),{hoverProps:m,triggerHoverEnd:g}},[t,r,n,o,l,s,u]);return p.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:a}}function GS(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,a=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=He(s=>{r&&W0(s,t)&&(o&&o(s),a.current.isPointerDown=!0)}),l=He(s=>{r&&r(s)});p.useEffect(()=>{let s=a.current;if(n)return;let u=t.current,c=fe(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&W0(f,t)&&l(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",i,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",i,!0),c.removeEventListener("click",d,!0)}}},[t,n,i,l])}function W0(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 R7=500;function D7(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=R7,accessibilityDescription:i}=e,l=p.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=Jl(),{pressProps:c}=Ca({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})),fe(f.target).activeElement!==f.target&&lt(f.target),o&&o({...f,type:"longpress"}),l.current=void 0},a),f.pointerType==="touch")){let g=m=>{m.preventDefault()};s(f.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=qk(o&&!t?i:void 0);return{longPressProps:te(c,d)}}var sl=Symbol("default");function xr({values:e,children:t}){for(let[r,n]of e)t=h.createElement(r.Provider,{value:n},t);return t}function vt(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:a,defaultStyle:i,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:i||{}}):u=r,typeof n=="function"?c=n({...l,defaultChildren:a}):n==null?c=a:c=n,{className:s??o,style:u||i?{...i,...u}:void 0,children:c??a,"data-rac":""}},[t,r,n,o,a,i,l])}function Ap(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||sl;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Ze(e,t,r){let n=Ap(r,e.slot)||{},{ref:o,...a}=n,i=Kt(p.useMemo(()=>bp(t,o),[t,o])),l=te(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...a.style,...e.style}),[l,i]}function WS(e=!0){let[t,r]=p.useState(e),n=p.useRef(!1),o=p.useCallback(a=>{n.current=!0,r(!!a)},[]);return de(()=>{n.current||r(!1)},[]),[o,t]}var Rp=p.createContext({placement:"bottom"});p.forwardRef(function(e,t){[e,t]=Ze(e,t,Rp);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=vt({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(i=>o.style[i]===void 0&&delete o.style[i]);let a=_e(e);return h.createElement("div",{...a,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function P7(e,t){let r=_e(e,{labelable:!0}),{hoverProps:n}=yo({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:te(r,n,{role:"tooltip"})}}function I7(e,t,r){let{isDisabled:n,trigger:o}=e,a=Ge(),i=p.useRef(!1),l=p.useRef(!1),s=()=>{(i.current||l.current)&&t.open(l.current)},u=b=>{!i.current&&!l.current&&t.close(b)};p.useEffect(()=>{let b=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[r,t]);let c=()=>{o!=="focus"&&(sa()==="pointer"?i.current=!0:i.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,i.current=!1,u())},f=()=>{l.current=!1,i.current=!1,u(!0)},g=()=>{la()&&(l.current=!0,s())},m=()=>{l.current=!1,i.current=!1,u(!0)},{hoverProps:y}=yo({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:v}=_a({isDisabled:n,onFocus:g,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...te(v,y,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}var er={top:"top",bottom:"top",left:"left",right:"left"},ul={top:"bottom",bottom:"top",left:"right",right:"left"},F7={top:"left",left:"top"},Ad={top:"height",left:"width"},VS={width:"totalWidth",height:"totalHeight"},ri={},wr=typeof document<"u"?window.visualViewport:null;function V0(e){let t=0,r=0,n=0,o=0,a=0,i=0,l={};var s;let u=((s=wr?.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=wr?.width)!==null&&c!==void 0?c:n;var d;r=(d=wr?.height)!==null&&d!==void 0?d:o,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,wr&&(a=wr.offsetTop,i=wr.offsetLeft)}else({width:t,height:r,top:a,left:i}=zn(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(wS()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;a=(f=wr?.pageTop)!==null&&f!==void 0?f:0;var g;i=(g=wr?.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:a,left:i}}function L7(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function q0(e,t,r,n,o,a,i){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Ad[e]],c=n.scroll[er[e]]+a,d=u+n.scroll[er[e]]-a,f=t-s+i[e]-n[er[e]],g=t-s+r+i[e]-n[er[e]];return f<c?c-f:g>d?Math.max(d-g,c-f):0}function k7(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 Y0(e){if(ri[e])return ri[e];let[t,r]=e.split(" "),n=er[t]||"right",o=F7[n];er[r]||(r="center");let a=Ad[n],i=Ad[o];return ri[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:a,crossSize:i},ri[e]}function Qu(e,t,r,n,o,a,i,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:g,size:m,crossSize:y}=n,v={};var b;v[g]=(b=e[g])!==null&&b!==void 0?b:0;var E,S,x,C;d==="center"?v[g]+=(((E=e[y])!==null&&E!==void 0?E:0)-((S=r[y])!==null&&S!==void 0?S:0))/2:d!==g&&(v[g]+=((x=e[y])!==null&&x!==void 0?x:0)-((C=r[y])!==null&&C!==void 0?C:0)),v[g]+=a;let $=e[g]-r[y]+s+u,T=e[g]+e[y]-s-u;if(v[g]=oa(v[g],$,T),c===f){let O=l?i[m]:t[VS[m]];v[ul[f]]=Math.floor(O-e[f]+o)}else v[f]=Math.floor(e[f]+e[m]+o);return v}function N7(e,t,r,n,o,a,i,l){let s=n?r.height:t[VS.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var d,f,g,m,y,v;let b=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)+((g=o.bottom)!==null&&g!==void 0?g:0)+a)):Math.max(0,c+i-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((y=o.top)!==null&&y!==void 0?y:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+a));return Math.min(t.height-a*2,b)}function X0(e,t,r,n,o,a){let{placement:i,axis:l,size:s}=a;var u,c;if(i===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[ul[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[ul[l]]-o)}function M7(e,t,r,n,o,a,i,l,s,u,c,d,f,g,m,y){let v=Y0(e),{size:b,crossAxis:E,crossSize:S,placement:x,crossPlacement:C}=v,$=Qu(t,l,r,v,c,d,u,f,m,y),T=c,O=X0(l,u,t,o,a+c,v);if(i&&n[b]>O){let W=Y0(`${ul[x]} ${C}`),q=Qu(t,l,r,W,c,d,u,f,m,y);X0(l,u,t,o,a+c,W)>O&&(v=W,$=q,T=c)}let L="bottom";v.axis==="top"?v.placement==="top"?L="top":v.placement==="bottom"&&(L="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?L="bottom":v.crossPlacement==="bottom"&&(L="top"));let I=q0(E,$[E],r[S],l,s,a,u);$[E]+=I;let _=N7($,l,u,f,o,a,r.height,L);g&&g<_&&(_=g),r.height=Math.min(r.height,_),$=Qu(t,l,r,v,T,d,u,f,m,y),I=q0(E,$[E],r[S],l,s,a,u),$[E]+=I;let N={},B=t[E]-$[E]-o[er[E]],w=B+.5*t[S],R=m/2+y;var P,A,D,M;let k=er[E]==="left"?((P=o.left)!==null&&P!==void 0?P:0)+((A=o.right)!==null&&A!==void 0?A:0):((D=o.top)!==null&&D!==void 0?D:0)+((M=o.bottom)!==null&&M!==void 0?M:0),K=r[S]-k-m/2-y,j=t[E]+m/2-($[E]+o[er[E]]),z=t[E]+t[S]-m/2-($[E]+o[er[E]]),U=oa(w,j,z);N[E]=oa(U,R,K),{placement:x,crossPlacement:C}=v,m?B=N[E]:C==="right"?B+=t[S]:C==="center"&&(B+=t[S]/2);let H=x==="left"||x==="top"?r[b]:0,G={x:x==="top"||x==="bottom"?B:H,y:x==="left"||x==="right"?B:H};return{position:$,maxHeight:_,arrowOffsetLeft:N.left,arrowOffsetTop:N.top,placement:x,triggerAnchorPoint:G}}function B7(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,g=n instanceof HTMLElement?j7(n):document.documentElement,m=g===document.documentElement,y=window.getComputedStyle(g).position,v=!!y&&y!=="static",b=m?zn(r,!1):J0(r,g,!1);if(!m){let{marginTop:N,marginLeft:B}=window.getComputedStyle(r);b.top+=parseInt(N,10)||0,b.left+=parseInt(B,10)||0}let E=zn(n,!0),S=k7(n);var x,C;E.width+=((x=S.left)!==null&&x!==void 0?x:0)+((C=S.right)!==null&&C!==void 0?C:0);var $,T;E.height+=(($=S.top)!==null&&$!==void 0?$:0)+((T=S.bottom)!==null&&T!==void 0?T:0);let O=L7(o),L=V0(l),I=V0(g),_=l.tagName==="BODY"?zn(g,!1):J0(g,l,!1);return g.tagName==="HTML"&&l.tagName==="BODY"&&(I.scroll.top=0,I.scroll.left=0),M7(t,b,E,O,S,a,i,L,I,_,s,u,v,c,d,f)}function Dp(e,t){let{top:r,left:n,width:o,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,a=e.offsetHeight),{top:r,left:n,width:o,height:a}}function zn(e,t){let{top:r,left:n,width:o,height:a}=Dp(e,t),{scrollTop:i,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+i-s,left:n+l-u,width:o,height:a}}function J0(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Dp(e,r);else{o=zn(e,r);let a=zn(t,r),i=window.getComputedStyle(t);a.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=a.top,o.left-=a.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function j7(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Z0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Z0(t);)t=t.parentElement;return t||document.documentElement}function Z0(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 qS=new WeakMap;function H7(e){let{triggerRef:t,isOpen:r,onClose:n}=e;p.useEffect(()=>{if(!r||n===null)return;let o=a=>{let i=a.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let l=n||qS.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var U7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),K7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function z7(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 U7.has(r.script)}let t=e.split("-")[0];return K7.has(t)}var G7=Symbol.for("react-aria.i18n.locale");function YS(){let e=typeof window<"u"&&window[G7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:z7(e)?"rtl":"ltr"}}var Rd=YS(),No=new Set;function Q0(){Rd=YS();for(let e of No)e(Rd)}function W7(){let e=Cn(),[t,r]=p.useState(Rd);return p.useEffect(()=>(No.size===0&&window.addEventListener("languagechange",Q0),No.add(r),()=>{No.delete(r),No.size===0&&window.removeEventListener("languagechange",Q0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var V7=h.createContext(null);function $r(){let e=W7();return p.useContext(V7)||e}var Dd=function(e,t){return Dd=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])},Dd(e,t)};function es(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ce=function(){return ce=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},ce.apply(this,arguments)};function q7(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 ec(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function tc(e,t){var r=t&&t.cache?t.cache:tN,n=t&&t.serializer?t.serializer:Q7,o=t&&t.strategy?t.strategy:J7;return o(e,{cache:r,serializer:n})}function Y7(e){return e==null||typeof e=="number"||typeof e=="boolean"}function X7(e,t,r,n){var o=Y7(n)?n:r(n),a=t.get(o);return typeof a>"u"&&(a=e.call(this,n),t.set(o,a)),a}function XS(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return typeof a>"u"&&(a=e.apply(this,n),t.set(o,a)),a}function JS(e,t,r,n,o){return r.bind(t,e,n,o)}function J7(e,t){var r=e.length===1?X7:XS;return JS(e,this,r,t.cache.create(),t.serializer)}function Z7(e,t){return JS(e,this,XS,t.cache.create(),t.serializer)}var Q7=function(){return JSON.stringify(arguments)},eN=(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})(),tN={create:function(){return new eN}},rc={variadic:Z7},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 $e;(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"})($e||($e={}));var eo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(eo||(eo={}));function ey(e){return e.type===$e.literal}function rN(e){return e.type===$e.argument}function ZS(e){return e.type===$e.number}function QS(e){return e.type===$e.date}function ex(e){return e.type===$e.time}function tx(e){return e.type===$e.select}function rx(e){return e.type===$e.plural}function nN(e){return e.type===$e.pound}function nx(e){return e.type===$e.tag}function ox(e){return!!(e&&typeof e=="object"&&e.type===eo.number)}function Pd(e){return!!(e&&typeof e=="object"&&e.type===eo.dateTime)}var ax=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,oN=/(?:[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 aN(e){var t={};return e.replace(oN,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 iN=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lN(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(iN).filter(function(f){return f.length>0}),r=[],n=0,o=t;n<o.length;n++){var a=o[n],i=a.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var l=i[0],s=i.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 sN(e){return e.replace(/^(.*?)-/,"")}var ty=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ix=/^(@+)?(\+|#+)?[rs]?$/g,uN=/(\*)(0+)|(#+)(0+)|(0+)/g,lx=/^(0+)$/;function ry(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ix,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 sx(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 cN(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)),!lx.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ny(e){var t={},r=sx(e);return r||t}function dN(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=sN(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=ce(ce(ce({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return ce(ce({},s),ny(u))},{}));continue;case"engineering":t=ce(ce(ce({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return ce(ce({},s),ny(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(uN,function(s,u,c,d,f,g){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lx.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(ty.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ty,function(s,u,c,d,f,g){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&g?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=ce(ce({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=ce(ce({},t),ry(a)));continue}if(ix.test(o.stem)){t=ce(ce({},t),ry(o.stem));continue}var i=sx(o.stem);i&&(t=ce(ce({},t),i));var l=cN(o.stem);l&&(t=ce(ce({},t),l))}return t}var ni={"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 fN(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var i=1+(a&1),l=a<2?1:3+(a>>1),s="a",u=pN(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;i-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function pN(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=ni[n||""]||ni[r||""]||ni["".concat(r,"-001")]||ni["001"];return o[0]}var nc,hN=new RegExp("^".concat(ax.source,"*")),gN=new RegExp("".concat(ax.source,"*$"));function le(e,t){return{start:e,end:t}}var mN=!!String.prototype.startsWith&&"_a".startsWith("a",1),yN=!!String.fromCodePoint,bN=!!Object.fromEntries,vN=!!String.prototype.codePointAt,EN=!!String.prototype.trimStart,SN=!!String.prototype.trimEnd,xN=!!Number.isSafeInteger,$N=xN?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Id=!0;try{oy=cx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Id=((nc=oy.exec("a"))===null||nc===void 0?void 0:nc[0])==="a"}catch{Id=!1}var oy,ay=mN?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),Fd=yN?String.fromCodePoint:(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,a;n>o;){if(a=e[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r}),iy=bN?Object.fromEntries:(function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],a=o[0],i=o[1];t[a]=i}return t}),ux=vN?(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}}),wN=EN?(function(e){return e.trimStart()}):(function(e){return e.replace(hN,"")}),CN=SN?(function(e){return e.trimEnd()}):(function(e){return e.replace(gN,"")});function cx(e,t){return new RegExp(e,t)}var Ld;Id?(oc=cx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ld=function(e,t){var r;oc.lastIndex=t;var n=oc.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):Ld=function(e,t){for(var r=[];;){var n=ux(e,t);if(n===void 0||dx(n)||AN(n))break;r.push(n),t+=n>=65536?2:1}return Fd.apply(void 0,r)};var oc,_N=(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 a=this.char();if(a===123){var i=this.parseArgument(t,n);if(i.err)return i;o.push(i.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:$e.pound,location:le(l,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ie.UNMATCHED_CLOSING_TAG,le(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&kd(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;o.push(i.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:$e.literal,value:"<".concat(o,"/>"),location:le(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var i=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!kd(this.char()))return this.error(ie.INVALID_TAG,le(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(ie.UNMATCHED_CLOSING_TAG,le(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:o,children:i,location:le(n,this.clonePosition())},err:null}:this.error(ie.INVALID_TAG,le(l,this.clonePosition())))}else return this.error(ie.UNCLOSED_TAG,le(n,this.clonePosition()))}else return this.error(ie.INVALID_TAG,le(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ON(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var i=this.tryParseUnquoted(t,r);if(i){o+=i;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=le(n,this.clonePosition());return{val:{type:$e.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!TN(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 Fd.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(),Fd(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,le(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ie.EMPTY_ARGUMENT,le(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ie.MALFORMED_ARGUMENT,le(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:o,location:le(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ie.MALFORMED_ARGUMENT,le(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ld(this.message,r),o=r+n.length;this.bumpTo(o);var a=this.clonePosition(),i=le(t,a);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,o){var a,i=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(ie.EXPECT_ARGUMENT_TYPE,le(i,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=CN(d.val);if(f.length===0)return this.error(ie.EXPECT_ARGUMENT_STYLE,le(this.clonePosition(),this.clonePosition()));var g=le(c,this.clonePosition());u={style:f,styleLocation:g}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var y=le(o,this.clonePosition());if(u&&ay(u?.style,"::",0)){var v=wN(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:$e.number,value:n,location:y,style:d.val},err:null}}else{if(v.length===0)return this.error(ie.EXPECT_DATE_TIME_SKELETON,y);var b=v;this.locale&&(b=fN(v,this.locale));var f={type:eo.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?aN(b):{}},E=l==="date"?$e.date:$e.time;return{val:{type:E,value:n,location:y,style:f},err:null}}}return{val:{type:l==="number"?$e.number:l==="date"?$e.date:$e.time,value:n,location:y,style:(a=u?.style)!==null&&a!==void 0?a: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,le(S,ce({},S)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),C=0;if(l!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le(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(),x=this.parseIdentifierIfPossible(),C=d.val}var $=this.tryParsePluralOrSelectOptions(t,l,r,x);if($.err)return $;var m=this.tryParseArgumentClose(o);if(m.err)return m;var T=le(o,this.clonePosition());return l==="select"?{val:{type:$e.select,value:n,options:iy($.val),location:T},err:null}:{val:{type:$e.plural,value:n,options:iy($.val),offset:C,pluralType:l==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(ie.INVALID_ARGUMENT_TYPE,le(i,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,le(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,le(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=lN(t)}catch{return this.error(ie.INVALID_NUMBER_SKELETON,r)}return{val:{type:eo.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?dN(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var a,i=!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=le(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"&&(i=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,le(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var y=this.tryParseArgumentClose(g);if(y.err)return y;l.push([u,{value:m.val,location:le(g,this.clonePosition())}]),s.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return l.length===0?this.error(r==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,le(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ie.MISSING_OTHER_CLAUSE,le(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 a=!1,i=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,i=i*10+(l-48),this.bump();else break}var s=le(o,this.clonePosition());return a?(i*=n,$N(i)?{val:i,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=ux(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(ay(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()&&dx(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 kd(e){return e>=97&&e<=122||e>=65&&e<=90}function TN(e){return kd(e)||e===47}function ON(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 dx(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function AN(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 Nd(e){e.forEach(function(t){if(delete t.location,tx(t)||rx(t))for(var r in t.options)delete t.options[r].location,Nd(t.options[r].value);else ZS(t)&&ox(t.style)||(QS(t)||ex(t))&&Pd(t.style)?delete t.style.location:nx(t)&&Nd(t.children)})}function RN(e,t){t===void 0&&(t={}),t=ce({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _N(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||Nd(r.val),r.val}var to;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(to||(to={}));var ts=(function(e){es(t,e);function t(r,n,o){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=o,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),ly=(function(e){es(t,e);function t(r,n,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),to.INVALID_VALUE,a)||this}return t})(ts),DN=(function(e){es(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),to.INVALID_VALUE,o)||this}return t})(ts),PN=(function(e){es(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,'"'),to.MISSING_VALUE,n)||this}return t})(ts),nt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(nt||(nt={}));function IN(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==nt.literal||r.type!==nt.literal?t.push(r):n.value+=r.value,t},[])}function FN(e){return typeof e=="function"}function Ai(e,t,r,n,o,a,i){if(e.length===1&&ey(e[0]))return[{type:nt.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(ey(c)){l.push({type:nt.literal,value:c.value});continue}if(nN(c)){typeof a=="number"&&l.push({type:nt.literal,value:r.getNumberFormat(t).format(a)});continue}var d=c.value;if(!(o&&d in o))throw new PN(d,i);var f=o[d];if(rN(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?nt.literal:nt.object,value:f});continue}if(QS(c)){var g=typeof c.style=="string"?n.date[c.style]:Pd(c.style)?c.style.parsedOptions:void 0;l.push({type:nt.literal,value:r.getDateTimeFormat(t,g).format(f)});continue}if(ex(c)){var g=typeof c.style=="string"?n.time[c.style]:Pd(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:nt.literal,value:r.getDateTimeFormat(t,g).format(f)});continue}if(ZS(c)){var g=typeof c.style=="string"?n.number[c.style]:ox(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(f=f*(g.scale||1)),l.push({type:nt.literal,value:r.getNumberFormat(t,g).format(f)});continue}if(nx(c)){var m=c.children,y=c.value,v=o[y];if(!FN(v))throw new DN(y,"function",i);var b=Ai(m,t,r,n,o,a),E=v(b.map(function(C){return C.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(C){return{type:typeof C=="string"?nt.literal:nt.object,value:C}}))}if(tx(c)){var S=c.options[f]||c.options.other;if(!S)throw new ly(c.value,f,Object.keys(c.options),i);l.push.apply(l,Ai(S.value,t,r,n,o));continue}if(rx(c)){var S=c.options["=".concat(f)];if(!S){if(!Intl.PluralRules)throw new ts(`Intl.PluralRules is not available in this environment.
658
+ Try polyfilling it using "@formatjs/intl-pluralrules"
659
+ `,to.MISSING_INTL_API,i);var x=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));S=c.options[x]||c.options.other}if(!S)throw new ly(c.value,f,Object.keys(c.options),i);l.push.apply(l,Ai(S.value,t,r,n,o,f-(c.offset||0)));continue}}return IN(l)}function LN(e,t){return t?ce(ce(ce({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ce(ce({},e[n]),t[n]||{}),r},{})):e}function kN(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=LN(e[n],t[n]),r},ce({},e)):e}function ac(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function NN(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tc(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ec([void 0],r,!1)))},{cache:ac(e.number),strategy:rc.variadic}),getDateTimeFormat:tc(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ec([void 0],r,!1)))},{cache:ac(e.dateTime),strategy:rc.variadic}),getPluralRules:tc(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ec([void 0],r,!1)))},{cache:ac(e.pluralRules),strategy:rc.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=a.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==nt.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 Ai(a.ast,a.locales,a.formatters,a.formats,s,void 0,a.message)},this.resolvedOptions=function(){var s;return{locale:((s=a.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.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 i=o||{};i.formatters;var l=q7(i,["formatters"]);this.ast=e.__parse(t,ce(ce({},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=kN(e.formats,n),this.formatters=o&&o.formatters||NN(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=RN,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 MN=Symbol.for("react-aria.i18n.locale"),BN=Symbol.for("react-aria.i18n.strings"),oi,fx=class px{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=jN(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[MN];if(oi===void 0){let o=window[BN];if(!o)return null;oi={};for(let a in o)oi[a]=new px({[r]:o[a]},r)}let n=oi?.[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 jN(e,t,r="en-US"){if(t[e])return t[e];let n=HN(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function HN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var sy=new Map,uy=new Map,UN=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,a=sy.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),sy.set(o,a));let i=a.select(e);return n=t[i]||t.other,typeof n=="function"?n():n}number(e){let t=uy.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),uy.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}},cy=new WeakMap;function KN(e){let t=cy.get(e);return t||(t=new fx(e),cy.set(e,t)),t}function zN(e,t){return fx.getGlobalDictionaryForPackage(t)||KN(e)}function GN(e,t){let{locale:r}=$r(),n=zN(e,t);return p.useMemo(()=>new UN(r,n),[r,n])}var ic=new Map,Md=!1;try{Md=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var cl=!1;try{cl=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var hx={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},WN=class{format(e){let t="";if(!Md&&this.options.signDisplay!=null?t=qN(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!cl){var r;let{unit:n,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!n)return t;let i=(r=hx[n])===null||r===void 0?void 0:r[o];t+=i[a]||i.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!Md&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!cl&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=VN(e,t),this.options=t}};function VN(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!cl){var n;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=hx[i])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,l)=>i[0]<l[0]?-1:1).join():"");if(ic.has(o))return ic.get(o);let a=new Intl.NumberFormat(e,t);return ic.set(o,a),a}function qN(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),a=e.format(r),i=o.replace(a,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(a,"!!!").replace(i,"+").replace("!!!",a)}else return e.format(r)}}function YN(e={}){let{locale:t}=$r();return p.useMemo(()=>new WN(t,e),[t,e])}var lc=new Map;function XN(e){let{locale:t}=$r(),r=t+(e?Object.entries(e).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(lc.has(r))return lc.get(r);let n=new Intl.Collator(t,e);return lc.set(r,n),n}var Vr=typeof document<"u"?window.visualViewport:null;function Pp(e){let{direction:t}=$r(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:a,scrollRef:i=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:g=!0,isOpen:m=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:b=0}=e,[E,S]=p.useState(null),x=[g,l,o.current,n.current,a?.current,i.current,s,u,c,d,f,m,t,v,b,r],C=p.useRef(Vr?.scale);p.useEffect(()=>{m&&(C.current=Vr?.scale)},[m]);let $=p.useCallback(()=>{if(g===!1||!m||!o.current||!n.current||!c||Vr?.scale!==C.current)return;let N=null;if(i.current&&i.current.contains(document.activeElement)){var B;let k=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),K=i.current.getBoundingClientRect();var w;if(N={type:"top",offset:((w=k?.top)!==null&&w!==void 0?w:0)-K.top},N.offset>K.height/2){N.type="bottom";var R;N.offset=((R=k?.bottom)!==null&&R!==void 0?R:0)-K.bottom}}let P=o.current;if(!v&&o.current){var A;P.style.top="0px",P.style.bottom="";var D;P.style.maxHeight=((D=(A=window.visualViewport)===null||A===void 0?void 0:A.height)!==null&&D!==void 0?D:window.innerHeight)+"px"}let M=B7({placement:ZN(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:v,arrowSize:r??(a?.current?Dp(a.current,!0).width:0),arrowBoundaryOffset:b});if(M.position){if(P.style.top="",P.style.bottom="",P.style.left="",P.style.right="",Object.keys(M.position).forEach(k=>P.style[k]=M.position[k]+"px"),P.style.maxHeight=M.maxHeight!=null?M.maxHeight+"px":"",N&&document.activeElement&&i.current){let k=document.activeElement.getBoundingClientRect(),K=i.current.getBoundingClientRect(),j=k[N.type]-K[N.type];i.current.scrollTop+=j-N.offset}S(M)}},x);de($,x),JN($),nl({ref:o,onResize:$}),nl({ref:n,onResize:$});let T=p.useRef(!1);de(()=>{let N,B=()=>{T.current=!0,clearTimeout(N),N=setTimeout(()=>{T.current=!1},500),$()},w=()=>{T.current&&B()};return Vr?.addEventListener("resize",B),Vr?.addEventListener("scroll",w),()=>{Vr?.removeEventListener("resize",B),Vr?.removeEventListener("scroll",w)}},[$]);let O=p.useCallback(()=>{T.current||y?.()},[y,T]);H7({triggerRef:n,isOpen:m,onClose:y&&O});var L,I,_;return{overlayProps:{style:{position:E?"absolute":"fixed",top:E?void 0:0,left:E?void 0:0,zIndex:1e5,...E?.position,maxHeight:(L=E?.maxHeight)!==null&&L!==void 0?L:"100vh"}},placement:(I=E?.placement)!==null&&I!==void 0?I:null,triggerAnchorPoint:(_=E?.triggerAnchorPoint)!==null&&_!==void 0?_:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:E?.arrowOffsetLeft,top:E?.arrowOffsetTop}},updatePosition:$}}function JN(e){de(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function ZN(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var dy=h.createContext(null),Bd="react-aria-focus-scope-restore",ve=null;function Ip(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,a=p.useRef(null),i=p.useRef(null),l=p.useRef([]),{parentNode:s}=p.useContext(dy)||{},u=p.useMemo(()=>new Hd({scopeRef:l}),[l]);de(()=>{let f=s||Ae.root;if(Ae.getTreeNode(f.scopeRef)&&ve&&!dl(ve,f.scopeRef)){let g=Ae.getTreeNode(ve);g&&(f=g)}f.addChild(u),Ae.addNode(u)},[u,s]),de(()=>{let f=Ae.getTreeNode(l);f&&(f.contain=!!r)},[r]),de(()=>{var f;let g=(f=a.current)===null||f===void 0?void 0:f.nextSibling,m=[],y=v=>v.stopPropagation();for(;g&&g!==i.current;)m.push(g),g.addEventListener(Bd,y),g=g.nextSibling;return l.current=m,()=>{for(let v of m)v.removeEventListener(Bd,y)}},[t]),o9(l,n,r),t9(l,r),a9(l,n,r),n9(l,o),p.useEffect(()=>{let f=Me(fe(l.current?l.current[0]:void 0)),g=null;if(Ot(f,l.current)){for(let m of Ae.traverse())m.scopeRef&&Ot(f,m.scopeRef.current)&&(g=m);g===Ae.getTreeNode(l)&&(ve=g.scopeRef)}},[l]),de(()=>()=>{var f,g,m;let y=(m=(g=Ae.getTreeNode(l))===null||g===void 0||(f=g.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(l===ve||dl(l,ve))&&(!y||Ae.getTreeNode(y))&&(ve=y),Ae.removeTreeNode(l)},[l]);let c=p.useMemo(()=>QN(l),[]),d=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return h.createElement(dy.Provider,{value:d},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function QN(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||Me(fe((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=an(r),d=ut(c,{tabbable:o,accept:i},r);d.currentNode=Ot(s,r)?s:u;let f=d.nextNode();return!f&&a&&(d.currentNode=u,f=d.nextNode()),f&&st(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||Me(fe((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=an(r),d=ut(c,{tabbable:o,accept:i},r);d.currentNode=Ot(s,r)?s:u;let f=d.previousNode();return!f&&a&&(d.currentNode=u,f=d.previousNode()),f&&st(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=an(r),i=ut(a,{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&st(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=an(r),i=ut(a,{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&st(l,!0),l}}}function an(e){return e[0].parentElement}function Mo(e){let t=Ae.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function e9(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...fe(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 t9(e,t){let r=p.useRef(void 0),n=p.useRef(void 0);de(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let a=fe(o?o[0]:void 0),i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Mo(e)||u.isComposing)return;let c=Me(a),d=e.current;if(!d||!Ot(c,d))return;let f=an(d),g=ut(f,{tabbable:!0},d);if(!c)return;g.currentNode=c;let m=u.shiftKey?g.previousNode():g.nextNode();m||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),m&&st(m,!0)},l=u=>{(!ve||dl(ve,e))&&Ot(Oe(u),e.current)?(ve=e,r.current=Oe(u)):Mo(e)&&!Fr(Oe(u),e)?r.current?r.current.focus():ve&&ve.current&&jd(ve.current):Mo(e)&&(r.current=Oe(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=sa(),d=(c==="virtual"||c===null)&&Ep()&&CS(),f=Me(a);if(!d&&f&&Mo(e)&&!Fr(f,e)){ve=e;let m=Oe(u);if(m&&m.isConnected){var g;r.current=m,(g=r.current)===null||g===void 0||g.focus()}else ve.current&&jd(ve.current)}})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),de(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function gx(e){return Fr(e)}function Ot(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Fr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Ae.traverse(Ae.getTreeNode(t)))if(r&&Ot(e,r.current))return!0;return!1}function r9(e){return Fr(e,ve)}function dl(e,t){var r;let n=(r=Ae.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function st(e,t=!1){if(e!=null&&!t)try{Nr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function mx(e,t=!0){let r=e[0].previousElementSibling,n=an(e),o=ut(n,{tabbable:t},e);o.currentNode=r;let a=o.nextNode();return t&&!a&&(n=an(e),o=ut(n,{tabbable:!1},e),o.currentNode=r,a=o.nextNode()),a}function jd(e,t=!0){st(mx(e,t))}function n9(e,t){let r=h.useRef(t);p.useEffect(()=>{if(r.current){ve=e;let n=fe(e.current?e.current[0]:void 0);!Ot(Me(n),ve.current)&&e.current&&jd(e.current)}r.current=!1},[e])}function o9(e,t,r){de(()=>{if(t||r)return;let n=e.current,o=fe(n?n[0]:void 0),a=i=>{let l=Oe(i);Ot(l,e.current)?ve=e:gx(l)||(ve=null)};return o.addEventListener("focusin",a,!1),n?.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),n?.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,t,r])}function fy(e){let t=Ae.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function a9(e,t,r){let n=p.useRef(typeof document<"u"?Me(fe(e.current?e.current[0]:void 0)):null);de(()=>{let o=e.current,a=fe(o?o[0]:void 0);if(!t||r)return;let i=()=>{(!ve||dl(ve,e))&&Ot(Me(a),e.current)&&(ve=e)};return a.addEventListener("focusin",i,!1),o?.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),o?.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,r]),de(()=>{let o=fe(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Mo(e)||i.isComposing)return;let l=o.activeElement;if(!Fr(l,e)||!fy(e))return;let s=Ae.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=ut(o.body,{tabbable:!0});c.currentNode=l;let d=i.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!Fr(d,e))&&u){c.currentNode=u;do d=i.shiftKey?c.previousNode():c.nextNode();while(Fr(d,e));i.preventDefault(),i.stopPropagation(),d?st(d,!0):gx(u)?st(u,!0):l.blur()}};return r||o.addEventListener("keydown",a,!0),()=>{r||o.removeEventListener("keydown",a,!0)}},[e,t,r]),de(()=>{let o=fe(e.current?e.current[0]:void 0);if(!t)return;let a=Ae.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let l=Ae.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=Me(o);if(t&&s&&(u&&Fr(u,e)||u===o.body&&fy(e))){let c=Ae.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){py(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Ae.getTreeNode(d.scopeRef)){let f=mx(d.scopeRef.current,!0);py(f);return}d=d.parent}}})}}}},[e,t])}function py(e){e.dispatchEvent(new CustomEvent(Bd,{bubbles:!0,cancelable:!0}))&&st(e)}function ut(e,t,r){let n=t?.tabbable?n7:FS,o=e?.nodeType===Node.ELEMENT_NODE?e:null,a=fe(o),i=$k(a,e||a,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"&&(!e9(l)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Ot(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}function i9(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=r,s=o||Me(fe(n)),u=ut(n,{tabbable:a,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&i&&(u.currentNode=n,c=u.nextNode()),c&&st(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=r,s=o||Me(fe(n)),u=ut(n,{tabbable:a,accept:l});if(n.contains(s))u.currentNode=s;else{let d=sc(u);return d&&st(d,!0),d??null}let c=u.previousNode();if(!c&&i){u.currentNode=n;let d=sc(u);if(!d)return null;c=d}return c&&st(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=r,i=ut(n,{tabbable:o,accept:a}).nextNode();return i&&st(i,!0),i},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=r,i=ut(n,{tabbable:o,accept:a}),l=sc(i);return l&&st(l,!0),l??null}}}function sc(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var l9=class yx{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 a=new Hd({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.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 a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Ot(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),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 yx;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 Hd({scopeRef:null}),this.fastMap.set(null,this.root)}},Hd=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}},Ae=new l9;function rs(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||la()}),[a,i]=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(g=>{o.current.isFocused=g,i(g),u()},[u]);S7(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:r});let{focusProps:d}=Tp({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=Op({isDisabled:!n,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:n?f:d}}function s9(e,t){let[r,n]=p.useState(!1);return de(()=>{if(e?.current){let o=()=>{if(e.current){let i=ut(e.current,{tabbable:!0});n(!!i.nextNode())}};o();let a=new MutationObserver(o);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r}function bx(e){let t=c9(fe(e));t!==e&&(t&&u9(t,e),e&&vx(e,t))}function u9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function vx(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function c9(e){let t=Me(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Gt=[];function Fp(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;p.useEffect(()=>{if(o&&!Gt.includes(t))return Gt.push(t),()=>{let m=Gt.indexOf(t);m>=0&&Gt.splice(m,1)}},[o,t]);let s=()=>{Gt[Gt.length-1]===t&&r&&r()},u=m=>{(!l||l(m.target))&&Gt[Gt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(Gt[Gt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},d=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};GS({ref:t,onInteractOutside:a&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=Op({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||r9(m.relatedTarget)||(!l||l(m.relatedTarget))&&r?.()}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:g}}}function d9(e,t,r){let{isOpen:n}=t;p.useEffect(()=>{r&&r.current&&qS.set(r.current,t.close)});let o,a=Ge();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}var Uo=typeof document<"u"&&window.visualViewport,ai=0,uc;function Ex(e={}){let{isDisabled:t}=e;de(()=>{if(!t)return ai++,ai===1&&(Yl()?uc=p9():uc=f9()),()=>{ai--,ai===0&&uc()}},[t])}function f9(){let e=window.innerWidth-document.documentElement.clientWidth;return wa(e>0&&("scrollbarGutter"in document.documentElement.style?cc(document.documentElement,"scrollbarGutter","stable"):cc(document.documentElement,"paddingRight",`${e}px`)),cc(document.documentElement,"overflow","hidden"))}function p9(){let e,t=!1,r=s=>{let u=s.target;e=Qn(u)?u:OS(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=`
660
+ @layer {
661
+ * {
662
+ overscroll-behavior: contain;
663
+ }
664
+ }`.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()}},a=s=>{let u=s.target,c=s.relatedTarget;if(c&&Yu(c))c.focus({preventScroll:!0}),hy(c,Yu(u));else if(!c){var d;((d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]"))?.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&Yu(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&hy(this,u)};let l=wa(dc(document,"touchstart",r,{passive:!1,capture:!0}),dc(document,"touchmove",o,{passive:!1,capture:!0}),dc(document,"blur",a,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=i}}function cc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function dc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function hy(e,t){t||!Uo?gy(e):Uo.addEventListener("resize",()=>gy(e),{once:!0})}function gy(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=OS(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.top<o.top||a.bottom>o.top+r.clientHeight){let i=o.bottom;Uo&&(i=Math.min(i,Uo.offsetTop+Uo.height));let l=a.top-o.top-((i-o.top)/2-a.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}var h9=p.createContext({});function Sx(){var e;return(e=p.useContext(h9))!==null&&e!==void 0?e:{}}var Ud=h.createContext(null);function g9(e){let{children:t}=e,r=p.useContext(Ud),[n,o]=p.useState(0),a=p.useMemo(()=>({parent:r,modalCount:n,addModal(){o(i=>i+1),r&&r.addModal()},removeModal(){o(i=>i-1),r&&r.removeModal()}}),[r,n]);return h.createElement(Ud.Provider,{value:a},t)}function m9(){let e=p.useContext(Ud);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function y9(e){let{modalProviderProps:t}=m9();return h.createElement("div",{"data-overlay-container":!0,...e,...t})}function b9(e){return h.createElement(g9,null,h.createElement(y9,e))}function v9(e){let t=Cn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=Sx();if(!e.portalContainer&&o&&(r=o()),h.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 a=h.createElement(b9,n);return Bb.createPortal(a,r)}var xx={};xx={dismiss:"تجاهل"};var $x={};$x={dismiss:"Отхвърляне"};var wx={};wx={dismiss:"Odstranit"};var Cx={};Cx={dismiss:"Luk"};var _x={};_x={dismiss:"Schließen"};var Tx={};Tx={dismiss:"Απόρριψη"};var Ox={};Ox={dismiss:"Dismiss"};var Ax={};Ax={dismiss:"Descartar"};var Rx={};Rx={dismiss:"Lõpeta"};var Dx={};Dx={dismiss:"Hylkää"};var Px={};Px={dismiss:"Rejeter"};var Ix={};Ix={dismiss:"התעלם"};var Fx={};Fx={dismiss:"Odbaci"};var Lx={};Lx={dismiss:"Elutasítás"};var kx={};kx={dismiss:"Ignora"};var Nx={};Nx={dismiss:"閉じる"};var Mx={};Mx={dismiss:"무시"};var Bx={};Bx={dismiss:"Atmesti"};var jx={};jx={dismiss:"Nerādīt"};var Hx={};Hx={dismiss:"Lukk"};var Ux={};Ux={dismiss:"Negeren"};var Kx={};Kx={dismiss:"Zignoruj"};var zx={};zx={dismiss:"Descartar"};var Gx={};Gx={dismiss:"Dispensar"};var Wx={};Wx={dismiss:"Revocare"};var Vx={};Vx={dismiss:"Пропустить"};var qx={};qx={dismiss:"Zrušiť"};var Yx={};Yx={dismiss:"Opusti"};var Xx={};Xx={dismiss:"Odbaci"};var Jx={};Jx={dismiss:"Avvisa"};var Zx={};Zx={dismiss:"Kapat"};var Qx={};Qx={dismiss:"Скасувати"};var e$={};e$={dismiss:"取消"};var t$={};t$={dismiss:"關閉"};var r$={};r$={"ar-AE":xx,"bg-BG":$x,"cs-CZ":wx,"da-DK":Cx,"de-DE":_x,"el-GR":Tx,"en-US":Ox,"es-ES":Ax,"et-EE":Rx,"fi-FI":Dx,"fr-FR":Px,"he-IL":Ix,"hr-HR":Fx,"hu-HU":Lx,"it-IT":kx,"ja-JP":Nx,"ko-KR":Mx,"lt-LT":Bx,"lv-LV":jx,"nb-NO":Hx,"nl-NL":Ux,"pl-PL":Kx,"pt-BR":zx,"pt-PT":Gx,"ro-RO":Wx,"ru-RU":Vx,"sk-SK":qx,"sl-SI":Yx,"sr-SP":Xx,"sv-SE":Jx,"tr-TR":Zx,"uk-UA":Qx,"zh-CN":e$,"zh-TW":t$};var my={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 E9(e={}){let{style:t,isFocusable:r}=e,[n,o]=p.useState(!1),{focusWithinProps:a}=Op({isDisabled:!r,onFocusWithinChange:l=>o(l)}),i=p.useMemo(()=>n?t:t?{...my,...t}:my,[n]);return{visuallyHiddenProps:{...a,style:i}}}function S9(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:i}=E9(e);return h.createElement(r,te(a,i),t)}function x9(e){return e&&e.__esModule?e.default:e}function yy(e){let{onDismiss:t,...r}=e,n=GN(x9(r$),"@react-aria/overlays"),o=Zl(r,n.format("dismiss")),a=()=>{t&&t()};return h.createElement(S9,null,h.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}var $9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Ao=new WeakMap,at=[];function ns(e,t){let r=_t(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let a=(o=n?.root)!==null&&o!==void 0?o:document.body,i=n?.shouldUseInert&&$9,l=new Set(e),s=new Set,u=y=>i&&y instanceof r.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",c=(y,v)=>{i&&y instanceof r.HTMLElement?y.inert=v:v?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof r.HTMLElement&&(y.inert=!1))},d=y=>{for(let S of y.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 x of l)if(S.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(y,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),E=v(y);if(E===NodeFilter.FILTER_ACCEPT&&f(y),E!==NodeFilter.FILTER_REJECT){let S=b.nextNode();for(;S!=null;)f(S),S=b.nextNode()}},f=y=>{var v;let b=(v=Ao.get(y))!==null&&v!==void 0?v:0;u(y)&&b===0||(b===0&&c(y,!0),s.add(y),Ao.set(y,b+1))};at.length&&at[at.length-1].disconnect(),d(a);let g=new MutationObserver(y=>{for(let v of y)if(v.type==="childList"&&![...l,...s].some(b=>b.contains(v.target)))for(let b of v.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?l.add(b):b instanceof Element&&d(b)});g.observe(a,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){g.observe(a,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return at.push(m),()=>{g.disconnect();for(let y of s){let v=Ao.get(y);v!=null&&(v===1?(c(y,!1),Ao.delete(y)):Ao.set(y,v-1))}m===at[at.length-1]?(at.pop(),at.length&&at[at.length-1].observe()):at.splice(at.indexOf(m),1)}}function w9(e){let t=at[at.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function C9(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:a,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=Fp({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},o??n),{overlayProps:f,arrowProps:g,placement:m,triggerAnchorPoint:y}=Pp({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!u?t.close:null});return Ex({isDisabled:a||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&n.current){var v,b;return a?w9((v=o?.current)!==null&&v!==void 0?v:n.current):ns([(b=o?.current)!==null&&b!==void 0?b:n.current],{shouldUseInert:!0})}},[a,t.isOpen,n,o]),{popoverProps:te(c,f),arrowProps:g,underlayProps:d,placement:m,triggerAnchorPoint:y}}var n$=h.createContext(null);function fl(e){let t=Cn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,a]=p.useState(!1),i=p.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:l}=Sx();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=h.createElement(Ip,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=h.createElement(n$.Provider,{value:i},h.createElement(T7,null,s)),Bb.createPortal(s,r)}function o$(){let e=p.useContext(n$),t=e?.setContain;de(()=>{t?.(!0)},[t])}function _9(e,t,r){let{overlayProps:n,underlayProps:o}=Fp({...e,isOpen:t.isOpen,onClose:t.close},r);return Ex({isDisabled:!t.isOpen}),o$(),p.useEffect(()=>{if(t.isOpen&&r.current)return ns([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:te(n),underlayProps:o}}function Ta(e){let[t,r]=Ql(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=p.useCallback(()=>{r(!0)},[r]),o=p.useCallback(()=>{r(!1)},[r]),a=p.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:a}}var T9=1500,by=500,qr={},O9=0,Ro=!1,dr=null,Yr=null;function a$(e={}){let{delay:t=T9,closeDelay:r=by}=e,{isOpen:n,open:o,close:a}=Ta(e),i=p.useMemo(()=>`${++O9}`,[]),l=p.useRef(null),s=p.useRef(a),u=()=>{qr[i]=f},c=()=>{for(let m in qr)m!==i&&(qr[m](!0),delete qr[m])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),Ro=!0,o(),dr&&(clearTimeout(dr),dr=null),Yr&&(clearTimeout(Yr),Yr=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)),dr&&(clearTimeout(dr),dr=null),Ro&&(Yr&&clearTimeout(Yr),Yr=setTimeout(()=>{delete qr[i],Yr=null,Ro=!1},Math.max(by,r)))},g=()=>{c(),u(),!n&&!dr&&!Ro?dr=setTimeout(()=>{dr=null,Ro=!0,d()},t):n||d()};return p.useEffect(()=>{s.current=a},[a]),p.useEffect(()=>()=>{l.current&&clearTimeout(l.current),qr[i]&&delete qr[i]},[i]),{isOpen:n,open:m=>{!m&&t>0&&!l.current?g():d()},close:f}}var Lp=p.createContext(null),i$=p.createContext(null);function A9(e){let t=a$(e),r=p.useRef(null),{triggerProps:n,tooltipProps:o}=I7(e,t,r);return h.createElement(xr,{values:[[Lp,t],[i$,{...o,triggerRef:r}]]},h.createElement($7,{...n,ref:r},e.children))}var R9=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=Ze(t,r,i$);let n=p.useContext(Lp),o=a$(t),a=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,i=PS(r,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!i?null:h.createElement(v9,{portalContainer:e},h.createElement(D9,{...t,tooltipRef:r,isExiting:i}))});function D9(e){let t=p.useContext(Lp),r=p.useRef(null),{overlayProps:n,arrowProps:o,placement:a,triggerAnchorPoint:i}=Pp({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=DS(e.tooltipRef,!!a)||e.isEntering||!1,s=vt({...e,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:l,isExiting:e.isExiting,state:t}});e=te(e,n);let{tooltipProps:u}=P7(e,t),c=_e(e,{global:!0});return h.createElement("div",{...te(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":a??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},h.createElement(Rp.Provider,{value:{...o,placement:a,ref:r}},s.children))}var P9=yt(vn(),1),kp=(0,P9.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("-"," "));F.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var I9=p.forwardRef((e,t)=>h.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));I9.displayName="Trigger";var l$=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:a,startOpen:i,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let f=kp(t),g=h.Children.only(o);i!==void 0&&dk("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,y]=p.useState(a??i??!1),v=p.useCallback(b=>{y(b),c?.(b)},[c]);return h.createElement(A9,{delay:l,closeDelay:s,isOpen:u??m,onOpenChange:v,trigger:e?"focus":void 0,...d},h.createElement(w7,null,h.cloneElement(g,{"aria-describedby":null})),h.createElement(R9,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:v,style:{outline:"none"},...d},n))},s$=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=p.useMemo(()=>{let a=document?.body?.getAttribute("data-shortcuts-enabled")!=="false";if(!(!n&&(!r||!a)))return[n,r&&a&&`[${v8(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?h.createElement(l$,{placement:"top",tooltip:h.createElement(vS,{note:o}),visible:t?!1:void 0},e):h.createElement(h.Fragment,null,e)};s$.displayName="InteractiveTooltipWrapper";function F9(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?h.createElement("span",{id:t,hidden:!0},e):null}}var Ee=p.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",appearance:o="default",variant:a="outline",padding:i="medium",disabled:l=!1,readOnly:s=!1,active:u,onClick:c,ariaLabel:d,ariaDescription:f=void 0,tooltip:g=void 0,shortcut:m=void 0,disableAllTooltips:y=!1,...v},b)=>{let E=t?ok:e,S;!s&&(d===void 0||d==="")&&(S="ariaLabel",wd(`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: ${v.children}.`)),u!==void 0&&(S="active",wd("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:x,AriaDescription:C}=F9(f),$=p.useMemo(()=>m?E8(m):void 0,[m]),[T,O]=p.useState(!1),L=I=>{c&&c(I),r!=="none"&&O(!0)};return p.useEffect(()=>{let I=setTimeout(()=>{T&&O(!1)},1e3);return()=>clearTimeout(I)},[T]),h.createElement(h.Fragment,null,h.createElement(s$,{disableAllTooltips:y,shortcut:m,tooltip:g||(d!==!1?d:void 0)},h.createElement(L9,{"data-deprecated":S,as:E,ref:b,appearance:o,variant:a,size:n,padding:i,$disabled:l||s,"aria-disabled":l||s?"true":void 0,readOnly:s,active:u,animating:T,animation:r,onClick:l||s?void 0:L,"aria-label":!s&&d!==!1?d:void 0,"aria-keyshortcuts":s?void 0:$,...s?{}:x,...v})),h.createElement(C,null))});Ee.displayName="Button";var L9=F("button",{shouldForwardProp:e=>Rl(e)})(({theme:e,appearance:t,variant:r,size:n,$disabled:o,readOnly:a,active:i,animating:l,animation:s="none",padding:u})=>{let c=t==="agentic"?{foreground:e.fgColor.agentic,background:e.bgColor.agentic,outline:e.borderColor.agentic}:{foreground:e.color.secondary,background:e.button.background,outline:e.button.border};return{border:0,cursor:a?"inherit":o?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:u==="none"?0:u==="small"&&n==="small"?"0 7px":u==="small"&&n==="medium"?"0 9px":n==="small"?"0 10px":n==="medium"?"0 12px":0,height:n==="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:o&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:r==="solid"?e.base==="light"?c.foreground:Ye(.18,c.foreground):r==="outline"?c.background:r==="ghost"&&i?br(.93,t==="agentic"?e.bgColor.agentic:e.barSelectedColor):"transparent",color:r==="solid"?e.color.lightest:r==="outline"?t==="agentic"?e.fgColor.agentic:e.input.color:r==="ghost"&&i?e.base==="light"?Ye(.1,c.foreground):c.foreground:r==="ghost"?e.textMutedColor:e.input.color,boxShadow:r==="outline"?`${c.outline} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:r==="ghost"?c.foreground:void 0,background:(()=>{let d=c.foreground;return r==="solid"&&(d=e.base==="light"?pi(.1,c.foreground):Ye(.3,c.foreground)),r==="outline"&&(d=c.background),r==="ghost"?br(.86,c.foreground):e.base==="light"?Ye(.02,d):pi(.03,d)})()},"&:active":{color:r==="ghost"?c.foreground:void 0,background:(()=>{let d=c.foreground;return r==="solid"&&(d=c.foreground),r==="outline"&&(d=c.background),r==="ghost"?t==="agentic"?e.bgColor.agentic:e.background.hoverable:e.base==="light"?Ye(.02,d):pi(.03,d)})()},"&:focus-visible":{outline:`2px solid ${pn(c.foreground,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:l&&s!=="none"?`${e.animation[s]} 1000ms ease-out`:""}}}),u$=p.forwardRef((e,t)=>(wd("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),h.createElement(Ee,{ref:t,...e,"data-deprecated":"IconButton"})));u$.displayName="IconButton";var Oa=p.forwardRef(({pressed:e,...t},r)=>h.createElement(k9,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));Oa.displayName="ToggleButton";var k9=F(Ee)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?Ye(.1,e.color.secondary):Ye(.2,e.color.secondary)}:{},...t==="outline"?{background:br(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:br(.93,e.barSelectedColor),color:e.base==="light"?Ye(.1,e.color.secondary):e.color.secondary}:{}}:{}})),c$=F.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"?Ye(.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)) :not(input) + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:br(.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"}}}),N9=F(c$)(({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}})),M9=F(Ee)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),B9=F(Oa)({"&:focus-visible":{outlineOffset:-2}}),d$=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return h.createElement(M9,{...n,variant:r,padding:e,size:t,ref:o})}),j9=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return h.createElement(B9,{...n,variant:r,padding:e,size:t,ref:o})}),f$=F(d$)(({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}})),H9=e=>h.createElement(f$,{as:"a",...e}),U9=F.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}})),K9=F.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),Ri=Object.assign(F.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:c$,HoverItem:N9,Button:d$,Toggle:j9,Action:f$,Link:H9,Text:U9,Icon:K9}),vy=F.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:a,state:i,...l}){let s=G9({collapsed:r,disabled:n,initialCollapsed:o,storageKey:a}),u=i||s;return h.createElement(h.Fragment,null,typeof t=="function"?t(u):t,h.createElement(vy,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:vy});var z9=(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]},G9=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,a]=z9(n&&`useCollapsible:${n}`,!!r);p.useEffect(()=>{e!==void 0&&a(e)},[e,a]);let i=p.useCallback(s=>{s?.stopPropagation(),t||a(u=>!u)},[t,a]),l=Ge();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:a,toggleCollapsed:i,toggleProps:{disabled:t,onClick:i,"aria-controls":l,"aria-expanded":!o}}},ua=(e,t)=>t&&t in e?e[t]:void 0,W9=(e,t)=>ua(e.fgColor,t)??ua(e.color,t),V9=(e,t,r)=>ua(e.borderColor,t)??ua(e.color,r),p$=(e,t)=>ua(e.bgColor,t)??e.background.content,q9=(e,t)=>{let r=p$(e,t);return`linear-gradient(${r}, ${r}), ${e.background.content}`},Y9=Be({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),X9=Be({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(20deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(340deg)"},"100%":{transform:"rotate(360deg)"}}),J9=Be({to:{backgroundPositionX:"36%"}}),Ey=F.div(({color:e,theme:t})=>({color:W9(t,e),borderRadius:t.appBorderRadius,background:q9(t,e),position:"relative"})),Sy=F.div(({animation:e="none",color:t,outlineColor:r=t,theme:n})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:p$(n,t),borderRadius:n.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&V9(n,t,r)||n.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:`${J9} 10s infinite linear, ${Y9} 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:`${X9} 5s linear infinite`,backgroundImage:r==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":r==="agentic"?n.base==="dark"?"conic-gradient(transparent 90deg, rgba(114,58,166,0.65) 150deg, rgba(157,98,214,0.6) 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #b6a7ff 150deg, #d8aeff 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(p.forwardRef(function({outlineAnimation:e="none",color:t,outlineColor:r,outlineAttrs:n={},...o},a){return h.createElement(Sy,{animation:e,color:t,outlineColor:r,ref:a,...n},h.createElement(Ey,{color:t,...o}))}),{Content:Ey,Outline:Sy});const{deprecate:fc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Z9=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],h$=e=>({_s:e,status:Z9[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),Kd=e=>e?6:5,Q9=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Kd(t)}},eM=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],tM=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),xy=(e,t,r,n,o)=>{clearTimeout(n.current);let a=h$(e);t(a),r.current=a,o&&o({current:a})},rM=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:a,mountOnEnter:i,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=p.useState(()=>h$(a?2:Kd(i))),d=p.useRef(u),f=p.useRef(),[g,m]=eM(o),y=p.useCallback(()=>{let b=Q9(d.current._s,l);b&&xy(b,c,d,f,s)},[s,l]),v=p.useCallback(b=>{let E=x=>{switch(xy(x,c,d,f,s),x){case 1:g>=0&&(f.current=setTimeout(y,g));break;case 4:m>=0&&(f.current=setTimeout(y,m));break;case 0:case 3:f.current=tM(E,x);break}},S=d.current.isEnter;typeof b!="boolean"&&(b=!S),b?!S&&E(e?r?0:1:2):S&&E(t?n?3:4:Kd(l))},[y,s,e,t,r,n,g,m,l]);return[u,v,y]};function nM(e){let t=a=>typeof window<"u"?window.matchMedia(a).matches:!1,[r,n]=p.useState(t(e));function o(){n(t(e))}return p.useEffect(()=>{let a=window.matchMedia(e);return o(),a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}},[e]),r}var g$={};We(g$,{Actions:()=>bM,Close:()=>os,CloseButton:()=>pM,Col:()=>$$,Container:()=>S$,Content:()=>hM,Description:()=>yM,Dialog:()=>fM,Error:()=>vM,ErrorWrapper:()=>w$,Header:()=>gM,Overlay:()=>E$,Row:()=>x$,Title:()=>mM});const{deprecate:m$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);var y$=p.createContext({}),oM=p.forwardRef(function(e,t){[e,t]=Ze(e,t,y$);let{children:r,level:n=3,className:o,...a}=e,i=`h${n}`;return h.createElement(i,{...a,ref:t,className:o??"react-aria-Heading"},r)}),b$=p.createContext({}),aM=p.forwardRef(function(e,t){[e,t]=Ze(e,t,b$);let{elementType:r="span",...n}=e;return h.createElement(r,{className:"react-aria-Text",...n,ref:t})}),v$=Be({from:{opacity:0},to:{opacity:1}}),iM=Be({from:{opacity:1},to:{opacity:0}}),lM=Be({from:{maxHeight:0},to:{}}),sM=Be({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),uM=Be({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),cM=Be({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),dM=Be({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),E$=F.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${iM} ${t}ms`:`${v$} ${t}ms`,animationFillMode:"forwards"}})),S$=F.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:1e5,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:o,$transitionDuration:a})=>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"?`${uM} ${a}ms`:`${sM} ${a}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"?`${dM} ${a}ms`:`${cM} ${a}ms`,animationFillMode:"forwards !important"}}),os=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=p.useContext(C$);if(e&&h.isValidElement(t)){let a=i=>{r?.(i),t.props.onClick?.(i),o?.()};return h.cloneElement(t,{...n,onClick:a})}return h.createElement(Ee,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},h.createElement(_1,null))},fM={Close:()=>(m$("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),h.createElement(os,{"data-deprecated":"Modal.Dialog.Close"}))},pM=({ariaLabel:e,...t})=>(m$("Modal.CloseButton is deprecated, please use Modal.Close instead."),h.createElement(os,{asChild:!0},h.createElement(Ee,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},h.createElement(_1,null)))),hM=F.div({display:"flex",flexDirection:"column",margin:16,gap:16}),x$=F.div({display:"flex",justifyContent:"space-between",gap:16}),$$=F.div({display:"flex",flexDirection:"column",gap:4}),gM=({hasClose:e=!0,onClose:t,...r})=>h.createElement(x$,null,h.createElement($$,{...r}),e&&h.createElement(os,{onClick:t})),mM=F(e=>h.createElement(oM,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),yM=F(aM)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),bM=F.div({display:"flex",flexDirection:"row-reverse",gap:8}),w$=F.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${lM} 300ms, ${v$} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),vM=({children:e,...t})=>h.createElement(w$,{...t},h.createElement("div",null,e)),C$=p.createContext({});function EM({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:a,dismissOnClickOutside:i=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:g,transitionDuration:m=200,variant:y="dialog",...v}){let b;(a===void 0||a==="")&&(b="ariaLabel",fc("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(b="onEscapeKeyDown",fc("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(b="onInteractOutside",fc("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let E=p.useRef(null),S=nM("(prefers-reduced-motion: reduce)"),[{status:x,isMounted:C},$]=rM({timeout:S?0:m,mountOnEnter:!0,unmountOnExit:!0}),T=Ta({isOpen:u||C,defaultOpen:g,onOpenChange:B=>{$(B),f?.(B)}}),O=()=>{T.close()},{modalProps:L,underlayProps:I}=_9({isDismissable:i,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?B=>{let w=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:B});return d(w),!w.defaultPrevented}:void 0},T,E);if(p.useEffect(()=>{let B=u??g??!1;B&&!C?$(!0):!B&&C&&$(!1)},[u,g,C,$]),p.useEffect(()=>{C&&(u||g)&&f?.(!0)},[C]),p.useEffect(()=>{if(C&&(u||g)&&E.current)return ns([E.current],{shouldUseInert:!0})},[C,u,g,E]),!C||x==="exited"||x==="unmounted")return null;let _=te(L,{onKeyDown:B=>{B.key!=="Escape"?L.onKeyDown?.(B):l&&(c?.(B.nativeEvent),B.nativeEvent.defaultPrevented||O())}}),N=e??(t?document.querySelector(t):void 0);return h.createElement(fl,{disableFocusManagement:!0,portalContainer:N||void 0},h.createElement(Ip,{restoreFocus:!0,contain:!0,autoFocus:!0},h.createElement(E$,{$status:x,$transitionDuration:m,...I}),h.createElement("div",{role:"dialog","aria-label":a,ref:E,..._},h.createElement(C$.Provider,{value:{close:O}},h.createElement("div",{tabIndex:-1},h.createElement(S$,{"data-deprecated":b,$variant:y,$status:x,$transitionDuration:m,className:s,width:n,height:o,...v},r))))))}Object.assign(EM,g$);F.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Ki}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Ki}`]:{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{}}});F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.div();F.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function SM(e,t){var r=p.useRef(null),n=p.useRef(null);n.current=t;var o=p.useRef(null);p.useEffect(function(){a()});var a=p.useCallback(function(){var i=o.current,l=n.current,s=i||(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(i){o.current=i,a()},[a])}function $y(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 _$(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(),a=p.useState({width:void 0,height:void 0}),i=a[0],l=a[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=SM(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 g=f[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=$y(g,m,"inlineSize"),v=$y(g,m,"blockSize"),b=y?n(y):void 0,E=v?n(v):void 0;if(u.current.width!==b||u.current.height!==E){var S={width:b,height:E};u.current.width=b,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:i.width,height:i.height}},[c,i.width,i.height])}var xM=F.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function $M({centered:e,scale:t,children:r}){let n=p.useRef(null),[o,a]=p.useState(0),i=p.useCallback(({height:l})=>{l&&a(l/t)},[t]);return p.useEffect(()=>{n.current&&a(n.current.getBoundingClientRect().height)},[t]),_$({ref:n,onResize:i}),h.createElement(xM,{centered:e,scale:t,elementHeight:o},h.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var T$={Element:$M};const{global:wM}=__STORYBOOK_MODULE_GLOBAL__;var{document:CM}=wM,_M=F.strong(({theme:e})=>({color:e.color.orange})),TM=F.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),wy=F.em(({theme:e})=>({color:e.textMutedColor})),OM=/(Error): (.*)\n/,AM=/at (?:(.*) )?\(?(.+)\)?/,RM=/([^@]+)?(?:\/<)?@(.+)?/,DM=/([^@]+)?@(.+)?/,O$=({error:e})=>{if(!e)return h.createElement(p.Fragment,null,"This error has no stack or message");if(!e.stack)return h.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}
665
+
666
+ ${t}`);let r=t.match(OM);if(!r)return h.createElement(p.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(l=>{let s=l.match(AM)||l.match(RM)||l.match(DM);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(CM.location.origin,"")}:null}).filter(Boolean);return h.createElement(p.Fragment,null,h.createElement("span",null,n),": ",h.createElement(_M,null,o),h.createElement("br",null),i.map((l,s)=>l?.name?h.createElement(p.Fragment,{key:s}," ","at ",h.createElement(TM,null,l.name)," (",h.createElement(wy,null,l.location),")",h.createElement("br",null)):h.createElement(p.Fragment,{key:s}," ","at ",h.createElement(wy,null,l?.location),h.createElement("br",null))))},PM=F.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"?X.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:X.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}})),IM=e=>h.createElement(PM,{...e,type:"checkbox"}),FM=F.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),LM=F.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),kM=({label:e,children:t,...r})=>h.createElement(FM,{...r},e?h.createElement(LM,null,h.createElement("span",null,e)):null,t),Np=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),A$=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),R$=(({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`};default:return{}}}),NM={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Mp=(({theme:e})=>({...NM,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}})),MM=F.div({position:"relative",width:"100%"}),BM=F.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}=Mp(e);return{fontSize:t,lineHeight:r,padding:n}}),jM=Object.assign(F(p.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...a},i){let l=Ge();return h.createElement(MM,null,h.createElement("input",{...a,value:n,ref:i,"aria-describedby":o?l:void 0}),o&&h.createElement(BM,{"aria-hidden":!0},h.createElement("span",null,n),h.createElement("span",{id:l},o)))}))(Mp,Np,A$,R$,{minHeight:32,width:"100%"}),{displayName:"Input"}),HM=F.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"?X.dark:e.color.mediumdark,borderColor:e.base==="dark"?X.dark:e.color.mediumdark},"&:checked":{backgroundColor:X.secondary,borderColor:X.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),UM=e=>h.createElement(HM,{...e,type:"radio"}),KM=F.select(Np,({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"?uf(e.background.app):e.background.app,filter:`
667
+ drop-shadow(0 5px 5px rgba(0,0,0,0.05))
668
+ drop-shadow(0 0 3px rgba(0,0,0,0.1))
669
+ `,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}}})),zM=({children:e,...t})=>h.createElement(KM,{...t},!AA()&&h.createElement("button",null,h.createElement("selectedcontent",null),h.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"},h.createElement("path",{d:"m6 9 6 6 6-6"}))),h.createElement("optgroup",null,e)),GM=p.useLayoutEffect,WM=function(e){var t=h.useRef(e);return GM(function(){t.current=e}),t},Cy=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},VM=function(e,t){var r=h.useRef();return h.useCallback(function(n){e.current=n,r.current&&Cy(r.current,null),r.current=t,t&&Cy(t,n)},[t])},_y={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},qM=function(e){Object.keys(_y).forEach(function(t){e.style.setProperty(t,_y[t],"important")})},Ty=qM,rt=null,Oy=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function YM(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),rt||(rt=document.createElement("textarea"),rt.setAttribute("tabindex","-1"),rt.setAttribute("aria-hidden","true"),Ty(rt)),rt.parentNode===null&&document.body.appendChild(rt);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(f){var g=f;rt.style[g]=i[g]}),Ty(rt),rt.value=t;var s=Oy(rt,e);rt.value=t,s=Oy(rt,e),rt.value="x";var u=rt.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+a),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+a),s=Math.min(d,s),[s,u]}var Ay=function(){},XM=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},JM=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],ZM=!!document.documentElement.currentStyle,QM=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=XM(JM,t),n=r.boxSizing;if(n==="")return null;ZM&&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),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},eB=QM;function Bp(e,t,r){var n=WM(r);p.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var tB=function(e,t){Bp(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},rB=function(e){Bp(window,"resize",e)},nB=function(e){Bp(document.fonts,"loadingdone",e)},oB=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],aB=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?Ay:a,l=e.onHeightChange,s=l===void 0?Ay:l,u=OA(e,oB),c=u.value!==void 0,d=p.useRef(null),f=VM(d,t),g=p.useRef(0),m=p.useRef(),y=function(){var b=d.current,E=r&&m.current?m.current:eB(b);if(E){m.current=E;var S=YM(E,b.value||b.placeholder||"x",o,n),x=S[0],C=S[1];g.current!==x&&(g.current=x,b.style.setProperty("height",x+"px","important"),s(x,{rowHeight:C}))}},v=function(b){c||y(),i(b)};return p.useLayoutEffect(y),tB(d,function(){if(!c){var b=d.current.value;requestAnimationFrame(function(){var E=d.current;E&&b!==E.value&&y()})}}),rB(y),nB(y),p.createElement("textarea",ze({},u,{onChange:v,ref:f}))},iB=p.forwardRef(aB),lB=Object.assign(F(p.forwardRef(function({size:e,valid:t,align:r,...n},o){return h.createElement(iB,{...n,ref:o})}))(Mp,Np,A$,R$,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),_n=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:kM,Input:jM,Select:zM,Textarea:lB,Button:Ee,Checkbox:IM,Radio:UM}),sB=F.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:`
670
+ drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
671
+ drop-shadow(0 1px 3px rgba(0,0,0,0.1))
672
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?uf(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`]}),uB=F(Ee)({position:"absolute",top:4,right:4}),Aa=p.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:a=8,...i},l)=>h.createElement(sB,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:a,ref:l,...i},e,o&&h.createElement(uB,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},h.createElement(DA,null))));Aa.displayName="Popover";var D$=({id:e,title:t,description:r,icon:n,aside:o,children:a,isSelected:i,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>h.createElement(Ri.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},a??h.createElement(h.Fragment,null,n&&h.createElement(Ri.Icon,null,n),h.createElement(Ri.Text,null,h.createElement("p",null,t),r&&h.createElement("small",null,r)),o));D$.displayName="SelectOption";var ii=5,P$=Symbol.for("undefined");function cB(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function zd(e){return{...e,type:"option",value:Di(e.value)}}function pc(e){return"type"in e&&e.type==="reset"?e:zd(e)}function Do(e){if(e!==P$)return e}function Di(e){return e===void 0?P$:e}var dB=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Ry(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var fB=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Dy(e,t){return t===void 0?[]:cB(t)?e.filter(r=>r.value===t).map(zd):e.filter(r=>t.some(n=>r.value===n)).map(zd)}var pB=F(Ee)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:br(.93,r.barSelectedColor),color:r.base==="light"?Ye(.1,r.color.secondary):r.color.secondary}:{}),hB=F.div({position:"fixed",inset:0,zIndex:1e3}),gB=({children:e,handleClose:t,triggerRef:r})=>{let n=h.useRef(null);GS({ref:n,onInteractOutside:t}),p.useEffect(()=>{if(n.current)return ns([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Pp({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:i}=Fp({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=mf();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},h.createElement(fl,{disableFocusManagement:!0,...a},h.createElement(hB,{...i}),h.createElement(Aa,{hasChrome:!0,ref:n,padding:0,...o},e))},I$=p.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:a=!1,onReset:i,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:g,showSelectedOptionTitle:m=!0,...y},v)=>{let[b,E]=p.useState(y.defaultOpen||!1),[S,x]=p.useState(!1),C=Kt(v),$=p.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),T=`${$}-listbox`,O=p.useRef(null),L=Ta({isOpen:b&&!r,onOpenChange:E}),I=p.useCallback(()=>{E(!1),x(!0)},[]);p.useEffect(()=>{!L.isOpen&&S&&(C.current?.ownerDocument?.defaultView&&C.current.focus(),x(!1))},[L.isOpen,S,C]);let[_,N]=p.useState(Dy(n,o)),B=p.useCallback(U=>{U.type==="reset"?(d?.([]),i?.(),N([])):N(a?H=>{let G=[];return H?.some(W=>W.value===U.value)?(c?.(Do(U.value)),G=H?.filter(W=>W.value!==U.value)??[]):(u?.(Do(U.value)),G=[...H??[],U]),d?.(G.map(W=>Do(W.value))),G}:H=>H.every(G=>G.value!==U.value)?(u?.(Do(U.value)),d?.([Do(U.value)]),[U]):H)},[a,d,u,c,i]),w=p.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:h.createElement(kA,null),description:void 0,children:void 0}:void 0,[i,s]),R=p.useMemo(()=>w?[w,...n]:n,[n,w]);p.useEffect(()=>{o&&N(Dy(n,o))},[o,n]);let[P,A]=p.useState(void 0),D=p.useCallback((U,H=!0)=>{A(pc(U)),!a&&H&&B(pc(U))},[a,B]),M=p.useCallback((U=1)=>{if(!b||!P){D(R[U===1?0:Math.min(U,R.length-1)]);return}let H=R.findIndex(q=>P.type==="reset"?"type"in q&&q.type==="reset":Di(q.value)===P.value),G=H+U,W;G>=R.length&&H===R.length-1?W=R[0]:W=R[Math.min(R.length-1,G)],D(W)},[b,P,D,R]),k=p.useCallback((U=1)=>{if(!b||!P){D(R[Math.max(0,R.length-U)]);return}let H=R.findIndex(q=>P.type==="reset"?"type"in q&&q.type==="reset":Di(q.value)===P.value),G=H-U,W;G<0&&H===0?W=R[R.length-1]:W=R[Math.max(0,G)],D(W)},[b,P,D,R]),K=p.useCallback(U=>{let H=Ne=>{U.preventDefault(),D(R[Ne]),E(!0)},G=R.findIndex(Ne=>_.some(Z=>Z.value===Di(Ne.value))),W=G!==-1,q=w&&!W?1:0,ge=R.length-1;U.key==="Enter"||U.key===" "?H(W?Math.min(G,ge):q):U.key==="ArrowDown"?H(W?Math.min(G+1,ge):q):U.key==="ArrowUp"?H(W?Math.max(G-1,q):ge):U.key==="Home"?H(q):U.key==="End"?H(ge):U.key==="PageDown"?H(Math.min((W?G:q)+ii,ge)):U.key==="PageUp"&&H(Math.max(0,(W?G:ge)-ii))},[R,w,D,_]),j=p.useCallback(U=>{U.key!=="Tab"?U.preventDefault():I(),U.key==="Escape"?I():U.key==="ArrowDown"?M():U.key==="ArrowUp"?k():U.key==="Home"?D(R[0]):U.key==="End"?D(R[R.length-1]):U.key==="PageDown"?M(ii):U.key==="PageUp"&&k(ii)},[I,M,k,R,D]);p.useEffect(()=>{if(b&&P){let U=document.getElementById(Ry($,P));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else b&&O.current?.focus()},[b,P,$]);let z=p.useMemo(()=>_.length===1?`${g} ${_[0].title}`:_.length?`${g}, ${_.length} values selected`:g,[g,_]);return h.createElement(h.Fragment,null,h.createElement(pB,{...y,variant:"ghost",ariaLabel:z,tooltip:f??g,disableAllTooltips:b,id:$,ref:C,padding:l,$isOpen:b,$hasSelection:!!_.length,"aria-disabled":r,disabled:r,onClick:()=>{b?I():E(!0)},tabIndex:b?-1:0,onKeyDown:K,role:"button","aria-controls":b?T:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!a&&h.createElement(h.Fragment,null,t,m&&_[0]?.title||e),a&&h.createElement(h.Fragment,null,t,e,!!_.length&&h.createElement(fB,{"aria-label":`${_.length} ${_.length>1?"items":"item"} selected`},_?.length))),L.isOpen&&h.createElement(gB,{handleClose:I,triggerRef:C},h.createElement(dB,{"aria-label":g,role:"listbox",id:T,ref:O,"aria-multiselectable":a,onKeyDown:j,tabIndex:b?0:-1},R.map(U=>({option:pc(U),externalOption:U})).map(({externalOption:U,option:H})=>{let G=_?.some(q=>q.value===H.value)&&H!==w,W=H===w;return h.createElement(D$,{key:H.value===void 0?"sb-reset":String(H.value),title:H.title,description:H.description,aside:H.aside,icon:!W&&a?h.createElement(_n.Checkbox,{checked:G,hidden:!0,role:"presentation"}):H.icon,id:Ry($,H),isActive:b&&P?.value===H.value,isSelected:G,onClick:()=>{B(H),a||I()},onFocus:()=>D(U,!1),shouldLookDisabled:W&&_.length===0&&a,onKeyDown:q=>{q.key==="Enter"||q.key===" "?(q.preventDefault(),B(H),a||I()):q.key==="Tab"&&(a||B(H),I())}},H.children)}))))});I$.displayName="Select";const{deprecate:mB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tn=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}},F$=class extends Tn{filter(e,t,r){let[n,o]=M$(e,t,this.firstChildKey,r),a=this.clone();return a.firstChildKey=n,a.lastChildKey=o,a}},L$=class extends Tn{};L$.type="header";var yB=class extends Tn{};yB.type="loader";var k$=class extends F${filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};k$.type="item";var N$=class extends F${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}};N$.type="section";var bB=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]=M$(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 M$(e,t,r,n){if(r==null)return[null,null];let o=null,a=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,a&&(u.prevKey=a.key,a.nextKey=u.key),o==null&&(o=u),t.addNode(u),a=u),i=i.nextKey?e.getItem(i.nextKey):null}if(a&&a.type==="separator"){let u=a.prevKey;t.removeNode(a.key),u?(a=t.getItem(u),a.nextKey=null):a=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=a?.key)!==null&&s!==void 0?s:null]}var B$=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}},hc=class Gd extends B${get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Gd?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,a,i,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 Gd&&(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 g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(a=i.node)===null||a===void 0?void 0:a.key)!==null&&m!==void 0?m:null;var y;if(c.lastChildKey=(y=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(c.colSpan!=null||c.colIndex!=null)&&u){var v,b;let E=((v=c.colIndex)!==null&&v!==void 0?v:c.index)+((b=c.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&E!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=E}}}}setProps(t,r,n,o,a){let i,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=o,i.render=a,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.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,a;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((a=t.parentNode)===null||a===void 0?void 0:a.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,l=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),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}},vB=class extends B${get isConnected(){return this.isMounted}createElement(e){return new hc(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 i of this.dirtyNodes)i instanceof hc&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof hc&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,a;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,(a=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a: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 j$(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:a=[]}=e,i=p.useMemo(()=>new WeakMap,a);return p.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.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}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,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 pl=p.createContext(!1);function EB(e){if(p.useContext(pl))return h.createElement(h.Fragment,null,e.children);let t=h.createElement(pl.Provider,{value:!0},e.children);return h.createElement("template",{"data-react-aria-hidden":!0},t)}function jp(e){let t=(r,n)=>p.useContext(pl)?null:e(r,n);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function SB(){return p.useContext(pl)}var H$=p.createContext(!1),ca=p.createContext(null);function U$(e){if(p.useContext(ca))return e.content;let{collection:t,document:r}=CB(e.createCollection);return h.createElement(h.Fragment,null,h.createElement(EB,null,h.createElement(ca.Provider,{value:r},e.content)),h.createElement(xB,{render:e.children,collection:t}))}function xB({collection:e,render:t}){return t(e)}function $B(e,t,r){let n=Cn(),o=p.useRef(n);o.current=n;let a=p.useCallback(()=>o.current?r():t(),[t,r]);return FL.useSyncExternalStore(e,a)}var wB=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:$B;function CB(e){let[t]=p.useState(()=>new vB(e?.()||new bB)),r=p.useCallback(i=>t.subscribe(i),[t]),n=p.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=wB(r,n,o);return de(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}var Wd=p.createContext(null);function _B(e){var t;return t=class extends Tn{},t.type=e,t}function K$(e,t,r,n,o,a){typeof e=="string"&&(e=_B(e));let i=p.useCallback(s=>{s?.setProps(t,r,e,n,a)},[t,r,n,a,e]),l=p.useContext(Wd);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,a),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?h.createElement(Wd.Provider,{value:s},o):null}return h.createElement(e.type,{ref:i},o)}function as(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=p.forwardRef((o,a)=>{let i=p.useContext(ll);if(!p.useContext(H$)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return K$(e,o,a,"children"in o?o.children:null,null,l=>h.createElement(ll.Provider,{value:i},h.createElement(r,{node:l})))});return n.displayName=t.name,n}function Hp(e,t,r=z$){let n=({node:a})=>t(a.props,a.props.ref,a),o=p.forwardRef((a,i)=>{let l=r(a);var s;return(s=K$(e,a,i,null,l,u=>h.createElement(n,{node:u})))!==null&&s!==void 0?s:h.createElement(h.Fragment,null)});return o.displayName=t.name,o}function z$(e){return j$({...e,addIdAndValue:!0})}var Py=p.createContext(null);function G$(e){let t=p.useContext(Py),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=z$({...e,idScope:n,dependencies:r});return p.useContext(ca)&&(o=h.createElement(TB,null,o)),t=p.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),h.createElement(Py.Provider,{value:t},o)}function TB({children:e}){let t=p.useContext(ca),r=p.useMemo(()=>h.createElement(ca.Provider,{value:null},h.createElement(H$.Provider,{value:!0},e)),[e]);return Cn()?h.createElement(Wd.Provider,{value:t},r):Sl.createPortal(r,t)}var W$=p.createContext({});jp(function(e,t){[e,t]=Ze(e,t,W$);let{elementType:r="label",...n}=e;return h.createElement(r,{className:"react-aria-Label",...n,ref:t})});function OB(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Ge(t);let i=Ge(),l={};r&&(n=n?`${i} ${n}`:i,l={id:i,htmlFor:a==="label"?t:void 0});let s=Zl({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function AB(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,l=_e(e,{labelable:!0}),{labelProps:s,fieldProps:u}=OB({...e,labelElementType:"span"});t=oa(t,r,n);let c=(t-r)/(n-r),d=YN(i);if(!a&&!o){let f=i.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:te(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:s}}var V$=p.createContext(null);p.forwardRef(function(e,t){[e,t]=Ze(e,t,V$);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:a=!1}=e;r=oa(r,n,o);let[i,l]=WS(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=AB({...e,label:l}),c=a?void 0:(r-n)/(o-n)*100,d=vt({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:a}}),f=_e(e,{global:!0});return h.createElement("div",{...te(f,d,s),ref:t,slot:e.slot||void 0},h.createElement(W$.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});function RB(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:i,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:g,rel:m,type:y="button"}=e,v;r==="button"?v={type:y,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"?g:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:b,isPressed:E}=Ca({onPressStart:a,onPressEnd:i,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=_a(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=te(S,b,_e(e,{labelable:!0}));return{isPressed:E,buttonProps:te(v,x,{"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 q$=p.createContext({});jp(function(e,t){[e,t]=Ze(e,t,q$),e=DB(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:a}=RB(e,t),{focusProps:i,isFocused:l,isFocusVisible:s}=rs(e),{hoverProps:u,isHovered:c}=yo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||a)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=vt({...e,values:d,defaultClassName:"react-aria-Button"}),g=Ge(o.id),m=Ge(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let v=p.useRef(n);p.useEffect(()=>{let E={"aria-labelledby":y||g};(!v.current&&l&&n||v.current&&l&&!n)&&Bc(E,"assertive"),v.current=n},[n,l,y,g]);let b=_e(e,{global:!0});return delete b.onClick,h.createElement("button",{...te(b,f,o,i,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":y,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},h.createElement(V$.Provider,{value:{id:m}},f.children))});function DB(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 Up=p.createContext(null),Iy=p.createContext(null),PB=p.forwardRef(function(e,t){[e,t]=Ze(e,t,Up);let r=p.useContext(ls),n=Ta(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,a=PS(t,o.isOpen)||e.isExiting||!1,i=SB(),{direction:l}=$r();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),h.createElement(h.Fragment,null,s)}return o&&!o.isOpen&&!a?null:h.createElement(IB,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a,dir:l})});function IB({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let a=p.useRef(null),i=p.useRef(null),l=p.useContext(Iy),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:g,triggerAnchorPoint:m}=C9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:a,groupRef:s?l:i},e),y=o.popoverRef,v=DS(y,!!g)||o.isEntering||!1,b=vt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=p.useState(!1);de(()=>{y.current&&x(E&&!y.current.querySelector("[role=dialog]"))},[y,E]),p.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Nr(y.current)},[S,y,o.trigger]);let C=p.useMemo(()=>{let L=b.children;if(n)for(let I of n)L=h.createElement(I.Provider,{value:null},L);return L},[b.children,n]),$={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},T=h.createElement("div",{...te(_e(o,{global:!0}),c),...b,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:y,slot:o.slot||void 0,style:$,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(yy,{onDismiss:e.close}),h.createElement(Rp.Provider,{value:{...f,placement:g,ref:a}},C),h.createElement(yy,{onDismiss:e.close}));if(!s)return h.createElement(fl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&h.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),h.createElement("div",{ref:i,style:{display:"contents"}},h.createElement(Iy.Provider,{value:i},T)));var O;return h.createElement(fl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(O=r??l?.current)!==null&&O!==void 0?O:void 0},T)}var Y$=p.createContext(null);Hp("section",(e,t,r)=>{let{name:n,render:o}=p.useContext(Y$);return o(e,t,r,"react-aria-Section")});var X$={CollectionRoot({collection:e,renderDropIndicator:t}){return Fy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Fy(e,t,r)}};function Fy(e,t,r){return j$({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:h.createElement(h.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,FB(e,n,r))}})}function FB(e,t,r){let n=t.key,o=e.getKeyAfter(n),a=o!=null?e.getItem(o):null;for(;a!=null&&a.type!=="item";)o=e.getKeyAfter(a.key),a=o!=null?e.getItem(o):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let l=[];if(i==null){let s=t;for(;s&&(!a||s.parentKey!==a.parentKey&&a.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 Ra=p.createContext(X$);function J$(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}var Ly=p.createContext(null),LB=p.createContext(null),Z$=p.createContext({});as(L$,function(e,t){return[e,t]=Ze(e,t,Z$),h.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var Q$=p.createContext({});p.forwardRef(function(e,t){return[e,t]=Ze(e,t,Q$),h.createElement("kbd",{dir:"ltr",...e,ref:t})});function kB(e){let t=_e(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var ew=p.createContext({}),tw=class extends Tn{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}};tw.type="separator";as(tw,function(e,t){[e,t]=Ze(e,t,ew);let{elementType:r,orientation:n,style:o,className:a,slot:i,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=kB({...l,elementType:r,orientation:n}),c=_e(e,{global:!0});return h.createElement(s,{...te(c,u),style:o,className:a??"react-aria-Separator",ref:t,slot:i||void 0})});var rw=new WeakMap;function Vd(e){return Lk()?e.altKey:e.ctrlKey}function Pi(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,a=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return a&&(o=`[data-collection="${CSS.escape(a)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var nw=new WeakMap;function NB(e){let t=Ge();return nw.set(e,t),t}function MB(e){return nw.get(e)}var BB=1e3;function jB(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=p.useRef({search:"",timeout:void 0}).current,a=i=>{let l=HB(i.key);if(!(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.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=""},BB)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function HB(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ow(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:g,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:v}=$r(),b=Xl(),E=A=>{var D;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((D=n.current)===null||D===void 0)&&D.contains(A.target)))return;let M=(V,Y)=>{if(V!=null){if(t.isLink(V)&&y==="selection"&&u&&!Vd(A)){Sl.flushSync(()=>{t.setFocusedKey(V,Y)});let ee=Pi(n,V),se=t.getItemProps(V);ee&&b.open(ee,A,se.href,se.routerOptions);return}if(t.setFocusedKey(V,Y),t.isLink(V)&&y==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!Vd(A)&&t.replaceSelection(V)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var k,K,j;let V=t.focusedKey!=null?(k=r.getKeyBelow)===null||k===void 0?void 0:k.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);V==null&&a&&(V=(j=r.getFirstKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V))}break;case"ArrowUp":if(r.getKeyAbove){var z,U,H;let V=t.focusedKey!=null?(z=r.getKeyAbove)===null||z===void 0?void 0:z.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);V==null&&a&&(V=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V))}break;case"ArrowLeft":if(r.getKeyLeftOf){var G,W,q;let V=t.focusedKey!=null?(G=r.getKeyLeftOf)===null||G===void 0?void 0:G.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey):(q=r.getLastKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ge,Ne,Z;let V=t.focusedKey!=null?(ge=r.getKeyRightOf)===null||ge===void 0?void 0:ge.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(Ne=r.getLastKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey):(Z=r.getFirstKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let V=r.getFirstKey(t.focusedKey,Ln(A));t.setFocusedKey(V),V!=null&&(Ln(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let V=r.getLastKey(t.focusedKey,Ln(A));t.setFocusedKey(V),V!=null&&(Ln(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let V=r.getKeyPageBelow(t.focusedKey);V!=null&&(A.preventDefault(),M(V))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(A.preventDefault(),M(V))}break;case"a":Ln(A)&&t.selectionMode==="multiple"&&l!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let V=ut(n.current,{tabbable:!0}),Y,ee;do ee=V.lastChild(),ee&&(Y=ee);while(ee);Y&&!Y.contains(document.activeElement)&&lt(Y)}break}}},S=p.useRef({top:0,left:0});ko(m,"scroll",g?void 0:()=>{var A,D,M,k;S.current={top:(M=(A=m.current)===null||A===void 0?void 0:A.scrollTop)!==null&&M!==void 0?M:0,left:(k=(D=m.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&k!==void 0?k:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var D,M;let j=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},z=A.relatedTarget;var k,K;z&&A.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?j((k=t.lastSelectedKey)!==null&&k!==void 0?k:(D=r.getLastKey)===null||D===void 0?void 0:D.call(r)):j((K=t.firstSelectedKey)!==null&&K!==void 0?K:(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))}else!g&&m.current&&(m.current.scrollTop=S.current.top,m.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&m.current){let j=Pi(n,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!d&&lt(j),sa()==="keyboard"&&k0(j,{containingElement:n.current}))}}},C=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},$=p.useRef(!1);ko(n,Jk,d?A=>{let{detail:D}=A;A.stopPropagation(),t.setFocused(!0),D?.focusStrategy==="first"&&($.current=!0)}:void 0);let T=He(()=>{var A,D;let M=(D=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&D!==void 0?D:null;if(M==null){let k=Me();bx(n.current),vx(k,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(M),$.current=!1});F0(()=>{$.current&&T()},[t.collection,T]);let O=He(()=>{t.collection.size>0&&($.current=!1)});F0(()=>{O()},[t.focusedKey,O]),ko(n,Xk,d?A=>{var D;A.stopPropagation(),t.setFocused(!1),!((D=A.detail)===null||D===void 0)&&D.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=p.useRef(o),I=p.useRef(!1);p.useEffect(()=>{if(L.current){var A,D;let K=null;var M;o==="first"&&(K=(M=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&M!==void 0?M:null);var k;o==="last"&&(K=(k=(D=r.getLastKey)===null||D===void 0?void 0:D.call(r))!==null&&k!==void 0?k:null);let j=t.selectedKeys;if(j.size){for(let z of j)if(t.canSelectItem(z)){K=z;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&Nr(n.current),t.collection.size>0&&(L.current=!1,I.current=!0)}});let _=p.useRef(t.focusedKey),N=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||I.current)&&m.current&&n.current){let A=sa(),D=Pi(n,t.focusedKey);if(!(D instanceof HTMLElement))return;(A==="keyboard"||I.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{m.current&&(AS(m.current,D),A!=="virtual"&&k0(D,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Nr(n.current),_.current=t.focusedKey,I.current=!1}),p.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),ko(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let B={onKeyDown:E,onFocus:x,onBlur:C,onMouseDown(A){m.current===A.target&&A.preventDefault()}},{typeSelectProps:w}=jB({keyboardDelegate:r,selectionManager:t});c||(B=te(w,B));let R;d||(R=t.focusedKey==null?0:-1);let P=NB(t.collection);return{collectionProps:te(B,{tabIndex:R,"data-collection":P})}}function aw(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:a,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=Xl();t=Ge(t);let g=k=>{if(k.pointerType==="keyboard"&&Vd(k))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,k,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):k&&k.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||k&&(Ln(k)||k.pointerType==="touch"||k.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};p.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?bx(o.current):l?l():document.activeElement!==o.current&&o.current&&Nr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let m={};!i&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(k){k.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=k=>{k.preventDefault()});let y=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&d!=="selection"&&d!=="none",E=!s&&r.canSelectItem(n)&&!y&&!v,S=(u||b)&&!s,x=S&&(r.selectionBehavior==="replace"?!E:!E||r.isEmpty),C=S&&E&&r.selectionBehavior==="replace",$=x||C,T=p.useRef(null),O=$&&E,L=p.useRef(!1),I=p.useRef(!1),_=r.getItemProps(n),N=k=>{if(u){var K;u(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&f.open(o.current,k,_.href,_.routerOptions)},B={ref:o};if(a?(B.onPressStart=k=>{T.current=k.pointerType,L.current=O,k.pointerType==="keyboard"&&(!$||Ny())&&g(k)},c?(B.onPressUp=x?void 0:k=>{k.pointerType==="mouse"&&E&&g(k)},B.onPress=x?N:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&E&&g(k)}):B.onPress=k=>{if(x||C&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!ky())return;N(k)}else k.pointerType!=="keyboard"&&E&&g(k)}):(B.onPressStart=k=>{T.current=k.pointerType,L.current=O,I.current=x,E&&(k.pointerType==="mouse"&&!x||k.pointerType==="keyboard"&&(!S||Ny()))&&g(k)},B.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&ky()||k.pointerType==="mouse"&&I.current)&&($?N(k):E&&g(k))}),m["data-collection"]=MB(r.collection),m["data-key"]=n,B.preventFocusOnPress=i,i&&(B=te(B,{onPressStart(k){k.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(k){k.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),_)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])_[k]&&(B[k]=wa(B[k],_[k]));let{pressProps:w,isPressed:R}=Ca(B),P=C?k=>{T.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),N(k))}:void 0,{longPressProps:A}=D7({isDisabled:!O,onLongPress(k){k.pointerType==="touch"&&(g(k),r.setSelectionBehavior("toggle"))}}),D=k=>{T.current==="touch"&&L.current&&k.preventDefault()},M=d!=="none"&&r.isLink(n)?k=>{yn.isOpening||k.preventDefault()}:void 0;return{itemProps:te(m,E||x||i&&!s?w:{},O?A:{},{onDoubleClick:P,onDragStartCapture:D,onClick:M,id:t},i?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:R,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:$}}function ky(){return window.event?.key==="Enter"}function Ny(){let e=window.event;return e?.key===" "||e?.code==="Space"}var My=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Pi(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}},UB=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 a=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(a,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&&!Qn(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&&!Qn(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 a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,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 My(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 My(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function KB(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,layoutDelegate:i}=e,l=XN({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>a||new UB({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:i}),[a,i,r,n,o,l,s]),{collectionProps:c}=ow({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function zB(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let l=_e(e,{labelable:!0}),{listProps:s}=KB({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return rw.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:te(l,{onKeyDown:o,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function iw(e){return null}iw.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,a=e.title||e.children,i=e.textValue||(typeof a=="string"?a:"")||e["aria-label"]||"";!i&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:a,textValue:i,"aria-label":e["aria-label"],hasChildNodes:GB(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];h.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function GB(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}var WB=iw,VB=class{build(e,t){return this.context=t,By(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(h.isValidElement(t)&&t.type===h.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=[];h.Children.forEach(t,a=>{a&&n.push(a)});let o=0;for(let a of n){let i=this.getFullNode({element:a,index:o},{});for(let l of i)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 a;let i=(a=o.key)!==null&&a!==void 0?a:o.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(h.isValidElement(e.element)&&e.element.type===h.Fragment){let y=[];h.Children.forEach(e.element.props.children,b=>{y.push(b)});var o;let v=(o=e.index)!==null&&o!==void 0?o:0;for(let b of y)yield*this.getFullNode({element:b,index:v++},t,r,n);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}a=t.renderer(e.value)}if(h.isValidElement(a)){let y=a.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=y.getCollectionNode(a.props,this.context);var i;let b=(i=e.index)!==null&&i!==void 0?i:0,E=v.next();for(;!E.done&&E.value;){let S=E.value;e.index=b;var l;let x=(l=S.key)!==null&&l!==void 0?l:null;x==null&&(x=S.element?null:this.getKey(a,e,t,r));let C=[...this.getFullNode({...S,key:x,index:b,wrapper:qB(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${a.key}`:a.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 <${gc($.type)}> in <${gc((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${gc(e.type)}> is supported.`);b++,yield $}E=v.next(C)}return}if(e.key==null||e.type==null)return;let d=this;var f,g;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:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:By(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let v of e.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let b=d.getFullNode({...v,index:y},d.getChildState(t,v),m.key,m);for(let E of b)y++,yield E}})};yield m}constructor(){this.cache=new WeakMap}};function By(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 qB(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function gc(e){return e[0].toUpperCase()+e.slice(1)}function lw(e,t,r){let n=p.useMemo(()=>new VB,[]),{children:o,items:a,collection:i}=e;return p.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,i,r,t])}function sw(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function YB(e){return XB(e)}function XB(e,t){for(let r of e)return r}function mc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...jy(e,t),t],o=[...jy(e,r),r],a=n.slice(0,o.length).findIndex((i,l)=>i!==o[l]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function jy(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var Hy=new WeakMap;function JB(e){let t=Hy.get(e);if(t!=null)return t;let r=0,n=o=>{for(let a of o)a.type==="section"?n(sw(a,e)):a.type==="item"&&r++};return n(e),Hy.set(e,r),r}function ZB(e,t,r){let{id:n,key:o,closeOnSelect:a,isVirtualized:i,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:g,onHoverStart:m,onHoverChange:y,onHoverEnd:v,onKeyDown:b,onKeyUp:E,onFocus:S,onFocusChange:x,onBlur:C,selectionManager:$=t.selectionManager}=e,T=!!l,O=T&&e["aria-expanded"]==="true";var L;let I=(L=e.isDisabled)!==null&&L!==void 0?L:$.isDisabled(o);var _;let N=(_=e.isSelected)!==null&&_!==void 0?_:$.isSelected(o),B=rw.get(t),w=t.collection.getItem(o),R=e.onClose||B.onClose,P=Xl(),A=()=>{var J;if(!T&&(!(w==null||(J=w.props)===null||J===void 0)&&J.onAction?w.props.onAction():e.onAction&&e.onAction(o),B.onAction)){let tt=B.onAction;tt(o)}},D="menuitem";T||($.selectionMode==="single"?D="menuitemradio":$.selectionMode==="multiple"&&(D="menuitemcheckbox"));let M=Ti(),k=Ti(),K=Ti(),j={id:n,"aria-disabled":I||void 0,role:D,"aria-label":e["aria-label"],"aria-labelledby":M,"aria-describedby":[k,K].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!T&&(j["aria-checked"]=N),i&&(j["aria-posinset"]=w?.index,j["aria-setsize"]=JB(t.collection));let z=p.useRef(!1),U=J=>{d?.(J),z.current=J},H=p.useRef(null),G=J=>{J.pointerType!=="keyboard"&&(H.current={pointerType:J.pointerType}),J.pointerType==="mouse"&&(z.current||J.target.click()),u?.(J)},W=J=>{var tt,Rt;g?.(J),A(),Hk(J,P,w.props.href,w?.props.routerOptions);let pt=((tt=H.current)===null||tt===void 0?void 0:tt.pointerType)==="keyboard"?((Rt=H.current)===null||Rt===void 0?void 0:Rt.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);pt=a??pt,R&&!T&&pt&&R(),H.current=null},{itemProps:q,isFocused:ge}=aw({id:n,selectionManager:$,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:Ne,isPressed:Z}=Ca({onPressStart:s,onPress:c,onPressUp:G,onPressChange:U,onPressEnd:f,isDisabled:I}),{hoverProps:V}=yo({isDisabled:I,onHoverStart(J){!la()&&!(O&&l)&&($.setFocused(!0),$.setFocusedKey(o)),m?.(J)},onHoverChange:y,onHoverEnd:v}),{keyboardProps:Y}=zS({onKeyDown:J=>{if(J.repeat){J.continuePropagation();return}switch(J.key){case" ":H.current={pointerType:"keyboard",key:" "},J.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},J.target.tagName!=="A"&&J.target.click();break;default:T||J.continuePropagation(),b?.(J);break}},onKeyUp:E}),{focusProps:ee}=Tp({onBlur:C,onFocus:S,onFocusChange:x}),se=_e(w?.props);delete se.id;let et=_S(w?.props);return{menuItemProps:{...j,...te(se,et,T?{onFocus:q.onFocus,"data-collection":q["data-collection"],"data-key":q["data-key"]}:q,Ne,V,Y,ee,B.shouldUseVirtualFocus||T?{onMouseDown:J=>J.preventDefault()}:void 0,I?void 0:{onClick:W}),tabIndex:q.tabIndex!=null&&O&&!B.shouldUseVirtualFocus?-1:q.tabIndex},labelProps:{id:M},descriptionProps:{id:k},keyboardShortcutProps:{id:K},isFocused:ge,isFocusVisible:ge&&$.isFocused&&la()&&!O,isSelected:N,isPressed:Z,isDisabled:I}}function QB(e){let{heading:t,"aria-label":r}=e,n=Ge();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var li=2,ej=50,tj=1e3,Uy=Math.PI/12;function rj(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,a=p.useRef(void 0),i=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,g]=p.useState(!1);nl({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{g(!1),d.current=li,a.current=void 0},y=b7(),v=He(b=>{f&&b.preventDefault()});p.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),p.useEffect(()=>{let b=r.current,E=t.current;if(o||!b||!n||y!=="pointer"||!E){m();return}i.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let C=Date.now();if(C-l.current<ej)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:$,clientY:T}=x;if(!a.current){a.current={x:$,y:T};return}if(!i.current)return;if(c.current||(c.current=$>i.current.right?"left":"right"),$<E.getBoundingClientRect().left||$>E.getBoundingClientRect().right||T<E.getBoundingClientRect().top||T>E.getBoundingClientRect().bottom){m();return}let O=a.current.x,L=a.current.y,I=c.current==="right"?i.current.left-O:O-i.current.right,_=Math.atan2(L-i.current.top,I)+Uy,N=Math.atan2(L-i.current.bottom,I)-Uy,B=Math.atan2(L-T,c.current==="left"?-($-O):$-O),w=B<_&&B>N;d.current=w?Math.min(d.current+1,li):Math.max(d.current-1,0),d.current>=li?g(!0):g(!1),l.current=C,a.current={x:$,y:T},w&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let R=document.elementFromPoint($,T);R&&E.contains(R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},tj))};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=li}},[o,n,t,y,g,v,r])}function nj(e,t,r){let{parentMenuRef:n,submenuRef:o,type:a="menu",isDisabled:i,delay:l=200,shouldUseVirtualFocus:s}=e,u=Ge(),c=Ge(),{direction:d}=$r(),f=p.useRef(void 0),g=p.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=He(O=>{g(),t.open(O)}),y=He(()=>{g(),t.close()});de(()=>()=>{g()},[g]);let v=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break;case"Escape":var L;!((L=o.current)===null||L===void 0)&&L.contains(O.target)&&(O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break}};var b;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...a==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:v}},S=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&lt(o.current)):t.isOpen?y():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&lt(o.current)):t.isOpen?y():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&m("first")},C=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&m()},$=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):O||g())};ko(n,"focusin",O=>{var L;t.isOpen&&!((L=n.current)===null||L===void 0)&&L.contains(O.target)&&O.target!==r.current&&y()});let T=O=>O!==r.current;return rj({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:a,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:C,onHoverChange:$,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:T}}}function uw(e){let t=Ta(e),[r,n]=p.useState(null),[o,a]=p.useState([]),i=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(l,s)=>{a(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{a(u=>u[s]===l?u.slice(0,s):u)}}}function oj(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:a,close:i}=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),a(r,l)},[a,l,r]),g=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:i,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,f,i,u,g,l])}var aj=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=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let l of i.childNodes)r(l)};for(let i of e)r(i);let n=null,o=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}},pr=class cw extends Set{constructor(t,r,n){super(t),t instanceof cw?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function ij(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Kp(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=p.useRef(!1),[,l]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>Ky(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>Ky(e.defaultSelectedKeys,new pr),[e.defaultSelectedKeys]),[g,m]=Ql(d,f,e.onSelectionChange),y=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=p.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let E=p.useRef(o);return p.useEffect(()=>{o!==E.current&&(b(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(S){i.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,x="first"){s.current=S,u.current=x,c(S)},selectedKeys:g,setSelectedKeys(S){(n||!ij(S,g))&&m(S)},disabledKeys:y,disabledBehavior:a}}function Ky(e,t){return e?e==="all"?"all":new pr(e):t}var zp=class dw{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&&mc(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&&mc(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 pr([r],r,r);else{let i=this.state.selectedKeys;var o;let l=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new pr(i,l,r);var a;for(let s of this.getKeyRange(l,(a=i.currentKey)!==null&&a!==void 0?a: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?mc(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=[],a=t;for(;a!=null;){let i=this.collection.getItem(a);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(a),a===r)return o;a=this.collection.getKeyAfter(a)}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 pr(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 pr([r],r,r):new pr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new pr;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 i=this.collection.getItem(n);i?.type==="item"&&t.push(n);var a;i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((a=(o=YB(sw(i,this.collection)))===null||o===void 0?void 0:o.key)!==null&&a!==void 0?a: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 pr)}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 dw(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 lj(e){let{onExpandedChange:t}=e,[r,n]=Ql(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Kp(e),a=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=lw(e,p.useCallback(l=>new aj(l,{expandedKeys:r}),[r]),null);return p.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:a,toggleKey:l=>{n(sj(r,l))},setExpandedKeys:n,selectionManager:new zp(i,o)}}function sj(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var fw=p.createContext(null),is=p.createContext(null),hl=p.createContext(null),gl=p.createContext(null),pw=p.createContext(null),hw=class extends Tn{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}};hw.type="submenutrigger";Hp(hw,(e,t,r)=>{let{CollectionBranch:n}=p.useContext(Ra),o=p.useContext(is),a=p.useContext(hl),i=oj({triggerKey:r.key},a),l=p.useRef(null),s=Kt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=p.useContext(pw),{submenuTriggerProps:d,submenuProps:f,popoverProps:g}=nj({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},i,s);return h.createElement(xr,{values:[[ml,{...d,onAction:void 0,ref:s}],[fw,{ref:l,...f}],[ls,i],[Up,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...g}]]},h.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);p.forwardRef(function(e,t){return[e,t]=Ze(e,t,fw),h.createElement(U$,{content:h.createElement(G$,e)},r=>h.createElement(uj,{props:e,collection:r,menuRef:t}))});function uj({props:e,collection:t,menuRef:r}){[e,r]=Ze(e,r,Ly);let{filter:n,...o}=e,a=p.useMemo(()=>n?t.filter(n):t,[t,n]),i=lj({...e,collection:a,children:void 0}),l=p.useContext(hl),{isVirtualized:s,CollectionRoot:u}=p.useContext(Ra),{menuProps:c}=zB({...e,isVirtualized:s,onClose:e.onClose||l?.close},i,r),d=vt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=h.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=_e(e,{global:!0});return h.createElement(Ip,null,h.createElement("div",{...te(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},h.createElement(xr,{values:[[is,i],[ew,{elementType:"div"}],[Y$,{name:"MenuSection",render:gw}],[pw,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[ml,null],[Ly,null],[LB,null],[gl,i.selectionManager],[hl,l??uw({})]]},h.createElement(u,{collection:i.collection,persistedKeys:J$(i.selectionManager.focusedKey),scrollRef:r})),f))}var cj=class extends zp{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 gw(e,t,r,n="react-aria-MenuSection"){var o,a;let i=p.useContext(is),{CollectionBranch:l}=p.useContext(Ra),[s,u]=WS();var c;let{headingProps:d,groupProps:f}=QB({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=vt({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(a=r.props)===null||a===void 0?void 0:a.style,values:{}}),m=p.useContext(gl),y=Kp(e),v=e.selectionMode!=null?new cj(m,y):m,b=_e(e,{global:!0});return delete b.id,h.createElement("section",{...te(b,g,f),ref:t},h.createElement(xr,{values:[[Z$,{...d,ref:s}],[gl,v]]},h.createElement(l,{collection:i.collection,parent:r})))}Hp(N$,gw);var ml=p.createContext(null);as(k$,function(e,t,r){var n;[e,t]=Ze(e,t,ml);let o=(n=Ap(ml))===null||n===void 0?void 0:n.id,a=p.useContext(is),i=Kt(t),l=p.useContext(gl),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=ZB({...e,id:o,key:r.key,selectionManager:l},a,i),{hoverProps:g,isHovered:m}=yo({isDisabled:f.isDisabled}),y=vt({...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",b=_e(e,{global:!0});return delete b.id,delete b.onClick,h.createElement(v,{...te(b,y,s,g),ref:i,"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},h.createElement(xr,{values:[[b$,{slots:{[sl]:u,label:u,description:c}}],[Q$,d]]},y.children))});function dj(e,t){let{role:r="dialog"}=e,n=Ti();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Nr(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Nr(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),o$(),{dialogProps:{..._e(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:n}}}var mw=p.createContext(null),ls=p.createContext(null);function fj(e){let t=uw(e),r=p.useRef(null),{triggerProps:n,overlayProps:o}=d9({},t,r),[a,i]=p.useState(null),l=p.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return nl({ref:r,onResize:l}),n.id=Ge(),o["aria-labelledby"]=n.id,h.createElement(xr,{values:[[ls,t],[hl,t],[mw,o],[Up,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":a}}]]},h.createElement(_7,{...n,ref:r,isPressed:t.isOpen},e.children))}p.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Ze(e,t,mw);let{dialogProps:n,titleProps:o}=dj({...e,"aria-labelledby":r},t),a=p.useContext(ls);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=vt({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),l=_e(e,{global:!0});return h.createElement("section",{...te(l,i,n),ref:t,slot:e.slot||void 0},h.createElement(xr,{values:[[y$,{slots:{[sl]:{},title:{...o,level:2}}}],[q$,{slots:{[sl]:{},close:{onPress:()=>a?.close()}}}]]},i.children))});var Gp=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:a=8,padding:i,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||mB("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=kp(t),[m,y]=p.useState(u??!1),v=p.useCallback(E=>{y(E),d?.(E)},[d]),b=p.useCallback(()=>v(!1),[v]);return h.createElement(fj,{defaultOpen:u,isOpen:c??m,onOpenChange:v,...f},h.createElement(C7,null,p.cloneElement(s,{"aria-haspopup":"dialog"})),h.createElement(PB,{"aria-label":e,placement:g,offset:a,style:{outline:"none"}},h.createElement(Aa,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:i},typeof l=="function"?l({onHide:b}):l)))},yw=p.forwardRef((e,t)=>h.createElement(Aa,{ref:t,...e}));yw.displayName="Tooltip";p.lazy(()=>yr(()=>import("./WithTooltip-7X4HQR7L-CEX1gWpG.js"),__vite__mapDeps([7,1,2,5,4,3]),import.meta.url).then(e=>({default:e.WithTooltip})));p.lazy(()=>yr(()=>import("./WithTooltip-7X4HQR7L-CEX1gWpG.js"),__vite__mapDeps([7,1,2,5,4,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:sZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:pj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var hj=yt(vn(),1);const{deprecate:gj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mj=F(({active:e,loading:t,disabled:r,...n})=>h.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}:{}),yj=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),bj=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),vj=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),Ej=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Sj=F.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"}),xj=(0,hj.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}}})),bw=p.forwardRef((e,t)=>{let{loading:r=!1,title:n=h.createElement("span",null,"Loading state"),center:o=null,right:a=null,active:i=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:g=void 0,...m}=e,y={active:i,disabled:l},v=xj(e),b=d||f;return gj("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),h.createElement(Sj,{"data-deprecated":"ListItem",ref:t,...m,...y,...v},h.createElement(h.Fragment,null,b&&h.createElement(Ej,{...y},b),n||o?h.createElement(bj,{isIndented:s&&!b},n&&h.createElement(mj,{...y,loading:r},n),o&&h.createElement(vj,{...y},o)):null,a&&h.createElement(yj,{...y},a)))});bw.displayName="ListItem";var vw=bw,$j=F.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}:{}),wj=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Cj=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=p.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return h.createElement(vw,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Ew=({links:e,LinkWrapper:t,...r})=>{pj("`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(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return h.createElement($j,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(a=>a.length).map((a,i)=>h.createElement(wj,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?h.createElement(p.Fragment,{key:l.id},l.content):h.createElement(Cj,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ss}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:_j}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tj=F.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})),Oj=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),bo=p.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>h.createElement(Tj,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?h.createElement(Oj,{innerStyle:r},t):t));bo.displayName="Bar";var qd=F.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}:{});qd.displayName="Side";var Aj=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Rj=F(bo)({paddingInline:0}),Wp=({children:e,backgroundColor:t,className:r="",...n})=>{_j('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,a]=p.Children.toArray(e);return h.createElement(Rj,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(Aj,{bgColor:t},h.createElement(qd,{scrollable:n.scrollable,left:!0},o),a?h.createElement(qd,{right:!0},a):null))};Wp.displayName="FlexBar";const{deprecate:Dj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Pj=e=>typeof e.props.href=="string",Ij=e=>typeof e.props.href!="string";function Fj({children:e,...t},r){let n={props:t,ref:r};if(Pj(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Ij(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Sw=p.forwardRef(Fj);Sw.displayName="ButtonOrLink";var Lj=F(Sw,{shouldForwardProp:Rl})({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}}),Da=p.forwardRef((e,t)=>(Dj("The `TabButton` component is deprecated. Use `TabList` instead."),h.createElement(Lj,{"data-deprecated":"TabButton",ref:t,...e})));Da.displayName="TabButton";var kj=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Nj=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Mj=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Bj=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),jj=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Pa=({title:e,description:t,footer:r})=>h.createElement(kj,null,h.createElement(Nj,null,h.createElement(Mj,null,e),t&&h.createElement(jj,null,t)),r&&h.createElement(Bj,null,r));const{deprecate:Hj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var xw=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Uj=e=>(Hj("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),p.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>h.createElement(xw,{active:i,role:"tabpanel"},a)}}));const{deprecate:Kj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var zj=F.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"})),Gj=F(Da)(({active:e,theme:t,preActive:r})=>`
673
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
674
+ .addon-collapsible-icon {
675
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
676
+ }
677
+ &:hover {
678
+ color: ${t.barHoverColor};
679
+ .addon-collapsible-icon {
680
+ color: ${t.barHoverColor};
681
+ }
682
+ }
683
+ `);function Wj(e){Kj("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=p.useRef(),r=p.useRef(),n=p.useRef(new Map),{width:o=1}=_$({ref:t}),[a,i]=p.useState(e),[l,s]=p.useState([]),u=p.useRef(e),c=p.useCallback(({menuName:f,actions:g})=>{let m=l.some(({active:b})=>b),[y,v]=p.useState(!1);return h.createElement(h.Fragment,null,h.createElement(Gp,{ariaLabel:"Additional tabs",visible:y,onVisibleChange:v,placement:"bottom",popover:h.createElement(Ew,{links:l.map(({title:b,id:E,color:S,active:x})=>({id:E,title:b,color:S,active:x,onClick:C=>{C.preventDefault(),g.onSelect(E)}}))})},h.createElement(Gj,{id:"addons-menu-button",ref:r,active:m,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,h.createElement(zj,{className:"addon-collapsible-icon",isActive:m||y}))),l.map(({title:b,id:E,color:S},x)=>{let C=`index-${x}`;return h.createElement(Da,{id:`tabbutton-${Jn(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"},b)}))},[l]),d=p.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:g}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),y=l.length?f+g-m:f+g,v=[],b=0,E=e.filter(S=>{let{id:x}=S,C=n.current.get(x),{width:$=0}=C?.getBoundingClientRect()||{},T=f+b+$>y;return(!T||!C)&&v.push(S),b+=$,T});(v.length!==a.length||u.current!==e)&&(i(v),s(E),u.current=e)},[l.length,e,a]);return p.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:a,invisibleList:l,AddonTab:c}}var Vj="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",qj=F.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"}),Yj=F.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),Vp=p.forwardRef((e,t)=>(ss("The `TabBar` component is deprecated. Use `TabsView` instead."),h.createElement(Yj,{"data-deprecated":"TabBar",...e,ref:t})));Vp.displayName="TabBar";var Xj=F.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${Vj}`]:{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"}}:{}),$w=p.forwardRef(({active:e,render:t,children:r},n)=>(ss("The `TabWrapper` component is deprecated. Use `TabsView` instead."),h.createElement(xw,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));$w.displayName="TabWrapper";var Jj=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?h.createElement(Pa,{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}},qp=p.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:a=null,backgroundColor:i,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{ss("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=p.useMemo(()=>Uj(e).map((b,E)=>({...b,active:t?b.id===t:E===0})),[e,t]),{visibleList:f,tabBarRef:g,tabRefs:m,AddonTab:y}=Wj(d),v=u??h.createElement(Pa,{title:"Nothing found"});return!c&&d.length===0?v:h.createElement(qj,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},h.createElement(Wp,{scrollable:!1,border:!0,backgroundColor:i},h.createElement(Vp,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},f.map(({title:b,id:E,active:S,color:x},C)=>{let $=`index-${C}`;return h.createElement(Da,{id:`tabbutton-${Jn(E)??$}`,ref:T=>{m.current.set(E,T)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:E,active:S,textColor:x,onClick:T=>{T.preventDefault(),r.onSelect(E)},role:"tab","aria-selected":S},typeof b=="function"?h.createElement("title",null):b)}),h.createElement(y,{menuName:s,actions:r})),a),h.createElement(Xj,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:b,active:E,render:S})=>h.createElement(Jj,{key:b,active:E},h.createElement(S,{active:E},null))):v))});qp.displayName="Tabs";var ww=class extends p.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},ss("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:a}=this.state;return h.createElement(qp,{bordered:e,absolute:t,selected:a,backgroundColor:n,menuName:o,actions:this.handlers},r)}};ww.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Cw=F.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});Cw.displayName="Separator";F.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function Zj(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[a,i]=p.useState(!1);de(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});let{direction:l}=$r(),s=l==="rtl"&&o==="horizontal",u=i9(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)},g=m=>{var y;if(d.current&&!m.currentTarget.contains(m.relatedTarget)&&!((y=t.current)===null||y===void 0)&&y.contains(m.target)){var v;(v=d.current)===null||v===void 0||v.focus(),d.current=null}};return{toolbarProps:{..._e(e,{labelable:!0}),role:a?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:a?void 0:c,onFocusCapture:a?void 0:g,onBlurCapture:a?void 0:f}}}var _w=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=p.useRef(null),{toolbarProps:o}=Zj({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return h.createElement(bo,{ref:n,...o,...r})},Tw=new WeakMap;function yl(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Tw.get(e)}-${r}-${t}`):""}function Ow(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:a}=e,{selectionManager:i,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=aw({selectionManager:i,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:a,linkBehavior:"selection"}),f=yl(t,n,"tab"),g=yl(t,n,"tabpanel"),{tabIndex:m}=c,y=t.collection.getItem(n),v=_e(y?.props,{labelable:!0});delete v.id;let b=_S(y?.props),{focusableProps:E}=_a({isDisabled:u},r);return{tabProps:te(v,E,b,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function Aw(e,t,r){let n=s9(r)?void 0:0;var o;let a=yl(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),i=Zl({...e,id:a,"aria-labelledby":yl(t,t?.selectedKey,"tab")});return{tabPanelProps:te(i,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var Qj=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 Rw(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:i,disabledKeys:l}=t,{direction:s}=$r(),u=p.useMemo(()=>new Qj(a,s,n,l),[a,l,n,s]),{collectionProps:c}=ow({ref:r,selectionManager:i,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Ge();Tw.set(t,d);let f=Zl({...e,id:d});return{tabListProps:{...te(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var eH=F.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}}),tH=F.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),rH=F.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),nH=F.div({display:"flex",flexShrink:0}),zy=28,Gy=F.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"})),Wy=F(Ee)({flexShrink:0,paddingInline:0,width:16}),oH=({item:e,state:t})=>{let{rendered:r}=e,n=h.useRef(null),o=t,{tabProps:a,isDisabled:i,isPressed:l,isSelected:s}=Ow(e,o,n);return h.createElement(eH,{...a,isDisabled:i,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},Dw=({state:e,...t})=>{let r=p.useRef(null),n=p.useRef(null),o=p.useRef(null),{tabListProps:a}=Rw({orientation:"horizontal"},e,o),[i,l]=p.useState(!1),[s,u]=p.useState(!1),[c,d]=p.useState(!1),f=p.useCallback(()=>{let b=n.current,E=r.current;if(!b||!E)return;let{scrollLeft:S,scrollWidth:x,clientWidth:C}=b,$=E.clientWidth-(i?zy*2:0),T=x>$;l(T),T?(u(S>0),d(S<x-C)):(u(!1),d(!1))},[i]),g=p.useCallback(()=>{f()},[f]);p.useEffect(()=>{let b=n.current;if(!b||typeof window>"u")return;b.addEventListener("scroll",g,{passive:!0});let E=null;typeof ResizeObserver<"u"&&(E=new ResizeObserver(g),E.observe(b));let S=setTimeout(g,0);return()=>{clearTimeout(S),b.removeEventListener("scroll",g),E&&E.disconnect()}},[g]);let m=p.useCallback(b=>{let E=n.current,S=r.current;if(!E||!S||typeof window>"u")return;let x=S.clientWidth-zy*2,C=b==="backward"?-x:x;typeof E.scrollBy=="function"?E.scrollBy({left:C,behavior:"smooth"}):E.scrollLeft+=C},[]),y=p.useCallback(()=>m("backward"),[m]),v=p.useCallback(()=>m("forward"),[m]);return h.createElement(tH,{...t,ref:r,"data-show-scroll-buttons":i},i&&h.createElement(Gy,{$showEndBorder:s},h.createElement(Wy,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:y,tabIndex:-1},h.createElement(FA,null))),h.createElement(rH,{ref:n},h.createElement(nH,{ref:o,...a},[...e.collection].map(b=>h.createElement(oH,{key:b.key,item:b,state:e})))),i&&h.createElement(Gy,{$showStartBorder:c},h.createElement(Wy,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:v,tabIndex:-1},h.createElement(LA,null))))},aH=F.div({overflowY:"hidden",height:"100%"}),Pw=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=p.useRef(null),o=r,{tabPanelProps:a}=Aw(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(i=>!!i).map(i=>{let l=o.selectedKey===i.key;return h.createElement(aH,{key:i.key,ref:l?n:void 0,...l?a:{},id:l?`${a.id}`.replace(/null$/,`${i.key}`):void 0,hidden:l?void 0:!0},e?h.createElement(xf,{vertical:!0},i.props.children):i.props.children)})},Vy=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=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)t(l)};for(let i of e)t(i);let r=null,n=0,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,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 a;this.lastKey=(a=r?.key)!==null&&a!==void 0?a:null}};function iH(e){let{filter:t,layoutDelegate:r}=e,n=Kp(e),o=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=p.useCallback(u=>t?new Vy(t(u)):new Vy(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=lw(e,a,i),s=p.useMemo(()=>new zp(l,n,{layoutDelegate:r}),[l,n,r]);return lH(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function lH(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(b=>{let E=r.current.getItem(b);return E?.type==="item"?E:null}).filter(b=>b!==null),f=[...e.getKeys()].map(b=>{let E=e.getItem(b);return E?.type==="item"?E:null}).filter(b=>b!==null);var n,o;let g=((n=d?.length)!==null&&n!==void 0?n:0)-((o=f?.length)!==null&&o!==void 0?o:0);var a,i,l;let m=Math.min(g>1?Math.max(((a=c?.index)!==null&&a!==void 0?a:0)-g+1,0):(i=c?.index)!==null&&i!==void 0?i:0,((l=f?.length)!==null&&l!==void 0?l:0)-1),y=null,v=!1;for(;m>=0;){if(!t.isDisabled(f[m].key)){y=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(y?y.key:null)}r.current=e},[e,t])}function sH(e){var t;let[r,n]=Ql(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:i,selectionManager:l}=iH({...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?a.getItem(r):null;return{collection:a,disabledKeys:i,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function Iw(e){var t,r;let n=sH({...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:qy(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:a,selectedKey:i}=n,l=p.useRef(i);return p.useEffect(()=>{let s=i;e.selectedKey==null&&(o.isEmpty||s==null||!a.getItem(s))&&(s=qy(a,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 qy(e,t){let r=null;if(e){var n,o,a,i;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)||!((i=e.getItem(r))===null||i===void 0||(a=i.props)===null||a===void 0)&&a.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var Fw=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>Iw({children:n.map(({children:o,id:a,"aria-label":i,title:l})=>h.createElement(WB,{key:a,"aria-label":i,title:typeof l=="function"?h.createElement(l,null):l},typeof o=="function"?h.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t?.(`${o}`),selectedKey:r}),uH=F.div({display:"flex",flexDirection:"column",height:"100%"}),cH=F(Pw)(()=>({flex:1})),dH=F(Dw)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),Lw=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:a={},selected:i,showToolsWhenEmpty:l,tabs:s,tools:u,...c})=>{let d=Fw({defaultSelected:r,onSelectionChange:o,selected:i,tabs:s}),f=n??h.createElement(Pa,{title:"Nothing found"}),g=s.length>0;return!l&&!g?f:h.createElement(uH,{...c},h.createElement(bo,{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,g?h.createElement(dH,{state:d,$simulatedGap:t?.gap??6}):h.createElement("div",null)),g?h.createElement(cH,{state:d,...a}):f)},us=p.createContext(null),ro=p.createContext(null),fH=p.forwardRef(function(e,t){[e,t]=Ze(e,t,us);let{children:r,orientation:n="horizontal"}=e;return r=p.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),h.createElement(U$,{content:r},o=>h.createElement(pH,{props:e,collection:o,tabsRef:t}))});function pH({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=Iw({...e,collection:r,children:void 0}),{focusProps:a,isFocused:i,isFocusVisible:l}=rs({within:!0}),s=p.useMemo(()=>({orientation:n,isFocusWithin:i,isFocusVisible:l}),[n,i,l]),u=vt({...e,defaultClassName:"react-aria-Tabs",values:s}),c=_e(e,{global:!0});return h.createElement("div",{...te(c,u,a),ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0},h.createElement(xr,{values:[[us,e],[ro,o]]},u.children))}var hH=p.forwardRef(function(e,t){return p.useContext(ro)?h.createElement(gH,{props:e,forwardedRef:t}):h.createElement(G$,e)});function gH({props:e,forwardedRef:t}){let r=p.useContext(ro),{CollectionRoot:n}=p.useContext(Ra),{orientation:o="horizontal",keyboardActivation:a="automatic"}=Ap(us),i=Kt(t),{tabListProps:l}=Rw({...e,orientation:o,keyboardActivation:a},r,i),s=vt({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=_e(e,{global:!0});return delete u.id,h.createElement("div",{...te(u,s,l),ref:i,"data-orientation":o||void 0},h.createElement(n,{collection:r.collection,persistedKeys:J$(r.selectionManager.focusedKey)}))}var kw=class extends Tn{};kw.type="item";var mH=as(kw,(e,t,r)=>{let n=p.useContext(ro),o=Kt(t),{tabProps:a,isSelected:i,isDisabled:l,isPressed:s}=Ow({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=rs(),{hoverProps:f,isHovered:g}=yo({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=vt({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:i,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:g}}),y=r.props.href?"a":"div",v=_e(e,{global:!0});return delete v.id,delete v.onClick,h.createElement(y,{...te(v,m,a,u,f),ref:o,"data-selected":i||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":g||void 0},m.children)}),yH=jp(function(e,t){let r=p.useContext(ro),n=Kt(t),{id:o,...a}=e,{tabPanelProps:i}=Aw(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=rs(),c=r.selectedKey===e.id,d=vt({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:N0(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=_e(a,{global:!0});delete f.id;let g=c?te(f,i,l,d):d;return h.createElement("div",{...g,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:N0(!c||e.inert),"data-inert":c?void 0:"true"},h.createElement(xr,{values:[[us,null],[ro,null]]},h.createElement(Ra.Provider,{value:X$},d.children)))});F.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});F.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});F(hH)({display:"flex",flexShrink:0});F.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"}));F(Ee)({flexShrink:0,paddingInline:0,width:16});F(yH)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});F(fH)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));F(mH)(({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 bH=Be`
684
+ from {
685
+ transform: rotate(0deg);
686
+ }
687
+ to {
688
+ transform: rotate(360deg);
689
+ }
690
+ `,vH=F.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:`${bH} 0.7s linear infinite`,mixBlendMode:"difference"})),Yy=F.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),EH=F.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:br(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),SH=F.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),Xy=F.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),xH=F(RA)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),$H=Be`
691
+ from { content: "..." }
692
+ 33% { content: "." }
693
+ 66% { content: ".." }
694
+ to { content: "..." }
695
+ `,wH=F.span({"&::after":{content:"'...'",animation:`${$H} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Nw=({progress:e,error:t,size:r,...n})=>{if(t)return h.createElement(Yy,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},h.createElement(xH,null),h.createElement(Xy,null,t.message));if(e){let{value:o,modules:a}=e,{message:i}=e;return a&&(i+=` ${a.complete} / ${a.total} modules`),h.createElement(Yy,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":i,role:"progressbar",...n},h.createElement(EH,null,h.createElement(SH,{style:{width:`${o*100}%`}})),h.createElement(Xy,null,i,o<1&&h.createElement(wH,{key:i})))}return h.createElement(vH,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},CH=Be({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});F.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));F.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:`${CH} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:uZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.pre`
696
+ line-height: 18px;
697
+ padding: 11px 1rem;
698
+ white-space: pre-wrap;
699
+ background: rgba(0, 0, 0, 0.05);
700
+ color: ${X.darkest};
701
+ border-radius: 3px;
702
+ margin: 1rem 0;
703
+ width: 100%;
704
+ display: block;
705
+ overflow: hidden;
706
+ font-family: ${Nt.fonts.mono};
707
+ font-size: ${Nt.size.s2-1}px;
708
+ `;var Mw=yS;Object.keys(yS).forEach(e=>{p.forwardRef((t,r)=>p.createElement(e,{...t,ref:r}))});const _H=Object.freeze(Object.defineProperty({__proto__:null,A:QE,ActionBar:VO,ActionList:Ri,Bar:bo,Blockquote:eS,Button:Ee,Code:gp,DL:tS,Div:rS,EmptyTabContent:Pa,ErrorFormatter:O$,FlexBar:Wp,Form:_n,H1:nS,H2:mp,H3:yp,H4:oS,H5:aS,H6:iS,HR:lS,IconButton:u$,Img:sS,LI:uS,Link:$a,ListItem:vw,Loader:Nw,OL:cS,P:dS,Popover:Aa,PopoverProvider:Gp,Pre:fS,ResetWrapper:hp,ScrollArea:xf,Select:I$,Separator:Cw,Span:pS,SyntaxHighlighter:xa,TT:hS,TabBar:Vp,TabButton:Da,TabList:Dw,TabPanel:Pw,TabWrapper:$w,Table:gS,Tabs:qp,TabsState:ww,TabsView:Lw,ToggleButton:Oa,Toolbar:_w,Tooltip:yw,TooltipLinkList:Ew,TooltipNote:vS,TooltipProvider:l$,UL:mS,Zoom:T$,codeCommon:Er,components:Mw,convertToReactAriaPlacement:kp,createCopyToClipboardFunction:QL,nameSpaceClassNames:xe,useCopyButton:TA,useTabsState:Fw,withReset:Ce},Symbol.toStringTag,{value:"Module"}));function dt(){return dt=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},dt.apply(null,arguments)}function TH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function da(e,t){return da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},da(e,t)}function OH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,da(e,t)}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yd(e)}function AH(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bw=function(){return!!e})()}function RH(e,t,r){if(Bw())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&da(o,r.prototype),o}function Xd(e){var t=typeof Map=="function"?new Map:void 0;return Xd=function(r){if(r===null||!AH(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 RH(r,arguments,Yd(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),da(n,r)},Xd(e)}var tr=(function(e){OH(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,TH(n)}return t})(Xd(Error));function yc(e){return Math.round(e*255)}function DH(e,t,r){return yc(e)+","+yc(t)+","+yc(r)}function bl(e,t,r,n){if(n===void 0&&(n=DH),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var Jy={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 PH(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Jy[t]?"#"+Jy[t]:e}var IH=/^#[a-fA-F0-9]{6}$/,FH=/^#[a-fA-F0-9]{8}$/,LH=/^#[a-fA-F0-9]{3}$/,kH=/^#[a-fA-F0-9]{4}$/,bc=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,NH=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,MH=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,BH=/^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 no(e){if(typeof e!="string")throw new tr(3);var t=PH(e);if(t.match(IH))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(FH)){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(LH))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(kH)){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=bc.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=NH.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=MH.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+bl(l,s,u)+")",d=bc.exec(c);if(!d)throw new tr(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=BH.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,v="rgb("+bl(g,m,y)+")",b=bc.exec(v);if(!b)throw new tr(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new tr(5)}function jH(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);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:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Ur(e){return jH(no(e))}var HH=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},Jd=HH;function rn(e){var t=e.toString(16);return t.length===1?"0"+t:t}function vc(e){return rn(Math.round(e*255))}function UH(e,t,r){return Jd("#"+vc(e)+vc(t)+vc(r))}function jw(e,t,r){return bl(e,t,r,UH)}function KH(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return jw(e.hue,e.saturation,e.lightness);throw new tr(1)}function zH(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?jw(e.hue,e.saturation,e.lightness):"rgba("+bl(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new tr(2)}function Zd(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Jd("#"+rn(e)+rn(t)+rn(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Jd("#"+rn(e.red)+rn(e.green)+rn(e.blue));throw new tr(6)}function oo(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=no(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Zd(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Zd(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new tr(7)}var GH=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},WH=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},VH=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},qH=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Kr(e){if(typeof e!="object")throw new tr(8);if(WH(e))return oo(e);if(GH(e))return Zd(e);if(qH(e))return zH(e);if(VH(e))return KH(e);throw new tr(8)}function Hw(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Hw(e,t,n)}}function Et(e){return Hw(e,e.length,[])}function YH(e,t){if(t==="transparent")return t;var r=Ur(t);return Kr(dt({},r,{hue:r.hue+parseFloat(e)}))}Et(YH);function vo(e,t,r){return Math.max(e,Math.min(t,r))}function XH(e,t){if(t==="transparent")return t;var r=Ur(t);return Kr(dt({},r,{lightness:vo(0,1,r.lightness-parseFloat(e))}))}var JH=Et(XH),Ko=JH;function ZH(e,t){if(t==="transparent")return t;var r=Ur(t);return Kr(dt({},r,{saturation:vo(0,1,r.saturation-parseFloat(e))}))}Et(ZH);function QH(e,t){if(t==="transparent")return t;var r=Ur(t);return Kr(dt({},r,{lightness:vo(0,1,r.lightness+parseFloat(e))}))}var eU=Et(QH),Qd=eU;function tU(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=no(t),o=dt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=no(r),i=dt({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.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,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return oo(g)}var rU=Et(tU),Uw=rU;function nU(e,t){if(t==="transparent")return t;var r=no(t),n=typeof r.alpha=="number"?r.alpha:1,o=dt({},r,{alpha:vo(0,1,(n*100+parseFloat(e)*100)/100)});return oo(o)}var oU=Et(nU),Ec=oU;function aU(e,t){if(t==="transparent")return t;var r=Ur(t);return Kr(dt({},r,{saturation:vo(0,1,r.saturation+parseFloat(e))}))}Et(aU);function iU(e,t){return t==="transparent"?t:Kr(dt({},Ur(t),{hue:parseFloat(e)}))}Et(iU);function lU(e,t){return t==="transparent"?t:Kr(dt({},Ur(t),{lightness:parseFloat(e)}))}Et(lU);function sU(e,t){return t==="transparent"?t:Kr(dt({},Ur(t),{saturation:parseFloat(e)}))}Et(sU);function uU(e,t){return t==="transparent"?t:Uw(parseFloat(e),"rgb(0, 0, 0)",t)}Et(uU);function cU(e,t){return t==="transparent"?t:Uw(parseFloat(e),"rgb(255, 255, 255)",t)}Et(cU);function dU(e,t){if(t==="transparent")return t;var r=no(t),n=typeof r.alpha=="number"?r.alpha:1,o=dt({},r,{alpha:vo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return oo(o)}var fU=Et(dU),De=fU,pU=F.div(Ce,({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:De(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Kw=e=>h.createElement(pU,{...e,className:"docblock-emptyblock sb-unstyled"}),hU=F(xa)(({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"}})),gU=F.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"})),si=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Ki}`]:{margin:0}})),mU=()=>h.createElement(gU,null,h.createElement(si,null),h.createElement(si,{style:{width:"80%"}}),h.createElement(si,{style:{width:"30%"}}),h.createElement(si,{style:{width:"80%"}})),Ia=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,copyable:i=!0,...l})=>{let{typography:s}=mf();if(e)return h.createElement(mU,null);if(t)return h.createElement(Kw,null,t);let u=h.createElement(hU,{bordered:!0,copyable:i,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...l},n);if(typeof o>"u")return u;let c=o?sn.dark:sn.light;return h.createElement(yf,{theme:Ui({...c,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},yU=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}))),bU=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}))),vU=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}))),zw=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}))),EU=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),Zy=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}))),SU=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:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),xU=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}))),$U=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}))),wU=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}))),CU=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}))),_U=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}))),TU=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}))),OU=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}))),Gw=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}))),AU=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}))),RU=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:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e})));const ef={},Ww=h.createContext(ef);function Yp(e){const t=h.useContext(Ww);return h.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function DU(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(ef):e.components||ef:t=Yp(e.components),h.createElement(Ww.Provider,{value:t},e.children)}const PU=Object.freeze(Object.defineProperty({__proto__:null,MDXProvider:DU,useMDXComponents:Yp},Symbol.toStringTag,{value:"Module"}));function IU(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var a=new RegExp(`
709
+ [ ]{`.concat(Math.min.apply(Math,o),"}"),"g");n=n.map(function(l){return l.replace(a,`
710
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
711
+ `)&&(d=String(l).split(`
712
+ `).map(function(f,g){return g===0?f:"".concat(c).concat(f)}).join(`
713
+ `)),i+=d+n[s+1]}),i}const{once:FU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function LU(e){return e==null||typeof e!="object"&&typeof e!="function"}function kU(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function NU(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function MU(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var BU="[object RegExp]",jU="[object String]",HU="[object Number]",UU="[object Boolean]",KU="[object Arguments]",zU="[object Symbol]",GU="[object Date]",WU="[object Map]",VU="[object Set]",qU="[object Array]",YU="[object ArrayBuffer]",XU="[object Object]",JU="[object DataView]",ZU="[object Uint8Array]",QU="[object Uint8ClampedArray]",eK="[object Uint16Array]",tK="[object Uint32Array]",rK="[object Int8Array]",nK="[object Int16Array]",oK="[object Int32Array]",aK="[object Float32Array]",iK="[object Float64Array]";function jn(e,t,r,n=new Map,o=void 0){let a=o?.(e,t,r,n);if(a!==void 0)return a;if(LU(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=jn(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[l,s]of e)i.set(l,jn(s,l,r,n,o));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let l of e)i.add(jn(l,void 0,r,n,o));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(kU(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=jn(e[l],l,r,n,o);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),Cr(i,e,r,n,o),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),Cr(i,e,r,n,o),i}if(typeof Blob<"u"&&e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),Cr(i,e,r,n,o),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,Cr(i,e,r,n,o),i}if(e instanceof Boolean){let i=new Boolean(e.valueOf());return n.set(e,i),Cr(i,e,r,n,o),i}if(e instanceof Number){let i=new Number(e.valueOf());return n.set(e,i),Cr(i,e,r,n,o),i}if(e instanceof String){let i=new String(e.valueOf());return n.set(e,i),Cr(i,e,r,n,o),i}if(typeof e=="object"&&lK(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),Cr(i,e,r,n,o),i}return e}function Cr(e,t,r=e,n,o){let a=[...Object.keys(t),...NU(t)];for(let i=0;i<a.length;i++){let l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=jn(t[l],l,r,n,o))}}function lK(e){switch(MU(e)){case KU:case qU:case YU:case JU:case UU:case GU:case aK:case iK:case rK:case nK:case oK:case WU:case HU:case XU:case BU:case VU:case jU:case zU:case ZU:case QU:case eK:case tK:return!0;default:return!1}}function sK(e){return jn(e,void 0,e,new Map,void 0)}function uK(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}function on(){return on=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},on.apply(this,arguments)}var cK=["children","options"],Qy=["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"}),eb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},dK=["style","script","pre"],fK=["src","href","data","formAction","srcDoc","action"],pK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,hK=/\n{2,}$/,tb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,gK=/^ *> ?/gm,mK=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,yK=/^ {2,}\n/,bK=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,rb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,nb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,vK=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,EK=/^(?:\n *)*\n/,SK=/\r\n?/g,xK=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,$K=/^\[\^([^\]]+)]/,wK=/\f/g,CK=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,_K=/^\s*?\[(x|\s)\]/,ob=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ab=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ib=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Sc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,TK=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,lb=/^<!--[\s\S]*?(?:-->)/,OK=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,xc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,AK=/^\{.*\}$/,RK=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,DK=/^<([^ >]+[:@\/][^ >]+)>/,PK=/-([a-z])?/gi,sb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,IK=/^[^\n]+(?: \n|\n{2,})/,FK=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LK=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,kK=/^\[([^\]]*)\] ?\[([^\]]*)\]/,NK=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,MK=/\t/g,BK=/(^ *\||\| *$)/g,jK=/^ *:-+: *$/,HK=/^ *:-+ *$/,UK=/^ *-+: *$/,cs=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,ds="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",KK=RegExp(`^([*_])\\1${cs(1)}${ds}\\1\\1(?!\\1)`),zK=RegExp(`^([*_])${cs(0)}${ds}\\1(?!\\1)`),GK=RegExp(`^(==)${cs(0)}${ds}\\1`),WK=RegExp(`^(~~)${cs(0)}${ds}\\1`),VK=/^(:[a-zA-Z0-9-_]+:)/,qK=/^\\([^0-9A-Za-z\s])/,YK=/\\([^0-9A-Za-z\s])/g,XK=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,JK=/^\n+/,ZK=/^([ \t]*)/,QK=/(?:^|\n)( *)$/,Xp="(?:\\d+\\.)",Jp="(?:[*+-])";function Vw(e){return"( *)("+(e===1?Xp:Jp)+") +"}var qw=Vw(1),Yw=Vw(2);function Xw(e){return RegExp("^"+(e===1?qw:Yw))}var ez=Xw(1),tz=Xw(2);function Jw(e){return RegExp("^"+(e===1?qw:Yw)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Xp:Jp)+" )[^\\n]*)*(\\n|$)","gm")}var rz=Jw(1),nz=Jw(2);function Zw(e){let t=e===1?Xp:Jp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var Qw=Zw(1),eC=Zw(2);function ub(e,t){let r=t===1,n=r?Qw:eC,o=r?rz:nz,a=r?ez:tz;return{t:i=>a.test(i),o:ao(function(i,l){let s=QK.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),i:1,u(i,l,s){let u=r?+i[2]:void 0,c=i[0].replace(hK,`
714
+ `).match(o),d=!1;return{items:c.map(function(f,g){let m=a.exec(f)[0].length,y=RegExp("^ {1,"+m+"}","gm"),v=f.replace(y,"").replace(a,""),b=g===c.length-1,E=v.indexOf(`
715
+
716
+ `)!==-1||b&&d;d=E;let S=s.inline,x=s.list,C;s.list=!0,E?(s.inline=!1,C=zo(v)+`
717
+
718
+ `):(s.inline=!0,C=zo(v));let $=l(C,s);return s.inline=S,s.list=x,$}),ordered:r,start:u}},l:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var oz=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),az=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function cb(e){return typeof e=="string"}function zo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Ii(e,t){return e.startsWith(t)}function iz(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Ii(e,r[n]))return!0;return!1}return r(e,t)}function Po(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 lz(e){return UK.test(e)?"right":jK.test(e)?"center":HK.test(e)?"left":null}function db(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;let s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&a.push([]):i+=s}),l(),r.inTable=o,a}function sz(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(BK,"").split("|").map(lz):[],o=e[3]?(function(i,l,s){return i.trim().split(`
719
+ `).map(function(u){return db(u,l,s,!0)})})(e[3],t,r):[],a=db(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function fb(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ao(e){return e.inline=1,e}function Xr(e){return ao(function(t,r){return r.inline?e.exec(t):null})}function _r(e){return ao(function(t,r){return r.inline||r.simple?e.exec(t):null})}function fr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ui(e){return ao(function(t){return e.exec(t)})}var uz=/(javascript|vbscript|data(?!:image)):/i;function cz(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(uz.test(t))return null}catch{return null}return e}function Wt(e){return e&&e.replace(YK,"$1")}function Fi(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function dz(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function fz(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var $c=(e,t,r)=>({children:Fi(t,e[2],r)});function wc(){return{}}function Cc(){return null}function pz(...e){return e.filter(Boolean).join(" ")}function _c(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 hz(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?on({},eb,t.namedCodesToUnicode):eb;let r=t.slugify||Po,n=t.sanitizer||cz,o=t.createElement||p.createElement,a=[tb,rb,nb,t.enforceAtxHeadings?ab:ob,ib,sb,Qw,eC],i=[...a,IK,Sc,lb,xc];function l(b,E){for(let S=0;S<b.length;S++)if(b[S].test(E))return!0;return!1}function s(b,E,...S){let x=_c(t.overrides,b+".props",{});return o((function(C,$){let T=_c($,C);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:_c($,C+".component",C):C})(b,t.overrides),on({},E,x,{className:pz(E?.className,x.className)||void 0}),...S)}function u(b){b=b.replace(CK,"");let E=!1;t.forceInline?E=!0:t.forceBlock||(E=NK.test(b)===!1);let S=y(m(E?b:zo(b).replace(JK,"")+`
720
+
721
+ `,{inline:E}));for(;cb(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;let x=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(x,{key:"outer"},C)}function c(b,E){if(!E||!E.trim())return null;let S=E.match(pK);return S?S.reduce(function(x,C){let $=C.indexOf("=");if($!==-1){let T=(function(_){return _.indexOf("-")!==-1&&_.match(OK)===null&&(_=_.replace(PK,function(N,B){return B.toUpperCase()})),_})(C.slice(0,$)).trim(),O=(function(_){let N=_[0];return(N==='"'||N==="'")&&_.length>=2&&_[_.length-1]===N?_.slice(1,-1):_})(C.slice($+1).trim()),L=Qy[T]||T;if(L==="ref")return x;let I=x[L]=(function(_,N,B,w){return N==="style"?(function(R){let P=[],A="",D=!1,M=!1,k="";if(!R)return P;for(let j=0;j<R.length;j++){let z=R[j];if(z!=='"'&&z!=="'"||D||(M?z===k&&(M=!1,k=""):(M=!0,k=z)),z==="("&&A.endsWith("url")?D=!0:z===")"&&D&&(D=!1),z!==";"||M||D)A+=z;else{let U=A.trim();if(U){let H=U.indexOf(":");if(H>0){let G=U.slice(0,H).trim(),W=U.slice(H+1).trim();P.push([G,W])}}A=""}}let K=A.trim();if(K){let j=K.indexOf(":");if(j>0){let z=K.slice(0,j).trim(),U=K.slice(j+1).trim();P.push([z,U])}}return P})(B).reduce(function(R,[P,A]){return R[P.replace(/(-[a-z])/g,D=>D[1].toUpperCase())]=w(A,_,P),R},{}):fK.indexOf(N)!==-1?w(Wt(B),_,N):(B.match(AK)&&(B=Wt(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(b,T,O,n);typeof I=="string"&&(Sc.test(I)||xc.test(I))&&(x[L]=u(I.trim()))}else C!=="style"&&(x[Qy[C]||C]=!0);return x},{}):null}let d=[],f={},g={0:{t:[">"],o:fr(tb),i:1,u(b,E,S){let[,x,C]=b[0].replace(gK,"").match(mK);return{alert:x,children:E(C,S)}},l(b,E,S){let x={key:S.key};return b.alert&&(x.className="markdown-alert-"+r(b.alert.toLowerCase(),Po),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",x,E(b.children,S))}},1:{t:[" "],o:ui(yK),i:1,u:wc,l:(b,E,S)=>s("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:fr(bK),i:1,u:wc,l:(b,E,S)=>s("hr",{key:S.key})},3:{t:[" "],o:fr(nb),i:0,u:b=>({lang:void 0,text:Wt(zo(b[0].replace(/^ {4}/gm,"")))}),l:(b,E,S)=>s("pre",{key:S.key},s("code",on({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:fr(rb),i:0,u:b=>({attrs:c("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:_r(vK),i:3,u:b=>({text:Wt(b[2])}),l:(b,E,S)=>s("code",{key:S.key},b.text)},6:{t:["[^"],o:fr(xK),i:0,u:b=>(d.push({footnote:b[2],identifier:b[1]}),{}),l:Cc},7:{t:["[^"],o:Xr($K),i:1,u:b=>({target:"#"+r(b[1],Po),text:b[1]}),l:(b,E,S)=>s("a",{key:S.key,href:n(b.target,"a","href")},s("sup",{key:S.key},b.text))},8:{t:["[ ]","[x]"],o:Xr(_K),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,E,S)=>s("input",{checked:b.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:fr(t.enforceAtxHeadings?ab:ob),i:1,u:(b,E,S)=>({children:Fi(E,b[2],S),id:r(b[2],Po),level:b[1].length}),l:(b,E,S)=>s("h"+b.level,{id:b.id,key:S.key},E(b.children,S))},10:{t:b=>{let E=b.indexOf(`
722
+ `);return E>0&&E<b.length-1&&(b[E+1]==="="||b[E+1]==="-")},o:fr(ib),i:1,u:(b,E,S)=>({children:Fi(E,b[1],S),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ui(Sc),i:1,u(b,E,S){let[,x]=b[3].match(ZK),C=RegExp("^"+x,"gm"),$=b[3].replace(C,""),T=l(i,$)?fz:Fi,O=b[1].toLowerCase(),L=dK.indexOf(O)!==-1,I=(L?O:b[1]).trim(),_={attrs:c(I,b[2]),noInnerParse:L,tag:I};if(S.inAnchor=S.inAnchor||O==="a",L)_.text=b[3];else{let N=S.inHTML;S.inHTML=!0,_.children=T(E,$,S),S.inHTML=N}return S.inAnchor=!1,_},l:(b,E,S)=>s(b.tag,on({key:S.key},b.attrs),b.text||(b.children?E(b.children,S):""))},13:{t:["<"],o:ui(xc),i:1,u(b){let E=b[1].trim();return{attrs:c(E,b[2]||""),tag:E}},l:(b,E,S)=>s(b.tag,on({},b.attrs,{key:S.key}))},12:{t:["<!--"],o:ui(lb),i:1,u:()=>({}),l:Cc},14:{t:["!["],o:_r(az),i:1,u:b=>({alt:Wt(b[1]),target:Wt(b[2]),title:Wt(b[3])}),l:(b,E,S)=>s("img",{key:S.key,alt:b.alt||void 0,title:b.title||void 0,src:n(b.target,"img","src")})},15:{t:["["],o:Xr(oz),i:3,u:(b,E,S)=>({children:dz(E,b[1],S),target:Wt(b[2]),title:Wt(b[3])}),l:(b,E,S)=>s("a",{key:S.key,href:n(b.target,"a","href"),title:b.title},E(b.children,S))},16:{t:["<"],o:Xr(DK),i:0,u(b){let E=b[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:(b,E)=>!E.inAnchor&&!t.disableAutoLink&&(Ii(b,"http://")||Ii(b,"https://")),o:Xr(RK),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},20:ub(s,1),33:ub(s,2),19:{t:[`
723
+ `],o:fr(EK),i:3,u:wc,l:()=>`
724
+ `},21:{o:ao(function(b,E){if(E.inline||E.simple||E.inHTML&&b.indexOf(`
725
+
726
+ `)===-1&&E.prevCapture.indexOf(`
727
+
728
+ `)===-1)return null;let S="",x=0;for(;;){let $=b.indexOf(`
729
+ `,x),T=b.slice(x,$===-1?void 0:$+1);if(l(a,T)||(S+=T,$===-1||!T.trim()))break;x=$+1}let C=zo(S);return C===""?null:[S,,C]}),i:3,u:$c,l:(b,E,S)=>s("p",{key:S.key},E(b.children,S))},22:{t:["["],o:Xr(FK),i:0,u:b=>(f[b[1]]={target:b[2],title:b[4]},{}),l:Cc},23:{t:["!["],o:_r(LK),i:0,u:b=>({alt:b[1]?Wt(b[1]):void 0,ref:b[2]}),l:(b,E,S)=>f[b.ref]?s("img",{key:S.key,alt:b.alt,src:n(f[b.ref].target,"img","src"),title:f[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:Xr(kK),i:0,u:(b,E,S)=>({children:E(b[1],S),fallbackChildren:b[0],ref:b[2]}),l:(b,E,S)=>f[b.ref]?s("a",{key:S.key,href:n(f[b.ref].target,"a","href"),title:f[b.ref].title},E(b.children,S)):s("span",{key:S.key},b.fallbackChildren)},25:{t:["|"],o:fr(sb),i:1,u:sz,l(b,E,S){let x=b;return s("table",{key:S.key},s("thead",null,s("tr",null,x.header.map(function(C,$){return s("th",{key:$,style:fb(x,$)},E(C,S))}))),s("tbody",null,x.cells.map(function(C,$){return s("tr",{key:$},C.map(function(T,O){return s("td",{key:O,style:fb(x,O)},E(T,S))}))})))}},27:{o:ao(function(b,E){let S;return Ii(b,":")&&(S=VK.exec(b)),S||XK.exec(b)}),i:4,u(b){let E=b[0];return{text:E.indexOf("&")===-1?E:E.replace(TK,(S,x)=>t.namedCodesToUnicode[x]||S)}},l:b=>b.text},28:{t:["**","__"],o:_r(KK),i:2,u:(b,E,S)=>({children:E(b[2],S)}),l:(b,E,S)=>s("strong",{key:S.key},E(b.children,S))},29:{t:b=>{let E=b[0];return(E==="*"||E==="_")&&b[1]!==E},o:_r(zK),i:3,u:(b,E,S)=>({children:E(b[2],S)}),l:(b,E,S)=>s("em",{key:S.key},E(b.children,S))},30:{t:["\\"],o:_r(qK),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:_r(GK),i:3,u:$c,l:(b,E,S)=>s("mark",{key:S.key},E(b.children,S))},32:{t:["~~"],o:_r(WK),i:3,u:$c,l:(b,E,S)=>s("del",{key:S.key},E(b.children,S))}};t.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);let m=(function(b){var E=Object.keys(b);function S(x,C){var $=[];if(C.prevCapture=C.prevCapture||"",x.trim())for(;x;)for(var T=0;T<E.length;){var O=E[T],L=b[O];if(!L.t||iz(x,C,L.t)){var I=L.o(x,C);if(I&&I[0]){x=x.substring(I[0].length);var _=L.u(I,S,C);C.prevCapture+=I[0],_.type||(_.type=O),$.push(_);break}T++}else T++}return C.prevCapture="",$}return E.sort(function(x,C){return b[x].i-b[C].i||(x<C?-1:1)}),function(x,C){return S((function($){return $.replace(SK,`
730
+ `).replace(wK,"").replace(MK," ")})(x),C)}})(g),y=(function(b,E){return function S(x,C={}){if(Array.isArray(x)){let $=C.key,T=[],O=!1;for(let L=0;L<x.length;L++){C.key=L;let I=S(x[L],C),_=cb(I);_&&O?T[T.length-1]+=I:I!==null&&T.push(I),O=_}return C.key=$,T}return(function($,T,O){let L=b[$.type].l;return E?E(()=>L($,T,O),$,T,O):L($,T,O)})(x,S,C)}})(g,t.renderRule),v=u(e);return d.length?s("div",null,v,s("footer",{key:"footer"},d.map(function(b){return s("div",{id:r(b.identifier,Po),key:b.identifier},b.identifier,y(m(b.footnote,{inline:!0})))}))):v}var tC=e=>{let{children:t,options:r}=e,n=(function(o,a){if(o==null)return{};var i,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)a.indexOf(i=u[l])>=0||(s[i]=o[i]);return s})(e,cK);return p.cloneElement(hz(t??"",r),n)},gz=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"}},"@media (forced-colors: active)":{background:"ButtonFace",outline:"1px solid ButtonText"},"&:focus-within":{outline:`1px solid ${e.color.secondary}`,outlineOffset:1,"@media (forced-colors: active)":{outline:"1px solid Highlight",outlineOffset:1}},input:{...Jo,appearance:"none",left:0,top:0,background:"transparent",cursor:"pointer",borderRadius:"3em"},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:De(.5,e.color.defaultText),background:"transparent","&:active":{boxShadow:`${Ec(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Ec(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8},"@media (forced-colors: active)":{color:"ButtonText",boxShadow:"none"}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Ec(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{forcedColorAdjust:"none",background:"Highlight",color:"HighlightText",boxShadow:"none",outline:"1px solid ButtonText"}}}),mz=F.label(({theme:e})=>gz(e)),yz=e=>e==="true",bz=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onBlur:a,onFocus:i,argType:l,required:s})=>{let u=p.useCallback(()=>o(!1),[o]),c=!!l?.table?.readonly;if(n===void 0)return h.createElement(Ee,{ariaLabel:!1,variant:"outline",size:"medium",id:xl(e,t,r),onClick:u,disabled:c},"Set boolean");let d=jt(e,t,r),f=typeof n=="string"?yz(n):n;return h.createElement(mz,{"aria-disabled":c,htmlFor:d,"aria-label":e},h.createElement("input",{id:d,type:"checkbox",onChange:g=>o(g.target.checked),checked:f,role:"switch",disabled:c,"aria-required":s||void 0,name:e,onBlur:a,onFocus:i}),h.createElement("span",{"aria-hidden":"true"},"False"),h.createElement("span",{"aria-hidden":"true"},"True"))},vz=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},Ez=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},Sz=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}`},xz=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},pb=F(_n.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)"}})),$z=F.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}}),wz=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:a,onBlur:i,argType:l,required:s})=>{let[u,c]=p.useState(!0),d=p.useRef(),f=p.useRef(),g=!!l?.table?.readonly;p.useEffect(()=>{u!==!1&&(d&&d.current&&(d.current.value=n?Sz(n):""),f&&f.current&&(f.current.value=n?xz(n):""))},[n]);let m=b=>{if(!b.target.value)return o();let E=vz(b.target.value),S=new Date(n??"");S.setFullYear(E.getFullYear(),E.getMonth(),E.getDate());let x=S.getTime();x&&o(x),c(!!x)},y=b=>{if(!b.target.value)return o();let E=Ez(b.target.value),S=new Date(n??"");S.setHours(E.getHours()),S.setMinutes(E.getMinutes());let x=S.getTime();x&&o(x),c(!!x)},v=jt(e,t,r);return h.createElement($z,null,h.createElement("legend",{className:"sb-sr-only"},e),h.createElement("label",{htmlFor:`${v}-date`,className:"sb-sr-only"},"Date"),h.createElement(pb,{type:"date",max:"9999-12-31",ref:d,id:`${v}-date`,name:`${v}-date`,readOnly:g,"aria-required":s||void 0,onChange:m,onFocus:a,onBlur:i}),h.createElement("label",{htmlFor:`${v}-time`,className:"sb-sr-only"},"Time"),h.createElement(pb,{type:"time",id:`${v}-time`,name:`${v}-time`,ref:f,onChange:y,readOnly:g,"aria-required":s||void 0,onFocus:a,onBlur:i}),u?null:h.createElement("div",null,"invalid"))},Cz=F.label({display:"flex"}),_z=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},Tz=F(_n.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),Oz=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:a,max:i,step:l,onBlur:s,onFocus:u,argType:c,required:d})=>{let[f,g]=p.useState(typeof n=="number"?n:""),[m,y]=p.useState(!1),[v,b]=p.useState(null),E=!!c?.table?.readonly,S=p.useCallback($=>{g($.target.value);let T=parseFloat($.target.value);if(Number.isNaN(T))b(new Error(`'${$.target.value}' is not a number`));else{let O=T;typeof a=="number"&&O<a&&(O=a),typeof i=="number"&&O>i&&(O=i),o(O),b(null),O!==T&&g(String(O))}},[o,b,a,i]),x=p.useCallback(()=>{g("0"),o(0),y(!0)},[y]),C=p.useRef(null);return p.useEffect(()=>{m&&C.current&&C.current.select()},[m]),p.useEffect(()=>{let $=typeof n=="number"?n:"";f!==$&&g($)},[n]),n===void 0?h.createElement(Ee,{ariaLabel:!1,variant:"outline",size:"medium",id:xl(e,t,r),onClick:x,disabled:E},"Set number"):h.createElement(Cz,null,h.createElement(Tz,{ref:C,id:jt(e,t,r),type:"number",onChange:S,size:"flex",placeholder:"Edit number...",value:f,valid:v?"error":void 0,autoFocus:m,"aria-required":d||void 0,readOnly:E,name:e,min:a,max:i,step:l,onFocus:u,onBlur:s}))};const{logger:Az}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var rC=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},tf=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],nC=(e,t)=>e&&t&&e.map(r=>t[r]),Rz=F.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"}}),Dz=F.span(({$readOnly:e})=>({opacity:e?.5:1})),Pz=F.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),hb=({name:e,storyId:t,controlsId:r,options:n,value:o,onChange:a,isInline:i,argType:l,required:s})=>{if(!n)return Az.warn(`Checkbox with no options: ${e}`),h.createElement(h.Fragment,null,"-");let u=tf(o||[],n),[c,d]=p.useState(u),f=!!l?.table?.readonly,g=y=>{let v=y.target.value,b=[...c];b.includes(v)?b.splice(b.indexOf(v),1):b.push(v),a(nC(b,n)),d(b)};p.useEffect(()=>{d(tf(o||[],n))},[o]);let m=jt(e,t,r);return h.createElement(Rz,{$isInline:i},h.createElement("legend",{className:"sb-sr-only"},e,s?" (required)":""),Object.keys(n).map((y,v)=>{let b=`${m}-${v}`;return h.createElement(Pz,{key:b,htmlFor:b,$readOnly:f},h.createElement("input",{type:"checkbox",disabled:f,id:b,name:b,value:y,onChange:g,checked:c?.includes(y)}),h.createElement(Dz,{$readOnly:f},y))}))};const{logger:Iz}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Fz=F.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"}}),Lz=F.span(({$readOnly:e})=>({opacity:e?.5:1})),kz=F.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),gb=({name:e,storyId:t,controlsId:r,options:n,value:o,onChange:a,isInline:i,argType:l,required:s})=>{if(!n)return Iz.warn(`Radio with no options: ${e}`),h.createElement(h.Fragment,null,"-");let u=rC(o,n),c=jt(e,t,r),d=!!l?.table?.readonly;return h.createElement(Fz,{isInline:i},h.createElement("legend",{className:"sb-sr-only"},e,s?" (required)":""),Object.keys(n).map((f,g)=>{let m=`${c}-${g}`;return h.createElement(kz,{key:m,htmlFor:m,$readOnly:d},h.createElement("input",{type:"radio",id:m,name:c,disabled:d,value:f,onChange:y=>a(n[y.currentTarget.value]),checked:f===u}),h.createElement(Lz,{$readOnly:d},f))}))};const{logger:Nz}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Mz={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},oC=F.select(Mz,({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}}}})),aC=F.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}}})),Tc="Choose option...",Bz=({name:e,storyId:t,controlsId:r,value:n,options:o,onChange:a,argType:i,required:l})=>{let s=f=>{a(o[f.currentTarget.value])},u=rC(n,o)||Tc,c=jt(e,t,r),d=!!i?.table?.readonly;return h.createElement(aC,null,h.createElement(Gw,null),h.createElement("label",{htmlFor:c,className:"sb-sr-only"},e),h.createElement(oC,{disabled:d,id:c,value:u,onChange:s,"aria-required":l||void 0},h.createElement("option",{disabled:u===Tc,key:"no-selection"},Tc),Object.keys(o).map(f=>h.createElement("option",{key:f,value:f},f))))},jz=({name:e,storyId:t,controlsId:r,value:n,options:o,onChange:a,argType:i,required:l})=>{let s=f=>{let g=Array.from(f.currentTarget.options).filter(m=>m.selected).map(m=>m.value);a(nC(g,o))},u=tf(n,o),c=jt(e,t,r),d=!!i?.table?.readonly;return h.createElement(aC,null,h.createElement("label",{htmlFor:c,className:"sb-sr-only"},e),h.createElement(oC,{disabled:d,id:c,multiple:!0,value:u,onChange:s,"aria-required":l||void 0},Object.keys(o).map(f=>h.createElement("option",{key:f,value:f},f))))},mb=e=>{let{name:t,options:r}=e;return r?e.isMulti?h.createElement(jz,{...e}):h.createElement(Bz,{...e}):(Nz.warn(`Select with no options: ${t}`),h.createElement(h.Fragment,null,"-"))},Hz=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>{let o=t!=null&&!Array.isArray(t)&&typeof t[n]=="string"?t[n]:String(n);return r[o]=n,r},{}):e,Uz={check:hb,"inline-check":hb,radio:gb,"inline-radio":gb,select:mb,"multi-select":mb},Pn=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?Hz(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=Uz[t];if(a)return h.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},Kz=F.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}}})),zz=F.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)"}})),Gz=F.div({display:"inline"});function iC({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return h.createElement(Kz,{as:s},h.createElement(zz,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...a},t," :"),h.createElement(Gz,{role:"group",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var Wz="Error",Vz="Object",qz="Array",Yz="String",Xz="Number",Jz="Boolean",Zz="Date",Qz="Null",eG="Undefined",tG="Function",rG="Symbol",lC="ADD_DELTA_TYPE",sC="REMOVE_DELTA_TYPE",uC="UPDATE_DELTA_TYPE",Zp="value";function ln(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 cC(e,t){let r=ln(e),n=ln(t);return(r==="Function"||n==="Function")&&n!==r}var Qp=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(a=>a===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:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.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:a,deep:i}=this.props,l=r&&p.cloneElement(r,{onClick:this.onSubmit}),s=n&&p.cloneElement(n,{onClick:e}),u=o(Zp,a,i),c=p.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=o("key",a,i);d=p.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return h.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};Qp.defaultProps={onlyValue:!1,addButtonElement:h.createElement("button",null,"+"),cancelButtonElement:h.createElement("button",null,"c")};var dC=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,a=n.length;o(n[a-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:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:sC};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:a}=this.props,i=t.length;(o||Promise.resolve.bind(Promise))(i,r,n,e).then(()=>{t[i]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:lC,keyPath:r,deep:n,key:i,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:uC,keyPath:i,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:a,dataType:i,minusMenuElement:l}=this.props,s=a(e,t,r,n,i),u=l&&p.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-collapsed-value"},"[...] ",t.length," ",t.length===1?"item":"items"),!s&&u)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:C}=this.props,$=u(e,t,r,n,c),T=v&&p.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new item to the '${String(e)}' array`}),O=y&&p.cloneElement(y,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"["),!o&&T,h.createElement("ul",{className:"rejt-not-collapsed-list"},t.map((L,I)=>h.createElement(fs,{key:I,name:I.toString(),data:L,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(I),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:C}))),!$&&o&&h.createElement("div",{className:"rejt-add-form"},h.createElement(Qp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:C})),h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"]"),!$&&O)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(iC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};dC.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var fC=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:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,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:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{cC(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:a,originalValue:i,readOnly:l,dataType:s,textareaElementGenerator:u,minusMenuElement:c,keyPath:d=[]}=this.props,f=null,g=null,m=l(e,i,n,o,s);if(r&&!m){let y=u(Zp,d,o,e,i,s),v=p.cloneElement(y,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});f=h.createElement("span",{className:"rejt-edit-form"},v),g=null}else{f=h.createElement("span",{className:"rejt-value",onClick:m?void 0:this.handleEditMode},t);let y=d.at(-1),v=c&&p.cloneElement(c,{onClick:a,className:"rejt-minus-menu","aria-label":`remove the function '${String(e)}'${String(y)?` from '${String(y)}'`:""}`});g=m?null:v}return h.createElement("li",{className:"rejt-value-node"},h.createElement("span",{className:"rejt-name"},e," : "),f,g)}};fC.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};var fs=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:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x}=this.props,C=()=>!0,$=ln(e);switch($){case Wz:return h.createElement(rf,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:C,dataType:$,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x});case Vz:return h.createElement(rf,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:$,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x});case qz:return h.createElement(dC,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:$,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x});case Yz:return h.createElement(Tr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case Xz:return h.createElement(Tr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case Jz:return h.createElement(Tr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case Zz:return h.createElement(Tr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:C,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case Qz:return h.createElement(Tr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case eG:return h.createElement(Tr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});case tG:return h.createElement(fC,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:$,cancelButtonElement:d,textareaElementGenerator:g,minusMenuElement:m,logger:S,onSubmitValueParser:x});case rG:return h.createElement(Tr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:C,dataType:$,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:m,logger:S,onSubmitValueParser:x});default:return null}}};fs.defaultProps={keyPath:[],deep:0};var rf=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,a=n.length;o(n[a-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:a,logger:i}=this.props;(a||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:lC,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:sC};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:a,keyPath:i=[],nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:uC,keyPath:i,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:a,dataType:i,minusMenuElement:l}=this.props,s=Object.getOwnPropertyNames(n),u=a(e,n,t,r,i),c=l&&p.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-collapsed-value"},"{...}"," ",s.length," ",s.length===1?"key":"keys"),!u&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:C}=this.props,$=Object.getOwnPropertyNames(t),T=u(e,t,r,n,c),O=v&&p.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new property to the object '${String(e)}'`}),L=y&&p.cloneElement(y,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`}),I=$.map(_=>h.createElement(fs,{key:_,name:_,data:t[_],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(_),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:C}));return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"{"),!T&&O,h.createElement("ul",{className:"rejt-not-collapsed-list"},I),!T&&a&&h.createElement("div",{className:"rejt-add-form"},h.createElement(Qp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:C})),h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"}"),!T&&L)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(iC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};rf.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var Tr=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:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,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:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{cC(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:a,originalValue:i,readOnly:l,dataType:s,inputElementGenerator:u,minusMenuElement:c,keyPath:d}=this.props,f=l(e,i,n,o,s),g=r&&!f,m=u(Zp,d,o,e,i,s),y=p.cloneElement(m,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),v=n.at(-2),b=c&&p.cloneElement(c,{onClick:a,className:"rejt-minus-menu","aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(v)?` from '${String(v)}'`:""}`});return h.createElement("li",{className:"rejt-value-node"},h.createElement("span",{className:"rejt-name"},e," : "),g?h.createElement("span",{className:"rejt-edit-form"},y):h.createElement("span",{className:"rejt-value",onClick:f?void 0:this.handleEditMode},String(t)),!f&&!g&&b)}};Tr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};function nG(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var pC=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,addButtonElement:a,cancelButtonElement:i,inputElement:l,textareaElement:s,minusMenuElement:u,plusMenuElement:c,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:g,logger:m,onSubmitValueParser:y,fallback:v=null}=this.props,b=ln(e),E=o;ln(o)==="Boolean"&&(E=()=>o);let S=l;l&&ln(l)!=="Function"&&(S=()=>l);let x=s;return s&&ln(s)!=="Function"&&(x=()=>s),b==="Object"||b==="Array"?h.createElement("div",{className:"rejt-tree"},h.createElement(fs,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:E,addButtonElement:a,cancelButtonElement:i,inputElementGenerator:S,textareaElementGenerator:x,minusMenuElement:u,plusMenuElement:c,handleRemove:this.removeRoot,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:g,logger:m??{},onSubmitValueParser:y??(C=>C)})):v}};pC.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>nG(o),inputElement:()=>h.createElement("input",null),textareaElement:()=>h.createElement("textarea",null),fallback:null};var{window:oG}=globalThis,aG=F.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",gap:8,".rejt-tree":{flex:1,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":{color:e.color.secondary,lineHeight:"22px"},".rejt-not-collapsed-list":{listStyle:"none",margin:"0 0 0 1rem",padding:0},".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},".rejt-collapsed-value":{color:e.color.defaultText}})),yb=F.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"})),bb=F.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}}})),vb=F.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}`}})),iG=F(Oa)({alignSelf:"flex-start",order:2,marginRight:-10}),lG=F(_n.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"}})),sG={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},uG=e=>{e.currentTarget.dispatchEvent(new oG.KeyboardEvent("keydown",sG))},cG=e=>{e.currentTarget.select()},Eb=({name:e,storyId:t,controlsId:r,value:n,onChange:o,argType:a,required:i})=>{let l=p.useMemo(()=>n&&sK(n),[n]),s=l!=null,[u,c]=p.useState(!s),d=p.useRef(s),[f,g]=p.useState(null),m=!!a?.table?.readonly,y=p.useCallback(O=>{try{O&&o(JSON.parse(O)),g(null)}catch(L){g(L)}},[o]),[v,b]=p.useState(!1),E=p.useCallback(()=>{o({}),b(!0)},[o,b]);p.useEffect(()=>{!d.current&&s&&u&&!v&&c(!1),d.current=s},[v,s,u]);let S=p.useRef(null);p.useEffect(()=>{v&&S.current&&S.current.select()},[v]);let x=p.useMemo(()=>JSON.stringify(l??"",null,2),[l]);if(!s)return h.createElement(Ee,{ariaLabel:!1,disabled:m,id:xl(e,t,r),onClick:E},"Set object");let C=jt(e,t,r),$=h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:C,className:"sb-sr-only"},"Edit ",e," as JSON"),h.createElement(lG,{ref:S,id:C,minRows:3,name:e,key:x,defaultValue:x,onBlur:O=>y(O.target.value),placeholder:"Edit JSON string...",autoFocus:v,valid:f?"error":void 0,readOnly:m,"aria-required":i||void 0})),T=Array.isArray(n)||typeof n=="object"&&n?.constructor===Object;return h.createElement(aG,null,T&&h.createElement(iG,{disabled:m,pressed:u,ariaLabel:`Edit ${e} as JSON`,onClick:O=>{O.preventDefault(),c(L=>!L)},variant:"ghost",padding:"small",size:"small"},h.createElement(SU,null)),u?$:h.createElement(pC,{readOnly:m||!T,isCollapsed:T?void 0:()=>!0,data:l,rootName:e,onFullyUpdate:o,cancelButtonElement:h.createElement(yb,{type:"button"},"Cancel"),addButtonElement:h.createElement(yb,{type:"submit",primary:!0},"Save"),plusMenuElement:h.createElement(bb,{type:"button"},h.createElement(xU,null)),minusMenuElement:h.createElement(bb,{type:"button"},h.createElement($U,null)),inputElement:(O,L,I,_)=>_?h.createElement(vb,{onFocus:cG,onBlur:uG}):h.createElement(vb,null),fallback:$}))},dG=F.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let a={background:e.base==="light"?`linear-gradient(to right,
731
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
732
+ ${Ko(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
733
+ ${Ko(.02,e.input.background)} 100%)`:`linear-gradient(to right,
734
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
735
+ ${Qd(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
736
+ ${Qd(.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%"},i={borderColor:oo(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 ${oo(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Ko(.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":a,"&::-moz-range-track":a,"&::-ms-track":{...a,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":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-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"}}}}),hC=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),fG=F(hC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),pG=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function hG(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 gG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:a=0,max:i=100,step:l=1,onBlur:s,onFocus:u,argType:c,required:d})=>{let f=b=>{o(_z(b.target.value))},g=n!==void 0,m=p.useMemo(()=>hG(l),[l]),y=!!c?.table?.readonly,v=jt(e,t,r);return h.createElement(pG,{readOnly:y},h.createElement("label",{htmlFor:v,className:"sb-sr-only"},e),h.createElement(hC,null,a),h.createElement(dG,{id:v,type:"range",disabled:y,onChange:f,"aria-required":d||void 0,name:e,min:a,max:i,step:l,onFocus:u,onBlur:s,value:n??a}),h.createElement(fG,{numberOFDecimalsPlaces:m,max:i},g?n.toFixed(m):"--"," / ",i))},mG=F.label({display:"flex"}),yG=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),bG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:a,onBlur:i,maxLength:l,argType:s,required:u})=>{let c=v=>{o(v.target.value)},d=!!s?.table?.readonly,[f,g]=p.useState(!1),m=p.useCallback(()=>{o(""),g(!0)},[g]);if(n===void 0)return h.createElement(Ee,{ariaLabel:!1,variant:"outline",size:"medium",disabled:d,id:xl(e,t,r),onClick:m},"Set string");let y=typeof n=="string";return h.createElement(mG,null,h.createElement(_n.Textarea,{id:jt(e,t,r),maxLength:l,onChange:c,disabled:d,size:"flex",placeholder:"Edit string...",autoFocus:f,"aria-required":u||void 0,valid:y?void 0:"error",name:e,value:y?n:"",onFocus:a,onBlur:i}),l&&h.createElement(yG,{isMaxed:n?.length===l},n?.length??0," / ",l))},vG=F(_n.Input)({padding:10});function EG(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var SG=({onChange:e,name:t,storyId:r,controlsId:n,accept:o="image/*",value:a,argType:i,required:l})=>{let s=p.useRef(null),u=i?.control?.readOnly;function c(f){if(!f.target.files)return;let g=Array.from(f.target.files).map(m=>URL.createObjectURL(m));e(g),EG(a||[])}p.useEffect(()=>{a==null&&s.current&&(s.current.value="")},[a,t]);let d=jt(t,r,n);return h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:d,className:"sb-sr-only"},t),h.createElement(vG,{ref:s,id:d,type:"file",name:t,multiple:!0,disabled:u,onChange:c,accept:o,"aria-required":l||void 0,size:"flex"}))},xG=p.lazy(()=>yr(()=>import("./Color-6AOWCN3U-g9ydbrnJ.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url)),$G=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},h.createElement(xG,{...e})),wG={array:Eb,object:Eb,boolean:bz,color:$G,date:wz,number:Oz,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:gG,text:bG,file:SG},Oc=()=>h.createElement(h.Fragment,null,"-"),CG=({row:e,arg:t,updateArgs:r,isRequired:n,storyId:o,controlsId:a})=>{let{key:i,control:l}=e,[s,u]=p.useState(!1),[c,d]=p.useState({value:t});p.useEffect(()=>{s||d({value:t})},[s,t]);let f=p.useCallback(b=>(d({value:b}),r({[i]:b}),b),[r,i]),g=p.useCallback(()=>u(!1),[]),m=p.useCallback(()=>u(!0),[]);if(!l||l.disable)return l?.disable!==!0&&e?.type?.name!=="function"?h.createElement(h.Fragment,null,h.createElement("span",{className:"sbdocs sbdocs-argcontrol-setup"},h.createElement($a,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls")),h.createElement("span",{className:"sbdocs sbdocs-argcontrol-placeholder"},h.createElement(Oc,null))):h.createElement(Oc,null);let y={name:i,storyId:o,controlsId:a,argType:e,value:c.value,required:n,onChange:f,onBlur:g,onFocus:m},v=wG[l.type]||Oc;return h.createElement(v,{...y,...l,controlType:l.type})},_G=F.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:Er({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),TG=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:h.createElement(h.Fragment,null,h.createElement(_G,null,h.createElement("tbody",null,n&&h.createElement("tr",{key:"deprecated"},h.createElement("td",{colSpan:2},h.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>h.createElement("tr",{key:a.name},h.createElement("td",null,h.createElement("code",null,a.name)),h.createElement("td",null,a.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))};function OG(e){return[...new Set(e)]}var vl=8,Sb=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),AG=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),RG=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),DG=F.span(Er,({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}})),PG=F.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"})),IG=F.button(Er,({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"}})),FG=F.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"}})),LG=F(OU)({marginLeft:4}),kG=F(Gw)({marginLeft:4}),NG=()=>h.createElement("span",null,"-"),eh=({text:e,simple:t})=>h.createElement(DG,{simple:t},e),MG=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return OG(t)},xb=e=>e.slice(0,vl).map(t=>h.createElement(eh,{key:t,text:t===""?'""':t})),BG=e=>e.slice(vl).map(t=>h.createElement(eh,{key:t,text:t===""?'""':t})),jG=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=p.useState(!1),[i,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 h.createElement(eh,{text:s});let u=MG(s),c=u.length;return c>vl?h.createElement(Sb,{isExpanded:i},xb(u),h.createElement(AG,{open:i,onToggle:d=>l(d.currentTarget.open)},h.createElement(RG,null,BG(u)),h.createElement(PG,{role:"button"},i?"Show less...":`Show ${c-vl} more...`))):h.createElement(Sb,null,xb(u))}return h.createElement(Gp,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},hasCloseButton:!0,popover:h.createElement(FG,null,h.createElement(xa,{language:"jsx",format:!1},n))},h.createElement(IG,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(LG,null):h.createElement(kG,null)))},Ac=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(NG,null):h.createElement(jG,{value:e,initialExpandedArgs:t}),HG=F.span({fontWeight:"bold"}),UG=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),KG=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Er({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),zG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?De(.1,e.color.defaultText):De(.2,e.color.defaultText),marginTop:t?4:0})),GG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?De(.1,e.color.defaultText):De(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),WG=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),VG=F.tr({"span.sbdocs-argcontrol-setup":{...Jo},"&:hover, &:focus-within":{"span.sbdocs-argcontrol-setup":{...a1},"span.sbdocs-argcontrol-placeholder":{...Jo}}}),qG=e=>e&&{summary:typeof e=="string"?e:e.name},ci=e=>{let{row:t,updateArgs:r,compact:n,expandable:o,initialExpandedArgs:a,docsLang:i}=e,{name:l,description:s}=t,u=t.table||{},c=u.type||qG(t.type),d=u.defaultValue||t.defaultValue,f=t.type?.required,g=s!=null&&s!=="";return h.createElement(VG,null,h.createElement(WG,{expandable:o??!1},h.createElement(HG,null,l),f?h.createElement(UG,{"aria-hidden":!0,title:"Required"},"*"):null),n?null:h.createElement("td",null,g&&h.createElement(KG,{lang:i},h.createElement(tC,null,s)),u.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(GG,{hasDescription:g},h.createElement(Ac,{value:c,initialExpandedArgs:a})),h.createElement(TG,{tags:u.jsDocTags})):h.createElement(zG,{hasDescription:g},h.createElement(Ac,{value:c,initialExpandedArgs:a}))),n?null:h.createElement("td",null,h.createElement(Ac,{value:d,initialExpandedArgs:a})),r?h.createElement("td",null,h.createElement(CG,{...e,isRequired:!!f})):null)},YG=F.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})),XG=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),JG=({inAddonPanel:e})=>{let[t,r]=p.useState(!0);return p.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(YG,{inAddonPanel:e},h.createElement(Pa,{title:"This story has no controls",description:h.createElement(h.Fragment,null,"Storybook couldn't find or generate any controls for this story. Define"," ",h.createElement("code",null,"args")," or ",h.createElement("code",null,"argTypes"),", or configure docgen to let Storybook generate controls automatically."),footer:h.createElement(XG,null,h.createElement($a,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(zw,null)," Read docs"))}))},ZG=F(_U)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?De(.25,e.color.defaultText):De(.3,e.color.defaultText),border:"none",display:"inline-block"})),QG=F(TU)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?De(.25,e.color.defaultText):De(.3,e.color.defaultText),border:"none",display:"inline-block"})),eW=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),tW=F.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"?De(.4,e.color.defaultText):De(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),rW=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),nW=F.td({position:"relative"}),oW=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Qd(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),$b=F.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"}),Rc=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=p.useState(n),l=e==="subsection"?rW:tW,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(oW,{title:c},h.createElement(l,{colSpan:1},h.createElement($b,{onClick:d=>i(!a),tabIndex:0},c),h.createElement(eW,null,a?h.createElement(ZG,null):h.createElement(QG,null),t)),h.createElement(nW,{colSpan:o-1},h.createElement($b,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},aW=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),di=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ve=F.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}}}),Ie=F.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})),iW=()=>h.createElement(aW,null,h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"})))),lW=F.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}}},"@media (forced-colors: active)":{tbody:{filter:"none","> tr > *":{borderColor:"CanvasText"}}}}})),sW=F.div({position:"relative"}),uW=F.div({position:"absolute",right:22,top:10}),cW=F(Ee)({margin:"-4px -12px -4px 0"}),dW={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},fW=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let c=u.subsections[s]||[];c.push({key:a,...i}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=dW[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},pW=(e,t,r)=>{try{return t4(e,t,r)}catch(n){return FU.warn(n.message),!1}},io=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s,storyId:u,controlsId:c,docsLang:d}=e,{rows:f,args:g,globals:m}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},y=p.useRef(!1),[v,b]=p.useState(!1);p.useEffect(()=>{y.current=!1,b(!1)},[g]);let E=p.useCallback(()=>{!y.current&&r&&(y.current=!0,b(!0),r())},[r]);if("error"in e){let{error:I}=e;return h.createElement(Kw,null,I," ",h.createElement($a,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(zw,null)," Read the docs"))}if(s)return h.createElement(iW,null);let S=fW(uK(f||{},I=>!I?.table?.disable&&pW(I,g||{},m||{})),l),x=S.ungrouped.length===0,C=Object.entries(S.sections).length===0,$=Object.entries(S.ungroupedSubsections).length===0;if(x&&C&&$)return h.createElement(JG,{inAddonPanel:o});let T=1;t&&(T+=1),n||(T+=2);let O=Object.keys(S.sections).length>0,L={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:i,storyId:u,controlsId:c};return h.createElement(hp,null,h.createElement(sW,null,t&&!s&&r&&h.createElement(uW,null,h.createElement(cW,{variant:"ghost",padding:"small",onClick:E,disabled:v,ariaLabel:v?"Resetting controls...":"Reset controls",lang:"en"},h.createElement(AU,null))),h.createElement(lW,{compact:n,inAddonPanel:o,inTabPanel:a,className:"docblock-argstable sb-unstyled",lang:"en"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement("span",null,"Control")):null)),h.createElement("tbody",{className:"docblock-argstable-body"},S.ungrouped.map(I=>h.createElement(ci,{key:I.key,row:I,arg:g&&g[I.key],docsLang:d,...L})),Object.entries(S.ungroupedSubsections).map(([I,_])=>h.createElement(Rc,{key:I,label:I,level:"subsection",colSpan:T},_.map(N=>h.createElement(ci,{key:N.key,row:N,arg:g&&g[N.key],expandable:O,...L})))),Object.entries(S.sections).map(([I,_])=>h.createElement(Rc,{key:I,label:I,level:"section",colSpan:T},_.ungrouped.map(N=>h.createElement(ci,{key:N.key,row:N,arg:g&&g[N.key],...L})),Object.entries(_.subsections).map(([N,B])=>h.createElement(Rc,{key:N,label:N,level:"subsection",colSpan:T},B.map(w=>h.createElement(ci,{key:w.key,row:w,arg:g&&g[w.key],expandable:O,...L}))))))))))},Fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,th=600,hW=F.h1(({theme:e})=>({...Ce({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${th}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),gW=F.h2(({theme:e})=>({...Ce({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${th}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:De(.25,e.color.defaultText)})),mW=F.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"?De(.1,e.color.defaultText):De(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,flex:1,[Fe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[Fe("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}},[Fe("div")]:t,[Fe("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}},[Fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Fe("img")]:{maxWidth:"100%"},[Fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Fe("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"}},[Fe("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"}}},[Fe("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}},[Fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),yW=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 40px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${th}px)`]:{}})),bW=({children:e,toc:t,lang:r="en"})=>h.createElement(yW,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(mW,{className:"sbdocs sbdocs-content",lang:r},e));const{logger:vW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var gC=typeof document<"u"?h.useLayoutEffect:()=>{},mC={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=h.createContext(mC),EW=h.createContext(!1),Dc=new WeakMap;function SW(e=!1){let t=p.useContext(yC),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__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(a){let i=Dc.get(a);i==null?Dc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Dc.delete(a))}r.current=++t.current}return r.current}function xW(e){let t=p.useContext(yC),r=SW(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function $W(e){let t=h.useId(),[r]=p.useState(OW()),n=r?"react-aria":`react-aria${mC.prefix}`;return e||`${n}-${t}`}var wW=typeof h.useId=="function"?$W:xW;function CW(){return!1}function _W(){return!0}function TW(e){return()=>{}}function OW(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(TW,CW,_W):p.useContext(EW)}var AW=!!(typeof window<"u"&&window.document&&window.document.createElement),Li=new Map,Bo;typeof FinalizationRegistry<"u"&&(Bo=new FinalizationRegistry(e=>{Li.delete(e)}));function bC(e){let[t,r]=p.useState(e),n=p.useRef(null),o=wW(t),a=p.useRef(null);if(Bo&&Bo.register(a,o),AW){let i=Li.get(o);i&&!i.includes(n)?i.push(n):Li.set(o,[n])}return gC(()=>{let i=o;return()=>{Bo&&Bo.unregister(a),Li.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function RW(e){if(DW())e.focus({preventScroll:!0});else{let t=PW(e);e.focus(),IW(t)}}var fi=null;function DW(){if(fi==null){fi=!1;try{document.createElement("div").focus({get preventScroll(){return fi=!0,!0}})}catch{}}return fi}function PW(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 IW(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function rh(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 vC(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 Fa(e){let t=null;return()=>(t==null&&(t=e()),t)}var nf=Fa(function(){return vC(/^Mac/i)}),FW=Fa(function(){return vC(/^iPad/i)||nf()&&navigator.maxTouchPoints>1}),LW=Fa(function(){return rh(/AppleWebKit/i)&&!kW()}),kW=Fa(function(){return rh(/Chrome/i)}),NW=Fa(function(){return rh(/Firefox/i)});p.createContext({isNative:!0,open:BW,useHref:e=>e});function El(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;NW()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(nf()?a=!0:i=!0);let u=LW()&&nf()&&!FW()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});El.isOpening=r,RW(e),e.dispatchEvent(u),El.isOpening=!1}El.isOpening=!1;function MW(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 BW(e,t){MW(e,r=>El(r,t))}var Io=new Map,wb=new Set;function Cb(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Io.get(n.target);o||(o=new Set,Io.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=Io.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Io.delete(n.target)),Io.size===0)){for(let a of wb)a();wb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cb():document.addEventListener("DOMContentLoaded",Cb));var Pc;Pc=h.useInsertionEffect;var Ic;typeof document<"u"&&((Ic=h.useInsertionEffect)!==null&&Ic!==void 0||h.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=p.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var ot=globalThis?globalThis.__DOCS_CONTEXT__:p.createContext(null);const{InvalidBlockOfPropError:jW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function HW(e,t){let r=UW([e],t);return r&&r[0]}function UW(e,t){let[r,n]=p.useState({});return p.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var KW=Symbol("mdxWrappedBlock"),_b=h.createContext(null),Qe=(e,t)=>{let r=n=>{let o=h.useContext(_b),a=Yp()[e];if(o?.has(e)||a===r)return h.createElement(t,{...n});if(a){let i=new Set(o??[]);return i.add(e),h.createElement(_b.Provider,{value:i},h.createElement(a,{...n}))}return h.createElement(t,{...n})};return r.displayName=e,r[KW]=!0,r},EC=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new jW;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},zW=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},GW=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=p.useContext(ot),r=EC(e,t),n=HW(r,t);if(!n)return h.createElement($C,null);let o=zW(e,n,t);return o?h.createElement(ZW,{...o}):null},WW=Qe("Story",GW),ps=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}`}),SC=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),a=new URLSearchParams(o||"");return Object.entries(t).forEach(([i,l])=>{a.set(i,l)}),a.set("id",e),`${n}?${a.toString()}`},{window:VW}=globalThis,qW=class extends p.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=VW.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,...a}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},xC=p.createContext({scale:1}),of=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,YW=e=>{let t=p.useRef(),[r,n]=p.useState(!0),[o,a]=p.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return p.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:g,description:m})=>a(new Error(`${g} - ${m}`)),showException:g=>a(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),o?h.createElement("pre",null,h.createElement(O$,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${of(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement($C,null),h.createElement("div",{ref:t,id:`${of(e)}-inner`,"data-name":i.name,lang:i.parameters?.htmlLang||"en"}))},XW=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(xC.Consumer,null,({scale:r})=>h.createElement(qW,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:SC(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),JW=F.strong(({theme:e})=>({color:e.color.orange})),ZW=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(JW,null,"This story mounts inside of play. Set"," ",h.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):h.createElement("div",{id:of(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(YW,{...e}):h.createElement(XW,{...e}))},$C=()=>h.createElement(Nw,null),QW=F(_w)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Fc=F.div({display:"flex",alignItems:"center",gap:4}),Tb=F.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`})),eV=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...a})=>h.createElement(QW,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},lang:"en",...a},h.createElement(Fc,{key:"left"},e?[1,2,3].map(i=>h.createElement(Tb,{key:i})):h.createElement(h.Fragment,null,o&&h.createElement(Ee,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},h.createElement(RU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomin",onClick:i=>{i.preventDefault(),r(.8)},ariaLabel:"Zoom in"},h.createElement(yU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomout",onClick:i=>{i.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},h.createElement(bU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomreset",onClick:i=>{i.preventDefault(),n()},ariaLabel:"Reset zoom"},h.createElement(vU,null)))),e?h.createElement(Fc,{key:"right"},h.createElement(Tb,null)):t&&h.createElement(Fc,{key:"right"},h.createElement(Ee,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},h.createElement("a",{href:SC(t),target:"_blank",rel:"noopener noreferrer"},h.createElement(CU,null))))),tV=F.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)`}}:{}),rV=F(bo)({marginTop:-40,marginBottom:40}),nV=F(Ia)(({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)":Ko(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ko(.05,e.background.content)}})),oV=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...ps(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function aV(e){if(p.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var iV=F(eV)({position:"absolute",top:0,left:0,right:0,height:40}),lV=2e3,wC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...f})=>{let[g,m]=p.useState(i),[y,v]=p.useState(null),[b,E]=p.useState(1),S=p.useMemo(()=>l?[...l]:[],[l]),x=bC(),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),$=p.useContext(ot),T=p.useCallback(async N=>{let{createCopyToClipboardFunction:B}=await yr(async()=>{const{createCopyToClipboardFunction:w}=await Promise.resolve().then(()=>_H);return{createCopyToClipboardFunction:w}},void 0,import.meta.url);await B()(N)},[]),O=p.useCallback(async()=>{try{await T(o?.code??""),v("Copied!")}catch(N){vW.error(N),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),lV)},[T,o?.code]),L=aV(n),I=!!(o&&o.error),_=!!(o&&!o.error);return h.createElement(h.Fragment,null,h.createElement(oV,{withSource:o,withToolbar:a,...f,className:C.join(" ")},a&&h.createElement(iV,{isLoading:e,border:!0,zoom:N=>E(b*N),resetZoom:()=>E(1),storyId:!e&&L?EC(L,$):void 0,onReloadStory:d}),h.createElement(xC.Provider,{value:{scale:b}},h.createElement(tV,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},h.createElement(T$.Element,{centered:u==="centered",scale:c?b:1},Array.isArray(n)?n.map((N,B)=>h.createElement("div",{key:B},N)):h.createElement("div",null,n)))),_&&g&&h.createElement("div",{id:x},h.createElement(nV,{...o,dark:!0,copyable:!1}))),(o||S.length>0)&&h.createElement(rV,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},I&&h.createElement(Ee,{lang:"en",ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},h.createElement(Zy,null)," No code available"),_&&h.createElement(h.Fragment,null,h.createElement(Oa,{lang:"en",ariaLabel:!1,pressed:g,"aria-expanded":g,"aria-controls":x,onClick:()=>m(!g),variant:"ghost",className:`docblock-code-toggle${g?" docblock-code-toggle--expanded":""}`},h.createElement(Zy,null)," ",g?"Hide code":"Show code"),h.createElement(Ee,{lang:"en",ariaLabel:!1,variant:"ghost",onClick:O},h.createElement(EU,null)," ",y??"Copy code")),S.map(({title:N,ariaLabel:B,className:w,onClick:R,disabled:P},A)=>h.createElement(Ee,{key:A,ariaLabel:B??!1,className:w,onClick:R,disabled:!!P,variant:"ghost"},N))))};F(wC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var sV=F(Lw)({height:"fit-content"}),CC=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return h.createElement(io,{...r[0][1],...t});let n=r.map(([o,a],i)=>{let l=i===0?t:{sort:t.sort,docsLang:t.docsLang};return{id:`prop_table_div_${o}`,title:o,children:h.createElement(io,{inTabPanel:!0,...a,...l})}});return h.createElement(sV,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?De(.4,e.color.defaultText):De(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ce,({theme:e})=>({...ps(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:De(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:De(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...ps(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"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:De(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.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"}));F.div(({theme:e})=>({...ps(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:uV}=__STORYBOOK_MODULE_CORE_EVENTS__;function cV(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(I,_){let N=_.appendChild(c(I));if(I.children.length){let B=d(I.isCollapsed);I.children.forEach(w=>{s(w,B)}),N.appendChild(B)}}function u(I,_){let N=d(!1);if(_.forEach(B=>{s(B,N)}),a=I||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(N)}function c(I){let _=document.createElement("li"),N=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(N.onclick=e.onClick),e.includeTitleTags&&N.setAttribute("title",I.textContent),e.includeHtml&&I.childNodes.length?t.call(I.childNodes,B=>{N.appendChild(B.cloneNode(!0))}):N.textContent=I.textContent,N.setAttribute("href",`${e.basePath}#${I.id}`),N.setAttribute("class",`${e.linkClass+o}node-name--${I.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(N),_}function d(I){let _=e.orderedList?"ol":"ul",N=document.createElement(_),B=e.listClass+o+e.extraListClasses;return I&&(B=B+o+e.collapsibleClass,B=B+o+e.isCollapsedClass),N.setAttribute("class",B),N}function f(){let I=T(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),I>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function g(I){let _=0;return I!==null&&(_=I.offsetTop,e.hasInnerContainers&&(_+=g(I.offsetParent))),_}function m(I,_){return I&&I.className!==_&&(I.className=_),I}function y(I,_){e.positionFixedSelector&&f();let N=I,B=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,w=B&&B.charAt(0)==="#"?x(B.replace("#","")):!1,R=i||w;if(_&&l<5&&l++,R&&a&&N.length>0){let P=O(N),A=a.querySelector(`.${e.activeLinkClass}`),D=P.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),M=window.location.hash.replace("#",""),k=D,K=C();B&&w?k=B.replace("#",""):M&&M!==D&&K&&(x(D)||l<=2)&&(k=M);let j=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${k}"]`);if(A===j)return;let z=a.querySelectorAll(`.${e.linkClass}`);t.call(z,W=>{m(W,W.className.replace(o+e.activeLinkClass,""))});let U=a.querySelectorAll(`.${e.listItemClass}`);t.call(U,W=>{m(W,W.className.replace(o+e.activeListItemClass,""))}),j&&j.className.indexOf(e.activeLinkClass)===-1&&(j.className+=o+e.activeLinkClass);let H=j?.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=o+e.activeListItemClass);let G=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(G,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=o+e.isCollapsedClass)}),j?.nextSibling&&j.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(j.nextSibling,j.nextSibling.className.replace(o+e.isCollapsedClass,"")),v(j?.parentNode.parentNode)}}function v(I){return I&&I.className.indexOf(e.collapsibleClass)!==-1&&I.className.indexOf(e.isCollapsedClass)!==-1?(m(I,I.className.replace(o+e.isCollapsedClass,"")),v(I.parentNode.parentNode)):I}function b(I){let _=I.target||I.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function E(){i=!0}function S(){return i}function x(I){let _=$();return(document?.getElementById(I)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function C(){let I=$(),_=I.scrollHeight>I.clientHeight,N=T()+I.clientHeight>I.offsetHeight-e.bottomModeThreshold;return _&&N}function $(){let I;return e.scrollContainer&&document.querySelector(e.scrollContainer)?I=document.querySelector(e.scrollContainer):I=document.documentElement||n,I}function T(){return $()?.scrollTop||0}function O(I,_=T()){let N;return r.call(I,(B,w)=>{if(g(B)>_+e.headingsOffset+10){let R=w===0?w:w-1;return N=I[R],!0}if(w===I.length-1)return N=I[I.length-1],!0}),N}function L(I){let _=T(),N=O(I,_),B=C();if((!N||_<5)&&!B)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(N&&!B){let w=`#${N.id}`;window.location.hash!==w&&window.history.pushState(null,null,w)}}return{enableTocAnimation:E,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:O,getScrollTop:T,updateUrlHashForHeader:L}}var dV={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 fV(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 a(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 i(u,c){let d=a(u),f=d.headingLevel,g=c,m=r(g),y=m?m.headingLevel:0,v=f-y;for(;v>0&&(m=r(g),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(g=m.children),v--;return f>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}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=a(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function pV(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(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||hV(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(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 hV(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("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function d(f,g,m,y){return f/=y/2,f<1?m/2*f*f+g:(f--,-m/2*(f*(f-2)-1)+g)}}function gV(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 oe={},Pt,Lc,Jr,Ft,Go;function _C(e){let t=!1;oe=bV(dV,e||{}),oe.scrollSmooth&&(oe.duration=oe.scrollSmoothDuration,oe.offset=oe.scrollSmoothOffset,pV(oe)),Pt=cV(oe),Lc=fV(oe),nh();let r=EV(oe);if(r===null)return;let n=TC(oe);if(n===null||(Jr=Lc.selectHeadings(r,oe.headingSelector),Jr===null))return;let o=Lc.nestHeadingsArray(Jr).nest;if(!oe.skipRendering)Pt.render(n,o);else return this;let a=!1,i=oe.scrollHandlerTimeout||oe.throttleTimeout;Ft=((s,u)=>vV(s,u,oe.scrollHandlerType))(s=>{Pt.updateToc(Jr,s),!oe.disableTocScrollSync&&!a&&gV(oe),oe.enableUrlHashUpdateOnScroll&&t&&Pt.getCurrentlyHighlighting()&&Pt.updateUrlHashForHeader(Jr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Pt.updateToc(Jr),oe.scrollEndCallback?.(s))},i),t||(Ft(),t=!0),window.onhashchange=window.onscrollend=s=>{Ft(s)},oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).addEventListener("scroll",Ft,!1),document.querySelector(oe.scrollContainer).addEventListener("resize",Ft,!1)):(document.addEventListener("scroll",Ft,!1),document.addEventListener("resize",Ft,!1));let l=null;Go=af(s=>{a=!0,oe.scrollSmooth&&Pt.disableTocAnimation(s),Pt.updateToc(Jr,s),l&&clearTimeout(l),l=setTimeout(()=>{Pt.enableTocAnimation()},oe.scrollSmoothDuration),setTimeout(()=>{a=!1},oe.scrollSmoothDuration+100)},oe.throttleTimeout),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?document.querySelector(oe.scrollContainer).addEventListener("click",Go,!1):document.addEventListener("click",Go,!1)}function nh(){let e=TC(oe);e!==null&&(oe.skipRendering||e&&(e.innerHTML=""),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).removeEventListener("scroll",Ft,!1),document.querySelector(oe.scrollContainer).removeEventListener("resize",Ft,!1),Pt&&document.querySelector(oe.scrollContainer).removeEventListener("click",Go,!1)):(document.removeEventListener("scroll",Ft,!1),document.removeEventListener("resize",Ft,!1),Pt&&document.removeEventListener("click",Go,!1)))}function mV(e){nh(),_C(e||oe)}var yV=Object.prototype.hasOwnProperty;function bV(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)yV.call(n,o)&&(t[o]=n[o])}return t}function af(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function Ob(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function vV(e,t,r="auto"){switch(r){case"debounce":return Ob(e,t);case"throttle":return af(e,t);default:return t<334?Ob(e,t):af(e,t)}}function EV(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function TC(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var SV={destroy:nh,init:_C,refresh:mV},Ab=SV,xV=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),$V=F.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"}})),wV=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),CV=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(wV,{as:"h2",id:e,className:t?"":"sb-sr-only",lang:t?void 0:"en"},t||"Table of contents"):h.createElement("div",{id:e},t),_V=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,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&&i.emit(uV,`#${f}`)}},...a},c=setTimeout(()=>Ab.init(u),100);return()=>{clearTimeout(c),Ab.destroy()}},[i,t,o,n,r,a]);let s="table-of-contents";return h.createElement(xV,{className:l},t?null:h.createElement($V,{"aria-labelledby":s},h.createElement(CV,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))},TV=e=>`anchor--${e}`,OV=({storyId:e,children:t})=>h.createElement("div",{id:TV(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:AV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:Rb}=__STORYBOOK_MODULE_PREVIEW_API__,{getService:RV}=__STORYBOOK_MODULE_PREVIEW_API__;function DV(e,t){let r=t(),[{inst:n},o]=p.useState({inst:{value:r,getSnapshot:t}});return p.useLayoutEffect(()=>{n.value=r,n.getSnapshot=t,kc(n)&&o({inst:n})},[e,r,t]),p.useEffect(()=>(kc(n)&&o({inst:n}),e(()=>{kc(n)&&o({inst:n})})),[e]),r}function kc(e){let t=e.getSnapshot,r=e.value;try{let n=t();return!Object.is(r,n)}catch{return!0}}function OC(e,t,r,n){let o=p.useRef(void 0);(o.current?.key!==e||o.current.selector!==n)&&(o.current={key:e,selector:n,state:n?Kh(t,r,n):Kh(t,r)});let a=p.useRef(r);a.current=r;let i=p.useCallback(s=>{let u=c=>{o.current={key:e,selector:n,state:c},s()};return n?t.subscribe(a.current,n,u):t.subscribe(a.current,u)},[t,e,n]),l=p.useCallback(()=>o.current.state,[]);return DV(i,l)}function AC(e){let t=RV("core/docgen");return OC(e,t.queries.docgen,{id:e})}function RC(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function DC(e,t){return Object.fromEntries(Object.entries(e||{}).map(([r,n])=>[r,RC(n,t)]))}function PC({componentId:e,storyId:t,parameters:r,initialArgs:n,customArgTypes:o}){let{data:a,isInitialLoading:i}=AC(e);return a?{rows:{serviceComponentName:a.name,mainRows:x_({payload:a,storyId:t??e,parameters:r,initialArgs:n,customArgTypes:o}),subcomponentRows:S_(a)},isInitialLoading:i}:{rows:null,isInitialLoading:i}}var On=(e,t)=>p.useContext(ot).resolveOf(e,t),PV=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),hs=e=>{if(e)return typeof e=="string"?e.includes("-")?PV(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function IV(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function IC(e){let{of:t}=e;if("of"in e&&t===void 0)throw new AV;let r=p.useContext(ot),n=On(t||"meta"),o;if(n.type==="component"){let{component:i,projectAnnotations:{parameters:l}}=n;o={parameters:l,componentId:r.getComponentId(i),argTypes:RC(i,l),component:i}}else if(n.type==="meta"){let{id:i,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.preparedMeta;o={parameters:s,componentId:i.split("--")[0],initialArgs:u,argTypes:l,component:c,subcomponents:d}}else{let{id:i,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.story;o={parameters:s,componentId:i.split("--")[0],storyId:i,initialArgs:u,argTypes:l,component:c,subcomponents:d}}let a=o.parameters?.docs?.argTypes||{};return{...o,filterProps:{include:e.include??a.include,exclude:e.exclude??a.exclude,sort:e.sort??a.sort}}}function FC({mainName:e="Main",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:a,docsLang:i}){let l=Rb(t,n,o);if(Object.keys(r).length===0)return h.createElement(io,{rows:l,sort:a,docsLang:i});let s={[e]:{rows:l,sort:a},...Object.fromEntries(Object.entries(r).map(([u,c])=>[u,{rows:Rb(c,n,o),sort:a}]))};return h.createElement(CC,{tabs:s,sort:a,docsLang:i})}var FV=e=>{let{argTypes:t,parameters:r,component:n,subcomponents:o,filterProps:a}=IC(e);return t?FC({mainName:hs(n),mainRows:t,subcomponentRows:DC(o,r),docsLang:r?.docs?.lang,...a}):null},LV=e=>{let{argTypes:t,parameters:r,componentId:n,storyId:o,initialArgs:a,filterProps:i,component:l}=IC(e),{rows:s,isInitialLoading:u}=PC({componentId:n,storyId:o,parameters:r,initialArgs:a,customArgTypes:t});return u?h.createElement(io,{isLoading:!0}):s?FC({mainName:hs(l)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,docsLang:r?.docs?.lang,...i}):null},kV=e=>globalThis.FEATURES?.experimentalDocgenServer?h.createElement(LV,{...e}):h.createElement(FV,{...e});Qe("ArgTypes",kV);const{FORCE_REMOUNT:NV}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:MV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:BV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var jV=Object.create,LC=Object.defineProperty,HV=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,UV=Object.getPrototypeOf,KV=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[kC(e)[0]])((t={exports:{}}).exports,t),t.exports},zV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!KV.call(e,o)&&o!==r&&LC(e,o,{get:()=>t[o],enumerable:!(n=HV(t,o))||n.enumerable});return e},oh=(e,t,r)=>(r=e!=null?jV(UV(e)):{},zV(!e||!e.__esModule?LC(r,"default",{value:e,enumerable:!0}):r,e)),GV=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],WV=["detail"];function VV(e){let t=GV.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of WV.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var NC=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),qV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),YV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),XV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),JV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),ZV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),ah=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),QV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),eq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),tq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),rq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),nq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),oq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),aq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),iq=ne({"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}}}),lq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=iq();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),sq=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ih=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=sq();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),uq=ne({"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}}),MC=ne({"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 a=42;r[n]=a;for(var i 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!==a||s.enumerable!==!0)return!1}return!0}}}),BC=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=MC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),jC=ne({"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}}),HC=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=NC();t.exports=r.getPrototypeOf||null}}),cq=ne({"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,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=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)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,g=function(){if(this instanceof f){var E=c.apply(this,i(d,arguments));return Object(E)===E?E:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],v=0;v<m;v++)y[v]="$"+v;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),gs=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=cq();t.exports=Function.prototype.bind||r}}),lh=ne({"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}}),UC=ne({"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}}),dq=ne({"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}}),fq=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=gs(),n=UC(),o=lh(),a=dq();t.exports=a||r.call(o,n)}}),KC=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=gs(),n=ah(),o=lh(),a=fq();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),pq=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=KC(),n=ih(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),hq=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=jC(),n=HC(),o=pq();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),zC=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=gs();t.exports=o.call(r,n)}}),gq=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=NC(),o=qV(),a=YV(),i=XV(),l=JV(),s=ZV(),u=ah(),c=QV(),d=eq(),f=tq(),g=rq(),m=nq(),y=oq(),v=aq(),b=lq(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=ih(),C=uq(),$=function(){throw new u},T=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,O=BC()(),L=hq(),I=HC(),_=jC(),N=UC(),B=lh(),w={},R=typeof Uint8Array>"u"||!L?r:L(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%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%":a,"%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%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!L?r:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&L?L(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":R,"%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%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(L)try{null.error}catch(Z){A=L(L(Z)),P["%Error.prototype%"]=A}var A,D=function Z(V){var Y;if(V==="%AsyncFunction%")Y=S("async function () {}");else if(V==="%GeneratorFunction%")Y=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")Y=S("async function* () {}");else if(V==="%AsyncGenerator%"){var ee=Z("%AsyncGeneratorFunction%");ee&&(Y=ee.prototype)}else if(V==="%AsyncIteratorPrototype%"){var se=Z("%AsyncGenerator%");se&&L&&(Y=L(se.prototype))}return P[V]=Y,Y},M={__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"]},k=gs(),K=zC(),j=k.call(B,Array.prototype.concat),z=k.call(N,Array.prototype.splice),U=k.call(B,String.prototype.replace),H=k.call(B,String.prototype.slice),G=k.call(B,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,ge=function(Z){var V=H(Z,0,1),Y=H(Z,-1);if(V==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ee=[];return U(Z,W,function(se,et,J,tt){ee[ee.length]=J?U(tt,q,"$1"):et||se}),ee},Ne=function(Z,V){var Y=Z,ee;if(K(M,Y)&&(ee=M[Y],Y="%"+ee[0]+"%"),K(P,Y)){var se=P[Y];if(se===w&&(se=D(Y)),typeof se>"u"&&!V)throw new u("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:ee,name:Y,value:se}}throw new s("intrinsic "+Z+" does not exist!")};t.exports=function(Z,V){if(typeof Z!="string"||Z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new u('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ge(Z),ee=Y.length>0?Y[0]:"",se=Ne("%"+ee+"%",V),et=se.name,J=se.value,tt=!1,Rt=se.alias;Rt&&(ee=Rt[0],z(Y,j([0,1],Rt)));for(var pt=1,Dt=!0;pt<Y.length;pt+=1){var Pe=Y[pt],ar=H(Pe,0,1),ir=H(Pe,-1);if((ar==='"'||ar==="'"||ar==="`"||ir==='"'||ir==="'"||ir==="`")&&ar!==ir)throw new s("property names with quotes must have matching quotes");if((Pe==="constructor"||!Dt)&&(tt=!0),ee+="."+Pe,et="%"+ee+"%",K(P,et))J=P[et];else if(J!=null){if(!(Pe in J)){if(!V)throw new u("base intrinsic for "+Z+" exists, but the property is not available.");return}if(x&&pt+1>=Y.length){var lr=x(J,Pe);Dt=!!lr,Dt&&"get"in lr&&!("originalValue"in lr.get)?J=lr.get:J=J[Pe]}else Dt=K(J,Pe),J=J[Pe];Dt&&!tt&&(P[et]=J)}}return J}}}),sh=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=gq(),n=KC(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),mq=ne({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=MC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),GC=ne({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=sh(),n=mq()(),o=zC(),a=ih(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var m=a(g,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(g,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),yq=ne({"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 a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),bq=ne({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=sh(),n=GC(),o=r("RegExp.prototype.exec"),a=ah();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),vq=ne({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=sh(),n=r("Object.prototype.toString"),o=BC()(),a=bq();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(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 i,l,s}}),Eq=oh(GC()),Sq=oh(yq()),xq=oh(vq());function $q(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var wq=typeof global=="object"&&global&&global.Object===Object&&global,Cq=wq,_q=typeof self=="object"&&self&&self.Object===Object&&self,Tq=Cq||_q||Function("return this")(),uh=Tq,Oq=uh.Symbol,lo=Oq,WC=Object.prototype,Aq=WC.hasOwnProperty,Rq=WC.toString,Fo=lo?lo.toStringTag:void 0;function Dq(e){var t=Aq.call(e,Fo),r=e[Fo];try{e[Fo]=void 0;var n=!0}catch{}var o=Rq.call(e);return n&&(t?e[Fo]=r:delete e[Fo]),o}var Pq=Dq,Iq=Object.prototype,Fq=Iq.toString;function Lq(e){return Fq.call(e)}var kq=Lq,Nq="[object Null]",Mq="[object Undefined]",Db=lo?lo.toStringTag:void 0;function Bq(e){return e==null?e===void 0?Mq:Nq:Db&&Db in Object(e)?Pq(e):kq(e)}var jq=Bq,Pb=lo?lo.prototype:void 0;Pb&&Pb.toString;function Hq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var VC=Hq,Uq="[object AsyncFunction]",Kq="[object Function]",zq="[object GeneratorFunction]",Gq="[object Proxy]";function Wq(e){if(!VC(e))return!1;var t=jq(e);return t==Kq||t==zq||t==Uq||t==Gq}var Vq=Wq,qq=uh["__core-js_shared__"],Nc=qq,Ib=(function(){var e=/[^.]+$/.exec(Nc&&Nc.keys&&Nc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Yq(e){return!!Ib&&Ib in e}var Xq=Yq,Jq=Function.prototype,Zq=Jq.toString;function Qq(e){if(e!=null){try{return Zq.call(e)}catch{}try{return e+""}catch{}}return""}var eY=Qq,tY=/[\\^$.*+?()[\]{}|]/g,rY=/^\[object .+?Constructor\]$/,nY=Function.prototype,oY=Object.prototype,aY=nY.toString,iY=oY.hasOwnProperty,lY=RegExp("^"+aY.call(iY).replace(tY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sY(e){if(!VC(e)||Xq(e))return!1;var t=Vq(e)?lY:rY;return t.test(eY(e))}var uY=sY;function cY(e,t){return e?.[t]}var dY=cY;function fY(e,t){var r=dY(e,t);return uY(r)?r:void 0}var qC=fY;function pY(e,t){return e===t||e!==e&&t!==t}var hY=pY,gY=qC(Object,"create"),fa=gY;function mY(){this.__data__=fa?fa(null):{},this.size=0}var yY=mY;function bY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vY=bY,EY="__lodash_hash_undefined__",SY=Object.prototype,xY=SY.hasOwnProperty;function $Y(e){var t=this.__data__;if(fa){var r=t[e];return r===EY?void 0:r}return xY.call(t,e)?t[e]:void 0}var wY=$Y,CY=Object.prototype,_Y=CY.hasOwnProperty;function TY(e){var t=this.__data__;return fa?t[e]!==void 0:_Y.call(t,e)}var OY=TY,AY="__lodash_hash_undefined__";function RY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fa&&t===void 0?AY:t,this}var DY=RY;function Eo(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])}}Eo.prototype.clear=yY;Eo.prototype.delete=vY;Eo.prototype.get=wY;Eo.prototype.has=OY;Eo.prototype.set=DY;var Fb=Eo;function PY(){this.__data__=[],this.size=0}var IY=PY;function FY(e,t){for(var r=e.length;r--;)if(hY(e[r][0],t))return r;return-1}var ms=FY,LY=Array.prototype,kY=LY.splice;function NY(e){var t=this.__data__,r=ms(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():kY.call(t,r,1),--this.size,!0}var MY=NY;function BY(e){var t=this.__data__,r=ms(t,e);return r<0?void 0:t[r][1]}var jY=BY;function HY(e){return ms(this.__data__,e)>-1}var UY=HY;function KY(e,t){var r=this.__data__,n=ms(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var zY=KY;function So(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])}}So.prototype.clear=IY;So.prototype.delete=MY;So.prototype.get=jY;So.prototype.has=UY;So.prototype.set=zY;var GY=So,WY=qC(uh,"Map"),VY=WY;function qY(){this.size=0,this.__data__={hash:new Fb,map:new(VY||GY),string:new Fb}}var YY=qY;function XY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var JY=XY;function ZY(e,t){var r=e.__data__;return JY(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ys=ZY;function QY(e){var t=ys(this,e).delete(e);return this.size-=t?1:0,t}var eX=QY;function tX(e){return ys(this,e).get(e)}var rX=tX;function nX(e){return ys(this,e).has(e)}var oX=nX;function aX(e,t){var r=ys(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var iX=aX;function xo(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])}}xo.prototype.clear=YY;xo.prototype.delete=eX;xo.prototype.get=rX;xo.prototype.has=oX;xo.prototype.set=iX;var YC=xo,lX="Expected a function";function ch(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lX);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ch.Cache||YC),r}ch.Cache=YC;var sX=ch,uX=500;function cX(e){var t=sX(e,function(n){return r.size===uX&&r.clear(),n}),r=t.cache;return t}var dX=cX,fX=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pX=/\\(\\)?/g;dX(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fX,function(r,n,o,a){t.push(o?a.replace(pX,"$1"):n||r)}),t});var hX=$q,gX=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function XC(e){if(!hX(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=VV(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 mX=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return gX.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Eq.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Sq.default)(i))return;if((0,xq.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:XC(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},yX={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},bX=(e,t={})=>{let r={...yX,...t};return JSON.stringify(XC(e),mX(r),t.space)};function JC(e){return bX(e,{maxDepth:50})}var dh=p.createContext({sources:{}}),ZC="--unknown--",vX=({children:e,channel:t})=>{let[r,n]=p.useState({});return p.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof a=="string"?{id:a,source:i,format:l}:a,f=u?JC(u):ZC;n(g=>({...g,[s]:{...g[s],[f]:{code:c||"",format:d}}}))};return t.on(yh,o),()=>t.off(yh,o)},[]),h.createElement(dh.Provider,{value:{sources:r}},e)};const{getService:EX}=__STORYBOOK_MODULE_PREVIEW_API__;function QC(e,t){let r=e.split("--")[0],n=EX("core/story-docs"),o=p.useCallback(a=>t(a,e),[t,e]);return OC(e,n.queries.storyDocs,{id:r},o)}function SX(e){return QC(e,F2)}function xX(e){return QC(e,L2)}function $X(e,t,r){let[n,o]=p.useState("Transforming..."),a=t?t?.(e,r):e;return p.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var wX={sources:{}},CX=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[JC(t)]||o?.[ZC]||{code:""}},_X=({snippet:e,serviceSnippet:t,storyContext:r,typeFromProps:n,transformFromProps:o})=>{let a=r.parameters??{},{__isArgsStory:i}=a,l=a.docs?.source||{},s=n||l.type||vs.AUTO,u=t||e,c=s===vs.DYNAMIC||s===vs.AUTO&&u&&i?u:l.originalSource||"",d=o??l.transform,f=d?$X(c,d,r):c;return l.code!==void 0?l.code:f},bs=(e,t,r,n="")=>{let{of:o}=e,a=p.useMemo(()=>{if(o)return t.resolveOf(o,["story"]).story;try{return t.storyById()}catch{}},[t,o]),i=a?t.getStoryContext(a):{},l=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,s=a?CX(a.id,l,r):null,u=_X({snippet:s?s.code:"",serviceSnippet:n,storyContext:{...i,args:l},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&o===void 0)throw new BV;let c=a?.parameters?.docs?.source||{},d=e.format,f=e.language??c.language??"jsx",g=e.dark??c.dark??!1;return e.code===void 0&&!a?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:d,language:f,dark:g}:(d=s?.format??!0,{code:u,format:d,language:f,dark:g})},TX=({storyId:e,docsContext:t,sourceContext:r,...n})=>{let o=xX(e).data??"",a=bs(n,t,r,o);return h.createElement(Ia,{...a})},OX=e=>{let{of:t}=e,r=p.useContext(dh),n=p.useContext(ot),o=p.useMemo(()=>{if(t)return n.resolveOf(t,["story"]).story;try{return n.storyById()}catch{}},[n,t]);if(globalThis.FEATURES?.experimentalDocgenServer&&o?.id)return h.createElement(TX,{...e,docsContext:n,sourceContext:r,storyId:o.id});let a=bs(e,n,r);return h.createElement(Ia,{...a})},AX=e=>{let t=p.useContext(ot),r=bs(e,t,wX);return h.createElement(Ia,{...r})},RX=e=>e.code!==void 0?h.createElement(AX,{...e}):h.createElement(OX,{...e});Qe("Source",RX);var DX=e=>{let t=p.useContext(ot),r=p.useContext(dh),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new MV;let{story:a}=On(n||"story",["story"]),i=bs({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,c=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1,g=p.useCallback(()=>{t.channel.emit(NV,{storyId:a.id})},[t.channel,a.id]);return h.createElement(wC,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f,onReloadStory:f?g:void 0},h.createElement(WW,{of:n||a.moduleExport,meta:e.meta,...e.story}))},PX=Qe("Canvas",DX);const{filterArgTypes:Lb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:IX,STORY_ARGS_UPDATED:kb,UPDATE_STORY_ARGS:FX}=__STORYBOOK_MODULE_CORE_EVENTS__;var LX=(e,t)=>{let r=kX(e,t);if(!r)throw new Error("No result when story was defined");return r},kX=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=p.useState(r.args);p.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(kb,s),()=>t.channel.off(kb,s)},[n,t.channel]);let i=p.useCallback(s=>t.channel.emit(FX,{storyId:n,updatedArgs:s}),[n,t.channel]),l=p.useCallback(s=>t.channel.emit(IX,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]};const{GLOBALS_UPDATED:Nb}=__STORYBOOK_MODULE_CORE_EVENTS__;var NX=(e,t)=>{let r=t.getStoryContext(e),[n,o]=p.useState(r.globals);return p.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(Nb,a),()=>t.channel.off(Nb,a)},[t.channel]),[n]};const{Tag:MX}=__STORYBOOK_MODULE_PREVIEW_API__;var e_=()=>{let e=p.useContext(ot),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(r=>r.tags.includes(MX.AUTODOCS))};function t_(e,t){let r=e.parameters.docs?.controls||{};return{include:t.include??r.include,exclude:t.exclude??r.exclude,sort:t.sort??r.sort}}function r_(e,t){let r=bC(),[n,o,a]=LX(e,t),[i]=NX(e,t);return{controlsId:r,args:n,globals:i,updateArgs:o,resetArgs:a}}var n_=({mainName:e="Story",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:a,storyId:i,controlsId:l,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:f})=>{let g=Lb(t,n,o);if(Object.keys(r).length===0)return Object.keys(g).length>0||Object.keys(s).length>0?h.createElement(io,{storyId:i,controlsId:l,rows:g,sort:a,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:f}):null;let m={[e]:{rows:g,sort:a},...Object.fromEntries(Object.entries(r).map(([y,v])=>[y,{rows:Lb(v,n,o),sort:a}]))};return h.createElement(CC,{tabs:m,sort:a,args:s,globals:u,updateArgs:c,resetArgs:d,storyId:i,controlsId:l,docsLang:f})},BX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:a,subcomponents:i}=e,l=t_(e,r),s=r_(e,t);return o?h.createElement(n_,{mainName:hs(a)||"Story",mainRows:o,subcomponentRows:DC(i,n),...l,storyId:e.id,...s,docsLang:n?.docs?.lang}):null},jX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:a}=e,i=t_(e,r),l=r_(e,t),{rows:s,isInitialLoading:u}=PC({componentId:e.id.split("--")[0],storyId:e.id,parameters:n,initialArgs:e.initialArgs,customArgTypes:o});return u?h.createElement(io,{isLoading:!0}):s?h.createElement(n_,{mainName:hs(a)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,...i,storyId:e.id,...l,docsLang:n?.docs?.lang}):null},HX=e=>{let{of:t}=e,r=p.useContext(ot),n=e_(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let a={...e,story:o,context:r};return globalThis.FEATURES?.experimentalDocgenServer?h.createElement(jX,{...a}):h.createElement(BX,{...a})},UX=Qe("Controls",HX);const{InvalidBlockOfPropError:KX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:zX}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:o_}=globalThis,a_=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(gp,null,t);let n=e&&e.split("-");return h.createElement(Ia,{language:n&&n[1]||"text",format:!1,code:t,...r})};function fh(e,t){e.channel.emit(zX,t)}var lf=Mw.a,GX=({hash:e,children:t})=>{let r=p.useContext(ot);return h.createElement(lf,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);o_.getElementById(o)&&fh(r,e)}},t)},i_=e=>{let{href:t,target:r,children:n,...o}=e,a=p.useContext(ot);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(lf,{...e}):t.startsWith("#")?h.createElement(GX,{hash:t},n):h.createElement(lf,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),fh(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},l_=["h1","h2","h3","h4","h5","h6"],WX=l_.reduce((e,t)=>({...e,[t]:F(t)({})}),{}),VX=F.span({display:"block",position:"relative","& svg":{visibility:"hidden"},"&:hover svg, &:focus-within svg":{visibility:"visible"}}),qX=F.span({position:"absolute",top:"50%",right:"100%",lineHeight:"inherit",paddingRight:"8px","&&":{marginTop:-14},color:"inherit","& a":{color:"inherit",textDecoration:"none"}});F.span({});var YX=({as:e,id:t,children:r,...n})=>{let o=p.useContext(ot),a=WX[e],i=`#${t}`;return h.createElement(a,{id:t,...n},h.createElement(VX,{className:"sb-unstyled"},h.createElement(qX,null,h.createElement(Ee,{asChild:!0,variant:"ghost",size:"small",padding:"small",ariaLabel:"Copy heading URL to address bar"},h.createElement("a",{href:i,target:"_self",onClick:l=>{l.preventDefault(),o_.getElementById(t)&&fh(o,i)}},h.createElement(wU,null)))),r))},ph=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(YX,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return h.createElement(a,{...xe(l,t)})},s_=l_.reduce((e,t)=>({...e,[t]:r=>h.createElement(ph,{as:t,...r})}),{}),XX=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(IU`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
737
+ This is often caused by not wrapping the child in a template string.
738
+
739
+ This is invalid:
740
+ <Markdown>
741
+ # Some heading
742
+ A paragraph
743
+ </Markdown>
744
+
745
+ Instead do:
746
+ <Markdown>
747
+ {\`
748
+ # Some heading
749
+ A paragraph
750
+ \`}
751
+ </Markdown>
752
+ `);return h.createElement(tC,{...e,options:{forceBlock:!0,overrides:{code:a_,a:i_,...s_,...e?.options?.overrides},...e?.options}})},JX=Qe("Markdown",XX),ZX=(e,t,r)=>{switch(e.type){case"story":{let n=e.story.parameters.docs?.description?.story;return n!==void 0?n:r??null}case"meta":{let{parameters:n,component:o}=e.preparedMeta;return n.docs?.description?.component||n.docs?.extractComponentDescription?.(o,{component:o,parameters:n})||t||null}case"component":{let{component:n,projectAnnotations:{parameters:o}}=e;return o?.docs?.extractComponentDescription?.(n,{component:n,parameters:o})||t||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},hh=({resolvedOf:e,serviceComponentDescription:t,lang:r,storyDocsDescription:n})=>{let o=ZX(e,t,n);return o?h.createElement(JX,{lang:r},o):null},QX=({resolvedOf:e})=>{let t=SX(e.story.id).data?.description,r=e.story.parameters.docs?.lang||"en";return h.createElement(hh,{resolvedOf:e,storyDocsDescription:t,lang:r})},eJ=({resolvedOf:e,componentId:t})=>{let r=AC(t).data?.description||void 0,n=e.type==="meta"?e.preparedMeta.parameters.docs?.lang||"en":e.projectAnnotations.parameters?.docs?.lang||"en";return h.createElement(hh,{resolvedOf:e,serviceComponentDescription:r,lang:n})},tJ=e=>{let{of:t}=e,r=p.useContext(ot);if("of"in e&&t===void 0)throw new KX;let n=On(t||"meta");if(globalThis.FEATURES?.experimentalDocgenServer){if(n.type==="story")return h.createElement(QX,{resolvedOf:n});let a=n.type==="meta"?n.preparedMeta.componentId:r.getComponentId(n.component);if(a)return h.createElement(eJ,{resolvedOf:n,componentId:a})}let o=(n.type==="story"?n.story.parameters:n.type==="meta"?n.preparedMeta.parameters:n.projectAnnotations.parameters)?.docs?.lang||"en";return h.createElement(hh,{resolvedOf:n,lang:o})},sf=Qe("Description",tJ),rJ=/[\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,nJ=Object.hasOwnProperty,u_=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=oJ(e,t===!0),o=n;for(;nJ.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 oJ(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(rJ,"").replace(/ /g,"-"))}var aJ=()=>new u_,gh=p.createContext(null),{document:iJ,window:lJ}=globalThis,sJ=({context:e,theme:t,children:r})=>{let n=p.useMemo(()=>aJ(),[]),o,a;try{let i=e.resolveOf("meta",["meta"]).preparedMeta.parameters;o=i?.docs?.toc,a=i?.docs?.lang||"en"}catch{o=e?.projectAnnotations?.parameters?.docs?.toc,a=e?.projectAnnotations?.parameters?.docs?.lang||"en"}return p.useEffect(()=>{let i;try{if(i=new URL(lJ.parent.location.toString()),i.hash){let l=iJ.getElementById(decodeURIComponent(i.hash.substring(1)));l&&setTimeout(()=>{IV(l)},200)}}catch{}}),h.createElement(gh.Provider,{value:n},h.createElement(ot.Provider,{value:e},h.createElement(vX,{channel:e.channel},h.createElement(yf,{theme:u1(t)},h.createElement(bW,{lang:a,toc:o?h.createElement(_V,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...o}):null},r)))))},c_=new u_,uJ=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return h.createElement(mp,null,e);let n=(h.useContext(gh)??c_).slug(e.toLowerCase());return h.createElement(ph,{as:"h2",id:n,...r},e)},cJ=Qe("Heading",uJ),dJ=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return h.createElement(yp,null,e);let r=(h.useContext(gh)??c_).slug(e.toLowerCase());return h.createElement(ph,{as:"h3",id:r},e)},fJ=Qe("Subheading",dJ),pJ=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:a}=On(e||"story",["story"]),i=a.parameters.docs?.canvas?.withToolbar??r;return h.createElement(OV,{storyId:o?`primary--${a.id}`:a.id},t&&h.createElement(h.Fragment,null,h.createElement(fJ,null,a.name),h.createElement(sf,{of:e})),h.createElement(PX,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},d_=Qe("DocsStory",pJ),hJ=()=>{let e=e_();return e?h.createElement(d_,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},gJ=Qe("Primary",hJ);const{Tag:Mb}=__STORYBOOK_MODULE_PREVIEW_API__;var mJ=F(cJ)(({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"}})),yJ=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=p.useContext(ot),a=r(),i=n.parameters?.docs?.stories?.filter;return i&&(a=a.filter(l=>i(l,o(l)))),a.some(l=>l.tags?.includes(Mb.AUTODOCS))&&(a=a.filter(l=>l.tags?.includes(Mb.AUTODOCS)&&!l.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:h.createElement(h.Fragment,null,typeof e=="string"?h.createElement(mJ,null,e):e,a.map(l=>l&&h.createElement(d_,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))},bJ=Qe("Stories",yJ);const{deprecate:vJ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{InvalidBlockOfPropError:EJ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var SJ="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",xJ=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new EJ;let n;try{n=On(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:a}=n?.parameters||{};o&&vJ(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${SJ}`);let i=r||a?.subtitle||o;return i?h.createElement(gW,{className:"sbdocs-subtitle sb-unstyled"},i):null},$J=Qe("Subtitle",xJ);const{InvalidBlockOfPropError:wJ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var CJ=/\s*\/\s*/,_J=e=>{let t=e.trim().split(CJ);return t?.[t?.length-1]||e},TJ=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new wJ;let n;try{n=On(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use <Meta of={} />?"))throw a}let o=t||_J(n?.title||"");return o?h.createElement(hW,{className:"sbdocs-title sb-unstyled"},o):null},OJ=Qe("Title",TJ),AJ=()=>{let e=On("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return h.createElement(h.Fragment,null,h.createElement(OJ,null),h.createElement($J,null),h.createElement(sf,{of:"meta"}),r?h.createElement(sf,{of:"story"}):null,h.createElement(gJ,null),h.createElement(UX,null),r?null:h.createElement(bJ,null))};function RJ({context:e,docsParameter:t}){let r=t.container||sJ,n=t.page||AJ;return h.createElement(r,{context:e,theme:t.theme},h.createElement(n,null))}const{deprecate:cZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{composeConfigs:dZ}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:fZ}=__STORYBOOK_MODULE_CHANNELS__,{Preview:pZ,composeConfigs:hZ}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:gZ}=__STORYBOOK_MODULE_PREVIEW_API__,{deprecate:mZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var DJ=e=>h.createElement("div",{...e,className:"sb-unstyled"});Qe("Unstyled",DJ);var PJ=({children:e})=>h.createElement("div",{style:{fontFamily:"sans-serif"}},e);Qe("Wrapper",PJ);var f_={code:a_,a:i_,...s_},IJ=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:h.createElement(h.Fragment,null,t)}},FJ=class{constructor(){this.render=async(e,t,r)=>{let n={...f_,...t?.components},o=RJ;return new Promise((a,i)=>{yr(async()=>{const{MDXProvider:l}=await Promise.resolve().then(()=>PU);return{MDXProvider:l}},void 0,import.meta.url).then(({MDXProvider:l})=>__(h.createElement(IJ,{showException:i,key:Math.random()},h.createElement(l,{components:n},h.createElement(o,{context:e,docsParameter:t}))),r)).then(()=>a())})},this.unmount=e=>{T_(e)}}};const yZ=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:FJ,defaultComponents:f_},Symbol.toStringTag,{value:"Module"}));export{VO as A,Ee as B,yZ as D,_n as F,Zy as M,Gp as P,xf as S,ze as _,OA as a,jt as g,uf as l,vn as r,F as s,TA as u};