@graphysdk/react 1.9.0-beta.1795525230177 → 1.9.0-beta.1795532892391
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/editable.browser.mjs +472 -480
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
|
@@ -36396,10 +36396,10 @@ function AQ(e, t) {
|
|
|
36396
36396
|
h_(() => r.abort())
|
|
36397
36397
|
];
|
|
36398
36398
|
}
|
|
36399
|
-
function
|
|
36399
|
+
function e9e(e) {
|
|
36400
36400
|
return !(e.pointerType === "touch" || r1());
|
|
36401
36401
|
}
|
|
36402
|
-
function
|
|
36402
|
+
function t9e(e, t, n = {}) {
|
|
36403
36403
|
t = f_(t);
|
|
36404
36404
|
const [r, o, i] = AQ(e, n);
|
|
36405
36405
|
return r.forEach((a) => {
|
|
@@ -36421,7 +36421,7 @@ function tHe(e, t, n = {}) {
|
|
|
36421
36421
|
d(v);
|
|
36422
36422
|
}
|
|
36423
36423
|
}, g = (v) => {
|
|
36424
|
-
if (!
|
|
36424
|
+
if (!e9e(v)) return;
|
|
36425
36425
|
l = !1;
|
|
36426
36426
|
const y = t(a, v);
|
|
36427
36427
|
typeof y == "function" && (c = y, a.addEventListener("pointerleave", p, o));
|
|
@@ -36441,7 +36441,7 @@ function vC(e, t) {
|
|
|
36441
36441
|
bubbles: !0
|
|
36442
36442
|
}));
|
|
36443
36443
|
}
|
|
36444
|
-
var
|
|
36444
|
+
var n9e = (e, t) => {
|
|
36445
36445
|
let n = !1;
|
|
36446
36446
|
const r = g6(() => {
|
|
36447
36447
|
n || PM.has(e) || (n = !0, vC(e, "down"));
|
|
@@ -36455,19 +36455,19 @@ var nHe = (e, t) => {
|
|
|
36455
36455
|
once: !0
|
|
36456
36456
|
});
|
|
36457
36457
|
};
|
|
36458
|
-
function
|
|
36458
|
+
function r9e(e) {
|
|
36459
36459
|
return Pg(e) && !r1();
|
|
36460
36460
|
}
|
|
36461
|
-
var v6 = /* @__PURE__ */ new WeakSet(),
|
|
36462
|
-
function
|
|
36461
|
+
var v6 = /* @__PURE__ */ new WeakSet(), o9e = 100, i9e = 8, y6 = (e, t, n) => Math.hypot(e.clientX - t.clientX, e.clientY - t.clientY) > n, b6 = (e) => e.preventDefault();
|
|
36462
|
+
function a9e(e, t, n = {}) {
|
|
36463
36463
|
t = f_(t);
|
|
36464
36464
|
const [r, o, i] = AQ(e, n), a = /* @__PURE__ */ new WeakMap(), s = (l) => {
|
|
36465
36465
|
const c = l.currentTarget;
|
|
36466
|
-
if (!
|
|
36466
|
+
if (!r9e(l) || v6.has(l)) return;
|
|
36467
36467
|
n.stopPropagation && v6.add(l);
|
|
36468
36468
|
const { count: u = 1, countTimeout: d = 0.3, hold: h = 0, repeat: f } = n, p = Gt.now(), g = Sr(h), v = Sr(d);
|
|
36469
36469
|
let y = a.get(c);
|
|
36470
|
-
y?.expire(y6(y.event, l,
|
|
36470
|
+
y?.expire(y6(y.event, l, o9e)) ? y = void 0 : y && (Zr(y.expire), a.delete(c));
|
|
36471
36471
|
const b = y ? y.count + 1 : 1, S = b >= u, w = S && (h || f);
|
|
36472
36472
|
let T = !h, A = 0, C;
|
|
36473
36473
|
if (PM.add(c), y) C = y.handlers;
|
|
@@ -36505,7 +36505,7 @@ function aHe(e, t, n = {}) {
|
|
|
36505
36505
|
}, D = (N) => {
|
|
36506
36506
|
M(N, !1);
|
|
36507
36507
|
}, L = (N) => {
|
|
36508
|
-
Pg(N) && ((f || !T) && y6(l, N,
|
|
36508
|
+
Pg(N) && ((f || !T) && y6(l, N, i9e) || u > 1 && r1()) && D(N);
|
|
36509
36509
|
};
|
|
36510
36510
|
window.addEventListener("pointerup", O, E), window.addEventListener("pointercancel", D, E), (w || u > 1) && window.addEventListener("pointermove", L, E), w && (Rt.update(_, !0), c.addEventListener("contextmenu", b6, {
|
|
36511
36511
|
...o,
|
|
@@ -36513,10 +36513,10 @@ function aHe(e, t, n = {}) {
|
|
|
36513
36513
|
}));
|
|
36514
36514
|
};
|
|
36515
36515
|
return r.forEach((l) => {
|
|
36516
|
-
(n.useGlobalTarget ? window : l).addEventListener("pointerdown", s, o), ih(l) && (l.addEventListener("focus", () =>
|
|
36516
|
+
(n.useGlobalTarget ? window : l).addEventListener("pointerdown", s, o), ih(l) && (l.addEventListener("focus", () => n9e(l, o), o), !$$e(l) && !l.hasAttribute("tabindex") && (l.tabIndex = 0));
|
|
36517
36517
|
}), i;
|
|
36518
36518
|
}
|
|
36519
|
-
function
|
|
36519
|
+
function s9e(...e) {
|
|
36520
36520
|
const t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], o = e[1 + n], i = e[2 + n], a = e[3 + n], s = SZ(o, i, a);
|
|
36521
36521
|
return t ? s(r) : s;
|
|
36522
36522
|
}
|
|
@@ -36551,7 +36551,7 @@ var Xl = class {
|
|
|
36551
36551
|
"textLength",
|
|
36552
36552
|
"lengthAdjust"
|
|
36553
36553
|
]), kQ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
36554
|
-
function
|
|
36554
|
+
function l9e(e, t, n, r) {
|
|
36555
36555
|
bQ(e, t, void 0, r);
|
|
36556
36556
|
for (const o in t.attrs) e.setAttribute(T_.has(o) ? o : pu(o), t.attrs[o]);
|
|
36557
36557
|
}
|
|
@@ -36563,7 +36563,7 @@ function EQ(e, t, n) {
|
|
|
36563
36563
|
}
|
|
36564
36564
|
return r;
|
|
36565
36565
|
}
|
|
36566
|
-
var
|
|
36566
|
+
var c9e = class extends yQ {
|
|
36567
36567
|
constructor() {
|
|
36568
36568
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Jn;
|
|
36569
36569
|
}
|
|
@@ -36591,7 +36591,7 @@ var cHe = class extends yQ {
|
|
|
36591
36591
|
eQ(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
36592
36592
|
}
|
|
36593
36593
|
renderInstance(e, t, n, r) {
|
|
36594
|
-
|
|
36594
|
+
l9e(e, t, n, r);
|
|
36595
36595
|
}
|
|
36596
36596
|
mount(e) {
|
|
36597
36597
|
this.isSVGTag = kQ(e.tagName), super.mount(e);
|
|
@@ -36604,8 +36604,8 @@ function MQ(e, t) {
|
|
|
36604
36604
|
for (let r = 0; r < n; r++) if (t[r] !== e[r]) return !1;
|
|
36605
36605
|
return !0;
|
|
36606
36606
|
}
|
|
36607
|
-
var
|
|
36608
|
-
function
|
|
36607
|
+
var u9e = [...XS].reverse(), x6 = (e) => e?.out === !0 ? e : e?.out;
|
|
36608
|
+
function d9e(e) {
|
|
36609
36609
|
let t = (s) => Promise.all(s.map(({ animation: l, options: c }) => q8e(e, l, c))), n = w6(), r = !0, o = !1;
|
|
36610
36610
|
function i(s) {
|
|
36611
36611
|
const { props: l, parent: c, manuallyAnimateOnMount: u } = e, { initial: d } = l, h = r || o, f = [], p = (T = d) => typeof T != "boolean" && Wc(e, Array.isArray(T) ? T[0] : T, e.presenceContext?.custom) || void 0, g = /* @__PURE__ */ new Map();
|
|
@@ -36614,7 +36614,7 @@ function dHe(e) {
|
|
|
36614
36614
|
b = b.props.inherit !== !1 && b.parent;
|
|
36615
36615
|
while (b && !b.isControllingVariants);
|
|
36616
36616
|
const S = h && x6(p(d ?? (b && b.props.initial))?.transition);
|
|
36617
|
-
if (
|
|
36617
|
+
if (u9e.forEach((T, A) => {
|
|
36618
36618
|
const C = n[T], x = l[T], k = b && b.props[T], I = x !== void 0 ? x : Mg(k) || k === !1 ? k : void 0, P = Mg(I), _ = T === s ? C.isActive : null, E = P && x === void 0 && !(h && u);
|
|
36619
36619
|
if (C.protectedKeys = { ...v }, !C.isActive && _ === null || !I && !C.prevProp || qS(I) || typeof I == "boolean") return;
|
|
36620
36620
|
if (_ === !1 && (y = A), T === "exit" && C.isActive && _ !== !0) {
|
|
@@ -36624,7 +36624,7 @@ function dHe(e) {
|
|
|
36624
36624
|
};
|
|
36625
36625
|
return;
|
|
36626
36626
|
}
|
|
36627
|
-
const M =
|
|
36627
|
+
const M = h9e(C.prevProp, I);
|
|
36628
36628
|
let O = M || P && (_ && !E || A > y), D = !1;
|
|
36629
36629
|
const L = Array.isArray(I) ? I : [I];
|
|
36630
36630
|
let N = {}, F;
|
|
@@ -36702,7 +36702,7 @@ function dHe(e) {
|
|
|
36702
36702
|
}
|
|
36703
36703
|
};
|
|
36704
36704
|
}
|
|
36705
|
-
function
|
|
36705
|
+
function h9e(e, t) {
|
|
36706
36706
|
return typeof t == "string" ? t !== e : Array.isArray(t) ? !MQ(t, e) : !1;
|
|
36707
36707
|
}
|
|
36708
36708
|
function w6() {
|
|
@@ -36725,7 +36725,7 @@ function S6(e, t) {
|
|
|
36725
36725
|
if (typeof e == "function") return e(t);
|
|
36726
36726
|
e != null && (e.current = t);
|
|
36727
36727
|
}
|
|
36728
|
-
function
|
|
36728
|
+
function f9e(...e) {
|
|
36729
36729
|
return (t) => {
|
|
36730
36730
|
let n = !1;
|
|
36731
36731
|
const r = e.map((o) => {
|
|
@@ -36740,8 +36740,8 @@ function fHe(...e) {
|
|
|
36740
36740
|
};
|
|
36741
36741
|
};
|
|
36742
36742
|
}
|
|
36743
|
-
function
|
|
36744
|
-
return R.useCallback(
|
|
36743
|
+
function p9e(...e) {
|
|
36744
|
+
return R.useCallback(f9e(...e), e);
|
|
36745
36745
|
}
|
|
36746
36746
|
var T6 = (e) => {
|
|
36747
36747
|
const { width: t, height: n } = e?.getBoundingClientRect() || {};
|
|
@@ -36758,7 +36758,7 @@ var T6 = (e) => {
|
|
|
36758
36758
|
}
|
|
36759
36759
|
const [o, i] = T6(e.offsetParent);
|
|
36760
36760
|
return [t / o, n / i];
|
|
36761
|
-
},
|
|
36761
|
+
}, m9e = class extends R.Component {
|
|
36762
36762
|
getSnapshotBeforeUpdate(e) {
|
|
36763
36763
|
const t = this.props.getElement();
|
|
36764
36764
|
if (ih(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
|
|
@@ -36773,7 +36773,7 @@ var T6 = (e) => {
|
|
|
36773
36773
|
return this.props.children;
|
|
36774
36774
|
}
|
|
36775
36775
|
};
|
|
36776
|
-
function
|
|
36776
|
+
function g9e({ children: e, isPresent: t, anchorX: n, anchorY: r, root: o, pop: i, popNode: a }) {
|
|
36777
36777
|
const s = Qt(), l = ye(null), c = ye({
|
|
36778
36778
|
width: 0,
|
|
36779
36779
|
height: 0,
|
|
@@ -36782,7 +36782,7 @@ function gHe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: o, pop:
|
|
|
36782
36782
|
right: 0,
|
|
36783
36783
|
bottom: 0,
|
|
36784
36784
|
direction: "ltr"
|
|
36785
|
-
}), { nonce: u } = _e(ZS), d =
|
|
36785
|
+
}), { nonce: u } = _e(ZS), d = p9e(l, i !== !1 ? e.props?.ref ?? e?.ref : void 0), h = () => l.current || a?.current?.current, f = (p) => {
|
|
36786
36786
|
const { width: g, height: v, top: y, left: b, right: S, bottom: w, direction: T } = c.current, A = T === "rtl", C = n === "left" ? A ? `right:${S}` : `left:${b}` : A ? `left:${b}` : `right:${S}`, x = r === "bottom" ? `bottom:${w}` : `top:${y}`;
|
|
36787
36787
|
p?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${g}px!important;height:${v}px!important;${C}px!important;${x}px!important}`);
|
|
36788
36788
|
};
|
|
@@ -36806,7 +36806,7 @@ function gHe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: o, pop:
|
|
|
36806
36806
|
}), () => {
|
|
36807
36807
|
v.removeAttribute("data-motion-pop-id"), S.contains(b) && S.removeChild(b);
|
|
36808
36808
|
};
|
|
36809
|
-
}, [t]), m(
|
|
36809
|
+
}, [t]), m(m9e, {
|
|
36810
36810
|
isPresent: t,
|
|
36811
36811
|
getElement: h,
|
|
36812
36812
|
sizeRef: c,
|
|
@@ -36814,8 +36814,8 @@ function gHe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: o, pop:
|
|
|
36814
36814
|
children: i === !1 ? e : R.cloneElement(e, { ref: d })
|
|
36815
36815
|
});
|
|
36816
36816
|
}
|
|
36817
|
-
var
|
|
36818
|
-
const u = Bl(
|
|
36817
|
+
var v9e = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a, anchorX: s, anchorY: l, root: c }) => {
|
|
36818
|
+
const u = Bl(y9e), d = Qt(), h = ye(), f = ye(n), p = ye(r);
|
|
36819
36819
|
Ph(() => {
|
|
36820
36820
|
f.current = n, p.current = r;
|
|
36821
36821
|
});
|
|
@@ -36841,7 +36841,7 @@ var vHe = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o
|
|
|
36841
36841
|
u.forEach((y, b) => u.set(b, !1));
|
|
36842
36842
|
}, [n]), R.useEffect(() => {
|
|
36843
36843
|
!n && !u.size && r && r();
|
|
36844
|
-
}, [n]), e = m(
|
|
36844
|
+
}, [n]), e = m(g9e, {
|
|
36845
36845
|
pop: a === "popLayout",
|
|
36846
36846
|
isPresent: n,
|
|
36847
36847
|
anchorX: s,
|
|
@@ -36854,7 +36854,7 @@ var vHe = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o
|
|
|
36854
36854
|
children: e
|
|
36855
36855
|
});
|
|
36856
36856
|
};
|
|
36857
|
-
function
|
|
36857
|
+
function y9e() {
|
|
36858
36858
|
return /* @__PURE__ */ new Map();
|
|
36859
36859
|
}
|
|
36860
36860
|
function IQ(e = !0) {
|
|
@@ -36871,10 +36871,10 @@ function IQ(e = !0) {
|
|
|
36871
36871
|
]);
|
|
36872
36872
|
return !n && r ? [!1, a] : [!0];
|
|
36873
36873
|
}
|
|
36874
|
-
function
|
|
36875
|
-
return
|
|
36874
|
+
function b9e() {
|
|
36875
|
+
return x9e(_e(yf));
|
|
36876
36876
|
}
|
|
36877
|
-
function
|
|
36877
|
+
function x9e(e) {
|
|
36878
36878
|
return e === null ? !0 : e.isPresent;
|
|
36879
36879
|
}
|
|
36880
36880
|
var pp = (e) => e.key || "";
|
|
@@ -36884,7 +36884,7 @@ function A6(e) {
|
|
|
36884
36884
|
Rhe(n) && t.push(n);
|
|
36885
36885
|
}), t;
|
|
36886
36886
|
}
|
|
36887
|
-
var
|
|
36887
|
+
var w9e = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1, anchorX: s = "left", anchorY: l = "top", root: c }) => {
|
|
36888
36888
|
const [u, d] = IQ(a), h = ne(() => A6(e), [e]), f = a && !u ? [] : h.map(pp), p = ye(!0), g = Bl(() => /* @__PURE__ */ new Map()), v = ye(/* @__PURE__ */ new Set()), [y, b] = ke(h), [S, w] = ke(h);
|
|
36889
36889
|
Ph(() => {
|
|
36890
36890
|
a && !u && !S.length && d?.();
|
|
@@ -36930,7 +36930,7 @@ var wHe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
|
|
|
36930
36930
|
E || (_ = !1);
|
|
36931
36931
|
}), _ && (C?.(), b([]), a && d?.(), T.current = r);
|
|
36932
36932
|
};
|
|
36933
|
-
return m(
|
|
36933
|
+
return m(v9e, {
|
|
36934
36934
|
isPresent: I,
|
|
36935
36935
|
initial: !p.current || n ? void 0 : !1,
|
|
36936
36936
|
custom: t,
|
|
@@ -36972,16 +36972,16 @@ var wHe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
|
|
|
36972
36972
|
],
|
|
36973
36973
|
layout: ["layout", "layoutId"]
|
|
36974
36974
|
}, k6 = !1;
|
|
36975
|
-
function
|
|
36975
|
+
function S9e() {
|
|
36976
36976
|
if (k6) return;
|
|
36977
36977
|
const e = {};
|
|
36978
36978
|
for (const t in C6) e[t] = { isEnabled: (n) => C6[t].some((r) => !!n[r]) };
|
|
36979
36979
|
vQ(e), k6 = !0;
|
|
36980
36980
|
}
|
|
36981
36981
|
function LQ() {
|
|
36982
|
-
return
|
|
36982
|
+
return S9e(), T$e();
|
|
36983
36983
|
}
|
|
36984
|
-
function
|
|
36984
|
+
function T9e(e) {
|
|
36985
36985
|
const t = LQ();
|
|
36986
36986
|
for (const n in e) t[n] = {
|
|
36987
36987
|
...t[n],
|
|
@@ -36990,7 +36990,7 @@ function THe(e) {
|
|
|
36990
36990
|
vQ(t);
|
|
36991
36991
|
}
|
|
36992
36992
|
var QS = /* @__PURE__ */ Ct({});
|
|
36993
|
-
function
|
|
36993
|
+
function A9e(e, t) {
|
|
36994
36994
|
if (JS(e)) {
|
|
36995
36995
|
const { initial: n, animate: r } = e;
|
|
36996
36996
|
return {
|
|
@@ -37000,8 +37000,8 @@ function AHe(e, t) {
|
|
|
37000
37000
|
}
|
|
37001
37001
|
return e.inherit !== !1 ? t : {};
|
|
37002
37002
|
}
|
|
37003
|
-
function
|
|
37004
|
-
const { initial: t, animate: n } =
|
|
37003
|
+
function C9e(e) {
|
|
37004
|
+
const { initial: t, animate: n } = A9e(e, _e(QS));
|
|
37005
37005
|
return ne(() => ({
|
|
37006
37006
|
initial: t,
|
|
37007
37007
|
animate: n
|
|
@@ -37019,25 +37019,25 @@ var A_ = () => ({
|
|
|
37019
37019
|
function _Q(e, t, n) {
|
|
37020
37020
|
for (const r in t) !Un(t[r]) && !xQ(r, n) && (e[r] = t[r]);
|
|
37021
37021
|
}
|
|
37022
|
-
function
|
|
37022
|
+
function k9e({ transformTemplate: e }, t) {
|
|
37023
37023
|
return ne(() => {
|
|
37024
37024
|
const n = A_();
|
|
37025
37025
|
return v_(n, t, e), Object.assign({}, n.vars, n.style);
|
|
37026
37026
|
}, [t]);
|
|
37027
37027
|
}
|
|
37028
|
-
function
|
|
37028
|
+
function E9e(e, t) {
|
|
37029
37029
|
const n = e.style || {}, r = {};
|
|
37030
|
-
return _Q(r, n, e), Object.assign(r,
|
|
37030
|
+
return _Q(r, n, e), Object.assign(r, k9e(e, t)), r;
|
|
37031
37031
|
}
|
|
37032
|
-
function
|
|
37033
|
-
const n = {}, r =
|
|
37032
|
+
function M9e(e, t) {
|
|
37033
|
+
const n = {}, r = E9e(e, t);
|
|
37034
37034
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
37035
37035
|
}
|
|
37036
37036
|
var OQ = () => ({
|
|
37037
37037
|
...A_(),
|
|
37038
37038
|
attrs: {}
|
|
37039
37039
|
});
|
|
37040
|
-
function
|
|
37040
|
+
function P9e(e, t, n, r) {
|
|
37041
37041
|
const o = ne(() => {
|
|
37042
37042
|
const i = OQ();
|
|
37043
37043
|
return eQ(i, t, kQ(r), e.transformTemplate, e.style), {
|
|
@@ -37057,7 +37057,7 @@ function PHe(e, t, n, r) {
|
|
|
37057
37057
|
}
|
|
37058
37058
|
return o;
|
|
37059
37059
|
}
|
|
37060
|
-
var
|
|
37060
|
+
var I9e = /* @__PURE__ */ new Set([
|
|
37061
37061
|
"animate",
|
|
37062
37062
|
"exit",
|
|
37063
37063
|
"variants",
|
|
@@ -37092,12 +37092,12 @@ var IHe = /* @__PURE__ */ new Set([
|
|
|
37092
37092
|
"pinch"
|
|
37093
37093
|
]);
|
|
37094
37094
|
function o1(e) {
|
|
37095
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
37095
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || I9e.has(e);
|
|
37096
37096
|
}
|
|
37097
|
-
function
|
|
37097
|
+
function R9e(e, t) {
|
|
37098
37098
|
return e.startsWith("on") ? !o1(e) : t?.(e) ?? !o1(e);
|
|
37099
37099
|
}
|
|
37100
|
-
function
|
|
37100
|
+
function L9e(e, t, n, r) {
|
|
37101
37101
|
const o = {};
|
|
37102
37102
|
for (const i in e)
|
|
37103
37103
|
if (!(i === "values" && typeof e.values == "object") && !Un(e[i])) {
|
|
@@ -37105,11 +37105,11 @@ function LHe(e, t, n, r) {
|
|
|
37105
37105
|
e.fx && (o.fx = "");
|
|
37106
37106
|
continue;
|
|
37107
37107
|
}
|
|
37108
|
-
(
|
|
37108
|
+
(R9e(i, r) || n === !0 && o1(i) || !t && !o1(i) || e.draggable && i.startsWith("onDrag")) && (o[i] = e[i]);
|
|
37109
37109
|
}
|
|
37110
37110
|
return o;
|
|
37111
37111
|
}
|
|
37112
|
-
var
|
|
37112
|
+
var _9e = [
|
|
37113
37113
|
"animate",
|
|
37114
37114
|
"circle",
|
|
37115
37115
|
"defs",
|
|
@@ -37137,10 +37137,10 @@ var _He = [
|
|
|
37137
37137
|
"view"
|
|
37138
37138
|
];
|
|
37139
37139
|
function C_(e) {
|
|
37140
|
-
return typeof e != "string" || e.includes("-") ? !1 : !!(
|
|
37140
|
+
return typeof e != "string" || e.includes("-") ? !1 : !!(_9e.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
37141
37141
|
}
|
|
37142
|
-
function
|
|
37143
|
-
const l = (a ?? C_(e) ?
|
|
37142
|
+
function O9e(e, t, n, { latestValues: r }, o, i = !1, a, s) {
|
|
37143
|
+
const l = (a ?? C_(e) ? P9e : M9e)(t, r, o, e), c = L9e(t, typeof e == "string", i, s), u = e !== ef ? {
|
|
37144
37144
|
...c,
|
|
37145
37145
|
...l,
|
|
37146
37146
|
ref: n
|
|
@@ -37150,13 +37150,13 @@ function OHe(e, t, n, { latestValues: r }, o, i = !1, a, s) {
|
|
|
37150
37150
|
children: h
|
|
37151
37151
|
});
|
|
37152
37152
|
}
|
|
37153
|
-
function
|
|
37153
|
+
function D9e({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, o) {
|
|
37154
37154
|
return {
|
|
37155
|
-
latestValues:
|
|
37155
|
+
latestValues: N9e(n, r, o, e),
|
|
37156
37156
|
renderState: t()
|
|
37157
37157
|
};
|
|
37158
37158
|
}
|
|
37159
|
-
function
|
|
37159
|
+
function N9e(e, t, n, r) {
|
|
37160
37160
|
const o = {}, i = r(e, {});
|
|
37161
37161
|
for (const h in i) o[h] = Pb(i[h]);
|
|
37162
37162
|
let { initial: a, animate: s } = e;
|
|
@@ -37186,16 +37186,16 @@ function NHe(e, t, n, r) {
|
|
|
37186
37186
|
return o;
|
|
37187
37187
|
}
|
|
37188
37188
|
var DQ = (e) => (t, n) => {
|
|
37189
|
-
const r = _e(QS), o = _e(yf), i = () =>
|
|
37189
|
+
const r = _e(QS), o = _e(yf), i = () => D9e(e, t, r, o);
|
|
37190
37190
|
return n ? i() : Bl(i);
|
|
37191
|
-
},
|
|
37191
|
+
}, F9e = /* @__PURE__ */ DQ({
|
|
37192
37192
|
scrapeMotionValuesFromProps: w_,
|
|
37193
37193
|
createRenderState: A_
|
|
37194
|
-
}),
|
|
37194
|
+
}), B9e = /* @__PURE__ */ DQ({
|
|
37195
37195
|
scrapeMotionValuesFromProps: EQ,
|
|
37196
37196
|
createRenderState: OQ
|
|
37197
|
-
}),
|
|
37198
|
-
function $
|
|
37197
|
+
}), V9e = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
37198
|
+
function $9e(e, t, n) {
|
|
37199
37199
|
const r = ye(n);
|
|
37200
37200
|
RP(() => {
|
|
37201
37201
|
r.current = n;
|
|
@@ -37212,7 +37212,7 @@ function $He(e, t, n) {
|
|
|
37212
37212
|
}, [t]);
|
|
37213
37213
|
}
|
|
37214
37214
|
var NQ = /* @__PURE__ */ Ct({});
|
|
37215
|
-
function
|
|
37215
|
+
function H9e(e, t, n, r, o, i) {
|
|
37216
37216
|
const { visualElement: a } = _e(QS), s = _e(RQ), l = _e(yf), c = _e(ZS), u = c.reducedMotion, d = c.skipAnimations, h = ye(null), f = ye(!1);
|
|
37217
37217
|
r = r || s.renderer, !h.current && r && (h.current = r(e, {
|
|
37218
37218
|
visualState: t,
|
|
@@ -37240,11 +37240,11 @@ function HHe(e, t, n, r, o, i) {
|
|
|
37240
37240
|
}), p;
|
|
37241
37241
|
}
|
|
37242
37242
|
function yC(e, { forwardMotionProps: t = !1, type: n } = {}, r, o) {
|
|
37243
|
-
r &&
|
|
37244
|
-
const i = n ? n === "svg" : C_(e), a = i ?
|
|
37243
|
+
r && T9e(r);
|
|
37244
|
+
const i = n ? n === "svg" : C_(e), a = i ? B9e : F9e;
|
|
37245
37245
|
function s(c, u) {
|
|
37246
37246
|
let d;
|
|
37247
|
-
const h =
|
|
37247
|
+
const h = z9e(c);
|
|
37248
37248
|
Bl(() => !!Rb.current?.sharedNodes.get(h)?.lead && c.initial) && (c = {
|
|
37249
37249
|
...c,
|
|
37250
37250
|
initial: !1
|
|
@@ -37253,32 +37253,32 @@ function yC(e, { forwardMotionProps: t = !1, type: n } = {}, r, o) {
|
|
|
37253
37253
|
..._e(ZS),
|
|
37254
37254
|
...c,
|
|
37255
37255
|
layoutId: h
|
|
37256
|
-
}, { isStatic: p, isValidProp: g } = f, v =
|
|
37256
|
+
}, { isStatic: p, isValidProp: g } = f, v = C9e(c), y = a(c, p);
|
|
37257
37257
|
if (!p && typeof window < "u") {
|
|
37258
|
-
|
|
37259
|
-
const b =
|
|
37260
|
-
v.visualElement =
|
|
37258
|
+
G9e(f, r);
|
|
37259
|
+
const b = W9e(f);
|
|
37260
|
+
v.visualElement = H9e(e, y, f, o, b.ProjectionNode, i), (b.isEnabled || v.visualElement?.projection?.options.layoutId) && (d = b.MeasureLayout);
|
|
37261
37261
|
}
|
|
37262
37262
|
return $(QS.Provider, {
|
|
37263
37263
|
value: v,
|
|
37264
37264
|
children: [d && v.visualElement ? m(d, {
|
|
37265
37265
|
visualElement: v.visualElement,
|
|
37266
37266
|
...f
|
|
37267
|
-
}) : null,
|
|
37267
|
+
}) : null, O9e(e, c, $9e(y, v.visualElement, u), y, p, t, i, g)]
|
|
37268
37268
|
});
|
|
37269
37269
|
}
|
|
37270
37270
|
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
37271
37271
|
const l = Wz(s);
|
|
37272
|
-
return l[
|
|
37272
|
+
return l[V9e] = e, l;
|
|
37273
37273
|
}
|
|
37274
|
-
function
|
|
37274
|
+
function z9e({ layoutId: e }) {
|
|
37275
37275
|
const t = _e(FL).id;
|
|
37276
37276
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
37277
37277
|
}
|
|
37278
|
-
function
|
|
37278
|
+
function G9e(e, t) {
|
|
37279
37279
|
_e(RQ).strict;
|
|
37280
37280
|
}
|
|
37281
|
-
function
|
|
37281
|
+
function W9e(e) {
|
|
37282
37282
|
const { drag: t, layout: n } = LQ();
|
|
37283
37283
|
if (!t && !n) return {};
|
|
37284
37284
|
const r = {
|
|
@@ -37291,14 +37291,14 @@ function WHe(e) {
|
|
|
37291
37291
|
ProjectionNode: r.ProjectionNode
|
|
37292
37292
|
};
|
|
37293
37293
|
}
|
|
37294
|
-
function
|
|
37294
|
+
function U9e(e, t) {
|
|
37295
37295
|
if (typeof Proxy > "u") return yC;
|
|
37296
37296
|
const n = /* @__PURE__ */ new Map(), r = (i, a) => yC(i, a, e, t), o = (i, a) => r(i, a);
|
|
37297
37297
|
return new Proxy(o, { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, yC(a, void 0, e, t)), n.get(a)) });
|
|
37298
37298
|
}
|
|
37299
|
-
var
|
|
37299
|
+
var j9e = (e, t) => t.isSVG ?? C_(e) ? new c9e(t) : new k$e(t, { allowProjection: e !== ef }), Y9e = class extends Xl {
|
|
37300
37300
|
constructor(e) {
|
|
37301
|
-
super(e), e.animationState || (e.animationState =
|
|
37301
|
+
super(e), e.animationState || (e.animationState = d9e(e));
|
|
37302
37302
|
}
|
|
37303
37303
|
updateAnimationControlsSubscription() {
|
|
37304
37304
|
const { animate: e } = this.node.getProps();
|
|
@@ -37313,9 +37313,9 @@ var jHe = (e, t) => t.isSVG ?? C_(e) ? new cHe(t) : new k$e(t, { allowProjection
|
|
|
37313
37313
|
unmount() {
|
|
37314
37314
|
this.node.animationState.reset(), this.unmountControls?.();
|
|
37315
37315
|
}
|
|
37316
|
-
},
|
|
37316
|
+
}, K9e = 0, q9e = class extends Xl {
|
|
37317
37317
|
constructor() {
|
|
37318
|
-
super(...arguments), this.id =
|
|
37318
|
+
super(...arguments), this.id = K9e++;
|
|
37319
37319
|
}
|
|
37320
37320
|
update() {
|
|
37321
37321
|
const { presenceContext: e, animationState: t } = this.node;
|
|
@@ -37345,10 +37345,10 @@ var jHe = (e, t) => t.isSVG ?? C_(e) ? new cHe(t) : new k$e(t, { allowProjection
|
|
|
37345
37345
|
}
|
|
37346
37346
|
unmount() {
|
|
37347
37347
|
}
|
|
37348
|
-
},
|
|
37349
|
-
animation: { Feature:
|
|
37350
|
-
exit: { Feature:
|
|
37351
|
-
},
|
|
37348
|
+
}, X9e = {
|
|
37349
|
+
animation: { Feature: Y9e },
|
|
37350
|
+
exit: { Feature: q9e }
|
|
37351
|
+
}, J9e = class extends Xl {
|
|
37352
37352
|
constructor(e) {
|
|
37353
37353
|
super(e), this.removeGroupControls = Bi, this.removeListeners = Bi, this.controls = new J$e(e);
|
|
37354
37354
|
}
|
|
@@ -37365,7 +37365,7 @@ var jHe = (e, t) => t.isSVG ?? C_(e) ? new cHe(t) : new k$e(t, { allowProjection
|
|
|
37365
37365
|
}
|
|
37366
37366
|
}, bC = (e) => (t, n) => {
|
|
37367
37367
|
e && Rt.update(() => e(t, n), !1, !0);
|
|
37368
|
-
},
|
|
37368
|
+
}, Z9e = class extends Xl {
|
|
37369
37369
|
constructor() {
|
|
37370
37370
|
super(...arguments), this.removePointerDownListener = Bi;
|
|
37371
37371
|
}
|
|
@@ -37412,7 +37412,7 @@ var jHe = (e, t) => t.isSVG ?? C_(e) ? new cHe(t) : new k$e(t, { allowProjection
|
|
|
37412
37412
|
const { resumeFrom: i } = e;
|
|
37413
37413
|
i?.isPresent !== !1 && e.getStack().members.includes(i) && (i.hide(), e.resumeFrom = void 0, e.snapshot = n);
|
|
37414
37414
|
};
|
|
37415
|
-
},
|
|
37415
|
+
}, Q9e = class extends Gz {
|
|
37416
37416
|
componentDidMount() {
|
|
37417
37417
|
const { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: o } = e;
|
|
37418
37418
|
o && (t.group?.add(o), r && n?.register?.(o), xC && o.root.didUpdate(), o.options.layoutId !== r && P6(o, r)?.(), o.addEventListener("animationComplete", () => this.safeToRemove()), o.setOptions({
|
|
@@ -37449,7 +37449,7 @@ var jHe = (e, t) => t.isSVG ?? C_(e) ? new cHe(t) : new k$e(t, { allowProjection
|
|
|
37449
37449
|
};
|
|
37450
37450
|
function FQ(e) {
|
|
37451
37451
|
const [t, n] = IQ(), r = _e(FL);
|
|
37452
|
-
return m(
|
|
37452
|
+
return m(Q9e, {
|
|
37453
37453
|
...e,
|
|
37454
37454
|
layoutGroup: r,
|
|
37455
37455
|
switchLayoutGroup: _e(NQ),
|
|
@@ -37457,10 +37457,10 @@ function FQ(e) {
|
|
|
37457
37457
|
safeToRemove: n
|
|
37458
37458
|
});
|
|
37459
37459
|
}
|
|
37460
|
-
var
|
|
37461
|
-
pan: { Feature:
|
|
37460
|
+
var eHe = {
|
|
37461
|
+
pan: { Feature: Z9e },
|
|
37462
37462
|
drag: {
|
|
37463
|
-
Feature:
|
|
37463
|
+
Feature: J9e,
|
|
37464
37464
|
ProjectionNode: fQ,
|
|
37465
37465
|
MeasureLayout: FQ
|
|
37466
37466
|
}
|
|
@@ -37471,14 +37471,14 @@ function IM(e, t, n, r, o) {
|
|
|
37471
37471
|
const s = i["on" + n + r];
|
|
37472
37472
|
s && Rt.postRender(() => s(t, S_(t)));
|
|
37473
37473
|
}
|
|
37474
|
-
var
|
|
37474
|
+
var tHe = class extends Xl {
|
|
37475
37475
|
mount() {
|
|
37476
37476
|
const { current: e } = this.node;
|
|
37477
|
-
e && (this.unmount =
|
|
37477
|
+
e && (this.unmount = t9e(e, (t, n) => (IM(this.node, n, "Hover", "Start"), (r) => IM(this.node, r, "Hover", "End"))));
|
|
37478
37478
|
}
|
|
37479
37479
|
unmount() {
|
|
37480
37480
|
}
|
|
37481
|
-
},
|
|
37481
|
+
}, nHe = class extends Xl {
|
|
37482
37482
|
constructor() {
|
|
37483
37483
|
super(...arguments), this.isActive = !1;
|
|
37484
37484
|
}
|
|
@@ -37503,13 +37503,13 @@ var t9e = class extends Xl {
|
|
|
37503
37503
|
function wC(e, t, n, r) {
|
|
37504
37504
|
e.current instanceof HTMLButtonElement && e.current.disabled || IM(e, t, "Tap", n, r);
|
|
37505
37505
|
}
|
|
37506
|
-
var
|
|
37506
|
+
var rHe = class extends Xl {
|
|
37507
37507
|
constructor() {
|
|
37508
37508
|
super(...arguments), this.options = {};
|
|
37509
37509
|
}
|
|
37510
37510
|
mount() {
|
|
37511
37511
|
const { current: e } = this.node;
|
|
37512
|
-
e && (this.update(), this.unmount =
|
|
37512
|
+
e && (this.update(), this.unmount = a9e(e, (t, n) => (wC(this.node, n, "Start"), {
|
|
37513
37513
|
onComplete: (r, { success: o }) => wC(this.node, r, o ? "" : "Cancel"),
|
|
37514
37514
|
onRepeat: () => wC(this.node, n, "", !0)
|
|
37515
37515
|
}), this.options));
|
|
@@ -37524,31 +37524,31 @@ var r9e = class extends Xl {
|
|
|
37524
37524
|
}
|
|
37525
37525
|
unmount() {
|
|
37526
37526
|
}
|
|
37527
|
-
}, RM = /* @__PURE__ */ new WeakMap(), SC = /* @__PURE__ */ new WeakMap(),
|
|
37527
|
+
}, RM = /* @__PURE__ */ new WeakMap(), SC = /* @__PURE__ */ new WeakMap(), oHe = (e) => {
|
|
37528
37528
|
const t = RM.get(e.target);
|
|
37529
37529
|
t && t(e);
|
|
37530
|
-
},
|
|
37531
|
-
e.forEach(
|
|
37530
|
+
}, iHe = (e) => {
|
|
37531
|
+
e.forEach(oHe);
|
|
37532
37532
|
};
|
|
37533
|
-
function
|
|
37533
|
+
function aHe({ root: e, ...t }) {
|
|
37534
37534
|
const n = e || document;
|
|
37535
37535
|
SC.has(n) || SC.set(n, {});
|
|
37536
37536
|
const r = SC.get(n), o = JSON.stringify(t);
|
|
37537
|
-
return r[o] || (r[o] = new IntersectionObserver(
|
|
37537
|
+
return r[o] || (r[o] = new IntersectionObserver(iHe, {
|
|
37538
37538
|
root: e,
|
|
37539
37539
|
...t
|
|
37540
37540
|
})), r[o];
|
|
37541
37541
|
}
|
|
37542
|
-
function
|
|
37543
|
-
const r =
|
|
37542
|
+
function sHe(e, t, n) {
|
|
37543
|
+
const r = aHe(t);
|
|
37544
37544
|
return RM.set(e, n), r.observe(e), () => {
|
|
37545
37545
|
RM.delete(e), r.unobserve(e);
|
|
37546
37546
|
};
|
|
37547
37547
|
}
|
|
37548
|
-
var
|
|
37548
|
+
var lHe = {
|
|
37549
37549
|
some: 0,
|
|
37550
37550
|
all: 1
|
|
37551
|
-
},
|
|
37551
|
+
}, cHe = class extends Xl {
|
|
37552
37552
|
constructor() {
|
|
37553
37553
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
37554
37554
|
}
|
|
@@ -37557,7 +37557,7 @@ var l9e = {
|
|
|
37557
37557
|
const { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: o } = e, i = {
|
|
37558
37558
|
root: t ? t.current : void 0,
|
|
37559
37559
|
rootMargin: n,
|
|
37560
|
-
threshold: typeof r == "number" ? r :
|
|
37560
|
+
threshold: typeof r == "number" ? r : lHe[r]
|
|
37561
37561
|
}, a = (s) => {
|
|
37562
37562
|
const { isIntersecting: l } = s;
|
|
37563
37563
|
if (this.isInView === l || (this.isInView = l, o && !l && this.hasEnteredView)) return;
|
|
@@ -37565,7 +37565,7 @@ var l9e = {
|
|
|
37565
37565
|
const { onViewportEnter: c, onViewportLeave: u } = this.node.getProps(), d = l ? c : u;
|
|
37566
37566
|
d && d(s);
|
|
37567
37567
|
};
|
|
37568
|
-
this.stopObserver =
|
|
37568
|
+
this.stopObserver = sHe(this.node.current, i, a);
|
|
37569
37569
|
}
|
|
37570
37570
|
mount() {
|
|
37571
37571
|
this.startObserver();
|
|
@@ -37577,24 +37577,24 @@ var l9e = {
|
|
|
37577
37577
|
"amount",
|
|
37578
37578
|
"margin",
|
|
37579
37579
|
"root"
|
|
37580
|
-
].some(
|
|
37580
|
+
].some(uHe(e, t)) && this.startObserver();
|
|
37581
37581
|
}
|
|
37582
37582
|
unmount() {
|
|
37583
37583
|
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
|
|
37584
37584
|
}
|
|
37585
37585
|
};
|
|
37586
|
-
function
|
|
37586
|
+
function uHe({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
37587
37587
|
return (n) => e[n] !== t[n];
|
|
37588
37588
|
}
|
|
37589
|
-
var
|
|
37590
|
-
inView: { Feature:
|
|
37591
|
-
tap: { Feature:
|
|
37592
|
-
focus: { Feature:
|
|
37593
|
-
hover: { Feature:
|
|
37594
|
-
},
|
|
37589
|
+
var dHe = {
|
|
37590
|
+
inView: { Feature: cHe },
|
|
37591
|
+
tap: { Feature: rHe },
|
|
37592
|
+
focus: { Feature: nHe },
|
|
37593
|
+
hover: { Feature: tHe }
|
|
37594
|
+
}, hHe = { layout: {
|
|
37595
37595
|
ProjectionNode: fQ,
|
|
37596
37596
|
MeasureLayout: FQ
|
|
37597
|
-
} },
|
|
37597
|
+
} }, fHe = /* @__PURE__ */ Object.assign({}, X9e, dHe, eHe, hHe), pHe = /* @__PURE__ */ U9e(fHe, j9e);
|
|
37598
37598
|
function _o(e) {
|
|
37599
37599
|
const t = Bl(() => gi(e)), { isStatic: n } = _e(ZS);
|
|
37600
37600
|
if (n) {
|
|
@@ -37612,15 +37612,15 @@ function BQ(e, t) {
|
|
|
37612
37612
|
};
|
|
37613
37613
|
}), n;
|
|
37614
37614
|
}
|
|
37615
|
-
function
|
|
37615
|
+
function mHe(e) {
|
|
37616
37616
|
kb.current = [], e();
|
|
37617
37617
|
const t = BQ(kb.current, e);
|
|
37618
37618
|
return kb.current = void 0, t;
|
|
37619
37619
|
}
|
|
37620
37620
|
function ps(e, t, n, r) {
|
|
37621
|
-
if (typeof e == "function") return
|
|
37622
|
-
if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return
|
|
37623
|
-
const o = typeof t == "function" ? t :
|
|
37621
|
+
if (typeof e == "function") return mHe(e);
|
|
37622
|
+
if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return gHe(e, t, n, r);
|
|
37623
|
+
const o = typeof t == "function" ? t : s9e(t, n, r), i = Array.isArray(e) ? I6(e, o) : I6([e], ([s]) => o(s)), a = Array.isArray(e) ? void 0 : e.accelerate;
|
|
37624
37624
|
if (a && !a.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && !r?.mixer) {
|
|
37625
37625
|
const s = r?.ease;
|
|
37626
37626
|
i.accelerate = {
|
|
@@ -37650,12 +37650,12 @@ function I6(e, t) {
|
|
|
37650
37650
|
return t(n);
|
|
37651
37651
|
});
|
|
37652
37652
|
}
|
|
37653
|
-
function
|
|
37653
|
+
function gHe(e, t, n, r) {
|
|
37654
37654
|
const o = Bl(() => Object.keys(n)), i = Bl(() => ({}));
|
|
37655
37655
|
for (const a of o) i[a] = ps(e, t, n[a], r);
|
|
37656
37656
|
return i;
|
|
37657
37657
|
}
|
|
37658
|
-
function
|
|
37658
|
+
function vHe() {
|
|
37659
37659
|
!x_.current && gQ();
|
|
37660
37660
|
const [e] = ke(t1.current);
|
|
37661
37661
|
return e;
|
|
@@ -37666,7 +37666,7 @@ function k_(e) {
|
|
|
37666
37666
|
function VQ(e, t, n, r) {
|
|
37667
37667
|
return e == null ? [] : typeof e == "string" && k_(t) ? p_(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((o) => o != null) : [e];
|
|
37668
37668
|
}
|
|
37669
|
-
function
|
|
37669
|
+
function yHe(e, t, n) {
|
|
37670
37670
|
return e * (t + 1) + n * t;
|
|
37671
37671
|
}
|
|
37672
37672
|
function $Q(e, t) {
|
|
@@ -37674,37 +37674,37 @@ function $Q(e, t) {
|
|
|
37674
37674
|
const [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
|
|
37675
37675
|
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
|
|
37676
37676
|
}
|
|
37677
|
-
function
|
|
37677
|
+
function bHe(e, t, n, r) {
|
|
37678
37678
|
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : $Q(t, r) ?? e;
|
|
37679
37679
|
}
|
|
37680
|
-
function
|
|
37680
|
+
function xHe(e, t, n) {
|
|
37681
37681
|
for (let r = 0; r < e.length; r++) {
|
|
37682
37682
|
const o = e[r];
|
|
37683
37683
|
o.at > t && o.at < n && (du(e, o), r--);
|
|
37684
37684
|
}
|
|
37685
37685
|
}
|
|
37686
|
-
function
|
|
37687
|
-
|
|
37686
|
+
function wHe(e, t, n, r, o, i) {
|
|
37687
|
+
xHe(e, o, i);
|
|
37688
37688
|
for (let a = 0; a < t.length; a++) e.push({
|
|
37689
37689
|
value: t[a],
|
|
37690
37690
|
at: Jt(o, i, r[a]),
|
|
37691
37691
|
easing: /* @__PURE__ */ iZ(n, a)
|
|
37692
37692
|
});
|
|
37693
37693
|
}
|
|
37694
|
-
function
|
|
37694
|
+
function SHe(e, t, n = 0) {
|
|
37695
37695
|
const r = t + 1 + t * n;
|
|
37696
37696
|
for (let o = 0; o < e.length; o++) e[o] = e[o] / r;
|
|
37697
37697
|
}
|
|
37698
|
-
function
|
|
37698
|
+
function THe(e, t) {
|
|
37699
37699
|
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
|
|
37700
37700
|
}
|
|
37701
|
-
var
|
|
37702
|
-
function
|
|
37701
|
+
var AHe = "easeInOut", CHe = 20;
|
|
37702
|
+
function kHe(e, { defaultTransition: t = {}, ...n } = {}, r, o, i) {
|
|
37703
37703
|
const a = t.duration || 0.3, s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = {}, u = /* @__PURE__ */ new Map();
|
|
37704
37704
|
let d = 0, h = 0, f = 0;
|
|
37705
37705
|
const p = (y, b) => {
|
|
37706
37706
|
let S = b;
|
|
37707
|
-
const w = (T) => typeof T == "number" ? b + T :
|
|
37707
|
+
const w = (T) => typeof T == "number" ? b + T : bHe(h, T, d, u);
|
|
37708
37708
|
for (let T = 0; T < y.length; T++) {
|
|
37709
37709
|
const A = y[T];
|
|
37710
37710
|
if (typeof A == "string") {
|
|
@@ -37719,13 +37719,13 @@ function k9e(e, { defaultTransition: t = {}, ...n } = {}, r, o, i) {
|
|
|
37719
37719
|
k.at !== void 0 && (h = w(k.at));
|
|
37720
37720
|
let I = 0;
|
|
37721
37721
|
const P = (_, E, M, O = 0, D = 0) => {
|
|
37722
|
-
const L =
|
|
37722
|
+
const L = EHe(_), { delay: N = 0, times: F = Rh(L), type: H = t.type || "keyframes", repeat: B, repeatType: V, repeatDelay: G = 0, ...z } = E;
|
|
37723
37723
|
let { ease: j = t.ease || "easeOut", duration: Y } = E;
|
|
37724
37724
|
M.mixer || (M.mixer = E.mixer);
|
|
37725
37725
|
const J = typeof N == "function" ? N(O, D) : N, Z = L.length, K = a_(H) ? H : o?.[H || "keyframes"];
|
|
37726
37726
|
if (Z <= 2 && K) {
|
|
37727
37727
|
let U = 100;
|
|
37728
|
-
if (Z === 2 &&
|
|
37728
|
+
if (Z === 2 && IHe(L)) {
|
|
37729
37729
|
const re = L[1] - L[0];
|
|
37730
37730
|
U = Math.abs(re);
|
|
37731
37731
|
}
|
|
@@ -37741,9 +37741,9 @@ function k9e(e, { defaultTransition: t = {}, ...n } = {}, r, o, i) {
|
|
|
37741
37741
|
const X = h + J;
|
|
37742
37742
|
F.length === 1 && F[0] === 0 && (F[1] = 1);
|
|
37743
37743
|
const ee = F.length - L.length;
|
|
37744
|
-
if (ee > 0 && TZ(F, ee), L.length === 1 && L.unshift(null), B && B <
|
|
37744
|
+
if (ee > 0 && TZ(F, ee), L.length === 1 && L.unshift(null), B && B < CHe) {
|
|
37745
37745
|
const U = Y > 0 ? G / Y : 0;
|
|
37746
|
-
Y =
|
|
37746
|
+
Y = yHe(Y, B, G);
|
|
37747
37747
|
const q = [...L], te = [...F];
|
|
37748
37748
|
j = Array.isArray(j) ? [...j] : [j];
|
|
37749
37749
|
const re = [...j], Q = V === "reverse" || V === "mirror";
|
|
@@ -37755,10 +37755,10 @@ function k9e(e, { defaultTransition: t = {}, ...n } = {}, r, o, i) {
|
|
|
37755
37755
|
for (let Ne = 0; Ne < ue.length; Ne++)
|
|
37756
37756
|
F.push(te[Ne] + Me), j.push(Ne === 0 ? "linear" : /* @__PURE__ */ iZ(de, Ne - 1));
|
|
37757
37757
|
}
|
|
37758
|
-
|
|
37758
|
+
SHe(F, B, U);
|
|
37759
37759
|
}
|
|
37760
37760
|
const W = X + Y;
|
|
37761
|
-
|
|
37761
|
+
wHe(M, L, j, F, X, W), I = Math.max(J + Y, I), f = Math.max(W, f);
|
|
37762
37762
|
};
|
|
37763
37763
|
if (Un(C)) {
|
|
37764
37764
|
const _ = R6(C, l);
|
|
@@ -37768,7 +37768,7 @@ function k9e(e, { defaultTransition: t = {}, ...n } = {}, r, o, i) {
|
|
|
37768
37768
|
for (let M = 0; M < E; M++) {
|
|
37769
37769
|
x = x, k = k;
|
|
37770
37770
|
const O = _[M], D = R6(O, l);
|
|
37771
|
-
for (const L in x) P(x[L],
|
|
37771
|
+
for (const L in x) P(x[L], MHe(k, L), L6(L, D), M, E);
|
|
37772
37772
|
}
|
|
37773
37773
|
}
|
|
37774
37774
|
d = h, h += I, S = Math.max(S, h);
|
|
@@ -37780,13 +37780,13 @@ function k9e(e, { defaultTransition: t = {}, ...n } = {}, r, o, i) {
|
|
|
37780
37780
|
return l.forEach((y, b) => {
|
|
37781
37781
|
for (const S in y) {
|
|
37782
37782
|
const w = y[S];
|
|
37783
|
-
w.sort(
|
|
37783
|
+
w.sort(THe);
|
|
37784
37784
|
const T = [], A = [], C = [];
|
|
37785
37785
|
for (let k = 0; k < w.length; k++) {
|
|
37786
37786
|
const { at: I, value: P, easing: _ } = w[k];
|
|
37787
37787
|
T.push(P), A.push(Vl(0, f, I)), C.push(_ || "easeOut");
|
|
37788
37788
|
}
|
|
37789
|
-
A[0] !== 0 && (A.unshift(0), T.unshift(T[0]), C.unshift(
|
|
37789
|
+
A[0] !== 0 && (A.unshift(0), T.unshift(T[0]), C.unshift(AHe)), A[A.length - 1] !== 1 && (A.push(1), T.push(null)), s.has(b) || s.set(b, {
|
|
37790
37790
|
keyframes: {},
|
|
37791
37791
|
transition: {}
|
|
37792
37792
|
});
|
|
@@ -37808,22 +37808,22 @@ function R6(e, t) {
|
|
|
37808
37808
|
function L6(e, t) {
|
|
37809
37809
|
return t[e] || (t[e] = []), t[e];
|
|
37810
37810
|
}
|
|
37811
|
-
function
|
|
37811
|
+
function EHe(e) {
|
|
37812
37812
|
return Array.isArray(e) ? e : [e];
|
|
37813
37813
|
}
|
|
37814
|
-
function
|
|
37814
|
+
function MHe(e, t) {
|
|
37815
37815
|
return e && e[t] ? {
|
|
37816
37816
|
...e,
|
|
37817
37817
|
...e[t]
|
|
37818
37818
|
} : { ...e };
|
|
37819
37819
|
}
|
|
37820
|
-
var
|
|
37821
|
-
function
|
|
37820
|
+
var PHe = (e) => typeof e == "number", IHe = (e) => e.every(PHe);
|
|
37821
|
+
function RHe(e, t) {
|
|
37822
37822
|
return Un(e) || typeof e == "number" || typeof e == "string" && !k_(t);
|
|
37823
37823
|
}
|
|
37824
37824
|
function HQ(e, t, n, r) {
|
|
37825
37825
|
const o = [];
|
|
37826
|
-
if (
|
|
37826
|
+
if (RHe(e, t)) o.push(KS(e, k_(t) && t.default || t, n && (n.default || n)));
|
|
37827
37827
|
else {
|
|
37828
37828
|
if (e == null) return o;
|
|
37829
37829
|
const i = VQ(e, t, r), a = i.length;
|
|
@@ -37834,8 +37834,8 @@ function HQ(e, t, n, r) {
|
|
|
37834
37834
|
}
|
|
37835
37835
|
return o;
|
|
37836
37836
|
}
|
|
37837
|
-
function
|
|
37838
|
-
const o = [], i =
|
|
37837
|
+
function LHe(e, t, n, r) {
|
|
37838
|
+
const o = [], i = kHe(e.map((s) => {
|
|
37839
37839
|
if (Array.isArray(s) && typeof s[0] == "function") {
|
|
37840
37840
|
const l = s[0], c = gi(0);
|
|
37841
37841
|
return c.on("change", l), s.length === 1 ? [c, [0, 1]] : s.length === 2 ? [
|
|
@@ -37866,7 +37866,7 @@ function bd({ repeat: e = 0, repeatDelay: t = 0, repeatType: n = "loop", delay:
|
|
|
37866
37866
|
}
|
|
37867
37867
|
return n !== "loop" && a % 2 && (i = o - i), [a, l ? i : r + a * s + i];
|
|
37868
37868
|
}
|
|
37869
|
-
function
|
|
37869
|
+
function _He(e, t) {
|
|
37870
37870
|
const n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
|
|
37871
37871
|
return n[r] = {
|
|
37872
37872
|
...n[r],
|
|
@@ -38016,7 +38016,7 @@ var N6 = class Db {
|
|
|
38016
38016
|
ga.current = this.motionScope;
|
|
38017
38017
|
let v;
|
|
38018
38018
|
try {
|
|
38019
|
-
v =
|
|
38019
|
+
v = LHe(this.toSequence(f), {
|
|
38020
38020
|
defaultTransition: o,
|
|
38021
38021
|
...h
|
|
38022
38022
|
}, u, p);
|
|
@@ -38043,7 +38043,7 @@ var N6 = class Db {
|
|
|
38043
38043
|
return this.entries.map(({ item: n, at: r, marker: o }) => o ? (t.set(o.name, o), O6(o.name, r)) : n instanceof Db ? {
|
|
38044
38044
|
sequence: n.toSequence(t),
|
|
38045
38045
|
at: r
|
|
38046
|
-
} : typeof n == "string" ? O6(n, r) : r === void 0 ? n : Array.isArray(n) ?
|
|
38046
|
+
} : typeof n == "string" ? O6(n, r) : r === void 0 ? n : Array.isArray(n) ? _He(n, r) : {
|
|
38047
38047
|
...n,
|
|
38048
38048
|
at: r
|
|
38049
38049
|
});
|
|
@@ -38100,16 +38100,16 @@ var N6 = class Db {
|
|
|
38100
38100
|
});
|
|
38101
38101
|
}
|
|
38102
38102
|
};
|
|
38103
|
-
function
|
|
38103
|
+
function OHe(e) {
|
|
38104
38104
|
return Array.isArray(e) && e.some((t) => Array.isArray(t) || t?.sequence);
|
|
38105
38105
|
}
|
|
38106
|
-
function
|
|
38106
|
+
function DHe(e = {}) {
|
|
38107
38107
|
const { scope: t, reduceMotion: n, skipAnimations: r } = e;
|
|
38108
38108
|
function o(i, a, s) {
|
|
38109
38109
|
const l = ga.current?.transition, c = {};
|
|
38110
38110
|
n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r);
|
|
38111
38111
|
let u;
|
|
38112
|
-
if (
|
|
38112
|
+
if (OHe(i)) {
|
|
38113
38113
|
const d = {
|
|
38114
38114
|
...c,
|
|
38115
38115
|
...a,
|
|
@@ -38147,21 +38147,21 @@ function D9e(e = {}) {
|
|
|
38147
38147
|
}
|
|
38148
38148
|
return o;
|
|
38149
38149
|
}
|
|
38150
|
-
var yl = /* @__PURE__ */ Object.assign(/* @__PURE__ */
|
|
38150
|
+
var yl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ DHe(), {
|
|
38151
38151
|
addEffect: n7e,
|
|
38152
38152
|
removeEffect: qZ
|
|
38153
38153
|
});
|
|
38154
|
-
function
|
|
38154
|
+
function NHe() {
|
|
38155
38155
|
const e = _e(yf);
|
|
38156
38156
|
return e ? e.custom : void 0;
|
|
38157
38157
|
}
|
|
38158
|
-
var Wv =
|
|
38158
|
+
var Wv = pHe, i1 = {
|
|
38159
38159
|
enabled: !0,
|
|
38160
38160
|
trigger: "mount",
|
|
38161
38161
|
durationScale: 1,
|
|
38162
38162
|
stagger: !0,
|
|
38163
38163
|
staggerOrder: "mainAxis"
|
|
38164
|
-
}, F6 = 1500,
|
|
38164
|
+
}, F6 = 1500, FHe = (e, t) => t ? {
|
|
38165
38165
|
intro: {
|
|
38166
38166
|
...i1,
|
|
38167
38167
|
enabled: !1
|
|
@@ -38176,14 +38176,14 @@ var Wv = p9e, i1 = {
|
|
|
38176
38176
|
transitions: e,
|
|
38177
38177
|
maxAnimatedGeoms: F6
|
|
38178
38178
|
} : {
|
|
38179
|
-
intro:
|
|
38179
|
+
intro: BHe(e?.intro),
|
|
38180
38180
|
transitions: e?.transitions ?? !0,
|
|
38181
38181
|
maxAnimatedGeoms: e?.maxAnimatedGeoms ?? 1500
|
|
38182
|
-
},
|
|
38182
|
+
}, BHe = (e) => typeof e == "boolean" ? {
|
|
38183
38183
|
...i1,
|
|
38184
38184
|
enabled: e
|
|
38185
|
-
} : Iu({}, i1, e),
|
|
38186
|
-
const r =
|
|
38185
|
+
} : Iu({}, i1, e), VHe = (e, t, n) => {
|
|
38186
|
+
const r = vHe(), o = ne(() => FHe(n ? e : !1, r ?? !1), [
|
|
38187
38187
|
e,
|
|
38188
38188
|
n,
|
|
38189
38189
|
r
|
|
@@ -38201,21 +38201,21 @@ var Wv = p9e, i1 = {
|
|
|
38201
38201
|
coordKey: null,
|
|
38202
38202
|
introEndsAtMs: 0,
|
|
38203
38203
|
waitingForView: !1
|
|
38204
|
-
}, $
|
|
38204
|
+
}, $He = {
|
|
38205
38205
|
...a1,
|
|
38206
38206
|
waitingForView: !0
|
|
38207
38207
|
}, Oh = Ct({
|
|
38208
38208
|
...a1,
|
|
38209
38209
|
animateTransitions: !1
|
|
38210
|
-
}), zQ = 0.4,
|
|
38210
|
+
}), zQ = 0.4, HHe = ({ animation: e, animate: t, instant: n = !1, panelRect: r, children: o }) => {
|
|
38211
38211
|
const { layers: i, coordSystem: a } = be(on((g) => ({
|
|
38212
38212
|
layers: g.layers,
|
|
38213
38213
|
coordSystem: g.coordSystem
|
|
38214
|
-
}))), { intro: s, transitions: l } =
|
|
38214
|
+
}))), { intro: s, transitions: l } = VHe(e, i, t), [c, u] = ke(() => B6(s) ? $He : V6({
|
|
38215
38215
|
layers: i,
|
|
38216
38216
|
coordSystem: a,
|
|
38217
38217
|
intro: s
|
|
38218
|
-
})), [d, h] = ke(null), f =
|
|
38218
|
+
})), [d, h] = ke(null), f = GHe(d) || !B6(s);
|
|
38219
38219
|
c.waitingForView && f && u(V6({
|
|
38220
38220
|
layers: i,
|
|
38221
38221
|
coordSystem: a,
|
|
@@ -38251,8 +38251,8 @@ var Wv = p9e, i1 = {
|
|
|
38251
38251
|
value: n,
|
|
38252
38252
|
children: e
|
|
38253
38253
|
});
|
|
38254
|
-
}, Vn = () => _e(Oh),
|
|
38255
|
-
const { introEndsAtMs: e } = _e(Oh), [t] = ke(() =>
|
|
38254
|
+
}, Vn = () => _e(Oh), zHe = () => {
|
|
38255
|
+
const { introEndsAtMs: e } = _e(Oh), [t] = ke(() => UHe(e) / 1e3);
|
|
38256
38256
|
return t;
|
|
38257
38257
|
}, GQ = (e) => {
|
|
38258
38258
|
const { plansByLayerId: t, coordKey: n } = _e(Oh), r = be((o) => WQ(o.coordSystem));
|
|
@@ -38280,28 +38280,28 @@ var Wv = p9e, i1 = {
|
|
|
38280
38280
|
introEndsAtMs: performance.now() + i * 1e3,
|
|
38281
38281
|
waitingForView: !1
|
|
38282
38282
|
};
|
|
38283
|
-
},
|
|
38283
|
+
}, GHe = (e) => {
|
|
38284
38284
|
const [t, n] = ke(!1);
|
|
38285
38285
|
return me(() => {
|
|
38286
38286
|
if (e === null) return;
|
|
38287
38287
|
const r = new IntersectionObserver((o) => {
|
|
38288
|
-
o.some(
|
|
38288
|
+
o.some(WHe) && n(!0);
|
|
38289
38289
|
}, { threshold: zQ });
|
|
38290
38290
|
return r.observe(e), () => r.disconnect();
|
|
38291
38291
|
}, [e]), t;
|
|
38292
|
-
},
|
|
38292
|
+
}, WHe = ({ intersectionRatio: e, intersectionRect: t }) => t.width > 0 && t.height > 0 && e >= zQ, UHe = (e) => Math.max(0, e - performance.now()), WQ = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type;
|
|
38293
38293
|
function ia(e, t) {
|
|
38294
|
-
const n = t && t.cache ? t.cache :
|
|
38295
|
-
return (t && t.strategy ? t.strategy :
|
|
38294
|
+
const n = t && t.cache ? t.cache : ZHe, r = t && t.serializer ? t.serializer : XHe;
|
|
38295
|
+
return (t && t.strategy ? t.strategy : YHe)(e, {
|
|
38296
38296
|
cache: n,
|
|
38297
38297
|
serializer: r
|
|
38298
38298
|
});
|
|
38299
38299
|
}
|
|
38300
|
-
function
|
|
38300
|
+
function jHe(e) {
|
|
38301
38301
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
38302
38302
|
}
|
|
38303
38303
|
function UQ(e, t, n, r) {
|
|
38304
|
-
const o =
|
|
38304
|
+
const o = jHe(r) ? r : n(r);
|
|
38305
38305
|
let i = t.get(o);
|
|
38306
38306
|
return typeof i > "u" && (i = e.call(this, r), t.set(o, i)), i;
|
|
38307
38307
|
}
|
|
@@ -38313,19 +38313,19 @@ function jQ(e, t, n) {
|
|
|
38313
38313
|
function E_(e, t, n, r, o) {
|
|
38314
38314
|
return n.bind(t, e, r, o);
|
|
38315
38315
|
}
|
|
38316
|
-
function
|
|
38316
|
+
function YHe(e, t) {
|
|
38317
38317
|
const n = e.length === 1 ? UQ : jQ;
|
|
38318
38318
|
return E_(e, this, n, t.cache.create(), t.serializer);
|
|
38319
38319
|
}
|
|
38320
|
-
function
|
|
38320
|
+
function KHe(e, t) {
|
|
38321
38321
|
return E_(e, this, jQ, t.cache.create(), t.serializer);
|
|
38322
38322
|
}
|
|
38323
|
-
function
|
|
38323
|
+
function qHe(e, t) {
|
|
38324
38324
|
return E_(e, this, UQ, t.cache.create(), t.serializer);
|
|
38325
38325
|
}
|
|
38326
|
-
var
|
|
38326
|
+
var XHe = function() {
|
|
38327
38327
|
return JSON.stringify(arguments);
|
|
38328
|
-
},
|
|
38328
|
+
}, JHe = class {
|
|
38329
38329
|
constructor() {
|
|
38330
38330
|
he(this, "cache", void 0), this.cache = /* @__PURE__ */ Object.create(null);
|
|
38331
38331
|
}
|
|
@@ -38335,15 +38335,15 @@ var X9e = function() {
|
|
|
38335
38335
|
set(e, t) {
|
|
38336
38336
|
this.cache[e] = t;
|
|
38337
38337
|
}
|
|
38338
|
-
},
|
|
38339
|
-
return new
|
|
38338
|
+
}, ZHe = { create: function() {
|
|
38339
|
+
return new JHe();
|
|
38340
38340
|
} }, aa = {
|
|
38341
|
-
variadic:
|
|
38342
|
-
monadic:
|
|
38343
|
-
},
|
|
38341
|
+
variadic: KHe,
|
|
38342
|
+
monadic: qHe
|
|
38343
|
+
}, QHe = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
38344
38344
|
function eze(e) {
|
|
38345
38345
|
const t = {};
|
|
38346
|
-
return e.replace(
|
|
38346
|
+
return e.replace(QHe, (n) => {
|
|
38347
38347
|
const r = n.length;
|
|
38348
38348
|
switch (n[0]) {
|
|
38349
38349
|
case "G":
|
|
@@ -49557,7 +49557,7 @@ var jJe = ({ segment: e, itemStyle: t }) => {
|
|
|
49557
49557
|
const { waitingForView: t } = Vn();
|
|
49558
49558
|
return t ? null : /* @__PURE__ */ m(rZe, { ...e });
|
|
49559
49559
|
}, rZe = ({ children: e, as: t = "g", ...n }) => {
|
|
49560
|
-
const r =
|
|
49560
|
+
const r = zHe(), o = t;
|
|
49561
49561
|
if (r <= 0) return /* @__PURE__ */ m(o, {
|
|
49562
49562
|
...n,
|
|
49563
49563
|
children: e
|
|
@@ -51547,7 +51547,7 @@ var iet = (e, t, n, r) => t !== "comment" ? n : gR(n, 140, (o) => e.measureText(
|
|
|
51547
51547
|
renderTick: a,
|
|
51548
51548
|
hideAtRest: s
|
|
51549
51549
|
};
|
|
51550
|
-
return /* @__PURE__ */ m(
|
|
51550
|
+
return /* @__PURE__ */ m(w9e, {
|
|
51551
51551
|
initial: !1,
|
|
51552
51552
|
custom: y,
|
|
51553
51553
|
children: p.map(({ tick: b, key: S }, w) => {
|
|
@@ -51563,7 +51563,7 @@ var iet = (e, t, n, r) => t !== "comment" ? n : gR(n, 140, (o) => e.measureText(
|
|
|
51563
51563
|
})
|
|
51564
51564
|
}, n);
|
|
51565
51565
|
}, Iet = ({ tick: e, index: t, enterFrom: n, along: r, animateTransitions: o, axis: i }) => {
|
|
51566
|
-
const { value: a, position: s } = e, l =
|
|
51566
|
+
const { value: a, position: s } = e, l = b9e(), c = NHe(), u = l ? void 0 : c, { length: d, renderTick: h, hideAtRest: f } = u ?? i, p = u?.project(a) ?? null, g = _o(n ?? s), v = _o(n === void 0 ? 1 : 0), y = ps(g, (x) => x * d), b = O4e(), S = ye(d);
|
|
51567
51567
|
me(() => {
|
|
51568
51568
|
S.current = d;
|
|
51569
51569
|
}, [d]);
|
|
@@ -53223,7 +53223,7 @@ var Wtt = [], Utt = ({ graphChrome: e, editable: t, mode: n, style: r, contentRe
|
|
|
53223
53223
|
width: "100%",
|
|
53224
53224
|
height: "100%"
|
|
53225
53225
|
},
|
|
53226
|
-
children: /* @__PURE__ */ $(
|
|
53226
|
+
children: /* @__PURE__ */ $(HHe, {
|
|
53227
53227
|
animation: n,
|
|
53228
53228
|
animate: v.animate,
|
|
53229
53229
|
instant: L,
|
|
@@ -71187,14 +71187,14 @@ var Ty = class Jse {
|
|
|
71187
71187
|
return t.cached.domSerializer || (t.cached.domSerializer = new Jse(this.nodesFromSchema(t), this.marksFromSchema(t)));
|
|
71188
71188
|
}
|
|
71189
71189
|
static nodesFromSchema(t) {
|
|
71190
|
-
let n =
|
|
71190
|
+
let n = e9(t.nodes);
|
|
71191
71191
|
return n.text || (n.text = (r) => r.text), n;
|
|
71192
71192
|
}
|
|
71193
71193
|
static marksFromSchema(t) {
|
|
71194
|
-
return
|
|
71194
|
+
return e9(t.marks);
|
|
71195
71195
|
}
|
|
71196
71196
|
};
|
|
71197
|
-
function
|
|
71197
|
+
function e9(e) {
|
|
71198
71198
|
let t = {};
|
|
71199
71199
|
for (let n in e) {
|
|
71200
71200
|
let r = e[n].spec.toDOM;
|
|
@@ -71205,10 +71205,10 @@ function eH(e) {
|
|
|
71205
71205
|
function W0(e) {
|
|
71206
71206
|
return e.document || window.document;
|
|
71207
71207
|
}
|
|
71208
|
-
var
|
|
71208
|
+
var t9 = /* @__PURE__ */ new WeakMap();
|
|
71209
71209
|
function Sht(e) {
|
|
71210
|
-
let t =
|
|
71211
|
-
return t === void 0 &&
|
|
71210
|
+
let t = t9.get(e);
|
|
71211
|
+
return t === void 0 && t9.set(e, t = Tht(e)), t;
|
|
71212
71212
|
}
|
|
71213
71213
|
function Tht(e) {
|
|
71214
71214
|
let t = null;
|
|
@@ -71262,7 +71262,7 @@ var Zse = 65535, Qse = Math.pow(2, 16);
|
|
|
71262
71262
|
function Aht(e, t) {
|
|
71263
71263
|
return e + t * Qse;
|
|
71264
71264
|
}
|
|
71265
|
-
function
|
|
71265
|
+
function n9(e) {
|
|
71266
71266
|
return e & Zse;
|
|
71267
71267
|
}
|
|
71268
71268
|
function Cht(e) {
|
|
@@ -71289,7 +71289,7 @@ var kht = 1, Eht = 2, ele = 4, tle = 8, $2 = class {
|
|
|
71289
71289
|
if (this.ranges = t, this.inverted = n, !t.length && Fd.empty) return Fd.empty;
|
|
71290
71290
|
}
|
|
71291
71291
|
recover(t) {
|
|
71292
|
-
let n = 0, r =
|
|
71292
|
+
let n = 0, r = n9(t);
|
|
71293
71293
|
if (!this.inverted) for (let o = 0; o < r; o++) n += this.ranges[o * 3 + 2] - this.ranges[o * 3 + 1];
|
|
71294
71294
|
return this.ranges[r * 3] + n + Cht(t);
|
|
71295
71295
|
}
|
|
@@ -71316,7 +71316,7 @@ var kht = 1, Eht = 2, ele = 4, tle = 8, $2 = class {
|
|
|
71316
71316
|
return r ? t + o : new $2(t + o, 0, null);
|
|
71317
71317
|
}
|
|
71318
71318
|
touches(t, n) {
|
|
71319
|
-
let r = 0, o =
|
|
71319
|
+
let r = 0, o = n9(n), i = this.inverted ? 2 : 1, a = this.inverted ? 1 : 2;
|
|
71320
71320
|
for (let s = 0; s < this.ranges.length; s += 3) {
|
|
71321
71321
|
let l = this.ranges[s] - (this.inverted ? r : 0);
|
|
71322
71322
|
if (l > t) break;
|
|
@@ -71779,12 +71779,12 @@ function Rht(e, t, n) {
|
|
|
71779
71779
|
}
|
|
71780
71780
|
function rle(e, t, n = null, r = e) {
|
|
71781
71781
|
let o = Lht(e, t), i = o && _ht(r, t);
|
|
71782
|
-
return i ? o.map(
|
|
71782
|
+
return i ? o.map(r9).concat({
|
|
71783
71783
|
type: t,
|
|
71784
71784
|
attrs: n
|
|
71785
|
-
}).concat(i.map(
|
|
71785
|
+
}).concat(i.map(r9)) : null;
|
|
71786
71786
|
}
|
|
71787
|
-
function
|
|
71787
|
+
function r9(e) {
|
|
71788
71788
|
return {
|
|
71789
71789
|
type: e,
|
|
71790
71790
|
attrs: null
|
|
@@ -72011,7 +72011,7 @@ var zht = class {
|
|
|
72011
72011
|
}
|
|
72012
72012
|
for (let t = 1; t <= 2; t++) for (let n = t == 1 ? e : this.unplaced.openStart; n >= 0; n--) {
|
|
72013
72013
|
let r, o = null;
|
|
72014
|
-
n ? (o =
|
|
72014
|
+
n ? (o = o9(this.unplaced.content, n - 1).firstChild, r = o.content) : r = this.unplaced.content;
|
|
72015
72015
|
let i = r.firstChild;
|
|
72016
72016
|
for (let a = this.depth; a >= 0; a--) {
|
|
72017
72017
|
let { type: s, match: l } = this.frontier[a], c, u = null;
|
|
@@ -72033,10 +72033,10 @@ var zht = class {
|
|
|
72033
72033
|
}
|
|
72034
72034
|
openMore() {
|
|
72035
72035
|
let { content: e, openStart: t, openEnd: n } = this.unplaced;
|
|
72036
|
-
return
|
|
72036
|
+
return i9(e, -1) <= t ? !1 : (this.unplaced.size > 1 && i9(e, 1) > n && n++, this.unplaced = new $e(e, t + 1, n), !0);
|
|
72037
72037
|
}
|
|
72038
72038
|
dropNode() {
|
|
72039
|
-
let { content: e, openStart: t, openEnd: n } = this.unplaced, r =
|
|
72039
|
+
let { content: e, openStart: t, openEnd: n } = this.unplaced, r = o9(e, t);
|
|
72040
72040
|
if (r.childCount <= 1 && t > 0) {
|
|
72041
72041
|
let o = e.size - t <= t + r.size;
|
|
72042
72042
|
this.unplaced = new $e(qp(e, t - 1, 1), t - 1, o ? t - 1 : n);
|
|
@@ -72120,7 +72120,7 @@ function qp(e, t, n) {
|
|
|
72120
72120
|
function Xp(e, t, n) {
|
|
72121
72121
|
return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(Xp(e.lastChild.content, t - 1, n)));
|
|
72122
72122
|
}
|
|
72123
|
-
function
|
|
72123
|
+
function o9(e, t) {
|
|
72124
72124
|
for (let n = 0; n < t; n++) e = e.firstChild.content;
|
|
72125
72125
|
return e;
|
|
72126
72126
|
}
|
|
@@ -72142,7 +72142,7 @@ function Ght(e, t, n) {
|
|
|
72142
72142
|
function Wht(e) {
|
|
72143
72143
|
return e.spec.defining || e.spec.definingForContent;
|
|
72144
72144
|
}
|
|
72145
|
-
function
|
|
72145
|
+
function i9(e, t) {
|
|
72146
72146
|
for (let n = 0; ; n++) {
|
|
72147
72147
|
let r = t < 0 ? e.firstChild : e.lastChild;
|
|
72148
72148
|
if (!r || r.isAtom) return n;
|
|
@@ -72459,14 +72459,14 @@ var ple = class {
|
|
|
72459
72459
|
let o = e.steps.length, i = this.ranges;
|
|
72460
72460
|
for (let a = 0; a < i.length; a++) {
|
|
72461
72461
|
let { $from: s, $to: l } = i[a], c = e.mapping.slice(o);
|
|
72462
|
-
e.replaceRange(c.map(s.pos), c.map(l.pos), a ? $e.empty : t), a == 0 &&
|
|
72462
|
+
e.replaceRange(c.map(s.pos), c.map(l.pos), a ? $e.empty : t), a == 0 && l9(e, o, (n ? n.isInline : r && r.isTextblock) ? -1 : 1);
|
|
72463
72463
|
}
|
|
72464
72464
|
}
|
|
72465
72465
|
replaceWith(e, t) {
|
|
72466
72466
|
let n = e.steps.length, r = this.ranges;
|
|
72467
72467
|
for (let o = 0; o < r.length; o++) {
|
|
72468
72468
|
let { $from: i, $to: a } = r[o], s = e.mapping.slice(n), l = s.map(i.pos), c = s.map(a.pos);
|
|
72469
|
-
o ? e.deleteRange(l, c) : (e.replaceRangeWith(l, c, t),
|
|
72469
|
+
o ? e.deleteRange(l, c) : (e.replaceRangeWith(l, c, t), l9(e, n, t.isInline ? -1 : 1));
|
|
72470
72470
|
}
|
|
72471
72471
|
}
|
|
72472
72472
|
static findFrom(e, t, n = !1) {
|
|
@@ -72506,13 +72506,13 @@ var Kht = class {
|
|
|
72506
72506
|
constructor(e, t) {
|
|
72507
72507
|
this.$from = e, this.$to = t;
|
|
72508
72508
|
}
|
|
72509
|
-
},
|
|
72510
|
-
function
|
|
72511
|
-
!
|
|
72509
|
+
}, a9 = !1;
|
|
72510
|
+
function s9(e) {
|
|
72511
|
+
!a9 && !e.parent.inlineContent && (a9 = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
72512
72512
|
}
|
|
72513
72513
|
var wt = class Jp extends Tt {
|
|
72514
72514
|
constructor(t, n = t) {
|
|
72515
|
-
|
|
72515
|
+
s9(t), s9(n), super(t, n);
|
|
72516
72516
|
}
|
|
72517
72517
|
get $cursor() {
|
|
72518
72518
|
return this.$anchor.pos == this.$head.pos ? this.$head : null;
|
|
@@ -72670,7 +72670,7 @@ function Bd(e, t, n, r, o, i = !1) {
|
|
|
72670
72670
|
}
|
|
72671
72671
|
return null;
|
|
72672
72672
|
}
|
|
72673
|
-
function
|
|
72673
|
+
function l9(e, t, n) {
|
|
72674
72674
|
let r = e.steps.length - 1;
|
|
72675
72675
|
if (r < t) return;
|
|
72676
72676
|
let o = e.steps[r];
|
|
@@ -72680,7 +72680,7 @@ function lH(e, t, n) {
|
|
|
72680
72680
|
a == null && (a = u);
|
|
72681
72681
|
}), e.setSelection(Tt.near(e.doc.resolve(a), n));
|
|
72682
72682
|
}
|
|
72683
|
-
var
|
|
72683
|
+
var c9 = 1, u9 = 2, d9 = 4, Jht = class extends ple {
|
|
72684
72684
|
constructor(e) {
|
|
72685
72685
|
super(e.doc), this.curSelectionFor = 0, this.updated = 0, this.meta = /* @__PURE__ */ Object.create(null), this.time = Date.now(), this.curSelection = e.selection, this.storedMarks = e.storedMarks;
|
|
72686
72686
|
}
|
|
@@ -72689,13 +72689,13 @@ var cH = 1, uH = 2, dH = 4, Jht = class extends ple {
|
|
|
72689
72689
|
}
|
|
72690
72690
|
setSelection(e) {
|
|
72691
72691
|
if (e.$from.doc != this.doc) throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
72692
|
-
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated |
|
|
72692
|
+
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | c9) & -3, this.storedMarks = null, this;
|
|
72693
72693
|
}
|
|
72694
72694
|
get selectionSet() {
|
|
72695
|
-
return (this.updated &
|
|
72695
|
+
return (this.updated & c9) > 0;
|
|
72696
72696
|
}
|
|
72697
72697
|
setStoredMarks(e) {
|
|
72698
|
-
return this.storedMarks = e, this.updated |=
|
|
72698
|
+
return this.storedMarks = e, this.updated |= u9, this;
|
|
72699
72699
|
}
|
|
72700
72700
|
ensureMarks(e) {
|
|
72701
72701
|
return nn.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
|
|
@@ -72707,7 +72707,7 @@ var cH = 1, uH = 2, dH = 4, Jht = class extends ple {
|
|
|
72707
72707
|
return this.ensureMarks(e.removeFromSet(this.storedMarks || this.selection.$head.marks()));
|
|
72708
72708
|
}
|
|
72709
72709
|
get storedMarksSet() {
|
|
72710
|
-
return (this.updated &
|
|
72710
|
+
return (this.updated & u9) > 0;
|
|
72711
72711
|
}
|
|
72712
72712
|
addStep(e, t) {
|
|
72713
72713
|
super.addStep(e, t), this.updated = this.updated & -3, this.storedMarks = null;
|
|
@@ -72750,18 +72750,18 @@ var cH = 1, uH = 2, dH = 4, Jht = class extends ple {
|
|
|
72750
72750
|
return !0;
|
|
72751
72751
|
}
|
|
72752
72752
|
scrollIntoView() {
|
|
72753
|
-
return this.updated |=
|
|
72753
|
+
return this.updated |= d9, this;
|
|
72754
72754
|
}
|
|
72755
72755
|
get scrolledIntoView() {
|
|
72756
|
-
return (this.updated &
|
|
72756
|
+
return (this.updated & d9) > 0;
|
|
72757
72757
|
}
|
|
72758
72758
|
};
|
|
72759
|
-
function
|
|
72759
|
+
function h9(e, t) {
|
|
72760
72760
|
return !t || !e ? e : e.bind(t);
|
|
72761
72761
|
}
|
|
72762
72762
|
var Qp = class {
|
|
72763
72763
|
constructor(e, t, n) {
|
|
72764
|
-
this.name = e, this.init =
|
|
72764
|
+
this.name = e, this.init = h9(t.init, n), this.apply = h9(t.apply, n);
|
|
72765
72765
|
}
|
|
72766
72766
|
}, Zht = [
|
|
72767
72767
|
new Qp("doc", {
|
|
@@ -72803,7 +72803,7 @@ var Qp = class {
|
|
|
72803
72803
|
this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new Qp(n.key, n.spec.state, n));
|
|
72804
72804
|
});
|
|
72805
72805
|
}
|
|
72806
|
-
},
|
|
72806
|
+
}, f9 = class em {
|
|
72807
72807
|
constructor(t) {
|
|
72808
72808
|
this.config = t;
|
|
72809
72809
|
}
|
|
@@ -73223,7 +73223,7 @@ function cft(e, t = null) {
|
|
|
73223
73223
|
return s ? (r && r(n.tr.wrap(a, s).scrollIntoView()), !0) : !1;
|
|
73224
73224
|
};
|
|
73225
73225
|
}
|
|
73226
|
-
function
|
|
73226
|
+
function p9(e, t = null) {
|
|
73227
73227
|
return function(n, r) {
|
|
73228
73228
|
let o = !1;
|
|
73229
73229
|
for (let i = 0; i < n.selection.ranges.length && !o; i++) {
|
|
@@ -73256,14 +73256,14 @@ function GD(...e) {
|
|
|
73256
73256
|
return !1;
|
|
73257
73257
|
};
|
|
73258
73258
|
}
|
|
73259
|
-
var fk = GD(xle, Sle, Ale),
|
|
73259
|
+
var fk = GD(xle, Sle, Ale), m9 = GD(xle, kle, Ele), hs = {
|
|
73260
73260
|
Enter: GD(Mle, Ile, Rle, ift),
|
|
73261
73261
|
"Mod-Enter": Ple,
|
|
73262
73262
|
Backspace: fk,
|
|
73263
73263
|
"Mod-Backspace": fk,
|
|
73264
73264
|
"Shift-Backspace": fk,
|
|
73265
|
-
Delete:
|
|
73266
|
-
"Mod-Delete":
|
|
73265
|
+
Delete: m9,
|
|
73266
|
+
"Mod-Delete": m9,
|
|
73267
73267
|
"Mod-a": sft
|
|
73268
73268
|
}, Nle = {
|
|
73269
73269
|
"Ctrl-h": hs.Backspace,
|
|
@@ -73359,9 +73359,9 @@ var vr = function(e) {
|
|
|
73359
73359
|
}, vft = function() {
|
|
73360
73360
|
U2 = null;
|
|
73361
73361
|
}, wu = function(e, t, n, r) {
|
|
73362
|
-
return n && (
|
|
73362
|
+
return n && (g9(e, t, n, r, -1) || g9(e, t, n, r, 1));
|
|
73363
73363
|
}, yft = /^(img|br|input|textarea|hr)$/i;
|
|
73364
|
-
function
|
|
73364
|
+
function g9(e, t, n, r, o) {
|
|
73365
73365
|
for (var i; ; ) {
|
|
73366
73366
|
if (e == n && t == r) return !0;
|
|
73367
73367
|
if (t == (o < 0 ? 0 : si(e))) {
|
|
@@ -73444,9 +73444,9 @@ function Tft(e, t, n) {
|
|
|
73444
73444
|
};
|
|
73445
73445
|
}
|
|
73446
73446
|
}
|
|
73447
|
-
var Va = typeof navigator < "u" ? navigator : null,
|
|
73447
|
+
var Va = typeof navigator < "u" ? navigator : null, v9 = typeof document < "u" ? document : null, pc = Va && Va.userAgent || "", j2 = /Edge\/(\d+)/.exec(pc), Fle = /MSIE \d/.exec(pc), Y2 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pc), So = !!(Fle || Y2 || j2), El = Fle ? document.documentMode : Y2 ? +Y2[1] : j2 ? +j2[1] : 0, hi = !So && /gecko\/(\d+)/i.test(pc);
|
|
73448
73448
|
hi && +(/Firefox\/(\d+)/.exec(pc) || [0, 0])[1];
|
|
73449
|
-
var K2 = !So && /Chrome\/(\d+)/.exec(pc), wr = !!K2, Ble = K2 ? +K2[1] : 0, Vr = !So && !!Va && /Apple Computer/.test(Va.vendor), Yh = Vr && (/Mobile\/\w+/.test(pc) || !!Va && Va.maxTouchPoints > 2), oi = Yh || (Va ? /Mac/.test(Va.platform) : !1), Vle = Va ? /Win/.test(Va.platform) : !1, xs = /Android \d/.test(pc), Cy = !!
|
|
73449
|
+
var K2 = !So && /Chrome\/(\d+)/.exec(pc), wr = !!K2, Ble = K2 ? +K2[1] : 0, Vr = !So && !!Va && /Apple Computer/.test(Va.vendor), Yh = Vr && (/Mobile\/\w+/.test(pc) || !!Va && Va.maxTouchPoints > 2), oi = Yh || (Va ? /Mac/.test(Va.platform) : !1), Vle = Va ? /Win/.test(Va.platform) : !1, xs = /Android \d/.test(pc), Cy = !!v9 && "webkitFontSmoothing" in v9.documentElement.style, Aft = Cy ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
73450
73450
|
function Cft(e) {
|
|
73451
73451
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
73452
73452
|
return t ? {
|
|
@@ -73473,7 +73473,7 @@ function kft(e) {
|
|
|
73473
73473
|
bottom: t.top + e.clientHeight * r
|
|
73474
73474
|
};
|
|
73475
73475
|
}
|
|
73476
|
-
function
|
|
73476
|
+
function y9(e, t, n) {
|
|
73477
73477
|
if (!q2(t) && t.left == 0) return;
|
|
73478
73478
|
let r = e.someProp("scrollThreshold") || 0, o = e.someProp("scrollMargin") || 5, i = e.dom.ownerDocument;
|
|
73479
73479
|
for (let a = n || e.dom; a; ) {
|
|
@@ -73783,11 +73783,11 @@ function Bft(e, t, n) {
|
|
|
73783
73783
|
return h != null && (s.caretBidiLevel = h), v;
|
|
73784
73784
|
}) : r.pos == r.start() || r.pos == r.end();
|
|
73785
73785
|
}
|
|
73786
|
-
var
|
|
73786
|
+
var b9 = null, x9 = null, w9 = !1;
|
|
73787
73787
|
function Vft(e, t, n) {
|
|
73788
|
-
return
|
|
73788
|
+
return b9 == t && x9 == n ? w9 : (b9 = t, x9 = n, w9 = n == "up" || n == "down" ? Nft(e, t, n) : Bft(e, t, n));
|
|
73789
73789
|
}
|
|
73790
|
-
var fi = 0,
|
|
73790
|
+
var fi = 0, S9 = 1, _c = 2, Vi = 3, ky = class {
|
|
73791
73791
|
constructor(e, t, n, r) {
|
|
73792
73792
|
this.parent = e, this.children = t, this.dom = n, this.contentDOM = r, this.dirty = fi, n.pmViewDesc = this;
|
|
73793
73793
|
}
|
|
@@ -74071,7 +74071,7 @@ var fi = 0, SH = 1, _c = 2, Vi = 3, ky = class {
|
|
|
74071
74071
|
if (n == i ? e <= i && t >= n : e < i && t > n) {
|
|
74072
74072
|
let a = n + o.border, s = i - o.border;
|
|
74073
74073
|
if (e >= a && t <= s) {
|
|
74074
|
-
this.dirty = e == n || t == i ? _c :
|
|
74074
|
+
this.dirty = e == n || t == i ? _c : S9, e == a && t == s && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = Vi : o.markDirty(e - a, t - a);
|
|
74075
74075
|
return;
|
|
74076
74076
|
} else o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? _c : Vi;
|
|
74077
74077
|
}
|
|
@@ -74082,7 +74082,7 @@ var fi = 0, SH = 1, _c = 2, Vi = 3, ky = class {
|
|
|
74082
74082
|
markParentsDirty() {
|
|
74083
74083
|
let e = 1;
|
|
74084
74084
|
for (let t = this.parent; t; t = t.parent, e++) {
|
|
74085
|
-
let n = e == 1 ? _c :
|
|
74085
|
+
let n = e == 1 ? _c : S9;
|
|
74086
74086
|
t.dirty < n && (t.dirty = n);
|
|
74087
74087
|
}
|
|
74088
74088
|
}
|
|
@@ -74303,7 +74303,7 @@ var fi = 0, SH = 1, _c = 2, Vi = 3, ky = class {
|
|
|
74303
74303
|
return this.node.isAtom;
|
|
74304
74304
|
}
|
|
74305
74305
|
};
|
|
74306
|
-
function
|
|
74306
|
+
function T9(e, t, n, r, o) {
|
|
74307
74307
|
Qle(r, t, e);
|
|
74308
74308
|
let i = new dh(void 0, e, t, n, r, r, r);
|
|
74309
74309
|
return i.contentDOM && i.updateChildren(o, 0), i;
|
|
@@ -74399,7 +74399,7 @@ function Jle(e, t, n) {
|
|
|
74399
74399
|
let a = t[i], s = a.dom;
|
|
74400
74400
|
if (s.parentNode == e) {
|
|
74401
74401
|
for (; s != r; )
|
|
74402
|
-
r =
|
|
74402
|
+
r = A9(r), o = !0;
|
|
74403
74403
|
r = r.nextSibling;
|
|
74404
74404
|
} else
|
|
74405
74405
|
o = !0, e.insertBefore(s, r);
|
|
@@ -74409,7 +74409,7 @@ function Jle(e, t, n) {
|
|
|
74409
74409
|
}
|
|
74410
74410
|
}
|
|
74411
74411
|
for (; r; )
|
|
74412
|
-
r =
|
|
74412
|
+
r = A9(r), o = !0;
|
|
74413
74413
|
o && n.trackWrites == e && (n.trackWrites = null);
|
|
74414
74414
|
}
|
|
74415
74415
|
var Mm = function(e) {
|
|
@@ -74470,7 +74470,7 @@ function V1(e, t) {
|
|
|
74470
74470
|
for (let n = 0; n < e.length; n++) if (!e[n].type.eq(t[n].type)) return !1;
|
|
74471
74471
|
return !0;
|
|
74472
74472
|
}
|
|
74473
|
-
function
|
|
74473
|
+
function A9(e) {
|
|
74474
74474
|
let t = e.nextSibling;
|
|
74475
74475
|
return e.parentNode.removeChild(e), t;
|
|
74476
74476
|
}
|
|
@@ -74754,12 +74754,12 @@ function Ps(e, t = !1) {
|
|
|
74754
74754
|
if (e.domObserver.disconnectSelection(), e.cursorWrapper) Xft(e);
|
|
74755
74755
|
else {
|
|
74756
74756
|
let { anchor: o, head: i } = n, a, s;
|
|
74757
|
-
|
|
74757
|
+
C9 && !(n instanceof wt) && (n.$from.parent.inlineContent || (a = k9(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = k9(e, n.to))), e.docView.setSelection(o, i, e, t), C9 && (a && E9(a), s && E9(s)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && qft(e));
|
|
74758
74758
|
}
|
|
74759
74759
|
e.domObserver.setCurSelection(), e.domObserver.connectSelection();
|
|
74760
74760
|
}
|
|
74761
|
-
var
|
|
74762
|
-
function
|
|
74761
|
+
var C9 = Vr || wr && Ble < 63;
|
|
74762
|
+
function k9(e, t) {
|
|
74763
74763
|
let { node: n, offset: r } = e.docView.domFromPos(t, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
|
|
74764
74764
|
if (Vr && o && o.contentEditable == "false") return mk(o);
|
|
74765
74765
|
if ((!o || o.contentEditable == "false") && (!i || i.contentEditable == "false")) {
|
|
@@ -74770,7 +74770,7 @@ function kH(e, t) {
|
|
|
74770
74770
|
function mk(e) {
|
|
74771
74771
|
return e.contentEditable = "true", Vr && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
|
|
74772
74772
|
}
|
|
74773
|
-
function
|
|
74773
|
+
function E9(e) {
|
|
74774
74774
|
e.contentEditable = "false", e.wasDraggable && (e.draggable = !0, e.wasDraggable = null);
|
|
74775
74775
|
}
|
|
74776
74776
|
function qft(e) {
|
|
@@ -74792,16 +74792,16 @@ function Xft(e) {
|
|
|
74792
74792
|
function tce(e, t) {
|
|
74793
74793
|
if (t instanceof lt) {
|
|
74794
74794
|
let n = e.docView.descAt(t.from);
|
|
74795
|
-
n != e.lastSelectedViewDesc && (
|
|
74796
|
-
} else
|
|
74795
|
+
n != e.lastSelectedViewDesc && (M9(e), n && n.selectNode(), e.lastSelectedViewDesc = n);
|
|
74796
|
+
} else M9(e);
|
|
74797
74797
|
}
|
|
74798
|
-
function
|
|
74798
|
+
function M9(e) {
|
|
74799
74799
|
e.lastSelectedViewDesc && (e.lastSelectedViewDesc.parent && e.lastSelectedViewDesc.deselectNode(), e.lastSelectedViewDesc = void 0);
|
|
74800
74800
|
}
|
|
74801
74801
|
function jD(e, t, n, r) {
|
|
74802
74802
|
return e.someProp("createSelectionBetween", (o) => o(e, t, n)) || wt.between(t, n, r);
|
|
74803
74803
|
}
|
|
74804
|
-
function
|
|
74804
|
+
function P9(e) {
|
|
74805
74805
|
return e.editable && !e.hasFocus() ? !1 : nce(e);
|
|
74806
74806
|
}
|
|
74807
74807
|
function nce(e) {
|
|
@@ -74824,7 +74824,7 @@ function Q2(e, t) {
|
|
|
74824
74824
|
function ul(e, t) {
|
|
74825
74825
|
return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()), !0;
|
|
74826
74826
|
}
|
|
74827
|
-
function
|
|
74827
|
+
function I9(e, t, n) {
|
|
74828
74828
|
let r = e.state.selection;
|
|
74829
74829
|
if (r instanceof wt)
|
|
74830
74830
|
if (n.indexOf("s") > -1) {
|
|
@@ -74958,7 +74958,7 @@ function eP(e, t, n) {
|
|
|
74958
74958
|
e.state == o && Ps(e);
|
|
74959
74959
|
}, 50);
|
|
74960
74960
|
}
|
|
74961
|
-
function
|
|
74961
|
+
function R9(e, t) {
|
|
74962
74962
|
let n = e.state.doc.resolve(t);
|
|
74963
74963
|
if (!(wr || Vle) && n.parent.inlineContent) {
|
|
74964
74964
|
let r = e.coordsAtPos(t);
|
|
@@ -74973,7 +74973,7 @@ function RH(e, t) {
|
|
|
74973
74973
|
}
|
|
74974
74974
|
return getComputedStyle(e.dom).direction == "rtl" ? "rtl" : "ltr";
|
|
74975
74975
|
}
|
|
74976
|
-
function
|
|
74976
|
+
function L9(e, t, n) {
|
|
74977
74977
|
let r = e.state.selection;
|
|
74978
74978
|
if (r instanceof wt && !r.empty || n.indexOf("s") > -1 || oi && n.indexOf("m") > -1) return !1;
|
|
74979
74979
|
let { $from: o, $to: i } = r;
|
|
@@ -74987,7 +74987,7 @@ function LH(e, t, n) {
|
|
|
74987
74987
|
}
|
|
74988
74988
|
return !1;
|
|
74989
74989
|
}
|
|
74990
|
-
function
|
|
74990
|
+
function _9(e, t) {
|
|
74991
74991
|
if (!(e.state.selection instanceof wt)) return !0;
|
|
74992
74992
|
let { $head: n, $anchor: r, empty: o } = e.state.selection;
|
|
74993
74993
|
if (!n.sameParent(r)) return !0;
|
|
@@ -75000,7 +75000,7 @@ function _H(e, t) {
|
|
|
75000
75000
|
}
|
|
75001
75001
|
return !1;
|
|
75002
75002
|
}
|
|
75003
|
-
function
|
|
75003
|
+
function O9(e, t, n) {
|
|
75004
75004
|
e.domObserver.stop(), t.contentEditable = n, e.domObserver.start();
|
|
75005
75005
|
}
|
|
75006
75006
|
function npt(e) {
|
|
@@ -75008,7 +75008,7 @@ function npt(e) {
|
|
|
75008
75008
|
let { focusNode: t, focusOffset: n } = e.domSelectionRange();
|
|
75009
75009
|
if (t && t.nodeType == 1 && n == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
|
|
75010
75010
|
let r = t.firstChild;
|
|
75011
|
-
|
|
75011
|
+
O9(e, r, "true"), setTimeout(() => O9(e, r, "false"), 20);
|
|
75012
75012
|
}
|
|
75013
75013
|
return !1;
|
|
75014
75014
|
}
|
|
@@ -75018,18 +75018,18 @@ function rpt(e) {
|
|
|
75018
75018
|
}
|
|
75019
75019
|
function opt(e, t) {
|
|
75020
75020
|
let n = t.keyCode, r = rpt(t);
|
|
75021
|
-
if (n == 8 || oi && n == 72 && r == "c") return
|
|
75022
|
-
if (n == 46 && !t.shiftKey || oi && n == 68 && r == "c") return
|
|
75021
|
+
if (n == 8 || oi && n == 72 && r == "c") return _9(e, -1) || Ad(e, -1);
|
|
75022
|
+
if (n == 46 && !t.shiftKey || oi && n == 68 && r == "c") return _9(e, 1) || Ad(e, 1);
|
|
75023
75023
|
if (n == 13 || n == 27) return !0;
|
|
75024
75024
|
if (n == 37 || oi && n == 66 && r == "c") {
|
|
75025
|
-
let o = n == 37 ?
|
|
75026
|
-
return
|
|
75025
|
+
let o = n == 37 ? R9(e, e.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
75026
|
+
return I9(e, o, r) || Ad(e, o);
|
|
75027
75027
|
} else if (n == 39 || oi && n == 70 && r == "c") {
|
|
75028
|
-
let o = n == 39 ?
|
|
75029
|
-
return
|
|
75028
|
+
let o = n == 39 ? R9(e, e.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
75029
|
+
return I9(e, o, r) || Ad(e, o);
|
|
75030
75030
|
} else {
|
|
75031
|
-
if (n == 38 || oi && n == 80 && r == "c") return
|
|
75032
|
-
if (n == 40 || oi && n == 78 && r == "c") return npt(e) ||
|
|
75031
|
+
if (n == 38 || oi && n == 80 && r == "c") return L9(e, -1, r) || Ad(e, -1);
|
|
75032
|
+
if (n == 40 || oi && n == 78 && r == "c") return npt(e) || L9(e, 1, r) || Ad(e, 1);
|
|
75033
75033
|
if (r == (oi ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90)) return !0;
|
|
75034
75034
|
}
|
|
75035
75035
|
return !1;
|
|
@@ -75101,12 +75101,12 @@ function oce(e, t, n, r, o) {
|
|
|
75101
75101
|
ruleFromNode(d) {
|
|
75102
75102
|
return d.nodeName == "BR" && !d.nextSibling && d.parentNode && !ipt.test(d.parentNode.nodeName) ? { ignore: !0 } : null;
|
|
75103
75103
|
}
|
|
75104
|
-
})), u) s = upt(
|
|
75104
|
+
})), u) s = upt(D9(s, +u[1], +u[2]), u[4]);
|
|
75105
75105
|
else if (s = $e.maxOpen(apt(s.content, o), !0), s.openStart || s.openEnd) {
|
|
75106
75106
|
let d = 0, h = 0;
|
|
75107
75107
|
for (let f = s.content.firstChild; d < s.openStart && !f.type.spec.isolating; d++, f = f.firstChild) ;
|
|
75108
75108
|
for (let f = s.content.lastChild; h < s.openEnd && !f.type.spec.isolating; h++, f = f.lastChild) ;
|
|
75109
|
-
s =
|
|
75109
|
+
s = D9(s, d, h);
|
|
75110
75110
|
}
|
|
75111
75111
|
return e.someProp("transformPasted", (d) => {
|
|
75112
75112
|
s = d(s, e, l);
|
|
@@ -75151,7 +75151,7 @@ function tP(e, t, n, r, o, i) {
|
|
|
75151
75151
|
let a = t < 0 ? e.firstChild : e.lastChild, s = a.content;
|
|
75152
75152
|
return e.childCount > 1 && (i = 0), o < r - 1 && (s = tP(s, t, n, r, o + 1, i)), o >= n && (s = t < 0 ? a.contentMatchAt(0).fillBefore(s, i <= o).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(Ce.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, a.copy(s));
|
|
75153
75153
|
}
|
|
75154
|
-
function
|
|
75154
|
+
function D9(e, t, n) {
|
|
75155
75155
|
return t < e.openStart && (e = new $e(tP(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new $e(tP(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
|
|
75156
75156
|
}
|
|
75157
75157
|
var lce = {
|
|
@@ -75685,7 +75685,7 @@ function ev(e, t) {
|
|
|
75685
75685
|
for (let n in t) if (!(n in e)) return !1;
|
|
75686
75686
|
return !0;
|
|
75687
75687
|
}
|
|
75688
|
-
var
|
|
75688
|
+
var N9 = class bce {
|
|
75689
75689
|
constructor(t, n) {
|
|
75690
75690
|
this.toDOM = t, this.spec = n || Jc, this.side = this.spec.side || 0;
|
|
75691
75691
|
}
|
|
@@ -75754,7 +75754,7 @@ var NH = class bce {
|
|
|
75754
75754
|
return this.type.map(t, this, n, r);
|
|
75755
75755
|
}
|
|
75756
75756
|
static widget(t, n, r) {
|
|
75757
|
-
return new tm(t, t, new
|
|
75757
|
+
return new tm(t, t, new N9(n, r));
|
|
75758
75758
|
}
|
|
75759
75759
|
static inline(t, n, r, o) {
|
|
75760
75760
|
return new tm(t, n, new Im(r, o));
|
|
@@ -75769,7 +75769,7 @@ var NH = class bce {
|
|
|
75769
75769
|
return this.type instanceof Im;
|
|
75770
75770
|
}
|
|
75771
75771
|
get widget() {
|
|
75772
|
-
return this.type instanceof
|
|
75772
|
+
return this.type instanceof N9;
|
|
75773
75773
|
}
|
|
75774
75774
|
}, Vd = [], Jc = {}, En = class ll {
|
|
75775
75775
|
constructor(t, n) {
|
|
@@ -76031,17 +76031,17 @@ function JD(e) {
|
|
|
76031
76031
|
if (r.from != r.to) for (let o = n + 1; o < t.length; o++) {
|
|
76032
76032
|
let i = t[o];
|
|
76033
76033
|
if (i.from == r.from) {
|
|
76034
|
-
i.to != r.to && (t == e && (t = e.slice()), t[o] = i.copy(i.from, r.to),
|
|
76034
|
+
i.to != r.to && (t == e && (t = e.slice()), t[o] = i.copy(i.from, r.to), F9(t, o + 1, i.copy(r.to, i.to)));
|
|
76035
76035
|
continue;
|
|
76036
76036
|
} else {
|
|
76037
|
-
i.from < r.to && (t == e && (t = e.slice()), t[n] = r.copy(r.from, i.from),
|
|
76037
|
+
i.from < r.to && (t == e && (t = e.slice()), t[n] = r.copy(r.from, i.from), F9(t, o, r.copy(i.from, r.to)));
|
|
76038
76038
|
break;
|
|
76039
76039
|
}
|
|
76040
76040
|
}
|
|
76041
76041
|
}
|
|
76042
76042
|
return t;
|
|
76043
76043
|
}
|
|
76044
|
-
function
|
|
76044
|
+
function F9(e, t, n) {
|
|
76045
76045
|
for (; t < e.length && Zc(n, e[t]) > 0; ) t++;
|
|
76046
76046
|
e.splice(t, 0, n);
|
|
76047
76047
|
}
|
|
@@ -76117,7 +76117,7 @@ var Fpt = {
|
|
|
76117
76117
|
this.suppressingSelectionUpdates = !0, setTimeout(() => this.suppressingSelectionUpdates = !1, 50);
|
|
76118
76118
|
}
|
|
76119
76119
|
onSelectionChange() {
|
|
76120
|
-
if (
|
|
76120
|
+
if (P9(this.view)) {
|
|
76121
76121
|
if (this.suppressingSelectionUpdates) return Ps(this.view);
|
|
76122
76122
|
if (So && El <= 11 && !this.view.state.selection.empty) {
|
|
76123
76123
|
let e = this.view.domSelectionRange();
|
|
@@ -76153,7 +76153,7 @@ var Fpt = {
|
|
|
76153
76153
|
if (!e.docView || this.flushingSoon > -1) return;
|
|
76154
76154
|
let t = this.pendingRecords();
|
|
76155
76155
|
t.length && (this.queue = []);
|
|
76156
|
-
let n = e.domSelectionRange(), r = !this.suppressingSelectionUpdates && !this.currentSelection.eq(n) &&
|
|
76156
|
+
let n = e.domSelectionRange(), r = !this.suppressingSelectionUpdates && !this.currentSelection.eq(n) && P9(e) && !this.ignoreSelectionChange(n), o = -1, i = -1, a = !1, s = [];
|
|
76157
76157
|
if (e.editable) for (let c = 0; c < t.length; c++) {
|
|
76158
76158
|
let u = this.registerMutation(t[c], s);
|
|
76159
76159
|
u && (o = o < 0 ? u.from : Math.min(u.from, o), i = i < 0 ? u.to : Math.max(u.to, i), u.typeOver && (a = !0));
|
|
@@ -76217,18 +76217,18 @@ var Fpt = {
|
|
|
76217
76217
|
typeOver: e.target.nodeValue == e.oldValue
|
|
76218
76218
|
});
|
|
76219
76219
|
}
|
|
76220
|
-
},
|
|
76220
|
+
}, B9 = /* @__PURE__ */ new WeakMap(), V9 = !1;
|
|
76221
76221
|
function Hpt(e) {
|
|
76222
|
-
if (!
|
|
76222
|
+
if (!B9.has(e) && (B9.set(e, null), [
|
|
76223
76223
|
"normal",
|
|
76224
76224
|
"nowrap",
|
|
76225
76225
|
"pre-line"
|
|
76226
76226
|
].indexOf(getComputedStyle(e.dom).whiteSpace) !== -1)) {
|
|
76227
|
-
if (e.requiresGeckoHackNode = hi,
|
|
76228
|
-
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),
|
|
76227
|
+
if (e.requiresGeckoHackNode = hi, V9) return;
|
|
76228
|
+
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), V9 = !0;
|
|
76229
76229
|
}
|
|
76230
76230
|
}
|
|
76231
|
-
function $
|
|
76231
|
+
function $9(e, t) {
|
|
76232
76232
|
let n = t.startContainer, r = t.startOffset, o = t.endContainer, i = t.endOffset, a = e.domAtPos(e.state.selection.anchor);
|
|
76233
76233
|
return wu(a.node, a.offset, o, i) && ([n, r, o, i] = [
|
|
76234
76234
|
o,
|
|
@@ -76245,13 +76245,13 @@ function $H(e, t) {
|
|
|
76245
76245
|
function zpt(e, t) {
|
|
76246
76246
|
if (t.getComposedRanges) {
|
|
76247
76247
|
let o = t.getComposedRanges(e.root)[0];
|
|
76248
|
-
if (o) return $
|
|
76248
|
+
if (o) return $9(e, o);
|
|
76249
76249
|
}
|
|
76250
76250
|
let n;
|
|
76251
76251
|
function r(o) {
|
|
76252
76252
|
o.preventDefault(), o.stopImmediatePropagation(), n = o.getTargetRanges()[0];
|
|
76253
76253
|
}
|
|
76254
|
-
return e.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), e.dom.removeEventListener("beforeinput", r, !0), n ? $
|
|
76254
|
+
return e.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), e.dom.removeEventListener("beforeinput", r, !0), n ? $9(e, n) : null;
|
|
76255
76255
|
}
|
|
76256
76256
|
function Gpt(e, t) {
|
|
76257
76257
|
for (let n = t.parentNode; n && n != e.dom; n = n.parentNode) {
|
|
@@ -76356,7 +76356,7 @@ function Kpt(e, t, n, r, o) {
|
|
|
76356
76356
|
};
|
|
76357
76357
|
else {
|
|
76358
76358
|
if (c.sel) {
|
|
76359
|
-
let C =
|
|
76359
|
+
let C = H9(e, e.state.doc, c.sel);
|
|
76360
76360
|
if (C && !C.eq(e.state.selection)) {
|
|
76361
76361
|
let x = e.state.tr.setSelection(C);
|
|
76362
76362
|
i && x.setMeta("composition", i), e.dispatch(x);
|
|
@@ -76382,7 +76382,7 @@ function Kpt(e, t, n, r, o) {
|
|
|
76382
76382
|
let S = p.start, w = p.endA, T = (C) => {
|
|
76383
76383
|
let x = C || e.state.tr.replace(S, w, c.doc.slice(p.start - c.from, p.endB - c.from));
|
|
76384
76384
|
if (c.sel) {
|
|
76385
|
-
let k =
|
|
76385
|
+
let k = H9(e, x.doc, c.sel);
|
|
76386
76386
|
k && !(wr && e.composing && k.empty && (p.start != p.endB || e.input.lastChromeDelete < Date.now() - 100) && (k.head == S || k.head == x.mapping.map(w) - 1) || So && k.empty && k.head == S) && x.setSelection(k);
|
|
76387
76387
|
}
|
|
76388
76388
|
return i && x.setMeta("composition", i), x.scrollIntoView();
|
|
@@ -76400,7 +76400,7 @@ function Kpt(e, t, n, r, o) {
|
|
|
76400
76400
|
} else e.dispatch(T());
|
|
76401
76401
|
else e.dispatch(T());
|
|
76402
76402
|
}
|
|
76403
|
-
function
|
|
76403
|
+
function H9(e, t, n) {
|
|
76404
76404
|
return Math.max(n.anchor, n.head) > t.content.size ? null : jD(e, t.resolve(n.anchor), t.resolve(n.head));
|
|
76405
76405
|
}
|
|
76406
76406
|
function qpt(e, t) {
|
|
@@ -76464,7 +76464,7 @@ function Jpt(e, t, n, r, o) {
|
|
|
76464
76464
|
}
|
|
76465
76465
|
var Cce = class {
|
|
76466
76466
|
constructor(e, t) {
|
|
76467
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new hpt(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(
|
|
76467
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new hpt(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(j9), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = W9(this), G9(this), this.nodeViews = U9(this), this.docView = T9(this.state.doc, z9(this), gk(this), this.dom, this), this.domObserver = new $pt(this, (n, r, o, i) => Kpt(this, n, r, o, i)), this.domObserver.start(), fpt(this), this.updatePluginViews();
|
|
76468
76468
|
}
|
|
76469
76469
|
get composing() {
|
|
76470
76470
|
return this.input.composing;
|
|
@@ -76481,7 +76481,7 @@ var Cce = class {
|
|
|
76481
76481
|
update(e) {
|
|
76482
76482
|
e.handleDOMEvents != this._props.handleDOMEvents && nP(this);
|
|
76483
76483
|
let t = this._props;
|
|
76484
|
-
this._props = e, e.plugins && (e.plugins.forEach(
|
|
76484
|
+
this._props = e, e.plugins && (e.plugins.forEach(j9), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
|
|
76485
76485
|
}
|
|
76486
76486
|
setProps(e) {
|
|
76487
76487
|
let t = {};
|
|
@@ -76499,11 +76499,11 @@ var Cce = class {
|
|
|
76499
76499
|
e.storedMarks && this.composing && (mce(this), i = !0), this.state = e;
|
|
76500
76500
|
let a = r.plugins != e.plugins || this._props.plugins != t.plugins;
|
|
76501
76501
|
if (a || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
|
|
76502
|
-
let h =
|
|
76502
|
+
let h = U9(this);
|
|
76503
76503
|
Qpt(h, this.nodeViews) && (this.nodeViews = h, o = !0);
|
|
76504
76504
|
}
|
|
76505
|
-
(a || t.handleDOMEvents != this._props.handleDOMEvents) && nP(this), this.editable =
|
|
76506
|
-
let s = gk(this), l =
|
|
76505
|
+
(a || t.handleDOMEvents != this._props.handleDOMEvents) && nP(this), this.editable = W9(this), G9(this);
|
|
76506
|
+
let s = gk(this), l = z9(this), c = r.plugins != e.plugins && !r.doc.eq(e.doc) ? "reset" : e.scrollToSelection > r.scrollToSelection ? "to selection" : "preserve", u = o || !this.docView.matchesNode(e.doc, l, s);
|
|
76507
76507
|
(u || !e.selection.eq(r.selection)) && (i = !0);
|
|
76508
76508
|
let d = c == "preserve" && i && this.dom.style.overflowAnchor == null && Eft(this);
|
|
76509
76509
|
if (i) {
|
|
@@ -76511,7 +76511,7 @@ var Cce = class {
|
|
|
76511
76511
|
let h = u && (So || wr) && !this.composing && !r.selection.empty && !e.selection.empty && Zpt(r.selection, e.selection);
|
|
76512
76512
|
if (u) {
|
|
76513
76513
|
let p = wr ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
76514
|
-
this.composing && (this.input.compositionNode = Mpt(this)), (o || !this.docView.update(e.doc, l, s, this)) && (this.docView.updateOuterDeco(l), this.docView.destroy(), this.docView =
|
|
76514
|
+
this.composing && (this.input.compositionNode = Mpt(this)), (o || !this.docView.update(e.doc, l, s, this)) && (this.docView.updateOuterDeco(l), this.docView.destroy(), this.docView = T9(e.doc, l, s, this.dom, this)), p && (!this.trackWrites || !this.dom.contains(this.trackWrites)) && (h = !0);
|
|
76515
76515
|
}
|
|
76516
76516
|
let f = this.input.mouseDown;
|
|
76517
76517
|
h || !(f && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Jft(this) && f.delaySelUpdate()) ? Ps(this, h) : (tce(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
@@ -76523,8 +76523,8 @@ var Cce = class {
|
|
|
76523
76523
|
if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
|
|
76524
76524
|
if (!this.someProp("handleScrollToSelection", (t) => t(this))) if (this.state.selection instanceof lt) {
|
|
76525
76525
|
let t = this.docView.domAfterPos(this.state.selection.from);
|
|
76526
|
-
t.nodeType == 1 &&
|
|
76527
|
-
} else
|
|
76526
|
+
t.nodeType == 1 && y9(this, t.getBoundingClientRect(), e);
|
|
76527
|
+
} else y9(this, this.coordsAtPos(this.state.selection.head, 1), e);
|
|
76528
76528
|
}
|
|
76529
76529
|
}
|
|
76530
76530
|
destroyPluginViews() {
|
|
@@ -76652,14 +76652,14 @@ Cce.prototype.dispatch = function(e) {
|
|
|
76652
76652
|
let t = this._props.dispatchTransaction;
|
|
76653
76653
|
t ? t.call(this, e) : this.updateState(this.state.apply(e));
|
|
76654
76654
|
};
|
|
76655
|
-
function
|
|
76655
|
+
function z9(e) {
|
|
76656
76656
|
let t = /* @__PURE__ */ Object.create(null);
|
|
76657
76657
|
return t.class = "ProseMirror", t.contenteditable = String(e.editable), e.someProp("attributes", (n) => {
|
|
76658
76658
|
if (typeof n == "function" && (n = n(e.state)), n)
|
|
76659
76659
|
for (let r in n) r == "class" ? t.class += " " + n[r] : r == "style" ? t.style = (t.style ? t.style + ";" : "") + n[r] : !t[r] && r != "contenteditable" && r != "nodeName" && (t[r] = String(n[r]));
|
|
76660
76660
|
}), t.translate || (t.translate = "no"), [qa.node(0, e.state.doc.content.size, t)];
|
|
76661
76661
|
}
|
|
76662
|
-
function
|
|
76662
|
+
function G9(e) {
|
|
76663
76663
|
if (e.markCursor) {
|
|
76664
76664
|
let t = document.createElement("img");
|
|
76665
76665
|
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = {
|
|
@@ -76671,14 +76671,14 @@ function GH(e) {
|
|
|
76671
76671
|
};
|
|
76672
76672
|
} else e.cursorWrapper = null;
|
|
76673
76673
|
}
|
|
76674
|
-
function
|
|
76674
|
+
function W9(e) {
|
|
76675
76675
|
return !e.someProp("editable", (t) => t(e.state) === !1);
|
|
76676
76676
|
}
|
|
76677
76677
|
function Zpt(e, t) {
|
|
76678
76678
|
let n = Math.min(e.$anchor.sharedDepth(e.head), t.$anchor.sharedDepth(t.head));
|
|
76679
76679
|
return e.$anchor.start(n) != t.$anchor.start(n);
|
|
76680
76680
|
}
|
|
76681
|
-
function
|
|
76681
|
+
function U9(e) {
|
|
76682
76682
|
let t = /* @__PURE__ */ Object.create(null);
|
|
76683
76683
|
function n(r) {
|
|
76684
76684
|
for (let o in r) Object.prototype.hasOwnProperty.call(t, o) || (t[o] = r[o]);
|
|
@@ -76694,7 +76694,7 @@ function Qpt(e, t) {
|
|
|
76694
76694
|
for (let o in t) r++;
|
|
76695
76695
|
return n != r;
|
|
76696
76696
|
}
|
|
76697
|
-
function
|
|
76697
|
+
function j9(e) {
|
|
76698
76698
|
if (e.spec.state || e.spec.filterTransaction || e.spec.appendTransaction) throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
76699
76699
|
}
|
|
76700
76700
|
var zl = {
|
|
@@ -76989,13 +76989,13 @@ var mmt = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
|
76989
76989
|
}, gmt = (e) => ({ tr: t, dispatch: n }) => {
|
|
76990
76990
|
const { from: r, to: o } = e;
|
|
76991
76991
|
return n && t.delete(r, o), !0;
|
|
76992
|
-
}, vmt = (e) => e.content ? /^text(\*|\+)/.test(e.content) : !1,
|
|
76992
|
+
}, vmt = (e) => e.content ? /^text(\*|\+)/.test(e.content) : !1, Y9 = (e, t, n) => {
|
|
76993
76993
|
if (!e.parent.isInline || n === "left" && e.pos > e.start() || n === "right" && e.pos < e.end()) return e.pos;
|
|
76994
76994
|
const r = t.nodes[e.parent.type.name].spec;
|
|
76995
76995
|
return vmt(r) ? n === "left" ? e.start() - 1 : e.end() + 1 : e.pos;
|
|
76996
76996
|
}, ymt = (e, t, n) => ({
|
|
76997
|
-
from:
|
|
76998
|
-
to:
|
|
76997
|
+
from: Y9(e, n, "left"),
|
|
76998
|
+
to: Y9(t, n, "right")
|
|
76999
76999
|
}), bmt = () => ({ state: e, dispatch: t }) => {
|
|
77000
77000
|
if (e.selection.empty) return !1;
|
|
77001
77001
|
if (t) {
|
|
@@ -77017,7 +77017,7 @@ function W1(e, t, n = { strict: !0 }) {
|
|
|
77017
77017
|
function Mce(e, t, n = {}) {
|
|
77018
77018
|
return e.find((r) => r.type === t && W1(Object.fromEntries(Object.keys(n).map((o) => [o, r.attrs[o]])), n));
|
|
77019
77019
|
}
|
|
77020
|
-
function
|
|
77020
|
+
function K9(e, t, n = {}) {
|
|
77021
77021
|
return !!Mce(e, t, n);
|
|
77022
77022
|
}
|
|
77023
77023
|
function QD(e, t, n) {
|
|
@@ -77030,9 +77030,9 @@ function QD(e, t, n) {
|
|
|
77030
77030
|
}
|
|
77031
77031
|
if (!Mce([...r.node.marks], t, n)) return;
|
|
77032
77032
|
let o = r.index, i = e.start() + r.offset, a = o + 1, s = i + r.node.nodeSize;
|
|
77033
|
-
for (; o > 0 &&
|
|
77033
|
+
for (; o > 0 && K9([...e.parent.child(o - 1).marks], t, n); )
|
|
77034
77034
|
o -= 1, i -= e.parent.child(o).nodeSize;
|
|
77035
|
-
for (; a < e.parent.childCount &&
|
|
77035
|
+
for (; a < e.parent.childCount && K9([...e.parent.child(a).marks], t, n); )
|
|
77036
77036
|
s += e.parent.child(a).nodeSize, a += 1;
|
|
77037
77037
|
return {
|
|
77038
77038
|
from: i,
|
|
@@ -77075,7 +77075,7 @@ function oP(e, t = null) {
|
|
|
77075
77075
|
const o = n.from, i = r.to;
|
|
77076
77076
|
return t === "all" ? wt.create(e, Dc(0, o, i), Dc(e.content.size, o, i)) : wt.create(e, Dc(t, o, i), Dc(t, o, i));
|
|
77077
77077
|
}
|
|
77078
|
-
function
|
|
77078
|
+
function q9() {
|
|
77079
77079
|
return ["Android"].includes(navigator.platform) || /android/i.test(navigator.userAgent);
|
|
77080
77080
|
}
|
|
77081
77081
|
function U1() {
|
|
@@ -77097,7 +77097,7 @@ var Cmt = (e = null, t = {}) => ({ editor: n, view: r, tr: o, dispatch: i }) =>
|
|
|
77097
77097
|
...t
|
|
77098
77098
|
};
|
|
77099
77099
|
const a = () => {
|
|
77100
|
-
(U1() ||
|
|
77100
|
+
(U1() || q9()) && r.dom.focus(), Amt() && !U1() && !q9() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
|
|
77101
77101
|
n.isDestroyed || (r.focus(), t?.scrollIntoView && n.commands.scrollIntoView());
|
|
77102
77102
|
});
|
|
77103
77103
|
};
|
|
@@ -77353,7 +77353,7 @@ var $mt = (e, t = {}) => ({ state: n, dispatch: r }) => tv(n, ur(e, n.schema), t
|
|
|
77353
77353
|
function ZT(e, t) {
|
|
77354
77354
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
77355
77355
|
}
|
|
77356
|
-
function
|
|
77356
|
+
function X9(e, t) {
|
|
77357
77357
|
const n = typeof t == "string" ? [t] : t;
|
|
77358
77358
|
return Object.keys(e).reduce((r, o) => (n.includes(o) || (r[o] = e[o]), r), {});
|
|
77359
77359
|
}
|
|
@@ -77365,8 +77365,8 @@ var Wmt = (e, t) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
77365
77365
|
let l = !1;
|
|
77366
77366
|
return n.selection.ranges.forEach((c) => {
|
|
77367
77367
|
r.doc.nodesBetween(c.$from.pos, c.$to.pos, (u, d) => {
|
|
77368
|
-
i && i === u.type && (l = !0, o && n.setNodeMarkup(d, void 0,
|
|
77369
|
-
a === h.type && (l = !0, o && n.addMark(d, d + u.nodeSize, a.create(
|
|
77368
|
+
i && i === u.type && (l = !0, o && n.setNodeMarkup(d, void 0, X9(u.attrs, t))), a && u.marks.length && u.marks.forEach((h) => {
|
|
77369
|
+
a === h.type && (l = !0, o && n.addMark(d, d + u.nodeSize, a.create(X9(h.attrs, t))));
|
|
77370
77370
|
});
|
|
77371
77371
|
});
|
|
77372
77372
|
}), l;
|
|
@@ -77562,7 +77562,7 @@ function ngt(e) {
|
|
|
77562
77562
|
}
|
|
77563
77563
|
return n && t.push(n), t;
|
|
77564
77564
|
}
|
|
77565
|
-
function
|
|
77565
|
+
function J9(e) {
|
|
77566
77566
|
const t = [], n = ngt(e || ""), r = n.length;
|
|
77567
77567
|
for (let o = 0; o < r; o += 1) {
|
|
77568
77568
|
const i = n[o], a = i.indexOf(":");
|
|
@@ -77593,7 +77593,7 @@ function $a(...e) {
|
|
|
77593
77593
|
const a = i ? String(i).split(" ") : [], s = r[o] ? r[o].split(" ") : [], l = a.filter((c) => !s.includes(c));
|
|
77594
77594
|
r[o] = [...s, ...l].join(" ");
|
|
77595
77595
|
} else if (o === "style") {
|
|
77596
|
-
const a = new Map([...
|
|
77596
|
+
const a = new Map([...J9(r[o]), ...J9(i)]);
|
|
77597
77597
|
r[o] = Array.from(a.entries()).map(([s, l]) => `${s}: ${l}`).join("; ");
|
|
77598
77598
|
} else r[o] = i;
|
|
77599
77599
|
}), r;
|
|
@@ -77605,7 +77605,7 @@ function j1(e, t) {
|
|
|
77605
77605
|
function rgt(e) {
|
|
77606
77606
|
return typeof e != "string" ? e : e.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(e) : e === "true" ? !0 : e === "false" ? !1 : e;
|
|
77607
77607
|
}
|
|
77608
|
-
function
|
|
77608
|
+
function Z9(e, t) {
|
|
77609
77609
|
return "style" in e ? e : {
|
|
77610
77610
|
...e,
|
|
77611
77611
|
getAttrs: (n) => {
|
|
@@ -77625,10 +77625,10 @@ function ZH(e, t) {
|
|
|
77625
77625
|
}
|
|
77626
77626
|
};
|
|
77627
77627
|
}
|
|
77628
|
-
function
|
|
77628
|
+
function Q9(e) {
|
|
77629
77629
|
return Object.fromEntries(Object.entries(e).filter(([t, n]) => t === "attrs" && tgt(n) ? !1 : n != null));
|
|
77630
77630
|
}
|
|
77631
|
-
function
|
|
77631
|
+
function eH(e) {
|
|
77632
77632
|
var t, n;
|
|
77633
77633
|
const r = {};
|
|
77634
77634
|
return !(!(e == null || (t = e.attribute) === null || t === void 0) && t.isRequired) && "default" in (e?.attribute || {}) && (r.default = e.attribute.default), (e == null || (n = e.attribute) === null || n === void 0 ? void 0 : n.validate) !== void 0 && (r.validate = e.attribute.validate), [e.name, r];
|
|
@@ -77644,7 +77644,7 @@ function ogt(e, t) {
|
|
|
77644
77644
|
options: a.options,
|
|
77645
77645
|
storage: a.storage,
|
|
77646
77646
|
editor: t
|
|
77647
|
-
}, c =
|
|
77647
|
+
}, c = Q9({
|
|
77648
77648
|
...e.reduce((f, p) => {
|
|
77649
77649
|
const g = Ue(p, "extendNodeSchema", l);
|
|
77650
77650
|
return {
|
|
@@ -77664,9 +77664,9 @@ function ogt(e, t) {
|
|
|
77664
77664
|
linebreakReplacement: Xt(Ue(a, "linebreakReplacement", l)),
|
|
77665
77665
|
defining: Xt(Ue(a, "defining", l)),
|
|
77666
77666
|
isolating: Xt(Ue(a, "isolating", l)),
|
|
77667
|
-
attrs: Object.fromEntries(s.map(
|
|
77667
|
+
attrs: Object.fromEntries(s.map(eH))
|
|
77668
77668
|
}), u = Xt(Ue(a, "parseHTML", l));
|
|
77669
|
-
u && (c.parseDOM = u.map((f) =>
|
|
77669
|
+
u && (c.parseDOM = u.map((f) => Z9(f, s)));
|
|
77670
77670
|
const d = Ue(a, "renderHTML", l);
|
|
77671
77671
|
d && (c.toDOM = (f) => d({
|
|
77672
77672
|
node: f,
|
|
@@ -77681,7 +77681,7 @@ function ogt(e, t) {
|
|
|
77681
77681
|
options: a.options,
|
|
77682
77682
|
storage: a.storage,
|
|
77683
77683
|
editor: t
|
|
77684
|
-
}, c =
|
|
77684
|
+
}, c = Q9({
|
|
77685
77685
|
...e.reduce((h, f) => {
|
|
77686
77686
|
const p = Ue(f, "extendMarkSchema", l);
|
|
77687
77687
|
return {
|
|
@@ -77694,9 +77694,9 @@ function ogt(e, t) {
|
|
|
77694
77694
|
group: Xt(Ue(a, "group", l)),
|
|
77695
77695
|
spanning: Xt(Ue(a, "spanning", l)),
|
|
77696
77696
|
code: Xt(Ue(a, "code", l)),
|
|
77697
|
-
attrs: Object.fromEntries(s.map(
|
|
77697
|
+
attrs: Object.fromEntries(s.map(eH))
|
|
77698
77698
|
}), u = Xt(Ue(a, "parseHTML", l));
|
|
77699
|
-
u && (c.parseDOM = u.map((h) =>
|
|
77699
|
+
u && (c.parseDOM = u.map((h) => Z9(h, s)));
|
|
77700
77700
|
const d = Ue(a, "renderHTML", l);
|
|
77701
77701
|
return d && (c.toDOM = (h) => d({
|
|
77702
77702
|
mark: h,
|
|
@@ -77872,7 +77872,7 @@ function dgt(e, t, n = {}) {
|
|
|
77872
77872
|
const r = ZT(t, e.schema);
|
|
77873
77873
|
return r === "node" ? tv(e, t, n) : r === "mark" ? aP(e, t, n) : !1;
|
|
77874
77874
|
}
|
|
77875
|
-
function
|
|
77875
|
+
function tH(e, t) {
|
|
77876
77876
|
return Array.isArray(t) ? t.some((n) => (typeof n == "string" ? n : n.name) === e.name) : t;
|
|
77877
77877
|
}
|
|
77878
77878
|
function xk(e, t) {
|
|
@@ -77976,10 +77976,10 @@ var ggt = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
77976
77976
|
}, vgt = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), ygt = (e, t = {}) => ({ state: n, dispatch: r, chain: o }) => {
|
|
77977
77977
|
const i = ur(e, n.schema);
|
|
77978
77978
|
let a;
|
|
77979
|
-
return n.selection.$anchor.sameParent(n.selection.$head) && (a = n.selection.$anchor.parent.attrs), i.isTextblock ? o().command(({ commands: s }) =>
|
|
77979
|
+
return n.selection.$anchor.sameParent(n.selection.$head) && (a = n.selection.$anchor.parent.attrs), i.isTextblock ? o().command(({ commands: s }) => p9(i, {
|
|
77980
77980
|
...a,
|
|
77981
77981
|
...t
|
|
77982
|
-
})(n) ? !0 : s.clearNodes()).command(({ state: s }) =>
|
|
77982
|
+
})(n) ? !0 : s.clearNodes()).command(({ state: s }) => p9(i, {
|
|
77983
77983
|
...a,
|
|
77984
77984
|
...t
|
|
77985
77985
|
})(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
@@ -78008,7 +78008,7 @@ var ggt = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
78008
78008
|
}
|
|
78009
78009
|
return !0;
|
|
78010
78010
|
}, Sgt = (e) => ({ state: t, dispatch: n }) => gft(ur(e, t.schema))(t, n);
|
|
78011
|
-
function
|
|
78011
|
+
function nH(e, t) {
|
|
78012
78012
|
const n = e.storedMarks || e.selection.$to.parentOffset && e.selection.$from.marks();
|
|
78013
78013
|
if (n) {
|
|
78014
78014
|
const r = n.filter((o) => t?.includes(o.type.name));
|
|
@@ -78018,7 +78018,7 @@ function n9(e, t) {
|
|
|
78018
78018
|
var Tgt = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: o }) => {
|
|
78019
78019
|
const { selection: i, doc: a } = t, { $from: s, $to: l } = i, c = o.extensionManager.attributes, u = Xb(c, s.node().type.name, s.node().attrs);
|
|
78020
78020
|
if (i instanceof lt && i.node.isBlock)
|
|
78021
|
-
return !s.parentOffset || !Ms(a, s.pos) ? !1 : (r && (e &&
|
|
78021
|
+
return !s.parentOffset || !Ms(a, s.pos) ? !1 : (r && (e && nH(n, o.extensionManager.splittableMarks), t.split(s.pos).scrollIntoView()), !0);
|
|
78022
78022
|
if (!s.parent.isBlock) return !1;
|
|
78023
78023
|
const d = l.parentOffset === l.parent.content.size, h = s.depth === 0 ? void 0 : Oce(s.node(-1).contentMatchAt(s.indexAfter(-1)));
|
|
78024
78024
|
let f = d && h ? [{
|
|
@@ -78033,7 +78033,7 @@ var Tgt = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edito
|
|
|
78033
78033
|
const g = t.mapping.map(s.before()), v = t.doc.resolve(g);
|
|
78034
78034
|
s.node(-1).canReplaceWith(v.index(), v.index() + 1, h) && t.setNodeMarkup(t.mapping.map(s.before()), h);
|
|
78035
78035
|
}
|
|
78036
|
-
e &&
|
|
78036
|
+
e && nH(n, o.extensionManager.splittableMarks), t.scrollIntoView();
|
|
78037
78037
|
}
|
|
78038
78038
|
return p;
|
|
78039
78039
|
}, Agt = (e, t = {}) => ({ tr: n, state: r, dispatch: o, editor: i }) => {
|
|
@@ -78091,11 +78091,11 @@ var Tgt = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edito
|
|
|
78091
78091
|
}
|
|
78092
78092
|
return !0;
|
|
78093
78093
|
};
|
|
78094
|
-
function
|
|
78094
|
+
function rH(e) {
|
|
78095
78095
|
return !e || e === "1" ? null : e;
|
|
78096
78096
|
}
|
|
78097
78097
|
function jce(e, t) {
|
|
78098
|
-
return
|
|
78098
|
+
return rH(e) === rH(t);
|
|
78099
78099
|
}
|
|
78100
78100
|
var wk = (e, t) => {
|
|
78101
78101
|
const n = eN((i) => i.type === t)(e.selection);
|
|
@@ -78455,11 +78455,11 @@ function qgt(e, t, n) {
|
|
|
78455
78455
|
widgetKeys: a
|
|
78456
78456
|
};
|
|
78457
78457
|
}
|
|
78458
|
-
function
|
|
78458
|
+
function oH(e, t) {
|
|
78459
78459
|
const n = Object.values(t).flatMap((r) => r.find());
|
|
78460
78460
|
return En.create(e, n);
|
|
78461
78461
|
}
|
|
78462
|
-
function
|
|
78462
|
+
function iH(e) {
|
|
78463
78463
|
const t = /* @__PURE__ */ new Set();
|
|
78464
78464
|
for (const n of Object.values(e)) for (const r of n) t.add(r);
|
|
78465
78465
|
return t;
|
|
@@ -78527,7 +78527,7 @@ var Zgt = /* @__PURE__ */ new Set(), Qgt = class {
|
|
|
78527
78527
|
decorationSetsByExtension: o,
|
|
78528
78528
|
widgetKeysByExtension: i,
|
|
78529
78529
|
mergedDecorationSet: this.buildMergedSet(r.doc, o),
|
|
78530
|
-
widgetKeys:
|
|
78530
|
+
widgetKeys: iH(i)
|
|
78531
78531
|
};
|
|
78532
78532
|
return this.warnDuplicateWidgetKeys(a), a;
|
|
78533
78533
|
},
|
|
@@ -78564,7 +78564,7 @@ var Zgt = /* @__PURE__ */ new Set(), Qgt = class {
|
|
|
78564
78564
|
decorationSetsByExtension: c,
|
|
78565
78565
|
recomputedNames: d
|
|
78566
78566
|
}),
|
|
78567
|
-
widgetKeys:
|
|
78567
|
+
widgetKeys: iH(u)
|
|
78568
78568
|
};
|
|
78569
78569
|
}
|
|
78570
78570
|
},
|
|
@@ -78648,10 +78648,10 @@ var Zgt = /* @__PURE__ */ new Set(), Qgt = class {
|
|
|
78648
78648
|
}
|
|
78649
78649
|
buildMergedSet(e, t) {
|
|
78650
78650
|
const n = Object.keys(t);
|
|
78651
|
-
return n.length === 1 ? t[n[0]] :
|
|
78651
|
+
return n.length === 1 ? t[n[0]] : oH(e, t);
|
|
78652
78652
|
}
|
|
78653
78653
|
mergeAfterApply({ entries: e, previous: t, tr: n, decorationSetsByExtension: r, recomputedNames: o }) {
|
|
78654
|
-
return e.length === 1 ? r[e[0].name] : o.size === 0 ? t.mergedDecorationSet.map(n.mapping, n.doc) :
|
|
78654
|
+
return e.length === 1 ? r[e[0].name] : o.size === 0 ? t.mergedDecorationSet.map(n.mapping, n.doc) : oH(n.doc, r);
|
|
78655
78655
|
}
|
|
78656
78656
|
};
|
|
78657
78657
|
function evt(e, t, n) {
|
|
@@ -79059,7 +79059,7 @@ var eA = class {
|
|
|
79059
79059
|
const l = smt(s);
|
|
79060
79060
|
i.push(l);
|
|
79061
79061
|
const c = Ue(r, "addInputRules", o);
|
|
79062
|
-
if (
|
|
79062
|
+
if (tH(r, e.options.enableInputRules) && c) {
|
|
79063
79063
|
const h = c();
|
|
79064
79064
|
if (h && h.length) {
|
|
79065
79065
|
const f = ivt({
|
|
@@ -79070,7 +79070,7 @@ var eA = class {
|
|
|
79070
79070
|
}
|
|
79071
79071
|
}
|
|
79072
79072
|
const u = Ue(r, "addPasteRules", o);
|
|
79073
|
-
if (
|
|
79073
|
+
if (tH(r, e.options.enablePasteRules) && u) {
|
|
79074
79074
|
const h = u();
|
|
79075
79075
|
if (h && h.length) {
|
|
79076
79076
|
const f = cvt({
|
|
@@ -79499,10 +79499,10 @@ var sn = class nue extends iN {
|
|
|
79499
79499
|
} }
|
|
79500
79500
|
})];
|
|
79501
79501
|
}
|
|
79502
|
-
}),
|
|
79502
|
+
}), aH = !1;
|
|
79503
79503
|
function wvt(e) {
|
|
79504
|
-
if (
|
|
79505
|
-
|
|
79504
|
+
if (aH) return;
|
|
79505
|
+
aH = !0;
|
|
79506
79506
|
let t;
|
|
79507
79507
|
try {
|
|
79508
79508
|
t = jo.fromJSON(e, {
|
|
@@ -79748,7 +79748,7 @@ img.ProseMirror-separator {
|
|
|
79748
79748
|
const t = this.createDoc();
|
|
79749
79749
|
if (!this.editorState) {
|
|
79750
79750
|
const n = oP(t, this.options.autofocus);
|
|
79751
|
-
this.editorState =
|
|
79751
|
+
this.editorState = f9.create({
|
|
79752
79752
|
doc: t,
|
|
79753
79753
|
schema: this.schema,
|
|
79754
79754
|
selection: n || void 0
|
|
@@ -79877,7 +79877,7 @@ img.ProseMirror-separator {
|
|
|
79877
79877
|
} catch (t) {
|
|
79878
79878
|
if (!(t instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(t.message)) throw t;
|
|
79879
79879
|
const n = iP(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
79880
|
-
return this.editorState =
|
|
79880
|
+
return this.editorState = f9.create({
|
|
79881
79881
|
doc: n,
|
|
79882
79882
|
schema: this.schema,
|
|
79883
79883
|
selection: oP(n, this.options.autofocus) || void 0
|
|
@@ -80117,7 +80117,7 @@ function kvt(e, t) {
|
|
|
80117
80117
|
n
|
|
80118
80118
|
]) : yc([e, r]);
|
|
80119
80119
|
}
|
|
80120
|
-
var
|
|
80120
|
+
var sH = (e, t) => kvt(e, t), Evt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Mvt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Pvt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Ivt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Rvt = Kf.create({
|
|
80121
80121
|
name: "bold",
|
|
80122
80122
|
addOptions() {
|
|
80123
80123
|
return { HTMLAttributes: {} };
|
|
@@ -80140,9 +80140,9 @@ var s9 = (e, t) => kvt(e, t), Evt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\
|
|
|
80140
80140
|
];
|
|
80141
80141
|
},
|
|
80142
80142
|
renderHTML({ HTMLAttributes: e }) {
|
|
80143
|
-
return /* @__PURE__ */
|
|
80143
|
+
return /* @__PURE__ */ sH("strong", {
|
|
80144
80144
|
...$a(this.options.HTMLAttributes, e),
|
|
80145
|
-
children: /* @__PURE__ */
|
|
80145
|
+
children: /* @__PURE__ */ sH("slot", {})
|
|
80146
80146
|
});
|
|
80147
80147
|
},
|
|
80148
80148
|
markdownTokenName: "strong",
|
|
@@ -80423,7 +80423,7 @@ mo.prototype = {
|
|
|
80423
80423
|
return s ? (a = new mo(), Object.assign(a.j, s.j), a.jr.push.apply(a.jr, s.jr), a.jd = s.jd, a.t = s.t) : a = new mo(), i && (r && (a.t && typeof a.t == "string" ? Nc(i, Object.assign(Wvt(a.t, r), n), r) : n && Nc(i, n, r)), a.t = i), o.j[e] = a, a;
|
|
80424
80424
|
}
|
|
80425
80425
|
};
|
|
80426
|
-
var St = (e, t, n, r, o) => e.ta(t, n, r, o), In = (e, t, n, r, o) => e.tr(t, n, r, o),
|
|
80426
|
+
var St = (e, t, n, r, o) => e.ta(t, n, r, o), In = (e, t, n, r, o) => e.tr(t, n, r, o), lH = (e, t, n, r, o) => e.ts(t, n, r, o), we = (e, t, n, r, o) => e.tt(t, n, r, o), ls = "WORD", hP = "UWORD", lue = "ASCIINUMERICAL", cue = "ALPHANUMERICAL", rv = "LOCALHOST", fP = "TLD", pP = "UTLD", Jb = "SCHEME", Gd = "SLASH_SCHEME", aN = "NUM", mP = "WS", sN = "NL", _m = "OPENBRACE", Om = "CLOSEBRACE", K1 = "OPENBRACKET", q1 = "CLOSEBRACKET", X1 = "OPENPAREN", J1 = "CLOSEPAREN", Z1 = "OPENANGLEBRACKET", Q1 = "CLOSEANGLEBRACKET", ew = "FULLWIDTHLEFTPAREN", tw = "FULLWIDTHRIGHTPAREN", nw = "LEFTCORNERBRACKET", rw = "RIGHTCORNERBRACKET", ow = "LEFTWHITECORNERBRACKET", iw = "RIGHTWHITECORNERBRACKET", aw = "FULLWIDTHLESSTHAN", sw = "FULLWIDTHGREATERTHAN", lw = "AMPERSAND", cw = "APOSTROPHE", uw = "ASTERISK", dl = "AT", dw = "BACKSLASH", hw = "BACKTICK", fw = "CARET", Fc = "COLON", lN = "COMMA", pw = "DOLLAR", ra = "DOT", mw = "EQUALS", cN = "EXCLAMATION", ri = "HYPHEN", Dm = "PERCENT", gw = "PIPE", vw = "PLUS", yw = "POUND", Nm = "QUERY", uN = "QUOTE", uue = "FULLWIDTHMIDDLEDOT", dN = "SEMI", oa = "SLASH", Fm = "TILDE", bw = "UNDERSCORE", due = "EMOJI", xw = "SYM", hue = /* @__PURE__ */ Object.freeze({
|
|
80427
80427
|
__proto__: null,
|
|
80428
80428
|
ALPHANUMERICAL: cue,
|
|
80429
80429
|
AMPERSAND: lw,
|
|
@@ -80480,21 +80480,21 @@ var St = (e, t, n, r, o) => e.ta(t, n, r, o), In = (e, t, n, r, o) => e.tr(t, n,
|
|
|
80480
80480
|
UWORD: hP,
|
|
80481
80481
|
WORD: ls,
|
|
80482
80482
|
WS: mP
|
|
80483
|
-
}), es = /[a-z]/, Ap = /\p{L}/u, Ak = /\p{Emoji}/u, ts = /\d/, Ck = /\s/,
|
|
80483
|
+
}), es = /[a-z]/, Ap = /\p{L}/u, Ak = /\p{Emoji}/u, ts = /\d/, Ck = /\s/, cH = "\r", kk = `
|
|
80484
80484
|
`, Uvt = "️", jvt = "", Ek = "", q0 = null, X0 = null;
|
|
80485
80485
|
function Yvt(e = []) {
|
|
80486
80486
|
const t = {};
|
|
80487
80487
|
mo.groups = t;
|
|
80488
80488
|
const n = new mo();
|
|
80489
|
-
q0 == null && (q0 =
|
|
80489
|
+
q0 == null && (q0 = uH(Vvt)), X0 == null && (X0 = uH($vt)), we(n, "'", cw), we(n, "{", _m), we(n, "}", Om), we(n, "[", K1), we(n, "]", q1), we(n, "(", X1), we(n, ")", J1), we(n, "<", Z1), we(n, ">", Q1), we(n, "(", ew), we(n, ")", tw), we(n, "「", nw), we(n, "」", rw), we(n, "『", ow), we(n, "』", iw), we(n, "<", aw), we(n, ">", sw), we(n, "&", lw), we(n, "*", uw), we(n, "@", dl), we(n, "`", hw), we(n, "^", fw), we(n, ":", Fc), we(n, ",", lN), we(n, "$", pw), we(n, ".", ra), we(n, "=", mw), we(n, "!", cN), we(n, "-", ri), we(n, "%", Dm), we(n, "|", gw), we(n, "+", vw), we(n, "#", yw), we(n, "?", Nm), we(n, '"', uN), we(n, "/", oa), we(n, ";", dN), we(n, "~", Fm), we(n, "_", bw), we(n, "\\", dw), we(n, "・", uue);
|
|
80490
80490
|
const r = In(n, ts, aN, { [lP]: !0 });
|
|
80491
80491
|
In(r, ts, r);
|
|
80492
80492
|
const o = In(r, es, lue, { [Lm]: !0 }), i = In(r, Ap, cue, { [rm]: !0 }), a = In(n, es, ls, { [cP]: !0 });
|
|
80493
80493
|
In(a, ts, o), In(a, es, a), In(o, ts, o), In(o, es, o);
|
|
80494
80494
|
const s = In(n, Ap, hP, { [uP]: !0 });
|
|
80495
80495
|
In(s, es), In(s, ts, i), In(s, Ap, s), In(i, ts, i), In(i, es), In(i, Ap, i);
|
|
80496
|
-
const l = we(n, kk, sN, { [Tk]: !0 }), c = we(n,
|
|
80497
|
-
we(n, Ek, u), we(c, kk, l), we(c, Ek, u), In(c, Ck, u), we(u,
|
|
80496
|
+
const l = we(n, kk, sN, { [Tk]: !0 }), c = we(n, cH, mP, { [Tk]: !0 }), u = In(n, Ck, mP, { [Tk]: !0 });
|
|
80497
|
+
we(n, Ek, u), we(c, kk, l), we(c, Ek, u), In(c, Ck, u), we(u, cH), we(u, kk), In(u, Ck, u), we(u, Ek, u);
|
|
80498
80498
|
const d = In(n, Ak, due, { [sue]: !0 });
|
|
80499
80499
|
we(d, "#"), In(d, Ak, d), we(d, Uvt, d);
|
|
80500
80500
|
const h = we(d, jvt);
|
|
@@ -80521,9 +80521,9 @@ function Yvt(e = []) {
|
|
|
80521
80521
|
}, t), e = e.sort((g, v) => g[0] > v[0] ? 1 : -1);
|
|
80522
80522
|
for (let g = 0; g < e.length; g++) {
|
|
80523
80523
|
const v = e[g][0], y = e[g][1] ? { [Hvt]: !0 } : { [zvt]: !0 };
|
|
80524
|
-
v.indexOf("-") >= 0 ? y[dP] = !0 : es.test(v) ? ts.test(v) ? y[Lm] = !0 : y[cP] = !0 : y[lP] = !0,
|
|
80524
|
+
v.indexOf("-") >= 0 ? y[dP] = !0 : es.test(v) ? ts.test(v) ? y[Lm] = !0 : y[cP] = !0 : y[lP] = !0, lH(n, v, v, y);
|
|
80525
80525
|
}
|
|
80526
|
-
return
|
|
80526
|
+
return lH(n, "localhost", rv, { ascii: !0 }), n.jd = new mo(xw), {
|
|
80527
80527
|
start: n,
|
|
80528
80528
|
tokens: Object.assign({ groups: t }, hue)
|
|
80529
80529
|
};
|
|
@@ -80562,7 +80562,7 @@ function rl(e, t, n, r, o) {
|
|
|
80562
80562
|
}
|
|
80563
80563
|
return i = new mo(n), i.jr = o.slice(), e.j[t[a - 1]] = i, i;
|
|
80564
80564
|
}
|
|
80565
|
-
function
|
|
80565
|
+
function uH(e) {
|
|
80566
80566
|
const t = [], n = [];
|
|
80567
80567
|
let r = 0, o = "0123456789";
|
|
80568
80568
|
for (; r < e.length; ) {
|
|
@@ -80580,8 +80580,8 @@ function u9(e) {
|
|
|
80580
80580
|
var ov = {
|
|
80581
80581
|
defaultProtocol: "http",
|
|
80582
80582
|
events: null,
|
|
80583
|
-
format:
|
|
80584
|
-
formatHref:
|
|
80583
|
+
format: dH,
|
|
80584
|
+
formatHref: dH,
|
|
80585
80585
|
nl2br: !1,
|
|
80586
80586
|
tagName: "a",
|
|
80587
80587
|
target: null,
|
|
@@ -80623,7 +80623,7 @@ hN.prototype = {
|
|
|
80623
80623
|
return (this.get("render", null, e) || this.defaultRender)(t, e.t, e);
|
|
80624
80624
|
}
|
|
80625
80625
|
};
|
|
80626
|
-
function
|
|
80626
|
+
function dH(e) {
|
|
80627
80627
|
return e;
|
|
80628
80628
|
}
|
|
80629
80629
|
function pue(e, t) {
|
|
@@ -80697,7 +80697,7 @@ var qvt = tA("email", {
|
|
|
80697
80697
|
toHref() {
|
|
80698
80698
|
return "mailto:" + this.toString();
|
|
80699
80699
|
}
|
|
80700
|
-
}),
|
|
80700
|
+
}), hH = tA("text"), Xvt = tA("nl"), J0 = tA("url", {
|
|
80701
80701
|
isLink: !0,
|
|
80702
80702
|
toHref(e = ov.defaultProtocol) {
|
|
80703
80703
|
return this.hasProtocol() ? this.v : `${e}://${this.v}`;
|
|
@@ -80833,12 +80833,12 @@ function Zvt(e, t, n) {
|
|
|
80833
80833
|
if (h < 0)
|
|
80834
80834
|
o -= u, o < r && (a.push(n[o]), o++);
|
|
80835
80835
|
else {
|
|
80836
|
-
a.length > 0 && (i.push(Mk(
|
|
80836
|
+
a.length > 0 && (i.push(Mk(hH, t, a)), a = []), o -= h, u -= h;
|
|
80837
80837
|
const f = d.t, p = n.slice(o - u, o);
|
|
80838
80838
|
i.push(Mk(f, t, p));
|
|
80839
80839
|
}
|
|
80840
80840
|
}
|
|
80841
|
-
return a.length > 0 && i.push(Mk(
|
|
80841
|
+
return a.length > 0 && i.push(Mk(hH, t, a)), i;
|
|
80842
80842
|
}
|
|
80843
80843
|
function Mk(e, t, n) {
|
|
80844
80844
|
const r = n[0].s, o = n[n.length - 1].e;
|
|
@@ -80856,7 +80856,7 @@ var Qvt = typeof console < "u" && console && console.warn || (() => {
|
|
|
80856
80856
|
function tyt() {
|
|
80857
80857
|
return mo.groups = {}, vn.scanner = null, vn.parser = null, vn.tokenQueue = [], vn.pluginQueue = [], vn.customSchemes = [], vn.initialized = !1, vn;
|
|
80858
80858
|
}
|
|
80859
|
-
function
|
|
80859
|
+
function fH(e, t = !1) {
|
|
80860
80860
|
if (vn.initialized && Qvt(`linkifyjs: already initialized - will not register custom scheme "${e}" ${eyt}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw new Error(`linkifyjs: incorrect scheme format.
|
|
80861
80861
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
80862
80862
|
2. Cannot start or end with "-"
|
|
@@ -81086,10 +81086,10 @@ var gyt = Kf.create({
|
|
|
81086
81086
|
onCreate() {
|
|
81087
81087
|
this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((e) => {
|
|
81088
81088
|
if (typeof e == "string") {
|
|
81089
|
-
|
|
81089
|
+
fH(e);
|
|
81090
81090
|
return;
|
|
81091
81091
|
}
|
|
81092
|
-
|
|
81092
|
+
fH(e.scheme, e.optionalSlashes);
|
|
81093
81093
|
});
|
|
81094
81094
|
},
|
|
81095
81095
|
onDestroy() {
|
|
@@ -82034,9 +82034,9 @@ function Vyt(e, t, n, r) {
|
|
|
82034
82034
|
n.getMeta(zyt) && (e = new hl(e.done, e.undone, null, 0, -1));
|
|
82035
82035
|
let a = n.getMeta("appendedTransaction");
|
|
82036
82036
|
if (n.steps.length == 0) return e;
|
|
82037
|
-
if (a && a.getMeta(Qc)) return a.getMeta(Qc).redo ? new hl(e.done.addTransform(n, void 0, r, Zb(t)), e.undone,
|
|
82037
|
+
if (a && a.getMeta(Qc)) return a.getMeta(Qc).redo ? new hl(e.done.addTransform(n, void 0, r, Zb(t)), e.undone, pH(n.mapping.maps), e.prevTime, e.prevComposition) : new hl(e.done, e.undone.addTransform(n, void 0, r, Zb(t)), null, e.prevTime, e.prevComposition);
|
|
82038
82038
|
if (n.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
|
|
82039
|
-
let s = n.getMeta("composition"), l = e.prevTime == 0 || !a && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !$yt(n, e.prevRanges)), c = a ? Pk(e.prevRanges, n.mapping) :
|
|
82039
|
+
let s = n.getMeta("composition"), l = e.prevTime == 0 || !a && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !$yt(n, e.prevRanges)), c = a ? Pk(e.prevRanges, n.mapping) : pH(n.mapping.maps);
|
|
82040
82040
|
return new hl(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, Zb(t)), iv.empty, c, n.time, s ?? e.prevComposition);
|
|
82041
82041
|
} else return (i = n.getMeta("rebased")) ? new hl(e.done.rebased(n, i), e.undone.rebased(n, i), Pk(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new hl(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Pk(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
|
|
82042
82042
|
}
|
|
@@ -82048,7 +82048,7 @@ function $yt(e, t) {
|
|
|
82048
82048
|
for (let i = 0; i < t.length; i += 2) r <= t[i + 1] && o >= t[i] && (n = !0);
|
|
82049
82049
|
}), n;
|
|
82050
82050
|
}
|
|
82051
|
-
function
|
|
82051
|
+
function pH(e) {
|
|
82052
82052
|
let t = [];
|
|
82053
82053
|
for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((r, o, i, a) => t.push(i, a));
|
|
82054
82054
|
return t;
|
|
@@ -82071,11 +82071,11 @@ function Hyt(e, t, n) {
|
|
|
82071
82071
|
historyState: l
|
|
82072
82072
|
});
|
|
82073
82073
|
}
|
|
82074
|
-
var Ik = !1,
|
|
82074
|
+
var Ik = !1, mH = null;
|
|
82075
82075
|
function Zb(e) {
|
|
82076
82076
|
let t = e.plugins;
|
|
82077
|
-
if (
|
|
82078
|
-
Ik = !1,
|
|
82077
|
+
if (mH != t) {
|
|
82078
|
+
Ik = !1, mH = t;
|
|
82079
82079
|
for (let n = 0; n < t.length; n++) if (t[n].spec.historyPreserveItems) {
|
|
82080
82080
|
Ik = !0;
|
|
82081
82081
|
break;
|
|
@@ -82232,7 +82232,7 @@ var Eue = nA(!1, !0), Mue = nA(!0, !0), ERt = nA(!1, !1), MRt = nA(!0, !1), PRt
|
|
|
82232
82232
|
storage: e.storage
|
|
82233
82233
|
}))) !== null && t !== void 0 ? t : null };
|
|
82234
82234
|
}
|
|
82235
|
-
}), Pue = "placeholder",
|
|
82235
|
+
}), Pue = "placeholder", gH = new rr("tiptap__placeholder");
|
|
82236
82236
|
function Iue(e) {
|
|
82237
82237
|
const { editor: t, placeholder: n, dataAttribute: r, pos: o, node: i, isEmptyDoc: a, hasAnchor: s, classes: { emptyNode: l, emptyEditor: c } } = e, u = [l];
|
|
82238
82238
|
return a && u.push(c), qa.node(o, o + i.nodeSize, {
|
|
@@ -82423,7 +82423,7 @@ function Jyt(e) {
|
|
|
82423
82423
|
function Zyt({ editor: e, options: t }) {
|
|
82424
82424
|
const n = t.dataAttribute ? `data-${Jyt(t.dataAttribute)}` : `data-${Pue}`, r = t.showOnlyCurrent && !t.includeChildren;
|
|
82425
82425
|
return new Mn({
|
|
82426
|
-
key:
|
|
82426
|
+
key: gH,
|
|
82427
82427
|
...r ? {} : { state: Xyt({
|
|
82428
82428
|
editor: e,
|
|
82429
82429
|
options: t,
|
|
@@ -82437,7 +82437,7 @@ function Zyt({ editor: e, options: t }) {
|
|
|
82437
82437
|
selection: i
|
|
82438
82438
|
}) : (o) => {
|
|
82439
82439
|
var i;
|
|
82440
|
-
return t.showOnlyWhenEditable && !e.isEditable ? En.empty : (i =
|
|
82440
|
+
return t.showOnlyWhenEditable && !e.isEditable ? En.empty : (i = gH.getState(o)) !== null && i !== void 0 ? i : En.empty;
|
|
82441
82441
|
} }
|
|
82442
82442
|
});
|
|
82443
82443
|
}
|
|
@@ -82501,7 +82501,7 @@ var _Rt = sn.create({
|
|
|
82501
82501
|
})];
|
|
82502
82502
|
}
|
|
82503
82503
|
});
|
|
82504
|
-
function
|
|
82504
|
+
function vH({ types: e, node: t }) {
|
|
82505
82505
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
82506
82506
|
}
|
|
82507
82507
|
var ORt = sn.create({
|
|
@@ -82525,7 +82525,7 @@ var ORt = sn.create({
|
|
|
82525
82525
|
state: {
|
|
82526
82526
|
init: (o, i) => {
|
|
82527
82527
|
const a = i.tr.doc.lastChild;
|
|
82528
|
-
return !
|
|
82528
|
+
return !vH({
|
|
82529
82529
|
node: a,
|
|
82530
82530
|
types: r
|
|
82531
82531
|
});
|
|
@@ -82533,7 +82533,7 @@ var ORt = sn.create({
|
|
|
82533
82533
|
apply: (o, i) => {
|
|
82534
82534
|
if (!o.docChanged || o.getMeta("__uniqueIDTransaction")) return i;
|
|
82535
82535
|
const a = o.doc.lastChild;
|
|
82536
|
-
return !
|
|
82536
|
+
return !vH({
|
|
82537
82537
|
node: a,
|
|
82538
82538
|
types: r
|
|
82539
82539
|
});
|
|
@@ -82691,14 +82691,14 @@ function kp(e) {
|
|
|
82691
82691
|
function d0t(e) {
|
|
82692
82692
|
return e?.[Symbol.toStringTag];
|
|
82693
82693
|
}
|
|
82694
|
-
function
|
|
82694
|
+
function yH(e) {
|
|
82695
82695
|
return l0t(e).concat(c0t(e));
|
|
82696
82696
|
}
|
|
82697
82697
|
var h0t = Object.hasOwn || ((e, t) => u0t.call(e, t));
|
|
82698
82698
|
function rd(e, t) {
|
|
82699
82699
|
return e === t || !e && !t && e !== e && t !== t;
|
|
82700
82700
|
}
|
|
82701
|
-
var f0t = "__v", p0t = "__o", m0t = "_owner", g0t = typeof Float16Array < "u", { getOwnPropertyDescriptor:
|
|
82701
|
+
var f0t = "__v", p0t = "__o", m0t = "_owner", g0t = typeof Float16Array < "u", { getOwnPropertyDescriptor: bH, keys: xH } = Object;
|
|
82702
82702
|
function v0t(e, t) {
|
|
82703
82703
|
return e.byteLength === t.byteLength && Sw(new Uint8Array(e), new Uint8Array(t));
|
|
82704
82704
|
}
|
|
@@ -82714,13 +82714,13 @@ function b0t(e, t) {
|
|
|
82714
82714
|
function x0t(e, t) {
|
|
82715
82715
|
return rd(e.getTime(), t.getTime());
|
|
82716
82716
|
}
|
|
82717
|
-
function
|
|
82717
|
+
function wH(e, t, n) {
|
|
82718
82718
|
return e.name === t.name && e.message === t.message && e.stack === t.stack && n.equals(e.cause, t.cause, "cause", "cause", e, t, n);
|
|
82719
82719
|
}
|
|
82720
82720
|
function w0t(e, t) {
|
|
82721
82721
|
return e === t;
|
|
82722
82722
|
}
|
|
82723
|
-
function
|
|
82723
|
+
function SH(e, t, n) {
|
|
82724
82724
|
const r = e.size;
|
|
82725
82725
|
if (r !== t.size) return !1;
|
|
82726
82726
|
if (!r) return !0;
|
|
@@ -82747,20 +82747,20 @@ function S9(e, t, n) {
|
|
|
82747
82747
|
return !0;
|
|
82748
82748
|
}
|
|
82749
82749
|
var S0t = rd;
|
|
82750
|
-
function
|
|
82751
|
-
const r =
|
|
82750
|
+
function TH(e, t, n) {
|
|
82751
|
+
const r = xH(e);
|
|
82752
82752
|
let o = r.length;
|
|
82753
|
-
if (
|
|
82753
|
+
if (xH(t).length !== o) return !1;
|
|
82754
82754
|
for (; o-- > 0; ) if (!Nue(e, t, n, r[o])) return !1;
|
|
82755
82755
|
return !0;
|
|
82756
82756
|
}
|
|
82757
82757
|
function kd(e, t, n) {
|
|
82758
|
-
const r =
|
|
82758
|
+
const r = yH(e);
|
|
82759
82759
|
let o = r.length;
|
|
82760
|
-
if (
|
|
82760
|
+
if (yH(t).length !== o) return !1;
|
|
82761
82761
|
let i, a, s;
|
|
82762
82762
|
for (; o-- > 0; )
|
|
82763
|
-
if (i = r[o], !Nue(e, t, n, i) || (a =
|
|
82763
|
+
if (i = r[o], !Nue(e, t, n, i) || (a = bH(e, i), s = bH(t, i), (a || s) && (!a || !s || a.configurable !== s.configurable || a.enumerable !== s.enumerable || a.writable !== s.writable))) return !1;
|
|
82764
82764
|
return !0;
|
|
82765
82765
|
}
|
|
82766
82766
|
function T0t(e, t) {
|
|
@@ -82769,7 +82769,7 @@ function T0t(e, t) {
|
|
|
82769
82769
|
function A0t(e, t) {
|
|
82770
82770
|
return e.source === t.source && e.flags === t.flags;
|
|
82771
82771
|
}
|
|
82772
|
-
function
|
|
82772
|
+
function AH(e, t, n) {
|
|
82773
82773
|
const r = e.size;
|
|
82774
82774
|
if (r !== t.size) return !1;
|
|
82775
82775
|
if (!r) return !0;
|
|
@@ -82804,9 +82804,9 @@ function C0t(e, t) {
|
|
|
82804
82804
|
}
|
|
82805
82805
|
function k0t(e, t) {
|
|
82806
82806
|
const n = e.toString(), r = t.toString();
|
|
82807
|
-
return n === r ||
|
|
82807
|
+
return n === r || CH(n) === CH(r);
|
|
82808
82808
|
}
|
|
82809
|
-
function
|
|
82809
|
+
function CH(e) {
|
|
82810
82810
|
return e.split("&").sort().join("&");
|
|
82811
82811
|
}
|
|
82812
82812
|
function Nue(e, t, n, r) {
|
|
@@ -82872,14 +82872,14 @@ function G0t({ circular: e, createCustomConfig: t, strict: n }) {
|
|
|
82872
82872
|
areArraysEqual: n ? kd : y0t,
|
|
82873
82873
|
areDataViewsEqual: b0t,
|
|
82874
82874
|
areDatesEqual: x0t,
|
|
82875
|
-
areErrorsEqual: n ? Cp(
|
|
82875
|
+
areErrorsEqual: n ? Cp(wH, kd) : Cp(wH, TH),
|
|
82876
82876
|
areFunctionsEqual: w0t,
|
|
82877
|
-
areMapsEqual: n ? Cp(
|
|
82877
|
+
areMapsEqual: n ? Cp(SH, kd) : SH,
|
|
82878
82878
|
areNumbersEqual: S0t,
|
|
82879
|
-
areObjectsEqual: n ? kd :
|
|
82879
|
+
areObjectsEqual: n ? kd : TH,
|
|
82880
82880
|
arePrimitiveWrappersEqual: T0t,
|
|
82881
82881
|
areRegExpsEqual: A0t,
|
|
82882
|
-
areSetsEqual: n ? Cp(
|
|
82882
|
+
areSetsEqual: n ? Cp(AH, kd) : AH,
|
|
82883
82883
|
areTypedArraysEqual: n ? Cp(Sw, kd) : Sw,
|
|
82884
82884
|
areUrlsEqual: C0t,
|
|
82885
82885
|
unknownTagComparators: void 0
|
|
@@ -83360,15 +83360,7 @@ var cbt = /* @__PURE__ */ R.forwardRef(function(t, n) {
|
|
|
83360
83360
|
}), [e]);
|
|
83361
83361
|
}, Wue = () => {
|
|
83362
83362
|
const e = be((t) => t.scales.color);
|
|
83363
|
-
return ne(() =>
|
|
83364
|
-
if (!e || e.kind !== "visual") return [];
|
|
83365
|
-
const t = /* @__PURE__ */ new Set();
|
|
83366
|
-
for (const n of e.domain) {
|
|
83367
|
-
const r = e.map(n);
|
|
83368
|
-
typeof r == "string" && t.add(r);
|
|
83369
|
-
}
|
|
83370
|
-
return [...t];
|
|
83371
|
-
}, [e]);
|
|
83363
|
+
return ne(() => !e || e.kind !== "visual" ? [] : [...new Set(e.palette)], [e]);
|
|
83372
83364
|
}, ubt = (e) => e !== "canvasDefault" && e !== "canvasInverse", Uue = [
|
|
83373
83365
|
{
|
|
83374
83366
|
color: "#000000",
|
|
@@ -83398,7 +83390,7 @@ var fbt = "color-picker_positioner__19apx2w3", pbt = "color-picker_popup__19apx2
|
|
|
83398
83390
|
[eE]: h("graph.colorDropdown.automatic")
|
|
83399
83391
|
}, S = (I) => {
|
|
83400
83392
|
t(I), r(!1);
|
|
83401
|
-
}, w = v.length > 0, T = w ? v : y, A = e !== null && !
|
|
83393
|
+
}, w = v.length > 0, T = w ? v : y, A = e !== null && !kH(y, e) && !kH(v, e) ? [...T, e] : T, C = /* @__PURE__ */ m(ybt, {
|
|
83402
83394
|
value: e,
|
|
83403
83395
|
onChange: t,
|
|
83404
83396
|
popupAttributes: a
|
|
@@ -83475,7 +83467,7 @@ var fbt = "color-picker_positioner__19apx2w3", pbt = "color-picker_popup__19apx2
|
|
|
83475
83467
|
onChange: t,
|
|
83476
83468
|
popupAttributes: n
|
|
83477
83469
|
});
|
|
83478
|
-
},
|
|
83470
|
+
}, kH = (e, t) => e.some((n) => wD(n, t)), bbt = "floating-toolbar_root__1iuoxnw0", xbt = "floating-toolbar_group__1iuoxnw1", wbt = "floating-toolbar_separator__1iuoxnw2", jue = /* @__PURE__ */ R.createContext(void 0);
|
|
83479
83471
|
function Yue(e) {
|
|
83480
83472
|
const t = R.useContext(jue);
|
|
83481
83473
|
if (t === void 0 && !e) throw new Error(Ht(33));
|
|
@@ -84505,7 +84497,7 @@ var Ybt = ({ value: e, onChange: t, label: n, open: r, onOpenChange: o, popupAtt
|
|
|
84505
84497
|
id: "text",
|
|
84506
84498
|
translationKey: "graph.toolbar.heading.text",
|
|
84507
84499
|
previewFont: le.fontTextEditorBody
|
|
84508
|
-
},
|
|
84500
|
+
}, EH = [
|
|
84509
84501
|
{
|
|
84510
84502
|
id: "caption",
|
|
84511
84503
|
translationKey: "graph.toolbar.heading.caption",
|
|
@@ -84528,7 +84520,7 @@ var Ybt = ({ value: e, onChange: t, label: n, open: r, onOpenChange: o, popupAtt
|
|
|
84528
84520
|
previewFont: le.fontTextEditorH1
|
|
84529
84521
|
}
|
|
84530
84522
|
], oxt = ({ editor: e, activeStyle: t, open: n, onOpenChange: r }) => {
|
|
84531
|
-
const o = Pe(), i =
|
|
84523
|
+
const o = Pe(), i = EH.find((a) => a.id === t) ?? ode;
|
|
84532
84524
|
return /* @__PURE__ */ $(CN, {
|
|
84533
84525
|
open: n,
|
|
84534
84526
|
onOpenChange: r,
|
|
@@ -84552,7 +84544,7 @@ var Ybt = ({ value: e, onChange: t, label: n, open: r, onOpenChange: o, popupAtt
|
|
|
84552
84544
|
children: /* @__PURE__ */ m(SN, {
|
|
84553
84545
|
className: nde,
|
|
84554
84546
|
onMouseDown: (a) => a.preventDefault(),
|
|
84555
|
-
children:
|
|
84547
|
+
children: EH.map((a) => /* @__PURE__ */ m(wN, {
|
|
84556
84548
|
className: rde,
|
|
84557
84549
|
"data-selected": a.id === i.id,
|
|
84558
84550
|
onClick: () => ixt(e, a.id),
|
|
@@ -84609,14 +84601,14 @@ var Ybt = ({ value: e, onChange: t, label: n, open: r, onOpenChange: o, popupAtt
|
|
|
84609
84601
|
}), cxt = (e) => !e.content || e.content.length === 0 ? !0 : e.content.every((t) => !t.content || t.content.length === 0), uxt = (e) => {
|
|
84610
84602
|
const { $from: t } = e.state.selection, n = t.parent.textContent, r = t.parentOffset, o = t.start();
|
|
84611
84603
|
let i = r;
|
|
84612
|
-
for (; i > 0 &&
|
|
84604
|
+
for (; i > 0 && MH(n[i - 1]); ) i -= 1;
|
|
84613
84605
|
let a = r;
|
|
84614
|
-
for (; a < n.length &&
|
|
84606
|
+
for (; a < n.length && MH(n[a]); ) a += 1;
|
|
84615
84607
|
return {
|
|
84616
84608
|
from: o + i,
|
|
84617
84609
|
to: o + a
|
|
84618
84610
|
};
|
|
84619
|
-
},
|
|
84611
|
+
}, MH = (e) => e !== void 0 && /\S/.test(e), dxt = "link-editor_trigger__1rsl1mx0", hxt = "link-editor_positioner__1rsl1mx1", fxt = "link-editor_popup__1rsl1mx2", pxt = "link-editor_input__1rsl1mx3", PH = "link-editor_button__1rsl1mx4", mxt = ({ editor: e, currentUrl: t, active: n, open: r, onOpenChange: o }) => {
|
|
84620
84612
|
const i = Pe(), [a, s] = ke(""), l = ye(null);
|
|
84621
84613
|
me(() => {
|
|
84622
84614
|
r && s(t ?? "");
|
|
@@ -84666,14 +84658,14 @@ var Ybt = ({ value: e, onChange: t, label: n, open: r, onOpenChange: o, popupAtt
|
|
|
84666
84658
|
/* @__PURE__ */ m("button", {
|
|
84667
84659
|
type: "button",
|
|
84668
84660
|
"aria-label": i("common.cancel"),
|
|
84669
|
-
className:
|
|
84661
|
+
className: PH,
|
|
84670
84662
|
onClick: u,
|
|
84671
84663
|
children: /* @__PURE__ */ m(lxt, {})
|
|
84672
84664
|
}),
|
|
84673
84665
|
/* @__PURE__ */ m("button", {
|
|
84674
84666
|
type: "button",
|
|
84675
84667
|
"aria-label": i("graph.toolbar.link.apply"),
|
|
84676
|
-
className:
|
|
84668
|
+
className: PH,
|
|
84677
84669
|
onClick: c,
|
|
84678
84670
|
children: /* @__PURE__ */ m(dae, {})
|
|
84679
84671
|
})
|
|
@@ -84929,7 +84921,7 @@ var bxt = /* @__PURE__ */ R.forwardRef(function(t, n) {
|
|
|
84929
84921
|
"aria-label": t
|
|
84930
84922
|
})]
|
|
84931
84923
|
}), Rxt = 200, EN = ({ content: e, extensions: t, editable: n, onUpdate: r, updateDebounceMs: o = Rxt }) => {
|
|
84932
|
-
const i = ye(
|
|
84924
|
+
const i = ye(IH(e)), a = ye(i.current), s = Vre((c) => {
|
|
84933
84925
|
a.current = c, r?.(c);
|
|
84934
84926
|
}, o), l = nbt({
|
|
84935
84927
|
extensions: t,
|
|
@@ -84946,14 +84938,14 @@ var bxt = /* @__PURE__ */ R.forwardRef(function(t, n) {
|
|
|
84946
84938
|
l?.setEditable(n);
|
|
84947
84939
|
}, [l, n]), me(() => {
|
|
84948
84940
|
if (!l) return;
|
|
84949
|
-
const c =
|
|
84941
|
+
const c = IH(e);
|
|
84950
84942
|
Lk(a.current, c) || (a.current = c, !Lk(l.getJSON(), c) && (s.cancel(), Lxt(l, c)));
|
|
84951
84943
|
}, [
|
|
84952
84944
|
l,
|
|
84953
84945
|
e,
|
|
84954
84946
|
s
|
|
84955
84947
|
]), me(() => () => s.flush(), [s]), l;
|
|
84956
|
-
},
|
|
84948
|
+
}, IH = (e) => e === null ? {
|
|
84957
84949
|
type: "doc",
|
|
84958
84950
|
content: []
|
|
84959
84951
|
} : typeof e == "string" ? {
|
|
@@ -85072,7 +85064,7 @@ var av = "textStyle", cde = /* @__PURE__ */ new Set(["paragraph", "heading"]), u
|
|
|
85072
85064
|
},
|
|
85073
85065
|
"data-testid": "text-annotation-editor"
|
|
85074
85066
|
});
|
|
85075
|
-
},
|
|
85067
|
+
}, RH = (e) => {
|
|
85076
85068
|
const t = Bg(e);
|
|
85077
85069
|
return t === void 0 ? {} : { style: `font-family: ${t}` };
|
|
85078
85070
|
}, Wxt = sn.create({
|
|
@@ -85083,11 +85075,11 @@ var av = "textStyle", cde = /* @__PURE__ */ new Set(["paragraph", "heading"]), u
|
|
|
85083
85075
|
attributes: {
|
|
85084
85076
|
fontFamily: {
|
|
85085
85077
|
default: null,
|
|
85086
|
-
renderHTML: (e) =>
|
|
85078
|
+
renderHTML: (e) => RH(e.fontFamily)
|
|
85087
85079
|
},
|
|
85088
85080
|
font: {
|
|
85089
85081
|
default: null,
|
|
85090
|
-
renderHTML: (e) =>
|
|
85082
|
+
renderHTML: (e) => RH(e.font)
|
|
85091
85083
|
},
|
|
85092
85084
|
fontSize: {
|
|
85093
85085
|
default: null,
|
|
@@ -85187,15 +85179,15 @@ var Jxt = "anchored-popover_positioner__1ogo3o30", Zxt = "anchored-popover_popup
|
|
|
85187
85179
|
}), e1t = ({ side: e, boundary: t, spans: n, anchor: r, rightToLeft: o }) => {
|
|
85188
85180
|
if (!n1t(e)) return 0;
|
|
85189
85181
|
const i = n[e];
|
|
85190
|
-
if (e === "left" || e === "right") return
|
|
85182
|
+
if (e === "left" || e === "right") return LH(i.from - t.y, r.height, t.height);
|
|
85191
85183
|
const a = o ? t.x + t.width - i.to : i.from - t.x;
|
|
85192
|
-
return
|
|
85184
|
+
return LH(a, r.width, t.width);
|
|
85193
85185
|
}, t1t = () => {
|
|
85194
85186
|
const [e, t] = ke(!1);
|
|
85195
85187
|
return me(() => {
|
|
85196
85188
|
t(!0);
|
|
85197
85189
|
}, []), e;
|
|
85198
|
-
}, n1t = (e) => Rne.some((t) => t === e),
|
|
85190
|
+
}, n1t = (e) => Rne.some((t) => t === e), LH = (e, t, n) => n === 0 ? 0 : e * t / n, r1t = {
|
|
85199
85191
|
x: 8,
|
|
85200
85192
|
y: 8
|
|
85201
85193
|
}, o1t = {
|
|
@@ -85349,7 +85341,7 @@ var Jxt = "anchored-popover_positioner__1ogo3o30", Zxt = "anchored-popover_popup
|
|
|
85349
85341
|
i === void 0 || !i.interactive || i.attachment !== null || r.push(...c1t(i, e, t, n));
|
|
85350
85342
|
}
|
|
85351
85343
|
return r;
|
|
85352
|
-
},
|
|
85344
|
+
}, _H = (e, t) => {
|
|
85353
85345
|
if (t === null) return -1;
|
|
85354
85346
|
const n = mf(t);
|
|
85355
85347
|
return e.findIndex((r) => r.target.layerId === t.layerId && r.target.observationIndex === n);
|
|
@@ -85448,7 +85440,7 @@ var Jxt = "anchored-popover_positioner__1ogo3o30", Zxt = "anchored-popover_popup
|
|
|
85448
85440
|
if (!L()) return;
|
|
85449
85441
|
const H = l1t(i.getState().scene, a, u);
|
|
85450
85442
|
if (H.length === 0) return;
|
|
85451
|
-
const B = s.getState().hover.primary, V = E.key === "ArrowRight" || E.key === "ArrowDown" ? 1 : -1, G = f.current === null ?
|
|
85443
|
+
const B = s.getState().hover.primary, V = E.key === "ArrowRight" || E.key === "ArrowDown" ? 1 : -1, G = f.current === null ? _H(H, B) : _H(H, f.current.primary), z = H[G < 0 ? V > 0 ? 0 : H.length - 1 : Math.min(H.length - 1, Math.max(0, G + V))];
|
|
85452
85444
|
if (z !== void 0) {
|
|
85453
85445
|
if (p.current === null) {
|
|
85454
85446
|
const j = eh(B);
|
|
@@ -85676,10 +85668,10 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85676
85668
|
}), Ed = {
|
|
85677
85669
|
side: "top",
|
|
85678
85670
|
delay: 200
|
|
85679
|
-
},
|
|
85671
|
+
}, OH = 0.2, E1t = {
|
|
85680
85672
|
type: "doc",
|
|
85681
85673
|
content: [{ type: "paragraph" }]
|
|
85682
|
-
},
|
|
85674
|
+
}, DH = {
|
|
85683
85675
|
paddingInline: 12,
|
|
85684
85676
|
paddingBlock: 10
|
|
85685
85677
|
}, M1t = ({ frameElement: e, panelRect: t }) => {
|
|
@@ -85739,7 +85731,7 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85739
85731
|
kind: "arrow-draw",
|
|
85740
85732
|
heads: _,
|
|
85741
85733
|
start: n,
|
|
85742
|
-
...
|
|
85734
|
+
...NH(E[0])
|
|
85743
85735
|
});
|
|
85744
85736
|
}, x = (..._) => {
|
|
85745
85737
|
if (o.getState().standingInteraction?.kind === "box-draw") {
|
|
@@ -85749,7 +85741,7 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85749
85741
|
Ep(o), g({ kind: "choose" }), o.getState().claimInteraction({
|
|
85750
85742
|
kind: "box-draw",
|
|
85751
85743
|
start: n,
|
|
85752
|
-
...
|
|
85744
|
+
...NH(_[0])
|
|
85753
85745
|
});
|
|
85754
85746
|
}, k = () => {
|
|
85755
85747
|
const _ = o.getState().standingInteraction?.kind;
|
|
@@ -85770,15 +85762,15 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85770
85762
|
x: n.x,
|
|
85771
85763
|
y: n.y
|
|
85772
85764
|
},
|
|
85773
|
-
width:
|
|
85765
|
+
width: OH
|
|
85774
85766
|
}
|
|
85775
85767
|
}), M = E.params.annotation.id, O = f({
|
|
85776
85768
|
annotationId: M,
|
|
85777
85769
|
anchorX: n.x,
|
|
85778
85770
|
align: px.align,
|
|
85779
85771
|
panelWidth: t.width,
|
|
85780
|
-
minWidth:
|
|
85781
|
-
paddingInline: _ === null ? void 0 :
|
|
85772
|
+
minWidth: OH,
|
|
85773
|
+
paddingInline: _ === null ? void 0 : DH.paddingInline
|
|
85782
85774
|
}), D = new Qr({
|
|
85783
85775
|
kind: "text",
|
|
85784
85776
|
annotation: {
|
|
@@ -85796,7 +85788,7 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85796
85788
|
},
|
|
85797
85789
|
declarations: {
|
|
85798
85790
|
fill: _,
|
|
85799
|
-
...
|
|
85791
|
+
...DH
|
|
85800
85792
|
}
|
|
85801
85793
|
}
|
|
85802
85794
|
})] })), l.getState().setSelection([{
|
|
@@ -85944,7 +85936,7 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85944
85936
|
}, Ep = (e) => {
|
|
85945
85937
|
const t = e.getState().standingInteraction?.kind;
|
|
85946
85938
|
(t === "arrow-draw" || t === "box-draw") && e.getState().releaseInteraction(t);
|
|
85947
|
-
},
|
|
85939
|
+
}, NH = (e) => {
|
|
85948
85940
|
if (typeof e != "object" || e === null) return {};
|
|
85949
85941
|
if ("detail" in e && e.detail === 0) return {};
|
|
85950
85942
|
if (!("clientX" in e) || !("clientY" in e)) return {};
|
|
@@ -85953,7 +85945,7 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85953
85945
|
x: t,
|
|
85954
85946
|
y: n
|
|
85955
85947
|
} };
|
|
85956
|
-
}, Dy = (e) => e.offset + e.strokeWidth,
|
|
85948
|
+
}, Dy = (e) => e.offset + e.strokeWidth, FH = "http://www.w3.org/2000/svg", BH = /* @__PURE__ */ new WeakMap(), R1t = (e, t) => {
|
|
85957
85949
|
const n = L1t(e);
|
|
85958
85950
|
n.setAttribute("d", t);
|
|
85959
85951
|
const { x: r, y: o, width: i, height: a } = n.getBBox();
|
|
@@ -85964,12 +85956,12 @@ var y1t = "empty-plot-menu_clickDot__sor9pc3", Oy = {
|
|
|
85964
85956
|
height: a
|
|
85965
85957
|
};
|
|
85966
85958
|
}, L1t = (e) => {
|
|
85967
|
-
const t =
|
|
85959
|
+
const t = BH.get(e);
|
|
85968
85960
|
if (t?.isConnected) return t;
|
|
85969
|
-
const n = e.createElementNS(
|
|
85961
|
+
const n = e.createElementNS(FH, "svg");
|
|
85970
85962
|
n.setAttribute("aria-hidden", "true"), n.style.cssText = "position:absolute;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none";
|
|
85971
|
-
const r = e.createElementNS(
|
|
85972
|
-
return n.append(r), e.body.append(n),
|
|
85963
|
+
const r = e.createElementNS(FH, "path");
|
|
85964
|
+
return n.append(r), e.body.append(n), BH.set(e, r), r;
|
|
85973
85965
|
}, _1t = (e, t) => {
|
|
85974
85966
|
const { panelRect: n, look: r, readGridLineWidth: o } = t, i = Dy(r);
|
|
85975
85967
|
switch (e.kind) {
|
|
@@ -86137,7 +86129,7 @@ var V1t = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
86137
86129
|
]);
|
|
86138
86130
|
const u = e !== null;
|
|
86139
86131
|
er(() => u ? () => o.getState().setSelectedOutline(null) : void 0, [o, u]);
|
|
86140
|
-
}, _N = "var(--outlineGrow__10buynz0)", j1t = "edit-outline_painter__10buynz1", Y1t = "edit-outline_shapes__10buynz2",
|
|
86132
|
+
}, _N = "var(--outlineGrow__10buynz0)", j1t = "edit-outline_painter__10buynz1", Y1t = "edit-outline_shapes__10buynz2", VH = ({ pathData: e, animateTransitions: t, source: n, ...r }) => t ? /* @__PURE__ */ m(K1t, {
|
|
86141
86133
|
pathData: e,
|
|
86142
86134
|
source: n,
|
|
86143
86135
|
...r
|
|
@@ -86324,7 +86316,7 @@ var V1t = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
86324
86316
|
a
|
|
86325
86317
|
]);
|
|
86326
86318
|
};
|
|
86327
|
-
var $
|
|
86319
|
+
var $H = (e, t) => {
|
|
86328
86320
|
if (e.kind === "observations" && t.kind === "observations") {
|
|
86329
86321
|
if (e.layerId !== t.layerId || e.scope !== t.scope) return !1;
|
|
86330
86322
|
const n = e.parts[0]?.rows[0];
|
|
@@ -86348,7 +86340,7 @@ var $9 = (e, t) => {
|
|
|
86348
86340
|
i,
|
|
86349
86341
|
a,
|
|
86350
86342
|
s
|
|
86351
|
-
]), c = ne(() => l !== null && e !== null && $
|
|
86343
|
+
]), c = ne(() => l !== null && e !== null && $H(l, e), [l, e]), u = qf(), d = o !== null && i !== void 0 && swt(o, i, n, u) ? o.observationIndex : null;
|
|
86352
86344
|
return ne(() => {
|
|
86353
86345
|
switch (r?.kind) {
|
|
86354
86346
|
case "observations": {
|
|
@@ -86375,7 +86367,7 @@ var $9 = (e, t) => {
|
|
|
86375
86367
|
key: uu(r.target),
|
|
86376
86368
|
target: r.target
|
|
86377
86369
|
};
|
|
86378
|
-
return e !== null && $
|
|
86370
|
+
return e !== null && $H(h, e) ? null : h;
|
|
86379
86371
|
}
|
|
86380
86372
|
default:
|
|
86381
86373
|
return null;
|
|
@@ -86527,11 +86519,11 @@ var $9 = (e, t) => {
|
|
|
86527
86519
|
r,
|
|
86528
86520
|
a,
|
|
86529
86521
|
s
|
|
86530
|
-
]), d = e.kind === "observations" ? e.parts : null, h = e.kind === "observations" ? e.vertex : null, f = ne(() => d?.map((g) =>
|
|
86522
|
+
]), d = e.kind === "observations" ? e.parts : null, h = e.kind === "observations" ? e.vertex : null, f = ne(() => d?.map((g) => HH(g, u, o)) ?? pwt, [
|
|
86531
86523
|
d,
|
|
86532
86524
|
u,
|
|
86533
86525
|
o
|
|
86534
|
-
]), p = ne(() => h === null ? null :
|
|
86526
|
+
]), p = ne(() => h === null ? null : HH(h, u, !1), [h, u]);
|
|
86535
86527
|
return ne(() => {
|
|
86536
86528
|
switch (e.kind) {
|
|
86537
86529
|
case "observations":
|
|
@@ -86574,7 +86566,7 @@ var $9 = (e, t) => {
|
|
|
86574
86566
|
t.width,
|
|
86575
86567
|
t.height
|
|
86576
86568
|
]), n;
|
|
86577
|
-
},
|
|
86569
|
+
}, HH = ({ layer: e, rows: t }, { coordSystem: n, panelRect: r, resolveRenderer: o, geomReaders: i }, a) => {
|
|
86578
86570
|
const s = {
|
|
86579
86571
|
...e,
|
|
86580
86572
|
data: e.data.take(t)
|
|
@@ -86813,7 +86805,7 @@ var $9 = (e, t) => {
|
|
|
86813
86805
|
layer: s.layer,
|
|
86814
86806
|
coordSystem: o,
|
|
86815
86807
|
panelSize: n,
|
|
86816
|
-
children: /* @__PURE__ */ m(
|
|
86808
|
+
children: /* @__PURE__ */ m(zH, {
|
|
86817
86809
|
part: s,
|
|
86818
86810
|
borderRadius: i,
|
|
86819
86811
|
dashPeriod: a
|
|
@@ -86822,7 +86814,7 @@ var $9 = (e, t) => {
|
|
|
86822
86814
|
layer: e.vertex.layer,
|
|
86823
86815
|
coordSystem: o,
|
|
86824
86816
|
panelSize: n,
|
|
86825
|
-
children: /* @__PURE__ */ m(
|
|
86817
|
+
children: /* @__PURE__ */ m(zH, {
|
|
86826
86818
|
part: e.vertex,
|
|
86827
86819
|
borderRadius: i,
|
|
86828
86820
|
dashPeriod: a
|
|
@@ -86839,7 +86831,7 @@ var $9 = (e, t) => {
|
|
|
86839
86831
|
case "graph":
|
|
86840
86832
|
return /* @__PURE__ */ m("path", { d: Cwt(e.frameSize, r, t) });
|
|
86841
86833
|
}
|
|
86842
|
-
},
|
|
86834
|
+
}, zH = lo(function({ part: t, borderRadius: n, dashPeriod: r }) {
|
|
86843
86835
|
return t.kind === "boxes" ? /* @__PURE__ */ m(Mwt, {
|
|
86844
86836
|
boxes: t.boxes,
|
|
86845
86837
|
borderRadius: n
|
|
@@ -86852,7 +86844,7 @@ var $9 = (e, t) => {
|
|
|
86852
86844
|
const i = r.kind === "dots" || r.key === void 0 ? String(o) : `${r.kind}:${r.key}`;
|
|
86853
86845
|
switch (r.kind) {
|
|
86854
86846
|
case "region":
|
|
86855
|
-
return r.pathData === "" ? null : /* @__PURE__ */ m(
|
|
86847
|
+
return r.pathData === "" ? null : /* @__PURE__ */ m(VH, {
|
|
86856
86848
|
pathData: r.pathData,
|
|
86857
86849
|
fillRule: r.fillRule,
|
|
86858
86850
|
animateTransitions: r.animateTransitions ?? !1,
|
|
@@ -86860,7 +86852,7 @@ var $9 = (e, t) => {
|
|
|
86860
86852
|
"data-geom": t.geom
|
|
86861
86853
|
}, i);
|
|
86862
86854
|
case "stroke":
|
|
86863
|
-
return r.pathData === "" ? null : /* @__PURE__ */ m(
|
|
86855
|
+
return r.pathData === "" ? null : /* @__PURE__ */ m(VH, {
|
|
86864
86856
|
pathData: r.pathData,
|
|
86865
86857
|
animateTransitions: r.animateTransitions ?? !1,
|
|
86866
86858
|
source: t,
|
|
@@ -87344,8 +87336,8 @@ var $9 = (e, t) => {
|
|
|
87344
87336
|
to: t + e.to * n
|
|
87345
87337
|
}), ON = ["start", "end"], iSt = ({ anchor: e, point: t, delta: n, bounds: r = ql }) => {
|
|
87346
87338
|
const o = {
|
|
87347
|
-
x:
|
|
87348
|
-
y:
|
|
87339
|
+
x: WH(t.x, n.x, r.minX, r.maxX),
|
|
87340
|
+
y: WH(t.y, n.y, r.minY, r.maxY)
|
|
87349
87341
|
};
|
|
87350
87342
|
return {
|
|
87351
87343
|
anchor: {
|
|
@@ -87367,7 +87359,7 @@ var $9 = (e, t) => {
|
|
|
87367
87359
|
...Ga(t.placement.point, n)
|
|
87368
87360
|
}
|
|
87369
87361
|
};
|
|
87370
|
-
},
|
|
87362
|
+
}, GH = (e, t, n) => ({
|
|
87371
87363
|
type: "free",
|
|
87372
87364
|
anchor: e,
|
|
87373
87365
|
sourceAlign: null,
|
|
@@ -87387,7 +87379,7 @@ var $9 = (e, t) => {
|
|
|
87387
87379
|
width: Math.abs(o.x - r.x),
|
|
87388
87380
|
height: Math.abs(o.y - r.y)
|
|
87389
87381
|
};
|
|
87390
|
-
},
|
|
87382
|
+
}, WH = (e, t, n, r) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Fr(t, Math.min(n - e, 0), Math.max(r - e, 0)), oA = ({ stroke: e, strokeAlpha: t }) => `color-mix(in srgb, ${e} ${t * 100}%, transparent)`, kde = (e, t, n, r) => {
|
|
87391
87383
|
const o = e.textAnnotations.find((i) => i.id === t);
|
|
87392
87384
|
return o === void 0 ? null : pre(Tre(o, n), r);
|
|
87393
87385
|
}, lSt = "var(--outlineStroke__u2923n0)";
|
|
@@ -87405,7 +87397,7 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
87405
87397
|
},
|
|
87406
87398
|
measuredBoxes: n,
|
|
87407
87399
|
readers: r
|
|
87408
|
-
}, d = i !== null && gO(i) !== null, h = d ? DO(t, t, i, e) : t, f =
|
|
87400
|
+
}, d = i !== null && gO(i) !== null, h = d ? DO(t, t, i, e) : t, f = UH(h, o, u), p = UH(h, c === o ? null : c, u), g = (y) => {
|
|
87409
87401
|
if (a?.annotationId === y.id) {
|
|
87410
87402
|
const b = a.annotationKind === "shape" ? r.annotation.shape(y.id).get("strokeWidth") : 0;
|
|
87411
87403
|
return OO(a.region, b, u.panel);
|
|
@@ -87423,25 +87415,25 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
87423
87415
|
y: e.y + b.y
|
|
87424
87416
|
};
|
|
87425
87417
|
};
|
|
87426
|
-
return /* @__PURE__ */ $(Re, { children: [p !== null && /* @__PURE__ */ m(
|
|
87418
|
+
return /* @__PURE__ */ $(Re, { children: [p !== null && /* @__PURE__ */ m(jH, {
|
|
87427
87419
|
annotationId: p.id,
|
|
87428
87420
|
geometry: g(p),
|
|
87429
87421
|
state: "hovered",
|
|
87430
87422
|
origin: v(p.id)
|
|
87431
|
-
}), f !== null && /* @__PURE__ */ m(
|
|
87423
|
+
}), f !== null && /* @__PURE__ */ m(jH, {
|
|
87432
87424
|
annotationId: f.id,
|
|
87433
87425
|
geometry: g(f),
|
|
87434
87426
|
state: "selected",
|
|
87435
87427
|
origin: v(f.id)
|
|
87436
87428
|
})] });
|
|
87437
|
-
},
|
|
87429
|
+
}, UH = (e, t, n) => {
|
|
87438
87430
|
if (t === null) return null;
|
|
87439
87431
|
const r = dQe(e, t, n);
|
|
87440
87432
|
return r === null ? null : {
|
|
87441
87433
|
id: t,
|
|
87442
87434
|
geometry: r
|
|
87443
87435
|
};
|
|
87444
|
-
},
|
|
87436
|
+
}, jH = ({ annotationId: e, geometry: t, state: n, origin: r }) => {
|
|
87445
87437
|
const o = Fe();
|
|
87446
87438
|
if (t === null) return null;
|
|
87447
87439
|
const i = o.editOutline[n === "hovered" ? "hover" : "selected"]().resolve(), a = (0, Po.assignInlineVars)({ [lSt]: oA(i) });
|
|
@@ -87451,10 +87443,10 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
87451
87443
|
"data-annotation-id": e,
|
|
87452
87444
|
"data-state": n,
|
|
87453
87445
|
style: a,
|
|
87454
|
-
children: [/* @__PURE__ */ m(
|
|
87446
|
+
children: [/* @__PURE__ */ m(YH, {
|
|
87455
87447
|
point: t.start,
|
|
87456
87448
|
origin: r
|
|
87457
|
-
}), /* @__PURE__ */ m(
|
|
87449
|
+
}), /* @__PURE__ */ m(YH, {
|
|
87458
87450
|
point: t.end,
|
|
87459
87451
|
origin: r
|
|
87460
87452
|
})]
|
|
@@ -87472,7 +87464,7 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
87472
87464
|
height: t.rect.height + 4
|
|
87473
87465
|
}
|
|
87474
87466
|
});
|
|
87475
|
-
},
|
|
87467
|
+
}, YH = ({ point: e, origin: t }) => /* @__PURE__ */ m("span", {
|
|
87476
87468
|
className: uSt,
|
|
87477
87469
|
style: {
|
|
87478
87470
|
left: t.x + e.x,
|
|
@@ -88016,7 +88008,7 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
88016
88008
|
value: vA.thick,
|
|
88017
88009
|
key: "graph.annotations.arrowToolbar.thickness.thick"
|
|
88018
88010
|
}
|
|
88019
|
-
],
|
|
88011
|
+
], KH = [{
|
|
88020
88012
|
value: "lineArrow",
|
|
88021
88013
|
key: "graph.annotations.arrowToolbar.arrowhead.lineArrow",
|
|
88022
88014
|
Icon: Ide
|
|
@@ -88024,7 +88016,7 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
88024
88016
|
value: "none",
|
|
88025
88017
|
key: "graph.annotations.arrowToolbar.arrowhead.none",
|
|
88026
88018
|
Icon: MO
|
|
88027
|
-
}],
|
|
88019
|
+
}], qH = [
|
|
88028
88020
|
{
|
|
88029
88021
|
value: "solid",
|
|
88030
88022
|
key: "graph.annotations.arrowToolbar.lineStyle.solid",
|
|
@@ -88042,7 +88034,7 @@ var cSt = "annotation-chrome_box__u2923n1", uSt = "annotation-chrome_endpoint__u
|
|
|
88042
88034
|
}
|
|
88043
88035
|
], JSt = (e, t) => e.find((n) => n.value === t) ?? e[0];
|
|
88044
88036
|
var ZSt = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o, frameElement: i }) => {
|
|
88045
|
-
const a = Pe(), { commands: s } = ze(), l = be((P) => P.spec.styles.overrides), c = be((P) => Vt(P.spec)), u = Ny(), d = _S(Fe(), e.id), h = JSt(
|
|
88037
|
+
const a = Pe(), { commands: s } = ze(), l = be((P) => P.spec.styles.overrides), c = be((P) => Vt(P.spec)), u = Ny(), d = _S(Fe(), e.id), h = JSt(qH, Vs(d.dashArray)), f = d.outline.strokeWidth > 0 || d.outline.shadow !== "none", p = ne(() => ({
|
|
88046
88038
|
target: "annotation",
|
|
88047
88039
|
kind: "arrow",
|
|
88048
88040
|
annotation: e.id
|
|
@@ -88123,7 +88115,7 @@ var ZSt = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o,
|
|
|
88123
88115
|
}),
|
|
88124
88116
|
...u.bind("startArrowhead"),
|
|
88125
88117
|
children: /* @__PURE__ */ m(ib, {
|
|
88126
|
-
options:
|
|
88118
|
+
options: KH,
|
|
88127
88119
|
current: e.startArrowheadStyle,
|
|
88128
88120
|
onPick: C
|
|
88129
88121
|
})
|
|
@@ -88136,7 +88128,7 @@ var ZSt = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o,
|
|
|
88136
88128
|
}),
|
|
88137
88129
|
...u.bind("lineStyle"),
|
|
88138
88130
|
children: /* @__PURE__ */ m(ib, {
|
|
88139
|
-
options:
|
|
88131
|
+
options: qH,
|
|
88140
88132
|
current: Vs(d.dashArray),
|
|
88141
88133
|
onPick: x
|
|
88142
88134
|
})
|
|
@@ -88149,7 +88141,7 @@ var ZSt = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o,
|
|
|
88149
88141
|
}),
|
|
88150
88142
|
...u.bind("endArrowhead"),
|
|
88151
88143
|
children: /* @__PURE__ */ m(ib, {
|
|
88152
|
-
options:
|
|
88144
|
+
options: KH,
|
|
88153
88145
|
current: e.endArrowheadStyle,
|
|
88154
88146
|
onPick: k
|
|
88155
88147
|
})
|
|
@@ -88239,8 +88231,8 @@ var ZSt = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o,
|
|
|
88239
88231
|
};
|
|
88240
88232
|
return Zh(VW(e), r, i, n);
|
|
88241
88233
|
}, Ode = (e, t, n, r = ql) => ({
|
|
88242
|
-
x:
|
|
88243
|
-
y:
|
|
88234
|
+
x: XH(e.x, e.width, t.x, r.minX * n.width, r.maxX * n.width),
|
|
88235
|
+
y: XH(e.y, e.height, t.y, r.minY * n.height, r.maxY * n.height)
|
|
88244
88236
|
}), VN = ({ rect: e, panelRect: t, bounds: n, layers: r, readObservationBox: o, mayEnclose: i }) => i ? xOe({
|
|
88245
88237
|
rect: e,
|
|
88246
88238
|
layers: r,
|
|
@@ -88252,7 +88244,7 @@ var ZSt = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: o,
|
|
|
88252
88244
|
type: "free",
|
|
88253
88245
|
region: Qh(e, t),
|
|
88254
88246
|
rect: e
|
|
88255
|
-
},
|
|
88247
|
+
}, XH = (e, t, n, r, o) => {
|
|
88256
88248
|
if (!Number.isFinite(n) || !Number.isFinite(e)) return 0;
|
|
88257
88249
|
const i = Math.min(r - e, 0), a = Math.max(o - (e + t), 0);
|
|
88258
88250
|
return Math.min(Math.max(n, i), a);
|
|
@@ -88412,7 +88404,7 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88412
88404
|
"topRight",
|
|
88413
88405
|
"bottomLeft",
|
|
88414
88406
|
"bottomRight"
|
|
88415
|
-
], wP = ["center", ...$N],
|
|
88407
|
+
], wP = ["center", ...$N], JH = (e, t, n) => {
|
|
88416
88408
|
const r = {
|
|
88417
88409
|
...e,
|
|
88418
88410
|
x: e.x + n.x,
|
|
@@ -88433,7 +88425,7 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88433
88425
|
});
|
|
88434
88426
|
}
|
|
88435
88427
|
return o;
|
|
88436
|
-
},
|
|
88428
|
+
}, ZH = (e, t, n, r) => {
|
|
88437
88429
|
const o = Wo(t, e.sourceAlign ?? n);
|
|
88438
88430
|
return {
|
|
88439
88431
|
x: vt(e.point.x - o.x, r.width),
|
|
@@ -88588,11 +88580,11 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88588
88580
|
placement: A
|
|
88589
88581
|
};
|
|
88590
88582
|
}
|
|
88591
|
-
const b = Jm(p.region) ? p.region : null, S = b?.regionAlign ?? "center", w = b === null ? null : _de(b, g, c), T = this.resolvePlacement(
|
|
88583
|
+
const b = Jm(p.region) ? p.region : null, S = b?.regionAlign ?? "center", w = b === null ? null : _de(b, g, c), T = this.resolvePlacement(JH(g, S, y), Wo(g, S), w, n, r, { targetAligns: wP });
|
|
88592
88584
|
return T === null ? null : {
|
|
88593
88585
|
kind: "move-drag",
|
|
88594
88586
|
annotationId: o,
|
|
88595
|
-
translation:
|
|
88587
|
+
translation: ZH(T, g, S, c),
|
|
88596
88588
|
placement: T
|
|
88597
88589
|
};
|
|
88598
88590
|
}
|
|
@@ -88639,11 +88631,11 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88639
88631
|
const d = Bs(u, s), h = {
|
|
88640
88632
|
x: t.x - i.x,
|
|
88641
88633
|
y: t.y - i.y
|
|
88642
|
-
}, f = this.resolvePlacement(
|
|
88634
|
+
}, f = this.resolvePlacement(JH(d, e.align, h), Wo(d, e.align), Zh(e.at, e.align, c.at, s), n, r, { targetAligns: wP });
|
|
88643
88635
|
return f === null ? null : {
|
|
88644
88636
|
kind: "move-drag",
|
|
88645
88637
|
annotationId: o,
|
|
88646
|
-
translation:
|
|
88638
|
+
translation: ZH(f, d, e.align, s),
|
|
88647
88639
|
placement: f
|
|
88648
88640
|
};
|
|
88649
88641
|
}
|
|
@@ -88875,7 +88867,7 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88875
88867
|
i,
|
|
88876
88868
|
o
|
|
88877
88869
|
]);
|
|
88878
|
-
}, uTt = [" ", "Enter"],
|
|
88870
|
+
}, uTt = [" ", "Enter"], QH = 4, dTt = ({ annotationId: e, arrow: t, panelRect: n, frameElement: r }) => {
|
|
88879
88871
|
const { commands: o } = ze(), i = fn(), a = be((c) => c.spec.annotations), s = Zt(a), l = Zt(o.dispatch);
|
|
88880
88872
|
return me(() => () => {
|
|
88881
88873
|
for (const c of ON) ez({
|
|
@@ -88911,7 +88903,7 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88911
88903
|
kind: "arrow-endpoint-drag",
|
|
88912
88904
|
annotationId: e,
|
|
88913
88905
|
endpoint: c,
|
|
88914
|
-
placement:
|
|
88906
|
+
placement: GH(y, t[c], n)
|
|
88915
88907
|
});
|
|
88916
88908
|
return;
|
|
88917
88909
|
}
|
|
@@ -88931,7 +88923,7 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88931
88923
|
kind: "arrow-endpoint-drag",
|
|
88932
88924
|
annotationId: e,
|
|
88933
88925
|
endpoint: c,
|
|
88934
|
-
placement:
|
|
88926
|
+
placement: GH(g, v, n)
|
|
88935
88927
|
});
|
|
88936
88928
|
} }), [
|
|
88937
88929
|
e,
|
|
@@ -88953,7 +88945,7 @@ var Is = (e, t) => t ? e.altKey : !e.altKey, oTt = (e, t) => Math.hypot(t.x - e.
|
|
|
88953
88945
|
patch: Nde(n, a.placement.anchor)
|
|
88954
88946
|
}));
|
|
88955
88947
|
}, hTt = (e, t) => {
|
|
88956
|
-
const n = vt(
|
|
88948
|
+
const n = vt(QH, t.width), r = vt(QH, t.height);
|
|
88957
88949
|
switch (e) {
|
|
88958
88950
|
case "ArrowLeft":
|
|
88959
88951
|
return {
|
|
@@ -95422,7 +95414,7 @@ var WMt = (e) => [...new Set(e)], UMt = (e) => ({
|
|
|
95422
95414
|
stickers: e.stickers.length,
|
|
95423
95415
|
pinnedNumbers: e.pinnedNumbers.length,
|
|
95424
95416
|
comments: e.comments.length
|
|
95425
|
-
}), jMt = "https://3b76a42331a1e27a2adb223278bf1b48@o4505108638597120.ingest.us.sentry.io/4512260250992640", YMt = "1.9.0-beta.
|
|
95417
|
+
}), jMt = "https://3b76a42331a1e27a2adb223278bf1b48@o4505108638597120.ingest.us.sentry.io/4512260250992640", YMt = "1.9.0-beta.1795532892391", KMt = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
|
|
95426
95418
|
function khe() {
|
|
95427
95419
|
return jMt;
|
|
95428
95420
|
}
|