@madie/madie-design-system 1.2.76 → 1.2.78

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 (249) hide show
  1. package/components/MadieDialog/index.jsx +2 -2
  2. package/components/RichTextEditor/index.jsx +88 -65
  3. package/coverage/clover.xml +602 -416
  4. package/coverage/coverage-final.json +39 -36
  5. package/coverage/lcov-report/InputLabel/index.html +5 -5
  6. package/coverage/lcov-report/InputLabel/index.jsx.html +7 -7
  7. package/coverage/lcov-report/MadieTooltip/index.html +36 -21
  8. package/coverage/lcov-report/MadieTooltip/index.jsx.html +34 -37
  9. package/coverage/lcov-report/MadieTooltip/index.scss.html +274 -0
  10. package/coverage/lcov-report/MadieTooltipIcon/index.html +21 -21
  11. package/coverage/lcov-report/MadieTooltipIcon/index.jsx.html +14 -14
  12. package/coverage/lcov-report/TextField/index.html +17 -17
  13. package/coverage/lcov-report/TextField/index.jsx.html +19 -103
  14. package/coverage/lcov-report/index.html +253 -118
  15. package/coverage/lcov-report/react/components/Accordion/index.html +2 -2
  16. package/coverage/lcov-report/react/components/Accordion/index.jsx.html +15 -15
  17. package/coverage/lcov-report/react/components/Alert/index.html +116 -0
  18. package/coverage/lcov-report/react/components/Alert/index.js.html +250 -0
  19. package/coverage/lcov-report/react/components/AutoComplete/AutoComplete.jsx.html +868 -0
  20. package/coverage/lcov-report/react/components/AutoComplete/index.html +116 -0
  21. package/coverage/lcov-report/react/components/Breadcrumb/index.html +116 -0
  22. package/coverage/lcov-report/react/components/Breadcrumb/index.js.html +361 -0
  23. package/coverage/lcov-report/react/components/Button/index.html +2 -2
  24. package/coverage/lcov-report/react/components/Button/index.js.html +18 -18
  25. package/coverage/lcov-report/react/components/DateField/DateField.jsx.html +36 -123
  26. package/coverage/lcov-report/react/components/DateField/index.html +16 -16
  27. package/coverage/lcov-report/react/components/DateTimeField/DateTimeField.jsx.html +56 -14
  28. package/coverage/lcov-report/react/components/DateTimeField/index.html +10 -10
  29. package/coverage/lcov-report/react/components/Dropdown/index.html +116 -0
  30. package/coverage/lcov-report/react/components/Dropdown/index.js.html +340 -0
  31. package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
  32. package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
  33. package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
  34. package/coverage/lcov-report/react/components/Error/index.html +1 -1
  35. package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +1 -1
  36. package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +1 -1
  37. package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
  38. package/coverage/lcov-report/react/components/Footer/index.html +1 -1
  39. package/coverage/lcov-report/react/components/FormControlLabel/index.html +116 -0
  40. package/coverage/lcov-report/react/components/FormControlLabel/index.jsx.html +154 -0
  41. package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
  42. package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
  43. package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
  44. package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
  45. package/coverage/lcov-report/react/components/InputLabel/index.html +6 -6
  46. package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +8 -8
  47. package/coverage/lcov-report/react/components/Instant/index.html +116 -0
  48. package/coverage/lcov-report/react/components/Instant/index.jsx.html +886 -0
  49. package/coverage/lcov-report/react/components/Link/index.html +116 -0
  50. package/coverage/lcov-report/react/components/Link/index.js.html +268 -0
  51. package/coverage/lcov-report/react/components/MadieAlert/index.html +16 -16
  52. package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +875 -149
  53. package/coverage/lcov-report/{DateTimeField → react/components/MadieConfirmDialog}/index.html +19 -19
  54. package/coverage/lcov-report/react/components/MadieConfirmDialog/index.jsx.html +277 -0
  55. package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +4 -4
  56. package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +17 -11
  57. package/coverage/lcov-report/react/components/MadieDialog/index.html +18 -18
  58. package/coverage/lcov-report/react/components/MadieDialog/index.jsx.html +233 -92
  59. package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +2 -2
  60. package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +4 -4
  61. package/coverage/lcov-report/react/components/MadieSpinner/index.html +2 -2
  62. package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +4 -4
  63. package/coverage/lcov-report/react/components/MadieTooltip/index.html +2 -2
  64. package/coverage/lcov-report/react/components/MadieTooltip/index.jsx.html +6 -6
  65. package/coverage/lcov-report/react/components/MadieTooltip/index.scss.html +274 -0
  66. package/coverage/lcov-report/react/components/MadieTooltipIcon/index.html +2 -2
  67. package/coverage/lcov-report/react/components/MadieTooltipIcon/index.jsx.html +4 -4
  68. package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +553 -0
  69. package/coverage/lcov-report/react/components/Modal/index.html +131 -0
  70. package/coverage/lcov-report/react/components/Modal/index.jsx.html +139 -0
  71. package/coverage/lcov-report/react/components/NumberInput/index.html +116 -0
  72. package/coverage/lcov-report/react/components/NumberInput/index.jsx.html +310 -0
  73. package/coverage/lcov-report/react/components/Pagination/index.html +2 -2
  74. package/coverage/lcov-report/react/components/Pagination/index.jsx.html +6 -6
  75. package/coverage/lcov-report/react/components/Popover/index.html +6 -6
  76. package/coverage/lcov-report/react/components/Popover/index.js.html +17 -14
  77. package/coverage/lcov-report/react/components/RadioButton/RadioButton.jsx.html +490 -0
  78. package/coverage/lcov-report/react/components/RadioButton/index.html +116 -0
  79. package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +6 -6
  80. package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +25 -193
  81. package/coverage/lcov-report/react/components/RichTextEditor/index.html +116 -0
  82. package/coverage/lcov-report/react/components/RichTextEditor/index.jsx.html +922 -0
  83. package/coverage/lcov-report/react/components/Search/index.html +116 -0
  84. package/coverage/lcov-report/react/components/Search/index.js.html +343 -0
  85. package/coverage/lcov-report/react/components/Select/index.html +10 -10
  86. package/coverage/lcov-report/react/components/Select/index.jsx.html +35 -23
  87. package/coverage/lcov-report/react/components/Tabs/Tab.js.html +11 -11
  88. package/coverage/lcov-report/react/components/Tabs/TabPanel.js.html +208 -0
  89. package/coverage/lcov-report/react/components/Tabs/index.html +34 -19
  90. package/coverage/lcov-report/react/components/Tabs/index.js.html +114 -51
  91. package/coverage/lcov-report/react/components/TextArea/index.html +10 -10
  92. package/coverage/lcov-report/react/components/TextArea/index.jsx.html +93 -9
  93. package/coverage/lcov-report/react/components/TextField/index.html +12 -12
  94. package/coverage/lcov-report/react/components/TextField/index.jsx.html +171 -63
  95. package/coverage/lcov-report/react/components/TextInput/index.html +116 -0
  96. package/coverage/lcov-report/react/components/TextInput/index.js.html +496 -0
  97. package/coverage/lcov-report/{DateTimeField/DateTimeField.jsx.html → react/components/TimeField/TimeField.jsx.html} +109 -76
  98. package/coverage/lcov-report/react/components/TimeField/index.html +116 -0
  99. package/coverage/lcov-report/react/components/Toast/index.html +2 -2
  100. package/coverage/lcov-report/react/components/Toast/index.jsx.html +9 -9
  101. package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
  102. package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
  103. package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
  104. package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
  105. package/coverage/lcov-report/react/components/TruncateText/index.html +116 -0
  106. package/coverage/lcov-report/react/components/TruncateText/index.js.html +241 -0
  107. package/coverage/lcov-report/react/components/index.html +116 -0
  108. package/coverage/lcov-report/react/components/index.js.html +547 -0
  109. package/coverage/lcov-report/react/index.html +18 -18
  110. package/coverage/lcov-report/react/index.js.html +20 -26
  111. package/coverage/lcov-report/react/lib/Chevron.jsx.html +5 -5
  112. package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +41 -41
  113. package/coverage/lcov-report/react/lib/index.html +2 -2
  114. package/coverage/lcov-report/react/themes/actionCenterTheme.js.html +175 -0
  115. package/coverage/lcov-report/react/themes/index.html +116 -0
  116. package/coverage/lcov.info +1252 -798
  117. package/dist/browser.js +1 -1
  118. package/dist/index.js +1 -1
  119. package/dist/react/index.js +2 -2
  120. package/dist/react/index.js.map +1 -1
  121. package/package.json +1 -1
  122. package/storybook-static/1606.9527419c.iframe.bundle.js +76 -0
  123. package/storybook-static/1606.9527419c.iframe.bundle.js.LICENSE.txt +8 -0
  124. package/storybook-static/1606.9527419c.iframe.bundle.js.map +1 -0
  125. package/storybook-static/1822.72412063.iframe.bundle.js +2 -0
  126. package/storybook-static/1822.72412063.iframe.bundle.js.LICENSE.txt +5 -0
  127. package/storybook-static/2247.8b06a622.iframe.bundle.js +87 -0
  128. package/storybook-static/2247.8b06a622.iframe.bundle.js.LICENSE.txt +9 -0
  129. package/storybook-static/2247.8b06a622.iframe.bundle.js.map +1 -0
  130. package/storybook-static/2360.690c5cd8.iframe.bundle.js +1 -0
  131. package/storybook-static/2505.5a3351ca.iframe.bundle.js +2 -0
  132. package/storybook-static/2505.5a3351ca.iframe.bundle.js.LICENSE.txt +9 -0
  133. package/storybook-static/2543.64e1c8c6.iframe.bundle.js +2 -0
  134. package/storybook-static/2543.64e1c8c6.iframe.bundle.js.LICENSE.txt +8 -0
  135. package/storybook-static/2763.e9244c7e.iframe.bundle.js +1 -0
  136. package/storybook-static/3009.7080427c.iframe.bundle.js +1 -0
  137. package/storybook-static/312.98473fc0.iframe.bundle.js +2 -0
  138. package/storybook-static/312.98473fc0.iframe.bundle.js.LICENSE.txt +17 -0
  139. package/storybook-static/3264.1483ccad.iframe.bundle.js +1 -0
  140. package/storybook-static/3461.b9b84310.iframe.bundle.js +29 -0
  141. package/storybook-static/3461.b9b84310.iframe.bundle.js.map +1 -0
  142. package/storybook-static/4246.3dee0bc1.iframe.bundle.js +1 -0
  143. package/storybook-static/4683.334f6a20.iframe.bundle.js +1 -0
  144. package/storybook-static/4753.b31cfa9b.iframe.bundle.js +1 -0
  145. package/storybook-static/4788.aa09e5f9.iframe.bundle.js +1 -0
  146. package/storybook-static/5043.53f3bb0c.iframe.bundle.js +2 -0
  147. package/storybook-static/5043.53f3bb0c.iframe.bundle.js.LICENSE.txt +1 -0
  148. package/storybook-static/5467.8b66ac25.iframe.bundle.js +1 -0
  149. package/storybook-static/6357.6600668a.iframe.bundle.js +1 -0
  150. package/storybook-static/651.1fcfd284.iframe.bundle.js +1 -0
  151. package/storybook-static/6520.84e91a57.iframe.bundle.js +2 -0
  152. package/storybook-static/6520.84e91a57.iframe.bundle.js.LICENSE.txt +19 -0
  153. package/storybook-static/6958.8a916fa2.iframe.bundle.js +1 -0
  154. package/storybook-static/7599.3f695d6a.iframe.bundle.js +1 -0
  155. package/storybook-static/7648.6ac96dea.iframe.bundle.js +1 -0
  156. package/storybook-static/7737.8a6a8e54.iframe.bundle.js +1 -0
  157. package/storybook-static/8255.e2a8ed59.iframe.bundle.js +2 -0
  158. package/storybook-static/8255.e2a8ed59.iframe.bundle.js.LICENSE.txt +9 -0
  159. package/storybook-static/8735.566590af.iframe.bundle.js +2 -0
  160. package/storybook-static/8735.566590af.iframe.bundle.js.LICENSE.txt +29 -0
  161. package/storybook-static/9010.9ac07800.iframe.bundle.js +1 -0
  162. package/storybook-static/9060.b9282f66.iframe.bundle.js +1 -0
  163. package/storybook-static/9249.28266e92.iframe.bundle.js +1 -0
  164. package/storybook-static/9859.25828a48.iframe.bundle.js +2 -0
  165. package/storybook-static/9859.25828a48.iframe.bundle.js.LICENSE.txt +9 -0
  166. package/storybook-static/Accordion-Accordion-stories.dbeb9f2a.iframe.bundle.js +2 -0
  167. package/storybook-static/Accordion-Accordion-stories.dbeb9f2a.iframe.bundle.js.LICENSE.txt +9 -0
  168. package/storybook-static/AutoComplete-AutoComplete-stories.3fa69ad4.iframe.bundle.js +1 -0
  169. package/storybook-static/Button-Button-stories.c56437c4.iframe.bundle.js +1 -0
  170. package/storybook-static/DateField-DateField-stories.9e1b9e5c.iframe.bundle.js +1 -0
  171. package/storybook-static/DateTimeField-DateTimeField-stories.4d184efd.iframe.bundle.js +1 -0
  172. package/storybook-static/Instant-Instant-stories.cdd1bf7f.iframe.bundle.js +1 -0
  173. package/storybook-static/MadieAlert-MadieAlert-stories.b0a784a8.iframe.bundle.js +1 -0
  174. package/storybook-static/MadieConfirmDialog-MadieConfirmDialog-stories.2629a704.iframe.bundle.js +1 -0
  175. package/storybook-static/MadieDeleteDialog-MadieDeleteDialog-stories.0f91e77f.iframe.bundle.js +1 -0
  176. package/storybook-static/MadieDialog-MadieDialog-stories.1e63ebb3.iframe.bundle.js +1 -0
  177. package/storybook-static/MadieDiscardDialog-MadieDiscardDialog-stories.4632ec72.iframe.bundle.js +1 -0
  178. package/storybook-static/MadieSpinner-MadieSpinner-stories.6c47900d.iframe.bundle.js +30 -0
  179. package/storybook-static/MadieSpinner-MadieSpinner-stories.6c47900d.iframe.bundle.js.LICENSE.txt +8 -0
  180. package/storybook-static/MadieSpinner-MadieSpinner-stories.6c47900d.iframe.bundle.js.map +1 -0
  181. package/storybook-static/MadieTooltip-MadieTooltip-stories.0c8fb8f7.iframe.bundle.js +2 -0
  182. package/storybook-static/MadieTooltip-MadieTooltip-stories.0c8fb8f7.iframe.bundle.js.LICENSE.txt +9 -0
  183. package/storybook-static/MadieTooltipIcon-MadieTooltipIcon-stories.b33f0165.iframe.bundle.js +2 -0
  184. package/storybook-static/MadieTooltipIcon-MadieTooltipIcon-stories.b33f0165.iframe.bundle.js.LICENSE.txt +9 -0
  185. package/storybook-static/Modal-Modal-stories.1c8c1dcd.iframe.bundle.js +2 -0
  186. package/storybook-static/Modal-Modal-stories.1c8c1dcd.iframe.bundle.js.LICENSE.txt +19 -0
  187. package/storybook-static/NumberInput-NumberInput-stories.b642f330.iframe.bundle.js +1 -0
  188. package/storybook-static/Pagination-Pagination-stories.dc63a146.iframe.bundle.js +1 -0
  189. package/storybook-static/Popover-Popover-stories.680cce19.iframe.bundle.js +1 -0
  190. package/storybook-static/RadioButton-RadioButton-stories.5daa020f.iframe.bundle.js +1 -0
  191. package/storybook-static/ReadOnlyTextField-ReadOnlyTextField-stories.281af1c9.iframe.bundle.js +1 -0
  192. package/storybook-static/RichTextEditor-RichTextEditor-stories.f2f6efd0.iframe.bundle.js +1 -0
  193. package/storybook-static/Search-Search-stories.ce9d2b51.iframe.bundle.js +1 -0
  194. package/storybook-static/Select-Select-stories.1ba58501.iframe.bundle.js +1 -0
  195. package/storybook-static/Tabs-Tabs-stories.e9bf42ff.iframe.bundle.js +1 -0
  196. package/storybook-static/TextArea-TextArea-stories.9bb45748.iframe.bundle.js +1 -0
  197. package/storybook-static/TextField-TextField-stories.e5c08a5e.iframe.bundle.js +1 -0
  198. package/storybook-static/TimeField-TimeField-stories.760f9db5.iframe.bundle.js +1 -0
  199. package/storybook-static/Toast-Toast-stories.160e8bf1.iframe.bundle.js +1 -0
  200. package/storybook-static/TruncateText-TruncateText-stories.2da57e6a.iframe.bundle.js +1 -0
  201. package/storybook-static/favicon.svg +1 -0
  202. package/storybook-static/iframe.html +531 -0
  203. package/storybook-static/index.html +152 -0
  204. package/storybook-static/index.json +1 -0
  205. package/storybook-static/main.18ce3a87.iframe.bundle.js +1 -0
  206. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  207. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  208. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  209. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  210. package/storybook-static/project.json +1 -0
  211. package/storybook-static/runtime~main.6bbd8126.iframe.bundle.js +1 -0
  212. package/storybook-static/sb-addons/docs-2/manager-bundle.js +151 -0
  213. package/storybook-static/sb-addons/links-1/manager-bundle.js +3 -0
  214. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +188 -0
  215. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  216. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  217. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  218. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  219. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  220. package/storybook-static/sb-manager/globals-module-info.js +797 -0
  221. package/storybook-static/sb-manager/globals-runtime.js +69459 -0
  222. package/storybook-static/sb-manager/globals.js +34 -0
  223. package/storybook-static/sb-manager/runtime.js +13003 -0
  224. package/storybook-static/sb-preview/globals.js +25 -0
  225. package/storybook-static/sb-preview/runtime.js +43237 -0
  226. package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
  227. package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
  228. package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
  229. package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
  230. package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
  231. package/storybook-static/static/media/bitter-bold.24bf01e4.woff2 +0 -0
  232. package/storybook-static/static/media/bitter-italic.34644574.woff2 +0 -0
  233. package/storybook-static/static/media/bitter-regular.f4e2f1f1.woff2 +0 -0
  234. package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
  235. package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
  236. package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
  237. package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +2671 -0
  238. package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
  239. package/storybook-static/static/media/opensans-bold-webfont.92e570c6.woff2 +0 -0
  240. package/storybook-static/static/media/opensans-italic-webfont.72daa33a.woff2 +0 -0
  241. package/storybook-static/static/media/opensans-regular-webfont.ca4dd835.woff2 +0 -0
  242. package/storybook-static/static/media/opensans-semibold-webfont.17ded75f.woff2 +0 -0
  243. package/test/components/MadieDeleteDialog.test.js +1 -1
  244. package/test/components/RichTextEditor.test.js +257 -37
  245. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  246. package/.idea/misc.xml +0 -6
  247. package/.idea/modules.xml +0 -8
  248. package/.idea/react.iml +0 -9
  249. package/.idea/vcs.xml +0 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2247.8b06a622.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;AAiNA;;ACykOA;AACA;AACA;AACA;;;;;;;AA2uKA;;;;;AA2DA;;;;;AAoIA;;;;;;AAMA;AACA;AAIA;;;ACj0TA;;;;;;;AAEA;;;;;AAEA;;;;AACA;AAnBA;;;AAoBA;;;;;;;;;;;AAIA;;;;AAgXA","sources":["webpack://@madie/madie-design-system/./node_modules/@storybook/addon-docs/dist/blocks.mjs","webpack://@madie/madie-design-system/./node_modules/storybook/dist/components/index.js","webpack://@madie/madie-design-system/./node_modules/storybook/dist/theming/index.js"],"sourcesContent":["import { getControlSetterButtonId, getControlId, cloneDeep, pickBy, uniq } from './chunk-SPFYY5GD.mjs';\nimport { __commonJS, __toESM, __require } from './chunk-QUZPS4B6.mjs';\nimport * as React20 from 'react';\nimport React20__default, { createContext, lazy, useState, useCallback, useEffect, useId, useRef, Component, cloneElement, useMemo, Suspense, useContext, Children } from 'react';\nimport { deprecate, once, logger } from 'storybook/internal/client-logger';\nimport { withReset, SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, components, Zoom, ActionBar, ResetWrapper, Button, Link, Code, nameSpaceClassNames, H2, H3, Loader, TabsState, EmptyTabContent, ErrorFormatter, getStoryHref, WithTooltipPure } from 'storybook/internal/components';\nimport { includeConditionalArg } from 'storybook/internal/csf';\nimport { AddIcon, SubtractIcon, ChevronSmallUpIcon, ChevronSmallDownIcon, ChevronDownIcon as ChevronDownIcon$1, ChevronRightIcon, ZoomIcon, ZoomOutIcon, ZoomResetIcon, EyeCloseIcon, EyeIcon, DocumentIcon, UndoIcon, LinkIcon } from '@storybook/icons';\nimport { styled, ignoreSsrWarning, useTheme, themes, ThemeProvider, convert, ensure } from 'storybook/theming';\nimport { NAVIGATE_URL, STORY_ARGS_UPDATED, UPDATE_STORY_ARGS, RESET_STORY_ARGS, GLOBALS_UPDATED } from 'storybook/internal/core-events';\nimport { filterArgTypes, composeConfigs, Preview as Preview$1, DocsContext as DocsContext$1 } from 'storybook/preview-api';\nimport { SNIPPET_RENDERED, SourceType } from 'storybook/internal/docs-tools';\nimport { dedent } from 'ts-dedent';\nimport { Channel } from 'storybook/internal/channels';\n\nvar require_memoizerific=__commonJS({\"../../node_modules/memoizerific/memoizerific.js\"(exports,module){(function(f2){if(typeof exports==\"object\"&&typeof module<\"u\")module.exports=f2();else if(typeof define==\"function\"&&define.amd)define([],f2);else {var g2;typeof window<\"u\"?g2=window:typeof global<\"u\"?g2=global:typeof self<\"u\"?g2=self:g2=this,g2.memoizerific=f2();}})(function(){return function e2(t2,n2,r2){function s2(o3,u2){if(!n2[o3]){if(!t2[o3]){var a2=typeof __require==\"function\"&&__require;if(!u2&&a2)return a2(o3,!0);if(i2)return i2(o3,!0);var f2=new Error(\"Cannot find module '\"+o3+\"'\");throw f2.code=\"MODULE_NOT_FOUND\",f2}var l2=n2[o3]={exports:{}};t2[o3][0].call(l2.exports,function(e3){var n3=t2[o3][1][e3];return s2(n3||e3)},l2,l2.exports,e2,t2,n2,r2);}return n2[o3].exports}for(var i2=typeof __require==\"function\"&&__require,o2=0;o2<r2.length;o2++)s2(r2[o2]);return s2}({1:[function(_dereq_,module3,exports3){module3.exports=function(forceSimilar){if(typeof Map!=\"function\"||forceSimilar){var Similar=_dereq_(\"./similar\");return new Similar}else return new Map};},{\"./similar\":2}],2:[function(_dereq_,module3,exports3){function Similar(){return this.list=[],this.lastItem=void 0,this.size=0,this}Similar.prototype.get=function(key){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key))return this.lastItem.val;if(index=this.indexOf(key),index>=0)return this.lastItem=this.list[index],this.list[index].val},Similar.prototype.set=function(key,val){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key)?(this.lastItem.val=val,this):(index=this.indexOf(key),index>=0?(this.lastItem=this.list[index],this.list[index].val=val,this):(this.lastItem={key,val},this.list.push(this.lastItem),this.size++,this))},Similar.prototype.delete=function(key){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key)&&(this.lastItem=void 0),index=this.indexOf(key),index>=0)return this.size--,this.list.splice(index,1)[0]},Similar.prototype.has=function(key){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key)?!0:(index=this.indexOf(key),index>=0?(this.lastItem=this.list[index],!0):!1)},Similar.prototype.forEach=function(callback,thisArg){var i2;for(i2=0;i2<this.size;i2++)callback.call(thisArg||this,this.list[i2].val,this.list[i2].key,this);},Similar.prototype.indexOf=function(key){var i2;for(i2=0;i2<this.size;i2++)if(this.isEqual(this.list[i2].key,key))return i2;return -1},Similar.prototype.isEqual=function(val1,val2){return val1===val2||val1!==val1&&val2!==val2},module3.exports=Similar;},{}],3:[function(_dereq_,module3,exports3){var MapOrSimilar=_dereq_(\"map-or-similar\");module3.exports=function(limit){var cache=new MapOrSimilar(!1),lru=[];return function(fn){var memoizerific=function(){var currentCache=cache,newMap,fnResult,argsLengthMinusOne=arguments.length-1,lruPath=Array(argsLengthMinusOne+1),isMemoized=!0,i2;if((memoizerific.numArgs||memoizerific.numArgs===0)&&memoizerific.numArgs!==argsLengthMinusOne+1)throw new Error(\"Memoizerific functions should always be called with the same number of arguments\");for(i2=0;i2<argsLengthMinusOne;i2++){if(lruPath[i2]={cacheItem:currentCache,arg:arguments[i2]},currentCache.has(arguments[i2])){currentCache=currentCache.get(arguments[i2]);continue}isMemoized=!1,newMap=new MapOrSimilar(!1),currentCache.set(arguments[i2],newMap),currentCache=newMap;}return isMemoized&&(currentCache.has(arguments[argsLengthMinusOne])?fnResult=currentCache.get(arguments[argsLengthMinusOne]):isMemoized=!1),isMemoized||(fnResult=fn.apply(null,arguments),currentCache.set(arguments[argsLengthMinusOne],fnResult)),limit>0&&(lruPath[argsLengthMinusOne]={cacheItem:currentCache,arg:arguments[argsLengthMinusOne]},isMemoized?moveToMostRecentLru(lru,lruPath):lru.push(lruPath),lru.length>limit&&removeCachedResult(lru.shift())),memoizerific.wasMemoized=isMemoized,memoizerific.numArgs=argsLengthMinusOne+1,fnResult};return memoizerific.limit=limit,memoizerific.wasMemoized=!1,memoizerific.cache=cache,memoizerific.lru=lru,memoizerific}};function moveToMostRecentLru(lru,lruPath){var lruLen=lru.length,lruPathLen=lruPath.length,isMatch,i2,ii;for(i2=0;i2<lruLen;i2++){for(isMatch=!0,ii=0;ii<lruPathLen;ii++)if(!isEqual(lru[i2][ii].arg,lruPath[ii].arg)){isMatch=!1;break}if(isMatch)break}lru.push(lru.splice(i2,1)[0]);}function removeCachedResult(removedLru){var removedLruLen=removedLru.length,currentLru=removedLru[removedLruLen-1],tmp,i2;for(currentLru.cacheItem.delete(currentLru.arg),i2=removedLruLen-2;i2>=0&&(currentLru=removedLru[i2],tmp=currentLru.cacheItem.get(currentLru.arg),!tmp||!tmp.size);i2--)currentLru.cacheItem.delete(currentLru.arg);}function isEqual(val1,val2){return val1===val2||val1!==val1&&val2!==val2}},{\"map-or-similar\":1}]},{},[3])(3)});}});function _extends(){return _extends=Object.assign?Object.assign.bind():function(n2){for(var e2=1;e2<arguments.length;e2++){var t2=arguments[e2];for(var r2 in t2)({}).hasOwnProperty.call(t2,r2)&&(n2[r2]=t2[r2]);}return n2},_extends.apply(null,arguments)}function _assertThisInitialized(e2){if(e2===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e2}function _setPrototypeOf(t2,e2){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t3,e3){return t3.__proto__=e3,t3},_setPrototypeOf(t2,e2)}function _inheritsLoose(t2,o2){t2.prototype=Object.create(o2.prototype),t2.prototype.constructor=t2,_setPrototypeOf(t2,o2);}function _getPrototypeOf(t2){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t3){return t3.__proto__||Object.getPrototypeOf(t3)},_getPrototypeOf(t2)}function _isNativeFunction(t2){try{return Function.toString.call(t2).indexOf(\"[native code]\")!==-1}catch{return typeof t2==\"function\"}}function _isNativeReflectConstruct(){try{var t2=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (_isNativeReflectConstruct=function(){return !!t2})()}function _construct(t2,e2,r2){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o2=[null];o2.push.apply(o2,e2);var p2=new(t2.bind.apply(t2,o2));return r2&&_setPrototypeOf(p2,r2.prototype),p2}function _wrapNativeSuper(t2){var r2=typeof Map==\"function\"?new Map:void 0;return _wrapNativeSuper=function(t3){if(t3===null||!_isNativeFunction(t3))return t3;if(typeof t3!=\"function\")throw new TypeError(\"Super expression must either be null or a function\");if(r2!==void 0){if(r2.has(t3))return r2.get(t3);r2.set(t3,Wrapper11);}function Wrapper11(){return _construct(t3,arguments,_getPrototypeOf(this).constructor)}return Wrapper11.prototype=Object.create(t3.prototype,{constructor:{value:Wrapper11,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper11,t3)},_wrapNativeSuper(t2)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n`,4:`Couldn't generate valid rgb string from %s, it returned %s.\n\n`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n`,9:`Please provide a number of steps to the modularScale helper.\n\n`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,11:`Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n`,12:`Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n`,13:`Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n`,14:`Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,15:`Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,16:`You must provide a template to this method.\n\n`,17:`You passed an unsupported selector state to this method.\n\n`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,19:`fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,21:\"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",22:\"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",23:`fontFace expects a name of a font-family.\n\n`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,25:`fontFace expects localFonts to be an array.\n\n`,26:`fontFace expects fileFormats to be an array.\n\n`,27:`radialGradient requries at least 2 color-stops to properly render.\n\n`,28:`Please supply a filename to retinaImage() as the first argument.\n\n`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,30:\"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n`,34:`borderRadius expects a radius value as a string or number as the second argument.\n\n`,35:`borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,36:`Property must be a string value.\n\n`,37:`Syntax Error at %s.\n\n`,38:`Formula contains a function that needs parentheses at %s.\n\n`,39:`Formula is missing closing parenthesis at %s.\n\n`,40:`Formula has too many closing parentheses at %s.\n\n`,41:`All values in a formula must have the same unit or be unitless.\n\n`,42:`Please provide a number of steps to the modularScale helper.\n\n`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,48:`fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,53:`fontFace expects localFonts to be an array.\n\n`,54:`fontFace expects fileFormats to be an array.\n\n`,55:`fontFace expects a name of a font-family.\n\n`,56:`linearGradient requries at least 2 color-stops to properly render.\n\n`,57:`radialGradient requries at least 2 color-stops to properly render.\n\n`,58:`Please supply a filename to retinaImage() as the first argument.\n\n`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,60:\"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",61:`Property must be a string value.\n\n`,62:`borderRadius expects a radius value as a string or number as the second argument.\n\n`,63:`borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n`,67:`You must provide a template to this method.\n\n`,68:`You passed an unsupported selector state to this method.\n\n`,69:`Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n`,70:`Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n`,71:`Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,72:`Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,73:`Please provide a valid CSS variable.\n\n`,74:`CSS variable not found and no default was provided.\n\n`,75:`important requires a valid style object, got a %s instead.\n\n`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n`,77:`remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n`,78:`base must be set in \"px\" or \"%\" but you set it in \"%s\".\n`};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var a2=args[0],b2=[],c2;for(c2=1;c2<args.length;c2+=1)b2.push(args[c2]);return b2.forEach(function(d2){a2=a2.replace(/%[a-z]/,d2);}),a2}var PolishedError=function(_Error){_inheritsLoose(PolishedError2,_Error);function PolishedError2(code){for(var _this,_len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return _this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args)))||this,_assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color){return Math.round(color*255)}function convertToInt(red,green,blue){return colorToInt(red)+\",\"+colorToInt(green)+\",\"+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert2){if(convert2===void 0&&(convert2=convertToInt),saturation===0)return convert2(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert2(finalRed,finalGreen,finalBlue)}var namedColorMap={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 nameToHex(color){if(typeof color!=\"string\")return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?\"#\"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i,rgbaRegex=/^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i,hslRegex=/^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i,hslaRegex=/^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 parseToRgb(color){if(typeof color!=\"string\")throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[2],16),green:parseInt(\"\"+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(\"\"+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(\"\"+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[2],16),green:parseInt(\"\"+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(\"\"+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[1],16),green:parseInt(\"\"+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(\"\"+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(\"\"+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[1],16),green:parseInt(\"\"+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(\"\"+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return {red:parseInt(\"\"+rgbMatched[1],10),green:parseInt(\"\"+rgbMatched[2],10),blue:parseInt(\"\"+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return {red:parseInt(\"\"+rgbaMatched[1],10),green:parseInt(\"\"+rgbaMatched[2],10),blue:parseInt(\"\"+rgbaMatched[3],10),alpha:parseFloat(\"\"+rgbaMatched[4])>1?parseFloat(\"\"+rgbaMatched[4])/100:parseFloat(\"\"+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(\"\"+hslMatched[1],10),saturation=parseInt(\"\"+hslMatched[2],10)/100,lightness=parseInt(\"\"+hslMatched[3],10)/100,rgbColorString=\"rgb(\"+hslToRgb(hue,saturation,lightness)+\")\",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return {red:parseInt(\"\"+hslRgbMatched[1],10),green:parseInt(\"\"+hslRgbMatched[2],10),blue:parseInt(\"\"+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(\"\"+hslaMatched[1],10),_saturation=parseInt(\"\"+hslaMatched[2],10)/100,_lightness=parseInt(\"\"+hslaMatched[3],10)/100,_rgbColorString=\"rgb(\"+hslToRgb(_hue,_saturation,_lightness)+\")\",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return {red:parseInt(\"\"+_hslRgbMatched[1],10),green:parseInt(\"\"+_hslRgbMatched[2],10),blue:parseInt(\"\"+_hslRgbMatched[3],10),alpha:parseFloat(\"\"+hslaMatched[4])>1?parseFloat(\"\"+hslaMatched[4])/100:parseFloat(\"\"+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color){var red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green<blue?6:0);break;case green:hue=(blue-red)/delta+2;break;default:hue=(red-green)/delta+4;break}return hue*=60,color.alpha!==void 0?{hue,saturation,lightness,alpha:color.alpha}:{hue,saturation,lightness}}function parseToHsl(color){return rgbToHsl(parseToRgb(color))}var reduceHexValue=function(value2){return value2.length===7&&value2[1]===value2[2]&&value2[3]===value2[4]&&value2[5]===value2[6]?\"#\"+value2[1]+value2[3]+value2[5]:value2},reduceHexValue$1=reduceHexValue;function numberToHex(value2){var hex=value2.toString(16);return hex.length===1?\"0\"+hex:hex}function colorToHex(color){return numberToHex(Math.round(color*255))}function convertToHex(red,green,blue){return reduceHexValue$1(\"#\"+colorToHex(red)+colorToHex(green)+colorToHex(blue))}function hslToHex(hue,saturation,lightness){return hslToRgb(hue,saturation,lightness,convertToHex)}function hsl(value2,saturation,lightness){if(typeof value2==\"number\"&&typeof saturation==\"number\"&&typeof lightness==\"number\")return hslToHex(value2,saturation,lightness);if(typeof value2==\"object\"&&saturation===void 0&&lightness===void 0)return hslToHex(value2.hue,value2.saturation,value2.lightness);throw new PolishedError(1)}function hsla(value2,saturation,lightness,alpha){if(typeof value2==\"number\"&&typeof saturation==\"number\"&&typeof lightness==\"number\"&&typeof alpha==\"number\")return alpha>=1?hslToHex(value2,saturation,lightness):\"rgba(\"+hslToRgb(value2,saturation,lightness)+\",\"+alpha+\")\";if(typeof value2==\"object\"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value2.alpha>=1?hslToHex(value2.hue,value2.saturation,value2.lightness):\"rgba(\"+hslToRgb(value2.hue,value2.saturation,value2.lightness)+\",\"+value2.alpha+\")\";throw new PolishedError(2)}function rgb(value2,green,blue){if(typeof value2==\"number\"&&typeof green==\"number\"&&typeof blue==\"number\")return reduceHexValue$1(\"#\"+numberToHex(value2)+numberToHex(green)+numberToHex(blue));if(typeof value2==\"object\"&&green===void 0&&blue===void 0)return reduceHexValue$1(\"#\"+numberToHex(value2.red)+numberToHex(value2.green)+numberToHex(value2.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue==\"string\"&&typeof secondValue==\"number\"){var rgbValue=parseToRgb(firstValue);return \"rgba(\"+rgbValue.red+\",\"+rgbValue.green+\",\"+rgbValue.blue+\",\"+secondValue+\")\"}else {if(typeof firstValue==\"number\"&&typeof secondValue==\"number\"&&typeof thirdValue==\"number\"&&typeof fourthValue==\"number\")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):\"rgba(\"+firstValue+\",\"+secondValue+\",\"+thirdValue+\",\"+fourthValue+\")\";if(typeof firstValue==\"object\"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):\"rgba(\"+firstValue.red+\",\"+firstValue.green+\",\"+firstValue.blue+\",\"+firstValue.alpha+\")\"}throw new PolishedError(7)}var isRgb=function(color){return typeof color.red==\"number\"&&typeof color.green==\"number\"&&typeof color.blue==\"number\"&&(typeof color.alpha!=\"number\"||typeof color.alpha>\"u\")},isRgba=function(color){return typeof color.red==\"number\"&&typeof color.green==\"number\"&&typeof color.blue==\"number\"&&typeof color.alpha==\"number\"},isHsl=function(color){return typeof color.hue==\"number\"&&typeof color.saturation==\"number\"&&typeof color.lightness==\"number\"&&(typeof color.alpha!=\"number\"||typeof color.alpha>\"u\")},isHsla=function(color){return typeof color.hue==\"number\"&&typeof color.saturation==\"number\"&&typeof color.lightness==\"number\"&&typeof color.alpha==\"number\"};function toColorString(color){if(typeof color!=\"object\")throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return hsla(color);if(isHsl(color))return hsl(color);throw new PolishedError(8)}function curried(f2,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f2.apply(this,combined):curried(f2,length,combined)}}function curry(f2){return curried(f2,f2.length,[])}function adjustHue(degree,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{hue:hslColor.hue+parseFloat(degree)}))}curry(adjustHue);function guard(lowerBoundary,upperBoundary,value2){return Math.max(lowerBoundary,Math.min(upperBoundary,value2))}function darken(amount,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function desaturate(amount,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{saturation:guard(0,1,hslColor.saturation-parseFloat(amount))}))}curry(desaturate);function lighten(amount,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function mix(weight,color,otherColor){if(color===\"transparent\")return otherColor;if(otherColor===\"transparent\")return color;if(weight===0)return otherColor;var parsedColor1=parseToRgb(color),color1=_extends({},parsedColor1,{alpha:typeof parsedColor1.alpha==\"number\"?parsedColor1.alpha:1}),parsedColor2=parseToRgb(otherColor),color2=_extends({},parsedColor2,{alpha:typeof parsedColor2.alpha==\"number\"?parsedColor2.alpha:1}),alphaDelta=color1.alpha-color2.alpha,x2=parseFloat(weight)*2-1,y2=x2*alphaDelta===-1?x2:x2+alphaDelta,z2=1+x2*alphaDelta,weight1=(y2/z2+1)/2,weight2=1-weight1,mixedColor={red:Math.floor(color1.red*weight1+color2.red*weight2),green:Math.floor(color1.green*weight1+color2.green*weight2),blue:Math.floor(color1.blue*weight1+color2.blue*weight2),alpha:color1.alpha*parseFloat(weight)+color2.alpha*(1-parseFloat(weight))};return rgba(mixedColor)}var curriedMix=curry(mix),mix$1=curriedMix;function opacify(amount,color){if(color===\"transparent\")return color;var parsedColor=parseToRgb(color),alpha=typeof parsedColor.alpha==\"number\"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,(alpha*100+parseFloat(amount)*100)/100)});return rgba(colorWithAlpha)}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function saturate(amount,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{saturation:guard(0,1,hslColor.saturation+parseFloat(amount))}))}curry(saturate);function setHue(hue,color){return color===\"transparent\"?color:toColorString(_extends({},parseToHsl(color),{hue:parseFloat(hue)}))}curry(setHue);function setLightness(lightness,color){return color===\"transparent\"?color:toColorString(_extends({},parseToHsl(color),{lightness:parseFloat(lightness)}))}curry(setLightness);function setSaturation(saturation,color){return color===\"transparent\"?color:toColorString(_extends({},parseToHsl(color),{saturation:parseFloat(saturation)}))}curry(setSaturation);function shade(percentage,color){return color===\"transparent\"?color:mix$1(parseFloat(percentage),\"rgb(0, 0, 0)\",color)}curry(shade);function tint(percentage,color){return color===\"transparent\"?color:mix$1(parseFloat(percentage),\"rgb(255, 255, 255)\",color)}curry(tint);function transparentize(amount,color){if(color===\"transparent\")return color;var parsedColor=parseToRgb(color),alpha=typeof parsedColor.alpha==\"number\"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize;var Wrapper=styled.div(withReset,({theme})=>({backgroundColor:theme.base===\"light\"?\"rgba(0,0,0,.01)\":\"rgba(255,255,255,.01)\",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:20,margin:\"25px 0 40px\",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2})),EmptyBlock=props=>React20__default.createElement(Wrapper,{...props,className:\"docblock-emptyblock sb-unstyled\"});var StyledSyntaxHighlighter=styled(SyntaxHighlighter)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,lineHeight:\"19px\",margin:\"25px 0 40px\",borderRadius:theme.appBorderRadius,boxShadow:theme.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\"}}));var SourceSkeletonWrapper=styled.div(({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:theme.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\"})),SourceSkeletonPlaceholder=styled.div(({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:\"60%\",[`&:first-child${ignoreSsrWarning}`]:{margin:0}})),SourceSkeleton=()=>React20__default.createElement(SourceSkeletonWrapper,null,React20__default.createElement(SourceSkeletonPlaceholder,null),React20__default.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}}),React20__default.createElement(SourceSkeletonPlaceholder,{style:{width:\"30%\"}}),React20__default.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}})),Source=({isLoading,error,language,code,dark,format:format3=!0,...rest})=>{let{typography}=useTheme();if(isLoading)return React20__default.createElement(SourceSkeleton,null);if(error)return React20__default.createElement(EmptyBlock,null,error);let syntaxHighlighter=React20__default.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format3,language:language??\"jsx\",className:\"docblock-source sb-unstyled\",...rest},code);if(typeof dark>\"u\")return syntaxHighlighter;let overrideTheme=dark?themes.dark:themes.light;return React20__default.createElement(ThemeProvider,{theme:convert({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)};var toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,breakpoint=600,Title=styled.h1(withReset,({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:\"32px\",[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.l1,lineHeight:\"36px\",marginBottom:\"16px\"}})),Subtitle=styled.h2(withReset,({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:\"20px\",borderBottom:\"none\",marginBottom:15,[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.m1,lineHeight:\"28px\",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)})),DocsContent=styled.div(({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\"},headers={margin:\"20px 0 8px\",padding:0,cursor:\"text\",position:\"relative\",color:theme.color.defaultText,\"&:first-of-type\":{marginTop:0,paddingTop:0},\"&:hover a.anchor\":{textDecoration:\"none\"},\"& code\":{fontSize:\"inherit\"}},code={lineHeight:1,margin:\"0 2px\",padding:\"3px 5px\",whiteSpace:\"nowrap\",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base===\"light\"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base===\"light\"?theme.color.lighter:theme.color.border};return {maxWidth:1e3,width:\"100%\",minWidth:0,[toGlobalSelector(\"a\")]:{...reset,fontSize:\"inherit\",lineHeight:\"24px\",color:theme.color.secondary,textDecoration:\"none\",\"&.absent\":{color:\"#cc0000\"},\"&.anchor\":{display:\"block\",paddingLeft:30,marginLeft:-30,cursor:\"pointer\",position:\"absolute\",top:0,left:0,bottom:0}},[toGlobalSelector(\"blockquote\")]:{...reset,margin:\"16px 0\",borderLeft:`4px solid ${theme.color.medium}`,padding:\"0 15px\",color:theme.color.dark,\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}},[toGlobalSelector(\"div\")]:reset,[toGlobalSelector(\"dl\")]:{...reset,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}},[toGlobalSelector(\"h1\")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h2\")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector(\"h3\")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h4\")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector(\"h5\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector(\"h6\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector(\"hr\")]:{border:\"0 none\",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector(\"img\")]:{maxWidth:\"100%\"},[toGlobalSelector(\"li\")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:\"24px\",\"& + li\":{marginTop:\".25em\"},\"& ul, & ol\":{marginTop:\".25em\",marginBottom:0},\"& code\":code},[toGlobalSelector(\"ol\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},[toGlobalSelector(\"p\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",color:theme.color.defaultText,\"& code\":code},[toGlobalSelector(\"pre\")]:{...reset,fontFamily:theme.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\"}},[toGlobalSelector(\"span\")]:{...reset,\"&.frame\":{display:\"block\",overflow:\"hidden\",\"& > span\":{border:`1px solid ${theme.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:theme.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\"}}},[toGlobalSelector(\"table\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",padding:0,borderCollapse:\"collapse\",\"& tr\":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},\"& tr:nth-of-type(2n)\":{backgroundColor:theme.base===\"dark\"?theme.color.darker:theme.color.lighter},\"& tr th\":{fontWeight:\"bold\",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:\"6px 13px\"},\"& tr td\":{border:`1px solid ${theme.appBorderColor}`,color:theme.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}},[toGlobalSelector(\"ul\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0},listStyle:\"disc\"}}}),DocsWrapper=styled.div(({theme})=>({background:theme.background.content,display:\"flex\",flexDirection:\"row-reverse\",justifyContent:\"center\",padding:\"4rem 20px\",minHeight:\"100vh\",boxSizing:\"border-box\",gap:\"3rem\",[`@media (min-width: ${breakpoint}px)`]:{}})),DocsPageWrapper=({children,toc})=>React20__default.createElement(DocsWrapper,{className:\"sbdocs sbdocs-wrapper\"},toc,React20__default.createElement(DocsContent,{className:\"sbdocs sbdocs-content\"},children));var getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:theme.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 ${theme.appBorderColor}`});var{window:globalWindow}=globalThis,IFrame=class extends Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id);}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:\"top left\"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return React20__default.createElement(\"iframe\",{id,title,src,...allowFullScreen?{allow:\"fullscreen\"}:{},loading:\"lazy\",...rest})}};var ZoomContext=createContext({scale:1});var{PREVIEW_URL}=globalThis,BASE_URL=PREVIEW_URL||\"iframe.html\",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?\"--primary\":\"\"}`,InlineStory=props=>{let storyRef=useRef(),[showLoader,setShowLoader]=useState(!0),[error,setError]=useState(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return useEffect(()=>{if(!(story&&storyRef.current))return ()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then(()=>cleanup());}},[autoplay,renderStoryToElement,story]),error?React20__default.createElement(\"pre\",null,React20__default.createElement(ErrorFormatter,{error})):React20__default.createElement(React20__default.Fragment,null,height?React20__default.createElement(\"style\",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&React20__default.createElement(StorySkeleton,null),React20__default.createElement(\"div\",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,\"data-name\":story.name}))},IFrameStory=({story,height=\"500px\"})=>React20__default.createElement(\"div\",{style:{width:\"100%\",height}},React20__default.createElement(ZoomContext.Consumer,null,({scale})=>React20__default.createElement(IFrame,{key:\"iframe\",id:`iframe--${story.id}`,title:story.name,src:getStoryHref(BASE_URL,story.id,{viewMode:\"story\"}),allowFullScreen:!0,scale,style:{width:\"100%\",height:\"100%\",border:\"0 none\"}}))),ErrorMessage=styled.strong(({theme})=>({color:theme.color.orange})),Story=props=>{let{inline,story}=props;return inline&&!props.autoplay&&story.usesMount?React20__default.createElement(ErrorMessage,null,\"This story mounts inside of play. Set\",\" \",React20__default.createElement(\"a\",{href:\"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay\"},\"autoplay\"),\" \",\"to true to view this story.\"):React20__default.createElement(\"div\",{id:storyBlockIdFromId(props),className:\"sb-story sb-unstyled\",\"data-story-block\":\"true\"},inline?React20__default.createElement(InlineStory,{...props}):React20__default.createElement(IFrameStory,{...props}))},StorySkeleton=()=>React20__default.createElement(Loader,null);var Bar=styled(FlexBar)({position:\"absolute\",left:0,right:0,top:0,transition:\"transform .2s linear\"}),Wrapper2=styled.div({display:\"flex\",alignItems:\"center\",gap:4}),IconPlaceholder=styled.div(({theme})=>({width:14,height:14,borderRadius:2,margin:\"0 7px\",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),Toolbar=({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>React20__default.createElement(Bar,{...rest},React20__default.createElement(Wrapper2,{key:\"left\"},isLoading?[1,2,3].map(key=>React20__default.createElement(IconPlaceholder,{key})):React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(IconButton,{key:\"zoomin\",onClick:e2=>{e2.preventDefault(),zoom(.8);},title:\"Zoom in\"},React20__default.createElement(ZoomIcon,null)),React20__default.createElement(IconButton,{key:\"zoomout\",onClick:e2=>{e2.preventDefault(),zoom(1.25);},title:\"Zoom out\"},React20__default.createElement(ZoomOutIcon,null)),React20__default.createElement(IconButton,{key:\"zoomreset\",onClick:e2=>{e2.preventDefault(),resetZoom();},title:\"Reset zoom\"},React20__default.createElement(ZoomResetIcon,null)))));var ChildrenContainer=styled.div(({isColumn,columns,layout})=>({display:isColumn||!columns?\"block\":\"flex\",position:\"relative\",flexWrap:\"wrap\",overflow:\"auto\",flexDirection:isColumn?\"column\":\"row\",\"& .innerZoomElementWrapper > *\":isColumn?{width:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"block\"}:{maxWidth:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"inline-block\"}}),({layout=\"padded\",inline})=>layout===\"centered\"||layout===\"padded\"?{padding:inline?\"32px 22px\":\"0px\",\"& .innerZoomElementWrapper > *\":{width:\"auto\",border:\"8px solid transparent!important\"}}:{},({layout=\"padded\",inline})=>layout===\"centered\"&&inline?{display:\"flex\",justifyContent:\"center\",justifyItems:\"center\",alignContent:\"center\",alignItems:\"center\"}:{},({columns})=>columns&&columns>1?{\".innerZoomElementWrapper > *\":{minWidth:`calc(100% / ${columns} - 20px)`}}:{}),StyledSource=styled(Source)(({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:\"none\",background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":curriedDarken$1(.05,theme.background.content)}})),PreviewContainer=styled.div(({theme,withSource,isExpanded})=>({position:\"relative\",overflow:\"hidden\",margin:\"25px 0 40px\",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,\"h3 + &\":{marginTop:\"16px\"}}),({withToolbar})=>withToolbar&&{paddingTop:40}),getSource=(withSource,expanded,setExpanded)=>{switch(!0){case!!(withSource&&withSource.error):return {source:null,actionItem:{title:\"No code available\",className:\"docblock-code-toggle docblock-code-toggle--disabled\",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return {source:React20__default.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Hide code\",className:\"docblock-code-toggle docblock-code-toggle--expanded\",onClick:()=>setExpanded(!1)}};default:return {source:React20__default.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Show code\",className:\"docblock-code-toggle\",onClick:()=>setExpanded(!0)}}}};function getStoryId(children){if(Children.count(children)===1){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=styled(Toolbar)({position:\"absolute\",top:0,left:0,right:0,height:40}),Relative=styled.div({overflow:\"hidden\",position:\"relative\"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout=\"padded\",inline=!1,...props})=>{let[expanded,setExpanded]=useState(isExpanded),{source,actionItem}=getSource(withSource,expanded,setExpanded),[scale,setScale]=useState(1),previewClasses=[className].concat([\"sbdocs\",\"sbdocs-preview\",\"sb-unstyled\"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=useState(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=globalThis,copyToClipboard=useCallback(async text=>{let{createCopyToClipboardFunction}=await import('storybook/internal/components');createCopyToClipboardFunction();},[]),onCopyCapture=e2=>{let selection=globalWindow4.getSelection();selection&&selection.type===\"Range\"||(e2.preventDefault(),additionalActionItems.filter(item=>item.title===\"Copied\").length===0&&copyToClipboard(source?.props.code??\"\").then(()=>{setAdditionalActionItems([...additionalActionItems,{title:\"Copied\",onClick:()=>{}}]),globalWindow4.setTimeout(()=>setAdditionalActionItems(additionalActionItems.filter(item=>item.title!==\"Copied\")),1500);}));};return React20__default.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(\" \")},withToolbar&&React20__default.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z2=>setScale(scale*z2),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:\"./iframe.html\"}),React20__default.createElement(ZoomContext.Provider,{value:{scale}},React20__default.createElement(Relative,{className:\"docs-story\",onCopyCapture:withSource&&onCopyCapture},React20__default.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout,inline},React20__default.createElement(Zoom.Element,{centered:layout===\"centered\",scale:inline?scale:1},Array.isArray(children)?children.map((child,i2)=>React20__default.createElement(\"div\",{key:i2},child)):React20__default.createElement(\"div\",null,children))),React20__default.createElement(ActionBar,{actionItems}))),withSource&&expanded&&source)};styled(Preview)(()=>({\".docs-story\":{paddingTop:32,paddingBottom:40}}));var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return entries.length===1?React20__default.createElement(ArgsTable,{...entries[0][1],...props}):React20__default.createElement(TabsState,null,entries.map((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,Component4=\"div\",argsTableProps=index===0?props:{sort:props.sort};return React20__default.createElement(Component4,{key:id,id,title:label},({active})=>active?React20__default.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null)}))};var Label=styled.div(({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),Sample=styled.div({overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"}),TypeSpecimen=styled.div({display:\"flex\",flexDirection:\"row\",alignItems:\"baseline\",\"&:not(:last-child)\":{marginBottom:\"1rem\"}}),Wrapper3=styled.div(withReset,({theme})=>({...getBlockBackgroundStyle(theme),margin:\"25px 0 40px\",padding:\"30px 20px\"})),Typeset=({fontFamily,fontSizes,fontWeight,sampleText,...props})=>React20__default.createElement(Wrapper3,{...props,className:\"docblock-typeset sb-unstyled\"},fontSizes.map(size=>React20__default.createElement(TypeSpecimen,{key:size},React20__default.createElement(Label,null,size),React20__default.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||\"Was he a beast if music could move him so?\"))));var ItemTitle=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText})),ItemSubtitle=styled.div(({theme})=>({color:theme.base===\"light\"?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),ItemDescription=styled.div({flex:\"0 0 30%\",lineHeight:\"20px\",marginTop:5}),SwatchLabel=styled.div(({theme})=>({flex:1,textAlign:\"center\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:\"hidden\",color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),\"> div\":{display:\"inline-block\",overflow:\"hidden\",maxWidth:\"100%\",textOverflow:\"ellipsis\"},span:{display:\"block\",marginTop:2}})),SwatchLabels=styled.div({display:\"flex\",flexDirection:\"row\"}),Swatch=styled.div(({background})=>({position:\"relative\",flex:1,\"&::before\":{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background,content:'\"\"'}})),SwatchColors=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),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\"})),SwatchSpecimen=styled.div({display:\"flex\",flexDirection:\"column\",flex:1,position:\"relative\",marginBottom:30}),Swatches=styled.div({flex:1,display:\"flex\",flexDirection:\"row\"}),Item=styled.div({display:\"flex\",alignItems:\"flex-start\"}),ListName=styled.div({flex:\"0 0 30%\"}),ListSwatches=styled.div({flex:1}),ListHeading=styled.div(({theme})=>({display:\"flex\",flexDirection:\"row\",alignItems:\"center\",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),List=styled.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:\"20px\",display:\"flex\",flexDirection:\"column\"}));function renderSwatch(color,index){return React20__default.createElement(Swatch,{key:`${color}-${index}`,title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return React20__default.createElement(SwatchLabel,{key:`${color}-${index}`,title:color},React20__default.createElement(\"div\",null,color,colorDescription&&React20__default.createElement(\"span\",null,colorDescription)))}function renderSwatchSpecimen(colors){if(Array.isArray(colors))return React20__default.createElement(SwatchSpecimen,null,React20__default.createElement(SwatchColors,null,colors.map((color,index)=>renderSwatch(color,index))),React20__default.createElement(SwatchLabels,null,colors.map((color,index)=>renderSwatchLabel(color,index))));let swatchElements=[],labelElements=[];for(let colorKey in colors){let colorValue=colors[colorKey];swatchElements.push(renderSwatch(colorValue,swatchElements.length)),labelElements.push(renderSwatchLabel(colorKey,labelElements.length,colorValue));}return React20__default.createElement(SwatchSpecimen,null,React20__default.createElement(SwatchColors,null,swatchElements),React20__default.createElement(SwatchLabels,null,labelElements))}var ColorItem=({title,subtitle,colors})=>React20__default.createElement(Item,null,React20__default.createElement(ItemDescription,null,React20__default.createElement(ItemTitle,null,title),React20__default.createElement(ItemSubtitle,null,subtitle)),React20__default.createElement(Swatches,null,renderSwatchSpecimen(colors))),ColorPalette=({children,...props})=>React20__default.createElement(ResetWrapper,null,React20__default.createElement(List,{...props,className:\"docblock-colorpalette sb-unstyled\"},React20__default.createElement(ListHeading,null,React20__default.createElement(ListName,null,\"Name\"),React20__default.createElement(ListSwatches,null,\"Swatches\")),children));var ItemLabel=styled.div(({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s1,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2,display:\"-webkit-box\",overflow:\"hidden\",wordBreak:\"break-word\",textOverflow:\"ellipsis\",WebkitLineClamp:2,WebkitBoxOrient:\"vertical\"})),ItemSpecimen=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),overflow:\"hidden\",height:40,width:40,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:\"none\",\"> img, > svg\":{width:20,height:20}})),Item2=styled.div({display:\"inline-flex\",flexDirection:\"row\",alignItems:\"center\",width:\"100%\"}),List2=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(auto-fill, minmax(140px, 1fr))\",gridGap:\"8px 16px\",gridAutoFlow:\"row dense\",gridAutoRows:50}),IconItem=({name,children})=>React20__default.createElement(Item2,null,React20__default.createElement(ItemSpecimen,null,children),React20__default.createElement(ItemLabel,null,name)),IconGallery=({children,...props})=>React20__default.createElement(ResetWrapper,null,React20__default.createElement(List2,{...props,className:\"docblock-icongallery sb-unstyled\"},children));function build_html_default(options){let forEach=[].forEach,some=[].some,body=typeof window<\"u\"&&document.body,SPACE_CHAR=\" \",tocElement,currentlyHighlighting=!0,eventCount=0;function createEl(d2,container){let link=container.appendChild(createLink(d2));if(d2.children.length){let list=createList(d2.isCollapsed);d2.children.forEach(child=>{createEl(child,list);}),link.appendChild(list);}}function render(parent,data){let container=createList(!1);if(data.forEach(d2=>{createEl(d2,container);}),tocElement=parent||tocElement,tocElement!==null)return tocElement.firstChild&&tocElement.removeChild(tocElement.firstChild),data.length===0?tocElement:tocElement.appendChild(container)}function createLink(data){let item=document.createElement(\"li\"),a2=document.createElement(\"a\");return options.listItemClass&&item.setAttribute(\"class\",options.listItemClass),options.onClick&&(a2.onclick=options.onClick),options.includeTitleTags&&a2.setAttribute(\"title\",data.textContent),options.includeHtml&&data.childNodes.length?forEach.call(data.childNodes,node=>{a2.appendChild(node.cloneNode(!0));}):a2.textContent=data.textContent,a2.setAttribute(\"href\",`${options.basePath}#${data.id}`),a2.setAttribute(\"class\",`${options.linkClass+SPACE_CHAR}node-name--${data.nodeName}${SPACE_CHAR}${options.extraLinkClasses}`),item.appendChild(a2),item}function createList(isCollapsed){let listElement=options.orderedList?\"ol\":\"ul\",list=document.createElement(listElement),classes=options.listClass+SPACE_CHAR+options.extraListClasses;return isCollapsed&&(classes=classes+SPACE_CHAR+options.collapsibleClass,classes=classes+SPACE_CHAR+options.isCollapsedClass),list.setAttribute(\"class\",classes),list}function updateFixedSidebarClass(){let scrollTop=getScrollTop(),posFixedEl=document.querySelector(options.positionFixedSelector);options.fixedSidebarOffset===\"auto\"&&(options.fixedSidebarOffset=tocElement.offsetTop),scrollTop>options.fixedSidebarOffset?posFixedEl.className.indexOf(options.positionFixedClass)===-1&&(posFixedEl.className+=SPACE_CHAR+options.positionFixedClass):posFixedEl.className=posFixedEl.className.replace(SPACE_CHAR+options.positionFixedClass,\"\");}function getHeadingTopPos(obj){let position=0;return obj!==null&&(position=obj.offsetTop,options.hasInnerContainers&&(position+=getHeadingTopPos(obj.offsetParent))),position}function updateClassname(obj,className){return obj&&obj.className!==className&&(obj.className=className),obj}function updateToc(headingsArray,event){options.positionFixedSelector&&updateFixedSidebarClass();let headings=headingsArray,clickedHref=event?.target?.getAttribute?event?.target?.getAttribute(\"href\"):null,isBottomMode=clickedHref&&clickedHref.charAt(0)===\"#\"?getIsHeaderBottomMode(clickedHref.replace(\"#\",\"\")):!1,shouldUpdate=currentlyHighlighting||isBottomMode;if(event&&eventCount<5&&eventCount++,shouldUpdate&&tocElement&&headings.length>0){let topHeader=getTopHeader(headings),oldActiveTocLink=tocElement.querySelector(`.${options.activeLinkClass}`),topHeaderId=topHeader.id.replace(/([ #;&,.+*~':\"!^$[\\]()=>|/\\\\@])/g,\"\\\\$1\"),hashId=window.location.hash.replace(\"#\",\"\"),activeId=topHeaderId,isPageBottomMode=getIsPageBottomMode();clickedHref&&isBottomMode?activeId=clickedHref.replace(\"#\",\"\"):hashId&&hashId!==topHeaderId&&isPageBottomMode&&(getIsHeaderBottomMode(topHeaderId)||eventCount<=2)&&(activeId=hashId);let activeTocLink=tocElement.querySelector(`.${options.linkClass}[href=\"${options.basePath}#${activeId}\"]`);if(oldActiveTocLink===activeTocLink)return;let tocLinks=tocElement.querySelectorAll(`.${options.linkClass}`);forEach.call(tocLinks,tocLink=>{updateClassname(tocLink,tocLink.className.replace(SPACE_CHAR+options.activeLinkClass,\"\"));});let tocLis=tocElement.querySelectorAll(`.${options.listItemClass}`);forEach.call(tocLis,tocLi=>{updateClassname(tocLi,tocLi.className.replace(SPACE_CHAR+options.activeListItemClass,\"\"));}),activeTocLink&&activeTocLink.className.indexOf(options.activeLinkClass)===-1&&(activeTocLink.className+=SPACE_CHAR+options.activeLinkClass);let li=activeTocLink?.parentNode;li&&li.className.indexOf(options.activeListItemClass)===-1&&(li.className+=SPACE_CHAR+options.activeListItemClass);let tocLists=tocElement.querySelectorAll(`.${options.listClass}.${options.collapsibleClass}`);forEach.call(tocLists,list=>{list.className.indexOf(options.isCollapsedClass)===-1&&(list.className+=SPACE_CHAR+options.isCollapsedClass);}),activeTocLink?.nextSibling&&activeTocLink.nextSibling.className.indexOf(options.isCollapsedClass)!==-1&&updateClassname(activeTocLink.nextSibling,activeTocLink.nextSibling.className.replace(SPACE_CHAR+options.isCollapsedClass,\"\")),removeCollapsedFromParents(activeTocLink?.parentNode.parentNode);}}function removeCollapsedFromParents(element){return element&&element.className.indexOf(options.collapsibleClass)!==-1&&element.className.indexOf(options.isCollapsedClass)!==-1?(updateClassname(element,element.className.replace(SPACE_CHAR+options.isCollapsedClass,\"\")),removeCollapsedFromParents(element.parentNode.parentNode)):element}function disableTocAnimation(event){let target=event.target||event.srcElement;typeof target.className!=\"string\"||target.className.indexOf(options.linkClass)===-1||(currentlyHighlighting=!1);}function enableTocAnimation(){currentlyHighlighting=!0;}function getCurrentlyHighlighting(){return currentlyHighlighting}function getIsHeaderBottomMode(headerId){let scrollEl=getScrollEl();return (document?.getElementById(headerId)).offsetTop>scrollEl.offsetHeight-scrollEl.clientHeight*1.4-options.bottomModeThreshold}function getIsPageBottomMode(){let scrollEl=getScrollEl(),isScrollable=scrollEl.scrollHeight>scrollEl.clientHeight,isBottomMode=getScrollTop()+scrollEl.clientHeight>scrollEl.offsetHeight-options.bottomModeThreshold;return isScrollable&&isBottomMode}function getScrollEl(){let el;return options.scrollContainer&&document.querySelector(options.scrollContainer)?el=document.querySelector(options.scrollContainer):el=document.documentElement||body,el}function getScrollTop(){return getScrollEl()?.scrollTop||0}function getTopHeader(headings,scrollTop=getScrollTop()){let topHeader;return some.call(headings,(heading,i2)=>{if(getHeadingTopPos(heading)>scrollTop+options.headingsOffset+10){let index=i2===0?i2:i2-1;return topHeader=headings[index],!0}if(i2===headings.length-1)return topHeader=headings[headings.length-1],!0}),topHeader}function updateUrlHashForHeader(headingsArray){let scrollTop=getScrollTop(),topHeader=getTopHeader(headingsArray,scrollTop),isPageBottomMode=getIsPageBottomMode();if((!topHeader||scrollTop<5)&&!isPageBottomMode)window.location.hash===\"#\"||window.location.hash===\"\"||window.history.pushState(null,null,\"#\");else if(topHeader&&!isPageBottomMode){let newHash=`#${topHeader.id}`;window.location.hash!==newHash&&window.history.pushState(null,null,newHash);}}return {enableTocAnimation,disableTocAnimation,render,updateToc,getCurrentlyHighlighting,getTopHeader,getScrollTop,updateUrlHashForHeader}}var default_options_default={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(e2){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:\"auto\",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:\"is-position-fixed\",fixedSidebarOffset:\"auto\",includeHtml:!1,includeTitleTags:!1,onClick:function(e2){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:\"\",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function parseContent(options){let reduce=[].reduce;function getLastItem(array2){return array2[array2.length-1]}function getHeadingLevel(heading){return +heading.nodeName.toUpperCase().replace(\"H\",\"\")}function isHTMLElement(maybeElement){try{return maybeElement instanceof window.HTMLElement||maybeElement instanceof window.parent.HTMLElement}catch{return maybeElement instanceof window.HTMLElement}}function getHeadingObject(heading){if(!isHTMLElement(heading))return heading;if(options.ignoreHiddenElements&&(!heading.offsetHeight||!heading.offsetParent))return null;let headingLabel=heading.getAttribute(\"data-heading-label\")||(options.headingLabelCallback?String(options.headingLabelCallback(heading.innerText)):(heading.innerText||heading.textContent).trim()),obj={id:heading.id,children:[],nodeName:heading.nodeName,headingLevel:getHeadingLevel(heading),textContent:headingLabel};return options.includeHtml&&(obj.childNodes=heading.childNodes),options.headingObjectCallback?options.headingObjectCallback(obj,heading):obj}function addNode(node,nest){let obj=getHeadingObject(node),level=obj.headingLevel,array2=nest,lastItem=getLastItem(array2),lastItemLevel=lastItem?lastItem.headingLevel:0,counter=level-lastItemLevel;for(;counter>0&&(lastItem=getLastItem(array2),!(lastItem&&level===lastItem.headingLevel));)lastItem&&lastItem.children!==void 0&&(array2=lastItem.children),counter--;return level>=options.collapseDepth&&(obj.isCollapsed=!0),array2.push(obj),array2}function selectHeadings(contentElement,headingSelector){let selectors=headingSelector;options.ignoreSelector&&(selectors=headingSelector.split(\",\").map(function(selector){return `${selector.trim()}:not(${options.ignoreSelector})`}));try{return contentElement.querySelectorAll(selectors)}catch{return console.warn(`Headers not found with selector: ${selectors}`),null}}function nestHeadingsArray(headingsArray){return reduce.call(headingsArray,function(prev,curr){let currentHeading=getHeadingObject(curr);return currentHeading&&addNode(currentHeading,prev.nest),prev},{nest:[]})}return {nestHeadingsArray,selectHeadings}}function initSmoothScrolling(options){var duration=options.duration,offset=options.offset;if(typeof window>\"u\"||typeof location>\"u\")return;var pageUrl=location.hash?stripHash(location.href):location.href;delegatedLinkHijacking();function delegatedLinkHijacking(){document.body.addEventListener(\"click\",onClick,!1);function onClick(e2){!isInPageLink(e2.target)||e2.target.className.indexOf(\"no-smooth-scroll\")>-1||e2.target.href.charAt(e2.target.href.length-2)===\"#\"&&e2.target.href.charAt(e2.target.href.length-1)===\"!\"||e2.target.className.indexOf(options.linkClass)===-1||jump(e2.target.hash,{duration,offset,callback:function(){setFocus(e2.target.hash);}});}}function isInPageLink(n2){return n2.tagName.toLowerCase()===\"a\"&&(n2.hash.length>0||n2.href.charAt(n2.href.length-1)===\"#\")&&(stripHash(n2.href)===pageUrl||stripHash(n2.href)+\"#\"===pageUrl)}function stripHash(url){return url.slice(0,url.lastIndexOf(\"#\"))}function setFocus(hash){var element=document.getElementById(hash.substring(1));element&&(/^(?:a|select|input|button|textarea)$/i.test(element.tagName)||(element.tabIndex=-1),element.focus());}}function jump(target,options){var start=window.pageYOffset,opt={duration:options.duration,offset:options.offset||0,callback:options.callback,easing:options.easing||easeInOutQuad},tgt=document.querySelector('[id=\"'+decodeURI(target).split(\"#\").join(\"\")+'\"]')||document.querySelector('[id=\"'+target.split(\"#\").join(\"\")+'\"]'),distance=typeof target==\"string\"?opt.offset+(target?tgt&&tgt.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):target,duration=typeof opt.duration==\"function\"?opt.duration(distance):opt.duration,timeStart,timeElapsed;requestAnimationFrame(function(time){timeStart=time,loop(time);});function loop(time){timeElapsed=time-timeStart,window.scrollTo(0,opt.easing(timeElapsed,start,distance,duration)),timeElapsed<duration?requestAnimationFrame(loop):end();}function end(){window.scrollTo(0,start+distance),typeof opt.callback==\"function\"&&opt.callback();}function easeInOutQuad(t2,b2,c2,d2){return t2/=d2/2,t2<1?c2/2*t2*t2+b2:(t2--,-c2/2*(t2*(t2-2)-1)+b2)}}function updateTocScroll(options){let toc=options.tocScrollingWrapper||options.tocElement||document.querySelector(options.tocSelector);if(toc&&toc.scrollHeight>toc.clientHeight){let activeItem=toc.querySelector(`.${options.activeListItemClass}`);if(activeItem){let scrollAmount=activeItem.offsetTop-options.tocScrollOffset;toc.scrollTop=scrollAmount>0?scrollAmount:0;}}}var _options={},_buildHtml,_parseContent,_headingsArray,_scrollListener,clickListener;function init(customOptions){let hasInitialized=!1;_options=extend(default_options_default,customOptions||{}),_options.scrollSmooth&&(_options.duration=_options.scrollSmoothDuration,_options.offset=_options.scrollSmoothOffset,initSmoothScrolling(_options)),_buildHtml=build_html_default(_options),_parseContent=parseContent(_options),destroy();let contentElement=getContentElement(_options);if(contentElement===null)return;let tocElement=getTocElement(_options);if(tocElement===null||(_headingsArray=_parseContent.selectHeadings(contentElement,_options.headingSelector),_headingsArray===null))return;let nestedHeadings=_parseContent.nestHeadingsArray(_headingsArray).nest;if(!_options.skipRendering)_buildHtml.render(tocElement,nestedHeadings);else return this;let isClick=!1,scrollHandlerTimeout=_options.scrollHandlerTimeout||_options.throttleTimeout;_scrollListener=((fn,delay)=>getScrollHandler(fn,delay,_options.scrollHandlerType))(e2=>{_buildHtml.updateToc(_headingsArray,e2),!_options.disableTocScrollSync&&!isClick&&updateTocScroll(_options),_options.enableUrlHashUpdateOnScroll&&hasInitialized&&_buildHtml.getCurrentlyHighlighting()&&_buildHtml.updateUrlHashForHeader(_headingsArray);let isTop=e2?.target?.scrollingElement?.scrollTop===0;(e2&&(e2.eventPhase===0||e2.currentTarget===null)||isTop)&&(_buildHtml.updateToc(_headingsArray),_options.scrollEndCallback?.(e2));},scrollHandlerTimeout),hasInitialized||(_scrollListener(),hasInitialized=!0),window.onhashchange=window.onscrollend=e2=>{_scrollListener(e2);},_options.scrollContainer&&document.querySelector(_options.scrollContainer)?(document.querySelector(_options.scrollContainer).addEventListener(\"scroll\",_scrollListener,!1),document.querySelector(_options.scrollContainer).addEventListener(\"resize\",_scrollListener,!1)):(document.addEventListener(\"scroll\",_scrollListener,!1),document.addEventListener(\"resize\",_scrollListener,!1));let timeout=null;clickListener=throttle(event=>{isClick=!0,_options.scrollSmooth&&_buildHtml.disableTocAnimation(event),_buildHtml.updateToc(_headingsArray,event),timeout&&clearTimeout(timeout),timeout=setTimeout(()=>{_buildHtml.enableTocAnimation();},_options.scrollSmoothDuration),setTimeout(()=>{isClick=!1;},_options.scrollSmoothDuration+100);},_options.throttleTimeout),_options.scrollContainer&&document.querySelector(_options.scrollContainer)?document.querySelector(_options.scrollContainer).addEventListener(\"click\",clickListener,!1):document.addEventListener(\"click\",clickListener,!1);}function destroy(){let tocElement=getTocElement(_options);tocElement!==null&&(_options.skipRendering||tocElement&&(tocElement.innerHTML=\"\"),_options.scrollContainer&&document.querySelector(_options.scrollContainer)?(document.querySelector(_options.scrollContainer).removeEventListener(\"scroll\",_scrollListener,!1),document.querySelector(_options.scrollContainer).removeEventListener(\"resize\",_scrollListener,!1),_buildHtml&&document.querySelector(_options.scrollContainer).removeEventListener(\"click\",clickListener,!1)):(document.removeEventListener(\"scroll\",_scrollListener,!1),document.removeEventListener(\"resize\",_scrollListener,!1),_buildHtml&&document.removeEventListener(\"click\",clickListener,!1)));}function refresh(customOptions){destroy(),init(customOptions||_options);}var hasOwnProp=Object.prototype.hasOwnProperty;function extend(...args){let target={};for(let i2=0;i2<args.length;i2++){let source=args[i2];for(let key in source)hasOwnProp.call(source,key)&&(target[key]=source[key]);}return target}function throttle(fn,threshold,scope){threshold||(threshold=250);let last,deferTimer;return function(...args){let context=scope||this,now=+new Date;last&&now<last+threshold?(clearTimeout(deferTimer),deferTimer=setTimeout(()=>{last=now,fn.apply(context,args);},threshold)):(last=now,fn.apply(context,args));}}function debounce(func,wait){let timeout;return (...args)=>{clearTimeout(timeout),timeout=setTimeout(()=>func.apply(this,args),wait);}}function getScrollHandler(func,timeout,type=\"auto\"){switch(type){case\"debounce\":return debounce(func,timeout);case\"throttle\":return throttle(func,timeout);default:return timeout<334?debounce(func,timeout):throttle(func,timeout)}}function getContentElement(options){try{return options.contentElement||document.querySelector(options.contentSelector)}catch{return console.warn(`Contents element not found: ${options.contentSelector}`),null}}function getTocElement(options){try{return options.tocElement||document.querySelector(options.tocSelector)}catch{return console.warn(`TOC element not found: ${options.tocSelector}`),null}}var tocbot={destroy,init,refresh};var tocbot_default=tocbot;var Aside=styled.aside(()=>({width:\"10rem\",\"@media (max-width: 768px)\":{display:\"none\"}})),Nav=styled.nav(({theme})=>({position:\"fixed\",bottom:0,top:0,width:\"10rem\",paddingTop:\"4rem\",paddingBottom:\"2rem\",overflowY:\"auto\",fontFamily:theme.typography.fonts.base,fontSize:theme.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 ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.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 ${theme.color.mediumdark}`,opacity:0,transition:\"opacity 0.2s\"},\"& .toc-list-item.is-active-li::before\":{opacity:1},\"& .toc-list-item > a\":{color:theme.color.defaultText,textDecoration:\"none\"},\"& .toc-list-item.is-active-li > a\":{fontWeight:600,color:theme.color.secondary,textDecoration:\"none\"}})),Heading=styled.p(({theme})=>({fontWeight:600,fontSize:\"0.875em\",color:theme.textColor,textTransform:\"uppercase\",marginBottom:10})),Title2=({headingId,title})=>typeof title==\"string\"||!title?React20__default.createElement(Heading,{as:\"h2\",id:headingId,className:title?\"\":\"sb-sr-only\"},title||\"Table of contents\"):React20__default.createElement(\"div\",{id:headingId},title),TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions,channel,className})=>{useEffect(()=>{if(disable)return ()=>{};let configuration={tocSelector:\".toc-wrapper\",contentSelector:contentsSelector??\".sbdocs-content\",headingSelector:headingSelector??\"h3\",ignoreSelector:ignoreSelector??\".docs-story *, .skip-toc\",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e2=>{if(e2.preventDefault(),e2.currentTarget instanceof HTMLAnchorElement){let[,headerId]=e2.currentTarget.href.split(\"#\");headerId&&channel.emit(NAVIGATE_URL,`#${headerId}`);}},...unsafeTocbotOptions},timeout=setTimeout(()=>tocbot_default.init(configuration),100);return ()=>{clearTimeout(timeout),tocbot_default.destroy();}},[channel,disable,ignoreSelector,contentsSelector,headingSelector,unsafeTocbotOptions]);let headingId=useId();return React20__default.createElement(Aside,{className},disable?null:React20__default.createElement(Nav,{\"aria-labelledby\":headingId},React20__default.createElement(Title2,{headingId,title}),React20__default.createElement(\"div\",{className:\"toc-wrapper\"})))};function t(){return t=Object.assign?Object.assign.bind():function(e2){for(var t2=1;t2<arguments.length;t2++){var n2=arguments[t2];for(var r2 in n2)Object.prototype.hasOwnProperty.call(n2,r2)&&(e2[r2]=n2[r2]);}return e2},t.apply(this,arguments)}var n=[\"children\",\"options\"],r={blockQuote:\"0\",breakLine:\"1\",breakThematic:\"2\",codeBlock:\"3\",codeFenced:\"4\",codeInline:\"5\",footnote:\"6\",footnoteReference:\"7\",gfmTask:\"8\",heading:\"9\",headingSetext:\"10\",htmlBlock:\"11\",htmlComment:\"12\",htmlSelfClosing:\"13\",image:\"14\",link:\"15\",linkAngleBraceStyleDetector:\"16\",linkBareUrlDetector:\"17\",linkMailtoDetector:\"18\",newlineCoalescer:\"19\",orderedList:\"20\",paragraph:\"21\",ref:\"22\",refImage:\"23\",refLink:\"24\",table:\"25\",tableSeparator:\"26\",text:\"27\",textBolded:\"28\",textEmphasized:\"29\",textEscaped:\"30\",textMarked:\"31\",textStrikethroughed:\"32\",unorderedList:\"33\"},i;(function(e2){e2[e2.MAX=0]=\"MAX\",e2[e2.HIGH=1]=\"HIGH\",e2[e2.MED=2]=\"MED\",e2[e2.LOW=3]=\"LOW\",e2[e2.MIN=4]=\"MIN\";})(i||(i={}));var l=[\"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((e2,t2)=>(e2[t2.toLowerCase()]=t2,e2),{class:\"className\",for:\"htmlFor\"}),o={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",nbsp:\"\\xA0\",quot:\"\\u201C\"},a=[\"style\",\"script\"],c=[\"src\",\"href\",\"data\",\"formAction\",\"srcDoc\",\"action\"],s=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,d=/mailto:/i,u=/\\n{2,}$/,p=/^(\\s*>[\\s\\S]*?)(?=\\n\\n|$)/,f=/^ *> ?/gm,h=/^(?:\\[!([^\\]]*)\\]\\n)?([\\s\\S]*)/,m=/^ {2,}\\n/,g=/^(?:( *[-*_])){3,} *(?:\\n *)+\\n/,y=/^(?: {1,3})?(`{3,}|~{3,}) *(\\S+)? *([^\\n]*?)?\\n([\\s\\S]*?)(?:\\1\\n?|$)/,k=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,x=/^(`+)((?:\\\\`|(?!\\1)`|[^`])+)\\1/,b=/^(?:\\n *)*\\n/,v=/\\r\\n?/g,C=/^\\[\\^([^\\]]+)](:(.*)((\\n+ {4,}.*)|(\\n(?!\\[\\^).+))*)/,$=/^\\[\\^([^\\]]+)]/,S=/\\f/g,w=/^---[ \\t]*\\n(.|\\n)*\\n---[ \\t]*\\n/,E=/^\\s*?\\[(x|\\s)\\]/,z=/^ *(#{1,6}) *([^\\n]+?)(?: +#*)?(?:\\n *)*(?:\\n|$)/,L=/^ *(#{1,6}) +([^\\n]+?)(?: +#*)?(?:\\n *)*(?:\\n|$)/,A=/^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n/,O=/^ *(?!<[a-z][^ >/]* ?\\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\\n?(\\s*(?:<\\1[^>]*?>[\\s\\S]*?<\\/\\1>|(?!<\\1\\b)[\\s\\S])*?)<\\/\\1>(?!<\\/\\1>)\\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,B=/^<!--[\\s\\S]*?(?:-->)/,M=/^(data|aria|x)-[a-z_][a-z\\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\\s+((?:<.*?>|[^>])*))?\\/?>(?!<\\/\\1>)(\\s*\\n)?/i,I=/^\\{.*\\}$/,D=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,U=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\\/[^ >]+)>/,j=/-([a-z])?/gi,H=/^(\\|.*)\\n(?: *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*))?\\n?/,P=/^\\[([^\\]]*)\\]:\\s+<?([^\\s>]+)>?\\s*(\"([^\"]*)\")?/,_=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,F=/^\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,W=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s)/,G=/\\t/g,Z=/(^ *\\||\\| *$)/g,q=/^ *:-+: *$/,Q=/^ *:-+ *$/,V=/^ *-+: *$/,X=\"((?:\\\\[.*?\\\\][([].*?[)\\\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\\\\\\\1|[\\\\s\\\\S])+?)\",J=new RegExp(`^([*_])\\\\1${X}\\\\1\\\\1(?!\\\\1)`),K=new RegExp(`^([*_])${X}\\\\1(?!\\\\1)`),Y=new RegExp(`^(==)${X}\\\\1`),ee=new RegExp(`^(~~)${X}\\\\1`),te=/^\\\\([^0-9A-Za-z\\s])/,ne=/\\\\([^0-9A-Za-z\\s])/g,re=/^([\\s\\S](?:(?! |[0-9]\\.)[^=*_~\\-\\n<`\\\\\\[!])*)/,ie=/^\\n+/,le=/^([ \\t]*)/,oe=/\\\\([^\\\\])/g,ae=/(?:^|\\n)( *)$/,ce=\"(?:\\\\d+\\\\.)\",se=\"(?:[*+-])\";function de(e2){return \"( *)(\"+(e2===1?ce:se)+\") +\"}var ue=de(1),pe=de(2);function fe(e2){return new RegExp(\"^\"+(e2===1?ue:pe))}var he=fe(1),me=fe(2);function ge(e2){return new RegExp(\"^\"+(e2===1?ue:pe)+\"[^\\\\n]*(?:\\\\n(?!\\\\1\"+(e2===1?ce:se)+\" )[^\\\\n]*)*(\\\\n|$)\",\"gm\")}var ye=ge(1),ke=ge(2);function xe(e2){let t2=e2===1?ce:se;return new RegExp(\"^( *)(\"+t2+\") [\\\\s\\\\S]+?(?:\\\\n{2,}(?! )(?!\\\\1\"+t2+\" (?!\"+t2+\" ))\\\\n*|\\\\s*\\\\n*$)\")}var be=xe(1),ve=xe(2);function Ce(e2,t2){let n2=t2===1,i2=n2?be:ve,l2=n2?ye:ke,o2=n2?he:me;return {match:Me(function(e3,t3){let n3=ae.exec(t3.prevCapture);return n3&&(t3.list||!t3.inline&&!t3.simple)?i2.exec(e3=n3[1]+e3):null}),order:1,parse(e3,t3,r2){let i3=n2?+e3[2]:void 0,a2=e3[0].replace(u,`\n`).match(l2),c2=!1;return {items:a2.map(function(e4,n3){let i4=o2.exec(e4)[0].length,l3=new RegExp(\"^ {1,\"+i4+\"}\",\"gm\"),s2=e4.replace(l3,\"\").replace(o2,\"\"),d2=n3===a2.length-1,u2=s2.indexOf(`\n\n`)!==-1||d2&&c2;c2=u2;let p2=r2.inline,f2=r2.list,h2;r2.list=!0,u2?(r2.inline=!1,h2=ze(s2)+`\n\n`):(r2.inline=!0,h2=ze(s2));let m2=t3(h2,r2);return r2.inline=p2,r2.list=f2,m2}),ordered:n2,start:i3}},render:(t3,n3,i3)=>e2(t3.ordered?\"ol\":\"ul\",{key:i3.key,start:t3.type===r.orderedList?t3.start:void 0},t3.items.map(function(t4,r2){return e2(\"li\",{key:r2},n3(t4,i3))}))}}var $e=new RegExp(`^\\\\[((?:\\\\[[^\\\\]]*\\\\]|[^\\\\[\\\\]]|\\\\](?=[^\\\\[]*\\\\]))*)\\\\]\\\\(\\\\s*<?((?:\\\\([^)]*\\\\)|[^\\\\s\\\\\\\\]|\\\\\\\\.)*?)>?(?:\\\\s+['\"]([\\\\s\\\\S]*?)['\"])?\\\\s*\\\\)`),Se=/^!\\[(.*?)\\]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,we=[p,y,k,z,A,L,H,be,ve],Ee=[...we,/^[^\\n]+(?: \\n|\\n{2,})/,O,B,R];function ze(e2){let t2=e2.length;for(;t2>0&&e2[t2-1]<=\" \";)t2--;return e2.slice(0,t2)}function Le(e2){return e2.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 Ae(e2){return V.test(e2)?\"right\":q.test(e2)?\"center\":Q.test(e2)?\"left\":null}function Oe(e2,t2,n2,r2){let i2=n2.inTable;n2.inTable=!0;let l2=[[]],o2=\"\";function a2(){if(!o2)return;let e3=l2[l2.length-1];e3.push.apply(e3,t2(o2,n2)),o2=\"\";}return e2.trim().split(/(`[^`]*`|\\\\\\||\\|)/).filter(Boolean).forEach((e3,t3,n3)=>{e3.trim()===\"|\"&&(a2(),r2)?t3!==0&&t3!==n3.length-1&&l2.push([]):o2+=e3;}),a2(),n2.inTable=i2,l2}function Te(e2,t2,n2){n2.inline=!0;let i2=e2[2]?e2[2].replace(Z,\"\").split(\"|\").map(Ae):[],l2=e2[3]?function(e3,t3,n3){return e3.trim().split(`\n`).map(function(e4){return Oe(e4,t3,n3,!0)})}(e2[3],t2,n2):[],o2=Oe(e2[1],t2,n2,!!l2.length);return n2.inline=!1,l2.length?{align:i2,cells:l2,header:o2,type:r.table}:{children:o2,type:r.paragraph}}function Be(e2,t2){return e2.align[t2]==null?{}:{textAlign:e2.align[t2]}}function Me(e2){return e2.inline=1,e2}function Re(e2){return Me(function(t2,n2){return n2.inline?e2.exec(t2):null})}function Ie(e2){return Me(function(t2,n2){return n2.inline||n2.simple?e2.exec(t2):null})}function De(e2){return function(t2,n2){return n2.inline||n2.simple?null:e2.exec(t2)}}function Ue(e2){return Me(function(t2){return e2.exec(t2)})}function Ne(e2,t2){if(t2.inline||t2.simple)return null;let n2=\"\";e2.split(`\n`).every(e3=>(e3+=`\n`,!we.some(t3=>t3.test(e3))&&(n2+=e3,!!e3.trim())));let r2=ze(n2);return r2==\"\"?null:[n2,,r2]}var je=/(javascript|vbscript|data(?!:image)):/i;function He(e2){try{let t2=decodeURIComponent(e2).replace(/[^A-Za-z0-9/:]/g,\"\");if(je.test(t2))return null}catch{return null}return e2}function Pe(e2){return e2.replace(oe,\"$1\")}function _e(e2,t2,n2){let r2=n2.inline||!1,i2=n2.simple||!1;n2.inline=!0,n2.simple=!0;let l2=e2(t2,n2);return n2.inline=r2,n2.simple=i2,l2}function Fe(e2,t2,n2){let r2=n2.inline||!1,i2=n2.simple||!1;n2.inline=!1,n2.simple=!0;let l2=e2(t2,n2);return n2.inline=r2,n2.simple=i2,l2}function We(e2,t2,n2){let r2=n2.inline||!1;n2.inline=!1;let i2=e2(t2,n2);return n2.inline=r2,i2}var Ge=(e2,t2,n2)=>({children:_e(t2,e2[2],n2)});function Ze(){return {}}function qe(){return null}function Qe(...e2){return e2.filter(Boolean).join(\" \")}function Ve(e2,t2,n2){let r2=e2,i2=t2.split(\".\");for(;i2.length&&(r2=r2[i2[0]],r2!==void 0);)i2.shift();return r2||n2}function Xe(n2=\"\",i2={}){function u2(e2,n3,...r2){let l2=Ve(i2.overrides,`${e2}.props`,{});return i2.createElement(function(e3,t2){let n4=Ve(t2,e3);return n4?typeof n4==\"function\"||typeof n4==\"object\"&&\"render\"in n4?n4:Ve(t2,`${e3}.component`,e3):e3}(e2,i2.overrides),t({},n3,l2,{className:Qe(n3?.className,l2.className)||void 0}),...r2)}function Z2(e2){e2=e2.replace(w,\"\");let t2=!1;i2.forceInline?t2=!0:i2.forceBlock||(t2=W.test(e2)===!1);let n3=ae2(oe2(t2?e2:`${ze(e2).replace(ie,\"\")}\n\n`,{inline:t2}));for(;typeof n3[n3.length-1]==\"string\"&&!n3[n3.length-1].trim();)n3.pop();if(i2.wrapper===null)return n3;let r2=i2.wrapper||(t2?\"span\":\"div\"),l2;if(n3.length>1||i2.forceWrapper)l2=n3;else {if(n3.length===1)return l2=n3[0],typeof l2==\"string\"?u2(\"span\",{key:\"outer\"},l2):l2;l2=null;}return i2.createElement(r2,{key:\"outer\"},l2)}function q2(e2,t2){let n3=t2.match(s);return n3?n3.reduce(function(t3,n4){let r2=n4.indexOf(\"=\");if(r2!==-1){let o2=function(e3){return e3.indexOf(\"-\")!==-1&&e3.match(M)===null&&(e3=e3.replace(j,function(e4,t4){return t4.toUpperCase()})),e3}(n4.slice(0,r2)).trim(),a2=function(e3){let t4=e3[0];return (t4==='\"'||t4===\"'\")&&e3.length>=2&&e3[e3.length-1]===t4?e3.slice(1,-1):e3}(n4.slice(r2+1).trim()),s2=l[o2]||o2;if(s2===\"ref\")return t3;let d2=t3[s2]=function(e3,t4,n5,r3){return t4===\"style\"?function(e4){let t5=[],n6=\"\",r4=!1,i3=!1,l2=\"\";if(!e4)return t5;for(let o4=0;o4<e4.length;o4++){let a3=e4[o4];if(a3!=='\"'&&a3!==\"'\"||r4||(i3?a3===l2&&(i3=!1,l2=\"\"):(i3=!0,l2=a3)),a3===\"(\"&&n6.endsWith(\"url\")?r4=!0:a3===\")\"&&r4&&(r4=!1),a3!==\";\"||i3||r4)n6+=a3;else {let e5=n6.trim();if(e5){let n7=e5.indexOf(\":\");if(n7>0){let r5=e5.slice(0,n7).trim(),i4=e5.slice(n7+1).trim();t5.push([r5,i4]);}}n6=\"\";}}let o3=n6.trim();if(o3){let e5=o3.indexOf(\":\");if(e5>0){let n7=o3.slice(0,e5).trim(),r5=o3.slice(e5+1).trim();t5.push([n7,r5]);}}return t5}(n5).reduce(function(t5,[n6,i3]){return t5[n6.replace(/(-[a-z])/g,e4=>e4[1].toUpperCase())]=r3(i3,e3,n6),t5},{}):c.indexOf(t4)!==-1?r3(n5,e3,t4):(n5.match(I)&&(n5=n5.slice(1,n5.length-1)),n5===\"true\"||n5!==\"false\"&&n5)}(e2,o2,a2,i2.sanitizer);typeof d2==\"string\"&&(O.test(d2)||R.test(d2))&&(t3[s2]=Z2(d2.trim()));}else n4!==\"style\"&&(t3[l[n4]||n4]=!0);return t3},{}):null}i2.overrides=i2.overrides||{},i2.sanitizer=i2.sanitizer||He,i2.slugify=i2.slugify||Le,i2.namedCodesToUnicode=i2.namedCodesToUnicode?t({},o,i2.namedCodesToUnicode):o,i2.createElement=i2.createElement||React20.createElement;let Q2=[],V2={},X2={[r.blockQuote]:{match:De(p),order:1,parse(e2,t2,n3){let[,r2,i3]=e2[0].replace(f,\"\").match(h);return {alert:r2,children:t2(i3,n3)}},render(e2,t2,n3){let l2={key:n3.key};return e2.alert&&(l2.className=\"markdown-alert-\"+i2.slugify(e2.alert.toLowerCase(),Le),e2.children.unshift({attrs:{},children:[{type:r.text,text:e2.alert}],noInnerParse:!0,type:r.htmlBlock,tag:\"header\"})),u2(\"blockquote\",l2,t2(e2.children,n3))}},[r.breakLine]:{match:Ue(m),order:1,parse:Ze,render:(e2,t2,n3)=>u2(\"br\",{key:n3.key})},[r.breakThematic]:{match:De(g),order:1,parse:Ze,render:(e2,t2,n3)=>u2(\"hr\",{key:n3.key})},[r.codeBlock]:{match:De(k),order:0,parse:e2=>({lang:void 0,text:ze(e2[0].replace(/^ {4}/gm,\"\")).replace(ne,\"$1\")}),render:(e2,n3,r2)=>u2(\"pre\",{key:r2.key},u2(\"code\",t({},e2.attrs,{className:e2.lang?`lang-${e2.lang}`:\"\"}),e2.text))},[r.codeFenced]:{match:De(y),order:0,parse:e2=>({attrs:q2(\"code\",e2[3]||\"\"),lang:e2[2]||void 0,text:e2[4],type:r.codeBlock})},[r.codeInline]:{match:Ie(x),order:3,parse:e2=>({text:e2[2].replace(ne,\"$1\")}),render:(e2,t2,n3)=>u2(\"code\",{key:n3.key},e2.text)},[r.footnote]:{match:De(C),order:0,parse:e2=>(Q2.push({footnote:e2[2],identifier:e2[1]}),{}),render:qe},[r.footnoteReference]:{match:Re($),order:1,parse:e2=>({target:`#${i2.slugify(e2[1],Le)}`,text:e2[1]}),render:(e2,t2,n3)=>u2(\"a\",{key:n3.key,href:i2.sanitizer(e2.target,\"a\",\"href\")},u2(\"sup\",{key:n3.key},e2.text))},[r.gfmTask]:{match:Re(E),order:1,parse:e2=>({completed:e2[1].toLowerCase()===\"x\"}),render:(e2,t2,n3)=>u2(\"input\",{checked:e2.completed,key:n3.key,readOnly:!0,type:\"checkbox\"})},[r.heading]:{match:De(i2.enforceAtxHeadings?L:z),order:1,parse:(e2,t2,n3)=>({children:_e(t2,e2[2],n3),id:i2.slugify(e2[2],Le),level:e2[1].length}),render:(e2,t2,n3)=>u2(`h${e2.level}`,{id:e2.id,key:n3.key},t2(e2.children,n3))},[r.headingSetext]:{match:De(A),order:0,parse:(e2,t2,n3)=>({children:_e(t2,e2[1],n3),level:e2[2]===\"=\"?1:2,type:r.heading})},[r.htmlBlock]:{match:Ue(O),order:1,parse(e2,t2,n3){let[,r2]=e2[3].match(le),i3=new RegExp(`^${r2}`,\"gm\"),l2=e2[3].replace(i3,\"\"),o2=(c2=l2,Ee.some(e3=>e3.test(c2))?We:_e);var c2;let s2=e2[1].toLowerCase(),d2=a.indexOf(s2)!==-1,u3=(d2?s2:e2[1]).trim(),p2={attrs:q2(u3,e2[2]),noInnerParse:d2,tag:u3};return n3.inAnchor=n3.inAnchor||s2===\"a\",d2?p2.text=e2[3]:p2.children=o2(t2,l2,n3),n3.inAnchor=!1,p2},render:(e2,n3,r2)=>u2(e2.tag,t({key:r2.key},e2.attrs),e2.text||(e2.children?n3(e2.children,r2):\"\"))},[r.htmlSelfClosing]:{match:Ue(R),order:1,parse(e2){let t2=e2[1].trim();return {attrs:q2(t2,e2[2]||\"\"),tag:t2}},render:(e2,n3,r2)=>u2(e2.tag,t({},e2.attrs,{key:r2.key}))},[r.htmlComment]:{match:Ue(B),order:1,parse:()=>({}),render:qe},[r.image]:{match:Ie(Se),order:1,parse:e2=>({alt:e2[1],target:Pe(e2[2]),title:e2[3]}),render:(e2,t2,n3)=>u2(\"img\",{key:n3.key,alt:e2.alt||void 0,title:e2.title||void 0,src:i2.sanitizer(e2.target,\"img\",\"src\")})},[r.link]:{match:Re($e),order:3,parse:(e2,t2,n3)=>({children:Fe(t2,e2[1],n3),target:Pe(e2[2]),title:e2[3]}),render:(e2,t2,n3)=>u2(\"a\",{key:n3.key,href:i2.sanitizer(e2.target,\"a\",\"href\"),title:e2.title},t2(e2.children,n3))},[r.linkAngleBraceStyleDetector]:{match:Re(N),order:0,parse:e2=>({children:[{text:e2[1],type:r.text}],target:e2[1],type:r.link})},[r.linkBareUrlDetector]:{match:Me((e2,t2)=>t2.inAnchor||i2.disableAutoLink?null:Re(D)(e2,t2)),order:0,parse:e2=>({children:[{text:e2[1],type:r.text}],target:e2[1],title:void 0,type:r.link})},[r.linkMailtoDetector]:{match:Re(U),order:0,parse(e2){let t2=e2[1],n3=e2[1];return d.test(n3)||(n3=\"mailto:\"+n3),{children:[{text:t2.replace(\"mailto:\",\"\"),type:r.text}],target:n3,type:r.link}}},[r.orderedList]:Ce(u2,1),[r.unorderedList]:Ce(u2,2),[r.newlineCoalescer]:{match:De(b),order:3,parse:Ze,render:()=>`\n`},[r.paragraph]:{match:Me(Ne),order:3,parse:Ge,render:(e2,t2,n3)=>u2(\"p\",{key:n3.key},t2(e2.children,n3))},[r.ref]:{match:Re(P),order:0,parse:e2=>(V2[e2[1]]={target:e2[2],title:e2[4]},{}),render:qe},[r.refImage]:{match:Ie(_),order:0,parse:e2=>({alt:e2[1]||void 0,ref:e2[2]}),render:(e2,t2,n3)=>V2[e2.ref]?u2(\"img\",{key:n3.key,alt:e2.alt,src:i2.sanitizer(V2[e2.ref].target,\"img\",\"src\"),title:V2[e2.ref].title}):null},[r.refLink]:{match:Re(F),order:0,parse:(e2,t2,n3)=>({children:t2(e2[1],n3),fallbackChildren:e2[0],ref:e2[2]}),render:(e2,t2,n3)=>V2[e2.ref]?u2(\"a\",{key:n3.key,href:i2.sanitizer(V2[e2.ref].target,\"a\",\"href\"),title:V2[e2.ref].title},t2(e2.children,n3)):u2(\"span\",{key:n3.key},e2.fallbackChildren)},[r.table]:{match:De(H),order:1,parse:Te,render(e2,t2,n3){let r2=e2;return u2(\"table\",{key:n3.key},u2(\"thead\",null,u2(\"tr\",null,r2.header.map(function(e3,i3){return u2(\"th\",{key:i3,style:Be(r2,i3)},t2(e3,n3))}))),u2(\"tbody\",null,r2.cells.map(function(e3,i3){return u2(\"tr\",{key:i3},e3.map(function(e4,i4){return u2(\"td\",{key:i4,style:Be(r2,i4)},t2(e4,n3))}))})))}},[r.text]:{match:Ue(re),order:4,parse:e2=>({text:e2[0].replace(T,(e3,t2)=>i2.namedCodesToUnicode[t2]?i2.namedCodesToUnicode[t2]:e3)}),render:e2=>e2.text},[r.textBolded]:{match:Ie(J),order:2,parse:(e2,t2,n3)=>({children:t2(e2[2],n3)}),render:(e2,t2,n3)=>u2(\"strong\",{key:n3.key},t2(e2.children,n3))},[r.textEmphasized]:{match:Ie(K),order:3,parse:(e2,t2,n3)=>({children:t2(e2[2],n3)}),render:(e2,t2,n3)=>u2(\"em\",{key:n3.key},t2(e2.children,n3))},[r.textEscaped]:{match:Ie(te),order:1,parse:e2=>({text:e2[1],type:r.text})},[r.textMarked]:{match:Ie(Y),order:3,parse:Ge,render:(e2,t2,n3)=>u2(\"mark\",{key:n3.key},t2(e2.children,n3))},[r.textStrikethroughed]:{match:Ie(ee),order:3,parse:Ge,render:(e2,t2,n3)=>u2(\"del\",{key:n3.key},t2(e2.children,n3))}};i2.disableParsingRawHTML===!0&&(delete X2[r.htmlBlock],delete X2[r.htmlSelfClosing]);let oe2=function(e2){let t2=Object.keys(e2);function n3(r2,i3){let l2,o2,a2=[],c2=\"\",s2=\"\";for(i3.prevCapture=i3.prevCapture||\"\";r2;){let d2=0;for(;d2<t2.length;){if(c2=t2[d2],l2=e2[c2],i3.inline&&!l2.match.inline){d2++;continue}let u3=l2.match(r2,i3);if(u3){s2=u3[0],i3.prevCapture+=s2,r2=r2.substring(s2.length),o2=l2.parse(u3,n3,i3),o2.type==null&&(o2.type=c2),a2.push(o2);break}d2++;}}return i3.prevCapture=\"\",a2}return t2.sort(function(t3,n4){let r2=e2[t3].order,i3=e2[n4].order;return r2!==i3?r2-i3:t3<n4?-1:1}),function(e3,t3){return n3(function(e4){return e4.replace(v,`\n`).replace(S,\"\").replace(G,\" \")}(e3),t3)}}(X2),ae2=(ce2=function(e2,t2){return function(n3,r2,i3){let l2=e2[n3.type].render;return t2?t2(()=>l2(n3,r2,i3),n3,r2,i3):l2(n3,r2,i3)}}(X2,i2.renderRule),function e2(t2,n3={}){if(Array.isArray(t2)){let r2=n3.key,i3=[],l2=!1;for(let r3=0;r3<t2.length;r3++){n3.key=r3;let o2=e2(t2[r3],n3),a2=typeof o2==\"string\";a2&&l2?i3[i3.length-1]+=o2:o2!==null&&i3.push(o2),l2=a2;}return n3.key=r2,i3}return ce2(t2,e2,n3)});var ce2;let se2=Z2(n2);return Q2.length?u2(\"div\",null,se2,u2(\"footer\",{key:\"footer\"},Q2.map(function(e2){return u2(\"div\",{id:i2.slugify(e2.identifier,Le),key:e2.identifier},e2.identifier,ae2(oe2(e2.footnote,{inline:!0})))}))):se2}var index_modern_default=t2=>{let{children:r2=\"\",options:i2}=t2,l2=function(e2,t3){if(e2==null)return {};var n2,r3,i3={},l3=Object.keys(e2);for(r3=0;r3<l3.length;r3++)t3.indexOf(n2=l3[r3])>=0||(i3[n2]=e2[n2]);return i3}(t2,n);return React20.cloneElement(Xe(r2,i2),l2)};var Label2=styled.label(({theme})=>({lineHeight:\"18px\",alignItems:\"center\",marginBottom:8,display:\"inline-block\",position:\"relative\",whiteSpace:\"nowrap\",background:theme.boolean.background,borderRadius:\"3em\",padding:1,'&[aria-disabled=\"true\"]':{opacity:.5,input:{cursor:\"not-allowed\"}},input:{appearance:\"none\",width:\"100%\",height:\"100%\",position:\"absolute\",left:0,top:0,margin:0,padding:0,border:\"none\",background:\"transparent\",cursor:\"pointer\",borderRadius:\"3em\",\"&:focus\":{outline:\"none\",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:\"center\",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:\"1\",cursor:\"pointer\",display:\"inline-block\",padding:\"7px 15px\",transition:\"all 100ms ease-out\",userSelect:\"none\",borderRadius:\"3em\",color:curriedTransparentize$1(.5,theme.color.defaultText),background:\"transparent\",\"&:hover\":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},\"&:active\":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},\"&:first-of-type\":{paddingRight:8},\"&:last-of-type\":{paddingLeft:8}},\"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type\":{background:theme.boolean.selectedBackground,boxShadow:theme.base===\"light\"?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:\"7px 15px\"}})),parse=value2=>value2===\"true\",BooleanControl=({name,value:value2,onChange,onBlur,onFocus,argType})=>{let onSetFalse=useCallback(()=>onChange(!1),[onChange]),readonly=!!argType?.table?.readonly;if(value2===void 0)return React20__default.createElement(Button,{variant:\"outline\",size:\"medium\",id:getControlSetterButtonId(name),onClick:onSetFalse,disabled:readonly},\"Set boolean\");let controlId=getControlId(name),parsedValue=typeof value2==\"string\"?parse(value2):value2;return React20__default.createElement(Label2,{\"aria-disabled\":readonly,htmlFor:controlId,\"aria-label\":name},React20__default.createElement(\"input\",{id:controlId,type:\"checkbox\",onChange:e2=>onChange(e2.target.checked),checked:parsedValue,role:\"switch\",disabled:readonly,name,onBlur,onFocus}),React20__default.createElement(\"span\",{\"aria-hidden\":\"true\"},\"False\"),React20__default.createElement(\"span\",{\"aria-hidden\":\"true\"},\"True\"))};var parseDate=value2=>{let[year,month,day]=value2.split(\"-\"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=value2=>{let[hours,minutes]=value2.split(\":\"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=value2=>{let date=new Date(value2),year=`000${date.getFullYear()}`.slice(-4),month=`0${date.getMonth()+1}`.slice(-2),day=`0${date.getDate()}`.slice(-2);return `${year}-${month}-${day}`},formatTime=value2=>{let date=new Date(value2),hours=`0${date.getHours()}`.slice(-2),minutes=`0${date.getMinutes()}`.slice(-2);return `${hours}:${minutes}`},FormInput=styled(Form.Input)(({readOnly})=>({opacity:readOnly?.5:1})),FlexSpaced=styled.div(({theme})=>({flex:1,display:\"flex\",input:{marginLeft:10,flex:1,height:32,\"&::-webkit-calendar-picker-indicator\":{opacity:.5,height:12,filter:theme.base===\"light\"?void 0:\"invert(1)\"}},\"input:first-of-type\":{marginLeft:0,flexGrow:4},\"input:last-of-type\":{flexGrow:3}})),DateControl=({name,value:value2,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=useState(!0),dateRef=useRef(),timeRef=useRef(),readonly=!!argType?.table?.readonly;useEffect(()=>{valid!==!1&&(dateRef&&dateRef.current&&(dateRef.current.value=value2?formatDate(value2):\"\"),timeRef&&timeRef.current&&(timeRef.current.value=value2?formatTime(value2):\"\"));},[value2]);let onDateChange=e2=>{if(!e2.target.value)return onChange();let parsed=parseDate(e2.target.value),result=new Date(value2??\"\");result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time);},onTimeChange=e2=>{if(!e2.target.value)return onChange();let parsed=parseTime(e2.target.value),result=new Date(value2??\"\");result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time);},controlId=getControlId(name);return React20__default.createElement(FlexSpaced,null,React20__default.createElement(FormInput,{type:\"date\",max:\"9999-12-31\",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:onDateChange,onFocus,onBlur}),React20__default.createElement(FormInput,{type:\"time\",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:onTimeChange,readOnly:readonly,onFocus,onBlur}),valid?null:React20__default.createElement(\"div\",null,\"invalid\"))};var Wrapper4=styled.label({display:\"flex\"}),parse2=value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result},format2=value2=>value2!=null?String(value2):\"\",FormInput2=styled(Form.Input)(({readOnly})=>({opacity:readOnly?.5:1})),NumberControl=({name,value:value2,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=useState(typeof value2==\"number\"?value2:\"\"),[forceVisible,setForceVisible]=useState(!1),[parseError,setParseError]=useState(null),readonly=!!argType?.table?.readonly,handleChange=useCallback(event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null));},[onChange,setParseError]),onForceVisible=useCallback(()=>{setInputValue(\"0\"),onChange(0),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);return useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),useEffect(()=>{let newInputValue=typeof value2==\"number\"?value2:\"\";inputValue!==newInputValue&&setInputValue(newInputValue);},[value2]),value2===void 0?React20__default.createElement(Button,{variant:\"outline\",size:\"medium\",id:getControlSetterButtonId(name),onClick:onForceVisible,disabled:readonly},\"Set number\"):React20__default.createElement(Wrapper4,null,React20__default.createElement(FormInput2,{ref:htmlElRef,id:getControlId(name),type:\"number\",onChange:handleChange,size:\"flex\",placeholder:\"Edit number...\",value:inputValue,valid:parseError?\"error\":void 0,autoFocus:forceVisible,readOnly:readonly,name,min,max,step,onFocus,onBlur}))};var selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find(([_key,val])=>val===value2);return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter(entry=>value2.includes(entry[1])).map(entry=>entry[0]):[],selectedValues=(keys,options)=>keys&&options&&keys.map(key=>options[key]);var Wrapper5=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}},props=>{if(props[\"aria-readonly\"]===\"true\")return {input:{cursor:\"not-allowed\"}}}),Text=styled.span({\"[aria-readonly=true] &\":{opacity:.5}}),Label3=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return logger.warn(`Checkbox with no options: ${name}`),React20__default.createElement(React20__default.Fragment,null,\"-\");let initial=selectedKeys(value2||[],options),[selected,setSelected]=useState(initial),readonly=!!argType?.table?.readonly,handleChange=e2=>{let option=e2.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated);};useEffect(()=>{setSelected(selectedKeys(value2||[],options));},[value2]);let controlId=getControlId(name);return React20__default.createElement(Wrapper5,{\"aria-readonly\":readonly,isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return React20__default.createElement(Label3,{key:id,htmlFor:id},React20__default.createElement(\"input\",{type:\"checkbox\",disabled:readonly,id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),React20__default.createElement(Text,null,key))}))};var Wrapper6=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}},props=>{if(props[\"aria-readonly\"]===\"true\")return {input:{cursor:\"not-allowed\"}}}),Text2=styled.span({\"[aria-readonly=true] &\":{opacity:.5}}),Label4=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return logger.warn(`Radio with no options: ${name}`),React20__default.createElement(React20__default.Fragment,null,\"-\");let selection=selectedKey(value2,options),controlId=getControlId(name),readonly=!!argType?.table?.readonly;return React20__default.createElement(Wrapper6,{\"aria-readonly\":readonly,isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return React20__default.createElement(Label4,{key:id,htmlFor:id},React20__default.createElement(\"input\",{type:\"radio\",id,name:controlId,disabled:readonly,value:key,onChange:e2=>onChange(options[e2.currentTarget.value]),checked:key===selection}),React20__default.createElement(Text2,null,key))}))};var styleResets={appearance:\"none\",border:\"0 none\",boxSizing:\"inherit\",display:\" block\",margin:\" 0\",background:\"transparent\",padding:0,fontSize:\"inherit\",position:\"relative\"},OptionsSelect=styled.select(styleResets,({theme})=>({boxSizing:\"border-box\",position:\"relative\",padding:\"6px 10px\",width:\"100%\",color:theme.input.color||\"inherit\",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",\"&:focus\":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:\"none\"},\"&[disabled]\":{cursor:\"not-allowed\",opacity:.5},\"::placeholder\":{color:theme.textMutedColor},\"&[multiple]\":{overflow:\"auto\",padding:0,option:{display:\"block\",padding:\"6px 10px\",marginLeft:1,marginRight:1}}})),SelectWrapper=styled.span(({theme})=>({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:theme.textMutedColor,path:{fill:theme.textMutedColor}}})),NO_SELECTION=\"Choose option...\",SingleSelect=({name,value:value2,options,onChange,argType})=>{let handleChange=e2=>{onChange(options[e2.currentTarget.value]);},selection=selectedKey(value2,options)||NO_SELECTION,controlId=getControlId(name),readonly=!!argType?.table?.readonly;return React20__default.createElement(SelectWrapper,null,React20__default.createElement(ChevronSmallDownIcon,null),React20__default.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:handleChange},React20__default.createElement(\"option\",{key:\"no-selection\",disabled:!0},NO_SELECTION),Object.keys(options).map(key=>React20__default.createElement(\"option\",{key,value:key},key))))},MultiSelect=({name,value:value2,options,onChange,argType})=>{let handleChange=e2=>{let selection2=Array.from(e2.currentTarget.options).filter(option=>option.selected).map(option=>option.value);onChange(selectedValues(selection2,options));},selection=selectedKeys(value2,options),controlId=getControlId(name),readonly=!!argType?.table?.readonly;return React20__default.createElement(SelectWrapper,null,React20__default.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:handleChange},Object.keys(options).map(key=>React20__default.createElement(\"option\",{key,value:key},key))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?React20__default.createElement(MultiSelect,{...props}):React20__default.createElement(SingleSelect,{...props}):(logger.warn(`Select with no options: ${name}`),React20__default.createElement(React20__default.Fragment,null,\"-\"))};var normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc),{}):options,Controls={check:CheckboxControl,\"inline-check\":CheckboxControl,radio:RadioControl,\"inline-radio\":RadioControl,select:SelectControl,\"multi-select\":SelectControl},OptionsControl=props=>{let{type=\"select\",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes(\"inline\"),isMulti:type.includes(\"multi\")},Control=Controls[type];if(Control)return React20__default.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};var ERROR=\"Error\",OBJECT=\"Object\",ARRAY=\"Array\",STRING=\"String\",NUMBER=\"Number\",BOOLEAN=\"Boolean\",DATE=\"Date\",NULL=\"Null\",UNDEFINED=\"Undefined\",FUNCTION=\"Function\",SYMBOL=\"Symbol\";var ADD_DELTA_TYPE=\"ADD_DELTA_TYPE\",REMOVE_DELTA_TYPE=\"REMOVE_DELTA_TYPE\",UPDATE_DELTA_TYPE=\"UPDATE_DELTA_TYPE\";var VALUE=\"value\",KEY=\"key\";function getObjectType(obj){return obj!==null&&typeof obj==\"object\"&&!Array.isArray(obj)&&typeof obj[Symbol.iterator]==\"function\"?\"Iterable\":Object.prototype.toString.call(obj).slice(8,-1)}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return (oldType===\"Function\"||newType===\"Function\")&&newType!==oldType}var JsonAddValue=class extends Component{constructor(props){super(props),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,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&typeof inputRefKey.focus==\"function\"&&inputRefKey.focus(),onlyValue&&inputRefValue&&typeof inputRefValue.focus==\"function\"&&inputRefValue.focus(),document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.onSubmit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.props.handleCancel()));}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value;}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result);}refInputKey(node){this.state.inputRefKey=node;}refInputValue(node){this.state.inputRefValue=node;}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=addButtonElement&&cloneElement(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=cancelButtonElement&&cloneElement(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator(VALUE,keyPath,deep),inputElementValueLayout=cloneElement(inputElementValue,{placeholder:\"Value\",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator(KEY,keyPath,deep);inputElementKeyLayout=cloneElement(inputElementKey,{placeholder:\"Key\",ref:this.refInputKey});}return React20__default.createElement(\"span\",{className:\"rejt-add-value-node\"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:React20__default.createElement(\"button\",null,\"+\"),cancelButtonElement:React20__default.createElement(\"button\",null,\"c\")};var JsonArray=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath||[],props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep??0,nextDeep:(props.deep??0)+1,collapsed:props.isCollapsed(keyPath,props.deep??0,props.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(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath=[]}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleRemoveItem(index){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];(beforeRemoveAction||Promise.resolve.bind(Promise))(index,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:REMOVE_DELTA_TYPE};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleAddValueAdd({key,newValue}){let{data,keyPath=[],nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;(beforeAddAction||Promise.resolve.bind(Promise))(key,keyPath,deep,newValue).then(()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key,newValue});}).catch(logger4.error);}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];(beforeUpdateAction||Promise.resolve.bind(Promise))(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0);}).catch(reject);})}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=minusMenuElement&&cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React20__default.createElement(\"span\",{className:\"rejt-collapsed\"},React20__default.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"[...] \",data.length,\" \",data.length===1?\"item\":\"items\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=plusMenuElement&&cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=minusMenuElement&&cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React20__default.createElement(\"span\",{className:\"rejt-not-collapsed\"},React20__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"[\"),!addFormVisible&&addItemButton,React20__default.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},data.map((item,index)=>React20__default.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}))),!isReadOnly&&addFormVisible&&React20__default.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React20__default.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React20__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"]\"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return React20__default.createElement(\"div\",{className:\"rejt-array-node\"},React20__default.createElement(\"span\",{onClick:this.handleCollapseMode},React20__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \")),value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:React20__default.createElement(\"span\",null,\" - \"),plusMenuElement:React20__default.createElement(\"span\",null,\" + \")};var JsonFunctionValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath||[],props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,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(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value),result={value:newValue,key:name};(handleUpdateValue||Promise.resolve.bind(Promise))(result).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=editButtonElement&&cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cancelButtonElement&&cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=cloneElement(textareaElement,{ref:this.refInput,defaultValue:originalValue});result=React20__default.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},textareaElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout),minusElement=null;}else {result=React20__default.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:resultOnlyResult?void 0:this.handleEditMode},value2);let minusMenuLayout=minusMenuElement&&cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout;}return React20__default.createElement(\"li\",{className:\"rejt-function-value-node\",style:style.li},React20__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \"),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:React20__default.createElement(\"button\",null,\"e\"),cancelButtonElement:React20__default.createElement(\"button\",null,\"c\"),minusMenuElement:React20__default.createElement(\"span\",null,\" - \")};var JsonNode=class extends Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep};}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case ERROR:return React20__default.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case OBJECT:return React20__default.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case ARRAY:return React20__default.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case STRING:return React20__default.createElement(JsonValue,{name,value:`\"${data}\"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NUMBER:return React20__default.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case BOOLEAN:return React20__default.createElement(JsonValue,{name,value:data?\"true\":\"false\",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case DATE:return React20__default.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NULL:return React20__default.createElement(JsonValue,{name,value:\"null\",originalValue:\"null\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case UNDEFINED:return React20__default.createElement(JsonValue,{name,value:\"undefined\",originalValue:\"undefined\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case FUNCTION:return React20__default.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case SYMBOL:return React20__default.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends Component{constructor(props){super(props);let keyPath=props.deep===-1?[]:[...props.keyPath||[],props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep??0,nextDeep:(props.deep??0)+1,collapsed:props.isCollapsed(keyPath,props.deep??0,props.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(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath=[]}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleAddValueAdd({key,newValue}){let{data,keyPath=[],nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;(beforeAddAction||Promise.resolve.bind(Promise))(key,keyPath,deep,newValue).then(()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key,newValue});}).catch(logger4.error);}handleRemoveValue(key){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath=[],nextDeep:deep}=this.state,oldValue=data[key];(beforeRemoveAction||Promise.resolve.bind(Promise))(key,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:REMOVE_DELTA_TYPE};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath=[],nextDeep:deep}=this.state,oldValue=data[key];(beforeUpdateAction||Promise.resolve.bind(Promise))(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve();}).catch(reject);})}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=minusMenuElement&&cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React20__default.createElement(\"span\",{className:\"rejt-collapsed\"},React20__default.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"{...}\",\" \",keyList.length,\" \",keyList.length===1?\"key\":\"keys\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=plusMenuElement&&cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=minusMenuElement&&cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus}),list=keyList.map(key=>React20__default.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}));return React20__default.createElement(\"span\",{className:\"rejt-not-collapsed\"},React20__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"{\"),!isReadOnly&&addItemButton,React20__default.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},list),!isReadOnly&&addFormVisible&&React20__default.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React20__default.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React20__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"}\"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return React20__default.createElement(\"div\",{className:\"rejt-object-node\"},React20__default.createElement(\"span\",{onClick:this.handleCollapseMode},React20__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \")),value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:React20__default.createElement(\"span\",null,\" - \"),plusMenuElement:React20__default.createElement(\"span\",null,\" + \")};var JsonValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath||[],props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,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(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value),result={value:newValue,key:name};(handleUpdateValue||Promise.resolve.bind(Promise))(result).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=editButtonElement&&cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cancelButtonElement&&cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=cloneElement(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=minusMenuElement&&cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});return React20__default.createElement(\"li\",{className:\"rejt-value-node\",style:style.li},React20__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" : \"),isEditing?React20__default.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},inputElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout):React20__default.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:isReadOnly?void 0:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:React20__default.createElement(\"button\",null,\"e\"),cancelButtonElement:React20__default.createElement(\"button\",null,\"c\"),minusMenuElement:React20__default.createElement(\"span\",null,\" - \")};function parse3(string){let result=string;if(result.indexOf(\"function\")===0)return (0, eval)(`(${result})`);try{result=JSON.parse(string);}catch{}return result}var object={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},array={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},value={minus:{color:\"red\"},editForm:{},value:{color:\"#7bba3d\"},li:{minHeight:\"22px\",lineHeight:\"22px\",outline:\"0px\"},name:{color:\"#2287CD\"}};var JsonTree=class extends Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate?.(data);}removeRoot(){this.onUpdate(null,null);}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;getObjectType(readOnly)===\"Boolean\"&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&getObjectType(inputElement)!==\"Function\"&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&getObjectType(textareaElement)!==\"Function\"&&(textareaElementFunction=()=>textareaElement),dataType===\"Object\"||dataType===\"Array\"?React20__default.createElement(\"div\",{className:\"rejt-tree\"},React20__default.createElement(JsonNode,{data,name:rootName||\"root\",deep:-1,isCollapsed:isCollapsed??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:onDeltaUpdate??(()=>{}),readOnly:readOnlyFunction,getStyle:getStyle??(()=>({})),addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4??{},onSubmitValueParser:onSubmitValueParser??(val=>val)})):fallback}};JsonTree.defaultProps={rootName:\"root\",isCollapsed:(keyPath,deep)=>deep!==-1,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case\"Object\":case\"Error\":return object;case\"Array\":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>parse3(rawValue),inputElement:()=>React20__default.createElement(\"input\",null),textareaElement:()=>React20__default.createElement(\"textarea\",null),fallback:null};var {window:globalWindow2}=globalThis,Wrapper7=styled.div(({theme})=>({position:\"relative\",display:\"flex\",'&[aria-readonly=\"true\"]':{opacity:.5},\".rejt-tree\":{marginLeft:\"1rem\",fontSize:\"13px\"},\".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed\":{\"& > svg\":{opacity:0,transition:\"opacity 0.2s\"}},\".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed\":{\"& > svg\":{opacity:1}},\".rejt-edit-form button\":{display:\"none\"},\".rejt-add-form\":{marginLeft:10},\".rejt-add-value-node\":{display:\"inline-flex\",alignItems:\"center\"},\".rejt-name\":{lineHeight:\"22px\"},\".rejt-not-collapsed-delimiter\":{lineHeight:\"22px\"},\".rejt-plus-menu\":{marginLeft:5},\".rejt-object-node > span > *, .rejt-array-node > span > *\":{position:\"relative\",zIndex:2},\".rejt-object-node, .rejt-array-node\":{position:\"relative\"},\".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before\":{content:'\"\"',position:\"absolute\",top:0,display:\"block\",width:\"100%\",marginLeft:\"-1rem\",padding:\"0 4px 0 1rem\",height:22},\".rejt-collapsed::before, .rejt-not-collapsed::before\":{zIndex:1,background:\"transparent\",borderRadius:4,transition:\"background 0.2s\",pointerEvents:\"none\",opacity:.1},\".rejt-object-node:hover, .rejt-array-node:hover\":{\"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before\":{background:theme.color.secondary}},\".rejt-collapsed::after, .rejt-not-collapsed::after\":{content:'\"\"',position:\"absolute\",display:\"inline-block\",pointerEvents:\"none\",width:0,height:0},\".rejt-collapsed::after\":{left:-8,top:8,borderTop:\"3px solid transparent\",borderBottom:\"3px solid transparent\",borderLeft:\"3px solid rgba(153,153,153,0.6)\"},\".rejt-not-collapsed::after\":{left:-10,top:10,borderTop:\"3px solid rgba(153,153,153,0.6)\",borderLeft:\"3px solid transparent\",borderRight:\"3px solid transparent\"},\".rejt-value\":{display:\"inline-block\",border:\"1px solid transparent\",borderRadius:4,margin:\"1px 0\",padding:\"0 4px\",cursor:\"text\",color:theme.color.defaultText},\".rejt-value-node:hover > .rejt-value\":{background:theme.color.lighter,borderColor:theme.appBorderColor}})),ButtonInline=styled.button(({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:\"transparent\",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?\"bold\":\"normal\",cursor:\"pointer\",order:primary?\"initial\":9})),ActionAddIcon=styled(AddIcon)(({theme,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:theme.color.ancillary},\"svg + &\":{marginLeft:0}})),ActionSubstractIcon=styled(SubtractIcon)(({theme,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:theme.color.negative},\"svg + &\":{marginLeft:0}})),Input=styled.input(({theme,placeholder})=>({outline:0,margin:placeholder?1:\"1px 0\",padding:\"3px 4px\",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:\"14px\",width:placeholder===\"Key\"?80:120,\"&:focus\":{border:`1px solid ${theme.color.secondary}`}})),RawButton=styled(IconButton)(({theme})=>({position:\"absolute\",zIndex:2,top:2,right:2,height:21,padding:\"0 3px\",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:\"9px\",fontWeight:\"bold\",textDecoration:\"none\",span:{marginLeft:3,marginTop:1}})),RawInput=styled(Form.Textarea)(({theme})=>({flex:1,padding:\"7px 6px\",fontFamily:theme.typography.fonts.mono,fontSize:\"12px\",lineHeight:\"18px\",\"&::placeholder\":{fontFamily:theme.typography.fonts.base,fontSize:\"13px\"},\"&:placeholder-shown\":{padding:\"7px 10px\"}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:\"Enter\",code:\"Enter\",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent(\"keydown\",ENTER_EVENT));},selectValue=event=>{event.currentTarget.select();},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:\"none\",margin:\"0 0 0 1rem\",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange,argType})=>{let theme=useTheme(),data=useMemo(()=>value2&&cloneDeep(value2),[value2]),hasData=data!=null,[showRaw,setShowRaw]=useState(!hasData),[parseError,setParseError]=useState(null),readonly=!!argType?.table?.readonly,updateRaw=useCallback(raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(null);}catch(e2){setParseError(e2);}},[onChange]),[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange({}),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);if(useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),!hasData)return React20__default.createElement(Button,{disabled:readonly,id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set object\");let rawJSONForm=React20__default.createElement(RawInput,{ref:htmlElRef,id:getControlId(name),name,defaultValue:value2===null?\"\":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:\"Edit JSON string...\",autoFocus:forceVisible,valid:parseError?\"error\":void 0,readOnly:readonly}),isObjectOrArray=Array.isArray(value2)||typeof value2==\"object\"&&value2?.constructor===Object;return React20__default.createElement(Wrapper7,{\"aria-readonly\":readonly},isObjectOrArray&&React20__default.createElement(RawButton,{onClick:e2=>{e2.preventDefault(),setShowRaw(v2=>!v2);}},showRaw?React20__default.createElement(EyeCloseIcon,null):React20__default.createElement(EyeIcon,null),React20__default.createElement(\"span\",null,\"RAW\")),showRaw?rawJSONForm:React20__default.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:React20__default.createElement(ButtonInline,{type:\"button\"},\"Cancel\"),editButtonElement:React20__default.createElement(ButtonInline,{type:\"submit\"},\"Save\"),addButtonElement:React20__default.createElement(ButtonInline,{type:\"submit\",primary:!0},\"Save\"),plusMenuElement:React20__default.createElement(ActionAddIcon,null),minusMenuElement:React20__default.createElement(ActionSubstractIcon,null),inputElement:(_2,__,___,key)=>key?React20__default.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):React20__default.createElement(Input,null),fallback:rawJSONForm}))};var RangeInput=styled.input(({theme,min,max,value:value2,disabled})=>({\"&\":{width:\"100%\",backgroundColor:\"transparent\",appearance:\"none\"},\"&::-webkit-slider-runnable-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:disabled?\"not-allowed\":\"pointer\"},\"&::-webkit-slider-thumb\":{marginTop:\"-6px\",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?\"not-allowed\":\"grab\",appearance:\"none\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:disabled?\"not-allowed\":\"grab\"}},\"&:focus\":{outline:\"none\",\"&::-webkit-slider-runnable-track\":{borderColor:rgba(theme.color.secondary,.4)},\"&::-webkit-slider-thumb\":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},\"&::-moz-range-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:disabled?\"not-allowed\":\"pointer\",outline:\"none\"},\"&::-moz-range-thumb\":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?\"not-allowed\":\"grap\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:\"grabbing\"}},\"&::-ms-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:\"transparent\",width:\"100%\",height:\"6px\",cursor:\"pointer\"},\"&::-ms-fill-lower\":{borderRadius:6},\"&::-ms-fill-upper\":{borderRadius:6},\"&::-ms-thumb\":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:\"grab\",marginTop:0},\"@supports (-ms-ime-align:auto)\":{\"input[type=range]\":{margin:\"0\"}}})),RangeLabel=styled.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:\"nowrap\",fontFeatureSettings:\"tnum\",fontVariantNumeric:\"tabular-nums\",\"[aria-readonly=true] &\":{opacity:.5}}),RangeCurrentAndMaxLabel=styled(RangeLabel)(({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+max.toString().length*2+3}ch`,textAlign:\"right\",flexShrink:0})),RangeWrapper=styled.div({display:\"flex\",alignItems:\"center\",width:\"100%\"});function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let handleChange=event=>{onChange(parse2(event.target.value));},hasValue=value2!==void 0,numberOFDecimalsPlaces=useMemo(()=>getNumberOfDecimalPlaces(step),[step]),readonly=!!argType?.table?.readonly;return React20__default.createElement(RangeWrapper,{\"aria-readonly\":readonly},React20__default.createElement(RangeLabel,null,min),React20__default.createElement(RangeInput,{id:getControlId(name),type:\"range\",disabled:readonly,onChange:handleChange,name,min,max,step,onFocus,onBlur,value:value2??min}),React20__default.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):\"--\",\" / \",max))};var Wrapper8=styled.label({display:\"flex\"}),MaxLength=styled.div(({isMaxed})=>({marginLeft:\"0.75rem\",paddingTop:\"0.35rem\",color:isMaxed?\"red\":void 0})),TextControl=({name,value:value2,onChange,onFocus,onBlur,maxLength,argType})=>{let handleChange=event=>{onChange(event.target.value);},readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange(\"\"),setForceVisible(!0);},[setForceVisible]);if(value2===void 0)return React20__default.createElement(Button,{variant:\"outline\",size:\"medium\",disabled:readonly,id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set string\");let isValid=typeof value2==\"string\";return React20__default.createElement(Wrapper8,null,React20__default.createElement(Form.Textarea,{id:getControlId(name),maxLength,onChange:handleChange,disabled:readonly,size:\"flex\",placeholder:\"Edit string...\",autoFocus:forceVisible,valid:isValid?void 0:\"error\",name,value:isValid?value2:\"\",onFocus,onBlur}),maxLength&&React20__default.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0,\" / \",maxLength))};var FileInput=styled(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach(url=>{url.startsWith(\"blob:\")&&URL.revokeObjectURL(url);});}var FilesControl=({onChange,name,accept=\"image/*\",value:value2,argType})=>{let inputElement=useRef(null),readonly=argType?.control?.readOnly;function handleFileChange(e2){if(!e2.target.files)return;let fileUrls=Array.from(e2.target.files).map(file=>URL.createObjectURL(file));onChange(fileUrls),revokeOldUrls(value2||[]);}return useEffect(()=>{value2==null&&inputElement.current&&(inputElement.current.value=\"\");},[value2,name]),React20__default.createElement(FileInput,{ref:inputElement,id:getControlId(name),type:\"file\",name,multiple:!0,disabled:readonly,onChange:handleFileChange,accept,size:\"flex\"})};var LazyColorControl=lazy(()=>import('./Color-AVL7NMMY.mjs')),ColorControl=props=>React20__default.createElement(Suspense,{fallback:React20__default.createElement(\"div\",null)},React20__default.createElement(LazyColorControl,{...props}));var Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,\"inline-check\":OptionsControl,radio:OptionsControl,\"inline-radio\":OptionsControl,select:OptionsControl,\"multi-select\":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>React20__default.createElement(React20__default.Fragment,null,\"-\"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=useState(!1),[boxedValue,setBoxedValue]=useState({value:arg});useEffect(()=>{isFocused||setBoxedValue({value:arg});},[isFocused,arg]);let onChange=useCallback(argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal),[updateArgs,key]),onBlur=useCallback(()=>setFocused(!1),[]),onFocus=useCallback(()=>setFocused(!0),[]);if(!control||control.disable){let canBeSetup=control?.disable!==!0&&row?.type?.name!==\"function\";return isHovered&&canBeSetup?React20__default.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},\"Setup controls\"):React20__default.createElement(NoControl,null)}let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return React20__default.createElement(Control,{...props,...control,controlType:control.type})};var Table=styled.table(({theme})=>({\"&&\":{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:codeCommon({theme}),div:{span:{fontWeight:\"bold\"}},\"& code\":{margin:0,display:\"inline-block\",fontSize:theme.typography.size.s1}}})),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter(x2=>x2.description),hasDisplayableParams=params.length!==0,hasDisplayableDeprecated=tags.deprecated!=null,hasDisplayableReturns=tags.returns!=null&&tags.returns.description!=null;return !hasDisplayableParams&&!hasDisplayableReturns&&!hasDisplayableDeprecated?null:React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(Table,null,React20__default.createElement(\"tbody\",null,hasDisplayableDeprecated&&React20__default.createElement(\"tr\",{key:\"deprecated\"},React20__default.createElement(\"td\",{colSpan:2},React20__default.createElement(\"strong\",null,\"Deprecated\"),\": \",tags.deprecated?.toString())),hasDisplayableParams&&params.map(x2=>React20__default.createElement(\"tr\",{key:x2.name},React20__default.createElement(\"td\",null,React20__default.createElement(\"code\",null,x2.name)),React20__default.createElement(\"td\",null,x2.description))),hasDisplayableReturns&&React20__default.createElement(\"tr\",{key:\"returns\"},React20__default.createElement(\"td\",null,React20__default.createElement(\"code\",null,\"Returns\")),React20__default.createElement(\"td\",null,tags.returns?.description)))))};var import_memoizerific=__toESM(require_memoizerific());var ITEMS_BEFORE_EXPANSION=8,Summary=styled.div(({isExpanded})=>({display:\"flex\",flexDirection:isExpanded?\"column\":\"row\",flexWrap:\"wrap\",alignItems:\"flex-start\",marginBottom:\"-4px\",minWidth:100})),Text3=styled.span(codeCommon,({theme,simple=!1})=>({flex:\"0 0 auto\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:\"break-word\",whiteSpace:\"normal\",maxWidth:\"100%\",margin:0,marginRight:\"4px\",marginBottom:\"4px\",paddingTop:\"2px\",paddingBottom:\"2px\",lineHeight:\"13px\",...simple&&{background:\"transparent\",border:\"0 none\",paddingLeft:0}})),ExpandButton=styled.button(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:\"4px\",background:\"none\",border:\"none\"})),Expandable=styled.div(codeCommon,({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:\"nowrap\",display:\"flex\",alignItems:\"center\"})),Detail=styled.div(({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:\"content-box\",\"& code\":{padding:\"0 !important\"}})),ChevronUpIcon=styled(ChevronSmallUpIcon)({marginLeft:4}),ChevronDownIcon=styled(ChevronSmallDownIcon)({marginLeft:4}),EmptyArg=()=>React20__default.createElement(\"span\",null,\"-\"),ArgText=({text,simple})=>React20__default.createElement(Text3,{simple},text),calculateDetailWidth=(0, import_memoizerific.default)(1e3)(detail=>{let lines=detail.split(/\\r?\\n/);return `${Math.max(...lines.map(x2=>x2.length))}ch`}),getSummaryItems=summary=>{if(!summary)return [summary];let summaryItems=summary.split(\"|\").map(value2=>value2.trim());return uniq(summaryItems)},renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map(item=>React20__default.createElement(ArgText,{key:item,text:item===\"\"?'\"\"':item}))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=useState(!1),[isExpanded,setIsExpanded]=useState(initialExpandedArgs||!1);if(summary==null)return null;let summaryAsString=typeof summary.toString==\"function\"?summary.toString():summary;if(detail==null){if(/[(){}[\\]<>]/.test(summaryAsString))return React20__default.createElement(ArgText,{text:summaryAsString});let summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?React20__default.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),React20__default.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?\"Show less...\":`Show ${itemsCount-ITEMS_BEFORE_EXPANSION} more...`)):React20__default.createElement(Summary,null,renderSummaryItems(summaryItems))}return React20__default.createElement(WithTooltipPure,{closeOnOutsideClick:!0,placement:\"bottom\",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible);},tooltip:React20__default.createElement(Detail,{width:calculateDetailWidth(detail)},React20__default.createElement(SyntaxHighlighter,{language:\"jsx\",format:!1},detail))},React20__default.createElement(Expandable,{className:\"sbdocs-expandable\"},React20__default.createElement(\"span\",null,summaryAsString),isOpen?React20__default.createElement(ChevronUpIcon,null):React20__default.createElement(ChevronDownIcon,null)))},ArgValue=({value:value2,initialExpandedArgs})=>value2==null?React20__default.createElement(EmptyArg,null):React20__default.createElement(ArgSummary,{value:value2,initialExpandedArgs});var Name=styled.span({fontWeight:\"bold\"}),Required=styled.span(({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:\"help\"})),Description=styled.div(({theme})=>({\"&&\":{p:{margin:\"0 0 10px 0\"},a:{color:theme.color.secondary}},code:{...codeCommon({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},\"& code\":{margin:0,display:\"inline-block\"},\"& pre > code\":{whiteSpace:\"pre-wrap\"}})),Type=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0})),TypeWithJsDoc=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12})),StyledTd=styled.td(({expandable})=>({paddingLeft:expandable?\"40px !important\":\"20px !important\"})),toSummary=value2=>value2&&{summary:typeof value2==\"string\"?value2:value2.name},ArgRow=props=>{let[isHovered,setIsHovered]=useState(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||toSummary(row.type),defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=description!=null&&description!==\"\";return React20__default.createElement(\"tr\",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},React20__default.createElement(StyledTd,{expandable:expandable??!1},React20__default.createElement(Name,null,name),required?React20__default.createElement(Required,{title:\"Required\"},\"*\"):null),compact?null:React20__default.createElement(\"td\",null,hasDescription&&React20__default.createElement(Description,null,React20__default.createElement(index_modern_default,null,description)),table.jsDocTags!=null?React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(TypeWithJsDoc,{hasDescription},React20__default.createElement(ArgValue,{value:type,initialExpandedArgs})),React20__default.createElement(ArgJsDoc,{tags:table.jsDocTags})):React20__default.createElement(Type,{hasDescription},React20__default.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:React20__default.createElement(\"td\",null,React20__default.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?React20__default.createElement(\"td\",null,React20__default.createElement(ArgControl,{...props,isHovered})):null)};var Wrapper9=styled.div(({inAddonPanel,theme})=>({height:inAddonPanel?\"100%\":\"auto\",display:\"flex\",border:inAddonPanel?\"none\":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\",gap:15,background:theme.background.content})),Links=styled.div(({theme})=>({display:\"flex\",fontSize:theme.typography.size.s2-1,gap:25})),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=useState(!0);return useEffect(()=>{let load=setTimeout(()=>{setIsLoading(!1);},100);return ()=>clearTimeout(load)},[]),isLoading?null:React20__default.createElement(Wrapper9,{inAddonPanel},React20__default.createElement(EmptyTabContent,{title:inAddonPanel?\"Interactive story playground\":\"Args table with interactive controls couldn't be auto-generated\",description:React20__default.createElement(React20__default.Fragment,null,\"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.\"),footer:React20__default.createElement(Links,null,inAddonPanel&&React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},React20__default.createElement(DocumentIcon,null),\" Read docs\")),!inAddonPanel&&React20__default.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},React20__default.createElement(DocumentIcon,null),\" Learn how to set that up\"))}))};var ExpanderIconDown=styled(ChevronDownIcon$1)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),ExpanderIconRight=styled(ChevronRightIcon)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),FlexWrapper=styled.span(({theme})=>({display:\"flex\",lineHeight:\"20px\",alignItems:\"center\"})),Section=styled.td(({theme})=>({position:\"relative\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,\"& ~ td\":{background:`${theme.background.app} !important`}})),Subsection=styled.td(({theme})=>({position:\"relative\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app})),StyledTd2=styled.td({position:\"relative\"}),StyledTr=styled.tr(({theme})=>({\"&:hover > td\":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:\"row-resize\"}})),ClickIntercept=styled.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\"}),SectionRow=({level=\"section\",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=useState(initialExpanded),Level=level===\"subsection\"?Subsection:Section,itemCount=children?.length||0,caption=level===\"subsection\"?`${itemCount} item${itemCount!==1?\"s\":\"\"}`:\"\",helperText=`${expanded?\"Hide\":\"Show\"} ${level===\"subsection\"?itemCount:label} item${itemCount!==1?\"s\":\"\"}`;return React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(StyledTr,{title:helperText},React20__default.createElement(Level,{colSpan:1},React20__default.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:0},helperText),React20__default.createElement(FlexWrapper,null,expanded?React20__default.createElement(ExpanderIconDown,null):React20__default.createElement(ExpanderIconRight,null),label)),React20__default.createElement(StyledTd2,{colSpan:colSpan-1},React20__default.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:-1,style:{outline:\"none\"}},helperText),expanded?null:caption)),expanded?children:null)};var TableWrapper=styled.div(({theme})=>({width:\"100%\",borderSpacing:0,color:theme.color.defaultText})),Row=styled.div(({theme})=>({display:\"flex\",borderBottom:`1px solid ${theme.appBorderColor}`,\"&:last-child\":{borderBottom:0}})),Column=styled.div(({position,theme})=>{let baseStyles={display:\"flex\",flexDirection:\"column\",gap:5,padding:\"10px 15px\",alignItems:\"flex-start\"};switch(position){case\"first\":return {...baseStyles,width:\"25%\",paddingLeft:20};case\"second\":return {...baseStyles,width:\"35%\"};case\"third\":return {...baseStyles,width:\"15%\"};case\"last\":return {...baseStyles,width:\"25%\",paddingRight:20}}}),SkeletonText=styled.div(({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||\"100%\",height:height||16,borderRadius:3})),Skeleton=()=>React20__default.createElement(TableWrapper,null,React20__default.createElement(Row,null,React20__default.createElement(Column,{position:\"first\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"second\"},React20__default.createElement(SkeletonText,{width:\"30%\"})),React20__default.createElement(Column,{position:\"third\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"last\"},React20__default.createElement(SkeletonText,{width:\"60%\"}))),React20__default.createElement(Row,null,React20__default.createElement(Column,{position:\"first\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"second\"},React20__default.createElement(SkeletonText,{width:\"80%\"}),React20__default.createElement(SkeletonText,{width:\"30%\"})),React20__default.createElement(Column,{position:\"third\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"last\"},React20__default.createElement(SkeletonText,{width:\"60%\"}))),React20__default.createElement(Row,null,React20__default.createElement(Column,{position:\"first\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"second\"},React20__default.createElement(SkeletonText,{width:\"80%\"}),React20__default.createElement(SkeletonText,{width:\"30%\"})),React20__default.createElement(Column,{position:\"third\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"last\"},React20__default.createElement(SkeletonText,{width:\"60%\"}))),React20__default.createElement(Row,null,React20__default.createElement(Column,{position:\"first\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"second\"},React20__default.createElement(SkeletonText,{width:\"80%\"}),React20__default.createElement(SkeletonText,{width:\"30%\"})),React20__default.createElement(Column,{position:\"third\"},React20__default.createElement(SkeletonText,{width:\"60%\"})),React20__default.createElement(Column,{position:\"last\"},React20__default.createElement(SkeletonText,{width:\"60%\"}))));var TableWrapper2=styled.table(({theme,compact,inAddonPanel})=>({\"&&\":{borderSpacing:0,color:theme.color.defaultText,\"td, th\":{padding:0,border:\"none\",verticalAlign:\"top\",textOverflow:\"ellipsis\"},fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",textAlign:\"left\",width:\"100%\",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?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)\":{...compact?null:{width:\"35%\"}},\"td:nth-of-type(3)\":{...compact?null:{width:\"15%\"}},\"th:last-of-type, td:last-of-type\":{paddingRight:20,...compact?null:{width:\"25%\"}},th:{color:theme.base===\"light\"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),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}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:theme.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:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{\"> tr:first-of-type > *\":{borderBlockStart:`1px solid ${theme.appBorderColor}`},\"> tr:last-of-type > *\":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},\"> tr > *:first-of-type\":{borderInlineStart:`1px solid ${theme.appBorderColor}`},\"> tr > *:last-of-type\":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},\"> tr:first-of-type > td:first-of-type\":{borderTopLeftRadius:theme.appBorderRadius},\"> tr:first-of-type > td:last-of-type\":{borderTopRightRadius:theme.appBorderRadius},\"> tr:last-of-type > td:first-of-type\":{borderBottomLeftRadius:theme.appBorderRadius},\"> tr:last-of-type > td:last-of-type\":{borderBottomRightRadius:theme.appBorderRadius}}}}})),StyledIconButton=styled(IconButton)(({theme})=>({margin:\"-4px -12px -4px 0\"})),ControlHeadingWrapper=styled.span({display:\"flex\",justifyContent:\"space-between\"});var sortFns={alpha:(a2,b2)=>(a2.name??\"\").localeCompare(b2.name??\"\"),requiredFirst:(a2,b2)=>+!!b2.type?.required-+!!a2.type?.required||(a2.name??\"\").localeCompare(b2.name??\"\"),none:null},groupRows=(rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach(([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(!subcategory)section.ungrouped.push({key,...row});else {let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection;}sections.sections[category]=section;}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection;}else sections.ungrouped.push({key,...row});});let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)}),{}):record;return {ungrouped:sortFn?sections.ungrouped.sort(sortFn):sections.ungrouped,ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((acc,cur)=>({...acc,[cur]:{ungrouped:sortFn?sections.sections[cur].ungrouped.sort(sortFn):sections.sections[cur].ungrouped,subsections:sortSubsection(sections.sections[cur].subsections)}}),{})}},safeIncludeConditionalArg=(row,args,globals)=>{try{return includeConditionalArg(row,args,globals)}catch(err){return once.warn(err.message),!1}},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort=\"none\",isLoading}=props;if(\"error\"in props){let{error}=props;return React20__default.createElement(EmptyBlock,null,error,\"\\xA0\",React20__default.createElement(Link,{href:\"http://storybook.js.org/docs/\",target:\"_blank\",withArrow:!0},React20__default.createElement(DocumentIcon,null),\" Read the docs\"))}if(isLoading)return React20__default.createElement(Skeleton,null);let{rows,args,globals}=\"rows\"in props?props:{rows:void 0,args:void 0,globals:void 0},groups=groupRows(pickBy(rows||{},row=>!row?.table?.disable&&safeIncludeConditionalArg(row,args||{},globals||{})),sort),hasNoUngrouped=groups.ungrouped.length===0,hasNoSections=Object.entries(groups.sections).length===0,hasNoUngroupedSubsections=Object.entries(groups.ungroupedSubsections).length===0;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return React20__default.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return React20__default.createElement(ResetWrapper,null,React20__default.createElement(TableWrapper2,{compact,inAddonPanel,className:\"docblock-argstable sb-unstyled\"},React20__default.createElement(\"thead\",{className:\"docblock-argstable-head\"},React20__default.createElement(\"tr\",null,React20__default.createElement(\"th\",null,React20__default.createElement(\"span\",null,\"Name\")),compact?null:React20__default.createElement(\"th\",null,React20__default.createElement(\"span\",null,\"Description\")),compact?null:React20__default.createElement(\"th\",null,React20__default.createElement(\"span\",null,\"Default\")),updateArgs?React20__default.createElement(\"th\",null,React20__default.createElement(ControlHeadingWrapper,null,\"Control\",\" \",!isLoading&&resetArgs&&React20__default.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:\"Reset controls\"},React20__default.createElement(UndoIcon,{\"aria-hidden\":!0})))):null)),React20__default.createElement(\"tbody\",{className:\"docblock-argstable-body\"},groups.ungrouped.map(row=>React20__default.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(groups.ungroupedSubsections).map(([subcategory,subsection])=>React20__default.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React20__default.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))),Object.entries(groups.sections).map(([category,section])=>React20__default.createElement(SectionRow,{key:category,label:category,level:\"section\",colSpan},section.ungrouped.map(row=>React20__default.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(section.subsections).map(([subcategory,subsection])=>React20__default.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React20__default.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))))))};var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>React20__default.createElement(\"div\",{id:anchorBlockIdFromId(storyId),className:\"sb-anchor\"},children);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=createContext(null),globalThis.__DOCS_CONTEXT__.displayName=\"DocsContext\");var DocsContext=globalThis?globalThis.__DOCS_CONTEXT__:createContext(null);var useOf=(moduleExportOrType,validTypes)=>useContext(DocsContext).resolveOf(moduleExportOrType,validTypes);var titleCase=str=>str.split(\"-\").map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(\"\"),getComponentName=component=>{if(component)return typeof component==\"string\"?component.includes(\"-\")?titleCase(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function scrollToElement(element,block=\"start\"){element.scrollIntoView({behavior:\"smooth\",block,inline:\"nearest\"});}function extractComponentArgTypes(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}function getArgTypesFromResolved(resolved){if(resolved.type===\"component\"){let{component:component2,projectAnnotations:{parameters:parameters2}}=resolved;return {argTypes:extractComponentArgTypes(component2,parameters2),parameters:parameters2,component:component2}}if(resolved.type===\"meta\"){let{preparedMeta:{argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}=resolved;return {argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}let{story:{argTypes,parameters,component,subcomponents}}=resolved;return {argTypes,parameters,component,subcomponents}}var ArgTypes=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolved=useOf(of||\"meta\"),{argTypes,parameters,component,subcomponents}=getArgTypesFromResolved(resolved),argTypesParameters=parameters?.docs?.argTypes||{},include=props.include??argTypesParameters.include,exclude=props.exclude??argTypesParameters.exclude,sort=props.sort??argTypesParameters.sort,filteredArgTypes=filterArgTypes(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents||{}).length>0))return React20__default.createElement(ArgsTable,{rows:filteredArgTypes,sort});let mainComponentName=getComponentName(component)||\"Main\",subcomponentTabs=Object.fromEntries(Object.entries(subcomponents||{}).map(([key,comp])=>[key,{rows:filterArgTypes(extractComponentArgTypes(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return React20__default.createElement(TabbedArgsTable,{tabs,sort})};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__copyProps=(to,from,except,desc)=>{if(from&&typeof from==\"object\"||typeof from==\"function\")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM2=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:!0}):target,mod)),eventProperties=[\"bubbles\",\"cancelBubble\",\"cancelable\",\"composed\",\"currentTarget\",\"defaultPrevented\",\"eventPhase\",\"isTrusted\",\"returnValue\",\"srcElement\",\"target\",\"timeStamp\",\"type\"],customEventSpecificProperties=[\"detail\"];function extractEventHiddenProperties(event){let rebuildEvent=eventProperties.filter(value2=>event[value2]!==void 0).reduce((acc,value2)=>(acc[value2]=event[value2],acc),{});if(event instanceof CustomEvent)for(let value2 of customEventSpecificProperties.filter(value22=>event[value22]!==void 0))rebuildEvent[value2]=event[value2];return rebuildEvent}var require_es_object_atoms=__commonJS2({\"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\"(exports,module){module.exports=Object;}}),require_es_errors=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\"(exports,module){module.exports=Error;}}),require_eval=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\"(exports,module){module.exports=EvalError;}}),require_range=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\"(exports,module){module.exports=RangeError;}}),require_ref=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\"(exports,module){module.exports=ReferenceError;}}),require_syntax=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\"(exports,module){module.exports=SyntaxError;}}),require_type=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\"(exports,module){module.exports=TypeError;}}),require_uri=__commonJS2({\"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\"(exports,module){module.exports=URIError;}}),require_abs=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\"(exports,module){module.exports=Math.abs;}}),require_floor=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\"(exports,module){module.exports=Math.floor;}}),require_max=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\"(exports,module){module.exports=Math.max;}}),require_min=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\"(exports,module){module.exports=Math.min;}}),require_pow=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\"(exports,module){module.exports=Math.pow;}}),require_round=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\"(exports,module){module.exports=Math.round;}}),require_isNaN=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js\"(exports,module){module.exports=Number.isNaN||function(a2){return a2!==a2};}}),require_sign=__commonJS2({\"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\"(exports,module){var $isNaN=require_isNaN();module.exports=function(number){return $isNaN(number)||number===0?number:number<0?-1:1};}}),require_gOPD=__commonJS2({\"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js\"(exports,module){module.exports=Object.getOwnPropertyDescriptor;}}),require_gopd=__commonJS2({\"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\"(exports,module){var $gOPD=require_gOPD();if($gOPD)try{$gOPD([],\"length\");}catch{$gOPD=null;}module.exports=$gOPD;}}),require_es_define_property=__commonJS2({\"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\"(exports,module){var $defineProperty=Object.defineProperty||!1;if($defineProperty)try{$defineProperty({},\"a\",{value:1});}catch{$defineProperty=!1;}module.exports=$defineProperty;}}),require_shams=__commonJS2({\"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js\"(exports,module){module.exports=function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return !1;if(typeof Symbol.iterator==\"symbol\")return !0;var obj={},sym=Symbol(\"test\"),symObj=Object(sym);if(typeof sym==\"string\"||Object.prototype.toString.call(sym)!==\"[object Symbol]\"||Object.prototype.toString.call(symObj)!==\"[object Symbol]\")return !1;var symVal=42;obj[sym]=symVal;for(var _2 in obj)return !1;if(typeof Object.keys==\"function\"&&Object.keys(obj).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(obj).length!==0)return !1;var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return !1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==!0)return !1}return !0};}}),require_has_symbols=__commonJS2({\"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\"(exports,module){var origSymbol=typeof Symbol<\"u\"&&Symbol,hasSymbolSham=require_shams();module.exports=function(){return typeof origSymbol!=\"function\"||typeof Symbol!=\"function\"||typeof origSymbol(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:hasSymbolSham()};}}),require_Reflect_getPrototypeOf=__commonJS2({\"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\"(exports,module){module.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null;}}),require_Object_getPrototypeOf=__commonJS2({\"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\"(exports,module){var $Object=require_es_object_atoms();module.exports=$Object.getPrototypeOf||null;}}),require_implementation=__commonJS2({\"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js\"(exports,module){var ERROR_MESSAGE=\"Function.prototype.bind called on incompatible \",toStr=Object.prototype.toString,max=Math.max,funcType=\"[object Function]\",concatty=function(a2,b2){for(var arr=[],i2=0;i2<a2.length;i2+=1)arr[i2]=a2[i2];for(var j2=0;j2<b2.length;j2+=1)arr[j2+a2.length]=b2[j2];return arr},slicy=function(arrLike,offset){for(var arr=[],i2=offset||0,j2=0;i2<arrLike.length;i2+=1,j2+=1)arr[j2]=arrLike[i2];return arr},joiny=function(arr,joiner){for(var str=\"\",i2=0;i2<arr.length;i2+=1)str+=arr[i2],i2+1<arr.length&&(str+=joiner);return str};module.exports=function(that){var target=this;if(typeof target!=\"function\"||toStr.apply(target)!==funcType)throw new TypeError(ERROR_MESSAGE+target);for(var args=slicy(arguments,1),bound,binder=function(){if(this instanceof bound){var result=target.apply(this,concatty(args,arguments));return Object(result)===result?result:this}return target.apply(that,concatty(args,arguments))},boundLength=max(0,target.length-args.length),boundArgs=[],i2=0;i2<boundLength;i2++)boundArgs[i2]=\"$\"+i2;if(bound=Function(\"binder\",\"return function (\"+joiny(boundArgs,\",\")+\"){ return binder.apply(this,arguments); }\")(binder),target.prototype){var Empty2=function(){};Empty2.prototype=target.prototype,bound.prototype=new Empty2,Empty2.prototype=null;}return bound};}}),require_function_bind=__commonJS2({\"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\"(exports,module){var implementation=require_implementation();module.exports=Function.prototype.bind||implementation;}}),require_functionCall=__commonJS2({\"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\"(exports,module){module.exports=Function.prototype.call;}}),require_functionApply=__commonJS2({\"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\"(exports,module){module.exports=Function.prototype.apply;}}),require_reflectApply=__commonJS2({\"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js\"(exports,module){module.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply;}}),require_actualApply=__commonJS2({\"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js\"(exports,module){var bind=require_function_bind(),$apply=require_functionApply(),$call=require_functionCall(),$reflectApply=require_reflectApply();module.exports=$reflectApply||bind.call($call,$apply);}}),require_call_bind_apply_helpers=__commonJS2({\"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js\"(exports,module){var bind=require_function_bind(),$TypeError=require_type(),$call=require_functionCall(),$actualApply=require_actualApply();module.exports=function(args){if(args.length<1||typeof args[0]!=\"function\")throw new $TypeError(\"a function is required\");return $actualApply(bind,$call,args)};}}),require_get=__commonJS2({\"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js\"(exports,module){var callBind=require_call_bind_apply_helpers(),gOPD=require_gopd(),hasProtoAccessor;try{hasProtoAccessor=[].__proto__===Array.prototype;}catch(e2){if(!e2||typeof e2!=\"object\"||!(\"code\"in e2)||e2.code!==\"ERR_PROTO_ACCESS\")throw e2}var desc=!!hasProtoAccessor&&gOPD&&gOPD(Object.prototype,\"__proto__\"),$Object=Object,$getPrototypeOf=$Object.getPrototypeOf;module.exports=desc&&typeof desc.get==\"function\"?callBind([desc.get]):typeof $getPrototypeOf==\"function\"?function(value2){return $getPrototypeOf(value2==null?value2:$Object(value2))}:!1;}}),require_get_proto=__commonJS2({\"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\"(exports,module){var reflectGetProto=require_Reflect_getPrototypeOf(),originalGetProto=require_Object_getPrototypeOf(),getDunderProto=require_get();module.exports=reflectGetProto?function(O2){return reflectGetProto(O2)}:originalGetProto?function(O2){if(!O2||typeof O2!=\"object\"&&typeof O2!=\"function\")throw new TypeError(\"getProto: not an object\");return originalGetProto(O2)}:getDunderProto?function(O2){return getDunderProto(O2)}:null;}}),require_hasown=__commonJS2({\"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js\"(exports,module){var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require_function_bind();module.exports=bind.call(call,$hasOwn);}}),require_get_intrinsic=__commonJS2({\"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js\"(exports,module){var undefined2,$Object=require_es_object_atoms(),$Error=require_es_errors(),$EvalError=require_eval(),$RangeError=require_range(),$ReferenceError=require_ref(),$SyntaxError=require_syntax(),$TypeError=require_type(),$URIError=require_uri(),abs=require_abs(),floor=require_floor(),max=require_max(),min=require_min(),pow=require_pow(),round=require_round(),sign=require_sign(),$Function=Function,getEvalledConstructor=function(expressionSyntax){try{return $Function('\"use strict\"; return ('+expressionSyntax+\").constructor;\")()}catch{}},$gOPD=require_gopd(),$defineProperty=require_es_define_property(),throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,\"callee\").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=require_has_symbols()(),getProto=require_get_proto(),$ObjectGPO=require_Object_getPrototypeOf(),$ReflectGPO=require_Reflect_getPrototypeOf(),$apply=require_functionApply(),$call=require_functionCall(),needsEval={},TypedArray=typeof Uint8Array>\"u\"||!getProto?undefined2:getProto(Uint8Array),INTRINSICS={__proto__:null,\"%AggregateError%\":typeof AggregateError>\"u\"?undefined2:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?undefined2:ArrayBuffer,\"%ArrayIteratorPrototype%\":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined2,\"%AsyncFromSyncIteratorPrototype%\":undefined2,\"%AsyncFunction%\":needsEval,\"%AsyncGenerator%\":needsEval,\"%AsyncGeneratorFunction%\":needsEval,\"%AsyncIteratorPrototype%\":needsEval,\"%Atomics%\":typeof Atomics>\"u\"?undefined2:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?undefined2:BigInt,\"%BigInt64Array%\":typeof BigInt64Array>\"u\"?undefined2:BigInt64Array,\"%BigUint64Array%\":typeof BigUint64Array>\"u\"?undefined2:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?undefined2:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":$Error,\"%eval%\":eval,\"%EvalError%\":$EvalError,\"%Float16Array%\":typeof Float16Array>\"u\"?undefined2:Float16Array,\"%Float32Array%\":typeof Float32Array>\"u\"?undefined2:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?undefined2:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?undefined2:FinalizationRegistry,\"%Function%\":$Function,\"%GeneratorFunction%\":needsEval,\"%Int8Array%\":typeof Int8Array>\"u\"?undefined2:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?undefined2:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?undefined2:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined2,\"%JSON%\":typeof JSON==\"object\"?JSON:undefined2,\"%Map%\":typeof Map>\"u\"?undefined2:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!hasSymbols||!getProto?undefined2:getProto(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":$Object,\"%Object.getOwnPropertyDescriptor%\":$gOPD,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?undefined2:Promise,\"%Proxy%\":typeof Proxy>\"u\"?undefined2:Proxy,\"%RangeError%\":$RangeError,\"%ReferenceError%\":$ReferenceError,\"%Reflect%\":typeof Reflect>\"u\"?undefined2:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?undefined2:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!hasSymbols||!getProto?undefined2:getProto(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?undefined2:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":hasSymbols&&getProto?getProto(\"\"[Symbol.iterator]()):undefined2,\"%Symbol%\":hasSymbols?Symbol:undefined2,\"%SyntaxError%\":$SyntaxError,\"%ThrowTypeError%\":ThrowTypeError,\"%TypedArray%\":TypedArray,\"%TypeError%\":$TypeError,\"%Uint8Array%\":typeof Uint8Array>\"u\"?undefined2:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?undefined2:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?undefined2:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?undefined2:Uint32Array,\"%URIError%\":$URIError,\"%WeakMap%\":typeof WeakMap>\"u\"?undefined2:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?undefined2:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?undefined2:WeakSet,\"%Function.prototype.call%\":$call,\"%Function.prototype.apply%\":$apply,\"%Object.defineProperty%\":$defineProperty,\"%Object.getPrototypeOf%\":$ObjectGPO,\"%Math.abs%\":abs,\"%Math.floor%\":floor,\"%Math.max%\":max,\"%Math.min%\":min,\"%Math.pow%\":pow,\"%Math.round%\":round,\"%Math.sign%\":sign,\"%Reflect.getPrototypeOf%\":$ReflectGPO};if(getProto)try{null.error;}catch(e2){errorProto=getProto(getProto(e2)),INTRINSICS[\"%Error.prototype%\"]=errorProto;}var errorProto,doEval=function doEval2(name){var value2;if(name===\"%AsyncFunction%\")value2=getEvalledConstructor(\"async function () {}\");else if(name===\"%GeneratorFunction%\")value2=getEvalledConstructor(\"function* () {}\");else if(name===\"%AsyncGeneratorFunction%\")value2=getEvalledConstructor(\"async function* () {}\");else if(name===\"%AsyncGenerator%\"){var fn=doEval2(\"%AsyncGeneratorFunction%\");fn&&(value2=fn.prototype);}else if(name===\"%AsyncIteratorPrototype%\"){var gen=doEval2(\"%AsyncGenerator%\");gen&&getProto&&(value2=getProto(gen.prototype));}return INTRINSICS[name]=value2,value2},LEGACY_ALIASES={__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\"]},bind=require_function_bind(),hasOwn=require_hasown(),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName2=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,reEscapeChar2=/\\\\(\\\\)?/g,stringToPath2=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if(first===\"%\"&&last!==\"%\")throw new $SyntaxError(\"invalid intrinsic syntax, expected closing `%`\");if(last===\"%\"&&first!==\"%\")throw new $SyntaxError(\"invalid intrinsic syntax, expected opening `%`\");var result=[];return $replace(string,rePropName2,function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar2,\"$1\"):number||match;}),result},getBaseIntrinsic=function(name,allowMissing){var intrinsicName=name,alias;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(alias=LEGACY_ALIASES[intrinsicName],intrinsicName=\"%\"+alias[0]+\"%\"),hasOwn(INTRINSICS,intrinsicName)){var value2=INTRINSICS[intrinsicName];if(value2===needsEval&&(value2=doEval(intrinsicName)),typeof value2>\"u\"&&!allowMissing)throw new $TypeError(\"intrinsic \"+name+\" exists, but is not available. Please file an issue!\");return {alias,name:intrinsicName,value:value2}}throw new $SyntaxError(\"intrinsic \"+name+\" does not exist!\")};module.exports=function(name,allowMissing){if(typeof name!=\"string\"||name.length===0)throw new $TypeError(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof allowMissing!=\"boolean\")throw new $TypeError('\"allowMissing\" argument must be a boolean');if($exec(/^%?[^%]*%?$/,name)===null)throw new $SyntaxError(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var parts=stringToPath2(name),intrinsicBaseName=parts.length>0?parts[0]:\"\",intrinsic=getBaseIntrinsic(\"%\"+intrinsicBaseName+\"%\",allowMissing),intrinsicRealName=intrinsic.name,value2=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i2=1,isOwn=!0;i2<parts.length;i2+=1){var part=parts[i2],first=$strSlice(part,0,1),last=$strSlice(part,-1);if((first==='\"'||first===\"'\"||first===\"`\"||last==='\"'||last===\"'\"||last===\"`\")&&first!==last)throw new $SyntaxError(\"property names with quotes must have matching quotes\");if((part===\"constructor\"||!isOwn)&&(skipFurtherCaching=!0),intrinsicBaseName+=\".\"+part,intrinsicRealName=\"%\"+intrinsicBaseName+\"%\",hasOwn(INTRINSICS,intrinsicRealName))value2=INTRINSICS[intrinsicRealName];else if(value2!=null){if(!(part in value2)){if(!allowMissing)throw new $TypeError(\"base intrinsic for \"+name+\" exists, but the property is not available.\");return}if($gOPD&&i2+1>=parts.length){var desc=$gOPD(value2,part);isOwn=!!desc,isOwn&&\"get\"in desc&&!(\"originalValue\"in desc.get)?value2=desc.get:value2=value2[part];}else isOwn=hasOwn(value2,part),value2=value2[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value2);}}return value2};}}),require_call_bound=__commonJS2({\"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js\"(exports,module){var GetIntrinsic=require_get_intrinsic(),callBindBasic=require_call_bind_apply_helpers(),$indexOf=callBindBasic([GetIntrinsic(\"%String.prototype.indexOf%\")]);module.exports=function(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return typeof intrinsic==\"function\"&&$indexOf(name,\".prototype.\")>-1?callBindBasic([intrinsic]):intrinsic};}}),require_shams2=__commonJS2({\"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js\"(exports,module){var hasSymbols=require_shams();module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag};}}),require_is_regex=__commonJS2({\"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js\"(exports,module){var callBound=require_call_bound(),hasToStringTag=require_shams2()(),hasOwn=require_hasown(),gOPD=require_gopd(),fn;hasToStringTag?($exec=callBound(\"RegExp.prototype.exec\"),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker},typeof Symbol.toPrimitive==\"symbol\"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(value2){if(!value2||typeof value2!=\"object\")return !1;var descriptor=gOPD(value2,\"lastIndex\"),hasLastIndexDataProperty=descriptor&&hasOwn(descriptor,\"value\");if(!hasLastIndexDataProperty)return !1;try{$exec(value2,badStringifier);}catch(e2){return e2===isRegexMarker}}):($toString=callBound(\"Object.prototype.toString\"),regexClass=\"[object RegExp]\",fn=function(value2){return !value2||typeof value2!=\"object\"&&typeof value2!=\"function\"?!1:$toString(value2)===regexClass});var $exec,isRegexMarker,throwRegexMarker,badStringifier,$toString,regexClass;module.exports=fn;}}),require_is_function=__commonJS2({\"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js\"(exports,module){module.exports=isFunction3;var toString2=Object.prototype.toString;function isFunction3(fn){if(!fn)return !1;var string=toString2.call(fn);return string===\"[object Function]\"||typeof fn==\"function\"&&string!==\"[object RegExp]\"||typeof window<\"u\"&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)}}}),require_safe_regex_test=__commonJS2({\"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js\"(exports,module){var callBound=require_call_bound(),isRegex=require_is_regex(),$exec=callBound(\"RegExp.prototype.exec\"),$TypeError=require_type();module.exports=function(regex2){if(!isRegex(regex2))throw new $TypeError(\"`regex` must be a RegExp\");return function(s2){return $exec(regex2,s2)!==null}};}}),require_is_symbol=__commonJS2({\"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js\"(exports,module){var callBound=require_call_bound(),$toString=callBound(\"Object.prototype.toString\"),hasSymbols=require_has_symbols()(),safeRegexTest=require_safe_regex_test();hasSymbols?($symToStr=callBound(\"Symbol.prototype.toString\"),isSymString=safeRegexTest(/^Symbol\\(.*\\)$/),isSymbolObject=function(value2){return typeof value2.valueOf()!=\"symbol\"?!1:isSymString($symToStr(value2))},module.exports=function(value2){if(typeof value2==\"symbol\")return !0;if(!value2||typeof value2!=\"object\"||$toString(value2)!==\"[object Symbol]\")return !1;try{return isSymbolObject(value2)}catch{return !1}}):module.exports=function(value2){return !1};var $symToStr,isSymString,isSymbolObject;}}),import_is_regex=__toESM2(require_is_regex()),import_is_function=__toESM2(require_is_function()),import_is_symbol=__toESM2(require_is_symbol());function isObject(val){return val!=null&&typeof val==\"object\"&&Array.isArray(val)===!1}var freeGlobal=typeof global==\"object\"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self==\"object\"&&self&&self.Object===Object&&self,root=freeGlobal_default||freeSelf||Function(\"return this\")(),root_default=root,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(value2){var isOwn=hasOwnProperty.call(value2,symToStringTag),tag=value2[symToStringTag];try{value2[symToStringTag]=void 0;var unmasked=!0;}catch{}var result=nativeObjectToString.call(value2);return unmasked&&(isOwn?value2[symToStringTag]=tag:delete value2[symToStringTag]),result}var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(value2){return nativeObjectToString2.call(value2)}var objectToString_default=objectToString,nullTag=\"[object Null]\",undefinedTag=\"[object Undefined]\",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(value2){return value2==null?value2===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(value2)?getRawTag_default(value2):objectToString_default(value2)}var baseGetTag_default=baseGetTag;var symbolProto=Symbol_default?Symbol_default.prototype:void 0;symbolProto?symbolProto.toString:void 0;function isObject2(value2){var type=typeof value2;return value2!=null&&(type==\"object\"||type==\"function\")}var isObject_default=isObject2,asyncTag=\"[object AsyncFunction]\",funcTag=\"[object Function]\",genTag=\"[object GeneratorFunction]\",proxyTag=\"[object Proxy]\";function isFunction(value2){if(!isObject_default(value2))return !1;var tag=baseGetTag_default(value2);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}var isFunction_default=isFunction,coreJsData=root_default[\"__core-js_shared__\"],coreJsData_default=coreJsData,maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||\"\");return uid?\"Symbol(src)_1.\"+uid:\"\"}();function isMasked(func){return !!maskSrcKey&&maskSrcKey in func}var isMasked_default=isMasked,funcProto=Function.prototype,funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch{}try{return func+\"\"}catch{}}return \"\"}var toSource_default=toSource,reRegExpChar=/[\\\\^$.*+?()[\\]{}|]/g,reIsHostCtor=/^\\[object .+?Constructor\\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp(\"^\"+funcToString2.call(hasOwnProperty2).replace(reRegExpChar,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");function baseIsNative(value2){if(!isObject_default(value2)||isMasked_default(value2))return !1;var pattern=isFunction_default(value2)?reIsNative:reIsHostCtor;return pattern.test(toSource_default(value2))}var baseIsNative_default=baseIsNative;function getValue(object2,key){return object2?.[key]}var getValue_default=getValue;function getNative(object2,key){var value2=getValue_default(object2,key);return baseIsNative_default(value2)?value2:void 0}var getNative_default=getNative;function eq(value2,other){return value2===other||value2!==value2&&other!==other}var eq_default=eq;var nativeCreate=getNative_default(Object,\"create\"),nativeCreate_default=nativeCreate;function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0;}var hashClear_default=hashClear;function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result}var hashDelete_default=hashDelete,HASH_UNDEFINED=\"__lodash_hash_undefined__\",objectProto4=Object.prototype,hasOwnProperty3=objectProto4.hasOwnProperty;function hashGet(key){var data=this.__data__;if(nativeCreate_default){var result=data[key];return result===HASH_UNDEFINED?void 0:result}return hasOwnProperty3.call(data,key)?data[key]:void 0}var hashGet_default=hashGet,objectProto5=Object.prototype,hasOwnProperty4=objectProto5.hasOwnProperty;function hashHas(key){var data=this.__data__;return nativeCreate_default?data[key]!==void 0:hasOwnProperty4.call(data,key)}var hashHas_default=hashHas,HASH_UNDEFINED2=\"__lodash_hash_undefined__\";function hashSet(key,value2){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate_default&&value2===void 0?HASH_UNDEFINED2:value2,this}var hashSet_default=hashSet;function Hash(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1]);}}Hash.prototype.clear=hashClear_default;Hash.prototype.delete=hashDelete_default;Hash.prototype.get=hashGet_default;Hash.prototype.has=hashHas_default;Hash.prototype.set=hashSet_default;var Hash_default=Hash;function listCacheClear(){this.__data__=[],this.size=0;}var listCacheClear_default=listCacheClear;function assocIndexOf(array2,key){for(var length=array2.length;length--;)if(eq_default(array2[length][0],key))return length;return -1}var assocIndexOf_default=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(key){var data=this.__data__,index=assocIndexOf_default(data,key);if(index<0)return !1;var lastIndex=data.length-1;return index==lastIndex?data.pop():splice.call(data,index,1),--this.size,!0}var listCacheDelete_default=listCacheDelete;function listCacheGet(key){var data=this.__data__,index=assocIndexOf_default(data,key);return index<0?void 0:data[index][1]}var listCacheGet_default=listCacheGet;function listCacheHas(key){return assocIndexOf_default(this.__data__,key)>-1}var listCacheHas_default=listCacheHas;function listCacheSet(key,value2){var data=this.__data__,index=assocIndexOf_default(data,key);return index<0?(++this.size,data.push([key,value2])):data[index][1]=value2,this}var listCacheSet_default=listCacheSet;function ListCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1]);}}ListCache.prototype.clear=listCacheClear_default;ListCache.prototype.delete=listCacheDelete_default;ListCache.prototype.get=listCacheGet_default;ListCache.prototype.has=listCacheHas_default;ListCache.prototype.set=listCacheSet_default;var ListCache_default=ListCache,Map2=getNative_default(root_default,\"Map\"),Map_default=Map2;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash_default,map:new(Map_default||ListCache_default),string:new Hash_default};}var mapCacheClear_default=mapCacheClear;function isKeyable(value2){var type=typeof value2;return type==\"string\"||type==\"number\"||type==\"symbol\"||type==\"boolean\"?value2!==\"__proto__\":value2===null}var isKeyable_default=isKeyable;function getMapData(map,key){var data=map.__data__;return isKeyable_default(key)?data[typeof key==\"string\"?\"string\":\"hash\"]:data.map}var getMapData_default=getMapData;function mapCacheDelete(key){var result=getMapData_default(this,key).delete(key);return this.size-=result?1:0,result}var mapCacheDelete_default=mapCacheDelete;function mapCacheGet(key){return getMapData_default(this,key).get(key)}var mapCacheGet_default=mapCacheGet;function mapCacheHas(key){return getMapData_default(this,key).has(key)}var mapCacheHas_default=mapCacheHas;function mapCacheSet(key,value2){var data=getMapData_default(this,key),size=data.size;return data.set(key,value2),this.size+=data.size==size?0:1,this}var mapCacheSet_default=mapCacheSet;function MapCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1]);}}MapCache.prototype.clear=mapCacheClear_default;MapCache.prototype.delete=mapCacheDelete_default;MapCache.prototype.get=mapCacheGet_default;MapCache.prototype.has=mapCacheHas_default;MapCache.prototype.set=mapCacheSet_default;var MapCache_default=MapCache,FUNC_ERROR_TEXT=\"Expected a function\";function memoize2(func,resolver){if(typeof func!=\"function\"||resolver!=null&&typeof resolver!=\"function\")throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize2.Cache||MapCache_default),memoized}memoize2.Cache=MapCache_default;var memoize_default=memoize2,MAX_MEMOIZE_SIZE=500;function memoizeCapped(func){var result=memoize_default(func,function(key){return cache.size===MAX_MEMOIZE_SIZE&&cache.clear(),key}),cache=result.cache;return result}var memoizeCapped_default=memoizeCapped,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,reEscapeChar=/\\\\(\\\\)?/g;memoizeCapped_default(function(string){var result=[];return string.charCodeAt(0)===46&&result.push(\"\"),string.replace(rePropName,function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,\"$1\"):number||match);}),result});var isObject3=isObject,dateFormat=/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$/;function convertUnconventionalData(data){if(!isObject3(data))return data;let result=data,wasMutated=!1;return typeof Event<\"u\"&&data instanceof Event&&(result=extractEventHiddenProperties(result),wasMutated=!0),result=Object.keys(result).reduce((acc,key)=>{try{result[key]&&result[key].toJSON,acc[key]=result[key];}catch{wasMutated=!0;}return acc},{}),wasMutated?result:data}var replacer=function(options){let objects,map,stack,keys;return function(key,value2){try{if(key===\"\")return keys=[],objects=new Map([[value2,\"[]\"]]),map=new Map,stack=[],value2;let origin=map.get(this)||this;for(;stack.length&&origin!==stack[0];)stack.shift(),keys.pop();if(typeof value2==\"boolean\")return value2;if(value2===void 0)return options.allowUndefined?\"_undefined_\":void 0;if(value2===null)return null;if(typeof value2==\"number\")return value2===Number.NEGATIVE_INFINITY?\"_-Infinity_\":value2===Number.POSITIVE_INFINITY?\"_Infinity_\":Number.isNaN(value2)?\"_NaN_\":value2;if(typeof value2==\"bigint\")return `_bigint_${value2.toString()}`;if(typeof value2==\"string\")return dateFormat.test(value2)?options.allowDate?`_date_${value2}`:void 0:value2;if((0,import_is_regex.default)(value2))return options.allowRegExp?`_regexp_${value2.flags}|${value2.source}`:void 0;if((0,import_is_function.default)(value2))return;if((0,import_is_symbol.default)(value2)){if(!options.allowSymbol)return;let globalRegistryKey=Symbol.keyFor(value2);return globalRegistryKey!==void 0?`_gsymbol_${globalRegistryKey}`:`_symbol_${value2.toString().slice(7,-1)}`}if(stack.length>=options.maxDepth)return Array.isArray(value2)?`[Array(${value2.length})]`:\"[Object]\";if(value2===this)return `_duplicate_${JSON.stringify(keys)}`;if(value2 instanceof Error&&options.allowError)return {__isConvertedError__:!0,errorProperties:{...value2.cause?{cause:value2.cause}:{},...value2,name:value2.name,message:value2.message,stack:value2.stack,\"_constructor-name_\":value2.constructor.name}};if(value2?.constructor?.name&&value2.constructor.name!==\"Object\"&&!Array.isArray(value2)){let found2=objects.get(value2);if(!found2){let plainObject={__isClassInstance__:!0,__className__:value2.constructor.name,...Object.getOwnPropertyNames(value2).reduce((acc,prop)=>{try{acc[prop]=value2[prop];}catch{}return acc},{})};return keys.push(key),stack.unshift(plainObject),objects.set(value2,JSON.stringify(keys)),value2!==plainObject&&map.set(value2,plainObject),plainObject}return `_duplicate_${found2}`}let found=objects.get(value2);if(!found){let converted=Array.isArray(value2)?value2:convertUnconventionalData(value2);return keys.push(key),stack.unshift(converted),objects.set(value2,JSON.stringify(keys)),value2!==converted&&map.set(value2,converted),converted}return `_duplicate_${found}`}catch{return}}};var defaultOptions={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},stringify=(data,options={})=>{let mergedOptions={...defaultOptions,...options};return JSON.stringify(convertUnconventionalData(data),replacer(mergedOptions),options.space)};function argsHash(args){return stringify(args,{maxDepth:50})}var SourceContext=createContext({sources:{}}),UNKNOWN_ARGS_HASH=\"--unknown--\",SourceContainer=({children,channel})=>{let[sources,setSources]=useState({});return useEffect(()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args=void 0,source,format:format3}=typeof idOrEvent==\"string\"?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):UNKNOWN_ARGS_HASH;setSources(current=>({...current,[id]:{...current[id],[hash]:{code:source||\"\",format:format3}}}));};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),()=>channel.off(SNIPPET_RENDERED,handleSnippetRendered)},[]),React20__default.createElement(SourceContext.Provider,{value:{sources}},children)};function useTransformCode(source,transform,storyContext){let[transformedCode,setTransformedCode]=useState(\"Transforming...\"),transformed=transform?transform?.(source,storyContext):source;return useEffect(()=>{async function getTransformedCode(){let transformResult=await transformed;transformResult!==transformedCode&&setTransformedCode(transformResult);}getTransformedCode();}),typeof transformed==\"object\"&&typeof transformed.then==\"function\"?transformedCode:transformed}var getStorySource=(storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.[UNKNOWN_ARGS_HASH]||{code:\"\"}},useCode=({snippet,storyContext,typeFromProps,transformFromProps})=>{let parameters=storyContext.parameters??{},{__isArgsStory:isArgsStory}=parameters,sourceParameters=parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||SourceType.AUTO,code=type===SourceType.DYNAMIC||type===SourceType.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||\"\",transformer=transformFromProps??sourceParameters.transform,transformedCode=transformer?useTransformCode(code,transformer,storyContext):code;return sourceParameters.code!==void 0?sourceParameters.code:transformedCode},useSourceProps=(props,docsContext,sourceContext)=>{let{of}=props,story=useMemo(()=>{if(of)return docsContext.resolveOf(of,[\"story\"]).story;try{return docsContext.storyById()}catch{}},[docsContext,of]),storyContext=story?docsContext.getStoryContext(story):{},argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=story?getStorySource(story.id,argsForSource,sourceContext):null,transformedCode=useCode({snippet:source?source.code:\"\",storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform});if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let sourceParameters=story?.parameters?.docs?.source||{},format3=props.format,language=props.language??sourceParameters.language??\"jsx\",dark=props.dark??sourceParameters.dark??!1;return !props.code&&!story?{error:\"Oh no! The source is not available.\"}:props.code?{code:props.code,format:format3,language,dark}:(format3=source?.format??!0,{code:transformedCode,format:format3,language,dark})},Source2=props=>{let sourceContext=useContext(SourceContext),docsContext=useContext(DocsContext),sourceProps=useSourceProps(props,docsContext,sourceContext);return React20__default.createElement(Source,{...sourceProps})};function useStory(storyId,context){let stories=useStories([storyId],context);return stories&&stories[0]}function useStories(storyIds,context){let[storiesById,setStories]=useState({});return useEffect(()=>{Promise.all(storyIds.map(async storyId=>{let story=await context.loadStory(storyId);setStories(current=>current[storyId]===story?current:{...current,[storyId]:story});}));}),storyIds.map(storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return}})}var getStoryId2=(props,context)=>{let{of,meta}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||\"story\",[\"story\"]).story.id},getStoryProps=(props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline??!1){let height2=props.height??storyParameters.height,autoplay=props.autoplay??storyParameters.autoplay??!1;return {story,inline:!0,height:height2,autoplay,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement}}let height=props.height??storyParameters.height??storyParameters.iframeHeight??\"100px\";return {story,inline:!1,height,primary:!!props.__primary}},Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=useContext(DocsContext),storyId=getStoryId2(props,context),story=useStory(storyId,context);if(!story)return React20__default.createElement(StorySkeleton,null);let storyProps=getStoryProps(props,story,context);return storyProps?React20__default.createElement(Story,{...storyProps}):null};var Canvas=props=>{let docsContext=useContext(DocsContext),sourceContext=useContext(SourceContext),{of,source}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{story}=useOf(of||\"story\",[\"story\"]),sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??\"padded\",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??\"hidden\",className=props.className??story.parameters.docs?.canvas?.className,inline=props.story?.inline??story.parameters?.docs?.story?.inline??!1;return React20__default.createElement(Preview,{withSource:sourceState===\"none\"?void 0:sourceProps,isExpanded:sourceState===\"shown\",withToolbar,additionalActions,className,layout,inline},React20__default.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))};var useArgs=(story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error(\"No result when story was defined\");return result},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:\"none\"},[args,setArgs]=useState(storyContext.args);useEffect(()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(STORY_ARGS_UPDATED,onArgsUpdated)},[storyId,context.channel]);let updateArgs=useCallback(updatedArgs=>context.channel.emit(UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId,context.channel]),resetArgs=useCallback(argNames=>context.channel.emit(RESET_STORY_ARGS,{storyId,argNames}),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};var useGlobals=(story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=useState(storyContext.globals);return useEffect(()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals);};return context.channel.on(GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(GLOBALS_UPDATED,onGlobalsUpdated)},[context.channel]),[globals]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let context=useContext(DocsContext),{story}=context.resolveOf(of||\"story\",[\"story\"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=useArgs(story,context),[globals]=useGlobals(story,context),filteredArgTypes=filterArgTypes(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents||{}).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args).length>0?React20__default.createElement(ArgsTable,{rows:filteredArgTypes,sort,args,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component)||\"Story\",subcomponentTabs=Object.fromEntries(Object.entries(subcomponents||{}).map(([key,comp])=>[key,{rows:filterArgTypes(extractComponentArgTypes2(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return React20__default.createElement(TabbedArgsTable,{tabs,sort,args,globals,updateArgs,resetArgs})};var {document:document2}=globalThis,assertIsFn=val=>{if(typeof val!=\"function\")throw new Error(`Expected story function, got: ${val}`);return val},AddContext=props=>{let{children,...rest}=props,parentContext=React20__default.useContext(DocsContext);return React20__default.createElement(DocsContext.Provider,{value:{...parentContext,...rest}},children)},CodeOrSourceMdx=({className,children,...rest})=>{if(typeof className!=\"string\"&&(typeof children!=\"string\"||!children.match(/[\\n\\r]/g)))return React20__default.createElement(Code,null,children);let language=className&&className.split(\"-\");return React20__default.createElement(Source,{language:language&&language[1]||\"text\",format:!1,code:children,...rest})};function navigate(context,url){context.channel.emit(NAVIGATE_URL,url);}var A2=components.a,AnchorInPage=({hash,children})=>{let context=useContext(DocsContext);return React20__default.createElement(A2,{href:hash,target:\"_self\",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&navigate(context,hash);}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=useContext(DocsContext);return !href||target===\"_blank\"||/^https?:\\/\\//.test(href)?React20__default.createElement(A2,{...props}):href.startsWith(\"#\")?React20__default.createElement(AnchorInPage,{hash:href},children):React20__default.createElement(A2,{href,onClick:event=>{event.button===0&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),navigate(context,event.currentTarget.getAttribute(\"href\")||\"\"));},target,...rest},children)},SUPPORTED_MDX_HEADERS=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:styled(headerType)({\"& svg\":{position:\"relative\",top:\"-0.1em\",visibility:\"hidden\"},\"&:hover svg\":{visibility:\"visible\"}})}),{}),OcticonAnchor=styled.a(()=>({float:\"left\",lineHeight:\"inherit\",paddingRight:\"10px\",marginLeft:\"-24px\",color:\"inherit\"})),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=useContext(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return React20__default.createElement(OcticonHeader,{id,...rest},React20__default.createElement(OcticonAnchor,{\"aria-hidden\":\"true\",href:hash,tabIndex:-1,target:\"_self\",onClick:event=>{document2.getElementById(id)&&navigate(context,hash);}},React20__default.createElement(LinkIcon,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return React20__default.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return React20__default.createElement(Component4,{...nameSpaceClassNames(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:props=>React20__default.createElement(HeaderMdx,{as:headerType,...props})}),{});var Markdown=props=>{if(!props.children)return null;if(typeof props.children!=\"string\")throw new Error(dedent`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}'\n This is often caused by not wrapping the child in a template string.\n \n This is invalid:\n <Markdown>\n # Some heading\n A paragraph\n </Markdown>\n\n Instead do:\n <Markdown>\n {\\`\n # Some heading\n A paragraph\n \\`}\n </Markdown>\n `);return React20__default.createElement(index_modern_default,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})};var DescriptionType=(DescriptionType2=>(DescriptionType2.INFO=\"info\",DescriptionType2.NOTES=\"notes\",DescriptionType2.DOCGEN=\"docgen\",DescriptionType2.AUTO=\"auto\",DescriptionType2))(DescriptionType||{}),getDescriptionFromResolvedOf=resolvedOf=>{switch(resolvedOf.type){case\"story\":return resolvedOf.story.parameters.docs?.description?.story||null;case\"meta\":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case\"component\":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters?.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}},DescriptionContainer=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolvedOf=useOf(of||\"meta\"),markdown=getDescriptionFromResolvedOf(resolvedOf);return markdown?React20__default.createElement(Markdown,null,markdown):null};var {document:document3,window:globalWindow3}=globalThis,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf(\"meta\",[\"meta\"]).preparedMeta.parameters?.docs?.toc;}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc;}return useEffect(()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(decodeURIComponent(url.hash.substring(1)));element&&setTimeout(()=>{scrollToElement(element);},200);}}catch{}}),React20__default.createElement(DocsContext.Provider,{value:context},React20__default.createElement(SourceContainer,{channel:context.channel},React20__default.createElement(ThemeProvider,{theme:ensure(theme)},React20__default.createElement(DocsPageWrapper,{toc:toc?React20__default.createElement(TableOfContents,{className:\"sbdocs sbdocs-toc--custom\",channel:context.channel,...toc}):null},children))))};var regex=/[\\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;var own=Object.hasOwnProperty,BananaSlug=class{constructor(){this.occurrences,this.reset();}slug(value2,maintainCase){let self2=this,result=slug(value2,maintainCase===!0),originalSlug=result;for(;own.call(self2.occurrences,result);)self2.occurrences[originalSlug]++,result=originalSlug+\"-\"+self2.occurrences[originalSlug];return self2.occurrences[result]=0,result}reset(){this.occurrences=Object.create(null);}};function slug(value2,maintainCase){return typeof value2!=\"string\"?\"\":(maintainCase||(value2=value2.toLowerCase()),value2.replace(regex,\"\").replace(/ /g,\"-\"))}var slugs=new BananaSlug,Heading2=({children,disableAnchor,...props})=>{if(disableAnchor||typeof children!=\"string\")return React20__default.createElement(H2,null,children);let tagID=slugs.slug(children.toLowerCase());return React20__default.createElement(HeaderMdx,{as:\"h2\",id:tagID,...props},children)};var Subheading=({children,disableAnchor})=>{if(disableAnchor||typeof children!=\"string\")return React20__default.createElement(H3,null,children);let tagID=slugs.slug(children.toLowerCase());return React20__default.createElement(HeaderMdx,{as:\"h3\",id:tagID},children)};var DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||\"story\",[\"story\"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return React20__default.createElement(Anchor,{storyId:story.id},expanded&&React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(Subheading,null,story.name),React20__default.createElement(DescriptionContainer,{of})),React20__default.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))};var Primary=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{csfFile}=useOf(of||\"meta\",[\"meta\"]),primaryStory=useContext(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?React20__default.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};var StyledHeading=styled(Heading2)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:\"16px\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",color:theme.textMutedColor,border:0,marginBottom:\"12px\",\"&:first-of-type\":{marginTop:\"56px\"}})),Stories=({title=\"Stories\",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=useContext(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter(story=>filter(story,getStoryContext(story)))),stories.some(story=>story.tags?.includes(\"autodocs\"))&&(stories=stories.filter(story=>story.tags?.includes(\"autodocs\")&&!story.usesMount)),includePrimary||(stories=stories.slice(1)),!stories||stories.length===0?null:React20__default.createElement(React20__default.Fragment,null,typeof title==\"string\"?React20__default.createElement(StyledHeading,null,title):title,stories.map(story=>story&&React20__default.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))};var DEPRECATION_MIGRATION_LINK=\"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle\",Subtitle2=props=>{let{of,children}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let preparedMeta;try{preparedMeta=useOf(of||\"meta\",[\"meta\"]).preparedMeta;}catch(error){if(children&&!error.message.includes(\"did you forget to use <Meta of={} />?\"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&deprecate(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${DEPRECATION_MIGRATION_LINK}`);let content=children||docs?.subtitle||componentSubtitle;return content?React20__default.createElement(Subtitle,{className:\"sbdocs-subtitle sb-unstyled\"},content):null};var STORY_KIND_PATH_SEPARATOR=/\\s*\\/\\s*/,extractTitle=title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title},Title3=props=>{let{children,of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let preparedMeta;try{preparedMeta=useOf(of||\"meta\",[\"meta\"]).preparedMeta;}catch(error){if(children&&error instanceof Error&&!error.message.includes(\"did you forget to use <Meta of={} />?\"))throw error}let content=children||extractTitle(preparedMeta?.title||\"\");return content?React20__default.createElement(Title,{className:\"sbdocs-title sb-unstyled\"},content):null};var DocsPage=()=>{let resolvedOf=useOf(\"meta\",[\"meta\"]),{stories}=resolvedOf.csfFile,isSingleStory=Object.keys(stories).length===1;return React20__default.createElement(React20__default.Fragment,null,React20__default.createElement(Title3,null),React20__default.createElement(Subtitle2,null),React20__default.createElement(DescriptionContainer,{of:\"meta\"}),isSingleStory?React20__default.createElement(DescriptionContainer,{of:\"story\"}):null,React20__default.createElement(Primary,null),React20__default.createElement(Controls3,null),isSingleStory?null:React20__default.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return React20__default.createElement(Container,{context,theme:docsParameter.theme},React20__default.createElement(Page,null))}var ExternalDocsContext=class extends DocsContext$1{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]);this.channel=channel;this.store=store;this.renderStoryToElement=renderStoryToElement;this.processMetaExports=processMetaExports;this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach);};}};var ConstantMap=class{constructor(prefix){this.prefix=prefix;this.entries=new Map;}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}},ExternalPreview=class extends Preview$1{constructor(projectAnnotations){super(path=>Promise.resolve(this.moduleExportsByImportPath[path]),()=>composeConfigs([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations]),new Channel({}));this.projectAnnotations=projectAnnotations;this.importPaths=new ConstantMap(\"./importPath/\");this.titles=new ConstantMap(\"title-\");this.storyIndex={v:5,entries:{}};this.moduleExportsByImportPath={};this.processMetaExports=metaExports=>{let importPath=this.importPaths.get(metaExports);this.moduleExportsByImportPath[importPath]=metaExports;let title=metaExports.default.title||this.titles.get(metaExports),csfFile=this.storyStoreValue.processCSFFileWithCache(metaExports,importPath,title);return Object.values(csfFile.stories).forEach(({id,name})=>{this.storyIndex.entries[id]={id,importPath,title,name,type:\"story\"};}),this.onStoriesChanged({storyIndex:this.storyIndex}),csfFile};this.docsContext=()=>new ExternalDocsContext(this.channel,this.storyStoreValue,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this));}async getStoryIndexFromServer(){return this.storyIndex}};function usePreview(projectAnnotations){let previewRef=useRef();return previewRef.current||(previewRef.current=new ExternalPreview(projectAnnotations)),previewRef.current}function ExternalDocs({projectAnnotationsList,children}){let projectAnnotations=composeConfigs(projectAnnotationsList),preview2=usePreview(projectAnnotations),docsParameter={...projectAnnotations.parameters?.docs,page:()=>children};return React20__default.createElement(Docs,{docsParameter,context:preview2.docsContext()})}var preview,ExternalDocsContainer=({projectAnnotations,children})=>(preview||(preview=new ExternalPreview(projectAnnotations)),React20__default.createElement(DocsContext.Provider,{value:preview.docsContext()},React20__default.createElement(ThemeProvider,{theme:ensure(themes.light)},children)));var Meta=({of})=>{let context=useContext(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return React20__default.createElement(Anchor,{storyId:primary.id})}catch{return null}};var Unstyled=props=>React20__default.createElement(\"div\",{...props,className:\"sb-unstyled\"});var Wrapper10=({children})=>React20__default.createElement(\"div\",{style:{fontFamily:\"sans-serif\"}},children);var PRIMARY_STORY=\"^\";\n\nexport { AddContext, Anchor, AnchorMdx, ArgTypes, BooleanControl, Canvas, CodeOrSourceMdx, ColorControl, ColorItem, ColorPalette, Controls3 as Controls, DateControl, DescriptionContainer as Description, DescriptionType, Docs, DocsContainer, DocsContext, DocsPage, DocsStory, ExternalDocs, ExternalDocsContainer, FilesControl, HeaderMdx, HeadersMdx, Heading2 as Heading, IconGallery, IconItem, Markdown, Meta, NumberControl, ObjectControl, OptionsControl, PRIMARY_STORY, Primary, ArgsTable as PureArgsTable, RangeControl, Source2 as Source, SourceContainer, SourceContext, Stories, Story2 as Story, Subheading, Subtitle2 as Subtitle, TableOfContents, TextControl, Title3 as Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper10 as Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format2 as format, formatDate, formatTime, getStoryId2 as getStoryId, getStoryProps, parse2 as parse, parseDate, parseTime, slugs, useOf, useSourceProps };\n","var gp = Object.create;\nvar An = Object.defineProperty;\nvar vp = Object.getOwnPropertyDescriptor;\nvar wp = Object.getOwnPropertyNames;\nvar bp = Object.getPrototypeOf, Rp = Object.prototype.hasOwnProperty;\nvar o = (e, t) => An(e, \"name\", { value: t, configurable: !0 }), Gr = /* @__PURE__ */ ((e) => typeof require < \"u\" ? require : typeof Proxy <\n\"u\" ? new Proxy(e, {\n get: (t, r) => (typeof require < \"u\" ? require : t)[r]\n}) : e)(function(e) {\n if (typeof require < \"u\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + e + '\" is not supported');\n});\nvar C = (e, t) => () => (e && (t = e(e = 0)), t);\nvar H = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Xr = (e, t) => {\n for (var r in t)\n An(e, r, { get: t[r], enumerable: !0 });\n}, yp = (e, t, r, n) => {\n if (t && typeof t == \"object\" || typeof t == \"function\")\n for (let a of wp(t))\n !Rp.call(e, a) && a !== r && An(e, a, { get: () => t[a], enumerable: !(n = vp(t, a)) || n.enumerable });\n return e;\n};\nvar me = (e, t, r) => (r = e != null ? gp(bp(e)) : {}, yp(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n t || !e || !e.__esModule ? An(r, \"default\", { value: e, enumerable: !0 }) : r,\n e\n));\n\n// ../node_modules/@babel/runtime/helpers/esm/extends.js\nfunction W() {\n return W = Object.assign ? Object.assign.bind() : function(e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t];\n for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);\n }\n return e;\n }, W.apply(null, arguments);\n}\nvar Yr = C(() => {\n o(W, \"_extends\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\nfunction Tl(e) {\n if (e === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nvar Hl = C(() => {\n o(Tl, \"_assertThisInitialized\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js\nfunction ht(e, t) {\n return ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {\n return r.__proto__ = n, r;\n }, ht(e, t);\n}\nvar In = C(() => {\n o(ht, \"_setPrototypeOf\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js\nfunction zn(e) {\n return zn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, zn(e);\n}\nvar kl = C(() => {\n o(zn, \"_getPrototypeOf\");\n});\n\n// ../node_modules/memoizerific/memoizerific.js\nvar Kr = H((Ul, ea) => {\n (function(e) {\n if (typeof Ul == \"object\" && typeof ea < \"u\")\n ea.exports = e();\n else if (typeof define == \"function\" && define.amd)\n define([], e);\n else {\n var t;\n typeof window < \"u\" ? t = window : typeof global < \"u\" ? t = global : typeof self < \"u\" ? t = self : t = this, t.memoizerific = e();\n }\n })(function() {\n var e, t, r;\n return (/* @__PURE__ */ o(function n(a, i, c) {\n function l(f, d) {\n if (!i[f]) {\n if (!a[f]) {\n var m = typeof Gr == \"function\" && Gr;\n if (!d && m) return m(f, !0);\n if (s) return s(f, !0);\n var v = new Error(\"Cannot find module '\" + f + \"'\");\n throw v.code = \"MODULE_NOT_FOUND\", v;\n }\n var R = i[f] = { exports: {} };\n a[f][0].call(R.exports, function(p) {\n var h = a[f][1][p];\n return l(h || p);\n }, R, R.exports, n, a, i, c);\n }\n return i[f].exports;\n }\n o(l, \"s\");\n for (var s = typeof Gr == \"function\" && Gr, u = 0; u < c.length; u++) l(c[u]);\n return l;\n }, \"e\"))({ 1: [function(n, a, i) {\n a.exports = function(c) {\n if (typeof Map != \"function\" || c) {\n var l = n(\"./similar\");\n return new l();\n } else\n return /* @__PURE__ */ new Map();\n };\n }, { \"./similar\": 2 }], 2: [function(n, a, i) {\n function c() {\n return this.list = [], this.lastItem = void 0, this.size = 0, this;\n }\n o(c, \"Similar\"), c.prototype.get = function(l) {\n var s;\n if (this.lastItem && this.isEqual(this.lastItem.key, l))\n return this.lastItem.val;\n if (s = this.indexOf(l), s >= 0)\n return this.lastItem = this.list[s], this.list[s].val;\n }, c.prototype.set = function(l, s) {\n var u;\n return this.lastItem && this.isEqual(this.lastItem.key, l) ? (this.lastItem.val = s, this) : (u = this.indexOf(l), u >= 0 ? (this.lastItem =\n this.list[u], this.list[u].val = s, this) : (this.lastItem = { key: l, val: s }, this.list.push(this.lastItem), this.size++, this));\n }, c.prototype.delete = function(l) {\n var s;\n if (this.lastItem && this.isEqual(this.lastItem.key, l) && (this.lastItem = void 0), s = this.indexOf(l), s >= 0)\n return this.size--, this.list.splice(s, 1)[0];\n }, c.prototype.has = function(l) {\n var s;\n return this.lastItem && this.isEqual(this.lastItem.key, l) ? !0 : (s = this.indexOf(l), s >= 0 ? (this.lastItem = this.list[s], !0) :\n !1);\n }, c.prototype.forEach = function(l, s) {\n var u;\n for (u = 0; u < this.size; u++)\n l.call(s || this, this.list[u].val, this.list[u].key, this);\n }, c.prototype.indexOf = function(l) {\n var s;\n for (s = 0; s < this.size; s++)\n if (this.isEqual(this.list[s].key, l))\n return s;\n return -1;\n }, c.prototype.isEqual = function(l, s) {\n return l === s || l !== l && s !== s;\n }, a.exports = c;\n }, {}], 3: [function(n, a, i) {\n var c = n(\"map-or-similar\");\n a.exports = function(f) {\n var d = new c(!1), m = [];\n return function(v) {\n var R = /* @__PURE__ */ o(function() {\n var p = d, h, g, w = arguments.length - 1, b = Array(w + 1), x = !0, E;\n if ((R.numArgs || R.numArgs === 0) && R.numArgs !== w + 1)\n throw new Error(\"Memoizerific functions should always be called with the same number of arguments\");\n for (E = 0; E < w; E++) {\n if (b[E] = {\n cacheItem: p,\n arg: arguments[E]\n }, p.has(arguments[E])) {\n p = p.get(arguments[E]);\n continue;\n }\n x = !1, h = new c(!1), p.set(arguments[E], h), p = h;\n }\n return x && (p.has(arguments[w]) ? g = p.get(arguments[w]) : x = !1), x || (g = v.apply(null, arguments), p.set(arguments[w], g)),\n f > 0 && (b[w] = {\n cacheItem: p,\n arg: arguments[w]\n }, x ? l(m, b) : m.push(b), m.length > f && s(m.shift())), R.wasMemoized = x, R.numArgs = w + 1, g;\n }, \"memoizerific\");\n return R.limit = f, R.wasMemoized = !1, R.cache = d, R.lru = m, R;\n };\n };\n function l(f, d) {\n var m = f.length, v = d.length, R, p, h;\n for (p = 0; p < m; p++) {\n for (R = !0, h = 0; h < v; h++)\n if (!u(f[p][h].arg, d[h].arg)) {\n R = !1;\n break;\n }\n if (R)\n break;\n }\n f.push(f.splice(p, 1)[0]);\n }\n o(l, \"moveToMostRecentLru\");\n function s(f) {\n var d = f.length, m = f[d - 1], v, R;\n for (m.cacheItem.delete(m.arg), R = d - 2; R >= 0 && (m = f[R], v = m.cacheItem.get(m.arg), !v || !v.size); R--)\n m.cacheItem.delete(m.arg);\n }\n o(s, \"removeCachedResult\");\n function u(f, d) {\n return f === d || f !== f && d !== d;\n }\n o(u, \"isEqual\");\n }, { \"map-or-similar\": 1 }] }, {}, [3])(3);\n });\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\nfunction ur(e, t) {\n if (e == null) return {};\n var r = {};\n for (var n in e) if ({}.hasOwnProperty.call(e, n)) {\n if (t.indexOf(n) !== -1) continue;\n r[n] = e[n];\n }\n return r;\n}\nvar Pn = C(() => {\n o(ur, \"_objectWithoutPropertiesLoose\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\nfunction ql(e, t) {\n if (e == null) return {};\n var r, n, a = ur(e, t);\n if (Object.getOwnPropertySymbols) {\n var i = Object.getOwnPropertySymbols(e);\n for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);\n }\n return a;\n}\nvar Gl = C(() => {\n Pn();\n o(ql, \"_objectWithoutProperties\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\nfunction Jr(e, t) {\n (t == null || t > e.length) && (t = e.length);\n for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];\n return n;\n}\nvar ta = C(() => {\n o(Jr, \"_arrayLikeToArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\nfunction Xl(e) {\n if (Array.isArray(e)) return Jr(e);\n}\nvar Yl = C(() => {\n ta();\n o(Xl, \"_arrayWithoutHoles\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/iterableToArray.js\nfunction Zl(e) {\n if (typeof Symbol < \"u\" && e[Symbol.iterator] != null || e[\"@@iterator\"] != null) return Array.from(e);\n}\nvar Kl = C(() => {\n o(Zl, \"_iterableToArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\nfunction Jl(e, t) {\n if (e) {\n if (typeof e == \"string\") return Jr(e, t);\n var r = {}.toString.call(e).slice(8, -1);\n return r === \"Object\" && e.constructor && (r = e.constructor.name), r === \"Map\" || r === \"Set\" ? Array.from(e) : r === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.\n test(r) ? Jr(e, t) : void 0;\n }\n}\nvar Ql = C(() => {\n ta();\n o(Jl, \"_unsupportedIterableToArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\nfunction ec() {\n throw new TypeError(`Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);\n}\nvar tc = C(() => {\n o(ec, \"_nonIterableSpread\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\nfunction kn(e) {\n return Xl(e) || Zl(e) || Jl(e) || ec();\n}\nvar rc = C(() => {\n Yl();\n Kl();\n Ql();\n tc();\n o(kn, \"_toConsumableArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/typeof.js\nfunction Ft(e) {\n \"@babel/helpers - typeof\";\n return Ft = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(t) {\n return typeof t;\n } : function(t) {\n return t && typeof Symbol == \"function\" && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n }, Ft(e);\n}\nvar ra = C(() => {\n o(Ft, \"_typeof\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js\nfunction nc(e, t) {\n if (Ft(e) != \"object\" || !e) return e;\n var r = e[Symbol.toPrimitive];\n if (r !== void 0) {\n var n = r.call(e, t || \"default\");\n if (Ft(n) != \"object\") return n;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (t === \"string\" ? String : Number)(e);\n}\nvar oc = C(() => {\n ra();\n o(nc, \"toPrimitive\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js\nfunction ac(e) {\n var t = nc(e, \"string\");\n return Ft(t) == \"symbol\" ? t : t + \"\";\n}\nvar ic = C(() => {\n ra();\n oc();\n o(ac, \"toPropertyKey\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/defineProperty.js\nfunction On(e, t, r) {\n return (t = ac(t)) in e ? Object.defineProperty(e, t, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = r, e;\n}\nvar na = C(() => {\n ic();\n o(On, \"_defineProperty\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/create-element.js\nimport f2 from \"react\";\nfunction lc(e, t) {\n var r = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n t && (n = n.filter(function(a) {\n return Object.getOwnPropertyDescriptor(e, a).enumerable;\n })), r.push.apply(r, n);\n }\n return r;\n}\nfunction fr(e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t] != null ? arguments[t] : {};\n t % 2 ? lc(Object(r), !0).forEach(function(n) {\n On(e, n, r[n]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : lc(Object(r)).forEach(function(n) {\n Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));\n });\n }\n return e;\n}\nfunction d2(e) {\n var t = e.length;\n if (t === 0 || t === 1) return e;\n if (t === 2)\n return [e[0], e[1], \"\".concat(e[0], \".\").concat(e[1]), \"\".concat(e[1], \".\").concat(e[0])];\n if (t === 3)\n return [e[0], e[1], e[2], \"\".concat(e[0], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[0]), \"\".concat(\n e[1], \".\").concat(e[2]), \"\".concat(e[2], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(\n e[2]), \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[1], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(\n e[2], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[1], \".\").concat(e[0])];\n if (t >= 4)\n return [e[0], e[1], e[2], e[3], \"\".concat(e[0], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[3]),\n \"\".concat(e[1], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(e[0]),\n \"\".concat(e[2], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[3]), \"\".concat(e[3], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[1]),\n \"\".concat(e[3], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(e[3]),\n \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[3]), \"\".concat(e[0], \".\").concat(e[3],\n \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[1],\n \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[1], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[2], \".\").concat(\n e[3]), \"\".concat(e[1], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[2], \".\").concat(\n e[0], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(e[1], \".\").concat(e[0]), \"\".concat(\n e[2], \".\").concat(e[1], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[3], \".\").concat(\n e[1]), \"\".concat(e[3], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[3], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(\n e[1], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(\n e[3], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(e[2], \".\").concat(e[3]), \"\".concat(e[0], \".\").concat(\n e[1], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[1], \".\").concat(e[3]), \"\".concat(e[0], \".\").concat(\n e[2], \".\").concat(e[3], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[3], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(\n e[3], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[1], \".\").concat(e[0], \".\").concat(e[2], \".\").concat(e[3]), \"\".concat(e[1], \".\").concat(\n e[0], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[2], \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[1], \".\").concat(\n e[2], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[3], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(\n e[3], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[0], \".\").concat(e[1], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(\n e[0], \".\").concat(e[3], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[1], \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(\n e[1], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[3], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(\n e[3], \".\").concat(e[1], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[0], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(\n e[0], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[3], \".\").concat(e[1], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(\n e[1], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[2], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[3], \".\").concat(\n e[2], \".\").concat(e[1], \".\").concat(e[0])];\n}\nfunction p2(e) {\n if (e.length === 0 || e.length === 1) return e;\n var t = e.join(\".\");\n return oa[t] || (oa[t] = d2(e)), oa[t];\n}\nfunction m2(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, n = e.filter(\n function(i) {\n return i !== \"token\";\n }), a = p2(n);\n return a.reduce(function(i, c) {\n return fr(fr({}, i), r[c]);\n }, t);\n}\nfunction cc(e) {\n return e.join(\" \");\n}\nfunction h2(e, t) {\n var r = 0;\n return function(n) {\n return r += 1, n.map(function(a, i) {\n return _t({\n node: a,\n stylesheet: e,\n useInlineStyles: t,\n key: \"code-segment-\".concat(r, \"-\").concat(i)\n });\n });\n };\n}\nfunction _t(e) {\n var t = e.node, r = e.stylesheet, n = e.style, a = n === void 0 ? {} : n, i = e.useInlineStyles, c = e.key, l = t.properties, s = t.type, u = t.\n tagName, f = t.value;\n if (s === \"text\")\n return f;\n if (u) {\n var d = h2(r, i), m;\n if (!i)\n m = fr(fr({}, l), {}, {\n className: cc(l.className)\n });\n else {\n var v = Object.keys(r).reduce(function(g, w) {\n return w.split(\".\").forEach(function(b) {\n g.includes(b) || g.push(b);\n }), g;\n }, []), R = l.className && l.className.includes(\"token\") ? [\"token\"] : [], p = l.className && R.concat(l.className.filter(function(g) {\n return !v.includes(g);\n }));\n m = fr(fr({}, l), {}, {\n className: cc(p) || void 0,\n style: m2(l.className, Object.assign({}, l.style, a), r)\n });\n }\n var h = d(t.children);\n return /* @__PURE__ */ f2.createElement(u, W({\n key: c\n }, m), h);\n }\n}\nvar oa, aa = C(() => {\n Yr();\n na();\n o(lc, \"ownKeys\");\n o(fr, \"_objectSpread\");\n o(d2, \"powerSetPermutations\");\n oa = {};\n o(p2, \"getClassNameCombinations\");\n o(m2, \"createStyleObject\");\n o(cc, \"createClassNameString\");\n o(h2, \"createChildren\");\n o(_t, \"createElement\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js\nvar sc, uc = C(() => {\n sc = /* @__PURE__ */ o(function(e, t) {\n var r = e.listLanguages();\n return r.indexOf(t) !== -1;\n }, \"default\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/highlight.js\nimport $t from \"react\";\nfunction fc(e, t) {\n var r = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n t && (n = n.filter(function(a) {\n return Object.getOwnPropertyDescriptor(e, a).enumerable;\n })), r.push.apply(r, n);\n }\n return r;\n}\nfunction bt(e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t] != null ? arguments[t] : {};\n t % 2 ? fc(Object(r), !0).forEach(function(n) {\n On(e, n, r[n]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fc(Object(r)).forEach(function(n) {\n Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));\n });\n }\n return e;\n}\nfunction w2(e) {\n return e.match(v2);\n}\nfunction b2(e) {\n var t = e.lines, r = e.startingLineNumber, n = e.style;\n return t.map(function(a, i) {\n var c = i + r;\n return /* @__PURE__ */ $t.createElement(\"span\", {\n key: \"line-\".concat(i),\n className: \"react-syntax-highlighter-line-number\",\n style: typeof n == \"function\" ? n(c) : n\n }, \"\".concat(c, `\n`));\n });\n}\nfunction R2(e) {\n var t = e.codeString, r = e.codeStyle, n = e.containerStyle, a = n === void 0 ? {\n float: \"left\",\n paddingRight: \"10px\"\n } : n, i = e.numberStyle, c = i === void 0 ? {} : i, l = e.startingLineNumber;\n return /* @__PURE__ */ $t.createElement(\"code\", {\n style: Object.assign({}, r, a)\n }, b2({\n lines: t.replace(/\\n$/, \"\").split(`\n`),\n style: c,\n startingLineNumber: l\n }));\n}\nfunction y2(e) {\n return \"\".concat(e.toString().length, \".25em\");\n}\nfunction dc(e, t) {\n return {\n type: \"element\",\n tagName: \"span\",\n properties: {\n key: \"line-number--\".concat(e),\n className: [\"comment\", \"linenumber\", \"react-syntax-highlighter-line-number\"],\n style: t\n },\n children: [{\n type: \"text\",\n value: e\n }]\n };\n}\nfunction pc(e, t, r) {\n var n = {\n display: \"inline-block\",\n minWidth: y2(r),\n paddingRight: \"1em\",\n textAlign: \"right\",\n userSelect: \"none\"\n }, a = typeof e == \"function\" ? e(t) : e, i = bt(bt({}, n), a);\n return i;\n}\nfunction Bn(e) {\n var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, a = e.largestLineNumber, i = e.showInlineLineNumbers, c = e.lineProps, l = c ===\n void 0 ? {} : c, s = e.className, u = s === void 0 ? [] : s, f = e.showLineNumbers, d = e.wrapLongLines, m = e.wrapLines, v = m === void 0 ?\n !1 : m, R = v ? bt({}, typeof l == \"function\" ? l(r) : l) : {};\n if (R.className = R.className ? [].concat(kn(R.className.trim().split(/\\s+/)), kn(u)) : u, r && i) {\n var p = pc(n, r, a);\n t.unshift(dc(r, p));\n }\n return d & f && (R.style = bt({\n display: \"flex\"\n }, R.style)), {\n type: \"element\",\n tagName: \"span\",\n properties: R,\n children: t\n };\n}\nfunction mc(e) {\n for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :\n [], n = 0; n < e.length; n++) {\n var a = e[n];\n if (a.type === \"text\")\n r.push(Bn({\n children: [a],\n className: kn(new Set(t))\n }));\n else if (a.children) {\n var i = t.concat(a.properties.className);\n mc(a.children, i).forEach(function(c) {\n return r.push(c);\n });\n }\n }\n return r;\n}\nfunction x2(e, t, r, n, a, i, c, l, s) {\n var u, f = mc(e.value), d = [], m = -1, v = 0;\n function R(E, y) {\n var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n return Bn({\n children: E,\n lineNumber: y,\n lineNumberStyle: l,\n largestLineNumber: c,\n showInlineLineNumbers: a,\n lineProps: r,\n className: S,\n showLineNumbers: n,\n wrapLongLines: s,\n wrapLines: t\n });\n }\n o(R, \"createWrappedLine\");\n function p(E, y) {\n if (n && y && a) {\n var S = pc(l, y, c);\n E.unshift(dc(y, S));\n }\n return E;\n }\n o(p, \"createUnwrappedLine\");\n function h(E, y) {\n var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n return t || S.length > 0 ? R(E, y, S) : p(E, y);\n }\n o(h, \"createLine\");\n for (var g = /* @__PURE__ */ o(function() {\n var y = f[v], S = y.children[0].value, L = w2(S);\n if (L) {\n var M = S.split(`\n`);\n M.forEach(function(A, P) {\n var _ = n && d.length + i, F = {\n type: \"text\",\n value: \"\".concat(A, `\n`)\n };\n if (P === 0) {\n var K = f.slice(m + 1, v).concat(Bn({\n children: [F],\n className: y.properties.className\n })), T = h(K, _);\n d.push(T);\n } else if (P === M.length - 1) {\n var z = f[v + 1] && f[v + 1].children && f[v + 1].children[0], k = {\n type: \"text\",\n value: \"\".concat(A)\n };\n if (z) {\n var V = Bn({\n children: [k],\n className: y.properties.className\n });\n f.splice(v + 1, 0, V);\n } else {\n var D = [k], j = h(D, _, y.properties.className);\n d.push(j);\n }\n } else {\n var O = [F], G = h(O, _, y.properties.className);\n d.push(G);\n }\n }), m = v;\n }\n v++;\n }, \"_loop\"); v < f.length; )\n g();\n if (m !== f.length - 1) {\n var w = f.slice(m + 1, f.length);\n if (w && w.length) {\n var b = n && d.length + i, x = h(w, b);\n d.push(x);\n }\n }\n return t ? d : (u = []).concat.apply(u, d);\n}\nfunction E2(e) {\n var t = e.rows, r = e.stylesheet, n = e.useInlineStyles;\n return t.map(function(a, i) {\n return _t({\n node: a,\n stylesheet: r,\n useInlineStyles: n,\n key: \"code-segement\".concat(i)\n });\n });\n}\nfunction hc(e) {\n return e && typeof e.highlightAuto < \"u\";\n}\nfunction S2(e) {\n var t = e.astGenerator, r = e.language, n = e.code, a = e.defaultCodeValue;\n if (hc(t)) {\n var i = sc(t, r);\n return r === \"text\" ? {\n value: a,\n language: \"text\"\n } : i ? t.highlight(r, n) : t.highlightAuto(n);\n }\n try {\n return r && r !== \"text\" ? {\n value: t.highlight(n, r)\n } : {\n value: a\n };\n } catch {\n return {\n value: a\n };\n }\n}\nfunction ia(e, t) {\n return /* @__PURE__ */ o(function(n) {\n var a = n.language, i = n.children, c = n.style, l = c === void 0 ? t : c, s = n.customStyle, u = s === void 0 ? {} : s, f = n.codeTagProps,\n d = f === void 0 ? {\n className: a ? \"language-\".concat(a) : void 0,\n style: bt(bt({}, l['code[class*=\"language-\"]']), l['code[class*=\"language-'.concat(a, '\"]')])\n } : f, m = n.useInlineStyles, v = m === void 0 ? !0 : m, R = n.showLineNumbers, p = R === void 0 ? !1 : R, h = n.showInlineLineNumbers, g = h ===\n void 0 ? !0 : h, w = n.startingLineNumber, b = w === void 0 ? 1 : w, x = n.lineNumberContainerStyle, E = n.lineNumberStyle, y = E === void 0 ?\n {} : E, S = n.wrapLines, L = n.wrapLongLines, M = L === void 0 ? !1 : L, A = n.lineProps, P = A === void 0 ? {} : A, _ = n.renderer, F = n.\n PreTag, K = F === void 0 ? \"pre\" : F, T = n.CodeTag, z = T === void 0 ? \"code\" : T, k = n.code, V = k === void 0 ? (Array.isArray(i) ? i[0] :\n i) || \"\" : k, D = n.astGenerator, j = ql(n, g2);\n D = D || e;\n var O = p ? /* @__PURE__ */ $t.createElement(R2, {\n containerStyle: x,\n codeStyle: d.style || {},\n numberStyle: y,\n startingLineNumber: b,\n codeString: V\n }) : null, G = l.hljs || l['pre[class*=\"language-\"]'] || {\n backgroundColor: \"#fff\"\n }, Ee = hc(D) ? \"hljs\" : \"prismjs\", pe = v ? Object.assign({}, j, {\n style: Object.assign({}, G, u)\n }) : Object.assign({}, j, {\n className: j.className ? \"\".concat(Ee, \" \").concat(j.className) : Ee,\n style: Object.assign({}, u)\n });\n if (M ? d.style = bt({\n whiteSpace: \"pre-wrap\"\n }, d.style) : d.style = bt({\n whiteSpace: \"pre\"\n }, d.style), !D)\n return /* @__PURE__ */ $t.createElement(K, pe, O, /* @__PURE__ */ $t.createElement(z, d, V));\n (S === void 0 && _ || M) && (S = !0), _ = _ || E2;\n var se = [{\n type: \"text\",\n value: V\n }], ue = S2({\n astGenerator: D,\n language: a,\n code: V,\n defaultCodeValue: se\n });\n ue.language === null && (ue.value = se);\n var ve = ue.value.length;\n ve === 1 && ue.value[0].type === \"text\" && (ve = ue.value[0].value.split(`\n`).length);\n var Se = ve + b, Ot = x2(ue, S, P, p, g, b, Se, y, M);\n return /* @__PURE__ */ $t.createElement(K, pe, /* @__PURE__ */ $t.createElement(z, d, !g && O, _({\n rows: Ot,\n stylesheet: l,\n useInlineStyles: v\n })));\n }, \"SyntaxHighlighter\");\n}\nvar g2, v2, gc = C(() => {\n Gl();\n rc();\n na();\n aa();\n uc();\n g2 = [\"language\", \"children\", \"style\", \"customStyle\", \"codeTagProps\", \"useInlineStyles\", \"showLineNumbers\", \"showInlineLineNumbers\", \"star\\\ntingLineNumber\", \"lineNumberContainerStyle\", \"lineNumberStyle\", \"wrapLines\", \"wrapLongLines\", \"lineProps\", \"renderer\", \"PreTag\", \"CodeTag\", \"\\\ncode\", \"astGenerator\"];\n o(fc, \"ownKeys\");\n o(bt, \"_objectSpread\");\n v2 = /\\n/g;\n o(w2, \"getNewLines\");\n o(b2, \"getAllLineNumbers\");\n o(R2, \"AllLineNumbers\");\n o(y2, \"getEmWidthOfNumber\");\n o(dc, \"getInlineLineNumber\");\n o(pc, \"assembleLineNumberStyles\");\n o(Bn, \"createLineElement\");\n o(mc, \"flattenCodeTree\");\n o(x2, \"processLines\");\n o(E2, \"defaultRenderer\");\n o(hc, \"isHighlightJs\");\n o(S2, \"getCodeTree\");\n o(ia, \"default\");\n});\n\n// ../node_modules/xtend/immutable.js\nvar wc = H((yb, vc) => {\n vc.exports = M2;\n var C2 = Object.prototype.hasOwnProperty;\n function M2() {\n for (var e = {}, t = 0; t < arguments.length; t++) {\n var r = arguments[t];\n for (var n in r)\n C2.call(r, n) && (e[n] = r[n]);\n }\n return e;\n }\n o(M2, \"extend\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/schema.js\nvar ca = H((Eb, Rc) => {\n \"use strict\";\n Rc.exports = bc;\n var la = bc.prototype;\n la.space = null;\n la.normal = {};\n la.property = {};\n function bc(e, t, r) {\n this.property = e, this.normal = t, r && (this.space = r);\n }\n o(bc, \"Schema\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/merge.js\nvar Ec = H((Cb, xc) => {\n \"use strict\";\n var yc = wc(), L2 = ca();\n xc.exports = A2;\n function A2(e) {\n for (var t = e.length, r = [], n = [], a = -1, i, c; ++a < t; )\n i = e[a], r.push(i.property), n.push(i.normal), c = i.space;\n return new L2(\n yc.apply(null, r),\n yc.apply(null, n),\n c\n );\n }\n o(A2, \"merge\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/normalize.js\nvar Nn = H((Lb, Sc) => {\n \"use strict\";\n Sc.exports = I2;\n function I2(e) {\n return e.toLowerCase();\n }\n o(I2, \"normalize\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/info.js\nvar sa = H((Ib, Mc) => {\n \"use strict\";\n Mc.exports = Cc;\n var De = Cc.prototype;\n De.space = null;\n De.attribute = null;\n De.property = null;\n De.boolean = !1;\n De.booleanish = !1;\n De.overloadedBoolean = !1;\n De.number = !1;\n De.commaSeparated = !1;\n De.spaceSeparated = !1;\n De.commaOrSpaceSeparated = !1;\n De.mustUseProperty = !1;\n De.defined = !1;\n function Cc(e, t) {\n this.property = e, this.attribute = t;\n }\n o(Cc, \"Info\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/types.js\nvar Dn = H((Rt) => {\n \"use strict\";\n var z2 = 0;\n Rt.boolean = Vt();\n Rt.booleanish = Vt();\n Rt.overloadedBoolean = Vt();\n Rt.number = Vt();\n Rt.spaceSeparated = Vt();\n Rt.commaSeparated = Vt();\n Rt.commaOrSpaceSeparated = Vt();\n function Vt() {\n return Math.pow(2, ++z2);\n }\n o(Vt, \"increment\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js\nvar fa = H((Pb, Tc) => {\n \"use strict\";\n var Ic = sa(), Lc = Dn();\n Tc.exports = ua;\n ua.prototype = new Ic();\n ua.prototype.defined = !0;\n var zc = [\n \"boolean\",\n \"booleanish\",\n \"overloadedBoolean\",\n \"number\",\n \"commaSeparated\",\n \"spaceSeparated\",\n \"commaOrSpaceSeparated\"\n ], T2 = zc.length;\n function ua(e, t, r, n) {\n var a = -1, i;\n for (Ac(this, \"space\", n), Ic.call(this, e, t); ++a < T2; )\n i = zc[a], Ac(this, i, (r & Lc[i]) === Lc[i]);\n }\n o(ua, \"DefinedInfo\");\n function Ac(e, t, r) {\n r && (e[t] = r);\n }\n o(Ac, \"mark\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/create.js\nvar dr = H((Ob, Pc) => {\n \"use strict\";\n var Hc = Nn(), H2 = ca(), P2 = fa();\n Pc.exports = k2;\n function k2(e) {\n var t = e.space, r = e.mustUseProperty || [], n = e.attributes || {}, a = e.properties, i = e.transform, c = {}, l = {}, s, u;\n for (s in a)\n u = new P2(\n s,\n i(n, s),\n a[s],\n t\n ), r.indexOf(s) !== -1 && (u.mustUseProperty = !0), c[s] = u, l[Hc(s)] = s, l[Hc(u.attribute)] = s;\n return new H2(c, l, t);\n }\n o(k2, \"create\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/xlink.js\nvar Oc = H((Nb, kc) => {\n \"use strict\";\n var O2 = dr();\n kc.exports = O2({\n space: \"xlink\",\n transform: B2,\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n });\n function B2(e, t) {\n return \"xlink:\" + t.slice(5).toLowerCase();\n }\n o(B2, \"xlinkTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/xml.js\nvar Nc = H((Fb, Bc) => {\n \"use strict\";\n var N2 = dr();\n Bc.exports = N2({\n space: \"xml\",\n transform: D2,\n properties: {\n xmlLang: null,\n xmlBase: null,\n xmlSpace: null\n }\n });\n function D2(e, t) {\n return \"xml:\" + t.slice(3).toLowerCase();\n }\n o(D2, \"xmlTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js\nvar Fc = H(($b, Dc) => {\n \"use strict\";\n Dc.exports = F2;\n function F2(e, t) {\n return t in e ? e[t] : t;\n }\n o(F2, \"caseSensitiveTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js\nvar da = H((jb, _c) => {\n \"use strict\";\n var _2 = Fc();\n _c.exports = $2;\n function $2(e, t) {\n return _2(e, t.toLowerCase());\n }\n o($2, \"caseInsensitiveTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/xmlns.js\nvar Vc = H((Ub, $c) => {\n \"use strict\";\n var V2 = dr(), j2 = da();\n $c.exports = V2({\n space: \"xmlns\",\n attributes: {\n xmlnsxlink: \"xmlns:xlink\"\n },\n transform: j2,\n properties: {\n xmlns: null,\n xmlnsXLink: null\n }\n });\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/aria.js\nvar Wc = H((qb, jc) => {\n \"use strict\";\n var pa = Dn(), W2 = dr(), Le = pa.booleanish, Fe = pa.number, jt = pa.spaceSeparated;\n jc.exports = W2({\n transform: U2,\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: Le,\n ariaAutoComplete: null,\n ariaBusy: Le,\n ariaChecked: Le,\n ariaColCount: Fe,\n ariaColIndex: Fe,\n ariaColSpan: Fe,\n ariaControls: jt,\n ariaCurrent: null,\n ariaDescribedBy: jt,\n ariaDetails: null,\n ariaDisabled: Le,\n ariaDropEffect: jt,\n ariaErrorMessage: null,\n ariaExpanded: Le,\n ariaFlowTo: jt,\n ariaGrabbed: Le,\n ariaHasPopup: null,\n ariaHidden: Le,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: jt,\n ariaLevel: Fe,\n ariaLive: null,\n ariaModal: Le,\n ariaMultiLine: Le,\n ariaMultiSelectable: Le,\n ariaOrientation: null,\n ariaOwns: jt,\n ariaPlaceholder: null,\n ariaPosInSet: Fe,\n ariaPressed: Le,\n ariaReadOnly: Le,\n ariaRelevant: null,\n ariaRequired: Le,\n ariaRoleDescription: jt,\n ariaRowCount: Fe,\n ariaRowIndex: Fe,\n ariaRowSpan: Fe,\n ariaSelected: Le,\n ariaSetSize: Fe,\n ariaSort: null,\n ariaValueMax: Fe,\n ariaValueMin: Fe,\n ariaValueNow: Fe,\n ariaValueText: null,\n role: null\n }\n });\n function U2(e, t) {\n return t === \"role\" ? t : \"aria-\" + t.slice(4).toLowerCase();\n }\n o(U2, \"ariaTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/html.js\nvar qc = H((Xb, Uc) => {\n \"use strict\";\n var pr = Dn(), q2 = dr(), G2 = da(), B = pr.boolean, X2 = pr.overloadedBoolean, Qr = pr.booleanish, X = pr.number, Re = pr.spaceSeparated,\n Fn = pr.commaSeparated;\n Uc.exports = q2({\n space: \"html\",\n attributes: {\n acceptcharset: \"accept-charset\",\n classname: \"class\",\n htmlfor: \"for\",\n httpequiv: \"http-equiv\"\n },\n transform: G2,\n mustUseProperty: [\"checked\", \"multiple\", \"muted\", \"selected\"],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: Fn,\n acceptCharset: Re,\n accessKey: Re,\n action: null,\n allow: null,\n allowFullScreen: B,\n allowPaymentRequest: B,\n allowUserMedia: B,\n alt: null,\n as: null,\n async: B,\n autoCapitalize: null,\n autoComplete: Re,\n autoFocus: B,\n autoPlay: B,\n capture: B,\n charSet: null,\n checked: B,\n cite: null,\n className: Re,\n cols: X,\n colSpan: null,\n content: null,\n contentEditable: Qr,\n controls: B,\n controlsList: Re,\n coords: X | Fn,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: B,\n defer: B,\n dir: null,\n dirName: null,\n disabled: B,\n download: X2,\n draggable: Qr,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: B,\n formTarget: null,\n headers: Re,\n height: X,\n hidden: B,\n high: X,\n href: null,\n hrefLang: null,\n htmlFor: Re,\n httpEquiv: Re,\n id: null,\n imageSizes: null,\n imageSrcSet: Fn,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: B,\n itemId: null,\n itemProp: Re,\n itemRef: Re,\n itemScope: B,\n itemType: Re,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: B,\n low: X,\n manifest: null,\n max: null,\n maxLength: X,\n media: null,\n method: null,\n min: null,\n minLength: X,\n multiple: B,\n muted: B,\n name: null,\n nonce: null,\n noModule: B,\n noValidate: B,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextMenu: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: B,\n optimum: X,\n pattern: null,\n ping: Re,\n placeholder: null,\n playsInline: B,\n poster: null,\n preload: null,\n readOnly: B,\n referrerPolicy: null,\n rel: Re,\n required: B,\n reversed: B,\n rows: X,\n rowSpan: X,\n sandbox: Re,\n scope: null,\n scoped: B,\n seamless: B,\n selected: B,\n shape: null,\n size: X,\n sizes: null,\n slot: null,\n span: X,\n spellCheck: Qr,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: Fn,\n start: X,\n step: null,\n style: null,\n tabIndex: X,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: B,\n useMap: null,\n value: Qr,\n width: X,\n wrap: null,\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null,\n // Several. Use CSS `text-align` instead,\n aLink: null,\n // `<body>`. Use CSS `a:active {color}` instead\n archive: Re,\n // `<object>`. List of URIs to archives\n axis: null,\n // `<td>` and `<th>`. Use `scope` on `<th>`\n background: null,\n // `<body>`. Use CSS `background-image` instead\n bgColor: null,\n // `<body>` and table elements. Use CSS `background-color` instead\n border: X,\n // `<table>`. Use CSS `border-width` instead,\n borderColor: null,\n // `<table>`. Use CSS `border-color` instead,\n bottomMargin: X,\n // `<body>`\n cellPadding: null,\n // `<table>`\n cellSpacing: null,\n // `<table>`\n char: null,\n // Several table elements. When `align=char`, sets the character to align on\n charOff: null,\n // Several table elements. When `char`, offsets the alignment\n classId: null,\n // `<object>`\n clear: null,\n // `<br>`. Use CSS `clear` instead\n code: null,\n // `<object>`\n codeBase: null,\n // `<object>`\n codeType: null,\n // `<object>`\n color: null,\n // `<font>` and `<hr>`. Use CSS instead\n compact: B,\n // Lists. Use CSS to reduce space between items instead\n declare: B,\n // `<object>`\n event: null,\n // `<script>`\n face: null,\n // `<font>`. Use CSS instead\n frame: null,\n // `<table>`\n frameBorder: null,\n // `<iframe>`. Use CSS `border` instead\n hSpace: X,\n // `<img>` and `<object>`\n leftMargin: X,\n // `<body>`\n link: null,\n // `<body>`. Use CSS `a:link {color: *}` instead\n longDesc: null,\n // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`\n lowSrc: null,\n // `<img>`. Use a `<picture>`\n marginHeight: X,\n // `<body>`\n marginWidth: X,\n // `<body>`\n noResize: B,\n // `<frame>`\n noHref: B,\n // `<area>`. Use no href instead of an explicit `nohref`\n noShade: B,\n // `<hr>`. Use background-color and height instead of borders\n noWrap: B,\n // `<td>` and `<th>`\n object: null,\n // `<applet>`\n profile: null,\n // `<head>`\n prompt: null,\n // `<isindex>`\n rev: null,\n // `<link>`\n rightMargin: X,\n // `<body>`\n rules: null,\n // `<table>`\n scheme: null,\n // `<meta>`\n scrolling: Qr,\n // `<frame>`. Use overflow in the child context\n standby: null,\n // `<object>`\n summary: null,\n // `<table>`\n text: null,\n // `<body>`. Use CSS `color` instead\n topMargin: X,\n // `<body>`\n valueType: null,\n // `<param>`\n version: null,\n // `<html>`. Use a doctype.\n vAlign: null,\n // Several. Use CSS `vertical-align` instead\n vLink: null,\n // `<body>`. Use CSS `a:visited {color}` instead\n vSpace: X,\n // `<img>` and `<object>`\n // Non-standard Properties.\n allowTransparency: null,\n autoCorrect: null,\n autoSave: null,\n disablePictureInPicture: B,\n disableRemotePlayback: B,\n prefix: null,\n property: null,\n results: X,\n security: null,\n unselectable: null\n }\n });\n});\n\n// ../node_modules/hastscript/node_modules/property-information/html.js\nvar Xc = H((Yb, Gc) => {\n \"use strict\";\n var Y2 = Ec(), Z2 = Oc(), K2 = Nc(), J2 = Vc(), Q2 = Wc(), e4 = qc();\n Gc.exports = Y2([K2, Z2, J2, Q2, e4]);\n});\n\n// ../node_modules/hastscript/node_modules/property-information/find.js\nvar Kc = H((Zb, Zc) => {\n \"use strict\";\n var t4 = Nn(), r4 = fa(), n4 = sa(), ma = \"data\";\n Zc.exports = i4;\n var o4 = /^data[-\\w.:]+$/i, Yc = /-[a-z]/g, a4 = /[A-Z]/g;\n function i4(e, t) {\n var r = t4(t), n = t, a = n4;\n return r in e.normal ? e.property[e.normal[r]] : (r.length > 4 && r.slice(0, 4) === ma && o4.test(t) && (t.charAt(4) === \"-\" ? n = l4(t) :\n t = c4(t), a = r4), new a(n, t));\n }\n o(i4, \"find\");\n function l4(e) {\n var t = e.slice(5).replace(Yc, u4);\n return ma + t.charAt(0).toUpperCase() + t.slice(1);\n }\n o(l4, \"datasetToProperty\");\n function c4(e) {\n var t = e.slice(4);\n return Yc.test(t) ? e : (t = t.replace(a4, s4), t.charAt(0) !== \"-\" && (t = \"-\" + t), ma + t);\n }\n o(c4, \"datasetToAttribute\");\n function s4(e) {\n return \"-\" + e.toLowerCase();\n }\n o(s4, \"kebab\");\n function u4(e) {\n return e.charAt(1).toUpperCase();\n }\n o(u4, \"camelcase\");\n});\n\n// ../node_modules/hast-util-parse-selector/index.js\nvar es = H((Jb, Qc) => {\n \"use strict\";\n Qc.exports = f4;\n var Jc = /[#.]/g;\n function f4(e, t) {\n for (var r = e || \"\", n = t || \"div\", a = {}, i = 0, c, l, s; i < r.length; )\n Jc.lastIndex = i, s = Jc.exec(r), c = r.slice(i, s ? s.index : r.length), c && (l ? l === \"#\" ? a.id = c : a.className ? a.className.push(\n c) : a.className = [c] : n = c, i += c.length), s && (l = s[0], i++);\n return { type: \"element\", tagName: n, properties: a, children: [] };\n }\n o(f4, \"parse\");\n});\n\n// ../node_modules/hastscript/node_modules/space-separated-tokens/index.js\nvar rs = H((ha) => {\n \"use strict\";\n ha.parse = m4;\n ha.stringify = h4;\n var ts = \"\", d4 = \" \", p4 = /[ \\t\\n\\r\\f]+/g;\n function m4(e) {\n var t = String(e || ts).trim();\n return t === ts ? [] : t.split(p4);\n }\n o(m4, \"parse\");\n function h4(e) {\n return e.join(d4).trim();\n }\n o(h4, \"stringify\");\n});\n\n// ../node_modules/hastscript/node_modules/comma-separated-tokens/index.js\nvar os = H((va) => {\n \"use strict\";\n va.parse = g4;\n va.stringify = v4;\n var ga = \",\", ns = \" \", en = \"\";\n function g4(e) {\n for (var t = [], r = String(e || en), n = r.indexOf(ga), a = 0, i = !1, c; !i; )\n n === -1 && (n = r.length, i = !0), c = r.slice(a, n).trim(), (c || !i) && t.push(c), a = n + 1, n = r.indexOf(ga, a);\n return t;\n }\n o(g4, \"parse\");\n function v4(e, t) {\n var r = t || {}, n = r.padLeft === !1 ? en : ns, a = r.padRight ? ns : en;\n return e[e.length - 1] === en && (e = e.concat(en)), e.join(a + ga + n).trim();\n }\n o(v4, \"stringify\");\n});\n\n// ../node_modules/hastscript/factory.js\nvar fs = H((o9, us) => {\n \"use strict\";\n var w4 = Kc(), as = Nn(), b4 = es(), is = rs().parse, ls = os().parse;\n us.exports = y4;\n var R4 = {}.hasOwnProperty;\n function y4(e, t, r) {\n var n = r ? M4(r) : null;\n return a;\n function a(c, l) {\n var s = b4(c, t), u = Array.prototype.slice.call(arguments, 2), f = s.tagName.toLowerCase(), d;\n if (s.tagName = n && R4.call(n, f) ? n[f] : f, l && x4(l, s) && (u.unshift(l), l = null), l)\n for (d in l)\n i(s.properties, d, l[d]);\n return ss(s.children, u), s.tagName === \"template\" && (s.content = { type: \"root\", children: s.children }, s.children = []), s;\n }\n function i(c, l, s) {\n var u, f, d;\n s == null || s !== s || (u = w4(e, l), f = u.property, d = s, typeof d == \"string\" && (u.spaceSeparated ? d = is(d) : u.commaSeparated ?\n d = ls(d) : u.commaOrSpaceSeparated && (d = is(ls(d).join(\" \")))), f === \"style\" && typeof s != \"string\" && (d = C4(d)), f === \"classN\\\name\" && c.className && (d = c.className.concat(d)), c[f] = S4(u, f, d));\n }\n }\n o(y4, \"factory\");\n function x4(e, t) {\n return typeof e == \"string\" || \"length\" in e || E4(t.tagName, e);\n }\n o(x4, \"isChildren\");\n function E4(e, t) {\n var r = t.type;\n return e === \"input\" || !r || typeof r != \"string\" ? !1 : typeof t.children == \"object\" && \"length\" in t.children ? !0 : (r = r.toLowerCase(),\n e === \"button\" ? r !== \"menu\" && r !== \"submit\" && r !== \"reset\" && r !== \"button\" : \"value\" in t);\n }\n o(E4, \"isNode\");\n function ss(e, t) {\n var r, n;\n if (typeof t == \"string\" || typeof t == \"number\") {\n e.push({ type: \"text\", value: String(t) });\n return;\n }\n if (typeof t == \"object\" && \"length\" in t) {\n for (r = -1, n = t.length; ++r < n; )\n ss(e, t[r]);\n return;\n }\n if (typeof t != \"object\" || !(\"type\" in t))\n throw new Error(\"Expected node, nodes, or string, got `\" + t + \"`\");\n e.push(t);\n }\n o(ss, \"addChild\");\n function S4(e, t, r) {\n var n, a, i;\n if (typeof r != \"object\" || !(\"length\" in r))\n return cs(e, t, r);\n for (a = r.length, n = -1, i = []; ++n < a; )\n i[n] = cs(e, t, r[n]);\n return i;\n }\n o(S4, \"parsePrimitives\");\n function cs(e, t, r) {\n var n = r;\n return e.number || e.positiveNumber ? !isNaN(n) && n !== \"\" && (n = Number(n)) : (e.boolean || e.overloadedBoolean) && typeof n == \"stri\\\nng\" && (n === \"\" || as(r) === as(t)) && (n = !0), n;\n }\n o(cs, \"parsePrimitive\");\n function C4(e) {\n var t = [], r;\n for (r in e)\n t.push([r, e[r]].join(\": \"));\n return t.join(\"; \");\n }\n o(C4, \"style\");\n function M4(e) {\n for (var t = e.length, r = -1, n = {}, a; ++r < t; )\n a = e[r], n[a.toLowerCase()] = a;\n return n;\n }\n o(M4, \"createAdjustMap\");\n});\n\n// ../node_modules/hastscript/html.js\nvar ms = H((i9, ps) => {\n \"use strict\";\n var L4 = Xc(), A4 = fs(), ds = A4(L4, \"div\");\n ds.displayName = \"html\";\n ps.exports = ds;\n});\n\n// ../node_modules/hastscript/index.js\nvar gs = H((l9, hs) => {\n \"use strict\";\n hs.exports = ms();\n});\n\n// ../node_modules/refractor/node_modules/character-entities-legacy/index.json\nvar vs = H((c9, I4) => {\n I4.exports = {\n AElig: \"\\xC6\",\n AMP: \"&\",\n Aacute: \"\\xC1\",\n Acirc: \"\\xC2\",\n Agrave: \"\\xC0\",\n Aring: \"\\xC5\",\n Atilde: \"\\xC3\",\n Auml: \"\\xC4\",\n COPY: \"\\xA9\",\n Ccedil: \"\\xC7\",\n ETH: \"\\xD0\",\n Eacute: \"\\xC9\",\n Ecirc: \"\\xCA\",\n Egrave: \"\\xC8\",\n Euml: \"\\xCB\",\n GT: \">\",\n Iacute: \"\\xCD\",\n Icirc: \"\\xCE\",\n Igrave: \"\\xCC\",\n Iuml: \"\\xCF\",\n LT: \"<\",\n Ntilde: \"\\xD1\",\n Oacute: \"\\xD3\",\n Ocirc: \"\\xD4\",\n Ograve: \"\\xD2\",\n Oslash: \"\\xD8\",\n Otilde: \"\\xD5\",\n Ouml: \"\\xD6\",\n QUOT: '\"',\n REG: \"\\xAE\",\n THORN: \"\\xDE\",\n Uacute: \"\\xDA\",\n Ucirc: \"\\xDB\",\n Ugrave: \"\\xD9\",\n Uuml: \"\\xDC\",\n Yacute: \"\\xDD\",\n aacute: \"\\xE1\",\n acirc: \"\\xE2\",\n acute: \"\\xB4\",\n aelig: \"\\xE6\",\n agrave: \"\\xE0\",\n amp: \"&\",\n aring: \"\\xE5\",\n atilde: \"\\xE3\",\n auml: \"\\xE4\",\n brvbar: \"\\xA6\",\n ccedil: \"\\xE7\",\n cedil: \"\\xB8\",\n cent: \"\\xA2\",\n copy: \"\\xA9\",\n curren: \"\\xA4\",\n deg: \"\\xB0\",\n divide: \"\\xF7\",\n eacute: \"\\xE9\",\n ecirc: \"\\xEA\",\n egrave: \"\\xE8\",\n eth: \"\\xF0\",\n euml: \"\\xEB\",\n frac12: \"\\xBD\",\n frac14: \"\\xBC\",\n frac34: \"\\xBE\",\n gt: \">\",\n iacute: \"\\xED\",\n icirc: \"\\xEE\",\n iexcl: \"\\xA1\",\n igrave: \"\\xEC\",\n iquest: \"\\xBF\",\n iuml: \"\\xEF\",\n laquo: \"\\xAB\",\n lt: \"<\",\n macr: \"\\xAF\",\n micro: \"\\xB5\",\n middot: \"\\xB7\",\n nbsp: \"\\xA0\",\n not: \"\\xAC\",\n ntilde: \"\\xF1\",\n oacute: \"\\xF3\",\n ocirc: \"\\xF4\",\n ograve: \"\\xF2\",\n ordf: \"\\xAA\",\n ordm: \"\\xBA\",\n oslash: \"\\xF8\",\n otilde: \"\\xF5\",\n ouml: \"\\xF6\",\n para: \"\\xB6\",\n plusmn: \"\\xB1\",\n pound: \"\\xA3\",\n quot: '\"',\n raquo: \"\\xBB\",\n reg: \"\\xAE\",\n sect: \"\\xA7\",\n shy: \"\\xAD\",\n sup1: \"\\xB9\",\n sup2: \"\\xB2\",\n sup3: \"\\xB3\",\n szlig: \"\\xDF\",\n thorn: \"\\xFE\",\n times: \"\\xD7\",\n uacute: \"\\xFA\",\n ucirc: \"\\xFB\",\n ugrave: \"\\xF9\",\n uml: \"\\xA8\",\n uuml: \"\\xFC\",\n yacute: \"\\xFD\",\n yen: \"\\xA5\",\n yuml: \"\\xFF\"\n };\n});\n\n// ../node_modules/refractor/node_modules/character-reference-invalid/index.json\nvar ws = H((s9, z4) => {\n z4.exports = {\n \"0\": \"\\uFFFD\",\n \"128\": \"\\u20AC\",\n \"130\": \"\\u201A\",\n \"131\": \"\\u0192\",\n \"132\": \"\\u201E\",\n \"133\": \"\\u2026\",\n \"134\": \"\\u2020\",\n \"135\": \"\\u2021\",\n \"136\": \"\\u02C6\",\n \"137\": \"\\u2030\",\n \"138\": \"\\u0160\",\n \"139\": \"\\u2039\",\n \"140\": \"\\u0152\",\n \"142\": \"\\u017D\",\n \"145\": \"\\u2018\",\n \"146\": \"\\u2019\",\n \"147\": \"\\u201C\",\n \"148\": \"\\u201D\",\n \"149\": \"\\u2022\",\n \"150\": \"\\u2013\",\n \"151\": \"\\u2014\",\n \"152\": \"\\u02DC\",\n \"153\": \"\\u2122\",\n \"154\": \"\\u0161\",\n \"155\": \"\\u203A\",\n \"156\": \"\\u0153\",\n \"158\": \"\\u017E\",\n \"159\": \"\\u0178\"\n };\n});\n\n// ../node_modules/refractor/node_modules/is-decimal/index.js\nvar wa = H((u9, bs) => {\n \"use strict\";\n bs.exports = T4;\n function T4(e) {\n var t = typeof e == \"string\" ? e.charCodeAt(0) : e;\n return t >= 48 && t <= 57;\n }\n o(T4, \"decimal\");\n});\n\n// ../node_modules/refractor/node_modules/is-hexadecimal/index.js\nvar ys = H((d9, Rs) => {\n \"use strict\";\n Rs.exports = H4;\n function H4(e) {\n var t = typeof e == \"string\" ? e.charCodeAt(0) : e;\n return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57;\n }\n o(H4, \"hexadecimal\");\n});\n\n// ../node_modules/refractor/node_modules/is-alphabetical/index.js\nvar Es = H((m9, xs) => {\n \"use strict\";\n xs.exports = P4;\n function P4(e) {\n var t = typeof e == \"string\" ? e.charCodeAt(0) : e;\n return t >= 97 && t <= 122 || t >= 65 && t <= 90;\n }\n o(P4, \"alphabetical\");\n});\n\n// ../node_modules/refractor/node_modules/is-alphanumerical/index.js\nvar Cs = H((g9, Ss) => {\n \"use strict\";\n var k4 = Es(), O4 = wa();\n Ss.exports = B4;\n function B4(e) {\n return k4(e) || O4(e);\n }\n o(B4, \"alphanumerical\");\n});\n\n// ../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js\nvar Ls = H((w9, Ms) => {\n \"use strict\";\n var _n, N4 = 59;\n Ms.exports = D4;\n function D4(e) {\n var t = \"&\" + e + \";\", r;\n return _n = _n || document.createElement(\"i\"), _n.innerHTML = t, r = _n.textContent, r.charCodeAt(r.length - 1) === N4 && e !== \"semi\" ||\n r === t ? !1 : r;\n }\n o(D4, \"decodeEntity\");\n});\n\n// ../node_modules/refractor/node_modules/parse-entities/index.js\nvar $s = H((R9, _s) => {\n \"use strict\";\n var As = vs(), Is = ws(), F4 = wa(), _4 = ys(), Ps = Cs(), $4 = Ls();\n _s.exports = em;\n var V4 = {}.hasOwnProperty, mr = String.fromCharCode, j4 = Function.prototype, zs = {\n warning: null,\n reference: null,\n text: null,\n warningContext: null,\n referenceContext: null,\n textContext: null,\n position: {},\n additional: null,\n attribute: !1,\n nonTerminated: !0\n }, W4 = 9, Ts = 10, U4 = 12, q4 = 32, Hs = 38, G4 = 59, X4 = 60, Y4 = 61, Z4 = 35, K4 = 88, J4 = 120, Q4 = 65533, hr = \"named\", Ra = \"hexa\\\ndecimal\", ya = \"decimal\", xa = {};\n xa[Ra] = 16;\n xa[ya] = 10;\n var $n = {};\n $n[hr] = Ps;\n $n[ya] = F4;\n $n[Ra] = _4;\n var ks = 1, Os = 2, Bs = 3, Ns = 4, Ds = 5, ba = 6, Fs = 7, yt = {};\n yt[ks] = \"Named character references must be terminated by a semicolon\";\n yt[Os] = \"Numeric character references must be terminated by a semicolon\";\n yt[Bs] = \"Named character references cannot be empty\";\n yt[Ns] = \"Numeric character references cannot be empty\";\n yt[Ds] = \"Named character references must be known\";\n yt[ba] = \"Numeric character references cannot be disallowed\";\n yt[Fs] = \"Numeric character references cannot be outside the permissible Unicode range\";\n function em(e, t) {\n var r = {}, n, a;\n t || (t = {});\n for (a in zs)\n n = t[a], r[a] = n ?? zs[a];\n return (r.position.indent || r.position.start) && (r.indent = r.position.indent || [], r.position = r.position.start), tm(e, r);\n }\n o(em, \"parseEntities\");\n function tm(e, t) {\n var r = t.additional, n = t.nonTerminated, a = t.text, i = t.reference, c = t.warning, l = t.textContext, s = t.referenceContext, u = t.\n warningContext, f = t.position, d = t.indent || [], m = e.length, v = 0, R = -1, p = f.column || 1, h = f.line || 1, g = \"\", w = [], b, x,\n E, y, S, L, M, A, P, _, F, K, T, z, k, V, D, j, O;\n for (typeof r == \"string\" && (r = r.charCodeAt(0)), V = G(), A = c ? Ee : j4, v--, m++; ++v < m; )\n if (S === Ts && (p = d[R] || 1), S = e.charCodeAt(v), S === Hs) {\n if (M = e.charCodeAt(v + 1), M === W4 || M === Ts || M === U4 || M === q4 || M === Hs || M === X4 || M !== M || r && M === r) {\n g += mr(S), p++;\n continue;\n }\n for (T = v + 1, K = T, O = T, M === Z4 ? (O = ++K, M = e.charCodeAt(O), M === K4 || M === J4 ? (z = Ra, O = ++K) : z = ya) : z = hr,\n b = \"\", F = \"\", y = \"\", k = $n[z], O--; ++O < m && (M = e.charCodeAt(O), !!k(M)); )\n y += mr(M), z === hr && V4.call(As, y) && (b = y, F = As[y]);\n E = e.charCodeAt(O) === G4, E && (O++, x = z === hr ? $4(y) : !1, x && (b = y, F = x)), j = 1 + O - T, !E && !n || (y ? z === hr ? (E &&\n !F ? A(Ds, 1) : (b !== y && (O = K + b.length, j = 1 + O - K, E = !1), E || (P = b ? ks : Bs, t.attribute ? (M = e.charCodeAt(O), M ===\n Y4 ? (A(P, j), F = null) : Ps(M) ? F = null : A(P, j)) : A(P, j))), L = F) : (E || A(Os, j), L = parseInt(y, xa[z]), rm(L) ? (A(Fs, j),\n L = mr(Q4)) : L in Is ? (A(ba, j), L = Is[L]) : (_ = \"\", nm(L) && A(ba, j), L > 65535 && (L -= 65536, _ += mr(L >>> 10 | 55296), L =\n 56320 | L & 1023), L = _ + mr(L))) : z !== hr && A(Ns, j)), L ? (pe(), V = G(), v = O - 1, p += O - T + 1, w.push(L), D = G(), D.offset++,\n i && i.call(\n s,\n L,\n { start: V, end: D },\n e.slice(T - 1, O)\n ), V = D) : (y = e.slice(T - 1, O), g += y, p += y.length, v = O - 1);\n } else\n S === 10 && (h++, R++, p = 0), S === S ? (g += mr(S), p++) : pe();\n return w.join(\"\");\n function G() {\n return {\n line: h,\n column: p,\n offset: v + (f.offset || 0)\n };\n }\n function Ee(se, ue) {\n var ve = G();\n ve.column += ue, ve.offset += ue, c.call(u, yt[se], ve, se);\n }\n function pe() {\n g && (w.push(g), a && a.call(l, g, { start: V, end: G() }), g = \"\");\n }\n }\n o(tm, \"parse\");\n function rm(e) {\n return e >= 55296 && e <= 57343 || e > 1114111;\n }\n o(rm, \"prohibited\");\n function nm(e) {\n return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 ||\n (e & 65535) === 65534;\n }\n o(nm, \"disallowed\");\n});\n\n// ../node_modules/refractor/node_modules/prismjs/components/prism-core.js\nvar js = H((x9, Vn) => {\n var om = typeof window < \"u\" ? window : typeof WorkerGlobalScope < \"u\" && self instanceof WorkerGlobalScope ? self : {};\n var Vs = function(e) {\n var t = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i, r = 0, n = {}, a = {\n /**\n * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the\n * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load\n * additional languages or plugins yourself.\n *\n * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.\n *\n * You obviously have to change this value before the automatic highlighting started. To do this, you can add an\n * empty Prism object into the global scope before loading the Prism script like this:\n *\n * ```js\n * window.Prism = window.Prism || {};\n * Prism.manual = true;\n * // add a new <script> to load Prism's script\n * ```\n *\n * @default false\n * @type {boolean}\n * @memberof Prism\n * @public\n */\n manual: e.Prism && e.Prism.manual,\n /**\n * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses\n * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your\n * own worker, you don't want it to do this.\n *\n * By setting this value to `true`, Prism will not add its own listeners to the worker.\n *\n * You obviously have to change this value before Prism executes. To do this, you can add an\n * empty Prism object into the global scope before loading the Prism script like this:\n *\n * ```js\n * window.Prism = window.Prism || {};\n * Prism.disableWorkerMessageHandler = true;\n * // Load Prism's script\n * ```\n *\n * @default false\n * @type {boolean}\n * @memberof Prism\n * @public\n */\n disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,\n /**\n * A namespace for utility methods.\n *\n * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n * change or disappear at any time.\n *\n * @namespace\n * @memberof Prism\n */\n util: {\n encode: /* @__PURE__ */ o(function p(h) {\n return h instanceof i ? new i(h.type, p(h.content), h.alias) : Array.isArray(h) ? h.map(p) : h.replace(/&/g, \"&amp;\").replace(/</g,\n \"&lt;\").replace(/\\u00a0/g, \" \");\n }, \"encode\"),\n /**\n * Returns the name of the type of the given value.\n *\n * @param {any} o\n * @returns {string}\n * @example\n * type(null) === 'Null'\n * type(undefined) === 'Undefined'\n * type(123) === 'Number'\n * type('foo') === 'String'\n * type(true) === 'Boolean'\n * type([1, 2]) === 'Array'\n * type({}) === 'Object'\n * type(String) === 'Function'\n * type(/abc+/) === 'RegExp'\n */\n type: /* @__PURE__ */ o(function(p) {\n return Object.prototype.toString.call(p).slice(8, -1);\n }, \"type\"),\n /**\n * Returns a unique number for the given object. Later calls will still return the same number.\n *\n * @param {Object} obj\n * @returns {number}\n */\n objId: /* @__PURE__ */ o(function(p) {\n return p.__id || Object.defineProperty(p, \"__id\", { value: ++r }), p.__id;\n }, \"objId\"),\n /**\n * Creates a deep clone of the given object.\n *\n * The main intended use of this function is to clone language definitions.\n *\n * @param {T} o\n * @param {Record<number, any>} [visited]\n * @returns {T}\n * @template T\n */\n clone: /* @__PURE__ */ o(function p(h, g) {\n g = g || {};\n var w, b;\n switch (a.util.type(h)) {\n case \"Object\":\n if (b = a.util.objId(h), g[b])\n return g[b];\n w = /** @type {Record<string, any>} */\n {}, g[b] = w;\n for (var x in h)\n h.hasOwnProperty(x) && (w[x] = p(h[x], g));\n return (\n /** @type {any} */\n w\n );\n case \"Array\":\n return b = a.util.objId(h), g[b] ? g[b] : (w = [], g[b] = w, /** @type {Array} */\n /** @type {any} */\n h.forEach(function(E, y) {\n w[y] = p(E, g);\n }), /** @type {any} */\n w);\n default:\n return h;\n }\n }, \"deepClone\"),\n /**\n * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.\n *\n * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.\n *\n * @param {Element} element\n * @returns {string}\n */\n getLanguage: /* @__PURE__ */ o(function(p) {\n for (; p; ) {\n var h = t.exec(p.className);\n if (h)\n return h[1].toLowerCase();\n p = p.parentElement;\n }\n return \"none\";\n }, \"getLanguage\"),\n /**\n * Sets the Prism `language-xxxx` class of the given element.\n *\n * @param {Element} element\n * @param {string} language\n * @returns {void}\n */\n setLanguage: /* @__PURE__ */ o(function(p, h) {\n p.className = p.className.replace(RegExp(t, \"gi\"), \"\"), p.classList.add(\"language-\" + h);\n }, \"setLanguage\"),\n /**\n * Returns the script element that is currently executing.\n *\n * This does __not__ work for line script element.\n *\n * @returns {HTMLScriptElement | null}\n */\n currentScript: /* @__PURE__ */ o(function() {\n if (typeof document > \"u\")\n return null;\n if (\"currentScript\" in document)\n return (\n /** @type {any} */\n document.currentScript\n );\n try {\n throw new Error();\n } catch (w) {\n var p = (/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(w.stack) || [])[1];\n if (p) {\n var h = document.getElementsByTagName(\"script\");\n for (var g in h)\n if (h[g].src == p)\n return h[g];\n }\n return null;\n }\n }, \"currentScript\"),\n /**\n * Returns whether a given class is active for `element`.\n *\n * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated\n * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the\n * given class is just the given class with a `no-` prefix.\n *\n * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is\n * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its\n * ancestors have the given class or the negated version of it, then the default activation will be returned.\n *\n * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated\n * version of it, the class is considered active.\n *\n * @param {Element} element\n * @param {string} className\n * @param {boolean} [defaultActivation=false]\n * @returns {boolean}\n */\n isActive: /* @__PURE__ */ o(function(p, h, g) {\n for (var w = \"no-\" + h; p; ) {\n var b = p.classList;\n if (b.contains(h))\n return !0;\n if (b.contains(w))\n return !1;\n p = p.parentElement;\n }\n return !!g;\n }, \"isActive\")\n },\n /**\n * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n *\n * @namespace\n * @memberof Prism\n * @public\n */\n languages: {\n /**\n * The grammar for plain, unformatted text.\n */\n plain: n,\n plaintext: n,\n text: n,\n txt: n,\n /**\n * Creates a deep copy of the language with the given id and appends the given tokens.\n *\n * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n * will be overwritten at its original position.\n *\n * ## Best practices\n *\n * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n *\n * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n *\n * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n * @param {Grammar} redef The new tokens to append.\n * @returns {Grammar} The new language created.\n * @public\n * @example\n * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n * // at its original position\n * 'comment': { ... },\n * // CSS doesn't have a 'color' token, so this token will be appended\n * 'color': /\\b(?:red|green|blue)\\b/\n * });\n */\n extend: /* @__PURE__ */ o(function(p, h) {\n var g = a.util.clone(a.languages[p]);\n for (var w in h)\n g[w] = h[w];\n return g;\n }, \"extend\"),\n /**\n * Inserts tokens _before_ another token in a language definition or any other grammar.\n *\n * ## Usage\n *\n * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n * this:\n *\n * ```js\n * Prism.languages.markup.style = {\n * // token\n * };\n * ```\n *\n * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n * before existing tokens. For the CSS example above, you would use it like this:\n *\n * ```js\n * Prism.languages.insertBefore('markup', 'cdata', {\n * 'style': {\n * // token\n * }\n * });\n * ```\n *\n * ## Special cases\n *\n * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n * will be ignored.\n *\n * This behavior can be used to insert tokens after `before`:\n *\n * ```js\n * Prism.languages.insertBefore('markup', 'comment', {\n * 'comment': Prism.languages.markup.comment,\n * // tokens after 'comment'\n * });\n * ```\n *\n * ## Limitations\n *\n * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n * deleting properties which is necessary to insert at arbitrary positions.\n *\n * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n * Instead, it will create a new object and replace all references to the target object with the new one. This\n * can be done without temporarily deleting properties, so the iteration order is well-defined.\n *\n * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n * you hold the target object in a variable, then the value of the variable will not change.\n *\n * ```js\n * var oldMarkup = Prism.languages.markup;\n * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n *\n * assert(oldMarkup !== Prism.languages.markup);\n * assert(newMarkup === Prism.languages.markup);\n * ```\n *\n * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n * object to be modified.\n * @param {string} before The key to insert before.\n * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n * object to be modified.\n *\n * Defaults to `Prism.languages`.\n * @returns {Grammar} The new grammar object.\n * @public\n */\n insertBefore: /* @__PURE__ */ o(function(p, h, g, w) {\n w = w || /** @type {any} */\n a.languages;\n var b = w[p], x = {};\n for (var E in b)\n if (b.hasOwnProperty(E)) {\n if (E == h)\n for (var y in g)\n g.hasOwnProperty(y) && (x[y] = g[y]);\n g.hasOwnProperty(E) || (x[E] = b[E]);\n }\n var S = w[p];\n return w[p] = x, a.languages.DFS(a.languages, function(L, M) {\n M === S && L != p && (this[L] = x);\n }), x;\n }, \"insertBefore\"),\n // Traverse a language definition with Depth First Search\n DFS: /* @__PURE__ */ o(function p(h, g, w, b) {\n b = b || {};\n var x = a.util.objId;\n for (var E in h)\n if (h.hasOwnProperty(E)) {\n g.call(h, E, h[E], w || E);\n var y = h[E], S = a.util.type(y);\n S === \"Object\" && !b[x(y)] ? (b[x(y)] = !0, p(y, g, null, b)) : S === \"Array\" && !b[x(y)] && (b[x(y)] = !0, p(y, g, E, b));\n }\n }, \"DFS\")\n },\n plugins: {},\n /**\n * This is the most high-level function in Prism’s API.\n * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on\n * each one of them.\n *\n * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.\n *\n * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.\n * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.\n * @memberof Prism\n * @public\n */\n highlightAll: /* @__PURE__ */ o(function(p, h) {\n a.highlightAllUnder(document, p, h);\n }, \"highlightAll\"),\n /**\n * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls\n * {@link Prism.highlightElement} on each one of them.\n *\n * The following hooks will be run:\n * 1. `before-highlightall`\n * 2. `before-all-elements-highlight`\n * 3. All hooks of {@link Prism.highlightElement} for each element.\n *\n * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.\n * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.\n * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.\n * @memberof Prism\n * @public\n */\n highlightAllUnder: /* @__PURE__ */ o(function(p, h, g) {\n var w = {\n callback: g,\n container: p,\n selector: 'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'\n };\n a.hooks.run(\"before-highlightall\", w), w.elements = Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)), a.hooks.run(\n \"before-all-elements-highlight\", w);\n for (var b = 0, x; x = w.elements[b++]; )\n a.highlightElement(x, h === !0, w.callback);\n }, \"highlightAllUnder\"),\n /**\n * Highlights the code inside a single element.\n *\n * The following hooks will be run:\n * 1. `before-sanity-check`\n * 2. `before-highlight`\n * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.\n * 4. `before-insert`\n * 5. `after-highlight`\n * 6. `complete`\n *\n * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for\n * the element's language.\n *\n * @param {Element} element The element containing the code.\n * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.\n * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers\n * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is\n * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).\n *\n * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for\n * asynchronous highlighting to work. You can build your own bundle on the\n * [Download page](https://prismjs.com/download.html).\n * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.\n * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.\n * @memberof Prism\n * @public\n */\n highlightElement: /* @__PURE__ */ o(function(p, h, g) {\n var w = a.util.getLanguage(p), b = a.languages[w];\n a.util.setLanguage(p, w);\n var x = p.parentElement;\n x && x.nodeName.toLowerCase() === \"pre\" && a.util.setLanguage(x, w);\n var E = p.textContent, y = {\n element: p,\n language: w,\n grammar: b,\n code: E\n };\n function S(M) {\n y.highlightedCode = M, a.hooks.run(\"before-insert\", y), y.element.innerHTML = y.highlightedCode, a.hooks.run(\"after-highlight\", y),\n a.hooks.run(\"complete\", y), g && g.call(y.element);\n }\n if (o(S, \"insertHighlightedCode\"), a.hooks.run(\"before-sanity-check\", y), x = y.element.parentElement, x && x.nodeName.toLowerCase() ===\n \"pre\" && !x.hasAttribute(\"tabindex\") && x.setAttribute(\"tabindex\", \"0\"), !y.code) {\n a.hooks.run(\"complete\", y), g && g.call(y.element);\n return;\n }\n if (a.hooks.run(\"before-highlight\", y), !y.grammar) {\n S(a.util.encode(y.code));\n return;\n }\n if (h && e.Worker) {\n var L = new Worker(a.filename);\n L.onmessage = function(M) {\n S(M.data);\n }, L.postMessage(JSON.stringify({\n language: y.language,\n code: y.code,\n immediateClose: !0\n }));\n } else\n S(a.highlight(y.code, y.grammar, y.language));\n }, \"highlightElement\"),\n /**\n * Low-level function, only use if you know what you’re doing. It accepts a string of text as input\n * and the language definitions to use, and returns a string with the HTML produced.\n *\n * The following hooks will be run:\n * 1. `before-tokenize`\n * 2. `after-tokenize`\n * 3. `wrap`: On each {@link Token}.\n *\n * @param {string} text A string with the code to be highlighted.\n * @param {Grammar} grammar An object containing the tokens to use.\n *\n * Usually a language definition like `Prism.languages.markup`.\n * @param {string} language The name of the language definition passed to `grammar`.\n * @returns {string} The highlighted HTML.\n * @memberof Prism\n * @public\n * @example\n * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n */\n highlight: /* @__PURE__ */ o(function(p, h, g) {\n var w = {\n code: p,\n grammar: h,\n language: g\n };\n if (a.hooks.run(\"before-tokenize\", w), !w.grammar)\n throw new Error('The language \"' + w.language + '\" has no grammar.');\n return w.tokens = a.tokenize(w.code, w.grammar), a.hooks.run(\"after-tokenize\", w), i.stringify(a.util.encode(w.tokens), w.language);\n }, \"highlight\"),\n /**\n * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n * and the language definitions to use, and returns an array with the tokenized code.\n *\n * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n *\n * This method could be useful in other contexts as well, as a very crude parser.\n *\n * @param {string} text A string with the code to be highlighted.\n * @param {Grammar} grammar An object containing the tokens to use.\n *\n * Usually a language definition like `Prism.languages.markup`.\n * @returns {TokenStream} An array of strings and tokens, a token stream.\n * @memberof Prism\n * @public\n * @example\n * let code = `var foo = 0;`;\n * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n * tokens.forEach(token => {\n * if (token instanceof Prism.Token && token.type === 'number') {\n * console.log(`Found numeric literal: ${token.content}`);\n * }\n * });\n */\n tokenize: /* @__PURE__ */ o(function(p, h) {\n var g = h.rest;\n if (g) {\n for (var w in g)\n h[w] = g[w];\n delete h.rest;\n }\n var b = new s();\n return u(b, b.head, p), l(p, b, h, b.head, 0), d(b);\n }, \"tokenize\"),\n /**\n * @namespace\n * @memberof Prism\n * @public\n */\n hooks: {\n all: {},\n /**\n * Adds the given callback to the list of callbacks for the given hook.\n *\n * The callback will be invoked when the hook it is registered for is run.\n * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n *\n * One callback function can be registered to multiple hooks and the same hook multiple times.\n *\n * @param {string} name The name of the hook.\n * @param {HookCallback} callback The callback function which is given environment variables.\n * @public\n */\n add: /* @__PURE__ */ o(function(p, h) {\n var g = a.hooks.all;\n g[p] = g[p] || [], g[p].push(h);\n }, \"add\"),\n /**\n * Runs a hook invoking all registered callbacks with the given environment variables.\n *\n * Callbacks will be invoked synchronously and in the order in which they were registered.\n *\n * @param {string} name The name of the hook.\n * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n * @public\n */\n run: /* @__PURE__ */ o(function(p, h) {\n var g = a.hooks.all[p];\n if (!(!g || !g.length))\n for (var w = 0, b; b = g[w++]; )\n b(h);\n }, \"run\")\n },\n Token: i\n };\n e.Prism = a;\n function i(p, h, g, w) {\n this.type = p, this.content = h, this.alias = g, this.length = (w || \"\").length | 0;\n }\n o(i, \"Token\"), i.stringify = /* @__PURE__ */ o(function p(h, g) {\n if (typeof h == \"string\")\n return h;\n if (Array.isArray(h)) {\n var w = \"\";\n return h.forEach(function(S) {\n w += p(S, g);\n }), w;\n }\n var b = {\n type: h.type,\n content: p(h.content, g),\n tag: \"span\",\n classes: [\"token\", h.type],\n attributes: {},\n language: g\n }, x = h.alias;\n x && (Array.isArray(x) ? Array.prototype.push.apply(b.classes, x) : b.classes.push(x)), a.hooks.run(\"wrap\", b);\n var E = \"\";\n for (var y in b.attributes)\n E += \" \" + y + '=\"' + (b.attributes[y] || \"\").replace(/\"/g, \"&quot;\") + '\"';\n return \"<\" + b.tag + ' class=\"' + b.classes.join(\" \") + '\"' + E + \">\" + b.content + \"</\" + b.tag + \">\";\n }, \"stringify\");\n function c(p, h, g, w) {\n p.lastIndex = h;\n var b = p.exec(g);\n if (b && w && b[1]) {\n var x = b[1].length;\n b.index += x, b[0] = b[0].slice(x);\n }\n return b;\n }\n o(c, \"matchPattern\");\n function l(p, h, g, w, b, x) {\n for (var E in g)\n if (!(!g.hasOwnProperty(E) || !g[E])) {\n var y = g[E];\n y = Array.isArray(y) ? y : [y];\n for (var S = 0; S < y.length; ++S) {\n if (x && x.cause == E + \",\" + S)\n return;\n var L = y[S], M = L.inside, A = !!L.lookbehind, P = !!L.greedy, _ = L.alias;\n if (P && !L.pattern.global) {\n var F = L.pattern.toString().match(/[imsuy]*$/)[0];\n L.pattern = RegExp(L.pattern.source, F + \"g\");\n }\n for (var K = L.pattern || L, T = w.next, z = b; T !== h.tail && !(x && z >= x.reach); z += T.value.length, T = T.next) {\n var k = T.value;\n if (h.length > p.length)\n return;\n if (!(k instanceof i)) {\n var V = 1, D;\n if (P) {\n if (D = c(K, z, p, A), !D || D.index >= p.length)\n break;\n var Ee = D.index, j = D.index + D[0].length, O = z;\n for (O += T.value.length; Ee >= O; )\n T = T.next, O += T.value.length;\n if (O -= T.value.length, z = O, T.value instanceof i)\n continue;\n for (var G = T; G !== h.tail && (O < j || typeof G.value == \"string\"); G = G.next)\n V++, O += G.value.length;\n V--, k = p.slice(z, O), D.index -= z;\n } else if (D = c(K, 0, k, A), !D)\n continue;\n var Ee = D.index, pe = D[0], se = k.slice(0, Ee), ue = k.slice(Ee + pe.length), ve = z + k.length;\n x && ve > x.reach && (x.reach = ve);\n var Se = T.prev;\n se && (Se = u(h, Se, se), z += se.length), f(h, Se, V);\n var Ot = new i(E, M ? a.tokenize(pe, M) : pe, _, pe);\n if (T = u(h, Se, Ot), ue && u(h, T, ue), V > 1) {\n var qr = {\n cause: E + \",\" + S,\n reach: ve\n };\n l(p, h, g, T.prev, z, qr), x && qr.reach > x.reach && (x.reach = qr.reach);\n }\n }\n }\n }\n }\n }\n o(l, \"matchGrammar\");\n function s() {\n var p = { value: null, prev: null, next: null }, h = { value: null, prev: p, next: null };\n p.next = h, this.head = p, this.tail = h, this.length = 0;\n }\n o(s, \"LinkedList\");\n function u(p, h, g) {\n var w = h.next, b = { value: g, prev: h, next: w };\n return h.next = b, w.prev = b, p.length++, b;\n }\n o(u, \"addAfter\");\n function f(p, h, g) {\n for (var w = h.next, b = 0; b < g && w !== p.tail; b++)\n w = w.next;\n h.next = w, w.prev = h, p.length -= b;\n }\n o(f, \"removeRange\");\n function d(p) {\n for (var h = [], g = p.head.next; g !== p.tail; )\n h.push(g.value), g = g.next;\n return h;\n }\n if (o(d, \"toArray\"), !e.document)\n return e.addEventListener && (a.disableWorkerMessageHandler || e.addEventListener(\"message\", function(p) {\n var h = JSON.parse(p.data), g = h.language, w = h.code, b = h.immediateClose;\n e.postMessage(a.highlight(w, a.languages[g], g)), b && e.close();\n }, !1)), a;\n var m = a.util.currentScript();\n m && (a.filename = m.src, m.hasAttribute(\"data-manual\") && (a.manual = !0));\n function v() {\n a.manual || a.highlightAll();\n }\n if (o(v, \"highlightAutomaticallyCallback\"), !a.manual) {\n var R = document.readyState;\n R === \"loading\" || R === \"interactive\" && m && m.defer ? document.addEventListener(\"DOMContentLoaded\", v) : window.requestAnimationFrame ?\n window.requestAnimationFrame(v) : window.setTimeout(v, 16);\n }\n return a;\n }(om);\n typeof Vn < \"u\" && Vn.exports && (Vn.exports = Vs);\n typeof global < \"u\" && (global.Prism = Vs);\n});\n\n// ../node_modules/refractor/lang/markup.js\nvar Sa = H((S9, Ws) => {\n \"use strict\";\n Ws.exports = Ea;\n Ea.displayName = \"markup\";\n Ea.aliases = [\"html\", \"mathml\", \"svg\", \"xml\", \"ssml\", \"atom\", \"rss\"];\n function Ea(e) {\n e.languages.markup = {\n comment: {\n pattern: /<!--(?:(?!<!--)[\\s\\S])*?-->/,\n greedy: !0\n },\n prolog: {\n pattern: /<\\?[\\s\\S]+?\\?>/,\n greedy: !0\n },\n doctype: {\n // https://www.w3.org/TR/xml/#NT-doctypedecl\n pattern: /<!DOCTYPE(?:[^>\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\\]\\s*)?>/i,\n greedy: !0,\n inside: {\n \"internal-subset\": {\n pattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n lookbehind: !0,\n greedy: !0,\n inside: null\n // see below\n },\n string: {\n pattern: /\"[^\"]*\"|'[^']*'/,\n greedy: !0\n },\n punctuation: /^<!|>$|[[\\]]/,\n \"doctype-tag\": /^DOCTYPE/i,\n name: /[^\\s<>'\"]+/\n }\n },\n cdata: {\n pattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n greedy: !0\n },\n tag: {\n pattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n greedy: !0,\n inside: {\n tag: {\n pattern: /^<\\/?[^\\s>\\/]+/,\n inside: {\n punctuation: /^<\\/?/,\n namespace: /^[^\\s>\\/:]+:/\n }\n },\n \"special-attr\": [],\n \"attr-value\": {\n pattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n inside: {\n punctuation: [\n {\n pattern: /^=/,\n alias: \"attr-equals\"\n },\n /\"|'/\n ]\n }\n },\n punctuation: /\\/?>/,\n \"attr-name\": {\n pattern: /[^\\s>\\/]+/,\n inside: {\n namespace: /^[^\\s>\\/:]+:/\n }\n }\n }\n },\n entity: [\n {\n pattern: /&[\\da-z]{1,8};/i,\n alias: \"named-entity\"\n },\n /&#x?[\\da-f]{1,8};/i\n ]\n }, e.languages.markup.tag.inside[\"attr-value\"].inside.entity = e.languages.markup.entity, e.languages.markup.doctype.inside[\"internal-su\\\nbset\"].inside = e.languages.markup, e.hooks.add(\"wrap\", function(t) {\n t.type === \"entity\" && (t.attributes.title = t.content.value.replace(/&amp;/, \"&\"));\n }), Object.defineProperty(e.languages.markup.tag, \"addInlined\", {\n /**\n * Adds an inlined language to markup.\n *\n * An example of an inlined language is CSS with `<style>` tags.\n *\n * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as\n * case insensitive.\n * @param {string} lang The language key.\n * @example\n * addInlined('style', 'css');\n */\n value: /* @__PURE__ */ o(function(r, n) {\n var a = {};\n a[\"language-\" + n] = {\n pattern: /(^<!\\[CDATA\\[)[\\s\\S]+?(?=\\]\\]>$)/i,\n lookbehind: !0,\n inside: e.languages[n]\n }, a.cdata = /^<!\\[CDATA\\[|\\]\\]>$/i;\n var i = {\n \"included-cdata\": {\n pattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n inside: a\n }\n };\n i[\"language-\" + n] = {\n pattern: /[\\s\\S]+/,\n inside: e.languages[n]\n };\n var c = {};\n c[r] = {\n pattern: RegExp(\n /(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)/.source.replace(\n /__/g,\n function() {\n return r;\n }\n ),\n \"i\"\n ),\n lookbehind: !0,\n greedy: !0,\n inside: i\n }, e.languages.insertBefore(\"markup\", \"cdata\", c);\n }, \"addInlined\")\n }), Object.defineProperty(e.languages.markup.tag, \"addAttribute\", {\n /**\n * Adds an pattern to highlight languages embedded in HTML attributes.\n *\n * An example of an inlined language is CSS with `style` attributes.\n *\n * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as\n * case insensitive.\n * @param {string} lang The language key.\n * @example\n * addAttribute('style', 'css');\n */\n value: /* @__PURE__ */ o(function(t, r) {\n e.languages.markup.tag.inside[\"special-attr\"].push({\n pattern: RegExp(\n /(^|[\"'\\s])/.source + \"(?:\" + t + \")\" + /\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\n \"i\"\n ),\n lookbehind: !0,\n inside: {\n \"attr-name\": /^[^\\s=]+/,\n \"attr-value\": {\n pattern: /=[\\s\\S]+/,\n inside: {\n value: {\n pattern: /(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,\n lookbehind: !0,\n alias: [r, \"language-\" + r],\n inside: e.languages[r]\n },\n punctuation: [\n {\n pattern: /^=/,\n alias: \"attr-equals\"\n },\n /\"|'/\n ]\n }\n }\n }\n });\n }, \"value\")\n }), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml =\n e.languages.extend(\"markup\", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.\n xml;\n }\n o(Ea, \"markup\");\n});\n\n// ../node_modules/refractor/lang/css.js\nvar Ma = H((M9, Us) => {\n \"use strict\";\n Us.exports = Ca;\n Ca.displayName = \"css\";\n Ca.aliases = [];\n function Ca(e) {\n (function(t) {\n var r = /(?:\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"|'(?:\\\\(?:\\r\\n|[\\s\\S])|[^'\\\\\\r\\n])*')/;\n t.languages.css = {\n comment: /\\/\\*[\\s\\S]*?\\*\\//,\n atrule: {\n pattern: /@[\\w-](?:[^;{\\s]|\\s+(?![\\s{]))*(?:;|(?=\\s*\\{))/,\n inside: {\n rule: /^@[\\w-]+/,\n \"selector-function-argument\": {\n pattern: /(\\bselector\\s*\\(\\s*(?![\\s)]))(?:[^()\\s]|\\s+(?![\\s)])|\\((?:[^()]|\\([^()]*\\))*\\))+(?=\\s*\\))/,\n lookbehind: !0,\n alias: \"selector\"\n },\n keyword: {\n pattern: /(^|[^\\w-])(?:and|not|only|or)(?![\\w-])/,\n lookbehind: !0\n }\n // See rest below\n }\n },\n url: {\n // https://drafts.csswg.org/css-values-3/#urls\n pattern: RegExp(\n \"\\\\burl\\\\((?:\" + r.source + \"|\" + /(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*/.source + \")\\\\)\",\n \"i\"\n ),\n greedy: !0,\n inside: {\n function: /^url/i,\n punctuation: /^\\(|\\)$/,\n string: {\n pattern: RegExp(\"^\" + r.source + \"$\"),\n alias: \"url\"\n }\n }\n },\n selector: {\n pattern: RegExp(\n `(^|[{}\\\\s])[^{}\\\\s](?:[^{};\"'\\\\s]|\\\\s+(?![\\\\s{])|` + r.source + \")*(?=\\\\s*\\\\{)\"\n ),\n lookbehind: !0\n },\n string: {\n pattern: r,\n greedy: !0\n },\n property: {\n pattern: /(^|[^-\\w\\xA0-\\uFFFF])(?!\\s)[-_a-z\\xA0-\\uFFFF](?:(?!\\s)[-\\w\\xA0-\\uFFFF])*(?=\\s*:)/i,\n lookbehind: !0\n },\n important: /!important\\b/i,\n function: {\n pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\\()/i,\n lookbehind: !0\n },\n punctuation: /[(){};:,]/\n }, t.languages.css.atrule.inside.rest = t.languages.css;\n var n = t.languages.markup;\n n && (n.tag.addInlined(\"style\", \"css\"), n.tag.addAttribute(\"style\", \"css\"));\n })(e);\n }\n o(Ca, \"css\");\n});\n\n// ../node_modules/refractor/lang/clike.js\nvar Gs = H((A9, qs) => {\n \"use strict\";\n qs.exports = La;\n La.displayName = \"clike\";\n La.aliases = [];\n function La(e) {\n e.languages.clike = {\n comment: [\n {\n pattern: /(^|[^\\\\])\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n lookbehind: !0,\n greedy: !0\n },\n {\n pattern: /(^|[^\\\\:])\\/\\/.*/,\n lookbehind: !0,\n greedy: !0\n }\n ],\n string: {\n pattern: /([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n greedy: !0\n },\n \"class-name\": {\n pattern: /(\\b(?:class|extends|implements|instanceof|interface|new|trait)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,\n lookbehind: !0,\n inside: {\n punctuation: /[.\\\\]/\n }\n },\n keyword: /\\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\\b/,\n boolean: /\\b(?:false|true)\\b/,\n function: /\\b\\w+(?=\\()/,\n number: /\\b0x[\\da-f]+\\b|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:e[+-]?\\d+)?/i,\n operator: /[<>]=?|[!=]=?=?|--?|\\+\\+?|&&?|\\|\\|?|[?*/~^%]/,\n punctuation: /[{}[\\];(),.:]/\n };\n }\n o(La, \"clike\");\n});\n\n// ../node_modules/refractor/lang/javascript.js\nvar Ys = H((z9, Xs) => {\n \"use strict\";\n Xs.exports = Aa;\n Aa.displayName = \"javascript\";\n Aa.aliases = [\"js\"];\n function Aa(e) {\n e.languages.javascript = e.languages.extend(\"clike\", {\n \"class-name\": [\n e.languages.clike[\"class-name\"],\n {\n pattern: /(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$A-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\.(?:constructor|prototype))/,\n lookbehind: !0\n }\n ],\n keyword: [\n {\n pattern: /((?:^|\\})\\s*)catch\\b/,\n lookbehind: !0\n },\n {\n pattern: /(^|[^.]|\\.\\.\\.\\s*)\\b(?:as|assert(?=\\s*\\{)|async(?=\\s*(?:function\\b|\\(|[$\\w\\xA0-\\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\\s*(?:\\{|$))|for|from(?=\\s*(?:['\"]|$))|function|(?:get|set)(?=\\s*(?:[#\\[$\\w\\xA0-\\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\\b/,\n lookbehind: !0\n }\n ],\n // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)\n function: /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*(?:\\.\\s*(?:apply|bind|call)\\s*)?\\()/,\n number: {\n pattern: RegExp(\n /(^|[^\\w$])/.source + \"(?:\" + // constant\n (/NaN|Infinity/.source + \"|\" + // binary integer\n /0[bB][01]+(?:_[01]+)*n?/.source + \"|\" + // octal integer\n /0[oO][0-7]+(?:_[0-7]+)*n?/.source + \"|\" + // hexadecimal integer\n /0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?/.source + \"|\" + // decimal bigint\n /\\d+(?:_\\d+)*n/.source + \"|\" + // decimal number (integer or float) but no bigint\n /(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?/.source) + \")\" + /(?![\\w$])/.source\n ),\n lookbehind: !0\n },\n operator: /--|\\+\\+|\\*\\*=?|=>|&&=?|\\|\\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\\.{3}|\\?\\?=?|\\?\\.?|[~:]/\n }), e.languages.javascript[\"class-name\"][0].pattern = /(\\b(?:class|extends|implements|instanceof|interface|new)\\s+)[\\w.\\\\]+/, e.languages.\n insertBefore(\"javascript\", \"keyword\", {\n regex: {\n // eslint-disable-next-line regexp/no-dupe-characters-character-class\n pattern: /((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))/,\n lookbehind: !0,\n greedy: !0,\n inside: {\n \"regex-source\": {\n pattern: /^(\\/)[\\s\\S]+(?=\\/[a-z]*$)/,\n lookbehind: !0,\n alias: \"language-regex\",\n inside: e.languages.regex\n },\n \"regex-delimiter\": /^\\/|\\/$/,\n \"regex-flags\": /^[a-z]+$/\n }\n },\n // This must be declared before keyword because we use \"function\" inside the look-forward\n \"function-variable\": {\n pattern: /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*[=:]\\s*(?:async\\s*)?(?:\\bfunction\\b|(?:\\((?:[^()]|\\([^()]*\\))*\\)|(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)\\s*=>))/,\n alias: \"function\"\n },\n parameter: [\n {\n pattern: /(function(?:\\s+(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)?\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\))/,\n lookbehind: !0,\n inside: e.languages.javascript\n },\n {\n pattern: /(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$a-z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*=>)/i,\n lookbehind: !0,\n inside: e.languages.javascript\n },\n {\n pattern: /(\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*=>)/,\n lookbehind: !0,\n inside: e.languages.javascript\n },\n {\n pattern: /((?:\\b|\\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\\w\\xA0-\\uFFFF]))(?:(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*\\s*)\\(\\s*|\\]\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*\\{)/,\n lookbehind: !0,\n inside: e.languages.javascript\n }\n ],\n constant: /\\b[A-Z](?:[A-Z_]|\\dx?)*\\b/\n }), e.languages.insertBefore(\"javascript\", \"string\", {\n hashbang: {\n pattern: /^#!.*/,\n greedy: !0,\n alias: \"comment\"\n },\n \"template-string\": {\n pattern: /`(?:\\\\[\\s\\S]|\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}|(?!\\$\\{)[^\\\\`])*`/,\n greedy: !0,\n inside: {\n \"template-punctuation\": {\n pattern: /^`|`$/,\n alias: \"string\"\n },\n interpolation: {\n pattern: /((?:^|[^\\\\])(?:\\\\{2})*)\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}/,\n lookbehind: !0,\n inside: {\n \"interpolation-punctuation\": {\n pattern: /^\\$\\{|\\}$/,\n alias: \"punctuation\"\n },\n rest: e.languages.javascript\n }\n },\n string: /[\\s\\S]+/\n }\n },\n \"string-property\": {\n pattern: /((?:^|[,{])[ \\t]*)([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\2)[^\\\\\\r\\n])*\\2(?=\\s*:)/m,\n lookbehind: !0,\n greedy: !0,\n alias: \"property\"\n }\n }), e.languages.insertBefore(\"javascript\", \"operator\", {\n \"literal-property\": {\n pattern: /((?:^|[,{])[ \\t]*)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*:)/m,\n lookbehind: !0,\n alias: \"property\"\n }\n }), e.languages.markup && (e.languages.markup.tag.addInlined(\"script\", \"javascript\"), e.languages.markup.tag.addAttribute(\n /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.\n source,\n \"javascript\"\n )), e.languages.js = e.languages.javascript;\n }\n o(Aa, \"javascript\");\n});\n\n// ../node_modules/refractor/core.js\nvar Qs = H((H9, Js) => {\n \"use strict\";\n var tn = typeof globalThis == \"object\" ? globalThis : typeof self == \"object\" ? self : typeof window == \"object\" ? window : typeof global ==\n \"object\" ? global : {}, am = Rm();\n tn.Prism = { manual: !0, disableWorkerMessageHandler: !0 };\n var im = gs(), lm = $s(), Zs = js(), cm = Sa(), sm = Ma(), um = Gs(), fm = Ys();\n am();\n var Ia = {}.hasOwnProperty;\n function Ks() {\n }\n o(Ks, \"Refractor\");\n Ks.prototype = Zs;\n var oe = new Ks();\n Js.exports = oe;\n oe.highlight = pm;\n oe.register = rn;\n oe.alias = dm;\n oe.registered = mm;\n oe.listLanguages = hm;\n rn(cm);\n rn(sm);\n rn(um);\n rn(fm);\n oe.util.encode = wm;\n oe.Token.stringify = gm;\n function rn(e) {\n if (typeof e != \"function\" || !e.displayName)\n throw new Error(\"Expected `function` for `grammar`, got `\" + e + \"`\");\n oe.languages[e.displayName] === void 0 && e(oe);\n }\n o(rn, \"register\");\n function dm(e, t) {\n var r = oe.languages, n = e, a, i, c, l;\n t && (n = {}, n[e] = t);\n for (a in n)\n for (i = n[a], i = typeof i == \"string\" ? [i] : i, c = i.length, l = -1; ++l < c; )\n r[i[l]] = r[a];\n }\n o(dm, \"alias\");\n function pm(e, t) {\n var r = Zs.highlight, n;\n if (typeof e != \"string\")\n throw new Error(\"Expected `string` for `value`, got `\" + e + \"`\");\n if (oe.util.type(t) === \"Object\")\n n = t, t = null;\n else {\n if (typeof t != \"string\")\n throw new Error(\"Expected `string` for `name`, got `\" + t + \"`\");\n if (Ia.call(oe.languages, t))\n n = oe.languages[t];\n else\n throw new Error(\"Unknown language: `\" + t + \"` is not registered\");\n }\n return r.call(this, e, n, t);\n }\n o(pm, \"highlight\");\n function mm(e) {\n if (typeof e != \"string\")\n throw new Error(\"Expected `string` for `language`, got `\" + e + \"`\");\n return Ia.call(oe.languages, e);\n }\n o(mm, \"registered\");\n function hm() {\n var e = oe.languages, t = [], r;\n for (r in e)\n Ia.call(e, r) && typeof e[r] == \"object\" && t.push(r);\n return t;\n }\n o(hm, \"listLanguages\");\n function gm(e, t, r) {\n var n;\n return typeof e == \"string\" ? { type: \"text\", value: e } : oe.util.type(e) === \"Array\" ? vm(e, t) : (n = {\n type: e.type,\n content: oe.Token.stringify(e.content, t, r),\n tag: \"span\",\n classes: [\"token\", e.type],\n attributes: {},\n language: t,\n parent: r\n }, e.alias && (n.classes = n.classes.concat(e.alias)), oe.hooks.run(\"wrap\", n), im(\n n.tag + \".\" + n.classes.join(\".\"),\n bm(n.attributes),\n n.content\n ));\n }\n o(gm, \"stringify\");\n function vm(e, t) {\n for (var r = [], n = e.length, a = -1, i; ++a < n; )\n i = e[a], i !== \"\" && i !== null && i !== void 0 && r.push(i);\n for (a = -1, n = r.length; ++a < n; )\n i = r[a], r[a] = oe.Token.stringify(i, t, r);\n return r;\n }\n o(vm, \"stringifyAll\");\n function wm(e) {\n return e;\n }\n o(wm, \"encode\");\n function bm(e) {\n var t;\n for (t in e)\n e[t] = lm(e[t]);\n return e;\n }\n o(bm, \"attributes\");\n function Rm() {\n var e = \"Prism\" in tn, t = e ? tn.Prism : void 0;\n return r;\n function r() {\n e ? tn.Prism = t : delete tn.Prism, e = void 0, t = void 0;\n }\n }\n o(Rm, \"capture\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/prism-light.js\nvar jn, za, Wn, e1 = C(() => {\n gc();\n jn = me(Qs()), za = ia(jn.default, {});\n za.registerLanguage = function(e, t) {\n return jn.default.register(t);\n };\n za.alias = function(e, t) {\n return jn.default.alias(e, t);\n };\n Wn = za;\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/index.js\nvar t1 = C(() => {\n aa();\n});\n\n// ../node_modules/refractor/lang/bash.js\nvar n1 = H((D9, r1) => {\n \"use strict\";\n r1.exports = Ta;\n Ta.displayName = \"bash\";\n Ta.aliases = [\"shell\"];\n function Ta(e) {\n (function(t) {\n var r = \"\\\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE\\\n|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|G\\\nDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HO\\\nSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHON\\\nE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OST\\\nYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS\\\n|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRE\\\nNT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_\\\nSESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\\\b\", n = {\n pattern: /(^([\"']?)\\w+\\2)[ \\t]+\\S.*/,\n lookbehind: !0,\n alias: \"punctuation\",\n // this looks reasonably well in all themes\n inside: null\n // see below\n }, a = {\n bash: n,\n environment: {\n pattern: RegExp(\"\\\\$\" + r),\n alias: \"constant\"\n },\n variable: [\n // [0]: Arithmetic Environment\n {\n pattern: /\\$?\\(\\([\\s\\S]+?\\)\\)/,\n greedy: !0,\n inside: {\n // If there is a $ sign at the beginning highlight $(( and )) as variable\n variable: [\n {\n pattern: /(^\\$\\(\\([\\s\\S]+)\\)\\)/,\n lookbehind: !0\n },\n /^\\$\\(\\(/\n ],\n number: /\\b0x[\\dA-Fa-f]+\\b|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:[Ee]-?\\d+)?/,\n // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic\n operator: /--|\\+\\+|\\*\\*=?|<<=?|>>=?|&&|\\|\\||[=!+\\-*/%<>^&|]=?|[?~:]/,\n // If there is no $ sign at the beginning highlight (( and )) as punctuation\n punctuation: /\\(\\(?|\\)\\)?|,|;/\n }\n },\n // [1]: Command Substitution\n {\n pattern: /\\$\\((?:\\([^)]+\\)|[^()])+\\)|`[^`]+`/,\n greedy: !0,\n inside: {\n variable: /^\\$\\(|^`|\\)$|`$/\n }\n },\n // [2]: Brace expansion\n {\n pattern: /\\$\\{[^}]+\\}/,\n greedy: !0,\n inside: {\n operator: /:[-=?+]?|[!\\/]|##?|%%?|\\^\\^?|,,?/,\n punctuation: /[\\[\\]]/,\n environment: {\n pattern: RegExp(\"(\\\\{)\" + r),\n lookbehind: !0,\n alias: \"constant\"\n }\n }\n },\n /\\$(?:\\w+|[#?*!@$])/\n ],\n // Escape sequences from echo and printf's manuals, and escaped quotes.\n entity: /\\\\(?:[abceEfnrtv\\\\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/\n };\n t.languages.bash = {\n shebang: {\n pattern: /^#!\\s*\\/.*/,\n alias: \"important\"\n },\n comment: {\n pattern: /(^|[^\"{\\\\$])#.*/,\n lookbehind: !0\n },\n \"function-name\": [\n // a) function foo {\n // b) foo() {\n // c) function foo() {\n // but not “foo {”\n {\n // a) and c)\n pattern: /(\\bfunction\\s+)[\\w-]+(?=(?:\\s*\\(?:\\s*\\))?\\s*\\{)/,\n lookbehind: !0,\n alias: \"function\"\n },\n {\n // b)\n pattern: /\\b[\\w-]+(?=\\s*\\(\\s*\\)\\s*\\{)/,\n alias: \"function\"\n }\n ],\n // Highlight variable names as variables in for and select beginnings.\n \"for-or-select\": {\n pattern: /(\\b(?:for|select)\\s+)\\w+(?=\\s+in\\s)/,\n alias: \"variable\",\n lookbehind: !0\n },\n // Highlight variable names as variables in the left-hand part\n // of assignments (“=” and “+=”).\n \"assign-left\": {\n pattern: /(^|[\\s;|&]|[<>]\\()\\w+(?=\\+?=)/,\n inside: {\n environment: {\n pattern: RegExp(\"(^|[\\\\s;|&]|[<>]\\\\()\" + r),\n lookbehind: !0,\n alias: \"constant\"\n }\n },\n alias: \"variable\",\n lookbehind: !0\n },\n string: [\n // Support for Here-documents https://en.wikipedia.org/wiki/Here_document\n {\n pattern: /((?:^|[^<])<<-?\\s*)(\\w+)\\s[\\s\\S]*?(?:\\r?\\n|\\r)\\2/,\n lookbehind: !0,\n greedy: !0,\n inside: a\n },\n // Here-document with quotes around the tag\n // → No expansion (so no “inside”).\n {\n pattern: /((?:^|[^<])<<-?\\s*)([\"'])(\\w+)\\2\\s[\\s\\S]*?(?:\\r?\\n|\\r)\\3/,\n lookbehind: !0,\n greedy: !0,\n inside: {\n bash: n\n }\n },\n // “Normal” string\n {\n // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html\n pattern: /(^|[^\\\\](?:\\\\\\\\)*)\"(?:\\\\[\\s\\S]|\\$\\([^)]+\\)|\\$(?!\\()|`[^`]+`|[^\"\\\\`$])*\"/,\n lookbehind: !0,\n greedy: !0,\n inside: a\n },\n {\n // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html\n pattern: /(^|[^$\\\\])'[^']*'/,\n lookbehind: !0,\n greedy: !0\n },\n {\n // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html\n pattern: /\\$'(?:[^'\\\\]|\\\\[\\s\\S])*'/,\n greedy: !0,\n inside: {\n entity: a.entity\n }\n }\n ],\n environment: {\n pattern: RegExp(\"\\\\$?\" + r),\n alias: \"constant\"\n },\n variable: a.variable,\n function: {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\\s;|&])/,\n lookbehind: !0\n },\n keyword: {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\\s;|&])/,\n lookbehind: !0\n },\n // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html\n builtin: {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:\\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\\s;|&])/,\n lookbehind: !0,\n // Alias added to make those easier to distinguish from strings.\n alias: \"class-name\"\n },\n boolean: {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:false|true)(?=$|[)\\s;|&])/,\n lookbehind: !0\n },\n \"file-descriptor\": {\n pattern: /\\B&\\d\\b/,\n alias: \"important\"\n },\n operator: {\n // Lots of redirections here, but not just that.\n pattern: /\\d?<>|>\\||\\+=|=[=~]?|!=?|<<[<-]?|[&\\d]?>>|\\d[<>]&?|[<>][&=]?|&[>&]?|\\|[&|]?/,\n inside: {\n \"file-descriptor\": {\n pattern: /^\\d/,\n alias: \"important\"\n }\n }\n },\n punctuation: /\\$?\\(\\(?|\\)\\)?|\\.\\.|[{}[\\];\\\\]/,\n number: {\n pattern: /(^|\\s)(?:[1-9]\\d*|0)(?:[.,]\\d+)?\\b/,\n lookbehind: !0\n }\n }, n.inside = t.languages.bash;\n for (var i = [\n \"comment\",\n \"function-name\",\n \"for-or-select\",\n \"assign-left\",\n \"string\",\n \"environment\",\n \"function\",\n \"keyword\",\n \"builtin\",\n \"boolean\",\n \"file-descriptor\",\n \"operator\",\n \"punctuation\",\n \"number\"\n ], c = a.variable[1].inside, l = 0; l < i.length; l++)\n c[i[l]] = t.languages.bash[i[l]];\n t.languages.shell = t.languages.bash;\n })(e);\n }\n o(Ta, \"bash\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js\nvar o1, a1, i1 = C(() => {\n o1 = me(n1()), a1 = o1.default;\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js\nvar l1, c1, s1 = C(() => {\n l1 = me(Ma()), c1 = l1.default;\n});\n\n// ../node_modules/refractor/lang/graphql.js\nvar f1 = H((V9, u1) => {\n \"use strict\";\n u1.exports = Ha;\n Ha.displayName = \"graphql\";\n Ha.aliases = [];\n function Ha(e) {\n e.languages.graphql = {\n comment: /#.*/,\n description: {\n pattern: /(?:\"\"\"(?:[^\"]|(?!\"\"\")\")*\"\"\"|\"(?:\\\\.|[^\\\\\"\\r\\n])*\")(?=\\s*[a-z_])/i,\n greedy: !0,\n alias: \"string\",\n inside: {\n \"language-markdown\": {\n pattern: /(^\"(?:\"\")?)(?!\\1)[\\s\\S]+(?=\\1$)/,\n lookbehind: !0,\n inside: e.languages.markdown\n }\n }\n },\n string: {\n pattern: /\"\"\"(?:[^\"]|(?!\"\"\")\")*\"\"\"|\"(?:\\\\.|[^\\\\\"\\r\\n])*\"/,\n greedy: !0\n },\n number: /(?:\\B-|\\b)\\d+(?:\\.\\d+)?(?:e[+-]?\\d+)?\\b/i,\n boolean: /\\b(?:false|true)\\b/,\n variable: /\\$[a-z_]\\w*/i,\n directive: {\n pattern: /@[a-z_]\\w*/i,\n alias: \"function\"\n },\n \"attr-name\": {\n pattern: /\\b[a-z_]\\w*(?=\\s*(?:\\((?:[^()\"]|\"(?:\\\\.|[^\\\\\"\\r\\n])*\")*\\))?:)/i,\n greedy: !0\n },\n \"atom-input\": {\n pattern: /\\b[A-Z]\\w*Input\\b/,\n alias: \"class-name\"\n },\n scalar: /\\b(?:Boolean|Float|ID|Int|String)\\b/,\n constant: /\\b[A-Z][A-Z_\\d]*\\b/,\n \"class-name\": {\n pattern: /(\\b(?:enum|implements|interface|on|scalar|type|union)\\s+|&\\s*|:\\s*|\\[)[A-Z_]\\w*/,\n lookbehind: !0\n },\n fragment: {\n pattern: /(\\bfragment\\s+|\\.{3}\\s*(?!on\\b))[a-zA-Z_]\\w*/,\n lookbehind: !0,\n alias: \"function\"\n },\n \"definition-mutation\": {\n pattern: /(\\bmutation\\s+)[a-zA-Z_]\\w*/,\n lookbehind: !0,\n alias: \"function\"\n },\n \"definition-query\": {\n pattern: /(\\bquery\\s+)[a-zA-Z_]\\w*/,\n lookbehind: !0,\n alias: \"function\"\n },\n keyword: /\\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\\b/,\n operator: /[!=|&]|\\.{3}/,\n \"property-query\": /\\w+(?=\\s*\\()/,\n object: /\\w+(?=\\s*\\{)/,\n punctuation: /[!(){}\\[\\]:=,]/,\n property: /\\w+/\n }, e.hooks.add(\"after-tokenize\", /* @__PURE__ */ o(function(r) {\n if (r.language !== \"graphql\")\n return;\n var n = r.tokens.filter(function(h) {\n return typeof h != \"string\" && h.type !== \"comment\" && h.type !== \"scalar\";\n }), a = 0;\n function i(h) {\n return n[a + h];\n }\n o(i, \"getToken\");\n function c(h, g) {\n g = g || 0;\n for (var w = 0; w < h.length; w++) {\n var b = i(w + g);\n if (!b || b.type !== h[w])\n return !1;\n }\n return !0;\n }\n o(c, \"isTokenType\");\n function l(h, g) {\n for (var w = 1, b = a; b < n.length; b++) {\n var x = n[b], E = x.content;\n if (x.type === \"punctuation\" && typeof E == \"string\") {\n if (h.test(E))\n w++;\n else if (g.test(E) && (w--, w === 0))\n return b;\n }\n }\n return -1;\n }\n o(l, \"findClosingBracket\");\n function s(h, g) {\n var w = h.alias;\n w ? Array.isArray(w) || (h.alias = w = [w]) : h.alias = w = [], w.push(g);\n }\n for (o(s, \"addAlias\"); a < n.length; ) {\n var u = n[a++];\n if (u.type === \"keyword\" && u.content === \"mutation\") {\n var f = [];\n if (c([\"definition-mutation\", \"punctuation\"]) && i(1).content === \"(\") {\n a += 2;\n var d = l(/^\\($/, /^\\)$/);\n if (d === -1)\n continue;\n for (; a < d; a++) {\n var m = i(0);\n m.type === \"variable\" && (s(m, \"variable-input\"), f.push(m.content));\n }\n a = d + 1;\n }\n if (c([\"punctuation\", \"property-query\"]) && i(0).content === \"{\" && (a++, s(i(0), \"property-mutation\"), f.length > 0)) {\n var v = l(/^\\{$/, /^\\}$/);\n if (v === -1)\n continue;\n for (var R = a; R < v; R++) {\n var p = n[R];\n p.type === \"variable\" && f.indexOf(p.content) >= 0 && s(p, \"variable-input\");\n }\n }\n }\n }\n }, \"afterTokenizeGraphql\"));\n }\n o(Ha, \"graphql\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js\nvar d1, p1, m1 = C(() => {\n d1 = me(f1()), p1 = d1.default;\n});\n\n// ../node_modules/refractor/lang/js-extras.js\nvar g1 = H((U9, h1) => {\n \"use strict\";\n h1.exports = Pa;\n Pa.displayName = \"jsExtras\";\n Pa.aliases = [];\n function Pa(e) {\n (function(t) {\n t.languages.insertBefore(\"javascript\", \"function-variable\", {\n \"method-variable\": {\n pattern: RegExp(\n \"(\\\\.\\\\s*)\" + t.languages.javascript[\"function-variable\"].pattern.source\n ),\n lookbehind: !0,\n alias: [\"function-variable\", \"method\", \"function\", \"property-access\"]\n }\n }), t.languages.insertBefore(\"javascript\", \"function\", {\n method: {\n pattern: RegExp(\n \"(\\\\.\\\\s*)\" + t.languages.javascript.function.source\n ),\n lookbehind: !0,\n alias: [\"function\", \"property-access\"]\n }\n }), t.languages.insertBefore(\"javascript\", \"constant\", {\n \"known-class-name\": [\n {\n // standard built-ins\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects\n pattern: /\\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\\b/,\n alias: \"class-name\"\n },\n {\n // errors\n pattern: /\\b(?:[A-Z]\\w*)Error\\b/,\n alias: \"class-name\"\n }\n ]\n });\n function r(s, u) {\n return RegExp(\n s.replace(/<ID>/g, function() {\n return /(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*/.source;\n }),\n u\n );\n }\n o(r, \"withId\"), t.languages.insertBefore(\"javascript\", \"keyword\", {\n imports: {\n // https://tc39.es/ecma262/#sec-imports\n pattern: r(\n /(\\bimport\\b\\s*)(?:<ID>(?:\\s*,\\s*(?:\\*\\s*as\\s+<ID>|\\{[^{}]*\\}))?|\\*\\s*as\\s+<ID>|\\{[^{}]*\\})(?=\\s*\\bfrom\\b)/.source\n ),\n lookbehind: !0,\n inside: t.languages.javascript\n },\n exports: {\n // https://tc39.es/ecma262/#sec-exports\n pattern: r(\n /(\\bexport\\b\\s*)(?:\\*(?:\\s*as\\s+<ID>)?(?=\\s*\\bfrom\\b)|\\{[^{}]*\\})/.source\n ),\n lookbehind: !0,\n inside: t.languages.javascript\n }\n }), t.languages.javascript.keyword.unshift(\n {\n pattern: /\\b(?:as|default|export|from|import)\\b/,\n alias: \"module\"\n },\n {\n pattern: /\\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\\b/,\n alias: \"control-flow\"\n },\n {\n pattern: /\\bnull\\b/,\n alias: [\"null\", \"nil\"]\n },\n {\n pattern: /\\bundefined\\b/,\n alias: \"nil\"\n }\n ), t.languages.insertBefore(\"javascript\", \"operator\", {\n spread: {\n pattern: /\\.{3}/,\n alias: \"operator\"\n },\n arrow: {\n pattern: /=>/,\n alias: \"operator\"\n }\n }), t.languages.insertBefore(\"javascript\", \"punctuation\", {\n \"property-access\": {\n pattern: r(/(\\.\\s*)#?<ID>/.source),\n lookbehind: !0\n },\n \"maybe-class-name\": {\n pattern: /(^|[^$\\w\\xA0-\\uFFFF])[A-Z][$\\w\\xA0-\\uFFFF]+/,\n lookbehind: !0\n },\n dom: {\n // this contains only a few commonly used DOM variables\n pattern: /\\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\\b/,\n alias: \"variable\"\n },\n console: {\n pattern: /\\bconsole(?=\\s*\\.)/,\n alias: \"class-name\"\n }\n });\n for (var n = [\n \"function\",\n \"function-variable\",\n \"method\",\n \"method-variable\",\n \"property-access\"\n ], a = 0; a < n.length; a++) {\n var i = n[a], c = t.languages.javascript[i];\n t.util.type(c) === \"RegExp\" && (c = t.languages.javascript[i] = {\n pattern: c\n });\n var l = c.inside || {};\n c.inside = l, l[\"maybe-class-name\"] = /^[A-Z][\\s\\S]*/;\n }\n })(e);\n }\n o(Pa, \"jsExtras\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js\nvar v1, w1, b1 = C(() => {\n v1 = me(g1()), w1 = v1.default;\n});\n\n// ../node_modules/refractor/lang/json.js\nvar y1 = H((X9, R1) => {\n \"use strict\";\n R1.exports = ka;\n ka.displayName = \"json\";\n ka.aliases = [\"webmanifest\"];\n function ka(e) {\n e.languages.json = {\n property: {\n pattern: /(^|[^\\\\])\"(?:\\\\.|[^\\\\\"\\r\\n])*\"(?=\\s*:)/,\n lookbehind: !0,\n greedy: !0\n },\n string: {\n pattern: /(^|[^\\\\])\"(?:\\\\.|[^\\\\\"\\r\\n])*\"(?!\\s*:)/,\n lookbehind: !0,\n greedy: !0\n },\n comment: {\n pattern: /\\/\\/.*|\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n greedy: !0\n },\n number: /-?\\b\\d+(?:\\.\\d+)?(?:e[+-]?\\d+)?\\b/i,\n punctuation: /[{}[\\],]/,\n operator: /:/,\n boolean: /\\b(?:false|true)\\b/,\n null: {\n pattern: /\\bnull\\b/,\n alias: \"keyword\"\n }\n }, e.languages.webmanifest = e.languages.json;\n }\n o(ka, \"json\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js\nvar x1, E1, S1 = C(() => {\n x1 = me(y1()), E1 = x1.default;\n});\n\n// ../node_modules/refractor/lang/jsx.js\nvar Ba = H((K9, C1) => {\n \"use strict\";\n C1.exports = Oa;\n Oa.displayName = \"jsx\";\n Oa.aliases = [];\n function Oa(e) {\n (function(t) {\n var r = t.util.clone(t.languages.javascript), n = /(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)/.source, a = /(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})/.\n source, i = /(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})/.source;\n function c(u, f) {\n return u = u.replace(/<S>/g, function() {\n return n;\n }).replace(/<BRACES>/g, function() {\n return a;\n }).replace(/<SPREAD>/g, function() {\n return i;\n }), RegExp(u, f);\n }\n o(c, \"re\"), i = c(i).source, t.languages.jsx = t.languages.extend(\"markup\", r), t.languages.jsx.tag.pattern = c(\n /<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>/.\n source\n ), t.languages.jsx.tag.inside.tag.pattern = /^<\\/?[^\\s>\\/]*/, t.languages.jsx.tag.inside[\"attr-value\"].pattern = /=(?!\\{)(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s'\">]+)/,\n t.languages.jsx.tag.inside.tag.inside[\"class-name\"] = /^[A-Z]\\w*(?:\\.[A-Z]\\w*)*$/, t.languages.jsx.tag.inside.comment = r.comment, t.languages.\n insertBefore(\n \"inside\",\n \"attr-name\",\n {\n spread: {\n pattern: c(/<SPREAD>/.source),\n inside: t.languages.jsx\n }\n },\n t.languages.jsx.tag\n ), t.languages.insertBefore(\n \"inside\",\n \"special-attr\",\n {\n script: {\n // Allow for two levels of nesting\n pattern: c(/=<BRACES>/.source),\n alias: \"language-javascript\",\n inside: {\n \"script-punctuation\": {\n pattern: /^=(?=\\{)/,\n alias: \"punctuation\"\n },\n rest: t.languages.jsx\n }\n }\n },\n t.languages.jsx.tag\n );\n var l = /* @__PURE__ */ o(function(u) {\n return u ? typeof u == \"string\" ? u : typeof u.content == \"string\" ? u.content : u.content.map(l).join(\"\") : \"\";\n }, \"stringifyToken\"), s = /* @__PURE__ */ o(function(u) {\n for (var f = [], d = 0; d < u.length; d++) {\n var m = u[d], v = !1;\n if (typeof m != \"string\" && (m.type === \"tag\" && m.content[0] && m.content[0].type === \"tag\" ? m.content[0].content[0].content ===\n \"</\" ? f.length > 0 && f[f.length - 1].tagName === l(m.content[0].content[1]) && f.pop() : m.content[m.content.length - 1].content ===\n \"/>\" || f.push({\n tagName: l(m.content[0].content[1]),\n openedBraces: 0\n }) : f.length > 0 && m.type === \"punctuation\" && m.content === \"{\" ? f[f.length - 1].openedBraces++ : f.length > 0 && f[f.length -\n 1].openedBraces > 0 && m.type === \"punctuation\" && m.content === \"}\" ? f[f.length - 1].openedBraces-- : v = !0), (v || typeof m ==\n \"string\") && f.length > 0 && f[f.length - 1].openedBraces === 0) {\n var R = l(m);\n d < u.length - 1 && (typeof u[d + 1] == \"string\" || u[d + 1].type === \"plain-text\") && (R += l(u[d + 1]), u.splice(d + 1, 1)), d >\n 0 && (typeof u[d - 1] == \"string\" || u[d - 1].type === \"plain-text\") && (R = l(u[d - 1]) + R, u.splice(d - 1, 1), d--), u[d] = new t.\n Token(\n \"plain-text\",\n R,\n null,\n R\n );\n }\n m.content && typeof m.content != \"string\" && s(m.content);\n }\n }, \"walkTokens\");\n t.hooks.add(\"after-tokenize\", function(u) {\n u.language !== \"jsx\" && u.language !== \"tsx\" || s(u.tokens);\n });\n })(e);\n }\n o(Oa, \"jsx\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js\nvar M1, L1, A1 = C(() => {\n M1 = me(Ba()), L1 = M1.default;\n});\n\n// ../node_modules/refractor/lang/markdown.js\nvar z1 = H((eR, I1) => {\n \"use strict\";\n I1.exports = Na;\n Na.displayName = \"markdown\";\n Na.aliases = [\"md\"];\n function Na(e) {\n (function(t) {\n var r = /(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;\n function n(d) {\n return d = d.replace(/<inner>/g, function() {\n return r;\n }), RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source + \"(?:\" + d + \")\");\n }\n o(n, \"createInline\");\n var a = /(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source, i = /\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.\n replace(\n /__/g,\n function() {\n return a;\n }\n ), c = /\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;\n t.languages.markdown = t.languages.extend(\"markup\", {}), t.languages.insertBefore(\"markdown\", \"prolog\", {\n \"front-matter-block\": {\n pattern: /(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,\n lookbehind: !0,\n greedy: !0,\n inside: {\n punctuation: /^---|---$/,\n \"front-matter\": {\n pattern: /\\S+(?:\\s+\\S+)*/,\n alias: [\"yaml\", \"language-yaml\"],\n inside: t.languages.yaml\n }\n }\n },\n blockquote: {\n // > ...\n pattern: /^>(?:[\\t ]*>)*/m,\n alias: \"punctuation\"\n },\n table: {\n pattern: RegExp(\n \"^\" + i + c + \"(?:\" + i + \")*\",\n \"m\"\n ),\n inside: {\n \"table-data-rows\": {\n pattern: RegExp(\n \"^(\" + i + c + \")(?:\" + i + \")*$\"\n ),\n lookbehind: !0,\n inside: {\n \"table-data\": {\n pattern: RegExp(a),\n inside: t.languages.markdown\n },\n punctuation: /\\|/\n }\n },\n \"table-line\": {\n pattern: RegExp(\"^(\" + i + \")\" + c + \"$\"),\n lookbehind: !0,\n inside: {\n punctuation: /\\||:?-{3,}:?/\n }\n },\n \"table-header-row\": {\n pattern: RegExp(\"^\" + i + \"$\"),\n inside: {\n \"table-header\": {\n pattern: RegExp(a),\n alias: \"important\",\n inside: t.languages.markdown\n },\n punctuation: /\\|/\n }\n }\n }\n },\n code: [\n {\n // Prefixed by 4 spaces or 1 tab and preceded by an empty line\n pattern: /((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,\n lookbehind: !0,\n alias: \"keyword\"\n },\n {\n // ```optional language\n // code block\n // ```\n pattern: /^```[\\s\\S]*?^```$/m,\n greedy: !0,\n inside: {\n \"code-block\": {\n pattern: /^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,\n lookbehind: !0\n },\n \"code-language\": {\n pattern: /^(```).+/,\n lookbehind: !0\n },\n punctuation: /```/\n }\n }\n ],\n title: [\n {\n // title 1\n // =======\n // title 2\n // -------\n pattern: /\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,\n alias: \"important\",\n inside: {\n punctuation: /==+$|--+$/\n }\n },\n {\n // # title 1\n // ###### title 6\n pattern: /(^\\s*)#.+/m,\n lookbehind: !0,\n alias: \"important\",\n inside: {\n punctuation: /^#+|#+$/\n }\n }\n ],\n hr: {\n // ***\n // ---\n // * * *\n // -----------\n pattern: /(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,\n lookbehind: !0,\n alias: \"punctuation\"\n },\n list: {\n // * item\n // + item\n // - item\n // 1. item\n pattern: /(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,\n lookbehind: !0,\n alias: \"punctuation\"\n },\n \"url-reference\": {\n // [id]: http://example.com \"Optional title\"\n // [id]: http://example.com 'Optional title'\n // [id]: http://example.com (Optional title)\n // [id]: <http://example.com> \"Optional title\"\n pattern: /!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,\n inside: {\n variable: {\n pattern: /^(!?\\[)[^\\]]+/,\n lookbehind: !0\n },\n string: /(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,\n punctuation: /^[\\[\\]!:]|[<>]/\n },\n alias: \"url\"\n },\n bold: {\n // **strong**\n // __strong__\n // allow one nested instance of italic text using the same delimiter\n pattern: n(\n /\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*/.source\n ),\n lookbehind: !0,\n greedy: !0,\n inside: {\n content: {\n pattern: /(^..)[\\s\\S]+(?=..$)/,\n lookbehind: !0,\n inside: {}\n // see below\n },\n punctuation: /\\*\\*|__/\n }\n },\n italic: {\n // *em*\n // _em_\n // allow one nested instance of bold text using the same delimiter\n pattern: n(\n /\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*/.source\n ),\n lookbehind: !0,\n greedy: !0,\n inside: {\n content: {\n pattern: /(^.)[\\s\\S]+(?=.$)/,\n lookbehind: !0,\n inside: {}\n // see below\n },\n punctuation: /[*_]/\n }\n },\n strike: {\n // ~~strike through~~\n // ~strike~\n // eslint-disable-next-line regexp/strict\n pattern: n(/(~~?)(?:(?!~)<inner>)+\\2/.source),\n lookbehind: !0,\n greedy: !0,\n inside: {\n content: {\n pattern: /(^~~?)[\\s\\S]+(?=\\1$)/,\n lookbehind: !0,\n inside: {}\n // see below\n },\n punctuation: /~~?/\n }\n },\n \"code-snippet\": {\n // `code`\n // ``code``\n pattern: /(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,\n lookbehind: !0,\n greedy: !0,\n alias: [\"code\", \"keyword\"]\n },\n url: {\n // [example](http://example.com \"Optional title\")\n // [example][id]\n // [example] [id]\n pattern: n(\n /!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])/.source\n ),\n lookbehind: !0,\n greedy: !0,\n inside: {\n operator: /^!/,\n content: {\n pattern: /(^\\[)[^\\]]+(?=\\])/,\n lookbehind: !0,\n inside: {}\n // see below\n },\n variable: {\n pattern: /(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,\n lookbehind: !0\n },\n url: {\n pattern: /(^\\]\\()[^\\s)]+/,\n lookbehind: !0\n },\n string: {\n pattern: /(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,\n lookbehind: !0\n }\n }\n }\n }), [\"url\", \"bold\", \"italic\", \"strike\"].forEach(function(d) {\n [\"url\", \"bold\", \"italic\", \"strike\", \"code-snippet\"].forEach(function(m) {\n d !== m && (t.languages.markdown[d].inside.content.inside[m] = t.languages.markdown[m]);\n });\n }), t.hooks.add(\"after-tokenize\", function(d) {\n if (d.language !== \"markdown\" && d.language !== \"md\")\n return;\n function m(v) {\n if (!(!v || typeof v == \"string\"))\n for (var R = 0, p = v.length; R < p; R++) {\n var h = v[R];\n if (h.type !== \"code\") {\n m(h.content);\n continue;\n }\n var g = h.content[1], w = h.content[3];\n if (g && w && g.type === \"code-language\" && w.type === \"code-block\" && typeof g.content == \"string\") {\n var b = g.content.replace(/\\b#/g, \"sharp\").replace(/\\b\\+\\+/g, \"pp\");\n b = (/[a-z][\\w-]*/i.exec(b) || [\"\"])[0].toLowerCase();\n var x = \"language-\" + b;\n w.alias ? typeof w.alias == \"string\" ? w.alias = [w.alias, x] : w.alias.push(x) : w.alias = [x];\n }\n }\n }\n o(m, \"walkTokens\"), m(d.tokens);\n }), t.hooks.add(\"wrap\", function(d) {\n if (d.type === \"code-block\") {\n for (var m = \"\", v = 0, R = d.classes.length; v < R; v++) {\n var p = d.classes[v], h = /language-(.+)/.exec(p);\n if (h) {\n m = h[1];\n break;\n }\n }\n var g = t.languages[m];\n if (g)\n d.content = t.highlight(\n f(d.content.value),\n g,\n m\n );\n else if (m && m !== \"none\" && t.plugins.autoloader) {\n var w = \"md-\" + (/* @__PURE__ */ new Date()).valueOf() + \"-\" + Math.floor(Math.random() * 1e16);\n d.attributes.id = w, t.plugins.autoloader.loadLanguages(m, function() {\n var b = document.getElementById(w);\n b && (b.innerHTML = t.highlight(\n b.textContent,\n t.languages[m],\n m\n ));\n });\n }\n }\n });\n var l = RegExp(t.languages.markup.tag.pattern.source, \"gi\"), s = {\n amp: \"&\",\n lt: \"<\",\n gt: \">\",\n quot: '\"'\n }, u = String.fromCodePoint || String.fromCharCode;\n function f(d) {\n var m = d.replace(l, \"\");\n return m = m.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi, function(v, R) {\n if (R = R.toLowerCase(), R[0] === \"#\") {\n var p;\n return R[1] === \"x\" ? p = parseInt(R.slice(2), 16) : p = Number(R.slice(1)), u(p);\n } else {\n var h = s[R];\n return h || v;\n }\n }), m;\n }\n o(f, \"textContent\"), t.languages.md = t.languages.markdown;\n })(e);\n }\n o(Na, \"markdown\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js\nvar T1, H1, P1 = C(() => {\n T1 = me(z1()), H1 = T1.default;\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js\nvar k1, O1, B1 = C(() => {\n k1 = me(Sa()), O1 = k1.default;\n});\n\n// ../node_modules/refractor/lang/typescript.js\nvar Fa = H((oR, N1) => {\n \"use strict\";\n N1.exports = Da;\n Da.displayName = \"typescript\";\n Da.aliases = [\"ts\"];\n function Da(e) {\n (function(t) {\n t.languages.typescript = t.languages.extend(\"javascript\", {\n \"class-name\": {\n pattern: /(\\b(?:class|extends|implements|instanceof|interface|new|type)\\s+)(?!keyof\\b)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?:\\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,\n lookbehind: !0,\n greedy: !0,\n inside: null\n // see below\n },\n builtin: /\\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\\b/\n }), t.languages.typescript.keyword.push(\n /\\b(?:abstract|declare|is|keyof|readonly|require)\\b/,\n // keywords that have to be followed by an identifier\n /\\b(?:asserts|infer|interface|module|namespace|type)\\b(?=\\s*(?:[{_$a-zA-Z\\xA0-\\uFFFF]|$))/,\n // This is for `import type *, {}`\n /\\btype\\b(?=\\s*(?:[\\{*]|$))/\n ), delete t.languages.typescript.parameter, delete t.languages.typescript[\"literal-property\"];\n var r = t.languages.extend(\"typescript\", {});\n delete r[\"class-name\"], t.languages.typescript[\"class-name\"].inside = r, t.languages.insertBefore(\"typescript\", \"function\", {\n decorator: {\n pattern: /@[$\\w\\xA0-\\uFFFF]+/,\n inside: {\n at: {\n pattern: /^@/,\n alias: \"operator\"\n },\n function: /^[\\s\\S]+/\n }\n },\n \"generic-function\": {\n // e.g. foo<T extends \"bar\" | \"baz\">( ...\n pattern: /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*\\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\\s*\\()/,\n greedy: !0,\n inside: {\n function: /^#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*/,\n generic: {\n pattern: /<[\\s\\S]+/,\n // everything after the first <\n alias: \"class-name\",\n inside: r\n }\n }\n }\n }), t.languages.ts = t.languages.typescript;\n })(e);\n }\n o(Da, \"typescript\");\n});\n\n// ../node_modules/refractor/lang/tsx.js\nvar F1 = H((iR, D1) => {\n \"use strict\";\n var ym = Ba(), xm = Fa();\n D1.exports = _a;\n _a.displayName = \"tsx\";\n _a.aliases = [];\n function _a(e) {\n e.register(ym), e.register(xm), function(t) {\n var r = t.util.clone(t.languages.typescript);\n t.languages.tsx = t.languages.extend(\"jsx\", r), delete t.languages.tsx.parameter, delete t.languages.tsx[\"literal-property\"];\n var n = t.languages.tsx.tag;\n n.pattern = RegExp(\n /(^|[^\\w$]|(?=<\\/))/.source + \"(?:\" + n.pattern.source + \")\",\n n.pattern.flags\n ), n.lookbehind = !0;\n }(e);\n }\n o(_a, \"tsx\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js\nvar _1, $1, V1 = C(() => {\n _1 = me(F1()), $1 = _1.default;\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js\nvar j1, W1, U1 = C(() => {\n j1 = me(Fa()), W1 = j1.default;\n});\n\n// ../node_modules/refractor/lang/yaml.js\nvar G1 = H((uR, q1) => {\n \"use strict\";\n q1.exports = $a;\n $a.displayName = \"yaml\";\n $a.aliases = [\"yml\"];\n function $a(e) {\n (function(t) {\n var r = /[*&][^\\s[\\]{},]+/, n = /!(?:<[\\w\\-%#;/?:@&=+$,.!~*'()[\\]]+>|(?:[a-zA-Z\\d-]*!)?[\\w\\-%#;/?:@&=+$.~*'()]+)?/, a = \"(?:\" + n.source +\n \"(?:[ \t]+\" + r.source + \")?|\" + r.source + \"(?:[ \t]+\" + n.source + \")?)\", i = /(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.\n source.replace(\n /<PLAIN>/g,\n function() {\n return /[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]/.source;\n }\n ), c = /\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^'\\\\\\r\\n]|\\\\.)*'/.source;\n function l(s, u) {\n u = (u || \"\").replace(/m/g, \"\") + \"m\";\n var f = /([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))/.source.replace(/<<prop>>/g, function() {\n return a;\n }).replace(/<<value>>/g, function() {\n return s;\n });\n return RegExp(f, u);\n }\n o(l, \"createValuePattern\"), t.languages.yaml = {\n scalar: {\n pattern: RegExp(\n /([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)/.source.replace(\n /<<prop>>/g,\n function() {\n return a;\n }\n )\n ),\n lookbehind: !0,\n alias: \"string\"\n },\n comment: /#.*/,\n key: {\n pattern: RegExp(\n /((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)/.source.replace(/<<prop>>/g, function() {\n return a;\n }).replace(/<<key>>/g, function() {\n return \"(?:\" + i + \"|\" + c + \")\";\n })\n ),\n lookbehind: !0,\n greedy: !0,\n alias: \"atrule\"\n },\n directive: {\n pattern: /(^[ \\t]*)%.+/m,\n lookbehind: !0,\n alias: \"important\"\n },\n datetime: {\n pattern: l(\n /\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?/.\n source\n ),\n lookbehind: !0,\n alias: \"number\"\n },\n boolean: {\n pattern: l(/false|true/.source, \"i\"),\n lookbehind: !0,\n alias: \"important\"\n },\n null: {\n pattern: l(/null|~/.source, \"i\"),\n lookbehind: !0,\n alias: \"important\"\n },\n string: {\n pattern: l(c),\n lookbehind: !0,\n greedy: !0\n },\n number: {\n pattern: l(\n /[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)/.source,\n \"i\"\n ),\n lookbehind: !0\n },\n tag: n,\n important: r,\n punctuation: /---|[:[\\]{}\\-,|>?]|\\.\\.\\./\n }, t.languages.yml = t.languages.yaml;\n })(e);\n }\n o($a, \"yaml\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js\nvar X1, Y1, Z1 = C(() => {\n X1 = me(G1()), Y1 = X1.default;\n});\n\n// src/components/components/ActionBar/ActionBar.tsx\nimport K1 from \"react\";\nimport { styled as J1 } from \"storybook/theming\";\nvar Em, Q1, Va, ja = C(() => {\n \"use strict\";\n Em = J1.div(({ theme: e }) => ({\n position: \"absolute\",\n bottom: 0,\n right: 0,\n maxWidth: \"100%\",\n display: \"flex\",\n background: e.background.content,\n zIndex: 1\n })), Q1 = J1.button(\n ({ theme: e }) => ({\n margin: 0,\n border: \"0 none\",\n padding: \"4px 10px\",\n cursor: \"pointer\",\n display: \"flex\",\n alignItems: \"center\",\n color: e.color.defaultText,\n background: e.background.content,\n fontSize: 12,\n lineHeight: \"16px\",\n fontFamily: e.typography.fonts.base,\n fontWeight: e.typography.weight.bold,\n borderTop: `1px solid ${e.appBorderColor}`,\n borderLeft: `1px solid ${e.appBorderColor}`,\n marginLeft: -1,\n borderRadius: \"4px 0 0 0\",\n \"&:not(:last-child)\": { borderRight: `1px solid ${e.appBorderColor}` },\n \"& + *\": {\n borderLeft: `1px solid ${e.appBorderColor}`,\n borderRadius: 0\n },\n \"&:focus\": {\n boxShadow: `${e.color.secondary} 0 -3px 0 0 inset`,\n outline: \"0 none\"\n }\n }),\n ({ disabled: e }) => e && {\n cursor: \"not-allowed\",\n opacity: 0.5\n }\n );\n Q1.displayName = \"ActionButton\";\n Va = /* @__PURE__ */ o(({ actionItems: e, ...t }) => /* @__PURE__ */ K1.createElement(Em, { ...t }, e.map(({ title: r, className: n, onClick: a,\n disabled: i }, c) => /* @__PURE__ */ K1.createElement(Q1, { key: c, className: n, onClick: a, disabled: !!i }, r))), \"ActionBar\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs\nimport * as e5 from \"react\";\nfunction Sm(e, t) {\n typeof e == \"function\" ? e(t) : e != null && (e.current = t);\n}\nfunction Wa(...e) {\n return (t) => e.forEach((r) => Sm(r, t));\n}\nfunction it(...e) {\n return e5.useCallback(Wa(...e), e);\n}\nvar Un = C(() => {\n o(Sm, \"setRef\");\n o(Wa, \"composeRefs\");\n o(it, \"useComposedRefs\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs\nimport * as he from \"react\";\nimport { Fragment as Cm, jsx as Ua } from \"react/jsx-runtime\";\nfunction Lm(e) {\n return he.isValidElement(e) && e.type === Mm;\n}\nfunction Am(e, t) {\n let r = { ...t };\n for (let n in t) {\n let a = e[n], i = t[n];\n /^on[A-Z]/.test(n) ? a && i ? r[n] = (...l) => {\n i(...l), a(...l);\n } : a && (r[n] = a) : n === \"style\" ? r[n] = { ...a, ...i } : n === \"className\" && (r[n] = [a, i].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\nfunction Im(e) {\n let t = Object.getOwnPropertyDescriptor(e.props, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning;\n return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning, r ? e.props.ref :\n e.props.ref || e.ref);\n}\nvar Ga, qa, Mm, t5 = C(() => {\n Un();\n Ga = he.forwardRef((e, t) => {\n let { children: r, ...n } = e, a = he.Children.toArray(r), i = a.find(Lm);\n if (i) {\n let c = i.props.children, l = a.map((s) => s === i ? he.Children.count(c) > 1 ? he.Children.only(null) : he.isValidElement(c) ? c.props.\n children : null : s);\n return /* @__PURE__ */ Ua(qa, { ...n, ref: t, children: he.isValidElement(c) ? he.cloneElement(c, void 0, l) : null });\n }\n return /* @__PURE__ */ Ua(qa, { ...n, ref: t, children: r });\n });\n Ga.displayName = \"Slot\";\n qa = he.forwardRef((e, t) => {\n let { children: r, ...n } = e;\n if (he.isValidElement(r)) {\n let a = Im(r);\n return he.cloneElement(r, {\n ...Am(n, r.props),\n // @ts-ignore\n ref: t ? Wa(t, a) : a\n });\n }\n return he.Children.count(r) > 1 ? he.Children.only(null) : null;\n });\n qa.displayName = \"SlotClone\";\n Mm = /* @__PURE__ */ o(({ children: e }) => /* @__PURE__ */ Ua(Cm, { children: e }), \"Slottable\");\n o(Lm, \"isSlottable\");\n o(Am, \"mergeProps\");\n o(Im, \"getElementRef\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs\nimport * as r5 from \"react\";\nimport * as zm from \"react-dom\";\nimport { jsx as Tm } from \"react/jsx-runtime\";\nvar Hm, gr, n5 = C(() => {\n t5();\n Hm = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n ], gr = Hm.reduce((e, t) => {\n let r = r5.forwardRef((n, a) => {\n let { asChild: i, ...c } = n, l = i ? Ga : t;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ Tm(l, { ...c, ref: a });\n });\n return r.displayName = `Primitive.${t}`, { ...e, [t]: r };\n }, {});\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs\nimport * as o5 from \"react\";\nvar nn, Xa = C(() => {\n nn = globalThis?.document ? o5.useLayoutEffect : () => {\n };\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs\nimport * as Ae from \"react\";\nimport * as a5 from \"react-dom\";\nimport * as i5 from \"react\";\nfunction Pm(e, t) {\n return i5.useReducer((r, n) => t[r][n] ?? r, e);\n}\nfunction km(e) {\n let [t, r] = Ae.useState(), n = Ae.useRef({}), a = Ae.useRef(e), i = Ae.useRef(\"none\"), c = e ? \"mounted\" : \"unmounted\", [l, s] = Pm(c, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n return Ae.useEffect(() => {\n let u = qn(n.current);\n i.current = l === \"mounted\" ? u : \"none\";\n }, [l]), nn(() => {\n let u = n.current, f = a.current;\n if (f !== e) {\n let m = i.current, v = qn(u);\n e ? s(\"MOUNT\") : v === \"none\" || u?.display === \"none\" ? s(\"UNMOUNT\") : s(f && m !== v ? \"ANIMATION_OUT\" : \"UNMOUNT\"), a.current = e;\n }\n }, [e, s]), nn(() => {\n if (t) {\n let u = /* @__PURE__ */ o((d) => {\n let v = qn(n.current).includes(d.animationName);\n d.target === t && v && a5.flushSync(() => s(\"ANIMATION_END\"));\n }, \"handleAnimationEnd\"), f = /* @__PURE__ */ o((d) => {\n d.target === t && (i.current = qn(n.current));\n }, \"handleAnimationStart\");\n return t.addEventListener(\"animationstart\", f), t.addEventListener(\"animationcancel\", u), t.addEventListener(\"animationend\", u), () => {\n t.removeEventListener(\"animationstart\", f), t.removeEventListener(\"animationcancel\", u), t.removeEventListener(\"animationend\", u);\n };\n } else\n s(\"ANIMATION_END\");\n }, [t, s]), {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(l),\n ref: Ae.useCallback((u) => {\n u && (n.current = getComputedStyle(u)), r(u);\n }, [])\n };\n}\nfunction qn(e) {\n return e?.animationName || \"none\";\n}\nfunction Om(e) {\n let t = Object.getOwnPropertyDescriptor(e.props, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning;\n return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning, r ? e.props.ref :\n e.props.ref || e.ref);\n}\nvar vr, l5 = C(() => {\n \"use client\";\n Un();\n Xa();\n o(Pm, \"useStateMachine\");\n vr = /* @__PURE__ */ o((e) => {\n let { present: t, children: r } = e, n = km(t), a = typeof r == \"function\" ? r({ present: n.isPresent }) : Ae.Children.only(r), i = it(n.\n ref, Om(a));\n return typeof r == \"function\" || n.isPresent ? Ae.cloneElement(a, { ref: i }) : null;\n }, \"Presence\");\n vr.displayName = \"Presence\";\n o(km, \"usePresence\");\n o(qn, \"getAnimationName\");\n o(Om, \"getElementRef\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs\nimport * as lt from \"react\";\nimport { jsx as Bm } from \"react/jsx-runtime\";\nfunction c5(e, t = []) {\n let r = [];\n function n(i, c) {\n let l = lt.createContext(c), s = r.length;\n r = [...r, c];\n function u(d) {\n let { scope: m, children: v, ...R } = d, p = m?.[e][s] || l, h = lt.useMemo(() => R, Object.values(R));\n return /* @__PURE__ */ Bm(p.Provider, { value: h, children: v });\n }\n o(u, \"Provider\");\n function f(d, m) {\n let v = m?.[e][s] || l, R = lt.useContext(v);\n if (R) return R;\n if (c !== void 0) return c;\n throw new Error(`\\`${d}\\` must be used within \\`${i}\\``);\n }\n return o(f, \"useContext2\"), u.displayName = i + \"Provider\", [u, f];\n }\n o(n, \"createContext3\");\n let a = /* @__PURE__ */ o(() => {\n let i = r.map((c) => lt.createContext(c));\n return /* @__PURE__ */ o(function(l) {\n let s = l?.[e] || i;\n return lt.useMemo(\n () => ({ [`__scope${e}`]: { ...l, [e]: s } }),\n [l, s]\n );\n }, \"useScope\");\n }, \"createScope\");\n return a.scopeName = e, [n, Nm(a, ...t)];\n}\nfunction Nm(...e) {\n let t = e[0];\n if (e.length === 1) return t;\n let r = /* @__PURE__ */ o(() => {\n let n = e.map((a) => ({\n useScope: a(),\n scopeName: a.scopeName\n }));\n return /* @__PURE__ */ o(function(i) {\n let c = n.reduce((l, { useScope: s, scopeName: u }) => {\n let d = s(i)[`__scope${u}`];\n return { ...l, ...d };\n }, {});\n return lt.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);\n }, \"useComposedScopes\");\n }, \"createScope\");\n return r.scopeName = t.scopeName, r;\n}\nvar s5 = C(() => {\n o(c5, \"createContextScope\");\n o(Nm, \"composeContextScopes\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs\nimport * as wr from \"react\";\nfunction xt(e) {\n let t = wr.useRef(e);\n return wr.useEffect(() => {\n t.current = e;\n }), wr.useMemo(() => (...r) => t.current?.(...r), []);\n}\nvar u5 = C(() => {\n o(xt, \"useCallbackRef\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs\nimport * as Gn from \"react\";\nimport { jsx as DR } from \"react/jsx-runtime\";\nfunction f5(e) {\n let t = Gn.useContext(Dm);\n return e || t || \"ltr\";\n}\nvar Dm, d5 = C(() => {\n Dm = Gn.createContext(void 0);\n o(f5, \"useDirection\");\n});\n\n// ../node_modules/@radix-ui/number/dist/index.mjs\nfunction p5(e, [t, r]) {\n return Math.min(r, Math.max(t, e));\n}\nvar m5 = C(() => {\n o(p5, \"clamp\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs\nfunction Et(e, t, { checkForDefaultPrevented: r = !0 } = {}) {\n return /* @__PURE__ */ o(function(a) {\n if (e?.(a), r === !1 || !a.defaultPrevented)\n return t?.(a);\n }, \"handleEvent\");\n}\nvar h5 = C(() => {\n o(Et, \"composeEventHandlers\");\n});\n\n// ../node_modules/@radix-ui/react-scroll-area/dist/index.mjs\nimport * as I from \"react\";\nimport * as v5 from \"react\";\nimport { Fragment as _m, jsx as U, jsxs as $m } from \"react/jsx-runtime\";\nfunction Fm(e, t) {\n return v5.useReducer((r, n) => t[r][n] ?? r, e);\n}\nfunction Yn(e) {\n return e ? parseInt(e, 10) : 0;\n}\nfunction A5(e, t) {\n let r = e / t;\n return isNaN(r) ? 0 : r;\n}\nfunction Zn(e) {\n let t = A5(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, n = (e.scrollbar.size - r) * t;\n return Math.max(n, 18);\n}\nfunction Zm(e, t, r, n = \"ltr\") {\n let a = Zn(r), i = a / 2, c = t || i, l = a - c, s = r.scrollbar.paddingStart + c, u = r.scrollbar.size - r.scrollbar.paddingEnd - l, f = r.\n content - r.viewport, d = n === \"ltr\" ? [0, f] : [f * -1, 0];\n return I5([s, u], d)(e);\n}\nfunction g5(e, t, r = \"ltr\") {\n let n = Zn(t), a = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, i = t.scrollbar.size - a, c = t.content - t.viewport, l = i - n, s = r ===\n \"ltr\" ? [0, c] : [c * -1, 0], u = p5(e, s);\n return I5([0, c], [0, l])(u);\n}\nfunction I5(e, t) {\n return (r) => {\n if (e[0] === e[1] || t[0] === t[1]) return t[0];\n let n = (t[1] - t[0]) / (e[1] - e[0]);\n return t[0] + n * (r - e[0]);\n };\n}\nfunction z5(e, t) {\n return e > 0 && e < t;\n}\nfunction Kn(e, t) {\n let r = xt(e), n = I.useRef(0);\n return I.useEffect(() => () => window.clearTimeout(n.current), []), I.useCallback(() => {\n window.clearTimeout(n.current), n.current = window.setTimeout(r, t);\n }, [r, t]);\n}\nfunction br(e, t) {\n let r = xt(t);\n nn(() => {\n let n = 0;\n if (e) {\n let a = new ResizeObserver(() => {\n cancelAnimationFrame(n), n = window.requestAnimationFrame(r);\n });\n return a.observe(e), () => {\n window.cancelAnimationFrame(n), a.unobserve(e);\n };\n }\n }, [e, r]);\n}\nfunction Jm(e, t) {\n let { asChild: r, children: n } = e;\n if (!r) return typeof t == \"function\" ? t(n) : t;\n let a = I.Children.only(n);\n return I.cloneElement(a, {\n children: typeof t == \"function\" ? t(a.props.children) : t\n });\n}\nvar Ya, w5, ty, Vm, _e, b5, R5, y5, rt, x5, jm, Wm, E5, Za, Um, qm, Gm, S5, C5, Xn, M5, Xm, Ka, L5, Ym, Km, T5, H5, P5, k5, O5, B5 = C(() => {\n \"use client\";\n n5();\n l5();\n s5();\n Un();\n u5();\n d5();\n Xa();\n m5();\n h5();\n o(Fm, \"useStateMachine\");\n Ya = \"ScrollArea\", [w5, ty] = c5(Ya), [Vm, _e] = w5(Ya), b5 = I.forwardRef(\n (e, t) => {\n let {\n __scopeScrollArea: r,\n type: n = \"hover\",\n dir: a,\n scrollHideDelay: i = 600,\n ...c\n } = e, [l, s] = I.useState(null), [u, f] = I.useState(null), [d, m] = I.useState(null), [v, R] = I.useState(null), [p, h] = I.useState(\n null), [g, w] = I.useState(0), [b, x] = I.useState(0), [E, y] = I.useState(!1), [S, L] = I.useState(!1), M = it(t, (P) => s(P)), A = f5(\n a);\n return /* @__PURE__ */ U(\n Vm,\n {\n scope: r,\n type: n,\n dir: A,\n scrollHideDelay: i,\n scrollArea: l,\n viewport: u,\n onViewportChange: f,\n content: d,\n onContentChange: m,\n scrollbarX: v,\n onScrollbarXChange: R,\n scrollbarXEnabled: E,\n onScrollbarXEnabledChange: y,\n scrollbarY: p,\n onScrollbarYChange: h,\n scrollbarYEnabled: S,\n onScrollbarYEnabledChange: L,\n onCornerWidthChange: w,\n onCornerHeightChange: x,\n children: /* @__PURE__ */ U(\n gr.div,\n {\n dir: A,\n ...c,\n ref: M,\n style: {\n position: \"relative\",\n // Pass corner sizes as CSS vars to reduce re-renders of context consumers\n \"--radix-scroll-area-corner-width\": g + \"px\",\n \"--radix-scroll-area-corner-height\": b + \"px\",\n ...e.style\n }\n }\n )\n }\n );\n }\n );\n b5.displayName = Ya;\n R5 = \"ScrollAreaViewport\", y5 = I.forwardRef(\n (e, t) => {\n let { __scopeScrollArea: r, children: n, asChild: a, nonce: i, ...c } = e, l = _e(R5, r), s = I.useRef(null), u = it(t, s, l.onViewportChange);\n return /* @__PURE__ */ $m(_m, { children: [\n /* @__PURE__ */ U(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n`\n },\n nonce: i\n }\n ),\n /* @__PURE__ */ U(\n gr.div,\n {\n \"data-radix-scroll-area-viewport\": \"\",\n ...c,\n asChild: a,\n ref: u,\n style: {\n /**\n * We don't support `visible` because the intention is to have at least one scrollbar\n * if this component is used and `visible` will behave like `auto` in that case\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description\n *\n * We don't handle `auto` because the intention is for the native implementation\n * to be hidden if using this component. We just want to ensure the node is scrollable\n * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent\n * the browser from having to work out whether to render native scrollbars or not,\n * we tell it to with the intention of hiding them in CSS.\n */\n overflowX: l.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: l.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n ...e.style\n },\n children: Jm({ asChild: a, children: n }, (f) => /* @__PURE__ */ U(\n \"div\",\n {\n \"data-radix-scroll-area-content\": \"\",\n ref: l.onContentChange,\n style: { minWidth: l.scrollbarXEnabled ? \"fit-content\" : void 0 },\n children: f\n }\n ))\n }\n )\n ] });\n }\n );\n y5.displayName = R5;\n rt = \"ScrollAreaScrollbar\", x5 = I.forwardRef(\n (e, t) => {\n let { forceMount: r, ...n } = e, a = _e(rt, e.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: c } = a, l = e.\n orientation === \"horizontal\";\n return I.useEffect(() => (l ? i(!0) : c(!0), () => {\n l ? i(!1) : c(!1);\n }), [l, i, c]), a.type === \"hover\" ? /* @__PURE__ */ U(jm, { ...n, ref: t, forceMount: r }) : a.type === \"scroll\" ? /* @__PURE__ */ U(\n Wm, { ...n, ref: t, forceMount: r }) : a.type === \"auto\" ? /* @__PURE__ */ U(E5, { ...n, ref: t, forceMount: r }) : a.type === \"always\" ?\n /* @__PURE__ */ U(Za, { ...n, ref: t }) : null;\n }\n );\n x5.displayName = rt;\n jm = I.forwardRef((e, t) => {\n let { forceMount: r, ...n } = e, a = _e(rt, e.__scopeScrollArea), [i, c] = I.useState(!1);\n return I.useEffect(() => {\n let l = a.scrollArea, s = 0;\n if (l) {\n let u = /* @__PURE__ */ o(() => {\n window.clearTimeout(s), c(!0);\n }, \"handlePointerEnter\"), f = /* @__PURE__ */ o(() => {\n s = window.setTimeout(() => c(!1), a.scrollHideDelay);\n }, \"handlePointerLeave\");\n return l.addEventListener(\"pointerenter\", u), l.addEventListener(\"pointerleave\", f), () => {\n window.clearTimeout(s), l.removeEventListener(\"pointerenter\", u), l.removeEventListener(\"pointerleave\", f);\n };\n }\n }, [a.scrollArea, a.scrollHideDelay]), /* @__PURE__ */ U(vr, { present: r || i, children: /* @__PURE__ */ U(\n E5,\n {\n \"data-state\": i ? \"visible\" : \"hidden\",\n ...n,\n ref: t\n }\n ) });\n }), Wm = I.forwardRef((e, t) => {\n let { forceMount: r, ...n } = e, a = _e(rt, e.__scopeScrollArea), i = e.orientation === \"horizontal\", c = Kn(() => s(\"SCROLL_END\"), 100),\n [l, s] = Fm(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\"\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\"\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\"\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\"\n }\n });\n return I.useEffect(() => {\n if (l === \"idle\") {\n let u = window.setTimeout(() => s(\"HIDE\"), a.scrollHideDelay);\n return () => window.clearTimeout(u);\n }\n }, [l, a.scrollHideDelay, s]), I.useEffect(() => {\n let u = a.viewport, f = i ? \"scrollLeft\" : \"scrollTop\";\n if (u) {\n let d = u[f], m = /* @__PURE__ */ o(() => {\n let v = u[f];\n d !== v && (s(\"SCROLL\"), c()), d = v;\n }, \"handleScroll\");\n return u.addEventListener(\"scroll\", m), () => u.removeEventListener(\"scroll\", m);\n }\n }, [a.viewport, i, s, c]), /* @__PURE__ */ U(vr, { present: r || l !== \"hidden\", children: /* @__PURE__ */ U(\n Za,\n {\n \"data-state\": l === \"hidden\" ? \"hidden\" : \"visible\",\n ...n,\n ref: t,\n onPointerEnter: Et(e.onPointerEnter, () => s(\"POINTER_ENTER\")),\n onPointerLeave: Et(e.onPointerLeave, () => s(\"POINTER_LEAVE\"))\n }\n ) });\n }), E5 = I.forwardRef((e, t) => {\n let r = _e(rt, e.__scopeScrollArea), { forceMount: n, ...a } = e, [i, c] = I.useState(!1), l = e.orientation === \"horizontal\", s = Kn(() => {\n if (r.viewport) {\n let u = r.viewport.offsetWidth < r.viewport.scrollWidth, f = r.viewport.offsetHeight < r.viewport.scrollHeight;\n c(l ? u : f);\n }\n }, 10);\n return br(r.viewport, s), br(r.content, s), /* @__PURE__ */ U(vr, { present: n || i, children: /* @__PURE__ */ U(\n Za,\n {\n \"data-state\": i ? \"visible\" : \"hidden\",\n ...a,\n ref: t\n }\n ) });\n }), Za = I.forwardRef((e, t) => {\n let { orientation: r = \"vertical\", ...n } = e, a = _e(rt, e.__scopeScrollArea), i = I.useRef(null), c = I.useRef(0), [l, s] = I.useState(\n {\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }\n }), u = A5(l.viewport, l.content), f = {\n ...n,\n sizes: l,\n onSizesChange: s,\n hasThumb: u > 0 && u < 1,\n onThumbChange: /* @__PURE__ */ o((m) => i.current = m, \"onThumbChange\"),\n onThumbPointerUp: /* @__PURE__ */ o(() => c.current = 0, \"onThumbPointerUp\"),\n onThumbPointerDown: /* @__PURE__ */ o((m) => c.current = m, \"onThumbPointerDown\")\n };\n function d(m, v) {\n return Zm(m, c.current, l, v);\n }\n return o(d, \"getScrollPosition\"), r === \"horizontal\" ? /* @__PURE__ */ U(\n Um,\n {\n ...f,\n ref: t,\n onThumbPositionChange: /* @__PURE__ */ o(() => {\n if (a.viewport && i.current) {\n let m = a.viewport.scrollLeft, v = g5(m, l, a.dir);\n i.current.style.transform = `translate3d(${v}px, 0, 0)`;\n }\n }, \"onThumbPositionChange\"),\n onWheelScroll: /* @__PURE__ */ o((m) => {\n a.viewport && (a.viewport.scrollLeft = m);\n }, \"onWheelScroll\"),\n onDragScroll: /* @__PURE__ */ o((m) => {\n a.viewport && (a.viewport.scrollLeft = d(m, a.dir));\n }, \"onDragScroll\")\n }\n ) : r === \"vertical\" ? /* @__PURE__ */ U(\n qm,\n {\n ...f,\n ref: t,\n onThumbPositionChange: /* @__PURE__ */ o(() => {\n if (a.viewport && i.current) {\n let m = a.viewport.scrollTop, v = g5(m, l);\n i.current.style.transform = `translate3d(0, ${v}px, 0)`;\n }\n }, \"onThumbPositionChange\"),\n onWheelScroll: /* @__PURE__ */ o((m) => {\n a.viewport && (a.viewport.scrollTop = m);\n }, \"onWheelScroll\"),\n onDragScroll: /* @__PURE__ */ o((m) => {\n a.viewport && (a.viewport.scrollTop = d(m));\n }, \"onDragScroll\")\n }\n ) : null;\n }), Um = I.forwardRef((e, t) => {\n let { sizes: r, onSizesChange: n, ...a } = e, i = _e(rt, e.__scopeScrollArea), [c, l] = I.useState(), s = I.useRef(null), u = it(t, s, i.\n onScrollbarXChange);\n return I.useEffect(() => {\n s.current && l(getComputedStyle(s.current));\n }, [s]), /* @__PURE__ */ U(\n C5,\n {\n \"data-orientation\": \"horizontal\",\n ...a,\n ref: u,\n sizes: r,\n style: {\n bottom: 0,\n left: i.dir === \"rtl\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n right: i.dir === \"ltr\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n \"--radix-scroll-area-thumb-width\": Zn(r) + \"px\",\n ...e.style\n },\n onThumbPointerDown: /* @__PURE__ */ o((f) => e.onThumbPointerDown(f.x), \"onThumbPointerDown\"),\n onDragScroll: /* @__PURE__ */ o((f) => e.onDragScroll(f.x), \"onDragScroll\"),\n onWheelScroll: /* @__PURE__ */ o((f, d) => {\n if (i.viewport) {\n let m = i.viewport.scrollLeft + f.deltaX;\n e.onWheelScroll(m), z5(m, d) && f.preventDefault();\n }\n }, \"onWheelScroll\"),\n onResize: /* @__PURE__ */ o(() => {\n s.current && i.viewport && c && n({\n content: i.viewport.scrollWidth,\n viewport: i.viewport.offsetWidth,\n scrollbar: {\n size: s.current.clientWidth,\n paddingStart: Yn(c.paddingLeft),\n paddingEnd: Yn(c.paddingRight)\n }\n });\n }, \"onResize\")\n }\n );\n }), qm = I.forwardRef((e, t) => {\n let { sizes: r, onSizesChange: n, ...a } = e, i = _e(rt, e.__scopeScrollArea), [c, l] = I.useState(), s = I.useRef(null), u = it(t, s, i.\n onScrollbarYChange);\n return I.useEffect(() => {\n s.current && l(getComputedStyle(s.current));\n }, [s]), /* @__PURE__ */ U(\n C5,\n {\n \"data-orientation\": \"vertical\",\n ...a,\n ref: u,\n sizes: r,\n style: {\n top: 0,\n right: i.dir === \"ltr\" ? 0 : void 0,\n left: i.dir === \"rtl\" ? 0 : void 0,\n bottom: \"var(--radix-scroll-area-corner-height)\",\n \"--radix-scroll-area-thumb-height\": Zn(r) + \"px\",\n ...e.style\n },\n onThumbPointerDown: /* @__PURE__ */ o((f) => e.onThumbPointerDown(f.y), \"onThumbPointerDown\"),\n onDragScroll: /* @__PURE__ */ o((f) => e.onDragScroll(f.y), \"onDragScroll\"),\n onWheelScroll: /* @__PURE__ */ o((f, d) => {\n if (i.viewport) {\n let m = i.viewport.scrollTop + f.deltaY;\n e.onWheelScroll(m), z5(m, d) && f.preventDefault();\n }\n }, \"onWheelScroll\"),\n onResize: /* @__PURE__ */ o(() => {\n s.current && i.viewport && c && n({\n content: i.viewport.scrollHeight,\n viewport: i.viewport.offsetHeight,\n scrollbar: {\n size: s.current.clientHeight,\n paddingStart: Yn(c.paddingTop),\n paddingEnd: Yn(c.paddingBottom)\n }\n });\n }, \"onResize\")\n }\n );\n }), [Gm, S5] = w5(rt), C5 = I.forwardRef((e, t) => {\n let {\n __scopeScrollArea: r,\n sizes: n,\n hasThumb: a,\n onThumbChange: i,\n onThumbPointerUp: c,\n onThumbPointerDown: l,\n onThumbPositionChange: s,\n onDragScroll: u,\n onWheelScroll: f,\n onResize: d,\n ...m\n } = e, v = _e(rt, r), [R, p] = I.useState(null), h = it(t, (M) => p(M)), g = I.useRef(null), w = I.useRef(\"\"), b = v.viewport, x = n.content -\n n.viewport, E = xt(f), y = xt(s), S = Kn(d, 10);\n function L(M) {\n if (g.current) {\n let A = M.clientX - g.current.left, P = M.clientY - g.current.top;\n u({ x: A, y: P });\n }\n }\n return o(L, \"handleDragScroll\"), I.useEffect(() => {\n let M = /* @__PURE__ */ o((A) => {\n let P = A.target;\n R?.contains(P) && E(A, x);\n }, \"handleWheel\");\n return document.addEventListener(\"wheel\", M, { passive: !1 }), () => document.removeEventListener(\"wheel\", M, { passive: !1 });\n }, [b, R, x, E]), I.useEffect(y, [n, y]), br(R, S), br(v.content, S), /* @__PURE__ */ U(\n Gm,\n {\n scope: r,\n scrollbar: R,\n hasThumb: a,\n onThumbChange: xt(i),\n onThumbPointerUp: xt(c),\n onThumbPositionChange: y,\n onThumbPointerDown: xt(l),\n children: /* @__PURE__ */ U(\n gr.div,\n {\n ...m,\n ref: h,\n style: { position: \"absolute\", ...m.style },\n onPointerDown: Et(e.onPointerDown, (M) => {\n M.button === 0 && (M.target.setPointerCapture(M.pointerId), g.current = R.getBoundingClientRect(), w.current = document.body.style.\n webkitUserSelect, document.body.style.webkitUserSelect = \"none\", v.viewport && (v.viewport.style.scrollBehavior = \"auto\"), L(M));\n }),\n onPointerMove: Et(e.onPointerMove, L),\n onPointerUp: Et(e.onPointerUp, (M) => {\n let A = M.target;\n A.hasPointerCapture(M.pointerId) && A.releasePointerCapture(M.pointerId), document.body.style.webkitUserSelect = w.current, v.\n viewport && (v.viewport.style.scrollBehavior = \"\"), g.current = null;\n })\n }\n )\n }\n );\n }), Xn = \"ScrollAreaThumb\", M5 = I.forwardRef(\n (e, t) => {\n let { forceMount: r, ...n } = e, a = S5(Xn, e.__scopeScrollArea);\n return /* @__PURE__ */ U(vr, { present: r || a.hasThumb, children: /* @__PURE__ */ U(Xm, { ref: t, ...n }) });\n }\n ), Xm = I.forwardRef(\n (e, t) => {\n let { __scopeScrollArea: r, style: n, ...a } = e, i = _e(Xn, r), c = S5(Xn, r), { onThumbPositionChange: l } = c, s = it(\n t,\n (d) => c.onThumbChange(d)\n ), u = I.useRef(), f = Kn(() => {\n u.current && (u.current(), u.current = void 0);\n }, 100);\n return I.useEffect(() => {\n let d = i.viewport;\n if (d) {\n let m = /* @__PURE__ */ o(() => {\n if (f(), !u.current) {\n let v = Km(d, l);\n u.current = v, l();\n }\n }, \"handleScroll\");\n return l(), d.addEventListener(\"scroll\", m), () => d.removeEventListener(\"scroll\", m);\n }\n }, [i.viewport, f, l]), /* @__PURE__ */ U(\n gr.div,\n {\n \"data-state\": c.hasThumb ? \"visible\" : \"hidden\",\n ...a,\n ref: s,\n style: {\n width: \"var(--radix-scroll-area-thumb-width)\",\n height: \"var(--radix-scroll-area-thumb-height)\",\n ...n\n },\n onPointerDownCapture: Et(e.onPointerDownCapture, (d) => {\n let v = d.target.getBoundingClientRect(), R = d.clientX - v.left, p = d.clientY - v.top;\n c.onThumbPointerDown({ x: R, y: p });\n }),\n onPointerUp: Et(e.onPointerUp, c.onThumbPointerUp)\n }\n );\n }\n );\n M5.displayName = Xn;\n Ka = \"ScrollAreaCorner\", L5 = I.forwardRef(\n (e, t) => {\n let r = _e(Ka, e.__scopeScrollArea), n = !!(r.scrollbarX && r.scrollbarY);\n return r.type !== \"scroll\" && n ? /* @__PURE__ */ U(Ym, { ...e, ref: t }) : null;\n }\n );\n L5.displayName = Ka;\n Ym = I.forwardRef((e, t) => {\n let { __scopeScrollArea: r, ...n } = e, a = _e(Ka, r), [i, c] = I.useState(0), [l, s] = I.useState(0), u = !!(i && l);\n return br(a.scrollbarX, () => {\n let f = a.scrollbarX?.offsetHeight || 0;\n a.onCornerHeightChange(f), s(f);\n }), br(a.scrollbarY, () => {\n let f = a.scrollbarY?.offsetWidth || 0;\n a.onCornerWidthChange(f), c(f);\n }), u ? /* @__PURE__ */ U(\n gr.div,\n {\n ...n,\n ref: t,\n style: {\n width: i,\n height: l,\n position: \"absolute\",\n right: a.dir === \"ltr\" ? 0 : void 0,\n left: a.dir === \"rtl\" ? 0 : void 0,\n bottom: 0,\n ...e.style\n }\n }\n ) : null;\n });\n o(Yn, \"toInt\");\n o(A5, \"getThumbRatio\");\n o(Zn, \"getThumbSize\");\n o(Zm, \"getScrollPositionFromPointer\");\n o(g5, \"getThumbOffsetFromScroll\");\n o(I5, \"linearScale\");\n o(z5, \"isScrollingWithinScrollbarBounds\");\n Km = /* @__PURE__ */ o((e, t = () => {\n }) => {\n let r = { left: e.scrollLeft, top: e.scrollTop }, n = 0;\n return (/* @__PURE__ */ o(function a() {\n let i = { left: e.scrollLeft, top: e.scrollTop }, c = r.left !== i.left, l = r.top !== i.top;\n (c || l) && t(), r = i, n = window.requestAnimationFrame(a);\n }, \"loop\"))(), () => window.cancelAnimationFrame(n);\n }, \"addUnlinkedScrollListener\");\n o(Kn, \"useDebounceCallback\");\n o(br, \"useResizeObserver\");\n o(Jm, \"getSubtree\");\n T5 = b5, H5 = y5, P5 = x5, k5 = M5, O5 = L5;\n});\n\n// src/components/components/ScrollArea/ScrollArea.tsx\nimport Wt, { forwardRef as eh } from \"react\";\nimport { styled as Jn } from \"storybook/theming\";\nvar th, rh, N5, D5, Rr, Qn = C(() => {\n \"use strict\";\n B5();\n th = Jn(T5)(\n ({ scrollbarsize: e, offset: t }) => ({\n width: \"100%\",\n height: \"100%\",\n overflow: \"hidden\",\n \"--scrollbar-size\": `${e + t}px`,\n \"--radix-scroll-area-thumb-width\": `${e}px`\n })\n ), rh = Jn(H5)({\n width: \"100%\",\n height: \"100%\"\n }), N5 = Jn(P5)(({ offset: e, horizontal: t, vertical: r }) => ({\n display: \"flex\",\n userSelect: \"none\",\n // ensures no selection\n touchAction: \"none\",\n // disable browser handling of all panning and zooming gestures on touch devices\n background: \"transparent\",\n transition: \"all 0.2s ease-out\",\n borderRadius: \"var(--scrollbar-size)\",\n zIndex: 1,\n '&[data-orientation=\"vertical\"]': {\n width: \"var(--scrollbar-size)\",\n paddingRight: e,\n marginTop: e,\n marginBottom: t === \"true\" && r === \"true\" ? 0 : e\n },\n '&[data-orientation=\"horizontal\"]': {\n flexDirection: \"column\",\n height: \"var(--scrollbar-size)\",\n paddingBottom: e,\n marginLeft: e,\n marginRight: t === \"true\" && r === \"true\" ? 0 : e\n }\n })), D5 = Jn(k5)(({ theme: e }) => ({\n flex: 1,\n background: e.textMutedColor,\n opacity: 0.5,\n borderRadius: \"var(--scrollbar-size)\",\n position: \"relative\",\n transition: \"opacity 0.2s ease-out\",\n \"&:hover\": { opacity: 0.8 },\n /* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */\n \"::before\": {\n content: '\"\"',\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n transform: \"translate(-50%,-50%)\",\n width: \"100%\",\n height: \"100%\"\n }\n })), Rr = eh(\n ({ children: e, horizontal: t = !1, vertical: r = !1, offset: n = 2, scrollbarSize: a = 6, className: i }, c) => /* @__PURE__ */ Wt.createElement(\n th, { scrollbarsize: a, offset: n, className: i }, /* @__PURE__ */ Wt.createElement(rh, { ref: c }, e), t && /* @__PURE__ */ Wt.createElement(\n N5,\n {\n orientation: \"horizontal\",\n offset: n,\n horizontal: t.toString(),\n vertical: r.toString()\n },\n /* @__PURE__ */ Wt.createElement(D5, null)\n ), r && /* @__PURE__ */ Wt.createElement(\n N5,\n {\n orientation: \"vertical\",\n offset: n,\n horizontal: t.toString(),\n vertical: r.toString()\n },\n /* @__PURE__ */ Wt.createElement(D5, null)\n ), t && r && /* @__PURE__ */ Wt.createElement(O5, null))\n );\n Rr.displayName = \"ScrollArea\";\n});\n\n// src/components/components/syntaxhighlighter/syntaxhighlighter.tsx\nvar Qa = {};\nXr(Qa, {\n SyntaxHighlighter: () => ln,\n createCopyToClipboardFunction: () => Ja,\n default: () => gh,\n supportedLanguages: () => $5\n});\nimport an, { useCallback as nh, useEffect as oh, useState as F5 } from \"react\";\nimport { logger as ah } from \"storybook/internal/client-logger\";\nimport { global as ih } from \"@storybook/global\";\nimport { styled as to } from \"storybook/theming\";\nfunction Ja() {\n return eo.navigator?.clipboard ? async (e) => {\n try {\n await eo.top?.navigator.clipboard.writeText(e);\n } catch {\n await eo.navigator.clipboard.writeText(e);\n }\n } : async (e) => {\n let t = on.createElement(\"TEXTAREA\"), r = on.activeElement;\n t.value = e, on.body.appendChild(t), t.select(), on.execCommand(\"copy\"), on.body.removeChild(t), r.focus();\n };\n}\nvar _5, on, eo, $5, lh, ch, sh, uh, fh, dh, ph, V5, mh, hh, ln, gh, cn = C(() => {\n \"use strict\";\n _5 = me(Kr(), 1);\n t1();\n i1();\n s1();\n m1();\n b1();\n S1();\n A1();\n P1();\n B1();\n V1();\n U1();\n Z1();\n e1();\n ja();\n Qn();\n ({ document: on, window: eo } = ih), $5 = {\n jsextra: w1,\n jsx: L1,\n json: E1,\n yml: Y1,\n md: H1,\n bash: a1,\n css: c1,\n html: O1,\n tsx: $1,\n typescript: W1,\n graphql: p1\n };\n Object.entries($5).forEach(([e, t]) => {\n Wn.registerLanguage(e, t);\n });\n lh = (0, _5.default)(2)(\n (e) => Object.entries(e.code || {}).reduce((t, [r, n]) => ({ ...t, [`* .${r}`]: n }), {})\n ), ch = Ja();\n o(Ja, \"createCopyToClipboardFunction\");\n sh = to.div(\n ({ theme: e }) => ({\n position: \"relative\",\n overflow: \"hidden\",\n color: e.color.defaultText\n }),\n ({ theme: e, bordered: t }) => t ? {\n border: `1px solid ${e.appBorderColor}`,\n borderRadius: e.borderRadius,\n background: e.background.content\n } : {},\n ({ showLineNumbers: e }) => e ? {\n // use the before pseudo element to display line numbers\n \".react-syntax-highlighter-line-number::before\": {\n content: \"attr(data-line-number)\"\n }\n } : {}\n ), uh = /* @__PURE__ */ o(({ children: e, className: t }) => /* @__PURE__ */ an.createElement(Rr, { horizontal: !0, vertical: !0, className: t },\n e), \"UnstyledScroller\"), fh = to(uh)(\n {\n position: \"relative\"\n },\n ({ theme: e }) => lh(e)\n ), dh = to.pre(({ theme: e, padded: t }) => ({\n display: \"flex\",\n justifyContent: \"flex-start\",\n margin: 0,\n padding: t ? e.layoutMargin : 0\n })), ph = to.div(({ theme: e }) => ({\n flex: 1,\n paddingLeft: 2,\n // TODO: To match theming/global.ts for now\n paddingRight: e.layoutMargin,\n opacity: 1,\n fontFamily: e.typography.fonts.mono\n })), V5 = /* @__PURE__ */ o((e) => {\n let t = [...e.children], r = t[0], n = r.children[0].value, a = {\n ...r,\n // empty the line-number element\n children: [],\n properties: {\n ...r.properties,\n // add a data-line-number attribute to line-number element, so we can access the line number with `content: attr(data-line-number)`\n \"data-line-number\": n,\n // remove the 'userSelect: none' style, which will produce extra empty lines when copy-pasting in firefox\n style: { ...r.properties.style, userSelect: \"auto\" }\n }\n };\n return t[0] = a, { ...e, children: t };\n }, \"processLineNumber\"), mh = /* @__PURE__ */ o(({ rows: e, stylesheet: t, useInlineStyles: r }) => e.map((n, a) => _t({\n node: V5(n),\n stylesheet: t,\n useInlineStyles: r,\n key: `code-segement${a}`\n })), \"defaultRenderer\"), hh = /* @__PURE__ */ o((e, t) => t ? e ? ({ rows: r, ...n }) => e({ rows: r.map((a) => V5(a)), ...n }) : mh : e, \"\\\nwrapRenderer\"), ln = /* @__PURE__ */ o(({\n children: e,\n language: t = \"jsx\",\n copyable: r = !1,\n bordered: n = !1,\n padded: a = !1,\n format: i = !0,\n formatter: c = void 0,\n className: l = void 0,\n showLineNumbers: s = !1,\n ...u\n }) => {\n if (typeof e != \"string\" || !e.trim())\n return null;\n let [f, d] = F5(\"\");\n oh(() => {\n c ? c(i, e).then(d) : d(e.trim());\n }, [e, i, c]);\n let [m, v] = F5(!1), R = nh(\n (h) => {\n h.preventDefault(), ch(f).then(() => {\n v(!0), eo.setTimeout(() => v(!1), 1500);\n }).catch(ah.error);\n },\n [f]\n ), p = hh(u.renderer, s);\n return /* @__PURE__ */ an.createElement(\n sh,\n {\n bordered: n,\n padded: a,\n showLineNumbers: s,\n className: l\n },\n /* @__PURE__ */ an.createElement(fh, null, /* @__PURE__ */ an.createElement(\n Wn,\n {\n padded: a || n,\n language: t,\n showLineNumbers: s,\n showInlineLineNumbers: s,\n useInlineStyles: !1,\n PreTag: dh,\n CodeTag: ph,\n lineNumberContainerStyle: {},\n ...u,\n renderer: p\n },\n f\n )),\n r ? /* @__PURE__ */ an.createElement(Va, { actionItems: [{ title: m ? \"Copied\" : \"Copy\", onClick: R }] }) : null\n );\n }, \"SyntaxHighlighter\");\n ln.registerLanguage = (...e) => Wn.registerLanguage(...e);\n gh = ln;\n});\n\n// ../node_modules/ts-dedent/esm/index.js\nfunction Z5(e) {\n for (var t = [], r = 1; r < arguments.length; r++)\n t[r - 1] = arguments[r];\n var n = Array.from(typeof e == \"string\" ? [e] : e);\n n[n.length - 1] = n[n.length - 1].replace(/\\r?\\n([\\t ]*)$/, \"\");\n var a = n.reduce(function(l, s) {\n var u = s.match(/\\n([\\t ]+|(?!\\s).)/g);\n return u ? l.concat(u.map(function(f) {\n var d, m;\n return (m = (d = f.match(/[\\t ]/g)) === null || d === void 0 ? void 0 : d.length) !== null && m !== void 0 ? m : 0;\n })) : l;\n }, []);\n if (a.length) {\n var i = new RegExp(`\n[\t ]{` + Math.min.apply(Math, a) + \"}\", \"g\");\n n = n.map(function(l) {\n return l.replace(i, `\n`);\n });\n }\n n[0] = n[0].replace(/^\\r?\\n/, \"\");\n var c = n[0];\n return t.forEach(function(l, s) {\n var u = c.match(/(?:^|\\n)( *)$/), f = u ? u[1] : \"\", d = l;\n typeof l == \"string\" && l.includes(`\n`) && (d = String(l).split(`\n`).map(function(m, v) {\n return v === 0 ? m : \"\" + f + m;\n }).join(`\n`)), c += d + n[s + 1];\n }), c;\n}\nvar K5 = C(() => {\n o(Z5, \"dedent\");\n});\n\n// src/components/components/syntaxhighlighter/formatter.ts\nvar Q5 = {};\nXr(Q5, {\n formatter: () => Qh\n});\nvar J5, Qh, eu = C(() => {\n \"use strict\";\n J5 = me(Kr(), 1);\n K5();\n Qh = (0, J5.default)(2)(async (e, t) => e === !1 ? t : Z5(t));\n});\n\n// ../node_modules/react-popper/lib/esm/utils.js\nimport * as xo from \"react\";\nvar A0, I0, Of = C(() => {\n A0 = /* @__PURE__ */ o(function(t) {\n return t.reduce(function(r, n) {\n var a = n[0], i = n[1];\n return r[a] = i, r;\n }, {});\n }, \"fromEntries\"), I0 = typeof window < \"u\" && window.document && window.document.createElement ? xo.useLayoutEffect : xo.useEffect;\n});\n\n// ../node_modules/@popperjs/core/lib/enums.js\nvar te, le, ae, ne, Eo, Lt, ut, Kt, Bf, So, Hr, Nf, z0, Co, D7, F7, _7, $7, V7, j7, W7, U7, q7, Df, ke = C(() => {\n te = \"top\", le = \"bottom\", ae = \"right\", ne = \"left\", Eo = \"auto\", Lt = [te, le, ae, ne], ut = \"start\", Kt = \"end\", Bf = \"clippingParents\",\n So = \"viewport\", Hr = \"popper\", Nf = \"reference\", z0 = /* @__PURE__ */ Lt.reduce(function(e, t) {\n return e.concat([t + \"-\" + ut, t + \"-\" + Kt]);\n }, []), Co = /* @__PURE__ */ [].concat(Lt, [Eo]).reduce(function(e, t) {\n return e.concat([t, t + \"-\" + ut, t + \"-\" + Kt]);\n }, []), D7 = \"beforeRead\", F7 = \"read\", _7 = \"afterRead\", $7 = \"beforeMain\", V7 = \"main\", j7 = \"afterMain\", W7 = \"beforeWrite\", U7 = \"writ\\\ne\", q7 = \"afterWrite\", Df = [D7, F7, _7, $7, V7, j7, W7, U7, q7];\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\nfunction fe(e) {\n return e ? (e.nodeName || \"\").toLowerCase() : null;\n}\nvar At = C(() => {\n o(fe, \"getNodeName\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getWindow.js\nfunction Z(e) {\n if (e == null)\n return window;\n if (e.toString() !== \"[object Window]\") {\n var t = e.ownerDocument;\n return t && t.defaultView || window;\n }\n return e;\n}\nvar Je = C(() => {\n o(Z, \"getWindow\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\nfunction We(e) {\n var t = Z(e).Element;\n return e instanceof t || e instanceof Element;\n}\nfunction ce(e) {\n var t = Z(e).HTMLElement;\n return e instanceof t || e instanceof HTMLElement;\n}\nfunction Pr(e) {\n if (typeof ShadowRoot > \"u\")\n return !1;\n var t = Z(e).ShadowRoot;\n return e instanceof t || e instanceof ShadowRoot;\n}\nvar Oe = C(() => {\n Je();\n o(We, \"isElement\");\n o(ce, \"isHTMLElement\");\n o(Pr, \"isShadowRoot\");\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/applyStyles.js\nfunction G7(e) {\n var t = e.state;\n Object.keys(t.elements).forEach(function(r) {\n var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r];\n !ce(i) || !fe(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(c) {\n var l = a[c];\n l === !1 ? i.removeAttribute(c) : i.setAttribute(c, l === !0 ? \"\" : l);\n }));\n });\n}\nfunction X7(e) {\n var t = e.state, r = {\n popper: {\n position: t.options.strategy,\n left: \"0\",\n top: \"0\",\n margin: \"0\"\n },\n arrow: {\n position: \"absolute\"\n },\n reference: {}\n };\n return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow),\n function() {\n Object.keys(t.elements).forEach(function(n) {\n var a = t.elements[n], i = t.attributes[n] || {}, c = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = c.reduce(function(s, u) {\n return s[u] = \"\", s;\n }, {});\n !ce(a) || !fe(a) || (Object.assign(a.style, l), Object.keys(i).forEach(function(s) {\n a.removeAttribute(s);\n }));\n });\n };\n}\nvar Ff, _f = C(() => {\n At();\n Oe();\n o(G7, \"applyStyles\");\n o(X7, \"effect\");\n Ff = {\n name: \"applyStyles\",\n enabled: !0,\n phase: \"write\",\n fn: G7,\n effect: X7,\n requires: [\"computeStyles\"]\n };\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getBasePlacement.js\nfunction de(e) {\n return e.split(\"-\")[0];\n}\nvar It = C(() => {\n o(de, \"getBasePlacement\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/math.js\nvar Qe, Jt, ft, zt = C(() => {\n Qe = Math.max, Jt = Math.min, ft = Math.round;\n});\n\n// ../node_modules/@popperjs/core/lib/utils/userAgent.js\nfunction kr() {\n var e = navigator.userAgentData;\n return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {\n return t.brand + \"/\" + t.version;\n }).join(\" \") : navigator.userAgent;\n}\nvar T0 = C(() => {\n o(kr, \"getUAString\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js\nfunction hn() {\n return !/^((?!chrome|android).)*safari/i.test(kr());\n}\nvar H0 = C(() => {\n T0();\n o(hn, \"isLayoutViewport\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js\nfunction Ue(e, t, r) {\n t === void 0 && (t = !1), r === void 0 && (r = !1);\n var n = e.getBoundingClientRect(), a = 1, i = 1;\n t && ce(e) && (a = e.offsetWidth > 0 && ft(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && ft(n.height) / e.offsetHeight || 1);\n var c = We(e) ? Z(e) : window, l = c.visualViewport, s = !hn() && r, u = (n.left + (s && l ? l.offsetLeft : 0)) / a, f = (n.top + (s && l ?\n l.offsetTop : 0)) / i, d = n.width / a, m = n.height / i;\n return {\n width: d,\n height: m,\n top: f,\n right: u + d,\n bottom: f + m,\n left: u,\n x: u,\n y: f\n };\n}\nvar Or = C(() => {\n Oe();\n zt();\n Je();\n H0();\n o(Ue, \"getBoundingClientRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js\nfunction Qt(e) {\n var t = Ue(e), r = e.offsetWidth, n = e.offsetHeight;\n return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {\n x: e.offsetLeft,\n y: e.offsetTop,\n width: r,\n height: n\n };\n}\nvar Mo = C(() => {\n Or();\n o(Qt, \"getLayoutRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/contains.js\nfunction gn(e, t) {\n var r = t.getRootNode && t.getRootNode();\n if (e.contains(t))\n return !0;\n if (r && Pr(r)) {\n var n = t;\n do {\n if (n && e.isSameNode(n))\n return !0;\n n = n.parentNode || n.host;\n } while (n);\n }\n return !1;\n}\nvar P0 = C(() => {\n Oe();\n o(gn, \"contains\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\nfunction xe(e) {\n return Z(e).getComputedStyle(e);\n}\nvar Br = C(() => {\n Je();\n o(xe, \"getComputedStyle\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js\nfunction k0(e) {\n return [\"table\", \"td\", \"th\"].indexOf(fe(e)) >= 0;\n}\nvar $f = C(() => {\n At();\n o(k0, \"isTableElement\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\nfunction ge(e) {\n return ((We(e) ? e.ownerDocument : (\n // $FlowFixMe[prop-missing]\n e.document\n )) || window.document).documentElement;\n}\nvar dt = C(() => {\n Oe();\n o(ge, \"getDocumentElement\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js\nfunction pt(e) {\n return fe(e) === \"html\" ? e : (\n // this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n e.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n e.parentNode || // DOM Element detected\n (Pr(e) ? e.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n ge(e)\n );\n}\nvar vn = C(() => {\n At();\n dt();\n Oe();\n o(pt, \"getParentNode\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\nfunction Vf(e) {\n return !ce(e) || // https://github.com/popperjs/popper-core/issues/837\n xe(e).position === \"fixed\" ? null : e.offsetParent;\n}\nfunction Y7(e) {\n var t = /firefox/i.test(kr()), r = /Trident/i.test(kr());\n if (r && ce(e)) {\n var n = xe(e);\n if (n.position === \"fixed\")\n return null;\n }\n var a = pt(e);\n for (Pr(a) && (a = a.host); ce(a) && [\"html\", \"body\"].indexOf(fe(a)) < 0; ) {\n var i = xe(a);\n if (i.transform !== \"none\" || i.perspective !== \"none\" || i.contain === \"paint\" || [\"transform\", \"perspective\"].indexOf(i.willChange) !==\n -1 || t && i.willChange === \"filter\" || t && i.filter && i.filter !== \"none\")\n return a;\n a = a.parentNode;\n }\n return null;\n}\nfunction et(e) {\n for (var t = Z(e), r = Vf(e); r && k0(r) && xe(r).position === \"static\"; )\n r = Vf(r);\n return r && (fe(r) === \"html\" || fe(r) === \"body\" && xe(r).position === \"static\") ? t : r || Y7(e) || t;\n}\nvar Nr = C(() => {\n Je();\n At();\n Br();\n Oe();\n $f();\n vn();\n T0();\n o(Vf, \"getTrueOffsetParent\");\n o(Y7, \"getContainingBlock\");\n o(et, \"getOffsetParent\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js\nfunction er(e) {\n return [\"top\", \"bottom\"].indexOf(e) >= 0 ? \"x\" : \"y\";\n}\nvar Lo = C(() => {\n o(er, \"getMainAxisFromPlacement\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/within.js\nfunction tr(e, t, r) {\n return Qe(e, Jt(t, r));\n}\nfunction jf(e, t, r) {\n var n = tr(e, t, r);\n return n > r ? r : n;\n}\nvar O0 = C(() => {\n zt();\n o(tr, \"within\");\n o(jf, \"withinMaxClamp\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js\nfunction wn() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}\nvar B0 = C(() => {\n o(wn, \"getFreshSideObject\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js\nfunction bn(e) {\n return Object.assign({}, wn(), e);\n}\nvar N0 = C(() => {\n B0();\n o(bn, \"mergePaddingObject\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/expandToHashMap.js\nfunction Rn(e, t) {\n return t.reduce(function(r, n) {\n return r[n] = e, r;\n }, {});\n}\nvar D0 = C(() => {\n o(Rn, \"expandToHashMap\");\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/arrow.js\nfunction K7(e) {\n var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, c = r.modifiersData.popperOffsets, l = de(r.placement), s = er(l), u = [\n ne, ae].indexOf(l) >= 0, f = u ? \"height\" : \"width\";\n if (!(!i || !c)) {\n var d = Z7(a.padding, r), m = Qt(i), v = s === \"y\" ? te : ne, R = s === \"y\" ? le : ae, p = r.rects.reference[f] + r.rects.reference[s] -\n c[s] - r.rects.popper[f], h = c[s] - r.rects.reference[s], g = et(i), w = g ? s === \"y\" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, b = p /\n 2 - h / 2, x = d[v], E = w - m[f] - d[R], y = w / 2 - m[f] / 2 + b, S = tr(x, y, E), L = s;\n r.modifiersData[n] = (t = {}, t[L] = S, t.centerOffset = S - y, t);\n }\n}\nfunction J7(e) {\n var t = e.state, r = e.options, n = r.element, a = n === void 0 ? \"[data-popper-arrow]\" : n;\n a != null && (typeof a == \"string\" && (a = t.elements.popper.querySelector(a), !a) || gn(t.elements.popper, a) && (t.elements.arrow = a));\n}\nvar Z7, Wf, Uf = C(() => {\n It();\n Mo();\n P0();\n Nr();\n Lo();\n O0();\n N0();\n D0();\n ke();\n Z7 = /* @__PURE__ */ o(function(t, r) {\n return t = typeof t == \"function\" ? t(Object.assign({}, r.rects, {\n placement: r.placement\n })) : t, bn(typeof t != \"number\" ? t : Rn(t, Lt));\n }, \"toPaddingObject\");\n o(K7, \"arrow\");\n o(J7, \"effect\");\n Wf = {\n name: \"arrow\",\n enabled: !0,\n phase: \"main\",\n fn: K7,\n effect: J7,\n requires: [\"popperOffsets\"],\n requiresIfExists: [\"preventOverflow\"]\n };\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getVariation.js\nfunction qe(e) {\n return e.split(\"-\")[1];\n}\nvar Dr = C(() => {\n o(qe, \"getVariation\");\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/computeStyles.js\nfunction e3(e, t) {\n var r = e.x, n = e.y, a = t.devicePixelRatio || 1;\n return {\n x: ft(r * a) / a || 0,\n y: ft(n * a) / a || 0\n };\n}\nfunction qf(e) {\n var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, c = e.offsets, l = e.position, s = e.gpuAcceleration, u = e.adaptive,\n f = e.roundOffsets, d = e.isFixed, m = c.x, v = m === void 0 ? 0 : m, R = c.y, p = R === void 0 ? 0 : R, h = typeof f == \"function\" ? f({\n x: v,\n y: p\n }) : {\n x: v,\n y: p\n };\n v = h.x, p = h.y;\n var g = c.hasOwnProperty(\"x\"), w = c.hasOwnProperty(\"y\"), b = ne, x = te, E = window;\n if (u) {\n var y = et(r), S = \"clientHeight\", L = \"clientWidth\";\n if (y === Z(r) && (y = ge(r), xe(y).position !== \"static\" && l === \"absolute\" && (S = \"scrollHeight\", L = \"scrollWidth\")), y = y, a === te ||\n (a === ne || a === ae) && i === Kt) {\n x = le;\n var M = d && y === E && E.visualViewport ? E.visualViewport.height : (\n // $FlowFixMe[prop-missing]\n y[S]\n );\n p -= M - n.height, p *= s ? 1 : -1;\n }\n if (a === ne || (a === te || a === le) && i === Kt) {\n b = ae;\n var A = d && y === E && E.visualViewport ? E.visualViewport.width : (\n // $FlowFixMe[prop-missing]\n y[L]\n );\n v -= A - n.width, v *= s ? 1 : -1;\n }\n }\n var P = Object.assign({\n position: l\n }, u && Q7), _ = f === !0 ? e3({\n x: v,\n y: p\n }, Z(r)) : {\n x: v,\n y: p\n };\n if (v = _.x, p = _.y, s) {\n var F;\n return Object.assign({}, P, (F = {}, F[x] = w ? \"0\" : \"\", F[b] = g ? \"0\" : \"\", F.transform = (E.devicePixelRatio || 1) <= 1 ? \"translate\\\n(\" + v + \"px, \" + p + \"px)\" : \"translate3d(\" + v + \"px, \" + p + \"px, 0)\", F));\n }\n return Object.assign({}, P, (t = {}, t[x] = w ? p + \"px\" : \"\", t[b] = g ? v + \"px\" : \"\", t.transform = \"\", t));\n}\nfunction t3(e) {\n var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, c = i === void 0 ? !0 : i, l = r.roundOffsets,\n s = l === void 0 ? !0 : l, u = {\n placement: de(t.placement),\n variation: qe(t.placement),\n popper: t.elements.popper,\n popperRect: t.rects.popper,\n gpuAcceleration: a,\n isFixed: t.options.strategy === \"fixed\"\n };\n t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, qf(Object.assign({}, u, {\n offsets: t.modifiersData.popperOffsets,\n position: t.options.strategy,\n adaptive: c,\n roundOffsets: s\n })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, qf(Object.assign({}, u, {\n offsets: t.modifiersData.arrow,\n position: \"absolute\",\n adaptive: !1,\n roundOffsets: s\n })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {\n \"data-popper-placement\": t.placement\n });\n}\nvar Q7, Gf, Xf = C(() => {\n ke();\n Nr();\n Je();\n dt();\n Br();\n It();\n Dr();\n zt();\n Q7 = {\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\"\n };\n o(e3, \"roundOffsetsByDPR\");\n o(qf, \"mapToStyles\");\n o(t3, \"computeStyles\");\n Gf = {\n name: \"computeStyles\",\n enabled: !0,\n phase: \"beforeWrite\",\n fn: t3,\n data: {}\n };\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/eventListeners.js\nfunction r3(e) {\n var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, c = n.resize, l = c === void 0 ? !0 : c, s = Z(t.\n elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);\n return i && u.forEach(function(f) {\n f.addEventListener(\"scroll\", r.update, Ao);\n }), l && s.addEventListener(\"resize\", r.update, Ao), function() {\n i && u.forEach(function(f) {\n f.removeEventListener(\"scroll\", r.update, Ao);\n }), l && s.removeEventListener(\"resize\", r.update, Ao);\n };\n}\nvar Ao, Yf, Zf = C(() => {\n Je();\n Ao = {\n passive: !0\n };\n o(r3, \"effect\");\n Yf = {\n name: \"eventListeners\",\n enabled: !0,\n phase: \"write\",\n fn: /* @__PURE__ */ o(function() {\n }, \"fn\"),\n effect: r3,\n data: {}\n };\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js\nfunction Fr(e) {\n return e.replace(/left|right|bottom|top/g, function(t) {\n return n3[t];\n });\n}\nvar n3, Kf = C(() => {\n n3 = {\n left: \"right\",\n right: \"left\",\n bottom: \"top\",\n top: \"bottom\"\n };\n o(Fr, \"getOppositePlacement\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js\nfunction Io(e) {\n return e.replace(/start|end/g, function(t) {\n return o3[t];\n });\n}\nvar o3, Jf = C(() => {\n o3 = {\n start: \"end\",\n end: \"start\"\n };\n o(Io, \"getOppositeVariationPlacement\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js\nfunction rr(e) {\n var t = Z(e), r = t.pageXOffset, n = t.pageYOffset;\n return {\n scrollLeft: r,\n scrollTop: n\n };\n}\nvar zo = C(() => {\n Je();\n o(rr, \"getWindowScroll\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js\nfunction nr(e) {\n return Ue(ge(e)).left + rr(e).scrollLeft;\n}\nvar To = C(() => {\n Or();\n dt();\n zo();\n o(nr, \"getWindowScrollBarX\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js\nfunction F0(e, t) {\n var r = Z(e), n = ge(e), a = r.visualViewport, i = n.clientWidth, c = n.clientHeight, l = 0, s = 0;\n if (a) {\n i = a.width, c = a.height;\n var u = hn();\n (u || !u && t === \"fixed\") && (l = a.offsetLeft, s = a.offsetTop);\n }\n return {\n width: i,\n height: c,\n x: l + nr(e),\n y: s\n };\n}\nvar Qf = C(() => {\n Je();\n dt();\n To();\n H0();\n o(F0, \"getViewportRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js\nfunction _0(e) {\n var t, r = ge(e), n = rr(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Qe(r.scrollWidth, r.clientWidth, a ? a.scrollWidth :\n 0, a ? a.clientWidth : 0), c = Qe(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -n.scrollLeft + nr(\n e), s = -n.scrollTop;\n return xe(a || r).direction === \"rtl\" && (l += Qe(r.clientWidth, a ? a.clientWidth : 0) - i), {\n width: i,\n height: c,\n x: l,\n y: s\n };\n}\nvar ed = C(() => {\n dt();\n Br();\n To();\n zo();\n zt();\n o(_0, \"getDocumentRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js\nfunction or(e) {\n var t = xe(e), r = t.overflow, n = t.overflowX, a = t.overflowY;\n return /auto|scroll|overlay|hidden/.test(r + a + n);\n}\nvar Ho = C(() => {\n Br();\n o(or, \"isScrollParent\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js\nfunction Po(e) {\n return [\"html\", \"body\", \"#document\"].indexOf(fe(e)) >= 0 ? e.ownerDocument.body : ce(e) && or(e) ? e : Po(pt(e));\n}\nvar td = C(() => {\n vn();\n Ho();\n At();\n Oe();\n o(Po, \"getScrollParent\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js\nfunction Tt(e, t) {\n var r;\n t === void 0 && (t = []);\n var n = Po(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Z(n), c = a ? [i].concat(i.visualViewport || [], or(n) ? n :\n []) : n, l = t.concat(c);\n return a ? l : (\n // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n l.concat(Tt(pt(c)))\n );\n}\nvar $0 = C(() => {\n td();\n vn();\n Je();\n Ho();\n o(Tt, \"listScrollParents\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/rectToClientRect.js\nfunction _r(e) {\n return Object.assign({}, e, {\n left: e.x,\n top: e.y,\n right: e.x + e.width,\n bottom: e.y + e.height\n });\n}\nvar V0 = C(() => {\n o(_r, \"rectToClientRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js\nfunction a3(e, t) {\n var r = Ue(e, !1, t === \"fixed\");\n return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.\n width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;\n}\nfunction rd(e, t, r) {\n return t === So ? _r(F0(e, r)) : We(t) ? a3(t, r) : _r(_0(ge(e)));\n}\nfunction i3(e) {\n var t = Tt(pt(e)), r = [\"absolute\", \"fixed\"].indexOf(xe(e).position) >= 0, n = r && ce(e) ? et(e) : e;\n return We(n) ? t.filter(function(a) {\n return We(a) && gn(a, n) && fe(a) !== \"body\";\n }) : [];\n}\nfunction j0(e, t, r, n) {\n var a = t === \"clippingParents\" ? i3(e) : [].concat(t), i = [].concat(a, [r]), c = i[0], l = i.reduce(function(s, u) {\n var f = rd(e, u, n);\n return s.top = Qe(f.top, s.top), s.right = Jt(f.right, s.right), s.bottom = Jt(f.bottom, s.bottom), s.left = Qe(f.left, s.left), s;\n }, rd(e, c, n));\n return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;\n}\nvar nd = C(() => {\n ke();\n Qf();\n ed();\n $0();\n Nr();\n dt();\n Br();\n Oe();\n Or();\n vn();\n P0();\n At();\n V0();\n zt();\n o(a3, \"getInnerBoundingClientRect\");\n o(rd, \"getClientRectFromMixedType\");\n o(i3, \"getClippingParents\");\n o(j0, \"getClippingRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/computeOffsets.js\nfunction yn(e) {\n var t = e.reference, r = e.element, n = e.placement, a = n ? de(n) : null, i = n ? qe(n) : null, c = t.x + t.width / 2 - r.width / 2, l = t.\n y + t.height / 2 - r.height / 2, s;\n switch (a) {\n case te:\n s = {\n x: c,\n y: t.y - r.height\n };\n break;\n case le:\n s = {\n x: c,\n y: t.y + t.height\n };\n break;\n case ae:\n s = {\n x: t.x + t.width,\n y: l\n };\n break;\n case ne:\n s = {\n x: t.x - r.width,\n y: l\n };\n break;\n default:\n s = {\n x: t.x,\n y: t.y\n };\n }\n var u = a ? er(a) : null;\n if (u != null) {\n var f = u === \"y\" ? \"height\" : \"width\";\n switch (i) {\n case ut:\n s[u] = s[u] - (t[f] / 2 - r[f] / 2);\n break;\n case Kt:\n s[u] = s[u] + (t[f] / 2 - r[f] / 2);\n break;\n default:\n }\n }\n return s;\n}\nvar W0 = C(() => {\n It();\n Dr();\n Lo();\n ke();\n o(yn, \"computeOffsets\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/detectOverflow.js\nfunction tt(e, t) {\n t === void 0 && (t = {});\n var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, c = i === void 0 ? e.strategy : i, l = r.boundary, s = l ===\n void 0 ? Bf : l, u = r.rootBoundary, f = u === void 0 ? So : u, d = r.elementContext, m = d === void 0 ? Hr : d, v = r.altBoundary, R = v ===\n void 0 ? !1 : v, p = r.padding, h = p === void 0 ? 0 : p, g = bn(typeof h != \"number\" ? h : Rn(h, Lt)), w = m === Hr ? Nf : Hr, b = e.rects.\n popper, x = e.elements[R ? w : m], E = j0(We(x) ? x : x.contextElement || ge(e.elements.popper), s, f, c), y = Ue(e.elements.reference), S = yn(\n {\n reference: y,\n element: b,\n strategy: \"absolute\",\n placement: a\n }), L = _r(Object.assign({}, b, S)), M = m === Hr ? L : y, A = {\n top: E.top - M.top + g.top,\n bottom: M.bottom - E.bottom + g.bottom,\n left: E.left - M.left + g.left,\n right: M.right - E.right + g.right\n }, P = e.modifiersData.offset;\n if (m === Hr && P) {\n var _ = P[a];\n Object.keys(A).forEach(function(F) {\n var K = [ae, le].indexOf(F) >= 0 ? 1 : -1, T = [te, le].indexOf(F) >= 0 ? \"y\" : \"x\";\n A[F] += _[T] * K;\n });\n }\n return A;\n}\nvar xn = C(() => {\n nd();\n dt();\n Or();\n W0();\n V0();\n ke();\n Oe();\n N0();\n D0();\n o(tt, \"detectOverflow\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js\nfunction U0(e, t) {\n t === void 0 && (t = {});\n var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, c = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, u = s ===\n void 0 ? Co : s, f = qe(n), d = f ? l ? z0 : z0.filter(function(R) {\n return qe(R) === f;\n }) : Lt, m = d.filter(function(R) {\n return u.indexOf(R) >= 0;\n });\n m.length === 0 && (m = d);\n var v = m.reduce(function(R, p) {\n return R[p] = tt(e, {\n placement: p,\n boundary: a,\n rootBoundary: i,\n padding: c\n })[de(p)], R;\n }, {});\n return Object.keys(v).sort(function(R, p) {\n return v[R] - v[p];\n });\n}\nvar od = C(() => {\n Dr();\n ke();\n xn();\n It();\n o(U0, \"computeAutoPlacement\");\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/flip.js\nfunction l3(e) {\n if (de(e) === Eo)\n return [];\n var t = Fr(e);\n return [Io(e), t, Io(t)];\n}\nfunction c3(e) {\n var t = e.state, r = e.options, n = e.name;\n if (!t.modifiersData[n]._skip) {\n for (var a = r.mainAxis, i = a === void 0 ? !0 : a, c = r.altAxis, l = c === void 0 ? !0 : c, s = r.fallbackPlacements, u = r.padding, f = r.\n boundary, d = r.rootBoundary, m = r.altBoundary, v = r.flipVariations, R = v === void 0 ? !0 : v, p = r.allowedAutoPlacements, h = t.options.\n placement, g = de(h), w = g === h, b = s || (w || !R ? [Fr(h)] : l3(h)), x = [h].concat(b).reduce(function(pe, se) {\n return pe.concat(de(se) === Eo ? U0(t, {\n placement: se,\n boundary: f,\n rootBoundary: d,\n padding: u,\n flipVariations: R,\n allowedAutoPlacements: p\n }) : se);\n }, []), E = t.rects.reference, y = t.rects.popper, S = /* @__PURE__ */ new Map(), L = !0, M = x[0], A = 0; A < x.length; A++) {\n var P = x[A], _ = de(P), F = qe(P) === ut, K = [te, le].indexOf(_) >= 0, T = K ? \"width\" : \"height\", z = tt(t, {\n placement: P,\n boundary: f,\n rootBoundary: d,\n altBoundary: m,\n padding: u\n }), k = K ? F ? ae : ne : F ? le : te;\n E[T] > y[T] && (k = Fr(k));\n var V = Fr(k), D = [];\n if (i && D.push(z[_] <= 0), l && D.push(z[k] <= 0, z[V] <= 0), D.every(function(pe) {\n return pe;\n })) {\n M = P, L = !1;\n break;\n }\n S.set(P, D);\n }\n if (L)\n for (var j = R ? 3 : 1, O = /* @__PURE__ */ o(function(se) {\n var ue = x.find(function(ve) {\n var Se = S.get(ve);\n if (Se)\n return Se.slice(0, se).every(function(Ot) {\n return Ot;\n });\n });\n if (ue)\n return M = ue, \"break\";\n }, \"_loop\"), G = j; G > 0; G--) {\n var Ee = O(G);\n if (Ee === \"break\") break;\n }\n t.placement !== M && (t.modifiersData[n]._skip = !0, t.placement = M, t.reset = !0);\n }\n}\nvar ad, id = C(() => {\n Kf();\n It();\n Jf();\n xn();\n od();\n ke();\n Dr();\n o(l3, \"getExpandedFallbackPlacements\");\n o(c3, \"flip\");\n ad = {\n name: \"flip\",\n enabled: !0,\n phase: \"main\",\n fn: c3,\n requiresIfExists: [\"offset\"],\n data: {\n _skip: !1\n }\n };\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/hide.js\nfunction ld(e, t, r) {\n return r === void 0 && (r = {\n x: 0,\n y: 0\n }), {\n top: e.top - t.height - r.y,\n right: e.right - t.width + r.x,\n bottom: e.bottom - t.height + r.y,\n left: e.left - t.width - r.x\n };\n}\nfunction cd(e) {\n return [te, ae, le, ne].some(function(t) {\n return e[t] >= 0;\n });\n}\nfunction s3(e) {\n var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, c = tt(t, {\n elementContext: \"reference\"\n }), l = tt(t, {\n altBoundary: !0\n }), s = ld(c, n), u = ld(l, a, i), f = cd(s), d = cd(u);\n t.modifiersData[r] = {\n referenceClippingOffsets: s,\n popperEscapeOffsets: u,\n isReferenceHidden: f,\n hasPopperEscaped: d\n }, t.attributes.popper = Object.assign({}, t.attributes.popper, {\n \"data-popper-reference-hidden\": f,\n \"data-popper-escaped\": d\n });\n}\nvar sd, ud = C(() => {\n ke();\n xn();\n o(ld, \"getSideOffsets\");\n o(cd, \"isAnySideFullyClipped\");\n o(s3, \"hide\");\n sd = {\n name: \"hide\",\n enabled: !0,\n phase: \"main\",\n requiresIfExists: [\"preventOverflow\"],\n fn: s3\n };\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/offset.js\nfunction u3(e, t, r) {\n var n = de(e), a = [ne, te].indexOf(n) >= 0 ? -1 : 1, i = typeof r == \"function\" ? r(Object.assign({}, t, {\n placement: e\n })) : r, c = i[0], l = i[1];\n return c = c || 0, l = (l || 0) * a, [ne, ae].indexOf(n) >= 0 ? {\n x: l,\n y: c\n } : {\n x: c,\n y: l\n };\n}\nfunction f3(e) {\n var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, c = Co.reduce(function(f, d) {\n return f[d] = u3(d, t.rects, i), f;\n }, {}), l = c[t.placement], s = l.x, u = l.y;\n t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += u), t.modifiersData[n] =\n c;\n}\nvar fd, dd = C(() => {\n It();\n ke();\n o(u3, \"distanceAndSkiddingToXY\");\n o(f3, \"offset\");\n fd = {\n name: \"offset\",\n enabled: !0,\n phase: \"main\",\n requires: [\"popperOffsets\"],\n fn: f3\n };\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js\nfunction d3(e) {\n var t = e.state, r = e.name;\n t.modifiersData[r] = yn({\n reference: t.rects.reference,\n element: t.rects.popper,\n strategy: \"absolute\",\n placement: t.placement\n });\n}\nvar pd, md = C(() => {\n W0();\n o(d3, \"popperOffsets\");\n pd = {\n name: \"popperOffsets\",\n enabled: !0,\n phase: \"read\",\n fn: d3,\n data: {}\n };\n});\n\n// ../node_modules/@popperjs/core/lib/utils/getAltAxis.js\nfunction q0(e) {\n return e === \"x\" ? \"y\" : \"x\";\n}\nvar hd = C(() => {\n o(q0, \"getAltAxis\");\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js\nfunction p3(e) {\n var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, c = r.altAxis, l = c === void 0 ? !1 : c, s = r.boundary,\n u = r.rootBoundary, f = r.altBoundary, d = r.padding, m = r.tether, v = m === void 0 ? !0 : m, R = r.tetherOffset, p = R === void 0 ? 0 : R,\n h = tt(t, {\n boundary: s,\n rootBoundary: u,\n padding: d,\n altBoundary: f\n }), g = de(t.placement), w = qe(t.placement), b = !w, x = er(g), E = q0(x), y = t.modifiersData.popperOffsets, S = t.rects.reference, L = t.\n rects.popper, M = typeof p == \"function\" ? p(Object.assign({}, t.rects, {\n placement: t.placement\n })) : p, A = typeof M == \"number\" ? {\n mainAxis: M,\n altAxis: M\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, M), P = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, _ = {\n x: 0,\n y: 0\n };\n if (y) {\n if (i) {\n var F, K = x === \"y\" ? te : ne, T = x === \"y\" ? le : ae, z = x === \"y\" ? \"height\" : \"width\", k = y[x], V = k + h[K], D = k - h[T], j = v ?\n -L[z] / 2 : 0, O = w === ut ? S[z] : L[z], G = w === ut ? -L[z] : -S[z], Ee = t.elements.arrow, pe = v && Ee ? Qt(Ee) : {\n width: 0,\n height: 0\n }, se = t.modifiersData[\"arrow#persistent\"] ? t.modifiersData[\"arrow#persistent\"].padding : wn(), ue = se[K], ve = se[T], Se = tr(0, S[z],\n pe[z]), Ot = b ? S[z] / 2 - j - Se - ue - A.mainAxis : O - Se - ue - A.mainAxis, qr = b ? -S[z] / 2 + j + Se + ve + A.mainAxis : G + Se +\n ve + A.mainAxis, jo = t.elements.arrow && et(t.elements.arrow), fp = jo ? x === \"y\" ? jo.clientTop || 0 : jo.clientLeft || 0 : 0, xl = (F =\n P?.[x]) != null ? F : 0, dp = k + Ot - xl - fp, pp = k + qr - xl, El = tr(v ? Jt(V, dp) : V, k, v ? Qe(D, pp) : D);\n y[x] = El, _[x] = El - k;\n }\n if (l) {\n var Sl, mp = x === \"x\" ? te : ne, hp = x === \"x\" ? le : ae, Bt = y[E], Ln = E === \"y\" ? \"height\" : \"width\", Cl = Bt + h[mp], Ml = Bt -\n h[hp], Wo = [te, ne].indexOf(g) !== -1, Ll = (Sl = P?.[E]) != null ? Sl : 0, Al = Wo ? Cl : Bt - S[Ln] - L[Ln] - Ll + A.altAxis, Il = Wo ?\n Bt + S[Ln] + L[Ln] - Ll - A.altAxis : Ml, zl = v && Wo ? jf(Al, Bt, Il) : tr(v ? Al : Cl, Bt, v ? Il : Ml);\n y[E] = zl, _[E] = zl - Bt;\n }\n t.modifiersData[n] = _;\n }\n}\nvar gd, vd = C(() => {\n ke();\n It();\n Lo();\n hd();\n O0();\n Mo();\n Nr();\n xn();\n Dr();\n B0();\n zt();\n o(p3, \"preventOverflow\");\n gd = {\n name: \"preventOverflow\",\n enabled: !0,\n phase: \"main\",\n fn: p3,\n requiresIfExists: [\"offset\"]\n };\n});\n\n// ../node_modules/@popperjs/core/lib/modifiers/index.js\nvar G0 = C(() => {\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js\nfunction X0(e) {\n return {\n scrollLeft: e.scrollLeft,\n scrollTop: e.scrollTop\n };\n}\nvar wd = C(() => {\n o(X0, \"getHTMLElementScroll\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js\nfunction Y0(e) {\n return e === Z(e) || !ce(e) ? rr(e) : X0(e);\n}\nvar bd = C(() => {\n zo();\n Je();\n Oe();\n wd();\n o(Y0, \"getNodeScroll\");\n});\n\n// ../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js\nfunction m3(e) {\n var t = e.getBoundingClientRect(), r = ft(t.width) / e.offsetWidth || 1, n = ft(t.height) / e.offsetHeight || 1;\n return r !== 1 || n !== 1;\n}\nfunction Z0(e, t, r) {\n r === void 0 && (r = !1);\n var n = ce(t), a = ce(t) && m3(t), i = ge(t), c = Ue(e, a, r), l = {\n scrollLeft: 0,\n scrollTop: 0\n }, s = {\n x: 0,\n y: 0\n };\n return (n || !n && !r) && ((fe(t) !== \"body\" || // https://github.com/popperjs/popper-core/issues/1078\n or(i)) && (l = Y0(t)), ce(t) ? (s = Ue(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = nr(i))), {\n x: c.left + l.scrollLeft - s.x,\n y: c.top + l.scrollTop - s.y,\n width: c.width,\n height: c.height\n };\n}\nvar Rd = C(() => {\n Or();\n bd();\n At();\n Oe();\n To();\n dt();\n Ho();\n zt();\n o(m3, \"isElementScaled\");\n o(Z0, \"getCompositeRect\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/orderModifiers.js\nfunction h3(e) {\n var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];\n e.forEach(function(i) {\n t.set(i.name, i);\n });\n function a(i) {\n r.add(i.name);\n var c = [].concat(i.requires || [], i.requiresIfExists || []);\n c.forEach(function(l) {\n if (!r.has(l)) {\n var s = t.get(l);\n s && a(s);\n }\n }), n.push(i);\n }\n return o(a, \"sort\"), e.forEach(function(i) {\n r.has(i.name) || a(i);\n }), n;\n}\nfunction K0(e) {\n var t = h3(e);\n return Df.reduce(function(r, n) {\n return r.concat(t.filter(function(a) {\n return a.phase === n;\n }));\n }, []);\n}\nvar yd = C(() => {\n ke();\n o(h3, \"order\");\n o(K0, \"orderModifiers\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/debounce.js\nfunction J0(e) {\n var t;\n return function() {\n return t || (t = new Promise(function(r) {\n Promise.resolve().then(function() {\n t = void 0, r(e());\n });\n })), t;\n };\n}\nvar xd = C(() => {\n o(J0, \"debounce\");\n});\n\n// ../node_modules/@popperjs/core/lib/utils/mergeByName.js\nfunction Q0(e) {\n var t = e.reduce(function(r, n) {\n var a = r[n.name];\n return r[n.name] = a ? Object.assign({}, a, n, {\n options: Object.assign({}, a.options, n.options),\n data: Object.assign({}, a.data, n.data)\n }) : n, r;\n }, {});\n return Object.keys(t).map(function(r) {\n return t[r];\n });\n}\nvar Ed = C(() => {\n o(Q0, \"mergeByName\");\n});\n\n// ../node_modules/@popperjs/core/lib/createPopper.js\nfunction Cd() {\n for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)\n t[r] = arguments[r];\n return !t.some(function(n) {\n return !(n && typeof n.getBoundingClientRect == \"function\");\n });\n}\nfunction Md(e) {\n e === void 0 && (e = {});\n var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? Sd : a;\n return /* @__PURE__ */ o(function(l, s, u) {\n u === void 0 && (u = i);\n var f = {\n placement: \"bottom\",\n orderedModifiers: [],\n options: Object.assign({}, Sd, i),\n modifiersData: {},\n elements: {\n reference: l,\n popper: s\n },\n attributes: {},\n styles: {}\n }, d = [], m = !1, v = {\n state: f,\n setOptions: /* @__PURE__ */ o(function(g) {\n var w = typeof g == \"function\" ? g(f.options) : g;\n p(), f.options = Object.assign({}, i, f.options, w), f.scrollParents = {\n reference: We(l) ? Tt(l) : l.contextElement ? Tt(l.contextElement) : [],\n popper: Tt(s)\n };\n var b = K0(Q0([].concat(n, f.options.modifiers)));\n return f.orderedModifiers = b.filter(function(x) {\n return x.enabled;\n }), R(), v.update();\n }, \"setOptions\"),\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: /* @__PURE__ */ o(function() {\n if (!m) {\n var g = f.elements, w = g.reference, b = g.popper;\n if (Cd(w, b)) {\n f.rects = {\n reference: Z0(w, et(b), f.options.strategy === \"fixed\"),\n popper: Qt(b)\n }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(A) {\n return f.modifiersData[A.name] = Object.assign({}, A.data);\n });\n for (var x = 0; x < f.orderedModifiers.length; x++) {\n if (f.reset === !0) {\n f.reset = !1, x = -1;\n continue;\n }\n var E = f.orderedModifiers[x], y = E.fn, S = E.options, L = S === void 0 ? {} : S, M = E.name;\n typeof y == \"function\" && (f = y({\n state: f,\n options: L,\n name: M,\n instance: v\n }) || f);\n }\n }\n }\n }, \"forceUpdate\"),\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: J0(function() {\n return new Promise(function(h) {\n v.forceUpdate(), h(f);\n });\n }),\n destroy: /* @__PURE__ */ o(function() {\n p(), m = !0;\n }, \"destroy\")\n };\n if (!Cd(l, s))\n return v;\n v.setOptions(u).then(function(h) {\n !m && u.onFirstUpdate && u.onFirstUpdate(h);\n });\n function R() {\n f.orderedModifiers.forEach(function(h) {\n var g = h.name, w = h.options, b = w === void 0 ? {} : w, x = h.effect;\n if (typeof x == \"function\") {\n var E = x({\n state: f,\n name: g,\n instance: v,\n options: b\n }), y = /* @__PURE__ */ o(function() {\n }, \"noopFn\");\n d.push(E || y);\n }\n });\n }\n o(R, \"runModifierEffects\");\n function p() {\n d.forEach(function(h) {\n return h();\n }), d = [];\n }\n return o(p, \"cleanupModifierEffects\"), v;\n }, \"createPopper\");\n}\nvar Sd, Ld = C(() => {\n Rd();\n Mo();\n $0();\n Nr();\n yd();\n xd();\n Ed();\n Oe();\n Sd = {\n placement: \"bottom\",\n modifiers: [],\n strategy: \"absolute\"\n };\n o(Cd, \"areValidElements\");\n o(Md, \"popperGenerator\");\n});\n\n// ../node_modules/@popperjs/core/lib/popper.js\nvar g3, el, Ad = C(() => {\n Ld();\n Zf();\n md();\n Xf();\n _f();\n dd();\n id();\n vd();\n Uf();\n ud();\n G0();\n g3 = [Yf, pd, Gf, Ff, fd, ad, gd, Wf, sd], el = /* @__PURE__ */ Md({\n defaultModifiers: g3\n });\n});\n\n// ../node_modules/@popperjs/core/lib/index.js\nvar Id = C(() => {\n ke();\n G0();\n Ad();\n});\n\n// ../node_modules/react-fast-compare/index.js\nvar Td = H((TH, zd) => {\n var v3 = typeof Element < \"u\", w3 = typeof Map == \"function\", b3 = typeof Set == \"function\", R3 = typeof ArrayBuffer == \"function\" && !!ArrayBuffer.\n isView;\n function ko(e, t) {\n if (e === t) return !0;\n if (e && t && typeof e == \"object\" && typeof t == \"object\") {\n if (e.constructor !== t.constructor) return !1;\n var r, n, a;\n if (Array.isArray(e)) {\n if (r = e.length, r != t.length) return !1;\n for (n = r; n-- !== 0; )\n if (!ko(e[n], t[n])) return !1;\n return !0;\n }\n var i;\n if (w3 && e instanceof Map && t instanceof Map) {\n if (e.size !== t.size) return !1;\n for (i = e.entries(); !(n = i.next()).done; )\n if (!t.has(n.value[0])) return !1;\n for (i = e.entries(); !(n = i.next()).done; )\n if (!ko(n.value[1], t.get(n.value[0]))) return !1;\n return !0;\n }\n if (b3 && e instanceof Set && t instanceof Set) {\n if (e.size !== t.size) return !1;\n for (i = e.entries(); !(n = i.next()).done; )\n if (!t.has(n.value[0])) return !1;\n return !0;\n }\n if (R3 && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {\n if (r = e.length, r != t.length) return !1;\n for (n = r; n-- !== 0; )\n if (e[n] !== t[n]) return !1;\n return !0;\n }\n if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;\n if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == \"function\" && typeof t.valueOf == \"function\") return e.valueOf() ===\n t.valueOf();\n if (e.toString !== Object.prototype.toString && typeof e.toString == \"function\" && typeof t.toString == \"function\") return e.toString() ===\n t.toString();\n if (a = Object.keys(e), r = a.length, r !== Object.keys(t).length) return !1;\n for (n = r; n-- !== 0; )\n if (!Object.prototype.hasOwnProperty.call(t, a[n])) return !1;\n if (v3 && e instanceof Element) return !1;\n for (n = r; n-- !== 0; )\n if (!((a[n] === \"_owner\" || a[n] === \"__v\" || a[n] === \"__o\") && e.$$typeof) && !ko(e[a[n]], t[a[n]]))\n return !1;\n return !0;\n }\n return e !== e && t !== t;\n }\n o(ko, \"equal\");\n zd.exports = /* @__PURE__ */ o(function(t, r) {\n try {\n return ko(t, r);\n } catch (n) {\n if ((n.message || \"\").match(/stack|recursion/i))\n return console.warn(\"react-fast-compare cannot handle circular refs\"), !1;\n throw n;\n }\n }, \"isEqual\");\n});\n\n// ../node_modules/react-popper/lib/esm/usePopper.js\nimport * as Ht from \"react\";\nimport * as Hd from \"react-dom\";\nvar Pd, y3, tl, kd = C(() => {\n Id();\n Pd = me(Td());\n Of();\n y3 = [], tl = /* @__PURE__ */ o(function(t, r, n) {\n n === void 0 && (n = {});\n var a = Ht.useRef(null), i = {\n onFirstUpdate: n.onFirstUpdate,\n placement: n.placement || \"bottom\",\n strategy: n.strategy || \"absolute\",\n modifiers: n.modifiers || y3\n }, c = Ht.useState({\n styles: {\n popper: {\n position: i.strategy,\n left: \"0\",\n top: \"0\"\n },\n arrow: {\n position: \"absolute\"\n }\n },\n attributes: {}\n }), l = c[0], s = c[1], u = Ht.useMemo(function() {\n return {\n name: \"updateState\",\n enabled: !0,\n phase: \"write\",\n fn: /* @__PURE__ */ o(function(v) {\n var R = v.state, p = Object.keys(R.elements);\n Hd.flushSync(function() {\n s({\n styles: A0(p.map(function(h) {\n return [h, R.styles[h] || {}];\n })),\n attributes: A0(p.map(function(h) {\n return [h, R.attributes[h]];\n }))\n });\n });\n }, \"fn\"),\n requires: [\"computeStyles\"]\n };\n }, []), f = Ht.useMemo(function() {\n var m = {\n onFirstUpdate: i.onFirstUpdate,\n placement: i.placement,\n strategy: i.strategy,\n modifiers: [].concat(i.modifiers, [u, {\n name: \"applyStyles\",\n enabled: !1\n }])\n };\n return (0, Pd.default)(a.current, m) ? a.current || m : (a.current = m, m);\n }, [i.onFirstUpdate, i.placement, i.strategy, i.modifiers, u]), d = Ht.useRef();\n return I0(function() {\n d.current && d.current.setOptions(f);\n }, [f]), I0(function() {\n if (!(t == null || r == null)) {\n var m = n.createPopper || el, v = m(t, r, f);\n return d.current = v, function() {\n v.destroy(), d.current = null;\n };\n }\n }, [t, r, n.createPopper]), {\n state: d.current ? d.current.state : null,\n styles: l.styles,\n attributes: l.attributes,\n update: d.current ? d.current.update : null,\n forceUpdate: d.current ? d.current.forceUpdate : null\n };\n }, \"usePopper\");\n});\n\n// ../node_modules/react-popper/lib/esm/index.js\nvar Od = C(() => {\n kd();\n});\n\n// ../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js\nimport * as $ from \"react\";\nfunction Dd(e) {\n var t = $.useRef(e);\n return t.current = e, $.useCallback(function() {\n return t.current;\n }, []);\n}\nfunction E3(e) {\n var t = e.initial, r = e.value, n = e.onChange, a = n === void 0 ? x3 : n;\n if (t === void 0 && r === void 0)\n throw new TypeError('Either \"value\" or \"initial\" variable must be set. Now both are undefined');\n var i = $.useState(t), c = i[0], l = i[1], s = Dd(c), u = $.useCallback(function(d) {\n var m = s(), v = typeof d == \"function\" ? d(m) : d;\n typeof v.persist == \"function\" && v.persist(), l(v), typeof a == \"function\" && a(v);\n }, [s, a]), f = r !== void 0;\n return [f ? r : c, f ? a : u];\n}\nfunction Fd(e, t) {\n return e === void 0 && (e = 0), t === void 0 && (t = 0), function() {\n return {\n width: 0,\n height: 0,\n top: t,\n right: e,\n bottom: t,\n left: e,\n x: 0,\n y: 0,\n toJSON: /* @__PURE__ */ o(function() {\n return null;\n }, \"toJSON\")\n };\n };\n}\nfunction _d(e, t) {\n var r, n, a;\n e === void 0 && (e = {}), t === void 0 && (t = {});\n var i = Object.keys(Nd).reduce(function(T, z) {\n var k;\n return W({}, T, (k = {}, k[z] = T[z] !== void 0 ? T[z] : Nd[z], k));\n }, e), c = $.useMemo(\n function() {\n return [{\n name: \"offset\",\n options: {\n offset: i.offset\n }\n }];\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(i.offset) ? i.offset : []\n ), l = W({}, t, {\n placement: t.placement || i.placement,\n modifiers: t.modifiers || c\n }), s = $.useState(null), u = s[0], f = s[1], d = $.useState(null), m = d[0], v = d[1], R = E3({\n initial: i.defaultVisible,\n value: i.visible,\n onChange: i.onVisibleChange\n }), p = R[0], h = R[1], g = $.useRef();\n $.useEffect(function() {\n return function() {\n return clearTimeout(g.current);\n };\n }, []);\n var w = tl(i.followCursor ? Bd : u, m, l), b = w.styles, x = w.attributes, E = ur(w, S3), y = E.update, S = Dd({\n visible: p,\n triggerRef: u,\n tooltipRef: m,\n finalConfig: i\n }), L = $.useCallback(\n function(T) {\n return Array.isArray(i.trigger) ? i.trigger.includes(T) : i.trigger === T;\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(i.trigger) ? i.trigger : [i.trigger]\n ), M = $.useCallback(function() {\n clearTimeout(g.current), g.current = window.setTimeout(function() {\n return h(!1);\n }, i.delayHide);\n }, [i.delayHide, h]), A = $.useCallback(function() {\n clearTimeout(g.current), g.current = window.setTimeout(function() {\n return h(!0);\n }, i.delayShow);\n }, [i.delayShow, h]), P = $.useCallback(function() {\n S().visible ? M() : A();\n }, [S, M, A]);\n $.useEffect(function() {\n if (S().finalConfig.closeOnOutsideClick) {\n var T = /* @__PURE__ */ o(function(k) {\n var V, D = S(), j = D.tooltipRef, O = D.triggerRef, G = (k.composedPath == null || (V = k.composedPath()) == null ? void 0 : V[0]) ||\n k.target;\n G instanceof Node && j != null && O != null && !j.contains(G) && !O.contains(G) && M();\n }, \"handleClickOutside\");\n return document.addEventListener(\"mousedown\", T), function() {\n return document.removeEventListener(\"mousedown\", T);\n };\n }\n }, [S, M]), $.useEffect(function() {\n if (!(u == null || !L(\"click\")))\n return u.addEventListener(\"click\", P), function() {\n return u.removeEventListener(\"click\", P);\n };\n }, [u, L, P]), $.useEffect(function() {\n if (!(u == null || !L(\"double-click\")))\n return u.addEventListener(\"dblclick\", P), function() {\n return u.removeEventListener(\"dblclick\", P);\n };\n }, [u, L, P]), $.useEffect(function() {\n if (!(u == null || !L(\"right-click\"))) {\n var T = /* @__PURE__ */ o(function(k) {\n k.preventDefault(), P();\n }, \"preventDefaultAndToggle\");\n return u.addEventListener(\"contextmenu\", T), function() {\n return u.removeEventListener(\"contextmenu\", T);\n };\n }\n }, [u, L, P]), $.useEffect(function() {\n if (!(u == null || !L(\"focus\")))\n return u.addEventListener(\"focus\", A), u.addEventListener(\"blur\", M), function() {\n u.removeEventListener(\"focus\", A), u.removeEventListener(\"blur\", M);\n };\n }, [u, L, A, M]), $.useEffect(function() {\n if (!(u == null || !L(\"hover\")))\n return u.addEventListener(\"mouseenter\", A), u.addEventListener(\"mouseleave\", M), function() {\n u.removeEventListener(\"mouseenter\", A), u.removeEventListener(\"mouseleave\", M);\n };\n }, [u, L, A, M]), $.useEffect(function() {\n if (!(m == null || !L(\"hover\") || !S().finalConfig.interactive))\n return m.addEventListener(\"mouseenter\", A), m.addEventListener(\"mouseleave\", M), function() {\n m.removeEventListener(\"mouseenter\", A), m.removeEventListener(\"mouseleave\", M);\n };\n }, [m, L, A, M, S]);\n var _ = E == null || (r = E.state) == null || (n = r.modifiersData) == null || (a = n.hide) == null ? void 0 : a.isReferenceHidden;\n $.useEffect(function() {\n i.closeOnTriggerHidden && _ && M();\n }, [i.closeOnTriggerHidden, M, _]), $.useEffect(function() {\n if (!i.followCursor || u == null) return;\n function T(z) {\n var k = z.clientX, V = z.clientY;\n Bd.getBoundingClientRect = Fd(k, V), y?.();\n }\n return o(T, \"setMousePosition\"), u.addEventListener(\"mousemove\", T), function() {\n return u.removeEventListener(\"mousemove\", T);\n };\n }, [i.followCursor, u, y]), $.useEffect(function() {\n if (!(m == null || y == null || i.mutationObserverOptions == null)) {\n var T = new MutationObserver(y);\n return T.observe(m, i.mutationObserverOptions), function() {\n return T.disconnect();\n };\n }\n }, [i.mutationObserverOptions, m, y]);\n var F = /* @__PURE__ */ o(function(z) {\n return z === void 0 && (z = {}), W({}, z, {\n style: W({}, z.style, b.popper)\n }, x.popper, {\n \"data-popper-interactive\": i.interactive\n });\n }, \"getTooltipProps\"), K = /* @__PURE__ */ o(function(z) {\n return z === void 0 && (z = {}), W({}, z, x.arrow, {\n style: W({}, z.style, b.arrow),\n \"data-popper-arrow\": !0\n });\n }, \"getArrowProps\");\n return W({\n getArrowProps: K,\n getTooltipProps: F,\n setTooltipRef: v,\n setTriggerRef: f,\n tooltipRef: m,\n triggerRef: u,\n visible: p\n }, E);\n}\nvar x3, S3, Bd, Nd, $d = C(() => {\n Pn();\n Yr();\n Od();\n o(Dd, \"useGetLatest\");\n x3 = /* @__PURE__ */ o(function() {\n }, \"noop\");\n o(E3, \"useControlledState\");\n o(Fd, \"generateBoundingClientRect\");\n S3 = [\"styles\", \"attributes\"], Bd = {\n getBoundingClientRect: Fd()\n }, Nd = {\n closeOnOutsideClick: !0,\n closeOnTriggerHidden: !1,\n defaultVisible: !1,\n delayHide: 0,\n delayShow: 0,\n followCursor: !1,\n interactive: !1,\n mutationObserverOptions: {\n attributes: !0,\n childList: !0,\n subtree: !0\n },\n offset: [0, 6],\n trigger: \"hover\"\n };\n o(_d, \"usePopperTooltip\");\n});\n\n// src/components/components/tooltip/Tooltip.tsx\nimport rl from \"react\";\nimport { lighten as En, styled as jd } from \"storybook/theming\";\nvar Vd, Ge, Pt, C3, M3, nl, Wd = C(() => {\n \"use strict\";\n Vd = me(Kr(), 1), Ge = (0, Vd.default)(1e3)(\n (e, t, r, n = 0) => t.split(\"-\")[0] === e ? r : n\n ), Pt = 8, C3 = jd.div(\n {\n position: \"absolute\",\n borderStyle: \"solid\"\n },\n ({ placement: e }) => {\n let t = 0, r = 0;\n switch (!0) {\n case (e.startsWith(\"left\") || e.startsWith(\"right\")): {\n r = 8;\n break;\n }\n case (e.startsWith(\"top\") || e.startsWith(\"bottom\")): {\n t = 8;\n break;\n }\n default:\n }\n return { transform: `translate3d(${t}px, ${r}px, 0px)` };\n },\n ({ theme: e, color: t, placement: r }) => ({\n bottom: `${Ge(\"top\", r, `${Pt * -1}px`, \"auto\")}`,\n top: `${Ge(\"bottom\", r, `${Pt * -1}px`, \"auto\")}`,\n right: `${Ge(\"left\", r, `${Pt * -1}px`, \"auto\")}`,\n left: `${Ge(\"right\", r, `${Pt * -1}px`, \"auto\")}`,\n borderBottomWidth: `${Ge(\"top\", r, \"0\", Pt)}px`,\n borderTopWidth: `${Ge(\"bottom\", r, \"0\", Pt)}px`,\n borderRightWidth: `${Ge(\"left\", r, \"0\", Pt)}px`,\n borderLeftWidth: `${Ge(\"right\", r, \"0\", Pt)}px`,\n borderTopColor: Ge(\n \"top\",\n r,\n e.color[t] || t || e.base === \"light\" ? En(e.background.app) : e.background.app,\n \"transparent\"\n ),\n borderBottomColor: Ge(\n \"bottom\",\n r,\n e.color[t] || t || e.base === \"light\" ? En(e.background.app) : e.background.app,\n \"transparent\"\n ),\n borderLeftColor: Ge(\n \"left\",\n r,\n e.color[t] || t || e.base === \"light\" ? En(e.background.app) : e.background.app,\n \"transparent\"\n ),\n borderRightColor: Ge(\n \"right\",\n r,\n e.color[t] || t || e.base === \"light\" ? En(e.background.app) : e.background.app,\n \"transparent\"\n )\n })\n ), M3 = jd.div(\n ({ hidden: e }) => ({\n display: e ? \"none\" : \"inline-block\",\n zIndex: 2147483647\n }),\n ({ theme: e, color: t, hasChrome: r }) => r ? {\n background: t && e.color[t] || t || e.base === \"light\" ? En(e.background.app) : e.background.app,\n filter: `\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n `,\n borderRadius: e.appBorderRadius + 2,\n fontSize: e.typography.size.s1\n } : {}\n ), nl = rl.forwardRef(\n ({\n placement: e = \"top\",\n hasChrome: t = !0,\n children: r,\n arrowProps: n = {},\n tooltipRef: a,\n color: i,\n withArrows: c,\n ...l\n }, s) => /* @__PURE__ */ rl.createElement(M3, { \"data-testid\": \"tooltip\", hasChrome: t, ref: s, ...l, color: i }, t && c && /* @__PURE__ */ rl.\n createElement(C3, { placement: e, ...n, color: i }), r)\n );\n nl.displayName = \"Tooltip\";\n});\n\n// src/components/components/tooltip/WithTooltip.tsx\nvar al = {};\nXr(al, {\n WithToolTipState: () => ol,\n WithTooltip: () => ol,\n WithTooltipPure: () => qd\n});\nimport Sn, { useCallback as L3, useEffect as A3, useState as I3 } from \"react\";\nimport z3 from \"react-dom\";\nimport { global as T3 } from \"@storybook/global\";\nimport { styled as Ud } from \"storybook/theming\";\nvar Oo, H3, P3, qd, ol, Bo = C(() => {\n \"use strict\";\n $d();\n Wd();\n ({ document: Oo } = T3), H3 = Ud.div`\n display: inline-block;\n cursor: ${(e) => e.trigger === \"hover\" || e.trigger?.includes(\"hover\") ? \"default\" : \"pointer\"};\n`, P3 = Ud.g`\n cursor: ${(e) => e.trigger === \"hover\" || e.trigger?.includes(\"hover\") ? \"default\" : \"pointer\"};\n`, qd = /* @__PURE__ */ o(({\n svg: e = !1,\n trigger: t = \"click\",\n closeOnOutsideClick: r = !1,\n placement: n = \"top\",\n modifiers: a = [\n {\n name: \"preventOverflow\",\n options: {\n padding: 8\n }\n },\n {\n name: \"offset\",\n options: {\n offset: [8, 8]\n }\n },\n {\n name: \"arrow\",\n options: {\n padding: 8\n }\n }\n ],\n hasChrome: i = !0,\n defaultVisible: c = !1,\n withArrows: l,\n offset: s,\n tooltip: u,\n children: f,\n closeOnTriggerHidden: d,\n mutationObserverOptions: m,\n delayHide: v = t === \"hover\" ? 200 : 0,\n visible: R,\n interactive: p,\n delayShow: h = t === \"hover\" ? 400 : 0,\n strategy: g,\n followCursor: w,\n onVisibleChange: b,\n ...x\n }) => {\n let E = e ? P3 : H3, {\n getArrowProps: y,\n getTooltipProps: S,\n setTooltipRef: L,\n setTriggerRef: M,\n visible: A,\n state: P\n } = _d(\n {\n trigger: t,\n placement: n,\n defaultVisible: c,\n delayHide: v,\n interactive: p,\n closeOnOutsideClick: r,\n closeOnTriggerHidden: d,\n onVisibleChange: b,\n delayShow: h,\n followCursor: w,\n mutationObserverOptions: m,\n visible: R,\n offset: s\n },\n {\n modifiers: a,\n strategy: g\n }\n ), _ = A ? /* @__PURE__ */ Sn.createElement(\n nl,\n {\n placement: P?.placement,\n ref: L,\n hasChrome: i,\n arrowProps: y(),\n withArrows: l,\n ...S()\n },\n typeof u == \"function\" ? u({ onHide: /* @__PURE__ */ o(() => b(!1), \"onHide\") }) : u\n ) : null;\n return /* @__PURE__ */ Sn.createElement(Sn.Fragment, null, /* @__PURE__ */ Sn.createElement(E, { trigger: t, ref: M, ...x }, f), A && z3.\n createPortal(_, Oo.body));\n }, \"WithTooltipPure\"), ol = /* @__PURE__ */ o(({\n startOpen: e = !1,\n onVisibleChange: t,\n ...r\n }) => {\n let [n, a] = I3(e), i = L3(\n (c) => {\n t && t(c) === !1 || a(c);\n },\n [t]\n );\n return A3(() => {\n let c = /* @__PURE__ */ o(() => i(!1), \"hide\");\n Oo.addEventListener(\"keydown\", c, !1);\n let l = Array.from(Oo.getElementsByTagName(\"iframe\")), s = [];\n return l.forEach((u) => {\n let f = /* @__PURE__ */ o(() => {\n try {\n u.contentWindow.document && (u.contentWindow.document.addEventListener(\"click\", c), s.push(() => {\n try {\n u.contentWindow.document.removeEventListener(\"click\", c);\n } catch {\n }\n }));\n } catch {\n }\n }, \"bind\");\n f(), u.addEventListener(\"load\", f), s.push(() => {\n u.removeEventListener(\"load\", f);\n });\n }), () => {\n Oo.removeEventListener(\"keydown\", c), s.forEach((u) => {\n u();\n });\n };\n }), /* @__PURE__ */ Sn.createElement(qd, { ...r, visible: n, onVisibleChange: i });\n }, \"WithToolTipState\");\n});\n\n// src/components/index.ts\nimport { createElement as uw, forwardRef as fw } from \"react\";\n\n// src/components/components/typography/components.tsx\nimport ee from \"react\";\n\n// src/components/components/typography/DocumentFormatting.tsx\nvar J = /* @__PURE__ */ o(({ ...e }, t) => {\n let r = [e.class, e.className];\n return delete e.class, e.className = [\"sbdocs\", `sbdocs-${t}`, ...r].filter(Boolean).join(\" \"), e;\n}, \"nameSpaceClassNames\");\n\n// src/components/components/typography/ResetWrapper.tsx\nimport { styled as l2 } from \"storybook/theming\";\n\n// ../node_modules/polished/dist/polished.esm.js\nYr();\nHl();\n\n// ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\nIn();\nfunction Pl(e, t) {\n e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ht(e, t);\n}\no(Pl, \"_inheritsLoose\");\n\n// ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js\nkl();\nIn();\n\n// ../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js\nfunction Ol(e) {\n try {\n return Function.toString.call(e).indexOf(\"[native code]\") !== -1;\n } catch {\n return typeof e == \"function\";\n }\n}\no(Ol, \"_isNativeFunction\");\n\n// ../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js\nfunction Uo() {\n try {\n var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch {\n }\n return (Uo = /* @__PURE__ */ o(function() {\n return !!e;\n }, \"_isNativeReflectConstruct\"))();\n}\no(Uo, \"_isNativeReflectConstruct\");\n\n// ../node_modules/@babel/runtime/helpers/esm/construct.js\nIn();\nfunction Bl(e, t, r) {\n if (Uo()) return Reflect.construct.apply(null, arguments);\n var n = [null];\n n.push.apply(n, t);\n var a = new (e.bind.apply(e, n))();\n return r && ht(a, r.prototype), a;\n}\no(Bl, \"_construct\");\n\n// ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js\nfunction Tn(e) {\n var t = typeof Map == \"function\" ? /* @__PURE__ */ new Map() : void 0;\n return Tn = /* @__PURE__ */ o(function(n) {\n if (n === null || !Ol(n)) return n;\n if (typeof n != \"function\") throw new TypeError(\"Super expression must either be null or a function\");\n if (t !== void 0) {\n if (t.has(n)) return t.get(n);\n t.set(n, a);\n }\n function a() {\n return Bl(n, arguments, zn(this).constructor);\n }\n return o(a, \"Wrapper\"), a.prototype = Object.create(n.prototype, {\n constructor: {\n value: a,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), ht(a, n);\n }, \"_wrapNativeSuper\"), Tn(e);\n}\no(Tn, \"_wrapNativeSuper\");\n\n// ../node_modules/polished/dist/polished.esm.js\nvar xp = {\n 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0\\\n.4, lightness: 0.75 }).\n\n`,\n 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satura\\\ntion: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n`,\n 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n`,\n 4: `Couldn't generate valid rgb string from %s, it returned %s.\n\n`,\n 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n`,\n 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, bl\\\nue: 100 }).\n\n`,\n 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: \\\n205, blue: 100, alpha: 0.75 }).\n\n`,\n 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n`,\n 9: `Please provide a number of steps to the modularScale helper.\n\n`,\n 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,\n 11: `Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n`,\n 12: `Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n`,\n 13: `Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n`,\n 14: `Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 15: `Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 16: `You must provide a template to this method.\n\n`,\n 17: `You passed an unsupported selector state to this method.\n\n`,\n 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,\n 19: `fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,\n 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,\n 21: \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n 22: \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n 23: `fontFace expects a name of a font-family.\n\n`,\n 24: `fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,\n 25: `fontFace expects localFonts to be an array.\n\n`,\n 26: `fontFace expects fileFormats to be an array.\n\n`,\n 27: `radialGradient requries at least 2 color-stops to properly render.\n\n`,\n 28: `Please supply a filename to retinaImage() as the first argument.\n\n`,\n 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,\n 30: \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n`,\n 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n`,\n 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n`,\n 34: `borderRadius expects a radius value as a string or number as the second argument.\n\n`,\n 35: `borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,\n 36: `Property must be a string value.\n\n`,\n 37: `Syntax Error at %s.\n\n`,\n 38: `Formula contains a function that needs parentheses at %s.\n\n`,\n 39: `Formula is missing closing parenthesis at %s.\n\n`,\n 40: `Formula has too many closing parentheses at %s.\n\n`,\n 41: `All values in a formula must have the same unit or be unitless.\n\n`,\n 42: `Please provide a number of steps to the modularScale helper.\n\n`,\n 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,\n 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n`,\n 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n`,\n 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n`,\n 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,\n 48: `fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,\n 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,\n 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n`,\n 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n`,\n 52: `fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,\n 53: `fontFace expects localFonts to be an array.\n\n`,\n 54: `fontFace expects fileFormats to be an array.\n\n`,\n 55: `fontFace expects a name of a font-family.\n\n`,\n 56: `linearGradient requries at least 2 color-stops to properly render.\n\n`,\n 57: `radialGradient requries at least 2 color-stops to properly render.\n\n`,\n 58: `Please supply a filename to retinaImage() as the first argument.\n\n`,\n 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,\n 60: \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n 61: `Property must be a string value.\n\n`,\n 62: `borderRadius expects a radius value as a string or number as the second argument.\n\n`,\n 63: `borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,\n 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n`,\n 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animatio\\\nn please supply them in simple values, e.g. animation('rotate', '2s').\n\n`,\n 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n`,\n 67: `You must provide a template to this method.\n\n`,\n 68: `You passed an unsupported selector state to this method.\n\n`,\n 69: `Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n`,\n 70: `Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n`,\n 71: `Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 72: `Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 73: `Please provide a valid CSS variable.\n\n`,\n 74: `CSS variable not found and no default was provided.\n\n`,\n 75: `important requires a valid style object, got a %s instead.\n\n`,\n 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n`,\n 77: `remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n`,\n 78: `base must be set in \"px\" or \"%\" but you set it in \"%s\".\n`\n};\nfunction Ep() {\n for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)\n t[r] = arguments[r];\n var n = t[0], a = [], i;\n for (i = 1; i < t.length; i += 1)\n a.push(t[i]);\n return a.forEach(function(c) {\n n = n.replace(/%[a-z]/, c);\n }), n;\n}\no(Ep, \"format\");\nvar Ce = /* @__PURE__ */ function(e) {\n Pl(t, e);\n function t(r) {\n for (var n, a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), c = 1; c < a; c++)\n i[c - 1] = arguments[c];\n return n = e.call(this, Ep.apply(void 0, [xp[r]].concat(i))) || this, Tl(n);\n }\n return o(t, \"PolishedError\"), t;\n}(/* @__PURE__ */ Tn(Error));\nfunction Nl(e, t) {\n return e.substr(-t.length) === t;\n}\no(Nl, \"endsWith\");\nvar Sp = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\nfunction Dl(e) {\n if (typeof e != \"string\") return e;\n var t = e.match(Sp);\n return t ? parseFloat(e) : e;\n}\no(Dl, \"stripUnit\");\nvar Cp = /* @__PURE__ */ o(function(t) {\n return function(r, n) {\n n === void 0 && (n = \"16px\");\n var a = r, i = n;\n if (typeof r == \"string\") {\n if (!Nl(r, \"px\"))\n throw new Ce(69, t, r);\n a = Dl(r);\n }\n if (typeof n == \"string\") {\n if (!Nl(n, \"px\"))\n throw new Ce(70, t, n);\n i = Dl(n);\n }\n if (typeof a == \"string\")\n throw new Ce(71, r, t);\n if (typeof i == \"string\")\n throw new Ce(72, n, t);\n return \"\" + a / i + t;\n };\n}, \"pxtoFactory\"), _l = Cp, Yw = _l(\"em\");\nvar Zw = _l(\"rem\");\nfunction qo(e) {\n return Math.round(e * 255);\n}\no(qo, \"colorToInt\");\nfunction Mp(e, t, r) {\n return qo(e) + \",\" + qo(t) + \",\" + qo(r);\n}\no(Mp, \"convertToInt\");\nfunction Zr(e, t, r, n) {\n if (n === void 0 && (n = Mp), t === 0)\n return n(r, r, r);\n var a = (e % 360 + 360) % 360 / 60, i = (1 - Math.abs(2 * r - 1)) * t, c = i * (1 - Math.abs(a % 2 - 1)), l = 0, s = 0, u = 0;\n a >= 0 && a < 1 ? (l = i, s = c) : a >= 1 && a < 2 ? (l = c, s = i) : a >= 2 && a < 3 ? (s = i, u = c) : a >= 3 && a < 4 ? (s = c, u = i) :\n a >= 4 && a < 5 ? (l = c, u = i) : a >= 5 && a < 6 && (l = i, u = c);\n var f = r - i / 2, d = l + f, m = s + f, v = u + f;\n return n(d, m, v);\n}\no(Zr, \"hslToRgb\");\nvar Fl = {\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"00ffff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"0000ff\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"00ffff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"ff00ff\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"639\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\"\n};\nfunction Lp(e) {\n if (typeof e != \"string\") return e;\n var t = e.toLowerCase();\n return Fl[t] ? \"#\" + Fl[t] : e;\n}\no(Lp, \"nameToHex\");\nvar Ap = /^#[a-fA-F0-9]{6}$/, Ip = /^#[a-fA-F0-9]{8}$/, zp = /^#[a-fA-F0-9]{3}$/, Tp = /^#[a-fA-F0-9]{4}$/, Go = /^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i,\nHp = /^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i, Pp = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i,\nkp = /^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;\nfunction cr(e) {\n if (typeof e != \"string\")\n throw new Ce(3);\n var t = Lp(e);\n if (t.match(Ap))\n return {\n red: parseInt(\"\" + t[1] + t[2], 16),\n green: parseInt(\"\" + t[3] + t[4], 16),\n blue: parseInt(\"\" + t[5] + t[6], 16)\n };\n if (t.match(Ip)) {\n var r = parseFloat((parseInt(\"\" + t[7] + t[8], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + t[1] + t[2], 16),\n green: parseInt(\"\" + t[3] + t[4], 16),\n blue: parseInt(\"\" + t[5] + t[6], 16),\n alpha: r\n };\n }\n if (t.match(zp))\n return {\n red: parseInt(\"\" + t[1] + t[1], 16),\n green: parseInt(\"\" + t[2] + t[2], 16),\n blue: parseInt(\"\" + t[3] + t[3], 16)\n };\n if (t.match(Tp)) {\n var n = parseFloat((parseInt(\"\" + t[4] + t[4], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + t[1] + t[1], 16),\n green: parseInt(\"\" + t[2] + t[2], 16),\n blue: parseInt(\"\" + t[3] + t[3], 16),\n alpha: n\n };\n }\n var a = Go.exec(t);\n if (a)\n return {\n red: parseInt(\"\" + a[1], 10),\n green: parseInt(\"\" + a[2], 10),\n blue: parseInt(\"\" + a[3], 10)\n };\n var i = Hp.exec(t.substring(0, 50));\n if (i)\n return {\n red: parseInt(\"\" + i[1], 10),\n green: parseInt(\"\" + i[2], 10),\n blue: parseInt(\"\" + i[3], 10),\n alpha: parseFloat(\"\" + i[4]) > 1 ? parseFloat(\"\" + i[4]) / 100 : parseFloat(\"\" + i[4])\n };\n var c = Pp.exec(t);\n if (c) {\n var l = parseInt(\"\" + c[1], 10), s = parseInt(\"\" + c[2], 10) / 100, u = parseInt(\"\" + c[3], 10) / 100, f = \"rgb(\" + Zr(l, s, u) + \")\", d = Go.\n exec(f);\n if (!d)\n throw new Ce(4, t, f);\n return {\n red: parseInt(\"\" + d[1], 10),\n green: parseInt(\"\" + d[2], 10),\n blue: parseInt(\"\" + d[3], 10)\n };\n }\n var m = kp.exec(t.substring(0, 50));\n if (m) {\n var v = parseInt(\"\" + m[1], 10), R = parseInt(\"\" + m[2], 10) / 100, p = parseInt(\"\" + m[3], 10) / 100, h = \"rgb(\" + Zr(v, R, p) + \")\", g = Go.\n exec(h);\n if (!g)\n throw new Ce(4, t, h);\n return {\n red: parseInt(\"\" + g[1], 10),\n green: parseInt(\"\" + g[2], 10),\n blue: parseInt(\"\" + g[3], 10),\n alpha: parseFloat(\"\" + m[4]) > 1 ? parseFloat(\"\" + m[4]) / 100 : parseFloat(\"\" + m[4])\n };\n }\n throw new Ce(5);\n}\no(cr, \"parseToRgb\");\nfunction Op(e) {\n var t = e.red / 255, r = e.green / 255, n = e.blue / 255, a = Math.max(t, r, n), i = Math.min(t, r, n), c = (a + i) / 2;\n if (a === i)\n return e.alpha !== void 0 ? {\n hue: 0,\n saturation: 0,\n lightness: c,\n alpha: e.alpha\n } : {\n hue: 0,\n saturation: 0,\n lightness: c\n };\n var l, s = a - i, u = c > 0.5 ? s / (2 - a - i) : s / (a + i);\n switch (a) {\n case t:\n l = (r - n) / s + (r < n ? 6 : 0);\n break;\n case r:\n l = (n - t) / s + 2;\n break;\n default:\n l = (t - r) / s + 4;\n break;\n }\n return l *= 60, e.alpha !== void 0 ? {\n hue: l,\n saturation: u,\n lightness: c,\n alpha: e.alpha\n } : {\n hue: l,\n saturation: u,\n lightness: c\n };\n}\no(Op, \"rgbToHsl\");\nfunction gt(e) {\n return Op(cr(e));\n}\no(gt, \"parseToHsl\");\nvar Bp = /* @__PURE__ */ o(function(t) {\n return t.length === 7 && t[1] === t[2] && t[3] === t[4] && t[5] === t[6] ? \"#\" + t[1] + t[3] + t[5] : t;\n}, \"reduceHexValue\"), Yo = Bp;\nfunction Nt(e) {\n var t = e.toString(16);\n return t.length === 1 ? \"0\" + t : t;\n}\no(Nt, \"numberToHex\");\nfunction Xo(e) {\n return Nt(Math.round(e * 255));\n}\no(Xo, \"colorToHex\");\nfunction Np(e, t, r) {\n return Yo(\"#\" + Xo(e) + Xo(t) + Xo(r));\n}\no(Np, \"convertToHex\");\nfunction Hn(e, t, r) {\n return Zr(e, t, r, Np);\n}\no(Hn, \"hslToHex\");\nfunction Dp(e, t, r) {\n if (typeof e == \"number\" && typeof t == \"number\" && typeof r == \"number\")\n return Hn(e, t, r);\n if (typeof e == \"object\" && t === void 0 && r === void 0)\n return Hn(e.hue, e.saturation, e.lightness);\n throw new Ce(1);\n}\no(Dp, \"hsl\");\nfunction Fp(e, t, r, n) {\n if (typeof e == \"number\" && typeof t == \"number\" && typeof r == \"number\" && typeof n == \"number\")\n return n >= 1 ? Hn(e, t, r) : \"rgba(\" + Zr(e, t, r) + \",\" + n + \")\";\n if (typeof e == \"object\" && t === void 0 && r === void 0 && n === void 0)\n return e.alpha >= 1 ? Hn(e.hue, e.saturation, e.lightness) : \"rgba(\" + Zr(e.hue, e.saturation, e.lightness) + \",\" + e.alpha + \")\";\n throw new Ce(2);\n}\no(Fp, \"hsla\");\nfunction Zo(e, t, r) {\n if (typeof e == \"number\" && typeof t == \"number\" && typeof r == \"number\")\n return Yo(\"#\" + Nt(e) + Nt(t) + Nt(r));\n if (typeof e == \"object\" && t === void 0 && r === void 0)\n return Yo(\"#\" + Nt(e.red) + Nt(e.green) + Nt(e.blue));\n throw new Ce(6);\n}\no(Zo, \"rgb\");\nfunction Dt(e, t, r, n) {\n if (typeof e == \"string\" && typeof t == \"number\") {\n var a = cr(e);\n return \"rgba(\" + a.red + \",\" + a.green + \",\" + a.blue + \",\" + t + \")\";\n } else {\n if (typeof e == \"number\" && typeof t == \"number\" && typeof r == \"number\" && typeof n == \"number\")\n return n >= 1 ? Zo(e, t, r) : \"rgba(\" + e + \",\" + t + \",\" + r + \",\" + n + \")\";\n if (typeof e == \"object\" && t === void 0 && r === void 0 && n === void 0)\n return e.alpha >= 1 ? Zo(e.red, e.green, e.blue) : \"rgba(\" + e.red + \",\" + e.green + \",\" + e.blue + \",\" + e.alpha + \")\";\n }\n throw new Ce(7);\n}\no(Dt, \"rgba\");\nvar _p = /* @__PURE__ */ o(function(t) {\n return typeof t.red == \"number\" && typeof t.green == \"number\" && typeof t.blue == \"number\" && (typeof t.alpha != \"number\" || typeof t.alpha >\n \"u\");\n}, \"isRgb\"), $p = /* @__PURE__ */ o(function(t) {\n return typeof t.red == \"number\" && typeof t.green == \"number\" && typeof t.blue == \"number\" && typeof t.alpha == \"number\";\n}, \"isRgba\"), Vp = /* @__PURE__ */ o(function(t) {\n return typeof t.hue == \"number\" && typeof t.saturation == \"number\" && typeof t.lightness == \"number\" && (typeof t.alpha != \"number\" || typeof t.\n alpha > \"u\");\n}, \"isHsl\"), jp = /* @__PURE__ */ o(function(t) {\n return typeof t.hue == \"number\" && typeof t.saturation == \"number\" && typeof t.lightness == \"number\" && typeof t.alpha == \"number\";\n}, \"isHsla\");\nfunction vt(e) {\n if (typeof e != \"object\") throw new Ce(8);\n if ($p(e)) return Dt(e);\n if (_p(e)) return Zo(e);\n if (jp(e)) return Fp(e);\n if (Vp(e)) return Dp(e);\n throw new Ce(8);\n}\no(vt, \"toColorString\");\nfunction $l(e, t, r) {\n return /* @__PURE__ */ o(function() {\n var a = r.concat(Array.prototype.slice.call(arguments));\n return a.length >= t ? e.apply(this, a) : $l(e, t, a);\n }, \"fn\");\n}\no($l, \"curried\");\nfunction He(e) {\n return $l(e, e.length, []);\n}\no(He, \"curry\");\nfunction Wp(e, t) {\n if (t === \"transparent\") return t;\n var r = gt(t);\n return vt(W({}, r, {\n hue: r.hue + parseFloat(e)\n }));\n}\no(Wp, \"adjustHue\");\nvar Kw = He(Wp);\nfunction sr(e, t, r) {\n return Math.max(e, Math.min(t, r));\n}\no(sr, \"guard\");\nfunction Up(e, t) {\n if (t === \"transparent\") return t;\n var r = gt(t);\n return vt(W({}, r, {\n lightness: sr(0, 1, r.lightness - parseFloat(e))\n }));\n}\no(Up, \"darken\");\nvar qp = He(Up), wt = qp;\nfunction Gp(e, t) {\n if (t === \"transparent\") return t;\n var r = gt(t);\n return vt(W({}, r, {\n saturation: sr(0, 1, r.saturation - parseFloat(e))\n }));\n}\no(Gp, \"desaturate\");\nvar Jw = He(Gp);\nfunction Xp(e, t) {\n if (t === \"transparent\") return t;\n var r = gt(t);\n return vt(W({}, r, {\n lightness: sr(0, 1, r.lightness + parseFloat(e))\n }));\n}\no(Xp, \"lighten\");\nvar Yp = He(Xp), Ko = Yp;\nfunction Zp(e, t, r) {\n if (t === \"transparent\") return r;\n if (r === \"transparent\") return t;\n if (e === 0) return r;\n var n = cr(t), a = W({}, n, {\n alpha: typeof n.alpha == \"number\" ? n.alpha : 1\n }), i = cr(r), c = W({}, i, {\n alpha: typeof i.alpha == \"number\" ? i.alpha : 1\n }), l = a.alpha - c.alpha, s = parseFloat(e) * 2 - 1, u = s * l === -1 ? s : s + l, f = 1 + s * l, d = (u / f + 1) / 2, m = 1 - d, v = {\n red: Math.floor(a.red * d + c.red * m),\n green: Math.floor(a.green * d + c.green * m),\n blue: Math.floor(a.blue * d + c.blue * m),\n alpha: a.alpha * parseFloat(e) + c.alpha * (1 - parseFloat(e))\n };\n return Dt(v);\n}\no(Zp, \"mix\");\nvar Kp = He(Zp), Vl = Kp;\nfunction Jp(e, t) {\n if (t === \"transparent\") return t;\n var r = cr(t), n = typeof r.alpha == \"number\" ? r.alpha : 1, a = W({}, r, {\n alpha: sr(0, 1, (n * 100 + parseFloat(e) * 100) / 100)\n });\n return Dt(a);\n}\no(Jp, \"opacify\");\nvar Qw = He(Jp);\nfunction Qp(e, t) {\n if (t === \"transparent\") return t;\n var r = gt(t);\n return vt(W({}, r, {\n saturation: sr(0, 1, r.saturation + parseFloat(e))\n }));\n}\no(Qp, \"saturate\");\nvar e8 = He(Qp);\nfunction e2(e, t) {\n return t === \"transparent\" ? t : vt(W({}, gt(t), {\n hue: parseFloat(e)\n }));\n}\no(e2, \"setHue\");\nvar t8 = He(e2);\nfunction t2(e, t) {\n return t === \"transparent\" ? t : vt(W({}, gt(t), {\n lightness: parseFloat(e)\n }));\n}\no(t2, \"setLightness\");\nvar r8 = He(t2);\nfunction r2(e, t) {\n return t === \"transparent\" ? t : vt(W({}, gt(t), {\n saturation: parseFloat(e)\n }));\n}\no(r2, \"setSaturation\");\nvar n8 = He(r2);\nfunction n2(e, t) {\n return t === \"transparent\" ? t : Vl(parseFloat(e), \"rgb(0, 0, 0)\", t);\n}\no(n2, \"shade\");\nvar o8 = He(n2);\nfunction o2(e, t) {\n return t === \"transparent\" ? t : Vl(parseFloat(e), \"rgb(255, 255, 255)\", t);\n}\no(o2, \"tint\");\nvar a8 = He(o2);\nfunction a2(e, t) {\n if (t === \"transparent\") return t;\n var r = cr(t), n = typeof r.alpha == \"number\" ? r.alpha : 1, a = W({}, r, {\n alpha: sr(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100)\n });\n return Dt(a);\n}\no(a2, \"transparentize\");\nvar i2 = He(a2), we = i2;\n\n// src/components/components/typography/lib/common.tsx\nvar Ne = /* @__PURE__ */ o(({ theme: e }) => ({\n margin: \"20px 0 8px\",\n padding: 0,\n cursor: \"text\",\n position: \"relative\",\n color: e.color.defaultText,\n \"&:first-of-type\": {\n marginTop: 0,\n paddingTop: 0\n },\n \"&:hover a.anchor\": {\n textDecoration: \"none\"\n },\n \"& tt, & code\": {\n fontSize: \"inherit\"\n }\n}), \"headerCommon\"), at = /* @__PURE__ */ o(({ theme: e }) => ({\n lineHeight: 1,\n margin: \"0 2px\",\n padding: \"3px 5px\",\n whiteSpace: \"nowrap\",\n borderRadius: 3,\n fontSize: e.typography.size.s2 - 1,\n border: e.base === \"light\" ? `1px solid ${e.color.mediumlight}` : `1px solid ${e.color.darker}`,\n color: e.base === \"light\" ? we(0.1, e.color.defaultText) : we(0.3, e.color.defaultText),\n backgroundColor: e.base === \"light\" ? e.color.lighter : e.color.border\n}), \"codeCommon\"), N = /* @__PURE__ */ o(({ theme: e }) => ({\n fontFamily: e.typography.fonts.base,\n fontSize: e.typography.size.s3,\n margin: 0,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n WebkitTapHighlightColor: \"rgba(0, 0, 0, 0)\",\n WebkitOverflowScrolling: \"touch\"\n}), \"withReset\"), Me = {\n margin: \"16px 0\"\n};\n\n// src/components/components/typography/ResetWrapper.tsx\nvar jl = l2.div(N);\n\n// src/components/components/typography/elements/A.tsx\nimport { styled as s2 } from \"storybook/theming\";\n\n// src/components/components/typography/elements/Link.tsx\nimport c2 from \"react\";\nvar Wl = /* @__PURE__ */ o(({\n href: e = \"\",\n ...t\n}) => {\n let n = /^\\//.test(e) ? `./?path=${e}` : e, i = /^#.*/.test(e) ? \"_self\" : \"_top\";\n return /* @__PURE__ */ c2.createElement(\"a\", { href: n, target: i, ...t });\n}, \"Link\");\n\n// src/components/components/typography/elements/A.tsx\nvar Jo = s2(Wl)(N, ({ theme: e }) => ({\n fontSize: \"inherit\",\n lineHeight: \"24px\",\n color: e.color.secondary,\n textDecoration: \"none\",\n \"&.absent\": {\n color: \"#cc0000\"\n },\n \"&.anchor\": {\n display: \"block\",\n paddingLeft: 30,\n marginLeft: -30,\n cursor: \"pointer\",\n position: \"absolute\",\n top: 0,\n left: 0,\n bottom: 0\n }\n}));\n\n// src/components/components/typography/elements/Blockquote.tsx\nimport { styled as u2 } from \"storybook/theming\";\nvar Qo = u2.blockquote(N, Me, ({ theme: e }) => ({\n borderLeft: `4px solid ${e.color.medium}`,\n padding: \"0 15px\",\n color: e.color.dark,\n \"& > :first-of-type\": {\n marginTop: 0\n },\n \"& > :last-child\": {\n marginBottom: 0\n }\n}));\n\n// src/components/components/typography/elements/Code.tsx\ncn();\nimport W5, { Children as vh } from \"react\";\nimport { styled as U5 } from \"storybook/theming\";\n\n// src/components/components/typography/lib/isReactChildString.tsx\nvar j5 = /* @__PURE__ */ o((e) => typeof e == \"string\", \"isReactChildString\");\n\n// src/components/components/typography/elements/Code.tsx\nvar wh = /[\\n\\r]/g, bh = U5.code(\n ({ theme: e }) => ({\n // from reset\n fontFamily: e.typography.fonts.mono,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n display: \"inline-block\",\n paddingLeft: 2,\n paddingRight: 2,\n verticalAlign: \"baseline\",\n color: \"inherit\"\n }),\n at\n), Rh = U5(ln)(({ theme: e }) => ({\n // DocBlocks-specific styling and overrides\n fontFamily: e.typography.fonts.mono,\n fontSize: `${e.typography.size.s2 - 1}px`,\n lineHeight: \"19px\",\n margin: \"25px 0 40px\",\n borderRadius: e.appBorderRadius,\n boxShadow: e.base === \"light\" ? \"rgba(0, 0, 0, 0.10) 0 1px 3px 0\" : \"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",\n \"pre.prismjs\": {\n padding: 20,\n background: \"inherit\"\n }\n})), ei = /* @__PURE__ */ o(({\n className: e,\n children: t,\n ...r\n}) => {\n let n = (e || \"\").match(/lang-(\\S+)/), a = vh.toArray(t);\n return a.filter(j5).some((c) => c.match(wh)) ? /* @__PURE__ */ W5.createElement(\n Rh,\n {\n bordered: !0,\n copyable: !0,\n language: n?.[1] ?? \"text\",\n format: !1,\n ...r\n },\n t\n ) : /* @__PURE__ */ W5.createElement(bh, { ...r, className: e }, a);\n}, \"Code\");\n\n// src/components/components/typography/elements/DL.tsx\nimport { styled as yh } from \"storybook/theming\";\nvar ti = yh.dl(N, Me, {\n padding: 0,\n \"& dt\": {\n fontSize: \"14px\",\n fontWeight: \"bold\",\n fontStyle: \"italic\",\n padding: 0,\n margin: \"16px 0 4px\"\n },\n \"& dt:first-of-type\": {\n padding: 0\n },\n \"& dt > :first-of-type\": {\n marginTop: 0\n },\n \"& dt > :last-child\": {\n marginBottom: 0\n },\n \"& dd\": {\n margin: \"0 0 16px\",\n padding: \"0 15px\"\n },\n \"& dd > :first-of-type\": {\n marginTop: 0\n },\n \"& dd > :last-child\": {\n marginBottom: 0\n }\n});\n\n// src/components/components/typography/elements/Div.tsx\nimport { styled as xh } from \"storybook/theming\";\nvar ri = xh.div(N);\n\n// src/components/components/typography/elements/H1.tsx\nimport { styled as Eh } from \"storybook/theming\";\nvar ni = Eh.h1(N, Ne, ({ theme: e }) => ({\n fontSize: `${e.typography.size.l1}px`,\n fontWeight: e.typography.weight.bold\n}));\n\n// src/components/components/typography/elements/H2.tsx\nimport { styled as Sh } from \"storybook/theming\";\nvar oi = Sh.h2(N, Ne, ({ theme: e }) => ({\n fontSize: `${e.typography.size.m2}px`,\n paddingBottom: 4,\n borderBottom: `1px solid ${e.appBorderColor}`\n}));\n\n// src/components/components/typography/elements/H3.tsx\nimport { styled as Ch } from \"storybook/theming\";\nvar ai = Ch.h3(N, Ne, ({ theme: e }) => ({\n fontSize: `${e.typography.size.m1}px`\n}));\n\n// src/components/components/typography/elements/H4.tsx\nimport { styled as Mh } from \"storybook/theming\";\nvar ii = Mh.h4(N, Ne, ({ theme: e }) => ({\n fontSize: `${e.typography.size.s3}px`\n}));\n\n// src/components/components/typography/elements/H5.tsx\nimport { styled as Lh } from \"storybook/theming\";\nvar li = Lh.h5(N, Ne, ({ theme: e }) => ({\n fontSize: `${e.typography.size.s2}px`\n}));\n\n// src/components/components/typography/elements/H6.tsx\nimport { styled as Ah } from \"storybook/theming\";\nvar ci = Ah.h6(N, Ne, ({ theme: e }) => ({\n fontSize: `${e.typography.size.s2}px`,\n color: e.color.dark\n}));\n\n// src/components/components/typography/elements/HR.tsx\nimport { styled as Ih } from \"storybook/theming\";\nvar si = Ih.hr(({ theme: e }) => ({\n border: \"0 none\",\n borderTop: `1px solid ${e.appBorderColor}`,\n height: 4,\n padding: 0\n}));\n\n// src/components/components/typography/elements/Img.tsx\nimport { styled as zh } from \"storybook/theming\";\nvar ui = zh.img({\n maxWidth: \"100%\"\n});\n\n// src/components/components/typography/elements/LI.tsx\nimport { styled as Th } from \"storybook/theming\";\nvar fi = Th.li(N, ({ theme: e }) => ({\n fontSize: e.typography.size.s2,\n color: e.color.defaultText,\n lineHeight: \"24px\",\n \"& + li\": {\n marginTop: \".25em\"\n },\n \"& ul, & ol\": {\n marginTop: \".25em\",\n marginBottom: 0\n },\n \"& code\": at({ theme: e })\n}));\n\n// src/components/components/typography/elements/OL.tsx\nimport { styled as Hh } from \"storybook/theming\";\nvar Ph = {\n paddingLeft: 30,\n \"& :first-of-type\": {\n marginTop: 0\n },\n \"& :last-child\": {\n marginBottom: 0\n }\n}, di = Hh.ol(N, Me, Ph, {\n listStyle: \"decimal\"\n});\n\n// src/components/components/typography/elements/P.tsx\nimport { styled as kh } from \"storybook/theming\";\nvar pi = kh.p(N, Me, ({ theme: e }) => ({\n fontSize: e.typography.size.s2,\n lineHeight: \"24px\",\n color: e.color.defaultText,\n \"& code\": at({ theme: e })\n}));\n\n// src/components/components/typography/elements/Pre.tsx\nimport { styled as Oh } from \"storybook/theming\";\nvar mi = Oh.pre(N, Me, ({ theme: e }) => ({\n // reset\n fontFamily: e.typography.fonts.mono,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n lineHeight: \"18px\",\n padding: \"11px 1rem\",\n whiteSpace: \"pre-wrap\",\n color: \"inherit\",\n borderRadius: 3,\n margin: \"1rem 0\",\n \"&:not(.prismjs)\": {\n background: \"transparent\",\n border: \"none\",\n borderRadius: 0,\n padding: 0,\n margin: 0\n },\n \"& pre, &.prismjs\": {\n padding: 15,\n margin: 0,\n whiteSpace: \"pre-wrap\",\n color: \"inherit\",\n fontSize: \"13px\",\n lineHeight: \"19px\",\n code: {\n color: \"inherit\",\n fontSize: \"inherit\"\n }\n },\n \"& code\": {\n whiteSpace: \"pre\"\n },\n \"& code, & tt\": {\n border: \"none\"\n }\n}));\n\n// src/components/components/typography/elements/Span.tsx\nimport { styled as Bh } from \"storybook/theming\";\nvar hi = Bh.span(N, ({ theme: e }) => ({\n \"&.frame\": {\n display: \"block\",\n overflow: \"hidden\",\n \"& > span\": {\n border: `1px solid ${e.color.medium}`,\n display: \"block\",\n float: \"left\",\n overflow: \"hidden\",\n margin: \"13px 0 0\",\n padding: 7,\n width: \"auto\"\n },\n \"& span img\": {\n display: \"block\",\n float: \"left\"\n },\n \"& span span\": {\n clear: \"both\",\n color: e.color.darkest,\n display: \"block\",\n padding: \"5px 0 0\"\n }\n },\n \"&.align-center\": {\n display: \"block\",\n overflow: \"hidden\",\n clear: \"both\",\n \"& > span\": {\n display: \"block\",\n overflow: \"hidden\",\n margin: \"13px auto 0\",\n textAlign: \"center\"\n },\n \"& span img\": {\n margin: \"0 auto\",\n textAlign: \"center\"\n }\n },\n \"&.align-right\": {\n display: \"block\",\n overflow: \"hidden\",\n clear: \"both\",\n \"& > span\": {\n display: \"block\",\n overflow: \"hidden\",\n margin: \"13px 0 0\",\n textAlign: \"right\"\n },\n \"& span img\": {\n margin: 0,\n textAlign: \"right\"\n }\n },\n \"&.float-left\": {\n display: \"block\",\n marginRight: 13,\n overflow: \"hidden\",\n float: \"left\",\n \"& span\": {\n margin: \"13px 0 0\"\n }\n },\n \"&.float-right\": {\n display: \"block\",\n marginLeft: 13,\n overflow: \"hidden\",\n float: \"right\",\n \"& > span\": {\n display: \"block\",\n overflow: \"hidden\",\n margin: \"13px auto 0\",\n textAlign: \"right\"\n }\n }\n}));\n\n// src/components/components/typography/elements/TT.tsx\nimport { styled as Nh } from \"storybook/theming\";\nvar gi = Nh.title(at);\n\n// src/components/components/typography/elements/Table.tsx\nimport { styled as Dh } from \"storybook/theming\";\nvar vi = Dh.table(N, Me, ({ theme: e }) => ({\n fontSize: e.typography.size.s2,\n lineHeight: \"24px\",\n padding: 0,\n borderCollapse: \"collapse\",\n \"& tr\": {\n borderTop: `1px solid ${e.appBorderColor}`,\n backgroundColor: e.appContentBg,\n margin: 0,\n padding: 0\n },\n \"& tr:nth-of-type(2n)\": {\n backgroundColor: e.base === \"dark\" ? e.color.darker : e.color.lighter\n },\n \"& tr th\": {\n fontWeight: \"bold\",\n color: e.color.defaultText,\n border: `1px solid ${e.appBorderColor}`,\n margin: 0,\n padding: \"6px 13px\"\n },\n \"& tr td\": {\n border: `1px solid ${e.appBorderColor}`,\n color: e.color.defaultText,\n margin: 0,\n padding: \"6px 13px\"\n },\n \"& tr th :first-of-type, & tr td :first-of-type\": {\n marginTop: 0\n },\n \"& tr th :last-child, & tr td :last-child\": {\n marginBottom: 0\n }\n}));\n\n// src/components/components/typography/elements/UL.tsx\nimport { styled as Fh } from \"storybook/theming\";\nvar _h = {\n paddingLeft: 30,\n \"& :first-of-type\": {\n marginTop: 0\n },\n \"& :last-child\": {\n marginBottom: 0\n }\n}, wi = Fh.ul(N, Me, _h, { listStyle: \"disc\" });\n\n// src/components/components/typography/components.tsx\nvar bi = {\n h1: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ni, { ...J(e, \"h1\") }), \"h1\"),\n h2: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(oi, { ...J(e, \"h2\") }), \"h2\"),\n h3: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ai, { ...J(e, \"h3\") }), \"h3\"),\n h4: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ii, { ...J(e, \"h4\") }), \"h4\"),\n h5: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(li, { ...J(e, \"h5\") }), \"h5\"),\n h6: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ci, { ...J(e, \"h6\") }), \"h6\"),\n pre: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(mi, { ...J(e, \"pre\") }), \"pre\"),\n a: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(Jo, { ...J(e, \"a\") }), \"a\"),\n hr: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(si, { ...J(e, \"hr\") }), \"hr\"),\n dl: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ti, { ...J(e, \"dl\") }), \"dl\"),\n blockquote: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(Qo, { ...J(e, \"blockquote\") }), \"blockquote\"),\n table: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(vi, { ...J(e, \"table\") }), \"table\"),\n img: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ui, { ...J(e, \"img\") }), \"img\"),\n div: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ri, { ...J(e, \"div\") }), \"div\"),\n span: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(hi, { ...J(e, \"span\") }), \"span\"),\n li: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(fi, { ...J(e, \"li\") }), \"li\"),\n ul: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(wi, { ...J(e, \"ul\") }), \"ul\"),\n ol: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(di, { ...J(e, \"ol\") }), \"ol\"),\n p: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(pi, { ...J(e, \"p\") }), \"p\"),\n code: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(ei, { ...J(e, \"code\") }), \"code\"),\n tt: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(gi, { ...J(e, \"tt\") }), \"tt\"),\n resetwrapper: /* @__PURE__ */ o((e) => /* @__PURE__ */ ee.createElement(jl, { ...J(e, \"resetwrapper\") }), \"resetwrapper\")\n};\n\n// src/components/components/Badge/Badge.tsx\nimport Vh from \"react\";\nimport { styled as jh } from \"storybook/theming\";\nvar Wh = jh.div(\n ({ theme: e, compact: t }) => ({\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: e.typography.size.s1,\n fontWeight: e.typography.weight.bold,\n lineHeight: \"12px\",\n minWidth: 20,\n borderRadius: 20,\n padding: t ? \"4px 7px\" : \"4px 10px\"\n }),\n {\n svg: {\n height: 12,\n width: 12,\n marginRight: 4,\n marginTop: -2,\n path: {\n fill: \"currentColor\"\n }\n }\n },\n ({ theme: e, status: t }) => {\n switch (t) {\n case \"critical\":\n return {\n color: e.color.critical,\n background: e.background.critical\n };\n case \"negative\":\n return {\n color: e.color.negativeText,\n background: e.background.negative,\n boxShadow: e.base === \"light\" ? `inset 0 0 0 1px ${we(0.9, e.color.negativeText)}` : \"none\"\n };\n case \"warning\":\n return {\n color: e.color.warningText,\n background: e.background.warning,\n boxShadow: e.base === \"light\" ? `inset 0 0 0 1px ${we(0.9, e.color.warningText)}` : \"none\"\n };\n case \"neutral\":\n return {\n color: e.textMutedColor,\n background: e.base === \"light\" ? e.background.app : e.barBg,\n boxShadow: `inset 0 0 0 1px ${we(0.8, e.textMutedColor)}`\n };\n case \"positive\":\n return {\n color: e.color.positiveText,\n background: e.background.positive,\n boxShadow: e.base === \"light\" ? `inset 0 0 0 1px ${we(0.9, e.color.positiveText)}` : \"none\"\n };\n case \"active\":\n return {\n color: e.color.secondary,\n background: e.background.hoverable,\n boxShadow: `inset 0 0 0 1px ${we(0.9, e.color.secondary)}`\n };\n default:\n return {};\n }\n }\n), Uh = /* @__PURE__ */ o(({ ...e }) => /* @__PURE__ */ Vh.createElement(Wh, { ...e }), \"Badge\");\n\n// src/components/components/typography/link/link.tsx\nimport Ri from \"react\";\n\n// ../node_modules/@storybook/icons/dist/index.mjs\nimport * as Xe from \"react\";\nvar q5 = /* @__PURE__ */ Xe.forwardRef(({ color: e = \"currentColor\", size: t = 14, ...r }, n) => /* @__PURE__ */ Xe.createElement(\n \"svg\",\n {\n width: t,\n height: t,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: n,\n ...r\n },\n /* @__PURE__ */ Xe.createElement(\n \"path\",\n {\n 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-.\\\n648.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.7\\\n82.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-.\\\n71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z\",\n fill: e\n }\n )\n));\nvar G5 = /* @__PURE__ */ Xe.forwardRef(({ color: e = \"currentColor\", size: t = 14, ...r }, n) => /* @__PURE__ */ Xe.createElement(\n \"svg\",\n {\n width: t,\n height: t,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: n,\n ...r\n },\n /* @__PURE__ */ Xe.createElement(\n \"path\",\n {\n d: \"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a\\\n.5.5 0 00-.708-.708L7 6.293 1.854 1.146z\",\n fill: e\n }\n )\n));\nvar X5 = /* @__PURE__ */ Xe.forwardRef(({ color: e = \"currentColor\", size: t = 14, ...r }, n) => /* @__PURE__ */ Xe.createElement(\n \"svg\",\n {\n width: t,\n height: t,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: n,\n ...r\n },\n /* @__PURE__ */ Xe.createElement(\n \"path\",\n {\n 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\",\n fill: e\n }\n )\n));\n\n// src/components/components/typography/link/link.tsx\nimport { styled as Y5 } from \"storybook/theming\";\nvar qh = 0, Gh = /* @__PURE__ */ o((e) => e.button === qh && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey, \"isPlainLeftClick\"), Xh = /* @__PURE__ */ o(\n(e, t) => {\n Gh(e) && (e.preventDefault(), t(e));\n}, \"cancelled\"), Yh = Y5.span(\n ({ withArrow: e }) => e ? {\n \"> svg:last-of-type\": {\n height: \"0.7em\",\n width: \"0.7em\",\n marginRight: 0,\n marginLeft: \"0.25em\",\n bottom: \"auto\",\n verticalAlign: \"inherit\"\n }\n } : {},\n ({ containsIcon: e }) => e ? {\n svg: {\n height: \"1em\",\n width: \"1em\",\n verticalAlign: \"middle\",\n position: \"relative\",\n bottom: 0,\n marginRight: 0\n }\n } : {}\n), Zh = Y5.a(\n ({ theme: e }) => ({\n display: \"inline-block\",\n transition: \"all 150ms ease-out\",\n textDecoration: \"none\",\n color: e.color.secondary,\n \"&:hover, &:focus\": {\n cursor: \"pointer\",\n color: wt(0.07, e.color.secondary),\n \"svg path:not([fill])\": {\n fill: wt(0.07, e.color.secondary)\n }\n },\n \"&:active\": {\n color: wt(0.1, e.color.secondary),\n \"svg path:not([fill])\": {\n fill: wt(0.1, e.color.secondary)\n }\n },\n svg: {\n display: \"inline-block\",\n height: \"1em\",\n width: \"1em\",\n verticalAlign: \"text-top\",\n position: \"relative\",\n bottom: \"-0.125em\",\n marginRight: \"0.4em\",\n \"& path\": {\n fill: e.color.secondary\n }\n }\n }),\n ({ theme: e, secondary: t, tertiary: r }) => {\n let n;\n return t && (n = [e.textMutedColor, e.color.dark, e.color.darker]), r && (n = [e.color.dark, e.color.darkest, e.textMutedColor]), n ? {\n color: n[0],\n \"svg path:not([fill])\": {\n fill: n[0]\n },\n \"&:hover\": {\n color: n[1],\n \"svg path:not([fill])\": {\n fill: n[1]\n }\n },\n \"&:active\": {\n color: n[2],\n \"svg path:not([fill])\": {\n fill: n[2]\n }\n }\n } : {};\n },\n ({ nochrome: e }) => e ? {\n color: \"inherit\",\n \"&:hover, &:active\": {\n color: \"inherit\",\n textDecoration: \"underline\"\n }\n } : {},\n ({ theme: e, inverse: t }) => t ? {\n color: e.color.lightest,\n \":not([fill])\": {\n fill: e.color.lightest\n },\n \"&:hover\": {\n color: e.color.lighter,\n \"svg path:not([fill])\": {\n fill: e.color.lighter\n }\n },\n \"&:active\": {\n color: e.color.light,\n \"svg path:not([fill])\": {\n fill: e.color.light\n }\n }\n } : {},\n ({ isButton: e }) => e ? {\n border: 0,\n borderRadius: 0,\n background: \"none\",\n padding: 0,\n fontSize: \"inherit\"\n } : {}\n), yi = /* @__PURE__ */ o(({\n cancel: e = !0,\n children: t,\n onClick: r = void 0,\n withArrow: n = !1,\n containsIcon: a = !1,\n className: i = void 0,\n style: c = void 0,\n ...l\n}) => /* @__PURE__ */ Ri.createElement(\n Zh,\n {\n ...l,\n onClick: r && e ? (s) => Xh(s, r) : r,\n className: i\n },\n /* @__PURE__ */ Ri.createElement(Yh, { withArrow: n, containsIcon: a }, t, n && /* @__PURE__ */ Ri.createElement(X5, null))\n), \"Link\");\n\n// src/components/components/typography/DocumentWrapper.tsx\nimport { styled as Kh } from \"storybook/theming\";\nvar Jh = Kh.div(({ theme: e }) => ({\n fontSize: `${e.typography.size.s2}px`,\n lineHeight: \"1.6\",\n h1: {\n fontSize: `${e.typography.size.l1}px`,\n fontWeight: e.typography.weight.bold\n },\n h2: {\n fontSize: `${e.typography.size.m2}px`,\n borderBottom: `1px solid ${e.appBorderColor}`\n },\n h3: {\n fontSize: `${e.typography.size.m1}px`\n },\n h4: {\n fontSize: `${e.typography.size.s3}px`\n },\n h5: {\n fontSize: `${e.typography.size.s2}px`\n },\n h6: {\n fontSize: `${e.typography.size.s2}px`,\n color: e.color.dark\n },\n \"pre:not(.prismjs)\": {\n background: \"transparent\",\n border: \"none\",\n borderRadius: 0,\n padding: 0,\n margin: 0\n },\n \"pre pre, pre.prismjs\": {\n padding: 15,\n margin: 0,\n whiteSpace: \"pre-wrap\",\n color: \"inherit\",\n fontSize: \"13px\",\n lineHeight: \"19px\"\n },\n \"pre pre code, pre.prismjs code\": {\n color: \"inherit\",\n fontSize: \"inherit\"\n },\n \"pre code\": {\n margin: 0,\n padding: 0,\n whiteSpace: \"pre\",\n border: \"none\",\n background: \"transparent\"\n },\n \"pre code, pre tt\": {\n backgroundColor: \"transparent\",\n border: \"none\"\n },\n /* GitHub inspired Markdown styles loosely from https://gist.github.com/tuzz/3331384 */\n \"body > *:first-of-type\": {\n marginTop: \"0 !important\"\n },\n \"body > *:last-child\": {\n marginBottom: \"0 !important\"\n },\n a: {\n color: e.color.secondary,\n textDecoration: \"none\"\n },\n \"a.absent\": {\n color: \"#cc0000\"\n },\n \"a.anchor\": {\n display: \"block\",\n paddingLeft: 30,\n marginLeft: -30,\n cursor: \"pointer\",\n position: \"absolute\",\n top: 0,\n left: 0,\n bottom: 0\n },\n \"h1, h2, h3, h4, h5, h6\": {\n margin: \"20px 0 10px\",\n padding: 0,\n cursor: \"text\",\n position: \"relative\",\n \"&:first-of-type\": {\n marginTop: 0,\n paddingTop: 0\n },\n \"&:hover a.anchor\": {\n textDecoration: \"none\"\n },\n \"& tt, & code\": {\n fontSize: \"inherit\"\n }\n },\n \"h1:first-of-type + h2\": {\n marginTop: 0,\n paddingTop: 0\n },\n \"p, blockquote, ul, ol, dl, li, table, pre\": {\n margin: \"15px 0\"\n },\n hr: {\n border: \"0 none\",\n borderTop: `1px solid ${e.appBorderColor}`,\n height: 4,\n padding: 0\n },\n \"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:fi\\\nrst-of-type\": {\n marginTop: 0,\n paddingTop: 0\n },\n \"body > h1:first-of-type + h2\": {\n marginTop: 0,\n paddingTop: 0\n },\n \"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\": {\n marginTop: 0,\n paddingTop: 0\n },\n \"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p\": {\n marginTop: 0\n },\n \"li p.first\": {\n display: \"inline-block\"\n },\n \"ul, ol\": {\n paddingLeft: 30,\n \"& :first-of-type\": {\n marginTop: 0\n },\n \"& :last-child\": {\n marginBottom: 0\n }\n },\n dl: {\n padding: 0\n },\n \"dl dt\": {\n fontSize: \"14px\",\n fontWeight: \"bold\",\n fontStyle: \"italic\",\n margin: \"0 0 15px\",\n padding: \"0 15px\",\n \"&:first-of-type\": {\n padding: 0\n },\n \"& > :first-of-type\": {\n marginTop: 0\n },\n \"& > :last-child\": {\n marginBottom: 0\n }\n },\n blockquote: {\n borderLeft: `4px solid ${e.color.medium}`,\n padding: \"0 15px\",\n color: e.color.dark,\n \"& > :first-of-type\": {\n marginTop: 0\n },\n \"& > :last-child\": {\n marginBottom: 0\n }\n },\n table: {\n padding: 0,\n borderCollapse: \"collapse\",\n \"& tr\": {\n borderTop: `1px solid ${e.appBorderColor}`,\n backgroundColor: \"white\",\n margin: 0,\n padding: 0,\n \"& th\": {\n fontWeight: \"bold\",\n border: `1px solid ${e.appBorderColor}`,\n textAlign: \"left\",\n margin: 0,\n padding: \"6px 13px\"\n },\n \"& td\": {\n border: `1px solid ${e.appBorderColor}`,\n textAlign: \"left\",\n margin: 0,\n padding: \"6px 13px\"\n },\n \"&:nth-of-type(2n)\": {\n backgroundColor: e.color.lighter\n },\n \"& th :first-of-type, & td :first-of-type\": {\n marginTop: 0\n },\n \"& th :last-child, & td :last-child\": {\n marginBottom: 0\n }\n }\n },\n img: {\n maxWidth: \"100%\"\n },\n \"span.frame\": {\n display: \"block\",\n overflow: \"hidden\",\n \"& > span\": {\n border: `1px solid ${e.color.medium}`,\n display: \"block\",\n float: \"left\",\n overflow: \"hidden\",\n margin: \"13px 0 0\",\n padding: 7,\n width: \"auto\"\n },\n \"& span img\": {\n display: \"block\",\n float: \"left\"\n },\n \"& span span\": {\n clear: \"both\",\n color: e.color.darkest,\n display: \"block\",\n padding: \"5px 0 0\"\n }\n },\n \"span.align-center\": {\n display: \"block\",\n overflow: \"hidden\",\n clear: \"both\",\n \"& > span\": {\n display: \"block\",\n overflow: \"hidden\",\n margin: \"13px auto 0\",\n textAlign: \"center\"\n },\n \"& span img\": {\n margin: \"0 auto\",\n textAlign: \"center\"\n }\n },\n \"span.align-right\": {\n display: \"block\",\n overflow: \"hidden\",\n clear: \"both\",\n \"& > span\": {\n display: \"block\",\n overflow: \"hidden\",\n margin: \"13px 0 0\",\n textAlign: \"right\"\n },\n \"& span img\": {\n margin: 0,\n textAlign: \"right\"\n }\n },\n \"span.float-left\": {\n display: \"block\",\n marginRight: 13,\n overflow: \"hidden\",\n float: \"left\",\n \"& span\": {\n margin: \"13px 0 0\"\n }\n },\n \"span.float-right\": {\n display: \"block\",\n marginLeft: 13,\n overflow: \"hidden\",\n float: \"right\",\n \"& > span\": {\n display: \"block\",\n overflow: \"hidden\",\n margin: \"13px auto 0\",\n textAlign: \"right\"\n }\n },\n \"code, tt\": {\n margin: \"0 2px\",\n padding: \"0 5px\",\n whiteSpace: \"nowrap\",\n border: `1px solid ${e.color.mediumlight}`,\n backgroundColor: e.color.lighter,\n borderRadius: 3,\n color: e.base === \"dark\" ? e.color.darkest : e.color.dark\n }\n}));\n\n// src/components/components/syntaxhighlighter/lazy-syntaxhighlighter.tsx\nimport yr, { Suspense as eg, lazy as tu } from \"react\";\nvar Ut = [], xr = null, tg = tu(async () => {\n let { SyntaxHighlighter: e } = await Promise.resolve().then(() => (cn(), Qa));\n return Ut.length > 0 && (Ut.forEach((t) => {\n e.registerLanguage(...t);\n }), Ut = []), xr === null && (xr = e), {\n default: /* @__PURE__ */ o((t) => /* @__PURE__ */ yr.createElement(e, { ...t }), \"default\")\n };\n}), rg = tu(async () => {\n let [{ SyntaxHighlighter: e }, { formatter: t }] = await Promise.all([\n Promise.resolve().then(() => (cn(), Qa)),\n Promise.resolve().then(() => (eu(), Q5))\n ]);\n return Ut.length > 0 && (Ut.forEach((r) => {\n e.registerLanguage(...r);\n }), Ut = []), xr === null && (xr = e), {\n default: /* @__PURE__ */ o((r) => /* @__PURE__ */ yr.createElement(e, { ...r, formatter: t }), \"default\")\n };\n}), ru = /* @__PURE__ */ o((e) => /* @__PURE__ */ yr.createElement(eg, { fallback: /* @__PURE__ */ yr.createElement(\"div\", null) }, e.format !==\n!1 ? /* @__PURE__ */ yr.createElement(rg, { ...e }) : /* @__PURE__ */ yr.createElement(tg, { ...e })), \"SyntaxHighlighter\");\nru.registerLanguage = (...e) => {\n if (xr !== null) {\n xr.registerLanguage(...e);\n return;\n }\n Ut.push(e);\n};\n\n// src/components/index.ts\ncn();\nja();\n\n// src/components/components/Modal/Modal.tsx\nimport zr from \"react\";\n\n// ../node_modules/@radix-ui/react-dialog/dist/index.mjs\nvar wo = {};\nXr(wo, {\n Close: () => s0,\n Content: () => i0,\n Description: () => c0,\n Dialog: () => qi,\n DialogClose: () => t0,\n DialogContent: () => Ki,\n DialogDescription: () => e0,\n DialogOverlay: () => Zi,\n DialogPortal: () => Yi,\n DialogTitle: () => Qi,\n DialogTrigger: () => Gi,\n Overlay: () => a0,\n Portal: () => o0,\n Root: () => n0,\n Title: () => l0,\n Trigger: () => bv,\n WarningProvider: () => hv,\n createDialogScope: () => cv\n});\nimport * as q from \"react\";\n\n// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.mjs\nfunction Er(e, t, { checkForDefaultPrevented: r = !0 } = {}) {\n return /* @__PURE__ */ o(function(a) {\n if (e?.(a), r === !1 || !a.defaultPrevented)\n return t?.(a);\n }, \"handleEvent\");\n}\no(Er, \"composeEventHandlers\");\n\n// ../node_modules/@radix-ui/react-compose-refs/dist/index.mjs\nimport * as ou from \"react\";\nfunction nu(e, t) {\n if (typeof e == \"function\")\n return e(t);\n e != null && (e.current = t);\n}\no(nu, \"setRef\");\nfunction xi(...e) {\n return (t) => {\n let r = !1, n = e.map((a) => {\n let i = nu(a, t);\n return !r && typeof i == \"function\" && (r = !0), i;\n });\n if (r)\n return () => {\n for (let a = 0; a < n.length; a++) {\n let i = n[a];\n typeof i == \"function\" ? i() : nu(e[a], null);\n }\n };\n };\n}\no(xi, \"composeRefs\");\nfunction Ye(...e) {\n return ou.useCallback(xi(...e), e);\n}\no(Ye, \"useComposedRefs\");\n\n// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.mjs\nimport * as $e from \"react\";\nimport { jsx as au } from \"react/jsx-runtime\";\nfunction iu(e, t) {\n let r = $e.createContext(t), n = /* @__PURE__ */ o((i) => {\n let { children: c, ...l } = i, s = $e.useMemo(() => l, Object.values(l));\n return /* @__PURE__ */ au(r.Provider, { value: s, children: c });\n }, \"Provider\");\n n.displayName = e + \"Provider\";\n function a(i) {\n let c = $e.useContext(r);\n if (c) return c;\n if (t !== void 0) return t;\n throw new Error(`\\`${i}\\` must be used within \\`${e}\\``);\n }\n return o(a, \"useContext2\"), [n, a];\n}\no(iu, \"createContext2\");\nfunction lu(e, t = []) {\n let r = [];\n function n(i, c) {\n let l = $e.createContext(c), s = r.length;\n r = [...r, c];\n let u = /* @__PURE__ */ o((d) => {\n let { scope: m, children: v, ...R } = d, p = m?.[e]?.[s] || l, h = $e.useMemo(() => R, Object.values(R));\n return /* @__PURE__ */ au(p.Provider, { value: h, children: v });\n }, \"Provider\");\n u.displayName = i + \"Provider\";\n function f(d, m) {\n let v = m?.[e]?.[s] || l, R = $e.useContext(v);\n if (R) return R;\n if (c !== void 0) return c;\n throw new Error(`\\`${d}\\` must be used within \\`${i}\\``);\n }\n return o(f, \"useContext2\"), [u, f];\n }\n o(n, \"createContext3\");\n let a = /* @__PURE__ */ o(() => {\n let i = r.map((c) => $e.createContext(c));\n return /* @__PURE__ */ o(function(l) {\n let s = l?.[e] || i;\n return $e.useMemo(\n () => ({ [`__scope${e}`]: { ...l, [e]: s } }),\n [l, s]\n );\n }, \"useScope\");\n }, \"createScope\");\n return a.scopeName = e, [n, ng(a, ...t)];\n}\no(lu, \"createContextScope\");\nfunction ng(...e) {\n let t = e[0];\n if (e.length === 1) return t;\n let r = /* @__PURE__ */ o(() => {\n let n = e.map((a) => ({\n useScope: a(),\n scopeName: a.scopeName\n }));\n return /* @__PURE__ */ o(function(i) {\n let c = n.reduce((l, { useScope: s, scopeName: u }) => {\n let d = s(i)[`__scope${u}`];\n return { ...l, ...d };\n }, {});\n return $e.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);\n }, \"useComposedScopes\");\n }, \"createScope\");\n return r.scopeName = t.scopeName, r;\n}\no(ng, \"composeContextScopes\");\n\n// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs\nimport * as Ei from \"react\";\n\n// ../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs\nimport * as cu from \"react\";\nvar ct = globalThis?.document ? cu.useLayoutEffect : () => {\n};\n\n// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs\nvar og = Ei[\" useId \".trim().toString()] || (() => {\n}), ag = 0;\nfunction ro(e) {\n let [t, r] = Ei.useState(og());\n return ct(() => {\n e || r((n) => n ?? String(ag++));\n }, [e]), e || (t ? `radix-${t}` : \"\");\n}\no(ro, \"useId\");\n\n// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs\nimport * as Ve from \"react\";\nimport * as no from \"react\";\nvar ig = Ve[\" useInsertionEffect \".trim().toString()] || ct;\nfunction su({\n prop: e,\n defaultProp: t,\n onChange: r = /* @__PURE__ */ o(() => {\n }, \"onChange\"),\n caller: n\n}) {\n let [a, i, c] = lg({\n defaultProp: t,\n onChange: r\n }), l = e !== void 0, s = l ? e : a;\n {\n let f = Ve.useRef(e !== void 0);\n Ve.useEffect(() => {\n let d = f.current;\n d !== l && console.warn(\n `${n} is changing from ${d ? \"controlled\" : \"uncontrolled\"} to ${l ? \"controlled\" : \"uncontrolled\"}. Components should not switch fr\\\nom controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n ), f.current = l;\n }, [l, n]);\n }\n let u = Ve.useCallback(\n (f) => {\n if (l) {\n let d = cg(f) ? f(e) : f;\n d !== e && c.current?.(d);\n } else\n i(f);\n },\n [l, e, i, c]\n );\n return [s, u];\n}\no(su, \"useControllableState\");\nfunction lg({\n defaultProp: e,\n onChange: t\n}) {\n let [r, n] = Ve.useState(e), a = Ve.useRef(r), i = Ve.useRef(t);\n return ig(() => {\n i.current = t;\n }, [t]), Ve.useEffect(() => {\n a.current !== r && (i.current?.(r), a.current = r);\n }, [r, a]), [r, n, i];\n}\no(lg, \"useUncontrolledState\");\nfunction cg(e) {\n return typeof e == \"function\";\n}\no(cg, \"isFunction\");\nvar BE = Symbol(\"RADIX:SYNC_STATE\");\n\n// ../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs\nimport * as Q from \"react\";\n\n// ../node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/primitive/dist/index.mjs\nfunction oo(e, t, { checkForDefaultPrevented: r = !0 } = {}) {\n return /* @__PURE__ */ o(function(a) {\n if (e?.(a), r === !1 || !a.defaultPrevented)\n return t?.(a);\n }, \"handleEvent\");\n}\no(oo, \"composeEventHandlers\");\n\n// ../node_modules/@radix-ui/react-primitive/dist/index.mjs\nimport * as du from \"react\";\nimport * as pu from \"react-dom\";\n\n// ../node_modules/@radix-ui/react-slot/dist/index.mjs\nimport * as ie from \"react\";\nimport { Fragment as jE, jsx as uu } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction sn(e) {\n let t = /* @__PURE__ */ sg(e), r = ie.forwardRef((n, a) => {\n let { children: i, ...c } = n, l = ie.Children.toArray(i), s = l.find(fg);\n if (s) {\n let u = s.props.children, f = l.map((d) => d === s ? ie.Children.count(u) > 1 ? ie.Children.only(null) : ie.isValidElement(u) ? u.props.\n children : null : d);\n return /* @__PURE__ */ uu(t, { ...c, ref: a, children: ie.isValidElement(u) ? ie.cloneElement(u, void 0, f) : null });\n }\n return /* @__PURE__ */ uu(t, { ...c, ref: a, children: i });\n });\n return r.displayName = `${e}.Slot`, r;\n}\no(sn, \"createSlot\");\nvar fu = /* @__PURE__ */ sn(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction sg(e) {\n let t = ie.forwardRef((r, n) => {\n let { children: a, ...i } = r;\n if (ie.isValidElement(a)) {\n let c = pg(a), l = dg(i, a.props);\n return a.type !== ie.Fragment && (l.ref = n ? xi(n, c) : c), ie.cloneElement(a, l);\n }\n return ie.Children.count(a) > 1 ? ie.Children.only(null) : null;\n });\n return t.displayName = `${e}.SlotClone`, t;\n}\no(sg, \"createSlotClone\");\nvar ug = Symbol(\"radix.slottable\");\nfunction fg(e) {\n return ie.isValidElement(e) && typeof e.type == \"function\" && \"__radixId\" in e.type && e.type.__radixId === ug;\n}\no(fg, \"isSlottable\");\nfunction dg(e, t) {\n let r = { ...t };\n for (let n in t) {\n let a = e[n], i = t[n];\n /^on[A-Z]/.test(n) ? a && i ? r[n] = (...l) => {\n i(...l), a(...l);\n } : a && (r[n] = a) : n === \"style\" ? r[n] = { ...a, ...i } : n === \"className\" && (r[n] = [a, i].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\no(dg, \"mergeProps\");\nfunction pg(e) {\n let t = Object.getOwnPropertyDescriptor(e.props, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning;\n return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning, r ? e.props.ref :\n e.props.ref || e.ref);\n}\no(pg, \"getElementRef\");\n\n// ../node_modules/@radix-ui/react-primitive/dist/index.mjs\nimport { jsx as mg } from \"react/jsx-runtime\";\nvar hg = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n], Pe = hg.reduce((e, t) => {\n let r = sn(`Primitive.${t}`), n = du.forwardRef((a, i) => {\n let { asChild: c, ...l } = a, s = c ? r : t;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ mg(s, { ...l, ref: i });\n });\n return n.displayName = `Primitive.${t}`, { ...e, [t]: n };\n}, {});\nfunction mu(e, t) {\n e && pu.flushSync(() => e.dispatchEvent(t));\n}\no(mu, \"dispatchDiscreteCustomEvent\");\n\n// ../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs\nimport * as Sr from \"react\";\nfunction St(e) {\n let t = Sr.useRef(e);\n return Sr.useEffect(() => {\n t.current = e;\n }), Sr.useMemo(() => (...r) => t.current?.(...r), []);\n}\no(St, \"useCallbackRef\");\n\n// ../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs\nimport * as hu from \"react\";\nfunction gu(e, t = globalThis?.document) {\n let r = St(e);\n hu.useEffect(() => {\n let n = /* @__PURE__ */ o((a) => {\n a.key === \"Escape\" && r(a);\n }, \"handleKeyDown\");\n return t.addEventListener(\"keydown\", n, { capture: !0 }), () => t.removeEventListener(\"keydown\", n, { capture: !0 });\n }, [r, t]);\n}\no(gu, \"useEscapeKeydown\");\n\n// ../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs\nimport { jsx as bu } from \"react/jsx-runtime\";\nvar gg = \"DismissableLayer\", Si = \"dismissableLayer.update\", vg = \"dismissableLayer.pointerDownOutside\", wg = \"dismissableLayer.focusOutside\",\nvu, Ru = Q.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n}), Ci = Q.forwardRef(\n (e, t) => {\n let {\n disableOutsidePointerEvents: r = !1,\n onEscapeKeyDown: n,\n onPointerDownOutside: a,\n onFocusOutside: i,\n onInteractOutside: c,\n onDismiss: l,\n ...s\n } = e, u = Q.useContext(Ru), [f, d] = Q.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, v] = Q.useState({}), R = Ye(t, (S) => d(\n S)), p = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), g = p.indexOf(h), w = f ? p.indexOf(f) : -1,\n b = u.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= g, E = yg((S) => {\n let L = S.target, M = [...u.branches].some((A) => A.contains(L));\n !x || M || (a?.(S), c?.(S), S.defaultPrevented || l?.());\n }, m), y = xg((S) => {\n let L = S.target;\n [...u.branches].some((A) => A.contains(L)) || (i?.(S), c?.(S), S.defaultPrevented || l?.());\n }, m);\n return gu((S) => {\n w === u.layers.size - 1 && (n?.(S), !S.defaultPrevented && l && (S.preventDefault(), l()));\n }, m), Q.useEffect(() => {\n if (f)\n return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (vu = m.body.style.pointerEvents, m.body.style.pointerEvents = \"\\\nnone\"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), wu(), () => {\n r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = vu);\n };\n }, [f, m, r, u]), Q.useEffect(() => () => {\n f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), wu());\n }, [f, u]), Q.useEffect(() => {\n let S = /* @__PURE__ */ o(() => v({}), \"handleUpdate\");\n return document.addEventListener(Si, S), () => document.removeEventListener(Si, S);\n }, []), /* @__PURE__ */ bu(\n Pe.div,\n {\n ...s,\n ref: R,\n style: {\n pointerEvents: b ? x ? \"auto\" : \"none\" : void 0,\n ...e.style\n },\n onFocusCapture: oo(e.onFocusCapture, y.onFocusCapture),\n onBlurCapture: oo(e.onBlurCapture, y.onBlurCapture),\n onPointerDownCapture: oo(\n e.onPointerDownCapture,\n E.onPointerDownCapture\n )\n }\n );\n }\n);\nCi.displayName = gg;\nvar bg = \"DismissableLayerBranch\", Rg = Q.forwardRef((e, t) => {\n let r = Q.useContext(Ru), n = Q.useRef(null), a = Ye(t, n);\n return Q.useEffect(() => {\n let i = n.current;\n if (i)\n return r.branches.add(i), () => {\n r.branches.delete(i);\n };\n }, [r.branches]), /* @__PURE__ */ bu(Pe.div, { ...e, ref: a });\n});\nRg.displayName = bg;\nfunction yg(e, t = globalThis?.document) {\n let r = St(e), n = Q.useRef(!1), a = Q.useRef(() => {\n });\n return Q.useEffect(() => {\n let i = /* @__PURE__ */ o((l) => {\n if (l.target && !n.current) {\n let u = /* @__PURE__ */ o(function() {\n yu(\n vg,\n r,\n f,\n { discrete: !0 }\n );\n }, \"handleAndDispatchPointerDownOutsideEvent2\");\n var s = u;\n let f = { originalEvent: l };\n l.pointerType === \"touch\" ? (t.removeEventListener(\"click\", a.current), a.current = u, t.addEventListener(\"click\", a.current, { once: !0 })) :\n u();\n } else\n t.removeEventListener(\"click\", a.current);\n n.current = !1;\n }, \"handlePointerDown\"), c = window.setTimeout(() => {\n t.addEventListener(\"pointerdown\", i);\n }, 0);\n return () => {\n window.clearTimeout(c), t.removeEventListener(\"pointerdown\", i), t.removeEventListener(\"click\", a.current);\n };\n }, [t, r]), {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: /* @__PURE__ */ o(() => n.current = !0, \"onPointerDownCapture\")\n };\n}\no(yg, \"usePointerDownOutside\");\nfunction xg(e, t = globalThis?.document) {\n let r = St(e), n = Q.useRef(!1);\n return Q.useEffect(() => {\n let a = /* @__PURE__ */ o((i) => {\n i.target && !n.current && yu(wg, r, { originalEvent: i }, {\n discrete: !1\n });\n }, \"handleFocus\");\n return t.addEventListener(\"focusin\", a), () => t.removeEventListener(\"focusin\", a);\n }, [t, r]), {\n onFocusCapture: /* @__PURE__ */ o(() => n.current = !0, \"onFocusCapture\"),\n onBlurCapture: /* @__PURE__ */ o(() => n.current = !1, \"onBlurCapture\")\n };\n}\no(xg, \"useFocusOutside\");\nfunction wu() {\n let e = new CustomEvent(Si);\n document.dispatchEvent(e);\n}\no(wu, \"dispatchUpdate\");\nfunction yu(e, t, r, { discrete: n }) {\n let a = r.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });\n t && a.addEventListener(e, t, { once: !0 }), n ? mu(a, i) : a.dispatchEvent(i);\n}\no(yu, \"handleAndDispatchCustomEvent\");\n\n// ../node_modules/@radix-ui/react-focus-scope/dist/index.mjs\nimport * as je from \"react\";\nimport { jsx as Eg } from \"react/jsx-runtime\";\nvar Mi = \"focusScope.autoFocusOnMount\", Li = \"focusScope.autoFocusOnUnmount\", xu = { bubbles: !1, cancelable: !0 }, Sg = \"FocusScope\", Ai = je.forwardRef(\n(e, t) => {\n let {\n loop: r = !1,\n trapped: n = !1,\n onMountAutoFocus: a,\n onUnmountAutoFocus: i,\n ...c\n } = e, [l, s] = je.useState(null), u = St(a), f = St(i), d = je.useRef(null), m = Ye(t, (p) => s(p)), v = je.useRef({\n paused: !1,\n pause() {\n this.paused = !0;\n },\n resume() {\n this.paused = !1;\n }\n }).current;\n je.useEffect(() => {\n if (n) {\n let w = /* @__PURE__ */ o(function(y) {\n if (v.paused || !l) return;\n let S = y.target;\n l.contains(S) ? d.current = S : Ct(d.current, { select: !0 });\n }, \"handleFocusIn2\"), b = /* @__PURE__ */ o(function(y) {\n if (v.paused || !l) return;\n let S = y.relatedTarget;\n S !== null && (l.contains(S) || Ct(d.current, { select: !0 }));\n }, \"handleFocusOut2\"), x = /* @__PURE__ */ o(function(y) {\n if (document.activeElement === document.body)\n for (let L of y)\n L.removedNodes.length > 0 && Ct(l);\n }, \"handleMutations2\");\n var p = w, h = b, g = x;\n document.addEventListener(\"focusin\", w), document.addEventListener(\"focusout\", b);\n let E = new MutationObserver(x);\n return l && E.observe(l, { childList: !0, subtree: !0 }), () => {\n document.removeEventListener(\"focusin\", w), document.removeEventListener(\"focusout\", b), E.disconnect();\n };\n }\n }, [n, l, v.paused]), je.useEffect(() => {\n if (l) {\n Su.add(v);\n let p = document.activeElement;\n if (!l.contains(p)) {\n let g = new CustomEvent(Mi, xu);\n l.addEventListener(Mi, u), l.dispatchEvent(g), g.defaultPrevented || (Cg(zg(Mu(l)), { select: !0 }), document.activeElement === p &&\n Ct(l));\n }\n return () => {\n l.removeEventListener(Mi, u), setTimeout(() => {\n let g = new CustomEvent(Li, xu);\n l.addEventListener(Li, f), l.dispatchEvent(g), g.defaultPrevented || Ct(p ?? document.body, { select: !0 }), l.removeEventListener(\n Li, f), Su.remove(v);\n }, 0);\n };\n }\n }, [l, u, f, v]);\n let R = je.useCallback(\n (p) => {\n if (!r && !n || v.paused) return;\n let h = p.key === \"Tab\" && !p.altKey && !p.ctrlKey && !p.metaKey, g = document.activeElement;\n if (h && g) {\n let w = p.currentTarget, [b, x] = Mg(w);\n b && x ? !p.shiftKey && g === x ? (p.preventDefault(), r && Ct(b, { select: !0 })) : p.shiftKey && g === b && (p.preventDefault(), r &&\n Ct(x, { select: !0 })) : g === w && p.preventDefault();\n }\n },\n [r, n, v.paused]\n );\n return /* @__PURE__ */ Eg(Pe.div, { tabIndex: -1, ...c, ref: m, onKeyDown: R });\n});\nAi.displayName = Sg;\nfunction Cg(e, { select: t = !1 } = {}) {\n let r = document.activeElement;\n for (let n of e)\n if (Ct(n, { select: t }), document.activeElement !== r) return;\n}\no(Cg, \"focusFirst\");\nfunction Mg(e) {\n let t = Mu(e), r = Eu(t, e), n = Eu(t.reverse(), e);\n return [r, n];\n}\no(Mg, \"getTabbableEdges\");\nfunction Mu(e) {\n let t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {\n acceptNode: /* @__PURE__ */ o((n) => {\n let a = n.tagName === \"INPUT\" && n.type === \"hidden\";\n return n.disabled || n.hidden || a ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }, \"acceptNode\")\n });\n for (; r.nextNode(); ) t.push(r.currentNode);\n return t;\n}\no(Mu, \"getTabbableCandidates\");\nfunction Eu(e, t) {\n for (let r of e)\n if (!Lg(r, { upTo: t })) return r;\n}\no(Eu, \"findVisible\");\nfunction Lg(e, { upTo: t }) {\n if (getComputedStyle(e).visibility === \"hidden\") return !0;\n for (; e; ) {\n if (t !== void 0 && e === t) return !1;\n if (getComputedStyle(e).display === \"none\") return !0;\n e = e.parentElement;\n }\n return !1;\n}\no(Lg, \"isHidden\");\nfunction Ag(e) {\n return e instanceof HTMLInputElement && \"select\" in e;\n}\no(Ag, \"isSelectableInput\");\nfunction Ct(e, { select: t = !1 } = {}) {\n if (e && e.focus) {\n let r = document.activeElement;\n e.focus({ preventScroll: !0 }), e !== r && Ag(e) && t && e.select();\n }\n}\no(Ct, \"focus\");\nvar Su = Ig();\nfunction Ig() {\n let e = [];\n return {\n add(t) {\n let r = e[0];\n t !== r && r?.pause(), e = Cu(e, t), e.unshift(t);\n },\n remove(t) {\n e = Cu(e, t), e[0]?.resume();\n }\n };\n}\no(Ig, \"createFocusScopesStack\");\nfunction Cu(e, t) {\n let r = [...e], n = r.indexOf(t);\n return n !== -1 && r.splice(n, 1), r;\n}\no(Cu, \"arrayRemove\");\nfunction zg(e) {\n return e.filter((t) => t.tagName !== \"A\");\n}\no(zg, \"removeLinks\");\n\n// ../node_modules/@radix-ui/react-portal/dist/index.mjs\nimport * as ao from \"react\";\nimport Tg from \"react-dom\";\nimport { jsx as Hg } from \"react/jsx-runtime\";\nvar Pg = \"Portal\", Ii = ao.forwardRef((e, t) => {\n let { container: r, ...n } = e, [a, i] = ao.useState(!1);\n ct(() => i(!0), []);\n let c = r || a && globalThis?.document?.body;\n return c ? Tg.createPortal(/* @__PURE__ */ Hg(Pe.div, { ...n, ref: t }), c) : null;\n});\nIi.displayName = Pg;\n\n// ../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs\nimport * as Ie from \"react\";\nimport * as Lu from \"react\";\nfunction kg(e, t) {\n return Lu.useReducer((r, n) => t[r][n] ?? r, e);\n}\no(kg, \"useStateMachine\");\nvar un = /* @__PURE__ */ o((e) => {\n let { present: t, children: r } = e, n = Og(t), a = typeof r == \"function\" ? r({ present: n.isPresent }) : Ie.Children.only(r), i = Ye(n.ref,\n Bg(a));\n return typeof r == \"function\" || n.isPresent ? Ie.cloneElement(a, { ref: i }) : null;\n}, \"Presence\");\nun.displayName = \"Presence\";\nfunction Og(e) {\n let [t, r] = Ie.useState(), n = Ie.useRef(null), a = Ie.useRef(e), i = Ie.useRef(\"none\"), c = e ? \"mounted\" : \"unmounted\", [l, s] = kg(c, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n return Ie.useEffect(() => {\n let u = io(n.current);\n i.current = l === \"mounted\" ? u : \"none\";\n }, [l]), ct(() => {\n let u = n.current, f = a.current;\n if (f !== e) {\n let m = i.current, v = io(u);\n e ? s(\"MOUNT\") : v === \"none\" || u?.display === \"none\" ? s(\"UNMOUNT\") : s(f && m !== v ? \"ANIMATION_OUT\" : \"UNMOUNT\"), a.current = e;\n }\n }, [e, s]), ct(() => {\n if (t) {\n let u, f = t.ownerDocument.defaultView ?? window, d = /* @__PURE__ */ o((v) => {\n let p = io(n.current).includes(v.animationName);\n if (v.target === t && p && (s(\"ANIMATION_END\"), !a.current)) {\n let h = t.style.animationFillMode;\n t.style.animationFillMode = \"forwards\", u = f.setTimeout(() => {\n t.style.animationFillMode === \"forwards\" && (t.style.animationFillMode = h);\n });\n }\n }, \"handleAnimationEnd\"), m = /* @__PURE__ */ o((v) => {\n v.target === t && (i.current = io(n.current));\n }, \"handleAnimationStart\");\n return t.addEventListener(\"animationstart\", m), t.addEventListener(\"animationcancel\", d), t.addEventListener(\"animationend\", d), () => {\n f.clearTimeout(u), t.removeEventListener(\"animationstart\", m), t.removeEventListener(\"animationcancel\", d), t.removeEventListener(\"a\\\nnimationend\", d);\n };\n } else\n s(\"ANIMATION_END\");\n }, [t, s]), {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(l),\n ref: Ie.useCallback((u) => {\n n.current = u ? getComputedStyle(u) : null, r(u);\n }, [])\n };\n}\no(Og, \"usePresence\");\nfunction io(e) {\n return e?.animationName || \"none\";\n}\no(io, \"getAnimationName\");\nfunction Bg(e) {\n let t = Object.getOwnPropertyDescriptor(e.props, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning;\n return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning, r ? e.props.ref :\n e.props.ref || e.ref);\n}\no(Bg, \"getElementRef\");\n\n// ../node_modules/@radix-ui/react-focus-guards/dist/index.mjs\nimport * as Iu from \"react\";\nvar zi = 0;\nfunction zu() {\n Iu.useEffect(() => {\n let e = document.querySelectorAll(\"[data-radix-focus-guard]\");\n return document.body.insertAdjacentElement(\"afterbegin\", e[0] ?? Au()), document.body.insertAdjacentElement(\"beforeend\", e[1] ?? Au()), zi++,\n () => {\n zi === 1 && document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((t) => t.remove()), zi--;\n };\n }, []);\n}\no(zu, \"useFocusGuards\");\nfunction Au() {\n let e = document.createElement(\"span\");\n return e.setAttribute(\"data-radix-focus-guard\", \"\"), e.tabIndex = 0, e.style.outline = \"none\", e.style.opacity = \"0\", e.style.position = \"\\\nfixed\", e.style.pointerEvents = \"none\", e;\n}\no(Au, \"createFocusGuard\");\n\n// ../node_modules/tslib/tslib.es6.mjs\nvar ze = /* @__PURE__ */ o(function() {\n return ze = Object.assign || /* @__PURE__ */ o(function(t) {\n for (var r, n = 1, a = arguments.length; n < a; n++) {\n r = arguments[n];\n for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);\n }\n return t;\n }, \"__assign\"), ze.apply(this, arguments);\n}, \"__assign\");\nfunction lo(e, t) {\n var r = {};\n for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);\n if (e != null && typeof Object.getOwnPropertySymbols == \"function\")\n for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)\n t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);\n return r;\n}\no(lo, \"__rest\");\nfunction Tu(e, t, r) {\n if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)\n (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);\n return e.concat(i || Array.prototype.slice.call(t));\n}\no(Tu, \"__spreadArray\");\n\n// ../node_modules/react-remove-scroll/dist/es2015/Combination.js\nimport * as po from \"react\";\n\n// ../node_modules/react-remove-scroll/dist/es2015/UI.js\nimport * as be from \"react\";\n\n// ../node_modules/react-remove-scroll-bar/dist/es2015/constants.js\nvar qt = \"right-scroll-bar-position\", Gt = \"width-before-scroll-bar\", Ti = \"with-scroll-bars-hidden\", Hi = \"--removed-body-scroll-bar-size\";\n\n// ../node_modules/use-callback-ref/dist/es2015/assignRef.js\nfunction co(e, t) {\n return typeof e == \"function\" ? e(t) : e && (e.current = t), e;\n}\no(co, \"assignRef\");\n\n// ../node_modules/use-callback-ref/dist/es2015/useRef.js\nimport { useState as Ng } from \"react\";\nfunction Hu(e, t) {\n var r = Ng(function() {\n return {\n // value\n value: e,\n // last callback\n callback: t,\n // \"memoized\" public interface\n facade: {\n get current() {\n return r.value;\n },\n set current(n) {\n var a = r.value;\n a !== n && (r.value = n, r.callback(n, a));\n }\n }\n };\n })[0];\n return r.callback = t, r.facade;\n}\no(Hu, \"useCallbackRef\");\n\n// ../node_modules/use-callback-ref/dist/es2015/useMergeRef.js\nimport * as so from \"react\";\nvar Dg = typeof window < \"u\" ? so.useLayoutEffect : so.useEffect, Pu = /* @__PURE__ */ new WeakMap();\nfunction Pi(e, t) {\n var r = Hu(t || null, function(n) {\n return e.forEach(function(a) {\n return co(a, n);\n });\n });\n return Dg(function() {\n var n = Pu.get(r);\n if (n) {\n var a = new Set(n), i = new Set(e), c = r.current;\n a.forEach(function(l) {\n i.has(l) || co(l, null);\n }), i.forEach(function(l) {\n a.has(l) || co(l, c);\n });\n }\n Pu.set(r, e);\n }, [e]), r;\n}\no(Pi, \"useMergeRefs\");\n\n// ../node_modules/use-sidecar/dist/es2015/medium.js\nfunction Fg(e) {\n return e;\n}\no(Fg, \"ItoI\");\nfunction _g(e, t) {\n t === void 0 && (t = Fg);\n var r = [], n = !1, a = {\n read: /* @__PURE__ */ o(function() {\n if (n)\n throw new Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");\n return r.length ? r[r.length - 1] : e;\n }, \"read\"),\n useMedium: /* @__PURE__ */ o(function(i) {\n var c = t(i, n);\n return r.push(c), function() {\n r = r.filter(function(l) {\n return l !== c;\n });\n };\n }, \"useMedium\"),\n assignSyncMedium: /* @__PURE__ */ o(function(i) {\n for (n = !0; r.length; ) {\n var c = r;\n r = [], c.forEach(i);\n }\n r = {\n push: /* @__PURE__ */ o(function(l) {\n return i(l);\n }, \"push\"),\n filter: /* @__PURE__ */ o(function() {\n return r;\n }, \"filter\")\n };\n }, \"assignSyncMedium\"),\n assignMedium: /* @__PURE__ */ o(function(i) {\n n = !0;\n var c = [];\n if (r.length) {\n var l = r;\n r = [], l.forEach(i), c = r;\n }\n var s = /* @__PURE__ */ o(function() {\n var f = c;\n c = [], f.forEach(i);\n }, \"executeQueue\"), u = /* @__PURE__ */ o(function() {\n return Promise.resolve().then(s);\n }, \"cycle\");\n u(), r = {\n push: /* @__PURE__ */ o(function(f) {\n c.push(f), u();\n }, \"push\"),\n filter: /* @__PURE__ */ o(function(f) {\n return c = c.filter(f), r;\n }, \"filter\")\n };\n }, \"assignMedium\")\n };\n return a;\n}\no(_g, \"innerCreateMedium\");\nfunction ki(e) {\n e === void 0 && (e = {});\n var t = _g(null);\n return t.options = ze({ async: !0, ssr: !1 }, e), t;\n}\no(ki, \"createSidecarMedium\");\n\n// ../node_modules/use-sidecar/dist/es2015/exports.js\nimport * as ku from \"react\";\nvar Ou = /* @__PURE__ */ o(function(e) {\n var t = e.sideCar, r = lo(e, [\"sideCar\"]);\n if (!t)\n throw new Error(\"Sidecar: please provide `sideCar` property to import the right car\");\n var n = t.read();\n if (!n)\n throw new Error(\"Sidecar medium not found\");\n return ku.createElement(n, ze({}, r));\n}, \"SideCar\");\nOu.isSideCarExport = !0;\nfunction Oi(e, t) {\n return e.useMedium(t), Ou;\n}\no(Oi, \"exportSidecar\");\n\n// ../node_modules/react-remove-scroll/dist/es2015/medium.js\nvar uo = ki();\n\n// ../node_modules/react-remove-scroll/dist/es2015/UI.js\nvar Bi = /* @__PURE__ */ o(function() {\n}, \"nothing\"), fn = be.forwardRef(function(e, t) {\n var r = be.useRef(null), n = be.useState({\n onScrollCapture: Bi,\n onWheelCapture: Bi,\n onTouchMoveCapture: Bi\n }), a = n[0], i = n[1], c = e.forwardProps, l = e.children, s = e.className, u = e.removeScrollBar, f = e.enabled, d = e.shards, m = e.sideCar,\n v = e.noIsolation, R = e.inert, p = e.allowPinchZoom, h = e.as, g = h === void 0 ? \"div\" : h, w = e.gapMode, b = lo(e, [\"forwardProps\", \"c\\\nhildren\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]), x = m,\n E = Pi([r, t]), y = ze(ze({}, b), a);\n return be.createElement(\n be.Fragment,\n null,\n f && be.createElement(x, { sideCar: uo, removeScrollBar: u, shards: d, noIsolation: v, inert: R, setCallbacks: i, allowPinchZoom: !!p, lockRef: r,\n gapMode: w }),\n c ? be.cloneElement(be.Children.only(l), ze(ze({}, y), { ref: E })) : be.createElement(g, ze({}, y, { className: s, ref: E }), l)\n );\n});\nfn.defaultProps = {\n enabled: !0,\n removeScrollBar: !0,\n inert: !1\n};\nfn.classNames = {\n fullWidth: Gt,\n zeroRight: qt\n};\n\n// ../node_modules/react-remove-scroll/dist/es2015/SideEffect.js\nimport * as Y from \"react\";\n\n// ../node_modules/react-remove-scroll-bar/dist/es2015/component.js\nimport * as Mr from \"react\";\n\n// ../node_modules/react-style-singleton/dist/es2015/hook.js\nimport * as Du from \"react\";\n\n// ../node_modules/get-nonce/dist/es2015/index.js\nvar Bu;\nvar Nu = /* @__PURE__ */ o(function() {\n if (Bu)\n return Bu;\n if (typeof __webpack_nonce__ < \"u\")\n return __webpack_nonce__;\n}, \"getNonce\");\n\n// ../node_modules/react-style-singleton/dist/es2015/singleton.js\nfunction $g() {\n if (!document)\n return null;\n var e = document.createElement(\"style\");\n e.type = \"text/css\";\n var t = Nu();\n return t && e.setAttribute(\"nonce\", t), e;\n}\no($g, \"makeStyleTag\");\nfunction Vg(e, t) {\n e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));\n}\no(Vg, \"injectStyles\");\nfunction jg(e) {\n var t = document.head || document.getElementsByTagName(\"head\")[0];\n t.appendChild(e);\n}\no(jg, \"insertStyleTag\");\nvar Ni = /* @__PURE__ */ o(function() {\n var e = 0, t = null;\n return {\n add: /* @__PURE__ */ o(function(r) {\n e == 0 && (t = $g()) && (Vg(t, r), jg(t)), e++;\n }, \"add\"),\n remove: /* @__PURE__ */ o(function() {\n e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);\n }, \"remove\")\n };\n}, \"stylesheetSingleton\");\n\n// ../node_modules/react-style-singleton/dist/es2015/hook.js\nvar Di = /* @__PURE__ */ o(function() {\n var e = Ni();\n return function(t, r) {\n Du.useEffect(function() {\n return e.add(t), function() {\n e.remove();\n };\n }, [t && r]);\n };\n}, \"styleHookSingleton\");\n\n// ../node_modules/react-style-singleton/dist/es2015/component.js\nvar dn = /* @__PURE__ */ o(function() {\n var e = Di(), t = /* @__PURE__ */ o(function(r) {\n var n = r.styles, a = r.dynamic;\n return e(n, a), null;\n }, \"Sheet\");\n return t;\n}, \"styleSingleton\");\n\n// ../node_modules/react-remove-scroll-bar/dist/es2015/utils.js\nvar Wg = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0\n}, Fi = /* @__PURE__ */ o(function(e) {\n return parseInt(e || \"\", 10) || 0;\n}, \"parse\"), Ug = /* @__PURE__ */ o(function(e) {\n var t = window.getComputedStyle(document.body), r = t[e === \"padding\" ? \"paddingLeft\" : \"marginLeft\"], n = t[e === \"padding\" ? \"paddingTop\" :\n \"marginTop\"], a = t[e === \"padding\" ? \"paddingRight\" : \"marginRight\"];\n return [Fi(r), Fi(n), Fi(a)];\n}, \"getOffset\"), _i = /* @__PURE__ */ o(function(e) {\n if (e === void 0 && (e = \"margin\"), typeof window > \"u\")\n return Wg;\n var t = Ug(e), r = document.documentElement.clientWidth, n = window.innerWidth;\n return {\n left: t[0],\n top: t[1],\n right: t[2],\n gap: Math.max(0, n - r + t[2] - t[0])\n };\n}, \"getGapWidth\");\n\n// ../node_modules/react-remove-scroll-bar/dist/es2015/component.js\nvar qg = dn(), Cr = \"data-scroll-locked\", Gg = /* @__PURE__ */ o(function(e, t, r, n) {\n var a = e.left, i = e.top, c = e.right, l = e.gap;\n return r === void 0 && (r = \"margin\"), `\n .`.concat(Ti, ` {\n overflow: hidden `).concat(n, `;\n padding-right: `).concat(l, \"px \").concat(n, `;\n }\n body[`).concat(Cr, `] {\n overflow: hidden `).concat(n, `;\n overscroll-behavior: contain;\n `).concat([\n t && \"position: relative \".concat(n, \";\"),\n r === \"margin\" && `\n padding-left: `.concat(a, `px;\n padding-top: `).concat(i, `px;\n padding-right: `).concat(c, `px;\n margin-left:0;\n margin-top:0;\n margin-right: `).concat(l, \"px \").concat(n, `;\n `),\n r === \"padding\" && \"padding-right: \".concat(l, \"px \").concat(n, \";\")\n ].filter(Boolean).join(\"\"), `\n }\n \n .`).concat(qt, ` {\n right: `).concat(l, \"px \").concat(n, `;\n }\n \n .`).concat(Gt, ` {\n margin-right: `).concat(l, \"px \").concat(n, `;\n }\n \n .`).concat(qt, \" .\").concat(qt, ` {\n right: 0 `).concat(n, `;\n }\n \n .`).concat(Gt, \" .\").concat(Gt, ` {\n margin-right: 0 `).concat(n, `;\n }\n \n body[`).concat(Cr, `] {\n `).concat(Hi, \": \").concat(l, `px;\n }\n`);\n}, \"getStyles\"), Fu = /* @__PURE__ */ o(function() {\n var e = parseInt(document.body.getAttribute(Cr) || \"0\", 10);\n return isFinite(e) ? e : 0;\n}, \"getCurrentUseCounter\"), Xg = /* @__PURE__ */ o(function() {\n Mr.useEffect(function() {\n return document.body.setAttribute(Cr, (Fu() + 1).toString()), function() {\n var e = Fu() - 1;\n e <= 0 ? document.body.removeAttribute(Cr) : document.body.setAttribute(Cr, e.toString());\n };\n }, []);\n}, \"useLockAttribute\"), $i = /* @__PURE__ */ o(function(e) {\n var t = e.noRelative, r = e.noImportant, n = e.gapMode, a = n === void 0 ? \"margin\" : n;\n Xg();\n var i = Mr.useMemo(function() {\n return _i(a);\n }, [a]);\n return Mr.createElement(qg, { styles: Gg(i, !t, a, r ? \"\" : \"!important\") });\n}, \"RemoveScrollBar\");\n\n// ../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js\nvar Vi = !1;\nif (typeof window < \"u\")\n try {\n pn = Object.defineProperty({}, \"passive\", {\n get: /* @__PURE__ */ o(function() {\n return Vi = !0, !0;\n }, \"get\")\n }), window.addEventListener(\"test\", pn, pn), window.removeEventListener(\"test\", pn, pn);\n } catch {\n Vi = !1;\n }\nvar pn, Xt = Vi ? { passive: !1 } : !1;\n\n// ../node_modules/react-remove-scroll/dist/es2015/handleScroll.js\nvar Yg = /* @__PURE__ */ o(function(e) {\n return e.tagName === \"TEXTAREA\";\n}, \"alwaysContainsScroll\"), _u = /* @__PURE__ */ o(function(e, t) {\n if (!(e instanceof Element))\n return !1;\n var r = window.getComputedStyle(e);\n return (\n // not-not-scrollable\n r[t] !== \"hidden\" && // contains scroll inside self\n !(r.overflowY === r.overflowX && !Yg(e) && r[t] === \"visible\")\n );\n}, \"elementCanBeScrolled\"), Zg = /* @__PURE__ */ o(function(e) {\n return _u(e, \"overflowY\");\n}, \"elementCouldBeVScrolled\"), Kg = /* @__PURE__ */ o(function(e) {\n return _u(e, \"overflowX\");\n}, \"elementCouldBeHScrolled\"), ji = /* @__PURE__ */ o(function(e, t) {\n var r = t.ownerDocument, n = t;\n do {\n typeof ShadowRoot < \"u\" && n instanceof ShadowRoot && (n = n.host);\n var a = $u(e, n);\n if (a) {\n var i = Vu(e, n), c = i[1], l = i[2];\n if (c > l)\n return !0;\n }\n n = n.parentNode;\n } while (n && n !== r.body);\n return !1;\n}, \"locationCouldBeScrolled\"), Jg = /* @__PURE__ */ o(function(e) {\n var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;\n return [\n t,\n r,\n n\n ];\n}, \"getVScrollVariables\"), Qg = /* @__PURE__ */ o(function(e) {\n var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;\n return [\n t,\n r,\n n\n ];\n}, \"getHScrollVariables\"), $u = /* @__PURE__ */ o(function(e, t) {\n return e === \"v\" ? Zg(t) : Kg(t);\n}, \"elementCouldBeScrolled\"), Vu = /* @__PURE__ */ o(function(e, t) {\n return e === \"v\" ? Jg(t) : Qg(t);\n}, \"getScrollVariables\"), ev = /* @__PURE__ */ o(function(e, t) {\n return e === \"h\" && t === \"rtl\" ? -1 : 1;\n}, \"getDirectionFactor\"), ju = /* @__PURE__ */ o(function(e, t, r, n, a) {\n var i = ev(e, window.getComputedStyle(t).direction), c = i * n, l = r.target, s = t.contains(l), u = !1, f = c > 0, d = 0, m = 0;\n do {\n var v = Vu(e, l), R = v[0], p = v[1], h = v[2], g = p - h - i * R;\n (R || g) && $u(e, l) && (d += g, m += R), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;\n } while (\n // portaled content\n !s && l !== document.body || // self content\n s && (t.contains(l) || t === l)\n );\n return (f && (a && Math.abs(d) < 1 || !a && c > d) || !f && (a && Math.abs(m) < 1 || !a && -c > m)) && (u = !0), u;\n}, \"handleScroll\");\n\n// ../node_modules/react-remove-scroll/dist/es2015/SideEffect.js\nvar fo = /* @__PURE__ */ o(function(e) {\n return \"changedTouches\" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];\n}, \"getTouchXY\"), Wu = /* @__PURE__ */ o(function(e) {\n return [e.deltaX, e.deltaY];\n}, \"getDeltaXY\"), Uu = /* @__PURE__ */ o(function(e) {\n return e && \"current\" in e ? e.current : e;\n}, \"extractRef\"), tv = /* @__PURE__ */ o(function(e, t) {\n return e[0] === t[0] && e[1] === t[1];\n}, \"deltaCompare\"), rv = /* @__PURE__ */ o(function(e) {\n return `\n .block-interactivity-`.concat(e, ` {pointer-events: none;}\n .allow-interactivity-`).concat(e, ` {pointer-events: all;}\n`);\n}, \"generateStyle\"), nv = 0, Lr = [];\nfunction qu(e) {\n var t = Y.useRef([]), r = Y.useRef([0, 0]), n = Y.useRef(), a = Y.useState(nv++)[0], i = Y.useState(dn)[0], c = Y.useRef(e);\n Y.useEffect(function() {\n c.current = e;\n }, [e]), Y.useEffect(function() {\n if (e.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(a));\n var p = Tu([e.lockRef.current], (e.shards || []).map(Uu), !0).filter(Boolean);\n return p.forEach(function(h) {\n return h.classList.add(\"allow-interactivity-\".concat(a));\n }), function() {\n document.body.classList.remove(\"block-interactivity-\".concat(a)), p.forEach(function(h) {\n return h.classList.remove(\"allow-interactivity-\".concat(a));\n });\n };\n }\n }, [e.inert, e.lockRef.current, e.shards]);\n var l = Y.useCallback(function(p, h) {\n if (\"touches\" in p && p.touches.length === 2 || p.type === \"wheel\" && p.ctrlKey)\n return !c.current.allowPinchZoom;\n var g = fo(p), w = r.current, b = \"deltaX\" in p ? p.deltaX : w[0] - g[0], x = \"deltaY\" in p ? p.deltaY : w[1] - g[1], E, y = p.target, S = Math.\n abs(b) > Math.abs(x) ? \"h\" : \"v\";\n if (\"touches\" in p && S === \"h\" && y.type === \"range\")\n return !1;\n var L = ji(S, y);\n if (!L)\n return !0;\n if (L ? E = S : (E = S === \"v\" ? \"h\" : \"v\", L = ji(S, y)), !L)\n return !1;\n if (!n.current && \"changedTouches\" in p && (b || x) && (n.current = E), !E)\n return !0;\n var M = n.current || E;\n return ju(M, h, p, M === \"h\" ? b : x, !0);\n }, []), s = Y.useCallback(function(p) {\n var h = p;\n if (!(!Lr.length || Lr[Lr.length - 1] !== i)) {\n var g = \"deltaY\" in h ? Wu(h) : fo(h), w = t.current.filter(function(E) {\n return E.name === h.type && (E.target === h.target || h.target === E.shadowParent) && tv(E.delta, g);\n })[0];\n if (w && w.should) {\n h.cancelable && h.preventDefault();\n return;\n }\n if (!w) {\n var b = (c.current.shards || []).map(Uu).filter(Boolean).filter(function(E) {\n return E.contains(h.target);\n }), x = b.length > 0 ? l(h, b[0]) : !c.current.noIsolation;\n x && h.cancelable && h.preventDefault();\n }\n }\n }, []), u = Y.useCallback(function(p, h, g, w) {\n var b = { name: p, delta: h, target: g, should: w, shadowParent: ov(g) };\n t.current.push(b), setTimeout(function() {\n t.current = t.current.filter(function(x) {\n return x !== b;\n });\n }, 1);\n }, []), f = Y.useCallback(function(p) {\n r.current = fo(p), n.current = void 0;\n }, []), d = Y.useCallback(function(p) {\n u(p.type, Wu(p), p.target, l(p, e.lockRef.current));\n }, []), m = Y.useCallback(function(p) {\n u(p.type, fo(p), p.target, l(p, e.lockRef.current));\n }, []);\n Y.useEffect(function() {\n return Lr.push(i), e.setCallbacks({\n onScrollCapture: d,\n onWheelCapture: d,\n onTouchMoveCapture: m\n }), document.addEventListener(\"wheel\", s, Xt), document.addEventListener(\"touchmove\", s, Xt), document.addEventListener(\"touchstart\", f,\n Xt), function() {\n Lr = Lr.filter(function(p) {\n return p !== i;\n }), document.removeEventListener(\"wheel\", s, Xt), document.removeEventListener(\"touchmove\", s, Xt), document.removeEventListener(\"touc\\\nhstart\", f, Xt);\n };\n }, []);\n var v = e.removeScrollBar, R = e.inert;\n return Y.createElement(\n Y.Fragment,\n null,\n R ? Y.createElement(i, { styles: rv(a) }) : null,\n v ? Y.createElement($i, { gapMode: e.gapMode }) : null\n );\n}\no(qu, \"RemoveScrollSideCar\");\nfunction ov(e) {\n for (var t = null; e !== null; )\n e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;\n return t;\n}\no(ov, \"getOutermostShadowParent\");\n\n// ../node_modules/react-remove-scroll/dist/es2015/sidecar.js\nvar Gu = Oi(uo, qu);\n\n// ../node_modules/react-remove-scroll/dist/es2015/Combination.js\nvar Xu = po.forwardRef(function(e, t) {\n return po.createElement(fn, ze({}, e, { ref: t, sideCar: Gu }));\n});\nXu.classNames = fn.classNames;\nvar Wi = Xu;\n\n// ../node_modules/aria-hidden/dist/es2015/index.js\nvar av = /* @__PURE__ */ o(function(e) {\n if (typeof document > \"u\")\n return null;\n var t = Array.isArray(e) ? e[0] : e;\n return t.ownerDocument.body;\n}, \"getDefaultParent\"), Ar = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), ho = {}, Ui = 0, Yu = /* @__PURE__ */ o(function(e) {\n return e && (e.host || Yu(e.parentNode));\n}, \"unwrapHost\"), iv = /* @__PURE__ */ o(function(e, t) {\n return t.map(function(r) {\n if (e.contains(r))\n return r;\n var n = Yu(r);\n return n && e.contains(n) ? n : (console.error(\"aria-hidden\", r, \"in not contained inside\", e, \". Doing nothing\"), null);\n }).filter(function(r) {\n return !!r;\n });\n}, \"correctTargets\"), lv = /* @__PURE__ */ o(function(e, t, r, n) {\n var a = iv(t, Array.isArray(e) ? e : [e]);\n ho[r] || (ho[r] = /* @__PURE__ */ new WeakMap());\n var i = ho[r], c = [], l = /* @__PURE__ */ new Set(), s = new Set(a), u = /* @__PURE__ */ o(function(d) {\n !d || l.has(d) || (l.add(d), u(d.parentNode));\n }, \"keep\");\n a.forEach(u);\n var f = /* @__PURE__ */ o(function(d) {\n !d || s.has(d) || Array.prototype.forEach.call(d.children, function(m) {\n if (l.has(m))\n f(m);\n else\n try {\n var v = m.getAttribute(n), R = v !== null && v !== \"false\", p = (Ar.get(m) || 0) + 1, h = (i.get(m) || 0) + 1;\n Ar.set(m, p), i.set(m, h), c.push(m), p === 1 && R && mo.set(m, !0), h === 1 && m.setAttribute(r, \"true\"), R || m.setAttribute(n, \"\\\ntrue\");\n } catch (g) {\n console.error(\"aria-hidden: cannot operate on \", m, g);\n }\n });\n }, \"deep\");\n return f(t), l.clear(), Ui++, function() {\n c.forEach(function(d) {\n var m = Ar.get(d) - 1, v = i.get(d) - 1;\n Ar.set(d, m), i.set(d, v), m || (mo.has(d) || d.removeAttribute(n), mo.delete(d)), v || d.removeAttribute(r);\n }), Ui--, Ui || (Ar = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), ho = {});\n };\n}, \"applyAttributeToOthers\"), Zu = /* @__PURE__ */ o(function(e, t, r) {\n r === void 0 && (r = \"data-aria-hidden\");\n var n = Array.from(Array.isArray(e) ? e : [e]), a = t || av(e);\n return a ? (n.push.apply(n, Array.from(a.querySelectorAll(\"[aria-live]\"))), lv(n, a, r, \"aria-hidden\")) : function() {\n return null;\n };\n}, \"hideOthers\");\n\n// ../node_modules/@radix-ui/react-dialog/dist/index.mjs\nimport { Fragment as Ku, jsx as re, jsxs as Ju } from \"react/jsx-runtime\";\nvar vo = \"Dialog\", [Qu, cv] = lu(vo), [sv, Ze] = Qu(vo), qi = /* @__PURE__ */ o((e) => {\n let {\n __scopeDialog: t,\n children: r,\n open: n,\n defaultOpen: a,\n onOpenChange: i,\n modal: c = !0\n } = e, l = q.useRef(null), s = q.useRef(null), [u, f] = su({\n prop: n,\n defaultProp: a ?? !1,\n onChange: i,\n caller: vo\n });\n return /* @__PURE__ */ re(\n sv,\n {\n scope: t,\n triggerRef: l,\n contentRef: s,\n contentId: ro(),\n titleId: ro(),\n descriptionId: ro(),\n open: u,\n onOpenChange: f,\n onOpenToggle: q.useCallback(() => f((d) => !d), [f]),\n modal: c,\n children: r\n }\n );\n}, \"Dialog\");\nqi.displayName = vo;\nvar ef = \"DialogTrigger\", Gi = q.forwardRef(\n (e, t) => {\n let { __scopeDialog: r, ...n } = e, a = Ze(ef, r), i = Ye(t, a.triggerRef);\n return /* @__PURE__ */ re(\n Pe.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": a.open,\n \"aria-controls\": a.contentId,\n \"data-state\": r0(a.open),\n ...n,\n ref: i,\n onClick: Er(e.onClick, a.onOpenToggle)\n }\n );\n }\n);\nGi.displayName = ef;\nvar Xi = \"DialogPortal\", [uv, tf] = Qu(Xi, {\n forceMount: void 0\n}), Yi = /* @__PURE__ */ o((e) => {\n let { __scopeDialog: t, forceMount: r, children: n, container: a } = e, i = Ze(Xi, t);\n return /* @__PURE__ */ re(uv, { scope: t, forceMount: r, children: q.Children.map(n, (c) => /* @__PURE__ */ re(un, { present: r || i.open,\n children: /* @__PURE__ */ re(Ii, { asChild: !0, container: a, children: c }) })) });\n}, \"DialogPortal\");\nYi.displayName = Xi;\nvar go = \"DialogOverlay\", Zi = q.forwardRef(\n (e, t) => {\n let r = tf(go, e.__scopeDialog), { forceMount: n = r.forceMount, ...a } = e, i = Ze(go, e.__scopeDialog);\n return i.modal ? /* @__PURE__ */ re(un, { present: n || i.open, children: /* @__PURE__ */ re(dv, { ...a, ref: t }) }) : null;\n }\n);\nZi.displayName = go;\nvar fv = sn(\"DialogOverlay.RemoveScroll\"), dv = q.forwardRef(\n (e, t) => {\n let { __scopeDialog: r, ...n } = e, a = Ze(go, r);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ re(Wi, { as: fv, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ re(\n Pe.div,\n {\n \"data-state\": r0(a.open),\n ...n,\n ref: t,\n style: { pointerEvents: \"auto\", ...n.style }\n }\n ) })\n );\n }\n), Yt = \"DialogContent\", Ki = q.forwardRef(\n (e, t) => {\n let r = tf(Yt, e.__scopeDialog), { forceMount: n = r.forceMount, ...a } = e, i = Ze(Yt, e.__scopeDialog);\n return /* @__PURE__ */ re(un, { present: n || i.open, children: i.modal ? /* @__PURE__ */ re(pv, { ...a, ref: t }) : /* @__PURE__ */ re(\n mv, { ...a, ref: t }) });\n }\n);\nKi.displayName = Yt;\nvar pv = q.forwardRef(\n (e, t) => {\n let r = Ze(Yt, e.__scopeDialog), n = q.useRef(null), a = Ye(t, r.contentRef, n);\n return q.useEffect(() => {\n let i = n.current;\n if (i) return Zu(i);\n }, []), /* @__PURE__ */ re(\n rf,\n {\n ...e,\n ref: a,\n trapFocus: r.open,\n disableOutsidePointerEvents: !0,\n onCloseAutoFocus: Er(e.onCloseAutoFocus, (i) => {\n i.preventDefault(), r.triggerRef.current?.focus();\n }),\n onPointerDownOutside: Er(e.onPointerDownOutside, (i) => {\n let c = i.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;\n (c.button === 2 || l) && i.preventDefault();\n }),\n onFocusOutside: Er(\n e.onFocusOutside,\n (i) => i.preventDefault()\n )\n }\n );\n }\n), mv = q.forwardRef(\n (e, t) => {\n let r = Ze(Yt, e.__scopeDialog), n = q.useRef(!1), a = q.useRef(!1);\n return /* @__PURE__ */ re(\n rf,\n {\n ...e,\n ref: t,\n trapFocus: !1,\n disableOutsidePointerEvents: !1,\n onCloseAutoFocus: /* @__PURE__ */ o((i) => {\n e.onCloseAutoFocus?.(i), i.defaultPrevented || (n.current || r.triggerRef.current?.focus(), i.preventDefault()), n.current = !1, a.\n current = !1;\n }, \"onCloseAutoFocus\"),\n onInteractOutside: /* @__PURE__ */ o((i) => {\n e.onInteractOutside?.(i), i.defaultPrevented || (n.current = !0, i.detail.originalEvent.type === \"pointerdown\" && (a.current = !0));\n let c = i.target;\n r.triggerRef.current?.contains(c) && i.preventDefault(), i.detail.originalEvent.type === \"focusin\" && a.current && i.preventDefault();\n }, \"onInteractOutside\")\n }\n );\n }\n), rf = q.forwardRef(\n (e, t) => {\n let { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: a, onCloseAutoFocus: i, ...c } = e, l = Ze(Yt, r), s = q.useRef(null), u = Ye(t, s);\n return zu(), /* @__PURE__ */ Ju(Ku, { children: [\n /* @__PURE__ */ re(\n Ai,\n {\n asChild: !0,\n loop: !0,\n trapped: n,\n onMountAutoFocus: a,\n onUnmountAutoFocus: i,\n children: /* @__PURE__ */ re(\n Ci,\n {\n role: \"dialog\",\n id: l.contentId,\n \"aria-describedby\": l.descriptionId,\n \"aria-labelledby\": l.titleId,\n \"data-state\": r0(l.open),\n ...c,\n ref: u,\n onDismiss: /* @__PURE__ */ o(() => l.onOpenChange(!1), \"onDismiss\")\n }\n )\n }\n ),\n /* @__PURE__ */ Ju(Ku, { children: [\n /* @__PURE__ */ re(gv, { titleId: l.titleId }),\n /* @__PURE__ */ re(wv, { contentRef: s, descriptionId: l.descriptionId })\n ] })\n ] });\n }\n), Ji = \"DialogTitle\", Qi = q.forwardRef(\n (e, t) => {\n let { __scopeDialog: r, ...n } = e, a = Ze(Ji, r);\n return /* @__PURE__ */ re(Pe.h2, { id: a.titleId, ...n, ref: t });\n }\n);\nQi.displayName = Ji;\nvar nf = \"DialogDescription\", e0 = q.forwardRef(\n (e, t) => {\n let { __scopeDialog: r, ...n } = e, a = Ze(nf, r);\n return /* @__PURE__ */ re(Pe.p, { id: a.descriptionId, ...n, ref: t });\n }\n);\ne0.displayName = nf;\nvar of = \"DialogClose\", t0 = q.forwardRef(\n (e, t) => {\n let { __scopeDialog: r, ...n } = e, a = Ze(of, r);\n return /* @__PURE__ */ re(\n Pe.button,\n {\n type: \"button\",\n ...n,\n ref: t,\n onClick: Er(e.onClick, () => a.onOpenChange(!1))\n }\n );\n }\n);\nt0.displayName = of;\nfunction r0(e) {\n return e ? \"open\" : \"closed\";\n}\no(r0, \"getState\");\nvar af = \"DialogTitleWarning\", [hv, lf] = iu(af, {\n contentName: Yt,\n titleName: Ji,\n docsSlug: \"dialog\"\n}), gv = /* @__PURE__ */ o(({ titleId: e }) => {\n let t = lf(af), r = `\\`${t.contentName}\\` requires a \\`${t.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${t.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;\n return q.useEffect(() => {\n e && (document.getElementById(e) || console.error(r));\n }, [r, e]), null;\n}, \"TitleWarning\"), vv = \"DialogDescriptionWarning\", wv = /* @__PURE__ */ o(({ contentRef: e, descriptionId: t }) => {\n let n = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${lf(vv).contentName}}.`;\n return q.useEffect(() => {\n let a = e.current?.getAttribute(\"aria-describedby\");\n t && a && (document.getElementById(t) || console.warn(n));\n }, [n, e, t]), null;\n}, \"DescriptionWarning\"), n0 = qi, bv = Gi, o0 = Yi, a0 = Zi, i0 = Ki, l0 = Qi, c0 = e0, s0 = t0;\n\n// src/components/components/Modal/Modal.styled.tsx\nvar p0 = {};\nXr(p0, {\n Actions: () => Ov,\n CloseButton: () => sf,\n Col: () => ff,\n Container: () => d0,\n Content: () => Tv,\n Description: () => kv,\n Error: () => Bv,\n ErrorWrapper: () => df,\n Header: () => Hv,\n Overlay: () => f0,\n Row: () => uf,\n Title: () => Pv\n});\nimport Mt from \"react\";\nimport { keyframes as u0, styled as st } from \"storybook/theming\";\n\n// src/components/components/IconButton/IconButton.tsx\nimport Lv, { forwardRef as Av } from \"react\";\n\n// src/components/components/Button/Button.tsx\nimport Rv, { forwardRef as yv, useEffect as xv, useState as Ev } from \"react\";\nimport { isPropValid as Sv, styled as Cv } from \"storybook/theming\";\nvar Ir = yv(\n ({\n asChild: e = !1,\n animation: t = \"none\",\n size: r = \"small\",\n variant: n = \"outline\",\n padding: a = \"medium\",\n disabled: i = !1,\n active: c = !1,\n onClick: l,\n ...s\n }, u) => {\n let f = \"button\";\n e && (f = fu);\n let [d, m] = Ev(!1), v = /* @__PURE__ */ o((R) => {\n l && l(R), t !== \"none\" && m(!0);\n }, \"handleClick\");\n return xv(() => {\n let R = setTimeout(() => {\n d && m(!1);\n }, 1e3);\n return () => clearTimeout(R);\n }, [d]), /* @__PURE__ */ Rv.createElement(\n Mv,\n {\n as: f,\n ref: u,\n variant: n,\n size: r,\n padding: a,\n disabled: i,\n active: c,\n animating: d,\n animation: t,\n onClick: v,\n ...s\n }\n );\n }\n);\nIr.displayName = \"Button\";\nvar Mv = Cv(\"button\", {\n shouldForwardProp: /* @__PURE__ */ o((e) => Sv(e), \"shouldForwardProp\")\n})(({ theme: e, variant: t, size: r, disabled: n, active: a, animating: i, animation: c = \"none\", padding: l }) => ({\n border: 0,\n cursor: n ? \"not-allowed\" : \"pointer\",\n display: \"inline-flex\",\n gap: \"6px\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n padding: l === \"none\" ? 0 : l === \"small\" && r === \"small\" ? \"0 7px\" : l === \"small\" && r === \"medium\" ? \"0 9px\" : r === \"small\" ? \"0 10px\" :\n r === \"medium\" ? \"0 12px\" : 0,\n height: r === \"small\" ? \"28px\" : \"32px\",\n position: \"relative\",\n textAlign: \"center\",\n textDecoration: \"none\",\n transitionProperty: \"background, box-shadow\",\n transitionDuration: \"150ms\",\n transitionTimingFunction: \"ease-out\",\n verticalAlign: \"top\",\n whiteSpace: \"nowrap\",\n userSelect: \"none\",\n opacity: n ? 0.5 : 1,\n margin: 0,\n fontSize: `${e.typography.size.s1}px`,\n fontWeight: e.typography.weight.bold,\n lineHeight: \"1\",\n background: t === \"solid\" ? e.color.secondary : t === \"outline\" ? e.button.background : t === \"ghost\" && a ? e.background.hoverable : \"tra\\\nnsparent\",\n ...t === \"ghost\" ? {\n // This is a hack to apply bar styles to the button as soon as it is part of a bar\n // It is a temporary solution until we have implemented Theming 2.0.\n \".sb-bar &\": {\n background: a ? we(0.9, e.barTextColor) : \"transparent\",\n color: a ? e.barSelectedColor : e.barTextColor,\n \"&:hover\": {\n color: e.barHoverColor,\n background: we(0.86, e.barHoverColor)\n },\n \"&:active\": {\n color: e.barSelectedColor,\n background: we(0.9, e.barSelectedColor)\n },\n \"&:focus\": {\n boxShadow: `${Dt(e.barHoverColor, 1)} 0 0 0 1px inset`,\n outline: \"none\"\n }\n }\n } : {},\n color: t === \"solid\" ? e.color.lightest : t === \"outline\" ? e.input.color : t === \"ghost\" && a ? e.color.secondary : t === \"ghost\" ? e.color.\n mediumdark : e.input.color,\n boxShadow: t === \"outline\" ? `${e.button.border} 0 0 0 1px inset` : \"none\",\n borderRadius: e.input.borderRadius,\n // Making sure that the button never shrinks below its minimum size\n flexShrink: 0,\n \"&:hover\": {\n color: t === \"ghost\" ? e.color.secondary : void 0,\n background: (() => {\n let s = e.color.secondary;\n return t === \"solid\" && (s = e.color.secondary), t === \"outline\" && (s = e.button.background), t === \"ghost\" ? we(0.86, e.color.secondary) :\n e.base === \"light\" ? wt(0.02, s) : Ko(0.03, s);\n })()\n },\n \"&:active\": {\n color: t === \"ghost\" ? e.color.secondary : void 0,\n background: (() => {\n let s = e.color.secondary;\n return t === \"solid\" && (s = e.color.secondary), t === \"outline\" && (s = e.button.background), t === \"ghost\" ? e.background.hoverable :\n e.base === \"light\" ? wt(0.02, s) : Ko(0.03, s);\n })()\n },\n \"&:focus\": {\n boxShadow: `${Dt(e.color.secondary, 1)} 0 0 0 1px inset`,\n outline: \"none\"\n },\n \"> svg\": {\n animation: i && c !== \"none\" ? `${e.animation[c]} 1000ms ease-out` : \"\"\n }\n}));\n\n// src/components/components/IconButton/IconButton.tsx\nvar bo = Av(\n ({ padding: e = \"small\", variant: t = \"ghost\", ...r }, n) => /* @__PURE__ */ Lv.createElement(Ir, { padding: e, variant: t, ref: n, ...r })\n);\nbo.displayName = \"IconButton\";\n\n// src/components/components/Modal/Modal.styled.tsx\nvar cf = u0({\n from: { opacity: 0 },\n to: { opacity: 1 }\n}), Iv = u0({\n from: { maxHeight: 0 },\n to: {}\n}), zv = u0({\n from: {\n opacity: 0,\n transform: \"translate(-50%, -50%) scale(0.9)\"\n },\n to: {\n opacity: 1,\n transform: \"translate(-50%, -50%) scale(1)\"\n }\n}), f0 = st.div({\n backdropFilter: \"blur(24px)\",\n position: \"fixed\",\n inset: 0,\n width: \"100%\",\n height: \"100%\",\n zIndex: 10,\n animation: `${cf} 200ms`\n}), d0 = st.div(\n ({ theme: e, width: t, height: r }) => ({\n backgroundColor: e.background.bar,\n borderRadius: 6,\n boxShadow: \"0px 4px 67px 0px #00000040\",\n position: \"fixed\",\n top: \"50%\",\n left: \"50%\",\n transform: \"translate(-50%, -50%)\",\n width: t ?? 740,\n height: r ?? \"auto\",\n maxWidth: \"calc(100% - 40px)\",\n maxHeight: \"85vh\",\n overflow: \"hidden\",\n zIndex: 11,\n animation: `${zv} 200ms`,\n \"&:focus-visible\": {\n outline: \"none\"\n }\n })\n), sf = /* @__PURE__ */ o((e) => /* @__PURE__ */ Mt.createElement(s0, { asChild: !0 }, /* @__PURE__ */ Mt.createElement(bo, { ...e }, /* @__PURE__ */ Mt.\ncreateElement(G5, null))), \"CloseButton\"), Tv = st.div({\n display: \"flex\",\n flexDirection: \"column\",\n margin: 16,\n gap: 16\n}), uf = st.div({\n display: \"flex\",\n justifyContent: \"space-between\",\n gap: 16\n}), ff = st.div({\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4\n}), Hv = /* @__PURE__ */ o((e) => /* @__PURE__ */ Mt.createElement(uf, null, /* @__PURE__ */ Mt.createElement(ff, { ...e }), /* @__PURE__ */ Mt.\ncreateElement(sf, null)), \"Header\"), Pv = st(l0)(({ theme: e }) => ({\n margin: 0,\n fontSize: e.typography.size.s3,\n fontWeight: e.typography.weight.bold\n})), kv = st(c0)(({ theme: e }) => ({\n position: \"relative\",\n zIndex: 1,\n margin: 0,\n fontSize: e.typography.size.s2\n})), Ov = st.div({\n display: \"flex\",\n flexDirection: \"row-reverse\",\n gap: 8\n}), df = st.div(({ theme: e }) => ({\n maxHeight: 100,\n overflow: \"auto\",\n animation: `${Iv} 300ms, ${cf} 300ms`,\n backgroundColor: e.background.critical,\n color: e.color.lightest,\n fontSize: e.typography.size.s2,\n \"& > div\": {\n position: \"relative\",\n padding: \"8px 16px\"\n }\n})), Bv = /* @__PURE__ */ o(({\n children: e,\n ...t\n}) => /* @__PURE__ */ Mt.createElement(df, { ...t }, /* @__PURE__ */ Mt.createElement(\"div\", null, e)), \"Error\");\n\n// src/components/components/Modal/Modal.tsx\nfunction Nv({\n children: e,\n width: t,\n height: r,\n onEscapeKeyDown: n,\n onInteractOutside: a = /* @__PURE__ */ o((u) => u.preventDefault(), \"onInteractOutside\"),\n className: i,\n container: c,\n portalSelector: l,\n ...s\n}) {\n let u = c ?? (l ? document.querySelector(l) : null) ?? document.body;\n return /* @__PURE__ */ zr.createElement(n0, { ...s }, /* @__PURE__ */ zr.createElement(o0, { container: u }, /* @__PURE__ */ zr.createElement(\n a0, { asChild: !0 }, /* @__PURE__ */ zr.createElement(f0, null)), /* @__PURE__ */ zr.createElement(\n i0,\n {\n asChild: !0,\n onInteractOutside: a,\n onEscapeKeyDown: n\n },\n /* @__PURE__ */ zr.createElement(d0, { className: i, width: t, height: r }, e)\n )));\n}\no(Nv, \"BaseModal\");\nvar Dv = Object.assign(Nv, p0, { Dialog: wo });\n\n// src/components/components/spaced/Spaced.tsx\nimport Fv from \"react\";\nimport { ignoreSsrWarning as pf, styled as _v } from \"storybook/theming\";\nvar $v = /* @__PURE__ */ o((e) => typeof e == \"number\" ? e : Number(e), \"toNumber\"), Vv = _v.div(\n ({ theme: e, col: t, row: r = 1 }) => t ? {\n display: \"inline-block\",\n verticalAlign: \"inherit\",\n \"& > *\": {\n marginLeft: t * e.layoutMargin,\n verticalAlign: \"inherit\"\n },\n [`& > *:first-child${pf}`]: {\n marginLeft: 0\n }\n } : {\n \"& > *\": {\n marginTop: r * e.layoutMargin\n },\n [`& > *:first-child${pf}`]: {\n marginTop: 0\n }\n },\n ({ theme: e, outer: t, col: r, row: n }) => {\n switch (!0) {\n case !!(t && r):\n return {\n marginLeft: t * e.layoutMargin,\n marginRight: t * e.layoutMargin\n };\n case !!(t && n):\n return {\n marginTop: t * e.layoutMargin,\n marginBottom: t * e.layoutMargin\n };\n default:\n return {};\n }\n }\n), jv = /* @__PURE__ */ o(({ col: e, row: t, outer: r, children: n, ...a }) => {\n let i = $v(typeof r == \"number\" || !r ? r : e || t);\n return /* @__PURE__ */ Fv.createElement(Vv, { col: e, row: t, outer: i, ...a }, n);\n}, \"Spaced\");\n\n// src/components/components/placeholder/placeholder.tsx\nimport m0, { Children as Wv } from \"react\";\nimport { styled as h0 } from \"storybook/theming\";\nvar Uv = h0.div(({ theme: e }) => ({\n fontWeight: e.typography.weight.bold\n})), qv = h0.div(), Gv = h0.div(({ theme: e }) => ({\n padding: 30,\n textAlign: \"center\",\n color: e.color.defaultText,\n fontSize: e.typography.size.s2 - 1\n})), Xv = /* @__PURE__ */ o(({ children: e, ...t }) => {\n let [r, n] = Wv.toArray(e);\n return /* @__PURE__ */ m0.createElement(Gv, { ...t }, /* @__PURE__ */ m0.createElement(Uv, null, r), n && /* @__PURE__ */ m0.createElement(\n qv, null, n));\n}, \"Placeholder\");\n\n// src/components/index.ts\nQn();\n\n// src/components/components/Zoom/ZoomElement.tsx\nimport hf, { useCallback as Jv, useEffect as Qv, useRef as e7, useState as t7 } from \"react\";\nimport { styled as r7 } from \"storybook/theming\";\n\n// ../node_modules/use-resize-observer/dist/bundle.esm.js\nimport { useRef as Zt, useEffect as g0, useCallback as v0, useState as Yv, useMemo as Zv } from \"react\";\nfunction Kv(e, t) {\n var r = Zt(null), n = Zt(null);\n n.current = t;\n var a = Zt(null);\n g0(function() {\n i();\n });\n var i = v0(function() {\n var c = a.current, l = n.current, s = c || (l ? l instanceof Element ? l : l.current : null);\n r.current && r.current.element === s && r.current.subscriber === e || (r.current && r.current.cleanup && r.current.cleanup(), r.current =\n {\n element: s,\n subscriber: e,\n // Only calling the subscriber, if there's an actual element to report.\n // Setting cleanup to undefined unless a subscriber returns one, as an existing cleanup function would've been just called.\n cleanup: s ? e(s) : void 0\n });\n }, [e]);\n return g0(function() {\n return function() {\n r.current && r.current.cleanup && (r.current.cleanup(), r.current = null);\n };\n }, []), v0(function(c) {\n a.current = c, i();\n }, [i]);\n}\no(Kv, \"useResolvedElement\");\nfunction mf(e, t, r) {\n return e[t] ? e[t][0] ? e[t][0][r] : (\n // TS complains about this, because the RO entry type follows the spec and does not reflect Firefox's current\n // behaviour of returning objects instead of arrays for `borderBoxSize` and `contentBoxSize`.\n // @ts-ignore\n e[t][r]\n ) : t === \"contentBoxSize\" ? e.contentRect[r === \"inlineSize\" ? \"width\" : \"height\"] : void 0;\n}\no(mf, \"extractSize\");\nfunction Ro(e) {\n e === void 0 && (e = {});\n var t = e.onResize, r = Zt(void 0);\n r.current = t;\n var n = e.round || Math.round, a = Zt(), i = Yv({\n width: void 0,\n height: void 0\n }), c = i[0], l = i[1], s = Zt(!1);\n g0(function() {\n return s.current = !1, function() {\n s.current = !0;\n };\n }, []);\n var u = Zt({\n width: void 0,\n height: void 0\n }), f = Kv(v0(function(d) {\n return (!a.current || a.current.box !== e.box || a.current.round !== n) && (a.current = {\n box: e.box,\n round: n,\n instance: new ResizeObserver(function(m) {\n var v = m[0], R = e.box === \"border-box\" ? \"borderBoxSize\" : e.box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"c\\\nontentBoxSize\", p = mf(v, R, \"inlineSize\"), h = mf(v, R, \"blockSize\"), g = p ? n(p) : void 0, w = h ? n(h) : void 0;\n if (u.current.width !== g || u.current.height !== w) {\n var b = {\n width: g,\n height: w\n };\n u.current.width = g, u.current.height = w, r.current ? r.current(b) : s.current || l(b);\n }\n })\n }), a.current.instance.observe(d, {\n box: e.box\n }), function() {\n a.current && a.current.instance.unobserve(d);\n };\n }, [e.box, n]), e.ref);\n return Zv(function() {\n return {\n ref: f,\n width: c.width,\n height: c.height\n };\n }, [f, c.width, c.height]);\n}\no(Ro, \"useResizeObserver\");\n\n// src/components/components/Zoom/ZoomElement.tsx\nvar n7 = r7.div(\n ({ centered: e = !1, scale: t = 1, elementHeight: r }) => ({\n height: r || \"auto\",\n transformOrigin: e ? \"center top\" : \"left top\",\n transform: `scale(${1 / t})`\n })\n);\nfunction gf({ centered: e, scale: t, children: r }) {\n let n = e7(null), [a, i] = t7(0), c = Jv(\n ({ height: l }) => {\n l && i(l / t);\n },\n [t]\n );\n return Qv(() => {\n n.current && i(n.current.getBoundingClientRect().height);\n }, [t]), Ro({\n ref: n,\n onResize: c\n }), /* @__PURE__ */ hf.createElement(n7, { centered: e, scale: t, elementHeight: a }, /* @__PURE__ */ hf.createElement(\"div\", { ref: n, className: \"\\\ninnerZoomElementWrapper\" }, r));\n}\no(gf, \"ZoomElement\");\n\n// src/components/components/Zoom/ZoomIFrame.tsx\nimport vf, { Component as o7 } from \"react\";\nvar w0 = class w0 extends o7 {\n constructor() {\n super(...arguments);\n // @ts-expect-error (non strict)\n this.iframe = null;\n }\n componentDidMount() {\n let { iFrameRef: r } = this.props;\n this.iframe = r.current;\n }\n shouldComponentUpdate(r) {\n let { scale: n, active: a } = this.props;\n return n !== r.scale && this.setIframeInnerZoom(r.scale), a !== r.active && this.iframe.setAttribute(\"data-is-storybook\", r.active ? \"tr\\\nue\" : \"false\"), r.children.props.src !== this.props.children.props.src;\n }\n setIframeInnerZoom(r) {\n try {\n Object.assign(this.iframe.contentDocument.body.style, {\n width: `${r * 100}%`,\n height: `${r * 100}%`,\n transform: `scale(${1 / r})`,\n transformOrigin: \"top left\"\n });\n } catch {\n this.setIframeZoom(r);\n }\n }\n setIframeZoom(r) {\n Object.assign(this.iframe.style, {\n width: `${r * 100}%`,\n height: `${r * 100}%`,\n transform: `scale(${1 / r})`,\n transformOrigin: \"top left\"\n });\n }\n render() {\n let { children: r } = this.props;\n return /* @__PURE__ */ vf.createElement(vf.Fragment, null, r);\n }\n};\no(w0, \"ZoomIFrame\");\nvar yo = w0;\n\n// src/components/components/Zoom/Zoom.tsx\nvar a7 = {\n Element: gf,\n IFrame: yo\n};\n\n// src/components/components/ErrorFormatter/ErrorFormatter.tsx\nimport Te, { Fragment as Tr } from \"react\";\nimport { global as i7 } from \"@storybook/global\";\nimport { styled as b0 } from \"storybook/theming\";\nvar { document: l7 } = i7, c7 = b0.strong(({ theme: e }) => ({\n color: e.color.orange\n})), s7 = b0.strong(({ theme: e }) => ({\n color: e.color.ancillary,\n textDecoration: \"underline\"\n})), wf = b0.em(({ theme: e }) => ({\n color: e.textMutedColor\n})), u7 = /(Error): (.*)\\n/, f7 = /at (?:(.*) )?\\(?(.+)\\)?/, d7 = /([^@]+)?(?:\\/<)?@(.+)?/, p7 = /([^@]+)?@(.+)?/, m7 = /* @__PURE__ */ o(({\nerror: e }) => {\n if (!e)\n return /* @__PURE__ */ Te.createElement(Tr, null, \"This error has no stack or message\");\n if (!e.stack)\n return /* @__PURE__ */ Te.createElement(Tr, null, e.message || \"This error has no stack or message\");\n let t = e.stack.toString();\n t && e.message && !t.includes(e.message) && (t = `Error: ${e.message}\n\n${t}`);\n let r = t.match(u7);\n if (!r)\n return /* @__PURE__ */ Te.createElement(Tr, null, t);\n let [, n, a] = r, i = t.split(/\\n/).slice(1), [, ...c] = i.map((l) => {\n let s = l.match(f7) || l.match(d7) || l.match(p7);\n return s ? {\n name: (s[1] || \"\").replace(\"/<\", \"\"),\n location: s[2].replace(l7.location.origin, \"\")\n } : null;\n }).filter(Boolean);\n return /* @__PURE__ */ Te.createElement(Tr, null, /* @__PURE__ */ Te.createElement(\"span\", null, n), \": \", /* @__PURE__ */ Te.createElement(\n c7, null, a), /* @__PURE__ */ Te.createElement(\"br\", null), c.map(\n (l, s) => l?.name ? /* @__PURE__ */ Te.createElement(Tr, { key: s }, \" \", \"at \", /* @__PURE__ */ Te.createElement(s7, null, l.name), \" \\\n(\", /* @__PURE__ */ Te.createElement(wf, null, l.location), \")\", /* @__PURE__ */ Te.createElement(\"br\", null)) : /* @__PURE__ */ Te.createElement(\n Tr, { key: s }, \" \", \"at \", /* @__PURE__ */ Te.createElement(wf, null, l?.location), /* @__PURE__ */ Te.createElement(\"br\", null))\n ));\n}, \"ErrorFormatter\");\n\n// src/components/components/Checkbox/Checkbox.tsx\nimport h7 from \"react\";\nimport { color as mn, styled as g7 } from \"storybook/internal/theming\";\nvar v7 = g7.input({\n appearance: \"none\",\n display: \"grid\",\n placeContent: \"center\",\n width: 14,\n height: 14,\n margin: 0,\n border: `1px solid ${mn.border}`,\n borderRadius: 2,\n backgroundColor: \"white\",\n transition: \"background-color 0.1s\",\n \"&:enabled\": {\n cursor: \"pointer\"\n },\n \"&:disabled\": {\n backgroundColor: mn.medium\n },\n \"&:disabled:checked, &:disabled:indeterminate\": {\n backgroundColor: mn.mediumdark\n },\n \"&:checked, &:indeterminate\": {\n backgroundColor: mn.secondary\n },\n \"&:checked::before\": {\n content: '\"\"',\n width: 14,\n height: 14,\n background: `no-repeat center url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='n\\\none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E\")`\n },\n \"&:indeterminate::before\": {\n content: '\"\"',\n width: 8,\n height: 2,\n background: \"white\"\n },\n \"&:enabled:focus\": {\n outline: `1px solid ${mn.secondary}`,\n outlineOffset: 1\n }\n}), w7 = /* @__PURE__ */ o((e) => /* @__PURE__ */ h7.createElement(v7, { ...e, type: \"checkbox\" }), \"Checkbox\");\n\n// src/components/components/form/index.tsx\nimport { styled as B7 } from \"storybook/theming\";\n\n// src/components/components/form/field/field.tsx\nimport R0 from \"react\";\nimport { styled as bf } from \"storybook/theming\";\nvar b7 = bf.label(({ theme: e }) => ({\n display: \"flex\",\n borderBottom: `1px solid ${e.appBorderColor}`,\n margin: \"0 15px\",\n padding: \"8px 0\",\n \"&:last-child\": {\n marginBottom: \"3rem\"\n }\n})), R7 = bf.span(({ theme: e }) => ({\n minWidth: 100,\n fontWeight: e.typography.weight.bold,\n marginRight: 15,\n display: \"flex\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n lineHeight: \"16px\"\n})), Rf = /* @__PURE__ */ o(({ label: e, children: t, ...r }) => /* @__PURE__ */ R0.createElement(b7, { ...r }, e ? /* @__PURE__ */ R0.createElement(\nR7, null, /* @__PURE__ */ R0.createElement(\"span\", null, e)) : null, t), \"Field\");\n\n// src/components/components/form/input/input.tsx\nimport x0, { forwardRef as E0 } from \"react\";\n\n// ../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js\nYr();\nPn();\nimport * as Ke from \"react\";\n\n// ../node_modules/use-latest/dist/use-latest.esm.js\nimport x7 from \"react\";\n\n// ../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js\nimport { useLayoutEffect as y7 } from \"react\";\nvar yf = y7;\n\n// ../node_modules/use-latest/dist/use-latest.esm.js\nvar xf = /* @__PURE__ */ o(function(t) {\n var r = x7.useRef(t);\n return yf(function() {\n r.current = t;\n }), r;\n}, \"useLatest\");\n\n// ../node_modules/use-composed-ref/dist/use-composed-ref.esm.js\nimport Ef from \"react\";\nvar Sf = /* @__PURE__ */ o(function(t, r) {\n if (typeof t == \"function\") {\n t(r);\n return;\n }\n t.current = r;\n}, \"updateRef\"), Cf = /* @__PURE__ */ o(function(t, r) {\n var n = Ef.useRef();\n return Ef.useCallback(function(a) {\n t.current = a, n.current && Sf(n.current, null), n.current = r, r && Sf(r, a);\n }, [r]);\n}, \"useComposedRef\");\n\n// ../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js\nvar Mf = {\n \"min-height\": \"0\",\n \"max-height\": \"none\",\n height: \"0\",\n visibility: \"hidden\",\n overflow: \"hidden\",\n position: \"absolute\",\n \"z-index\": \"-1000\",\n top: \"0\",\n right: \"0\",\n display: \"block\"\n}, E7 = /* @__PURE__ */ o(function(t) {\n Object.keys(Mf).forEach(function(r) {\n t.style.setProperty(r, Mf[r], \"important\");\n });\n}, \"forceHiddenStyles\"), Lf = E7, ye = null, Af = /* @__PURE__ */ o(function(t, r) {\n var n = t.scrollHeight;\n return r.sizingStyle.boxSizing === \"border-box\" ? n + r.borderSize : n - r.paddingSize;\n}, \"getHeight\");\nfunction S7(e, t, r, n) {\n r === void 0 && (r = 1), n === void 0 && (n = 1 / 0), ye || (ye = document.createElement(\"textarea\"), ye.setAttribute(\"tabindex\", \"-1\"), ye.\n setAttribute(\"aria-hidden\", \"true\"), Lf(ye)), ye.parentNode === null && document.body.appendChild(ye);\n var a = e.paddingSize, i = e.borderSize, c = e.sizingStyle, l = c.boxSizing;\n Object.keys(c).forEach(function(m) {\n var v = m;\n ye.style[v] = c[v];\n }), Lf(ye), ye.value = t;\n var s = Af(ye, e);\n ye.value = t, s = Af(ye, e), ye.value = \"x\";\n var u = ye.scrollHeight - a, f = u * r;\n l === \"border-box\" && (f = f + a + i), s = Math.max(f, s);\n var d = u * n;\n return l === \"border-box\" && (d = d + a + i), s = Math.min(d, s), [s, u];\n}\no(S7, \"calculateNodeHeight\");\nvar If = /* @__PURE__ */ o(function() {\n}, \"noop\"), C7 = /* @__PURE__ */ o(function(t, r) {\n return t.reduce(function(n, a) {\n return n[a] = r[a], n;\n }, {});\n}, \"pick\"), M7 = [\n \"borderBottomWidth\",\n \"borderLeftWidth\",\n \"borderRightWidth\",\n \"borderTopWidth\",\n \"boxSizing\",\n \"fontFamily\",\n \"fontSize\",\n \"fontStyle\",\n \"fontWeight\",\n \"letterSpacing\",\n \"lineHeight\",\n \"paddingBottom\",\n \"paddingLeft\",\n \"paddingRight\",\n \"paddingTop\",\n // non-standard\n \"tabSize\",\n \"textIndent\",\n // non-standard\n \"textRendering\",\n \"textTransform\",\n \"width\",\n \"wordBreak\",\n \"wordSpacing\",\n \"scrollbarGutter\"\n], L7 = !!document.documentElement.currentStyle, A7 = /* @__PURE__ */ o(function(t) {\n var r = window.getComputedStyle(t);\n if (r === null)\n return null;\n var n = C7(M7, r), a = n.boxSizing;\n if (a === \"\")\n return null;\n L7 && a === \"border-box\" && (n.width = parseFloat(n.width) + parseFloat(n.borderRightWidth) + parseFloat(n.borderLeftWidth) + parseFloat(n.\n paddingRight) + parseFloat(n.paddingLeft) + \"px\");\n var i = parseFloat(n.paddingBottom) + parseFloat(n.paddingTop), c = parseFloat(n.borderBottomWidth) + parseFloat(n.borderTopWidth);\n return {\n sizingStyle: n,\n paddingSize: i,\n borderSize: c\n };\n}, \"getSizingData\"), I7 = A7;\nfunction y0(e, t, r) {\n var n = xf(r);\n Ke.useLayoutEffect(function() {\n var a = /* @__PURE__ */ o(function(c) {\n return n.current(c);\n }, \"handler\");\n if (e)\n return e.addEventListener(t, a), function() {\n return e.removeEventListener(t, a);\n };\n }, []);\n}\no(y0, \"useListener\");\nvar z7 = /* @__PURE__ */ o(function(t, r) {\n y0(document.body, \"reset\", function(n) {\n t.current.form === n.target && r(n);\n });\n}, \"useFormResetListener\"), T7 = /* @__PURE__ */ o(function(t) {\n y0(window, \"resize\", t);\n}, \"useWindowResizeListener\"), H7 = /* @__PURE__ */ o(function(t) {\n y0(document.fonts, \"loadingdone\", t);\n}, \"useFontsLoadedListener\"), P7 = [\"cacheMeasurements\", \"maxRows\", \"minRows\", \"onChange\", \"onHeightChange\"], k7 = /* @__PURE__ */ o(function(t, r) {\n var n = t.cacheMeasurements, a = t.maxRows, i = t.minRows, c = t.onChange, l = c === void 0 ? If : c, s = t.onHeightChange, u = s === void 0 ?\n If : s, f = ur(t, P7), d = f.value !== void 0, m = Ke.useRef(null), v = Cf(m, r), R = Ke.useRef(0), p = Ke.useRef(), h = /* @__PURE__ */ o(\n function() {\n var b = m.current, x = n && p.current ? p.current : I7(b);\n if (x) {\n p.current = x;\n var E = S7(x, b.value || b.placeholder || \"x\", i, a), y = E[0], S = E[1];\n R.current !== y && (R.current = y, b.style.setProperty(\"height\", y + \"px\", \"important\"), u(y, {\n rowHeight: S\n }));\n }\n }, \"resizeTextarea\"), g = /* @__PURE__ */ o(function(b) {\n d || h(), l(b);\n }, \"handleChange\");\n return Ke.useLayoutEffect(h), z7(m, function() {\n if (!d) {\n var w = m.current.value;\n requestAnimationFrame(function() {\n var b = m.current;\n b && w !== b.value && h();\n });\n }\n }), T7(h), H7(h), /* @__PURE__ */ Ke.createElement(\"textarea\", W({}, f, {\n onChange: g,\n ref: v\n }));\n}, \"TextareaAutosize\"), zf = /* @__PURE__ */ Ke.forwardRef(k7);\n\n// src/components/components/form/input/input.tsx\nimport { styled as S0 } from \"storybook/theming\";\nvar O7 = {\n // resets\n appearance: \"none\",\n border: \"0 none\",\n boxSizing: \"inherit\",\n display: \" block\",\n margin: \" 0\",\n background: \"transparent\",\n padding: 0,\n fontSize: \"inherit\",\n position: \"relative\"\n}, C0 = /* @__PURE__ */ o(({ theme: e }) => ({\n ...O7,\n transition: \"box-shadow 200ms ease-out, opacity 200ms ease-out\",\n color: e.input.color || \"inherit\",\n background: e.input.background,\n boxShadow: `${e.input.border} 0 0 0 1px inset`,\n borderRadius: e.input.borderRadius,\n fontSize: e.typography.size.s2 - 1,\n lineHeight: \"20px\",\n padding: \"6px 10px\",\n // 32\n boxSizing: \"border-box\",\n height: 32,\n '&[type=\"file\"]': {\n height: \"auto\"\n },\n \"&:focus\": {\n boxShadow: `${e.color.secondary} 0 0 0 1px inset`,\n outline: \"none\"\n },\n \"&[disabled]\": {\n cursor: \"not-allowed\",\n opacity: 0.5\n },\n \"&:-webkit-autofill\": { WebkitBoxShadow: `0 0 0 3em ${e.color.lightest} inset` },\n \"&::placeholder\": {\n color: e.textMutedColor,\n opacity: 1\n }\n}), \"styles\"), M0 = /* @__PURE__ */ o(({ size: e }) => {\n switch (e) {\n case \"100%\":\n return { width: \"100%\" };\n case \"flex\":\n return { flex: 1 };\n case \"auto\":\n default:\n return { display: \"inline\" };\n }\n}, \"sizes\"), Tf = /* @__PURE__ */ o(({\n align: e\n}) => {\n switch (e) {\n case \"end\":\n return { textAlign: \"right\" };\n case \"center\":\n return { textAlign: \"center\" };\n case \"start\":\n default:\n return { textAlign: \"left\" };\n }\n}, \"alignment\"), L0 = /* @__PURE__ */ o(({ valid: e, theme: t }) => {\n switch (e) {\n case \"valid\":\n return { boxShadow: `${t.color.positive} 0 0 0 1px inset !important` };\n case \"error\":\n return { boxShadow: `${t.color.negative} 0 0 0 1px inset !important` };\n case \"warn\":\n return {\n boxShadow: `${t.color.warning} 0 0 0 1px inset`\n };\n case void 0:\n case null:\n default:\n return {};\n }\n}, \"validation\"), Hf = Object.assign(\n S0(\n E0(/* @__PURE__ */ o(function({ size: t, valid: r, align: n, ...a }, i) {\n return /* @__PURE__ */ x0.createElement(\"input\", { ...a, ref: i });\n }, \"Input\"))\n )(C0, M0, Tf, L0, {\n minHeight: 32\n }),\n {\n displayName: \"Input\"\n }\n), Pf = Object.assign(\n S0(\n E0(/* @__PURE__ */ o(function({ size: t, valid: r, align: n, ...a }, i) {\n return /* @__PURE__ */ x0.createElement(\"select\", { ...a, ref: i });\n }, \"Select\"))\n )(C0, M0, L0, {\n height: 32,\n userSelect: \"none\",\n paddingRight: 20,\n appearance: \"menulist\"\n }),\n {\n displayName: \"Select\"\n }\n), kf = Object.assign(\n S0(\n E0(/* @__PURE__ */ o(function({ size: t, valid: r, align: n, ...a }, i) {\n return /* @__PURE__ */ x0.createElement(zf, { ...a, ref: i });\n }, \"Textarea\"))\n )(C0, M0, Tf, L0, ({ height: e = 400 }) => ({\n overflow: \"visible\",\n maxHeight: e\n })),\n {\n displayName: \"Textarea\"\n }\n);\n\n// src/components/components/form/index.tsx\nvar N7 = Object.assign(\n B7.form({\n boxSizing: \"border-box\",\n width: \"100%\"\n }),\n {\n Field: Rf,\n Input: Hf,\n Select: Pf,\n Textarea: kf,\n Button: Ir\n }\n);\n\n// src/components/components/tooltip/lazy-WithTooltip.tsx\nimport $r, { Suspense as Gd, lazy as Xd } from \"react\";\nvar k3 = Xd(\n () => Promise.resolve().then(() => (Bo(), al)).then((e) => ({ default: e.WithTooltip }))\n), O3 = /* @__PURE__ */ o((e) => /* @__PURE__ */ $r.createElement(Gd, { fallback: /* @__PURE__ */ $r.createElement(\"div\", null) }, /* @__PURE__ */ $r.\ncreateElement(k3, { ...e })), \"WithTooltip\"), B3 = Xd(\n () => Promise.resolve().then(() => (Bo(), al)).then((e) => ({ default: e.WithTooltipPure }))\n), N3 = /* @__PURE__ */ o((e) => /* @__PURE__ */ $r.createElement(Gd, { fallback: /* @__PURE__ */ $r.createElement(\"div\", null) }, /* @__PURE__ */ $r.\ncreateElement(B3, { ...e })), \"WithTooltipPure\");\n\n// src/components/components/tooltip/TooltipMessage.tsx\nimport Vr from \"react\";\nimport { styled as Cn } from \"storybook/theming\";\nvar D3 = Cn.div(({ theme: e }) => ({\n fontWeight: e.typography.weight.bold\n})), F3 = Cn.span(), _3 = Cn.div(({ theme: e }) => ({\n marginTop: 8,\n textAlign: \"center\",\n \"> *\": {\n margin: \"0 8px\",\n fontWeight: e.typography.weight.bold\n }\n})), $3 = Cn.div(({ theme: e }) => ({\n color: e.color.defaultText,\n lineHeight: \"18px\"\n})), V3 = Cn.div({\n padding: 15,\n width: 280,\n boxSizing: \"border-box\"\n}), j3 = /* @__PURE__ */ o(({ title: e, desc: t, links: r }) => /* @__PURE__ */ Vr.createElement(V3, null, /* @__PURE__ */ Vr.createElement(\n$3, null, e && /* @__PURE__ */ Vr.createElement(D3, null, e), t && /* @__PURE__ */ Vr.createElement(F3, null, t)), r && /* @__PURE__ */ Vr.createElement(\n_3, null, r.map(({ title: n, ...a }) => /* @__PURE__ */ Vr.createElement(yi, { ...a, key: n }, n)))), \"TooltipMessage\");\n\n// src/components/components/tooltip/TooltipNote.tsx\nimport W3 from \"react\";\nimport { styled as U3 } from \"storybook/theming\";\nvar q3 = U3.div(({ theme: e }) => ({\n padding: \"2px 6px\",\n lineHeight: \"16px\",\n fontSize: 10,\n fontWeight: e.typography.weight.bold,\n color: e.color.lightest,\n boxShadow: \"0 0 5px 0 rgba(0, 0, 0, 0.3)\",\n borderRadius: 4,\n whiteSpace: \"nowrap\",\n pointerEvents: \"none\",\n zIndex: -1,\n background: e.base === \"light\" ? \"rgba(60, 60, 60, 0.9)\" : \"rgba(0, 0, 0, 0.95)\",\n margin: 6\n})), G3 = /* @__PURE__ */ o(({ note: e, ...t }) => /* @__PURE__ */ W3.createElement(q3, { ...t }, e), \"TooltipNote\");\n\n// src/components/components/tooltip/TooltipLinkList.tsx\nimport Mn, { Fragment as r6, useCallback as n6 } from \"react\";\nimport { styled as Zd } from \"storybook/theming\";\n\n// src/components/components/tooltip/ListItem.tsx\nvar Yd = me(Kr(), 1);\nimport nt from \"react\";\nimport { styled as jr } from \"storybook/theming\";\nvar X3 = jr(({ active: e, loading: t, disabled: r, ...n }) => /* @__PURE__ */ nt.createElement(\"span\", { ...n }))(\n ({ theme: e }) => ({\n color: e.color.defaultText,\n // Previously was theme.typography.weight.normal but this weight does not exists in Theme\n fontWeight: e.typography.weight.regular\n }),\n ({ active: e, theme: t }) => e ? {\n color: t.color.secondary,\n fontWeight: t.typography.weight.bold\n } : {},\n ({ loading: e, theme: t }) => e ? {\n display: \"inline-block\",\n flex: \"none\",\n ...t.animation.inlineGlow\n } : {},\n ({ disabled: e, theme: t }) => e ? {\n color: t.textMutedColor\n } : {}\n), Y3 = jr.span({\n display: \"flex\",\n \"& svg\": {\n height: 12,\n width: 12,\n margin: \"3px 0\",\n verticalAlign: \"top\"\n },\n \"& path\": {\n fill: \"inherit\"\n }\n}), Z3 = jr.span(\n {\n flex: 1,\n textAlign: \"left\",\n display: \"flex\",\n flexDirection: \"column\"\n },\n ({ isIndented: e }) => e ? { marginLeft: 24 } : {}\n), K3 = jr.span(\n ({ theme: e }) => ({\n fontSize: \"11px\",\n lineHeight: \"14px\"\n }),\n ({ active: e, theme: t }) => e ? {\n color: t.color.secondary\n } : {},\n ({ theme: e, disabled: t }) => t ? {\n color: e.textMutedColor\n } : {}\n), J3 = jr.span(\n ({ active: e, theme: t }) => e ? {\n color: t.color.secondary\n } : {},\n () => ({\n display: \"flex\",\n maxWidth: 14\n })\n), Q3 = jr.div(\n ({ theme: e }) => ({\n width: \"100%\",\n border: \"none\",\n borderRadius: e.appBorderRadius,\n background: \"none\",\n fontSize: e.typography.size.s1,\n transition: \"all 150ms ease-out\",\n color: e.color.dark,\n textDecoration: \"none\",\n justifyContent: \"space-between\",\n lineHeight: \"18px\",\n padding: \"7px 10px\",\n display: \"flex\",\n alignItems: \"center\",\n \"& > * + *\": {\n paddingLeft: 10\n }\n }),\n ({ theme: e, href: t, onClick: r }) => (t || r) && {\n cursor: \"pointer\",\n \"&:hover\": {\n background: e.background.hoverable\n },\n \"&:hover svg\": {\n opacity: 1\n }\n },\n ({ theme: e, as: t }) => t === \"label\" && {\n \"&:has(input:not(:disabled))\": {\n cursor: \"pointer\",\n \"&:hover\": {\n background: e.background.hoverable\n }\n }\n },\n ({ disabled: e }) => e && { cursor: \"not-allowed\" }\n), e6 = (0, Yd.default)(100)(({ onClick: e, input: t, href: r, LinkWrapper: n }) => ({\n ...e && {\n as: \"button\",\n onClick: e\n },\n ...t && {\n as: \"label\"\n },\n ...r && {\n as: \"a\",\n href: r,\n ...n && {\n as: n,\n to: r\n }\n }\n})), t6 = /* @__PURE__ */ o((e) => {\n let {\n loading: t = !1,\n title: r = /* @__PURE__ */ nt.createElement(\"span\", null, \"Loading state\"),\n center: n = null,\n right: a = null,\n active: i = !1,\n disabled: c = !1,\n isIndented: l = !1,\n href: s = void 0,\n onClick: u = void 0,\n icon: f,\n input: d,\n LinkWrapper: m = void 0,\n ...v\n } = e, R = { active: i, disabled: c }, p = e6(e), h = f || d;\n return /* @__PURE__ */ nt.createElement(Q3, { ...v, ...R, ...p }, /* @__PURE__ */ nt.createElement(nt.Fragment, null, h && /* @__PURE__ */ nt.\n createElement(J3, { ...R }, h), r || n ? /* @__PURE__ */ nt.createElement(Z3, { isIndented: l && !h }, r && /* @__PURE__ */ nt.createElement(\n X3, { ...R, loading: t }, r), n && /* @__PURE__ */ nt.createElement(K3, { ...R }, n)) : null, a && /* @__PURE__ */ nt.createElement(Y3, { ...R },\n a)));\n}, \"ListItem\"), il = t6;\n\n// src/components/components/tooltip/TooltipLinkList.tsx\nvar o6 = Zd.div(\n {\n minWidth: 180,\n overflow: \"hidden\",\n overflowY: \"auto\",\n maxHeight: 15.5 * 32 + 8\n // 15.5 items at 32px each + 8px padding\n },\n ({ theme: e }) => ({\n borderRadius: e.appBorderRadius + 2\n }),\n ({ theme: e }) => e.base === \"dark\" ? { background: e.background.content } : {}\n), a6 = Zd.div(({ theme: e }) => ({\n padding: 4,\n \"& + &\": {\n borderTop: `1px solid ${e.appBorderColor}`\n }\n})), i6 = /* @__PURE__ */ o(({ id: e, onClick: t, ...r }) => {\n let { active: n, disabled: a, title: i, href: c } = r, l = n6(\n (s) => t?.(s, { id: e, active: n, disabled: a, title: i, href: c }),\n [t, e, n, a, i, c]\n );\n return /* @__PURE__ */ Mn.createElement(il, { id: `list-item-${e}`, ...r, ...t && { onClick: l } });\n}, \"Item\"), ll = /* @__PURE__ */ o(({ links: e, LinkWrapper: t, ...r }) => {\n let n = Array.isArray(e[0]) ? e : [e], a = n.some(\n (i) => i.some((c) => \"icon\" in c && c.icon || \"input\" in c && c.input)\n );\n return /* @__PURE__ */ Mn.createElement(o6, { ...r }, n.filter((i) => i.length).map((i, c) => /* @__PURE__ */ Mn.createElement(a6, { key: i.\n map((l) => l.id).join(`~${c}~`) }, i.map((l) => \"content\" in l ? /* @__PURE__ */ Mn.createElement(r6, { key: l.id }, l.content) : /* @__PURE__ */ Mn.\n createElement(i6, { key: l.id, isIndented: a, LinkWrapper: t, ...l })))));\n}, \"TooltipLinkList\");\n\n// src/components/components/tabs/tabs.tsx\nimport Be, { Component as np, memo as L6, useMemo as A6 } from \"react\";\nimport { sanitize as I6 } from \"storybook/internal/csf\";\nimport { styled as hl } from \"storybook/theming\";\n\n// src/components/components/bar/bar.tsx\nQn();\nimport Wr, { Children as l6 } from \"react\";\nimport { styled as sl } from \"storybook/theming\";\nvar cl = sl.div(\n {\n display: \"flex\",\n whiteSpace: \"nowrap\",\n flexBasis: \"auto\",\n marginLeft: 3,\n marginRight: 10\n },\n ({ scrollable: e }) => e ? { flexShrink: 0 } : {},\n ({ left: e }) => e ? {\n \"& > *\": {\n marginLeft: 4\n }\n } : {},\n ({ right: e }) => e ? {\n gap: 6\n } : {}\n);\ncl.displayName = \"Side\";\nvar c6 = /* @__PURE__ */ o(({ children: e, className: t, scrollable: r }) => r ? /* @__PURE__ */ Wr.createElement(Rr, { vertical: !1, className: t },\ne) : /* @__PURE__ */ Wr.createElement(\"div\", { className: t }, e), \"UnstyledBar\"), ul = sl(c6)(\n ({ backgroundColor: e, theme: t, scrollable: r = !0 }) => ({\n color: t.barTextColor,\n width: \"100%\",\n minHeight: 40,\n flexShrink: 0,\n scrollbarColor: `${t.barTextColor} ${e || t.barBg}`,\n scrollbarWidth: \"thin\",\n overflow: r ? \"auto\" : \"hidden\",\n overflowY: \"hidden\"\n }),\n ({ theme: e, border: t = !1 }) => t ? {\n boxShadow: `${e.appBorderColor} 0 -1px 0 0 inset`,\n background: e.barBg\n } : {}\n);\nul.displayName = \"Bar\";\nvar s6 = sl.div(({ bgColor: e }) => ({\n display: \"flex\",\n justifyContent: \"space-between\",\n position: \"relative\",\n flexWrap: \"nowrap\",\n flexShrink: 0,\n height: 40,\n backgroundColor: e || \"\"\n})), No = /* @__PURE__ */ o(({ children: e, backgroundColor: t, className: r, ...n }) => {\n let [a, i] = l6.toArray(e);\n return /* @__PURE__ */ Wr.createElement(ul, { backgroundColor: t, className: `sb-bar ${r}`, ...n }, /* @__PURE__ */ Wr.createElement(s6, {\n bgColor: t }, /* @__PURE__ */ Wr.createElement(cl, { scrollable: n.scrollable, left: !0 }, a), i ? /* @__PURE__ */ Wr.createElement(cl, { right: !0 },\n i) : null));\n}, \"FlexBar\");\nNo.displayName = \"FlexBar\";\n\n// src/components/components/bar/button.tsx\nimport Kd, { forwardRef as u6 } from \"react\";\nimport { isPropValid as f6, styled as d6 } from \"storybook/theming\";\nvar p6 = /* @__PURE__ */ o((e) => typeof e.props.href == \"string\", \"isLink\"), m6 = /* @__PURE__ */ o((e) => typeof e.props.href != \"string\",\n\"isButton\");\nfunction h6({ children: e, ...t }, r) {\n let n = { props: t, ref: r };\n if (p6(n))\n return /* @__PURE__ */ Kd.createElement(\"a\", { ref: n.ref, ...n.props }, e);\n if (m6(n))\n return /* @__PURE__ */ Kd.createElement(\"button\", { ref: n.ref, type: \"button\", ...n.props }, e);\n throw new Error(\"invalid props\");\n}\no(h6, \"ForwardRefFunction\");\nvar Jd = u6(h6);\nJd.displayName = \"ButtonOrLink\";\nvar ar = d6(Jd, { shouldForwardProp: f6 })(\n {\n whiteSpace: \"normal\",\n display: \"inline-flex\",\n overflow: \"hidden\",\n verticalAlign: \"top\",\n justifyContent: \"center\",\n alignItems: \"center\",\n textAlign: \"center\",\n textDecoration: \"none\",\n \"&:empty\": {\n display: \"none\"\n },\n \"&[hidden]\": {\n display: \"none\"\n }\n },\n ({ theme: e }) => ({\n padding: \"0 15px\",\n transition: \"color 0.2s linear, border-bottom-color 0.2s linear\",\n height: 40,\n lineHeight: \"12px\",\n cursor: \"pointer\",\n background: \"transparent\",\n border: \"0 solid transparent\",\n borderTop: \"3px solid transparent\",\n borderBottom: \"3px solid transparent\",\n fontWeight: \"bold\",\n fontSize: 13,\n \"&:focus\": {\n outline: \"0 none\",\n borderBottomColor: e.barSelectedColor\n }\n }),\n ({ active: e, textColor: t, theme: r }) => e ? {\n color: t || r.barSelectedColor,\n borderBottomColor: r.barSelectedColor\n } : {\n color: t || r.barTextColor,\n borderBottomColor: \"transparent\",\n \"&:hover\": {\n color: r.barHoverColor\n }\n }\n);\nar.displayName = \"TabButton\";\n\n// src/components/components/tabs/EmptyTabContent.tsx\nimport Do from \"react\";\nimport { styled as Fo } from \"storybook/theming\";\nvar g6 = Fo.div(({ theme: e }) => ({\n height: \"100%\",\n display: \"flex\",\n padding: 30,\n alignItems: \"center\",\n justifyContent: \"center\",\n flexDirection: \"column\",\n gap: 15,\n background: e.background.content\n})), v6 = Fo.div({\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4,\n maxWidth: 415\n}), w6 = Fo.div(({ theme: e }) => ({\n fontWeight: e.typography.weight.bold,\n fontSize: e.typography.size.s2 - 1,\n textAlign: \"center\",\n color: e.textColor\n})), b6 = Fo.div(({ theme: e }) => ({\n fontWeight: e.typography.weight.regular,\n fontSize: e.typography.size.s2 - 1,\n textAlign: \"center\",\n color: e.textMutedColor\n})), _o = /* @__PURE__ */ o(({ title: e, description: t, footer: r }) => /* @__PURE__ */ Do.createElement(g6, null, /* @__PURE__ */ Do.createElement(\nv6, null, /* @__PURE__ */ Do.createElement(w6, null, e), t && /* @__PURE__ */ Do.createElement(b6, null, t)), r), \"EmptyTabContent\");\n\n// src/components/components/tabs/tabs.helpers.tsx\nimport R6, { Children as y6 } from \"react\";\nimport { styled as x6 } from \"storybook/theming\";\nvar fl = x6.div(\n ({ active: e }) => e ? { display: \"block\" } : { display: \"none\" }\n), Qd = /* @__PURE__ */ o((e) => y6.toArray(e).map(\n // @ts-expect-error (non strict)\n ({\n props: { title: t, id: r, color: n, children: a }\n }) => {\n let i = Array.isArray(\n a\n ) ? a[0] : a;\n return {\n title: t,\n id: r,\n ...n ? { color: n } : {},\n render: typeof i == \"function\" ? i : ({ active: l }) => /* @__PURE__ */ R6.createElement(fl, { active: l, role: \"tabpanel\" }, i)\n };\n }\n), \"childrenToList\");\n\n// src/components/components/tabs/tabs.hooks.tsx\nimport ir, { useCallback as ep, useLayoutEffect as E6, useRef as $o, useState as dl } from \"react\";\nimport { sanitize as S6 } from \"storybook/internal/csf\";\nimport { styled as tp } from \"storybook/theming\";\nBo();\nvar C6 = tp.span(({ theme: e, isActive: t }) => ({\n display: \"inline-block\",\n width: 0,\n height: 0,\n marginLeft: 8,\n color: t ? e.color.secondary : e.color.mediumdark,\n borderRight: \"3px solid transparent\",\n borderLeft: \"3px solid transparent\",\n borderTop: \"3px solid\",\n transition: \"transform .1s ease-out\"\n})), M6 = tp(ar)(({ active: e, theme: t, preActive: r }) => `\n color: ${r || e ? t.barSelectedColor : t.barTextColor};\n .addon-collapsible-icon {\n color: ${r || e ? t.barSelectedColor : t.barTextColor};\n }\n &:hover {\n color: ${t.barHoverColor};\n .addon-collapsible-icon {\n color: ${t.barHoverColor};\n }\n }\n `);\nfunction rp(e) {\n let t = $o(), r = $o(), n = $o(/* @__PURE__ */ new Map()), { width: a = 1 } = Ro({\n // @ts-expect-error (non strict)\n ref: t\n }), [i, c] = dl(e), [l, s] = dl([]), u = $o(e), f = ep(\n ({\n menuName: m,\n actions: v\n }) => {\n let R = l.some(({ active: g }) => g), [p, h] = dl(!1);\n return /* @__PURE__ */ ir.createElement(ir.Fragment, null, /* @__PURE__ */ ir.createElement(\n ol,\n {\n interactive: !0,\n visible: p,\n onVisibleChange: h,\n placement: \"bottom\",\n delayHide: 100,\n tooltip: /* @__PURE__ */ ir.createElement(\n ll,\n {\n links: l.map(({ title: g, id: w, color: b, active: x }) => ({\n id: w,\n title: g,\n color: b,\n active: x,\n onClick: /* @__PURE__ */ o((E) => {\n E.preventDefault(), v.onSelect(w);\n }, \"onClick\")\n }))\n }\n )\n },\n /* @__PURE__ */ ir.createElement(\n M6,\n {\n id: \"addons-menu-button\",\n ref: r,\n active: R,\n preActive: p,\n style: { visibility: l.length ? \"visible\" : \"hidden\" },\n \"aria-hidden\": !l.length,\n className: \"tabbutton\",\n type: \"button\",\n role: \"tab\"\n },\n m,\n /* @__PURE__ */ ir.createElement(\n C6,\n {\n className: \"addon-collapsible-icon\",\n isActive: R || p\n }\n )\n )\n ), l.map(({ title: g, id: w, color: b }, x) => {\n let E = `index-${x}`;\n return /* @__PURE__ */ ir.createElement(\n ar,\n {\n id: `tabbutton-${S6(w) ?? E}`,\n style: { visibility: \"hidden\" },\n \"aria-hidden\": !0,\n tabIndex: -1,\n ref: (y) => {\n n.current.set(w, y);\n },\n className: \"tabbutton\",\n type: \"button\",\n key: w,\n textColor: b,\n role: \"tab\"\n },\n g\n );\n }));\n },\n [l]\n ), d = ep(() => {\n if (!t.current || !r.current)\n return;\n let { x: m, width: v } = t.current.getBoundingClientRect(), { width: R } = r.current.getBoundingClientRect(), p = l.length ? m + v - R :\n m + v, h = [], g = 0, w = e.filter((b) => {\n let { id: x } = b, E = n.current.get(x), { width: y = 0 } = E?.getBoundingClientRect() || {}, S = m + g + y > p;\n return (!S || !E) && h.push(b), g += y, S;\n });\n (h.length !== i.length || u.current !== e) && (c(h), s(w), u.current = e);\n }, [l.length, e, i]);\n return E6(d, [d, a]), {\n tabRefs: n,\n addonsRef: r,\n tabBarRef: t,\n visibleList: i,\n invisibleList: l,\n AddonTab: f\n };\n}\no(rp, \"useList\");\n\n// src/components/components/tabs/tabs.tsx\nvar z6 = \"/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */\", T6 = hl.div(\n ({ theme: e, bordered: t }) => t ? {\n backgroundClip: \"padding-box\",\n border: `1px solid ${e.appBorderColor}`,\n borderRadius: e.appBorderRadius,\n overflow: \"hidden\",\n boxSizing: \"border-box\"\n } : {},\n ({ absolute: e }) => e ? {\n width: \"100%\",\n height: \"100%\",\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\"\n } : {\n display: \"block\"\n }\n), gl = hl.div({\n overflow: \"hidden\",\n \"&:first-of-type\": {\n marginLeft: -3\n },\n whiteSpace: \"nowrap\",\n flexGrow: 1\n});\ngl.displayName = \"TabBar\";\nvar H6 = hl.div(\n {\n display: \"block\",\n position: \"relative\"\n },\n ({ theme: e }) => ({\n fontSize: e.typography.size.s2 - 1,\n background: e.background.content\n }),\n ({ bordered: e, theme: t }) => e ? {\n borderRadius: `0 0 ${t.appBorderRadius - 1}px ${t.appBorderRadius - 1}px`\n } : {},\n ({ absolute: e, bordered: t }) => e ? {\n height: `calc(100% - ${t ? 42 : 40}px)`,\n position: \"absolute\",\n left: 0 + (t ? 1 : 0),\n right: 0 + (t ? 1 : 0),\n bottom: 0 + (t ? 1 : 0),\n top: 40 + (t ? 1 : 0),\n overflow: \"auto\",\n [`& > *:first-child${z6}`]: {\n position: \"absolute\",\n left: 0 + (t ? 1 : 0),\n right: 0 + (t ? 1 : 0),\n bottom: 0 + (t ? 1 : 0),\n top: 0 + (t ? 1 : 0),\n height: `calc(100% - ${t ? 2 : 0}px)`,\n overflow: \"auto\"\n }\n } : {}\n), P6 = /* @__PURE__ */ o(({ active: e, render: t, children: r }) => /* @__PURE__ */ Be.createElement(fl, { active: e }, t ? t() : r), \"TabW\\\nrapper\");\nvar wl = class wl extends np {\n constructor(t) {\n super(t), this.state = { hasError: !1 };\n }\n static getDerivedStateFromError() {\n return { hasError: !0 };\n }\n componentDidCatch(t, r) {\n console.error(\"Error rendering addon panel\"), console.error(t), console.error(r.componentStack);\n }\n render() {\n return this.state.hasError && this.props.active ? /* @__PURE__ */ Be.createElement(\n _o,\n {\n title: \"This addon has errors\",\n description: \"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook.\"\n }\n ) : this.props.children;\n }\n};\no(wl, \"TabErrorBoundary\");\nvar pl = wl, vl = L6(\n ({\n children: e,\n selected: t = null,\n actions: r,\n absolute: n = !1,\n bordered: a = !1,\n tools: i = null,\n backgroundColor: c,\n id: l = null,\n menuName: s = \"Tabs\",\n emptyState: u,\n showToolsWhenEmpty: f\n }) => {\n let d = A6(\n () => Qd(e).map((g, w) => ({\n ...g,\n active: t ? g.id === t : w === 0\n })),\n [e, t]\n ), { visibleList: m, tabBarRef: v, tabRefs: R, AddonTab: p } = rp(d), h = u ?? /* @__PURE__ */ Be.createElement(_o, { title: \"Nothing fo\\\nund\" });\n return !f && d.length === 0 ? h : (\n // @ts-expect-error (non strict)\n /* @__PURE__ */ Be.createElement(T6, { absolute: n, bordered: a, id: l }, /* @__PURE__ */ Be.createElement(No, { scrollable: !1, border: !0,\n backgroundColor: c }, /* @__PURE__ */ Be.createElement(gl, { style: { whiteSpace: \"normal\" }, ref: v, role: \"tablist\" }, m.map(({ title: g,\n id: w, active: b, color: x }, E) => {\n let y = `index-${E}`;\n return /* @__PURE__ */ Be.createElement(\n ar,\n {\n id: `tabbutton-${I6(w) ?? y}`,\n ref: (S) => {\n R.current.set(w, S);\n },\n className: `tabbutton ${b ? \"tabbutton-active\" : \"\"}`,\n type: \"button\",\n key: w,\n active: b,\n textColor: x,\n onClick: (S) => {\n S.preventDefault(), r.onSelect(w);\n },\n role: \"tab\"\n },\n typeof g == \"function\" ? /* @__PURE__ */ Be.createElement(\"title\", null) : g\n );\n }), /* @__PURE__ */ Be.createElement(p, { menuName: s, actions: r })), i), /* @__PURE__ */ Be.createElement(H6, { id: \"panel-tab-conte\\\nnt\", bordered: a, absolute: n }, d.length ? d.map(({ id: g, active: w, render: b }) => /* @__PURE__ */ Be.createElement(pl, { key: g, active: w },\n Be.createElement(b, { active: w }, null))) : h))\n );\n }\n);\nvl.displayName = \"Tabs\";\nvar Vo = class Vo extends np {\n constructor(r) {\n super(r);\n this.handlers = {\n onSelect: /* @__PURE__ */ o((r) => this.setState({ selected: r }), \"onSelect\")\n };\n this.state = {\n selected: r.initial\n };\n }\n render() {\n let { bordered: r = !1, absolute: n = !1, children: a, backgroundColor: i, menuName: c } = this.props, { selected: l } = this.state;\n return /* @__PURE__ */ Be.createElement(\n vl,\n {\n bordered: r,\n absolute: n,\n selected: l,\n backgroundColor: i,\n menuName: c,\n actions: this.handlers\n },\n a\n );\n }\n};\no(Vo, \"TabsState\"), Vo.defaultProps = {\n children: [],\n // @ts-expect-error (non strict)\n initial: null,\n absolute: !1,\n bordered: !1,\n backgroundColor: \"\",\n // @ts-expect-error (non strict)\n menuName: void 0\n};\nvar ml = Vo;\n\n// src/components/components/bar/separator.tsx\nimport op, { Fragment as k6 } from \"react\";\nimport { styled as O6 } from \"storybook/theming\";\nvar bl = O6.span(\n ({ theme: e }) => ({\n width: 1,\n height: 20,\n background: e.appBorderColor,\n marginLeft: 2,\n marginRight: 2\n }),\n ({ force: e }) => e ? {} : {\n \"& + &\": {\n display: \"none\"\n }\n }\n);\nbl.displayName = \"Separator\";\nvar B6 = /* @__PURE__ */ o((e) => e.reduce(\n (t, r, n) => r ? /* @__PURE__ */ op.createElement(k6, { key: r.id || r.key || `f-${n}` }, t, n > 0 ? /* @__PURE__ */ op.createElement(bl, {\n key: `s-${n}` }) : null, r.render() || r) : t,\n null\n), \"interleaveSeparators\");\n\n// src/components/components/addon-panel/addon-panel.tsx\nimport N6, { useEffect as D6, useRef as F6 } from \"react\";\nvar _6 = /* @__PURE__ */ o((e) => {\n let t = F6();\n return D6(() => {\n t.current = e;\n }, [e]), t.current;\n}, \"usePrevious\"), $6 = /* @__PURE__ */ o((e, t) => {\n let r = _6(t);\n return e ? t : r;\n}, \"useUpdate\"), V6 = /* @__PURE__ */ o(({ active: e, children: t }) => (\n // the hidden attribute is an valid html element that's both accessible and works to visually hide content\n /* @__PURE__ */ N6.createElement(\"div\", { hidden: !e }, $6(e, t))\n), \"AddonPanel\");\n\n// src/components/brand/StorybookLogo.tsx\nimport ot from \"react\";\nvar j6 = /* @__PURE__ */ o(({ alt: e, ...t }) => /* @__PURE__ */ ot.createElement(\"svg\", { width: \"200px\", height: \"40px\", viewBox: \"0 0 200\\\n 40\", ...t, role: \"img\" }, e ? /* @__PURE__ */ ot.createElement(\"title\", null, e) : null, /* @__PURE__ */ ot.createElement(\"defs\", null, /* @__PURE__ */ ot.\ncreateElement(\n \"path\",\n {\n d: \"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z\",\n id: \"a\"\n }\n)), /* @__PURE__ */ ot.createElement(\"g\", { fill: \"none\", fillRule: \"evenodd\" }, /* @__PURE__ */ ot.createElement(\n \"path\",\n {\n d: \"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.\\\n3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 \\\n1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.\\\n8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1\\\n.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.\\\n3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.\\\n4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2\\\n.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c\\\n1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-\\\n2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.\\\n1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6\\\n.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-\\\n2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.\\\n2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 \\\n1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0\\\n-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z\",\n fill: \"currentColor\"\n }\n), /* @__PURE__ */ ot.createElement(\"mask\", { id: \"b\", fill: \"#fff\" }, /* @__PURE__ */ ot.createElement(\"use\", { xlinkHref: \"#a\" })), /* @__PURE__ */ ot.\ncreateElement(\"use\", { fill: \"#FF4785\", fillRule: \"nonzero\", xlinkHref: \"#a\" }), /* @__PURE__ */ ot.createElement(\n \"path\",\n {\n d: \"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-\\\n8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10\\\n.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z\",\n fill: \"#FFF\",\n fillRule: \"nonzero\",\n mask: \"url(#b)\"\n }\n))), \"StorybookLogo\");\n\n// src/components/brand/StorybookIcon.tsx\nimport Ur from \"react\";\nvar W6 = /* @__PURE__ */ o((e) => /* @__PURE__ */ Ur.createElement(\"svg\", { viewBox: \"0 0 64 64\", ...e }, /* @__PURE__ */ Ur.createElement(\"\\\ntitle\", null, \"Storybook icon\"), /* @__PURE__ */ Ur.createElement(\"g\", { id: \"Artboard\", stroke: \"none\", strokeWidth: \"1\", fill: \"none\", fillRule: \"\\\nevenodd\" }, /* @__PURE__ */ Ur.createElement(\n \"path\",\n {\n d: \"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331\\\n489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57\\\n.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.751758\\\n5,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z\",\n id: \"path-1\",\n fill: \"#FF4785\",\n fillRule: \"nonzero\"\n }\n), /* @__PURE__ */ Ur.createElement(\n \"path\",\n {\n d: \"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.035887\\\n8 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.49\\\n65208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37\\\n.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.73267\\\n52 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.773\\\n8035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z\",\n id: \"path9_fill-path\",\n fill: \"#FFFFFF\",\n fillRule: \"nonzero\"\n }\n), /* @__PURE__ */ Ur.createElement(\n \"path\",\n {\n d: \"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403\\\n237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0\\\n022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z\",\n id: \"Path\",\n fill: \"#FFFFFF\"\n }\n))), \"StorybookIcon\");\n\n// src/components/components/Loader/Loader.tsx\nimport mt from \"react\";\nimport { keyframes as q6, styled as lr } from \"storybook/theming\";\n\n// src/components/components/shared/animation.ts\nimport { keyframes as U6 } from \"storybook/theming\";\nvar ap = U6`\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n`;\n\n// src/components/components/Loader/Loader.tsx\nvar G6 = lr.div(({ size: e = 32 }) => ({\n borderRadius: \"50%\",\n cursor: \"progress\",\n display: \"inline-block\",\n overflow: \"hidden\",\n position: \"absolute\",\n transition: \"all 200ms ease-out\",\n verticalAlign: \"top\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -(e / 2),\n marginLeft: -(e / 2),\n height: e,\n width: e,\n zIndex: 4,\n borderWidth: 2,\n borderStyle: \"solid\",\n borderColor: \"rgba(97, 97, 97, 0.29)\",\n borderTopColor: \"rgb(100,100,100)\",\n animation: `${ap} 0.7s linear infinite`,\n mixBlendMode: \"difference\"\n})), ip = lr.div({\n position: \"absolute\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n width: \"100%\",\n height: \"100%\"\n}), X6 = lr.div(({ theme: e }) => ({\n position: \"relative\",\n width: \"80%\",\n marginBottom: \"0.75rem\",\n maxWidth: 300,\n height: 5,\n borderRadius: 5,\n background: we(0.8, e.color.secondary),\n overflow: \"hidden\",\n cursor: \"progress\"\n})), Y6 = lr.div(({ theme: e }) => ({\n position: \"absolute\",\n top: 0,\n left: 0,\n height: \"100%\",\n background: e.color.secondary\n})), lp = lr.div(({ theme: e }) => ({\n minHeight: \"2em\",\n fontSize: `${e.typography.size.s1}px`,\n color: e.textMutedColor\n})), Z6 = lr(q5)(({ theme: e }) => ({\n width: 20,\n height: 20,\n marginBottom: \"0.5rem\",\n color: e.textMutedColor\n})), K6 = q6`\n from { content: \"...\" }\n 33% { content: \".\" }\n 66% { content: \"..\" }\n to { content: \"...\" }\n`, J6 = lr.span({\n \"&::after\": {\n content: \"'...'\",\n animation: `${K6} 1s linear infinite`,\n animationDelay: \"1s\",\n display: \"inline-block\",\n width: \"1em\",\n height: \"auto\"\n }\n}), Q6 = /* @__PURE__ */ o(({ progress: e, error: t, size: r, ...n }) => {\n if (t)\n return /* @__PURE__ */ mt.createElement(ip, { \"aria-label\": t.toString(), \"aria-live\": \"polite\", role: \"status\", ...n }, /* @__PURE__ */ mt.\n createElement(Z6, null), /* @__PURE__ */ mt.createElement(lp, null, t.message));\n if (e) {\n let { value: a, modules: i } = e, { message: c } = e;\n return i && (c += ` ${i.complete} / ${i.total} modules`), /* @__PURE__ */ mt.createElement(\n ip,\n {\n \"aria-label\": \"Content is loading...\",\n \"aria-live\": \"polite\",\n \"aria-valuemin\": 0,\n \"aria-valuemax\": 100,\n \"aria-valuenow\": a * 100,\n \"aria-valuetext\": c,\n role: \"progressbar\",\n ...n\n },\n /* @__PURE__ */ mt.createElement(X6, null, /* @__PURE__ */ mt.createElement(Y6, { style: { width: `${a * 100}%` } })),\n /* @__PURE__ */ mt.createElement(lp, null, c, a < 1 && /* @__PURE__ */ mt.createElement(J6, { key: c }))\n );\n }\n return /* @__PURE__ */ mt.createElement(\n G6,\n {\n \"aria-label\": \"Content is loading...\",\n \"aria-live\": \"polite\",\n role: \"status\",\n size: r,\n ...n\n }\n );\n}, \"Loader\");\n\n// src/components/components/ProgressSpinner/ProgressSpinner.tsx\nimport kt from \"react\";\nimport { keyframes as ew, styled as sp } from \"storybook/theming\";\nvar Rl = \"http://www.w3.org/2000/svg\", tw = ew({\n \"0%\": {\n transform: \"rotate(0deg)\"\n },\n \"100%\": {\n transform: \"rotate(360deg)\"\n }\n}), cp = sp.div(({ size: e }) => ({\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"relative\",\n minWidth: e,\n minHeight: e\n})), yl = sp.svg(\n ({ size: e, width: t }) => ({\n position: \"absolute\",\n width: `${e}px!important`,\n height: `${e}px!important`,\n transform: \"rotate(-90deg)\",\n circle: {\n r: (e - Math.ceil(t)) / 2,\n cx: e / 2,\n cy: e / 2,\n opacity: 0.15,\n fill: \"transparent\",\n stroke: \"currentColor\",\n strokeWidth: t,\n strokeLinecap: \"round\",\n strokeDasharray: Math.PI * (e - Math.ceil(t))\n }\n }),\n ({ progress: e }) => e && {\n circle: {\n opacity: 0.75\n }\n },\n ({ spinner: e }) => e && {\n animation: `${tw} 1s linear infinite`,\n circle: {\n opacity: 0.25\n }\n }\n), rw = /* @__PURE__ */ o(({\n percentage: e = void 0,\n running: t = !0,\n size: r = 24,\n width: n = 1.5,\n children: a = null,\n ...i\n}) => typeof e == \"number\" ? /* @__PURE__ */ kt.createElement(cp, { size: r, ...i }, a, /* @__PURE__ */ kt.createElement(yl, { size: r, width: n,\nxmlns: Rl }, /* @__PURE__ */ kt.createElement(\"circle\", null)), t && /* @__PURE__ */ kt.createElement(yl, { size: r, width: n, xmlns: Rl, spinner: !0 },\n/* @__PURE__ */ kt.createElement(\"circle\", { strokeDashoffset: Math.PI * (r - Math.ceil(n)) * (1 - e / 100) })), /* @__PURE__ */ kt.createElement(\nyl, { size: r, width: n, xmlns: Rl, progress: !0 }, /* @__PURE__ */ kt.createElement(\"circle\", { strokeDashoffset: Math.PI * (r - Math.ceil(\nn)) * (1 - e / 100) }))) : /* @__PURE__ */ kt.createElement(cp, { size: r, ...i }, a), \"ProgressSpinner\");\n\n// src/components/components/utils/getStoryHref.ts\nfunction nw(e) {\n let t = {}, r = e.split(\"&\");\n for (let n = 0; n < r.length; n++) {\n let a = r[n].split(\"=\");\n t[decodeURIComponent(a[0])] = decodeURIComponent(a[1] || \"\");\n }\n return t;\n}\no(nw, \"parseQuery\");\nvar ow = /* @__PURE__ */ o((e, t, r = {}) => {\n let [n, a] = e.split(\"?\"), i = a ? {\n ...nw(a),\n ...r,\n id: t\n } : {\n ...r,\n id: t\n };\n return `${n}?${Object.entries(i).map((c) => `${c[0]}=${c[1]}`).join(\"&\")}`;\n}, \"getStoryHref\");\n\n// src/components/components/clipboard/ClipboardCode.tsx\nimport aw from \"react\";\nimport { color as iw, styled as lw, typography as up } from \"storybook/theming\";\nvar cw = lw.pre`\n line-height: 18px;\n padding: 11px 1rem;\n white-space: pre-wrap;\n background: rgba(0, 0, 0, 0.05);\n color: ${iw.darkest};\n border-radius: 3px;\n margin: 1rem 0;\n width: 100%;\n display: block;\n overflow: hidden;\n font-family: ${up.fonts.mono};\n font-size: ${up.size.s2 - 1}px;\n`, sw = /* @__PURE__ */ o(({ code: e, ...t }) => /* @__PURE__ */ aw.createElement(cw, { id: \"clipboard-code\", ...t }, e), \"ClipboardCode\");\n\n// src/components/index.ts\nvar Bk = bi, dw = {};\nObject.keys(bi).forEach((e) => {\n dw[e] = fw((t, r) => uw(e, { ...t, ref: r }));\n});\nexport {\n Jo as A,\n Va as ActionBar,\n V6 as AddonPanel,\n Uh as Badge,\n ul as Bar,\n Qo as Blockquote,\n Ir as Button,\n w7 as Checkbox,\n sw as ClipboardCode,\n ei as Code,\n ti as DL,\n ri as Div,\n Jh as DocumentWrapper,\n _o as EmptyTabContent,\n m7 as ErrorFormatter,\n No as FlexBar,\n N7 as Form,\n ni as H1,\n oi as H2,\n ai as H3,\n ii as H4,\n li as H5,\n ci as H6,\n si as HR,\n bo as IconButton,\n ui as Img,\n fi as LI,\n yi as Link,\n il as ListItem,\n Q6 as Loader,\n Dv as Modal,\n di as OL,\n pi as P,\n Xv as Placeholder,\n mi as Pre,\n rw as ProgressSpinner,\n jl as ResetWrapper,\n Rr as ScrollArea,\n bl as Separator,\n jv as Spaced,\n hi as Span,\n W6 as StorybookIcon,\n j6 as StorybookLogo,\n ru as SyntaxHighlighter,\n gi as TT,\n gl as TabBar,\n ar as TabButton,\n P6 as TabWrapper,\n vi as Table,\n vl as Tabs,\n ml as TabsState,\n ll as TooltipLinkList,\n j3 as TooltipMessage,\n G3 as TooltipNote,\n wi as UL,\n O3 as WithTooltip,\n N3 as WithTooltipPure,\n a7 as Zoom,\n at as codeCommon,\n Bk as components,\n Ja as createCopyToClipboardFunction,\n ow as getStoryHref,\n B6 as interleaveSeparators,\n J as nameSpaceClassNames,\n dw as resetComponents,\n N as withReset\n};\n","var wn = Object.create;\nvar or = Object.defineProperty;\nvar En = Object.getOwnPropertyDescriptor;\nvar Sn = Object.getOwnPropertyNames;\nvar Tn = Object.getPrototypeOf, Cn = Object.prototype.hasOwnProperty;\nvar o = (e, r) => or(e, \"name\", { value: r, configurable: !0 }), Oe = /* @__PURE__ */ ((e) => typeof require < \"u\" ? require : typeof Proxy <\n\"u\" ? new Proxy(e, {\n get: (r, t) => (typeof require < \"u\" ? require : r)[t]\n}) : e)(function(e) {\n if (typeof require < \"u\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + e + '\" is not supported');\n});\nvar De = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports);\nvar On = (e, r, t, n) => {\n if (r && typeof r == \"object\" || typeof r == \"function\")\n for (let a of Sn(r))\n !Cn.call(e, a) && a !== t && or(e, a, { get: () => r[a], enumerable: !(n = En(r, a)) || n.enumerable });\n return e;\n};\nvar ir = (e, r, t) => (t = e != null ? wn(Tn(e)) : {}, On(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n r || !e || !e.__esModule ? or(t, \"default\", { value: e, enumerable: !0 }) : t,\n e\n));\n\n// ../node_modules/react-is/cjs/react-is.development.js\nvar nt = De((O) => {\n \"use strict\";\n (function() {\n \"use strict\";\n var e = typeof Symbol == \"function\" && Symbol.for, r = e ? Symbol.for(\"react.element\") : 60103, t = e ? Symbol.for(\"react.portal\") : 60106,\n n = e ? Symbol.for(\"react.fragment\") : 60107, a = e ? Symbol.for(\"react.strict_mode\") : 60108, i = e ? Symbol.for(\"react.profiler\") : 60114,\n s = e ? Symbol.for(\"react.provider\") : 60109, u = e ? Symbol.for(\"react.context\") : 60110, f = e ? Symbol.for(\"react.async_mode\") : 60111,\n p = e ? Symbol.for(\"react.concurrent_mode\") : 60111, c = e ? Symbol.for(\"react.forward_ref\") : 60112, l = e ? Symbol.for(\"react.suspense\") :\n 60113, m = e ? Symbol.for(\"react.suspense_list\") : 60120, x = e ? Symbol.for(\"react.memo\") : 60115, b = e ? Symbol.for(\"react.lazy\") : 60116,\n d = e ? Symbol.for(\"react.block\") : 60121, v = e ? Symbol.for(\"react.fundamental\") : 60117, y = e ? Symbol.for(\"react.responder\") : 60118,\n w = e ? Symbol.for(\"react.scope\") : 60119;\n function A(g) {\n return typeof g == \"string\" || typeof g == \"function\" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n g === n || g === p || g === i || g === a || g === l || g === m || typeof g == \"object\" && g !== null && (g.$$typeof === b || g.$$typeof ===\n x || g.$$typeof === s || g.$$typeof === u || g.$$typeof === c || g.$$typeof === v || g.$$typeof === y || g.$$typeof === w || g.$$typeof ===\n d);\n }\n o(A, \"isValidElementType\");\n function S(g) {\n if (typeof g == \"object\" && g !== null) {\n var ar = g.$$typeof;\n switch (ar) {\n case r:\n var Be = g.type;\n switch (Be) {\n case f:\n case p:\n case n:\n case i:\n case a:\n case l:\n return Be;\n default:\n var Mr = Be && Be.$$typeof;\n switch (Mr) {\n case u:\n case c:\n case b:\n case x:\n case s:\n return Mr;\n default:\n return ar;\n }\n }\n case t:\n return ar;\n }\n }\n }\n o(S, \"typeOf\");\n var R = f, F = p, T = u, ue = s, fe = r, G = c, Y = n, rr = b, tr = x, nr = t, on = i, sn = a, un = l, Lr = !1;\n function fn(g) {\n return Lr || (Lr = !0, console.warn(\"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update you\\\nr code to use ReactIs.isConcurrentMode() instead. It has the exact same API.\")), zr(g) || S(g) === f;\n }\n o(fn, \"isAsyncMode\");\n function zr(g) {\n return S(g) === p;\n }\n o(zr, \"isConcurrentMode\");\n function cn(g) {\n return S(g) === u;\n }\n o(cn, \"isContextConsumer\");\n function ln(g) {\n return S(g) === s;\n }\n o(ln, \"isContextProvider\");\n function pn(g) {\n return typeof g == \"object\" && g !== null && g.$$typeof === r;\n }\n o(pn, \"isElement\");\n function dn(g) {\n return S(g) === c;\n }\n o(dn, \"isForwardRef\");\n function mn(g) {\n return S(g) === n;\n }\n o(mn, \"isFragment\");\n function hn(g) {\n return S(g) === b;\n }\n o(hn, \"isLazy\");\n function gn(g) {\n return S(g) === x;\n }\n o(gn, \"isMemo\");\n function bn(g) {\n return S(g) === t;\n }\n o(bn, \"isPortal\");\n function vn(g) {\n return S(g) === i;\n }\n o(vn, \"isProfiler\");\n function yn(g) {\n return S(g) === a;\n }\n o(yn, \"isStrictMode\");\n function xn(g) {\n return S(g) === l;\n }\n o(xn, \"isSuspense\"), O.AsyncMode = R, O.ConcurrentMode = F, O.ContextConsumer = T, O.ContextProvider = ue, O.Element = fe, O.ForwardRef =\n G, O.Fragment = Y, O.Lazy = rr, O.Memo = tr, O.Portal = nr, O.Profiler = on, O.StrictMode = sn, O.Suspense = un, O.isAsyncMode = fn, O.isConcurrentMode =\n zr, O.isContextConsumer = cn, O.isContextProvider = ln, O.isElement = pn, O.isForwardRef = dn, O.isFragment = mn, O.isLazy = hn, O.isMemo =\n gn, O.isPortal = bn, O.isProfiler = vn, O.isStrictMode = yn, O.isSuspense = xn, O.isValidElementType = A, O.typeOf = S;\n })();\n});\n\n// ../node_modules/react-is/index.js\nvar ot = De((si, at) => {\n \"use strict\";\n at.exports = nt();\n});\n\n// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js\nvar mr = De((ui, lt) => {\n \"use strict\";\n var pr = ot(), Bn = {\n childContextTypes: !0,\n contextType: !0,\n contextTypes: !0,\n defaultProps: !0,\n displayName: !0,\n getDefaultProps: !0,\n getDerivedStateFromError: !0,\n getDerivedStateFromProps: !0,\n mixins: !0,\n propTypes: !0,\n type: !0\n }, Dn = {\n name: !0,\n length: !0,\n prototype: !0,\n caller: !0,\n callee: !0,\n arguments: !0,\n arity: !0\n }, $n = {\n $$typeof: !0,\n render: !0,\n defaultProps: !0,\n displayName: !0,\n propTypes: !0\n }, ft = {\n $$typeof: !0,\n compare: !0,\n defaultProps: !0,\n displayName: !0,\n propTypes: !0,\n type: !0\n }, dr = {};\n dr[pr.ForwardRef] = $n;\n dr[pr.Memo] = ft;\n function it(e) {\n return pr.isMemo(e) ? ft : dr[e.$$typeof] || Bn;\n }\n o(it, \"getStatics\");\n var jn = Object.defineProperty, Hn = Object.getOwnPropertyNames, st = Object.getOwnPropertySymbols, Wn = Object.getOwnPropertyDescriptor, Un = Object.\n getPrototypeOf, ut = Object.prototype;\n function ct(e, r, t) {\n if (typeof r != \"string\") {\n if (ut) {\n var n = Un(r);\n n && n !== ut && ct(e, n, t);\n }\n var a = Hn(r);\n st && (a = a.concat(st(r)));\n for (var i = it(e), s = it(r), u = 0; u < a.length; ++u) {\n var f = a[u];\n if (!Dn[f] && !(t && t[f]) && !(s && s[f]) && !(i && i[f])) {\n var p = Wn(r, f);\n try {\n jn(e, f, p);\n } catch {\n }\n }\n }\n }\n return e;\n }\n o(ct, \"hoistNonReactStatics\");\n lt.exports = ct;\n});\n\n// ../node_modules/memoizerific/memoizerific.js\nvar Gt = De((Vt, Rr) => {\n (function(e) {\n if (typeof Vt == \"object\" && typeof Rr < \"u\")\n Rr.exports = e();\n else if (typeof define == \"function\" && define.amd)\n define([], e);\n else {\n var r;\n typeof window < \"u\" ? r = window : typeof global < \"u\" ? r = global : typeof self < \"u\" ? r = self : r = this, r.memoizerific = e();\n }\n })(function() {\n var e, r, t;\n return (/* @__PURE__ */ o(function n(a, i, s) {\n function u(c, l) {\n if (!i[c]) {\n if (!a[c]) {\n var m = typeof Oe == \"function\" && Oe;\n if (!l && m) return m(c, !0);\n if (f) return f(c, !0);\n var x = new Error(\"Cannot find module '\" + c + \"'\");\n throw x.code = \"MODULE_NOT_FOUND\", x;\n }\n var b = i[c] = { exports: {} };\n a[c][0].call(b.exports, function(d) {\n var v = a[c][1][d];\n return u(v || d);\n }, b, b.exports, n, a, i, s);\n }\n return i[c].exports;\n }\n o(u, \"s\");\n for (var f = typeof Oe == \"function\" && Oe, p = 0; p < s.length; p++) u(s[p]);\n return u;\n }, \"e\"))({ 1: [function(n, a, i) {\n a.exports = function(s) {\n if (typeof Map != \"function\" || s) {\n var u = n(\"./similar\");\n return new u();\n } else\n return /* @__PURE__ */ new Map();\n };\n }, { \"./similar\": 2 }], 2: [function(n, a, i) {\n function s() {\n return this.list = [], this.lastItem = void 0, this.size = 0, this;\n }\n o(s, \"Similar\"), s.prototype.get = function(u) {\n var f;\n if (this.lastItem && this.isEqual(this.lastItem.key, u))\n return this.lastItem.val;\n if (f = this.indexOf(u), f >= 0)\n return this.lastItem = this.list[f], this.list[f].val;\n }, s.prototype.set = function(u, f) {\n var p;\n return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = f, this) : (p = this.indexOf(u), p >= 0 ? (this.lastItem =\n this.list[p], this.list[p].val = f, this) : (this.lastItem = { key: u, val: f }, this.list.push(this.lastItem), this.size++, this));\n }, s.prototype.delete = function(u) {\n var f;\n if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), f = this.indexOf(u), f >= 0)\n return this.size--, this.list.splice(f, 1)[0];\n }, s.prototype.has = function(u) {\n var f;\n return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (f = this.indexOf(u), f >= 0 ? (this.lastItem = this.list[f], !0) :\n !1);\n }, s.prototype.forEach = function(u, f) {\n var p;\n for (p = 0; p < this.size; p++)\n u.call(f || this, this.list[p].val, this.list[p].key, this);\n }, s.prototype.indexOf = function(u) {\n var f;\n for (f = 0; f < this.size; f++)\n if (this.isEqual(this.list[f].key, u))\n return f;\n return -1;\n }, s.prototype.isEqual = function(u, f) {\n return u === f || u !== u && f !== f;\n }, a.exports = s;\n }, {}], 3: [function(n, a, i) {\n var s = n(\"map-or-similar\");\n a.exports = function(c) {\n var l = new s(!1), m = [];\n return function(x) {\n var b = /* @__PURE__ */ o(function() {\n var d = l, v, y, w = arguments.length - 1, A = Array(w + 1), S = !0, R;\n if ((b.numArgs || b.numArgs === 0) && b.numArgs !== w + 1)\n throw new Error(\"Memoizerific functions should always be called with the same number of arguments\");\n for (R = 0; R < w; R++) {\n if (A[R] = {\n cacheItem: d,\n arg: arguments[R]\n }, d.has(arguments[R])) {\n d = d.get(arguments[R]);\n continue;\n }\n S = !1, v = new s(!1), d.set(arguments[R], v), d = v;\n }\n return S && (d.has(arguments[w]) ? y = d.get(arguments[w]) : S = !1), S || (y = x.apply(null, arguments), d.set(arguments[w], y)),\n c > 0 && (A[w] = {\n cacheItem: d,\n arg: arguments[w]\n }, S ? u(m, A) : m.push(A), m.length > c && f(m.shift())), b.wasMemoized = S, b.numArgs = w + 1, y;\n }, \"memoizerific\");\n return b.limit = c, b.wasMemoized = !1, b.cache = l, b.lru = m, b;\n };\n };\n function u(c, l) {\n var m = c.length, x = l.length, b, d, v;\n for (d = 0; d < m; d++) {\n for (b = !0, v = 0; v < x; v++)\n if (!p(c[d][v].arg, l[v].arg)) {\n b = !1;\n break;\n }\n if (b)\n break;\n }\n c.push(c.splice(d, 1)[0]);\n }\n o(u, \"moveToMostRecentLru\");\n function f(c) {\n var l = c.length, m = c[l - 1], x, b;\n for (m.cacheItem.delete(m.arg), b = l - 2; b >= 0 && (m = c[b], x = m.cacheItem.get(m.arg), !x || !x.size); b--)\n m.cacheItem.delete(m.arg);\n }\n o(f, \"removeCachedResult\");\n function p(c, l) {\n return c === l || c !== c && l !== l;\n }\n o(p, \"isEqual\");\n }, { \"map-or-similar\": 1 }] }, {}, [3])(3);\n });\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/extends.js\nfunction I() {\n return I = Object.assign ? Object.assign.bind() : function(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = arguments[r];\n for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);\n }\n return e;\n }, I.apply(null, arguments);\n}\no(I, \"_extends\");\n\n// ../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js\nimport * as L from \"react\";\nimport { useContext as Zn, forwardRef as Qn } from \"react\";\n\n// ../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js\nvar Rn = !1;\nfunction An(e) {\n if (e.sheet)\n return e.sheet;\n for (var r = 0; r < document.styleSheets.length; r++)\n if (document.styleSheets[r].ownerNode === e)\n return document.styleSheets[r];\n}\no(An, \"sheetForTag\");\nfunction Fn(e) {\n var r = document.createElement(\"style\");\n return r.setAttribute(\"data-emotion\", e.key), e.nonce !== void 0 && r.setAttribute(\"nonce\", e.nonce), r.appendChild(document.createTextNode(\n \"\")), r.setAttribute(\"data-s\", \"\"), r;\n}\no(Fn, \"createStyleElement\");\nvar kr = /* @__PURE__ */ function() {\n function e(t) {\n var n = this;\n this._insertTag = function(a) {\n var i;\n n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i =\n n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, i), n.tags.push(a);\n }, this.isSpeedy = t.speedy === void 0 ? !Rn : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container =\n t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;\n }\n o(e, \"StyleSheet\");\n var r = e.prototype;\n return r.hydrate = /* @__PURE__ */ o(function(n) {\n n.forEach(this._insertTag);\n }, \"hydrate\"), r.insert = /* @__PURE__ */ o(function(n) {\n this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Fn(this));\n var a = this.tags[this.tags.length - 1];\n if (this.isSpeedy) {\n var i = An(a);\n try {\n i.insertRule(n, i.cssRules.length);\n } catch {\n }\n } else\n a.appendChild(document.createTextNode(n));\n this.ctr++;\n }, \"insert\"), r.flush = /* @__PURE__ */ o(function() {\n this.tags.forEach(function(n) {\n var a;\n return (a = n.parentNode) == null ? void 0 : a.removeChild(n);\n }), this.tags = [], this.ctr = 0;\n }, \"flush\"), e;\n}();\n\n// ../node_modules/stylis/src/Enum.js\nvar z = \"-ms-\", Re = \"-moz-\", C = \"-webkit-\", $e = \"comm\", ce = \"rule\", le = \"decl\";\nvar Nr = \"@import\";\nvar je = \"@keyframes\";\nvar Br = \"@layer\";\n\n// ../node_modules/stylis/src/Utility.js\nvar Dr = Math.abs, ee = String.fromCharCode, $r = Object.assign;\nfunction jr(e, r) {\n return _(e, 0) ^ 45 ? (((r << 2 ^ _(e, 0)) << 2 ^ _(e, 1)) << 2 ^ _(e, 2)) << 2 ^ _(e, 3) : 0;\n}\no(jr, \"hash\");\nfunction He(e) {\n return e.trim();\n}\no(He, \"trim\");\nfunction sr(e, r) {\n return (e = r.exec(e)) ? e[0] : e;\n}\no(sr, \"match\");\nfunction E(e, r, t) {\n return e.replace(r, t);\n}\no(E, \"replace\");\nfunction Ae(e, r) {\n return e.indexOf(r);\n}\no(Ae, \"indexof\");\nfunction _(e, r) {\n return e.charCodeAt(r) | 0;\n}\no(_, \"charat\");\nfunction q(e, r, t) {\n return e.slice(r, t);\n}\no(q, \"substr\");\nfunction M(e) {\n return e.length;\n}\no(M, \"strlen\");\nfunction pe(e) {\n return e.length;\n}\no(pe, \"sizeof\");\nfunction de(e, r) {\n return r.push(e), e;\n}\no(de, \"append\");\nfunction ur(e, r) {\n return e.map(r).join(\"\");\n}\no(ur, \"combine\");\n\n// ../node_modules/stylis/src/Tokenizer.js\nvar We = 1, me = 1, Hr = 0, k = 0, P = 0, ge = \"\";\nfunction Fe(e, r, t, n, a, i, s) {\n return { value: e, root: r, parent: t, type: n, props: a, children: i, line: We, column: me, length: s, return: \"\" };\n}\no(Fe, \"node\");\nfunction be(e, r) {\n return $r(Fe(\"\", null, null, \"\", null, null, 0), e, { length: -e.length }, r);\n}\no(be, \"copy\");\nfunction Wr() {\n return P;\n}\no(Wr, \"char\");\nfunction Ur() {\n return P = k > 0 ? _(ge, --k) : 0, me--, P === 10 && (me = 1, We--), P;\n}\no(Ur, \"prev\");\nfunction N() {\n return P = k < Hr ? _(ge, k++) : 0, me++, P === 10 && (me = 1, We++), P;\n}\no(N, \"next\");\nfunction $() {\n return _(ge, k);\n}\no($, \"peek\");\nfunction _e() {\n return k;\n}\no(_e, \"caret\");\nfunction ve(e, r) {\n return q(ge, e, r);\n}\no(ve, \"slice\");\nfunction he(e) {\n switch (e) {\n // \\0 \\t \\n \\r \\s whitespace token\n case 0:\n case 9:\n case 10:\n case 13:\n case 32:\n return 5;\n // ! + , / > @ ~ isolate token\n case 33:\n case 43:\n case 44:\n case 47:\n case 62:\n case 64:\n case 126:\n // ; { } breakpoint token\n case 59:\n case 123:\n case 125:\n return 4;\n // : accompanied token\n case 58:\n return 3;\n // \" ' ( [ opening delimit token\n case 34:\n case 39:\n case 40:\n case 91:\n return 2;\n // ) ] closing delimit token\n case 41:\n case 93:\n return 1;\n }\n return 0;\n}\no(he, \"token\");\nfunction Ue(e) {\n return We = me = 1, Hr = M(ge = e), k = 0, [];\n}\no(Ue, \"alloc\");\nfunction Ve(e) {\n return ge = \"\", e;\n}\no(Ve, \"dealloc\");\nfunction ye(e) {\n return He(ve(k - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));\n}\no(ye, \"delimit\");\nfunction Vr(e) {\n for (; (P = $()) && P < 33; )\n N();\n return he(e) > 2 || he(P) > 3 ? \"\" : \" \";\n}\no(Vr, \"whitespace\");\nfunction Gr(e, r) {\n for (; --r && N() && !(P < 48 || P > 102 || P > 57 && P < 65 || P > 70 && P < 97); )\n ;\n return ve(e, _e() + (r < 6 && $() == 32 && N() == 32));\n}\no(Gr, \"escaping\");\nfunction fr(e) {\n for (; N(); )\n switch (P) {\n // ] ) \" '\n case e:\n return k;\n // \" '\n case 34:\n case 39:\n e !== 34 && e !== 39 && fr(P);\n break;\n // (\n case 40:\n e === 41 && fr(e);\n break;\n // \\\n case 92:\n N();\n break;\n }\n return k;\n}\no(fr, \"delimiter\");\nfunction Yr(e, r) {\n for (; N() && e + P !== 57; )\n if (e + P === 84 && $() === 47)\n break;\n return \"/*\" + ve(r, k - 1) + \"*\" + ee(e === 47 ? e : N());\n}\no(Yr, \"commenter\");\nfunction qr(e) {\n for (; !he($()); )\n N();\n return ve(e, k);\n}\no(qr, \"identifier\");\n\n// ../node_modules/stylis/src/Parser.js\nfunction Xr(e) {\n return Ve(Ge(\"\", null, null, null, [\"\"], e = Ue(e), 0, [0], e));\n}\no(Xr, \"compile\");\nfunction Ge(e, r, t, n, a, i, s, u, f) {\n for (var p = 0, c = 0, l = s, m = 0, x = 0, b = 0, d = 1, v = 1, y = 1, w = 0, A = \"\", S = a, R = i, F = n, T = A; v; )\n switch (b = w, w = N()) {\n // (\n case 40:\n if (b != 108 && _(T, l - 1) == 58) {\n Ae(T += E(ye(w), \"&\", \"&\\f\"), \"&\\f\") != -1 && (y = -1);\n break;\n }\n // \" ' [\n case 34:\n case 39:\n case 91:\n T += ye(w);\n break;\n // \\t \\n \\r \\s\n case 9:\n case 10:\n case 13:\n case 32:\n T += Vr(b);\n break;\n // \\\n case 92:\n T += Gr(_e() - 1, 7);\n continue;\n // /\n case 47:\n switch ($()) {\n case 42:\n case 47:\n de(_n(Yr(N(), _e()), r, t), f);\n break;\n default:\n T += \"/\";\n }\n break;\n // {\n case 123 * d:\n u[p++] = M(T) * y;\n // } ; \\0\n case 125 * d:\n case 59:\n case 0:\n switch (w) {\n // \\0 }\n case 0:\n case 125:\n v = 0;\n // ;\n case 59 + c:\n y == -1 && (T = E(T, /\\f/g, \"\")), x > 0 && M(T) - l && de(x > 32 ? Kr(T + \";\", n, t, l - 1) : Kr(E(T, \" \", \"\") + \";\", n, t, l - 2),\n f);\n break;\n // @ ;\n case 59:\n T += \";\";\n // { rule/at-rule\n default:\n if (de(F = Jr(T, r, t, p, c, a, u, A, S = [], R = [], l), i), w === 123)\n if (c === 0)\n Ge(T, r, F, F, S, i, l, u, R);\n else\n switch (m === 99 && _(T, 3) === 110 ? 100 : m) {\n // d l m s\n case 100:\n case 108:\n case 109:\n case 115:\n Ge(e, F, F, n && de(Jr(e, F, F, 0, 0, a, u, A, a, S = [], l), R), a, R, l, u, n ? S : R);\n break;\n default:\n Ge(T, F, F, F, [\"\"], R, 0, u, R);\n }\n }\n p = c = x = 0, d = y = 1, A = T = \"\", l = s;\n break;\n // :\n case 58:\n l = 1 + M(T), x = b;\n default:\n if (d < 1) {\n if (w == 123)\n --d;\n else if (w == 125 && d++ == 0 && Ur() == 125)\n continue;\n }\n switch (T += ee(w), w * d) {\n // &\n case 38:\n y = c > 0 ? 1 : (T += \"\\f\", -1);\n break;\n // ,\n case 44:\n u[p++] = (M(T) - 1) * y, y = 1;\n break;\n // @\n case 64:\n $() === 45 && (T += ye(N())), m = $(), c = l = M(A = T += qr(_e())), w++;\n break;\n // -\n case 45:\n b === 45 && M(T) == 2 && (d = 0);\n }\n }\n return i;\n}\no(Ge, \"parse\");\nfunction Jr(e, r, t, n, a, i, s, u, f, p, c) {\n for (var l = a - 1, m = a === 0 ? i : [\"\"], x = pe(m), b = 0, d = 0, v = 0; b < n; ++b)\n for (var y = 0, w = q(e, l + 1, l = Dr(d = s[b])), A = e; y < x; ++y)\n (A = He(d > 0 ? m[y] + \" \" + w : E(w, /&\\f/g, m[y]))) && (f[v++] = A);\n return Fe(e, r, t, a === 0 ? ce : u, f, p, c);\n}\no(Jr, \"ruleset\");\nfunction _n(e, r, t) {\n return Fe(e, r, t, $e, ee(Wr()), q(e, 2, -2), 0);\n}\no(_n, \"comment\");\nfunction Kr(e, r, t, n) {\n return Fe(e, r, t, le, q(e, 0, n), q(e, n + 1, -1), n);\n}\no(Kr, \"declaration\");\n\n// ../node_modules/stylis/src/Serializer.js\nfunction re(e, r) {\n for (var t = \"\", n = pe(e), a = 0; a < n; a++)\n t += r(e[a], a, e, r) || \"\";\n return t;\n}\no(re, \"serialize\");\nfunction Zr(e, r, t, n) {\n switch (e.type) {\n case Br:\n if (e.children.length) break;\n case Nr:\n case le:\n return e.return = e.return || e.value;\n case $e:\n return \"\";\n case je:\n return e.return = e.value + \"{\" + re(e.children, n) + \"}\";\n case ce:\n e.value = e.props.join(\",\");\n }\n return M(t = re(e.children, n)) ? e.return = e.value + \"{\" + t + \"}\" : \"\";\n}\no(Zr, \"stringify\");\n\n// ../node_modules/stylis/src/Middleware.js\nfunction Qr(e) {\n var r = pe(e);\n return function(t, n, a, i) {\n for (var s = \"\", u = 0; u < r; u++)\n s += e[u](t, n, a, i) || \"\";\n return s;\n };\n}\no(Qr, \"middleware\");\nfunction et(e) {\n return function(r) {\n r.root || (r = r.return) && e(r);\n };\n}\no(et, \"rulesheet\");\n\n// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js\nvar cr = /* @__PURE__ */ o(function(r) {\n var t = /* @__PURE__ */ new WeakMap();\n return function(n) {\n if (t.has(n))\n return t.get(n);\n var a = r(n);\n return t.set(n, a), a;\n };\n}, \"weakMemoize\");\n\n// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js\nfunction Ye(e) {\n var r = /* @__PURE__ */ Object.create(null);\n return function(t) {\n return r[t] === void 0 && (r[t] = e(t)), r[t];\n };\n}\no(Ye, \"memoize\");\n\n// ../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js\nvar In = /* @__PURE__ */ o(function(r, t, n) {\n for (var a = 0, i = 0; a = i, i = $(), a === 38 && i === 12 && (t[n] = 1), !he(i); )\n N();\n return ve(r, k);\n}, \"identifierWithPointTracking\"), Pn = /* @__PURE__ */ o(function(r, t) {\n var n = -1, a = 44;\n do\n switch (he(a)) {\n case 0:\n a === 38 && $() === 12 && (t[n] = 1), r[n] += In(k - 1, t, n);\n break;\n case 2:\n r[n] += ye(a);\n break;\n case 4:\n if (a === 44) {\n r[++n] = $() === 58 ? \"&\\f\" : \"\", t[n] = r[n].length;\n break;\n }\n // fallthrough\n default:\n r[n] += ee(a);\n }\n while (a = N());\n return r;\n}, \"toRules\"), Ln = /* @__PURE__ */ o(function(r, t) {\n return Ve(Pn(Ue(r), t));\n}, \"getRules\"), rt = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ o(function(r) {\n if (!(r.type !== \"rule\" || !r.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n r.length < 1)) {\n for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== \"rule\"; )\n if (n = n.parent, !n) return;\n if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !rt.get(n)) && !a) {\n rt.set(r, !0);\n for (var i = [], s = Ln(t, i), u = n.props, f = 0, p = 0; f < s.length; f++)\n for (var c = 0; c < u.length; c++, p++)\n r.props[p] = i[f] ? s[f].replace(/&\\f/g, u[c]) : u[c] + \" \" + s[f];\n }\n }\n}, \"compat\"), Mn = /* @__PURE__ */ o(function(r) {\n if (r.type === \"decl\") {\n var t = r.value;\n // charcode for l\n t.charCodeAt(0) === 108 && // charcode for b\n t.charCodeAt(2) === 98 && (r.return = \"\", r.value = \"\");\n }\n}, \"removeLabel\");\nfunction tt(e, r) {\n switch (jr(e, r)) {\n // color-adjust\n case 5103:\n return C + \"print-\" + e + e;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921:\n // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005:\n // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855:\n // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return C + e + e;\n // appearance, user-select, transform, hyphens, text-size-adjust\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return C + e + Re + e + z + e + e;\n // flex, flex-direction\n case 6828:\n case 4268:\n return C + e + z + e + e;\n // order\n case 6165:\n return C + e + z + \"flex-\" + e + e;\n // align-items\n case 5187:\n return C + e + E(e, /(\\w+).+(:[^]+)/, C + \"box-$1$2\" + z + \"flex-$1$2\") + e;\n // align-self\n case 5443:\n return C + e + z + \"flex-item-\" + E(e, /flex-|-self/, \"\") + e;\n // align-content\n case 4675:\n return C + e + z + \"flex-line-pack\" + E(e, /align-content|flex-|-self/, \"\") + e;\n // flex-shrink\n case 5548:\n return C + e + z + E(e, \"shrink\", \"negative\") + e;\n // flex-basis\n case 5292:\n return C + e + z + E(e, \"basis\", \"preferred-size\") + e;\n // flex-grow\n case 6060:\n return C + \"box-\" + E(e, \"-grow\", \"\") + C + e + z + E(e, \"grow\", \"positive\") + e;\n // transition\n case 4554:\n return C + E(e, /([^-])(transform)/g, \"$1\" + C + \"$2\") + e;\n // cursor\n case 6187:\n return E(E(E(e, /(zoom-|grab)/, C + \"$1\"), /(image-set)/, C + \"$1\"), e, \"\") + e;\n // background, background-image\n case 5495:\n case 3959:\n return E(e, /(image-set\\([^]*)/, C + \"$1$`$1\");\n // justify-content\n case 4968:\n return E(E(e, /(.+:)(flex-)?(.*)/, C + \"box-pack:$3\" + z + \"flex-pack:$3\"), /s.+-b[^;]+/, \"justify\") + C + e + e;\n // (margin|padding)-inline-(start|end)\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return E(e, /(.+)-inline(.+)/, C + \"$1$2\") + e;\n // (min|max)?(width|height|inline-size|block-size)\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n if (M(e) - 1 - r > 6) switch (_(e, r + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n if (_(e, r + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n case 102:\n return E(e, /(.+:)(.+)-([^]+)/, \"$1\" + C + \"$2-$3$1\" + Re + (_(e, r + 3) == 108 ? \"$3\" : \"$2-$3\")) + e;\n // (s)tretch\n case 115:\n return ~Ae(e, \"stretch\") ? tt(E(e, \"stretch\", \"fill-available\"), r) + e : e;\n }\n break;\n // position: sticky\n case 4949:\n if (_(e, r + 1) !== 115) break;\n // display: (flex|inline-flex)\n case 6444:\n switch (_(e, M(e) - 3 - (~Ae(e, \"!important\") && 10))) {\n // stic(k)y\n case 107:\n return E(e, \":\", \":\" + C) + e;\n // (inline-)?fl(e)x\n case 101:\n return E(e, /(.+:)([^;!]+)(;|!.+)?/, \"$1\" + C + (_(e, 14) === 45 ? \"inline-\" : \"\") + \"box$3$1\" + C + \"$2$3$1\" + z + \"$2box$3\") + e;\n }\n break;\n // writing-mode\n case 5936:\n switch (_(e, r + 11)) {\n // vertical-l(r)\n case 114:\n return C + e + z + E(e, /[svh]\\w+-[tblr]{2}/, \"tb\") + e;\n // vertical-r(l)\n case 108:\n return C + e + z + E(e, /[svh]\\w+-[tblr]{2}/, \"tb-rl\") + e;\n // horizontal(-)tb\n case 45:\n return C + e + z + E(e, /[svh]\\w+-[tblr]{2}/, \"lr\") + e;\n }\n return C + e + z + e + e;\n }\n return e;\n}\no(tt, \"prefix\");\nvar kn = /* @__PURE__ */ o(function(r, t, n, a) {\n if (r.length > -1 && !r.return) switch (r.type) {\n case le:\n r.return = tt(r.value, r.length);\n break;\n case je:\n return re([be(r, {\n value: E(r.value, \"@\", \"@\" + C)\n })], a);\n case ce:\n if (r.length) return ur(r.props, function(i) {\n switch (sr(i, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case \":read-only\":\n case \":read-write\":\n return re([be(r, {\n props: [E(i, /:(read-\\w+)/, \":\" + Re + \"$1\")]\n })], a);\n // :placeholder\n case \"::placeholder\":\n return re([be(r, {\n props: [E(i, /:(plac\\w+)/, \":\" + C + \"input-$1\")]\n }), be(r, {\n props: [E(i, /:(plac\\w+)/, \":\" + Re + \"$1\")]\n }), be(r, {\n props: [E(i, /:(plac\\w+)/, z + \"input-$1\")]\n })], a);\n }\n return \"\";\n });\n }\n}, \"prefixer\"), Nn = [kn], lr = /* @__PURE__ */ o(function(r) {\n var t = r.key;\n if (t === \"css\") {\n var n = document.querySelectorAll(\"style[data-emotion]:not([data-s])\");\n Array.prototype.forEach.call(n, function(d) {\n var v = d.getAttribute(\"data-emotion\");\n v.indexOf(\" \") !== -1 && (document.head.appendChild(d), d.setAttribute(\"data-s\", \"\"));\n });\n }\n var a = r.stylisPlugins || Nn, i = {}, s, u = [];\n s = r.container || document.head, Array.prototype.forEach.call(\n // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll('style[data-emotion^=\"' + t + ' \"]'),\n function(d) {\n for (var v = d.getAttribute(\"data-emotion\").split(\" \"), y = 1; y < v.length; y++)\n i[v[y]] = !0;\n u.push(d);\n }\n );\n var f, p = [zn, Mn];\n {\n var c, l = [Zr, et(function(d) {\n c.insert(d);\n })], m = Qr(p.concat(a, l)), x = /* @__PURE__ */ o(function(v) {\n return re(Xr(v), m);\n }, \"stylis\");\n f = /* @__PURE__ */ o(function(v, y, w, A) {\n c = w, x(v ? v + \"{\" + y.styles + \"}\" : y.styles), A && (b.inserted[y.name] = !0);\n }, \"insert\");\n }\n var b = {\n key: t,\n sheet: new kr({\n key: t,\n container: s,\n nonce: r.nonce,\n speedy: r.speedy,\n prepend: r.prepend,\n insertionPoint: r.insertionPoint\n }),\n nonce: r.nonce,\n inserted: i,\n registered: {},\n insert: f\n };\n return b.sheet.hydrate(u), b;\n}, \"createCache\");\n\n// ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\nvar pt = ir(mr());\nvar dt = /* @__PURE__ */ o(function(e, r) {\n return (0, pt.default)(e, r);\n}, \"hoistNonReactStatics\");\n\n// ../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js\nvar Vn = !0;\nfunction xe(e, r, t) {\n var n = \"\";\n return t.split(\" \").forEach(function(a) {\n e[a] !== void 0 ? r.push(e[a] + \";\") : a && (n += a + \" \");\n }), n;\n}\no(xe, \"getRegisteredStyles\");\nvar te = /* @__PURE__ */ o(function(r, t, n) {\n var a = r.key + \"-\" + t.name;\n // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (n === !1 || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n Vn === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);\n}, \"registerStyles\"), ne = /* @__PURE__ */ o(function(r, t, n) {\n te(r, t, n);\n var a = r.key + \"-\" + t.name;\n if (r.inserted[t.name] === void 0) {\n var i = t;\n do\n r.insert(t === i ? \".\" + a : \"\", i, r.sheet, !0), i = i.next;\n while (i !== void 0);\n }\n}, \"insertStyles\");\n\n// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js\nfunction mt(e) {\n for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)\n t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */\n (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */\n t >>> 24, r = /* Math.imul(k, m): */\n (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);\n switch (a) {\n case 3:\n r ^= (e.charCodeAt(n + 2) & 255) << 16;\n case 2:\n r ^= (e.charCodeAt(n + 1) & 255) << 8;\n case 1:\n r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);\n }\n return r ^= r >>> 13, r = /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);\n}\no(mt, \"murmur2\");\n\n// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js\nvar ht = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\n// ../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js\nvar Gn = !1, Yn = /[A-Z]|^ms/g, qn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, yt = /* @__PURE__ */ o(function(r) {\n return r.charCodeAt(1) === 45;\n}, \"isCustomProperty\"), gt = /* @__PURE__ */ o(function(r) {\n return r != null && typeof r != \"boolean\";\n}, \"isProcessableValue\"), hr = /* @__PURE__ */ Ye(function(e) {\n return yt(e) ? e : e.replace(Yn, \"-$&\").toLowerCase();\n}), bt = /* @__PURE__ */ o(function(r, t) {\n switch (r) {\n case \"animation\":\n case \"animationName\":\n if (typeof t == \"string\")\n return t.replace(qn, function(n, a, i) {\n return U = {\n name: a,\n styles: i,\n next: U\n }, a;\n });\n }\n return ht[r] !== 1 && !yt(r) && typeof t == \"number\" && t !== 0 ? t + \"px\" : t;\n}, \"processStyleValue\"), Jn = \"Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or an\\\nother Emotion-aware compiler transform.\";\nfunction Ie(e, r, t) {\n if (t == null)\n return \"\";\n var n = t;\n if (n.__emotion_styles !== void 0)\n return n;\n switch (typeof t) {\n case \"boolean\":\n return \"\";\n case \"object\": {\n var a = t;\n if (a.anim === 1)\n return U = {\n name: a.name,\n styles: a.styles,\n next: U\n }, a.name;\n var i = t;\n if (i.styles !== void 0) {\n var s = i.next;\n if (s !== void 0)\n for (; s !== void 0; )\n U = {\n name: s.name,\n styles: s.styles,\n next: U\n }, s = s.next;\n var u = i.styles + \";\";\n return u;\n }\n return Kn(e, r, t);\n }\n case \"function\": {\n if (e !== void 0) {\n var f = U, p = t(e);\n return U = f, Ie(e, r, p);\n }\n break;\n }\n }\n var c = t;\n if (r == null)\n return c;\n var l = r[c];\n return l !== void 0 ? l : c;\n}\no(Ie, \"handleInterpolation\");\nfunction Kn(e, r, t) {\n var n = \"\";\n if (Array.isArray(t))\n for (var a = 0; a < t.length; a++)\n n += Ie(e, r, t[a]) + \";\";\n else\n for (var i in t) {\n var s = t[i];\n if (typeof s != \"object\") {\n var u = s;\n r != null && r[u] !== void 0 ? n += i + \"{\" + r[u] + \"}\" : gt(u) && (n += hr(i) + \":\" + bt(i, u) + \";\");\n } else {\n if (i === \"NO_COMPONENT_SELECTOR\" && Gn)\n throw new Error(Jn);\n if (Array.isArray(s) && typeof s[0] == \"string\" && (r == null || r[s[0]] === void 0))\n for (var f = 0; f < s.length; f++)\n gt(s[f]) && (n += hr(i) + \":\" + bt(i, s[f]) + \";\");\n else {\n var p = Ie(e, r, s);\n switch (i) {\n case \"animation\":\n case \"animationName\": {\n n += hr(i) + \":\" + p + \";\";\n break;\n }\n default:\n n += i + \"{\" + p + \"}\";\n }\n }\n }\n }\n return n;\n}\no(Kn, \"createStringFromObject\");\nvar vt = /label:\\s*([^\\s;{]+)\\s*(;|$)/g, U;\nfunction J(e, r, t) {\n if (e.length === 1 && typeof e[0] == \"object\" && e[0] !== null && e[0].styles !== void 0)\n return e[0];\n var n = !0, a = \"\";\n U = void 0;\n var i = e[0];\n if (i == null || i.raw === void 0)\n n = !1, a += Ie(t, r, i);\n else {\n var s = i;\n a += s[0];\n }\n for (var u = 1; u < e.length; u++)\n if (a += Ie(t, r, e[u]), n) {\n var f = i;\n a += f[u];\n }\n vt.lastIndex = 0;\n for (var p = \"\", c; (c = vt.exec(a)) !== null; )\n p += \"-\" + c[1];\n var l = mt(a) + p;\n return {\n name: l,\n styles: a,\n next: U\n };\n}\no(J, \"serializeStyles\");\n\n// ../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js\nimport * as Pe from \"react\";\nvar Xn = /* @__PURE__ */ o(function(r) {\n return r();\n}, \"syncFallback\"), xt = Pe.useInsertionEffect ? Pe.useInsertionEffect : !1, we = xt || Xn, gr = xt || Pe.useLayoutEffect;\n\n// ../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js\nvar qe = !1, wt = /* @__PURE__ */ L.createContext(\n // we're doing this to avoid preconstruct's dead code elimination in this one case\n // because this module is primarily intended for the browser and node\n // but it's also required in react native and similar environments sometimes\n // and we could have a special build just for that\n // but this is much easier and the native packages\n // might use a different theme context in the future anyway\n typeof HTMLElement < \"u\" ? /* @__PURE__ */ lr({\n key: \"css\"\n }) : null\n), Et = wt.Provider;\nvar ae = /* @__PURE__ */ o(function(r) {\n return /* @__PURE__ */ Qn(function(t, n) {\n var a = Zn(wt);\n return r(t, a, n);\n });\n}, \"withEmotionCache\"), H = /* @__PURE__ */ L.createContext({}), St = /* @__PURE__ */ o(function() {\n return L.useContext(H);\n}, \"useTheme\"), ea = /* @__PURE__ */ o(function(r, t) {\n if (typeof t == \"function\") {\n var n = t(r);\n return n;\n }\n return I({}, r, t);\n}, \"getTheme\"), ra = /* @__PURE__ */ cr(function(e) {\n return cr(function(r) {\n return ea(e, r);\n });\n}), Tt = /* @__PURE__ */ o(function(r) {\n var t = L.useContext(H);\n return r.theme !== t && (t = ra(t)(r.theme)), /* @__PURE__ */ L.createElement(H.Provider, {\n value: t\n }, r.children);\n}, \"ThemeProvider\");\nfunction Ct(e) {\n var r = e.displayName || e.name || \"Component\", t = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ o(function(a, i) {\n var s = L.useContext(H);\n return /* @__PURE__ */ L.createElement(e, I({\n theme: s,\n ref: i\n }, a));\n }, \"render\"));\n return t.displayName = \"WithTheme(\" + r + \")\", dt(t, e);\n}\no(Ct, \"withTheme\");\nvar Je = {}.hasOwnProperty, br = \"__EMOTION_TYPE_PLEASE_DO_NOT_USE__\", Ot = /* @__PURE__ */ o(function(r, t) {\n var n = {};\n for (var a in t)\n Je.call(t, a) && (n[a] = t[a]);\n return n[br] = r, n;\n}, \"createEmotionProps\"), ta = /* @__PURE__ */ o(function(r) {\n var t = r.cache, n = r.serialized, a = r.isStringTag;\n return te(t, n, a), we(function() {\n return ne(t, n, a);\n }), null;\n}, \"Insertion\"), na = /* @__PURE__ */ ae(function(e, r, t) {\n var n = e.css;\n typeof n == \"string\" && r.registered[n] !== void 0 && (n = r.registered[n]);\n var a = e[br], i = [n], s = \"\";\n typeof e.className == \"string\" ? s = xe(r.registered, i, e.className) : e.className != null && (s = e.className + \" \");\n var u = J(i, void 0, L.useContext(H));\n s += r.key + \"-\" + u.name;\n var f = {};\n for (var p in e)\n Je.call(e, p) && p !== \"css\" && p !== br && !qe && (f[p] = e[p]);\n return f.className = s, t && (f.ref = t), /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(ta, {\n cache: r,\n serialized: u,\n isStringTag: typeof a == \"string\"\n }), /* @__PURE__ */ L.createElement(a, f));\n}), Rt = na;\n\n// ../node_modules/@emotion/react/dist/emotion-react.browser.esm.js\nimport * as j from \"react\";\nvar Hi = ir(mr());\nvar vr = /* @__PURE__ */ o(function(r, t) {\n var n = arguments;\n if (t == null || !Je.call(t, \"css\"))\n return j.createElement.apply(void 0, n);\n var a = n.length, i = new Array(a);\n i[0] = Rt, i[1] = Ot(r, t);\n for (var s = 2; s < a; s++)\n i[s] = n[s];\n return j.createElement.apply(null, i);\n}, \"jsx\");\n(function(e) {\n var r;\n r || (r = e.JSX || (e.JSX = {}));\n})(vr || (vr = {}));\nvar aa = /* @__PURE__ */ ae(function(e, r) {\n var t = e.styles, n = J([t], void 0, j.useContext(H)), a = j.useRef();\n return gr(function() {\n var i = r.key + \"-global\", s = new r.sheet.constructor({\n key: i,\n nonce: r.sheet.nonce,\n container: r.sheet.container,\n speedy: r.sheet.isSpeedy\n }), u = !1, f = document.querySelector('style[data-emotion=\"' + i + \" \" + n.name + '\"]');\n return r.sheet.tags.length && (s.before = r.sheet.tags[0]), f !== null && (u = !0, f.setAttribute(\"data-emotion\", i), s.hydrate([f])), a.\n current = [s, u], function() {\n s.flush();\n };\n }, [r]), gr(function() {\n var i = a.current, s = i[0], u = i[1];\n if (u) {\n i[1] = !1;\n return;\n }\n if (n.next !== void 0 && ne(r, n.next, !0), s.tags.length) {\n var f = s.tags[s.tags.length - 1].nextElementSibling;\n s.before = f, s.flush();\n }\n r.insert(\"\", n, s, !1);\n }, [r, n.name]), null;\n});\nfunction Le() {\n for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)\n r[t] = arguments[t];\n return J(r);\n}\no(Le, \"css\");\nfunction Ee() {\n var e = Le.apply(void 0, arguments), r = \"animation-\" + e.name;\n return {\n name: r,\n styles: \"@keyframes \" + r + \"{\" + e.styles + \"}\",\n anim: 1,\n toString: /* @__PURE__ */ o(function() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }, \"toString\")\n };\n}\no(Ee, \"keyframes\");\nvar oa = /* @__PURE__ */ o(function e(r) {\n for (var t = r.length, n = 0, a = \"\"; n < t; n++) {\n var i = r[n];\n if (i != null) {\n var s = void 0;\n switch (typeof i) {\n case \"boolean\":\n break;\n case \"object\": {\n if (Array.isArray(i))\n s = e(i);\n else {\n s = \"\";\n for (var u in i)\n i[u] && u && (s && (s += \" \"), s += u);\n }\n break;\n }\n default:\n s = i;\n }\n s && (a && (a += \" \"), a += s);\n }\n }\n return a;\n}, \"classnames\");\nfunction ia(e, r, t) {\n var n = [], a = xe(e, n, t);\n return n.length < 2 ? t : a + r(n);\n}\no(ia, \"merge\");\nvar sa = /* @__PURE__ */ o(function(r) {\n var t = r.cache, n = r.serializedArr;\n return we(function() {\n for (var a = 0; a < n.length; a++)\n ne(t, n[a], !1);\n }), null;\n}, \"Insertion\"), ua = /* @__PURE__ */ ae(function(e, r) {\n var t = !1, n = [], a = /* @__PURE__ */ o(function() {\n if (t && qe)\n throw new Error(\"css can only be used during render\");\n for (var p = arguments.length, c = new Array(p), l = 0; l < p; l++)\n c[l] = arguments[l];\n var m = J(c, r.registered);\n return n.push(m), te(r, m, !1), r.key + \"-\" + m.name;\n }, \"css\"), i = /* @__PURE__ */ o(function() {\n if (t && qe)\n throw new Error(\"cx can only be used during render\");\n for (var p = arguments.length, c = new Array(p), l = 0; l < p; l++)\n c[l] = arguments[l];\n return ia(r.registered, a, oa(c));\n }, \"cx\"), s = {\n css: a,\n cx: i,\n theme: j.useContext(H)\n }, u = e.children(s);\n return t = !0, /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(sa, {\n cache: r,\n serializedArr: n\n }), u);\n});\n\n// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js\nimport * as K from \"react\";\n\n// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js\nvar fa = /^((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|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)-.*))$/,\nyr = /* @__PURE__ */ Ye(\n function(e) {\n return fa.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;\n }\n /* Z+1 */\n);\n\n// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js\nvar ca = !1, la = yr, pa = /* @__PURE__ */ o(function(r) {\n return r !== \"theme\";\n}, \"testOmitPropsOnComponent\"), At = /* @__PURE__ */ o(function(r) {\n return typeof r == \"string\" && // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n r.charCodeAt(0) > 96 ? la : pa;\n}, \"getDefaultShouldForwardProp\"), Ft = /* @__PURE__ */ o(function(r, t, n) {\n var a;\n if (t) {\n var i = t.shouldForwardProp;\n a = r.__emotion_forwardProp && i ? function(s) {\n return r.__emotion_forwardProp(s) && i(s);\n } : i;\n }\n return typeof a != \"function\" && n && (a = r.__emotion_forwardProp), a;\n}, \"composeShouldForwardProps\"), da = /* @__PURE__ */ o(function(r) {\n var t = r.cache, n = r.serialized, a = r.isStringTag;\n return te(t, n, a), we(function() {\n return ne(t, n, a);\n }), null;\n}, \"Insertion\"), _t = /* @__PURE__ */ o(function e(r, t) {\n var n = r.__emotion_real === r, a = n && r.__emotion_base || r, i, s;\n t !== void 0 && (i = t.label, s = t.target);\n var u = Ft(r, t, n), f = u || At(a), p = !f(\"as\");\n return function() {\n var c = arguments, l = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];\n if (i !== void 0 && l.push(\"label:\" + i + \";\"), c[0] == null || c[0].raw === void 0)\n l.push.apply(l, c);\n else {\n var m = c[0];\n l.push(m[0]);\n for (var x = c.length, b = 1; b < x; b++)\n l.push(c[b], m[b]);\n }\n var d = ae(function(v, y, w) {\n var A = p && v.as || a, S = \"\", R = [], F = v;\n if (v.theme == null) {\n F = {};\n for (var T in v)\n F[T] = v[T];\n F.theme = K.useContext(H);\n }\n typeof v.className == \"string\" ? S = xe(y.registered, R, v.className) : v.className != null && (S = v.className + \" \");\n var ue = J(l.concat(R), y.registered, F);\n S += y.key + \"-\" + ue.name, s !== void 0 && (S += \" \" + s);\n var fe = p && u === void 0 ? At(A) : f, G = {};\n for (var Y in v)\n p && Y === \"as\" || fe(Y) && (G[Y] = v[Y]);\n return G.className = S, w && (G.ref = w), /* @__PURE__ */ K.createElement(K.Fragment, null, /* @__PURE__ */ K.createElement(da, {\n cache: y,\n serialized: ue,\n isStringTag: typeof A == \"string\"\n }), /* @__PURE__ */ K.createElement(A, G));\n });\n return d.displayName = i !== void 0 ? i : \"Styled(\" + (typeof a == \"string\" ? a : a.displayName || a.name || \"Component\") + \")\", d.defaultProps =\n r.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = l, d.__emotion_forwardProp = u, Object.defineProperty(d,\n \"toString\", {\n value: /* @__PURE__ */ o(function() {\n return s === void 0 && ca ? \"NO_COMPONENT_SELECTOR\" : \".\" + s;\n }, \"value\")\n }), d.withComponent = function(v, y) {\n var w = e(v, I({}, t, y, {\n shouldForwardProp: Ft(d, y, !0)\n }));\n return w.apply(void 0, l);\n }, d;\n };\n}, \"createStyled\");\n\n// ../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js\nimport \"react\";\nvar ma = [\n \"a\",\n \"abbr\",\n \"address\",\n \"area\",\n \"article\",\n \"aside\",\n \"audio\",\n \"b\",\n \"base\",\n \"bdi\",\n \"bdo\",\n \"big\",\n \"blockquote\",\n \"body\",\n \"br\",\n \"button\",\n \"canvas\",\n \"caption\",\n \"cite\",\n \"code\",\n \"col\",\n \"colgroup\",\n \"data\",\n \"datalist\",\n \"dd\",\n \"del\",\n \"details\",\n \"dfn\",\n \"dialog\",\n \"div\",\n \"dl\",\n \"dt\",\n \"em\",\n \"embed\",\n \"fieldset\",\n \"figcaption\",\n \"figure\",\n \"footer\",\n \"form\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\",\n \"head\",\n \"header\",\n \"hgroup\",\n \"hr\",\n \"html\",\n \"i\",\n \"iframe\",\n \"img\",\n \"input\",\n \"ins\",\n \"kbd\",\n \"keygen\",\n \"label\",\n \"legend\",\n \"li\",\n \"link\",\n \"main\",\n \"map\",\n \"mark\",\n \"marquee\",\n \"menu\",\n \"menuitem\",\n \"meta\",\n \"meter\",\n \"nav\",\n \"noscript\",\n \"object\",\n \"ol\",\n \"optgroup\",\n \"option\",\n \"output\",\n \"p\",\n \"param\",\n \"picture\",\n \"pre\",\n \"progress\",\n \"q\",\n \"rp\",\n \"rt\",\n \"ruby\",\n \"s\",\n \"samp\",\n \"script\",\n \"section\",\n \"select\",\n \"small\",\n \"source\",\n \"span\",\n \"strong\",\n \"style\",\n \"sub\",\n \"summary\",\n \"sup\",\n \"table\",\n \"tbody\",\n \"td\",\n \"textarea\",\n \"tfoot\",\n \"th\",\n \"thead\",\n \"time\",\n \"title\",\n \"tr\",\n \"track\",\n \"u\",\n \"ul\",\n \"var\",\n \"video\",\n \"wbr\",\n // SVG\n \"circle\",\n \"clipPath\",\n \"defs\",\n \"ellipse\",\n \"foreignObject\",\n \"g\",\n \"image\",\n \"line\",\n \"linearGradient\",\n \"mask\",\n \"path\",\n \"pattern\",\n \"polygon\",\n \"polyline\",\n \"radialGradient\",\n \"rect\",\n \"stop\",\n \"svg\",\n \"text\",\n \"tspan\"\n], xr = _t.bind(null);\nma.forEach(function(e) {\n xr[e] = xr(e);\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\nfunction It(e) {\n if (e === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\no(It, \"_assertThisInitialized\");\n\n// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js\nfunction X(e, r) {\n return X = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {\n return t.__proto__ = n, t;\n }, X(e, r);\n}\no(X, \"_setPrototypeOf\");\n\n// ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\nfunction Pt(e, r) {\n e.prototype = Object.create(r.prototype), e.prototype.constructor = e, X(e, r);\n}\no(Pt, \"_inheritsLoose\");\n\n// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js\nfunction Ke(e) {\n return Ke = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {\n return r.__proto__ || Object.getPrototypeOf(r);\n }, Ke(e);\n}\no(Ke, \"_getPrototypeOf\");\n\n// ../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js\nfunction Lt(e) {\n try {\n return Function.toString.call(e).indexOf(\"[native code]\") !== -1;\n } catch {\n return typeof e == \"function\";\n }\n}\no(Lt, \"_isNativeFunction\");\n\n// ../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js\nfunction wr() {\n try {\n var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch {\n }\n return (wr = /* @__PURE__ */ o(function() {\n return !!e;\n }, \"_isNativeReflectConstruct\"))();\n}\no(wr, \"_isNativeReflectConstruct\");\n\n// ../node_modules/@babel/runtime/helpers/esm/construct.js\nfunction zt(e, r, t) {\n if (wr()) return Reflect.construct.apply(null, arguments);\n var n = [null];\n n.push.apply(n, r);\n var a = new (e.bind.apply(e, n))();\n return t && X(a, t.prototype), a;\n}\no(zt, \"_construct\");\n\n// ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js\nfunction Xe(e) {\n var r = typeof Map == \"function\" ? /* @__PURE__ */ new Map() : void 0;\n return Xe = /* @__PURE__ */ o(function(n) {\n if (n === null || !Lt(n)) return n;\n if (typeof n != \"function\") throw new TypeError(\"Super expression must either be null or a function\");\n if (r !== void 0) {\n if (r.has(n)) return r.get(n);\n r.set(n, a);\n }\n function a() {\n return zt(n, arguments, Ke(this).constructor);\n }\n return o(a, \"Wrapper\"), a.prototype = Object.create(n.prototype, {\n constructor: {\n value: a,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), X(a, n);\n }, \"_wrapNativeSuper\"), Xe(e);\n}\no(Xe, \"_wrapNativeSuper\");\n\n// ../node_modules/polished/dist/polished.esm.js\nvar ha = {\n 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0\\\n.4, lightness: 0.75 }).\n\n`,\n 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satura\\\ntion: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n`,\n 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n`,\n 4: `Couldn't generate valid rgb string from %s, it returned %s.\n\n`,\n 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n`,\n 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, bl\\\nue: 100 }).\n\n`,\n 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: \\\n205, blue: 100, alpha: 0.75 }).\n\n`,\n 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n`,\n 9: `Please provide a number of steps to the modularScale helper.\n\n`,\n 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,\n 11: `Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n`,\n 12: `Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n`,\n 13: `Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n`,\n 14: `Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 15: `Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 16: `You must provide a template to this method.\n\n`,\n 17: `You passed an unsupported selector state to this method.\n\n`,\n 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,\n 19: `fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,\n 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,\n 21: \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n 22: \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n 23: `fontFace expects a name of a font-family.\n\n`,\n 24: `fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,\n 25: `fontFace expects localFonts to be an array.\n\n`,\n 26: `fontFace expects fileFormats to be an array.\n\n`,\n 27: `radialGradient requries at least 2 color-stops to properly render.\n\n`,\n 28: `Please supply a filename to retinaImage() as the first argument.\n\n`,\n 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,\n 30: \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n`,\n 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n`,\n 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n`,\n 34: `borderRadius expects a radius value as a string or number as the second argument.\n\n`,\n 35: `borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,\n 36: `Property must be a string value.\n\n`,\n 37: `Syntax Error at %s.\n\n`,\n 38: `Formula contains a function that needs parentheses at %s.\n\n`,\n 39: `Formula is missing closing parenthesis at %s.\n\n`,\n 40: `Formula has too many closing parentheses at %s.\n\n`,\n 41: `All values in a formula must have the same unit or be unitless.\n\n`,\n 42: `Please provide a number of steps to the modularScale helper.\n\n`,\n 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,\n 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n`,\n 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n`,\n 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n`,\n 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,\n 48: `fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,\n 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,\n 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n`,\n 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n`,\n 52: `fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,\n 53: `fontFace expects localFonts to be an array.\n\n`,\n 54: `fontFace expects fileFormats to be an array.\n\n`,\n 55: `fontFace expects a name of a font-family.\n\n`,\n 56: `linearGradient requries at least 2 color-stops to properly render.\n\n`,\n 57: `radialGradient requries at least 2 color-stops to properly render.\n\n`,\n 58: `Please supply a filename to retinaImage() as the first argument.\n\n`,\n 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,\n 60: \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n 61: `Property must be a string value.\n\n`,\n 62: `borderRadius expects a radius value as a string or number as the second argument.\n\n`,\n 63: `borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,\n 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n`,\n 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animatio\\\nn please supply them in simple values, e.g. animation('rotate', '2s').\n\n`,\n 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n`,\n 67: `You must provide a template to this method.\n\n`,\n 68: `You passed an unsupported selector state to this method.\n\n`,\n 69: `Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n`,\n 70: `Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n`,\n 71: `Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 72: `Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 73: `Please provide a valid CSS variable.\n\n`,\n 74: `CSS variable not found and no default was provided.\n\n`,\n 75: `important requires a valid style object, got a %s instead.\n\n`,\n 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n`,\n 77: `remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n`,\n 78: `base must be set in \"px\" or \"%\" but you set it in \"%s\".\n`\n};\nfunction ga() {\n for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)\n r[t] = arguments[t];\n var n = r[0], a = [], i;\n for (i = 1; i < r.length; i += 1)\n a.push(r[i]);\n return a.forEach(function(s) {\n n = n.replace(/%[a-z]/, s);\n }), n;\n}\no(ga, \"format\");\nvar B = /* @__PURE__ */ function(e) {\n Pt(r, e);\n function r(t) {\n for (var n, a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)\n i[s - 1] = arguments[s];\n return n = e.call(this, ga.apply(void 0, [ha[t]].concat(i))) || this, It(n);\n }\n return o(r, \"PolishedError\"), r;\n}(/* @__PURE__ */ Xe(Error));\nfunction Mt(e, r) {\n return e.substr(-r.length) === r;\n}\no(Mt, \"endsWith\");\nvar ba = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\nfunction kt(e) {\n if (typeof e != \"string\") return e;\n var r = e.match(ba);\n return r ? parseFloat(e) : e;\n}\no(kt, \"stripUnit\");\nvar va = /* @__PURE__ */ o(function(r) {\n return function(t, n) {\n n === void 0 && (n = \"16px\");\n var a = t, i = n;\n if (typeof t == \"string\") {\n if (!Mt(t, \"px\"))\n throw new B(69, r, t);\n a = kt(t);\n }\n if (typeof n == \"string\") {\n if (!Mt(n, \"px\"))\n throw new B(70, r, n);\n i = kt(n);\n }\n if (typeof a == \"string\")\n throw new B(71, t, r);\n if (typeof i == \"string\")\n throw new B(72, n, r);\n return \"\" + a / i + r;\n };\n}, \"pxtoFactory\"), Bt = va, js = Bt(\"em\");\nvar Hs = Bt(\"rem\");\nfunction Er(e) {\n return Math.round(e * 255);\n}\no(Er, \"colorToInt\");\nfunction ya(e, r, t) {\n return Er(e) + \",\" + Er(r) + \",\" + Er(t);\n}\no(ya, \"convertToInt\");\nfunction ze(e, r, t, n) {\n if (n === void 0 && (n = ya), r === 0)\n return n(t, t, t);\n var a = (e % 360 + 360) % 360 / 60, i = (1 - Math.abs(2 * t - 1)) * r, s = i * (1 - Math.abs(a % 2 - 1)), u = 0, f = 0, p = 0;\n a >= 0 && a < 1 ? (u = i, f = s) : a >= 1 && a < 2 ? (u = s, f = i) : a >= 2 && a < 3 ? (f = i, p = s) : a >= 3 && a < 4 ? (f = s, p = i) :\n a >= 4 && a < 5 ? (u = s, p = i) : a >= 5 && a < 6 && (u = i, p = s);\n var c = t - i / 2, l = u + c, m = f + c, x = p + c;\n return n(l, m, x);\n}\no(ze, \"hslToRgb\");\nvar Nt = {\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"00ffff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"0000ff\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"00ffff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"ff00ff\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"639\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\"\n};\nfunction xa(e) {\n if (typeof e != \"string\") return e;\n var r = e.toLowerCase();\n return Nt[r] ? \"#\" + Nt[r] : e;\n}\no(xa, \"nameToHex\");\nvar wa = /^#[a-fA-F0-9]{6}$/, Ea = /^#[a-fA-F0-9]{8}$/, Sa = /^#[a-fA-F0-9]{3}$/, Ta = /^#[a-fA-F0-9]{4}$/, Sr = /^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i,\nCa = /^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i, Oa = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i,\nRa = /^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;\nfunction Se(e) {\n if (typeof e != \"string\")\n throw new B(3);\n var r = xa(e);\n if (r.match(wa))\n return {\n red: parseInt(\"\" + r[1] + r[2], 16),\n green: parseInt(\"\" + r[3] + r[4], 16),\n blue: parseInt(\"\" + r[5] + r[6], 16)\n };\n if (r.match(Ea)) {\n var t = parseFloat((parseInt(\"\" + r[7] + r[8], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + r[1] + r[2], 16),\n green: parseInt(\"\" + r[3] + r[4], 16),\n blue: parseInt(\"\" + r[5] + r[6], 16),\n alpha: t\n };\n }\n if (r.match(Sa))\n return {\n red: parseInt(\"\" + r[1] + r[1], 16),\n green: parseInt(\"\" + r[2] + r[2], 16),\n blue: parseInt(\"\" + r[3] + r[3], 16)\n };\n if (r.match(Ta)) {\n var n = parseFloat((parseInt(\"\" + r[4] + r[4], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + r[1] + r[1], 16),\n green: parseInt(\"\" + r[2] + r[2], 16),\n blue: parseInt(\"\" + r[3] + r[3], 16),\n alpha: n\n };\n }\n var a = Sr.exec(r);\n if (a)\n return {\n red: parseInt(\"\" + a[1], 10),\n green: parseInt(\"\" + a[2], 10),\n blue: parseInt(\"\" + a[3], 10)\n };\n var i = Ca.exec(r.substring(0, 50));\n if (i)\n return {\n red: parseInt(\"\" + i[1], 10),\n green: parseInt(\"\" + i[2], 10),\n blue: parseInt(\"\" + i[3], 10),\n alpha: parseFloat(\"\" + i[4]) > 1 ? parseFloat(\"\" + i[4]) / 100 : parseFloat(\"\" + i[4])\n };\n var s = Oa.exec(r);\n if (s) {\n var u = parseInt(\"\" + s[1], 10), f = parseInt(\"\" + s[2], 10) / 100, p = parseInt(\"\" + s[3], 10) / 100, c = \"rgb(\" + ze(u, f, p) + \")\", l = Sr.\n exec(c);\n if (!l)\n throw new B(4, r, c);\n return {\n red: parseInt(\"\" + l[1], 10),\n green: parseInt(\"\" + l[2], 10),\n blue: parseInt(\"\" + l[3], 10)\n };\n }\n var m = Ra.exec(r.substring(0, 50));\n if (m) {\n var x = parseInt(\"\" + m[1], 10), b = parseInt(\"\" + m[2], 10) / 100, d = parseInt(\"\" + m[3], 10) / 100, v = \"rgb(\" + ze(x, b, d) + \")\", y = Sr.\n exec(v);\n if (!y)\n throw new B(4, r, v);\n return {\n red: parseInt(\"\" + y[1], 10),\n green: parseInt(\"\" + y[2], 10),\n blue: parseInt(\"\" + y[3], 10),\n alpha: parseFloat(\"\" + m[4]) > 1 ? parseFloat(\"\" + m[4]) / 100 : parseFloat(\"\" + m[4])\n };\n }\n throw new B(5);\n}\no(Se, \"parseToRgb\");\nfunction Aa(e) {\n var r = e.red / 255, t = e.green / 255, n = e.blue / 255, a = Math.max(r, t, n), i = Math.min(r, t, n), s = (a + i) / 2;\n if (a === i)\n return e.alpha !== void 0 ? {\n hue: 0,\n saturation: 0,\n lightness: s,\n alpha: e.alpha\n } : {\n hue: 0,\n saturation: 0,\n lightness: s\n };\n var u, f = a - i, p = s > 0.5 ? f / (2 - a - i) : f / (a + i);\n switch (a) {\n case r:\n u = (t - n) / f + (t < n ? 6 : 0);\n break;\n case t:\n u = (n - r) / f + 2;\n break;\n default:\n u = (r - t) / f + 4;\n break;\n }\n return u *= 60, e.alpha !== void 0 ? {\n hue: u,\n saturation: p,\n lightness: s,\n alpha: e.alpha\n } : {\n hue: u,\n saturation: p,\n lightness: s\n };\n}\no(Aa, \"rgbToHsl\");\nfunction Z(e) {\n return Aa(Se(e));\n}\no(Z, \"parseToHsl\");\nvar Fa = /* @__PURE__ */ o(function(r) {\n return r.length === 7 && r[1] === r[2] && r[3] === r[4] && r[5] === r[6] ? \"#\" + r[1] + r[3] + r[5] : r;\n}, \"reduceHexValue\"), Cr = Fa;\nfunction oe(e) {\n var r = e.toString(16);\n return r.length === 1 ? \"0\" + r : r;\n}\no(oe, \"numberToHex\");\nfunction Tr(e) {\n return oe(Math.round(e * 255));\n}\no(Tr, \"colorToHex\");\nfunction _a(e, r, t) {\n return Cr(\"#\" + Tr(e) + Tr(r) + Tr(t));\n}\no(_a, \"convertToHex\");\nfunction Ze(e, r, t) {\n return ze(e, r, t, _a);\n}\no(Ze, \"hslToHex\");\nfunction Ia(e, r, t) {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\")\n return Ze(e, r, t);\n if (typeof e == \"object\" && r === void 0 && t === void 0)\n return Ze(e.hue, e.saturation, e.lightness);\n throw new B(1);\n}\no(Ia, \"hsl\");\nfunction Pa(e, r, t, n) {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\" && typeof n == \"number\")\n return n >= 1 ? Ze(e, r, t) : \"rgba(\" + ze(e, r, t) + \",\" + n + \")\";\n if (typeof e == \"object\" && r === void 0 && t === void 0 && n === void 0)\n return e.alpha >= 1 ? Ze(e.hue, e.saturation, e.lightness) : \"rgba(\" + ze(e.hue, e.saturation, e.lightness) + \",\" + e.alpha + \")\";\n throw new B(2);\n}\no(Pa, \"hsla\");\nfunction Or(e, r, t) {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\")\n return Cr(\"#\" + oe(e) + oe(r) + oe(t));\n if (typeof e == \"object\" && r === void 0 && t === void 0)\n return Cr(\"#\" + oe(e.red) + oe(e.green) + oe(e.blue));\n throw new B(6);\n}\no(Or, \"rgb\");\nfunction ie(e, r, t, n) {\n if (typeof e == \"string\" && typeof r == \"number\") {\n var a = Se(e);\n return \"rgba(\" + a.red + \",\" + a.green + \",\" + a.blue + \",\" + r + \")\";\n } else {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\" && typeof n == \"number\")\n return n >= 1 ? Or(e, r, t) : \"rgba(\" + e + \",\" + r + \",\" + t + \",\" + n + \")\";\n if (typeof e == \"object\" && r === void 0 && t === void 0 && n === void 0)\n return e.alpha >= 1 ? Or(e.red, e.green, e.blue) : \"rgba(\" + e.red + \",\" + e.green + \",\" + e.blue + \",\" + e.alpha + \")\";\n }\n throw new B(7);\n}\no(ie, \"rgba\");\nvar La = /* @__PURE__ */ o(function(r) {\n return typeof r.red == \"number\" && typeof r.green == \"number\" && typeof r.blue == \"number\" && (typeof r.alpha != \"number\" || typeof r.alpha >\n \"u\");\n}, \"isRgb\"), za = /* @__PURE__ */ o(function(r) {\n return typeof r.red == \"number\" && typeof r.green == \"number\" && typeof r.blue == \"number\" && typeof r.alpha == \"number\";\n}, \"isRgba\"), Ma = /* @__PURE__ */ o(function(r) {\n return typeof r.hue == \"number\" && typeof r.saturation == \"number\" && typeof r.lightness == \"number\" && (typeof r.alpha != \"number\" || typeof r.\n alpha > \"u\");\n}, \"isHsl\"), ka = /* @__PURE__ */ o(function(r) {\n return typeof r.hue == \"number\" && typeof r.saturation == \"number\" && typeof r.lightness == \"number\" && typeof r.alpha == \"number\";\n}, \"isHsla\");\nfunction Q(e) {\n if (typeof e != \"object\") throw new B(8);\n if (za(e)) return ie(e);\n if (La(e)) return Or(e);\n if (ka(e)) return Pa(e);\n if (Ma(e)) return Ia(e);\n throw new B(8);\n}\no(Q, \"toColorString\");\nfunction Dt(e, r, t) {\n return /* @__PURE__ */ o(function() {\n var a = t.concat(Array.prototype.slice.call(arguments));\n return a.length >= r ? e.apply(this, a) : Dt(e, r, a);\n }, \"fn\");\n}\no(Dt, \"curried\");\nfunction D(e) {\n return Dt(e, e.length, []);\n}\no(D, \"curry\");\nfunction Na(e, r) {\n if (r === \"transparent\") return r;\n var t = Z(r);\n return Q(I({}, t, {\n hue: t.hue + parseFloat(e)\n }));\n}\no(Na, \"adjustHue\");\nvar Ws = D(Na);\nfunction Te(e, r, t) {\n return Math.max(e, Math.min(r, t));\n}\no(Te, \"guard\");\nfunction Ba(e, r) {\n if (r === \"transparent\") return r;\n var t = Z(r);\n return Q(I({}, t, {\n lightness: Te(0, 1, t.lightness - parseFloat(e))\n }));\n}\no(Ba, \"darken\");\nvar Da = D(Ba), $t = Da;\nfunction $a(e, r) {\n if (r === \"transparent\") return r;\n var t = Z(r);\n return Q(I({}, t, {\n saturation: Te(0, 1, t.saturation - parseFloat(e))\n }));\n}\no($a, \"desaturate\");\nvar Us = D($a);\nfunction ja(e, r) {\n if (r === \"transparent\") return r;\n var t = Z(r);\n return Q(I({}, t, {\n lightness: Te(0, 1, t.lightness + parseFloat(e))\n }));\n}\no(ja, \"lighten\");\nvar Ha = D(ja), jt = Ha;\nfunction Wa(e, r, t) {\n if (r === \"transparent\") return t;\n if (t === \"transparent\") return r;\n if (e === 0) return t;\n var n = Se(r), a = I({}, n, {\n alpha: typeof n.alpha == \"number\" ? n.alpha : 1\n }), i = Se(t), s = I({}, i, {\n alpha: typeof i.alpha == \"number\" ? i.alpha : 1\n }), u = a.alpha - s.alpha, f = parseFloat(e) * 2 - 1, p = f * u === -1 ? f : f + u, c = 1 + f * u, l = (p / c + 1) / 2, m = 1 - l, x = {\n red: Math.floor(a.red * l + s.red * m),\n green: Math.floor(a.green * l + s.green * m),\n blue: Math.floor(a.blue * l + s.blue * m),\n alpha: a.alpha * parseFloat(e) + s.alpha * (1 - parseFloat(e))\n };\n return ie(x);\n}\no(Wa, \"mix\");\nvar Ua = D(Wa), Ht = Ua;\nfunction Va(e, r) {\n if (r === \"transparent\") return r;\n var t = Se(r), n = typeof t.alpha == \"number\" ? t.alpha : 1, a = I({}, t, {\n alpha: Te(0, 1, (n * 100 + parseFloat(e) * 100) / 100)\n });\n return ie(a);\n}\no(Va, \"opacify\");\nvar Ga = D(Va), Wt = Ga;\nfunction Ya(e, r) {\n if (r === \"transparent\") return r;\n var t = Z(r);\n return Q(I({}, t, {\n saturation: Te(0, 1, t.saturation + parseFloat(e))\n }));\n}\no(Ya, \"saturate\");\nvar Vs = D(Ya);\nfunction qa(e, r) {\n return r === \"transparent\" ? r : Q(I({}, Z(r), {\n hue: parseFloat(e)\n }));\n}\no(qa, \"setHue\");\nvar Gs = D(qa);\nfunction Ja(e, r) {\n return r === \"transparent\" ? r : Q(I({}, Z(r), {\n lightness: parseFloat(e)\n }));\n}\no(Ja, \"setLightness\");\nvar Ys = D(Ja);\nfunction Ka(e, r) {\n return r === \"transparent\" ? r : Q(I({}, Z(r), {\n saturation: parseFloat(e)\n }));\n}\no(Ka, \"setSaturation\");\nvar qs = D(Ka);\nfunction Xa(e, r) {\n return r === \"transparent\" ? r : Ht(parseFloat(e), \"rgb(0, 0, 0)\", r);\n}\no(Xa, \"shade\");\nvar Js = D(Xa);\nfunction Za(e, r) {\n return r === \"transparent\" ? r : Ht(parseFloat(e), \"rgb(255, 255, 255)\", r);\n}\no(Za, \"tint\");\nvar Ks = D(Za);\nfunction Qa(e, r) {\n if (r === \"transparent\") return r;\n var t = Se(r), n = typeof t.alpha == \"number\" ? t.alpha : 1, a = I({}, t, {\n alpha: Te(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100)\n });\n return ie(a);\n}\no(Qa, \"transparentize\");\nvar eo = D(Qa), Ut = eo;\n\n// src/theming/base.ts\nvar h = {\n // Official color palette\n primary: \"#FF4785\",\n // coral\n secondary: \"#029CFD\",\n // ocean\n tertiary: \"#FAFBFC\",\n ancillary: \"#22a699\",\n // Complimentary\n orange: \"#FC521F\",\n gold: \"#FFAE00\",\n green: \"#66BF3C\",\n seafoam: \"#37D5D3\",\n purple: \"#6F2CAC\",\n ultraviolet: \"#2A0481\",\n // Monochrome\n lightest: \"#FFFFFF\",\n lighter: \"#F7FAFC\",\n light: \"#EEF3F6\",\n mediumlight: \"#ECF4F9\",\n medium: \"#D9E8F2\",\n mediumdark: \"#73828C\",\n dark: \"#5C6870\",\n darker: \"#454E54\",\n darkest: \"#2E3438\",\n // For borders\n border: \"hsla(203, 50%, 30%, 0.15)\",\n // Status\n positive: \"#66BF3C\",\n negative: \"#FF4400\",\n warning: \"#E69D00\",\n critical: \"#FFFFFF\",\n // Text\n defaultText: \"#2E3438\",\n inverseText: \"#FFFFFF\",\n positiveText: \"#448028\",\n negativeText: \"#D43900\",\n warningText: \"#A15C20\"\n}, V = {\n app: \"#F6F9FC\",\n bar: h.lightest,\n content: h.lightest,\n preview: h.lightest,\n gridCellSize: 10,\n hoverable: Ut(0.9, h.secondary),\n // hover state for items in a list\n // Notification, error, and warning backgrounds\n positive: \"#E1FFD4\",\n negative: \"#FEDED2\",\n warning: \"#FFF5CF\",\n critical: \"#FF4400\"\n}, W = {\n fonts: {\n base: [\n '\"Nunito Sans\"',\n \"-apple-system\",\n '\".SFNSText-Regular\"',\n '\"San Francisco\"',\n \"BlinkMacSystemFont\",\n '\"Segoe UI\"',\n '\"Helvetica Neue\"',\n \"Helvetica\",\n \"Arial\",\n \"sans-serif\"\n ].join(\", \"),\n mono: [\n \"ui-monospace\",\n \"Menlo\",\n \"Monaco\",\n '\"Roboto Mono\"',\n '\"Oxygen Mono\"',\n '\"Ubuntu Monospace\"',\n '\"Source Code Pro\"',\n '\"Droid Sans Mono\"',\n '\"Courier New\"',\n \"monospace\"\n ].join(\", \")\n },\n weight: {\n regular: 400,\n bold: 700\n },\n size: {\n s1: 12,\n s2: 14,\n s3: 16,\n m1: 20,\n m2: 24,\n m3: 28,\n l1: 32,\n l2: 40,\n l3: 48,\n code: 90\n }\n};\n\n// src/theming/global.ts\nvar Ar = ir(Gt(), 1), Yt = (0, Ar.default)(1)(\n ({ typography: e }) => ({\n body: {\n fontFamily: e.fonts.base,\n fontSize: e.size.s3,\n margin: 0,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n WebkitTapHighlightColor: \"rgba(0, 0, 0, 0)\",\n WebkitOverflowScrolling: \"touch\"\n },\n \"*\": {\n boxSizing: \"border-box\"\n },\n \"h1, h2, h3, h4, h5, h6\": {\n fontWeight: e.weight.regular,\n margin: 0,\n padding: 0\n },\n \"button, input, textarea, select\": {\n fontFamily: \"inherit\",\n fontSize: \"inherit\",\n boxSizing: \"border-box\"\n },\n sub: {\n fontSize: \"0.8em\",\n bottom: \"-0.2em\"\n },\n sup: {\n fontSize: \"0.8em\",\n top: \"-0.2em\"\n },\n \"b, strong\": {\n fontWeight: e.weight.bold\n },\n hr: {\n border: \"none\",\n borderTop: \"1px solid silver\",\n clear: \"both\",\n marginBottom: \"1.25rem\"\n },\n code: {\n fontFamily: e.fonts.mono,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n display: \"inline-block\",\n paddingLeft: 2,\n paddingRight: 2,\n verticalAlign: \"baseline\",\n color: \"inherit\"\n },\n pre: {\n fontFamily: e.fonts.mono,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n lineHeight: \"18px\",\n padding: \"11px 1rem\",\n whiteSpace: \"pre-wrap\",\n color: \"inherit\",\n borderRadius: 3,\n margin: \"1rem 0\"\n }\n })\n), ro = (0, Ar.default)(1)(({\n color: e,\n background: r,\n typography: t\n}) => {\n let n = Yt({ typography: t });\n return {\n ...n,\n body: {\n ...n.body,\n color: e.defaultText,\n background: r.app,\n overflow: \"hidden\"\n },\n hr: {\n ...n.hr,\n borderTop: `1px solid ${e.border}`\n },\n \".sb-sr-only, .sb-hidden-until-focus:not(:focus)\": {\n position: \"absolute\",\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n border: 0\n },\n \".sb-hidden-until-focus\": {\n opacity: 0,\n transition: \"opacity 150ms ease-out\"\n },\n \".sb-hidden-until-focus:focus\": {\n opacity: 1\n }\n };\n});\n\n// src/theming/themes/dark.ts\nvar to = {\n base: \"dark\",\n // Storybook-specific color palette\n colorPrimary: \"#FF4785\",\n // coral\n colorSecondary: \"#029CFD\",\n // ocean\n // UI\n appBg: \"#222425\",\n appContentBg: \"#1B1C1D\",\n appPreviewBg: h.lightest,\n appBorderColor: \"rgba(255,255,255,.1)\",\n appBorderRadius: 4,\n // Fonts\n fontBase: W.fonts.base,\n fontCode: W.fonts.mono,\n // Text colors\n textColor: \"#C9CDCF\",\n textInverseColor: \"#222425\",\n textMutedColor: \"#798186\",\n // Toolbar default and active colors\n barTextColor: h.mediumdark,\n barHoverColor: h.secondary,\n barSelectedColor: h.secondary,\n barBg: \"#292C2E\",\n // Form colors\n buttonBg: \"#222425\",\n buttonBorder: \"rgba(255,255,255,.1)\",\n booleanBg: \"#222425\",\n booleanSelectedBg: \"#2E3438\",\n inputBg: \"#1B1C1D\",\n inputBorder: \"rgba(255,255,255,.1)\",\n inputTextColor: h.lightest,\n inputBorderRadius: 4\n}, qt = to;\n\n// src/theming/themes/light.ts\nvar no = {\n base: \"light\",\n // Storybook-specific color palette\n colorPrimary: \"#FF4785\",\n // coral\n colorSecondary: \"#029CFD\",\n // ocean\n // UI\n appBg: V.app,\n appContentBg: h.lightest,\n appPreviewBg: h.lightest,\n appBorderColor: h.border,\n appBorderRadius: 4,\n // Fonts\n fontBase: W.fonts.base,\n fontCode: W.fonts.mono,\n // Text colors\n textColor: h.darkest,\n textInverseColor: h.lightest,\n textMutedColor: h.dark,\n // Toolbar default and active colors\n barTextColor: h.mediumdark,\n barHoverColor: h.secondary,\n barSelectedColor: h.secondary,\n barBg: h.lightest,\n // Form colors\n buttonBg: V.app,\n buttonBorder: h.medium,\n booleanBg: h.mediumlight,\n booleanSelectedBg: h.lightest,\n inputBg: h.lightest,\n inputBorder: h.border,\n inputTextColor: h.darkest,\n inputBorderRadius: 4\n}, Ce = no;\n\n// src/theming/utils.ts\nimport { logger as ao } from \"storybook/internal/client-logger\";\nimport { global as oo } from \"@storybook/global\";\nvar { window: Fr } = oo, Jt = /* @__PURE__ */ o((e) => ({ color: e }), \"mkColor\"), io = /* @__PURE__ */ o((e) => typeof e != \"string\" ? (ao.\nwarn(\n `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`\n), !1) : !0, \"isColorString\"), so = /* @__PURE__ */ o((e) => !/(gradient|var|calc)/.test(e), \"isValidColorForPolished\"), uo = /* @__PURE__ */ o(\n(e, r) => e === \"darken\" ? ie(`${$t(1, r)}`, 0.95) : e === \"lighten\" ? ie(`${jt(1, r)}`, 0.95) : r, \"applyPolished\"), Kt = /* @__PURE__ */ o(\n(e) => (r) => {\n if (!io(r) || !so(r))\n return r;\n try {\n return uo(e, r);\n } catch {\n return r;\n }\n}, \"colorFactory\"), fo = Kt(\"lighten\"), co = Kt(\"darken\"), Qe = /* @__PURE__ */ o(() => !Fr || !Fr.matchMedia ? \"light\" : Fr.matchMedia(\"(pr\\\nefers-color-scheme: dark)\").matches ? \"dark\" : \"light\", \"getPreferredColorScheme\");\n\n// src/theming/create.ts\nvar Me = {\n light: Ce,\n dark: qt,\n normal: Ce\n}, _r = Qe(), hu = /* @__PURE__ */ o((e = { base: _r }, r) => {\n let t = {\n ...Me[_r],\n ...Me[e.base] || {},\n ...e,\n base: Me[e.base] ? e.base : _r\n };\n return {\n ...r,\n ...t,\n barSelectedColor: e.barSelectedColor || t.colorSecondary\n };\n}, \"create\");\n\n// src/theming/animation.ts\nvar Xt = {\n rubber: \"cubic-bezier(0.175, 0.885, 0.335, 1.05)\"\n}, lo = Ee`\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n`, Zt = Ee`\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n`, po = Ee`\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n`, mo = Ee`\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n`, ho = Le`\n animation: ${Zt} 1.5s ease-in-out infinite;\n color: transparent;\n cursor: progress;\n`, go = Le`\n transition: all 150ms ease-out;\n transform: translate3d(0, 0, 0);\n\n &:hover {\n transform: translate3d(0, -2px, 0);\n }\n\n &:active {\n transform: translate3d(0, 0, 0);\n }\n`, Qt = {\n rotate360: lo,\n glow: Zt,\n float: po,\n jiggle: mo,\n inlineGlow: ho,\n hoverable: go\n};\n\n// src/theming/modules/syntax.ts\nvar en = {\n BASE_FONT_FAMILY: \"Menlo, monospace\",\n BASE_FONT_SIZE: \"11px\",\n BASE_LINE_HEIGHT: 1.2,\n BASE_BACKGROUND_COLOR: \"rgb(36, 36, 36)\",\n BASE_COLOR: \"rgb(213, 213, 213)\",\n OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,\n OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,\n OBJECT_NAME_COLOR: \"rgb(227, 110, 236)\",\n OBJECT_VALUE_NULL_COLOR: \"rgb(127, 127, 127)\",\n OBJECT_VALUE_UNDEFINED_COLOR: \"rgb(127, 127, 127)\",\n OBJECT_VALUE_REGEXP_COLOR: \"rgb(233, 63, 59)\",\n OBJECT_VALUE_STRING_COLOR: \"rgb(233, 63, 59)\",\n OBJECT_VALUE_SYMBOL_COLOR: \"rgb(233, 63, 59)\",\n OBJECT_VALUE_NUMBER_COLOR: \"hsl(252, 100%, 75%)\",\n OBJECT_VALUE_BOOLEAN_COLOR: \"hsl(252, 100%, 75%)\",\n OBJECT_VALUE_FUNCTION_PREFIX_COLOR: \"rgb(85, 106, 242)\",\n HTML_TAG_COLOR: \"rgb(93, 176, 215)\",\n HTML_TAGNAME_COLOR: \"rgb(93, 176, 215)\",\n HTML_TAGNAME_TEXT_TRANSFORM: \"lowercase\",\n HTML_ATTRIBUTE_NAME_COLOR: \"rgb(155, 187, 220)\",\n HTML_ATTRIBUTE_VALUE_COLOR: \"rgb(242, 151, 102)\",\n HTML_COMMENT_COLOR: \"rgb(137, 137, 137)\",\n HTML_DOCTYPE_COLOR: \"rgb(192, 192, 192)\",\n ARROW_COLOR: \"rgb(145, 145, 145)\",\n ARROW_MARGIN_RIGHT: 3,\n ARROW_FONT_SIZE: 12,\n ARROW_ANIMATION_DURATION: \"0\",\n TREENODE_FONT_FAMILY: \"Menlo, monospace\",\n TREENODE_FONT_SIZE: \"11px\",\n TREENODE_LINE_HEIGHT: 1.2,\n TREENODE_PADDING_LEFT: 12,\n TABLE_BORDER_COLOR: \"rgb(85, 85, 85)\",\n TABLE_TH_BACKGROUND_COLOR: \"rgb(44, 44, 44)\",\n TABLE_TH_HOVER_COLOR: \"rgb(48, 48, 48)\",\n TABLE_SORT_ICON_COLOR: \"black\",\n // 'rgb(48, 57, 66)',\n 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(\\\n51, 139, 255, 0.0980392))\",\n TABLE_DATA_BACKGROUND_SIZE: \"128px 32px\"\n}, rn = {\n BASE_FONT_FAMILY: \"Menlo, monospace\",\n BASE_FONT_SIZE: \"11px\",\n BASE_LINE_HEIGHT: 1.2,\n BASE_BACKGROUND_COLOR: \"white\",\n BASE_COLOR: \"black\",\n OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,\n OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,\n OBJECT_NAME_COLOR: \"rgb(136, 19, 145)\",\n OBJECT_VALUE_NULL_COLOR: \"rgb(128, 128, 128)\",\n OBJECT_VALUE_UNDEFINED_COLOR: \"rgb(128, 128, 128)\",\n OBJECT_VALUE_REGEXP_COLOR: \"rgb(196, 26, 22)\",\n OBJECT_VALUE_STRING_COLOR: \"rgb(196, 26, 22)\",\n OBJECT_VALUE_SYMBOL_COLOR: \"rgb(196, 26, 22)\",\n OBJECT_VALUE_NUMBER_COLOR: \"rgb(28, 0, 207)\",\n OBJECT_VALUE_BOOLEAN_COLOR: \"rgb(28, 0, 207)\",\n OBJECT_VALUE_FUNCTION_PREFIX_COLOR: \"rgb(13, 34, 170)\",\n HTML_TAG_COLOR: \"rgb(168, 148, 166)\",\n HTML_TAGNAME_COLOR: \"rgb(136, 18, 128)\",\n HTML_TAGNAME_TEXT_TRANSFORM: \"lowercase\",\n HTML_ATTRIBUTE_NAME_COLOR: \"rgb(153, 69, 0)\",\n HTML_ATTRIBUTE_VALUE_COLOR: \"rgb(26, 26, 166)\",\n HTML_COMMENT_COLOR: \"rgb(35, 110, 37)\",\n HTML_DOCTYPE_COLOR: \"rgb(192, 192, 192)\",\n ARROW_COLOR: \"#6e6e6e\",\n ARROW_MARGIN_RIGHT: 3,\n ARROW_FONT_SIZE: 12,\n ARROW_ANIMATION_DURATION: \"0\",\n TREENODE_FONT_FAMILY: \"Menlo, monospace\",\n TREENODE_FONT_SIZE: \"11px\",\n TREENODE_LINE_HEIGHT: 1.2,\n TREENODE_PADDING_LEFT: 12,\n TABLE_BORDER_COLOR: \"#aaa\",\n TABLE_TH_BACKGROUND_COLOR: \"#eee\",\n TABLE_TH_HOVER_COLOR: \"hsla(0, 0%, 90%, 1)\",\n TABLE_SORT_ICON_COLOR: \"#6e6e6e\",\n TABLE_DATA_BACKGROUND_IMAGE: \"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))\",\n TABLE_DATA_BACKGROUND_SIZE: \"128px 32px\"\n}, bo = /* @__PURE__ */ o((e) => Object.entries(e).reduce((r, [t, n]) => ({ ...r, [t]: Jt(n) }), {}), \"convertColors\"), tn = /* @__PURE__ */ o(\n({ colors: e, mono: r }) => {\n let t = bo(e);\n return {\n token: {\n fontFamily: r,\n WebkitFontSmoothing: \"antialiased\",\n \"&.tag\": t.red3,\n \"&.comment\": { ...t.green1, fontStyle: \"italic\" },\n \"&.prolog\": { ...t.green1, fontStyle: \"italic\" },\n \"&.doctype\": { ...t.green1, fontStyle: \"italic\" },\n \"&.cdata\": { ...t.green1, fontStyle: \"italic\" },\n \"&.string\": t.red1,\n \"&.url\": t.cyan1,\n \"&.symbol\": t.cyan1,\n \"&.number\": t.cyan1,\n \"&.boolean\": t.cyan1,\n \"&.variable\": t.cyan1,\n \"&.constant\": t.cyan1,\n \"&.inserted\": t.cyan1,\n \"&.atrule\": t.blue1,\n \"&.keyword\": t.blue1,\n \"&.attr-value\": t.blue1,\n \"&.punctuation\": t.gray1,\n \"&.operator\": t.gray1,\n \"&.function\": t.gray1,\n \"&.deleted\": t.red2,\n \"&.important\": {\n fontWeight: \"bold\"\n },\n \"&.bold\": {\n fontWeight: \"bold\"\n },\n \"&.italic\": {\n fontStyle: \"italic\"\n },\n \"&.class-name\": t.cyan2,\n \"&.selector\": t.red3,\n \"&.attr-name\": t.red4,\n \"&.property\": t.red4,\n \"&.regex\": t.red4,\n \"&.entity\": t.red4,\n \"&.directive.tag .tag\": {\n background: \"#ffff00\",\n ...t.gray1\n }\n },\n \"language-json .token.boolean\": t.blue1,\n \"language-json .token.number\": t.blue1,\n \"language-json .token.property\": t.cyan2,\n namespace: {\n opacity: 0.7\n }\n };\n}, \"create\");\n\n// src/theming/convert.ts\nvar vo = {\n green1: \"#008000\",\n red1: \"#A31515\",\n red2: \"#9a050f\",\n red3: \"#800000\",\n red4: \"#ff0000\",\n gray1: \"#393A34\",\n cyan1: \"#36acaa\",\n cyan2: \"#2B91AF\",\n blue1: \"#0000ff\",\n blue2: \"#00009f\"\n}, yo = {\n green1: \"#7C7C7C\",\n red1: \"#92C379\",\n red2: \"#9a050f\",\n red3: \"#A8FF60\",\n red4: \"#96CBFE\",\n gray1: \"#EDEDED\",\n cyan1: \"#C6C5FE\",\n cyan2: \"#FFFFB6\",\n blue1: \"#B474DD\",\n blue2: \"#00009f\"\n}, xo = /* @__PURE__ */ o((e) => ({\n // Changeable colors\n primary: e.colorPrimary,\n secondary: e.colorSecondary,\n tertiary: h.tertiary,\n ancillary: h.ancillary,\n // Complimentary\n orange: h.orange,\n gold: h.gold,\n green: h.green,\n seafoam: h.seafoam,\n purple: h.purple,\n ultraviolet: h.ultraviolet,\n // Monochrome\n lightest: h.lightest,\n lighter: h.lighter,\n light: h.light,\n mediumlight: h.mediumlight,\n medium: h.medium,\n mediumdark: h.mediumdark,\n dark: h.dark,\n darker: h.darker,\n darkest: h.darkest,\n // For borders\n border: h.border,\n // Status\n positive: h.positive,\n negative: h.negative,\n warning: h.warning,\n critical: h.critical,\n defaultText: e.textColor || h.darkest,\n inverseText: e.textInverseColor || h.lightest,\n positiveText: h.positiveText,\n negativeText: h.negativeText,\n warningText: h.warningText\n}), \"createColors\"), Ir = /* @__PURE__ */ o((e = Me[Qe()]) => {\n let {\n base: r,\n colorPrimary: t,\n colorSecondary: n,\n appBg: a,\n appContentBg: i,\n appPreviewBg: s,\n appBorderColor: u,\n appBorderRadius: f,\n fontBase: p,\n fontCode: c,\n textColor: l,\n textInverseColor: m,\n barTextColor: x,\n barHoverColor: b,\n barSelectedColor: d,\n barBg: v,\n buttonBg: y,\n buttonBorder: w,\n booleanBg: A,\n booleanSelectedBg: S,\n inputBg: R,\n inputBorder: F,\n inputTextColor: T,\n inputBorderRadius: ue,\n brandTitle: fe,\n brandUrl: G,\n brandImage: Y,\n brandTarget: rr,\n gridCellSize: tr,\n ...nr\n } = e;\n return {\n ...nr,\n base: r,\n color: xo(e),\n background: {\n app: a,\n bar: v,\n content: i,\n preview: s,\n gridCellSize: tr || V.gridCellSize,\n hoverable: V.hoverable,\n positive: V.positive,\n negative: V.negative,\n warning: V.warning,\n critical: V.critical\n },\n typography: {\n fonts: {\n base: p,\n mono: c\n },\n weight: W.weight,\n size: W.size\n },\n animation: Qt,\n easing: Xt,\n input: {\n background: R,\n border: F,\n borderRadius: ue,\n color: T\n },\n button: {\n background: y || R,\n border: w || F\n },\n boolean: {\n background: A || F,\n selectedBackground: S || R\n },\n // UI\n layoutMargin: 10,\n appBorderColor: u,\n appBorderRadius: f,\n // Toolbar default/active colors\n barTextColor: x,\n barHoverColor: b || n,\n barSelectedColor: d || n,\n barBg: v,\n // Brand logo/text\n brand: {\n title: fe,\n url: G,\n image: Y || (fe ? null : void 0),\n target: rr\n },\n code: tn({\n colors: r === \"light\" ? vo : yo,\n mono: c\n }),\n // Addon actions theme\n // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx\n addonActionsTheme: {\n ...r === \"light\" ? rn : en,\n BASE_FONT_FAMILY: c,\n BASE_FONT_SIZE: W.size.s2 - 1,\n BASE_LINE_HEIGHT: \"18px\",\n BASE_BACKGROUND_COLOR: \"transparent\",\n BASE_COLOR: l,\n ARROW_COLOR: Wt(0.2, u),\n ARROW_MARGIN_RIGHT: 4,\n ARROW_FONT_SIZE: 8,\n TREENODE_FONT_FAMILY: c,\n TREENODE_FONT_SIZE: W.size.s2 - 1,\n TREENODE_LINE_HEIGHT: \"18px\",\n TREENODE_PADDING_LEFT: 12\n }\n };\n}, \"convert\");\n\n// src/theming/ensure.ts\nimport { logger as Co } from \"storybook/internal/client-logger\";\n\n// ../node_modules/deep-object-diff/mjs/utils.js\nvar Pr = /* @__PURE__ */ o((e) => Object.keys(e).length === 0, \"isEmpty\"), se = /* @__PURE__ */ o((e) => e != null && typeof e == \"object\", \"\\\nisObject\"), ke = /* @__PURE__ */ o((e, ...r) => Object.prototype.hasOwnProperty.call(e, ...r), \"hasOwnProperty\");\nvar Ne = /* @__PURE__ */ o(() => /* @__PURE__ */ Object.create(null), \"makeObjectWithoutPrototype\");\n\n// ../node_modules/deep-object-diff/mjs/deleted.js\nvar nn = /* @__PURE__ */ o((e, r) => e === r || !se(e) || !se(r) ? {} : Object.keys(e).reduce((t, n) => {\n if (ke(r, n)) {\n let a = nn(e[n], r[n]);\n return se(a) && Pr(a) || (t[n] = a), t;\n }\n return t[n] = void 0, t;\n}, Ne()), \"deletedDiff\"), er = nn;\n\n// ../node_modules/ts-dedent/esm/index.js\nfunction an(e) {\n for (var r = [], t = 1; t < arguments.length; t++)\n r[t - 1] = arguments[t];\n var n = Array.from(typeof e == \"string\" ? [e] : e);\n n[n.length - 1] = n[n.length - 1].replace(/\\r?\\n([\\t ]*)$/, \"\");\n var a = n.reduce(function(u, f) {\n var p = f.match(/\\n([\\t ]+|(?!\\s).)/g);\n return p ? u.concat(p.map(function(c) {\n var l, m;\n return (m = (l = c.match(/[\\t ]/g)) === null || l === void 0 ? void 0 : l.length) !== null && m !== void 0 ? m : 0;\n })) : u;\n }, []);\n if (a.length) {\n var i = new RegExp(`\n[\t ]{` + Math.min.apply(Math, a) + \"}\", \"g\");\n n = n.map(function(u) {\n return u.replace(i, `\n`);\n });\n }\n n[0] = n[0].replace(/^\\r?\\n/, \"\");\n var s = n[0];\n return r.forEach(function(u, f) {\n var p = s.match(/(?:^|\\n)( *)$/), c = p ? p[1] : \"\", l = u;\n typeof u == \"string\" && u.includes(`\n`) && (l = String(u).split(`\n`).map(function(m, x) {\n return x === 0 ? m : \"\" + c + m;\n }).join(`\n`)), s += l + n[f + 1];\n }), s;\n}\no(an, \"dedent\");\n\n// src/theming/ensure.ts\nvar pf = /* @__PURE__ */ o((e) => {\n if (!e)\n return Ir(Ce);\n let r = er(Ce, e);\n return Object.keys(r).length && Co.warn(\n an`\n Your theme is missing properties, you should update your theme!\n\n theme-data missing:\n `,\n r\n ), Ir(e);\n}, \"ensure\");\n\n// src/theming/index.ts\nvar hf = \"/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */\";\nexport {\n Et as CacheProvider,\n ua as ClassNames,\n aa as Global,\n Tt as ThemeProvider,\n V as background,\n h as color,\n Ir as convert,\n hu as create,\n lr as createCache,\n ro as createGlobal,\n Yt as createReset,\n Le as css,\n co as darken,\n pf as ensure,\n hf as ignoreSsrWarning,\n yr as isPropValid,\n vr as jsx,\n Ee as keyframes,\n fo as lighten,\n xr as styled,\n Me as themes,\n W as typography,\n St as useTheme,\n Ct as withTheme\n};\n"],"names":[],"sourceRoot":""}