@remarkablejames/editor 0.0.4 → 0.0.6
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.
- package/lib/{ActionMenuButton-BUtJUsfO.js → ActionMenuButton-CpmEfz31.js} +1 -1
- package/lib/{ActionMenuButton-M55VtCZ5.cjs → ActionMenuButton-NfiUDE60.cjs} +1 -1
- package/lib/Attachment.cjs +1 -19
- package/lib/Attachment.js +6 -305
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +2 -2
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +2 -2
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +2 -2
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +17 -18
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +2 -2
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +32 -33
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +2 -2
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +3 -3
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +2 -2
- package/lib/{Drawer-mlmJ2nCT.js → Drawer-CayP4Ww4.js} +16 -16
- package/lib/{Drawer-CdQBnwUs.cjs → Drawer-DlgdaO_B.cjs} +2 -2
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +12 -12
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +29 -30
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +2 -2
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +2 -2
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +5 -5
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +10 -10
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +3 -3
- package/lib/History.cjs +1 -1
- package/lib/History.js +3 -3
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +2 -2
- package/lib/{Iframe-CYgR99Ny.js → Iframe-C6Sb97KS.js} +4 -5
- package/lib/Iframe-CANdxSpV.cjs +1 -0
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +4 -4
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +24 -24
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +14 -14
- package/lib/{Indent-BMz2ILRl.js → Indent-CcFe8py3.js} +2 -2
- package/lib/{Indent-BAcoFdaq.cjs → Indent-DuB2U6Cs.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +2 -2
- package/lib/{Katex-DOlb4iTP.js → Katex-Bp6AnIUF.js} +64 -65
- package/lib/Katex-DFU1unCm.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +4 -4
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-xnokk4G7.js → LinkEditBlock-BiHumIJR.js} +8 -8
- package/lib/{LinkEditBlock-Cqs5RxjV.cjs → LinkEditBlock-C2zX0WVK.cjs} +1 -1
- package/lib/Mention.js +3 -3
- package/lib/Mermaid-B8lQSOGn.cjs +2 -0
- package/lib/{Mermaid-Bs3pIGc6.js → Mermaid-Dlx0XTJj.js} +23 -24
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +3 -3
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +2 -2
- package/lib/PaywallSeparator.cjs +1 -0
- package/lib/PaywallSeparator.js +140 -0
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +8 -8
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +6 -6
- package/lib/SlashCommandNodeView-BfWNWGRr.cjs +1 -0
- package/lib/{SlashCommandNodeView-CYcf7mVz.js → SlashCommandNodeView-DzmsYaNc.js} +73 -57
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +2 -2
- package/lib/{Table-dlXTKKwJ.cjs → Table-BfM6ywrZ.cjs} +1 -1
- package/lib/{Table-bz1Wcojf.js → Table-IH34r4jd.js} +5 -5
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +2 -2
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +3 -3
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +3 -3
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +2 -2
- package/lib/{Twitter-CNTXzgt0.js → Twitter-FVQKPaq6.js} +8 -8
- package/lib/{Twitter-DhEnGg6P.cjs → Twitter-axcoCgD7.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +5 -5
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +84 -86
- package/lib/{clsx-CDyrfCnw.js → clsx-BUPZHhq3.js} +2 -2
- package/lib/components/SlashDialogTrigger/RenderDialogUploadAttachment.d.ts +1 -0
- package/lib/{dropdown-menu-BuSlU2uN.js → dropdown-menu-Ce2TorkG.js} +1 -1
- package/lib/{dropdown-menu-CfWNst4v.cjs → dropdown-menu-DirUyRAI.cjs} +1 -1
- package/lib/extensions/Attachment/Attachment.d.ts +17 -6
- package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -1
- package/lib/extensions/PaywallSeparator/PaywallSeparator.d.ts +35 -0
- package/lib/extensions/PaywallSeparator/components/PaywallIcon.d.ts +2 -0
- package/lib/extensions/PaywallSeparator/components/PaywallSeparatorView.d.ts +17 -0
- package/lib/extensions/PaywallSeparator/components/RichTextPaywallSeparator.d.ts +1 -0
- package/lib/extensions/PaywallSeparator/components/index.d.ts +2 -0
- package/lib/extensions/PaywallSeparator/index.d.ts +1 -0
- package/lib/{index-DZfkCNKr.js → index-BGd2HiwP.js} +50 -20
- package/lib/index-BynXHtjJ.cjs +28 -0
- package/lib/{index-8B00E8e4.js → index-CnKgiZFQ.js} +1766 -1245
- package/lib/{index-CsSfYR30.js → index-D4M4hrH4.js} +1 -1
- package/lib/{index-DjDf4BK8.js → index-DZj2z9_1.js} +1 -1
- package/lib/index-DgOXAdKt.cjs +1 -0
- package/lib/{index-C1WCZhyA.js → index-Dl3OjzmR.js} +1 -1
- package/lib/{index-C-tDsIKJ.js → index-RkKGy5oa.js} +1 -1
- package/lib/index.cjs +3 -3
- package/lib/index.js +19 -19
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/en.d.ts +5 -0
- package/lib/locales/fi.d.ts +5 -0
- package/lib/locales/hu.d.ts +5 -0
- package/lib/locales/index.d.ts +30 -0
- package/lib/locales/pt-br.d.ts +5 -0
- package/lib/locales/vi.d.ts +5 -0
- package/lib/locales/zh-cn.d.ts +5 -0
- package/lib/{popover-51mwx3UY.cjs → popover-BdLwAlrM.cjs} +1 -1
- package/lib/{popover-DMPRgXD3.js → popover-BzJyaFvy.js} +1 -1
- package/lib/{renderNodeView-BJSrgyGj.js → renderNodeView-dj6AaFSX.js} +2 -2
- package/lib/{separator-kB9YUfeO.cjs → separator-CoQaQmFK.cjs} +1 -1
- package/lib/{separator-CpqX9KQC.js → separator-D-fyzbfx.js} +14 -14
- package/lib/style.css +1 -1
- package/lib/types.d.ts +5 -5
- package/lib/{updatePosition-e90ZrFWW.js → updatePosition-C294Pixi.js} +2 -2
- package/lib/utils/customEvents/events.constant.d.ts +1 -0
- package/package.json +14 -1
- package/lib/Iframe-B_a_AoZc.cjs +0 -1
- package/lib/Katex-bIhj82VV.cjs +0 -4
- package/lib/Mermaid-DiOdgQv1.cjs +0 -2
- package/lib/SlashCommandNodeView-CLimjqhb.cjs +0 -1
- package/lib/dom-dataset-BqoJhJXt.cjs +0 -1
- package/lib/dom-dataset-CIEeltF6.js +0 -47
- package/lib/index-BrxL7y9p.cjs +0 -1
- package/lib/index-Bt9LiArC.cjs +0 -10
- package/lib/select-B7v1Scb-.cjs +0 -1
- package/lib/select-BxFDMaZi.js +0 -120
- package/lib/textarea-C5DsgzSy.js +0 -20
- package/lib/textarea-bQSzjqg3.cjs +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { h as Po, N as Io, k as Ro, n as $o, m as Eo } from "./clsx-
|
|
1
|
+
import { h as Po, N as Io, k as Ro, n as $o, m as Eo } from "./clsx-BUPZHhq3.js";
|
|
2
2
|
import { jsx as er, jsxs as Nr } from "react/jsx-runtime";
|
|
3
3
|
import Xa from "katex";
|
|
4
4
|
import { useState as Ur, useRef as xo, useEffect as Bo, useMemo as Hr, useCallback as To } from "react";
|
|
5
|
-
import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un,
|
|
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, U as fn, t as ko, B as Lo } from "./index-CnKgiZFQ.js";
|
|
6
6
|
import "./theme.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as Uo } from "./index-DZfkCNKr.js";
|
|
7
|
+
import { u as Uo } from "./index-BGd2HiwP.js";
|
|
9
8
|
var Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
9
|
function Ho(r) {
|
|
11
10
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -29,8 +28,16 @@ function Go(r) {
|
|
|
29
28
|
});
|
|
30
29
|
}), n;
|
|
31
30
|
}
|
|
31
|
+
function Qa(r, e = {}) {
|
|
32
|
+
if (typeof r == "object") return r;
|
|
33
|
+
try {
|
|
34
|
+
return JSON.parse(r);
|
|
35
|
+
} catch {
|
|
36
|
+
return e;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
32
39
|
var ae, sn;
|
|
33
|
-
function
|
|
40
|
+
function Za() {
|
|
34
41
|
if (sn) return ae;
|
|
35
42
|
sn = 1;
|
|
36
43
|
var r = Object.prototype.toString;
|
|
@@ -45,7 +52,7 @@ function zo() {
|
|
|
45
52
|
ln = 1;
|
|
46
53
|
var r;
|
|
47
54
|
if (!Object.keys) {
|
|
48
|
-
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, a =
|
|
55
|
+
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, a = Za(), t = Object.prototype.propertyIsEnumerable, f = !t.call({ toString: null }, "toString"), i = t.call(function() {
|
|
49
56
|
}, "prototype"), o = [
|
|
50
57
|
"toString",
|
|
51
58
|
"toLocaleString",
|
|
@@ -131,7 +138,7 @@ var ie, cn;
|
|
|
131
138
|
function Wt() {
|
|
132
139
|
if (cn) return ie;
|
|
133
140
|
cn = 1;
|
|
134
|
-
var r = Array.prototype.slice, e =
|
|
141
|
+
var r = Array.prototype.slice, e = Za(), n = Object.keys, a = n ? function(i) {
|
|
135
142
|
return n(i);
|
|
136
143
|
} : zo(), t = Object.keys;
|
|
137
144
|
return a.shim = function() {
|
|
@@ -263,7 +270,7 @@ function Ht() {
|
|
|
263
270
|
return bn || (bn = 1, he = Object), he;
|
|
264
271
|
}
|
|
265
272
|
var de, An;
|
|
266
|
-
function
|
|
273
|
+
function ro() {
|
|
267
274
|
return An || (An = 1, de = Error), de;
|
|
268
275
|
}
|
|
269
276
|
var me, On;
|
|
@@ -361,11 +368,11 @@ function Gt() {
|
|
|
361
368
|
}, Be;
|
|
362
369
|
}
|
|
363
370
|
var Te, Dn;
|
|
364
|
-
function
|
|
371
|
+
function eo() {
|
|
365
372
|
return Dn || (Dn = 1, Te = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Te;
|
|
366
373
|
}
|
|
367
374
|
var Me, Fn;
|
|
368
|
-
function
|
|
375
|
+
function to() {
|
|
369
376
|
if (Fn) return Me;
|
|
370
377
|
Fn = 1;
|
|
371
378
|
var r = /* @__PURE__ */ Ht();
|
|
@@ -436,7 +443,7 @@ function ui() {
|
|
|
436
443
|
return Ln || (Ln = 1, _e = typeof Reflect < "u" && Reflect && Reflect.apply), _e;
|
|
437
444
|
}
|
|
438
445
|
var Ne, Un;
|
|
439
|
-
function
|
|
446
|
+
function no() {
|
|
440
447
|
if (Un) return Ne;
|
|
441
448
|
Un = 1;
|
|
442
449
|
var r = jr(), e = Vt(), n = zt(), a = ui();
|
|
@@ -446,7 +453,7 @@ var We, Hn;
|
|
|
446
453
|
function Kt() {
|
|
447
454
|
if (Hn) return We;
|
|
448
455
|
Hn = 1;
|
|
449
|
-
var r = jr(), e = /* @__PURE__ */ nr(), n = zt(), a =
|
|
456
|
+
var r = jr(), e = /* @__PURE__ */ nr(), n = zt(), a = no();
|
|
450
457
|
return We = function(f) {
|
|
451
458
|
if (f.length < 1 || typeof f[0] != "function")
|
|
452
459
|
throw new e("a function is required");
|
|
@@ -481,7 +488,7 @@ var Le, zn;
|
|
|
481
488
|
function Jt() {
|
|
482
489
|
if (zn) return Le;
|
|
483
490
|
zn = 1;
|
|
484
|
-
var r =
|
|
491
|
+
var r = eo(), e = to(), n = /* @__PURE__ */ fi();
|
|
485
492
|
return Le = r ? function(t) {
|
|
486
493
|
return r(t);
|
|
487
494
|
} : e ? function(t) {
|
|
@@ -503,7 +510,7 @@ var He, Kn;
|
|
|
503
510
|
function pr() {
|
|
504
511
|
if (Kn) return He;
|
|
505
512
|
Kn = 1;
|
|
506
|
-
var r, e = /* @__PURE__ */ Ht(), n = /* @__PURE__ */
|
|
513
|
+
var r, e = /* @__PURE__ */ Ht(), n = /* @__PURE__ */ ro(), a = /* @__PURE__ */ Ko(), t = /* @__PURE__ */ Jo(), f = /* @__PURE__ */ Yo(), i = /* @__PURE__ */ kt(), o = /* @__PURE__ */ nr(), u = /* @__PURE__ */ Xo(), c = /* @__PURE__ */ Qo(), v = /* @__PURE__ */ Zo(), p = /* @__PURE__ */ ri(), y = /* @__PURE__ */ ei(), h = /* @__PURE__ */ ti(), S = /* @__PURE__ */ ni(), R = /* @__PURE__ */ oi(), w = Function, q = function(j) {
|
|
507
514
|
try {
|
|
508
515
|
return w('"use strict"; return (' + j + ").constructor;")();
|
|
509
516
|
} catch {
|
|
@@ -520,7 +527,7 @@ function pr() {
|
|
|
520
527
|
return T;
|
|
521
528
|
}
|
|
522
529
|
}
|
|
523
|
-
})() : T, H = Gt()(), F = Jt(), D =
|
|
530
|
+
})() : T, H = Gt()(), F = Jt(), D = to(), P = eo(), _ = Vt(), L = zt(), N = {}, U = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), V = {
|
|
524
531
|
__proto__: null,
|
|
525
532
|
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
526
533
|
"%Array%": Array,
|
|
@@ -770,7 +777,7 @@ var ze, Yn;
|
|
|
770
777
|
function li() {
|
|
771
778
|
if (Yn) return ze;
|
|
772
779
|
Yn = 1;
|
|
773
|
-
var r = jr(), e = Vt(), n =
|
|
780
|
+
var r = jr(), e = Vt(), n = no();
|
|
774
781
|
return ze = function() {
|
|
775
782
|
return n(r, e, arguments);
|
|
776
783
|
}, ze;
|
|
@@ -806,7 +813,7 @@ function Q() {
|
|
|
806
813
|
}, Ve;
|
|
807
814
|
}
|
|
808
815
|
var Ke, Zn;
|
|
809
|
-
function
|
|
816
|
+
function ao() {
|
|
810
817
|
if (Zn) return Ke;
|
|
811
818
|
Zn = 1;
|
|
812
819
|
var r = Wt(), e = Vr()(), n = /* @__PURE__ */ Q(), a = /* @__PURE__ */ Ht(), t = n("Array.prototype.push"), f = n("Object.prototype.propertyIsEnumerable"), i = e ? a.getOwnPropertySymbols : null;
|
|
@@ -835,10 +842,10 @@ function no() {
|
|
|
835
842
|
}, Ke;
|
|
836
843
|
}
|
|
837
844
|
var Je, ra;
|
|
838
|
-
function
|
|
845
|
+
function oo() {
|
|
839
846
|
if (ra) return Je;
|
|
840
847
|
ra = 1;
|
|
841
|
-
var r =
|
|
848
|
+
var r = ao(), e = function() {
|
|
842
849
|
if (!Object.assign)
|
|
843
850
|
return !1;
|
|
844
851
|
for (var a = "abcdefghijklmnopqrst", t = a.split(""), f = {}, i = 0; i < t.length; ++i)
|
|
@@ -866,7 +873,7 @@ var Ye, ea;
|
|
|
866
873
|
function ci() {
|
|
867
874
|
if (ea) return Ye;
|
|
868
875
|
ea = 1;
|
|
869
|
-
var r = wr(), e =
|
|
876
|
+
var r = wr(), e = oo();
|
|
870
877
|
return Ye = function() {
|
|
871
878
|
var a = e();
|
|
872
879
|
return r(
|
|
@@ -882,7 +889,7 @@ var Xe, ta;
|
|
|
882
889
|
function pi() {
|
|
883
890
|
if (ta) return Xe;
|
|
884
891
|
ta = 1;
|
|
885
|
-
var r = wr(), e = xr(), n =
|
|
892
|
+
var r = wr(), e = xr(), n = ao(), a = oo(), t = ci(), f = e.apply(a()), i = function(u, c) {
|
|
886
893
|
return f(Object, arguments);
|
|
887
894
|
};
|
|
888
895
|
return r(i, {
|
|
@@ -892,7 +899,7 @@ function pi() {
|
|
|
892
899
|
}), Xe = i, Xe;
|
|
893
900
|
}
|
|
894
901
|
var Qe, na;
|
|
895
|
-
function
|
|
902
|
+
function io() {
|
|
896
903
|
if (na) return Qe;
|
|
897
904
|
na = 1;
|
|
898
905
|
var r = /* @__PURE__ */ pr(), e = xr(), n = e(r("String.prototype.indexOf"));
|
|
@@ -953,7 +960,7 @@ function vi() {
|
|
|
953
960
|
}, rt;
|
|
954
961
|
}
|
|
955
962
|
var et, ia;
|
|
956
|
-
function
|
|
963
|
+
function uo() {
|
|
957
964
|
if (ia) return et;
|
|
958
965
|
ia = 1;
|
|
959
966
|
var r = vi(), e = /* @__PURE__ */ nr(), n = Object;
|
|
@@ -965,10 +972,10 @@ function io() {
|
|
|
965
972
|
}, "get flags", !0), et;
|
|
966
973
|
}
|
|
967
974
|
var tt, ua;
|
|
968
|
-
function
|
|
975
|
+
function fo() {
|
|
969
976
|
if (ua) return tt;
|
|
970
977
|
ua = 1;
|
|
971
|
-
var r =
|
|
978
|
+
var r = uo(), e = wr().supportsDescriptors, n = Object.getOwnPropertyDescriptor;
|
|
972
979
|
return tt = function() {
|
|
973
980
|
if (e && /a/mig.flags === "gim") {
|
|
974
981
|
var t = n(RegExp.prototype, "flags");
|
|
@@ -993,7 +1000,7 @@ var nt, fa;
|
|
|
993
1000
|
function gi() {
|
|
994
1001
|
if (fa) return nt;
|
|
995
1002
|
fa = 1;
|
|
996
|
-
var r = wr().supportsDescriptors, e =
|
|
1003
|
+
var r = wr().supportsDescriptors, e = fo(), n = /* @__PURE__ */ Or(), a = Object.defineProperty, t = /* @__PURE__ */ ro(), f = Jt(), i = /a/;
|
|
997
1004
|
return nt = function() {
|
|
998
1005
|
if (!r || !f)
|
|
999
1006
|
throw new t("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
@@ -1009,7 +1016,7 @@ var at, sa;
|
|
|
1009
1016
|
function hi() {
|
|
1010
1017
|
if (sa) return at;
|
|
1011
1018
|
sa = 1;
|
|
1012
|
-
var r = wr(), e = xr(), n =
|
|
1019
|
+
var r = wr(), e = xr(), n = uo(), a = fo(), t = gi(), f = e(a());
|
|
1013
1020
|
return r(f, {
|
|
1014
1021
|
getPolyfill: a,
|
|
1015
1022
|
implementation: n,
|
|
@@ -1026,7 +1033,7 @@ function qr() {
|
|
|
1026
1033
|
}, ot;
|
|
1027
1034
|
}
|
|
1028
1035
|
var it, ca;
|
|
1029
|
-
function
|
|
1036
|
+
function so() {
|
|
1030
1037
|
if (ca) return it;
|
|
1031
1038
|
ca = 1;
|
|
1032
1039
|
var r = qr()(), e = /* @__PURE__ */ Q(), n = e("Object.prototype.toString"), a = function(o) {
|
|
@@ -1473,7 +1480,7 @@ function bi() {
|
|
|
1473
1480
|
}, ft;
|
|
1474
1481
|
}
|
|
1475
1482
|
var st, va;
|
|
1476
|
-
function
|
|
1483
|
+
function lo() {
|
|
1477
1484
|
if (va) return st;
|
|
1478
1485
|
va = 1;
|
|
1479
1486
|
var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a = /* @__PURE__ */ nr(), t = r("%Map%", !0), f = e("Map.prototype.get", !0), i = e("Map.prototype.set", !0), o = e("Map.prototype.has", !0), u = e("Map.prototype.delete", !0), c = e("Map.prototype.size", !0);
|
|
@@ -1509,7 +1516,7 @@ var lt, ga;
|
|
|
1509
1516
|
function Ai() {
|
|
1510
1517
|
if (ga) return lt;
|
|
1511
1518
|
ga = 1;
|
|
1512
|
-
var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a =
|
|
1519
|
+
var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a = lo(), t = /* @__PURE__ */ nr(), f = r("%WeakMap%", !0), i = e("WeakMap.prototype.get", !0), o = e("WeakMap.prototype.set", !0), u = e("WeakMap.prototype.has", !0), c = e("WeakMap.prototype.delete", !0);
|
|
1513
1520
|
return lt = f ? (
|
|
1514
1521
|
/** @type {Exclude<import('.'), false>} */
|
|
1515
1522
|
function() {
|
|
@@ -1541,10 +1548,10 @@ function Ai() {
|
|
|
1541
1548
|
) : a, lt;
|
|
1542
1549
|
}
|
|
1543
1550
|
var ct, ha;
|
|
1544
|
-
function
|
|
1551
|
+
function co() {
|
|
1545
1552
|
if (ha) return ct;
|
|
1546
1553
|
ha = 1;
|
|
1547
|
-
var r = /* @__PURE__ */ nr(), e = /* @__PURE__ */ Kr(), n = bi(), a =
|
|
1554
|
+
var r = /* @__PURE__ */ nr(), e = /* @__PURE__ */ Kr(), n = bi(), a = lo(), t = Ai(), f = t || a || n;
|
|
1548
1555
|
return ct = function() {
|
|
1549
1556
|
var o, u = {
|
|
1550
1557
|
assert: function(c) {
|
|
@@ -1571,7 +1578,7 @@ var pt, da;
|
|
|
1571
1578
|
function Oi() {
|
|
1572
1579
|
if (da) return pt;
|
|
1573
1580
|
da = 1;
|
|
1574
|
-
var r = /* @__PURE__ */ Yt(), e =
|
|
1581
|
+
var r = /* @__PURE__ */ Yt(), e = co()(), n = /* @__PURE__ */ nr(), a = {
|
|
1575
1582
|
assert: function(t, f) {
|
|
1576
1583
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
1577
1584
|
throw new n("`O` is not an object");
|
|
@@ -1658,7 +1665,7 @@ function wi() {
|
|
|
1658
1665
|
}, yt;
|
|
1659
1666
|
}
|
|
1660
1667
|
var vt, Sa;
|
|
1661
|
-
function
|
|
1668
|
+
function po() {
|
|
1662
1669
|
if (Sa) return vt;
|
|
1663
1670
|
Sa = 1;
|
|
1664
1671
|
var r = {}.toString;
|
|
@@ -1667,7 +1674,7 @@ function co() {
|
|
|
1667
1674
|
}, vt;
|
|
1668
1675
|
}
|
|
1669
1676
|
var gt, ba;
|
|
1670
|
-
function
|
|
1677
|
+
function yo() {
|
|
1671
1678
|
if (ba) return gt;
|
|
1672
1679
|
ba = 1;
|
|
1673
1680
|
var r = /* @__PURE__ */ Q(), e = r("String.prototype.valueOf"), n = function(o) {
|
|
@@ -1682,7 +1689,7 @@ function po() {
|
|
|
1682
1689
|
}, gt;
|
|
1683
1690
|
}
|
|
1684
1691
|
var ht, Aa;
|
|
1685
|
-
function
|
|
1692
|
+
function vo() {
|
|
1686
1693
|
if (Aa) return ht;
|
|
1687
1694
|
Aa = 1;
|
|
1688
1695
|
var r = typeof Map == "function" && Map.prototype ? Map : null, e = typeof Set == "function" && Set.prototype ? Set : null, n;
|
|
@@ -1709,7 +1716,7 @@ function yo() {
|
|
|
1709
1716
|
}, ht;
|
|
1710
1717
|
}
|
|
1711
1718
|
var dt, Oa;
|
|
1712
|
-
function
|
|
1719
|
+
function go() {
|
|
1713
1720
|
if (Oa) return dt;
|
|
1714
1721
|
Oa = 1;
|
|
1715
1722
|
var r = typeof Map == "function" && Map.prototype ? Map : null, e = typeof Set == "function" && Set.prototype ? Set : null, n;
|
|
@@ -1739,7 +1746,7 @@ var wa;
|
|
|
1739
1746
|
function qi() {
|
|
1740
1747
|
if (wa) return Mr.exports;
|
|
1741
1748
|
wa = 1;
|
|
1742
|
-
var r = /* @__PURE__ */
|
|
1749
|
+
var r = /* @__PURE__ */ so(), e = /* @__PURE__ */ wi();
|
|
1743
1750
|
if (Gt()() || Vr()()) {
|
|
1744
1751
|
var n = Symbol.iterator;
|
|
1745
1752
|
Mr.exports = function(P) {
|
|
@@ -1749,7 +1756,7 @@ function qi() {
|
|
|
1749
1756
|
return Array.prototype[n].call(P);
|
|
1750
1757
|
};
|
|
1751
1758
|
} else {
|
|
1752
|
-
var a =
|
|
1759
|
+
var a = po(), t = yo(), f = /* @__PURE__ */ pr(), i = f("%Map%", !0), o = f("%Set%", !0), u = io(), c = u("Array.prototype.push"), v = u("String.prototype.charCodeAt"), p = u("String.prototype.slice"), y = function(P, _) {
|
|
1753
1760
|
var L = P.length;
|
|
1754
1761
|
if (_ + 1 >= L)
|
|
1755
1762
|
return _ + 1;
|
|
@@ -1793,7 +1800,7 @@ function qi() {
|
|
|
1793
1800
|
return S(P, !0);
|
|
1794
1801
|
};
|
|
1795
1802
|
else {
|
|
1796
|
-
var R = /* @__PURE__ */
|
|
1803
|
+
var R = /* @__PURE__ */ vo(), w = /* @__PURE__ */ go(), q = u("Map.prototype.forEach", !0), O = u("Set.prototype.forEach", !0);
|
|
1797
1804
|
if (typeof process > "u" || !process.versions || !process.versions.node)
|
|
1798
1805
|
var m = u("Map.prototype.iterator", !0), T = u("Set.prototype.iterator", !0);
|
|
1799
1806
|
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) {
|
|
@@ -1830,7 +1837,7 @@ function qi() {
|
|
|
1830
1837
|
return Mr.exports;
|
|
1831
1838
|
}
|
|
1832
1839
|
var mt, qa;
|
|
1833
|
-
function
|
|
1840
|
+
function ho() {
|
|
1834
1841
|
if (qa) return mt;
|
|
1835
1842
|
qa = 1;
|
|
1836
1843
|
var r = function(e) {
|
|
@@ -1841,10 +1848,10 @@ function go() {
|
|
|
1841
1848
|
}, mt;
|
|
1842
1849
|
}
|
|
1843
1850
|
var St, Pa;
|
|
1844
|
-
function
|
|
1851
|
+
function mo() {
|
|
1845
1852
|
if (Pa) return St;
|
|
1846
1853
|
Pa = 1;
|
|
1847
|
-
var r =
|
|
1854
|
+
var r = ho();
|
|
1848
1855
|
return St = function() {
|
|
1849
1856
|
return typeof Object.is == "function" ? Object.is : r;
|
|
1850
1857
|
}, St;
|
|
@@ -1853,7 +1860,7 @@ var bt, Ia;
|
|
|
1853
1860
|
function Pi() {
|
|
1854
1861
|
if (Ia) return bt;
|
|
1855
1862
|
Ia = 1;
|
|
1856
|
-
var r =
|
|
1863
|
+
var r = mo(), e = wr();
|
|
1857
1864
|
return bt = function() {
|
|
1858
1865
|
var a = r();
|
|
1859
1866
|
return e(Object, { is: a }, {
|
|
@@ -1867,7 +1874,7 @@ var At, Ra;
|
|
|
1867
1874
|
function Ii() {
|
|
1868
1875
|
if (Ra) return At;
|
|
1869
1876
|
Ra = 1;
|
|
1870
|
-
var r = wr(), e = xr(), n =
|
|
1877
|
+
var r = wr(), e = xr(), n = ho(), a = mo(), t = Pi(), f = e(a(), Object);
|
|
1871
1878
|
return r(f, {
|
|
1872
1879
|
getPolyfill: a,
|
|
1873
1880
|
implementation: n,
|
|
@@ -1875,7 +1882,7 @@ function Ii() {
|
|
|
1875
1882
|
}), At = f, At;
|
|
1876
1883
|
}
|
|
1877
1884
|
var Ot, $a;
|
|
1878
|
-
function
|
|
1885
|
+
function So() {
|
|
1879
1886
|
if ($a) return Ot;
|
|
1880
1887
|
$a = 1;
|
|
1881
1888
|
var r = xr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ pr(), a = n("%ArrayBuffer%", !0), t = e("ArrayBuffer.prototype.byteLength", !0), f = e("Object.prototype.toString"), i = !!a && !t && new a(0).slice, o = !!i && r(i);
|
|
@@ -1909,7 +1916,7 @@ function Ri() {
|
|
|
1909
1916
|
}, wt;
|
|
1910
1917
|
}
|
|
1911
1918
|
var qt, xa;
|
|
1912
|
-
function
|
|
1919
|
+
function bo() {
|
|
1913
1920
|
if (xa) return qt;
|
|
1914
1921
|
xa = 1;
|
|
1915
1922
|
var r = /* @__PURE__ */ Q(), e = qr()(), n = /* @__PURE__ */ Yt(), a = /* @__PURE__ */ Or(), t;
|
|
@@ -2003,7 +2010,7 @@ var Wr = { exports: {} }, $t, ja;
|
|
|
2003
2010
|
function Bi() {
|
|
2004
2011
|
if (ja) return $t;
|
|
2005
2012
|
ja = 1;
|
|
2006
|
-
var r = /* @__PURE__ */ Q(), e =
|
|
2013
|
+
var r = /* @__PURE__ */ Q(), e = bo(), n = r("RegExp.prototype.exec"), a = /* @__PURE__ */ nr();
|
|
2007
2014
|
return $t = function(f) {
|
|
2008
2015
|
if (!e(f))
|
|
2009
2016
|
throw new a("`regex` must be a RegExp");
|
|
@@ -2073,7 +2080,7 @@ var xt, _a;
|
|
|
2073
2080
|
function Ci() {
|
|
2074
2081
|
if (_a) return xt;
|
|
2075
2082
|
_a = 1;
|
|
2076
|
-
var r =
|
|
2083
|
+
var r = yo(), e = Ei(), n = xi(), a = Ti(), t = ji();
|
|
2077
2084
|
return xt = function(i) {
|
|
2078
2085
|
if (i == null || typeof i != "object" && typeof i != "function")
|
|
2079
2086
|
return null;
|
|
@@ -2148,7 +2155,7 @@ var Tt, ka;
|
|
|
2148
2155
|
function _i() {
|
|
2149
2156
|
if (ka) return Tt;
|
|
2150
2157
|
ka = 1;
|
|
2151
|
-
var r = /* @__PURE__ */
|
|
2158
|
+
var r = /* @__PURE__ */ vo(), e = /* @__PURE__ */ go(), n = Di(), a = /* @__PURE__ */ Fi();
|
|
2152
2159
|
return Tt = function(f) {
|
|
2153
2160
|
if (f && typeof f == "object") {
|
|
2154
2161
|
if (r(f))
|
|
@@ -2361,7 +2368,7 @@ var _t, Va;
|
|
|
2361
2368
|
function Hi() {
|
|
2362
2369
|
if (Va) return _t;
|
|
2363
2370
|
Va = 1;
|
|
2364
|
-
var r = /* @__PURE__ */ Q(), e = r("ArrayBuffer.prototype.byteLength", !0), n = /* @__PURE__ */
|
|
2371
|
+
var r = /* @__PURE__ */ Q(), e = r("ArrayBuffer.prototype.byteLength", !0), n = /* @__PURE__ */ So();
|
|
2365
2372
|
return _t = function(t) {
|
|
2366
2373
|
return n(t) ? e ? e(t) : t.byteLength : NaN;
|
|
2367
2374
|
}, _t;
|
|
@@ -2370,7 +2377,7 @@ var Nt, Ka;
|
|
|
2370
2377
|
function Gi() {
|
|
2371
2378
|
if (Ka) return Nt;
|
|
2372
2379
|
Ka = 1;
|
|
2373
|
-
var r = pi(), e =
|
|
2380
|
+
var r = pi(), e = io(), n = hi(), a = /* @__PURE__ */ pr(), t = qi(), f = co(), i = Ii(), o = /* @__PURE__ */ so(), u = po(), c = /* @__PURE__ */ So(), v = /* @__PURE__ */ Ri(), p = bo(), y = /* @__PURE__ */ $i(), h = Wt(), S = Ci(), R = /* @__PURE__ */ _i(), w = /* @__PURE__ */ Ui(), q = /* @__PURE__ */ Hi(), O = e("SharedArrayBuffer.prototype.byteLength", !0), m = e("Date.prototype.getTime"), T = Object.getPrototypeOf, X = e("Object.prototype.toString"), H = a("%Set%", !0), F = e("Map.prototype.has", !0), D = e("Map.prototype.get", !0), P = e("Map.prototype.size", !0), _ = e("Set.prototype.add", !0), L = e("Set.prototype.delete", !0), N = e("Set.prototype.has", !0), U = e("Set.prototype.size", !0);
|
|
2374
2381
|
function V(g, d, E, $) {
|
|
2375
2382
|
for (var M = t(g), j; (j = M.next()) && !j.done; )
|
|
2376
2383
|
if (G(d, j.value, E, $))
|
|
@@ -2555,19 +2562,11 @@ function Ji(r, e, n, a) {
|
|
|
2555
2562
|
};
|
|
2556
2563
|
}, [r, n, e, t]), f;
|
|
2557
2564
|
}
|
|
2558
|
-
function bo(r, e = {}) {
|
|
2559
|
-
if (typeof r == "object") return r;
|
|
2560
|
-
try {
|
|
2561
|
-
return JSON.parse(r);
|
|
2562
|
-
} catch {
|
|
2563
|
-
return e;
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
2565
|
function Yi({ node: r }) {
|
|
2567
2566
|
const { text: e, macros: n } = r.attrs, a = Hr(() => {
|
|
2568
2567
|
try {
|
|
2569
2568
|
return Xa.renderToString(decodeURIComponent(e || ""), {
|
|
2570
|
-
macros:
|
|
2569
|
+
macros: Qa(decodeURIComponent(n || ""))
|
|
2571
2570
|
});
|
|
2572
2571
|
} catch {
|
|
2573
2572
|
return e;
|
|
@@ -2587,7 +2586,7 @@ function Yi({ node: r }) {
|
|
|
2587
2586
|
}
|
|
2588
2587
|
);
|
|
2589
2588
|
}
|
|
2590
|
-
function
|
|
2589
|
+
function au() {
|
|
2591
2590
|
const { t: r } = Uo(), [e, n] = Ur(!1), a = Mo(Ya.name), {
|
|
2592
2591
|
icon: t = void 0,
|
|
2593
2592
|
tooltip: f = void 0,
|
|
@@ -2604,7 +2603,7 @@ function ou() {
|
|
|
2604
2603
|
}, [c, h, R]), O = Hr(() => {
|
|
2605
2604
|
try {
|
|
2606
2605
|
return Xa.renderToString(h, {
|
|
2607
|
-
macros:
|
|
2606
|
+
macros: Qa(R)
|
|
2608
2607
|
});
|
|
2609
2608
|
} catch {
|
|
2610
2609
|
return h;
|
|
@@ -2747,7 +2746,7 @@ const Ya = /* @__PURE__ */ Io.create({
|
|
|
2747
2746
|
});
|
|
2748
2747
|
export {
|
|
2749
2748
|
Ya as K,
|
|
2750
|
-
|
|
2751
|
-
|
|
2749
|
+
au as R,
|
|
2750
|
+
Qa as s,
|
|
2752
2751
|
Ji as u
|
|
2753
2752
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Dr=require("./clsx-CXbNJWDD.cjs"),Y=require("react/jsx-runtime"),Ya=require("katex"),fr=require("react"),tr=require("./index-BynXHtjJ.cjs");require("./theme.cjs");const qo=require("./index-DgOXAdKt.cjs");var Gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Po(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Io(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var t=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(n,a,t.get?t:{enumerable:!0,get:function(){return r[a]}})}),n}function kt(r,e={}){if(typeof r=="object")return r;try{return JSON.parse(r)}catch{return e}}var ae,sn;function Xa(){if(sn)return ae;sn=1;var r=Object.prototype.toString;return ae=function(n){var a=r.call(n),t=a==="[object Arguments]";return t||(t=a!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&r.call(n.callee)==="[object Function]"),t},ae}var oe,ln;function Ro(){if(ln)return oe;ln=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Xa(),t=Object.prototype.propertyIsEnumerable,f=!t.call({toString:null},"toString"),i=t.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(y){var h=y.constructor;return h&&h.prototype===y},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!c["$"+y]&&e.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{u(window[y])}catch{return!0}}catch{return!0}return!1})(),p=function(y){if(typeof window>"u"||!v)return u(y);try{return u(y)}catch{return!1}};r=function(h){var S=h!==null&&typeof h=="object",R=n.call(h)==="[object Function]",w=a(h),q=S&&n.call(h)==="[object String]",O=[];if(!S&&!R&&!w)throw new TypeError("Object.keys called on a non-object");var m=i&&R;if(q&&h.length>0&&!e.call(h,0))for(var j=0;j<h.length;++j)O.push(String(j));if(w&&h.length>0)for(var Q=0;Q<h.length;++Q)O.push(String(Q));else for(var H in h)!(m&&H==="prototype")&&e.call(h,H)&&O.push(String(H));if(f)for(var F=p(h),D=0;D<o.length;++D)!(F&&o[D]==="constructor")&&e.call(h,o[D])&&O.push(o[D]);return O}}return oe=r,oe}var ie,cn;function Lt(){if(cn)return ie;cn=1;var r=Array.prototype.slice,e=Xa(),n=Object.keys,a=n?function(i){return n(i)}:Ro(),t=Object.keys;return a.shim=function(){if(Object.keys){var i=(function(){var o=Object.keys(arguments);return o&&o.length===arguments.length})(1,2);i||(Object.keys=function(u){return e(u)?t(r.call(u)):t(u)})}else Object.keys=a;return Object.keys||a},ie=a,ie}var ue,pn;function zr(){if(pn)return ue;pn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return ue=r,ue}var fe,yn;function Ut(){return yn||(yn=1,fe=SyntaxError),fe}var se,vn;function ar(){return vn||(vn=1,se=TypeError),se}var le,gn;function $o(){return gn||(gn=1,le=Object.getOwnPropertyDescriptor),le}var ce,hn;function qr(){if(hn)return ce;hn=1;var r=$o();if(r)try{r([],"length")}catch{r=null}return ce=r,ce}var pe,dn;function Ht(){if(dn)return pe;dn=1;var r=zr(),e=Ut(),n=ar(),a=qr();return pe=function(f,i,o){if(!f||typeof f!="object"&&typeof f!="function")throw new n("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,y=!!a&&a(f,i);if(r)r(f,i,{configurable:v===null&&y?y.configurable:!v,enumerable:u===null&&y?y.enumerable:!u,value:o,writable:c===null&&y?y.writable:!c});else if(p||!u&&!c&&!v)f[i]=o;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},pe}var ye,mn;function Gt(){if(mn)return ye;mn=1;var r=zr(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},ye=e,ye}var ve,Sn;function Pr(){if(Sn)return ve;Sn=1;var r=Lt(),e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,a=Array.prototype.concat,t=Ht(),f=function(c){return typeof c=="function"&&n.call(c)==="[object Function]"},i=Gt()(),o=function(c,v,p,y){if(v in c){if(y===!0){if(c[v]===p)return}else if(!f(y)||!y())return}i?t(c,v,p,!0):t(c,v,p)},u=function(c,v){var p=arguments.length>2?arguments[2]:{},y=r(v);e&&(y=a.call(y,Object.getOwnPropertySymbols(v)));for(var h=0;h<y.length;h+=1)o(c,y[h],v[y[h]],p[y[h]])};return u.supportsDescriptors=!!i,ve=u,ve}var ge={exports:{}},he,bn;function zt(){return bn||(bn=1,he=Object),he}var de,An;function Qa(){return An||(An=1,de=Error),de}var me,On;function xo(){return On||(On=1,me=EvalError),me}var Se,wn;function Eo(){return wn||(wn=1,Se=RangeError),Se}var be,qn;function Bo(){return qn||(qn=1,be=ReferenceError),be}var Ae,Pn;function jo(){return Pn||(Pn=1,Ae=URIError),Ae}var Oe,In;function Mo(){return In||(In=1,Oe=Math.abs),Oe}var we,Rn;function To(){return Rn||(Rn=1,we=Math.floor),we}var qe,$n;function Co(){return $n||($n=1,qe=Math.max),qe}var Pe,xn;function Do(){return xn||(xn=1,Pe=Math.min),Pe}var Ie,En;function Fo(){return En||(En=1,Ie=Math.pow),Ie}var Re,Bn;function _o(){return Bn||(Bn=1,Re=Math.round),Re}var $e,jn;function No(){return jn||(jn=1,$e=Number.isNaN||function(e){return e!==e}),$e}var xe,Mn;function Wo(){if(Mn)return xe;Mn=1;var r=No();return xe=function(n){return r(n)||n===0?n:n<0?-1:1},xe}var Ee,Tn;function Vr(){return Tn||(Tn=1,Ee=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var t=42;e[n]=t;for(var f in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==t||o.enumerable!==!0)return!1}return!0}),Ee}var Be,Cn;function Vt(){if(Cn)return Be;Cn=1;var r=typeof Symbol<"u"&&Symbol,e=Vr();return Be=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Be}var je,Dn;function Za(){return Dn||(Dn=1,je=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),je}var Me,Fn;function ro(){if(Fn)return Me;Fn=1;var r=zt();return Me=r.getPrototypeOf||null,Me}var Te,_n;function ko(){if(_n)return Te;_n=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,a="[object Function]",t=function(u,c){for(var v=[],p=0;p<u.length;p+=1)v[p]=u[p];for(var y=0;y<c.length;y+=1)v[y+u.length]=c[y];return v},f=function(u,c){for(var v=[],p=c,y=0;p<u.length;p+=1,y+=1)v[y]=u[p];return v},i=function(o,u){for(var c="",v=0;v<o.length;v+=1)c+=o[v],v+1<o.length&&(c+=u);return c};return Te=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==a)throw new TypeError(r+c);for(var v=f(arguments,1),p,y=function(){if(this instanceof p){var q=c.apply(this,t(v,arguments));return Object(q)===q?q:this}return c.apply(u,t(v,arguments))},h=n(0,c.length-v.length),S=[],R=0;R<h;R++)S[R]="$"+R;if(p=Function("binder","return function ("+i(S,",")+"){ return binder.apply(this,arguments); }")(y),c.prototype){var w=function(){};w.prototype=c.prototype,p.prototype=new w,w.prototype=null}return p},Te}var Ce,Nn;function Fr(){if(Nn)return Ce;Nn=1;var r=ko();return Ce=Function.prototype.bind||r,Ce}var De,Wn;function Kt(){return Wn||(Wn=1,De=Function.prototype.call),De}var Fe,kn;function Jt(){return kn||(kn=1,Fe=Function.prototype.apply),Fe}var _e,Ln;function Lo(){return Ln||(Ln=1,_e=typeof Reflect<"u"&&Reflect&&Reflect.apply),_e}var Ne,Un;function eo(){if(Un)return Ne;Un=1;var r=Fr(),e=Jt(),n=Kt(),a=Lo();return Ne=a||r.call(n,e),Ne}var We,Hn;function Yt(){if(Hn)return We;Hn=1;var r=Fr(),e=ar(),n=Kt(),a=eo();return We=function(f){if(f.length<1||typeof f[0]!="function")throw new e("a function is required");return a(r,n,f)},We}var ke,Gn;function Uo(){if(Gn)return ke;Gn=1;var r=Yt(),e=qr(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var a=!!n&&e&&e(Object.prototype,"__proto__"),t=Object,f=t.getPrototypeOf;return ke=a&&typeof a.get=="function"?r([a.get]):typeof f=="function"?function(o){return f(o==null?o:t(o))}:!1,ke}var Le,zn;function Xt(){if(zn)return Le;zn=1;var r=Za(),e=ro(),n=Uo();return Le=r?function(t){return r(t)}:e?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return e(t)}:n?function(t){return n(t)}:null,Le}var Ue,Vn;function Qt(){if(Vn)return Ue;Vn=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=Fr();return Ue=n.call(r,e),Ue}var He,Kn;function vr(){if(Kn)return He;Kn=1;var r,e=zt(),n=Qa(),a=xo(),t=Eo(),f=Bo(),i=Ut(),o=ar(),u=jo(),c=Mo(),v=To(),p=Co(),y=Do(),h=Fo(),S=_o(),R=Wo(),w=Function,q=function(T){try{return w('"use strict"; return ('+T+").constructor;")()}catch{}},O=qr(),m=zr(),j=function(){throw new o},Q=O?(function(){try{return arguments.callee,j}catch{try{return O(arguments,"callee").get}catch{return j}}})():j,H=Vt()(),F=Xt(),D=ro(),P=Za(),_=Jt(),L=Kt(),N={},U=typeof Uint8Array>"u"||!F?r:F(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":H&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!H||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":t,"%ReferenceError%":f,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!H||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&F?F(""[Symbol.iterator]()):r,"%Symbol%":H?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":Q,"%TypedArray%":U,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":_,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":D,"%Math.abs%":c,"%Math.floor%":v,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":S,"%Math.sign%":R,"%Reflect.getPrototypeOf%":P};if(F)try{null.error}catch(T){var sr=F(F(T));V["%Error.prototype%"]=sr}var Rr=function T(A){var I;if(A==="%AsyncFunction%")I=q("async function () {}");else if(A==="%GeneratorFunction%")I=q("function* () {}");else if(A==="%AsyncGeneratorFunction%")I=q("async function* () {}");else if(A==="%AsyncGenerator%"){var b=T("%AsyncGeneratorFunction%");b&&(I=b.prototype)}else if(A==="%AsyncIteratorPrototype%"){var E=T("%AsyncGenerator%");E&&F&&(I=F(E.prototype))}return V[A]=I,I},br={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},or=Fr(),G=Qt(),Ar=or.call(L,Array.prototype.concat),$r=or.call(_,Array.prototype.splice),Or=or.call(L,String.prototype.replace),gr=or.call(L,String.prototype.slice),g=or.call(L,RegExp.prototype.exec),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,$=function(A){var I=gr(A,0,1),b=gr(A,-1);if(I==="%"&&b!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(b==="%"&&I!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var E=[];return Or(A,d,function(z,K,J,X){E[E.length]=J?Or(X,x,"$1"):K||z}),E},M=function(A,I){var b=A,E;if(G(br,b)&&(E=br[b],b="%"+E[0]+"%"),G(V,b)){var z=V[b];if(z===N&&(z=Rr(b)),typeof z>"u"&&!I)throw new o("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:E,name:b,value:z}}throw new i("intrinsic "+A+" does not exist!")};return He=function(A,I){if(typeof A!="string"||A.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new o('"allowMissing" argument must be a boolean');if(g(/^%?[^%]*%?$/,A)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var b=$(A),E=b.length>0?b[0]:"",z=M("%"+E+"%",I),K=z.name,J=z.value,X=!1,rr=z.alias;rr&&(E=rr[0],$r(b,Ar([0,1],rr)));for(var lr=1,ir=!0;lr<b.length;lr+=1){var er=b[lr],cr=gr(er,0,1),pr=gr(er,-1);if((cr==='"'||cr==="'"||cr==="`"||pr==='"'||pr==="'"||pr==="`")&&cr!==pr)throw new i("property names with quotes must have matching quotes");if((er==="constructor"||!ir)&&(X=!0),E+="."+er,K="%"+E+"%",G(V,K))J=V[K];else if(J!=null){if(!(er in J)){if(!I)throw new o("base intrinsic for "+A+" exists, but the property is not available.");return}if(O&&lr+1>=b.length){var yr=O(J,er);ir=!!yr,ir&&"get"in yr&&!("originalValue"in yr.get)?J=yr.get:J=J[er]}else ir=G(J,er),J=J[er];ir&&!X&&(V[K]=J)}}return J},He}var Ge,Jn;function Ho(){if(Jn)return Ge;Jn=1;var r=vr(),e=Ht(),n=Gt()(),a=qr(),t=ar(),f=r("%Math.floor%");return Ge=function(o,u){if(typeof o!="function")throw new t("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||f(u)!==u)throw new t("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],v=!0,p=!0;if("length"in o&&a){var y=a(o,"length");y&&!y.configurable&&(v=!1),y&&!y.writable&&(p=!1)}return(v||p||!c)&&(n?e(o,"length",u,!0,!0):e(o,"length",u)),o},Ge}var ze,Yn;function Go(){if(Yn)return ze;Yn=1;var r=Fr(),e=Jt(),n=eo();return ze=function(){return n(r,e,arguments)},ze}var Xn;function jr(){return Xn||(Xn=1,(function(r){var e=Ho(),n=zr(),a=Yt(),t=Go();r.exports=function(i){var o=a(arguments),u=i.length-(arguments.length-1);return e(o,1+(u>0?u:0),!0)},n?n(r.exports,"apply",{value:t}):r.exports.apply=t})(ge)),ge.exports}var Ve,Qn;function Z(){if(Qn)return Ve;Qn=1;var r=vr(),e=Yt(),n=e([r("%String.prototype.indexOf%")]);return Ve=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e([i]):i},Ve}var Ke,Zn;function to(){if(Zn)return Ke;Zn=1;var r=Lt(),e=Vr()(),n=Z(),a=zt(),t=n("Array.prototype.push"),f=n("Object.prototype.propertyIsEnumerable"),i=e?a.getOwnPropertySymbols:null;return Ke=function(u,c){if(u==null)throw new TypeError("target must be an object");var v=a(u);if(arguments.length===1)return v;for(var p=1;p<arguments.length;++p){var y=a(arguments[p]),h=r(y),S=e&&(a.getOwnPropertySymbols||i);if(S)for(var R=S(y),w=0;w<R.length;++w){var q=R[w];f(y,q)&&t(h,q)}for(var O=0;O<h.length;++O){var m=h[O];if(f(y,m)){var j=y[m];v[m]=j}}}return v},Ke}var Je,ra;function no(){if(ra)return Je;ra=1;var r=to(),e=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",t=a.split(""),f={},i=0;i<t.length;++i)f[t[i]]=t[i];var o=Object.assign({},f),u="";for(var c in o)u+=c;return a!==u},n=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return Je=function(){return!Object.assign||e()||n()?r:Object.assign},Je}var Ye,ea;function zo(){if(ea)return Ye;ea=1;var r=Pr(),e=no();return Ye=function(){var a=e();return r(Object,{assign:a},{assign:function(){return Object.assign!==a}}),a},Ye}var Xe,ta;function Vo(){if(ta)return Xe;ta=1;var r=Pr(),e=jr(),n=to(),a=no(),t=zo(),f=e.apply(a()),i=function(u,c){return f(Object,arguments)};return r(i,{getPolyfill:a,implementation:n,shim:t}),Xe=i,Xe}var Qe,na;function ao(){if(na)return Qe;na=1;var r=vr(),e=jr(),n=e(r("String.prototype.indexOf"));return Qe=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e(i):i},Qe}var Ze,aa;function Ko(){if(aa)return Ze;aa=1;var r=function(){return typeof(function(){}).name=="string"},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch{e=null}r.functionsHaveConfigurableNames=function(){if(!r()||!e)return!1;var t=e(function(){},"name");return!!t&&!!t.configurable};var n=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof n=="function"&&(function(){}).bind().name!==""},Ze=r,Ze}var rt,oa;function Jo(){if(oa)return rt;oa=1;var r=Ht(),e=Gt()(),n=Ko().functionsHaveConfigurableNames(),a=ar();return rt=function(f,i){if(typeof f!="function")throw new a("`fn` is not a function");var o=arguments.length>2&&!!arguments[2];return(!o||n)&&(e?r(f,"name",i,!0,!0):r(f,"name",i)),f},rt}var et,ia;function oo(){if(ia)return et;ia=1;var r=Jo(),e=ar(),n=Object;return et=r(function(){if(this==null||this!==n(this))throw new e("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),et}var tt,ua;function io(){if(ua)return tt;ua=1;var r=oo(),e=Pr().supportsDescriptors,n=Object.getOwnPropertyDescriptor;return tt=function(){if(e&&/a/mig.flags==="gim"){var t=n(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var f="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){f+="d"}}),Object.defineProperty(i,"sticky",{get:function(){f+="y"}}),t.get.call(i),f==="dy")return t.get}}return r},tt}var nt,fa;function Yo(){if(fa)return nt;fa=1;var r=Pr().supportsDescriptors,e=io(),n=qr(),a=Object.defineProperty,t=Qa(),f=Xt(),i=/a/;return nt=function(){if(!r||!f)throw new t("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=e(),c=f(i),v=n(c,"flags");return(!v||v.get!==u)&&a(c,"flags",{configurable:!0,enumerable:!1,get:u}),u},nt}var at,sa;function Xo(){if(sa)return at;sa=1;var r=Pr(),e=jr(),n=oo(),a=io(),t=Yo(),f=e(a());return r(f,{getPolyfill:a,implementation:n,shim:t}),at=f,at}var Cr={exports:{}},ot,la;function Ir(){if(la)return ot;la=1;var r=Vr();return ot=function(){return r()&&!!Symbol.toStringTag},ot}var it,ca;function uo(){if(ca)return it;ca=1;var r=Ir()(),e=Z(),n=e("Object.prototype.toString"),a=function(o){return r&&o&&typeof o=="object"&&Symbol.toStringTag in o?!1:n(o)==="[object Arguments]"},t=function(o){return a(o)?!0:o!==null&&typeof o=="object"&&"length"in o&&typeof o.length=="number"&&o.length>=0&&n(o)!=="[object Array]"&&"callee"in o&&n(o.callee)==="[object Function]"},f=(function(){return a(arguments)})();return a.isLegacyArguments=t,it=f?a:t,it}const Qo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),ri=Io(Zo);var ut,pa;function Kr(){if(pa)return ut;pa=1;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,j=String.prototype.toUpperCase,Q=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",sr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Rr=Object.prototype.propertyIsEnumerable,br=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(s){return s.__proto__}:null);function or(s,l){if(s===1/0||s===-1/0||s!==s||s&&s>-1e3&&s<1e3||H.call(/e/,l))return l;var C=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof s=="number"){var W=s<0?-_(-s):_(s);if(W!==s){var k=String(W),B=O.call(l,k.length+1);return m.call(k,C,"$&_")+"."+m.call(m.call(B,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(l,C,"$&_")}var G=ri,Ar=G.custom,$r=z(Ar)?Ar:null,Or={__proto__:null,double:'"',single:"'"},gr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ut=function s(l,C,W,k){var B=C||{};if(X(B,"quoteStyle")&&!X(Or,B.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(B,"maxStringLength")&&(typeof B.maxStringLength=="number"?B.maxStringLength<0&&B.maxStringLength!==1/0:B.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var mr=X(B,"customInspect")?B.customInspect:!0;if(typeof mr!="boolean"&&mr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(B,"indent")&&B.indent!==null&&B.indent!==" "&&!(parseInt(B.indent,10)===B.indent&&B.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(B,"numericSeparator")&&typeof B.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var wr=B.numericSeparator;if(typeof l>"u")return"undefined";if(l===null)return"null";if(typeof l=="boolean")return l?"true":"false";if(typeof l=="string")return xr(l,B);if(typeof l=="number"){if(l===0)return 1/0/l>0?"0":"-0";var nr=String(l);return wr?or(l,nr):nr}if(typeof l=="bigint"){var Sr=String(l)+"n";return wr?or(l,Sr):Sr}var Xr=typeof B.depth>"u"?5:B.depth;if(typeof W>"u"&&(W=0),W>=Xr&&Xr>0&&typeof l=="object")return $(l)?"[Array]":"[Object]";var Er=Ao(B,W);if(typeof k>"u")k=[];else if(ir(k,l)>=0)return"[Circular]";function ur(Br,kr,wo){if(kr&&(k=P.call(k),k.push(kr)),wo){var fn={depth:B.depth};return X(B,"quoteStyle")&&(fn.quoteStyle=B.quoteStyle),s(Br,fn,W+1,k)}return s(Br,B,W+1,k)}if(typeof l=="function"&&!T(l)){var rn=lr(l),en=Nr(l,ur);return"[Function"+(rn?": "+rn:" (anonymous)")+"]"+(en.length>0?" { "+D.call(en,", ")+" }":"")}if(z(l)){var tn=V?m.call(String(l),/^(Symbol\(.*\))_[^)]*$/,"$1"):U.call(l);return typeof l=="object"&&!V?dr(tn):tn}if(hr(l)){for(var Tr="<"+Q.call(String(l.nodeName)),Qr=l.attributes||[],Wr=0;Wr<Qr.length;Wr++)Tr+=" "+Qr[Wr].name+"="+g(d(Qr[Wr].value),"double",B);return Tr+=">",l.childNodes&&l.childNodes.length&&(Tr+="..."),Tr+="</"+Q.call(String(l.nodeName))+">",Tr}if($(l)){if(l.length===0)return"[]";var Zr=Nr(l,ur);return Er&&!bo(Zr)?"["+Yr(Zr,Er)+"]":"[ "+D.call(Zr,", ")+" ]"}if(A(l)){var re=Nr(l,ur);return!("cause"in Error.prototype)&&"cause"in l&&!Rr.call(l,"cause")?"{ ["+String(l)+"] "+D.call(F.call("[cause]: "+ur(l.cause),re),", ")+" }":re.length===0?"["+String(l)+"]":"{ ["+String(l)+"] "+D.call(re,", ")+" }"}if(typeof l=="object"&&mr){if($r&&typeof l[$r]=="function"&&G)return G(l,{depth:Xr-W});if(mr!=="symbol"&&typeof l.inspect=="function")return l.inspect()}if(er(l)){var nn=[];return a&&a.call(l,function(Br,kr){nn.push(ur(kr,l,!0)+" => "+ur(Br,l))}),Zt("Map",n.call(l),nn,Er)}if(yr(l)){var an=[];return o&&o.call(l,function(Br){an.push(ur(Br,l))}),Zt("Set",i.call(l),an,Er)}if(cr(l))return Jr("WeakMap");if(_r(l))return Jr("WeakSet");if(pr(l))return Jr("WeakRef");if(b(l))return dr(ur(Number(l)));if(K(l))return dr(ur(L.call(l)));if(E(l))return dr(S.call(l));if(I(l))return dr(ur(String(l)));if(typeof window<"u"&&l===window)return"{ [object Window] }";if(typeof globalThis<"u"&&l===globalThis||typeof Gr<"u"&&l===Gr)return"{ [object globalThis] }";if(!M(l)&&!T(l)){var ee=Nr(l,ur),on=br?br(l)===Object.prototype:l instanceof Object||l.constructor===Object,te=l instanceof Object?"":"null prototype",un=!on&&sr&&Object(l)===l&&sr in l?O.call(rr(l),8,-1):te?"Object":"",Oo=on||typeof l.constructor!="function"?"":l.constructor.name?l.constructor.name+" ":"",ne=Oo+(un||te?"["+D.call(F.call([],un||[],te||[]),": ")+"] ":"");return ee.length===0?ne+"{}":Er?ne+"{"+Yr(ee,Er)+"}":ne+"{ "+D.call(ee,", ")+" }"}return String(l)};function g(s,l,C){var W=C.quoteStyle||l,k=Or[W];return k+s+k}function d(s){return m.call(String(s),/"/g,""")}function x(s){return!sr||!(typeof s=="object"&&(sr in s||typeof s[sr]<"u"))}function $(s){return rr(s)==="[object Array]"&&x(s)}function M(s){return rr(s)==="[object Date]"&&x(s)}function T(s){return rr(s)==="[object RegExp]"&&x(s)}function A(s){return rr(s)==="[object Error]"&&x(s)}function I(s){return rr(s)==="[object String]"&&x(s)}function b(s){return rr(s)==="[object Number]"&&x(s)}function E(s){return rr(s)==="[object Boolean]"&&x(s)}function z(s){if(V)return s&&typeof s=="object"&&s instanceof Symbol;if(typeof s=="symbol")return!0;if(!s||typeof s!="object"||!U)return!1;try{return U.call(s),!0}catch{}return!1}function K(s){if(!s||typeof s!="object"||!L)return!1;try{return L.call(s),!0}catch{}return!1}var J=Object.prototype.hasOwnProperty||function(s){return s in this};function X(s,l){return J.call(s,l)}function rr(s){return R.call(s)}function lr(s){if(s.name)return s.name;var l=q.call(w.call(s),/^function\s*([\w$]+)/);return l?l[1]:null}function ir(s,l){if(s.indexOf)return s.indexOf(l);for(var C=0,W=s.length;C<W;C++)if(s[C]===l)return C;return-1}function er(s){if(!n||!s||typeof s!="object")return!1;try{n.call(s);try{i.call(s)}catch{return!0}return s instanceof Map}catch{}return!1}function cr(s){if(!c||!s||typeof s!="object")return!1;try{c.call(s,c);try{p.call(s,p)}catch{return!0}return s instanceof WeakMap}catch{}return!1}function pr(s){if(!h||!s||typeof s!="object")return!1;try{return h.call(s),!0}catch{}return!1}function yr(s){if(!i||!s||typeof s!="object")return!1;try{i.call(s);try{n.call(s)}catch{return!0}return s instanceof Set}catch{}return!1}function _r(s){if(!p||!s||typeof s!="object")return!1;try{p.call(s,p);try{c.call(s,c)}catch{return!0}return s instanceof WeakSet}catch{}return!1}function hr(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function xr(s,l){if(s.length>l.maxStringLength){var C=s.length-l.maxStringLength,W="... "+C+" more character"+(C>1?"s":"");return xr(O.call(s,0,l.maxStringLength),l)+W}var k=gr[l.quoteStyle||"single"];k.lastIndex=0;var B=m.call(m.call(s,k,"\\$1"),/[\x00-\x1f]/g,Mr);return g(B,"single",l)}function Mr(s){var l=s.charCodeAt(0),C={8:"b",9:"t",10:"n",12:"f",13:"r"}[l];return C?"\\"+C:"\\x"+(l<16?"0":"")+j.call(l.toString(16))}function dr(s){return"Object("+s+")"}function Jr(s){return s+" { ? }"}function Zt(s,l,C,W){var k=W?Yr(C,W):D.call(C,", ");return s+" ("+l+") {"+k+"}"}function bo(s){for(var l=0;l<s.length;l++)if(ir(s[l],`
|
|
2
|
+
`)>=0)return!1;return!0}function Ao(s,l){var C;if(s.indent===" ")C=" ";else if(typeof s.indent=="number"&&s.indent>0)C=D.call(Array(s.indent+1)," ");else return null;return{base:C,prev:D.call(Array(l+1),C)}}function Yr(s,l){if(s.length===0)return"";var C=`
|
|
3
|
+
`+l.prev+l.base;return C+D.call(s,","+C)+`
|
|
4
|
+
`+l.prev}function Nr(s,l){var C=$(s),W=[];if(C){W.length=s.length;for(var k=0;k<s.length;k++)W[k]=X(s,k)?l(s[k],s):""}var B=typeof N=="function"?N(s):[],mr;if(V){mr={};for(var wr=0;wr<B.length;wr++)mr["$"+B[wr]]=B[wr]}for(var nr in s)X(s,nr)&&(C&&String(Number(nr))===nr&&nr<s.length||V&&mr["$"+nr]instanceof Symbol||(H.call(/[^\w$]/,nr)?W.push(l(nr,s)+": "+l(s[nr],s)):W.push(nr+": "+l(s[nr],s))));if(typeof N=="function")for(var Sr=0;Sr<B.length;Sr++)Rr.call(s,B[Sr])&&W.push("["+l(B[Sr])+"]: "+l(s[B[Sr]],s));return W}return ut}var ft,ya;function ei(){if(ya)return ft;ya=1;var r=Kr(),e=ar(),n=function(o,u,c){for(var v=o,p;(p=v.next)!=null;v=p)if(p.key===u)return v.next=p.next,c||(p.next=o.next,o.next=p),p},a=function(o,u){if(o){var c=n(o,u);return c&&c.value}},t=function(o,u,c){var v=n(o,u);v?v.value=c:o.next={key:u,next:o.next,value:c}},f=function(o,u){return o?!!n(o,u):!1},i=function(o,u){if(o)return n(o,u,!0)};return ft=function(){var u,c={assert:function(v){if(!c.has(v))throw new e("Side channel does not contain "+r(v))},delete:function(v){var p=u&&u.next,y=i(u,v);return y&&p&&p===y&&(u=void 0),!!y},get:function(v){return a(u,v)},has:function(v){return f(u,v)},set:function(v,p){u||(u={next:void 0}),t(u,v,p)}};return c},ft}var st,va;function fo(){if(va)return st;va=1;var r=vr(),e=Z(),n=Kr(),a=ar(),t=r("%Map%",!0),f=e("Map.prototype.get",!0),i=e("Map.prototype.set",!0),o=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return st=!!t&&function(){var p,y={assert:function(h){if(!y.has(h))throw new a("Side channel does not contain "+n(h))},delete:function(h){if(p){var S=u(p,h);return c(p)===0&&(p=void 0),S}return!1},get:function(h){if(p)return f(p,h)},has:function(h){return p?o(p,h):!1},set:function(h,S){p||(p=new t),i(p,h,S)}};return y},st}var lt,ga;function ti(){if(ga)return lt;ga=1;var r=vr(),e=Z(),n=Kr(),a=fo(),t=ar(),f=r("%WeakMap%",!0),i=e("WeakMap.prototype.get",!0),o=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return lt=f?function(){var p,y,h={assert:function(S){if(!h.has(S))throw new t("Side channel does not contain "+n(S))},delete:function(S){if(f&&S&&(typeof S=="object"||typeof S=="function")){if(p)return c(p,S)}else if(a&&y)return y.delete(S);return!1},get:function(S){return f&&S&&(typeof S=="object"||typeof S=="function")&&p?i(p,S):y&&y.get(S)},has:function(S){return f&&S&&(typeof S=="object"||typeof S=="function")&&p?u(p,S):!!y&&y.has(S)},set:function(S,R){f&&S&&(typeof S=="object"||typeof S=="function")?(p||(p=new f),o(p,S,R)):a&&(y||(y=a()),y.set(S,R))}};return h}:a,lt}var ct,ha;function so(){if(ha)return ct;ha=1;var r=ar(),e=Kr(),n=ei(),a=fo(),t=ti(),f=t||a||n;return ct=function(){var o,u={assert:function(c){if(!u.has(c))throw new r("Side channel does not contain "+e(c))},delete:function(c){return!!o&&o.delete(c)},get:function(c){return o&&o.get(c)},has:function(c){return!!o&&o.has(c)},set:function(c,v){o||(o=f()),o.set(c,v)}};return u},ct}var pt,da;function ni(){if(da)return pt;da=1;var r=Qt(),e=so()(),n=ar(),a={assert:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");if(e.assert(t),!a.has(t,f))throw new n("`"+f+"` is not present on `O`")},get:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var i=e.get(t);return i&&i["$"+f]},has:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var i=e.get(t);return!!i&&r(i,"$"+f)},set:function(t,f,i){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var o=e.get(t);o||(o={},e.set(t,o)),o["$"+f]=i}};return Object.freeze&&Object.freeze(a),pt=a,pt}var yt,ma;function ai(){if(ma)return yt;ma=1;var r=ni(),e=Ut(),n=typeof StopIteration=="object"?StopIteration:null;return yt=function(t){if(!n)throw new e("this environment lacks StopIteration");r.set(t,"[[Done]]",!1);var f={next:function(){var o=r.get(this,"[[Iterator]]"),u=!!r.get(o,"[[Done]]");try{return{done:u,value:u?void 0:o.next()}}catch(c){if(r.set(o,"[[Done]]",!0),c!==n)throw c;return{done:!0,value:void 0}}}};return r.set(f,"[[Iterator]]",t),f},yt}var vt,Sa;function lo(){if(Sa)return vt;Sa=1;var r={}.toString;return vt=Array.isArray||function(e){return r.call(e)=="[object Array]"},vt}var gt,ba;function co(){if(ba)return gt;ba=1;var r=Z(),e=r("String.prototype.valueOf"),n=function(o){try{return e(o),!0}catch{return!1}},a=r("Object.prototype.toString"),t="[object String]",f=Ir()();return gt=function(o){return typeof o=="string"?!0:!o||typeof o!="object"?!1:f?n(o):a(o)===t},gt}var ht,Aa;function po(){if(Aa)return ht;Aa=1;var r=typeof Map=="function"&&Map.prototype?Map:null,e=typeof Set=="function"&&Set.prototype?Set:null,n;r||(n=function(i){return!1});var a=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!a&&(n=function(i){return!1}),ht=n||function(i){if(!i||typeof i!="object")return!1;try{if(a.call(i),t)try{t.call(i)}catch{return!0}return i instanceof r}catch{}return!1},ht}var dt,Oa;function yo(){if(Oa)return dt;Oa=1;var r=typeof Map=="function"&&Map.prototype?Map:null,e=typeof Set=="function"&&Set.prototype?Set:null,n;e||(n=function(i){return!1});var a=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!t&&(n=function(i){return!1}),dt=n||function(i){if(!i||typeof i!="object")return!1;try{if(t.call(i),a)try{a.call(i)}catch{return!0}return i instanceof e}catch{}return!1},dt}var wa;function oi(){if(wa)return Cr.exports;wa=1;var r=uo(),e=ai();if(Vt()()||Vr()()){var n=Symbol.iterator;Cr.exports=function(P){if(P!=null&&typeof P[n]<"u")return P[n]();if(r(P))return Array.prototype[n].call(P)}}else{var a=lo(),t=co(),f=vr(),i=f("%Map%",!0),o=f("%Set%",!0),u=ao(),c=u("Array.prototype.push"),v=u("String.prototype.charCodeAt"),p=u("String.prototype.slice"),y=function(P,_){var L=P.length;if(_+1>=L)return _+1;var N=v(P,_);if(N<55296||N>56319)return _+1;var U=v(P,_+1);return U<56320||U>57343?_+1:_+2},h=function(P){var _=0;return{next:function(){var N=_>=P.length,U;return N||(U=P[_],_+=1),{done:N,value:U}}}},S=function(P,_){if(a(P)||r(P))return h(P);if(t(P)){var L=0;return{next:function(){var U=y(P,L),V=p(P,L,U);return L=U,{done:U>P.length,value:V}}}}if(_&&typeof P["_es6-shim iterator_"]<"u")return P["_es6-shim iterator_"]()};if(!i&&!o)Cr.exports=function(P){if(P!=null)return S(P,!0)};else{var R=po(),w=yo(),q=u("Map.prototype.forEach",!0),O=u("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var m=u("Map.prototype.iterator",!0),j=u("Set.prototype.iterator",!0);var Q=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){if(R(P)){if(m)return e(m(P));if(Q)return Q(P);if(q){var _=[];return q(P,function(N,U){c(_,[U,N])}),h(_)}}if(w(P)){if(j)return e(j(P));if(H)return H(P);if(O){var L=[];return O(P,function(N){c(L,N)}),h(L)}}};Cr.exports=function(P){return F(P)||S(P)}}}return Cr.exports}var mt,qa;function vo(){if(qa)return mt;qa=1;var r=function(e){return e!==e};return mt=function(n,a){return n===0&&a===0?1/n===1/a:!!(n===a||r(n)&&r(a))},mt}var St,Pa;function go(){if(Pa)return St;Pa=1;var r=vo();return St=function(){return typeof Object.is=="function"?Object.is:r},St}var bt,Ia;function ii(){if(Ia)return bt;Ia=1;var r=go(),e=Pr();return bt=function(){var a=r();return e(Object,{is:a},{is:function(){return Object.is!==a}}),a},bt}var At,Ra;function ui(){if(Ra)return At;Ra=1;var r=Pr(),e=jr(),n=vo(),a=go(),t=ii(),f=e(a(),Object);return r(f,{getPolyfill:a,implementation:n,shim:t}),At=f,At}var Ot,$a;function ho(){if($a)return Ot;$a=1;var r=jr(),e=Z(),n=vr(),a=n("%ArrayBuffer%",!0),t=e("ArrayBuffer.prototype.byteLength",!0),f=e("Object.prototype.toString"),i=!!a&&!t&&new a(0).slice,o=!!i&&r(i);return Ot=t||o?function(c){if(!c||typeof c!="object")return!1;try{return t?t(c):o(c,0),!0}catch{return!1}}:a?function(c){return f(c)==="[object ArrayBuffer]"}:function(c){return!1},Ot}var wt,xa;function fi(){if(xa)return wt;xa=1;var r=Z(),e=r("Date.prototype.getDay"),n=function(o){try{return e(o),!0}catch{return!1}},a=r("Object.prototype.toString"),t="[object Date]",f=Ir()();return wt=function(o){return typeof o!="object"||o===null?!1:f?n(o):a(o)===t},wt}var qt,Ea;function mo(){if(Ea)return qt;Ea=1;var r=Z(),e=Ir()(),n=Qt(),a=qr(),t;if(e){var f=r("RegExp.prototype.exec"),i={},o=function(){throw i},u={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=o),t=function(y){if(!y||typeof y!="object")return!1;var h=a(y,"lastIndex"),S=h&&n(h,"value");if(!S)return!1;try{f(y,u)}catch(R){return R===i}}}else{var c=r("Object.prototype.toString"),v="[object RegExp]";t=function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:c(y)===v}}return qt=t,qt}var Pt,Ba;function si(){if(Ba)return Pt;Ba=1;var r=Z(),e=r("SharedArrayBuffer.prototype.byteLength",!0);return Pt=e?function(a){if(!a||typeof a!="object")return!1;try{return e(a),!0}catch{return!1}}:function(a){return!1},Pt}var It,ja;function li(){if(ja)return It;ja=1;var r=Z(),e=r("Number.prototype.toString"),n=function(o){try{return e(o),!0}catch{return!1}},a=r("Object.prototype.toString"),t="[object Number]",f=Ir()();return It=function(o){return typeof o=="number"?!0:!o||typeof o!="object"?!1:f?n(o):a(o)===t},It}var Rt,Ma;function ci(){if(Ma)return Rt;Ma=1;var r=Z(),e=r("Boolean.prototype.toString"),n=r("Object.prototype.toString"),a=function(o){try{return e(o),!0}catch{return!1}},t="[object Boolean]",f=Ir()();return Rt=function(o){return typeof o=="boolean"?!0:o===null||typeof o!="object"?!1:f?a(o):n(o)===t},Rt}var Lr={exports:{}},$t,Ta;function pi(){if(Ta)return $t;Ta=1;var r=Z(),e=mo(),n=r("RegExp.prototype.exec"),a=ar();return $t=function(f){if(!e(f))throw new a("`regex` must be a RegExp");return function(o){return n(f,o)!==null}},$t}var Ca;function yi(){if(Ca)return Lr.exports;Ca=1;var r=Z(),e=r("Object.prototype.toString"),n=Vt()(),a=pi();if(n){var t=r("Symbol.prototype.toString"),f=a(/^Symbol\(.*\)$/),i=function(u){return typeof u.valueOf()!="symbol"?!1:f(t(u))};Lr.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||e(u)!=="[object Symbol]")return!1;try{return i(u)}catch{return!1}}}else Lr.exports=function(u){return!1};return Lr.exports}var Ur={exports:{}},xt,Da;function vi(){if(Da)return xt;Da=1;var r=typeof BigInt<"u"&&BigInt;return xt=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},xt}var Fa;function gi(){if(Fa)return Ur.exports;Fa=1;var r=vi()();if(r){var e=BigInt.prototype.valueOf,n=function(t){try{return e.call(t),!0}catch{}return!1};Ur.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:n(t)}}else Ur.exports=function(t){return!1};return Ur.exports}var Et,_a;function hi(){if(_a)return Et;_a=1;var r=co(),e=li(),n=ci(),a=yi(),t=gi();return Et=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(r(i))return"String";if(e(i))return"Number";if(n(i))return"Boolean";if(a(i))return"Symbol";if(t(i))return"BigInt"},Et}var Bt,Na;function di(){if(Na)return Bt;Na=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,e=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,n;r||(n=function(i){return!1});var a=r?r.prototype.has:null,t=e?e.prototype.has:null;return!n&&!a&&(n=function(i){return!1}),Bt=n||function(i){if(!i||typeof i!="object")return!1;try{if(a.call(i,a),t)try{t.call(i,t)}catch{return!0}return i instanceof r}catch{}return!1},Bt}var Hr={exports:{}},Wa;function mi(){if(Wa)return Hr.exports;Wa=1;var r=vr(),e=Z(),n=r("%WeakSet%",!0),a=e("WeakSet.prototype.has",!0);if(a){var t=e("WeakMap.prototype.has",!0);Hr.exports=function(i){if(!i||typeof i!="object")return!1;try{if(a(i,a),t)try{t(i,t)}catch{return!0}return i instanceof n}catch{}return!1}}else Hr.exports=function(i){return!1};return Hr.exports}var jt,ka;function Si(){if(ka)return jt;ka=1;var r=po(),e=yo(),n=di(),a=mi();return jt=function(f){if(f&&typeof f=="object"){if(r(f))return"Map";if(e(f))return"Set";if(n(f))return"WeakMap";if(a(f))return"WeakSet"}return!1},jt}var Mt,La;function bi(){if(La)return Mt;La=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,n)}catch(O){O!==a&&(e=null)}else e=null;var t=/^\s*class\b/,f=function(m){try{var j=r.call(m);return t.test(j)}catch{return!1}},i=function(m){try{return f(m)?!1:(r.call(m),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",c="[object Function]",v="[object GeneratorFunction]",p="[object HTMLAllCollection]",y="[object HTML document.all class]",h="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,R=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var q=document.all;o.call(q)===o.call(document.all)&&(w=function(m){if((R||!m)&&(typeof m>"u"||typeof m=="object"))try{var j=o.call(m);return(j===p||j===y||j===h||j===u)&&m("")==null}catch{}return!1})}return Mt=e?function(m){if(w(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{e(m,null,n)}catch(j){if(j!==a)return!1}return!f(m)&&i(m)}:function(m){if(w(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(S)return i(m);if(f(m))return!1;var j=o.call(m);return j!==c&&j!==v&&!/^\[object HTML/.test(j)?!1:i(m)},Mt}var Tt,Ua;function Ai(){if(Ua)return Tt;Ua=1;var r=bi(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,a=function(u,c,v){for(var p=0,y=u.length;p<y;p++)n.call(u,p)&&(v==null?c(u[p],p,u):c.call(v,u[p],p,u))},t=function(u,c,v){for(var p=0,y=u.length;p<y;p++)v==null?c(u.charAt(p),p,u):c.call(v,u.charAt(p),p,u)},f=function(u,c,v){for(var p in u)n.call(u,p)&&(v==null?c(u[p],p,u):c.call(v,u[p],p,u))};function i(o){return e.call(o)==="[object Array]"}return Tt=function(u,c,v){if(!r(c))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=v),i(u)?a(u,c,p):typeof u=="string"?t(u,c,p):f(u,c,p)},Tt}var Ct,Ha;function Oi(){return Ha||(Ha=1,Ct=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ct}var Dt,Ga;function wi(){if(Ga)return Dt;Ga=1;var r=Oi(),e=typeof globalThis>"u"?Gr:globalThis;return Dt=function(){for(var a=[],t=0;t<r.length;t++)typeof e[r[t]]=="function"&&(a[a.length]=r[t]);return a},Dt}var Ft,za;function qi(){if(za)return Ft;za=1;var r=Ai(),e=wi(),n=jr(),a=Z(),t=qr(),f=Xt(),i=a("Object.prototype.toString"),o=Ir()(),u=typeof globalThis>"u"?Gr:globalThis,c=e(),v=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(w,q){for(var O=0;O<w.length;O+=1)if(w[O]===q)return O;return-1},y={__proto__:null};o&&t&&f?r(c,function(R){var w=new u[R];if(Symbol.toStringTag in w&&f){var q=f(w),O=t(q,Symbol.toStringTag);if(!O&&q){var m=f(q);O=t(m,Symbol.toStringTag)}y["$"+R]=n(O.get)}}):r(c,function(R){var w=new u[R],q=w.slice||w.set;q&&(y["$"+R]=n(q))});var h=function(w){var q=!1;return r(y,function(O,m){if(!q)try{"$"+O(w)===m&&(q=v(m,1))}catch{}}),q},S=function(w){var q=!1;return r(y,function(O,m){if(!q)try{O(w),q=v(m,1)}catch{}}),q};return Ft=function(w){if(!w||typeof w!="object")return!1;if(!o){var q=v(i(w),8,-1);return p(c,q)>-1?q:q!=="Object"?!1:S(w)}return t?h(w):null},Ft}var _t,Va;function Pi(){if(Va)return _t;Va=1;var r=Z(),e=r("ArrayBuffer.prototype.byteLength",!0),n=ho();return _t=function(t){return n(t)?e?e(t):t.byteLength:NaN},_t}var Nt,Ka;function Ii(){if(Ka)return Nt;Ka=1;var r=Vo(),e=ao(),n=Xo(),a=vr(),t=oi(),f=so(),i=ui(),o=uo(),u=lo(),c=ho(),v=fi(),p=mo(),y=si(),h=Lt(),S=hi(),R=Si(),w=qi(),q=Pi(),O=e("SharedArrayBuffer.prototype.byteLength",!0),m=e("Date.prototype.getTime"),j=Object.getPrototypeOf,Q=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);function V(g,d,x,$){for(var M=t(g),T;(T=M.next())&&!T.done;)if(G(d,T.value,x,$))return L(g,T.value),!0;return!1}function sr(g){if(typeof g>"u")return null;if(typeof g!="object")return typeof g=="symbol"?!1:typeof g=="string"||typeof g=="number"?+g==+g:!0}function Rr(g,d,x,$,M,T){var A=sr(x);if(A!=null)return A;var I=D(d,A),b=r({},M,{strict:!1});return typeof I>"u"&&!F(d,A)||!G($,I,b,T)?!1:!F(g,A)&&G($,I,b,T)}function br(g,d,x){var $=sr(x);return $??(N(d,$)&&!N(g,$))}function or(g,d,x,$,M,T){for(var A=t(g),I,b;(I=A.next())&&!I.done;)if(b=I.value,G(x,b,M,T)&&G($,D(d,b),M,T))return L(g,b),!0;return!1}function G(g,d,x,$){var M=x||{};if(M.strict?i(g,d):g===d)return!0;var T=S(g),A=S(d);if(T!==A)return!1;if(!g||!d||typeof g!="object"&&typeof d!="object")return M.strict?i(g,d):g==d;var I=$.has(g),b=$.has(d),E;if(I&&b){if($.get(g)===$.get(d))return!0}else E={};return I||$.set(g,E),b||$.set(d,E),gr(g,d,M,$)}function Ar(g){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))}function $r(g,d,x,$){if(U(g)!==U(d))return!1;for(var M=t(g),T=t(d),A,I,b;(A=M.next())&&!A.done;)if(A.value&&typeof A.value=="object")b||(b=new H),_(b,A.value);else if(!N(d,A.value)){if(x.strict||!br(g,d,A.value))return!1;b||(b=new H),_(b,A.value)}if(b){for(;(I=T.next())&&!I.done;)if(I.value&&typeof I.value=="object"){if(!V(b,I.value,x.strict,$))return!1}else if(!x.strict&&!N(g,I.value)&&!V(b,I.value,x.strict,$))return!1;return U(b)===0}return!0}function Or(g,d,x,$){if(P(g)!==P(d))return!1;for(var M=t(g),T=t(d),A,I,b,E,z,K;(A=M.next())&&!A.done;)if(E=A.value[0],z=A.value[1],E&&typeof E=="object")b||(b=new H),_(b,E);else if(K=D(d,E),typeof K>"u"&&!F(d,E)||!G(z,K,x,$)){if(x.strict||!Rr(g,d,E,z,x,$))return!1;b||(b=new H),_(b,E)}if(b){for(;(I=T.next())&&!I.done;)if(E=I.value[0],K=I.value[1],E&&typeof E=="object"){if(!or(b,g,E,K,x,$))return!1}else if(!x.strict&&(!g.has(E)||!G(D(g,E),K,x,$))&&!or(b,g,E,K,r({},x,{strict:!1}),$))return!1;return U(b)===0}return!0}function gr(g,d,x,$){var M,T;if(typeof g!=typeof d||g==null||d==null||Q(g)!==Q(d)||o(g)!==o(d))return!1;var A=u(g),I=u(d);if(A!==I)return!1;var b=g instanceof Error,E=d instanceof Error;if(b!==E||(b||E)&&(g.name!==d.name||g.message!==d.message))return!1;var z=p(g),K=p(d);if(z!==K||(z||K)&&(g.source!==d.source||n(g)!==n(d)))return!1;var J=v(g),X=v(d);if(J!==X||(J||X)&&m(g)!==m(d)||x.strict&&j&&j(g)!==j(d))return!1;var rr=w(g),lr=w(d);if(rr!==lr)return!1;if(rr||lr){if(g.length!==d.length)return!1;for(M=0;M<g.length;M++)if(g[M]!==d[M])return!1;return!0}var ir=Ar(g),er=Ar(d);if(ir!==er)return!1;if(ir||er){if(g.length!==d.length)return!1;for(M=0;M<g.length;M++)if(g[M]!==d[M])return!1;return!0}var cr=c(g),pr=c(d);if(cr!==pr)return!1;if(cr||pr)return q(g)!==q(d)?!1:typeof Uint8Array=="function"&&G(new Uint8Array(g),new Uint8Array(d),x,$);var yr=y(g),_r=y(d);if(yr!==_r)return!1;if(yr||_r)return O(g)!==O(d)?!1:typeof Uint8Array=="function"&&G(new Uint8Array(g),new Uint8Array(d),x,$);if(typeof g!=typeof d)return!1;var hr=h(g),xr=h(d);if(hr.length!==xr.length)return!1;for(hr.sort(),xr.sort(),M=hr.length-1;M>=0;M--)if(hr[M]!=xr[M])return!1;for(M=hr.length-1;M>=0;M--)if(T=hr[M],!G(g[T],d[T],x,$))return!1;var Mr=R(g),dr=R(d);return Mr!==dr?!1:Mr==="Set"||dr==="Set"?$r(g,d,x,$):Mr==="Map"?Or(g,d,x,$):!0}return Nt=function(d,x,$){return G(d,x,$,f())},Nt}var Ri=Ii();const $i=Po(Ri);function xi(r){return r}function So(r,e,n,a){const t=xi,[f,i]=fr.useState(t(n)),o=fr.useRef(f);return fr.useEffect(()=>{const u=()=>{const c={...n,...r.getAttributes(e)};Object.keys(c).forEach(p=>{(c[p]===null||c[p]===void 0)&&(c[p]=n?n[p]:null)});const v=t(c);$i(o.current,v)||(i(v),o.current=v)};return r.on("selectionUpdate",u),r.on("transaction",u),()=>{r.off("selectionUpdate",u),r.off("transaction",u)}},[r,n,e,t]),f}function Ei({node:r}){const{text:e,macros:n}=r.attrs,a=fr.useMemo(()=>{try{return Ya.renderToString(decodeURIComponent(e||""),{macros:kt(decodeURIComponent(n||""))})}catch{return e}},[e,n]),t=fr.useMemo(()=>e.trim()?Y.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:a}}):Y.jsx("span",{contentEditable:!1,children:"Not enter a formula"}),[e,a]);return Y.jsx(Dr.NodeViewWrapper,{as:"span",style:{display:"inline-block"},children:t})}function Bi(){const{t:r}=qo.useLocale(),[e,n]=fr.useState(!1),a=tr.useButtonProps(Wt.name),{icon:t=void 0,tooltip:f=void 0,tooltipOptions:i={},isActive:o=void 0}=(a==null?void 0:a.componentProps)??{},{editorDisabled:u}=tr.useToggleActive(o),c=tr.useEditorInstance(),v=So(c,Wt.name,{text:"",macros:""}),{text:p,macros:y}=v,[h,S]=fr.useState(decodeURIComponent(p||"")),[R,w]=fr.useState(decodeURIComponent(y||"")),q=fr.useCallback(()=>{c.chain().focus().setKatex({text:encodeURIComponent(h),macros:encodeURIComponent(R)}).run(),S(""),w(""),n(!1)},[c,h,R]),O=fr.useMemo(()=>{try{return Ya.renderToString(h,{macros:kt(R)})}catch{return h}},[R,h]),m=fr.useMemo(()=>`${h}`.trim()?O:null,[h,O]);return Y.jsxs(tr.Dialog,{onOpenChange:n,open:e,children:[Y.jsx(tr.DialogTrigger,{asChild:!0,disabled:u,children:Y.jsx(tr.ActionButton,{disabled:u,icon:t,tooltip:f,tooltipOptions:i,action:()=>{u||n(!0)}})}),Y.jsxs(tr.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[Y.jsx(tr.DialogTitle,{children:r("editor.formula.dialog.text")}),Y.jsx("div",{style:{height:"100%",border:"1px solid hsl(var(--border))"},children:Y.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[Y.jsxs("div",{className:"richtext-flex-1",children:[Y.jsx(tr.Label,{className:"mb-[6px]",children:"Expression"}),Y.jsx(tr.Textarea,{autoFocus:!0,className:"richtext-mb-[10px]",onChange:j=>S(j.target.value),placeholder:"Text",required:!0,rows:10,value:h,style:{color:"hsl(var(--foreground))"}}),Y.jsx(tr.Label,{className:"mb-[6px]",children:"Macros"}),Y.jsx(tr.Textarea,{className:"richtext-flex-1",placeholder:"Macros",rows:10,value:R,onChange:j=>{w(j.target.value)},style:{color:"hsl(var(--foreground))"}})]}),Y.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:m||""},style:{height:"100%",borderWidth:1,minHeight:500,background:"#fff"}})]})}),Y.jsx(tr.DialogFooter,{children:Y.jsx(tr.Button,{onClick:q,type:"button",children:"Save changes"})})]})]})}function Ja(r){return e=>e.getAttribute(r)}const Wt=Dr.Node3.create({name:"katex",group:"inline",inline:!0,defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{class:"katex"},button:({t:r})=>({componentProps:{action:()=>!0,isActive:()=>!1,disabled:!1,icon:"KatexIcon",tooltip:r("editor.katex.tooltip")}})}},addAttributes(){return{text:{default:"",parseHTML:Ja("text")},macros:{default:"",parseHTML:Ja("macros")}}},parseHTML(){return[{tag:"span.katex"}]},renderHTML({HTMLAttributes:r}){return["span",Dr.mergeAttributes(this.options&&this.options.HTMLAttributes||{},r)]},addCommands(){return{setKatex:r=>({commands:e})=>e.insertContent({type:this.name,attrs:r})}},addInputRules(){return[Dr.nodeInputRule({find:/^\$katex\$$/,type:this.type})]},addNodeView(){return Dr.ReactNodeViewRenderer(Ei)}});exports.Katex=Wt;exports.RichTextKatex=Bi;exports.safeJSONParse=kt;exports.useAttributes=So;
|
package/lib/Katex.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./Katex-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./Katex-DFU1unCm.cjs");exports.Katex=e.Katex;exports.RichTextKatex=e.RichTextKatex;
|
package/lib/Katex.js
CHANGED