@kong-ui-public/entities-plugins 9.250.2 → 9.250.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +4 -2
- package/dist/entities-plugins.umd.js +2 -2
- package/dist/filler/cypress/index.js +1 -1
- package/dist/filler/{field-walker-DP5ZupX8.js → field-walker-D0yOkGm2.js} +549 -548
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/schema.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/types/plugins/form-schema.d.ts +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/types/plugins/form-schema.d.ts.map +1 -1
- package/dist/filler/playwright/index.js +1 -1
- package/dist/freeform/index.js +278 -276
- package/dist/types/components/free-form/shared/composables/schema.d.ts.map +1 -1
- package/dist/types/types/plugins/form-schema.d.ts +1 -0
- package/dist/types/types/plugins/form-schema.d.ts.map +1 -1
- package/package.json +17 -17
|
@@ -35,7 +35,7 @@ const Ec = {
|
|
|
35
35
|
json: (t) => `[data-testid="ff-json-${t}"]`
|
|
36
36
|
};
|
|
37
37
|
// @__NO_SIDE_EFFECTS__
|
|
38
|
-
function
|
|
38
|
+
function lo(t) {
|
|
39
39
|
const e = /* @__PURE__ */ Object.create(null);
|
|
40
40
|
for (const n of t.split(",")) e[n] = 1;
|
|
41
41
|
return (n) => n in e;
|
|
@@ -43,7 +43,7 @@ function ao(t) {
|
|
|
43
43
|
const Dt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
44
44
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
45
45
|
const ft = () => {
|
|
46
|
-
},
|
|
46
|
+
}, ao = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
47
47
|
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), co = (t) => t.startsWith("onUpdate:"), Ne = Object.assign, uo = Object.prototype.hasOwnProperty, tr = (t, e) => uo.call(t, e), K = Array.isArray, pt = (t) => mn(t) === "[object Map]", fo = (t) => mn(t) === "[object Set]", Q = (t) => typeof t == "function", Ie = (t) => typeof t == "string", Ye = (t) => typeof t == "symbol", oe = (t) => t !== null && typeof t == "object", po = (t) => (oe(t) || Q(t)) && Q(t.then) && Q(t.catch), ho = Object.prototype.toString, mn = (t) => ho.call(t), Ms = (t) => mn(t).slice(8, -1), go = (t) => mn(t) === "[object Object]", _n = (t) => Ie(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, $s = (t) => {
|
|
48
48
|
const e = /* @__PURE__ */ Object.create(null);
|
|
49
49
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
@@ -117,7 +117,7 @@ class To {
|
|
|
117
117
|
run() {
|
|
118
118
|
if (!(this.flags & 1))
|
|
119
119
|
return this.fn();
|
|
120
|
-
this.flags |= 2,
|
|
120
|
+
this.flags |= 2, ls(this), Fs(this);
|
|
121
121
|
const e = P, n = be;
|
|
122
122
|
P = this, be = !0;
|
|
123
123
|
try {
|
|
@@ -132,7 +132,7 @@ class To {
|
|
|
132
132
|
if (this.flags & 1) {
|
|
133
133
|
for (let e = this.deps; e; e = e.nextDep)
|
|
134
134
|
_r(e);
|
|
135
|
-
this.deps = this.depsTail = void 0,
|
|
135
|
+
this.deps = this.depsTail = void 0, ls(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
trigger() {
|
|
@@ -241,7 +241,7 @@ function bt() {
|
|
|
241
241
|
const t = Us.pop();
|
|
242
242
|
be = t === void 0 ? !0 : t;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function ls(t) {
|
|
245
245
|
const { cleanup: e } = t;
|
|
246
246
|
if (t.cleanup = void 0, e) {
|
|
247
247
|
const n = P;
|
|
@@ -318,7 +318,7 @@ function Bs(t) {
|
|
|
318
318
|
n !== t && (t.prevSub = n, n && (n.nextSub = t)), process.env.NODE_ENV !== "production" && t.dep.subsHead === void 0 && (t.dep.subsHead = t), t.dep.subs = t;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const an = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ Symbol(
|
|
322
322
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
323
323
|
), rr = /* @__PURE__ */ Symbol(
|
|
324
324
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
@@ -327,8 +327,8 @@ const ln = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ Symbol(
|
|
|
327
327
|
);
|
|
328
328
|
function J(t, e, n) {
|
|
329
329
|
if (be && P) {
|
|
330
|
-
let r =
|
|
331
|
-
r ||
|
|
330
|
+
let r = an.get(t);
|
|
331
|
+
r || an.set(t, r = /* @__PURE__ */ new Map());
|
|
332
332
|
let s = r.get(n);
|
|
333
333
|
s || (r.set(n, s = new br()), s.map = r, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
|
|
334
334
|
target: t,
|
|
@@ -338,12 +338,12 @@ function J(t, e, n) {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function Fe(t, e, n, r, s, i) {
|
|
341
|
-
const o =
|
|
341
|
+
const o = an.get(t);
|
|
342
342
|
if (!o) {
|
|
343
343
|
Ct++;
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const a = (c) => {
|
|
347
347
|
c && (process.env.NODE_ENV !== "production" ? c.trigger({
|
|
348
348
|
target: t,
|
|
349
349
|
type: e,
|
|
@@ -354,36 +354,36 @@ function Fe(t, e, n, r, s, i) {
|
|
|
354
354
|
}) : c.trigger());
|
|
355
355
|
};
|
|
356
356
|
if (gr(), e === "clear")
|
|
357
|
-
o.forEach(
|
|
357
|
+
o.forEach(a);
|
|
358
358
|
else {
|
|
359
359
|
const c = K(t), p = c && _n(n);
|
|
360
360
|
if (c && n === "length") {
|
|
361
361
|
const h = Number(r);
|
|
362
362
|
o.forEach((u, d) => {
|
|
363
|
-
(d === "length" || d === Mt || !Ye(d) && d >= h) &&
|
|
363
|
+
(d === "length" || d === Mt || !Ye(d) && d >= h) && a(u);
|
|
364
364
|
});
|
|
365
365
|
} else
|
|
366
|
-
switch ((n !== void 0 || o.has(void 0)) &&
|
|
366
|
+
switch ((n !== void 0 || o.has(void 0)) && a(o.get(n)), p && a(o.get(Mt)), e) {
|
|
367
367
|
case "add":
|
|
368
|
-
c ? p &&
|
|
368
|
+
c ? p && a(o.get("length")) : (a(o.get(qe)), pt(t) && a(o.get(rr)));
|
|
369
369
|
break;
|
|
370
370
|
case "delete":
|
|
371
|
-
c || (
|
|
371
|
+
c || (a(o.get(qe)), pt(t) && a(o.get(rr)));
|
|
372
372
|
break;
|
|
373
373
|
case "set":
|
|
374
|
-
pt(t) &&
|
|
374
|
+
pt(t) && a(o.get(qe));
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
mr();
|
|
379
379
|
}
|
|
380
380
|
function So(t, e) {
|
|
381
|
-
const n =
|
|
381
|
+
const n = an.get(t);
|
|
382
382
|
return n && n.get(e);
|
|
383
383
|
}
|
|
384
384
|
function rt(t) {
|
|
385
385
|
const e = /* @__PURE__ */ N(t);
|
|
386
|
-
return e === t ? e : (J(e, "iterate", Mt), /* @__PURE__ */
|
|
386
|
+
return e === t ? e : (J(e, "iterate", Mt), /* @__PURE__ */ le(t) ? e : e.map(De));
|
|
387
387
|
}
|
|
388
388
|
function yr(t) {
|
|
389
389
|
return J(t = /* @__PURE__ */ N(t), "iterate", Mt), t;
|
|
@@ -470,10 +470,10 @@ const vo = {
|
|
|
470
470
|
return kt(this, "push", t);
|
|
471
471
|
},
|
|
472
472
|
reduce(t, ...e) {
|
|
473
|
-
return
|
|
473
|
+
return as(this, "reduce", t, e);
|
|
474
474
|
},
|
|
475
475
|
reduceRight(t, ...e) {
|
|
476
|
-
return
|
|
476
|
+
return as(this, "reduceRight", t, e);
|
|
477
477
|
},
|
|
478
478
|
shift() {
|
|
479
479
|
return kt(this, "shift");
|
|
@@ -503,37 +503,37 @@ const vo = {
|
|
|
503
503
|
};
|
|
504
504
|
function Wn(t, e, n) {
|
|
505
505
|
const r = yr(t), s = r[e]();
|
|
506
|
-
return r !== t && !/* @__PURE__ */
|
|
506
|
+
return r !== t && !/* @__PURE__ */ le(t) && (s._next = s.next, s.next = () => {
|
|
507
507
|
const i = s._next();
|
|
508
508
|
return i.done || (i.value = n(i.value)), i;
|
|
509
509
|
}), s;
|
|
510
510
|
}
|
|
511
511
|
const Ao = Array.prototype;
|
|
512
512
|
function Re(t, e, n, r, s, i) {
|
|
513
|
-
const o = yr(t),
|
|
513
|
+
const o = yr(t), a = o !== t && !/* @__PURE__ */ le(t), c = o[e];
|
|
514
514
|
if (c !== Ao[e]) {
|
|
515
515
|
const u = c.apply(t, i);
|
|
516
|
-
return
|
|
516
|
+
return a ? De(u) : u;
|
|
517
517
|
}
|
|
518
518
|
let p = n;
|
|
519
|
-
o !== t && (
|
|
519
|
+
o !== t && (a ? p = function(u, d) {
|
|
520
520
|
return n.call(this, xe(t, u), d, t);
|
|
521
521
|
} : n.length > 2 && (p = function(u, d) {
|
|
522
522
|
return n.call(this, u, d, t);
|
|
523
523
|
}));
|
|
524
524
|
const h = c.call(o, p, r);
|
|
525
|
-
return
|
|
525
|
+
return a && s ? s(h) : h;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
const s = yr(t), i = s !== t && !/* @__PURE__ */
|
|
529
|
-
let o = n,
|
|
530
|
-
s !== t && (i ? (
|
|
531
|
-
return
|
|
527
|
+
function as(t, e, n, r) {
|
|
528
|
+
const s = yr(t), i = s !== t && !/* @__PURE__ */ le(t);
|
|
529
|
+
let o = n, a = !1;
|
|
530
|
+
s !== t && (i ? (a = r.length === 0, o = function(p, h, u) {
|
|
531
|
+
return a && (a = !1, p = xe(t, p)), n.call(this, p, xe(t, h), u, t);
|
|
532
532
|
}) : n.length > 3 && (o = function(p, h, u) {
|
|
533
533
|
return n.call(this, p, h, u, t);
|
|
534
534
|
}));
|
|
535
535
|
const c = s[e](o, ...r);
|
|
536
|
-
return
|
|
536
|
+
return a ? xe(t, c) : c;
|
|
537
537
|
}
|
|
538
538
|
function Gn(t, e, n) {
|
|
539
539
|
const r = /* @__PURE__ */ N(t);
|
|
@@ -546,7 +546,7 @@ function kt(t, e, n = []) {
|
|
|
546
546
|
const r = (/* @__PURE__ */ N(t))[e].apply(t, n);
|
|
547
547
|
return mr(), bt(), r;
|
|
548
548
|
}
|
|
549
|
-
const Ro = /* @__PURE__ */
|
|
549
|
+
const Ro = /* @__PURE__ */ lo("__proto__,__v_isRef,__isVue"), Ws = new Set(
|
|
550
550
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(Ye)
|
|
551
551
|
);
|
|
552
552
|
function Oo(t) {
|
|
@@ -579,7 +579,7 @@ class Gs {
|
|
|
579
579
|
if (n === "hasOwnProperty")
|
|
580
580
|
return Oo;
|
|
581
581
|
}
|
|
582
|
-
const
|
|
582
|
+
const a = Reflect.get(
|
|
583
583
|
e,
|
|
584
584
|
n,
|
|
585
585
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
@@ -588,12 +588,12 @@ class Gs {
|
|
|
588
588
|
/* @__PURE__ */ te(e) ? e : r
|
|
589
589
|
);
|
|
590
590
|
if ((Ye(n) ? Ws.has(n) : Ro(n)) || (s || J(e, "get", n), i))
|
|
591
|
-
return
|
|
592
|
-
if (/* @__PURE__ */ te(
|
|
593
|
-
const c = o && _n(n) ?
|
|
591
|
+
return a;
|
|
592
|
+
if (/* @__PURE__ */ te(a)) {
|
|
593
|
+
const c = o && _n(n) ? a : a.value;
|
|
594
594
|
return s && oe(c) ? /* @__PURE__ */ ir(c) : c;
|
|
595
595
|
}
|
|
596
|
-
return oe(
|
|
596
|
+
return oe(a) ? s ? /* @__PURE__ */ ir(a) : /* @__PURE__ */ yn(a) : a;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
class No extends Gs {
|
|
@@ -605,19 +605,19 @@ class No extends Gs {
|
|
|
605
605
|
const o = K(e) && _n(n);
|
|
606
606
|
if (!this._isShallow) {
|
|
607
607
|
const p = /* @__PURE__ */ Ae(i);
|
|
608
|
-
if (!/* @__PURE__ */
|
|
608
|
+
if (!/* @__PURE__ */ le(r) && !/* @__PURE__ */ Ae(r) && (i = /* @__PURE__ */ N(i), r = /* @__PURE__ */ N(r)), !o && /* @__PURE__ */ te(i) && !/* @__PURE__ */ te(r))
|
|
609
609
|
return p ? (process.env.NODE_ENV !== "production" && ve(
|
|
610
610
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
611
611
|
e[n]
|
|
612
612
|
), !0) : (i.value = r, !0);
|
|
613
613
|
}
|
|
614
|
-
const
|
|
614
|
+
const a = o ? Number(n) < e.length : tr(e, n), c = Reflect.set(
|
|
615
615
|
e,
|
|
616
616
|
n,
|
|
617
617
|
r,
|
|
618
618
|
/* @__PURE__ */ te(e) ? e : s
|
|
619
619
|
);
|
|
620
|
-
return e === /* @__PURE__ */ N(s) && (
|
|
620
|
+
return e === /* @__PURE__ */ N(s) && (a ? Se(r, i) && Fe(e, "set", n, r, i) : Fe(e, "add", n, r)), c;
|
|
621
621
|
}
|
|
622
622
|
deleteProperty(e, n) {
|
|
623
623
|
const r = tr(e, n), s = e[n], i = Reflect.deleteProperty(e, n);
|
|
@@ -655,7 +655,7 @@ class Io extends Gs {
|
|
|
655
655
|
const Do = /* @__PURE__ */ new No(), Co = /* @__PURE__ */ new Io(), sr = (t) => t, Xt = (t) => Reflect.getPrototypeOf(t);
|
|
656
656
|
function Mo(t, e, n) {
|
|
657
657
|
return function(...r) {
|
|
658
|
-
const s = this.__v_raw, i = /* @__PURE__ */ N(s), o = pt(i),
|
|
658
|
+
const s = this.__v_raw, i = /* @__PURE__ */ N(s), o = pt(i), a = t === "entries" || t === Symbol.iterator && o, c = t === "keys" && o, p = s[t](...r), h = n ? sr : e ? Pt : De;
|
|
659
659
|
return !e && J(
|
|
660
660
|
i,
|
|
661
661
|
"iterate",
|
|
@@ -668,7 +668,7 @@ function Mo(t, e, n) {
|
|
|
668
668
|
next() {
|
|
669
669
|
const { value: u, done: d } = p.next();
|
|
670
670
|
return d ? { value: u, done: d } : {
|
|
671
|
-
value:
|
|
671
|
+
value: a ? [h(u[0]), h(u[1])] : h(u),
|
|
672
672
|
done: d
|
|
673
673
|
};
|
|
674
674
|
}
|
|
@@ -691,13 +691,13 @@ function Qt(t) {
|
|
|
691
691
|
function $o(t, e) {
|
|
692
692
|
const n = {
|
|
693
693
|
get(s) {
|
|
694
|
-
const i = this.__v_raw, o = /* @__PURE__ */ N(i),
|
|
695
|
-
t || (Se(s,
|
|
694
|
+
const i = this.__v_raw, o = /* @__PURE__ */ N(i), a = /* @__PURE__ */ N(s);
|
|
695
|
+
t || (Se(s, a) && J(o, "get", s), J(o, "get", a));
|
|
696
696
|
const { has: c } = Xt(o), p = e ? sr : t ? Pt : De;
|
|
697
697
|
if (c.call(o, s))
|
|
698
698
|
return p(i.get(s));
|
|
699
|
-
if (c.call(o,
|
|
700
|
-
return p(i.get(
|
|
699
|
+
if (c.call(o, a))
|
|
700
|
+
return p(i.get(a));
|
|
701
701
|
i !== o && i.get(s);
|
|
702
702
|
},
|
|
703
703
|
get size() {
|
|
@@ -705,12 +705,12 @@ function $o(t, e) {
|
|
|
705
705
|
return !t && J(/* @__PURE__ */ N(s), "iterate", qe), s.size;
|
|
706
706
|
},
|
|
707
707
|
has(s) {
|
|
708
|
-
const i = this.__v_raw, o = /* @__PURE__ */ N(i),
|
|
709
|
-
return t || (Se(s,
|
|
708
|
+
const i = this.__v_raw, o = /* @__PURE__ */ N(i), a = /* @__PURE__ */ N(s);
|
|
709
|
+
return t || (Se(s, a) && J(o, "has", s), J(o, "has", a)), s === a ? i.has(s) : i.has(s) || i.has(a);
|
|
710
710
|
},
|
|
711
711
|
forEach(s, i) {
|
|
712
|
-
const o = this,
|
|
713
|
-
return !t && J(c, "iterate", qe),
|
|
712
|
+
const o = this, a = o.__v_raw, c = /* @__PURE__ */ N(a), p = e ? sr : t ? Pt : De;
|
|
713
|
+
return !t && J(c, "iterate", qe), a.forEach((h, u) => s.call(i, p(h), p(u), o));
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
716
|
return Ne(
|
|
@@ -722,33 +722,33 @@ function $o(t, e) {
|
|
|
722
722
|
clear: Qt("clear")
|
|
723
723
|
} : {
|
|
724
724
|
add(s) {
|
|
725
|
-
const i = /* @__PURE__ */ N(this), o = Xt(i),
|
|
726
|
-
return o.has.call(i, c) || Se(s, c) && o.has.call(i, s) || Se(
|
|
725
|
+
const i = /* @__PURE__ */ N(this), o = Xt(i), a = /* @__PURE__ */ N(s), c = !e && !/* @__PURE__ */ le(s) && !/* @__PURE__ */ Ae(s) ? a : s;
|
|
726
|
+
return o.has.call(i, c) || Se(s, c) && o.has.call(i, s) || Se(a, c) && o.has.call(i, a) || (i.add(c), Fe(i, "add", c, c)), this;
|
|
727
727
|
},
|
|
728
728
|
set(s, i) {
|
|
729
|
-
!e && !/* @__PURE__ */
|
|
730
|
-
const o = /* @__PURE__ */ N(this), { has:
|
|
731
|
-
let p =
|
|
732
|
-
p ? process.env.NODE_ENV !== "production" && cs(o,
|
|
729
|
+
!e && !/* @__PURE__ */ le(i) && !/* @__PURE__ */ Ae(i) && (i = /* @__PURE__ */ N(i));
|
|
730
|
+
const o = /* @__PURE__ */ N(this), { has: a, get: c } = Xt(o);
|
|
731
|
+
let p = a.call(o, s);
|
|
732
|
+
p ? process.env.NODE_ENV !== "production" && cs(o, a, s) : (s = /* @__PURE__ */ N(s), p = a.call(o, s));
|
|
733
733
|
const h = c.call(o, s);
|
|
734
734
|
return o.set(s, i), p ? Se(i, h) && Fe(o, "set", s, i, h) : Fe(o, "add", s, i), this;
|
|
735
735
|
},
|
|
736
736
|
delete(s) {
|
|
737
|
-
const i = /* @__PURE__ */ N(this), { has: o, get:
|
|
737
|
+
const i = /* @__PURE__ */ N(this), { has: o, get: a } = Xt(i);
|
|
738
738
|
let c = o.call(i, s);
|
|
739
739
|
c ? process.env.NODE_ENV !== "production" && cs(i, o, s) : (s = /* @__PURE__ */ N(s), c = o.call(i, s));
|
|
740
|
-
const p =
|
|
740
|
+
const p = a ? a.call(i, s) : void 0, h = i.delete(s);
|
|
741
741
|
return c && Fe(i, "delete", s, void 0, p), h;
|
|
742
742
|
},
|
|
743
743
|
clear() {
|
|
744
|
-
const s = /* @__PURE__ */ N(this), i = s.size !== 0, o = process.env.NODE_ENV !== "production" ? pt(s) ? new Map(s) : new Set(s) : void 0,
|
|
744
|
+
const s = /* @__PURE__ */ N(this), i = s.size !== 0, o = process.env.NODE_ENV !== "production" ? pt(s) ? new Map(s) : new Set(s) : void 0, a = s.clear();
|
|
745
745
|
return i && Fe(
|
|
746
746
|
s,
|
|
747
747
|
"clear",
|
|
748
748
|
void 0,
|
|
749
749
|
void 0,
|
|
750
750
|
o
|
|
751
|
-
),
|
|
751
|
+
), a;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
), [
|
|
@@ -832,11 +832,11 @@ function Zs(t, e, n, r, s) {
|
|
|
832
832
|
const o = Fo(Ms(t));
|
|
833
833
|
if (o === 0)
|
|
834
834
|
return t;
|
|
835
|
-
const
|
|
835
|
+
const a = new Proxy(
|
|
836
836
|
t,
|
|
837
837
|
o === 2 ? r : n
|
|
838
838
|
);
|
|
839
|
-
return s.set(t,
|
|
839
|
+
return s.set(t, a), a;
|
|
840
840
|
}
|
|
841
841
|
// @__NO_SIDE_EFFECTS__
|
|
842
842
|
function ht(t) {
|
|
@@ -847,7 +847,7 @@ function Ae(t) {
|
|
|
847
847
|
return !!(t && t.__v_isReadonly);
|
|
848
848
|
}
|
|
849
849
|
// @__NO_SIDE_EFFECTS__
|
|
850
|
-
function
|
|
850
|
+
function le(t) {
|
|
851
851
|
return !!(t && t.__v_isShallow);
|
|
852
852
|
}
|
|
853
853
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -883,7 +883,7 @@ class Ho {
|
|
|
883
883
|
}) : this.dep.track(), this._value;
|
|
884
884
|
}
|
|
885
885
|
set value(e) {
|
|
886
|
-
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */
|
|
886
|
+
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ le(e) || /* @__PURE__ */ Ae(e);
|
|
887
887
|
e = r ? e : /* @__PURE__ */ N(e), Se(e, n) && (this._rawValue = e, this._value = r ? e : De(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
888
888
|
target: this,
|
|
889
889
|
type: "set",
|
|
@@ -905,7 +905,7 @@ class Uo {
|
|
|
905
905
|
let s = !0, i = e;
|
|
906
906
|
if (!K(e) || Ye(this._key) || !_n(this._key))
|
|
907
907
|
do
|
|
908
|
-
s = !/* @__PURE__ */ $t(i) || /* @__PURE__ */
|
|
908
|
+
s = !/* @__PURE__ */ $t(i) || /* @__PURE__ */ le(i);
|
|
909
909
|
while (s && (i = i.__v_raw));
|
|
910
910
|
this._shallow = s;
|
|
911
911
|
}
|
|
@@ -985,15 +985,15 @@ function Yo(t, e = !1, n = Ge) {
|
|
|
985
985
|
);
|
|
986
986
|
}
|
|
987
987
|
function Zo(t, e, n = Dt) {
|
|
988
|
-
const { immediate: r, deep: s, once: i, scheduler: o, augmentJob:
|
|
988
|
+
const { immediate: r, deep: s, once: i, scheduler: o, augmentJob: a, call: c } = n, p = (_) => {
|
|
989
989
|
(n.onWarn || ve)(
|
|
990
990
|
"Invalid watch source: ",
|
|
991
991
|
_,
|
|
992
992
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
993
993
|
);
|
|
994
|
-
}, h = (_) => s ? _ : /* @__PURE__ */
|
|
994
|
+
}, h = (_) => s ? _ : /* @__PURE__ */ le(_) || s === !1 || s === 0 ? Ve(_, 1) : Ve(_);
|
|
995
995
|
let u, d, m, y, O = !1, $ = !1;
|
|
996
|
-
if (/* @__PURE__ */ te(t) ? (d = () => t.value, O = /* @__PURE__ */
|
|
996
|
+
if (/* @__PURE__ */ te(t) ? (d = () => t.value, O = /* @__PURE__ */ le(t)) : /* @__PURE__ */ ht(t) ? (d = () => h(t), O = !0) : K(t) ? ($ = !0, O = t.some((_) => /* @__PURE__ */ ht(_) || /* @__PURE__ */ le(_)), d = () => t.map((_) => {
|
|
997
997
|
if (/* @__PURE__ */ te(_))
|
|
998
998
|
return _.value;
|
|
999
999
|
if (/* @__PURE__ */ ht(_))
|
|
@@ -1058,7 +1058,7 @@ function Zo(t, e, n = Dt) {
|
|
|
1058
1058
|
} else
|
|
1059
1059
|
u.run();
|
|
1060
1060
|
};
|
|
1061
|
-
return
|
|
1061
|
+
return a && a(A), u = new To(d), u.scheduler = o ? () => o(A, !1) : A, y = (_) => Yo(_, !1, u), m = u.onStop = () => {
|
|
1062
1062
|
const _ = cn.get(u);
|
|
1063
1063
|
if (_) {
|
|
1064
1064
|
if (c)
|
|
@@ -1109,8 +1109,8 @@ function q(t, ...e) {
|
|
|
1109
1109
|
[
|
|
1110
1110
|
// eslint-disable-next-line no-restricted-syntax
|
|
1111
1111
|
t + e.map((i) => {
|
|
1112
|
-
var o,
|
|
1113
|
-
return (
|
|
1112
|
+
var o, a;
|
|
1113
|
+
return (a = (o = i.toString) == null ? void 0 : o.call(i)) != null ? a : JSON.stringify(i);
|
|
1114
1114
|
}).join(""),
|
|
1115
1115
|
n && n.proxy,
|
|
1116
1116
|
s.map(
|
|
@@ -1123,7 +1123,7 @@ function q(t, ...e) {
|
|
|
1123
1123
|
else {
|
|
1124
1124
|
const i = [`[Vue warn]: ${t}`, ...e];
|
|
1125
1125
|
s.length && i.push(`
|
|
1126
|
-
`, ...
|
|
1126
|
+
`, ...el(s)), console.warn(...i);
|
|
1127
1127
|
}
|
|
1128
1128
|
bt(), qn = !1;
|
|
1129
1129
|
}
|
|
@@ -1143,22 +1143,22 @@ function Jo() {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
return e;
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function el(t) {
|
|
1147
1147
|
const e = [];
|
|
1148
1148
|
return t.forEach((n, r) => {
|
|
1149
1149
|
e.push(...r === 0 ? [] : [`
|
|
1150
|
-
`], ...
|
|
1150
|
+
`], ...tl(n));
|
|
1151
1151
|
}), e;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function tl({ vnode: t, recurseCount: e }) {
|
|
1154
1154
|
const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${gi(
|
|
1155
1155
|
t.component,
|
|
1156
1156
|
t.type,
|
|
1157
1157
|
r
|
|
1158
1158
|
)}`, i = ">" + n;
|
|
1159
|
-
return t.props ? [s, ...
|
|
1159
|
+
return t.props ? [s, ...nl(t.props), i] : [s + i];
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function nl(t) {
|
|
1162
1162
|
const e = [], n = Object.keys(t);
|
|
1163
1163
|
return n.slice(0, 3).forEach((r) => {
|
|
1164
1164
|
e.push(...Qs(r, t[r]));
|
|
@@ -1226,16 +1226,16 @@ function Er(t, e, n, r) {
|
|
|
1226
1226
|
function Tr(t, e, n, r = !0) {
|
|
1227
1227
|
const s = e ? e.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = e && e.appContext.config || Dt;
|
|
1228
1228
|
if (e) {
|
|
1229
|
-
let
|
|
1229
|
+
let a = e.parent;
|
|
1230
1230
|
const c = e.proxy, p = process.env.NODE_ENV !== "production" ? wr[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1231
|
-
for (;
|
|
1232
|
-
const h =
|
|
1231
|
+
for (; a; ) {
|
|
1232
|
+
const h = a.ec;
|
|
1233
1233
|
if (h) {
|
|
1234
1234
|
for (let u = 0; u < h.length; u++)
|
|
1235
1235
|
if (h[u](t, c, p) === !1)
|
|
1236
1236
|
return;
|
|
1237
1237
|
}
|
|
1238
|
-
|
|
1238
|
+
a = a.parent;
|
|
1239
1239
|
}
|
|
1240
1240
|
if (i) {
|
|
1241
1241
|
_t(), wn(i, null, 10, [
|
|
@@ -1246,9 +1246,9 @@ function Tr(t, e, n, r = !0) {
|
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
|
|
1249
|
+
rl(t, n, s, r, o);
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function rl(t, e, n, r = !0, s = !1) {
|
|
1252
1252
|
if (process.env.NODE_ENV !== "production") {
|
|
1253
1253
|
const i = wr[e];
|
|
1254
1254
|
if (n && Xo(n), q(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && Qo(), r)
|
|
@@ -1264,10 +1264,10 @@ const pe = [];
|
|
|
1264
1264
|
let Oe = -1;
|
|
1265
1265
|
const dt = [];
|
|
1266
1266
|
let je = null, ot = 0;
|
|
1267
|
-
const
|
|
1268
|
-
let
|
|
1269
|
-
const
|
|
1270
|
-
function
|
|
1267
|
+
const sl = /* @__PURE__ */ Promise.resolve();
|
|
1268
|
+
let lr = null;
|
|
1269
|
+
const il = 100;
|
|
1270
|
+
function ol(t) {
|
|
1271
1271
|
let e = Oe + 1, n = pe.length;
|
|
1272
1272
|
for (; e < n; ) {
|
|
1273
1273
|
const r = e + n >>> 1, s = pe[r], i = Lt(s);
|
|
@@ -1279,16 +1279,16 @@ function Js(t) {
|
|
|
1279
1279
|
if (!(t.flags & 1)) {
|
|
1280
1280
|
const e = Lt(t), n = pe[pe.length - 1];
|
|
1281
1281
|
!n || // fast path when the job id is larger than the tail
|
|
1282
|
-
!(t.flags & 2) && e >= Lt(n) ? pe.push(t) : pe.splice(
|
|
1282
|
+
!(t.flags & 2) && e >= Lt(n) ? pe.push(t) : pe.splice(ol(e), 0, t), t.flags |= 1, ei();
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
1285
|
function ei() {
|
|
1286
|
-
|
|
1286
|
+
lr || (lr = sl.then(ni));
|
|
1287
1287
|
}
|
|
1288
1288
|
function ti(t) {
|
|
1289
1289
|
K(t) ? dt.push(...t) : je && t.id === -1 ? je.splice(ot + 1, 0, t) : t.flags & 1 || (dt.push(t), t.flags |= 1), ei();
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function ll(t) {
|
|
1292
1292
|
if (dt.length) {
|
|
1293
1293
|
const e = [...new Set(dt)].sort(
|
|
1294
1294
|
(n, r) => Lt(n) - Lt(r)
|
|
@@ -1326,12 +1326,12 @@ function ni(t) {
|
|
|
1326
1326
|
const n = pe[Oe];
|
|
1327
1327
|
n && (n.flags &= -2);
|
|
1328
1328
|
}
|
|
1329
|
-
Oe = -1, pe.length = 0,
|
|
1329
|
+
Oe = -1, pe.length = 0, ll(t), lr = null, (pe.length || dt.length) && ni(t);
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
function ri(t, e) {
|
|
1333
1333
|
const n = t.get(e) || 0;
|
|
1334
|
-
if (n >
|
|
1334
|
+
if (n > il) {
|
|
1335
1335
|
const r = e.i, s = r && di(r.type);
|
|
1336
1336
|
return Tr(
|
|
1337
1337
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
@@ -1343,12 +1343,12 @@ function ri(t, e) {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
const Kn = /* @__PURE__ */ new Map();
|
|
1345
1345
|
process.env.NODE_ENV !== "production" && (bn().__VUE_HMR_RUNTIME__ = {
|
|
1346
|
-
createRecord: Yn(
|
|
1347
|
-
rerender: Yn(
|
|
1348
|
-
reload: Yn(
|
|
1346
|
+
createRecord: Yn(al),
|
|
1347
|
+
rerender: Yn(cl),
|
|
1348
|
+
reload: Yn(ul)
|
|
1349
1349
|
});
|
|
1350
1350
|
const un = /* @__PURE__ */ new Map();
|
|
1351
|
-
function
|
|
1351
|
+
function al(t, e) {
|
|
1352
1352
|
return un.has(t) ? !1 : (un.set(t, {
|
|
1353
1353
|
initialDef: fn(e),
|
|
1354
1354
|
instances: /* @__PURE__ */ new Set()
|
|
@@ -1357,22 +1357,22 @@ function la(t, e) {
|
|
|
1357
1357
|
function fn(t) {
|
|
1358
1358
|
return mi(t) ? t.__vccOpts : t;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function cl(t, e) {
|
|
1361
1361
|
const n = un.get(t);
|
|
1362
1362
|
n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
|
|
1363
1363
|
e && (r.render = e, fn(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
|
|
1364
1364
|
}));
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function ul(t, e) {
|
|
1367
1367
|
const n = un.get(t);
|
|
1368
1368
|
if (!n) return;
|
|
1369
1369
|
e = fn(e), us(n.initialDef, e);
|
|
1370
1370
|
const r = [...n.instances];
|
|
1371
1371
|
for (let s = 0; s < r.length; s++) {
|
|
1372
1372
|
const i = r[s], o = fn(i.type);
|
|
1373
|
-
let
|
|
1374
|
-
|
|
1375
|
-
i.job.flags & 8 || (i.parent.update(),
|
|
1373
|
+
let a = Kn.get(o);
|
|
1374
|
+
a || (o !== n.initialDef && us(o, e), Kn.set(o, a = /* @__PURE__ */ new Set())), a.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (a.add(i), i.ceReload(e.styles), a.delete(i)) : i.parent ? Js(() => {
|
|
1375
|
+
i.job.flags & 8 || (i.parent.update(), a.delete(i));
|
|
1376
1376
|
}) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1377
1377
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1378
1378
|
), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(o);
|
|
@@ -1397,19 +1397,19 @@ function Yn(t) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
let
|
|
1400
|
+
let lt, en = [];
|
|
1401
1401
|
function si(t, e) {
|
|
1402
1402
|
var n, r;
|
|
1403
|
-
|
|
1403
|
+
lt = t, lt ? (lt.enabled = !0, en.forEach(({ event: s, args: i }) => lt.emit(s, ...i)), en = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1404
1404
|
window.HTMLElement && // also exclude jsdom
|
|
1405
1405
|
// eslint-disable-next-line no-restricted-syntax
|
|
1406
1406
|
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((i) => {
|
|
1407
1407
|
si(i, e);
|
|
1408
1408
|
}), setTimeout(() => {
|
|
1409
|
-
|
|
1409
|
+
lt || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, en = []);
|
|
1410
1410
|
}, 3e3)) : en = [];
|
|
1411
1411
|
}
|
|
1412
|
-
let zt = null,
|
|
1412
|
+
let zt = null, fl = null;
|
|
1413
1413
|
function ii(t, e) {
|
|
1414
1414
|
if (process.env.NODE_ENV !== "production" && (!ue || ue.isMounted) && q("provide() can only be used inside setup()."), ue) {
|
|
1415
1415
|
let n = ue.provides;
|
|
@@ -1419,7 +1419,7 @@ function ii(t, e) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
function oi(t, e, n = !1) {
|
|
1421
1421
|
const r = yt();
|
|
1422
|
-
if (r ||
|
|
1422
|
+
if (r || ai) {
|
|
1423
1423
|
let s = r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1424
1424
|
if (s && t in s)
|
|
1425
1425
|
return s[t];
|
|
@@ -1428,23 +1428,23 @@ function oi(t, e, n = !1) {
|
|
|
1428
1428
|
process.env.NODE_ENV !== "production" && q(`injection "${String(t)}" not found.`);
|
|
1429
1429
|
} else process.env.NODE_ENV !== "production" && q("inject() can only be used inside setup() or functional components.");
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1432
|
-
return !!(yt() ||
|
|
1431
|
+
function pl() {
|
|
1432
|
+
return !!(yt() || ai);
|
|
1433
1433
|
}
|
|
1434
|
-
const
|
|
1434
|
+
const hl = /* @__PURE__ */ Symbol.for("v-scx"), dl = () => {
|
|
1435
1435
|
{
|
|
1436
|
-
const t = oi(
|
|
1436
|
+
const t = oi(hl);
|
|
1437
1437
|
return t || process.env.NODE_ENV !== "production" && q(
|
|
1438
1438
|
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
1439
1439
|
), t;
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
|
-
function
|
|
1442
|
+
function ar(t, e, n) {
|
|
1443
1443
|
return process.env.NODE_ENV !== "production" && !Q(e) && q(
|
|
1444
1444
|
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
|
|
1445
|
-
),
|
|
1445
|
+
), gl(t, e, n);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function gl(t, e, n = Dt) {
|
|
1448
1448
|
const { immediate: r, deep: s, flush: i, once: o } = n;
|
|
1449
1449
|
process.env.NODE_ENV !== "production" && !e && (r !== void 0 && q(
|
|
1450
1450
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
@@ -1453,13 +1453,13 @@ function ga(t, e, n = Dt) {
|
|
|
1453
1453
|
), o !== void 0 && q(
|
|
1454
1454
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1455
1455
|
));
|
|
1456
|
-
const
|
|
1457
|
-
process.env.NODE_ENV !== "production" && (
|
|
1456
|
+
const a = Ne({}, n);
|
|
1457
|
+
process.env.NODE_ENV !== "production" && (a.onWarn = q);
|
|
1458
1458
|
const c = e && r || !e && i !== "post";
|
|
1459
1459
|
let p;
|
|
1460
1460
|
if (jt) {
|
|
1461
1461
|
if (i === "sync") {
|
|
1462
|
-
const m =
|
|
1462
|
+
const m = dl();
|
|
1463
1463
|
p = m.__watcherHandles || (m.__watcherHandles = []);
|
|
1464
1464
|
} else if (!c) {
|
|
1465
1465
|
const m = () => {
|
|
@@ -1468,30 +1468,30 @@ function ga(t, e, n = Dt) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
const h = ue;
|
|
1471
|
-
|
|
1471
|
+
a.call = (m, y, O) => Er(m, h, y, O);
|
|
1472
1472
|
let u = !1;
|
|
1473
|
-
i === "post" ?
|
|
1474
|
-
|
|
1475
|
-
} : i !== "sync" && (u = !0,
|
|
1473
|
+
i === "post" ? a.scheduler = (m) => {
|
|
1474
|
+
Sl(m, h && h.suspense);
|
|
1475
|
+
} : i !== "sync" && (u = !0, a.scheduler = (m, y) => {
|
|
1476
1476
|
y ? m() : Js(m);
|
|
1477
|
-
}),
|
|
1477
|
+
}), a.augmentJob = (m) => {
|
|
1478
1478
|
e && (m.flags |= 4), u && (m.flags |= 2, h && (m.id = h.uid, m.i = h));
|
|
1479
1479
|
};
|
|
1480
|
-
const d = Zo(t, e,
|
|
1480
|
+
const d = Zo(t, e, a);
|
|
1481
1481
|
return jt && (p ? p.push(d) : c && d()), d;
|
|
1482
1482
|
}
|
|
1483
|
-
const
|
|
1484
|
-
function
|
|
1485
|
-
t.shapeFlag & 6 && t.component ? (t.transition = e,
|
|
1483
|
+
const ml = (t) => t.__isTeleport;
|
|
1484
|
+
function li(t, e) {
|
|
1485
|
+
t.shapeFlag & 6 && t.component ? (t.transition = e, li(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1486
1486
|
}
|
|
1487
1487
|
bn().requestIdleCallback;
|
|
1488
1488
|
bn().cancelIdleCallback;
|
|
1489
|
-
function
|
|
1489
|
+
function _l(t, e, n = ue, r = !1) {
|
|
1490
1490
|
if (n) {
|
|
1491
1491
|
const s = n[t] || (n[t] = []), i = e.__weh || (e.__weh = (...o) => {
|
|
1492
1492
|
_t();
|
|
1493
|
-
const
|
|
1494
|
-
return
|
|
1493
|
+
const a = Ll(n), c = Er(e, n, t, o);
|
|
1494
|
+
return a(), bt(), c;
|
|
1495
1495
|
});
|
|
1496
1496
|
return r ? s.unshift(i) : s.push(i), i;
|
|
1497
1497
|
} else if (process.env.NODE_ENV !== "production") {
|
|
@@ -1501,38 +1501,38 @@ function _a(t, e, n = ue, r = !1) {
|
|
|
1501
1501
|
);
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
const
|
|
1505
|
-
(!jt || t === "sp") &&
|
|
1506
|
-
},
|
|
1504
|
+
const bl = (t) => (e, n = ue) => {
|
|
1505
|
+
(!jt || t === "sp") && _l(t, (...r) => e(...r), n);
|
|
1506
|
+
}, yl = bl(
|
|
1507
1507
|
"bum"
|
|
1508
|
-
),
|
|
1509
|
-
process.env.NODE_ENV !== "production" && (
|
|
1508
|
+
), wl = /* @__PURE__ */ Symbol.for("v-ndc"), El = {};
|
|
1509
|
+
process.env.NODE_ENV !== "production" && (El.ownKeys = (t) => (q(
|
|
1510
1510
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1511
1511
|
), Reflect.ownKeys(t)));
|
|
1512
|
-
function
|
|
1513
|
-
return
|
|
1512
|
+
function Tl() {
|
|
1513
|
+
return kl("useSlots").slots;
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function kl(t) {
|
|
1516
1516
|
const e = yt();
|
|
1517
|
-
return process.env.NODE_ENV !== "production" && !e && q(`${t}() called without active instance.`), e.setupContext || (e.setupContext =
|
|
1517
|
+
return process.env.NODE_ENV !== "production" && !e && q(`${t}() called without active instance.`), e.setupContext || (e.setupContext = jl(e));
|
|
1518
1518
|
}
|
|
1519
|
-
let
|
|
1520
|
-
const
|
|
1521
|
-
function
|
|
1519
|
+
let ai = null;
|
|
1520
|
+
const xl = {}, ci = (t) => Object.getPrototypeOf(t) === xl, Sl = Al, vl = (t) => t.__isSuspense;
|
|
1521
|
+
function Al(t, e) {
|
|
1522
1522
|
e && e.pendingBranch ? K(t) ? e.effects.push(...t) : e.effects.push(t) : ti(t);
|
|
1523
1523
|
}
|
|
1524
|
-
const ui = /* @__PURE__ */ Symbol.for("v-fgt"),
|
|
1525
|
-
function
|
|
1524
|
+
const ui = /* @__PURE__ */ Symbol.for("v-fgt"), Rl = /* @__PURE__ */ Symbol.for("v-txt"), Ol = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1525
|
+
function Nl(t) {
|
|
1526
1526
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const Il = (...t) => pi(
|
|
1529
1529
|
...t
|
|
1530
1530
|
), fi = ({ key: t }) => t ?? null, sn = ({
|
|
1531
1531
|
ref: t,
|
|
1532
1532
|
ref_key: e,
|
|
1533
1533
|
ref_for: n
|
|
1534
1534
|
}) => (typeof t == "number" && (t = "" + t), t != null ? Ie(t) || /* @__PURE__ */ te(t) || Q(t) ? { i: zt, r: t, k: e, f: !!n } : t : null);
|
|
1535
|
-
function
|
|
1535
|
+
function Dl(t, e = null, n = null, r = 0, s = null, i = t === ui ? 0 : 1, o = !1, a = !1) {
|
|
1536
1536
|
const c = {
|
|
1537
1537
|
__v_isVNode: !0,
|
|
1538
1538
|
__v_skip: !0,
|
|
@@ -1540,7 +1540,7 @@ function Da(t, e = null, n = null, r = 0, s = null, i = t === ui ? 0 : 1, o = !1
|
|
|
1540
1540
|
props: e,
|
|
1541
1541
|
key: e && fi(e),
|
|
1542
1542
|
ref: e && sn(e),
|
|
1543
|
-
scopeId:
|
|
1543
|
+
scopeId: fl,
|
|
1544
1544
|
slotScopeIds: null,
|
|
1545
1545
|
children: n,
|
|
1546
1546
|
component: null,
|
|
@@ -1562,31 +1562,31 @@ function Da(t, e = null, n = null, r = 0, s = null, i = t === ui ? 0 : 1, o = !1
|
|
|
1562
1562
|
appContext: null,
|
|
1563
1563
|
ctx: zt
|
|
1564
1564
|
};
|
|
1565
|
-
return
|
|
1565
|
+
return a ? (kr(c, n), i & 128 && t.normalize(c)) : n && (c.shapeFlag |= Ie(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && q("VNode created with invalid key (NaN). VNode type:", c.type), c;
|
|
1566
1566
|
}
|
|
1567
|
-
const
|
|
1567
|
+
const Cl = process.env.NODE_ENV !== "production" ? Il : pi;
|
|
1568
1568
|
function pi(t, e = null, n = null, r = 0, s = null, i = !1) {
|
|
1569
|
-
if ((!t || t ===
|
|
1570
|
-
const
|
|
1569
|
+
if ((!t || t === wl) && (process.env.NODE_ENV !== "production" && !t && q(`Invalid vnode type when creating vnode: ${t}.`), t = Ol), Nl(t)) {
|
|
1570
|
+
const a = pn(
|
|
1571
1571
|
t,
|
|
1572
1572
|
e,
|
|
1573
1573
|
!0
|
|
1574
1574
|
/* mergeRef: true */
|
|
1575
1575
|
);
|
|
1576
|
-
return n && kr(
|
|
1576
|
+
return n && kr(a, n), a.patchFlag = -2, a;
|
|
1577
1577
|
}
|
|
1578
1578
|
if (mi(t) && (t = t.__vccOpts), e) {
|
|
1579
|
-
e =
|
|
1580
|
-
let { class:
|
|
1581
|
-
|
|
1579
|
+
e = Ml(e);
|
|
1580
|
+
let { class: a, style: c } = e;
|
|
1581
|
+
a && !Ie(a) && (e.class = dr(a)), oe(c) && (/* @__PURE__ */ $t(c) && !K(c) && (c = Ne({}, c)), e.style = hr(c));
|
|
1582
1582
|
}
|
|
1583
|
-
const o = Ie(t) ? 1 :
|
|
1583
|
+
const o = Ie(t) ? 1 : vl(t) ? 128 : ml(t) ? 64 : oe(t) ? 4 : Q(t) ? 2 : 0;
|
|
1584
1584
|
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ $t(t) && (t = /* @__PURE__ */ N(t), q(
|
|
1585
1585
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1586
1586
|
`
|
|
1587
1587
|
Component that was made reactive: `,
|
|
1588
1588
|
t
|
|
1589
|
-
)),
|
|
1589
|
+
)), Dl(
|
|
1590
1590
|
t,
|
|
1591
1591
|
e,
|
|
1592
1592
|
n,
|
|
@@ -1597,11 +1597,11 @@ Component that was made reactive: `,
|
|
|
1597
1597
|
!0
|
|
1598
1598
|
);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function Ml(t) {
|
|
1601
1601
|
return t ? /* @__PURE__ */ $t(t) || ci(t) ? Ne({}, t) : t : null;
|
|
1602
1602
|
}
|
|
1603
1603
|
function pn(t, e, n = !1, r = !1) {
|
|
1604
|
-
const { props: s, ref: i, patchFlag: o, children:
|
|
1604
|
+
const { props: s, ref: i, patchFlag: o, children: a, transition: c } = t, p = e ? Pl(s || {}, e) : s, h = {
|
|
1605
1605
|
__v_isVNode: !0,
|
|
1606
1606
|
__v_skip: !0,
|
|
1607
1607
|
type: t.type,
|
|
@@ -1615,7 +1615,7 @@ function pn(t, e, n = !1, r = !1) {
|
|
|
1615
1615
|
) : i,
|
|
1616
1616
|
scopeId: t.scopeId,
|
|
1617
1617
|
slotScopeIds: t.slotScopeIds,
|
|
1618
|
-
children: process.env.NODE_ENV !== "production" && o === -1 && K(
|
|
1618
|
+
children: process.env.NODE_ENV !== "production" && o === -1 && K(a) ? a.map(hi) : a,
|
|
1619
1619
|
target: t.target,
|
|
1620
1620
|
targetStart: t.targetStart,
|
|
1621
1621
|
targetAnchor: t.targetAnchor,
|
|
@@ -1645,7 +1645,7 @@ function pn(t, e, n = !1, r = !1) {
|
|
|
1645
1645
|
ctx: t.ctx,
|
|
1646
1646
|
ce: t.ce
|
|
1647
1647
|
};
|
|
1648
|
-
return c && r &&
|
|
1648
|
+
return c && r && li(
|
|
1649
1649
|
h,
|
|
1650
1650
|
c.clone(h)
|
|
1651
1651
|
), h;
|
|
@@ -1654,8 +1654,8 @@ function hi(t) {
|
|
|
1654
1654
|
const e = pn(t);
|
|
1655
1655
|
return K(t.children) && (e.children = t.children.map(hi)), e;
|
|
1656
1656
|
}
|
|
1657
|
-
function $
|
|
1658
|
-
return
|
|
1657
|
+
function $l(t = " ", e = 0) {
|
|
1658
|
+
return Cl(Rl, null, t, e);
|
|
1659
1659
|
}
|
|
1660
1660
|
function kr(t, e) {
|
|
1661
1661
|
let n = 0;
|
|
@@ -1671,10 +1671,10 @@ function kr(t, e) {
|
|
|
1671
1671
|
return;
|
|
1672
1672
|
} else
|
|
1673
1673
|
n = 32, !e._ && !ci(e) && (e._ctx = zt);
|
|
1674
|
-
else Q(e) ? (e = { default: e, _ctx: zt }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [$
|
|
1674
|
+
else Q(e) ? (e = { default: e, _ctx: zt }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [$l(e)]) : n = 8);
|
|
1675
1675
|
t.children = e, t.shapeFlag |= n;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Pl(...t) {
|
|
1678
1678
|
const e = {};
|
|
1679
1679
|
for (let n = 0; n < t.length; n++) {
|
|
1680
1680
|
const r = t[n];
|
|
@@ -1683,7 +1683,7 @@ function Pa(...t) {
|
|
|
1683
1683
|
e.class !== r.class && (e.class = dr([e.class, r.class]));
|
|
1684
1684
|
else if (s === "style")
|
|
1685
1685
|
e.style = hr([e.style, r.style]);
|
|
1686
|
-
else if (
|
|
1686
|
+
else if (ao(s)) {
|
|
1687
1687
|
const i = e[s], o = r[s];
|
|
1688
1688
|
o && i !== o && !(K(i) && i.includes(o)) ? e[s] = i ? [].concat(i, o) : o : o == null && i == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
1689
1689
|
// the model listener.
|
|
@@ -1710,7 +1710,7 @@ let cr;
|
|
|
1710
1710
|
(n) => jt = n
|
|
1711
1711
|
);
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1713
|
+
const Ll = (t) => {
|
|
1714
1714
|
const e = ue;
|
|
1715
1715
|
return cr(t), t.scope.on(), () => {
|
|
1716
1716
|
t.scope.off(), cr(e);
|
|
@@ -1732,14 +1732,14 @@ const fs = process.env.NODE_ENV !== "production" ? {
|
|
|
1732
1732
|
return J(t, "get", ""), t[e];
|
|
1733
1733
|
}
|
|
1734
1734
|
};
|
|
1735
|
-
function
|
|
1735
|
+
function zl(t) {
|
|
1736
1736
|
return new Proxy(t.slots, {
|
|
1737
1737
|
get(e, n) {
|
|
1738
1738
|
return J(t, "get", "$slots"), e[n];
|
|
1739
1739
|
}
|
|
1740
1740
|
});
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function jl(t) {
|
|
1743
1743
|
const e = (n) => {
|
|
1744
1744
|
if (process.env.NODE_ENV !== "production" && (t.exposed && q("expose() should be called only once per setup()."), n != null)) {
|
|
1745
1745
|
let r = typeof n;
|
|
@@ -1756,7 +1756,7 @@ function ja(t) {
|
|
|
1756
1756
|
return n || (n = new Proxy(t.attrs, fs));
|
|
1757
1757
|
},
|
|
1758
1758
|
get slots() {
|
|
1759
|
-
return r || (r =
|
|
1759
|
+
return r || (r = zl(t));
|
|
1760
1760
|
},
|
|
1761
1761
|
get emit() {
|
|
1762
1762
|
return (s, ...i) => t.emit(s, ...i);
|
|
@@ -1771,7 +1771,7 @@ function ja(t) {
|
|
|
1771
1771
|
expose: e
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
|
-
const
|
|
1774
|
+
const Fl = /(?:^|[-_])\w/g, Vl = (t) => t.replace(Fl, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1775
1775
|
function di(t, e = !0) {
|
|
1776
1776
|
return Q(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1777
1777
|
}
|
|
@@ -1791,7 +1791,7 @@ function gi(t, e, n = !1) {
|
|
|
1791
1791
|
t.parent.type.components
|
|
1792
1792
|
) || s(t.appContext.components);
|
|
1793
1793
|
}
|
|
1794
|
-
return r ?
|
|
1794
|
+
return r ? Vl(r) : n ? "App" : "Anonymous";
|
|
1795
1795
|
}
|
|
1796
1796
|
function mi(t) {
|
|
1797
1797
|
return Q(t) && "__vccOpts" in t;
|
|
@@ -1804,7 +1804,7 @@ const on = (t, e) => {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
return n;
|
|
1806
1806
|
};
|
|
1807
|
-
function
|
|
1807
|
+
function Hl() {
|
|
1808
1808
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1809
1809
|
return;
|
|
1810
1810
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
|
|
@@ -1822,7 +1822,7 @@ function Ha() {
|
|
|
1822
1822
|
{},
|
|
1823
1823
|
["span", t, h(u)],
|
|
1824
1824
|
"<",
|
|
1825
|
-
|
|
1825
|
+
a(d),
|
|
1826
1826
|
">"
|
|
1827
1827
|
];
|
|
1828
1828
|
} else {
|
|
@@ -1830,18 +1830,18 @@ function Ha() {
|
|
|
1830
1830
|
return [
|
|
1831
1831
|
"div",
|
|
1832
1832
|
{},
|
|
1833
|
-
["span", t, /* @__PURE__ */
|
|
1833
|
+
["span", t, /* @__PURE__ */ le(u) ? "ShallowReactive" : "Reactive"],
|
|
1834
1834
|
"<",
|
|
1835
|
-
|
|
1835
|
+
a(u),
|
|
1836
1836
|
`>${/* @__PURE__ */ Ae(u) ? " (readonly)" : ""}`
|
|
1837
1837
|
];
|
|
1838
1838
|
if (/* @__PURE__ */ Ae(u))
|
|
1839
1839
|
return [
|
|
1840
1840
|
"div",
|
|
1841
1841
|
{},
|
|
1842
|
-
["span", t, /* @__PURE__ */
|
|
1842
|
+
["span", t, /* @__PURE__ */ le(u) ? "ShallowReadonly" : "Readonly"],
|
|
1843
1843
|
"<",
|
|
1844
|
-
|
|
1844
|
+
a(u),
|
|
1845
1845
|
">"
|
|
1846
1846
|
];
|
|
1847
1847
|
}
|
|
@@ -1898,12 +1898,12 @@ function Ha() {
|
|
|
1898
1898
|
"div",
|
|
1899
1899
|
{},
|
|
1900
1900
|
["span", r, m + ": "],
|
|
1901
|
-
|
|
1901
|
+
a(d[m], !1)
|
|
1902
1902
|
])
|
|
1903
1903
|
]
|
|
1904
1904
|
] : ["span", {}];
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function a(u, d = !0) {
|
|
1907
1907
|
return typeof u == "number" ? ["span", e, u] : typeof u == "string" ? ["span", n, JSON.stringify(u)] : typeof u == "boolean" ? ["span", r, u] : oe(u) ? ["object", { object: d ? /* @__PURE__ */ N(u) : u }] : ["span", n, String(u)];
|
|
1908
1908
|
}
|
|
1909
1909
|
function c(u, d) {
|
|
@@ -1921,25 +1921,25 @@ function Ha() {
|
|
|
1921
1921
|
return !0;
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(u) {
|
|
1924
|
-
return /* @__PURE__ */
|
|
1924
|
+
return /* @__PURE__ */ le(u) ? "ShallowRef" : u.effect ? "ComputedRef" : "Ref";
|
|
1925
1925
|
}
|
|
1926
1926
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1927
1927
|
}
|
|
1928
1928
|
process.env.NODE_ENV;
|
|
1929
1929
|
process.env.NODE_ENV;
|
|
1930
1930
|
process.env.NODE_ENV;
|
|
1931
|
-
function
|
|
1932
|
-
|
|
1931
|
+
function Ul() {
|
|
1932
|
+
Hl();
|
|
1933
1933
|
}
|
|
1934
|
-
process.env.NODE_ENV !== "production" &&
|
|
1935
|
-
function
|
|
1934
|
+
process.env.NODE_ENV !== "production" && Ul();
|
|
1935
|
+
function Bl(t) {
|
|
1936
1936
|
return t.map((e) => ({ value: e, label: `${e}` }));
|
|
1937
1937
|
}
|
|
1938
1938
|
const _i = "*", xr = "#", ut = "$", En = ".";
|
|
1939
1939
|
function V(...t) {
|
|
1940
1940
|
return t.join(En);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function at(t) {
|
|
1943
1943
|
return t.split(En).filter((e) => e !== "");
|
|
1944
1944
|
}
|
|
1945
1945
|
function bi(t, e, n, r = "") {
|
|
@@ -1950,17 +1950,17 @@ function bi(t, e, n, r = "") {
|
|
|
1950
1950
|
e(o) ? t[i] = n(o) : bi(t[i], e, n, o);
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function Wl(t) {
|
|
1954
1954
|
const e = _e(t);
|
|
1955
1955
|
return e ? e.type === "set" && e.elements.type === "string" && !e.elements.one_of : !1;
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function Gl(t) {
|
|
1958
1958
|
return "one_of" in t && Array.isArray(t.one_of);
|
|
1959
1959
|
}
|
|
1960
1960
|
function Tc(t) {
|
|
1961
1961
|
return t.type === "set" && "elements" in t && "one_of" in t.elements;
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1963
|
+
const ql = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), Kl = "free-form-field-renderers-slot";
|
|
1964
1964
|
function Sr() {
|
|
1965
1965
|
return {
|
|
1966
1966
|
async: !1,
|
|
@@ -1979,29 +1979,29 @@ let Xe = Sr();
|
|
|
1979
1979
|
function yi(t) {
|
|
1980
1980
|
Xe = t;
|
|
1981
1981
|
}
|
|
1982
|
-
const wi = /[&<>"']/,
|
|
1982
|
+
const wi = /[&<>"']/, Yl = new RegExp(wi.source, "g"), Ei = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Zl = new RegExp(Ei.source, "g"), Xl = {
|
|
1983
1983
|
"&": "&",
|
|
1984
1984
|
"<": "<",
|
|
1985
1985
|
">": ">",
|
|
1986
1986
|
'"': """,
|
|
1987
1987
|
"'": "'"
|
|
1988
|
-
}, ps = (t) =>
|
|
1988
|
+
}, ps = (t) => Xl[t];
|
|
1989
1989
|
function fe(t, e) {
|
|
1990
1990
|
if (e) {
|
|
1991
1991
|
if (wi.test(t))
|
|
1992
|
-
return t.replace(
|
|
1992
|
+
return t.replace(Yl, ps);
|
|
1993
1993
|
} else if (Ei.test(t))
|
|
1994
|
-
return t.replace(
|
|
1994
|
+
return t.replace(Zl, ps);
|
|
1995
1995
|
return t;
|
|
1996
1996
|
}
|
|
1997
|
-
const
|
|
1997
|
+
const Ql = /(^|[^\[])\^/g;
|
|
1998
1998
|
function z(t, e) {
|
|
1999
1999
|
let n = typeof t == "string" ? t : t.source;
|
|
2000
2000
|
e = e || "";
|
|
2001
2001
|
const r = {
|
|
2002
2002
|
replace: (s, i) => {
|
|
2003
2003
|
let o = typeof i == "string" ? i : i.source;
|
|
2004
|
-
return o = o.replace(
|
|
2004
|
+
return o = o.replace(Ql, "$1"), n = n.replace(s, o), r;
|
|
2005
2005
|
},
|
|
2006
2006
|
getRegex: () => new RegExp(n, e)
|
|
2007
2007
|
};
|
|
@@ -2017,9 +2017,9 @@ function hs(t) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
const It = { exec: () => null };
|
|
2019
2019
|
function ds(t, e) {
|
|
2020
|
-
const n = t.replace(/\|/g, (i, o,
|
|
2020
|
+
const n = t.replace(/\|/g, (i, o, a) => {
|
|
2021
2021
|
let c = !1, p = o;
|
|
2022
|
-
for (; --p >= 0 &&
|
|
2022
|
+
for (; --p >= 0 && a[p] === "\\"; )
|
|
2023
2023
|
c = !c;
|
|
2024
2024
|
return c ? "|" : " |";
|
|
2025
2025
|
}), r = n.split(/ \|/);
|
|
@@ -2043,7 +2043,7 @@ function xt(t, e, n) {
|
|
|
2043
2043
|
s++;
|
|
2044
2044
|
return t.slice(0, r - s);
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function Jl(t, e) {
|
|
2047
2047
|
if (t.indexOf(e[1]) === -1)
|
|
2048
2048
|
return -1;
|
|
2049
2049
|
let n = 0;
|
|
@@ -2060,7 +2060,7 @@ function gs(t, e, n, r) {
|
|
|
2060
2060
|
const s = e.href, i = e.title ? fe(e.title) : null, o = t[1].replace(/\\([\[\]])/g, "$1");
|
|
2061
2061
|
if (t[0].charAt(0) !== "!") {
|
|
2062
2062
|
r.state.inLink = !0;
|
|
2063
|
-
const
|
|
2063
|
+
const a = {
|
|
2064
2064
|
type: "link",
|
|
2065
2065
|
raw: n,
|
|
2066
2066
|
href: s,
|
|
@@ -2068,7 +2068,7 @@ function gs(t, e, n, r) {
|
|
|
2068
2068
|
text: o,
|
|
2069
2069
|
tokens: r.inlineTokens(o)
|
|
2070
2070
|
};
|
|
2071
|
-
return r.state.inLink = !1,
|
|
2071
|
+
return r.state.inLink = !1, a;
|
|
2072
2072
|
}
|
|
2073
2073
|
return {
|
|
2074
2074
|
type: "image",
|
|
@@ -2078,7 +2078,7 @@ function gs(t, e, n, r) {
|
|
|
2078
2078
|
text: fe(o)
|
|
2079
2079
|
};
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function ea(t, e) {
|
|
2082
2082
|
const n = t.match(/^(\s+)(?:```)/);
|
|
2083
2083
|
if (n === null)
|
|
2084
2084
|
return e;
|
|
@@ -2126,7 +2126,7 @@ class hn {
|
|
|
2126
2126
|
fences(e) {
|
|
2127
2127
|
const n = this.rules.block.fences.exec(e);
|
|
2128
2128
|
if (n) {
|
|
2129
|
-
const r = n[0], s =
|
|
2129
|
+
const r = n[0], s = ea(r, n[3] || "");
|
|
2130
2130
|
return {
|
|
2131
2131
|
type: "code",
|
|
2132
2132
|
raw: r,
|
|
@@ -2169,13 +2169,13 @@ class hn {
|
|
|
2169
2169
|
`), s = "", i = "";
|
|
2170
2170
|
const o = [];
|
|
2171
2171
|
for (; r.length > 0; ) {
|
|
2172
|
-
let
|
|
2172
|
+
let a = !1;
|
|
2173
2173
|
const c = [];
|
|
2174
2174
|
let p;
|
|
2175
2175
|
for (p = 0; p < r.length; p++)
|
|
2176
2176
|
if (/^ {0,3}>/.test(r[p]))
|
|
2177
|
-
c.push(r[p]),
|
|
2178
|
-
else if (!
|
|
2177
|
+
c.push(r[p]), a = !0;
|
|
2178
|
+
else if (!a)
|
|
2179
2179
|
c.push(r[p]);
|
|
2180
2180
|
else
|
|
2181
2181
|
break;
|
|
@@ -2229,7 +2229,7 @@ ${u}` : u;
|
|
|
2229
2229
|
};
|
|
2230
2230
|
r = s ? `\\d{1,9}\\${r.slice(-1)}` : `\\${r}`, this.options.pedantic && (r = s ? r : "[*+-]");
|
|
2231
2231
|
const o = new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);
|
|
2232
|
-
let
|
|
2232
|
+
let a = !1;
|
|
2233
2233
|
for (; e; ) {
|
|
2234
2234
|
let c = !1, p = "", h = "";
|
|
2235
2235
|
if (!(n = o.exec(e)) || this.rules.block.hr.test(e))
|
|
@@ -2260,7 +2260,7 @@ ${u}` : u;
|
|
|
2260
2260
|
`, e = e.substring(k.length + 1), u = x.slice(y);
|
|
2261
2261
|
}
|
|
2262
2262
|
}
|
|
2263
|
-
i.loose || (
|
|
2263
|
+
i.loose || (a ? i.loose = !0 : /\n[ \t]*\n[ \t]*$/.test(p) && (a = !0));
|
|
2264
2264
|
let O = null, $;
|
|
2265
2265
|
this.options.gfm && (O = /^\[[ xX]\] /.exec(h), O && ($ = O[0] !== "[ ] ", h = h.replace(/^\[[ xX]\] +/, ""))), i.items.push({
|
|
2266
2266
|
type: "list_item",
|
|
@@ -2321,17 +2321,17 @@ ${u}` : u;
|
|
|
2321
2321
|
rows: []
|
|
2322
2322
|
};
|
|
2323
2323
|
if (r.length === s.length) {
|
|
2324
|
-
for (const
|
|
2325
|
-
/^ *-+: *$/.test(
|
|
2326
|
-
for (let
|
|
2324
|
+
for (const a of s)
|
|
2325
|
+
/^ *-+: *$/.test(a) ? o.align.push("right") : /^ *:-+: *$/.test(a) ? o.align.push("center") : /^ *:-+ *$/.test(a) ? o.align.push("left") : o.align.push(null);
|
|
2326
|
+
for (let a = 0; a < r.length; a++)
|
|
2327
2327
|
o.header.push({
|
|
2328
|
-
text: r[
|
|
2329
|
-
tokens: this.lexer.inline(r[
|
|
2328
|
+
text: r[a],
|
|
2329
|
+
tokens: this.lexer.inline(r[a]),
|
|
2330
2330
|
header: !0,
|
|
2331
|
-
align: o.align[
|
|
2331
|
+
align: o.align[a]
|
|
2332
2332
|
});
|
|
2333
|
-
for (const
|
|
2334
|
-
o.rows.push(ds(
|
|
2333
|
+
for (const a of i)
|
|
2334
|
+
o.rows.push(ds(a, o.header.length).map((c, p) => ({
|
|
2335
2335
|
text: c,
|
|
2336
2336
|
tokens: this.lexer.inline(c),
|
|
2337
2337
|
header: !1,
|
|
@@ -2406,7 +2406,7 @@ ${u}` : u;
|
|
|
2406
2406
|
if ((r.length - o.length) % 2 === 0)
|
|
2407
2407
|
return;
|
|
2408
2408
|
} else {
|
|
2409
|
-
const o =
|
|
2409
|
+
const o = Jl(n[2], "()");
|
|
2410
2410
|
if (o > -1) {
|
|
2411
2411
|
const c = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + o;
|
|
2412
2412
|
n[2] = n[2].substring(0, o), n[0] = n[0].substring(0, c).trim(), n[3] = "";
|
|
@@ -2445,12 +2445,12 @@ ${u}` : u;
|
|
|
2445
2445
|
return;
|
|
2446
2446
|
if (!(s[1] || s[2] || "") || !r || this.rules.inline.punctuation.exec(r)) {
|
|
2447
2447
|
const o = [...s[0]].length - 1;
|
|
2448
|
-
let
|
|
2448
|
+
let a, c, p = o, h = 0;
|
|
2449
2449
|
const u = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
2450
2450
|
for (u.lastIndex = 0, n = n.slice(-1 * e.length + o); (s = u.exec(n)) != null; ) {
|
|
2451
|
-
if (
|
|
2451
|
+
if (a = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !a)
|
|
2452
2452
|
continue;
|
|
2453
|
-
if (c = [...
|
|
2453
|
+
if (c = [...a].length, s[3] || s[4]) {
|
|
2454
2454
|
p += c;
|
|
2455
2455
|
continue;
|
|
2456
2456
|
} else if ((s[5] || s[6]) && o % 3 && !((o + c) % 3)) {
|
|
@@ -2569,25 +2569,25 @@ ${u}` : u;
|
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
const
|
|
2573
|
-
blockquote:
|
|
2574
|
-
code:
|
|
2575
|
-
def:
|
|
2576
|
-
fences:
|
|
2577
|
-
heading:
|
|
2572
|
+
const ta = /^(?:[ \t]*(?:\n|$))+/, na = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ra = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ft = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sa = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ti = /(?:[*+-]|\d{1,9}[.)])/, ki = z(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Ti).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), vr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ia = /^[^\n]+/, Ar = /(?!\s*\])(?:\\.|[^\[\]\\])+/, oa = z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ar).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), la = z(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ti).getRegex(), Tn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, aa = z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rr).replace("tag", Tn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), xi = z(vr).replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex(), ca = z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", xi).getRegex(), Or = {
|
|
2573
|
+
blockquote: ca,
|
|
2574
|
+
code: na,
|
|
2575
|
+
def: oa,
|
|
2576
|
+
fences: ra,
|
|
2577
|
+
heading: sa,
|
|
2578
2578
|
hr: Ft,
|
|
2579
|
-
html:
|
|
2579
|
+
html: aa,
|
|
2580
2580
|
lheading: ki,
|
|
2581
|
-
list:
|
|
2582
|
-
newline:
|
|
2581
|
+
list: la,
|
|
2582
|
+
newline: ta,
|
|
2583
2583
|
paragraph: xi,
|
|
2584
2584
|
table: It,
|
|
2585
|
-
text:
|
|
2586
|
-
}, ms = z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex(),
|
|
2585
|
+
text: ia
|
|
2586
|
+
}, ms = z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex(), ua = {
|
|
2587
2587
|
...Or,
|
|
2588
2588
|
table: ms,
|
|
2589
2589
|
paragraph: z(vr).replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ms).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex()
|
|
2590
|
-
},
|
|
2590
|
+
}, fa = {
|
|
2591
2591
|
...Or,
|
|
2592
2592
|
html: z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Rr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
2593
2593
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
@@ -2597,28 +2597,28 @@ const tl = /^(?:[ \t]*(?:\n|$))+/, nl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
|
|
|
2597
2597
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
2598
2598
|
paragraph: z(vr).replace("hr", Ft).replace("heading", ` *#{1,6} *[^
|
|
2599
2599
|
]`).replace("lheading", ki).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
2600
|
-
}, Si = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
2600
|
+
}, Si = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pa = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, vi = /^( {2,}|\\)\n(?!\s*$)/, ha = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Vt = "\\p{P}\\p{S}", da = z(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Vt).getRegex(), ga = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ma = z(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Vt).getRegex(), _a = z("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Vt).getRegex(), ba = z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Vt).getRegex(), ya = z(/\\([punct])/, "gu").replace(/punct/g, Vt).getRegex(), wa = z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ea = z(Rr).replace("(?:-->|$)", "-->").getRegex(), Ta = z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ea).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), dn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, ka = z(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", dn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ai = z(/^!?\[(label)\]\[(ref)\]/).replace("label", dn).replace("ref", Ar).getRegex(), Ri = z(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ar).getRegex(), xa = z("reflink|nolink(?!\\()", "g").replace("reflink", Ai).replace("nolink", Ri).getRegex(), Nr = {
|
|
2601
2601
|
_backpedal: It,
|
|
2602
2602
|
// only used for GFM url
|
|
2603
|
-
anyPunctuation:
|
|
2604
|
-
autolink:
|
|
2605
|
-
blockSkip:
|
|
2603
|
+
anyPunctuation: ya,
|
|
2604
|
+
autolink: wa,
|
|
2605
|
+
blockSkip: ga,
|
|
2606
2606
|
br: vi,
|
|
2607
|
-
code:
|
|
2607
|
+
code: pa,
|
|
2608
2608
|
del: It,
|
|
2609
|
-
emStrongLDelim:
|
|
2610
|
-
emStrongRDelimAst:
|
|
2611
|
-
emStrongRDelimUnd:
|
|
2609
|
+
emStrongLDelim: ma,
|
|
2610
|
+
emStrongRDelimAst: _a,
|
|
2611
|
+
emStrongRDelimUnd: ba,
|
|
2612
2612
|
escape: Si,
|
|
2613
|
-
link:
|
|
2613
|
+
link: ka,
|
|
2614
2614
|
nolink: Ri,
|
|
2615
|
-
punctuation:
|
|
2615
|
+
punctuation: da,
|
|
2616
2616
|
reflink: Ai,
|
|
2617
|
-
reflinkSearch:
|
|
2618
|
-
tag:
|
|
2619
|
-
text:
|
|
2617
|
+
reflinkSearch: xa,
|
|
2618
|
+
tag: Ta,
|
|
2619
|
+
text: ha,
|
|
2620
2620
|
url: It
|
|
2621
|
-
},
|
|
2621
|
+
}, Sa = {
|
|
2622
2622
|
...Nr,
|
|
2623
2623
|
link: z(/^!?\[(label)\]\((.*?)\)/).replace("label", dn).getRegex(),
|
|
2624
2624
|
reflink: z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", dn).getRegex()
|
|
@@ -2629,19 +2629,19 @@ const tl = /^(?:[ \t]*(?:\n|$))+/, nl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
|
|
|
2629
2629
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
2630
2630
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
2631
2631
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
2632
|
-
},
|
|
2632
|
+
}, va = {
|
|
2633
2633
|
...ur,
|
|
2634
2634
|
br: z(vi).replace("{2,}", "*").getRegex(),
|
|
2635
2635
|
text: z(ur.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
2636
2636
|
}, tn = {
|
|
2637
2637
|
normal: Or,
|
|
2638
|
-
gfm:
|
|
2639
|
-
pedantic:
|
|
2638
|
+
gfm: ua,
|
|
2639
|
+
pedantic: fa
|
|
2640
2640
|
}, St = {
|
|
2641
2641
|
normal: Nr,
|
|
2642
2642
|
gfm: ur,
|
|
2643
|
-
breaks:
|
|
2644
|
-
pedantic:
|
|
2643
|
+
breaks: va,
|
|
2644
|
+
pedantic: Sa
|
|
2645
2645
|
};
|
|
2646
2646
|
class he {
|
|
2647
2647
|
tokens;
|
|
@@ -2698,7 +2698,7 @@ class he {
|
|
|
2698
2698
|
this.options.pedantic && (e = e.replace(/\t/g, " ").replace(/^ +$/gm, ""));
|
|
2699
2699
|
let s, i, o;
|
|
2700
2700
|
for (; e; )
|
|
2701
|
-
if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((
|
|
2701
|
+
if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((a) => (s = a.call({ lexer: this }, e, n)) ? (e = e.substring(s.raw.length), n.push(s), !0) : !1))) {
|
|
2702
2702
|
if (s = this.tokenizer.space(e)) {
|
|
2703
2703
|
e = e.substring(s.raw.length), s.raw.length === 1 && n.length > 0 ? n[n.length - 1].raw += `
|
|
2704
2704
|
` : n.push(s);
|
|
@@ -2752,12 +2752,12 @@ class he {
|
|
|
2752
2752
|
continue;
|
|
2753
2753
|
}
|
|
2754
2754
|
if (o = e, this.options.extensions && this.options.extensions.startBlock) {
|
|
2755
|
-
let
|
|
2755
|
+
let a = 1 / 0;
|
|
2756
2756
|
const c = e.slice(1);
|
|
2757
2757
|
let p;
|
|
2758
2758
|
this.options.extensions.startBlock.forEach((h) => {
|
|
2759
|
-
p = h.call({ lexer: this }, c), typeof p == "number" && p >= 0 && (
|
|
2760
|
-
}),
|
|
2759
|
+
p = h.call({ lexer: this }, c), typeof p == "number" && p >= 0 && (a = Math.min(a, p));
|
|
2760
|
+
}), a < 1 / 0 && a >= 0 && (o = e.substring(0, a + 1));
|
|
2761
2761
|
}
|
|
2762
2762
|
if (this.state.top && (s = this.tokenizer.paragraph(o))) {
|
|
2763
2763
|
i = n[n.length - 1], r && i?.type === "paragraph" ? (i.raw += `
|
|
@@ -2772,12 +2772,12 @@ class he {
|
|
|
2772
2772
|
continue;
|
|
2773
2773
|
}
|
|
2774
2774
|
if (e) {
|
|
2775
|
-
const
|
|
2775
|
+
const a = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
2776
2776
|
if (this.options.silent) {
|
|
2777
|
-
console.error(
|
|
2777
|
+
console.error(a);
|
|
2778
2778
|
break;
|
|
2779
2779
|
} else
|
|
2780
|
-
throw new Error(
|
|
2780
|
+
throw new Error(a);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
return this.state.top = !0, n;
|
|
@@ -2789,17 +2789,17 @@ class he {
|
|
|
2789
2789
|
* Lexing/Compiling
|
|
2790
2790
|
*/
|
|
2791
2791
|
inlineTokens(e, n = []) {
|
|
2792
|
-
let r, s, i, o = e,
|
|
2792
|
+
let r, s, i, o = e, a, c, p;
|
|
2793
2793
|
if (this.tokens.links) {
|
|
2794
2794
|
const h = Object.keys(this.tokens.links);
|
|
2795
2795
|
if (h.length > 0)
|
|
2796
|
-
for (; (
|
|
2797
|
-
h.includes(
|
|
2796
|
+
for (; (a = this.tokenizer.rules.inline.reflinkSearch.exec(o)) != null; )
|
|
2797
|
+
h.includes(a[0].slice(a[0].lastIndexOf("[") + 1, -1)) && (o = o.slice(0, a.index) + "[" + "a".repeat(a[0].length - 2) + "]" + o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
2798
2798
|
}
|
|
2799
|
-
for (; (
|
|
2800
|
-
o = o.slice(0,
|
|
2801
|
-
for (; (
|
|
2802
|
-
o = o.slice(0,
|
|
2799
|
+
for (; (a = this.tokenizer.rules.inline.blockSkip.exec(o)) != null; )
|
|
2800
|
+
o = o.slice(0, a.index) + "[" + "a".repeat(a[0].length - 2) + "]" + o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
2801
|
+
for (; (a = this.tokenizer.rules.inline.anyPunctuation.exec(o)) != null; )
|
|
2802
|
+
o = o.slice(0, a.index) + "++" + o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
2803
2803
|
for (; e; )
|
|
2804
2804
|
if (c || (p = ""), c = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((h) => (r = h.call({ lexer: this }, e, n)) ? (e = e.substring(r.raw.length), n.push(r), !0) : !1))) {
|
|
2805
2805
|
if (r = this.tokenizer.escape(e)) {
|
|
@@ -2902,8 +2902,8 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
2902
2902
|
list(e) {
|
|
2903
2903
|
const n = e.ordered, r = e.start;
|
|
2904
2904
|
let s = "";
|
|
2905
|
-
for (let
|
|
2906
|
-
const c = e.items[
|
|
2905
|
+
for (let a = 0; a < e.items.length; a++) {
|
|
2906
|
+
const c = e.items[a];
|
|
2907
2907
|
s += this.listitem(c);
|
|
2908
2908
|
}
|
|
2909
2909
|
const i = n ? "ol" : "ul", o = n && r !== 1 ? ' start="' + r + '"' : "";
|
|
@@ -2940,8 +2940,8 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
2940
2940
|
for (let i = 0; i < e.rows.length; i++) {
|
|
2941
2941
|
const o = e.rows[i];
|
|
2942
2942
|
r = "";
|
|
2943
|
-
for (let
|
|
2944
|
-
r += this.tablecell(o[
|
|
2943
|
+
for (let a = 0; a < o.length; a++)
|
|
2944
|
+
r += this.tablecell(o[a]);
|
|
2945
2945
|
s += this.tablerow({ text: r });
|
|
2946
2946
|
}
|
|
2947
2947
|
return s && (s = `<tbody>${s}</tbody>`), `<table>
|
|
@@ -3055,8 +3055,8 @@ class de {
|
|
|
3055
3055
|
for (let s = 0; s < e.length; s++) {
|
|
3056
3056
|
const i = e[s];
|
|
3057
3057
|
if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
|
|
3058
|
-
const
|
|
3059
|
-
if (c !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(
|
|
3058
|
+
const a = i, c = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
3059
|
+
if (c !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(a.type)) {
|
|
3060
3060
|
r += c || "";
|
|
3061
3061
|
continue;
|
|
3062
3062
|
}
|
|
@@ -3100,10 +3100,10 @@ class de {
|
|
|
3100
3100
|
continue;
|
|
3101
3101
|
}
|
|
3102
3102
|
case "text": {
|
|
3103
|
-
let
|
|
3103
|
+
let a = o, c = this.renderer.text(a);
|
|
3104
3104
|
for (; s + 1 < e.length && e[s + 1].type === "text"; )
|
|
3105
|
-
|
|
3106
|
-
` + this.renderer.text(
|
|
3105
|
+
a = e[++s], c += `
|
|
3106
|
+
` + this.renderer.text(a);
|
|
3107
3107
|
n ? r += this.renderer.paragraph({
|
|
3108
3108
|
type: "paragraph",
|
|
3109
3109
|
raw: c,
|
|
@@ -3113,10 +3113,10 @@ class de {
|
|
|
3113
3113
|
continue;
|
|
3114
3114
|
}
|
|
3115
3115
|
default: {
|
|
3116
|
-
const
|
|
3116
|
+
const a = 'Token with "' + o.type + '" type was not found.';
|
|
3117
3117
|
if (this.options.silent)
|
|
3118
|
-
return console.error(
|
|
3119
|
-
throw new Error(
|
|
3118
|
+
return console.error(a), "";
|
|
3119
|
+
throw new Error(a);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
@@ -3131,9 +3131,9 @@ class de {
|
|
|
3131
3131
|
for (let s = 0; s < e.length; s++) {
|
|
3132
3132
|
const i = e[s];
|
|
3133
3133
|
if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
|
|
3134
|
-
const
|
|
3135
|
-
if (
|
|
3136
|
-
r +=
|
|
3134
|
+
const a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
3135
|
+
if (a !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
|
|
3136
|
+
r += a || "";
|
|
3137
3137
|
continue;
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
@@ -3180,17 +3180,17 @@ class de {
|
|
|
3180
3180
|
break;
|
|
3181
3181
|
}
|
|
3182
3182
|
default: {
|
|
3183
|
-
const
|
|
3183
|
+
const a = 'Token with "' + o.type + '" type was not found.';
|
|
3184
3184
|
if (this.options.silent)
|
|
3185
|
-
return console.error(
|
|
3186
|
-
throw new Error(
|
|
3185
|
+
return console.error(a), "";
|
|
3186
|
+
throw new Error(a);
|
|
3187
3187
|
}
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
return r;
|
|
3191
3191
|
}
|
|
3192
3192
|
}
|
|
3193
|
-
class
|
|
3193
|
+
class ln {
|
|
3194
3194
|
options;
|
|
3195
3195
|
block;
|
|
3196
3196
|
constructor(e) {
|
|
@@ -3232,7 +3232,7 @@ class an {
|
|
|
3232
3232
|
return this.block ? de.parse : de.parseInline;
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
|
-
class
|
|
3235
|
+
class Aa {
|
|
3236
3236
|
defaults = Sr();
|
|
3237
3237
|
options = this.setOptions;
|
|
3238
3238
|
parse = this.parseMarkdown(!0);
|
|
@@ -3242,7 +3242,7 @@ class Al {
|
|
|
3242
3242
|
TextRenderer = Ir;
|
|
3243
3243
|
Lexer = he;
|
|
3244
3244
|
Tokenizer = hn;
|
|
3245
|
-
Hooks =
|
|
3245
|
+
Hooks = ln;
|
|
3246
3246
|
constructor(...e) {
|
|
3247
3247
|
this.use(...e);
|
|
3248
3248
|
}
|
|
@@ -3258,8 +3258,8 @@ class Al {
|
|
|
3258
3258
|
for (const o of i.header)
|
|
3259
3259
|
r = r.concat(this.walkTokens(o.tokens, n));
|
|
3260
3260
|
for (const o of i.rows)
|
|
3261
|
-
for (const
|
|
3262
|
-
r = r.concat(this.walkTokens(
|
|
3261
|
+
for (const a of o)
|
|
3262
|
+
r = r.concat(this.walkTokens(a.tokens, n));
|
|
3263
3263
|
break;
|
|
3264
3264
|
}
|
|
3265
3265
|
case "list": {
|
|
@@ -3270,8 +3270,8 @@ class Al {
|
|
|
3270
3270
|
default: {
|
|
3271
3271
|
const i = s;
|
|
3272
3272
|
this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((o) => {
|
|
3273
|
-
const
|
|
3274
|
-
r = r.concat(this.walkTokens(
|
|
3273
|
+
const a = i[o].flat(1 / 0);
|
|
3274
|
+
r = r.concat(this.walkTokens(a, n));
|
|
3275
3275
|
}) : i.tokens && (r = r.concat(this.walkTokens(i.tokens, n)));
|
|
3276
3276
|
}
|
|
3277
3277
|
}
|
|
@@ -3286,9 +3286,9 @@ class Al {
|
|
|
3286
3286
|
throw new Error("extension name required");
|
|
3287
3287
|
if ("renderer" in i) {
|
|
3288
3288
|
const o = n.renderers[i.name];
|
|
3289
|
-
o ? n.renderers[i.name] = function(...
|
|
3290
|
-
let c = i.renderer.apply(this,
|
|
3291
|
-
return c === !1 && (c = o.apply(this,
|
|
3289
|
+
o ? n.renderers[i.name] = function(...a) {
|
|
3290
|
+
let c = i.renderer.apply(this, a);
|
|
3291
|
+
return c === !1 && (c = o.apply(this, a)), c;
|
|
3292
3292
|
} : n.renderers[i.name] = i.renderer;
|
|
3293
3293
|
}
|
|
3294
3294
|
if ("tokenizer" in i) {
|
|
@@ -3305,8 +3305,8 @@ class Al {
|
|
|
3305
3305
|
throw new Error(`renderer '${o}' does not exist`);
|
|
3306
3306
|
if (["options", "parser"].includes(o))
|
|
3307
3307
|
continue;
|
|
3308
|
-
const
|
|
3309
|
-
i[
|
|
3308
|
+
const a = o, c = r.renderer[a], p = i[a];
|
|
3309
|
+
i[a] = (...h) => {
|
|
3310
3310
|
let u = c.apply(i, h);
|
|
3311
3311
|
return u === !1 && (u = p.apply(i, h)), u || "";
|
|
3312
3312
|
};
|
|
@@ -3320,8 +3320,8 @@ class Al {
|
|
|
3320
3320
|
throw new Error(`tokenizer '${o}' does not exist`);
|
|
3321
3321
|
if (["options", "rules", "lexer"].includes(o))
|
|
3322
3322
|
continue;
|
|
3323
|
-
const
|
|
3324
|
-
i[
|
|
3323
|
+
const a = o, c = r.tokenizer[a], p = i[a];
|
|
3324
|
+
i[a] = (...h) => {
|
|
3325
3325
|
let u = c.apply(i, h);
|
|
3326
3326
|
return u === !1 && (u = p.apply(i, h)), u;
|
|
3327
3327
|
};
|
|
@@ -3329,19 +3329,19 @@ class Al {
|
|
|
3329
3329
|
s.tokenizer = i;
|
|
3330
3330
|
}
|
|
3331
3331
|
if (r.hooks) {
|
|
3332
|
-
const i = this.defaults.hooks || new
|
|
3332
|
+
const i = this.defaults.hooks || new ln();
|
|
3333
3333
|
for (const o in r.hooks) {
|
|
3334
3334
|
if (!(o in i))
|
|
3335
3335
|
throw new Error(`hook '${o}' does not exist`);
|
|
3336
3336
|
if (["options", "block"].includes(o))
|
|
3337
3337
|
continue;
|
|
3338
|
-
const
|
|
3339
|
-
|
|
3338
|
+
const a = o, c = r.hooks[a], p = i[a];
|
|
3339
|
+
ln.passThroughHooks.has(o) ? i[a] = (h) => {
|
|
3340
3340
|
if (this.defaults.async)
|
|
3341
3341
|
return Promise.resolve(c.call(i, h)).then((d) => p.call(i, d));
|
|
3342
3342
|
const u = c.call(i, h);
|
|
3343
3343
|
return p.call(i, u);
|
|
3344
|
-
} : i[
|
|
3344
|
+
} : i[a] = (...h) => {
|
|
3345
3345
|
let u = c.apply(i, h);
|
|
3346
3346
|
return u === !1 && (u = p.apply(i, h)), u;
|
|
3347
3347
|
};
|
|
@@ -3350,9 +3350,9 @@ class Al {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
if (r.walkTokens) {
|
|
3352
3352
|
const i = this.defaults.walkTokens, o = r.walkTokens;
|
|
3353
|
-
s.walkTokens = function(
|
|
3353
|
+
s.walkTokens = function(a) {
|
|
3354
3354
|
let c = [];
|
|
3355
|
-
return c.push(o.call(this,
|
|
3355
|
+
return c.push(o.call(this, a)), i && (c = c.concat(i.call(this, a))), c;
|
|
3356
3356
|
};
|
|
3357
3357
|
}
|
|
3358
3358
|
this.defaults = { ...this.defaults, ...s };
|
|
@@ -3369,17 +3369,17 @@ class Al {
|
|
|
3369
3369
|
}
|
|
3370
3370
|
parseMarkdown(e) {
|
|
3371
3371
|
return (r, s) => {
|
|
3372
|
-
const i = { ...s }, o = { ...this.defaults, ...i },
|
|
3372
|
+
const i = { ...s }, o = { ...this.defaults, ...i }, a = this.onError(!!o.silent, !!o.async);
|
|
3373
3373
|
if (this.defaults.async === !0 && i.async === !1)
|
|
3374
|
-
return
|
|
3374
|
+
return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
3375
3375
|
if (typeof r > "u" || r === null)
|
|
3376
|
-
return
|
|
3376
|
+
return a(new Error("marked(): input parameter is undefined or null"));
|
|
3377
3377
|
if (typeof r != "string")
|
|
3378
|
-
return
|
|
3378
|
+
return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
|
|
3379
3379
|
o.hooks && (o.hooks.options = o, o.hooks.block = e);
|
|
3380
3380
|
const c = o.hooks ? o.hooks.provideLexer() : e ? he.lex : he.lexInline, p = o.hooks ? o.hooks.provideParser() : e ? de.parse : de.parseInline;
|
|
3381
3381
|
if (o.async)
|
|
3382
|
-
return Promise.resolve(o.hooks ? o.hooks.preprocess(r) : r).then((h) => c(h, o)).then((h) => o.hooks ? o.hooks.processAllTokens(h) : h).then((h) => o.walkTokens ? Promise.all(this.walkTokens(h, o.walkTokens)).then(() => h) : h).then((h) => p(h, o)).then((h) => o.hooks ? o.hooks.postprocess(h) : h).catch(
|
|
3382
|
+
return Promise.resolve(o.hooks ? o.hooks.preprocess(r) : r).then((h) => c(h, o)).then((h) => o.hooks ? o.hooks.processAllTokens(h) : h).then((h) => o.walkTokens ? Promise.all(this.walkTokens(h, o.walkTokens)).then(() => h) : h).then((h) => p(h, o)).then((h) => o.hooks ? o.hooks.postprocess(h) : h).catch(a);
|
|
3383
3383
|
try {
|
|
3384
3384
|
o.hooks && (r = o.hooks.preprocess(r));
|
|
3385
3385
|
let h = c(r, o);
|
|
@@ -3387,7 +3387,7 @@ class Al {
|
|
|
3387
3387
|
let u = p(h, o);
|
|
3388
3388
|
return o.hooks && (u = o.hooks.postprocess(u)), u;
|
|
3389
3389
|
} catch (h) {
|
|
3390
|
-
return
|
|
3390
|
+
return a(h);
|
|
3391
3391
|
}
|
|
3392
3392
|
};
|
|
3393
3393
|
}
|
|
@@ -3404,7 +3404,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
3404
3404
|
};
|
|
3405
3405
|
}
|
|
3406
3406
|
}
|
|
3407
|
-
const Ze = new
|
|
3407
|
+
const Ze = new Aa();
|
|
3408
3408
|
function L(t, e) {
|
|
3409
3409
|
return Ze.parse(t, e);
|
|
3410
3410
|
}
|
|
@@ -3427,7 +3427,7 @@ L.TextRenderer = Ir;
|
|
|
3427
3427
|
L.Lexer = he;
|
|
3428
3428
|
L.lexer = he.lex;
|
|
3429
3429
|
L.Tokenizer = hn;
|
|
3430
|
-
L.Hooks =
|
|
3430
|
+
L.Hooks = ln;
|
|
3431
3431
|
L.parse = L;
|
|
3432
3432
|
L.options;
|
|
3433
3433
|
L.setOptions;
|
|
@@ -3441,15 +3441,15 @@ function _s(t, e) {
|
|
|
3441
3441
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
3442
3442
|
return r;
|
|
3443
3443
|
}
|
|
3444
|
-
function
|
|
3444
|
+
function Ra(t) {
|
|
3445
3445
|
if (Array.isArray(t)) return t;
|
|
3446
3446
|
}
|
|
3447
|
-
function
|
|
3447
|
+
function Oa(t, e) {
|
|
3448
3448
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3449
3449
|
if (n != null) {
|
|
3450
|
-
var r, s, i, o,
|
|
3450
|
+
var r, s, i, o, a = [], c = !0, p = !1;
|
|
3451
3451
|
try {
|
|
3452
|
-
if (i = (n = n.call(t)).next, e !== 0) for (; !(c = (r = i.call(n)).done) && (
|
|
3452
|
+
if (i = (n = n.call(t)).next, e !== 0) for (; !(c = (r = i.call(n)).done) && (a.push(r.value), a.length !== e); c = !0) ;
|
|
3453
3453
|
} catch (h) {
|
|
3454
3454
|
p = !0, s = h;
|
|
3455
3455
|
} finally {
|
|
@@ -3459,24 +3459,24 @@ function Ol(t, e) {
|
|
|
3459
3459
|
if (p) throw s;
|
|
3460
3460
|
}
|
|
3461
3461
|
}
|
|
3462
|
-
return
|
|
3462
|
+
return a;
|
|
3463
3463
|
}
|
|
3464
3464
|
}
|
|
3465
|
-
function
|
|
3465
|
+
function Na() {
|
|
3466
3466
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3467
3467
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3470
|
-
return
|
|
3469
|
+
function Ia(t, e) {
|
|
3470
|
+
return Ra(t) || Oa(t, e) || Da(t, e) || Na();
|
|
3471
3471
|
}
|
|
3472
|
-
function
|
|
3472
|
+
function Da(t, e) {
|
|
3473
3473
|
if (t) {
|
|
3474
3474
|
if (typeof t == "string") return _s(t, e);
|
|
3475
3475
|
var n = {}.toString.call(t).slice(8, -1);
|
|
3476
3476
|
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _s(t, e) : void 0;
|
|
3477
3477
|
}
|
|
3478
3478
|
}
|
|
3479
|
-
const Oi = Object.entries, bs = Object.setPrototypeOf,
|
|
3479
|
+
const Oi = Object.entries, bs = Object.setPrototypeOf, Ca = Object.isFrozen, Ma = Object.getPrototypeOf, $a = Object.getOwnPropertyDescriptor;
|
|
3480
3480
|
let ee = Object.freeze, ne = Object.seal, ct = Object.create, Ni = typeof Reflect < "u" && Reflect, fr = Ni.apply, pr = Ni.construct;
|
|
3481
3481
|
ee || (ee = function(e) {
|
|
3482
3482
|
return e;
|
|
@@ -3494,7 +3494,7 @@ pr || (pr = function(e) {
|
|
|
3494
3494
|
r[s - 1] = arguments[s];
|
|
3495
3495
|
return new e(...r);
|
|
3496
3496
|
});
|
|
3497
|
-
const st = Y(Array.prototype.forEach),
|
|
3497
|
+
const st = Y(Array.prototype.forEach), Pa = Y(Array.prototype.lastIndexOf), ys = Y(Array.prototype.pop), it = Y(Array.prototype.push), La = Y(Array.prototype.splice), He = Array.isArray, Rt = Y(String.prototype.toLowerCase), Zn = Y(String.prototype.toString), ws = Y(String.prototype.match), vt = Y(String.prototype.replace), Es = Y(String.prototype.indexOf), za = Y(String.prototype.trim), ja = Y(Number.prototype.toString), Fa = Y(Boolean.prototype.toString), Ts = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), ks = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), X = Y(Object.prototype.hasOwnProperty), At = Y(Object.prototype.toString), Z = Y(RegExp.prototype.test), We = Va(TypeError);
|
|
3498
3498
|
function Y(t) {
|
|
3499
3499
|
return function(e) {
|
|
3500
3500
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -3503,7 +3503,7 @@ function Y(t) {
|
|
|
3503
3503
|
return fr(t, e, r);
|
|
3504
3504
|
};
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function Va(t) {
|
|
3507
3507
|
return function() {
|
|
3508
3508
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
3509
3509
|
n[r] = arguments[r];
|
|
@@ -3519,13 +3519,13 @@ function D(t, e) {
|
|
|
3519
3519
|
let s = e[r];
|
|
3520
3520
|
if (typeof s == "string") {
|
|
3521
3521
|
const i = n(s);
|
|
3522
|
-
i !== s && (
|
|
3522
|
+
i !== s && (Ca(e) || (e[r] = i), s = i);
|
|
3523
3523
|
}
|
|
3524
3524
|
t[s] = !0;
|
|
3525
3525
|
}
|
|
3526
3526
|
return t;
|
|
3527
3527
|
}
|
|
3528
|
-
function
|
|
3528
|
+
function Ha(t) {
|
|
3529
3529
|
for (let e = 0; e < t.length; e++)
|
|
3530
3530
|
X(t, e) || (t[e] = null);
|
|
3531
3531
|
return t;
|
|
@@ -3533,20 +3533,20 @@ function Hl(t) {
|
|
|
3533
3533
|
function ie(t) {
|
|
3534
3534
|
const e = ct(null);
|
|
3535
3535
|
for (const r of Oi(t)) {
|
|
3536
|
-
var n =
|
|
3536
|
+
var n = Ia(r, 2);
|
|
3537
3537
|
const s = n[0], i = n[1];
|
|
3538
|
-
X(t, s) && (He(i) ? e[s] =
|
|
3538
|
+
X(t, s) && (He(i) ? e[s] = Ha(i) : i && typeof i == "object" && i.constructor === Object ? e[s] = ie(i) : e[s] = i);
|
|
3539
3539
|
}
|
|
3540
3540
|
return e;
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function Ua(t) {
|
|
3543
3543
|
switch (typeof t) {
|
|
3544
3544
|
case "string":
|
|
3545
3545
|
return t;
|
|
3546
3546
|
case "number":
|
|
3547
|
-
return
|
|
3547
|
+
return ja(t);
|
|
3548
3548
|
case "boolean":
|
|
3549
|
-
return
|
|
3549
|
+
return Fa(t);
|
|
3550
3550
|
case "bigint":
|
|
3551
3551
|
return Ts ? Ts(t) : "0";
|
|
3552
3552
|
case "symbol":
|
|
@@ -3570,31 +3570,31 @@ function Ul(t) {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
function ke(t, e) {
|
|
3572
3572
|
for (; t !== null; ) {
|
|
3573
|
-
const r = $
|
|
3573
|
+
const r = $a(t, e);
|
|
3574
3574
|
if (r) {
|
|
3575
3575
|
if (r.get)
|
|
3576
3576
|
return Y(r.get);
|
|
3577
3577
|
if (typeof r.value == "function")
|
|
3578
3578
|
return Y(r.value);
|
|
3579
3579
|
}
|
|
3580
|
-
t =
|
|
3580
|
+
t = Ma(t);
|
|
3581
3581
|
}
|
|
3582
3582
|
function n() {
|
|
3583
3583
|
return null;
|
|
3584
3584
|
}
|
|
3585
3585
|
return n;
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3587
|
+
function Ba(t) {
|
|
3588
3588
|
try {
|
|
3589
3589
|
return Z(t, ""), !0;
|
|
3590
3590
|
} catch {
|
|
3591
3591
|
return !1;
|
|
3592
3592
|
}
|
|
3593
3593
|
}
|
|
3594
|
-
const xs = ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Xn = ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Qn = ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
3594
|
+
const xs = ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Xn = ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Qn = ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Wa = ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Jn = ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ga = ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ss = ee(["#text"]), vs = ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), er = ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), As = ee(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), nn = ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), qa = ne(/{{[\w\W]*|^[\w\W]*}}/g), Ka = ne(/<%[\w\W]*|^[\w\W]*%>/g), Ya = ne(/\${[\w\W]*/g), Za = ne(/^data-[\-\w.\u00B7-\uFFFF]+$/), Xa = ne(/^aria-[\-\w]+$/), Rs = ne(
|
|
3595
3595
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3596
3596
|
// eslint-disable-line no-useless-escape
|
|
3597
|
-
),
|
|
3597
|
+
), Qa = ne(/^(?:\w+script|data):/i), Ja = ne(
|
|
3598
3598
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
3599
3599
|
// eslint-disable-line no-control-regex
|
|
3600
3600
|
), ec = ne(/^html$/i), tc = ne(/^[a-z][.\w]*(-[.\w]+)+$/i), Os = ne(/<[/\w!]/g), Ns = ne(/<[/\w]/g), nc = ne(/<\/no(script|embed|frames)/i), rc = ne(/\/>/i), ce = {
|
|
@@ -3657,9 +3657,9 @@ function Ii() {
|
|
|
3657
3657
|
let n = t.document;
|
|
3658
3658
|
const r = n, s = r.currentScript;
|
|
3659
3659
|
t.DocumentFragment;
|
|
3660
|
-
const i = t.HTMLTemplateElement, o = t.Node,
|
|
3660
|
+
const i = t.HTMLTemplateElement, o = t.Node, a = t.Element, c = t.NodeFilter, p = t.NamedNodeMap;
|
|
3661
3661
|
p === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
|
|
3662
|
-
const h = t.DOMParser, u = t.trustedTypes, d =
|
|
3662
|
+
const h = t.DOMParser, u = t.trustedTypes, d = a.prototype, m = ke(d, "cloneNode"), y = ke(d, "remove"), O = ke(d, "nextSibling"), $ = ke(d, "childNodes"), w = ke(d, "parentNode"), S = ke(d, "shadowRoot"), A = ke(d, "attributes"), _ = o && o.prototype ? ke(o.prototype, "nodeType") : null, E = o && o.prototype ? ke(o.prototype, "nodeName") : null;
|
|
3663
3663
|
if (typeof i == "function") {
|
|
3664
3664
|
const b = n.createElement("template");
|
|
3665
3665
|
b.content && b.content.ownerDocument && (n = b.content.ownerDocument);
|
|
@@ -3668,17 +3668,17 @@ function Ii() {
|
|
|
3668
3668
|
const ye = function() {
|
|
3669
3669
|
if (j > 0)
|
|
3670
3670
|
throw We('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
3671
|
-
}, C = function(
|
|
3671
|
+
}, C = function(l) {
|
|
3672
3672
|
ye(), j++;
|
|
3673
3673
|
try {
|
|
3674
|
-
return k.createHTML(
|
|
3674
|
+
return k.createHTML(l);
|
|
3675
3675
|
} finally {
|
|
3676
3676
|
j--;
|
|
3677
3677
|
}
|
|
3678
|
-
}, Ce = function(
|
|
3678
|
+
}, Ce = function(l) {
|
|
3679
3679
|
ye(), j++;
|
|
3680
3680
|
try {
|
|
3681
|
-
return k.createScriptURL(
|
|
3681
|
+
return k.createScriptURL(l);
|
|
3682
3682
|
} finally {
|
|
3683
3683
|
j--;
|
|
3684
3684
|
}
|
|
@@ -3687,7 +3687,7 @@ function Ii() {
|
|
|
3687
3687
|
}, Ht = n, vn = Ht.implementation, Dr = Ht.createNodeIterator, Mi = Ht.createDocumentFragment, $i = Ht.getElementsByTagName, Pi = r.importNode;
|
|
3688
3688
|
let H = Is();
|
|
3689
3689
|
e.isSupported = typeof Oi == "function" && typeof w == "function" && vn && vn.createHTMLDocument !== void 0;
|
|
3690
|
-
const Li =
|
|
3690
|
+
const Li = qa, zi = Ka, ji = Ya, Fi = Za, Vi = Xa, Hi = Qa, Cr = Ja, Ui = tc;
|
|
3691
3691
|
let Mr = Rs, U = null;
|
|
3692
3692
|
const $r = D({}, [...xs, ...Xn, ...Qn, ...Jn, ...Ss]);
|
|
3693
3693
|
let B = null;
|
|
@@ -3779,74 +3779,74 @@ function Ii() {
|
|
|
3779
3779
|
let Et = null;
|
|
3780
3780
|
const Gi = ["application/xhtml+xml", "text/html"], qi = "text/html";
|
|
3781
3781
|
let F = null, tt = null;
|
|
3782
|
-
const Ki = n.createElement("form"), Yr = function(
|
|
3783
|
-
return
|
|
3782
|
+
const Ki = n.createElement("form"), Yr = function(l) {
|
|
3783
|
+
return l instanceof RegExp || l instanceof Function;
|
|
3784
3784
|
}, Fn = function() {
|
|
3785
|
-
let
|
|
3786
|
-
if (tt && tt ===
|
|
3785
|
+
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3786
|
+
if (tt && tt === l)
|
|
3787
3787
|
return;
|
|
3788
|
-
(!
|
|
3789
|
-
Gi.indexOf(
|
|
3788
|
+
(!l || typeof l != "object") && (l = {}), l = ie(l), Et = // eslint-disable-next-line unicorn/prefer-includes
|
|
3789
|
+
Gi.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? qi : l.PARSER_MEDIA_TYPE, F = Et === "application/xhtml+xml" ? Zn : Rt, U = ze(l, "ALLOWED_TAGS", $r, {
|
|
3790
3790
|
transform: F
|
|
3791
|
-
}), B = ze(
|
|
3791
|
+
}), B = ze(l, "ALLOWED_ATTR", Pr, {
|
|
3792
3792
|
transform: F
|
|
3793
|
-
}), Ln = ze(
|
|
3793
|
+
}), Ln = ze(l, "ALLOWED_NAMESPACES", Bi, {
|
|
3794
3794
|
transform: Zn
|
|
3795
|
-
}), $n = ze(
|
|
3795
|
+
}), $n = ze(l, "ADD_URI_SAFE_ATTR", Gr, {
|
|
3796
3796
|
transform: F,
|
|
3797
3797
|
base: Gr
|
|
3798
|
-
}), Br = ze(
|
|
3798
|
+
}), Br = ze(l, "ADD_DATA_URI_TAGS", Wr, {
|
|
3799
3799
|
transform: F,
|
|
3800
3800
|
base: Wr
|
|
3801
|
-
}), we = ze(
|
|
3801
|
+
}), we = ze(l, "FORBID_CONTENTS", Mn, {
|
|
3802
3802
|
transform: F
|
|
3803
|
-
}), wt = ze(
|
|
3803
|
+
}), wt = ze(l, "FORBID_TAGS", ie({}), {
|
|
3804
3804
|
transform: F
|
|
3805
|
-
}), Lr = ze(
|
|
3805
|
+
}), Lr = ze(l, "FORBID_ATTR", ie({}), {
|
|
3806
3806
|
transform: F
|
|
3807
|
-
}), Je = X(
|
|
3808
|
-
const f = X(
|
|
3809
|
-
if (W = ct(null), X(f, "tagNameCheck") && Yr(f.tagNameCheck) && (W.tagNameCheck = f.tagNameCheck), X(f, "attributeNameCheck") && Yr(f.attributeNameCheck) && (W.attributeNameCheck = f.attributeNameCheck), X(f, "allowCustomizedBuiltInElements") && typeof f.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = f.allowCustomizedBuiltInElements), ne(W), $e && (An = !1), Ut && (Qe = !0), Je && (U = D({}, Ss), B = ct(null), Je.html === !0 && (D(U, xs), D(B, vs)), Je.svg === !0 && (D(U, Xn), D(B, er), D(B, nn)), Je.svgFilters === !0 && (D(U, Qn), D(B, er), D(B, nn)), Je.mathMl === !0 && (D(U, Jn), D(B, As), D(B, nn))), Me.tagCheck = null, Me.attributeCheck = null, X(
|
|
3810
|
-
if (typeof
|
|
3807
|
+
}), Je = X(l, "USE_PROFILES") ? l.USE_PROFILES && typeof l.USE_PROFILES == "object" ? ie(l.USE_PROFILES) : l.USE_PROFILES : !1, zr = l.ALLOW_ARIA_ATTR !== !1, An = l.ALLOW_DATA_ATTR !== !1, jr = l.ALLOW_UNKNOWN_PROTOCOLS || !1, Fr = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $e = l.SAFE_FOR_TEMPLATES || !1, Pe = l.SAFE_FOR_XML !== !1, Ue = l.WHOLE_DOCUMENT || !1, Qe = l.RETURN_DOM || !1, Ut = l.RETURN_DOM_FRAGMENT || !1, Bt = l.RETURN_TRUSTED_TYPE || !1, In = l.FORCE_BODY || !1, Vr = l.SANITIZE_DOM !== !1, Hr = l.SANITIZE_NAMED_PROPS || !1, Dn = l.KEEP_CONTENT !== !1, Cn = l.IN_PLACE || !1, Mr = Ba(l.ALLOWED_URI_REGEXP) ? l.ALLOWED_URI_REGEXP : Rs, et = typeof l.NAMESPACE == "string" ? l.NAMESPACE : Ee, zn = X(l, "MATHML_TEXT_INTEGRATION_POINTS") && l.MATHML_TEXT_INTEGRATION_POINTS && typeof l.MATHML_TEXT_INTEGRATION_POINTS == "object" ? ie(l.MATHML_TEXT_INTEGRATION_POINTS) : D({}, qr), jn = X(l, "HTML_INTEGRATION_POINTS") && l.HTML_INTEGRATION_POINTS && typeof l.HTML_INTEGRATION_POINTS == "object" ? ie(l.HTML_INTEGRATION_POINTS) : D({}, Kr);
|
|
3808
|
+
const f = X(l, "CUSTOM_ELEMENT_HANDLING") && l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING == "object" ? ie(l.CUSTOM_ELEMENT_HANDLING) : ct(null);
|
|
3809
|
+
if (W = ct(null), X(f, "tagNameCheck") && Yr(f.tagNameCheck) && (W.tagNameCheck = f.tagNameCheck), X(f, "attributeNameCheck") && Yr(f.attributeNameCheck) && (W.attributeNameCheck = f.attributeNameCheck), X(f, "allowCustomizedBuiltInElements") && typeof f.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = f.allowCustomizedBuiltInElements), ne(W), $e && (An = !1), Ut && (Qe = !0), Je && (U = D({}, Ss), B = ct(null), Je.html === !0 && (D(U, xs), D(B, vs)), Je.svg === !0 && (D(U, Xn), D(B, er), D(B, nn)), Je.svgFilters === !0 && (D(U, Qn), D(B, er), D(B, nn)), Je.mathMl === !0 && (D(U, Jn), D(B, As), D(B, nn))), Me.tagCheck = null, Me.attributeCheck = null, X(l, "ADD_TAGS") && (typeof l.ADD_TAGS == "function" ? Me.tagCheck = l.ADD_TAGS : He(l.ADD_TAGS) && (U === $r && (U = ie(U)), D(U, l.ADD_TAGS, F))), X(l, "ADD_ATTR") && (typeof l.ADD_ATTR == "function" ? Me.attributeCheck = l.ADD_ATTR : He(l.ADD_ATTR) && (B === Pr && (B = ie(B)), D(B, l.ADD_ATTR, F))), X(l, "ADD_URI_SAFE_ATTR") && He(l.ADD_URI_SAFE_ATTR) && D($n, l.ADD_URI_SAFE_ATTR, F), X(l, "FORBID_CONTENTS") && He(l.FORBID_CONTENTS) && (we === Mn && (we = ie(we)), D(we, l.FORBID_CONTENTS, F)), X(l, "ADD_FORBID_CONTENTS") && He(l.ADD_FORBID_CONTENTS) && (we === Mn && (we = ie(we)), D(we, l.ADD_FORBID_CONTENTS, F)), Dn && (U["#text"] = !0), Ue && D(U, ["html", "head", "body"]), U.table && (D(U, ["tbody"]), delete wt.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
3810
|
+
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3811
3811
|
throw We('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3812
|
-
if (typeof
|
|
3812
|
+
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
3813
3813
|
throw We('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
3814
3814
|
const g = k;
|
|
3815
|
-
k =
|
|
3815
|
+
k = l.TRUSTED_TYPES_POLICY;
|
|
3816
3816
|
try {
|
|
3817
3817
|
x = C("");
|
|
3818
3818
|
} catch (T) {
|
|
3819
3819
|
throw k = g, T;
|
|
3820
3820
|
}
|
|
3821
|
-
} else
|
|
3822
|
-
ee && ee(
|
|
3823
|
-
}, Zr = D({}, [...Xn, ...Qn, ...
|
|
3824
|
-
return f.namespaceURI === Ee ?
|
|
3825
|
-
}, Zi = function(
|
|
3826
|
-
return f.namespaceURI === Ee ?
|
|
3827
|
-
}, Xi = function(
|
|
3828
|
-
return f.namespaceURI === Gt && !jn[g] || f.namespaceURI === Wt && !zn[g] ? !1 : !Xr[
|
|
3829
|
-
}, Qi = function(
|
|
3830
|
-
let f = w(
|
|
3821
|
+
} else l.TRUSTED_TYPES_POLICY === null ? (k = void 0, x = "") : (k === void 0 && (k = Ci()), k && typeof x == "string" && (x = C("")));
|
|
3822
|
+
ee && ee(l), tt = l;
|
|
3823
|
+
}, Zr = D({}, [...Xn, ...Qn, ...Wa]), Xr = D({}, [...Jn, ...Ga]), Yi = function(l, f, g) {
|
|
3824
|
+
return f.namespaceURI === Ee ? l === "svg" : f.namespaceURI === Wt ? l === "svg" && (g === "annotation-xml" || zn[g]) : !!Zr[l];
|
|
3825
|
+
}, Zi = function(l, f, g) {
|
|
3826
|
+
return f.namespaceURI === Ee ? l === "math" : f.namespaceURI === Gt ? l === "math" && jn[g] : !!Xr[l];
|
|
3827
|
+
}, Xi = function(l, f, g) {
|
|
3828
|
+
return f.namespaceURI === Gt && !jn[g] || f.namespaceURI === Wt && !zn[g] ? !1 : !Xr[l] && (Wi[l] || !Zr[l]);
|
|
3829
|
+
}, Qi = function(l) {
|
|
3830
|
+
let f = w(l);
|
|
3831
3831
|
(!f || !f.tagName) && (f = {
|
|
3832
3832
|
namespaceURI: et,
|
|
3833
3833
|
tagName: "template"
|
|
3834
3834
|
});
|
|
3835
|
-
const g = Rt(
|
|
3836
|
-
return Ln[
|
|
3837
|
-
}, Le = function(
|
|
3835
|
+
const g = Rt(l.tagName), T = Rt(f.tagName);
|
|
3836
|
+
return Ln[l.namespaceURI] ? l.namespaceURI === Gt ? Yi(g, f, T) : l.namespaceURI === Wt ? Zi(g, f, T) : l.namespaceURI === Ee ? Xi(g, f, T) : !!(Et === "application/xhtml+xml" && Ln[l.namespaceURI]) : !1;
|
|
3837
|
+
}, Le = function(l) {
|
|
3838
3838
|
it(e.removed, {
|
|
3839
|
-
element:
|
|
3839
|
+
element: l
|
|
3840
3840
|
});
|
|
3841
3841
|
try {
|
|
3842
|
-
w(
|
|
3842
|
+
w(l).removeChild(l);
|
|
3843
3843
|
} catch {
|
|
3844
|
-
if (y(
|
|
3844
|
+
if (y(l), !w(l))
|
|
3845
3845
|
throw We("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
3846
3846
|
}
|
|
3847
|
-
}, qt = function(
|
|
3848
|
-
Vn(
|
|
3849
|
-
const f = $(
|
|
3847
|
+
}, qt = function(l) {
|
|
3848
|
+
Vn(l);
|
|
3849
|
+
const f = $(l);
|
|
3850
3850
|
if (f) {
|
|
3851
3851
|
const T = [];
|
|
3852
3852
|
st(f, (v) => {
|
|
@@ -3858,20 +3858,20 @@ function Ii() {
|
|
|
3858
3858
|
}
|
|
3859
3859
|
});
|
|
3860
3860
|
}
|
|
3861
|
-
const g = A(
|
|
3861
|
+
const g = A(l);
|
|
3862
3862
|
if (g)
|
|
3863
3863
|
for (let T = g.length - 1; T >= 0; --T) {
|
|
3864
3864
|
const v = g[T], R = v && v.name;
|
|
3865
3865
|
if (typeof R == "string")
|
|
3866
3866
|
try {
|
|
3867
|
-
|
|
3867
|
+
l.removeAttribute(R);
|
|
3868
3868
|
} catch {
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
|
-
}, Be = function(
|
|
3871
|
+
}, Be = function(l, f) {
|
|
3872
3872
|
try {
|
|
3873
3873
|
it(e.removed, {
|
|
3874
|
-
attribute: f.getAttributeNode(
|
|
3874
|
+
attribute: f.getAttributeNode(l),
|
|
3875
3875
|
from: f
|
|
3876
3876
|
});
|
|
3877
3877
|
} catch {
|
|
@@ -3880,7 +3880,7 @@ function Ii() {
|
|
|
3880
3880
|
from: f
|
|
3881
3881
|
});
|
|
3882
3882
|
}
|
|
3883
|
-
if (f.removeAttribute(
|
|
3883
|
+
if (f.removeAttribute(l), l === "is")
|
|
3884
3884
|
if (Qe || Ut)
|
|
3885
3885
|
try {
|
|
3886
3886
|
Le(f);
|
|
@@ -3888,22 +3888,22 @@ function Ii() {
|
|
|
3888
3888
|
}
|
|
3889
3889
|
else
|
|
3890
3890
|
try {
|
|
3891
|
-
f.setAttribute(
|
|
3891
|
+
f.setAttribute(l, "");
|
|
3892
3892
|
} catch {
|
|
3893
3893
|
}
|
|
3894
|
-
}, Ji = function(
|
|
3895
|
-
const f = A(
|
|
3894
|
+
}, Ji = function(l) {
|
|
3895
|
+
const f = A(l);
|
|
3896
3896
|
if (f)
|
|
3897
3897
|
for (let g = f.length - 1; g >= 0; --g) {
|
|
3898
3898
|
const T = f[g], v = T && T.name;
|
|
3899
3899
|
if (!(typeof v != "string" || B[F(v)]))
|
|
3900
3900
|
try {
|
|
3901
|
-
|
|
3901
|
+
l.removeAttribute(v);
|
|
3902
3902
|
} catch {
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
|
-
}, Vn = function(
|
|
3906
|
-
const f = [
|
|
3905
|
+
}, Vn = function(l) {
|
|
3906
|
+
const f = [l];
|
|
3907
3907
|
for (; f.length > 0; ) {
|
|
3908
3908
|
const g = f.pop();
|
|
3909
3909
|
(_ ? _(g) : g.nodeType) === ce.element && Ji(g);
|
|
@@ -3912,10 +3912,10 @@ function Ii() {
|
|
|
3912
3912
|
for (let R = v.length - 1; R >= 0; --R)
|
|
3913
3913
|
f.push(v[R]);
|
|
3914
3914
|
}
|
|
3915
|
-
}, eo = function(
|
|
3915
|
+
}, eo = function(l) {
|
|
3916
3916
|
if (!Pe)
|
|
3917
3917
|
return;
|
|
3918
|
-
const f = [
|
|
3918
|
+
const f = [l];
|
|
3919
3919
|
for (; f.length > 0; ) {
|
|
3920
3920
|
const g = f.pop(), T = _ ? _(g) : g.nodeType;
|
|
3921
3921
|
if (T === ce.processingInstruction || T === ce.comment && Z(Ns, g.data)) {
|
|
@@ -3937,16 +3937,16 @@ function Ii() {
|
|
|
3937
3937
|
for (let R = v.length - 1; R >= 0; --R)
|
|
3938
3938
|
f.push(v[R]);
|
|
3939
3939
|
}
|
|
3940
|
-
}, Qr = function(
|
|
3940
|
+
}, Qr = function(l) {
|
|
3941
3941
|
let f = null, g = null;
|
|
3942
3942
|
if (In)
|
|
3943
|
-
|
|
3943
|
+
l = "<remove></remove>" + l;
|
|
3944
3944
|
else {
|
|
3945
|
-
const R = ws(
|
|
3945
|
+
const R = ws(l, /^[\r\n\t ]+/);
|
|
3946
3946
|
g = R && R[0];
|
|
3947
3947
|
}
|
|
3948
|
-
Et === "application/xhtml+xml" && et === Ee && (
|
|
3949
|
-
const T = k ? C(
|
|
3948
|
+
Et === "application/xhtml+xml" && et === Ee && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
3949
|
+
const T = k ? C(l) : l;
|
|
3950
3950
|
if (et === Ee)
|
|
3951
3951
|
try {
|
|
3952
3952
|
f = new h().parseFromString(T, Et);
|
|
@@ -3960,23 +3960,23 @@ function Ii() {
|
|
|
3960
3960
|
}
|
|
3961
3961
|
}
|
|
3962
3962
|
const v = f.body || f.documentElement;
|
|
3963
|
-
return
|
|
3964
|
-
}, Jr = function(
|
|
3963
|
+
return l && g && v.insertBefore(n.createTextNode(g), v.childNodes[0] || null), et === Ee ? $i.call(f, Ue ? "html" : "body")[0] : Ue ? f.documentElement : v;
|
|
3964
|
+
}, Jr = function(l) {
|
|
3965
3965
|
return Dr.call(
|
|
3966
|
-
|
|
3967
|
-
|
|
3966
|
+
l.ownerDocument || l,
|
|
3967
|
+
l,
|
|
3968
3968
|
// eslint-disable-next-line no-bitwise
|
|
3969
3969
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
3970
3970
|
null
|
|
3971
3971
|
);
|
|
3972
|
-
}, Kt = function(
|
|
3973
|
-
return
|
|
3974
|
-
}, Hn = function(
|
|
3972
|
+
}, Kt = function(l) {
|
|
3973
|
+
return l = vt(l, Li, " "), l = vt(l, zi, " "), l = vt(l, ji, " "), l;
|
|
3974
|
+
}, Hn = function(l) {
|
|
3975
3975
|
var f;
|
|
3976
|
-
|
|
3976
|
+
l.normalize();
|
|
3977
3977
|
const g = Dr.call(
|
|
3978
|
-
|
|
3979
|
-
|
|
3978
|
+
l.ownerDocument || l,
|
|
3979
|
+
l,
|
|
3980
3980
|
// eslint-disable-next-line no-bitwise
|
|
3981
3981
|
c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION,
|
|
3982
3982
|
null
|
|
@@ -3984,25 +3984,25 @@ function Ii() {
|
|
|
3984
3984
|
let T = g.nextNode();
|
|
3985
3985
|
for (; T; )
|
|
3986
3986
|
T.data = Kt(T.data), T = g.nextNode();
|
|
3987
|
-
const v = (f =
|
|
3987
|
+
const v = (f = l.querySelectorAll) === null || f === void 0 ? void 0 : f.call(l, "template");
|
|
3988
3988
|
v && st(v, (R) => {
|
|
3989
3989
|
nt(R.content) && Hn(R.content);
|
|
3990
3990
|
});
|
|
3991
|
-
}, Yt = function(
|
|
3992
|
-
const f = E ? E(
|
|
3993
|
-
return typeof f != "string" || F(f) !== "form" ? !1 : typeof
|
|
3991
|
+
}, Yt = function(l) {
|
|
3992
|
+
const f = E ? E(l) : null;
|
|
3993
|
+
return typeof f != "string" || F(f) !== "form" ? !1 : typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
|
|
3994
3994
|
// prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
|
|
3995
3995
|
// makes the direct read diverge from the cached read; a clean form
|
|
3996
3996
|
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
3997
3997
|
// canonical NamedNodeMap.
|
|
3998
|
-
|
|
3998
|
+
l.attributes !== A(l) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
3999
3999
|
// returns the integer 1 for any Element regardless of realm; direct
|
|
4000
4000
|
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
4001
4001
|
// the named child element. Cheap addition — nodeType is read from
|
|
4002
4002
|
// an internal slot, no serialization cost — and removes a residual
|
|
4003
4003
|
// clobbering surface used by several mXSS / PI / comment branches
|
|
4004
4004
|
// in _sanitizeElements that compare currentNode.nodeType directly.
|
|
4005
|
-
|
|
4005
|
+
l.nodeType !== _(l) || // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
|
|
4006
4006
|
// "childNodes" shadows the prototype getter. Direct reads of
|
|
4007
4007
|
// form.childNodes from a clobbered form return the named child
|
|
4008
4008
|
// instead of the real NodeList, so any walk that reads it directly
|
|
@@ -4013,81 +4013,81 @@ function Ii() {
|
|
|
4013
4013
|
// select, etc.) regardless of whether the named child happens to
|
|
4014
4014
|
// carry a numeric .length, which a typeof-based probe would miss
|
|
4015
4015
|
// (e.g. HTMLSelectElement.length is a defined unsigned-long).
|
|
4016
|
-
|
|
4017
|
-
}, nt = function(
|
|
4018
|
-
if (!_ || typeof
|
|
4016
|
+
l.childNodes !== $(l);
|
|
4017
|
+
}, nt = function(l) {
|
|
4018
|
+
if (!_ || typeof l != "object" || l === null)
|
|
4019
4019
|
return !1;
|
|
4020
4020
|
try {
|
|
4021
|
-
return _(
|
|
4021
|
+
return _(l) === ce.documentFragment;
|
|
4022
4022
|
} catch {
|
|
4023
4023
|
return !1;
|
|
4024
4024
|
}
|
|
4025
|
-
}, Tt = function(
|
|
4026
|
-
if (!_ || typeof
|
|
4025
|
+
}, Tt = function(l) {
|
|
4026
|
+
if (!_ || typeof l != "object" || l === null)
|
|
4027
4027
|
return !1;
|
|
4028
4028
|
try {
|
|
4029
|
-
return typeof _(
|
|
4029
|
+
return typeof _(l) == "number";
|
|
4030
4030
|
} catch {
|
|
4031
4031
|
return !1;
|
|
4032
4032
|
}
|
|
4033
4033
|
};
|
|
4034
|
-
function Te(b,
|
|
4034
|
+
function Te(b, l, f) {
|
|
4035
4035
|
b.length !== 0 && st(b, (g) => {
|
|
4036
|
-
g.call(e,
|
|
4036
|
+
g.call(e, l, f, tt);
|
|
4037
4037
|
});
|
|
4038
4038
|
}
|
|
4039
|
-
const to = function(
|
|
4040
|
-
return !!(Pe &&
|
|
4041
|
-
}, no = function(
|
|
4039
|
+
const to = function(l, f) {
|
|
4040
|
+
return !!(Pe && l.hasChildNodes() && !Tt(l.firstElementChild) && Z(Os, l.textContent) && Z(Os, l.innerHTML) || Pe && l.namespaceURI === Ee && f === "style" && Tt(l.firstElementChild) || l.nodeType === ce.processingInstruction || Pe && l.nodeType === ce.comment && Z(Ns, l.data));
|
|
4041
|
+
}, no = function(l, f) {
|
|
4042
4042
|
if (!wt[f] && ns(f) && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, f) || W.tagNameCheck instanceof Function && W.tagNameCheck(f)))
|
|
4043
4043
|
return !1;
|
|
4044
4044
|
if (Dn && !we[f]) {
|
|
4045
|
-
const g = w(
|
|
4045
|
+
const g = w(l), T = $(l);
|
|
4046
4046
|
if (T && g) {
|
|
4047
4047
|
const v = T.length;
|
|
4048
4048
|
for (let R = v - 1; R >= 0; --R) {
|
|
4049
4049
|
const G = Cn ? T[R] : m(T[R], !0);
|
|
4050
|
-
g.insertBefore(G, O(
|
|
4050
|
+
g.insertBefore(G, O(l));
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
4053
4053
|
}
|
|
4054
|
-
return Le(
|
|
4055
|
-
}, es = function(
|
|
4056
|
-
if (Te(H.beforeSanitizeElements,
|
|
4054
|
+
return Le(l), !0;
|
|
4055
|
+
}, es = function(l, f) {
|
|
4056
|
+
if (Te(H.beforeSanitizeElements, l, null), l !== f && w(l) === null)
|
|
4057
4057
|
return !0;
|
|
4058
|
-
if (Yt(
|
|
4059
|
-
return Le(
|
|
4060
|
-
const g = F(E ? E(
|
|
4061
|
-
if (Te(H.uponSanitizeElement,
|
|
4058
|
+
if (Yt(l))
|
|
4059
|
+
return Le(l), !0;
|
|
4060
|
+
const g = F(E ? E(l) : l.nodeName);
|
|
4061
|
+
if (Te(H.uponSanitizeElement, l, {
|
|
4062
4062
|
tagName: g,
|
|
4063
4063
|
allowedTags: U
|
|
4064
|
-
}),
|
|
4064
|
+
}), l !== f && w(l) === null)
|
|
4065
4065
|
return !0;
|
|
4066
|
-
if (to(
|
|
4067
|
-
return Le(
|
|
4066
|
+
if (to(l, g))
|
|
4067
|
+
return Le(l), !0;
|
|
4068
4068
|
if (wt[g] || !(Me.tagCheck instanceof Function && Me.tagCheck(g)) && !U[g]) {
|
|
4069
|
-
const v = no(
|
|
4070
|
-
return v === !1 && Te(H.afterSanitizeElements,
|
|
4069
|
+
const v = no(l, g);
|
|
4070
|
+
return v === !1 && Te(H.afterSanitizeElements, l, null), v;
|
|
4071
4071
|
}
|
|
4072
|
-
if ((_ ? _(
|
|
4073
|
-
return Le(
|
|
4074
|
-
if ($e &&
|
|
4075
|
-
const v = Kt(
|
|
4076
|
-
|
|
4077
|
-
element:
|
|
4078
|
-
}),
|
|
4072
|
+
if ((_ ? _(l) : l.nodeType) === ce.element && !Qi(l) || (g === "noscript" || g === "noembed" || g === "noframes") && Z(nc, l.innerHTML))
|
|
4073
|
+
return Le(l), !0;
|
|
4074
|
+
if ($e && l.nodeType === ce.text) {
|
|
4075
|
+
const v = Kt(l.textContent);
|
|
4076
|
+
l.textContent !== v && (it(e.removed, {
|
|
4077
|
+
element: l.cloneNode()
|
|
4078
|
+
}), l.textContent = v);
|
|
4079
4079
|
}
|
|
4080
|
-
return Te(H.afterSanitizeElements,
|
|
4081
|
-
}, ts = function(
|
|
4082
|
-
if (Lr[f] || Pe && f === "patchsrc" || Pe && f === "for" &&
|
|
4080
|
+
return Te(H.afterSanitizeElements, l, null), !1;
|
|
4081
|
+
}, ts = function(l, f, g) {
|
|
4082
|
+
if (Lr[f] || Pe && f === "patchsrc" || Pe && f === "for" && l !== "label" && l !== "output" || Vr && (f === "id" || f === "name") && (g in n || g in Ki))
|
|
4083
4083
|
return !1;
|
|
4084
|
-
const T = B[f] || Me.attributeCheck instanceof Function && Me.attributeCheck(f,
|
|
4084
|
+
const T = B[f] || Me.attributeCheck instanceof Function && Me.attributeCheck(f, l);
|
|
4085
4085
|
if (!(An && Z(Fi, f))) {
|
|
4086
4086
|
if (!(zr && Z(Vi, f))) {
|
|
4087
4087
|
if (T) {
|
|
4088
4088
|
if (!$n[f]) {
|
|
4089
4089
|
if (!Z(Mr, vt(g, Cr, ""))) {
|
|
4090
|
-
if (!((f === "src" || f === "xlink:href" || f === "href") &&
|
|
4090
|
+
if (!((f === "src" || f === "xlink:href" || f === "href") && l !== "script" && Es(g, "data:") === 0 && Br[l])) {
|
|
4091
4091
|
if (!(jr && !Z(Hi, vt(g, Cr, "")))) {
|
|
4092
4092
|
if (g)
|
|
4093
4093
|
return !1;
|
|
@@ -4099,34 +4099,34 @@ function Ii() {
|
|
|
4099
4099
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4100
4100
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4101
4101
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4102
|
-
!(ns(
|
|
4102
|
+
!(ns(l) && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, l) || W.tagNameCheck instanceof Function && W.tagNameCheck(l)) && (W.attributeNameCheck instanceof RegExp && Z(W.attributeNameCheck, f) || W.attributeNameCheck instanceof Function && W.attributeNameCheck(f, l)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4103
4103
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4104
4104
|
f === "is" && W.allowCustomizedBuiltInElements && (W.tagNameCheck instanceof RegExp && Z(W.tagNameCheck, g) || W.tagNameCheck instanceof Function && W.tagNameCheck(g)))
|
|
4105
4105
|
) return !1;
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
4108
|
return !0;
|
|
4109
|
-
}, ro = D({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), ns = function(
|
|
4110
|
-
return !ro[Rt(
|
|
4111
|
-
}, so = function(
|
|
4109
|
+
}, ro = D({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), ns = function(l) {
|
|
4110
|
+
return !ro[Rt(l)] && Z(Ui, l);
|
|
4111
|
+
}, so = function(l, f, g, T) {
|
|
4112
4112
|
if (k && typeof u == "object" && typeof u.getAttributeType == "function" && !g)
|
|
4113
|
-
switch (u.getAttributeType(
|
|
4113
|
+
switch (u.getAttributeType(l, f)) {
|
|
4114
4114
|
case "TrustedHTML":
|
|
4115
4115
|
return C(T);
|
|
4116
4116
|
case "TrustedScriptURL":
|
|
4117
4117
|
return Ce(T);
|
|
4118
4118
|
}
|
|
4119
4119
|
return T;
|
|
4120
|
-
}, io = function(
|
|
4120
|
+
}, io = function(l, f, g, T) {
|
|
4121
4121
|
try {
|
|
4122
|
-
g ?
|
|
4122
|
+
g ? l.setAttributeNS(g, f, T) : l.setAttribute(f, T), Yt(l) ? Le(l) : ys(e.removed);
|
|
4123
4123
|
} catch {
|
|
4124
|
-
Be(f,
|
|
4124
|
+
Be(f, l);
|
|
4125
4125
|
}
|
|
4126
|
-
}, rs = function(
|
|
4127
|
-
Te(H.beforeSanitizeAttributes,
|
|
4128
|
-
const f =
|
|
4129
|
-
if (!f || Yt(
|
|
4126
|
+
}, rs = function(l) {
|
|
4127
|
+
Te(H.beforeSanitizeAttributes, l, null);
|
|
4128
|
+
const f = l.attributes;
|
|
4129
|
+
if (!f || Yt(l))
|
|
4130
4130
|
return;
|
|
4131
4131
|
const g = {
|
|
4132
4132
|
attrName: "",
|
|
@@ -4136,47 +4136,47 @@ function Ii() {
|
|
|
4136
4136
|
forceKeepAttr: void 0
|
|
4137
4137
|
};
|
|
4138
4138
|
let T = f.length;
|
|
4139
|
-
const v = F(
|
|
4139
|
+
const v = F(l.nodeName);
|
|
4140
4140
|
for (; T--; ) {
|
|
4141
|
-
const R = f[T], G = R.name, re = R.namespaceURI, ge = R.value,
|
|
4142
|
-
let se = G === "value" ? me :
|
|
4143
|
-
if (g.attrName =
|
|
4144
|
-
Be(G,
|
|
4141
|
+
const R = f[T], G = R.name, re = R.namespaceURI, ge = R.value, ae = F(G), me = ge;
|
|
4142
|
+
let se = G === "value" ? me : za(me);
|
|
4143
|
+
if (g.attrName = ae, g.attrValue = se, g.keepAttr = !0, g.forceKeepAttr = void 0, Te(H.uponSanitizeAttribute, l, g), se = g.attrValue, Hr && (ae === "id" || ae === "name") && Es(se, Ur) !== 0 && (Be(G, l), se = Ur + se), Pe && Z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, se)) {
|
|
4144
|
+
Be(G, l);
|
|
4145
4145
|
continue;
|
|
4146
4146
|
}
|
|
4147
|
-
if (
|
|
4148
|
-
Be(G,
|
|
4147
|
+
if (ae === "attributename" && ws(se, "href")) {
|
|
4148
|
+
Be(G, l);
|
|
4149
4149
|
continue;
|
|
4150
4150
|
}
|
|
4151
4151
|
if (!g.forceKeepAttr) {
|
|
4152
4152
|
if (!g.keepAttr) {
|
|
4153
|
-
Be(G,
|
|
4153
|
+
Be(G, l);
|
|
4154
4154
|
continue;
|
|
4155
4155
|
}
|
|
4156
4156
|
if (!Fr && Z(rc, se)) {
|
|
4157
|
-
Be(G,
|
|
4157
|
+
Be(G, l);
|
|
4158
4158
|
continue;
|
|
4159
4159
|
}
|
|
4160
|
-
if ($e && (se = Kt(se)), !ts(v,
|
|
4161
|
-
Be(G,
|
|
4160
|
+
if ($e && (se = Kt(se)), !ts(v, ae, se)) {
|
|
4161
|
+
Be(G, l);
|
|
4162
4162
|
continue;
|
|
4163
4163
|
}
|
|
4164
|
-
se = so(v,
|
|
4164
|
+
se = so(v, ae, re, se), se !== me && io(l, G, re, se);
|
|
4165
4165
|
}
|
|
4166
4166
|
}
|
|
4167
|
-
Te(H.afterSanitizeAttributes,
|
|
4168
|
-
}, Zt = function(
|
|
4167
|
+
Te(H.afterSanitizeAttributes, l, null);
|
|
4168
|
+
}, Zt = function(l) {
|
|
4169
4169
|
let f = null;
|
|
4170
|
-
const g = Jr(
|
|
4171
|
-
for (Te(H.beforeSanitizeShadowDOM,
|
|
4172
|
-
if (Te(H.uponSanitizeShadowNode, f, null), es(f,
|
|
4170
|
+
const g = Jr(l);
|
|
4171
|
+
for (Te(H.beforeSanitizeShadowDOM, l, null); f = g.nextNode(); )
|
|
4172
|
+
if (Te(H.uponSanitizeShadowNode, f, null), es(f, l), rs(f), nt(f.content) && Zt(f.content), (_ ? _(f) : f.nodeType) === ce.element) {
|
|
4173
4173
|
const v = S(f);
|
|
4174
4174
|
nt(v) && (Un(v), Zt(v));
|
|
4175
4175
|
}
|
|
4176
|
-
Te(H.afterSanitizeShadowDOM,
|
|
4177
|
-
}, Un = function(
|
|
4176
|
+
Te(H.afterSanitizeShadowDOM, l, null);
|
|
4177
|
+
}, Un = function(l) {
|
|
4178
4178
|
const f = [{
|
|
4179
|
-
node:
|
|
4179
|
+
node: l,
|
|
4180
4180
|
shadow: null
|
|
4181
4181
|
}];
|
|
4182
4182
|
for (; f.length > 0; ) {
|
|
@@ -4215,18 +4215,18 @@ function Ii() {
|
|
|
4215
4215
|
}
|
|
4216
4216
|
};
|
|
4217
4217
|
return e.sanitize = function(b) {
|
|
4218
|
-
let
|
|
4219
|
-
if (Pn = !b, Pn && (b = "<!-->"), typeof b != "string" && !Tt(b) && (b =
|
|
4218
|
+
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, g = null, T = null, v = null;
|
|
4219
|
+
if (Pn = !b, Pn && (b = "<!-->"), typeof b != "string" && !Tt(b) && (b = Ua(b), typeof b != "string"))
|
|
4220
4220
|
throw We("dirty is not a string, aborting");
|
|
4221
4221
|
if (!e.isSupported)
|
|
4222
4222
|
return b;
|
|
4223
|
-
Rn ? (U = On, B = Nn) : Fn(
|
|
4223
|
+
Rn ? (U = On, B = Nn) : Fn(l), (H.uponSanitizeElement.length > 0 || H.uponSanitizeAttribute.length > 0) && (U = ie(U)), H.uponSanitizeAttribute.length > 0 && (B = ie(B)), e.removed = [];
|
|
4224
4224
|
const R = Cn && typeof b != "string" && Tt(b);
|
|
4225
4225
|
if (R) {
|
|
4226
4226
|
eo(b);
|
|
4227
|
-
const
|
|
4228
|
-
if (typeof
|
|
4229
|
-
const me = F(
|
|
4227
|
+
const ae = E ? E(b) : b.nodeName;
|
|
4228
|
+
if (typeof ae == "string") {
|
|
4229
|
+
const me = F(ae);
|
|
4230
4230
|
if (!U[me] || wt[me])
|
|
4231
4231
|
throw qt(b), We("root node is forbidden and cannot be sanitized in-place");
|
|
4232
4232
|
}
|
|
@@ -4251,14 +4251,14 @@ function Ii() {
|
|
|
4251
4251
|
try {
|
|
4252
4252
|
for (; T = re.nextNode(); )
|
|
4253
4253
|
es(T, G), rs(T), nt(T.content) && Zt(T.content);
|
|
4254
|
-
} catch (
|
|
4254
|
+
} catch (ae) {
|
|
4255
4255
|
throw R && (qt(b), st(e.removed, (me) => {
|
|
4256
4256
|
me.element && Vn(me.element);
|
|
4257
|
-
})),
|
|
4257
|
+
})), ae;
|
|
4258
4258
|
}
|
|
4259
4259
|
if (R)
|
|
4260
|
-
return st(e.removed, (
|
|
4261
|
-
|
|
4260
|
+
return st(e.removed, (ae) => {
|
|
4261
|
+
ae.element && Vn(ae.element);
|
|
4262
4262
|
}), $e && Hn(b), b;
|
|
4263
4263
|
if (Qe) {
|
|
4264
4264
|
if ($e && Hn(f), Ut)
|
|
@@ -4276,17 +4276,17 @@ function Ii() {
|
|
|
4276
4276
|
Fn(b), Rn = !0, On = U, Nn = B;
|
|
4277
4277
|
}, e.clearConfig = function() {
|
|
4278
4278
|
tt = null, Rn = !1, On = null, Nn = null, k = I, x = "";
|
|
4279
|
-
}, e.isValidAttribute = function(b,
|
|
4279
|
+
}, e.isValidAttribute = function(b, l, f) {
|
|
4280
4280
|
tt || Fn({});
|
|
4281
|
-
const g = F(b), T = F(
|
|
4281
|
+
const g = F(b), T = F(l);
|
|
4282
4282
|
return ts(g, T, f);
|
|
4283
|
-
}, e.addHook = function(b,
|
|
4284
|
-
typeof
|
|
4285
|
-
}, e.removeHook = function(b,
|
|
4283
|
+
}, e.addHook = function(b, l) {
|
|
4284
|
+
typeof l == "function" && X(H, b) && it(H[b], l);
|
|
4285
|
+
}, e.removeHook = function(b, l) {
|
|
4286
4286
|
if (X(H, b)) {
|
|
4287
|
-
if (
|
|
4288
|
-
const f =
|
|
4289
|
-
return f === -1 ? void 0 :
|
|
4287
|
+
if (l !== void 0) {
|
|
4288
|
+
const f = Pa(H[b], l);
|
|
4289
|
+
return f === -1 ? void 0 : La(H[b], f, 1)[0];
|
|
4290
4290
|
}
|
|
4291
4291
|
return ys(H[b]);
|
|
4292
4292
|
}
|
|
@@ -4297,7 +4297,7 @@ function Ii() {
|
|
|
4297
4297
|
}, e;
|
|
4298
4298
|
}
|
|
4299
4299
|
var oc = Ii();
|
|
4300
|
-
const
|
|
4300
|
+
const lc = {
|
|
4301
4301
|
tooltipAttributes: {
|
|
4302
4302
|
maxWidth: "300px",
|
|
4303
4303
|
placement: "top"
|
|
@@ -4313,14 +4313,14 @@ function kn(t, e = "") {
|
|
|
4313
4313
|
for (const r of t.fields) {
|
|
4314
4314
|
const s = Object.keys(r)[0], i = r[s], o = e ? V(e, s) : s;
|
|
4315
4315
|
if (n[o] = i, i.type === "record" && Array.isArray(i.fields)) {
|
|
4316
|
-
const
|
|
4317
|
-
Object.assign(n,
|
|
4316
|
+
const a = kn(i, o);
|
|
4317
|
+
Object.assign(n, a);
|
|
4318
4318
|
} else if (i.type === "array" && i.elements) {
|
|
4319
|
-
const
|
|
4320
|
-
Object.assign(n,
|
|
4319
|
+
const a = xn(i, o);
|
|
4320
|
+
Object.assign(n, a);
|
|
4321
4321
|
} else if (i.type === "map" && i.values) {
|
|
4322
|
-
const
|
|
4323
|
-
Object.assign(n,
|
|
4322
|
+
const a = Sn(i, o);
|
|
4323
|
+
Object.assign(n, a);
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
4326
|
return n;
|
|
@@ -4328,8 +4328,9 @@ function kn(t, e = "") {
|
|
|
4328
4328
|
function xn(t, e = "") {
|
|
4329
4329
|
const n = {};
|
|
4330
4330
|
if (t.elements) {
|
|
4331
|
-
|
|
4332
|
-
|
|
4331
|
+
let r = t.elements;
|
|
4332
|
+
const s = V(e, _i);
|
|
4333
|
+
if (t.encrypted && r.type === "string" && (r = { ...r, encrypted: !0 }), n[s] = r, r.type === "record" && Array.isArray(r.fields)) {
|
|
4333
4334
|
const i = kn(r, s);
|
|
4334
4335
|
Object.assign(n, i);
|
|
4335
4336
|
} else if (r.type === "array" && r.elements) {
|
|
@@ -4357,14 +4358,14 @@ function Sn(t, e = "") {
|
|
|
4357
4358
|
return n;
|
|
4358
4359
|
}
|
|
4359
4360
|
function mt(t, e) {
|
|
4360
|
-
const n =
|
|
4361
|
+
const n = at(t), r = [];
|
|
4361
4362
|
for (let s = 0; s < n.length; s++) {
|
|
4362
|
-
const i = n[s], o = r.length > 0 ? V(...r) : "",
|
|
4363
|
-
|
|
4363
|
+
const i = n[s], o = r.length > 0 ? V(...r) : "", a = o ? e[o] : void 0;
|
|
4364
|
+
a?.type === "map" ? r.push(xr) : a?.type === "array" ? r.push(_i) : r.push(i);
|
|
4364
4365
|
}
|
|
4365
4366
|
return V(...r);
|
|
4366
4367
|
}
|
|
4367
|
-
function
|
|
4368
|
+
function ac(t) {
|
|
4368
4369
|
const e = _e(t), n = on(() => e ? Di(e) : {});
|
|
4369
4370
|
function r(d) {
|
|
4370
4371
|
if (d) {
|
|
@@ -4394,17 +4395,17 @@ function lc(t) {
|
|
|
4394
4395
|
function o(d) {
|
|
4395
4396
|
return d ? s(d, !0) : i(r(), "");
|
|
4396
4397
|
}
|
|
4397
|
-
function
|
|
4398
|
+
function a(d) {
|
|
4398
4399
|
const m = r(d), y = m?.description ? oc.sanitize(L.parse(m.description, { async: !1 })) : void 0;
|
|
4399
4400
|
return {
|
|
4400
|
-
...
|
|
4401
|
+
...lc,
|
|
4401
4402
|
"data-testid": `ff-label-${d}`,
|
|
4402
4403
|
info: y
|
|
4403
4404
|
};
|
|
4404
4405
|
}
|
|
4405
4406
|
function c(d) {
|
|
4406
4407
|
const m = r(d);
|
|
4407
|
-
return
|
|
4408
|
+
return Bl(m?.one_of || m.elements?.one_of || []);
|
|
4408
4409
|
}
|
|
4409
4410
|
function p(d) {
|
|
4410
4411
|
const m = r(d), y = m?.default;
|
|
@@ -4434,7 +4435,7 @@ function lc(t) {
|
|
|
4434
4435
|
getSchema: r,
|
|
4435
4436
|
getDefault: o,
|
|
4436
4437
|
getSelectItems: c,
|
|
4437
|
-
getLabelAttributes:
|
|
4438
|
+
getLabelAttributes: a,
|
|
4438
4439
|
getPlaceholder: p,
|
|
4439
4440
|
getEmptyOrDefault: u
|
|
4440
4441
|
};
|
|
@@ -4442,7 +4443,7 @@ function lc(t) {
|
|
|
4442
4443
|
const gt = /* @__PURE__ */ new WeakMap(), cc = /* @__NO_SIDE_EFFECTS__ */ (...t) => {
|
|
4443
4444
|
var e;
|
|
4444
4445
|
const n = t[0], r = (e = yt()) === null || e === void 0 ? void 0 : e.proxy, s = r ?? Ls();
|
|
4445
|
-
if (s == null && !
|
|
4446
|
+
if (s == null && !pl()) throw new Error("injectLocal must be called in setup");
|
|
4446
4447
|
return s && gt.has(s) && n in gt.get(s) ? gt.get(s)[n] : oi(...t);
|
|
4447
4448
|
};
|
|
4448
4449
|
function uc(t, e) {
|
|
@@ -4456,8 +4457,8 @@ function uc(t, e) {
|
|
|
4456
4457
|
function fc(t, e) {
|
|
4457
4458
|
const n = Symbol(t.name || "InjectionState"), r = void 0;
|
|
4458
4459
|
return [(...o) => {
|
|
4459
|
-
const
|
|
4460
|
-
return uc(n,
|
|
4460
|
+
const a = t(...o);
|
|
4461
|
+
return uc(n, a), a;
|
|
4461
4462
|
}, () => /* @__PURE__ */ cc(n, r)];
|
|
4462
4463
|
}
|
|
4463
4464
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4468,7 +4469,7 @@ function pc(t, e) {
|
|
|
4468
4469
|
function hc(t, e) {
|
|
4469
4470
|
const n = /* @__PURE__ */ or({}), r = /* @__PURE__ */ or({});
|
|
4470
4471
|
function s(w, S) {
|
|
4471
|
-
const A = w.map((E) =>
|
|
4472
|
+
const A = w.map((E) => at(E).length), _ = A[0];
|
|
4472
4473
|
if (!A.every((E) => E === _)) {
|
|
4473
4474
|
const E = w.map((k, x) => ` - '${k}' is at level ${A[x]}`).join(`
|
|
4474
4475
|
`);
|
|
@@ -4541,8 +4542,8 @@ ${j}`
|
|
|
4541
4542
|
E(_);
|
|
4542
4543
|
}
|
|
4543
4544
|
}
|
|
4544
|
-
function
|
|
4545
|
-
const A = w.map((E) => S ? V(S, E) : E), _ =
|
|
4545
|
+
function a(w, S) {
|
|
4546
|
+
const A = w.map((E) => S ? V(S, E) : E), _ = at(A[0]);
|
|
4546
4547
|
return _.pop(), V(..._);
|
|
4547
4548
|
}
|
|
4548
4549
|
function c(w, S) {
|
|
@@ -4551,7 +4552,7 @@ ${j}`
|
|
|
4551
4552
|
return w.startsWith(A) ? w.slice(A.length) : w;
|
|
4552
4553
|
}
|
|
4553
4554
|
function p(w) {
|
|
4554
|
-
const S =
|
|
4555
|
+
const S = at(w);
|
|
4555
4556
|
return S.pop(), V(...S);
|
|
4556
4557
|
}
|
|
4557
4558
|
function h() {
|
|
@@ -4566,7 +4567,7 @@ ${j}`
|
|
|
4566
4567
|
);
|
|
4567
4568
|
const k = E.map((M) => _ ? V(_, M) : M);
|
|
4568
4569
|
s(k, `Bundle [${E.join(", ")}]`);
|
|
4569
|
-
const x =
|
|
4570
|
+
const x = a(E, _) || ut;
|
|
4570
4571
|
w[x] || (w[x] = {}), w[x].bundles || (w[x].bundles = []);
|
|
4571
4572
|
const I = k.map((M) => c(M, x));
|
|
4572
4573
|
w[x].bundles.push(I);
|
|
@@ -4623,7 +4624,7 @@ ${j}`
|
|
|
4623
4624
|
rules: A,
|
|
4624
4625
|
omittedFields: _
|
|
4625
4626
|
} = w;
|
|
4626
|
-
|
|
4627
|
+
ar([
|
|
4627
4628
|
() => _e(A),
|
|
4628
4629
|
() => _e(S),
|
|
4629
4630
|
() => _e(_)
|
|
@@ -4631,19 +4632,19 @@ ${j}`
|
|
|
4631
4632
|
k ? n.value[x] = k : delete n.value[x], I && I.length ? r.value[x] = [...I] : delete r.value[x], M && M !== x && (delete n.value[M], delete r.value[M]);
|
|
4632
4633
|
}, { immediate: !0, deep: !0 });
|
|
4633
4634
|
const E = m(S);
|
|
4634
|
-
return
|
|
4635
|
+
return yl(() => {
|
|
4635
4636
|
const k = _e(S);
|
|
4636
4637
|
delete n.value[k], delete r.value[k];
|
|
4637
4638
|
}), E;
|
|
4638
4639
|
}
|
|
4639
4640
|
function $(w) {
|
|
4640
|
-
const S =
|
|
4641
|
+
const S = at(w);
|
|
4641
4642
|
if (!S.length) return !1;
|
|
4642
4643
|
const A = S[S.length - 1], _ = V(...S.slice(0, -1));
|
|
4643
4644
|
if (r.value[_]?.includes(A)) return !1;
|
|
4644
4645
|
const E = _ === "" ? ut : mt(_, t()), k = u.value[E]?.dependencies?.[A];
|
|
4645
4646
|
if (!k) return !1;
|
|
4646
|
-
const [x, I] = k, M = _ ? V(_, x) : x, j = Cs(e(),
|
|
4647
|
+
const [x, I] = k, M = _ ? V(_, x) : x, j = Cs(e(), at(M));
|
|
4647
4648
|
return !pc(j, I);
|
|
4648
4649
|
}
|
|
4649
4650
|
return {
|
|
@@ -4675,7 +4676,7 @@ function mc(t) {
|
|
|
4675
4676
|
function o(p) {
|
|
4676
4677
|
return _c(p, t, n);
|
|
4677
4678
|
}
|
|
4678
|
-
function
|
|
4679
|
+
function a(p) {
|
|
4679
4680
|
return bc(p, t, r);
|
|
4680
4681
|
}
|
|
4681
4682
|
function c() {
|
|
@@ -4687,7 +4688,7 @@ function mc(t) {
|
|
|
4687
4688
|
updateKey: s,
|
|
4688
4689
|
deleteKey: i,
|
|
4689
4690
|
serialize: o,
|
|
4690
|
-
deserialize:
|
|
4691
|
+
deserialize: a,
|
|
4691
4692
|
clear: c
|
|
4692
4693
|
};
|
|
4693
4694
|
}
|
|
@@ -4707,11 +4708,11 @@ function _c(t, e, n) {
|
|
|
4707
4708
|
p[u] = r(d, m);
|
|
4708
4709
|
}), p;
|
|
4709
4710
|
}
|
|
4710
|
-
const
|
|
4711
|
+
const a = {};
|
|
4711
4712
|
return Object.keys(s).forEach((c) => {
|
|
4712
4713
|
const p = i ? V(i, c) : c;
|
|
4713
|
-
|
|
4714
|
-
}),
|
|
4714
|
+
a[c] = r(s[c], p);
|
|
4715
|
+
}), a;
|
|
4715
4716
|
};
|
|
4716
4717
|
return r(t);
|
|
4717
4718
|
}
|
|
@@ -4736,11 +4737,11 @@ function bc(t, e, n) {
|
|
|
4736
4737
|
p[m] = r(d, O);
|
|
4737
4738
|
}), p;
|
|
4738
4739
|
}
|
|
4739
|
-
const
|
|
4740
|
+
const a = {};
|
|
4740
4741
|
return Object.keys(s).forEach((c) => {
|
|
4741
4742
|
const p = i ? V(i, c) : c;
|
|
4742
|
-
|
|
4743
|
-
}),
|
|
4743
|
+
a[c] = r(s[c], p);
|
|
4744
|
+
}), a;
|
|
4744
4745
|
};
|
|
4745
4746
|
return r(t);
|
|
4746
4747
|
}
|
|
@@ -4753,11 +4754,11 @@ fc(
|
|
|
4753
4754
|
propsRenderRules: i,
|
|
4754
4755
|
propsConfig: o
|
|
4755
4756
|
} = e, {
|
|
4756
|
-
getDefault:
|
|
4757
|
+
getDefault: a,
|
|
4757
4758
|
getEmptyOrDefault: c,
|
|
4758
4759
|
...p
|
|
4759
|
-
} =
|
|
4760
|
-
ii(
|
|
4760
|
+
} = ac(n), h = mc(p.getSchema), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ yn({}), m = /* @__PURE__ */ Wo(() => o ?? {}), y = Tl();
|
|
4761
|
+
ii(ql, oo(y, "default", Kl));
|
|
4761
4762
|
const {
|
|
4762
4763
|
useCurrentRules: O,
|
|
4763
4764
|
createComputedRules: $,
|
|
@@ -4774,7 +4775,7 @@ fc(
|
|
|
4774
4775
|
}
|
|
4775
4776
|
function E(C) {
|
|
4776
4777
|
let Ce;
|
|
4777
|
-
!C || !k(_e(C)) ? Ce =
|
|
4778
|
+
!C || !k(_e(C)) ? Ce = a() : Ce = ss(_e(C)), is(m.value.prepareFormData) ? _(m.value.prepareFormData(Ce)) : _(Ce);
|
|
4778
4779
|
}
|
|
4779
4780
|
function k(C) {
|
|
4780
4781
|
return is(m.value.hasValue) ? m.value.hasValue(C) : !!C;
|
|
@@ -4787,18 +4788,18 @@ fc(
|
|
|
4787
4788
|
c
|
|
4788
4789
|
), h.deserialize(C);
|
|
4789
4790
|
}
|
|
4790
|
-
|
|
4791
|
+
ar(d, () => {
|
|
4791
4792
|
s?.(x());
|
|
4792
4793
|
}, { deep: !0 });
|
|
4793
4794
|
let I = !1;
|
|
4794
|
-
|
|
4795
|
+
ar(() => r?.value, (C) => {
|
|
4795
4796
|
I && rn(x(), _e(C)) || (E(C), I = !0);
|
|
4796
4797
|
}, { deep: !0, immediate: !0 });
|
|
4797
4798
|
function M(C) {
|
|
4798
4799
|
return C != null && typeof C == "object" && !Array.isArray(C) ? h.serialize(C) : C;
|
|
4799
4800
|
}
|
|
4800
4801
|
function j(C) {
|
|
4801
|
-
return M(
|
|
4802
|
+
return M(a(C));
|
|
4802
4803
|
}
|
|
4803
4804
|
function ye(C) {
|
|
4804
4805
|
return M(c(C));
|
|
@@ -4825,7 +4826,7 @@ fc(
|
|
|
4825
4826
|
}
|
|
4826
4827
|
);
|
|
4827
4828
|
function yc(t) {
|
|
4828
|
-
if (
|
|
4829
|
+
if (Gl(t)) return "enum";
|
|
4829
4830
|
switch (t.type) {
|
|
4830
4831
|
case "string":
|
|
4831
4832
|
return "string";
|
|
@@ -4835,7 +4836,7 @@ function yc(t) {
|
|
|
4835
4836
|
case "boolean":
|
|
4836
4837
|
return "boolean";
|
|
4837
4838
|
case "set":
|
|
4838
|
-
return
|
|
4839
|
+
return Wl(t) ? "tag" : "enum";
|
|
4839
4840
|
case "array":
|
|
4840
4841
|
return "array";
|
|
4841
4842
|
case "record":
|
|
@@ -4852,8 +4853,8 @@ function yc(t) {
|
|
|
4852
4853
|
}
|
|
4853
4854
|
function* kc(t, e, n, r = "") {
|
|
4854
4855
|
for (const s of t) {
|
|
4855
|
-
const i = Object.keys(s)[0], o = r ? V(r, i) : i,
|
|
4856
|
-
if (
|
|
4856
|
+
const i = Object.keys(s)[0], o = r ? V(r, i) : i, a = Cs(e, i);
|
|
4857
|
+
if (a === void 0) continue;
|
|
4857
4858
|
const c = mt(o, n.schemaMap), p = n.schemaMap[c];
|
|
4858
4859
|
if (!p)
|
|
4859
4860
|
throw new Error(`Field schema for "${o}" not found in schema map`);
|
|
@@ -4861,7 +4862,7 @@ function* kc(t, e, n, r = "") {
|
|
|
4861
4862
|
handlerType: yc(p),
|
|
4862
4863
|
fieldKey: o,
|
|
4863
4864
|
fieldSchema: p,
|
|
4864
|
-
value:
|
|
4865
|
+
value: a
|
|
4865
4866
|
};
|
|
4866
4867
|
}
|
|
4867
4868
|
}
|