reactjs-tiptap-editor 1.0.17 → 1.0.18

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 (212) hide show
  1. package/lib/{ActionMenuButton-lsIBc9sU.js → ActionMenuButton-BOjCHFTA.js} +6 -6
  2. package/lib/ActionMenuButton-Df077oOH.cjs +1 -0
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +40 -78
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +2 -3
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +2 -3
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -3
  11. package/lib/Callout.cjs +1 -1
  12. package/lib/Callout.js +105 -99
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +2 -3
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +2 -3
  17. package/lib/CodeBlock.cjs +38 -38
  18. package/lib/CodeBlock.js +1561 -1605
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +2 -2
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +46 -63
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +24 -10
  25. package/lib/Drawer-DwrlY_lY.cjs +1 -0
  26. package/lib/Drawer-DxOoRiGQ.js +1099 -0
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +6 -5
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +69 -93
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +99 -110
  33. package/lib/ExportPdf.cjs +4 -4
  34. package/lib/ExportPdf.js +4 -13
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +9 -7
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +12 -34
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +12 -27
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +34 -47
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +39 -52
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +318 -313
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +2 -3
  49. package/lib/{Iframe-CTajPyzs.js → Iframe-AhNV5WH5.js} +25 -34
  50. package/lib/Iframe-C6pBw-AF.cjs +1 -0
  51. package/lib/Iframe.cjs +1 -1
  52. package/lib/Iframe.js +5 -4
  53. package/lib/Image.cjs +1 -1
  54. package/lib/Image.js +5 -4
  55. package/lib/ImageGif.cjs +1 -1
  56. package/lib/ImageGif.js +63 -91
  57. package/lib/ImportWord.cjs +1 -1
  58. package/lib/ImportWord.js +7 -11
  59. package/lib/{Indent-BGEHlRx_.js → Indent-DZ5PcJA4.js} +3 -7
  60. package/lib/Indent-Do-X0AsY.cjs +1 -0
  61. package/lib/Indent.cjs +1 -1
  62. package/lib/Indent.js +2 -2
  63. package/lib/Italic.cjs +1 -1
  64. package/lib/Italic.js +2 -3
  65. package/lib/Katex-CIC9ygbL.cjs +4 -0
  66. package/lib/{Katex-tMh4bfBb.js → Katex-bIgoenn_.js} +241 -255
  67. package/lib/Katex.cjs +1 -1
  68. package/lib/Katex.js +5 -4
  69. package/lib/LineHeight.cjs +1 -1
  70. package/lib/LineHeight.js +13 -21
  71. package/lib/Link.cjs +1 -1
  72. package/lib/Link.js +2 -2
  73. package/lib/LinkEditBlock-B0ZaACZO.cjs +5 -0
  74. package/lib/{LinkEditBlock-CA5NhP-m.js → LinkEditBlock-D_cF9fnc.js} +320 -370
  75. package/lib/MarkdownPaste.cjs +58 -0
  76. package/lib/MarkdownPaste.js +1656 -0
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +22 -17
  79. package/lib/Mermaid.cjs +2 -2
  80. package/lib/Mermaid.js +118 -142
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +10 -18
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +2 -3
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +68 -133
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +15 -14
  89. package/lib/{SlashCommandNodeView-CZoM3ZlS.cjs → SlashCommandNodeView-Ba03hlVZ.cjs} +1 -1
  90. package/lib/{SlashCommandNodeView-DLuqbX2o.js → SlashCommandNodeView-cg0x3NRF.js} +15 -17
  91. package/lib/Strike.cjs +1 -1
  92. package/lib/Strike.js +2 -3
  93. package/lib/{Table-BC4Lbqzn.js → Table-KqLiT5wG.js} +95 -133
  94. package/lib/Table-ddU2LSc6.cjs +9 -0
  95. package/lib/Table.cjs +1 -1
  96. package/lib/Table.js +1 -1
  97. package/lib/TaskList.cjs +1 -1
  98. package/lib/TaskList.js +2 -3
  99. package/lib/TextAlign.cjs +1 -1
  100. package/lib/TextAlign.js +51 -60
  101. package/lib/TextDirection.cjs +1 -1
  102. package/lib/TextDirection.js +47 -69
  103. package/lib/TextUnderline.cjs +1 -1
  104. package/lib/TextUnderline.js +2 -3
  105. package/lib/Twitter-BIiR78Jh.cjs +1 -0
  106. package/lib/{Twitter-D8Cbgl7g.js → Twitter-C1Lzqc7u.js} +567 -593
  107. package/lib/Twitter.cjs +1 -1
  108. package/lib/Twitter.js +4 -3
  109. package/lib/Video.cjs +1 -1
  110. package/lib/Video.js +3 -3
  111. package/lib/bubble.cjs +6 -4
  112. package/lib/bubble.js +3712 -3023
  113. package/lib/clsx-BWE7vnna.cjs +33 -0
  114. package/lib/clsx-eGVyq7ot.js +1062 -0
  115. package/lib/components/ActionButton.d.ts +2 -2
  116. package/lib/components/ActionMenuButton.d.ts +1 -1
  117. package/lib/components/Bubble/formatBubble.d.ts +5 -5
  118. package/lib/components/ui/checkbox.d.ts +1 -1
  119. package/lib/components/ui/dialog.d.ts +1 -1
  120. package/lib/components/ui/dropdown-menu.d.ts +1 -1
  121. package/lib/components/ui/emoji-picker.d.ts +1 -1
  122. package/lib/components/ui/label.d.ts +1 -1
  123. package/lib/components/ui/popover.d.ts +1 -1
  124. package/lib/components/ui/select.d.ts +1 -1
  125. package/lib/components/ui/separator.d.ts +1 -1
  126. package/lib/components/ui/switch.d.ts +1 -1
  127. package/lib/components/ui/tabs.d.ts +1 -1
  128. package/lib/components/ui/toast.d.ts +1 -1
  129. package/lib/components/ui/toggle.d.ts +1 -1
  130. package/lib/components/ui/tooltip.d.ts +1 -1
  131. package/lib/{delete-node-IyVmiRbI.js → delete-node-eQHsyyhR.js} +3 -1
  132. package/lib/{dropdown-menu-q6RL_fkA.js → dropdown-menu-CexIkt_V.js} +8 -8
  133. package/lib/{dropdown-menu-C_F7LEy5.cjs → dropdown-menu-oSKIntXM.cjs} +1 -1
  134. package/lib/extensions/Blockquote/Blockquote.d.ts +1 -1
  135. package/lib/extensions/Bold/Bold.d.ts +1 -1
  136. package/lib/extensions/Code/Code.d.ts +1 -1
  137. package/lib/extensions/CodeView/CodeView.d.ts +2 -2
  138. package/lib/extensions/Heading/Heading.d.ts +1 -1
  139. package/lib/extensions/Highlight/Highlight.d.ts +1 -1
  140. package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +1 -1
  141. package/lib/extensions/ImportWord/ImportWord.d.ts +2 -2
  142. package/lib/extensions/Italic/Italic.d.ts +1 -1
  143. package/lib/extensions/Link/Link.d.ts +1 -1
  144. package/lib/extensions/MarkdownPaste/MarkdownPaste.d.ts +5 -0
  145. package/lib/extensions/MarkdownPaste/index.d.ts +1 -0
  146. package/lib/extensions/Mermaid/Mermaid.d.ts +1 -1
  147. package/lib/extensions/MoreMark/MoreMark.d.ts +1 -1
  148. package/lib/extensions/Strike/Strike.d.ts +1 -1
  149. package/lib/extensions/Table/Table.d.ts +1 -1
  150. package/lib/extensions/TextAlign/TextAlign.d.ts +1 -1
  151. package/lib/extensions/TextUnderline/TextUnderline.d.ts +1 -1
  152. package/lib/index-BUTn2LY6.cjs +1 -0
  153. package/lib/{index-C07N8gA1.js → index-BlXGgvT-.js} +21 -18
  154. package/lib/{index-DqruLhsu.js → index-BnW6t8z6.js} +23 -23
  155. package/lib/{index-BsFvo9PG.cjs → index-BqL4vAWE.cjs} +1 -1
  156. package/lib/index-BtxvYLJ1.cjs +12 -0
  157. package/lib/{index-Do_dsOGB.js → index-C6xmkxrQ.js} +232 -217
  158. package/lib/index-CJ9pyCM4.cjs +1 -0
  159. package/lib/{index-neeeY2o7.cjs → index-D0lc95kr.cjs} +3 -3
  160. package/lib/{index-RcSPeQHn.js → index-DHUN85fV.js} +571 -657
  161. package/lib/index-DUpSE1Gb.cjs +1 -0
  162. package/lib/index-D_8P0LE5.js +1362 -0
  163. package/lib/{index-BDYJ8Ph2.js → index-RIXs7STX.js} +1 -1
  164. package/lib/index-mfGK4pFo.js +6469 -0
  165. package/lib/index-zig3Dj7A.cjs +22 -0
  166. package/lib/index.cjs +1 -1
  167. package/lib/index.js +26 -34
  168. package/lib/locale-bundle.cjs +1 -1
  169. package/lib/locale-bundle.js +1 -1
  170. package/lib/plugins/image-upload.d.ts +1 -1
  171. package/lib/popover-BYSZ3zBi.js +24 -0
  172. package/lib/popover-BcHDZqBt.cjs +1 -0
  173. package/lib/{renderNodeView-BEkECnnY.js → renderNodeView-BrM5kUj_.js} +2 -2
  174. package/lib/{renderNodeView-DfLmGrgA.cjs → renderNodeView-D1zydtli.cjs} +1 -1
  175. package/lib/{select-CmV5uTXr.js → select-C5SHDLFj.js} +8 -5
  176. package/lib/{select-CYyIeImH.cjs → select-DHjzKkcu.cjs} +1 -1
  177. package/lib/{separator-BLp6xpSY.cjs → separator-BmixLrnJ.cjs} +1 -1
  178. package/lib/separator-CFKVxAea.js +293 -0
  179. package/lib/store/editor.d.ts +1 -1
  180. package/lib/store/store.d.ts +1 -1
  181. package/lib/style.css +1 -1
  182. package/lib/{textarea-Cn75Cm2n.cjs → textarea-CasDcv3u.cjs} +1 -1
  183. package/lib/{textarea-CkVKMPqK.js → textarea-DNLrJoRl.js} +1 -1
  184. package/lib/theme.js +1 -1
  185. package/lib/types.d.ts +3 -3
  186. package/lib/updatePosition-CBRjbQMH.js +16 -0
  187. package/lib/updatePosition-CfmY5Trk.cjs +1 -0
  188. package/lib/utils/columns.d.ts +1 -1
  189. package/lib/utils/pdf.d.ts +1 -1
  190. package/lib/utils/utils.d.ts +1 -1
  191. package/package.json +262 -247
  192. package/lib/ActionMenuButton-B_E2mbAW.cjs +0 -1
  193. package/lib/Drawer-DQ4CxBwG.js +0 -1373
  194. package/lib/Drawer-FUeUKshi.cjs +0 -1
  195. package/lib/Iframe-EVWXCqe4.cjs +0 -1
  196. package/lib/Indent-q9cEWAa_.cjs +0 -1
  197. package/lib/Katex-ClqcEnN_.cjs +0 -4
  198. package/lib/LinkEditBlock-DZXk4ln_.cjs +0 -5
  199. package/lib/Table-BmDopO43.cjs +0 -9
  200. package/lib/Twitter-BbMD3Ybp.cjs +0 -1
  201. package/lib/clsx-CXbNJWDD.cjs +0 -54
  202. package/lib/clsx-DaPvp9ji.js +0 -7391
  203. package/lib/index-BCzvbrf5.cjs +0 -12
  204. package/lib/index-BnVcq33n.cjs +0 -1
  205. package/lib/index-CjhjjJsN.cjs +0 -1
  206. package/lib/index-Cs6cp0Y6.cjs +0 -1
  207. package/lib/index-Qcl3BG94.js +0 -1351
  208. package/lib/popover-CtinPbiy.js +0 -24
  209. package/lib/popover-DIMT3pae.cjs +0 -1
  210. package/lib/separator-C7luvaG8.js +0 -327
  211. package/lib/updatePosition-Cjuj2E26.cjs +0 -1
  212. package/lib/updatePosition-DRmKQBGm.js +0 -16
