@scbt-ecom/ui 0.89.0 → 0.89.2
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/api.js.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index-Bu5RfW_Z.js.map +1 -1
- package/dist/{index-BFZfRLgg.js → index-DM5UjNZl.js} +506 -506
- package/dist/{index-BFZfRLgg.js.map → index-DM5UjNZl.js.map} +1 -1
- package/dist/lib/shared/ui/chips/Chips.d.ts +11 -0
- package/dist/lib/shared/ui/chips/index.d.ts +1 -0
- package/dist/lib/shared/ui/index.d.ts +1 -0
- package/dist/lib/widgets/model/helpers.d.ts +2 -1
- package/dist/lib/widgets/userFeedback/UserFeedback.d.ts +1 -0
- package/dist/lib/widgets/userFeedback/ui/Success.d.ts +0 -2
- package/dist/mergeRefs-Danc3mp8.js.map +1 -1
- package/dist/next.js.map +1 -1
- package/dist/renderImage-ViVSYcgG.js.map +1 -1
- package/dist/typeGuards-BHbj394R.js.map +1 -1
- package/dist/ui.js +349 -334
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-5MeprqTX.js.map +1 -1
- package/dist/useFieldsProgress-C918amw-.js.map +1 -1
- package/dist/utils-BAhmwXLC.js.map +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +361 -356
- package/dist/widget.js.map +1 -1
- package/package.json +3 -2
|
@@ -2,13 +2,13 @@ var qg = (t) => {
|
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
4
|
var Hd = (t, e, n) => e.has(t) || qg("Cannot " + n);
|
|
5
|
-
var le = (t, e, n) => (Hd(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ge = (t, e, n) => e.has(t) ? qg("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n),
|
|
6
|
-
import { j as T, m as
|
|
5
|
+
var le = (t, e, n) => (Hd(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ge = (t, e, n) => e.has(t) ? qg("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Re = (t, e, n, r) => (Hd(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), tt = (t, e, n) => (Hd(t, e, "access private method"), n);
|
|
6
|
+
import { j as T, m as Wo } from "./mergeRefs-Danc3mp8.js";
|
|
7
7
|
import { c as Z, a as e3, T as yp } from "./typeGuards-BHbj394R.js";
|
|
8
8
|
import * as k from "react";
|
|
9
|
-
import ie, { forwardRef as nt, createContext as vt, useContext as Be, useCallback as we, useRef as xe, useLayoutEffect as Ni, useState as Te, useEffect as Pe, useMemo as
|
|
9
|
+
import ie, { forwardRef as nt, createContext as vt, useContext as Be, useCallback as we, useRef as xe, useLayoutEffect as Ni, useState as Te, useEffect as Pe, useMemo as Ne, useId as Bt, useInsertionEffect as t3, Children as Q7, isValidElement as n3, Fragment as Hn, createElement as mm, Component as e8, cloneElement as t8, useReducer as r3, useSyncExternalStore as n8, memo as i3, useImperativeHandle as r8, useDebugValue as o3 } from "react";
|
|
10
10
|
import * as Za from "react-dom";
|
|
11
|
-
import s3, { createPortal as
|
|
11
|
+
import s3, { createPortal as Po, flushSync as mi } from "react-dom";
|
|
12
12
|
import { u as gm, a as Tl, h as xn, e as i8, b as o8 } from "./useDebounce-5MeprqTX.js";
|
|
13
13
|
import { g as a3 } from "./_commonjsHelpers-C6fGbg64.js";
|
|
14
14
|
import { aU as Mt, aV as qn, aW as Kg, aX as s8, aY as l3, aZ as c3, a_ as u3, a$ as d3, b0 as a8, b1 as l8, b2 as vm, i as ym, b3 as c8, b4 as u8, b5 as d8, b6 as f8, b7 as bp, b8 as p8, b9 as h8, ba as Bd, bb as oa, bc as sa, bd as m8, aR as f3, aS as p3, aT as Zi, aQ as Ma, p as h3, aP as $d, au as g8, a2 as v8, s as y8 } from "./utils-BAhmwXLC.js";
|
|
@@ -26,7 +26,7 @@ function m3(t, e, n) {
|
|
|
26
26
|
i
|
|
27
27
|
), r);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Uo(t, ...e) {
|
|
30
30
|
const n = qn.bind(
|
|
31
31
|
null,
|
|
32
32
|
t || e.find((r) => typeof r == "object")
|
|
@@ -38,7 +38,7 @@ function Ga(t, e) {
|
|
|
38
38
|
return n.setHours(0, 0, 0, 0), n;
|
|
39
39
|
}
|
|
40
40
|
function g3(t, e, n) {
|
|
41
|
-
const [r, i] =
|
|
41
|
+
const [r, i] = Uo(
|
|
42
42
|
n == null ? void 0 : n.in,
|
|
43
43
|
t,
|
|
44
44
|
e
|
|
@@ -68,7 +68,7 @@ function C8(t, e) {
|
|
|
68
68
|
}), qn(r, n || NaN);
|
|
69
69
|
}
|
|
70
70
|
function k8(t, e, n) {
|
|
71
|
-
const [r, i] =
|
|
71
|
+
const [r, i] = Uo(
|
|
72
72
|
n == null ? void 0 : n.in,
|
|
73
73
|
t,
|
|
74
74
|
e
|
|
@@ -76,7 +76,7 @@ function k8(t, e, n) {
|
|
|
76
76
|
return +Ga(r) == +Ga(i);
|
|
77
77
|
}
|
|
78
78
|
function S8(t, e, n) {
|
|
79
|
-
const [r, i] =
|
|
79
|
+
const [r, i] = Uo(
|
|
80
80
|
n == null ? void 0 : n.in,
|
|
81
81
|
t,
|
|
82
82
|
e
|
|
@@ -88,7 +88,7 @@ function E8(t, e) {
|
|
|
88
88
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
89
89
|
}
|
|
90
90
|
function M8(t, e) {
|
|
91
|
-
const [n, r] =
|
|
91
|
+
const [n, r] = Uo(t, e.start, e.end);
|
|
92
92
|
return { start: n, end: r };
|
|
93
93
|
}
|
|
94
94
|
function O8(t, e) {
|
|
@@ -184,7 +184,7 @@ const Xr = {
|
|
|
184
184
|
);
|
|
185
185
|
return et(i, e.length);
|
|
186
186
|
}
|
|
187
|
-
},
|
|
187
|
+
}, es = {
|
|
188
188
|
midnight: "midnight",
|
|
189
189
|
noon: "noon",
|
|
190
190
|
morning: "morning",
|
|
@@ -574,7 +574,7 @@ const Xr = {
|
|
|
574
574
|
b: function(t, e, n) {
|
|
575
575
|
const r = t.getHours();
|
|
576
576
|
let i;
|
|
577
|
-
switch (r === 12 ? i =
|
|
577
|
+
switch (r === 12 ? i = es.noon : r === 0 ? i = es.midnight : i = r / 12 >= 1 ? "pm" : "am", e) {
|
|
578
578
|
case "b":
|
|
579
579
|
case "bb":
|
|
580
580
|
return n.dayPeriod(i, {
|
|
@@ -603,7 +603,7 @@ const Xr = {
|
|
|
603
603
|
B: function(t, e, n) {
|
|
604
604
|
const r = t.getHours();
|
|
605
605
|
let i;
|
|
606
|
-
switch (r >= 17 ? i =
|
|
606
|
+
switch (r >= 17 ? i = es.evening : r >= 12 ? i = es.afternoon : r >= 4 ? i = es.morning : i = es.night, e) {
|
|
607
607
|
case "B":
|
|
608
608
|
case "BB":
|
|
609
609
|
case "BBB":
|
|
@@ -819,7 +819,7 @@ function $8(t, e) {
|
|
|
819
819
|
return +Mt(t) < +Mt(e);
|
|
820
820
|
}
|
|
821
821
|
function Qg(t, e, n) {
|
|
822
|
-
const [r, i] =
|
|
822
|
+
const [r, i] = Uo(
|
|
823
823
|
n == null ? void 0 : n.in,
|
|
824
824
|
t,
|
|
825
825
|
e
|
|
@@ -827,7 +827,7 @@ function Qg(t, e, n) {
|
|
|
827
827
|
return +bp(r, n) == +bp(i, n);
|
|
828
828
|
}
|
|
829
829
|
function z8(t, e, n) {
|
|
830
|
-
const [r, i] =
|
|
830
|
+
const [r, i] = Uo(
|
|
831
831
|
n == null ? void 0 : n.in,
|
|
832
832
|
t,
|
|
833
833
|
e
|
|
@@ -835,7 +835,7 @@ function z8(t, e, n) {
|
|
|
835
835
|
return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
|
|
836
836
|
}
|
|
837
837
|
function W8(t, e, n) {
|
|
838
|
-
const [r, i] =
|
|
838
|
+
const [r, i] = Uo(
|
|
839
839
|
n == null ? void 0 : n.in,
|
|
840
840
|
t,
|
|
841
841
|
e
|
|
@@ -1532,18 +1532,18 @@ function CC(t) {
|
|
|
1532
1532
|
return ie.createElement("div", { ...t });
|
|
1533
1533
|
}
|
|
1534
1534
|
const T3 = vt(void 0);
|
|
1535
|
-
function
|
|
1535
|
+
function Zo() {
|
|
1536
1536
|
const t = Be(T3);
|
|
1537
1537
|
if (t === void 0)
|
|
1538
1538
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
1539
1539
|
return t;
|
|
1540
1540
|
}
|
|
1541
1541
|
function kC(t) {
|
|
1542
|
-
const { components: e } =
|
|
1542
|
+
const { components: e } = Zo();
|
|
1543
1543
|
return ie.createElement(e.Dropdown, { ...t });
|
|
1544
1544
|
}
|
|
1545
1545
|
function SC(t) {
|
|
1546
|
-
const { onPreviousClick: e, onNextClick: n, previousMonth: r, nextMonth: i, ...o } = t, { components: s, classNames: a, labels: { labelPrevious: l, labelNext: c } } =
|
|
1546
|
+
const { onPreviousClick: e, onNextClick: n, previousMonth: r, nextMonth: i, ...o } = t, { components: s, classNames: a, labels: { labelPrevious: l, labelNext: c } } = Zo(), u = we((f) => {
|
|
1547
1547
|
i && (n == null || n(f));
|
|
1548
1548
|
}, [i, n]), d = we((f) => {
|
|
1549
1549
|
r && (e == null || e(f));
|
|
@@ -1564,14 +1564,14 @@ function SC(t) {
|
|
|
1564
1564
|
);
|
|
1565
1565
|
}
|
|
1566
1566
|
function EC(t) {
|
|
1567
|
-
const { components: e } =
|
|
1567
|
+
const { components: e } = Zo();
|
|
1568
1568
|
return ie.createElement(e.Button, { ...t });
|
|
1569
1569
|
}
|
|
1570
1570
|
function MC(t) {
|
|
1571
1571
|
return ie.createElement("option", { ...t });
|
|
1572
1572
|
}
|
|
1573
1573
|
function OC(t) {
|
|
1574
|
-
const { components: e } =
|
|
1574
|
+
const { components: e } = Zo();
|
|
1575
1575
|
return ie.createElement(e.Button, { ...t });
|
|
1576
1576
|
}
|
|
1577
1577
|
function TC(t) {
|
|
@@ -1606,7 +1606,7 @@ function LC(t) {
|
|
|
1606
1606
|
return ie.createElement("tbody", { ...t });
|
|
1607
1607
|
}
|
|
1608
1608
|
function VC(t) {
|
|
1609
|
-
const { components: e } =
|
|
1609
|
+
const { components: e } = Zo();
|
|
1610
1610
|
return ie.createElement(e.Dropdown, { ...t });
|
|
1611
1611
|
}
|
|
1612
1612
|
const jC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2156,7 +2156,7 @@ function Lk(t) {
|
|
|
2156
2156
|
from: e.selected.from ? new en(e.selected.from, e.timeZone) : void 0,
|
|
2157
2157
|
to: e.selected.to ? new en(e.selected.to, e.timeZone) : void 0
|
|
2158
2158
|
}));
|
|
2159
|
-
const { components: n, formatters: r, labels: i, dateLib: o, locale: s, classNames: a } =
|
|
2159
|
+
const { components: n, formatters: r, labels: i, dateLib: o, locale: s, classNames: a } = Ne(() => {
|
|
2160
2160
|
const Ae = { ...vm, ...e.locale };
|
|
2161
2161
|
return {
|
|
2162
2162
|
dateLib: new Zr({
|
|
@@ -2188,7 +2188,7 @@ function Lk(t) {
|
|
|
2188
2188
|
e.formatters,
|
|
2189
2189
|
e.labels,
|
|
2190
2190
|
e.classNames
|
|
2191
|
-
]), { captionLayout: l, mode: c, navLayout: u, numberOfMonths: d = 1, onDayBlur: f, onDayClick: p, onDayFocus: m, onDayKeyDown: h, onDayMouseEnter: g, onDayMouseLeave: v, onNextClick: y, onPrevClick: w, showWeekNumber: x, styles: b } = e, { formatCaption: C, formatDay: E, formatMonthDropdown: S, formatWeekNumber: O, formatWeekNumberHeader: M, formatWeekdayName: A, formatYearDropdown: D } = r, R = Sk(e, o), { days: I, months: j, navStart: V, navEnd: L, previousMonth: F, nextMonth: z, goToMonth: P } = R, N = cC(I, e, o), { isSelected: $, select: _, selected: H } = Ik(e, o) ?? {}, { blur: G, focused: U, isFocusTarget: J, moveFocus: W, setFocused: q } = Ok(e, R, N, $ ?? (() => !1), o), { labelDayButton: ee, labelGridcell: ne, labelGrid: B, labelMonthDropdown: ae, labelNav: X, labelPrevious: se, labelNext: pe, labelWeekday: re, labelWeekNumber: ue, labelWeekNumberHeader: ce, labelYearDropdown: ge } = i, oe =
|
|
2191
|
+
]), { captionLayout: l, mode: c, navLayout: u, numberOfMonths: d = 1, onDayBlur: f, onDayClick: p, onDayFocus: m, onDayKeyDown: h, onDayMouseEnter: g, onDayMouseLeave: v, onNextClick: y, onPrevClick: w, showWeekNumber: x, styles: b } = e, { formatCaption: C, formatDay: E, formatMonthDropdown: S, formatWeekNumber: O, formatWeekNumberHeader: M, formatWeekdayName: A, formatYearDropdown: D } = r, R = Sk(e, o), { days: I, months: j, navStart: V, navEnd: L, previousMonth: F, nextMonth: z, goToMonth: P } = R, N = cC(I, e, o), { isSelected: $, select: _, selected: H } = Ik(e, o) ?? {}, { blur: G, focused: U, isFocusTarget: J, moveFocus: W, setFocused: q } = Ok(e, R, N, $ ?? (() => !1), o), { labelDayButton: ee, labelGridcell: ne, labelGrid: B, labelMonthDropdown: ae, labelNav: X, labelPrevious: se, labelNext: pe, labelWeekday: re, labelWeekNumber: ue, labelWeekNumberHeader: ce, labelYearDropdown: ge } = i, oe = Ne(() => XC(o, e.ISOWeek), [o, e.ISOWeek]), K = c !== void 0 || p !== void 0, te = we(() => {
|
|
2192
2192
|
F && (P(F), w == null || w(F));
|
|
2193
2193
|
}, [F, P, w]), Y = we(() => {
|
|
2194
2194
|
z && (P(z), y == null || y(z));
|
|
@@ -2225,7 +2225,7 @@ function Lk(t) {
|
|
|
2225
2225
|
}, [o, P]), _e = we((Ae) => (ke) => {
|
|
2226
2226
|
const $e = Number(ke.target.value), Ke = o.setYear(o.startOfMonth(Ae), $e);
|
|
2227
2227
|
P(Ke);
|
|
2228
|
-
}, [o, P]), { className: lt, style: Pt } =
|
|
2228
|
+
}, [o, P]), { className: lt, style: Pt } = Ne(() => ({
|
|
2229
2229
|
className: [a[Se.Root], e.className].filter(Boolean).join(" "),
|
|
2230
2230
|
style: { ...b == null ? void 0 : b[Se.Root], ...e.style }
|
|
2231
2231
|
}), [a, e.className, e.style, b]), mn = _C(e), Kt = xe(null);
|
|
@@ -2976,7 +2976,7 @@ const Wk = {
|
|
|
2976
2976
|
}
|
|
2977
2977
|
);
|
|
2978
2978
|
}, wS = ({ render: t, ...e }) => /* @__PURE__ */ T.jsx("div", { className: "flex justify-end border-t-[1px] border-warm-grey-200 pt-2", children: t(e) }), CS = ({ className: t, ...e }) => {
|
|
2979
|
-
const { previousMonth: n, nextMonth: r, goToMonth: i } =
|
|
2979
|
+
const { previousMonth: n, nextMonth: r, goToMonth: i } = Zo(), o = () => {
|
|
2980
2980
|
n && i(n);
|
|
2981
2981
|
}, s = () => {
|
|
2982
2982
|
r && i(r);
|
|
@@ -3101,7 +3101,7 @@ const MS = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
|
3101
3101
|
if (!f)
|
|
3102
3102
|
return;
|
|
3103
3103
|
r && r();
|
|
3104
|
-
}, [a, r]), u =
|
|
3104
|
+
}, [a, r]), u = Ne(
|
|
3105
3105
|
() => ({
|
|
3106
3106
|
id: l,
|
|
3107
3107
|
initial: e,
|
|
@@ -3117,7 +3117,7 @@ const MS = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
|
3117
3117
|
*/
|
|
3118
3118
|
o ? [Math.random(), c] : [n, c]
|
|
3119
3119
|
);
|
|
3120
|
-
return
|
|
3120
|
+
return Ne(() => {
|
|
3121
3121
|
a.forEach((d, f) => a.set(f, !1));
|
|
3122
3122
|
}, [n]), k.useEffect(() => {
|
|
3123
3123
|
!n && !a.size && r && r();
|
|
@@ -3145,7 +3145,7 @@ function u0(t) {
|
|
|
3145
3145
|
}), e;
|
|
3146
3146
|
}
|
|
3147
3147
|
const Em = typeof window < "u", L3 = Em ? Ni : Pe, Mm = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1 }) => {
|
|
3148
|
-
const [a, l] = I3(s), c =
|
|
3148
|
+
const [a, l] = I3(s), c = Ne(() => u0(t), [t]), u = s && !a ? [] : c.map(Xl), d = xe(!0), f = xe(c), p = km(() => /* @__PURE__ */ new Map()), [m, h] = Te(c), [g, v] = Te(c);
|
|
3149
3149
|
L3(() => {
|
|
3150
3150
|
d.current = !1, f.current = c;
|
|
3151
3151
|
for (let x = 0; x < g.length; x++) {
|
|
@@ -3401,19 +3401,19 @@ function VS(t, e) {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
function jS(t) {
|
|
3403
3403
|
const { initial: e, animate: n } = VS(t, Be(qu));
|
|
3404
|
-
return
|
|
3404
|
+
return Ne(() => ({ initial: e, animate: n }), [p0(e), p0(n)]);
|
|
3405
3405
|
}
|
|
3406
3406
|
function p0(t) {
|
|
3407
3407
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3408
3408
|
}
|
|
3409
3409
|
const FS = Symbol.for("motionComponentSymbol");
|
|
3410
|
-
function
|
|
3410
|
+
function ds(t) {
|
|
3411
3411
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
3412
3412
|
}
|
|
3413
3413
|
function _S(t, e, n) {
|
|
3414
3414
|
return we(
|
|
3415
3415
|
(r) => {
|
|
3416
|
-
r && t.onMount && t.onMount(r), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) :
|
|
3416
|
+
r && t.onMount && t.onMount(r), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) : ds(n) && (n.current = r));
|
|
3417
3417
|
},
|
|
3418
3418
|
/**
|
|
3419
3419
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -3456,7 +3456,7 @@ function $S(t, e, n, r) {
|
|
|
3456
3456
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : $3(t.parent)), t.projection.setOptions({
|
|
3457
3457
|
layoutId: i,
|
|
3458
3458
|
layout: o,
|
|
3459
|
-
alwaysMeasureLayout: !!s || a &&
|
|
3459
|
+
alwaysMeasureLayout: !!s || a && ds(a),
|
|
3460
3460
|
visualElement: t,
|
|
3461
3461
|
/**
|
|
3462
3462
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -3646,7 +3646,7 @@ const Ks = [
|
|
|
3646
3646
|
"skew",
|
|
3647
3647
|
"skewX",
|
|
3648
3648
|
"skewY"
|
|
3649
|
-
],
|
|
3649
|
+
], Go = new Set(Ks), W3 = (t) => (e) => typeof e == "string" && e.startsWith(t), U3 = /* @__PURE__ */ W3("--"), XS = /* @__PURE__ */ W3("var(--"), Im = (t) => XS(t) ? QS.test(t.split("/*")[0].trim()) : !1, QS = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Z3 = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Br = (t, e, n) => n > e ? e : n < t ? t : n, Ys = {
|
|
3650
3650
|
test: (t) => typeof t == "number",
|
|
3651
3651
|
parse: parseFloat,
|
|
3652
3652
|
transform: (t) => t
|
|
@@ -3767,7 +3767,7 @@ function Vm(t, e, n) {
|
|
|
3767
3767
|
let s = !1, a = !1;
|
|
3768
3768
|
for (const l in e) {
|
|
3769
3769
|
const c = e[l];
|
|
3770
|
-
if (
|
|
3770
|
+
if (Go.has(l)) {
|
|
3771
3771
|
s = !0;
|
|
3772
3772
|
continue;
|
|
3773
3773
|
} else if (U3(l)) {
|
|
@@ -3873,7 +3873,7 @@ function dE(t) {
|
|
|
3873
3873
|
Object.assign(Fc, t);
|
|
3874
3874
|
}
|
|
3875
3875
|
function J3(t, { layout: e, layoutId: n }) {
|
|
3876
|
-
return
|
|
3876
|
+
return Go.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Fc[t] || t === "opacity");
|
|
3877
3877
|
}
|
|
3878
3878
|
function Hm(t, e, n) {
|
|
3879
3879
|
var r;
|
|
@@ -3913,7 +3913,7 @@ const y0 = ["x", "y", "width", "height", "cx", "cy", "r"], pE = {
|
|
|
3913
3913
|
let o = !!t.drag;
|
|
3914
3914
|
if (!o) {
|
|
3915
3915
|
for (const a in i)
|
|
3916
|
-
if (
|
|
3916
|
+
if (Go.has(a)) {
|
|
3917
3917
|
o = !0;
|
|
3918
3918
|
break;
|
|
3919
3919
|
}
|
|
@@ -3944,7 +3944,7 @@ function Q3(t, e, n) {
|
|
|
3944
3944
|
!nn(e[r]) && !J3(r, n) && (t[r] = e[r]);
|
|
3945
3945
|
}
|
|
3946
3946
|
function mE({ transformTemplate: t }, e) {
|
|
3947
|
-
return
|
|
3947
|
+
return Ne(() => {
|
|
3948
3948
|
const n = Fm();
|
|
3949
3949
|
return Vm(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3950
3950
|
}, [e]);
|
|
@@ -3958,7 +3958,7 @@ function vE(t, e) {
|
|
|
3958
3958
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
3959
3959
|
}
|
|
3960
3960
|
function yE(t, e, n, r) {
|
|
3961
|
-
const i =
|
|
3961
|
+
const i = Ne(() => {
|
|
3962
3962
|
const o = G3();
|
|
3963
3963
|
return jm(o, e, _m(r), t.transformTemplate), {
|
|
3964
3964
|
...o.attrs,
|
|
@@ -3973,7 +3973,7 @@ function yE(t, e, n, r) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
function bE(t = !1) {
|
|
3975
3975
|
return (n, r, i, { latestValues: o }, s) => {
|
|
3976
|
-
const l = (Rm(n) ? yE : vE)(r, o, s, n), c = IS(r, typeof n == "string", t), u = n !== Hn ? { ...c, ...l, ref: i } : {}, { children: d } = r, f =
|
|
3976
|
+
const l = (Rm(n) ? yE : vE)(r, o, s, n), c = IS(r, typeof n == "string", t), u = n !== Hn ? { ...c, ...l, ref: i } : {}, { children: d } = r, f = Ne(() => nn(d) ? d.get() : d, [d]);
|
|
3977
3977
|
return mm(n, {
|
|
3978
3978
|
...u,
|
|
3979
3979
|
children: f
|
|
@@ -4579,14 +4579,14 @@ const Ep = {
|
|
|
4579
4579
|
test: /* @__PURE__ */ Jm("#"),
|
|
4580
4580
|
parse: ZE,
|
|
4581
4581
|
transform: oo.transform
|
|
4582
|
-
},
|
|
4582
|
+
}, fs = {
|
|
4583
4583
|
test: /* @__PURE__ */ Jm("hsl", "hue"),
|
|
4584
4584
|
parse: /* @__PURE__ */ x5("hue", "saturation", "lightness"),
|
|
4585
4585
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + fr.transform(Ta(e)) + ", " + fr.transform(Ta(n)) + ", " + Ta(Ka.transform(r)) + ")"
|
|
4586
4586
|
}, Xt = {
|
|
4587
|
-
test: (t) => oo.test(t) || Ep.test(t) ||
|
|
4588
|
-
parse: (t) => oo.test(t) ? oo.parse(t) :
|
|
4589
|
-
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? oo.transform(t) :
|
|
4587
|
+
test: (t) => oo.test(t) || Ep.test(t) || fs.test(t),
|
|
4588
|
+
parse: (t) => oo.test(t) ? oo.parse(t) : fs.test(t) ? fs.parse(t) : Ep.parse(t),
|
|
4589
|
+
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? oo.transform(t) : fs.transform(t)
|
|
4590
4590
|
}, GE = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
4591
4591
|
function qE(t) {
|
|
4592
4592
|
var e, n;
|
|
@@ -4710,11 +4710,11 @@ const Vs = {
|
|
|
4710
4710
|
};
|
|
4711
4711
|
Vs.translateX = Vs.x;
|
|
4712
4712
|
Vs.translateY = Vs.y;
|
|
4713
|
-
const
|
|
4713
|
+
const ko = /* @__PURE__ */ new Set();
|
|
4714
4714
|
let Op = !1, Tp = !1;
|
|
4715
4715
|
function M5() {
|
|
4716
4716
|
if (Tp) {
|
|
4717
|
-
const t = Array.from(
|
|
4717
|
+
const t = Array.from(ko).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
4718
4718
|
e.forEach((r) => {
|
|
4719
4719
|
const i = lM(r);
|
|
4720
4720
|
i.length && (n.set(r, i), r.render());
|
|
@@ -4729,10 +4729,10 @@ function M5() {
|
|
|
4729
4729
|
r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
|
|
4730
4730
|
});
|
|
4731
4731
|
}
|
|
4732
|
-
Tp = !1, Op = !1,
|
|
4732
|
+
Tp = !1, Op = !1, ko.forEach((t) => t.complete()), ko.clear();
|
|
4733
4733
|
}
|
|
4734
4734
|
function O5() {
|
|
4735
|
-
|
|
4735
|
+
ko.forEach((t) => {
|
|
4736
4736
|
t.readKeyframes(), t.needsMeasurement && (Tp = !0);
|
|
4737
4737
|
});
|
|
4738
4738
|
}
|
|
@@ -4744,7 +4744,7 @@ class Qm {
|
|
|
4744
4744
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = s;
|
|
4745
4745
|
}
|
|
4746
4746
|
scheduleResolve() {
|
|
4747
|
-
this.isScheduled = !0, this.isAsync ? (
|
|
4747
|
+
this.isScheduled = !0, this.isAsync ? (ko.add(this), Op || (Op = !0, ut.read(O5), ut.resolveKeyframes(M5))) : (this.readKeyframes(), this.complete());
|
|
4748
4748
|
}
|
|
4749
4749
|
readKeyframes() {
|
|
4750
4750
|
const { unresolvedKeyframes: e, name: n, element: r, motionValue: i } = this;
|
|
@@ -4771,10 +4771,10 @@ class Qm {
|
|
|
4771
4771
|
measureEndState() {
|
|
4772
4772
|
}
|
|
4773
4773
|
complete() {
|
|
4774
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe),
|
|
4774
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), ko.delete(this);
|
|
4775
4775
|
}
|
|
4776
4776
|
cancel() {
|
|
4777
|
-
this.isComplete || (this.isScheduled = !1,
|
|
4777
|
+
this.isComplete || (this.isScheduled = !1, ko.delete(this));
|
|
4778
4778
|
}
|
|
4779
4779
|
resume() {
|
|
4780
4780
|
this.isComplete || this.scheduleResolve();
|
|
@@ -4989,13 +4989,13 @@ function Hc(t, e) {
|
|
|
4989
4989
|
const Jd = (t, e, n) => {
|
|
4990
4990
|
const r = t * t, i = n * (e * e - r) + r;
|
|
4991
4991
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
4992
|
-
}, bM = [Ep, oo,
|
|
4992
|
+
}, bM = [Ep, oo, fs], xM = (t) => bM.find((e) => e.test(t));
|
|
4993
4993
|
function D0(t) {
|
|
4994
4994
|
const e = xM(t);
|
|
4995
4995
|
if (qs(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
4996
4996
|
return !1;
|
|
4997
4997
|
let n = e.parse(t);
|
|
4998
|
-
return e ===
|
|
4998
|
+
return e === fs && (n = yM(n)), n;
|
|
4999
4999
|
}
|
|
5000
5000
|
const P0 = (t, e) => {
|
|
5001
5001
|
const n = D0(t), r = D0(e);
|
|
@@ -5689,7 +5689,7 @@ const QM = {
|
|
|
5689
5689
|
type: "keyframes",
|
|
5690
5690
|
ease: [0.25, 0.1, 0.35, 1],
|
|
5691
5691
|
duration: 0.3
|
|
5692
|
-
}, rO = (t, { keyframes: e }) => e.length > 2 ? tO :
|
|
5692
|
+
}, rO = (t, { keyframes: e }) => e.length > 2 ? tO : Go.has(t) ? t.startsWith("scale") ? eO(e[1]) : QM : nO;
|
|
5693
5693
|
function iO({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
5694
5694
|
return !!Object.keys(u).length;
|
|
5695
5695
|
}
|
|
@@ -6170,7 +6170,7 @@ const G0 = () => ({
|
|
|
6170
6170
|
scale: 1,
|
|
6171
6171
|
origin: 0,
|
|
6172
6172
|
originPoint: 0
|
|
6173
|
-
}),
|
|
6173
|
+
}), ps = () => ({
|
|
6174
6174
|
x: G0(),
|
|
6175
6175
|
y: G0()
|
|
6176
6176
|
}), q0 = () => ({ min: 0, max: 0 }), Ct = () => ({
|
|
@@ -6238,21 +6238,21 @@ function jO(t, e, n, r = !1) {
|
|
|
6238
6238
|
for (let a = 0; a < i; a++) {
|
|
6239
6239
|
o = n[a], s = o.projectionDelta;
|
|
6240
6240
|
const { visualElement: l } = o.options;
|
|
6241
|
-
l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root &&
|
|
6241
|
+
l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && ms(t, {
|
|
6242
6242
|
x: -o.scroll.offset.x,
|
|
6243
6243
|
y: -o.scroll.offset.y
|
|
6244
|
-
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, q5(t, s)), r && Yi(o.latestValues) &&
|
|
6244
|
+
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, q5(t, s)), r && Yi(o.latestValues) && ms(t, o.latestValues));
|
|
6245
6245
|
}
|
|
6246
6246
|
e.x < X0 && e.x > J0 && (e.x = 1), e.y < X0 && e.y > J0 && (e.y = 1);
|
|
6247
6247
|
}
|
|
6248
|
-
function
|
|
6248
|
+
function hs(t, e) {
|
|
6249
6249
|
t.min = t.min + e, t.max = t.max + e;
|
|
6250
6250
|
}
|
|
6251
6251
|
function Q0(t, e, n, r, i = 0.5) {
|
|
6252
6252
|
const o = mt(t.min, t.max, i);
|
|
6253
6253
|
Ip(t, e, n, o, r);
|
|
6254
6254
|
}
|
|
6255
|
-
function
|
|
6255
|
+
function ms(t, e) {
|
|
6256
6256
|
Q0(t.x, e.x, e.scaleX, e.scale, e.originX), Q0(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
6257
6257
|
}
|
|
6258
6258
|
function K5(t, e) {
|
|
@@ -6260,7 +6260,7 @@ function K5(t, e) {
|
|
|
6260
6260
|
}
|
|
6261
6261
|
function FO(t, e, n) {
|
|
6262
6262
|
const r = K5(t, n), { scroll: i } = e;
|
|
6263
|
-
return i && (
|
|
6263
|
+
return i && (hs(r.x, i.offset.x), hs(r.y, i.offset.y)), r;
|
|
6264
6264
|
}
|
|
6265
6265
|
const Y5 = ({ current: t }) => t ? t.ownerDocument.defaultView : null, _O = /* @__PURE__ */ new WeakMap();
|
|
6266
6266
|
class HO {
|
|
@@ -6344,13 +6344,13 @@ class HO {
|
|
|
6344
6344
|
resolveConstraints() {
|
|
6345
6345
|
var e;
|
|
6346
6346
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
|
|
6347
|
-
n &&
|
|
6347
|
+
n && ds(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = DO(i.layoutBox, n) : this.constraints = !1, this.elastic = IO(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Rn((s) => {
|
|
6348
6348
|
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = NO(i.layoutBox[s], this.constraints[s]));
|
|
6349
6349
|
});
|
|
6350
6350
|
}
|
|
6351
6351
|
resolveRefConstraints() {
|
|
6352
6352
|
const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
|
|
6353
|
-
if (!e || !
|
|
6353
|
+
if (!e || !ds(e))
|
|
6354
6354
|
return !1;
|
|
6355
6355
|
const r = e.current;
|
|
6356
6356
|
Mi(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -6434,7 +6434,7 @@ class HO {
|
|
|
6434
6434
|
if (!this.visualElement.current)
|
|
6435
6435
|
return;
|
|
6436
6436
|
const { drag: e, dragConstraints: n } = this.getProps(), { projection: r } = this.visualElement;
|
|
6437
|
-
if (!
|
|
6437
|
+
if (!ds(n) || !r || !this.constraints)
|
|
6438
6438
|
return;
|
|
6439
6439
|
this.stopAnimation();
|
|
6440
6440
|
const i = { x: 0, y: 0 };
|
|
@@ -6462,7 +6462,7 @@ class HO {
|
|
|
6462
6462
|
c && u && this.start(l);
|
|
6463
6463
|
}), r = () => {
|
|
6464
6464
|
const { dragConstraints: l } = this.getProps();
|
|
6465
|
-
|
|
6465
|
+
ds(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
6466
6466
|
}, { projection: i } = this.visualElement, o = i.addEventListener("measure", r);
|
|
6467
6467
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), ut.read(r);
|
|
6468
6468
|
const s = Xa(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
|
|
@@ -7008,7 +7008,7 @@ function rx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7008
7008
|
const l = a.measureViewportBox();
|
|
7009
7009
|
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(ET))) {
|
|
7010
7010
|
const { scroll: u } = this.root;
|
|
7011
|
-
u && (
|
|
7011
|
+
u && (hs(l.x, u.offset.x), hs(l.y, u.offset.y));
|
|
7012
7012
|
}
|
|
7013
7013
|
return l;
|
|
7014
7014
|
}
|
|
@@ -7019,7 +7019,7 @@ function rx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7019
7019
|
return l;
|
|
7020
7020
|
for (let c = 0; c < this.path.length; c++) {
|
|
7021
7021
|
const u = this.path[c], { scroll: d, options: f } = u;
|
|
7022
|
-
u !== this.root && d && f.layoutScroll && (d.wasRoot && An(l, s),
|
|
7022
|
+
u !== this.root && d && f.layoutScroll && (d.wasRoot && An(l, s), hs(l.x, d.offset.x), hs(l.y, d.offset.y));
|
|
7023
7023
|
}
|
|
7024
7024
|
return l;
|
|
7025
7025
|
}
|
|
@@ -7028,12 +7028,12 @@ function rx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7028
7028
|
An(l, s);
|
|
7029
7029
|
for (let c = 0; c < this.path.length; c++) {
|
|
7030
7030
|
const u = this.path[c];
|
|
7031
|
-
!a && u.options.layoutScroll && u.scroll && u !== u.root &&
|
|
7031
|
+
!a && u.options.layoutScroll && u.scroll && u !== u.root && ms(l, {
|
|
7032
7032
|
x: -u.scroll.offset.x,
|
|
7033
7033
|
y: -u.scroll.offset.y
|
|
7034
|
-
}), Yi(u.latestValues) &&
|
|
7034
|
+
}), Yi(u.latestValues) && ms(l, u.latestValues);
|
|
7035
7035
|
}
|
|
7036
|
-
return Yi(this.latestValues) &&
|
|
7036
|
+
return Yi(this.latestValues) && ms(l, this.latestValues), l;
|
|
7037
7037
|
}
|
|
7038
7038
|
removeTransform(s) {
|
|
7039
7039
|
const a = Ct();
|
|
@@ -7128,10 +7128,10 @@ function rx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7128
7128
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
7129
7129
|
}
|
|
7130
7130
|
createProjectionDeltas() {
|
|
7131
|
-
this.prevProjectionDelta =
|
|
7131
|
+
this.prevProjectionDelta = ps(), this.projectionDelta = ps(), this.projectionDeltaWithTransform = ps();
|
|
7132
7132
|
}
|
|
7133
7133
|
setAnimationOrigin(s, a = !1) {
|
|
7134
|
-
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d =
|
|
7134
|
+
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = ps();
|
|
7135
7135
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
7136
7136
|
const f = Ct(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, g = this.getStack(), v = !g || g.members.length <= 1, y = !!(h && !v && this.options.crossfade === !0 && !this.path.some(CT));
|
|
7137
7137
|
this.animationProgress = 0;
|
|
@@ -7173,7 +7173,7 @@ function rx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7173
7173
|
const f = On(this.layout.layoutBox.y);
|
|
7174
7174
|
l.y.min = s.target.y.min, l.y.max = l.y.min + f;
|
|
7175
7175
|
}
|
|
7176
|
-
An(a, l),
|
|
7176
|
+
An(a, l), ms(a, u), Da(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
7177
7177
|
}
|
|
7178
7178
|
}
|
|
7179
7179
|
registerSharedNode(s, a) {
|
|
@@ -7288,9 +7288,9 @@ function dT(t) {
|
|
|
7288
7288
|
const f = s ? n.measuredBox[d] : n.layoutBox[d], p = On(r[d]);
|
|
7289
7289
|
f.max = f.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[d].max = t.relativeTarget[d].min + p);
|
|
7290
7290
|
});
|
|
7291
|
-
const a =
|
|
7291
|
+
const a = ps();
|
|
7292
7292
|
Da(a, r, n.layoutBox);
|
|
7293
|
-
const l =
|
|
7293
|
+
const l = ps();
|
|
7294
7294
|
s ? Da(l, t.applyTransform(i, !0), n.measuredBox) : Da(l, r, n.layoutBox);
|
|
7295
7295
|
const c = !ex(a);
|
|
7296
7296
|
let u = !1;
|
|
@@ -7623,7 +7623,7 @@ class WT {
|
|
|
7623
7623
|
}
|
|
7624
7624
|
bindToMotionValue(e, n) {
|
|
7625
7625
|
this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
|
|
7626
|
-
const r =
|
|
7626
|
+
const r = Go.has(e), i = n.on("change", (a) => {
|
|
7627
7627
|
this.latestValues[e] = a, this.props.onUpdate && ut.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
|
|
7628
7628
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
7629
7629
|
let s;
|
|
@@ -7804,7 +7804,7 @@ class ZT extends ax {
|
|
|
7804
7804
|
super(...arguments), this.type = "html", this.renderInstance = q3;
|
|
7805
7805
|
}
|
|
7806
7806
|
readValueFromInstance(e, n) {
|
|
7807
|
-
if (
|
|
7807
|
+
if (Go.has(n)) {
|
|
7808
7808
|
const r = Xm(n);
|
|
7809
7809
|
return r && r.default || 0;
|
|
7810
7810
|
} else {
|
|
@@ -7830,7 +7830,7 @@ class GT extends ax {
|
|
|
7830
7830
|
return e[n];
|
|
7831
7831
|
}
|
|
7832
7832
|
readValueFromInstance(e, n) {
|
|
7833
|
-
if (
|
|
7833
|
+
if (Go.has(n)) {
|
|
7834
7834
|
const r = Xm(n);
|
|
7835
7835
|
return r && r.default || 0;
|
|
7836
7836
|
}
|
|
@@ -7921,7 +7921,7 @@ const qT = (t, e) => Rm(t) ? new GT(e) : new ZT(e, {
|
|
|
7921
7921
|
}) => {
|
|
7922
7922
|
const [o, s] = Te(null), a = (d) => {
|
|
7923
7923
|
s((f) => f === d ? null : d);
|
|
7924
|
-
}, { goToMonth: l } =
|
|
7924
|
+
}, { goToMonth: l } = Zo(), c = r && r.month !== void 0 ? r.month : c0.month, u = r && r.year !== void 0 ? r.year : c0.year;
|
|
7925
7925
|
return /* @__PURE__ */ T.jsxs(
|
|
7926
7926
|
"div",
|
|
7927
7927
|
{
|
|
@@ -7970,7 +7970,7 @@ const qT = (t, e) => Rm(t) ? new GT(e) : new ZT(e, {
|
|
|
7970
7970
|
style: a,
|
|
7971
7971
|
...l
|
|
7972
7972
|
}, c) => {
|
|
7973
|
-
const u =
|
|
7973
|
+
const u = Ne(
|
|
7974
7974
|
() => ({
|
|
7975
7975
|
today: Z(Zi.today, t == null ? void 0 : t.today),
|
|
7976
7976
|
outside: Z(Zi.outside, t == null ? void 0 : t.outside),
|
|
@@ -8294,7 +8294,7 @@ var dD = [
|
|
|
8294
8294
|
function fD(t, e) {
|
|
8295
8295
|
t && Za.flushSync(() => t.dispatchEvent(e));
|
|
8296
8296
|
}
|
|
8297
|
-
function
|
|
8297
|
+
function Ro(t) {
|
|
8298
8298
|
const e = k.useRef(t);
|
|
8299
8299
|
return k.useEffect(() => {
|
|
8300
8300
|
e.current = t;
|
|
@@ -8304,7 +8304,7 @@ function Po(t) {
|
|
|
8304
8304
|
}, []);
|
|
8305
8305
|
}
|
|
8306
8306
|
function pD(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
8307
|
-
const n =
|
|
8307
|
+
const n = Ro(t);
|
|
8308
8308
|
k.useEffect(() => {
|
|
8309
8309
|
const r = (i) => {
|
|
8310
8310
|
i.key === "Escape" && n(i);
|
|
@@ -8377,7 +8377,7 @@ var vD = "DismissableLayerBranch", yD = k.forwardRef((t, e) => {
|
|
|
8377
8377
|
});
|
|
8378
8378
|
yD.displayName = vD;
|
|
8379
8379
|
function bD(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
8380
|
-
const n =
|
|
8380
|
+
const n = Ro(t), r = k.useRef(!1), i = k.useRef(() => {
|
|
8381
8381
|
});
|
|
8382
8382
|
return k.useEffect(() => {
|
|
8383
8383
|
const o = (a) => {
|
|
@@ -8407,7 +8407,7 @@ function bD(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8407
8407
|
};
|
|
8408
8408
|
}
|
|
8409
8409
|
function xD(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
8410
|
-
const n =
|
|
8410
|
+
const n = Ro(t), r = k.useRef(!1);
|
|
8411
8411
|
return k.useEffect(() => {
|
|
8412
8412
|
const i = (o) => {
|
|
8413
8413
|
o.target && !r.current && fx(gD, n, { originalEvent: o }, {
|
|
@@ -9178,7 +9178,7 @@ function gx(t) {
|
|
|
9178
9178
|
function d1(t) {
|
|
9179
9179
|
return kt(t) ? t : t.contextElement;
|
|
9180
9180
|
}
|
|
9181
|
-
function
|
|
9181
|
+
function bs(t) {
|
|
9182
9182
|
const e = d1(t);
|
|
9183
9183
|
if (!gr(e))
|
|
9184
9184
|
return hr(1);
|
|
@@ -9204,18 +9204,18 @@ function vx(t) {
|
|
|
9204
9204
|
function zD(t, e, n) {
|
|
9205
9205
|
return e === void 0 && (e = !1), !n || e && n !== En(t) ? !1 : e;
|
|
9206
9206
|
}
|
|
9207
|
-
function
|
|
9207
|
+
function No(t, e, n, r) {
|
|
9208
9208
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
9209
9209
|
const i = t.getBoundingClientRect(), o = d1(t);
|
|
9210
9210
|
let s = hr(1);
|
|
9211
|
-
e && (r ? kt(r) && (s =
|
|
9211
|
+
e && (r ? kt(r) && (s = bs(r)) : s = bs(t));
|
|
9212
9212
|
const a = zD(o, n, r) ? vx(o) : hr(0);
|
|
9213
9213
|
let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
9214
9214
|
if (o) {
|
|
9215
9215
|
const f = En(o), p = r && kt(r) ? En(r) : r;
|
|
9216
9216
|
let m = f, h = Hp(m);
|
|
9217
9217
|
for (; h && r && p !== m; ) {
|
|
9218
|
-
const g =
|
|
9218
|
+
const g = bs(h), v = h.getBoundingClientRect(), y = Kn(h), w = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, x = v.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
9219
9219
|
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += w, c += x, m = En(h), h = Hp(m);
|
|
9220
9220
|
}
|
|
9221
9221
|
}
|
|
@@ -9228,7 +9228,7 @@ function Ro(t, e, n, r) {
|
|
|
9228
9228
|
}
|
|
9229
9229
|
function f1(t, e) {
|
|
9230
9230
|
const n = td(t).scrollLeft;
|
|
9231
|
-
return e ? e.left + n :
|
|
9231
|
+
return e ? e.left + n : No(wr(t)).left + n;
|
|
9232
9232
|
}
|
|
9233
9233
|
function yx(t, e, n) {
|
|
9234
9234
|
n === void 0 && (n = !1);
|
|
@@ -9257,8 +9257,8 @@ function WD(t) {
|
|
|
9257
9257
|
}, c = hr(1);
|
|
9258
9258
|
const u = hr(0), d = gr(r);
|
|
9259
9259
|
if ((d || !d && !o) && ((Xs(r) !== "body" || Il(s)) && (l = td(r)), gr(r))) {
|
|
9260
|
-
const p =
|
|
9261
|
-
c =
|
|
9260
|
+
const p = No(r);
|
|
9261
|
+
c = bs(r), u.x = p.x + r.clientLeft, u.y = p.y + r.clientTop;
|
|
9262
9262
|
}
|
|
9263
9263
|
const f = s && !d && !o ? yx(s, l, !0) : hr(0);
|
|
9264
9264
|
return {
|
|
@@ -9298,7 +9298,7 @@ function GD(t, e) {
|
|
|
9298
9298
|
};
|
|
9299
9299
|
}
|
|
9300
9300
|
function qD(t, e) {
|
|
9301
|
-
const n =
|
|
9301
|
+
const n = No(t, !0, e === "fixed"), r = n.top + t.clientTop, i = n.left + t.clientLeft, o = gr(t) ? bs(t) : hr(1), s = t.clientWidth * o.x, a = t.clientHeight * o.y, l = i * o.x, c = r * o.y;
|
|
9302
9302
|
return {
|
|
9303
9303
|
width: s,
|
|
9304
9304
|
height: a,
|
|
@@ -9371,7 +9371,7 @@ function JD(t) {
|
|
|
9371
9371
|
};
|
|
9372
9372
|
}
|
|
9373
9373
|
function XD(t, e, n) {
|
|
9374
|
-
const r = gr(e), i = wr(e), o = n === "fixed", s =
|
|
9374
|
+
const r = gr(e), i = wr(e), o = n === "fixed", s = No(t, !0, o, e);
|
|
9375
9375
|
let a = {
|
|
9376
9376
|
scrollLeft: 0,
|
|
9377
9377
|
scrollTop: 0
|
|
@@ -9382,7 +9382,7 @@ function XD(t, e, n) {
|
|
|
9382
9382
|
}
|
|
9383
9383
|
if (r || !r && !o)
|
|
9384
9384
|
if ((Xs(e) !== "body" || Il(i)) && (a = td(e)), r) {
|
|
9385
|
-
const p =
|
|
9385
|
+
const p = No(e, !0, o, e);
|
|
9386
9386
|
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
|
9387
9387
|
} else i && c();
|
|
9388
9388
|
o && !r && i && c();
|
|
@@ -9446,7 +9446,7 @@ const tP = {
|
|
|
9446
9446
|
getElementRects: QD,
|
|
9447
9447
|
getClientRects: UD,
|
|
9448
9448
|
getDimensions: JD,
|
|
9449
|
-
getScale:
|
|
9449
|
+
getScale: bs,
|
|
9450
9450
|
isElement: kt,
|
|
9451
9451
|
isRTL: eP
|
|
9452
9452
|
};
|
|
@@ -9522,10 +9522,10 @@ function nd(t, e, n, r) {
|
|
|
9522
9522
|
(w = p) == null || w.observe(e);
|
|
9523
9523
|
})), n();
|
|
9524
9524
|
}), c && !l && p.observe(c), p.observe(e));
|
|
9525
|
-
let m, h = l ?
|
|
9525
|
+
let m, h = l ? No(t) : null;
|
|
9526
9526
|
l && g();
|
|
9527
9527
|
function g() {
|
|
9528
|
-
const v =
|
|
9528
|
+
const v = No(t);
|
|
9529
9529
|
h && !wx(h, v) && n(), h = v, m = requestAnimationFrame(g);
|
|
9530
9530
|
}
|
|
9531
9531
|
return n(), () => {
|
|
@@ -9844,7 +9844,7 @@ var m1 = "PopperContent", [bP, xP] = Mx(m1), Px = k.forwardRef(
|
|
|
9844
9844
|
kP({ arrowWidth: E, arrowHeight: S }),
|
|
9845
9845
|
f && hP({ strategy: "referenceHidden", ...R })
|
|
9846
9846
|
]
|
|
9847
|
-
}), [z, P] = Ix(V), N =
|
|
9847
|
+
}), [z, P] = Ix(V), N = Ro(m);
|
|
9848
9848
|
Ai(() => {
|
|
9849
9849
|
L && (N == null || N());
|
|
9850
9850
|
}, [L, N]);
|
|
@@ -10480,7 +10480,7 @@ var df = "focusScope.autoFocusOnMount", ff = "focusScope.autoFocusOnUnmount", Hv
|
|
|
10480
10480
|
onMountAutoFocus: i,
|
|
10481
10481
|
onUnmountAutoFocus: o,
|
|
10482
10482
|
...s
|
|
10483
|
-
} = t, [a, l] = k.useState(null), c =
|
|
10483
|
+
} = t, [a, l] = k.useState(null), c = Ro(i), u = Ro(o), d = k.useRef(null), f = Ot(e, (h) => l(h)), p = k.useRef({
|
|
10484
10484
|
paused: !1,
|
|
10485
10485
|
pause() {
|
|
10486
10486
|
this.paused = !0;
|
|
@@ -10607,7 +10607,7 @@ var lR = function(t) {
|
|
|
10607
10607
|
return null;
|
|
10608
10608
|
var e = Array.isArray(t) ? t[0] : t;
|
|
10609
10609
|
return e.ownerDocument.body;
|
|
10610
|
-
},
|
|
10610
|
+
}, ts = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), oc = {}, pf = 0, Jx = function(t) {
|
|
10611
10611
|
return t && (t.host || Jx(t.parentNode));
|
|
10612
10612
|
}, cR = function(t, e) {
|
|
10613
10613
|
return e.map(function(n) {
|
|
@@ -10631,8 +10631,8 @@ var lR = function(t) {
|
|
|
10631
10631
|
u(f);
|
|
10632
10632
|
else
|
|
10633
10633
|
try {
|
|
10634
|
-
var p = f.getAttribute(r), m = p !== null && p !== "false", h = (
|
|
10635
|
-
|
|
10634
|
+
var p = f.getAttribute(r), m = p !== null && p !== "false", h = (ts.get(f) || 0) + 1, g = (o.get(f) || 0) + 1;
|
|
10635
|
+
ts.set(f, h), o.set(f, g), s.push(f), h === 1 && m && ic.set(f, !0), g === 1 && f.setAttribute(n, "true"), m || f.setAttribute(r, "true");
|
|
10636
10636
|
} catch (v) {
|
|
10637
10637
|
console.error("aria-hidden: cannot operate on ", f, v);
|
|
10638
10638
|
}
|
|
@@ -10640,9 +10640,9 @@ var lR = function(t) {
|
|
|
10640
10640
|
};
|
|
10641
10641
|
return u(e), a.clear(), pf++, function() {
|
|
10642
10642
|
s.forEach(function(d) {
|
|
10643
|
-
var f =
|
|
10644
|
-
|
|
10645
|
-
}), pf--, pf || (
|
|
10643
|
+
var f = ts.get(d) - 1, p = o.get(d) - 1;
|
|
10644
|
+
ts.set(d, f), o.set(d, p), f || (ic.has(d) || d.removeAttribute(r), ic.delete(d)), p || d.removeAttribute(n);
|
|
10645
|
+
}), pf--, pf || (ts = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), oc = {});
|
|
10646
10646
|
};
|
|
10647
10647
|
}, dR = function(t, e, n) {
|
|
10648
10648
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -10667,7 +10667,7 @@ function Xx(t, e) {
|
|
|
10667
10667
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
|
|
10668
10668
|
return n;
|
|
10669
10669
|
}
|
|
10670
|
-
function
|
|
10670
|
+
function qo(t, e, n, r) {
|
|
10671
10671
|
function i(o) {
|
|
10672
10672
|
return o instanceof n ? o : new n(function(s) {
|
|
10673
10673
|
s(o);
|
|
@@ -10907,14 +10907,14 @@ var MR = function() {
|
|
|
10907
10907
|
right: e[2],
|
|
10908
10908
|
gap: Math.max(0, r - n + e[2] - e[0])
|
|
10909
10909
|
};
|
|
10910
|
-
}, PR = t4(),
|
|
10910
|
+
}, PR = t4(), xs = "data-scroll-locked", RR = function(t, e, n, r) {
|
|
10911
10911
|
var i = t.left, o = t.top, s = t.right, a = t.gap;
|
|
10912
10912
|
return n === void 0 && (n = "margin"), `
|
|
10913
10913
|
.`.concat(pR, ` {
|
|
10914
10914
|
overflow: hidden `).concat(r, `;
|
|
10915
10915
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
10916
10916
|
}
|
|
10917
|
-
body[`).concat(
|
|
10917
|
+
body[`).concat(xs, `] {
|
|
10918
10918
|
overflow: hidden `).concat(r, `;
|
|
10919
10919
|
overscroll-behavior: contain;
|
|
10920
10920
|
`).concat([
|
|
@@ -10947,18 +10947,18 @@ var MR = function() {
|
|
|
10947
10947
|
margin-right: 0 `).concat(r, `;
|
|
10948
10948
|
}
|
|
10949
10949
|
|
|
10950
|
-
body[`).concat(
|
|
10950
|
+
body[`).concat(xs, `] {
|
|
10951
10951
|
`).concat(hR, ": ").concat(a, `px;
|
|
10952
10952
|
}
|
|
10953
10953
|
`);
|
|
10954
10954
|
}, Uv = function() {
|
|
10955
|
-
var t = parseInt(document.body.getAttribute(
|
|
10955
|
+
var t = parseInt(document.body.getAttribute(xs) || "0", 10);
|
|
10956
10956
|
return isFinite(t) ? t : 0;
|
|
10957
10957
|
}, NR = function() {
|
|
10958
10958
|
k.useEffect(function() {
|
|
10959
|
-
return document.body.setAttribute(
|
|
10959
|
+
return document.body.setAttribute(xs, (Uv() + 1).toString()), function() {
|
|
10960
10960
|
var t = Uv() - 1;
|
|
10961
|
-
t <= 0 ? document.body.removeAttribute(
|
|
10961
|
+
t <= 0 ? document.body.removeAttribute(xs) : document.body.setAttribute(xs, t.toString());
|
|
10962
10962
|
};
|
|
10963
10963
|
}, []);
|
|
10964
10964
|
}, IR = function(t) {
|
|
@@ -10980,7 +10980,7 @@ if (typeof window < "u")
|
|
|
10980
10980
|
} catch {
|
|
10981
10981
|
zp = !1;
|
|
10982
10982
|
}
|
|
10983
|
-
var
|
|
10983
|
+
var ns = zp ? { passive: !1 } : !1, LR = function(t) {
|
|
10984
10984
|
return t.tagName === "TEXTAREA";
|
|
10985
10985
|
}, n4 = function(t, e) {
|
|
10986
10986
|
if (!(t instanceof Element))
|
|
@@ -11056,7 +11056,7 @@ var ts = zp ? { passive: !1 } : !1, LR = function(t) {
|
|
|
11056
11056
|
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
11057
11057
|
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
11058
11058
|
`);
|
|
11059
|
-
}, WR = 0,
|
|
11059
|
+
}, WR = 0, rs = [];
|
|
11060
11060
|
function UR(t) {
|
|
11061
11061
|
var e = k.useRef([]), n = k.useRef([0, 0]), r = k.useRef(), i = k.useState(WR++)[0], o = k.useState(t4)[0], s = k.useRef(t);
|
|
11062
11062
|
k.useEffect(function() {
|
|
@@ -11091,7 +11091,7 @@ function UR(t) {
|
|
|
11091
11091
|
return BR(O, g, h, O === "h" ? w : x);
|
|
11092
11092
|
}, []), l = k.useCallback(function(h) {
|
|
11093
11093
|
var g = h;
|
|
11094
|
-
if (!(!
|
|
11094
|
+
if (!(!rs.length || rs[rs.length - 1] !== o)) {
|
|
11095
11095
|
var v = "deltaY" in g ? Gv(g) : ac(g), y = e.current.filter(function(b) {
|
|
11096
11096
|
return b.name === g.type && (b.target === g.target || g.target === b.shadowParent) && $R(b.delta, v);
|
|
11097
11097
|
})[0];
|
|
@@ -11121,14 +11121,14 @@ function UR(t) {
|
|
|
11121
11121
|
c(h.type, ac(h), h.target, a(h, t.lockRef.current));
|
|
11122
11122
|
}, []);
|
|
11123
11123
|
k.useEffect(function() {
|
|
11124
|
-
return
|
|
11124
|
+
return rs.push(o), t.setCallbacks({
|
|
11125
11125
|
onScrollCapture: d,
|
|
11126
11126
|
onWheelCapture: d,
|
|
11127
11127
|
onTouchMoveCapture: f
|
|
11128
|
-
}), document.addEventListener("wheel", l,
|
|
11129
|
-
|
|
11128
|
+
}), document.addEventListener("wheel", l, ns), document.addEventListener("touchmove", l, ns), document.addEventListener("touchstart", u, ns), function() {
|
|
11129
|
+
rs = rs.filter(function(h) {
|
|
11130
11130
|
return h !== o;
|
|
11131
|
-
}), document.removeEventListener("wheel", l,
|
|
11131
|
+
}), document.removeEventListener("wheel", l, ns), document.removeEventListener("touchmove", l, ns), document.removeEventListener("touchstart", u, ns);
|
|
11132
11132
|
};
|
|
11133
11133
|
}, []);
|
|
11134
11134
|
var p = t.removeScrollBar, m = t.inert;
|
|
@@ -11514,7 +11514,7 @@ var mN = k.forwardRef((t, e) => {
|
|
|
11514
11514
|
defaultProp: a ?? null,
|
|
11515
11515
|
onChange: l,
|
|
11516
11516
|
caller: jl
|
|
11517
|
-
}), [v, y] = k.useState(!1), w =
|
|
11517
|
+
}), [v, y] = k.useState(!1), w = Ro(c), x = b4(n), b = k.useRef(!1), [C, E] = k.useState(0);
|
|
11518
11518
|
return k.useEffect(() => {
|
|
11519
11519
|
const S = f.current;
|
|
11520
11520
|
if (S)
|
|
@@ -11725,13 +11725,13 @@ const CN = {
|
|
|
11725
11725
|
...kN,
|
|
11726
11726
|
children: [
|
|
11727
11727
|
/* @__PURE__ */ T.jsx(EN, { title: t, closeModal: o, classes: s == null ? void 0 : s.modalHeader }),
|
|
11728
|
-
a ? /* @__PURE__ */ T.jsx(SN, { ref: c, className: Z("mt-4", s == null ? void 0 : s.content), children: (d) =>
|
|
11728
|
+
a ? /* @__PURE__ */ T.jsx(SN, { ref: c, className: Z("mt-4", s == null ? void 0 : s.content), children: (d) => Po(e, d) }) : /* @__PURE__ */ T.jsx("div", { className: Z("mt-4", s == null ? void 0 : s.content), children: e })
|
|
11729
11729
|
]
|
|
11730
11730
|
}
|
|
11731
11731
|
)
|
|
11732
11732
|
}
|
|
11733
11733
|
) });
|
|
11734
|
-
return /* @__PURE__ */ T.jsx(T.Fragment, { children: r ?
|
|
11734
|
+
return /* @__PURE__ */ T.jsx(T.Fragment, { children: r ? Po(u, i) : u });
|
|
11735
11735
|
};
|
|
11736
11736
|
let MN = { data: "" }, ON = (t) => typeof window == "object" ? ((t ? t.querySelector("#_goober") : window._goober) || Object.assign((t || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t || MN, TN = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, AN = /\/\*[^]*?\*\/| +/g, Kv = /\n+/g, si = (t, e) => {
|
|
11737
11737
|
let n = "", r = "", i = "";
|
|
@@ -11828,7 +11828,7 @@ var NN = (t) => typeof t == "function", qc = (t, e) => NN(t) ? t(e) : t, IN = /*
|
|
|
11828
11828
|
let i = e.time - (t.pausedAt || 0);
|
|
11829
11829
|
return { ...t, pausedAt: void 0, toasts: t.toasts.map((o) => ({ ...o, pauseDuration: o.pauseDuration + i })) };
|
|
11830
11830
|
}
|
|
11831
|
-
}, Ac = [], so = { toasts: [], pausedAt: void 0 },
|
|
11831
|
+
}, Ac = [], so = { toasts: [], pausedAt: void 0 }, Ko = (t) => {
|
|
11832
11832
|
so = T4(so, t), Ac.forEach((e) => {
|
|
11833
11833
|
e(so);
|
|
11834
11834
|
});
|
|
@@ -11845,16 +11845,16 @@ var NN = (t) => typeof t == "function", qc = (t, e) => NN(t) ? t(e) : t, IN = /*
|
|
|
11845
11845
|
return { ...e, toasts: i };
|
|
11846
11846
|
}, FN = (t, e = "blank", n) => ({ createdAt: Date.now(), visible: !0, dismissed: !1, type: e, ariaProps: { role: "status", "aria-live": "polite" }, message: t, pauseDuration: 0, ...n, id: (n == null ? void 0 : n.id) || IN() }), Fl = (t) => (e, n) => {
|
|
11847
11847
|
let r = FN(e, t, n);
|
|
11848
|
-
return
|
|
11848
|
+
return Ko({ type: 2, toast: r }), r.id;
|
|
11849
11849
|
}, dn = (t, e) => Fl("blank")(t, e);
|
|
11850
11850
|
dn.error = Fl("error");
|
|
11851
11851
|
dn.success = Fl("success");
|
|
11852
11852
|
dn.loading = Fl("loading");
|
|
11853
11853
|
dn.custom = Fl("custom");
|
|
11854
11854
|
dn.dismiss = (t) => {
|
|
11855
|
-
|
|
11855
|
+
Ko({ type: 3, toastId: t });
|
|
11856
11856
|
};
|
|
11857
|
-
dn.remove = (t) =>
|
|
11857
|
+
dn.remove = (t) => Ko({ type: 4, toastId: t });
|
|
11858
11858
|
dn.promise = (t, e, n) => {
|
|
11859
11859
|
let r = dn.loading(e.loading, { ...n, ...n == null ? void 0 : n.loading });
|
|
11860
11860
|
return typeof t == "function" && (t = t()), t.then((i) => {
|
|
@@ -11866,13 +11866,13 @@ dn.promise = (t, e, n) => {
|
|
|
11866
11866
|
}), t;
|
|
11867
11867
|
};
|
|
11868
11868
|
var _N = (t, e) => {
|
|
11869
|
-
|
|
11869
|
+
Ko({ type: 1, toast: { id: t, height: e } });
|
|
11870
11870
|
}, HN = () => {
|
|
11871
|
-
|
|
11871
|
+
Ko({ type: 5, time: Date.now() });
|
|
11872
11872
|
}, Ra = /* @__PURE__ */ new Map(), BN = 1e3, $N = (t, e = BN) => {
|
|
11873
11873
|
if (Ra.has(t)) return;
|
|
11874
11874
|
let n = setTimeout(() => {
|
|
11875
|
-
Ra.delete(t),
|
|
11875
|
+
Ra.delete(t), Ko({ type: 4, toastId: t });
|
|
11876
11876
|
}, e);
|
|
11877
11877
|
Ra.set(t, n);
|
|
11878
11878
|
}, zN = (t) => {
|
|
@@ -11893,7 +11893,7 @@ var _N = (t, e) => {
|
|
|
11893
11893
|
};
|
|
11894
11894
|
}, [e, n]);
|
|
11895
11895
|
let r = we(() => {
|
|
11896
|
-
n &&
|
|
11896
|
+
n && Ko({ type: 6, time: Date.now() });
|
|
11897
11897
|
}, [n]), i = we((o, s) => {
|
|
11898
11898
|
let { reverseOrder: a = !1, gutter: l = 8, defaultPosition: c } = s || {}, u = e.filter((p) => (p.position || c) === (o.position || c) && p.height), d = u.findIndex((p) => p.id === o.id), f = u.filter((p, m) => m < d && p.visible).length;
|
|
11899
11899
|
return u.filter((p) => p.visible).slice(...a ? [f + 1] : [0, f]).reduce((p, m) => p + (m.height || 0) + l, 0);
|
|
@@ -12534,7 +12534,7 @@ function DI(t, e) {
|
|
|
12534
12534
|
direction: f
|
|
12535
12535
|
};
|
|
12536
12536
|
}
|
|
12537
|
-
function
|
|
12537
|
+
function Io(t = 0, e = 0) {
|
|
12538
12538
|
const n = gt(t - e);
|
|
12539
12539
|
function r(c) {
|
|
12540
12540
|
return c < t;
|
|
@@ -12565,7 +12565,7 @@ function No(t = 0, e = 0) {
|
|
|
12565
12565
|
function D4(t, e, n) {
|
|
12566
12566
|
const {
|
|
12567
12567
|
constrain: r
|
|
12568
|
-
} =
|
|
12568
|
+
} = Io(0, t), i = t + 1;
|
|
12569
12569
|
let o = s(e);
|
|
12570
12570
|
function s(f) {
|
|
12571
12571
|
return n ? gt((i + f) % i) : r(f);
|
|
@@ -12596,7 +12596,7 @@ function PI(t, e, n, r, i, o, s, a, l, c, u, d, f, p, m, h, g, v, y) {
|
|
|
12596
12596
|
direction: x
|
|
12597
12597
|
} = t, b = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
12598
12598
|
passive: !1
|
|
12599
|
-
}, E = il(), S = il(), O =
|
|
12599
|
+
}, E = il(), S = il(), O = Io(50, 225).constrain(p.measure(20)), M = {
|
|
12600
12600
|
mouse: 300,
|
|
12601
12601
|
touch: 400
|
|
12602
12602
|
}, A = {
|
|
@@ -12796,7 +12796,7 @@ function VI(t, e, n, r, i, o) {
|
|
|
12796
12796
|
return b;
|
|
12797
12797
|
}
|
|
12798
12798
|
function jI(t, e, n, r, i) {
|
|
12799
|
-
const o = i.measure(10), s = i.measure(50), a =
|
|
12799
|
+
const o = i.measure(10), s = i.measure(50), a = Io(0.1, 0.99);
|
|
12800
12800
|
let l = !1;
|
|
12801
12801
|
function c() {
|
|
12802
12802
|
return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
@@ -12816,13 +12816,13 @@ function jI(t, e, n, r, i) {
|
|
|
12816
12816
|
};
|
|
12817
12817
|
}
|
|
12818
12818
|
function FI(t, e, n, r, i) {
|
|
12819
|
-
const o =
|
|
12819
|
+
const o = Io(-e + t, 0), s = d(), a = u(), l = f();
|
|
12820
12820
|
function c(m, h) {
|
|
12821
12821
|
return Na(m, h) <= 1;
|
|
12822
12822
|
}
|
|
12823
12823
|
function u() {
|
|
12824
12824
|
const m = s[0], h = Gn(s), g = s.lastIndexOf(m), v = s.indexOf(h) + 1;
|
|
12825
|
-
return
|
|
12825
|
+
return Io(g, v);
|
|
12826
12826
|
}
|
|
12827
12827
|
function d() {
|
|
12828
12828
|
return n.map((m, h) => {
|
|
@@ -12850,14 +12850,14 @@ function FI(t, e, n, r, i) {
|
|
|
12850
12850
|
function _I(t, e, n) {
|
|
12851
12851
|
const r = e[0], i = n ? r - t : Gn(e);
|
|
12852
12852
|
return {
|
|
12853
|
-
limit:
|
|
12853
|
+
limit: Io(i, r)
|
|
12854
12854
|
};
|
|
12855
12855
|
}
|
|
12856
12856
|
function HI(t, e, n, r) {
|
|
12857
12857
|
const o = e.min + 0.1, s = e.max + 0.1, {
|
|
12858
12858
|
reachedMin: a,
|
|
12859
12859
|
reachedMax: l
|
|
12860
|
-
} =
|
|
12860
|
+
} = Io(o, s);
|
|
12861
12861
|
function c(f) {
|
|
12862
12862
|
return f === 1 ? l(n.get()) : f === -1 ? a(n.get()) : !1;
|
|
12863
12863
|
}
|
|
@@ -13861,7 +13861,7 @@ const rL = ({ carouselOptions: t, autoPlayOptions: e }) => {
|
|
|
13861
13861
|
) })
|
|
13862
13862
|
}
|
|
13863
13863
|
);
|
|
13864
|
-
return r ?
|
|
13864
|
+
return r ? Po(c, r) : c;
|
|
13865
13865
|
}, sJ = {
|
|
13866
13866
|
main: /* @__PURE__ */ T.jsx(Le, { name: "brandLogos/logoMain" }),
|
|
13867
13867
|
white: /* @__PURE__ */ T.jsx(Le, { name: "brandLogos/logoWhite" }),
|
|
@@ -17741,7 +17741,7 @@ const sy = !(typeof window < "u" && window.document && window.document.createEle
|
|
|
17741
17741
|
}
|
|
17742
17742
|
}
|
|
17743
17743
|
});
|
|
17744
|
-
return /* @__PURE__ */ T.jsx(M1, { ref:
|
|
17744
|
+
return /* @__PURE__ */ T.jsx(M1, { ref: Wo(i, r), ...n });
|
|
17745
17745
|
});
|
|
17746
17746
|
N4.displayName = "MaskInput";
|
|
17747
17747
|
var AL = typeof document < "u", DL = function() {
|
|
@@ -18084,7 +18084,7 @@ function H4(t) {
|
|
|
18084
18084
|
n
|
|
18085
18085
|
]);
|
|
18086
18086
|
}
|
|
18087
|
-
let iV = !1, Hl = null, Qp = /* @__PURE__ */ new Set(), Ia = /* @__PURE__ */ new Map(),
|
|
18087
|
+
let iV = !1, Hl = null, Qp = /* @__PURE__ */ new Set(), Ia = /* @__PURE__ */ new Map(), Lo = !1, eh = !1;
|
|
18088
18088
|
const oV = {
|
|
18089
18089
|
Tab: !0,
|
|
18090
18090
|
Escape: !0
|
|
@@ -18096,26 +18096,26 @@ function sV(t) {
|
|
|
18096
18096
|
return !(t.metaKey || !A1() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
18097
18097
|
}
|
|
18098
18098
|
function Jc(t) {
|
|
18099
|
-
|
|
18099
|
+
Lo = !0, sV(t) && (Hl = "keyboard", D1("keyboard", t));
|
|
18100
18100
|
}
|
|
18101
18101
|
function Vn(t) {
|
|
18102
|
-
Hl = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (
|
|
18102
|
+
Hl = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Lo = !0, D1("pointer", t));
|
|
18103
18103
|
}
|
|
18104
18104
|
function B4(t) {
|
|
18105
|
-
nV(t) && (
|
|
18105
|
+
nV(t) && (Lo = !0, Hl = "virtual");
|
|
18106
18106
|
}
|
|
18107
18107
|
function $4(t) {
|
|
18108
|
-
t.target === window || t.target === document || iV || !t.isTrusted || (!
|
|
18108
|
+
t.target === window || t.target === document || iV || !t.isTrusted || (!Lo && !eh && (Hl = "virtual", D1("virtual", t)), Lo = !1, eh = !1);
|
|
18109
18109
|
}
|
|
18110
18110
|
function z4() {
|
|
18111
|
-
|
|
18111
|
+
Lo = !1, eh = !0;
|
|
18112
18112
|
}
|
|
18113
18113
|
function th(t) {
|
|
18114
18114
|
if (typeof window > "u" || typeof document > "u" || Ia.get(ao(t))) return;
|
|
18115
18115
|
const e = ao(t), n = Fi(t);
|
|
18116
18116
|
let r = e.HTMLElement.prototype.focus;
|
|
18117
18117
|
e.HTMLElement.prototype.focus = function() {
|
|
18118
|
-
|
|
18118
|
+
Lo = !0, r.apply(this, arguments);
|
|
18119
18119
|
}, n.addEventListener("keydown", Jc, !0), n.addEventListener("keyup", Jc, !0), n.addEventListener("click", B4, !0), e.addEventListener("focus", $4, !0), e.addEventListener("blur", z4, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Vn, !0), n.addEventListener("pointermove", Vn, !0), n.addEventListener("pointerup", Vn, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", Vn, !0), n.addEventListener("mousemove", Vn, !0), n.addEventListener("mouseup", Vn, !0)), e.addEventListener("beforeunload", () => {
|
|
18120
18120
|
W4(t);
|
|
18121
18121
|
}, {
|
|
@@ -18260,7 +18260,7 @@ function Z4(t) {
|
|
|
18260
18260
|
target: null
|
|
18261
18261
|
}).current;
|
|
18262
18262
|
Pe(pV, []);
|
|
18263
|
-
let { addGlobalListener: l, removeAllGlobalListeners: c } = F4(), { hoverProps: u, triggerHoverEnd: d } =
|
|
18263
|
+
let { addGlobalListener: l, removeAllGlobalListeners: c } = F4(), { hoverProps: u, triggerHoverEnd: d } = Ne(() => {
|
|
18264
18264
|
let f = (h, g) => {
|
|
18265
18265
|
if (a.pointerType = g, i || g === "touch" || a.isHovered || !h.currentTarget.contains(h.target)) return;
|
|
18266
18266
|
a.isHovered = !0;
|
|
@@ -18372,10 +18372,10 @@ let gV = class {
|
|
|
18372
18372
|
get isHandoffComplete() {
|
|
18373
18373
|
return this.handoffState === "complete";
|
|
18374
18374
|
}
|
|
18375
|
-
},
|
|
18375
|
+
}, So = new gV();
|
|
18376
18376
|
function Bl(t) {
|
|
18377
18377
|
var e, n;
|
|
18378
|
-
return
|
|
18378
|
+
return So.isServer ? null : t ? "ownerDocument" in t ? t.ownerDocument : "current" in t ? (n = (e = t.current) == null ? void 0 : e.ownerDocument) != null ? n : document : null : document;
|
|
18379
18379
|
}
|
|
18380
18380
|
function q4(t) {
|
|
18381
18381
|
typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
|
|
@@ -18423,16 +18423,16 @@ function $l() {
|
|
|
18423
18423
|
return Pe(() => () => t.dispose(), [t]), t;
|
|
18424
18424
|
}
|
|
18425
18425
|
let xt = (t, e) => {
|
|
18426
|
-
|
|
18426
|
+
So.isServer ? Pe(t, e) : Ni(t, e);
|
|
18427
18427
|
};
|
|
18428
|
-
function
|
|
18428
|
+
function Yo(t) {
|
|
18429
18429
|
let e = xe(t);
|
|
18430
18430
|
return xt(() => {
|
|
18431
18431
|
e.current = t;
|
|
18432
18432
|
}, [t]), e;
|
|
18433
18433
|
}
|
|
18434
18434
|
let Ze = function(t) {
|
|
18435
|
-
let e =
|
|
18435
|
+
let e = Yo(t);
|
|
18436
18436
|
return ie.useCallback((...n) => e.current(...n), [e]);
|
|
18437
18437
|
};
|
|
18438
18438
|
function vV(t) {
|
|
@@ -18614,7 +18614,7 @@ function PV({ children: t }) {
|
|
|
18614
18614
|
let e = Be(DV);
|
|
18615
18615
|
if (!e) return ie.createElement(ie.Fragment, null, t);
|
|
18616
18616
|
let { target: n } = e;
|
|
18617
|
-
return n ?
|
|
18617
|
+
return n ? Po(ie.createElement(ie.Fragment, null, t), n) : null;
|
|
18618
18618
|
}
|
|
18619
18619
|
function RV({ data: t, form: e, disabled: n, onReset: r, overrides: i }) {
|
|
18620
18620
|
let [o, s] = Te(null), a = $l();
|
|
@@ -18718,7 +18718,7 @@ let zV = "p";
|
|
|
18718
18718
|
function WV(t, e) {
|
|
18719
18719
|
let n = Bt(), r = P1(), { id: i = `headlessui-description-${n}`, ...o } = t, s = r6(), a = Kr(e);
|
|
18720
18720
|
xt(() => s.register(i), [i, s.register]);
|
|
18721
|
-
let l = r || !1, c =
|
|
18721
|
+
let l = r || !1, c = Ne(() => ({ ...s.slot, disabled: l }), [s.slot, l]), u = { ref: a, ...s.props, id: i };
|
|
18722
18722
|
return Xn()({ ourProps: u, theirProps: o, slot: c, defaultTag: zV, name: s.name || "Description" });
|
|
18723
18723
|
}
|
|
18724
18724
|
let UV = Qn(WV);
|
|
@@ -18741,11 +18741,11 @@ function vd(t) {
|
|
|
18741
18741
|
}
|
|
18742
18742
|
function ZV({ inherit: t = !1 } = {}) {
|
|
18743
18743
|
let e = vd(), [n, r] = Te([]), i = t ? [e, ...n].filter(Boolean) : n;
|
|
18744
|
-
return [i.length > 0 ? i.join(" ") : void 0,
|
|
18744
|
+
return [i.length > 0 ? i.join(" ") : void 0, Ne(() => function(o) {
|
|
18745
18745
|
let s = Ze((l) => (r((c) => [...c, l]), () => r((c) => {
|
|
18746
18746
|
let u = c.slice(), d = u.indexOf(l);
|
|
18747
18747
|
return d !== -1 && u.splice(d, 1), u;
|
|
18748
|
-
}))), a =
|
|
18748
|
+
}))), a = Ne(() => ({ register: s, slot: o.slot, name: o.name, props: o.props, value: o.value }), [s, o.slot, o.name, o.props, o.value]);
|
|
18749
18749
|
return ie.createElement(gd.Provider, { value: a }, o.children);
|
|
18750
18750
|
}, [r])];
|
|
18751
18751
|
}
|
|
@@ -18766,11 +18766,11 @@ function qV(t, e) {
|
|
|
18766
18766
|
(Qc(y) && (y.type === "file" || y.type === "radio" || y.type === "checkbox") || y.role === "radio" || y.role === "checkbox" || y.role === "switch") && y.click(), y.focus({ preventScroll: !0 });
|
|
18767
18767
|
}
|
|
18768
18768
|
}
|
|
18769
|
-
}), p = s || !1, m =
|
|
18769
|
+
}), p = s || !1, m = Ne(() => ({ ...i.slot, disabled: p }), [i.slot, p]), h = { ref: d, ...i.props, id: a, htmlFor: l, onClick: f };
|
|
18770
18770
|
return c && ("onClick" in h && (delete h.htmlFor, delete h.onClick), "onClick" in u && delete u.onClick), Xn()({ ourProps: h, theirProps: u, slot: m, defaultTag: l ? GV : "div", name: i.name || "Label" });
|
|
18771
18771
|
}
|
|
18772
18772
|
let KV = Qn(qV), YV = Object.assign(KV, {});
|
|
18773
|
-
function
|
|
18773
|
+
function is(t, e, n) {
|
|
18774
18774
|
let r = n.initialDeps ?? [], i;
|
|
18775
18775
|
function o() {
|
|
18776
18776
|
var s, a, l, c;
|
|
@@ -18959,7 +18959,7 @@ class oj {
|
|
|
18959
18959
|
}, this.notify = (n) => {
|
|
18960
18960
|
var r, i;
|
|
18961
18961
|
(i = (r = this.options).onChange) == null || i.call(r, this, n);
|
|
18962
|
-
}, this.maybeNotify =
|
|
18962
|
+
}, this.maybeNotify = is(
|
|
18963
18963
|
() => (this.calculateRange(), [
|
|
18964
18964
|
this.isScrolling,
|
|
18965
18965
|
this.range ? this.range.startIndex : null,
|
|
@@ -19017,7 +19017,7 @@ class oj {
|
|
|
19017
19017
|
break;
|
|
19018
19018
|
}
|
|
19019
19019
|
return o.size === this.options.lanes ? Array.from(o.values()).sort((s, a) => s.end === a.end ? s.index - a.index : s.end - a.end)[0] : void 0;
|
|
19020
|
-
}, this.getMeasurementOptions =
|
|
19020
|
+
}, this.getMeasurementOptions = is(
|
|
19021
19021
|
() => [
|
|
19022
19022
|
this.options.count,
|
|
19023
19023
|
this.options.paddingStart,
|
|
@@ -19035,7 +19035,7 @@ class oj {
|
|
|
19035
19035
|
{
|
|
19036
19036
|
key: !1
|
|
19037
19037
|
}
|
|
19038
|
-
), this.getMeasurements =
|
|
19038
|
+
), this.getMeasurements = is(
|
|
19039
19039
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
19040
19040
|
({ count: n, paddingStart: r, scrollMargin: i, getItemKey: o, enabled: s }, a) => {
|
|
19041
19041
|
if (!s)
|
|
@@ -19063,7 +19063,7 @@ class oj {
|
|
|
19063
19063
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
19064
19064
|
debug: () => this.options.debug
|
|
19065
19065
|
}
|
|
19066
|
-
), this.calculateRange =
|
|
19066
|
+
), this.calculateRange = is(
|
|
19067
19067
|
() => [
|
|
19068
19068
|
this.getMeasurements(),
|
|
19069
19069
|
this.getSize(),
|
|
@@ -19080,7 +19080,7 @@ class oj {
|
|
|
19080
19080
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
19081
19081
|
debug: () => this.options.debug
|
|
19082
19082
|
}
|
|
19083
|
-
), this.getVirtualIndexes =
|
|
19083
|
+
), this.getVirtualIndexes = is(
|
|
19084
19084
|
() => {
|
|
19085
19085
|
let n = null, r = null;
|
|
19086
19086
|
const i = this.calculateRange();
|
|
@@ -19130,7 +19130,7 @@ class oj {
|
|
|
19130
19130
|
return;
|
|
19131
19131
|
}
|
|
19132
19132
|
this._measureElement(n, void 0);
|
|
19133
|
-
}, this.getVirtualItems =
|
|
19133
|
+
}, this.getVirtualItems = is(
|
|
19134
19134
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
19135
19135
|
(n, r) => {
|
|
19136
19136
|
const i = [];
|
|
@@ -19330,7 +19330,7 @@ function dj(t) {
|
|
|
19330
19330
|
return { width: e, height: n };
|
|
19331
19331
|
}
|
|
19332
19332
|
function vy(t, e = !1) {
|
|
19333
|
-
let [n, r] = r3(() => ({}), {}), i =
|
|
19333
|
+
let [n, r] = r3(() => ({}), {}), i = Ne(() => dj(t), [t, n]);
|
|
19334
19334
|
return xt(() => {
|
|
19335
19335
|
if (!t) return;
|
|
19336
19336
|
let o = new ResizeObserver(r);
|
|
@@ -19600,7 +19600,7 @@ function kj(t, { allowed: e, disallowed: n } = {}) {
|
|
|
19600
19600
|
}, [r, e, n]);
|
|
19601
19601
|
}
|
|
19602
19602
|
function Sj(t, e, n) {
|
|
19603
|
-
let r =
|
|
19603
|
+
let r = Yo((i) => {
|
|
19604
19604
|
let o = i.getBoundingClientRect();
|
|
19605
19605
|
o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && n();
|
|
19606
19606
|
});
|
|
@@ -19658,8 +19658,8 @@ function Pj() {
|
|
|
19658
19658
|
function ah() {
|
|
19659
19659
|
return h6() || Pj();
|
|
19660
19660
|
}
|
|
19661
|
-
function
|
|
19662
|
-
let i =
|
|
19661
|
+
function gs(t, e, n, r) {
|
|
19662
|
+
let i = Yo(n);
|
|
19663
19663
|
Pe(() => {
|
|
19664
19664
|
if (!t) return;
|
|
19665
19665
|
function o(s) {
|
|
@@ -19669,7 +19669,7 @@ function ms(t, e, n, r) {
|
|
|
19669
19669
|
}, [t, e, r]);
|
|
19670
19670
|
}
|
|
19671
19671
|
function Rj(t, e, n, r) {
|
|
19672
|
-
let i =
|
|
19672
|
+
let i = Yo(n);
|
|
19673
19673
|
Pe(() => {
|
|
19674
19674
|
if (!t) return;
|
|
19675
19675
|
function o(s) {
|
|
@@ -19680,7 +19680,7 @@ function Rj(t, e, n, r) {
|
|
|
19680
19680
|
}
|
|
19681
19681
|
const Ey = 30;
|
|
19682
19682
|
function Nj(t, e, n) {
|
|
19683
|
-
let r =
|
|
19683
|
+
let r = Yo(n), i = we(function(a, l) {
|
|
19684
19684
|
if (a.defaultPrevented) return;
|
|
19685
19685
|
let c = l(a);
|
|
19686
19686
|
if (c === null || !c.getRootNode().contains(c) || !c.isConnected) return;
|
|
@@ -19690,32 +19690,32 @@ function Nj(t, e, n) {
|
|
|
19690
19690
|
for (let d of u) if (d !== null && (d.contains(c) || a.composed && a.composedPath().includes(d))) return;
|
|
19691
19691
|
return !Tj(c, p6.Loose) && c.tabIndex !== -1 && a.preventDefault(), r.current(a, c);
|
|
19692
19692
|
}, [r, e]), o = xe(null);
|
|
19693
|
-
|
|
19693
|
+
gs(t, "pointerdown", (a) => {
|
|
19694
19694
|
var l, c;
|
|
19695
19695
|
ah() || (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
19696
|
-
}, !0),
|
|
19696
|
+
}, !0), gs(t, "pointerup", (a) => {
|
|
19697
19697
|
if (ah() || !o.current) return;
|
|
19698
19698
|
let l = o.current;
|
|
19699
19699
|
return o.current = null, i(a, () => l);
|
|
19700
19700
|
}, !0);
|
|
19701
19701
|
let s = xe({ x: 0, y: 0 });
|
|
19702
|
-
|
|
19702
|
+
gs(t, "touchstart", (a) => {
|
|
19703
19703
|
s.current.x = a.touches[0].clientX, s.current.y = a.touches[0].clientY;
|
|
19704
|
-
}, !0),
|
|
19704
|
+
}, !0), gs(t, "touchend", (a) => {
|
|
19705
19705
|
let l = { x: a.changedTouches[0].clientX, y: a.changedTouches[0].clientY };
|
|
19706
19706
|
if (!(Math.abs(l.x - s.current.x) >= Ey || Math.abs(l.y - s.current.y) >= Ey)) return i(a, () => lo(a.target) ? a.target : null);
|
|
19707
19707
|
}, !0), Rj(t, "blur", (a) => i(a, () => VV(window.document.activeElement) ? window.document.activeElement : null), !0);
|
|
19708
19708
|
}
|
|
19709
19709
|
function eu(...t) {
|
|
19710
|
-
return
|
|
19710
|
+
return Ne(() => Bl(...t), [...t]);
|
|
19711
19711
|
}
|
|
19712
19712
|
var Ij = ((t) => (t[t.Ignore = 0] = "Ignore", t[t.Select = 1] = "Select", t[t.Close = 2] = "Close", t))(Ij || {});
|
|
19713
19713
|
const ca = { Ignore: { kind: 0 }, Select: (t) => ({ kind: 1, target: t }), Close: { kind: 2 } }, Lj = 200;
|
|
19714
19714
|
function Vj(t, { trigger: e, action: n, close: r, select: i }) {
|
|
19715
19715
|
let o = xe(null);
|
|
19716
|
-
|
|
19716
|
+
gs(t && e !== null, "pointerdown", (s) => {
|
|
19717
19717
|
I1(s == null ? void 0 : s.target) && e != null && e.contains(s.target) && (o.current = /* @__PURE__ */ new Date());
|
|
19718
|
-
}),
|
|
19718
|
+
}), gs(t && e !== null, "pointerup", (s) => {
|
|
19719
19719
|
if (o.current === null || !lo(s.target)) return;
|
|
19720
19720
|
let a = n(s), l = (/* @__PURE__ */ new Date()).getTime() - o.current.getTime();
|
|
19721
19721
|
switch (o.current = null, a.kind) {
|
|
@@ -19733,7 +19733,7 @@ function Vj(t, { trigger: e, action: n, close: r, select: i }) {
|
|
|
19733
19733
|
}, { capture: !0 });
|
|
19734
19734
|
}
|
|
19735
19735
|
function jj(t, e, n, r) {
|
|
19736
|
-
let i =
|
|
19736
|
+
let i = Yo(n);
|
|
19737
19737
|
Pe(() => {
|
|
19738
19738
|
t = t ?? window;
|
|
19739
19739
|
function o(s) {
|
|
@@ -19759,7 +19759,7 @@ function m6(t) {
|
|
|
19759
19759
|
});
|
|
19760
19760
|
}
|
|
19761
19761
|
function Fj(t, e) {
|
|
19762
|
-
return
|
|
19762
|
+
return Ne(() => {
|
|
19763
19763
|
var n;
|
|
19764
19764
|
if (t.type) return t.type;
|
|
19765
19765
|
let r = (n = t.as) != null ? n : "button";
|
|
@@ -20330,7 +20330,7 @@ zl.displayName = "FloatingContext";
|
|
|
20330
20330
|
let j1 = vt(null);
|
|
20331
20331
|
j1.displayName = "PlacementContext";
|
|
20332
20332
|
function CF(t) {
|
|
20333
|
-
return
|
|
20333
|
+
return Ne(() => t ? typeof t == "string" ? { to: t } : t : null, [t]);
|
|
20334
20334
|
}
|
|
20335
20335
|
function kF() {
|
|
20336
20336
|
return Be(zl).setReference;
|
|
@@ -20341,7 +20341,7 @@ function SF() {
|
|
|
20341
20341
|
}
|
|
20342
20342
|
function EF(t = null) {
|
|
20343
20343
|
t === !1 && (t = null), typeof t == "string" && (t = { to: t });
|
|
20344
|
-
let e = Be(j1), n =
|
|
20344
|
+
let e = Be(j1), n = Ne(() => t, [JSON.stringify(t, (i, o) => {
|
|
20345
20345
|
var s;
|
|
20346
20346
|
return (s = o == null ? void 0 : o.outerHTML) != null ? s : o;
|
|
20347
20347
|
})]);
|
|
@@ -20349,7 +20349,7 @@ function EF(t = null) {
|
|
|
20349
20349
|
e == null || e(n ?? null);
|
|
20350
20350
|
}, [e, n]);
|
|
20351
20351
|
let r = Be(zl);
|
|
20352
|
-
return
|
|
20352
|
+
return Ne(() => [r.setFloating, t ? r.styles : {}], [r.setFloating, t, r.styles]);
|
|
20353
20353
|
}
|
|
20354
20354
|
let Ly = 4;
|
|
20355
20355
|
function MF({ children: t, enabled: e = !0 }) {
|
|
@@ -20381,7 +20381,7 @@ function MF({ children: t, enabled: e = !0 }) {
|
|
|
20381
20381
|
Object.assign(R.floating.style, { overflow: "auto", maxWidth: `${A}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${D}px)` });
|
|
20382
20382
|
} })].filter(Boolean), whileElementsMounted: nd }), [x = h, b = g] = w.placement.split("-");
|
|
20383
20383
|
h === "selection" && (x = "selection");
|
|
20384
|
-
let C =
|
|
20384
|
+
let C = Ne(() => ({ anchor: [x, b].filter(Boolean).join(" ") }), [x, b]), E = wF(w, { overflowRef: s, onChange: o }), { getReferenceProps: S, getFloatingProps: O } = bF([E]), M = Ze((A) => {
|
|
20385
20385
|
l(A), v.setFloating(A);
|
|
20386
20386
|
});
|
|
20387
20387
|
return k.createElement(j1.Provider, { value: r }, k.createElement(zl.Provider, { value: { setFloating: M, setReference: v.setReference, styles: y, getReferenceProps: S, getFloatingProps: O, slot: C } }, t));
|
|
@@ -20435,7 +20435,7 @@ function Of(t, e, n = void 0) {
|
|
|
20435
20435
|
}];
|
|
20436
20436
|
}
|
|
20437
20437
|
return [n, null];
|
|
20438
|
-
}), o =
|
|
20438
|
+
}), o = Ne(() => i(t, e)[0], [t, e]), [s = o, a] = Te();
|
|
20439
20439
|
return xt(() => {
|
|
20440
20440
|
let [l, c] = i(t, e);
|
|
20441
20441
|
if (a(l), !!c) return c(a);
|
|
@@ -20540,10 +20540,10 @@ function IF() {
|
|
|
20540
20540
|
}, () => !1, () => !t) : !1;
|
|
20541
20541
|
}
|
|
20542
20542
|
function LF() {
|
|
20543
|
-
let t = IF(), [e, n] = k.useState(
|
|
20544
|
-
return e &&
|
|
20543
|
+
let t = IF(), [e, n] = k.useState(So.isHandoffComplete);
|
|
20544
|
+
return e && So.isHandoffComplete === !1 && n(!1), k.useEffect(() => {
|
|
20545
20545
|
e !== !0 && n(!0);
|
|
20546
|
-
}, [e]), k.useEffect(() =>
|
|
20546
|
+
}, [e]), k.useEffect(() => So.handoff(), []), t ? !1 : e;
|
|
20547
20547
|
}
|
|
20548
20548
|
let VF = vt(!1);
|
|
20549
20549
|
function jF() {
|
|
@@ -20553,7 +20553,7 @@ function FF(t) {
|
|
|
20553
20553
|
let e = jF(), n = Be(w6), [r, i] = Te(() => {
|
|
20554
20554
|
var o;
|
|
20555
20555
|
if (!e && n !== null) return (o = n.current) != null ? o : null;
|
|
20556
|
-
if (
|
|
20556
|
+
if (So.isServer) return null;
|
|
20557
20557
|
let s = t == null ? void 0 : t.getElementById("headlessui-portal-root");
|
|
20558
20558
|
if (s) return s;
|
|
20559
20559
|
if (t === null) return null;
|
|
@@ -20571,7 +20571,7 @@ let x6 = Hn, _F = Qn(function(t, e) {
|
|
|
20571
20571
|
i.current = p;
|
|
20572
20572
|
}), e), s = eu(i), a = n ?? s, l = FF(a), [c] = Te(() => {
|
|
20573
20573
|
var p;
|
|
20574
|
-
return
|
|
20574
|
+
return So.isServer ? null : (p = a == null ? void 0 : a.createElement("div")) != null ? p : null;
|
|
20575
20575
|
}), u = Be(zF), d = LF();
|
|
20576
20576
|
xt(() => {
|
|
20577
20577
|
!l || !c || l.contains(c) || (c.setAttribute("data-headlessui-portal", ""), l.appendChild(c));
|
|
@@ -20582,7 +20582,7 @@ let x6 = Hn, _F = Qn(function(t, e) {
|
|
|
20582
20582
|
!l || !c || (I1(c) && l.contains(c) && l.removeChild(c), l.childNodes.length <= 0 && ((p = l.parentElement) == null || p.removeChild(l)));
|
|
20583
20583
|
});
|
|
20584
20584
|
let f = Xn();
|
|
20585
|
-
return d ? !l || !c ? null :
|
|
20585
|
+
return d ? !l || !c ? null : Po(f({ ourProps: { ref: o }, theirProps: r, slot: {}, defaultTag: x6, name: "Portal" }), c) : null;
|
|
20586
20586
|
});
|
|
20587
20587
|
function HF(t, e) {
|
|
20588
20588
|
let n = Kr(e), { enabled: r = !0, ownerDocument: i, ...o } = t, s = Xn();
|
|
@@ -20743,7 +20743,7 @@ function Wl(t) {
|
|
|
20743
20743
|
return e;
|
|
20744
20744
|
}
|
|
20745
20745
|
function S6({ id: t, virtual: e = null, __demoMode: n = !1 }) {
|
|
20746
|
-
let r =
|
|
20746
|
+
let r = Ne(() => H1.new({ id: t, virtual: e, __demoMode: n }), []);
|
|
20747
20747
|
return b6(() => r.dispose()), r;
|
|
20748
20748
|
}
|
|
20749
20749
|
let al = vt(null);
|
|
@@ -20758,7 +20758,7 @@ function ta(t) {
|
|
|
20758
20758
|
}
|
|
20759
20759
|
let E6 = vt(null);
|
|
20760
20760
|
function YF(t) {
|
|
20761
|
-
let e = Wl("VirtualProvider"), n = ta("VirtualProvider"), { options: r } = n.virtual, i = jt(e, (p) => p.optionsElement), [o, s] =
|
|
20761
|
+
let e = Wl("VirtualProvider"), n = ta("VirtualProvider"), { options: r } = n.virtual, i = jt(e, (p) => p.optionsElement), [o, s] = Ne(() => {
|
|
20762
20762
|
let p = i;
|
|
20763
20763
|
if (!p) return [0, 0];
|
|
20764
20764
|
let m = window.getComputedStyle(p);
|
|
@@ -20781,7 +20781,7 @@ function YF(t) {
|
|
|
20781
20781
|
}
|
|
20782
20782
|
let JF = Hn;
|
|
20783
20783
|
function XF(t, e) {
|
|
20784
|
-
let n = Bt(), r = P1(), { value: i, defaultValue: o, onChange: s, form: a, name: l, by: c, invalid: u = !1, disabled: d = r || !1, onClose: f, __demoMode: p = !1, multiple: m = !1, immediate: h = !1, virtual: g = null, nullable: v, ...y } = t, w = OV(o), [x = m ? [] : void 0, b] = MV(i, s, w), C = S6({ id: n, virtual: g, __demoMode: p }), E = xe({ static: !1, hold: !1 }), S = uj(c), O = Ze((W) => g ? c === null ? g.options.indexOf(W) : g.options.findIndex((q) => S(q, W)) : C.state.options.findIndex((q) => S(q.dataRef.current.value, W))), M = we((W) => vr(R.mode, { [kn.Multi]: () => x.some((q) => S(q, W)), [kn.Single]: () => S(x, W) }), [x]), A = jt(C, (W) => W.virtual), D = Ze(() => f == null ? void 0 : f()), R =
|
|
20784
|
+
let n = Bt(), r = P1(), { value: i, defaultValue: o, onChange: s, form: a, name: l, by: c, invalid: u = !1, disabled: d = r || !1, onClose: f, __demoMode: p = !1, multiple: m = !1, immediate: h = !1, virtual: g = null, nullable: v, ...y } = t, w = OV(o), [x = m ? [] : void 0, b] = MV(i, s, w), C = S6({ id: n, virtual: g, __demoMode: p }), E = xe({ static: !1, hold: !1 }), S = uj(c), O = Ze((W) => g ? c === null ? g.options.indexOf(W) : g.options.findIndex((q) => S(q, W)) : C.state.options.findIndex((q) => S(q.dataRef.current.value, W))), M = we((W) => vr(R.mode, { [kn.Multi]: () => x.some((q) => S(q, W)), [kn.Single]: () => S(x, W) }), [x]), A = jt(C, (W) => W.virtual), D = Ze(() => f == null ? void 0 : f()), R = Ne(() => ({ __demoMode: p, immediate: h, optionsPropsRef: E, value: x, defaultValue: w, disabled: d, invalid: u, mode: m ? kn.Multi : kn.Single, virtual: g ? A : null, onChange: b, isSelected: M, calculateIndex: O, compare: S, onClose: D }), [x, w, d, u, m, b, M, p, C, g, A, D]);
|
|
20785
20785
|
xt(() => {
|
|
20786
20786
|
var W;
|
|
20787
20787
|
g && C.send({ type: C6.UpdateVirtualConfiguration, options: g.options, disabled: (W = g.disabled) != null ? W : null });
|
|
@@ -20790,7 +20790,7 @@ function XF(t, e) {
|
|
|
20790
20790
|
}, [R]);
|
|
20791
20791
|
let [I, j, V, L] = jt(C, (W) => [W.comboboxState, W.buttonElement, W.inputElement, W.optionsElement]), F = V1.get(null), z = jt(F, we((W) => F.selectors.isTop(W, n), [F, n]));
|
|
20792
20792
|
Nj(z, [j, V, L], () => C.actions.closeCombobox());
|
|
20793
|
-
let P = jt(C, C.selectors.activeOptionIndex), N = jt(C, C.selectors.activeOption), $ =
|
|
20793
|
+
let P = jt(C, C.selectors.activeOptionIndex), N = jt(C, C.selectors.activeOption), $ = Ne(() => ({ open: I === Ue.Open, disabled: d, invalid: u, activeIndex: P, activeOption: N, value: x }), [R, d, x, u, N, I]), [_, H] = ZV(), G = e === null ? {} : { ref: e }, U = we(() => {
|
|
20794
20794
|
if (w !== void 0) return b == null ? void 0 : b(w);
|
|
20795
20795
|
}, [b, w]), J = Xn();
|
|
20796
20796
|
return ie.createElement(H, { value: _, props: { htmlFor: V == null ? void 0 : V.id }, slot: { open: I === Ue.Open, disabled: d } }, ie.createElement(MF, null, ie.createElement(al.Provider, { value: R }, ie.createElement(k6.Provider, { value: C }, ie.createElement(PF, { value: vr(I, { [Ue.Open]: sl.Open, [Ue.Closed]: sl.Closed }) }, l != null && ie.createElement(RV, { disabled: d, data: x != null ? { [l]: x } : {}, form: a, onReset: U }), J({ ourProps: G, theirProps: y, slot: $, defaultTag: JF, name: "Combobox" }))))));
|
|
@@ -20800,7 +20800,7 @@ function e_(t, e) {
|
|
|
20800
20800
|
var n, r;
|
|
20801
20801
|
let i = Wl("Combobox.Input"), o = ta("Combobox.Input"), s = Bt(), a = e6(), { id: l = a || `headlessui-combobox-input-${s}`, onChange: c, displayValue: u, disabled: d = o.disabled || !1, autoFocus: f = !1, type: p = "text", ...m } = t, [h] = jt(i, (H) => [H.inputElement]), g = xe(null), v = Kr(g, e, kF(), i.actions.setInputElement), y = eu(h), [w, x] = jt(i, (H) => [H.comboboxState, H.isTyping]), b = $l(), C = Ze(() => {
|
|
20802
20802
|
i.actions.onChange(null), i.state.optionsElement && (i.state.optionsElement.scrollTop = 0), i.actions.goToOption({ focus: Lt.Nothing });
|
|
20803
|
-
}), E =
|
|
20803
|
+
}), E = Ne(() => {
|
|
20804
20804
|
var H;
|
|
20805
20805
|
return typeof u == "function" && o.value !== void 0 ? (H = u(o.value)) != null ? H : "" : typeof o.value == "string" ? o.value : "";
|
|
20806
20806
|
}, [o.value, u]);
|
|
@@ -20872,7 +20872,7 @@ function e_(t, e) {
|
|
|
20872
20872
|
(U = i.state.buttonElement) != null && U.contains(W) || (J = i.state.optionsElement) != null && J.contains(W) || o.disabled || o.immediate && i.state.comboboxState !== Ue.Open && b.microTask(() => {
|
|
20873
20873
|
mi(() => i.actions.openCombobox()), i.actions.setActivationTrigger(bi.Focus);
|
|
20874
20874
|
});
|
|
20875
|
-
}), j = vd(), V = $V(), { isFocused: L, focusProps: F } = G4({ autoFocus: f }), { isHovered: z, hoverProps: P } = Z4({ isDisabled: d }), N = jt(i, (H) => H.optionsElement), $ =
|
|
20875
|
+
}), j = vd(), V = $V(), { isFocused: L, focusProps: F } = G4({ autoFocus: f }), { isHovered: z, hoverProps: P } = Z4({ isDisabled: d }), N = jt(i, (H) => H.optionsElement), $ = Ne(() => ({ open: w === Ue.Open, disabled: d, invalid: o.invalid, hover: z, focus: L, autofocus: f }), [o, z, L, f, d, o.invalid]), _ = R1({ ref: v, id: l, role: "combobox", type: p, "aria-controls": N == null ? void 0 : N.id, "aria-expanded": w === Ue.Open, "aria-activedescendant": jt(i, i.selectors.activeDescendantId), "aria-labelledby": j, "aria-describedby": V, "aria-autocomplete": "list", defaultValue: (r = (n = t.defaultValue) != null ? n : o.defaultValue !== void 0 ? u == null ? void 0 : u(o.defaultValue) : null) != null ? r : o.defaultValue, disabled: d || void 0, autoFocus: f, onCompositionStart: O, onCompositionEnd: M, onKeyDown: A, onChange: D, onFocus: I, onBlur: R }, F, P);
|
|
20876
20876
|
return Xn()({ ourProps: _, theirProps: m, slot: $, defaultTag: QF, name: "Combobox.Input" });
|
|
20877
20877
|
}
|
|
20878
20878
|
let t_ = "button";
|
|
@@ -20904,7 +20904,7 @@ function n_(t, e) {
|
|
|
20904
20904
|
}
|
|
20905
20905
|
}), y = Ze((D) => {
|
|
20906
20906
|
D.preventDefault(), !_V(D.currentTarget) && (D.button === _1.Left && (n.state.comboboxState === Ue.Open ? n.actions.closeCombobox() : n.actions.openCombobox()), h());
|
|
20907
|
-
}), w = vd([l]), { isFocusVisible: x, focusProps: b } = G4({ autoFocus: u }), { isHovered: C, hoverProps: E } = Z4({ isDisabled: c }), { pressed: S, pressProps: O } = bV({ disabled: c }), M =
|
|
20907
|
+
}), w = vd([l]), { isFocusVisible: x, focusProps: b } = G4({ autoFocus: u }), { isHovered: C, hoverProps: E } = Z4({ isDisabled: c }), { pressed: S, pressProps: O } = bV({ disabled: c }), M = Ne(() => ({ open: f === Ue.Open, active: S || f === Ue.Open, disabled: c, invalid: r.invalid, value: r.value, hover: C, focus: x }), [r, C, x, S, c, f]), A = R1({ ref: s, id: l, type: Fj(t, i), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": m == null ? void 0 : m.id, "aria-expanded": f === Ue.Open, "aria-labelledby": w, disabled: c || void 0, autoFocus: u, onPointerDown: y, onKeyDown: v }, b, E, O);
|
|
20908
20908
|
return Xn()({ ourProps: A, theirProps: d, slot: M, defaultTag: t_, name: "Combobox.Button" });
|
|
20909
20909
|
}
|
|
20910
20910
|
let r_ = "div", i_ = rh.RenderStrategy | rh.Static;
|
|
@@ -20927,23 +20927,23 @@ function o_(t, e) {
|
|
|
20927
20927
|
}, walk(ee) {
|
|
20928
20928
|
ee.setAttribute("role", "none");
|
|
20929
20929
|
} });
|
|
20930
|
-
let F = vd([S == null ? void 0 : S.id]), z =
|
|
20930
|
+
let F = vd([S == null ? void 0 : S.id]), z = Ne(() => ({ open: C === Ue.Open, option: void 0 }), [C]), P = Ze(() => {
|
|
20931
20931
|
p.actions.setActivationTrigger(bi.Pointer);
|
|
20932
20932
|
}), N = Ze((ee) => {
|
|
20933
20933
|
ee.preventDefault(), p.actions.setActivationTrigger(bi.Pointer);
|
|
20934
|
-
}), $ = R1(h ? x() : {}, { "aria-labelledby": F, role: "listbox", "aria-multiselectable": m.mode === kn.Multi ? !0 : void 0, id: s, ref: b, style: { ...f.style, ...v, "--input-width": vy(E, !0).width, "--button-width": vy(S, !0).width }, onWheel: M === bi.Pointer ? void 0 : P, onMouseDown: N, ...Yj(j) }), _ = I && C === Ue.Closed, H = ch(_, (n = m.virtual) == null ? void 0 : n.options), G = ch(_, m.value), U = Ze((ee) => m.compare(G, ee)), J =
|
|
20934
|
+
}), $ = R1(h ? x() : {}, { "aria-labelledby": F, role: "listbox", "aria-multiselectable": m.mode === kn.Multi ? !0 : void 0, id: s, ref: b, style: { ...f.style, ...v, "--input-width": vy(E, !0).width, "--button-width": vy(S, !0).width }, onWheel: M === bi.Pointer ? void 0 : P, onMouseDown: N, ...Yj(j) }), _ = I && C === Ue.Closed, H = ch(_, (n = m.virtual) == null ? void 0 : n.options), G = ch(_, m.value), U = Ze((ee) => m.compare(G, ee)), J = Ne(() => {
|
|
20935
20935
|
if (!m.virtual) return m;
|
|
20936
20936
|
if (H === void 0) throw new Error("Missing `options` in virtual mode");
|
|
20937
20937
|
return H !== m.virtual.options ? { ...m, virtual: { ...m.virtual, options: H } } : m;
|
|
20938
20938
|
}, [m, H, (r = m.virtual) == null ? void 0 : r.options]);
|
|
20939
20939
|
m.virtual && Object.assign(f, { children: ie.createElement(al.Provider, { value: J }, ie.createElement(YF, { slot: z }, f.children)) });
|
|
20940
|
-
let W = Xn(), q =
|
|
20940
|
+
let W = Xn(), q = Ne(() => m.mode === kn.Multi ? m : { ...m, isSelected: U }, [m, U]);
|
|
20941
20941
|
return ie.createElement(ZF, { enabled: c ? t.static || I : !1, ownerDocument: A }, ie.createElement(al.Provider, { value: q }, W({ ourProps: $, theirProps: { ...f, children: ie.createElement(AF, { freeze: _ }, typeof f.children == "function" ? (i = f.children) == null ? void 0 : i.call(f, z) : f.children) }, slot: z, defaultTag: r_, features: i_, visible: I, name: "Combobox.Options" })));
|
|
20942
20942
|
}
|
|
20943
20943
|
let s_ = "div";
|
|
20944
20944
|
function a_(t, e) {
|
|
20945
20945
|
var n, r, i;
|
|
20946
|
-
let o = ta("Combobox.Option"), s = Wl("Combobox.Option"), a = Bt(), { id: l = `headlessui-combobox-option-${a}`, value: c, disabled: u = (i = (r = (n = o.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, c)) != null ? i : !1, order: d = null, ...f } = t, [p] = jt(s, (j) => [j.inputElement]), m = m6(p), h = jt(s, we((j) => s.selectors.isActive(j, c, l), [c, l])), g = o.isSelected(c), v = xe(null), y =
|
|
20946
|
+
let o = ta("Combobox.Option"), s = Wl("Combobox.Option"), a = Bt(), { id: l = `headlessui-combobox-option-${a}`, value: c, disabled: u = (i = (r = (n = o.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, c)) != null ? i : !1, order: d = null, ...f } = t, [p] = jt(s, (j) => [j.inputElement]), m = m6(p), h = jt(s, we((j) => s.selectors.isActive(j, c, l), [c, l])), g = o.isSelected(c), v = xe(null), y = Yo({ disabled: u, value: c, domRef: v, order: d }), w = Be(E6), x = Kr(e, v, w ? w.measureElement : null), b = Ze(() => {
|
|
20947
20947
|
s.actions.setIsTyping(!1), s.actions.onChange(c);
|
|
20948
20948
|
});
|
|
20949
20949
|
xt(() => s.actions.registerOption(l, y), [y, l]);
|
|
@@ -20966,7 +20966,7 @@ function a_(t, e) {
|
|
|
20966
20966
|
s.actions.goToOption({ focus: Lt.Specific, idx: V }, bi.Pointer);
|
|
20967
20967
|
}), D = Ze((j) => {
|
|
20968
20968
|
O.wasMoved(j) && (u || h && (o.optionsPropsRef.current.hold || s.actions.goToOption({ focus: Lt.Nothing })));
|
|
20969
|
-
}), R =
|
|
20969
|
+
}), R = Ne(() => ({ active: h, focus: h, selected: g, disabled: u }), [h, g, u]), I = { id: l, ref: x, role: "option", tabIndex: u === !0 ? void 0 : -1, "aria-disabled": u === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onMouseDown: E, onFocus: S, onPointerEnter: M, onMouseEnter: M, onPointerMove: A, onMouseMove: A, onPointerLeave: D, onMouseLeave: D };
|
|
20970
20970
|
return Xn()({ ourProps: I, theirProps: f, slot: R, defaultTag: s_, name: "Combobox.Option" });
|
|
20971
20971
|
}
|
|
20972
20972
|
let l_ = Qn(XF), uh = Qn(n_), M6 = Qn(e_), c_ = YV, O6 = Qn(o_), T6 = Qn(a_), u_ = Object.assign(l_, { Input: M6, Button: uh, Label: c_, Options: O6, Option: T6 });
|
|
@@ -20983,7 +20983,7 @@ const d_ = ({
|
|
|
20983
20983
|
const [l, c] = Te(""), u = (v) => e ? e(v) : v.label, d = (v) => {
|
|
20984
20984
|
const { value: y } = v.target;
|
|
20985
20985
|
c(y);
|
|
20986
|
-
}, f =
|
|
20986
|
+
}, f = Ne(() => i || !n ? t : t.filter(
|
|
20987
20987
|
(v) => u(v).toLowerCase().includes(o ? o.toLowerCase() : l.toLowerCase())
|
|
20988
20988
|
), [n, t, u, l, o, i]), p = () => {
|
|
20989
20989
|
r && r(void 0), a != null && a.onChange && (a == null || a.onChange(void 0));
|
|
@@ -21115,7 +21115,7 @@ const d_ = ({
|
|
|
21115
21115
|
/* @__PURE__ */ T.jsx(uh, { className: "w-full", children: /* @__PURE__ */ T.jsx(
|
|
21116
21116
|
M6,
|
|
21117
21117
|
{
|
|
21118
|
-
ref:
|
|
21118
|
+
ref: Wo(w, E.setReference),
|
|
21119
21119
|
"data-test-id": "select-input",
|
|
21120
21120
|
as: Tt.InputBase,
|
|
21121
21121
|
label: t,
|
|
@@ -21542,7 +21542,7 @@ const F6 = nt(
|
|
|
21542
21542
|
}
|
|
21543
21543
|
}
|
|
21544
21544
|
),
|
|
21545
|
-
f &&
|
|
21545
|
+
f && Po(
|
|
21546
21546
|
/* @__PURE__ */ T.jsx(
|
|
21547
21547
|
r1,
|
|
21548
21548
|
{
|
|
@@ -21773,14 +21773,14 @@ function M_(t) {
|
|
|
21773
21773
|
function cl(t) {
|
|
21774
21774
|
return !!(t || "").match(/\d/);
|
|
21775
21775
|
}
|
|
21776
|
-
function
|
|
21776
|
+
function ws(t) {
|
|
21777
21777
|
return t == null;
|
|
21778
21778
|
}
|
|
21779
21779
|
function O_(t) {
|
|
21780
21780
|
return typeof t == "number" && isNaN(t);
|
|
21781
21781
|
}
|
|
21782
21782
|
function Z6(t) {
|
|
21783
|
-
return
|
|
21783
|
+
return ws(t) || O_(t) || typeof t == "number" && !isFinite(t);
|
|
21784
21784
|
}
|
|
21785
21785
|
function G6(t) {
|
|
21786
21786
|
return t.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
@@ -21964,16 +21964,16 @@ function J6(t, e, n, r, i, o) {
|
|
|
21964
21964
|
var g, v;
|
|
21965
21965
|
return Z6(m) ? (v = "", g = "") : typeof m == "number" || h ? (v = typeof m == "number" ? K6(m) : m, g = r(v)) : (v = i(m, void 0), g = r(v)), { formattedValue: g, numAsString: v };
|
|
21966
21966
|
}), a = Te(function() {
|
|
21967
|
-
return s(
|
|
21967
|
+
return s(ws(t) ? e : t, n);
|
|
21968
21968
|
}), l = a[0], c = a[1], u = function(m, h) {
|
|
21969
21969
|
m.formattedValue !== l.formattedValue && c({
|
|
21970
21970
|
formattedValue: m.formattedValue,
|
|
21971
21971
|
numAsString: m.value
|
|
21972
21972
|
}), o(m, h);
|
|
21973
21973
|
}, d = t, f = n;
|
|
21974
|
-
|
|
21974
|
+
ws(t) && (d = l.numAsString, f = !0);
|
|
21975
21975
|
var p = s(d, f);
|
|
21976
|
-
return
|
|
21976
|
+
return Ne(function() {
|
|
21977
21977
|
c(p);
|
|
21978
21978
|
}, [p.formattedValue]), [l, u];
|
|
21979
21979
|
}
|
|
@@ -22242,8 +22242,8 @@ function q_(t) {
|
|
|
22242
22242
|
return $y(V, t);
|
|
22243
22243
|
}, w = function(V, L) {
|
|
22244
22244
|
return U_(V, L, t);
|
|
22245
|
-
}, x =
|
|
22246
|
-
|
|
22245
|
+
}, x = ws(d) ? u : d, b = f ?? W_(x, c, e);
|
|
22246
|
+
ws(d) ? ws(u) || (b = b || typeof u == "number") : b = b || typeof d == "number";
|
|
22247
22247
|
var C = function(V) {
|
|
22248
22248
|
return Z6(V) ? V : (typeof V == "number" && (V = K6(V)), b && typeof a == "number" ? Hy(V, a, !!l) : V);
|
|
22249
22249
|
}, E = J6(C(d), C(u), !!b, y, w, p), S = E[0], O = S.numAsString, M = S.formattedValue, A = E[1], D = function(V) {
|
|
@@ -22492,8 +22492,8 @@ var Q6 = { exports: {} };
|
|
|
22492
22492
|
})();
|
|
22493
22493
|
})(Q6);
|
|
22494
22494
|
var iH = Q6.exports;
|
|
22495
|
-
const
|
|
22496
|
-
function
|
|
22495
|
+
const Vo = /* @__PURE__ */ a3(iH);
|
|
22496
|
+
function Cs(t) {
|
|
22497
22497
|
var e = k.useRef();
|
|
22498
22498
|
e.current = t;
|
|
22499
22499
|
var n = k.useCallback(function() {
|
|
@@ -22539,14 +22539,14 @@ function Pf(t) {
|
|
|
22539
22539
|
function sH(t, e) {
|
|
22540
22540
|
var n = e || {}, r = n.defaultValue, i = n.value, o = n.onChange, s = n.postState, a = Ky(function() {
|
|
22541
22541
|
return Pf(i) ? i : Pf(r) ? typeof r == "function" ? r() : r : typeof t == "function" ? t() : t;
|
|
22542
|
-
}), l = Ut(a, 2), c = l[0], u = l[1], d = i !== void 0 ? i : c, f = s ? s(d) : d, p =
|
|
22542
|
+
}), l = Ut(a, 2), c = l[0], u = l[1], d = i !== void 0 ? i : c, f = s ? s(d) : d, p = Cs(o), m = Ky([d]), h = Ut(m, 2), g = h[0], v = h[1];
|
|
22543
22543
|
qy(function() {
|
|
22544
22544
|
var w = g[0];
|
|
22545
22545
|
c !== w && p(c, w);
|
|
22546
22546
|
}, [g]), qy(function() {
|
|
22547
22547
|
Pf(i) || u(i);
|
|
22548
22548
|
}, [i]);
|
|
22549
|
-
var y =
|
|
22549
|
+
var y = Cs(function(w, x) {
|
|
22550
22550
|
u(w, x), v([d], x);
|
|
22551
22551
|
});
|
|
22552
22552
|
return [f, y];
|
|
@@ -22576,20 +22576,20 @@ function cH() {
|
|
|
22576
22576
|
function n9(t, e, n) {
|
|
22577
22577
|
!e && !fh[n] && (t(!1, n), fh[n] = !0);
|
|
22578
22578
|
}
|
|
22579
|
-
function
|
|
22579
|
+
function Eo(t, e) {
|
|
22580
22580
|
n9(t9, t, e);
|
|
22581
22581
|
}
|
|
22582
22582
|
function uH(t, e) {
|
|
22583
22583
|
n9(lH, t, e);
|
|
22584
22584
|
}
|
|
22585
|
-
|
|
22586
|
-
|
|
22587
|
-
|
|
22585
|
+
Eo.preMessage = aH;
|
|
22586
|
+
Eo.resetWarned = cH;
|
|
22587
|
+
Eo.noteOnce = uH;
|
|
22588
22588
|
function dH(t, e) {
|
|
22589
22589
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = /* @__PURE__ */ new Set();
|
|
22590
22590
|
function i(o, s) {
|
|
22591
22591
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = r.has(o);
|
|
22592
|
-
if (
|
|
22592
|
+
if (Eo(!l, "Warning: There may be circular references"), l)
|
|
22593
22593
|
return !1;
|
|
22594
22594
|
if (o === s)
|
|
22595
22595
|
return !0;
|
|
@@ -22715,7 +22715,7 @@ var It = {
|
|
|
22715
22715
|
* DELETE
|
|
22716
22716
|
*/
|
|
22717
22717
|
DELETE: 46
|
|
22718
|
-
},
|
|
22718
|
+
}, Jo = /* @__PURE__ */ k.createContext({
|
|
22719
22719
|
min: 0,
|
|
22720
22720
|
max: 0,
|
|
22721
22721
|
direction: "ltr",
|
|
@@ -22727,7 +22727,7 @@ var It = {
|
|
|
22727
22727
|
styles: {},
|
|
22728
22728
|
classNames: {}
|
|
22729
22729
|
}), pH = /* @__PURE__ */ k.createContext({}), hH = ["prefixCls", "value", "valueIndex", "onStartMove", "onDelete", "style", "render", "dragging", "draggingDelete", "onOffsetChange", "onChangeComplete", "onFocus", "onMouseEnter"], hh = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
22730
|
-
var n = t.prefixCls, r = t.value, i = t.valueIndex, o = t.onStartMove, s = t.onDelete, a = t.style, l = t.render, c = t.dragging, u = t.draggingDelete, d = t.onOffsetChange, f = t.onChangeComplete, p = t.onFocus, m = t.onMouseEnter, h = r9(t, hH), g = k.useContext(
|
|
22730
|
+
var n = t.prefixCls, r = t.value, i = t.valueIndex, o = t.onStartMove, s = t.onDelete, a = t.style, l = t.render, c = t.dragging, u = t.draggingDelete, d = t.onOffsetChange, f = t.onChangeComplete, p = t.onFocus, m = t.onMouseEnter, h = r9(t, hH), g = k.useContext(Jo), v = g.min, y = g.max, w = g.direction, x = g.disabled, b = g.keyboard, C = g.range, E = g.tabIndex, S = g.ariaLabelForHandle, O = g.ariaLabelledByForHandle, M = g.ariaRequired, A = g.ariaValueTextFormatterForHandle, D = g.styles, R = g.classNames, I = "".concat(n, "-handle"), j = function(G) {
|
|
22731
22731
|
x || o(G, i);
|
|
22732
22732
|
}, V = function(G) {
|
|
22733
22733
|
p == null || p(G, i);
|
|
@@ -22808,7 +22808,7 @@ var It = {
|
|
|
22808
22808
|
}
|
|
22809
22809
|
var _ = /* @__PURE__ */ k.createElement("div", ul({
|
|
22810
22810
|
ref: e,
|
|
22811
|
-
className:
|
|
22811
|
+
className: Vo(I, Fn(Fn(Fn({}, "".concat(I, "-").concat(i + 1), i !== null && C), "".concat(I, "-dragging"), c), "".concat(I, "-dragging-delete"), u), R.handle),
|
|
22812
22812
|
style: rn(rn(rn({}, P), a), D.handle)
|
|
22813
22813
|
}, N, h));
|
|
22814
22814
|
return l && (_ = l(_, {
|
|
@@ -22879,9 +22879,9 @@ var mH = ["prefixCls", "style", "onStartMove", "onOffsetChange", "values", "hand
|
|
|
22879
22879
|
});
|
|
22880
22880
|
process.env.NODE_ENV !== "production" && (i9.displayName = "Handles");
|
|
22881
22881
|
var gH = function(e) {
|
|
22882
|
-
var n = e.prefixCls, r = e.style, i = e.children, o = e.value, s = e.onClick, a = k.useContext(
|
|
22882
|
+
var n = e.prefixCls, r = e.style, i = e.children, o = e.value, s = e.onClick, a = k.useContext(Jo), l = a.min, c = a.max, u = a.direction, d = a.includedStart, f = a.includedEnd, p = a.included, m = "".concat(n, "-text"), h = U1(u, o, l, c);
|
|
22883
22883
|
return /* @__PURE__ */ k.createElement("span", {
|
|
22884
|
-
className:
|
|
22884
|
+
className: Vo(m, Fn({}, "".concat(m, "-active"), p && d <= o && o <= f)),
|
|
22885
22885
|
style: rn(rn({}, h), r),
|
|
22886
22886
|
onMouseDown: function(v) {
|
|
22887
22887
|
v.stopPropagation();
|
|
@@ -22905,13 +22905,13 @@ var gH = function(e) {
|
|
|
22905
22905
|
}, c);
|
|
22906
22906
|
})) : null;
|
|
22907
22907
|
}, yH = function(e) {
|
|
22908
|
-
var n = e.prefixCls, r = e.value, i = e.style, o = e.activeStyle, s = k.useContext(
|
|
22908
|
+
var n = e.prefixCls, r = e.value, i = e.style, o = e.activeStyle, s = k.useContext(Jo), a = s.min, l = s.max, c = s.direction, u = s.included, d = s.includedStart, f = s.includedEnd, p = "".concat(n, "-dot"), m = u && d <= r && r <= f, h = rn(rn({}, U1(c, r, a, l)), typeof i == "function" ? i(r) : i);
|
|
22909
22909
|
return m && (h = rn(rn({}, h), typeof o == "function" ? o(r) : o)), /* @__PURE__ */ k.createElement("span", {
|
|
22910
|
-
className:
|
|
22910
|
+
className: Vo(p, Fn({}, "".concat(p, "-active"), m)),
|
|
22911
22911
|
style: h
|
|
22912
22912
|
});
|
|
22913
22913
|
}, bH = function(e) {
|
|
22914
|
-
var n = e.prefixCls, r = e.marks, i = e.dots, o = e.style, s = e.activeStyle, a = k.useContext(
|
|
22914
|
+
var n = e.prefixCls, r = e.marks, i = e.dots, o = e.style, s = e.activeStyle, a = k.useContext(Jo), l = a.min, c = a.max, u = a.step, d = k.useMemo(function() {
|
|
22915
22915
|
var f = /* @__PURE__ */ new Set();
|
|
22916
22916
|
if (r.forEach(function(m) {
|
|
22917
22917
|
f.add(m.value);
|
|
@@ -22932,7 +22932,7 @@ var gH = function(e) {
|
|
|
22932
22932
|
});
|
|
22933
22933
|
}));
|
|
22934
22934
|
}, Yy = function(e) {
|
|
22935
|
-
var n = e.prefixCls, r = e.style, i = e.start, o = e.end, s = e.index, a = e.onStartMove, l = e.replaceCls, c = k.useContext(
|
|
22935
|
+
var n = e.prefixCls, r = e.style, i = e.start, o = e.end, s = e.index, a = e.onStartMove, l = e.replaceCls, c = k.useContext(Jo), u = c.direction, d = c.min, f = c.max, p = c.disabled, m = c.range, h = c.classNames, g = "".concat(n, "-track"), v = ph(i, d, f), y = ph(o, d, f), w = function(E) {
|
|
22936
22936
|
!p && a && a(E, -1);
|
|
22937
22937
|
}, x = {};
|
|
22938
22938
|
switch (u) {
|
|
@@ -22948,7 +22948,7 @@ var gH = function(e) {
|
|
|
22948
22948
|
default:
|
|
22949
22949
|
x.left = "".concat(v * 100, "%"), x.width = "".concat(y * 100 - v * 100, "%");
|
|
22950
22950
|
}
|
|
22951
|
-
var b = l ||
|
|
22951
|
+
var b = l || Vo(g, Fn(Fn({}, "".concat(g, "-").concat(s + 1), s !== null && m), "".concat(n, "-track-draggable"), a), h.track);
|
|
22952
22952
|
return /* @__PURE__ */ k.createElement("div", {
|
|
22953
22953
|
className: b,
|
|
22954
22954
|
style: rn(rn({}, x), r),
|
|
@@ -22956,7 +22956,7 @@ var gH = function(e) {
|
|
|
22956
22956
|
onTouchStart: w
|
|
22957
22957
|
});
|
|
22958
22958
|
}, xH = function(e) {
|
|
22959
|
-
var n = e.prefixCls, r = e.style, i = e.values, o = e.startPoint, s = e.onStartMove, a = k.useContext(
|
|
22959
|
+
var n = e.prefixCls, r = e.style, i = e.values, o = e.startPoint, s = e.onStartMove, a = k.useContext(Jo), l = a.included, c = a.range, u = a.min, d = a.styles, f = a.classNames, p = k.useMemo(function() {
|
|
22960
22960
|
if (!c) {
|
|
22961
22961
|
if (i.length === 0)
|
|
22962
22962
|
return [];
|
|
@@ -22980,7 +22980,7 @@ var gH = function(e) {
|
|
|
22980
22980
|
prefixCls: n,
|
|
22981
22981
|
start: p[0].start,
|
|
22982
22982
|
end: p[p.length - 1].end,
|
|
22983
|
-
replaceCls:
|
|
22983
|
+
replaceCls: Vo(f.tracks, "".concat(n, "-tracks")),
|
|
22984
22984
|
style: d.tracks
|
|
22985
22985
|
}) : null;
|
|
22986
22986
|
return /* @__PURE__ */ k.createElement(k.Fragment, null, m, p.map(function(h, g) {
|
|
@@ -23023,7 +23023,7 @@ function CH(t, e, n, r, i, o, s, a, l, c, u) {
|
|
|
23023
23023
|
draggingIndex: v,
|
|
23024
23024
|
draggingValue: J
|
|
23025
23025
|
});
|
|
23026
|
-
}, $ =
|
|
23026
|
+
}, $ = Cs(function(G, U, J) {
|
|
23027
23027
|
if (G === -1) {
|
|
23028
23028
|
var W = R[0], q = R[R.length - 1], ee = r - W, ne = i - q, B = U * (i - r);
|
|
23029
23029
|
B = Math.max(B, ee), B = Math.min(B, ne);
|
|
@@ -23188,7 +23188,7 @@ function kH(t, e, n, r, i, o) {
|
|
|
23188
23188
|
return [l, f];
|
|
23189
23189
|
}
|
|
23190
23190
|
function SH(t) {
|
|
23191
|
-
return
|
|
23191
|
+
return Ne(function() {
|
|
23192
23192
|
if (t === !0 || !t)
|
|
23193
23193
|
return [!!t, !1, !1, 0];
|
|
23194
23194
|
var e = t.editable, n = t.draggableTrack, r = t.minCount, i = t.maxCount;
|
|
@@ -23239,15 +23239,15 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23239
23239
|
}), Nt;
|
|
23240
23240
|
}, [ke, Y, be, O, Kt]), ze = function(De) {
|
|
23241
23241
|
return Y ? De : De[0];
|
|
23242
|
-
}, At =
|
|
23242
|
+
}, At = Cs(function(Qe) {
|
|
23243
23243
|
var De = Nr(Qe).sort(function(rt, dt) {
|
|
23244
23244
|
return rt - dt;
|
|
23245
23245
|
});
|
|
23246
23246
|
M && !dH(De, Ke, !0) && M(ze(De)), $e(De);
|
|
23247
|
-
}), st =
|
|
23247
|
+
}), st = Cs(function(Qe) {
|
|
23248
23248
|
Qe && ce.current.hideHelp();
|
|
23249
23249
|
var De = ze(Ke);
|
|
23250
|
-
D == null || D(De),
|
|
23250
|
+
D == null || D(De), Eo(!D, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), R == null || R(De);
|
|
23251
23251
|
}), Rt = function(De) {
|
|
23252
23252
|
if (!(u || !Q || Ke.length <= me)) {
|
|
23253
23253
|
var rt = Nr(Ke);
|
|
@@ -23266,20 +23266,20 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23266
23266
|
Q && kr !== 0 && (!ve || Ke.length < ve) ? (dt.splice(Yr + 1, 0, De), Sr = Yr + 1) : dt[Nt] = De, Y && !Ke.length && O === void 0 && dt.push(De);
|
|
23267
23267
|
var Er = ze(dt);
|
|
23268
23268
|
if (A == null || A(Er), At(dt), rt) {
|
|
23269
|
-
var Ui,
|
|
23270
|
-
(Ui = document.activeElement) === null || Ui === void 0 || (
|
|
23269
|
+
var Ui, Qo;
|
|
23270
|
+
(Ui = document.activeElement) === null || Ui === void 0 || (Qo = Ui.blur) === null || Qo === void 0 || Qo.call(Ui), ce.current.focus(Sr), Fg(rt, Sr, dt);
|
|
23271
23271
|
} else
|
|
23272
|
-
D == null || D(Er),
|
|
23272
|
+
D == null || D(Er), Eo(!D, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), R == null || R(Er);
|
|
23273
23273
|
}
|
|
23274
23274
|
}, G7 = function(De) {
|
|
23275
23275
|
De.preventDefault();
|
|
23276
|
-
var rt = ge.current.getBoundingClientRect(), dt = rt.width, Nt = rt.height, Yr = rt.left, kr = rt.top, Sr = rt.bottom, Er = rt.right, Ui = De.clientX,
|
|
23276
|
+
var rt = ge.current.getBoundingClientRect(), dt = rt.width, Nt = rt.height, Yr = rt.left, kr = rt.top, Sr = rt.bottom, Er = rt.right, Ui = De.clientX, Qo = De.clientY, Jr;
|
|
23277
23277
|
switch (oe) {
|
|
23278
23278
|
case "btt":
|
|
23279
|
-
Jr = (Sr -
|
|
23279
|
+
Jr = (Sr - Qo) / Nt;
|
|
23280
23280
|
break;
|
|
23281
23281
|
case "ttb":
|
|
23282
|
-
Jr = (
|
|
23282
|
+
Jr = (Qo - kr) / Nt;
|
|
23283
23283
|
break;
|
|
23284
23284
|
case "rtl":
|
|
23285
23285
|
Jr = (Er - Ui) / dt;
|
|
@@ -23303,8 +23303,8 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23303
23303
|
Bg(null);
|
|
23304
23304
|
}, [_d]);
|
|
23305
23305
|
var Y7 = k.useMemo(function() {
|
|
23306
|
-
return de && qe === null ? (process.env.NODE_ENV !== "production" &&
|
|
23307
|
-
}, [de, qe]), $g =
|
|
23306
|
+
return de && qe === null ? (process.env.NODE_ENV !== "production" && Eo(!1, "`draggableTrack` is not supported when `step` is `null`."), !1) : de;
|
|
23307
|
+
}, [de, qe]), $g = Cs(function(Qe, De) {
|
|
23308
23308
|
Fg(Qe, De), A == null || A(ze(Ke));
|
|
23309
23309
|
}), zg = Yl !== -1;
|
|
23310
23310
|
k.useEffect(function() {
|
|
@@ -23354,16 +23354,16 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23354
23354
|
classNames: s || {}
|
|
23355
23355
|
};
|
|
23356
23356
|
}, [be, Ee, oe, u, f, qe, N, Ug, Zg, Y, X, se, pe, re, ue, a, s]);
|
|
23357
|
-
return /* @__PURE__ */ k.createElement(
|
|
23357
|
+
return /* @__PURE__ */ k.createElement(Jo.Provider, {
|
|
23358
23358
|
value: X7
|
|
23359
23359
|
}, /* @__PURE__ */ k.createElement("div", {
|
|
23360
23360
|
ref: ge,
|
|
23361
|
-
className:
|
|
23361
|
+
className: Vo(r, i, Fn(Fn(Fn(Fn({}, "".concat(r, "-disabled"), u), "".concat(r, "-vertical"), z), "".concat(r, "-horizontal"), !z), "".concat(r, "-with-marks"), lt.length)),
|
|
23362
23362
|
style: o,
|
|
23363
23363
|
onMouseDown: G7,
|
|
23364
23364
|
id: l
|
|
23365
23365
|
}, /* @__PURE__ */ k.createElement("div", {
|
|
23366
|
-
className:
|
|
23366
|
+
className: Vo("".concat(r, "-rail"), s == null ? void 0 : s.rail),
|
|
23367
23367
|
style: rn(rn({}, G), a == null ? void 0 : a.rail)
|
|
23368
23368
|
}), B !== !1 && /* @__PURE__ */ k.createElement(xH, {
|
|
23369
23369
|
prefixCls: r,
|
|
@@ -23542,7 +23542,7 @@ const Z1 = ({
|
|
|
23542
23542
|
thousandsGroupStyle: "thousand",
|
|
23543
23543
|
thousandSeparator: " ",
|
|
23544
23544
|
allowNegative: !1,
|
|
23545
|
-
getInputRef:
|
|
23545
|
+
getInputRef: Wo(v, h),
|
|
23546
23546
|
onValueChange: ({ floatValue: L }) => {
|
|
23547
23547
|
var F;
|
|
23548
23548
|
L !== void 0 && (o && o(L), (F = n == null ? void 0 : n.onInputChange) == null || F.call(n, L));
|
|
@@ -23641,7 +23641,7 @@ const Z1 = ({
|
|
|
23641
23641
|
thousandsGroupStyle: "thousand",
|
|
23642
23642
|
thousandSeparator: " ",
|
|
23643
23643
|
allowNegative: !1,
|
|
23644
|
-
getInputRef:
|
|
23644
|
+
getInputRef: Wo(h, p),
|
|
23645
23645
|
onValueChange: ({ floatValue: D }) => {
|
|
23646
23646
|
D && (o && o(D), n != null && n.onInputChange && n.onInputChange(D));
|
|
23647
23647
|
},
|
|
@@ -23752,7 +23752,7 @@ const Z1 = ({
|
|
|
23752
23752
|
thousandsGroupStyle: "thousand",
|
|
23753
23753
|
thousandSeparator: " ",
|
|
23754
23754
|
allowNegative: !1,
|
|
23755
|
-
getInputRef:
|
|
23755
|
+
getInputRef: Wo(y, g),
|
|
23756
23756
|
onValueChange: ({ floatValue: L }) => {
|
|
23757
23757
|
L && (o && o(L), n != null && n.onInputChange && n.onInputChange(L));
|
|
23758
23758
|
},
|
|
@@ -26214,7 +26214,7 @@ const lB = [
|
|
|
26214
26214
|
// Windows
|
|
26215
26215
|
];
|
|
26216
26216
|
function cB(t) {
|
|
26217
|
-
return
|
|
26217
|
+
return qo(this, void 0, void 0, function* () {
|
|
26218
26218
|
return tu(t) && uB(t.dataTransfer) ? hB(t.dataTransfer, t.type) : dB(t) ? fB(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? pB(t) : [];
|
|
26219
26219
|
});
|
|
26220
26220
|
}
|
|
@@ -26231,12 +26231,12 @@ function fB(t) {
|
|
|
26231
26231
|
return gh(t.target.files).map((e) => Bs(e));
|
|
26232
26232
|
}
|
|
26233
26233
|
function pB(t) {
|
|
26234
|
-
return
|
|
26234
|
+
return qo(this, void 0, void 0, function* () {
|
|
26235
26235
|
return (yield Promise.all(t.map((n) => n.getFile()))).map((n) => Bs(n));
|
|
26236
26236
|
});
|
|
26237
26237
|
}
|
|
26238
26238
|
function hB(t, e) {
|
|
26239
|
-
return
|
|
26239
|
+
return qo(this, void 0, void 0, function* () {
|
|
26240
26240
|
if (t.items) {
|
|
26241
26241
|
const n = gh(t.items).filter((i) => i.kind === "file");
|
|
26242
26242
|
if (e !== "drop")
|
|
@@ -26273,7 +26273,7 @@ function k9(t) {
|
|
|
26273
26273
|
], []);
|
|
26274
26274
|
}
|
|
26275
26275
|
function c2(t, e) {
|
|
26276
|
-
return
|
|
26276
|
+
return qo(this, void 0, void 0, function* () {
|
|
26277
26277
|
var n;
|
|
26278
26278
|
if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function") {
|
|
26279
26279
|
const o = yield t.getAsFileSystemHandle();
|
|
@@ -26291,7 +26291,7 @@ function c2(t, e) {
|
|
|
26291
26291
|
});
|
|
26292
26292
|
}
|
|
26293
26293
|
function gB(t) {
|
|
26294
|
-
return
|
|
26294
|
+
return qo(this, void 0, void 0, function* () {
|
|
26295
26295
|
return t.isDirectory ? S9(t) : vB(t);
|
|
26296
26296
|
});
|
|
26297
26297
|
}
|
|
@@ -26300,7 +26300,7 @@ function S9(t) {
|
|
|
26300
26300
|
return new Promise((n, r) => {
|
|
26301
26301
|
const i = [];
|
|
26302
26302
|
function o() {
|
|
26303
|
-
e.readEntries((s) =>
|
|
26303
|
+
e.readEntries((s) => qo(this, void 0, void 0, function* () {
|
|
26304
26304
|
if (s.length) {
|
|
26305
26305
|
const a = Promise.all(s.map(gB));
|
|
26306
26306
|
i.push(a), o();
|
|
@@ -26319,7 +26319,7 @@ function S9(t) {
|
|
|
26319
26319
|
});
|
|
26320
26320
|
}
|
|
26321
26321
|
function vB(t) {
|
|
26322
|
-
return
|
|
26322
|
+
return qo(this, void 0, void 0, function* () {
|
|
26323
26323
|
return new Promise((e, n) => {
|
|
26324
26324
|
t.file((r) => {
|
|
26325
26325
|
const i = Bs(r, t.fullPath);
|
|
@@ -26845,13 +26845,13 @@ var xh = {
|
|
|
26845
26845
|
fileRejections: []
|
|
26846
26846
|
};
|
|
26847
26847
|
function N9() {
|
|
26848
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = ft(ft({}, R9), t), n = e.accept, r = e.disabled, i = e.getFilesFromEvent, o = e.maxSize, s = e.minSize, a = e.multiple, l = e.maxFiles, c = e.onDragEnter, u = e.onDragLeave, d = e.onDragOver, f = e.onDrop, p = e.onDropAccepted, m = e.onDropRejected, h = e.onFileDialogCancel, g = e.onFileDialogOpen, v = e.useFsAccessApi, y = e.autoFocus, w = e.preventDropOnDocument, x = e.noClick, b = e.noKeyboard, C = e.noDrag, E = e.noDragEventsBubbling, S = e.onError, O = e.validator, M =
|
|
26848
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = ft(ft({}, R9), t), n = e.accept, r = e.disabled, i = e.getFilesFromEvent, o = e.maxSize, s = e.minSize, a = e.multiple, l = e.maxFiles, c = e.onDragEnter, u = e.onDragLeave, d = e.onDragOver, f = e.onDrop, p = e.onDropAccepted, m = e.onDropRejected, h = e.onFileDialogCancel, g = e.onFileDialogOpen, v = e.useFsAccessApi, y = e.autoFocus, w = e.preventDropOnDocument, x = e.noClick, b = e.noKeyboard, C = e.noDrag, E = e.noDragEventsBubbling, S = e.onError, O = e.validator, M = Ne(function() {
|
|
26849
26849
|
return jB(n);
|
|
26850
|
-
}, [n]), A =
|
|
26850
|
+
}, [n]), A = Ne(function() {
|
|
26851
26851
|
return VB(n);
|
|
26852
|
-
}, [n]), D =
|
|
26852
|
+
}, [n]), D = Ne(function() {
|
|
26853
26853
|
return typeof g == "function" ? g : v2;
|
|
26854
|
-
}, [g]), R =
|
|
26854
|
+
}, [g]), R = Ne(function() {
|
|
26855
26855
|
return typeof h == "function" ? h : v2;
|
|
26856
26856
|
}, [h]), I = xe(null), j = xe(null), V = r3(XB, xh), L = Hf(V, 2), F = L[0], z = L[1], P = F.isFocused, N = F.isFileDialogActive, $ = xe(typeof window < "u" && window.isSecureContext && v && LB()), _ = function() {
|
|
26857
26857
|
!$.current && N && setTimeout(function() {
|
|
@@ -27002,7 +27002,7 @@ function N9() {
|
|
|
27002
27002
|
return C ? null : re(Q);
|
|
27003
27003
|
}, ge = function(Q) {
|
|
27004
27004
|
E && Q.stopPropagation();
|
|
27005
|
-
}, oe =
|
|
27005
|
+
}, oe = Ne(function() {
|
|
27006
27006
|
return function() {
|
|
27007
27007
|
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, de = Q === void 0 ? "ref" : Q, me = Y.role, ve = Y.onKeyDown, be = Y.onFocus, Ee = Y.onBlur, qe = Y.onClick, _e = Y.onDragEnter, lt = Y.onDragOver, Pt = Y.onDragLeave, mn = Y.onDrop, Kt = ru(Y, $B);
|
|
27008
27008
|
return ft(ft(bh({
|
|
@@ -27021,7 +27021,7 @@ function N9() {
|
|
|
27021
27021
|
};
|
|
27022
27022
|
}, [I, ae, X, se, pe, J, W, q, ne, b, C, r]), K = we(function(Y) {
|
|
27023
27023
|
Y.stopPropagation();
|
|
27024
|
-
}, []), te =
|
|
27024
|
+
}, []), te = Ne(function() {
|
|
27025
27025
|
return function() {
|
|
27026
27026
|
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, de = Q === void 0 ? "ref" : Q, me = Y.onChange, ve = Y.onClick, be = ru(Y, zB), Ee = bh({
|
|
27027
27027
|
accept: M,
|
|
@@ -27479,7 +27479,7 @@ const x$ = nt(
|
|
|
27479
27479
|
var d;
|
|
27480
27480
|
e == null || e(u), (d = o == null ? void 0 : o.onChange) == null || d.call(o, u);
|
|
27481
27481
|
},
|
|
27482
|
-
ref:
|
|
27482
|
+
ref: Wo(c, l),
|
|
27483
27483
|
containerClassName: Z("flex items-center w-full", n == null ? void 0 : n.inputContainer),
|
|
27484
27484
|
className: Z("disabled:cursor-not-allowed", n == null ? void 0 : n.input),
|
|
27485
27485
|
onClick: o == null ? void 0 : o.onClick,
|
|
@@ -27583,7 +27583,7 @@ var X1 = class {
|
|
|
27583
27583
|
}
|
|
27584
27584
|
onUnsubscribe() {
|
|
27585
27585
|
}
|
|
27586
|
-
},
|
|
27586
|
+
}, jo = typeof window > "u" || "Deno" in globalThis;
|
|
27587
27587
|
function fl() {
|
|
27588
27588
|
}
|
|
27589
27589
|
function hJ(t, e) {
|
|
@@ -27595,7 +27595,7 @@ function wh(t) {
|
|
|
27595
27595
|
function H9(t, e) {
|
|
27596
27596
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
27597
27597
|
}
|
|
27598
|
-
function
|
|
27598
|
+
function ks(t, e) {
|
|
27599
27599
|
return typeof t == "function" ? t(e) : t;
|
|
27600
27600
|
}
|
|
27601
27601
|
function Wn(t, e) {
|
|
@@ -27725,14 +27725,14 @@ function S$(t, e) {
|
|
|
27725
27725
|
function E$(t, e) {
|
|
27726
27726
|
return typeof t == "function" ? t(...e) : !!t;
|
|
27727
27727
|
}
|
|
27728
|
-
var mo, ui,
|
|
27728
|
+
var mo, ui, Ms, Kb, M$ = (Kb = class extends X1 {
|
|
27729
27729
|
constructor() {
|
|
27730
27730
|
super();
|
|
27731
27731
|
Ge(this, mo);
|
|
27732
27732
|
Ge(this, ui);
|
|
27733
|
-
Ge(this,
|
|
27734
|
-
|
|
27735
|
-
if (!
|
|
27733
|
+
Ge(this, Ms);
|
|
27734
|
+
Re(this, Ms, (e) => {
|
|
27735
|
+
if (!jo && window.addEventListener) {
|
|
27736
27736
|
const n = () => e();
|
|
27737
27737
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
27738
27738
|
window.removeEventListener("visibilitychange", n);
|
|
@@ -27741,20 +27741,20 @@ var mo, ui, Es, Kb, M$ = (Kb = class extends X1 {
|
|
|
27741
27741
|
});
|
|
27742
27742
|
}
|
|
27743
27743
|
onSubscribe() {
|
|
27744
|
-
le(this, ui) || this.setEventListener(le(this,
|
|
27744
|
+
le(this, ui) || this.setEventListener(le(this, Ms));
|
|
27745
27745
|
}
|
|
27746
27746
|
onUnsubscribe() {
|
|
27747
27747
|
var e;
|
|
27748
|
-
this.hasListeners() || ((e = le(this, ui)) == null || e.call(this),
|
|
27748
|
+
this.hasListeners() || ((e = le(this, ui)) == null || e.call(this), Re(this, ui, void 0));
|
|
27749
27749
|
}
|
|
27750
27750
|
setEventListener(e) {
|
|
27751
27751
|
var n;
|
|
27752
|
-
|
|
27752
|
+
Re(this, Ms, e), (n = le(this, ui)) == null || n.call(this), Re(this, ui, e((r) => {
|
|
27753
27753
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
27754
27754
|
}));
|
|
27755
27755
|
}
|
|
27756
27756
|
setFocused(e) {
|
|
27757
|
-
le(this, mo) !== e && (
|
|
27757
|
+
le(this, mo) !== e && (Re(this, mo, e), this.onFocus());
|
|
27758
27758
|
}
|
|
27759
27759
|
onFocus() {
|
|
27760
27760
|
const e = this.isFocused();
|
|
@@ -27766,14 +27766,14 @@ var mo, ui, Es, Kb, M$ = (Kb = class extends X1 {
|
|
|
27766
27766
|
var e;
|
|
27767
27767
|
return typeof le(this, mo) == "boolean" ? le(this, mo) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
27768
27768
|
}
|
|
27769
|
-
}, mo = new WeakMap(), ui = new WeakMap(),
|
|
27769
|
+
}, mo = new WeakMap(), ui = new WeakMap(), Ms = new WeakMap(), Kb), B9 = new M$(), Os, di, Ts, Yb, O$ = (Yb = class extends X1 {
|
|
27770
27770
|
constructor() {
|
|
27771
27771
|
super();
|
|
27772
|
-
Ge(this,
|
|
27772
|
+
Ge(this, Os, !0);
|
|
27773
27773
|
Ge(this, di);
|
|
27774
|
-
Ge(this,
|
|
27775
|
-
|
|
27776
|
-
if (!
|
|
27774
|
+
Ge(this, Ts);
|
|
27775
|
+
Re(this, Ts, (e) => {
|
|
27776
|
+
if (!jo && window.addEventListener) {
|
|
27777
27777
|
const n = () => e(!0), r = () => e(!1);
|
|
27778
27778
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
27779
27779
|
window.removeEventListener("online", n), window.removeEventListener("offline", r);
|
|
@@ -27782,25 +27782,25 @@ var mo, ui, Es, Kb, M$ = (Kb = class extends X1 {
|
|
|
27782
27782
|
});
|
|
27783
27783
|
}
|
|
27784
27784
|
onSubscribe() {
|
|
27785
|
-
le(this, di) || this.setEventListener(le(this,
|
|
27785
|
+
le(this, di) || this.setEventListener(le(this, Ts));
|
|
27786
27786
|
}
|
|
27787
27787
|
onUnsubscribe() {
|
|
27788
27788
|
var e;
|
|
27789
|
-
this.hasListeners() || ((e = le(this, di)) == null || e.call(this),
|
|
27789
|
+
this.hasListeners() || ((e = le(this, di)) == null || e.call(this), Re(this, di, void 0));
|
|
27790
27790
|
}
|
|
27791
27791
|
setEventListener(e) {
|
|
27792
27792
|
var n;
|
|
27793
|
-
|
|
27793
|
+
Re(this, Ts, e), (n = le(this, di)) == null || n.call(this), Re(this, di, e(this.setOnline.bind(this)));
|
|
27794
27794
|
}
|
|
27795
27795
|
setOnline(e) {
|
|
27796
|
-
le(this,
|
|
27796
|
+
le(this, Os) !== e && (Re(this, Os, e), this.listeners.forEach((r) => {
|
|
27797
27797
|
r(e);
|
|
27798
27798
|
}));
|
|
27799
27799
|
}
|
|
27800
27800
|
isOnline() {
|
|
27801
|
-
return le(this,
|
|
27801
|
+
return le(this, Os);
|
|
27802
27802
|
}
|
|
27803
|
-
},
|
|
27803
|
+
}, Os = new WeakMap(), di = new WeakMap(), Ts = new WeakMap(), Yb), $9 = new O$();
|
|
27804
27804
|
function Th() {
|
|
27805
27805
|
let t, e;
|
|
27806
27806
|
const n = new Promise((i, o) => {
|
|
@@ -27874,7 +27874,7 @@ function A$(t) {
|
|
|
27874
27874
|
var C;
|
|
27875
27875
|
if (r)
|
|
27876
27876
|
return;
|
|
27877
|
-
const y = t.retry ?? (
|
|
27877
|
+
const y = t.retry ?? (jo ? 0 : 3), w = t.retryDelay ?? T$, x = typeof w == "function" ? w(n, v) : w, b = y === !0 || typeof y == "number" && n < y || typeof y == "function" && y(n, v);
|
|
27878
27878
|
if (e || !b) {
|
|
27879
27879
|
f(v);
|
|
27880
27880
|
return;
|
|
@@ -27962,31 +27962,31 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
27962
27962
|
this.clearGcTimeout();
|
|
27963
27963
|
}
|
|
27964
27964
|
scheduleGc() {
|
|
27965
|
-
this.clearGcTimeout(), wh(this.gcTime) &&
|
|
27965
|
+
this.clearGcTimeout(), wh(this.gcTime) && Re(this, go, setTimeout(() => {
|
|
27966
27966
|
this.optionalRemove();
|
|
27967
27967
|
}, this.gcTime));
|
|
27968
27968
|
}
|
|
27969
27969
|
updateGcTime(t) {
|
|
27970
27970
|
this.gcTime = Math.max(
|
|
27971
27971
|
this.gcTime || 0,
|
|
27972
|
-
t ?? (
|
|
27972
|
+
t ?? (jo ? 1 / 0 : 5 * 60 * 1e3)
|
|
27973
27973
|
);
|
|
27974
27974
|
}
|
|
27975
27975
|
clearGcTimeout() {
|
|
27976
|
-
le(this, go) && (clearTimeout(le(this, go)),
|
|
27976
|
+
le(this, go) && (clearTimeout(le(this, go)), Re(this, go, void 0));
|
|
27977
27977
|
}
|
|
27978
|
-
}, go = new WeakMap(), Jb),
|
|
27978
|
+
}, go = new WeakMap(), Jb), As, vo, In, yo, Jt, El, bo, zn, Dr, Xb, bJ = (Xb = class extends R$ {
|
|
27979
27979
|
constructor(e) {
|
|
27980
27980
|
super();
|
|
27981
27981
|
Ge(this, zn);
|
|
27982
|
-
Ge(this, Ts);
|
|
27983
27982
|
Ge(this, As);
|
|
27984
|
-
Ge(this, In);
|
|
27985
27983
|
Ge(this, vo);
|
|
27984
|
+
Ge(this, In);
|
|
27985
|
+
Ge(this, yo);
|
|
27986
27986
|
Ge(this, Jt);
|
|
27987
27987
|
Ge(this, El);
|
|
27988
|
-
Ge(this,
|
|
27989
|
-
|
|
27988
|
+
Ge(this, bo);
|
|
27989
|
+
Re(this, bo, !1), Re(this, El, e.defaultOptions), this.setOptions(e.options), this.observers = [], Re(this, yo, e.client), Re(this, In, le(this, yo).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, Re(this, As, N$(this.options)), this.state = e.state ?? le(this, As), this.scheduleGc();
|
|
27990
27990
|
}
|
|
27991
27991
|
get meta() {
|
|
27992
27992
|
return this.options.meta;
|
|
@@ -28022,7 +28022,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28022
28022
|
super.destroy(), this.cancel({ silent: !0 });
|
|
28023
28023
|
}
|
|
28024
28024
|
reset() {
|
|
28025
|
-
this.destroy(), this.setState(le(this,
|
|
28025
|
+
this.destroy(), this.setState(le(this, As));
|
|
28026
28026
|
}
|
|
28027
28027
|
isActive() {
|
|
28028
28028
|
return this.observers.some(
|
|
@@ -28034,7 +28034,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28034
28034
|
}
|
|
28035
28035
|
isStatic() {
|
|
28036
28036
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
28037
|
-
(e) =>
|
|
28037
|
+
(e) => ks(e.options.staleTime, this) === "static"
|
|
28038
28038
|
) : !1;
|
|
28039
28039
|
}
|
|
28040
28040
|
isStale() {
|
|
@@ -28059,7 +28059,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28059
28059
|
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), le(this, In).notify({ type: "observerAdded", query: this, observer: e }));
|
|
28060
28060
|
}
|
|
28061
28061
|
removeObserver(e) {
|
|
28062
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((n) => n !== e), this.observers.length || (le(this, Jt) && (le(this,
|
|
28062
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((n) => n !== e), this.observers.length || (le(this, Jt) && (le(this, bo) ? le(this, Jt).cancel({ revert: !0 }) : le(this, Jt).cancelRetry()), this.scheduleGc()), le(this, In).notify({ type: "observerRemoved", query: this, observer: e }));
|
|
28063
28063
|
}
|
|
28064
28064
|
getObserversCount() {
|
|
28065
28065
|
return this.observers.length;
|
|
@@ -28085,18 +28085,18 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28085
28085
|
const r = new AbortController(), i = (f) => {
|
|
28086
28086
|
Object.defineProperty(f, "signal", {
|
|
28087
28087
|
enumerable: !0,
|
|
28088
|
-
get: () => (
|
|
28088
|
+
get: () => (Re(this, bo, !0), r.signal)
|
|
28089
28089
|
});
|
|
28090
28090
|
}, o = () => {
|
|
28091
28091
|
const f = S$(this.options, n), m = (() => {
|
|
28092
28092
|
const h = {
|
|
28093
|
-
client: le(this,
|
|
28093
|
+
client: le(this, yo),
|
|
28094
28094
|
queryKey: this.queryKey,
|
|
28095
28095
|
meta: this.meta
|
|
28096
28096
|
};
|
|
28097
28097
|
return i(h), h;
|
|
28098
28098
|
})();
|
|
28099
|
-
return
|
|
28099
|
+
return Re(this, bo, !1), this.options.persister ? this.options.persister(
|
|
28100
28100
|
f,
|
|
28101
28101
|
m,
|
|
28102
28102
|
this
|
|
@@ -28106,13 +28106,13 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28106
28106
|
fetchOptions: n,
|
|
28107
28107
|
options: this.options,
|
|
28108
28108
|
queryKey: this.queryKey,
|
|
28109
|
-
client: le(this,
|
|
28109
|
+
client: le(this, yo),
|
|
28110
28110
|
state: this.state,
|
|
28111
28111
|
fetchFn: o
|
|
28112
28112
|
};
|
|
28113
28113
|
return i(f), f;
|
|
28114
28114
|
})();
|
|
28115
|
-
(c = this.options.behavior) == null || c.onFetch(a, this),
|
|
28115
|
+
(c = this.options.behavior) == null || c.onFetch(a, this), Re(this, vo, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = a.fetchOptions) == null ? void 0 : u.meta)) && tt(this, zn, Dr).call(this, { type: "fetch", meta: (d = a.fetchOptions) == null ? void 0 : d.meta });
|
|
28116
28116
|
const l = (f) => {
|
|
28117
28117
|
var p, m, h, g;
|
|
28118
28118
|
Bf(f) && f.silent || tt(this, zn, Dr).call(this, {
|
|
@@ -28129,7 +28129,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28129
28129
|
this
|
|
28130
28130
|
)), this.scheduleGc();
|
|
28131
28131
|
};
|
|
28132
|
-
return
|
|
28132
|
+
return Re(this, Jt, A$({
|
|
28133
28133
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
28134
28134
|
fn: a.fetchFn,
|
|
28135
28135
|
abort: r.abort.bind(r),
|
|
@@ -28170,7 +28170,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28170
28170
|
canRun: () => !0
|
|
28171
28171
|
})), le(this, Jt).start();
|
|
28172
28172
|
}
|
|
28173
|
-
},
|
|
28173
|
+
}, As = new WeakMap(), vo = new WeakMap(), In = new WeakMap(), yo = new WeakMap(), Jt = new WeakMap(), El = new WeakMap(), bo = new WeakMap(), zn = new WeakSet(), Dr = function(e) {
|
|
28174
28174
|
const n = (r) => {
|
|
28175
28175
|
switch (e.type) {
|
|
28176
28176
|
case "failed":
|
|
@@ -28196,7 +28196,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28196
28196
|
fetchMeta: e.meta ?? null
|
|
28197
28197
|
};
|
|
28198
28198
|
case "success":
|
|
28199
|
-
return {
|
|
28199
|
+
return Re(this, vo, void 0), {
|
|
28200
28200
|
...r,
|
|
28201
28201
|
data: e.data,
|
|
28202
28202
|
dataUpdateCount: r.dataUpdateCount + 1,
|
|
@@ -28212,7 +28212,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
28212
28212
|
};
|
|
28213
28213
|
case "error":
|
|
28214
28214
|
const i = e.error;
|
|
28215
|
-
return Bf(i) && i.revert && le(this,
|
|
28215
|
+
return Bf(i) && i.revert && le(this, vo) ? { ...le(this, vo), fetchStatus: "idle" } : {
|
|
28216
28216
|
...r,
|
|
28217
28217
|
error: i,
|
|
28218
28218
|
errorUpdateCount: r.errorUpdateCount + 1,
|
|
@@ -28268,7 +28268,7 @@ function N$(t) {
|
|
|
28268
28268
|
fetchStatus: "idle"
|
|
28269
28269
|
};
|
|
28270
28270
|
}
|
|
28271
|
-
var gn, We, Ml, cn,
|
|
28271
|
+
var gn, We, Ml, cn, xo, Ds, fi, pi, Ol, Ps, Rs, wo, Co, hi, Ns, Xe, xa, Ah, Dh, Ph, Rh, Nh, Ih, Lh, Z9, Qb, I$ = (Qb = class extends X1 {
|
|
28272
28272
|
constructor(e, n) {
|
|
28273
28273
|
super();
|
|
28274
28274
|
Ge(this, Xe);
|
|
@@ -28276,7 +28276,7 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28276
28276
|
Ge(this, We);
|
|
28277
28277
|
Ge(this, Ml);
|
|
28278
28278
|
Ge(this, cn);
|
|
28279
|
-
Ge(this,
|
|
28279
|
+
Ge(this, xo);
|
|
28280
28280
|
Ge(this, Ds);
|
|
28281
28281
|
Ge(this, fi);
|
|
28282
28282
|
Ge(this, pi);
|
|
@@ -28285,11 +28285,11 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28285
28285
|
// This property keeps track of the last query with defined data.
|
|
28286
28286
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
28287
28287
|
Ge(this, Rs);
|
|
28288
|
-
Ge(this, xo);
|
|
28289
28288
|
Ge(this, wo);
|
|
28289
|
+
Ge(this, Co);
|
|
28290
28290
|
Ge(this, hi);
|
|
28291
28291
|
Ge(this, Ns, /* @__PURE__ */ new Set());
|
|
28292
|
-
this.options = n,
|
|
28292
|
+
this.options = n, Re(this, gn, e), Re(this, pi, null), Re(this, fi, Th()), this.options.experimental_prefetchInRender || le(this, fi).reject(
|
|
28293
28293
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
28294
28294
|
), this.bindMethods(), this.setOptions(n);
|
|
28295
28295
|
}
|
|
@@ -28336,13 +28336,13 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28336
28336
|
r,
|
|
28337
28337
|
this.options,
|
|
28338
28338
|
n
|
|
28339
|
-
) && tt(this, Xe, xa).call(this), this.updateResult(), i && (le(this, We) !== r || Wn(this.options.enabled, le(this, We)) !== Wn(n.enabled, le(this, We)) ||
|
|
28339
|
+
) && tt(this, Xe, xa).call(this), this.updateResult(), i && (le(this, We) !== r || Wn(this.options.enabled, le(this, We)) !== Wn(n.enabled, le(this, We)) || ks(this.options.staleTime, le(this, We)) !== ks(n.staleTime, le(this, We))) && tt(this, Xe, Ah).call(this);
|
|
28340
28340
|
const o = tt(this, Xe, Dh).call(this);
|
|
28341
28341
|
i && (le(this, We) !== r || Wn(this.options.enabled, le(this, We)) !== Wn(n.enabled, le(this, We)) || o !== le(this, hi)) && tt(this, Xe, Ph).call(this, o);
|
|
28342
28342
|
}
|
|
28343
28343
|
getOptimisticResult(e) {
|
|
28344
28344
|
const n = le(this, gn).getQueryCache().build(le(this, gn), e), r = this.createResult(n, e);
|
|
28345
|
-
return V$(this, r) && (
|
|
28345
|
+
return V$(this, r) && (Re(this, cn, r), Re(this, Ds, this.options), Re(this, xo, le(this, We).state)), r;
|
|
28346
28346
|
}
|
|
28347
28347
|
getCurrentResult() {
|
|
28348
28348
|
return le(this, cn);
|
|
@@ -28375,7 +28375,7 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28375
28375
|
}
|
|
28376
28376
|
createResult(e, n) {
|
|
28377
28377
|
var O;
|
|
28378
|
-
const r = le(this, We), i = this.options, o = le(this, cn), s = le(this,
|
|
28378
|
+
const r = le(this, We), i = this.options, o = le(this, cn), s = le(this, xo), a = le(this, Ds), c = e !== r ? e.state : le(this, Ml), { state: u } = e;
|
|
28379
28379
|
let d = { ...u }, f = !1, p;
|
|
28380
28380
|
if (n._optimisticResults) {
|
|
28381
28381
|
const M = this.hasListeners(), A = !M && w2(e, n), D = M && C2(e, r, n, i);
|
|
@@ -28403,9 +28403,9 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28403
28403
|
p = le(this, Ps);
|
|
28404
28404
|
else
|
|
28405
28405
|
try {
|
|
28406
|
-
|
|
28406
|
+
Re(this, Ol, n.select), p = n.select(p), p = Mh(o == null ? void 0 : o.data, p, n), Re(this, Ps, p), Re(this, pi, null);
|
|
28407
28407
|
} catch (M) {
|
|
28408
|
-
|
|
28408
|
+
Re(this, pi, M);
|
|
28409
28409
|
}
|
|
28410
28410
|
le(this, pi) && (m = le(this, pi), p = le(this, Ps), h = Date.now(), g = "error");
|
|
28411
28411
|
const y = d.fetchStatus === "fetching", w = g === "pending", x = g === "error", b = w && y, C = p !== void 0, S = {
|
|
@@ -28439,7 +28439,7 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28439
28439
|
const M = (R) => {
|
|
28440
28440
|
S.status === "error" ? R.reject(S.error) : S.data !== void 0 && R.resolve(S.data);
|
|
28441
28441
|
}, A = () => {
|
|
28442
|
-
const R =
|
|
28442
|
+
const R = Re(this, fi, S.promise = Th());
|
|
28443
28443
|
M(R);
|
|
28444
28444
|
}, D = le(this, fi);
|
|
28445
28445
|
switch (D.status) {
|
|
@@ -28458,9 +28458,9 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28458
28458
|
}
|
|
28459
28459
|
updateResult() {
|
|
28460
28460
|
const e = le(this, cn), n = this.createResult(le(this, We), this.options);
|
|
28461
|
-
if (
|
|
28461
|
+
if (Re(this, xo, le(this, We).state), Re(this, Ds, this.options), le(this, xo).data !== void 0 && Re(this, Rs, le(this, We)), Sh(n, e))
|
|
28462
28462
|
return;
|
|
28463
|
-
|
|
28463
|
+
Re(this, cn, n);
|
|
28464
28464
|
const r = () => {
|
|
28465
28465
|
if (!e)
|
|
28466
28466
|
return !0;
|
|
@@ -28480,7 +28480,7 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28480
28480
|
onQueryUpdate() {
|
|
28481
28481
|
this.updateResult(), this.hasListeners() && tt(this, Xe, Rh).call(this);
|
|
28482
28482
|
}
|
|
28483
|
-
}, gn = new WeakMap(), We = new WeakMap(), Ml = new WeakMap(), cn = new WeakMap(),
|
|
28483
|
+
}, gn = new WeakMap(), We = new WeakMap(), Ml = new WeakMap(), cn = new WeakMap(), xo = new WeakMap(), Ds = new WeakMap(), fi = new WeakMap(), pi = new WeakMap(), Ol = new WeakMap(), Ps = new WeakMap(), Rs = new WeakMap(), wo = new WeakMap(), Co = new WeakMap(), hi = new WeakMap(), Ns = new WeakMap(), Xe = new WeakSet(), xa = function(e) {
|
|
28484
28484
|
tt(this, Xe, Lh).call(this);
|
|
28485
28485
|
let n = le(this, We).fetch(
|
|
28486
28486
|
this.options,
|
|
@@ -28489,34 +28489,34 @@ var gn, We, Ml, cn, bo, Ds, fi, pi, Ol, Ps, Rs, xo, wo, hi, Ns, Xe, xa, Ah, Dh,
|
|
|
28489
28489
|
return e != null && e.throwOnError || (n = n.catch(fl)), n;
|
|
28490
28490
|
}, Ah = function() {
|
|
28491
28491
|
tt(this, Xe, Nh).call(this);
|
|
28492
|
-
const e =
|
|
28492
|
+
const e = ks(
|
|
28493
28493
|
this.options.staleTime,
|
|
28494
28494
|
le(this, We)
|
|
28495
28495
|
);
|
|
28496
|
-
if (
|
|
28496
|
+
if (jo || le(this, cn).isStale || !wh(e))
|
|
28497
28497
|
return;
|
|
28498
28498
|
const r = H9(le(this, cn).dataUpdatedAt, e) + 1;
|
|
28499
|
-
|
|
28499
|
+
Re(this, wo, setTimeout(() => {
|
|
28500
28500
|
le(this, cn).isStale || this.updateResult();
|
|
28501
28501
|
}, r));
|
|
28502
28502
|
}, Dh = function() {
|
|
28503
28503
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(le(this, We)) : this.options.refetchInterval) ?? !1;
|
|
28504
28504
|
}, Ph = function(e) {
|
|
28505
|
-
tt(this, Xe, Ih).call(this),
|
|
28505
|
+
tt(this, Xe, Ih).call(this), Re(this, hi, e), !(jo || Wn(this.options.enabled, le(this, We)) === !1 || !wh(le(this, hi)) || le(this, hi) === 0) && Re(this, Co, setInterval(() => {
|
|
28506
28506
|
(this.options.refetchIntervalInBackground || B9.isFocused()) && tt(this, Xe, xa).call(this);
|
|
28507
28507
|
}, le(this, hi)));
|
|
28508
28508
|
}, Rh = function() {
|
|
28509
28509
|
tt(this, Xe, Ah).call(this), tt(this, Xe, Ph).call(this, tt(this, Xe, Dh).call(this));
|
|
28510
28510
|
}, Nh = function() {
|
|
28511
|
-
le(this,
|
|
28511
|
+
le(this, wo) && (clearTimeout(le(this, wo)), Re(this, wo, void 0));
|
|
28512
28512
|
}, Ih = function() {
|
|
28513
|
-
le(this,
|
|
28513
|
+
le(this, Co) && (clearInterval(le(this, Co)), Re(this, Co, void 0));
|
|
28514
28514
|
}, Lh = function() {
|
|
28515
28515
|
const e = le(this, gn).getQueryCache().build(le(this, gn), this.options);
|
|
28516
28516
|
if (e === le(this, We))
|
|
28517
28517
|
return;
|
|
28518
28518
|
const n = le(this, We);
|
|
28519
|
-
|
|
28519
|
+
Re(this, We, e), Re(this, Ml, e.state), this.hasListeners() && (n == null || n.removeObserver(this), e.addObserver(this));
|
|
28520
28520
|
}, Z9 = function(e) {
|
|
28521
28521
|
eg.batch(() => {
|
|
28522
28522
|
e.listeners && this.listeners.forEach((n) => {
|
|
@@ -28534,7 +28534,7 @@ function w2(t, e) {
|
|
|
28534
28534
|
return L$(t, e) || t.state.data !== void 0 && Vh(t, e, e.refetchOnMount);
|
|
28535
28535
|
}
|
|
28536
28536
|
function Vh(t, e, n) {
|
|
28537
|
-
if (Wn(e.enabled, t) !== !1 &&
|
|
28537
|
+
if (Wn(e.enabled, t) !== !1 && ks(e.staleTime, t) !== "static") {
|
|
28538
28538
|
const r = typeof n == "function" ? n(t) : n;
|
|
28539
28539
|
return r === "always" || r !== !1 && tg(t, e);
|
|
28540
28540
|
}
|
|
@@ -28544,7 +28544,7 @@ function C2(t, e, n, r) {
|
|
|
28544
28544
|
return (t !== e || Wn(r.enabled, t) === !1) && (!n.suspense || t.state.status !== "error") && tg(t, n);
|
|
28545
28545
|
}
|
|
28546
28546
|
function tg(t, e) {
|
|
28547
|
-
return Wn(e.enabled, t) !== !1 && t.isStaleByTime(
|
|
28547
|
+
return Wn(e.enabled, t) !== !1 && t.isStaleByTime(ks(e.staleTime, t));
|
|
28548
28548
|
}
|
|
28549
28549
|
function V$(t, e) {
|
|
28550
28550
|
return !Sh(t.getCurrentResult(), e);
|
|
@@ -28642,7 +28642,7 @@ function q$(t, e, n) {
|
|
|
28642
28642
|
p,
|
|
28643
28643
|
s,
|
|
28644
28644
|
c
|
|
28645
|
-
), s.experimental_prefetchInRender && !
|
|
28645
|
+
), s.experimental_prefetchInRender && !jo && Z$(c, r)) {
|
|
28646
28646
|
const g = a ? (
|
|
28647
28647
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
28648
28648
|
k2(s, l, i)
|
|
@@ -28699,7 +28699,7 @@ const Zl = (t, e) => {
|
|
|
28699
28699
|
}) => {
|
|
28700
28700
|
const i = K$;
|
|
28701
28701
|
return /* @__PURE__ */ T.jsx(
|
|
28702
|
-
|
|
28702
|
+
zo.AutocompleteControl,
|
|
28703
28703
|
{
|
|
28704
28704
|
query: (o) => i(o, e, {}, n),
|
|
28705
28705
|
formatter: t,
|
|
@@ -28737,7 +28737,7 @@ const Zl = (t, e) => {
|
|
|
28737
28737
|
}) => {
|
|
28738
28738
|
const i = X$;
|
|
28739
28739
|
return /* @__PURE__ */ T.jsx(
|
|
28740
|
-
|
|
28740
|
+
zo.AutocompleteControl,
|
|
28741
28741
|
{
|
|
28742
28742
|
query: (o) => i(o, e, {}, n),
|
|
28743
28743
|
formatter: t,
|
|
@@ -28775,7 +28775,7 @@ const Zl = (t, e) => {
|
|
|
28775
28775
|
}) => {
|
|
28776
28776
|
const i = tz;
|
|
28777
28777
|
return /* @__PURE__ */ T.jsx(
|
|
28778
|
-
|
|
28778
|
+
zo.AutocompleteControl,
|
|
28779
28779
|
{
|
|
28780
28780
|
query: (o) => i(o, e, {}, n),
|
|
28781
28781
|
formatter: t,
|
|
@@ -28813,7 +28813,7 @@ const Zl = (t, e) => {
|
|
|
28813
28813
|
}) => {
|
|
28814
28814
|
const i = iz;
|
|
28815
28815
|
return /* @__PURE__ */ T.jsx(
|
|
28816
|
-
|
|
28816
|
+
zo.AutocompleteControl,
|
|
28817
28817
|
{
|
|
28818
28818
|
query: (o) => i(o, e, {}, n),
|
|
28819
28819
|
formatter: t,
|
|
@@ -28851,7 +28851,7 @@ const Zl = (t, e) => {
|
|
|
28851
28851
|
}) => {
|
|
28852
28852
|
const i = az;
|
|
28853
28853
|
return /* @__PURE__ */ T.jsx(
|
|
28854
|
-
|
|
28854
|
+
zo.AutocompleteControl,
|
|
28855
28855
|
{
|
|
28856
28856
|
query: (o) => i(o, e, {}, n),
|
|
28857
28857
|
formatter: t,
|
|
@@ -28950,11 +28950,11 @@ const pz = ({
|
|
|
28950
28950
|
}
|
|
28951
28951
|
}
|
|
28952
28952
|
),
|
|
28953
|
-
g &&
|
|
28953
|
+
g && Po(
|
|
28954
28954
|
/* @__PURE__ */ T.jsx(
|
|
28955
28955
|
r1,
|
|
28956
28956
|
{
|
|
28957
|
-
ref:
|
|
28957
|
+
ref: Wo(d, f.setFloating),
|
|
28958
28958
|
...a,
|
|
28959
28959
|
required: !0,
|
|
28960
28960
|
mode: "single",
|
|
@@ -29673,12 +29673,12 @@ function Q9(t, e, n, r) {
|
|
|
29673
29673
|
} else if (n.content.size)
|
|
29674
29674
|
if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
|
|
29675
29675
|
let s = t.parent, a = s.content;
|
|
29676
|
-
return
|
|
29676
|
+
return Oo(s, a.cut(0, t.parentOffset).append(n.content).append(a.cut(e.parentOffset)));
|
|
29677
29677
|
} else {
|
|
29678
29678
|
let { start: s, end: a } = gz(n, t);
|
|
29679
|
-
return
|
|
29679
|
+
return Oo(o, tw(t, s, a, e, r));
|
|
29680
29680
|
}
|
|
29681
|
-
else return
|
|
29681
|
+
else return Oo(o, au(t, e, r));
|
|
29682
29682
|
}
|
|
29683
29683
|
function ew(t, e) {
|
|
29684
29684
|
if (!e.type.compatibleContent(t.type))
|
|
@@ -29688,29 +29688,29 @@ function Fh(t, e, n) {
|
|
|
29688
29688
|
let r = t.node(n);
|
|
29689
29689
|
return ew(r, e.node(n)), r;
|
|
29690
29690
|
}
|
|
29691
|
-
function
|
|
29691
|
+
function Mo(t, e) {
|
|
29692
29692
|
let n = e.length - 1;
|
|
29693
29693
|
n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t);
|
|
29694
29694
|
}
|
|
29695
29695
|
function Va(t, e, n, r) {
|
|
29696
29696
|
let i = (e || t).node(n), o = 0, s = e ? e.index(n) : i.childCount;
|
|
29697
|
-
t && (o = t.index(n), t.depth > n ? o++ : t.textOffset && (
|
|
29697
|
+
t && (o = t.index(n), t.depth > n ? o++ : t.textOffset && (Mo(t.nodeAfter, r), o++));
|
|
29698
29698
|
for (let a = o; a < s; a++)
|
|
29699
|
-
|
|
29700
|
-
e && e.depth == n && e.textOffset &&
|
|
29699
|
+
Mo(i.child(a), r);
|
|
29700
|
+
e && e.depth == n && e.textOffset && Mo(e.nodeBefore, r);
|
|
29701
29701
|
}
|
|
29702
|
-
function
|
|
29702
|
+
function Oo(t, e) {
|
|
29703
29703
|
return t.type.checkContent(e), t.copy(e);
|
|
29704
29704
|
}
|
|
29705
29705
|
function tw(t, e, n, r, i) {
|
|
29706
29706
|
let o = t.depth > i && Fh(t, e, i + 1), s = r.depth > i && Fh(n, r, i + 1), a = [];
|
|
29707
|
-
return Va(null, t, i, a), o && s && e.index(i) == n.index(i) ? (ew(o, s),
|
|
29707
|
+
return Va(null, t, i, a), o && s && e.index(i) == n.index(i) ? (ew(o, s), Mo(Oo(o, tw(t, e, n, r, i + 1)), a)) : (o && Mo(Oo(o, au(t, e, i + 1)), a), Va(e, n, i, a), s && Mo(Oo(s, au(n, r, i + 1)), a)), Va(r, null, i, a), new fe(a);
|
|
29708
29708
|
}
|
|
29709
29709
|
function au(t, e, n) {
|
|
29710
29710
|
let r = [];
|
|
29711
29711
|
if (Va(null, t, n, r), t.depth > n) {
|
|
29712
29712
|
let i = Fh(t, e, n + 1);
|
|
29713
|
-
|
|
29713
|
+
Mo(Oo(i, au(t, e, n + 1)), r);
|
|
29714
29714
|
}
|
|
29715
29715
|
return Va(e, null, n, r), new fe(r);
|
|
29716
29716
|
}
|
|
@@ -30430,7 +30430,7 @@ function nw(t, e) {
|
|
|
30430
30430
|
e = t[n].type.name + "(" + e + ")";
|
|
30431
30431
|
return e;
|
|
30432
30432
|
}
|
|
30433
|
-
class
|
|
30433
|
+
class Fo {
|
|
30434
30434
|
/**
|
|
30435
30435
|
@internal
|
|
30436
30436
|
*/
|
|
@@ -30443,7 +30443,7 @@ class jo {
|
|
|
30443
30443
|
static parse(e, n) {
|
|
30444
30444
|
let r = new xz(e, n);
|
|
30445
30445
|
if (r.next == null)
|
|
30446
|
-
return
|
|
30446
|
+
return Fo.empty;
|
|
30447
30447
|
let i = rw(r);
|
|
30448
30448
|
r.next && r.err("Unexpected trailing text");
|
|
30449
30449
|
let o = Oz(Mz(i));
|
|
@@ -30592,7 +30592,7 @@ class jo {
|
|
|
30592
30592
|
`);
|
|
30593
30593
|
}
|
|
30594
30594
|
}
|
|
30595
|
-
|
|
30595
|
+
Fo.empty = new Fo(!0);
|
|
30596
30596
|
class xz {
|
|
30597
30597
|
constructor(e, n) {
|
|
30598
30598
|
this.string = e, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
@@ -30755,7 +30755,7 @@ function Oz(t) {
|
|
|
30755
30755
|
});
|
|
30756
30756
|
});
|
|
30757
30757
|
});
|
|
30758
|
-
let o = e[r.join(",")] = new
|
|
30758
|
+
let o = e[r.join(",")] = new Fo(r.indexOf(t.length - 1) > -1);
|
|
30759
30759
|
for (let s = 0; s < i.length; s++) {
|
|
30760
30760
|
let a = i[s][1].sort(iw);
|
|
30761
30761
|
o.next.push({ type: i[s][0], next: e[a.join(",")] || n(a) });
|
|
@@ -30838,7 +30838,7 @@ let T2 = class cw {
|
|
|
30838
30838
|
True for node types that allow no content.
|
|
30839
30839
|
*/
|
|
30840
30840
|
get isLeaf() {
|
|
30841
|
-
return this.contentMatch ==
|
|
30841
|
+
return this.contentMatch == Fo.empty;
|
|
30842
30842
|
}
|
|
30843
30843
|
/**
|
|
30844
30844
|
True when this node is an atom, i.e. when it does not have
|
|
@@ -31079,7 +31079,7 @@ class uw {
|
|
|
31079
31079
|
if (i in this.marks)
|
|
31080
31080
|
throw new RangeError(i + " can not be both a node and a mark");
|
|
31081
31081
|
let o = this.nodes[i], s = o.spec.content || "", a = o.spec.marks;
|
|
31082
|
-
if (o.contentMatch = r[s] || (r[s] =
|
|
31082
|
+
if (o.contentMatch = r[s] || (r[s] = Fo.parse(s, this.nodes)), o.inlineContent = o.contentMatch.inlineContent, o.spec.linebreakReplacement) {
|
|
31083
31083
|
if (this.linebreakReplacement)
|
|
31084
31084
|
throw new RangeError("Multiple linebreak nodes defined");
|
|
31085
31085
|
if (!o.isInline || !o.isLeaf)
|
|
@@ -31668,7 +31668,7 @@ function N2(t, e) {
|
|
|
31668
31668
|
return !0;
|
|
31669
31669
|
}
|
|
31670
31670
|
}
|
|
31671
|
-
class
|
|
31671
|
+
class Xo {
|
|
31672
31672
|
/**
|
|
31673
31673
|
Create a serializer. `nodes` should map node names to functions
|
|
31674
31674
|
that take a node and return a description of the corresponding
|
|
@@ -31755,7 +31755,7 @@ class Jo {
|
|
|
31755
31755
|
properties in a schema's node and mark specs.
|
|
31756
31756
|
*/
|
|
31757
31757
|
static fromSchema(e) {
|
|
31758
|
-
return e.cached.domSerializer || (e.cached.domSerializer = new
|
|
31758
|
+
return e.cached.domSerializer || (e.cached.domSerializer = new Xo(this.nodesFromSchema(e), this.marksFromSchema(e)));
|
|
31759
31759
|
}
|
|
31760
31760
|
/**
|
|
31761
31761
|
Gather the serializers in a schema's node specs into an object.
|
|
@@ -32282,7 +32282,7 @@ class vi extends sn {
|
|
|
32282
32282
|
return new vi(this.pos, this.mark);
|
|
32283
32283
|
}
|
|
32284
32284
|
}
|
|
32285
|
-
return new
|
|
32285
|
+
return new _o(this.pos, this.mark);
|
|
32286
32286
|
}
|
|
32287
32287
|
map(e) {
|
|
32288
32288
|
let n = e.mapResult(this.pos, 1);
|
|
@@ -32301,7 +32301,7 @@ class vi extends sn {
|
|
|
32301
32301
|
}
|
|
32302
32302
|
}
|
|
32303
32303
|
sn.jsonID("addNodeMark", vi);
|
|
32304
|
-
class
|
|
32304
|
+
class _o extends sn {
|
|
32305
32305
|
/**
|
|
32306
32306
|
Create a mark-removing step.
|
|
32307
32307
|
*/
|
|
@@ -32321,7 +32321,7 @@ class Fo extends sn {
|
|
|
32321
32321
|
}
|
|
32322
32322
|
map(e) {
|
|
32323
32323
|
let n = e.mapResult(this.pos, 1);
|
|
32324
|
-
return n.deletedAfter ? null : new
|
|
32324
|
+
return n.deletedAfter ? null : new _o(n.pos, this.mark);
|
|
32325
32325
|
}
|
|
32326
32326
|
toJSON() {
|
|
32327
32327
|
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -32332,10 +32332,10 @@ class Fo extends sn {
|
|
|
32332
32332
|
static fromJSON(e, n) {
|
|
32333
32333
|
if (typeof n.pos != "number")
|
|
32334
32334
|
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
32335
|
-
return new
|
|
32335
|
+
return new _o(n.pos, e.markFromJSON(n.mark));
|
|
32336
32336
|
}
|
|
32337
32337
|
}
|
|
32338
|
-
sn.jsonID("removeNodeMark",
|
|
32338
|
+
sn.jsonID("removeNodeMark", _o);
|
|
32339
32339
|
class Vt extends sn {
|
|
32340
32340
|
/**
|
|
32341
32341
|
The given `slice` should fit the 'gap' between `from` and
|
|
@@ -33031,7 +33031,7 @@ function Ew(t, e) {
|
|
|
33031
33031
|
}
|
|
33032
33032
|
return n;
|
|
33033
33033
|
}
|
|
33034
|
-
class
|
|
33034
|
+
class Ss extends sn {
|
|
33035
33035
|
/**
|
|
33036
33036
|
Construct an attribute step.
|
|
33037
33037
|
*/
|
|
@@ -33053,11 +33053,11 @@ class ks extends sn {
|
|
|
33053
33053
|
return Sn.empty;
|
|
33054
33054
|
}
|
|
33055
33055
|
invert(e) {
|
|
33056
|
-
return new
|
|
33056
|
+
return new Ss(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
33057
33057
|
}
|
|
33058
33058
|
map(e) {
|
|
33059
33059
|
let n = e.mapResult(this.pos, 1);
|
|
33060
|
-
return n.deletedAfter ? null : new
|
|
33060
|
+
return n.deletedAfter ? null : new Ss(n.pos, this.attr, this.value);
|
|
33061
33061
|
}
|
|
33062
33062
|
toJSON() {
|
|
33063
33063
|
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
@@ -33065,10 +33065,10 @@ class ks extends sn {
|
|
|
33065
33065
|
static fromJSON(e, n) {
|
|
33066
33066
|
if (typeof n.pos != "number" || typeof n.attr != "string")
|
|
33067
33067
|
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
33068
|
-
return new
|
|
33068
|
+
return new Ss(n.pos, n.attr, n.value);
|
|
33069
33069
|
}
|
|
33070
33070
|
}
|
|
33071
|
-
sn.jsonID("attr",
|
|
33071
|
+
sn.jsonID("attr", Ss);
|
|
33072
33072
|
class gl extends sn {
|
|
33073
33073
|
/**
|
|
33074
33074
|
Construct an attribute step.
|
|
@@ -33269,7 +33269,7 @@ class Mw {
|
|
|
33269
33269
|
to set attributes on the document itself.
|
|
33270
33270
|
*/
|
|
33271
33271
|
setNodeAttribute(e, n, r) {
|
|
33272
|
-
return this.step(new
|
|
33272
|
+
return this.step(new Ss(e, n, r)), this;
|
|
33273
33273
|
}
|
|
33274
33274
|
/**
|
|
33275
33275
|
Set a single attribute on the document to a new value.
|
|
@@ -33292,11 +33292,11 @@ class Mw {
|
|
|
33292
33292
|
if (!r)
|
|
33293
33293
|
throw new RangeError("No node at position " + e);
|
|
33294
33294
|
if (n instanceof ot)
|
|
33295
|
-
n.isInSet(r.marks) && this.step(new
|
|
33295
|
+
n.isInSet(r.marks) && this.step(new _o(e, n));
|
|
33296
33296
|
else {
|
|
33297
33297
|
let i = r.marks, o, s = [];
|
|
33298
33298
|
for (; o = n.isInSet(i); )
|
|
33299
|
-
s.push(new
|
|
33299
|
+
s.push(new _o(e, o)), i = o.removeFromSet(i);
|
|
33300
33300
|
for (let a = s.length - 1; a >= 0; a--)
|
|
33301
33301
|
this.step(s[a]);
|
|
33302
33302
|
}
|
|
@@ -33432,11 +33432,11 @@ class Ve {
|
|
|
33432
33432
|
found.
|
|
33433
33433
|
*/
|
|
33434
33434
|
static findFrom(e, n, r = !1) {
|
|
33435
|
-
let i = e.parent.inlineContent ? new
|
|
33435
|
+
let i = e.parent.inlineContent ? new Ie(e) : ls(e.node(0), e.parent, e.pos, e.index(), n, r);
|
|
33436
33436
|
if (i)
|
|
33437
33437
|
return i;
|
|
33438
33438
|
for (let o = e.depth - 1; o >= 0; o--) {
|
|
33439
|
-
let s = n < 0 ?
|
|
33439
|
+
let s = n < 0 ? ls(e.node(0), e.node(o), e.before(o + 1), e.index(o), n, r) : ls(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, n, r);
|
|
33440
33440
|
if (s)
|
|
33441
33441
|
return s;
|
|
33442
33442
|
}
|
|
@@ -33457,14 +33457,14 @@ class Ve {
|
|
|
33457
33457
|
exists.
|
|
33458
33458
|
*/
|
|
33459
33459
|
static atStart(e) {
|
|
33460
|
-
return
|
|
33460
|
+
return ls(e, e, 0, 0, 1) || new Mn(e);
|
|
33461
33461
|
}
|
|
33462
33462
|
/**
|
|
33463
33463
|
Find the cursor or leaf node selection closest to the end of the
|
|
33464
33464
|
given document.
|
|
33465
33465
|
*/
|
|
33466
33466
|
static atEnd(e) {
|
|
33467
|
-
return
|
|
33467
|
+
return ls(e, e, e.content.size, e.childCount, -1) || new Mn(e);
|
|
33468
33468
|
}
|
|
33469
33469
|
/**
|
|
33470
33470
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -33499,7 +33499,7 @@ class Ve {
|
|
|
33499
33499
|
returns the bookmark for that.
|
|
33500
33500
|
*/
|
|
33501
33501
|
getBookmark() {
|
|
33502
|
-
return
|
|
33502
|
+
return Ie.between(this.$anchor, this.$head).getBookmark();
|
|
33503
33503
|
}
|
|
33504
33504
|
}
|
|
33505
33505
|
Ve.prototype.visible = !0;
|
|
@@ -33515,7 +33515,7 @@ let F2 = !1;
|
|
|
33515
33515
|
function _2(t) {
|
|
33516
33516
|
!F2 && !t.parent.inlineContent && (F2 = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
|
|
33517
33517
|
}
|
|
33518
|
-
class
|
|
33518
|
+
class Ie extends Ve {
|
|
33519
33519
|
/**
|
|
33520
33520
|
Construct a text selection between the given points.
|
|
33521
33521
|
*/
|
|
@@ -33534,7 +33534,7 @@ class Ne extends Ve {
|
|
|
33534
33534
|
if (!r.parent.inlineContent)
|
|
33535
33535
|
return Ve.near(r);
|
|
33536
33536
|
let i = e.resolve(n.map(this.anchor));
|
|
33537
|
-
return new
|
|
33537
|
+
return new Ie(i.parent.inlineContent ? i : r, r);
|
|
33538
33538
|
}
|
|
33539
33539
|
replace(e, n = ye.empty) {
|
|
33540
33540
|
if (super.replace(e, n), n == ye.empty) {
|
|
@@ -33543,7 +33543,7 @@ class Ne extends Ve {
|
|
|
33543
33543
|
}
|
|
33544
33544
|
}
|
|
33545
33545
|
eq(e) {
|
|
33546
|
-
return e instanceof
|
|
33546
|
+
return e instanceof Ie && e.anchor == this.anchor && e.head == this.head;
|
|
33547
33547
|
}
|
|
33548
33548
|
getBookmark() {
|
|
33549
33549
|
return new Md(this.anchor, this.head);
|
|
@@ -33557,7 +33557,7 @@ class Ne extends Ve {
|
|
|
33557
33557
|
static fromJSON(e, n) {
|
|
33558
33558
|
if (typeof n.anchor != "number" || typeof n.head != "number")
|
|
33559
33559
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
33560
|
-
return new
|
|
33560
|
+
return new Ie(e.resolve(n.anchor), e.resolve(n.head));
|
|
33561
33561
|
}
|
|
33562
33562
|
/**
|
|
33563
33563
|
Create a text selection from non-resolved positions.
|
|
@@ -33583,10 +33583,10 @@ class Ne extends Ve {
|
|
|
33583
33583
|
else
|
|
33584
33584
|
return Ve.near(n, r);
|
|
33585
33585
|
}
|
|
33586
|
-
return e.parent.inlineContent || (i == 0 ? e = n : (e = (Ve.findFrom(e, -r, !0) || Ve.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new
|
|
33586
|
+
return e.parent.inlineContent || (i == 0 ? e = n : (e = (Ve.findFrom(e, -r, !0) || Ve.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new Ie(e, n);
|
|
33587
33587
|
}
|
|
33588
33588
|
}
|
|
33589
|
-
Ve.jsonID("text",
|
|
33589
|
+
Ve.jsonID("text", Ie);
|
|
33590
33590
|
class Md {
|
|
33591
33591
|
constructor(e, n) {
|
|
33592
33592
|
this.anchor = e, this.head = n;
|
|
@@ -33595,7 +33595,7 @@ class Md {
|
|
|
33595
33595
|
return new Md(e.map(this.anchor), e.map(this.head));
|
|
33596
33596
|
}
|
|
33597
33597
|
resolve(e) {
|
|
33598
|
-
return
|
|
33598
|
+
return Ie.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
33599
33599
|
}
|
|
33600
33600
|
}
|
|
33601
33601
|
class Me extends Ve {
|
|
@@ -33703,16 +33703,16 @@ const aW = {
|
|
|
33703
33703
|
return new Mn(t);
|
|
33704
33704
|
}
|
|
33705
33705
|
};
|
|
33706
|
-
function
|
|
33706
|
+
function ls(t, e, n, r, i, o = !1) {
|
|
33707
33707
|
if (e.inlineContent)
|
|
33708
|
-
return
|
|
33708
|
+
return Ie.create(t, n);
|
|
33709
33709
|
for (let s = r - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
|
|
33710
33710
|
let a = e.child(s);
|
|
33711
33711
|
if (a.isAtom) {
|
|
33712
33712
|
if (!o && Me.isSelectable(a))
|
|
33713
33713
|
return Me.create(t, n - (i < 0 ? a.nodeSize : 0));
|
|
33714
33714
|
} else {
|
|
33715
|
-
let l =
|
|
33715
|
+
let l = ls(t, a, n + i, i < 0 ? a.childCount : 0, i, o);
|
|
33716
33716
|
if (l)
|
|
33717
33717
|
return l;
|
|
33718
33718
|
}
|
|
@@ -33935,7 +33935,7 @@ class qf {
|
|
|
33935
33935
|
});
|
|
33936
33936
|
}
|
|
33937
33937
|
}
|
|
33938
|
-
class
|
|
33938
|
+
class vs {
|
|
33939
33939
|
/**
|
|
33940
33940
|
@internal
|
|
33941
33941
|
*/
|
|
@@ -34010,7 +34010,7 @@ class gs {
|
|
|
34010
34010
|
applyInner(e) {
|
|
34011
34011
|
if (!e.before.eq(this.doc))
|
|
34012
34012
|
throw new RangeError("Applying a mismatched transaction");
|
|
34013
|
-
let n = new
|
|
34013
|
+
let n = new vs(this.config), r = this.config.fields;
|
|
34014
34014
|
for (let i = 0; i < r.length; i++) {
|
|
34015
34015
|
let o = r[i];
|
|
34016
34016
|
n[o.name] = o.apply(e, this[o.name], this, n);
|
|
@@ -34027,7 +34027,7 @@ class gs {
|
|
|
34027
34027
|
Create a new state.
|
|
34028
34028
|
*/
|
|
34029
34029
|
static create(e) {
|
|
34030
|
-
let n = new qf(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new
|
|
34030
|
+
let n = new qf(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new vs(n);
|
|
34031
34031
|
for (let i = 0; i < n.fields.length; i++)
|
|
34032
34032
|
r[n.fields[i].name] = n.fields[i].init(e, r);
|
|
34033
34033
|
return r;
|
|
@@ -34041,7 +34041,7 @@ class gs {
|
|
|
34041
34041
|
configuration object..
|
|
34042
34042
|
*/
|
|
34043
34043
|
reconfigure(e) {
|
|
34044
|
-
let n = new qf(this.schema, e.plugins), r = n.fields, i = new
|
|
34044
|
+
let n = new qf(this.schema, e.plugins), r = n.fields, i = new vs(n);
|
|
34045
34045
|
for (let o = 0; o < r.length; o++) {
|
|
34046
34046
|
let s = r[o].name;
|
|
34047
34047
|
i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
|
|
@@ -34078,7 +34078,7 @@ class gs {
|
|
|
34078
34078
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
34079
34079
|
if (!e.schema)
|
|
34080
34080
|
throw new RangeError("Required config field 'schema' missing");
|
|
34081
|
-
let i = new qf(e.schema, e.plugins), o = new
|
|
34081
|
+
let i = new qf(e.schema, e.plugins), o = new vs(i);
|
|
34082
34082
|
return i.fields.forEach((s) => {
|
|
34083
34083
|
if (s.name == "doc")
|
|
34084
34084
|
o.doc = wi.fromJSON(e.schema, n.doc);
|
|
@@ -34160,7 +34160,7 @@ const Rr = function(t, e, n) {
|
|
|
34160
34160
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
34161
34161
|
}, uW = function() {
|
|
34162
34162
|
zh = null;
|
|
34163
|
-
},
|
|
34163
|
+
}, Ho = function(t, e, n, r) {
|
|
34164
34164
|
return n && (W2(t, e, n, r, -1) || W2(t, e, n, r, 1));
|
|
34165
34165
|
}, dW = /^(img|br|input|textarea|hr)$/i;
|
|
34166
34166
|
function W2(t, e, n, r, i) {
|
|
@@ -34233,7 +34233,7 @@ function Gl(t) {
|
|
|
34233
34233
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
34234
34234
|
}
|
|
34235
34235
|
const Od = function(t) {
|
|
34236
|
-
return t.focusNode &&
|
|
34236
|
+
return t.focusNode && Ho(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
34237
34237
|
};
|
|
34238
34238
|
function ro(t, e) {
|
|
34239
34239
|
let n = document.createEvent("Event");
|
|
@@ -34341,18 +34341,18 @@ function Rw(t, e) {
|
|
|
34341
34341
|
r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != o && (r.scrollLeft = o);
|
|
34342
34342
|
}
|
|
34343
34343
|
}
|
|
34344
|
-
let
|
|
34344
|
+
let ss = null;
|
|
34345
34345
|
function kW(t) {
|
|
34346
34346
|
if (t.setActive)
|
|
34347
34347
|
return t.setActive();
|
|
34348
|
-
if (
|
|
34349
|
-
return t.focus(
|
|
34348
|
+
if (ss)
|
|
34349
|
+
return t.focus(ss);
|
|
34350
34350
|
let e = Pw(t);
|
|
34351
|
-
t.focus(
|
|
34351
|
+
t.focus(ss == null ? {
|
|
34352
34352
|
get preventScroll() {
|
|
34353
|
-
return
|
|
34353
|
+
return ss = { preventScroll: !0 }, !0;
|
|
34354
34354
|
}
|
|
34355
|
-
} : void 0),
|
|
34355
|
+
} : void 0), ss || (ss = !1, Rw(e, 0));
|
|
34356
34356
|
}
|
|
34357
34357
|
function Nw(t, e) {
|
|
34358
34358
|
let n, r = 2e8, i, o = 0, s = e.top, a = e.top, l, c;
|
|
@@ -34878,7 +34878,7 @@ class Kl {
|
|
|
34878
34878
|
let p = u.focusNode.childNodes[u.focusOffset];
|
|
34879
34879
|
p && p.contentEditable == "false" && (i = !0);
|
|
34880
34880
|
}
|
|
34881
|
-
if (!(i || d && fn) &&
|
|
34881
|
+
if (!(i || d && fn) && Ho(a.node, a.offset, u.anchorNode, u.anchorOffset) && Ho(l.node, l.offset, u.focusNode, u.focusOffset))
|
|
34882
34882
|
return;
|
|
34883
34883
|
let f = !1;
|
|
34884
34884
|
if ((c.extend || e == n) && !d) {
|
|
@@ -35000,13 +35000,13 @@ class IW extends Kl {
|
|
|
35000
35000
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
35001
35001
|
}
|
|
35002
35002
|
}
|
|
35003
|
-
class
|
|
35003
|
+
class Bo extends Kl {
|
|
35004
35004
|
constructor(e, n, r, i, o) {
|
|
35005
35005
|
super(e, [], r, i), this.mark = n, this.spec = o;
|
|
35006
35006
|
}
|
|
35007
35007
|
static create(e, n, r, i) {
|
|
35008
35008
|
let o = i.nodeViews[n.type.name], s = o && o(n, i, r);
|
|
35009
|
-
return (!s || !s.dom) && (s =
|
|
35009
|
+
return (!s || !s.dom) && (s = Xo.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Bo(e, n, s.dom, s.contentDOM || s.dom, s);
|
|
35010
35010
|
}
|
|
35011
35011
|
parseRule() {
|
|
35012
35012
|
return this.dirty & br || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -35023,7 +35023,7 @@ class Ho extends Kl {
|
|
|
35023
35023
|
}
|
|
35024
35024
|
}
|
|
35025
35025
|
slice(e, n, r) {
|
|
35026
|
-
let i =
|
|
35026
|
+
let i = Bo.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
|
|
35027
35027
|
n < s && (o = qh(o, n, s, r)), e > 0 && (o = qh(o, 0, e, r));
|
|
35028
35028
|
for (let a = 0; a < o.length; a++)
|
|
35029
35029
|
o[a].parent = i;
|
|
@@ -35061,7 +35061,7 @@ class Si extends Kl {
|
|
|
35061
35061
|
u = document.createTextNode(n.text);
|
|
35062
35062
|
else if (u.nodeType != 3)
|
|
35063
35063
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
35064
|
-
} else u || ({ dom: u, contentDOM: d } =
|
|
35064
|
+
} else u || ({ dom: u, contentDOM: d } = Xo.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
35065
35065
|
!d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
|
|
35066
35066
|
let f = u;
|
|
35067
35067
|
return u = Bw(u, r, n), c ? l = new LW(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new Td(e, n, r, i, u, f, o) : new Si(e, n, r, i, u, d || null, f, o, s + 1);
|
|
@@ -35111,7 +35111,7 @@ class Si extends Kl {
|
|
|
35111
35111
|
}
|
|
35112
35112
|
localCompositionInfo(e, n) {
|
|
35113
35113
|
let { from: r, to: i } = e.state.selection;
|
|
35114
|
-
if (!(e.state.selection instanceof
|
|
35114
|
+
if (!(e.state.selection instanceof Ie) || r < n || i > n + this.node.content.size)
|
|
35115
35115
|
return null;
|
|
35116
35116
|
let o = e.input.compositionNode;
|
|
35117
35117
|
if (!o || !this.dom.contains(o.parentNode))
|
|
@@ -35268,7 +35268,7 @@ function _w(t, e, n) {
|
|
|
35268
35268
|
r = r.nextSibling;
|
|
35269
35269
|
} else
|
|
35270
35270
|
i = !0, t.insertBefore(a, r);
|
|
35271
|
-
if (s instanceof
|
|
35271
|
+
if (s instanceof Bo) {
|
|
35272
35272
|
let l = r ? r.previousSibling : t.lastChild;
|
|
35273
35273
|
_w(s.contentDOM, s.children, n), r = l ? l.nextSibling : t.firstChild;
|
|
35274
35274
|
}
|
|
@@ -35387,7 +35387,7 @@ class jW {
|
|
|
35387
35387
|
if (a > -1)
|
|
35388
35388
|
a > this.index && (this.changed = !0, this.destroyBetween(this.index, a)), this.top = this.top.children[this.index];
|
|
35389
35389
|
else {
|
|
35390
|
-
let l =
|
|
35390
|
+
let l = Bo.create(this.top, e[o], n, r);
|
|
35391
35391
|
this.top.children.splice(this.index, 0, l), this.top = l, this.changed = !0;
|
|
35392
35392
|
}
|
|
35393
35393
|
this.index = 0, o++;
|
|
@@ -35480,7 +35480,7 @@ class jW {
|
|
|
35480
35480
|
// contentEditable.
|
|
35481
35481
|
addTextblockHacks() {
|
|
35482
35482
|
let e = this.top.children[this.index - 1], n = this.top;
|
|
35483
|
-
for (; e instanceof
|
|
35483
|
+
for (; e instanceof Bo; )
|
|
35484
35484
|
n = e, e = n.children[n.children.length - 1];
|
|
35485
35485
|
(!e || // Empty textblock
|
|
35486
35486
|
!(e instanceof Td) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((fn || on) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
@@ -35506,7 +35506,7 @@ function FW(t, e) {
|
|
|
35506
35506
|
for (; ; )
|
|
35507
35507
|
if (r) {
|
|
35508
35508
|
let c = n.children[r - 1];
|
|
35509
|
-
if (c instanceof
|
|
35509
|
+
if (c instanceof Bo)
|
|
35510
35510
|
n = c, r = c.children.length;
|
|
35511
35511
|
else {
|
|
35512
35512
|
a = c, r--;
|
|
@@ -35661,7 +35661,7 @@ function Hr(t, e = !1) {
|
|
|
35661
35661
|
if (zw(t, n), !!$w(t)) {
|
|
35662
35662
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && on) {
|
|
35663
35663
|
let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
|
|
35664
|
-
if (r.anchorNode && i.anchorNode &&
|
|
35664
|
+
if (r.anchorNode && i.anchorNode && Ho(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
|
|
35665
35665
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
35666
35666
|
return;
|
|
35667
35667
|
}
|
|
@@ -35670,7 +35670,7 @@ function Hr(t, e = !1) {
|
|
|
35670
35670
|
WW(t);
|
|
35671
35671
|
else {
|
|
35672
35672
|
let { anchor: r, head: i } = n, o, s;
|
|
35673
|
-
eb && !(n instanceof
|
|
35673
|
+
eb && !(n instanceof Ie) && (n.$from.parent.inlineContent || (o = tb(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = tb(t, n.to))), t.docView.setSelection(r, i, t, e), eb && (o && nb(o), s && nb(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && zW(t));
|
|
35674
35674
|
}
|
|
35675
35675
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
35676
35676
|
}
|
|
@@ -35721,7 +35721,7 @@ function rb(t) {
|
|
|
35721
35721
|
t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0);
|
|
35722
35722
|
}
|
|
35723
35723
|
function lg(t, e, n, r) {
|
|
35724
|
-
return t.someProp("createSelectionBetween", (i) => i(t, e, n)) ||
|
|
35724
|
+
return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || Ie.between(e, n, r);
|
|
35725
35725
|
}
|
|
35726
35726
|
function ib(t) {
|
|
35727
35727
|
return t.editable && !t.hasFocus() ? !1 : Ww(t);
|
|
@@ -35738,7 +35738,7 @@ function Ww(t) {
|
|
|
35738
35738
|
}
|
|
35739
35739
|
function UW(t) {
|
|
35740
35740
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
35741
|
-
return
|
|
35741
|
+
return Ho(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
35742
35742
|
}
|
|
35743
35743
|
function Kh(t, e) {
|
|
35744
35744
|
let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
@@ -35749,13 +35749,13 @@ function ri(t, e) {
|
|
|
35749
35749
|
}
|
|
35750
35750
|
function ob(t, e, n) {
|
|
35751
35751
|
let r = t.state.selection;
|
|
35752
|
-
if (r instanceof
|
|
35752
|
+
if (r instanceof Ie)
|
|
35753
35753
|
if (n.indexOf("s") > -1) {
|
|
35754
35754
|
let { $head: i } = r, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter;
|
|
35755
35755
|
if (!o || o.isText || !o.isLeaf)
|
|
35756
35756
|
return !1;
|
|
35757
35757
|
let s = t.state.doc.resolve(i.pos + o.nodeSize * (e < 0 ? -1 : 1));
|
|
35758
|
-
return ri(t, new
|
|
35758
|
+
return ri(t, new Ie(r.$anchor, s));
|
|
35759
35759
|
} else if (r.empty) {
|
|
35760
35760
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
35761
35761
|
let i = Kh(t.state, e);
|
|
@@ -35765,12 +35765,12 @@ function ob(t, e, n) {
|
|
|
35765
35765
|
if (!o || o.isText)
|
|
35766
35766
|
return !1;
|
|
35767
35767
|
let a = e < 0 ? i.pos - o.nodeSize : i.pos;
|
|
35768
|
-
return o.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Me.isSelectable(o) ? ri(t, new Me(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : ql ? ri(t, new
|
|
35768
|
+
return o.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Me.isSelectable(o) ? ri(t, new Me(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : ql ? ri(t, new Ie(t.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
|
|
35769
35769
|
}
|
|
35770
35770
|
} else return !1;
|
|
35771
35771
|
else {
|
|
35772
35772
|
if (r instanceof Me && r.node.isInline)
|
|
35773
|
-
return ri(t, new
|
|
35773
|
+
return ri(t, new Ie(e > 0 ? r.$to : r.$from));
|
|
35774
35774
|
{
|
|
35775
35775
|
let i = Kh(t.state, e);
|
|
35776
35776
|
return i ? ri(t, i) : !1;
|
|
@@ -35784,7 +35784,7 @@ function _a(t, e) {
|
|
|
35784
35784
|
let n = t.pmViewDesc;
|
|
35785
35785
|
return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
35786
35786
|
}
|
|
35787
|
-
function
|
|
35787
|
+
function as(t, e) {
|
|
35788
35788
|
return e < 0 ? ZW(t) : GW(t);
|
|
35789
35789
|
}
|
|
35790
35790
|
function ZW(t) {
|
|
@@ -35920,7 +35920,7 @@ function sb(t, e) {
|
|
|
35920
35920
|
}
|
|
35921
35921
|
function ab(t, e, n) {
|
|
35922
35922
|
let r = t.state.selection;
|
|
35923
|
-
if (r instanceof
|
|
35923
|
+
if (r instanceof Ie && !r.empty || n.indexOf("s") > -1 || Ln && n.indexOf("m") > -1)
|
|
35924
35924
|
return !1;
|
|
35925
35925
|
let { $from: i, $to: o } = r;
|
|
35926
35926
|
if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
@@ -35935,7 +35935,7 @@ function ab(t, e, n) {
|
|
|
35935
35935
|
return !1;
|
|
35936
35936
|
}
|
|
35937
35937
|
function lb(t, e) {
|
|
35938
|
-
if (!(t.state.selection instanceof
|
|
35938
|
+
if (!(t.state.selection instanceof Ie))
|
|
35939
35939
|
return !0;
|
|
35940
35940
|
let { $head: n, $anchor: r, empty: i } = t.state.selection;
|
|
35941
35941
|
if (!n.sameParent(r))
|
|
@@ -35971,22 +35971,22 @@ function JW(t) {
|
|
|
35971
35971
|
function XW(t, e) {
|
|
35972
35972
|
let n = e.keyCode, r = JW(e);
|
|
35973
35973
|
if (n == 8 || Ln && n == 72 && r == "c")
|
|
35974
|
-
return lb(t, -1) ||
|
|
35974
|
+
return lb(t, -1) || as(t, -1);
|
|
35975
35975
|
if (n == 46 && !e.shiftKey || Ln && n == 68 && r == "c")
|
|
35976
|
-
return lb(t, 1) ||
|
|
35976
|
+
return lb(t, 1) || as(t, 1);
|
|
35977
35977
|
if (n == 13 || n == 27)
|
|
35978
35978
|
return !0;
|
|
35979
35979
|
if (n == 37 || Ln && n == 66 && r == "c") {
|
|
35980
35980
|
let i = n == 37 ? sb(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
35981
|
-
return ob(t, i, r) ||
|
|
35981
|
+
return ob(t, i, r) || as(t, i);
|
|
35982
35982
|
} else if (n == 39 || Ln && n == 70 && r == "c") {
|
|
35983
35983
|
let i = n == 39 ? sb(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
35984
|
-
return ob(t, i, r) ||
|
|
35984
|
+
return ob(t, i, r) || as(t, i);
|
|
35985
35985
|
} else {
|
|
35986
35986
|
if (n == 38 || Ln && n == 80 && r == "c")
|
|
35987
|
-
return ab(t, -1, r) ||
|
|
35987
|
+
return ab(t, -1, r) || as(t, -1);
|
|
35988
35988
|
if (n == 40 || Ln && n == 78 && r == "c")
|
|
35989
|
-
return YW(t) || ab(t, 1, r) ||
|
|
35989
|
+
return YW(t) || ab(t, 1, r) || as(t, 1);
|
|
35990
35990
|
if (r == (Ln ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
35991
35991
|
return !0;
|
|
35992
35992
|
}
|
|
@@ -36002,7 +36002,7 @@ function cg(t, e) {
|
|
|
36002
36002
|
let p = r.firstChild;
|
|
36003
36003
|
n.push(p.type.name, p.attrs != p.type.defaultAttrs ? p.attrs : null), r = p.content;
|
|
36004
36004
|
}
|
|
36005
|
-
let s = t.someProp("clipboardSerializer") ||
|
|
36005
|
+
let s = t.someProp("clipboardSerializer") || Xo.fromSchema(t.state.schema), a = Jw(), l = a.createElement("div");
|
|
36006
36006
|
l.appendChild(s.serializeFragment(r, { document: a }));
|
|
36007
36007
|
let c = l.firstChild, u, d = 0;
|
|
36008
36008
|
for (; c && c.nodeType == 1 && (u = Yw[c.nodeName.toLowerCase()]); ) {
|
|
@@ -36035,7 +36035,7 @@ function Zw(t, e, n, r, i) {
|
|
|
36035
36035
|
if (d)
|
|
36036
36036
|
a = d;
|
|
36037
36037
|
else {
|
|
36038
|
-
let f = i.marks(), { schema: p } = t.state, m =
|
|
36038
|
+
let f = i.marks(), { schema: p } = t.state, m = Xo.fromSchema(p);
|
|
36039
36039
|
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((h) => {
|
|
36040
36040
|
let g = s.appendChild(document.createElement("p"));
|
|
36041
36041
|
h && g.appendChild(m.serializeNode(p.text(h, f)));
|
|
@@ -36251,7 +36251,7 @@ hn.keypress = (t, e) => {
|
|
|
36251
36251
|
return;
|
|
36252
36252
|
}
|
|
36253
36253
|
let r = t.state.selection;
|
|
36254
|
-
if (!(r instanceof
|
|
36254
|
+
if (!(r instanceof Ie) || !r.$from.sameParent(r.$to)) {
|
|
36255
36255
|
let i = String.fromCharCode(n.charCode), o = () => t.state.tr.insertText(i).scrollIntoView();
|
|
36256
36256
|
!/[\r\n]/.test(i) && !t.someProp("handleTextInput", (s) => s(t, r.$from.pos, r.$to.pos, i, o)) && t.dispatch(o()), n.preventDefault();
|
|
36257
36257
|
}
|
|
@@ -36272,7 +36272,7 @@ function dg(t, e, n, r, i) {
|
|
|
36272
36272
|
return !0;
|
|
36273
36273
|
return !1;
|
|
36274
36274
|
}
|
|
36275
|
-
function
|
|
36275
|
+
function Es(t, e, n) {
|
|
36276
36276
|
if (t.focused || t.focus(), t.state.selection.eq(e))
|
|
36277
36277
|
return;
|
|
36278
36278
|
let r = t.state.tr.setSelection(e);
|
|
@@ -36282,7 +36282,7 @@ function fU(t, e) {
|
|
|
36282
36282
|
if (e == -1)
|
|
36283
36283
|
return !1;
|
|
36284
36284
|
let n = t.state.doc.resolve(e), r = n.nodeAfter;
|
|
36285
|
-
return r && r.isAtom && Me.isSelectable(r) ? (
|
|
36285
|
+
return r && r.isAtom && Me.isSelectable(r) ? (Es(t, new Me(n)), !0) : !1;
|
|
36286
36286
|
}
|
|
36287
36287
|
function pU(t, e) {
|
|
36288
36288
|
if (e == -1)
|
|
@@ -36297,7 +36297,7 @@ function pU(t, e) {
|
|
|
36297
36297
|
break;
|
|
36298
36298
|
}
|
|
36299
36299
|
}
|
|
36300
|
-
return i != null ? (
|
|
36300
|
+
return i != null ? (Es(t, Me.create(t.state.doc, i)), !0) : !1;
|
|
36301
36301
|
}
|
|
36302
36302
|
function hU(t, e, n, r, i) {
|
|
36303
36303
|
return dg(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? pU(t, n) : fU(t, n));
|
|
@@ -36313,14 +36313,14 @@ function vU(t, e, n) {
|
|
|
36313
36313
|
return !1;
|
|
36314
36314
|
let r = t.state.doc;
|
|
36315
36315
|
if (e == -1)
|
|
36316
|
-
return r.inlineContent ? (
|
|
36316
|
+
return r.inlineContent ? (Es(t, Ie.create(r, 0, r.content.size)), !0) : !1;
|
|
36317
36317
|
let i = r.resolve(e);
|
|
36318
36318
|
for (let o = i.depth + 1; o > 0; o--) {
|
|
36319
36319
|
let s = o > i.depth ? i.nodeAfter : i.node(o), a = i.before(o);
|
|
36320
36320
|
if (s.inlineContent)
|
|
36321
|
-
|
|
36321
|
+
Es(t, Ie.create(r, a + 1, a + 1 + s.content.size));
|
|
36322
36322
|
else if (Me.isSelectable(s))
|
|
36323
|
-
|
|
36323
|
+
Es(t, Me.create(r, a));
|
|
36324
36324
|
else
|
|
36325
36325
|
continue;
|
|
36326
36326
|
return !0;
|
|
@@ -36375,7 +36375,7 @@ class yU {
|
|
|
36375
36375
|
// (hidden) cursor is doesn't change the selection, and
|
|
36376
36376
|
// thus doesn't get a reaction from ProseMirror. This
|
|
36377
36377
|
// works around that.
|
|
36378
|
-
on && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (
|
|
36378
|
+
on && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Es(this.view, Ve.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : yi(this.view, "pointer");
|
|
36379
36379
|
}
|
|
36380
36380
|
move(e) {
|
|
36381
36381
|
this.updateAllowDefault(e), yi(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -36399,7 +36399,7 @@ hn.compositionstart = hn.compositionupdate = (t) => {
|
|
|
36399
36399
|
if (!t.composing) {
|
|
36400
36400
|
t.domObserver.flush();
|
|
36401
36401
|
let { state: e } = t, n = e.selection.$to;
|
|
36402
|
-
if (e.selection instanceof
|
|
36402
|
+
if (e.selection instanceof Ie && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
36403
36403
|
t.markCursor = t.state.storedMarks || n.marks(), fu(t, !0), t.markCursor = null;
|
|
36404
36404
|
else if (fu(t, !e.selection.empty), Yn && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
36405
36405
|
let r = t.domSelectionRange();
|
|
@@ -36622,7 +36622,7 @@ function bl(t, e) {
|
|
|
36622
36622
|
}
|
|
36623
36623
|
class pu {
|
|
36624
36624
|
constructor(e, n) {
|
|
36625
|
-
this.toDOM = e, this.spec = n ||
|
|
36625
|
+
this.toDOM = e, this.spec = n || To, this.side = this.spec.side || 0;
|
|
36626
36626
|
}
|
|
36627
36627
|
map(e, n, r, i) {
|
|
36628
36628
|
let { pos: o, deleted: s } = e.mapResult(n.from + i, this.side < 0 ? -1 : 1);
|
|
@@ -36640,7 +36640,7 @@ class pu {
|
|
|
36640
36640
|
}
|
|
36641
36641
|
class Ei {
|
|
36642
36642
|
constructor(e, n) {
|
|
36643
|
-
this.attrs = e, this.spec = n ||
|
|
36643
|
+
this.attrs = e, this.spec = n || To;
|
|
36644
36644
|
}
|
|
36645
36645
|
map(e, n, r, i) {
|
|
36646
36646
|
let o = e.map(n.from + i, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(n.to + i, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
@@ -36660,7 +36660,7 @@ class Ei {
|
|
|
36660
36660
|
}
|
|
36661
36661
|
class pg {
|
|
36662
36662
|
constructor(e, n) {
|
|
36663
|
-
this.attrs = e, this.spec = n ||
|
|
36663
|
+
this.attrs = e, this.spec = n || To;
|
|
36664
36664
|
}
|
|
36665
36665
|
map(e, n, r, i) {
|
|
36666
36666
|
let o = e.mapResult(n.from + i, 1);
|
|
@@ -36750,13 +36750,13 @@ class _n {
|
|
|
36750
36750
|
return this.type instanceof pu;
|
|
36751
36751
|
}
|
|
36752
36752
|
}
|
|
36753
|
-
const
|
|
36753
|
+
const cs = [], To = {};
|
|
36754
36754
|
class Dt {
|
|
36755
36755
|
/**
|
|
36756
36756
|
@internal
|
|
36757
36757
|
*/
|
|
36758
36758
|
constructor(e, n) {
|
|
36759
|
-
this.local = e.length ? e :
|
|
36759
|
+
this.local = e.length ? e : cs, this.children = n.length ? n : cs;
|
|
36760
36760
|
}
|
|
36761
36761
|
/**
|
|
36762
36762
|
Create a set of decorations, using the structure of the given
|
|
@@ -36764,7 +36764,7 @@ class Dt {
|
|
|
36764
36764
|
you must make a copy if you want need to preserve that.
|
|
36765
36765
|
*/
|
|
36766
36766
|
static create(e, n) {
|
|
36767
|
-
return n.length ? hu(n, e, 0,
|
|
36767
|
+
return n.length ? hu(n, e, 0, To) : Qt;
|
|
36768
36768
|
}
|
|
36769
36769
|
/**
|
|
36770
36770
|
Find all decorations in this set which touch the given range
|
|
@@ -36794,7 +36794,7 @@ class Dt {
|
|
|
36794
36794
|
document.
|
|
36795
36795
|
*/
|
|
36796
36796
|
map(e, n, r) {
|
|
36797
|
-
return this == Qt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r ||
|
|
36797
|
+
return this == Qt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || To);
|
|
36798
36798
|
}
|
|
36799
36799
|
/**
|
|
36800
36800
|
@internal
|
|
@@ -36805,7 +36805,7 @@ class Dt {
|
|
|
36805
36805
|
let l = this.local[a].map(e, r, i);
|
|
36806
36806
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : o.onRemove && o.onRemove(this.local[a].spec);
|
|
36807
36807
|
}
|
|
36808
|
-
return this.children.length ? MU(this.children, s || [], e, n, r, i, o) : s ? new Dt(s.sort(
|
|
36808
|
+
return this.children.length ? MU(this.children, s || [], e, n, r, i, o) : s ? new Dt(s.sort(Ao), cs) : Qt;
|
|
36809
36809
|
}
|
|
36810
36810
|
/**
|
|
36811
36811
|
Add the given array of decorations to the ones in the set,
|
|
@@ -36823,13 +36823,13 @@ class Dt {
|
|
|
36823
36823
|
if (u = s7(n, a, c)) {
|
|
36824
36824
|
for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
|
|
36825
36825
|
o += 3;
|
|
36826
|
-
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, hu(u, a, c + 1,
|
|
36826
|
+
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, hu(u, a, c + 1, To)), o += 3;
|
|
36827
36827
|
}
|
|
36828
36828
|
});
|
|
36829
36829
|
let s = o7(o ? a7(n) : n, -r);
|
|
36830
36830
|
for (let a = 0; a < s.length; a++)
|
|
36831
36831
|
s[a].type.valid(e, s[a]) || s.splice(a--, 1);
|
|
36832
|
-
return new Dt(s.length ? this.local.concat(s).sort(
|
|
36832
|
+
return new Dt(s.length ? this.local.concat(s).sort(Ao) : this.local, i || this.children);
|
|
36833
36833
|
}
|
|
36834
36834
|
/**
|
|
36835
36835
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -36878,7 +36878,7 @@ class Dt {
|
|
|
36878
36878
|
}
|
|
36879
36879
|
}
|
|
36880
36880
|
if (i) {
|
|
36881
|
-
let a = new Dt(i.sort(
|
|
36881
|
+
let a = new Dt(i.sort(Ao), cs);
|
|
36882
36882
|
return r ? new li([a, r]) : a;
|
|
36883
36883
|
}
|
|
36884
36884
|
return r || Qt;
|
|
@@ -36910,7 +36910,7 @@ class Dt {
|
|
|
36910
36910
|
*/
|
|
36911
36911
|
localsInner(e) {
|
|
36912
36912
|
if (this == Qt)
|
|
36913
|
-
return
|
|
36913
|
+
return cs;
|
|
36914
36914
|
if (e.inlineContent || !this.local.some(Ei.is))
|
|
36915
36915
|
return this.local;
|
|
36916
36916
|
let n = [];
|
|
@@ -36930,7 +36930,7 @@ class li {
|
|
|
36930
36930
|
this.members = e;
|
|
36931
36931
|
}
|
|
36932
36932
|
map(e, n) {
|
|
36933
|
-
const r = this.members.map((i) => i.map(e, n,
|
|
36933
|
+
const r = this.members.map((i) => i.map(e, n, To));
|
|
36934
36934
|
return li.from(r);
|
|
36935
36935
|
}
|
|
36936
36936
|
forChild(e, n) {
|
|
@@ -36964,7 +36964,7 @@ class li {
|
|
|
36964
36964
|
n.push(o[s]);
|
|
36965
36965
|
}
|
|
36966
36966
|
}
|
|
36967
|
-
return n ? hg(r ? n : n.sort(
|
|
36967
|
+
return n ? hg(r ? n : n.sort(Ao)) : cs;
|
|
36968
36968
|
}
|
|
36969
36969
|
// Create a group for the given array of decoration sets, or return
|
|
36970
36970
|
// a single set when possible.
|
|
@@ -37030,7 +37030,7 @@ function MU(t, e, n, r, i, o, s) {
|
|
|
37030
37030
|
a.splice(f, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
|
|
37031
37031
|
}
|
|
37032
37032
|
}
|
|
37033
|
-
return new Dt(e.sort(
|
|
37033
|
+
return new Dt(e.sort(Ao), a);
|
|
37034
37034
|
}
|
|
37035
37035
|
function o7(t, e) {
|
|
37036
37036
|
if (!e || !t.length)
|
|
@@ -37079,12 +37079,12 @@ function hu(t, e, n, r) {
|
|
|
37079
37079
|
u != Qt && i.push(l, l + a.nodeSize, u);
|
|
37080
37080
|
}
|
|
37081
37081
|
});
|
|
37082
|
-
let s = o7(o ? a7(t) : t, -n).sort(
|
|
37082
|
+
let s = o7(o ? a7(t) : t, -n).sort(Ao);
|
|
37083
37083
|
for (let a = 0; a < s.length; a++)
|
|
37084
37084
|
s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
|
|
37085
37085
|
return s.length || i.length ? new Dt(s, i) : Qt;
|
|
37086
37086
|
}
|
|
37087
|
-
function
|
|
37087
|
+
function Ao(t, e) {
|
|
37088
37088
|
return t.from - e.from || t.to - e.to;
|
|
37089
37089
|
}
|
|
37090
37090
|
function hg(t) {
|
|
@@ -37106,7 +37106,7 @@ function hg(t) {
|
|
|
37106
37106
|
return e;
|
|
37107
37107
|
}
|
|
37108
37108
|
function fb(t, e, n) {
|
|
37109
|
-
for (; e < t.length &&
|
|
37109
|
+
for (; e < t.length && Ao(n, t[e]) > 0; )
|
|
37110
37110
|
e++;
|
|
37111
37111
|
t.splice(e, 0, n);
|
|
37112
37112
|
}
|
|
@@ -37187,7 +37187,7 @@ class PU {
|
|
|
37187
37187
|
return Hr(this.view);
|
|
37188
37188
|
if (bn && ki <= 11 && !this.view.state.selection.empty) {
|
|
37189
37189
|
let e = this.view.domSelectionRange();
|
|
37190
|
-
if (e.focusNode &&
|
|
37190
|
+
if (e.focusNode && Ho(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
37191
37191
|
return this.flushSoon();
|
|
37192
37192
|
}
|
|
37193
37193
|
this.flush();
|
|
@@ -37291,7 +37291,7 @@ function RU(t) {
|
|
|
37291
37291
|
}
|
|
37292
37292
|
function mb(t, e) {
|
|
37293
37293
|
let n = e.startContainer, r = e.startOffset, i = e.endContainer, o = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
37294
|
-
return
|
|
37294
|
+
return Ho(s.node, s.offset, i, o) && ([n, r, i, o] = [i, o, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: o };
|
|
37295
37295
|
}
|
|
37296
37296
|
function NU(t, e) {
|
|
37297
37297
|
if (e.getComposedRanges) {
|
|
@@ -37379,7 +37379,7 @@ function FU(t, e, n, r, i) {
|
|
|
37379
37379
|
return;
|
|
37380
37380
|
}
|
|
37381
37381
|
if (!m)
|
|
37382
|
-
if (r && l instanceof
|
|
37382
|
+
if (r && l instanceof Ie && !l.empty && l.$head.sameParent(l.$anchor) && !t.composing && !(c.sel && c.sel.anchor != c.sel.head))
|
|
37383
37383
|
m = { start: l.from, endA: l.to, endB: l.to };
|
|
37384
37384
|
else {
|
|
37385
37385
|
if (c.sel) {
|
|
@@ -37391,7 +37391,7 @@ function FU(t, e, n, r, i) {
|
|
|
37391
37391
|
}
|
|
37392
37392
|
return;
|
|
37393
37393
|
}
|
|
37394
|
-
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof
|
|
37394
|
+
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Ie && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), bn && ki <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > c.from && c.doc.textBetween(m.start - c.from - 1, m.start - c.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
37395
37395
|
let h = c.doc.resolveNoCache(m.start - c.from), g = c.doc.resolveNoCache(m.endB - c.from), v = u.resolve(m.start), y = h.sameParent(g) && h.parent.inlineContent && v.end() >= m.endA, w;
|
|
37396
37396
|
if ((Ws && t.input.lastIOSEnter > Date.now() - 225 && (!y || i.some((S) => S.nodeName == "DIV" || S.nodeName == "P")) || !y && h.pos < c.doc.content.size && (!h.sameParent(g) || !h.parent.inlineContent) && !/\S/.test(c.doc.textBetween(h.pos, g.pos, "", "")) && (w = Ve.findFrom(c.doc.resolve(h.pos + 1), 1, !0)) && w.head > h.pos) && t.someProp("handleKeyDown", (S) => S(t, ro(13, "Enter")))) {
|
|
37397
37397
|
t.input.lastIOSEnter = 0;
|
|
@@ -38098,7 +38098,7 @@ function f7(t, e, n) {
|
|
|
38098
38098
|
return !1;
|
|
38099
38099
|
if (n) {
|
|
38100
38100
|
let u = t.tr.step(c);
|
|
38101
|
-
u.setSelection(
|
|
38101
|
+
u.setSelection(Ie.create(u.doc, o)), n(u.scrollIntoView());
|
|
38102
38102
|
}
|
|
38103
38103
|
return !0;
|
|
38104
38104
|
}
|
|
@@ -38240,7 +38240,7 @@ const rZ = (t, e) => {
|
|
|
38240
38240
|
return !1;
|
|
38241
38241
|
if (e) {
|
|
38242
38242
|
let s = (!r.parentOffset && i.index() < i.parent.childCount ? r : i).pos, a = t.tr.insert(s, o.createAndFill());
|
|
38243
|
-
a.setSelection(
|
|
38243
|
+
a.setSelection(Ie.create(a.doc, s + 1)), e(a.scrollIntoView());
|
|
38244
38244
|
}
|
|
38245
38245
|
return !0;
|
|
38246
38246
|
}, b7 = (t, e) => {
|
|
@@ -38273,7 +38273,7 @@ function iZ(t) {
|
|
|
38273
38273
|
o.unshift(null);
|
|
38274
38274
|
}
|
|
38275
38275
|
let u = e.tr;
|
|
38276
|
-
(e.selection instanceof
|
|
38276
|
+
(e.selection instanceof Ie || e.selection instanceof Mn) && u.deleteSelection();
|
|
38277
38277
|
let d = u.mapping.map(r.pos), f = _r(u.doc, d, o.length, o);
|
|
38278
38278
|
if (f || (o[0] = a ? { type: a } : null, f = _r(u.doc, d, o.length, o)), !f)
|
|
38279
38279
|
return !1;
|
|
@@ -38339,7 +38339,7 @@ function w7(t) {
|
|
|
38339
38339
|
return !1;
|
|
38340
38340
|
o--;
|
|
38341
38341
|
}
|
|
38342
|
-
return i.node(o).isTextblock ? (n && n(e.tr.setSelection(
|
|
38342
|
+
return i.node(o).isTextblock ? (n && n(e.tr.setSelection(Ie.create(e.doc, t < 0 ? i.start(o) : i.end(o)))), !0) : !1;
|
|
38343
38343
|
};
|
|
38344
38344
|
}
|
|
38345
38345
|
const lZ = w7(-1), cZ = w7(1);
|
|
@@ -38808,7 +38808,7 @@ function Mb(t, e) {
|
|
|
38808
38808
|
return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e;
|
|
38809
38809
|
}
|
|
38810
38810
|
function xg(t, e) {
|
|
38811
|
-
const n =
|
|
38811
|
+
const n = Xo.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div");
|
|
38812
38812
|
return i.appendChild(n), i.innerHTML;
|
|
38813
38813
|
}
|
|
38814
38814
|
const CZ = (t, e = 500) => {
|
|
@@ -39166,9 +39166,9 @@ function RZ(t) {
|
|
|
39166
39166
|
const e = t.filter((n, r) => t.indexOf(n) !== r);
|
|
39167
39167
|
return Array.from(new Set(e));
|
|
39168
39168
|
}
|
|
39169
|
-
class
|
|
39169
|
+
class ys {
|
|
39170
39170
|
constructor(e, n) {
|
|
39171
|
-
this.splittableMarks = [], this.editor = n, this.extensions =
|
|
39171
|
+
this.splittableMarks = [], this.editor = n, this.extensions = ys.resolve(e), this.schema = wZ(this.extensions, n), this.setupExtensions();
|
|
39172
39172
|
}
|
|
39173
39173
|
/**
|
|
39174
39174
|
* Returns a flattened and sorted extension list while
|
|
@@ -39177,7 +39177,7 @@ class vs {
|
|
|
39177
39177
|
* @returns An flattened and sorted array of Tiptap extensions
|
|
39178
39178
|
*/
|
|
39179
39179
|
static resolve(e) {
|
|
39180
|
-
const n =
|
|
39180
|
+
const n = ys.sort(ys.flatten(e)), r = RZ(n.map((i) => i.name));
|
|
39181
39181
|
return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), n;
|
|
39182
39182
|
}
|
|
39183
39183
|
/**
|
|
@@ -39230,7 +39230,7 @@ class vs {
|
|
|
39230
39230
|
* @returns An array of Prosemirror plugins
|
|
39231
39231
|
*/
|
|
39232
39232
|
get plugins() {
|
|
39233
|
-
const { editor: e } = this, n =
|
|
39233
|
+
const { editor: e } = this, n = ys.sort([...this.extensions].reverse()), r = [], i = [], o = n.map((s) => {
|
|
39234
39234
|
const a = {
|
|
39235
39235
|
name: s.name,
|
|
39236
39236
|
options: s.options,
|
|
@@ -39435,7 +39435,7 @@ const NZ = qt.create({
|
|
|
39435
39435
|
const { state: i } = n, o = i.doc.slice(t.from, t.to);
|
|
39436
39436
|
r.deleteRange(t.from, t.to);
|
|
39437
39437
|
const s = r.mapping.map(e);
|
|
39438
|
-
return r.insert(s, o.content), r.setSelection(new
|
|
39438
|
+
return r.insert(s, o.content), r.setSelection(new Ie(r.doc.resolve(s - 1))), !0;
|
|
39439
39439
|
}, HZ = () => ({ tr: t, dispatch: e }) => {
|
|
39440
39440
|
const { selection: n } = t, r = n.$anchor.node();
|
|
39441
39441
|
if (r.content.size > 0)
|
|
@@ -39509,7 +39509,7 @@ const ZZ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
39509
39509
|
if (i) {
|
|
39510
39510
|
const d = Cg(l, o, e);
|
|
39511
39511
|
if (d && d.from <= c && d.to >= u) {
|
|
39512
|
-
const f =
|
|
39512
|
+
const f = Ie.create(s, d.from, d.to);
|
|
39513
39513
|
n.setSelection(f);
|
|
39514
39514
|
}
|
|
39515
39515
|
}
|
|
@@ -39522,7 +39522,7 @@ const ZZ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
39522
39522
|
return !1;
|
|
39523
39523
|
};
|
|
39524
39524
|
function O7(t) {
|
|
39525
|
-
return t instanceof
|
|
39525
|
+
return t instanceof Ie;
|
|
39526
39526
|
}
|
|
39527
39527
|
function po(t = 0, e = 0, n = 0) {
|
|
39528
39528
|
return Math.min(Math.max(t, e), n);
|
|
@@ -39536,7 +39536,7 @@ function T7(t, e = null) {
|
|
|
39536
39536
|
if (e === "end")
|
|
39537
39537
|
return r;
|
|
39538
39538
|
const i = n.from, o = r.to;
|
|
39539
|
-
return e === "all" ?
|
|
39539
|
+
return e === "all" ? Ie.create(t, po(0, i, o), po(t.content.size, i, o)) : Ie.create(t, po(e, i, o), po(e, i, o));
|
|
39540
39540
|
}
|
|
39541
39541
|
function qZ() {
|
|
39542
39542
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -40079,7 +40079,7 @@ const VG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
40079
40079
|
return !0;
|
|
40080
40080
|
}, HG = (t) => ({ tr: e, dispatch: n }) => {
|
|
40081
40081
|
if (n) {
|
|
40082
|
-
const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, s =
|
|
40082
|
+
const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = Ie.atStart(r).from, a = Ie.atEnd(r).to, l = po(i, s, a), c = po(o, s, a), u = Ie.create(r, l, c);
|
|
40083
40083
|
e.setSelection(u);
|
|
40084
40084
|
}
|
|
40085
40085
|
return !0;
|
|
@@ -40113,7 +40113,7 @@ const $G = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
40113
40113
|
attrs: u
|
|
40114
40114
|
}
|
|
40115
40115
|
] : void 0), r) {
|
|
40116
|
-
if (m && (o instanceof
|
|
40116
|
+
if (m && (o instanceof Ie && e.deleteSelection(), e.split(e.mapping.map(a.pos), 1, p), f && !d && !a.parentOffset && a.parent.type !== f)) {
|
|
40117
40117
|
const h = e.mapping.map(a.before()), g = e.doc.resolve(h);
|
|
40118
40118
|
a.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && e.setNodeMarkup(e.mapping.map(a.before()), f);
|
|
40119
40119
|
}
|
|
@@ -40149,7 +40149,7 @@ const $G = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
40149
40149
|
if (E > -1)
|
|
40150
40150
|
return !1;
|
|
40151
40151
|
S.isTextblock && S.content.size === 0 && (E = O + 1);
|
|
40152
|
-
}), E > -1 && n.setSelection(
|
|
40152
|
+
}), E > -1 && n.setSelection(Ie.near(n.doc.resolve(E))), n.scrollIntoView();
|
|
40153
40153
|
}
|
|
40154
40154
|
return !0;
|
|
40155
40155
|
}
|
|
@@ -40875,7 +40875,7 @@ let dq = class extends yZ {
|
|
|
40875
40875
|
nq,
|
|
40876
40876
|
aq
|
|
40877
40877
|
].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o == null ? void 0 : o.type));
|
|
40878
|
-
this.extensionManager = new
|
|
40878
|
+
this.extensionManager = new ys(i, this);
|
|
40879
40879
|
}
|
|
40880
40880
|
/**
|
|
40881
40881
|
* Creates an command manager.
|
|
@@ -40919,7 +40919,7 @@ let dq = class extends yZ {
|
|
|
40919
40919
|
...(e = this.options.editorProps) === null || e === void 0 ? void 0 : e.attributes
|
|
40920
40920
|
},
|
|
40921
40921
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
40922
|
-
state:
|
|
40922
|
+
state: vs.create({
|
|
40923
40923
|
doc: n,
|
|
40924
40924
|
selection: r || void 0
|
|
40925
40925
|
})
|
|
@@ -41188,7 +41188,7 @@ let er = class rm {
|
|
|
41188
41188
|
})), n;
|
|
41189
41189
|
}
|
|
41190
41190
|
};
|
|
41191
|
-
function
|
|
41191
|
+
function $o(t) {
|
|
41192
41192
|
return new OZ({
|
|
41193
41193
|
find: t.find,
|
|
41194
41194
|
handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
|
|
@@ -42134,7 +42134,7 @@ vn.prototype = {
|
|
|
42134
42134
|
return i.j[t] = s, s;
|
|
42135
42135
|
}
|
|
42136
42136
|
};
|
|
42137
|
-
const je = (t, e, n, r, i) => t.ta(e, n, r, i), yt = (t, e, n, r, i) => t.tr(e, n, r, i), Vb = (t, e, n, r, i) => t.ts(e, n, r, i), he = (t, e, n, r, i) => t.tt(e, n, r, i), Pr = "WORD", dm = "UWORD", L7 = "ASCIINUMERICAL", V7 = "ALPHANUMERICAL", kl = "LOCALHOST", fm = "TLD", pm = "UTLD", Ic = "SCHEME",
|
|
42137
|
+
const je = (t, e, n, r, i) => t.ta(e, n, r, i), yt = (t, e, n, r, i) => t.tr(e, n, r, i), Vb = (t, e, n, r, i) => t.ts(e, n, r, i), he = (t, e, n, r, i) => t.tt(e, n, r, i), Pr = "WORD", dm = "UWORD", L7 = "ASCIINUMERICAL", V7 = "ALPHANUMERICAL", kl = "LOCALHOST", fm = "TLD", pm = "UTLD", Ic = "SCHEME", us = "SLASH_SCHEME", Tg = "NUM", hm = "WS", Ag = "NL", Ba = "OPENBRACE", $a = "CLOSEBRACE", vu = "OPENBRACKET", yu = "CLOSEBRACKET", bu = "OPENPAREN", xu = "CLOSEPAREN", wu = "OPENANGLEBRACKET", Cu = "CLOSEANGLEBRACKET", ku = "FULLWIDTHLEFTPAREN", Su = "FULLWIDTHRIGHTPAREN", Eu = "LEFTCORNERBRACKET", Mu = "RIGHTCORNERBRACKET", Ou = "LEFTWHITECORNERBRACKET", Tu = "RIGHTWHITECORNERBRACKET", Au = "FULLWIDTHLESSTHAN", Du = "FULLWIDTHGREATERTHAN", Pu = "AMPERSAND", Ru = "APOSTROPHE", Nu = "ASTERISK", ii = "AT", Iu = "BACKSLASH", Lu = "BACKTICK", Vu = "CARET", ci = "COLON", Dg = "COMMA", ju = "DOLLAR", ir = "DOT", Fu = "EQUALS", Pg = "EXCLAMATION", Nn = "HYPHEN", za = "PERCENT", _u = "PIPE", Hu = "PLUS", Bu = "POUND", Wa = "QUERY", Rg = "QUOTE", j7 = "FULLWIDTHMIDDLEDOT", Ng = "SEMI", or = "SLASH", Ua = "TILDE", $u = "UNDERSCORE", F7 = "EMOJI", zu = "SYM";
|
|
42138
42138
|
var _7 = /* @__PURE__ */ Object.freeze({
|
|
42139
42139
|
__proto__: null,
|
|
42140
42140
|
ALPHANUMERICAL: V7,
|
|
@@ -42183,7 +42183,7 @@ var _7 = /* @__PURE__ */ Object.freeze({
|
|
|
42183
42183
|
SCHEME: Ic,
|
|
42184
42184
|
SEMI: Ng,
|
|
42185
42185
|
SLASH: or,
|
|
42186
|
-
SLASH_SCHEME:
|
|
42186
|
+
SLASH_SCHEME: us,
|
|
42187
42187
|
SYM: zu,
|
|
42188
42188
|
TILDE: Ua,
|
|
42189
42189
|
TLD: fm,
|
|
@@ -42242,10 +42242,10 @@ function Gq(t = []) {
|
|
|
42242
42242
|
}, e), ho(pm, {
|
|
42243
42243
|
utld: !0,
|
|
42244
42244
|
alpha: !0
|
|
42245
|
-
}, e), Qr(n, "file", Ic, Pr, p), Qr(n, "mailto", Ic, Pr, p), Qr(n, "http",
|
|
42245
|
+
}, e), Qr(n, "file", Ic, Pr, p), Qr(n, "mailto", Ic, Pr, p), Qr(n, "http", us, Pr, p), Qr(n, "https", us, Pr, p), Qr(n, "ftp", us, Pr, p), Qr(n, "ftps", us, Pr, p), ho(Ic, {
|
|
42246
42246
|
scheme: !0,
|
|
42247
42247
|
ascii: !0
|
|
42248
|
-
}, e), ho(
|
|
42248
|
+
}, e), ho(us, {
|
|
42249
42249
|
slashscheme: !0,
|
|
42250
42250
|
ascii: !0
|
|
42251
42251
|
}, e), t = t.sort((h, g) => h[0] > g[0] ? 1 : -1);
|
|
@@ -42895,7 +42895,7 @@ const aK = Jn.create({
|
|
|
42895
42895
|
},
|
|
42896
42896
|
addPasteRules() {
|
|
42897
42897
|
return [
|
|
42898
|
-
|
|
42898
|
+
$o({
|
|
42899
42899
|
find: (t) => {
|
|
42900
42900
|
const e = [];
|
|
42901
42901
|
if (t) {
|
|
@@ -43072,11 +43072,11 @@ const aK = Jn.create({
|
|
|
43072
43072
|
},
|
|
43073
43073
|
addPasteRules() {
|
|
43074
43074
|
return [
|
|
43075
|
-
|
|
43075
|
+
$o({
|
|
43076
43076
|
find: fK,
|
|
43077
43077
|
type: this.type
|
|
43078
43078
|
}),
|
|
43079
|
-
|
|
43079
|
+
$o({
|
|
43080
43080
|
find: hK,
|
|
43081
43081
|
type: this.type
|
|
43082
43082
|
})
|
|
@@ -43170,7 +43170,7 @@ const aK = Jn.create({
|
|
|
43170
43170
|
},
|
|
43171
43171
|
addPasteRules() {
|
|
43172
43172
|
return [
|
|
43173
|
-
|
|
43173
|
+
$o({
|
|
43174
43174
|
find: bK,
|
|
43175
43175
|
type: this.type
|
|
43176
43176
|
})
|
|
@@ -43297,7 +43297,7 @@ const aK = Jn.create({
|
|
|
43297
43297
|
return !1;
|
|
43298
43298
|
const { tr: s, schema: a } = t.state, l = a.text(n.replace(/\r\n?/g, `
|
|
43299
43299
|
`));
|
|
43300
|
-
return s.replaceSelectionWith(this.type.create({ language: o }, l)), s.selection.$from.parent.type !== this.type && s.setSelection(
|
|
43300
|
+
return s.replaceSelectionWith(this.type.create({ language: o }, l)), s.selection.$from.parent.type !== this.type && s.setSelection(Ie.near(s.doc.resolve(Math.max(0, s.selection.from - 2)))), s.setMeta("paste", !0), t.dispatch(s), !0;
|
|
43301
43301
|
}
|
|
43302
43302
|
}
|
|
43303
43303
|
})
|
|
@@ -43561,7 +43561,7 @@ function Cc(t, e) {
|
|
|
43561
43561
|
const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
43562
43562
|
return function(r, i, o) {
|
|
43563
43563
|
let s = r.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
43564
|
-
if (s instanceof
|
|
43564
|
+
if (s instanceof Ie) {
|
|
43565
43565
|
if (!o.endOfTextblock(n) || a.depth == 0)
|
|
43566
43566
|
return !1;
|
|
43567
43567
|
l = !1, a = r.doc.resolve(e > 0 ? a.after() : a.before());
|
|
@@ -43589,7 +43589,7 @@ function NK(t, e) {
|
|
|
43589
43589
|
for (let s = r.length - 1; s >= 0; s--)
|
|
43590
43590
|
i = fe.from(r[s].createAndFill(null, i));
|
|
43591
43591
|
let o = t.state.tr.replace(n.pos, n.pos, new ye(i, 0, 0));
|
|
43592
|
-
return o.setSelection(
|
|
43592
|
+
return o.setSelection(Ie.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
|
|
43593
43593
|
}
|
|
43594
43594
|
function IK(t) {
|
|
43595
43595
|
if (!(t.selection instanceof bt))
|
|
@@ -43903,15 +43903,15 @@ class oi {
|
|
|
43903
43903
|
}
|
|
43904
43904
|
const HK = 20;
|
|
43905
43905
|
function BK(t, e, n, r) {
|
|
43906
|
-
let i = n.getMeta(
|
|
43906
|
+
let i = n.getMeta(Do), o;
|
|
43907
43907
|
if (i)
|
|
43908
43908
|
return i.historyState;
|
|
43909
43909
|
n.getMeta(WK) && (t = new oi(t.done, t.undone, null, 0, -1));
|
|
43910
43910
|
let s = n.getMeta("appendedTransaction");
|
|
43911
43911
|
if (n.steps.length == 0)
|
|
43912
43912
|
return t;
|
|
43913
|
-
if (s && s.getMeta(
|
|
43914
|
-
return s.getMeta(
|
|
43913
|
+
if (s && s.getMeta(Do))
|
|
43914
|
+
return s.getMeta(Do).redo ? new oi(t.done.addTransform(n, void 0, r, Lc(e)), t.undone, Ub(n.mapping.maps), t.prevTime, t.prevComposition) : new oi(t.done, t.undone.addTransform(n, void 0, r, Lc(e)), null, t.prevTime, t.prevComposition);
|
|
43915
43915
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
43916
43916
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !$K(n, t.prevRanges)), c = s ? gp(t.prevRanges, n.mapping) : Ub(n.mapping.maps);
|
|
43917
43917
|
return new oi(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, Lc(e)), Un.empty, c, n.time, a ?? t.prevComposition);
|
|
@@ -43945,11 +43945,11 @@ function gp(t, e) {
|
|
|
43945
43945
|
return n;
|
|
43946
43946
|
}
|
|
43947
43947
|
function zK(t, e, n) {
|
|
43948
|
-
let r = Lc(e), i =
|
|
43948
|
+
let r = Lc(e), i = Do.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
|
|
43949
43949
|
if (!o)
|
|
43950
43950
|
return null;
|
|
43951
43951
|
let s = o.selection.resolve(o.transform.doc), a = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new oi(n ? a : o.remaining, n ? o.remaining : a, null, 0, -1);
|
|
43952
|
-
return o.transform.setSelection(s).setMeta(
|
|
43952
|
+
return o.transform.setSelection(s).setMeta(Do, { redo: n, historyState: l });
|
|
43953
43953
|
}
|
|
43954
43954
|
let vp = !1, Zb = null;
|
|
43955
43955
|
function Lc(t) {
|
|
@@ -43964,13 +43964,13 @@ function Lc(t) {
|
|
|
43964
43964
|
}
|
|
43965
43965
|
return vp;
|
|
43966
43966
|
}
|
|
43967
|
-
const
|
|
43967
|
+
const Do = new wn("history"), WK = new wn("closeHistory");
|
|
43968
43968
|
function UK(t = {}) {
|
|
43969
43969
|
return t = {
|
|
43970
43970
|
depth: t.depth || 100,
|
|
43971
43971
|
newGroupDelay: t.newGroupDelay || 500
|
|
43972
43972
|
}, new $t({
|
|
43973
|
-
key:
|
|
43973
|
+
key: Do,
|
|
43974
43974
|
state: {
|
|
43975
43975
|
init() {
|
|
43976
43976
|
return new oi(Un.empty, Un.empty, null, 0, -1);
|
|
@@ -43992,7 +43992,7 @@ function UK(t = {}) {
|
|
|
43992
43992
|
}
|
|
43993
43993
|
function W7(t, e) {
|
|
43994
43994
|
return (n, r) => {
|
|
43995
|
-
let i =
|
|
43995
|
+
let i = Do.getState(n);
|
|
43996
43996
|
if (!i || (t ? i.undone : i.done).eventCount == 0)
|
|
43997
43997
|
return !1;
|
|
43998
43998
|
if (r) {
|
|
@@ -44061,10 +44061,10 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44061
44061
|
if (a) {
|
|
44062
44062
|
const { $to: c } = s.selection, u = c.end();
|
|
44063
44063
|
if (c.nodeAfter)
|
|
44064
|
-
c.nodeAfter.isTextblock ? s.setSelection(
|
|
44064
|
+
c.nodeAfter.isTextblock ? s.setSelection(Ie.create(s.doc, c.pos + 1)) : c.nodeAfter.isBlock ? s.setSelection(Me.create(s.doc, c.pos)) : s.setSelection(Ie.create(s.doc, c.pos));
|
|
44065
44065
|
else {
|
|
44066
44066
|
const d = (l = c.parent.type.contentMatch.defaultType) === null || l === void 0 ? void 0 : l.create();
|
|
44067
|
-
d && (s.insert(u, d), s.setSelection(
|
|
44067
|
+
d && (s.insert(u, d), s.setSelection(Ie.create(s.doc, u + 1)));
|
|
44068
44068
|
}
|
|
44069
44069
|
s.scrollIntoView();
|
|
44070
44070
|
}
|
|
@@ -44136,11 +44136,11 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44136
44136
|
},
|
|
44137
44137
|
addPasteRules() {
|
|
44138
44138
|
return [
|
|
44139
|
-
|
|
44139
|
+
$o({
|
|
44140
44140
|
find: KK,
|
|
44141
44141
|
type: this.type
|
|
44142
44142
|
}),
|
|
44143
|
-
|
|
44143
|
+
$o({
|
|
44144
44144
|
find: JK,
|
|
44145
44145
|
type: this.type
|
|
44146
44146
|
})
|
|
@@ -44318,7 +44318,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44318
44318
|
},
|
|
44319
44319
|
addPasteRules() {
|
|
44320
44320
|
return [
|
|
44321
|
-
|
|
44321
|
+
$o({
|
|
44322
44322
|
find: iY,
|
|
44323
44323
|
type: this.type
|
|
44324
44324
|
})
|
|
@@ -44578,8 +44578,8 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44578
44578
|
},
|
|
44579
44579
|
className: "flex flex-1 flex-col gap-4",
|
|
44580
44580
|
children: [
|
|
44581
|
-
/* @__PURE__ */ T.jsx(
|
|
44582
|
-
/* @__PURE__ */ T.jsx(
|
|
44581
|
+
/* @__PURE__ */ T.jsx(zo.InputControl, { control: e, name: "href", label: "Введите ссылку" }),
|
|
44582
|
+
/* @__PURE__ */ T.jsx(zo.SwitchControl, { control: e, name: "underline", children: "С подчеркиванием" }),
|
|
44583
44583
|
/* @__PURE__ */ T.jsx(x3, { type: "submit", size: "sm", children: "Сохранить" })
|
|
44584
44584
|
]
|
|
44585
44585
|
}
|
|
@@ -45089,7 +45089,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45089
45089
|
const S = E.map((O) => a ? a(O) : O.value);
|
|
45090
45090
|
w(S);
|
|
45091
45091
|
} else h_(E) ? w(a ? a(E) : E == null ? void 0 : E.value) : w(null);
|
|
45092
|
-
}, C =
|
|
45092
|
+
}, C = Ne(() => Array.isArray(y) ? l.filter((E) => y.includes(a ? a(E) : E.value)) : l.find((E) => (a ? a(E) : E.value) === y), [l, a, y]);
|
|
45093
45093
|
return /* @__PURE__ */ T.jsxs("div", { className: Z("w-full items-start gap-y-2", h), children: [
|
|
45094
45094
|
/* @__PURE__ */ T.jsx(
|
|
45095
45095
|
Tt.SelectBase,
|
|
@@ -45284,7 +45284,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45284
45284
|
}
|
|
45285
45285
|
)
|
|
45286
45286
|
] });
|
|
45287
|
-
},
|
|
45287
|
+
}, zo = {
|
|
45288
45288
|
InputControl: CY,
|
|
45289
45289
|
MaskInputControl: SY,
|
|
45290
45290
|
DayPickerControl: hz,
|
|
@@ -45329,7 +45329,7 @@ export {
|
|
|
45329
45329
|
GY as R,
|
|
45330
45330
|
oL as S,
|
|
45331
45331
|
gL as T,
|
|
45332
|
-
|
|
45332
|
+
zo as U,
|
|
45333
45333
|
Gp as V,
|
|
45334
45334
|
Tt as W,
|
|
45335
45335
|
h_ as X,
|
|
@@ -45347,7 +45347,7 @@ export {
|
|
|
45347
45347
|
vJ as a7,
|
|
45348
45348
|
B9 as a8,
|
|
45349
45349
|
$9 as a9,
|
|
45350
|
-
|
|
45350
|
+
ks as aa,
|
|
45351
45351
|
hJ as ab,
|
|
45352
45352
|
Ch as ac,
|
|
45353
45353
|
Q1 as ad,
|
|
@@ -45381,4 +45381,4 @@ export {
|
|
|
45381
45381
|
ty as y,
|
|
45382
45382
|
oJ as z
|
|
45383
45383
|
};
|
|
45384
|
-
//# sourceMappingURL=index-
|
|
45384
|
+
//# sourceMappingURL=index-DM5UjNZl.js.map
|