loon-bulma-react 2026.0.5 → 2026.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/index.js +563 -530
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -306,7 +306,7 @@ function Hk(t, e, n) {
|
|
|
306
306
|
writable: !1
|
|
307
307
|
}), t;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Ll(t, e) {
|
|
310
310
|
var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
311
311
|
if (!n) {
|
|
312
312
|
if (Array.isArray(t) || (n = Bh(t)) || e) {
|
|
@@ -414,7 +414,7 @@ function G(t) {
|
|
|
414
414
|
}
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Jc(t, e) {
|
|
418
418
|
return $k(t) || Uk(t, e) || Bh(t, e) || Wk();
|
|
419
419
|
}
|
|
420
420
|
function Kn(t) {
|
|
@@ -434,13 +434,13 @@ function rv(t) {
|
|
|
434
434
|
var e = Kk(t, "string");
|
|
435
435
|
return typeof e == "symbol" ? e : e + "";
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Yl(t) {
|
|
438
438
|
"@babel/helpers - typeof";
|
|
439
|
-
return
|
|
439
|
+
return Yl = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
440
440
|
return typeof e;
|
|
441
441
|
} : function(e) {
|
|
442
442
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
443
|
-
},
|
|
443
|
+
}, Yl(t);
|
|
444
444
|
}
|
|
445
445
|
function Bh(t, e) {
|
|
446
446
|
if (t) {
|
|
@@ -458,7 +458,7 @@ try {
|
|
|
458
458
|
typeof window < "u" && ($h = window), typeof document < "u" && (iv = document), typeof MutationObserver < "u" && (ov = MutationObserver), typeof performance < "u" && (sv = performance);
|
|
459
459
|
} catch {
|
|
460
460
|
}
|
|
461
|
-
var Gk = $h.navigator || {}, Bm = Gk.userAgent, $m = Bm === void 0 ? "" : Bm, vi = $h, st = iv, _m = ov,
|
|
461
|
+
var Gk = $h.navigator || {}, Bm = Gk.userAgent, $m = Bm === void 0 ? "" : Bm, vi = $h, st = iv, _m = ov, Qa = sv;
|
|
462
462
|
vi.document;
|
|
463
463
|
var Fr = !!st.documentElement && !!st.head && typeof st.addEventListener == "function" && typeof st.createElement == "function", av = ~$m.indexOf("MSIE") || ~$m.indexOf("Trident/"), sf, qk = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, Yk = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i, lv = {
|
|
464
464
|
classic: {
|
|
@@ -942,7 +942,7 @@ var CC = {
|
|
|
942
942
|
"kit-duotone": {
|
|
943
943
|
"kit-duotone": "fakd"
|
|
944
944
|
}
|
|
945
|
-
}, af,
|
|
945
|
+
}, af, el = {
|
|
946
946
|
GROUP: "duotone-group",
|
|
947
947
|
SWAP_OPACITY: "swap-opacity",
|
|
948
948
|
PRIMARY: "primary",
|
|
@@ -1106,7 +1106,7 @@ var p3 = {
|
|
|
1106
1106
|
"utility-fill": {
|
|
1107
1107
|
faufsb: "fa-semibold"
|
|
1108
1108
|
}
|
|
1109
|
-
}, g3 = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"], Tv = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(AC, g3), y3 = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"], Ov = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], v3 = Ov.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), b3 = ["aw", "fw", "pull-left", "pull-right"], w3 = [].concat(Kn(Object.keys(m3)), y3, b3, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "inverse", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", "width-auto", "width-fixed",
|
|
1109
|
+
}, g3 = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"], Tv = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(AC, g3), y3 = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"], Ov = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], v3 = Ov.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), b3 = ["aw", "fw", "pull-left", "pull-right"], w3 = [].concat(Kn(Object.keys(m3)), y3, b3, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "inverse", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", "width-auto", "width-fixed", el.GROUP, el.SWAP_OPACITY, el.PRIMARY, el.SECONDARY]).concat(Ov.map(function(t) {
|
|
1110
1110
|
return "".concat(t, "x");
|
|
1111
1111
|
})).concat(v3.map(function(t) {
|
|
1112
1112
|
return "w-".concat(t);
|
|
@@ -1169,7 +1169,7 @@ function R3(t) {
|
|
|
1169
1169
|
if (st && typeof st.querySelector == "function") {
|
|
1170
1170
|
var L3 = [["data-family-prefix", "familyPrefix"], ["data-css-prefix", "cssPrefix"], ["data-family-default", "familyDefault"], ["data-style-default", "styleDefault"], ["data-replacement-class", "replacementClass"], ["data-auto-replace-svg", "autoReplaceSvg"], ["data-auto-add-css", "autoAddCss"], ["data-search-pseudo-elements", "searchPseudoElements"], ["data-search-pseudo-elements-warnings", "searchPseudoElementsWarnings"], ["data-search-pseudo-elements-full-scan", "searchPseudoElementsFullScan"], ["data-observe-mutations", "observeMutations"], ["data-mutate-approach", "mutateApproach"], ["data-keep-original-source", "keepOriginalSource"], ["data-measure-performance", "measurePerformance"], ["data-show-missing-icons", "showMissingIcons"]];
|
|
1171
1171
|
L3.forEach(function(t) {
|
|
1172
|
-
var e =
|
|
1172
|
+
var e = Jc(t, 2), n = e[0], r = e[1], i = R3(I3(n));
|
|
1173
1173
|
i != null && (Is[r] = i);
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
@@ -1267,7 +1267,7 @@ function $3(t) {
|
|
|
1267
1267
|
return e + "".concat(n, '="').concat($v(t[n]), '" ');
|
|
1268
1268
|
}, "").trim();
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Zc(t) {
|
|
1271
1271
|
return Object.keys(t || {}).reduce(function(e, n) {
|
|
1272
1272
|
return e + "".concat(n, ": ").concat(t[n].trim(), ";");
|
|
1273
1273
|
}, "");
|
|
@@ -1881,13 +1881,13 @@ _r[$r].styles || (_r[$r].styles = {});
|
|
|
1881
1881
|
_r[$r].hooks || (_r[$r].hooks = {});
|
|
1882
1882
|
_r[$r].shims || (_r[$r].shims = []);
|
|
1883
1883
|
var jn = _r[$r], Fv = [], zv = function() {
|
|
1884
|
-
st.removeEventListener("DOMContentLoaded", zv),
|
|
1884
|
+
st.removeEventListener("DOMContentLoaded", zv), Xl = 1, Fv.map(function(e) {
|
|
1885
1885
|
return e();
|
|
1886
1886
|
});
|
|
1887
|
-
},
|
|
1888
|
-
Fr && (
|
|
1887
|
+
}, Xl = !1;
|
|
1888
|
+
Fr && (Xl = (st.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(st.readyState), Xl || st.addEventListener("DOMContentLoaded", zv));
|
|
1889
1889
|
function j3(t) {
|
|
1890
|
-
Fr && (
|
|
1890
|
+
Fr && (Xl ? setTimeout(t, 0) : Fv.push(t));
|
|
1891
1891
|
}
|
|
1892
1892
|
function va(t) {
|
|
1893
1893
|
var e = t.tag, n = t.attributes, r = n === void 0 ? {} : n, i = t.children, o = i === void 0 ? [] : i;
|
|
@@ -1975,12 +1975,12 @@ var qv = function() {
|
|
|
1975
1975
|
names: {},
|
|
1976
1976
|
unicodes: {}
|
|
1977
1977
|
});
|
|
1978
|
-
Vv = r.names, Kv = r.unicodes, Uh =
|
|
1978
|
+
Vv = r.names, Kv = r.unicodes, Uh = Qc(he.styleDefault, {
|
|
1979
1979
|
family: he.familyDefault
|
|
1980
1980
|
});
|
|
1981
1981
|
};
|
|
1982
1982
|
D3(function(t) {
|
|
1983
|
-
Uh =
|
|
1983
|
+
Uh = Qc(t.styleDefault, {
|
|
1984
1984
|
family: he.familyDefault
|
|
1985
1985
|
});
|
|
1986
1986
|
});
|
|
@@ -2030,7 +2030,7 @@ function Y3(t) {
|
|
|
2030
2030
|
})) && (e = r);
|
|
2031
2031
|
}), e;
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Qc(t) {
|
|
2034
2034
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.family, r = n === void 0 ? Pt : n, i = x3[r][t];
|
|
2035
2035
|
if (r === ga && !t)
|
|
2036
2036
|
return "fad";
|
|
@@ -2053,15 +2053,15 @@ function Gm(t) {
|
|
|
2053
2053
|
});
|
|
2054
2054
|
}
|
|
2055
2055
|
var qm = Tv.concat(Av);
|
|
2056
|
-
function
|
|
2056
|
+
function eu(t) {
|
|
2057
2057
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.skipLookups, r = n === void 0 ? !1 : n, i = null, o = Gm(t.filter(function(h) {
|
|
2058
2058
|
return qm.includes(h);
|
|
2059
2059
|
})), s = Gm(t.filter(function(h) {
|
|
2060
2060
|
return !qm.includes(h);
|
|
2061
2061
|
})), a = o.filter(function(h) {
|
|
2062
2062
|
return i = h, !cv.includes(h);
|
|
2063
|
-
}), l =
|
|
2064
|
-
prefix:
|
|
2063
|
+
}), l = Jc(a, 1), c = l[0], u = c === void 0 ? null : c, f = Y3(o), d = G(G({}, X3(s)), {}, {
|
|
2064
|
+
prefix: Qc(u, {
|
|
2065
2065
|
family: f
|
|
2066
2066
|
})
|
|
2067
2067
|
});
|
|
@@ -2150,7 +2150,7 @@ function rx(t, e) {
|
|
|
2150
2150
|
}), Ym.forEach(function(r) {
|
|
2151
2151
|
var i = r.mixout ? r.mixout() : {};
|
|
2152
2152
|
if (Object.keys(i).forEach(function(s) {
|
|
2153
|
-
typeof i[s] == "function" && (n[s] = i[s]),
|
|
2153
|
+
typeof i[s] == "function" && (n[s] = i[s]), Yl(i[s]) === "object" && Object.keys(i[s]).forEach(function(a) {
|
|
2154
2154
|
n[s] || (n[s] = {}), n[s][a] = i[s][a];
|
|
2155
2155
|
});
|
|
2156
2156
|
}), r.hooks) {
|
|
@@ -2207,20 +2207,20 @@ var Jv = new tx(), ix = function() {
|
|
|
2207
2207
|
icon: function(e) {
|
|
2208
2208
|
if (e === null)
|
|
2209
2209
|
return null;
|
|
2210
|
-
if (
|
|
2210
|
+
if (Yl(e) === "object" && e.prefix && e.iconName)
|
|
2211
2211
|
return {
|
|
2212
2212
|
prefix: e.prefix,
|
|
2213
2213
|
iconName: Vi(e.prefix, e.iconName) || e.iconName
|
|
2214
2214
|
};
|
|
2215
2215
|
if (Array.isArray(e) && e.length === 2) {
|
|
2216
|
-
var n = e[1].indexOf("fa-") === 0 ? e[1].slice(3) : e[1], r =
|
|
2216
|
+
var n = e[1].indexOf("fa-") === 0 ? e[1].slice(3) : e[1], r = Qc(e[0]);
|
|
2217
2217
|
return {
|
|
2218
2218
|
prefix: r,
|
|
2219
2219
|
iconName: Vi(r, n) || n
|
|
2220
2220
|
};
|
|
2221
2221
|
}
|
|
2222
2222
|
if (typeof e == "string" && (e.indexOf("".concat(he.cssPrefix, "-")) > -1 || e.match(N3))) {
|
|
2223
|
-
var i =
|
|
2223
|
+
var i = eu(e.split(" "), {
|
|
2224
2224
|
skipLookups: !0
|
|
2225
2225
|
});
|
|
2226
2226
|
return {
|
|
@@ -2250,7 +2250,7 @@ var Jv = new tx(), ix = function() {
|
|
|
2250
2250
|
node: r
|
|
2251
2251
|
});
|
|
2252
2252
|
};
|
|
2253
|
-
function
|
|
2253
|
+
function tu(t, e) {
|
|
2254
2254
|
return Object.defineProperty(t, "abstract", {
|
|
2255
2255
|
get: e
|
|
2256
2256
|
}), Object.defineProperty(t, "html", {
|
|
@@ -2275,7 +2275,7 @@ function lx(t) {
|
|
|
2275
2275
|
x: a / l / 2,
|
|
2276
2276
|
y: 0.5
|
|
2277
2277
|
};
|
|
2278
|
-
i.style =
|
|
2278
|
+
i.style = Zc(G(G({}, o), {}, {
|
|
2279
2279
|
"transform-origin": "".concat(c.x + s.x / 16, "em ").concat(c.y + s.y / 16, "em")
|
|
2280
2280
|
}));
|
|
2281
2281
|
}
|
|
@@ -2352,7 +2352,7 @@ function Xm(t) {
|
|
|
2352
2352
|
width: n,
|
|
2353
2353
|
height: r
|
|
2354
2354
|
}), c["-webkit-transform"] = c.transform);
|
|
2355
|
-
var u =
|
|
2355
|
+
var u = Zc(c);
|
|
2356
2356
|
u.length > 0 && (l.style = u);
|
|
2357
2357
|
var f = [];
|
|
2358
2358
|
return f.push({
|
|
@@ -2364,7 +2364,7 @@ function Xm(t) {
|
|
|
2364
2364
|
function fx(t) {
|
|
2365
2365
|
var e = t.content, n = t.extra, r = G(G({}, n.attributes), {}, {
|
|
2366
2366
|
class: n.classes.join(" ")
|
|
2367
|
-
}), i =
|
|
2367
|
+
}), i = Zc(n.styles);
|
|
2368
2368
|
i.length > 0 && (r.style = i);
|
|
2369
2369
|
var o = [];
|
|
2370
2370
|
return o.push({
|
|
@@ -2375,7 +2375,7 @@ function fx(t) {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
var ff = jn.styles;
|
|
2377
2377
|
function dd(t) {
|
|
2378
|
-
var e = t[0], n = t[1], r = t.slice(4), i =
|
|
2378
|
+
var e = t[0], n = t[1], r = t.slice(4), i = Jc(r, 1), o = i[0], s = null;
|
|
2379
2379
|
return Array.isArray(o) ? s = {
|
|
2380
2380
|
tag: "g",
|
|
2381
2381
|
attributes: {
|
|
@@ -2434,7 +2434,7 @@ function hd(t, e) {
|
|
|
2434
2434
|
});
|
|
2435
2435
|
}
|
|
2436
2436
|
var Jm = function() {
|
|
2437
|
-
}, pd = he.measurePerformance &&
|
|
2437
|
+
}, pd = he.measurePerformance && Qa && Qa.mark && Qa.measure ? Qa : {
|
|
2438
2438
|
mark: Jm,
|
|
2439
2439
|
measure: Jm
|
|
2440
2440
|
}, xs = 'FA "7.1.0"', px = function(e) {
|
|
@@ -2446,7 +2446,7 @@ var Jm = function() {
|
|
|
2446
2446
|
}, Kh = {
|
|
2447
2447
|
begin: px,
|
|
2448
2448
|
end: Zv
|
|
2449
|
-
},
|
|
2449
|
+
}, Dl = function() {
|
|
2450
2450
|
};
|
|
2451
2451
|
function Zm(t) {
|
|
2452
2452
|
var e = t.getAttribute ? t.getAttribute(eo) : null;
|
|
@@ -2461,9 +2461,9 @@ function gx(t) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
function yx() {
|
|
2463
2463
|
if (he.autoReplaceSvg === !0)
|
|
2464
|
-
return
|
|
2465
|
-
var t =
|
|
2466
|
-
return t ||
|
|
2464
|
+
return Pl.replace;
|
|
2465
|
+
var t = Pl[he.autoReplaceSvg];
|
|
2466
|
+
return t || Pl.replace;
|
|
2467
2467
|
}
|
|
2468
2468
|
function vx(t) {
|
|
2469
2469
|
return st.createElementNS("http://www.w3.org/2000/svg", t);
|
|
@@ -2490,7 +2490,7 @@ function wx(t) {
|
|
|
2490
2490
|
var e = " ".concat(t.outerHTML, " ");
|
|
2491
2491
|
return e = "".concat(e, "Font Awesome fontawesome.com "), e;
|
|
2492
2492
|
}
|
|
2493
|
-
var
|
|
2493
|
+
var Pl = {
|
|
2494
2494
|
replace: function(e) {
|
|
2495
2495
|
var n = e[0];
|
|
2496
2496
|
if (n.parentNode)
|
|
@@ -2505,7 +2505,7 @@ var Dl = {
|
|
|
2505
2505
|
nest: function(e) {
|
|
2506
2506
|
var n = e[0], r = e[1];
|
|
2507
2507
|
if (~Hh(n).indexOf(he.replacementClass))
|
|
2508
|
-
return
|
|
2508
|
+
return Pl.replace(e);
|
|
2509
2509
|
var i = new RegExp("".concat(he.cssPrefix, "-.*"));
|
|
2510
2510
|
if (delete r[0].attributes.id, r[0].attributes.class) {
|
|
2511
2511
|
var o = r[0].attributes.class.split(" ").reduce(function(a, l) {
|
|
@@ -2527,7 +2527,7 @@ function Qm(t) {
|
|
|
2527
2527
|
t();
|
|
2528
2528
|
}
|
|
2529
2529
|
function eb(t, e) {
|
|
2530
|
-
var n = typeof e == "function" ? e :
|
|
2530
|
+
var n = typeof e == "function" ? e : Dl;
|
|
2531
2531
|
if (t.length === 0)
|
|
2532
2532
|
n();
|
|
2533
2533
|
else {
|
|
@@ -2545,22 +2545,22 @@ function tb() {
|
|
|
2545
2545
|
function md() {
|
|
2546
2546
|
Gh = !1;
|
|
2547
2547
|
}
|
|
2548
|
-
var
|
|
2548
|
+
var Jl = null;
|
|
2549
2549
|
function eg(t) {
|
|
2550
2550
|
if (_m && he.observeMutations) {
|
|
2551
|
-
var e = t.treeCallback, n = e === void 0 ?
|
|
2552
|
-
|
|
2551
|
+
var e = t.treeCallback, n = e === void 0 ? Dl : e, r = t.nodeCallback, i = r === void 0 ? Dl : r, o = t.pseudoElementsCallback, s = o === void 0 ? Dl : o, a = t.observeMutationsRoot, l = a === void 0 ? st : a;
|
|
2552
|
+
Jl = new _m(function(c) {
|
|
2553
2553
|
if (!Gh) {
|
|
2554
2554
|
var u = bi();
|
|
2555
2555
|
is(c).forEach(function(f) {
|
|
2556
2556
|
if (f.type === "childList" && f.addedNodes.length > 0 && !Zm(f.addedNodes[0]) && (he.searchPseudoElements && s(f.target), n(f.target)), f.type === "attributes" && f.target.parentNode && he.searchPseudoElements && s([f.target], !0), f.type === "attributes" && Zm(f.target) && ~O3.indexOf(f.attributeName))
|
|
2557
2557
|
if (f.attributeName === "class" && mx(f.target)) {
|
|
2558
|
-
var d =
|
|
2558
|
+
var d = eu(Hh(f.target)), h = d.prefix, p = d.iconName;
|
|
2559
2559
|
f.target.setAttribute(_h, h || u), p && f.target.setAttribute(Fh, p);
|
|
2560
2560
|
} else gx(f.target) && i(f.target);
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
}), Fr &&
|
|
2563
|
+
}), Fr && Jl.observe(l, {
|
|
2564
2564
|
childList: !0,
|
|
2565
2565
|
attributes: !0,
|
|
2566
2566
|
characterData: !0,
|
|
@@ -2569,7 +2569,7 @@ function eg(t) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
function Sx() {
|
|
2572
|
-
|
|
2572
|
+
Jl && Jl.disconnect();
|
|
2573
2573
|
}
|
|
2574
2574
|
function Ex(t) {
|
|
2575
2575
|
var e = t.getAttribute("style"), n = [];
|
|
@@ -2579,7 +2579,7 @@ function Ex(t) {
|
|
|
2579
2579
|
}, {})), n;
|
|
2580
2580
|
}
|
|
2581
2581
|
function kx(t) {
|
|
2582
|
-
var e = t.getAttribute("data-prefix"), n = t.getAttribute("data-icon"), r = t.innerText !== void 0 ? t.innerText.trim() : "", i =
|
|
2582
|
+
var e = t.getAttribute("data-prefix"), n = t.getAttribute("data-icon"), r = t.innerText !== void 0 ? t.innerText.trim() : "", i = eu(Hh(t));
|
|
2583
2583
|
return i.prefix || (i.prefix = bi()), e && n && (i.prefix = e, i.iconName = n), i.iconName && i.prefix || (i.prefix && r.length > 0 && (i.iconName = G3(i.prefix, t.innerText) || Wh(i.prefix, Hv(t.innerText))), !i.iconName && he.autoFetchSvg && t.firstChild && t.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = t.firstChild.data)), i;
|
|
2584
2584
|
}
|
|
2585
2585
|
function Cx(t) {
|
|
@@ -2699,7 +2699,7 @@ var Mx = function(e) {
|
|
|
2699
2699
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, i = r === void 0 ? sr : r, o = n.symbol, s = o === void 0 ? !1 : o, a = n.mask, l = a === void 0 ? null : a, c = n.maskId, u = c === void 0 ? null : c, f = n.classes, d = f === void 0 ? [] : f, h = n.attributes, p = h === void 0 ? {} : h, m = n.styles, g = m === void 0 ? {} : m;
|
|
2700
2700
|
if (e) {
|
|
2701
2701
|
var v = e.prefix, S = e.iconName, k = e.icon;
|
|
2702
|
-
return
|
|
2702
|
+
return tu(G({
|
|
2703
2703
|
type: "icon"
|
|
2704
2704
|
}, e), function() {
|
|
2705
2705
|
return to("beforeDOMElementCreation", {
|
|
@@ -2755,7 +2755,7 @@ var Mx = function(e) {
|
|
|
2755
2755
|
height: 512,
|
|
2756
2756
|
icon: {}
|
|
2757
2757
|
})]).then(function(h) {
|
|
2758
|
-
var p =
|
|
2758
|
+
var p = Jc(h, 2), m = p[0], g = p[1];
|
|
2759
2759
|
f([n, Vh({
|
|
2760
2760
|
icons: {
|
|
2761
2761
|
main: m,
|
|
@@ -2772,7 +2772,7 @@ var Mx = function(e) {
|
|
|
2772
2772
|
}).catch(d);
|
|
2773
2773
|
});
|
|
2774
2774
|
}, e.generateAbstractIcon = function(n) {
|
|
2775
|
-
var r = n.children, i = n.attributes, o = n.main, s = n.transform, a = n.styles, l =
|
|
2775
|
+
var r = n.children, i = n.attributes, o = n.main, s = n.transform, a = n.styles, l = Zc(a);
|
|
2776
2776
|
l.length > 0 && (i.style = l);
|
|
2777
2777
|
var c;
|
|
2778
2778
|
return jh(s) && (c = wi("generateAbstractTransformGrouping", {
|
|
@@ -2791,7 +2791,7 @@ var Mx = function(e) {
|
|
|
2791
2791
|
return {
|
|
2792
2792
|
layer: function(n) {
|
|
2793
2793
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.classes, o = i === void 0 ? [] : i;
|
|
2794
|
-
return
|
|
2794
|
+
return tu({
|
|
2795
2795
|
type: "layer"
|
|
2796
2796
|
}, function() {
|
|
2797
2797
|
to("beforeDOMElementCreation", {
|
|
@@ -2821,7 +2821,7 @@ var Mx = function(e) {
|
|
|
2821
2821
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2822
2822
|
r.title;
|
|
2823
2823
|
var i = r.classes, o = i === void 0 ? [] : i, s = r.attributes, a = s === void 0 ? {} : s, l = r.styles, c = l === void 0 ? {} : l;
|
|
2824
|
-
return
|
|
2824
|
+
return tu({
|
|
2825
2825
|
type: "counter",
|
|
2826
2826
|
content: n
|
|
2827
2827
|
}, function() {
|
|
@@ -2845,7 +2845,7 @@ var Mx = function(e) {
|
|
|
2845
2845
|
return {
|
|
2846
2846
|
text: function(n) {
|
|
2847
2847
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.transform, o = i === void 0 ? sr : i, s = r.classes, a = s === void 0 ? [] : s, l = r.attributes, c = l === void 0 ? {} : l, u = r.styles, f = u === void 0 ? {} : u;
|
|
2848
|
-
return
|
|
2848
|
+
return tu({
|
|
2849
2849
|
type: "text",
|
|
2850
2850
|
content: n
|
|
2851
2851
|
}, function() {
|
|
@@ -2966,7 +2966,7 @@ var Hx = function(e) {
|
|
|
2966
2966
|
return c.trim();
|
|
2967
2967
|
});
|
|
2968
2968
|
});
|
|
2969
|
-
var i =
|
|
2969
|
+
var i = Ll(r), o;
|
|
2970
2970
|
try {
|
|
2971
2971
|
for (i.s(); !(o = i.n()).done; ) {
|
|
2972
2972
|
var s = o.value;
|
|
@@ -2993,15 +2993,15 @@ function sg(t) {
|
|
|
2993
2993
|
else if (he.searchPseudoElementsFullScan)
|
|
2994
2994
|
n = t.querySelectorAll("*");
|
|
2995
2995
|
else {
|
|
2996
|
-
var r = /* @__PURE__ */ new Set(), i =
|
|
2996
|
+
var r = /* @__PURE__ */ new Set(), i = Ll(document.styleSheets), o;
|
|
2997
2997
|
try {
|
|
2998
2998
|
for (i.s(); !(o = i.n()).done; ) {
|
|
2999
2999
|
var s = o.value;
|
|
3000
3000
|
try {
|
|
3001
|
-
var a =
|
|
3001
|
+
var a = Ll(s.cssRules), l;
|
|
3002
3002
|
try {
|
|
3003
3003
|
for (a.s(); !(l = a.n()).done; ) {
|
|
3004
|
-
var c = l.value, u = jx(c.selectorText), f =
|
|
3004
|
+
var c = l.value, u = jx(c.selectorText), f = Ll(u), d;
|
|
3005
3005
|
try {
|
|
3006
3006
|
for (f.s(); !(d = f.n()).done; ) {
|
|
3007
3007
|
var h = d.value;
|
|
@@ -3190,7 +3190,7 @@ var Gx = {
|
|
|
3190
3190
|
hooks: function() {
|
|
3191
3191
|
return {
|
|
3192
3192
|
parseNodeAttributes: function(n, r) {
|
|
3193
|
-
var i = r.getAttribute("data-fa-mask"), o = i ?
|
|
3193
|
+
var i = r.getAttribute("data-fa-mask"), o = i ? eu(i.split(" ").map(function(s) {
|
|
3194
3194
|
return s.trim();
|
|
3195
3195
|
})) : Xv();
|
|
3196
3196
|
return o.prefix || (o.prefix = bi()), n.mask = o, n.maskId = r.getAttribute("data-fa-mask-id"), n;
|
|
@@ -3815,7 +3815,7 @@ var pN = {
|
|
|
3815
3815
|
prefix: "fas",
|
|
3816
3816
|
iconName: "indent",
|
|
3817
3817
|
icon: [448, 512, [], "f03c", "M0 64C0 46.3 14.3 32 32 32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64zM192 192c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 96l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zM0 448c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32zM127.8 268.6L25.8 347.9C15.3 356.1 0 348.6 0 335.3L0 176.7c0-13.3 15.3-20.8 25.8-12.6l101.9 79.3c8.2 6.4 8.2 18.9 0 25.3z"]
|
|
3818
|
-
},
|
|
3818
|
+
}, nu = {
|
|
3819
3819
|
prefix: "fas",
|
|
3820
3820
|
iconName: "keyboard",
|
|
3821
3821
|
icon: [576, 512, [9e3], "f11c", "M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm16 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM176 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM160 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l224 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-224 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-176c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-80c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-80c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]
|
|
@@ -4008,7 +4008,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4008
4008
|
function _e(t, e) {
|
|
4009
4009
|
return EA(t) || kA(t, e) || db(t, e) || CA();
|
|
4010
4010
|
}
|
|
4011
|
-
var
|
|
4011
|
+
var tl = { exports: {} }, Ft = {};
|
|
4012
4012
|
var yg;
|
|
4013
4013
|
function xA() {
|
|
4014
4014
|
if (yg) return Ft;
|
|
@@ -4358,7 +4358,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
4358
4358
|
}
|
|
4359
4359
|
var bg;
|
|
4360
4360
|
function AA() {
|
|
4361
|
-
if (bg) return
|
|
4361
|
+
if (bg) return tl.exports;
|
|
4362
4362
|
bg = 1;
|
|
4363
4363
|
function t() {
|
|
4364
4364
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
@@ -4371,17 +4371,17 @@ function AA() {
|
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
4373
|
}
|
|
4374
|
-
return process.env.NODE_ENV === "production" ? (t(),
|
|
4374
|
+
return process.env.NODE_ENV === "production" ? (t(), tl.exports = xA()) : tl.exports = NA(), tl.exports;
|
|
4375
4375
|
}
|
|
4376
|
-
var
|
|
4377
|
-
const vd = /* @__PURE__ */ ub(
|
|
4376
|
+
var ba = AA();
|
|
4377
|
+
const vd = /* @__PURE__ */ ub(ba);
|
|
4378
4378
|
function cr() {
|
|
4379
4379
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
4380
4380
|
}
|
|
4381
4381
|
var bd = {}, Yh = [], TA = function(e) {
|
|
4382
4382
|
Yh.push(e);
|
|
4383
4383
|
};
|
|
4384
|
-
function
|
|
4384
|
+
function Zl(t, e) {
|
|
4385
4385
|
if (process.env.NODE_ENV !== "production" && !t && console !== void 0) {
|
|
4386
4386
|
var n = Yh.reduce(function(r, i) {
|
|
4387
4387
|
return i(r ?? "", "warning");
|
|
@@ -4404,7 +4404,7 @@ function hb(t, e, n) {
|
|
|
4404
4404
|
!e && !bd[n] && (t(!1, n), bd[n] = !0);
|
|
4405
4405
|
}
|
|
4406
4406
|
function ru(t, e) {
|
|
4407
|
-
hb(
|
|
4407
|
+
hb(Zl, t, e);
|
|
4408
4408
|
}
|
|
4409
4409
|
function IA(t, e) {
|
|
4410
4410
|
hb(OA, t, e);
|
|
@@ -4412,7 +4412,7 @@ function IA(t, e) {
|
|
|
4412
4412
|
ru.preMessage = TA;
|
|
4413
4413
|
ru.resetWarned = MA;
|
|
4414
4414
|
ru.noteOnce = IA;
|
|
4415
|
-
var
|
|
4415
|
+
var nl = { exports: {} }, ze = {};
|
|
4416
4416
|
var wg;
|
|
4417
4417
|
function RA() {
|
|
4418
4418
|
if (wg) return ze;
|
|
@@ -4574,7 +4574,7 @@ function LA() {
|
|
|
4574
4574
|
}
|
|
4575
4575
|
var Eg;
|
|
4576
4576
|
function DA() {
|
|
4577
|
-
return Eg || (Eg = 1, process.env.NODE_ENV === "production" ?
|
|
4577
|
+
return Eg || (Eg = 1, process.env.NODE_ENV === "production" ? nl.exports = RA() : nl.exports = LA()), nl.exports;
|
|
4578
4578
|
}
|
|
4579
4579
|
var pf = DA();
|
|
4580
4580
|
function PA(t, e, n) {
|
|
@@ -4861,7 +4861,7 @@ var Tg = function(e) {
|
|
|
4861
4861
|
ref: A
|
|
4862
4862
|
})), /* @__PURE__ */ P.createElement(yb.Provider, {
|
|
4863
4863
|
value: w
|
|
4864
|
-
}, T ? M : /* @__PURE__ */
|
|
4864
|
+
}, T ? M : /* @__PURE__ */ ba.createPortal(M, C));
|
|
4865
4865
|
});
|
|
4866
4866
|
process.env.NODE_ENV !== "production" && (ep.displayName = "Portal");
|
|
4867
4867
|
function Ed(t) {
|
|
@@ -4876,7 +4876,7 @@ function Ys(t) {
|
|
|
4876
4876
|
function tT(t) {
|
|
4877
4877
|
return t && bn(t) === "object" && Ys(t.nativeElement) ? t.nativeElement : Ys(t) ? t : null;
|
|
4878
4878
|
}
|
|
4879
|
-
function
|
|
4879
|
+
function Bl(t) {
|
|
4880
4880
|
var e = tT(t);
|
|
4881
4881
|
if (e)
|
|
4882
4882
|
return e;
|
|
@@ -4949,10 +4949,10 @@ var Eb = (function() {
|
|
|
4949
4949
|
}, e;
|
|
4950
4950
|
})()
|
|
4951
4951
|
);
|
|
4952
|
-
})(), Cd = typeof window < "u" && typeof document < "u" && window.document === document,
|
|
4952
|
+
})(), Cd = typeof window < "u" && typeof document < "u" && window.document === document, Ql = (function() {
|
|
4953
4953
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
4954
4954
|
})(), rT = (function() {
|
|
4955
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
4955
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Ql) : function(t) {
|
|
4956
4956
|
return setTimeout(function() {
|
|
4957
4957
|
return t(Date.now());
|
|
4958
4958
|
}, 1e3 / 60);
|
|
@@ -5030,9 +5030,9 @@ var sT = 20, aT = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
5030
5030
|
return t;
|
|
5031
5031
|
}), Yo = (function(t) {
|
|
5032
5032
|
var e = t && t.ownerDocument && t.ownerDocument.defaultView;
|
|
5033
|
-
return e ||
|
|
5033
|
+
return e || Ql;
|
|
5034
5034
|
}), Cb = su(0, 0, 0, 0);
|
|
5035
|
-
function
|
|
5035
|
+
function ec(t) {
|
|
5036
5036
|
return parseFloat(t) || 0;
|
|
5037
5037
|
}
|
|
5038
5038
|
function Og(t) {
|
|
@@ -5040,13 +5040,13 @@ function Og(t) {
|
|
|
5040
5040
|
e[n - 1] = arguments[n];
|
|
5041
5041
|
return e.reduce(function(r, i) {
|
|
5042
5042
|
var o = t["border-" + i + "-width"];
|
|
5043
|
-
return r +
|
|
5043
|
+
return r + ec(o);
|
|
5044
5044
|
}, 0);
|
|
5045
5045
|
}
|
|
5046
5046
|
function uT(t) {
|
|
5047
5047
|
for (var e = ["top", "right", "bottom", "left"], n = {}, r = 0, i = e; r < i.length; r++) {
|
|
5048
5048
|
var o = i[r], s = t["padding-" + o];
|
|
5049
|
-
n[o] =
|
|
5049
|
+
n[o] = ec(s);
|
|
5050
5050
|
}
|
|
5051
5051
|
return n;
|
|
5052
5052
|
}
|
|
@@ -5058,7 +5058,7 @@ function dT(t) {
|
|
|
5058
5058
|
var e = t.clientWidth, n = t.clientHeight;
|
|
5059
5059
|
if (!e && !n)
|
|
5060
5060
|
return Cb;
|
|
5061
|
-
var r = Yo(t).getComputedStyle(t), i = uT(r), o = i.left + i.right, s = i.top + i.bottom, a =
|
|
5061
|
+
var r = Yo(t).getComputedStyle(t), i = uT(r), o = i.left + i.right, s = i.top + i.bottom, a = ec(r.width), l = ec(r.height);
|
|
5062
5062
|
if (r.boxSizing === "border-box" && (Math.round(a + o) !== e && (a -= Og(r, "left", "right") + o), Math.round(l + s) !== n && (l -= Og(r, "top", "bottom") + s)), !pT(t)) {
|
|
5063
5063
|
var c = Math.round(a + o) - e, u = Math.round(l + s) - n;
|
|
5064
5064
|
Math.abs(c) !== 1 && (a -= c), Math.abs(u) !== 1 && (l -= u);
|
|
@@ -5188,7 +5188,7 @@ var yT = (
|
|
|
5188
5188
|
};
|
|
5189
5189
|
});
|
|
5190
5190
|
var wT = (function() {
|
|
5191
|
-
return typeof
|
|
5191
|
+
return typeof Ql.ResizeObserver < "u" ? Ql.ResizeObserver : Nb;
|
|
5192
5192
|
})(), Rr = /* @__PURE__ */ new Map();
|
|
5193
5193
|
function Ab(t) {
|
|
5194
5194
|
t.forEach(function(e) {
|
|
@@ -5238,10 +5238,10 @@ function rp(t, e) {
|
|
|
5238
5238
|
writable: !1
|
|
5239
5239
|
}), e && xd(t, e);
|
|
5240
5240
|
}
|
|
5241
|
-
function
|
|
5242
|
-
return
|
|
5241
|
+
function tc(t) {
|
|
5242
|
+
return tc = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
5243
5243
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
5244
|
-
},
|
|
5244
|
+
}, tc(t);
|
|
5245
5245
|
}
|
|
5246
5246
|
function Ob() {
|
|
5247
5247
|
try {
|
|
@@ -5265,9 +5265,9 @@ function kT(t, e) {
|
|
|
5265
5265
|
function ip(t) {
|
|
5266
5266
|
var e = Ob();
|
|
5267
5267
|
return function() {
|
|
5268
|
-
var n, r =
|
|
5268
|
+
var n, r = tc(t);
|
|
5269
5269
|
if (e) {
|
|
5270
|
-
var i =
|
|
5270
|
+
var i = tc(this).constructor;
|
|
5271
5271
|
n = Reflect.construct(r, arguments, i);
|
|
5272
5272
|
} else n = r.apply(this, arguments);
|
|
5273
5273
|
return kT(this, n);
|
|
@@ -5294,8 +5294,8 @@ function xT(t, e) {
|
|
|
5294
5294
|
offsetHeight: -1
|
|
5295
5295
|
}), u = !a && /* @__PURE__ */ P.isValidElement(l) && iu(l), f = u ? Zh(l) : null, d = Jh(f, i), h = function() {
|
|
5296
5296
|
var v;
|
|
5297
|
-
return
|
|
5298
|
-
(i.current && bn(i.current) === "object" ?
|
|
5297
|
+
return Bl(i.current) || // Support `nativeElement` format
|
|
5298
|
+
(i.current && bn(i.current) === "object" ? Bl((v = i.current) === null || v === void 0 ? void 0 : v.nativeElement) : null) || Bl(o.current);
|
|
5299
5299
|
};
|
|
5300
5300
|
P.useImperativeHandle(e, function() {
|
|
5301
5301
|
return h();
|
|
@@ -5337,7 +5337,7 @@ process.env.NODE_ENV !== "production" && (Mb.displayName = "SingleObserver");
|
|
|
5337
5337
|
var NT = "rc-observer-key";
|
|
5338
5338
|
function AT(t, e) {
|
|
5339
5339
|
var n = t.children, r = typeof n == "function" ? [n] : Ed(n);
|
|
5340
|
-
return process.env.NODE_ENV !== "production" && (r.length > 1 ?
|
|
5340
|
+
return process.env.NODE_ENV !== "production" && (r.length > 1 ? Zl(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : r.length === 0 && Zl(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), r.map(function(i, o) {
|
|
5341
5341
|
var s = i?.key || "".concat(NT, "-").concat(o);
|
|
5342
5342
|
return /* @__PURE__ */ P.createElement(Mb, Si({}, t, {
|
|
5343
5343
|
key: s,
|
|
@@ -5429,7 +5429,7 @@ function LT(t) {
|
|
|
5429
5429
|
});
|
|
5430
5430
|
return [o, s];
|
|
5431
5431
|
}
|
|
5432
|
-
var ei = "none",
|
|
5432
|
+
var ei = "none", rl = "appear", il = "enter", ol = "leave", Lg = "none", zn = "prepare", Lo = "start", Do = "active", op = "end", Lb = "prepared";
|
|
5433
5433
|
function Dg(t, e) {
|
|
5434
5434
|
var n = {};
|
|
5435
5435
|
return n[t.toLowerCase()] = e.toLowerCase(), n["Webkit".concat(t)] = "webkit".concat(e), n["Moz".concat(t)] = "moz".concat(e), n["ms".concat(t)] = "MS".concat(e), n["O".concat(t)] = "o".concat(e.toLowerCase()), n;
|
|
@@ -5446,16 +5446,16 @@ if (cr()) {
|
|
|
5446
5446
|
var BT = document.createElement("div");
|
|
5447
5447
|
Db = BT.style;
|
|
5448
5448
|
}
|
|
5449
|
-
var
|
|
5449
|
+
var sl = {};
|
|
5450
5450
|
function Pb(t) {
|
|
5451
|
-
if (
|
|
5452
|
-
return
|
|
5451
|
+
if (sl[t])
|
|
5452
|
+
return sl[t];
|
|
5453
5453
|
var e = PT[t];
|
|
5454
5454
|
if (e)
|
|
5455
5455
|
for (var n = Object.keys(e), r = n.length, i = 0; i < r; i += 1) {
|
|
5456
5456
|
var o = n[i];
|
|
5457
5457
|
if (Object.prototype.hasOwnProperty.call(e, o) && o in Db)
|
|
5458
|
-
return
|
|
5458
|
+
return sl[t] = e[o], sl[t];
|
|
5459
5459
|
}
|
|
5460
5460
|
return "";
|
|
5461
5461
|
}
|
|
@@ -5498,7 +5498,7 @@ var _g = 0, lu = /* @__PURE__ */ new Map();
|
|
|
5498
5498
|
function jb(t) {
|
|
5499
5499
|
lu.delete(t);
|
|
5500
5500
|
}
|
|
5501
|
-
var
|
|
5501
|
+
var nc = function(e) {
|
|
5502
5502
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
5503
5503
|
_g += 1;
|
|
5504
5504
|
var r = _g;
|
|
@@ -5514,22 +5514,22 @@ var tc = function(e) {
|
|
|
5514
5514
|
}
|
|
5515
5515
|
return i(n), r;
|
|
5516
5516
|
};
|
|
5517
|
-
|
|
5517
|
+
nc.cancel = function(t) {
|
|
5518
5518
|
var e = lu.get(t);
|
|
5519
5519
|
return jb(t), Hb(e);
|
|
5520
5520
|
};
|
|
5521
|
-
process.env.NODE_ENV !== "production" && (
|
|
5521
|
+
process.env.NODE_ENV !== "production" && (nc.ids = function() {
|
|
5522
5522
|
return lu;
|
|
5523
5523
|
});
|
|
5524
5524
|
const _T = (function() {
|
|
5525
5525
|
var t = P.useRef(null);
|
|
5526
5526
|
function e() {
|
|
5527
|
-
|
|
5527
|
+
nc.cancel(t.current);
|
|
5528
5528
|
}
|
|
5529
5529
|
function n(r) {
|
|
5530
5530
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
5531
5531
|
e();
|
|
5532
|
-
var o =
|
|
5532
|
+
var o = nc(function() {
|
|
5533
5533
|
i <= 1 ? r({
|
|
5534
5534
|
isCanceled: function() {
|
|
5535
5535
|
return o !== t.current;
|
|
@@ -5585,16 +5585,16 @@ function UT(t, e, n, r) {
|
|
|
5585
5585
|
var xe = Y();
|
|
5586
5586
|
if (!(ie && !ie.deadline && ie.target !== xe)) {
|
|
5587
5587
|
var Q = Z.current, fe;
|
|
5588
|
-
ve ===
|
|
5588
|
+
ve === rl && Q ? fe = w?.(xe, ie) : ve === il && Q ? fe = C?.(xe, ie) : ve === ol && Q && (fe = x?.(xe, ie)), Q && fe !== !1 && J();
|
|
5589
5589
|
}
|
|
5590
5590
|
}
|
|
5591
5591
|
}), oe = $T(ee), te = _e(oe, 1), se = te[0], Te = function(ve) {
|
|
5592
5592
|
switch (ve) {
|
|
5593
|
-
case nl:
|
|
5594
|
-
return Rt(Rt(Rt({}, zn, d), Lo, m), Do, S);
|
|
5595
5593
|
case rl:
|
|
5596
|
-
return Rt(Rt(Rt({}, zn,
|
|
5594
|
+
return Rt(Rt(Rt({}, zn, d), Lo, m), Do, S);
|
|
5597
5595
|
case il:
|
|
5596
|
+
return Rt(Rt(Rt({}, zn, h), Lo, g), Do, k);
|
|
5597
|
+
case ol:
|
|
5598
5598
|
return Rt(Rt(Rt({}, zn, p), Lo, v), Do, E);
|
|
5599
5599
|
default:
|
|
5600
5600
|
return {};
|
|
@@ -5624,15 +5624,15 @@ function UT(t, e, n, r) {
|
|
|
5624
5624
|
var ie = W.current;
|
|
5625
5625
|
W.current = !0;
|
|
5626
5626
|
var ve;
|
|
5627
|
-
!ie && e && a && (ve =
|
|
5627
|
+
!ie && e && a && (ve = rl), ie && e && o && (ve = il), (ie && !e && c || !ie && f && !e && c) && (ve = ol);
|
|
5628
5628
|
var xe = Te(ve);
|
|
5629
5629
|
ve && (t || xe[zn]) ? (D(ve), ye()) : D(ei), Le.current = e;
|
|
5630
5630
|
}
|
|
5631
5631
|
}, [e]), Wn(function() {
|
|
5632
5632
|
// Cancel appear
|
|
5633
|
-
(F ===
|
|
5634
|
-
F ===
|
|
5635
|
-
F ===
|
|
5633
|
+
(F === rl && !a || // Cancel enter
|
|
5634
|
+
F === il && !o || // Cancel leave
|
|
5635
|
+
F === ol && !c) && D(ei);
|
|
5636
5636
|
}, [a, o, c]), Wn(function() {
|
|
5637
5637
|
return function() {
|
|
5638
5638
|
W.current = !1, clearTimeout(q.current);
|
|
@@ -5657,7 +5657,7 @@ function WT(t) {
|
|
|
5657
5657
|
var s = i.visible, a = s === void 0 ? !0 : s, l = i.removeOnLeave, c = l === void 0 ? !0 : l, u = i.forceRender, f = i.children, d = i.motionName, h = i.leavedClassName, p = i.eventProps, m = P.useContext(IT), g = m.motion, v = n(i, g), S = Zt(), k = Zt();
|
|
5658
5658
|
function E() {
|
|
5659
5659
|
try {
|
|
5660
|
-
return S.current instanceof HTMLElement ? S.current :
|
|
5660
|
+
return S.current instanceof HTMLElement ? S.current : Bl(k.current);
|
|
5661
5661
|
} catch {
|
|
5662
5662
|
return null;
|
|
5663
5663
|
}
|
|
@@ -6007,12 +6007,12 @@ function Hg(t, e, n, r) {
|
|
|
6007
6007
|
motionName: r
|
|
6008
6008
|
} : null);
|
|
6009
6009
|
}
|
|
6010
|
-
function
|
|
6010
|
+
function wa(t) {
|
|
6011
6011
|
return t.ownerDocument.defaultView;
|
|
6012
6012
|
}
|
|
6013
6013
|
function Ld(t) {
|
|
6014
6014
|
for (var e = [], n = t?.parentElement, r = ["hidden", "scroll", "clip", "auto"]; n; ) {
|
|
6015
|
-
var i =
|
|
6015
|
+
var i = wa(n).getComputedStyle(n), o = i.overflowX, s = i.overflowY, a = i.overflow;
|
|
6016
6016
|
[o, s, a].some(function(l) {
|
|
6017
6017
|
return r.includes(l);
|
|
6018
6018
|
}) && e.push(n), n = n.parentElement;
|
|
@@ -6030,7 +6030,7 @@ function jg(t, e) {
|
|
|
6030
6030
|
var n = ge({}, t);
|
|
6031
6031
|
return (e || []).forEach(function(r) {
|
|
6032
6032
|
if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
|
|
6033
|
-
var i =
|
|
6033
|
+
var i = wa(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, a = i.borderTopWidth, l = i.borderBottomWidth, c = i.borderLeftWidth, u = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, h = r.clientHeight, p = r.offsetWidth, m = r.clientWidth, g = ws(a), v = ws(l), S = ws(c), k = ws(u), E = Xs(Math.round(f.width / p * 1e3) / 1e3), w = Xs(Math.round(f.height / d * 1e3) / 1e3), C = (p - m - S - k) * E, x = (d - h - g - v) * w, N = g * w, A = v * w, T = S * E, M = k * E, L = 0, O = 0;
|
|
6034
6034
|
if (o === "clip") {
|
|
6035
6035
|
var I = ws(s);
|
|
6036
6036
|
L = I * E, O = I * w;
|
|
@@ -6091,12 +6091,12 @@ function rO(t, e, n, r, i, o, s) {
|
|
|
6091
6091
|
var m = rr(function() {
|
|
6092
6092
|
if (e && n && t) {
|
|
6093
6093
|
let xn = function(vs, Er) {
|
|
6094
|
-
var Yr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe, bs = W.x + vs,
|
|
6094
|
+
var Yr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe, bs = W.x + vs, Xa = W.y + Er, ef = bs + U, tf = Xa + Be, nf = Math.max(bs, Yr.left), ne = Math.max(Xa, Yr.top), we = Math.min(ef, Yr.right), at = Math.min(tf, Yr.bottom);
|
|
6095
6095
|
return Math.max(0, (we - nf) * (at - ne));
|
|
6096
6096
|
}, bo = function() {
|
|
6097
6097
|
Wr = W.y + ct, Vr = Wr + Be, Bi = W.x + it, Sr = Bi + U;
|
|
6098
6098
|
};
|
|
6099
|
-
var S, k, E, w, C = e, x = C.ownerDocument, N =
|
|
6099
|
+
var S, k, E, w, C = e, x = C.ownerDocument, N = wa(C), A = N.getComputedStyle(C), T = A.position, M = C.style.left, L = C.style.top, O = C.style.right, I = C.style.bottom, $ = C.style.overflow, D = ge(ge({}, i[r]), o), _ = x.createElement("div");
|
|
6100
6100
|
(S = C.parentElement) === null || S === void 0 || S.appendChild(_), _.style.left = "".concat(C.offsetLeft, "px"), _.style.top = "".concat(C.offsetTop, "px"), _.style.position = T, _.style.height = "".concat(C.offsetHeight, "px"), _.style.width = "".concat(C.offsetWidth, "px"), C.style.left = "0", C.style.top = "0", C.style.right = "auto", C.style.bottom = "auto", C.style.overflow = "hidden";
|
|
6101
6101
|
var B;
|
|
6102
6102
|
if (Array.isArray(n))
|
|
@@ -6138,39 +6138,39 @@ function rO(t, e, n, r, i, o, s) {
|
|
|
6138
6138
|
return;
|
|
6139
6139
|
var dn = D.offset, En = D.targetOffset, qe = Wg(W, dn), Ct = _e(qe, 2), me = Ct[0], Fe = Ct[1], de = Wg(B, En), Ce = _e(de, 2), $e = Ce[0], fs = Ce[1];
|
|
6140
6140
|
B.x -= $e, B.y -= fs;
|
|
6141
|
-
var zu = D.points || [],
|
|
6141
|
+
var zu = D.points || [], Da = _e(zu, 2), Hu = Da[0], Pa = Da[1], wr = Vg(Pa), nn = Vg(Hu), _t = Eo(B, wr), Ba = Eo(W, nn), kn = ge({}, D), it = _t.x - Ba.x + me, ct = _t.y - Ba.y + Fe, _n = xn(it, ct), Li = xn(it, ct, Q), Cn = Eo(B, ["t", "l"]), $a = Eo(W, ["t", "l"]), ds = Eo(B, ["b", "r"]), Di = Eo(W, ["b", "r"]), Pi = D.overflow || {}, ju = Pi.adjustX, _a = Pi.adjustY, yo = Pi.shiftX, hs = Pi.shiftY, Fa = function(Er) {
|
|
6142
6142
|
return typeof Er == "boolean" ? Er : Er >= 0;
|
|
6143
6143
|
}, Wr, Vr, Bi, Sr;
|
|
6144
6144
|
bo();
|
|
6145
|
-
var
|
|
6146
|
-
if (
|
|
6145
|
+
var za = Fa(_a), rn = nn[0] === wr[0];
|
|
6146
|
+
if (za && nn[0] === "t" && (Vr > le.bottom || h.current.bt)) {
|
|
6147
6147
|
var $i = ct;
|
|
6148
6148
|
rn ? $i -= Be - ye : $i = Cn.y - Di.y - Fe;
|
|
6149
|
-
var
|
|
6149
|
+
var Ha = xn(it, $i), Uu = xn(it, $i, Q);
|
|
6150
6150
|
// Of course use larger one
|
|
6151
|
-
|
|
6151
|
+
Ha > _n || Ha === _n && (!ve || // Choose recommend one
|
|
6152
6152
|
Uu >= Li) ? (h.current.bt = !0, ct = $i, Fe = -Fe, kn.points = [Xr(nn, 0), Xr(wr, 0)]) : h.current.bt = !1;
|
|
6153
6153
|
}
|
|
6154
|
-
if (
|
|
6154
|
+
if (za && nn[0] === "b" && (Wr < le.top || h.current.tb)) {
|
|
6155
6155
|
var _i = ct;
|
|
6156
|
-
rn ? _i += Be - ye : _i = ds.y -
|
|
6157
|
-
var
|
|
6156
|
+
rn ? _i += Be - ye : _i = ds.y - $a.y - Fe;
|
|
6157
|
+
var ja = xn(it, _i), Wu = xn(it, _i, Q);
|
|
6158
6158
|
// Of course use larger one
|
|
6159
|
-
|
|
6159
|
+
ja > _n || ja === _n && (!ve || // Choose recommend one
|
|
6160
6160
|
Wu >= Li) ? (h.current.tb = !0, ct = _i, Fe = -Fe, kn.points = [Xr(nn, 0), Xr(wr, 0)]) : h.current.tb = !1;
|
|
6161
6161
|
}
|
|
6162
|
-
var
|
|
6163
|
-
if (
|
|
6162
|
+
var Ua = Fa(ju), Wa = nn[1] === wr[1];
|
|
6163
|
+
if (Ua && nn[1] === "l" && (Sr > le.right || h.current.rl)) {
|
|
6164
6164
|
var Fi = it;
|
|
6165
|
-
|
|
6165
|
+
Wa ? Fi -= U - Ee : Fi = Cn.x - Di.x - me;
|
|
6166
6166
|
var zi = xn(Fi, ct), ps = xn(Fi, ct, Q);
|
|
6167
6167
|
// Of course use larger one
|
|
6168
6168
|
zi > _n || zi === _n && (!ve || // Choose recommend one
|
|
6169
6169
|
ps >= Li) ? (h.current.rl = !0, it = Fi, me = -me, kn.points = [Xr(nn, 1), Xr(wr, 1)]) : h.current.rl = !1;
|
|
6170
6170
|
}
|
|
6171
|
-
if (
|
|
6171
|
+
if (Ua && nn[1] === "r" && (Bi < le.left || h.current.lr)) {
|
|
6172
6172
|
var Hi = it;
|
|
6173
|
-
|
|
6173
|
+
Wa ? Hi += U - Ee : Hi = ds.x - $a.x - me;
|
|
6174
6174
|
var ms = xn(Hi, ct), vo = xn(Hi, ct, Q);
|
|
6175
6175
|
// Of course use larger one
|
|
6176
6176
|
ms > _n || ms === _n && (!ve || // Choose recommend one
|
|
@@ -6181,7 +6181,7 @@ function rO(t, e, n, r, i, o, s) {
|
|
|
6181
6181
|
typeof Fn == "number" && (Bi < Q.left && (it -= Bi - Q.left - me, B.x + Ee < Q.left + Fn && (it += B.x - Q.left + Ee - Fn)), Sr > Q.right && (it -= Sr - Q.right - me, B.x > Q.right - Fn && (it += B.x - Q.right + Fn)));
|
|
6182
6182
|
var Kr = hs === !0 ? 0 : hs;
|
|
6183
6183
|
typeof Kr == "number" && (Wr < Q.top && (ct -= Wr - Q.top - Fe, B.y + ye < Q.top + Kr && (ct += B.y - Q.top + ye - Kr)), Vr > Q.bottom && (ct -= Vr - Q.bottom - Fe, B.y > Q.bottom - Kr && (ct += B.y - Q.bottom + Kr)));
|
|
6184
|
-
var Gr = W.x + it, qr = Gr + U, gs = W.y + ct, Vu = gs + Be,
|
|
6184
|
+
var Gr = W.x + it, qr = Gr + U, gs = W.y + ct, Vu = gs + Be, Va = B.x, Ka = Va + Ee, Ga = B.y, Ku = Ga + ye, Gu = Math.max(Gr, Va), qa = Math.min(qr, Ka), qu = (Gu + qa) / 2, Yu = qu - Gr, Ya = Math.max(gs, Ga), Xu = Math.min(Vu, Ku), Ju = (Ya + Xu) / 2, Zu = Ju - gs;
|
|
6185
6185
|
s?.(e, kn);
|
|
6186
6186
|
var Zn = Pe.right - W.x - (it + W.width), ys = Pe.bottom - W.y - (ct + W.height);
|
|
6187
6187
|
Ie === 1 && (it = Math.round(it), Zn = Math.round(Zn)), yt === 1 && (ct = Math.round(ct), ys = Math.round(ys));
|
|
@@ -6222,7 +6222,7 @@ function iO(t, e, n, r, i) {
|
|
|
6222
6222
|
let f = function() {
|
|
6223
6223
|
r(), i();
|
|
6224
6224
|
};
|
|
6225
|
-
var o = e, s = n, a = Ld(o), l = Ld(s), c =
|
|
6225
|
+
var o = e, s = n, a = Ld(o), l = Ld(s), c = wa(s), u = new Set([c].concat(qo(a), qo(l)));
|
|
6226
6226
|
return u.forEach(function(d) {
|
|
6227
6227
|
d.addEventListener("scroll", f, {
|
|
6228
6228
|
passive: !0
|
|
@@ -6248,12 +6248,12 @@ function oO(t, e, n, r, i, o, s, a) {
|
|
|
6248
6248
|
}, d = function(E) {
|
|
6249
6249
|
var w;
|
|
6250
6250
|
l.current && !s(((w = E.composedPath) === null || w === void 0 || (w = w.call(E)) === null || w === void 0 ? void 0 : w[0]) || E.target) && !c.current && a(!1);
|
|
6251
|
-
}, h =
|
|
6251
|
+
}, h = wa(r);
|
|
6252
6252
|
h.addEventListener("pointerdown", f, !0), h.addEventListener("mousedown", d, !0), h.addEventListener("contextmenu", d, !0);
|
|
6253
6253
|
var p = Ad(n);
|
|
6254
6254
|
if (p && (p.addEventListener("mousedown", d, !0), p.addEventListener("contextmenu", d, !0)), process.env.NODE_ENV !== "production") {
|
|
6255
6255
|
var m, g, v = n == null || (m = n.getRootNode) === null || m === void 0 ? void 0 : m.call(n), S = (g = r.getRootNode) === null || g === void 0 ? void 0 : g.call(r);
|
|
6256
|
-
|
|
6256
|
+
Zl(v === S, "trigger element and popup element should in same shadow root.");
|
|
6257
6257
|
}
|
|
6258
6258
|
return function() {
|
|
6259
6259
|
h.removeEventListener("pointerdown", f, !0), h.removeEventListener("mousedown", d, !0), h.removeEventListener("contextmenu", d, !0), p && (p.removeEventListener("mousedown", d, !0), p.removeEventListener("contextmenu", d, !0));
|
|
@@ -6287,7 +6287,7 @@ function aO() {
|
|
|
6287
6287
|
return St?.contains(ne) || ((we = Ad(St)) === null || we === void 0 ? void 0 : we.host) === ne || ne === St || le?.contains(ne) || ((at = Ad(le)) === null || at === void 0 ? void 0 : at.host) === ne || ne === le || Object.values(ke.current).some(function(ht) {
|
|
6288
6288
|
return ht?.contains(ne) || ne === ht;
|
|
6289
6289
|
});
|
|
6290
|
-
}), zu = Hg(o, J, te, oe),
|
|
6290
|
+
}), zu = Hg(o, J, te, oe), Da = Hg(o, ee, Te, se), Hu = P.useState(d || !1), Pa = _e(Hu, 2), wr = Pa[0], nn = Pa[1], _t = f ?? wr, Ba = rr(function(ne) {
|
|
6291
6291
|
f === void 0 && nn(ne);
|
|
6292
6292
|
});
|
|
6293
6293
|
pn(function() {
|
|
@@ -6299,7 +6299,7 @@ function aO() {
|
|
|
6299
6299
|
it.current = [];
|
|
6300
6300
|
var ct = rr(function(ne) {
|
|
6301
6301
|
var we;
|
|
6302
|
-
|
|
6302
|
+
Ba(ne), ((we = it.current[it.current.length - 1]) !== null && we !== void 0 ? we : _t) !== ne && (it.current.push(ne), h?.(ne));
|
|
6303
6303
|
}), _n = P.useRef(), Li = function() {
|
|
6304
6304
|
clearTimeout(_n.current);
|
|
6305
6305
|
}, Cn = function(we) {
|
|
@@ -6311,13 +6311,13 @@ function aO() {
|
|
|
6311
6311
|
P.useEffect(function() {
|
|
6312
6312
|
return Li;
|
|
6313
6313
|
}, []);
|
|
6314
|
-
var
|
|
6314
|
+
var $a = P.useState(!1), ds = _e($a, 2), Di = ds[0], Pi = ds[1];
|
|
6315
6315
|
pn(function(ne) {
|
|
6316
6316
|
(!ne || _t) && Pi(!0);
|
|
6317
6317
|
}, [_t]);
|
|
6318
|
-
var ju = P.useState(null),
|
|
6318
|
+
var ju = P.useState(null), _a = _e(ju, 2), yo = _a[0], hs = _a[1], Fa = P.useState(null), Wr = _e(Fa, 2), Vr = Wr[0], Bi = Wr[1], Sr = function(we) {
|
|
6319
6319
|
Bi([we.clientX, we.clientY]);
|
|
6320
|
-
},
|
|
6320
|
+
}, za = rO(_t, le, W && Vr !== null ? Vr : qe, I, D, _, Y), rn = _e(za, 11), $i = rn[0], Ha = rn[1], Uu = rn[2], _i = rn[3], ja = rn[4], Wu = rn[5], Ua = rn[6], Wa = rn[7], Fi = rn[8], zi = rn[9], ps = rn[10], Hi = QT(Le, l, c, u), ms = _e(Hi, 2), vo = ms[0], Fn = ms[1], Kr = vo.has("click"), Gr = Fn.has("click") || Fn.has("contextMenu"), qr = rr(function() {
|
|
6321
6321
|
Di || ps();
|
|
6322
6322
|
}), gs = function() {
|
|
6323
6323
|
kn.current && W && Gr && Cn(!1);
|
|
@@ -6338,18 +6338,18 @@ function aO() {
|
|
|
6338
6338
|
forceAlign: qr
|
|
6339
6339
|
};
|
|
6340
6340
|
});
|
|
6341
|
-
var
|
|
6341
|
+
var Va = P.useState(0), Ka = _e(Va, 2), Ga = Ka[0], Ku = Ka[1], Gu = P.useState(0), qa = _e(Gu, 2), qu = qa[0], Yu = qa[1], Ya = function() {
|
|
6342
6342
|
if (j && qe) {
|
|
6343
6343
|
var we = qe.getBoundingClientRect();
|
|
6344
6344
|
Ku(we.width), Yu(we.height);
|
|
6345
6345
|
}
|
|
6346
6346
|
}, Xu = function() {
|
|
6347
|
-
|
|
6347
|
+
Ya(), qr();
|
|
6348
6348
|
}, Ju = function(we) {
|
|
6349
6349
|
Pi(!1), ps(), p?.(we);
|
|
6350
6350
|
}, Zu = function() {
|
|
6351
6351
|
return new Promise(function(we) {
|
|
6352
|
-
|
|
6352
|
+
Ya(), hs(function() {
|
|
6353
6353
|
return we;
|
|
6354
6354
|
});
|
|
6355
6355
|
});
|
|
@@ -6359,11 +6359,11 @@ function aO() {
|
|
|
6359
6359
|
}, [yo]);
|
|
6360
6360
|
function Zn(ne, we, at, St) {
|
|
6361
6361
|
$e[ne] = function(ht) {
|
|
6362
|
-
var
|
|
6362
|
+
var Ja;
|
|
6363
6363
|
St?.(ht), Cn(we, at);
|
|
6364
|
-
for (var rf = arguments.length, Om = new Array(rf > 1 ? rf - 1 : 0),
|
|
6365
|
-
Om[
|
|
6366
|
-
(
|
|
6364
|
+
for (var rf = arguments.length, Om = new Array(rf > 1 ? rf - 1 : 0), Za = 1; Za < rf; Za++)
|
|
6365
|
+
Om[Za - 1] = arguments[Za];
|
|
6366
|
+
(Ja = Ce[ne]) === null || Ja === void 0 || Ja.call.apply(Ja, [Ce, ht].concat(Om));
|
|
6367
6367
|
};
|
|
6368
6368
|
}
|
|
6369
6369
|
(Kr || Gr) && ($e.onClick = function(ne) {
|
|
@@ -6394,8 +6394,8 @@ function aO() {
|
|
|
6394
6394
|
}), Se && ($e.className = lr(Ce.className, Se));
|
|
6395
6395
|
var Er = P.useRef(!1);
|
|
6396
6396
|
Er.current || (Er.current = N || _t || Di);
|
|
6397
|
-
var Yr = ge(ge({}, Ce), $e), bs = {},
|
|
6398
|
-
|
|
6397
|
+
var Yr = ge(ge({}, Ce), $e), bs = {}, Xa = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
6398
|
+
Xa.forEach(function(ne) {
|
|
6399
6399
|
U[ne] && (bs[ne] = function() {
|
|
6400
6400
|
for (var we, at = arguments.length, St = new Array(at), ht = 0; ht < at; ht++)
|
|
6401
6401
|
St[ht] = arguments[ht];
|
|
@@ -6404,7 +6404,7 @@ function aO() {
|
|
|
6404
6404
|
});
|
|
6405
6405
|
var ef = /* @__PURE__ */ P.cloneElement(de, ge(ge({}, Yr), bs)), tf = {
|
|
6406
6406
|
x: Wu,
|
|
6407
|
-
y:
|
|
6407
|
+
y: Ua
|
|
6408
6408
|
}, nf = Z ? ge({}, Z !== !0 ? Z : {}) : null;
|
|
6409
6409
|
return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(au, {
|
|
6410
6410
|
disabled: !_t,
|
|
@@ -6433,7 +6433,7 @@ function aO() {
|
|
|
6433
6433
|
onPointerDownCapture: ys,
|
|
6434
6434
|
mask: E,
|
|
6435
6435
|
motion: zu,
|
|
6436
|
-
maskMotion:
|
|
6436
|
+
maskMotion: Da,
|
|
6437
6437
|
onVisibleChanged: Ju,
|
|
6438
6438
|
onPrepare: Zu,
|
|
6439
6439
|
forceRender: N,
|
|
@@ -6443,13 +6443,13 @@ function aO() {
|
|
|
6443
6443
|
arrow: nf,
|
|
6444
6444
|
arrowPos: tf,
|
|
6445
6445
|
ready: $i,
|
|
6446
|
-
offsetX:
|
|
6446
|
+
offsetX: Ha,
|
|
6447
6447
|
offsetY: Uu,
|
|
6448
6448
|
offsetR: _i,
|
|
6449
|
-
offsetB:
|
|
6449
|
+
offsetB: ja,
|
|
6450
6450
|
onAlign: qr,
|
|
6451
6451
|
stretch: j,
|
|
6452
|
-
targetWidth:
|
|
6452
|
+
targetWidth: Ga / Wa,
|
|
6453
6453
|
targetHeight: qu / Fi
|
|
6454
6454
|
})));
|
|
6455
6455
|
});
|
|
@@ -6581,8 +6581,8 @@ var ko = {
|
|
|
6581
6581
|
arrow: $
|
|
6582
6582
|
}, F), q());
|
|
6583
6583
|
};
|
|
6584
|
-
const dO = /* @__PURE__ */ Jy(fO),
|
|
6585
|
-
function
|
|
6584
|
+
const dO = /* @__PURE__ */ Jy(fO), al = 0.2;
|
|
6585
|
+
function Sa({
|
|
6586
6586
|
className: t,
|
|
6587
6587
|
children: e,
|
|
6588
6588
|
style: n = {},
|
|
@@ -6591,12 +6591,12 @@ function wa({
|
|
|
6591
6591
|
triggers: o = "hover",
|
|
6592
6592
|
placement: s = "rt",
|
|
6593
6593
|
display: a = "inline-block",
|
|
6594
|
-
delay: l = [
|
|
6594
|
+
delay: l = [al, al]
|
|
6595
6595
|
}) {
|
|
6596
6596
|
let c = b.useMemo(() => ({ offSet: [8, 8] }), []), u = b.useMemo(() => ({ display: a }), [a]), f = b.useMemo(() => {
|
|
6597
6597
|
let p = "";
|
|
6598
6598
|
return s === "r" ? p = "right" : s === "t" ? p = "top" : s === "b" ? p = "bottom" : s === "l" ? p = "left" : s === "lt" || s === "tl" ? p = "leftTop" : s === "lb" || s === "bl" ? p = "leftBottom" : s === "rt" || s === "tr" ? p = "rightTop" : (s === "rb" || s === "br") && (p = "rightBottom"), p;
|
|
6599
|
-
}, [s]), [d, h] = b.useMemo(() => typeof l == "number" ? [l, l] : l.length === 2 ? l : l.length === 1 ? [l[0], l[0]] : [
|
|
6599
|
+
}, [s]), [d, h] = b.useMemo(() => typeof l == "number" ? [l, l] : l.length === 2 ? l : l.length === 1 ? [l[0], l[0]] : [al, al], [l]);
|
|
6600
6600
|
return r ? /* @__PURE__ */ y("span", { className: t, style: n, children: /* @__PURE__ */ y(
|
|
6601
6601
|
dO,
|
|
6602
6602
|
{
|
|
@@ -6643,9 +6643,9 @@ function uo(t, e, n) {
|
|
|
6643
6643
|
t(n), e && e();
|
|
6644
6644
|
}
|
|
6645
6645
|
}
|
|
6646
|
-
) : /* @__PURE__ */ y(
|
|
6646
|
+
) : /* @__PURE__ */ y(Sa, { content: t, placement: "r", triggers: "hover", children: /* @__PURE__ */ y(Ne, { className: "has-text-info is-clickable", icon: pg, style: { margin: "0" } }) });
|
|
6647
6647
|
}
|
|
6648
|
-
function
|
|
6648
|
+
function Ea(t, e = !1) {
|
|
6649
6649
|
let n = "";
|
|
6650
6650
|
return t === "c" ? n = " is-centered" : t === "r" ? n = " is-right" : n = " is-left", e ? n.trim() : n;
|
|
6651
6651
|
}
|
|
@@ -6804,7 +6804,7 @@ const m9 = ({
|
|
|
6804
6804
|
children: t
|
|
6805
6805
|
}
|
|
6806
6806
|
), Bt = ({ children: t, title: e, style: n, itemRef: r, className: i = "", color: o = "default", alignment: s = "l" }) => {
|
|
6807
|
-
let { scheme: a } = Ti(), l = gO(o, a), c = `border-box ${l} ${i}`.trim(), u = `border-box-title ${l.replace("is-", "has-text-")} ${
|
|
6807
|
+
let { scheme: a } = Ti(), l = gO(o, a), c = `border-box ${l} ${i}`.trim(), u = `border-box-title ${l.replace("is-", "has-text-")} ${Ea(s, !0)}`.trim();
|
|
6808
6808
|
return /* @__PURE__ */ R("div", { style: n, className: c, ref: r, children: [
|
|
6809
6809
|
e && /* @__PURE__ */ y("div", { className: "border-box-title-container", children: /* @__PURE__ */ y("div", { className: "border-box-title-flex-wrapper", children: /* @__PURE__ */ y(mO, { size: 6, className: u, children: e }) }) }),
|
|
6810
6810
|
/* @__PURE__ */ y("div", { className: "border-box-content", children: t })
|
|
@@ -7314,7 +7314,7 @@ function Jb(t, e, n) {
|
|
|
7314
7314
|
}, i = typeof t == "function" ? t(e) : t, o = li(li({}, r), i);
|
|
7315
7315
|
return o;
|
|
7316
7316
|
}
|
|
7317
|
-
function
|
|
7317
|
+
function $l(t) {
|
|
7318
7318
|
var e = t.children, n = t.lineNumber, r = t.lineNumberStyle, i = t.largestLineNumber, o = t.showInlineLineNumbers, s = t.lineProps, a = s === void 0 ? {} : s, l = t.className, c = l === void 0 ? [] : l, u = t.showLineNumbers, f = t.wrapLongLines, d = t.wrapLines, h = d === void 0 ? !1 : d, p = h ? li({}, typeof a == "function" ? a(n) : a) : {};
|
|
7319
7319
|
if (p.className = p.className ? [].concat(qo(p.className.trim().split(/\s+/)), qo(c)) : c, n && o) {
|
|
7320
7320
|
var m = Jb(r, n, i);
|
|
@@ -7335,7 +7335,7 @@ function Zb(t) {
|
|
|
7335
7335
|
for (var r = 0; r < t.length; r++) {
|
|
7336
7336
|
var i = t[r];
|
|
7337
7337
|
if (i.type === "text")
|
|
7338
|
-
n.push(
|
|
7338
|
+
n.push($l({
|
|
7339
7339
|
children: [i],
|
|
7340
7340
|
className: qo(new Set(e))
|
|
7341
7341
|
}));
|
|
@@ -7352,7 +7352,7 @@ function LO(t, e, n, r, i, o, s, a, l) {
|
|
|
7352
7352
|
var c, u = Zb(t.value), f = [], d = -1, h = 0;
|
|
7353
7353
|
function p(w, C) {
|
|
7354
7354
|
var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
7355
|
-
return
|
|
7355
|
+
return $l({
|
|
7356
7356
|
children: w,
|
|
7357
7357
|
lineNumber: C,
|
|
7358
7358
|
lineNumberStyle: a,
|
|
@@ -7388,7 +7388,7 @@ function LO(t, e, n, r, i, o, s, a, l) {
|
|
|
7388
7388
|
`)
|
|
7389
7389
|
};
|
|
7390
7390
|
if (M === 0) {
|
|
7391
|
-
var I = u.slice(d + 1, h).concat(
|
|
7391
|
+
var I = u.slice(d + 1, h).concat($l({
|
|
7392
7392
|
children: [O],
|
|
7393
7393
|
className: C.properties.className
|
|
7394
7394
|
})), $ = g(I, L);
|
|
@@ -7399,7 +7399,7 @@ function LO(t, e, n, r, i, o, s, a, l) {
|
|
|
7399
7399
|
value: "".concat(T)
|
|
7400
7400
|
};
|
|
7401
7401
|
if (D) {
|
|
7402
|
-
var B =
|
|
7402
|
+
var B = $l({
|
|
7403
7403
|
children: [_],
|
|
7404
7404
|
className: C.properties.className
|
|
7405
7405
|
});
|
|
@@ -7507,7 +7507,7 @@ function BO(t, e) {
|
|
|
7507
7507
|
})));
|
|
7508
7508
|
};
|
|
7509
7509
|
}
|
|
7510
|
-
let
|
|
7510
|
+
let ka = class {
|
|
7511
7511
|
/**
|
|
7512
7512
|
* @param {SchemaType['property']} property
|
|
7513
7513
|
* Property.
|
|
@@ -7522,14 +7522,14 @@ let Ea = class {
|
|
|
7522
7522
|
this.normal = n, this.property = e, r && (this.space = r);
|
|
7523
7523
|
}
|
|
7524
7524
|
};
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7525
|
+
ka.prototype.normal = {};
|
|
7526
|
+
ka.prototype.property = {};
|
|
7527
|
+
ka.prototype.space = void 0;
|
|
7528
7528
|
function e2(t, e) {
|
|
7529
7529
|
const n = {}, r = {};
|
|
7530
7530
|
for (const i of t)
|
|
7531
7531
|
Object.assign(n, i.property), Object.assign(r, i.normal);
|
|
7532
|
-
return new
|
|
7532
|
+
return new ka(n, r, e);
|
|
7533
7533
|
}
|
|
7534
7534
|
function Js(t) {
|
|
7535
7535
|
return t.toLowerCase();
|
|
@@ -7615,7 +7615,7 @@ function ss(t) {
|
|
|
7615
7615
|
);
|
|
7616
7616
|
t.mustUseProperty && t.mustUseProperty.includes(r) && (o.mustUseProperty = !0), e[r] = o, n[Js(r)] = r, n[Js(o.attribute)] = r;
|
|
7617
7617
|
}
|
|
7618
|
-
return new
|
|
7618
|
+
return new ka(e, n, t.space);
|
|
7619
7619
|
}
|
|
7620
7620
|
const t2 = ss({
|
|
7621
7621
|
properties: {
|
|
@@ -9118,7 +9118,7 @@ function oM(t) {
|
|
|
9118
9118
|
function sM(t) {
|
|
9119
9119
|
return t >= 1 && t <= 8 || t === 11 || t >= 13 && t <= 31 || t >= 127 && t <= 159 || t >= 64976 && t <= 65007 || (t & 65535) === 65535 || (t & 65535) === 65534;
|
|
9120
9120
|
}
|
|
9121
|
-
var aM = 0,
|
|
9121
|
+
var aM = 0, ll = {}, xt = {
|
|
9122
9122
|
/**
|
|
9123
9123
|
* A namespace for utility methods.
|
|
9124
9124
|
*
|
|
@@ -9206,10 +9206,10 @@ var aM = 0, al = {}, xt = {
|
|
|
9206
9206
|
/**
|
|
9207
9207
|
* The grammar for plain, unformatted text.
|
|
9208
9208
|
*/
|
|
9209
|
-
plain:
|
|
9210
|
-
plaintext:
|
|
9211
|
-
text:
|
|
9212
|
-
txt:
|
|
9209
|
+
plain: ll,
|
|
9210
|
+
plaintext: ll,
|
|
9211
|
+
text: ll,
|
|
9212
|
+
txt: ll,
|
|
9213
9213
|
/**
|
|
9214
9214
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
9215
9215
|
*
|
|
@@ -9410,7 +9410,7 @@ var aM = 0, al = {}, xt = {
|
|
|
9410
9410
|
delete e.rest;
|
|
9411
9411
|
}
|
|
9412
9412
|
var i = new lM();
|
|
9413
|
-
return
|
|
9413
|
+
return _l(i, i.head, t), c2(t, i, e, i.head, 0), uM(i);
|
|
9414
9414
|
},
|
|
9415
9415
|
/**
|
|
9416
9416
|
* @namespace
|
|
@@ -9500,14 +9500,14 @@ function c2(t, e, n, r, i, o) {
|
|
|
9500
9500
|
var N = E.index, A = E[0], T = S.slice(0, N), M = S.slice(N + A.length), L = v + S.length;
|
|
9501
9501
|
o && L > o.reach && (o.reach = L);
|
|
9502
9502
|
var O = g.prev;
|
|
9503
|
-
T && (O =
|
|
9503
|
+
T && (O = _l(e, O, T), v += T.length), cM(e, O, k);
|
|
9504
9504
|
var I = new Ds(
|
|
9505
9505
|
s,
|
|
9506
9506
|
u ? xt.tokenize(A, u) : A,
|
|
9507
9507
|
h,
|
|
9508
9508
|
A
|
|
9509
9509
|
);
|
|
9510
|
-
if (g =
|
|
9510
|
+
if (g = _l(e, O, I), M && _l(e, g, M), k > 1) {
|
|
9511
9511
|
var $ = {
|
|
9512
9512
|
cause: s + "," + l,
|
|
9513
9513
|
reach: L
|
|
@@ -9530,7 +9530,7 @@ function lM() {
|
|
|
9530
9530
|
var t = { value: null, prev: null, next: null }, e = { value: null, prev: t, next: null };
|
|
9531
9531
|
t.next = e, this.head = t, this.tail = e, this.length = 0;
|
|
9532
9532
|
}
|
|
9533
|
-
function
|
|
9533
|
+
function _l(t, e, n) {
|
|
9534
9534
|
var r = e.next, i = { value: n, prev: e, next: r };
|
|
9535
9535
|
return e.next = i, r.prev = i, t.length++, i;
|
|
9536
9536
|
}
|
|
@@ -9653,9 +9653,9 @@ $t.registerLanguage = function(t, e) {
|
|
|
9653
9653
|
$t.alias = function(t, e) {
|
|
9654
9654
|
return Et.alias(t, e);
|
|
9655
9655
|
};
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
function
|
|
9656
|
+
Ca.displayName = "markup";
|
|
9657
|
+
Ca.aliases = ["atom", "html", "mathml", "rss", "ssml", "svg", "xml"];
|
|
9658
|
+
function Ca(t) {
|
|
9659
9659
|
t.languages.markup = {
|
|
9660
9660
|
comment: {
|
|
9661
9661
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
@@ -9824,9 +9824,9 @@ function ka(t) {
|
|
|
9824
9824
|
}
|
|
9825
9825
|
}), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml;
|
|
9826
9826
|
}
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
function
|
|
9827
|
+
xa.displayName = "css";
|
|
9828
|
+
xa.aliases = [];
|
|
9829
|
+
function xa(t) {
|
|
9830
9830
|
(function(e) {
|
|
9831
9831
|
var n = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
9832
9832
|
e.languages.css = {
|
|
@@ -9925,9 +9925,9 @@ function uu(t) {
|
|
|
9925
9925
|
punctuation: /[{}[\];(),.:]/
|
|
9926
9926
|
};
|
|
9927
9927
|
}
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
function
|
|
9928
|
+
Na.displayName = "javascript";
|
|
9929
|
+
Na.aliases = ["js"];
|
|
9930
|
+
function Na(t) {
|
|
9931
9931
|
t.register(uu), t.languages.javascript = t.languages.extend("clike", {
|
|
9932
9932
|
"class-name": [
|
|
9933
9933
|
t.languages.clike["class-name"],
|
|
@@ -10725,7 +10725,7 @@ function pp(t) {
|
|
|
10725
10725
|
mp.displayName = "scss";
|
|
10726
10726
|
mp.aliases = [];
|
|
10727
10727
|
function mp(t) {
|
|
10728
|
-
t.register(
|
|
10728
|
+
t.register(xa), t.languages.scss = t.languages.extend("css", {
|
|
10729
10729
|
comment: {
|
|
10730
10730
|
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
|
|
10731
10731
|
lookbehind: !0
|
|
@@ -10830,7 +10830,7 @@ function gp(t) {
|
|
|
10830
10830
|
fu.displayName = "typescript";
|
|
10831
10831
|
fu.aliases = ["ts"];
|
|
10832
10832
|
function fu(t) {
|
|
10833
|
-
t.register(
|
|
10833
|
+
t.register(Na), (function(e) {
|
|
10834
10834
|
e.languages.typescript = e.languages.extend("javascript", {
|
|
10835
10835
|
"class-name": {
|
|
10836
10836
|
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
@@ -10879,7 +10879,7 @@ function fu(t) {
|
|
|
10879
10879
|
du.displayName = "jsx";
|
|
10880
10880
|
du.aliases = [];
|
|
10881
10881
|
function du(t) {
|
|
10882
|
-
t.register(
|
|
10882
|
+
t.register(Na), t.register(Ca), (function(e) {
|
|
10883
10883
|
var n = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, o = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
10884
10884
|
function s(c, u) {
|
|
10885
10885
|
return c = c.replace(/<S>/g, function() {
|
|
@@ -10962,7 +10962,7 @@ function yp(t) {
|
|
|
10962
10962
|
vp.displayName = "sass";
|
|
10963
10963
|
vp.aliases = [];
|
|
10964
10964
|
function vp(t) {
|
|
10965
|
-
t.register(
|
|
10965
|
+
t.register(xa), (function(e) {
|
|
10966
10966
|
e.languages.sass = e.languages.extend("css", {
|
|
10967
10967
|
// Sass comments don't need to be closed, only indented
|
|
10968
10968
|
comment: {
|
|
@@ -11055,7 +11055,7 @@ function bp(t) {
|
|
|
11055
11055
|
wp.displayName = "xml-doc";
|
|
11056
11056
|
wp.aliases = [];
|
|
11057
11057
|
function wp(t) {
|
|
11058
|
-
t.register(
|
|
11058
|
+
t.register(Ca), (function(e) {
|
|
11059
11059
|
function n(s, a) {
|
|
11060
11060
|
e.languages[s] && e.languages.insertBefore(s, "comment", {
|
|
11061
11061
|
"doc-comment": a
|
|
@@ -12072,13 +12072,13 @@ $t.registerLanguage("csharp", hp);
|
|
|
12072
12072
|
$t.registerLanguage("bash", dp);
|
|
12073
12073
|
$t.registerLanguage("typescript", fu);
|
|
12074
12074
|
$t.registerLanguage("tsx", yp);
|
|
12075
|
-
$t.registerLanguage("javascript",
|
|
12075
|
+
$t.registerLanguage("javascript", Na);
|
|
12076
12076
|
$t.registerLanguage("json", gp);
|
|
12077
12077
|
$t.registerLanguage("jsx", du);
|
|
12078
|
-
$t.registerLanguage("markup",
|
|
12078
|
+
$t.registerLanguage("markup", Ca);
|
|
12079
12079
|
$t.registerLanguage("sass", vp);
|
|
12080
12080
|
$t.registerLanguage("scss", mp);
|
|
12081
|
-
$t.registerLanguage("css",
|
|
12081
|
+
$t.registerLanguage("css", xa);
|
|
12082
12082
|
$t.registerLanguage("sql", fp);
|
|
12083
12083
|
$t.registerLanguage("vbnet", bp);
|
|
12084
12084
|
$t.registerLanguage("xmlDoc", wp);
|
|
@@ -12329,7 +12329,7 @@ function yr({
|
|
|
12329
12329
|
infoMessage: n = "",
|
|
12330
12330
|
showRequiredOnLabel: r = !1,
|
|
12331
12331
|
hideIconRight: i = !1,
|
|
12332
|
-
icon: o =
|
|
12332
|
+
icon: o = nu,
|
|
12333
12333
|
id: s,
|
|
12334
12334
|
label: a,
|
|
12335
12335
|
labelHidden: l = !1,
|
|
@@ -12682,7 +12682,7 @@ function Jr(t, e) {
|
|
|
12682
12682
|
let n = e - t + 1;
|
|
12683
12683
|
return Array.from({ length: n }, (r, i) => i + t);
|
|
12684
12684
|
}
|
|
12685
|
-
const
|
|
12685
|
+
const cl = "dots";
|
|
12686
12686
|
function AM({
|
|
12687
12687
|
total: t,
|
|
12688
12688
|
siblings: e = 1,
|
|
@@ -12719,17 +12719,17 @@ function AM({
|
|
|
12719
12719
|
let g = Math.max(a - e, n), v = Math.min(a + e, s - n), S = g > n + 2, k = v < s - (n + 1);
|
|
12720
12720
|
if (!S && k) {
|
|
12721
12721
|
let E = e * 2 + n + 2;
|
|
12722
|
-
return [...Jr(1, E),
|
|
12722
|
+
return [...Jr(1, E), cl, ...Jr(s - (n - 1), s)];
|
|
12723
12723
|
}
|
|
12724
12724
|
if (S && !k) {
|
|
12725
12725
|
let E = n + 1 + 2 * e;
|
|
12726
|
-
return [...Jr(1, n),
|
|
12726
|
+
return [...Jr(1, n), cl, ...Jr(s - E, s)];
|
|
12727
12727
|
}
|
|
12728
12728
|
return [
|
|
12729
12729
|
...Jr(1, n),
|
|
12730
|
-
|
|
12730
|
+
cl,
|
|
12731
12731
|
...Jr(g, v),
|
|
12732
|
-
|
|
12732
|
+
cl,
|
|
12733
12733
|
...Jr(s - n + 1, s)
|
|
12734
12734
|
];
|
|
12735
12735
|
}, [s, e, a, n]),
|
|
@@ -12763,15 +12763,15 @@ function Zs(t, e) {
|
|
|
12763
12763
|
const n = pu(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = Xn(t, e?.in), o = i.getDay(), s = (o < r ? 7 : 0) + o - r;
|
|
12764
12764
|
return i.setDate(i.getDate() - s), i.setHours(0, 0, 0, 0), i;
|
|
12765
12765
|
}
|
|
12766
|
-
function
|
|
12766
|
+
function rc(t, e) {
|
|
12767
12767
|
return Zs(t, { ...e, weekStartsOn: 1 });
|
|
12768
12768
|
}
|
|
12769
12769
|
function h2(t, e) {
|
|
12770
12770
|
const n = Xn(t, e?.in), r = n.getFullYear(), i = Ci(n, 0);
|
|
12771
12771
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
12772
|
-
const o =
|
|
12772
|
+
const o = rc(i), s = Ci(n, 0);
|
|
12773
12773
|
s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
|
|
12774
|
-
const a =
|
|
12774
|
+
const a = rc(s);
|
|
12775
12775
|
return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= a.getTime() ? r : r - 1;
|
|
12776
12776
|
}
|
|
12777
12777
|
function l0(t) {
|
|
@@ -12809,7 +12809,7 @@ function RM(t, e, n) {
|
|
|
12809
12809
|
}
|
|
12810
12810
|
function LM(t, e) {
|
|
12811
12811
|
const n = h2(t, e), r = Ci(t, 0);
|
|
12812
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
12812
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), rc(r);
|
|
12813
12813
|
}
|
|
12814
12814
|
function DM(t) {
|
|
12815
12815
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
@@ -13257,7 +13257,7 @@ function mI(t, e) {
|
|
|
13257
13257
|
return RM(n, BM(n)) + 1;
|
|
13258
13258
|
}
|
|
13259
13259
|
function gI(t, e) {
|
|
13260
|
-
const n = Xn(t, e?.in), r = +
|
|
13260
|
+
const n = Xn(t, e?.in), r = +rc(n) - +LM(n);
|
|
13261
13261
|
return Math.round(r / d2) + 1;
|
|
13262
13262
|
}
|
|
13263
13263
|
function m2(t, e) {
|
|
@@ -15274,18 +15274,47 @@ const jo = ({
|
|
|
15274
15274
|
dropUp: s = !1,
|
|
15275
15275
|
startOpen: a = !1,
|
|
15276
15276
|
className: l = "",
|
|
15277
|
-
keepOpenAfterClick: c = !1
|
|
15277
|
+
keepOpenAfterClick: c = !1,
|
|
15278
|
+
usePortal: u = !1
|
|
15278
15279
|
}) => {
|
|
15279
|
-
let [
|
|
15280
|
-
|
|
15281
|
-
let
|
|
15282
|
-
|
|
15283
|
-
|
|
15280
|
+
let [f, d] = v2(a), h = p4(() => !t && d(!1));
|
|
15281
|
+
const p = b.useRef(null), [m, g] = b.useState(null);
|
|
15282
|
+
let v = "dropdown";
|
|
15283
|
+
f && (v += " is-active"), i && (v += " is-disabled"), s && (v += " is-up"), o === "r" && (v += " is-right"), l !== "" && (v += " " + l);
|
|
15284
|
+
let S = b.useMemo(() => g4(r, f, i, t, d), [r, f, i, t, d]);
|
|
15285
|
+
const k = (C) => {
|
|
15286
|
+
!c && C && d(!1);
|
|
15284
15287
|
};
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15288
|
+
b.useEffect(() => {
|
|
15289
|
+
if (u && f && p.current) {
|
|
15290
|
+
const C = p.current.getBoundingClientRect(), x = window.pageYOffset || document.documentElement.scrollTop, N = window.pageXOffset || document.documentElement.scrollLeft;
|
|
15291
|
+
g({
|
|
15292
|
+
top: C.bottom + x,
|
|
15293
|
+
left: C.left + N,
|
|
15294
|
+
width: C.width
|
|
15295
|
+
});
|
|
15296
|
+
}
|
|
15297
|
+
}, [u, f]);
|
|
15298
|
+
let E = b.Children.map(n, (C) => !C || C === "" ? null : C.type === jo.Divider ? C : C.type === jo.Item ? b.cloneElement(C, { onItemClick: k }) : C.type === jo.Link ? b.cloneElement(C, { onItemClick: k }) : /* @__PURE__ */ y("div", { className: "dropdown-item", children: C }));
|
|
15299
|
+
const w = /* @__PURE__ */ y(
|
|
15300
|
+
"div",
|
|
15301
|
+
{
|
|
15302
|
+
className: "dropdown-menu",
|
|
15303
|
+
id: e,
|
|
15304
|
+
role: "menu",
|
|
15305
|
+
style: u && m ? {
|
|
15306
|
+
position: "absolute",
|
|
15307
|
+
top: `${m.top}px`,
|
|
15308
|
+
left: `${m.left}px`,
|
|
15309
|
+
minWidth: `${m.width}px`,
|
|
15310
|
+
zIndex: 9999
|
|
15311
|
+
} : void 0,
|
|
15312
|
+
children: /* @__PURE__ */ y("div", { className: "dropdown-content", children: E })
|
|
15313
|
+
}
|
|
15314
|
+
);
|
|
15315
|
+
return /* @__PURE__ */ R("div", { className: v, ref: h, onMouseEnter: () => t && d(!0), onMouseLeave: () => t && d(!1), children: [
|
|
15316
|
+
/* @__PURE__ */ y("div", { ref: p, children: S }),
|
|
15317
|
+
u && f ? ba.createPortal(w, document.body) : w
|
|
15289
15318
|
] });
|
|
15290
15319
|
};
|
|
15291
15320
|
jo.Divider = () => /* @__PURE__ */ y("hr", { className: "dropdown-divider" });
|
|
@@ -15295,17 +15324,21 @@ jo.Item = ({
|
|
|
15295
15324
|
onItemClick: n,
|
|
15296
15325
|
...r
|
|
15297
15326
|
}) => /* @__PURE__ */ y("div", { className: `dropdown-item ${e ? "is-clickable" : ""}`, onClick: (o) => {
|
|
15298
|
-
e?.(o), n?.(!!e);
|
|
15327
|
+
o.stopPropagation(), e?.(o), n?.(!!e);
|
|
15299
15328
|
}, ...r, children: t });
|
|
15300
15329
|
jo.Link = ({ children: t, onItemClick: e, ...n }) => /* @__PURE__ */ y("a", { className: "dropdown-item", ...n, onClick: (i) => {
|
|
15301
|
-
n.onClick?.(i), e?.(!0);
|
|
15330
|
+
i.stopPropagation(), n.onClick?.(i), e?.(!0);
|
|
15302
15331
|
}, children: t });
|
|
15303
15332
|
function g4(t, e, n, r, i) {
|
|
15304
15333
|
let o, s;
|
|
15305
|
-
|
|
15334
|
+
typeof t == "function" ? o = t(e, n) : o = t, typeof o == "string" ? s = /* @__PURE__ */ R(Wt, { children: [
|
|
15306
15335
|
/* @__PURE__ */ y(Rn, { icon: e ? lo : co }),
|
|
15307
15336
|
/* @__PURE__ */ y("span", { children: o })
|
|
15308
|
-
] }) : s = o
|
|
15337
|
+
] }) : s = o;
|
|
15338
|
+
function a(l) {
|
|
15339
|
+
l.stopPropagation(), !n && !r && i();
|
|
15340
|
+
}
|
|
15341
|
+
return /* @__PURE__ */ y("div", { className: "dropdown-trigger", onClick: a, children: s });
|
|
15309
15342
|
}
|
|
15310
15343
|
const Pn = ({ color: t = "i", className: e = "", children: n }) => {
|
|
15311
15344
|
let r = `help ${qt(t, !0)} ${e}`.trim();
|
|
@@ -15496,7 +15529,7 @@ function k4(t) {
|
|
|
15496
15529
|
});
|
|
15497
15530
|
};
|
|
15498
15531
|
}
|
|
15499
|
-
function
|
|
15532
|
+
function Aa(t, e = ["INPUT", "TEXTAREA", "SELECT"], n = !1) {
|
|
15500
15533
|
let r = b.useContext(as), i = b.useId();
|
|
15501
15534
|
b.useEffect(() => {
|
|
15502
15535
|
if (!r.registerHotkeys) {
|
|
@@ -15713,7 +15746,7 @@ function T4({ children: t }) {
|
|
|
15713
15746
|
}
|
|
15714
15747
|
return /* @__PURE__ */ y(po.Provider, { value: { push: n, pop: r, remove: i }, children: t });
|
|
15715
15748
|
}
|
|
15716
|
-
var
|
|
15749
|
+
var ul = { exports: {} }, Ke = {};
|
|
15717
15750
|
var S0;
|
|
15718
15751
|
function O4() {
|
|
15719
15752
|
if (S0) return Ke;
|
|
@@ -15845,7 +15878,7 @@ function M4() {
|
|
|
15845
15878
|
}
|
|
15846
15879
|
var k0;
|
|
15847
15880
|
function I4() {
|
|
15848
|
-
return k0 || (k0 = 1, process.env.NODE_ENV === "production" ?
|
|
15881
|
+
return k0 || (k0 = 1, process.env.NODE_ENV === "production" ? ul.exports = /* @__PURE__ */ O4() : ul.exports = /* @__PURE__ */ M4()), ul.exports;
|
|
15849
15882
|
}
|
|
15850
15883
|
var R4 = /* @__PURE__ */ I4();
|
|
15851
15884
|
function L4(t) {
|
|
@@ -15902,7 +15935,7 @@ const Ir = ({ id: t, z: e, size: n = void 0, width: r = void 0, height: i = void
|
|
|
15902
15935
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15903
15936
|
[d]
|
|
15904
15937
|
);
|
|
15905
|
-
return
|
|
15938
|
+
return Aa(C), /* @__PURE__ */ R("div", { className: "modal is-active", "data-testid": "modal", id: t, style: e ? { zIndex: e } : void 0, children: [
|
|
15906
15939
|
/* @__PURE__ */ y("div", { className: "modal-background", "data-testid": "modal-bg" }),
|
|
15907
15940
|
/* @__PURE__ */ y("div", { className: "modal-content modal-container bulma-box", style: { width: v, height: S }, children: w })
|
|
15908
15941
|
] });
|
|
@@ -15950,18 +15983,18 @@ wn.Warning = (t) => /* @__PURE__ */ y(wn, { ...t, color: "w" });
|
|
|
15950
15983
|
wn.Success = (t) => /* @__PURE__ */ y(wn, { ...t, color: "s" });
|
|
15951
15984
|
wn.Link = (t) => /* @__PURE__ */ y(wn, { ...t, color: "l" });
|
|
15952
15985
|
wn.Info = (t) => /* @__PURE__ */ y(wn, { ...t, color: "i" });
|
|
15953
|
-
const
|
|
15986
|
+
const Ta = ({ color: t = "i", className: e = "", children: n }) => {
|
|
15954
15987
|
let r = "panel";
|
|
15955
15988
|
return r += qt(t), e && (r += ` ${e}`), /* @__PURE__ */ y("div", { className: r, children: n });
|
|
15956
15989
|
};
|
|
15957
|
-
|
|
15990
|
+
Ta.Tabs = ({ tabs: t, activeTab: e, onTabChange: n, children: r }) => /* @__PURE__ */ R("div", { className: "panel-tabs", children: [
|
|
15958
15991
|
t?.map((i) => {
|
|
15959
15992
|
let o = typeof i == "string" ? i : i.label, s = typeof i == "string" ? i : i.value, a = typeof i == "string" ? !1 : i.disabled ?? !1, l = "panel-tab-item";
|
|
15960
15993
|
return e === s && (l += " is-active"), a ? l += " is-disabled" : l += " is-clickable", /* @__PURE__ */ y("span", { className: l, onClick: () => n && !a && n(s), children: o }, s);
|
|
15961
15994
|
}),
|
|
15962
15995
|
r
|
|
15963
15996
|
] });
|
|
15964
|
-
|
|
15997
|
+
Ta.TabItem = ({ active: t = !1, disabled: e = !1, onClick: n, children: r }) => {
|
|
15965
15998
|
let i = "panel-tab-item";
|
|
15966
15999
|
t && (i += " is-active"), e ? i += " is-disabled" : n && (i += " is-clickable");
|
|
15967
16000
|
function o() {
|
|
@@ -15969,8 +16002,8 @@ Aa.TabItem = ({ active: t = !1, disabled: e = !1, onClick: n, children: r }) =>
|
|
|
15969
16002
|
}
|
|
15970
16003
|
return /* @__PURE__ */ y("span", { className: i, onClick: o, children: r });
|
|
15971
16004
|
};
|
|
15972
|
-
|
|
15973
|
-
|
|
16005
|
+
Ta.Header = ({ children: t }) => /* @__PURE__ */ y("div", { className: "panel-heading", children: t });
|
|
16006
|
+
Ta.Item = ({ icon: t, active: e = !1, disabled: n = !1, children: r, onClick: i }) => {
|
|
15974
16007
|
let o = "panel-block";
|
|
15975
16008
|
e && (o += " is-active"), n ? o += " is-disabled" : i && (o += " is-clickable");
|
|
15976
16009
|
function s(a) {
|
|
@@ -15981,7 +16014,7 @@ Aa.Item = ({ icon: t, active: e = !1, disabled: n = !1, children: r, onClick: i
|
|
|
15981
16014
|
r
|
|
15982
16015
|
] });
|
|
15983
16016
|
};
|
|
15984
|
-
|
|
16017
|
+
Ta.Input = P4;
|
|
15985
16018
|
function P4({ icon: t, id: e, infoData: n, helpTag: r, name: i, onBlur: o, onFocus: s, ...a }) {
|
|
15986
16019
|
let [l, c] = b.useState(!1), [u, f] = b.useState(!1), d = b.useRef(null);
|
|
15987
16020
|
b.useEffect(() => () => {
|
|
@@ -16142,7 +16175,7 @@ function F4({
|
|
|
16142
16175
|
}
|
|
16143
16176
|
const x2 = ({ id: t, type: e = "lined", activeTab: n, initialTab: r, size: i, alignment: o, fullwidth: s, children: a, onTabChange: l }) => {
|
|
16144
16177
|
let { defaults: c } = b.useContext(Ze), u = i ?? c.tabs.size, [f, d] = b.useState(n ?? r), h = "tabs";
|
|
16145
|
-
e === "lined" ? h += " is-lined" : e === "toggle" ? h += " is-toggle" : e === "pill" ? h += " is-toggle is-toggle-rounded" : h += " is-boxed", h += tt(u), h +=
|
|
16178
|
+
e === "lined" ? h += " is-lined" : e === "toggle" ? h += " is-toggle" : e === "pill" ? h += " is-toggle is-toggle-rounded" : h += " is-boxed", h += tt(u), h += Ea(o ?? "l"), h += s ? " is-fullwidth" : "";
|
|
16146
16179
|
let p = b.Children.map(a, (g, v) => !g || g === "" ? null : g?.type === x2.Item ? /* @__PURE__ */ y(z4, { ...g.props, isActive: f === g.props.tabId, onClick: m }) : null)?.filter((g) => g !== null).filter((g) => g !== void 0);
|
|
16147
16180
|
function m(g, v) {
|
|
16148
16181
|
v || (d(g), l(g));
|
|
@@ -16161,7 +16194,7 @@ function z4({ children: t, tabId: e, title: n, disabled: r = !1, isActive: i = !
|
|
|
16161
16194
|
return /* @__PURE__ */ y("li", { role: "tab", className: s, onClick: l, children: /* @__PURE__ */ y("span", { title: n, id: e?.toString() || void 0, className: "tab", children: a }) });
|
|
16162
16195
|
}
|
|
16163
16196
|
x2.Item = (t) => /* @__PURE__ */ y("div", {});
|
|
16164
|
-
function
|
|
16197
|
+
function ic({ children: t, color: e = "l", size: n, light: r = !1, dark: i = !1, title: o, onDismiss: s }) {
|
|
16165
16198
|
let a = {}, { defaults: l } = b.useContext(Ze), c = n ?? l.tags.size, u = "tag is-rounded";
|
|
16166
16199
|
u += qb(c, !0), tv(e) ? d(e) : u += qt(e), r && i ? u += "is-light-and-dark" : r ? u += " is-light" : i && (u += " is-dark");
|
|
16167
16200
|
let f = null;
|
|
@@ -16191,15 +16224,15 @@ function H4({
|
|
|
16191
16224
|
id: a = void 0
|
|
16192
16225
|
}) {
|
|
16193
16226
|
let { defaults: l } = b.useContext(Ze), c = n ?? l.tags.size, u = "tags";
|
|
16194
|
-
u += qb(c, !1), u +=
|
|
16195
|
-
let f = b.Children.map(t, (d) => d && d.type ===
|
|
16227
|
+
u += qb(c, !1), u += Ea(r), e && (u += " has-addons"), u = `${u} ${i}`.trim();
|
|
16228
|
+
let f = b.Children.map(t, (d) => d && d.type === ic && !d.props.size ? /* @__PURE__ */ y(ic, { size: c, ...d.props }) : d);
|
|
16196
16229
|
return /* @__PURE__ */ y("div", { className: u, style: o, ref: s, id: a, children: f });
|
|
16197
16230
|
}
|
|
16198
16231
|
const N2 = ({ id: t, alignment: e = "l", children: n, className: r }) => {
|
|
16199
16232
|
let i = "timeline";
|
|
16200
16233
|
return e === "l" ? i += " is-ltr" : e === "c" ? i += " is-centered" : e === "r" && (i += " is-rtl"), i = `${i} ${r}`.trim(), /* @__PURE__ */ y("div", { className: i, id: t, children: n });
|
|
16201
16234
|
};
|
|
16202
|
-
N2.Point = ({ children: t, color: e = "l", size: n, title: r, onClick: i }) => /* @__PURE__ */ y("div", { className: "timeline-header", onClick: i, children: /* @__PURE__ */ y(
|
|
16235
|
+
N2.Point = ({ children: t, color: e = "l", size: n, title: r, onClick: i }) => /* @__PURE__ */ y("div", { className: "timeline-header", onClick: i, children: /* @__PURE__ */ y(ic, { color: e, size: n, title: r, children: t }) });
|
|
16203
16236
|
N2.Item = ({ marker: t, heading: e, children: n, title: r, onClick: i }) => {
|
|
16204
16237
|
let o = "timeline-marker";
|
|
16205
16238
|
return o += qt(t?.color ?? "light"), t?.icon && (o += " is-icon"), /* @__PURE__ */ R("div", { className: "timeline-item", title: r, onClick: () => i && i(e), children: [
|
|
@@ -16387,7 +16420,7 @@ function kp(t, e, n) {
|
|
|
16387
16420
|
const Uo = ({ children: t, id: e, itemRef: n, color: r, alignment: i = "r", tag: o, onDismiss: s = () => {
|
|
16388
16421
|
}, onOpened: a }) => {
|
|
16389
16422
|
let { modifiers: l } = b.useContext(as);
|
|
16390
|
-
|
|
16423
|
+
Aa([["escape", () => s()]]);
|
|
16391
16424
|
let u = "quickview is-active";
|
|
16392
16425
|
i === "l" ? u += " is-left" : i === "r" && (u += " is-right");
|
|
16393
16426
|
let f = null, d = null, h = null;
|
|
@@ -16440,7 +16473,7 @@ const Ye = ({
|
|
|
16440
16473
|
onToggle: a
|
|
16441
16474
|
}) => {
|
|
16442
16475
|
let { defaults: l } = b.useContext(Ze), c = t ?? l.button.size, u = "tabs is-toggle";
|
|
16443
|
-
u += tt(c), u +=
|
|
16476
|
+
u += tt(c), u += Ea(n), e && (u += " is-toggle-rounded"), s && (u += " " + s);
|
|
16444
16477
|
let [f, d] = b.useState(r ?? i), h = b.useId(), p = b.Children.map(o, (g, v) => {
|
|
16445
16478
|
let S = g.props?.identifier ?? b.Children.map(g.props.children, (k) => typeof k == "string" ? k : typeof k.type == "string" ? k.type : h)?.join("") ?? "" + v;
|
|
16446
16479
|
return g.type === I2 ? /* @__PURE__ */ y(V4, { ...g.props, toggled: f == S, identifier: S, onToggleClick: m }) : g.type === R2 ? /* @__PURE__ */ y(K4, { ...g.props, identifier: S }) : g;
|
|
@@ -16547,7 +16580,7 @@ function G4({ children: t, hasAddons: e = !1, alignment: n = "l", className: r =
|
|
|
16547
16580
|
return /* @__PURE__ */ y("div", { className: i, children: b.Children.map(t, (o) => /* @__PURE__ */ y("div", { className: "control", children: o })) });
|
|
16548
16581
|
}
|
|
16549
16582
|
function q4({ children: t, alignment: e = "l", className: n = "" }) {
|
|
16550
|
-
let r = `evenly-sized-buttons ${
|
|
16583
|
+
let r = `evenly-sized-buttons ${Ea(e, !0)} ${n}`.trim(), i = b.useMemo(
|
|
16551
16584
|
() => b.Children.map(t, (s) => {
|
|
16552
16585
|
if (b.isValidElement(s)) {
|
|
16553
16586
|
let a = s.props;
|
|
@@ -16596,7 +16629,7 @@ function jd({ event: t, options: e, onClick: n, desc: r }) {
|
|
|
16596
16629
|
style: l,
|
|
16597
16630
|
onMouseEnter: () => o(!0),
|
|
16598
16631
|
onMouseLeave: () => o(!1),
|
|
16599
|
-
children: /* @__PURE__ */ y(
|
|
16632
|
+
children: /* @__PURE__ */ y(Sa, { placement: "rt", content: t.tooltip ? /* @__PURE__ */ y("span", { style: { maxWidth: "300px" }, children: t.tooltip }) : void 0, hideArrow: !0, children: /* @__PURE__ */ y("span", { children: r(t, i) }) })
|
|
16600
16633
|
}
|
|
16601
16634
|
);
|
|
16602
16635
|
}
|
|
@@ -16613,7 +16646,7 @@ function Qs({ event: t, onClick: e, desc: n }) {
|
|
|
16613
16646
|
onMouseEnter: () => i(!0),
|
|
16614
16647
|
onMouseLeave: () => i(!1),
|
|
16615
16648
|
children: /* @__PURE__ */ y(
|
|
16616
|
-
|
|
16649
|
+
Sa,
|
|
16617
16650
|
{
|
|
16618
16651
|
style: { display: "inline-block" },
|
|
16619
16652
|
placement: "rt",
|
|
@@ -17007,7 +17040,7 @@ function cR({ events: t, hour: e, date: n, onEventClick: r, onCellClick: i, opti
|
|
|
17007
17040
|
event: c,
|
|
17008
17041
|
lastVisibleHour: s ?? 23,
|
|
17009
17042
|
eventIndex: u,
|
|
17010
|
-
desc: (f) => /* @__PURE__ */ y(b.Fragment, { children: /* @__PURE__ */ R(
|
|
17043
|
+
desc: (f) => /* @__PURE__ */ y(b.Fragment, { children: /* @__PURE__ */ R(Sa, { content: f.tooltip ? /* @__PURE__ */ y("div", { style: { maxWidth: "300px" }, children: f.tooltip }) : void 0, placement: "rt", hideArrow: !0, children: [
|
|
17011
17044
|
/* @__PURE__ */ y("p", { children: /* @__PURE__ */ R("b", { children: [
|
|
17012
17045
|
f._startDateTime.timeHM,
|
|
17013
17046
|
" - ",
|
|
@@ -17198,7 +17231,7 @@ function pR({ viewDate: t = re.now(), options: e, onDateSelected: n, onJSDateTim
|
|
|
17198
17231
|
let h = typeof d == "string" ? "mini-calendar-row" : "mini-calendar-slot";
|
|
17199
17232
|
typeof d != "string" && d.hasSame(i, "day") && (h += " is-today"), typeof d != "string" && !d.hasSame(o, "month") && (h += " is-other-month");
|
|
17200
17233
|
const p = typeof d == "string" ? d : d.toFormat(c.dayFormat), m = typeof d == "string" ? "" : d.toFormat(c.dateFormat);
|
|
17201
|
-
return /* @__PURE__ */ y("div", { className: h, onClick: () => l(d), children: /* @__PURE__ */ y(
|
|
17234
|
+
return /* @__PURE__ */ y("div", { className: h, onClick: () => l(d), children: /* @__PURE__ */ y(Sa, { content: m, delay: [1, 0.2], children: p }) }, d.valueOf());
|
|
17202
17235
|
})
|
|
17203
17236
|
] })
|
|
17204
17237
|
] });
|
|
@@ -17368,7 +17401,7 @@ function yR(t, e, n) {
|
|
|
17368
17401
|
}
|
|
17369
17402
|
}, [t, n, e]);
|
|
17370
17403
|
}
|
|
17371
|
-
const x0 = 200,
|
|
17404
|
+
const x0 = 200, fl = Object.freeze({
|
|
17372
17405
|
UP_ARROW: 38,
|
|
17373
17406
|
DOWN_ARROW: 40,
|
|
17374
17407
|
ENTER_KEY: 13,
|
|
@@ -17477,25 +17510,25 @@ function Z9({
|
|
|
17477
17510
|
function En(de) {
|
|
17478
17511
|
let Ce = Le.current, $e = z.focusIndex;
|
|
17479
17512
|
switch (de.keyCode) {
|
|
17480
|
-
case
|
|
17513
|
+
case fl.DOWN_ARROW: {
|
|
17481
17514
|
de.preventDefault(), z.focused ? z.focusIndex >= e.length - 1 ? ($e = 0, Ce.scrollTop = 0) : $e = z.focusIndex + 1 : F({ type: "toggleFocus", isFocused: !0 }), F({
|
|
17482
17515
|
type: "setFocusIndex",
|
|
17483
17516
|
focusIndex: $e
|
|
17484
17517
|
}), Le.current = Ce;
|
|
17485
17518
|
break;
|
|
17486
17519
|
}
|
|
17487
|
-
case
|
|
17520
|
+
case fl.UP_ARROW: {
|
|
17488
17521
|
de.preventDefault(), z.focused ? z.focusIndex <= 0 ? ($e = e.length - 1, Ce && (Ce.scrollTop = Ce.scrollHeight)) : $e = z.focusIndex - 1 : F({ type: "toggleFocus", isFocused: !0 }), F({
|
|
17489
17522
|
type: "setFocusIndex",
|
|
17490
17523
|
focusIndex: $e
|
|
17491
17524
|
}), Le.current = Ce;
|
|
17492
17525
|
break;
|
|
17493
17526
|
}
|
|
17494
|
-
case
|
|
17527
|
+
case fl.ENTER_KEY: {
|
|
17495
17528
|
de.preventDefault(), z.focusIndex > -1 && z.focusIndex < e.length && dn();
|
|
17496
17529
|
break;
|
|
17497
17530
|
}
|
|
17498
|
-
case
|
|
17531
|
+
case fl.ESCAPE_KEY: {
|
|
17499
17532
|
de.target.blur(), F({ type: "toggleFocus", isFocused: !1 });
|
|
17500
17533
|
break;
|
|
17501
17534
|
}
|
|
@@ -17984,7 +18017,7 @@ function tz({
|
|
|
17984
18017
|
errorMessage: c = "",
|
|
17985
18018
|
infoMessage: u = "",
|
|
17986
18019
|
showRequiredOnLabel: f = !1,
|
|
17987
|
-
icon: d =
|
|
18020
|
+
icon: d = nu,
|
|
17988
18021
|
labelHidden: h = !1,
|
|
17989
18022
|
required: p = !1,
|
|
17990
18023
|
loading: m = !1,
|
|
@@ -18114,7 +18147,7 @@ function tz({
|
|
|
18114
18147
|
}
|
|
18115
18148
|
),
|
|
18116
18149
|
U.length > 0 && /* @__PURE__ */ y(H4, { className: "input-tags", alignment: ve, children: U.map((me, Fe) => /* @__PURE__ */ y(
|
|
18117
|
-
|
|
18150
|
+
ic,
|
|
18118
18151
|
{
|
|
18119
18152
|
size: "s",
|
|
18120
18153
|
light: r,
|
|
@@ -18270,7 +18303,7 @@ function oz({
|
|
|
18270
18303
|
}
|
|
18271
18304
|
);
|
|
18272
18305
|
}
|
|
18273
|
-
var
|
|
18306
|
+
var dl = { exports: {} }, vf = {};
|
|
18274
18307
|
var A0;
|
|
18275
18308
|
function ER() {
|
|
18276
18309
|
if (A0) return vf;
|
|
@@ -18368,7 +18401,7 @@ function kR() {
|
|
|
18368
18401
|
}
|
|
18369
18402
|
var O0;
|
|
18370
18403
|
function Cp() {
|
|
18371
|
-
return O0 || (O0 = 1, process.env.NODE_ENV === "production" ?
|
|
18404
|
+
return O0 || (O0 = 1, process.env.NODE_ENV === "production" ? dl.exports = ER() : dl.exports = kR()), dl.exports;
|
|
18372
18405
|
}
|
|
18373
18406
|
var z2 = Cp();
|
|
18374
18407
|
function Mt(t) {
|
|
@@ -18700,15 +18733,15 @@ class H {
|
|
|
18700
18733
|
*/
|
|
18701
18734
|
findIndex(e) {
|
|
18702
18735
|
if (e == 0)
|
|
18703
|
-
return
|
|
18736
|
+
return hl(0, e);
|
|
18704
18737
|
if (e == this.size)
|
|
18705
|
-
return
|
|
18738
|
+
return hl(this.content.length, e);
|
|
18706
18739
|
if (e > this.size || e < 0)
|
|
18707
18740
|
throw new RangeError(`Position ${e} outside of fragment (${this})`);
|
|
18708
18741
|
for (let n = 0, r = 0; ; n++) {
|
|
18709
18742
|
let i = this.child(n), o = r + i.nodeSize;
|
|
18710
18743
|
if (o >= e)
|
|
18711
|
-
return o == e ?
|
|
18744
|
+
return o == e ? hl(n + 1, o) : hl(n, r);
|
|
18712
18745
|
r = o;
|
|
18713
18746
|
}
|
|
18714
18747
|
}
|
|
@@ -18774,10 +18807,10 @@ class H {
|
|
|
18774
18807
|
}
|
|
18775
18808
|
H.empty = new H([], 0);
|
|
18776
18809
|
const wf = { index: 0, offset: 0 };
|
|
18777
|
-
function
|
|
18810
|
+
function hl(t, e) {
|
|
18778
18811
|
return wf.index = t, wf.offset = e, wf;
|
|
18779
18812
|
}
|
|
18780
|
-
function
|
|
18813
|
+
function oc(t, e) {
|
|
18781
18814
|
if (t === e)
|
|
18782
18815
|
return !0;
|
|
18783
18816
|
if (!(t && typeof t == "object") || !(e && typeof e == "object"))
|
|
@@ -18789,11 +18822,11 @@ function ic(t, e) {
|
|
|
18789
18822
|
if (t.length != e.length)
|
|
18790
18823
|
return !1;
|
|
18791
18824
|
for (let r = 0; r < t.length; r++)
|
|
18792
|
-
if (!
|
|
18825
|
+
if (!oc(t[r], e[r]))
|
|
18793
18826
|
return !1;
|
|
18794
18827
|
} else {
|
|
18795
18828
|
for (let r in t)
|
|
18796
|
-
if (!(r in e) || !
|
|
18829
|
+
if (!(r in e) || !oc(t[r], e[r]))
|
|
18797
18830
|
return !1;
|
|
18798
18831
|
for (let r in e)
|
|
18799
18832
|
if (!(r in t))
|
|
@@ -18855,7 +18888,7 @@ let Xe = class Wd {
|
|
|
18855
18888
|
another mark.
|
|
18856
18889
|
*/
|
|
18857
18890
|
eq(e) {
|
|
18858
|
-
return this == e || this.type == e.type &&
|
|
18891
|
+
return this == e || this.type == e.type && oc(this.attrs, e.attrs);
|
|
18859
18892
|
}
|
|
18860
18893
|
/**
|
|
18861
18894
|
Convert this mark to a JSON-serializeable representation.
|
|
@@ -18907,7 +18940,7 @@ let Xe = class Wd {
|
|
|
18907
18940
|
}
|
|
18908
18941
|
};
|
|
18909
18942
|
Xe.none = [];
|
|
18910
|
-
class
|
|
18943
|
+
class sc extends Error {
|
|
18911
18944
|
}
|
|
18912
18945
|
class X {
|
|
18913
18946
|
/**
|
|
@@ -19010,9 +19043,9 @@ function W2(t, e, n, r) {
|
|
|
19010
19043
|
}
|
|
19011
19044
|
function CR(t, e, n) {
|
|
19012
19045
|
if (n.openStart > t.depth)
|
|
19013
|
-
throw new
|
|
19046
|
+
throw new sc("Inserted content deeper than insertion position");
|
|
19014
19047
|
if (t.depth - n.openStart != e.depth - n.openEnd)
|
|
19015
|
-
throw new
|
|
19048
|
+
throw new sc("Inconsistent open depths");
|
|
19016
19049
|
return V2(t, e, n, 0);
|
|
19017
19050
|
}
|
|
19018
19051
|
function V2(t, e, n, r) {
|
|
@@ -19028,11 +19061,11 @@ function V2(t, e, n, r) {
|
|
|
19028
19061
|
let { start: s, end: a } = xR(n, t);
|
|
19029
19062
|
return Xi(o, G2(t, s, a, e, r));
|
|
19030
19063
|
}
|
|
19031
|
-
else return Xi(o,
|
|
19064
|
+
else return Xi(o, ac(t, e, r));
|
|
19032
19065
|
}
|
|
19033
19066
|
function K2(t, e) {
|
|
19034
19067
|
if (!e.type.compatibleContent(t.type))
|
|
19035
|
-
throw new
|
|
19068
|
+
throw new sc("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
19036
19069
|
}
|
|
19037
19070
|
function Vd(t, e, n) {
|
|
19038
19071
|
let r = t.node(n);
|
|
@@ -19054,13 +19087,13 @@ function Xi(t, e) {
|
|
|
19054
19087
|
}
|
|
19055
19088
|
function G2(t, e, n, r, i) {
|
|
19056
19089
|
let o = t.depth > i && Vd(t, e, i + 1), s = r.depth > i && Vd(n, r, i + 1), a = [];
|
|
19057
|
-
return Ps(null, t, i, a), o && s && e.index(i) == n.index(i) ? (K2(o, s), Yi(Xi(o, G2(t, e, n, r, i + 1)), a)) : (o && Yi(Xi(o,
|
|
19090
|
+
return Ps(null, t, i, a), o && s && e.index(i) == n.index(i) ? (K2(o, s), Yi(Xi(o, G2(t, e, n, r, i + 1)), a)) : (o && Yi(Xi(o, ac(t, e, i + 1)), a), Ps(e, n, i, a), s && Yi(Xi(s, ac(n, r, i + 1)), a)), Ps(r, null, i, a), new H(a);
|
|
19058
19091
|
}
|
|
19059
|
-
function
|
|
19092
|
+
function ac(t, e, n) {
|
|
19060
19093
|
let r = [];
|
|
19061
19094
|
if (Ps(null, t, n, r), t.depth > n) {
|
|
19062
19095
|
let i = Vd(t, e, n + 1);
|
|
19063
|
-
Yi(Xi(i,
|
|
19096
|
+
Yi(Xi(i, ac(t, e, n + 1)), r);
|
|
19064
19097
|
}
|
|
19065
19098
|
return Ps(e, null, n, r), new H(r);
|
|
19066
19099
|
}
|
|
@@ -19258,7 +19291,7 @@ class ta {
|
|
|
19258
19291
|
return e.blockRange(this);
|
|
19259
19292
|
for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
|
|
19260
19293
|
if (e.pos <= this.end(r) && (!n || n(this.node(r))))
|
|
19261
|
-
return new
|
|
19294
|
+
return new lc(this, e, r);
|
|
19262
19295
|
return null;
|
|
19263
19296
|
}
|
|
19264
19297
|
/**
|
|
@@ -19326,7 +19359,7 @@ class NR {
|
|
|
19326
19359
|
}
|
|
19327
19360
|
}
|
|
19328
19361
|
const AR = 12, M0 = /* @__PURE__ */ new WeakMap();
|
|
19329
|
-
class
|
|
19362
|
+
class lc {
|
|
19330
19363
|
/**
|
|
19331
19364
|
Construct a node range. `$from` and `$to` should point into the
|
|
19332
19365
|
same node until at least the given `depth`, since a node range
|
|
@@ -19485,7 +19518,7 @@ let hi = class Kd {
|
|
|
19485
19518
|
attributes, and marks.
|
|
19486
19519
|
*/
|
|
19487
19520
|
hasMarkup(e, n, r) {
|
|
19488
|
-
return this.type == e &&
|
|
19521
|
+
return this.type == e && oc(this.attrs, n || e.defaultAttrs || TR) && Xe.sameSet(this.marks, r || Xe.none);
|
|
19489
19522
|
}
|
|
19490
19523
|
/**
|
|
19491
19524
|
Create a new node with the same markup as this node, containing
|
|
@@ -19737,7 +19770,7 @@ let hi = class Kd {
|
|
|
19737
19770
|
}
|
|
19738
19771
|
};
|
|
19739
19772
|
hi.prototype.text = void 0;
|
|
19740
|
-
class
|
|
19773
|
+
class cc extends hi {
|
|
19741
19774
|
/**
|
|
19742
19775
|
@internal
|
|
19743
19776
|
*/
|
|
@@ -19759,10 +19792,10 @@ class lc extends hi {
|
|
|
19759
19792
|
return this.text.length;
|
|
19760
19793
|
}
|
|
19761
19794
|
mark(e) {
|
|
19762
|
-
return e == this.marks ? this : new
|
|
19795
|
+
return e == this.marks ? this : new cc(this.type, this.attrs, this.text, e);
|
|
19763
19796
|
}
|
|
19764
19797
|
withText(e) {
|
|
19765
|
-
return e == this.text ? this : new
|
|
19798
|
+
return e == this.text ? this : new cc(this.type, this.attrs, e, this.marks);
|
|
19766
19799
|
}
|
|
19767
19800
|
cut(e = 0, n = this.text.length) {
|
|
19768
19801
|
return e == 0 && n == this.text.length ? this : this.withText(this.text.slice(e, n));
|
|
@@ -20465,7 +20498,7 @@ class nw {
|
|
|
20465
20498
|
*/
|
|
20466
20499
|
text(e, n) {
|
|
20467
20500
|
let r = this.nodes.text;
|
|
20468
|
-
return new
|
|
20501
|
+
return new cc(r, r.defaultAttrs, e, Xe.setFrom(n));
|
|
20469
20502
|
}
|
|
20470
20503
|
/**
|
|
20471
20504
|
Create a mark with the given type and attributes.
|
|
@@ -20664,7 +20697,7 @@ const rw = {
|
|
|
20664
20697
|
function P0(t, e, n) {
|
|
20665
20698
|
return e != null ? (e ? na : 0) | (e === "full" ? Gd : 0) : t && t.whitespace == "pre" ? na | Gd : n & ~Bs;
|
|
20666
20699
|
}
|
|
20667
|
-
class
|
|
20700
|
+
class pl {
|
|
20668
20701
|
constructor(e, n, r, i, o, s) {
|
|
20669
20702
|
this.type = e, this.attrs = n, this.marks = r, this.solid = i, this.options = s, this.content = [], this.activeMarks = Xe.none, this.match = o || (s & Bs ? null : e.contentMatch);
|
|
20670
20703
|
}
|
|
@@ -20701,7 +20734,7 @@ class B0 {
|
|
|
20701
20734
|
constructor(e, n, r) {
|
|
20702
20735
|
this.parser = e, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
|
|
20703
20736
|
let i = n.topNode, o, s = P0(null, n.preserveWhitespace, 0) | (r ? Bs : 0);
|
|
20704
|
-
i ? o = new
|
|
20737
|
+
i ? o = new pl(i.type, i.attrs, Xe.none, !0, n.topMatch || i.type.contentMatch, s) : r ? o = new pl(null, null, Xe.none, !0, null, s) : o = new pl(e.schema.topNodeType, null, Xe.none, !0, null, s), this.nodes = [o], this.find = n.findPositions, this.needsBlock = !1;
|
|
20705
20738
|
}
|
|
20706
20739
|
get top() {
|
|
20707
20740
|
return this.nodes[this.open];
|
|
@@ -20877,7 +20910,7 @@ class B0 {
|
|
|
20877
20910
|
let a = P0(e, o, s.options);
|
|
20878
20911
|
s.options & Bs && s.content.length == 0 && (a |= Bs);
|
|
20879
20912
|
let l = Xe.none;
|
|
20880
|
-
return r = r.filter((c) => (s.type ? s.type.allowsMarkType(c.type) : _0(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new
|
|
20913
|
+
return r = r.filter((c) => (s.type ? s.type.allowsMarkType(c.type) : _0(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new pl(e, n, l, i, null, a)), this.open++, r;
|
|
20881
20914
|
}
|
|
20882
20915
|
// Make sure all nodes above this.open are finished and added to
|
|
20883
20916
|
// their parents
|
|
@@ -21053,7 +21086,7 @@ class mo {
|
|
|
21053
21086
|
@internal
|
|
21054
21087
|
*/
|
|
21055
21088
|
serializeNodeInner(e, n) {
|
|
21056
|
-
let { dom: r, contentDOM: i } =
|
|
21089
|
+
let { dom: r, contentDOM: i } = Fl(Sf(n), this.nodes[e.type.name](e), null, e.attrs);
|
|
21057
21090
|
if (i) {
|
|
21058
21091
|
if (e.isLeaf)
|
|
21059
21092
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -21081,10 +21114,10 @@ class mo {
|
|
|
21081
21114
|
*/
|
|
21082
21115
|
serializeMark(e, n, r = {}) {
|
|
21083
21116
|
let i = this.marks[e.type.name];
|
|
21084
|
-
return i &&
|
|
21117
|
+
return i && Fl(Sf(r), i(e, n), null, e.attrs);
|
|
21085
21118
|
}
|
|
21086
21119
|
static renderSpec(e, n, r = null, i) {
|
|
21087
|
-
return
|
|
21120
|
+
return Fl(e, n, r, i);
|
|
21088
21121
|
}
|
|
21089
21122
|
/**
|
|
21090
21123
|
Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
|
|
@@ -21140,7 +21173,7 @@ function KR(t) {
|
|
|
21140
21173
|
}
|
|
21141
21174
|
return n(t), e;
|
|
21142
21175
|
}
|
|
21143
|
-
function
|
|
21176
|
+
function Fl(t, e, n, r) {
|
|
21144
21177
|
if (typeof e == "string")
|
|
21145
21178
|
return { dom: t.createTextNode(e) };
|
|
21146
21179
|
if (e.nodeType != null)
|
|
@@ -21170,7 +21203,7 @@ function _l(t, e, n, r) {
|
|
|
21170
21203
|
throw new RangeError("Content hole must be the only child of its parent node");
|
|
21171
21204
|
return { dom: l, contentDOM: l };
|
|
21172
21205
|
} else {
|
|
21173
|
-
let { dom: h, contentDOM: p } =
|
|
21206
|
+
let { dom: h, contentDOM: p } = Fl(t, d, n, r);
|
|
21174
21207
|
if (l.appendChild(h), p) {
|
|
21175
21208
|
if (a)
|
|
21176
21209
|
throw new RangeError("Multiple content holes");
|
|
@@ -21190,7 +21223,7 @@ function H0(t) {
|
|
|
21190
21223
|
function qR(t) {
|
|
21191
21224
|
return (t - (t & ow)) / sw;
|
|
21192
21225
|
}
|
|
21193
|
-
const aw = 1, lw = 2,
|
|
21226
|
+
const aw = 1, lw = 2, zl = 4, cw = 8;
|
|
21194
21227
|
class qd {
|
|
21195
21228
|
/**
|
|
21196
21229
|
@internal
|
|
@@ -21210,13 +21243,13 @@ class qd {
|
|
|
21210
21243
|
Tells you whether the token before the mapped position was deleted.
|
|
21211
21244
|
*/
|
|
21212
21245
|
get deletedBefore() {
|
|
21213
|
-
return (this.delInfo & (aw |
|
|
21246
|
+
return (this.delInfo & (aw | zl)) > 0;
|
|
21214
21247
|
}
|
|
21215
21248
|
/**
|
|
21216
21249
|
True when the token after the mapped position was deleted.
|
|
21217
21250
|
*/
|
|
21218
21251
|
get deletedAfter() {
|
|
21219
|
-
return (this.delInfo & (lw |
|
|
21252
|
+
return (this.delInfo & (lw | zl)) > 0;
|
|
21220
21253
|
}
|
|
21221
21254
|
/**
|
|
21222
21255
|
Tells whether any of the steps mapped through deletes across the
|
|
@@ -21224,7 +21257,7 @@ class qd {
|
|
|
21224
21257
|
position).
|
|
21225
21258
|
*/
|
|
21226
21259
|
get deletedAcross() {
|
|
21227
|
-
return (this.delInfo &
|
|
21260
|
+
return (this.delInfo & zl) > 0;
|
|
21228
21261
|
}
|
|
21229
21262
|
}
|
|
21230
21263
|
class mn {
|
|
@@ -21267,7 +21300,7 @@ class mn {
|
|
|
21267
21300
|
let d = c ? e == l ? -1 : e == f ? 1 : n : n, h = l + i + (d < 0 ? 0 : u);
|
|
21268
21301
|
if (r)
|
|
21269
21302
|
return h;
|
|
21270
|
-
let p = e == (n < 0 ? l : f) ? null : GR(a / 3, e - l), m = e == l ? lw : e == f ? aw :
|
|
21303
|
+
let p = e == (n < 0 ? l : f) ? null : GR(a / 3, e - l), m = e == l ? lw : e == f ? aw : zl;
|
|
21271
21304
|
return (n < 0 ? e != l : e != f) && (m |= cw), new qd(h, m, p);
|
|
21272
21305
|
}
|
|
21273
21306
|
i += u - c;
|
|
@@ -21501,7 +21534,7 @@ class bt {
|
|
|
21501
21534
|
try {
|
|
21502
21535
|
return bt.ok(e.replace(n, r, i));
|
|
21503
21536
|
} catch (o) {
|
|
21504
|
-
if (o instanceof
|
|
21537
|
+
if (o instanceof sc)
|
|
21505
21538
|
return bt.fail(o.message);
|
|
21506
21539
|
throw o;
|
|
21507
21540
|
}
|
|
@@ -23068,7 +23101,7 @@ function V0(t, e, n) {
|
|
|
23068
23101
|
s == null && (s = u);
|
|
23069
23102
|
}), t.setSelection(be.near(t.doc.resolve(s), n));
|
|
23070
23103
|
}
|
|
23071
|
-
const K0 = 1,
|
|
23104
|
+
const K0 = 1, ml = 2, G0 = 4;
|
|
23072
23105
|
class gL extends Tp {
|
|
23073
23106
|
/**
|
|
23074
23107
|
@internal
|
|
@@ -23092,7 +23125,7 @@ class gL extends Tp {
|
|
|
23092
23125
|
setSelection(e) {
|
|
23093
23126
|
if (e.$from.doc != this.doc)
|
|
23094
23127
|
throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
23095
|
-
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | K0) & ~
|
|
23128
|
+
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | K0) & ~ml, this.storedMarks = null, this;
|
|
23096
23129
|
}
|
|
23097
23130
|
/**
|
|
23098
23131
|
Whether the selection was explicitly updated by this transaction.
|
|
@@ -23104,7 +23137,7 @@ class gL extends Tp {
|
|
|
23104
23137
|
Set the current stored marks.
|
|
23105
23138
|
*/
|
|
23106
23139
|
setStoredMarks(e) {
|
|
23107
|
-
return this.storedMarks = e, this.updated |=
|
|
23140
|
+
return this.storedMarks = e, this.updated |= ml, this;
|
|
23108
23141
|
}
|
|
23109
23142
|
/**
|
|
23110
23143
|
Make sure the current stored marks or, if that is null, the marks
|
|
@@ -23130,13 +23163,13 @@ class gL extends Tp {
|
|
|
23130
23163
|
Whether the stored marks were explicitly set for this transaction.
|
|
23131
23164
|
*/
|
|
23132
23165
|
get storedMarksSet() {
|
|
23133
|
-
return (this.updated &
|
|
23166
|
+
return (this.updated & ml) > 0;
|
|
23134
23167
|
}
|
|
23135
23168
|
/**
|
|
23136
23169
|
@internal
|
|
23137
23170
|
*/
|
|
23138
23171
|
addStep(e, n) {
|
|
23139
|
-
super.addStep(e, n), this.updated = this.updated & ~
|
|
23172
|
+
super.addStep(e, n), this.updated = this.updated & ~ml, this.storedMarks = null;
|
|
23140
23173
|
}
|
|
23141
23174
|
/**
|
|
23142
23175
|
Update the timestamp for the transaction.
|
|
@@ -23858,7 +23891,7 @@ function RL(t, e, n, r = null) {
|
|
|
23858
23891
|
if (e.$from.index(e.depth - 1) == 0)
|
|
23859
23892
|
return !1;
|
|
23860
23893
|
let l = s.resolve(e.start - 2);
|
|
23861
|
-
o = new
|
|
23894
|
+
o = new lc(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new lc(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
|
|
23862
23895
|
}
|
|
23863
23896
|
let a = Ap(o, n, r, e);
|
|
23864
23897
|
return a ? (t && LL(t, e, a, i, n), !0) : !1;
|
|
@@ -23884,7 +23917,7 @@ function DL(t) {
|
|
|
23884
23917
|
}
|
|
23885
23918
|
function PL(t, e, n, r) {
|
|
23886
23919
|
let i = t.tr, o = r.end, s = r.$to.end(r.depth);
|
|
23887
|
-
o < s && (i.step(new Tt(o - 1, s, o, s, new X(H.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new
|
|
23920
|
+
o < s && (i.step(new Tt(o - 1, s, o, s, new X(H.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new lc(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
|
|
23888
23921
|
const a = ls(r);
|
|
23889
23922
|
if (a == null)
|
|
23890
23923
|
return !1;
|
|
@@ -23946,7 +23979,7 @@ function X0(t, e, n, r, i) {
|
|
|
23946
23979
|
return !0;
|
|
23947
23980
|
if (e == (i < 0 ? 0 : In(t))) {
|
|
23948
23981
|
let s = t.parentNode;
|
|
23949
|
-
if (!s || s.nodeType != 1 ||
|
|
23982
|
+
if (!s || s.nodeType != 1 || Oa(t) || FL.test(t.nodeName) || t.contentEditable == "false")
|
|
23950
23983
|
return !1;
|
|
23951
23984
|
e = Lt(t) + (i < 0 ? 0 : 1), t = s;
|
|
23952
23985
|
} else if (t.nodeType == 1) {
|
|
@@ -23973,7 +24006,7 @@ function zL(t, e) {
|
|
|
23973
24006
|
if (t.contentEditable == "false")
|
|
23974
24007
|
return null;
|
|
23975
24008
|
t = t.childNodes[e - 1], e = In(t);
|
|
23976
|
-
} else if (t.parentNode && !
|
|
24009
|
+
} else if (t.parentNode && !Oa(t))
|
|
23977
24010
|
e = Lt(t), t = t.parentNode;
|
|
23978
24011
|
else
|
|
23979
24012
|
return null;
|
|
@@ -23987,7 +24020,7 @@ function HL(t, e) {
|
|
|
23987
24020
|
if (t.contentEditable == "false")
|
|
23988
24021
|
return null;
|
|
23989
24022
|
t = t.childNodes[e], e = 0;
|
|
23990
|
-
} else if (t.parentNode && !
|
|
24023
|
+
} else if (t.parentNode && !Oa(t))
|
|
23991
24024
|
e = Lt(t) + 1, t = t.parentNode;
|
|
23992
24025
|
else
|
|
23993
24026
|
return null;
|
|
@@ -24003,7 +24036,7 @@ function jL(t, e, n) {
|
|
|
24003
24036
|
r = r && o == 0, i = i && o == In(t);
|
|
24004
24037
|
}
|
|
24005
24038
|
}
|
|
24006
|
-
function
|
|
24039
|
+
function Oa(t) {
|
|
24007
24040
|
let e;
|
|
24008
24041
|
for (let n = t; n && !(e = n.pmViewDesc); n = n.parentNode)
|
|
24009
24042
|
;
|
|
@@ -24038,7 +24071,7 @@ function WL(t, e, n) {
|
|
|
24038
24071
|
}
|
|
24039
24072
|
const dr = typeof navigator < "u" ? navigator : null, J0 = typeof document < "u" ? document : null, Ii = dr && dr.userAgent || "", Jd = /Edge\/(\d+)/.exec(Ii), Lw = /MSIE \d/.exec(Ii), Zd = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ii), ln = !!(Lw || Zd || Jd), mi = Lw ? document.documentMode : Zd ? +Zd[1] : Jd ? +Jd[1] : 0, Gn = !ln && /gecko\/(\d+)/i.test(Ii);
|
|
24040
24073
|
Gn && +(/Firefox\/(\d+)/.exec(Ii) || [0, 0])[1];
|
|
24041
|
-
const Qd = !ln && /Chrome\/(\d+)/.exec(Ii), Ut = !!Qd, Dw = Qd ? +Qd[1] : 0, Qt = !ln && !!dr && /Apple Computer/.test(dr.vendor), Qo = Qt && (/Mobile\/\w+/.test(Ii) || !!dr && dr.maxTouchPoints > 2), Mn = Qo || (dr ? /Mac/.test(dr.platform) : !1), VL = dr ? /Win/.test(dr.platform) : !1, Lr = /Android \d/.test(Ii),
|
|
24074
|
+
const Qd = !ln && /Chrome\/(\d+)/.exec(Ii), Ut = !!Qd, Dw = Qd ? +Qd[1] : 0, Qt = !ln && !!dr && /Apple Computer/.test(dr.vendor), Qo = Qt && (/Mobile\/\w+/.test(Ii) || !!dr && dr.maxTouchPoints > 2), Mn = Qo || (dr ? /Mac/.test(dr.platform) : !1), VL = dr ? /Win/.test(dr.platform) : !1, Lr = /Android \d/.test(Ii), Ma = !!J0 && "webkitFontSmoothing" in J0.documentElement.style, KL = Ma ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
24042
24075
|
function GL(t) {
|
|
24043
24076
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
24044
24077
|
return e ? {
|
|
@@ -24233,7 +24266,7 @@ function nD(t, e) {
|
|
|
24233
24266
|
u.nodeName == "IMG" && (f = u.getBoundingClientRect()).right <= e.left && f.bottom > e.top && i++;
|
|
24234
24267
|
}
|
|
24235
24268
|
let c;
|
|
24236
|
-
|
|
24269
|
+
Ma && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (a = tD(t, r, i, e));
|
|
24237
24270
|
}
|
|
24238
24271
|
a == null && (a = eD(t, s, e));
|
|
24239
24272
|
let l = t.docView.nearestDesc(s, !0);
|
|
@@ -24253,7 +24286,7 @@ function ti(t, e) {
|
|
|
24253
24286
|
}
|
|
24254
24287
|
const rD = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
24255
24288
|
function Fw(t, e, n) {
|
|
24256
|
-
let { node: r, offset: i, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s =
|
|
24289
|
+
let { node: r, offset: i, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Ma || Gn;
|
|
24257
24290
|
if (r.nodeType == 3)
|
|
24258
24291
|
if (s && (rD.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
|
|
24259
24292
|
let l = ti(Mr(r, i, i), n);
|
|
@@ -24373,7 +24406,7 @@ function aD(t, e, n) {
|
|
|
24373
24406
|
return e1 == e && t1 == n ? n1 : (e1 = e, t1 = n, n1 = n == "up" || n == "down" ? iD(t, e, n) : sD(t, e, n));
|
|
24374
24407
|
}
|
|
24375
24408
|
const Ln = 0, r1 = 1, Ki = 2, hr = 3;
|
|
24376
|
-
class
|
|
24409
|
+
class Ia {
|
|
24377
24410
|
constructor(e, n, r, i) {
|
|
24378
24411
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = i, this.dirty = Ln, r.pmViewDesc = this;
|
|
24379
24412
|
}
|
|
@@ -24717,7 +24750,7 @@ class Ma {
|
|
|
24717
24750
|
return !1;
|
|
24718
24751
|
}
|
|
24719
24752
|
}
|
|
24720
|
-
class Hw extends
|
|
24753
|
+
class Hw extends Ia {
|
|
24721
24754
|
constructor(e, n, r, i) {
|
|
24722
24755
|
let o, s = n.type.toDOM;
|
|
24723
24756
|
if (typeof s == "function" && (s = s(r, () => {
|
|
@@ -24760,7 +24793,7 @@ class Hw extends Ma {
|
|
|
24760
24793
|
return this.widget.type.side;
|
|
24761
24794
|
}
|
|
24762
24795
|
}
|
|
24763
|
-
class lD extends
|
|
24796
|
+
class lD extends Ia {
|
|
24764
24797
|
constructor(e, n, r, i) {
|
|
24765
24798
|
super(e, [], n, null), this.textDOM = r, this.text = i;
|
|
24766
24799
|
}
|
|
@@ -24777,7 +24810,7 @@ class lD extends Ma {
|
|
|
24777
24810
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
24778
24811
|
}
|
|
24779
24812
|
}
|
|
24780
|
-
class oo extends
|
|
24813
|
+
class oo extends Ia {
|
|
24781
24814
|
constructor(e, n, r, i, o) {
|
|
24782
24815
|
super(e, [], r, i), this.mark = n, this.spec = o;
|
|
24783
24816
|
}
|
|
@@ -24813,7 +24846,7 @@ class oo extends Ma {
|
|
|
24813
24846
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
24814
24847
|
}
|
|
24815
24848
|
}
|
|
24816
|
-
class gi extends
|
|
24849
|
+
class gi extends Ia {
|
|
24817
24850
|
constructor(e, n, r, i, o, s, a, l, c) {
|
|
24818
24851
|
super(e, [], o, s), this.node = n, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = a;
|
|
24819
24852
|
}
|
|
@@ -24864,7 +24897,7 @@ class gi extends Ma {
|
|
|
24864
24897
|
return e;
|
|
24865
24898
|
}
|
|
24866
24899
|
matchesNode(e, n, r) {
|
|
24867
|
-
return this.dirty == Ln && e.eq(this.node) &&
|
|
24900
|
+
return this.dirty == Ln && e.eq(this.node) && uc(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
24868
24901
|
}
|
|
24869
24902
|
get size() {
|
|
24870
24903
|
return this.node.nodeSize;
|
|
@@ -24922,7 +24955,7 @@ class gi extends Ma {
|
|
|
24922
24955
|
this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ln;
|
|
24923
24956
|
}
|
|
24924
24957
|
updateOuterDeco(e) {
|
|
24925
|
-
if (
|
|
24958
|
+
if (uc(e, this.outerDeco))
|
|
24926
24959
|
return;
|
|
24927
24960
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
24928
24961
|
this.dom = Ww(this.dom, this.nodeDOM, eh(this.outerDeco, this.node, n), eh(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
@@ -24987,7 +25020,7 @@ class ku extends gi {
|
|
|
24987
25020
|
return this.node.text == e;
|
|
24988
25021
|
}
|
|
24989
25022
|
}
|
|
24990
|
-
class jw extends
|
|
25023
|
+
class jw extends Ia {
|
|
24991
25024
|
parseRule() {
|
|
24992
25025
|
return { ignore: !0 };
|
|
24993
25026
|
}
|
|
@@ -25114,7 +25147,7 @@ function uD(t, e, n) {
|
|
|
25114
25147
|
function Vw(t, e, n) {
|
|
25115
25148
|
return Ww(t, t, Gi, eh(e, n, t.nodeType != 1));
|
|
25116
25149
|
}
|
|
25117
|
-
function
|
|
25150
|
+
function uc(t, e) {
|
|
25118
25151
|
if (t.length != e.length)
|
|
25119
25152
|
return !1;
|
|
25120
25153
|
for (let n = 0; n < t.length; n++)
|
|
@@ -25216,7 +25249,7 @@ class fD {
|
|
|
25216
25249
|
let c = this.preMatch.matched.get(l);
|
|
25217
25250
|
if (c != null && c != o)
|
|
25218
25251
|
return !1;
|
|
25219
|
-
let u = l.dom, f, d = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != hr &&
|
|
25252
|
+
let u = l.dom, f, d = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != hr && uc(n, l.outerDeco));
|
|
25220
25253
|
if (!d && l.update(e, n, r, i))
|
|
25221
25254
|
return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
25222
25255
|
if (!d && (f = this.recreateWrapper(l, e, n, r, i, s)))
|
|
@@ -25229,7 +25262,7 @@ class fD {
|
|
|
25229
25262
|
// When a node with content is replaced by a different node with
|
|
25230
25263
|
// identical content, move over its children.
|
|
25231
25264
|
recreateWrapper(e, n, r, i, o, s) {
|
|
25232
|
-
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !
|
|
25265
|
+
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !uc(r, e.outerDeco) || !i.eq(e.innerDeco))
|
|
25233
25266
|
return null;
|
|
25234
25267
|
let a = gi.create(this.top, n, r, i, o, s);
|
|
25235
25268
|
if (a.contentDOM) {
|
|
@@ -25542,7 +25575,7 @@ function f1(t, e, n) {
|
|
|
25542
25575
|
if (!o || o.isText)
|
|
25543
25576
|
return !1;
|
|
25544
25577
|
let a = e < 0 ? i.pos - o.nodeSize : i.pos;
|
|
25545
|
-
return o.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? ue.isSelectable(o) ? ni(t, new ue(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) :
|
|
25578
|
+
return o.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? ue.isSelectable(o) ? ni(t, new ue(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : Ma ? ni(t, new pe(t.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
|
|
25546
25579
|
}
|
|
25547
25580
|
} else return !1;
|
|
25548
25581
|
else {
|
|
@@ -25554,7 +25587,7 @@ function f1(t, e, n) {
|
|
|
25554
25587
|
}
|
|
25555
25588
|
}
|
|
25556
25589
|
}
|
|
25557
|
-
function
|
|
25590
|
+
function fc(t) {
|
|
25558
25591
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
25559
25592
|
}
|
|
25560
25593
|
function _s(t, e) {
|
|
@@ -25569,7 +25602,7 @@ function wD(t) {
|
|
|
25569
25602
|
if (!n)
|
|
25570
25603
|
return;
|
|
25571
25604
|
let i, o, s = !1;
|
|
25572
|
-
for (Gn && n.nodeType == 1 && r <
|
|
25605
|
+
for (Gn && n.nodeType == 1 && r < fc(n) && _s(n.childNodes[r], -1) && (s = !0); ; )
|
|
25573
25606
|
if (r > 0) {
|
|
25574
25607
|
if (n.nodeType != 1)
|
|
25575
25608
|
break;
|
|
@@ -25590,7 +25623,7 @@ function wD(t) {
|
|
|
25590
25623
|
for (; a && _s(a, -1); )
|
|
25591
25624
|
i = n.parentNode, o = Lt(a), a = a.previousSibling;
|
|
25592
25625
|
if (a)
|
|
25593
|
-
n = a, r =
|
|
25626
|
+
n = a, r = fc(n);
|
|
25594
25627
|
else {
|
|
25595
25628
|
if (n = n.parentNode, n == t.dom)
|
|
25596
25629
|
break;
|
|
@@ -25604,7 +25637,7 @@ function SD(t) {
|
|
|
25604
25637
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
25605
25638
|
if (!n)
|
|
25606
25639
|
return;
|
|
25607
|
-
let i =
|
|
25640
|
+
let i = fc(n), o, s;
|
|
25608
25641
|
for (; ; )
|
|
25609
25642
|
if (r < i) {
|
|
25610
25643
|
if (n.nodeType != 1)
|
|
@@ -25622,7 +25655,7 @@ function SD(t) {
|
|
|
25622
25655
|
for (; a && _s(a, 1); )
|
|
25623
25656
|
o = a.parentNode, s = Lt(a) + 1, a = a.nextSibling;
|
|
25624
25657
|
if (a)
|
|
25625
|
-
n = a, r = 0, i =
|
|
25658
|
+
n = a, r = 0, i = fc(n);
|
|
25626
25659
|
else {
|
|
25627
25660
|
if (n = n.parentNode, n == t.dom)
|
|
25628
25661
|
break;
|
|
@@ -25637,7 +25670,7 @@ function Yw(t) {
|
|
|
25637
25670
|
return e && e.node && e.node.isBlock;
|
|
25638
25671
|
}
|
|
25639
25672
|
function ED(t, e) {
|
|
25640
|
-
for (; t && e == t.childNodes.length && !
|
|
25673
|
+
for (; t && e == t.childNodes.length && !Oa(t); )
|
|
25641
25674
|
e = Lt(t) + 1, t = t.parentNode;
|
|
25642
25675
|
for (; t && e < t.childNodes.length; ) {
|
|
25643
25676
|
let n = t.childNodes[e];
|
|
@@ -25649,7 +25682,7 @@ function ED(t, e) {
|
|
|
25649
25682
|
}
|
|
25650
25683
|
}
|
|
25651
25684
|
function kD(t, e) {
|
|
25652
|
-
for (; t && !e && !
|
|
25685
|
+
for (; t && !e && !Oa(t); )
|
|
25653
25686
|
e = Lt(t), t = t.parentNode;
|
|
25654
25687
|
for (; t && e; ) {
|
|
25655
25688
|
let n = t.childNodes[e - 1];
|
|
@@ -25821,7 +25854,7 @@ function Xw(t, e, n, r, i) {
|
|
|
25821
25854
|
} else
|
|
25822
25855
|
t.someProp("transformPastedHTML", (f) => {
|
|
25823
25856
|
n = f(n, t);
|
|
25824
|
-
}), s = MD(n),
|
|
25857
|
+
}), s = MD(n), Ma && ID(s);
|
|
25825
25858
|
let c = s && s.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
|
|
25826
25859
|
if (u && u[3])
|
|
25827
25860
|
for (let f = +u[3]; f > 0; f--) {
|
|
@@ -26104,7 +26137,7 @@ function VD(t, e, n) {
|
|
|
26104
26137
|
}
|
|
26105
26138
|
}
|
|
26106
26139
|
function Hp(t) {
|
|
26107
|
-
return
|
|
26140
|
+
return dc(t);
|
|
26108
26141
|
}
|
|
26109
26142
|
const nS = Mn ? "metaKey" : "ctrlKey";
|
|
26110
26143
|
en.mousedown = (t, e) => {
|
|
@@ -26177,8 +26210,8 @@ tn.compositionstart = tn.compositionupdate = (t) => {
|
|
|
26177
26210
|
t.domObserver.flush();
|
|
26178
26211
|
let { state: e } = t, n = e.selection.$to;
|
|
26179
26212
|
if (e.selection instanceof pe && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
26180
|
-
t.markCursor = t.state.storedMarks || n.marks(),
|
|
26181
|
-
else if (
|
|
26213
|
+
t.markCursor = t.state.storedMarks || n.marks(), dc(t, !0), t.markCursor = null;
|
|
26214
|
+
else if (dc(t, !e.selection.empty), Gn && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
26182
26215
|
let r = t.domSelectionRange();
|
|
26183
26216
|
for (let i = r.focusNode, o = r.focusOffset; i && i.nodeType == 1 && o != 0; ) {
|
|
26184
26217
|
let s = o < 0 ? i.lastChild : i.childNodes[o - 1];
|
|
@@ -26200,7 +26233,7 @@ tn.compositionend = (t, e) => {
|
|
|
26200
26233
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, iS(t, 20));
|
|
26201
26234
|
};
|
|
26202
26235
|
function iS(t, e) {
|
|
26203
|
-
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() =>
|
|
26236
|
+
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => dc(t), e));
|
|
26204
26237
|
}
|
|
26205
26238
|
function oS(t) {
|
|
26206
26239
|
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = YD()); t.input.compositionNodes.length > 0; )
|
|
@@ -26229,7 +26262,7 @@ function YD() {
|
|
|
26229
26262
|
let t = document.createEvent("Event");
|
|
26230
26263
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
|
26231
26264
|
}
|
|
26232
|
-
function
|
|
26265
|
+
function dc(t, e = !1) {
|
|
26233
26266
|
if (!(Lr && t.domObserver.flushingSoon >= 0)) {
|
|
26234
26267
|
if (t.domObserver.forceFlush(), oS(t), e || t.docView && t.docView.dirty) {
|
|
26235
26268
|
let n = Bp(t), r = t.state.selection;
|
|
@@ -26397,7 +26430,7 @@ function aa(t, e) {
|
|
|
26397
26430
|
return !1;
|
|
26398
26431
|
return !0;
|
|
26399
26432
|
}
|
|
26400
|
-
class
|
|
26433
|
+
class hc {
|
|
26401
26434
|
constructor(e, n) {
|
|
26402
26435
|
this.toDOM = e, this.spec = n || Ji, this.side = this.spec.side || 0;
|
|
26403
26436
|
}
|
|
@@ -26409,7 +26442,7 @@ class dc {
|
|
|
26409
26442
|
return !0;
|
|
26410
26443
|
}
|
|
26411
26444
|
eq(e) {
|
|
26412
|
-
return this == e || e instanceof
|
|
26445
|
+
return this == e || e instanceof hc && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && aa(this.spec, e.spec));
|
|
26413
26446
|
}
|
|
26414
26447
|
destroy(e) {
|
|
26415
26448
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -26490,7 +26523,7 @@ class At {
|
|
|
26490
26523
|
widget's current document position.
|
|
26491
26524
|
*/
|
|
26492
26525
|
static widget(e, n, r) {
|
|
26493
|
-
return new At(e, e, new
|
|
26526
|
+
return new At(e, e, new hc(n, r));
|
|
26494
26527
|
}
|
|
26495
26528
|
/**
|
|
26496
26529
|
Creates an inline decoration, which adds the given attributes to
|
|
@@ -26524,7 +26557,7 @@ class At {
|
|
|
26524
26557
|
@internal
|
|
26525
26558
|
*/
|
|
26526
26559
|
get widget() {
|
|
26527
|
-
return this.type instanceof
|
|
26560
|
+
return this.type instanceof hc;
|
|
26528
26561
|
}
|
|
26529
26562
|
}
|
|
26530
26563
|
const Oo = [], Ji = {};
|
|
@@ -26541,7 +26574,7 @@ class et {
|
|
|
26541
26574
|
you must make a copy if you want need to preserve that.
|
|
26542
26575
|
*/
|
|
26543
26576
|
static create(e, n) {
|
|
26544
|
-
return n.length ?
|
|
26577
|
+
return n.length ? pc(n, e, 0, Ji) : jt;
|
|
26545
26578
|
}
|
|
26546
26579
|
/**
|
|
26547
26580
|
Find all decorations in this set which touch the given range
|
|
@@ -26600,7 +26633,7 @@ class et {
|
|
|
26600
26633
|
if (u = uS(n, a, c)) {
|
|
26601
26634
|
for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
|
|
26602
26635
|
o += 3;
|
|
26603
|
-
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize,
|
|
26636
|
+
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, pc(u, a, c + 1, Ji)), o += 3;
|
|
26604
26637
|
}
|
|
26605
26638
|
});
|
|
26606
26639
|
let s = cS(o ? fS(n) : n, -r);
|
|
@@ -26796,7 +26829,7 @@ function eP(t, e, n, r, i, o, s) {
|
|
|
26796
26829
|
l = !0;
|
|
26797
26830
|
}
|
|
26798
26831
|
if (l) {
|
|
26799
|
-
let c = tP(a, t, e, n, i, o, s), u =
|
|
26832
|
+
let c = tP(a, t, e, n, i, o, s), u = pc(c, r, 0, s);
|
|
26800
26833
|
e = u.local;
|
|
26801
26834
|
for (let f = 0; f < a.length; f += 3)
|
|
26802
26835
|
a[f + 1] < 0 && (a.splice(f, 3), f -= 3);
|
|
@@ -26846,13 +26879,13 @@ function fS(t) {
|
|
|
26846
26879
|
t[n] != null && e.push(t[n]);
|
|
26847
26880
|
return e;
|
|
26848
26881
|
}
|
|
26849
|
-
function
|
|
26882
|
+
function pc(t, e, n, r) {
|
|
26850
26883
|
let i = [], o = !1;
|
|
26851
26884
|
e.forEach((a, l) => {
|
|
26852
26885
|
let c = uS(t, a, l + n);
|
|
26853
26886
|
if (c) {
|
|
26854
26887
|
o = !0;
|
|
26855
|
-
let u =
|
|
26888
|
+
let u = pc(c, a, n + l + 1, r);
|
|
26856
26889
|
u != jt && i.push(l, l + a.nodeSize, u);
|
|
26857
26890
|
}
|
|
26858
26891
|
});
|
|
@@ -27716,7 +27749,7 @@ var xi = {
|
|
|
27716
27749
|
220: "\\",
|
|
27717
27750
|
221: "]",
|
|
27718
27751
|
222: "'"
|
|
27719
|
-
},
|
|
27752
|
+
}, mc = {
|
|
27720
27753
|
48: ")",
|
|
27721
27754
|
49: "!",
|
|
27722
27755
|
50: "@",
|
|
@@ -27745,10 +27778,10 @@ var xi = {
|
|
|
27745
27778
|
for (var Dt = 0; Dt < 10; Dt++) xi[48 + Dt] = xi[96 + Dt] = String(Dt);
|
|
27746
27779
|
for (var Dt = 1; Dt <= 24; Dt++) xi[Dt + 111] = "F" + Dt;
|
|
27747
27780
|
for (var Dt = 65; Dt <= 90; Dt++)
|
|
27748
|
-
xi[Dt] = String.fromCharCode(Dt + 32),
|
|
27749
|
-
for (var Lf in xi)
|
|
27781
|
+
xi[Dt] = String.fromCharCode(Dt + 32), mc[Dt] = String.fromCharCode(Dt);
|
|
27782
|
+
for (var Lf in xi) mc.hasOwnProperty(Lf) || (mc[Lf] = xi[Lf]);
|
|
27750
27783
|
function wP(t) {
|
|
27751
|
-
var e = vP && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || bP && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ?
|
|
27784
|
+
var e = vP && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || bP && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? mc : xi)[t.keyCode] || t.key || "Unidentified";
|
|
27752
27785
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
27753
27786
|
}
|
|
27754
27787
|
const SP = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), EP = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -28032,12 +28065,12 @@ var DP = (t) => ({ tr: e, state: n, dispatch: r }) => {
|
|
|
28032
28065
|
function Kp(t) {
|
|
28033
28066
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
28034
28067
|
}
|
|
28035
|
-
function
|
|
28068
|
+
function gc(t, e, n = { strict: !0 }) {
|
|
28036
28069
|
const r = Object.keys(e);
|
|
28037
28070
|
return r.length ? r.every((i) => n.strict ? e[i] === t[i] : Kp(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0;
|
|
28038
28071
|
}
|
|
28039
28072
|
function pS(t, e, n = {}) {
|
|
28040
|
-
return t.find((r) => r.type === e &&
|
|
28073
|
+
return t.find((r) => r.type === e && gc(
|
|
28041
28074
|
// Only check equality for the attributes that are provided
|
|
28042
28075
|
Object.fromEntries(Object.keys(n).map((i) => [i, r.attrs[i]])),
|
|
28043
28076
|
n
|
|
@@ -28108,7 +28141,7 @@ function mS(t, e = null) {
|
|
|
28108
28141
|
function M1() {
|
|
28109
28142
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
28110
28143
|
}
|
|
28111
|
-
function
|
|
28144
|
+
function yc() {
|
|
28112
28145
|
return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
|
|
28113
28146
|
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
28114
28147
|
}
|
|
@@ -28121,7 +28154,7 @@ var jP = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
|
|
|
28121
28154
|
...e
|
|
28122
28155
|
};
|
|
28123
28156
|
const s = () => {
|
|
28124
|
-
(
|
|
28157
|
+
(yc() || M1()) && r.dom.focus(), HP() && !yc() && !M1() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
|
|
28125
28158
|
n.isDestroyed || (r.focus(), e?.scrollIntoView && n.commands.scrollIntoView());
|
|
28126
28159
|
});
|
|
28127
28160
|
};
|
|
@@ -28143,7 +28176,7 @@ var jP = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
|
|
|
28143
28176
|
}
|
|
28144
28177
|
return t;
|
|
28145
28178
|
};
|
|
28146
|
-
function
|
|
28179
|
+
function gl(t) {
|
|
28147
28180
|
if (typeof window > "u")
|
|
28148
28181
|
throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
|
|
28149
28182
|
const e = `<body>${t}</body>`, n = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
@@ -28190,13 +28223,13 @@ function la(t, e, n) {
|
|
|
28190
28223
|
}
|
|
28191
28224
|
})
|
|
28192
28225
|
});
|
|
28193
|
-
if (n.slice ? pi.fromSchema(l).parseSlice(
|
|
28226
|
+
if (n.slice ? pi.fromSchema(l).parseSlice(gl(t), n.parseOptions) : pi.fromSchema(l).parse(gl(t), n.parseOptions), n.errorOnInvalidContent && s)
|
|
28194
28227
|
throw new Error("[tiptap error]: Invalid HTML content", {
|
|
28195
28228
|
cause: new Error(`Invalid element found: ${a}`)
|
|
28196
28229
|
});
|
|
28197
28230
|
}
|
|
28198
28231
|
const o = pi.fromSchema(e);
|
|
28199
|
-
return n.slice ? o.parseSlice(
|
|
28232
|
+
return n.slice ? o.parseSlice(gl(t), n.parseOptions).content : o.parse(gl(t), n.parseOptions);
|
|
28200
28233
|
}
|
|
28201
28234
|
return la("", e, n);
|
|
28202
28235
|
}
|
|
@@ -28313,7 +28346,7 @@ function n6(t) {
|
|
|
28313
28346
|
else if (/^s(hift)?$/i.test(l))
|
|
28314
28347
|
o = !0;
|
|
28315
28348
|
else if (/^mod$/i.test(l))
|
|
28316
|
-
|
|
28349
|
+
yc() || yS() ? s = !0 : i = !0;
|
|
28317
28350
|
else
|
|
28318
28351
|
throw new Error(`Unrecognized modifier name: ${l}`);
|
|
28319
28352
|
}
|
|
@@ -28348,7 +28381,7 @@ function Ni(t, e, n = {}) {
|
|
|
28348
28381
|
to: p
|
|
28349
28382
|
});
|
|
28350
28383
|
});
|
|
28351
|
-
const l = i - r, c = a.filter((f) => s ? s.name === f.node.type.name : !0).filter((f) =>
|
|
28384
|
+
const l = i - r, c = a.filter((f) => s ? s.name === f.node.type.name : !0).filter((f) => gc(f.node.attrs, n, { strict: !1 }));
|
|
28352
28385
|
return o ? !!c.length : c.reduce((f, d) => f + d.to - d.from, 0) >= l;
|
|
28353
28386
|
}
|
|
28354
28387
|
var i6 = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
@@ -28705,14 +28738,14 @@ function E6(t) {
|
|
|
28705
28738
|
const e = t.filter((n, r) => t.indexOf(n) !== r);
|
|
28706
28739
|
return Array.from(new Set(e));
|
|
28707
28740
|
}
|
|
28708
|
-
function
|
|
28741
|
+
function vc(t) {
|
|
28709
28742
|
return t.sort((n, r) => {
|
|
28710
28743
|
const i = ce(n, "priority") || 100, o = ce(r, "priority") || 100;
|
|
28711
28744
|
return i > o ? -1 : i < o ? 1 : 0;
|
|
28712
28745
|
});
|
|
28713
28746
|
}
|
|
28714
28747
|
function kS(t) {
|
|
28715
|
-
const e =
|
|
28748
|
+
const e = vc(Yp(t)), n = E6(e.map((r) => r.name));
|
|
28716
28749
|
return n.length && console.warn(
|
|
28717
28750
|
`[tiptap warn]: Duplicate extension names found: [${n.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
|
|
28718
28751
|
), e;
|
|
@@ -28831,10 +28864,10 @@ var N6 = (t, e, n, r = 20) => {
|
|
|
28831
28864
|
}
|
|
28832
28865
|
return [s, o];
|
|
28833
28866
|
};
|
|
28834
|
-
function
|
|
28867
|
+
function yl(t, e) {
|
|
28835
28868
|
return e.nodes[t] || e.marks[t] || null;
|
|
28836
28869
|
}
|
|
28837
|
-
function
|
|
28870
|
+
function Hl(t, e, n) {
|
|
28838
28871
|
return Object.fromEntries(
|
|
28839
28872
|
Object.entries(n).filter(([r]) => {
|
|
28840
28873
|
const i = t.find((o) => o.type === e && o.name === r);
|
|
@@ -28859,7 +28892,7 @@ var A6 = (t, e = 500) => {
|
|
|
28859
28892
|
function ah(t, e, n = {}) {
|
|
28860
28893
|
const { empty: r, ranges: i } = t.selection, o = e ? Hr(e, t.schema) : null;
|
|
28861
28894
|
if (r)
|
|
28862
|
-
return !!(t.storedMarks || t.selection.$from.marks()).filter((f) => o ? o.name === f.type.name : !0).find((f) =>
|
|
28895
|
+
return !!(t.storedMarks || t.selection.$from.marks()).filter((f) => o ? o.name === f.type.name : !0).find((f) => gc(f.attrs, n, { strict: !1 }));
|
|
28863
28896
|
let s = 0;
|
|
28864
28897
|
const a = [];
|
|
28865
28898
|
if (i.forEach(({ $from: f, $to: d }) => {
|
|
@@ -28878,7 +28911,7 @@ function ah(t, e, n = {}) {
|
|
|
28878
28911
|
});
|
|
28879
28912
|
}), s === 0)
|
|
28880
28913
|
return !1;
|
|
28881
|
-
const l = a.filter((f) => o ? o.name === f.mark.type.name : !0).filter((f) =>
|
|
28914
|
+
const l = a.filter((f) => o ? o.name === f.mark.type.name : !0).filter((f) => gc(f.mark.attrs, n, { strict: !1 })).reduce((f, d) => f + d.to - d.from, 0), c = a.filter((f) => o ? f.mark.type !== o && f.mark.type.excludes(o) : !0).reduce((f, d) => f + d.to - d.from, 0);
|
|
28882
28915
|
return (l > 0 ? l + c : l) >= s;
|
|
28883
28916
|
}
|
|
28884
28917
|
function T6(t, e, n = {}) {
|
|
@@ -29076,7 +29109,7 @@ function $1(t, e) {
|
|
|
29076
29109
|
}
|
|
29077
29110
|
}
|
|
29078
29111
|
var H6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
|
|
29079
|
-
const { selection: o, doc: s } = e, { $from: a, $to: l } = o, c = i.extensionManager.attributes, u =
|
|
29112
|
+
const { selection: o, doc: s } = e, { $from: a, $to: l } = o, c = i.extensionManager.attributes, u = Hl(c, a.node().type.name, a.node().attrs);
|
|
29080
29113
|
if (o instanceof ue && o.node.isBlock)
|
|
29081
29114
|
return !a.parentOffset || !Pr(s, a.pos) ? !1 : (r && (t && $1(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
29082
29115
|
if (!a.parent.isBlock)
|
|
@@ -29122,7 +29155,7 @@ var H6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
29122
29155
|
// eslint-disable-next-line no-nested-ternary
|
|
29123
29156
|
l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
|
|
29124
29157
|
), E = {
|
|
29125
|
-
...
|
|
29158
|
+
...Hl(d, l.node().type.name, l.node().attrs),
|
|
29126
29159
|
...e
|
|
29127
29160
|
}, w = ((s = a.contentMatch.defaultType) == null ? void 0 : s.createAndFill(E)) || void 0;
|
|
29128
29161
|
v = v.append(H.from(a.createAndFill(null, w) || void 0));
|
|
@@ -29138,10 +29171,10 @@ var H6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
29138
29171
|
return !0;
|
|
29139
29172
|
}
|
|
29140
29173
|
const h = c.pos === l.end() ? f.contentMatchAt(0).defaultType : null, p = {
|
|
29141
|
-
...
|
|
29174
|
+
...Hl(d, f.type.name, f.attrs),
|
|
29142
29175
|
...e
|
|
29143
29176
|
}, m = {
|
|
29144
|
-
...
|
|
29177
|
+
...Hl(d, l.node().type.name, l.node().attrs),
|
|
29145
29178
|
...e
|
|
29146
29179
|
};
|
|
29147
29180
|
n.delete(l.pos, c.pos);
|
|
@@ -29340,7 +29373,7 @@ var H6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
29340
29373
|
const r = [n.text];
|
|
29341
29374
|
return r.index = n.index, r.input = t, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(n.replaceWith)), r;
|
|
29342
29375
|
};
|
|
29343
|
-
function
|
|
29376
|
+
function vl(t) {
|
|
29344
29377
|
var e;
|
|
29345
29378
|
const { editor: n, from: r, to: i, text: o, rules: s, plugin: a } = t, { view: l } = n;
|
|
29346
29379
|
if (l.composing)
|
|
@@ -29399,7 +29432,7 @@ function n5(t) {
|
|
|
29399
29432
|
let { text: u } = l;
|
|
29400
29433
|
typeof u == "string" ? u = u : u = Xp(H.from(u), s.schema);
|
|
29401
29434
|
const { from: f } = l, d = f + u.length;
|
|
29402
|
-
|
|
29435
|
+
vl({
|
|
29403
29436
|
editor: e,
|
|
29404
29437
|
from: f,
|
|
29405
29438
|
to: d,
|
|
@@ -29412,7 +29445,7 @@ function n5(t) {
|
|
|
29412
29445
|
},
|
|
29413
29446
|
props: {
|
|
29414
29447
|
handleTextInput(i, o, s, a) {
|
|
29415
|
-
return
|
|
29448
|
+
return vl({
|
|
29416
29449
|
editor: e,
|
|
29417
29450
|
from: o,
|
|
29418
29451
|
to: s,
|
|
@@ -29424,7 +29457,7 @@ function n5(t) {
|
|
|
29424
29457
|
handleDOMEvents: {
|
|
29425
29458
|
compositionend: (i) => (setTimeout(() => {
|
|
29426
29459
|
const { $cursor: o } = i.state.selection;
|
|
29427
|
-
o &&
|
|
29460
|
+
o && vl({
|
|
29428
29461
|
editor: e,
|
|
29429
29462
|
from: o.pos,
|
|
29430
29463
|
to: o.pos,
|
|
@@ -29440,7 +29473,7 @@ function n5(t) {
|
|
|
29440
29473
|
if (o.key !== "Enter")
|
|
29441
29474
|
return !1;
|
|
29442
29475
|
const { $cursor: s } = i.state.selection;
|
|
29443
|
-
return s ?
|
|
29476
|
+
return s ? vl({
|
|
29444
29477
|
editor: e,
|
|
29445
29478
|
from: s.pos,
|
|
29446
29479
|
to: s.pos,
|
|
@@ -29459,13 +29492,13 @@ function n5(t) {
|
|
|
29459
29492
|
function r5(t) {
|
|
29460
29493
|
return Object.prototype.toString.call(t).slice(8, -1);
|
|
29461
29494
|
}
|
|
29462
|
-
function
|
|
29495
|
+
function bl(t) {
|
|
29463
29496
|
return r5(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
|
|
29464
29497
|
}
|
|
29465
29498
|
function RS(t, e) {
|
|
29466
29499
|
const n = { ...t };
|
|
29467
|
-
return
|
|
29468
|
-
|
|
29500
|
+
return bl(t) && bl(e) && Object.keys(e).forEach((r) => {
|
|
29501
|
+
bl(e[r]) && bl(t[r]) ? n[r] = RS(t[r], e[r]) : n[r] = e[r];
|
|
29469
29502
|
}), n;
|
|
29470
29503
|
}
|
|
29471
29504
|
var Qp = class {
|
|
@@ -29587,7 +29620,7 @@ function a5(t) {
|
|
|
29587
29620
|
});
|
|
29588
29621
|
}), f.every((h) => h !== null);
|
|
29589
29622
|
}
|
|
29590
|
-
var
|
|
29623
|
+
var wl = null, l5 = (t) => {
|
|
29591
29624
|
var e;
|
|
29592
29625
|
const n = new ClipboardEvent("paste", {
|
|
29593
29626
|
clipboardData: new DataTransfer()
|
|
@@ -29635,9 +29668,9 @@ function c5(t) {
|
|
|
29635
29668
|
view(f) {
|
|
29636
29669
|
const d = (p) => {
|
|
29637
29670
|
var m;
|
|
29638
|
-
r = (m = f.dom.parentElement) != null && m.contains(p.target) ? f.dom.parentElement : null, r && (
|
|
29671
|
+
r = (m = f.dom.parentElement) != null && m.contains(p.target) ? f.dom.parentElement : null, r && (wl = e);
|
|
29639
29672
|
}, h = () => {
|
|
29640
|
-
|
|
29673
|
+
wl && (wl = null);
|
|
29641
29674
|
};
|
|
29642
29675
|
return window.addEventListener("dragstart", d), window.addEventListener("dragend", h), {
|
|
29643
29676
|
destroy() {
|
|
@@ -29649,7 +29682,7 @@ function c5(t) {
|
|
|
29649
29682
|
handleDOMEvents: {
|
|
29650
29683
|
drop: (f, d) => {
|
|
29651
29684
|
if (o = r === f.dom.parentElement, a = d, !o) {
|
|
29652
|
-
const h =
|
|
29685
|
+
const h = wl;
|
|
29653
29686
|
h?.isEditable && setTimeout(() => {
|
|
29654
29687
|
const p = h.state.selection;
|
|
29655
29688
|
p && h.commands.deleteRange({ from: p.from, to: p.to });
|
|
@@ -29707,7 +29740,7 @@ var Iu = class {
|
|
|
29707
29740
|
options: e.options,
|
|
29708
29741
|
storage: this.editor.extensionStorage[e.name],
|
|
29709
29742
|
editor: this.editor,
|
|
29710
|
-
type:
|
|
29743
|
+
type: yl(e.name, this.schema)
|
|
29711
29744
|
}, r = ce(e, "addCommands", n);
|
|
29712
29745
|
return r ? {
|
|
29713
29746
|
...t,
|
|
@@ -29721,13 +29754,13 @@ var Iu = class {
|
|
|
29721
29754
|
*/
|
|
29722
29755
|
get plugins() {
|
|
29723
29756
|
const { editor: t } = this;
|
|
29724
|
-
return
|
|
29757
|
+
return vc([...this.extensions].reverse()).flatMap((r) => {
|
|
29725
29758
|
const i = {
|
|
29726
29759
|
name: r.name,
|
|
29727
29760
|
options: r.options,
|
|
29728
29761
|
storage: this.editor.extensionStorage[r.name],
|
|
29729
29762
|
editor: t,
|
|
29730
|
-
type:
|
|
29763
|
+
type: yl(r.name, this.schema)
|
|
29731
29764
|
}, o = [], s = ce(
|
|
29732
29765
|
r,
|
|
29733
29766
|
"addKeyboardShortcuts",
|
|
@@ -29826,13 +29859,13 @@ var Iu = class {
|
|
|
29826
29859
|
*/
|
|
29827
29860
|
dispatchTransaction(t) {
|
|
29828
29861
|
const { editor: e } = this;
|
|
29829
|
-
return
|
|
29862
|
+
return vc([...this.extensions].reverse()).reduceRight((r, i) => {
|
|
29830
29863
|
const o = {
|
|
29831
29864
|
name: i.name,
|
|
29832
29865
|
options: i.options,
|
|
29833
29866
|
storage: this.editor.extensionStorage[i.name],
|
|
29834
29867
|
editor: e,
|
|
29835
|
-
type:
|
|
29868
|
+
type: yl(i.name, this.schema)
|
|
29836
29869
|
}, s = ce(
|
|
29837
29870
|
i,
|
|
29838
29871
|
"dispatchTransaction",
|
|
@@ -29891,7 +29924,7 @@ var Iu = class {
|
|
|
29891
29924
|
options: e.options,
|
|
29892
29925
|
storage: this.editor.extensionStorage[e.name],
|
|
29893
29926
|
editor: this.editor,
|
|
29894
|
-
type:
|
|
29927
|
+
type: yl(e.name, this.schema)
|
|
29895
29928
|
};
|
|
29896
29929
|
e.type === "mark" && ((n = je(ce(e, "keepOnSplit", r))) == null || n) && this.splittableMarks.push(e.name);
|
|
29897
29930
|
const i = ce(e, "onBeforeCreate", r), o = ce(e, "onCreate", r), s = ce(e, "onUpdate", r), a = ce(
|
|
@@ -29904,7 +29937,7 @@ var Iu = class {
|
|
|
29904
29937
|
}
|
|
29905
29938
|
};
|
|
29906
29939
|
Iu.resolve = kS;
|
|
29907
|
-
Iu.sort =
|
|
29940
|
+
Iu.sort = vc;
|
|
29908
29941
|
Iu.flatten = Yp;
|
|
29909
29942
|
var u5 = {};
|
|
29910
29943
|
Vp(u5, {
|
|
@@ -30125,7 +30158,7 @@ var Ue = class DS extends Qp {
|
|
|
30125
30158
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
30126
30159
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
30127
30160
|
};
|
|
30128
|
-
return
|
|
30161
|
+
return yc() || yS() ? o : i;
|
|
30129
30162
|
},
|
|
30130
30163
|
addProseMirrorPlugins() {
|
|
30131
30164
|
return [
|
|
@@ -31629,7 +31662,7 @@ function _1(t, e) {
|
|
|
31629
31662
|
return t(r, i, o) && e(r, i, o);
|
|
31630
31663
|
};
|
|
31631
31664
|
}
|
|
31632
|
-
function
|
|
31665
|
+
function Sl(t) {
|
|
31633
31666
|
return function(n, r, i) {
|
|
31634
31667
|
if (!n || !r || typeof n != "object" || typeof r != "object")
|
|
31635
31668
|
return t(n, r, i);
|
|
@@ -31837,7 +31870,7 @@ function i7(t) {
|
|
|
31837
31870
|
unknownTagComparators: void 0
|
|
31838
31871
|
};
|
|
31839
31872
|
if (n && (i = V1({}, i, n(i))), e) {
|
|
31840
|
-
var o =
|
|
31873
|
+
var o = Sl(i.areArraysEqual), s = Sl(i.areMapsEqual), a = Sl(i.areObjectsEqual), l = Sl(i.areSetsEqual);
|
|
31841
31874
|
i = V1({}, i, {
|
|
31842
31875
|
areArraysEqual: o,
|
|
31843
31876
|
areMapsEqual: s,
|
|
@@ -31919,7 +31952,7 @@ function Ri(t) {
|
|
|
31919
31952
|
var e = t.circular, n = e === void 0 ? !1 : e, r = t.createInternalComparator, i = t.createState, o = t.strict, s = o === void 0 ? !1 : o, a = i7(t), l = r7(a), c = r ? r(l) : o7(l);
|
|
31920
31953
|
return s7({ circular: n, comparator: l, createState: i, equals: c, strict: s });
|
|
31921
31954
|
}
|
|
31922
|
-
var
|
|
31955
|
+
var El = { exports: {} }, $f = {};
|
|
31923
31956
|
var K1;
|
|
31924
31957
|
function l7() {
|
|
31925
31958
|
if (K1) return $f;
|
|
@@ -32026,10 +32059,10 @@ function c7() {
|
|
|
32026
32059
|
}
|
|
32027
32060
|
var q1;
|
|
32028
32061
|
function u7() {
|
|
32029
|
-
return q1 || (q1 = 1, process.env.NODE_ENV === "production" ?
|
|
32062
|
+
return q1 || (q1 = 1, process.env.NODE_ENV === "production" ? El.exports = l7() : El.exports = c7()), El.exports;
|
|
32030
32063
|
}
|
|
32031
32064
|
var f7 = u7();
|
|
32032
|
-
const YS = ["top", "right", "bottom", "left"], Y1 = ["start", "end"], X1 = /* @__PURE__ */ YS.reduce((t, e) => t.concat(e, e + "-" + Y1[0], e + "-" + Y1[1]), []), pr = Math.min, Jt = Math.max,
|
|
32065
|
+
const YS = ["top", "right", "bottom", "left"], Y1 = ["start", "end"], X1 = /* @__PURE__ */ YS.reduce((t, e) => t.concat(e, e + "-" + Y1[0], e + "-" + Y1[1]), []), pr = Math.min, Jt = Math.max, bc = Math.round, ur = (t) => ({
|
|
32033
32066
|
x: t,
|
|
32034
32067
|
y: t
|
|
32035
32068
|
}), d7 = {
|
|
@@ -32070,13 +32103,13 @@ function JS(t, e, n) {
|
|
|
32070
32103
|
n === void 0 && (n = !1);
|
|
32071
32104
|
const r = Vn(t), i = im(t), o = rm(i);
|
|
32072
32105
|
let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
32073
|
-
return e.reference[o] > e.floating[o] && (s =
|
|
32106
|
+
return e.reference[o] > e.floating[o] && (s = Sc(s)), [s, Sc(s)];
|
|
32074
32107
|
}
|
|
32075
32108
|
function m7(t) {
|
|
32076
|
-
const e =
|
|
32077
|
-
return [
|
|
32109
|
+
const e = Sc(t);
|
|
32110
|
+
return [wc(t), e, wc(e)];
|
|
32078
32111
|
}
|
|
32079
|
-
function
|
|
32112
|
+
function wc(t) {
|
|
32080
32113
|
return t.replace(/start|end/g, (e) => h7[e]);
|
|
32081
32114
|
}
|
|
32082
32115
|
const J1 = ["left", "right"], Z1 = ["right", "left"], g7 = ["top", "bottom"], y7 = ["bottom", "top"];
|
|
@@ -32095,9 +32128,9 @@ function v7(t, e, n) {
|
|
|
32095
32128
|
function b7(t, e, n, r) {
|
|
32096
32129
|
const i = Vn(t);
|
|
32097
32130
|
let o = v7($n(t), n === "start", r);
|
|
32098
|
-
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(
|
|
32131
|
+
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(wc)))), o;
|
|
32099
32132
|
}
|
|
32100
|
-
function
|
|
32133
|
+
function Sc(t) {
|
|
32101
32134
|
return t.replace(/left|right|bottom|top/g, (e) => d7[e]);
|
|
32102
32135
|
}
|
|
32103
32136
|
function w7(t) {
|
|
@@ -32331,7 +32364,7 @@ const E7 = async (t, e, n) => {
|
|
|
32331
32364
|
}
|
|
32332
32365
|
});
|
|
32333
32366
|
function C7(t, e, n) {
|
|
32334
|
-
return (t ? [...n.filter((i) => Vn(i) === t), ...n.filter((i) => Vn(i) !== t)] : n.filter((i) => $n(i) === i)).filter((i) => t ? Vn(i) === t || (e ?
|
|
32367
|
+
return (t ? [...n.filter((i) => Vn(i) === t), ...n.filter((i) => Vn(i) !== t)] : n.filter((i) => $n(i) === i)).filter((i) => t ? Vn(i) === t || (e ? wc(i) !== i : !1) : !0);
|
|
32335
32368
|
}
|
|
32336
32369
|
const x7 = function(t) {
|
|
32337
32370
|
return t === void 0 && (t = {}), {
|
|
@@ -32425,7 +32458,7 @@ const x7 = function(t) {
|
|
|
32425
32458
|
} = jr(t, e);
|
|
32426
32459
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
32427
32460
|
return {};
|
|
32428
|
-
const v = $n(i), S = ar(a), k = $n(a) === a, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = d || (k || !m ? [
|
|
32461
|
+
const v = $n(i), S = ar(a), k = $n(a) === a, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = d || (k || !m ? [Sc(a)] : m7(a)), C = p !== "none";
|
|
32429
32462
|
!d && C && w.push(...b7(a, m, p, E));
|
|
32430
32463
|
const x = [a, ...w], N = await l.detectOverflow(e, g), A = [];
|
|
32431
32464
|
let T = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -32791,7 +32824,7 @@ function ny(t) {
|
|
|
32791
32824
|
return !Ru() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof vn(t).ShadowRoot;
|
|
32792
32825
|
}
|
|
32793
32826
|
const P7 = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
32794
|
-
function
|
|
32827
|
+
function Ra(t) {
|
|
32795
32828
|
const {
|
|
32796
32829
|
overflow: e,
|
|
32797
32830
|
overflowX: n,
|
|
@@ -32863,13 +32896,13 @@ function Ai(t) {
|
|
|
32863
32896
|
}
|
|
32864
32897
|
function eE(t) {
|
|
32865
32898
|
const e = Ai(t);
|
|
32866
|
-
return rs(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : mr(e) &&
|
|
32899
|
+
return rs(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : mr(e) && Ra(e) ? e : eE(e);
|
|
32867
32900
|
}
|
|
32868
32901
|
function tE(t, e, n) {
|
|
32869
32902
|
var r;
|
|
32870
32903
|
e === void 0 && (e = []);
|
|
32871
32904
|
const i = eE(t), o = i === ((r = t.ownerDocument) == null ? void 0 : r.body), s = vn(i);
|
|
32872
|
-
return o ? (uh(s), e.concat(s, s.visualViewport || [],
|
|
32905
|
+
return o ? (uh(s), e.concat(s, s.visualViewport || [], Ra(i) ? i : [], [])) : e.concat(i, tE(i, []));
|
|
32873
32906
|
}
|
|
32874
32907
|
function uh(t) {
|
|
32875
32908
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
@@ -32877,7 +32910,7 @@ function uh(t) {
|
|
|
32877
32910
|
function nE(t) {
|
|
32878
32911
|
const e = Yn(t);
|
|
32879
32912
|
let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
|
|
32880
|
-
const i = mr(t), o = i ? t.offsetWidth : n, s = i ? t.offsetHeight : r, a =
|
|
32913
|
+
const i = mr(t), o = i ? t.offsetWidth : n, s = i ? t.offsetHeight : r, a = bc(n) !== o || bc(r) !== s;
|
|
32881
32914
|
return a && (n = o, r = s), {
|
|
32882
32915
|
width: n,
|
|
32883
32916
|
height: r,
|
|
@@ -32896,7 +32929,7 @@ function Ko(t) {
|
|
|
32896
32929
|
height: i,
|
|
32897
32930
|
$: o
|
|
32898
32931
|
} = nE(e);
|
|
32899
|
-
let s = (o ?
|
|
32932
|
+
let s = (o ? bc(n.width) : n.width) / r, a = (o ? bc(n.height) : n.height) / i;
|
|
32900
32933
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
32901
32934
|
x: s,
|
|
32902
32935
|
y: a
|
|
@@ -32961,7 +32994,7 @@ function K7(t) {
|
|
|
32961
32994
|
scrollTop: 0
|
|
32962
32995
|
}, c = ur(1);
|
|
32963
32996
|
const u = ur(0), f = mr(r);
|
|
32964
|
-
if ((f || !f && !o) && ((cs(r) !== "body" ||
|
|
32997
|
+
if ((f || !f && !o) && ((cs(r) !== "body" || Ra(s)) && (l = Du(r)), mr(r))) {
|
|
32965
32998
|
const h = fa(r);
|
|
32966
32999
|
c = Ko(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
32967
33000
|
}
|
|
@@ -33050,7 +33083,7 @@ function Z7(t, e) {
|
|
|
33050
33083
|
let s = o ? Ai(t) : t;
|
|
33051
33084
|
for (; qn(s) && !rs(s); ) {
|
|
33052
33085
|
const a = Yn(s), l = sm(s);
|
|
33053
|
-
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i && X7.has(i.position) ||
|
|
33086
|
+
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i && X7.has(i.position) || Ra(s) && !l && sE(t, s)) ? r = r.filter((u) => u !== s) : i = a, s = Ai(s);
|
|
33054
33087
|
}
|
|
33055
33088
|
return e.set(t, r), r;
|
|
33056
33089
|
}
|
|
@@ -33093,7 +33126,7 @@ function tB(t, e, n) {
|
|
|
33093
33126
|
l.x = Pu(i);
|
|
33094
33127
|
}
|
|
33095
33128
|
if (r || !r && !o)
|
|
33096
|
-
if ((cs(e) !== "body" ||
|
|
33129
|
+
if ((cs(e) !== "body" || Ra(i)) && (a = Du(e)), r) {
|
|
33097
33130
|
const h = fa(e, !0, o, e);
|
|
33098
33131
|
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
33099
33132
|
} else i && c();
|
|
@@ -34184,7 +34217,7 @@ function PB(t, e) {
|
|
|
34184
34217
|
), !0;
|
|
34185
34218
|
return !1;
|
|
34186
34219
|
}
|
|
34187
|
-
function
|
|
34220
|
+
function kl(t, e) {
|
|
34188
34221
|
const n = t.selection;
|
|
34189
34222
|
if (!(n instanceof Je)) return !1;
|
|
34190
34223
|
if (e) {
|
|
@@ -34396,28 +34429,28 @@ function hy(t, e, n, r, i) {
|
|
|
34396
34429
|
), e(f);
|
|
34397
34430
|
}
|
|
34398
34431
|
var zB = Wp({
|
|
34399
|
-
ArrowLeft:
|
|
34400
|
-
ArrowRight:
|
|
34401
|
-
ArrowUp:
|
|
34402
|
-
ArrowDown:
|
|
34403
|
-
"Shift-ArrowLeft":
|
|
34404
|
-
"Shift-ArrowRight":
|
|
34405
|
-
"Shift-ArrowUp":
|
|
34406
|
-
"Shift-ArrowDown":
|
|
34407
|
-
Backspace:
|
|
34408
|
-
"Mod-Backspace":
|
|
34409
|
-
Delete:
|
|
34410
|
-
"Mod-Delete":
|
|
34432
|
+
ArrowLeft: Cl("horiz", -1),
|
|
34433
|
+
ArrowRight: Cl("horiz", 1),
|
|
34434
|
+
ArrowUp: Cl("vert", -1),
|
|
34435
|
+
ArrowDown: Cl("vert", 1),
|
|
34436
|
+
"Shift-ArrowLeft": xl("horiz", -1),
|
|
34437
|
+
"Shift-ArrowRight": xl("horiz", 1),
|
|
34438
|
+
"Shift-ArrowUp": xl("vert", -1),
|
|
34439
|
+
"Shift-ArrowDown": xl("vert", 1),
|
|
34440
|
+
Backspace: kl,
|
|
34441
|
+
"Mod-Backspace": kl,
|
|
34442
|
+
Delete: kl,
|
|
34443
|
+
"Mod-Delete": kl
|
|
34411
34444
|
});
|
|
34412
|
-
function
|
|
34445
|
+
function jl(t, e, n) {
|
|
34413
34446
|
return n.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(n).scrollIntoView()), !0);
|
|
34414
34447
|
}
|
|
34415
|
-
function
|
|
34448
|
+
function Cl(t, e) {
|
|
34416
34449
|
return (n, r, i) => {
|
|
34417
34450
|
if (!i) return !1;
|
|
34418
34451
|
const o = n.selection;
|
|
34419
34452
|
if (o instanceof Je)
|
|
34420
|
-
return
|
|
34453
|
+
return jl(
|
|
34421
34454
|
n,
|
|
34422
34455
|
r,
|
|
34423
34456
|
be.near(o.$headCell, e)
|
|
@@ -34426,7 +34459,7 @@ function kl(t, e) {
|
|
|
34426
34459
|
const s = CE(i, t, e);
|
|
34427
34460
|
if (s == null) return !1;
|
|
34428
34461
|
if (t == "horiz")
|
|
34429
|
-
return
|
|
34462
|
+
return jl(
|
|
34430
34463
|
n,
|
|
34431
34464
|
r,
|
|
34432
34465
|
be.near(n.doc.resolve(o.head + e), e)
|
|
@@ -34434,11 +34467,11 @@ function kl(t, e) {
|
|
|
34434
34467
|
{
|
|
34435
34468
|
const a = n.doc.resolve(s), l = yE(a, t, e);
|
|
34436
34469
|
let c;
|
|
34437
|
-
return l ? c = be.near(l, 1) : e < 0 ? c = be.near(n.doc.resolve(a.before(-1)), -1) : c = be.near(n.doc.resolve(a.after(-1)), 1),
|
|
34470
|
+
return l ? c = be.near(l, 1) : e < 0 ? c = be.near(n.doc.resolve(a.before(-1)), -1) : c = be.near(n.doc.resolve(a.after(-1)), 1), jl(n, r, c);
|
|
34438
34471
|
}
|
|
34439
34472
|
};
|
|
34440
34473
|
}
|
|
34441
|
-
function
|
|
34474
|
+
function xl(t, e) {
|
|
34442
34475
|
return (n, r, i) => {
|
|
34443
34476
|
if (!i) return !1;
|
|
34444
34477
|
const o = n.selection;
|
|
@@ -34451,7 +34484,7 @@ function Cl(t, e) {
|
|
|
34451
34484
|
s = new Je(n.doc.resolve(l));
|
|
34452
34485
|
}
|
|
34453
34486
|
const a = yE(s.$headCell, t, e);
|
|
34454
|
-
return a ?
|
|
34487
|
+
return a ? jl(
|
|
34455
34488
|
n,
|
|
34456
34489
|
r,
|
|
34457
34490
|
new Je(s.$anchorCell, a)
|
|
@@ -34647,19 +34680,19 @@ function VB({
|
|
|
34647
34680
|
});
|
|
34648
34681
|
return o;
|
|
34649
34682
|
}
|
|
34650
|
-
var KB = class
|
|
34683
|
+
var KB = class Ul {
|
|
34651
34684
|
constructor(e, n) {
|
|
34652
34685
|
this.activeHandle = e, this.dragging = n;
|
|
34653
34686
|
}
|
|
34654
34687
|
apply(e) {
|
|
34655
34688
|
const n = this, r = e.getMeta(gn);
|
|
34656
34689
|
if (r && r.setHandle != null)
|
|
34657
|
-
return new
|
|
34690
|
+
return new Ul(r.setHandle, !1);
|
|
34658
34691
|
if (r && r.setDragging !== void 0)
|
|
34659
|
-
return new
|
|
34692
|
+
return new Ul(n.activeHandle, r.setDragging);
|
|
34660
34693
|
if (n.activeHandle > -1 && e.docChanged) {
|
|
34661
34694
|
let i = e.mapping.map(n.activeHandle, -1);
|
|
34662
|
-
return hh(e.doc.resolve(i)) || (i = -1), new
|
|
34695
|
+
return hh(e.doc.resolve(i)) || (i = -1), new Ul(i, n.dragging);
|
|
34663
34696
|
}
|
|
34664
34697
|
return n;
|
|
34665
34698
|
}
|
|
@@ -35690,7 +35723,7 @@ var v$ = b.forwardRef(
|
|
|
35690
35723
|
a,
|
|
35691
35724
|
i,
|
|
35692
35725
|
s
|
|
35693
|
-
]),
|
|
35726
|
+
]), ba.createPortal(/* @__PURE__ */ y("div", { ...c, children: l }), f.current);
|
|
35694
35727
|
}
|
|
35695
35728
|
), b$ = b.forwardRef(
|
|
35696
35729
|
({
|
|
@@ -35752,7 +35785,7 @@ var v$ = b.forwardRef(
|
|
|
35752
35785
|
})
|
|
35753
35786
|
);
|
|
35754
35787
|
}
|
|
35755
|
-
}, [m, d, n, r, o, s, i]),
|
|
35788
|
+
}, [m, d, n, r, o, s, i]), ba.createPortal(/* @__PURE__ */ y("div", { ...l, children: a }), u.current);
|
|
35756
35789
|
}
|
|
35757
35790
|
), um = Ih({
|
|
35758
35791
|
editor: null,
|
|
@@ -36632,7 +36665,7 @@ var N$ = Xt.create({
|
|
|
36632
36665
|
}
|
|
36633
36666
|
}), s_ = {};
|
|
36634
36667
|
i_(s_, {
|
|
36635
|
-
findListItemPos: () =>
|
|
36668
|
+
findListItemPos: () => La,
|
|
36636
36669
|
getNextListDepth: () => fm,
|
|
36637
36670
|
handleBackspace: () => vh,
|
|
36638
36671
|
handleDelete: () => bh,
|
|
@@ -36643,14 +36676,14 @@ i_(s_, {
|
|
|
36643
36676
|
nextListIsDeeper: () => UE,
|
|
36644
36677
|
nextListIsHigher: () => WE
|
|
36645
36678
|
});
|
|
36646
|
-
var
|
|
36679
|
+
var La = (t, e) => {
|
|
36647
36680
|
const { $from: n } = e.selection, r = wt(t, e.schema);
|
|
36648
36681
|
let i = null, o = n.depth, s = n.pos, a = null;
|
|
36649
36682
|
for (; o > 0 && a === null; )
|
|
36650
36683
|
i = n.node(o), i.type === r ? a = o : (o -= 1, s -= 1);
|
|
36651
36684
|
return a === null ? null : { $pos: e.doc.resolve(s), depth: a };
|
|
36652
36685
|
}, fm = (t, e) => {
|
|
36653
|
-
const n =
|
|
36686
|
+
const n = La(t, e);
|
|
36654
36687
|
if (!n)
|
|
36655
36688
|
return !1;
|
|
36656
36689
|
const [, r] = N6(e, t, n.$pos.pos + 4);
|
|
@@ -36688,16 +36721,16 @@ var Ra = (t, e) => {
|
|
|
36688
36721
|
}
|
|
36689
36722
|
if (!Ni(t.state, e) || !M6(t.state))
|
|
36690
36723
|
return !1;
|
|
36691
|
-
const r =
|
|
36724
|
+
const r = La(e, t.state);
|
|
36692
36725
|
if (!r)
|
|
36693
36726
|
return !1;
|
|
36694
36727
|
const o = t.state.doc.resolve(r.$pos.pos - 2).node(r.depth), s = jE(e, t.state, o);
|
|
36695
36728
|
return HE(e, t.state) && !s ? t.commands.joinItemBackward() : t.chain().liftListItem(e).run();
|
|
36696
36729
|
}, UE = (t, e) => {
|
|
36697
|
-
const n = fm(t, e), r =
|
|
36730
|
+
const n = fm(t, e), r = La(t, e);
|
|
36698
36731
|
return !r || !n ? !1 : n > r.depth;
|
|
36699
36732
|
}, WE = (t, e) => {
|
|
36700
|
-
const n = fm(t, e), r =
|
|
36733
|
+
const n = fm(t, e), r = La(t, e);
|
|
36701
36734
|
return !r || !n ? !1 : n < r.depth;
|
|
36702
36735
|
}, bh = (t, e) => {
|
|
36703
36736
|
if (!Ni(t.state, e) || !O6(t.state, e))
|
|
@@ -37489,12 +37522,12 @@ function C_() {
|
|
|
37489
37522
|
});
|
|
37490
37523
|
}
|
|
37491
37524
|
const x_ = Wp({
|
|
37492
|
-
ArrowLeft:
|
|
37493
|
-
ArrowRight:
|
|
37494
|
-
ArrowUp:
|
|
37495
|
-
ArrowDown:
|
|
37525
|
+
ArrowLeft: Nl("horiz", -1),
|
|
37526
|
+
ArrowRight: Nl("horiz", 1),
|
|
37527
|
+
ArrowUp: Nl("vert", -1),
|
|
37528
|
+
ArrowDown: Nl("vert", 1)
|
|
37496
37529
|
});
|
|
37497
|
-
function
|
|
37530
|
+
function Nl(t, e) {
|
|
37498
37531
|
const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
37499
37532
|
return function(r, i, o) {
|
|
37500
37533
|
let s = r.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
@@ -37534,10 +37567,10 @@ function T_(t) {
|
|
|
37534
37567
|
let e = document.createElement("div");
|
|
37535
37568
|
return e.className = "ProseMirror-gapcursor", et.create(t.doc, [At.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
37536
37569
|
}
|
|
37537
|
-
var
|
|
37570
|
+
var Ec = 200, Ot = function() {
|
|
37538
37571
|
};
|
|
37539
37572
|
Ot.prototype.append = function(e) {
|
|
37540
|
-
return e.length ? (e = Ot.from(e), !this.length && e || e.length <
|
|
37573
|
+
return e.length ? (e = Ot.from(e), !this.length && e || e.length < Ec && this.leafAppend(e) || this.length < Ec && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
37541
37574
|
};
|
|
37542
37575
|
Ot.prototype.prepend = function(e) {
|
|
37543
37576
|
return e.length ? Ot.from(e).append(this) : this;
|
|
@@ -37586,10 +37619,10 @@ var GE = /* @__PURE__ */ (function(t) {
|
|
|
37586
37619
|
if (i(this.values[l], a + l) === !1)
|
|
37587
37620
|
return !1;
|
|
37588
37621
|
}, e.prototype.leafAppend = function(i) {
|
|
37589
|
-
if (this.length + i.length <=
|
|
37622
|
+
if (this.length + i.length <= Ec)
|
|
37590
37623
|
return new e(this.values.concat(i.flatten()));
|
|
37591
37624
|
}, e.prototype.leafPrepend = function(i) {
|
|
37592
|
-
if (this.length + i.length <=
|
|
37625
|
+
if (this.length + i.length <= Ec)
|
|
37593
37626
|
return new e(i.flatten().concat(this.values));
|
|
37594
37627
|
}, n.length.get = function() {
|
|
37595
37628
|
return this.values.length;
|
|
@@ -37779,10 +37812,10 @@ function L_(t, e, n, r) {
|
|
|
37779
37812
|
if (n.steps.length == 0)
|
|
37780
37813
|
return t;
|
|
37781
37814
|
if (s && s.getMeta(Qi))
|
|
37782
|
-
return s.getMeta(Qi).redo ? new ri(t.done.addTransform(n, void 0, r,
|
|
37815
|
+
return s.getMeta(Qi).redo ? new ri(t.done.addTransform(n, void 0, r, Wl(e)), t.undone, Ay(n.mapping.maps), t.prevTime, t.prevComposition) : new ri(t.done, t.undone.addTransform(n, void 0, r, Wl(e)), null, t.prevTime, t.prevComposition);
|
|
37783
37816
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
37784
37817
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !D_(n, t.prevRanges)), c = s ? Hf(t.prevRanges, n.mapping) : Ay(n.mapping.maps);
|
|
37785
|
-
return new ri(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r,
|
|
37818
|
+
return new ri(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, Wl(e)), Hn.empty, c, n.time, a ?? t.prevComposition);
|
|
37786
37819
|
} else return (o = n.getMeta("rebased")) ? new ri(t.done.rebased(n, o), t.undone.rebased(n, o), Hf(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new ri(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Hf(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
37787
37820
|
}
|
|
37788
37821
|
function D_(t, e) {
|
|
@@ -37813,14 +37846,14 @@ function Hf(t, e) {
|
|
|
37813
37846
|
return n;
|
|
37814
37847
|
}
|
|
37815
37848
|
function P_(t, e, n) {
|
|
37816
|
-
let r =
|
|
37849
|
+
let r = Wl(e), i = Qi.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
|
|
37817
37850
|
if (!o)
|
|
37818
37851
|
return null;
|
|
37819
37852
|
let s = o.selection.resolve(o.transform.doc), a = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new ri(n ? a : o.remaining, n ? o.remaining : a, null, 0, -1);
|
|
37820
37853
|
return o.transform.setSelection(s).setMeta(Qi, { redo: n, historyState: l });
|
|
37821
37854
|
}
|
|
37822
37855
|
let jf = !1, Ty = null;
|
|
37823
|
-
function
|
|
37856
|
+
function Wl(t) {
|
|
37824
37857
|
let e = t.plugins;
|
|
37825
37858
|
if (Ty != e) {
|
|
37826
37859
|
jf = !1, Ty = e;
|
|
@@ -38420,60 +38453,60 @@ sn.prototype = {
|
|
|
38420
38453
|
return i.j[t] = s, s;
|
|
38421
38454
|
}
|
|
38422
38455
|
};
|
|
38423
|
-
const Re = (t, e, n, r, i) => t.ta(e, n, r, i), pt = (t, e, n, r, i) => t.tr(e, n, r, i), Iy = (t, e, n, r, i) => t.ts(e, n, r, i), V = (t, e, n, r, i) => t.tt(e, n, r, i), Or = "WORD", Ch = "UWORD", ZE = "ASCIINUMERICAL", QE = "ALPHANUMERICAL", ha = "LOCALHOST", xh = "TLD", Nh = "UTLD",
|
|
38456
|
+
const Re = (t, e, n, r, i) => t.ta(e, n, r, i), pt = (t, e, n, r, i) => t.tr(e, n, r, i), Iy = (t, e, n, r, i) => t.ts(e, n, r, i), V = (t, e, n, r, i) => t.tt(e, n, r, i), Or = "WORD", Ch = "UWORD", ZE = "ASCIINUMERICAL", QE = "ALPHANUMERICAL", ha = "LOCALHOST", xh = "TLD", Nh = "UTLD", Vl = "SCHEME", Mo = "SLASH_SCHEME", hm = "NUM", Ah = "WS", pm = "NL", zs = "OPENBRACE", Hs = "CLOSEBRACE", kc = "OPENBRACKET", Cc = "CLOSEBRACKET", xc = "OPENPAREN", Nc = "CLOSEPAREN", Ac = "OPENANGLEBRACKET", Tc = "CLOSEANGLEBRACKET", Oc = "FULLWIDTHLEFTPAREN", Mc = "FULLWIDTHRIGHTPAREN", Ic = "LEFTCORNERBRACKET", Rc = "RIGHTCORNERBRACKET", Lc = "LEFTWHITECORNERBRACKET", Dc = "RIGHTWHITECORNERBRACKET", Pc = "FULLWIDTHLESSTHAN", Bc = "FULLWIDTHGREATERTHAN", $c = "AMPERSAND", _c = "APOSTROPHE", Fc = "ASTERISK", ii = "AT", zc = "BACKSLASH", Hc = "BACKTICK", jc = "CARET", ai = "COLON", mm = "COMMA", Uc = "DOLLAR", tr = "DOT", Wc = "EQUALS", gm = "EXCLAMATION", Tn = "HYPHEN", js = "PERCENT", Vc = "PIPE", Kc = "PLUS", Gc = "POUND", Us = "QUERY", ym = "QUOTE", ek = "FULLWIDTHMIDDLEDOT", vm = "SEMI", nr = "SLASH", Ws = "TILDE", qc = "UNDERSCORE", tk = "EMOJI", Yc = "SYM";
|
|
38424
38457
|
var nk = /* @__PURE__ */ Object.freeze({
|
|
38425
38458
|
__proto__: null,
|
|
38426
38459
|
ALPHANUMERICAL: QE,
|
|
38427
|
-
AMPERSAND:
|
|
38428
|
-
APOSTROPHE:
|
|
38460
|
+
AMPERSAND: $c,
|
|
38461
|
+
APOSTROPHE: _c,
|
|
38429
38462
|
ASCIINUMERICAL: ZE,
|
|
38430
|
-
ASTERISK:
|
|
38463
|
+
ASTERISK: Fc,
|
|
38431
38464
|
AT: ii,
|
|
38432
|
-
BACKSLASH:
|
|
38433
|
-
BACKTICK:
|
|
38434
|
-
CARET:
|
|
38435
|
-
CLOSEANGLEBRACKET:
|
|
38465
|
+
BACKSLASH: zc,
|
|
38466
|
+
BACKTICK: Hc,
|
|
38467
|
+
CARET: jc,
|
|
38468
|
+
CLOSEANGLEBRACKET: Tc,
|
|
38436
38469
|
CLOSEBRACE: Hs,
|
|
38437
|
-
CLOSEBRACKET:
|
|
38438
|
-
CLOSEPAREN:
|
|
38470
|
+
CLOSEBRACKET: Cc,
|
|
38471
|
+
CLOSEPAREN: Nc,
|
|
38439
38472
|
COLON: ai,
|
|
38440
38473
|
COMMA: mm,
|
|
38441
|
-
DOLLAR:
|
|
38474
|
+
DOLLAR: Uc,
|
|
38442
38475
|
DOT: tr,
|
|
38443
38476
|
EMOJI: tk,
|
|
38444
|
-
EQUALS:
|
|
38477
|
+
EQUALS: Wc,
|
|
38445
38478
|
EXCLAMATION: gm,
|
|
38446
|
-
FULLWIDTHGREATERTHAN:
|
|
38447
|
-
FULLWIDTHLEFTPAREN:
|
|
38448
|
-
FULLWIDTHLESSTHAN:
|
|
38479
|
+
FULLWIDTHGREATERTHAN: Bc,
|
|
38480
|
+
FULLWIDTHLEFTPAREN: Oc,
|
|
38481
|
+
FULLWIDTHLESSTHAN: Pc,
|
|
38449
38482
|
FULLWIDTHMIDDLEDOT: ek,
|
|
38450
|
-
FULLWIDTHRIGHTPAREN:
|
|
38483
|
+
FULLWIDTHRIGHTPAREN: Mc,
|
|
38451
38484
|
HYPHEN: Tn,
|
|
38452
|
-
LEFTCORNERBRACKET:
|
|
38453
|
-
LEFTWHITECORNERBRACKET:
|
|
38485
|
+
LEFTCORNERBRACKET: Ic,
|
|
38486
|
+
LEFTWHITECORNERBRACKET: Lc,
|
|
38454
38487
|
LOCALHOST: ha,
|
|
38455
38488
|
NL: pm,
|
|
38456
38489
|
NUM: hm,
|
|
38457
|
-
OPENANGLEBRACKET:
|
|
38490
|
+
OPENANGLEBRACKET: Ac,
|
|
38458
38491
|
OPENBRACE: zs,
|
|
38459
|
-
OPENBRACKET:
|
|
38460
|
-
OPENPAREN:
|
|
38492
|
+
OPENBRACKET: kc,
|
|
38493
|
+
OPENPAREN: xc,
|
|
38461
38494
|
PERCENT: js,
|
|
38462
|
-
PIPE:
|
|
38463
|
-
PLUS:
|
|
38464
|
-
POUND:
|
|
38495
|
+
PIPE: Vc,
|
|
38496
|
+
PLUS: Kc,
|
|
38497
|
+
POUND: Gc,
|
|
38465
38498
|
QUERY: Us,
|
|
38466
38499
|
QUOTE: ym,
|
|
38467
|
-
RIGHTCORNERBRACKET:
|
|
38468
|
-
RIGHTWHITECORNERBRACKET:
|
|
38469
|
-
SCHEME:
|
|
38500
|
+
RIGHTCORNERBRACKET: Rc,
|
|
38501
|
+
RIGHTWHITECORNERBRACKET: Dc,
|
|
38502
|
+
SCHEME: Vl,
|
|
38470
38503
|
SEMI: vm,
|
|
38471
38504
|
SLASH: nr,
|
|
38472
38505
|
SLASH_SCHEME: Mo,
|
|
38473
|
-
SYM:
|
|
38506
|
+
SYM: Yc,
|
|
38474
38507
|
TILDE: Ws,
|
|
38475
38508
|
TLD: xh,
|
|
38476
|
-
UNDERSCORE:
|
|
38509
|
+
UNDERSCORE: qc,
|
|
38477
38510
|
UTLD: Nh,
|
|
38478
38511
|
UWORD: Ch,
|
|
38479
38512
|
WORD: Or,
|
|
@@ -38481,12 +38514,12 @@ var nk = /* @__PURE__ */ Object.freeze({
|
|
|
38481
38514
|
});
|
|
38482
38515
|
const Nr = /[a-z]/, ks = new RegExp("\\p{L}", "u"), Wf = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, Vf = /\s/, Ry = "\r", Kf = `
|
|
38483
38516
|
`, X_ = "️", J_ = "", Gf = "";
|
|
38484
|
-
let
|
|
38517
|
+
let Al = null, Tl = null;
|
|
38485
38518
|
function Z_(t = []) {
|
|
38486
38519
|
const e = {};
|
|
38487
38520
|
sn.groups = e;
|
|
38488
38521
|
const n = new sn();
|
|
38489
|
-
|
|
38522
|
+
Al == null && (Al = Ly(W_)), Tl == null && (Tl = Ly(V_)), V(n, "'", _c), V(n, "{", zs), V(n, "}", Hs), V(n, "[", kc), V(n, "]", Cc), V(n, "(", xc), V(n, ")", Nc), V(n, "<", Ac), V(n, ">", Tc), V(n, "(", Oc), V(n, ")", Mc), V(n, "「", Ic), V(n, "」", Rc), V(n, "『", Lc), V(n, "』", Dc), V(n, "<", Pc), V(n, ">", Bc), V(n, "&", $c), V(n, "*", Fc), V(n, "@", ii), V(n, "`", Hc), V(n, "^", jc), V(n, ":", ai), V(n, ",", mm), V(n, "$", Uc), V(n, ".", tr), V(n, "=", Wc), V(n, "!", gm), V(n, "-", Tn), V(n, "%", js), V(n, "|", Vc), V(n, "+", Kc), V(n, "#", Gc), V(n, "?", Us), V(n, '"', ym), V(n, "/", nr), V(n, ";", vm), V(n, "~", Ws), V(n, "_", qc), V(n, "\\", zc), V(n, "・", ek);
|
|
38490
38523
|
const r = pt(n, Ar, hm, {
|
|
38491
38524
|
[wh]: !0
|
|
38492
38525
|
});
|
|
@@ -38518,17 +38551,17 @@ function Z_(t = []) {
|
|
|
38518
38551
|
const d = V(f, J_);
|
|
38519
38552
|
V(d, "#"), pt(d, Wf, f);
|
|
38520
38553
|
const h = [[Nr, s], [Ar, i]], p = [[Nr, null], [ks, a], [Ar, o]];
|
|
38521
|
-
for (let m = 0; m < Nl.length; m++)
|
|
38522
|
-
Qr(n, Nl[m], xh, Or, h);
|
|
38523
38554
|
for (let m = 0; m < Al.length; m++)
|
|
38524
|
-
Qr(n, Al[m],
|
|
38555
|
+
Qr(n, Al[m], xh, Or, h);
|
|
38556
|
+
for (let m = 0; m < Tl.length; m++)
|
|
38557
|
+
Qr(n, Tl[m], Nh, Ch, p);
|
|
38525
38558
|
qi(xh, {
|
|
38526
38559
|
tld: !0,
|
|
38527
38560
|
ascii: !0
|
|
38528
38561
|
}, e), qi(Nh, {
|
|
38529
38562
|
utld: !0,
|
|
38530
38563
|
alpha: !0
|
|
38531
|
-
}, e), Qr(n, "file",
|
|
38564
|
+
}, e), Qr(n, "file", Vl, Or, h), Qr(n, "mailto", Vl, Or, h), Qr(n, "http", Mo, Or, h), Qr(n, "https", Mo, Or, h), Qr(n, "ftp", Mo, Or, h), Qr(n, "ftps", Mo, Or, h), qi(Vl, {
|
|
38532
38565
|
scheme: !0,
|
|
38533
38566
|
ascii: !0
|
|
38534
38567
|
}, e), qi(Mo, {
|
|
@@ -38545,7 +38578,7 @@ function Z_(t = []) {
|
|
|
38545
38578
|
}
|
|
38546
38579
|
return Iy(n, "localhost", ha, {
|
|
38547
38580
|
ascii: !0
|
|
38548
|
-
}), n.jd = new sn(
|
|
38581
|
+
}), n.jd = new sn(Yc), {
|
|
38549
38582
|
start: n,
|
|
38550
38583
|
tokens: Object.assign({
|
|
38551
38584
|
groups: e
|
|
@@ -38818,7 +38851,7 @@ const Py = _u("email", {
|
|
|
38818
38851
|
toHref() {
|
|
38819
38852
|
return "mailto:" + this.toString();
|
|
38820
38853
|
}
|
|
38821
|
-
}), By = _u("text"), e8 = _u("nl"),
|
|
38854
|
+
}), By = _u("text"), e8 = _u("nl"), Ol = _u("url", {
|
|
38822
38855
|
isLink: !0,
|
|
38823
38856
|
/**
|
|
38824
38857
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -38842,7 +38875,7 @@ const Py = _u("email", {
|
|
|
38842
38875
|
function t8({
|
|
38843
38876
|
groups: t
|
|
38844
38877
|
}) {
|
|
38845
|
-
const e = t.domain.concat([
|
|
38878
|
+
const e = t.domain.concat([$c, Fc, ii, zc, Hc, jc, Uc, Wc, Tn, hm, js, Vc, Kc, Gc, nr, Yc, Ws, qc]), n = [_c, ai, mm, tr, gm, js, Us, ym, vm, Ac, Tc, zs, Hs, Cc, kc, xc, Nc, Oc, Mc, Ic, Rc, Lc, Dc, Pc, Bc], r = [$c, _c, Fc, zc, Hc, jc, Uc, Wc, Tn, zs, Hs, js, Vc, Kc, Gc, Us, nr, Yc, Ws, qc], i = An(), o = V(i, Ws);
|
|
38846
38879
|
Re(o, r, o), Re(o, t.domain, o);
|
|
38847
38880
|
const s = An(), a = An(), l = An();
|
|
38848
38881
|
Re(i, t.domain, s), Re(i, t.scheme, a), Re(i, t.slashscheme, l), Re(s, r, o), Re(s, t.domain, s);
|
|
@@ -38862,36 +38895,36 @@ function t8({
|
|
|
38862
38895
|
Re(m, t.numeric, Py);
|
|
38863
38896
|
const g = V(s, Tn), v = V(s, tr);
|
|
38864
38897
|
V(g, Tn, g), Re(g, t.domain, s), Re(v, r, o), Re(v, t.domain, s);
|
|
38865
|
-
const S = An(
|
|
38898
|
+
const S = An(Ol);
|
|
38866
38899
|
Re(v, t.tld, S), Re(v, t.utld, S), Re(S, t.domain, s), Re(S, r, o), V(S, tr, v), V(S, Tn, g), V(S, ii, c);
|
|
38867
|
-
const k = V(S, ai), E = An(
|
|
38900
|
+
const k = V(S, ai), E = An(Ol);
|
|
38868
38901
|
Re(k, t.numeric, E);
|
|
38869
|
-
const w = An(
|
|
38902
|
+
const w = An(Ol), C = An();
|
|
38870
38903
|
Re(w, e, w), Re(w, n, C), Re(C, e, w), Re(C, n, C), V(S, nr, w), V(E, nr, w);
|
|
38871
38904
|
const x = V(a, ai), N = V(l, ai), A = V(N, nr), T = V(A, nr);
|
|
38872
38905
|
Re(a, t.domain, s), V(a, tr, v), V(a, Tn, g), Re(l, t.domain, s), V(l, tr, v), V(l, Tn, g), Re(x, t.domain, w), V(x, nr, w), V(x, Us, w), Re(T, t.domain, w), Re(T, e, w), V(T, nr, w);
|
|
38873
38906
|
const M = [
|
|
38874
38907
|
[zs, Hs],
|
|
38875
38908
|
// {}
|
|
38876
|
-
[
|
|
38909
|
+
[kc, Cc],
|
|
38877
38910
|
// []
|
|
38878
|
-
[
|
|
38911
|
+
[xc, Nc],
|
|
38879
38912
|
// ()
|
|
38880
|
-
[
|
|
38913
|
+
[Ac, Tc],
|
|
38881
38914
|
// <>
|
|
38882
|
-
[
|
|
38915
|
+
[Oc, Mc],
|
|
38883
38916
|
// ()
|
|
38884
|
-
[
|
|
38917
|
+
[Ic, Rc],
|
|
38885
38918
|
// 「」
|
|
38886
|
-
[
|
|
38919
|
+
[Lc, Dc],
|
|
38887
38920
|
// 『』
|
|
38888
|
-
[
|
|
38921
|
+
[Pc, Bc]
|
|
38889
38922
|
// <>
|
|
38890
38923
|
];
|
|
38891
38924
|
for (let L = 0; L < M.length; L++) {
|
|
38892
38925
|
const [O, I] = M[L], $ = V(w, O);
|
|
38893
38926
|
V(C, O, $), V($, I, w);
|
|
38894
|
-
const D = An(
|
|
38927
|
+
const D = An(Ol);
|
|
38895
38928
|
Re($, e, D);
|
|
38896
38929
|
const _ = An();
|
|
38897
38930
|
Re($, n), Re(D, e, D), Re(D, n, _), Re(_, e, D), Re(_, n, _), V(D, I, w), V(_, I, w);
|
|
@@ -39455,7 +39488,7 @@ function b8(t, e, n, r, i) {
|
|
|
39455
39488
|
function w8(t) {
|
|
39456
39489
|
return t instanceof Je;
|
|
39457
39490
|
}
|
|
39458
|
-
var
|
|
39491
|
+
var Ml = ({ editor: t }) => {
|
|
39459
39492
|
const { selection: e } = t.state;
|
|
39460
39493
|
if (!w8(e))
|
|
39461
39494
|
return !1;
|
|
@@ -39601,10 +39634,10 @@ var C8 = k8, ck = Xt.create({
|
|
|
39601
39634
|
return {
|
|
39602
39635
|
Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1,
|
|
39603
39636
|
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
39604
|
-
Backspace:
|
|
39605
|
-
"Mod-Backspace":
|
|
39606
|
-
Delete:
|
|
39607
|
-
"Mod-Delete":
|
|
39637
|
+
Backspace: Ml,
|
|
39638
|
+
"Mod-Backspace": Ml,
|
|
39639
|
+
Delete: Ml,
|
|
39640
|
+
"Mod-Delete": Ml
|
|
39608
39641
|
};
|
|
39609
39642
|
},
|
|
39610
39643
|
addProseMirrorPlugins() {
|
|
@@ -40301,7 +40334,7 @@ function K8() {
|
|
|
40301
40334
|
t.current && t.current.setSelectionRange(e, r);
|
|
40302
40335
|
}), { start: e, end: r, ref: t, updateCaret: o };
|
|
40303
40336
|
}
|
|
40304
|
-
function G8({ value: t = "", characters: e = void 0, icon: n =
|
|
40337
|
+
function G8({ value: t = "", characters: e = void 0, icon: n = nu, onValueChanged: r, ...i }) {
|
|
40305
40338
|
let { ref: o, updateCaret: s } = K8();
|
|
40306
40339
|
function a(l) {
|
|
40307
40340
|
if (e) {
|
|
@@ -40350,7 +40383,7 @@ function cz({
|
|
|
40350
40383
|
labelHidden: A = !1,
|
|
40351
40384
|
loading: T = !1,
|
|
40352
40385
|
value: M,
|
|
40353
|
-
icon: L =
|
|
40386
|
+
icon: L = nu,
|
|
40354
40387
|
groupBy: O = 4,
|
|
40355
40388
|
divider: I = " ",
|
|
40356
40389
|
name: $,
|
|
@@ -41397,7 +41430,7 @@ function fF({ next: t, clearTime: e, del: n, defaultDismissTime: r = 5e3, locati
|
|
|
41397
41430
|
let Yf;
|
|
41398
41431
|
const Cm = b.createContext(null);
|
|
41399
41432
|
Cm.displayName = "ConfirmContext";
|
|
41400
|
-
const
|
|
41433
|
+
const Kl = {
|
|
41401
41434
|
show: !1,
|
|
41402
41435
|
content: "",
|
|
41403
41436
|
ok: "OK",
|
|
@@ -41408,13 +41441,13 @@ const Vl = {
|
|
|
41408
41441
|
modalID: -1
|
|
41409
41442
|
};
|
|
41410
41443
|
function mk({ children: t }) {
|
|
41411
|
-
let [e, n] = b.useReducer(dF,
|
|
41444
|
+
let [e, n] = b.useReducer(dF, Kl);
|
|
41412
41445
|
return /* @__PURE__ */ R(Cm.Provider, { value: { state: e, setState: n }, children: [
|
|
41413
41446
|
e.show && /* @__PURE__ */ y(pF, {}),
|
|
41414
41447
|
t
|
|
41415
41448
|
] });
|
|
41416
41449
|
}
|
|
41417
|
-
function dF(t =
|
|
41450
|
+
function dF(t = Kl, e) {
|
|
41418
41451
|
switch (e.type) {
|
|
41419
41452
|
case "SHOW":
|
|
41420
41453
|
return {
|
|
@@ -41429,11 +41462,11 @@ function dF(t = Vl, e) {
|
|
|
41429
41462
|
modalID: e.modalID
|
|
41430
41463
|
};
|
|
41431
41464
|
case "HIDE":
|
|
41432
|
-
return
|
|
41465
|
+
return Kl;
|
|
41433
41466
|
// case 'UPDATE':
|
|
41434
41467
|
// return { ...state, ok: action.ok, cancel: action.cancel };
|
|
41435
41468
|
default:
|
|
41436
|
-
return
|
|
41469
|
+
return Kl;
|
|
41437
41470
|
}
|
|
41438
41471
|
}
|
|
41439
41472
|
function hF() {
|
|
@@ -41467,7 +41500,7 @@ function hF() {
|
|
|
41467
41500
|
}
|
|
41468
41501
|
function pF() {
|
|
41469
41502
|
let { onConfirm: t, onCancel: e, confirmState: n } = hF(), { push: r, remove: i } = b.useContext(po), { defaults: o } = b.useContext(Ze);
|
|
41470
|
-
return
|
|
41503
|
+
return Aa([
|
|
41471
41504
|
["escape", e],
|
|
41472
41505
|
["enter", t]
|
|
41473
41506
|
]), b.useEffect(() => (r(n.modalID), () => i(n.modalID)), []), n.show ? /* @__PURE__ */ R("div", { className: "modal is-active", style: { zIndex: 9999 }, children: [
|
|
@@ -41484,7 +41517,7 @@ function pF() {
|
|
|
41484
41517
|
] }) })
|
|
41485
41518
|
] }) : null;
|
|
41486
41519
|
}
|
|
41487
|
-
const
|
|
41520
|
+
const Gl = {
|
|
41488
41521
|
show: !1,
|
|
41489
41522
|
content: "",
|
|
41490
41523
|
submit: "OK",
|
|
@@ -41500,13 +41533,13 @@ let Cs;
|
|
|
41500
41533
|
const xm = b.createContext(null);
|
|
41501
41534
|
xm.displayName = "PromptContext";
|
|
41502
41535
|
function gk({ children: t }) {
|
|
41503
|
-
let [e, n] = b.useReducer(mF,
|
|
41536
|
+
let [e, n] = b.useReducer(mF, Gl);
|
|
41504
41537
|
return /* @__PURE__ */ R(xm.Provider, { value: { state: e, setState: n }, children: [
|
|
41505
41538
|
e.show && /* @__PURE__ */ y(yF, {}),
|
|
41506
41539
|
t
|
|
41507
41540
|
] });
|
|
41508
41541
|
}
|
|
41509
|
-
function mF(t =
|
|
41542
|
+
function mF(t = Gl, e) {
|
|
41510
41543
|
switch (e.type) {
|
|
41511
41544
|
case "SHOW":
|
|
41512
41545
|
return {
|
|
@@ -41522,11 +41555,11 @@ function mF(t = Kl, e) {
|
|
|
41522
41555
|
inputProps: e.payload?.inputProps ? { ...e.payload.inputProps } : t.inputProps
|
|
41523
41556
|
};
|
|
41524
41557
|
case "HIDE":
|
|
41525
|
-
return
|
|
41558
|
+
return Gl;
|
|
41526
41559
|
case "UPDATE":
|
|
41527
41560
|
return { ...t, value: e.payload?.value ?? "" };
|
|
41528
41561
|
default:
|
|
41529
|
-
return
|
|
41562
|
+
return Gl;
|
|
41530
41563
|
}
|
|
41531
41564
|
}
|
|
41532
41565
|
function gF(t = { name: `prompt-input-${Dn(1e6, 2e6)}`, label: "", type: "text" }) {
|
|
@@ -41564,7 +41597,7 @@ function gF(t = { name: `prompt-input-${Dn(1e6, 2e6)}`, label: "", type: "text"
|
|
|
41564
41597
|
}
|
|
41565
41598
|
function yF() {
|
|
41566
41599
|
let { push: t, remove: e } = b.useContext(po), { onSubmit: n, onCancel: r, onUpdate: i, promptState: o } = gF(), { defaults: s } = b.useContext(Ze);
|
|
41567
|
-
return
|
|
41600
|
+
return Aa([
|
|
41568
41601
|
["escape", r],
|
|
41569
41602
|
["enter", n]
|
|
41570
41603
|
]), b.useEffect(() => (t(o.modalID), () => e(o.modalID)), []), o.show ? /* @__PURE__ */ R("div", { className: "modal is-active", style: { zIndex: 9999 }, children: [
|
|
@@ -41594,23 +41627,23 @@ function yF() {
|
|
|
41594
41627
|
] }) })
|
|
41595
41628
|
] }) : null;
|
|
41596
41629
|
}
|
|
41597
|
-
let
|
|
41630
|
+
let Il;
|
|
41598
41631
|
const Nm = b.createContext(null);
|
|
41599
41632
|
Nm.displayName = "ActionSheetContext";
|
|
41600
|
-
let
|
|
41633
|
+
let ql = {
|
|
41601
41634
|
show: !1,
|
|
41602
41635
|
content: "",
|
|
41603
41636
|
buttons: [],
|
|
41604
41637
|
modalID: -1
|
|
41605
41638
|
};
|
|
41606
41639
|
function yk({ children: t }) {
|
|
41607
|
-
let [e, n] = b.useReducer(vF,
|
|
41640
|
+
let [e, n] = b.useReducer(vF, ql);
|
|
41608
41641
|
return /* @__PURE__ */ R(Nm.Provider, { value: { state: e, setState: n }, children: [
|
|
41609
41642
|
e.show && /* @__PURE__ */ y(wF, {}),
|
|
41610
41643
|
t
|
|
41611
41644
|
] });
|
|
41612
41645
|
}
|
|
41613
|
-
function vF(t =
|
|
41646
|
+
function vF(t = ql, e) {
|
|
41614
41647
|
switch (e.type) {
|
|
41615
41648
|
case "SHOW":
|
|
41616
41649
|
return {
|
|
@@ -41621,11 +41654,11 @@ function vF(t = Gl, e) {
|
|
|
41621
41654
|
modalID: e.modalID
|
|
41622
41655
|
};
|
|
41623
41656
|
case "HIDE":
|
|
41624
|
-
return
|
|
41657
|
+
return ql;
|
|
41625
41658
|
case "UPDATE":
|
|
41626
41659
|
return { ...t, value: e.payload?.value };
|
|
41627
41660
|
default:
|
|
41628
|
-
return
|
|
41661
|
+
return ql;
|
|
41629
41662
|
}
|
|
41630
41663
|
}
|
|
41631
41664
|
function bF() {
|
|
@@ -41633,10 +41666,10 @@ function bF() {
|
|
|
41633
41666
|
if (!t) throw new Error("useConfirm must be used inside a ConfirmProvider or DialogsProvider");
|
|
41634
41667
|
let { pop: e } = b.useContext(po);
|
|
41635
41668
|
function n(s) {
|
|
41636
|
-
o(),
|
|
41669
|
+
o(), Il(typeof s == "string" ? s : s.value);
|
|
41637
41670
|
}
|
|
41638
41671
|
function r() {
|
|
41639
|
-
o(),
|
|
41672
|
+
o(), Il(void 0);
|
|
41640
41673
|
}
|
|
41641
41674
|
function i({ content: s, buttons: a }) {
|
|
41642
41675
|
return t?.setState({
|
|
@@ -41646,7 +41679,7 @@ function bF() {
|
|
|
41646
41679
|
buttons: a,
|
|
41647
41680
|
modalID: Dn(1e6, 2e6)
|
|
41648
41681
|
}), new Promise(function(l) {
|
|
41649
|
-
|
|
41682
|
+
Il = l;
|
|
41650
41683
|
});
|
|
41651
41684
|
}
|
|
41652
41685
|
function o() {
|
|
@@ -41656,7 +41689,7 @@ function bF() {
|
|
|
41656
41689
|
}
|
|
41657
41690
|
function wF() {
|
|
41658
41691
|
let { onAction: t, onCancel: e, actionSheetState: n } = bF(), { push: r, remove: i } = b.useContext(po), o = b.useMemo(() => n.buttons.map((s) => typeof s == "string" ? null : s.key ? [s.key, () => t(s)] : null).filter((s) => s !== null), [n.buttons]);
|
|
41659
|
-
return
|
|
41692
|
+
return Aa([...o, ["escape", e]]), b.useEffect(() => (r(n.modalID), () => i(n.modalID)), []), n.show ? /* @__PURE__ */ R("div", { className: "modal is-active", style: { zIndex: 9999 }, children: [
|
|
41660
41693
|
/* @__PURE__ */ y("div", { className: "modal-background" }),
|
|
41661
41694
|
/* @__PURE__ */ y("div", { className: "modal-content", children: /* @__PURE__ */ R(Lh, { children: [
|
|
41662
41695
|
/* @__PURE__ */ y("button", { className: "delete dismiss is-pulled-right", "aria-label": "close", onClick: e }),
|
|
@@ -42552,7 +42585,7 @@ function fr(t, e) {
|
|
|
42552
42585
|
function Vs(t) {
|
|
42553
42586
|
return t === 0 ? 0 : 10 - t;
|
|
42554
42587
|
}
|
|
42555
|
-
function
|
|
42588
|
+
function Xc(t) {
|
|
42556
42589
|
return t === 0 ? 0 : t === 1 ? 1 : 11 - t;
|
|
42557
42590
|
}
|
|
42558
42591
|
function Pz(t, e) {
|
|
@@ -42619,7 +42652,7 @@ function WF(t) {
|
|
|
42619
42652
|
}
|
|
42620
42653
|
function VF(t) {
|
|
42621
42654
|
let e = [4, 8, 5, 10, 9, 7, 3, 6], n = [1, 2, 4, 8, 5, 10, 9, 7, 3, 6], r = parseInt(t.charAt(8), 10), i = parseInt(t.charAt(9), 10), o = t.substring(0, 8), s = t.substring(10, 20), a = fr(o, e), l = a % 11;
|
|
42622
|
-
return r !==
|
|
42655
|
+
return r !== Xc(l) ? !1 : (a = fr(s, n), l = a % 11, i === Xc(l));
|
|
42623
42656
|
}
|
|
42624
42657
|
function KF(t) {
|
|
42625
42658
|
let e = [3, 9, 7, 1, 3, 9, 7], n = parseInt(t.charAt(7), 10), r = t.substring(0, 7), o = fr(r, e) % 10;
|
|
@@ -42639,7 +42672,7 @@ function YF(t) {
|
|
|
42639
42672
|
}
|
|
42640
42673
|
function XF(t) {
|
|
42641
42674
|
let e = [10, 5, 8, 4, 2, 1], n = [6, 3, 7, 9, 10, 5, 8, 4, 2, 1], r = parseInt(t.charAt(9), 10), i = parseInt(t.charAt(19), 10), o = t.substring(4, 9), s = t.substring(10, 19), a = fr(o, e), l = a % 11;
|
|
42642
|
-
return r !==
|
|
42675
|
+
return r !== Xc(l) ? !1 : (a = fr(s, n), l = a % 11, i === Xc(l));
|
|
42643
42676
|
}
|
|
42644
42677
|
function JF(t) {
|
|
42645
42678
|
let e = [9, 7, 3, 1, 9, 7, 3, 1, 9, 7, 3, 1, 9, 7, 3], n = parseInt(t.charAt(7), 10), r = t.substring(0, 7), i = fr(r, e), o = i % 10;
|
|
@@ -42701,12 +42734,12 @@ function _z(t) {
|
|
|
42701
42734
|
let e;
|
|
42702
42735
|
if (t) {
|
|
42703
42736
|
if (e = t.replace(/\s/g, "").toUpperCase(), e.length !== 4) {
|
|
42704
|
-
let l = Math.floor(Math.random() *
|
|
42705
|
-
e =
|
|
42737
|
+
let l = Math.floor(Math.random() * Rl.length);
|
|
42738
|
+
e = Rl[l]?.code ?? "ASNB";
|
|
42706
42739
|
}
|
|
42707
42740
|
} else {
|
|
42708
|
-
let l = Math.floor(Math.random() *
|
|
42709
|
-
e =
|
|
42741
|
+
let l = Math.floor(Math.random() * Rl.length);
|
|
42742
|
+
e = Rl[l]?.code ?? "ASNB";
|
|
42710
42743
|
}
|
|
42711
42744
|
let n = "";
|
|
42712
42745
|
for (let l = 0; l < 10; l++) n += Math.floor(Math.random() * 10);
|
|
@@ -42716,7 +42749,7 @@ function _z(t) {
|
|
|
42716
42749
|
let o = vk(r + "NL00");
|
|
42717
42750
|
return `NL${(98 - Tm(o)).toString().padStart(2, "0")}${r}`;
|
|
42718
42751
|
}
|
|
42719
|
-
const
|
|
42752
|
+
const Rl = [
|
|
42720
42753
|
{ code: "ABNA", name: "ABN AMRO BANK N.V.", bic: "ABNANL2A" },
|
|
42721
42754
|
{ code: "ABNC", name: "ABN AMRO Clearing Bank N.V.", bic: "ABNCNL2A" },
|
|
42722
42755
|
{ code: "ADYB", name: "ADYEN", bic: "ADYBNL2A" },
|
|
@@ -43210,7 +43243,7 @@ export {
|
|
|
43210
43243
|
L2 as ButtonGroup,
|
|
43211
43244
|
L2 as Buttons,
|
|
43212
43245
|
gR as CB,
|
|
43213
|
-
|
|
43246
|
+
Rl as COMMON_DUTCH_BANKS,
|
|
43214
43247
|
J9 as Calendar,
|
|
43215
43248
|
mR as CheckBox,
|
|
43216
43249
|
A9 as CodeBlock,
|
|
@@ -43227,7 +43260,7 @@ export {
|
|
|
43227
43260
|
S9 as Content,
|
|
43228
43261
|
CM as ContextMenu,
|
|
43229
43262
|
gz as CurrencyInput,
|
|
43230
|
-
|
|
43263
|
+
cl as DOTS,
|
|
43231
43264
|
H9 as DataTable,
|
|
43232
43265
|
dz as DateInput,
|
|
43233
43266
|
hz as DateTimeInput,
|
|
@@ -43289,7 +43322,7 @@ export {
|
|
|
43289
43322
|
uz as NumberInput,
|
|
43290
43323
|
kt as OR,
|
|
43291
43324
|
c4 as Pagination,
|
|
43292
|
-
|
|
43325
|
+
Ta as Panel,
|
|
43293
43326
|
oz as PasswordInput,
|
|
43294
43327
|
G9 as ProgressBar,
|
|
43295
43328
|
gk as PromptProvider,
|
|
@@ -43306,7 +43339,7 @@ export {
|
|
|
43306
43339
|
C2 as Steps,
|
|
43307
43340
|
x2 as TabBar,
|
|
43308
43341
|
lt as Table,
|
|
43309
|
-
|
|
43342
|
+
ic as Tag,
|
|
43310
43343
|
H4 as Tags,
|
|
43311
43344
|
tz as TagsInput,
|
|
43312
43345
|
rz as TelephoneInput,
|
|
@@ -43316,7 +43349,7 @@ export {
|
|
|
43316
43349
|
pz as TimeInput,
|
|
43317
43350
|
N2 as TimeLine,
|
|
43318
43351
|
Ye as ToggleBar,
|
|
43319
|
-
|
|
43352
|
+
Sa as Tooltip,
|
|
43320
43353
|
Y9 as TreeView,
|
|
43321
43354
|
iz as URLInput,
|
|
43322
43355
|
yz as WeekInput,
|
|
@@ -43381,7 +43414,7 @@ export {
|
|
|
43381
43414
|
L9 as useDebouncedState,
|
|
43382
43415
|
xM as useDebouncedValue,
|
|
43383
43416
|
Iz as useFetchAPI,
|
|
43384
|
-
|
|
43417
|
+
Aa as useHotkeys,
|
|
43385
43418
|
Rz as useIndexedDB,
|
|
43386
43419
|
V9 as useIsHotkeyRegistered,
|
|
43387
43420
|
K9 as useKeyContext,
|