@remarkablejames/editor 0.0.1

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 (456) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/lib/ActionMenuButton-B0EHT9CC.js +35 -0
  4. package/lib/ActionMenuButton-J1el_e6Z.cjs +1 -0
  5. package/lib/Attachment.cjs +19 -0
  6. package/lib/Attachment.js +273 -0
  7. package/lib/Blockquote.cjs +5 -0
  8. package/lib/Blockquote.js +107 -0
  9. package/lib/Bold.cjs +1 -0
  10. package/lib/Bold.js +123 -0
  11. package/lib/BulletList.cjs +1 -0
  12. package/lib/BulletList.js +53 -0
  13. package/lib/Callout.cjs +1 -0
  14. package/lib/Callout.js +225 -0
  15. package/lib/Clear.cjs +1 -0
  16. package/lib/Clear.js +49 -0
  17. package/lib/Code.cjs +1 -0
  18. package/lib/Code.js +100 -0
  19. package/lib/CodeBlock.cjs +44 -0
  20. package/lib/CodeBlock.js +4065 -0
  21. package/lib/CodeView.cjs +1 -0
  22. package/lib/CodeView.js +81 -0
  23. package/lib/Color.cjs +1 -0
  24. package/lib/Color.js +134 -0
  25. package/lib/Column.cjs +1 -0
  26. package/lib/Column.js +230 -0
  27. package/lib/Drawer-BCWVN-4l.js +1125 -0
  28. package/lib/Drawer-BTouEroZ.cjs +2 -0
  29. package/lib/Drawer.cjs +1 -0
  30. package/lib/Drawer.js +7 -0
  31. package/lib/Emoji.cjs +1 -0
  32. package/lib/Emoji.js +19888 -0
  33. package/lib/Excalidraw.cjs +1 -0
  34. package/lib/Excalidraw.js +276 -0
  35. package/lib/ExportPdf.cjs +39 -0
  36. package/lib/ExportPdf.js +142 -0
  37. package/lib/ExportWord.cjs +1 -0
  38. package/lib/ExportWord.js +107 -0
  39. package/lib/FontFamily.cjs +1 -0
  40. package/lib/FontFamily.js +84 -0
  41. package/lib/FontSize.cjs +1 -0
  42. package/lib/FontSize.js +106 -0
  43. package/lib/Heading.cjs +1 -0
  44. package/lib/Heading.js +167 -0
  45. package/lib/Highlight.cjs +1 -0
  46. package/lib/Highlight.js +203 -0
  47. package/lib/History.cjs +1 -0
  48. package/lib/History.js +990 -0
  49. package/lib/HorizontalRule.cjs +1 -0
  50. package/lib/HorizontalRule.js +118 -0
  51. package/lib/Iframe-BdgiWGml.js +416 -0
  52. package/lib/Iframe-BfBLILDA.cjs +1 -0
  53. package/lib/Iframe.cjs +1 -0
  54. package/lib/Iframe.js +7 -0
  55. package/lib/Image.cjs +1 -0
  56. package/lib/Image.js +6 -0
  57. package/lib/ImageGif.cjs +1 -0
  58. package/lib/ImageGif.js +400 -0
  59. package/lib/ImportWord.cjs +1 -0
  60. package/lib/ImportWord.js +145 -0
  61. package/lib/Indent-BpMcZKok.js +148 -0
  62. package/lib/Indent-Dvqz_WEn.cjs +1 -0
  63. package/lib/Indent.cjs +1 -0
  64. package/lib/Indent.js +6 -0
  65. package/lib/Italic.cjs +1 -0
  66. package/lib/Italic.js +123 -0
  67. package/lib/Katex-B8_uprkO.js +2753 -0
  68. package/lib/Katex-BQyeCeQ0.cjs +4 -0
  69. package/lib/Katex.cjs +1 -0
  70. package/lib/Katex.js +6 -0
  71. package/lib/LineHeight.cjs +1 -0
  72. package/lib/LineHeight.js +89 -0
  73. package/lib/Link.cjs +1 -0
  74. package/lib/Link.js +6 -0
  75. package/lib/LinkEditBlock-BX0fXXpF.js +1185 -0
  76. package/lib/LinkEditBlock-CIshn_8F.cjs +5 -0
  77. package/lib/Mention.cjs +1 -0
  78. package/lib/Mention.js +265 -0
  79. package/lib/Mermaid-0GiGVxn0.cjs +2 -0
  80. package/lib/Mermaid-D8bbIgAl.js +381 -0
  81. package/lib/Mermaid.cjs +1 -0
  82. package/lib/Mermaid.js +7 -0
  83. package/lib/MoreMark.cjs +1 -0
  84. package/lib/MoreMark.js +157 -0
  85. package/lib/OrderedList.cjs +1 -0
  86. package/lib/OrderedList.js +52 -0
  87. package/lib/SearchAndReplace.cjs +1 -0
  88. package/lib/SearchAndReplace.js +305 -0
  89. package/lib/SlashCommand.cjs +1 -0
  90. package/lib/SlashCommand.js +90 -0
  91. package/lib/SlashCommandNodeView-BcmtKbEE.js +249 -0
  92. package/lib/SlashCommandNodeView-rDJ7OjRd.cjs +1 -0
  93. package/lib/Strike.cjs +1 -0
  94. package/lib/Strike.js +112 -0
  95. package/lib/Table-BEhNBeuA.cjs +5 -0
  96. package/lib/Table-DbxuP5xh.js +1939 -0
  97. package/lib/Table.cjs +1 -0
  98. package/lib/Table.js +5 -0
  99. package/lib/TaskList.cjs +1 -0
  100. package/lib/TaskList.js +63 -0
  101. package/lib/TextAlign.cjs +1 -0
  102. package/lib/TextAlign.js +165 -0
  103. package/lib/TextDirection.cjs +1 -0
  104. package/lib/TextDirection.js +110 -0
  105. package/lib/TextUnderline.cjs +1 -0
  106. package/lib/TextUnderline.js +115 -0
  107. package/lib/Twitter-9I6BLNmg.js +1666 -0
  108. package/lib/Twitter-BuEBgpi9.cjs +1 -0
  109. package/lib/Twitter.cjs +1 -0
  110. package/lib/Twitter.js +6 -0
  111. package/lib/Video.cjs +1 -0
  112. package/lib/Video.js +7 -0
  113. package/lib/bubble.cjs +3 -0
  114. package/lib/bubble.d.ts +1 -0
  115. package/lib/bubble.js +9533 -0
  116. package/lib/clsx-CDyrfCnw.js +7391 -0
  117. package/lib/clsx-CXbNJWDD.cjs +54 -0
  118. package/lib/components/ActionButton.d.ts +23 -0
  119. package/lib/components/ActionMenuButton.d.ts +28 -0
  120. package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -0
  121. package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -0
  122. package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -0
  123. package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -0
  124. package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -0
  125. package/lib/components/Bubble/RichTextBubbleKatex.d.ts +1 -0
  126. package/lib/components/Bubble/RichTextBubbleLink.d.ts +6 -0
  127. package/lib/components/Bubble/RichTextBubbleMedia.d.ts +4 -0
  128. package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +1 -0
  129. package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -0
  130. package/lib/components/Bubble/RichTextBubbleTable.d.ts +5 -0
  131. package/lib/components/Bubble/RichTextBubbleText.d.ts +5 -0
  132. package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -0
  133. package/lib/components/Bubble/formatBubble.d.ts +55 -0
  134. package/lib/components/Bubble/index.d.ts +13 -0
  135. package/lib/components/ColorPicker.d.ts +11 -0
  136. package/lib/components/ReactBus.d.ts +11 -0
  137. package/lib/components/RichTextProvider.d.ts +8 -0
  138. package/lib/components/SizeSetter/SizeSetter.d.ts +13 -0
  139. package/lib/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +1 -0
  140. package/lib/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +1 -0
  141. package/lib/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +5 -0
  142. package/lib/components/icons/Activity.d.ts +2 -0
  143. package/lib/components/icons/Animas.d.ts +2 -0
  144. package/lib/components/icons/AspectRatio.d.ts +2 -0
  145. package/lib/components/icons/Blockquote.d.ts +2 -0
  146. package/lib/components/icons/CodeView.d.ts +1 -0
  147. package/lib/components/icons/ColumnAddLeft.d.ts +1 -0
  148. package/lib/components/icons/ColumnAddRight.d.ts +1 -0
  149. package/lib/components/icons/DeleteColumn.d.ts +2 -0
  150. package/lib/components/icons/DeleteRow.d.ts +2 -0
  151. package/lib/components/icons/Direction.d.ts +1 -0
  152. package/lib/components/icons/Excalidraw.d.ts +1 -0
  153. package/lib/components/icons/ExportPdf.d.ts +1 -0
  154. package/lib/components/icons/ExportWord.d.ts +2 -0
  155. package/lib/components/icons/FileWordOutline.d.ts +2 -0
  156. package/lib/components/icons/Flag.d.ts +2 -0
  157. package/lib/components/icons/Food.d.ts +2 -0
  158. package/lib/components/icons/GIfIcon.d.ts +1 -0
  159. package/lib/components/icons/Html.d.ts +1 -0
  160. package/lib/components/icons/Icon.d.ts +8 -0
  161. package/lib/components/icons/IconColorFill.d.ts +5 -0
  162. package/lib/components/icons/IconHighlightFill.d.ts +3 -0
  163. package/lib/components/icons/ImportWord.d.ts +2 -0
  164. package/lib/components/icons/LeftToRight.d.ts +1 -0
  165. package/lib/components/icons/LineHeight.d.ts +2 -0
  166. package/lib/components/icons/MenuDown.d.ts +2 -0
  167. package/lib/components/icons/Mermaid.d.ts +1 -0
  168. package/lib/components/icons/NoFill.d.ts +1 -0
  169. package/lib/components/icons/Object.d.ts +2 -0
  170. package/lib/components/icons/RightToLeft.d.ts +1 -0
  171. package/lib/components/icons/SizeL.d.ts +2 -0
  172. package/lib/components/icons/SizeM.d.ts +2 -0
  173. package/lib/components/icons/SizeS.d.ts +2 -0
  174. package/lib/components/icons/Symbol.d.ts +2 -0
  175. package/lib/components/icons/Travel.d.ts +2 -0
  176. package/lib/components/icons/Twitter.d.ts +1 -0
  177. package/lib/components/icons/icons.d.ts +1 -0
  178. package/lib/components/icons/index.d.ts +12 -0
  179. package/lib/components/index.d.ts +6 -0
  180. package/lib/components/ui/button.d.ts +11 -0
  181. package/lib/components/ui/checkbox.d.ts +4 -0
  182. package/lib/components/ui/dialog.d.ts +19 -0
  183. package/lib/components/ui/dropdown-menu.d.ts +27 -0
  184. package/lib/components/ui/emoji-picker.d.ts +7 -0
  185. package/lib/components/ui/index.d.ts +15 -0
  186. package/lib/components/ui/input.d.ts +5 -0
  187. package/lib/components/ui/label.d.ts +5 -0
  188. package/lib/components/ui/popover.d.ts +6 -0
  189. package/lib/components/ui/select.d.ts +13 -0
  190. package/lib/components/ui/separator.d.ts +4 -0
  191. package/lib/components/ui/switch.d.ts +4 -0
  192. package/lib/components/ui/tabs.d.ts +7 -0
  193. package/lib/components/ui/textarea.d.ts +5 -0
  194. package/lib/components/ui/toast.d.ts +15 -0
  195. package/lib/components/ui/toaster.d.ts +1 -0
  196. package/lib/components/ui/toggle.d.ts +12 -0
  197. package/lib/components/ui/tooltip.d.ts +7 -0
  198. package/lib/components/ui/use-toast.d.ts +44 -0
  199. package/lib/constants/index.d.ts +47 -0
  200. package/lib/constants/resetCSS.d.ts +1 -0
  201. package/lib/delete-node-CosiBes5.cjs +1 -0
  202. package/lib/delete-node-eQHsyyhR.js +24 -0
  203. package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
  204. package/lib/dom-dataset-CIEeltF6.js +47 -0
  205. package/lib/dropdown-menu-Bs69ZBbO.js +143 -0
  206. package/lib/dropdown-menu-DjWlG2-J.cjs +1 -0
  207. package/lib/extensions/Attachment/Attachment.d.ts +15 -0
  208. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -0
  209. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIconString.d.ts +1 -0
  210. package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -0
  211. package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -0
  212. package/lib/extensions/Attachment/index.d.ts +1 -0
  213. package/lib/extensions/Blockquote/Blockquote.d.ts +6 -0
  214. package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -0
  215. package/lib/extensions/Blockquote/index.d.ts +1 -0
  216. package/lib/extensions/Bold/Bold.d.ts +6 -0
  217. package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -0
  218. package/lib/extensions/Bold/index.d.ts +1 -0
  219. package/lib/extensions/BulletList/BulletList.d.ts +6 -0
  220. package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -0
  221. package/lib/extensions/BulletList/index.d.ts +1 -0
  222. package/lib/extensions/Callout/Callout.d.ts +18 -0
  223. package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -0
  224. package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -0
  225. package/lib/extensions/Callout/index.d.ts +1 -0
  226. package/lib/extensions/Clear/Clear.d.ts +6 -0
  227. package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -0
  228. package/lib/extensions/Clear/index.d.ts +1 -0
  229. package/lib/extensions/Code/Code.d.ts +6 -0
  230. package/lib/extensions/Code/components/RichTextCode.d.ts +1 -0
  231. package/lib/extensions/Code/index.d.ts +1 -0
  232. package/lib/extensions/CodeBlock/CodeBlock.d.ts +21 -0
  233. package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +1 -0
  234. package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +1 -0
  235. package/lib/extensions/CodeBlock/index.d.ts +1 -0
  236. package/lib/extensions/CodeView/CodeView.d.ts +17 -0
  237. package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -0
  238. package/lib/extensions/CodeView/index.d.ts +1 -0
  239. package/lib/extensions/Color/Color.d.ts +22 -0
  240. package/lib/extensions/Color/components/RichTextColor.d.ts +1 -0
  241. package/lib/extensions/Color/index.d.ts +1 -0
  242. package/lib/extensions/Column/Column.d.ts +17 -0
  243. package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -0
  244. package/lib/extensions/Column/index.d.ts +1 -0
  245. package/lib/extensions/Drawer/Drawer.d.ts +15 -0
  246. package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -0
  247. package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +28 -0
  248. package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -0
  249. package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +1 -0
  250. package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -0
  251. package/lib/extensions/Drawer/index.d.ts +1 -0
  252. package/lib/extensions/Emoji/Emoji.d.ts +5 -0
  253. package/lib/extensions/Emoji/components/EmojiList/EmojiNodeView.d.ts +11 -0
  254. package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +1 -0
  255. package/lib/extensions/Emoji/index.d.ts +1 -0
  256. package/lib/extensions/Excalidraw/Excalidraw.d.ts +17 -0
  257. package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -0
  258. package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -0
  259. package/lib/extensions/Excalidraw/index.d.ts +1 -0
  260. package/lib/extensions/ExportPdf/ExportPdf.d.ts +21 -0
  261. package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -0
  262. package/lib/extensions/ExportPdf/index.d.ts +1 -0
  263. package/lib/extensions/ExportWord/ExportWord.d.ts +13 -0
  264. package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -0
  265. package/lib/extensions/ExportWord/index.d.ts +1 -0
  266. package/lib/extensions/FontFamily/FontFamily.d.ts +10 -0
  267. package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +15 -0
  268. package/lib/extensions/FontFamily/index.d.ts +1 -0
  269. package/lib/extensions/FontSize/FontSize.d.ts +32 -0
  270. package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +12 -0
  271. package/lib/extensions/FontSize/index.d.ts +1 -0
  272. package/lib/extensions/Heading/Heading.d.ts +6 -0
  273. package/lib/extensions/Heading/components/RichTextHeading.d.ts +15 -0
  274. package/lib/extensions/Heading/index.d.ts +1 -0
  275. package/lib/extensions/Highlight/Highlight.d.ts +18 -0
  276. package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +1 -0
  277. package/lib/extensions/Highlight/index.d.ts +1 -0
  278. package/lib/extensions/History/History.d.ts +6 -0
  279. package/lib/extensions/History/components/RichTextHistory.d.ts +2 -0
  280. package/lib/extensions/History/index.d.ts +1 -0
  281. package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
  282. package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -0
  283. package/lib/extensions/HorizontalRule/index.d.ts +1 -0
  284. package/lib/extensions/Iframe/Iframe.d.ts +16 -0
  285. package/lib/extensions/Iframe/components/IframeNodeView.d.ts +2 -0
  286. package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -0
  287. package/lib/extensions/Iframe/index.d.ts +1 -0
  288. package/lib/extensions/Iframe/utils.d.ts +9 -0
  289. package/lib/extensions/Image/Image.d.ts +64 -0
  290. package/lib/extensions/Image/components/ImageCropper.d.ts +1 -0
  291. package/lib/extensions/Image/components/ImageView.d.ts +2 -0
  292. package/lib/extensions/Image/components/RichTextImage.d.ts +1 -0
  293. package/lib/extensions/Image/index.d.ts +1 -0
  294. package/lib/extensions/ImageGif/ImageGif.d.ts +39 -0
  295. package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -0
  296. package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +1 -0
  297. package/lib/extensions/ImageGif/components/services.d.ts +458 -0
  298. package/lib/extensions/ImageGif/index.d.ts +1 -0
  299. package/lib/extensions/ImportWord/ImportWord.d.ts +18 -0
  300. package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -0
  301. package/lib/extensions/ImportWord/index.d.ts +1 -0
  302. package/lib/extensions/Indent/Indent.d.ts +23 -0
  303. package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -0
  304. package/lib/extensions/Indent/index.d.ts +1 -0
  305. package/lib/extensions/Italic/Italic.d.ts +6 -0
  306. package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -0
  307. package/lib/extensions/Italic/index.d.ts +1 -0
  308. package/lib/extensions/Katex/Katex.d.ts +17 -0
  309. package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -0
  310. package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -0
  311. package/lib/extensions/Katex/index.d.ts +1 -0
  312. package/lib/extensions/LineHeight/LineHeight.d.ts +7 -0
  313. package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -0
  314. package/lib/extensions/LineHeight/index.d.ts +1 -0
  315. package/lib/extensions/Link/Link.d.ts +6 -0
  316. package/lib/extensions/Link/components/LinkEditBlock.d.ts +9 -0
  317. package/lib/extensions/Link/components/LinkViewBlock.d.ts +8 -0
  318. package/lib/extensions/Link/components/RichTextLink.d.ts +1 -0
  319. package/lib/extensions/Link/index.d.ts +1 -0
  320. package/lib/extensions/Mention/Mention.d.ts +3 -0
  321. package/lib/extensions/Mention/components/NodeViewMentionList.d.ts +16 -0
  322. package/lib/extensions/Mention/index.d.ts +1 -0
  323. package/lib/extensions/Mermaid/Mermaid.d.ts +27 -0
  324. package/lib/extensions/Mermaid/components/EditMermaidBlock.d.ts +9 -0
  325. package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +9 -0
  326. package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -0
  327. package/lib/extensions/Mermaid/index.d.ts +1 -0
  328. package/lib/extensions/MoreMark/MoreMark.d.ts +20 -0
  329. package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +14 -0
  330. package/lib/extensions/MoreMark/index.d.ts +1 -0
  331. package/lib/extensions/OrderedList/OrderedList.d.ts +6 -0
  332. package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -0
  333. package/lib/extensions/OrderedList/index.d.ts +1 -0
  334. package/lib/extensions/SearchAndReplace/SearchAndReplace.d.ts +36 -0
  335. package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -0
  336. package/lib/extensions/SearchAndReplace/index.d.ts +1 -0
  337. package/lib/extensions/SlashCommand/SlashCommand.d.ts +4 -0
  338. package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +6 -0
  339. package/lib/extensions/SlashCommand/components/SlashCommandNodeView.d.ts +3 -0
  340. package/lib/extensions/SlashCommand/index.d.ts +1 -0
  341. package/lib/extensions/SlashCommand/renderCommandListDefault.d.ts +7 -0
  342. package/lib/extensions/SlashCommand/types.d.ts +20 -0
  343. package/lib/extensions/Strike/Strike.d.ts +6 -0
  344. package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -0
  345. package/lib/extensions/Strike/index.d.ts +1 -0
  346. package/lib/extensions/Table/Table.d.ts +21 -0
  347. package/lib/extensions/Table/TableCellBackground.d.ts +14 -0
  348. package/lib/extensions/Table/components/CreateTablePopover.d.ts +7 -0
  349. package/lib/extensions/Table/components/RichTextTable.d.ts +1 -0
  350. package/lib/extensions/Table/index.d.ts +1 -0
  351. package/lib/extensions/TaskList/TaskList.d.ts +11 -0
  352. package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -0
  353. package/lib/extensions/TaskList/index.d.ts +1 -0
  354. package/lib/extensions/TextAlign/TextAlign.d.ts +17 -0
  355. package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +14 -0
  356. package/lib/extensions/TextAlign/index.d.ts +1 -0
  357. package/lib/extensions/TextDirection/TextDirection.d.ts +5 -0
  358. package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +15 -0
  359. package/lib/extensions/TextDirection/index.d.ts +1 -0
  360. package/lib/extensions/TextUnderline/TextUnderline.d.ts +6 -0
  361. package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -0
  362. package/lib/extensions/TextUnderline/index.d.ts +1 -0
  363. package/lib/extensions/Twitter/Twitter.d.ts +46 -0
  364. package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +6 -0
  365. package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +8 -0
  366. package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -0
  367. package/lib/extensions/Twitter/index.d.ts +1 -0
  368. package/lib/extensions/Video/Video.d.ts +66 -0
  369. package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -0
  370. package/lib/extensions/Video/index.d.ts +1 -0
  371. package/lib/hooks/useActive.d.ts +21 -0
  372. package/lib/hooks/useAttributes.d.ts +2 -0
  373. package/lib/hooks/useButtonProps.d.ts +1 -0
  374. package/lib/hooks/useCopy.d.ts +5 -0
  375. package/lib/hooks/useExtension.d.ts +1 -0
  376. package/lib/hooks/useLocalStorage.d.ts +13 -0
  377. package/lib/index-4Q5IhypJ.js +1349 -0
  378. package/lib/index-BCzvbrf5.cjs +12 -0
  379. package/lib/index-BG0kQamI.js +285 -0
  380. package/lib/index-C-tDsIKJ.js +1631 -0
  381. package/lib/index-C1WCZhyA.js +237 -0
  382. package/lib/index-CjhjjJsN.cjs +1 -0
  383. package/lib/index-Cs6cp0Y6.cjs +1 -0
  384. package/lib/index-CsSfYR30.js +1351 -0
  385. package/lib/index-D9oM__YW.cjs +1 -0
  386. package/lib/index-DjDf4BK8.js +707 -0
  387. package/lib/index-NsYff_Ni.cjs +1 -0
  388. package/lib/index-bVGIXhRg.cjs +1 -0
  389. package/lib/index-lj3VWExo.js +4883 -0
  390. package/lib/index-neeeY2o7.cjs +4 -0
  391. package/lib/index.cjs +115 -0
  392. package/lib/index.d.ts +2 -0
  393. package/lib/index.js +338 -0
  394. package/lib/jsx-runtime-CT7Pcg-t.js +13 -0
  395. package/lib/jsx-runtime-C_NLcKys.cjs +1 -0
  396. package/lib/lib/utils.d.ts +2 -0
  397. package/lib/locale-bundle.cjs +1 -0
  398. package/lib/locale-bundle.d.ts +1 -0
  399. package/lib/locale-bundle.js +11 -0
  400. package/lib/locales/en.d.ts +196 -0
  401. package/lib/locales/fi.d.ts +196 -0
  402. package/lib/locales/hu.d.ts +196 -0
  403. package/lib/locales/index.d.ts +1198 -0
  404. package/lib/locales/pt-br.d.ts +196 -0
  405. package/lib/locales/vi.d.ts +196 -0
  406. package/lib/locales/zh-cn.d.ts +196 -0
  407. package/lib/plugins/image-upload.d.ts +13 -0
  408. package/lib/popover-CPr9bHYn.js +24 -0
  409. package/lib/popover-D-hUKDYu.cjs +1 -0
  410. package/lib/renderNodeView-BJSrgyGj.js +28 -0
  411. package/lib/renderNodeView-DfLmGrgA.cjs +1 -0
  412. package/lib/select-C2KF4RNg.cjs +1 -0
  413. package/lib/select-CuE_HaQJ.js +120 -0
  414. package/lib/separator-CHzYNMVt.js +293 -0
  415. package/lib/separator-_gvUNba_.cjs +1 -0
  416. package/lib/store/EditorEditableReactive.d.ts +1 -0
  417. package/lib/store/ThemeColorReactive.d.ts +1 -0
  418. package/lib/store/commandList.d.ts +2 -0
  419. package/lib/store/editor.d.ts +21 -0
  420. package/lib/store/store.d.ts +3 -0
  421. package/lib/style.css +1 -0
  422. package/lib/textarea-DZj6EY-N.cjs +1 -0
  423. package/lib/textarea-gEoNp9CA.js +20 -0
  424. package/lib/theme/theme.d.ts +369 -0
  425. package/lib/theme.cjs +1 -0
  426. package/lib/theme.js +395 -0
  427. package/lib/types.d.ts +230 -0
  428. package/lib/updatePosition-Cjuj2E26.cjs +1 -0
  429. package/lib/updatePosition-e90ZrFWW.js +16 -0
  430. package/lib/utils/base64.d.ts +2 -0
  431. package/lib/utils/checkIsVideoUrl.d.ts +1 -0
  432. package/lib/utils/color.d.ts +7 -0
  433. package/lib/utils/columns.d.ts +14 -0
  434. package/lib/utils/customEvents/events.constant.d.ts +6 -0
  435. package/lib/utils/delete-node.d.ts +2 -0
  436. package/lib/utils/dom-dataset.d.ts +28 -0
  437. package/lib/utils/download.d.ts +1 -0
  438. package/lib/utils/dynamicCSS.d.ts +25 -0
  439. package/lib/utils/editor-container-size.d.ts +4 -0
  440. package/lib/utils/file.d.ts +30 -0
  441. package/lib/utils/getRenderContainer.d.ts +3 -0
  442. package/lib/utils/indent.d.ts +14 -0
  443. package/lib/utils/is-mobile.d.ts +19 -0
  444. package/lib/utils/json.d.ts +2 -0
  445. package/lib/utils/lru-cache.d.ts +31 -0
  446. package/lib/utils/mitt.d.ts +24 -0
  447. package/lib/utils/node.d.ts +15 -0
  448. package/lib/utils/pdf.d.ts +3 -0
  449. package/lib/utils/plateform.d.ts +11 -0
  450. package/lib/utils/renderNodeView.d.ts +6 -0
  451. package/lib/utils/shortId.d.ts +1 -0
  452. package/lib/utils/storage.d.ts +2 -0
  453. package/lib/utils/updatePosition.d.ts +1 -0
  454. package/lib/utils/utils.d.ts +20 -0
  455. package/lib/utils/validateFile.d.ts +16 -0
  456. package/package.json +845 -0
