@wangtaizong/components 1.0.2 → 1.0.4
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/dist/{base-80a1f760-bfbf5d12.js → base-80a1f760-4106f070.js} +1 -1
- package/dist/components/editor/{Editor.d.ts → WEditor.d.ts} +4 -4
- package/dist/{consoleHook-59e792cb-4a29d8de.js → consoleHook-59e792cb-38408587.js} +1 -1
- package/dist/{index-585bceb7-0925bffa.js → index-585bceb7-0bf06f98.js} +3 -3
- package/dist/{index-ab265236.js → index-6afdc2ce.js} +589 -598
- package/dist/{index-fb0ef221.js → index-83b70eea.js} +2 -2
- package/dist/{index-fbbb80b8.js → index-e28d3e42.js} +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as U from "react";
|
|
2
|
-
import he, { memo as La, useState as _e, useRef as le, useCallback as dr, useEffect as ie, createContext as Wt, forwardRef as
|
|
2
|
+
import he, { memo as La, useState as _e, useRef as le, useCallback as dr, useEffect as ie, createContext as Wt, forwardRef as Sf, useContext as Ee, createElement as fm, useLayoutEffect as hm, useMemo as et, isValidElement as mS, cloneElement as _c, useImperativeHandle as vS } from "react";
|
|
3
3
|
function Ya(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var Nc = { exports: {} }, Ri = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -282,8 +282,8 @@ function bS() {
|
|
|
282
282
|
} finally {
|
|
283
283
|
Ue = !1, se.current = we, W(), Error.prepareStackTrace = ve;
|
|
284
284
|
}
|
|
285
|
-
var Wn = k ? k.displayName || k.name : "",
|
|
286
|
-
return typeof k == "function" && rr.set(k,
|
|
285
|
+
var Wn = k ? k.displayName || k.name : "", qh = Wn ? me(Wn) : "";
|
|
286
|
+
return typeof k == "function" && rr.set(k, qh), qh;
|
|
287
287
|
}
|
|
288
288
|
function Wr(k, Z, z) {
|
|
289
289
|
return Tr(k, !1);
|
|
@@ -470,20 +470,20 @@ function bS() {
|
|
|
470
470
|
return aS(k, fe, ct, ve, ne, Cr.current, pe);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var kl = v.ReactCurrentOwner,
|
|
473
|
+
var kl = v.ReactCurrentOwner, Nh = v.ReactDebugCurrentFrame;
|
|
474
474
|
function Vn(k) {
|
|
475
475
|
if (k) {
|
|
476
476
|
var Z = k._owner, z = Lr(k.type, k._source, Z ? Z.type : null);
|
|
477
|
-
|
|
477
|
+
Nh.setExtraStackFrame(z);
|
|
478
478
|
} else
|
|
479
|
-
|
|
479
|
+
Nh.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
481
|
var $l;
|
|
482
482
|
$l = !1;
|
|
483
483
|
function Tl(k) {
|
|
484
484
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Xh() {
|
|
487
487
|
{
|
|
488
488
|
if (kl.current) {
|
|
489
489
|
var k = L(kl.current.type);
|
|
@@ -506,10 +506,10 @@ Check your code at ` + Z + ":" + z + ".";
|
|
|
506
506
|
return "";
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
var
|
|
509
|
+
var Vh = {};
|
|
510
510
|
function uS(k) {
|
|
511
511
|
{
|
|
512
|
-
var Z =
|
|
512
|
+
var Z = Xh();
|
|
513
513
|
if (!Z) {
|
|
514
514
|
var z = typeof k == "string" ? k : k.displayName || k.name;
|
|
515
515
|
z && (Z = `
|
|
@@ -519,27 +519,27 @@ Check the top-level render call using <` + z + ">.");
|
|
|
519
519
|
return Z;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Wh(k, Z) {
|
|
523
523
|
{
|
|
524
524
|
if (!k._store || k._store.validated || k.key != null)
|
|
525
525
|
return;
|
|
526
526
|
k._store.validated = !0;
|
|
527
527
|
var z = uS(Z);
|
|
528
|
-
if (
|
|
528
|
+
if (Vh[z])
|
|
529
529
|
return;
|
|
530
|
-
|
|
530
|
+
Vh[z] = !0;
|
|
531
531
|
var ne = "";
|
|
532
532
|
k && k._owner && k._owner !== kl.current && (ne = " It was passed a child from " + L(k._owner.type) + "."), Vn(k), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, ne), Vn(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Lh(k, Z) {
|
|
536
536
|
{
|
|
537
537
|
if (typeof k != "object")
|
|
538
538
|
return;
|
|
539
539
|
if (vt(k))
|
|
540
540
|
for (var z = 0; z < k.length; z++) {
|
|
541
541
|
var ne = k[z];
|
|
542
|
-
Tl(ne) &&
|
|
542
|
+
Tl(ne) && Wh(ne, Z);
|
|
543
543
|
}
|
|
544
544
|
else if (Tl(k))
|
|
545
545
|
k._store && (k._store.validated = !0);
|
|
@@ -547,7 +547,7 @@ Check the top-level render call using <` + z + ">.");
|
|
|
547
547
|
var ve = m(k);
|
|
548
548
|
if (typeof ve == "function" && ve !== k.entries)
|
|
549
549
|
for (var we = ve.call(k), pe; !(pe = we.next()).done; )
|
|
550
|
-
Tl(pe.value) &&
|
|
550
|
+
Tl(pe.value) && Wh(pe.value, Z);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -588,14 +588,14 @@ Check the top-level render call using <` + z + ">.");
|
|
|
588
588
|
k.ref !== null && (Vn(k), O("Invalid attribute `ref` supplied to `React.Fragment`."), Vn(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Yh(k, Z, z, ne, ve, we) {
|
|
592
592
|
{
|
|
593
593
|
var pe = Q(k);
|
|
594
594
|
if (!pe) {
|
|
595
595
|
var fe = "";
|
|
596
596
|
(k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (fe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
597
597
|
var ct = cS(ve);
|
|
598
|
-
ct ? fe += ct : fe +=
|
|
598
|
+
ct ? fe += ct : fe += Xh();
|
|
599
599
|
var Ze;
|
|
600
600
|
k === null ? Ze = "null" : vt(k) ? Ze = "array" : k !== void 0 && k.$$typeof === e ? (Ze = "<" + (L(k.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Ze = typeof k, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ze, fe);
|
|
601
601
|
}
|
|
@@ -608,28 +608,28 @@ Check the top-level render call using <` + z + ">.");
|
|
|
608
608
|
if (ne)
|
|
609
609
|
if (vt(Ct)) {
|
|
610
610
|
for (var Wn = 0; Wn < Ct.length; Wn++)
|
|
611
|
-
|
|
611
|
+
Lh(Ct[Wn], k);
|
|
612
612
|
Object.freeze && Object.freeze(Ct);
|
|
613
613
|
} else
|
|
614
614
|
O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
615
615
|
else
|
|
616
|
-
|
|
616
|
+
Lh(Ct, k);
|
|
617
617
|
}
|
|
618
618
|
return k === n ? hS(Xe) : fS(Xe), Xe;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function dS(k, Z, z) {
|
|
622
|
-
return
|
|
622
|
+
return Yh(k, Z, z, !0);
|
|
623
623
|
}
|
|
624
624
|
function pS(k, Z, z) {
|
|
625
|
-
return
|
|
625
|
+
return Yh(k, Z, z, !1);
|
|
626
626
|
}
|
|
627
627
|
var gS = pS, OS = dS;
|
|
628
628
|
Ai.Fragment = n, Ai.jsx = gS, Ai.jsxs = OS;
|
|
629
629
|
}()), Ai;
|
|
630
630
|
}
|
|
631
|
-
process.env.NODE_ENV === "production" ?
|
|
632
|
-
var w =
|
|
631
|
+
process.env.NODE_ENV === "production" ? Nc.exports = yS() : Nc.exports = bS();
|
|
632
|
+
var w = Nc.exports;
|
|
633
633
|
function SS(t, e, r) {
|
|
634
634
|
return e in t ? Object.defineProperty(t, e, {
|
|
635
635
|
value: r,
|
|
@@ -1186,11 +1186,11 @@ var Px = wx, kx = La(Px), $x = kx, xe = "colors", ut = "sizes", G = "space", Tx
|
|
|
1186
1186
|
const i = ((s) => JSON.stringify(s, Qx))(e);
|
|
1187
1187
|
return i in t ? t[i] : t[i] = r(e, ...n);
|
|
1188
1188
|
};
|
|
1189
|
-
}, Lo = Symbol.for("sxs.internal"),
|
|
1189
|
+
}, Lo = Symbol.for("sxs.internal"), xf = (t, e) => Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)), ed = (t) => {
|
|
1190
1190
|
for (const e in t)
|
|
1191
1191
|
return !0;
|
|
1192
1192
|
return !1;
|
|
1193
|
-
}, { hasOwnProperty: Cx } = Object.prototype,
|
|
1193
|
+
}, { hasOwnProperty: Cx } = Object.prototype, Xc = (t) => t.includes("-") ? t : t.replace(/[A-Z]/g, (e) => "-" + e.toLowerCase()), Ex = /\s+(?![^()]*\))/, Ln = (t) => (e) => t(...typeof e == "string" ? String(e).split(Ex) : [e]), td = { appearance: (t) => ({ WebkitAppearance: t, appearance: t }), backfaceVisibility: (t) => ({ WebkitBackfaceVisibility: t, backfaceVisibility: t }), backdropFilter: (t) => ({ WebkitBackdropFilter: t, backdropFilter: t }), backgroundClip: (t) => ({ WebkitBackgroundClip: t, backgroundClip: t }), boxDecorationBreak: (t) => ({ WebkitBoxDecorationBreak: t, boxDecorationBreak: t }), clipPath: (t) => ({ WebkitClipPath: t, clipPath: t }), content: (t) => ({ content: t.includes('"') || t.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(t) ? t : `"${t}"` }), hyphens: (t) => ({ WebkitHyphens: t, hyphens: t }), maskImage: (t) => ({ WebkitMaskImage: t, maskImage: t }), maskSize: (t) => ({ WebkitMaskSize: t, maskSize: t }), tabSize: (t) => ({ MozTabSize: t, tabSize: t }), textSizeAdjust: (t) => ({ WebkitTextSizeAdjust: t, textSizeAdjust: t }), userSelect: (t) => ({ WebkitUserSelect: t, userSelect: t }), marginBlock: Ln((t, e) => ({ marginBlockStart: t, marginBlockEnd: e || t })), marginInline: Ln((t, e) => ({ marginInlineStart: t, marginInlineEnd: e || t })), maxSize: Ln((t, e) => ({ maxBlockSize: t, maxInlineSize: e || t })), minSize: Ln((t, e) => ({ minBlockSize: t, minInlineSize: e || t })), paddingBlock: Ln((t, e) => ({ paddingBlockStart: t, paddingBlockEnd: e || t })), paddingInline: Ln((t, e) => ({ paddingInlineStart: t, paddingInlineEnd: e || t })) }, Rl = /([\d.]+)([^]*)/, Rx = (t, e) => t.length ? t.reduce((r, n) => (r.push(...e.map((i) => i.includes("&") ? i.replace(/&/g, /[ +>|~]/.test(n) && /&.*&/.test(i) ? `:is(${n})` : n) : n + " " + i)), r), []) : e, Ax = (t, e) => t in Dx && typeof e == "string" ? e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (r, n, i, s) => n + (i === "stretch" ? `-moz-available${s};${Xc(t)}:${n}-webkit-fill-available` : `-moz-fit-content${s};${Xc(t)}:${n}fit-content`) + s) : String(e), Dx = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, Mr = (t) => t ? t + "-" : "", Sm = (t, e, r) => t.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (n, i, s, o, a) => o == "$" == !!s ? n : (i || o == "--" ? "calc(" : "") + "var(--" + (o === "$" ? Mr(e) + (a.includes("$") ? "" : Mr(r)) + a.replace(/\$/g, "-") : a) + ")" + (i || o == "--" ? "*" + (i || "") + (s || "1") + ")" : "")), jx = /\s*,\s*(?![^()]*\))/, Mx = Object.prototype.toString, Hn = (t, e, r, n, i) => {
|
|
1194
1194
|
let s, o, a;
|
|
1195
1195
|
const l = (c, u, f) => {
|
|
1196
1196
|
let h, d;
|
|
@@ -1219,7 +1219,7 @@ var Px = wx, kx = La(Px), $x = kx, xe = "colors", ut = "sizes", G = "space", Tx
|
|
|
1219
1219
|
const S = O ? f.concat(h) : [...f], P = O ? [...u] : Rx(u, h.split(jx));
|
|
1220
1220
|
s !== void 0 && i(rd(...s)), s = void 0, l(d, P, S);
|
|
1221
1221
|
} else
|
|
1222
|
-
s === void 0 && (s = [[], u, f]), h = O || h.charCodeAt(0) !== 36 ? h : `--${Mr(n.prefix)}${h.slice(1).replace(/\$/g, "-")}`, d = x ? d : typeof d == "number" ? d && b in Zx ? String(d) + "px" : String(d) : Sm(Ax(b, d ?? ""), n.prefix, n.themeMap[b]), s[0].push(`${O ? `${h} ` : `${
|
|
1222
|
+
s === void 0 && (s = [[], u, f]), h = O || h.charCodeAt(0) !== 36 ? h : `--${Mr(n.prefix)}${h.slice(1).replace(/\$/g, "-")}`, d = x ? d : typeof d == "number" ? d && b in Zx ? String(d) + "px" : String(d) : Sm(Ax(b, d ?? ""), n.prefix, n.themeMap[b]), s[0].push(`${O ? `${h} ` : `${Xc(h)}:`}${d}`);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
var m, v;
|
|
@@ -1415,7 +1415,7 @@ var Px = wx, kx = La(Px), $x = kx, xe = "colors", ut = "sizes", G = "space", Tx
|
|
|
1415
1415
|
const m = d.className = [...g].join(" ");
|
|
1416
1416
|
return { type: e.type, className: m, selector: c, props: d, toString: () => m, deferredInjector: a };
|
|
1417
1417
|
};
|
|
1418
|
-
return
|
|
1418
|
+
return xf(u, { className: n, selector: c, [Lo]: e, toString: () => (r.rules.styled.cache.has(n) || u(), n) });
|
|
1419
1419
|
}, Yx = (t) => {
|
|
1420
1420
|
let e = "";
|
|
1421
1421
|
const r = [], n = {}, i = [];
|
|
@@ -1479,7 +1479,7 @@ var Px = wx, kx = La(Px), $x = kx, xe = "colors", ut = "sizes", G = "space", Tx
|
|
|
1479
1479
|
}
|
|
1480
1480
|
return "";
|
|
1481
1481
|
};
|
|
1482
|
-
return
|
|
1482
|
+
return xf(n, { toString: n });
|
|
1483
1483
|
}), Ux = Xs(), Fx = (t, e) => Ux(t, () => (r) => {
|
|
1484
1484
|
const n = `${Mr(t.prefix)}k-${$n(r)}`, i = () => {
|
|
1485
1485
|
if (!e.rules.global.cache.has(n)) {
|
|
@@ -1491,7 +1491,7 @@ var Px = wx, kx = La(Px), $x = kx, xe = "colors", ut = "sizes", G = "space", Tx
|
|
|
1491
1491
|
}
|
|
1492
1492
|
return n;
|
|
1493
1493
|
};
|
|
1494
|
-
return
|
|
1494
|
+
return xf(i, { get name() {
|
|
1495
1495
|
return i();
|
|
1496
1496
|
}, toString: i });
|
|
1497
1497
|
}), Gx = class {
|
|
@@ -1617,7 +1617,7 @@ function rw(t, e) {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Vc(t, ...e) {
|
|
1621
1621
|
if (e.length === 0)
|
|
1622
1622
|
return t;
|
|
1623
1623
|
let r = 0, n = t.replace(
|
|
@@ -1640,7 +1640,7 @@ function iw(t) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
var sw = class extends Error {
|
|
1642
1642
|
constructor(t, ...e) {
|
|
1643
|
-
super(t), this.message = t, this.name = "Invariant Violation", this.message =
|
|
1643
|
+
super(t), this.message = t, this.name = "Invariant Violation", this.message = Vc(t, ...e), iw(this);
|
|
1644
1644
|
}
|
|
1645
1645
|
}, xm = (t, e, ...r) => {
|
|
1646
1646
|
if (!t)
|
|
@@ -1648,20 +1648,20 @@ var sw = class extends Error {
|
|
|
1648
1648
|
};
|
|
1649
1649
|
xm.as = (t, e, r, ...n) => {
|
|
1650
1650
|
if (!e)
|
|
1651
|
-
throw t.prototype.name != null ? new t(
|
|
1651
|
+
throw t.prototype.name != null ? new t(Vc(r, n)) : t(Vc(r, n));
|
|
1652
1652
|
};
|
|
1653
|
-
var
|
|
1654
|
-
return
|
|
1653
|
+
var Wc = function(t, e) {
|
|
1654
|
+
return Wc = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1655
1655
|
r.__proto__ = n;
|
|
1656
1656
|
} || function(r, n) {
|
|
1657
1657
|
for (var i in n)
|
|
1658
1658
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1659
|
-
},
|
|
1659
|
+
}, Wc(t, e);
|
|
1660
1660
|
};
|
|
1661
1661
|
function p_(t, e) {
|
|
1662
1662
|
if (typeof e != "function" && e !== null)
|
|
1663
1663
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1664
|
-
|
|
1664
|
+
Wc(t, e);
|
|
1665
1665
|
function r() {
|
|
1666
1666
|
this.constructor = t;
|
|
1667
1667
|
}
|
|
@@ -1875,19 +1875,19 @@ function mw(t, e, r) {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
return [3, 5];
|
|
1877
1877
|
case 1:
|
|
1878
|
-
return [4, import("./index-
|
|
1878
|
+
return [4, import("./index-e28d3e42.js").then(function(l) {
|
|
1879
1879
|
return l.SandpackNode;
|
|
1880
1880
|
})];
|
|
1881
1881
|
case 2:
|
|
1882
1882
|
return s = a.sent(), [3, 7];
|
|
1883
1883
|
case 3:
|
|
1884
|
-
return [4, import("./index-585bceb7-
|
|
1884
|
+
return [4, import("./index-585bceb7-0bf06f98.js").then(function(l) {
|
|
1885
1885
|
return l.SandpackStatic;
|
|
1886
1886
|
})];
|
|
1887
1887
|
case 4:
|
|
1888
1888
|
return s = a.sent(), [3, 7];
|
|
1889
1889
|
case 5:
|
|
1890
|
-
return [4, import("./index-
|
|
1890
|
+
return [4, import("./index-83b70eea.js").then(function(l) {
|
|
1891
1891
|
return l.SandpackRuntime;
|
|
1892
1892
|
})];
|
|
1893
1893
|
case 6:
|
|
@@ -2360,7 +2360,7 @@ function xw(t) {
|
|
|
2360
2360
|
function pi(t) {
|
|
2361
2361
|
return t < 65536 ? 1 : 2;
|
|
2362
2362
|
}
|
|
2363
|
-
const
|
|
2363
|
+
const Lc = /\r\n?|\n/;
|
|
2364
2364
|
var st = /* @__PURE__ */ function(t) {
|
|
2365
2365
|
return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t;
|
|
2366
2366
|
}(st || (st = {}));
|
|
@@ -2426,7 +2426,7 @@ class Sr {
|
|
|
2426
2426
|
reported separately.
|
|
2427
2427
|
*/
|
|
2428
2428
|
iterChangedRanges(e, r = !1) {
|
|
2429
|
-
|
|
2429
|
+
Yc(this, e, r);
|
|
2430
2430
|
}
|
|
2431
2431
|
/**
|
|
2432
2432
|
Get a description of the inverted form of these changes.
|
|
@@ -2454,7 +2454,7 @@ class Sr {
|
|
|
2454
2454
|
in `other` happened before the ones in `this`.
|
|
2455
2455
|
*/
|
|
2456
2456
|
mapDesc(e, r = !1) {
|
|
2457
|
-
return e.empty ? this :
|
|
2457
|
+
return e.empty ? this : qc(this, e, r);
|
|
2458
2458
|
}
|
|
2459
2459
|
mapPos(e, r = -1, n = st.Simple) {
|
|
2460
2460
|
let i = 0, s = 0;
|
|
@@ -2535,10 +2535,10 @@ class Ye extends Sr {
|
|
|
2535
2535
|
apply(e) {
|
|
2536
2536
|
if (this.length != e.length)
|
|
2537
2537
|
throw new RangeError("Applying change set to a document with the wrong length");
|
|
2538
|
-
return
|
|
2538
|
+
return Yc(this, (r, n, i, s, o) => e = e.replace(i, i + (n - r), o), !1), e;
|
|
2539
2539
|
}
|
|
2540
2540
|
mapDesc(e, r = !1) {
|
|
2541
|
-
return
|
|
2541
|
+
return qc(this, e, r, !0);
|
|
2542
2542
|
}
|
|
2543
2543
|
/**
|
|
2544
2544
|
Given the document as it existed _before_ the changes, return a
|
|
@@ -2584,7 +2584,7 @@ class Ye extends Sr {
|
|
|
2584
2584
|
and can be used for collaborative editing.
|
|
2585
2585
|
*/
|
|
2586
2586
|
map(e, r = !1) {
|
|
2587
|
-
return e.empty ? this :
|
|
2587
|
+
return e.empty ? this : qc(this, e, r, !0);
|
|
2588
2588
|
}
|
|
2589
2589
|
/**
|
|
2590
2590
|
Iterate over the changed ranges in the document, calling `f` for
|
|
@@ -2596,7 +2596,7 @@ class Ye extends Sr {
|
|
|
2596
2596
|
separately.
|
|
2597
2597
|
*/
|
|
2598
2598
|
iterChanges(e, r = !1) {
|
|
2599
|
-
|
|
2599
|
+
Yc(this, e, r);
|
|
2600
2600
|
}
|
|
2601
2601
|
/**
|
|
2602
2602
|
Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
|
|
@@ -2670,7 +2670,7 @@ class Ye extends Sr {
|
|
|
2670
2670
|
let { from: f, to: h = f, insert: d } = u;
|
|
2671
2671
|
if (f > h || f < 0 || h > r)
|
|
2672
2672
|
throw new RangeError(`Invalid change range ${f} to ${h} (in doc of length ${r})`);
|
|
2673
|
-
let p = d ? typeof d == "string" ? Oe.of(d.split(n ||
|
|
2673
|
+
let p = d ? typeof d == "string" ? Oe.of(d.split(n || Lc)) : d : Oe.empty, g = p.length;
|
|
2674
2674
|
if (f == h && g == 0)
|
|
2675
2675
|
return;
|
|
2676
2676
|
f < o && l(), f > o && it(i, f - o, -1), it(i, h - f, g), tn(s, i, p), o = h;
|
|
@@ -2735,7 +2735,7 @@ function tn(t, e, r) {
|
|
|
2735
2735
|
t.push(r);
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function Yc(t, e, r) {
|
|
2739
2739
|
let n = t.inserted;
|
|
2740
2740
|
for (let i = 0, s = 0, o = 0; o < t.sections.length; ) {
|
|
2741
2741
|
let a = t.sections[o++], l = t.sections[o++];
|
|
@@ -2749,7 +2749,7 @@ function Lc(t, e, r) {
|
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function qc(t, e, r, n = !1) {
|
|
2753
2753
|
let i = [], s = n ? [] : null, o = new ys(t), a = new ys(e);
|
|
2754
2754
|
for (let l = -1; ; )
|
|
2755
2755
|
if (o.ins == -1 && a.ins == -1) {
|
|
@@ -3053,10 +3053,10 @@ function Cm(t, e) {
|
|
|
3053
3053
|
if (r.to > e)
|
|
3054
3054
|
throw new RangeError("Selection points outside of document");
|
|
3055
3055
|
}
|
|
3056
|
-
let
|
|
3056
|
+
let wf = 0;
|
|
3057
3057
|
class ee {
|
|
3058
3058
|
constructor(e, r, n, i, s) {
|
|
3059
|
-
this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id =
|
|
3059
|
+
this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = wf++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s;
|
|
3060
3060
|
}
|
|
3061
3061
|
/**
|
|
3062
3062
|
Returns a facet reader for this facet, which can be used to
|
|
@@ -3069,7 +3069,7 @@ class ee {
|
|
|
3069
3069
|
Define a new facet.
|
|
3070
3070
|
*/
|
|
3071
3071
|
static define(e = {}) {
|
|
3072
|
-
return new ee(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n :
|
|
3072
|
+
return new ee(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : Pf), !!e.static, e.enables);
|
|
3073
3073
|
}
|
|
3074
3074
|
/**
|
|
3075
3075
|
Returns an extension that adds the given value to this facet.
|
|
@@ -3104,12 +3104,12 @@ class ee {
|
|
|
3104
3104
|
return r || (r = (n) => n), this.compute([e], (n) => r(n.field(e)));
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function Pf(t, e) {
|
|
3108
3108
|
return t == e || t.length == e.length && t.every((r, n) => r === e[n]);
|
|
3109
3109
|
}
|
|
3110
3110
|
class qo {
|
|
3111
3111
|
constructor(e, r, n, i) {
|
|
3112
|
-
this.dependencies = e, this.facet = r, this.type = n, this.value = i, this.id =
|
|
3112
|
+
this.dependencies = e, this.facet = r, this.type = n, this.value = i, this.id = wf++;
|
|
3113
3113
|
}
|
|
3114
3114
|
dynamicSlot(e) {
|
|
3115
3115
|
var r;
|
|
@@ -3121,7 +3121,7 @@ class qo {
|
|
|
3121
3121
|
return f.values[o] = n(f), 1;
|
|
3122
3122
|
},
|
|
3123
3123
|
update(f, h) {
|
|
3124
|
-
if (l && h.docChanged || c && (h.docChanged || h.selection) ||
|
|
3124
|
+
if (l && h.docChanged || c && (h.docChanged || h.selection) || Bc(f, u)) {
|
|
3125
3125
|
let d = n(f);
|
|
3126
3126
|
if (a ? !hd(d, f.values[o], i) : !i(d, f.values[o]))
|
|
3127
3127
|
return f.values[o] = d, 1;
|
|
@@ -3149,7 +3149,7 @@ function hd(t, e, r) {
|
|
|
3149
3149
|
return !1;
|
|
3150
3150
|
return !0;
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function Bc(t, e) {
|
|
3153
3153
|
let r = !1;
|
|
3154
3154
|
for (let n of e)
|
|
3155
3155
|
ns(t, n) & 1 && (r = !0);
|
|
@@ -3176,14 +3176,14 @@ function ww(t, e, r) {
|
|
|
3176
3176
|
return l.values[o] = a(l), 1;
|
|
3177
3177
|
},
|
|
3178
3178
|
update(l, c) {
|
|
3179
|
-
if (!
|
|
3179
|
+
if (!Bc(l, s))
|
|
3180
3180
|
return 0;
|
|
3181
3181
|
let u = a(l);
|
|
3182
3182
|
return e.compare(u, l.values[o]) ? 0 : (l.values[o] = u, 1);
|
|
3183
3183
|
},
|
|
3184
3184
|
reconfigure(l, c) {
|
|
3185
|
-
let u =
|
|
3186
|
-
if (f && !u &&
|
|
3185
|
+
let u = Bc(l, n), f = c.config.facets[e.id], h = c.facet(e);
|
|
3186
|
+
if (f && !u && Pf(r, f))
|
|
3187
3187
|
return l.values[o] = h, 0;
|
|
3188
3188
|
let d = a(l);
|
|
3189
3189
|
return e.compare(d, h) ? (l.values[o] = h, 0) : (l.values[o] = d, 1);
|
|
@@ -3199,7 +3199,7 @@ class Jt {
|
|
|
3199
3199
|
Define a state field.
|
|
3200
3200
|
*/
|
|
3201
3201
|
static define(e) {
|
|
3202
|
-
let r = new Jt(
|
|
3202
|
+
let r = new Jt(wf++, e.create, e.update, e.compare || ((n, i) => n === i), e);
|
|
3203
3203
|
return e.provide && (r.provides = e.provide(r)), r;
|
|
3204
3204
|
}
|
|
3205
3205
|
create(e) {
|
|
@@ -3278,7 +3278,7 @@ class za {
|
|
|
3278
3278
|
configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
|
|
3279
3279
|
*/
|
|
3280
3280
|
of(e) {
|
|
3281
|
-
return new
|
|
3281
|
+
return new zc(this, e);
|
|
3282
3282
|
}
|
|
3283
3283
|
/**
|
|
3284
3284
|
Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
|
|
@@ -3295,7 +3295,7 @@ class za {
|
|
|
3295
3295
|
return e.config.compartments.get(this);
|
|
3296
3296
|
}
|
|
3297
3297
|
}
|
|
3298
|
-
class
|
|
3298
|
+
class zc {
|
|
3299
3299
|
constructor(e, r) {
|
|
3300
3300
|
this.compartment = e, this.inner = r;
|
|
3301
3301
|
}
|
|
@@ -3326,7 +3326,7 @@ class ua {
|
|
|
3326
3326
|
(m) => m.type == 0
|
|
3327
3327
|
/* Provider.Static */
|
|
3328
3328
|
))
|
|
3329
|
-
if (a[p.id] = l.length << 1 | 1,
|
|
3329
|
+
if (a[p.id] = l.length << 1 | 1, Pf(g, d))
|
|
3330
3330
|
l.push(n.facet(p));
|
|
3331
3331
|
else {
|
|
3332
3332
|
let m = p.combine(d.map((v) => v.value));
|
|
@@ -3350,12 +3350,12 @@ function Pw(t, e, r) {
|
|
|
3350
3350
|
if (l <= a)
|
|
3351
3351
|
return;
|
|
3352
3352
|
let c = n[l].indexOf(o);
|
|
3353
|
-
c > -1 && n[l].splice(c, 1), o instanceof
|
|
3353
|
+
c > -1 && n[l].splice(c, 1), o instanceof zc && r.delete(o.compartment);
|
|
3354
3354
|
}
|
|
3355
3355
|
if (i.set(o, a), Array.isArray(o))
|
|
3356
3356
|
for (let c of o)
|
|
3357
3357
|
s(c, a);
|
|
3358
|
-
else if (o instanceof
|
|
3358
|
+
else if (o instanceof zc) {
|
|
3359
3359
|
if (r.has(o.compartment))
|
|
3360
3360
|
throw new RangeError("Duplicate use of compartment in extensions");
|
|
3361
3361
|
let c = e.get(o.compartment) || o.inner;
|
|
@@ -3390,7 +3390,7 @@ function ns(t, e) {
|
|
|
3390
3390
|
function fa(t, e) {
|
|
3391
3391
|
return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1];
|
|
3392
3392
|
}
|
|
3393
|
-
const Rm = /* @__PURE__ */ ee.define(),
|
|
3393
|
+
const Rm = /* @__PURE__ */ ee.define(), Uc = /* @__PURE__ */ ee.define({
|
|
3394
3394
|
combine: (t) => t.some((e) => e),
|
|
3395
3395
|
static: !0
|
|
3396
3396
|
}), Am = /* @__PURE__ */ ee.define({
|
|
@@ -3586,7 +3586,7 @@ function Im(t, e, r) {
|
|
|
3586
3586
|
scrollIntoView: t.scrollIntoView || e.scrollIntoView
|
|
3587
3587
|
};
|
|
3588
3588
|
}
|
|
3589
|
-
function
|
|
3589
|
+
function Fc(t, e, r) {
|
|
3590
3590
|
let n = e.selection, i = ii(e.annotations);
|
|
3591
3591
|
return e.userEvent && (i = i.concat(Ve.userEvent.of(e.userEvent))), {
|
|
3592
3592
|
changes: e.changes instanceof Ye ? e.changes : Ye.of(e.changes || [], r, t.facet(Am)),
|
|
@@ -3597,12 +3597,12 @@ function Uc(t, e, r) {
|
|
|
3597
3597
|
};
|
|
3598
3598
|
}
|
|
3599
3599
|
function _m(t, e, r) {
|
|
3600
|
-
let n =
|
|
3600
|
+
let n = Fc(t, e.length ? e[0] : {}, t.doc.length);
|
|
3601
3601
|
e.length && e[0].filter === !1 && (r = !1);
|
|
3602
3602
|
for (let s = 1; s < e.length; s++) {
|
|
3603
3603
|
e[s].filter === !1 && (r = !1);
|
|
3604
3604
|
let o = !!e[s].sequential;
|
|
3605
|
-
n = Im(n,
|
|
3605
|
+
n = Im(n, Fc(t, e[s], o ? n.changes.newLength : t.doc.length), o);
|
|
3606
3606
|
}
|
|
3607
3607
|
let i = Ve.create(t, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
|
|
3608
3608
|
return Cw(r ? Qw(i) : i);
|
|
@@ -3638,7 +3638,7 @@ function Cw(t) {
|
|
|
3638
3638
|
let e = t.startState, r = e.facet(Mm), n = t;
|
|
3639
3639
|
for (let i = r.length - 1; i >= 0; i--) {
|
|
3640
3640
|
let s = r[i](t);
|
|
3641
|
-
s && Object.keys(s).length && (n = Im(n,
|
|
3641
|
+
s && Object.keys(s).length && (n = Im(n, Fc(e, s, t.changes.newLength), !0));
|
|
3642
3642
|
}
|
|
3643
3643
|
return n == t ? t : Ve.create(e, t.changes, t.selection, n.effects, n.annotations, n.scrollIntoView);
|
|
3644
3644
|
}
|
|
@@ -3650,14 +3650,14 @@ var jt = /* @__PURE__ */ function(t) {
|
|
|
3650
3650
|
return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t;
|
|
3651
3651
|
}(jt || (jt = {}));
|
|
3652
3652
|
const Rw = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
3653
|
-
let
|
|
3653
|
+
let Gc;
|
|
3654
3654
|
try {
|
|
3655
|
-
|
|
3655
|
+
Gc = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
|
|
3656
3656
|
} catch {
|
|
3657
3657
|
}
|
|
3658
3658
|
function Aw(t) {
|
|
3659
|
-
if (
|
|
3660
|
-
return
|
|
3659
|
+
if (Gc)
|
|
3660
|
+
return Gc.test(t);
|
|
3661
3661
|
for (let e = 0; e < t.length; e++) {
|
|
3662
3662
|
let r = t[e];
|
|
3663
3663
|
if (/\w/.test(r) || r > "" && (r.toUpperCase() != r.toLowerCase() || Rw.test(r)))
|
|
@@ -3720,7 +3720,7 @@ class ye {
|
|
|
3720
3720
|
a.is(za.reconfigure) ? (r && (i = /* @__PURE__ */ new Map(), r.compartments.forEach((l, c) => i.set(c, l)), r = null), i.set(a.value.compartment, a.value.extension)) : a.is(Ce.reconfigure) ? (r = null, n = a.value) : a.is(Ce.appendConfig) && (r = null, n = ii(n).concat(a.value));
|
|
3721
3721
|
let s;
|
|
3722
3722
|
r ? s = e.startState.values.slice() : (r = ua.resolve(n, i, this), s = new ye(r, this.doc, this.selection, r.dynamicSlots.map(() => null), (l, c) => c.reconfigure(l, this), null).values);
|
|
3723
|
-
let o = e.startState.facet(
|
|
3723
|
+
let o = e.startState.facet(Uc) ? e.newSelection : e.newSelection.asSingle();
|
|
3724
3724
|
new ye(r, e.newDoc, o, s, (a, l) => l.update(a, e), e);
|
|
3725
3725
|
}
|
|
3726
3726
|
/**
|
|
@@ -3773,7 +3773,7 @@ class ye {
|
|
|
3773
3773
|
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
|
|
3774
3774
|
*/
|
|
3775
3775
|
toText(e) {
|
|
3776
|
-
return Oe.of(e.split(this.facet(ye.lineSeparator) ||
|
|
3776
|
+
return Oe.of(e.split(this.facet(ye.lineSeparator) || Lc));
|
|
3777
3777
|
}
|
|
3778
3778
|
/**
|
|
3779
3779
|
Return the given range of the document as a string.
|
|
@@ -3835,8 +3835,8 @@ class ye {
|
|
|
3835
3835
|
transactions.
|
|
3836
3836
|
*/
|
|
3837
3837
|
static create(e = {}) {
|
|
3838
|
-
let r = ua.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Oe ? e.doc : Oe.of((e.doc || "").split(r.staticFacet(ye.lineSeparator) ||
|
|
3839
|
-
return Cm(i, n.length), r.staticFacet(
|
|
3838
|
+
let r = ua.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Oe ? e.doc : Oe.of((e.doc || "").split(r.staticFacet(ye.lineSeparator) || Lc)), i = e.selection ? e.selection instanceof j ? e.selection : j.single(e.selection.anchor, e.selection.head) : j.single(0);
|
|
3839
|
+
return Cm(i, n.length), r.staticFacet(Uc) || (i = i.asSingle()), new ye(r, n, i, r.dynamicSlots.map(() => null), (s, o) => o.create(s), null);
|
|
3840
3840
|
}
|
|
3841
3841
|
/**
|
|
3842
3842
|
The size (in columns) of a tab in the document, determined by
|
|
@@ -3943,7 +3943,7 @@ class ye {
|
|
|
3943
3943
|
return o == a ? null : j.range(o + n, a + n);
|
|
3944
3944
|
}
|
|
3945
3945
|
}
|
|
3946
|
-
ye.allowMultipleSelections =
|
|
3946
|
+
ye.allowMultipleSelections = Uc;
|
|
3947
3947
|
ye.tabSize = /* @__PURE__ */ ee.define({
|
|
3948
3948
|
combine: (t) => t.length ? t[0] : 4
|
|
3949
3949
|
});
|
|
@@ -3992,13 +3992,13 @@ class Rn {
|
|
|
3992
3992
|
Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
|
|
3993
3993
|
*/
|
|
3994
3994
|
range(e, r = e) {
|
|
3995
|
-
return
|
|
3995
|
+
return Hc.create(e, r, this);
|
|
3996
3996
|
}
|
|
3997
3997
|
}
|
|
3998
3998
|
Rn.prototype.startSide = Rn.prototype.endSide = 0;
|
|
3999
3999
|
Rn.prototype.point = !1;
|
|
4000
4000
|
Rn.prototype.mapMode = st.TrackDel;
|
|
4001
|
-
let
|
|
4001
|
+
let Hc = class Nm {
|
|
4002
4002
|
constructor(e, r, n) {
|
|
4003
4003
|
this.from = e, this.to = r, this.value = n;
|
|
4004
4004
|
}
|
|
@@ -4009,10 +4009,10 @@ let Gc = class Nm {
|
|
|
4009
4009
|
return new Nm(e, r, n);
|
|
4010
4010
|
}
|
|
4011
4011
|
};
|
|
4012
|
-
function
|
|
4012
|
+
function Kc(t, e) {
|
|
4013
4013
|
return t.from - e.from || t.value.startSide - e.value.startSide;
|
|
4014
4014
|
}
|
|
4015
|
-
class
|
|
4015
|
+
class kf {
|
|
4016
4016
|
constructor(e, r, n, i) {
|
|
4017
4017
|
this.from = e, this.to = r, this.value = n, this.maxPoint = i;
|
|
4018
4018
|
}
|
|
@@ -4049,7 +4049,7 @@ class Pf {
|
|
|
4049
4049
|
continue;
|
|
4050
4050
|
(d - h || c.endSide - c.startSide) < 0 || (o < 0 && (o = h), c.point && (a = Math.max(a, d - h)), n.push(c), i.push(h - o), s.push(d - o));
|
|
4051
4051
|
}
|
|
4052
|
-
return { mapped: n.length ? new
|
|
4052
|
+
return { mapped: n.length ? new kf(i, s, n, a) : null, pos: o };
|
|
4053
4053
|
}
|
|
4054
4054
|
}
|
|
4055
4055
|
class be {
|
|
@@ -4099,7 +4099,7 @@ class be {
|
|
|
4099
4099
|
let { add: r = [], sort: n = !1, filterFrom: i = 0, filterTo: s = this.length } = e, o = e.filter;
|
|
4100
4100
|
if (r.length == 0 && !o)
|
|
4101
4101
|
return this;
|
|
4102
|
-
if (n && (r = r.slice().sort(
|
|
4102
|
+
if (n && (r = r.slice().sort(Kc)), this.isEmpty)
|
|
4103
4103
|
return r.length ? be.of(r) : this;
|
|
4104
4104
|
let a = new Xm(this, null, -1).goto(0), l = 0, c = [], u = new gi();
|
|
4105
4105
|
for (; a.value || l < r.length; )
|
|
@@ -4107,7 +4107,7 @@ class be {
|
|
|
4107
4107
|
let f = r[l++];
|
|
4108
4108
|
u.addInner(f.from, f.to, f.value) || c.push(f);
|
|
4109
4109
|
} else
|
|
4110
|
-
a.rangeIndex == 1 && a.chunkIndex < this.chunk.length && (l == r.length || this.chunkEnd(a.chunkIndex) < r[l].from) && (!o || i > this.chunkEnd(a.chunkIndex) || s < this.chunkPos[a.chunkIndex]) && u.addChunk(this.chunkPos[a.chunkIndex], this.chunk[a.chunkIndex]) ? a.nextChunk() : ((!o || i > a.to || s < a.from || o(a.from, a.to, a.value)) && (u.addInner(a.from, a.to, a.value) || c.push(
|
|
4110
|
+
a.rangeIndex == 1 && a.chunkIndex < this.chunk.length && (l == r.length || this.chunkEnd(a.chunkIndex) < r[l].from) && (!o || i > this.chunkEnd(a.chunkIndex) || s < this.chunkPos[a.chunkIndex]) && u.addChunk(this.chunkPos[a.chunkIndex], this.chunk[a.chunkIndex]) ? a.nextChunk() : ((!o || i > a.to || s < a.from || o(a.from, a.to, a.value)) && (u.addInner(a.from, a.to, a.value) || c.push(Hc.create(a.from, a.to, a.value))), a.next());
|
|
4111
4111
|
return u.finishInner(this.nextLayer.isEmpty && !c.length ? be.empty : this.nextLayer.update({ add: c, filter: o, filterFrom: i, filterTo: s }));
|
|
4112
4112
|
}
|
|
4113
4113
|
/**
|
|
@@ -4186,7 +4186,7 @@ class be {
|
|
|
4186
4186
|
return !0;
|
|
4187
4187
|
let a = pd(s, o), l = new Mi(s, a, 0).goto(n), c = new Mi(o, a, 0).goto(n);
|
|
4188
4188
|
for (; ; ) {
|
|
4189
|
-
if (l.to != c.to || !
|
|
4189
|
+
if (l.to != c.to || !Jc(l.active, c.active) || l.point && (!c.point || !l.point.eq(c.point)))
|
|
4190
4190
|
return !1;
|
|
4191
4191
|
if (l.to > i)
|
|
4192
4192
|
return !0;
|
|
@@ -4223,7 +4223,7 @@ class be {
|
|
|
4223
4223
|
*/
|
|
4224
4224
|
static of(e, r = !1) {
|
|
4225
4225
|
let n = new gi();
|
|
4226
|
-
for (let i of e instanceof
|
|
4226
|
+
for (let i of e instanceof Hc ? [e] : r ? jw(e) : e)
|
|
4227
4227
|
n.add(i.from, i.to, i.value);
|
|
4228
4228
|
return n.finish();
|
|
4229
4229
|
}
|
|
@@ -4245,8 +4245,8 @@ function jw(t) {
|
|
|
4245
4245
|
if (t.length > 1)
|
|
4246
4246
|
for (let e = t[0], r = 1; r < t.length; r++) {
|
|
4247
4247
|
let n = t[r];
|
|
4248
|
-
if (
|
|
4249
|
-
return t.slice().sort(
|
|
4248
|
+
if (Kc(e, n) > 0)
|
|
4249
|
+
return t.slice().sort(Kc);
|
|
4250
4250
|
e = n;
|
|
4251
4251
|
}
|
|
4252
4252
|
return t;
|
|
@@ -4254,7 +4254,7 @@ function jw(t) {
|
|
|
4254
4254
|
be.empty.nextLayer = be.empty;
|
|
4255
4255
|
class gi {
|
|
4256
4256
|
finishChunk(e) {
|
|
4257
|
-
this.chunks.push(new
|
|
4257
|
+
this.chunks.push(new kf(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
4258
4258
|
}
|
|
4259
4259
|
/**
|
|
4260
4260
|
Create an empty builder.
|
|
@@ -4503,12 +4503,12 @@ function gd(t, e, r, n, i, s) {
|
|
|
4503
4503
|
let o = n + i, a = n, l = n - e;
|
|
4504
4504
|
for (; ; ) {
|
|
4505
4505
|
let c = t.to + l - r.to || t.endSide - r.endSide, u = c < 0 ? t.to + l : r.to, f = Math.min(u, o);
|
|
4506
|
-
if (t.point || r.point ? t.point && r.point && (t.point == r.point || t.point.eq(r.point)) &&
|
|
4506
|
+
if (t.point || r.point ? t.point && r.point && (t.point == r.point || t.point.eq(r.point)) && Jc(t.activeForPoint(t.to), r.activeForPoint(r.to)) || s.comparePoint(a, f, t.point, r.point) : f > a && !Jc(t.active, r.active) && s.compareRange(a, f, t.active, r.active), u > o)
|
|
4507
4507
|
break;
|
|
4508
4508
|
a = u, c <= 0 && t.next(), c >= 0 && r.next();
|
|
4509
4509
|
}
|
|
4510
4510
|
}
|
|
4511
|
-
function
|
|
4511
|
+
function Jc(t, e) {
|
|
4512
4512
|
if (t.length != e.length)
|
|
4513
4513
|
return !1;
|
|
4514
4514
|
for (let r = 0; r < t.length; r++)
|
|
@@ -4548,7 +4548,7 @@ function Mw(t, e, r, n) {
|
|
|
4548
4548
|
}
|
|
4549
4549
|
return n === !0 ? -1 : t.length;
|
|
4550
4550
|
}
|
|
4551
|
-
const
|
|
4551
|
+
const eu = "ͼ", md = typeof Symbol > "u" ? "__" + eu : Symbol.for(eu), tu = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), vd = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
4552
4552
|
class cn {
|
|
4553
4553
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
4554
4554
|
// Create a style module from the given spec.
|
|
@@ -4595,7 +4595,7 @@ class cn {
|
|
|
4595
4595
|
// Generate a new unique CSS class name.
|
|
4596
4596
|
static newName() {
|
|
4597
4597
|
let e = vd[md] || 1;
|
|
4598
|
-
return vd[md] = e + 1,
|
|
4598
|
+
return vd[md] = e + 1, eu + e.toString(36);
|
|
4599
4599
|
}
|
|
4600
4600
|
// :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
|
|
4601
4601
|
//
|
|
@@ -4614,7 +4614,7 @@ class cn {
|
|
|
4614
4614
|
// If a Content Security Policy nonce is provided, it is added to
|
|
4615
4615
|
// the `<style>` tag generated by the library.
|
|
4616
4616
|
static mount(e, r, n) {
|
|
4617
|
-
let i = e[
|
|
4617
|
+
let i = e[tu], s = n && n.nonce;
|
|
4618
4618
|
i ? s && i.setNonce(s) : i = new Zw(e, s), i.mount(Array.isArray(r) ? r : [r], e);
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
@@ -4625,11 +4625,11 @@ class Zw {
|
|
|
4625
4625
|
if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) {
|
|
4626
4626
|
let s = yd.get(n);
|
|
4627
4627
|
if (s)
|
|
4628
|
-
return e[
|
|
4628
|
+
return e[tu] = s;
|
|
4629
4629
|
this.sheet = new i.CSSStyleSheet(), yd.set(n, this);
|
|
4630
4630
|
} else
|
|
4631
4631
|
this.styleTag = n.createElement("style"), r && this.styleTag.setAttribute("nonce", r);
|
|
4632
|
-
this.modules = [], e[
|
|
4632
|
+
this.modules = [], e[tu] = this;
|
|
4633
4633
|
}
|
|
4634
4634
|
mount(e, r) {
|
|
4635
4635
|
let n = this.sheet, i = 0, s = 0;
|
|
@@ -4756,7 +4756,7 @@ function ha(t) {
|
|
|
4756
4756
|
let e;
|
|
4757
4757
|
return t.nodeType == 11 ? e = t.getSelection ? t : t.ownerDocument : e = t, e.getSelection();
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4759
|
+
function ru(t, e) {
|
|
4760
4760
|
return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
|
|
4761
4761
|
}
|
|
4762
4762
|
function Xw(t) {
|
|
@@ -4769,7 +4769,7 @@ function Bo(t, e) {
|
|
|
4769
4769
|
if (!e.anchorNode)
|
|
4770
4770
|
return !1;
|
|
4771
4771
|
try {
|
|
4772
|
-
return
|
|
4772
|
+
return ru(t, e.anchorNode);
|
|
4773
4773
|
} catch {
|
|
4774
4774
|
return !1;
|
|
4775
4775
|
}
|
|
@@ -4810,7 +4810,7 @@ function bd(t, e, r, n, i) {
|
|
|
4810
4810
|
function Zr(t) {
|
|
4811
4811
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function $f(t, e) {
|
|
4814
4814
|
let r = e ? t.left : t.right;
|
|
4815
4815
|
return { left: r, right: r, top: t.top, bottom: t.bottom };
|
|
4816
4816
|
}
|
|
@@ -5019,7 +5019,7 @@ class ot {
|
|
|
5019
5019
|
return new ot(e.parentNode, An(e) + 1, r);
|
|
5020
5020
|
}
|
|
5021
5021
|
}
|
|
5022
|
-
const
|
|
5022
|
+
const Tf = [];
|
|
5023
5023
|
class ke {
|
|
5024
5024
|
constructor() {
|
|
5025
5025
|
this.parent = null, this.dom = null, this.flags = 2;
|
|
@@ -5141,7 +5141,7 @@ class ke {
|
|
|
5141
5141
|
e = r;
|
|
5142
5142
|
}
|
|
5143
5143
|
}
|
|
5144
|
-
replaceChildren(e, r, n =
|
|
5144
|
+
replaceChildren(e, r, n = Tf) {
|
|
5145
5145
|
this.markDirty();
|
|
5146
5146
|
for (let i = e; i < r; i++) {
|
|
5147
5147
|
let s = this.children[i];
|
|
@@ -5241,14 +5241,14 @@ function Fm(t, e, r, n, i, s) {
|
|
|
5241
5241
|
f += h.length;
|
|
5242
5242
|
t.length += f, Um(t, c, u, a, l, n, 0, i, s);
|
|
5243
5243
|
}
|
|
5244
|
-
let Tt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" },
|
|
5245
|
-
const
|
|
5244
|
+
let Tt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, nu = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
5245
|
+
const iu = /* @__PURE__ */ /Edge\/(\d+)/.exec(Tt.userAgent), Gm = /* @__PURE__ */ /MSIE \d/.test(Tt.userAgent), su = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tt.userAgent), Fa = !!(Gm || su || iu), wd = !Fa && /* @__PURE__ */ /gecko\/(\d+)/i.test(Tt.userAgent), Ml = !Fa && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Tt.userAgent), Pd = "webkitFontSmoothing" in nu.documentElement.style, Hm = !Fa && /* @__PURE__ */ /Apple Computer/.test(Tt.vendor), kd = Hm && (/* @__PURE__ */ /Mobile\/\w+/.test(Tt.userAgent) || Tt.maxTouchPoints > 2);
|
|
5246
5246
|
var H = {
|
|
5247
5247
|
mac: kd || /* @__PURE__ */ /Mac/.test(Tt.platform),
|
|
5248
5248
|
windows: /* @__PURE__ */ /Win/.test(Tt.platform),
|
|
5249
5249
|
linux: /* @__PURE__ */ /Linux|X11/.test(Tt.platform),
|
|
5250
5250
|
ie: Fa,
|
|
5251
|
-
ie_version: Gm ?
|
|
5251
|
+
ie_version: Gm ? nu.documentMode || 6 : su ? +su[1] : iu ? +iu[1] : 0,
|
|
5252
5252
|
gecko: wd,
|
|
5253
5253
|
gecko_version: wd ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Tt.userAgent) || [0, 0])[1] : 0,
|
|
5254
5254
|
chrome: !!Ml,
|
|
@@ -5258,7 +5258,7 @@ var H = {
|
|
|
5258
5258
|
webkit: Pd,
|
|
5259
5259
|
safari: Hm,
|
|
5260
5260
|
webkit_version: Pd ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0,
|
|
5261
|
-
tabSize:
|
|
5261
|
+
tabSize: nu.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
|
|
5262
5262
|
};
|
|
5263
5263
|
const zw = 256;
|
|
5264
5264
|
class Ht extends ke {
|
|
@@ -5346,7 +5346,7 @@ function Uw(t, e, r) {
|
|
|
5346
5346
|
if (!a.length)
|
|
5347
5347
|
return null;
|
|
5348
5348
|
let l = a[(o ? o < 0 : r >= 0) ? 0 : a.length - 1];
|
|
5349
|
-
return H.safari && !o && l.width == 0 && (l = Array.prototype.find.call(a, (c) => c.width) || l), o ?
|
|
5349
|
+
return H.safari && !o && l.width == 0 && (l = Array.prototype.find.call(a, (c) => c.width) || l), o ? $f(l, o < 0) : l || null;
|
|
5350
5350
|
}
|
|
5351
5351
|
class wn extends ke {
|
|
5352
5352
|
static create(e, r, n) {
|
|
@@ -5402,7 +5402,7 @@ class wn extends ke {
|
|
|
5402
5402
|
let o = this.side ? this.side < 0 : e > 0;
|
|
5403
5403
|
for (let a = o ? i.length - 1 : 0; s = i[a], !(e > 0 ? a == 0 : a == i.length - 1 || s.top < s.bottom); a += o ? -1 : 1)
|
|
5404
5404
|
;
|
|
5405
|
-
return
|
|
5405
|
+
return $f(s, !o);
|
|
5406
5406
|
}
|
|
5407
5407
|
get isEditable() {
|
|
5408
5408
|
return !1;
|
|
@@ -5461,7 +5461,7 @@ class Oi extends ke {
|
|
|
5461
5461
|
return !0;
|
|
5462
5462
|
}
|
|
5463
5463
|
}
|
|
5464
|
-
Ht.prototype.children = wn.prototype.children = Oi.prototype.children =
|
|
5464
|
+
Ht.prototype.children = wn.prototype.children = Oi.prototype.children = Tf;
|
|
5465
5465
|
function Km(t, e) {
|
|
5466
5466
|
let r = t.dom, { children: n } = t, i = 0;
|
|
5467
5467
|
for (let s = 0; i < n.length; i++) {
|
|
@@ -5509,13 +5509,13 @@ function Fw(t) {
|
|
|
5509
5509
|
let r = xs(e);
|
|
5510
5510
|
return r[r.length - 1] || null;
|
|
5511
5511
|
}
|
|
5512
|
-
function
|
|
5512
|
+
function ou(t, e) {
|
|
5513
5513
|
for (let r in t)
|
|
5514
5514
|
r == "class" && e.class ? e.class += " " + t.class : r == "style" && e.style ? e.style += ";" + t.style : e[r] = t[r];
|
|
5515
5515
|
return e;
|
|
5516
5516
|
}
|
|
5517
5517
|
const $d = /* @__PURE__ */ Object.create(null);
|
|
5518
|
-
function
|
|
5518
|
+
function Qf(t, e, r) {
|
|
5519
5519
|
if (t == e)
|
|
5520
5520
|
return !0;
|
|
5521
5521
|
t || (t = $d), e || (e = $d);
|
|
@@ -5527,7 +5527,7 @@ function Tf(t, e, r) {
|
|
|
5527
5527
|
return !1;
|
|
5528
5528
|
return !0;
|
|
5529
5529
|
}
|
|
5530
|
-
function
|
|
5530
|
+
function au(t, e, r) {
|
|
5531
5531
|
let n = !1;
|
|
5532
5532
|
if (e)
|
|
5533
5533
|
for (let i in e)
|
|
@@ -5574,7 +5574,7 @@ class Le extends ke {
|
|
|
5574
5574
|
this.dom && (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null);
|
|
5575
5575
|
}
|
|
5576
5576
|
setDeco(e) {
|
|
5577
|
-
|
|
5577
|
+
Qf(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
|
|
5578
5578
|
}
|
|
5579
5579
|
append(e, r) {
|
|
5580
5580
|
Jm(this, e, r);
|
|
@@ -5582,7 +5582,7 @@ class Le extends ke {
|
|
|
5582
5582
|
// Only called when building a line view in ContentBuilder
|
|
5583
5583
|
addLineDeco(e) {
|
|
5584
5584
|
let r = e.spec.attributes, n = e.spec.class;
|
|
5585
|
-
r && (this.attrs =
|
|
5585
|
+
r && (this.attrs = ou(r, this.attrs || {})), n && (this.attrs = ou({ class: n }, this.attrs || {}));
|
|
5586
5586
|
}
|
|
5587
5587
|
domAtPos(e) {
|
|
5588
5588
|
return Km(this, e);
|
|
@@ -5592,7 +5592,7 @@ class Le extends ke {
|
|
|
5592
5592
|
}
|
|
5593
5593
|
sync(e, r) {
|
|
5594
5594
|
var n;
|
|
5595
|
-
this.dom ? this.flags & 4 && (Lm(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (
|
|
5595
|
+
this.dom ? this.flags & 4 && (Lm(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (au(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, r);
|
|
5596
5596
|
let i = this.dom.lastChild;
|
|
5597
5597
|
for (; i && ke.get(i) instanceof Ir; )
|
|
5598
5598
|
i = i.lastChild;
|
|
@@ -5667,7 +5667,7 @@ class an extends ke {
|
|
|
5667
5667
|
return n.breakAfter = this.breakAfter, n;
|
|
5668
5668
|
}
|
|
5669
5669
|
get children() {
|
|
5670
|
-
return
|
|
5670
|
+
return Tf;
|
|
5671
5671
|
}
|
|
5672
5672
|
sync(e) {
|
|
5673
5673
|
(!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
|
|
@@ -5865,7 +5865,7 @@ class Ws extends de {
|
|
|
5865
5865
|
}
|
|
5866
5866
|
eq(e) {
|
|
5867
5867
|
var r, n;
|
|
5868
|
-
return this == e || e instanceof Ws && this.tagName == e.tagName && (this.class || ((r = this.attrs) === null || r === void 0 ? void 0 : r.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) &&
|
|
5868
|
+
return this == e || e instanceof Ws && this.tagName == e.tagName && (this.class || ((r = this.attrs) === null || r === void 0 ? void 0 : r.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && Qf(this.attrs, e.attrs, "class");
|
|
5869
5869
|
}
|
|
5870
5870
|
range(e, r = e) {
|
|
5871
5871
|
if (e >= r)
|
|
@@ -5879,7 +5879,7 @@ class Ls extends de {
|
|
|
5879
5879
|
super(-2e8, -2e8, null, e);
|
|
5880
5880
|
}
|
|
5881
5881
|
eq(e) {
|
|
5882
|
-
return e instanceof Ls && this.spec.class == e.spec.class &&
|
|
5882
|
+
return e instanceof Ls && this.spec.class == e.spec.class && Qf(this.spec.attributes, e.spec.attributes);
|
|
5883
5883
|
}
|
|
5884
5884
|
range(e, r = e) {
|
|
5885
5885
|
if (r != e)
|
|
@@ -5919,7 +5919,7 @@ function tv(t, e = !1) {
|
|
|
5919
5919
|
function Hw(t, e) {
|
|
5920
5920
|
return t == e || !!(t && e && t.compare(e));
|
|
5921
5921
|
}
|
|
5922
|
-
function
|
|
5922
|
+
function lu(t, e, r, n = 0) {
|
|
5923
5923
|
let i = r.length - 1;
|
|
5924
5924
|
i >= 0 && r[i] + n >= t ? r[i] = Math.max(r[i], e) : r.push(t, e);
|
|
5925
5925
|
}
|
|
@@ -6020,17 +6020,17 @@ mi.block = /* @__PURE__ */ new mi("div");
|
|
|
6020
6020
|
var qe = /* @__PURE__ */ function(t) {
|
|
6021
6021
|
return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t;
|
|
6022
6022
|
}(qe || (qe = {}));
|
|
6023
|
-
const jn = qe.LTR,
|
|
6023
|
+
const jn = qe.LTR, Cf = qe.RTL;
|
|
6024
6024
|
function rv(t) {
|
|
6025
6025
|
let e = [];
|
|
6026
6026
|
for (let r = 0; r < t.length; r++)
|
|
6027
6027
|
e.push(1 << +t[r]);
|
|
6028
6028
|
return e;
|
|
6029
6029
|
}
|
|
6030
|
-
const Kw = /* @__PURE__ */ rv("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Jw = /* @__PURE__ */ rv("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),
|
|
6030
|
+
const Kw = /* @__PURE__ */ rv("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Jw = /* @__PURE__ */ rv("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), cu = /* @__PURE__ */ Object.create(null), ir = [];
|
|
6031
6031
|
for (let t of ["()", "[]", "{}"]) {
|
|
6032
6032
|
let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1);
|
|
6033
|
-
|
|
6033
|
+
cu[e] = r, cu[r] = -e;
|
|
6034
6034
|
}
|
|
6035
6035
|
function nv(t) {
|
|
6036
6036
|
return t <= 247 ? Kw[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Jw[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1;
|
|
@@ -6041,7 +6041,7 @@ class rn {
|
|
|
6041
6041
|
The direction of this span.
|
|
6042
6042
|
*/
|
|
6043
6043
|
get dir() {
|
|
6044
|
-
return this.level % 2 ?
|
|
6044
|
+
return this.level % 2 ? Cf : jn;
|
|
6045
6045
|
}
|
|
6046
6046
|
/**
|
|
6047
6047
|
@internal
|
|
@@ -6120,7 +6120,7 @@ function rP(t, e, r, n, i) {
|
|
|
6120
6120
|
for (let o = 0, a = 0, l = 0; o <= n.length; o++) {
|
|
6121
6121
|
let c = o ? n[o - 1].to : e, u = o < n.length ? n[o].from : r;
|
|
6122
6122
|
for (let f = c, h, d, p; f < u; f++)
|
|
6123
|
-
if (d =
|
|
6123
|
+
if (d = cu[h = t.charCodeAt(f)])
|
|
6124
6124
|
if (d < 0) {
|
|
6125
6125
|
for (let g = a - 3; g >= 0; g -= 3)
|
|
6126
6126
|
if (ir[g + 1] == -d) {
|
|
@@ -6176,7 +6176,7 @@ function nP(t, e, r, n) {
|
|
|
6176
6176
|
}
|
|
6177
6177
|
}
|
|
6178
6178
|
}
|
|
6179
|
-
function
|
|
6179
|
+
function uu(t, e, r, n, i, s, o) {
|
|
6180
6180
|
let a = n % 2 ? 2 : 1;
|
|
6181
6181
|
if (n % 2 == i % 2)
|
|
6182
6182
|
for (let l = e, c = 0; l < r; ) {
|
|
@@ -6209,7 +6209,7 @@ function cu(t, e, r, n, i, s, o) {
|
|
|
6209
6209
|
else {
|
|
6210
6210
|
g.from > l && o.push(new rn(l, g.from, d));
|
|
6211
6211
|
let m = g.direction == jn != !(d % 2);
|
|
6212
|
-
|
|
6212
|
+
fu(t, m ? n + 1 : n, i, g.inner, g.from, g.to, o), l = g.to;
|
|
6213
6213
|
}
|
|
6214
6214
|
p = g.to;
|
|
6215
6215
|
} else {
|
|
@@ -6217,7 +6217,7 @@ function cu(t, e, r, n, i, s, o) {
|
|
|
6217
6217
|
break;
|
|
6218
6218
|
p++;
|
|
6219
6219
|
}
|
|
6220
|
-
h ?
|
|
6220
|
+
h ? uu(t, l, p, n + 1, i, h, o) : l < p && o.push(new rn(l, p, d)), l = p;
|
|
6221
6221
|
}
|
|
6222
6222
|
else
|
|
6223
6223
|
for (let l = r, c = s.length; l > e; ) {
|
|
@@ -6250,7 +6250,7 @@ function cu(t, e, r, n, i, s, o) {
|
|
|
6250
6250
|
else {
|
|
6251
6251
|
g.to < l && o.push(new rn(g.to, l, d));
|
|
6252
6252
|
let m = g.direction == jn != !(d % 2);
|
|
6253
|
-
|
|
6253
|
+
fu(t, m ? n + 1 : n, i, g.inner, g.from, g.to, o), l = g.from;
|
|
6254
6254
|
}
|
|
6255
6255
|
p = g.from;
|
|
6256
6256
|
} else {
|
|
@@ -6258,23 +6258,23 @@ function cu(t, e, r, n, i, s, o) {
|
|
|
6258
6258
|
break;
|
|
6259
6259
|
p--;
|
|
6260
6260
|
}
|
|
6261
|
-
h ?
|
|
6261
|
+
h ? uu(t, p, l, n + 1, i, h, o) : p < l && o.push(new rn(p, l, d)), l = p;
|
|
6262
6262
|
}
|
|
6263
6263
|
}
|
|
6264
|
-
function
|
|
6264
|
+
function fu(t, e, r, n, i, s, o) {
|
|
6265
6265
|
let a = e % 2 ? 2 : 1;
|
|
6266
|
-
tP(t, i, s, n, a), rP(t, i, s, n, a), nP(i, s, n, a),
|
|
6266
|
+
tP(t, i, s, n, a), rP(t, i, s, n, a), nP(i, s, n, a), uu(t, i, s, e, r, n, o);
|
|
6267
6267
|
}
|
|
6268
6268
|
function iP(t, e, r) {
|
|
6269
6269
|
if (!t)
|
|
6270
|
-
return [new rn(0, 0, e ==
|
|
6270
|
+
return [new rn(0, 0, e == Cf ? 1 : 0)];
|
|
6271
6271
|
if (e == jn && !r.length && !eP.test(t))
|
|
6272
6272
|
return sv(t.length);
|
|
6273
6273
|
if (r.length)
|
|
6274
6274
|
for (; t.length > Pe.length; )
|
|
6275
6275
|
Pe[Pe.length] = 256;
|
|
6276
6276
|
let n = [], i = e == jn ? 0 : 1;
|
|
6277
|
-
return
|
|
6277
|
+
return fu(t, i, i, r, 0, t.length, n), n;
|
|
6278
6278
|
}
|
|
6279
6279
|
function sv(t) {
|
|
6280
6280
|
return [new rn(0, t, 0)];
|
|
@@ -6300,11 +6300,11 @@ function oP(t, e, r) {
|
|
|
6300
6300
|
if (i == 1)
|
|
6301
6301
|
return jn;
|
|
6302
6302
|
if (i == 2 || i == 4)
|
|
6303
|
-
return
|
|
6303
|
+
return Cf;
|
|
6304
6304
|
}
|
|
6305
6305
|
return jn;
|
|
6306
6306
|
}
|
|
6307
|
-
const av = /* @__PURE__ */ ee.define(), lv = /* @__PURE__ */ ee.define(), cv = /* @__PURE__ */ ee.define(), uv = /* @__PURE__ */ ee.define(),
|
|
6307
|
+
const av = /* @__PURE__ */ ee.define(), lv = /* @__PURE__ */ ee.define(), cv = /* @__PURE__ */ ee.define(), uv = /* @__PURE__ */ ee.define(), hu = /* @__PURE__ */ ee.define(), fv = /* @__PURE__ */ ee.define(), hv = /* @__PURE__ */ ee.define(), dv = /* @__PURE__ */ ee.define({
|
|
6308
6308
|
combine: (t) => t.some((e) => e)
|
|
6309
6309
|
}), aP = /* @__PURE__ */ ee.define({
|
|
6310
6310
|
combine: (t) => t.some((e) => e)
|
|
@@ -6395,7 +6395,7 @@ class Zl {
|
|
|
6395
6395
|
this.spec = this.value = null;
|
|
6396
6396
|
}
|
|
6397
6397
|
}
|
|
6398
|
-
const gv = /* @__PURE__ */ ee.define(),
|
|
6398
|
+
const gv = /* @__PURE__ */ ee.define(), Ef = /* @__PURE__ */ ee.define(), ws = /* @__PURE__ */ ee.define(), Ov = /* @__PURE__ */ ee.define(), Rf = /* @__PURE__ */ ee.define(), mv = /* @__PURE__ */ ee.define();
|
|
6399
6399
|
function Td(t, e) {
|
|
6400
6400
|
let r = t.state.facet(mv);
|
|
6401
6401
|
if (!r.length)
|
|
@@ -6938,10 +6938,10 @@ let hP = class {
|
|
|
6938
6938
|
this.changes = [];
|
|
6939
6939
|
}
|
|
6940
6940
|
compareRange(e, r) {
|
|
6941
|
-
|
|
6941
|
+
lu(e, r, this.changes);
|
|
6942
6942
|
}
|
|
6943
6943
|
comparePoint(e, r) {
|
|
6944
|
-
|
|
6944
|
+
lu(e, r, this.changes);
|
|
6945
6945
|
}
|
|
6946
6946
|
};
|
|
6947
6947
|
function dP(t, e, r) {
|
|
@@ -6997,7 +6997,7 @@ function Ed(t, e) {
|
|
|
6997
6997
|
function Rd(t, e) {
|
|
6998
6998
|
return e > t.bottom ? { top: t.top, left: t.left, right: t.right, bottom: e } : t;
|
|
6999
6999
|
}
|
|
7000
|
-
function
|
|
7000
|
+
function du(t, e, r) {
|
|
7001
7001
|
let n, i, s, o, a = !1, l, c, u, f;
|
|
7002
7002
|
for (let p = t.firstChild; p; p = p.nextSibling) {
|
|
7003
7003
|
let g = xs(p);
|
|
@@ -7006,7 +7006,7 @@ function hu(t, e, r) {
|
|
|
7006
7006
|
i && Il(i, v) && (v = Ed(Rd(v, i.bottom), i.top));
|
|
7007
7007
|
let O = mP(e, v), y = vP(r, v);
|
|
7008
7008
|
if (O == 0 && y == 0)
|
|
7009
|
-
return p.nodeType == 3 ? Ad(p, e, r) :
|
|
7009
|
+
return p.nodeType == 3 ? Ad(p, e, r) : du(p, e, r);
|
|
7010
7010
|
if (!n || o > y || o == y && s > O) {
|
|
7011
7011
|
n = p, i = v, s = O, o = y;
|
|
7012
7012
|
let b = y ? r < v.top ? -1 : 1 : O ? e < v.left ? -1 : 1 : 0;
|
|
@@ -7021,7 +7021,7 @@ function hu(t, e, r) {
|
|
|
7021
7021
|
if (n.nodeType == 3)
|
|
7022
7022
|
return Ad(n, h, r);
|
|
7023
7023
|
if (a && n.contentEditable != "false")
|
|
7024
|
-
return
|
|
7024
|
+
return du(n, h, r);
|
|
7025
7025
|
let d = Array.prototype.indexOf.call(t.childNodes, n) + (e >= (i.left + i.right) / 2 ? 1 : 0);
|
|
7026
7026
|
return { node: t, offset: d };
|
|
7027
7027
|
}
|
|
@@ -7080,7 +7080,7 @@ function Sv(t, e, r, n = -1) {
|
|
|
7080
7080
|
let b = Le.find(t.docView, d);
|
|
7081
7081
|
if (!b)
|
|
7082
7082
|
return h > l.top + l.height / 2 ? l.to : l.from;
|
|
7083
|
-
({ node: v, offset: O } =
|
|
7083
|
+
({ node: v, offset: O } = du(b.dom, u, f));
|
|
7084
7084
|
}
|
|
7085
7085
|
let y = t.docView.nearest(v);
|
|
7086
7086
|
if (!y)
|
|
@@ -7207,7 +7207,7 @@ function zo(t, e, r) {
|
|
|
7207
7207
|
}
|
|
7208
7208
|
}
|
|
7209
7209
|
function _l(t, e, r) {
|
|
7210
|
-
let n = zo(t.state.facet(
|
|
7210
|
+
let n = zo(t.state.facet(Rf).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1);
|
|
7211
7211
|
return n == r.from ? r : j.cursor(n, n < r.from ? 1 : -1);
|
|
7212
7212
|
}
|
|
7213
7213
|
class kP {
|
|
@@ -7318,7 +7318,7 @@ function QP(t, e) {
|
|
|
7318
7318
|
}
|
|
7319
7319
|
class CP {
|
|
7320
7320
|
constructor(e, r, n, i) {
|
|
7321
|
-
this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Lw(e.contentDOM), this.atoms = e.state.facet(
|
|
7321
|
+
this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Lw(e.contentDOM), this.atoms = e.state.facet(Rf).map((o) => o(e));
|
|
7322
7322
|
let s = e.contentDOM.ownerDocument;
|
|
7323
7323
|
s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(ye.allowMultipleSelections) && EP(e, r), this.dragging = AP(e, r) && Tv(r) == 1 ? null : !1;
|
|
7324
7324
|
}
|
|
@@ -7420,7 +7420,7 @@ function jP(t) {
|
|
|
7420
7420
|
}
|
|
7421
7421
|
function kv(t, e) {
|
|
7422
7422
|
let { state: r } = t, n, i = 1, s = r.toText(e), o = s.lines == r.selection.ranges.length;
|
|
7423
|
-
if (
|
|
7423
|
+
if (pu != null && r.selection.ranges.every((l) => l.empty) && pu == s.toString()) {
|
|
7424
7424
|
let l = -1;
|
|
7425
7425
|
n = r.changeByRange((c) => {
|
|
7426
7426
|
let u = r.doc.lineAt(c.from);
|
|
@@ -7611,12 +7611,12 @@ function XP(t) {
|
|
|
7611
7611
|
}
|
|
7612
7612
|
return { text: e.join(t.lineBreak), ranges: r, linewise: n };
|
|
7613
7613
|
}
|
|
7614
|
-
let
|
|
7614
|
+
let pu = null;
|
|
7615
7615
|
Kt.copy = Kt.cut = (t, e) => {
|
|
7616
7616
|
let { text: r, ranges: n, linewise: i } = XP(t.state);
|
|
7617
7617
|
if (!r && !i)
|
|
7618
7618
|
return !1;
|
|
7619
|
-
|
|
7619
|
+
pu = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({
|
|
7620
7620
|
changes: n,
|
|
7621
7621
|
scrollIntoView: !0,
|
|
7622
7622
|
userEvent: "delete.cut"
|
|
@@ -7808,7 +7808,7 @@ class pt {
|
|
|
7808
7808
|
for (f += d.to - c, c = d.to; a > 0 && h.from <= i[a - 1].toA; )
|
|
7809
7809
|
l = i[a - 1].fromA, u = i[a - 1].fromB, a--, l < h.from && (h = s.lineAt(l, Qe.ByPosNoHeight, n, 0, 0));
|
|
7810
7810
|
u += h.from - l, l = h.from;
|
|
7811
|
-
let p =
|
|
7811
|
+
let p = Af.build(n.setDoc(o), e, u, f);
|
|
7812
7812
|
s = s.replace(l, c, p);
|
|
7813
7813
|
}
|
|
7814
7814
|
return s.updateHeight(n, 0);
|
|
@@ -8043,7 +8043,7 @@ function qd(t, e) {
|
|
|
8043
8043
|
t[e] == null && (r = t[e - 1]) instanceof Ke && (n = t[e + 1]) instanceof Ke && t.splice(e - 1, 3, new Ke(r.length + 1 + n.length));
|
|
8044
8044
|
}
|
|
8045
8045
|
const qP = 5;
|
|
8046
|
-
class
|
|
8046
|
+
class Af {
|
|
8047
8047
|
constructor(e, r) {
|
|
8048
8048
|
this.pos = e, this.oracle = r, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e;
|
|
8049
8049
|
}
|
|
@@ -8108,7 +8108,7 @@ class Rf {
|
|
|
8108
8108
|
// starts or ends in a line break, or has multiple line breaks next
|
|
8109
8109
|
// to each other.
|
|
8110
8110
|
static build(e, r, n, i) {
|
|
8111
|
-
let s = new
|
|
8111
|
+
let s = new Af(n, e);
|
|
8112
8112
|
return be.spans(r, n, i, s, 0), s.finish(n);
|
|
8113
8113
|
}
|
|
8114
8114
|
}
|
|
@@ -8123,7 +8123,7 @@ class zP {
|
|
|
8123
8123
|
compareRange() {
|
|
8124
8124
|
}
|
|
8125
8125
|
comparePoint(e, r, n, i) {
|
|
8126
|
-
(e < r || n && n.heightRelevant || i && i.heightRelevant) &&
|
|
8126
|
+
(e < r || n && n.heightRelevant || i && i.heightRelevant) && lu(e, r, this.changes, 5);
|
|
8127
8127
|
}
|
|
8128
8128
|
}
|
|
8129
8129
|
function UP(t, e) {
|
|
@@ -8194,7 +8194,7 @@ class GP extends $i {
|
|
|
8194
8194
|
class Bd {
|
|
8195
8195
|
constructor(e) {
|
|
8196
8196
|
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = zd, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = qe.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
8197
|
-
let r = e.facet(
|
|
8197
|
+
let r = e.facet(Ef).some((n) => typeof n != "function" && n.class == "cm-lineWrapping");
|
|
8198
8198
|
this.heightOracle = new WP(r), this.stateDeco = e.facet(ws).filter((n) => typeof n != "function"), this.heightMap = pt.empty().applyChanges(this.stateDeco, Oe.empty, this.heightOracle.setDoc(e.doc), [new It(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = de.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges();
|
|
8199
8199
|
}
|
|
8200
8200
|
updateForViewport() {
|
|
@@ -8495,8 +8495,8 @@ function Hi(t, e) {
|
|
|
8495
8495
|
let r = e.toDOM(t.top), n = e.toDOM(t.bottom);
|
|
8496
8496
|
return new gr(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => Hi(i, e)) : t._content);
|
|
8497
8497
|
}
|
|
8498
|
-
const ho = /* @__PURE__ */ ee.define({ combine: (t) => t.join(" ") }),
|
|
8499
|
-
function
|
|
8498
|
+
const ho = /* @__PURE__ */ ee.define({ combine: (t) => t.join(" ") }), gu = /* @__PURE__ */ ee.define({ combine: (t) => t.indexOf(!0) > -1 }), Ou = /* @__PURE__ */ cn.newName(), Av = /* @__PURE__ */ cn.newName(), Dv = /* @__PURE__ */ cn.newName(), jv = { "&light": "." + Av, "&dark": "." + Dv };
|
|
8499
|
+
function mu(t, e, r) {
|
|
8500
8500
|
return new cn(e, {
|
|
8501
8501
|
finish(n) {
|
|
8502
8502
|
return /&/.test(n) ? n.replace(/&\w*/, (i) => {
|
|
@@ -8509,7 +8509,7 @@ function Ou(t, e, r) {
|
|
|
8509
8509
|
}
|
|
8510
8510
|
});
|
|
8511
8511
|
}
|
|
8512
|
-
const ek = /* @__PURE__ */
|
|
8512
|
+
const ek = /* @__PURE__ */ mu("." + Ou, {
|
|
8513
8513
|
"&": {
|
|
8514
8514
|
position: "relative !important",
|
|
8515
8515
|
boxSizing: "border-box",
|
|
@@ -8843,7 +8843,7 @@ class nk {
|
|
|
8843
8843
|
let a = s || o ? [] : ok(e), l = new tk(a, e.state);
|
|
8844
8844
|
l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = ak(a, this.bounds.from);
|
|
8845
8845
|
} else {
|
|
8846
|
-
let a = e.observer.selectionRange, l = s && s.node == a.focusNode && s.offset == a.focusOffset || !
|
|
8846
|
+
let a = e.observer.selectionRange, l = s && s.node == a.focusNode && s.offset == a.focusOffset || !ru(e.contentDOM, a.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(a.focusNode, a.focusOffset), c = o && o.node == a.anchorNode && o.offset == a.anchorOffset || !ru(e.contentDOM, a.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(a.anchorNode, a.anchorOffset), u = e.viewport;
|
|
8847
8847
|
if ((H.ios || H.chrome) && e.state.selection.main.empty && l != c && (u.from > 0 || u.to < e.state.doc.length)) {
|
|
8848
8848
|
let f = Math.min(l, c), h = Math.max(l, c), d = u.from - f, p = u.to - h;
|
|
8849
8849
|
(d == 0 || d == 1 || f == 0) && (p == 0 || p == -1 || h == e.state.doc.length) && (l = 0, c = e.state.doc.length);
|
|
@@ -9334,7 +9334,7 @@ class te {
|
|
|
9334
9334
|
this.updateState = 0;
|
|
9335
9335
|
}
|
|
9336
9336
|
if (i.startState.facet(ho) != i.state.facet(ho) && (this.viewState.mustMeasureContent = !0), (r || n || f || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), r && this.docViewUpdate(), !i.empty)
|
|
9337
|
-
for (let h of this.state.facet(
|
|
9337
|
+
for (let h of this.state.facet(hu))
|
|
9338
9338
|
try {
|
|
9339
9339
|
h(i);
|
|
9340
9340
|
} catch (d) {
|
|
@@ -9473,14 +9473,14 @@ class te {
|
|
|
9473
9473
|
this.updateState = 0, this.measureScheduled = -1;
|
|
9474
9474
|
}
|
|
9475
9475
|
if (r && !r.empty)
|
|
9476
|
-
for (let a of this.state.facet(
|
|
9476
|
+
for (let a of this.state.facet(hu))
|
|
9477
9477
|
a(r);
|
|
9478
9478
|
}
|
|
9479
9479
|
/**
|
|
9480
9480
|
Get the CSS classes for the currently active editor themes.
|
|
9481
9481
|
*/
|
|
9482
9482
|
get themeClasses() {
|
|
9483
|
-
return
|
|
9483
|
+
return Ou + " " + (this.state.facet(gu) ? Dv : Av) + " " + this.state.facet(ho);
|
|
9484
9484
|
}
|
|
9485
9485
|
updateAttrs() {
|
|
9486
9486
|
let e = Kd(this, gv, {
|
|
@@ -9496,9 +9496,9 @@ class te {
|
|
|
9496
9496
|
role: "textbox",
|
|
9497
9497
|
"aria-multiline": "true"
|
|
9498
9498
|
};
|
|
9499
|
-
this.state.readOnly && (r["aria-readonly"] = "true"), Kd(this,
|
|
9499
|
+
this.state.readOnly && (r["aria-readonly"] = "true"), Kd(this, Ef, r);
|
|
9500
9500
|
let n = this.observer.ignore(() => {
|
|
9501
|
-
let i =
|
|
9501
|
+
let i = au(this.contentDOM, this.contentAttrs, r), s = au(this.dom, this.editorAttrs, e);
|
|
9502
9502
|
return i || s;
|
|
9503
9503
|
});
|
|
9504
9504
|
return this.editorAttrs = e, this.contentAttrs = r, n;
|
|
@@ -9726,7 +9726,7 @@ class te {
|
|
|
9726
9726
|
if (!n || n.left == n.right)
|
|
9727
9727
|
return n;
|
|
9728
9728
|
let i = this.state.doc.lineAt(e), s = this.bidiSpans(i), o = s[rn.find(s, e - i.from, -1, r)];
|
|
9729
|
-
return
|
|
9729
|
+
return $f(n, o.dir == qe.LTR == r > 0);
|
|
9730
9730
|
}
|
|
9731
9731
|
/**
|
|
9732
9732
|
Return the rectangle around a given character. If `pos` does not
|
|
@@ -9903,8 +9903,8 @@ class te {
|
|
|
9903
9903
|
`&light` when a light theme is active).
|
|
9904
9904
|
*/
|
|
9905
9905
|
static theme(e, r) {
|
|
9906
|
-
let n = cn.newName(), i = [ho.of(n), Gi.of(
|
|
9907
|
-
return r && r.dark && i.push(
|
|
9906
|
+
let n = cn.newName(), i = [ho.of(n), Gi.of(mu(`.${n}`, e))];
|
|
9907
|
+
return r && r.dark && i.push(gu.of(!0)), i;
|
|
9908
9908
|
}
|
|
9909
9909
|
/**
|
|
9910
9910
|
Create an extension that adds styles to the base theme. Like
|
|
@@ -9914,7 +9914,7 @@ class te {
|
|
|
9914
9914
|
target editors with a dark or light theme.
|
|
9915
9915
|
*/
|
|
9916
9916
|
static baseTheme(e) {
|
|
9917
|
-
return Ba.lowest(Gi.of(
|
|
9917
|
+
return Ba.lowest(Gi.of(mu("." + Ou, e, jv)));
|
|
9918
9918
|
}
|
|
9919
9919
|
/**
|
|
9920
9920
|
Retrieve an editor view instance from the view's DOM
|
|
@@ -9932,19 +9932,19 @@ te.scrollHandler = pv;
|
|
|
9932
9932
|
te.focusChangeEffect = hv;
|
|
9933
9933
|
te.perLineTextDirection = dv;
|
|
9934
9934
|
te.exceptionSink = uv;
|
|
9935
|
-
te.updateListener =
|
|
9935
|
+
te.updateListener = hu;
|
|
9936
9936
|
te.editable = Ga;
|
|
9937
9937
|
te.mouseSelectionStyle = cv;
|
|
9938
9938
|
te.dragMovesSelection = lv;
|
|
9939
9939
|
te.clickAddsSelectionRange = av;
|
|
9940
9940
|
te.decorations = ws;
|
|
9941
9941
|
te.outerDecorations = Ov;
|
|
9942
|
-
te.atomicRanges =
|
|
9942
|
+
te.atomicRanges = Rf;
|
|
9943
9943
|
te.bidiIsolatedRanges = mv;
|
|
9944
9944
|
te.scrollMargins = vv;
|
|
9945
|
-
te.darkTheme =
|
|
9945
|
+
te.darkTheme = gu;
|
|
9946
9946
|
te.cspNonce = /* @__PURE__ */ ee.define({ combine: (t) => t.length ? t[0] : "" });
|
|
9947
|
-
te.contentAttributes =
|
|
9947
|
+
te.contentAttributes = Ef;
|
|
9948
9948
|
te.editorAttributes = gv;
|
|
9949
9949
|
te.lineWrapping = /* @__PURE__ */ te.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
9950
9950
|
te.announce = /* @__PURE__ */ Ce.define();
|
|
@@ -9967,7 +9967,7 @@ class ga {
|
|
|
9967
9967
|
function Kd(t, e, r) {
|
|
9968
9968
|
for (let n = t.state.facet(e), i = n.length - 1; i >= 0; i--) {
|
|
9969
9969
|
let s = n[i], o = typeof s == "function" ? s(t) : s;
|
|
9970
|
-
o &&
|
|
9970
|
+
o && ou(o, r);
|
|
9971
9971
|
}
|
|
9972
9972
|
return r;
|
|
9973
9973
|
}
|
|
@@ -10166,8 +10166,8 @@ class Sk {
|
|
|
10166
10166
|
return r;
|
|
10167
10167
|
}
|
|
10168
10168
|
}
|
|
10169
|
-
const
|
|
10170
|
-
--\u2028\u2029\uFEFF-]`,
|
|
10169
|
+
const vu = /x/.unicode != null ? "gu" : "g", xk = /* @__PURE__ */ new RegExp(`[\0-\b
|
|
10170
|
+
--\u2028\u2029\uFEFF-]`, vu), wk = {
|
|
10171
10171
|
0: "null",
|
|
10172
10172
|
7: "bell",
|
|
10173
10173
|
8: "backspace",
|
|
@@ -10206,7 +10206,7 @@ const Fo = /* @__PURE__ */ ee.define({
|
|
|
10206
10206
|
specialChars: xk,
|
|
10207
10207
|
addSpecialChars: null
|
|
10208
10208
|
});
|
|
10209
|
-
return (e.replaceTabs = !Pk()) && (e.specialChars = new RegExp(" |" + e.specialChars.source,
|
|
10209
|
+
return (e.replaceTabs = !Pk()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, vu)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, vu)), e;
|
|
10210
10210
|
}
|
|
10211
10211
|
});
|
|
10212
10212
|
function kk(t = {}) {
|
|
@@ -10325,28 +10325,28 @@ Mn.prototype.toDOM = void 0;
|
|
|
10325
10325
|
Mn.prototype.mapMode = st.TrackBefore;
|
|
10326
10326
|
Mn.prototype.startSide = Mn.prototype.endSide = -1;
|
|
10327
10327
|
Mn.prototype.point = !0;
|
|
10328
|
-
const Wl = /* @__PURE__ */ ee.define(), Go = /* @__PURE__ */ ee.define(),
|
|
10328
|
+
const Wl = /* @__PURE__ */ ee.define(), Go = /* @__PURE__ */ ee.define(), yu = /* @__PURE__ */ ee.define({
|
|
10329
10329
|
combine: (t) => t.some((e) => e)
|
|
10330
10330
|
});
|
|
10331
10331
|
function jk(t) {
|
|
10332
10332
|
let e = [
|
|
10333
10333
|
Mk
|
|
10334
10334
|
];
|
|
10335
|
-
return t && t.fixed === !1 && e.push(
|
|
10335
|
+
return t && t.fixed === !1 && e.push(yu.of(!0)), e;
|
|
10336
10336
|
}
|
|
10337
10337
|
const Mk = /* @__PURE__ */ _t.fromClass(class {
|
|
10338
10338
|
constructor(t) {
|
|
10339
10339
|
this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Go).map((e) => new ip(t, e));
|
|
10340
10340
|
for (let e of this.gutters)
|
|
10341
10341
|
this.dom.appendChild(e.dom);
|
|
10342
|
-
this.fixed = !t.state.facet(
|
|
10342
|
+
this.fixed = !t.state.facet(yu), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM);
|
|
10343
10343
|
}
|
|
10344
10344
|
update(t) {
|
|
10345
10345
|
if (this.updateGutters(t)) {
|
|
10346
10346
|
let e = this.prevViewport, r = t.view.viewport, n = Math.min(e.to, r.to) - Math.max(e.from, r.from);
|
|
10347
10347
|
this.syncGutters(n < (r.to - r.from) * 0.8);
|
|
10348
10348
|
}
|
|
10349
|
-
t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px"), this.view.state.facet(
|
|
10349
|
+
t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px"), this.view.state.facet(yu) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport;
|
|
10350
10350
|
}
|
|
10351
10351
|
syncGutters(t) {
|
|
10352
10352
|
let e = this.dom.nextSibling;
|
|
@@ -10357,7 +10357,7 @@ const Mk = /* @__PURE__ */ _t.fromClass(class {
|
|
|
10357
10357
|
let o = !0;
|
|
10358
10358
|
for (let a of s.type)
|
|
10359
10359
|
if (a.type == Ft.Text && o) {
|
|
10360
|
-
|
|
10360
|
+
bu(r, n, a.from);
|
|
10361
10361
|
for (let l of i)
|
|
10362
10362
|
l.line(this.view, a, n);
|
|
10363
10363
|
o = !1;
|
|
@@ -10365,7 +10365,7 @@ const Mk = /* @__PURE__ */ _t.fromClass(class {
|
|
|
10365
10365
|
for (let l of i)
|
|
10366
10366
|
l.widget(this.view, a);
|
|
10367
10367
|
} else if (s.type == Ft.Text) {
|
|
10368
|
-
|
|
10368
|
+
bu(r, n, s.from);
|
|
10369
10369
|
for (let o of i)
|
|
10370
10370
|
o.line(this.view, s, n);
|
|
10371
10371
|
} else if (s.widget)
|
|
@@ -10409,7 +10409,7 @@ const Mk = /* @__PURE__ */ _t.fromClass(class {
|
|
|
10409
10409
|
function np(t) {
|
|
10410
10410
|
return Array.isArray(t) ? t : [t];
|
|
10411
10411
|
}
|
|
10412
|
-
function
|
|
10412
|
+
function bu(t, e, r) {
|
|
10413
10413
|
for (; t.value && t.from <= r; )
|
|
10414
10414
|
t.from == r && e.push(t.value), t.next();
|
|
10415
10415
|
}
|
|
@@ -10428,7 +10428,7 @@ class Zk {
|
|
|
10428
10428
|
}
|
|
10429
10429
|
line(e, r, n) {
|
|
10430
10430
|
let i = [];
|
|
10431
|
-
|
|
10431
|
+
bu(this.cursor, i, r.from), n.length && (i = i.concat(n));
|
|
10432
10432
|
let s = this.gutter.config.lineMarker(e, r, i);
|
|
10433
10433
|
s && i.unshift(s);
|
|
10434
10434
|
let o = this.gutter;
|
|
@@ -10739,7 +10739,7 @@ Ot.none = new Ot(
|
|
|
10739
10739
|
8
|
|
10740
10740
|
/* NodeFlag.Anonymous */
|
|
10741
10741
|
);
|
|
10742
|
-
class
|
|
10742
|
+
class Df {
|
|
10743
10743
|
/**
|
|
10744
10744
|
Create a set with the given types. The `id` property of each
|
|
10745
10745
|
type should correspond to its position within the array.
|
|
@@ -10765,7 +10765,7 @@ class Af {
|
|
|
10765
10765
|
}
|
|
10766
10766
|
r.push(i ? new Ot(n.name, i, n.id, n.flags) : n);
|
|
10767
10767
|
}
|
|
10768
|
-
return new
|
|
10768
|
+
return new Df(r);
|
|
10769
10769
|
}
|
|
10770
10770
|
}
|
|
10771
10771
|
const go = /* @__PURE__ */ new WeakMap(), op = /* @__PURE__ */ new WeakMap();
|
|
@@ -10773,7 +10773,7 @@ var Te;
|
|
|
10773
10773
|
(function(t) {
|
|
10774
10774
|
t[t.ExcludeBuffers = 1] = "ExcludeBuffers", t[t.IncludeAnonymous = 2] = "IncludeAnonymous", t[t.IgnoreMounts = 4] = "IgnoreMounts", t[t.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
10775
10775
|
})(Te || (Te = {}));
|
|
10776
|
-
let We = class
|
|
10776
|
+
let We = class Su {
|
|
10777
10777
|
/**
|
|
10778
10778
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
10779
10779
|
*/
|
|
@@ -10906,7 +10906,7 @@ let We = class bu {
|
|
|
10906
10906
|
[`NodeType.none`](#common.NodeType^none).
|
|
10907
10907
|
*/
|
|
10908
10908
|
balance(e = {}) {
|
|
10909
|
-
return this.children.length <= 8 ? this :
|
|
10909
|
+
return this.children.length <= 8 ? this : Zf(Ot.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new Su(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new Su(Ot.none, r, n, i)));
|
|
10910
10910
|
}
|
|
10911
10911
|
/**
|
|
10912
10912
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -10917,7 +10917,7 @@ let We = class bu {
|
|
|
10917
10917
|
}
|
|
10918
10918
|
};
|
|
10919
10919
|
We.empty = new We(Ot.none, [], [], 0);
|
|
10920
|
-
class
|
|
10920
|
+
class jf {
|
|
10921
10921
|
constructor(e, r) {
|
|
10922
10922
|
this.buffer = e, this.index = r;
|
|
10923
10923
|
}
|
|
@@ -10940,7 +10940,7 @@ class Df {
|
|
|
10940
10940
|
this.index -= 4;
|
|
10941
10941
|
}
|
|
10942
10942
|
fork() {
|
|
10943
|
-
return new
|
|
10943
|
+
return new jf(this.buffer, this.index);
|
|
10944
10944
|
}
|
|
10945
10945
|
}
|
|
10946
10946
|
class hn {
|
|
@@ -11051,7 +11051,7 @@ class Nv {
|
|
|
11051
11051
|
return ks(this, e, r, !0);
|
|
11052
11052
|
}
|
|
11053
11053
|
matchContext(e) {
|
|
11054
|
-
return
|
|
11054
|
+
return xu(this, e);
|
|
11055
11055
|
}
|
|
11056
11056
|
enterUnfinishedNodesBefore(e) {
|
|
11057
11057
|
let r = this.childBefore(e), n = this;
|
|
@@ -11094,7 +11094,7 @@ class at extends Nv {
|
|
|
11094
11094
|
let h = u.findChild(0, u.buffer.length, r, n - f, i);
|
|
11095
11095
|
if (h > -1)
|
|
11096
11096
|
return new mr(new Lk(o, u, e, f), null, h);
|
|
11097
|
-
} else if (s & Te.IncludeAnonymous || !u.type.isAnonymous ||
|
|
11097
|
+
} else if (s & Te.IncludeAnonymous || !u.type.isAnonymous || Mf(u)) {
|
|
11098
11098
|
let h;
|
|
11099
11099
|
if (!(s & Te.IgnoreMounts) && (h = Ps.get(u)) && !h.overlay)
|
|
11100
11100
|
return new at(h.tree, f, e, o);
|
|
@@ -11209,7 +11209,7 @@ function ap(t, e, r, n) {
|
|
|
11209
11209
|
return n == null ? s : [];
|
|
11210
11210
|
}
|
|
11211
11211
|
}
|
|
11212
|
-
function
|
|
11212
|
+
function xu(t, e, r = e.length - 1) {
|
|
11213
11213
|
for (let n = t.parent; r >= 0; n = n.parent) {
|
|
11214
11214
|
if (!n)
|
|
11215
11215
|
return !1;
|
|
@@ -11529,7 +11529,7 @@ class ma {
|
|
|
11529
11529
|
if (r > -1)
|
|
11530
11530
|
for (let s = r + e, o = e < 0 ? -1 : n._tree.children.length; s != o; s += e) {
|
|
11531
11531
|
let a = n._tree.children[s];
|
|
11532
|
-
if (this.mode & Te.IncludeAnonymous || a instanceof hn || !a.type.isAnonymous ||
|
|
11532
|
+
if (this.mode & Te.IncludeAnonymous || a instanceof hn || !a.type.isAnonymous || Mf(a))
|
|
11533
11533
|
return !1;
|
|
11534
11534
|
}
|
|
11535
11535
|
return !0;
|
|
@@ -11642,11 +11642,11 @@ class ma {
|
|
|
11642
11642
|
*/
|
|
11643
11643
|
matchContext(e) {
|
|
11644
11644
|
if (!this.buffer)
|
|
11645
|
-
return
|
|
11645
|
+
return xu(this.node, e);
|
|
11646
11646
|
let { buffer: r } = this.buffer, { types: n } = r.set;
|
|
11647
11647
|
for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) {
|
|
11648
11648
|
if (s < 0)
|
|
11649
|
-
return
|
|
11649
|
+
return xu(this.node, e, i);
|
|
11650
11650
|
let o = n[r.buffer[this.stack[s]]];
|
|
11651
11651
|
if (!o.isAnonymous) {
|
|
11652
11652
|
if (e[i] && e[i] != o.name)
|
|
@@ -11657,12 +11657,12 @@ class ma {
|
|
|
11657
11657
|
return !0;
|
|
11658
11658
|
}
|
|
11659
11659
|
}
|
|
11660
|
-
function
|
|
11661
|
-
return t.children.some((e) => e instanceof hn || !e.type.isAnonymous ||
|
|
11660
|
+
function Mf(t) {
|
|
11661
|
+
return t.children.some((e) => e instanceof hn || !e.type.isAnonymous || Mf(e));
|
|
11662
11662
|
}
|
|
11663
11663
|
function Bk(t) {
|
|
11664
11664
|
var e;
|
|
11665
|
-
let { buffer: r, nodeSet: n, maxBufferLength: i = Iv, reused: s = [], minRepeatType: o = n.types.length } = t, a = Array.isArray(r) ? new
|
|
11665
|
+
let { buffer: r, nodeSet: n, maxBufferLength: i = Iv, reused: s = [], minRepeatType: o = n.types.length } = t, a = Array.isArray(r) ? new jf(r, r.length) : r, l = n.types, c = 0, u = 0;
|
|
11666
11666
|
function f(x, S, P, $, C, Q) {
|
|
11667
11667
|
let { id: D, start: I, end: L, size: _ } = a, M = u;
|
|
11668
11668
|
for (; _ < 0; )
|
|
@@ -11692,7 +11692,7 @@ function Bk(t) {
|
|
|
11692
11692
|
X >= 0 && a.id == X && a.size >= 0 ? (a.end <= W - i && (p(R, V, I, A, a.end, W, X, M), A = R.length, W = a.end), a.next()) : Q > 2500 ? h(I, B, R, V) : f(I, B, R, V, X, Q + 1);
|
|
11693
11693
|
if (X >= 0 && A > 0 && A < R.length && p(R, V, I, A, I, W, X, M), R.reverse(), V.reverse(), X > -1 && A > 0) {
|
|
11694
11694
|
let se = d(F);
|
|
11695
|
-
J =
|
|
11695
|
+
J = Zf(F, R, V, 0, R.length, 0, L - I, se, se);
|
|
11696
11696
|
} else
|
|
11697
11697
|
J = g(F, R, V, L - I, M - L);
|
|
11698
11698
|
}
|
|
@@ -11810,7 +11810,7 @@ function Ho(t, e) {
|
|
|
11810
11810
|
}
|
|
11811
11811
|
return r;
|
|
11812
11812
|
}
|
|
11813
|
-
function
|
|
11813
|
+
function Zf(t, e, r, n, i, s, o, a, l) {
|
|
11814
11814
|
let c = 0;
|
|
11815
11815
|
for (let p = n; p < i; p++)
|
|
11816
11816
|
c += Ho(t, e[p]);
|
|
@@ -11836,7 +11836,7 @@ function Mf(t, e, r, n, i, s, o, a, l) {
|
|
|
11836
11836
|
f.push(p[b]);
|
|
11837
11837
|
} else {
|
|
11838
11838
|
let P = g[y - 1] + p[y - 1].length - x;
|
|
11839
|
-
f.push(
|
|
11839
|
+
f.push(Zf(t, p, g, b, y, x, P, null, l));
|
|
11840
11840
|
}
|
|
11841
11841
|
h.push(x + O - s);
|
|
11842
11842
|
}
|
|
@@ -12010,7 +12010,7 @@ class Fk {
|
|
|
12010
12010
|
this.parser = e, this.predicate = r, this.mounts = n, this.index = i, this.start = s, this.target = o, this.prev = a, this.depth = 0, this.ranges = [];
|
|
12011
12011
|
}
|
|
12012
12012
|
}
|
|
12013
|
-
const
|
|
12013
|
+
const wu = new ue({ perNode: !0 });
|
|
12014
12014
|
class Gk {
|
|
12015
12015
|
constructor(e, r, n, i, s) {
|
|
12016
12016
|
this.nest = r, this.input = n, this.fragments = i, this.ranges = s, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e;
|
|
@@ -12026,7 +12026,7 @@ class Gk {
|
|
|
12026
12026
|
}
|
|
12027
12027
|
if (this.innerDone == this.inner.length) {
|
|
12028
12028
|
let n = this.baseTree;
|
|
12029
|
-
return this.stoppedAt != null && (n = new We(n.type, n.children, n.positions, n.length, n.propValues.concat([[
|
|
12029
|
+
return this.stoppedAt != null && (n = new We(n.type, n.children, n.positions, n.length, n.propValues.concat([[wu, this.stoppedAt]]))), n;
|
|
12030
12030
|
}
|
|
12031
12031
|
let e = this.inner[this.innerDone], r = e.parse.advance();
|
|
12032
12032
|
if (r) {
|
|
@@ -12159,7 +12159,7 @@ let Jk = class {
|
|
|
12159
12159
|
var r;
|
|
12160
12160
|
if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) {
|
|
12161
12161
|
let n = this.curFrag = e[0];
|
|
12162
|
-
this.curTo = (r = n.tree.prop(
|
|
12162
|
+
this.curTo = (r = n.tree.prop(wu)) !== null && r !== void 0 ? r : n.to, this.inner = new hp(n.tree, -n.offset);
|
|
12163
12163
|
} else
|
|
12164
12164
|
this.curFrag = this.inner = null;
|
|
12165
12165
|
}
|
|
@@ -12174,7 +12174,7 @@ let Jk = class {
|
|
|
12174
12174
|
this.curFrag = this.inner = null;
|
|
12175
12175
|
else {
|
|
12176
12176
|
let r = this.curFrag = this.fragments[this.fragI];
|
|
12177
|
-
this.curTo = (e = r.tree.prop(
|
|
12177
|
+
this.curTo = (e = r.tree.prop(wu)) !== null && e !== void 0 ? e : r.to, this.inner = new hp(r.tree, -r.offset);
|
|
12178
12178
|
}
|
|
12179
12179
|
}
|
|
12180
12180
|
findMounts(e, r) {
|
|
@@ -12459,7 +12459,7 @@ function a$(t) {
|
|
|
12459
12459
|
e = e.next;
|
|
12460
12460
|
return e || null;
|
|
12461
12461
|
}
|
|
12462
|
-
const Y = hr.define, Oo = Y(), Gr = Y(), gp = Y(Gr), Op = Y(Gr), Hr = Y(), mo = Y(Hr), ql = Y(Hr), lr = Y(), On = Y(lr), sr = Y(), or = Y(),
|
|
12462
|
+
const Y = hr.define, Oo = Y(), Gr = Y(), gp = Y(Gr), Op = Y(Gr), Hr = Y(), mo = Y(Hr), ql = Y(Hr), lr = Y(), On = Y(lr), sr = Y(), or = Y(), Pu = Y(), Zi = Y(Pu), vo = Y(), T = {
|
|
12463
12463
|
/**
|
|
12464
12464
|
A comment.
|
|
12465
12465
|
*/
|
|
@@ -12654,12 +12654,12 @@ const Y = hr.define, Oo = Y(), Gr = Y(), gp = Y(Gr), Op = Y(Gr), Hr = Y(), mo =
|
|
|
12654
12654
|
/**
|
|
12655
12655
|
Program or markup punctuation.
|
|
12656
12656
|
*/
|
|
12657
|
-
punctuation:
|
|
12657
|
+
punctuation: Pu,
|
|
12658
12658
|
/**
|
|
12659
12659
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
12660
12660
|
things.
|
|
12661
12661
|
*/
|
|
12662
|
-
separator: Y(
|
|
12662
|
+
separator: Y(Pu),
|
|
12663
12663
|
/**
|
|
12664
12664
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
12665
12665
|
*/
|
|
@@ -12864,7 +12864,7 @@ function Bv(t) {
|
|
|
12864
12864
|
combine: t ? (e) => e.concat(t) : void 0
|
|
12865
12865
|
});
|
|
12866
12866
|
}
|
|
12867
|
-
const
|
|
12867
|
+
const If = /* @__PURE__ */ new ue();
|
|
12868
12868
|
class Ut {
|
|
12869
12869
|
/**
|
|
12870
12870
|
Construct a language object. If you need to invoke this
|
|
@@ -12882,7 +12882,7 @@ class Ut {
|
|
|
12882
12882
|
let l = mp(s, o, a), c = l.type.prop(ei);
|
|
12883
12883
|
if (!c)
|
|
12884
12884
|
return [];
|
|
12885
|
-
let u = s.facet(c), f = l.type.prop(
|
|
12885
|
+
let u = s.facet(c), f = l.type.prop(If);
|
|
12886
12886
|
if (f) {
|
|
12887
12887
|
let h = l.resolve(o - l.from, a);
|
|
12888
12888
|
for (let d of f)
|
|
@@ -13261,7 +13261,7 @@ const zl = typeof navigator < "u" && (!((Bl = navigator.scheduling) === null ||
|
|
|
13261
13261
|
})
|
|
13262
13262
|
]
|
|
13263
13263
|
});
|
|
13264
|
-
class
|
|
13264
|
+
class _f {
|
|
13265
13265
|
/**
|
|
13266
13266
|
Create a language support object.
|
|
13267
13267
|
*/
|
|
@@ -13384,7 +13384,7 @@ function Fv(t, e, r) {
|
|
|
13384
13384
|
for (let n = t; n; n = n.next) {
|
|
13385
13385
|
let i = d$(n.node);
|
|
13386
13386
|
if (i)
|
|
13387
|
-
return i(
|
|
13387
|
+
return i(Nf.create(e, r, n));
|
|
13388
13388
|
}
|
|
13389
13389
|
return 0;
|
|
13390
13390
|
}
|
|
@@ -13405,7 +13405,7 @@ function d$(t) {
|
|
|
13405
13405
|
function p$() {
|
|
13406
13406
|
return 0;
|
|
13407
13407
|
}
|
|
13408
|
-
class
|
|
13408
|
+
class Nf extends Ja {
|
|
13409
13409
|
constructor(e, r, n) {
|
|
13410
13410
|
super(e.state, e.options), this.base = e, this.pos = r, this.context = n;
|
|
13411
13411
|
}
|
|
@@ -13420,7 +13420,7 @@ class _f extends Ja {
|
|
|
13420
13420
|
@internal
|
|
13421
13421
|
*/
|
|
13422
13422
|
static create(e, r, n) {
|
|
13423
|
-
return new
|
|
13423
|
+
return new Nf(e, r, n);
|
|
13424
13424
|
}
|
|
13425
13425
|
/**
|
|
13426
13426
|
Get the text directly after `this.pos`, either the entire line
|
|
@@ -13497,7 +13497,7 @@ function Ko({ except: t, units: e = 1 } = {}) {
|
|
|
13497
13497
|
return r.baseIndent + (n ? 0 : e * r.unit);
|
|
13498
13498
|
};
|
|
13499
13499
|
}
|
|
13500
|
-
const
|
|
13500
|
+
const Xf = /* @__PURE__ */ new ue();
|
|
13501
13501
|
function Hv(t) {
|
|
13502
13502
|
let e = t.firstChild, r = t.lastChild;
|
|
13503
13503
|
return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null;
|
|
@@ -13537,18 +13537,18 @@ class tl {
|
|
|
13537
13537
|
return new tl(e, r || {});
|
|
13538
13538
|
}
|
|
13539
13539
|
}
|
|
13540
|
-
const
|
|
13540
|
+
const ku = /* @__PURE__ */ ee.define(), Kv = /* @__PURE__ */ ee.define({
|
|
13541
13541
|
combine(t) {
|
|
13542
13542
|
return t.length ? [t[0]] : null;
|
|
13543
13543
|
}
|
|
13544
13544
|
});
|
|
13545
13545
|
function Ul(t) {
|
|
13546
|
-
let e = t.facet(
|
|
13546
|
+
let e = t.facet(ku);
|
|
13547
13547
|
return e.length ? e : t.facet(Kv);
|
|
13548
13548
|
}
|
|
13549
13549
|
function y$(t, e) {
|
|
13550
13550
|
let r = [S$], n;
|
|
13551
|
-
return t instanceof tl && (t.module && r.push(te.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(Kv.of(t)) : n ? r.push(
|
|
13551
|
+
return t instanceof tl && (t.module && r.push(te.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(Kv.of(t)) : n ? r.push(ku.computeN([te.darkTheme], (i) => i.facet(te.darkTheme) == (n == "dark") ? [t] : [])) : r.push(ku.of(t)), r;
|
|
13552
13552
|
}
|
|
13553
13553
|
class b$ {
|
|
13554
13554
|
constructor(e) {
|
|
@@ -13613,7 +13613,7 @@ function Q$(t = {}) {
|
|
|
13613
13613
|
return [t0.of(t), T$];
|
|
13614
13614
|
}
|
|
13615
13615
|
const r0 = /* @__PURE__ */ new ue();
|
|
13616
|
-
function
|
|
13616
|
+
function $u(t, e, r) {
|
|
13617
13617
|
let n = t.prop(e < 0 ? ue.openedBy : ue.closedBy);
|
|
13618
13618
|
if (n)
|
|
13619
13619
|
return n;
|
|
@@ -13624,16 +13624,16 @@ function ku(t, e, r) {
|
|
|
13624
13624
|
}
|
|
13625
13625
|
return null;
|
|
13626
13626
|
}
|
|
13627
|
-
function
|
|
13627
|
+
function Tu(t) {
|
|
13628
13628
|
let e = t.type.prop(r0);
|
|
13629
13629
|
return e ? e(t.node) : t;
|
|
13630
13630
|
}
|
|
13631
13631
|
function vr(t, e, r, n = {}) {
|
|
13632
13632
|
let i = n.maxScanDistance || Jv, s = n.brackets || e0, o = Ge(t), a = o.resolveInner(e, r);
|
|
13633
13633
|
for (let l = a; l; l = l.parent) {
|
|
13634
|
-
let c =
|
|
13634
|
+
let c = $u(l.type, r, s);
|
|
13635
13635
|
if (c && l.from < l.to) {
|
|
13636
|
-
let u =
|
|
13636
|
+
let u = Tu(l);
|
|
13637
13637
|
if (u && (r > 0 ? e >= u.from && e < u.to : e > u.from && e <= u.to))
|
|
13638
13638
|
return C$(t, e, r, l, u, c, s);
|
|
13639
13639
|
}
|
|
@@ -13646,13 +13646,13 @@ function C$(t, e, r, n, i, s, o) {
|
|
|
13646
13646
|
do
|
|
13647
13647
|
if (r < 0 ? u.to <= n.from : u.from >= n.to) {
|
|
13648
13648
|
if (c == 0 && s.indexOf(u.type.name) > -1 && u.from < u.to) {
|
|
13649
|
-
let f =
|
|
13649
|
+
let f = Tu(u);
|
|
13650
13650
|
return { start: l, end: f ? { from: f.from, to: f.to } : void 0, matched: !0 };
|
|
13651
|
-
} else if (
|
|
13651
|
+
} else if ($u(u.type, r, o))
|
|
13652
13652
|
c++;
|
|
13653
|
-
else if (
|
|
13653
|
+
else if ($u(u.type, -r, o)) {
|
|
13654
13654
|
if (c == 0) {
|
|
13655
|
-
let f =
|
|
13655
|
+
let f = Tu(u);
|
|
13656
13656
|
return {
|
|
13657
13657
|
start: l,
|
|
13658
13658
|
end: f && f.from < f.to ? { from: f.from, to: f.to } : void 0,
|
|
@@ -13892,16 +13892,16 @@ class N$ {
|
|
|
13892
13892
|
this.field = e, this.line = r, this.from = n, this.to = i;
|
|
13893
13893
|
}
|
|
13894
13894
|
}
|
|
13895
|
-
class
|
|
13895
|
+
class Vf {
|
|
13896
13896
|
constructor(e, r, n) {
|
|
13897
13897
|
this.field = e, this.from = r, this.to = n;
|
|
13898
13898
|
}
|
|
13899
13899
|
map(e) {
|
|
13900
13900
|
let r = e.mapPos(this.from, -1, st.TrackDel), n = e.mapPos(this.to, 1, st.TrackDel);
|
|
13901
|
-
return r == null || n == null ? null : new
|
|
13901
|
+
return r == null || n == null ? null : new Vf(this.field, r, n);
|
|
13902
13902
|
}
|
|
13903
13903
|
}
|
|
13904
|
-
class
|
|
13904
|
+
class Wf {
|
|
13905
13905
|
constructor(e, r) {
|
|
13906
13906
|
this.lines = e, this.fieldPositions = r;
|
|
13907
13907
|
}
|
|
@@ -13916,7 +13916,7 @@ class Vf {
|
|
|
13916
13916
|
}
|
|
13917
13917
|
n.push(l), r += l.length + 1;
|
|
13918
13918
|
}
|
|
13919
|
-
let a = this.fieldPositions.map((l) => new
|
|
13919
|
+
let a = this.fieldPositions.map((l) => new Vf(l.field, i[l.line] + l.from, i[l.line] + l.to));
|
|
13920
13920
|
return { text: n, ranges: a };
|
|
13921
13921
|
}
|
|
13922
13922
|
static parse(e) {
|
|
@@ -13943,7 +13943,7 @@ class Vf {
|
|
|
13943
13943
|
}
|
|
13944
13944
|
n.push(o);
|
|
13945
13945
|
}
|
|
13946
|
-
return new
|
|
13946
|
+
return new Wf(n, i);
|
|
13947
13947
|
}
|
|
13948
13948
|
}
|
|
13949
13949
|
let X$ = /* @__PURE__ */ de.widget({ widget: /* @__PURE__ */ new class extends $i {
|
|
@@ -13992,18 +13992,18 @@ const Ys = /* @__PURE__ */ Ce.define({
|
|
|
13992
13992
|
},
|
|
13993
13993
|
provide: (t) => te.decorations.from(t, (e) => e ? e.deco : de.none)
|
|
13994
13994
|
});
|
|
13995
|
-
function
|
|
13995
|
+
function Lf(t, e) {
|
|
13996
13996
|
return j.create(t.filter((r) => r.field == e).map((r) => j.range(r.from, r.to)));
|
|
13997
13997
|
}
|
|
13998
13998
|
function L$(t) {
|
|
13999
|
-
let e =
|
|
13999
|
+
let e = Wf.parse(t);
|
|
14000
14000
|
return (r, n, i, s) => {
|
|
14001
14001
|
let { text: o, ranges: a } = e.instantiate(r.state, i), l = {
|
|
14002
14002
|
changes: { from: i, to: s, insert: Oe.of(o) },
|
|
14003
14003
|
scrollIntoView: !0,
|
|
14004
14004
|
annotations: n ? [I$.of(n), Ve.userEvent.of("input.complete")] : void 0
|
|
14005
14005
|
};
|
|
14006
|
-
if (a.length && (l.selection =
|
|
14006
|
+
if (a.length && (l.selection = Lf(a, 0)), a.some((c) => c.field > 0)) {
|
|
14007
14007
|
let c = new Ti(a, 0), u = l.effects = [Ys.of(c)];
|
|
14008
14008
|
r.state.field($s, !1) === void 0 && u.push(Ce.appendConfig.of([$s, U$, F$, _$]));
|
|
14009
14009
|
}
|
|
@@ -14017,7 +14017,7 @@ function n0(t) {
|
|
|
14017
14017
|
return !1;
|
|
14018
14018
|
let i = n.active + t, s = t > 0 && !n.ranges.some((o) => o.field == i + t);
|
|
14019
14019
|
return r(e.update({
|
|
14020
|
-
selection:
|
|
14020
|
+
selection: Lf(n.ranges, i),
|
|
14021
14021
|
effects: Ys.of(s ? null : new Ti(n.ranges, i)),
|
|
14022
14022
|
scrollIntoView: !0
|
|
14023
14023
|
})), !0;
|
|
@@ -14041,7 +14041,7 @@ const F$ = /* @__PURE__ */ te.domEventHandlers({
|
|
|
14041
14041
|
return !1;
|
|
14042
14042
|
let i = r.ranges.find((s) => s.from <= n && s.to >= n);
|
|
14043
14043
|
return !i || i.field == r.active ? !1 : (e.dispatch({
|
|
14044
|
-
selection:
|
|
14044
|
+
selection: Lf(r.ranges, i.field),
|
|
14045
14045
|
effects: Ys.of(r.ranges.some((s) => s.field > i.field) ? new Ti(r.ranges, i.field) : null),
|
|
14046
14046
|
scrollIntoView: !0
|
|
14047
14047
|
}), !0);
|
|
@@ -14055,10 +14055,10 @@ const F$ = /* @__PURE__ */ te.domEventHandlers({
|
|
|
14055
14055
|
let r = e.mapPos(t, -1, st.TrackAfter);
|
|
14056
14056
|
return r ?? void 0;
|
|
14057
14057
|
}
|
|
14058
|
-
}),
|
|
14058
|
+
}), Yf = /* @__PURE__ */ new class extends Rn {
|
|
14059
14059
|
}();
|
|
14060
|
-
|
|
14061
|
-
|
|
14060
|
+
Yf.startSide = 1;
|
|
14061
|
+
Yf.endSide = -1;
|
|
14062
14062
|
const i0 = /* @__PURE__ */ Jt.define({
|
|
14063
14063
|
create() {
|
|
14064
14064
|
return be.empty;
|
|
@@ -14069,7 +14069,7 @@ const i0 = /* @__PURE__ */ Jt.define({
|
|
|
14069
14069
|
t = t.update({ filter: (n) => n >= r.from && n <= r.to });
|
|
14070
14070
|
}
|
|
14071
14071
|
for (let r of e.effects)
|
|
14072
|
-
r.is(Pn) && (t = t.update({ add: [
|
|
14072
|
+
r.is(Pn) && (t = t.update({ add: [Yf.range(r.value, r.value + 1)] }));
|
|
14073
14073
|
return t;
|
|
14074
14074
|
}
|
|
14075
14075
|
});
|
|
@@ -14248,10 +14248,10 @@ function kp(t, e, r) {
|
|
|
14248
14248
|
return -1;
|
|
14249
14249
|
}
|
|
14250
14250
|
const aT = (t) => {
|
|
14251
|
-
let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n =
|
|
14251
|
+
let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = Bf(t.state, r.from);
|
|
14252
14252
|
return n.line ? lT(t) : n.block ? uT(t) : !1;
|
|
14253
14253
|
};
|
|
14254
|
-
function
|
|
14254
|
+
function qf(t, e) {
|
|
14255
14255
|
return ({ state: r, dispatch: n }) => {
|
|
14256
14256
|
if (r.readOnly)
|
|
14257
14257
|
return !1;
|
|
@@ -14259,20 +14259,20 @@ function Yf(t, e) {
|
|
|
14259
14259
|
return i ? (n(r.update(i)), !0) : !1;
|
|
14260
14260
|
};
|
|
14261
14261
|
}
|
|
14262
|
-
const lT = /* @__PURE__ */
|
|
14262
|
+
const lT = /* @__PURE__ */ qf(
|
|
14263
14263
|
dT,
|
|
14264
14264
|
0
|
|
14265
14265
|
/* CommentOption.Toggle */
|
|
14266
|
-
), cT = /* @__PURE__ */
|
|
14266
|
+
), cT = /* @__PURE__ */ qf(
|
|
14267
14267
|
l0,
|
|
14268
14268
|
0
|
|
14269
14269
|
/* CommentOption.Toggle */
|
|
14270
|
-
), uT = /* @__PURE__ */
|
|
14270
|
+
), uT = /* @__PURE__ */ qf(
|
|
14271
14271
|
(t, e) => l0(t, e, hT(e)),
|
|
14272
14272
|
0
|
|
14273
14273
|
/* CommentOption.Toggle */
|
|
14274
14274
|
);
|
|
14275
|
-
function
|
|
14275
|
+
function Bf(t, e) {
|
|
14276
14276
|
let r = t.languageDataAt("commentTokens", e);
|
|
14277
14277
|
return r.length ? r[0] : {};
|
|
14278
14278
|
}
|
|
@@ -14307,7 +14307,7 @@ function hT(t) {
|
|
|
14307
14307
|
return e;
|
|
14308
14308
|
}
|
|
14309
14309
|
function l0(t, e, r = e.selection.ranges) {
|
|
14310
|
-
let n = r.map((s) =>
|
|
14310
|
+
let n = r.map((s) => Bf(e, s.from).block);
|
|
14311
14311
|
if (!n.every((s) => s))
|
|
14312
14312
|
return null;
|
|
14313
14313
|
let i = r.map((s, o) => fT(e, n[o], s.from, s.to));
|
|
@@ -14327,7 +14327,7 @@ function l0(t, e, r = e.selection.ranges) {
|
|
|
14327
14327
|
function dT(t, e, r = e.selection.ranges) {
|
|
14328
14328
|
let n = [], i = -1;
|
|
14329
14329
|
for (let { from: s, to: o } of r) {
|
|
14330
|
-
let a = n.length, l = 1e9, c =
|
|
14330
|
+
let a = n.length, l = 1e9, c = Bf(e, s).line;
|
|
14331
14331
|
if (c) {
|
|
14332
14332
|
for (let u = s; u <= o; ) {
|
|
14333
14333
|
let f = e.doc.lineAt(u);
|
|
@@ -14361,7 +14361,7 @@ function dT(t, e, r = e.selection.ranges) {
|
|
|
14361
14361
|
}
|
|
14362
14362
|
return null;
|
|
14363
14363
|
}
|
|
14364
|
-
const
|
|
14364
|
+
const Qu = /* @__PURE__ */ Gt.define(), pT = /* @__PURE__ */ Gt.define(), gT = /* @__PURE__ */ ee.define(), c0 = /* @__PURE__ */ ee.define({
|
|
14365
14365
|
combine(t) {
|
|
14366
14366
|
return Ua(t, {
|
|
14367
14367
|
minDepth: 100,
|
|
@@ -14378,7 +14378,7 @@ const Tu = /* @__PURE__ */ Gt.define(), pT = /* @__PURE__ */ Gt.define(), gT = /
|
|
|
14378
14378
|
return yr.empty;
|
|
14379
14379
|
},
|
|
14380
14380
|
update(t, e) {
|
|
14381
|
-
let r = e.state.facet(c0), n = e.annotation(
|
|
14381
|
+
let r = e.state.facet(c0), n = e.annotation(Qu);
|
|
14382
14382
|
if (n) {
|
|
14383
14383
|
let l = bt.fromTransaction(e, n.selection), c = n.side, u = c == 0 ? t.undone : t.done;
|
|
14384
14384
|
return l ? u = wa(u, u.length, r.minDepth, l) : u = d0(u, e.startState.selection), new yr(c == 0 ? n.rest : u, c == 0 ? u : n.rest);
|
|
@@ -14402,7 +14402,7 @@ function OT(t = {}) {
|
|
|
14402
14402
|
c0.of(t),
|
|
14403
14403
|
te.domEventHandlers({
|
|
14404
14404
|
beforeinput(e, r) {
|
|
14405
|
-
let n = e.inputType == "historyUndo" ? f0 : e.inputType == "historyRedo" ?
|
|
14405
|
+
let n = e.inputType == "historyUndo" ? f0 : e.inputType == "historyRedo" ? Cu : null;
|
|
14406
14406
|
return n ? (e.preventDefault(), n(r)) : !1;
|
|
14407
14407
|
}
|
|
14408
14408
|
})
|
|
@@ -14419,7 +14419,7 @@ function nl(t, e) {
|
|
|
14419
14419
|
return s ? (n(s), !0) : !1;
|
|
14420
14420
|
};
|
|
14421
14421
|
}
|
|
14422
|
-
const f0 = /* @__PURE__ */ nl(0, !1),
|
|
14422
|
+
const f0 = /* @__PURE__ */ nl(0, !1), Cu = /* @__PURE__ */ nl(1, !1), mT = /* @__PURE__ */ nl(0, !0), vT = /* @__PURE__ */ nl(1, !0);
|
|
14423
14423
|
class bt {
|
|
14424
14424
|
constructor(e, r, n, i, s) {
|
|
14425
14425
|
this.changes = e, this.effects = r, this.mapped = n, this.startSelection = i, this.selectionsAfter = s;
|
|
@@ -14534,7 +14534,7 @@ class yr {
|
|
|
14534
14534
|
if (n && s.selectionsAfter.length)
|
|
14535
14535
|
return r.update({
|
|
14536
14536
|
selection: s.selectionsAfter[s.selectionsAfter.length - 1],
|
|
14537
|
-
annotations:
|
|
14537
|
+
annotations: Qu.of({ side: e, rest: xT(i), selection: o }),
|
|
14538
14538
|
userEvent: e == 0 ? "select.undo" : "select.redo",
|
|
14539
14539
|
scrollIntoView: !0
|
|
14540
14540
|
});
|
|
@@ -14544,7 +14544,7 @@ class yr {
|
|
|
14544
14544
|
changes: s.changes,
|
|
14545
14545
|
selection: s.startSelection,
|
|
14546
14546
|
effects: s.effects,
|
|
14547
|
-
annotations:
|
|
14547
|
+
annotations: Qu.of({ side: e, rest: a, selection: o }),
|
|
14548
14548
|
filter: !1,
|
|
14549
14549
|
userEvent: e == 0 ? "undo" : "redo",
|
|
14550
14550
|
scrollIntoView: !0
|
|
@@ -14556,8 +14556,8 @@ class yr {
|
|
|
14556
14556
|
yr.empty = /* @__PURE__ */ new yr(Zt, Zt);
|
|
14557
14557
|
const kT = [
|
|
14558
14558
|
{ key: "Mod-z", run: f0, preventDefault: !0 },
|
|
14559
|
-
{ key: "Mod-y", mac: "Mod-Shift-z", run:
|
|
14560
|
-
{ linux: "Ctrl-Shift-z", run:
|
|
14559
|
+
{ key: "Mod-y", mac: "Mod-Shift-z", run: Cu, preventDefault: !0 },
|
|
14560
|
+
{ linux: "Ctrl-Shift-z", run: Cu, preventDefault: !0 },
|
|
14561
14561
|
{ key: "Mod-u", run: mT, preventDefault: !0 },
|
|
14562
14562
|
{ key: "Alt-u", mac: "Mod-Shift-u", run: vT, preventDefault: !0 }
|
|
14563
14563
|
];
|
|
@@ -14640,7 +14640,7 @@ function x0(t, e) {
|
|
|
14640
14640
|
}
|
|
14641
14641
|
return t.dispatch($r(n, i), { effects: s }), !0;
|
|
14642
14642
|
}
|
|
14643
|
-
const $p = (t) => x0(t, !1),
|
|
14643
|
+
const $p = (t) => x0(t, !1), Eu = (t) => x0(t, !0);
|
|
14644
14644
|
function pn(t, e, r) {
|
|
14645
14645
|
let n = t.lineBlockAt(e.head), i = t.moveToLineBoundary(e, r);
|
|
14646
14646
|
if (i.head == e.head && i.head != (r ? n.to : n.from) && (i = t.moveToLineBoundary(e, r, !1)), !r && i.head == n.from && n.length) {
|
|
@@ -14741,7 +14741,7 @@ const R0 = (t, e, r) => qs(t, (n) => {
|
|
|
14741
14741
|
} else
|
|
14742
14742
|
l = dt(o.text, i - o.from, e, e) + o.from, l == i && o.number != (e ? s.doc.lines : 1) ? l += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(o.text.slice(l - o.from, i - o.from)) && (l = dt(o.text, l - o.from, !1, !1) + o.from);
|
|
14743
14743
|
return l;
|
|
14744
|
-
}),
|
|
14744
|
+
}), Ru = (t) => R0(t, !1, !0), A0 = (t) => R0(t, !0, !1), D0 = (t, e) => qs(t, (r) => {
|
|
14745
14745
|
let n = r.head, { state: i } = t, s = i.doc.lineAt(n), o = i.charCategorizer(n);
|
|
14746
14746
|
for (let a = null; ; ) {
|
|
14747
14747
|
if (n == (e ? s.to : s.from)) {
|
|
@@ -14754,7 +14754,7 @@ const R0 = (t, e, r) => qs(t, (n) => {
|
|
|
14754
14754
|
(c != " " || n != r.head) && (a = u), n = l;
|
|
14755
14755
|
}
|
|
14756
14756
|
return n;
|
|
14757
|
-
}),
|
|
14757
|
+
}), zf = (t) => D0(t, !1), JT = (t) => D0(t, !0), eQ = (t) => qs(t, (e) => {
|
|
14758
14758
|
let r = t.lineBlockAt(e.head).to;
|
|
14759
14759
|
return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1);
|
|
14760
14760
|
}), tQ = (t) => qs(t, (e) => {
|
|
@@ -14872,7 +14872,7 @@ function Z0(t) {
|
|
|
14872
14872
|
return r(e.update(n, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
14873
14873
|
};
|
|
14874
14874
|
}
|
|
14875
|
-
function
|
|
14875
|
+
function Uf(t, e) {
|
|
14876
14876
|
let r = -1;
|
|
14877
14877
|
return t.changeByRange((n) => {
|
|
14878
14878
|
let i = [];
|
|
@@ -14893,7 +14893,7 @@ const dQ = ({ state: t, dispatch: e }) => {
|
|
|
14893
14893
|
let r = /* @__PURE__ */ Object.create(null), n = new Ja(t, { overrideIndentation: (s) => {
|
|
14894
14894
|
let o = r[s];
|
|
14895
14895
|
return o ?? -1;
|
|
14896
|
-
} }), i =
|
|
14896
|
+
} }), i = Uf(t, (s, o, a) => {
|
|
14897
14897
|
let l = Uv(n, s.from);
|
|
14898
14898
|
if (l == null)
|
|
14899
14899
|
return;
|
|
@@ -14902,9 +14902,9 @@ const dQ = ({ state: t, dispatch: e }) => {
|
|
|
14902
14902
|
(c != u || a.from < s.from + c.length) && (r[s.from] = l, o.push({ from: s.from, to: s.from + c.length, insert: u }));
|
|
14903
14903
|
});
|
|
14904
14904
|
return i.changes.empty || e(t.update(i, { userEvent: "indent" })), !0;
|
|
14905
|
-
}, I0 = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(
|
|
14905
|
+
}, I0 = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(Uf(t, (r, n) => {
|
|
14906
14906
|
n.push({ from: r.from, insert: t.facet(Ka) });
|
|
14907
|
-
}), { userEvent: "input.indent" })), !0), _0 = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(
|
|
14907
|
+
}), { userEvent: "input.indent" })), !0), _0 = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(Uf(t, (r, n) => {
|
|
14908
14908
|
let i = /^\s*/.exec(r.text)[0];
|
|
14909
14909
|
if (!i)
|
|
14910
14910
|
return;
|
|
@@ -14920,12 +14920,12 @@ const dQ = ({ state: t, dispatch: e }) => {
|
|
|
14920
14920
|
{ key: "Ctrl-a", run: MT, shift: zT },
|
|
14921
14921
|
{ key: "Ctrl-e", run: ZT, shift: UT },
|
|
14922
14922
|
{ key: "Ctrl-d", run: A0 },
|
|
14923
|
-
{ key: "Ctrl-h", run:
|
|
14923
|
+
{ key: "Ctrl-h", run: Ru },
|
|
14924
14924
|
{ key: "Ctrl-k", run: eQ },
|
|
14925
|
-
{ key: "Ctrl-Alt-h", run:
|
|
14925
|
+
{ key: "Ctrl-Alt-h", run: zf },
|
|
14926
14926
|
{ key: "Ctrl-o", run: nQ },
|
|
14927
14927
|
{ key: "Ctrl-t", run: iQ },
|
|
14928
|
-
{ key: "Ctrl-v", run:
|
|
14928
|
+
{ key: "Ctrl-v", run: Eu }
|
|
14929
14929
|
], gQ = /* @__PURE__ */ [
|
|
14930
14930
|
{ key: "ArrowLeft", run: g0, shift: P0, preventDefault: !0 },
|
|
14931
14931
|
{ key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: $T, shift: NT, preventDefault: !0 },
|
|
@@ -14938,18 +14938,18 @@ const dQ = ({ state: t, dispatch: e }) => {
|
|
|
14938
14938
|
{ mac: "Ctrl-ArrowUp", run: $p, shift: Tp },
|
|
14939
14939
|
{ key: "ArrowDown", run: b0, shift: C0, preventDefault: !0 },
|
|
14940
14940
|
{ mac: "Cmd-ArrowDown", run: Ep, shift: Ap },
|
|
14941
|
-
{ mac: "Ctrl-ArrowDown", run:
|
|
14941
|
+
{ mac: "Ctrl-ArrowDown", run: Eu, shift: Qp },
|
|
14942
14942
|
{ key: "PageUp", run: $p, shift: Tp },
|
|
14943
|
-
{ key: "PageDown", run:
|
|
14943
|
+
{ key: "PageDown", run: Eu, shift: Qp },
|
|
14944
14944
|
{ key: "Home", run: AT, shift: YT, preventDefault: !0 },
|
|
14945
14945
|
{ key: "Mod-Home", run: Cp, shift: Rp },
|
|
14946
14946
|
{ key: "End", run: RT, shift: LT, preventDefault: !0 },
|
|
14947
14947
|
{ key: "Mod-End", run: Ep, shift: Ap },
|
|
14948
14948
|
{ key: "Enter", run: fQ },
|
|
14949
14949
|
{ key: "Mod-a", run: FT },
|
|
14950
|
-
{ key: "Backspace", run:
|
|
14950
|
+
{ key: "Backspace", run: Ru, shift: Ru },
|
|
14951
14951
|
{ key: "Delete", run: A0 },
|
|
14952
|
-
{ key: "Mod-Backspace", mac: "Alt-Backspace", run:
|
|
14952
|
+
{ key: "Mod-Backspace", mac: "Alt-Backspace", run: zf },
|
|
14953
14953
|
{ key: "Mod-Delete", mac: "Alt-Delete", run: JT },
|
|
14954
14954
|
{ mac: "Mod-Backspace", run: tQ },
|
|
14955
14955
|
{ mac: "Mod-Delete", run: rQ }
|
|
@@ -16415,7 +16415,7 @@ class Si extends Wv {
|
|
|
16415
16415
|
}
|
|
16416
16416
|
}
|
|
16417
16417
|
}
|
|
16418
|
-
this.nodeSet = new
|
|
16418
|
+
this.nodeSet = new Df(r.map((a, l) => Ot.define({
|
|
16419
16419
|
name: l >= this.minRepeatTerm ? void 0 : a,
|
|
16420
16420
|
id: l,
|
|
16421
16421
|
props: i[l],
|
|
@@ -17553,7 +17553,7 @@ const eC = (t) => (e) => {
|
|
|
17553
17553
|
/* @__PURE__ */ el.add({
|
|
17554
17554
|
Declaration: /* @__PURE__ */ Ko()
|
|
17555
17555
|
}),
|
|
17556
|
-
/* @__PURE__ */
|
|
17556
|
+
/* @__PURE__ */ Xf.add({
|
|
17557
17557
|
"Block KeyframeList": Hv
|
|
17558
17558
|
})
|
|
17559
17559
|
]
|
|
@@ -17565,9 +17565,9 @@ const eC = (t) => (e) => {
|
|
|
17565
17565
|
}
|
|
17566
17566
|
});
|
|
17567
17567
|
function q0() {
|
|
17568
|
-
return new
|
|
17568
|
+
return new _f(Ta, Ta.data.of({ autocomplete: tC }));
|
|
17569
17569
|
}
|
|
17570
|
-
const rC = 54, nC = 1, iC = 55, sC = 2, oC = 56, aC = 3, Bp = 4, lC = 5, Qa = 6, B0 = 7, z0 = 8, U0 = 9, F0 = 10, cC = 11, uC = 12, fC = 13, rc = 57, hC = 14, zp = 58, G0 = 20, dC = 22, H0 = 23, pC = 24,
|
|
17570
|
+
const rC = 54, nC = 1, iC = 55, sC = 2, oC = 56, aC = 3, Bp = 4, lC = 5, Qa = 6, B0 = 7, z0 = 8, U0 = 9, F0 = 10, cC = 11, uC = 12, fC = 13, rc = 57, hC = 14, zp = 58, G0 = 20, dC = 22, H0 = 23, pC = 24, Au = 26, K0 = 27, gC = 28, OC = 31, mC = 34, vC = 36, yC = 37, bC = 0, SC = 1, xC = {
|
|
17571
17571
|
area: !0,
|
|
17572
17572
|
base: !0,
|
|
17573
17573
|
br: !0,
|
|
@@ -17650,7 +17650,7 @@ function J0(t) {
|
|
|
17650
17650
|
return t == 9 || t == 10 || t == 13 || t == 32;
|
|
17651
17651
|
}
|
|
17652
17652
|
let Fp = null, Gp = null, Hp = 0;
|
|
17653
|
-
function
|
|
17653
|
+
function Du(t, e) {
|
|
17654
17654
|
let r = t.pos + e;
|
|
17655
17655
|
if (Hp == r && Gp == t)
|
|
17656
17656
|
return Fp;
|
|
@@ -17662,7 +17662,7 @@ function Au(t, e) {
|
|
|
17662
17662
|
i += String.fromCharCode(n), n = t.peek(++e);
|
|
17663
17663
|
return Gp = t, Hp = r, Fp = i ? i.toLowerCase() : n == kC || n == $C ? void 0 : null;
|
|
17664
17664
|
}
|
|
17665
|
-
const ey = 60, Ca = 62,
|
|
17665
|
+
const ey = 60, Ca = 62, Ff = 47, kC = 63, $C = 33, TC = 45;
|
|
17666
17666
|
function Kp(t, e) {
|
|
17667
17667
|
this.name = t, this.parent = e, this.hash = e ? e.hash : 0;
|
|
17668
17668
|
for (let r = 0; r < t.length; r++)
|
|
@@ -17671,14 +17671,14 @@ function Kp(t, e) {
|
|
|
17671
17671
|
const QC = [Qa, F0, B0, z0, U0], CC = new X0({
|
|
17672
17672
|
start: null,
|
|
17673
17673
|
shift(t, e, r, n) {
|
|
17674
|
-
return QC.indexOf(e) > -1 ? new Kp(
|
|
17674
|
+
return QC.indexOf(e) > -1 ? new Kp(Du(n, 1) || "", t) : t;
|
|
17675
17675
|
},
|
|
17676
17676
|
reduce(t, e) {
|
|
17677
17677
|
return e == G0 && t ? t.parent : t;
|
|
17678
17678
|
},
|
|
17679
17679
|
reuse(t, e, r, n) {
|
|
17680
17680
|
let i = e.type.id;
|
|
17681
|
-
return i == Qa || i == vC ? new Kp(
|
|
17681
|
+
return i == Qa || i == vC ? new Kp(Du(n, 1) || "", t) : t;
|
|
17682
17682
|
},
|
|
17683
17683
|
hash(t) {
|
|
17684
17684
|
return t ? t.hash : 0;
|
|
@@ -17690,9 +17690,9 @@ const QC = [Qa, F0, B0, z0, U0], CC = new X0({
|
|
|
17690
17690
|
return;
|
|
17691
17691
|
}
|
|
17692
17692
|
t.advance();
|
|
17693
|
-
let r = t.next ==
|
|
17693
|
+
let r = t.next == Ff;
|
|
17694
17694
|
r && t.advance();
|
|
17695
|
-
let n =
|
|
17695
|
+
let n = Du(t, 0);
|
|
17696
17696
|
if (n === void 0)
|
|
17697
17697
|
return;
|
|
17698
17698
|
if (!n)
|
|
@@ -17743,13 +17743,13 @@ function AC(t) {
|
|
|
17743
17743
|
return !1;
|
|
17744
17744
|
}
|
|
17745
17745
|
const DC = new tr((t, e) => {
|
|
17746
|
-
if (t.next ==
|
|
17746
|
+
if (t.next == Ff && t.peek(1) == Ca) {
|
|
17747
17747
|
let r = e.dialectEnabled(SC) || AC(e.context);
|
|
17748
17748
|
t.acceptToken(r ? lC : Bp, 2);
|
|
17749
17749
|
} else
|
|
17750
17750
|
t.next == Ca && t.acceptToken(Bp, 1);
|
|
17751
17751
|
});
|
|
17752
|
-
function
|
|
17752
|
+
function Gf(t, e, r) {
|
|
17753
17753
|
let n = 2 + t.length;
|
|
17754
17754
|
return new tr((i) => {
|
|
17755
17755
|
for (let s = 0, o = 0, a = 0; ; a++) {
|
|
@@ -17757,7 +17757,7 @@ function Ff(t, e, r) {
|
|
|
17757
17757
|
a && i.acceptToken(e);
|
|
17758
17758
|
break;
|
|
17759
17759
|
}
|
|
17760
|
-
if (s == 0 && i.next == ey || s == 1 && i.next ==
|
|
17760
|
+
if (s == 0 && i.next == ey || s == 1 && i.next == Ff || s >= 2 && s < n && i.next == t.charCodeAt(s - 2))
|
|
17761
17761
|
s++, o++;
|
|
17762
17762
|
else if ((s == 2 || s == n) && J0(i.next))
|
|
17763
17763
|
o++;
|
|
@@ -17773,7 +17773,7 @@ function Ff(t, e, r) {
|
|
|
17773
17773
|
}
|
|
17774
17774
|
});
|
|
17775
17775
|
}
|
|
17776
|
-
const jC =
|
|
17776
|
+
const jC = Gf("script", rC, nC), MC = Gf("style", iC, sC), ZC = Gf("textarea", oC, aC), IC = Ha({
|
|
17777
17777
|
"Text RawText": T.content,
|
|
17778
17778
|
"StartTag StartCloseTag SelfClosingEndTag EndTag": T.angleBracket,
|
|
17779
17779
|
TagName: T.tagName,
|
|
@@ -17811,8 +17811,8 @@ const jC = Ff("script", rC, nC), MC = Ff("style", iC, sC), ZC = Ff("textarea", o
|
|
|
17811
17811
|
function ty(t, e) {
|
|
17812
17812
|
let r = /* @__PURE__ */ Object.create(null);
|
|
17813
17813
|
for (let n of t.getChildren(H0)) {
|
|
17814
|
-
let i = n.getChild(pC), s = n.getChild(
|
|
17815
|
-
i && (r[e.read(i.from, i.to)] = s ? s.type.id ==
|
|
17814
|
+
let i = n.getChild(pC), s = n.getChild(Au) || n.getChild(K0);
|
|
17815
|
+
i && (r[e.read(i.from, i.to)] = s ? s.type.id == Au ? e.read(s.from + 1, s.to - 1) : e.read(s.from, s.to) : "");
|
|
17816
17816
|
}
|
|
17817
17817
|
return r;
|
|
17818
17818
|
}
|
|
@@ -17862,7 +17862,7 @@ function ry(t = [], e = []) {
|
|
|
17862
17862
|
if (d.tagName && d.tagName != Jp(u.parent, l))
|
|
17863
17863
|
continue;
|
|
17864
17864
|
let p = u.lastChild;
|
|
17865
|
-
if (p.type.id ==
|
|
17865
|
+
if (p.type.id == Au) {
|
|
17866
17866
|
let g = p.from + 1, m = p.lastChild, v = p.to - (m && m.isError ? 0 : 1);
|
|
17867
17867
|
if (v > g)
|
|
17868
17868
|
return { parser: d.parser, overlay: [{ from: g, to: v }] };
|
|
@@ -17874,7 +17874,7 @@ function ry(t = [], e = []) {
|
|
|
17874
17874
|
return null;
|
|
17875
17875
|
});
|
|
17876
17876
|
}
|
|
17877
|
-
const NC = 310, eg = 1, XC = 2, VC = 3, WC = 311, LC = 313, YC = 314, qC = 4, BC = 5, zC = 0,
|
|
17877
|
+
const NC = 310, eg = 1, XC = 2, VC = 3, WC = 311, LC = 313, YC = 314, qC = 4, BC = 5, zC = 0, ju = [
|
|
17878
17878
|
9,
|
|
17879
17879
|
10,
|
|
17880
17880
|
11,
|
|
@@ -17900,7 +17900,7 @@ const NC = 310, eg = 1, XC = 2, VC = 3, WC = 311, LC = 313, YC = 314, qC = 4, BC
|
|
|
17900
17900
|
8239,
|
|
17901
17901
|
8287,
|
|
17902
17902
|
12288
|
|
17903
|
-
], ny = 125, UC = 59,
|
|
17903
|
+
], ny = 125, UC = 59, Mu = 47, FC = 42, GC = 43, HC = 45, KC = 60, JC = 44, eE = new X0({
|
|
17904
17904
|
start: !1,
|
|
17905
17905
|
shift(t, e) {
|
|
17906
17906
|
return e == qC || e == BC || e == LC ? t : e == YC;
|
|
@@ -17911,7 +17911,7 @@ const NC = 310, eg = 1, XC = 2, VC = 3, WC = 311, LC = 313, YC = 314, qC = 4, BC
|
|
|
17911
17911
|
(r == ny || r == -1 || e.context) && t.acceptToken(WC);
|
|
17912
17912
|
}, { contextual: !0, fallback: !0 }), rE = new tr((t, e) => {
|
|
17913
17913
|
let { next: r } = t, n;
|
|
17914
|
-
|
|
17914
|
+
ju.indexOf(r) > -1 || r == Mu && ((n = t.peek(1)) == Mu || n == FC) || r != ny && r != UC && r != -1 && !e.context && t.acceptToken(NC);
|
|
17915
17915
|
}, { contextual: !0 }), nE = new tr((t, e) => {
|
|
17916
17916
|
let { next: r } = t;
|
|
17917
17917
|
if ((r == GC || r == HC) && (t.advance(), r == t.next)) {
|
|
@@ -17924,15 +17924,15 @@ function ic(t, e) {
|
|
|
17924
17924
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t == 95 || t >= 192 || !e && t >= 48 && t <= 57;
|
|
17925
17925
|
}
|
|
17926
17926
|
const iE = new tr((t, e) => {
|
|
17927
|
-
if (t.next != KC || !e.dialectEnabled(zC) || (t.advance(), t.next ==
|
|
17927
|
+
if (t.next != KC || !e.dialectEnabled(zC) || (t.advance(), t.next == Mu))
|
|
17928
17928
|
return;
|
|
17929
17929
|
let r = 0;
|
|
17930
|
-
for (;
|
|
17930
|
+
for (; ju.indexOf(t.next) > -1; )
|
|
17931
17931
|
t.advance(), r++;
|
|
17932
17932
|
if (ic(t.next, !0)) {
|
|
17933
17933
|
for (t.advance(), r++; ic(t.next, !1); )
|
|
17934
17934
|
t.advance(), r++;
|
|
17935
|
-
for (;
|
|
17935
|
+
for (; ju.indexOf(t.next) > -1; )
|
|
17936
17936
|
t.advance(), r++;
|
|
17937
17937
|
if (t.next == JC)
|
|
17938
17938
|
return;
|
|
@@ -18225,7 +18225,7 @@ const xr = /* @__PURE__ */ vi.define({
|
|
|
18225
18225
|
return t.column(t.node.from) + t.unit;
|
|
18226
18226
|
}
|
|
18227
18227
|
}),
|
|
18228
|
-
/* @__PURE__ */
|
|
18228
|
+
/* @__PURE__ */ Xf.add({
|
|
18229
18229
|
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": Hv,
|
|
18230
18230
|
BlockComment(t) {
|
|
18231
18231
|
return { from: t.from + 2, to: t.to - 2 };
|
|
@@ -18244,16 +18244,16 @@ const xr = /* @__PURE__ */ vi.define({
|
|
|
18244
18244
|
facet: /* @__PURE__ */ Bv({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
|
|
18245
18245
|
}, cy = /* @__PURE__ */ xr.configure({ dialect: "ts" }, "typescript"), uy = /* @__PURE__ */ xr.configure({
|
|
18246
18246
|
dialect: "jsx",
|
|
18247
|
-
props: [/* @__PURE__ */
|
|
18247
|
+
props: [/* @__PURE__ */ If.add((t) => t.isTop ? [ly] : void 0)]
|
|
18248
18248
|
}), fy = /* @__PURE__ */ xr.configure({
|
|
18249
18249
|
dialect: "jsx ts",
|
|
18250
|
-
props: [/* @__PURE__ */
|
|
18250
|
+
props: [/* @__PURE__ */ If.add((t) => t.isTop ? [ly] : void 0)]
|
|
18251
18251
|
}, "typescript");
|
|
18252
18252
|
let hy = (t) => ({ label: t, type: "keyword" });
|
|
18253
18253
|
const dy = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(hy), pE = /* @__PURE__ */ dy.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(hy));
|
|
18254
|
-
function
|
|
18254
|
+
function Zu(t = {}) {
|
|
18255
18255
|
let e = t.jsx ? t.typescript ? fy : uy : t.typescript ? cy : xr, r = t.typescript ? uE.concat(pE) : iy.concat(dy);
|
|
18256
|
-
return new
|
|
18256
|
+
return new _f(e, [
|
|
18257
18257
|
xr.data.of({
|
|
18258
18258
|
autocomplete: Z$(ay, M$(r))
|
|
18259
18259
|
}),
|
|
@@ -18751,7 +18751,7 @@ function Oy(t, e, r) {
|
|
|
18751
18751
|
let n = r.tags[xi(t, wi(e))];
|
|
18752
18752
|
return (n == null ? void 0 : n.children) || r.allTags;
|
|
18753
18753
|
}
|
|
18754
|
-
function
|
|
18754
|
+
function Hf(t, e) {
|
|
18755
18755
|
let r = [];
|
|
18756
18756
|
for (let n = wi(e); n && !n.type.isTop; n = wi(n.parent)) {
|
|
18757
18757
|
let i = xi(t, n);
|
|
@@ -18767,7 +18767,7 @@ function ig(t, e, r, n, i) {
|
|
|
18767
18767
|
return {
|
|
18768
18768
|
from: n,
|
|
18769
18769
|
to: i,
|
|
18770
|
-
options: Oy(t.doc, o, e).map((a) => ({ label: a, type: "type" })).concat(
|
|
18770
|
+
options: Oy(t.doc, o, e).map((a) => ({ label: a, type: "type" })).concat(Hf(t.doc, r).map((a, l) => ({
|
|
18771
18771
|
label: "/" + a,
|
|
18772
18772
|
apply: "/" + a + s,
|
|
18773
18773
|
type: "type",
|
|
@@ -18781,7 +18781,7 @@ function sg(t, e, r, n) {
|
|
|
18781
18781
|
return {
|
|
18782
18782
|
from: r,
|
|
18783
18783
|
to: n,
|
|
18784
|
-
options:
|
|
18784
|
+
options: Hf(t.doc, e).map((s, o) => ({ label: s, apply: s + i, type: "type", boost: 99 - o })),
|
|
18785
18785
|
validFor: my
|
|
18786
18786
|
};
|
|
18787
18787
|
}
|
|
@@ -18789,7 +18789,7 @@ function yE(t, e, r, n) {
|
|
|
18789
18789
|
let i = [], s = 0;
|
|
18790
18790
|
for (let o of Oy(t.doc, r, e))
|
|
18791
18791
|
i.push({ label: "<" + o, type: "type" });
|
|
18792
|
-
for (let o of
|
|
18792
|
+
for (let o of Hf(t.doc, r))
|
|
18793
18793
|
i.push({ label: "</" + o + ">", type: "type", boost: 99 - s++ });
|
|
18794
18794
|
return { from: n, to: n, options: i, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
|
18795
18795
|
}
|
|
@@ -18901,7 +18901,7 @@ const PE = /* @__PURE__ */ xr.parser.configure({ top: "SingleExpression" }), vy
|
|
|
18901
18901
|
return e && !((r = e.lastChild) && (r.name == "CloseTag" || r.name == "SelfClosingTag")) ? t.lineIndent(e.from) + t.unit : null;
|
|
18902
18902
|
}
|
|
18903
18903
|
}),
|
|
18904
|
-
/* @__PURE__ */
|
|
18904
|
+
/* @__PURE__ */ Xf.add({
|
|
18905
18905
|
Element(t) {
|
|
18906
18906
|
let e = t.firstChild, r = t.lastChild;
|
|
18907
18907
|
return !e || e.name != "OpenTag" ? null : { from: e.to, to: r.name == "CloseTag" ? r.from : t.to };
|
|
@@ -18924,10 +18924,10 @@ function kE(t = {}) {
|
|
|
18924
18924
|
let e = "", r;
|
|
18925
18925
|
t.matchClosingTags === !1 && (e = "noMatch"), t.selfClosingTags === !0 && (e = (e ? e + " " : "") + "selfClosing"), (t.nestedLanguages && t.nestedLanguages.length || t.nestedAttributes && t.nestedAttributes.length) && (r = ry((t.nestedLanguages || []).concat(vy), (t.nestedAttributes || []).concat(yy)));
|
|
18926
18926
|
let n = r ? by.configure({ wrap: r, dialect: e }) : e ? ta.configure({ dialect: e }) : ta;
|
|
18927
|
-
return new
|
|
18927
|
+
return new _f(n, [
|
|
18928
18928
|
ta.data.of({ autocomplete: wE(t) }),
|
|
18929
18929
|
t.autoCloseTags !== !1 ? $E : [],
|
|
18930
|
-
|
|
18930
|
+
Zu().support,
|
|
18931
18931
|
q0().support
|
|
18932
18932
|
]);
|
|
18933
18933
|
}
|
|
@@ -19391,8 +19391,8 @@ var Br = [[{ color: "0, 0, 0", class: "ansi-black" }, { color: "187, 0, 0", clas
|
|
|
19391
19391
|
}]), t;
|
|
19392
19392
|
}(), CE = QE;
|
|
19393
19393
|
const EE = /* @__PURE__ */ Ya(CE);
|
|
19394
|
-
var
|
|
19395
|
-
function
|
|
19394
|
+
var Kf = { exports: {} };
|
|
19395
|
+
function Jf(t) {
|
|
19396
19396
|
if (!t)
|
|
19397
19397
|
return "";
|
|
19398
19398
|
if (!/\r/.test(t))
|
|
@@ -19429,14 +19429,14 @@ function AE(t) {
|
|
|
19429
19429
|
`);
|
|
19430
19430
|
var e = t.lastIndexOf(`
|
|
19431
19431
|
`);
|
|
19432
|
-
return
|
|
19432
|
+
return Jf(t.slice(0, e)) + `
|
|
19433
19433
|
` + lg(t.slice(e + 1));
|
|
19434
19434
|
}
|
|
19435
|
-
|
|
19436
|
-
var DE =
|
|
19437
|
-
|
|
19438
|
-
var
|
|
19439
|
-
|
|
19435
|
+
Kf.exports = Jf;
|
|
19436
|
+
var DE = Kf.exports.escapeCarriageReturn = Jf;
|
|
19437
|
+
Kf.exports.escapeCarriageReturnSafe = AE;
|
|
19438
|
+
var eh = { exports: {} };
|
|
19439
|
+
eh.exports;
|
|
19440
19440
|
(function(t) {
|
|
19441
19441
|
var e = function() {
|
|
19442
19442
|
var r = String.fromCharCode, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", s = {};
|
|
@@ -19632,8 +19632,8 @@ Jf.exports;
|
|
|
19632
19632
|
t != null ? t.exports = e : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
19633
19633
|
return e;
|
|
19634
19634
|
});
|
|
19635
|
-
})(
|
|
19636
|
-
var jE =
|
|
19635
|
+
})(eh);
|
|
19636
|
+
var jE = eh.exports;
|
|
19637
19637
|
const ME = /* @__PURE__ */ Ya(jE);
|
|
19638
19638
|
var E = function() {
|
|
19639
19639
|
return E = Object.assign || function(e) {
|
|
@@ -19814,7 +19814,7 @@ var St = function(t) {
|
|
|
19814
19814
|
size: "13px",
|
|
19815
19815
|
lineHeight: "20px"
|
|
19816
19816
|
}
|
|
19817
|
-
},
|
|
19817
|
+
}, Iu = {
|
|
19818
19818
|
colors: {
|
|
19819
19819
|
surface1: "#151515",
|
|
19820
19820
|
surface2: "#252525",
|
|
@@ -19848,8 +19848,8 @@ var St = function(t) {
|
|
|
19848
19848
|
}
|
|
19849
19849
|
}, qE = {
|
|
19850
19850
|
light: li,
|
|
19851
|
-
dark:
|
|
19852
|
-
auto: typeof window < "u" && !((lc = window == null ? void 0 : window.matchMedia) === null || lc === void 0) && lc.call(window, "(prefers-color-scheme: dark)").matches ?
|
|
19851
|
+
dark: Iu,
|
|
19852
|
+
auto: typeof window < "u" && !((lc = window == null ? void 0 : window.matchMedia) === null || lc === void 0) && lc.call(window, "(prefers-color-scheme: dark)").matches ? Iu : li
|
|
19853
19853
|
}, Ra = function(t) {
|
|
19854
19854
|
var e = t.lastIndexOf("/");
|
|
19855
19855
|
return t.slice(e + 1);
|
|
@@ -19922,7 +19922,7 @@ var ky = Cs.keyframes, FE = {
|
|
|
19922
19922
|
mode: cg(a.colors.surface1) ? "dark" : "light"
|
|
19923
19923
|
};
|
|
19924
19924
|
}
|
|
19925
|
-
var l = cg((r = (e = t == null ? void 0 : t.colors) === null || e === void 0 ? void 0 : e.surface1) !== null && r !== void 0 ? r : li.colors.surface1) ? "dark" : "light", c = l === "dark" ?
|
|
19925
|
+
var l = cg((r = (e = t == null ? void 0 : t.colors) === null || e === void 0 ? void 0 : e.surface1) !== null && r !== void 0 ? r : li.colors.surface1) ? "dark" : "light", c = l === "dark" ? Iu : li, u = E(E({}, c.colors), (n = t == null ? void 0 : t.colors) !== null && n !== void 0 ? n : {}), f = E(E({}, c.syntax), (i = t == null ? void 0 : t.syntax) !== null && i !== void 0 ? i : {}), h = E(E({}, c.font), (s = t == null ? void 0 : t.font) !== null && s !== void 0 ? s : {}), d = {
|
|
19926
19926
|
colors: u,
|
|
19927
19927
|
syntax: f,
|
|
19928
19928
|
font: h
|
|
@@ -19975,7 +19975,7 @@ var $y = Wt({}), JE = function(t) {
|
|
|
19975
19975
|
},
|
|
19976
19976
|
"*": { boxSizing: "border-box" },
|
|
19977
19977
|
".sp-wrapper:focus": { outline: "0" }
|
|
19978
|
-
}),
|
|
19978
|
+
}), th = U.createContext({
|
|
19979
19979
|
theme: li,
|
|
19980
19980
|
id: "light",
|
|
19981
19981
|
mode: "light"
|
|
@@ -19995,13 +19995,13 @@ var $y = Wt({}), JE = function(t) {
|
|
|
19995
19995
|
return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", p), function() {
|
|
19996
19996
|
window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", p);
|
|
19997
19997
|
};
|
|
19998
|
-
}, [e]), w.jsx(
|
|
19998
|
+
}, [e]), w.jsx(th.Provider, { value: { theme: c, id: u, mode: f }, children: w.jsx("div", E({ className: h("wrapper", [
|
|
19999
19999
|
d,
|
|
20000
20000
|
t2({ variant: f }),
|
|
20001
20001
|
n
|
|
20002
20002
|
]) }, i, { children: r })) });
|
|
20003
20003
|
};
|
|
20004
|
-
|
|
20004
|
+
th.Consumer;
|
|
20005
20005
|
var Ne = {
|
|
20006
20006
|
"/styles.css": {
|
|
20007
20007
|
code: `body {
|
|
@@ -21492,7 +21492,7 @@ declare module "*.vue" {
|
|
|
21492
21492
|
"vite-svelte": u2,
|
|
21493
21493
|
"vite-svelte-ts": f2,
|
|
21494
21494
|
astro: r2
|
|
21495
|
-
},
|
|
21495
|
+
}, _u = function(t) {
|
|
21496
21496
|
var e, r, n, i, s, o, a = En(t.files), l = k2({
|
|
21497
21497
|
template: t.template,
|
|
21498
21498
|
customSetup: t.customSetup,
|
|
@@ -21566,7 +21566,7 @@ declare module "*.vue" {
|
|
|
21566
21566
|
var r = _e({
|
|
21567
21567
|
editorState: "pristine",
|
|
21568
21568
|
teamId: t.teamId
|
|
21569
|
-
}), n = r[0], i = r[1], s =
|
|
21569
|
+
}), n = r[0], i = r[1], s = _u(t), o = ts(s.files, e) ? "pristine" : "dirty";
|
|
21570
21570
|
return o !== n.editorState && i(function(a) {
|
|
21571
21571
|
return E(E({}, a), { editorState: o });
|
|
21572
21572
|
}), n;
|
|
@@ -21830,9 +21830,9 @@ declare module "*.vue" {
|
|
|
21830
21830
|
}
|
|
21831
21831
|
];
|
|
21832
21832
|
}, C2 = function(t) {
|
|
21833
|
-
var e =
|
|
21833
|
+
var e = _u(t), r = _e(e), n = r[0], i = r[1], s = le(!1);
|
|
21834
21834
|
ie(function() {
|
|
21835
|
-
s.current ? i(
|
|
21835
|
+
s.current ? i(_u(t)) : s.current = !0;
|
|
21836
21836
|
}, [t.files, t.customSetup, t.template]);
|
|
21837
21837
|
var o = function(l, c, u) {
|
|
21838
21838
|
u === void 0 && (u = !0), i(function(f) {
|
|
@@ -21894,15 +21894,15 @@ declare module "*.vue" {
|
|
|
21894
21894
|
E(E({}, n), { visibleFilesFromProps: e.visibleFiles }),
|
|
21895
21895
|
a
|
|
21896
21896
|
];
|
|
21897
|
-
},
|
|
21897
|
+
}, rh = U.createContext(null), E2 = function(t) {
|
|
21898
21898
|
var e, r, n = t.children, i = t.options, s = t.style, o = t.className, a = t.theme, l = C2(t), c = l[0], u = l[1], f = Q2(t, c), h = f[0], d = f[1], p = d.dispatchMessage, g = d.addListener, m = Be(d, ["dispatchMessage", "addListener"]), v = $2(t, c.files);
|
|
21899
21899
|
return U.useEffect(function() {
|
|
21900
21900
|
m.initializeSandpackIframe();
|
|
21901
|
-
}, []), w.jsx(
|
|
21901
|
+
}, []), w.jsx(rh.Provider, { value: E(E(E(E(E(E({}, c), h), v), u), m), { autoReload: (r = (e = t.options) === null || e === void 0 ? void 0 : e.autoReload) !== null && r !== void 0 ? r : !0, listen: g, dispatch: p }), children: w.jsx(JE, { classes: i == null ? void 0 : i.classes, children: w.jsx(Ty, { className: o, style: s, theme: a, children: n }) }) });
|
|
21902
21902
|
};
|
|
21903
|
-
|
|
21903
|
+
rh.Consumer;
|
|
21904
21904
|
function Re() {
|
|
21905
|
-
var t = U.useContext(
|
|
21905
|
+
var t = U.useContext(rh);
|
|
21906
21906
|
if (t === null)
|
|
21907
21907
|
throw new Error('[sandpack-react]: "useSandpack" must be wrapped by a "SandpackProvider"');
|
|
21908
21908
|
var e = t.dispatch, r = t.listen, n = Be(t, ["dispatch", "listen"]);
|
|
@@ -21912,7 +21912,7 @@ function Re() {
|
|
|
21912
21912
|
listen: r
|
|
21913
21913
|
};
|
|
21914
21914
|
}
|
|
21915
|
-
var
|
|
21915
|
+
var nh = function() {
|
|
21916
21916
|
var t, e, r, n = Re().sandpack;
|
|
21917
21917
|
return {
|
|
21918
21918
|
code: (t = n.files[n.activeFile]) === null || t === void 0 ? void 0 : t.code,
|
|
@@ -21964,7 +21964,7 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
21964
21964
|
"&:hover:not(:disabled,[data-active='true'])": {
|
|
21965
21965
|
backgroundColor: "$colors$surface3"
|
|
21966
21966
|
}
|
|
21967
|
-
}), R2 = q({ padding: 0 }),
|
|
21967
|
+
}), R2 = q({ padding: 0 }), ih = ky({
|
|
21968
21968
|
"0%": {
|
|
21969
21969
|
opacity: 0
|
|
21970
21970
|
},
|
|
@@ -21999,7 +21999,7 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
21999
21999
|
backgroundColor: "$colors$errorSurface"
|
|
22000
22000
|
}
|
|
22001
22001
|
}
|
|
22002
|
-
}, xo)),
|
|
22002
|
+
}, xo)), Nu = q((cc = {
|
|
22003
22003
|
padding: "$space$10",
|
|
22004
22004
|
backgroundColor: "$colors$surface1"
|
|
22005
22005
|
}, cc[".".concat(gt)] = {
|
|
@@ -22008,7 +22008,7 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
22008
22008
|
gap: "$space$2",
|
|
22009
22009
|
padding: "0 $space$3 0 $space$2"
|
|
22010
22010
|
}, cc)), en = q({
|
|
22011
|
-
animation: "".concat(
|
|
22011
|
+
animation: "".concat(ih, " 150ms ease"),
|
|
22012
22012
|
color: "$colors$error",
|
|
22013
22013
|
display: "flex",
|
|
22014
22014
|
flexDirection: "column",
|
|
@@ -22051,7 +22051,7 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
22051
22051
|
height: "$layout$headerHeight",
|
|
22052
22052
|
whiteSpace: "nowrap",
|
|
22053
22053
|
"&:focus": { outline: "none" }
|
|
22054
|
-
}, uc["&:hover > .".concat(Cy)] = { visibility: "unset" }, uc)),
|
|
22054
|
+
}, uc["&:hover > .".concat(Cy)] = { visibility: "unset" }, uc)), sh = function(t) {
|
|
22055
22055
|
var e = t.closableTabs, r = t.className, n = Be(t, ["closableTabs", "className"]), i = Re().sandpack, s = He(), o = i.activeFile, a = i.visibleFiles, l = i.setActiveFile, c = function(f) {
|
|
22056
22056
|
f.stopPropagation();
|
|
22057
22057
|
var h = f.target.closest("[data-active]"), d = h == null ? void 0 : h.getAttribute("title");
|
|
@@ -22105,7 +22105,7 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
22105
22105
|
var e = t.className, r = Be(t, ["className"]), n = He();
|
|
22106
22106
|
return w.jsx("div", E({ className: n("stack", [Ry, e]) }, r));
|
|
22107
22107
|
}, Z2 = function() {
|
|
22108
|
-
var t = U.useContext(
|
|
22108
|
+
var t = U.useContext(th), e = t.theme, r = t.id, n = t.mode;
|
|
22109
22109
|
return { theme: e, themeId: r, themeMode: n };
|
|
22110
22110
|
}, dg = function(t, e) {
|
|
22111
22111
|
if (t.length !== e.length)
|
|
@@ -22116,7 +22116,7 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
22116
22116
|
break;
|
|
22117
22117
|
}
|
|
22118
22118
|
return r;
|
|
22119
|
-
},
|
|
22119
|
+
}, Xu = function(t, e) {
|
|
22120
22120
|
var r = e.line, n = e.column;
|
|
22121
22121
|
return t.line(r).from + (n ?? 0) - 1;
|
|
22122
22122
|
}, I2 = function() {
|
|
@@ -22271,8 +22271,8 @@ Vi["&.".concat(jr, "&:not(:has(span))")] = {
|
|
|
22271
22271
|
}
|
|
22272
22272
|
}, V2 = function(t, e) {
|
|
22273
22273
|
for (var r = {
|
|
22274
|
-
javascript:
|
|
22275
|
-
typescript:
|
|
22274
|
+
javascript: Zu({ jsx: !0, typescript: !1 }),
|
|
22275
|
+
typescript: Zu({ jsx: !0, typescript: !0 }),
|
|
22276
22276
|
html: kE(),
|
|
22277
22277
|
css: q0()
|
|
22278
22278
|
}, n = 0, i = e; n < i.length; n++) {
|
|
@@ -22315,12 +22315,12 @@ function W2(t) {
|
|
|
22315
22315
|
}), c = de.mark({
|
|
22316
22316
|
class: (o = i.className) !== null && o !== void 0 ? o : "",
|
|
22317
22317
|
attributes: (a = i.elementAttributes) !== null && a !== void 0 ? a : void 0
|
|
22318
|
-
}), u =
|
|
22318
|
+
}), u = Xu(r.state.doc, {
|
|
22319
22319
|
line: i.line,
|
|
22320
22320
|
column: i.startColumn
|
|
22321
22321
|
}) + 1;
|
|
22322
22322
|
if (i.startColumn && i.endColumn) {
|
|
22323
|
-
var f =
|
|
22323
|
+
var f = Xu(r.state.doc, {
|
|
22324
22324
|
line: i.line,
|
|
22325
22325
|
column: i.endColumn
|
|
22326
22326
|
}) + 1;
|
|
@@ -22352,7 +22352,7 @@ var Y2 = de.line({ attributes: { class: "cm-errorLine" } }), q2 = _t.fromClass(
|
|
|
22352
22352
|
e.transactions.forEach(function(n) {
|
|
22353
22353
|
var i = n.annotation("show-error");
|
|
22354
22354
|
if (i !== void 0) {
|
|
22355
|
-
var s =
|
|
22355
|
+
var s = Xu(e.view.state.doc, {
|
|
22356
22356
|
line: i
|
|
22357
22357
|
}) + 1;
|
|
22358
22358
|
r.decorations = de.set([Y2.range(s)]);
|
|
@@ -22366,7 +22366,7 @@ var Y2 = de.line({ attributes: { class: "cm-errorLine" } }), q2 = _t.fromClass(
|
|
|
22366
22366
|
return t.decorations;
|
|
22367
22367
|
}
|
|
22368
22368
|
}
|
|
22369
|
-
), wo, hc,
|
|
22369
|
+
), wo, hc, Vu = q({
|
|
22370
22370
|
margin: "0",
|
|
22371
22371
|
display: "block",
|
|
22372
22372
|
fontFamily: "$font$mono",
|
|
@@ -22381,7 +22381,7 @@ var Y2 = de.line({ attributes: { class: "cm-errorLine" } }), q2 = _t.fromClass(
|
|
|
22381
22381
|
".cm-scroller": {
|
|
22382
22382
|
padding: "$space$4 0"
|
|
22383
22383
|
}
|
|
22384
|
-
}, wo[".".concat(
|
|
22384
|
+
}, wo[".".concat(Vu)] = {
|
|
22385
22385
|
padding: "$space$4 0"
|
|
22386
22386
|
}, /**
|
|
22387
22387
|
* For iOS: prevent browser zoom when clicking on sandbox.
|
|
@@ -22425,7 +22425,7 @@ wo["@media screen and (max-width: 768px)"] = {
|
|
|
22425
22425
|
`)) && a.push(`
|
|
22426
22426
|
|
|
22427
22427
|
`), a;
|
|
22428
|
-
},
|
|
22428
|
+
}, oh = U.forwardRef(function(t, e) {
|
|
22429
22429
|
var r = t.code, n = r === void 0 ? "" : r, i = t.filePath, s = t.fileType, o = t.onCodeUpdate, a = t.showLineNumbers, l = a === void 0 ? !1 : a, c = t.showInlineErrors, u = c === void 0 ? !1 : c, f = t.wrapContent, h = f === void 0 ? !1 : f, d = t.editorState, p = d === void 0 ? "pristine" : d, g = t.readOnly, m = g === void 0 ? !1 : g, v = t.showReadOnly, O = v === void 0 ? !0 : v, y = t.decorators, b = t.initMode, x = b === void 0 ? "lazy" : b, S = t.extensions, P = S === void 0 ? [] : S, $ = t.extensionsKeymap, C = $ === void 0 ? [] : $, Q = t.additionalLanguages, D = Q === void 0 ? [] : Q, I = U.useRef(null), L = Ay(I, e), _ = U.useRef(), M = Z2(), F = M.theme, J = M.themeId, ce = U.useState(n), ge = ce[0], B = ce[1], R = U.useState(x === "immediate"), V = R[0], X = R[1], A = He(), W = Re(), se = W.listen, Ae = W.sandpack.autoReload, me = U.useRef([]), Ue = U.useRef([]), rr = yQ(I, {
|
|
22430
22430
|
rootMargin: "600px 0px",
|
|
22431
22431
|
threshold: 0.2
|
|
@@ -22484,7 +22484,7 @@ wo["@media screen and (max-width: 768px)"] = {
|
|
|
22484
22484
|
},
|
|
22485
22485
|
{
|
|
22486
22486
|
key: "mod-Backspace",
|
|
22487
|
-
run:
|
|
22487
|
+
run: zf
|
|
22488
22488
|
}
|
|
22489
22489
|
], De = nt(nt([
|
|
22490
22490
|
kk(),
|
|
@@ -22568,25 +22568,25 @@ wo["@media screen and (max-width: 768px)"] = {
|
|
|
22568
22568
|
A(xt),
|
|
22569
22569
|
gg,
|
|
22570
22570
|
pg
|
|
22571
|
-
]), translate: "no", children: w.jsx("code", { className: A("pre-placeholder", [
|
|
22571
|
+
]), translate: "no", children: w.jsx("code", { className: A("pre-placeholder", [Vu]), style: { marginLeft: Ei() }, children: Nn }) }), m && O && w.jsx("span", E({ className: A("read-only", [B2]) }, {}, { children: "Read-only" }))] }) : w.jsx("div", { ref: L, "aria-autocomplete": "list", "aria-label": i ? "Code Editor for ".concat(Ra(i)) : "Code Editor", "aria-multiline": "true", className: A("cm", [
|
|
22572
22572
|
A(p),
|
|
22573
22573
|
A(xt),
|
|
22574
22574
|
gg,
|
|
22575
22575
|
pg
|
|
22576
|
-
]), onKeyDown: Xn, role: "textbox", tabIndex: 0, translate: "no", suppressHydrationWarning: !0, children: w.jsx("pre", { className: A("pre-placeholder", [
|
|
22576
|
+
]), onKeyDown: Xn, role: "textbox", tabIndex: 0, translate: "no", suppressHydrationWarning: !0, children: w.jsx("pre", { className: A("pre-placeholder", [Vu]), style: { marginLeft: Ei() }, children: Nn }) });
|
|
22577
22577
|
});
|
|
22578
|
-
|
|
22579
|
-
var r = t.showTabs, n = t.showLineNumbers, i = n === void 0 ? !1 : n, s = t.showInlineErrors, o = s === void 0 ? !1 : s, a = t.showRunButton, l = a === void 0 ? !0 : a, c = t.wrapContent, u = c === void 0 ? !1 : c, f = t.closableTabs, h = f === void 0 ? !1 : f, d = t.initMode, p = t.extensions, g = t.extensionsKeymap, m = t.readOnly, v = t.showReadOnly, O = t.additionalLanguages, y = t.className, b = Be(t, ["showTabs", "showLineNumbers", "showInlineErrors", "showRunButton", "wrapContent", "closableTabs", "initMode", "extensions", "extensionsKeymap", "readOnly", "showReadOnly", "additionalLanguages", "className"]), x = Re().sandpack, S =
|
|
22578
|
+
Sf(function(t, e) {
|
|
22579
|
+
var r = t.showTabs, n = t.showLineNumbers, i = n === void 0 ? !1 : n, s = t.showInlineErrors, o = s === void 0 ? !1 : s, a = t.showRunButton, l = a === void 0 ? !0 : a, c = t.wrapContent, u = c === void 0 ? !1 : c, f = t.closableTabs, h = f === void 0 ? !1 : f, d = t.initMode, p = t.extensions, g = t.extensionsKeymap, m = t.readOnly, v = t.showReadOnly, O = t.additionalLanguages, y = t.className, b = Be(t, ["showTabs", "showLineNumbers", "showInlineErrors", "showRunButton", "wrapContent", "closableTabs", "initMode", "extensions", "extensionsKeymap", "readOnly", "showReadOnly", "additionalLanguages", "className"]), x = Re().sandpack, S = nh(), P = S.code, $ = S.updateCode, C = S.readOnly, Q = x.activeFile, D = x.status, I = x.editorState, L = r ?? x.visibleFiles.length > 1, _ = He(), M = function(F, J) {
|
|
22580
22580
|
J === void 0 && (J = !0), $(F, J);
|
|
22581
22581
|
};
|
|
22582
|
-
return w.jsxs(Bs, E({ className: _("editor", [y]) }, b, { children: [L && w.jsx(
|
|
22582
|
+
return w.jsxs(Bs, E({ className: _("editor", [y]) }, b, { children: [L && w.jsx(sh, { closableTabs: h }), w.jsxs("div", { className: _("code-editor", [Dy]), children: [w.jsx(oh, { ref: e, additionalLanguages: O, code: P, editorState: I, extensions: p, extensionsKeymap: g, filePath: Q, initMode: d || x.initMode, onCodeUpdate: function(F) {
|
|
22583
22583
|
var J;
|
|
22584
22584
|
return M(F, (J = x.autoReload) !== null && J !== void 0 ? J : !0);
|
|
22585
22585
|
}, readOnly: m || C, showInlineErrors: o, showLineNumbers: i, showReadOnly: v, wrapContent: u }, Q), l && (!x.autoReload || D === "idle") ? w.jsx(Ey, {}) : null] })] }));
|
|
22586
22586
|
});
|
|
22587
22587
|
U.forwardRef(function(t, e) {
|
|
22588
|
-
var r = t.showTabs, n = t.showLineNumbers, i = t.decorators, s = t.code, o = t.initMode, a = t.wrapContent, l = t.additionalLanguages, c = Be(t, ["showTabs", "showLineNumbers", "decorators", "code", "initMode", "wrapContent", "additionalLanguages"]), u = Re().sandpack, f =
|
|
22589
|
-
return w.jsxs(Bs, E({ className: h("editor-viewer") }, c, { children: [d ? w.jsx(
|
|
22588
|
+
var r = t.showTabs, n = t.showLineNumbers, i = t.decorators, s = t.code, o = t.initMode, a = t.wrapContent, l = t.additionalLanguages, c = Be(t, ["showTabs", "showLineNumbers", "decorators", "code", "initMode", "wrapContent", "additionalLanguages"]), u = Re().sandpack, f = nh().code, h = He(), d = r ?? u.visibleFiles.length > 1;
|
|
22589
|
+
return w.jsxs(Bs, E({ className: h("editor-viewer") }, c, { children: [d ? w.jsx(sh, {}) : null, w.jsx("div", { className: h("code-editor", [Dy]), children: w.jsx(oh, { ref: e, additionalLanguages: l, code: s ?? f, decorators: i, filePath: u.activeFile, initMode: o || u.initMode, showLineNumbers: n, showReadOnly: !1, wrapContent: a, readOnly: !0 }) }), u.status === "idle" ? w.jsx(Ey, {}) : null] }));
|
|
22590
22590
|
});
|
|
22591
22591
|
var Po, ko, U2 = q((Po = {
|
|
22592
22592
|
border: "1px solid $colors$surface2",
|
|
@@ -22679,7 +22679,7 @@ var Po, ko, U2 = q((Po = {
|
|
|
22679
22679
|
return i(l, o.current);
|
|
22680
22680
|
}
|
|
22681
22681
|
};
|
|
22682
|
-
},
|
|
22682
|
+
}, ah = function(t) {
|
|
22683
22683
|
var e = Re().dispatch;
|
|
22684
22684
|
return {
|
|
22685
22685
|
restart: function() {
|
|
@@ -22739,7 +22739,7 @@ var Po, ko, U2 = q((Po = {
|
|
|
22739
22739
|
}
|
|
22740
22740
|
return e;
|
|
22741
22741
|
}, rR = function(t) {
|
|
22742
|
-
var e = t.children, r = t.className, n = Be(t, ["children", "className"]), i = G2(), s =
|
|
22742
|
+
var e = t.children, r = t.className, n = Be(t, ["children", "className"]), i = G2(), s = ah().restart, o = He(), a = Re().sandpack, l = a.runSandpack, c = a.teamId, u = Re().dispatch;
|
|
22743
22743
|
if (!i && !e)
|
|
22744
22744
|
return null;
|
|
22745
22745
|
var f = i == null ? void 0 : i.startsWith("[sandpack-client]"), h = i == null ? void 0 : i.includes("NPM_REGISTRY_UNAUTHENTICATED_REQUEST"), d = function() {
|
|
@@ -22748,7 +22748,7 @@ var Po, ko, U2 = q((Po = {
|
|
|
22748
22748
|
return h ? w.jsxs("div", E({ className: o("overlay", [
|
|
22749
22749
|
o("error"),
|
|
22750
22750
|
os,
|
|
22751
|
-
|
|
22751
|
+
Nu,
|
|
22752
22752
|
r
|
|
22753
22753
|
]) }, t, { children: [w.jsx("p", { className: o("error-message", [en]), children: w.jsx("strong", { children: "Unable to fetch required dependency." }) }), w.jsx("div", { className: o("error-message", [en]), children: w.jsxs("p", { children: ["Authentication required. Please sign in to your account (make sure to allow pop-ups to this page) and try again. If the issue persists, contact", " ", w.jsx("a", { href: "mailto:hello@codesandbox.io?subject=Sandpack Timeout Error", children: "support" }), " ", "for further assistance."] }) }), w.jsx("div", { children: w.jsxs("button", { className: o("button", [
|
|
22754
22754
|
gt,
|
|
@@ -22757,7 +22757,7 @@ var Po, ko, U2 = q((Po = {
|
|
|
22757
22757
|
]), onClick: d, children: [w.jsx(ZE, {}), w.jsx("span", { children: "Sign in" })] }) })] })) : f && i ? w.jsx("div", E({ className: o("overlay", [
|
|
22758
22758
|
o("error"),
|
|
22759
22759
|
os,
|
|
22760
|
-
|
|
22760
|
+
Nu,
|
|
22761
22761
|
r
|
|
22762
22762
|
]) }, n, { children: w.jsxs("div", { className: o("error-message", [en]), children: [w.jsx("p", { className: o("error-title", [q({ fontWeight: "bold" })]), children: "Couldn't connect to server" }), w.jsx("p", { children: tR(i) }), w.jsx("div", { children: w.jsxs("button", { className: o("button", [
|
|
22763
22763
|
o("icon-standalone"),
|
|
@@ -22903,7 +22903,7 @@ var _y = function(t) {
|
|
|
22903
22903
|
jr,
|
|
22904
22904
|
Zn
|
|
22905
22905
|
]), children: [w.jsx(WE, {}), w.jsx("span", { children: "Open Sandbox" })] });
|
|
22906
|
-
}, mn,
|
|
22906
|
+
}, mn, Wu = q({
|
|
22907
22907
|
transform: "translate(-4px, 9px) scale(0.13, 0.13)",
|
|
22908
22908
|
"*": { position: "absolute", width: "96px", height: "96px" }
|
|
22909
22909
|
}), dR = q((mn = {
|
|
@@ -22914,7 +22914,7 @@ var _y = function(t) {
|
|
|
22914
22914
|
width: "32px",
|
|
22915
22915
|
height: "32px",
|
|
22916
22916
|
borderRadius: "$border$radius"
|
|
22917
|
-
}, mn[".".concat(
|
|
22917
|
+
}, mn[".".concat(Wu)] = { display: "flex" }, mn[".sp-button.".concat(gt)] = { display: "none" }, mn["&:hover .sp-button.".concat(gt)] = { display: "flex" }, mn["&:hover .sp-button.".concat(gt, " > span")] = { display: "none" }, mn["&:hover .".concat(Wu)] = { display: "none" }, mn)), pR = ky({
|
|
22918
22918
|
"0%": {
|
|
22919
22919
|
transform: "rotateX(-25.5deg) rotateY(45deg)"
|
|
22920
22920
|
},
|
|
@@ -22957,7 +22957,7 @@ var _y = function(t) {
|
|
|
22957
22957
|
}
|
|
22958
22958
|
}), OR = function(t) {
|
|
22959
22959
|
var e = t.className, r = t.showOpenInCodeSandbox, n = Be(t, ["className", "showOpenInCodeSandbox"]), i = He();
|
|
22960
|
-
return w.jsxs("div", E({ className: i("cube-wrapper", [dR, e]), title: "Open in CodeSandbox" }, n, { children: [r && w.jsx(Ny, {}), w.jsx("div", { className: i("cube", [
|
|
22960
|
+
return w.jsxs("div", E({ className: i("cube-wrapper", [dR, e]), title: "Open in CodeSandbox" }, n, { children: [r && w.jsx(Ny, {}), w.jsx("div", { className: i("cube", [Wu]), children: w.jsxs("div", { className: i("sides", [gR]), children: [w.jsx("div", { className: "top" }), w.jsx("div", { className: "right" }), w.jsx("div", { className: "bottom" }), w.jsx("div", { className: "left" }), w.jsx("div", { className: "front" }), w.jsx("div", { className: "back" })] }) })] }));
|
|
22961
22961
|
}, mR = q({
|
|
22962
22962
|
backgroundColor: "$colors$surface1"
|
|
22963
22963
|
}), vR = function(t) {
|
|
@@ -22976,7 +22976,7 @@ var _y = function(t) {
|
|
|
22976
22976
|
a("error"),
|
|
22977
22977
|
os,
|
|
22978
22978
|
Qy,
|
|
22979
|
-
|
|
22979
|
+
Nu,
|
|
22980
22980
|
n
|
|
22981
22981
|
]) }, o, { children: w.jsxs("div", { className: a("error-message", [en]), children: [w.jsx("p", { className: a("error-title", [q({ fontWeight: "bold" })]), children: "Couldn't connect to server" }), w.jsx("div", { className: a("error-message", [en]), children: w.jsxs("p", { children: ["This means sandpack cannot connect to the runtime or your network is having some issues. Please check the network tab in your browser and try again. If the problem persists, report it via", " ", w.jsx("a", { href: "mailto:hello@codesandbox.io?subject=Sandpack Timeout Error", children: "email" }), " ", "or submit an issue on", " ", w.jsx("a", { href: "https://github.com/codesandbox/sandpack/issues", rel: "noreferrer noopener", target: "_blank", children: "GitHub." })] }) }), w.jsxs("p", { className: a("error-message", [
|
|
22982
22982
|
en({ errorCode: !0 })
|
|
@@ -23007,7 +23007,7 @@ var _y = function(t) {
|
|
|
23007
23007
|
bottom: "$space$4",
|
|
23008
23008
|
zIndex: "$top",
|
|
23009
23009
|
color: "$colors$clickable",
|
|
23010
|
-
animation: "".concat(
|
|
23010
|
+
animation: "".concat(ih, " 150ms ease"),
|
|
23011
23011
|
fontFamily: "$font$mono",
|
|
23012
23012
|
fontSize: ".8em",
|
|
23013
23013
|
width: "75%",
|
|
@@ -23029,7 +23029,7 @@ var _y = function(t) {
|
|
|
23029
23029
|
bottom: "$space$4",
|
|
23030
23030
|
zIndex: "$top",
|
|
23031
23031
|
color: "$colors$clickable",
|
|
23032
|
-
animation: "".concat(
|
|
23032
|
+
animation: "".concat(ih, " 150ms ease"),
|
|
23033
23033
|
fontFamily: "$font$mono",
|
|
23034
23034
|
fontSize: ".8em",
|
|
23035
23035
|
width: "75%",
|
|
@@ -23160,7 +23160,7 @@ var wR = function(t) {
|
|
|
23160
23160
|
}), ER = U.forwardRef(function(t, e) {
|
|
23161
23161
|
var r = t.showNavigator, n = r === void 0 ? !1 : r, i = t.showRefreshButton, s = i === void 0 ? !0 : i, o = t.showOpenInCodeSandbox, a = o === void 0 ? !0 : o, l = t.showSandpackErrorOverlay, c = l === void 0 ? !0 : l;
|
|
23162
23162
|
t.showOpenNewtab;
|
|
23163
|
-
var u = t.showRestartButton, f = u === void 0 ? !0 : u, h = t.actionsChildren, d = h === void 0 ? w.jsx(w.Fragment, {}) : h, p = t.children, g = t.className, m = t.startRoute, v = m === void 0 ? "/" : m, O = Be(t, ["showNavigator", "showRefreshButton", "showOpenInCodeSandbox", "showSandpackErrorOverlay", "showOpenNewtab", "showRestartButton", "actionsChildren", "children", "className", "startRoute"]), y = My({ startRoute: v }), b = y.sandpack, x = y.listen, S = y.iframe, P = y.getClient, $ = y.clientId, C = y.dispatch, Q = U.useState(null), D = Q[0], I = Q[1], L = b.status, _ = K2($).refresh, M =
|
|
23163
|
+
var u = t.showRestartButton, f = u === void 0 ? !0 : u, h = t.actionsChildren, d = h === void 0 ? w.jsx(w.Fragment, {}) : h, p = t.children, g = t.className, m = t.startRoute, v = m === void 0 ? "/" : m, O = Be(t, ["showNavigator", "showRefreshButton", "showOpenInCodeSandbox", "showSandpackErrorOverlay", "showOpenNewtab", "showRestartButton", "actionsChildren", "children", "className", "startRoute"]), y = My({ startRoute: v }), b = y.sandpack, x = y.listen, S = y.iframe, P = y.getClient, $ = y.clientId, C = y.dispatch, Q = U.useState(null), D = Q[0], I = Q[1], L = b.status, _ = K2($).refresh, M = ah($).restart, F = He();
|
|
23164
23164
|
U.useEffect(function() {
|
|
23165
23165
|
var ce = x(function(ge) {
|
|
23166
23166
|
ge.type === "resize" && I(ge.height);
|
|
@@ -23229,7 +23229,7 @@ ll({ status: "pass" });
|
|
|
23229
23229
|
ll({ status: "fail" });
|
|
23230
23230
|
ll({ status: "skip" });
|
|
23231
23231
|
ll({ status: "title" });
|
|
23232
|
-
var
|
|
23232
|
+
var lh = q({
|
|
23233
23233
|
variants: {
|
|
23234
23234
|
status: {
|
|
23235
23235
|
pass: { background: "var(--test-pass)", color: "$colors$surface1" },
|
|
@@ -23238,9 +23238,9 @@ var ah = q({
|
|
|
23238
23238
|
}
|
|
23239
23239
|
}
|
|
23240
23240
|
});
|
|
23241
|
-
|
|
23242
|
-
|
|
23243
|
-
|
|
23241
|
+
lh({ status: "run" });
|
|
23242
|
+
lh({ status: "pass" });
|
|
23243
|
+
lh({ status: "fail" });
|
|
23244
23244
|
q({
|
|
23245
23245
|
marginLeft: "$space$4"
|
|
23246
23246
|
});
|
|
@@ -23345,7 +23345,7 @@ var RR = ["SyntaxError: ", "Error in sandbox:"], AR = {
|
|
|
23345
23345
|
id: "random",
|
|
23346
23346
|
method: "clear",
|
|
23347
23347
|
data: ["Console was cleared"]
|
|
23348
|
-
}, mg = "@t", vg = "#@t", yg = "@r", bg = 1e4, Xy = 2,
|
|
23348
|
+
}, mg = "@t", vg = "#@t", yg = "@r", bg = 1e4, Xy = 2, Lu = 400, DR = Lu * 2, gc = function() {
|
|
23349
23349
|
var e = eval;
|
|
23350
23350
|
return e("this");
|
|
23351
23351
|
}(), jR = typeof ArrayBuffer == "function", MR = typeof Map == "function", ZR = typeof Set == "function", as;
|
|
@@ -23426,12 +23426,12 @@ var Sg = {
|
|
|
23426
23426
|
}
|
|
23427
23427
|
return t;
|
|
23428
23428
|
}
|
|
23429
|
-
},
|
|
23429
|
+
}, Yu = function(t) {
|
|
23430
23430
|
var e;
|
|
23431
23431
|
if (typeof t == "string" || typeof t == "number" || t === null)
|
|
23432
23432
|
return t;
|
|
23433
23433
|
if (Array.isArray(t))
|
|
23434
|
-
return t.map(
|
|
23434
|
+
return t.map(Yu);
|
|
23435
23435
|
if (typeof t == "object" && mg in t) {
|
|
23436
23436
|
var r = t[mg], n = Sg[r];
|
|
23437
23437
|
return n(t.data);
|
|
@@ -23442,7 +23442,7 @@ var Sg = {
|
|
|
23442
23442
|
var i = {};
|
|
23443
23443
|
return Object.entries(t).forEach(function(s) {
|
|
23444
23444
|
var o = s[0], a = s[1];
|
|
23445
|
-
i[o] =
|
|
23445
|
+
i[o] = Yu(a);
|
|
23446
23446
|
}), i;
|
|
23447
23447
|
}
|
|
23448
23448
|
return t;
|
|
@@ -23458,7 +23458,7 @@ var Sg = {
|
|
|
23458
23458
|
var i = Object.entries(t), s = Object.entries(t).reduce(function(o, a, l) {
|
|
23459
23459
|
var c = a[0], u = a[1], f = l === 0 ? "" : ", ", h = i.length > 10 ? `
|
|
23460
23460
|
` : "", d = Rs(u, e, r);
|
|
23461
|
-
return l ===
|
|
23461
|
+
return l === Lu ? o + h + "..." : l > Lu ? o : o + "".concat(f).concat(h).concat(c, ": ") + d;
|
|
23462
23462
|
}, "");
|
|
23463
23463
|
return "".concat(n, "{ ").concat(s).concat(i.length > 10 ? `
|
|
23464
23464
|
` : " ", "}");
|
|
@@ -23466,7 +23466,7 @@ var Sg = {
|
|
|
23466
23466
|
var n;
|
|
23467
23467
|
r === void 0 && (r = 0);
|
|
23468
23468
|
try {
|
|
23469
|
-
var i =
|
|
23469
|
+
var i = Yu(t);
|
|
23470
23470
|
if (Array.isArray(i))
|
|
23471
23471
|
return IR(i, e, r + 1);
|
|
23472
23472
|
switch (typeof i) {
|
|
@@ -23528,7 +23528,7 @@ var Sg = {
|
|
|
23528
23528
|
var f = s.slice(i, s.length);
|
|
23529
23529
|
return w.jsx("div", { className: r("console-item", [
|
|
23530
23530
|
VR({ variant: NR(l) })
|
|
23531
|
-
]), children: w.jsx(
|
|
23531
|
+
]), children: w.jsx(oh, { code: l === "clear" ? c : Rs(c, f), fileType: "js", initMode: "user-visible", showReadOnly: !1, readOnly: !0, wrapContent: !0 }) }, "".concat(a, "-").concat(u));
|
|
23532
23532
|
}) }, a) : null;
|
|
23533
23533
|
}) });
|
|
23534
23534
|
}, VR = q(($o = {
|
|
@@ -23665,7 +23665,7 @@ var Sg = {
|
|
|
23665
23665
|
}, qR = U.forwardRef(function(t, e) {
|
|
23666
23666
|
var r, n = t.showHeader, i = n === void 0 ? !0 : n, s = t.showSyntaxError, o = s === void 0 ? !1 : s, a = t.maxMessageCount, l = t.onLogsChange, c = t.className;
|
|
23667
23667
|
t.showSetupProgress;
|
|
23668
|
-
var u = t.showResetConsoleButton, f = u === void 0 ? !0 : u, h = t.showRestartButton, d = h === void 0 ? !0 : h, p = t.resetOnPreviewRestart, g = p === void 0 ? !1 : p, m = t.actionsChildren, v = m === void 0 ? w.jsx(w.Fragment, {}) : m, O = t.standalone, y = O === void 0 ? !1 : O, b = Be(t, ["showHeader", "showSyntaxError", "maxMessageCount", "onLogsChange", "className", "showSetupProgress", "showResetConsoleButton", "showRestartButton", "resetOnPreviewRestart", "actionsChildren", "standalone"]), x = Re().sandpack.environment, S = My(), P = S.iframe, $ = S.clientId, C =
|
|
23668
|
+
var u = t.showResetConsoleButton, f = u === void 0 ? !0 : u, h = t.showRestartButton, d = h === void 0 ? !0 : h, p = t.resetOnPreviewRestart, g = p === void 0 ? !1 : p, m = t.actionsChildren, v = m === void 0 ? w.jsx(w.Fragment, {}) : m, O = t.standalone, y = O === void 0 ? !1 : O, b = Be(t, ["showHeader", "showSyntaxError", "maxMessageCount", "onLogsChange", "className", "showSetupProgress", "showResetConsoleButton", "showRestartButton", "resetOnPreviewRestart", "actionsChildren", "standalone"]), x = Re().sandpack.environment, S = My(), P = S.iframe, $ = S.clientId, C = ah().restart, Q = U.useState(x === "node" ? "server" : "client"), D = Q[0], I = Q[1], L = y ? $ : void 0, _ = YR({
|
|
23669
23669
|
maxMessageCount: a,
|
|
23670
23670
|
showSyntaxError: o,
|
|
23671
23671
|
resetOnPreviewRestart: g,
|
|
@@ -23784,9 +23784,9 @@ const BR = {
|
|
|
23784
23784
|
txt: "plaintext",
|
|
23785
23785
|
vue: "vue"
|
|
23786
23786
|
}, zR = (t) => {
|
|
23787
|
-
const { code: e, updateCode: r } =
|
|
23787
|
+
const { code: e, updateCode: r } = nh(), { sandpack: n } = Re(), i = BR[n.activeFile.split(".").pop() ?? "js"];
|
|
23788
23788
|
return t.editorFiles.current = n, /* @__PURE__ */ w.jsxs(Bs, { style: { height: "100vh", margin: 0 }, children: [
|
|
23789
|
-
/* @__PURE__ */ w.jsx(
|
|
23789
|
+
/* @__PURE__ */ w.jsx(sh, { closableTabs: !0 }),
|
|
23790
23790
|
/* @__PURE__ */ w.jsx(
|
|
23791
23791
|
"div",
|
|
23792
23792
|
{
|
|
@@ -23813,17 +23813,17 @@ function UR(t) {
|
|
|
23813
23813
|
null
|
|
23814
23814
|
);
|
|
23815
23815
|
}
|
|
23816
|
-
function
|
|
23816
|
+
function qu(t, e, r, n) {
|
|
23817
23817
|
var s, o, a, l, c, u;
|
|
23818
23818
|
const i = Object.assign({}, e);
|
|
23819
23819
|
for (const f in r)
|
|
23820
23820
|
i[f] || (i[f] = {}), typeof r[f] == "object" ? ((s = Object.keys((e == null ? void 0 : e[f]) || {})) == null ? void 0 : s.length) === 0 && ((o = Object.keys((r == null ? void 0 : r[f]) || {})) == null ? void 0 : o.length) === 0 ? i[f] = (a = t[`${f}`]) == null ? void 0 : a.code : ((l = Object.keys((e == null ? void 0 : e[f]) || {})) == null ? void 0 : l.length) === 0 ? i[f] = Object.entries(r[f]).reduce(
|
|
23821
23821
|
(h, [d, p]) => {
|
|
23822
23822
|
var g;
|
|
23823
|
-
return p !== null ? h[d] =
|
|
23823
|
+
return p !== null ? h[d] = qu(t, i[f], p, n) : h[d] = (g = t[`${f}/${d}`]) == null ? void 0 : g.code, h;
|
|
23824
23824
|
},
|
|
23825
23825
|
{}
|
|
23826
|
-
) : ((c = Object.keys((r == null ? void 0 : r[f]) || {})) == null ? void 0 : c.length) === 0 ? i[f] = e[f] : i[f] =
|
|
23826
|
+
) : ((c = Object.keys((r == null ? void 0 : r[f]) || {})) == null ? void 0 : c.length) === 0 ? i[f] = e[f] : i[f] = qu(t, i[f], r[f], n) : i[f] = (u = t[`${n}`]) == null ? void 0 : u.code;
|
|
23827
23827
|
return i;
|
|
23828
23828
|
}
|
|
23829
23829
|
const wg = (t, e) => Object.fromEntries(
|
|
@@ -23833,7 +23833,7 @@ const wg = (t, e) => Object.fromEntries(
|
|
|
23833
23833
|
return Object.keys({ ...t, ...r }).reduce(
|
|
23834
23834
|
(i, s) => {
|
|
23835
23835
|
const o = s.split("/").splice(1), a = UR(o);
|
|
23836
|
-
return i =
|
|
23836
|
+
return i = qu(t, i, a, s), i;
|
|
23837
23837
|
},
|
|
23838
23838
|
{}
|
|
23839
23839
|
);
|
|
@@ -24099,7 +24099,7 @@ function Oc(t, e, r) {
|
|
|
24099
24099
|
);
|
|
24100
24100
|
return n ?? r;
|
|
24101
24101
|
}
|
|
24102
|
-
const
|
|
24102
|
+
const Bu = {
|
|
24103
24103
|
[Yy]: {
|
|
24104
24104
|
exposeProperties: {
|
|
24105
24105
|
files: (t) => Array.prototype.slice.call(t.files),
|
|
@@ -24143,7 +24143,7 @@ const qu = {
|
|
|
24143
24143
|
}
|
|
24144
24144
|
};
|
|
24145
24145
|
function tA(t, e) {
|
|
24146
|
-
const r =
|
|
24146
|
+
const r = Bu[t];
|
|
24147
24147
|
if (!r)
|
|
24148
24148
|
throw new Error(`native type ${t} has no configuration`);
|
|
24149
24149
|
const n = new eA(r);
|
|
@@ -24153,8 +24153,8 @@ function mc(t) {
|
|
|
24153
24153
|
if (!t)
|
|
24154
24154
|
return null;
|
|
24155
24155
|
const e = Array.prototype.slice.call(t.types || []);
|
|
24156
|
-
return Object.keys(
|
|
24157
|
-
const n =
|
|
24156
|
+
return Object.keys(Bu).filter((r) => {
|
|
24157
|
+
const n = Bu[r];
|
|
24158
24158
|
return n != null && n.matchesTypes ? n.matchesTypes.some(
|
|
24159
24159
|
(i) => e.indexOf(i) > -1
|
|
24160
24160
|
) : !1;
|
|
@@ -24611,10 +24611,10 @@ var Cn = function(t) {
|
|
|
24611
24611
|
}, t.fromRect = function(e) {
|
|
24612
24612
|
return new t(e.x, e.y, e.width, e.height);
|
|
24613
24613
|
}, t;
|
|
24614
|
-
}(),
|
|
24614
|
+
}(), ch = function(t) {
|
|
24615
24615
|
return t instanceof SVGElement && "getBBox" in t;
|
|
24616
24616
|
}, Hy = function(t) {
|
|
24617
|
-
if (
|
|
24617
|
+
if (ch(t)) {
|
|
24618
24618
|
var e = t.getBBox(), r = e.width, n = e.height;
|
|
24619
24619
|
return !r && !n;
|
|
24620
24620
|
}
|
|
@@ -24655,7 +24655,7 @@ var Cn = function(t) {
|
|
|
24655
24655
|
return Co.get(t);
|
|
24656
24656
|
if (Hy(t))
|
|
24657
24657
|
return Co.set(t, Ag), Ag;
|
|
24658
|
-
var r = getComputedStyle(t), n =
|
|
24658
|
+
var r = getComputedStyle(t), n = ch(t) && t.ownerSVGElement && t.getBBox(), i = !vA && r.boxSizing === "border-box", s = mA.test(r.writingMode || ""), o = !n && Rg.test(r.overflowY || ""), a = !n && Rg.test(r.overflowX || ""), l = n ? 0 : ar(r.paddingTop), c = n ? 0 : ar(r.paddingRight), u = n ? 0 : ar(r.paddingBottom), f = n ? 0 : ar(r.paddingLeft), h = n ? 0 : ar(r.borderTopWidth), d = n ? 0 : ar(r.borderRightWidth), p = n ? 0 : ar(r.borderBottomWidth), g = n ? 0 : ar(r.borderLeftWidth), m = f + c, v = l + u, O = g + d, y = h + p, b = a ? t.offsetHeight - y - t.clientHeight : 0, x = o ? t.offsetWidth - O - t.clientWidth : 0, S = i ? m + O : 0, P = i ? v + y : 0, $ = n ? n.width : ar(r.width) - S - x, C = n ? n.height : ar(r.height) - P - b, Q = $ + m + x + O, D = C + v + b + y, I = Cn({
|
|
24659
24659
|
devicePixelContentBoxSize: ci(Math.round($ * devicePixelRatio), Math.round(C * devicePixelRatio), s),
|
|
24660
24660
|
borderBoxSize: ci(Q, D, s),
|
|
24661
24661
|
contentBoxSize: ci($, C, s),
|
|
@@ -24791,10 +24791,10 @@ var Cn = function(t) {
|
|
|
24791
24791
|
return ls.removeEventListener(r, e.listener, !0);
|
|
24792
24792
|
}), this.stopped = !0);
|
|
24793
24793
|
}, t;
|
|
24794
|
-
}(),
|
|
24795
|
-
!na && t > 0 &&
|
|
24794
|
+
}(), zu = new QA(), Zg = function(t) {
|
|
24795
|
+
!na && t > 0 && zu.start(), na += t, !na && zu.stop();
|
|
24796
24796
|
}, CA = function(t) {
|
|
24797
|
-
return !
|
|
24797
|
+
return !ch(t) && !OA(t) && getComputedStyle(t).display === "inline";
|
|
24798
24798
|
}, EA = function() {
|
|
24799
24799
|
function t(e, r) {
|
|
24800
24800
|
this.target = e, this.observedBox = r || As.CONTENT_BOX, this.lastReportedSize = {
|
|
@@ -24824,7 +24824,7 @@ var Cn = function(t) {
|
|
|
24824
24824
|
Eo.set(e, n);
|
|
24825
24825
|
}, t.observe = function(e, r, n) {
|
|
24826
24826
|
var i = Eo.get(e), s = i.observationTargets.length === 0;
|
|
24827
|
-
Ig(i.observationTargets, r) < 0 && (s && Qn.push(i), i.observationTargets.push(new EA(r, n && n.box)), Zg(1),
|
|
24827
|
+
Ig(i.observationTargets, r) < 0 && (s && Qn.push(i), i.observationTargets.push(new EA(r, n && n.box)), Zg(1), zu.schedule());
|
|
24828
24828
|
}, t.unobserve = function(e, r) {
|
|
24829
24829
|
var n = Eo.get(e), i = Ig(n.observationTargets, r), s = n.observationTargets.length === 1;
|
|
24830
24830
|
i >= 0 && (s && Qn.splice(Qn.indexOf(n), 1), n.observationTargets.splice(i, 1), Zg(-1));
|
|
@@ -24859,18 +24859,18 @@ var Cn = function(t) {
|
|
|
24859
24859
|
}, t.toString = function() {
|
|
24860
24860
|
return "function ResizeObserver () { [polyfill code] }";
|
|
24861
24861
|
}, t;
|
|
24862
|
-
}(),
|
|
24863
|
-
return
|
|
24862
|
+
}(), Uu = function(t, e) {
|
|
24863
|
+
return Uu = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
24864
24864
|
r.__proto__ = n;
|
|
24865
24865
|
} || function(r, n) {
|
|
24866
24866
|
for (var i in n)
|
|
24867
24867
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
24868
|
-
},
|
|
24868
|
+
}, Uu(t, e);
|
|
24869
24869
|
};
|
|
24870
24870
|
function rb(t, e) {
|
|
24871
24871
|
if (typeof e != "function" && e !== null)
|
|
24872
24872
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
24873
|
-
|
|
24873
|
+
Uu(t, e);
|
|
24874
24874
|
function r() {
|
|
24875
24875
|
this.constructor = t;
|
|
24876
24876
|
}
|
|
@@ -24983,7 +24983,7 @@ function MA(t, e, r) {
|
|
|
24983
24983
|
}
|
|
24984
24984
|
return n;
|
|
24985
24985
|
}
|
|
24986
|
-
var
|
|
24986
|
+
var uh = Wt({
|
|
24987
24987
|
transformPagePoint: function(t) {
|
|
24988
24988
|
return t;
|
|
24989
24989
|
},
|
|
@@ -24993,24 +24993,24 @@ var ch = Wt({
|
|
|
24993
24993
|
function ZA() {
|
|
24994
24994
|
return Ee(cl).visualElement;
|
|
24995
24995
|
}
|
|
24996
|
-
var ul = Wt(null), Ci = typeof document < "u", Ng = Ci ? hm : ie,
|
|
24996
|
+
var ul = Wt(null), Ci = typeof document < "u", Ng = Ci ? hm : ie, Fu = { current: null }, ob = !1;
|
|
24997
24997
|
function IA() {
|
|
24998
24998
|
if (ob = !0, !!Ci)
|
|
24999
24999
|
if (window.matchMedia) {
|
|
25000
25000
|
var t = window.matchMedia("(prefers-reduced-motion)"), e = function() {
|
|
25001
|
-
return
|
|
25001
|
+
return Fu.current = t.matches;
|
|
25002
25002
|
};
|
|
25003
25003
|
t.addListener(e), e();
|
|
25004
25004
|
} else
|
|
25005
|
-
|
|
25005
|
+
Fu.current = !1;
|
|
25006
25006
|
}
|
|
25007
25007
|
function _A() {
|
|
25008
25008
|
!ob && IA();
|
|
25009
|
-
var t = ze(_e(
|
|
25009
|
+
var t = ze(_e(Fu.current), 1), e = t[0];
|
|
25010
25010
|
return e;
|
|
25011
25011
|
}
|
|
25012
25012
|
function NA() {
|
|
25013
|
-
var t = _A(), e = Ee(
|
|
25013
|
+
var t = _A(), e = Ee(uh).reducedMotion;
|
|
25014
25014
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
|
25015
25015
|
}
|
|
25016
25016
|
function XA(t, e, r, n) {
|
|
@@ -25173,7 +25173,7 @@ function GA(t) {
|
|
|
25173
25173
|
function a(l, c) {
|
|
25174
25174
|
var u = HA(l);
|
|
25175
25175
|
l = N(N({}, l), { layoutId: u });
|
|
25176
|
-
var f = Ee(
|
|
25176
|
+
var f = Ee(uh), h = null, d = qA(l), p = f.isStatic ? void 0 : zA(), g = s(l, f.isStatic);
|
|
25177
25177
|
return !f.isStatic && Ci && (d.visualElement = XA(o, g, N(N({}, f), l), r), UA(p, l, d.visualElement, n || Ds.projectionNodeConstructor), h = MA(l, d.visualElement, e)), U.createElement(
|
|
25178
25178
|
FA,
|
|
25179
25179
|
{ visualElement: d.visualElement, props: N(N({}, f), l) },
|
|
@@ -25181,7 +25181,7 @@ function GA(t) {
|
|
|
25181
25181
|
U.createElement(cl.Provider, { value: d }, i(o, l, p, VA(g, d.visualElement, c), g, f.isStatic, d.visualElement))
|
|
25182
25182
|
);
|
|
25183
25183
|
}
|
|
25184
|
-
return
|
|
25184
|
+
return Sf(a);
|
|
25185
25185
|
}
|
|
25186
25186
|
function HA(t) {
|
|
25187
25187
|
var e, r = t.layoutId, n = (e = Ee(ub)) === null || e === void 0 ? void 0 : e.id;
|
|
@@ -25232,7 +25232,7 @@ var JA = [
|
|
|
25232
25232
|
"use",
|
|
25233
25233
|
"view"
|
|
25234
25234
|
];
|
|
25235
|
-
function
|
|
25235
|
+
function fh(t) {
|
|
25236
25236
|
return (
|
|
25237
25237
|
/**
|
|
25238
25238
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -25256,9 +25256,9 @@ var Da = {};
|
|
|
25256
25256
|
function e5(t) {
|
|
25257
25257
|
Object.assign(Da, t);
|
|
25258
25258
|
}
|
|
25259
|
-
var
|
|
25259
|
+
var Gu = ["", "X", "Y", "Z"], t5 = ["translate", "scale", "rotate", "skew"], js = ["transformPerspective", "x", "y", "z"];
|
|
25260
25260
|
t5.forEach(function(t) {
|
|
25261
|
-
return
|
|
25261
|
+
return Gu.forEach(function(e) {
|
|
25262
25262
|
return js.push(t + e);
|
|
25263
25263
|
});
|
|
25264
25264
|
});
|
|
@@ -25304,7 +25304,7 @@ function pb(t) {
|
|
|
25304
25304
|
var l5 = function(t, e) {
|
|
25305
25305
|
return e && typeof t == "number" ? e.transform(t) : t;
|
|
25306
25306
|
};
|
|
25307
|
-
const gb = (t, e) => (r) => Math.max(Math.min(r, e), t), us = (t) => t % 1 ? Number(t.toFixed(5)) : t, Ms = /(-)?([\d]*\.?[\d])+/g,
|
|
25307
|
+
const gb = (t, e) => (r) => Math.max(Math.min(r, e), t), us = (t) => t % 1 ? Number(t.toFixed(5)) : t, Ms = /(-)?([\d]*\.?[\d])+/g, Hu = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, c5 = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
|
|
25308
25308
|
function Fs(t) {
|
|
25309
25309
|
return typeof t == "string";
|
|
25310
25310
|
}
|
|
@@ -25316,7 +25316,7 @@ const _n = {
|
|
|
25316
25316
|
test: (e) => Fs(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
25317
25317
|
parse: parseFloat,
|
|
25318
25318
|
transform: (e) => `${e}${t}`
|
|
25319
|
-
}), Ur = Gs("deg"), Pr = Gs("%"), re = Gs("px"), u5 = Gs("vh"), f5 = Gs("vw"), Vg = Object.assign(Object.assign({}, Pr), { parse: (t) => Pr.parse(t) / 100, transform: (t) => Pr.transform(t * 100) }),
|
|
25319
|
+
}), Ur = Gs("deg"), Pr = Gs("%"), re = Gs("px"), u5 = Gs("vh"), f5 = Gs("vw"), Vg = Object.assign(Object.assign({}, Pr), { parse: (t) => Pr.parse(t) / 100, transform: (t) => Pr.transform(t * 100) }), hh = (t, e) => (r) => !!(Fs(r) && c5.test(r) && r.startsWith(t) || e && Object.prototype.hasOwnProperty.call(r, e)), Ob = (t, e, r) => (n) => {
|
|
25320
25320
|
if (!Fs(n))
|
|
25321
25321
|
return n;
|
|
25322
25322
|
const [i, s, o, a] = n.match(Ms);
|
|
@@ -25327,11 +25327,11 @@ const _n = {
|
|
|
25327
25327
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
25328
25328
|
};
|
|
25329
25329
|
}, kn = {
|
|
25330
|
-
test:
|
|
25330
|
+
test: hh("hsl", "hue"),
|
|
25331
25331
|
parse: Ob("hue", "saturation", "lightness"),
|
|
25332
25332
|
transform: ({ hue: t, saturation: e, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(t) + ", " + Pr.transform(us(e)) + ", " + Pr.transform(us(r)) + ", " + us(fs.transform(n)) + ")"
|
|
25333
25333
|
}, h5 = gb(0, 255), bc = Object.assign(Object.assign({}, _n), { transform: (t) => Math.round(h5(t)) }), nn = {
|
|
25334
|
-
test:
|
|
25334
|
+
test: hh("rgb", "red"),
|
|
25335
25335
|
parse: Ob("red", "green", "blue"),
|
|
25336
25336
|
transform: ({ red: t, green: e, blue: r, alpha: n = 1 }) => "rgba(" + bc.transform(t) + ", " + bc.transform(e) + ", " + bc.transform(r) + ", " + us(fs.transform(n)) + ")"
|
|
25337
25337
|
};
|
|
@@ -25344,25 +25344,25 @@ function d5(t) {
|
|
|
25344
25344
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
25345
25345
|
};
|
|
25346
25346
|
}
|
|
25347
|
-
const
|
|
25348
|
-
test:
|
|
25347
|
+
const Ku = {
|
|
25348
|
+
test: hh("#"),
|
|
25349
25349
|
parse: d5,
|
|
25350
25350
|
transform: nn.transform
|
|
25351
25351
|
}, ft = {
|
|
25352
|
-
test: (t) => nn.test(t) ||
|
|
25353
|
-
parse: (t) => nn.test(t) ? nn.parse(t) : kn.test(t) ? kn.parse(t) :
|
|
25352
|
+
test: (t) => nn.test(t) || Ku.test(t) || kn.test(t),
|
|
25353
|
+
parse: (t) => nn.test(t) ? nn.parse(t) : kn.test(t) ? kn.parse(t) : Ku.parse(t),
|
|
25354
25354
|
transform: (t) => Fs(t) ? t : t.hasOwnProperty("red") ? nn.transform(t) : kn.transform(t)
|
|
25355
25355
|
}, mb = "${c}", vb = "${n}";
|
|
25356
25356
|
function p5(t) {
|
|
25357
25357
|
var e, r, n, i;
|
|
25358
|
-
return isNaN(t) && Fs(t) && ((r = (e = t.match(Ms)) === null || e === void 0 ? void 0 : e.length) !== null && r !== void 0 ? r : 0) + ((i = (n = t.match(
|
|
25358
|
+
return isNaN(t) && Fs(t) && ((r = (e = t.match(Ms)) === null || e === void 0 ? void 0 : e.length) !== null && r !== void 0 ? r : 0) + ((i = (n = t.match(Hu)) === null || n === void 0 ? void 0 : n.length) !== null && i !== void 0 ? i : 0) > 0;
|
|
25359
25359
|
}
|
|
25360
25360
|
function yb(t) {
|
|
25361
25361
|
typeof t == "number" && (t = `${t}`);
|
|
25362
25362
|
const e = [];
|
|
25363
25363
|
let r = 0;
|
|
25364
|
-
const n = t.match(
|
|
25365
|
-
n && (r = n.length, t = t.replace(
|
|
25364
|
+
const n = t.match(Hu);
|
|
25365
|
+
n && (r = n.length, t = t.replace(Hu, mb), e.push(...n.map(ft.parse)));
|
|
25366
25366
|
const i = t.match(Ms);
|
|
25367
25367
|
return i && (t = t.replace(Ms, vb), e.push(...i.map(_n.parse))), { values: e, numColors: r, tokenised: t };
|
|
25368
25368
|
}
|
|
@@ -25395,7 +25395,7 @@ function v5(t) {
|
|
|
25395
25395
|
let s = m5.has(e) ? 1 : 0;
|
|
25396
25396
|
return n !== r && (s *= 100), e + "(" + s + i + ")";
|
|
25397
25397
|
}
|
|
25398
|
-
const y5 = /([a-z-]*)\(.*?\)/g,
|
|
25398
|
+
const y5 = /([a-z-]*)\(.*?\)/g, Ju = Object.assign(Object.assign({}, Nr), { getAnimatableNone: (t) => {
|
|
25399
25399
|
const e = t.match(y5);
|
|
25400
25400
|
return e ? e.map(v5).join(" ") : t;
|
|
25401
25401
|
} });
|
|
@@ -25465,7 +25465,7 @@ var Wg = N(N({}, _n), { transform: Math.round }), xb = {
|
|
|
25465
25465
|
strokeOpacity: fs,
|
|
25466
25466
|
numOctaves: Wg
|
|
25467
25467
|
};
|
|
25468
|
-
function
|
|
25468
|
+
function dh(t, e, r, n) {
|
|
25469
25469
|
var i, s = t.style, o = t.vars, a = t.transform, l = t.transformKeys, c = t.transformOrigin;
|
|
25470
25470
|
l.length = 0;
|
|
25471
25471
|
var u = !1, f = !1, h = !0;
|
|
@@ -25485,7 +25485,7 @@ function hh(t, e, r, n) {
|
|
|
25485
25485
|
}
|
|
25486
25486
|
u ? s.transform = o5(t, r, h, n) : n ? s.transform = n({}, "") : !e.transform && s.transform && (s.transform = "none"), f && (s.transformOrigin = a5(c));
|
|
25487
25487
|
}
|
|
25488
|
-
var
|
|
25488
|
+
var ph = function() {
|
|
25489
25489
|
return {
|
|
25490
25490
|
style: {},
|
|
25491
25491
|
transform: {},
|
|
@@ -25501,8 +25501,8 @@ function wb(t, e, r) {
|
|
|
25501
25501
|
function b5(t, e, r) {
|
|
25502
25502
|
var n = t.transformTemplate;
|
|
25503
25503
|
return et(function() {
|
|
25504
|
-
var i =
|
|
25505
|
-
|
|
25504
|
+
var i = ph();
|
|
25505
|
+
dh(i, e, { enableHardwareAcceleration: !r }, n);
|
|
25506
25506
|
var s = i.vars, o = i.style;
|
|
25507
25507
|
return N(N({}, s), o);
|
|
25508
25508
|
}, [e]);
|
|
@@ -25616,19 +25616,19 @@ function C5(t, e, r, n, i) {
|
|
|
25616
25616
|
var o = re.transform(e), a = re.transform(r);
|
|
25617
25617
|
t[s.array] = "".concat(o, " ").concat(a);
|
|
25618
25618
|
}
|
|
25619
|
-
function
|
|
25619
|
+
function gh(t, e, r, n) {
|
|
25620
25620
|
var i = e.attrX, s = e.attrY, o = e.originX, a = e.originY, l = e.pathLength, c = e.pathSpacing, u = c === void 0 ? 1 : c, f = e.pathOffset, h = f === void 0 ? 0 : f, d = Yt(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
25621
|
-
|
|
25621
|
+
dh(t, d, r, n), t.attrs = t.style, t.style = {};
|
|
25622
25622
|
var p = t.attrs, g = t.style, m = t.dimensions;
|
|
25623
25623
|
p.transform && (m && (g.transform = p.transform), delete p.transform), m && (o !== void 0 || a !== void 0 || g.transform) && (g.transformOrigin = $5(m, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), i !== void 0 && (p.x = i), s !== void 0 && (p.y = s), l !== void 0 && C5(p, l, u, h, !1);
|
|
25624
25624
|
}
|
|
25625
25625
|
var kb = function() {
|
|
25626
|
-
return N(N({},
|
|
25626
|
+
return N(N({}, ph()), { attrs: {} });
|
|
25627
25627
|
};
|
|
25628
25628
|
function E5(t, e) {
|
|
25629
25629
|
var r = et(function() {
|
|
25630
25630
|
var i = kb();
|
|
25631
|
-
return
|
|
25631
|
+
return gh(i, e, { enableHardwareAcceleration: !1 }, t.transformTemplate), N(N({}, i.attrs), { style: N({}, i.style) });
|
|
25632
25632
|
}, [e]);
|
|
25633
25633
|
if (t.style) {
|
|
25634
25634
|
var n = {};
|
|
@@ -25639,7 +25639,7 @@ function E5(t, e) {
|
|
|
25639
25639
|
function R5(t) {
|
|
25640
25640
|
t === void 0 && (t = !1);
|
|
25641
25641
|
var e = function(r, n, i, s, o, a) {
|
|
25642
|
-
var l = o.latestValues, c =
|
|
25642
|
+
var l = o.latestValues, c = fh(r) ? E5 : x5, u = c(n, l, a), f = k5(n, typeof r == "string", t), h = N(N(N({}, f), u), { ref: s });
|
|
25643
25643
|
return i && (h["data-projection-id"] = i), fm(r, h);
|
|
25644
25644
|
};
|
|
25645
25645
|
return e;
|
|
@@ -25680,14 +25680,14 @@ function Cb(t, e, r, n) {
|
|
|
25680
25680
|
for (var i in e.attrs)
|
|
25681
25681
|
t.setAttribute(Qb.has(i) ? i : $b(i), e.attrs[i]);
|
|
25682
25682
|
}
|
|
25683
|
-
function
|
|
25683
|
+
function Oh(t) {
|
|
25684
25684
|
var e = t.style, r = {};
|
|
25685
25685
|
for (var n in e)
|
|
25686
25686
|
(_r(e[n]) || db(n, t)) && (r[n] = e[n]);
|
|
25687
25687
|
return r;
|
|
25688
25688
|
}
|
|
25689
25689
|
function Eb(t) {
|
|
25690
|
-
var e =
|
|
25690
|
+
var e = Oh(t);
|
|
25691
25691
|
for (var r in t)
|
|
25692
25692
|
if (_r(t[r])) {
|
|
25693
25693
|
var n = r === "x" || r === "y" ? "attr" + r.toUpperCase() : r;
|
|
@@ -25695,7 +25695,7 @@ function Eb(t) {
|
|
|
25695
25695
|
}
|
|
25696
25696
|
return e;
|
|
25697
25697
|
}
|
|
25698
|
-
function
|
|
25698
|
+
function mh(t) {
|
|
25699
25699
|
return typeof t == "object" && typeof t.start == "function";
|
|
25700
25700
|
}
|
|
25701
25701
|
var Zs = function(t) {
|
|
@@ -25733,7 +25733,7 @@ function M5(t, e, r, n) {
|
|
|
25733
25733
|
var l = t.initial, c = t.animate, u = hl(t), f = cb(t);
|
|
25734
25734
|
e && f && !u && t.inherit !== !1 && (l ?? (l = e.initial), c ?? (c = e.animate));
|
|
25735
25735
|
var h = s || l === !1, d = h ? c : l;
|
|
25736
|
-
if (d && typeof d != "boolean" && !
|
|
25736
|
+
if (d && typeof d != "boolean" && !mh(d)) {
|
|
25737
25737
|
var p = Array.isArray(d) ? d : [d];
|
|
25738
25738
|
p.forEach(function(g) {
|
|
25739
25739
|
var m = lb(t, g);
|
|
@@ -25772,17 +25772,17 @@ var Z5 = {
|
|
|
25772
25772
|
height: 0
|
|
25773
25773
|
};
|
|
25774
25774
|
}
|
|
25775
|
-
|
|
25775
|
+
gh(n, i, { enableHardwareAcceleration: !1 }, t.transformTemplate), Cb(e, n);
|
|
25776
25776
|
}
|
|
25777
25777
|
})
|
|
25778
25778
|
}, I5 = {
|
|
25779
25779
|
useVisualState: Ab({
|
|
25780
|
-
scrapeMotionValuesFromProps:
|
|
25781
|
-
createRenderState:
|
|
25780
|
+
scrapeMotionValuesFromProps: Oh,
|
|
25781
|
+
createRenderState: ph
|
|
25782
25782
|
})
|
|
25783
25783
|
};
|
|
25784
25784
|
function _5(t, e, r, n, i) {
|
|
25785
|
-
var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a =
|
|
25785
|
+
var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a = fh(t) ? Z5 : I5;
|
|
25786
25786
|
return N(N({}, a), { preloadedFeatures: r, useRender: R5(o), createVisualElement: n, projectionNodeConstructor: i, Component: t });
|
|
25787
25787
|
}
|
|
25788
25788
|
var $e;
|
|
@@ -25794,7 +25794,7 @@ function pl(t, e, r, n) {
|
|
|
25794
25794
|
return t.removeEventListener(e, r);
|
|
25795
25795
|
};
|
|
25796
25796
|
}
|
|
25797
|
-
function
|
|
25797
|
+
function ef(t, e, r, n) {
|
|
25798
25798
|
ie(function() {
|
|
25799
25799
|
var i = t.current;
|
|
25800
25800
|
if (r && i)
|
|
@@ -25809,7 +25809,7 @@ function N5(t) {
|
|
|
25809
25809
|
var s;
|
|
25810
25810
|
(s = r.animationState) === null || s === void 0 || s.setActive($e.Focus, !1);
|
|
25811
25811
|
};
|
|
25812
|
-
|
|
25812
|
+
ef(r, "focus", e ? n : void 0), ef(r, "blur", e ? i : void 0);
|
|
25813
25813
|
}
|
|
25814
25814
|
function Db(t) {
|
|
25815
25815
|
return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
|
|
@@ -25839,7 +25839,7 @@ function L5(t, e) {
|
|
|
25839
25839
|
y: t[e + "Y"]
|
|
25840
25840
|
};
|
|
25841
25841
|
}
|
|
25842
|
-
function
|
|
25842
|
+
function vh(t, e) {
|
|
25843
25843
|
return e === void 0 && (e = "page"), {
|
|
25844
25844
|
point: jb(t) ? W5(t, e) : L5(t, e)
|
|
25845
25845
|
};
|
|
@@ -25847,7 +25847,7 @@ function mh(t, e) {
|
|
|
25847
25847
|
var Mb = function(t, e) {
|
|
25848
25848
|
e === void 0 && (e = !1);
|
|
25849
25849
|
var r = function(n) {
|
|
25850
|
-
return t(n,
|
|
25850
|
+
return t(n, vh(n));
|
|
25851
25851
|
};
|
|
25852
25852
|
return e ? X5(r) : r;
|
|
25853
25853
|
}, Y5 = function() {
|
|
@@ -25878,7 +25878,7 @@ function ui(t, e, r, n) {
|
|
|
25878
25878
|
return pl(t, Zb(e), Mb(r, e === "pointerdown"), n);
|
|
25879
25879
|
}
|
|
25880
25880
|
function Ma(t, e, r, n) {
|
|
25881
|
-
return
|
|
25881
|
+
return ef(t, Zb(e), r && Mb(r, e === "pointerdown"), n);
|
|
25882
25882
|
}
|
|
25883
25883
|
function Ib(t) {
|
|
25884
25884
|
var e = null;
|
|
@@ -25934,10 +25934,10 @@ function J5({ duration: t = 800, bounce: e = 0.25, velocity: r = 0, mass: n = 1
|
|
|
25934
25934
|
zs(t <= Ug * 1e3, "Spring duration must be 10 seconds or less");
|
|
25935
25935
|
let o = 1 - e;
|
|
25936
25936
|
o = Za(H5, K5, o), t = Za(G5, Ug, t / 1e3), o < 1 ? (i = (c) => {
|
|
25937
|
-
const u = c * o, f = u * t, h = u - r, d =
|
|
25937
|
+
const u = c * o, f = u * t, h = u - r, d = tf(c, o), p = Math.exp(-f);
|
|
25938
25938
|
return Sc - h / d * p;
|
|
25939
25939
|
}, s = (c) => {
|
|
25940
|
-
const f = c * o * t, h = f * r + r, d = Math.pow(o, 2) * Math.pow(c, 2) * t, p = Math.exp(-f), g =
|
|
25940
|
+
const f = c * o * t, h = f * r + r, d = Math.pow(o, 2) * Math.pow(c, 2) * t, p = Math.exp(-f), g = tf(Math.pow(c, 2), o);
|
|
25941
25941
|
return (-i(c) + Sc > 0 ? -1 : 1) * ((h - d) * p) / g;
|
|
25942
25942
|
}) : (i = (c) => {
|
|
25943
25943
|
const u = Math.exp(-c * t), f = (c - r) * t + 1;
|
|
@@ -25969,7 +25969,7 @@ function tD(t, e, r) {
|
|
|
25969
25969
|
n = n - t(n) / e(n);
|
|
25970
25970
|
return n;
|
|
25971
25971
|
}
|
|
25972
|
-
function
|
|
25972
|
+
function tf(t, e) {
|
|
25973
25973
|
return t * Math.sqrt(1 - e * e);
|
|
25974
25974
|
}
|
|
25975
25975
|
const rD = ["duration", "bounce"], nD = ["stiffness", "damping", "mass"];
|
|
@@ -25984,14 +25984,14 @@ function iD(t) {
|
|
|
25984
25984
|
}
|
|
25985
25985
|
return e;
|
|
25986
25986
|
}
|
|
25987
|
-
function
|
|
25987
|
+
function yh(t) {
|
|
25988
25988
|
var { from: e = 0, to: r = 1, restSpeed: n = 2, restDelta: i } = t, s = Yt(t, ["from", "to", "restSpeed", "restDelta"]);
|
|
25989
25989
|
const o = { done: !1, value: e };
|
|
25990
25990
|
let { stiffness: a, damping: l, mass: c, velocity: u, duration: f, isResolvedFromDuration: h } = iD(s), d = Gg, p = Gg;
|
|
25991
25991
|
function g() {
|
|
25992
25992
|
const m = u ? -(u / 1e3) : 0, v = r - e, O = l / (2 * Math.sqrt(a * c)), y = Math.sqrt(a / c) / 1e3;
|
|
25993
25993
|
if (i === void 0 && (i = Math.min(Math.abs(r - e) / 100, 0.4)), O < 1) {
|
|
25994
|
-
const b =
|
|
25994
|
+
const b = tf(y, O);
|
|
25995
25995
|
d = (x) => {
|
|
25996
25996
|
const S = Math.exp(-O * y * x);
|
|
25997
25997
|
return r - S * ((m + O * y * v) / b * Math.sin(b * x) + v * Math.cos(b * x));
|
|
@@ -26025,7 +26025,7 @@ function vh(t) {
|
|
|
26025
26025
|
}
|
|
26026
26026
|
};
|
|
26027
26027
|
}
|
|
26028
|
-
|
|
26028
|
+
yh.needsInterpolation = (t, e) => typeof t == "string" || typeof e == "string";
|
|
26029
26029
|
const Gg = (t) => 0, Is = (t, e, r) => {
|
|
26030
26030
|
const n = e - t;
|
|
26031
26031
|
return n === 0 ? 1 : (r - t) / n;
|
|
@@ -26052,7 +26052,7 @@ function Hg({ hue: t, saturation: e, lightness: r, alpha: n }) {
|
|
|
26052
26052
|
const sD = (t, e, r) => {
|
|
26053
26053
|
const n = t * t, i = e * e;
|
|
26054
26054
|
return Math.sqrt(Math.max(0, r * (i - n) + n));
|
|
26055
|
-
}, oD = [
|
|
26055
|
+
}, oD = [Ku, nn, kn], Kg = (t) => oD.find((e) => e.test(t)), Jg = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, Wb = (t, e) => {
|
|
26056
26056
|
let r = Kg(t), n = Kg(e);
|
|
26057
26057
|
Xt(!!r, Jg(t)), Xt(!!n, Jg(e));
|
|
26058
26058
|
let i = r.parse(t), s = n.parse(e);
|
|
@@ -26063,9 +26063,9 @@ const sD = (t, e, r) => {
|
|
|
26063
26063
|
l !== "alpha" && (o[l] = sD(i[l], s[l], a));
|
|
26064
26064
|
return o.alpha = Me(i.alpha, s.alpha, a), r.transform(o);
|
|
26065
26065
|
};
|
|
26066
|
-
},
|
|
26066
|
+
}, rf = (t) => typeof t == "number", aD = (t, e) => (r) => e(t(r)), gl = (...t) => t.reduce(aD);
|
|
26067
26067
|
function Lb(t, e) {
|
|
26068
|
-
return
|
|
26068
|
+
return rf(t) ? (r) => Me(t, e, r) : ft.test(t) ? Wb(t, e) : qb(t, e);
|
|
26069
26069
|
}
|
|
26070
26070
|
const Yb = (t, e) => {
|
|
26071
26071
|
const r = [...t], n = r.length, i = t.map((s, o) => Lb(s, e[o]));
|
|
@@ -26140,10 +26140,10 @@ function Bb(t, e, { clamp: r = !0, ease: n, mixer: i } = {}) {
|
|
|
26140
26140
|
const o = fD(e, n, i), a = s === 2 ? hD(t, o) : dD(t, o);
|
|
26141
26141
|
return r ? (l) => a(Za(t[0], t[s - 1], l)) : a;
|
|
26142
26142
|
}
|
|
26143
|
-
const Ol = (t) => (e) => 1 - t(1 - e),
|
|
26143
|
+
const Ol = (t) => (e) => 1 - t(1 - e), bh = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, pD = (t) => (e) => Math.pow(e, t), zb = (t) => (e) => e * e * ((t + 1) * e - t), gD = (t) => {
|
|
26144
26144
|
const e = zb(t);
|
|
26145
26145
|
return (r) => (r *= 2) < 1 ? 0.5 * e(r) : 0.5 * (2 - Math.pow(2, -10 * (r - 1)));
|
|
26146
|
-
}, Ub = 1.525, OD = 4 / 11, mD = 8 / 11, vD = 9 / 10,
|
|
26146
|
+
}, Ub = 1.525, OD = 4 / 11, mD = 8 / 11, vD = 9 / 10, Sh = (t) => t, xh = pD(2), yD = Ol(xh), Fb = bh(xh), Gb = (t) => 1 - Math.sin(Math.acos(t)), wh = Ol(Gb), bD = bh(wh), Ph = zb(Ub), SD = Ol(Ph), xD = bh(Ph), wD = gD(Ub), PD = 4356 / 361, kD = 35442 / 1805, $D = 16061 / 1805, Ia = (t) => {
|
|
26147
26147
|
if (t === 1 || t === 0)
|
|
26148
26148
|
return t;
|
|
26149
26149
|
const e = t * t;
|
|
@@ -26187,14 +26187,14 @@ function AD({ velocity: t = 0, from: e = 0, power: r = 0.8, timeConstant: n = 35
|
|
|
26187
26187
|
}
|
|
26188
26188
|
};
|
|
26189
26189
|
}
|
|
26190
|
-
const tO = { keyframes: sa, spring:
|
|
26190
|
+
const tO = { keyframes: sa, spring: yh, decay: AD };
|
|
26191
26191
|
function DD(t) {
|
|
26192
26192
|
if (Array.isArray(t.to))
|
|
26193
26193
|
return sa;
|
|
26194
26194
|
if (tO[t.type])
|
|
26195
26195
|
return tO[t.type];
|
|
26196
26196
|
const e = new Set(Object.keys(t));
|
|
26197
|
-
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? sa : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ?
|
|
26197
|
+
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? sa : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? yh : sa;
|
|
26198
26198
|
}
|
|
26199
26199
|
const Hb = 1 / 60 * 1e3, jD = typeof performance < "u" ? () => performance.now() : () => Date.now(), Kb = typeof window < "u" ? (t) => window.requestAnimationFrame(t) : (t) => setTimeout(() => t(jD()), Hb);
|
|
26200
26200
|
function MD(t) {
|
|
@@ -26224,7 +26224,7 @@ function MD(t) {
|
|
|
26224
26224
|
return a;
|
|
26225
26225
|
}
|
|
26226
26226
|
const ZD = 40;
|
|
26227
|
-
let
|
|
26227
|
+
let nf = !0, _s = !1, sf = !1;
|
|
26228
26228
|
const fi = {
|
|
26229
26229
|
delta: 0,
|
|
26230
26230
|
timestamp: 0
|
|
@@ -26238,9 +26238,9 @@ const fi = {
|
|
|
26238
26238
|
const r = ml[e];
|
|
26239
26239
|
return t[e] = (n, i = !1, s = !1) => (_s || _D(), r.schedule(n, i, s)), t;
|
|
26240
26240
|
}, {}), Pi = Hs.reduce((t, e) => (t[e] = ml[e].cancel, t), {}), wc = Hs.reduce((t, e) => (t[e] = () => ml[e].process(fi), t), {}), ID = (t) => ml[t].process(fi), Jb = (t) => {
|
|
26241
|
-
_s = !1, fi.delta =
|
|
26241
|
+
_s = !1, fi.delta = nf ? Hb : Math.max(Math.min(t - fi.timestamp, ZD), 1), fi.timestamp = t, sf = !0, Hs.forEach(ID), sf = !1, _s && (nf = !1, Kb(Jb));
|
|
26242
26242
|
}, _D = () => {
|
|
26243
|
-
_s = !0,
|
|
26243
|
+
_s = !0, nf = !0, sf || Kb(Jb);
|
|
26244
26244
|
}, _a = () => fi;
|
|
26245
26245
|
function e1(t, e, r = 0) {
|
|
26246
26246
|
return t - e - r;
|
|
@@ -26338,11 +26338,11 @@ function WD({ from: t = 0, velocity: e = 0, min: r, max: n, power: i = 0.8, time
|
|
|
26338
26338
|
stop: () => p == null ? void 0 : p.stop()
|
|
26339
26339
|
};
|
|
26340
26340
|
}
|
|
26341
|
-
const
|
|
26341
|
+
const of = (t) => t.hasOwnProperty("x") && t.hasOwnProperty("y"), rO = (t) => of(t) && t.hasOwnProperty("z"), Do = (t, e) => Math.abs(t - e);
|
|
26342
26342
|
function n1(t, e) {
|
|
26343
|
-
if (
|
|
26343
|
+
if (rf(t) && rf(e))
|
|
26344
26344
|
return Do(t, e);
|
|
26345
|
-
if (
|
|
26345
|
+
if (of(t) && of(e)) {
|
|
26346
26346
|
const r = Do(t.x, e.x), n = Do(t.y, e.y), i = rO(t) && rO(e) ? Do(t.z, e.z) : 0;
|
|
26347
26347
|
return Math.sqrt(Math.pow(r, 2) + Math.pow(n, 2) + Math.pow(i, 2));
|
|
26348
26348
|
}
|
|
@@ -26369,7 +26369,7 @@ function UD(t, e, r, n) {
|
|
|
26369
26369
|
const oa = 11, jo = 1 / (oa - 1);
|
|
26370
26370
|
function FD(t, e, r, n) {
|
|
26371
26371
|
if (t === e && r === n)
|
|
26372
|
-
return
|
|
26372
|
+
return Sh;
|
|
26373
26373
|
const i = new Float32Array(oa);
|
|
26374
26374
|
for (let o = 0; o < oa; ++o)
|
|
26375
26375
|
i[o] = Na(o * jo, t, r);
|
|
@@ -26412,9 +26412,9 @@ var nO = /* @__PURE__ */ new Set();
|
|
|
26412
26412
|
function l1(t, e, r) {
|
|
26413
26413
|
t || nO.has(e) || (console.warn(e), r && console.warn(r), nO.add(e));
|
|
26414
26414
|
}
|
|
26415
|
-
var
|
|
26415
|
+
var af = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), HD = function(t) {
|
|
26416
26416
|
var e;
|
|
26417
|
-
(e =
|
|
26417
|
+
(e = af.get(t.target)) === null || e === void 0 || e(t);
|
|
26418
26418
|
}, KD = function(t) {
|
|
26419
26419
|
t.forEach(HD);
|
|
26420
26420
|
};
|
|
@@ -26426,8 +26426,8 @@ function JD(t) {
|
|
|
26426
26426
|
}
|
|
26427
26427
|
function ej(t, e, r) {
|
|
26428
26428
|
var n = JD(e);
|
|
26429
|
-
return
|
|
26430
|
-
|
|
26429
|
+
return af.set(t, r), n.observe(t), function() {
|
|
26430
|
+
af.delete(t), n.unobserve(t);
|
|
26431
26431
|
};
|
|
26432
26432
|
}
|
|
26433
26433
|
function tj(t) {
|
|
@@ -26515,14 +26515,14 @@ function u1(t, e) {
|
|
|
26515
26515
|
var Xa = function(t) {
|
|
26516
26516
|
return t * 1e3;
|
|
26517
26517
|
}, iO = {
|
|
26518
|
-
linear:
|
|
26519
|
-
easeIn:
|
|
26518
|
+
linear: Sh,
|
|
26519
|
+
easeIn: xh,
|
|
26520
26520
|
easeInOut: Fb,
|
|
26521
26521
|
easeOut: yD,
|
|
26522
26522
|
circIn: Gb,
|
|
26523
26523
|
circInOut: bD,
|
|
26524
|
-
circOut:
|
|
26525
|
-
backIn:
|
|
26524
|
+
circOut: wh,
|
|
26525
|
+
backIn: Ph,
|
|
26526
26526
|
backInOut: xD,
|
|
26527
26527
|
backOut: SD,
|
|
26528
26528
|
anticipate: wD,
|
|
@@ -26600,14 +26600,14 @@ var Xa = function(t) {
|
|
|
26600
26600
|
borderRightColor: ft,
|
|
26601
26601
|
borderBottomColor: ft,
|
|
26602
26602
|
borderLeftColor: ft,
|
|
26603
|
-
filter:
|
|
26604
|
-
WebkitFilter:
|
|
26605
|
-
}),
|
|
26603
|
+
filter: Ju,
|
|
26604
|
+
WebkitFilter: Ju
|
|
26605
|
+
}), kh = function(t) {
|
|
26606
26606
|
return hj[t];
|
|
26607
26607
|
};
|
|
26608
|
-
function
|
|
26609
|
-
var r, n =
|
|
26610
|
-
return n !==
|
|
26608
|
+
function $h(t, e) {
|
|
26609
|
+
var r, n = kh(t);
|
|
26610
|
+
return n !== Ju && (n = Nr), (r = n.getAnimatableNone) === null || r === void 0 ? void 0 : r.call(n, e);
|
|
26611
26611
|
}
|
|
26612
26612
|
function dj(t) {
|
|
26613
26613
|
t.when, t.delay, t.delayChildren, t.staggerChildren, t.staggerDirection, t.repeat, t.repeatType, t.repeatDelay, t.from;
|
|
@@ -26620,7 +26620,7 @@ function pj(t) {
|
|
|
26620
26620
|
return r && (a.offset = r), o.duration && (a.duration = Xa(o.duration)), o.repeatDelay && (a.repeatDelay = Xa(o.repeatDelay)), e && (a.ease = cj(e) ? e.map(sO) : sO(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (zs(!lO, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), lO = !0, n ? a.repeatType = "reverse" : s ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = s || n || i || o.repeat), o.type !== "spring" && (a.type = "keyframes"), a;
|
|
26621
26621
|
}
|
|
26622
26622
|
function gj(t, e) {
|
|
26623
|
-
var r, n, i =
|
|
26623
|
+
var r, n, i = Th(t, e) || {};
|
|
26624
26624
|
return (n = (r = i.delay) !== null && r !== void 0 ? r : t.delay) !== null && n !== void 0 ? n : 0;
|
|
26625
26625
|
}
|
|
26626
26626
|
function Oj(t) {
|
|
@@ -26631,8 +26631,8 @@ function mj(t, e, r) {
|
|
|
26631
26631
|
return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Oj(e), dj(t) || (t = N(N({}, t), fj(r, e.to))), N(N({}, e), pj(t));
|
|
26632
26632
|
}
|
|
26633
26633
|
function vj(t, e, r, n, i) {
|
|
26634
|
-
var s, o =
|
|
26635
|
-
a === "none" && l && typeof r == "string" ? a =
|
|
26634
|
+
var s, o = Th(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), l = oO(t, r);
|
|
26635
|
+
a === "none" && l && typeof r == "string" ? a = $h(t, r) : cO(a) && typeof r == "string" ? a = uO(r) : !Array.isArray(r) && cO(r) && typeof a == "string" && (r = uO(a));
|
|
26636
26636
|
var c = oO(t, a);
|
|
26637
26637
|
zs(c === l, "You are trying to animate ".concat(t, ' from "').concat(a, '" to "').concat(r, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(r, " via the `style` property."));
|
|
26638
26638
|
function u() {
|
|
@@ -26664,12 +26664,12 @@ function cO(t) {
|
|
|
26664
26664
|
return t === 0 || typeof t == "string" && parseFloat(t) === 0 && t.indexOf(" ") === -1;
|
|
26665
26665
|
}
|
|
26666
26666
|
function uO(t) {
|
|
26667
|
-
return typeof t == "number" ? 0 :
|
|
26667
|
+
return typeof t == "number" ? 0 : $h("", t);
|
|
26668
26668
|
}
|
|
26669
|
-
function
|
|
26669
|
+
function Th(t, e) {
|
|
26670
26670
|
return t[e] || t.default || t;
|
|
26671
26671
|
}
|
|
26672
|
-
function
|
|
26672
|
+
function Qh(t, e, r, n) {
|
|
26673
26673
|
return n === void 0 && (n = {}), e.start(function(i) {
|
|
26674
26674
|
var s, o, a = vj(t, e, r, n, i), l = gj(n, t), c = function() {
|
|
26675
26675
|
return o = a();
|
|
@@ -26684,10 +26684,10 @@ var yj = function(t) {
|
|
|
26684
26684
|
}, bj = function(t) {
|
|
26685
26685
|
return /^0[^.\s]+$/.test(t);
|
|
26686
26686
|
};
|
|
26687
|
-
function
|
|
26687
|
+
function Ch(t, e) {
|
|
26688
26688
|
t.indexOf(e) === -1 && t.push(e);
|
|
26689
26689
|
}
|
|
26690
|
-
function
|
|
26690
|
+
function Eh(t, e) {
|
|
26691
26691
|
var r = t.indexOf(e);
|
|
26692
26692
|
r > -1 && t.splice(r, 1);
|
|
26693
26693
|
}
|
|
@@ -26699,8 +26699,8 @@ var hs = (
|
|
|
26699
26699
|
}
|
|
26700
26700
|
return t.prototype.add = function(e) {
|
|
26701
26701
|
var r = this;
|
|
26702
|
-
return
|
|
26703
|
-
return
|
|
26702
|
+
return Ch(this.subscriptions, e), function() {
|
|
26703
|
+
return Eh(r.subscriptions, e);
|
|
26704
26704
|
};
|
|
26705
26705
|
}, t.prototype.notify = function(e, r, n) {
|
|
26706
26706
|
var i = this.subscriptions.length;
|
|
@@ -26812,7 +26812,7 @@ function Qj(t, e, r) {
|
|
|
26812
26812
|
if (l)
|
|
26813
26813
|
for (var c = 0; c < l; c++) {
|
|
26814
26814
|
var u = a[c], f = e[u], h = null;
|
|
26815
|
-
Array.isArray(f) && (h = f[0]), h === null && (h = (i = (n = r[u]) !== null && n !== void 0 ? n : t.readValue(u)) !== null && i !== void 0 ? i : e[u]), h != null && (typeof h == "string" && (yj(h) || bj(h)) ? h = parseFloat(h) : !kj(h) && Nr.test(f) && (h =
|
|
26815
|
+
Array.isArray(f) && (h = f[0]), h === null && (h = (i = (n = r[u]) !== null && n !== void 0 ? n : t.readValue(u)) !== null && i !== void 0 ? i : e[u]), h != null && (typeof h == "string" && (yj(h) || bj(h)) ? h = parseFloat(h) : !kj(h) && Nr.test(f) && (h = $h(u, f)), t.addValue(u, ki(h)), (s = (o = r)[u]) !== null && s !== void 0 || (o[u] = h), t.setBaseTarget(u, h));
|
|
26816
26816
|
}
|
|
26817
26817
|
}
|
|
26818
26818
|
function Cj(t, e) {
|
|
@@ -26832,11 +26832,11 @@ function Rj(t, e, r) {
|
|
|
26832
26832
|
var n;
|
|
26833
26833
|
if (Array.isArray(e)) {
|
|
26834
26834
|
var i = e.map(function(o) {
|
|
26835
|
-
return
|
|
26835
|
+
return lf(t, o, r);
|
|
26836
26836
|
});
|
|
26837
26837
|
n = Promise.all(i);
|
|
26838
26838
|
} else if (typeof e == "string")
|
|
26839
|
-
n =
|
|
26839
|
+
n = lf(t, e, r);
|
|
26840
26840
|
else {
|
|
26841
26841
|
var s = typeof e == "function" ? fl(t, e, r.custom) : e;
|
|
26842
26842
|
n = d1(t, s, r);
|
|
@@ -26845,7 +26845,7 @@ function Rj(t, e, r) {
|
|
|
26845
26845
|
return t.notifyAnimationComplete(e);
|
|
26846
26846
|
});
|
|
26847
26847
|
}
|
|
26848
|
-
function
|
|
26848
|
+
function lf(t, e, r) {
|
|
26849
26849
|
var n;
|
|
26850
26850
|
r === void 0 && (r = {});
|
|
26851
26851
|
var i = fl(t, e, r.custom), s = (i || {}).transition, o = s === void 0 ? t.getDefaultTransition() || {} : s;
|
|
@@ -26876,7 +26876,7 @@ function d1(t, e, r) {
|
|
|
26876
26876
|
if (!(!v || O === void 0 || g && jj(g, m))) {
|
|
26877
26877
|
var y = N({ delay: o }, f);
|
|
26878
26878
|
t.shouldReduceMotion && Us(m) && (y = N(N({}, y), { type: !1, delay: 0 }));
|
|
26879
|
-
var b =
|
|
26879
|
+
var b = Qh(m, v, O, y);
|
|
26880
26880
|
p.push(b);
|
|
26881
26881
|
}
|
|
26882
26882
|
}
|
|
@@ -26892,7 +26892,7 @@ function Aj(t, e, r, n, i, s) {
|
|
|
26892
26892
|
return c === void 0 && (c = 0), a - c * n;
|
|
26893
26893
|
};
|
|
26894
26894
|
return Array.from(t.variantChildren).sort(Dj).forEach(function(c, u) {
|
|
26895
|
-
o.push(
|
|
26895
|
+
o.push(lf(c, e, N(N({}, s), { delay: r + l(u) })).then(function() {
|
|
26896
26896
|
return c.notifyAnimationComplete(e);
|
|
26897
26897
|
}));
|
|
26898
26898
|
}), Promise.all(o);
|
|
@@ -26904,7 +26904,7 @@ function jj(t, e) {
|
|
|
26904
26904
|
var r = t.protectedKeys, n = t.needsAnimating, i = r.hasOwnProperty(e) && n[e] !== !0;
|
|
26905
26905
|
return n[e] = !1, i;
|
|
26906
26906
|
}
|
|
26907
|
-
var
|
|
26907
|
+
var Rh = [
|
|
26908
26908
|
$e.Animate,
|
|
26909
26909
|
$e.InView,
|
|
26910
26910
|
$e.Focus,
|
|
@@ -26912,7 +26912,7 @@ var Eh = [
|
|
|
26912
26912
|
$e.Tap,
|
|
26913
26913
|
$e.Drag,
|
|
26914
26914
|
$e.Exit
|
|
26915
|
-
], Mj = wr([], ze(
|
|
26915
|
+
], Mj = wr([], ze(Rh), !1).reverse(), Zj = Rh.length;
|
|
26916
26916
|
function Ij(t) {
|
|
26917
26917
|
return function(e) {
|
|
26918
26918
|
return Promise.all(e.map(function(r) {
|
|
@@ -26945,7 +26945,7 @@ function _j(t) {
|
|
|
26945
26945
|
if (L && i && t.manuallyAnimateOnMount && (L = !1), C.protectedKeys = N({}, v), // If it isn't active and hasn't *just* been set as inactive
|
|
26946
26946
|
!C.isActive && I === null || // If we didn't and don't have any defined prop for this animation type
|
|
26947
26947
|
!Q && !C.prevProp || // Or if the prop doesn't define an animation
|
|
26948
|
-
|
|
26948
|
+
mh(Q) || typeof Q == "boolean")
|
|
26949
26949
|
return "continue";
|
|
26950
26950
|
var _ = Nj(C.prevProp, Q), M = _ || // If we're making this variant active, we want to always make it active
|
|
26951
26951
|
$ === f && C.isActive && !L && D || // If we removed a higher-priority variant (i is in reverse order)
|
|
@@ -27017,7 +27017,7 @@ function Xj() {
|
|
|
27017
27017
|
var Vj = {
|
|
27018
27018
|
animation: sn(function(t) {
|
|
27019
27019
|
var e = t.visualElement, r = t.animate;
|
|
27020
|
-
e.animationState || (e.animationState = _j(e)),
|
|
27020
|
+
e.animationState || (e.animationState = _j(e)), mh(r) && ie(function() {
|
|
27021
27021
|
return r.subscribe(e);
|
|
27022
27022
|
}, [r]);
|
|
27023
27023
|
}),
|
|
@@ -27057,7 +27057,7 @@ var Vj = {
|
|
|
27057
27057
|
i.startEvent && g && g(h, v), m && m(h, v);
|
|
27058
27058
|
}, !(jb(e) && e.touches.length > 1)) {
|
|
27059
27059
|
this.handlers = r, this.transformPagePoint = o;
|
|
27060
|
-
var a =
|
|
27060
|
+
var a = vh(e), l = $c(a, this.transformPagePoint), c = l.point, u = _a().timestamp;
|
|
27061
27061
|
this.history = [N(N({}, c), { timestamp: u })];
|
|
27062
27062
|
var f = r.onSessionStart;
|
|
27063
27063
|
f && f(e, Tc(l, this.history)), this.removeListeners = gl(ui(window, "pointermove", this.handlePointerMove), ui(window, "pointerup", this.handlePointerUp), ui(window, "pointercancel", this.handlePointerUp));
|
|
@@ -27166,9 +27166,9 @@ function Fj(t, e) {
|
|
|
27166
27166
|
var r = {};
|
|
27167
27167
|
return e.min !== void 0 && (r.min = e.min - t.min), e.max !== void 0 && (r.max = e.max - t.min), r;
|
|
27168
27168
|
}
|
|
27169
|
-
var
|
|
27169
|
+
var cf = 0.35;
|
|
27170
27170
|
function Gj(t) {
|
|
27171
|
-
return t === void 0 && (t =
|
|
27171
|
+
return t === void 0 && (t = cf), t === !1 ? t = 0 : t === !0 && (t = cf), {
|
|
27172
27172
|
x: vO(t, "left", "right"),
|
|
27173
27173
|
y: vO(t, "top", "bottom")
|
|
27174
27174
|
};
|
|
@@ -27248,12 +27248,12 @@ function Va(t, e, r) {
|
|
|
27248
27248
|
function wO(t, e, r, n, i) {
|
|
27249
27249
|
return i !== void 0 && (t = Va(t, i, n)), Va(t, r, n) + e;
|
|
27250
27250
|
}
|
|
27251
|
-
function
|
|
27251
|
+
function uf(t, e, r, n, i) {
|
|
27252
27252
|
e === void 0 && (e = 0), r === void 0 && (r = 1), t.min = wO(t.min, e, r, n, i), t.max = wO(t.max, e, r, n, i);
|
|
27253
27253
|
}
|
|
27254
27254
|
function v1(t, e) {
|
|
27255
27255
|
var r = e.x, n = e.y;
|
|
27256
|
-
|
|
27256
|
+
uf(t.x, r.translate, r.scale, r.originPoint), uf(t.y, n.translate, n.scale, n.originPoint);
|
|
27257
27257
|
}
|
|
27258
27258
|
function Jj(t, e, r, n) {
|
|
27259
27259
|
var i, s;
|
|
@@ -27270,7 +27270,7 @@ function Kr(t, e) {
|
|
|
27270
27270
|
}
|
|
27271
27271
|
function PO(t, e, r) {
|
|
27272
27272
|
var n = ze(r, 3), i = n[0], s = n[1], o = n[2], a = e[o] !== void 0 ? e[o] : 0.5, l = Me(t.min, t.max, a);
|
|
27273
|
-
|
|
27273
|
+
uf(t, e[i], e[s], l, e.scale);
|
|
27274
27274
|
}
|
|
27275
27275
|
var eM = ["x", "scaleX", "originX"], tM = ["y", "scaleY", "originY"];
|
|
27276
27276
|
function ri(t, e) {
|
|
@@ -27293,7 +27293,7 @@ var nM = /* @__PURE__ */ new WeakMap(), iM = (
|
|
|
27293
27293
|
var n = this, i = r === void 0 ? {} : r, s = i.snapToCursor, o = s === void 0 ? !1 : s;
|
|
27294
27294
|
if (this.visualElement.isPresent !== !1) {
|
|
27295
27295
|
var a = function(f) {
|
|
27296
|
-
n.stopAnimation(), o && n.snapToCursor(
|
|
27296
|
+
n.stopAnimation(), o && n.snapToCursor(vh(f, "page").point);
|
|
27297
27297
|
}, l = function(f, h) {
|
|
27298
27298
|
var d, p = n.getProps(), g = p.drag, m = p.dragPropagation, v = p.onDragStart;
|
|
27299
27299
|
g && !m && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = _b(g), !n.openGlobalLock) || (n.isDragging = !0, n.currentDirection = null, n.resolveConstraints(), n.visualElement.projection && (n.visualElement.projection.isAnimationBlocked = !0, n.visualElement.projection.target = void 0), fr(function(O) {
|
|
@@ -27379,7 +27379,7 @@ var nM = /* @__PURE__ */ new WeakMap(), iM = (
|
|
|
27379
27379
|
return Promise.all(f).then(c);
|
|
27380
27380
|
}, t.prototype.startAxisValueAnimation = function(e, r) {
|
|
27381
27381
|
var n = this.getAxisMotionValue(e);
|
|
27382
|
-
return
|
|
27382
|
+
return Qh(e, n, 0, r);
|
|
27383
27383
|
}, t.prototype.stopAnimation = function() {
|
|
27384
27384
|
var e = this;
|
|
27385
27385
|
fr(function(r) {
|
|
@@ -27444,7 +27444,7 @@ var nM = /* @__PURE__ */ new WeakMap(), iM = (
|
|
|
27444
27444
|
l(), i(), a();
|
|
27445
27445
|
};
|
|
27446
27446
|
}, t.prototype.getProps = function() {
|
|
27447
|
-
var e = this.visualElement.getProps(), r = e.drag, n = r === void 0 ? !1 : r, i = e.dragDirectionLock, s = i === void 0 ? !1 : i, o = e.dragPropagation, a = o === void 0 ? !1 : o, l = e.dragConstraints, c = l === void 0 ? !1 : l, u = e.dragElastic, f = u === void 0 ?
|
|
27447
|
+
var e = this.visualElement.getProps(), r = e.drag, n = r === void 0 ? !1 : r, i = e.dragDirectionLock, s = i === void 0 ? !1 : i, o = e.dragPropagation, a = o === void 0 ? !1 : o, l = e.dragConstraints, c = l === void 0 ? !1 : l, u = e.dragElastic, f = u === void 0 ? cf : u, h = e.dragMomentum, d = h === void 0 ? !0 : h;
|
|
27448
27448
|
return N(N({}, e), { drag: n, dragDirectionLock: s, dragPropagation: a, dragConstraints: c, dragElastic: f, dragMomentum: d });
|
|
27449
27449
|
}, t;
|
|
27450
27450
|
}()
|
|
@@ -27468,7 +27468,7 @@ function oM(t) {
|
|
|
27468
27468
|
}, [n]);
|
|
27469
27469
|
}
|
|
27470
27470
|
function aM(t) {
|
|
27471
|
-
var e = t.onPan, r = t.onPanStart, n = t.onPanEnd, i = t.onPanSessionStart, s = t.visualElement, o = e || r || n || i, a = le(null), l = Ee(
|
|
27471
|
+
var e = t.onPan, r = t.onPanStart, n = t.onPanEnd, i = t.onPanSessionStart, s = t.visualElement, o = e || r || n || i, a = le(null), l = Ee(uh).transformPagePoint, c = {
|
|
27472
27472
|
onSessionStart: i,
|
|
27473
27473
|
onStart: r,
|
|
27474
27474
|
onMove: e,
|
|
@@ -27847,8 +27847,8 @@ var b1 = function(t) {
|
|
|
27847
27847
|
});
|
|
27848
27848
|
return X;
|
|
27849
27849
|
};
|
|
27850
|
-
}, S1 = wr(["initial"], ze(
|
|
27851
|
-
function
|
|
27850
|
+
}, S1 = wr(["initial"], ze(Rh), !1), fM = S1.length;
|
|
27851
|
+
function ff(t) {
|
|
27852
27852
|
return typeof t == "string" && t.startsWith("var(--");
|
|
27853
27853
|
}
|
|
27854
27854
|
var x1 = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
|
@@ -27860,12 +27860,12 @@ function hM(t) {
|
|
|
27860
27860
|
return [n, i];
|
|
27861
27861
|
}
|
|
27862
27862
|
var dM = 4;
|
|
27863
|
-
function
|
|
27863
|
+
function hf(t, e, r) {
|
|
27864
27864
|
r === void 0 && (r = 1), Xt(r <= dM, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
|
|
27865
27865
|
var n = ze(hM(t), 2), i = n[0], s = n[1];
|
|
27866
27866
|
if (i) {
|
|
27867
27867
|
var o = window.getComputedStyle(e).getPropertyValue(i);
|
|
27868
|
-
return o ? o.trim() :
|
|
27868
|
+
return o ? o.trim() : ff(s) ? hf(s, e, r + 1) : s;
|
|
27869
27869
|
}
|
|
27870
27870
|
}
|
|
27871
27871
|
function pM(t, e, r) {
|
|
@@ -27874,15 +27874,15 @@ function pM(t, e, r) {
|
|
|
27874
27874
|
return { target: i, transitionEnd: r };
|
|
27875
27875
|
r && (r = N({}, r)), t.forEachValue(function(c) {
|
|
27876
27876
|
var u = c.get();
|
|
27877
|
-
if (
|
|
27878
|
-
var f =
|
|
27877
|
+
if (ff(u)) {
|
|
27878
|
+
var f = hf(u, s);
|
|
27879
27879
|
f && c.set(f);
|
|
27880
27880
|
}
|
|
27881
27881
|
});
|
|
27882
27882
|
for (var o in i) {
|
|
27883
27883
|
var a = i[o];
|
|
27884
|
-
if (
|
|
27885
|
-
var l =
|
|
27884
|
+
if (ff(a)) {
|
|
27885
|
+
var l = hf(a, s);
|
|
27886
27886
|
l && (i[o] = l, r && ((n = r[o]) !== null && n !== void 0 || (r[o] = a)));
|
|
27887
27887
|
}
|
|
27888
27888
|
}
|
|
@@ -28015,7 +28015,7 @@ var k1 = {
|
|
|
28015
28015
|
treeType: "dom",
|
|
28016
28016
|
readValueFromInstance: function(t, e) {
|
|
28017
28017
|
if (Us(e)) {
|
|
28018
|
-
var r =
|
|
28018
|
+
var r = kh(e);
|
|
28019
28019
|
return r && r.default || 0;
|
|
28020
28020
|
} else {
|
|
28021
28021
|
var n = PM(t);
|
|
@@ -28066,20 +28066,20 @@ var k1 = {
|
|
|
28066
28066
|
}
|
|
28067
28067
|
return N({ transition: s, transitionEnd: o }, a);
|
|
28068
28068
|
},
|
|
28069
|
-
scrapeMotionValuesFromProps:
|
|
28069
|
+
scrapeMotionValuesFromProps: Oh,
|
|
28070
28070
|
build: function(t, e, r, n, i) {
|
|
28071
|
-
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"),
|
|
28071
|
+
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), dh(e, r, n, i.transformTemplate);
|
|
28072
28072
|
},
|
|
28073
28073
|
render: Tb
|
|
28074
28074
|
}, kM = b1(k1), $M = b1(N(N({}, k1), { getBaseTarget: function(t, e) {
|
|
28075
28075
|
return t[e];
|
|
28076
28076
|
}, readValueFromInstance: function(t, e) {
|
|
28077
28077
|
var r;
|
|
28078
|
-
return Us(e) ? ((r =
|
|
28078
|
+
return Us(e) ? ((r = kh(e)) === null || r === void 0 ? void 0 : r.default) || 0 : (e = Qb.has(e) ? e : $b(e), t.getAttribute(e));
|
|
28079
28079
|
}, scrapeMotionValuesFromProps: Eb, build: function(t, e, r, n, i) {
|
|
28080
|
-
|
|
28080
|
+
gh(e, r, n, i.transformTemplate);
|
|
28081
28081
|
}, render: Cb })), TM = function(t, e) {
|
|
28082
|
-
return
|
|
28082
|
+
return fh(t) ? $M(e, { enableHardwareAcceleration: !1 }) : kM(e, { enableHardwareAcceleration: !0 });
|
|
28083
28083
|
};
|
|
28084
28084
|
function CO(t, e) {
|
|
28085
28085
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
@@ -28175,7 +28175,7 @@ var RM = {
|
|
|
28175
28175
|
function DM(t, e, r) {
|
|
28176
28176
|
r === void 0 && (r = {});
|
|
28177
28177
|
var n = _r(t) ? t : ki(t);
|
|
28178
|
-
return
|
|
28178
|
+
return Qh("", n, e, r), {
|
|
28179
28179
|
stop: function() {
|
|
28180
28180
|
return n.stop();
|
|
28181
28181
|
},
|
|
@@ -28212,7 +28212,7 @@ function DO(t, e) {
|
|
|
28212
28212
|
var r;
|
|
28213
28213
|
return (r = t[e]) !== null && r !== void 0 ? r : t.borderRadius;
|
|
28214
28214
|
}
|
|
28215
|
-
var ZM = T1(0, 0.5,
|
|
28215
|
+
var ZM = T1(0, 0.5, wh), IM = T1(0.5, 0.95, Sh);
|
|
28216
28216
|
function T1(t, e, r) {
|
|
28217
28217
|
return function(n) {
|
|
28218
28218
|
return n < t ? 0 : n > e ? 1 : r(Is(t, e, n));
|
|
@@ -28262,9 +28262,9 @@ var VM = (
|
|
|
28262
28262
|
this.members = [];
|
|
28263
28263
|
}
|
|
28264
28264
|
return t.prototype.add = function(e) {
|
|
28265
|
-
|
|
28265
|
+
Ch(this.members, e), e.scheduleRender();
|
|
28266
28266
|
}, t.prototype.remove = function(e) {
|
|
28267
|
-
if (
|
|
28267
|
+
if (Eh(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
28268
28268
|
var r = this.members[this.members.length - 1];
|
|
28269
28269
|
r && this.promote(r);
|
|
28270
28270
|
}
|
|
@@ -28321,9 +28321,9 @@ var LM = function(t, e) {
|
|
|
28321
28321
|
this.children = [], this.isDirty = !1;
|
|
28322
28322
|
}
|
|
28323
28323
|
return t.prototype.add = function(e) {
|
|
28324
|
-
Qh(this.children, e), this.isDirty = !0;
|
|
28325
|
-
}, t.prototype.remove = function(e) {
|
|
28326
28324
|
Ch(this.children, e), this.isDirty = !0;
|
|
28325
|
+
}, t.prototype.remove = function(e) {
|
|
28326
|
+
Eh(this.children, e), this.isDirty = !0;
|
|
28327
28327
|
}, t.prototype.forEach = function(e) {
|
|
28328
28328
|
this.isDirty && this.children.sort(LM), this.isDirty = !1, this.children.forEach(e);
|
|
28329
28329
|
}, t;
|
|
@@ -28378,7 +28378,7 @@ function E1(t) {
|
|
|
28378
28378
|
var D = (y = (O = c.options.transition) !== null && O !== void 0 ? O : p.getDefaultTransition()) !== null && y !== void 0 ? y : rZ, I = p.getProps(), L = I.onLayoutAnimationStart, _ = I.onLayoutAnimationComplete, M = !c.targetLayout || !C1(c.targetLayout, Q) || C, F = !$ && C;
|
|
28379
28379
|
if (!((b = c.resumeFrom) === null || b === void 0) && b.instance || F || $ && (M || !c.currentAnimation)) {
|
|
28380
28380
|
c.resumeFrom && (c.resumingFrom = c.resumeFrom, c.resumingFrom.resumingFrom = void 0), c.setAnimationOrigin(P, F);
|
|
28381
|
-
var J = N(N({},
|
|
28381
|
+
var J = N(N({}, Th(D, "layout")), { onPlay: L, onComplete: _ });
|
|
28382
28382
|
p.shouldReduceMotion && (J.delay = 0, J.type = !1), c.startAnimation(J);
|
|
28383
28383
|
} else
|
|
28384
28384
|
!$ && c.animationProgress === 0 && c.finishAnimation(), c.isLead() && ((S = (x = c.options).onExitComplete) === null || S === void 0 || S.call(x));
|
|
@@ -28604,8 +28604,8 @@ function E1(t) {
|
|
|
28604
28604
|
}, o.prototype.resetRotation = function() {
|
|
28605
28605
|
var a = this.options.visualElement;
|
|
28606
28606
|
if (a) {
|
|
28607
|
-
for (var l = !1, c = {}, u = 0; u <
|
|
28608
|
-
var f =
|
|
28607
|
+
for (var l = !1, c = {}, u = 0; u < Gu.length; u++) {
|
|
28608
|
+
var f = Gu[u], h = "rotate" + f;
|
|
28609
28609
|
a.getStaticValue(h) && (l = !0, c[h] = a.getStaticValue(h), a.setStaticValue(h, 0));
|
|
28610
28610
|
}
|
|
28611
28611
|
if (l) {
|
|
@@ -28792,7 +28792,7 @@ var iZ = E1({
|
|
|
28792
28792
|
}), oZ = N(N(N(N({}, Vj), sj), lM), AM), aZ = /* @__PURE__ */ KA(function(t, e) {
|
|
28793
28793
|
return _5(t, e, oZ, TM, sZ);
|
|
28794
28794
|
});
|
|
28795
|
-
function
|
|
28795
|
+
function df(t, e, r) {
|
|
28796
28796
|
var n, i, s, o, a;
|
|
28797
28797
|
e == null && (e = 100);
|
|
28798
28798
|
function l() {
|
|
@@ -28810,8 +28810,8 @@ function hf(t, e, r) {
|
|
|
28810
28810
|
n && (a = t.apply(s, i), s = i = null, clearTimeout(n), n = null);
|
|
28811
28811
|
}, c;
|
|
28812
28812
|
}
|
|
28813
|
-
|
|
28814
|
-
var lZ =
|
|
28813
|
+
df.debounce = df;
|
|
28814
|
+
var lZ = df;
|
|
28815
28815
|
const BO = /* @__PURE__ */ Ya(lZ);
|
|
28816
28816
|
function cZ(t) {
|
|
28817
28817
|
let {
|
|
@@ -29129,10 +29129,10 @@ function wZ(t, e) {
|
|
|
29129
29129
|
(r) => e.indexOf(r) > -1
|
|
29130
29130
|
);
|
|
29131
29131
|
}
|
|
29132
|
-
const
|
|
29132
|
+
const Ah = "dnd-core/INIT_COORDS", vl = "dnd-core/BEGIN_DRAG", Dh = "dnd-core/PUBLISH_DRAG_SOURCE", yl = "dnd-core/HOVER", bl = "dnd-core/DROP", Sl = "dnd-core/END_DRAG";
|
|
29133
29133
|
function FO(t, e) {
|
|
29134
29134
|
return {
|
|
29135
|
-
type:
|
|
29135
|
+
type: Ah,
|
|
29136
29136
|
payload: {
|
|
29137
29137
|
sourceClientOffset: e || null,
|
|
29138
29138
|
clientOffset: t || null
|
|
@@ -29140,7 +29140,7 @@ function FO(t, e) {
|
|
|
29140
29140
|
};
|
|
29141
29141
|
}
|
|
29142
29142
|
const PZ = {
|
|
29143
|
-
type:
|
|
29143
|
+
type: Ah,
|
|
29144
29144
|
payload: {
|
|
29145
29145
|
clientOffset: null,
|
|
29146
29146
|
sourceClientOffset: null
|
|
@@ -29263,7 +29263,7 @@ function IZ(t) {
|
|
|
29263
29263
|
function _Z(t) {
|
|
29264
29264
|
oe(t.isDragging(), "Cannot call endDrag while not dragging.");
|
|
29265
29265
|
}
|
|
29266
|
-
function
|
|
29266
|
+
function pf(t, e) {
|
|
29267
29267
|
return e === null ? t === null : Array.isArray(t) ? t.some(
|
|
29268
29268
|
(r) => r === e
|
|
29269
29269
|
) : t === e;
|
|
@@ -29296,7 +29296,7 @@ function VZ(t, e, r) {
|
|
|
29296
29296
|
function WZ(t, e, r) {
|
|
29297
29297
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
29298
29298
|
const i = t[n], s = e.getTargetType(i);
|
|
29299
|
-
|
|
29299
|
+
pf(s, r) || t.splice(n, 1);
|
|
29300
29300
|
}
|
|
29301
29301
|
}
|
|
29302
29302
|
function LZ(t, e, r) {
|
|
@@ -29308,7 +29308,7 @@ function YZ(t) {
|
|
|
29308
29308
|
return function() {
|
|
29309
29309
|
if (t.getMonitor().isDragging())
|
|
29310
29310
|
return {
|
|
29311
|
-
type:
|
|
29311
|
+
type: Dh
|
|
29312
29312
|
};
|
|
29313
29313
|
};
|
|
29314
29314
|
}
|
|
@@ -29378,11 +29378,11 @@ function FZ(t) {
|
|
|
29378
29378
|
const { clientOffset: e, initialClientOffset: r } = t;
|
|
29379
29379
|
return !e || !r ? null : M1(e, r);
|
|
29380
29380
|
}
|
|
29381
|
-
const Os = [],
|
|
29381
|
+
const Os = [], jh = [];
|
|
29382
29382
|
Os.__IS_NONE__ = !0;
|
|
29383
|
-
|
|
29383
|
+
jh.__IS_ALL__ = !0;
|
|
29384
29384
|
function GZ(t, e) {
|
|
29385
|
-
return t === Os ? !1 : t ===
|
|
29385
|
+
return t === Os ? !1 : t === jh || typeof e > "u" ? !0 : wZ(e, t).length > 0;
|
|
29386
29386
|
}
|
|
29387
29387
|
class HZ {
|
|
29388
29388
|
subscribeToStateChange(e, r = {}) {
|
|
@@ -29421,7 +29421,7 @@ class HZ {
|
|
|
29421
29421
|
if (oe(r, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
|
|
29422
29422
|
return !1;
|
|
29423
29423
|
const n = this.registry.getTargetType(e), i = this.getItemType();
|
|
29424
|
-
return
|
|
29424
|
+
return pf(n, i) && r.canDrop(this, e);
|
|
29425
29425
|
}
|
|
29426
29426
|
isDragging() {
|
|
29427
29427
|
return !!this.getItemType();
|
|
@@ -29444,7 +29444,7 @@ class HZ {
|
|
|
29444
29444
|
if (!this.isDragging())
|
|
29445
29445
|
return !1;
|
|
29446
29446
|
const i = this.registry.getTargetType(e), s = this.getItemType();
|
|
29447
|
-
if (s && !
|
|
29447
|
+
if (s && !pf(i, s))
|
|
29448
29448
|
return !1;
|
|
29449
29449
|
const o = this.getTargetIds();
|
|
29450
29450
|
if (!o.length)
|
|
@@ -29614,10 +29614,10 @@ const _1 = new e3(), n3 = new r3(_1.registerPendingError);
|
|
|
29614
29614
|
function i3(t) {
|
|
29615
29615
|
_1.enqueueTask(n3.create(t));
|
|
29616
29616
|
}
|
|
29617
|
-
const
|
|
29617
|
+
const Mh = "dnd-core/ADD_SOURCE", Zh = "dnd-core/ADD_TARGET", Ih = "dnd-core/REMOVE_SOURCE", xl = "dnd-core/REMOVE_TARGET";
|
|
29618
29618
|
function s3(t) {
|
|
29619
29619
|
return {
|
|
29620
|
-
type:
|
|
29620
|
+
type: Mh,
|
|
29621
29621
|
payload: {
|
|
29622
29622
|
sourceId: t
|
|
29623
29623
|
}
|
|
@@ -29625,7 +29625,7 @@ function s3(t) {
|
|
|
29625
29625
|
}
|
|
29626
29626
|
function o3(t) {
|
|
29627
29627
|
return {
|
|
29628
|
-
type:
|
|
29628
|
+
type: Zh,
|
|
29629
29629
|
payload: {
|
|
29630
29630
|
targetId: t
|
|
29631
29631
|
}
|
|
@@ -29633,7 +29633,7 @@ function o3(t) {
|
|
|
29633
29633
|
}
|
|
29634
29634
|
function a3(t) {
|
|
29635
29635
|
return {
|
|
29636
|
-
type:
|
|
29636
|
+
type: Ih,
|
|
29637
29637
|
payload: {
|
|
29638
29638
|
sourceId: t
|
|
29639
29639
|
}
|
|
@@ -29653,10 +29653,10 @@ function c3(t) {
|
|
|
29653
29653
|
function u3(t) {
|
|
29654
29654
|
oe(typeof t.canDrop == "function", "Expected canDrop to be a function."), oe(typeof t.hover == "function", "Expected hover to be a function."), oe(typeof t.drop == "function", "Expected beginDrag to be a function.");
|
|
29655
29655
|
}
|
|
29656
|
-
function
|
|
29656
|
+
function gf(t, e) {
|
|
29657
29657
|
if (e && Array.isArray(t)) {
|
|
29658
29658
|
t.forEach(
|
|
29659
|
-
(r) =>
|
|
29659
|
+
(r) => gf(r, !1)
|
|
29660
29660
|
);
|
|
29661
29661
|
return;
|
|
29662
29662
|
}
|
|
@@ -29704,12 +29704,12 @@ function KO(t, e) {
|
|
|
29704
29704
|
}
|
|
29705
29705
|
class p3 {
|
|
29706
29706
|
addSource(e, r) {
|
|
29707
|
-
|
|
29707
|
+
gf(e), c3(r);
|
|
29708
29708
|
const n = this.addHandler(Dt.SOURCE, e, r);
|
|
29709
29709
|
return this.store.dispatch(s3(n)), n;
|
|
29710
29710
|
}
|
|
29711
29711
|
addTarget(e, r) {
|
|
29712
|
-
|
|
29712
|
+
gf(e, !0), u3(r);
|
|
29713
29713
|
const n = this.addHandler(Dt.TARGET, e, r);
|
|
29714
29714
|
return this.store.dispatch(o3(n)), n;
|
|
29715
29715
|
}
|
|
@@ -29773,17 +29773,17 @@ function v3(t = Os, e) {
|
|
|
29773
29773
|
switch (e.type) {
|
|
29774
29774
|
case yl:
|
|
29775
29775
|
break;
|
|
29776
|
-
case jh:
|
|
29777
29776
|
case Mh:
|
|
29778
|
-
case xl:
|
|
29779
29777
|
case Zh:
|
|
29778
|
+
case xl:
|
|
29779
|
+
case Ih:
|
|
29780
29780
|
return Os;
|
|
29781
29781
|
case vl:
|
|
29782
|
-
case
|
|
29782
|
+
case Dh:
|
|
29783
29783
|
case Sl:
|
|
29784
29784
|
case bl:
|
|
29785
29785
|
default:
|
|
29786
|
-
return
|
|
29786
|
+
return jh;
|
|
29787
29787
|
}
|
|
29788
29788
|
const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = xZ(r, n);
|
|
29789
29789
|
if (!(i.length > 0 || !m3(r, n)))
|
|
@@ -29818,7 +29818,7 @@ const JO = {
|
|
|
29818
29818
|
function S3(t = JO, e) {
|
|
29819
29819
|
const { payload: r } = e;
|
|
29820
29820
|
switch (e.type) {
|
|
29821
|
-
case
|
|
29821
|
+
case Ah:
|
|
29822
29822
|
case vl:
|
|
29823
29823
|
return {
|
|
29824
29824
|
initialSourceClientOffset: r.sourceClientOffset,
|
|
@@ -29876,7 +29876,7 @@ function P3(t = w3, e) {
|
|
|
29876
29876
|
dropResult: null,
|
|
29877
29877
|
didDrop: !1
|
|
29878
29878
|
});
|
|
29879
|
-
case
|
|
29879
|
+
case Dh:
|
|
29880
29880
|
return Bn({}, t, {
|
|
29881
29881
|
isSourcePublic: !0
|
|
29882
29882
|
});
|
|
@@ -29910,10 +29910,10 @@ function P3(t = w3, e) {
|
|
|
29910
29910
|
}
|
|
29911
29911
|
function k3(t = 0, e) {
|
|
29912
29912
|
switch (e.type) {
|
|
29913
|
-
case jh:
|
|
29914
29913
|
case Mh:
|
|
29915
|
-
return t + 1;
|
|
29916
29914
|
case Zh:
|
|
29915
|
+
return t + 1;
|
|
29916
|
+
case Ih:
|
|
29917
29917
|
case xl:
|
|
29918
29918
|
return t - 1;
|
|
29919
29919
|
default:
|
|
@@ -30277,7 +30277,7 @@ function q3(t, e, r) {
|
|
|
30277
30277
|
() => n.removeSource(i)
|
|
30278
30278
|
];
|
|
30279
30279
|
}
|
|
30280
|
-
function
|
|
30280
|
+
function Of(t, e, r, n) {
|
|
30281
30281
|
let i = r ? r.call(n, t, e) : void 0;
|
|
30282
30282
|
if (i !== void 0)
|
|
30283
30283
|
return !!i;
|
|
@@ -30299,7 +30299,7 @@ function gf(t, e, r, n) {
|
|
|
30299
30299
|
}
|
|
30300
30300
|
return !0;
|
|
30301
30301
|
}
|
|
30302
|
-
function
|
|
30302
|
+
function mf(t) {
|
|
30303
30303
|
return (
|
|
30304
30304
|
// eslint-disable-next-line no-prototype-builtins
|
|
30305
30305
|
t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
|
|
@@ -30338,11 +30338,11 @@ function tm(t, e) {
|
|
|
30338
30338
|
}
|
|
30339
30339
|
function U3(t, e) {
|
|
30340
30340
|
const r = t.ref;
|
|
30341
|
-
return oe(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ?
|
|
30341
|
+
return oe(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? _c(t, {
|
|
30342
30342
|
ref: (n) => {
|
|
30343
30343
|
tm(r, n), tm(e, n);
|
|
30344
30344
|
}
|
|
30345
|
-
}) :
|
|
30345
|
+
}) : _c(t, {
|
|
30346
30346
|
ref: e
|
|
30347
30347
|
});
|
|
30348
30348
|
}
|
|
@@ -30393,10 +30393,10 @@ class F3 {
|
|
|
30393
30393
|
return this.lastConnectedDragPreview !== this.dragPreview;
|
|
30394
30394
|
}
|
|
30395
30395
|
didDragSourceOptionsChange() {
|
|
30396
|
-
return !
|
|
30396
|
+
return !Of(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
|
|
30397
30397
|
}
|
|
30398
30398
|
didDragPreviewOptionsChange() {
|
|
30399
|
-
return !
|
|
30399
|
+
return !Of(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
|
|
30400
30400
|
}
|
|
30401
30401
|
disconnectDragSource() {
|
|
30402
30402
|
this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
|
|
@@ -30419,10 +30419,10 @@ class F3 {
|
|
|
30419
30419
|
constructor(e) {
|
|
30420
30420
|
this.hooks = L1({
|
|
30421
30421
|
dragSource: (r, n) => {
|
|
30422
|
-
this.clearDragSource(), this.dragSourceOptions = n || null,
|
|
30422
|
+
this.clearDragSource(), this.dragSourceOptions = n || null, mf(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
|
|
30423
30423
|
},
|
|
30424
30424
|
dragPreview: (r, n) => {
|
|
30425
|
-
this.clearDragPreview(), this.dragPreviewOptions = n || null,
|
|
30425
|
+
this.clearDragPreview(), this.dragPreviewOptions = n || null, mf(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
|
|
30426
30426
|
}
|
|
30427
30427
|
}), this.handlerId = null, this.dragSourceRef = null, this.dragSourceOptionsInternal = null, this.dragPreviewRef = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = e;
|
|
30428
30428
|
}
|
|
@@ -30459,7 +30459,7 @@ class G3 {
|
|
|
30459
30459
|
return this.lastConnectedDropTarget !== this.dropTarget;
|
|
30460
30460
|
}
|
|
30461
30461
|
didOptionsChange() {
|
|
30462
|
-
return !
|
|
30462
|
+
return !Of(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
|
|
30463
30463
|
}
|
|
30464
30464
|
disconnectDropTarget() {
|
|
30465
30465
|
this.unsubscribeDropTarget && (this.unsubscribeDropTarget(), this.unsubscribeDropTarget = void 0);
|
|
@@ -30473,7 +30473,7 @@ class G3 {
|
|
|
30473
30473
|
constructor(e) {
|
|
30474
30474
|
this.hooks = L1({
|
|
30475
30475
|
dropTarget: (r, n) => {
|
|
30476
|
-
this.clearDropTarget(), this.dropTargetOptions = n,
|
|
30476
|
+
this.clearDropTarget(), this.dropTargetOptions = n, mf(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
|
|
30477
30477
|
}
|
|
30478
30478
|
}), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = e;
|
|
30479
30479
|
}
|
|
@@ -31291,7 +31291,7 @@ var ZI = function(t, e) {
|
|
|
31291
31291
|
return i.id === r;
|
|
31292
31292
|
});
|
|
31293
31293
|
return n === void 0 ? !1 : n.parent === e ? !0 : F1(t, e, n.parent);
|
|
31294
|
-
},
|
|
31294
|
+
}, _h = function(t) {
|
|
31295
31295
|
return t.id !== void 0 && t.parent !== void 0 && t.text !== void 0;
|
|
31296
31296
|
}, dn = function(t, e, r) {
|
|
31297
31297
|
var n = r.tree, i = r.rootId, s = r.canDrop;
|
|
@@ -31303,7 +31303,7 @@ var ZI = function(t, e) {
|
|
|
31303
31303
|
});
|
|
31304
31304
|
return !!(o && o.droppable);
|
|
31305
31305
|
} else {
|
|
31306
|
-
var a =
|
|
31306
|
+
var a = _h(t) ? t.id : null;
|
|
31307
31307
|
if (s) {
|
|
31308
31308
|
var l = s(a, e);
|
|
31309
31309
|
if (l !== void 0)
|
|
@@ -31354,7 +31354,7 @@ var ZI = function(t, e) {
|
|
|
31354
31354
|
}, VI = function(t, e) {
|
|
31355
31355
|
var r = t.getBoundingClientRect(), n = r.top + r.height / 2;
|
|
31356
31356
|
return e > n ? "down" : "up";
|
|
31357
|
-
},
|
|
31357
|
+
}, vf = function(t, e) {
|
|
31358
31358
|
var r = "", n = 0;
|
|
31359
31359
|
return t.forEach(function(i, s) {
|
|
31360
31360
|
var o, a = VI(i, ((o = e.getClientOffset()) === null || o === void 0 ? void 0 : o.y) || 0);
|
|
@@ -31362,11 +31362,11 @@ var ZI = function(t, e) {
|
|
|
31362
31362
|
}), n;
|
|
31363
31363
|
}, om = function(t, e, r) {
|
|
31364
31364
|
var n = e.closest('[role="list"]'), i = n == null ? void 0 : n.querySelectorAll(':scope > [role="listitem"]');
|
|
31365
|
-
return i ?
|
|
31365
|
+
return i ? vf(i, r) : null;
|
|
31366
31366
|
}, WI = function(t, e, r) {
|
|
31367
31367
|
var n = t.getBoundingClientRect(), i = r.dropTargetOffset, s = n.top + i, o = n.bottom - i;
|
|
31368
31368
|
return e > o ? "lower" : e < s ? "upper" : "middle";
|
|
31369
|
-
},
|
|
31369
|
+
}, yf = function(t, e, r, n) {
|
|
31370
31370
|
var i;
|
|
31371
31371
|
if (!e)
|
|
31372
31372
|
return null;
|
|
@@ -31374,7 +31374,7 @@ var ZI = function(t, e) {
|
|
|
31374
31374
|
var s = e.querySelectorAll(':scope > [role="listitem"]');
|
|
31375
31375
|
return {
|
|
31376
31376
|
id: n.rootId,
|
|
31377
|
-
index:
|
|
31377
|
+
index: vf(s, r)
|
|
31378
31378
|
};
|
|
31379
31379
|
}
|
|
31380
31380
|
var o = r.getItem(), a = e.querySelector('[role="list"]'), l = WI(e, ((i = r.getClientOffset()) === null || i === void 0 ? void 0 : i.y) || 0, n);
|
|
@@ -31394,7 +31394,7 @@ var ZI = function(t, e) {
|
|
|
31394
31394
|
var s = a.querySelectorAll(':scope > [role="listitem"]');
|
|
31395
31395
|
return {
|
|
31396
31396
|
id: t.id,
|
|
31397
|
-
index:
|
|
31397
|
+
index: vf(s, r)
|
|
31398
31398
|
};
|
|
31399
31399
|
} else {
|
|
31400
31400
|
if (l === "middle")
|
|
@@ -31606,7 +31606,7 @@ var ZI = function(t, e) {
|
|
|
31606
31606
|
accept: ht([wl.TREE_ITEM], e.extraAcceptTypes, !0),
|
|
31607
31607
|
drop: function(l, c) {
|
|
31608
31608
|
var u = e.rootId, f = e.onDrop, h = r.dropTargetId, d = r.index;
|
|
31609
|
-
c.isOver({ shallow: !0 }) && h !== void 0 && d !== void 0 && f(
|
|
31609
|
+
c.isOver({ shallow: !0 }) && h !== void 0 && d !== void 0 && f(_h(l) ? l : null, u, d), r.hidePlaceholder();
|
|
31610
31610
|
},
|
|
31611
31611
|
canDrop: function(l, c) {
|
|
31612
31612
|
var u = e.rootId;
|
|
@@ -31614,7 +31614,7 @@ var ZI = function(t, e) {
|
|
|
31614
31614
|
},
|
|
31615
31615
|
hover: function(l, c) {
|
|
31616
31616
|
if (c.isOver({ shallow: !0 })) {
|
|
31617
|
-
var u = e.rootId, f = r.dropTargetId, h = r.index, d = r.showPlaceholder, p = r.hidePlaceholder, g =
|
|
31617
|
+
var u = e.rootId, f = r.dropTargetId, h = r.index, d = r.showPlaceholder, p = r.hidePlaceholder, g = yf(null, t.current, c, e);
|
|
31618
31618
|
if (g === null || !dn(l, u, e)) {
|
|
31619
31619
|
p();
|
|
31620
31620
|
return;
|
|
@@ -31636,18 +31636,18 @@ var ZI = function(t, e) {
|
|
|
31636
31636
|
accept: ht([wl.TREE_ITEM], r.extraAcceptTypes, !0),
|
|
31637
31637
|
drop: function(c, u) {
|
|
31638
31638
|
var f = n.dropTargetId, h = n.index;
|
|
31639
|
-
u.isOver({ shallow: !0 }) && f !== void 0 && h !== void 0 && r.onDrop(
|
|
31639
|
+
u.isOver({ shallow: !0 }) && f !== void 0 && h !== void 0 && r.onDrop(_h(c) ? c : null, f, h), n.hidePlaceholder();
|
|
31640
31640
|
},
|
|
31641
31641
|
canDrop: function(c, u) {
|
|
31642
31642
|
if (u.isOver({ shallow: !0 })) {
|
|
31643
|
-
var f =
|
|
31643
|
+
var f = yf(t, e.current, u, r);
|
|
31644
31644
|
return f === null ? !1 : dn(c, f.id, r);
|
|
31645
31645
|
}
|
|
31646
31646
|
return !1;
|
|
31647
31647
|
},
|
|
31648
31648
|
hover: function(c, u) {
|
|
31649
31649
|
if (u.isOver({ shallow: !0 })) {
|
|
31650
|
-
var f = n.dropTargetId, h = n.index, d = n.showPlaceholder, p = n.hidePlaceholder, g =
|
|
31650
|
+
var f = n.dropTargetId, h = n.index, d = n.showPlaceholder, p = n.hidePlaceholder, g = yf(t, e.current, u, r);
|
|
31651
31651
|
if (g === null || !dn(c, g.id, r)) {
|
|
31652
31652
|
p();
|
|
31653
31653
|
return;
|
|
@@ -31763,9 +31763,9 @@ var ZI = function(t, e) {
|
|
|
31763
31763
|
l && P.hasChild && he.createElement(
|
|
31764
31764
|
jI,
|
|
31765
31765
|
{ isVisible: c },
|
|
31766
|
-
he.createElement(
|
|
31766
|
+
he.createElement(bf, { parentId: t.id, depth: t.depth + 1 })
|
|
31767
31767
|
),
|
|
31768
|
-
!l && P.hasChild && c && he.createElement(
|
|
31768
|
+
!l && P.hasChild && c && he.createElement(bf, { parentId: t.id, depth: t.depth + 1 })
|
|
31769
31769
|
);
|
|
31770
31770
|
}, cm = function(t) {
|
|
31771
31771
|
var e = gn(), r = e.placeholderRender, n = e.placeholderComponent, i = e.classes, s = Ee(Ks), o = Vr(), a = o.getMonitor(), l = a.getItem();
|
|
@@ -31773,7 +31773,7 @@ var ZI = function(t, e) {
|
|
|
31773
31773
|
return null;
|
|
31774
31774
|
var c = t.dropTargetId === s.dropTargetId && (t.index === s.index || t.index === void 0 && t.listCount === s.index);
|
|
31775
31775
|
return c ? he.createElement(n, { className: (i == null ? void 0 : i.placeholder) || "" }, r(l, { depth: t.depth })) : null;
|
|
31776
|
-
},
|
|
31776
|
+
}, bf = function(t) {
|
|
31777
31777
|
var e = gn(), r = le(null), n = e.tree.filter(function(g) {
|
|
31778
31778
|
return g.parent === t.parentId;
|
|
31779
31779
|
}), i = n, s = typeof e.sort == "function" ? e.sort : ZI;
|
|
@@ -31832,10 +31832,10 @@ function a_(t, e) {
|
|
|
31832
31832
|
UI,
|
|
31833
31833
|
Vt({}, t, { treeRef: e }),
|
|
31834
31834
|
t.dragPreviewRender && he.createElement(o_, null),
|
|
31835
|
-
he.createElement(
|
|
31835
|
+
he.createElement(bf, { parentId: t.rootId, depth: 0 })
|
|
31836
31836
|
);
|
|
31837
31837
|
}
|
|
31838
|
-
var l_ =
|
|
31838
|
+
var l_ = Sf(a_);
|
|
31839
31839
|
const c_ = ({
|
|
31840
31840
|
onSubmit: t,
|
|
31841
31841
|
onBlur: e,
|
|
@@ -32134,18 +32134,9 @@ const c_ = ({
|
|
|
32134
32134
|
...o
|
|
32135
32135
|
// 接受剩余属性
|
|
32136
32136
|
}) => {
|
|
32137
|
-
const a = le();
|
|
32137
|
+
const a = le(), l = e ? _c(e, { ref: a }) : null;
|
|
32138
32138
|
return /* @__PURE__ */ w.jsxs("div", { className: i, style: s, ...o, children: [
|
|
32139
|
-
|
|
32140
|
-
/* @__PURE__ */ w.jsx(
|
|
32141
|
-
"button",
|
|
32142
|
-
{
|
|
32143
|
-
onClick: () => {
|
|
32144
|
-
console.log(a.current);
|
|
32145
|
-
},
|
|
32146
|
-
children: "点击"
|
|
32147
|
-
}
|
|
32148
|
-
),
|
|
32139
|
+
l,
|
|
32149
32140
|
/* @__PURE__ */ w.jsx(E2, { template: t, theme: "dark", files: n, children: /* @__PURE__ */ w.jsx(Ty, { children: /* @__PURE__ */ w.jsxs(F2, { children: [
|
|
32150
32141
|
/* @__PURE__ */ w.jsx(h_, {}),
|
|
32151
32142
|
/* @__PURE__ */ w.jsx(zR, { editorFiles: a }),
|
|
@@ -32163,8 +32154,8 @@ const c_ = ({
|
|
|
32163
32154
|
] });
|
|
32164
32155
|
};
|
|
32165
32156
|
export {
|
|
32166
|
-
S_ as M,
|
|
32167
32157
|
ad as S,
|
|
32158
|
+
S_ as W,
|
|
32168
32159
|
p_ as _,
|
|
32169
32160
|
ow as a,
|
|
32170
32161
|
aw as b,
|