@@ -1,11 +1,12 @@
1
- import { h as Po, N as Io, k as Ro, n as $o, m as Eo } from "./clsx-DaPvp9ji.js";
1
+ import { N as Po, n as Io, m as Ro } from "./index-mfGK4pFo.js";
2
+ import { N as $o, a as Eo } from "./clsx-eGVyq7ot.js";
2
3
  import { jsx as er, jsxs as Nr } from "react/jsx-runtime";
3
- import { useState as Ur, useRef as xo, useEffect as Bo, useMemo as Hr, useCallback as To } from "react";
4
4
  import Xa from "katex";
5
- import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un, p as ko, B as Lo } from "./index-RcSPeQHn.js";
5
+ import { useState as Ur, useRef as xo, useEffect as Bo, useMemo as Hr, useCallback as To } from "react";
6
+ import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un, p as ko, B as Lo } from "./index-DHUN85fV.js";
6
7
  import "./theme.js";
7
- import { T as fn } from "./textarea-CkVKMPqK.js";
8
- import { u as Uo } from "./index-C07N8gA1.js";
8
+ import { T as fn } from "./textarea-DNLrJoRl.js";
9
+ import { u as Uo } from "./index-BlXGgvT-.js";
9
10
  var Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
11
  function Ho(r) {
11
12
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -106,23 +107,23 @@ function zo() {
106
107
  }
107
108
  };
108
109
  r = function(h) {
109
- var S = h !== null && typeof h == "object", R = n.call(h) === "[object Function]", w = a(h), q = S && n.call(h) === "[object String]", O = [];
110
+ var S = h !== null && typeof h == "object", R = n.call(h) === "[object Function]", w = a(h), q = S && n.call(h) === "[object String]", A = [];
110
111
  if (!S && !R && !w)
111
112
  throw new TypeError("Object.keys called on a non-object");
112
113
  var m = i && R;
113
114
  if (q && h.length > 0 && !e.call(h, 0))
114
- for (var T = 0; T < h.length; ++T)
115
- O.push(String(T));
115
+ for (var x = 0; x < h.length; ++x)
116
+ A.push(String(x));
116
117
  if (w && h.length > 0)
117
118
  for (var X = 0; X < h.length; ++X)
118
- O.push(String(X));
119
+ A.push(String(X));
119
120
  else
120
121
  for (var H in h)
121
- !(m && H === "prototype") && e.call(h, H) && O.push(String(H));
122
+ !(m && H === "prototype") && e.call(h, H) && A.push(String(H));
122
123
  if (f)
123
124
  for (var F = p(h), D = 0; D < o.length; ++D)
124
- !(F && o[D] === "constructor") && e.call(h, o[D]) && O.push(o[D]);
125
- return O;
125
+ !(F && o[D] === "constructor") && e.call(h, o[D]) && A.push(o[D]);
126
+ return A;
126
127
  };
127
128
  }
128
129
  return oe = r, oe;
@@ -508,19 +509,19 @@ function pr() {
508
509
  return w('"use strict"; return (' + j + ").constructor;")();
509
510
  } catch {
510
511
  }