@@ -0,0 +1,2753 @@
1
+ import { h as Po, N as Io, k as Ro, n as $o, m as Eo } from "./clsx-CDyrfCnw.js";
2
+ import { jsx as er, jsxs as Nr } from "react/jsx-runtime";
3
+ import Xa from "katex";
4
+ import { useState as Ur, useRef as xo, useEffect as Bo, useMemo as Hr, useCallback as To } from "react";
5
+ import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un, p as ko, B as Lo } from "./index-lj3VWExo.js";
6
+ import "./theme.js";
7
+ import { T as fn } from "./textarea-gEoNp9CA.js";
8
+ import { u as Uo } from "./index-4Q5IhypJ.js";
9
+ var Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
+ function Ho(r) {
11
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
12
+ }
13
+ function Go(r) {
14
+ if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
15
+ var e = r.default;
16
+ if (typeof e == "function") {
17
+ var n = function a() {
18
+ return this instanceof a ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
19
+ };
20
+ n.prototype = e.prototype;
21
+ } else n = {};
22
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
23
+ var t = Object.getOwnPropertyDescriptor(r, a);
24
+ Object.defineProperty(n, a, t.get ? t : {
25
+ enumerable: !0,
26
+ get: function() {
27
+ return r[a];
28
+ }
29
+ });
30
+ }), n;
31
+ }
32
+ var ae, sn;
33
+ function Qa() {
34
+ if (sn) return ae;
35
+ sn = 1;
36
+ var r = Object.prototype.toString;
37
+ return ae = function(n) {
38
+ var a = r.call(n), t = a === "[object Arguments]";
39
+ return t || (t = a !== "[object Array]" && n !== null && typeof n == "object" && typeof n.length == "number" && n.length >= 0 && r.call(n.callee) === "[object Function]"), t;
40
+ }, ae;
41
+ }
42
+ var oe, ln;
43
+ function zo() {
44
+ if (ln) return oe;
45
+ ln = 1;
46
+ var r;
47
+ if (!Object.keys) {
48
+ var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, a = Qa(), t = Object.prototype.propertyIsEnumerable, f = !t.call({ toString: null }, "toString"), i = t.call(function() {
49
+ }, "prototype"), o = [
50
+ "toString",
51
+ "toLocaleString",
52
+ "valueOf",
53
+ "hasOwnProperty",
54
+ "isPrototypeOf",
55
+ "propertyIsEnumerable",
56
+ "constructor"
57
+ ], u = function(y) {
58
+ var h = y.constructor;
59
+ return h && h.prototype === y;
60
+ }, c = {
61
+ $applicationCache: !0,
62
+ $console: !0,
63
+ $external: !0,
64
+ $frame: !0,
65
+ $frameElement: !0,
66
+ $frames: !0,
67
+ $innerHeight: !0,
68
+ $innerWidth: !0,
69
+ $onmozfullscreenchange: !0,
70
+ $onmozfullscreenerror: !0,
71
+ $outerHeight: !0,
72
+ $outerWidth: !0,
73
+ $pageXOffset: !0,
74
+ $pageYOffset: !0,
75
+ $parent: !0,
76
+ $scrollLeft: !0,
77
+ $scrollTop: !0,
78
+ $scrollX: !0,
79
+ $scrollY: !0,
80
+ $self: !0,
81
+ $webkitIndexedDB: !0,
82
+ $webkitStorageInfo: !0,
83
+ $window: !0
84
+ }, v = (function() {
85
+ if (typeof window > "u")
86
+ return !1;
87
+ for (var y in window)
88
+ try {
89
+ if (!c["$" + y] && e.call(window, y) && window[y] !== null && typeof window[y] == "object")
90
+ try {
91
+ u(window[y]);
92
+ } catch {
93
+ return !0;
94
+ }
95
+ } catch {
96
+ return !0;
97
+ }
98
+ return !1;
99
+ })(), p = function(y) {
100
+ if (typeof window > "u" || !v)
101
+ return u(y);
102
+ try {
103
+ return u(y);
104
+ } catch {
105
+ return !1;
106
+ }
107
+ };
108
+ r = function(h) {
109
+ var S = h !== null && typeof h == "object", R = n.call(h) === "[object Function]", w = a(h), q = S && n.call(h) === "[object String]", O = [];
110
+ if (!S && !R && !w)
111
+ throw new TypeError("Object.keys called on a non-object");
112
+ var m = i && R;
113
+ if (q && h.length > 0 && !e.call(h, 0))
114
+ for (var T = 0; T < h.length; ++T)
115
+ O.push(String(T));
116
+ if (w && h.length > 0)
117
+ for (var X = 0; X < h.length; ++X)
118
+ O.push(String(X));
119
+ else
120
+ for (var H in h)
121
+ !(m && H === "prototype") && e.call(h, H) && O.push(String(H));
122
+ if (f)
123
+ for (var F = p(h), D = 0; D < o.length; ++D)
124
+ !(F && o[D] === "constructor") && e.call(h, o[D]) && O.push(o[D]);
125
+ return O;
126
+ };
127
+ }
128
+ return oe = r, oe;
129
+ }
130
+ var ie, cn;
131
+ function Wt() {
132
+ if (cn) return ie;
133
+ cn = 1;
134
+ var r = Array.prototype.slice, e = Qa(), n = Object.keys, a = n ? function(i) {
135
+ return n(i);
136
+ } : zo(), t = Object.keys;
137
+ return a.shim = function() {
138
+ if (Object.keys) {
139
+ var i = (function() {
140
+ var o = Object.keys(arguments);
141
+ return o && o.length === arguments.length;
142
+ })(1, 2);
143
+ i || (Object.keys = function(u) {
144
+ return e(u) ? t(r.call(u)) : t(u);
145
+ });
146
+ } else
147
+ Object.keys = a;
148
+ return Object.keys || a;
149
+ }, ie = a, ie;
150
+ }
151
+ var ue, pn;
152
+ function zr() {
153
+ if (pn) return ue;
154
+ pn = 1;
155
+ var r = Object.defineProperty || !1;
156
+ if (r)
157
+ try {
158
+ r({}, "a", { value: 1 });
159
+ } catch {
160
+ r = !1;
161
+ }
162
+ return ue = r, ue;
163
+ }
164
+ var fe, yn;
165
+ function kt() {
166
+ return yn || (yn = 1, fe = SyntaxError), fe;
167
+ }
168
+ var se, vn;
169
+ function nr() {
170
+ return vn || (vn = 1, se = TypeError), se;
171
+ }
172
+ var le, gn;
173
+ function Vo() {
174
+ return gn || (gn = 1, le = Object.getOwnPropertyDescriptor), le;
175
+ }
176
+ var ce, hn;
177
+ function Or() {
178
+ if (hn) return ce;
179
+ hn = 1;
180
+ var r = /* @__PURE__ */ Vo();
181
+ if (r)
182
+ try {
183
+ r([], "length");
184
+ } catch {
185
+ r = null;
186
+ }
187
+ return ce = r, ce;
188
+ }
189
+ var pe, dn;
190
+ function Lt() {
191
+ if (dn) return pe;
192
+ dn = 1;
193
+ var r = /* @__PURE__ */ zr(), e = /* @__PURE__ */ kt(), n = /* @__PURE__ */ nr(), a = /* @__PURE__ */ Or();
194
+ return pe = function(f, i, o) {
195
+ if (!f || typeof f != "object" && typeof f != "function")
196
+ throw new n("`obj` must be an object or a function`");
197
+ if (typeof i != "string" && typeof i != "symbol")
198
+ throw new n("`property` must be a string or a symbol`");
199
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
200
+ throw new n("`nonEnumerable`, if provided, must be a boolean or null");
201
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
202
+ throw new n("`nonWritable`, if provided, must be a boolean or null");
203
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
204
+ throw new n("`nonConfigurable`, if provided, must be a boolean or null");
205
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
206
+ throw new n("`loose`, if provided, must be a boolean");
207
+ var u = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, v = arguments.length > 5 ? arguments[5] : null, p = arguments.length > 6 ? arguments[6] : !1, y = !!a && a(f, i);
208
+ if (r)
209
+ r(f, i, {
210
+ configurable: v === null && y ? y.configurable : !v,
211
+ enumerable: u === null && y ? y.enumerable : !u,
212
+ value: o,
213
+ writable: c === null && y ? y.writable : !c
214
+ });
215
+ else if (p || !u && !c && !v)
216
+ f[i] = o;
217
+ else
218
+ throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
219
+ }, pe;
220
+ }
221
+ var ye, mn;
222
+ function Ut() {
223
+ if (mn) return ye;
224
+ mn = 1;
225
+ var r = /* @__PURE__ */ zr(), e = function() {
226
+ return !!r;
227
+ };
228
+ return e.hasArrayLengthDefineBug = function() {
229
+ if (!r)
230
+ return null;
231
+ try {
232
+ return r([], "length", { value: 1 }).length !== 1;
233
+ } catch {
234
+ return !0;
235
+ }
236
+ }, ye = e, ye;
237
+ }
238
+ var ve, Sn;
239
+ function wr() {
240
+ if (Sn) return ve;
241
+ Sn = 1;
242
+ var r = Wt(), e = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", n = Object.prototype.toString, a = Array.prototype.concat, t = /* @__PURE__ */ Lt(), f = function(c) {
243
+ return typeof c == "function" && n.call(c) === "[object Function]";
244
+ }, i = /* @__PURE__ */ Ut()(), o = function(c, v, p, y) {
245
+ if (v in c) {
246
+ if (y === !0) {
247
+ if (c[v] === p)
248
+ return;
249
+ } else if (!f(y) || !y())
250
+ return;
251
+ }
252
+ i ? t(c, v, p, !0) : t(c, v, p);
253
+ }, u = function(c, v) {
254
+ var p = arguments.length > 2 ? arguments[2] : {}, y = r(v);
255
+ e && (y = a.call(y, Object.getOwnPropertySymbols(v)));
256
+ for (var h = 0; h < y.length; h += 1)
257
+ o(c, y[h], v[y[h]], p[y[h]]);
258
+ };
259
+ return u.supportsDescriptors = !!i, ve = u, ve;
260
+ }
261
+ var ge = { exports: {} }, he, bn;
262
+ function Ht() {
263
+ return bn || (bn = 1, he = Object), he;
264
+ }
265
+ var de, An;
266
+ function Za() {
267
+ return An || (An = 1, de = Error), de;
268
+ }
269
+ var me, On;
270
+ function Ko() {
271
+ return On || (On = 1, me = EvalError), me;
272
+ }
273
+ var Se, wn;
274
+ function Jo() {
275
+ return wn || (wn = 1, Se = RangeError), Se;
276
+ }
277
+ var be, qn;
278
+ function Yo() {
279
+ return qn || (qn = 1, be = ReferenceError), be;
280
+ }
281
+ var Ae, Pn;
282
+ function Xo() {
283
+ return Pn || (Pn = 1, Ae = URIError), Ae;
284
+ }
285
+ var Oe, In;
286
+ function Qo() {
287
+ return In || (In = 1, Oe = Math.abs), Oe;
288
+ }
289
+ var we, Rn;
290
+ function Zo() {
291
+ return Rn || (Rn = 1, we = Math.floor), we;
292
+ }
293
+ var qe, $n;
294
+ function ri() {
295
+ return $n || ($n = 1, qe = Math.max), qe;
296
+ }
297
+ var Pe, En;
298
+ function ei() {
299
+ return En || (En = 1, Pe = Math.min), Pe;
300
+ }
301
+ var Ie, xn;
302
+ function ti() {
303
+ return xn || (xn = 1, Ie = Math.pow), Ie;
304
+ }
305
+ var Re, Bn;
306
+ function ni() {
307
+ return Bn || (Bn = 1, Re = Math.round), Re;
308
+ }
309
+ var $e, Tn;
310
+ function ai() {
311
+ return Tn || (Tn = 1, $e = Number.isNaN || function(e) {
312
+ return e !== e;
313
+ }), $e;
314
+ }
315
+ var Ee, Mn;
316
+ function oi() {
317
+ if (Mn) return Ee;
318
+ Mn = 1;
319
+ var r = /* @__PURE__ */ ai();
320
+ return Ee = function(n) {
321
+ return r(n) || n === 0 ? n : n < 0 ? -1 : 1;
322
+ }, Ee;
323
+ }
324
+ var xe, jn;
325
+ function Vr() {
326
+ return jn || (jn = 1, xe = function() {
327
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
328
+ return !1;
329
+ if (typeof Symbol.iterator == "symbol")
330
+ return !0;
331
+ var e = {}, n = Symbol("test"), a = Object(n);
332
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]")
333
+ return !1;
334
+ var t = 42;
335
+ e[n] = t;
336
+ for (var f in e)
337
+ return !1;
338
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
339
+ return !1;
340
+ var i = Object.getOwnPropertySymbols(e);
341
+ if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
342
+ return !1;
343
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
344
+ var o = (
345
+ /** @type {PropertyDescriptor} */
346
+ Object.getOwnPropertyDescriptor(e, n)
347
+ );
348
+ if (o.value !== t || o.enumerable !== !0)
349
+ return !1;
350
+ }
351
+ return !0;
352
+ }), xe;
353
+ }
354
+ var Be, Cn;
355
+ function Gt() {
356
+ if (Cn) return Be;
357
+ Cn = 1;
358
+ var r = typeof Symbol < "u" && Symbol, e = Vr();
359
+ return Be = function() {
360
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
361
+ }, Be;
362
+ }
363
+ var Te, Dn;
364
+ function ro() {
365
+ return Dn || (Dn = 1, Te = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Te;
366
+ }
367
+ var Me, Fn;
368
+ function eo() {
369
+ if (Fn) return Me;
370
+ Fn = 1;
371
+ var r = /* @__PURE__ */ Ht();
372
+ return Me = r.getPrototypeOf || null, Me;
373
+ }
374
+ var je, _n;
375
+ function ii() {
376
+ if (_n) return je;
377
+ _n = 1;
378
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, a = "[object Function]", t = function(u, c) {
379
+ for (var v = [], p = 0; p < u.length; p += 1)
380
+ v[p] = u[p];
381
+ for (var y = 0; y < c.length; y += 1)
382
+ v[y + u.length] = c[y];
383
+ return v;
384
+ }, f = function(u, c) {
385
+ for (var v = [], p = c, y = 0; p < u.length; p += 1, y += 1)
386
+ v[y] = u[p];
387
+ return v;
388
+ }, i = function(o, u) {
389
+ for (var c = "", v = 0; v < o.length; v += 1)
390
+ c += o[v], v + 1 < o.length && (c += u);
391
+ return c;
392
+ };
393
+ return je = function(u) {
394
+ var c = this;
395
+ if (typeof c != "function" || e.apply(c) !== a)
396
+ throw new TypeError(r + c);
397
+ for (var v = f(arguments, 1), p, y = function() {
398
+ if (this instanceof p) {
399
+ var q = c.apply(
400
+ this,
401
+ t(v, arguments)
402
+ );
403
+ return Object(q) === q ? q : this;
404
+ }
405
+ return c.apply(
406
+ u,
407
+ t(v, arguments)
408
+ );
409
+ }, h = n(0, c.length - v.length), S = [], R = 0; R < h; R++)
410
+ S[R] = "$" + R;
411
+ if (p = Function("binder", "return function (" + i(S, ",") + "){ return binder.apply(this,arguments); }")(y), c.prototype) {
412
+ var w = function() {
413
+ };
414
+ w.prototype = c.prototype, p.prototype = new w(), w.prototype = null;
415
+ }
416
+ return p;
417
+ }, je;
418
+ }
419
+ var Ce, Nn;
420
+ function jr() {
421
+ if (Nn) return Ce;
422
+ Nn = 1;
423
+ var r = ii();
424
+ return Ce = Function.prototype.bind || r, Ce;
425
+ }
426
+ var De, Wn;
427
+ function zt() {
428
+ return Wn || (Wn = 1, De = Function.prototype.call), De;
429
+ }
430
+ var Fe, kn;
431
+ function Vt() {
432
+ return kn || (kn = 1, Fe = Function.prototype.apply), Fe;
433
+ }
434
+ var _e, Ln;
435
+ function ui() {
436
+ return Ln || (Ln = 1, _e = typeof Reflect < "u" && Reflect && Reflect.apply), _e;
437
+ }
438
+ var Ne, Un;
439
+ function to() {
440
+ if (Un) return Ne;
441
+ Un = 1;
442
+ var r = jr(), e = Vt(), n = zt(), a = ui();
443
+ return Ne = a || r.call(n, e), Ne;
444
+ }
445
+ var We, Hn;
446
+ function Kt() {
447
+ if (Hn) return We;
448
+ Hn = 1;
449
+ var r = jr(), e = /* @__PURE__ */ nr(), n = zt(), a = to();
450
+ return We = function(f) {
451
+ if (f.length < 1 || typeof f[0] != "function")
452
+ throw new e("a function is required");
453
+ return a(r, n, f);
454
+ }, We;
455
+ }
456
+ var ke, Gn;
457
+ function fi() {
458
+ if (Gn) return ke;
459
+ Gn = 1;
460
+ var r = Kt(), e = /* @__PURE__ */ Or(), n;
461
+ try {
462
+ n = /** @type {{ __proto__?: typeof Array.prototype }} */
463
+ [].__proto__ === Array.prototype;
464
+ } catch (i) {
465
+ if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
466
+ throw i;
467
+ }
468
+ var a = !!n && e && e(
469
+ Object.prototype,
470
+ /** @type {keyof typeof Object.prototype} */
471
+ "__proto__"
472
+ ), t = Object, f = t.getPrototypeOf;
473
+ return ke = a && typeof a.get == "function" ? r([a.get]) : typeof f == "function" ? (
474
+ /** @type {import('./get')} */
475
+ function(o) {
476
+ return f(o == null ? o : t(o));
477
+ }
478
+ ) : !1, ke;
479
+ }
480
+ var Le, zn;
481
+ function Jt() {
482
+ if (zn) return Le;
483
+ zn = 1;
484
+ var r = ro(), e = eo(), n = /* @__PURE__ */ fi();
485
+ return Le = r ? function(t) {
486
+ return r(t);
487
+ } : e ? function(t) {
488
+ if (!t || typeof t != "object" && typeof t != "function")
489
+ throw new TypeError("getProto: not an object");
490
+ return e(t);
491
+ } : n ? function(t) {
492
+ return n(t);
493
+ } : null, Le;
494
+ }
495
+ var Ue, Vn;
496
+ function Yt() {
497
+ if (Vn) return Ue;
498
+ Vn = 1;
499
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = jr();
500
+ return Ue = n.call(r, e), Ue;
501
+ }
502
+ var He, Kn;
503
+ function pr() {
504
+ if (Kn) return He;
505
+ Kn = 1;
506
+ var r, e = /* @__PURE__ */ Ht(), n = /* @__PURE__ */ Za(), a = /* @__PURE__ */ Ko(), t = /* @__PURE__ */ Jo(), f = /* @__PURE__ */ Yo(), i = /* @__PURE__ */ kt(), o = /* @__PURE__ */ nr(), u = /* @__PURE__ */ Xo(), c = /* @__PURE__ */ Qo(), v = /* @__PURE__ */ Zo(), p = /* @__PURE__ */ ri(), y = /* @__PURE__ */ ei(), h = /* @__PURE__ */ ti(), S = /* @__PURE__ */ ni(), R = /* @__PURE__ */ oi(), w = Function, q = function(j) {
507
+ try {
508
+ return w('"use strict"; return (' + j + ").constructor;")();
509
+ } catch {
510
+ }
511
+ }, O = /* @__PURE__ */ Or(), m = /* @__PURE__ */ zr(), T = function() {
512
+ throw new o();
513
+ }, X = O ? (function() {
514
+ try {
515
+ return arguments.callee, T;
516
+ } catch {
517
+ try {
518
+ return O(arguments, "callee").get;
519
+ } catch {
520
+ return T;
521
+ }
522
+ }
523
+ })() : T, H = Gt()(), F = Jt(), D = eo(), P = ro(), _ = Vt(), L = zt(), N = {}, U = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), V = {
524
+ __proto__: null,
525
+ "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
526
+ "%Array%": Array,
527
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
528
+ "%ArrayIteratorPrototype%": H && F ? F([][Symbol.iterator]()) : r,
529
+ "%AsyncFromSyncIteratorPrototype%": r,
530
+ "%AsyncFunction%": N,
531
+ "%AsyncGenerator%": N,
532
+ "%AsyncGeneratorFunction%": N,
533
+ "%AsyncIteratorPrototype%": N,
534
+ "%Atomics%": typeof Atomics > "u" ? r : Atomics,
535
+ "%BigInt%": typeof BigInt > "u" ? r : BigInt,
536
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
537
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array,
538
+ "%Boolean%": Boolean,
539
+ "%DataView%": typeof DataView > "u" ? r : DataView,
540
+ "%Date%": Date,
541
+ "%decodeURI%": decodeURI,
542
+ "%decodeURIComponent%": decodeURIComponent,
543
+ "%encodeURI%": encodeURI,
544
+ "%encodeURIComponent%": encodeURIComponent,
545
+ "%Error%": n,
546
+ "%eval%": eval,
547
+ // eslint-disable-line no-eval
548
+ "%EvalError%": a,
549
+ "%Float16Array%": typeof Float16Array > "u" ? r : Float16Array,
550
+ "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
551
+ "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
552
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
553
+ "%Function%": w,
554
+ "%GeneratorFunction%": N,
555
+ "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
556
+ "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
557
+ "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
558
+ "%isFinite%": isFinite,
559
+ "%isNaN%": isNaN,
560
+ "%IteratorPrototype%": H && F ? F(F([][Symbol.iterator]())) : r,
561
+ "%JSON%": typeof JSON == "object" ? JSON : r,
562
+ "%Map%": typeof Map > "u" ? r : Map,
563
+ "%MapIteratorPrototype%": typeof Map > "u" || !H || !F ? r : F((/* @__PURE__ */ new Map())[Symbol.iterator]()),
564
+ "%Math%": Math,
565
+ "%Number%": Number,
566
+ "%Object%": e,
567
+ "%Object.getOwnPropertyDescriptor%": O,
568
+ "%parseFloat%": parseFloat,
569
+ "%parseInt%": parseInt,
570
+ "%Promise%": typeof Promise > "u" ? r : Promise,
571
+ "%Proxy%": typeof Proxy > "u" ? r : Proxy,
572
+ "%RangeError%": t,
573
+ "%ReferenceError%": f,
574
+ "%Reflect%": typeof Reflect > "u" ? r : Reflect,
575
+ "%RegExp%": RegExp,
576
+ "%Set%": typeof Set > "u" ? r : Set,
577
+ "%SetIteratorPrototype%": typeof Set > "u" || !H || !F ? r : F((/* @__PURE__ */ new Set())[Symbol.iterator]()),
578
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
579
+ "%String%": String,
580
+ "%StringIteratorPrototype%": H && F ? F(""[Symbol.iterator]()) : r,
581
+ "%Symbol%": H ? Symbol : r,
582
+ "%SyntaxError%": i,
583
+ "%ThrowTypeError%": X,
584
+ "%TypedArray%": U,
585
+ "%TypeError%": o,
586
+ "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
587
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
588
+ "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
589
+ "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
590
+ "%URIError%": u,
591
+ "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
592
+ "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
593
+ "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
594
+ "%Function.prototype.call%": L,
595
+ "%Function.prototype.apply%": _,
596
+ "%Object.defineProperty%": m,
597
+ "%Object.getPrototypeOf%": D,
598
+ "%Math.abs%": c,
599
+ "%Math.floor%": v,
600
+ "%Math.max%": p,
601
+ "%Math.min%": y,
602
+ "%Math.pow%": h,
603
+ "%Math.round%": S,
604
+ "%Math.sign%": R,
605
+ "%Reflect.getPrototypeOf%": P
606
+ };
607
+ if (F)
608
+ try {
609
+ null.error;
610
+ } catch (j) {
611
+ var ur = F(F(j));
612
+ V["%Error.prototype%"] = ur;
613
+ }
614
+ var Pr = function j(A) {
615
+ var I;
616
+ if (A === "%AsyncFunction%")
617
+ I = q("async function () {}");
618
+ else if (A === "%GeneratorFunction%")
619
+ I = q("function* () {}");
620
+ else if (A === "%AsyncGeneratorFunction%")
621
+ I = q("async function* () {}");
622
+ else if (A === "%AsyncGenerator%") {
623
+ var b = j("%AsyncGeneratorFunction%");
624
+ b && (I = b.prototype);
625
+ } else if (A === "%AsyncIteratorPrototype%") {
626
+ var x = j("%AsyncGenerator%");
627
+ x && F && (I = F(x.prototype));
628
+ }
629
+ return V[A] = I, I;
630
+ }, mr = {
631
+ __proto__: null,
632
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
633
+ "%ArrayPrototype%": ["Array", "prototype"],
634
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
635
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
636
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
637
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
638
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
639
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
640
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
641
+ "%BooleanPrototype%": ["Boolean", "prototype"],
642
+ "%DataViewPrototype%": ["DataView", "prototype"],
643
+ "%DatePrototype%": ["Date", "prototype"],
644
+ "%ErrorPrototype%": ["Error", "prototype"],
645
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
646
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
647
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
648
+ "%FunctionPrototype%": ["Function", "prototype"],
649
+ "%Generator%": ["GeneratorFunction", "prototype"],
650
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
651
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
652
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
653
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
654
+ "%JSONParse%": ["JSON", "parse"],
655
+ "%JSONStringify%": ["JSON", "stringify"],
656
+ "%MapPrototype%": ["Map", "prototype"],
657
+ "%NumberPrototype%": ["Number", "prototype"],
658
+ "%ObjectPrototype%": ["Object", "prototype"],
659
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
660
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
661
+ "%PromisePrototype%": ["Promise", "prototype"],
662
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
663
+ "%Promise_all%": ["Promise", "all"],
664
+ "%Promise_reject%": ["Promise", "reject"],
665
+ "%Promise_resolve%": ["Promise", "resolve"],
666
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
667
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
668
+ "%RegExpPrototype%": ["RegExp", "prototype"],
669
+ "%SetPrototype%": ["Set", "prototype"],
670
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
671
+ "%StringPrototype%": ["String", "prototype"],
672
+ "%SymbolPrototype%": ["Symbol", "prototype"],
673
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
674
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
675
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
676
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
677
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
678
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
679
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
680
+ "%URIErrorPrototype%": ["URIError", "prototype"],
681
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
682
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
683
+ }, ar = jr(), G = /* @__PURE__ */ Yt(), Sr = ar.call(L, Array.prototype.concat), Ir = ar.call(_, Array.prototype.splice), br = ar.call(L, String.prototype.replace), yr = ar.call(L, String.prototype.slice), g = ar.call(L, RegExp.prototype.exec), d = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, E = /\\(\\)?/g, $ = function(A) {
684
+ var I = yr(A, 0, 1), b = yr(A, -1);
685
+ if (I === "%" && b !== "%")
686
+ throw new i("invalid intrinsic syntax, expected closing `%`");
687
+ if (b === "%" && I !== "%")
688
+ throw new i("invalid intrinsic syntax, expected opening `%`");
689
+ var x = [];
690
+ return br(A, d, function(z, K, J, Y) {
691
+ x[x.length] = J ? br(Y, E, "$1") : K || z;
692
+ }), x;
693
+ }, M = function(A, I) {
694
+ var b = A, x;
695
+ if (G(mr, b) && (x = mr[b], b = "%" + x[0] + "%"), G(V, b)) {
696
+ var z = V[b];
697
+ if (z === N && (z = Pr(b)), typeof z > "u" && !I)
698
+ throw new o("intrinsic " + A + " exists, but is not available. Please file an issue!");
699
+ return {
700
+ alias: x,
701
+ name: b,
702
+ value: z
703
+ };
704
+ }
705
+ throw new i("intrinsic " + A + " does not exist!");
706
+ };
707
+ return He = function(A, I) {
708
+ if (typeof A != "string" || A.length === 0)
709
+ throw new o("intrinsic name must be a non-empty string");
710
+ if (arguments.length > 1 && typeof I != "boolean")
711
+ throw new o('"allowMissing" argument must be a boolean');
712
+ if (g(/^%?[^%]*%?$/, A) === null)
713
+ throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
714
+ var b = $(A), x = b.length > 0 ? b[0] : "", z = M("%" + x + "%", I), K = z.name, J = z.value, Y = !1, Z = z.alias;
715
+ Z && (x = Z[0], Ir(b, Sr([0, 1], Z)));
716
+ for (var fr = 1, or = !0; fr < b.length; fr += 1) {
717
+ var rr = b[fr], sr = yr(rr, 0, 1), lr = yr(rr, -1);
718
+ if ((sr === '"' || sr === "'" || sr === "`" || lr === '"' || lr === "'" || lr === "`") && sr !== lr)
719
+ throw new i("property names with quotes must have matching quotes");
720
+ if ((rr === "constructor" || !or) && (Y = !0), x += "." + rr, K = "%" + x + "%", G(V, K))
721
+ J = V[K];
722
+ else if (J != null) {
723
+ if (!(rr in J)) {
724
+ if (!I)
725
+ throw new o("base intrinsic for " + A + " exists, but the property is not available.");
726
+ return;
727
+ }
728
+ if (O && fr + 1 >= b.length) {
729
+ var cr = O(J, rr);
730
+ or = !!cr, or && "get" in cr && !("originalValue" in cr.get) ? J = cr.get : J = J[rr];
731
+ } else
732
+ or = G(J, rr), J = J[rr];
733
+ or && !Y && (V[K] = J);
734
+ }
735
+ }
736
+ return J;
737
+ }, He;
738
+ }
739
+ var Ge, Jn;
740
+ function si() {
741
+ if (Jn) return Ge;
742
+ Jn = 1;
743
+ var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Lt(), n = /* @__PURE__ */ Ut()(), a = /* @__PURE__ */ Or(), t = /* @__PURE__ */ nr(), f = r("%Math.floor%");
744
+ return Ge = function(o, u) {
745
+ if (typeof o != "function")
746
+ throw new t("`fn` is not a function");
747
+ if (typeof u != "number" || u < 0 || u > 4294967295 || f(u) !== u)
748
+ throw new t("`length` must be a positive 32-bit integer");
749
+ var c = arguments.length > 2 && !!arguments[2], v = !0, p = !0;
750
+ if ("length" in o && a) {
751
+ var y = a(o, "length");
752
+ y && !y.configurable && (v = !1), y && !y.writable && (p = !1);
753
+ }
754
+ return (v || p || !c) && (n ? e(
755
+ /** @type {Parameters<define>[0]} */
756
+ o,
757
+ "length",
758
+ u,
759
+ !0,
760
+ !0
761
+ ) : e(
762
+ /** @type {Parameters<define>[0]} */
763
+ o,
764
+ "length",
765
+ u
766
+ )), o;
767
+ }, Ge;
768
+ }
769
+ var ze, Yn;
770
+ function li() {
771
+ if (Yn) return ze;
772
+ Yn = 1;
773
+ var r = jr(), e = Vt(), n = to();
774
+ return ze = function() {
775
+ return n(r, e, arguments);
776
+ }, ze;
777
+ }
778
+ var Xn;
779
+ function xr() {
780
+ return Xn || (Xn = 1, (function(r) {
781
+ var e = /* @__PURE__ */ si(), n = /* @__PURE__ */ zr(), a = Kt(), t = li();
782
+ r.exports = function(i) {
783
+ var o = a(arguments), u = i.length - (arguments.length - 1);
784
+ return e(
785
+ o,
786
+ 1 + (u > 0 ? u : 0),
787
+ !0
788
+ );
789
+ }, n ? n(r.exports, "apply", { value: t }) : r.exports.apply = t;
790
+ })(ge)), ge.exports;
791
+ }
792
+ var Ve, Qn;
793
+ function Q() {
794
+ if (Qn) return Ve;
795
+ Qn = 1;
796
+ var r = /* @__PURE__ */ pr(), e = Kt(), n = e([r("%String.prototype.indexOf%")]);
797
+ return Ve = function(t, f) {
798
+ var i = (
799
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
800
+ r(t, !!f)
801
+ );
802
+ return typeof i == "function" && n(t, ".prototype.") > -1 ? e(
803
+ /** @type {const} */
804
+ [i]
805
+ ) : i;
806
+ }, Ve;
807
+ }
808
+ var Ke, Zn;
809
+ function no() {
810
+ if (Zn) return Ke;
811
+ Zn = 1;
812
+ var r = Wt(), e = Vr()(), n = /* @__PURE__ */ Q(), a = /* @__PURE__ */ Ht(), t = n("Array.prototype.push"), f = n("Object.prototype.propertyIsEnumerable"), i = e ? a.getOwnPropertySymbols : null;
813
+ return Ke = function(u, c) {
814
+ if (u == null)
815
+ throw new TypeError("target must be an object");
816
+ var v = a(u);
817
+ if (arguments.length === 1)
818
+ return v;
819
+ for (var p = 1; p < arguments.length; ++p) {
820
+ var y = a(arguments[p]), h = r(y), S = e && (a.getOwnPropertySymbols || i);
821
+ if (S)
822
+ for (var R = S(y), w = 0; w < R.length; ++w) {
823
+ var q = R[w];
824
+ f(y, q) && t(h, q);
825
+ }
826
+ for (var O = 0; O < h.length; ++O) {
827
+ var m = h[O];
828
+ if (f(y, m)) {
829
+ var T = y[m];
830
+ v[m] = T;
831
+ }
832
+ }
833
+ }
834
+ return v;
835
+ }, Ke;
836
+ }
837
+ var Je, ra;
838
+ function ao() {
839
+ if (ra) return Je;
840
+ ra = 1;
841
+ var r = no(), e = function() {
842
+ if (!Object.assign)
843
+ return !1;
844
+ for (var a = "abcdefghijklmnopqrst", t = a.split(""), f = {}, i = 0; i < t.length; ++i)
845
+ f[t[i]] = t[i];
846
+ var o = Object.assign({}, f), u = "";
847
+ for (var c in o)
848
+ u += c;
849
+ return a !== u;
850
+ }, n = function() {
851
+ if (!Object.assign || !Object.preventExtensions)
852
+ return !1;
853
+ var a = Object.preventExtensions({ 1: 2 });
854
+ try {
855
+ Object.assign(a, "xy");
856
+ } catch {
857
+ return a[1] === "y";
858
+ }
859
+ return !1;
860
+ };
861
+ return Je = function() {
862
+ return !Object.assign || e() || n() ? r : Object.assign;
863
+ }, Je;
864
+ }
865
+ var Ye, ea;
866
+ function ci() {
867
+ if (ea) return Ye;
868
+ ea = 1;
869
+ var r = wr(), e = ao();
870
+ return Ye = function() {
871
+ var a = e();
872
+ return r(
873
+ Object,
874
+ { assign: a },
875
+ { assign: function() {
876
+ return Object.assign !== a;
877
+ } }
878
+ ), a;
879
+ }, Ye;
880
+ }
881
+ var Xe, ta;
882
+ function pi() {
883
+ if (ta) return Xe;
884
+ ta = 1;
885
+ var r = wr(), e = xr(), n = no(), a = ao(), t = ci(), f = e.apply(a()), i = function(u, c) {
886
+ return f(Object, arguments);
887
+ };
888
+ return r(i, {
889
+ getPolyfill: a,
890
+ implementation: n,
891
+ shim: t
892
+ }), Xe = i, Xe;
893
+ }
894
+ var Qe, na;
895
+ function oo() {
896
+ if (na) return Qe;
897
+ na = 1;
898
+ var r = /* @__PURE__ */ pr(), e = xr(), n = e(r("String.prototype.indexOf"));
899
+ return Qe = function(t, f) {
900
+ var i = r(t, !!f);
901
+ return typeof i == "function" && n(t, ".prototype.") > -1 ? e(i) : i;
902
+ }, Qe;
903
+ }
904
+ var Ze, aa;
905
+ function yi() {
906
+ if (aa) return Ze;
907
+ aa = 1;
908
+ var r = function() {
909
+ return typeof (function() {
910
+ }).name == "string";
911
+ }, e = Object.getOwnPropertyDescriptor;
912
+ if (e)
913
+ try {
914
+ e([], "length");
915
+ } catch {
916
+ e = null;
917
+ }
918
+ r.functionsHaveConfigurableNames = function() {
919
+ if (!r() || !e)
920
+ return !1;
921
+ var t = e(function() {
922
+ }, "name");
923
+ return !!t && !!t.configurable;
924
+ };
925
+ var n = Function.prototype.bind;
926
+ return r.boundFunctionsHaveNames = function() {
927
+ return r() && typeof n == "function" && (function() {
928
+ }).bind().name !== "";
929
+ }, Ze = r, Ze;
930
+ }
931
+ var rt, oa;
932
+ function vi() {
933
+ if (oa) return rt;
934
+ oa = 1;
935
+ var r = /* @__PURE__ */ Lt(), e = /* @__PURE__ */ Ut()(), n = yi().functionsHaveConfigurableNames(), a = /* @__PURE__ */ nr();
936
+ return rt = function(f, i) {
937
+ if (typeof f != "function")
938
+ throw new a("`fn` is not a function");
939
+ var o = arguments.length > 2 && !!arguments[2];
940
+ return (!o || n) && (e ? r(
941
+ /** @type {Parameters<define>[0]} */
942
+ f,
943
+ "name",
944
+ i,
945
+ !0,
946
+ !0
947
+ ) : r(
948
+ /** @type {Parameters<define>[0]} */
949
+ f,
950
+ "name",
951
+ i
952
+ )), f;
953
+ }, rt;
954
+ }
955
+ var et, ia;
956
+ function io() {
957
+ if (ia) return et;
958
+ ia = 1;
959
+ var r = vi(), e = /* @__PURE__ */ nr(), n = Object;
960
+ return et = r(function() {
961
+ if (this == null || this !== n(this))
962
+ throw new e("RegExp.prototype.flags getter called on non-object");
963
+ var t = "";
964
+ return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
965
+ }, "get flags", !0), et;
966
+ }
967
+ var tt, ua;
968
+ function uo() {
969
+ if (ua) return tt;
970
+ ua = 1;
971
+ var r = io(), e = wr().supportsDescriptors, n = Object.getOwnPropertyDescriptor;
972
+ return tt = function() {
973
+ if (e && /a/mig.flags === "gim") {
974
+ var t = n(RegExp.prototype, "flags");
975
+ if (t && typeof t.get == "function" && "dotAll" in RegExp.prototype && "hasIndices" in RegExp.prototype) {
976
+ var f = "", i = {};
977
+ if (Object.defineProperty(i, "hasIndices", {
978
+ get: function() {
979
+ f += "d";
980
+ }
981
+ }), Object.defineProperty(i, "sticky", {
982
+ get: function() {
983
+ f += "y";
984
+ }
985
+ }), t.get.call(i), f === "dy")
986
+ return t.get;
987
+ }
988
+ }
989
+ return r;
990
+ }, tt;
991
+ }
992
+ var nt, fa;
993
+ function gi() {
994
+ if (fa) return nt;
995
+ fa = 1;
996
+ var r = wr().supportsDescriptors, e = uo(), n = /* @__PURE__ */ Or(), a = Object.defineProperty, t = /* @__PURE__ */ Za(), f = Jt(), i = /a/;
997
+ return nt = function() {
998
+ if (!r || !f)
999
+ throw new t("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
1000
+ var u = e(), c = f(i), v = n(c, "flags");
1001
+ return (!v || v.get !== u) && a(c, "flags", {
1002
+ configurable: !0,
1003
+ enumerable: !1,
1004
+ get: u
1005
+ }), u;
1006
+ }, nt;
1007
+ }
1008
+ var at, sa;
1009
+ function hi() {
1010
+ if (sa) return at;
1011
+ sa = 1;
1012
+ var r = wr(), e = xr(), n = io(), a = uo(), t = gi(), f = e(a());
1013
+ return r(f, {
1014
+ getPolyfill: a,
1015
+ implementation: n,
1016
+ shim: t
1017
+ }), at = f, at;
1018
+ }
1019
+ var Mr = { exports: {} }, ot, la;
1020
+ function qr() {
1021
+ if (la) return ot;
1022
+ la = 1;
1023
+ var r = Vr();
1024
+ return ot = function() {
1025
+ return r() && !!Symbol.toStringTag;
1026
+ }, ot;
1027
+ }
1028
+ var it, ca;
1029
+ function fo() {
1030
+ if (ca) return it;
1031
+ ca = 1;
1032
+ var r = qr()(), e = /* @__PURE__ */ Q(), n = e("Object.prototype.toString"), a = function(o) {
1033
+ return r && o && typeof o == "object" && Symbol.toStringTag in o ? !1 : n(o) === "[object Arguments]";
1034
+ }, t = function(o) {
1035
+ return a(o) ? !0 : o !== null && typeof o == "object" && "length" in o && typeof o.length == "number" && o.length >= 0 && n(o) !== "[object Array]" && "callee" in o && n(o.callee) === "[object Function]";
1036
+ }, f = (function() {
1037
+ return a(arguments);
1038
+ })();
1039
+ return a.isLegacyArguments = t, it = f ? a : t, it;
1040
+ }
1041
+ const di = {}, mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1042
+ __proto__: null,
1043
+ default: di
1044
+ }, Symbol.toStringTag, { value: "Module" })), Si = /* @__PURE__ */ Go(mi);
1045
+ var ut, pa;
1046
+ function Kr() {
1047
+ if (pa) return ut;
1048
+ pa = 1;
1049
+ var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, n = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, t = typeof Set == "function" && Set.prototype, f = Object.getOwnPropertyDescriptor && t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = t && f && typeof f.get == "function" ? f.get : null, o = t && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype, c = u ? WeakMap.prototype.has : null, v = typeof WeakSet == "function" && WeakSet.prototype, p = v ? WeakSet.prototype.has : null, y = typeof WeakRef == "function" && WeakRef.prototype, h = y ? WeakRef.prototype.deref : null, S = Boolean.prototype.valueOf, R = Object.prototype.toString, w = Function.prototype.toString, q = String.prototype.match, O = String.prototype.slice, m = String.prototype.replace, T = String.prototype.toUpperCase, X = String.prototype.toLowerCase, H = RegExp.prototype.test, F = Array.prototype.concat, D = Array.prototype.join, P = Array.prototype.slice, _ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, N = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", ur = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Pr = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(s) {
1050
+ return s.__proto__;
1051
+ } : null);
1052
+ function ar(s, l) {
1053
+ if (s === 1 / 0 || s === -1 / 0 || s !== s || s && s > -1e3 && s < 1e3 || H.call(/e/, l))
1054
+ return l;
1055
+ var C = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1056
+ if (typeof s == "number") {
1057
+ var W = s < 0 ? -_(-s) : _(s);
1058
+ if (W !== s) {
1059
+ var k = String(W), B = O.call(l, k.length + 1);
1060
+ return m.call(k, C, "$&_") + "." + m.call(m.call(B, /([0-9]{3})/g, "$&_"), /_$/, "");
1061
+ }
1062
+ }
1063
+ return m.call(l, C, "$&_");
1064
+ }
1065
+ var G = Si, Sr = G.custom, Ir = z(Sr) ? Sr : null, br = {
1066
+ __proto__: null,
1067
+ double: '"',
1068
+ single: "'"
1069
+ }, yr = {
1070
+ __proto__: null,
1071
+ double: /(["\\])/g,
1072
+ single: /(['\\])/g
1073
+ };
1074
+ ut = function s(l, C, W, k) {
1075
+ var B = C || {};
1076
+ if (Y(B, "quoteStyle") && !Y(br, B.quoteStyle))
1077
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1078
+ if (Y(B, "maxStringLength") && (typeof B.maxStringLength == "number" ? B.maxStringLength < 0 && B.maxStringLength !== 1 / 0 : B.maxStringLength !== null))
1079
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1080
+ var hr = Y(B, "customInspect") ? B.customInspect : !0;
1081
+ if (typeof hr != "boolean" && hr !== "symbol")
1082
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1083
+ if (Y(B, "indent") && B.indent !== null && B.indent !== " " && !(parseInt(B.indent, 10) === B.indent && B.indent > 0))
1084
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1085
+ if (Y(B, "numericSeparator") && typeof B.numericSeparator != "boolean")
1086
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1087
+ var Ar = B.numericSeparator;
1088
+ if (typeof l > "u")
1089
+ return "undefined";
1090
+ if (l === null)
1091
+ return "null";
1092
+ if (typeof l == "boolean")
1093
+ return l ? "true" : "false";
1094
+ if (typeof l == "string")
1095
+ return Rr(l, B);
1096
+ if (typeof l == "number") {
1097
+ if (l === 0)
1098
+ return 1 / 0 / l > 0 ? "0" : "-0";
1099
+ var tr = String(l);
1100
+ return Ar ? ar(l, tr) : tr;
1101
+ }
1102
+ if (typeof l == "bigint") {
1103
+ var dr = String(l) + "n";
1104
+ return Ar ? ar(l, dr) : dr;
1105
+ }
1106
+ var Xr = typeof B.depth > "u" ? 5 : B.depth;
1107
+ if (typeof W > "u" && (W = 0), W >= Xr && Xr > 0 && typeof l == "object")
1108
+ return $(l) ? "[Array]" : "[Object]";
1109
+ var $r = Oo(B, W);
1110
+ if (typeof k > "u")
1111
+ k = [];
1112
+ else if (or(k, l) >= 0)
1113
+ return "[Circular]";
1114
+ function ir(Er, _r, qo) {
1115
+ if (_r && (k = P.call(k), k.push(_r)), qo) {
1116
+ var on = {
1117
+ depth: B.depth
1118
+ };
1119
+ return Y(B, "quoteStyle") && (on.quoteStyle = B.quoteStyle), s(Er, on, W + 1, k);
1120
+ }
1121
+ return s(Er, B, W + 1, k);
1122
+ }
1123
+ if (typeof l == "function" && !j(l)) {
1124
+ var Qt = fr(l), Zt = Dr(l, ir);
1125
+ return "[Function" + (Qt ? ": " + Qt : " (anonymous)") + "]" + (Zt.length > 0 ? " { " + D.call(Zt, ", ") + " }" : "");
1126
+ }
1127
+ if (z(l)) {
1128
+ var rn = V ? m.call(String(l), /^(Symbol\(.*\))_[^)]*$/, "$1") : U.call(l);
1129
+ return typeof l == "object" && !V ? gr(rn) : rn;
1130
+ }
1131
+ if (vr(l)) {
1132
+ for (var Tr = "<" + X.call(String(l.nodeName)), Qr = l.attributes || [], Fr = 0; Fr < Qr.length; Fr++)
1133
+ Tr += " " + Qr[Fr].name + "=" + g(d(Qr[Fr].value), "double", B);
1134
+ return Tr += ">", l.childNodes && l.childNodes.length && (Tr += "..."), Tr += "</" + X.call(String(l.nodeName)) + ">", Tr;
1135
+ }
1136
+ if ($(l)) {
1137
+ if (l.length === 0)
1138
+ return "[]";
1139
+ var Zr = Dr(l, ir);
1140
+ return $r && !Ao(Zr) ? "[" + Yr(Zr, $r) + "]" : "[ " + D.call(Zr, ", ") + " ]";
1141
+ }
1142
+ if (A(l)) {
1143
+ var re = Dr(l, ir);
1144
+ return !("cause" in Error.prototype) && "cause" in l && !Pr.call(l, "cause") ? "{ [" + String(l) + "] " + D.call(F.call("[cause]: " + ir(l.cause), re), ", ") + " }" : re.length === 0 ? "[" + String(l) + "]" : "{ [" + String(l) + "] " + D.call(re, ", ") + " }";
1145
+ }
1146
+ if (typeof l == "object" && hr) {
1147
+ if (Ir && typeof l[Ir] == "function" && G)
1148
+ return G(l, { depth: Xr - W });
1149
+ if (hr !== "symbol" && typeof l.inspect == "function")
1150
+ return l.inspect();
1151
+ }
1152
+ if (rr(l)) {
1153
+ var en = [];
1154
+ return a && a.call(l, function(Er, _r) {
1155
+ en.push(ir(_r, l, !0) + " => " + ir(Er, l));
1156
+ }), Xt("Map", n.call(l), en, $r);
1157
+ }
1158
+ if (cr(l)) {
1159
+ var tn = [];
1160
+ return o && o.call(l, function(Er) {
1161
+ tn.push(ir(Er, l));
1162
+ }), Xt("Set", i.call(l), tn, $r);
1163
+ }
1164
+ if (sr(l))
1165
+ return Jr("WeakMap");
1166
+ if (Cr(l))
1167
+ return Jr("WeakSet");
1168
+ if (lr(l))
1169
+ return Jr("WeakRef");
1170
+ if (b(l))
1171
+ return gr(ir(Number(l)));
1172
+ if (K(l))
1173
+ return gr(ir(L.call(l)));
1174
+ if (x(l))
1175
+ return gr(S.call(l));
1176
+ if (I(l))
1177
+ return gr(ir(String(l)));
1178
+ if (typeof window < "u" && l === window)
1179
+ return "{ [object Window] }";
1180
+ if (typeof globalThis < "u" && l === globalThis || typeof Gr < "u" && l === Gr)
1181
+ return "{ [object globalThis] }";
1182
+ if (!M(l) && !j(l)) {
1183
+ var ee = Dr(l, ir), nn = mr ? mr(l) === Object.prototype : l instanceof Object || l.constructor === Object, te = l instanceof Object ? "" : "null prototype", an = !nn && ur && Object(l) === l && ur in l ? O.call(Z(l), 8, -1) : te ? "Object" : "", wo = nn || typeof l.constructor != "function" ? "" : l.constructor.name ? l.constructor.name + " " : "", ne = wo + (an || te ? "[" + D.call(F.call([], an || [], te || []), ": ") + "] " : "");
1184
+ return ee.length === 0 ? ne + "{}" : $r ? ne + "{" + Yr(ee, $r) + "}" : ne + "{ " + D.call(ee, ", ") + " }";
1185
+ }
1186
+ return String(l);
1187
+ };
1188
+ function g(s, l, C) {
1189
+ var W = C.quoteStyle || l, k = br[W];
1190
+ return k + s + k;
1191
+ }
1192
+ function d(s) {
1193
+ return m.call(String(s), /"/g, "&quot;");
1194
+ }
1195
+ function E(s) {
1196
+ return !ur || !(typeof s == "object" && (ur in s || typeof s[ur] < "u"));
1197
+ }
1198
+ function $(s) {
1199
+ return Z(s) === "[object Array]" && E(s);
1200
+ }
1201
+ function M(s) {
1202
+ return Z(s) === "[object Date]" && E(s);
1203
+ }
1204
+ function j(s) {
1205
+ return Z(s) === "[object RegExp]" && E(s);
1206
+ }
1207
+ function A(s) {
1208
+ return Z(s) === "[object Error]" && E(s);
1209
+ }
1210
+ function I(s) {
1211
+ return Z(s) === "[object String]" && E(s);
1212
+ }
1213
+ function b(s) {
1214
+ return Z(s) === "[object Number]" && E(s);
1215
+ }
1216
+ function x(s) {
1217
+ return Z(s) === "[object Boolean]" && E(s);
1218
+ }
1219
+ function z(s) {
1220
+ if (V)
1221
+ return s && typeof s == "object" && s instanceof Symbol;
1222
+ if (typeof s == "symbol")
1223
+ return !0;
1224
+ if (!s || typeof s != "object" || !U)
1225
+ return !1;
1226
+ try {
1227
+ return U.call(s), !0;
1228
+ } catch {
1229
+ }
1230
+ return !1;
1231
+ }
1232
+ function K(s) {
1233
+ if (!s || typeof s != "object" || !L)
1234
+ return !1;
1235
+ try {
1236
+ return L.call(s), !0;
1237
+ } catch {
1238
+ }
1239
+ return !1;
1240
+ }
1241
+ var J = Object.prototype.hasOwnProperty || function(s) {
1242
+ return s in this;
1243
+ };
1244
+ function Y(s, l) {
1245
+ return J.call(s, l);
1246
+ }
1247
+ function Z(s) {
1248
+ return R.call(s);
1249
+ }
1250
+ function fr(s) {
1251
+ if (s.name)
1252
+ return s.name;
1253
+ var l = q.call(w.call(s), /^function\s*([\w$]+)/);
1254
+ return l ? l[1] : null;
1255
+ }
1256
+ function or(s, l) {
1257
+ if (s.indexOf)
1258
+ return s.indexOf(l);
1259
+ for (var C = 0, W = s.length; C < W; C++)
1260
+ if (s[C] === l)
1261
+ return C;
1262
+ return -1;
1263
+ }
1264
+ function rr(s) {
1265
+ if (!n || !s || typeof s != "object")
1266
+ return !1;
1267
+ try {
1268
+ n.call(s);
1269
+ try {
1270
+ i.call(s);
1271
+ } catch {
1272
+ return !0;
1273
+ }
1274
+ return s instanceof Map;
1275
+ } catch {
1276
+ }
1277
+ return !1;
1278
+ }
1279
+ function sr(s) {
1280
+ if (!c || !s || typeof s != "object")
1281
+ return !1;
1282
+ try {
1283
+ c.call(s, c);
1284
+ try {
1285
+ p.call(s, p);
1286
+ } catch {
1287
+ return !0;
1288
+ }
1289
+ return s instanceof WeakMap;
1290
+ } catch {
1291
+ }
1292
+ return !1;
1293
+ }
1294
+ function lr(s) {
1295
+ if (!h || !s || typeof s != "object")
1296
+ return !1;
1297
+ try {
1298
+ return h.call(s), !0;
1299
+ } catch {
1300
+ }
1301
+ return !1;
1302
+ }
1303
+ function cr(s) {
1304
+ if (!i || !s || typeof s != "object")
1305
+ return !1;
1306
+ try {
1307
+ i.call(s);
1308
+ try {
1309
+ n.call(s);
1310
+ } catch {
1311
+ return !0;
1312
+ }
1313
+ return s instanceof Set;
1314
+ } catch {
1315
+ }
1316
+ return !1;
1317
+ }
1318
+ function Cr(s) {
1319
+ if (!p || !s || typeof s != "object")
1320
+ return !1;
1321
+ try {
1322
+ p.call(s, p);
1323
+ try {
1324
+ c.call(s, c);
1325
+ } catch {
1326
+ return !0;
1327
+ }
1328
+ return s instanceof WeakSet;
1329
+ } catch {
1330
+ }
1331
+ return !1;
1332
+ }
1333
+ function vr(s) {
1334
+ return !s || typeof s != "object" ? !1 : typeof HTMLElement < "u" && s instanceof HTMLElement ? !0 : typeof s.nodeName == "string" && typeof s.getAttribute == "function";
1335
+ }
1336
+ function Rr(s, l) {
1337
+ if (s.length > l.maxStringLength) {
1338
+ var C = s.length - l.maxStringLength, W = "... " + C + " more character" + (C > 1 ? "s" : "");
1339
+ return Rr(O.call(s, 0, l.maxStringLength), l) + W;
1340
+ }
1341
+ var k = yr[l.quoteStyle || "single"];
1342
+ k.lastIndex = 0;
1343
+ var B = m.call(m.call(s, k, "\\$1"), /[\x00-\x1f]/g, Br);
1344
+ return g(B, "single", l);
1345
+ }
1346
+ function Br(s) {
1347
+ var l = s.charCodeAt(0), C = {
1348
+ 8: "b",
1349
+ 9: "t",
1350
+ 10: "n",
1351
+ 12: "f",
1352
+ 13: "r"
1353
+ }[l];
1354
+ return C ? "\\" + C : "\\x" + (l < 16 ? "0" : "") + T.call(l.toString(16));
1355
+ }
1356
+ function gr(s) {
1357
+ return "Object(" + s + ")";
1358
+ }
1359
+ function Jr(s) {
1360
+ return s + " { ? }";
1361
+ }
1362
+ function Xt(s, l, C, W) {
1363
+ var k = W ? Yr(C, W) : D.call(C, ", ");
1364
+ return s + " (" + l + ") {" + k + "}";
1365
+ }
1366
+ function Ao(s) {
1367
+ for (var l = 0; l < s.length; l++)
1368
+ if (or(s[l], `
1369
+ `) >= 0)
1370
+ return !1;
1371
+ return !0;
1372
+ }
1373
+ function Oo(s, l) {
1374
+ var C;
1375
+ if (s.indent === " ")
1376
+ C = " ";
1377
+ else if (typeof s.indent == "number" && s.indent > 0)
1378
+ C = D.call(Array(s.indent + 1), " ");
1379
+ else
1380
+ return null;
1381
+ return {
1382
+ base: C,
1383
+ prev: D.call(Array(l + 1), C)
1384
+ };
1385
+ }
1386
+ function Yr(s, l) {
1387
+ if (s.length === 0)
1388
+ return "";
1389
+ var C = `
1390
+ ` + l.prev + l.base;
1391
+ return C + D.call(s, "," + C) + `
1392
+ ` + l.prev;
1393
+ }
1394
+ function Dr(s, l) {
1395
+ var C = $(s), W = [];
1396
+ if (C) {
1397
+ W.length = s.length;
1398
+ for (var k = 0; k < s.length; k++)
1399
+ W[k] = Y(s, k) ? l(s[k], s) : "";
1400
+ }
1401
+ var B = typeof N == "function" ? N(s) : [], hr;
1402
+ if (V) {
1403
+ hr = {};
1404
+ for (var Ar = 0; Ar < B.length; Ar++)
1405
+ hr["$" + B[Ar]] = B[Ar];
1406
+ }
1407
+ for (var tr in s)
1408
+ Y(s, tr) && (C && String(Number(tr)) === tr && tr < s.length || V && hr["$" + tr] instanceof Symbol || (H.call(/[^\w$]/, tr) ? W.push(l(tr, s) + ": " + l(s[tr], s)) : W.push(tr + ": " + l(s[tr], s))));
1409
+ if (typeof N == "function")
1410
+ for (var dr = 0; dr < B.length; dr++)
1411
+ Pr.call(s, B[dr]) && W.push("[" + l(B[dr]) + "]: " + l(s[B[dr]], s));
1412
+ return W;
1413
+ }
1414
+ return ut;
1415
+ }
1416
+ var ft, ya;
1417
+ function bi() {
1418
+ if (ya) return ft;
1419
+ ya = 1;
1420
+ var r = /* @__PURE__ */ Kr(), e = /* @__PURE__ */ nr(), n = function(o, u, c) {
1421
+ for (var v = o, p; (p = v.next) != null; v = p)
1422
+ if (p.key === u)
1423
+ return v.next = p.next, c || (p.next = /** @type {NonNullable<typeof list.next>} */
1424
+ o.next, o.next = p), p;
1425
+ }, a = function(o, u) {
1426
+ if (o) {
1427
+ var c = n(o, u);
1428
+ return c && c.value;
1429
+ }
1430
+ }, t = function(o, u, c) {
1431
+ var v = n(o, u);
1432
+ v ? v.value = c : o.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
1433
+ {
1434
+ // eslint-disable-line no-param-reassign, no-extra-parens
1435
+ key: u,
1436
+ next: o.next,
1437
+ value: c
1438
+ };
1439
+ }, f = function(o, u) {
1440
+ return o ? !!n(o, u) : !1;
1441
+ }, i = function(o, u) {
1442
+ if (o)
1443
+ return n(o, u, !0);
1444
+ };
1445
+ return ft = function() {
1446
+ var u, c = {
1447
+ assert: function(v) {
1448
+ if (!c.has(v))
1449
+ throw new e("Side channel does not contain " + r(v));
1450
+ },
1451
+ delete: function(v) {
1452
+ var p = u && u.next, y = i(u, v);
1453
+ return y && p && p === y && (u = void 0), !!y;
1454
+ },
1455
+ get: function(v) {
1456
+ return a(u, v);
1457
+ },
1458
+ has: function(v) {
1459
+ return f(u, v);
1460
+ },
1461
+ set: function(v, p) {
1462
+ u || (u = {
1463
+ next: void 0
1464
+ }), t(
1465
+ /** @type {NonNullable<typeof $o>} */
1466
+ u,
1467
+ v,
1468
+ p
1469
+ );
1470
+ }
1471
+ };
1472
+ return c;
1473
+ }, ft;
1474
+ }
1475
+ var st, va;
1476
+ function so() {
1477
+ if (va) return st;
1478
+ va = 1;
1479
+ var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a = /* @__PURE__ */ nr(), t = r("%Map%", !0), f = e("Map.prototype.get", !0), i = e("Map.prototype.set", !0), o = e("Map.prototype.has", !0), u = e("Map.prototype.delete", !0), c = e("Map.prototype.size", !0);
1480
+ return st = !!t && /** @type {Exclude<import('.'), false>} */
1481
+ function() {
1482
+ var p, y = {
1483
+ assert: function(h) {
1484
+ if (!y.has(h))
1485
+ throw new a("Side channel does not contain " + n(h));
1486
+ },
1487
+ delete: function(h) {
1488
+ if (p) {
1489
+ var S = u(p, h);
1490
+ return c(p) === 0 && (p = void 0), S;
1491
+ }
1492
+ return !1;
1493
+ },
1494
+ get: function(h) {
1495
+ if (p)
1496
+ return f(p, h);
1497
+ },
1498
+ has: function(h) {
1499
+ return p ? o(p, h) : !1;
1500
+ },
1501
+ set: function(h, S) {
1502
+ p || (p = new t()), i(p, h, S);
1503
+ }
1504
+ };
1505
+ return y;
1506
+ }, st;
1507
+ }
1508
+ var lt, ga;
1509
+ function Ai() {
1510
+ if (ga) return lt;
1511
+ ga = 1;
1512
+ var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a = so(), t = /* @__PURE__ */ nr(), f = r("%WeakMap%", !0), i = e("WeakMap.prototype.get", !0), o = e("WeakMap.prototype.set", !0), u = e("WeakMap.prototype.has", !0), c = e("WeakMap.prototype.delete", !0);
1513
+ return lt = f ? (
1514
+ /** @type {Exclude<import('.'), false>} */
1515
+ function() {
1516
+ var p, y, h = {
1517
+ assert: function(S) {
1518
+ if (!h.has(S))
1519
+ throw new t("Side channel does not contain " + n(S));
1520
+ },
1521
+ delete: function(S) {
1522
+ if (f && S && (typeof S == "object" || typeof S == "function")) {
1523
+ if (p)
1524
+ return c(p, S);
1525
+ } else if (a && y)
1526
+ return y.delete(S);
1527
+ return !1;
1528
+ },
1529
+ get: function(S) {
1530
+ return f && S && (typeof S == "object" || typeof S == "function") && p ? i(p, S) : y && y.get(S);
1531
+ },
1532
+ has: function(S) {
1533
+ return f && S && (typeof S == "object" || typeof S == "function") && p ? u(p, S) : !!y && y.has(S);
1534
+ },
1535
+ set: function(S, R) {
1536
+ f && S && (typeof S == "object" || typeof S == "function") ? (p || (p = new f()), o(p, S, R)) : a && (y || (y = a()), y.set(S, R));
1537
+ }
1538
+ };
1539
+ return h;
1540
+ }
1541
+ ) : a, lt;
1542
+ }
1543
+ var ct, ha;
1544
+ function lo() {
1545
+ if (ha) return ct;
1546
+ ha = 1;
1547
+ var r = /* @__PURE__ */ nr(), e = /* @__PURE__ */ Kr(), n = bi(), a = so(), t = Ai(), f = t || a || n;
1548
+ return ct = function() {
1549
+ var o, u = {
1550
+ assert: function(c) {
1551
+ if (!u.has(c))
1552
+ throw new r("Side channel does not contain " + e(c));
1553
+ },
1554
+ delete: function(c) {
1555
+ return !!o && o.delete(c);
1556
+ },
1557
+ get: function(c) {
1558
+ return o && o.get(c);
1559
+ },
1560
+ has: function(c) {
1561
+ return !!o && o.has(c);
1562
+ },
1563
+ set: function(c, v) {
1564
+ o || (o = f()), o.set(c, v);
1565
+ }
1566
+ };
1567
+ return u;
1568
+ }, ct;
1569
+ }
1570
+ var pt, da;
1571
+ function Oi() {
1572
+ if (da) return pt;
1573
+ da = 1;
1574
+ var r = /* @__PURE__ */ Yt(), e = lo()(), n = /* @__PURE__ */ nr(), a = {
1575
+ assert: function(t, f) {
1576
+ if (!t || typeof t != "object" && typeof t != "function")
1577
+ throw new n("`O` is not an object");
1578
+ if (typeof f != "string")
1579
+ throw new n("`slot` must be a string");
1580
+ if (e.assert(t), !a.has(t, f))
1581
+ throw new n("`" + f + "` is not present on `O`");
1582
+ },
1583
+ get: function(t, f) {
1584
+ if (!t || typeof t != "object" && typeof t != "function")
1585
+ throw new n("`O` is not an object");
1586
+ if (typeof f != "string")
1587
+ throw new n("`slot` must be a string");
1588
+ var i = e.get(t);
1589
+ return i && i[
1590
+ /** @type {SaltedInternalSlot} */
1591
+ "$" + f
1592
+ ];
1593
+ },
1594
+ has: function(t, f) {
1595
+ if (!t || typeof t != "object" && typeof t != "function")
1596
+ throw new n("`O` is not an object");
1597
+ if (typeof f != "string")
1598
+ throw new n("`slot` must be a string");
1599
+ var i = e.get(t);
1600
+ return !!i && r(
1601
+ i,
1602
+ /** @type {SaltedInternalSlot} */
1603
+ "$" + f
1604
+ );
1605
+ },
1606
+ set: function(t, f, i) {
1607
+ if (!t || typeof t != "object" && typeof t != "function")
1608
+ throw new n("`O` is not an object");
1609
+ if (typeof f != "string")
1610
+ throw new n("`slot` must be a string");
1611
+ var o = e.get(t);
1612
+ o || (o = {}, e.set(t, o)), o[
1613
+ /** @type {SaltedInternalSlot} */
1614
+ "$" + f
1615
+ ] = i;
1616
+ }
1617
+ };
1618
+ return Object.freeze && Object.freeze(a), pt = a, pt;
1619
+ }
1620
+ var yt, ma;
1621
+ function wi() {
1622
+ if (ma) return yt;
1623
+ ma = 1;
1624
+ var r = Oi(), e = /* @__PURE__ */ kt(), n = typeof StopIteration == "object" ? StopIteration : null;
1625
+ return yt = function(t) {
1626
+ if (!n)
1627
+ throw new e("this environment lacks StopIteration");
1628
+ r.set(t, "[[Done]]", !1);
1629
+ var f = {
1630
+ next: (
1631
+ /** @type {() => IteratorResult<T>} */
1632
+ function() {
1633
+ var o = (
1634
+ /** @type {typeof origIterator} */
1635
+ r.get(this, "[[Iterator]]")
1636
+ ), u = !!r.get(o, "[[Done]]");
1637
+ try {
1638
+ return {
1639
+ done: u,
1640
+ // eslint-disable-next-line no-extra-parens
1641
+ value: u ? void 0 : (
1642
+ /** @type {T} */
1643
+ o.next()
1644
+ )
1645
+ };
1646
+ } catch (c) {
1647
+ if (r.set(o, "[[Done]]", !0), c !== n)
1648
+ throw c;
1649
+ return {
1650
+ done: !0,
1651
+ value: void 0
1652
+ };
1653
+ }
1654
+ }
1655
+ )
1656
+ };
1657
+ return r.set(f, "[[Iterator]]", t), f;
1658
+ }, yt;
1659
+ }
1660
+ var vt, Sa;
1661
+ function co() {
1662
+ if (Sa) return vt;
1663
+ Sa = 1;
1664
+ var r = {}.toString;
1665
+ return vt = Array.isArray || function(e) {
1666
+ return r.call(e) == "[object Array]";
1667
+ }, vt;
1668
+ }
1669
+ var gt, ba;
1670
+ function po() {
1671
+ if (ba) return gt;
1672
+ ba = 1;
1673
+ var r = /* @__PURE__ */ Q(), e = r("String.prototype.valueOf"), n = function(o) {
1674
+ try {
1675
+ return e(o), !0;
1676
+ } catch {
1677
+ return !1;
1678
+ }
1679
+ }, a = r("Object.prototype.toString"), t = "[object String]", f = qr()();
1680
+ return gt = function(o) {
1681
+ return typeof o == "string" ? !0 : !o || typeof o != "object" ? !1 : f ? n(o) : a(o) === t;
1682
+ }, gt;
1683
+ }
1684
+ var ht, Aa;
1685
+ function yo() {
1686
+ if (Aa) return ht;
1687
+ Aa = 1;
1688
+ var r = typeof Map == "function" && Map.prototype ? Map : null, e = typeof Set == "function" && Set.prototype ? Set : null, n;
1689
+ r || (n = function(i) {
1690
+ return !1;
1691
+ });
1692
+ var a = r ? Map.prototype.has : null, t = e ? Set.prototype.has : null;
1693
+ return !n && !a && (n = function(i) {
1694
+ return !1;
1695
+ }), ht = n || function(i) {
1696
+ if (!i || typeof i != "object")
1697
+ return !1;
1698
+ try {
1699
+ if (a.call(i), t)
1700
+ try {
1701
+ t.call(i);
1702
+ } catch {
1703
+ return !0;
1704
+ }
1705
+ return i instanceof r;
1706
+ } catch {
1707
+ }
1708
+ return !1;
1709
+ }, ht;
1710
+ }
1711
+ var dt, Oa;
1712
+ function vo() {
1713
+ if (Oa) return dt;
1714
+ Oa = 1;
1715
+ var r = typeof Map == "function" && Map.prototype ? Map : null, e = typeof Set == "function" && Set.prototype ? Set : null, n;
1716
+ e || (n = function(i) {
1717
+ return !1;
1718
+ });
1719
+ var a = r ? Map.prototype.has : null, t = e ? Set.prototype.has : null;
1720
+ return !n && !t && (n = function(i) {
1721
+ return !1;
1722
+ }), dt = n || function(i) {
1723
+ if (!i || typeof i != "object")
1724
+ return !1;
1725
+ try {
1726
+ if (t.call(i), a)
1727
+ try {
1728
+ a.call(i);
1729
+ } catch {
1730
+ return !0;
1731
+ }
1732
+ return i instanceof e;
1733
+ } catch {
1734
+ }
1735
+ return !1;
1736
+ }, dt;
1737
+ }
1738
+ var wa;
1739
+ function qi() {
1740
+ if (wa) return Mr.exports;
1741
+ wa = 1;
1742
+ var r = /* @__PURE__ */ fo(), e = /* @__PURE__ */ wi();
1743
+ if (Gt()() || Vr()()) {
1744
+ var n = Symbol.iterator;
1745
+ Mr.exports = function(P) {
1746
+ if (P != null && typeof P[n] < "u")
1747
+ return P[n]();
1748
+ if (r(P))
1749
+ return Array.prototype[n].call(P);
1750
+ };
1751
+ } else {
1752
+ var a = co(), t = po(), f = /* @__PURE__ */ pr(), i = f("%Map%", !0), o = f("%Set%", !0), u = oo(), c = u("Array.prototype.push"), v = u("String.prototype.charCodeAt"), p = u("String.prototype.slice"), y = function(P, _) {
1753
+ var L = P.length;
1754
+ if (_ + 1 >= L)
1755
+ return _ + 1;
1756
+ var N = v(P, _);
1757
+ if (N < 55296 || N > 56319)
1758
+ return _ + 1;
1759
+ var U = v(P, _ + 1);
1760
+ return U < 56320 || U > 57343 ? _ + 1 : _ + 2;
1761
+ }, h = function(P) {
1762
+ var _ = 0;
1763
+ return {
1764
+ next: function() {
1765
+ var N = _ >= P.length, U;
1766
+ return N || (U = P[_], _ += 1), {
1767
+ done: N,
1768
+ value: U
1769
+ };
1770
+ }
1771
+ };
1772
+ }, S = function(P, _) {
1773
+ if (a(P) || r(P))
1774
+ return h(P);
1775
+ if (t(P)) {
1776
+ var L = 0;
1777
+ return {
1778
+ next: function() {
1779
+ var U = y(P, L), V = p(P, L, U);
1780
+ return L = U, {
1781
+ done: U > P.length,
1782
+ value: V
1783
+ };
1784
+ }
1785
+ };
1786
+ }
1787
+ if (_ && typeof P["_es6-shim iterator_"] < "u")
1788
+ return P["_es6-shim iterator_"]();
1789
+ };
1790
+ if (!i && !o)
1791
+ Mr.exports = function(P) {
1792
+ if (P != null)
1793
+ return S(P, !0);
1794
+ };
1795
+ else {
1796
+ var R = /* @__PURE__ */ yo(), w = /* @__PURE__ */ vo(), q = u("Map.prototype.forEach", !0), O = u("Set.prototype.forEach", !0);
1797
+ if (typeof process > "u" || !process.versions || !process.versions.node)
1798
+ var m = u("Map.prototype.iterator", !0), T = u("Set.prototype.iterator", !0);
1799
+ var X = u("Map.prototype.@@iterator", !0) || u("Map.prototype._es6-shim iterator_", !0), H = u("Set.prototype.@@iterator", !0) || u("Set.prototype._es6-shim iterator_", !0), F = function(P) {
1800
+ if (R(P)) {
1801
+ if (m)
1802
+ return e(m(P));
1803
+ if (X)
1804
+ return X(P);
1805
+ if (q) {
1806
+ var _ = [];
1807
+ return q(P, function(N, U) {
1808
+ c(_, [U, N]);
1809
+ }), h(_);
1810
+ }
1811
+ }
1812
+ if (w(P)) {
1813
+ if (T)
1814
+ return e(T(P));
1815
+ if (H)
1816
+ return H(P);
1817
+ if (O) {
1818
+ var L = [];
1819
+ return O(P, function(N) {
1820
+ c(L, N);
1821
+ }), h(L);
1822
+ }
1823
+ }
1824
+ };
1825
+ Mr.exports = function(P) {
1826
+ return F(P) || S(P);
1827
+ };
1828
+ }
1829
+ }
1830
+ return Mr.exports;
1831
+ }
1832
+ var mt, qa;
1833
+ function go() {
1834
+ if (qa) return mt;
1835
+ qa = 1;
1836
+ var r = function(e) {
1837
+ return e !== e;
1838
+ };
1839
+ return mt = function(n, a) {
1840
+ return n === 0 && a === 0 ? 1 / n === 1 / a : !!(n === a || r(n) && r(a));
1841
+ }, mt;
1842
+ }
1843
+ var St, Pa;
1844
+ function ho() {
1845
+ if (Pa) return St;
1846
+ Pa = 1;
1847
+ var r = go();
1848
+ return St = function() {
1849
+ return typeof Object.is == "function" ? Object.is : r;
1850
+ }, St;
1851
+ }
1852
+ var bt, Ia;
1853
+ function Pi() {
1854
+ if (Ia) return bt;
1855
+ Ia = 1;
1856
+ var r = ho(), e = wr();
1857
+ return bt = function() {
1858
+ var a = r();
1859
+ return e(Object, { is: a }, {
1860
+ is: function() {
1861
+ return Object.is !== a;
1862
+ }
1863
+ }), a;
1864
+ }, bt;
1865
+ }
1866
+ var At, Ra;
1867
+ function Ii() {
1868
+ if (Ra) return At;
1869
+ Ra = 1;
1870
+ var r = wr(), e = xr(), n = go(), a = ho(), t = Pi(), f = e(a(), Object);
1871
+ return r(f, {
1872
+ getPolyfill: a,
1873
+ implementation: n,
1874
+ shim: t
1875
+ }), At = f, At;
1876
+ }
1877
+ var Ot, $a;
1878
+ function mo() {
1879
+ if ($a) return Ot;
1880
+ $a = 1;
1881
+ var r = xr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ pr(), a = n("%ArrayBuffer%", !0), t = e("ArrayBuffer.prototype.byteLength", !0), f = e("Object.prototype.toString"), i = !!a && !t && new a(0).slice, o = !!i && r(i);
1882
+ return Ot = t || o ? function(c) {
1883
+ if (!c || typeof c != "object")
1884
+ return !1;
1885
+ try {
1886
+ return t ? t(c) : o(c, 0), !0;
1887
+ } catch {
1888
+ return !1;
1889
+ }
1890
+ } : a ? function(c) {
1891
+ return f(c) === "[object ArrayBuffer]";
1892
+ } : function(c) {
1893
+ return !1;
1894
+ }, Ot;
1895
+ }
1896
+ var wt, Ea;
1897
+ function Ri() {
1898
+ if (Ea) return wt;
1899
+ Ea = 1;
1900
+ var r = /* @__PURE__ */ Q(), e = r("Date.prototype.getDay"), n = function(o) {
1901
+ try {
1902
+ return e(o), !0;
1903
+ } catch {
1904
+ return !1;
1905
+ }
1906
+ }, a = r("Object.prototype.toString"), t = "[object Date]", f = qr()();
1907
+ return wt = function(o) {
1908
+ return typeof o != "object" || o === null ? !1 : f ? n(o) : a(o) === t;
1909
+ }, wt;
1910
+ }
1911
+ var qt, xa;
1912
+ function So() {
1913
+ if (xa) return qt;
1914
+ xa = 1;
1915
+ var r = /* @__PURE__ */ Q(), e = qr()(), n = /* @__PURE__ */ Yt(), a = /* @__PURE__ */ Or(), t;
1916
+ if (e) {
1917
+ var f = r("RegExp.prototype.exec"), i = {}, o = function() {
1918
+ throw i;
1919
+ }, u = {
1920
+ toString: o,
1921
+ valueOf: o
1922
+ };
1923
+ typeof Symbol.toPrimitive == "symbol" && (u[Symbol.toPrimitive] = o), t = function(y) {
1924
+ if (!y || typeof y != "object")
1925
+ return !1;
1926
+ var h = (
1927
+ /** @type {NonNullable<typeof gOPD>} */
1928
+ a(
1929
+ /** @type {{ lastIndex?: unknown }} */
1930
+ y,
1931
+ "lastIndex"
1932
+ )
1933
+ ), S = h && n(h, "value");
1934
+ if (!S)
1935
+ return !1;
1936
+ try {
1937
+ f(
1938
+ y,
1939
+ /** @type {string} */
1940
+ /** @type {unknown} */
1941
+ u
1942
+ );
1943
+ } catch (R) {
1944
+ return R === i;
1945
+ }
1946
+ };
1947
+ } else {
1948
+ var c = r("Object.prototype.toString"), v = "[object RegExp]";
1949
+ t = function(y) {
1950
+ return !y || typeof y != "object" && typeof y != "function" ? !1 : c(y) === v;
1951
+ };
1952
+ }
1953
+ return qt = t, qt;
1954
+ }
1955
+ var Pt, Ba;
1956
+ function $i() {
1957
+ if (Ba) return Pt;
1958
+ Ba = 1;
1959
+ var r = /* @__PURE__ */ Q(), e = r("SharedArrayBuffer.prototype.byteLength", !0);
1960
+ return Pt = e ? function(a) {
1961
+ if (!a || typeof a != "object")
1962
+ return !1;
1963
+ try {
1964
+ return e(a), !0;
1965
+ } catch {
1966
+ return !1;
1967
+ }
1968
+ } : function(a) {
1969
+ return !1;
1970
+ }, Pt;
1971
+ }
1972
+ var It, Ta;
1973
+ function Ei() {
1974
+ if (Ta) return It;
1975
+ Ta = 1;
1976
+ var r = /* @__PURE__ */ Q(), e = r("Number.prototype.toString"), n = function(o) {
1977
+ try {
1978
+ return e(o), !0;
1979
+ } catch {
1980
+ return !1;
1981
+ }
1982
+ }, a = r("Object.prototype.toString"), t = "[object Number]", f = qr()();
1983
+ return It = function(o) {
1984
+ return typeof o == "number" ? !0 : !o || typeof o != "object" ? !1 : f ? n(o) : a(o) === t;
1985
+ }, It;
1986
+ }
1987
+ var Rt, Ma;
1988
+ function xi() {
1989
+ if (Ma) return Rt;
1990
+ Ma = 1;
1991
+ var r = /* @__PURE__ */ Q(), e = r("Boolean.prototype.toString"), n = r("Object.prototype.toString"), a = function(o) {
1992
+ try {
1993
+ return e(o), !0;
1994
+ } catch {
1995
+ return !1;
1996
+ }
1997
+ }, t = "[object Boolean]", f = qr()();
1998
+ return Rt = function(o) {
1999
+ return typeof o == "boolean" ? !0 : o === null || typeof o != "object" ? !1 : f ? a(o) : n(o) === t;
2000
+ }, Rt;
2001
+ }
2002
+ var Wr = { exports: {} }, $t, ja;
2003
+ function Bi() {
2004
+ if (ja) return $t;
2005
+ ja = 1;
2006
+ var r = /* @__PURE__ */ Q(), e = So(), n = r("RegExp.prototype.exec"), a = /* @__PURE__ */ nr();
2007
+ return $t = function(f) {
2008
+ if (!e(f))
2009
+ throw new a("`regex` must be a RegExp");
2010
+ return function(o) {
2011
+ return n(f, o) !== null;
2012
+ };
2013
+ }, $t;
2014
+ }
2015
+ var Ca;
2016
+ function Ti() {
2017
+ if (Ca) return Wr.exports;
2018
+ Ca = 1;
2019
+ var r = /* @__PURE__ */ Q(), e = r("Object.prototype.toString"), n = Gt()(), a = /* @__PURE__ */ Bi();
2020
+ if (n) {
2021
+ var t = r("Symbol.prototype.toString"), f = a(/^Symbol\(.*\)$/), i = function(u) {
2022
+ return typeof u.valueOf() != "symbol" ? !1 : f(t(u));
2023
+ };
2024
+ Wr.exports = function(u) {
2025
+ if (typeof u == "symbol")
2026
+ return !0;
2027
+ if (!u || typeof u != "object" || e(u) !== "[object Symbol]")
2028
+ return !1;
2029
+ try {
2030
+ return i(u);
2031
+ } catch {
2032
+ return !1;
2033
+ }
2034
+ };
2035
+ } else
2036
+ Wr.exports = function(u) {
2037
+ return !1;
2038
+ };
2039
+ return Wr.exports;
2040
+ }
2041
+ var kr = { exports: {} }, Et, Da;
2042
+ function Mi() {
2043
+ if (Da) return Et;
2044
+ Da = 1;
2045
+ var r = typeof BigInt < "u" && BigInt;
2046
+ return Et = function() {
2047
+ return typeof r == "function" && typeof BigInt == "function" && typeof r(42) == "bigint" && typeof BigInt(42) == "bigint";
2048
+ }, Et;
2049
+ }
2050
+ var Fa;
2051
+ function ji() {
2052
+ if (Fa) return kr.exports;
2053
+ Fa = 1;
2054
+ var r = Mi()();
2055
+ if (r) {
2056
+ var e = BigInt.prototype.valueOf, n = function(t) {
2057
+ try {
2058
+ return e.call(t), !0;
2059
+ } catch {
2060
+ }
2061
+ return !1;
2062
+ };
2063
+ kr.exports = function(t) {
2064
+ return t === null || typeof t > "u" || typeof t == "boolean" || typeof t == "string" || typeof t == "number" || typeof t == "symbol" || typeof t == "function" ? !1 : typeof t == "bigint" ? !0 : n(t);
2065
+ };
2066
+ } else
2067
+ kr.exports = function(t) {
2068
+ return !1;
2069
+ };
2070
+ return kr.exports;
2071
+ }
2072
+ var xt, _a;
2073
+ function Ci() {
2074
+ if (_a) return xt;
2075
+ _a = 1;
2076
+ var r = po(), e = Ei(), n = xi(), a = Ti(), t = ji();
2077
+ return xt = function(i) {
2078
+ if (i == null || typeof i != "object" && typeof i != "function")
2079
+ return null;
2080
+ if (r(i))
2081
+ return "String";
2082
+ if (e(i))
2083
+ return "Number";
2084
+ if (n(i))
2085
+ return "Boolean";
2086
+ if (a(i))
2087
+ return "Symbol";
2088
+ if (t(i))
2089
+ return "BigInt";
2090
+ }, xt;
2091
+ }
2092
+ var Bt, Na;
2093
+ function Di() {
2094
+ if (Na) return Bt;
2095
+ Na = 1;
2096
+ var r = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap : null, e = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet : null, n;
2097
+ r || (n = function(i) {
2098
+ return !1;
2099
+ });
2100
+ var a = r ? r.prototype.has : null, t = e ? e.prototype.has : null;
2101
+ return !n && !a && (n = function(i) {
2102
+ return !1;
2103
+ }), Bt = n || function(i) {
2104
+ if (!i || typeof i != "object")
2105
+ return !1;
2106
+ try {
2107
+ if (a.call(i, a), t)
2108
+ try {
2109
+ t.call(i, t);
2110
+ } catch {
2111
+ return !0;
2112
+ }
2113
+ return i instanceof r;
2114
+ } catch {
2115
+ }
2116
+ return !1;
2117
+ }, Bt;
2118
+ }
2119
+ var Lr = { exports: {} }, Wa;
2120
+ function Fi() {
2121
+ if (Wa) return Lr.exports;
2122
+ Wa = 1;
2123
+ var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = r("%WeakSet%", !0), a = e("WeakSet.prototype.has", !0);
2124
+ if (a) {
2125
+ var t = e("WeakMap.prototype.has", !0);
2126
+ Lr.exports = function(i) {
2127
+ if (!i || typeof i != "object")
2128
+ return !1;
2129
+ try {
2130
+ if (a(i, a), t)
2131
+ try {
2132
+ t(i, t);
2133
+ } catch {
2134
+ return !0;
2135
+ }
2136
+ return i instanceof n;
2137
+ } catch {
2138
+ }
2139
+ return !1;
2140
+ };
2141
+ } else
2142
+ Lr.exports = function(i) {
2143
+ return !1;
2144
+ };
2145
+ return Lr.exports;
2146
+ }
2147
+ var Tt, ka;
2148
+ function _i() {
2149
+ if (ka) return Tt;
2150
+ ka = 1;
2151
+ var r = /* @__PURE__ */ yo(), e = /* @__PURE__ */ vo(), n = Di(), a = /* @__PURE__ */ Fi();
2152
+ return Tt = function(f) {
2153
+ if (f && typeof f == "object") {
2154
+ if (r(f))
2155
+ return "Map";
2156
+ if (e(f))
2157
+ return "Set";
2158
+ if (n(f))
2159
+ return "WeakMap";
2160
+ if (a(f))
2161
+ return "WeakSet";
2162
+ }
2163
+ return !1;
2164
+ }, Tt;
2165
+ }
2166
+ var Mt, La;
2167
+ function Ni() {
2168
+ if (La) return Mt;
2169
+ La = 1;
2170
+ var r = Function.prototype.toString, e = typeof Reflect == "object" && Reflect !== null && Reflect.apply, n, a;
2171
+ if (typeof e == "function" && typeof Object.defineProperty == "function")
2172
+ try {
2173
+ n = Object.defineProperty({}, "length", {
2174
+ get: function() {
2175
+ throw a;
2176
+ }
2177
+ }), a = {}, e(function() {
2178
+ throw 42;
2179
+ }, null, n);
2180
+ } catch (O) {
2181
+ O !== a && (e = null);
2182
+ }
2183
+ else
2184
+ e = null;
2185
+ var t = /^\s*class\b/, f = function(m) {
2186
+ try {
2187
+ var T = r.call(m);
2188
+ return t.test(T);
2189
+ } catch {
2190
+ return !1;
2191
+ }
2192
+ }, i = function(m) {
2193
+ try {
2194
+ return f(m) ? !1 : (r.call(m), !0);
2195
+ } catch {
2196
+ return !1;
2197
+ }
2198
+ }, o = Object.prototype.toString, u = "[object Object]", c = "[object Function]", v = "[object GeneratorFunction]", p = "[object HTMLAllCollection]", y = "[object HTML document.all class]", h = "[object HTMLCollection]", S = typeof Symbol == "function" && !!Symbol.toStringTag, R = !(0 in [,]), w = function() {
2199
+ return !1;
2200
+ };
2201
+ if (typeof document == "object") {
2202
+ var q = document.all;
2203
+ o.call(q) === o.call(document.all) && (w = function(m) {
2204
+ if ((R || !m) && (typeof m > "u" || typeof m == "object"))
2205
+ try {
2206
+ var T = o.call(m);
2207
+ return (T === p || T === y || T === h || T === u) && m("") == null;
2208
+ } catch {
2209
+ }
2210
+ return !1;
2211
+ });
2212
+ }
2213
+ return Mt = e ? function(m) {
2214
+ if (w(m))
2215
+ return !0;
2216
+ if (!m || typeof m != "function" && typeof m != "object")
2217
+ return !1;
2218
+ try {
2219
+ e(m, null, n);
2220
+ } catch (T) {
2221
+ if (T !== a)
2222
+ return !1;
2223
+ }
2224
+ return !f(m) && i(m);
2225
+ } : function(m) {
2226
+ if (w(m))
2227
+ return !0;
2228
+ if (!m || typeof m != "function" && typeof m != "object")
2229
+ return !1;
2230
+ if (S)
2231
+ return i(m);
2232
+ if (f(m))
2233
+ return !1;
2234
+ var T = o.call(m);
2235
+ return T !== c && T !== v && !/^\[object HTML/.test(T) ? !1 : i(m);
2236
+ }, Mt;
2237
+ }
2238
+ var jt, Ua;
2239
+ function Wi() {
2240
+ if (Ua) return jt;
2241
+ Ua = 1;
2242
+ var r = Ni(), e = Object.prototype.toString, n = Object.prototype.hasOwnProperty, a = function(u, c, v) {
2243
+ for (var p = 0, y = u.length; p < y; p++)
2244
+ n.call(u, p) && (v == null ? c(u[p], p, u) : c.call(v, u[p], p, u));
2245
+ }, t = function(u, c, v) {
2246
+ for (var p = 0, y = u.length; p < y; p++)
2247
+ v == null ? c(u.charAt(p), p, u) : c.call(v, u.charAt(p), p, u);
2248
+ }, f = function(u, c, v) {
2249
+ for (var p in u)
2250
+ n.call(u, p) && (v == null ? c(u[p], p, u) : c.call(v, u[p], p, u));
2251
+ };
2252
+ function i(o) {
2253
+ return e.call(o) === "[object Array]";
2254
+ }
2255
+ return jt = function(u, c, v) {
2256
+ if (!r(c))
2257
+ throw new TypeError("iterator must be a function");
2258
+ var p;
2259
+ arguments.length >= 3 && (p = v), i(u) ? a(u, c, p) : typeof u == "string" ? t(u, c, p) : f(u, c, p);
2260
+ }, jt;
2261
+ }
2262
+ var Ct, Ha;
2263
+ function ki() {
2264
+ return Ha || (Ha = 1, Ct = [
2265
+ "Float16Array",
2266
+ "Float32Array",
2267
+ "Float64Array",
2268
+ "Int8Array",
2269
+ "Int16Array",
2270
+ "Int32Array",
2271
+ "Uint8Array",
2272
+ "Uint8ClampedArray",
2273
+ "Uint16Array",
2274
+ "Uint32Array",
2275
+ "BigInt64Array",
2276
+ "BigUint64Array"
2277
+ ]), Ct;
2278
+ }
2279
+ var Dt, Ga;
2280
+ function Li() {
2281
+ if (Ga) return Dt;
2282
+ Ga = 1;
2283
+ var r = /* @__PURE__ */ ki(), e = typeof globalThis > "u" ? Gr : globalThis;
2284
+ return Dt = function() {
2285
+ for (var a = [], t = 0; t < r.length; t++)
2286
+ typeof e[r[t]] == "function" && (a[a.length] = r[t]);
2287
+ return a;
2288
+ }, Dt;
2289
+ }
2290
+ var Ft, za;
2291
+ function Ui() {
2292
+ if (za) return Ft;
2293
+ za = 1;
2294
+ var r = Wi(), e = /* @__PURE__ */ Li(), n = xr(), a = /* @__PURE__ */ Q(), t = /* @__PURE__ */ Or(), f = Jt(), i = a("Object.prototype.toString"), o = qr()(), u = typeof globalThis > "u" ? Gr : globalThis, c = e(), v = a("String.prototype.slice"), p = a("Array.prototype.indexOf", !0) || function(w, q) {
2295
+ for (var O = 0; O < w.length; O += 1)
2296
+ if (w[O] === q)
2297
+ return O;
2298
+ return -1;
2299
+ }, y = { __proto__: null };
2300
+ o && t && f ? r(c, function(R) {
2301
+ var w = new u[R]();
2302
+ if (Symbol.toStringTag in w && f) {
2303
+ var q = f(w), O = t(q, Symbol.toStringTag);
2304
+ if (!O && q) {
2305
+ var m = f(q);
2306
+ O = t(m, Symbol.toStringTag);
2307
+ }
2308
+ y["$" + R] = n(O.get);
2309
+ }
2310
+ }) : r(c, function(R) {
2311
+ var w = new u[R](), q = w.slice || w.set;
2312
+ q && (y[
2313
+ /** @type {`$${import('.').TypedArrayName}`} */
2314
+ "$" + R
2315
+ ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
2316
+ // @ts-expect-error TODO FIXME
2317
+ n(q));
2318
+ });
2319
+ var h = function(w) {
2320
+ var q = !1;
2321
+ return r(
2322
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
2323
+ y,
2324
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
2325
+ function(O, m) {
2326
+ if (!q)
2327
+ try {
2328
+ "$" + O(w) === m && (q = /** @type {import('.').TypedArrayName} */
2329
+ v(m, 1));
2330
+ } catch {
2331
+ }
2332
+ }
2333
+ ), q;
2334
+ }, S = function(w) {
2335
+ var q = !1;
2336
+ return r(
2337
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
2338
+ y,
2339
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
2340
+ function(O, m) {
2341
+ if (!q)
2342
+ try {
2343
+ O(w), q = /** @type {import('.').TypedArrayName} */
2344
+ v(m, 1);
2345
+ } catch {
2346
+ }
2347
+ }
2348
+ ), q;
2349
+ };
2350
+ return Ft = function(w) {
2351
+ if (!w || typeof w != "object")
2352
+ return !1;
2353
+ if (!o) {
2354
+ var q = v(i(w), 8, -1);
2355
+ return p(c, q) > -1 ? q : q !== "Object" ? !1 : S(w);
2356
+ }
2357
+ return t ? h(w) : null;
2358
+ }, Ft;
2359
+ }
2360
+ var _t, Va;
2361
+ function Hi() {
2362
+ if (Va) return _t;
2363
+ Va = 1;
2364
+ var r = /* @__PURE__ */ Q(), e = r("ArrayBuffer.prototype.byteLength", !0), n = /* @__PURE__ */ mo();
2365
+ return _t = function(t) {
2366
+ return n(t) ? e ? e(t) : t.byteLength : NaN;
2367
+ }, _t;
2368
+ }
2369
+ var Nt, Ka;
2370
+ function Gi() {
2371
+ if (Ka) return Nt;
2372
+ Ka = 1;
2373
+ var r = pi(), e = oo(), n = hi(), a = /* @__PURE__ */ pr(), t = qi(), f = lo(), i = Ii(), o = /* @__PURE__ */ fo(), u = co(), c = /* @__PURE__ */ mo(), v = /* @__PURE__ */ Ri(), p = So(), y = /* @__PURE__ */ $i(), h = Wt(), S = Ci(), R = /* @__PURE__ */ _i(), w = /* @__PURE__ */ Ui(), q = /* @__PURE__ */ Hi(), O = e("SharedArrayBuffer.prototype.byteLength", !0), m = e("Date.prototype.getTime"), T = Object.getPrototypeOf, X = e("Object.prototype.toString"), H = a("%Set%", !0), F = e("Map.prototype.has", !0), D = e("Map.prototype.get", !0), P = e("Map.prototype.size", !0), _ = e("Set.prototype.add", !0), L = e("Set.prototype.delete", !0), N = e("Set.prototype.has", !0), U = e("Set.prototype.size", !0);
2374
+ function V(g, d, E, $) {
2375
+ for (var M = t(g), j; (j = M.next()) && !j.done; )
2376
+ if (G(d, j.value, E, $))
2377
+ return L(g, j.value), !0;
2378
+ return !1;
2379
+ }
2380
+ function ur(g) {
2381
+ if (typeof g > "u")
2382
+ return null;
2383
+ if (typeof g != "object")
2384
+ return typeof g == "symbol" ? !1 : typeof g == "string" || typeof g == "number" ? +g == +g : !0;
2385
+ }
2386
+ function Pr(g, d, E, $, M, j) {
2387
+ var A = ur(E);
2388
+ if (A != null)
2389
+ return A;
2390
+ var I = D(d, A), b = r({}, M, { strict: !1 });
2391
+ return typeof I > "u" && !F(d, A) || !G($, I, b, j) ? !1 : !F(g, A) && G($, I, b, j);
2392
+ }
2393
+ function mr(g, d, E) {
2394
+ var $ = ur(E);
2395
+ return $ ?? (N(d, $) && !N(g, $));
2396
+ }
2397
+ function ar(g, d, E, $, M, j) {
2398
+ for (var A = t(g), I, b; (I = A.next()) && !I.done; )
2399
+ if (b = I.value, // eslint-disable-next-line no-use-before-define
2400
+ G(E, b, M, j) && G($, D(d, b), M, j))
2401
+ return L(g, b), !0;
2402
+ return !1;
2403
+ }
2404
+ function G(g, d, E, $) {
2405
+ var M = E || {};
2406
+ if (M.strict ? i(g, d) : g === d)
2407
+ return !0;
2408
+ var j = S(g), A = S(d);
2409
+ if (j !== A)
2410
+ return !1;
2411
+ if (!g || !d || typeof g != "object" && typeof d != "object")
2412
+ return M.strict ? i(g, d) : g == d;
2413
+ var I = $.has(g), b = $.has(d), x;
2414
+ if (I && b) {
2415
+ if ($.get(g) === $.get(d))
2416
+ return !0;
2417
+ } else
2418
+ x = {};
2419
+ return I || $.set(g, x), b || $.set(d, x), yr(g, d, M, $);
2420
+ }
2421
+ function Sr(g) {
2422
+ return !g || typeof g != "object" || typeof g.length != "number" || typeof g.copy != "function" || typeof g.slice != "function" || g.length > 0 && typeof g[0] != "number" ? !1 : !!(g.constructor && g.constructor.isBuffer && g.constructor.isBuffer(g));
2423
+ }
2424
+ function Ir(g, d, E, $) {
2425
+ if (U(g) !== U(d))
2426
+ return !1;
2427
+ for (var M = t(g), j = t(d), A, I, b; (A = M.next()) && !A.done; )
2428
+ if (A.value && typeof A.value == "object")
2429
+ b || (b = new H()), _(b, A.value);
2430
+ else if (!N(d, A.value)) {
2431
+ if (E.strict || !mr(g, d, A.value))
2432
+ return !1;
2433
+ b || (b = new H()), _(b, A.value);
2434
+ }
2435
+ if (b) {
2436
+ for (; (I = j.next()) && !I.done; )
2437
+ if (I.value && typeof I.value == "object") {
2438
+ if (!V(b, I.value, E.strict, $))
2439
+ return !1;
2440
+ } else if (!E.strict && !N(g, I.value) && !V(b, I.value, E.strict, $))
2441
+ return !1;
2442
+ return U(b) === 0;
2443
+ }
2444
+ return !0;
2445
+ }
2446
+ function br(g, d, E, $) {
2447
+ if (P(g) !== P(d))
2448
+ return !1;
2449
+ for (var M = t(g), j = t(d), A, I, b, x, z, K; (A = M.next()) && !A.done; )
2450
+ if (x = A.value[0], z = A.value[1], x && typeof x == "object")
2451
+ b || (b = new H()), _(b, x);
2452
+ else if (K = D(d, x), typeof K > "u" && !F(d, x) || !G(z, K, E, $)) {
2453
+ if (E.strict || !Pr(g, d, x, z, E, $))
2454
+ return !1;
2455
+ b || (b = new H()), _(b, x);
2456
+ }
2457
+ if (b) {
2458
+ for (; (I = j.next()) && !I.done; )
2459
+ if (x = I.value[0], K = I.value[1], x && typeof x == "object") {
2460
+ if (!ar(b, g, x, K, E, $))
2461
+ return !1;
2462
+ } else if (!E.strict && (!g.has(x) || !G(D(g, x), K, E, $)) && !ar(b, g, x, K, r({}, E, { strict: !1 }), $))
2463
+ return !1;
2464
+ return U(b) === 0;
2465
+ }
2466
+ return !0;
2467
+ }
2468
+ function yr(g, d, E, $) {
2469
+ var M, j;
2470
+ if (typeof g != typeof d || g == null || d == null || X(g) !== X(d) || o(g) !== o(d))
2471
+ return !1;
2472
+ var A = u(g), I = u(d);
2473
+ if (A !== I)
2474
+ return !1;
2475
+ var b = g instanceof Error, x = d instanceof Error;
2476
+ if (b !== x || (b || x) && (g.name !== d.name || g.message !== d.message))
2477
+ return !1;
2478
+ var z = p(g), K = p(d);
2479
+ if (z !== K || (z || K) && (g.source !== d.source || n(g) !== n(d)))
2480
+ return !1;
2481
+ var J = v(g), Y = v(d);
2482
+ if (J !== Y || (J || Y) && m(g) !== m(d) || E.strict && T && T(g) !== T(d))
2483
+ return !1;
2484
+ var Z = w(g), fr = w(d);
2485
+ if (Z !== fr)
2486
+ return !1;
2487
+ if (Z || fr) {
2488
+ if (g.length !== d.length)
2489
+ return !1;
2490
+ for (M = 0; M < g.length; M++)
2491
+ if (g[M] !== d[M])
2492
+ return !1;
2493
+ return !0;
2494
+ }
2495
+ var or = Sr(g), rr = Sr(d);
2496
+ if (or !== rr)
2497
+ return !1;
2498
+ if (or || rr) {
2499
+ if (g.length !== d.length)
2500
+ return !1;
2501
+ for (M = 0; M < g.length; M++)
2502
+ if (g[M] !== d[M])
2503
+ return !1;
2504
+ return !0;
2505
+ }
2506
+ var sr = c(g), lr = c(d);
2507
+ if (sr !== lr)
2508
+ return !1;
2509
+ if (sr || lr)
2510
+ return q(g) !== q(d) ? !1 : typeof Uint8Array == "function" && G(new Uint8Array(g), new Uint8Array(d), E, $);
2511
+ var cr = y(g), Cr = y(d);
2512
+ if (cr !== Cr)
2513
+ return !1;
2514
+ if (cr || Cr)
2515
+ return O(g) !== O(d) ? !1 : typeof Uint8Array == "function" && G(new Uint8Array(g), new Uint8Array(d), E, $);
2516
+ if (typeof g != typeof d)
2517
+ return !1;
2518
+ var vr = h(g), Rr = h(d);
2519
+ if (vr.length !== Rr.length)
2520
+ return !1;
2521
+ for (vr.sort(), Rr.sort(), M = vr.length - 1; M >= 0; M--)
2522
+ if (vr[M] != Rr[M])
2523
+ return !1;
2524
+ for (M = vr.length - 1; M >= 0; M--)
2525
+ if (j = vr[M], !G(g[j], d[j], E, $))
2526
+ return !1;
2527
+ var Br = R(g), gr = R(d);
2528
+ return Br !== gr ? !1 : Br === "Set" || gr === "Set" ? Ir(g, d, E, $) : Br === "Map" ? br(g, d, E, $) : !0;
2529
+ }
2530
+ return Nt = function(d, E, $) {
2531
+ return G(d, E, $, f());
2532
+ }, Nt;
2533
+ }
2534
+ var zi = Gi();
2535
+ const Vi = /* @__PURE__ */ Ho(zi);
2536
+ function Ki(r) {
2537
+ return r;
2538
+ }
2539
+ function Ji(r, e, n, a) {
2540
+ const t = Ki, [f, i] = Ur(t(n)), o = xo(f);
2541
+ return Bo(() => {
2542
+ const u = () => {
2543
+ const c = {
2544
+ ...n,
2545
+ ...r.getAttributes(e)
2546
+ };
2547
+ Object.keys(c).forEach((p) => {
2548
+ (c[p] === null || c[p] === void 0) && (c[p] = n ? n[p] : null);
2549
+ });
2550
+ const v = t(c);
2551
+ Vi(o.current, v) || (i(v), o.current = v);
2552
+ };
2553
+ return r.on("selectionUpdate", u), r.on("transaction", u), () => {
2554
+ r.off("selectionUpdate", u), r.off("transaction", u);
2555
+ };
2556
+ }, [r, n, e, t]), f;
2557
+ }
2558
+ function bo(r, e = {}) {
2559
+ if (typeof r == "object") return r;
2560
+ try {
2561
+ return JSON.parse(r);
2562
+ } catch {
2563
+ return e;
2564
+ }
2565
+ }
2566
+ function Yi({ node: r }) {
2567
+ const { text: e, macros: n } = r.attrs, a = Hr(() => {
2568
+ try {
2569
+ return Xa.renderToString(decodeURIComponent(e || ""), {
2570
+ macros: bo(decodeURIComponent(n || ""))
2571
+ });
2572
+ } catch {
2573
+ return e;
2574
+ }
2575
+ }, [e, n]), t = Hr(
2576
+ () => e.trim() ? /* @__PURE__ */ er("span", { contentEditable: !1, dangerouslySetInnerHTML: { __html: a } }) : /* @__PURE__ */ er("span", { contentEditable: !1, children: "Not enter a formula" }),
2577
+ [e, a]
2578
+ );
2579
+ return /* @__PURE__ */ er(
2580
+ Po,
2581
+ {
2582
+ as: "span",
2583
+ style: {
2584
+ display: "inline-block"
2585
+ },
2586
+ children: t
2587
+ }
2588
+ );
2589
+ }
2590
+ function ou() {
2591
+ const { t: r } = Uo(), [e, n] = Ur(!1), a = Mo(Ya.name), {
2592
+ icon: t = void 0,
2593
+ tooltip: f = void 0,
2594
+ tooltipOptions: i = {},
2595
+ isActive: o = void 0
2596
+ } = (a == null ? void 0 : a.componentProps) ?? {}, { editorDisabled: u } = jo(o), c = Co(), v = Ji(c, Ya.name, {
2597
+ text: "",
2598
+ macros: ""
2599
+ }), { text: p, macros: y } = v, [h, S] = Ur(decodeURIComponent(p || "")), [R, w] = Ur(decodeURIComponent(y || "")), q = To(() => {
2600
+ c.chain().focus().setKatex({
2601
+ text: encodeURIComponent(h),
2602
+ macros: encodeURIComponent(R)
2603
+ }).run(), S(""), w(""), n(!1);
2604
+ }, [c, h, R]), O = Hr(() => {
2605
+ try {
2606
+ return Xa.renderToString(h, {
2607
+ macros: bo(R)
2608
+ });
2609
+ } catch {
2610
+ return h;
2611
+ }
2612
+ }, [R, h]), m = Hr(() => `${h}`.trim() ? O : null, [h, O]);
2613
+ return /* @__PURE__ */ Nr(Do, { onOpenChange: n, open: e, children: [
2614
+ /* @__PURE__ */ er(Fo, { asChild: !0, disabled: u, children: /* @__PURE__ */ er(
2615
+ _o,
2616
+ {
2617
+ disabled: u,
2618
+ icon: t,
2619
+ tooltip: f,
2620
+ tooltipOptions: i,
2621
+ action: () => {
2622
+ u || n(!0);
2623
+ }
2624
+ }
2625
+ ) }),
2626
+ /* @__PURE__ */ Nr(No, { className: "richtext-z-[99999] !richtext-max-w-[1300px]", children: [
2627
+ /* @__PURE__ */ er(Wo, { children: r("editor.formula.dialog.text") }),
2628
+ /* @__PURE__ */ er("div", { style: { height: "100%", border: "1px solid hsl(var(--border))" }, children: /* @__PURE__ */ Nr("div", { className: "richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]", children: [
2629
+ /* @__PURE__ */ Nr("div", { className: "richtext-flex-1", children: [
2630
+ /* @__PURE__ */ er(un, { className: "mb-[6px]", children: "Expression" }),
2631
+ /* @__PURE__ */ er(
2632
+ fn,
2633
+ {
2634
+ autoFocus: !0,
2635
+ className: "richtext-mb-[10px]",
2636
+ onChange: (T) => S(T.target.value),
2637
+ placeholder: "Text",
2638
+ required: !0,
2639
+ rows: 10,
2640
+ value: h,
2641
+ style: {
2642
+ color: "hsl(var(--foreground))"
2643
+ }
2644
+ }
2645
+ ),
2646
+ /* @__PURE__ */ er(un, { className: "mb-[6px]", children: "Macros" }),
2647
+ /* @__PURE__ */ er(
2648
+ fn,
2649
+ {
2650
+ className: "richtext-flex-1",
2651
+ placeholder: "Macros",
2652
+ rows: 10,
2653
+ value: R,
2654
+ onChange: (T) => {
2655
+ w(T.target.value);
2656
+ },
2657
+ style: {
2658
+ color: "hsl(var(--foreground))"
2659
+ }
2660
+ }
2661
+ )
2662
+ ] }),
2663
+ /* @__PURE__ */ er(
2664
+ "div",
2665
+ {
2666
+ className: "richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",
2667
+ dangerouslySetInnerHTML: { __html: m || "" },
2668
+ style: {
2669
+ height: "100%",
2670
+ borderWidth: 1,
2671
+ minHeight: 500,
2672
+ background: "#fff"
2673
+ }
2674
+ }
2675
+ )
2676
+ ] }) }),
2677
+ /* @__PURE__ */ er(ko, { children: /* @__PURE__ */ er(Lo, { onClick: q, type: "button", children: "Save changes" }) })
2678
+ ] })
2679
+ ] });
2680
+ }
2681
+ function Ja(r) {
2682
+ return (e) => e.getAttribute(r);
2683
+ }
2684
+ const Ya = /* @__PURE__ */ Io.create({
2685
+ name: "katex",
2686
+ group: "inline",
2687
+ inline: !0,
2688
+ defining: !0,
2689
+ draggable: !0,
2690
+ selectable: !0,
2691
+ addOptions() {
2692
+ return {
2693
+ HTMLAttributes: {
2694
+ class: "katex"
2695
+ },
2696
+ button: ({ t: r }) => ({
2697
+ componentProps: {
2698
+ action: () => !0,
2699
+ isActive: () => !1,
2700
+ disabled: !1,
2701
+ icon: "KatexIcon",
2702
+ tooltip: r("editor.katex.tooltip")
2703
+ }
2704
+ })
2705
+ };
2706
+ },
2707
+ addAttributes() {
2708
+ return {
2709
+ text: {
2710
+ default: "",
2711
+ parseHTML: Ja("text")
2712
+ },
2713
+ macros: {
2714
+ default: "",
2715
+ parseHTML: Ja("macros")
2716
+ }
2717
+ };
2718
+ },
2719
+ parseHTML() {
2720
+ return [{ tag: "span.katex" }];
2721
+ },
2722
+ renderHTML({ HTMLAttributes: r }) {
2723
+ return [
2724
+ "span",
2725
+ Eo(this.options && this.options.HTMLAttributes || {}, r)
2726
+ ];
2727
+ },
2728
+ addCommands() {
2729
+ return {
2730
+ setKatex: (r) => ({ commands: e }) => e.insertContent({
2731
+ type: this.name,
2732
+ attrs: r
2733
+ })
2734
+ };
2735
+ },
2736
+ addInputRules() {
2737
+ return [
2738
+ $o({
2739
+ find: /^\$katex\$$/,
2740
+ type: this.type
2741
+ })
2742
+ ];
2743
+ },
2744
+ addNodeView() {
2745
+ return Ro(Yi);
2746
+ }
2747
+ });
2748
+ export {
2749
+ Ya as K,
2750
+ ou as R,
2751
+ bo as s,
2752
+ Ji as u
2753
+ };