@storyblok/astro 9.0.8 → 9.0.9
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/storyblok-astro.es.js +201 -194
- package/dist/storyblok-astro.umd.js +12 -12
- package/package.json +2 -2
|
@@ -315,14 +315,14 @@ function Fc(t, e) {
|
|
|
315
315
|
a = p[c], n = a.name, s = a.namespaceURI, s ? (n = a.localName || n, e.hasAttributeNS(s, n) || t.removeAttributeNS(s, n)) : e.hasAttribute(n) || t.removeAttribute(n);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var vo, _c = "http://www.w3.org/1999/xhtml", fe = typeof document > "u" ? void 0 : document, Dc = !!fe && "content" in fe.createElement("template"), wc = !!fe && fe.createRange && "createContextualFragment" in fe.createRange();
|
|
319
319
|
function Ic(t) {
|
|
320
320
|
var e = fe.createElement("template");
|
|
321
321
|
return e.innerHTML = t, e.content.childNodes[0];
|
|
322
322
|
}
|
|
323
323
|
function Cc(t) {
|
|
324
|
-
|
|
325
|
-
var e =
|
|
324
|
+
vo || (vo = fe.createRange(), vo.selectNode(fe.body));
|
|
325
|
+
var e = vo.createContextualFragment(t);
|
|
326
326
|
return e.childNodes[0];
|
|
327
327
|
}
|
|
328
328
|
function Ec(t) {
|
|
@@ -332,7 +332,7 @@ function Ec(t) {
|
|
|
332
332
|
function Ac(t) {
|
|
333
333
|
return t = t.trim(), Dc ? Ic(t) : wc ? Cc(t) : Ec(t);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ko(t, e) {
|
|
336
336
|
var o = t.nodeName, a = e.nodeName, n, s;
|
|
337
337
|
return o === a ? !0 : (n = o.charCodeAt(0), s = a.charCodeAt(0), n <= 90 && s >= 97 ? o === a.toUpperCase() : s <= 90 && n >= 97 ? a === o.toUpperCase() : !1);
|
|
338
338
|
}
|
|
@@ -447,7 +447,7 @@ function Mc(t) {
|
|
|
447
447
|
var P = A.nextSibling, $ = l(A);
|
|
448
448
|
if ($) {
|
|
449
449
|
var W = j[$];
|
|
450
|
-
W &&
|
|
450
|
+
W && ko(A, W) ? (A.parentNode.replaceChild(W, A), R(W, A)) : z(A);
|
|
451
451
|
} else
|
|
452
452
|
z(A);
|
|
453
453
|
A = P;
|
|
@@ -488,7 +488,7 @@ function Mc(t) {
|
|
|
488
488
|
D,
|
|
489
489
|
!0
|
|
490
490
|
/* skip keyed nodes */
|
|
491
|
-
), W = de, ue = l(W)) : Se = !1) : ue && (Se = !1), Se = Se !== !1 &&
|
|
491
|
+
), W = de, ue = l(W)) : Se = !1) : ue && (Se = !1), Se = Se !== !1 && ko(W, $), Se && R(W, $)) : (ct === ir || ct == lr) && (Se = !0, W.nodeValue !== $.nodeValue && (W.nodeValue = $.nodeValue))), Se) {
|
|
492
492
|
$ = Ve, W = Ie;
|
|
493
493
|
continue e;
|
|
494
494
|
}
|
|
@@ -499,7 +499,7 @@ function Mc(t) {
|
|
|
499
499
|
/* skip keyed nodes */
|
|
500
500
|
), W = Ie;
|
|
501
501
|
}
|
|
502
|
-
if (xe && (de = j[xe]) &&
|
|
502
|
+
if (xe && (de = j[xe]) && ko(de, $))
|
|
503
503
|
P || b(D, de), R(de, $);
|
|
504
504
|
else {
|
|
505
505
|
var Ja = p($);
|
|
@@ -514,7 +514,7 @@ function Mc(t) {
|
|
|
514
514
|
var T = o, M = T.nodeType, O = a.nodeType;
|
|
515
515
|
if (!v) {
|
|
516
516
|
if (M === $t)
|
|
517
|
-
O === $t ?
|
|
517
|
+
O === $t ? ko(o, a) || (g(o), T = Sc(o, xc(a.nodeName, a.namespaceURI))) : T = a;
|
|
518
518
|
else if (M === ir || M === lr) {
|
|
519
519
|
if (O === M)
|
|
520
520
|
return T.nodeValue !== a.nodeValue && (T.nodeValue = a.nodeValue), T;
|
|
@@ -537,7 +537,7 @@ function Mc(t) {
|
|
|
537
537
|
}
|
|
538
538
|
var Bc = Mc(Fc);
|
|
539
539
|
let Xa, Vo = null;
|
|
540
|
-
const Rc = 500, Lc = "__STORYBLOK_SERVERDATA__", Mi = "data-blok-focused",
|
|
540
|
+
const Rc = 500, Lc = "__STORYBLOK_SERVERDATA__", Mi = "data-blok-focused", Gt = "data-blok-uid", Nc = "data-preserve-state", zc = "storyblok-live-preview", Oc = "storyblok-live-preview-updating", pr = "storyblok-live-preview-updated";
|
|
541
541
|
function $c() {
|
|
542
542
|
const t = document.querySelector(
|
|
543
543
|
`meta[name="${zc}"]`
|
|
@@ -580,9 +580,9 @@ async function Pc(t) {
|
|
|
580
580
|
qc(o, n, s), Ya(pr, { story: t });
|
|
581
581
|
}
|
|
582
582
|
function Hc(t, e) {
|
|
583
|
-
const o = t.attributes.getNamedItem(
|
|
583
|
+
const o = t.attributes.getNamedItem(Gt)?.value, a = e.attributes.getNamedItem(Gt)?.value;
|
|
584
584
|
o === a && Array.from(t.attributes).forEach((n) => {
|
|
585
|
-
if (n.name ===
|
|
585
|
+
if (n.name === Gt)
|
|
586
586
|
return;
|
|
587
587
|
const s = n.value, r = e.getAttribute(n.name);
|
|
588
588
|
(!e.hasAttribute(n.name) || r !== s) && e.setAttribute(n.name, s);
|
|
@@ -591,7 +591,7 @@ function Hc(t, e) {
|
|
|
591
591
|
function qc(t, e, o) {
|
|
592
592
|
let a = !0;
|
|
593
593
|
if (o) {
|
|
594
|
-
const n = o.getAttribute(
|
|
594
|
+
const n = o.getAttribute(Gt), s = e.querySelector(
|
|
595
595
|
`[data-blok-uid="${n}"]`
|
|
596
596
|
);
|
|
597
597
|
s && (s.setAttribute(Mi, "true"), cr(o, s), a = !1);
|
|
@@ -600,7 +600,7 @@ function qc(t, e, o) {
|
|
|
600
600
|
}
|
|
601
601
|
function Wc(t) {
|
|
602
602
|
if (t.nodeType === 1) {
|
|
603
|
-
const e = t.getAttribute(
|
|
603
|
+
const e = t.getAttribute(Gt);
|
|
604
604
|
if (e)
|
|
605
605
|
return e;
|
|
606
606
|
}
|
|
@@ -988,15 +988,15 @@ class k {
|
|
|
988
988
|
*/
|
|
989
989
|
findIndex(e) {
|
|
990
990
|
if (e == 0)
|
|
991
|
-
return
|
|
991
|
+
return yo(0, e);
|
|
992
992
|
if (e == this.size)
|
|
993
|
-
return
|
|
993
|
+
return yo(this.content.length, e);
|
|
994
994
|
if (e > this.size || e < 0)
|
|
995
995
|
throw new RangeError(`Position ${e} outside of fragment (${this})`);
|
|
996
996
|
for (let o = 0, a = 0; ; o++) {
|
|
997
997
|
let n = this.child(o), s = a + n.nodeSize;
|
|
998
998
|
if (s >= e)
|
|
999
|
-
return s == e ?
|
|
999
|
+
return s == e ? yo(o + 1, s) : yo(o, a);
|
|
1000
1000
|
a = s;
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
@@ -1062,7 +1062,7 @@ class k {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
k.empty = new k([], 0);
|
|
1064
1064
|
const Za = { index: 0, offset: 0 };
|
|
1065
|
-
function
|
|
1065
|
+
function yo(t, e) {
|
|
1066
1066
|
return Za.index = t, Za.offset = e, Za;
|
|
1067
1067
|
}
|
|
1068
1068
|
function Ko(t, e) {
|
|
@@ -1330,7 +1330,7 @@ function ft(t, e) {
|
|
|
1330
1330
|
let o = e.length - 1;
|
|
1331
1331
|
o >= 0 && t.isText && t.sameMarkup(e[o]) ? e[o] = t.withText(e[o].text + t.text) : e.push(t);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Xt(t, e, o, a) {
|
|
1334
1334
|
let n = (e || t).node(o), s = 0, r = e ? e.index(o) : n.childCount;
|
|
1335
1335
|
t && (s = t.index(o), t.depth > o ? s++ : t.textOffset && (ft(t.nodeAfter, a), s++));
|
|
1336
1336
|
for (let i = s; i < r; i++)
|
|
@@ -1342,15 +1342,15 @@ function ht(t, e) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
function $i(t, e, o, a, n) {
|
|
1344
1344
|
let s = t.depth > n && An(t, e, n + 1), r = a.depth > n && An(o, a, n + 1), i = [];
|
|
1345
|
-
return
|
|
1345
|
+
return Xt(null, t, n, i), s && r && e.index(n) == o.index(n) ? (Oi(s, r), ft(ht(s, $i(t, e, o, a, n + 1)), i)) : (s && ft(ht(s, Go(t, e, n + 1)), i), Xt(e, o, n, i), r && ft(ht(r, Go(o, a, n + 1)), i)), Xt(a, null, n, i), new k(i);
|
|
1346
1346
|
}
|
|
1347
1347
|
function Go(t, e, o) {
|
|
1348
1348
|
let a = [];
|
|
1349
|
-
if (
|
|
1349
|
+
if (Xt(null, t, o, a), t.depth > o) {
|
|
1350
1350
|
let n = An(t, e, o + 1);
|
|
1351
1351
|
ft(ht(n, Go(t, e, o + 1)), a);
|
|
1352
1352
|
}
|
|
1353
|
-
return
|
|
1353
|
+
return Xt(e, null, o, a), new k(a);
|
|
1354
1354
|
}
|
|
1355
1355
|
function Xc(t, e) {
|
|
1356
1356
|
let o = e.depth - t.openStart, n = e.node(o).copy(t.content);
|
|
@@ -1361,7 +1361,7 @@ function Xc(t, e) {
|
|
|
1361
1361
|
end: n.resolveNoCache(n.content.size - t.openEnd - o)
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
class
|
|
1364
|
+
class so {
|
|
1365
1365
|
/**
|
|
1366
1366
|
@internal
|
|
1367
1367
|
*/
|
|
@@ -1589,7 +1589,7 @@ class ao {
|
|
|
1589
1589
|
break;
|
|
1590
1590
|
s = p - 1, n += l + 1;
|
|
1591
1591
|
}
|
|
1592
|
-
return new
|
|
1592
|
+
return new so(o, a, s);
|
|
1593
1593
|
}
|
|
1594
1594
|
/**
|
|
1595
1595
|
@internal
|
|
@@ -1604,7 +1604,7 @@ class ao {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
else
|
|
1606
1606
|
mr.set(e, a = new Yc());
|
|
1607
|
-
let n = a.elts[a.i] =
|
|
1607
|
+
let n = a.elts[a.i] = so.resolve(e, o);
|
|
1608
1608
|
return a.i = (a.i + 1) % Zc, n;
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
@@ -1859,13 +1859,13 @@ class Be {
|
|
|
1859
1859
|
[object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
|
|
1860
1860
|
*/
|
|
1861
1861
|
resolve(e) {
|
|
1862
|
-
return
|
|
1862
|
+
return so.resolveCached(this, e);
|
|
1863
1863
|
}
|
|
1864
1864
|
/**
|
|
1865
1865
|
@internal
|
|
1866
1866
|
*/
|
|
1867
1867
|
resolveNoCache(e) {
|
|
1868
|
-
return
|
|
1868
|
+
return so.resolve(this, e);
|
|
1869
1869
|
}
|
|
1870
1870
|
/**
|
|
1871
1871
|
Test whether a given mark or mark type occurs in this document
|
|
@@ -2948,13 +2948,13 @@ const Gi = {
|
|
|
2948
2948
|
script: !0,
|
|
2949
2949
|
style: !0,
|
|
2950
2950
|
title: !0
|
|
2951
|
-
}, Xi = { ol: !0, ul: !0 },
|
|
2951
|
+
}, Xi = { ol: !0, ul: !0 }, ro = 1, Sn = 2, Yt = 4;
|
|
2952
2952
|
function hr(t, e, o) {
|
|
2953
|
-
return e != null ? (e ?
|
|
2953
|
+
return e != null ? (e ? ro : 0) | (e === "full" ? Sn : 0) : t && t.whitespace == "pre" ? ro | Sn : o & ~Yt;
|
|
2954
2954
|
}
|
|
2955
|
-
class
|
|
2955
|
+
class Fo {
|
|
2956
2956
|
constructor(e, o, a, n, s, r) {
|
|
2957
|
-
this.type = e, this.attrs = o, this.marks = a, this.solid = n, this.options = r, this.content = [], this.activeMarks = K.none, this.match = s || (r &
|
|
2957
|
+
this.type = e, this.attrs = o, this.marks = a, this.solid = n, this.options = r, this.content = [], this.activeMarks = K.none, this.match = s || (r & Yt ? null : e.contentMatch);
|
|
2958
2958
|
}
|
|
2959
2959
|
findWrapping(e) {
|
|
2960
2960
|
if (!this.match) {
|
|
@@ -2971,7 +2971,7 @@ class ko {
|
|
|
2971
2971
|
return this.match.findWrapping(e.type);
|
|
2972
2972
|
}
|
|
2973
2973
|
finish(e) {
|
|
2974
|
-
if (!(this.options &
|
|
2974
|
+
if (!(this.options & ro)) {
|
|
2975
2975
|
let a = this.content[this.content.length - 1], n;
|
|
2976
2976
|
if (a && a.isText && (n = /[ \t\r\n\u000c]+$/.exec(a.text))) {
|
|
2977
2977
|
let s = a;
|
|
@@ -2988,8 +2988,8 @@ class ko {
|
|
|
2988
2988
|
class br {
|
|
2989
2989
|
constructor(e, o, a) {
|
|
2990
2990
|
this.parser = e, this.options = o, this.isOpen = a, this.open = 0, this.localPreserveWS = !1;
|
|
2991
|
-
let n = o.topNode, s, r = hr(null, o.preserveWhitespace, 0) | (a ?
|
|
2992
|
-
n ? s = new
|
|
2991
|
+
let n = o.topNode, s, r = hr(null, o.preserveWhitespace, 0) | (a ? Yt : 0);
|
|
2992
|
+
n ? s = new Fo(n.type, n.attrs, K.none, !0, o.topMatch || n.type.contentMatch, r) : a ? s = new Fo(null, null, K.none, !0, null, r) : s = new Fo(e.schema.topNodeType, null, K.none, !0, null, r), this.nodes = [s], this.find = o.findPositions, this.needsBlock = !1;
|
|
2993
2993
|
}
|
|
2994
2994
|
get top() {
|
|
2995
2995
|
return this.nodes[this.open];
|
|
@@ -3001,7 +3001,7 @@ class br {
|
|
|
3001
3001
|
e.nodeType == 3 ? this.addTextNode(e, o) : e.nodeType == 1 && this.addElement(e, o);
|
|
3002
3002
|
}
|
|
3003
3003
|
addTextNode(e, o) {
|
|
3004
|
-
let a = e.nodeValue, n = this.top, s = n.options & Sn ? "full" : this.localPreserveWS || (n.options &
|
|
3004
|
+
let a = e.nodeValue, n = this.top, s = n.options & Sn ? "full" : this.localPreserveWS || (n.options & ro) > 0, { schema: r } = this.parser;
|
|
3005
3005
|
if (s === "full" || n.inlineContext(e) || /[^ \t\r\n\u000c]/.test(a)) {
|
|
3006
3006
|
if (s)
|
|
3007
3007
|
if (s === "full")
|
|
@@ -3171,9 +3171,9 @@ class br {
|
|
|
3171
3171
|
let r = this.top;
|
|
3172
3172
|
r.match = r.match && r.match.matchType(e);
|
|
3173
3173
|
let i = hr(e, s, r.options);
|
|
3174
|
-
r.options &
|
|
3174
|
+
r.options & Yt && r.content.length == 0 && (i |= Yt);
|
|
3175
3175
|
let l = K.none;
|
|
3176
|
-
return a = a.filter((p) => (r.type ? r.type.allowsMarkType(p.type) : vr(p.type, e)) ? (l = p.addToSet(l), !1) : !0), this.nodes.push(new
|
|
3176
|
+
return a = a.filter((p) => (r.type ? r.type.allowsMarkType(p.type) : vr(p.type, e)) ? (l = p.addToSet(l), !1) : !0), this.nodes.push(new Fo(e, o, l, n, null, i)), this.open++, a;
|
|
3177
3177
|
}
|
|
3178
3178
|
// Make sure all nodes above this.open are finished and added to
|
|
3179
3179
|
// their parents
|
|
@@ -3192,7 +3192,7 @@ class br {
|
|
|
3192
3192
|
for (let o = this.open; o >= 0; o--) {
|
|
3193
3193
|
if (this.nodes[o] == e)
|
|
3194
3194
|
return this.open = o, !0;
|
|
3195
|
-
this.localPreserveWS && (this.nodes[o].options |=
|
|
3195
|
+
this.localPreserveWS && (this.nodes[o].options |= ro);
|
|
3196
3196
|
}
|
|
3197
3197
|
return !1;
|
|
3198
3198
|
}
|
|
@@ -4462,9 +4462,9 @@ class Lm {
|
|
|
4462
4462
|
let { content: e, openStart: o, openEnd: a } = this.unplaced, n = tn(e, o);
|
|
4463
4463
|
if (n.childCount <= 1 && o > 0) {
|
|
4464
4464
|
let s = e.size - o <= o + n.size;
|
|
4465
|
-
this.unplaced = new w(
|
|
4465
|
+
this.unplaced = new w(Ut(e, o - 1, 1), o - 1, s ? o - 1 : a);
|
|
4466
4466
|
} else
|
|
4467
|
-
this.unplaced = new w(
|
|
4467
|
+
this.unplaced = new w(Ut(e, o, 1), o, a);
|
|
4468
4468
|
}
|
|
4469
4469
|
// Move content from the unplaced slice at `sliceDepth` to the
|
|
4470
4470
|
// frontier node at `frontierDepth`. Close that frontier node when
|
|
@@ -4489,12 +4489,12 @@ class Lm {
|
|
|
4489
4489
|
p++, (p > 1 || l == 0 || f.content.size) && (m = h, c.push(rl(f.mark(u.allowedMarks(f.marks)), p == 1 ? l : 0, p == i.childCount ? d : -1)));
|
|
4490
4490
|
}
|
|
4491
4491
|
let g = p == i.childCount;
|
|
4492
|
-
g || (d = -1), this.placed =
|
|
4492
|
+
g || (d = -1), this.placed = Vt(this.placed, o, k.from(c)), this.frontier[o].match = m, g && d < 0 && a && a.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
4493
4493
|
for (let f = 0, h = i; f < d; f++) {
|
|
4494
4494
|
let b = h.lastChild;
|
|
4495
4495
|
this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), h = b.content;
|
|
4496
4496
|
}
|
|
4497
|
-
this.unplaced = g ? e == 0 ? w.empty : new w(
|
|
4497
|
+
this.unplaced = g ? e == 0 ? w.empty : new w(Ut(r.content, e - 1, 1), e - 1, d < 0 ? r.openEnd : e - 1) : new w(Ut(r.content, e, p), r.openStart, r.openEnd);
|
|
4498
4498
|
}
|
|
4499
4499
|
mustMoveInline() {
|
|
4500
4500
|
if (!this.$to.parent.isTextblock)
|
|
@@ -4526,7 +4526,7 @@ class Lm {
|
|
|
4526
4526
|
return null;
|
|
4527
4527
|
for (; this.depth > o.depth; )
|
|
4528
4528
|
this.closeFrontierNode();
|
|
4529
|
-
o.fit.childCount && (this.placed =
|
|
4529
|
+
o.fit.childCount && (this.placed = Vt(this.placed, o.depth, o.fit)), e = o.move;
|
|
4530
4530
|
for (let a = o.depth + 1; a <= e.depth; a++) {
|
|
4531
4531
|
let n = e.node(a), s = n.type.contentMatch.fillBefore(n.content, !0, e.index(a));
|
|
4532
4532
|
this.openFrontierNode(n.type, n.attrs, s);
|
|
@@ -4535,18 +4535,18 @@ class Lm {
|
|
|
4535
4535
|
}
|
|
4536
4536
|
openFrontierNode(e, o = null, a) {
|
|
4537
4537
|
let n = this.frontier[this.depth];
|
|
4538
|
-
n.match = n.match.matchType(e), this.placed =
|
|
4538
|
+
n.match = n.match.matchType(e), this.placed = Vt(this.placed, this.depth, k.from(e.create(o, a))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
4539
4539
|
}
|
|
4540
4540
|
closeFrontierNode() {
|
|
4541
4541
|
let o = this.frontier.pop().match.fillBefore(k.empty, !0);
|
|
4542
|
-
o.childCount && (this.placed =
|
|
4542
|
+
o.childCount && (this.placed = Vt(this.placed, this.frontier.length, o));
|
|
4543
4543
|
}
|
|
4544
4544
|
}
|
|
4545
|
-
function
|
|
4546
|
-
return e == 0 ? t.cutByIndex(o, t.childCount) : t.replaceChild(0, t.firstChild.copy(
|
|
4545
|
+
function Ut(t, e, o) {
|
|
4546
|
+
return e == 0 ? t.cutByIndex(o, t.childCount) : t.replaceChild(0, t.firstChild.copy(Ut(t.firstChild.content, e - 1, o)));
|
|
4547
4547
|
}
|
|
4548
|
-
function
|
|
4549
|
-
return e == 0 ? t.append(o) : t.replaceChild(t.childCount - 1, t.lastChild.copy(
|
|
4548
|
+
function Vt(t, e, o) {
|
|
4549
|
+
return e == 0 ? t.append(o) : t.replaceChild(t.childCount - 1, t.lastChild.copy(Vt(t.lastChild.content, e - 1, o)));
|
|
4550
4550
|
}
|
|
4551
4551
|
function tn(t, e) {
|
|
4552
4552
|
for (let o = 0; o < e; o++)
|
|
@@ -4702,7 +4702,7 @@ class Mt extends me {
|
|
|
4702
4702
|
}
|
|
4703
4703
|
}
|
|
4704
4704
|
me.jsonID("attr", Mt);
|
|
4705
|
-
class
|
|
4705
|
+
class io extends me {
|
|
4706
4706
|
/**
|
|
4707
4707
|
Construct an attribute step.
|
|
4708
4708
|
*/
|
|
@@ -4721,7 +4721,7 @@ class so extends me {
|
|
|
4721
4721
|
return je.empty;
|
|
4722
4722
|
}
|
|
4723
4723
|
invert(e) {
|
|
4724
|
-
return new
|
|
4724
|
+
return new io(this.attr, e.attrs[this.attr]);
|
|
4725
4725
|
}
|
|
4726
4726
|
map(e) {
|
|
4727
4727
|
return this;
|
|
@@ -4732,10 +4732,10 @@ class so extends me {
|
|
|
4732
4732
|
static fromJSON(e, o) {
|
|
4733
4733
|
if (typeof o.attr != "string")
|
|
4734
4734
|
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
4735
|
-
return new
|
|
4735
|
+
return new io(o.attr, o.value);
|
|
4736
4736
|
}
|
|
4737
4737
|
}
|
|
4738
|
-
me.jsonID("docAttr",
|
|
4738
|
+
me.jsonID("docAttr", io);
|
|
4739
4739
|
let Rt = class extends Error {
|
|
4740
4740
|
};
|
|
4741
4741
|
Rt = function t(e) {
|
|
@@ -4924,7 +4924,7 @@ class pl {
|
|
|
4924
4924
|
Set a single attribute on the document to a new value.
|
|
4925
4925
|
*/
|
|
4926
4926
|
setDocAttribute(e, o) {
|
|
4927
|
-
return this.step(new
|
|
4927
|
+
return this.step(new io(e, o)), this;
|
|
4928
4928
|
}
|
|
4929
4929
|
/**
|
|
4930
4930
|
Add a mark to the node at position `pos`.
|
|
@@ -5384,33 +5384,33 @@ function Ir(t, e, o) {
|
|
|
5384
5384
|
function Cr(t, e) {
|
|
5385
5385
|
return !e || !t ? t : t.bind(e);
|
|
5386
5386
|
}
|
|
5387
|
-
class
|
|
5387
|
+
class _o {
|
|
5388
5388
|
constructor(e, o, a) {
|
|
5389
5389
|
this.name = e, this.init = Cr(o.init, a), this.apply = Cr(o.apply, a);
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
|
-
new
|
|
5392
|
+
new _o("doc", {
|
|
5393
5393
|
init(t) {
|
|
5394
5394
|
return t.doc || t.schema.topNodeType.createAndFill();
|
|
5395
5395
|
},
|
|
5396
5396
|
apply(t) {
|
|
5397
5397
|
return t.doc;
|
|
5398
5398
|
}
|
|
5399
|
-
}), new
|
|
5399
|
+
}), new _o("selection", {
|
|
5400
5400
|
init(t, e) {
|
|
5401
5401
|
return t.selection || B.atStart(e.doc);
|
|
5402
5402
|
},
|
|
5403
5403
|
apply(t) {
|
|
5404
5404
|
return t.selection;
|
|
5405
5405
|
}
|
|
5406
|
-
}), new
|
|
5406
|
+
}), new _o("storedMarks", {
|
|
5407
5407
|
init(t) {
|
|
5408
5408
|
return t.storedMarks || null;
|
|
5409
5409
|
},
|
|
5410
5410
|
apply(t, e, o, a) {
|
|
5411
5411
|
return a.selection.$cursor ? t.storedMarks : null;
|
|
5412
5412
|
}
|
|
5413
|
-
}), new
|
|
5413
|
+
}), new _o("scrollToSelection", {
|
|
5414
5414
|
init() {
|
|
5415
5415
|
return 0;
|
|
5416
5416
|
},
|
|
@@ -5960,9 +5960,9 @@ function Cl(t, e) {
|
|
|
5960
5960
|
let o = document.createEvent("Event");
|
|
5961
5961
|
return o.initEvent("keydown", !0, !0), o.keyCode = t, o.key = o.code = e, o;
|
|
5962
5962
|
}
|
|
5963
|
-
const Re = typeof navigator < "u" ? navigator : null, xr = typeof document < "u" ? document : null, lt = Re && Re.userAgent || "", Bn = /Edge\/(\d+)/.exec(lt), El = /MSIE \d/.exec(lt), Rn = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lt),
|
|
5963
|
+
const Re = typeof navigator < "u" ? navigator : null, xr = typeof document < "u" ? document : null, lt = Re && Re.userAgent || "", Bn = /Edge\/(\d+)/.exec(lt), El = /MSIE \d/.exec(lt), Rn = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lt), fo = !!(El || Rn || Bn), Al = El ? document.documentMode : Rn ? +Rn[1] : Bn ? +Bn[1] : 0, Ha = !fo && /gecko\/(\d+)/i.test(lt);
|
|
5964
5964
|
Ha && +(/Firefox\/(\d+)/.exec(lt) || [0, 0])[1];
|
|
5965
|
-
const Ln = !
|
|
5965
|
+
const Ln = !fo && /Chrome\/(\d+)/.exec(lt), We = !!Ln, xl = Ln ? +Ln[1] : 0, wt = !fo && !!Re && /Apple Computer/.test(Re.vendor), ys = wt && (/Mobile\/\w+/.test(lt) || !!Re && Re.maxTouchPoints > 2), we = ys || (Re ? /Mac/.test(Re.platform) : !1), Sl = Re ? /Win/.test(Re.platform) : !1, ho = /Android \d/.test(lt), Fs = !!xr && "webkitFontSmoothing" in xr.documentElement.style, mu = Fs ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5966
5966
|
function uu(t, e = null) {
|
|
5967
5967
|
let o = t.domSelectionRange(), a = t.state.doc;
|
|
5968
5968
|
if (!o.focusNode)
|
|
@@ -6056,7 +6056,7 @@ function gu(t) {
|
|
|
6056
6056
|
if (!e)
|
|
6057
6057
|
return;
|
|
6058
6058
|
let o = t.cursorWrapper.dom, a = o.nodeName == "IMG";
|
|
6059
|
-
a ? e.collapse(o.parentNode, Dt(o) + 1) : e.collapse(o, 0), !a && !t.state.selection.visible &&
|
|
6059
|
+
a ? e.collapse(o.parentNode, Dt(o) + 1) : e.collapse(o, 0), !a && !t.state.selection.visible && fo && Al <= 11 && (o.disabled = !0, o.disabled = !1);
|
|
6060
6060
|
}
|
|
6061
6061
|
function fu(t, e) {
|
|
6062
6062
|
if (e instanceof S) {
|
|
@@ -6121,7 +6121,7 @@ function Rr(t, e, o) {
|
|
|
6121
6121
|
function ea(t) {
|
|
6122
6122
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
6123
6123
|
}
|
|
6124
|
-
function
|
|
6124
|
+
function Zt(t, e) {
|
|
6125
6125
|
let o = t.pmViewDesc;
|
|
6126
6126
|
return o && o.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
6127
6127
|
}
|
|
@@ -6133,13 +6133,13 @@ function bu(t) {
|
|
|
6133
6133
|
if (!o)
|
|
6134
6134
|
return;
|
|
6135
6135
|
let n, s, r = !1;
|
|
6136
|
-
for (Ha && o.nodeType == 1 && a < ea(o) &&
|
|
6136
|
+
for (Ha && o.nodeType == 1 && a < ea(o) && Zt(o.childNodes[a], -1) && (r = !0); ; )
|
|
6137
6137
|
if (a > 0) {
|
|
6138
6138
|
if (o.nodeType != 1)
|
|
6139
6139
|
break;
|
|
6140
6140
|
{
|
|
6141
6141
|
let i = o.childNodes[a - 1];
|
|
6142
|
-
if (
|
|
6142
|
+
if (Zt(i, -1))
|
|
6143
6143
|
n = o, s = --a;
|
|
6144
6144
|
else if (i.nodeType == 3)
|
|
6145
6145
|
o = i, a = o.nodeValue.length;
|
|
@@ -6151,7 +6151,7 @@ function bu(t) {
|
|
|
6151
6151
|
break;
|
|
6152
6152
|
{
|
|
6153
6153
|
let i = o.previousSibling;
|
|
6154
|
-
for (; i &&
|
|
6154
|
+
for (; i && Zt(i, -1); )
|
|
6155
6155
|
n = o.parentNode, s = Dt(i), i = i.previousSibling;
|
|
6156
6156
|
if (i)
|
|
6157
6157
|
o = i, a = ea(o);
|
|
@@ -6174,7 +6174,7 @@ function ju(t) {
|
|
|
6174
6174
|
if (o.nodeType != 1)
|
|
6175
6175
|
break;
|
|
6176
6176
|
let i = o.childNodes[a];
|
|
6177
|
-
if (
|
|
6177
|
+
if (Zt(i, 1))
|
|
6178
6178
|
s = o, r = ++a;
|
|
6179
6179
|
else
|
|
6180
6180
|
break;
|
|
@@ -6183,7 +6183,7 @@ function ju(t) {
|
|
|
6183
6183
|
break;
|
|
6184
6184
|
{
|
|
6185
6185
|
let i = o.nextSibling;
|
|
6186
|
-
for (; i &&
|
|
6186
|
+
for (; i && Zt(i, 1); )
|
|
6187
6187
|
s = i.parentNode, r = Dt(i) + 1, i = i.nextSibling;
|
|
6188
6188
|
if (i)
|
|
6189
6189
|
o = i, a = 0, n = ea(o);
|
|
@@ -6529,7 +6529,7 @@ function ot(t, e) {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
Fe.keydown = (t, e) => {
|
|
6531
6531
|
let o = e;
|
|
6532
|
-
if (t.input.shiftKey = o.keyCode == 16 || o.shiftKey, !ql(t, o) && (t.input.lastKeyCode = o.keyCode, t.input.lastKeyCodeTime = Date.now(), !(
|
|
6532
|
+
if (t.input.shiftKey = o.keyCode == 16 || o.shiftKey, !ql(t, o) && (t.input.lastKeyCode = o.keyCode, t.input.lastKeyCodeTime = Date.now(), !(ho && We && o.keyCode == 13)))
|
|
6533
6533
|
if (o.keyCode != 229 && t.domObserver.forceFlush(), ys && o.keyCode == 13 && !o.ctrlKey && !o.altKey && !o.metaKey) {
|
|
6534
6534
|
let a = Date.now();
|
|
6535
6535
|
t.input.lastIOSEnter = a, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -6692,7 +6692,7 @@ Ee.contextmenu = (t) => ws(t);
|
|
|
6692
6692
|
function ql(t, e) {
|
|
6693
6693
|
return t.composing ? !0 : wt && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
6694
6694
|
}
|
|
6695
|
-
const zu =
|
|
6695
|
+
const zu = ho ? 5e3 : -1;
|
|
6696
6696
|
Fe.compositionstart = Fe.compositionupdate = (t) => {
|
|
6697
6697
|
if (!t.composing) {
|
|
6698
6698
|
t.domObserver.flush();
|
|
@@ -6739,7 +6739,7 @@ function Pu() {
|
|
|
6739
6739
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
|
6740
6740
|
}
|
|
6741
6741
|
function ta(t, e = !1) {
|
|
6742
|
-
if (!(
|
|
6742
|
+
if (!(ho && t.domObserver.flushingSoon >= 0)) {
|
|
6743
6743
|
if (t.domObserver.forceFlush(), $u(t), e || t.docView && t.docView.dirty) {
|
|
6744
6744
|
let o = uu(t), a = t.state.selection;
|
|
6745
6745
|
return o && !o.eq(a) ? t.dispatch(t.state.tr.setSelection(o)) : (t.markCursor || e) && !a.$from.node(a.$from.sharedDepth(a.to)).inlineContent ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
|
|
@@ -6757,12 +6757,12 @@ function Hu(t, e) {
|
|
|
6757
6757
|
o.parentNode && o.parentNode.removeChild(o), t.focus();
|
|
6758
6758
|
}, 50);
|
|
6759
6759
|
}
|
|
6760
|
-
const
|
|
6760
|
+
const lo = fo && Al < 15 || ys && mu < 604;
|
|
6761
6761
|
Ee.copy = Fe.cut = (t, e) => {
|
|
6762
6762
|
let o = e, a = t.state.selection, n = o.type == "cut";
|
|
6763
6763
|
if (a.empty)
|
|
6764
6764
|
return;
|
|
6765
|
-
let s =
|
|
6765
|
+
let s = lo ? null : o.clipboardData, r = a.content(), { dom: i, text: l } = Rl(t, r);
|
|
6766
6766
|
s ? (o.preventDefault(), s.clearData(), s.setData("text/html", i.innerHTML), s.setData("text/plain", l)) : Hu(t, i), n && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
6767
6767
|
};
|
|
6768
6768
|
function qu(t) {
|
|
@@ -6796,9 +6796,9 @@ function Ul(t) {
|
|
|
6796
6796
|
}
|
|
6797
6797
|
Fe.paste = (t, e) => {
|
|
6798
6798
|
let o = e;
|
|
6799
|
-
if (t.composing && !
|
|
6799
|
+
if (t.composing && !ho)
|
|
6800
6800
|
return;
|
|
6801
|
-
let a =
|
|
6801
|
+
let a = lo ? null : o.clipboardData, n = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
6802
6802
|
a && $n(t, Ul(a), a.getData("text/html"), n, o) ? o.preventDefault() : Wu(t, o);
|
|
6803
6803
|
};
|
|
6804
6804
|
class Uu {
|
|
@@ -6825,7 +6825,7 @@ Ee.dragstart = (t, e) => {
|
|
|
6825
6825
|
}
|
|
6826
6826
|
}
|
|
6827
6827
|
let i = (r || t.state.selection).content(), { dom: l, text: p, slice: c } = Rl(t, i);
|
|
6828
|
-
(!o.dataTransfer.files.length || !We || xl > 120) && o.dataTransfer.clearData(), o.dataTransfer.setData(
|
|
6828
|
+
(!o.dataTransfer.files.length || !We || xl > 120) && o.dataTransfer.clearData(), o.dataTransfer.setData(lo ? "Text" : "text/html", l.innerHTML), o.dataTransfer.effectAllowed = "copyMove", lo || o.dataTransfer.setData("text/plain", p), t.dragging = new Uu(c, Vl(t, o), r);
|
|
6829
6829
|
};
|
|
6830
6830
|
Ee.dragend = (t) => {
|
|
6831
6831
|
let e = t.dragging;
|
|
@@ -6850,7 +6850,7 @@ function Ku(t, e, o) {
|
|
|
6850
6850
|
let n = t.state.doc.resolve(a.pos), s = o && o.slice;
|
|
6851
6851
|
s ? t.someProp("transformPasted", (d) => {
|
|
6852
6852
|
s = d(s, t, !1);
|
|
6853
|
-
}) : s = Ll(t, Ul(e.dataTransfer),
|
|
6853
|
+
}) : s = Ll(t, Ul(e.dataTransfer), lo ? null : e.dataTransfer.getData("text/html"), !1, n);
|
|
6854
6854
|
let r = !!(o && Vl(t, e));
|
|
6855
6855
|
if (t.someProp("handleDrop", (d) => d(t, e, s || w.empty, r))) {
|
|
6856
6856
|
e.preventDefault();
|
|
@@ -6888,7 +6888,7 @@ Ee.blur = (t, e) => {
|
|
|
6888
6888
|
t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), o.relatedTarget && t.dom.contains(o.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
|
|
6889
6889
|
};
|
|
6890
6890
|
Ee.beforeinput = (t, e) => {
|
|
6891
|
-
if (We &&
|
|
6891
|
+
if (We && ho && e.inputType == "deleteContentBackward") {
|
|
6892
6892
|
t.domObserver.flushSoon();
|
|
6893
6893
|
let { domChangeCount: a } = t.input;
|
|
6894
6894
|
setTimeout(() => {
|
|
@@ -6901,7 +6901,7 @@ Ee.beforeinput = (t, e) => {
|
|
|
6901
6901
|
};
|
|
6902
6902
|
for (let t in Fe)
|
|
6903
6903
|
Ee[t] = Fe[t];
|
|
6904
|
-
function
|
|
6904
|
+
function po(t, e) {
|
|
6905
6905
|
if (t == e)
|
|
6906
6906
|
return !0;
|
|
6907
6907
|
for (let o in t)
|
|
@@ -6924,7 +6924,7 @@ class oa {
|
|
|
6924
6924
|
return !0;
|
|
6925
6925
|
}
|
|
6926
6926
|
eq(e) {
|
|
6927
|
-
return this == e || e instanceof oa && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM &&
|
|
6927
|
+
return this == e || e instanceof oa && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && po(this.spec, e.spec));
|
|
6928
6928
|
}
|
|
6929
6929
|
destroy(e) {
|
|
6930
6930
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -6942,7 +6942,7 @@ class at {
|
|
|
6942
6942
|
return o.from < o.to;
|
|
6943
6943
|
}
|
|
6944
6944
|
eq(e) {
|
|
6945
|
-
return this == e || e instanceof at &&
|
|
6945
|
+
return this == e || e instanceof at && po(this.attrs, e.attrs) && po(this.spec, e.spec);
|
|
6946
6946
|
}
|
|
6947
6947
|
static is(e) {
|
|
6948
6948
|
return e.type instanceof at;
|
|
@@ -6966,7 +6966,7 @@ class Is {
|
|
|
6966
6966
|
return n == o.from && !(s = e.child(a)).isText && n + s.nodeSize == o.to;
|
|
6967
6967
|
}
|
|
6968
6968
|
eq(e) {
|
|
6969
|
-
return this == e || e instanceof Is &&
|
|
6969
|
+
return this == e || e instanceof Is && po(this.attrs, e.attrs) && po(this.spec, e.spec);
|
|
6970
6970
|
}
|
|
6971
6971
|
destroy() {
|
|
6972
6972
|
}
|
|
@@ -7884,13 +7884,13 @@ var Fd = (t = null, e = {}) => ({ editor: o, view: a, tr: n, dispatch: s }) => {
|
|
|
7884
7884
|
}
|
|
7885
7885
|
return t;
|
|
7886
7886
|
};
|
|
7887
|
-
function
|
|
7887
|
+
function Do(t) {
|
|
7888
7888
|
if (typeof window > "u")
|
|
7889
7889
|
throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
|
|
7890
7890
|
const e = `<body>${t}</body>`, o = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
7891
7891
|
return tp(o);
|
|
7892
7892
|
}
|
|
7893
|
-
function
|
|
7893
|
+
function co(t, e, o) {
|
|
7894
7894
|
if (t instanceof Be || t instanceof k)
|
|
7895
7895
|
return t;
|
|
7896
7896
|
o = {
|
|
@@ -7908,7 +7908,7 @@ function lo(t, e, o) {
|
|
|
7908
7908
|
} catch (s) {
|
|
7909
7909
|
if (o.errorOnInvalidContent)
|
|
7910
7910
|
throw new Error("[tiptap error]: Invalid JSON content", { cause: s });
|
|
7911
|
-
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s),
|
|
7911
|
+
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), co("", e, o);
|
|
7912
7912
|
}
|
|
7913
7913
|
if (n) {
|
|
7914
7914
|
if (o.errorOnInvalidContent) {
|
|
@@ -7931,15 +7931,15 @@ function lo(t, e, o) {
|
|
|
7931
7931
|
}
|
|
7932
7932
|
})
|
|
7933
7933
|
});
|
|
7934
|
-
if (o.slice ? zo.fromSchema(l).parseSlice(
|
|
7934
|
+
if (o.slice ? zo.fromSchema(l).parseSlice(Do(t), o.parseOptions) : zo.fromSchema(l).parse(Do(t), o.parseOptions), o.errorOnInvalidContent && r)
|
|
7935
7935
|
throw new Error("[tiptap error]: Invalid HTML content", {
|
|
7936
7936
|
cause: new Error(`Invalid element found: ${i}`)
|
|
7937
7937
|
});
|
|
7938
7938
|
}
|
|
7939
7939
|
const s = zo.fromSchema(e);
|
|
7940
|
-
return o.slice ? s.parseSlice(
|
|
7940
|
+
return o.slice ? s.parseSlice(Do(t), o.parseOptions).content : s.parse(Do(t), o.parseOptions);
|
|
7941
7941
|
}
|
|
7942
|
-
return
|
|
7942
|
+
return co("", e, o);
|
|
7943
7943
|
}
|
|
7944
7944
|
function wd(t, e, o) {
|
|
7945
7945
|
const a = t.steps.length - 1;
|
|
@@ -7979,7 +7979,7 @@ var Id = (t) => !("type" in t), Cd = (t, e, o) => ({ tr: a, dispatch: n, editor:
|
|
|
7979
7979
|
};
|
|
7980
7980
|
if (!o.errorOnInvalidContent && !s.options.enableContentCheck && s.options.emitContentError)
|
|
7981
7981
|
try {
|
|
7982
|
-
|
|
7982
|
+
co(e, s.schema, {
|
|
7983
7983
|
parseOptions: p,
|
|
7984
7984
|
errorOnInvalidContent: !0
|
|
7985
7985
|
});
|
|
@@ -7987,7 +7987,7 @@ var Id = (t) => !("type" in t), Cd = (t, e, o) => ({ tr: a, dispatch: n, editor:
|
|
|
7987
7987
|
l(h);
|
|
7988
7988
|
}
|
|
7989
7989
|
try {
|
|
7990
|
-
i =
|
|
7990
|
+
i = co(e, s.schema, {
|
|
7991
7991
|
parseOptions: p,
|
|
7992
7992
|
errorOnInvalidContent: (r = o.errorOnInvalidContent) != null ? r : s.options.enableContentCheck
|
|
7993
7993
|
});
|
|
@@ -8131,7 +8131,7 @@ var Hd = (t, e) => ({ tr: o, state: a, dispatch: n }) => {
|
|
|
8131
8131
|
return !0;
|
|
8132
8132
|
}, Ud = () => ({ state: t, dispatch: e }) => hl(t, e), Vd = () => ({ state: t, dispatch: e }) => vl(t, e), Kd = () => ({ state: t, dispatch: e }) => Ym(t, e), Jd = () => ({ state: t, dispatch: e }) => eu(t, e), Gd = () => ({ state: t, dispatch: e }) => Qm(t, e);
|
|
8133
8133
|
function Xd(t, e, o = {}, a = {}) {
|
|
8134
|
-
return
|
|
8134
|
+
return co(t, e, {
|
|
8135
8135
|
slice: !1,
|
|
8136
8136
|
parseOptions: o,
|
|
8137
8137
|
errorOnInvalidContent: a.errorOnInvalidContent
|
|
@@ -8823,7 +8823,7 @@ var _g = (t, e, o, a = {}) => ({ editor: n, tr: s, state: r, dispatch: i, chain:
|
|
|
8823
8823
|
}, Mg = (t, e = {}) => ({ state: o, dispatch: a }) => {
|
|
8824
8824
|
const n = te(t, o.schema);
|
|
8825
8825
|
return ou(n, e)(o, a);
|
|
8826
|
-
},
|
|
8826
|
+
}, bo = class {
|
|
8827
8827
|
constructor(t) {
|
|
8828
8828
|
var e;
|
|
8829
8829
|
this.find = t.find, this.handler = t.handler, this.undoable = (e = t.undoable) != null ? e : !0;
|
|
@@ -8832,13 +8832,13 @@ var _g = (t, e, o, a = {}) => ({ editor: n, tr: s, state: r, dispatch: i, chain:
|
|
|
8832
8832
|
function Bg(t) {
|
|
8833
8833
|
return Object.prototype.toString.call(t).slice(8, -1);
|
|
8834
8834
|
}
|
|
8835
|
-
function
|
|
8835
|
+
function wo(t) {
|
|
8836
8836
|
return Bg(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
|
|
8837
8837
|
}
|
|
8838
8838
|
function lp(t, e) {
|
|
8839
8839
|
const o = { ...t };
|
|
8840
|
-
return
|
|
8841
|
-
|
|
8840
|
+
return wo(t) && wo(e) && Object.keys(e).forEach((a) => {
|
|
8841
|
+
wo(e[a]) && wo(t[a]) ? o[a] = lp(t[a], e[a]) : o[a] = e[a];
|
|
8842
8842
|
}), o;
|
|
8843
8843
|
}
|
|
8844
8844
|
var Bs = class {
|
|
@@ -9242,7 +9242,7 @@ var ee = class mp extends Bs {
|
|
|
9242
9242
|
}
|
|
9243
9243
|
});
|
|
9244
9244
|
function yt(t) {
|
|
9245
|
-
return new
|
|
9245
|
+
return new bo({
|
|
9246
9246
|
find: t.find,
|
|
9247
9247
|
handler: ({ state: e, range: o, match: a }) => {
|
|
9248
9248
|
const n = qe(t.getAttributes, void 0, a);
|
|
@@ -9262,7 +9262,7 @@ function yt(t) {
|
|
|
9262
9262
|
});
|
|
9263
9263
|
}
|
|
9264
9264
|
function Rs(t) {
|
|
9265
|
-
return new
|
|
9265
|
+
return new bo({
|
|
9266
9266
|
find: t.find,
|
|
9267
9267
|
handler: ({ state: e, range: o, match: a }) => {
|
|
9268
9268
|
const n = qe(t.getAttributes, void 0, a) || {}, { tr: s } = e, r = o.from;
|
|
@@ -9284,7 +9284,7 @@ function Rs(t) {
|
|
|
9284
9284
|
});
|
|
9285
9285
|
}
|
|
9286
9286
|
function Hn(t) {
|
|
9287
|
-
return new
|
|
9287
|
+
return new bo({
|
|
9288
9288
|
find: t.find,
|
|
9289
9289
|
handler: ({ state: e, range: o, match: a }) => {
|
|
9290
9290
|
const n = e.doc.resolve(o.from), s = qe(t.getAttributes, void 0, a) || {};
|
|
@@ -9296,7 +9296,7 @@ function Hn(t) {
|
|
|
9296
9296
|
});
|
|
9297
9297
|
}
|
|
9298
9298
|
function zt(t) {
|
|
9299
|
-
return new
|
|
9299
|
+
return new bo({
|
|
9300
9300
|
find: t.find,
|
|
9301
9301
|
handler: ({ state: e, range: o, match: a, chain: n }) => {
|
|
9302
9302
|
const s = qe(t.getAttributes, void 0, a) || {}, r = e.tr.delete(o.from, o.to), l = r.doc.resolve(o.from).blockRange(), p = l && ds(l, t.type, s);
|
|
@@ -10116,7 +10116,7 @@ var ef = Object.defineProperty, tf = (t, e) => {
|
|
|
10116
10116
|
}
|
|
10117
10117
|
}), af = {};
|
|
10118
10118
|
tf(af, {
|
|
10119
|
-
findListItemPos: () =>
|
|
10119
|
+
findListItemPos: () => jo,
|
|
10120
10120
|
getNextListDepth: () => Os,
|
|
10121
10121
|
handleBackspace: () => Wn,
|
|
10122
10122
|
handleDelete: () => Un,
|
|
@@ -10127,14 +10127,14 @@ tf(af, {
|
|
|
10127
10127
|
nextListIsDeeper: () => kp,
|
|
10128
10128
|
nextListIsHigher: () => yp
|
|
10129
10129
|
});
|
|
10130
|
-
var
|
|
10130
|
+
var jo = (t, e) => {
|
|
10131
10131
|
const { $from: o } = e.selection, a = te(t, e.schema);
|
|
10132
10132
|
let n = null, s = o.depth, r = o.pos, i = null;
|
|
10133
10133
|
for (; s > 0 && i === null; )
|
|
10134
10134
|
n = o.node(s), n.type === a ? i = s : (s -= 1, r -= 1);
|
|
10135
10135
|
return i === null ? null : { $pos: e.doc.resolve(r), depth: i };
|
|
10136
10136
|
}, Os = (t, e) => {
|
|
10137
|
-
const o =
|
|
10137
|
+
const o = jo(t, e);
|
|
10138
10138
|
if (!o)
|
|
10139
10139
|
return !1;
|
|
10140
10140
|
const [, a] = ig(e, t, o.$pos.pos + 4);
|
|
@@ -10172,16 +10172,16 @@ var ho = (t, e) => {
|
|
|
10172
10172
|
}
|
|
10173
10173
|
if (!st(t.state, e) || !cg(t.state))
|
|
10174
10174
|
return !1;
|
|
10175
|
-
const a =
|
|
10175
|
+
const a = jo(e, t.state);
|
|
10176
10176
|
if (!a)
|
|
10177
10177
|
return !1;
|
|
10178
10178
|
const s = t.state.doc.resolve(a.$pos.pos - 2).node(a.depth), r = vp(e, t.state, s);
|
|
10179
10179
|
return jp(e, t.state) && !r ? t.commands.joinItemBackward() : t.chain().liftListItem(e).run();
|
|
10180
10180
|
}, kp = (t, e) => {
|
|
10181
|
-
const o = Os(t, e), a =
|
|
10181
|
+
const o = Os(t, e), a = jo(t, e);
|
|
10182
10182
|
return !a || !o ? !1 : o > a.depth;
|
|
10183
10183
|
}, yp = (t, e) => {
|
|
10184
|
-
const o = Os(t, e), a =
|
|
10184
|
+
const o = Os(t, e), a = jo(t, e);
|
|
10185
10185
|
return !a || !o ? !1 : o < a.depth;
|
|
10186
10186
|
}, Un = (t, e) => {
|
|
10187
10187
|
if (!st(t.state, e) || !pg(t.state, e))
|
|
@@ -10840,12 +10840,12 @@ function ff(t) {
|
|
|
10840
10840
|
return !0;
|
|
10841
10841
|
}
|
|
10842
10842
|
Xl({
|
|
10843
|
-
ArrowLeft:
|
|
10844
|
-
ArrowRight:
|
|
10845
|
-
ArrowUp:
|
|
10846
|
-
ArrowDown:
|
|
10843
|
+
ArrowLeft: Io("horiz", -1),
|
|
10844
|
+
ArrowRight: Io("horiz", 1),
|
|
10845
|
+
ArrowUp: Io("vert", -1),
|
|
10846
|
+
ArrowDown: Io("vert", 1)
|
|
10847
10847
|
});
|
|
10848
|
-
function
|
|
10848
|
+
function Io(t, e) {
|
|
10849
10849
|
const o = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
10850
10850
|
return function(a, n, s) {
|
|
10851
10851
|
let r = a.selection, i = e > 0 ? r.$to : r.$from, l = r.empty;
|
|
@@ -12005,7 +12005,7 @@ function ai(t, e, o) {
|
|
|
12005
12005
|
}
|
|
12006
12006
|
return !0;
|
|
12007
12007
|
}
|
|
12008
|
-
function
|
|
12008
|
+
function mo(t, e) {
|
|
12009
12009
|
return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? Kf(t) : function(o, a) {
|
|
12010
12010
|
if (!Ae(o)) return !1;
|
|
12011
12011
|
if (a) {
|
|
@@ -12028,9 +12028,9 @@ function po(t, e) {
|
|
|
12028
12028
|
return !0;
|
|
12029
12029
|
};
|
|
12030
12030
|
}
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
const Jf =
|
|
12031
|
+
mo("row", { useDeprecatedLogic: !0 });
|
|
12032
|
+
mo("column", { useDeprecatedLogic: !0 });
|
|
12033
|
+
const Jf = mo("cell", { useDeprecatedLogic: !0 });
|
|
12034
12034
|
function Gf(t, e) {
|
|
12035
12035
|
if (e < 0) {
|
|
12036
12036
|
const o = t.nodeBefore;
|
|
@@ -12069,7 +12069,7 @@ function Xf(t, e) {
|
|
|
12069
12069
|
return e && e(t.tr.delete(o.before(a), o.after(a)).scrollIntoView()), !0;
|
|
12070
12070
|
return !1;
|
|
12071
12071
|
}
|
|
12072
|
-
function
|
|
12072
|
+
function Co(t, e) {
|
|
12073
12073
|
const o = t.selection;
|
|
12074
12074
|
if (!(o instanceof U)) return !1;
|
|
12075
12075
|
if (e) {
|
|
@@ -12231,23 +12231,23 @@ function ii(t, e, o, a, n) {
|
|
|
12231
12231
|
d(), m.setSelection(new U(m.doc.resolve(o + r.positionAt(i, l, s)), m.doc.resolve(o + r.positionAt(c - 1, p - 1, s)))), e(m);
|
|
12232
12232
|
}
|
|
12233
12233
|
const th = Xl({
|
|
12234
|
-
ArrowLeft:
|
|
12235
|
-
ArrowRight:
|
|
12236
|
-
ArrowUp:
|
|
12237
|
-
ArrowDown:
|
|
12238
|
-
"Shift-ArrowLeft":
|
|
12239
|
-
"Shift-ArrowRight":
|
|
12240
|
-
"Shift-ArrowUp":
|
|
12241
|
-
"Shift-ArrowDown":
|
|
12242
|
-
Backspace:
|
|
12243
|
-
"Mod-Backspace":
|
|
12244
|
-
Delete:
|
|
12245
|
-
"Mod-Delete":
|
|
12234
|
+
ArrowLeft: Eo("horiz", -1),
|
|
12235
|
+
ArrowRight: Eo("horiz", 1),
|
|
12236
|
+
ArrowUp: Eo("vert", -1),
|
|
12237
|
+
ArrowDown: Eo("vert", 1),
|
|
12238
|
+
"Shift-ArrowLeft": Ao("horiz", -1),
|
|
12239
|
+
"Shift-ArrowRight": Ao("horiz", 1),
|
|
12240
|
+
"Shift-ArrowUp": Ao("vert", -1),
|
|
12241
|
+
"Shift-ArrowDown": Ao("vert", 1),
|
|
12242
|
+
Backspace: Co,
|
|
12243
|
+
"Mod-Backspace": Co,
|
|
12244
|
+
Delete: Co,
|
|
12245
|
+
"Mod-Delete": Co
|
|
12246
12246
|
});
|
|
12247
12247
|
function qo(t, e, o) {
|
|
12248
12248
|
return o.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(o).scrollIntoView()), !0);
|
|
12249
12249
|
}
|
|
12250
|
-
function
|
|
12250
|
+
function Eo(t, e) {
|
|
12251
12251
|
return (o, a, n) => {
|
|
12252
12252
|
if (!n) return !1;
|
|
12253
12253
|
const s = o.selection;
|
|
@@ -12263,7 +12263,7 @@ function Io(t, e) {
|
|
|
12263
12263
|
}
|
|
12264
12264
|
};
|
|
12265
12265
|
}
|
|
12266
|
-
function
|
|
12266
|
+
function Ao(t, e) {
|
|
12267
12267
|
return (o, a, n) => {
|
|
12268
12268
|
if (!n) return !1;
|
|
12269
12269
|
const s = o.selection;
|
|
@@ -12797,7 +12797,7 @@ function Fh(t, e, o, a, n) {
|
|
|
12797
12797
|
function _h(t) {
|
|
12798
12798
|
return t instanceof U;
|
|
12799
12799
|
}
|
|
12800
|
-
var
|
|
12800
|
+
var xo = ({ editor: t }) => {
|
|
12801
12801
|
const { selection: e } = t.state;
|
|
12802
12802
|
if (!_h(e))
|
|
12803
12803
|
return !1;
|
|
@@ -12936,8 +12936,8 @@ var Ch = Ih, zp = J.create({
|
|
|
12936
12936
|
deleteTable: () => ({ state: t, dispatch: e }) => Xf(t, e),
|
|
12937
12937
|
mergeCells: () => ({ state: t, dispatch: e }) => ti(t, e),
|
|
12938
12938
|
splitCell: () => ({ state: t, dispatch: e }) => oi(t, e),
|
|
12939
|
-
toggleHeaderColumn: () => ({ state: t, dispatch: e }) =>
|
|
12940
|
-
toggleHeaderRow: () => ({ state: t, dispatch: e }) =>
|
|
12939
|
+
toggleHeaderColumn: () => ({ state: t, dispatch: e }) => mo("column")(t, e),
|
|
12940
|
+
toggleHeaderRow: () => ({ state: t, dispatch: e }) => mo("row")(t, e),
|
|
12941
12941
|
toggleHeaderCell: () => ({ state: t, dispatch: e }) => Jf(t, e),
|
|
12942
12942
|
mergeOrSplit: () => ({ state: t, dispatch: e }) => ti(t, e) ? !0 : oi(t, e),
|
|
12943
12943
|
setCellAttribute: (t, e) => ({ state: o, dispatch: a }) => Vf(t, e)(o, a),
|
|
@@ -12957,10 +12957,10 @@ var Ch = Ih, zp = J.create({
|
|
|
12957
12957
|
return {
|
|
12958
12958
|
Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1,
|
|
12959
12959
|
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
12960
|
-
Backspace:
|
|
12961
|
-
"Mod-Backspace":
|
|
12962
|
-
Delete:
|
|
12963
|
-
"Mod-Delete":
|
|
12960
|
+
Backspace: xo,
|
|
12961
|
+
"Mod-Backspace": xo,
|
|
12962
|
+
Delete: xo,
|
|
12963
|
+
"Mod-Delete": xo
|
|
12964
12964
|
};
|
|
12965
12965
|
},
|
|
12966
12966
|
addProseMirrorPlugins() {
|
|
@@ -35451,7 +35451,7 @@ var Jh = new oe("emojiSuggestion"), Gh = /:([a-zA-Z0-9_+-]+):$/, Xh = /(^|\s):([
|
|
|
35451
35451
|
addInputRules() {
|
|
35452
35452
|
const t = [];
|
|
35453
35453
|
if (t.push(
|
|
35454
|
-
new
|
|
35454
|
+
new bo({
|
|
35455
35455
|
find: Gh,
|
|
35456
35456
|
handler: ({ range: e, match: o, chain: a }) => {
|
|
35457
35457
|
const n = o[1];
|
|
@@ -35847,7 +35847,7 @@ var Jh = new oe("emojiSuggestion"), Gh = /:([a-zA-Z0-9_+-]+):$/, Xh = /(^|\s):([
|
|
|
35847
35847
|
})
|
|
35848
35848
|
];
|
|
35849
35849
|
}
|
|
35850
|
-
}), i1 = r1,
|
|
35850
|
+
}), i1 = r1, So = " ", hn = " ", l1 = J.create({
|
|
35851
35851
|
name: "paragraph",
|
|
35852
35852
|
priority: 1e3,
|
|
35853
35853
|
addOptions() {
|
|
@@ -35868,7 +35868,7 @@ var Jh = new oe("emojiSuggestion"), Gh = /:([a-zA-Z0-9_+-]+):$/, Xh = /(^|\s):([
|
|
|
35868
35868
|
if (o.length === 1 && o[0].type === "image")
|
|
35869
35869
|
return e.parseChildren([o[0]]);
|
|
35870
35870
|
const a = e.parseInline(o);
|
|
35871
|
-
return o.length === 1 && o[0].type === "text" && (o[0].raw ===
|
|
35871
|
+
return o.length === 1 && o[0].type === "text" && (o[0].raw === So || o[0].text === So || o[0].raw === hn || o[0].text === hn) && a.length === 1 && a[0].type === "text" && (a[0].text === So || a[0].text === hn) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, a);
|
|
35872
35872
|
},
|
|
35873
35873
|
renderMarkdown: (t, e, o) => {
|
|
35874
35874
|
var a, n;
|
|
@@ -35877,7 +35877,7 @@ var Jh = new oe("emojiSuggestion"), Gh = /:([a-zA-Z0-9_+-]+):$/, Xh = /(^|\s):([
|
|
|
35877
35877
|
const s = Array.isArray(t.content) ? t.content : [];
|
|
35878
35878
|
if (s.length === 0) {
|
|
35879
35879
|
const r = Array.isArray((a = o?.previousNode) == null ? void 0 : a.content) ? o.previousNode.content : [];
|
|
35880
|
-
return ((n = o?.previousNode) == null ? void 0 : n.type) === "paragraph" && r.length === 0 ?
|
|
35880
|
+
return ((n = o?.previousNode) == null ? void 0 : n.type) === "paragraph" && r.length === 0 ? So : "";
|
|
35881
35881
|
}
|
|
35882
35882
|
return e.renderChildren(s);
|
|
35883
35883
|
},
|
|
@@ -36214,12 +36214,12 @@ var Jh = new oe("emojiSuggestion"), Gh = /:([a-zA-Z0-9_+-]+):$/, Xh = /(^|\s):([
|
|
|
36214
36214
|
];
|
|
36215
36215
|
}
|
|
36216
36216
|
}), M1 = T1;
|
|
36217
|
-
const B1 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", R1 = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Zn = "numeric", Qn = "ascii", es = "alpha",
|
|
36217
|
+
const B1 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", R1 = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Zn = "numeric", Qn = "ascii", es = "alpha", Qt = "asciinumeric", Kt = "alphanumeric", ts = "domain", $p = "emoji", L1 = "scheme", N1 = "slashscheme", bn = "whitespace";
|
|
36218
36218
|
function z1(t, e) {
|
|
36219
36219
|
return t in e || (e[t] = []), e[t];
|
|
36220
36220
|
}
|
|
36221
36221
|
function gt(t, e, o) {
|
|
36222
|
-
e[Zn] && (e[
|
|
36222
|
+
e[Zn] && (e[Qt] = !0, e[Kt] = !0), e[Qn] && (e[Qt] = !0, e[es] = !0), e[Qt] && (e[Kt] = !0), e[es] && (e[Kt] = !0), e[Kt] && (e[ts] = !0), e[$p] && (e[ts] = !0);
|
|
36223
36223
|
for (const a in e) {
|
|
36224
36224
|
const n = z1(a, o);
|
|
36225
36225
|
n.indexOf(t) < 0 && n.push(t);
|
|
@@ -36355,7 +36355,7 @@ he.prototype = {
|
|
|
36355
36355
|
return n.j[t] = r, r;
|
|
36356
36356
|
}
|
|
36357
36357
|
};
|
|
36358
|
-
const N = (t, e, o, a, n) => t.ta(e, o, a, n), X = (t, e, o, a, n) => t.tr(e, o, a, n), gi = (t, e, o, a, n) => t.ts(e, o, a, n), y = (t, e, o, a, n) => t.tt(e, o, a, n), Pe = "WORD", as = "UWORD", Pp = "ASCIINUMERICAL", Hp = "ALPHANUMERICAL",
|
|
36358
|
+
const N = (t, e, o, a, n) => t.ta(e, o, a, n), X = (t, e, o, a, n) => t.tr(e, o, a, n), gi = (t, e, o, a, n) => t.ts(e, o, a, n), y = (t, e, o, a, n) => t.tt(e, o, a, n), Pe = "WORD", as = "UWORD", Pp = "ASCIINUMERICAL", Hp = "ALPHANUMERICAL", uo = "LOCALHOST", ns = "TLD", ss = "UTLD", Uo = "SCHEME", St = "SLASH_SCHEME", Hs = "NUM", rs = "WS", qs = "NL", eo = "OPENBRACE", to = "CLOSEBRACE", ca = "OPENBRACKET", ma = "CLOSEBRACKET", ua = "OPENPAREN", da = "CLOSEPAREN", ga = "OPENANGLEBRACKET", fa = "CLOSEANGLEBRACKET", ha = "FULLWIDTHLEFTPAREN", ba = "FULLWIDTHRIGHTPAREN", ja = "LEFTCORNERBRACKET", va = "RIGHTCORNERBRACKET", ka = "LEFTWHITECORNERBRACKET", ya = "RIGHTWHITECORNERBRACKET", Fa = "FULLWIDTHLESSTHAN", _a = "FULLWIDTHGREATERTHAN", Da = "AMPERSAND", wa = "APOSTROPHE", Ia = "ASTERISK", Ye = "AT", Ca = "BACKSLASH", Ea = "BACKTICK", Aa = "CARET", Qe = "COLON", Ws = "COMMA", xa = "DOLLAR", Te = "DOT", Sa = "EQUALS", Us = "EXCLAMATION", De = "HYPHEN", oo = "PERCENT", Ta = "PIPE", Ma = "PLUS", Ba = "POUND", ao = "QUERY", Vs = "QUOTE", qp = "FULLWIDTHMIDDLEDOT", Ks = "SEMI", Me = "SLASH", no = "TILDE", Ra = "UNDERSCORE", Wp = "EMOJI", La = "SYM";
|
|
36359
36359
|
var Up = /* @__PURE__ */ Object.freeze({
|
|
36360
36360
|
__proto__: null,
|
|
36361
36361
|
ALPHANUMERICAL: Hp,
|
|
@@ -36368,7 +36368,7 @@ var Up = /* @__PURE__ */ Object.freeze({
|
|
|
36368
36368
|
BACKTICK: Ea,
|
|
36369
36369
|
CARET: Aa,
|
|
36370
36370
|
CLOSEANGLEBRACKET: fa,
|
|
36371
|
-
CLOSEBRACE:
|
|
36371
|
+
CLOSEBRACE: to,
|
|
36372
36372
|
CLOSEBRACKET: ma,
|
|
36373
36373
|
CLOSEPAREN: da,
|
|
36374
36374
|
COLON: Qe,
|
|
@@ -36386,18 +36386,18 @@ var Up = /* @__PURE__ */ Object.freeze({
|
|
|
36386
36386
|
HYPHEN: De,
|
|
36387
36387
|
LEFTCORNERBRACKET: ja,
|
|
36388
36388
|
LEFTWHITECORNERBRACKET: ka,
|
|
36389
|
-
LOCALHOST:
|
|
36389
|
+
LOCALHOST: uo,
|
|
36390
36390
|
NL: qs,
|
|
36391
36391
|
NUM: Hs,
|
|
36392
36392
|
OPENANGLEBRACKET: ga,
|
|
36393
|
-
OPENBRACE:
|
|
36393
|
+
OPENBRACE: eo,
|
|
36394
36394
|
OPENBRACKET: ca,
|
|
36395
36395
|
OPENPAREN: ua,
|
|
36396
|
-
PERCENT:
|
|
36396
|
+
PERCENT: oo,
|
|
36397
36397
|
PIPE: Ta,
|
|
36398
36398
|
PLUS: Ma,
|
|
36399
36399
|
POUND: Ba,
|
|
36400
|
-
QUERY:
|
|
36400
|
+
QUERY: ao,
|
|
36401
36401
|
QUOTE: Vs,
|
|
36402
36402
|
RIGHTCORNERBRACKET: va,
|
|
36403
36403
|
RIGHTWHITECORNERBRACKET: ya,
|
|
@@ -36406,7 +36406,7 @@ var Up = /* @__PURE__ */ Object.freeze({
|
|
|
36406
36406
|
SLASH: Me,
|
|
36407
36407
|
SLASH_SCHEME: St,
|
|
36408
36408
|
SYM: La,
|
|
36409
|
-
TILDE:
|
|
36409
|
+
TILDE: no,
|
|
36410
36410
|
TLD: ns,
|
|
36411
36411
|
UNDERSCORE: Ra,
|
|
36412
36412
|
UTLD: ss,
|
|
@@ -36416,20 +36416,20 @@ var Up = /* @__PURE__ */ Object.freeze({
|
|
|
36416
36416
|
});
|
|
36417
36417
|
const ze = /[a-z]/, Ht = new RegExp("\\p{L}", "u"), jn = new RegExp("\\p{Emoji}", "u"), Oe = /\d/, vn = /\s/, fi = "\r", kn = `
|
|
36418
36418
|
`, $1 = "️", P1 = "", yn = "";
|
|
36419
|
-
let
|
|
36419
|
+
let To = null, Mo = null;
|
|
36420
36420
|
function H1(t = []) {
|
|
36421
36421
|
const e = {};
|
|
36422
36422
|
he.groups = e;
|
|
36423
36423
|
const o = new he();
|
|
36424
|
-
|
|
36424
|
+
To == null && (To = hi(B1)), Mo == null && (Mo = hi(R1)), y(o, "'", wa), y(o, "{", eo), y(o, "}", to), y(o, "[", ca), y(o, "]", ma), y(o, "(", ua), y(o, ")", da), y(o, "<", ga), y(o, ">", fa), y(o, "(", ha), y(o, ")", ba), y(o, "「", ja), y(o, "」", va), y(o, "『", ka), y(o, "』", ya), y(o, "<", Fa), y(o, ">", _a), y(o, "&", Da), y(o, "*", Ia), y(o, "@", Ye), y(o, "`", Ea), y(o, "^", Aa), y(o, ":", Qe), y(o, ",", Ws), y(o, "$", xa), y(o, ".", Te), y(o, "=", Sa), y(o, "!", Us), y(o, "-", De), y(o, "%", oo), y(o, "|", Ta), y(o, "+", Ma), y(o, "#", Ba), y(o, "?", ao), y(o, '"', Vs), y(o, "/", Me), y(o, ";", Ks), y(o, "~", no), y(o, "_", Ra), y(o, "\\", Ca), y(o, "・", qp);
|
|
36425
36425
|
const a = X(o, Oe, Hs, {
|
|
36426
36426
|
[Zn]: !0
|
|
36427
36427
|
});
|
|
36428
36428
|
X(a, Oe, a);
|
|
36429
36429
|
const n = X(a, ze, Pp, {
|
|
36430
|
-
[
|
|
36430
|
+
[Qt]: !0
|
|
36431
36431
|
}), s = X(a, Ht, Hp, {
|
|
36432
|
-
[
|
|
36432
|
+
[Kt]: !0
|
|
36433
36433
|
}), r = X(o, ze, Pe, {
|
|
36434
36434
|
[Qn]: !0
|
|
36435
36435
|
});
|
|
@@ -36453,10 +36453,10 @@ function H1(t = []) {
|
|
|
36453
36453
|
const u = y(m, P1);
|
|
36454
36454
|
y(u, "#"), X(u, jn, m);
|
|
36455
36455
|
const d = [[ze, r], [Oe, n]], g = [[ze, null], [Ht, i], [Oe, s]];
|
|
36456
|
-
for (let f = 0; f <
|
|
36457
|
-
Je(o,
|
|
36458
|
-
for (let f = 0; f <
|
|
36459
|
-
Je(o,
|
|
36456
|
+
for (let f = 0; f < To.length; f++)
|
|
36457
|
+
Je(o, To[f], ns, Pe, d);
|
|
36458
|
+
for (let f = 0; f < Mo.length; f++)
|
|
36459
|
+
Je(o, Mo[f], ss, as, g);
|
|
36460
36460
|
gt(ns, {
|
|
36461
36461
|
tld: !0,
|
|
36462
36462
|
ascii: !0
|
|
@@ -36476,9 +36476,9 @@ function H1(t = []) {
|
|
|
36476
36476
|
} : {
|
|
36477
36477
|
[N1]: !0
|
|
36478
36478
|
};
|
|
36479
|
-
h.indexOf("-") >= 0 ? v[ts] = !0 : ze.test(h) ? Oe.test(h) ? v[
|
|
36479
|
+
h.indexOf("-") >= 0 ? v[ts] = !0 : ze.test(h) ? Oe.test(h) ? v[Qt] = !0 : v[Qn] = !0 : v[Zn] = !0, gi(o, h, h, v);
|
|
36480
36480
|
}
|
|
36481
|
-
return gi(o, "localhost",
|
|
36481
|
+
return gi(o, "localhost", uo, {
|
|
36482
36482
|
ascii: !0
|
|
36483
36483
|
}), o.jd = new he(La), {
|
|
36484
36484
|
start: o,
|
|
@@ -36542,7 +36542,7 @@ function hi(t) {
|
|
|
36542
36542
|
}
|
|
36543
36543
|
return e;
|
|
36544
36544
|
}
|
|
36545
|
-
const
|
|
36545
|
+
const go = {
|
|
36546
36546
|
defaultProtocol: "http",
|
|
36547
36547
|
events: null,
|
|
36548
36548
|
format: bi,
|
|
@@ -36559,7 +36559,7 @@ const mo = {
|
|
|
36559
36559
|
render: null
|
|
36560
36560
|
};
|
|
36561
36561
|
function Js(t, e = null) {
|
|
36562
|
-
let o = Object.assign({},
|
|
36562
|
+
let o = Object.assign({}, go);
|
|
36563
36563
|
t && (o = Object.assign(o, t instanceof Js ? t.o : t));
|
|
36564
36564
|
const a = o.ignoreTags, n = [];
|
|
36565
36565
|
for (let s = 0; s < a.length; s++)
|
|
@@ -36567,7 +36567,7 @@ function Js(t, e = null) {
|
|
|
36567
36567
|
this.o = o, e && (this.defaultRender = e), this.ignoreTags = n;
|
|
36568
36568
|
}
|
|
36569
36569
|
Js.prototype = {
|
|
36570
|
-
o:
|
|
36570
|
+
o: go,
|
|
36571
36571
|
/**
|
|
36572
36572
|
* @type string[]
|
|
36573
36573
|
*/
|
|
@@ -36603,7 +36603,7 @@ Js.prototype = {
|
|
|
36603
36603
|
get(t, e, o) {
|
|
36604
36604
|
const a = e != null;
|
|
36605
36605
|
let n = this.o[t];
|
|
36606
|
-
return n && (typeof n == "object" ? (n = o.t in n ? n[o.t] :
|
|
36606
|
+
return n && (typeof n == "object" ? (n = o.t in n ? n[o.t] : go[t], typeof n == "function" && a && (n = n(e, o))) : typeof n == "function" && a && (n = n(e, o.t, o)), n);
|
|
36607
36607
|
},
|
|
36608
36608
|
/**
|
|
36609
36609
|
* @template {keyof Opts} L
|
|
@@ -36692,7 +36692,7 @@ Kp.prototype = {
|
|
|
36692
36692
|
@method toObject
|
|
36693
36693
|
@param {string} [protocol] `'http'` by default
|
|
36694
36694
|
*/
|
|
36695
|
-
toObject(t =
|
|
36695
|
+
toObject(t = go.defaultProtocol) {
|
|
36696
36696
|
return {
|
|
36697
36697
|
type: this.t,
|
|
36698
36698
|
value: this.toString(),
|
|
@@ -36753,7 +36753,7 @@ const ji = Ka("email", {
|
|
|
36753
36753
|
toHref() {
|
|
36754
36754
|
return "mailto:" + this.toString();
|
|
36755
36755
|
}
|
|
36756
|
-
}), vi = Ka("text"), W1 = Ka("nl"),
|
|
36756
|
+
}), vi = Ka("text"), W1 = Ka("nl"), Bo = Ka("url", {
|
|
36757
36757
|
isLink: !0,
|
|
36758
36758
|
/**
|
|
36759
36759
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -36762,7 +36762,7 @@ const ji = Ka("email", {
|
|
|
36762
36762
|
@param {string} [scheme] default scheme (e.g., 'https')
|
|
36763
36763
|
@return {string} the full href
|
|
36764
36764
|
*/
|
|
36765
|
-
toHref(t =
|
|
36765
|
+
toHref(t = go.defaultProtocol) {
|
|
36766
36766
|
return this.hasProtocol() ? this.v : `${t}://${this.v}`;
|
|
36767
36767
|
},
|
|
36768
36768
|
/**
|
|
@@ -36771,13 +36771,13 @@ const ji = Ka("email", {
|
|
|
36771
36771
|
*/
|
|
36772
36772
|
hasProtocol() {
|
|
36773
36773
|
const t = this.tk;
|
|
36774
|
-
return t.length >= 2 && t[0].t !==
|
|
36774
|
+
return t.length >= 2 && t[0].t !== uo && t[1].t === Qe;
|
|
36775
36775
|
}
|
|
36776
36776
|
}), _e = (t) => new he(t);
|
|
36777
36777
|
function U1({
|
|
36778
36778
|
groups: t
|
|
36779
36779
|
}) {
|
|
36780
|
-
const e = t.domain.concat([Da, Ia, Ye, Ca, Ea, Aa, xa, Sa, De, Hs,
|
|
36780
|
+
const e = t.domain.concat([Da, Ia, Ye, Ca, Ea, Aa, xa, Sa, De, Hs, oo, Ta, Ma, Ba, Me, La, no, Ra]), o = [wa, Qe, Ws, Te, Us, oo, ao, Vs, Ks, ga, fa, eo, to, ma, ca, ua, da, ha, ba, ja, va, ka, ya, Fa, _a], a = [Da, wa, Ia, Ca, Ea, Aa, xa, Sa, De, eo, to, oo, Ta, Ma, Ba, ao, Me, La, no, Ra], n = _e(), s = y(n, no);
|
|
36781
36781
|
N(s, a, s), N(s, t.domain, s);
|
|
36782
36782
|
const r = _e(), i = _e(), l = _e();
|
|
36783
36783
|
N(n, t.domain, r), N(n, t.scheme, i), N(n, t.slashscheme, l), N(r, a, s), N(r, t.domain, r);
|
|
@@ -36790,23 +36790,23 @@ function U1({
|
|
|
36790
36790
|
const u = y(m, Te);
|
|
36791
36791
|
N(u, t.domain, m);
|
|
36792
36792
|
const d = _e(ji);
|
|
36793
|
-
N(u, t.tld, d), N(u, t.utld, d), y(p,
|
|
36793
|
+
N(u, t.tld, d), N(u, t.utld, d), y(p, uo, d);
|
|
36794
36794
|
const g = y(m, De);
|
|
36795
36795
|
y(g, De, g), N(g, t.domain, m), N(d, t.domain, m), y(d, Te, u), y(d, De, g);
|
|
36796
36796
|
const f = y(d, Qe);
|
|
36797
36797
|
N(f, t.numeric, ji);
|
|
36798
36798
|
const h = y(r, De), b = y(r, Te);
|
|
36799
36799
|
y(h, De, h), N(h, t.domain, r), N(b, a, s), N(b, t.domain, r);
|
|
36800
|
-
const v = _e(
|
|
36800
|
+
const v = _e(Bo);
|
|
36801
36801
|
N(b, t.tld, v), N(b, t.utld, v), N(v, t.domain, r), N(v, a, s), y(v, Te, b), y(v, De, h), y(v, Ye, p);
|
|
36802
|
-
const j = y(v, Qe), F = _e(
|
|
36802
|
+
const j = y(v, Qe), F = _e(Bo);
|
|
36803
36803
|
N(j, t.numeric, F);
|
|
36804
|
-
const _ = _e(
|
|
36804
|
+
const _ = _e(Bo), I = _e();
|
|
36805
36805
|
N(_, e, _), N(_, o, I), N(I, e, _), N(I, o, I), y(v, Me, _), y(F, Me, _);
|
|
36806
36806
|
const E = y(i, Qe), L = y(l, Qe), z = y(L, Me), C = y(z, Me);
|
|
36807
|
-
N(i, t.domain, r), y(i, Te, b), y(i, De, h), N(l, t.domain, r), y(l, Te, b), y(l, De, h), N(E, t.domain, _), y(E, Me, _), y(E,
|
|
36807
|
+
N(i, t.domain, r), y(i, Te, b), y(i, De, h), N(l, t.domain, r), y(l, Te, b), y(l, De, h), N(E, t.domain, _), y(E, Me, _), y(E, ao, _), N(C, t.domain, _), N(C, e, _), y(C, Me, _);
|
|
36808
36808
|
const R = [
|
|
36809
|
-
[
|
|
36809
|
+
[eo, to],
|
|
36810
36810
|
// {}
|
|
36811
36811
|
[ca, ma],
|
|
36812
36812
|
// []
|
|
@@ -36826,12 +36826,12 @@ function U1({
|
|
|
36826
36826
|
for (let q = 0; q < R.length; q++) {
|
|
36827
36827
|
const [T, M] = R[q], O = y(_, T);
|
|
36828
36828
|
y(I, T, O), y(O, M, _);
|
|
36829
|
-
const G = _e(
|
|
36829
|
+
const G = _e(Bo);
|
|
36830
36830
|
N(O, e, G);
|
|
36831
36831
|
const pe = _e();
|
|
36832
36832
|
N(O, o), N(G, e, G), N(G, o, pe), N(pe, e, G), N(pe, o, pe), y(G, M, _), y(pe, M, _);
|
|
36833
36833
|
}
|
|
36834
|
-
return y(n,
|
|
36834
|
+
return y(n, uo, v), y(n, qs, W1), {
|
|
36835
36835
|
start: n,
|
|
36836
36836
|
tokens: Up
|
|
36837
36837
|
};
|
|
@@ -37739,7 +37739,7 @@ function Ab(t) {
|
|
|
37739
37739
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
37740
37740
|
}
|
|
37741
37741
|
const Ct = (t) => Object.fromEntries(Object.entries(t).filter(([e, o]) => o != null));
|
|
37742
|
-
let
|
|
37742
|
+
let Ro = /* @__PURE__ */ (function(t) {
|
|
37743
37743
|
return t.URL = "url", t.STORY = "story", t.ASSET = "asset", t.EMAIL = "email", t;
|
|
37744
37744
|
})({});
|
|
37745
37745
|
function Ue(t = {}) {
|
|
@@ -37755,13 +37755,13 @@ function xb(t = {}) {
|
|
|
37755
37755
|
const { linktype: e, href: o, anchor: a, uuid: n, custom: s, ...r } = t;
|
|
37756
37756
|
let i = o ?? "";
|
|
37757
37757
|
switch (e) {
|
|
37758
|
-
case
|
|
37759
|
-
case
|
|
37758
|
+
case Ro.ASSET:
|
|
37759
|
+
case Ro.URL:
|
|
37760
37760
|
break;
|
|
37761
|
-
case
|
|
37761
|
+
case Ro.EMAIL:
|
|
37762
37762
|
i && !i.startsWith("mailto:") && (i = `mailto:${i}`);
|
|
37763
37763
|
break;
|
|
37764
|
-
case
|
|
37764
|
+
case Ro.STORY:
|
|
37765
37765
|
a && (i = `${i}#${a}`);
|
|
37766
37766
|
break;
|
|
37767
37767
|
}
|
|
@@ -38175,15 +38175,15 @@ function _i(t, e = {}, o) {
|
|
|
38175
38175
|
} else return s;
|
|
38176
38176
|
return `<${n}>${s}</${t}>`;
|
|
38177
38177
|
}
|
|
38178
|
-
function
|
|
38178
|
+
function Jt(t, e, o) {
|
|
38179
38179
|
const [a, ...n] = t;
|
|
38180
38180
|
let s = {}, r = n;
|
|
38181
38181
|
if (r.length > 0 && r[0] !== null && r[0] !== void 0 && typeof r[0] == "object" && !Array.isArray(r[0]) && typeof r[0] != "number" && (s = r[0], r = r.slice(1)), r = r.filter((l) => l != null), r.length === 0) return e(a, s);
|
|
38182
38182
|
if (r.length === 1 && r[0] === 0) return e(a, s, o);
|
|
38183
|
-
const i = r.map((l) => l === 0 ? o : Array.isArray(l) ?
|
|
38183
|
+
const i = r.map((l) => l === 0 ? o : Array.isArray(l) ? Jt(l, e, o) : l);
|
|
38184
38184
|
return e(a, s, i.length === 1 ? i[0] : i);
|
|
38185
38185
|
}
|
|
38186
|
-
function
|
|
38186
|
+
function Lo(t, e, o) {
|
|
38187
38187
|
const a = {
|
|
38188
38188
|
options: t.options || {},
|
|
38189
38189
|
name: t.name,
|
|
@@ -38221,7 +38221,7 @@ function ac(t = {}) {
|
|
|
38221
38221
|
let I = i ? _ : _.join("");
|
|
38222
38222
|
for (const E of F) {
|
|
38223
38223
|
const L = u.get(E.type);
|
|
38224
|
-
L?.config?.renderHTML && (I =
|
|
38224
|
+
L?.config?.renderHTML && (I = Jt(Lo(L, "mark", E.attrs || {}), d, I));
|
|
38225
38225
|
}
|
|
38226
38226
|
return I;
|
|
38227
38227
|
}
|
|
@@ -38253,11 +38253,11 @@ function ac(t = {}) {
|
|
|
38253
38253
|
if (j.type === "table" && j.content?.length) {
|
|
38254
38254
|
const I = [], E = [];
|
|
38255
38255
|
for (const C of j.content) E.length === 0 && C.content?.every((R) => R.type === "tableHeader") ? I.push(C) : E.push(C);
|
|
38256
|
-
const L =
|
|
38257
|
-
return I.length > 0 && z.push(d("thead", {}, I.map(v))), E.length > 0 && z.push(d("tbody", {}, E.map(v))),
|
|
38256
|
+
const L = Lo(F, "node", j.attrs || {}), z = [];
|
|
38257
|
+
return I.length > 0 && z.push(d("thead", {}, I.map(v))), E.length > 0 && z.push(d("tbody", {}, E.map(v))), Jt(L, d, z);
|
|
38258
38258
|
}
|
|
38259
38259
|
const _ = j.content ? f(j.content) : void 0;
|
|
38260
|
-
return
|
|
38260
|
+
return Jt(Lo(F, "node", j.attrs || {}), d, _);
|
|
38261
38261
|
}
|
|
38262
38262
|
function b(j) {
|
|
38263
38263
|
const { marks: F, ..._ } = j;
|
|
@@ -38272,7 +38272,7 @@ function ac(t = {}) {
|
|
|
38272
38272
|
})();
|
|
38273
38273
|
return F.reduce((L, z) => {
|
|
38274
38274
|
const C = u.get(z.type);
|
|
38275
|
-
return C?.config?.renderHTML ?
|
|
38275
|
+
return C?.config?.renderHTML ? Jt(Lo(C, "mark", z.attrs || {}), d, L) : (console.error("<Storyblok>", `No extension found for node type ${z.type}`), L);
|
|
38276
38276
|
}, E);
|
|
38277
38277
|
}
|
|
38278
38278
|
const I = j.attrs || {};
|
|
@@ -38378,6 +38378,9 @@ var rj = class {
|
|
|
38378
38378
|
put(t, e) {
|
|
38379
38379
|
return this.url = t, this.parameters = e, this._methodHandler("put");
|
|
38380
38380
|
}
|
|
38381
|
+
patch(t, e) {
|
|
38382
|
+
return this.url = t, this.parameters = e, this._methodHandler("patch");
|
|
38383
|
+
}
|
|
38381
38384
|
delete(t, e) {
|
|
38382
38385
|
return this.url = t, this.parameters = e ?? {}, this._methodHandler("delete");
|
|
38383
38386
|
}
|
|
@@ -38465,7 +38468,7 @@ const Ii = "SB-Agent", Dn = {
|
|
|
38465
38468
|
MEDIUM: 15,
|
|
38466
38469
|
LARGE: 10,
|
|
38467
38470
|
VERY_LARGE: 6
|
|
38468
|
-
}, Ci = 1e3,
|
|
38471
|
+
}, Ci = 1e3, qt = 3;
|
|
38469
38472
|
function pj(t, e) {
|
|
38470
38473
|
const o = t.includes("/cdn/stories/"), a = t.split("/").length > 3 && !t.endsWith("/cdn/stories"), n = "find_by" in e;
|
|
38471
38474
|
return o && a || n;
|
|
@@ -38473,7 +38476,7 @@ function pj(t, e) {
|
|
|
38473
38476
|
function cj(t) {
|
|
38474
38477
|
return t <= wn.SMALL ? Tt.SINGLE_OR_SMALL : t <= wn.MEDIUM ? Tt.MEDIUM : t <= wn.LARGE ? Tt.LARGE : Tt.VERY_LARGE;
|
|
38475
38478
|
}
|
|
38476
|
-
function
|
|
38479
|
+
function Wt(t, e, o = {}, a) {
|
|
38477
38480
|
return o.userRateLimit !== void 0 ? Math.min(o.userRateLimit, Ci) : o.serverHeadersRateLimit !== void 0 ? Math.min(o.serverHeadersRateLimit, Ci) : a !== void 0 ? a : !t || !e || pj(t, e) ? Tt.SINGLE_OR_SMALL : cj(e.per_page || lj);
|
|
38478
38481
|
}
|
|
38479
38482
|
function mj(t) {
|
|
@@ -38636,16 +38639,20 @@ var hj = class {
|
|
|
38636
38639
|
return sj([l, ...await nj(aj(i, l.total ? Math.ceil(l.total / (l.perPage || n)) : 1), (p) => this.makeRequest(s, e, n, p + 1, a))], (p) => Object.values(p.data[r]));
|
|
38637
38640
|
}
|
|
38638
38641
|
post(t, e = {}, o) {
|
|
38639
|
-
const a = `/${t}`, n =
|
|
38642
|
+
const a = `/${t}`, n = Wt(void 0, void 0, this.rateLimitConfig, qt);
|
|
38640
38643
|
return this.throttleManager.execute(n, "post", a, e, o);
|
|
38641
38644
|
}
|
|
38642
38645
|
put(t, e = {}, o) {
|
|
38643
|
-
const a = `/${t}`, n =
|
|
38646
|
+
const a = `/${t}`, n = Wt(void 0, void 0, this.rateLimitConfig, qt);
|
|
38644
38647
|
return this.throttleManager.execute(n, "put", a, e, o);
|
|
38645
38648
|
}
|
|
38649
|
+
patch(t, e = {}, o) {
|
|
38650
|
+
const a = `/${t}`, n = Wt(void 0, void 0, this.rateLimitConfig, qt);
|
|
38651
|
+
return this.throttleManager.execute(n, "patch", a, e, o);
|
|
38652
|
+
}
|
|
38646
38653
|
delete(t, e = {}, o) {
|
|
38647
38654
|
e || (e = {});
|
|
38648
|
-
const a = `/${t}`, n =
|
|
38655
|
+
const a = `/${t}`, n = Wt(void 0, void 0, this.rateLimitConfig, qt);
|
|
38649
38656
|
return this.throttleManager.execute(n, "delete", a, e, o);
|
|
38650
38657
|
}
|
|
38651
38658
|
getStories(t = {}, e) {
|
|
@@ -38818,7 +38825,7 @@ var hj = class {
|
|
|
38818
38825
|
const l = await s.get(n);
|
|
38819
38826
|
if (l) return Promise.resolve(l);
|
|
38820
38827
|
}
|
|
38821
|
-
const r = !_n(t) && this.rateLimitConfig.isManagementApi ?
|
|
38828
|
+
const r = !_n(t) && this.rateLimitConfig.isManagementApi ? qt : void 0, i = Wt(t, e, this.rateLimitConfig, r);
|
|
38822
38829
|
return new Promise(async (l, p) => {
|
|
38823
38830
|
try {
|
|
38824
38831
|
const c = await this.throttleManager.execute(i, "get", t, e, a);
|