@shotstack/shotstack-studio 2.14.2 → 2.14.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/internal.es.js +333 -303
- package/dist/internal.umd.js +13 -13
- package/dist/shotstack-studio.es.js +429 -399
- package/dist/shotstack-studio.umd.js +53 -53
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import "pixi.js/text-html";
|
|
|
11
11
|
import "pixi.js/sprite-tiling";
|
|
12
12
|
import "pixi.js/filters";
|
|
13
13
|
import "pixi.js/mesh";
|
|
14
|
-
const bA = "2.14.
|
|
14
|
+
const bA = "2.14.3", vA = {
|
|
15
15
|
version: bA
|
|
16
16
|
};
|
|
17
17
|
function M1(e, t, i) {
|
|
@@ -713,7 +713,7 @@ function O1(e) {
|
|
|
713
713
|
function R1(e) {
|
|
714
714
|
return e / 1e3;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Ki(e) {
|
|
717
717
|
return typeof e == "string" && /^alias:\/\/[a-zA-Z0-9_-]*$/.test(e);
|
|
718
718
|
}
|
|
719
719
|
function iu(e) {
|
|
@@ -834,7 +834,7 @@ class IA {
|
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
var ze = /* @__PURE__ */ ((e) => (e.Video = "video", e.Image = "image", e.Audio = "audio", e.Text = "text", e.RichText = "rich-text", e.Luma = "luma", e.Html = "html", e.Html5 = "html5", e.Shape = "shape", e.Caption = "caption", e.Svg = "svg", e.TextToImage = "text-to-image", e.ImageToVideo = "image-to-video", e.TextToSpeech = "text-to-speech", e.RichCaption = "rich-caption", e))(ze || {});
|
|
837
|
-
class
|
|
837
|
+
class Fi extends IA {
|
|
838
838
|
static DiscardedFrameCount = 0;
|
|
839
839
|
layer;
|
|
840
840
|
shouldDispose;
|
|
@@ -956,9 +956,9 @@ class Bi extends IA {
|
|
|
956
956
|
const t = this.edit.getDocumentClipById(this.clipId);
|
|
957
957
|
if (t) {
|
|
958
958
|
let i;
|
|
959
|
-
t.start === "auto" ? i = "auto" : (
|
|
959
|
+
t.start === "auto" ? i = "auto" : (Ki(t.start), i = t.start);
|
|
960
960
|
let r;
|
|
961
|
-
return t.length === "auto" || t.length === "end" ||
|
|
961
|
+
return t.length === "auto" || t.length === "end" || Ki(t.length), r = t.length, { start: i, length: r };
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
return {
|
|
@@ -1069,7 +1069,7 @@ class Bi extends IA {
|
|
|
1069
1069
|
endStaticRender() {
|
|
1070
1070
|
}
|
|
1071
1071
|
shouldDiscardFrame() {
|
|
1072
|
-
return this.getPlaybackTime() <
|
|
1072
|
+
return this.getPlaybackTime() < Fi.DiscardedFrameCount;
|
|
1073
1073
|
}
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Handle pointer down — emit click event for selection handling.
|
|
@@ -1237,7 +1237,7 @@ class Io {
|
|
|
1237
1237
|
t?.unload();
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
|
-
class NA extends
|
|
1240
|
+
class NA extends Fi {
|
|
1241
1241
|
audioResource;
|
|
1242
1242
|
isPlaying;
|
|
1243
1243
|
volumeKeyframeBuilder;
|
|
@@ -3682,7 +3682,7 @@ function fi(e, t, i = { path: [], schemaPath: [] }) {
|
|
|
3682
3682
|
f && (a.ref || (a.ref = f), fi(f, t, c), t.seen.get(f).isParent = !0);
|
|
3683
3683
|
}
|
|
3684
3684
|
const l = t.metadataRegistry.get(e);
|
|
3685
|
-
return l && Object.assign(a.schema, l), t.io === "input" &&
|
|
3685
|
+
return l && Object.assign(a.schema, l), t.io === "input" && Hi(e) && (delete a.schema.examples, delete a.schema.default), t.io === "input" && "_prefault" in a.schema && ((r = a.schema).default ?? (r.default = a.schema._prefault)), delete a.schema._prefault, t.seen.get(e).schema;
|
|
3686
3686
|
}
|
|
3687
3687
|
function d2(e, t) {
|
|
3688
3688
|
const i = e.seen.get(t);
|
|
@@ -3824,7 +3824,7 @@ function h2(e, t) {
|
|
|
3824
3824
|
throw new Error("Error converting schema to JSON.");
|
|
3825
3825
|
}
|
|
3826
3826
|
}
|
|
3827
|
-
function
|
|
3827
|
+
function Hi(e, t) {
|
|
3828
3828
|
const i = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3829
3829
|
if (i.seen.has(e))
|
|
3830
3830
|
return !1;
|
|
@@ -3833,36 +3833,36 @@ function Gi(e, t) {
|
|
|
3833
3833
|
if (r.type === "transform")
|
|
3834
3834
|
return !0;
|
|
3835
3835
|
if (r.type === "array")
|
|
3836
|
-
return
|
|
3836
|
+
return Hi(r.element, i);
|
|
3837
3837
|
if (r.type === "set")
|
|
3838
|
-
return
|
|
3838
|
+
return Hi(r.valueType, i);
|
|
3839
3839
|
if (r.type === "lazy")
|
|
3840
|
-
return
|
|
3840
|
+
return Hi(r.getter(), i);
|
|
3841
3841
|
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault")
|
|
3842
|
-
return
|
|
3842
|
+
return Hi(r.innerType, i);
|
|
3843
3843
|
if (r.type === "intersection")
|
|
3844
|
-
return
|
|
3844
|
+
return Hi(r.left, i) || Hi(r.right, i);
|
|
3845
3845
|
if (r.type === "record" || r.type === "map")
|
|
3846
|
-
return
|
|
3846
|
+
return Hi(r.keyType, i) || Hi(r.valueType, i);
|
|
3847
3847
|
if (r.type === "pipe")
|
|
3848
|
-
return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3848
|
+
return e._zod.traits.has("$ZodCodec") ? !0 : Hi(r.in, i) || Hi(r.out, i);
|
|
3849
3849
|
if (r.type === "object") {
|
|
3850
3850
|
for (const n in r.shape)
|
|
3851
|
-
if (
|
|
3851
|
+
if (Hi(r.shape[n], i))
|
|
3852
3852
|
return !0;
|
|
3853
3853
|
return !1;
|
|
3854
3854
|
}
|
|
3855
3855
|
if (r.type === "union") {
|
|
3856
3856
|
for (const n of r.options)
|
|
3857
|
-
if (
|
|
3857
|
+
if (Hi(n, i))
|
|
3858
3858
|
return !0;
|
|
3859
3859
|
return !1;
|
|
3860
3860
|
}
|
|
3861
3861
|
if (r.type === "tuple") {
|
|
3862
3862
|
for (const n of r.items)
|
|
3863
|
-
if (
|
|
3863
|
+
if (Hi(n, i))
|
|
3864
3864
|
return !0;
|
|
3865
|
-
return !!(r.rest &&
|
|
3865
|
+
return !!(r.rest && Hi(r.rest, i));
|
|
3866
3866
|
}
|
|
3867
3867
|
return !1;
|
|
3868
3868
|
}
|
|
@@ -4401,7 +4401,7 @@ function Lr(e) {
|
|
|
4401
4401
|
const a7 = /* @__PURE__ */ X("ZodUnknown", (e, t) => {
|
|
4402
4402
|
BI.init(e, t), Je.init(e, t), e._zod.processJSONSchema = (i, r, n) => eD();
|
|
4403
4403
|
});
|
|
4404
|
-
function
|
|
4404
|
+
function $i() {
|
|
4405
4405
|
return /* @__PURE__ */ P8(a7);
|
|
4406
4406
|
}
|
|
4407
4407
|
const o7 = /* @__PURE__ */ X("ZodNever", (e, t) => {
|
|
@@ -4441,10 +4441,10 @@ const u7 = /* @__PURE__ */ X("ZodObject", (e, t) => {
|
|
|
4441
4441
|
return this.clone({ ...this._zod.def, catchall: i });
|
|
4442
4442
|
},
|
|
4443
4443
|
passthrough() {
|
|
4444
|
-
return this.clone({ ...this._zod.def, catchall:
|
|
4444
|
+
return this.clone({ ...this._zod.def, catchall: $i() });
|
|
4445
4445
|
},
|
|
4446
4446
|
loose() {
|
|
4447
|
-
return this.clone({ ...this._zod.def, catchall:
|
|
4447
|
+
return this.clone({ ...this._zod.def, catchall: $i() });
|
|
4448
4448
|
},
|
|
4449
4449
|
strict() {
|
|
4450
4450
|
return this.clone({ ...this._zod.def, catchall: wt() });
|
|
@@ -5035,7 +5035,7 @@ const pP = A({
|
|
|
5035
5035
|
}, P()), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
5036
5036
|
}).strict(), _2 = A({
|
|
5037
5037
|
find: y(),
|
|
5038
|
-
replace:
|
|
5038
|
+
replace: $i()
|
|
5039
5039
|
}).strict(), yP = A({
|
|
5040
5040
|
capture: E([F((e) => {
|
|
5041
5041
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -5079,7 +5079,7 @@ A({
|
|
|
5079
5079
|
A({
|
|
5080
5080
|
success: Ut(),
|
|
5081
5081
|
message: y(),
|
|
5082
|
-
response: b2(y(),
|
|
5082
|
+
response: b2(y(), $i())
|
|
5083
5083
|
}).strict();
|
|
5084
5084
|
const wP = A({
|
|
5085
5085
|
message: y(),
|
|
@@ -5115,7 +5115,7 @@ A({
|
|
|
5115
5115
|
}).strict();
|
|
5116
5116
|
const _P = A({
|
|
5117
5117
|
family: p(y()),
|
|
5118
|
-
weight: p(
|
|
5118
|
+
weight: p($i()).default("400"),
|
|
5119
5119
|
color: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
5120
5120
|
background: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
5121
5121
|
opacity: p(E([F((e) => {
|
|
@@ -5154,7 +5154,7 @@ const _P = A({
|
|
|
5154
5154
|
if (!(e === "" || e === null || e === void 0))
|
|
5155
5155
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
5156
5156
|
}, P().int().gte(1).lte(500)), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
5157
|
-
weight: p(
|
|
5157
|
+
weight: p($i()).default("400"),
|
|
5158
5158
|
color: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
5159
5159
|
opacity: p(E([F((e) => {
|
|
5160
5160
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -5335,7 +5335,7 @@ const _P = A({
|
|
|
5335
5335
|
if (!(e === "" || e === null || e === void 0))
|
|
5336
5336
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
5337
5337
|
}, P().int().gte(1).lte(500)), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
5338
|
-
weight: p(
|
|
5338
|
+
weight: p($i()).default("400"),
|
|
5339
5339
|
color: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
5340
5340
|
opacity: p(E([F((e) => {
|
|
5341
5341
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -5919,8 +5919,8 @@ const HP = A({
|
|
|
5919
5919
|
"zoom"
|
|
5920
5920
|
]))
|
|
5921
5921
|
}).strict(), Bn = A({
|
|
5922
|
-
from: p(
|
|
5923
|
-
to: p(
|
|
5922
|
+
from: p($i()),
|
|
5923
|
+
to: p($i()),
|
|
5924
5924
|
start: p(E([F((e) => {
|
|
5925
5925
|
if (!(e === "" || e === null || e === void 0))
|
|
5926
5926
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
@@ -7144,7 +7144,7 @@ var w9 = di({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7144
7144
|
for (var Ci = 0; Ci < 3 * x; Ci++)
|
|
7145
7145
|
ve[Ci] = new s(0, 0), Ae[Ci] = new s(0, 0);
|
|
7146
7146
|
for (; !kt; ) {
|
|
7147
|
-
var Ne = 0, hr, ii = [1 << 28, 1 << 28, 1 << 28], fe = [0], oe = [1, 1, 1],
|
|
7147
|
+
var Ne = 0, hr, ii = [1 << 28, 1 << 28, 1 << 28], fe = [0], oe = [1, 1, 1], Mi = [0, 1, 0, 1, 0, 1], Ui = [0], vi, Ze, He, ia, Vn = null, Ln = null, ys, Sr = null, Zi, pr = 0, zi = null, $n = 0, ra = 0, O = null, xt = 0, ue = 0, Te = 0, ye, oi;
|
|
7148
7148
|
for (ot = 0; ot < 3; ++ot)
|
|
7149
7149
|
At[ot].codes = null, At[ot].htrees = null;
|
|
7150
7150
|
Ct.readMoreInput();
|
|
@@ -7164,46 +7164,46 @@ var w9 = di({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7164
7164
|
continue;
|
|
7165
7165
|
}
|
|
7166
7166
|
for (ot = 0; ot < 3; ++ot)
|
|
7167
|
-
oe[ot] = $(Ct) + 1, oe[ot] >= 2 && (dt(oe[ot] + 2, ve, ot * x, Ct), dt(m, Ae, ot * x, Ct), ii[ot] = ht(Ae, ot * x, Ct),
|
|
7167
|
+
oe[ot] = $(Ct) + 1, oe[ot] >= 2 && (dt(oe[ot] + 2, ve, ot * x, Ct), dt(m, Ae, ot * x, Ct), ii[ot] = ht(Ae, ot * x, Ct), Ui[ot] = 1);
|
|
7168
7168
|
for (Ct.readMoreInput(), vi = Ct.readBits(2), Ze = k + (Ct.readBits(4) << vi), He = (1 << vi) - 1, ia = Ze + (48 << vi), Ln = new Uint8Array(oe[0]), ot = 0; ot < oe[0]; ++ot)
|
|
7169
7169
|
Ct.readMoreInput(), Ln[ot] = Ct.readBits(2) << 1;
|
|
7170
7170
|
var na = Kt(oe[0] << v, Ct);
|
|
7171
7171
|
ys = na.num_htrees, Vn = na.context_map;
|
|
7172
7172
|
var rl = Kt(oe[2] << g, Ct);
|
|
7173
|
-
for (
|
|
7173
|
+
for (Zi = rl.num_htrees, Sr = rl.context_map, At[0] = new Ft(d, ys), At[1] = new Ft(h, oe[1]), At[2] = new Ft(ia, Zi), ot = 0; ot < 3; ++ot)
|
|
7174
7174
|
At[ot].decode(Ct);
|
|
7175
|
-
for (
|
|
7176
|
-
var bs, sa, qa, vs, aa,
|
|
7177
|
-
for (Ct.readMoreInput(), ii[1] === 0 && (ie(oe[1], ve, 1, fe,
|
|
7178
|
-
Ct.readMoreInput(), ii[0] === 0 && (ie(oe[0], ve, 0, fe,
|
|
7175
|
+
for (zi = 0, O = 0, ye = Ln[fe[0]], ue = o.lookupOffsets[ye], Te = o.lookupOffsets[ye + 1], oi = At[1].htrees[0]; Ne > 0; ) {
|
|
7176
|
+
var bs, sa, qa, vs, aa, Oi, Ri, Ji, Un, on, Bt;
|
|
7177
|
+
for (Ct.readMoreInput(), ii[1] === 0 && (ie(oe[1], ve, 1, fe, Mi, Ui, Ct), ii[1] = ht(Ae, x, Ct), oi = At[1].htrees[fe[1]]), --ii[1], bs = q(At[1].codes, oi, Ct), sa = bs >> 6, sa >= 2 ? (sa -= 2, Ri = -1) : Ri = 0, qa = l.kInsertRangeLut[sa] + (bs >> 3 & 7), vs = l.kCopyRangeLut[sa] + (bs & 7), aa = l.kInsertLengthPrefixCode[qa].offset + Ct.readBits(l.kInsertLengthPrefixCode[qa].nbits), Oi = l.kCopyLengthPrefixCode[vs].offset + Ct.readBits(l.kCopyLengthPrefixCode[vs].nbits), Nt = ct[G - 1 & it], Ot = ct[G - 2 & it], on = 0; on < aa; ++on)
|
|
7178
|
+
Ct.readMoreInput(), ii[0] === 0 && (ie(oe[0], ve, 0, fe, Mi, Ui, Ct), ii[0] = ht(Ae, 0, Ct), pr = fe[0] << v, zi = pr, ye = Ln[fe[0]], ue = o.lookupOffsets[ye], Te = o.lookupOffsets[ye + 1]), Un = o.lookup[ue + Nt] | o.lookup[Te + Ot], $n = Vn[zi + Un], --ii[0], Ot = Nt, Nt = q(At[0].codes, At[0].htrees[$n], Ct), ct[G & it] = Nt, (G & it) === it && H.write(ct, Vt), ++G;
|
|
7179
7179
|
if (Ne -= aa, Ne <= 0) break;
|
|
7180
|
-
if (
|
|
7180
|
+
if (Ri < 0) {
|
|
7181
7181
|
var Un;
|
|
7182
|
-
if (Ct.readMoreInput(), ii[2] === 0 && (ie(oe[2], ve, 2, fe,
|
|
7182
|
+
if (Ct.readMoreInput(), ii[2] === 0 && (ie(oe[2], ve, 2, fe, Mi, Ui, Ct), ii[2] = ht(Ae, 2 * x, Ct), ra = fe[2] << g, O = ra), --ii[2], Un = (Oi > 4 ? 3 : Oi - 2) & 255, xt = Sr[O + Un], Ri = q(At[2].codes, At[2].htrees[xt], Ct), Ri >= Ze) {
|
|
7183
7183
|
var Zn, dc, Er;
|
|
7184
|
-
|
|
7184
|
+
Ri -= Ze, dc = Ri & He, Ri >>= vi, Zn = (Ri >> 1) + 1, Er = (2 + (Ri & 1) << Zn) - 4, Ri = Ze + (Er + Ct.readBits(Zn) << vi) + dc;
|
|
7185
7185
|
}
|
|
7186
7186
|
}
|
|
7187
|
-
if (
|
|
7187
|
+
if (Ji = W(Ri, lt, ae), Ji < 0)
|
|
7188
7188
|
throw new Error("[BrotliDecompress] invalid distance");
|
|
7189
|
-
if (G < _t && Pt !== _t ? Pt = G : Pt = _t, Bt = G & it,
|
|
7190
|
-
if (
|
|
7191
|
-
var Er = n.offsetsByLength[
|
|
7192
|
-
if (Er += Ya *
|
|
7193
|
-
var Xa = u.transformDictionaryWord(ct, Bt, Er,
|
|
7189
|
+
if (G < _t && Pt !== _t ? Pt = G : Pt = _t, Bt = G & it, Ji > Pt)
|
|
7190
|
+
if (Oi >= n.minDictionaryWordLength && Oi <= n.maxDictionaryWordLength) {
|
|
7191
|
+
var Er = n.offsetsByLength[Oi], oa = Ji - Pt - 1, nl = n.sizeBitsByLength[Oi], sl = (1 << nl) - 1, Ya = oa & sl, la = oa >> nl;
|
|
7192
|
+
if (Er += Ya * Oi, la < u.kNumTransforms) {
|
|
7193
|
+
var Xa = u.transformDictionaryWord(ct, Bt, Er, Oi, la);
|
|
7194
7194
|
if (Bt += Xa, G += Xa, Ne -= Xa, Bt >= St) {
|
|
7195
7195
|
H.write(ct, Vt);
|
|
7196
7196
|
for (var jn = 0; jn < Bt - St; jn++) ct[jn] = ct[St + jn];
|
|
7197
7197
|
}
|
|
7198
7198
|
} else
|
|
7199
|
-
throw new Error("Invalid backward reference. pos: " + G + " distance: " +
|
|
7199
|
+
throw new Error("Invalid backward reference. pos: " + G + " distance: " + Ji + " len: " + Oi + " bytes left: " + Ne);
|
|
7200
7200
|
} else
|
|
7201
|
-
throw new Error("Invalid backward reference. pos: " + G + " distance: " +
|
|
7201
|
+
throw new Error("Invalid backward reference. pos: " + G + " distance: " + Ji + " len: " + Oi + " bytes left: " + Ne);
|
|
7202
7202
|
else {
|
|
7203
|
-
if (
|
|
7204
|
-
throw new Error("Invalid backward reference. pos: " + G + " distance: " +
|
|
7205
|
-
for (on = 0; on <
|
|
7206
|
-
ct[G & it] = ct[G -
|
|
7203
|
+
if (Ri > 0 && (lt[ae & 3] = Ji, ++ae), Oi > Ne)
|
|
7204
|
+
throw new Error("Invalid backward reference. pos: " + G + " distance: " + Ji + " len: " + Oi + " bytes left: " + Ne);
|
|
7205
|
+
for (on = 0; on < Oi; ++on)
|
|
7206
|
+
ct[G & it] = ct[G - Ji & it], (G & it) === it && H.write(ct, Vt), ++G, --Ne;
|
|
7207
7207
|
}
|
|
7208
7208
|
Nt = ct[G - 1 & it], Ot = ct[G - 2 & it];
|
|
7209
7209
|
}
|
|
@@ -7216,9 +7216,9 @@ var w9 = di({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7216
7216
|
} }), D9 = di({ "node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/decompress.js"(e, t) {
|
|
7217
7217
|
t.exports = j2().BrotliDecompressBuffer;
|
|
7218
7218
|
} }), J = {};
|
|
7219
|
-
hs(J, { $brand: () => G2, $input: () => AC, $output: () => EC, NEVER: () => H2, TimePrecision: () => FC, ZodAny: () => Ng, ZodArray: () => Rg, ZodBase64: () => Vd, ZodBase64URL: () => Ld, ZodBigInt: () => Gu, ZodBigIntFormat: () => Zd, ZodBoolean: () => Hu, ZodCIDRv4: () => Od, ZodCIDRv6: () => Rd, ZodCUID: () => Dd, ZodCUID2: () => Pd, ZodCatch: () => ay, ZodCodec: () => Ju, ZodCustom: () => Qu, ZodCustomStringFormat: () => Jo, ZodDate: () => Wd, ZodDefault: () => ty, ZodDiscriminatedUnion: () => Lg, ZodE164: () => $d, ZodEmail: () => Ad, ZodEmoji: () => Td, ZodEnum: () => Vo, ZodError: () => eM, ZodExactOptional: () => Kg, ZodFile: () => Yg, ZodFirstPartyTypeKind: () => hp, ZodFunction: () => gy, ZodGUID: () => lu, ZodIPv4: () => Md, ZodIPv6: () => zd, ZodISODate: () => _g, ZodISODateTime: () => kg, ZodISODuration: () => Eg, ZodISOTime: () => Sg, ZodIntersection: () => $g, ZodIssueCode: () => iM, ZodJWT: () => Ud, ZodKSUID: () => Nd, ZodLazy: () => hy, ZodLiteral: () => qg, ZodMAC: () => Ag, ZodMap: () => Hg, ZodNaN: () => ly, ZodNanoID: () => Id, ZodNever: () => zg, ZodNonOptional: () => Xd, ZodNull: () => Fg, ZodNullable: () => Qg, ZodNumber: () => Wu, ZodNumberFormat: () => Ua, ZodObject: () => Yu, ZodOptional: () => Yd, ZodPipe: () => Ku, ZodPrefault: () => iy, ZodPreprocess: () => uy, ZodPromise: () => my, ZodReadonly: () => cy, ZodRealError: () => _r, ZodRecord: () => Ro, ZodSet: () => Gg, ZodString: () => Zu, ZodStringFormat: () => Le, ZodSuccess: () => sy, ZodSymbol: () => Dg, ZodTemplateLiteral: () => dy, ZodTransform: () => Xg, ZodTuple: () => Zg, ZodType: () => se, ZodULID: () => Fd, ZodURL: () => ju, ZodUUID: () => En, ZodUndefined: () => Pg, ZodUnion: () => Xu, ZodUnknown: () => Mg, ZodVoid: () => Og, ZodXID: () => Bd, ZodXor: () => Vg, _ZodString: () => Ed, _default: () => ey, _function: () => Cf, any: () => i6, array: () => qu, base64: () => V_, base64url: () => L_, bigint: () => K_, boolean: () => Ig, catch: () => oy, check: () => S6, cidrv4: () => O_, cidrv6: () => R_, clone: () => jr, codec: () => x6, coerce: () => N6, config: () =>
|
|
7219
|
+
hs(J, { $brand: () => G2, $input: () => AC, $output: () => EC, NEVER: () => H2, TimePrecision: () => FC, ZodAny: () => Ng, ZodArray: () => Rg, ZodBase64: () => Vd, ZodBase64URL: () => Ld, ZodBigInt: () => Gu, ZodBigIntFormat: () => Zd, ZodBoolean: () => Hu, ZodCIDRv4: () => Od, ZodCIDRv6: () => Rd, ZodCUID: () => Dd, ZodCUID2: () => Pd, ZodCatch: () => ay, ZodCodec: () => Ju, ZodCustom: () => Qu, ZodCustomStringFormat: () => Jo, ZodDate: () => Wd, ZodDefault: () => ty, ZodDiscriminatedUnion: () => Lg, ZodE164: () => $d, ZodEmail: () => Ad, ZodEmoji: () => Td, ZodEnum: () => Vo, ZodError: () => eM, ZodExactOptional: () => Kg, ZodFile: () => Yg, ZodFirstPartyTypeKind: () => hp, ZodFunction: () => gy, ZodGUID: () => lu, ZodIPv4: () => Md, ZodIPv6: () => zd, ZodISODate: () => _g, ZodISODateTime: () => kg, ZodISODuration: () => Eg, ZodISOTime: () => Sg, ZodIntersection: () => $g, ZodIssueCode: () => iM, ZodJWT: () => Ud, ZodKSUID: () => Nd, ZodLazy: () => hy, ZodLiteral: () => qg, ZodMAC: () => Ag, ZodMap: () => Hg, ZodNaN: () => ly, ZodNanoID: () => Id, ZodNever: () => zg, ZodNonOptional: () => Xd, ZodNull: () => Fg, ZodNullable: () => Qg, ZodNumber: () => Wu, ZodNumberFormat: () => Ua, ZodObject: () => Yu, ZodOptional: () => Yd, ZodPipe: () => Ku, ZodPrefault: () => iy, ZodPreprocess: () => uy, ZodPromise: () => my, ZodReadonly: () => cy, ZodRealError: () => _r, ZodRecord: () => Ro, ZodSet: () => Gg, ZodString: () => Zu, ZodStringFormat: () => Le, ZodSuccess: () => sy, ZodSymbol: () => Dg, ZodTemplateLiteral: () => dy, ZodTransform: () => Xg, ZodTuple: () => Zg, ZodType: () => se, ZodULID: () => Fd, ZodURL: () => ju, ZodUUID: () => En, ZodUndefined: () => Pg, ZodUnion: () => Xu, ZodUnknown: () => Mg, ZodVoid: () => Og, ZodXID: () => Bd, ZodXor: () => Vg, _ZodString: () => Ed, _default: () => ey, _function: () => Cf, any: () => i6, array: () => qu, base64: () => V_, base64url: () => L_, bigint: () => K_, boolean: () => Ig, catch: () => oy, check: () => S6, cidrv4: () => O_, cidrv6: () => R_, clone: () => jr, codec: () => x6, coerce: () => N6, config: () => Pi, core: () => W2, cuid: () => I_, cuid2: () => D_, custom: () => E6, date: () => n6, decode: () => d_, decodeAsync: () => p_, describe: () => A6, discriminatedUnion: () => c6, e164: () => $_, email: () => v_, emoji: () => A_, encode: () => f_, encodeAsync: () => h_, endsWith: () => vd, enum: () => Gd, exactOptional: () => Jg, file: () => y6, flattenError: () => Sm, float32: () => G_, float64: () => q_, formatError: () => Em, fromJSONSchema: () => lM, function: () => Cf, getErrorMap: () => nM, globalRegistry: () => Rr, gt: () => Zs, gte: () => lr, guid: () => w_, hash: () => H_, hex: () => W_, hostname: () => j_, httpUrl: () => E_, includes: () => yd, instanceof: () => I6, int: () => wf, int32: () => Y_, int64: () => J_, intersection: () => Ug, invertCodec: () => C6, ipv4: () => N_, ipv6: () => z_, iso: () => Cg, json: () => P6, jwt: () => U_, keyof: () => s6, ksuid: () => B_, lazy: () => py, length: () => Lu, literal: () => g6, locales: () => Gm, looseObject: () => l6, looseRecord: () => d6, lowercase: () => md, lt: () => Us, lte: () => Vr, mac: () => M_, map: () => h6, maxLength: () => Vu, maxSize: () => Ko, meta: () => T6, mime: () => wd, minLength: () => Ra, minSize: () => js, multipleOf: () => No, nan: () => w6, nanoid: () => T_, nativeEnum: () => m6, negative: () => gg, never: () => jd, nonnegative: () => bg, nonoptional: () => ny, nonpositive: () => yg, normalize: () => xd, null: () => Bg, nullable: () => cu, nullish: () => b6, number: () => Tg, object: () => a6, optional: () => uu, overwrite: () => ms, parse: () => o_, parseAsync: () => l_, partialRecord: () => f6, pipe: () => xf, positive: () => mg, prefault: () => ry, preprocess: () => F6, prettifyError: () => lx, promise: () => _6, property: () => vg, readonly: () => fy, record: () => Wg, refine: () => yy, regex: () => pd, regexes: () => $s, registry: () => qm, safeDecode: () => g_, safeDecodeAsync: () => b_, safeEncode: () => m_, safeEncodeAsync: () => y_, safeParse: () => u_, safeParseAsync: () => c_, set: () => p6, setErrorMap: () => rM, size: () => Ru, slugify: () => Sd, startsWith: () => bd, strictObject: () => o6, string: () => ou, stringFormat: () => Z_, stringbool: () => D6, success: () => v6, superRefine: () => by, symbol: () => t6, templateLiteral: () => k6, toJSONSchema: () => Qk, toLowerCase: () => kd, toUpperCase: () => _d, transform: () => qd, treeifyError: () => ax, trim: () => Cd, tuple: () => jg, uint32: () => X_, uint64: () => Q_, ulid: () => P_, undefined: () => e6, union: () => Hd, unknown: () => Va, uppercase: () => gd, url: () => S_, util: () => he, uuid: () => x_, uuidv4: () => C_, uuidv6: () => k_, uuidv7: () => __, void: () => r6, xid: () => F_, xor: () => u6 });
|
|
7220
7220
|
var W2 = {};
|
|
7221
|
-
hs(W2, { $ZodAny: () => U3, $ZodArray: () => G3, $ZodAsyncError: () => Ta, $ZodBase64: () => D3, $ZodBase64URL: () => F3, $ZodBigInt: () => Um, $ZodBigIntFormat: () => R3, $ZodBoolean: () => $m, $ZodCIDRv4: () => T3, $ZodCIDRv6: () => I3, $ZodCUID: () => g3, $ZodCUID2: () => y3, $ZodCatch: () => pC, $ZodCheck: () => Qe, $ZodCheckBigIntFormat: () => Hx, $ZodCheckEndsWith: () => n3, $ZodCheckGreaterThan: () => Rm, $ZodCheckIncludes: () => i3, $ZodCheckLengthEquals: () => Jx, $ZodCheckLessThan: () => Om, $ZodCheckLowerCase: () => t3, $ZodCheckMaxLength: () => Xx, $ZodCheckMaxSize: () => Gx, $ZodCheckMimeType: () => a3, $ZodCheckMinLength: () => Kx, $ZodCheckMinSize: () => qx, $ZodCheckMultipleOf: () => jx, $ZodCheckNumberFormat: () => Wx, $ZodCheckOverwrite: () => o3, $ZodCheckProperty: () => s3, $ZodCheckRegex: () => Qx, $ZodCheckSizeEquals: () => Yx, $ZodCheckStartsWith: () => r3, $ZodCheckStringFormat: () => zu, $ZodCheckUpperCase: () => e3, $ZodCodec: () => Hm, $ZodCustom: () => CC, $ZodCustomStringFormat: () => z3, $ZodDate: () => H3, $ZodDefault: () => cC, $ZodDiscriminatedUnion: () => Q3, $ZodE164: () => B3, $ZodEmail: () => d3, $ZodEmoji: () => p3, $ZodEncodeError: () => ld, $ZodEnum: () => nC, $ZodError: () => _m, $ZodExactOptional: () => lC, $ZodFile: () => aC, $ZodFunction: () => vC, $ZodGUID: () => c3, $ZodIPv4: () => S3, $ZodIPv6: () => E3, $ZodISODate: () => C3, $ZodISODateTime: () => x3, $ZodISODuration: () => _3, $ZodISOTime: () => k3, $ZodIntersection: () => tC, $ZodJWT: () => M3, $ZodKSUID: () => w3, $ZodLazy: () => xC, $ZodLiteral: () => sC, $ZodMAC: () => A3, $ZodMap: () => iC, $ZodNaN: () => mC, $ZodNanoID: () => m3, $ZodNever: () => j3, $ZodNonOptional: () => dC, $ZodNull: () => $3, $ZodNullable: () => uC, $ZodNumber: () => Lm, $ZodNumberFormat: () => O3, $ZodObject: () => X3, $ZodObjectJIT: () => K3, $ZodOptional: () => jm, $ZodPipe: () => Wm, $ZodPrefault: () => fC, $ZodPreprocess: () => gC, $ZodPromise: () => wC, $ZodReadonly: () => yC, $ZodRealError: () => kr, $ZodRecord: () => eC, $ZodRegistry: () => TC, $ZodSet: () => rC, $ZodString: () => Ou, $ZodStringFormat: () => Ve, $ZodSuccess: () => hC, $ZodSymbol: () => V3, $ZodTemplateLiteral: () => bC, $ZodTransform: () => oC, $ZodTuple: () => Zm, $ZodType: () => ee, $ZodULID: () => b3, $ZodURL: () => h3, $ZodUUID: () => f3, $ZodUndefined: () => L3, $ZodUnion: () => dd, $ZodUnknown: () => Z3, $ZodVoid: () => W3, $ZodXID: () => v3, $ZodXor: () => J3, $brand: () => G2, $constructor: () => U, $input: () => AC, $output: () => EC, Doc: () => l3, JSONSchema: () => tM, JSONSchemaGenerator: () => QN, NEVER: () => H2, TimePrecision: () => FC, _any: () => QC, _array: () => ak, _base64: () => fg, _base64url: () => dg, _bigint: () => HC, _boolean: () => jC, _catch: () => HN, _check: () => fk, _cidrv4: () => ug, _cidrv6: () => cg, _coercedBigint: () => GC, _coercedBoolean: () => WC, _coercedDate: () => nk, _coercedNumber: () => RC, _coercedString: () => DC, _cuid: () => ig, _cuid2: () => rg, _custom: () => lk, _date: () => rk, _decode: () => Tm, _decodeAsync: () => Dm, _default: () => ZN, _discriminatedUnion: () => PN, _e164: () => hg, _email: () => Ym, _emoji: () => tg, _encode: () => Am, _encodeAsync: () => Im, _endsWith: () => vd, _enum: () => ON, _file: () => ok, _float32: () => LC, _float64: () => $C, _gt: () => Zs, _gte: () => lr, _guid: () => vf, _includes: () => yd, _int: () => VC, _int32: () => UC, _int64: () => qC, _intersection: () => FN, _ipv4: () => og, _ipv6: () => lg, _isoDate: () => NC, _isoDateTime: () => BC, _isoDuration: () => zC, _isoTime: () => MC, _jwt: () => pg, _ksuid: () => ag, _lazy: () => XN, _length: () => Lu, _literal: () => VN, _lowercase: () => md, _lt: () => Us, _lte: () => Vr, _mac: () => PC, _map: () => MN, _max: () => Vr, _maxLength: () => Vu, _maxSize: () => Ko, _mime: () => wd, _min: () => lr, _minLength: () => Ra, _minSize: () => js, _multipleOf: () => No, _nan: () => sk, _nanoid: () => eg, _nativeEnum: () => RN, _negative: () => gg, _never: () => ek, _nonnegative: () => bg, _nonoptional: () => jN, _nonpositive: () => yg, _normalize: () => xd, _null: () => JC, _nullable: () => UN, _number: () => OC, _optional: () => $N, _overwrite: () => ms, _parse: () => Du, _parseAsync: () => Pu, _pipe: () => GN, _positive: () => mg, _promise: () => KN, _property: () => vg, _readonly: () => qN, _record: () => NN, _refine: () => uk, _regex: () => pd, _safeDecode: () => Fm, _safeDecodeAsync: () => Nm, _safeEncode: () => Pm, _safeEncodeAsync: () => Bm, _safeParse: () => Fu, _safeParseAsync: () => Bu, _set: () => zN, _size: () => Ru, _slugify: () => Sd, _startsWith: () => bd, _string: () => IC, _stringFormat: () => $u, _stringbool: () => pk, _success: () => WN, _superRefine: () => ck, _symbol: () => XC, _templateLiteral: () => YN, _toLowerCase: () => kd, _toUpperCase: () => _d, _transform: () => LN, _trim: () => Cd, _tuple: () => BN, _uint32: () => ZC, _uint64: () => YC, _ulid: () => ng, _undefined: () => KC, _union: () => IN, _unknown: () => tk, _uppercase: () => gd, _url: () => hd, _uuid: () => Xm, _uuidv4: () => Km, _uuidv6: () => Jm, _uuidv7: () => Qm, _void: () => ik, _xid: () => sg, _xor: () => DN, clone: () => jr, config: () =>
|
|
7221
|
+
hs(W2, { $ZodAny: () => U3, $ZodArray: () => G3, $ZodAsyncError: () => Ta, $ZodBase64: () => D3, $ZodBase64URL: () => F3, $ZodBigInt: () => Um, $ZodBigIntFormat: () => R3, $ZodBoolean: () => $m, $ZodCIDRv4: () => T3, $ZodCIDRv6: () => I3, $ZodCUID: () => g3, $ZodCUID2: () => y3, $ZodCatch: () => pC, $ZodCheck: () => Qe, $ZodCheckBigIntFormat: () => Hx, $ZodCheckEndsWith: () => n3, $ZodCheckGreaterThan: () => Rm, $ZodCheckIncludes: () => i3, $ZodCheckLengthEquals: () => Jx, $ZodCheckLessThan: () => Om, $ZodCheckLowerCase: () => t3, $ZodCheckMaxLength: () => Xx, $ZodCheckMaxSize: () => Gx, $ZodCheckMimeType: () => a3, $ZodCheckMinLength: () => Kx, $ZodCheckMinSize: () => qx, $ZodCheckMultipleOf: () => jx, $ZodCheckNumberFormat: () => Wx, $ZodCheckOverwrite: () => o3, $ZodCheckProperty: () => s3, $ZodCheckRegex: () => Qx, $ZodCheckSizeEquals: () => Yx, $ZodCheckStartsWith: () => r3, $ZodCheckStringFormat: () => zu, $ZodCheckUpperCase: () => e3, $ZodCodec: () => Hm, $ZodCustom: () => CC, $ZodCustomStringFormat: () => z3, $ZodDate: () => H3, $ZodDefault: () => cC, $ZodDiscriminatedUnion: () => Q3, $ZodE164: () => B3, $ZodEmail: () => d3, $ZodEmoji: () => p3, $ZodEncodeError: () => ld, $ZodEnum: () => nC, $ZodError: () => _m, $ZodExactOptional: () => lC, $ZodFile: () => aC, $ZodFunction: () => vC, $ZodGUID: () => c3, $ZodIPv4: () => S3, $ZodIPv6: () => E3, $ZodISODate: () => C3, $ZodISODateTime: () => x3, $ZodISODuration: () => _3, $ZodISOTime: () => k3, $ZodIntersection: () => tC, $ZodJWT: () => M3, $ZodKSUID: () => w3, $ZodLazy: () => xC, $ZodLiteral: () => sC, $ZodMAC: () => A3, $ZodMap: () => iC, $ZodNaN: () => mC, $ZodNanoID: () => m3, $ZodNever: () => j3, $ZodNonOptional: () => dC, $ZodNull: () => $3, $ZodNullable: () => uC, $ZodNumber: () => Lm, $ZodNumberFormat: () => O3, $ZodObject: () => X3, $ZodObjectJIT: () => K3, $ZodOptional: () => jm, $ZodPipe: () => Wm, $ZodPrefault: () => fC, $ZodPreprocess: () => gC, $ZodPromise: () => wC, $ZodReadonly: () => yC, $ZodRealError: () => kr, $ZodRecord: () => eC, $ZodRegistry: () => TC, $ZodSet: () => rC, $ZodString: () => Ou, $ZodStringFormat: () => Ve, $ZodSuccess: () => hC, $ZodSymbol: () => V3, $ZodTemplateLiteral: () => bC, $ZodTransform: () => oC, $ZodTuple: () => Zm, $ZodType: () => ee, $ZodULID: () => b3, $ZodURL: () => h3, $ZodUUID: () => f3, $ZodUndefined: () => L3, $ZodUnion: () => dd, $ZodUnknown: () => Z3, $ZodVoid: () => W3, $ZodXID: () => v3, $ZodXor: () => J3, $brand: () => G2, $constructor: () => U, $input: () => AC, $output: () => EC, Doc: () => l3, JSONSchema: () => tM, JSONSchemaGenerator: () => QN, NEVER: () => H2, TimePrecision: () => FC, _any: () => QC, _array: () => ak, _base64: () => fg, _base64url: () => dg, _bigint: () => HC, _boolean: () => jC, _catch: () => HN, _check: () => fk, _cidrv4: () => ug, _cidrv6: () => cg, _coercedBigint: () => GC, _coercedBoolean: () => WC, _coercedDate: () => nk, _coercedNumber: () => RC, _coercedString: () => DC, _cuid: () => ig, _cuid2: () => rg, _custom: () => lk, _date: () => rk, _decode: () => Tm, _decodeAsync: () => Dm, _default: () => ZN, _discriminatedUnion: () => PN, _e164: () => hg, _email: () => Ym, _emoji: () => tg, _encode: () => Am, _encodeAsync: () => Im, _endsWith: () => vd, _enum: () => ON, _file: () => ok, _float32: () => LC, _float64: () => $C, _gt: () => Zs, _gte: () => lr, _guid: () => vf, _includes: () => yd, _int: () => VC, _int32: () => UC, _int64: () => qC, _intersection: () => FN, _ipv4: () => og, _ipv6: () => lg, _isoDate: () => NC, _isoDateTime: () => BC, _isoDuration: () => zC, _isoTime: () => MC, _jwt: () => pg, _ksuid: () => ag, _lazy: () => XN, _length: () => Lu, _literal: () => VN, _lowercase: () => md, _lt: () => Us, _lte: () => Vr, _mac: () => PC, _map: () => MN, _max: () => Vr, _maxLength: () => Vu, _maxSize: () => Ko, _mime: () => wd, _min: () => lr, _minLength: () => Ra, _minSize: () => js, _multipleOf: () => No, _nan: () => sk, _nanoid: () => eg, _nativeEnum: () => RN, _negative: () => gg, _never: () => ek, _nonnegative: () => bg, _nonoptional: () => jN, _nonpositive: () => yg, _normalize: () => xd, _null: () => JC, _nullable: () => UN, _number: () => OC, _optional: () => $N, _overwrite: () => ms, _parse: () => Du, _parseAsync: () => Pu, _pipe: () => GN, _positive: () => mg, _promise: () => KN, _property: () => vg, _readonly: () => qN, _record: () => NN, _refine: () => uk, _regex: () => pd, _safeDecode: () => Fm, _safeDecodeAsync: () => Nm, _safeEncode: () => Pm, _safeEncodeAsync: () => Bm, _safeParse: () => Fu, _safeParseAsync: () => Bu, _set: () => zN, _size: () => Ru, _slugify: () => Sd, _startsWith: () => bd, _string: () => IC, _stringFormat: () => $u, _stringbool: () => pk, _success: () => WN, _superRefine: () => ck, _symbol: () => XC, _templateLiteral: () => YN, _toLowerCase: () => kd, _toUpperCase: () => _d, _transform: () => LN, _trim: () => Cd, _tuple: () => BN, _uint32: () => ZC, _uint64: () => YC, _ulid: () => ng, _undefined: () => KC, _union: () => IN, _unknown: () => tk, _uppercase: () => gd, _url: () => hd, _uuid: () => Xm, _uuidv4: () => Km, _uuidv6: () => Jm, _uuidv7: () => Qm, _void: () => ik, _xid: () => sg, _xor: () => DN, clone: () => jr, config: () => Pi, createStandardJSONSchemaMethod: () => au, createToJSONSchemaMethod: () => mk, decode: () => nF, decodeAsync: () => aF, describe: () => dk, encode: () => rF, encodeAsync: () => sF, extractDefs: () => zo, finalize: () => Oo, flattenError: () => Sm, formatError: () => Em, globalConfig: () => su, globalRegistry: () => Rr, initializeContext: () => Mo, isValidBase64: () => Vm, isValidBase64URL: () => P3, isValidJWT: () => N3, locales: () => Gm, meta: () => hk, parse: () => up, parseAsync: () => cp, prettifyError: () => lx, process: () => Oe, regexes: () => $s, registry: () => qm, safeDecode: () => lF, safeDecodeAsync: () => cF, safeEncode: () => oF, safeEncodeAsync: () => uF, safeParse: () => ux, safeParseAsync: () => cx, toDotPath: () => ox, toJSONSchema: () => Qk, treeifyError: () => ax, util: () => he, version: () => u3 });
|
|
7222
7222
|
var fb, H2 = Object.freeze({ status: "aborted" });
|
|
7223
7223
|
function U(e, t, i) {
|
|
7224
7224
|
function r(o, l) {
|
|
@@ -7256,7 +7256,7 @@ var G2 = Symbol("zod_brand"), Ta = class extends Error {
|
|
|
7256
7256
|
};
|
|
7257
7257
|
(fb = globalThis).__zod_globalConfig ?? (fb.__zod_globalConfig = {});
|
|
7258
7258
|
var su = globalThis.__zod_globalConfig;
|
|
7259
|
-
function
|
|
7259
|
+
function Pi(e) {
|
|
7260
7260
|
return e && Object.assign(su, e), su;
|
|
7261
7261
|
}
|
|
7262
7262
|
var he = {};
|
|
@@ -7719,7 +7719,7 @@ var Du = (e) => (t, i, r, n) => {
|
|
|
7719
7719
|
if (a instanceof Promise)
|
|
7720
7720
|
throw new Ta();
|
|
7721
7721
|
if (a.issues.length) {
|
|
7722
|
-
const o = new (n?.Err ?? e)(a.issues.map((l) => Cr(l, s,
|
|
7722
|
+
const o = new (n?.Err ?? e)(a.issues.map((l) => Cr(l, s, Pi())));
|
|
7723
7723
|
throw km(o, n?.callee), o;
|
|
7724
7724
|
}
|
|
7725
7725
|
return a.value;
|
|
@@ -7727,7 +7727,7 @@ var Du = (e) => (t, i, r, n) => {
|
|
|
7727
7727
|
const s = r ? { ...r, async: !0 } : { async: !0 };
|
|
7728
7728
|
let a = t._zod.run({ value: i, issues: [] }, s);
|
|
7729
7729
|
if (a instanceof Promise && (a = await a), a.issues.length) {
|
|
7730
|
-
const o = new (n?.Err ?? e)(a.issues.map((l) => Cr(l, s,
|
|
7730
|
+
const o = new (n?.Err ?? e)(a.issues.map((l) => Cr(l, s, Pi())));
|
|
7731
7731
|
throw km(o, n?.callee), o;
|
|
7732
7732
|
}
|
|
7733
7733
|
return a.value;
|
|
@@ -7735,11 +7735,11 @@ var Du = (e) => (t, i, r, n) => {
|
|
|
7735
7735
|
const n = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: i, issues: [] }, n);
|
|
7736
7736
|
if (s instanceof Promise)
|
|
7737
7737
|
throw new Ta();
|
|
7738
|
-
return s.issues.length ? { success: !1, error: new (e ?? _m)(s.issues.map((a) => Cr(a, n,
|
|
7738
|
+
return s.issues.length ? { success: !1, error: new (e ?? _m)(s.issues.map((a) => Cr(a, n, Pi()))) } : { success: !0, data: s.value };
|
|
7739
7739
|
}, ux = Fu(kr), Bu = (e) => async (t, i, r) => {
|
|
7740
7740
|
const n = r ? { ...r, async: !0 } : { async: !0 };
|
|
7741
7741
|
let s = t._zod.run({ value: i, issues: [] }, n);
|
|
7742
|
-
return s instanceof Promise && (s = await s), s.issues.length ? { success: !1, error: new e(s.issues.map((a) => Cr(a, n,
|
|
7742
|
+
return s instanceof Promise && (s = await s), s.issues.length ? { success: !1, error: new e(s.issues.map((a) => Cr(a, n, Pi()))) } : { success: !0, data: s.value };
|
|
7743
7743
|
}, cx = Bu(kr), Am = (e) => (t, i, r) => {
|
|
7744
7744
|
const n = r ? { ...r, direction: "backward" } : { direction: "backward" };
|
|
7745
7745
|
return Du(e)(t, i, n);
|
|
@@ -8463,7 +8463,7 @@ function mb(e, t, i, r) {
|
|
|
8463
8463
|
if (s.issues.length === 0)
|
|
8464
8464
|
return t.value = s.value, t;
|
|
8465
8465
|
const n = e.filter((s) => !wa(s));
|
|
8466
|
-
return n.length === 1 ? (t.value = n[0].value, n[0]) : (t.issues.push({ code: "invalid_union", input: t.value, inst: i, errors: e.map((s) => s.issues.map((a) => Cr(a, r,
|
|
8466
|
+
return n.length === 1 ? (t.value = n[0].value, n[0]) : (t.issues.push({ code: "invalid_union", input: t.value, inst: i, errors: e.map((s) => s.issues.map((a) => Cr(a, r, Pi()))) }), t);
|
|
8467
8467
|
}
|
|
8468
8468
|
var dd = U("$ZodUnion", (e, t) => {
|
|
8469
8469
|
ee.init(e, t), pe(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), pe(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), pe(e._zod, "values", () => {
|
|
@@ -8495,7 +8495,7 @@ var dd = U("$ZodUnion", (e, t) => {
|
|
|
8495
8495
|
});
|
|
8496
8496
|
function gb(e, t, i, r) {
|
|
8497
8497
|
const n = e.filter((s) => s.issues.length === 0);
|
|
8498
|
-
return n.length === 1 ? (t.value = n[0].value, t) : (n.length === 0 ? t.issues.push({ code: "invalid_union", input: t.value, inst: i, errors: e.map((s) => s.issues.map((a) => Cr(a, r,
|
|
8498
|
+
return n.length === 1 ? (t.value = n[0].value, t) : (n.length === 0 ? t.issues.push({ code: "invalid_union", input: t.value, inst: i, errors: e.map((s) => s.issues.map((a) => Cr(a, r, Pi()))) }) : t.issues.push({ code: "invalid_union", input: t.value, inst: i, errors: [], inclusive: !1 }), t);
|
|
8499
8499
|
}
|
|
8500
8500
|
var J3 = U("$ZodXor", (e, t) => {
|
|
8501
8501
|
dd.init(e, t), t.inclusive = !1;
|
|
@@ -8678,7 +8678,7 @@ var eC = U("$ZodRecord", (e, t) => {
|
|
|
8678
8678
|
if (c instanceof Promise)
|
|
8679
8679
|
throw new Error("Async schemas not supported in object keys currently");
|
|
8680
8680
|
if (c.issues.length) {
|
|
8681
|
-
i.issues.push({ code: "invalid_key", origin: "record", issues: c.issues.map((h) => Cr(h, r,
|
|
8681
|
+
i.issues.push({ code: "invalid_key", origin: "record", issues: c.issues.map((h) => Cr(h, r, Pi())), input: u, path: [u], inst: e });
|
|
8682
8682
|
continue;
|
|
8683
8683
|
}
|
|
8684
8684
|
const f = c.value, d = t.valueType._zod.run({ value: n[u], issues: [] }, r);
|
|
@@ -8704,7 +8704,7 @@ var eC = U("$ZodRecord", (e, t) => {
|
|
|
8704
8704
|
f.issues.length === 0 && (l = f);
|
|
8705
8705
|
}
|
|
8706
8706
|
if (l.issues.length) {
|
|
8707
|
-
t.mode === "loose" ? i.value[o] = n[o] : i.issues.push({ code: "invalid_key", origin: "record", issues: l.issues.map((f) => Cr(f, r,
|
|
8707
|
+
t.mode === "loose" ? i.value[o] = n[o] : i.issues.push({ code: "invalid_key", origin: "record", issues: l.issues.map((f) => Cr(f, r, Pi())), input: o, path: [o], inst: e });
|
|
8708
8708
|
continue;
|
|
8709
8709
|
}
|
|
8710
8710
|
const c = t.valueType._zod.run({ value: n[o], issues: [] }, r);
|
|
@@ -8732,7 +8732,7 @@ var eC = U("$ZodRecord", (e, t) => {
|
|
|
8732
8732
|
};
|
|
8733
8733
|
});
|
|
8734
8734
|
function xb(e, t, i, r, n, s, a) {
|
|
8735
|
-
e.issues.length && (gf.has(typeof r) ? i.issues.push(...Or(r, e.issues)) : i.issues.push({ code: "invalid_key", origin: "map", input: n, inst: s, issues: e.issues.map((o) => Cr(o, a,
|
|
8735
|
+
e.issues.length && (gf.has(typeof r) ? i.issues.push(...Or(r, e.issues)) : i.issues.push({ code: "invalid_key", origin: "map", input: n, inst: s, issues: e.issues.map((o) => Cr(o, a, Pi())) })), t.issues.length && (gf.has(typeof r) ? i.issues.push(...Or(r, t.issues)) : i.issues.push({ origin: "map", code: "invalid_element", input: n, inst: s, key: r, issues: t.issues.map((o) => Cr(o, a, Pi())) })), i.value.set(e.value, t.value);
|
|
8736
8736
|
}
|
|
8737
8737
|
var rC = U("$ZodSet", (e, t) => {
|
|
8738
8738
|
ee.init(e, t), e._zod.parse = (i, r) => {
|
|
@@ -8843,7 +8843,7 @@ var hC = U("$ZodSuccess", (e, t) => {
|
|
|
8843
8843
|
if (r.direction === "backward")
|
|
8844
8844
|
return t.innerType._zod.run(i, r);
|
|
8845
8845
|
const n = t.innerType._zod.run(i, r);
|
|
8846
|
-
return n instanceof Promise ? n.then((s) => (i.value = s.value, s.issues.length && (i.value = t.catchValue({ ...i, error: { issues: s.issues.map((a) => Cr(a, r,
|
|
8846
|
+
return n instanceof Promise ? n.then((s) => (i.value = s.value, s.issues.length && (i.value = t.catchValue({ ...i, error: { issues: s.issues.map((a) => Cr(a, r, Pi())) }, input: i.value }), i.issues = [], i.fallback = !0), i)) : (i.value = n.value, n.issues.length && (i.value = t.catchValue({ ...i, error: { issues: n.issues.map((s) => Cr(s, r, Pi())) }, input: i.value }), i.issues = [], i.fallback = !0), i);
|
|
8847
8847
|
};
|
|
8848
8848
|
}), mC = U("$ZodNaN", (e, t) => {
|
|
8849
8849
|
ee.init(e, t), e._zod.parse = (i, r) => ((typeof i.value != "number" || !Number.isNaN(i.value)) && i.issues.push({ input: i.value, inst: e, expected: "nan", code: "invalid_type" }), i);
|
|
@@ -11697,7 +11697,7 @@ function Oe(e, t, i = { path: [], schemaPath: [] }) {
|
|
|
11697
11697
|
f && (a.ref || (a.ref = f), Oe(f, t, c), t.seen.get(f).isParent = !0);
|
|
11698
11698
|
}
|
|
11699
11699
|
const l = t.metadataRegistry.get(e);
|
|
11700
|
-
return l && Object.assign(a.schema, l), t.io === "input" &&
|
|
11700
|
+
return l && Object.assign(a.schema, l), t.io === "input" && Gi(e) && (delete a.schema.examples, delete a.schema.default), t.io === "input" && "_prefault" in a.schema && ((r = a.schema).default ?? (r.default = a.schema._prefault)), delete a.schema._prefault, t.seen.get(e).schema;
|
|
11701
11701
|
}
|
|
11702
11702
|
function zo(e, t) {
|
|
11703
11703
|
const i = e.seen.get(t);
|
|
@@ -11821,37 +11821,37 @@ function Oo(e, t) {
|
|
|
11821
11821
|
throw new Error("Error converting schema to JSON.");
|
|
11822
11822
|
}
|
|
11823
11823
|
}
|
|
11824
|
-
function
|
|
11824
|
+
function Gi(e, t) {
|
|
11825
11825
|
const i = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
11826
11826
|
if (i.seen.has(e)) return !1;
|
|
11827
11827
|
i.seen.add(e);
|
|
11828
11828
|
const r = e._zod.def;
|
|
11829
11829
|
if (r.type === "transform") return !0;
|
|
11830
|
-
if (r.type === "array") return
|
|
11831
|
-
if (r.type === "set") return
|
|
11832
|
-
if (r.type === "lazy") return
|
|
11830
|
+
if (r.type === "array") return Gi(r.element, i);
|
|
11831
|
+
if (r.type === "set") return Gi(r.valueType, i);
|
|
11832
|
+
if (r.type === "lazy") return Gi(r.getter(), i);
|
|
11833
11833
|
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault")
|
|
11834
|
-
return
|
|
11834
|
+
return Gi(r.innerType, i);
|
|
11835
11835
|
if (r.type === "intersection")
|
|
11836
|
-
return
|
|
11836
|
+
return Gi(r.left, i) || Gi(r.right, i);
|
|
11837
11837
|
if (r.type === "record" || r.type === "map")
|
|
11838
|
-
return
|
|
11838
|
+
return Gi(r.keyType, i) || Gi(r.valueType, i);
|
|
11839
11839
|
if (r.type === "pipe")
|
|
11840
|
-
return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
11840
|
+
return e._zod.traits.has("$ZodCodec") ? !0 : Gi(r.in, i) || Gi(r.out, i);
|
|
11841
11841
|
if (r.type === "object") {
|
|
11842
11842
|
for (const n in r.shape)
|
|
11843
|
-
if (
|
|
11843
|
+
if (Gi(r.shape[n], i)) return !0;
|
|
11844
11844
|
return !1;
|
|
11845
11845
|
}
|
|
11846
11846
|
if (r.type === "union") {
|
|
11847
11847
|
for (const n of r.options)
|
|
11848
|
-
if (
|
|
11848
|
+
if (Gi(n, i)) return !0;
|
|
11849
11849
|
return !1;
|
|
11850
11850
|
}
|
|
11851
11851
|
if (r.type === "tuple") {
|
|
11852
11852
|
for (const n of r.items)
|
|
11853
|
-
if (
|
|
11854
|
-
return !!(r.rest &&
|
|
11853
|
+
if (Gi(n, i)) return !0;
|
|
11854
|
+
return !!(r.rest && Gi(r.rest, i));
|
|
11855
11855
|
}
|
|
11856
11856
|
return !1;
|
|
11857
11857
|
}
|
|
@@ -12855,10 +12855,10 @@ function F6(e, t) {
|
|
|
12855
12855
|
}
|
|
12856
12856
|
var iM = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" };
|
|
12857
12857
|
function rM(e) {
|
|
12858
|
-
|
|
12858
|
+
Pi({ customError: e });
|
|
12859
12859
|
}
|
|
12860
12860
|
function nM() {
|
|
12861
|
-
return
|
|
12861
|
+
return Pi().customError;
|
|
12862
12862
|
}
|
|
12863
12863
|
var hp;
|
|
12864
12864
|
hp || (hp = {});
|
|
@@ -12907,7 +12907,7 @@ function B6(e, t) {
|
|
|
12907
12907
|
return t.refs.get(n);
|
|
12908
12908
|
});
|
|
12909
12909
|
t.processing.add(n);
|
|
12910
|
-
const s = oM(n, t), a =
|
|
12910
|
+
const s = oM(n, t), a = Li(s, t);
|
|
12911
12911
|
return t.refs.set(n, a), t.processing.delete(n), a;
|
|
12912
12912
|
}
|
|
12913
12913
|
if (e.enum !== void 0) {
|
|
@@ -12963,11 +12963,11 @@ function B6(e, t) {
|
|
|
12963
12963
|
case "object": {
|
|
12964
12964
|
const n = {}, s = e.properties || {}, a = new Set(e.required || []);
|
|
12965
12965
|
for (const [l, u] of Object.entries(s)) {
|
|
12966
|
-
const c =
|
|
12966
|
+
const c = Li(u, t);
|
|
12967
12967
|
n[l] = a.has(l) ? c : c.optional();
|
|
12968
12968
|
}
|
|
12969
12969
|
if (e.propertyNames) {
|
|
12970
|
-
const l =
|
|
12970
|
+
const l = Li(e.propertyNames, t), u = e.additionalProperties && typeof e.additionalProperties == "object" ? Li(e.additionalProperties, t) : vt.any();
|
|
12971
12971
|
if (Object.keys(n).length === 0) {
|
|
12972
12972
|
r = vt.record(l, u);
|
|
12973
12973
|
break;
|
|
@@ -12979,7 +12979,7 @@ function B6(e, t) {
|
|
|
12979
12979
|
if (e.patternProperties) {
|
|
12980
12980
|
const l = e.patternProperties, u = Object.keys(l), c = [];
|
|
12981
12981
|
for (const d of u) {
|
|
12982
|
-
const h =
|
|
12982
|
+
const h = Li(l[d], t), m = vt.string().regex(new RegExp(d));
|
|
12983
12983
|
c.push(vt.looseRecord(m, h));
|
|
12984
12984
|
}
|
|
12985
12985
|
const f = [];
|
|
@@ -12996,19 +12996,19 @@ function B6(e, t) {
|
|
|
12996
12996
|
break;
|
|
12997
12997
|
}
|
|
12998
12998
|
const o = vt.object(n);
|
|
12999
|
-
e.additionalProperties === !1 ? r = o.strict() : typeof e.additionalProperties == "object" ? r = o.catchall(
|
|
12999
|
+
e.additionalProperties === !1 ? r = o.strict() : typeof e.additionalProperties == "object" ? r = o.catchall(Li(e.additionalProperties, t)) : r = o.passthrough();
|
|
13000
13000
|
break;
|
|
13001
13001
|
}
|
|
13002
13002
|
case "array": {
|
|
13003
13003
|
const n = e.prefixItems, s = e.items;
|
|
13004
13004
|
if (n && Array.isArray(n)) {
|
|
13005
|
-
const a = n.map((l) =>
|
|
13005
|
+
const a = n.map((l) => Li(l, t)), o = s && typeof s == "object" && !Array.isArray(s) ? Li(s, t) : void 0;
|
|
13006
13006
|
o ? r = vt.tuple(a).rest(o) : r = vt.tuple(a), typeof e.minItems == "number" && (r = r.check(vt.minLength(e.minItems))), typeof e.maxItems == "number" && (r = r.check(vt.maxLength(e.maxItems)));
|
|
13007
13007
|
} else if (Array.isArray(s)) {
|
|
13008
|
-
const a = s.map((l) =>
|
|
13008
|
+
const a = s.map((l) => Li(l, t)), o = e.additionalItems && typeof e.additionalItems == "object" ? Li(e.additionalItems, t) : void 0;
|
|
13009
13009
|
o ? r = vt.tuple(a).rest(o) : r = vt.tuple(a), typeof e.minItems == "number" && (r = r.check(vt.minLength(e.minItems))), typeof e.maxItems == "number" && (r = r.check(vt.maxLength(e.maxItems)));
|
|
13010
13010
|
} else if (s !== void 0) {
|
|
13011
|
-
const a =
|
|
13011
|
+
const a = Li(s, t);
|
|
13012
13012
|
let o = vt.array(a);
|
|
13013
13013
|
typeof e.minItems == "number" && (o = o.min(e.minItems)), typeof e.maxItems == "number" && (o = o.max(e.maxItems)), r = o;
|
|
13014
13014
|
} else
|
|
@@ -13020,27 +13020,27 @@ function B6(e, t) {
|
|
|
13020
13020
|
}
|
|
13021
13021
|
return r;
|
|
13022
13022
|
}
|
|
13023
|
-
function
|
|
13023
|
+
function Li(e, t) {
|
|
13024
13024
|
if (typeof e == "boolean")
|
|
13025
13025
|
return e ? vt.any() : vt.never();
|
|
13026
13026
|
let i = B6(e, t);
|
|
13027
13027
|
const r = e.type || e.enum !== void 0 || e.const !== void 0;
|
|
13028
13028
|
if (e.anyOf && Array.isArray(e.anyOf)) {
|
|
13029
|
-
const o = e.anyOf.map((u) =>
|
|
13029
|
+
const o = e.anyOf.map((u) => Li(u, t)), l = vt.union(o);
|
|
13030
13030
|
i = r ? vt.intersection(i, l) : l;
|
|
13031
13031
|
}
|
|
13032
13032
|
if (e.oneOf && Array.isArray(e.oneOf)) {
|
|
13033
|
-
const o = e.oneOf.map((u) =>
|
|
13033
|
+
const o = e.oneOf.map((u) => Li(u, t)), l = vt.xor(o);
|
|
13034
13034
|
i = r ? vt.intersection(i, l) : l;
|
|
13035
13035
|
}
|
|
13036
13036
|
if (e.allOf && Array.isArray(e.allOf))
|
|
13037
13037
|
if (e.allOf.length === 0)
|
|
13038
13038
|
i = r ? i : vt.any();
|
|
13039
13039
|
else {
|
|
13040
|
-
let o = r ? i :
|
|
13040
|
+
let o = r ? i : Li(e.allOf[0], t);
|
|
13041
13041
|
const l = r ? 0 : 1;
|
|
13042
13042
|
for (let u = l; u < e.allOf.length; u++)
|
|
13043
|
-
o = vt.intersection(o,
|
|
13043
|
+
o = vt.intersection(o, Li(e.allOf[u], t));
|
|
13044
13044
|
i = o;
|
|
13045
13045
|
}
|
|
13046
13046
|
e.nullable === !0 && t.version === "openapi-3.0" && (i = vt.nullable(i)), e.readOnly === !0 && (i = vt.readonly(i)), e.default !== void 0 && (i = i.default(e.default));
|
|
@@ -13064,7 +13064,7 @@ function lM(e, t) {
|
|
|
13064
13064
|
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
13065
13065
|
}
|
|
13066
13066
|
const r = aM(i, t?.defaultTarget), n = i.$defs || i.definitions || {}, s = { version: r, defs: n, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: i, registry: t?.registry ?? Rr };
|
|
13067
|
-
return
|
|
13067
|
+
return Li(i, s);
|
|
13068
13068
|
}
|
|
13069
13069
|
var N6 = {};
|
|
13070
13070
|
hs(N6, { bigint: () => dM, boolean: () => fM, date: () => hM, number: () => cM, string: () => uM });
|
|
@@ -13083,7 +13083,7 @@ function dM(e) {
|
|
|
13083
13083
|
function hM(e) {
|
|
13084
13084
|
return nk(Wd, e);
|
|
13085
13085
|
}
|
|
13086
|
-
|
|
13086
|
+
Pi(kC());
|
|
13087
13087
|
var gi = { DEFAULTS: { width: 800, height: 400, pixelRatio: 2, fontFamily: "Open Sans", fontSize: 48, color: "#ffffff", textAlign: "center" }, LIMITS: { minWidth: 1, maxWidth: 4096, minHeight: 1, maxHeight: 4096, minFontSize: 1, maxFontSize: 512, minDuration: 0.1, maxDuration: 120, maxTextLength: 1e4 }, ANIMATION_TYPES: ["typewriter", "fadeIn", "slideIn", "shift", "ascend", "movingLetters"] }, xr = /^#[A-Fa-f0-9]{6}$/, M6 = J.object({ src: J.string().url(), family: J.string(), weight: J.union([J.string(), J.number()]).optional(), style: J.string().optional(), originalFamily: J.string().optional() }), z6 = J.object({ width: J.number().min(0).default(0), color: J.string().regex(xr).default("#000000"), opacity: J.number().min(0).max(1).default(1), radius: J.number().min(0).default(0) }), O6 = J.union([J.number().min(0), J.object({ top: J.number().min(0).default(0), right: J.number().min(0).default(0), bottom: J.number().min(0).default(0), left: J.number().min(0).default(0) })]), pM = MP.extend({ family: J.string().default(gi.DEFAULTS.fontFamily), size: J.number().int().min(gi.LIMITS.minFontSize).max(gi.LIMITS.maxFontSize).default(gi.DEFAULTS.fontSize), weight: J.union([J.string(), J.number()]).default("400"), color: J.string().regex(xr).default(gi.DEFAULTS.color), opacity: J.number().min(0).max(1).default(1), background: J.string().regex(xr).optional() }), mM = J.object({ type: J.enum(["linear", "radial"]).default("linear"), angle: J.number().min(0).max(360).default(0), stops: J.array(J.object({ offset: J.number().min(0).max(1), color: J.string().regex(xr) })).min(2) }), R6 = zP.extend({ letterSpacing: J.number().default(0), lineHeight: J.number().min(0).max(10).default(1.2), textTransform: J.enum(["none", "uppercase", "lowercase", "capitalize"]).default("none"), textDecoration: J.enum(["none", "underline", "line-through"]).default("none"), gradient: mM.optional() }), gM = R6.omit({ wordSpacing: !0 }), V6 = FP.extend({ width: J.number().min(0).default(0), color: J.string().regex(xr).default("#000000"), opacity: J.number().min(0).max(1).default(1) }), L6 = PP.extend({ offsetX: J.number().default(0), offsetY: J.number().default(0), blur: J.number().min(0).default(0), color: J.string().regex(xr).default("#000000"), opacity: J.number().min(0).max(1).default(0.5) }), $6 = IP.extend({ color: J.string().regex(xr).optional(), opacity: J.number().min(0).max(1).default(1), padding: J.number().int().min(0).max(200).optional() }), U6 = AP.extend({ horizontal: J.enum(["left", "center", "right"]).default(gi.DEFAULTS.textAlign), vertical: J.enum(["top", "middle", "bottom"]).default("middle") }), yM = TP.extend({ preset: J.enum(gi.ANIMATION_TYPES), speed: J.number().min(0.1).max(10).default(1), duration: J.number().min(gi.LIMITS.minDuration).max(gi.LIMITS.maxDuration).optional(), style: J.enum(["character", "word"]).optional(), direction: J.enum(["left", "right", "up", "down"]).optional() }).transform((e) => {
|
|
13088
13088
|
const t = ["typewriter", "shift", "fadeIn", "slideIn"], i = { ...e };
|
|
13089
13089
|
i.style && !t.includes(i.preset) && delete i.style;
|
|
@@ -13715,7 +13715,7 @@ async function lz(e) {
|
|
|
13715
13715
|
throw console.error("Failed to initialize HarfBuzz:", t), new Error(`Failed to initialize HarfBuzz: ${t instanceof Error ? t.message : String(t)}`);
|
|
13716
13716
|
}
|
|
13717
13717
|
}
|
|
13718
|
-
var uz = { utf16le: "utf-16le", ucs2: "utf-16le", utf16be: "utf-16be" },
|
|
13718
|
+
var uz = { utf16le: "utf-16le", ucs2: "utf-16le", utf16be: "utf-16be" }, Di = class {
|
|
13719
13719
|
constructor(e) {
|
|
13720
13720
|
this.buffer = e, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.pos = 0, this.length = this.buffer.length;
|
|
13721
13721
|
}
|
|
@@ -13744,16 +13744,16 @@ var uz = { utf16le: "utf-16le", ucs2: "utf-16le", utf16be: "utf-16be" }, Pi = cl
|
|
|
13744
13744
|
return this.readUInt16LE() + (this.readInt8() << 16);
|
|
13745
13745
|
}
|
|
13746
13746
|
};
|
|
13747
|
-
|
|
13747
|
+
Di.TYPES = { UInt8: 1, UInt16: 2, UInt24: 3, UInt32: 4, Int8: 1, Int16: 2, Int24: 3, Int32: 4, Float: 4, Double: 8 };
|
|
13748
13748
|
for (let e of Object.getOwnPropertyNames(DataView.prototype))
|
|
13749
13749
|
if (e.slice(0, 3) === "get") {
|
|
13750
13750
|
let t = e.slice(3).replace("Ui", "UI");
|
|
13751
13751
|
t === "Float32" ? t = "Float" : t === "Float64" && (t = "Double");
|
|
13752
|
-
let i =
|
|
13753
|
-
|
|
13752
|
+
let i = Di.TYPES[t];
|
|
13753
|
+
Di.prototype["read" + t + (i === 1 ? "" : "BE")] = function() {
|
|
13754
13754
|
const r = this.view[e](this.pos, !1);
|
|
13755
13755
|
return this.pos += i, r;
|
|
13756
|
-
}, i !== 1 && (
|
|
13756
|
+
}, i !== 1 && (Di.prototype["read" + t + "LE"] = function() {
|
|
13757
13757
|
const r = this.view[e](this.pos, !0);
|
|
13758
13758
|
return this.pos += i, r;
|
|
13759
13759
|
});
|
|
@@ -13827,7 +13827,7 @@ for (let e of Object.getOwnPropertyNames(DataView.prototype))
|
|
|
13827
13827
|
if (e.slice(0, 3) === "set") {
|
|
13828
13828
|
let t = e.slice(3).replace("Ui", "UI");
|
|
13829
13829
|
t === "Float32" ? t = "Float" : t === "Float64" && (t = "Double");
|
|
13830
|
-
let i =
|
|
13830
|
+
let i = Di.TYPES[t];
|
|
13831
13831
|
_f.prototype["write" + t + (i === 1 ? "" : "BE")] = function(r) {
|
|
13832
13832
|
this.view[e](this.pos, r, !1), this.pos += i;
|
|
13833
13833
|
}, i !== 1 && (_f.prototype["write" + t + "LE"] = function(r) {
|
|
@@ -13836,7 +13836,7 @@ for (let e of Object.getOwnPropertyNames(DataView.prototype))
|
|
|
13836
13836
|
}
|
|
13837
13837
|
var gs = class {
|
|
13838
13838
|
fromBuffer(e) {
|
|
13839
|
-
let t = new
|
|
13839
|
+
let t = new Di(e);
|
|
13840
13840
|
return this.decode(t);
|
|
13841
13841
|
}
|
|
13842
13842
|
toBuffer(e) {
|
|
@@ -13848,7 +13848,7 @@ var gs = class {
|
|
|
13848
13848
|
super(), this.type = e, this.endian = t, this.fn = this.type, this.type[this.type.length - 1] !== "8" && (this.fn += this.endian);
|
|
13849
13849
|
}
|
|
13850
13850
|
size() {
|
|
13851
|
-
return
|
|
13851
|
+
return Di.TYPES[this.type];
|
|
13852
13852
|
}
|
|
13853
13853
|
decode(e) {
|
|
13854
13854
|
return e[`read${this.fn}`]();
|
|
@@ -14311,7 +14311,7 @@ var Z = class extends gs {
|
|
|
14311
14311
|
function dr(e, t, i) {
|
|
14312
14312
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
|
14313
14313
|
}
|
|
14314
|
-
function
|
|
14314
|
+
function Bi(e, t, i, r) {
|
|
14315
14315
|
var n = arguments.length, s = n < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, a;
|
|
14316
14316
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(e, t, i, r);
|
|
14317
14317
|
else for (var o = e.length - 1; o >= 0; o--) (a = e[o]) && (s = (n < 3 ? a(s) : n > 3 ? a(t, i, s) : a(t, i)) || s);
|
|
@@ -14364,7 +14364,7 @@ function K6(e, t) {
|
|
|
14364
14364
|
for (let i = 0; i < mp.length; i++) {
|
|
14365
14365
|
let r = mp[i];
|
|
14366
14366
|
if (r.probe(e)) {
|
|
14367
|
-
let n = new r(new
|
|
14367
|
+
let n = new r(new Di(e));
|
|
14368
14368
|
return t ? n.getFont(t) : n;
|
|
14369
14369
|
}
|
|
14370
14370
|
}
|
|
@@ -14374,7 +14374,7 @@ var Ef = "en";
|
|
|
14374
14374
|
function Mz(e = "en") {
|
|
14375
14375
|
Ef = e;
|
|
14376
14376
|
}
|
|
14377
|
-
function
|
|
14377
|
+
function Ni(e, t, i) {
|
|
14378
14378
|
if (i.get) {
|
|
14379
14379
|
let r = i.get;
|
|
14380
14380
|
i.get = function() {
|
|
@@ -15117,8 +15117,8 @@ var Iy = class {
|
|
|
15117
15117
|
this.uvs = this.findSubtable(e, [[0, 5]]), this.uvs && this.uvs.version !== 14 && (this.uvs = null);
|
|
15118
15118
|
}
|
|
15119
15119
|
};
|
|
15120
|
-
|
|
15121
|
-
|
|
15120
|
+
Bi([Ni], Iy.prototype, "getCharacterSet", null);
|
|
15121
|
+
Bi([Ni], Iy.prototype, "codePointsForGlyph", null);
|
|
15122
15122
|
var qV = class {
|
|
15123
15123
|
process(e, t) {
|
|
15124
15124
|
for (let i = 0; i < e.length - 1; i++) {
|
|
@@ -15479,7 +15479,7 @@ var Hl = class {
|
|
|
15479
15479
|
this.table = e;
|
|
15480
15480
|
}
|
|
15481
15481
|
};
|
|
15482
|
-
|
|
15482
|
+
Bi([Ni], Hl.prototype, "glyphsForValue", null);
|
|
15483
15483
|
var nL = 0, uv = 0, cv = 1, fv = 2, sL = 16384, aL = class {
|
|
15484
15484
|
process(e, t, i) {
|
|
15485
15485
|
let r = nL, n = t ? e.length - 1 : 0, s = t ? -1 : 1;
|
|
@@ -15652,8 +15652,8 @@ var nL = 0, uv = 0, cv = 1, fv = 2, sL = 16384, aL = class {
|
|
|
15652
15652
|
this.processIndicRearragement = this.processIndicRearragement.bind(this), this.processContextualSubstitution = this.processContextualSubstitution.bind(this), this.processLigature = this.processLigature.bind(this), this.processNoncontextualSubstitutions = this.processNoncontextualSubstitutions.bind(this), this.processGlyphInsertion = this.processGlyphInsertion.bind(this), this.font = e, this.morx = e.morx, this.inputCache = null;
|
|
15653
15653
|
}
|
|
15654
15654
|
};
|
|
15655
|
-
|
|
15656
|
-
function
|
|
15655
|
+
Bi([Ni], kS.prototype, "getStateMachine", null);
|
|
15656
|
+
function ji(e, t, i, r = !1, n = !1) {
|
|
15657
15657
|
let s = e.splice(i[0] - (i[1] - 1), i[1]);
|
|
15658
15658
|
n && s.reverse();
|
|
15659
15659
|
let a = e.splice(t[0], t[1], ...s);
|
|
@@ -15664,35 +15664,35 @@ function vL(e, t, i, r) {
|
|
|
15664
15664
|
case 0:
|
|
15665
15665
|
return e;
|
|
15666
15666
|
case 1:
|
|
15667
|
-
return
|
|
15667
|
+
return ji(e, [i, 1], [r, 0]);
|
|
15668
15668
|
case 2:
|
|
15669
|
-
return
|
|
15669
|
+
return ji(e, [i, 0], [r, 1]);
|
|
15670
15670
|
case 3:
|
|
15671
|
-
return
|
|
15671
|
+
return ji(e, [i, 1], [r, 1]);
|
|
15672
15672
|
case 4:
|
|
15673
|
-
return
|
|
15673
|
+
return ji(e, [i, 2], [r, 0]);
|
|
15674
15674
|
case 5:
|
|
15675
|
-
return
|
|
15675
|
+
return ji(e, [i, 2], [r, 0], !0, !1);
|
|
15676
15676
|
case 6:
|
|
15677
|
-
return
|
|
15677
|
+
return ji(e, [i, 0], [r, 2]);
|
|
15678
15678
|
case 7:
|
|
15679
|
-
return
|
|
15679
|
+
return ji(e, [i, 0], [r, 2], !1, !0);
|
|
15680
15680
|
case 8:
|
|
15681
|
-
return
|
|
15681
|
+
return ji(e, [i, 1], [r, 2]);
|
|
15682
15682
|
case 9:
|
|
15683
|
-
return
|
|
15683
|
+
return ji(e, [i, 1], [r, 2], !1, !0);
|
|
15684
15684
|
case 10:
|
|
15685
|
-
return
|
|
15685
|
+
return ji(e, [i, 2], [r, 1]);
|
|
15686
15686
|
case 11:
|
|
15687
|
-
return
|
|
15687
|
+
return ji(e, [i, 2], [r, 1], !0, !1);
|
|
15688
15688
|
case 12:
|
|
15689
|
-
return
|
|
15689
|
+
return ji(e, [i, 2], [r, 2]);
|
|
15690
15690
|
case 13:
|
|
15691
|
-
return
|
|
15691
|
+
return ji(e, [i, 2], [r, 2], !0, !1);
|
|
15692
15692
|
case 14:
|
|
15693
|
-
return
|
|
15693
|
+
return ji(e, [i, 2], [r, 2], !1, !0);
|
|
15694
15694
|
case 15:
|
|
15695
|
-
return
|
|
15695
|
+
return ji(e, [i, 2], [r, 2], !0, !0);
|
|
15696
15696
|
default:
|
|
15697
15697
|
throw new Error(`Unknown verb: ${t}`);
|
|
15698
15698
|
}
|
|
@@ -16091,7 +16091,7 @@ var Zo = 44032, ES = 55204, BL = ES - Zo + 1, rh = 4352, nh = 4449, Ia = 4519, N
|
|
|
16091
16091
|
function Mf(e) {
|
|
16092
16092
|
return RL(e) ? qL : VL(e) ? Bf : LL(e) ? Dy : ZL(e) ? Nf : UL(e) ? AS : $L(e) ? YL : GL;
|
|
16093
16093
|
}
|
|
16094
|
-
var
|
|
16094
|
+
var er = 0, Hn = 1, xp = 2, Cp = 4, kp = 5, XL = [[[er, 0], [er, 1], [er, 0], [er, 0], [Hn, 2], [Hn, 3], [kp, 0]], [[er, 0], [er, 1], [xp, 2], [er, 0], [Hn, 2], [Hn, 3], [kp, 0]], [[er, 0], [er, 1], [er, 0], [xp, 3], [Hn, 2], [Hn, 3], [Cp, 0]], [[er, 0], [er, 1], [er, 0], [er, 0], [Hn, 2], [Hn, 3], [Cp, 0]]];
|
|
16095
16095
|
function Gl(e, t, i) {
|
|
16096
16096
|
return new ds(e, e.glyphForCodePoint(t).id, [t], i);
|
|
16097
16097
|
}
|
|
@@ -17006,12 +17006,12 @@ var bl = [".notdef", ".null", "nonmarkingreturn", "space", "exclam", "quotedbl",
|
|
|
17006
17006
|
this.id = e, this.codePoints = t, this._font = i, this.isMark = this.codePoints.length > 0 && this.codePoints.every(Y6), this.isLigature = this.codePoints.length > 1;
|
|
17007
17007
|
}
|
|
17008
17008
|
};
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17009
|
+
Bi([Ni], Mn.prototype, "cbox", null);
|
|
17010
|
+
Bi([Ni], Mn.prototype, "bbox", null);
|
|
17011
|
+
Bi([Ni], Mn.prototype, "path", null);
|
|
17012
|
+
Bi([Ni], Mn.prototype, "advanceWidth", null);
|
|
17013
|
+
Bi([Ni], Mn.prototype, "advanceHeight", null);
|
|
17014
|
+
Bi([Ni], Mn.prototype, "name", null);
|
|
17015
17015
|
var Cv = new Z({ numberOfContours: st, xMin: st, yMin: st, xMax: st, yMax: st }), _$ = 1, S$ = 2, E$ = 4, A$ = 8, T$ = 16, I$ = 32, D$ = 1, P$ = 8, kv = 32, F$ = 64, B$ = 128, N$ = 256, Gn = class NS {
|
|
17016
17016
|
copy() {
|
|
17017
17017
|
return new NS(this.onCurve, this.endContour, this.x, this.y);
|
|
@@ -17956,7 +17956,7 @@ var MS = class {
|
|
|
17956
17956
|
let i = this.fvar.axis.map((s, a) => {
|
|
17957
17957
|
let o = s.axisTag.trim();
|
|
17958
17958
|
return o in t ? Math.max(s.minValue, Math.min(s.maxValue, t[o])) : s.defaultValue;
|
|
17959
|
-
}), r = new
|
|
17959
|
+
}), r = new Di(this.stream.buffer);
|
|
17960
17960
|
r.pos = this._directoryPos;
|
|
17961
17961
|
let n = new zS(r, i);
|
|
17962
17962
|
return n._tables = this._tables, n;
|
|
@@ -17977,13 +17977,13 @@ var MS = class {
|
|
|
17977
17977
|
}
|
|
17978
17978
|
}
|
|
17979
17979
|
};
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17980
|
+
Bi([Ni], cr.prototype, "bbox", null);
|
|
17981
|
+
Bi([Ni], cr.prototype, "_cmapProcessor", null);
|
|
17982
|
+
Bi([Ni], cr.prototype, "characterSet", null);
|
|
17983
|
+
Bi([Ni], cr.prototype, "_layoutEngine", null);
|
|
17984
|
+
Bi([Ni], cr.prototype, "variationAxes", null);
|
|
17985
|
+
Bi([Ni], cr.prototype, "namedVariations", null);
|
|
17986
|
+
Bi([Ni], cr.prototype, "_variationProcessor", null);
|
|
17987
17987
|
var rU = new Z({ tag: new Pe(4), offset: new V(L, "void", { type: "global" }), compLength: L, length: L, origChecksum: L }), OS = new Z({ tag: new Pe(4), flavor: L, length: L, numTables: b, reserved: new We(b), totalSfntSize: L, majorVersion: b, minorVersion: b, metaOffset: L, metaLength: L, metaOrigLength: L, privOffset: L, privLength: L, tables: new R(rU, "numTables") });
|
|
17988
17988
|
OS.process = function() {
|
|
17989
17989
|
let e = {};
|
|
@@ -18003,7 +18003,7 @@ var nU = OS, sU = class extends cr {
|
|
|
18003
18003
|
if (this.stream.pos = t.offset, t.compLength < t.length) {
|
|
18004
18004
|
this.stream.pos += 2;
|
|
18005
18005
|
let i = new Uint8Array(t.length), r = (0, Fz.default)(this.stream.readBuffer(t.compLength - 2), i);
|
|
18006
|
-
return new
|
|
18006
|
+
return new Di(r);
|
|
18007
18007
|
} else return this.stream;
|
|
18008
18008
|
return null;
|
|
18009
18009
|
}
|
|
@@ -18054,7 +18054,7 @@ var uU = RS, cU = class extends cr {
|
|
|
18054
18054
|
}
|
|
18055
18055
|
let i = (0, Bz.default)(e, t);
|
|
18056
18056
|
if (!i) throw new Error("Error decoding compressed data in WOFF2");
|
|
18057
|
-
this.stream = new
|
|
18057
|
+
this.stream = new Di(i), this._decompressed = !0;
|
|
18058
18058
|
}
|
|
18059
18059
|
}
|
|
18060
18060
|
_decodeTable(e) {
|
|
@@ -18089,7 +18089,7 @@ var uU = RS, cU = class extends cr {
|
|
|
18089
18089
|
}
|
|
18090
18090
|
}, ca = class {
|
|
18091
18091
|
decode(e, t) {
|
|
18092
|
-
return new
|
|
18092
|
+
return new Di(this._buf.decode(e, t));
|
|
18093
18093
|
}
|
|
18094
18094
|
constructor(e) {
|
|
18095
18095
|
this.length = e, this._buf = new Fn(e);
|
|
@@ -18132,7 +18132,7 @@ var gU = new ge(L, { 65536: { numFonts: L, offsets: new R(L, "numFonts") }, 1310
|
|
|
18132
18132
|
}
|
|
18133
18133
|
getFont(e) {
|
|
18134
18134
|
for (let t of this.header.offsets) {
|
|
18135
|
-
let i = new
|
|
18135
|
+
let i = new Di(this.stream.buffer);
|
|
18136
18136
|
i.pos = t;
|
|
18137
18137
|
let r = new cr(i);
|
|
18138
18138
|
if (r.postscriptName === e || r.postscriptName instanceof Uint8Array && e instanceof Uint8Array && r.postscriptName.every((n, s) => e[s] === n)) return r;
|
|
@@ -18142,7 +18142,7 @@ var gU = new ge(L, { 65536: { numFonts: L, offsets: new R(L, "numFonts") }, 1310
|
|
|
18142
18142
|
get fonts() {
|
|
18143
18143
|
let e = [];
|
|
18144
18144
|
for (let t of this.header.offsets) {
|
|
18145
|
-
let i = new
|
|
18145
|
+
let i = new Di(this.stream.buffer);
|
|
18146
18146
|
i.pos = t, e.push(new cr(i));
|
|
18147
18147
|
}
|
|
18148
18148
|
return e;
|
|
@@ -18155,7 +18155,7 @@ var gU = new ge(L, { 65536: { numFonts: L, offsets: new R(L, "numFonts") }, 1310
|
|
|
18155
18155
|
new Z({ len: L, buf: new Fn("len") });
|
|
18156
18156
|
var vU = new Z({ id: b, nameOffset: st, attr: yt, dataOffset: Vs, handle: L }), wU = new Z({ name: new Pe(4), maxTypeIndex: b, refList: new V(b, new R(vU, (e) => e.maxTypeIndex + 1), { type: "parent" }) }), xU = new Z({ length: b, types: new R(wU, (e) => e.length + 1) }), CU = new Z({ reserved: new We(yt, 24), typeList: new V(b, xU), nameListOffset: new V(b, "void") }), Bv = new Z({ dataOffset: L, map: new V(L, CU), dataLength: L, mapLength: L }), kU = class {
|
|
18157
18157
|
static probe(e) {
|
|
18158
|
-
let t = new
|
|
18158
|
+
let t = new Di(e);
|
|
18159
18159
|
try {
|
|
18160
18160
|
var i = Bv.decode(t);
|
|
18161
18161
|
} catch {
|
|
@@ -18168,7 +18168,7 @@ var vU = new Z({ id: b, nameOffset: st, attr: yt, dataOffset: Vs, handle: L }),
|
|
|
18168
18168
|
getFont(e) {
|
|
18169
18169
|
if (!this.sfnt) return null;
|
|
18170
18170
|
for (let t of this.sfnt.refList) {
|
|
18171
|
-
let i = this.header.dataOffset + t.dataOffset + 4, r = new
|
|
18171
|
+
let i = this.header.dataOffset + t.dataOffset + 4, r = new Di(this.stream.buffer.slice(i)), n = new cr(r);
|
|
18172
18172
|
if (n.postscriptName === e || n.postscriptName instanceof Uint8Array && e instanceof Uint8Array && n.postscriptName.every((s, a) => e[a] === s)) return n;
|
|
18173
18173
|
}
|
|
18174
18174
|
return null;
|
|
@@ -18176,7 +18176,7 @@ var vU = new Z({ id: b, nameOffset: st, attr: yt, dataOffset: Vs, handle: L }),
|
|
|
18176
18176
|
get fonts() {
|
|
18177
18177
|
let e = [];
|
|
18178
18178
|
for (let t of this.sfnt.refList) {
|
|
18179
|
-
let i = this.header.dataOffset + t.dataOffset + 4, r = new
|
|
18179
|
+
let i = this.header.dataOffset + t.dataOffset + 4, r = new Di(this.stream.buffer.slice(i));
|
|
18180
18180
|
e.push(new cr(r));
|
|
18181
18181
|
}
|
|
18182
18182
|
return e;
|
|
@@ -18582,19 +18582,19 @@ function AU() {
|
|
|
18582
18582
|
for (var St = 125, lt = new Uint32Array(it.length), ae = 0; ae < it.length; ae++)
|
|
18583
18583
|
lt[ae] = d(it[ae]);
|
|
18584
18584
|
var Nt = /* @__PURE__ */ new Map();
|
|
18585
|
-
function Ot(
|
|
18586
|
-
var
|
|
18587
|
-
lt[
|
|
18585
|
+
function Ot(Qi, qr) {
|
|
18586
|
+
var tr = lt[Qi];
|
|
18587
|
+
lt[Qi] = qr, Nt.set(tr, Nt.get(tr) - 1), tr & o && Nt.set(o, Nt.get(o) - 1), Nt.set(qr, (Nt.get(qr) || 0) + 1), qr & o && Nt.set(o, (Nt.get(o) || 0) + 1);
|
|
18588
18588
|
}
|
|
18589
18589
|
for (var At = new Uint8Array(it.length), ve = /* @__PURE__ */ new Map(), Ae = [], Ct = null, ti = 0; ti < it.length; ti++)
|
|
18590
18590
|
Ct || Ae.push(Ct = { start: ti, end: it.length - 1, level: ct === "rtl" ? 1 : ct === "ltr" ? 0 : F1(ti, !1) }), lt[ti] & q && (Ct.end = ti, Ct = null);
|
|
18591
|
-
for (var Ci = ie | Kt | Ft | at | s | ke | Ce | q, Ne = function(
|
|
18592
|
-
return
|
|
18593
|
-
}, hr = function(
|
|
18594
|
-
return
|
|
18591
|
+
for (var Ci = ie | Kt | Ft | at | s | ke | Ce | q, Ne = function(Qi) {
|
|
18592
|
+
return Qi + (Qi & 1 ? 1 : 2);
|
|
18593
|
+
}, hr = function(Qi) {
|
|
18594
|
+
return Qi + (Qi & 1 ? 2 : 1);
|
|
18595
18595
|
}, ii = 0; ii < Ae.length; ii++) {
|
|
18596
18596
|
Ct = Ae[ii];
|
|
18597
|
-
var fe = [{ _level: Ct.level, _override: 0, _isolate: 0 }], oe = void 0,
|
|
18597
|
+
var fe = [{ _level: Ct.level, _override: 0, _isolate: 0 }], oe = void 0, Mi = 0, Ui = 0, vi = 0;
|
|
18598
18598
|
Nt.clear();
|
|
18599
18599
|
for (var Ze = Ct.start; Ze <= Ct.end; Ze++) {
|
|
18600
18600
|
var He = lt[Ze];
|
|
@@ -18602,43 +18602,43 @@ function AU() {
|
|
|
18602
18602
|
if (He & (ie | Kt)) {
|
|
18603
18603
|
At[Ze] = oe._level;
|
|
18604
18604
|
var ia = (He === ie ? hr : Ne)(oe._level);
|
|
18605
|
-
ia <= St && !
|
|
18605
|
+
ia <= St && !Mi && !Ui ? fe.push({ _level: ia, _override: 0, _isolate: 0 }) : Mi || Ui++;
|
|
18606
18606
|
} else if (He & (Ft | at)) {
|
|
18607
18607
|
At[Ze] = oe._level;
|
|
18608
18608
|
var Vn = (He === Ft ? hr : Ne)(oe._level);
|
|
18609
|
-
Vn <= St && !
|
|
18609
|
+
Vn <= St && !Mi && !Ui ? fe.push({ _level: Vn, _override: He & Ft ? T : z, _isolate: 0 }) : Mi || Ui++;
|
|
18610
18610
|
} else if (He & s) {
|
|
18611
18611
|
He & ci && (He = F1(Ze + 1, !0) === 1 ? me : Ee), At[Ze] = oe._level, oe._override && Ot(Ze, oe._override);
|
|
18612
18612
|
var Ln = (He === me ? hr : Ne)(oe._level);
|
|
18613
|
-
Ln <= St &&
|
|
18613
|
+
Ln <= St && Mi === 0 && Ui === 0 ? (vi++, fe.push({ _level: Ln, _override: 0, _isolate: 1, _isolInitIndex: Ze })) : Mi++;
|
|
18614
18614
|
} else if (He & ke) {
|
|
18615
|
-
if (
|
|
18616
|
-
|
|
18615
|
+
if (Mi > 0)
|
|
18616
|
+
Mi--;
|
|
18617
18617
|
else if (vi > 0) {
|
|
18618
|
-
for (
|
|
18618
|
+
for (Ui = 0; !fe[fe.length - 1]._isolate; )
|
|
18619
18619
|
fe.pop();
|
|
18620
18620
|
var ys = fe[fe.length - 1]._isolInitIndex;
|
|
18621
18621
|
ys != null && (ve.set(ys, Ze), ve.set(Ze, ys)), fe.pop(), vi--;
|
|
18622
18622
|
}
|
|
18623
18623
|
oe = fe[fe.length - 1], At[Ze] = oe._level, oe._override && Ot(Ze, oe._override);
|
|
18624
|
-
} else He & Ce ? (
|
|
18624
|
+
} else He & Ce ? (Mi === 0 && (Ui > 0 ? Ui-- : !oe._isolate && fe.length > 1 && (fe.pop(), oe = fe[fe.length - 1])), At[Ze] = oe._level) : He & q && (At[Ze] = Ct.level);
|
|
18625
18625
|
else
|
|
18626
18626
|
At[Ze] = oe._level, oe._override && He !== ht && Ot(Ze, oe._override);
|
|
18627
18627
|
}
|
|
18628
|
-
for (var Sr = [],
|
|
18629
|
-
var
|
|
18630
|
-
if (!(
|
|
18631
|
-
var $n = At[pr], ra =
|
|
18632
|
-
|
|
18628
|
+
for (var Sr = [], Zi = null, pr = Ct.start; pr <= Ct.end; pr++) {
|
|
18629
|
+
var zi = lt[pr];
|
|
18630
|
+
if (!(zi & l)) {
|
|
18631
|
+
var $n = At[pr], ra = zi & s, O = zi === ke;
|
|
18632
|
+
Zi && $n === Zi._level ? (Zi._end = pr, Zi._endsWithIsolInit = ra) : Sr.push(Zi = { _start: pr, _end: pr, _level: $n, _startsWithPDI: O, _endsWithIsolInit: ra });
|
|
18633
18633
|
}
|
|
18634
18634
|
}
|
|
18635
18635
|
for (var xt = [], ue = 0; ue < Sr.length; ue++) {
|
|
18636
18636
|
var Te = Sr[ue];
|
|
18637
18637
|
if (!Te._startsWithPDI || Te._startsWithPDI && !ve.has(Te._start)) {
|
|
18638
|
-
for (var ye = [
|
|
18638
|
+
for (var ye = [Zi = Te], oi = void 0; Zi && Zi._endsWithIsolInit && (oi = ve.get(Zi._end)) != null; )
|
|
18639
18639
|
for (var mr = ue + 1; mr < Sr.length; mr++)
|
|
18640
18640
|
if (Sr[mr]._start === oi) {
|
|
18641
|
-
ye.push(
|
|
18641
|
+
ye.push(Zi = Sr[mr]);
|
|
18642
18642
|
break;
|
|
18643
18643
|
}
|
|
18644
18644
|
for (var Hr = [], na = 0; na < ye.length; na++)
|
|
@@ -18649,15 +18649,15 @@ function AU() {
|
|
|
18649
18649
|
qa = At[vs];
|
|
18650
18650
|
break;
|
|
18651
18651
|
}
|
|
18652
|
-
var aa = Hr[Hr.length - 1],
|
|
18652
|
+
var aa = Hr[Hr.length - 1], Oi = At[aa], Ri = Ct.level;
|
|
18653
18653
|
if (!(lt[aa] & s)) {
|
|
18654
|
-
for (var
|
|
18655
|
-
if (!(lt[
|
|
18656
|
-
|
|
18654
|
+
for (var Ji = aa + 1; Ji <= Ct.end; Ji++)
|
|
18655
|
+
if (!(lt[Ji] & l)) {
|
|
18656
|
+
Ri = At[Ji];
|
|
18657
18657
|
break;
|
|
18658
18658
|
}
|
|
18659
18659
|
}
|
|
18660
|
-
xt.push({ _seqIndices: Hr, _sosType: Math.max(qa, sa) % 2 ? T : z, _eosType: Math.max(
|
|
18660
|
+
xt.push({ _seqIndices: Hr, _sosType: Math.max(qa, sa) % 2 ? T : z, _eosType: Math.max(Ri, Oi) % 2 ? T : z });
|
|
18661
18661
|
}
|
|
18662
18662
|
}
|
|
18663
18663
|
for (var Un = 0; Un < xt.length; Un++) {
|
|
@@ -18748,8 +18748,8 @@ function AU() {
|
|
|
18748
18748
|
}
|
|
18749
18749
|
}
|
|
18750
18750
|
}
|
|
18751
|
-
gc.sort(function(
|
|
18752
|
-
return
|
|
18751
|
+
gc.sort(function(Qi, qr) {
|
|
18752
|
+
return Qi[0] - qr[0];
|
|
18753
18753
|
});
|
|
18754
18754
|
}
|
|
18755
18755
|
for (var Ph = 0; Ph < gc.length; Ph++) {
|
|
@@ -18822,28 +18822,28 @@ function AU() {
|
|
|
18822
18822
|
}
|
|
18823
18823
|
}
|
|
18824
18824
|
return { levels: At, paragraphs: Ae };
|
|
18825
|
-
function F1(
|
|
18826
|
-
for (var
|
|
18827
|
-
var xs = lt[
|
|
18825
|
+
function F1(Qi, qr) {
|
|
18826
|
+
for (var tr = Qi; tr < it.length; tr++) {
|
|
18827
|
+
var xs = lt[tr];
|
|
18828
18828
|
if (xs & (T | Q))
|
|
18829
18829
|
return 1;
|
|
18830
18830
|
if (xs & (q | z) || qr && xs === ke)
|
|
18831
18831
|
return 0;
|
|
18832
18832
|
if (xs & s) {
|
|
18833
|
-
var B1 = dA(
|
|
18834
|
-
|
|
18833
|
+
var B1 = dA(tr);
|
|
18834
|
+
tr = B1 === -1 ? it.length : B1;
|
|
18835
18835
|
}
|
|
18836
18836
|
}
|
|
18837
18837
|
return 0;
|
|
18838
18838
|
}
|
|
18839
|
-
function dA(
|
|
18840
|
-
for (var qr = 1,
|
|
18841
|
-
var xs = lt[
|
|
18839
|
+
function dA(Qi) {
|
|
18840
|
+
for (var qr = 1, tr = Qi + 1; tr < it.length; tr++) {
|
|
18841
|
+
var xs = lt[tr];
|
|
18842
18842
|
if (xs & q)
|
|
18843
18843
|
break;
|
|
18844
18844
|
if (xs & ke) {
|
|
18845
18845
|
if (--qr === 0)
|
|
18846
|
-
return
|
|
18846
|
+
return tr;
|
|
18847
18847
|
} else xs & s && qr++;
|
|
18848
18848
|
}
|
|
18849
18849
|
return -1;
|
|
@@ -20133,9 +20133,9 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20133
20133
|
pop() {
|
|
20134
20134
|
return this.heap[--this.length];
|
|
20135
20135
|
}
|
|
20136
|
-
}, wl = /* @__PURE__ */ new WeakMap(), be(fa, wl, !1), fa), jv, Wv, Yr, Ar, cn, io, fn, xl, Cl, dn, wi, Tr, hi, Ge, re,
|
|
20136
|
+
}, wl = /* @__PURE__ */ new WeakMap(), be(fa, wl, !1), fa), jv, Wv, Yr, Ar, cn, io, fn, xl, Cl, dn, wi, Tr, hi, Ge, re, ir, Ir, Wi, ki, hn, _i, pn, mn, Dr, Pr, gn, da, rr, kl, Et, s0, ro, Ss, Bc, Fr, Hv, no, _l, Nc, Es, As, a0, Mc, zc, je, o0, Sl, Ts, l0, u0, _Z = (u0 = class {
|
|
20137
20137
|
constructor(e) {
|
|
20138
|
-
be(this, Et), be(this, Yr), be(this, Ar), be(this, cn), be(this, io), be(this, fn), be(this, xl), be(this, Cl), be(this, dn), jt(this, "ttl"), jt(this, "ttlResolution"), jt(this, "ttlAutopurge"), jt(this, "updateAgeOnGet"), jt(this, "updateAgeOnHas"), jt(this, "allowStale"), jt(this, "noDisposeOnSet"), jt(this, "noUpdateTTL"), jt(this, "maxEntrySize"), jt(this, "sizeCalculation"), jt(this, "noDeleteOnFetchRejection"), jt(this, "noDeleteOnStaleGet"), jt(this, "allowStaleOnFetchAbort"), jt(this, "allowStaleOnFetchRejection"), jt(this, "ignoreFetchAbort"), be(this, wi), be(this, Tr), be(this, hi), be(this, Ge), be(this, re), be(this,
|
|
20138
|
+
be(this, Et), be(this, Yr), be(this, Ar), be(this, cn), be(this, io), be(this, fn), be(this, xl), be(this, Cl), be(this, dn), jt(this, "ttl"), jt(this, "ttlResolution"), jt(this, "ttlAutopurge"), jt(this, "updateAgeOnGet"), jt(this, "updateAgeOnHas"), jt(this, "allowStale"), jt(this, "noDisposeOnSet"), jt(this, "noUpdateTTL"), jt(this, "maxEntrySize"), jt(this, "sizeCalculation"), jt(this, "noDeleteOnFetchRejection"), jt(this, "noDeleteOnStaleGet"), jt(this, "allowStaleOnFetchAbort"), jt(this, "allowStaleOnFetchRejection"), jt(this, "ignoreFetchAbort"), be(this, wi), be(this, Tr), be(this, hi), be(this, Ge), be(this, re), be(this, ir), be(this, Ir), be(this, Wi), be(this, ki), be(this, hn), be(this, _i), be(this, pn), be(this, mn), be(this, Dr), be(this, Pr), be(this, gn), be(this, da), be(this, rr), be(this, kl), be(this, ro, () => {
|
|
20139
20139
|
}), be(this, Ss, () => {
|
|
20140
20140
|
}), be(this, Bc, () => {
|
|
20141
20141
|
}), be(this, Fr, () => !1), be(this, no, (B) => {
|
|
@@ -20155,7 +20155,7 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20155
20155
|
}
|
|
20156
20156
|
if (w !== void 0 && typeof w != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
20157
20157
|
if (Zt(this, Cl, w), g !== void 0 && typeof g != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
20158
|
-
if (Zt(this, xl, g), Zt(this, da, !!g), Zt(this, hi, /* @__PURE__ */ new Map()), Zt(this, Ge, new Array(t).fill(void 0)), Zt(this, re, new Array(t).fill(void 0)), Zt(this,
|
|
20158
|
+
if (Zt(this, xl, g), Zt(this, da, !!g), Zt(this, hi, /* @__PURE__ */ new Map()), Zt(this, Ge, new Array(t).fill(void 0)), Zt(this, re, new Array(t).fill(void 0)), Zt(this, ir, new T(t)), Zt(this, Ir, new T(t)), Zt(this, Wi, 0), Zt(this, ki, 0), Zt(this, hn, kZ.create(t)), Zt(this, wi, 0), Zt(this, Tr, 0), typeof l == "function" && Zt(this, cn, l), typeof u == "function" && Zt(this, io, u), typeof c == "function" ? (Zt(this, fn, c), Zt(this, _i, [])) : (Zt(this, fn, void 0), Zt(this, _i, void 0)), Zt(this, gn, !!I(this, cn)), Zt(this, kl, !!I(this, io)), Zt(this, rr, !!I(this, fn)), this.noDisposeOnSet = !!f, this.noUpdateTTL = !!d, this.noDeleteOnFetchRejection = !!C, this.allowStaleOnFetchRejection = !!_, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!k, this.maxEntrySize !== 0) {
|
|
20159
20159
|
if (I(this, Ar) !== 0 && !Ps(I(this, Ar))) throw new TypeError("maxSize must be a positive integer if specified");
|
|
20160
20160
|
if (!Ps(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
20161
20161
|
Tt(this, Et, Hv).call(this);
|
|
@@ -20174,8 +20174,8 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20174
20174
|
return I(this, dn);
|
|
20175
20175
|
}
|
|
20176
20176
|
static unsafeExposeInternals(e) {
|
|
20177
|
-
return { starts: I(e, mn), ttls: I(e, Dr), autopurgeTimers: I(e, Pr), sizes: I(e, pn), keyMap: I(e, hi), keyList: I(e, Ge), valList: I(e, re), next: I(e,
|
|
20178
|
-
return I(e,
|
|
20177
|
+
return { starts: I(e, mn), ttls: I(e, Dr), autopurgeTimers: I(e, Pr), sizes: I(e, pn), keyMap: I(e, hi), keyList: I(e, Ge), valList: I(e, re), next: I(e, ir), prev: I(e, Ir), get head() {
|
|
20178
|
+
return I(e, Wi);
|
|
20179
20179
|
}, get tail() {
|
|
20180
20180
|
return I(e, ki);
|
|
20181
20181
|
}, free: I(e, hn), isBackgroundFetch: (t) => {
|
|
@@ -20324,7 +20324,7 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20324
20324
|
let { ttl: o = this.ttl, start: l, noDisposeOnSet: u = this.noDisposeOnSet, sizeCalculation: c = this.sizeCalculation, status: f } = i, { noUpdateTTL: d = this.noUpdateTTL } = i, h = I(this, Nc).call(this, e, t, i.size || 0, c);
|
|
20325
20325
|
if (this.maxEntrySize && h > this.maxEntrySize) return f && (f.set = "miss", f.maxEntrySizeExceeded = !0), Tt(this, Et, Ts).call(this, e, "set"), this;
|
|
20326
20326
|
let m = I(this, wi) === 0 ? void 0 : I(this, hi).get(e);
|
|
20327
|
-
if (m === void 0) m = I(this, wi) === 0 ? I(this, ki) : I(this, hn).length !== 0 ? I(this, hn).pop() : I(this, wi) === I(this, Yr) ? Tt(this, Et, Mc).call(this, !1) : I(this, wi), I(this, Ge)[m] = e, I(this, re)[m] = t, I(this, hi).set(e, m), I(this,
|
|
20327
|
+
if (m === void 0) m = I(this, wi) === 0 ? I(this, ki) : I(this, hn).length !== 0 ? I(this, hn).pop() : I(this, wi) === I(this, Yr) ? Tt(this, Et, Mc).call(this, !1) : I(this, wi), I(this, Ge)[m] = e, I(this, re)[m] = t, I(this, hi).set(e, m), I(this, ir)[I(this, ki)] = m, I(this, Ir)[m] = I(this, ki), Zt(this, ki, m), Vh(this, wi)._++, I(this, _l).call(this, m, h, f), f && (f.set = "add"), d = !1, I(this, kl) && ((r = I(this, io)) == null || r.call(this, t, e, "add"));
|
|
20328
20328
|
else {
|
|
20329
20329
|
Tt(this, Et, Sl).call(this, m);
|
|
20330
20330
|
let v = I(this, re)[m];
|
|
@@ -20332,8 +20332,8 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20332
20332
|
if (I(this, da) && Tt(this, Et, je).call(this, v)) {
|
|
20333
20333
|
v.__abortController.abort(new Error("replaced"));
|
|
20334
20334
|
let { __staleWhileFetching: g } = v;
|
|
20335
|
-
g !== void 0 && !u && (I(this, gn) && ((n = I(this, cn)) == null || n.call(this, g, e, "set")), I(this,
|
|
20336
|
-
} else u || (I(this, gn) && ((s = I(this, cn)) == null || s.call(this, v, e, "set")), I(this,
|
|
20335
|
+
g !== void 0 && !u && (I(this, gn) && ((n = I(this, cn)) == null || n.call(this, g, e, "set")), I(this, rr) && I(this, _i)?.push([g, e, "set"]));
|
|
20336
|
+
} else u || (I(this, gn) && ((s = I(this, cn)) == null || s.call(this, v, e, "set")), I(this, rr) && I(this, _i)?.push([v, e, "set"]));
|
|
20337
20337
|
if (I(this, no).call(this, m), I(this, _l).call(this, m, h, f), I(this, re)[m] = t, f) {
|
|
20338
20338
|
f.set = "replace";
|
|
20339
20339
|
let g = v && Tt(this, Et, je).call(this, v) ? v.__staleWhileFetching : v;
|
|
@@ -20342,7 +20342,7 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20342
20342
|
} else f && (f.set = "update");
|
|
20343
20343
|
I(this, kl) && this.onInsert?.(t, e, t === v ? "update" : "replace");
|
|
20344
20344
|
}
|
|
20345
|
-
if (o !== 0 && !I(this, Dr) && Tt(this, Et, s0).call(this), I(this, Dr) && (d || I(this, Bc).call(this, m, o, l), f && I(this, Ss).call(this, f, m)), !u && I(this,
|
|
20345
|
+
if (o !== 0 && !I(this, Dr) && Tt(this, Et, s0).call(this), I(this, Dr) && (d || I(this, Bc).call(this, m, o, l), f && I(this, Ss).call(this, f, m)), !u && I(this, rr) && I(this, _i)) {
|
|
20346
20346
|
let v = I(this, _i), g;
|
|
20347
20347
|
for (; g = v?.shift(); ) (a = I(this, fn)) == null || a.call(this, ...g);
|
|
20348
20348
|
}
|
|
@@ -20352,13 +20352,13 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20352
20352
|
var e;
|
|
20353
20353
|
try {
|
|
20354
20354
|
for (; I(this, wi); ) {
|
|
20355
|
-
let t = I(this, re)[I(this,
|
|
20355
|
+
let t = I(this, re)[I(this, Wi)];
|
|
20356
20356
|
if (Tt(this, Et, Mc).call(this, !0), Tt(this, Et, je).call(this, t)) {
|
|
20357
20357
|
if (t.__staleWhileFetching) return t.__staleWhileFetching;
|
|
20358
20358
|
} else if (t !== void 0) return t;
|
|
20359
20359
|
}
|
|
20360
20360
|
} finally {
|
|
20361
|
-
if (I(this,
|
|
20361
|
+
if (I(this, rr) && I(this, _i)) {
|
|
20362
20362
|
let t = I(this, _i), i;
|
|
20363
20363
|
for (; i = t?.shift(); ) (e = I(this, fn)) == null || e.call(this, ...i);
|
|
20364
20364
|
}
|
|
@@ -20426,7 +20426,7 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20426
20426
|
clear() {
|
|
20427
20427
|
return Tt(this, Et, l0).call(this, "delete");
|
|
20428
20428
|
}
|
|
20429
|
-
}, Yr = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), xl = /* @__PURE__ */ new WeakMap(), Cl = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(),
|
|
20429
|
+
}, Yr = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), xl = /* @__PURE__ */ new WeakMap(), Cl = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), s0 = function() {
|
|
20430
20430
|
let e = new ef(I(this, Yr)), t = new ef(I(this, Yr));
|
|
20431
20431
|
Zt(this, Dr, e), Zt(this, mn, t);
|
|
20432
20432
|
let i = this.ttlAutopurge ? new Array(I(this, Yr)) : void 0;
|
|
@@ -20492,15 +20492,15 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20492
20492
|
Zt(this, Tr, I(this, Tr) + e[t]), r && (r.entrySize = i, r.totalCalculatedSize = I(this, Tr));
|
|
20493
20493
|
});
|
|
20494
20494
|
}, no = /* @__PURE__ */ new WeakMap(), _l = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), Es = function* ({ allowStale: e = this.allowStale } = {}) {
|
|
20495
|
-
if (I(this, wi)) for (let t = I(this, ki); !(!Tt(this, Et, a0).call(this, t) || ((e || !I(this, Fr).call(this, t)) && (yield t), t === I(this,
|
|
20495
|
+
if (I(this, wi)) for (let t = I(this, ki); !(!Tt(this, Et, a0).call(this, t) || ((e || !I(this, Fr).call(this, t)) && (yield t), t === I(this, Wi))); ) t = I(this, Ir)[t];
|
|
20496
20496
|
}, As = function* ({ allowStale: e = this.allowStale } = {}) {
|
|
20497
|
-
if (I(this, wi)) for (let t = I(this,
|
|
20497
|
+
if (I(this, wi)) for (let t = I(this, Wi); !(!Tt(this, Et, a0).call(this, t) || ((e || !I(this, Fr).call(this, t)) && (yield t), t === I(this, ki))); ) t = I(this, ir)[t];
|
|
20498
20498
|
}, a0 = function(e) {
|
|
20499
20499
|
return e !== void 0 && I(this, hi).get(I(this, Ge)[e]) === e;
|
|
20500
20500
|
}, Mc = function(e) {
|
|
20501
20501
|
var t;
|
|
20502
|
-
let i = I(this,
|
|
20503
|
-
return I(this, da) && Tt(this, Et, je).call(this, n) ? n.__abortController.abort(new Error("evicted")) : (I(this, gn) || I(this,
|
|
20502
|
+
let i = I(this, Wi), r = I(this, Ge)[i], n = I(this, re)[i];
|
|
20503
|
+
return I(this, da) && Tt(this, Et, je).call(this, n) ? n.__abortController.abort(new Error("evicted")) : (I(this, gn) || I(this, rr)) && (I(this, gn) && ((t = I(this, cn)) == null || t.call(this, n, r, "evict")), I(this, rr) && I(this, _i)?.push([n, r, "evict"])), I(this, no).call(this, i), I(this, Pr)?.[i] && (clearTimeout(I(this, Pr)[i]), I(this, Pr)[i] = void 0), e && (I(this, Ge)[i] = void 0, I(this, re)[i] = void 0, I(this, hn).push(i)), I(this, wi) === 1 ? (Zt(this, Wi, Zt(this, ki, 0)), I(this, hn).length = 0) : Zt(this, Wi, I(this, ir)[i]), I(this, hi).delete(r), Vh(this, wi)._--, i;
|
|
20504
20504
|
}, zc = function(e, t, i, r) {
|
|
20505
20505
|
let n = t === void 0 ? void 0 : I(this, re)[t];
|
|
20506
20506
|
if (Tt(this, Et, je).call(this, n)) return n;
|
|
@@ -20530,9 +20530,9 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20530
20530
|
let t = e;
|
|
20531
20531
|
return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof Rf;
|
|
20532
20532
|
}, o0 = function(e, t) {
|
|
20533
|
-
I(this, Ir)[t] = e, I(this,
|
|
20533
|
+
I(this, Ir)[t] = e, I(this, ir)[e] = t;
|
|
20534
20534
|
}, Sl = function(e) {
|
|
20535
|
-
e !== I(this, ki) && (e === I(this,
|
|
20535
|
+
e !== I(this, ki) && (e === I(this, Wi) ? Zt(this, Wi, I(this, ir)[e]) : Tt(this, Et, o0).call(this, I(this, Ir)[e], I(this, ir)[e]), Tt(this, Et, o0).call(this, I(this, ki), e), Zt(this, ki, e));
|
|
20536
20536
|
}, Ts = function(e, t) {
|
|
20537
20537
|
var i, r;
|
|
20538
20538
|
let n = !1;
|
|
@@ -20542,18 +20542,18 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20542
20542
|
else {
|
|
20543
20543
|
I(this, no).call(this, s);
|
|
20544
20544
|
let a = I(this, re)[s];
|
|
20545
|
-
if (Tt(this, Et, je).call(this, a) ? a.__abortController.abort(new Error("deleted")) : (I(this, gn) || I(this,
|
|
20546
|
-
else if (s === I(this,
|
|
20545
|
+
if (Tt(this, Et, je).call(this, a) ? a.__abortController.abort(new Error("deleted")) : (I(this, gn) || I(this, rr)) && (I(this, gn) && ((i = I(this, cn)) == null || i.call(this, a, e, t)), I(this, rr) && I(this, _i)?.push([a, e, t])), I(this, hi).delete(e), I(this, Ge)[s] = void 0, I(this, re)[s] = void 0, s === I(this, ki)) Zt(this, ki, I(this, Ir)[s]);
|
|
20546
|
+
else if (s === I(this, Wi)) Zt(this, Wi, I(this, ir)[s]);
|
|
20547
20547
|
else {
|
|
20548
20548
|
let o = I(this, Ir)[s];
|
|
20549
|
-
I(this,
|
|
20550
|
-
let l = I(this,
|
|
20549
|
+
I(this, ir)[o] = I(this, ir)[s];
|
|
20550
|
+
let l = I(this, ir)[s];
|
|
20551
20551
|
I(this, Ir)[l] = I(this, Ir)[s];
|
|
20552
20552
|
}
|
|
20553
20553
|
Vh(this, wi)._--, I(this, hn).push(s);
|
|
20554
20554
|
}
|
|
20555
20555
|
}
|
|
20556
|
-
if (I(this,
|
|
20556
|
+
if (I(this, rr) && I(this, _i)?.length) {
|
|
20557
20557
|
let s = I(this, _i), a;
|
|
20558
20558
|
for (; a = s?.shift(); ) (r = I(this, fn)) == null || r.call(this, ...a);
|
|
20559
20559
|
}
|
|
@@ -20565,7 +20565,7 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20565
20565
|
if (Tt(this, Et, je).call(this, n)) n.__abortController.abort(new Error("deleted"));
|
|
20566
20566
|
else {
|
|
20567
20567
|
let s = I(this, Ge)[r];
|
|
20568
|
-
I(this, gn) && ((t = I(this, cn)) == null || t.call(this, n, s, e)), I(this,
|
|
20568
|
+
I(this, gn) && ((t = I(this, cn)) == null || t.call(this, n, s, e)), I(this, rr) && I(this, _i)?.push([n, s, e]);
|
|
20569
20569
|
}
|
|
20570
20570
|
}
|
|
20571
20571
|
if (I(this, hi).clear(), I(this, re).fill(void 0), I(this, Ge).fill(void 0), I(this, Dr) && I(this, mn)) {
|
|
@@ -20573,7 +20573,7 @@ var CZ = (e) => !GS.has(e), Ps = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
20573
20573
|
for (let r of I(this, Pr) ?? []) r !== void 0 && clearTimeout(r);
|
|
20574
20574
|
I(this, Pr)?.fill(void 0);
|
|
20575
20575
|
}
|
|
20576
|
-
if (I(this, pn) && I(this, pn).fill(0), Zt(this,
|
|
20576
|
+
if (I(this, pn) && I(this, pn).fill(0), Zt(this, Wi, 0), Zt(this, ki, 0), I(this, hn).length = 0, Zt(this, Tr, 0), Zt(this, wi, 0), I(this, rr) && I(this, _i)) {
|
|
20577
20577
|
let r = I(this, _i), n;
|
|
20578
20578
|
for (; n = r?.shift(); ) (i = I(this, fn)) == null || i.call(this, ...n);
|
|
20579
20579
|
}
|
|
@@ -36836,7 +36836,7 @@ class yu {
|
|
|
36836
36836
|
}
|
|
36837
36837
|
}
|
|
36838
36838
|
const Wj = "Captions will appear here";
|
|
36839
|
-
class Lf extends
|
|
36839
|
+
class Lf extends Fi {
|
|
36840
36840
|
static loadedFonts = /* @__PURE__ */ new Set();
|
|
36841
36841
|
state = { kind: "loaded", cues: [] };
|
|
36842
36842
|
currentCue = null;
|
|
@@ -36848,7 +36848,7 @@ class Lf extends Bi {
|
|
|
36848
36848
|
async load() {
|
|
36849
36849
|
await super.load();
|
|
36850
36850
|
const t = this.clipConfiguration.asset, i = t.font?.family ?? "Open Sans";
|
|
36851
|
-
if (await this.loadFont(i), this.state =
|
|
36851
|
+
if (await this.loadFont(i), this.state = Ki(t.src) ? { kind: "placeholder" } : await this.loadSubtitles(t.src), this.background = new K.Graphics(), this.contentContainer.addChild(this.background), this.text = new K.Text({ text: "", style: this.createTextStyle(t) }), this.text.visible = !1, t.stroke?.width && t.stroke.width > 0 && t.stroke.color) {
|
|
36852
36852
|
const r = new eu.OutlineFilter({
|
|
36853
36853
|
thickness: t.stroke.width,
|
|
36854
36854
|
color: t.stroke.color
|
|
@@ -36953,7 +36953,7 @@ class Lf extends Bi {
|
|
|
36953
36953
|
}
|
|
36954
36954
|
}
|
|
36955
36955
|
}
|
|
36956
|
-
class Hj extends
|
|
36956
|
+
class Hj extends Fi {
|
|
36957
36957
|
background;
|
|
36958
36958
|
text;
|
|
36959
36959
|
constructor(t, i) {
|
|
@@ -37253,7 +37253,7 @@ async function iW(e, t, i) {
|
|
|
37253
37253
|
if (!o) throw new Error(`canvas.toBlob returned null — taint? (svg bytes=${e.length})`);
|
|
37254
37254
|
return new Uint8Array(await o.arrayBuffer());
|
|
37255
37255
|
}
|
|
37256
|
-
class $f extends
|
|
37256
|
+
class $f extends Fi {
|
|
37257
37257
|
static captureChain = Promise.resolve();
|
|
37258
37258
|
iframe = null;
|
|
37259
37259
|
renderedWidth = 0;
|
|
@@ -37597,7 +37597,7 @@ ${t.stack}` : t), this.createFallbackGraphic();
|
|
|
37597
37597
|
onDimensionsChanged() {
|
|
37598
37598
|
}
|
|
37599
37599
|
}
|
|
37600
|
-
class rW extends
|
|
37600
|
+
class rW extends Fi {
|
|
37601
37601
|
texture;
|
|
37602
37602
|
sprite;
|
|
37603
37603
|
placeholder;
|
|
@@ -37932,7 +37932,7 @@ class n5 {
|
|
|
37932
37932
|
this.container.addChild(o);
|
|
37933
37933
|
}
|
|
37934
37934
|
}
|
|
37935
|
-
class rw extends
|
|
37935
|
+
class rw extends Fi {
|
|
37936
37936
|
sprite = null;
|
|
37937
37937
|
texture = null;
|
|
37938
37938
|
placeholder = null;
|
|
@@ -37988,7 +37988,7 @@ class rw extends Bi {
|
|
|
37988
37988
|
}
|
|
37989
37989
|
}
|
|
37990
37990
|
}
|
|
37991
|
-
class lW extends
|
|
37991
|
+
class lW extends Fi {
|
|
37992
37992
|
texture;
|
|
37993
37993
|
sprite;
|
|
37994
37994
|
isPlaying;
|
|
@@ -38160,11 +38160,11 @@ const Uf = (e) => {
|
|
|
38160
38160
|
provider: It("google-cloud-storage"),
|
|
38161
38161
|
options: p(bW)
|
|
38162
38162
|
}).strict(), wW = A({
|
|
38163
|
-
folderId: y(),
|
|
38163
|
+
folderId: p(y()),
|
|
38164
38164
|
filename: p(y())
|
|
38165
38165
|
}).strict(), xW = A({
|
|
38166
38166
|
provider: It("google-drive"),
|
|
38167
|
-
options: wW
|
|
38167
|
+
options: p(wW)
|
|
38168
38168
|
}).strict(), CW = A({
|
|
38169
38169
|
playbackPolicy: p(Wt(j(["public", "signed"]))),
|
|
38170
38170
|
passthrough: p(y().max(255))
|
|
@@ -38376,7 +38376,7 @@ const GW = A({
|
|
|
38376
38376
|
}, P()), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
38377
38377
|
}).strict(), a5 = A({
|
|
38378
38378
|
find: y(),
|
|
38379
|
-
replace:
|
|
38379
|
+
replace: $i()
|
|
38380
38380
|
}).strict(), XW = A({
|
|
38381
38381
|
capture: E([F((e) => {
|
|
38382
38382
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -38420,7 +38420,7 @@ A({
|
|
|
38420
38420
|
A({
|
|
38421
38421
|
success: Ut(),
|
|
38422
38422
|
message: y(),
|
|
38423
|
-
response: b2(y(),
|
|
38423
|
+
response: b2(y(), $i())
|
|
38424
38424
|
}).strict();
|
|
38425
38425
|
const QW = A({
|
|
38426
38426
|
message: y(),
|
|
@@ -38456,7 +38456,7 @@ A({
|
|
|
38456
38456
|
}).strict();
|
|
38457
38457
|
const rH = A({
|
|
38458
38458
|
family: p(y()),
|
|
38459
|
-
weight: p(
|
|
38459
|
+
weight: p($i()).default("400"),
|
|
38460
38460
|
color: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
38461
38461
|
background: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
38462
38462
|
opacity: p(E([F((e) => {
|
|
@@ -38495,7 +38495,7 @@ const rH = A({
|
|
|
38495
38495
|
if (!(e === "" || e === null || e === void 0))
|
|
38496
38496
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
38497
38497
|
}, P().int().gte(1).lte(500)), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
38498
|
-
weight: p(
|
|
38498
|
+
weight: p($i()).default("400"),
|
|
38499
38499
|
color: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
38500
38500
|
opacity: p(E([F((e) => {
|
|
38501
38501
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -38680,7 +38680,7 @@ const rH = A({
|
|
|
38680
38680
|
if (!(e === "" || e === null || e === void 0))
|
|
38681
38681
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
38682
38682
|
}, P().int().gte(1).lte(500)), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
38683
|
-
weight: p(
|
|
38683
|
+
weight: p($i()).default("400"),
|
|
38684
38684
|
color: p(E([y().regex(/^#[A-Fa-f0-9]{6}$/), y().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
38685
38685
|
opacity: p(E([F((e) => {
|
|
38686
38686
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -39272,8 +39272,8 @@ const CH = A({
|
|
|
39272
39272
|
"zoom"
|
|
39273
39273
|
]))
|
|
39274
39274
|
}).strict(), zn = A({
|
|
39275
|
-
from: p(
|
|
39276
|
-
to: p(
|
|
39275
|
+
from: p($i()),
|
|
39276
|
+
to: p($i()),
|
|
39277
39277
|
start: p(E([F((e) => {
|
|
39278
39278
|
if (!(e === "" || e === null || e === void 0))
|
|
39279
39279
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
@@ -39843,7 +39843,7 @@ Vl.extend({
|
|
|
39843
39843
|
})
|
|
39844
39844
|
});
|
|
39845
39845
|
const nw = 1500, sw = 5e3, eG = 1e4;
|
|
39846
|
-
class Yl extends
|
|
39846
|
+
class Yl extends Fi {
|
|
39847
39847
|
fontRegistry = null;
|
|
39848
39848
|
layoutEngine = null;
|
|
39849
39849
|
captionLayout = null;
|
|
@@ -39891,7 +39891,7 @@ class Yl extends Bi {
|
|
|
39891
39891
|
return;
|
|
39892
39892
|
}
|
|
39893
39893
|
let r;
|
|
39894
|
-
if (t.src ?
|
|
39894
|
+
if (t.src ? Ki(t.src) ? (r = Yl.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0) : (r = await this.fetchAndParseSubtitle(t.src), this.resolvedPauseThreshold = 5) : r = (t.words ?? []).map((n) => ({
|
|
39895
39895
|
text: n.text,
|
|
39896
39896
|
start: n.start,
|
|
39897
39897
|
end: n.end,
|
|
@@ -39926,7 +39926,7 @@ class Yl extends Bi {
|
|
|
39926
39926
|
}
|
|
39927
39927
|
async reloadAsset() {
|
|
39928
39928
|
const t = this.clipConfiguration.asset;
|
|
39929
|
-
if (!t.src ||
|
|
39929
|
+
if (!t.src || Ki(t.src)) {
|
|
39930
39930
|
this.loadComplete && !this.isPlaceholder && (this.resolvedPauseThreshold = 500, this.words = Yl.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0, await this.reconfigure());
|
|
39931
39931
|
return;
|
|
39932
39932
|
}
|
|
@@ -40201,7 +40201,7 @@ class Yl extends Bi {
|
|
|
40201
40201
|
return !0;
|
|
40202
40202
|
}
|
|
40203
40203
|
}
|
|
40204
|
-
class
|
|
40204
|
+
class nr extends Fi {
|
|
40205
40205
|
static PREVIEW_FPS = 60;
|
|
40206
40206
|
/** CSS font-weight string → numeric value. Extends WEIGHT_MODIFIERS (@core/fonts/font-config.ts) with CSS aliases. */
|
|
40207
40207
|
static NAMED_WEIGHTS = {
|
|
@@ -40229,7 +40229,6 @@ class Ai extends Bi {
|
|
|
40229
40229
|
texture = null;
|
|
40230
40230
|
sprite = null;
|
|
40231
40231
|
lastRenderedTime = -1;
|
|
40232
|
-
cachedFrames = /* @__PURE__ */ new Map();
|
|
40233
40232
|
isRendering = !1;
|
|
40234
40233
|
pendingRenderTime = null;
|
|
40235
40234
|
// Stores time requested while rendering (race condition fix)
|
|
@@ -40243,15 +40242,15 @@ class Ai extends Bi {
|
|
|
40243
40242
|
return t.split("#", 1)[0].split("?", 1)[0];
|
|
40244
40243
|
}
|
|
40245
40244
|
static fetchFontBytes(t) {
|
|
40246
|
-
const i =
|
|
40245
|
+
const i = nr.getFontSourceCacheKey(t), r = nr.fontBytesCache.get(i);
|
|
40247
40246
|
if (r) return r;
|
|
40248
40247
|
const n = fetch(t).then((s) => {
|
|
40249
40248
|
if (!s.ok) throw new Error(`Failed to fetch font: ${s.status}`);
|
|
40250
40249
|
return s.arrayBuffer();
|
|
40251
40250
|
}).catch((s) => {
|
|
40252
|
-
throw
|
|
40251
|
+
throw nr.fontBytesCache.delete(i), s;
|
|
40253
40252
|
});
|
|
40254
|
-
return
|
|
40253
|
+
return nr.fontBytesCache.set(i, n), n;
|
|
40255
40254
|
}
|
|
40256
40255
|
constructor(t, i) {
|
|
40257
40256
|
const { fit: r, ...n } = i;
|
|
@@ -40261,7 +40260,7 @@ class Ai extends Bi {
|
|
|
40261
40260
|
const r = t.font?.weight;
|
|
40262
40261
|
if (typeof r == "number") return r;
|
|
40263
40262
|
if (typeof r == "string") {
|
|
40264
|
-
const n =
|
|
40263
|
+
const n = nr.NAMED_WEIGHTS[r.toLowerCase().trim()];
|
|
40265
40264
|
if (n !== void 0) return n;
|
|
40266
40265
|
const s = parseInt(r, 10);
|
|
40267
40266
|
if (!Number.isNaN(s)) return s;
|
|
@@ -40293,13 +40292,13 @@ class Ai extends Bi {
|
|
|
40293
40292
|
}
|
|
40294
40293
|
async registerFont(t, i, r) {
|
|
40295
40294
|
if (!this.textEngine) return !1;
|
|
40296
|
-
const n =
|
|
40295
|
+
const n = nr.getFontSourceCacheKey(r.path), s = `${r.type}:${n}|${t}|${i}`, a = this.fontRegistrationCache.get(s);
|
|
40297
40296
|
if (a) return a;
|
|
40298
40297
|
const o = (async () => {
|
|
40299
40298
|
try {
|
|
40300
40299
|
const l = { family: t, weight: i.toString() };
|
|
40301
40300
|
if (r.type === "url") {
|
|
40302
|
-
const u = await
|
|
40301
|
+
const u = await nr.fetchFontBytes(r.path);
|
|
40303
40302
|
await this.textEngine.registerFontFromFile(new Blob([u]), l);
|
|
40304
40303
|
} else
|
|
40305
40304
|
await this.textEngine.registerFontFromFile(r.path, l);
|
|
@@ -40313,7 +40312,7 @@ class Ai extends Bi {
|
|
|
40313
40312
|
createFontCapabilityCheckPromise(t) {
|
|
40314
40313
|
return (async () => {
|
|
40315
40314
|
try {
|
|
40316
|
-
const i = await
|
|
40315
|
+
const i = await nr.fetchFontBytes(t);
|
|
40317
40316
|
return !!rp.parse(i).tables.fvar?.axes?.find((s) => s.tag === "wght");
|
|
40318
40317
|
} catch (i) {
|
|
40319
40318
|
return console.warn("Failed to check font capabilities:", i), !1;
|
|
@@ -40324,8 +40323,8 @@ class Ai extends Bi {
|
|
|
40324
40323
|
const r = await this.ensureFontRegistered(t);
|
|
40325
40324
|
if (!r)
|
|
40326
40325
|
return;
|
|
40327
|
-
const n =
|
|
40328
|
-
s ||
|
|
40326
|
+
const n = nr.getFontSourceCacheKey(r), s = nr.fontCapabilityCache.get(n), a = s ?? this.createFontCapabilityCheckPromise(r);
|
|
40327
|
+
s || nr.fontCapabilityCache.set(n, a), this.fontSupportsBold = await a, i && this.edit.getInternalEvents().emit(Rt.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
|
|
40329
40328
|
}
|
|
40330
40329
|
supportsBold() {
|
|
40331
40330
|
return this.fontSupportsBold;
|
|
@@ -40348,10 +40347,7 @@ class Ai extends Bi {
|
|
|
40348
40347
|
}
|
|
40349
40348
|
async reconfigure(t) {
|
|
40350
40349
|
try {
|
|
40351
|
-
await this.prepareFontForAsset(t, !0)
|
|
40352
|
-
for (const i of this.cachedFrames.values())
|
|
40353
|
-
i.destroy();
|
|
40354
|
-
if (this.cachedFrames.clear(), this.lastRenderedTime = -1, this.textEngine) {
|
|
40350
|
+
if (await this.prepareFontForAsset(t, !0), this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1, this.textEngine) {
|
|
40355
40351
|
const i = this.buildCanvasPayload(t), { value: r } = this.textEngine.validate(i);
|
|
40356
40352
|
this.validatedAsset = r;
|
|
40357
40353
|
}
|
|
@@ -40378,7 +40374,7 @@ class Ai extends Bi {
|
|
|
40378
40374
|
this.textEngine = await $j({
|
|
40379
40375
|
width: s.width,
|
|
40380
40376
|
height: s.height,
|
|
40381
|
-
fps:
|
|
40377
|
+
fps: nr.PREVIEW_FPS
|
|
40382
40378
|
});
|
|
40383
40379
|
const { value: a } = this.textEngine.validate(s);
|
|
40384
40380
|
this.validatedAsset = a, this.canvas = document.createElement("canvas"), this.canvas.width = s.width, this.canvas.height = s.height, this.renderer = this.textEngine.createRenderer(this.canvas), await this.prepareFontForAsset(t, !1), await this.renderFrame(0), this.configureKeyframes(), this.loadComplete = !0;
|
|
@@ -40398,21 +40394,13 @@ class Ai extends Bi {
|
|
|
40398
40394
|
this.renderer = null, this.canvas = null, this.validatedAsset = null;
|
|
40399
40395
|
}
|
|
40400
40396
|
async renderFrame(t) {
|
|
40401
|
-
if (!this.textEngine || !this.renderer || !this.canvas || !this.validatedAsset)
|
|
40402
|
-
|
|
40403
|
-
|
|
40404
|
-
|
|
40405
|
-
|
|
40406
|
-
|
|
40407
|
-
|
|
40408
|
-
try {
|
|
40409
|
-
const r = this.getLength(), n = await this.textEngine.renderFrame(this.validatedAsset, t, r), s = this.canvas.getContext("2d");
|
|
40410
|
-
s && s.clearRect(0, 0, this.canvas.width, this.canvas.height), await this.renderer.render(n);
|
|
40411
|
-
const a = K.Texture.from(this.canvas);
|
|
40412
|
-
this.sprite ? (this.texture && !this.cachedFrames.has(i) && this.texture.destroy(), this.sprite.texture = a) : (this.sprite = new K.Sprite(a), this.contentContainer.addChild(this.sprite)), this.texture = a, this.cachedFrames.size < 150 && this.cachedFrames.set(i, a), this.lastRenderedTime = t;
|
|
40413
|
-
} catch (r) {
|
|
40414
|
-
console.error("Failed to render rich text frame:", r);
|
|
40415
|
-
}
|
|
40397
|
+
if (!(!this.textEngine || !this.renderer || !this.canvas || !this.validatedAsset))
|
|
40398
|
+
try {
|
|
40399
|
+
const i = this.getLength(), r = await this.textEngine.renderFrame(this.validatedAsset, t, i), n = this.canvas.getContext("2d");
|
|
40400
|
+
n && n.clearRect(0, 0, this.canvas.width, this.canvas.height), await this.renderer.render(r), this.texture ? this.texture.source.update() : this.texture = K.Texture.from(this.canvas), this.sprite ? this.sprite.texture !== this.texture && (this.sprite.texture = this.texture) : (this.sprite = new K.Sprite(this.texture), this.contentContainer.addChild(this.sprite)), this.lastRenderedTime = t;
|
|
40401
|
+
} catch (i) {
|
|
40402
|
+
console.error("Failed to render rich text frame:", i);
|
|
40403
|
+
}
|
|
40416
40404
|
}
|
|
40417
40405
|
createFallbackText(t) {
|
|
40418
40406
|
const i = this.edit.getEdit(), r = this.clipConfiguration.width || i?.output?.size?.width || this.edit.size.width, n = this.clipConfiguration.height || i?.output?.size?.height || this.edit.size.height, s = new K.TextStyle({
|
|
@@ -40448,8 +40436,6 @@ class Ai extends Bi {
|
|
|
40448
40436
|
renderFrameSafe(t) {
|
|
40449
40437
|
if (this.isRendering) {
|
|
40450
40438
|
this.pendingRenderTime = t;
|
|
40451
|
-
const i = Math.floor(t * Ai.PREVIEW_FPS), r = this.cachedFrames.get(i);
|
|
40452
|
-
r && this.sprite && this.sprite.texture !== r && (this.sprite.texture = r);
|
|
40453
40439
|
return;
|
|
40454
40440
|
}
|
|
40455
40441
|
this.isRendering = !0, this.pendingRenderTime = null, this.currentRender = this.renderFrame(t).catch((i) => console.error("Failed to render rich text frame:", i)).finally(() => {
|
|
@@ -40483,10 +40469,7 @@ class Ai extends Bi {
|
|
|
40483
40469
|
this.renderFrameSafe(t), this.currentRender && await this.currentRender;
|
|
40484
40470
|
}
|
|
40485
40471
|
dispose() {
|
|
40486
|
-
super.dispose(), this.loadComplete = !1;
|
|
40487
|
-
for (const t of this.cachedFrames.values())
|
|
40488
|
-
t.destroy();
|
|
40489
|
-
this.cachedFrames.clear(), this.texture && !this.cachedFrames.has(Math.floor(this.lastRenderedTime * Ai.PREVIEW_FPS)) && this.texture.destroy(), this.texture = null, this.sprite && (this.sprite.destroy(), this.sprite = null), this.canvas && (this.canvas = null), this.textEngine && (this.textEngine.destroy(), this.textEngine = null), this.renderer = null, this.validatedAsset = null;
|
|
40472
|
+
super.dispose(), this.loadComplete = !1, this.texture?.destroy(), this.texture = null, this.sprite && (this.sprite.destroy(), this.sprite = null), this.canvas && (this.canvas = null), this.textEngine && (this.textEngine.destroy(), this.textEngine = null), this.renderer = null, this.validatedAsset = null;
|
|
40490
40473
|
}
|
|
40491
40474
|
getSize() {
|
|
40492
40475
|
const t = this.edit.getEdit();
|
|
@@ -40514,10 +40497,7 @@ class Ai extends Bi {
|
|
|
40514
40497
|
onDimensionsChanged() {
|
|
40515
40498
|
if (!this.textEngine || !this.renderer || !this.canvas) return;
|
|
40516
40499
|
const t = this.clipConfiguration.asset, { width: i, height: r } = this.getSize();
|
|
40517
|
-
this.canvas.width = i, this.canvas.height = r;
|
|
40518
|
-
for (const a of this.cachedFrames.values())
|
|
40519
|
-
a.destroy();
|
|
40520
|
-
this.cachedFrames.clear(), this.lastRenderedTime = -1;
|
|
40500
|
+
this.canvas.width = i, this.canvas.height = r, this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1;
|
|
40521
40501
|
const n = this.buildCanvasPayload(t), { value: s } = this.textEngine.validate(n);
|
|
40522
40502
|
this.validatedAsset = s, this.renderFrameSafe(this.getPlaybackTime());
|
|
40523
40503
|
}
|
|
@@ -40527,15 +40507,10 @@ class Ai extends Bi {
|
|
|
40527
40507
|
const r = this.buildCanvasPayload(i), { value: n } = this.textEngine.validate(r);
|
|
40528
40508
|
this.validatedAsset = n;
|
|
40529
40509
|
}
|
|
40530
|
-
|
|
40531
|
-
r.destroy();
|
|
40532
|
-
this.cachedFrames.clear(), this.lastRenderedTime = -1, this.textEngine && this.renderer && this.renderFrameSafe(this.getPlaybackTime());
|
|
40533
|
-
}
|
|
40534
|
-
getCacheSize() {
|
|
40535
|
-
return this.cachedFrames.size;
|
|
40510
|
+
this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1, this.textEngine && this.renderer && this.renderFrameSafe(this.getPlaybackTime());
|
|
40536
40511
|
}
|
|
40537
40512
|
}
|
|
40538
|
-
class iG extends
|
|
40513
|
+
class iG extends Fi {
|
|
40539
40514
|
shape;
|
|
40540
40515
|
shapeBackground;
|
|
40541
40516
|
constructor(t, i) {
|
|
@@ -40595,7 +40570,7 @@ class iG extends Bi {
|
|
|
40595
40570
|
return 1;
|
|
40596
40571
|
}
|
|
40597
40572
|
}
|
|
40598
|
-
class Yn extends
|
|
40573
|
+
class Yn extends Fi {
|
|
40599
40574
|
static resvgInitialized = !1;
|
|
40600
40575
|
static resvgInitPromise = null;
|
|
40601
40576
|
texture = null;
|
|
@@ -41099,7 +41074,7 @@ class xn {
|
|
|
41099
41074
|
};
|
|
41100
41075
|
}
|
|
41101
41076
|
}
|
|
41102
|
-
class ko extends
|
|
41077
|
+
class ko extends Fi {
|
|
41103
41078
|
static loadedFonts = /* @__PURE__ */ new Set();
|
|
41104
41079
|
background = null;
|
|
41105
41080
|
text = null;
|
|
@@ -41214,7 +41189,7 @@ class ko extends Bi {
|
|
|
41214
41189
|
ko.loadedFonts.clear();
|
|
41215
41190
|
}
|
|
41216
41191
|
}
|
|
41217
|
-
class aw extends
|
|
41192
|
+
class aw extends Fi {
|
|
41218
41193
|
aiOverlay = null;
|
|
41219
41194
|
lastPrompt = "";
|
|
41220
41195
|
constructor(t, i) {
|
|
@@ -41251,7 +41226,7 @@ class aw extends Bi {
|
|
|
41251
41226
|
this.aiOverlay?.dispose(), this.aiOverlay = null, super.dispose();
|
|
41252
41227
|
}
|
|
41253
41228
|
}
|
|
41254
|
-
class ow extends
|
|
41229
|
+
class ow extends Fi {
|
|
41255
41230
|
constructor(t, i) {
|
|
41256
41231
|
super(t, i, ze.TextToSpeech);
|
|
41257
41232
|
}
|
|
@@ -41265,7 +41240,7 @@ class ow extends Bi {
|
|
|
41265
41240
|
return { width: 0, height: 0 };
|
|
41266
41241
|
}
|
|
41267
41242
|
}
|
|
41268
|
-
class rG extends
|
|
41243
|
+
class rG extends Fi {
|
|
41269
41244
|
texture;
|
|
41270
41245
|
sprite;
|
|
41271
41246
|
placeholder;
|
|
@@ -41382,7 +41357,7 @@ class lw {
|
|
|
41382
41357
|
case "text":
|
|
41383
41358
|
return new ko(t, i);
|
|
41384
41359
|
case "rich-text":
|
|
41385
|
-
return new
|
|
41360
|
+
return new nr(t, i);
|
|
41386
41361
|
case "shape":
|
|
41387
41362
|
return new iG(t, i);
|
|
41388
41363
|
case "html":
|
|
@@ -42962,7 +42937,7 @@ function dw(e, t, i) {
|
|
|
42962
42937
|
const r = e.getDocumentClip(t, i);
|
|
42963
42938
|
if (!r) return null;
|
|
42964
42939
|
const n = r.asset?.src;
|
|
42965
|
-
if (!n || !
|
|
42940
|
+
if (!n || !Ki(n)) return null;
|
|
42966
42941
|
const s = iu(n);
|
|
42967
42942
|
return s ? Zy(e).find((o) => o.currentAlias === s) ?? null : null;
|
|
42968
42943
|
}
|
|
@@ -43106,7 +43081,7 @@ class gq {
|
|
|
43106
43081
|
for (let r = 0; r < t.length; r += 1) {
|
|
43107
43082
|
const n = t[r], s = i.timeline.tracks[r];
|
|
43108
43083
|
for (let a = 0; a < n.length; a += 1) {
|
|
43109
|
-
const o = n[a], l = s?.clips[a], u = o.getTimingIntent(), c =
|
|
43084
|
+
const o = n[a], l = s?.clips[a], u = o.getTimingIntent(), c = Ki(u.start), f = Ki(u.length);
|
|
43110
43085
|
if ((c || f) && l) {
|
|
43111
43086
|
const d = o.getStart(), h = o.getLength(), m = Math.abs(l.start - d) > 1e-3, v = Math.abs(l.length - h) > 1e-3;
|
|
43112
43087
|
(m || v) && (o.setResolvedTiming({
|
|
@@ -44121,13 +44096,13 @@ function xq(e) {
|
|
|
44121
44096
|
const s = e.getClipsInTrack(n);
|
|
44122
44097
|
for (let a = 0; a < s.length; a += 1) {
|
|
44123
44098
|
const o = s[a], l = o.alias ?? o.id, u = /* @__PURE__ */ new Set();
|
|
44124
|
-
if (
|
|
44099
|
+
if (Ki(o.start)) {
|
|
44125
44100
|
const c = iu(o.start);
|
|
44126
44101
|
if (!i.has(c))
|
|
44127
44102
|
throw new Error(`Alias reference "alias://${c}" not found. No clip defines alias "${c}".`);
|
|
44128
44103
|
u.add(c);
|
|
44129
44104
|
}
|
|
44130
|
-
if (
|
|
44105
|
+
if (Ki(o.length)) {
|
|
44131
44106
|
const c = iu(o.length);
|
|
44132
44107
|
if (!i.has(c))
|
|
44133
44108
|
throw new Error(`Alias reference "alias://${c}" not found. No clip defines alias "${c}".`);
|
|
@@ -44186,7 +44161,7 @@ function B5(e, t, i) {
|
|
|
44186
44161
|
let r;
|
|
44187
44162
|
if (e.start === "auto")
|
|
44188
44163
|
r = t;
|
|
44189
|
-
else if (
|
|
44164
|
+
else if (Ki(e.start)) {
|
|
44190
44165
|
const a = iu(e.start), o = i.get(a);
|
|
44191
44166
|
if (!o) throw new Error(`Internal error: Alias "${a}" not resolved.`);
|
|
44192
44167
|
r = o.start;
|
|
@@ -44197,7 +44172,7 @@ function B5(e, t, i) {
|
|
|
44197
44172
|
n = 1, s = !0;
|
|
44198
44173
|
else if (e.length === "auto")
|
|
44199
44174
|
n = 3;
|
|
44200
|
-
else if (
|
|
44175
|
+
else if (Ki(e.length)) {
|
|
44201
44176
|
const a = iu(e.length), o = i.get(a);
|
|
44202
44177
|
if (!o) throw new Error(`Internal error: Alias "${a}" not resolved.`);
|
|
44203
44178
|
n = o.length;
|
|
@@ -44625,7 +44600,7 @@ class Ao {
|
|
|
44625
44600
|
if (r?.clip.alias)
|
|
44626
44601
|
return this.resolve(), !0;
|
|
44627
44602
|
const n = r?.clip;
|
|
44628
|
-
if (n && (
|
|
44603
|
+
if (n && (Ki(n.start) || Ki(n.length)))
|
|
44629
44604
|
return this.resolve(), !0;
|
|
44630
44605
|
const s = i.layer - 1, a = this.tracks[s], o = a ? a.indexOf(i) : -1;
|
|
44631
44606
|
if (o < 0)
|
|
@@ -44899,7 +44874,7 @@ class Ao {
|
|
|
44899
44874
|
async autoLinkCaptionSources(t, i) {
|
|
44900
44875
|
for (let r = 0; r < i.length; r += 1) {
|
|
44901
44876
|
const s = i[r].asset;
|
|
44902
|
-
if (s.type === "rich-caption" &&
|
|
44877
|
+
if (s.type === "rich-caption" && Ki(s.src)) {
|
|
44903
44878
|
const a = Zy(this);
|
|
44904
44879
|
if (a.length > 0) {
|
|
44905
44880
|
const o = a[0], l = await I5(this, o.trackIndex, o.clipIndex);
|
|
@@ -45601,6 +45576,35 @@ class Ao {
|
|
|
45601
45576
|
getCanvasZoom() {
|
|
45602
45577
|
return this.canvas?.getZoom() ?? 1;
|
|
45603
45578
|
}
|
|
45579
|
+
/**
|
|
45580
|
+
* The clip's on-screen rectangle in CSS pixels, relative to the top-left
|
|
45581
|
+
* of the canvas element. Returns null when the clip is not visible at the
|
|
45582
|
+
* current playhead (its container isn't drawn then) — seek to the clip's
|
|
45583
|
+
* start first. Lets an external overlay anchor UI (e.g. a coach-mark) to a
|
|
45584
|
+
* clip; the caller adds `getCanvasElement().getBoundingClientRect()` to
|
|
45585
|
+
* convert to viewport coordinates. Clips animate and move with zoom, so
|
|
45586
|
+
* recompute per animation frame.
|
|
45587
|
+
* @internal
|
|
45588
|
+
*/
|
|
45589
|
+
getClipViewportRect(t, i) {
|
|
45590
|
+
const r = this.getPlayerClip(t, i);
|
|
45591
|
+
if (!r || !r.isActive() || !this.canvas) return null;
|
|
45592
|
+
const n = r.getContainer().getBounds(), s = this.canvas.application.renderer?.resolution ?? 1;
|
|
45593
|
+
return {
|
|
45594
|
+
left: n.x / s,
|
|
45595
|
+
top: n.y / s,
|
|
45596
|
+
width: n.width / s,
|
|
45597
|
+
height: n.height / s
|
|
45598
|
+
};
|
|
45599
|
+
}
|
|
45600
|
+
/**
|
|
45601
|
+
* The backing `<canvas>` DOM element, or null before the canvas is
|
|
45602
|
+
* attached. Pairs with {@link getClipViewportRect} to place an overlay.
|
|
45603
|
+
* @internal
|
|
45604
|
+
*/
|
|
45605
|
+
getCanvasElement() {
|
|
45606
|
+
return this.canvas?.application.canvas ?? null;
|
|
45607
|
+
}
|
|
45604
45608
|
/**
|
|
45605
45609
|
* Get the viewport container for coordinate transforms.
|
|
45606
45610
|
* @internal
|
|
@@ -45647,6 +45651,16 @@ class Ao {
|
|
|
45647
45651
|
const i = new OG(t);
|
|
45648
45652
|
return this.executeCommand(i);
|
|
45649
45653
|
}
|
|
45654
|
+
/**
|
|
45655
|
+
* Resolve once all in-flight asset loads have finished, including any that
|
|
45656
|
+
* begin after the initial `load()`. Await before driving playback or
|
|
45657
|
+
* capturing a frame so the canvas shows fully-loaded content rather than a
|
|
45658
|
+
* partially-loaded first frame.
|
|
45659
|
+
* @internal
|
|
45660
|
+
*/
|
|
45661
|
+
whenSettled() {
|
|
45662
|
+
return this.playerReconciler.whenSettled();
|
|
45663
|
+
}
|
|
45650
45664
|
/**
|
|
45651
45665
|
* Capture the rendered output frame as a base64 data URL.
|
|
45652
45666
|
*
|
|
@@ -46516,7 +46530,7 @@ const jy = (e) => {
|
|
|
46516
46530
|
}, as = (e) => {
|
|
46517
46531
|
const t = gt(e);
|
|
46518
46532
|
return t & 1 ? t + 1 >> 1 : -(t >> 1);
|
|
46519
|
-
},
|
|
46533
|
+
}, Xi = (e) => e.constructor === Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e), ui = (e) => e.constructor === DataView ? e : ArrayBuffer.isView(e) ? new DataView(e.buffer, e.byteOffset, e.byteLength) : new DataView(e), Ho = /* @__PURE__ */ new TextDecoder(), In = /* @__PURE__ */ new TextEncoder(), Wy = (e) => Object.fromEntries(Object.entries(e).map(([t, i]) => [i, t])), tl = {
|
|
46520
46534
|
bt709: 1,
|
|
46521
46535
|
// ITU-R BT.709
|
|
46522
46536
|
bt470bg: 5,
|
|
@@ -46590,7 +46604,7 @@ const Rq = /^[0-9a-fA-F]+$/, vu = (e) => [...e].map((t) => t.toString(16).padSta
|
|
|
46590
46604
|
}, xw = (e, t, i) => {
|
|
46591
46605
|
const r = Ue(e, i(t), i);
|
|
46592
46606
|
e.splice(r + 1, 0, t);
|
|
46593
|
-
},
|
|
46607
|
+
}, Ii = () => {
|
|
46594
46608
|
let e, t;
|
|
46595
46609
|
return { promise: new Promise((r, n) => {
|
|
46596
46610
|
e = r, t = n;
|
|
@@ -47637,7 +47651,7 @@ const lc = function* (e) {
|
|
|
47637
47651
|
}
|
|
47638
47652
|
}, iE = (e, t) => {
|
|
47639
47653
|
if (t.description) {
|
|
47640
|
-
const n = (
|
|
47654
|
+
const n = (Xi(t.description)[4] & 3) + 1;
|
|
47641
47655
|
return eE(e, n);
|
|
47642
47656
|
} else
|
|
47643
47657
|
return lc(e);
|
|
@@ -47676,7 +47690,7 @@ const lc = function* (e) {
|
|
|
47676
47690
|
return r;
|
|
47677
47691
|
}, pY = (e, t) => {
|
|
47678
47692
|
if (t.description) {
|
|
47679
|
-
const n = (
|
|
47693
|
+
const n = (Xi(t.description)[4] & 3) + 1;
|
|
47680
47694
|
return i1(e, n);
|
|
47681
47695
|
} else
|
|
47682
47696
|
return rE(e);
|
|
@@ -47901,13 +47915,13 @@ const lc = function* (e) {
|
|
|
47901
47915
|
e.skipBits(5), e.skipBits(5), e.skipBits(5), e.skipBits(5);
|
|
47902
47916
|
}, yY = (e, t) => {
|
|
47903
47917
|
if (t.description) {
|
|
47904
|
-
const n = (
|
|
47918
|
+
const n = (Xi(t.description)[21] & 3) + 1;
|
|
47905
47919
|
return i1(e, n);
|
|
47906
47920
|
} else
|
|
47907
47921
|
return rE(e);
|
|
47908
47922
|
}, Yf = (e, t) => {
|
|
47909
47923
|
if (t.description) {
|
|
47910
|
-
const n = (
|
|
47924
|
+
const n = (Xi(t.description)[21] & 3) + 1;
|
|
47911
47925
|
return eE(e, n);
|
|
47912
47926
|
} else
|
|
47913
47927
|
return lc(e);
|
|
@@ -48155,25 +48169,25 @@ const lc = function* (e) {
|
|
|
48155
48169
|
}
|
|
48156
48170
|
return new Uint8Array(t);
|
|
48157
48171
|
};
|
|
48158
|
-
var
|
|
48172
|
+
var Vi;
|
|
48159
48173
|
(function(e) {
|
|
48160
48174
|
e[e.audAllowed = 0] = "audAllowed", e[e.beforeFirstVcl = 1] = "beforeFirstVcl", e[e.afterFirstVcl = 2] = "afterFirstVcl", e[e.eoBitstreamAllowed = 3] = "eoBitstreamAllowed", e[e.noMoreDataAllowed = 4] = "noMoreDataAllowed";
|
|
48161
|
-
})(
|
|
48175
|
+
})(Vi || (Vi = {}));
|
|
48162
48176
|
const EY = (e, t) => {
|
|
48163
48177
|
const i = /* @__PURE__ */ new Set();
|
|
48164
|
-
let r =
|
|
48178
|
+
let r = Vi.audAllowed;
|
|
48165
48179
|
for (const s of Yf(e, t)) {
|
|
48166
|
-
if (r ===
|
|
48180
|
+
if (r === Vi.noMoreDataAllowed) {
|
|
48167
48181
|
i.add(s.offset);
|
|
48168
48182
|
continue;
|
|
48169
48183
|
}
|
|
48170
48184
|
const a = Cu(e[s.offset]);
|
|
48171
|
-
if (r ===
|
|
48185
|
+
if (r === Vi.eoBitstreamAllowed && a !== 37) {
|
|
48172
48186
|
i.add(s.offset);
|
|
48173
48187
|
continue;
|
|
48174
48188
|
}
|
|
48175
48189
|
let o = !1;
|
|
48176
|
-
a === 35 ? r >
|
|
48190
|
+
a === 35 ? r > Vi.audAllowed ? o = !0 : r = Vi.beforeFirstVcl : a <= 31 ? r > Vi.afterFirstVcl ? o = !0 : r = Vi.afterFirstVcl : a === 36 ? r !== Vi.afterFirstVcl ? o = !0 : r = Vi.eoBitstreamAllowed : a === 37 ? r < Vi.afterFirstVcl ? o = !0 : r = Vi.noMoreDataAllowed : a === 32 || a === 33 || a === 34 || a === 39 || a >= 41 && a <= 44 || a >= 48 && a <= 55 ? r > Vi.beforeFirstVcl ? o = !0 : r = Vi.beforeFirstVcl : (a === 38 || a === 40 || a >= 45 && a <= 47 || a >= 56 && a <= 63) && r < Vi.afterFirstVcl && (o = !0), o && i.add(s.offset);
|
|
48177
48191
|
}
|
|
48178
48192
|
if (i.size === 0)
|
|
48179
48193
|
return null;
|
|
@@ -48684,7 +48698,7 @@ const es = 8, Sa = 16, Bs = (e) => {
|
|
|
48684
48698
|
}
|
|
48685
48699
|
return t;
|
|
48686
48700
|
}, bn = (e) => {
|
|
48687
|
-
let t =
|
|
48701
|
+
let t = Ti(e);
|
|
48688
48702
|
return e.skip(2), t = Math.min(t, e.remainingLength), Ho.decode(Se(e, t));
|
|
48689
48703
|
}, zY = (e) => {
|
|
48690
48704
|
const t = Bs(e);
|
|
@@ -49127,7 +49141,7 @@ class n1 extends dE {
|
|
|
49127
49141
|
break;
|
|
49128
49142
|
const o = Jt(t);
|
|
49129
49143
|
t.skip(3), o === 0 ? (t.skip(8), a.timescale = bt(t), a.durationInMediaTimescale = bt(t)) : o === 1 && (t.skip(16), a.timescale = bt(t), a.durationInMediaTimescale = Br(t));
|
|
49130
|
-
let l =
|
|
49144
|
+
let l = Ti(t);
|
|
49131
49145
|
if (l > 0) {
|
|
49132
49146
|
a.languageCode = "";
|
|
49133
49147
|
for (let u = 0; u < 3; u++)
|
|
@@ -49193,14 +49207,14 @@ class n1 extends dE {
|
|
|
49193
49207
|
a.internalCodecId = f.name;
|
|
49194
49208
|
const d = f.name.toLowerCase();
|
|
49195
49209
|
if (a.info.type === "video") {
|
|
49196
|
-
t.skip(6 * 1 + 2 + 2 + 2 + 3 * 4), a.info.width =
|
|
49210
|
+
t.skip(6 * 1 + 2 + 2 + 2 + 3 * 4), a.info.width = Ti(t), a.info.height = Ti(t), a.info.squarePixelWidth = a.info.width, a.info.squarePixelHeight = a.info.height, t.skip(50), a.frmaCodecString = null, this.readContiguousBoxes(t.slice(t.filePos, c + f.totalSize - t.filePos));
|
|
49197
49211
|
const h = d === "encv" ? a.frmaCodecString : d;
|
|
49198
49212
|
a.frmaCodecString = null, h === "avc1" || h === "avc3" ? (a.info.codec = "avc", a.info.avcType = h === "avc1" ? 1 : 3) : h === "hvc1" || h === "hev1" ? a.info.codec = "hevc" : h === "vp08" ? a.info.codec = "vp8" : h === "vp09" ? a.info.codec = "vp9" : h === "av01" ? a.info.codec = "av1" : Fa.includes(d) ? (a.info.codec = "prores", a.info.proresFormat = d) : h === null ? Qt._warn("Unknown encrypted video codec due to missing frma box.") : Qt._warn(`Unsupported video codec (sample entry type '${f.name}').`);
|
|
49199
49213
|
} else {
|
|
49200
49214
|
t.skip(6 * 1 + 2);
|
|
49201
|
-
const h =
|
|
49215
|
+
const h = Ti(t);
|
|
49202
49216
|
t.skip(3 * 2);
|
|
49203
|
-
let m =
|
|
49217
|
+
let m = Ti(t), v = Ti(t);
|
|
49204
49218
|
t.skip(2 * 2);
|
|
49205
49219
|
let g = bt(t) / 65536, w = null;
|
|
49206
49220
|
o === 0 && h > 0 && (h === 1 ? (t.skip(4), v = 8 * bt(t), t.skip(2 * 4)) : h === 2 && (t.skip(4), g = BE(t), m = bt(t), t.skip(4), v = bt(t), w = bt(t), t.skip(2 * 4))), a.info.numberOfChannels = m, a.info.sampleRate = g, a.frmaCodecString = null, this.readContiguousBoxes(t.slice(t.filePos, c + f.totalSize - t.filePos));
|
|
@@ -49350,7 +49364,7 @@ class n1 extends dE {
|
|
|
49350
49364
|
const o = Qr(t, 4);
|
|
49351
49365
|
if (o !== "nclx" && o !== "nclc")
|
|
49352
49366
|
break;
|
|
49353
|
-
const l =
|
|
49367
|
+
const l = Ti(t), u = Ti(t), c = Ti(t);
|
|
49354
49368
|
let f;
|
|
49355
49369
|
o === "nclx" && (f = !!(Jt(t) & 128)), a.info.colorSpace = {
|
|
49356
49370
|
primaries: M5[l],
|
|
@@ -49409,7 +49423,7 @@ class n1 extends dE {
|
|
|
49409
49423
|
const a = this.currentTrack;
|
|
49410
49424
|
if (!a)
|
|
49411
49425
|
break;
|
|
49412
|
-
N(a.info?.type === "audio"), a.info.pcmLittleEndian = !!(
|
|
49426
|
+
N(a.info?.type === "audio"), a.info.pcmLittleEndian = !!(Ti(t) & 255);
|
|
49413
49427
|
}
|
|
49414
49428
|
break;
|
|
49415
49429
|
case "pcmC":
|
|
@@ -49428,7 +49442,7 @@ class n1 extends dE {
|
|
|
49428
49442
|
if (!a)
|
|
49429
49443
|
break;
|
|
49430
49444
|
N(a.info?.type === "audio"), t.skip(1);
|
|
49431
|
-
const o = Jt(t), l =
|
|
49445
|
+
const o = Jt(t), l = Ti(t), u = bt(t), c = im(t), f = Jt(t);
|
|
49432
49446
|
let d;
|
|
49433
49447
|
f !== 0 ? d = Se(t, 2 + o) : d = new Uint8Array(0);
|
|
49434
49448
|
const h = new Uint8Array(19 + d.byteLength), m = new DataView(h.buffer);
|
|
@@ -49647,7 +49661,7 @@ class n1 extends dE {
|
|
|
49647
49661
|
const o = bt(t), l = this.tracks.find((C) => C.id === o);
|
|
49648
49662
|
if (!l)
|
|
49649
49663
|
break;
|
|
49650
|
-
const u = bt(t), c = (u & 48) >> 4, f = (u & 12) >> 2, d = u & 3, h = [Jt,
|
|
49664
|
+
const u = bt(t), c = (u & 48) >> 4, f = (u & 12) >> 2, d = u & 3, h = [Jt, Ti, Is, bt], m = h[c], v = h[f], g = h[d], w = bt(t);
|
|
49651
49665
|
for (let C = 0; C < w; C++) {
|
|
49652
49666
|
const x = a === 1 ? Br(t) : bt(t), _ = a === 1 ? Br(t) : bt(t);
|
|
49653
49667
|
m(t), v(t), g(t), l.fragmentLookupTable.push({
|
|
@@ -49834,10 +49848,10 @@ class n1 extends dE {
|
|
|
49834
49848
|
f > 0 ? h.set(Se(t, f), 0) : h.set(a.encryptionInfo.defaultConstantIv, 0);
|
|
49835
49849
|
let m = null;
|
|
49836
49850
|
if (u) {
|
|
49837
|
-
const g =
|
|
49851
|
+
const g = Ti(t);
|
|
49838
49852
|
m = [];
|
|
49839
49853
|
for (let w = 0; w < g; w++) {
|
|
49840
|
-
const C =
|
|
49854
|
+
const C = Ti(t), x = bt(t);
|
|
49841
49855
|
m.push({ clearLen: C, protectedLen: x });
|
|
49842
49856
|
}
|
|
49843
49857
|
}
|
|
@@ -50457,10 +50471,10 @@ const Kp = (e, t) => {
|
|
|
50457
50471
|
s > 0 ? u.set(Se(n, s), 0) : u.set(t.defaultConstantIv, 0);
|
|
50458
50472
|
let c = null;
|
|
50459
50473
|
if (l > s) {
|
|
50460
|
-
const f =
|
|
50474
|
+
const f = Ti(n);
|
|
50461
50475
|
c = [];
|
|
50462
50476
|
for (let d = 0; d < f; d++) {
|
|
50463
|
-
const h =
|
|
50477
|
+
const h = Ti(n), m = bt(n);
|
|
50464
50478
|
c.push({ clearLen: h, protectedLen: m });
|
|
50465
50479
|
}
|
|
50466
50480
|
}
|
|
@@ -52562,7 +52576,7 @@ class sX {
|
|
|
52562
52576
|
offset: t
|
|
52563
52577
|
}), v.length === 0)
|
|
52564
52578
|
return N(l), l;
|
|
52565
|
-
const { promise: g, resolve: w, reject: C } =
|
|
52579
|
+
const { promise: g, resolve: w, reject: C } = Ii(), x = [];
|
|
52566
52580
|
for (const S of v) {
|
|
52567
52581
|
const k = Math.max(t, S.start), z = Math.min(i, S.end);
|
|
52568
52582
|
k === S.start && z === S.end ? x.push(S) : k < z && x.push({ start: k, end: z });
|
|
@@ -53069,7 +53083,7 @@ const tm = [
|
|
|
53069
53083
|
// 4:4:4 BGRX (opaque)
|
|
53070
53084
|
"BGRX"
|
|
53071
53085
|
], gX = new Set(tm);
|
|
53072
|
-
class
|
|
53086
|
+
class Yi {
|
|
53073
53087
|
/** The width of the frame in pixels. */
|
|
53074
53088
|
get codedWidth() {
|
|
53075
53089
|
return this.visibleRect.width;
|
|
@@ -53153,7 +53167,7 @@ class Xi {
|
|
|
53153
53167
|
top: i.visibleRect?.top ?? 0,
|
|
53154
53168
|
width: i.visibleRect?.width ?? i.codedWidth,
|
|
53155
53169
|
height: i.visibleRect?.height ?? i.codedHeight
|
|
53156
|
-
}, i.displayWidth !== void 0 ? (this.squarePixelWidth = this.rotation % 180 === 0 ? i.displayWidth : i.displayHeight, this.squarePixelHeight = this.rotation % 180 === 0 ? i.displayHeight : i.displayWidth) : (this.squarePixelWidth = this.visibleRect.width, this.squarePixelHeight = this.visibleRect.height), this._data = i._doNotCopy ?
|
|
53170
|
+
}, i.displayWidth !== void 0 ? (this.squarePixelWidth = this.rotation % 180 === 0 ? i.displayWidth : i.displayHeight, this.squarePixelHeight = this.rotation % 180 === 0 ? i.displayHeight : i.displayWidth) : (this.squarePixelWidth = this.visibleRect.width, this.squarePixelHeight = this.visibleRect.height), this._data = i._doNotCopy ? Xi(t) : Xi(t).slice(), this._layout = r, this.colorSpace = new B0(n);
|
|
53157
53171
|
} else if (typeof VideoFrame < "u" && t instanceof VideoFrame) {
|
|
53158
53172
|
if (i?.rotation !== void 0 && ![0, 90, 180, 270].includes(i.rotation))
|
|
53159
53173
|
throw new TypeError("init.rotation, when provided, must be 0, 90, 180, or 270.");
|
|
@@ -53177,7 +53191,7 @@ class Xi {
|
|
|
53177
53191
|
if (i.duration !== void 0 && (!Number.isFinite(i.duration) || i.duration < 0))
|
|
53178
53192
|
throw new TypeError("init.duration, when provided, must be a non-negative number.");
|
|
53179
53193
|
if (typeof VideoFrame < "u")
|
|
53180
|
-
return new
|
|
53194
|
+
return new Yi(new VideoFrame(t, {
|
|
53181
53195
|
timestamp: Math.trunc(i.timestamp * Os),
|
|
53182
53196
|
// Drag 0 to undefined
|
|
53183
53197
|
duration: Math.trunc((i.duration ?? 0) * Os) || void 0
|
|
@@ -53234,17 +53248,17 @@ class Xi {
|
|
|
53234
53248
|
clone() {
|
|
53235
53249
|
if (this._closed)
|
|
53236
53250
|
throw new Error("VideoSample is closed.");
|
|
53237
|
-
return N(this._data !== null), this._data instanceof pa ? new
|
|
53251
|
+
return N(this._data !== null), this._data instanceof pa ? new Yi(this._data, {
|
|
53238
53252
|
timestamp: this.timestamp,
|
|
53239
53253
|
duration: this.duration,
|
|
53240
53254
|
rotation: this.rotation,
|
|
53241
53255
|
encodeOptions: this.encodeOptions
|
|
53242
|
-
}) : Il(this._data) ? new
|
|
53256
|
+
}) : Il(this._data) ? new Yi(this._data.clone(), {
|
|
53243
53257
|
timestamp: this.timestamp,
|
|
53244
53258
|
duration: this.duration,
|
|
53245
53259
|
rotation: this.rotation,
|
|
53246
53260
|
encodeOptions: this.encodeOptions
|
|
53247
|
-
}) : this._data instanceof Uint8Array ? (N(this._layout), new
|
|
53261
|
+
}) : this._data instanceof Uint8Array ? (N(this._layout), new Yi(this._data, {
|
|
53248
53262
|
format: this.format,
|
|
53249
53263
|
layout: this._layout,
|
|
53250
53264
|
codedWidth: this.codedWidth,
|
|
@@ -53259,7 +53273,7 @@ class Xi {
|
|
|
53259
53273
|
encodeOptions: this.encodeOptions,
|
|
53260
53274
|
// It's already been copied, if we copy it again we make the clone unnecessarily expensive
|
|
53261
53275
|
_doNotCopy: !0
|
|
53262
|
-
})) : new
|
|
53276
|
+
})) : new Yi(this._data, {
|
|
53263
53277
|
format: this.format,
|
|
53264
53278
|
codedWidth: this.codedWidth,
|
|
53265
53279
|
codedHeight: this.codedHeight,
|
|
@@ -53312,7 +53326,7 @@ class Xi {
|
|
|
53312
53326
|
duration: this.duration,
|
|
53313
53327
|
rotation: this.rotation
|
|
53314
53328
|
}, i.colorSpace ?? "srgb"), !1);
|
|
53315
|
-
if (!(c instanceof
|
|
53329
|
+
if (!(c instanceof Yi))
|
|
53316
53330
|
throw new TypeError("toRgbSample() must return a VideoSample.");
|
|
53317
53331
|
if (!["RGBA", "RGBX", "BGRA", "BGRX"].includes(c.format))
|
|
53318
53332
|
throw new Error(`Sample returned by toRgbSample was expected to have an RGB format, got '${c.format}' instead.`);
|
|
@@ -53330,7 +53344,7 @@ class Xi {
|
|
|
53330
53344
|
}
|
|
53331
53345
|
const r = jw(this, i);
|
|
53332
53346
|
N(this.format);
|
|
53333
|
-
const n =
|
|
53347
|
+
const n = Xi(t);
|
|
53334
53348
|
if (n.byteLength < r.allocationSize)
|
|
53335
53349
|
throw new TypeError(`Destination buffer too small. Required: ${r.allocationSize}, Available: ${n.byteLength}`);
|
|
53336
53350
|
const s = bh(this.format);
|
|
@@ -53353,7 +53367,7 @@ class Xi {
|
|
|
53353
53367
|
N(c);
|
|
53354
53368
|
const f = c.getImageData(0, 0, this.codedWidth, this.codedHeight);
|
|
53355
53369
|
a = [{
|
|
53356
|
-
data:
|
|
53370
|
+
data: Xi(f.data),
|
|
53357
53371
|
stride: 4 * this.codedWidth
|
|
53358
53372
|
}];
|
|
53359
53373
|
}
|
|
@@ -53614,7 +53628,7 @@ class Xi {
|
|
|
53614
53628
|
fit: f.fit,
|
|
53615
53629
|
rotation: f.rotation,
|
|
53616
53630
|
crop: f.crop
|
|
53617
|
-
}), new
|
|
53631
|
+
}), new Yi(d, {
|
|
53618
53632
|
timestamp: this.timestamp,
|
|
53619
53633
|
duration: this.duration,
|
|
53620
53634
|
rotation: 0
|
|
@@ -54715,16 +54729,16 @@ class DE {
|
|
|
54715
54729
|
if (ma(r), this._track.input._disposed)
|
|
54716
54730
|
throw new wr();
|
|
54717
54731
|
const n = [];
|
|
54718
|
-
let { promise: s, resolve: a } =
|
|
54732
|
+
let { promise: s, resolve: a } = Ii(), { promise: o, resolve: l } = Ii(), u = !1, c = !1, f = null, d = !1;
|
|
54719
54733
|
const h = [], m = () => Math.max(2, h.length);
|
|
54720
54734
|
(async () => {
|
|
54721
54735
|
let g = t ?? await this.getFirstPacket(r);
|
|
54722
54736
|
for (; g && !c && !this._track.input._disposed && !(i && g.sequenceNumber >= i?.sequenceNumber); ) {
|
|
54723
54737
|
if (n.length > m()) {
|
|
54724
|
-
({ promise: o, resolve: l } =
|
|
54738
|
+
({ promise: o, resolve: l } = Ii()), await o;
|
|
54725
54739
|
continue;
|
|
54726
54740
|
}
|
|
54727
|
-
n.push(g), a(), { promise: s, resolve: a } =
|
|
54741
|
+
n.push(g), a(), { promise: s, resolve: a } = Ii(), g = await this.getNextPacket(g, r);
|
|
54728
54742
|
}
|
|
54729
54743
|
u = !0, a();
|
|
54730
54744
|
})().catch((g) => {
|
|
@@ -54774,7 +54788,7 @@ class RX {
|
|
|
54774
54788
|
mediaSamplesInRange(t = -1 / 0, i = 1 / 0, r) {
|
|
54775
54789
|
Na(t), Na(i);
|
|
54776
54790
|
const n = [];
|
|
54777
|
-
let s = !1, a = null, { promise: o, resolve: l } =
|
|
54791
|
+
let s = !1, a = null, { promise: o, resolve: l } = Ii(), { promise: u, resolve: c } = Ii(), f = !1, d = !1, h = !1, m = null, v = !1;
|
|
54778
54792
|
const g = {
|
|
54779
54793
|
...r,
|
|
54780
54794
|
verifyKeyPackets: !0,
|
|
@@ -54786,7 +54800,7 @@ class RX {
|
|
|
54786
54800
|
B.close();
|
|
54787
54801
|
return;
|
|
54788
54802
|
}
|
|
54789
|
-
a && (B.timestamp > t ? (n.push(a), s = !0) : a.close()), B.timestamp >= t && (n.push(B), s = !0), a = s ? null : B, n.length > 0 && (l(), { promise: o, resolve: l } =
|
|
54803
|
+
a && (B.timestamp > t ? (n.push(a), s = !0) : a.close()), B.timestamp >= t && (n.push(B), s = !0), a = s ? null : B, n.length > 0 && (l(), { promise: o, resolve: l } = Ii());
|
|
54790
54804
|
}, (B) => {
|
|
54791
54805
|
v || (m = B, v = !0, l());
|
|
54792
54806
|
}), _ = this._createPacketSink(), S = await _.getKeyPacket(t, g) ?? await _.getFirstKeyPacket(g);
|
|
@@ -54795,7 +54809,7 @@ class RX {
|
|
|
54795
54809
|
for (await T.next(); k && !d && !this._track.input._disposed; ) {
|
|
54796
54810
|
const B = Ww(n.length);
|
|
54797
54811
|
if (n.length + x.getDecodeQueueSize() > B) {
|
|
54798
|
-
({ promise: u, resolve: c } =
|
|
54812
|
+
({ promise: u, resolve: c } = Ii()), await u;
|
|
54799
54813
|
continue;
|
|
54800
54814
|
}
|
|
54801
54815
|
x.decode(k);
|
|
@@ -54846,9 +54860,9 @@ class RX {
|
|
|
54846
54860
|
mediaSamplesAtTimestamps(t, i) {
|
|
54847
54861
|
$q(t);
|
|
54848
54862
|
const r = Lq(t), n = [], s = [];
|
|
54849
|
-
let { promise: a, resolve: o } =
|
|
54863
|
+
let { promise: a, resolve: o } = Ii(), { promise: l, resolve: u } = Ii(), c = !1, f = !1, d = null, h = !1;
|
|
54850
54864
|
const m = (C) => {
|
|
54851
|
-
s.push(C), o(), { promise: a, resolve: o } =
|
|
54865
|
+
s.push(C), o(), { promise: a, resolve: o } = Ii();
|
|
54852
54866
|
}, v = {
|
|
54853
54867
|
...i,
|
|
54854
54868
|
verifyKeyPackets: !0,
|
|
@@ -54878,7 +54892,7 @@ class RX {
|
|
|
54878
54892
|
for (C.decode(B); B.sequenceNumber < k; ) {
|
|
54879
54893
|
const D = Ww(s.length);
|
|
54880
54894
|
for (; s.length + C.getDecodeQueueSize() > D && !f; )
|
|
54881
|
-
({ promise: l, resolve: u } =
|
|
54895
|
+
({ promise: l, resolve: u } = Ii()), await l;
|
|
54882
54896
|
if (f)
|
|
54883
54897
|
break;
|
|
54884
54898
|
const $ = await x.getNextPacket(B, v);
|
|
@@ -54946,7 +54960,7 @@ class VX extends OX {
|
|
|
54946
54960
|
const o = IE.find((l) => l.supports(r, n));
|
|
54947
54961
|
if (o)
|
|
54948
54962
|
this.customDecoder = new o(), this.customDecoder.codec = r, this.customDecoder.config = n, this.customDecoder.onSample = (l) => {
|
|
54949
|
-
if (!(l instanceof
|
|
54963
|
+
if (!(l instanceof Yi))
|
|
54950
54964
|
throw new TypeError("The argument passed to onSample must be a VideoSample.");
|
|
54951
54965
|
this.finalizeAndEmitSample(l);
|
|
54952
54966
|
}, this.customDecoder.onError = (l) => {
|
|
@@ -54961,7 +54975,7 @@ class VX extends OX {
|
|
|
54961
54975
|
this.colorQueue.push(c);
|
|
54962
54976
|
};
|
|
54963
54977
|
if (r === "avc" && this.decoderConfig.description && qp()) {
|
|
54964
|
-
const c = gY(
|
|
54978
|
+
const c = gY(Xi(this.decoderConfig.description));
|
|
54965
54979
|
if (c && c.sequenceParameterSets.length > 0) {
|
|
54966
54980
|
const f = aE(c.sequenceParameterSets[0]);
|
|
54967
54981
|
f && f.frameMbsOnlyFlag === 0 && (this.decoderConfig = {
|
|
@@ -55102,17 +55116,17 @@ class VX extends OX {
|
|
|
55102
55116
|
t.setTimestamp(Math.round(t.timestamp * this.timeResolution) / this.timeResolution), t.setDuration(Math.round(t.duration * this.timeResolution) / this.timeResolution), t.setRotation(this.rotation), this.onSample(t);
|
|
55103
55117
|
}
|
|
55104
55118
|
async mergeAlpha(t, i) {
|
|
55105
|
-
const r =
|
|
55119
|
+
const r = Ii();
|
|
55106
55120
|
this.mergeAlphaPromises.push(r.promise);
|
|
55107
55121
|
const n = { sample: null };
|
|
55108
55122
|
this.finalSamples.push(n);
|
|
55109
55123
|
try {
|
|
55110
55124
|
if (!i)
|
|
55111
|
-
n.sample = new
|
|
55125
|
+
n.sample = new Yi(t);
|
|
55112
55126
|
else {
|
|
55113
55127
|
N(this.merger);
|
|
55114
55128
|
const s = await this.merger.merge(t, i);
|
|
55115
|
-
n.sample = new
|
|
55129
|
+
n.sample = new Yi(s);
|
|
55116
55130
|
}
|
|
55117
55131
|
for (; this.finalSamples.length > 0 && this.finalSamples[0].sample !== null; ) {
|
|
55118
55132
|
const s = this.finalSamples.shift();
|
|
@@ -55167,7 +55181,7 @@ class LX {
|
|
|
55167
55181
|
}), this.workers.push(l);
|
|
55168
55182
|
}
|
|
55169
55183
|
}
|
|
55170
|
-
const r = this.nextRequestId++, n =
|
|
55184
|
+
const r = this.nextRequestId++, n = Ii();
|
|
55171
55185
|
this.pendingRequests.set(r, n);
|
|
55172
55186
|
const s = this.workers[this.nextWorkerIndex];
|
|
55173
55187
|
return this.nextWorkerIndex = (this.nextWorkerIndex + 1) % this.workers.length, s.postMessage({ id: r, color: t, alpha: i }, { transfer: [t, i] }), n.promise;
|
|
@@ -56456,7 +56470,7 @@ const Rn = (e, t) => {
|
|
|
56456
56470
|
Rn(e, t);
|
|
56457
56471
|
const i = e.bytes.subarray(e.bufferPos, e.bufferPos + t);
|
|
56458
56472
|
return e.bufferPos += t, i;
|
|
56459
|
-
}, Jt = (e) => (Rn(e, 1), e.view.getUint8(e.bufferPos++)),
|
|
56473
|
+
}, Jt = (e) => (Rn(e, 1), e.view.getUint8(e.bufferPos++)), Ti = (e) => {
|
|
56460
56474
|
Rn(e, 2);
|
|
56461
56475
|
const t = e.view.getUint16(e.bufferPos, !1);
|
|
56462
56476
|
return e.bufferPos += 2, t;
|
|
@@ -56959,10 +56973,10 @@ const ne = /* @__PURE__ */ new Uint8Array(8), Ur = /* @__PURE__ */ new DataView(
|
|
|
56959
56973
|
// Full range flag
|
|
56960
56974
|
]), wK = (e) => e.info.decoderConfig && zt("avcC", [
|
|
56961
56975
|
// For AVC, description is an AVCDecoderConfigurationRecord, so nothing else to do here
|
|
56962
|
-
...
|
|
56976
|
+
...Xi(e.info.decoderConfig.description)
|
|
56963
56977
|
]), xK = (e) => e.info.decoderConfig && zt("hvcC", [
|
|
56964
56978
|
// For HEVC, description is an HEVCDecoderConfigurationRecord, so nothing else to do here
|
|
56965
|
-
...
|
|
56979
|
+
...Xi(e.info.decoderConfig.description)
|
|
56966
56980
|
]), Kw = (e) => {
|
|
56967
56981
|
if (!e.info.decoderConfig)
|
|
56968
56982
|
return null;
|
|
@@ -57090,7 +57104,7 @@ const ne = /* @__PURE__ */ new Uint8Array(8), Ur = /* @__PURE__ */ new DataView(
|
|
|
57090
57104
|
// avg bitrate
|
|
57091
57105
|
];
|
|
57092
57106
|
if (e.info.decoderConfig.description) {
|
|
57093
|
-
const r =
|
|
57107
|
+
const r = Xi(e.info.decoderConfig.description);
|
|
57094
57108
|
i = [
|
|
57095
57109
|
...i,
|
|
57096
57110
|
...ni(5),
|
|
@@ -57137,7 +57151,7 @@ const ne = /* @__PURE__ */ new Uint8Array(8), Ur = /* @__PURE__ */ new DataView(
|
|
|
57137
57151
|
const o = e.info.decoderConfig?.description;
|
|
57138
57152
|
if (o) {
|
|
57139
57153
|
N(o.byteLength >= 18);
|
|
57140
|
-
const l =
|
|
57154
|
+
const l = Xi(o), u = AY(l);
|
|
57141
57155
|
t = u.outputChannelCount, i = u.preSkip, r = u.inputSampleRate, n = u.outputGain, s = u.channelMappingFamily, u.channelMappingTable && (a = u.channelMappingTable);
|
|
57142
57156
|
}
|
|
57143
57157
|
return zt("dOps", [
|
|
@@ -57158,7 +57172,7 @@ const ne = /* @__PURE__ */ new Uint8Array(8), Ur = /* @__PURE__ */ new DataView(
|
|
|
57158
57172
|
}, AK = (e) => {
|
|
57159
57173
|
const t = e.info.decoderConfig?.description;
|
|
57160
57174
|
N(t);
|
|
57161
|
-
const i =
|
|
57175
|
+
const i = Xi(t);
|
|
57162
57176
|
return _e("dfLa", 0, 0, [
|
|
57163
57177
|
...i.subarray(4)
|
|
57164
57178
|
]);
|
|
@@ -57956,7 +57970,7 @@ const sn = 57600, lJ = 2082844800, uJ = (e) => {
|
|
|
57956
57970
|
};
|
|
57957
57971
|
class cJ extends qX {
|
|
57958
57972
|
constructor(t, i) {
|
|
57959
|
-
super(t), this.writer = null, this.boxWriter = null, this.initWriter = null, this.initBoxWriter = null, this.auxTarget = new af(), this.auxWriter = new rm(this.auxTarget, !1), this.auxBoxWriter = new Uc(this.auxWriter), this.mdat = null, this.ftypSize = null, this.trackDatas = [], this.allTracksKnown =
|
|
57973
|
+
super(t), this.writer = null, this.boxWriter = null, this.initWriter = null, this.initBoxWriter = null, this.auxTarget = new af(), this.auxWriter = new rm(this.auxTarget, !1), this.auxBoxWriter = new Uc(this.auxWriter), this.mdat = null, this.ftypSize = null, this.trackDatas = [], this.allTracksKnown = Ii(), this.creationTime = Math.floor(Date.now() / 1e3) + lJ, this.finalizedChunks = [], this.nextFragmentNumber = 1, this.maxWrittenTimestamp = -1 / 0, this.minWrittenTimestamp = 1 / 0, this.maxWrittenEndTimestamp = -1 / 0, this.segmentHeaderSize = null, this.format = i, this.isQuickTime = i instanceof GE, this.isCmaf = i instanceof e4, this.minimumFragmentDuration = i._options.minimumFragmentDuration ?? (i instanceof e4 ? 1 / 0 : 1);
|
|
57960
57974
|
}
|
|
57961
57975
|
async start() {
|
|
57962
57976
|
const t = await this.mutex.acquire();
|
|
@@ -58776,7 +58790,7 @@ class dJ {
|
|
|
58776
58790
|
let s = r.transform.process(t);
|
|
58777
58791
|
if (s instanceof Promise && (s = await s), s === null)
|
|
58778
58792
|
return;
|
|
58779
|
-
Array.isArray(s) || (s = [s]), n = s.map((a) => a instanceof
|
|
58793
|
+
Array.isArray(s) || (s = [s]), n = s.map((a) => a instanceof Yi ? a : typeof VideoFrame < "u" && a instanceof VideoFrame ? new Yi(a) : new Yi(a, {
|
|
58780
58794
|
timestamp: t.timestamp,
|
|
58781
58795
|
duration: t.duration
|
|
58782
58796
|
}));
|
|
@@ -58959,7 +58973,7 @@ class hJ {
|
|
|
58959
58973
|
this.pendingRequests.clear();
|
|
58960
58974
|
});
|
|
58961
58975
|
}
|
|
58962
|
-
const i = this.nextRequestId++, r =
|
|
58976
|
+
const i = this.nextRequestId++, r = Ii();
|
|
58963
58977
|
return this.pendingRequests.set(i, r), this.worker.postMessage({ id: i, sourceFrame: t }, { transfer: [t] }), r.promise;
|
|
58964
58978
|
}
|
|
58965
58979
|
close() {
|
|
@@ -59065,7 +59079,7 @@ class mJ extends ZE {
|
|
|
59065
59079
|
throw new TypeError("timestamp must be a non-negative number.");
|
|
59066
59080
|
if (!Number.isFinite(i) || i < 0)
|
|
59067
59081
|
throw new TypeError("duration must be a non-negative number.");
|
|
59068
|
-
const n = new
|
|
59082
|
+
const n = new Yi(this._canvas, { timestamp: t, duration: i });
|
|
59069
59083
|
return this._encoder.add(n, !0, r);
|
|
59070
59084
|
}
|
|
59071
59085
|
/** @internal */
|
|
@@ -59236,7 +59250,7 @@ class gJ {
|
|
|
59236
59250
|
output: (l, u) => {
|
|
59237
59251
|
if (this.encodingConfig.codec === "aac" && u?.decoderConfig) {
|
|
59238
59252
|
let f = !1;
|
|
59239
|
-
if (!u.decoderConfig.description || u.decoderConfig.description.byteLength < 2 ? f = !0 : f = Jy(
|
|
59253
|
+
if (!u.decoderConfig.description || u.decoderConfig.description.byteLength < 2 ? f = !0 : f = Jy(Xi(u.decoderConfig.description)).objectType === 0, f) {
|
|
59240
59254
|
const d = Number(yi(n.codec.split(".")));
|
|
59241
59255
|
u.decoderConfig.description = q5({
|
|
59242
59256
|
objectType: d,
|
|
@@ -60389,7 +60403,7 @@ const zJ = "12px", QE = "Can't delete the only clip on the timeline", mo = [6, 8
|
|
|
60389
60403
|
"Roboto",
|
|
60390
60404
|
"Sue Ellen Francisco",
|
|
60391
60405
|
"Work Sans"
|
|
60392
|
-
],
|
|
60406
|
+
], Ai = {
|
|
60393
60407
|
alignLeft: '<path d="M3 5h12v2H3V5zm0 4h18v2H3V9zm0 4h12v2H3v-2zm0 4h18v2H3v-2z"/>',
|
|
60394
60408
|
alignCenter: '<path d="M3 5h18v2H3V5zm3 4h12v2H6V9zm-3 4h18v2H3v-2zm3 4h12v2H6v-2z"/>',
|
|
60395
60409
|
alignRight: '<path d="M9 5h12v2H9V5zm-6 4h18v2H3V9zm6 4h12v2H9v-2zm-6 4h18v2H3v-2z"/>',
|
|
@@ -60432,7 +60446,7 @@ class Ga {
|
|
|
60432
60446
|
const i = document.createElement("div");
|
|
60433
60447
|
i.className = "ss-toolbar-delete-divider";
|
|
60434
60448
|
const r = document.createElement("button");
|
|
60435
|
-
r.type = "button", r.className = "ss-toolbar-delete-btn", r.dataset.action = "delete-clip", r.innerHTML = `<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${
|
|
60449
|
+
r.type = "button", r.className = "ss-toolbar-delete-btn", r.dataset.action = "delete-clip", r.innerHTML = `<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${Ai.trash}</svg>`, r.addEventListener("click", (n) => {
|
|
60436
60450
|
n.stopPropagation(), !(this.selectedTrackIdx < 0 || this.selectedClipIdx < 0) && this.edit.canDeleteClip(this.selectedTrackIdx, this.selectedClipIdx) && this.edit.deleteClip(this.selectedTrackIdx, this.selectedClipIdx).catch((s) => {
|
|
60437
60451
|
console.warn("[shotstack-studio:base-toolbar] deleteClip failed", s);
|
|
60438
60452
|
});
|
|
@@ -60574,7 +60588,7 @@ class RJ {
|
|
|
60574
60588
|
const s = this.edit.canDeleteClip(r, n), a = document.createElement("div");
|
|
60575
60589
|
a.className = "ss-clip-context-menu", a.setAttribute("role", "menu");
|
|
60576
60590
|
const o = document.createElement("button");
|
|
60577
|
-
o.type = "button", o.className = "ss-clip-context-menu-item ss-clip-context-menu-item--danger", o.setAttribute("role", "menuitem"), o.dataset.action = "delete", o.disabled = !s, s || (o.title = QE), o.innerHTML = `<svg class="ss-clip-context-menu-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${
|
|
60591
|
+
o.type = "button", o.className = "ss-clip-context-menu-item ss-clip-context-menu-item--danger", o.setAttribute("role", "menuitem"), o.dataset.action = "delete", o.disabled = !s, s || (o.title = QE), o.innerHTML = `<svg class="ss-clip-context-menu-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${Ai.trash}</svg><span class="ss-clip-context-menu-label">Delete</span><span class="ss-clip-context-menu-shortcut">Del</span>`, o.addEventListener("click", () => {
|
|
60578
60592
|
this.hide(), this.edit.deleteClip(r, n).catch((l) => {
|
|
60579
60593
|
console.warn("[shotstack-studio:clip-context-menu] deleteClip failed", l);
|
|
60580
60594
|
});
|
|
@@ -62909,6 +62923,22 @@ class yQ extends Ao {
|
|
|
62909
62923
|
if (this.mergeFieldService.extractFieldName(r.placeholder) === i) return !0;
|
|
62910
62924
|
return !1;
|
|
62911
62925
|
}
|
|
62926
|
+
/**
|
|
62927
|
+
* Track/clip index of the first clip bound to the given merge field, or
|
|
62928
|
+
* null if none. Pairs with `getClipViewportRect` so an overlay can anchor
|
|
62929
|
+
* UI to the clip a variable drives (e.g. a coach-mark on `{{ADDRESS}}`).
|
|
62930
|
+
* @internal
|
|
62931
|
+
*/
|
|
62932
|
+
getMergeFieldClipLocation(t) {
|
|
62933
|
+
const i = this.getDocument();
|
|
62934
|
+
if (!i) return null;
|
|
62935
|
+
for (const r of i.getClipIdsWithBindings()) {
|
|
62936
|
+
const n = i.getClipBindings(r);
|
|
62937
|
+
if (n && this.clipUsesField(n, t))
|
|
62938
|
+
return this.getClipPositionById(r);
|
|
62939
|
+
}
|
|
62940
|
+
return null;
|
|
62941
|
+
}
|
|
62912
62942
|
/**
|
|
62913
62943
|
* Remove a merge field globally from all clips and the registry.
|
|
62914
62944
|
*/
|
|
@@ -63017,8 +63047,8 @@ class yQ extends Ao {
|
|
|
63017
63047
|
resolvedValue: f
|
|
63018
63048
|
};
|
|
63019
63049
|
if (s.setClipBinding(n, l, d), o) {
|
|
63020
|
-
const m = (typeof f == "string" ? f.trim() : "").length > 0 ? Number(f) : NaN,
|
|
63021
|
-
ls(o.clip, l,
|
|
63050
|
+
const h = l.split(".").pop() ?? "", m = h === "text" || h === "html", g = (typeof f == "string" ? f.trim() : "").length > 0 ? Number(f) : NaN, w = !m && Number.isFinite(g) ? g : f;
|
|
63051
|
+
ls(o.clip, l, w);
|
|
63022
63052
|
}
|
|
63023
63053
|
}
|
|
63024
63054
|
}
|
|
@@ -70509,7 +70539,7 @@ class Ctt extends Ga {
|
|
|
70509
70539
|
<div class="ss-toolbar-group ss-toolbar-group--bordered">
|
|
70510
70540
|
<button data-action="size-down" class="ss-toolbar-btn" title="Decrease font size">
|
|
70511
70541
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
70512
|
-
${
|
|
70542
|
+
${Ai.sizeDown}
|
|
70513
70543
|
</svg>
|
|
70514
70544
|
</button>
|
|
70515
70545
|
<div class="ss-toolbar-dropdown ss-toolbar-dropdown--size">
|
|
@@ -70518,7 +70548,7 @@ class Ctt extends Ga {
|
|
|
70518
70548
|
</div>
|
|
70519
70549
|
<button data-action="size-up" class="ss-toolbar-btn" title="Increase font size">
|
|
70520
70550
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
70521
|
-
${
|
|
70551
|
+
${Ai.sizeUp}
|
|
70522
70552
|
</svg>
|
|
70523
70553
|
</button>
|
|
70524
70554
|
</div>
|
|
@@ -70529,7 +70559,7 @@ class Ctt extends Ga {
|
|
|
70529
70559
|
<button data-action="font-toggle" class="ss-toolbar-btn ss-toolbar-btn--font" title="Font">
|
|
70530
70560
|
<span data-font-preview class="ss-toolbar-font-preview">Aa</span>
|
|
70531
70561
|
<svg width="8" height="8" viewBox="0 0 12 12" fill="currentColor" class="ss-toolbar-chevron">
|
|
70532
|
-
${
|
|
70562
|
+
${Ai.chevron}
|
|
70533
70563
|
</svg>
|
|
70534
70564
|
</button>
|
|
70535
70565
|
<div data-font-popup class="ss-toolbar-popup ss-toolbar-popup--font"></div>
|
|
@@ -70551,7 +70581,7 @@ class Ctt extends Ga {
|
|
|
70551
70581
|
<div class="ss-toolbar-dropdown">
|
|
70552
70582
|
<button data-action="spacing-toggle" class="ss-toolbar-btn" title="Spacing">
|
|
70553
70583
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
|
|
70554
|
-
${
|
|
70584
|
+
${Ai.spacing}
|
|
70555
70585
|
</svg>
|
|
70556
70586
|
</button>
|
|
70557
70587
|
<div data-spacing-popup class="ss-toolbar-popup ss-toolbar-popup--wide">
|
|
@@ -70562,17 +70592,17 @@ class Ctt extends Ga {
|
|
|
70562
70592
|
<div class="ss-toolbar-popup-row ss-toolbar-popup-row--buttons">
|
|
70563
70593
|
<button data-action="anchor-top" class="ss-toolbar-anchor-btn" title="Top">
|
|
70564
70594
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
70565
|
-
${
|
|
70595
|
+
${Ai.anchorTop}
|
|
70566
70596
|
</svg>
|
|
70567
70597
|
</button>
|
|
70568
70598
|
<button data-action="anchor-middle" class="ss-toolbar-anchor-btn" title="Middle">
|
|
70569
70599
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
70570
|
-
${
|
|
70600
|
+
${Ai.anchorMiddle}
|
|
70571
70601
|
</svg>
|
|
70572
70602
|
</button>
|
|
70573
70603
|
<button data-action="anchor-bottom" class="ss-toolbar-anchor-btn" title="Bottom">
|
|
70574
70604
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
70575
|
-
${
|
|
70605
|
+
${Ai.anchorBottom}
|
|
70576
70606
|
</svg>
|
|
70577
70607
|
</button>
|
|
70578
70608
|
</div>
|
|
@@ -70598,14 +70628,14 @@ class Ctt extends Ga {
|
|
|
70598
70628
|
|
|
70599
70629
|
<button data-action="align-cycle" class="ss-toolbar-btn" title="Text alignment">
|
|
70600
70630
|
<svg data-align-icon width="14" height="14" viewBox="0 0 24 24" fill="currentColor">
|
|
70601
|
-
${
|
|
70631
|
+
${Ai.alignCenter}
|
|
70602
70632
|
</svg>
|
|
70603
70633
|
</button>
|
|
70604
70634
|
|
|
70605
70635
|
<div class="ss-toolbar-dropdown">
|
|
70606
70636
|
<button data-action="background-toggle" class="ss-toolbar-btn" title="Background Fill">
|
|
70607
70637
|
<svg width="16" height="16" viewBox="0 0 491.879 491.879" fill="currentColor">
|
|
70608
|
-
${
|
|
70638
|
+
${Ai.background}
|
|
70609
70639
|
</svg>
|
|
70610
70640
|
</button>
|
|
70611
70641
|
<div data-background-popup class="ss-toolbar-popup ss-toolbar-popup--wide">
|
|
@@ -70629,7 +70659,7 @@ class Ctt extends Ga {
|
|
|
70629
70659
|
<div class="ss-toolbar-dropdown">
|
|
70630
70660
|
<button data-action="stroke-toggle" class="ss-toolbar-btn" title="Stroke">
|
|
70631
70661
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
70632
|
-
${
|
|
70662
|
+
${Ai.stroke}
|
|
70633
70663
|
</svg>
|
|
70634
70664
|
</button>
|
|
70635
70665
|
<div data-stroke-popup class="ss-toolbar-popup ss-toolbar-popup--wide">
|
|
@@ -70655,7 +70685,7 @@ class Ctt extends Ga {
|
|
|
70655
70685
|
<div class="ss-toolbar-dropdown">
|
|
70656
70686
|
<button data-action="transition-toggle" class="ss-toolbar-btn ss-toolbar-btn--text-edit" title="Transition">
|
|
70657
70687
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
70658
|
-
${
|
|
70688
|
+
${Ai.transition}
|
|
70659
70689
|
</svg>
|
|
70660
70690
|
<span>Transition</span>
|
|
70661
70691
|
</button>
|
|
@@ -70665,7 +70695,7 @@ class Ctt extends Ga {
|
|
|
70665
70695
|
<div class="ss-toolbar-dropdown">
|
|
70666
70696
|
<button data-action="effect-toggle" class="ss-toolbar-btn ss-toolbar-btn--text-edit" title="Effect">
|
|
70667
70697
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
70668
|
-
${
|
|
70698
|
+
${Ai.effect}
|
|
70669
70699
|
</svg>
|
|
70670
70700
|
<span>Effect</span>
|
|
70671
70701
|
</button>
|
|
@@ -70861,9 +70891,9 @@ class Ctt extends Ga {
|
|
|
70861
70891
|
updateAlignmentIcon(t) {
|
|
70862
70892
|
if (!this.alignIcon) return;
|
|
70863
70893
|
const i = {
|
|
70864
|
-
left:
|
|
70865
|
-
center:
|
|
70866
|
-
right:
|
|
70894
|
+
left: Ai.alignLeft,
|
|
70895
|
+
center: Ai.alignCenter,
|
|
70896
|
+
right: Ai.alignRight
|
|
70867
70897
|
};
|
|
70868
70898
|
this.alignIcon.innerHTML = i[t] || i.center;
|
|
70869
70899
|
}
|
|
@@ -71291,14 +71321,14 @@ function sr(e) {
|
|
|
71291
71321
|
const t = tu;
|
|
71292
71322
|
return tu = ns[t], ns[t] = e, t;
|
|
71293
71323
|
}
|
|
71294
|
-
function
|
|
71324
|
+
function qi(e) {
|
|
71295
71325
|
return ns[e];
|
|
71296
71326
|
}
|
|
71297
71327
|
function ktt(e) {
|
|
71298
71328
|
e < 132 || (ns[e] = tu, tu = e);
|
|
71299
71329
|
}
|
|
71300
71330
|
function ss(e) {
|
|
71301
|
-
const t =
|
|
71331
|
+
const t = qi(e);
|
|
71302
71332
|
return ktt(e), t;
|
|
71303
71333
|
}
|
|
71304
71334
|
var Eu = 0, Zl = null;
|
|
@@ -71641,39 +71671,39 @@ function Ptt() {
|
|
|
71641
71671
|
const t = Lt.memory;
|
|
71642
71672
|
return sr(t);
|
|
71643
71673
|
}, e.wbg.__wbg_buffer_12d079cc21e14bdb = function(t) {
|
|
71644
|
-
const i =
|
|
71674
|
+
const i = qi(t).buffer;
|
|
71645
71675
|
return sr(i);
|
|
71646
71676
|
}, e.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(t, i, r) {
|
|
71647
|
-
const n = new Uint8Array(
|
|
71677
|
+
const n = new Uint8Array(qi(t), i >>> 0, r >>> 0);
|
|
71648
71678
|
return sr(n);
|
|
71649
71679
|
}, e.wbg.__wbindgen_object_drop_ref = function(t) {
|
|
71650
71680
|
ss(t);
|
|
71651
71681
|
}, e.wbg.__wbg_new_63b92bc8671ed464 = function(t) {
|
|
71652
|
-
const i = new Uint8Array(
|
|
71682
|
+
const i = new Uint8Array(qi(t));
|
|
71653
71683
|
return sr(i);
|
|
71654
71684
|
}, e.wbg.__wbg_values_839f3396d5aac002 = function(t) {
|
|
71655
|
-
const i =
|
|
71685
|
+
const i = qi(t).values();
|
|
71656
71686
|
return sr(i);
|
|
71657
71687
|
}, e.wbg.__wbg_next_196c84450b364254 = function() {
|
|
71658
71688
|
return Ett(function(t) {
|
|
71659
|
-
const i =
|
|
71689
|
+
const i = qi(t).next();
|
|
71660
71690
|
return sr(i);
|
|
71661
71691
|
}, arguments);
|
|
71662
71692
|
}, e.wbg.__wbg_done_298b57d23c0fc80c = function(t) {
|
|
71663
|
-
return
|
|
71693
|
+
return qi(t).done;
|
|
71664
71694
|
}, e.wbg.__wbg_value_d93c65011f51a456 = function(t) {
|
|
71665
|
-
const i =
|
|
71695
|
+
const i = qi(t).value;
|
|
71666
71696
|
return sr(i);
|
|
71667
71697
|
}, e.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(t) {
|
|
71668
71698
|
let i;
|
|
71669
71699
|
try {
|
|
71670
|
-
i =
|
|
71700
|
+
i = qi(t) instanceof Uint8Array;
|
|
71671
71701
|
} catch {
|
|
71672
71702
|
i = !1;
|
|
71673
71703
|
}
|
|
71674
71704
|
return i;
|
|
71675
71705
|
}, e.wbg.__wbindgen_string_get = function(t, i) {
|
|
71676
|
-
const r =
|
|
71706
|
+
const r = qi(i), n = typeof r == "string" ? r : void 0;
|
|
71677
71707
|
var s = lm(n) ? 0 : om(n, Lt.__wbindgen_malloc, Lt.__wbindgen_realloc), a = Eu;
|
|
71678
71708
|
xi()[t / 4 + 1] = a, xi()[t / 4 + 0] = s;
|
|
71679
71709
|
}, e.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
@@ -71683,11 +71713,11 @@ function Ptt() {
|
|
|
71683
71713
|
const r = cf(t, i);
|
|
71684
71714
|
return sr(r);
|
|
71685
71715
|
}, e.wbg.__wbg_push_a5b05aedc7234f9f = function(t, i) {
|
|
71686
|
-
return
|
|
71716
|
+
return qi(t).push(qi(i));
|
|
71687
71717
|
}, e.wbg.__wbg_length_c20a40f15020d68a = function(t) {
|
|
71688
|
-
return
|
|
71718
|
+
return qi(t).length;
|
|
71689
71719
|
}, e.wbg.__wbg_set_a47bac70306a19a7 = function(t, i, r) {
|
|
71690
|
-
|
|
71720
|
+
qi(t).set(qi(i), r >>> 0);
|
|
71691
71721
|
}, e.wbg.__wbindgen_throw = function(t, i) {
|
|
71692
71722
|
throw new Error(cf(t, i));
|
|
71693
71723
|
}, e;
|
|
@@ -71803,7 +71833,7 @@ var Rtt = di({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.
|
|
|
71803
71833
|
ke(ot);
|
|
71804
71834
|
}
|
|
71805
71835
|
function M() {
|
|
71806
|
-
B = !0,
|
|
71836
|
+
B = !0, zi.__wasm_call_ctors();
|
|
71807
71837
|
}
|
|
71808
71838
|
function rt() {
|
|
71809
71839
|
if (a.postRun)
|
|
@@ -71869,7 +71899,7 @@ var Rtt = di({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.
|
|
|
71869
71899
|
}
|
|
71870
71900
|
async function me() {
|
|
71871
71901
|
function O(oi, mr) {
|
|
71872
|
-
return
|
|
71902
|
+
return zi = oi.exports, a.wasmExports = zi, z = zi.memory, a.wasmMemory = z, D(), oe = zi.__indirect_function_table, Zi(zi), ht(), zi;
|
|
71873
71903
|
}
|
|
71874
71904
|
dt();
|
|
71875
71905
|
function xt(oi) {
|
|
@@ -71953,13 +71983,13 @@ var Rtt = di({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.
|
|
|
71953
71983
|
})), fe = (O, xt) => {
|
|
71954
71984
|
var ue = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...Ne([1, 96, ...ii(xt.slice(1)), ...ii(xt[0] === "v" ? "" : xt[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0), Te = new WebAssembly.Module(ue), ye = new WebAssembly.Instance(Te, { e: { f: O } }), oi = ye.exports.f;
|
|
71955
71985
|
return oi;
|
|
71956
|
-
}, oe,
|
|
71986
|
+
}, oe, Mi = (O) => oe.get(O), Ui = (O, xt) => {
|
|
71957
71987
|
if (vi)
|
|
71958
71988
|
for (var ue = O; ue < O + xt; ue++) {
|
|
71959
|
-
var Te =
|
|
71989
|
+
var Te = Mi(ue);
|
|
71960
71990
|
Te && vi.set(Te, ue);
|
|
71961
71991
|
}
|
|
71962
|
-
}, vi, Ze = (O) => (vi || (vi = /* @__PURE__ */ new WeakMap(),
|
|
71992
|
+
}, vi, Ze = (O) => (vi || (vi = /* @__PURE__ */ new WeakMap(), Ui(0, oe.length)), vi.get(O) || 0), He = [], ia = () => He.length ? He.pop() : oe.grow(1), Vn = (O, xt) => oe.set(O, xt), Ln = (O, xt) => {
|
|
71963
71993
|
var ue = Ze(O);
|
|
71964
71994
|
if (ue)
|
|
71965
71995
|
return ue;
|
|
@@ -71974,14 +72004,14 @@ var Rtt = di({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.
|
|
|
71974
72004
|
}
|
|
71975
72005
|
return vi.set(O, Te), Te;
|
|
71976
72006
|
}, ys = (O) => {
|
|
71977
|
-
vi.delete(
|
|
72007
|
+
vi.delete(Mi(O)), Vn(O, null), He.push(O);
|
|
71978
72008
|
};
|
|
71979
|
-
a.noExitRuntime && (kt = a.noExitRuntime), a.print && a.print, a.printErr && (g = a.printErr), a.wasmBinary && (w = a.wasmBinary), a.arguments && a.arguments, a.thisProgram && a.thisProgram, a.wasmMemory = z, a.wasmExports =
|
|
72009
|
+
a.noExitRuntime && (kt = a.noExitRuntime), a.print && a.print, a.printErr && (g = a.printErr), a.wasmBinary && (w = a.wasmBinary), a.arguments && a.arguments, a.thisProgram && a.thisProgram, a.wasmMemory = z, a.wasmExports = zi, a.addFunction = Ln, a.removeFunction = ys;
|
|
71980
72010
|
var Sr;
|
|
71981
|
-
function
|
|
72011
|
+
function Zi(O) {
|
|
71982
72012
|
a._hb_blob_create = O.hb_blob_create, a._hb_blob_destroy = O.hb_blob_destroy, a._hb_blob_get_length = O.hb_blob_get_length, a._hb_blob_get_data = O.hb_blob_get_data, a._hb_buffer_serialize_glyphs = O.hb_buffer_serialize_glyphs, a._hb_buffer_create = O.hb_buffer_create, a._hb_buffer_destroy = O.hb_buffer_destroy, a._hb_buffer_get_content_type = O.hb_buffer_get_content_type, a._hb_buffer_set_direction = O.hb_buffer_set_direction, a._hb_buffer_set_script = O.hb_buffer_set_script, a._hb_buffer_set_language = O.hb_buffer_set_language, a._hb_buffer_set_flags = O.hb_buffer_set_flags, a._hb_buffer_set_cluster_level = O.hb_buffer_set_cluster_level, a._hb_buffer_get_length = O.hb_buffer_get_length, a._hb_buffer_get_glyph_infos = O.hb_buffer_get_glyph_infos, a._hb_buffer_get_glyph_positions = O.hb_buffer_get_glyph_positions, a._hb_glyph_info_get_glyph_flags = O.hb_glyph_info_get_glyph_flags, a._hb_buffer_guess_segment_properties = O.hb_buffer_guess_segment_properties, a._hb_buffer_add_utf8 = O.hb_buffer_add_utf8, a._hb_buffer_add_utf16 = O.hb_buffer_add_utf16, a._hb_buffer_set_message_func = O.hb_buffer_set_message_func, a._hb_language_from_string = O.hb_language_from_string, a._hb_script_from_string = O.hb_script_from_string, a._hb_version = O.hb_version, a._hb_version_string = O.hb_version_string, a._hb_feature_from_string = O.hb_feature_from_string, a._malloc = O.malloc, a._free = O.free, a._hb_draw_funcs_set_move_to_func = O.hb_draw_funcs_set_move_to_func, a._hb_draw_funcs_set_line_to_func = O.hb_draw_funcs_set_line_to_func, a._hb_draw_funcs_set_quadratic_to_func = O.hb_draw_funcs_set_quadratic_to_func, a._hb_draw_funcs_set_cubic_to_func = O.hb_draw_funcs_set_cubic_to_func, a._hb_draw_funcs_set_close_path_func = O.hb_draw_funcs_set_close_path_func, a._hb_draw_funcs_create = O.hb_draw_funcs_create, a._hb_draw_funcs_destroy = O.hb_draw_funcs_destroy, a._hb_face_create = O.hb_face_create, a._hb_face_destroy = O.hb_face_destroy, a._hb_face_reference_table = O.hb_face_reference_table, a._hb_face_get_upem = O.hb_face_get_upem, a._hb_face_collect_unicodes = O.hb_face_collect_unicodes, a._hb_font_draw_glyph = O.hb_font_draw_glyph, a._hb_font_glyph_to_string = O.hb_font_glyph_to_string, a._hb_font_create = O.hb_font_create, a._hb_font_set_variations = O.hb_font_set_variations, a._hb_font_destroy = O.hb_font_destroy, a._hb_font_set_scale = O.hb_font_set_scale, a._hb_set_create = O.hb_set_create, a._hb_set_destroy = O.hb_set_destroy, a._hb_ot_var_get_axis_infos = O.hb_ot_var_get_axis_infos, a._hb_set_get_population = O.hb_set_get_population, a._hb_set_next_many = O.hb_set_next_many, a._hb_shape = O.hb_shape, Sr = O._emscripten_timeout;
|
|
71983
72013
|
}
|
|
71984
|
-
var pr = { _abort_js: Dt, _emscripten_runtime_keepalive_clear: Pt, _setitimer_js: ve, emscripten_resize_heap: Ci, proc_exit: St },
|
|
72014
|
+
var pr = { _abort_js: Dt, _emscripten_runtime_keepalive_clear: Pt, _setitimer_js: ve, emscripten_resize_heap: Ci, proc_exit: St }, zi = await me();
|
|
71985
72015
|
function $n() {
|
|
71986
72016
|
if (q > 0) {
|
|
71987
72017
|
nt = $n;
|