reactjs-tiptap-editor 0.4.2 → 1.0.0

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