@popcraft/kit 0.1.0 → 0.3.0
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/CHANGELOG.md +3 -1
- package/README.md +5 -0
- package/dist/index.js +402 -373
- package/package.json +1 -1
- package/types/lib/templates/vocabulary.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -53,13 +53,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
53
53
|
));
|
|
54
54
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
55
55
|
|
|
56
|
-
//
|
|
56
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/stringify.js
|
|
57
57
|
function unsafeStringify(arr, offset = 0) {
|
|
58
58
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
59
59
|
}
|
|
60
60
|
var byteToHex;
|
|
61
61
|
var init_stringify = __esm({
|
|
62
|
-
"
|
|
62
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/stringify.js"() {
|
|
63
63
|
byteToHex = [];
|
|
64
64
|
for (let i = 0; i < 256; ++i) {
|
|
65
65
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -67,18 +67,18 @@ var init_stringify = __esm({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
//
|
|
70
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/rng.js
|
|
71
71
|
function rng() {
|
|
72
72
|
return crypto.getRandomValues(rnds8);
|
|
73
73
|
}
|
|
74
74
|
var rnds8;
|
|
75
75
|
var init_rng = __esm({
|
|
76
|
-
"
|
|
76
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/rng.js"() {
|
|
77
77
|
rnds8 = new Uint8Array(16);
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
//
|
|
81
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v4.js
|
|
82
82
|
function v4(options, buf, offset) {
|
|
83
83
|
if (!buf && !options && crypto.randomUUID) {
|
|
84
84
|
return crypto.randomUUID();
|
|
@@ -107,24 +107,24 @@ function _v4(options, buf, offset) {
|
|
|
107
107
|
}
|
|
108
108
|
var v4_default;
|
|
109
109
|
var init_v4 = __esm({
|
|
110
|
-
"
|
|
110
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/v4.js"() {
|
|
111
111
|
init_rng();
|
|
112
112
|
init_stringify();
|
|
113
113
|
v4_default = v4;
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
//
|
|
117
|
+
// node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/index.js
|
|
118
118
|
var init_dist_node = __esm({
|
|
119
|
-
"
|
|
119
|
+
"node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist-node/index.js"() {
|
|
120
120
|
init_v4();
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
//
|
|
124
|
+
// lib/document/effects.ts
|
|
125
125
|
var EFFECT_LABELS;
|
|
126
126
|
var init_effects = __esm({
|
|
127
|
-
"
|
|
127
|
+
"lib/document/effects.ts"() {
|
|
128
128
|
"use strict";
|
|
129
129
|
EFFECT_LABELS = {
|
|
130
130
|
DROP_SHADOW: "Drop shadow",
|
|
@@ -141,7 +141,7 @@ var init_effects = __esm({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
-
//
|
|
144
|
+
// lib/document/text-tokens.ts
|
|
145
145
|
function shiftRanges(ranges, edits) {
|
|
146
146
|
const map = (i) => {
|
|
147
147
|
let out = i;
|
|
@@ -173,12 +173,12 @@ function substituteTokens(node, pattern2, resolve) {
|
|
|
173
173
|
return { ...node, ...patch };
|
|
174
174
|
}
|
|
175
175
|
var init_text_tokens = __esm({
|
|
176
|
-
"
|
|
176
|
+
"lib/document/text-tokens.ts"() {
|
|
177
177
|
"use strict";
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
-
//
|
|
181
|
+
// packages/runtime/src/expressions.ts
|
|
182
182
|
function rowsOf(data, collection, pairs) {
|
|
183
183
|
const rows = data?.rows(exprText(collection));
|
|
184
184
|
if (!rows) throw new ExprMissing(`No collection "${exprText(collection)}"`);
|
|
@@ -190,7 +190,7 @@ function rowsOf(data, collection, pairs) {
|
|
|
190
190
|
}
|
|
191
191
|
var ExprMissing, num, truthy, exprText, finite, DAY, dayOf, keyOf, since, total, FUNCTIONS, same;
|
|
192
192
|
var init_expressions = __esm({
|
|
193
|
-
"
|
|
193
|
+
"packages/runtime/src/expressions.ts"() {
|
|
194
194
|
"use strict";
|
|
195
195
|
ExprMissing = class extends Error {
|
|
196
196
|
};
|
|
@@ -307,7 +307,7 @@ var init_expressions = __esm({
|
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
-
//
|
|
310
|
+
// lib/document/expressions.ts
|
|
311
311
|
function tokenize(src, has) {
|
|
312
312
|
const out = [];
|
|
313
313
|
let i = 0;
|
|
@@ -575,7 +575,7 @@ function variablesScope(variables, collections, activeModes) {
|
|
|
575
575
|
}
|
|
576
576
|
var ExpressionError, OPS, IDENT, NUM, WORD_OPS, EXPRESSION_FUNCTIONS, cache, CACHE_MAX, scopeMemo, wholeGlides, isWholeGlide;
|
|
577
577
|
var init_expressions2 = __esm({
|
|
578
|
-
"
|
|
578
|
+
"lib/document/expressions.ts"() {
|
|
579
579
|
"use strict";
|
|
580
580
|
init_expressions();
|
|
581
581
|
ExpressionError = class extends Error {
|
|
@@ -597,7 +597,7 @@ var init_expressions2 = __esm({
|
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
|
|
600
|
-
//
|
|
600
|
+
// lib/document/variables.ts
|
|
601
601
|
function resolveNodeVariables(node, variables, collections, activeModes, data) {
|
|
602
602
|
if (!variables && !node.boundExpressions) return node;
|
|
603
603
|
const textTokens = node.type === "TEXT" && node.characters?.includes("{{brand.");
|
|
@@ -731,7 +731,7 @@ function unbindItemColor(node, path) {
|
|
|
731
731
|
}
|
|
732
732
|
var BRAND_TOKEN, NUMERIC_PROPS;
|
|
733
733
|
var init_variables = __esm({
|
|
734
|
-
"
|
|
734
|
+
"lib/document/variables.ts"() {
|
|
735
735
|
"use strict";
|
|
736
736
|
init_text_tokens();
|
|
737
737
|
init_expressions2();
|
|
@@ -740,14 +740,14 @@ var init_variables = __esm({
|
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
|
|
743
|
-
//
|
|
743
|
+
// lib/document/shape-to-path.ts
|
|
744
744
|
var init_shape_to_path = __esm({
|
|
745
|
-
"
|
|
745
|
+
"lib/document/shape-to-path.ts"() {
|
|
746
746
|
"use strict";
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
749
|
|
|
750
|
-
//
|
|
750
|
+
// lib/document/trim.ts
|
|
751
751
|
function canTrim(node) {
|
|
752
752
|
if (!TRIM_TYPES.has(node.type)) return false;
|
|
753
753
|
const n = node;
|
|
@@ -755,7 +755,7 @@ function canTrim(node) {
|
|
|
755
755
|
}
|
|
756
756
|
var TRIM_REST, TRIM_TYPES;
|
|
757
757
|
var init_trim = __esm({
|
|
758
|
-
"
|
|
758
|
+
"lib/document/trim.ts"() {
|
|
759
759
|
"use strict";
|
|
760
760
|
init_shape_to_path();
|
|
761
761
|
TRIM_REST = { start: 0, end: 1, offset: 0 };
|
|
@@ -763,7 +763,7 @@ var init_trim = __esm({
|
|
|
763
763
|
}
|
|
764
764
|
});
|
|
765
765
|
|
|
766
|
-
//
|
|
766
|
+
// lib/motion/morph.ts
|
|
767
767
|
function isPathValue(v) {
|
|
768
768
|
return Array.isArray(v) && v.every((p2) => !!p2 && typeof p2 === "object" && Array.isArray(p2.points) && p2.points.every((q) => isPt(q) && (q.handleIn === void 0 || isPt(q.handleIn)) && (q.handleOut === void 0 || isPt(q.handleOut))));
|
|
769
769
|
}
|
|
@@ -921,7 +921,7 @@ function pathsExtent(paths) {
|
|
|
921
921
|
}
|
|
922
922
|
var finite2, isPt, lerp, dist, segLength, pointLike, matched;
|
|
923
923
|
var init_morph = __esm({
|
|
924
|
-
"
|
|
924
|
+
"lib/motion/morph.ts"() {
|
|
925
925
|
"use strict";
|
|
926
926
|
finite2 = (n) => typeof n === "number" && Number.isFinite(n);
|
|
927
927
|
isPt = (p2) => !!p2 && typeof p2 === "object" && finite2(p2.x) && finite2(p2.y);
|
|
@@ -933,7 +933,7 @@ var init_morph = __esm({
|
|
|
933
933
|
}
|
|
934
934
|
});
|
|
935
935
|
|
|
936
|
-
//
|
|
936
|
+
// lib/document/transform.ts
|
|
937
937
|
function restValue(node, field) {
|
|
938
938
|
const v = node[field];
|
|
939
939
|
return typeof v === "number" && Number.isFinite(v) ? v : TRANSFORM_DEFAULTS[field];
|
|
@@ -1007,7 +1007,7 @@ function nearestAngle(deg, reference) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
var IDENTITY, TRANSFORM_DEFAULTS, TRANSFORM_FIELDS, determinant, translation;
|
|
1009
1009
|
var init_transform = __esm({
|
|
1010
|
-
"
|
|
1010
|
+
"lib/document/transform.ts"() {
|
|
1011
1011
|
"use strict";
|
|
1012
1012
|
IDENTITY = [1, 0, 0, 1, 0, 0];
|
|
1013
1013
|
TRANSFORM_DEFAULTS = { scaleX: 1, scaleY: 1, anchorX: 0.5, anchorY: 0.5, translateX: 0, translateY: 0, rotateX: 0, rotateY: 0, z: 0 };
|
|
@@ -1017,7 +1017,7 @@ var init_transform = __esm({
|
|
|
1017
1017
|
}
|
|
1018
1018
|
});
|
|
1019
1019
|
|
|
1020
|
-
//
|
|
1020
|
+
// lib/document/transform3d.ts
|
|
1021
1021
|
function mul4(a, b) {
|
|
1022
1022
|
const out = new Array(16);
|
|
1023
1023
|
for (let c = 0; c < 4; c++) {
|
|
@@ -1054,7 +1054,7 @@ function layerModel(node) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
var IDENTITY4, chain4, translate4, scale4, rad, cs, has3DPlacement, FILM_MM, zoomPx, MIN_RASTER_SCALE;
|
|
1056
1056
|
var init_transform3d = __esm({
|
|
1057
|
-
"
|
|
1057
|
+
"lib/document/transform3d.ts"() {
|
|
1058
1058
|
"use strict";
|
|
1059
1059
|
init_transform();
|
|
1060
1060
|
IDENTITY4 = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
@@ -1070,7 +1070,7 @@ var init_transform3d = __esm({
|
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
1072
1072
|
|
|
1073
|
-
//
|
|
1073
|
+
// lib/document/scene3d.ts
|
|
1074
1074
|
function scene3dOf(n) {
|
|
1075
1075
|
if (!n || n.type !== "GROUP" && n.type !== "FRAME") return void 0;
|
|
1076
1076
|
const s = n.scene3d;
|
|
@@ -1081,8 +1081,8 @@ function setVirtualResolver(fn) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
function drawsOwnBox(n) {
|
|
1083
1083
|
const g = n;
|
|
1084
|
-
const
|
|
1085
|
-
return !!g.clipsContent ||
|
|
1084
|
+
const shown2 = (list2) => Array.isArray(list2) && list2.some((e) => e?.visible !== false);
|
|
1085
|
+
return !!g.clipsContent || shown2(g.fills) || shown2(g.strokes) || shown2(g.effects);
|
|
1086
1086
|
}
|
|
1087
1087
|
function passesThrough(n, nodes) {
|
|
1088
1088
|
if (n.type === "INSTANCE") {
|
|
@@ -1136,7 +1136,7 @@ function sceneLayers(nodes, contextId) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
var is3DContext, resolveVirtual, resolveVirtualNode;
|
|
1138
1138
|
var init_scene3d = __esm({
|
|
1139
|
-
"
|
|
1139
|
+
"lib/document/scene3d.ts"() {
|
|
1140
1140
|
"use strict";
|
|
1141
1141
|
init_transform3d();
|
|
1142
1142
|
is3DContext = (n) => !!scene3dOf(n);
|
|
@@ -1149,7 +1149,7 @@ var init_scene3d = __esm({
|
|
|
1149
1149
|
}
|
|
1150
1150
|
});
|
|
1151
1151
|
|
|
1152
|
-
//
|
|
1152
|
+
// lib/document/shader-params.ts
|
|
1153
1153
|
function paramComponents(p2) {
|
|
1154
1154
|
switch (p2.type) {
|
|
1155
1155
|
case "f32":
|
|
@@ -1325,7 +1325,7 @@ function paramLabel(name) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
var AUDIO_SIGNAL_NAMES, XY, XYZ, RGB, RGBA, LAYOUT, TYPE_NAMES, roundUp, IDENT2, WHITE, numbers, reflections, isNum, EMPTY;
|
|
1327
1327
|
var init_shader_params = __esm({
|
|
1328
|
-
"
|
|
1328
|
+
"lib/document/shader-params.ts"() {
|
|
1329
1329
|
"use strict";
|
|
1330
1330
|
AUDIO_SIGNAL_NAMES = ["level", "bass", "mid", "treble", "beat", "onset", "spectrum"];
|
|
1331
1331
|
XY = ["x", "y"];
|
|
@@ -1357,10 +1357,10 @@ var init_shader_params = __esm({
|
|
|
1357
1357
|
}
|
|
1358
1358
|
});
|
|
1359
1359
|
|
|
1360
|
-
//
|
|
1360
|
+
// lib/ai/limits.ts
|
|
1361
1361
|
var AI_LIMITS;
|
|
1362
1362
|
var init_limits = __esm({
|
|
1363
|
-
"
|
|
1363
|
+
"lib/ai/limits.ts"() {
|
|
1364
1364
|
"use strict";
|
|
1365
1365
|
AI_LIMITS = {
|
|
1366
1366
|
/** Request bodies larger than this are rejected before parsing. */
|
|
@@ -1407,32 +1407,32 @@ var init_limits = __esm({
|
|
|
1407
1407
|
}
|
|
1408
1408
|
});
|
|
1409
1409
|
|
|
1410
|
-
//
|
|
1410
|
+
// lib/ai/content.ts
|
|
1411
1411
|
function clampSegments(segments, length) {
|
|
1412
1412
|
if (!segments?.length) return segments;
|
|
1413
1413
|
const out = segments.filter((s) => s.start < length).map((s) => ({ ...s, end: Math.min(s.end, length) })).filter((s) => s.end > s.start);
|
|
1414
1414
|
return out.length ? out : void 0;
|
|
1415
1415
|
}
|
|
1416
1416
|
var init_content = __esm({
|
|
1417
|
-
"
|
|
1417
|
+
"lib/ai/content.ts"() {
|
|
1418
1418
|
"use strict";
|
|
1419
1419
|
init_limits();
|
|
1420
1420
|
}
|
|
1421
1421
|
});
|
|
1422
1422
|
|
|
1423
|
-
//
|
|
1423
|
+
// lib/engine/text/layout-access.ts
|
|
1424
1424
|
function readCachedTextLayout(nodeId) {
|
|
1425
1425
|
return read ? read(nodeId) : null;
|
|
1426
1426
|
}
|
|
1427
1427
|
var read;
|
|
1428
1428
|
var init_layout_access = __esm({
|
|
1429
|
-
"
|
|
1429
|
+
"lib/engine/text/layout-access.ts"() {
|
|
1430
1430
|
"use strict";
|
|
1431
1431
|
read = null;
|
|
1432
1432
|
}
|
|
1433
1433
|
});
|
|
1434
1434
|
|
|
1435
|
-
//
|
|
1435
|
+
// lib/editor/easing.ts
|
|
1436
1436
|
function springAt(seconds, spring) {
|
|
1437
1437
|
const { stiffness: k, damping: c, mass: m } = spring;
|
|
1438
1438
|
const w0 = Math.sqrt(k / m);
|
|
@@ -1492,7 +1492,7 @@ function evalInterp(interp, p2, spanMs) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
var SPRING_PRESETS, bezierCoord, BACK_OVERSHOOT, ELASTIC_PERIOD, bounceOut, elasticOut, EASINGS, EASING_INTERPS, springInterps, springInterp, DEFAULT_KEY_INTERP, FAMILY_LABELS, DIRECTION_LABELS, MOTION_EASE_PRESETS;
|
|
1494
1494
|
var init_easing = __esm({
|
|
1495
|
-
"
|
|
1495
|
+
"lib/editor/easing.ts"() {
|
|
1496
1496
|
"use strict";
|
|
1497
1497
|
SPRING_PRESETS = {
|
|
1498
1498
|
gentle: { stiffness: 100, damping: 15, mass: 1 },
|
|
@@ -1594,7 +1594,7 @@ var init_easing = __esm({
|
|
|
1594
1594
|
}
|
|
1595
1595
|
});
|
|
1596
1596
|
|
|
1597
|
-
//
|
|
1597
|
+
// lib/motion/values.ts
|
|
1598
1598
|
function isValueOf(type, v) {
|
|
1599
1599
|
switch (type) {
|
|
1600
1600
|
case "number":
|
|
@@ -1623,7 +1623,7 @@ function sameValue(a, b) {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
var lerpNumber, lerpColor, holdValue, isColor;
|
|
1625
1625
|
var init_values = __esm({
|
|
1626
|
-
"
|
|
1626
|
+
"lib/motion/values.ts"() {
|
|
1627
1627
|
"use strict";
|
|
1628
1628
|
init_morph();
|
|
1629
1629
|
lerpNumber = (a, b, e) => a + (b - a) * e;
|
|
@@ -1638,7 +1638,7 @@ var init_values = __esm({
|
|
|
1638
1638
|
}
|
|
1639
1639
|
});
|
|
1640
1640
|
|
|
1641
|
-
//
|
|
1641
|
+
// lib/motion/sample-keys.ts
|
|
1642
1642
|
function segmentAt(keys, t) {
|
|
1643
1643
|
let lo = 0, hi = keys.length - 1;
|
|
1644
1644
|
while (hi - lo > 1) {
|
|
@@ -1666,7 +1666,7 @@ function sampleNumberKeys(keys, t) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
var HOLD, NUMBER;
|
|
1668
1668
|
var init_sample_keys = __esm({
|
|
1669
|
-
"
|
|
1669
|
+
"lib/motion/sample-keys.ts"() {
|
|
1670
1670
|
"use strict";
|
|
1671
1671
|
init_easing();
|
|
1672
1672
|
init_values();
|
|
@@ -1675,7 +1675,7 @@ var init_sample_keys = __esm({
|
|
|
1675
1675
|
}
|
|
1676
1676
|
});
|
|
1677
1677
|
|
|
1678
|
-
//
|
|
1678
|
+
// lib/motion/modifiers.ts
|
|
1679
1679
|
function audioAmount(m, p2, ctx) {
|
|
1680
1680
|
const raw = ctx?.sampleAudio?.(m) ?? 0;
|
|
1681
1681
|
let g = p2("gain", m.gain) * raw;
|
|
@@ -1834,7 +1834,7 @@ function applyAudioColor(track, base, tLocalMs, ctx) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
var TAU, wrap, hasBehaviour, STORED, hasAudioBehaviour;
|
|
1836
1836
|
var init_modifiers = __esm({
|
|
1837
|
-
"
|
|
1837
|
+
"lib/motion/modifiers.ts"() {
|
|
1838
1838
|
"use strict";
|
|
1839
1839
|
init_sample_keys();
|
|
1840
1840
|
TAU = Math.PI * 2;
|
|
@@ -1845,7 +1845,7 @@ var init_modifiers = __esm({
|
|
|
1845
1845
|
}
|
|
1846
1846
|
});
|
|
1847
1847
|
|
|
1848
|
-
//
|
|
1848
|
+
// lib/motion/time.ts
|
|
1849
1849
|
function hashString(s) {
|
|
1850
1850
|
let h = 2166136261;
|
|
1851
1851
|
for (let i = 0; i < s.length; i++) {
|
|
@@ -1971,7 +1971,7 @@ function layerTimer(nodes, rootId, rootMs) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
var staggerMemo, chain, DEFAULT_PLAYBACK, FIELD_OK, PLAYBACK_FIELDS, isPlaybackValue;
|
|
1973
1973
|
var init_time = __esm({
|
|
1974
|
-
"
|
|
1974
|
+
"lib/motion/time.ts"() {
|
|
1975
1975
|
"use strict";
|
|
1976
1976
|
init_easing();
|
|
1977
1977
|
init_modifiers();
|
|
@@ -1990,7 +1990,7 @@ var init_time = __esm({
|
|
|
1990
1990
|
}
|
|
1991
1991
|
});
|
|
1992
1992
|
|
|
1993
|
-
//
|
|
1993
|
+
// lib/motion/text-units.ts
|
|
1994
1994
|
function textUnits(chars, unit, lines) {
|
|
1995
1995
|
const n = chars.length;
|
|
1996
1996
|
const of = new Int32Array(n).fill(-1);
|
|
@@ -2138,7 +2138,7 @@ function counterFromText(chars) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
var isSpace, isTrail, RANK_ORDER, slotMemo, slotOf, tails, ANIMATOR_PATH, MAX_DECIMALS, counterRest;
|
|
2140
2140
|
var init_text_units = __esm({
|
|
2141
|
-
"
|
|
2141
|
+
"lib/motion/text-units.ts"() {
|
|
2142
2142
|
"use strict";
|
|
2143
2143
|
init_layout_access();
|
|
2144
2144
|
init_time();
|
|
@@ -2154,7 +2154,7 @@ var init_text_units = __esm({
|
|
|
2154
2154
|
}
|
|
2155
2155
|
});
|
|
2156
2156
|
|
|
2157
|
-
//
|
|
2157
|
+
// lib/motion/properties.ts
|
|
2158
2158
|
function parse2(path) {
|
|
2159
2159
|
const hit = parsed.get(path);
|
|
2160
2160
|
if (hit !== void 0) return hit;
|
|
@@ -2463,7 +2463,7 @@ function bindPath(node, path) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
var SAFE_ID, NAME, parsed, asPath, patternOf, isObj, PAGE_TYPES, animatable, fieldOf, FILLS, UNIT_LABEL, TEXT_ANIMATORS, STROKES, LIGHT_NAMES, LIGHTS, EFFECTS, itemRef, SHADER_PARAM_PATTERN, SHADER_PARAM_PATH, COMPONENT_LABEL, px, size, angle, percent, unbounded, color, T, A, inFlow, num2, effectType, SHADOWS, in3D, materialProp, trimProp, cameraProp, poiRest, lightProp, POSITIONED, AIMED, BLACK, CLEAR, GRADIENTS, HALFTONE_BAND_KEYS, REGISTRY, byPattern, ID_PREFIX;
|
|
2465
2465
|
var init_properties = __esm({
|
|
2466
|
-
"
|
|
2466
|
+
"lib/motion/properties.ts"() {
|
|
2467
2467
|
"use strict";
|
|
2468
2468
|
init_trim();
|
|
2469
2469
|
init_morph();
|
|
@@ -2749,7 +2749,7 @@ var init_properties = __esm({
|
|
|
2749
2749
|
}
|
|
2750
2750
|
});
|
|
2751
2751
|
|
|
2752
|
-
//
|
|
2752
|
+
// lib/document/instances.ts
|
|
2753
2753
|
function chainNode(nodes, parts2, i) {
|
|
2754
2754
|
let overrides = {};
|
|
2755
2755
|
let node;
|
|
@@ -2853,7 +2853,7 @@ function isInputPath(node, path, values) {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
var NO_DEFS, defaultsMemo, boundTracks;
|
|
2855
2855
|
var init_instances = __esm({
|
|
2856
|
-
"
|
|
2856
|
+
"lib/document/instances.ts"() {
|
|
2857
2857
|
"use strict";
|
|
2858
2858
|
init_properties();
|
|
2859
2859
|
init_values();
|
|
@@ -2864,7 +2864,7 @@ var init_instances = __esm({
|
|
|
2864
2864
|
}
|
|
2865
2865
|
});
|
|
2866
2866
|
|
|
2867
|
-
//
|
|
2867
|
+
// lib/document/instance-layout.ts
|
|
2868
2868
|
function setLayoutEngine(fn) {
|
|
2869
2869
|
engine = fn;
|
|
2870
2870
|
}
|
|
@@ -2998,7 +2998,7 @@ function instanceContentWidth(nodes, hostId) {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
var engine, scene, AVERAGE_GLYPH, estimate, measurer, generation, unmeasured, cache2, isAuto, computing, virtualIds;
|
|
3000
3000
|
var init_instance_layout = __esm({
|
|
3001
|
-
"
|
|
3001
|
+
"lib/document/instance-layout.ts"() {
|
|
3002
3002
|
"use strict";
|
|
3003
3003
|
engine = null;
|
|
3004
3004
|
scene = null;
|
|
@@ -3023,23 +3023,23 @@ var init_instance_layout = __esm({
|
|
|
3023
3023
|
}
|
|
3024
3024
|
});
|
|
3025
3025
|
|
|
3026
|
-
//
|
|
3026
|
+
// lib/engine/pixel/cells.ts
|
|
3027
3027
|
var LE;
|
|
3028
3028
|
var init_cells = __esm({
|
|
3029
|
-
"
|
|
3029
|
+
"lib/engine/pixel/cells.ts"() {
|
|
3030
3030
|
"use strict";
|
|
3031
3031
|
LE = new Uint8Array(new Uint32Array([16909060]).buffer)[0] === 4;
|
|
3032
3032
|
}
|
|
3033
3033
|
});
|
|
3034
3034
|
|
|
3035
|
-
//
|
|
3035
|
+
// lib/engine/pixel/palettes.ts
|
|
3036
3036
|
var init_palettes = __esm({
|
|
3037
|
-
"
|
|
3037
|
+
"lib/engine/pixel/palettes.ts"() {
|
|
3038
3038
|
"use strict";
|
|
3039
3039
|
}
|
|
3040
3040
|
});
|
|
3041
3041
|
|
|
3042
|
-
//
|
|
3042
|
+
// lib/document/types.ts
|
|
3043
3043
|
function createColor(r, g, b, a = 1) {
|
|
3044
3044
|
return { r, g, b, a };
|
|
3045
3045
|
}
|
|
@@ -3058,51 +3058,51 @@ function createDefaultSceneNodeProps() {
|
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
3060
|
var init_types = __esm({
|
|
3061
|
-
"
|
|
3061
|
+
"lib/document/types.ts"() {
|
|
3062
3062
|
"use strict";
|
|
3063
3063
|
}
|
|
3064
3064
|
});
|
|
3065
3065
|
|
|
3066
|
-
//
|
|
3066
|
+
// lib/engine/routing.ts
|
|
3067
3067
|
var init_routing = __esm({
|
|
3068
|
-
"
|
|
3068
|
+
"lib/engine/routing.ts"() {
|
|
3069
3069
|
"use strict";
|
|
3070
3070
|
}
|
|
3071
3071
|
});
|
|
3072
3072
|
|
|
3073
|
-
//
|
|
3073
|
+
// lib/engine/geometry/flatten.ts
|
|
3074
3074
|
var init_flatten = __esm({
|
|
3075
|
-
"
|
|
3075
|
+
"lib/engine/geometry/flatten.ts"() {
|
|
3076
3076
|
"use strict";
|
|
3077
3077
|
}
|
|
3078
3078
|
});
|
|
3079
3079
|
|
|
3080
|
-
//
|
|
3080
|
+
// lib/engine/text/glyph-linear.ts
|
|
3081
3081
|
var init_glyph_linear = __esm({
|
|
3082
|
-
"
|
|
3082
|
+
"lib/engine/text/glyph-linear.ts"() {
|
|
3083
3083
|
"use strict";
|
|
3084
3084
|
}
|
|
3085
3085
|
});
|
|
3086
3086
|
|
|
3087
|
-
//
|
|
3087
|
+
// lib/engine/text/outline-sdf.ts
|
|
3088
3088
|
var init_outline_sdf = __esm({
|
|
3089
|
-
"
|
|
3089
|
+
"lib/engine/text/outline-sdf.ts"() {
|
|
3090
3090
|
"use strict";
|
|
3091
3091
|
}
|
|
3092
3092
|
});
|
|
3093
3093
|
|
|
3094
|
-
//
|
|
3094
|
+
// lib/engine/text/text-rings.ts
|
|
3095
3095
|
var init_text_rings = __esm({
|
|
3096
|
-
"
|
|
3096
|
+
"lib/engine/text/text-rings.ts"() {
|
|
3097
3097
|
"use strict";
|
|
3098
3098
|
init_glyph_linear();
|
|
3099
3099
|
init_outline_sdf();
|
|
3100
3100
|
}
|
|
3101
3101
|
});
|
|
3102
3102
|
|
|
3103
|
-
//
|
|
3103
|
+
// lib/engine/geometry/shape-outline.ts
|
|
3104
3104
|
var init_shape_outline = __esm({
|
|
3105
|
-
"
|
|
3105
|
+
"lib/engine/geometry/shape-outline.ts"() {
|
|
3106
3106
|
"use strict";
|
|
3107
3107
|
init_flatten();
|
|
3108
3108
|
init_layout_access();
|
|
@@ -3110,10 +3110,10 @@ var init_shape_outline = __esm({
|
|
|
3110
3110
|
}
|
|
3111
3111
|
});
|
|
3112
3112
|
|
|
3113
|
-
//
|
|
3113
|
+
// lib/units/units.ts
|
|
3114
3114
|
var PX_PER, toPx;
|
|
3115
3115
|
var init_units = __esm({
|
|
3116
|
-
"
|
|
3116
|
+
"lib/units/units.ts"() {
|
|
3117
3117
|
"use strict";
|
|
3118
3118
|
PX_PER = {
|
|
3119
3119
|
px: 1,
|
|
@@ -3127,7 +3127,7 @@ var init_units = __esm({
|
|
|
3127
3127
|
}
|
|
3128
3128
|
});
|
|
3129
3129
|
|
|
3130
|
-
//
|
|
3130
|
+
// lib/presets/page-presets.ts
|
|
3131
3131
|
var page_presets_exports = {};
|
|
3132
3132
|
__export(page_presets_exports, {
|
|
3133
3133
|
PAGE_PRESETS: () => PAGE_PRESETS,
|
|
@@ -3147,7 +3147,7 @@ function presetPx(preset2) {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
var p, PRINT_MM, PRINT_IN, PAGE_PRESETS, PRESET_CATEGORIES, presetById, presetsFor, kindForCategory;
|
|
3149
3149
|
var init_page_presets = __esm({
|
|
3150
|
-
"
|
|
3150
|
+
"lib/presets/page-presets.ts"() {
|
|
3151
3151
|
"use strict";
|
|
3152
3152
|
init_units();
|
|
3153
3153
|
p = (id, name, category, width, height, unit, extra = {}) => ({ id, name, category, width, height, unit, ...extra });
|
|
@@ -3190,6 +3190,8 @@ var init_page_presets = __esm({
|
|
|
3190
3190
|
p("poster-24x36", "Poster 24\xD736", "PRINT", 24, 36, "in", PRINT_IN),
|
|
3191
3191
|
// Social
|
|
3192
3192
|
p("ig-post", "Instagram post", "SOCIAL", 1080, 1080, "px"),
|
|
3193
|
+
// A GIF to send in a text message: small enough for MMS, square so every messaging app shows it whole.
|
|
3194
|
+
p("text-gif", "Text message GIF (480\xD7480)", "SOCIAL", 480, 480, "px"),
|
|
3193
3195
|
p("ig-portrait", "Instagram portrait", "SOCIAL", 1080, 1350, "px"),
|
|
3194
3196
|
p("ig-story", "Instagram story / reel", "SOCIAL", 1080, 1920, "px"),
|
|
3195
3197
|
p("fb-post", "Facebook post", "SOCIAL", 1200, 630, "px"),
|
|
@@ -3271,7 +3273,7 @@ var init_page_presets = __esm({
|
|
|
3271
3273
|
}
|
|
3272
3274
|
});
|
|
3273
3275
|
|
|
3274
|
-
//
|
|
3276
|
+
// lib/document/print-pages.ts
|
|
3275
3277
|
var print_pages_exports = {};
|
|
3276
3278
|
__export(print_pages_exports, {
|
|
3277
3279
|
addHeaderFooterToMaster: () => addHeaderFooterToMaster,
|
|
@@ -3506,7 +3508,7 @@ function documentFromPreset(name, preset2) {
|
|
|
3506
3508
|
}
|
|
3507
3509
|
var isFixedPageKind, isPrintPage, isMasterPage, ordered, edges, gutter, masterPosition, foldsOn, MASTER_NAMES;
|
|
3508
3510
|
var init_print_pages = __esm({
|
|
3509
|
-
"
|
|
3511
|
+
"lib/document/print-pages.ts"() {
|
|
3510
3512
|
"use strict";
|
|
3511
3513
|
init_dist_node();
|
|
3512
3514
|
init_scene_graph();
|
|
@@ -3527,7 +3529,7 @@ var init_print_pages = __esm({
|
|
|
3527
3529
|
}
|
|
3528
3530
|
});
|
|
3529
3531
|
|
|
3530
|
-
//
|
|
3532
|
+
// lib/document/scene-graph.ts
|
|
3531
3533
|
function virtualRootOf(host, doc) {
|
|
3532
3534
|
if (!host) return void 0;
|
|
3533
3535
|
if (host.type === "INSTANCE") return host.mainComponentId || void 0;
|
|
@@ -3587,8 +3589,8 @@ function resolveVirtualNode2(nodes, id, opts) {
|
|
|
3587
3589
|
if (refs.visible && typeof props[refs.visible] === "boolean") resolved.visible = props[refs.visible];
|
|
3588
3590
|
}
|
|
3589
3591
|
if (resolved.componentPropertyPaths || resolved.motion?.tracks) {
|
|
3590
|
-
const
|
|
3591
|
-
if (
|
|
3592
|
+
const shown2 = withPropertyPaths(resolved, props ?? effectiveComponentProperties(nodes, parts2));
|
|
3593
|
+
if (shown2 !== resolved) Object.assign(resolved, shown2);
|
|
3592
3594
|
}
|
|
3593
3595
|
if (resolved.type === "INSTANCE" && instance.type === "INSTANCE") {
|
|
3594
3596
|
const ref = resolved.componentPropertyReferences?.mainComponent;
|
|
@@ -4264,7 +4266,7 @@ function reparentNode(document2, nodeId, newParentId, index) {
|
|
|
4264
4266
|
}
|
|
4265
4267
|
var ZERO_TRANSFORM, ROOT, resolverCache;
|
|
4266
4268
|
var init_scene_graph = __esm({
|
|
4267
|
-
"
|
|
4269
|
+
"lib/document/scene-graph.ts"() {
|
|
4268
4270
|
"use strict";
|
|
4269
4271
|
init_dist_node();
|
|
4270
4272
|
init_effects();
|
|
@@ -4287,16 +4289,16 @@ var init_scene_graph = __esm({
|
|
|
4287
4289
|
}
|
|
4288
4290
|
});
|
|
4289
4291
|
|
|
4290
|
-
//
|
|
4292
|
+
// lib/document/detach.ts
|
|
4291
4293
|
var init_detach = __esm({
|
|
4292
|
-
"
|
|
4294
|
+
"lib/document/detach.ts"() {
|
|
4293
4295
|
"use strict";
|
|
4294
4296
|
init_scene_graph();
|
|
4295
4297
|
init_instances();
|
|
4296
4298
|
}
|
|
4297
4299
|
});
|
|
4298
4300
|
|
|
4299
|
-
//
|
|
4301
|
+
// lib/document/libraries.ts
|
|
4300
4302
|
function rewriteIds(value, map) {
|
|
4301
4303
|
if (typeof value === "string") return map.get(value) ?? value;
|
|
4302
4304
|
if (!value || typeof value !== "object") return value;
|
|
@@ -4306,13 +4308,13 @@ function rewriteIds(value, map) {
|
|
|
4306
4308
|
return out;
|
|
4307
4309
|
}
|
|
4308
4310
|
var init_libraries = __esm({
|
|
4309
|
-
"
|
|
4311
|
+
"lib/document/libraries.ts"() {
|
|
4310
4312
|
init_scene_graph();
|
|
4311
4313
|
init_detach();
|
|
4312
4314
|
}
|
|
4313
4315
|
});
|
|
4314
4316
|
|
|
4315
|
-
//
|
|
4317
|
+
// lib/document/color.ts
|
|
4316
4318
|
function hexToColor(input, fallbackAlpha = 1) {
|
|
4317
4319
|
const h = input.trim().replace(/^#/, "");
|
|
4318
4320
|
if (!/^[0-9a-fA-F]+$/.test(h)) return null;
|
|
@@ -4345,7 +4347,7 @@ function over(top, bottom) {
|
|
|
4345
4347
|
}
|
|
4346
4348
|
var clamp01, linear, luminance;
|
|
4347
4349
|
var init_color = __esm({
|
|
4348
|
-
"
|
|
4350
|
+
"lib/document/color.ts"() {
|
|
4349
4351
|
"use strict";
|
|
4350
4352
|
clamp01 = (n) => n < 0 ? 0 : n > 1 ? 1 : n;
|
|
4351
4353
|
linear = (c) => c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
@@ -4353,16 +4355,16 @@ var init_color = __esm({
|
|
|
4353
4355
|
}
|
|
4354
4356
|
});
|
|
4355
4357
|
|
|
4356
|
-
//
|
|
4358
|
+
// lib/agent/design-script/helper-names.ts
|
|
4357
4359
|
var HELPER_NAMES;
|
|
4358
4360
|
var init_helper_names = __esm({
|
|
4359
|
-
"
|
|
4361
|
+
"lib/agent/design-script/helper-names.ts"() {
|
|
4360
4362
|
"use strict";
|
|
4361
4363
|
HELPER_NAMES = ["draw", "marks", "fit", "motion", "captions", "overlays", "texture", "pointer", "windows", "devices", "type", "beat", "web", "social", "video", "site", "effects"];
|
|
4362
4364
|
}
|
|
4363
4365
|
});
|
|
4364
4366
|
|
|
4365
|
-
//
|
|
4367
|
+
// lib/document/auto-layout.ts
|
|
4366
4368
|
function applyAutoLayout(doc) {
|
|
4367
4369
|
let any2 = false;
|
|
4368
4370
|
for (const id in doc.nodes) if (isAutoLayout(doc.nodes[id])) {
|
|
@@ -4785,14 +4787,14 @@ function isAutoLayout(node) {
|
|
|
4785
4787
|
return !!node && (node.type === "FRAME" || node.type === "COMPONENT" || node.type === "COMPONENT_SET" || node.type === "INSTANCE") && node.layoutMode && node.layoutMode !== "NONE";
|
|
4786
4788
|
}
|
|
4787
4789
|
var init_auto_layout = __esm({
|
|
4788
|
-
"
|
|
4790
|
+
"lib/document/auto-layout.ts"() {
|
|
4789
4791
|
"use strict";
|
|
4790
4792
|
init_instance_layout();
|
|
4791
4793
|
setLayoutEngine(applyAutoLayout);
|
|
4792
4794
|
}
|
|
4793
4795
|
});
|
|
4794
4796
|
|
|
4795
|
-
//
|
|
4797
|
+
// lib/document/breakpoints.ts
|
|
4796
4798
|
function breakpointsOf(doc) {
|
|
4797
4799
|
const list2 = doc.site?.breakpoints?.length ? doc.site.breakpoints : DEFAULT_BREAKPOINTS;
|
|
4798
4800
|
const base = list2.find((b) => b.maxWidth === null) ?? { ...DEFAULT_BREAKPOINTS[0] };
|
|
@@ -4862,7 +4864,7 @@ function foldVariant(doc, masterId, variantId, id) {
|
|
|
4862
4864
|
}
|
|
4863
4865
|
var DEFAULT_BREAKPOINTS, RESPONSIVE_PROPS, RESPONSIVE, same2;
|
|
4864
4866
|
var init_breakpoints = __esm({
|
|
4865
|
-
"
|
|
4867
|
+
"lib/document/breakpoints.ts"() {
|
|
4866
4868
|
init_auto_layout();
|
|
4867
4869
|
DEFAULT_BREAKPOINTS = [
|
|
4868
4870
|
{ id: "desktop", name: "Desktop", maxWidth: null, previewWidth: 1280 },
|
|
@@ -4900,7 +4902,7 @@ var init_breakpoints = __esm({
|
|
|
4900
4902
|
}
|
|
4901
4903
|
});
|
|
4902
4904
|
|
|
4903
|
-
//
|
|
4905
|
+
// lib/document/photo-frames.ts
|
|
4904
4906
|
function makePhotoFrame(doc, shapeId) {
|
|
4905
4907
|
const shape2 = doc.nodes[shapeId];
|
|
4906
4908
|
if (!shape2 || !shape2.parentId || shape2.type === "GROUP" || shape2.type === "PAGE") return { document: doc, id: null };
|
|
@@ -4923,17 +4925,17 @@ function makePhotoFrame(doc, shapeId) {
|
|
|
4923
4925
|
return { document: document2, id: group.id };
|
|
4924
4926
|
}
|
|
4925
4927
|
var init_photo_frames = __esm({
|
|
4926
|
-
"
|
|
4928
|
+
"lib/document/photo-frames.ts"() {
|
|
4927
4929
|
init_dist_node();
|
|
4928
4930
|
init_scene_graph();
|
|
4929
4931
|
init_types();
|
|
4930
4932
|
}
|
|
4931
4933
|
});
|
|
4932
4934
|
|
|
4933
|
-
//
|
|
4935
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/DecodeStream.js
|
|
4934
4936
|
var ENCODING_MAPPING, DecodeStream;
|
|
4935
4937
|
var init_DecodeStream = __esm({
|
|
4936
|
-
"
|
|
4938
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/DecodeStream.js"() {
|
|
4937
4939
|
ENCODING_MAPPING = {
|
|
4938
4940
|
utf16le: "utf-16le",
|
|
4939
4941
|
ucs2: "utf-16le",
|
|
@@ -5010,7 +5012,7 @@ var init_DecodeStream = __esm({
|
|
|
5010
5012
|
}
|
|
5011
5013
|
});
|
|
5012
5014
|
|
|
5013
|
-
//
|
|
5015
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/EncodeStream.js
|
|
5014
5016
|
function stringToUtf16(string, swap) {
|
|
5015
5017
|
let buf = new Uint16Array(string.length);
|
|
5016
5018
|
for (let i = 0; i < string.length; i++) {
|
|
@@ -5031,7 +5033,7 @@ function stringToAscii(string) {
|
|
|
5031
5033
|
}
|
|
5032
5034
|
var textEncoder, isBigEndian, EncodeStream;
|
|
5033
5035
|
var init_EncodeStream = __esm({
|
|
5034
|
-
"
|
|
5036
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/EncodeStream.js"() {
|
|
5035
5037
|
init_DecodeStream();
|
|
5036
5038
|
textEncoder = new TextEncoder();
|
|
5037
5039
|
isBigEndian = new Uint8Array(new Uint16Array([4660]).buffer)[0] == 18;
|
|
@@ -5127,10 +5129,10 @@ var init_EncodeStream = __esm({
|
|
|
5127
5129
|
}
|
|
5128
5130
|
});
|
|
5129
5131
|
|
|
5130
|
-
//
|
|
5132
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Base.js
|
|
5131
5133
|
var Base;
|
|
5132
5134
|
var init_Base = __esm({
|
|
5133
|
-
"
|
|
5135
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Base.js"() {
|
|
5134
5136
|
init_DecodeStream();
|
|
5135
5137
|
init_EncodeStream();
|
|
5136
5138
|
Base = class {
|
|
@@ -5149,10 +5151,10 @@ var init_Base = __esm({
|
|
|
5149
5151
|
}
|
|
5150
5152
|
});
|
|
5151
5153
|
|
|
5152
|
-
//
|
|
5154
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Number.js
|
|
5153
5155
|
var NumberT, uint8, uint16be, uint16, uint16le, uint24be, uint24, uint24le, uint32be, uint32, uint32le, int8, int16be, int16, int16le, int24be, int24le, int32be, int32, int32le, floatbe, floatle, doublebe, doublele, Fixed, fixed16be, fixed16, fixed16le, fixed32be, fixed32, fixed32le;
|
|
5154
5156
|
var init_Number = __esm({
|
|
5155
|
-
"
|
|
5157
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Number.js"() {
|
|
5156
5158
|
init_DecodeStream();
|
|
5157
5159
|
init_Base();
|
|
5158
5160
|
NumberT = class extends Base {
|
|
@@ -5219,7 +5221,7 @@ var init_Number = __esm({
|
|
|
5219
5221
|
}
|
|
5220
5222
|
});
|
|
5221
5223
|
|
|
5222
|
-
//
|
|
5224
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/utils.js
|
|
5223
5225
|
function resolveLength(length, stream, parent) {
|
|
5224
5226
|
let res;
|
|
5225
5227
|
if (typeof length === "number") {
|
|
@@ -5238,7 +5240,7 @@ function resolveLength(length, stream, parent) {
|
|
|
5238
5240
|
}
|
|
5239
5241
|
var PropertyDescriptor;
|
|
5240
5242
|
var init_utils = __esm({
|
|
5241
|
-
"
|
|
5243
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/utils.js"() {
|
|
5242
5244
|
init_Number();
|
|
5243
5245
|
PropertyDescriptor = class {
|
|
5244
5246
|
constructor(opts = {}) {
|
|
@@ -5253,10 +5255,10 @@ var init_utils = __esm({
|
|
|
5253
5255
|
}
|
|
5254
5256
|
});
|
|
5255
5257
|
|
|
5256
|
-
//
|
|
5258
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Array.js
|
|
5257
5259
|
var ArrayT;
|
|
5258
5260
|
var init_Array = __esm({
|
|
5259
|
-
"
|
|
5261
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Array.js"() {
|
|
5260
5262
|
init_Base();
|
|
5261
5263
|
init_Number();
|
|
5262
5264
|
init_utils();
|
|
@@ -5339,10 +5341,10 @@ var init_Array = __esm({
|
|
|
5339
5341
|
}
|
|
5340
5342
|
});
|
|
5341
5343
|
|
|
5342
|
-
//
|
|
5344
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/LazyArray.js
|
|
5343
5345
|
var LazyArray, LazyArrayValue;
|
|
5344
5346
|
var init_LazyArray = __esm({
|
|
5345
|
-
"
|
|
5347
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/LazyArray.js"() {
|
|
5346
5348
|
init_Array();
|
|
5347
5349
|
init_Number();
|
|
5348
5350
|
init_utils();
|
|
@@ -5407,10 +5409,10 @@ var init_LazyArray = __esm({
|
|
|
5407
5409
|
}
|
|
5408
5410
|
});
|
|
5409
5411
|
|
|
5410
|
-
//
|
|
5412
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Bitfield.js
|
|
5411
5413
|
var Bitfield;
|
|
5412
5414
|
var init_Bitfield = __esm({
|
|
5413
|
-
"
|
|
5415
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Bitfield.js"() {
|
|
5414
5416
|
init_Base();
|
|
5415
5417
|
Bitfield = class extends Base {
|
|
5416
5418
|
constructor(type, flags = []) {
|
|
@@ -5448,17 +5450,17 @@ var init_Bitfield = __esm({
|
|
|
5448
5450
|
}
|
|
5449
5451
|
});
|
|
5450
5452
|
|
|
5451
|
-
//
|
|
5453
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Boolean.js
|
|
5452
5454
|
var init_Boolean = __esm({
|
|
5453
|
-
"
|
|
5455
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Boolean.js"() {
|
|
5454
5456
|
init_Base();
|
|
5455
5457
|
}
|
|
5456
5458
|
});
|
|
5457
5459
|
|
|
5458
|
-
//
|
|
5460
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Buffer.js
|
|
5459
5461
|
var BufferT;
|
|
5460
5462
|
var init_Buffer = __esm({
|
|
5461
|
-
"
|
|
5463
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Buffer.js"() {
|
|
5462
5464
|
init_Base();
|
|
5463
5465
|
init_Number();
|
|
5464
5466
|
init_utils();
|
|
@@ -5491,17 +5493,17 @@ var init_Buffer = __esm({
|
|
|
5491
5493
|
}
|
|
5492
5494
|
});
|
|
5493
5495
|
|
|
5494
|
-
//
|
|
5496
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Enum.js
|
|
5495
5497
|
var init_Enum = __esm({
|
|
5496
|
-
"
|
|
5498
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Enum.js"() {
|
|
5497
5499
|
init_Base();
|
|
5498
5500
|
}
|
|
5499
5501
|
});
|
|
5500
5502
|
|
|
5501
|
-
//
|
|
5503
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Optional.js
|
|
5502
5504
|
var Optional;
|
|
5503
5505
|
var init_Optional = __esm({
|
|
5504
|
-
"
|
|
5506
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Optional.js"() {
|
|
5505
5507
|
init_Base();
|
|
5506
5508
|
Optional = class extends Base {
|
|
5507
5509
|
constructor(type, condition = true) {
|
|
@@ -5542,10 +5544,10 @@ var init_Optional = __esm({
|
|
|
5542
5544
|
}
|
|
5543
5545
|
});
|
|
5544
5546
|
|
|
5545
|
-
//
|
|
5547
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Reserved.js
|
|
5546
5548
|
var Reserved;
|
|
5547
5549
|
var init_Reserved = __esm({
|
|
5548
|
-
"
|
|
5550
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Reserved.js"() {
|
|
5549
5551
|
init_Base();
|
|
5550
5552
|
init_utils();
|
|
5551
5553
|
Reserved = class extends Base {
|
|
@@ -5569,7 +5571,7 @@ var init_Reserved = __esm({
|
|
|
5569
5571
|
}
|
|
5570
5572
|
});
|
|
5571
5573
|
|
|
5572
|
-
//
|
|
5574
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/String.js
|
|
5573
5575
|
function encodingWidth(encoding) {
|
|
5574
5576
|
switch (encoding) {
|
|
5575
5577
|
case "ascii":
|
|
@@ -5626,7 +5628,7 @@ function byteLength(string, encoding) {
|
|
|
5626
5628
|
}
|
|
5627
5629
|
var StringT;
|
|
5628
5630
|
var init_String = __esm({
|
|
5629
|
-
"
|
|
5631
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/String.js"() {
|
|
5630
5632
|
init_Base();
|
|
5631
5633
|
init_Number();
|
|
5632
5634
|
init_utils();
|
|
@@ -5696,10 +5698,10 @@ var init_String = __esm({
|
|
|
5696
5698
|
}
|
|
5697
5699
|
});
|
|
5698
5700
|
|
|
5699
|
-
//
|
|
5701
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Struct.js
|
|
5700
5702
|
var Struct;
|
|
5701
5703
|
var init_Struct = __esm({
|
|
5702
|
-
"
|
|
5704
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Struct.js"() {
|
|
5703
5705
|
init_Base();
|
|
5704
5706
|
init_utils();
|
|
5705
5707
|
Struct = class extends Base {
|
|
@@ -5797,10 +5799,10 @@ var init_Struct = __esm({
|
|
|
5797
5799
|
}
|
|
5798
5800
|
});
|
|
5799
5801
|
|
|
5800
|
-
//
|
|
5802
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/VersionedStruct.js
|
|
5801
5803
|
var getPath, VersionedStruct;
|
|
5802
5804
|
var init_VersionedStruct = __esm({
|
|
5803
|
-
"
|
|
5805
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/VersionedStruct.js"() {
|
|
5804
5806
|
init_Struct();
|
|
5805
5807
|
getPath = (object, pathArray) => {
|
|
5806
5808
|
return pathArray.reduce((prevObj, key2) => prevObj && prevObj[key2], object);
|
|
@@ -5918,10 +5920,10 @@ var init_VersionedStruct = __esm({
|
|
|
5918
5920
|
}
|
|
5919
5921
|
});
|
|
5920
5922
|
|
|
5921
|
-
//
|
|
5923
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Pointer.js
|
|
5922
5924
|
var Pointer, VoidPointer;
|
|
5923
5925
|
var init_Pointer = __esm({
|
|
5924
|
-
"
|
|
5926
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/src/Pointer.js"() {
|
|
5925
5927
|
init_utils();
|
|
5926
5928
|
init_Base();
|
|
5927
5929
|
Pointer = class extends Base {
|
|
@@ -6082,9 +6084,9 @@ var init_Pointer = __esm({
|
|
|
6082
6084
|
}
|
|
6083
6085
|
});
|
|
6084
6086
|
|
|
6085
|
-
//
|
|
6087
|
+
// node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/index.js
|
|
6086
6088
|
var init_restructure = __esm({
|
|
6087
|
-
"
|
|
6089
|
+
"node_modules/.pnpm/restructure@3.0.2/node_modules/restructure/index.js"() {
|
|
6088
6090
|
init_EncodeStream();
|
|
6089
6091
|
init_DecodeStream();
|
|
6090
6092
|
init_Array();
|
|
@@ -6104,7 +6106,7 @@ var init_restructure = __esm({
|
|
|
6104
6106
|
}
|
|
6105
6107
|
});
|
|
6106
6108
|
|
|
6107
|
-
//
|
|
6109
|
+
// node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_define_property.js
|
|
6108
6110
|
function _define_property(obj, key2, value) {
|
|
6109
6111
|
if (key2 in obj) {
|
|
6110
6112
|
Object.defineProperty(obj, key2, { value, enumerable: true, configurable: true, writable: true });
|
|
@@ -6112,11 +6114,11 @@ function _define_property(obj, key2, value) {
|
|
|
6112
6114
|
return obj;
|
|
6113
6115
|
}
|
|
6114
6116
|
var init_define_property = __esm({
|
|
6115
|
-
"
|
|
6117
|
+
"node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_define_property.js"() {
|
|
6116
6118
|
}
|
|
6117
6119
|
});
|
|
6118
6120
|
|
|
6119
|
-
//
|
|
6121
|
+
// node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
6120
6122
|
function __decorate(decorators, target, key2, desc) {
|
|
6121
6123
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key2) : desc, d;
|
|
6122
6124
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key2, desc);
|
|
@@ -6124,20 +6126,20 @@ function __decorate(decorators, target, key2, desc) {
|
|
|
6124
6126
|
return c > 3 && r && Object.defineProperty(target, key2, r), r;
|
|
6125
6127
|
}
|
|
6126
6128
|
var init_tslib_es6 = __esm({
|
|
6127
|
-
"
|
|
6129
|
+
"node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"() {
|
|
6128
6130
|
}
|
|
6129
6131
|
});
|
|
6130
6132
|
|
|
6131
|
-
//
|
|
6133
|
+
// node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_ts_decorate.js
|
|
6132
6134
|
var init_ts_decorate = __esm({
|
|
6133
|
-
"
|
|
6135
|
+
"node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_ts_decorate.js"() {
|
|
6134
6136
|
init_tslib_es6();
|
|
6135
6137
|
}
|
|
6136
6138
|
});
|
|
6137
6139
|
|
|
6138
|
-
//
|
|
6140
|
+
// node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
6139
6141
|
var require_fast_deep_equal = __commonJS({
|
|
6140
|
-
"
|
|
6142
|
+
"node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
6141
6143
|
"use strict";
|
|
6142
6144
|
module.exports = function equal(a, b) {
|
|
6143
6145
|
if (a === b) return true;
|
|
@@ -6170,9 +6172,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
6170
6172
|
}
|
|
6171
6173
|
});
|
|
6172
6174
|
|
|
6173
|
-
//
|
|
6175
|
+
// node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
|
|
6174
6176
|
var require_base64_js = __commonJS({
|
|
6175
|
-
"
|
|
6177
|
+
"node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports) {
|
|
6176
6178
|
"use strict";
|
|
6177
6179
|
exports.byteLength = byteLength2;
|
|
6178
6180
|
exports.toByteArray = toByteArray;
|
|
@@ -6271,9 +6273,9 @@ var require_base64_js = __commonJS({
|
|
|
6271
6273
|
}
|
|
6272
6274
|
});
|
|
6273
6275
|
|
|
6274
|
-
//
|
|
6276
|
+
// node_modules/.pnpm/tiny-inflate@1.0.3/node_modules/tiny-inflate/index.js
|
|
6275
6277
|
var require_tiny_inflate = __commonJS({
|
|
6276
|
-
"
|
|
6278
|
+
"node_modules/.pnpm/tiny-inflate@1.0.3/node_modules/tiny-inflate/index.js"(exports, module) {
|
|
6277
6279
|
var TINF_OK = 0;
|
|
6278
6280
|
var TINF_DATA_ERROR = -3;
|
|
6279
6281
|
function Tree() {
|
|
@@ -6514,9 +6516,9 @@ var require_tiny_inflate = __commonJS({
|
|
|
6514
6516
|
}
|
|
6515
6517
|
});
|
|
6516
6518
|
|
|
6517
|
-
//
|
|
6519
|
+
// node_modules/.pnpm/unicode-trie@2.0.0/node_modules/unicode-trie/swap.js
|
|
6518
6520
|
var require_swap = __commonJS({
|
|
6519
|
-
"
|
|
6521
|
+
"node_modules/.pnpm/unicode-trie@2.0.0/node_modules/unicode-trie/swap.js"(exports, module) {
|
|
6520
6522
|
var isBigEndian2 = new Uint8Array(new Uint32Array([305419896]).buffer)[0] === 18;
|
|
6521
6523
|
var swap = (b, n, m) => {
|
|
6522
6524
|
let i = b[n];
|
|
@@ -6541,9 +6543,9 @@ var require_swap = __commonJS({
|
|
|
6541
6543
|
}
|
|
6542
6544
|
});
|
|
6543
6545
|
|
|
6544
|
-
//
|
|
6546
|
+
// node_modules/.pnpm/unicode-trie@2.0.0/node_modules/unicode-trie/index.js
|
|
6545
6547
|
var require_unicode_trie = __commonJS({
|
|
6546
|
-
"
|
|
6548
|
+
"node_modules/.pnpm/unicode-trie@2.0.0/node_modules/unicode-trie/index.js"(exports, module) {
|
|
6547
6549
|
var inflate = require_tiny_inflate();
|
|
6548
6550
|
var { swap32LE } = require_swap();
|
|
6549
6551
|
var SHIFT_1 = 6 + 5;
|
|
@@ -6613,7 +6615,7 @@ var require_unicode_trie = __commonJS({
|
|
|
6613
6615
|
}
|
|
6614
6616
|
});
|
|
6615
6617
|
|
|
6616
|
-
//
|
|
6618
|
+
// node_modules/.pnpm/unicode-properties@1.4.1/node_modules/unicode-properties/dist/module.mjs
|
|
6617
6619
|
function $parcel$interopDefault(a) {
|
|
6618
6620
|
return a && a.__esModule ? a.default : a;
|
|
6619
6621
|
}
|
|
@@ -6638,7 +6640,7 @@ function $747425b437e121da$export$e33ad6871e762338(codePoint) {
|
|
|
6638
6640
|
}
|
|
6639
6641
|
var import_base64_js, import_unicode_trie, $f4087201da764553$exports, $747425b437e121da$var$trie, $747425b437e121da$var$log2, $747425b437e121da$var$bits, $747425b437e121da$var$CATEGORY_BITS, $747425b437e121da$var$COMBINING_BITS, $747425b437e121da$var$SCRIPT_BITS, $747425b437e121da$var$EAW_BITS, $747425b437e121da$var$NUMBER_BITS, $747425b437e121da$var$CATEGORY_SHIFT, $747425b437e121da$var$COMBINING_SHIFT, $747425b437e121da$var$SCRIPT_SHIFT, $747425b437e121da$var$CATEGORY_MASK, $747425b437e121da$var$COMBINING_MASK, $747425b437e121da$var$SCRIPT_MASK, $747425b437e121da$var$EAW_MASK, $747425b437e121da$var$NUMBER_MASK;
|
|
6640
6642
|
var init_module = __esm({
|
|
6641
|
-
"
|
|
6643
|
+
"node_modules/.pnpm/unicode-properties@1.4.1/node_modules/unicode-properties/dist/module.mjs"() {
|
|
6642
6644
|
import_base64_js = __toESM(require_base64_js(), 1);
|
|
6643
6645
|
import_unicode_trie = __toESM(require_unicode_trie(), 1);
|
|
6644
6646
|
$f4087201da764553$exports = {};
|
|
@@ -6662,9 +6664,9 @@ var init_module = __esm({
|
|
|
6662
6664
|
}
|
|
6663
6665
|
});
|
|
6664
6666
|
|
|
6665
|
-
//
|
|
6667
|
+
// node_modules/.pnpm/dfa@1.2.0/node_modules/dfa/index.js
|
|
6666
6668
|
var require_dfa = __commonJS({
|
|
6667
|
-
"
|
|
6669
|
+
"node_modules/.pnpm/dfa@1.2.0/node_modules/dfa/index.js"(exports, module) {
|
|
6668
6670
|
"use strict";
|
|
6669
6671
|
var INITIAL_STATE = 1;
|
|
6670
6672
|
var FAIL_STATE = 0;
|
|
@@ -6732,9 +6734,9 @@ var require_dfa = __commonJS({
|
|
|
6732
6734
|
}
|
|
6733
6735
|
});
|
|
6734
6736
|
|
|
6735
|
-
//
|
|
6737
|
+
// node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js
|
|
6736
6738
|
var require_clone = __commonJS({
|
|
6737
|
-
"
|
|
6739
|
+
"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js"(exports, module) {
|
|
6738
6740
|
var clone = (function() {
|
|
6739
6741
|
"use strict";
|
|
6740
6742
|
function _instanceof(obj, type) {
|
|
@@ -6928,9 +6930,9 @@ var require_clone = __commonJS({
|
|
|
6928
6930
|
}
|
|
6929
6931
|
});
|
|
6930
6932
|
|
|
6931
|
-
//
|
|
6933
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/streams.js
|
|
6932
6934
|
var require_streams = __commonJS({
|
|
6933
|
-
"
|
|
6935
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/streams.js"(exports) {
|
|
6934
6936
|
function BrotliInput(buffer) {
|
|
6935
6937
|
this.buffer = buffer;
|
|
6936
6938
|
this.pos = 0;
|
|
@@ -6960,9 +6962,9 @@ var require_streams = __commonJS({
|
|
|
6960
6962
|
}
|
|
6961
6963
|
});
|
|
6962
6964
|
|
|
6963
|
-
//
|
|
6965
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/bit_reader.js
|
|
6964
6966
|
var require_bit_reader = __commonJS({
|
|
6965
|
-
"
|
|
6967
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/bit_reader.js"(exports, module) {
|
|
6966
6968
|
var BROTLI_READ_SIZE = 4096;
|
|
6967
6969
|
var BROTLI_IBUF_SIZE = 2 * BROTLI_READ_SIZE + 32;
|
|
6968
6970
|
var BROTLI_IBUF_MASK = 2 * BROTLI_READ_SIZE - 1;
|
|
@@ -7062,9 +7064,9 @@ var require_bit_reader = __commonJS({
|
|
|
7062
7064
|
}
|
|
7063
7065
|
});
|
|
7064
7066
|
|
|
7065
|
-
//
|
|
7067
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/dictionary-data.js
|
|
7066
7068
|
var require_dictionary_data = __commonJS({
|
|
7067
|
-
"
|
|
7069
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/dictionary-data.js"(exports) {
|
|
7068
7070
|
exports.dictionary = new Uint8Array([
|
|
7069
7071
|
116,
|
|
7070
7072
|
105,
|
|
@@ -129857,9 +129859,9 @@ var require_dictionary_data = __commonJS({
|
|
|
129857
129859
|
}
|
|
129858
129860
|
});
|
|
129859
129861
|
|
|
129860
|
-
//
|
|
129862
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/dictionary.js
|
|
129861
129863
|
var require_dictionary = __commonJS({
|
|
129862
|
-
"
|
|
129864
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/dictionary.js"(exports) {
|
|
129863
129865
|
var data = require_dictionary_data();
|
|
129864
129866
|
exports.init = function() {
|
|
129865
129867
|
exports.dictionary = data.init();
|
|
@@ -129923,9 +129925,9 @@ var require_dictionary = __commonJS({
|
|
|
129923
129925
|
}
|
|
129924
129926
|
});
|
|
129925
129927
|
|
|
129926
|
-
//
|
|
129928
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/huffman.js
|
|
129927
129929
|
var require_huffman = __commonJS({
|
|
129928
|
-
"
|
|
129930
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/huffman.js"(exports) {
|
|
129929
129931
|
function HuffmanCode(bits, value) {
|
|
129930
129932
|
this.bits = bits;
|
|
129931
129933
|
this.value = value;
|
|
@@ -130023,9 +130025,9 @@ var require_huffman = __commonJS({
|
|
|
130023
130025
|
}
|
|
130024
130026
|
});
|
|
130025
130027
|
|
|
130026
|
-
//
|
|
130028
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/context.js
|
|
130027
130029
|
var require_context = __commonJS({
|
|
130028
|
-
"
|
|
130030
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/context.js"(exports) {
|
|
130029
130031
|
exports.lookup = new Uint8Array([
|
|
130030
130032
|
/* CONTEXT_UTF8, last byte. */
|
|
130031
130033
|
/* ASCII range. */
|
|
@@ -131850,9 +131852,9 @@ var require_context = __commonJS({
|
|
|
131850
131852
|
}
|
|
131851
131853
|
});
|
|
131852
131854
|
|
|
131853
|
-
//
|
|
131855
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/prefix.js
|
|
131854
131856
|
var require_prefix = __commonJS({
|
|
131855
|
-
"
|
|
131857
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/prefix.js"(exports) {
|
|
131856
131858
|
function PrefixCodeRange(offset, nbits) {
|
|
131857
131859
|
this.offset = offset;
|
|
131858
131860
|
this.nbits = nbits;
|
|
@@ -131962,9 +131964,9 @@ var require_prefix = __commonJS({
|
|
|
131962
131964
|
}
|
|
131963
131965
|
});
|
|
131964
131966
|
|
|
131965
|
-
//
|
|
131967
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/transform.js
|
|
131966
131968
|
var require_transform = __commonJS({
|
|
131967
|
-
"
|
|
131969
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/transform.js"(exports) {
|
|
131968
131970
|
var BrotliDictionary = require_dictionary();
|
|
131969
131971
|
var kIdentity = 0;
|
|
131970
131972
|
var kOmitLast1 = 1;
|
|
@@ -132176,9 +132178,9 @@ var require_transform = __commonJS({
|
|
|
132176
132178
|
}
|
|
132177
132179
|
});
|
|
132178
132180
|
|
|
132179
|
-
//
|
|
132181
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/decode.js
|
|
132180
132182
|
var require_decode = __commonJS({
|
|
132181
|
-
"
|
|
132183
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/dec/decode.js"(exports) {
|
|
132182
132184
|
var BrotliInput = require_streams().BrotliInput;
|
|
132183
132185
|
var BrotliOutput = require_streams().BrotliOutput;
|
|
132184
132186
|
var BrotliBitReader = require_bit_reader();
|
|
@@ -133028,14 +133030,14 @@ var require_decode = __commonJS({
|
|
|
133028
133030
|
}
|
|
133029
133031
|
});
|
|
133030
133032
|
|
|
133031
|
-
//
|
|
133033
|
+
// node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/decompress.js
|
|
133032
133034
|
var require_decompress = __commonJS({
|
|
133033
|
-
"
|
|
133035
|
+
"node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/decompress.js"(exports, module) {
|
|
133034
133036
|
module.exports = require_decode().BrotliDecompressBuffer;
|
|
133035
133037
|
}
|
|
133036
133038
|
});
|
|
133037
133039
|
|
|
133038
|
-
//
|
|
133040
|
+
// node_modules/.pnpm/fontkit@2.0.4/node_modules/fontkit/dist/module.mjs
|
|
133039
133041
|
var module_exports = {};
|
|
133040
133042
|
__export(module_exports, {
|
|
133041
133043
|
create: () => $d636bc798e7178db$export$185802fd694ee1f5,
|
|
@@ -134024,7 +134026,7 @@ function $21ee218f84ac7f32$var$decodeTriplet(flags, glyphs, nPoints) {
|
|
|
134024
134026
|
}
|
|
134025
134027
|
var import_fast_deep_equal, import_unicode_trie2, import_dfa, import_clone, import_tiny_inflate, import_decompress, $d636bc798e7178db$exports, $d636bc798e7178db$export$bd5c5d8b8dcafd78, $d636bc798e7178db$var$formats, $d636bc798e7178db$export$42940898df819940, $b422b1e013cd6010$exports, $26a62205ad06574e$var$SubHeader, $26a62205ad06574e$var$CmapGroup, $26a62205ad06574e$var$UnicodeValueRange, $26a62205ad06574e$var$UVSMapping, $26a62205ad06574e$var$DefaultUVS, $26a62205ad06574e$var$NonDefaultUVS, $26a62205ad06574e$var$VarSelectorRecord, $26a62205ad06574e$var$CmapSubtable, $26a62205ad06574e$var$CmapEntry, $26a62205ad06574e$export$2e2bcd8739ae039, $f2612a29f92ac062$export$2e2bcd8739ae039, $2c179dd593583073$export$2e2bcd8739ae039, $bdc9060542264b85$var$HmtxEntry, $bdc9060542264b85$export$2e2bcd8739ae039, $dbf51cb3d3fe409d$export$2e2bcd8739ae039, $e449ad78d50845fe$var$SINGLE_BYTE_ENCODINGS, $e449ad78d50845fe$var$MAC_ENCODINGS, $e449ad78d50845fe$var$encodingCache, $e449ad78d50845fe$export$6fef87b7618bdf0b, $e449ad78d50845fe$export$479e671907f486d1, $e449ad78d50845fe$export$2092376fd002e13, $2bcf221753ec8e32$var$NameRecord, $2bcf221753ec8e32$var$LangTagRecord, $2bcf221753ec8e32$var$NameTable, $2bcf221753ec8e32$export$2e2bcd8739ae039, $2bcf221753ec8e32$var$NAMES, $84b272aa31b70606$var$OS2, $84b272aa31b70606$var$versions, $84b272aa31b70606$export$2e2bcd8739ae039, $32d9e2eb9565d93c$export$2e2bcd8739ae039, $5202bd9d9ad8eaac$export$2e2bcd8739ae039, $5c0f37ca5ffb1850$export$2e2bcd8739ae039, $2b2b260902b1c57e$var$loca, $2b2b260902b1c57e$export$2e2bcd8739ae039, $7afb878c7bea4f66$export$2e2bcd8739ae039, $6c92b6371bce8bd9$export$2e2bcd8739ae039, $43e9821ef3717eec$export$2e2bcd8739ae039, $c2d28e92708f99da$var$FLOAT_EOF, $c2d28e92708f99da$var$FLOAT_LOOKUP, $c2d28e92708f99da$var$FLOAT_ENCODE_LOOKUP, $c2d28e92708f99da$export$2e2bcd8739ae039, $61aa549f16d58b9b$export$2e2bcd8739ae039, $0e34a43d05bde82c$export$2e2bcd8739ae039, $0e34a43d05bde82c$var$Ptr, $6d59db2e29cc77b3$var$CFFBlendOp, $6d59db2e29cc77b3$export$2e2bcd8739ae039, $229224aec43783c5$export$2e2bcd8739ae039, $bc0433d9b7e41f5f$export$dee0027060fa13bd, $bc0433d9b7e41f5f$export$4f58f497e14a53c3, $ef658f5c9a1488b2$export$c33b50336c234f16, $ef658f5c9a1488b2$export$3ed0f9e1fee8d489, $ef658f5c9a1488b2$export$dc28be11139d4120, $7cbbe4e24ef3cb75$var$LangSysTable, $7cbbe4e24ef3cb75$var$LangSysRecord, $7cbbe4e24ef3cb75$var$Script, $7cbbe4e24ef3cb75$var$ScriptRecord, $7cbbe4e24ef3cb75$export$3e15fc05ce864229, $7cbbe4e24ef3cb75$var$FeatureParams, $7cbbe4e24ef3cb75$export$6e91cf7616333d5, $7cbbe4e24ef3cb75$var$FeatureRecord, $7cbbe4e24ef3cb75$export$aa18130def4b6cb4, $7cbbe4e24ef3cb75$var$LookupFlags, $7cbbe4e24ef3cb75$var$RangeRecord, $7cbbe4e24ef3cb75$export$17608c3f81a6111, $7cbbe4e24ef3cb75$var$ClassRangeRecord, $7cbbe4e24ef3cb75$export$843d551fbbafef71, $7cbbe4e24ef3cb75$export$8215d14a63d9fb10, $7cbbe4e24ef3cb75$var$LookupRecord, $7cbbe4e24ef3cb75$var$Rule, $7cbbe4e24ef3cb75$var$RuleSet, $7cbbe4e24ef3cb75$var$ClassRule, $7cbbe4e24ef3cb75$var$ClassSet, $7cbbe4e24ef3cb75$export$841858b892ce1f4c, $7cbbe4e24ef3cb75$var$ChainRule, $7cbbe4e24ef3cb75$var$ChainRuleSet, $7cbbe4e24ef3cb75$export$5e6d09e6861162f6, $1a47b0c45c1c22fe$var$F2DOT14, $1a47b0c45c1c22fe$var$RegionAxisCoordinates, $1a47b0c45c1c22fe$var$VariationRegionList, $1a47b0c45c1c22fe$var$DeltaSet, $1a47b0c45c1c22fe$var$ItemVariationData, $1a47b0c45c1c22fe$export$fe1b122a2710f241, $1a47b0c45c1c22fe$var$ConditionTable, $1a47b0c45c1c22fe$var$ConditionSet, $1a47b0c45c1c22fe$var$FeatureTableSubstitutionRecord, $1a47b0c45c1c22fe$var$FeatureTableSubstitution, $1a47b0c45c1c22fe$var$FeatureVariationRecord, $1a47b0c45c1c22fe$export$441b70b7971dd419, $b84fd3dd9d8eddb2$var$PredefinedOp, $b84fd3dd9d8eddb2$var$CFFEncodingVersion, $b84fd3dd9d8eddb2$var$Range1, $b84fd3dd9d8eddb2$var$Range2, $b84fd3dd9d8eddb2$var$CFFCustomEncoding, $b84fd3dd9d8eddb2$var$CFFEncoding, $b84fd3dd9d8eddb2$var$RangeArray, $b84fd3dd9d8eddb2$var$CFFCustomCharset, $b84fd3dd9d8eddb2$var$CFFCharset, $b84fd3dd9d8eddb2$var$FDRange3, $b84fd3dd9d8eddb2$var$FDRange4, $b84fd3dd9d8eddb2$var$FDSelect, $b84fd3dd9d8eddb2$var$ptr, $b84fd3dd9d8eddb2$var$CFFPrivateOp, $b84fd3dd9d8eddb2$var$FontDict, $b84fd3dd9d8eddb2$var$CFFTopDict, $b84fd3dd9d8eddb2$var$VariationStore, $b84fd3dd9d8eddb2$var$CFF2TopDict, $b84fd3dd9d8eddb2$var$CFFTop, $b84fd3dd9d8eddb2$export$2e2bcd8739ae039, $822ac0d589e4e237$var$CFFFont, $822ac0d589e4e237$export$2e2bcd8739ae039, $2bbf2bc1ce37cd8f$var$VerticalOrigin, $2bbf2bc1ce37cd8f$export$2e2bcd8739ae039, $0941618dc22a946d$export$16b227cb15d716a0, $0941618dc22a946d$export$62c53e75f69bfe12, $0941618dc22a946d$var$EBDTComponent, $0941618dc22a946d$var$ByteAligned, $0941618dc22a946d$var$BitAligned, $0941618dc22a946d$export$f1f5ddeb20d14f, $9911c4c7201c13de$var$SBitLineMetrics, $9911c4c7201c13de$var$CodeOffsetPair, $9911c4c7201c13de$var$IndexSubtable, $9911c4c7201c13de$var$IndexSubtableArray, $9911c4c7201c13de$var$BitmapSizeTable, $9911c4c7201c13de$export$2e2bcd8739ae039, $abb847051efd51b1$var$ImageTable, $abb847051efd51b1$export$2e2bcd8739ae039, $eb629188f3dfefdd$var$LayerRecord, $eb629188f3dfefdd$var$BaseGlyphRecord, $eb629188f3dfefdd$export$2e2bcd8739ae039, $08734b8e7dc64587$var$ColorRecord, $08734b8e7dc64587$export$2e2bcd8739ae039, $497cef411d884e34$var$BaseCoord, $497cef411d884e34$var$BaseValues, $497cef411d884e34$var$FeatMinMaxRecord, $497cef411d884e34$var$MinMax, $497cef411d884e34$var$BaseLangSysRecord, $497cef411d884e34$var$BaseScript, $497cef411d884e34$var$BaseScriptRecord, $497cef411d884e34$var$BaseScriptList, $497cef411d884e34$var$BaseTagList, $497cef411d884e34$var$Axis, $497cef411d884e34$export$2e2bcd8739ae039, $cf5f33c63ef209e6$var$AttachPoint, $cf5f33c63ef209e6$var$AttachList, $cf5f33c63ef209e6$var$CaretValue, $cf5f33c63ef209e6$var$LigGlyph, $cf5f33c63ef209e6$var$LigCaretList, $cf5f33c63ef209e6$var$MarkGlyphSetsDef, $cf5f33c63ef209e6$export$2e2bcd8739ae039, $47e0e8ef515d9903$var$ValueFormat, $47e0e8ef515d9903$var$types, $47e0e8ef515d9903$var$ValueRecord, $47e0e8ef515d9903$var$PairValueRecord, $47e0e8ef515d9903$var$PairSet, $47e0e8ef515d9903$var$Class2Record, $47e0e8ef515d9903$var$Anchor, $47e0e8ef515d9903$var$EntryExitRecord, $47e0e8ef515d9903$var$MarkRecord, $47e0e8ef515d9903$var$MarkArray, $47e0e8ef515d9903$var$BaseRecord, $47e0e8ef515d9903$var$BaseArray, $47e0e8ef515d9903$var$ComponentRecord, $47e0e8ef515d9903$var$LigatureAttach, $47e0e8ef515d9903$var$LigatureArray, $47e0e8ef515d9903$export$73a8cfb19cd43a0f, $47e0e8ef515d9903$export$2e2bcd8739ae039, $d3f442064af66e06$var$Sequence, $d3f442064af66e06$var$AlternateSet, $d3f442064af66e06$var$Ligature, $d3f442064af66e06$var$LigatureSet, $d3f442064af66e06$var$GSUBLookup, $d3f442064af66e06$export$2e2bcd8739ae039, $71cfb3c4767fbd0c$var$JstfGSUBModList, $71cfb3c4767fbd0c$var$JstfPriority, $71cfb3c4767fbd0c$var$JstfLangSys, $71cfb3c4767fbd0c$var$JstfLangSysRecord, $71cfb3c4767fbd0c$var$JstfScript, $71cfb3c4767fbd0c$var$JstfScriptRecord, $71cfb3c4767fbd0c$export$2e2bcd8739ae039, $d059a6bd2d3b5b63$var$VariableSizeNumber, $d059a6bd2d3b5b63$var$MapDataEntry, $d059a6bd2d3b5b63$var$DeltaSetIndexMap, $d059a6bd2d3b5b63$export$2e2bcd8739ae039, $dceeca3e1977ce30$var$Signature, $dceeca3e1977ce30$var$SignatureBlock, $dceeca3e1977ce30$export$2e2bcd8739ae039, $8acd740a9435aad0$var$GaspRange, $8acd740a9435aad0$export$2e2bcd8739ae039, $b5f380243c34d6a0$var$DeviceRecord, $b5f380243c34d6a0$export$2e2bcd8739ae039, $ca2df1256966e313$var$KernPair, $ca2df1256966e313$var$ClassTable, $ca2df1256966e313$var$Kern2Array, $ca2df1256966e313$var$KernSubtable, $ca2df1256966e313$var$KernTable, $ca2df1256966e313$export$2e2bcd8739ae039, $7a9f92b0c46ebe33$export$2e2bcd8739ae039, $2b2ccc419d152631$export$2e2bcd8739ae039, $ca5b40b9bcda9c9b$var$Ratio, $ca5b40b9bcda9c9b$var$vTable, $ca5b40b9bcda9c9b$var$VdmxGroup, $ca5b40b9bcda9c9b$export$2e2bcd8739ae039, $69530a3c40755af0$export$2e2bcd8739ae039, $344073dd270f0e62$var$VmtxEntry, $344073dd270f0e62$export$2e2bcd8739ae039, $3793b781918cfced$var$shortFrac, $3793b781918cfced$var$Correspondence, $3793b781918cfced$var$Segment, $3793b781918cfced$export$2e2bcd8739ae039, $6cb7dd5f47d82580$var$UnboundedArrayAccessor, $6cb7dd5f47d82580$export$c5af1eebc882e39a, $6cb7dd5f47d82580$export$8351f8c2ae2f103c, $6a3746e8c708f5a3$var$BslnSubtable, $6a3746e8c708f5a3$export$2e2bcd8739ae039, $d0c76fac617b308a$var$Setting, $d0c76fac617b308a$var$FeatureName, $d0c76fac617b308a$export$2e2bcd8739ae039, $e83fd065f00fcd01$var$Axis, $e83fd065f00fcd01$var$Instance, $e83fd065f00fcd01$export$2e2bcd8739ae039, $dbe33c8d3a7f131c$var$shortFrac, $dbe33c8d3a7f131c$var$Offset, $dbe33c8d3a7f131c$var$gvar, $dbe33c8d3a7f131c$export$2e2bcd8739ae039, $05b01887df96c4ee$var$ClassTable, $05b01887df96c4ee$var$WidthDeltaRecord, $05b01887df96c4ee$var$WidthDeltaCluster, $05b01887df96c4ee$var$ActionData, $05b01887df96c4ee$var$Action, $05b01887df96c4ee$var$PostcompensationAction, $05b01887df96c4ee$var$PostCompensationTable, $05b01887df96c4ee$var$JustificationTable, $05b01887df96c4ee$export$2e2bcd8739ae039, $03ee6ebd54db1053$var$LigatureData, $03ee6ebd54db1053$var$ContextualData, $03ee6ebd54db1053$var$InsertionData, $03ee6ebd54db1053$var$SubstitutionTable, $03ee6ebd54db1053$var$SubtableData, $03ee6ebd54db1053$var$Subtable, $03ee6ebd54db1053$var$FeatureEntry, $03ee6ebd54db1053$var$MorxChain, $03ee6ebd54db1053$export$2e2bcd8739ae039, $b7492a80b0d1a056$var$OpticalBounds, $b7492a80b0d1a056$export$2e2bcd8739ae039, $c3395722bea751e2$var$tables, $c3395722bea751e2$export$2e2bcd8739ae039, $816c07a04b6dba87$var$TableEntry, $816c07a04b6dba87$var$Directory, $816c07a04b6dba87$export$2e2bcd8739ae039, $12727730ddfc8bfe$export$3d28c1996ced1f14, $12727730ddfc8bfe$var$CHARS, $12727730ddfc8bfe$var$LOOKUP, $f08dd41ef10b694c$export$2e2bcd8739ae039, $0bba3a9db57637f3$export$2e2bcd8739ae039, $0a4bdfeb6dfd6f5e$export$2e2bcd8739ae039, $f34600ab9d7f70d8$export$2e2bcd8739ae039, $130d1a642ebcd2b7$var$UNICODE_SCRIPTS, $130d1a642ebcd2b7$var$OPENTYPE_SCRIPTS, $130d1a642ebcd2b7$var$RTL, $be07b3e97a42687a$export$2e2bcd8739ae039, $1ac75d9a55b67f01$export$2e2bcd8739ae039, $3b6302b64eccc32c$var$features, $3b6302b64eccc32c$var$feature, $3b6302b64eccc32c$var$OTMapping, $3b6302b64eccc32c$var$AATMapping, $ff5ce077dae0f144$export$2e2bcd8739ae039, $50c7aac9316f2948$var$START_OF_TEXT_STATE, $50c7aac9316f2948$var$END_OF_TEXT_CLASS, $50c7aac9316f2948$var$OUT_OF_BOUNDS_CLASS, $50c7aac9316f2948$var$DELETED_GLYPH_CLASS, $50c7aac9316f2948$var$DONT_ADVANCE, $50c7aac9316f2948$export$2e2bcd8739ae039, $55f71433a605c87d$var$MARK_FIRST, $55f71433a605c87d$var$MARK_LAST, $55f71433a605c87d$var$VERB, $55f71433a605c87d$var$SET_MARK, $55f71433a605c87d$var$SET_COMPONENT, $55f71433a605c87d$var$PERFORM_ACTION, $55f71433a605c87d$var$LAST_MASK, $55f71433a605c87d$var$STORE_MASK, $55f71433a605c87d$var$OFFSET_MASK, $55f71433a605c87d$var$REVERSE_DIRECTION, $55f71433a605c87d$var$CURRENT_INSERT_BEFORE, $55f71433a605c87d$var$MARKED_INSERT_BEFORE, $55f71433a605c87d$var$CURRENT_INSERT_COUNT, $55f71433a605c87d$var$MARKED_INSERT_COUNT, $55f71433a605c87d$export$2e2bcd8739ae039, $ba6dd74203be8728$export$2e2bcd8739ae039, $94d7a73bd2edfc9a$export$2e2bcd8739ae039, $649970d87335b30f$var$VARIATION_FEATURES, $649970d87335b30f$var$COMMON_FEATURES, $649970d87335b30f$var$FRACTIONAL_FEATURES, $649970d87335b30f$var$HORIZONTAL_FEATURES, $649970d87335b30f$var$DIRECTIONAL_FEATURES, $649970d87335b30f$export$2e2bcd8739ae039, $764eb544bbe1ccf0$var$trie, $764eb544bbe1ccf0$var$FEATURES, $764eb544bbe1ccf0$var$ShapingClasses, $764eb544bbe1ccf0$var$ISOL, $764eb544bbe1ccf0$var$FINA, $764eb544bbe1ccf0$var$FIN2, $764eb544bbe1ccf0$var$FIN3, $764eb544bbe1ccf0$var$MEDI, $764eb544bbe1ccf0$var$MED2, $764eb544bbe1ccf0$var$INIT, $764eb544bbe1ccf0$var$NONE, $764eb544bbe1ccf0$var$STATE_TABLE, $764eb544bbe1ccf0$export$2e2bcd8739ae039, $85d408632270248b$export$2e2bcd8739ae039, $a83b9c36aaa94fd3$var$DEFAULT_SCRIPTS, $a83b9c36aaa94fd3$export$2e2bcd8739ae039, $10e7b257e1a9a756$export$2e2bcd8739ae039, $e1c6bbc8cb416f8c$export$2e2bcd8739ae039, $e1c6bbc8cb416f8c$var$HANGUL_BASE, $e1c6bbc8cb416f8c$var$HANGUL_END, $e1c6bbc8cb416f8c$var$HANGUL_COUNT, $e1c6bbc8cb416f8c$var$L_BASE, $e1c6bbc8cb416f8c$var$V_BASE, $e1c6bbc8cb416f8c$var$T_BASE, $e1c6bbc8cb416f8c$var$L_COUNT, $e1c6bbc8cb416f8c$var$V_COUNT, $e1c6bbc8cb416f8c$var$T_COUNT, $e1c6bbc8cb416f8c$var$L_END, $e1c6bbc8cb416f8c$var$V_END, $e1c6bbc8cb416f8c$var$T_END, $e1c6bbc8cb416f8c$var$DOTTED_CIRCLE, $e1c6bbc8cb416f8c$var$isL, $e1c6bbc8cb416f8c$var$isV, $e1c6bbc8cb416f8c$var$isT, $e1c6bbc8cb416f8c$var$isTone, $e1c6bbc8cb416f8c$var$isLVT, $e1c6bbc8cb416f8c$var$isLV, $e1c6bbc8cb416f8c$var$isCombiningL, $e1c6bbc8cb416f8c$var$isCombiningV, $e1c6bbc8cb416f8c$var$isCombiningT, $e1c6bbc8cb416f8c$var$X, $e1c6bbc8cb416f8c$var$L, $e1c6bbc8cb416f8c$var$V, $e1c6bbc8cb416f8c$var$T, $e1c6bbc8cb416f8c$var$LV, $e1c6bbc8cb416f8c$var$LVT, $e1c6bbc8cb416f8c$var$M, $e1c6bbc8cb416f8c$var$NO_ACTION, $e1c6bbc8cb416f8c$var$DECOMPOSE, $e1c6bbc8cb416f8c$var$COMPOSE, $e1c6bbc8cb416f8c$var$TONE_MARK, $e1c6bbc8cb416f8c$var$INVALID, $e1c6bbc8cb416f8c$var$STATE_TABLE, $4b0735ca6c692ea5$exports, $aa333a9607471296$exports, $90a9d3398ee54fe5$export$a513ea61a7bee91c, $90a9d3398ee54fe5$export$1a1f61c9c4dd9df0, $90a9d3398ee54fe5$export$8519deaa7de2b07, $90a9d3398ee54fe5$export$bbcd928767338e0d, $90a9d3398ee54fe5$export$ca9599b2a300afc, $90a9d3398ee54fe5$export$e99d119da76a0fc5, $90a9d3398ee54fe5$export$f647c9cfdd77d95a, $7826f90f6f0cecc9$var$decompositions, $7826f90f6f0cecc9$var$trie, $7826f90f6f0cecc9$var$stateMachine, $7826f90f6f0cecc9$export$2e2bcd8739ae039, $7826f90f6f0cecc9$var$IndicInfo, $7ab494fe977143c6$var$categories, $7ab494fe977143c6$var$decompositions, $7ab494fe977143c6$var$trie, $7ab494fe977143c6$var$stateMachine, $7ab494fe977143c6$export$2e2bcd8739ae039, $7ab494fe977143c6$var$USEInfo, $102b6fe50f1d50b4$var$SHAPERS, $0a876c45f1f7c41c$export$2e2bcd8739ae039, $c96c93587d49c14d$export$2e2bcd8739ae039, $a62492810de27e3d$export$2e2bcd8739ae039, $4c0a7fa5df7a9ab1$export$2e2bcd8739ae039, $f43aec954cdfdf21$var$SVG_COMMANDS, $f43aec954cdfdf21$export$2e2bcd8739ae039, $7713b9b7b438dff8$export$2e2bcd8739ae039, $f92906be28e61769$export$2e2bcd8739ae039, $69aac16029968692$var$GlyfHeader, $69aac16029968692$var$ON_CURVE, $69aac16029968692$var$X_SHORT_VECTOR, $69aac16029968692$var$Y_SHORT_VECTOR, $69aac16029968692$var$REPEAT, $69aac16029968692$var$SAME_X, $69aac16029968692$var$SAME_Y, $69aac16029968692$var$ARG_1_AND_2_ARE_WORDS, $69aac16029968692$var$WE_HAVE_A_SCALE, $69aac16029968692$var$MORE_COMPONENTS, $69aac16029968692$var$WE_HAVE_AN_X_AND_Y_SCALE, $69aac16029968692$var$WE_HAVE_A_TWO_BY_TWO, $69aac16029968692$var$WE_HAVE_INSTRUCTIONS, $69aac16029968692$export$baf26146a414f24a, $69aac16029968692$var$Component, $69aac16029968692$export$2e2bcd8739ae039, $62cc5109c6101893$export$2e2bcd8739ae039, $25d8f049c222084c$var$SBIXImage, $25d8f049c222084c$export$2e2bcd8739ae039, $0d411f0165859681$var$COLRLayer, $0d411f0165859681$export$2e2bcd8739ae039, $0bb840cac04e911b$var$TUPLES_SHARE_POINT_NUMBERS, $0bb840cac04e911b$var$TUPLE_COUNT_MASK, $0bb840cac04e911b$var$EMBEDDED_TUPLE_COORD, $0bb840cac04e911b$var$INTERMEDIATE_TUPLE, $0bb840cac04e911b$var$PRIVATE_POINT_NUMBERS, $0bb840cac04e911b$var$TUPLE_INDEX_MASK, $0bb840cac04e911b$var$POINTS_ARE_WORDS, $0bb840cac04e911b$var$POINT_RUN_COUNT_MASK, $0bb840cac04e911b$var$DELTAS_ARE_ZERO, $0bb840cac04e911b$var$DELTAS_ARE_WORDS, $0bb840cac04e911b$var$DELTA_RUN_COUNT_MASK, $0bb840cac04e911b$export$2e2bcd8739ae039, $5cc7476da92df375$var$resolved, $5cc7476da92df375$export$2e2bcd8739ae039, $807e58506be70005$var$ON_CURVE, $807e58506be70005$var$X_SHORT_VECTOR, $807e58506be70005$var$Y_SHORT_VECTOR, $807e58506be70005$var$REPEAT, $807e58506be70005$var$SAME_X, $807e58506be70005$var$SAME_Y, $807e58506be70005$var$Point, $807e58506be70005$var$Glyf, $807e58506be70005$export$2e2bcd8739ae039, $4abbb6a5dbdc441a$export$2e2bcd8739ae039, $001d739428a71d5a$export$2e2bcd8739ae039, $4c1709dee528ea76$export$2e2bcd8739ae039, $c1726355ecc5b889$var$WOFFDirectoryEntry, $c1726355ecc5b889$var$WOFFDirectory, $c1726355ecc5b889$export$2e2bcd8739ae039, $760785214b9fc52c$export$2e2bcd8739ae039, $8046190c9f1ad19e$export$2e2bcd8739ae039, $c28ec7bbb3b8de3a$var$Base128, $c28ec7bbb3b8de3a$var$knownTags, $c28ec7bbb3b8de3a$var$WOFF2DirectoryEntry, $c28ec7bbb3b8de3a$var$WOFF2Directory, $c28ec7bbb3b8de3a$export$2e2bcd8739ae039, $21ee218f84ac7f32$export$2e2bcd8739ae039, $21ee218f84ac7f32$var$Substream, $21ee218f84ac7f32$var$GlyfTable, $21ee218f84ac7f32$var$WORD_CODE, $21ee218f84ac7f32$var$ONE_MORE_BYTE_CODE2, $21ee218f84ac7f32$var$ONE_MORE_BYTE_CODE1, $21ee218f84ac7f32$var$LOWEST_U_CODE, $cd5853a56c68fec7$var$TTCHeader, $cd5853a56c68fec7$export$2e2bcd8739ae039, $05f49f930186144e$var$DFontName, $05f49f930186144e$var$DFontData, $05f49f930186144e$var$Ref, $05f49f930186144e$var$Type, $05f49f930186144e$var$TypeList, $05f49f930186144e$var$DFontMap, $05f49f930186144e$var$DFontHeader, $05f49f930186144e$export$2e2bcd8739ae039;
|
|
134026
134028
|
var init_module2 = __esm({
|
|
134027
|
-
"
|
|
134029
|
+
"node_modules/.pnpm/fontkit@2.0.4/node_modules/fontkit/dist/module.mjs"() {
|
|
134028
134030
|
init_restructure();
|
|
134029
134031
|
init_define_property();
|
|
134030
134032
|
init_ts_decorate();
|
|
@@ -145367,7 +145369,7 @@ var init_module2 = __esm({
|
|
|
145367
145369
|
}
|
|
145368
145370
|
});
|
|
145369
145371
|
|
|
145370
|
-
//
|
|
145372
|
+
// lib/engine/text/fontkit-lazy.ts
|
|
145371
145373
|
function loadFontkit() {
|
|
145372
145374
|
return loading ??= Promise.resolve().then(() => (init_module2(), module_exports)).then((m) => loaded = m);
|
|
145373
145375
|
}
|
|
@@ -145376,17 +145378,17 @@ async function createFont(bytes) {
|
|
|
145376
145378
|
}
|
|
145377
145379
|
var loading, loaded;
|
|
145378
145380
|
var init_fontkit_lazy = __esm({
|
|
145379
|
-
"
|
|
145381
|
+
"lib/engine/text/fontkit-lazy.ts"() {
|
|
145380
145382
|
"use strict";
|
|
145381
145383
|
loading = null;
|
|
145382
145384
|
loaded = null;
|
|
145383
145385
|
}
|
|
145384
145386
|
});
|
|
145385
145387
|
|
|
145386
|
-
//
|
|
145388
|
+
// lib/engine/text/google-fonts.ts
|
|
145387
145389
|
var SYSTEM_FONTS, GOOGLE_FONTS, NON_VARIABLE_FONTS, GOOGLE_FONT_AXES, NOT_ON_GOOGLE, GOOGLE_FONT_SET, isGoogleFont;
|
|
145388
145390
|
var init_google_fonts = __esm({
|
|
145389
|
-
"
|
|
145391
|
+
"lib/engine/text/google-fonts.ts"() {
|
|
145390
145392
|
"use strict";
|
|
145391
145393
|
SYSTEM_FONTS = [
|
|
145392
145394
|
"Inter",
|
|
@@ -145681,7 +145683,7 @@ var init_google_fonts = __esm({
|
|
|
145681
145683
|
}
|
|
145682
145684
|
});
|
|
145683
145685
|
|
|
145684
|
-
//
|
|
145686
|
+
// packages/cli/src/shims/idb-keyval.ts
|
|
145685
145687
|
import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync, existsSync } from "node:fs";
|
|
145686
145688
|
import { join } from "node:path";
|
|
145687
145689
|
function readDisk(path) {
|
|
@@ -145707,7 +145709,7 @@ async function set(key2, value, store) {
|
|
|
145707
145709
|
}
|
|
145708
145710
|
var MEDIA, stores, DEFAULT, mediaDir, mapOf, diskPath;
|
|
145709
145711
|
var init_idb_keyval = __esm({
|
|
145710
|
-
"
|
|
145712
|
+
"packages/cli/src/shims/idb-keyval.ts"() {
|
|
145711
145713
|
MEDIA = /^popcraft-media:([0-9a-f]{16,64})$/;
|
|
145712
145714
|
stores = /* @__PURE__ */ new Map();
|
|
145713
145715
|
DEFAULT = { name: "keyval-store/keyval" };
|
|
@@ -145725,21 +145727,21 @@ var init_idb_keyval = __esm({
|
|
|
145725
145727
|
}
|
|
145726
145728
|
});
|
|
145727
145729
|
|
|
145728
|
-
//
|
|
145730
|
+
// lib/storage/media-hash.ts
|
|
145729
145731
|
var init_media_hash = __esm({
|
|
145730
|
-
"
|
|
145732
|
+
"lib/storage/media-hash.ts"() {
|
|
145731
145733
|
"use strict";
|
|
145732
145734
|
}
|
|
145733
145735
|
});
|
|
145734
145736
|
|
|
145735
|
-
//
|
|
145737
|
+
// lib/media-library/types.ts
|
|
145736
145738
|
var init_types2 = __esm({
|
|
145737
|
-
"
|
|
145739
|
+
"lib/media-library/types.ts"() {
|
|
145738
145740
|
"use strict";
|
|
145739
145741
|
}
|
|
145740
145742
|
});
|
|
145741
145743
|
|
|
145742
|
-
//
|
|
145744
|
+
// lib/storage/media-store.ts
|
|
145743
145745
|
async function hashBytes(buf) {
|
|
145744
145746
|
const digest = await crypto.subtle.digest("SHA-256", buf);
|
|
145745
145747
|
return Array.from(new Uint8Array(digest)).map((b) => b.toString(16).padStart(2, "0")).join("").slice(0, 32);
|
|
@@ -145814,7 +145816,7 @@ function loadMediaUrl(ref) {
|
|
|
145814
145816
|
}
|
|
145815
145817
|
var key, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, memory, pendingLoads;
|
|
145816
145818
|
var init_media_store = __esm({
|
|
145817
|
-
"
|
|
145819
|
+
"lib/storage/media-store.ts"() {
|
|
145818
145820
|
"use strict";
|
|
145819
145821
|
init_idb_keyval();
|
|
145820
145822
|
init_media_hash();
|
|
@@ -145830,7 +145832,7 @@ var init_media_store = __esm({
|
|
|
145830
145832
|
}
|
|
145831
145833
|
});
|
|
145832
145834
|
|
|
145833
|
-
//
|
|
145835
|
+
// lib/engine/text/fonts.ts
|
|
145834
145836
|
function isFontBytes(bytes) {
|
|
145835
145837
|
if (bytes.length < 12 || bytes.length > MAX_FONT_BYTES) return false;
|
|
145836
145838
|
const tag = String.fromCharCode(bytes[0], bytes[1], bytes[2], bytes[3]);
|
|
@@ -145848,7 +145850,7 @@ async function customFontBytes(src) {
|
|
|
145848
145850
|
}
|
|
145849
145851
|
var customFontRegistry, MAX_FONT_BYTES;
|
|
145850
145852
|
var init_fonts = __esm({
|
|
145851
|
-
"
|
|
145853
|
+
"lib/engine/text/fonts.ts"() {
|
|
145852
145854
|
"use strict";
|
|
145853
145855
|
init_google_fonts();
|
|
145854
145856
|
init_media_store();
|
|
@@ -145857,7 +145859,7 @@ var init_fonts = __esm({
|
|
|
145857
145859
|
}
|
|
145858
145860
|
});
|
|
145859
145861
|
|
|
145860
|
-
//
|
|
145862
|
+
// lib/engine/readiness.ts
|
|
145861
145863
|
function settle() {
|
|
145862
145864
|
if (inflight > 0) return;
|
|
145863
145865
|
for (const w of [...waiters]) w();
|
|
@@ -145873,16 +145875,16 @@ function trackLoad(p2) {
|
|
|
145873
145875
|
}
|
|
145874
145876
|
var inflight, waiters;
|
|
145875
145877
|
var init_readiness = __esm({
|
|
145876
|
-
"
|
|
145878
|
+
"lib/engine/readiness.ts"() {
|
|
145877
145879
|
"use strict";
|
|
145878
145880
|
inflight = 0;
|
|
145879
145881
|
waiters = /* @__PURE__ */ new Set();
|
|
145880
145882
|
}
|
|
145881
145883
|
});
|
|
145882
145884
|
|
|
145883
|
-
//
|
|
145885
|
+
// node_modules/.pnpm/wawoff2@2.0.1/node_modules/wawoff2/build/decompress_binding.js
|
|
145884
145886
|
var require_decompress_binding = __commonJS({
|
|
145885
|
-
"
|
|
145887
|
+
"node_modules/.pnpm/wawoff2@2.0.1/node_modules/wawoff2/build/decompress_binding.js"(exports, module) {
|
|
145886
145888
|
var Module = typeof Module !== "undefined" ? Module : {};
|
|
145887
145889
|
var moduleOverrides = {};
|
|
145888
145890
|
var key2;
|
|
@@ -147399,7 +147401,7 @@ var require_decompress_binding = __commonJS({
|
|
|
147399
147401
|
}
|
|
147400
147402
|
});
|
|
147401
147403
|
|
|
147402
|
-
//
|
|
147404
|
+
// lib/engine/text/shaper.ts
|
|
147403
147405
|
async function idbGet(key2) {
|
|
147404
147406
|
try {
|
|
147405
147407
|
return typeof indexedDB === "undefined" ? void 0 : await get(key2);
|
|
@@ -147685,7 +147687,7 @@ function describeFace(family, italic, weight) {
|
|
|
147685
147687
|
}
|
|
147686
147688
|
var faces, variationCache, runCache, RUN_CACHE_MAX, NO_BYTES, faceKey, fontIds, fontIdSerial, woff2Module, faceEpoch, changedFamilies, notifyScheduled, patchedFonts, shapingDepth;
|
|
147687
147689
|
var init_shaper = __esm({
|
|
147688
|
-
"
|
|
147690
|
+
"lib/engine/text/shaper.ts"() {
|
|
147689
147691
|
"use strict";
|
|
147690
147692
|
init_fontkit_lazy();
|
|
147691
147693
|
init_google_fonts();
|
|
@@ -147713,15 +147715,15 @@ var init_shaper = __esm({
|
|
|
147713
147715
|
}
|
|
147714
147716
|
});
|
|
147715
147717
|
|
|
147716
|
-
//
|
|
147718
|
+
// public/fonts/fallback/manifest.json
|
|
147717
147719
|
var manifest_default;
|
|
147718
147720
|
var init_manifest = __esm({
|
|
147719
|
-
"
|
|
147721
|
+
"public/fonts/fallback/manifest.json"() {
|
|
147720
147722
|
manifest_default = { version: "inter@5.3.0,source-serif-4@5.3.0,jetbrains-mono@5.3.0,noto-emoji@5.3.1", faces: [{ font: "inter", style: "normal", subset: "cyrillic", file: "inter-cyrillic-wght-normal.woff2", ranges: [[769, 769], [1024, 1119], [1168, 1169], [1200, 1201], [8470, 8470]] }, { font: "inter", style: "normal", subset: "greek", file: "inter-greek-wght-normal.woff2", ranges: [[880, 887], [890, 895], [900, 906], [908, 908], [910, 929], [931, 1023]] }, { font: "inter", style: "normal", subset: "vietnamese", file: "inter-vietnamese-wght-normal.woff2", ranges: [[258, 259], [272, 273], [296, 297], [360, 361], [416, 417], [431, 432], [768, 769], [771, 772], [776, 777], [803, 803], [809, 809], [7840, 7929], [8363, 8363]] }, { font: "inter", style: "normal", subset: "latin-ext", file: "inter-latin-ext-wght-normal.woff2", ranges: [[256, 698], [701, 709], [711, 716], [718, 727], [733, 767], [772, 772], [776, 776], [809, 809], [7424, 7615], [7680, 7839], [7922, 7935], [8224, 8224], [8352, 8363], [8365, 8384], [8467, 8467], [11360, 11391], [42784, 43007]] }, { font: "inter", style: "normal", subset: "latin", file: "inter-latin-wght-normal.woff2", ranges: [[0, 255], [305, 305], [338, 339], [699, 700], [710, 710], [730, 730], [732, 732], [772, 772], [776, 776], [809, 809], [8192, 8303], [8364, 8364], [8482, 8482], [8593, 8593], [8595, 8595], [8722, 8722], [8725, 8725], [65279, 65279], [65533, 65533]] }, { font: "inter", style: "italic", subset: "cyrillic", file: "inter-cyrillic-wght-italic.woff2", ranges: [[769, 769], [1024, 1119], [1168, 1169], [1200, 1201], [8470, 8470]] }, { font: "inter", style: "italic", subset: "greek", file: "inter-greek-wght-italic.woff2", ranges: [[880, 887], [890, 895], [900, 906], [908, 908], [910, 929], [931, 1023]] }, { font: "inter", style: "italic", subset: "vietnamese", file: "inter-vietnamese-wght-italic.woff2", ranges: [[258, 259], [272, 273], [296, 297], [360, 361], [416, 417], [431, 432], [768, 769], [771, 772], [776, 777], [803, 803], [809, 809], [7840, 7929], [8363, 8363]] }, { font: "inter", style: "italic", subset: "latin-ext", file: "inter-latin-ext-wght-italic.woff2", ranges: [[256, 698], [701, 709], [711, 716], [718, 727], [733, 767], [772, 772], [776, 776], [809, 809], [7424, 7615], [7680, 7839], [7922, 7935], [8224, 8224], [8352, 8363], [8365, 8384], [8467, 8467], [11360, 11391], [42784, 43007]] }, { font: "inter", style: "italic", subset: "latin", file: "inter-latin-wght-italic.woff2", ranges: [[0, 255], [305, 305], [338, 339], [699, 700], [710, 710], [730, 730], [732, 732], [772, 772], [776, 776], [809, 809], [8192, 8303], [8364, 8364], [8482, 8482], [8593, 8593], [8595, 8595], [8722, 8722], [8725, 8725], [65279, 65279], [65533, 65533]] }, { font: "source-serif-4", style: "normal", subset: "cyrillic", file: "source-serif-4-cyrillic-wght-normal.woff2", ranges: [[769, 769], [1024, 1119], [1168, 1169], [1200, 1201], [8470, 8470]] }, { font: "source-serif-4", style: "normal", subset: "greek", file: "source-serif-4-greek-wght-normal.woff2", ranges: [[880, 887], [890, 895], [900, 906], [908, 908], [910, 929], [931, 1023]] }, { font: "source-serif-4", style: "normal", subset: "vietnamese", file: "source-serif-4-vietnamese-wght-normal.woff2", ranges: [[258, 259], [272, 273], [296, 297], [360, 361], [416, 417], [431, 432], [768, 769], [771, 772], [776, 777], [803, 803], [809, 809], [7840, 7929], [8363, 8363]] }, { font: "source-serif-4", style: "normal", subset: "latin-ext", file: "source-serif-4-latin-ext-wght-normal.woff2", ranges: [[256, 698], [701, 709], [711, 716], [718, 727], [733, 767], [772, 772], [776, 776], [809, 809], [7424, 7615], [7680, 7839], [7922, 7935], [8224, 8224], [8352, 8363], [8365, 8384], [8467, 8467], [11360, 11391], [42784, 43007]] }, { font: "source-serif-4", style: "normal", subset: "latin", file: "source-serif-4-latin-wght-normal.woff2", ranges: [[0, 255], [305, 305], [338, 339], [699, 700], [710, 710], [730, 730], [732, 732], [772, 772], [776, 776], [809, 809], [8192, 8303], [8364, 8364], [8482, 8482], [8593, 8593], [8595, 8595], [8722, 8722], [8725, 8725], [65279, 65279], [65533, 65533]] }, { font: "source-serif-4", style: "italic", subset: "cyrillic", file: "source-serif-4-cyrillic-wght-italic.woff2", ranges: [[769, 769], [1024, 1119], [1168, 1169], [1200, 1201], [8470, 8470]] }, { font: "source-serif-4", style: "italic", subset: "greek", file: "source-serif-4-greek-wght-italic.woff2", ranges: [[880, 887], [890, 895], [900, 906], [908, 908], [910, 929], [931, 1023]] }, { font: "source-serif-4", style: "italic", subset: "vietnamese", file: "source-serif-4-vietnamese-wght-italic.woff2", ranges: [[258, 259], [272, 273], [296, 297], [360, 361], [416, 417], [431, 432], [768, 769], [771, 772], [776, 777], [803, 803], [809, 809], [7840, 7929], [8363, 8363]] }, { font: "source-serif-4", style: "italic", subset: "latin-ext", file: "source-serif-4-latin-ext-wght-italic.woff2", ranges: [[256, 698], [701, 709], [711, 716], [718, 727], [733, 767], [772, 772], [776, 776], [809, 809], [7424, 7615], [7680, 7839], [7922, 7935], [8224, 8224], [8352, 8363], [8365, 8384], [8467, 8467], [11360, 11391], [42784, 43007]] }, { font: "source-serif-4", style: "italic", subset: "latin", file: "source-serif-4-latin-wght-italic.woff2", ranges: [[0, 255], [305, 305], [338, 339], [699, 700], [710, 710], [730, 730], [732, 732], [772, 772], [776, 776], [809, 809], [8192, 8303], [8364, 8364], [8482, 8482], [8593, 8593], [8595, 8595], [8722, 8722], [8725, 8725], [65279, 65279], [65533, 65533]] }, { font: "jetbrains-mono", style: "normal", subset: "cyrillic", file: "jetbrains-mono-cyrillic-wght-normal.woff2", ranges: [[769, 769], [1024, 1119], [1168, 1169], [1200, 1201], [8470, 8470]] }, { font: "jetbrains-mono", style: "normal", subset: "greek", file: "jetbrains-mono-greek-wght-normal.woff2", ranges: [[880, 887], [890, 895], [900, 906], [908, 908], [910, 929], [931, 1023]] }, { font: "jetbrains-mono", style: "normal", subset: "vietnamese", file: "jetbrains-mono-vietnamese-wght-normal.woff2", ranges: [[258, 259], [272, 273], [296, 297], [360, 361], [416, 417], [431, 432], [768, 769], [771, 772], [776, 777], [803, 803], [809, 809], [7840, 7929], [8363, 8363]] }, { font: "jetbrains-mono", style: "normal", subset: "latin-ext", file: "jetbrains-mono-latin-ext-wght-normal.woff2", ranges: [[256, 698], [701, 709], [711, 716], [718, 727], [733, 767], [772, 772], [776, 776], [809, 809], [7424, 7615], [7680, 7839], [7922, 7935], [8224, 8224], [8352, 8363], [8365, 8384], [8467, 8467], [11360, 11391], [42784, 43007]] }, { font: "jetbrains-mono", style: "normal", subset: "latin", file: "jetbrains-mono-latin-wght-normal.woff2", ranges: [[0, 255], [305, 305], [338, 339], [699, 700], [710, 710], [730, 730], [732, 732], [772, 772], [776, 776], [809, 809], [8192, 8303], [8364, 8364], [8482, 8482], [8593, 8593], [8595, 8595], [8722, 8722], [8725, 8725], [65279, 65279], [65533, 65533]] }, { font: "jetbrains-mono", style: "italic", subset: "cyrillic", file: "jetbrains-mono-cyrillic-wght-italic.woff2", ranges: [[769, 769], [1024, 1119], [1168, 1169], [1200, 1201], [8470, 8470]] }, { font: "jetbrains-mono", style: "italic", subset: "greek", file: "jetbrains-mono-greek-wght-italic.woff2", ranges: [[880, 887], [890, 895], [900, 906], [908, 908], [910, 929], [931, 1023]] }, { font: "jetbrains-mono", style: "italic", subset: "vietnamese", file: "jetbrains-mono-vietnamese-wght-italic.woff2", ranges: [[258, 259], [272, 273], [296, 297], [360, 361], [416, 417], [431, 432], [768, 769], [771, 772], [776, 777], [803, 803], [809, 809], [7840, 7929], [8363, 8363]] }, { font: "jetbrains-mono", style: "italic", subset: "latin-ext", file: "jetbrains-mono-latin-ext-wght-italic.woff2", ranges: [[256, 698], [701, 709], [711, 716], [718, 727], [733, 767], [772, 772], [776, 776], [809, 809], [7424, 7615], [7680, 7839], [7922, 7935], [8224, 8224], [8352, 8363], [8365, 8384], [8467, 8467], [11360, 11391], [42784, 43007]] }, { font: "jetbrains-mono", style: "italic", subset: "latin", file: "jetbrains-mono-latin-wght-italic.woff2", ranges: [[0, 255], [305, 305], [338, 339], [699, 700], [710, 710], [730, 730], [732, 732], [772, 772], [776, 776], [809, 809], [8192, 8303], [8364, 8364], [8482, 8482], [8593, 8593], [8595, 8595], [8722, 8722], [8725, 8725], [65279, 65279], [65533, 65533]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-0-400-normal.woff2", ranges: [[127462, 127487]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-1-400-normal.woff2", ranges: [[8205, 8205], [9760, 9760], [9895, 9895], [65039, 65039], [127752, 127752], [127884, 127884], [127937, 127937], [127987, 127988], [128681, 128681], [917602, 917603], [917605, 917605], [917607, 917607], [917612, 917612], [917614, 917614], [917619, 917620], [917623, 917623], [917631, 917631]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-2-400-normal.woff2", ranges: [[35, 35], [42, 42], [48, 57], [169, 169], [174, 174], [8205, 8205], [8252, 8252], [8265, 8265], [8419, 8419], [8482, 8482], [8505, 8505], [8596, 8601], [8617, 8618], [9167, 9167], [9193, 9199], [9208, 9210], [9410, 9410], [9642, 9643], [9654, 9654], [9664, 9664], [9723, 9726], [9745, 9745], [9762, 9763], [9766, 9766], [9770, 9770], [9774, 9775], [9784, 9784], [9792, 9792], [9794, 9794], [9800, 9811], [9824, 9824], [9827, 9827], [9829, 9830], [9832, 9832], [9851, 9851], [9854, 9855], [9877, 9877], [9883, 9884], [9888, 9888], [9895, 9895], [9898, 9899], [9934, 9934], [9940, 9940], [9989, 9989], [10004, 10004], [10006, 10006], [10013, 10013], [10017, 10017], [10035, 10036], [10055, 10055], [10060, 10060], [10062, 10062], [10067, 10069], [10071, 10071], [10084, 10084], [10133, 10135], [10145, 10145], [10160, 10160], [10175, 10175], [10548, 10549], [11013, 11015], [11035, 11036], [11093, 11093], [12336, 12336], [12349, 12349], [12951, 12951], [12953, 12953], [65039, 65039], [127344, 127345], [127358, 127359], [127374, 127374], [127377, 127386], [127489, 127490], [127514, 127514], [127535, 127535], [127538, 127546], [127568, 127569], [127760, 127760], [127910, 127910], [127925, 127926], [127932, 127932], [127975, 127975], [128065, 128065], [128153, 128156], [128159, 128160], [128172, 128173], [128177, 128178], [128185, 128185], [128219, 128219], [128242, 128246], [128256, 128263], [128277, 128277], [128280, 128292], [128303, 128317], [128329, 128329], [128334, 128334], [128420, 128420], [128488, 128488], [128495, 128495], [128683, 128683], [128685, 128689], [128691, 128691], [128695, 128700], [128702, 128702], [128706, 128709], [128720, 128721], [128727, 128727], [128732, 128732], [128992, 129003], [129008, 129008], [129293, 129294], [129489, 129490], [129505, 129505], [129653, 129655], [129711, 129711]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-3-400-normal.woff2", ranges: [[8205, 8205], [8986, 8987], [9e3, 9e3], [9200, 9203], [9730, 9730], [9742, 9742], [9874, 9874], [9876, 9876], [9878, 9879], [9881, 9881], [9904, 9905], [9935, 9935], [9937, 9937], [9939, 9939], [9986, 9986], [9993, 9993], [9999, 9999], [10002, 10002], [65039, 65039], [127746, 127746], [127777, 127777], [127890, 127891], [127913, 127913], [127933, 127933], [127982, 127982], [127991, 127991], [127994, 127994], [128081, 128098], [128132, 128132], [128137, 128138], [128140, 128142], [128161, 128161], [128163, 128163], [128165, 128165], [128176, 128176], [128179, 128184], [128187, 128218], [128220, 128241], [128255, 128255], [128264, 128276], [128278, 128279], [128294, 128297], [128300, 128302], [128336, 128359], [128367, 128368], [128374, 128374], [128391, 128391], [128394, 128397], [128421, 128421], [128424, 128424], [128433, 128434], [128450, 128452], [128465, 128467], [128476, 128478], [128481, 128481], [128499, 128499], [128682, 128682], [128684, 128684], [128701, 128701], [128703, 128703], [128705, 128705], [128715, 128715], [128717, 128719], [128722, 128722], [128736, 128737], [128752, 128752], [129403, 129407], [129455, 129455], [129466, 129466], [129506, 129510], [129514, 129516], [129518, 129524], [129527, 129535], [129649, 129652], [129657, 129659], [129670, 129670], [129678, 129679], [129681, 129683], [129686, 129686], [129689, 129696], [129698, 129703], [129706, 129710]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-4-400-normal.woff2", ranges: [[9823, 9823], [9917, 9918], [9971, 9971], [9976, 9976], [65039, 65039], [126980, 126980], [127183, 127183], [127872, 127876], [127878, 127883], [127885, 127889], [127894, 127895], [127897, 127899], [127902, 127903], [127907, 127909], [127911, 127913], [127915, 127924], [127927, 127931], [127933, 127936], [127941, 127942], [127944, 127945], [127951, 127955], [127992, 127993], [128126, 128126], [128226, 128226], [128247, 128253], [128299, 128299], [128377, 128377], [128396, 128397], [128444, 128444], [128759, 128759], [128761, 128761], [128764, 128764], [129343, 129343], [129345, 129345], [129349, 129349], [129351, 129359], [129511, 129513], [129525, 129526], [129648, 129649], [129664, 129665], [129667, 129669], [129671, 129674], [129684, 129685], [129687, 129688], [129697, 129697], [129705, 129705], [129759, 129759]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-5-400-normal.woff2", ranges: [[9875, 9875], [9961, 9962], [9969, 9970], [9972, 9973], [9978, 9978], [9981, 9981], [9992, 9992], [65039, 65039], [127745, 127745], [127747, 127747], [127750, 127751], [127753, 127753], [127760, 127760], [127904, 127906], [127914, 127914], [127949, 127950], [127957, 127957], [127959, 127963], [127967, 127974], [127976, 127981], [127983, 127984], [128136, 128136], [128146, 128146], [128186, 128186], [128331, 128333], [128506, 128511], [128640, 128674], [128676, 128680], [128690, 128690], [128721, 128721], [128725, 128726], [128733, 128735], [128738, 128741], [128745, 128745], [128747, 128748], [128755, 128758], [128760, 128760], [128762, 128763], [129468, 129469], [129517, 129517], [129523, 129523], [129660, 129660]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-6-400-normal.woff2", ranges: [[8205, 8205], [9749, 9749], [65039, 65039], [127789, 127792], [127798, 127798], [127805, 127805], [127812, 127871], [127874, 127874], [128298, 128298], [129001, 129001], [129003, 129003], [129346, 129348], [129360, 129391], [129438, 129438], [129450, 129450], [129472, 129483], [129744, 129756]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-7-400-normal.woff2", ranges: [[8205, 8205], [9728, 9729], [9731, 9732], [9748, 9748], [9752, 9752], [9889, 9889], [9924, 9925], [9928, 9928], [9968, 9968], [10024, 10024], [10052, 10052], [11035, 11035], [11088, 11088], [65039, 65039], [127744, 127744], [127748, 127749], [127752, 127752], [127754, 127759], [127761, 127777], [127780, 127788], [127793, 127797], [127799, 127804], [127806, 127812], [127956, 127956], [127958, 127958], [127964, 127966], [127989, 127989], [128e3, 128063], [128144, 128144], [128167, 128167], [128174, 128174], [128293, 128293], [128330, 128330], [128371, 128371], [128375, 128376], [128584, 128586], [128728, 128728], [129344, 129344], [129408, 129454], [129466, 129466], [129680, 129680], [129704, 129704], [129712, 129727], [129741, 129743], [129767, 129767]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-8-400-normal.woff2", ranges: [[8205, 8205], [9792, 9792], [9794, 9794], [9877, 9878], [9975, 9975], [9977, 9977], [9992, 9992], [10084, 10084], [10145, 10145], [65039, 65039], [127806, 127806], [127859, 127859], [127868, 127868], [127876, 127877], [127891, 127891], [127908, 127908], [127912, 127912], [127938, 127940], [127943, 127943], [127946, 127948], [127979, 127979], [127981, 127981], [127995, 127999], [128048, 128048], [128102, 128105], [128107, 128120], [128124, 128124], [128129, 128131], [128134, 128135], [128139, 128139], [128143, 128143], [128145, 128145], [128187, 128188], [128295, 128295], [128300, 128300], [128372, 128373], [128378, 128378], [128581, 128583], [128587, 128587], [128589, 128590], [128640, 128640], [128658, 128658], [128675, 128675], [128692, 128694], [128704, 128704], [128716, 128716], [129309, 129309], [129318, 129318], [129328, 129329], [129332, 129338], [129340, 129342], [129399, 129399], [129455, 129459], [129464, 129465], [129468, 129469], [129484, 129487], [129489, 129503], [129648, 129648], [129666, 129666], [129731, 129733], [129736, 129736], [129775, 129775]] }, { font: "noto-emoji", style: "normal", subset: "emoji", file: "noto-emoji-9-400-normal.woff2", ranges: [[8205, 8205], [8596, 8597], [9731, 9731], [9757, 9757], [9760, 9760], [9785, 9786], [9829, 9829], [9889, 9889], [9924, 9924], [9994, 9997], [10024, 10024], [10083, 10084], [11088, 11088], [65039, 65039], [127770, 127775], [127787, 127787], [127881, 127882], [127995, 127999], [128064, 128080], [128099, 128101], [128121, 128123], [128125, 128128], [128133, 128133], [128139, 128140], [128147, 128159], [128162, 128162], [128164, 128166], [128168, 128171], [128175, 128175], [128293, 128293], [128371, 128371], [128400, 128400], [128405, 128406], [128420, 128420], [128483, 128483], [128512, 128580], [128584, 128586], [128588, 128588], [128591, 128591], [129292, 129317], [129319, 129327], [129330, 129331], [129392, 129398], [129400, 129402], [129440, 129440], [129460, 129463], [129467, 129467], [129470, 129471], [129488, 129488], [129504, 129505], [129653, 129657], [129728, 129730], [129734, 129734], [129760, 129766], [129768, 129770], [129775, 129784]] }] };
|
|
147721
147723
|
}
|
|
147722
147724
|
});
|
|
147723
147725
|
|
|
147724
|
-
//
|
|
147726
|
+
// lib/engine/text/fallback-fonts.ts
|
|
147725
147727
|
function fallbackClassFor(family) {
|
|
147726
147728
|
if (SERIF_FAMILIES.has(family)) return "serif";
|
|
147727
147729
|
if (MONO_FAMILIES.has(family)) return "mono";
|
|
@@ -147841,7 +147843,7 @@ function isJoining(cp) {
|
|
|
147841
147843
|
}
|
|
147842
147844
|
var FALLBACK_BASE_URL, RETRY_MS, manifest, slots, CHAINS, SERIF_FAMILIES, MONO_FAMILIES, idbKeyFor, loader;
|
|
147843
147845
|
var init_fallback_fonts = __esm({
|
|
147844
|
-
"
|
|
147846
|
+
"lib/engine/text/fallback-fonts.ts"() {
|
|
147845
147847
|
"use strict";
|
|
147846
147848
|
init_readiness();
|
|
147847
147849
|
init_fontkit_lazy();
|
|
@@ -147864,7 +147866,7 @@ var init_fallback_fonts = __esm({
|
|
|
147864
147866
|
}
|
|
147865
147867
|
});
|
|
147866
147868
|
|
|
147867
|
-
//
|
|
147869
|
+
// lib/engine/text/measure.ts
|
|
147868
147870
|
function lineWidth(line2, family, weight, fontSize, italic, shaping) {
|
|
147869
147871
|
if (!line2) return 0;
|
|
147870
147872
|
let units = 0;
|
|
@@ -147939,19 +147941,19 @@ function estimateTextHeight(characters, width, family, weight, size2, lineHeight
|
|
|
147939
147941
|
return Math.max(lh, lines * lh);
|
|
147940
147942
|
}
|
|
147941
147943
|
var init_measure = __esm({
|
|
147942
|
-
"
|
|
147944
|
+
"lib/engine/text/measure.ts"() {
|
|
147943
147945
|
init_shaper();
|
|
147944
147946
|
init_fallback_fonts();
|
|
147945
147947
|
}
|
|
147946
147948
|
});
|
|
147947
147949
|
|
|
147948
|
-
//
|
|
147950
|
+
// lib/templates/text-measurer.ts
|
|
147949
147951
|
function shownNode(doc, n) {
|
|
147950
147952
|
return resolveNodeVariables(n, doc.variables, doc.variableCollections);
|
|
147951
147953
|
}
|
|
147952
147954
|
var templateTextMeasurer;
|
|
147953
147955
|
var init_text_measurer = __esm({
|
|
147954
|
-
"
|
|
147956
|
+
"lib/templates/text-measurer.ts"() {
|
|
147955
147957
|
init_variables();
|
|
147956
147958
|
init_measure();
|
|
147957
147959
|
templateTextMeasurer = (node) => {
|
|
@@ -147965,7 +147967,7 @@ var init_text_measurer = __esm({
|
|
|
147965
147967
|
}
|
|
147966
147968
|
});
|
|
147967
147969
|
|
|
147968
|
-
//
|
|
147970
|
+
// lib/editor/prototype-connect.ts
|
|
147969
147971
|
function interactionFor(destinationId, id = v4_default(), o = {}) {
|
|
147970
147972
|
return {
|
|
147971
147973
|
id,
|
|
@@ -147980,20 +147982,20 @@ function interactionFor(destinationId, id = v4_default(), o = {}) {
|
|
|
147980
147982
|
};
|
|
147981
147983
|
}
|
|
147982
147984
|
var init_prototype_connect = __esm({
|
|
147983
|
-
"
|
|
147985
|
+
"lib/editor/prototype-connect.ts"() {
|
|
147984
147986
|
init_dist_node();
|
|
147985
147987
|
init_scene_graph();
|
|
147986
147988
|
}
|
|
147987
147989
|
});
|
|
147988
147990
|
|
|
147989
|
-
//
|
|
147991
|
+
// lib/engine/text/lists.ts
|
|
147990
147992
|
var init_lists = __esm({
|
|
147991
|
-
"
|
|
147993
|
+
"lib/engine/text/lists.ts"() {
|
|
147992
147994
|
"use strict";
|
|
147993
147995
|
}
|
|
147994
147996
|
});
|
|
147995
147997
|
|
|
147996
|
-
//
|
|
147998
|
+
// lib/document/text-styles.ts
|
|
147997
147999
|
function createTextStyle(id, name, props = {}) {
|
|
147998
148000
|
return {
|
|
147999
148001
|
id,
|
|
@@ -148034,7 +148036,7 @@ function resolveTextNodeStyles(node, styles) {
|
|
|
148034
148036
|
}
|
|
148035
148037
|
var PARAGRAPH_STYLE_KEYS, CHARACTER_STYLE_KEYS;
|
|
148036
148038
|
var init_text_styles = __esm({
|
|
148037
|
-
"
|
|
148039
|
+
"lib/document/text-styles.ts"() {
|
|
148038
148040
|
"use strict";
|
|
148039
148041
|
init_lists();
|
|
148040
148042
|
PARAGRAPH_STYLE_KEYS = ["textAlign", "paragraphSpacing", "spaceBefore", "paragraphIndent", "list", "tabStops", "hyphenate"];
|
|
@@ -148042,7 +148044,7 @@ var init_text_styles = __esm({
|
|
|
148042
148044
|
}
|
|
148043
148045
|
});
|
|
148044
148046
|
|
|
148045
|
-
//
|
|
148047
|
+
// lib/templates/layout.ts
|
|
148046
148048
|
function settleLayout(doc) {
|
|
148047
148049
|
setTextMeasurer(templateTextMeasurer);
|
|
148048
148050
|
try {
|
|
@@ -148112,7 +148114,7 @@ function settleMeasuredLayout(doc) {
|
|
|
148112
148114
|
return settleShownLayout(out);
|
|
148113
148115
|
}
|
|
148114
148116
|
var init_layout = __esm({
|
|
148115
|
-
"
|
|
148117
|
+
"lib/templates/layout.ts"() {
|
|
148116
148118
|
init_scene_graph();
|
|
148117
148119
|
init_auto_layout();
|
|
148118
148120
|
init_instance_layout();
|
|
@@ -148120,7 +148122,7 @@ var init_layout = __esm({
|
|
|
148120
148122
|
}
|
|
148121
148123
|
});
|
|
148122
148124
|
|
|
148123
|
-
//
|
|
148125
|
+
// lib/document/clone.ts
|
|
148124
148126
|
function cloneSubtree(doc, rootId) {
|
|
148125
148127
|
const ids = [];
|
|
148126
148128
|
const collect = (id) => {
|
|
@@ -148135,14 +148137,14 @@ function cloneSubtree(doc, rootId) {
|
|
|
148135
148137
|
return { root: nodes[0], nodes };
|
|
148136
148138
|
}
|
|
148137
148139
|
var init_clone = __esm({
|
|
148138
|
-
"
|
|
148140
|
+
"lib/document/clone.ts"() {
|
|
148139
148141
|
"use strict";
|
|
148140
148142
|
init_dist_node();
|
|
148141
148143
|
init_libraries();
|
|
148142
148144
|
}
|
|
148143
148145
|
});
|
|
148144
148146
|
|
|
148145
|
-
//
|
|
148147
|
+
// lib/templates/resize.ts
|
|
148146
148148
|
function scaleTree(nodes, id, s, isRoot) {
|
|
148147
148149
|
const n = nodes[id];
|
|
148148
148150
|
if (!n) return;
|
|
@@ -148258,7 +148260,7 @@ function magicResize(doc, rootId, target, name, o = {}) {
|
|
|
148258
148260
|
}
|
|
148259
148261
|
var resizeTargetFromPreset, covers, hasConstraints, scaleModifier;
|
|
148260
148262
|
var init_resize = __esm({
|
|
148261
|
-
"
|
|
148263
|
+
"lib/templates/resize.ts"() {
|
|
148262
148264
|
init_scene_graph();
|
|
148263
148265
|
init_auto_layout();
|
|
148264
148266
|
init_clone();
|
|
@@ -148276,10 +148278,10 @@ var init_resize = __esm({
|
|
|
148276
148278
|
}
|
|
148277
148279
|
});
|
|
148278
148280
|
|
|
148279
|
-
//
|
|
148281
|
+
// lib/document/shader-graph-effects.ts
|
|
148280
148282
|
var hex, f32, col, vec2, coord, PARTICLE_KINDS, SHAPES, EFFECT_LIB, EFFECT_LIB_DEPS, read2, EFFECT_NODES;
|
|
148281
148283
|
var init_shader_graph_effects = __esm({
|
|
148282
|
-
"
|
|
148284
|
+
"lib/document/shader-graph-effects.ts"() {
|
|
148283
148285
|
"use strict";
|
|
148284
148286
|
hex = (h) => ({ r: parseInt(h.slice(1, 3), 16) / 255, g: parseInt(h.slice(3, 5), 16) / 255, b: parseInt(h.slice(5, 7), 16) / 255, a: 1 });
|
|
148285
148287
|
f32 = (name, def, range) => ({ name, type: "f32", default: def, range });
|
|
@@ -148661,7 +148663,7 @@ var init_shader_graph_effects = __esm({
|
|
|
148661
148663
|
}
|
|
148662
148664
|
});
|
|
148663
148665
|
|
|
148664
|
-
//
|
|
148666
|
+
// lib/document/shader-graph.ts
|
|
148665
148667
|
function coerce(expr, from, to) {
|
|
148666
148668
|
if (from === to) return expr;
|
|
148667
148669
|
const e = `(${expr})`;
|
|
@@ -148856,7 +148858,7 @@ function graphPaint(paint, graph, name) {
|
|
|
148856
148858
|
}
|
|
148857
148859
|
var WGSL, lit, LIB, LIB_DEPS, f322, col2, coord2, WHITE3, BLACK3, TAU2, MATH_OPS, mathExpr, AUDIO_NODE_SIGNALS, NODES, SHADER_NODES, ID, knobField, EMPTY_CODE, isColorValue, isVec, memo, GraphBuilder;
|
|
148858
148860
|
var init_shader_graph = __esm({
|
|
148859
|
-
"
|
|
148861
|
+
"lib/document/shader-graph.ts"() {
|
|
148860
148862
|
"use strict";
|
|
148861
148863
|
init_shader_graph_effects();
|
|
148862
148864
|
WGSL = { f32: "f32", vec2f: "vec2<f32>", vec3f: "vec3<f32>", vec4f: "vec4<f32>" };
|
|
@@ -149318,7 +149320,7 @@ var init_shader_graph = __esm({
|
|
|
149318
149320
|
}
|
|
149319
149321
|
});
|
|
149320
149322
|
|
|
149321
|
-
//
|
|
149323
|
+
// lib/engine/shader-graph-presets.ts
|
|
149322
149324
|
function meshGradient() {
|
|
149323
149325
|
const g = new GraphBuilder();
|
|
149324
149326
|
g.node("mesh", "meshGradient", { speed: 0.3, spread: 0.4, colorA: hex3("#8c5cf5"), colorB: hex3("#338cfa"), colorC: hex3("#f56b9e"), base: hex3("#29293d") });
|
|
@@ -149509,7 +149511,7 @@ function liquidInk() {
|
|
|
149509
149511
|
}
|
|
149510
149512
|
var hex3, DEEP, VIOLET, PINK, CYAN, GOLD, INK, sameNames, PARTICLES, GRAPH_PRESETS;
|
|
149511
149513
|
var init_shader_graph_presets = __esm({
|
|
149512
|
-
"
|
|
149514
|
+
"lib/engine/shader-graph-presets.ts"() {
|
|
149513
149515
|
"use strict";
|
|
149514
149516
|
init_shader_graph();
|
|
149515
149517
|
hex3 = (h) => ({ r: parseInt(h.slice(1, 3), 16) / 255, g: parseInt(h.slice(3, 5), 16) / 255, b: parseInt(h.slice(5, 7), 16) / 255, a: 1 });
|
|
@@ -149550,7 +149552,7 @@ var init_shader_graph_presets = __esm({
|
|
|
149550
149552
|
}
|
|
149551
149553
|
});
|
|
149552
149554
|
|
|
149553
|
-
//
|
|
149555
|
+
// lib/engine/shader-presets-legacy.ts
|
|
149554
149556
|
function particleShader(kind) {
|
|
149555
149557
|
const k = KINDS[kind];
|
|
149556
149558
|
const d = k.defaults;
|
|
@@ -149610,7 +149612,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, time: f32) -> vec4<f32> {
|
|
|
149610
149612
|
}
|
|
149611
149613
|
var KINDS, HELPERS, PARTICLE_KINDS2, particlePresetName, FOCUS_LINES, SPEED_LINES, IMPACT_BURST, LIGHT_RAYS, FX_SHADER_PRESETS, BASE_SHADER_PRESETS, LEGACY_SHADER_PRESETS;
|
|
149612
149614
|
var init_shader_presets_legacy = __esm({
|
|
149613
|
-
"
|
|
149615
|
+
"lib/engine/shader-presets-legacy.ts"() {
|
|
149614
149616
|
"use strict";
|
|
149615
149617
|
KINDS = {
|
|
149616
149618
|
petals: {
|
|
@@ -149982,7 +149984,7 @@ fn shade(uv: vec2<f32>, res: vec2<f32>, time: f32) -> vec4<f32> {
|
|
|
149982
149984
|
}
|
|
149983
149985
|
});
|
|
149984
149986
|
|
|
149985
|
-
//
|
|
149987
|
+
// lib/engine/shader-presets.ts
|
|
149986
149988
|
function presetOfFill(fill) {
|
|
149987
149989
|
if (!fill.shaderCode) return void 0;
|
|
149988
149990
|
return fill.shaderGraph ? SHADER_PRESETS.find((p2) => p2.code === fill.shaderCode) : legacyPresetOf(fill.shaderCode);
|
|
@@ -150006,7 +150008,7 @@ function presetPaint(paint, preset2, params = {}) {
|
|
|
150006
150008
|
}
|
|
150007
150009
|
var SHADER_PRESETS, shaderPreset, legacyPresetOf, DEFAULT_SHADER_PRESET;
|
|
150008
150010
|
var init_shader_presets = __esm({
|
|
150009
|
-
"
|
|
150011
|
+
"lib/engine/shader-presets.ts"() {
|
|
150010
150012
|
"use strict";
|
|
150011
150013
|
init_shader_graph();
|
|
150012
150014
|
init_shader_graph_presets();
|
|
@@ -150021,7 +150023,7 @@ var init_shader_presets = __esm({
|
|
|
150021
150023
|
}
|
|
150022
150024
|
});
|
|
150023
150025
|
|
|
150024
|
-
//
|
|
150026
|
+
// lib/motion/transitions.ts
|
|
150025
150027
|
function scaledAbout(m, k, cx, cy) {
|
|
150026
150028
|
return k === 1 ? m : multiply([k, 0, 0, k, cx - k * cx, cy - k * cy], m);
|
|
150027
150029
|
}
|
|
@@ -150095,7 +150097,7 @@ function transitionRoots(type, progress2, a, b, stage, params) {
|
|
|
150095
150097
|
}
|
|
150096
150098
|
var TRANSITION_TYPES, PROTOTYPE_TRANSITION_TYPES, SCENE_TRANSITION_TYPES, ZOOM_OUT_SCALE, ZOOM_IN_SCALE, WHIP_SMEAR, whipSmear, root, shifted, rootShows;
|
|
150097
150099
|
var init_transitions = __esm({
|
|
150098
|
-
"
|
|
150100
|
+
"lib/motion/transitions.ts"() {
|
|
150099
150101
|
"use strict";
|
|
150100
150102
|
init_transform();
|
|
150101
150103
|
TRANSITION_TYPES = [
|
|
@@ -150133,7 +150135,7 @@ var init_transitions = __esm({
|
|
|
150133
150135
|
}
|
|
150134
150136
|
});
|
|
150135
150137
|
|
|
150136
|
-
//
|
|
150138
|
+
// lib/motion/composition.ts
|
|
150137
150139
|
function compositionDuration(comp) {
|
|
150138
150140
|
let end = 0;
|
|
150139
150141
|
for (const c of comp.clips) end = Math.max(end, clipEnd(c));
|
|
@@ -150236,7 +150238,7 @@ function setClipTransition(comp, clipId, transition) {
|
|
|
150236
150238
|
}
|
|
150237
150239
|
var clipLength, clipEnd, clipLocalTime, EMPTY_MOMENT, seq, compositionId, newClip, withClips;
|
|
150238
150240
|
var init_composition = __esm({
|
|
150239
|
-
"
|
|
150241
|
+
"lib/motion/composition.ts"() {
|
|
150240
150242
|
"use strict";
|
|
150241
150243
|
init_easing();
|
|
150242
150244
|
init_transform();
|
|
@@ -150256,7 +150258,7 @@ var init_composition = __esm({
|
|
|
150256
150258
|
}
|
|
150257
150259
|
});
|
|
150258
150260
|
|
|
150259
|
-
//
|
|
150261
|
+
// lib/document/node-delta.ts
|
|
150260
150262
|
function noteChanged(from, to, ids) {
|
|
150261
150263
|
if (from === to || ids.length > MAX_IDS) return;
|
|
150262
150264
|
deltas.set(to, { from, ids });
|
|
@@ -150320,7 +150322,7 @@ function idIndex(test) {
|
|
|
150320
150322
|
}
|
|
150321
150323
|
var deltas, MAX_STEPS, MAX_IDS, union;
|
|
150322
150324
|
var init_node_delta = __esm({
|
|
150323
|
-
"
|
|
150325
|
+
"lib/document/node-delta.ts"() {
|
|
150324
150326
|
"use strict";
|
|
150325
150327
|
deltas = /* @__PURE__ */ new WeakMap();
|
|
150326
150328
|
MAX_STEPS = 16;
|
|
@@ -150329,7 +150331,7 @@ var init_node_delta = __esm({
|
|
|
150329
150331
|
}
|
|
150330
150332
|
});
|
|
150331
150333
|
|
|
150332
|
-
//
|
|
150334
|
+
// lib/editor/smart-animate.ts
|
|
150333
150335
|
function lerpPaint(pa, pb, t) {
|
|
150334
150336
|
if (!pa || pa.type !== pb.type) return pb;
|
|
150335
150337
|
const opacity = lerpNumber(pa.opacity ?? 1, pb.opacity ?? 1, t);
|
|
@@ -150474,7 +150476,7 @@ function progressOfAncestor(nodes, progress2, id, rootId) {
|
|
|
150474
150476
|
}
|
|
150475
150477
|
var SMART_ANIMATE_PROPS, CONTAINERS, pick;
|
|
150476
150478
|
var init_smart_animate = __esm({
|
|
150477
|
-
"
|
|
150479
|
+
"lib/editor/smart-animate.ts"() {
|
|
150478
150480
|
"use strict";
|
|
150479
150481
|
init_values();
|
|
150480
150482
|
SMART_ANIMATE_PROPS = [
|
|
@@ -150500,10 +150502,10 @@ var init_smart_animate = __esm({
|
|
|
150500
150502
|
}
|
|
150501
150503
|
});
|
|
150502
150504
|
|
|
150503
|
-
//
|
|
150505
|
+
// lib/motion/audio-onsets.ts
|
|
150504
150506
|
var WINDOW, HOP, RISE_BACK;
|
|
150505
150507
|
var init_audio_onsets = __esm({
|
|
150506
|
-
"
|
|
150508
|
+
"lib/motion/audio-onsets.ts"() {
|
|
150507
150509
|
"use strict";
|
|
150508
150510
|
WINDOW = 1024;
|
|
150509
150511
|
HOP = 256;
|
|
@@ -150511,10 +150513,10 @@ var init_audio_onsets = __esm({
|
|
|
150511
150513
|
}
|
|
150512
150514
|
});
|
|
150513
150515
|
|
|
150514
|
-
//
|
|
150516
|
+
// lib/motion/audio-analysis.ts
|
|
150515
150517
|
var ANALYSIS_FPS, SPECTRUM_BINS;
|
|
150516
150518
|
var init_audio_analysis = __esm({
|
|
150517
|
-
"
|
|
150519
|
+
"lib/motion/audio-analysis.ts"() {
|
|
150518
150520
|
"use strict";
|
|
150519
150521
|
init_audio_onsets();
|
|
150520
150522
|
ANALYSIS_FPS = 100;
|
|
@@ -150522,7 +150524,7 @@ var init_audio_analysis = __esm({
|
|
|
150522
150524
|
}
|
|
150523
150525
|
});
|
|
150524
150526
|
|
|
150525
|
-
//
|
|
150527
|
+
// lib/motion/keys.ts
|
|
150526
150528
|
function hostFrameOf(nodes, id) {
|
|
150527
150529
|
for (let n = nodes[id]; n; n = n.parentId ? nodes[n.parentId] : void 0) if (isTimelineHost(nodes, n)) return n.id;
|
|
150528
150530
|
return null;
|
|
@@ -150557,7 +150559,7 @@ function setTrackKey(track, t, v, o = {}) {
|
|
|
150557
150559
|
}
|
|
150558
150560
|
var isTimelineHost, freshKeyId;
|
|
150559
150561
|
var init_keys = __esm({
|
|
150560
|
-
"
|
|
150562
|
+
"lib/motion/keys.ts"() {
|
|
150561
150563
|
"use strict";
|
|
150562
150564
|
init_easing();
|
|
150563
150565
|
init_properties();
|
|
@@ -150569,7 +150571,7 @@ var init_keys = __esm({
|
|
|
150569
150571
|
}
|
|
150570
150572
|
});
|
|
150571
150573
|
|
|
150572
|
-
//
|
|
150574
|
+
// lib/motion/audio-clips.ts
|
|
150573
150575
|
function clipGainAt(clip, t) {
|
|
150574
150576
|
if (!clip.gain) return 1;
|
|
150575
150577
|
const v = sampleTrack(clip.gain, GAIN_PROPERTY, 1, t);
|
|
@@ -150590,7 +150592,7 @@ function fitFades(len, fadeIn2, fadeOut2) {
|
|
|
150590
150592
|
}
|
|
150591
150593
|
var MAX_GAIN, GAIN_PROPERTY, MIN_AUDIO_SPEED, MAX_AUDIO_SPEED, audioSpeed, audioClipLength, audioClipEnd;
|
|
150592
150594
|
var init_audio_clips = __esm({
|
|
150593
|
-
"
|
|
150595
|
+
"lib/motion/audio-clips.ts"() {
|
|
150594
150596
|
"use strict";
|
|
150595
150597
|
init_keys();
|
|
150596
150598
|
init_composition();
|
|
@@ -150605,7 +150607,7 @@ var init_audio_clips = __esm({
|
|
|
150605
150607
|
}
|
|
150606
150608
|
});
|
|
150607
150609
|
|
|
150608
|
-
//
|
|
150610
|
+
// lib/motion/audio-signals.ts
|
|
150609
150611
|
function requestAnalyses(sound) {
|
|
150610
150612
|
if (!requester) return;
|
|
150611
150613
|
for (const c of sound) if (!c.muted && !analyses.has(c.mediaHash)) requester(c.mediaHash);
|
|
@@ -150715,7 +150717,7 @@ function sampleSignal(spec, scope = current) {
|
|
|
150715
150717
|
}
|
|
150716
150718
|
var BEAT_RELEASE_MS, analyses, version, analysisVersion, requester, current, smoothed, MAX_SERIES_PER_FILE, spectrumIndex;
|
|
150717
150719
|
var init_audio_signals = __esm({
|
|
150718
|
-
"
|
|
150720
|
+
"lib/motion/audio-signals.ts"() {
|
|
150719
150721
|
"use strict";
|
|
150720
150722
|
init_audio_analysis();
|
|
150721
150723
|
init_audio_clips();
|
|
@@ -150731,7 +150733,7 @@ var init_audio_signals = __esm({
|
|
|
150731
150733
|
}
|
|
150732
150734
|
});
|
|
150733
150735
|
|
|
150734
|
-
//
|
|
150736
|
+
// lib/motion/spatial-curve.ts
|
|
150735
150737
|
function animatedPair(node, parent) {
|
|
150736
150738
|
const tracks2 = node.motion?.tracks;
|
|
150737
150739
|
if (!tracks2) return null;
|
|
@@ -150793,7 +150795,7 @@ function spatialDelta(xTrack, yTrack, t) {
|
|
|
150793
150795
|
}
|
|
150794
150796
|
var XY2, TRANSLATE, moving, positionPair, keyNear, bez, LUT_N, luts, spatialTracks, hasSpatial;
|
|
150795
150797
|
var init_spatial_curve = __esm({
|
|
150796
|
-
"
|
|
150798
|
+
"lib/motion/spatial-curve.ts"() {
|
|
150797
150799
|
"use strict";
|
|
150798
150800
|
init_easing();
|
|
150799
150801
|
init_modifiers();
|
|
@@ -150822,7 +150824,7 @@ var init_spatial_curve = __esm({
|
|
|
150822
150824
|
}
|
|
150823
150825
|
});
|
|
150824
150826
|
|
|
150825
|
-
//
|
|
150827
|
+
// lib/motion/sample.ts
|
|
150826
150828
|
function sampleTrack(track, prop, rest, t, ctx) {
|
|
150827
150829
|
if (track.muted) return rest;
|
|
150828
150830
|
const mods = track.modifiers;
|
|
@@ -150989,7 +150991,7 @@ function sampleSubtree(nodes, rootId, rootMs, spans = true) {
|
|
|
150989
150991
|
}
|
|
150990
150992
|
var PAIRS, animates, bindingMemo, boundMemo, visiting, linkNodes, visitKey, linkContext, animatedIds, motionMemo;
|
|
150991
150993
|
var init_sample = __esm({
|
|
150992
|
-
"
|
|
150994
|
+
"lib/motion/sample.ts"() {
|
|
150993
150995
|
"use strict";
|
|
150994
150996
|
init_node_delta();
|
|
150995
150997
|
init_instances();
|
|
@@ -151036,7 +151038,7 @@ var init_sample = __esm({
|
|
|
151036
151038
|
}
|
|
151037
151039
|
});
|
|
151038
151040
|
|
|
151039
|
-
//
|
|
151041
|
+
// lib/motion/layer-time-edit.ts
|
|
151040
151042
|
function layerBar(nodes, id, frameId, duration) {
|
|
151041
151043
|
const n = nodes[id];
|
|
151042
151044
|
const parentShift = n?.parentId && n.parentId !== frameId ? timeShift(nodes, n.parentId, frameId) : 0;
|
|
@@ -151047,13 +151049,13 @@ function layerBar(nodes, id, frameId, duration) {
|
|
|
151047
151049
|
return { start, end: Math.max(start, outAt ?? duration), trimmedIn: inAt !== void 0 && inAt >= own, trimmedOut: outAt !== void 0 };
|
|
151048
151050
|
}
|
|
151049
151051
|
var init_layer_time_edit = __esm({
|
|
151050
|
-
"
|
|
151052
|
+
"lib/motion/layer-time-edit.ts"() {
|
|
151051
151053
|
"use strict";
|
|
151052
151054
|
init_time();
|
|
151053
151055
|
}
|
|
151054
151056
|
});
|
|
151055
151057
|
|
|
151056
|
-
//
|
|
151058
|
+
// lib/motion/video-clip.ts
|
|
151057
151059
|
function videoClipOf(nodes, id, frameId, duration) {
|
|
151058
151060
|
const node = nodes[id];
|
|
151059
151061
|
const fill = videoFillIndex(node);
|
|
@@ -151103,7 +151105,7 @@ function poseVideoTimes(nodes, frameId, time, patches) {
|
|
|
151103
151105
|
}
|
|
151104
151106
|
var MIN_VIDEO_SPEED, MAX_VIDEO_SPEED, clampSpeed, fillsOf, isVideoPaint, videoFillIndex, videoNodeIds, sourceMsAt, BLACK4, WHITE4;
|
|
151105
151107
|
var init_video_clip = __esm({
|
|
151106
|
-
"
|
|
151108
|
+
"lib/motion/video-clip.ts"() {
|
|
151107
151109
|
"use strict";
|
|
151108
151110
|
init_node_delta();
|
|
151109
151111
|
init_layer_time_edit();
|
|
@@ -151121,7 +151123,7 @@ var init_video_clip = __esm({
|
|
|
151121
151123
|
}
|
|
151122
151124
|
});
|
|
151123
151125
|
|
|
151124
|
-
//
|
|
151126
|
+
// lib/motion/instances.ts
|
|
151125
151127
|
function inComponent(nodes, id) {
|
|
151126
151128
|
for (let n = nodes[id], depth = 0; n && depth < 256; n = n.parentId ? nodes[n.parentId] : void 0, depth++) if (isComponentLike(n)) return true;
|
|
151127
151129
|
return false;
|
|
@@ -151451,7 +151453,7 @@ function sampleInstances(nodes, rootId, rootMs, runtime = NO_RUNTIME, base = {})
|
|
|
151451
151453
|
}
|
|
151452
151454
|
var NO_RUNTIME, MAX_DEPTH, freshIndex, indexOf, isComponentLike, selfStarting, startedAt, endMemo, HOST_OWNS, rootTracksMemo, layerMemo, idle;
|
|
151453
151455
|
var init_instances2 = __esm({
|
|
151454
|
-
"
|
|
151456
|
+
"lib/motion/instances.ts"() {
|
|
151455
151457
|
"use strict";
|
|
151456
151458
|
init_node_delta();
|
|
151457
151459
|
init_instances();
|
|
@@ -151477,7 +151479,7 @@ var init_instances2 = __esm({
|
|
|
151477
151479
|
}
|
|
151478
151480
|
});
|
|
151479
151481
|
|
|
151480
|
-
//
|
|
151482
|
+
// lib/motion/markers.ts
|
|
151481
151483
|
function freshMarkerId(markers) {
|
|
151482
151484
|
const used = new Set(markers.map((m) => m.id));
|
|
151483
151485
|
for (let n = 1; ; n++) if (!used.has(`m${n}`)) return `m${n}`;
|
|
@@ -151507,7 +151509,7 @@ function updateMarker(tl, id, patch) {
|
|
|
151507
151509
|
}
|
|
151508
151510
|
var DEFAULT_FPS, timelineFps, sortMarkers, withMarkers;
|
|
151509
151511
|
var init_markers = __esm({
|
|
151510
|
-
"
|
|
151512
|
+
"lib/motion/markers.ts"() {
|
|
151511
151513
|
"use strict";
|
|
151512
151514
|
init_types();
|
|
151513
151515
|
DEFAULT_FPS = 60;
|
|
@@ -151521,7 +151523,7 @@ var init_markers = __esm({
|
|
|
151521
151523
|
}
|
|
151522
151524
|
});
|
|
151523
151525
|
|
|
151524
|
-
//
|
|
151526
|
+
// lib/motion/modifier-edit.ts
|
|
151525
151527
|
function withModifierIds(mods) {
|
|
151526
151528
|
if (mods.every((m) => m.id)) return mods;
|
|
151527
151529
|
const used = new Set(mods.map((m) => m.id).filter((id) => !!id));
|
|
@@ -151543,7 +151545,7 @@ function addModifier(track, m) {
|
|
|
151543
151545
|
}
|
|
151544
151546
|
var freshId2, listOf;
|
|
151545
151547
|
var init_modifier_edit = __esm({
|
|
151546
|
-
"
|
|
151548
|
+
"lib/motion/modifier-edit.ts"() {
|
|
151547
151549
|
"use strict";
|
|
151548
151550
|
init_easing();
|
|
151549
151551
|
init_sample_keys();
|
|
@@ -151557,7 +151559,7 @@ var init_modifier_edit = __esm({
|
|
|
151557
151559
|
}
|
|
151558
151560
|
});
|
|
151559
151561
|
|
|
151560
|
-
//
|
|
151562
|
+
// lib/motion/text-animators.ts
|
|
151561
151563
|
function withAnimator(node, animator) {
|
|
151562
151564
|
const list2 = node.textAnimators ?? [];
|
|
151563
151565
|
const i = list2.findIndex((a) => a.id === animator.id);
|
|
@@ -151665,7 +151667,7 @@ function letterOpacities(posed2, chars = posed2.characters) {
|
|
|
151665
151667
|
}
|
|
151666
151668
|
var animatorPath, animatorPrefix, COUNTER_PATH, isTextNode, UNIT_DEFAULTS, posed, textPoseOf, UNIT_STRIDE, U, flat, FIELDS, LINEAR;
|
|
151667
151669
|
var init_text_animators = __esm({
|
|
151668
|
-
"
|
|
151670
|
+
"lib/motion/text-animators.ts"() {
|
|
151669
151671
|
"use strict";
|
|
151670
151672
|
init_easing();
|
|
151671
151673
|
init_keys();
|
|
@@ -151715,7 +151717,7 @@ var init_text_animators = __esm({
|
|
|
151715
151717
|
}
|
|
151716
151718
|
});
|
|
151717
151719
|
|
|
151718
|
-
//
|
|
151720
|
+
// lib/motion/author.ts
|
|
151719
151721
|
var author_exports = {};
|
|
151720
151722
|
__export(author_exports, {
|
|
151721
151723
|
COUNT_MS: () => COUNT_MS,
|
|
@@ -151838,7 +151840,7 @@ function sceneSequence(nodes, opts) {
|
|
|
151838
151840
|
}
|
|
151839
151841
|
var ease, COUNT_MS, delay, shiftPositionKeys;
|
|
151840
151842
|
var init_author = __esm({
|
|
151841
|
-
"
|
|
151843
|
+
"lib/motion/author.ts"() {
|
|
151842
151844
|
init_shader_presets();
|
|
151843
151845
|
init_composition();
|
|
151844
151846
|
init_instances2();
|
|
@@ -151870,7 +151872,7 @@ var init_author = __esm({
|
|
|
151870
151872
|
}
|
|
151871
151873
|
});
|
|
151872
151874
|
|
|
151873
|
-
//
|
|
151875
|
+
// lib/motion/key-selection.ts
|
|
151874
151876
|
function grouped(sel) {
|
|
151875
151877
|
const out = /* @__PURE__ */ new Map();
|
|
151876
151878
|
for (const r of sel) {
|
|
@@ -151938,7 +151940,7 @@ function setKeysBinding(nodes, sel, bind) {
|
|
|
151938
151940
|
});
|
|
151939
151941
|
}
|
|
151940
151942
|
var init_key_selection = __esm({
|
|
151941
|
-
"
|
|
151943
|
+
"lib/motion/key-selection.ts"() {
|
|
151942
151944
|
init_easing();
|
|
151943
151945
|
init_keys();
|
|
151944
151946
|
init_properties();
|
|
@@ -151948,7 +151950,7 @@ var init_key_selection = __esm({
|
|
|
151948
151950
|
}
|
|
151949
151951
|
});
|
|
151950
151952
|
|
|
151951
|
-
//
|
|
151953
|
+
// lib/motion/spatial.ts
|
|
151952
151954
|
function keyTo(motion, path, t, value) {
|
|
151953
151955
|
return setKey(motion, path, t, value);
|
|
151954
151956
|
}
|
|
@@ -151984,7 +151986,7 @@ function setDotTangent(node, parent, t, side, vec, broken = false) {
|
|
|
151984
151986
|
return withSpatial(motion, pair[0], xKey.t, clean);
|
|
151985
151987
|
}
|
|
151986
151988
|
var init_spatial = __esm({
|
|
151987
|
-
"
|
|
151989
|
+
"lib/motion/spatial.ts"() {
|
|
151988
151990
|
init_keys();
|
|
151989
151991
|
init_properties();
|
|
151990
151992
|
init_sample_keys();
|
|
@@ -151993,7 +151995,7 @@ var init_spatial = __esm({
|
|
|
151993
151995
|
}
|
|
151994
151996
|
});
|
|
151995
151997
|
|
|
151996
|
-
//
|
|
151998
|
+
// lib/motion/presets.ts
|
|
151997
151999
|
function withBlur(n) {
|
|
151998
152000
|
const effects = n.effects ?? [];
|
|
151999
152001
|
if (effects.some((e) => e.type === "LAYER_BLUR" && e.id)) return n;
|
|
@@ -152242,7 +152244,7 @@ function liveStaggerParent(nodes, ids) {
|
|
|
152242
152244
|
}
|
|
152243
152245
|
var PRESET_IDS, num3, restOpacity, overshoots, fadeCurve, span, enter, leave, fadeIn, fadeOut, along, scaleSpan, wave, BLUR_ID, SMEAR_ID, SHAKE_STEPS, SHAKE, clips, clipping, WIPE_MIN, wipeGroupId, wipeMaskId, any, CONTAINERS2, isContainer, autoRise, CAM, zoomOf, camTravel, camArrive, dollyAxis, cameraOrGroup, isPlainText, TEXT_NEEDS, unitRise, cascade, cascadeKeys, cascadeAmount, slideDistance, LIBRARY, BY_ID, lengthenedTo;
|
|
152244
152246
|
var init_presets = __esm({
|
|
152245
|
-
"
|
|
152247
|
+
"lib/motion/presets.ts"() {
|
|
152246
152248
|
init_author();
|
|
152247
152249
|
init_keys();
|
|
152248
152250
|
init_markers();
|
|
@@ -152829,7 +152831,7 @@ var init_presets = __esm({
|
|
|
152829
152831
|
}
|
|
152830
152832
|
});
|
|
152831
152833
|
|
|
152832
|
-
//
|
|
152834
|
+
// templates/src/kit.ts
|
|
152833
152835
|
var kit_exports = {};
|
|
152834
152836
|
__export(kit_exports, {
|
|
152835
152837
|
COUNT_EASE: () => COUNT_EASE,
|
|
@@ -152843,6 +152845,23 @@ __export(kit_exports, {
|
|
|
152843
152845
|
preset: () => preset,
|
|
152844
152846
|
swapTimes: () => swapTimes
|
|
152845
152847
|
});
|
|
152848
|
+
function assertGeometry(node) {
|
|
152849
|
+
const n = node;
|
|
152850
|
+
const bad = (key2, v) => {
|
|
152851
|
+
throw new Error(`Layer "${node.name}": ${key2} must be a number (got ${shown(v)})`);
|
|
152852
|
+
};
|
|
152853
|
+
const finite3 = (v) => typeof v === "number" && Number.isFinite(v);
|
|
152854
|
+
for (const key2 of NUMERIC) {
|
|
152855
|
+
const v = n[key2];
|
|
152856
|
+
if (v === void 0 || v === null || finite3(v)) continue;
|
|
152857
|
+
if (key2 === "cornerRadius" && Array.isArray(v) && v.length === 4 && v.every(finite3)) continue;
|
|
152858
|
+
bad(key2, v);
|
|
152859
|
+
}
|
|
152860
|
+
const pad3 = n.padding;
|
|
152861
|
+
if (pad3 && typeof pad3 === "object") {
|
|
152862
|
+
for (const [side, v] of Object.entries(pad3)) if (!finite3(v)) bad(`padding.${side}`, v);
|
|
152863
|
+
}
|
|
152864
|
+
}
|
|
152846
152865
|
function swapTimes(s) {
|
|
152847
152866
|
const out = [];
|
|
152848
152867
|
const tailOf = (word) => ((s.unit === "word" ? word.split(/\s+/).filter(Boolean).length : word.replace(/\s/g, "").length) - 1) * s.stagger;
|
|
@@ -152885,9 +152904,9 @@ function layersNamed(doc, rootId, name) {
|
|
|
152885
152904
|
walk(rootId);
|
|
152886
152905
|
return out;
|
|
152887
152906
|
}
|
|
152888
|
-
var hex4, geom, quantizePoint, quantizePath, placed, masking, list, pad, LOGO_PLACEHOLDERS, COUNT_EASE, Kit, preset;
|
|
152907
|
+
var hex4, geom, quantizePoint, quantizePath, NUMERIC, shown, placed, masking, list, pad, LOGO_PLACEHOLDERS, COUNT_EASE, Kit, preset;
|
|
152889
152908
|
var init_kit = __esm({
|
|
152890
|
-
"
|
|
152909
|
+
"templates/src/kit.ts"() {
|
|
152891
152910
|
init_breakpoints();
|
|
152892
152911
|
init_dist_node();
|
|
152893
152912
|
init_types();
|
|
@@ -152919,6 +152938,14 @@ var init_kit = __esm({
|
|
|
152919
152938
|
geom = (v) => Math.round(v * 1e3) / 1e3 + 0;
|
|
152920
152939
|
quantizePoint = (p2) => ({ ...p2, x: geom(p2.x), y: geom(p2.y), ...p2.handleIn ? { handleIn: { x: geom(p2.handleIn.x), y: geom(p2.handleIn.y) } } : {}, ...p2.handleOut ? { handleOut: { x: geom(p2.handleOut.x), y: geom(p2.handleOut.y) } } : {} });
|
|
152921
152940
|
quantizePath = (p2) => ({ ...p2, points: p2.points.map(quantizePoint), ...p2.data ? { data: p2.data.map((d) => typeof d === "number" ? geom(d) : d) } : {} });
|
|
152941
|
+
NUMERIC = ["x", "y", "width", "height", "rotation", "opacity", "itemSpacing", "counterAxisSpacing", "cornerRadius", "minWidth", "maxWidth", "minHeight", "maxHeight", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft"];
|
|
152942
|
+
shown = (v) => {
|
|
152943
|
+
try {
|
|
152944
|
+
return JSON.stringify(v) ?? String(v);
|
|
152945
|
+
} catch {
|
|
152946
|
+
return String(v);
|
|
152947
|
+
}
|
|
152948
|
+
};
|
|
152922
152949
|
placed = (at2) => at2 ? { layoutPositioning: "ABSOLUTE", x: at2.x, y: at2.y } : {};
|
|
152923
152950
|
masking = (o) => o.mask ? { isMask: true, maskType: "ALPHA" } : {};
|
|
152924
152951
|
list = (v) => Array.isArray(v) ? [...v] : [v];
|
|
@@ -152958,6 +152985,7 @@ var init_kit = __esm({
|
|
|
152958
152985
|
}
|
|
152959
152986
|
/** Replace one node (the kit's only mutation primitive after `add`). */
|
|
152960
152987
|
put(id, node) {
|
|
152988
|
+
assertGeometry(node);
|
|
152961
152989
|
this.doc = { ...this.doc, nodes: { ...this.doc.nodes, [id]: node } };
|
|
152962
152990
|
}
|
|
152963
152991
|
patch(id, props) {
|
|
@@ -153080,6 +153108,7 @@ var init_kit = __esm({
|
|
|
153080
153108
|
}
|
|
153081
153109
|
// ── Nodes ──
|
|
153082
153110
|
add(node, parent) {
|
|
153111
|
+
assertGeometry(node);
|
|
153083
153112
|
this.doc = addNode(this.doc, node, parent);
|
|
153084
153113
|
return node;
|
|
153085
153114
|
}
|
|
@@ -153833,7 +153862,7 @@ var init_kit = __esm({
|
|
|
153833
153862
|
}
|
|
153834
153863
|
});
|
|
153835
153864
|
|
|
153836
|
-
//
|
|
153865
|
+
// templates/src/shared/draw.ts
|
|
153837
153866
|
var draw_exports = {};
|
|
153838
153867
|
__export(draw_exports, {
|
|
153839
153868
|
DEG: () => DEG,
|
|
@@ -153871,7 +153900,7 @@ function lcg(seed) {
|
|
|
153871
153900
|
}
|
|
153872
153901
|
var r3, DEG, pt, pt3, box, line, poly, circle, corners, circle3, poly3, box3, smooth, curve3;
|
|
153873
153902
|
var init_draw = __esm({
|
|
153874
|
-
"
|
|
153903
|
+
"templates/src/shared/draw.ts"() {
|
|
153875
153904
|
r3 = (v) => Math.round(v * 1e3) / 1e3 + 0;
|
|
153876
153905
|
DEG = Math.PI / 180;
|
|
153877
153906
|
pt = (x, y) => ({ x, y });
|
|
@@ -153904,7 +153933,7 @@ var init_draw = __esm({
|
|
|
153904
153933
|
}
|
|
153905
153934
|
});
|
|
153906
153935
|
|
|
153907
|
-
//
|
|
153936
|
+
// templates/src/data/geometry.ts
|
|
153908
153937
|
function arc(cx, cy, r, a0, a1) {
|
|
153909
153938
|
const at2 = (a) => ({ x: cx + r * Math.sin(a), y: cy - r * Math.cos(a) });
|
|
153910
153939
|
const tangent = (a) => ({ x: Math.cos(a), y: Math.sin(a) });
|
|
@@ -153931,13 +153960,13 @@ function plot(values, width, height, min, max) {
|
|
|
153931
153960
|
}
|
|
153932
153961
|
var polyline;
|
|
153933
153962
|
var init_geometry = __esm({
|
|
153934
|
-
"
|
|
153963
|
+
"templates/src/data/geometry.ts"() {
|
|
153935
153964
|
"use strict";
|
|
153936
153965
|
polyline = (points) => ({ points: points.map((p2) => ({ x: p2.x, y: p2.y })), closed: false });
|
|
153937
153966
|
}
|
|
153938
153967
|
});
|
|
153939
153968
|
|
|
153940
|
-
//
|
|
153969
|
+
// templates/src/shared/marks.ts
|
|
153941
153970
|
var marks_exports = {};
|
|
153942
153971
|
__export(marks_exports, {
|
|
153943
153972
|
arrowPath: () => arrowPath,
|
|
@@ -154045,14 +154074,14 @@ function faceSlot(k, photo, w, h, role) {
|
|
|
154045
154074
|
}
|
|
154046
154075
|
var tickPath;
|
|
154047
154076
|
var init_marks = __esm({
|
|
154048
|
-
"
|
|
154077
|
+
"templates/src/shared/marks.ts"() {
|
|
154049
154078
|
init_geometry();
|
|
154050
154079
|
init_draw();
|
|
154051
154080
|
tickPath = (w, h) => ({ closed: false, points: [{ x: 0, y: h * 0.55 }, { x: w * 0.36, y: h }, { x: w, y: 0 }] });
|
|
154052
154081
|
}
|
|
154053
154082
|
});
|
|
154054
154083
|
|
|
154055
|
-
//
|
|
154084
|
+
// templates/src/shared/fit.ts
|
|
154056
154085
|
var fit_exports = {};
|
|
154057
154086
|
__export(fit_exports, {
|
|
154058
154087
|
board: () => board,
|
|
@@ -154131,7 +154160,7 @@ function reboard(k, root2, name, scale) {
|
|
|
154131
154160
|
}
|
|
154132
154161
|
var sizeOf, boxesOf, vectorAt, patchPart;
|
|
154133
154162
|
var init_fit = __esm({
|
|
154134
|
-
"
|
|
154163
|
+
"templates/src/shared/fit.ts"() {
|
|
154135
154164
|
init_draw();
|
|
154136
154165
|
sizeOf = (k, id) => ({ w: k.node(id).width, h: k.node(id).height });
|
|
154137
154166
|
boxesOf = (k, root2, names) => names.flatMap((name) => k.named(root2, name).map((id) => {
|
|
@@ -154150,7 +154179,7 @@ var init_fit = __esm({
|
|
|
154150
154179
|
}
|
|
154151
154180
|
});
|
|
154152
154181
|
|
|
154153
|
-
//
|
|
154182
|
+
// templates/src/shared/motion.ts
|
|
154154
154183
|
var motion_exports = {};
|
|
154155
154184
|
__export(motion_exports, {
|
|
154156
154185
|
HOLD: () => HOLD2,
|
|
@@ -154169,7 +154198,7 @@ function appear(k, id, at2, fade = 160, to = 1) {
|
|
|
154169
154198
|
}
|
|
154170
154199
|
var hz, HOLD2, SNAP, cutOn, cutOff, blink;
|
|
154171
154200
|
var init_motion = __esm({
|
|
154172
|
-
"
|
|
154201
|
+
"templates/src/shared/motion.ts"() {
|
|
154173
154202
|
init_author();
|
|
154174
154203
|
hz = (cycles, loopMs) => cycles * 1e3 / loopMs;
|
|
154175
154204
|
HOLD2 = { kind: "hold" };
|
|
@@ -154180,7 +154209,7 @@ var init_motion = __esm({
|
|
|
154180
154209
|
}
|
|
154181
154210
|
});
|
|
154182
154211
|
|
|
154183
|
-
//
|
|
154212
|
+
// templates/src/shared/captions.ts
|
|
154184
154213
|
var captions_exports = {};
|
|
154185
154214
|
__export(captions_exports, {
|
|
154186
154215
|
captionStrip: () => captionStrip,
|
|
@@ -154202,11 +154231,11 @@ function captionStrip(k, parent, first, o) {
|
|
|
154202
154231
|
return strip;
|
|
154203
154232
|
}
|
|
154204
154233
|
var init_captions = __esm({
|
|
154205
|
-
"
|
|
154234
|
+
"templates/src/shared/captions.ts"() {
|
|
154206
154235
|
}
|
|
154207
154236
|
});
|
|
154208
154237
|
|
|
154209
|
-
//
|
|
154238
|
+
// templates/src/shared/texture.ts
|
|
154210
154239
|
var texture_exports = {};
|
|
154211
154240
|
__export(texture_exports, {
|
|
154212
154241
|
RADIAL: () => RADIAL,
|
|
@@ -154228,7 +154257,7 @@ function glow(k, parent, o) {
|
|
|
154228
154257
|
}
|
|
154229
154258
|
var noise, grain, shadow, blackShadow, hardShadow, bloom, bleed, halo, RADIAL, blurred;
|
|
154230
154259
|
var init_texture = __esm({
|
|
154231
|
-
"
|
|
154260
|
+
"templates/src/shared/texture.ts"() {
|
|
154232
154261
|
init_draw();
|
|
154233
154262
|
noise = (o) => ({ ...o.id ? { id: o.id } : {}, type: "NOISE", amount: o.amount, size: o.size, monochrome: true, seed: o.seed, visible: true, mode: "MONO", density: o.density ?? 0.5 });
|
|
154234
154263
|
grain = (amount = 0.05, size2 = 3, seed = 11) => [noise({ id: "e1", amount, size: size2, seed })];
|
|
@@ -154243,7 +154272,7 @@ var init_texture = __esm({
|
|
|
154243
154272
|
}
|
|
154244
154273
|
});
|
|
154245
154274
|
|
|
154246
|
-
//
|
|
154275
|
+
// templates/src/shared/overlays.ts
|
|
154247
154276
|
var overlays_exports = {};
|
|
154248
154277
|
__export(overlays_exports, {
|
|
154249
154278
|
RAIN_PERIOD: () => RAIN_PERIOD,
|
|
@@ -154331,7 +154360,7 @@ function dots(k, parent, o) {
|
|
|
154331
154360
|
}
|
|
154332
154361
|
var SCAN_PERIOD, scan, scanPaths, RAIN_PERIOD, snowName;
|
|
154333
154362
|
var init_overlays = __esm({
|
|
154334
|
-
"
|
|
154363
|
+
"templates/src/shared/overlays.ts"() {
|
|
154335
154364
|
init_draw();
|
|
154336
154365
|
init_motion();
|
|
154337
154366
|
init_texture();
|
|
@@ -154343,7 +154372,7 @@ var init_overlays = __esm({
|
|
|
154343
154372
|
}
|
|
154344
154373
|
});
|
|
154345
154374
|
|
|
154346
|
-
//
|
|
154375
|
+
// templates/src/shared/pointer.ts
|
|
154347
154376
|
var pointer_exports = {};
|
|
154348
154377
|
__export(pointer_exports, {
|
|
154349
154378
|
clicks: () => clicks,
|
|
@@ -154381,13 +154410,13 @@ function clicks(k, p2, times) {
|
|
|
154381
154410
|
}
|
|
154382
154411
|
var ARROW;
|
|
154383
154412
|
var init_pointer = __esm({
|
|
154384
|
-
"
|
|
154413
|
+
"templates/src/shared/pointer.ts"() {
|
|
154385
154414
|
init_author();
|
|
154386
154415
|
ARROW = [[0, 0], [0, 19.2], [5.2, 14.6], [8.4, 22], [11.6, 20.6], [8.4, 13.4], [15.2, 13.4]];
|
|
154387
154416
|
}
|
|
154388
154417
|
});
|
|
154389
154418
|
|
|
154390
|
-
//
|
|
154419
|
+
// templates/src/shared/window.ts
|
|
154391
154420
|
var window_exports = {};
|
|
154392
154421
|
__export(window_exports, {
|
|
154393
154422
|
chrome: () => chrome,
|
|
@@ -154417,11 +154446,11 @@ function chrome(k, parent, o) {
|
|
|
154417
154446
|
return bar;
|
|
154418
154447
|
}
|
|
154419
154448
|
var init_window = __esm({
|
|
154420
|
-
"
|
|
154449
|
+
"templates/src/shared/window.ts"() {
|
|
154421
154450
|
}
|
|
154422
154451
|
});
|
|
154423
154452
|
|
|
154424
|
-
//
|
|
154453
|
+
// templates/src/app/shared.ts
|
|
154425
154454
|
function statusBar(k, parent, o) {
|
|
154426
154455
|
const bar = k.stack(parent, { direction: "HORIZONTAL", justify: "SPACE_BETWEEN", align: "CENTER", padding: { top: 8, right: 8, bottom: 8, left: 12 }, name: "Status bar" });
|
|
154427
154456
|
k.text(bar, "9:41", { style: o.style, color: o.ink ?? "text", autoWidth: true, name: "Time" });
|
|
@@ -154433,12 +154462,12 @@ function statusBar(k, parent, o) {
|
|
|
154433
154462
|
return bar;
|
|
154434
154463
|
}
|
|
154435
154464
|
var init_shared = __esm({
|
|
154436
|
-
"
|
|
154465
|
+
"templates/src/app/shared.ts"() {
|
|
154437
154466
|
"use strict";
|
|
154438
154467
|
}
|
|
154439
154468
|
});
|
|
154440
154469
|
|
|
154441
|
-
//
|
|
154470
|
+
// templates/src/motion3d/ui.ts
|
|
154442
154471
|
function progress(k, parent, width, share, fill = "primary") {
|
|
154443
154472
|
const bar = k.stack(parent, { direction: "HORIZONTAL", width, height: 8, radius: 4, fill: "track", clip: true, name: "Progress" });
|
|
154444
154473
|
k.rect(bar, Math.round(width * share), 8, fill, { radius: 4, name: "Filled" });
|
|
@@ -154762,7 +154791,7 @@ function sidebar(k, id, width, rest) {
|
|
|
154762
154791
|
}
|
|
154763
154792
|
var APP_COLORS, PHONE_SCREEN, TABLET_SCREEN, DESKTOP_SCREEN, TRANSACTIONS, WEEK, STYLES, st, HOME_PARTS;
|
|
154764
154793
|
var init_ui = __esm({
|
|
154765
|
-
"
|
|
154794
|
+
"templates/src/motion3d/ui.ts"() {
|
|
154766
154795
|
"use strict";
|
|
154767
154796
|
init_shared();
|
|
154768
154797
|
APP_COLORS = {
|
|
@@ -154806,7 +154835,7 @@ var init_ui = __esm({
|
|
|
154806
154835
|
}
|
|
154807
154836
|
});
|
|
154808
154837
|
|
|
154809
|
-
//
|
|
154838
|
+
// templates/src/motion3d/devices.ts
|
|
154810
154839
|
function devices(k, names, screens = {}) {
|
|
154811
154840
|
for (const name of names) {
|
|
154812
154841
|
if (name === "Phone") {
|
|
@@ -154909,7 +154938,7 @@ function devices(k, names, screens = {}) {
|
|
|
154909
154938
|
}
|
|
154910
154939
|
var DEVICE_COLORS, BEZEL, PHONE, TABLET, LID_PAD, LID, BASE, deviceShadow;
|
|
154911
154940
|
var init_devices = __esm({
|
|
154912
|
-
"
|
|
154941
|
+
"templates/src/motion3d/devices.ts"() {
|
|
154913
154942
|
"use strict";
|
|
154914
154943
|
init_ui();
|
|
154915
154944
|
DEVICE_COLORS = { device: "#101317", deviceEdge: "#353B44", shell: "#C9CED6", shellShade: "#AEB4BD", keys: "#2B3037" };
|
|
@@ -154923,7 +154952,7 @@ var init_devices = __esm({
|
|
|
154923
154952
|
}
|
|
154924
154953
|
});
|
|
154925
154954
|
|
|
154926
|
-
//
|
|
154955
|
+
// templates/src/shared/devices.ts
|
|
154927
154956
|
var devices_exports = {};
|
|
154928
154957
|
__export(devices_exports, {
|
|
154929
154958
|
appScreen: () => appScreen,
|
|
@@ -155112,7 +155141,7 @@ function flatPhone(k, parent, o) {
|
|
|
155112
155141
|
}
|
|
155113
155142
|
var uiRoles, UI, ui, GLYPHS, COL;
|
|
155114
155143
|
var init_devices2 = __esm({
|
|
155115
|
-
"
|
|
155144
|
+
"templates/src/shared/devices.ts"() {
|
|
155116
155145
|
init_shared();
|
|
155117
155146
|
init_geometry();
|
|
155118
155147
|
init_ui();
|
|
@@ -155145,7 +155174,7 @@ var init_devices2 = __esm({
|
|
|
155145
155174
|
}
|
|
155146
155175
|
});
|
|
155147
155176
|
|
|
155148
|
-
//
|
|
155177
|
+
// templates/src/shared/type.ts
|
|
155149
155178
|
var type_exports = {};
|
|
155150
155179
|
__export(type_exports, {
|
|
155151
155180
|
MONO: () => MONO,
|
|
@@ -155153,22 +155182,22 @@ __export(type_exports, {
|
|
|
155153
155182
|
});
|
|
155154
155183
|
var SERIF, MONO;
|
|
155155
155184
|
var init_type = __esm({
|
|
155156
|
-
"
|
|
155185
|
+
"templates/src/shared/type.ts"() {
|
|
155157
155186
|
SERIF = { fontFamily: "Source Serif 4" };
|
|
155158
155187
|
MONO = { fontFamily: "JetBrains Mono" };
|
|
155159
155188
|
}
|
|
155160
155189
|
});
|
|
155161
155190
|
|
|
155162
|
-
//
|
|
155191
|
+
// lib/io/codecs/wav.ts
|
|
155163
155192
|
var init_wav = __esm({
|
|
155164
|
-
"
|
|
155193
|
+
"lib/io/codecs/wav.ts"() {
|
|
155165
155194
|
}
|
|
155166
155195
|
});
|
|
155167
155196
|
|
|
155168
|
-
//
|
|
155197
|
+
// templates/src/audio/media.ts
|
|
155169
155198
|
var BEAT_LOOP_HASH, MUSIC_HASH;
|
|
155170
155199
|
var init_media = __esm({
|
|
155171
|
-
"
|
|
155200
|
+
"templates/src/audio/media.ts"() {
|
|
155172
155201
|
"use strict";
|
|
155173
155202
|
init_wav();
|
|
155174
155203
|
BEAT_LOOP_HASH = "cf2451754681fba543bf8555b67096a7";
|
|
@@ -155197,7 +155226,7 @@ var init_media = __esm({
|
|
|
155197
155226
|
}
|
|
155198
155227
|
});
|
|
155199
155228
|
|
|
155200
|
-
//
|
|
155229
|
+
// templates/src/audio/beat-loop.ts
|
|
155201
155230
|
var beat_loop_exports = {};
|
|
155202
155231
|
__export(beat_loop_exports, {
|
|
155203
155232
|
BEAT_LOOP_BEATS: () => BEAT_LOOP_BEATS,
|
|
@@ -155254,7 +155283,7 @@ function renderBeatLoop() {
|
|
|
155254
155283
|
}
|
|
155255
155284
|
var BEAT_LOOP_RATE, BEAT_LOOP_BPM, BEAT_LOOP_BEATS, BEAT_MS, BEAT_LOOP_MS, BEAT_LOOP_LICENSE, TAU3, CHORDS;
|
|
155256
155285
|
var init_beat_loop = __esm({
|
|
155257
|
-
"
|
|
155286
|
+
"templates/src/audio/beat-loop.ts"() {
|
|
155258
155287
|
"use strict";
|
|
155259
155288
|
BEAT_LOOP_RATE = 48e3;
|
|
155260
155289
|
BEAT_LOOP_BPM = 120;
|
|
@@ -155271,7 +155300,7 @@ var init_beat_loop = __esm({
|
|
|
155271
155300
|
}
|
|
155272
155301
|
});
|
|
155273
155302
|
|
|
155274
|
-
//
|
|
155303
|
+
// templates/src/audio/music-synth.ts
|
|
155275
155304
|
function noiseGen(seed) {
|
|
155276
155305
|
let s = seed >>> 0;
|
|
155277
155306
|
return () => {
|
|
@@ -155584,7 +155613,7 @@ function pump(n, beatS, depth = 0.7, recover = 0.18) {
|
|
|
155584
155613
|
}
|
|
155585
155614
|
var MUSIC_RATE, TAU4, R, midi, mul, Bus;
|
|
155586
155615
|
var init_music_synth = __esm({
|
|
155587
|
-
"
|
|
155616
|
+
"templates/src/audio/music-synth.ts"() {
|
|
155588
155617
|
"use strict";
|
|
155589
155618
|
MUSIC_RATE = 32e3;
|
|
155590
155619
|
TAU4 = Math.PI * 2;
|
|
@@ -155612,7 +155641,7 @@ var init_music_synth = __esm({
|
|
|
155612
155641
|
}
|
|
155613
155642
|
});
|
|
155614
155643
|
|
|
155615
|
-
//
|
|
155644
|
+
// templates/src/audio/studio/dsp.ts
|
|
155616
155645
|
function rand(seed) {
|
|
155617
155646
|
let a = seed * 2654435761 >>> 0;
|
|
155618
155647
|
return () => {
|
|
@@ -155982,7 +156011,7 @@ function reverse2(x) {
|
|
|
155982
156011
|
}
|
|
155983
156012
|
var SR, hz2, cents, samples, clamp, stereo, harmonicsUnder, HALF, saturate;
|
|
155984
156013
|
var init_dsp = __esm({
|
|
155985
|
-
"
|
|
156014
|
+
"templates/src/audio/studio/dsp.ts"() {
|
|
155986
156015
|
"use strict";
|
|
155987
156016
|
init_music_synth();
|
|
155988
156017
|
SR = MUSIC_RATE;
|
|
@@ -156012,7 +156041,7 @@ var init_dsp = __esm({
|
|
|
156012
156041
|
}
|
|
156013
156042
|
});
|
|
156014
156043
|
|
|
156015
|
-
//
|
|
156044
|
+
// templates/src/audio/studio/deck.ts
|
|
156016
156045
|
function adsrAmp(peak, slev, a, d, r, dur) {
|
|
156017
156046
|
const gate = dur > 0 ? dur : 1e-3;
|
|
156018
156047
|
const tDecayEnd = a + d;
|
|
@@ -156575,7 +156604,7 @@ function nes(midi2, v, dur, seed, p2 = {}) {
|
|
|
156575
156604
|
}
|
|
156576
156605
|
var clamp012, SILENT, Auto, osc, detuned, tubeCurve, guitarCurve, driveCurve, ARCO, VOWELS, MATRIX, NES_TRI, LFSR, NES_NOISE_PERIODS;
|
|
156577
156606
|
var init_deck = __esm({
|
|
156578
|
-
"
|
|
156607
|
+
"templates/src/audio/studio/deck.ts"() {
|
|
156579
156608
|
"use strict";
|
|
156580
156609
|
init_music_synth();
|
|
156581
156610
|
init_dsp();
|
|
@@ -156703,7 +156732,7 @@ var init_deck = __esm({
|
|
|
156703
156732
|
}
|
|
156704
156733
|
});
|
|
156705
156734
|
|
|
156706
|
-
//
|
|
156735
|
+
// templates/src/audio/studio/fx.ts
|
|
156707
156736
|
function allpass(x, len, g) {
|
|
156708
156737
|
const buf = new Float64Array(len);
|
|
156709
156738
|
let k = 0;
|
|
@@ -156936,7 +156965,7 @@ function monoBelow(x, freq) {
|
|
|
156936
156965
|
}
|
|
156937
156966
|
var LINES, EARLY_L, EARLY_R, DIFFUSE_L, DIFFUSE_R;
|
|
156938
156967
|
var init_fx = __esm({
|
|
156939
|
-
"
|
|
156968
|
+
"templates/src/audio/studio/fx.ts"() {
|
|
156940
156969
|
"use strict";
|
|
156941
156970
|
init_music_synth();
|
|
156942
156971
|
init_dsp();
|
|
@@ -156948,7 +156977,7 @@ var init_fx = __esm({
|
|
|
156948
156977
|
}
|
|
156949
156978
|
});
|
|
156950
156979
|
|
|
156951
|
-
//
|
|
156980
|
+
// lib/audio/presentation/loudness.ts
|
|
156952
156981
|
function kWeighting(rate) {
|
|
156953
156982
|
const G = 3.999843853973347;
|
|
156954
156983
|
let f0 = 1681.974450955533, Q = 0.7071752369554196;
|
|
@@ -157120,7 +157149,7 @@ function normalize(channels, rate, o) {
|
|
|
157120
157149
|
}
|
|
157121
157150
|
var dbToGain, gainToDb, LUFS, OVERSAMPLE, TAPS, PHASES, TAP_GAIN, measure;
|
|
157122
157151
|
var init_loudness = __esm({
|
|
157123
|
-
"
|
|
157152
|
+
"lib/audio/presentation/loudness.ts"() {
|
|
157124
157153
|
dbToGain = (db) => 10 ** (db / 20);
|
|
157125
157154
|
gainToDb = (g) => g > 0 ? 20 * Math.log10(g) : -Infinity;
|
|
157126
157155
|
LUFS = (power) => power > 0 ? -0.691 + 10 * Math.log10(power) : -Infinity;
|
|
@@ -157150,10 +157179,10 @@ var init_loudness = __esm({
|
|
|
157150
157179
|
}
|
|
157151
157180
|
});
|
|
157152
157181
|
|
|
157153
|
-
//
|
|
157182
|
+
// templates/src/audio/studio/mix.ts
|
|
157154
157183
|
var Track, studioLog, rmsDb, peakDb, Session;
|
|
157155
157184
|
var init_mix = __esm({
|
|
157156
|
-
"
|
|
157185
|
+
"templates/src/audio/studio/mix.ts"() {
|
|
157157
157186
|
"use strict";
|
|
157158
157187
|
init_loudness();
|
|
157159
157188
|
init_dsp();
|
|
@@ -157315,7 +157344,7 @@ var init_mix = __esm({
|
|
|
157315
157344
|
}
|
|
157316
157345
|
});
|
|
157317
157346
|
|
|
157318
|
-
//
|
|
157347
|
+
// templates/src/audio/studio/voices.ts
|
|
157319
157348
|
function ensemble(players, seed, make, o = {}) {
|
|
157320
157349
|
const { spread = 0.6, pan = 0, late = 0.012, detune = 7 } = o;
|
|
157321
157350
|
const r = rand(seed);
|
|
@@ -157600,7 +157629,7 @@ function creak(seconds, seed) {
|
|
|
157600
157629
|
}
|
|
157601
157630
|
var RANKS, HORNS, GUITAR_BODY, BASS_BODY, click, tom, clap3, shaker;
|
|
157602
157631
|
var init_voices = __esm({
|
|
157603
|
-
"
|
|
157632
|
+
"templates/src/audio/studio/voices.ts"() {
|
|
157604
157633
|
"use strict";
|
|
157605
157634
|
init_music_synth();
|
|
157606
157635
|
init_dsp();
|
|
@@ -157632,7 +157661,7 @@ var init_voices = __esm({
|
|
|
157632
157661
|
}
|
|
157633
157662
|
});
|
|
157634
157663
|
|
|
157635
|
-
//
|
|
157664
|
+
// templates/src/audio/music-worlds.ts
|
|
157636
157665
|
function strings(freq, v, dur, seed, o = {}) {
|
|
157637
157666
|
return ensemble(o.players ?? 4, seed, (sd, det) => mul2(arco(freq * cents(det), v, dur, sd, { voice: o.voice, pressure: o.pressure ?? 0.45, bow: o.bow ?? 0.5, vibrato: o.vibrato ?? 0.4, rosin: 0.22, body: 0.6, rate: 5 + 1.3 * rand(sd)() }), 0.3), { spread: o.spread ?? 0.7, pan: o.pan ?? 0, late: 0.022, detune: 6 });
|
|
157638
157667
|
}
|
|
@@ -158508,7 +158537,7 @@ function calm() {
|
|
|
158508
158537
|
}
|
|
158509
158538
|
var SW, crashes, swell, both, WORLD_TRACKS;
|
|
158510
158539
|
var init_music_worlds = __esm({
|
|
158511
|
-
"
|
|
158540
|
+
"templates/src/audio/music-worlds.ts"() {
|
|
158512
158541
|
"use strict";
|
|
158513
158542
|
init_deck();
|
|
158514
158543
|
init_dsp();
|
|
@@ -158539,7 +158568,7 @@ var init_music_worlds = __esm({
|
|
|
158539
158568
|
}
|
|
158540
158569
|
});
|
|
158541
158570
|
|
|
158542
|
-
//
|
|
158571
|
+
// templates/src/audio/music.ts
|
|
158543
158572
|
var music_exports = {};
|
|
158544
158573
|
__export(music_exports, {
|
|
158545
158574
|
MUSIC_LICENSE: () => MUSIC_LICENSE,
|
|
@@ -158811,7 +158840,7 @@ function renderTrack(id) {
|
|
|
158811
158840
|
}
|
|
158812
158841
|
var MUSIC_LICENSE, chord, MAJ7, MIN7, DOM7, MIN, MAJ, VOWELS2, TRACKS, TRACK_IDS;
|
|
158813
158842
|
var init_music = __esm({
|
|
158814
|
-
"
|
|
158843
|
+
"templates/src/audio/music.ts"() {
|
|
158815
158844
|
"use strict";
|
|
158816
158845
|
init_music_synth();
|
|
158817
158846
|
init_music_synth();
|
|
@@ -158838,7 +158867,7 @@ var init_music = __esm({
|
|
|
158838
158867
|
}
|
|
158839
158868
|
});
|
|
158840
158869
|
|
|
158841
|
-
//
|
|
158870
|
+
// templates/src/shared/beat.ts
|
|
158842
158871
|
var beat_exports = {};
|
|
158843
158872
|
__export(beat_exports, {
|
|
158844
158873
|
bed: () => bed,
|
|
@@ -158877,14 +158906,14 @@ function bed(track, beats) {
|
|
|
158877
158906
|
return { beat: one.beat, duration, audio };
|
|
158878
158907
|
}
|
|
158879
158908
|
var init_beat = __esm({
|
|
158880
|
-
"
|
|
158909
|
+
"templates/src/shared/beat.ts"() {
|
|
158881
158910
|
init_media();
|
|
158882
158911
|
init_beat_loop();
|
|
158883
158912
|
init_music();
|
|
158884
158913
|
}
|
|
158885
158914
|
});
|
|
158886
158915
|
|
|
158887
|
-
//
|
|
158916
|
+
// templates/src/web/shared.ts
|
|
158888
158917
|
var shared_exports = {};
|
|
158889
158918
|
__export(shared_exports, {
|
|
158890
158919
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
@@ -158963,7 +158992,7 @@ function nav(k, sheet, o) {
|
|
|
158963
158992
|
}
|
|
158964
158993
|
var BREAKPOINTS;
|
|
158965
158994
|
var init_shared2 = __esm({
|
|
158966
|
-
"
|
|
158995
|
+
"templates/src/web/shared.ts"() {
|
|
158967
158996
|
BREAKPOINTS = {
|
|
158968
158997
|
desktop: { preset: "web-desktop", side: 120, viewport: 1024 },
|
|
158969
158998
|
laptop: { preset: "web-laptop", side: 80, viewport: 800 },
|
|
@@ -158973,7 +159002,7 @@ var init_shared2 = __esm({
|
|
|
158973
159002
|
}
|
|
158974
159003
|
});
|
|
158975
159004
|
|
|
158976
|
-
//
|
|
159005
|
+
// lib/templates/safe-areas.ts
|
|
158977
159006
|
function safeRect(area2, width, height) {
|
|
158978
159007
|
const sx = width / area2.width, sy = height / area2.height;
|
|
158979
159008
|
const { top, right, bottom, left } = area2.insets;
|
|
@@ -159006,7 +159035,7 @@ function safePadding(presetId, width, height, atLeast, symmetric = true) {
|
|
|
159006
159035
|
}
|
|
159007
159036
|
var SAFE_AREAS, safeArea, PRESET_SAFE_AREAS, contains, overlaps;
|
|
159008
159037
|
var init_safe_areas = __esm({
|
|
159009
|
-
"
|
|
159038
|
+
"lib/templates/safe-areas.ts"() {
|
|
159010
159039
|
SAFE_AREAS = [
|
|
159011
159040
|
{ id: "instagram-story", label: "Instagram story", width: 1080, height: 1920, insets: { top: 250, right: 64, bottom: 250, left: 64 } },
|
|
159012
159041
|
{ id: "instagram-reel", label: "Instagram reel", width: 1080, height: 1920, insets: { top: 220, right: 120, bottom: 420, left: 64 } },
|
|
@@ -159038,7 +159067,7 @@ var init_safe_areas = __esm({
|
|
|
159038
159067
|
}
|
|
159039
159068
|
});
|
|
159040
159069
|
|
|
159041
|
-
//
|
|
159070
|
+
// templates/src/social/shared.ts
|
|
159042
159071
|
var shared_exports2 = {};
|
|
159043
159072
|
__export(shared_exports2, {
|
|
159044
159073
|
AD_LOOP_MS: () => AD_LOOP_MS,
|
|
@@ -159112,7 +159141,7 @@ function resizePhoto(k, groupId, width, height) {
|
|
|
159112
159141
|
}
|
|
159113
159142
|
var even, verticalPadding, AD_LOOP_MS;
|
|
159114
159143
|
var init_shared3 = __esm({
|
|
159115
|
-
"
|
|
159144
|
+
"templates/src/social/shared.ts"() {
|
|
159116
159145
|
init_safe_areas();
|
|
159117
159146
|
even = (n) => ({ top: n, right: n, bottom: n, left: n });
|
|
159118
159147
|
verticalPadding = (atLeast = 96) => safePadding("ig-story", 1080, 1920, even(atLeast));
|
|
@@ -159120,7 +159149,7 @@ var init_shared3 = __esm({
|
|
|
159120
159149
|
}
|
|
159121
159150
|
});
|
|
159122
159151
|
|
|
159123
|
-
//
|
|
159152
|
+
// templates/src/saas/video-shared.ts
|
|
159124
159153
|
var video_shared_exports = {};
|
|
159125
159154
|
__export(video_shared_exports, {
|
|
159126
159155
|
COLUMN: () => COLUMN,
|
|
@@ -159229,7 +159258,7 @@ function camera(k, id, width, height, shots) {
|
|
|
159229
159258
|
}
|
|
159230
159259
|
var COLUMN, reelCuts, dotPaths2, redrawDots, linePaths, redrawLines;
|
|
159231
159260
|
var init_video_shared = __esm({
|
|
159232
|
-
"
|
|
159261
|
+
"templates/src/saas/video-shared.ts"() {
|
|
159233
159262
|
init_author();
|
|
159234
159263
|
init_shared3();
|
|
159235
159264
|
init_draw();
|
|
@@ -159256,7 +159285,7 @@ var init_video_shared = __esm({
|
|
|
159256
159285
|
}
|
|
159257
159286
|
});
|
|
159258
159287
|
|
|
159259
|
-
//
|
|
159288
|
+
// templates/src/saas/web-shared.ts
|
|
159260
159289
|
var web_shared_exports = {};
|
|
159261
159290
|
__export(web_shared_exports, {
|
|
159262
159291
|
CONTENT: () => CONTENT,
|
|
@@ -159371,7 +159400,7 @@ function columns(k, root2, item, cols, gap, inside) {
|
|
|
159371
159400
|
}
|
|
159372
159401
|
var soft, hard, rule, CONTENT;
|
|
159373
159402
|
var init_web_shared = __esm({
|
|
159374
|
-
"
|
|
159403
|
+
"templates/src/saas/web-shared.ts"() {
|
|
159375
159404
|
init_measure();
|
|
159376
159405
|
init_author();
|
|
159377
159406
|
init_shared2();
|
|
@@ -159384,7 +159413,7 @@ var init_web_shared = __esm({
|
|
|
159384
159413
|
}
|
|
159385
159414
|
});
|
|
159386
159415
|
|
|
159387
|
-
//
|
|
159416
|
+
// templates/src/effects/shared.ts
|
|
159388
159417
|
var shared_exports3 = {};
|
|
159389
159418
|
__export(shared_exports3, {
|
|
159390
159419
|
BACKGROUND: () => BACKGROUND,
|
|
@@ -159408,7 +159437,7 @@ function refill(k, sheetId, names = [BACKGROUND]) {
|
|
|
159408
159437
|
}
|
|
159409
159438
|
var BACKGROUND, refilled;
|
|
159410
159439
|
var init_shared4 = __esm({
|
|
159411
|
-
"
|
|
159440
|
+
"templates/src/effects/shared.ts"() {
|
|
159412
159441
|
BACKGROUND = "Background";
|
|
159413
159442
|
refilled = (specs, names) => specs.map((s) => ({ ...s, adjust: (k, id) => {
|
|
159414
159443
|
s.adjust?.(k, id);
|
|
@@ -159417,7 +159446,7 @@ var init_shared4 = __esm({
|
|
|
159417
159446
|
}
|
|
159418
159447
|
});
|
|
159419
159448
|
|
|
159420
|
-
//
|
|
159449
|
+
// lib/agent/design-script/kit-modules.ts
|
|
159421
159450
|
var kit_modules_exports = {};
|
|
159422
159451
|
__export(kit_modules_exports, {
|
|
159423
159452
|
HELPER_NAMES: () => HELPER_NAMES,
|
|
@@ -159463,42 +159492,42 @@ async function loadKitModules() {
|
|
|
159463
159492
|
};
|
|
159464
159493
|
}
|
|
159465
159494
|
var init_kit_modules = __esm({
|
|
159466
|
-
"
|
|
159495
|
+
"lib/agent/design-script/kit-modules.ts"() {
|
|
159467
159496
|
init_helper_names();
|
|
159468
159497
|
}
|
|
159469
159498
|
});
|
|
159470
159499
|
|
|
159471
|
-
//
|
|
159500
|
+
// lib/agent/design-script/build.ts
|
|
159472
159501
|
init_scene_graph();
|
|
159473
159502
|
init_libraries();
|
|
159474
159503
|
init_print_pages();
|
|
159475
159504
|
|
|
159476
|
-
//
|
|
159505
|
+
// lib/templates/apply.ts
|
|
159477
159506
|
init_scene_graph();
|
|
159478
159507
|
init_libraries();
|
|
159479
159508
|
init_page_presets();
|
|
159480
159509
|
init_print_pages();
|
|
159481
159510
|
|
|
159482
|
-
//
|
|
159511
|
+
// lib/templates/capture.ts
|
|
159483
159512
|
init_print_pages();
|
|
159484
159513
|
init_page_presets();
|
|
159485
159514
|
init_libraries();
|
|
159486
159515
|
|
|
159487
|
-
//
|
|
159516
|
+
// lib/brand/apply.ts
|
|
159488
159517
|
init_dist_node();
|
|
159489
159518
|
|
|
159490
|
-
//
|
|
159519
|
+
// lib/document/page-tokens.ts
|
|
159491
159520
|
init_text_tokens();
|
|
159492
159521
|
init_text_tokens();
|
|
159493
159522
|
init_print_pages();
|
|
159494
159523
|
|
|
159495
|
-
//
|
|
159524
|
+
// lib/brand/apply.ts
|
|
159496
159525
|
init_color();
|
|
159497
159526
|
|
|
159498
|
-
//
|
|
159527
|
+
// lib/brand/types.ts
|
|
159499
159528
|
var BRAND_COLOR_ROLES = ["primary", "secondary", "accent", "background", "text"];
|
|
159500
159529
|
|
|
159501
|
-
//
|
|
159530
|
+
// lib/brand/apply.ts
|
|
159502
159531
|
var BRAND_TOKEN2 = /\{\{\s*brand\.([A-Za-z0-9_-]+)\s*\}\}/g;
|
|
159503
159532
|
var LOGO_NAME = /^\{\{\s*brand\.logo\s*\}\}$/;
|
|
159504
159533
|
var brandName = (v) => v.name.startsWith("brand/") ? v.name.slice(6) : null;
|
|
@@ -159605,7 +159634,7 @@ function createBrandKit(props = {}) {
|
|
|
159605
159634
|
};
|
|
159606
159635
|
}
|
|
159607
159636
|
|
|
159608
|
-
//
|
|
159637
|
+
// lib/agent/design-script/recorder.ts
|
|
159609
159638
|
var RECORD_LIMITS = { maxOps: 6e4, maxDepth: 40, timeoutMs: 4e3, maxSourceChars: 12e4 };
|
|
159610
159639
|
var RECORDER_SOURCE = String.raw`
|
|
159611
159640
|
function record(source, namespaces, globals, limits) {
|
|
@@ -159696,11 +159725,11 @@ function record(source, namespaces, globals, limits) {
|
|
|
159696
159725
|
}
|
|
159697
159726
|
`;
|
|
159698
159727
|
|
|
159699
|
-
//
|
|
159728
|
+
// lib/agent/design-script/build.ts
|
|
159700
159729
|
init_helper_names();
|
|
159701
159730
|
init_kit_modules();
|
|
159702
159731
|
|
|
159703
|
-
//
|
|
159732
|
+
// lib/agent/design-script/replay.ts
|
|
159704
159733
|
var BLOCKED = /* @__PURE__ */ new Set(["constructor", "prototype", "__proto__", "caller", "callee", "arguments", "call", "apply", "bind"]);
|
|
159705
159734
|
function step(obj, prop) {
|
|
159706
159735
|
if (BLOCKED.has(prop) || prop.startsWith("_")) throw new Error(`"${prop}" cannot be used in a design script.`);
|
|
@@ -159795,7 +159824,7 @@ async function replay(rec, namespaces2) {
|
|
|
159795
159824
|
}
|
|
159796
159825
|
}
|
|
159797
159826
|
|
|
159798
|
-
//
|
|
159827
|
+
// lib/agent/design-script/build.ts
|
|
159799
159828
|
var DESIGN_NAMESPACES = ["k", "ease", "hex", "preset", ...HELPER_NAMES];
|
|
159800
159829
|
async function namespaces(name, size2) {
|
|
159801
159830
|
const m = await loadKitModules();
|
|
@@ -159831,11 +159860,11 @@ async function buildDesign(source, size2, name, record) {
|
|
|
159831
159860
|
return { doc, error: rec.error ?? replayed.error ?? finishError, calls: rec.ops.length };
|
|
159832
159861
|
}
|
|
159833
159862
|
|
|
159834
|
-
//
|
|
159863
|
+
// lib/templates/quality.ts
|
|
159835
159864
|
init_auto_layout();
|
|
159836
159865
|
init_scene_graph();
|
|
159837
159866
|
|
|
159838
|
-
//
|
|
159867
|
+
// lib/io/export-ir/children.ts
|
|
159839
159868
|
init_scene_graph();
|
|
159840
159869
|
function childrenOf(node, nodes) {
|
|
159841
159870
|
if (node.type === "INSTANCE") {
|
|
@@ -159857,7 +159886,7 @@ function childrenOf(node, nodes) {
|
|
|
159857
159886
|
return [...inherited, ...own];
|
|
159858
159887
|
}
|
|
159859
159888
|
|
|
159860
|
-
//
|
|
159889
|
+
// lib/templates/quality.ts
|
|
159861
159890
|
init_scene3d();
|
|
159862
159891
|
init_text_styles();
|
|
159863
159892
|
init_variables();
|
|
@@ -159975,18 +160004,18 @@ function paintedTexts(scope, rootIds) {
|
|
|
159975
160004
|
return out;
|
|
159976
160005
|
}
|
|
159977
160006
|
|
|
159978
|
-
//
|
|
160007
|
+
// lib/agent/design-script/check.ts
|
|
159979
160008
|
init_safe_areas();
|
|
159980
160009
|
init_page_presets();
|
|
159981
160010
|
|
|
159982
|
-
//
|
|
160011
|
+
// lib/brand/review-kits.ts
|
|
159983
160012
|
init_color();
|
|
159984
160013
|
var palette = (roles) => Object.entries(roles).map(([name, hex5]) => ({ name, color: hexToColor(hex5) }));
|
|
159985
160014
|
var LIGHT_REVIEW_KIT = createBrandKit({ name: "Harbour", colors: palette({ primary: "#1D3A8A", secondary: "#0F172A", accent: "#E4572E", background: "#FFFFFF", text: "#111827" }) });
|
|
159986
160015
|
var DARK_REVIEW_KIT = createBrandKit({ name: "Night shift", colors: palette({ primary: "#0B1220", secondary: "#1F2937", accent: "#F5B82E", background: "#0E1116", text: "#F3F4F6" }) });
|
|
159987
160016
|
var REVIEW_KITS = { light: LIGHT_REVIEW_KIT, dark: DARK_REVIEW_KIT };
|
|
159988
160017
|
|
|
159989
|
-
//
|
|
160018
|
+
// lib/motion/pose.ts
|
|
159990
160019
|
init_scene_graph();
|
|
159991
160020
|
init_node_delta();
|
|
159992
160021
|
init_composition();
|
|
@@ -159995,7 +160024,7 @@ init_sample();
|
|
|
159995
160024
|
init_text_animators();
|
|
159996
160025
|
init_time();
|
|
159997
160026
|
|
|
159998
|
-
//
|
|
160027
|
+
// lib/motion/pose-layout.ts
|
|
159999
160028
|
init_auto_layout();
|
|
160000
160029
|
init_instance_layout();
|
|
160001
160030
|
init_text_animators();
|
|
@@ -160063,10 +160092,10 @@ function reflowPose(base, patches) {
|
|
|
160063
160092
|
return out ?? patches;
|
|
160064
160093
|
}
|
|
160065
160094
|
|
|
160066
|
-
//
|
|
160095
|
+
// lib/motion/pose.ts
|
|
160067
160096
|
init_video_clip();
|
|
160068
160097
|
|
|
160069
|
-
//
|
|
160098
|
+
// lib/motion/sound.ts
|
|
160070
160099
|
init_audio_clips();
|
|
160071
160100
|
init_composition();
|
|
160072
160101
|
init_instances2();
|
|
@@ -160183,7 +160212,7 @@ function compositionSound(comp, nodes, lengths = NO_LENGTHS) {
|
|
|
160183
160212
|
return sound;
|
|
160184
160213
|
}
|
|
160185
160214
|
|
|
160186
|
-
//
|
|
160215
|
+
// lib/motion/pose.ts
|
|
160187
160216
|
init_audio_signals();
|
|
160188
160217
|
var targetFrameId = (t) => t?.kind === "frame" ? t.frameId : null;
|
|
160189
160218
|
var targetCompositionId = (t) => t?.kind === "composition" ? t.compositionId : null;
|
|
@@ -160297,7 +160326,7 @@ function compositionPose(base, target, time, clock, runtime, compositions, audio
|
|
|
160297
160326
|
};
|
|
160298
160327
|
}
|
|
160299
160328
|
|
|
160300
|
-
//
|
|
160329
|
+
// lib/agent/design-script/check.ts
|
|
160301
160330
|
init_text_animators();
|
|
160302
160331
|
var MAX_ISSUES = 24;
|
|
160303
160332
|
var MAX_FRAME_PX = 8192;
|
|
@@ -160362,7 +160391,7 @@ function seamJump(doc, frame) {
|
|
|
160362
160391
|
if (Object.values(doc.compositions ?? {}).some((c) => c.clips.some((clip) => clip.frameId === frame.id))) return null;
|
|
160363
160392
|
const end = tl.workArea ? tl.workArea[1] : timelineDuration(doc.nodes, frame.id);
|
|
160364
160393
|
const start = tl.workArea ? tl.workArea[0] : 0;
|
|
160365
|
-
const
|
|
160394
|
+
const shown2 = (ms) => {
|
|
160366
160395
|
const posed2 = evaluatePose(doc.nodes, { kind: "frame", frameId: frame.id }, ms).nodes;
|
|
160367
160396
|
const out = /* @__PURE__ */ new Map();
|
|
160368
160397
|
const walk = (id, alpha, maskedIn = false) => {
|
|
@@ -160388,7 +160417,7 @@ function seamJump(doc, frame) {
|
|
|
160388
160417
|
walk(frame.id, 1);
|
|
160389
160418
|
return out;
|
|
160390
160419
|
};
|
|
160391
|
-
const a =
|
|
160420
|
+
const a = shown2(start), b = shown2(end);
|
|
160392
160421
|
for (const [id, words] of a) {
|
|
160393
160422
|
if (!b.has(id)) return { layer: doc.nodes[id].name, message: `The loop jumps where it restarts: "${doc.nodes[id].name}" is on screen at the start but gone at the end. Bring it back before the end, or loop its keys.` };
|
|
160394
160423
|
if (b.get(id) !== words) return { layer: doc.nodes[id].name, message: `The loop jumps where it restarts: "${doc.nodes[id].name}" says something else at the end than at the start. A ticking count wraps; it cannot count on for ever.` };
|
|
@@ -160456,7 +160485,7 @@ function emptyBand(doc, frame) {
|
|
|
160456
160485
|
return best > H * 0.18 ? `${Math.round(best / H * 100)}% of the frame's height (y ${at2}\u2013${at2 + best}) holds nothing but the ground. Fill it with something true to the idea, or recompose so the content uses the frame.` : null;
|
|
160457
160486
|
}
|
|
160458
160487
|
|
|
160459
|
-
//
|
|
160488
|
+
// lib/agent/design-script/run-node.ts
|
|
160460
160489
|
import vm from "node:vm";
|
|
160461
160490
|
function recordInNode(source, namespaces2, globals) {
|
|
160462
160491
|
const ctx = vm.createContext({ __src: source, __ns: [...namespaces2], __g: JSON.parse(JSON.stringify(globals)), __lim: { ...RECORD_LIMITS } });
|
|
@@ -160468,7 +160497,7 @@ function recordInNode(source, namespaces2, globals) {
|
|
|
160468
160497
|
}
|
|
160469
160498
|
}
|
|
160470
160499
|
|
|
160471
|
-
//
|
|
160500
|
+
// lib/io/json-export.ts
|
|
160472
160501
|
init_media_store();
|
|
160473
160502
|
function exportToJSON(document2) {
|
|
160474
160503
|
const exportData = {
|
|
@@ -160493,7 +160522,7 @@ function importFromJSON(jsonString) {
|
|
|
160493
160522
|
}
|
|
160494
160523
|
}
|
|
160495
160524
|
|
|
160496
|
-
// src/index.ts
|
|
160525
|
+
// packages/kit/src/index.ts
|
|
160497
160526
|
init_kit();
|
|
160498
160527
|
init_author();
|
|
160499
160528
|
init_draw();
|