511
- }, O = /* @__PURE__ */ Or(), m = /* @__PURE__ */ zr(), T = function() {
512
+ }, A = /* @__PURE__ */ Or(), m = /* @__PURE__ */ zr(), x = function() {
512
513
  throw new o();
513
- }, X = O ? (function() {
514
+ }, X = A ? (function() {
514
515
  try {
515
- return arguments.callee, T;
516
+ return arguments.callee, x;
516
517
  } catch {
517
518
  try {
518
- return O(arguments, "callee").get;
519
+ return A(arguments, "callee").get;
519
520
  } catch {
520
- return T;
521
+ return x;
521
522
  }
522
523
  }
523
- })() : T, H = Gt()(), F = Jt(), D = eo(), P = ro(), _ = Vt(), L = zt(), N = {}, U = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), V = {
524
+ })() : x, H = Gt()(), F = Jt(), D = eo(), P = ro(), _ = Vt(), L = zt(), N = {}, U = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), V = {
524
525
  __proto__: null,
525
526
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
526
527
  "%Array%": Array,
@@ -564,7 +565,7 @@ function pr() {
564
565
  "%Math%": Math,
565
566
  "%Number%": Number,
566
567
  "%Object%": e,
567
- "%Object.getOwnPropertyDescriptor%": O,
568
+ "%Object.getOwnPropertyDescriptor%": A,
568
569
  "%parseFloat%": parseFloat,
569
570
  "%parseInt%": parseInt,
570
571
  "%Promise%": typeof Promise > "u" ? r : Promise,
@@ -611,22 +612,22 @@ function pr() {
611
612
  var ur = F(F(j));
612
613
  V["%Error.prototype%"] = ur;
613
614
  }
614
- var Pr = function j(A) {
615
+ var Pr = function j(O) {
615
616
  var I;
616
- if (A === "%AsyncFunction%")
617
+ if (O === "%AsyncFunction%")
617
618
  I = q("async function () {}");
618
- else if (A === "%GeneratorFunction%")
619
+ else if (O === "%GeneratorFunction%")
619
620
  I = q("function* () {}");
620
- else if (A === "%AsyncGeneratorFunction%")
621
+ else if (O === "%AsyncGeneratorFunction%")
621
622
  I = q("async function* () {}");
622
- else if (A === "%AsyncGenerator%") {
623
+ else if (O === "%AsyncGenerator%") {
623
624
  var b = j("%AsyncGeneratorFunction%");
624
625
  b && (I = b.prototype);
625
- } else if (A === "%AsyncIteratorPrototype%") {
626
- var x = j("%AsyncGenerator%");
627
- x && F && (I = F(x.prototype));
626
+ } else if (O === "%AsyncIteratorPrototype%") {
627
+ var B = j("%AsyncGenerator%");
628
+ B && F && (I = F(B.prototype));
628
629
  }
629
- return V[A] = I, I;
630
+ return V[O] = I, I;
630
631
  }, mr = {
631
632
  __proto__: null,
632
633
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -680,53 +681,53 @@ function pr() {
680
681
  "%URIErrorPrototype%": ["URIError", "prototype"],
681
682
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
682
683
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
683
- }, ar = jr(), G = /* @__PURE__ */ Yt(), Sr = ar.call(L, Array.prototype.concat), Ir = ar.call(_, Array.prototype.splice), br = ar.call(L, String.prototype.replace), yr = ar.call(L, String.prototype.slice), g = ar.call(L, RegExp.prototype.exec), d = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, E = /\\(\\)?/g, $ = function(A) {
684
- var I = yr(A, 0, 1), b = yr(A, -1);
684
+ }, ar = jr(), G = /* @__PURE__ */ Yt(), Sr = ar.call(L, Array.prototype.concat), Ir = ar.call(_, Array.prototype.splice), br = ar.call(L, String.prototype.replace), yr = ar.call(L, String.prototype.slice), g = ar.call(L, RegExp.prototype.exec), d = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, E = /\\(\\)?/g, $ = function(O) {
685
+ var I = yr(O, 0, 1), b = yr(O, -1);
685
686
  if (I === "%" && b !== "%")
686
687
  throw new i("invalid intrinsic syntax, expected closing `%`");
687
688
  if (b === "%" && I !== "%")
688
689
  throw new i("invalid intrinsic syntax, expected opening `%`");
689
- var x = [];
690
- return br(A, d, function(z, K, J, Y) {
691
- x[x.length] = J ? br(Y, E, "$1") : K || z;
692
- }), x;
693
- }, M = function(A, I) {
694
- var b = A, x;
695
- if (G(mr, b) && (x = mr[b], b = "%" + x[0] + "%"), G(V, b)) {
690
+ var B = [];
691
+ return br(O, d, function(z, K, J, Y) {
692
+ B[B.length] = J ? br(Y, E, "$1") : K || z;
693
+ }), B;
694
+ }, M = function(O, I) {
695
+ var b = O, B;
696
+ if (G(mr, b) && (B = mr[b], b = "%" + B[0] + "%"), G(V, b)) {
696
697
  var z = V[b];
697
698
  if (z === N && (z = Pr(b)), typeof z > "u" && !I)
698
- throw new o("intrinsic " + A + " exists, but is not available. Please file an issue!");
699
+ throw new o("intrinsic " + O + " exists, but is not available. Please file an issue!");
699
700
  return {
700
- alias: x,
701
+ alias: B,
701
702
  name: b,
702
703
  value: z
703
704
  };
704
705
  }
705
- throw new i("intrinsic " + A + " does not exist!");
706
+ throw new i("intrinsic " + O + " does not exist!");
706
707
  };
707
- return He = function(A, I) {
708
- if (typeof A != "string" || A.length === 0)
708
+ return He = function(O, I) {
709
+ if (typeof O != "string" || O.length === 0)
709
710
  throw new o("intrinsic name must be a non-empty string");
710
711
  if (arguments.length > 1 && typeof I != "boolean")
711
712
  throw new o('"allowMissing" argument must be a boolean');
712
- if (g(/^%?[^%]*%?$/, A) === null)
713
+ if (g(/^%?[^%]*%?$/, O) === null)
713
714
  throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
714
- var b = $(A), x = b.length > 0 ? b[0] : "", z = M("%" + x + "%", I), K = z.name, J = z.value, Y = !1, Z = z.alias;
715
- Z && (x = Z[0], Ir(b, Sr([0, 1], Z)));
715
+ var b = $(O), B = b.length > 0 ? b[0] : "", z = M("%" + B + "%", I), K = z.name, J = z.value, Y = !1, Z = z.alias;
716
+ Z && (B = Z[0], Ir(b, Sr([0, 1], Z)));
716
717
  for (var fr = 1, or = !0; fr < b.length; fr += 1) {
717
718
  var rr = b[fr], sr = yr(rr, 0, 1), lr = yr(rr, -1);
718
719
  if ((sr === '"' || sr === "'" || sr === "`" || lr === '"' || lr === "'" || lr === "`") && sr !== lr)
719
720
  throw new i("property names with quotes must have matching quotes");
720
- if ((rr === "constructor" || !or) && (Y = !0), x += "." + rr, K = "%" + x + "%", G(V, K))
721
+ if ((rr === "constructor" || !or) && (Y = !0), B += "." + rr, K = "%" + B + "%", G(V, K))
721
722
  J = V[K];
722
723
  else if (J != null) {
723
724
  if (!(rr in J)) {
724
725
  if (!I)
725
- throw new o("base intrinsic for " + A + " exists, but the property is not available.");
726
+ throw new o("base intrinsic for " + O + " exists, but the property is not available.");
726
727
  return;
727
728
  }
728
- if (O && fr + 1 >= b.length) {
729
- var cr = O(J, rr);
729
+ if (A && fr + 1 >= b.length) {
730
+ var cr = A(J, rr);
730
731
  or = !!cr, or && "get" in cr && !("originalValue" in cr.get) ? J = cr.get : J = J[rr];
731
732
  } else
732
733
  or = G(J, rr), J = J[rr];
@@ -823,11 +824,11 @@ function no() {
823
824
  var q = R[w];
824
825
  f(y, q) && t(h, q);
825
826
  }
826
- for (var O = 0; O < h.length; ++O) {
827
- var m = h[O];
827
+ for (var A = 0; A < h.length; ++A) {
828
+ var m = h[A];
828
829
  if (f(y, m)) {
829
- var T = y[m];
830
- v[m] = T;
830
+ var x = y[m];
831
+ v[m] = x;
831
832
  }
832
833
  }
833
834
  }
@@ -1046,7 +1047,7 @@ var ut, pa;
1046
1047
  function Kr() {
1047
1048
  if (pa) return ut;
1048
1049
  pa = 1;
1049
- var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, n = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, t = typeof Set == "function" && Set.prototype, f = Object.getOwnPropertyDescriptor && t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = t && f && typeof f.get == "function" ? f.get : null, o = t && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype, c = u ? WeakMap.prototype.has : null, v = typeof WeakSet == "function" && WeakSet.prototype, p = v ? WeakSet.prototype.has : null, y = typeof WeakRef == "function" && WeakRef.prototype, h = y ? WeakRef.prototype.deref : null, S = Boolean.prototype.valueOf, R = Object.prototype.toString, w = Function.prototype.toString, q = String.prototype.match, O = String.prototype.slice, m = String.prototype.replace, T = String.prototype.toUpperCase, X = String.prototype.toLowerCase, H = RegExp.prototype.test, F = Array.prototype.concat, D = Array.prototype.join, P = Array.prototype.slice, _ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, N = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", ur = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Pr = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(s) {
1050
+ var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, n = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, t = typeof Set == "function" && Set.prototype, f = Object.getOwnPropertyDescriptor && t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = t && f && typeof f.get == "function" ? f.get : null, o = t && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype, c = u ? WeakMap.prototype.has : null, v = typeof WeakSet == "function" && WeakSet.prototype, p = v ? WeakSet.prototype.has : null, y = typeof WeakRef == "function" && WeakRef.prototype, h = y ? WeakRef.prototype.deref : null, S = Boolean.prototype.valueOf, R = Object.prototype.toString, w = Function.prototype.toString, q = String.prototype.match, A = String.prototype.slice, m = String.prototype.replace, x = String.prototype.toUpperCase, X = String.prototype.toLowerCase, H = RegExp.prototype.test, F = Array.prototype.concat, D = Array.prototype.join, P = Array.prototype.slice, _ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, N = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", ur = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Pr = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(s) {
1050
1051
  return s.__proto__;
1051
1052
  } : null);
1052
1053
  function ar(s, l) {
@@ -1056,8 +1057,8 @@ function Kr() {
1056
1057
  if (typeof s == "number") {
1057
1058
  var W = s < 0 ? -_(-s) : _(s);
1058
1059
  if (W !== s) {
1059
- var k = String(W), B = O.call(l, k.length + 1);
1060
- return m.call(k, C, "$&_") + "." + m.call(m.call(B, /([0-9]{3})/g, "$&_"), /_$/, "");
1060
+ var k = String(W), T = A.call(l, k.length + 1);
1061
+ return m.call(k, C, "$&_") + "." + m.call(m.call(T, /([0-9]{3})/g, "$&_"), /_$/, "");
1061
1062
  }
1062
1063
  }
1063
1064
  return m.call(l, C, "$&_");
@@ -1072,19 +1073,19 @@ function Kr() {
1072
1073
  single: /(['\\])/g
1073
1074
  };
1074
1075
  ut = function s(l, C, W, k) {
1075
- var B = C || {};
1076
- if (Y(B, "quoteStyle") && !Y(br, B.quoteStyle))
1076
+ var T = C || {};
1077
+ if (Y(T, "quoteStyle") && !Y(br, T.quoteStyle))
1077
1078
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
1078
- if (Y(B, "maxStringLength") && (typeof B.maxStringLength == "number" ? B.maxStringLength < 0 && B.maxStringLength !== 1 / 0 : B.maxStringLength !== null))
1079
+ if (Y(T, "maxStringLength") && (typeof T.maxStringLength == "number" ? T.maxStringLength < 0 && T.maxStringLength !== 1 / 0 : T.maxStringLength !== null))
1079
1080
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1080
- var hr = Y(B, "customInspect") ? B.customInspect : !0;
1081
+ var hr = Y(T, "customInspect") ? T.customInspect : !0;
1081
1082
  if (typeof hr != "boolean" && hr !== "symbol")
1082
1083
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1083
- if (Y(B, "indent") && B.indent !== null && B.indent !== " " && !(parseInt(B.indent, 10) === B.indent && B.indent > 0))
1084
+ if (Y(T, "indent") && T.indent !== null && T.indent !== " " && !(parseInt(T.indent, 10) === T.indent && T.indent > 0))
1084
1085
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1085
- if (Y(B, "numericSeparator") && typeof B.numericSeparator != "boolean")
1086
+ if (Y(T, "numericSeparator") && typeof T.numericSeparator != "boolean")
1086
1087
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1087
- var Ar = B.numericSeparator;
1088
+ var Ar = T.numericSeparator;
1088
1089
  if (typeof l > "u")
1089
1090
  return "undefined";
1090
1091
  if (l === null)
@@ -1092,7 +1093,7 @@ function Kr() {
1092
1093
  if (typeof l == "boolean")
1093
1094
  return l ? "true" : "false";
1094
1095
  if (typeof l == "string")
1095
- return Rr(l, B);
1096
+ return Rr(l, T);
1096
1097
  if (typeof l == "number") {
1097
1098
  if (l === 0)
1098
1099
  return 1 / 0 / l > 0 ? "0" : "-0";
@@ -1103,10 +1104,10 @@ function Kr() {
1103
1104
  var dr = String(l) + "n";
1104
1105
  return Ar ? ar(l, dr) : dr;
1105
1106
  }
1106
- var Xr = typeof B.depth > "u" ? 5 : B.depth;
1107
+ var Xr = typeof T.depth > "u" ? 5 : T.depth;
1107
1108
  if (typeof W > "u" && (W = 0), W >= Xr && Xr > 0 && typeof l == "object")
1108
1109
  return $(l) ? "[Array]" : "[Object]";
1109
- var $r = Oo(B, W);
1110
+ var $r = Oo(T, W);
1110
1111
  if (typeof k > "u")
1111
1112
  k = [];
1112
1113
  else if (or(k, l) >= 0)
@@ -1114,11 +1115,11 @@ function Kr() {
1114
1115
  function ir(Er, _r, qo) {
1115
1116
  if (_r && (k = P.call(k), k.push(_r)), qo) {
1116
1117
  var on = {
1117
- depth: B.depth
1118
+ depth: T.depth
1118
1119
  };
1119
- return Y(B, "quoteStyle") && (on.quoteStyle = B.quoteStyle), s(Er, on, W + 1, k);
1120
+ return Y(T, "quoteStyle") && (on.quoteStyle = T.quoteStyle), s(Er, on, W + 1, k);
1120
1121
  }
1121
- return s(Er, B, W + 1, k);
1122
+ return s(Er, T, W + 1, k);
1122
1123
  }
1123
1124
  if (typeof l == "function" && !j(l)) {
1124
1125
  var Qt = fr(l), Zt = Dr(l, ir);
@@ -1130,7 +1131,7 @@ function Kr() {
1130
1131
  }
1131
1132
  if (vr(l)) {
1132
1133
  for (var Tr = "<" + X.call(String(l.nodeName)), Qr = l.attributes || [], Fr = 0; Fr < Qr.length; Fr++)
1133
- Tr += " " + Qr[Fr].name + "=" + g(d(Qr[Fr].value), "double", B);
1134
+ Tr += " " + Qr[Fr].name + "=" + g(d(Qr[Fr].value), "double", T);
1134
1135
  return Tr += ">", l.childNodes && l.childNodes.length && (Tr += "..."), Tr += "</" + X.call(String(l.nodeName)) + ">", Tr;
1135
1136
  }
1136
1137
  if ($(l)) {
@@ -1139,7 +1140,7 @@ function Kr() {
1139
1140
  var Zr = Dr(l, ir);
1140
1141
  return $r && !Ao(Zr) ? "[" + Yr(Zr, $r) + "]" : "[ " + D.call(Zr, ", ") + " ]";
1141
1142
  }
1142
- if (A(l)) {
1143
+ if (O(l)) {
1143
1144
  var re = Dr(l, ir);
1144
1145
  return !("cause" in Error.prototype) && "cause" in l && !Pr.call(l, "cause") ? "{ [" + String(l) + "] " + D.call(F.call("[cause]: " + ir(l.cause), re), ", ") + " }" : re.length === 0 ? "[" + String(l) + "]" : "{ [" + String(l) + "] " + D.call(re, ", ") + " }";
1145
1146
  }
@@ -1171,7 +1172,7 @@ function Kr() {
1171
1172
  return gr(ir(Number(l)));
1172
1173
  if (K(l))
1173
1174
  return gr(ir(L.call(l)));
1174
- if (x(l))
1175
+ if (B(l))
1175
1176
  return gr(S.call(l));
1176
1177
  if (I(l))
1177
1178
  return gr(ir(String(l)));
@@ -1180,7 +1181,7 @@ function Kr() {
1180
1181
  if (typeof globalThis < "u" && l === globalThis || typeof Gr < "u" && l === Gr)
1181
1182
  return "{ [object globalThis] }";
1182
1183
  if (!M(l) && !j(l)) {
1183
- var ee = Dr(l, ir), nn = mr ? mr(l) === Object.prototype : l instanceof Object || l.constructor === Object, te = l instanceof Object ? "" : "null prototype", an = !nn && ur && Object(l) === l && ur in l ? O.call(Z(l), 8, -1) : te ? "Object" : "", wo = nn || typeof l.constructor != "function" ? "" : l.constructor.name ? l.constructor.name + " " : "", ne = wo + (an || te ? "[" + D.call(F.call([], an || [], te || []), ": ") + "] " : "");
1184
+ var ee = Dr(l, ir), nn = mr ? mr(l) === Object.prototype : l instanceof Object || l.constructor === Object, te = l instanceof Object ? "" : "null prototype", an = !nn && ur && Object(l) === l && ur in l ? A.call(Z(l), 8, -1) : te ? "Object" : "", wo = nn || typeof l.constructor != "function" ? "" : l.constructor.name ? l.constructor.name + " " : "", ne = wo + (an || te ? "[" + D.call(F.call([], an || [], te || []), ": ") + "] " : "");
1184
1185
  return ee.length === 0 ? ne + "{}" : $r ? ne + "{" + Yr(ee, $r) + "}" : ne + "{ " + D.call(ee, ", ") + " }";
1185
1186
  }
1186
1187
  return String(l);
@@ -1204,7 +1205,7 @@ function Kr() {
1204
1205
  function j(s) {
1205
1206
  return Z(s) === "[object RegExp]" && E(s);
1206
1207
  }
1207
- function A(s) {
1208
+ function O(s) {
1208
1209
  return Z(s) === "[object Error]" && E(s);
1209
1210
  }
1210
1211
  function I(s) {
@@ -1213,7 +1214,7 @@ function Kr() {
1213
1214
  function b(s) {
1214
1215
  return Z(s) === "[object Number]" && E(s);
1215
1216
  }
1216
- function x(s) {
1217
+ function B(s) {
1217
1218
  return Z(s) === "[object Boolean]" && E(s);
1218
1219
  }
1219
1220
  function z(s) {
@@ -1336,12 +1337,12 @@ function Kr() {
1336
1337
  function Rr(s, l) {
1337
1338
  if (s.length > l.maxStringLength) {
1338
1339
  var C = s.length - l.maxStringLength, W = "... " + C + " more character" + (C > 1 ? "s" : "");
1339
- return Rr(O.call(s, 0, l.maxStringLength), l) + W;
1340
+ return Rr(A.call(s, 0, l.maxStringLength), l) + W;
1340
1341
  }
1341
1342
  var k = yr[l.quoteStyle || "single"];
1342
1343
  k.lastIndex = 0;
1343
- var B = m.call(m.call(s, k, "\\$1"), /[\x00-\x1f]/g, Br);
1344
- return g(B, "single", l);
1344
+ var T = m.call(m.call(s, k, "\\$1"), /[\x00-\x1f]/g, Br);
1345
+ return g(T, "single", l);
1345
1346
  }
1346
1347
  function Br(s) {
1347
1348
  var l = s.charCodeAt(0), C = {
@@ -1351,7 +1352,7 @@ function Kr() {
1351
1352
  12: "f",
1352
1353
  13: "r"
1353
1354
  }[l];
1354
- return C ? "\\" + C : "\\x" + (l < 16 ? "0" : "") + T.call(l.toString(16));
1355
+ return C ? "\\" + C : "\\x" + (l < 16 ? "0" : "") + x.call(l.toString(16));
1355
1356
  }
1356
1357
  function gr(s) {
1357
1358
  return "Object(" + s + ")";
@@ -1398,17 +1399,17 @@ function Kr() {
1398
1399
  for (var k = 0; k < s.length; k++)
1399
1400
  W[k] = Y(s, k) ? l(s[k], s) : "";
1400
1401
  }
1401
- var B = typeof N == "function" ? N(s) : [], hr;
1402
+ var T = typeof N == "function" ? N(s) : [], hr;
1402
1403
  if (V) {
1403
1404
  hr = {};
1404
- for (var Ar = 0; Ar < B.length; Ar++)
1405
- hr["$" + B[Ar]] = B[Ar];
1405
+ for (var Ar = 0; Ar < T.length; Ar++)
1406
+ hr["$" + T[Ar]] = T[Ar];
1406
1407
  }
1407
1408
  for (var tr in s)
1408
1409
  Y(s, tr) && (C && String(Number(tr)) === tr && tr < s.length || V && hr["$" + tr] instanceof Symbol || (H.call(/[^\w$]/, tr) ? W.push(l(tr, s) + ": " + l(s[tr], s)) : W.push(tr + ": " + l(s[tr], s))));
1409
1410
  if (typeof N == "function")
1410
- for (var dr = 0; dr < B.length; dr++)
1411
- Pr.call(s, B[dr]) && W.push("[" + l(B[dr]) + "]: " + l(s[B[dr]], s));
1411
+ for (var dr = 0; dr < T.length; dr++)
1412
+ Pr.call(s, T[dr]) && W.push("[" + l(T[dr]) + "]: " + l(s[T[dr]], s));
1412
1413
  return W;
1413
1414
  }
1414
1415
  return ut;
@@ -1793,9 +1794,9 @@ function qi() {
1793
1794
  return S(P, !0);
1794
1795
  };
1795
1796
  else {
1796
- var R = /* @__PURE__ */ yo(), w = /* @__PURE__ */ vo(), q = u("Map.prototype.forEach", !0), O = u("Set.prototype.forEach", !0);
1797
+ var R = /* @__PURE__ */ yo(), w = /* @__PURE__ */ vo(), q = u("Map.prototype.forEach", !0), A = u("Set.prototype.forEach", !0);
1797
1798
  if (typeof process > "u" || !process.versions || !process.versions.node)
1798
- var m = u("Map.prototype.iterator", !0), T = u("Set.prototype.iterator", !0);
1799
+ var m = u("Map.prototype.iterator", !0), x = u("Set.prototype.iterator", !0);
1799
1800
  var X = u("Map.prototype.@@iterator", !0) || u("Map.prototype._es6-shim iterator_", !0), H = u("Set.prototype.@@iterator", !0) || u("Set.prototype._es6-shim iterator_", !0), F = function(P) {
1800
1801
  if (R(P)) {
1801
1802
  if (m)
@@ -1810,13 +1811,13 @@ function qi() {
1810
1811
  }
1811
1812
  }
1812
1813
  if (w(P)) {
1813
- if (T)
1814
- return e(T(P));
1814
+ if (x)
1815
+ return e(x(P));
1815
1816
  if (H)
1816
1817
  return H(P);
1817
- if (O) {
1818
+ if (A) {
1818
1819
  var L = [];
1819
- return O(P, function(N) {
1820
+ return A(P, function(N) {
1820
1821
  c(L, N);
1821
1822
  }), h(L);
1822
1823
  }
@@ -2177,15 +2178,15 @@ function Ni() {
2177
2178
  }), a = {}, e(function() {
2178
2179
  throw 42;
2179
2180
  }, null, n);
2180
- } catch (O) {
2181
- O !== a && (e = null);
2181
+ } catch (A) {
2182
+ A !== a && (e = null);
2182
2183
  }
2183
2184
  else
2184
2185
  e = null;
2185
2186
  var t = /^\s*class\b/, f = function(m) {
2186
2187
  try {
2187
- var T = r.call(m);
2188
- return t.test(T);
2188
+ var x = r.call(m);
2189
+ return t.test(x);
2189
2190
  } catch {
2190
2191
  return !1;
2191
2192
  }
@@ -2203,8 +2204,8 @@ function Ni() {
2203
2204
  o.call(q) === o.call(document.all) && (w = function(m) {
2204
2205
  if ((R || !m) && (typeof m > "u" || typeof m == "object"))
2205
2206
  try {
2206
- var T = o.call(m);
2207
- return (T === p || T === y || T === h || T === u) && m("") == null;
2207
+ var x = o.call(m);
2208
+ return (x === p || x === y || x === h || x === u) && m("") == null;
2208
2209
  } catch {
2209
2210
  }
2210
2211
  return !1;
@@ -2217,8 +2218,8 @@ function Ni() {
2217
2218
  return !1;
2218
2219
  try {
2219
2220
  e(m, null, n);
2220
- } catch (T) {
2221
- if (T !== a)
2221
+ } catch (x) {
2222
+ if (x !== a)
2222
2223
  return !1;
2223
2224
  }
2224
2225
  return !f(m) && i(m);
@@ -2231,8 +2232,8 @@ function Ni() {
2231
2232
  return i(m);
2232
2233
  if (f(m))
2233
2234
  return !1;
2234
- var T = o.call(m);
2235
- return T !== c && T !== v && !/^\[object HTML/.test(T) ? !1 : i(m);
2235
+ var x = o.call(m);
2236
+ return x !== c && x !== v && !/^\[object HTML/.test(x) ? !1 : i(m);
2236
2237
  }, Mt;
2237
2238
  }
2238
2239
  var jt, Ua;
@@ -2292,29 +2293,40 @@ function Ui() {
2292
2293
  if (za) return Ft;
2293
2294
  za = 1;
2294
2295
  var r = Wi(), e = /* @__PURE__ */ Li(), n = xr(), a = /* @__PURE__ */ Q(), t = /* @__PURE__ */ Or(), f = Jt(), i = a("Object.prototype.toString"), o = qr()(), u = typeof globalThis > "u" ? Gr : globalThis, c = e(), v = a("String.prototype.slice"), p = a("Array.prototype.indexOf", !0) || function(w, q) {
2295
- for (var O = 0; O < w.length; O += 1)
2296
- if (w[O] === q)
2297
- return O;
2296
+ for (var A = 0; A < w.length; A += 1)
2297
+ if (w[A] === q)
2298
+ return A;
2298
2299
  return -1;
2299
2300
  }, y = { __proto__: null };
2300
2301
  o && t && f ? r(c, function(R) {
2301
2302
  var w = new u[R]();
2302
2303
  if (Symbol.toStringTag in w && f) {
2303
- var q = f(w), O = t(q, Symbol.toStringTag);
2304
- if (!O && q) {
2304
+ var q = f(w), A = t(q, Symbol.toStringTag);
2305
+ if (!A && q) {
2305
2306
  var m = f(q);
2306
- O = t(m, Symbol.toStringTag);
2307
+ A = t(m, Symbol.toStringTag);
2308
+ }
2309
+ if (A && A.get) {
2310
+ var x = n(A.get);
2311
+ y[
2312
+ /** @type {`$${import('.').TypedArrayName}`} */
2313
+ "$" + R
2314
+ ] = x;
2307
2315
  }
2308
- y["$" + R] = n(O.get);
2309
2316
  }
2310
2317
  }) : r(c, function(R) {
2311
2318
  var w = new u[R](), q = w.slice || w.set;
2312
- q && (y[
2313
- /** @type {`$${import('.').TypedArrayName}`} */
2314
- "$" + R
2315
- ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
2316
- // @ts-expect-error TODO FIXME
2317
- n(q));
2319
+ if (q) {
2320
+ var A = (
2321
+ /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
2322
+ // @ts-expect-error TODO FIXME
2323
+ n(q)
2324
+ );
2325
+ y[
2326
+ /** @type {`$${import('.').TypedArrayName}`} */
2327
+ "$" + R
2328
+ ] = A;
2329
+ }
2318
2330
  });
2319
2331
  var h = function(w) {
2320
2332
  var q = !1;
@@ -2322,10 +2334,10 @@ function Ui() {
2322
2334
  /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
2323
2335
  y,
2324
2336
  /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
2325
- function(O, m) {
2337
+ function(A, m) {
2326
2338
  if (!q)
2327
2339
  try {
2328
- "$" + O(w) === m && (q = /** @type {import('.').TypedArrayName} */
2340
+ "$" + A(w) === m && (q = /** @type {import('.').TypedArrayName} */
2329
2341
  v(m, 1));
2330
2342
  } catch {
2331
2343
  }
@@ -2337,10 +2349,10 @@ function Ui() {
2337
2349
  /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
2338
2350
  y,
2339
2351
  /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
2340
- function(O, m) {
2352
+ function(A, m) {
2341
2353
  if (!q)
2342
2354
  try {
2343
- O(w), q = /** @type {import('.').TypedArrayName} */
2355
+ A(w), q = /** @type {import('.').TypedArrayName} */
2344
2356
  v(m, 1);
2345
2357
  } catch {
2346
2358
  }
@@ -2370,7 +2382,7 @@ var Nt, Ka;
2370
2382
  function Gi() {
2371
2383
  if (Ka) return Nt;
2372
2384
  Ka = 1;
2373
- var r = pi(), e = oo(), n = hi(), a = /* @__PURE__ */ pr(), t = qi(), f = lo(), i = Ii(), o = /* @__PURE__ */ fo(), u = co(), c = /* @__PURE__ */ mo(), v = /* @__PURE__ */ Ri(), p = So(), y = /* @__PURE__ */ $i(), h = Wt(), S = Ci(), R = /* @__PURE__ */ _i(), w = /* @__PURE__ */ Ui(), q = /* @__PURE__ */ Hi(), O = e("SharedArrayBuffer.prototype.byteLength", !0), m = e("Date.prototype.getTime"), T = Object.getPrototypeOf, X = e("Object.prototype.toString"), H = a("%Set%", !0), F = e("Map.prototype.has", !0), D = e("Map.prototype.get", !0), P = e("Map.prototype.size", !0), _ = e("Set.prototype.add", !0), L = e("Set.prototype.delete", !0), N = e("Set.prototype.has", !0), U = e("Set.prototype.size", !0);
2385
+ var r = pi(), e = oo(), n = hi(), a = /* @__PURE__ */ pr(), t = qi(), f = lo(), i = Ii(), o = /* @__PURE__ */ fo(), u = co(), c = /* @__PURE__ */ mo(), v = /* @__PURE__ */ Ri(), p = So(), y = /* @__PURE__ */ $i(), h = Wt(), S = Ci(), R = /* @__PURE__ */ _i(), w = /* @__PURE__ */ Ui(), q = /* @__PURE__ */ Hi(), A = e("SharedArrayBuffer.prototype.byteLength", !0), m = e("Date.prototype.getTime"), x = Object.getPrototypeOf, X = e("Object.prototype.toString"), H = a("%Set%", !0), F = e("Map.prototype.has", !0), D = e("Map.prototype.get", !0), P = e("Map.prototype.size", !0), _ = e("Set.prototype.add", !0), L = e("Set.prototype.delete", !0), N = e("Set.prototype.has", !0), U = e("Set.prototype.size", !0);
2374
2386
  function V(g, d, E, $) {
2375
2387
  for (var M = t(g), j; (j = M.next()) && !j.done; )
2376
2388
  if (G(d, j.value, E, $))
@@ -2384,18 +2396,18 @@ function Gi() {
2384
2396
  return typeof g == "symbol" ? !1 : typeof g == "string" || typeof g == "number" ? +g == +g : !0;
2385
2397
  }
2386
2398
  function Pr(g, d, E, $, M, j) {
2387
- var A = ur(E);
2388
- if (A != null)
2389
- return A;
2390
- var I = D(d, A), b = r({}, M, { strict: !1 });
2391
- return typeof I > "u" && !F(d, A) || !G($, I, b, j) ? !1 : !F(g, A) && G($, I, b, j);
2399
+ var O = ur(E);
2400
+ if (O != null)
2401
+ return O;
2402
+ var I = D(d, O), b = r({}, M, { strict: !1 });
2403
+ return typeof I > "u" && !F(d, O) || !G($, I, b, j) ? !1 : !F(g, O) && G($, I, b, j);
2392
2404
  }
2393
2405
  function mr(g, d, E) {
2394
2406
  var $ = ur(E);
2395
2407
  return $ ?? (N(d, $) && !N(g, $));
2396
2408
  }
2397
2409
  function ar(g, d, E, $, M, j) {
2398
- for (var A = t(g), I, b; (I = A.next()) && !I.done; )
2410
+ for (var O = t(g), I, b; (I = O.next()) && !I.done; )
2399
2411
  if (b = I.value, // eslint-disable-next-line no-use-before-define
2400
2412
  G(E, b, M, j) && G($, D(d, b), M, j))
2401
2413
  return L(g, b), !0;
@@ -2405,18 +2417,18 @@ function Gi() {
2405
2417
  var M = E || {};
2406
2418
  if (M.strict ? i(g, d) : g === d)
2407
2419
  return !0;
2408
- var j = S(g), A = S(d);
2409
- if (j !== A)
2420
+ var j = S(g), O = S(d);
2421
+ if (j !== O)
2410
2422
  return !1;
2411
2423
  if (!g || !d || typeof g != "object" && typeof d != "object")
2412
2424
  return M.strict ? i(g, d) : g == d;
2413
- var I = $.has(g), b = $.has(d), x;
2425
+ var I = $.has(g), b = $.has(d), B;
2414
2426
  if (I && b) {
2415
2427
  if ($.get(g) === $.get(d))
2416
2428
  return !0;
2417
2429
  } else
2418
- x = {};
2419
- return I || $.set(g, x), b || $.set(d, x), yr(g, d, M, $);
2430
+ B = {};
2431
+ return I || $.set(g, B), b || $.set(d, B), yr(g, d, M, $);
2420
2432
  }
2421
2433
  function Sr(g) {
2422
2434
  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));
@@ -2424,13 +2436,13 @@ function Gi() {
2424
2436
  function Ir(g, d, E, $) {
2425
2437
  if (U(g) !== U(d))
2426
2438
  return !1;
2427
- for (var M = t(g), j = t(d), A, I, b; (A = M.next()) && !A.done; )
2428
- if (A.value && typeof A.value == "object")
2429
- b || (b = new H()), _(b, A.value);
2430
- else if (!N(d, A.value)) {
2431
- if (E.strict || !mr(g, d, A.value))
2439
+ for (var M = t(g), j = t(d), O, I, b; (O = M.next()) && !O.done; )
2440
+ if (O.value && typeof O.value == "object")
2441
+ b || (b = new H()), _(b, O.value);
2442
+ else if (!N(d, O.value)) {
2443
+ if (E.strict || !mr(g, d, O.value))
2432
2444
  return !1;
2433
- b || (b = new H()), _(b, A.value);
2445
+ b || (b = new H()), _(b, O.value);
2434
2446
  }
2435
2447
  if (b) {
2436
2448
  for (; (I = j.next()) && !I.done; )
@@ -2446,20 +2458,20 @@ function Gi() {
2446
2458
  function br(g, d, E, $) {
2447
2459
  if (P(g) !== P(d))
2448
2460
  return !1;
2449
- for (var M = t(g), j = t(d), A, I, b, x, z, K; (A = M.next()) && !A.done; )
2450
- if (x = A.value[0], z = A.value[1], x && typeof x == "object")
2451
- b || (b = new H()), _(b, x);
2452
- else if (K = D(d, x), typeof K > "u" && !F(d, x) || !G(z, K, E, $)) {
2453
- if (E.strict || !Pr(g, d, x, z, E, $))
2461
+ for (var M = t(g), j = t(d), O, I, b, B, z, K; (O = M.next()) && !O.done; )
2462
+ if (B = O.value[0], z = O.value[1], B && typeof B == "object")
2463
+ b || (b = new H()), _(b, B);
2464
+ else if (K = D(d, B), typeof K > "u" && !F(d, B) || !G(z, K, E, $)) {
2465
+ if (E.strict || !Pr(g, d, B, z, E, $))
2454
2466
  return !1;
2455
- b || (b = new H()), _(b, x);
2467
+ b || (b = new H()), _(b, B);
2456
2468
  }
2457
2469
  if (b) {
2458
2470
  for (; (I = j.next()) && !I.done; )
2459
- if (x = I.value[0], K = I.value[1], x && typeof x == "object") {
2460
- if (!ar(b, g, x, K, E, $))
2471
+ if (B = I.value[0], K = I.value[1], B && typeof B == "object") {
2472
+ if (!ar(b, g, B, K, E, $))
2461
2473
  return !1;
2462
- } else if (!E.strict && (!g.has(x) || !G(D(g, x), K, E, $)) && !ar(b, g, x, K, r({}, E, { strict: !1 }), $))
2474
+ } else if (!E.strict && (!g.has(B) || !G(D(g, B), K, E, $)) && !ar(b, g, B, K, r({}, E, { strict: !1 }), $))
2463
2475
  return !1;
2464
2476
  return U(b) === 0;
2465
2477
  }
@@ -2469,17 +2481,17 @@ function Gi() {
2469
2481
  var M, j;
2470
2482
  if (typeof g != typeof d || g == null || d == null || X(g) !== X(d) || o(g) !== o(d))
2471
2483
  return !1;
2472
- var A = u(g), I = u(d);
2473
- if (A !== I)
2484
+ var O = u(g), I = u(d);
2485
+ if (O !== I)
2474
2486
  return !1;
2475
- var b = g instanceof Error, x = d instanceof Error;
2476
- if (b !== x || (b || x) && (g.name !== d.name || g.message !== d.message))
2487
+ var b = g instanceof Error, B = d instanceof Error;
2488
+ if (b !== B || (b || B) && (g.name !== d.name || g.message !== d.message))
2477
2489
  return !1;
2478
2490
  var z = p(g), K = p(d);
2479
2491
  if (z !== K || (z || K) && (g.source !== d.source || n(g) !== n(d)))
2480
2492
  return !1;
2481
2493
  var J = v(g), Y = v(d);
2482
- if (J !== Y || (J || Y) && m(g) !== m(d) || E.strict && T && T(g) !== T(d))
2494
+ if (J !== Y || (J || Y) && m(g) !== m(d) || E.strict && x && x(g) !== x(d))
2483
2495
  return !1;
2484
2496
  var Z = w(g), fr = w(d);
2485
2497
  if (Z !== fr)
@@ -2512,7 +2524,7 @@ function Gi() {
2512
2524
  if (cr !== Cr)
2513
2525
  return !1;
2514
2526
  if (cr || Cr)
2515
- return O(g) !== O(d) ? !1 : typeof Uint8Array == "function" && G(new Uint8Array(g), new Uint8Array(d), E, $);
2527
+ return A(g) !== A(d) ? !1 : typeof Uint8Array == "function" && G(new Uint8Array(g), new Uint8Array(d), E, $);
2516
2528
  if (typeof g != typeof d)
2517
2529
  return !1;
2518
2530
  var vr = h(g), Rr = h(d);
@@ -2540,7 +2552,10 @@ function Ji(r, e, n, a) {
2540
2552
  const t = Ki, [f, i] = Ur(t(n)), o = xo(f);
2541
2553
  return Bo(() => {
2542
2554
  const u = () => {
2543
- const c = { ...n, ...r.getAttributes(e) };
2555
+ const c = {
2556
+ ...n,
2557
+ ...r.getAttributes(e)
2558
+ };
2544
2559
  Object.keys(c).forEach((p) => {
2545
2560
  (c[p] === null || c[p] === void 0) && (c[p] = n ? n[p] : null);
2546
2561
  });
@@ -2553,8 +2568,7 @@ function Ji(r, e, n, a) {
2553
2568
  }, [r, n, e, t]), f;
2554
2569
  }
2555
2570
  function bo(r, e = {}) {
2556
- if (typeof r == "object")
2557
- return r;
2571
+ if (typeof r == "object") return r;
2558
2572
  try {
2559
2573
  return JSON.parse(r);
2560
2574
  } catch {
@@ -2571,17 +2585,11 @@ function Yi({ node: r }) {
2571
2585
  return e;
2572
2586
  }
2573
2587
  }, [e, n]), t = Hr(
2574
- () => e.trim() ? /* @__PURE__ */ er(
2575
- "span",
2576
- {
2577
- contentEditable: !1,
2578
- dangerouslySetInnerHTML: { __html: a }
2579
- }
2580
- ) : /* @__PURE__ */ er("span", { contentEditable: !1, children: "Not enter a formula" }),
2588
+ () => e.trim() ? /* @__PURE__ */ er("span", { contentEditable: !1, dangerouslySetInnerHTML: { __html: a } }) : /* @__PURE__ */ er("span", { contentEditable: !1, children: "Not enter a formula" }),
2581
2589
  [e, a]
2582
2590
  );
2583
2591
  return /* @__PURE__ */ er(
2584
- Po,
2592
+ $o,
2585
2593
  {
2586
2594
  as: "span",
2587
2595
  style: {
@@ -2591,7 +2599,7 @@ function Yi({ node: r }) {
2591
2599
  }
2592
2600
  );
2593
2601
  }
2594
- function ou() {
2602
+ function iu() {
2595
2603
  const { t: r } = Uo(), [e, n] = Ur(!1), a = Mo(Ya.name), {
2596
2604
  icon: t = void 0,
2597
2605
  tooltip: f = void 0,
@@ -2605,7 +2613,7 @@ function ou() {
2605
2613
  text: encodeURIComponent(h),
2606
2614
  macros: encodeURIComponent(R)
2607
2615
  }).run(), S(""), w(""), n(!1);
2608
- }, [c, h, R]), O = Hr(() => {
2616
+ }, [c, h, R]), A = Hr(() => {
2609
2617
  try {
2610
2618
  return Xa.renderToString(h, {
2611
2619
  macros: bo(R)
@@ -2613,104 +2621,79 @@ function ou() {
2613
2621
  } catch {
2614
2622
  return h;
2615
2623
  }
2616
- }, [R, h]), m = Hr(
2617
- () => `${h}`.trim() ? O : null,
2618
- [h, O]
2619
- );
2620
- return /* @__PURE__ */ Nr(
2621
- Do,
2622
- {
2623
- onOpenChange: n,
2624
- open: e,
2625
- children: [
2626
- /* @__PURE__ */ er(
2627
- Fo,
2628
- {
2629
- asChild: !0,
2630
- disabled: u,
2631
- children: /* @__PURE__ */ er(
2632
- _o,
2633
- {
2634
- disabled: u,
2635
- icon: t,
2636
- tooltip: f,
2637
- tooltipOptions: i,
2638
- action: () => {
2639
- u || n(!0);
2640
- }
2641
- }
2642
- )
2643
- }
2644
- ),
2645
- /* @__PURE__ */ Nr(No, { className: "richtext-z-[99999] !richtext-max-w-[1300px]", children: [
2646
- /* @__PURE__ */ er(Wo, { children: r("editor.formula.dialog.text") }),
2624
+ }, [R, h]), m = Hr(() => `${h}`.trim() ? A : null, [h, A]);
2625
+ return /* @__PURE__ */ Nr(Do, { onOpenChange: n, open: e, children: [
2626
+ /* @__PURE__ */ er(Fo, { asChild: !0, disabled: u, children: /* @__PURE__ */ er(
2627
+ _o,
2628
+ {
2629
+ disabled: u,
2630
+ icon: t,
2631
+ tooltip: f,
2632
+ tooltipOptions: i,
2633
+ action: () => {
2634
+ u || n(!0);
2635
+ }
2636
+ }
2637
+ ) }),
2638
+ /* @__PURE__ */ Nr(No, { className: "richtext-z-[99999] !richtext-max-w-[1300px]", children: [
2639
+ /* @__PURE__ */ er(Wo, { children: r("editor.formula.dialog.text") }),
2640
+ /* @__PURE__ */ er("div", { style: { height: "100%", border: "1px solid hsl(var(--border))" }, children: /* @__PURE__ */ Nr("div", { className: "richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]", children: [
2641
+ /* @__PURE__ */ Nr("div", { className: "richtext-flex-1", children: [
2642
+ /* @__PURE__ */ er(un, { className: "mb-[6px]", children: "Expression" }),
2647
2643
  /* @__PURE__ */ er(
2648
- "div",
2644
+ fn,
2649
2645
  {
2650
- style: { height: "100%", border: "1px solid hsl(var(--border))" },
2651
- children: /* @__PURE__ */ Nr("div", { className: "richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]", children: [
2652
- /* @__PURE__ */ Nr("div", { className: "richtext-flex-1", children: [
2653
- /* @__PURE__ */ er(un, { className: "mb-[6px]", children: "Expression" }),
2654
- /* @__PURE__ */ er(
2655
- fn,
2656
- {
2657
- autoFocus: !0,
2658
- className: "richtext-mb-[10px]",
2659
- onChange: (T) => S(T.target.value),
2660
- placeholder: "Text",
2661
- required: !0,
2662
- rows: 10,
2663
- value: h,
2664
- style: {
2665
- color: "hsl(var(--foreground))"
2666
- }
2667
- }
2668
- ),
2669
- /* @__PURE__ */ er(un, { className: "mb-[6px]", children: "Macros" }),
2670
- /* @__PURE__ */ er(
2671
- fn,
2672
- {
2673
- className: "richtext-flex-1",
2674
- placeholder: "Macros",
2675
- rows: 10,
2676
- value: R,
2677
- onChange: (T) => {
2678
- w(T.target.value);
2679
- },
2680
- style: {
2681
- color: "hsl(var(--foreground))"
2682
- }
2683
- }
2684
- )
2685
- ] }),
2686
- /* @__PURE__ */ er(
2687
- "div",
2688
- {
2689
- className: "richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",
2690
- dangerouslySetInnerHTML: { __html: m || "" },
2691
- style: { height: "100%", borderWidth: 1, minHeight: 500, background: "#fff" }
2692
- }
2693
- )
2694
- ] })
2646
+ autoFocus: !0,
2647
+ className: "richtext-mb-[10px]",
2648
+ onChange: (x) => S(x.target.value),
2649
+ placeholder: "Text",
2650
+ required: !0,
2651
+ rows: 10,
2652
+ value: h,
2653
+ style: {
2654
+ color: "hsl(var(--foreground))"
2655
+ }
2695
2656
  }
2696
2657
  ),
2697
- /* @__PURE__ */ er(ko, { children: /* @__PURE__ */ er(
2698
- Lo,
2658
+ /* @__PURE__ */ er(un, { className: "mb-[6px]", children: "Macros" }),
2659
+ /* @__PURE__ */ er(
2660
+ fn,
2699
2661
  {
2700
- onClick: q,
2701
- type: "button",
2702
- children: "Save changes"
2662
+ className: "richtext-flex-1",
2663
+ placeholder: "Macros",
2664
+ rows: 10,
2665
+ value: R,
2666
+ onChange: (x) => {
2667
+ w(x.target.value);
2668
+ },
2669
+ style: {
2670
+ color: "hsl(var(--foreground))"
2671
+ }
2703
2672
  }
2704
- ) })
2705
- ] })
2706
- ]
2707
- }
2708
- );
2673
+ )
2674
+ ] }),
2675
+ /* @__PURE__ */ er(
2676
+ "div",
2677
+ {
2678
+ className: "richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",
2679
+ dangerouslySetInnerHTML: { __html: m || "" },
2680
+ style: {
2681
+ height: "100%",
2682
+ borderWidth: 1,
2683
+ minHeight: 500,
2684
+ background: "#fff"
2685
+ }
2686
+ }
2687
+ )
2688
+ ] }) }),
2689
+ /* @__PURE__ */ er(ko, { children: /* @__PURE__ */ er(Lo, { onClick: q, type: "button", children: "Save changes" }) })
2690
+ ] })
2691
+ ] });
2709
2692
  }
2710
2693
  function Ja(r) {
2711
2694
  return (e) => e.getAttribute(r);
2712
2695
  }
2713
- const Ya = /* @__PURE__ */ Io.create({
2696
+ const Ya = /* @__PURE__ */ Po.create({
2714
2697
  name: "katex",
2715
2698
  group: "inline",
2716
2699
  inline: !0,
@@ -2749,7 +2732,10 @@ const Ya = /* @__PURE__ */ Io.create({
2749
2732
  return [{ tag: "span.katex" }];
2750
2733
  },
2751
2734
  renderHTML({ HTMLAttributes: r }) {
2752
- return ["span", Eo(this.options && this.options.HTMLAttributes || {}, r)];
2735
+ return [
2736
+ "span",
2737
+ Ro(this.options && this.options.HTMLAttributes || {}, r)
2738
+ ];
2753
2739
  },
2754
2740
  addCommands() {
2755
2741
  return {
@@ -2761,19 +2747,19 @@ const Ya = /* @__PURE__ */ Io.create({
2761
2747
  },
2762
2748
  addInputRules() {
2763
2749
  return [
2764
- $o({
2750
+ Io({
2765
2751
  find: /^\$katex\$$/,
2766
2752
  type: this.type
2767
2753
  })
2768
2754
  ];
2769
2755
  },
2770
2756
  addNodeView() {
2771
- return Ro(Yi);
2757
+ return Eo(Yi);
2772
2758
  }
2773
2759
  });
2774
2760
  export {
2775
2761
  Ya as K,
2776
- ou as R,
2762
+ iu as R,
2777
2763
  bo as s,
2778
2764
  Ji as u
2779
2765
  };