@nova-lab/core 1.2.0-dev.256 → 1.2.1-dev.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/2d.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { D as o, a as s, N as t, b as r, R as n, S as N, c as v, d as i, e as c, f as d, g as l, h as p, i as S, j as m, k as R, m as u, n as C, r as A, l as T, o as h, p as E, q as g, s as P, t as y, u as f, v as M } from "./NovaNode-CBZ-Ol-W.js";
2
- import { A as b, C as _, a as x, E as D, G as O, N as B, b as V, c as G, d as L, e as k, f as F, g as H, h as j, i as z, j as q, k as K, l as Y, m as U, n as W, o as w, p as J, q as Q, r as X, s as Z, t as $, u as aa, v as ea, w as oa, x as sa, y as ta, z as ra, B as na, D as Na, F as va, H as ia, I as ca, J as da, J as la, K as pa, L as Sa, M as ma, O as Ra, P as ua, Q as Ca, R as Aa, S as Ta, T as ha, U as Ea, V as ga, W as Pa, X as ya, Y as fa, Z as Ma, _ as Ia, $ as ba, a0 as _a, a1 as xa, a2 as Da, a3 as Oa, a4 as Ba, a5 as Va, a6 as Ga, a7 as La, a8 as ka, a9 as Fa, aa as Ha, ab as ja, ac as za, ad as qa, ae as Ka, af as Ya, ag as Ua, ah as Wa, ai as wa, aj as Ja, ak as Qa, al as Xa, am as Za, an as $a, ao as ae, ap as ee, aq as oe, ar as se, as as te, at as re, au as ne, av as Ne, aw as ve, ax as ie, ay as ce, az as de, aA as le, aB as pe, aC as Se, aD as me, aE as Re, aF as ue, aG as Ce, aH as Ae, aI as Te, aJ as he, aK as Ee, aL as ge, aM as Pe, aN as ye, aO as fe, aP as Me, aQ as Ie, aR as be, aS as _e, aT as xe, aU as De, aV as Oe, aW as Be, aX as Ve, aY as Ge, aZ as Le, a_ as ke, a$ as Fe, b0 as He, b1 as je, b2 as ze, b3 as qe, b4 as Ke, b5 as Ye, b6 as Ue, b7 as We, b8 as we } from "./NovaTextSelectionService-CPRzGqvI.js";
2
+ import { A as b, C as _, a as x, E as D, G as O, N as B, b as V, c as G, d as L, e as k, f as F, g as H, h as j, i as z, j as q, k as K, l as Y, m as U, n as W, o as w, p as J, q as Q, r as X, s as Z, t as $, u as aa, v as ea, w as oa, x as sa, y as ta, z as ra, B as na, D as Na, F as va, H as ia, I as ca, J as da, J as la, K as pa, L as Sa, M as ma, O as Ra, P as ua, Q as Ca, R as Aa, S as Ta, T as ha, U as Ea, V as ga, W as Pa, X as ya, Y as fa, Z as Ma, _ as Ia, $ as ba, a0 as _a, a1 as xa, a2 as Da, a3 as Oa, a4 as Ba, a5 as Va, a6 as Ga, a7 as La, a8 as ka, a9 as Fa, aa as Ha, ab as ja, ac as za, ad as qa, ae as Ka, af as Ya, ag as Ua, ah as Wa, ai as wa, aj as Ja, ak as Qa, al as Xa, am as Za, an as $a, ao as ae, ap as ee, aq as oe, ar as se, as as te, at as re, au as ne, av as Ne, aw as ve, ax as ie, ay as ce, az as de, aA as le, aB as pe, aC as Se, aD as me, aE as Re, aF as ue, aG as Ce, aH as Ae, aI as Te, aJ as he, aK as Ee, aL as ge, aM as Pe, aN as ye, aO as fe, aP as Me, aQ as Ie, aR as be, aS as _e, aT as xe, aU as De, aV as Oe, aW as Be, aX as Ve, aY as Ge, aZ as Le, a_ as ke, a$ as Fe, b0 as He, b1 as je, b2 as ze, b3 as qe, b4 as Ke, b5 as Ye, b6 as Ue, b7 as We, b8 as we } from "./NovaTextSelectionService-Bdi0AqZ5.js";
3
3
  import { N as Qe, R as Xe, c as Ze, a as $e, b as ao, d as eo, e as oo, f as so, g as to, h as ro, i as no, j as No, k as vo, l as io, m as co, n as lo, o as po, r as So, p as mo, s as Ro, q as uo } from "./NovaRenderCommandWriter-CWQRa42y.js";
4
4
  import { b as Ao, a as To, c as ho, d as Eo, e as go, p as Po, f as yo, s as fo, t as Mo, u as Io } from "./nova-color-parser-BCN_rFRN.js";
5
5
  import { N as _o, a as xo, c as Do, b as Oo, d as Bo, e as Vo, f as Go, g as Lo, h as ko, i as Fo, j as Ho, k as jo, l as zo, m as qo, n as Ko, o as Yo, r as Uo } from "./NovaAssetRegistry-p2QlCwvT.js";
@@ -1,14 +1,14 @@
1
- import { q as Ii, R as G, w as rr, x as nn, y as nr, z as H, A as it, B as st, C as on, D as or, g as Ce, E as Oi, F as ar, h as Z, G as U, a as Ui, b as Gi, d as Wi, f as zi, c as an, H as cn, I as ai, J as Ht, K as hn, L as Le, M as ci, O as Hi, P as Vi, j as Xi, t as dn, u as ln, v as un, Q as ht, i as fn, k as pn, S as _n, n as vn, T as gn } from "./NovaRenderCommandWriter-CWQRa42y.js";
1
+ import { q as Ii, R as W, w as rr, x as nn, y as nr, z as V, A as it, B as st, C as on, D as or, g as Ce, E as Oi, F as ar, h as Z, G, a as Ui, b as Gi, d as Wi, f as zi, c as an, H as cn, I as ai, J as Ht, K as hn, L as Le, M as ci, O as Hi, P as Vi, j as Xi, t as dn, u as ln, v as un, Q as ht, i as fn, k as pn, S as _n, n as vn, T as gn } from "./NovaRenderCommandWriter-CWQRa42y.js";
2
2
  import { r as Ei, p as Je, n as hi, h as Vt } from "./nova-text-paint-CcntsRjI.js";
3
3
  import { randomString as cr, createInstance as mn, EventBus as yn } from "@endge/utils";
4
4
  import { RaphRuntime as xn, RaphSchedulerType as bn } from "@raphy-js/raph/runtime";
5
- import { N as W, A as di, B as li, D as Me, x as hr, z as wn, s as Rn, C as $n, b as F, E as Sn, p as qi, i as Tn, v as ui, l as Cn, r as Mn, k as dt, n as Yi } from "./NovaNode-CBZ-Ol-W.js";
5
+ import { N as H, A as di, B as li, D as Me, x as hr, z as wn, s as Rn, C as $n, b as F, E as Sn, p as qi, i as Tn, v as ui, l as Cn, r as Mn, k as dt, n as Yi } from "./NovaNode-CBZ-Ol-W.js";
6
6
  import { isPath as dr } from "@typedworks/geometry";
7
7
  import { mat3 as D } from "gl-matrix";
8
8
  import { v as lr, o as Be, w as fi, x as ur, n as ki, y as et, z as fr, k as pr, m as Ue, A as Bn, p as re, E as In, u as Ki, t as En, e as kn } from "./nova-color-parser-BCN_rFRN.js";
9
9
  import { g as _r } from "./nova-mesh-registry-B7Xz5mhU.js";
10
10
  import { a as nt, o as Wt, N as An } from "./NovaAssetRegistry-p2QlCwvT.js";
11
- import { N as Q } from "./NovaWebGLProgram-BO250QNF.js";
11
+ import { N as j } from "./NovaWebGLProgram-BO250QNF.js";
12
12
  import Nn from "earcut";
13
13
  import { a as Dn, c as Pn } from "./nova-compressed-image-CE2Ya9Xa.js";
14
14
  import Fn from "rbush";
@@ -260,15 +260,15 @@ function On(c) {
260
260
  }, b = [], $ = [], M = String(c.text ?? ""), S = Ii(M), w = p ? Math.max(s, f) : Number.POSITIVE_INFINITY;
261
261
  let R = 0, B = 0, P = "", T = 0, C = l - m, I = u - x;
262
262
  const k = (N) => {
263
- const z = l + Hn(g, T, f, m) - m, V = z - (l - m);
264
- if (V !== 0)
265
- for (const X of b)
266
- X.line === R && (X.x += V);
263
+ const U = l + Hn(g, T, f, m) - m, z = U - (l - m);
264
+ if (z !== 0)
265
+ for (const Q of b)
266
+ Q.line === R && (Q.x += z);
267
267
  $.push({
268
268
  index: R,
269
269
  start: B,
270
270
  end: N,
271
- x: z,
271
+ x: U,
272
272
  y: I,
273
273
  width: T,
274
274
  height: i,
@@ -282,17 +282,17 @@ function On(c) {
282
282
  k(N.index), B = N.end;
283
283
  continue;
284
284
  }
285
- const z = zn(N.value, y, c.measureText);
286
- p && T > 0 && T + z > w && (k(N.index), B = N.index), b.push({
285
+ const U = zn(N.value, y, c.measureText);
286
+ p && T > 0 && T + U > w && (k(N.index), B = N.index), b.push({
287
287
  value: N.value,
288
288
  index: N.index,
289
289
  end: N.end,
290
290
  x: C,
291
291
  y: I,
292
- width: z,
292
+ width: U,
293
293
  height: i,
294
294
  line: R
295
- }), C += z, T += z, P += N.value;
295
+ }), C += U, T += U, P += N.value;
296
296
  }
297
297
  return k(M.length), {
298
298
  text: M,
@@ -876,27 +876,27 @@ const is = {
876
876
  { opacity: 0 },
877
877
  Ie("fadeOut", t, { from: { opacity: 1 }, easing: "outCubic" })
878
878
  ),
879
- fadeUp: (c, e, t) => ue(c, e, "fadeUp", t, { y: Y(t), opacity: 0 }, { y: 0, opacity: 1 }),
880
- fadeDown: (c, e, t) => ue(c, e, "fadeDown", t, { y: -Y(t), opacity: 0 }, { y: 0, opacity: 1 }),
881
- fadeLeft: (c, e, t) => ue(c, e, "fadeLeft", t, { x: Y(t), opacity: 0 }, { x: 0, opacity: 1 }),
882
- fadeRight: (c, e, t) => ue(c, e, "fadeRight", t, { x: -Y(t), opacity: 0 }, { x: 0, opacity: 1 }),
883
- slideInLeft: (c, e, t) => ue(c, e, "slideInLeft", t, { x: -Y(t) }, { x: 0 }),
884
- slideInRight: (c, e, t) => ue(c, e, "slideInRight", t, { x: Y(t) }, { x: 0 }),
885
- slideInUp: (c, e, t) => ue(c, e, "slideInUp", t, { y: Y(t) }, { y: 0 }),
886
- slideInDown: (c, e, t) => ue(c, e, "slideInDown", t, { y: -Y(t) }, { y: 0 }),
879
+ fadeUp: (c, e, t) => ue(c, e, "fadeUp", t, { y: q(t), opacity: 0 }, { y: 0, opacity: 1 }),
880
+ fadeDown: (c, e, t) => ue(c, e, "fadeDown", t, { y: -q(t), opacity: 0 }, { y: 0, opacity: 1 }),
881
+ fadeLeft: (c, e, t) => ue(c, e, "fadeLeft", t, { x: q(t), opacity: 0 }, { x: 0, opacity: 1 }),
882
+ fadeRight: (c, e, t) => ue(c, e, "fadeRight", t, { x: -q(t), opacity: 0 }, { x: 0, opacity: 1 }),
883
+ slideInLeft: (c, e, t) => ue(c, e, "slideInLeft", t, { x: -q(t) }, { x: 0 }),
884
+ slideInRight: (c, e, t) => ue(c, e, "slideInRight", t, { x: q(t) }, { x: 0 }),
885
+ slideInUp: (c, e, t) => ue(c, e, "slideInUp", t, { y: q(t) }, { y: 0 }),
886
+ slideInDown: (c, e, t) => ue(c, e, "slideInDown", t, { y: -q(t) }, { y: 0 }),
887
887
  scaleIn: (c, e, t) => ut(c, e, "scaleIn", t, 0.72, 1, 0, 1),
888
888
  scaleOut: (c, e, t) => ut(c, e, "scaleOut", t, 1, 0.72, 1, 0),
889
889
  zoomIn: (c, e, t) => ut(c, e, "zoomIn", t, 0.42, 1, 0, 1),
890
890
  zoomOut: (c, e, t) => ut(c, e, "zoomOut", t, 1, 0.42, 1, 0),
891
891
  rotateIn: (c, e, t) => {
892
- const i = K(e, "rotation");
892
+ const i = Y(e, "rotation");
893
893
  return c.to(e, { rotation: i, opacity: 1 }, Ie("rotateIn", t, {
894
894
  from: { rotation: i - 0.55, opacity: 0 },
895
895
  easing: "outCubic"
896
896
  }));
897
897
  },
898
898
  spin: (c, e, t) => {
899
- const i = K(e, "rotation");
899
+ const i = Y(e, "rotation");
900
900
  return c.to(e, { rotation: i + Math.PI * 2 }, Ie("spin", t, {
901
901
  from: { rotation: i },
902
902
  easing: "linear"
@@ -915,7 +915,7 @@ const is = {
915
915
  [1, 1, 1]
916
916
  ]),
917
917
  bounce: (c, e, t) => {
918
- const i = K(e, "y"), s = Y(t, 22);
918
+ const i = Y(e, "y"), s = q(t, 22);
919
919
  return J(c, "bounce", t, [{ target: e, keyframes: [
920
920
  { y: i },
921
921
  { at: L("bounce", t, 0.22), y: i - s },
@@ -927,7 +927,7 @@ const is = {
927
927
  shakeX: (c, e, t) => ss(c, e, "shakeX", t, "x"),
928
928
  shakeY: (c, e, t) => ss(c, e, "shakeY", t, "y"),
929
929
  wobble: (c, e, t) => {
930
- const i = K(e, "x"), s = K(e, "rotation"), r = Y(t, 12);
930
+ const i = Y(e, "x"), s = Y(e, "rotation"), r = q(t, 12);
931
931
  return J(c, "wobble", t, [{ target: e, keyframes: [
932
932
  { x: i, rotation: s },
933
933
  { at: L("wobble", t, 0.18), x: i - r, rotation: s - 0.12 },
@@ -938,7 +938,7 @@ const is = {
938
938
  ] }]);
939
939
  },
940
940
  swing: (c, e, t) => {
941
- const i = K(e, "rotation");
941
+ const i = Y(e, "rotation");
942
942
  return J(c, "swing", t, [{ target: e, keyframes: [
943
943
  { rotation: i },
944
944
  { at: L("swing", t, 0.2), rotation: i + 0.22 },
@@ -962,8 +962,8 @@ const is = {
962
962
  [1, 1, 1]
963
963
  ]),
964
964
  hoverLift: (c, e, t) => {
965
- const i = K(e, "y");
966
- return c.to(e, { y: i - Y(t, 6) }, Ie("hoverLift", t, {
965
+ const i = Y(e, "y");
966
+ return c.to(e, { y: i - q(t, 6) }, Ie("hoverLift", t, {
967
967
  from: { y: i },
968
968
  easing: "outCubic"
969
969
  }));
@@ -977,7 +977,7 @@ const is = {
977
977
  ] }]);
978
978
  },
979
979
  borderPulse: (c, e, t) => {
980
- const i = rs(e, "stroke", "#d6d9e2"), s = K(e, "strokeWidth", 1);
980
+ const i = rs(e, "stroke", "#d6d9e2"), s = Y(e, "strokeWidth", 1);
981
981
  return J(c, "borderPulse", t, [{ target: e, keyframes: [
982
982
  { stroke: i, strokeWidth: s },
983
983
  { at: L("borderPulse", t, 0.45), stroke: t?.stroke ?? "#4f7cff", strokeWidth: t?.strokeWidth ?? s + 2 },
@@ -994,19 +994,19 @@ const ro = {
994
994
  stagger: {
995
995
  targets: e,
996
996
  each: ye(t),
997
- duration: j("staggerFade", t),
997
+ duration: K("staggerFade", t),
998
998
  patch: { opacity: 1 },
999
999
  easing: t?.easing ?? "outCubic"
1000
1000
  }
1001
1001
  })),
1002
1002
  staggerRise: (c, e, t) => {
1003
- const i = Y(t, 18);
1003
+ const i = q(t, 18);
1004
1004
  return He(e, { opacity: 0 }), J(c, "staggerRise", t, e.map((s, r) => {
1005
- const n = K(s, "y");
1005
+ const n = Y(s, "y");
1006
1006
  return {
1007
1007
  target: s,
1008
1008
  at: r * ye(t),
1009
- keyframes: [{ y: n + i, opacity: 0 }, { at: j("staggerRise", t), y: n, opacity: 1 }]
1009
+ keyframes: [{ y: n + i, opacity: 0 }, { at: K("staggerRise", t), y: n, opacity: 1 }]
1010
1010
  };
1011
1011
  }));
1012
1012
  },
@@ -1015,7 +1015,7 @@ const ro = {
1015
1015
  stagger: {
1016
1016
  targets: e,
1017
1017
  each: ye(t),
1018
- duration: j("staggerScale", t),
1018
+ duration: K("staggerScale", t),
1019
1019
  patch: { opacity: 1, scaleX: 1, scaleY: 1 },
1020
1020
  easing: t?.easing ?? "outCubic"
1021
1021
  }
@@ -1025,18 +1025,18 @@ const ro = {
1025
1025
  at: s * ye(t, 35),
1026
1026
  keyframes: [
1027
1027
  { scaleX: 1, scaleY: 1 },
1028
- { at: j("timelineWave", t) * 0.45, scaleX: 1.18, scaleY: 1.18 },
1029
- { at: j("timelineWave", t), scaleX: 1, scaleY: 1 }
1028
+ { at: K("timelineWave", t) * 0.45, scaleX: 1.18, scaleY: 1.18 },
1029
+ { at: K("timelineWave", t), scaleX: 1, scaleY: 1 }
1030
1030
  ]
1031
1031
  }))),
1032
1032
  cascade: (c, e, t) => {
1033
- const i = Y(t, 28);
1033
+ const i = q(t, 28);
1034
1034
  return He(e, { opacity: 0 }), J(c, "cascade", t, e.map((s, r) => {
1035
- const n = K(s, "x");
1035
+ const n = Y(s, "x");
1036
1036
  return {
1037
1037
  target: s,
1038
1038
  at: r * ye(t, 42),
1039
- keyframes: [{ x: n - i, opacity: 0 }, { at: j("cascade", t), x: n, opacity: 1 }]
1039
+ keyframes: [{ x: n - i, opacity: 0 }, { at: K("cascade", t), x: n, opacity: 1 }]
1040
1040
  };
1041
1041
  }));
1042
1042
  },
@@ -1045,18 +1045,18 @@ const ro = {
1045
1045
  sequence: e.map((i) => ({
1046
1046
  target: i,
1047
1047
  patch: { opacity: 1, scaleX: 1, scaleY: 1 },
1048
- duration: Math.max(80, j("sequenceChain", t) / Math.max(1, e.length)),
1048
+ duration: Math.max(80, K("sequenceChain", t) / Math.max(1, e.length)),
1049
1049
  delay: ye(t, 18),
1050
1050
  easing: t?.easing ?? "outCubic"
1051
1051
  }))
1052
1052
  })),
1053
1053
  repeatYoyo: (c, e, t) => {
1054
- const i = Y(t, 18);
1054
+ const i = q(t, 18);
1055
1055
  return J(c, "repeatYoyo", { repeat: 1, yoyo: !0, ...t }, e.map((s) => {
1056
- const r = K(s, "x");
1056
+ const r = Y(s, "x");
1057
1057
  return {
1058
1058
  target: s,
1059
- keyframes: [{ x: r }, { at: j("repeatYoyo", t), x: r + i }]
1059
+ keyframes: [{ x: r }, { at: K("repeatYoyo", t), x: r + i }]
1060
1060
  };
1061
1061
  }));
1062
1062
  },
@@ -1069,8 +1069,8 @@ const ro = {
1069
1069
  at: (o + n) * ye(t, 22),
1070
1070
  keyframes: [
1071
1071
  { opacity: 0.45, scaleX: 0.78, scaleY: 0.78 },
1072
- { at: j("gridWave", t) * 0.42, opacity: 1, scaleX: 1.1, scaleY: 1.1 },
1073
- { at: j("gridWave", t), opacity: 0.82, scaleX: 1, scaleY: 1 }
1072
+ { at: K("gridWave", t) * 0.42, opacity: 1, scaleX: 1.1, scaleY: 1.1 },
1073
+ { at: K("gridWave", t), opacity: 0.82, scaleX: 1, scaleY: 1 }
1074
1074
  ]
1075
1075
  };
1076
1076
  }));
@@ -1082,9 +1082,9 @@ function no(c, e, t, i = {}) {
1082
1082
  function ue(c, e, t, i, s, r) {
1083
1083
  const n = {}, o = {};
1084
1084
  for (const [a, h] of Object.entries(s))
1085
- n[a] = a === "opacity" ? h : K(e, a) + h;
1085
+ n[a] = a === "opacity" ? h : Y(e, a) + h;
1086
1086
  for (const [a, h] of Object.entries(r))
1087
- o[a] = a === "opacity" ? h : K(e, a) + h;
1087
+ o[a] = a === "opacity" ? h : Y(e, a) + h;
1088
1088
  return c.to(e, o, Ie(t, i, { from: n, easing: "outCubic" }));
1089
1089
  }
1090
1090
  function ut(c, e, t, i, s, r, n, o) {
@@ -1108,7 +1108,7 @@ function ft(c, e, t, i, s) {
1108
1108
  }]);
1109
1109
  }
1110
1110
  function ss(c, e, t, i, s) {
1111
- const r = K(e, s), n = Y(i, 10);
1111
+ const r = Y(e, s), n = q(i, 10);
1112
1112
  return J(c, t, i, [{ target: e, keyframes: [
1113
1113
  { [s]: r },
1114
1114
  { at: L(t, i, 0.16), [s]: r - n },
@@ -1130,7 +1130,7 @@ function J(c, e, t, i) {
1130
1130
  }
1131
1131
  function Ie(c, e, t) {
1132
1132
  return {
1133
- duration: j(c, e),
1133
+ duration: K(c, e),
1134
1134
  easing: "outCubic",
1135
1135
  ...t,
1136
1136
  ...e
@@ -1138,26 +1138,26 @@ function Ie(c, e, t) {
1138
1138
  }
1139
1139
  function Et(c, e, t) {
1140
1140
  return {
1141
- duration: j(c, e),
1141
+ duration: K(c, e),
1142
1142
  easing: "inOutCubic",
1143
1143
  ...t,
1144
1144
  ...e
1145
1145
  };
1146
1146
  }
1147
- function j(c, e) {
1147
+ function K(c, e) {
1148
1148
  const t = c in is ? is[c] : to[c];
1149
1149
  return Math.max(0, e?.duration ?? t.duration);
1150
1150
  }
1151
1151
  function L(c, e, t) {
1152
- return j(c, e) * t;
1152
+ return K(c, e) * t;
1153
1153
  }
1154
- function Y(c, e = 24) {
1154
+ function q(c, e = 24) {
1155
1155
  return c?.distance ?? e;
1156
1156
  }
1157
1157
  function ye(c, e = 28) {
1158
1158
  return c?.each ?? e;
1159
1159
  }
1160
- function K(c, e, t = 0) {
1160
+ function Y(c, e, t = 0) {
1161
1161
  const i = vr(c, e);
1162
1162
  return typeof i == "number" && Number.isFinite(i) ? i : t;
1163
1163
  }
@@ -1477,7 +1477,7 @@ function bo(c) {
1477
1477
  };
1478
1478
  return t;
1479
1479
  }
1480
- class ve extends W {
1480
+ class ve extends H {
1481
1481
  //
1482
1482
  // Внутреннее состояние graph runtime и lifecycle.
1483
1483
  descriptor;
@@ -1808,7 +1808,7 @@ class So {
1808
1808
  const i = {}, s = {};
1809
1809
  for (const [r, n] of Object.entries(t))
1810
1810
  e instanceof ve && !as.has(r) ? s[r] = n : i[r] = n;
1811
- if (Object.keys(s).length > 0 && e instanceof ve && e.setProps(s), Object.keys(i).length > 0 && e instanceof W) {
1811
+ if (Object.keys(s).length > 0 && e instanceof ve && e.setProps(s), Object.keys(i).length > 0 && e instanceof H) {
1812
1812
  for (const [n, o] of Object.entries(i))
1813
1813
  n in e ? e[n] = o : e.options({ [n]: o });
1814
1814
  const r = To(i);
@@ -2049,16 +2049,16 @@ class Dt {
2049
2049
  }
2050
2050
  static create(e, t, i, s = {}) {
2051
2051
  const r = document.createElement("canvas"), n = new Dt(r, "internal", s);
2052
- if (n.resize(e, t, s), n._initContextLossHandlers(), i === G.Web2D)
2052
+ if (n.resize(e, t, s), n._initContextLossHandlers(), i === W.Web2D)
2053
2053
  n.getContext2D();
2054
- else if (i !== G.WebGL) throw new Error(`Unsupported context type: ${i}`);
2054
+ else if (i !== W.WebGL) throw new Error(`Unsupported context type: ${i}`);
2055
2055
  return n;
2056
2056
  }
2057
2057
  static attach(e, t = {}) {
2058
2058
  const i = new Dt(e, "external", t), s = e.getBoundingClientRect(), r = t.width ?? s.width, n = t.height ?? s.height;
2059
2059
  i.resize(r, n, t);
2060
- const o = t.contextType ?? G.Web2D;
2061
- return o === G.WebGL && i._initContextLossHandlers(), o === G.Web2D && i.getContext2D(), i;
2060
+ const o = t.contextType ?? W.Web2D;
2061
+ return o === W.WebGL && i._initContextLossHandlers(), o === W.Web2D && i.getContext2D(), i;
2062
2062
  }
2063
2063
  _resolveDpr(e, t) {
2064
2064
  const i = e ?? (typeof window > "u" ? 1 : window.devicePixelRatio || 1);
@@ -3512,7 +3512,7 @@ class Vo {
3512
3512
  i && s !== void 0 && (i.save(), i.direction = s);
3513
3513
  try {
3514
3514
  const r = e.styles?.font, n = (r?.size ?? 12) * t, o = r?.family ?? "sans-serif", a = r?.style ?? "normal", h = r?.weight ?? "normal", d = `${a}:${h}:${n}:${o}`;
3515
- if (i && (i.font = `${a} ${h} ${n}px ${o}`), H(e)) {
3515
+ if (i && (i.font = `${a} ${h} ${n}px ${o}`), V(e)) {
3516
3516
  const l = it(e, (u, f) => (i && (i.font = f), i?.measureText(u).width ?? u.length * n * 0.6), t);
3517
3517
  return { width: Math.ceil(l.width), height: Math.ceil(l.height), fontKey: d };
3518
3518
  }
@@ -3554,7 +3554,7 @@ class yd {
3554
3554
  return this._atlas.pages;
3555
3555
  }
3556
3556
  resolve(e, t = 1) {
3557
- const i = this.resolveZoomBucket(t), s = this._layout.measure(e, i), r = H(e) ? JSON.stringify([e.width, e.height, e.styles]) : "", n = `${e.parser ?? "string"}:${r}:${s.fontKey}:${i}:${s.width}:${s.height}:${e.styles?.color ?? "#000"}:${e.text}`, o = Ei(e);
3557
+ const i = this.resolveZoomBucket(t), s = this._layout.measure(e, i), r = V(e) ? JSON.stringify([e.width, e.height, e.styles]) : "", n = `${e.parser ?? "string"}:${r}:${s.fontKey}:${i}:${s.width}:${s.height}:${e.styles?.color ?? "#000"}:${e.text}`, o = Ei(e);
3558
3558
  let a;
3559
3559
  if (o) {
3560
3560
  const f = Math.ceil(o.outset * i) * 2, _ = Math.max(1, s.width + f), v = Math.max(1, s.height + f);
@@ -4636,7 +4636,7 @@ class wa {
4636
4636
  this._assets = i, this.novaCanvas = e, this._schemaRegistry = t;
4637
4637
  }
4638
4638
  id = cr(5);
4639
- type = G.Web2D;
4639
+ type = W.Web2D;
4640
4640
  novaCanvas;
4641
4641
  capabilities = {
4642
4642
  canvas2d: !0,
@@ -5154,13 +5154,13 @@ class wa {
5154
5154
  text(e) {
5155
5155
  const t = Ei(e), i = Ra(e.rotation), s = this.ctx;
5156
5156
  i !== 0 && (s.save(), s.translate(e.x + e.width / 2, e.y + e.height / 2), s.rotate(i), s.translate(-(e.x + e.width / 2), -(e.y + e.height / 2)));
5157
- const r = this._resolvePadding(e.styles?.padding), n = r.left !== 0 || r.right !== 0 || r.top !== 0 || r.bottom !== 0, o = e.clip === !0 || e.clip !== void 0 || n || H(e);
5157
+ const r = this._resolvePadding(e.styles?.padding), n = r.left !== 0 || r.right !== 0 || r.top !== 0 || r.bottom !== 0, o = e.clip === !0 || e.clip !== void 0 || n || V(e);
5158
5158
  if (o) {
5159
5159
  const a = e.clip !== !0 && e.clip !== void 0 ? e.clip : null, h = a?.x ?? e.x + r.left, d = a?.y ?? e.y + r.top, l = a?.width ?? e.width - (r.left + r.right), u = a?.height ?? e.height - (r.top + r.bottom);
5160
5160
  l > 0 && u > 0 ? this.clip(h, d, l, u) : this.clip(e.x, e.y, e.width, e.height);
5161
5161
  }
5162
5162
  try {
5163
- H(e) ? this._textWrapped(e) : e.parser === "markdown" ? this._textMarkdown(e) : this._textString(e, t);
5163
+ V(e) ? this._textWrapped(e) : e.parser === "markdown" ? this._textMarkdown(e) : this._textString(e, t);
5164
5164
  } finally {
5165
5165
  o && this.clearClip(), i !== 0 && s.restore();
5166
5166
  }
@@ -5738,7 +5738,7 @@ class wa {
5738
5738
  const t = this._measureCanvas.getContext("2d"), i = e.styles?.direction;
5739
5739
  i !== void 0 && (t.save(), t.direction = i);
5740
5740
  try {
5741
- if (H(e)) {
5741
+ if (V(e)) {
5742
5742
  const l = it(e, (u, f) => (t.font = f, t.measureText(u).width));
5743
5743
  return { width: l.width, height: l.height };
5744
5744
  }
@@ -6071,7 +6071,7 @@ void main() {
6071
6071
  }`;
6072
6072
  class Ba {
6073
6073
  constructor(e) {
6074
- this._gl = e, this._program = Q.create(e, Ca, Ma);
6074
+ this._gl = e, this._program = j.create(e, Ca, Ma);
6075
6075
  }
6076
6076
  _program;
6077
6077
  draw(e, t, i, s, r, n, o, a, h, d, l) {
@@ -6170,7 +6170,7 @@ void main() {
6170
6170
  }`;
6171
6171
  class $s {
6172
6172
  constructor(e) {
6173
- this._gl = e, this._program = Q.create(e, Ia, Ea);
6173
+ this._gl = e, this._program = j.create(e, Ia, Ea);
6174
6174
  }
6175
6175
  _program;
6176
6176
  draw(e, t, i, s, r, n, o, a, h) {
@@ -6220,7 +6220,7 @@ void main() {
6220
6220
  }`;
6221
6221
  class Ss {
6222
6222
  constructor(e) {
6223
- this._gl = e, this._program = Q.create(e, ka, Aa);
6223
+ this._gl = e, this._program = j.create(e, ka, Aa);
6224
6224
  }
6225
6225
  _program;
6226
6226
  draw(e, t, i, s, r, n, o = 1, a) {
@@ -6286,7 +6286,7 @@ void main() {
6286
6286
  }`;
6287
6287
  class Ts {
6288
6288
  constructor(e) {
6289
- this._gl = e, this._program = Q.create(e, Da, Pa);
6289
+ this._gl = e, this._program = j.create(e, Da, Pa);
6290
6290
  }
6291
6291
  _program;
6292
6292
  draw(e, t, i, s, r = !1, n = 1, o = 1) {
@@ -7422,7 +7422,7 @@ class Rc {
7422
7422
  constructor(e, t = Me.text, i = Me.batching, s = nt.global, r = Me.cache) {
7423
7423
  this._device = e, this._textConfig = t, this._batchingConfig = i, this._assets = s, this._gl = e.gl, this._pathGpuBudget = (r.maxPathGeometryMemoryMB ?? 16) * 1024 * 1024, this.$nova9v = r.maxTextureMemoryMB * 1024 * 1024, this.$noval(r), this.$nova4y = Number.isFinite(i.maxBatchSize) ? Math.max(1, Math.floor(i.maxBatchSize)) : Me.batching.maxBatchSize;
7424
7424
  const n = this._gl.getParameter(this._gl.CURRENT_PROGRAM), o = [], a = (h, d) => {
7425
- const l = Q.create(this._gl, h, d);
7425
+ const l = j.create(this._gl, h, d);
7426
7426
  return o.push(l), l;
7427
7427
  };
7428
7428
  try {
@@ -7806,14 +7806,14 @@ class Rc {
7806
7806
  break;
7807
7807
  case "clipPath":
7808
7808
  if (w.pathClip) {
7809
- const R = hr(w.id), B = this._outputDpr, P = Number(this._gl.getParameter(this._gl.SAMPLES)), T = Bn(e.commands).get(w.id), C = wn(w.pathClip), I = De(p, C.x, C.y, C.width, C.height), k = m[m.length - 1], N = this._activeRenderTarget?.view, z = Math.max(I.x, k?.x ?? N?.x ?? 0, N?.x ?? 0, T?.bounds.x ?? N?.x ?? 0), V = Math.max(I.y, k?.y ?? N?.y ?? 0, N?.y ?? 0, T?.bounds.y ?? N?.y ?? 0), X = Math.min(I.x + I.width, k ? k.x + k.width : this.$nova73, N ? N.x + this._activeRenderTarget.width : this.$nova73, T ? T.bounds.x + T.bounds.width : Number.POSITIVE_INFINITY), de = Math.min(I.y + I.height, k ? k.y + k.height : this.$nova72, N ? N.y + this._activeRenderTarget.height : this.$nova72, T ? T.bounds.y + T.bounds.height : Number.POSITIVE_INFINITY);
7810
- if (![z, V, X, de].every(Number.isFinite))
7809
+ const R = hr(w.id), B = this._outputDpr, P = Number(this._gl.getParameter(this._gl.SAMPLES)), T = Bn(e.commands).get(w.id), C = wn(w.pathClip), I = De(p, C.x, C.y, C.width, C.height), k = m[m.length - 1], N = this._activeRenderTarget?.view, U = Math.max(I.x, k?.x ?? N?.x ?? 0, N?.x ?? 0, T?.bounds.x ?? N?.x ?? 0), z = Math.max(I.y, k?.y ?? N?.y ?? 0, N?.y ?? 0, T?.bounds.y ?? N?.y ?? 0), Q = Math.min(I.x + I.width, k ? k.x + k.width : this.$nova73, N ? N.x + this._activeRenderTarget.width : this.$nova73, T ? T.bounds.x + T.bounds.width : Number.POSITIVE_INFINITY), de = Math.min(I.y + I.height, k ? k.y + k.height : this.$nova72, N ? N.y + this._activeRenderTarget.height : this.$nova72, T ? T.bounds.y + T.bounds.height : Number.POSITIVE_INFINITY);
7810
+ if (![U, z, Q, de].every(Number.isFinite))
7811
7811
  throw new RangeError("[Nova] Clip projection must remain finite");
7812
- if (X <= z || de <= V) {
7812
+ if (Q <= U || de <= z) {
7813
7813
  b({ x: 0, y: 0, width: 0, height: 0 }, u);
7814
7814
  break;
7815
7815
  }
7816
- const le = Math.floor(z * B) / B, ze = Math.floor(V * B) / B, oe = { width: Math.max(1 / B, Math.ceil(X * B) / B - le), height: Math.max(1 / B, Math.ceil(de * B) / B - ze), dpr: B, kind: "effect" }, ge = { x: le, y: ze, width: this.$nova73, height: this.$nova72, projectionX: this.$nova55?.view?.projectionX, projectionY: this.$nova55?.view?.projectionY }, Li = this.$nova3s({ ...oe, id: R[1] }, r, 1, P), se = this._pathClipMasks.get(Li);
7816
+ const le = Math.floor(U * B) / B, ze = Math.floor(z * B) / B, oe = { width: Math.max(1 / B, Math.ceil(Q * B) / B - le), height: Math.max(1 / B, Math.ceil(de * B) / B - ze), dpr: B, kind: "effect" }, ge = { x: le, y: ze, width: this.$nova73, height: this.$nova72, projectionX: this.$nova55?.view?.projectionX, projectionY: this.$nova55?.view?.projectionY }, Li = this.$nova3s({ ...oe, id: R[1] }, r, 1, P), se = this._pathClipMasks.get(Li);
7817
7817
  (!se || se.clip.path !== w.pathClip.path || se.clip.fillRule !== w.pathClip.fillRule || !D.exactEquals(se.transform, p) || se.view.x !== le || se.view.y !== ze || se.view.width !== ge.width || se.view.height !== ge.height || se.view.projectionX !== ge.projectionX || se.view.projectionY !== ge.projectionY) && (this._beginRenderTarget({ ...oe, id: R[1] }, r, ge, !0, P), this._drawPath({ ...w.pathClip, styles: { fill: "#fff" } }, this.$nova65(p), r, !1), this.$nova3o(r), this._pathClipMasks.set(Li, { clip: w.pathClip, transform: D.clone(p), view: ge }));
7818
7818
  let me = this._blendedClipFrames.get(e);
7819
7819
  if (me === void 0 && (me = At(e)?.hasBackdropBlend ?? e.commands.some((ct) => ct.type === "beginComposition" && ct.composition?.blendMode !== "normal"), this._blendedClipFrames.set(e, me)), T && (me = T.blendMode !== "normal"), me) {
@@ -7846,8 +7846,8 @@ class Rc {
7846
7846
  }
7847
7847
  const I = { pass: R, bounds: C, clips: m, effectOwner: Ue(w.id)[0] };
7848
7848
  if ((y ??= []).push(I), C.width > 0 && C.height > 0 && R.opacity > 0) {
7849
- const k = Ue(w.id), N = { width: C.width, height: C.height, dpr: P, kind: "effect" }, V = R.effects?.some((X) => !!Be(X).outset) ? { x: C.x, y: C.y, width: C.width, height: C.height, projectionX: C.x, projectionY: C.y } : { x: C.x, y: C.y, width: this.$nova73, height: this.$nova72, projectionX: T?.view?.projectionX, projectionY: T?.view?.projectionY };
7850
- this._flush(r), R.blendMode !== "normal" && (I.backdrop = this.$nova3s({ ...N, id: k[1] }, r), this.$novam(I.backdrop, C)), R.mask && (I.mask = this._prepareCompositionMask(R, N, V, k[2], r)), this._beginRenderTarget({ ...N, id: k[0] }, r, V, !0, Number(this._gl.getParameter(this._gl.SAMPLES))), I.target = this._activeRenderTarget, m = [], R.effects?.some((X) => !!Be(X).outset) && b(R.bounds, u);
7849
+ const k = Ue(w.id), N = { width: C.width, height: C.height, dpr: P, kind: "effect" }, z = R.effects?.some((Q) => !!Be(Q).outset) ? { x: C.x, y: C.y, width: C.width, height: C.height, projectionX: C.x, projectionY: C.y } : { x: C.x, y: C.y, width: this.$nova73, height: this.$nova72, projectionX: T?.view?.projectionX, projectionY: T?.view?.projectionY };
7850
+ this._flush(r), R.blendMode !== "normal" && (I.backdrop = this.$nova3s({ ...N, id: k[1] }, r), this.$novam(I.backdrop, C)), R.mask && (I.mask = this._prepareCompositionMask(R, N, z, k[2], r)), this._beginRenderTarget({ ...N, id: k[0] }, r, z, !0, Number(this._gl.getParameter(this._gl.SAMPLES))), I.target = this._activeRenderTarget, m = [], R.effects?.some((Q) => !!Be(Q).outset) && b(R.bounds, u);
7851
7851
  } else
7852
7852
  m = [], b({ x: 0, y: 0, width: 0, height: 0 }, u);
7853
7853
  }
@@ -8027,7 +8027,7 @@ class Rc {
8027
8027
  t && i !== void 0 && (t.save(), t.direction = i);
8028
8028
  try {
8029
8029
  const s = Z(e);
8030
- if (H(e)) {
8030
+ if (V(e)) {
8031
8031
  const r = it(e, (n, o) => (t && (t.font = o), t?.measureText(n).width ?? n.length * s.fontSize * 0.6));
8032
8032
  return { width: r.width, height: r.height };
8033
8033
  }
@@ -8129,7 +8129,7 @@ class Rc {
8129
8129
  const r = s.schemaItems;
8130
8130
  if (!r)
8131
8131
  continue;
8132
- const n = U(r), o = this._semanticBatchCache.get(n);
8132
+ const n = G(r), o = this._semanticBatchCache.get(n);
8133
8133
  o && (this.$nova26(o.rects), this._semanticBatchCache.delete(n)), this.$nova26(r);
8134
8134
  }
8135
8135
  }
@@ -8454,7 +8454,7 @@ class Rc {
8454
8454
  return !1;
8455
8455
  if (e.every((u) => this.$nova4o(u)))
8456
8456
  return this.$nova2z(e, t, i, r);
8457
- const o = U(e);
8457
+ const o = G(e);
8458
8458
  let a = this._rectBatchCache.get(o), h = null, d = 0;
8459
8459
  const l = this.$nova77(e, t);
8460
8460
  if (a) {
@@ -8507,7 +8507,7 @@ class Rc {
8507
8507
  return d.bindVertexArray(h), d.bindBuffer(d.ARRAY_BUFFER, a), this.$novaai(n, i), i.uploadMs += performance.now() - l, o.use(), d.uniform2f(o.uniformLocation("u_resolution"), this.$nova73, this.$nova72), d.uniformMatrix3fv(o.uniformLocation("u_transform"), !1, t), d.uniform1f(o.uniformLocation("u_time"), this._time), d.drawArraysInstanced(d.TRIANGLES, 0, 6, e.length), i.instances += e.length, i.drawCalls += 1, i.batches += 1, !0;
8508
8508
  }
8509
8509
  $nova2z(e, t, i, s) {
8510
- const r = U(e);
8510
+ const r = G(e);
8511
8511
  let n = this._plainRectBatchCache.get(r), o = null, a = 0;
8512
8512
  const h = this.$nova82(e), d = this.$nova77(e, t);
8513
8513
  if (!n)
@@ -8523,7 +8523,7 @@ class Rc {
8523
8523
  $nova2k(e, t, i, s, r) {
8524
8524
  if (s !== void 0 || r === void 0 || e.length === 0)
8525
8525
  return !1;
8526
- const n = U(e);
8526
+ const n = G(e);
8527
8527
  let o = this._circleSchemaBatchCache.get(n);
8528
8528
  if (!o || o.contentVersion !== r) {
8529
8529
  if (!e.every((d) => d.type === "circle" && d.active !== !1 && (d.clip === void 0 || d.clip === !0) && d.semantic === void 0 && d.meta === void 0 && (d.styles?.background === void 0 || typeof d.styles.background == "string")))
@@ -8541,7 +8541,7 @@ class Rc {
8541
8541
  $nova36(e, t, i, s, r) {
8542
8542
  if (s !== void 0 || r === void 0 || e.length === 0)
8543
8543
  return !1;
8544
- const n = U(e);
8544
+ const n = G(e);
8545
8545
  let o = this._solidGeometryBatchCache.get(n);
8546
8546
  if (!o || o.contentVersion !== r) {
8547
8547
  const a = this.$novae(e);
@@ -8625,7 +8625,7 @@ class Rc {
8625
8625
  e.buffer && this._gl.deleteBuffer(e.buffer), e.vao && this._gl.deleteVertexArray(e.vao), delete e.buffer, delete e.vao, delete e.upload, this.$nova5b.delete(e);
8626
8626
  }
8627
8627
  $nova26(e) {
8628
- const t = U(e), i = this._plainRectBatchCache.get(t);
8628
+ const t = G(e), i = this._plainRectBatchCache.get(t);
8629
8629
  i && (this.$nova2a(i), this._plainRectBatchCache.delete(t));
8630
8630
  const s = this._rectBatchCache.get(t);
8631
8631
  s && (this.$nova2a(s), this._rectBatchCache.delete(t));
@@ -8655,7 +8655,7 @@ class Rc {
8655
8655
  return !0;
8656
8656
  }
8657
8657
  $nova7t(e) {
8658
- const t = U(e), i = this._semanticBatchCache.get(t);
8658
+ const t = G(e), i = this._semanticBatchCache.get(t);
8659
8659
  if (i && this.$nova71(i, e))
8660
8660
  return i;
8661
8661
  const s = [], r = [], n = [], o = [], a = [], h = [], d = [];
@@ -8850,7 +8850,7 @@ class Rc {
8850
8850
  if (e.some((g, m) => g.type === "text" && this.$nova52(g, Z(g), t, `schema:${m}`, p)))
8851
8851
  return !1;
8852
8852
  }
8853
- const r = U(e);
8853
+ const r = G(e);
8854
8854
  let n = this._textureBatchCache.get(r) ?? null, o = n?.hasText ? this.$nova25(t) : void 0;
8855
8855
  const a = this._textConfig.lod.enabled && this._textConfig.lod.maxVisibleRuns > 0 ? i.visibleTextRuns : void 0, h = this._textConfig.lod.enabled && this._textConfig.interaction.mode !== "stable-quality", d = n && (n.incomplete || n.admissionKey !== a || n.hasText && n.hideWhileMoving !== h || n.hasText && n.deviceStamp !== o?.stamp || [n, ...n.lanes ?? []].some((p) => p.texture && !this.$nova4q(p.texture) || p.textGenerations?.some((g) => this._textAtlasEntries.get(g.key)?.deviceText?.generation !== g.generation)));
8856
8856
  let l = null, u = 0;
@@ -8914,7 +8914,7 @@ class Rc {
8914
8914
  return !1;
8915
8915
  }
8916
8916
  }
8917
- if (r.parser === "markdown" || H(r)) {
8917
+ if (r.parser === "markdown" || V(r)) {
8918
8918
  const h = Math.max(1, Math.ceil(r.width * i)), d = Math.max(1, Math.ceil(r.height * i)), l = h * d;
8919
8919
  if (!Number.isFinite(h) || !Number.isFinite(d) || !Number.isFinite(l) || h > s || d > s)
8920
8920
  return !1;
@@ -9087,7 +9087,7 @@ class Rc {
9087
9087
  y: f.y,
9088
9088
  width: f.width,
9089
9089
  height: f.height,
9090
- opacity: H(e) ? 1 : h.opacity,
9090
+ opacity: V(e) ? 1 : h.opacity,
9091
9091
  u0: f.u0,
9092
9092
  v0: f.v0,
9093
9093
  u1: f.u1,
@@ -9251,7 +9251,7 @@ class Rc {
9251
9251
  l.width,
9252
9252
  l.height,
9253
9253
  d.deviceCopy ? this.$nova4e : r,
9254
- H(e) ? 1 : a.opacity,
9254
+ V(e) ? 1 : a.opacity,
9255
9255
  i,
9256
9256
  l.u0,
9257
9257
  l.v0,
@@ -9571,7 +9571,7 @@ class Rc {
9571
9571
  }
9572
9572
  }
9573
9573
  $nova4n(e) {
9574
- return !(Vt(e) || e.styles?.direction === "rtl" || e.parser === "markdown" || H(e) || e.styles?.font?.style === "italic" || e.styles?.ellipsis || this.$nova4c(e.text));
9574
+ return !(Vt(e) || e.styles?.direction === "rtl" || e.parser === "markdown" || V(e) || e.styles?.font?.style === "italic" || e.styles?.ellipsis || this.$nova4c(e.text));
9575
9575
  }
9576
9576
  $nova4c(e) {
9577
9577
  if (/(?:^|[^A-Z])(?:ffi|ffl|fi|fl)(?:[^A-Z]|$)/i.test(e))
@@ -9655,7 +9655,7 @@ class Rc {
9655
9655
  return this.$nova23 ??= getComputedStyle(this._device.canvas.element).direction === "rtl" ? "rtl" : "ltr", this.$nova23;
9656
9656
  }
9657
9657
  $nova7b(e, t, i) {
9658
- if (!(!this._textConfig.tightRunAtlas || e.parser === "markdown" || H(e) || t.paint?.stroke))
9658
+ if (!(!this._textConfig.tightRunAtlas || e.parser === "markdown" || V(e) || t.paint?.stroke))
9659
9659
  return this.$nova25(i, e.x, e.y);
9660
9660
  }
9661
9661
  $nova96(e, t) {
@@ -9665,7 +9665,7 @@ class Rc {
9665
9665
  const a = this.$nova7b(e, t, i);
9666
9666
  if (!a)
9667
9667
  return;
9668
- const h = t.direction ?? this.$nova8y(), d = this.$nova8d(e, t), l = d ? { x: d.x - e.x, y: d.y - e.y, width: d.width, height: d.height } : void 0, u = this.$nova1l(e, t), f = JSON.stringify(["device-text", u, e.text, e.width, e.height, h]), _ = a.b === 0 && a.c === 0, v = JSON.stringify([a.stamp, h, _ ? void 0 : l]);
9668
+ const h = t.direction ?? this.$nova8y(), d = this.$nova8d(e, t), l = d ? { x: d.x - e.x, y: d.y - e.y, width: d.width, height: d.height } : void 0, u = this.$nova1l(e, t), f = JSON.stringify(["device-text", u, h]), _ = a.b === 0 && a.c === 0, v = JSON.stringify([a.stamp, h, _ ? void 0 : l]);
9669
9669
  if (o) {
9670
9670
  const y = JSON.stringify([u, v]), b = o.get(y);
9671
9671
  b === void 0 ? o.set(y, r) : r = b;
@@ -9678,30 +9678,40 @@ class Rc {
9678
9678
  const I = this._textFallbackKeys.get(f), k = g?.baseKey === f ? g : void 0;
9679
9679
  return this.$nova62(k, f, l) ?? this.$nova62(I ? this._textAtlasEntries.get(I) : void 0, f, l);
9680
9680
  }
9681
- let y, b, $, M, S, w;
9681
+ let y = g?.baseKey === f ? g.deviceText?.layout : void 0, b, $, M, S, w;
9682
9682
  const R = performance.now();
9683
9683
  try {
9684
- const I = this.$nova50(t.font);
9685
- I.save();
9686
- try {
9687
- I.direction = h, y = this.$nova8j(e, t, I), b = this.$nova8h(e, t, y, 1, Math.ceil(e.width), Math.ceil(e.height));
9688
- } finally {
9689
- I.restore();
9684
+ if (!y) {
9685
+ const U = this.$nova50(t.font);
9686
+ U.save();
9687
+ try {
9688
+ U.direction = h;
9689
+ const z = this.$nova8j(e, t, U);
9690
+ y = {
9691
+ renderedText: z.renderedText,
9692
+ x: z.x,
9693
+ y: z.y,
9694
+ bounds: this.$nova8h(e, t, z, 1, Math.ceil(e.width), Math.ceil(e.height))
9695
+ };
9696
+ } finally {
9697
+ U.restore();
9698
+ }
9690
9699
  }
9691
- const k = [], N = [];
9692
- for (const V of [b.offsetX, b.offsetX + b.drawWidth])
9693
- for (const X of [b.offsetY, b.offsetY + b.drawHeight])
9694
- k.push(a.a * V + a.c * X + a.tx), N.push(a.b * V + a.d * X + a.ty);
9695
- $ = Math.floor(Math.min(...k) - 1), M = Math.floor(Math.min(...N) - 1), S = Math.ceil(Math.max(...k) + 1) - $, w = Math.ceil(Math.max(...N) + 1) - M;
9696
- const z = this.$nova87();
9697
- if (![$, M, S, w].every(Number.isSafeInteger) || S <= 0 || w <= 0 || S > z || w > z) {
9700
+ b = y.bounds;
9701
+ const I = [], k = [];
9702
+ for (const U of [b.offsetX, b.offsetX + b.drawWidth])
9703
+ for (const z of [b.offsetY, b.offsetY + b.drawHeight])
9704
+ I.push(a.a * U + a.c * z + a.tx), k.push(a.b * U + a.d * z + a.ty);
9705
+ $ = Math.floor(Math.min(...I) - 1), M = Math.floor(Math.min(...k) - 1), S = Math.ceil(Math.max(...I) + 1) - $, w = Math.ceil(Math.max(...k) + 1) - M;
9706
+ const N = this.$nova87();
9707
+ if (![$, M, S, w].every(Number.isSafeInteger) || S <= 0 || w <= 0 || S > N || w > N) {
9698
9708
  s.textModeFallbacks += 1;
9699
9709
  return;
9700
9710
  }
9701
9711
  } finally {
9702
9712
  s.textRasterMs += performance.now() - R;
9703
9713
  }
9704
- this._flush(s);
9714
+ g?.lastUsed === this._time && this._flush(s);
9705
9715
  const B = this._textRasterCanvas, P = performance.now();
9706
9716
  try {
9707
9717
  B.width = S, B.height = w;
@@ -9712,7 +9722,7 @@ class Rc {
9712
9722
  } finally {
9713
9723
  s.textRasterMs += performance.now() - P;
9714
9724
  }
9715
- const T = { canvas: B, width: S, height: w, scale: 1, offsetX: 0, offsetY: 0, drawWidth: S / a.sx, drawHeight: w / a.sy, boxPixels: b.boxPixels }, C = g;
9725
+ const T = { canvas: B, width: S, height: w, scale: 1, offsetX: 0, offsetY: 0, drawWidth: S / a.sx, drawHeight: w / a.sy, boxPixels: Math.max(1, Math.ceil(e.width) * Math.ceil(e.height)) }, C = g;
9716
9726
  try {
9717
9727
  const I = C?.deviceText;
9718
9728
  if (C && I && S <= I.capacityWidth && w <= I.capacityHeight) {
@@ -9721,11 +9731,11 @@ class Rc {
9721
9731
  } else
9722
9732
  g = this.$novaaj(p, f, T, s), C && C.page !== g.page && C.page.entries.delete(p);
9723
9733
  C && C.baseKey !== f && this._textFallbackKeys.get(C.baseKey) === p && this._textFallbackKeys.delete(C.baseKey), g.baseKey = f;
9724
- const k = ($ - a.tx) / a.a, N = (M - a.ty) / a.d, z = _ ? { x: Math.min(k, k + S / a.a), y: Math.min(N, N + w / a.d), width: Math.abs(S / a.a), height: Math.abs(w / a.d), flipX: a.a < 0, flipY: a.d < 0 } : void 0, V = a.a * a.d - a.b * a.c, X = _ ? void 0 : [[$, M], [$ + S, M], [$ + S, M + w], [$, M + w]].map(([de, le]) => ({
9725
- x: (a.d * (de - a.tx) - a.c * (le - a.ty)) / V,
9726
- y: (a.a * (le - a.ty) - a.b * (de - a.tx)) / V
9734
+ const k = ($ - a.tx) / a.a, N = (M - a.ty) / a.d, U = _ ? { x: Math.min(k, k + S / a.a), y: Math.min(N, N + w / a.d), width: Math.abs(S / a.a), height: Math.abs(w / a.d), flipX: a.a < 0, flipY: a.d < 0 } : void 0, z = a.a * a.d - a.b * a.c, Q = _ ? void 0 : [[$, M], [$ + S, M], [$ + S, M + w], [$, M + w]].map(([de, le]) => ({
9735
+ x: (a.d * (de - a.tx) - a.c * (le - a.ty)) / z,
9736
+ y: (a.a * (le - a.ty) - a.b * (de - a.tx)) / z
9727
9737
  }));
9728
- g.deviceText = { localQuad: X, bakedClip: _ ? void 0 : l, localRaster: z, signature: v, generation: ++this.$nova24, cropX: $ - Math.floor(a.tx), cropY: M - Math.floor(a.ty), capacityWidth: C?.deviceText && g === C ? C.deviceText.capacityWidth : S, capacityHeight: C?.deviceText && g === C ? C.deviceText.capacityHeight : w };
9738
+ g.deviceText = { layout: y, localQuad: Q, bakedClip: _ ? void 0 : l, localRaster: U, signature: v, generation: ++this.$nova24, cropX: $ - Math.floor(a.tx), cropY: M - Math.floor(a.ty), capacityWidth: C?.deviceText && g === C ? C.deviceText.capacityWidth : S, capacityHeight: C?.deviceText && g === C ? C.deviceText.capacityHeight : w };
9729
9739
  } catch (I) {
9730
9740
  this._textAtlasEntries.delete(p), C?.page.entries.delete(p);
9731
9741
  for (const k of [f, C?.baseKey])
@@ -9762,7 +9772,7 @@ class Rc {
9762
9772
  const n = this.$nova7b(e, t, i);
9763
9773
  if (!n)
9764
9774
  return !1;
9765
- const o = t.direction ?? this.$nova8y(), a = this.$nova1l(e, t), h = JSON.stringify(["device-text", a, e.text, e.width, e.height, o]), d = this.$nova8d(e, t), l = d ? { x: d.x - e.x, y: d.y - e.y, width: d.width, height: d.height } : void 0, u = JSON.stringify([n.stamp, o, n.b === 0 && n.c === 0 ? void 0 : l]), f = r?.get(h);
9775
+ const o = t.direction ?? this.$nova8y(), a = this.$nova1l(e, t), h = JSON.stringify(["device-text", a, o]), d = this.$nova8d(e, t), l = d ? { x: d.x - e.x, y: d.y - e.y, width: d.width, height: d.height } : void 0, u = JSON.stringify([n.stamp, o, n.b === 0 && n.c === 0 ? void 0 : l]), f = r?.get(h);
9766
9776
  if (r?.set(h, u), (n.b !== 0 || n.c !== 0) && f !== void 0 && f !== u)
9767
9777
  return !0;
9768
9778
  const _ = this._textAtlasEntries.get(`device-text:${s}:${a}`), v = this._textFallbackKeys.get(h), p = v ? this._textAtlasEntries.get(v) : void 0;
@@ -9912,7 +9922,7 @@ class Rc {
9912
9922
  $nova3g(e, t, i, s, r) {
9913
9923
  for (const n of t.tiles) {
9914
9924
  const o = this.$nova8a(e, n, i);
9915
- o && this.$nova6o(n.texture, o.x, o.y, o.width, o.height, s, H(e) ? 1 : i.opacity, r, o.u0, o.v0, o.u1, o.v1);
9925
+ o && this.$nova6o(n.texture, o.x, o.y, o.width, o.height, s, V(e) ? 1 : i.opacity, r, o.u0, o.v0, o.u1, o.v1);
9916
9926
  }
9917
9927
  }
9918
9928
  $nova63(e, t, i, s, r, n) {
@@ -9978,7 +9988,7 @@ class Rc {
9978
9988
  if (typeof e.clip == "object" && e.clip !== null)
9979
9989
  return e.clip;
9980
9990
  const i = t.padding, s = i.left !== 0 || i.right !== 0 || i.top !== 0 || i.bottom !== 0;
9981
- if (e.clip === void 0 && !s && !H(e))
9991
+ if (e.clip === void 0 && !s && !V(e))
9982
9992
  return;
9983
9993
  const r = e.width - i.left - i.right, n = e.height - i.top - i.bottom;
9984
9994
  return r > 0 && n > 0 ? { x: e.x + i.left, y: e.y + i.top, width: r, height: n } : { x: e.x, y: e.y, width: e.width, height: e.height };
@@ -10311,7 +10321,7 @@ class Rc {
10311
10321
  i && (this.$nova5p ??= new Ts(s), this.$nova5p.draw(e.target.texture.texture, e.crop, e.width, e.height, !1, e.pixels.width / e.target.pixelWidth, e.pixels.height / e.target.pixelHeight), t.drawCalls++, t.batches++, t.renderTargetDraws++);
10312
10322
  }
10313
10323
  $nova46() {
10314
- return this.$nova5n ??= Q.create(this._gl, Ka, ja), this.$nova5n;
10324
+ return this.$nova5n ??= j.create(this._gl, Ka, ja), this.$nova5n;
10315
10325
  }
10316
10326
  $nova15(e) {
10317
10327
  const t = this._gl, i = this.$nova46(), s = this._createVao();
@@ -10414,7 +10424,7 @@ class Rc {
10414
10424
  $nova32(e, t, i) {
10415
10425
  if (e.active === !1 || e.count <= 0)
10416
10426
  return;
10417
- const s = U(e);
10427
+ const s = G(e);
10418
10428
  let r = this._rectStreamBatchCache.get(s);
10419
10429
  const n = cn(e);
10420
10430
  r?.failedUploadTarget && r.failedUploadTarget.deref() !== e && (r.revision = void 0, r.staticRevision = void 0);
@@ -10473,7 +10483,7 @@ class Rc {
10473
10483
  $nova2i(e, t, i) {
10474
10484
  if (e.active === !1 || e.count <= 0)
10475
10485
  return;
10476
- const s = U(e);
10486
+ const s = G(e);
10477
10487
  let r = this._borderStreamBatchCache.get(s);
10478
10488
  r || (r = {
10479
10489
  flat: !1,
@@ -10566,7 +10576,7 @@ class Rc {
10566
10576
  $nova3h(e, t, i) {
10567
10577
  if (e.active === !1 || e.count <= 0)
10568
10578
  return;
10569
- const s = U(e);
10579
+ const s = G(e);
10570
10580
  let r = this._timeRangeSegmentBatchCache.get(s);
10571
10581
  const n = e.revision ?? 0, o = e.staticRevision ?? 0;
10572
10582
  let a = null, h = null;
@@ -10583,7 +10593,7 @@ class Rc {
10583
10593
  return;
10584
10594
  const s = this.$nova86(e);
10585
10595
  if (s) {
10586
- this.$nova9m.touch(s, U(e), this._rootPass), this.$nova39(s, t, i);
10596
+ this.$nova9m.touch(s, G(e), this._rootPass), this.$nova39(s, t, i);
10587
10597
  return;
10588
10598
  }
10589
10599
  this.$nova3a(e, t, i);
@@ -10599,7 +10609,7 @@ class Rc {
10599
10609
  return;
10600
10610
  }
10601
10611
  const s = this.$nova7q(e, i);
10602
- s && (this.$nova4d.touch(s, U(e), this._rootPass), this.$nova3d(s, t, i));
10612
+ s && (this.$nova4d.touch(s, G(e), this._rootPass), this.$nova3d(s, t, i));
10603
10613
  }
10604
10614
  $nova3c(e, t, i) {
10605
10615
  if (e.active === !1 || e.count <= 0)
@@ -10627,7 +10637,7 @@ class Rc {
10627
10637
  }
10628
10638
  }
10629
10639
  const r = this.$nova8p(e, t, i);
10630
- r && (this.$nova9t.touch(r, U(e), this._rootPass), this.$nova3d(r, t, i));
10640
+ r && (this.$nova9t.touch(r, G(e), this._rootPass), this.$nova3d(r, t, i));
10631
10641
  }
10632
10642
  $nova8b(e) {
10633
10643
  const t = e.meta, i = this.$nova53(t?.textMode);
@@ -10643,7 +10653,7 @@ class Rc {
10643
10653
  if (this._textConfig.glyphs.retainedBatches) {
10644
10654
  const n = this.$nova7o(e, t, i, s);
10645
10655
  if (n) {
10646
- this.$nova4b.touch(n, U(e), this._rootPass), this.$nova2s(n, i, s);
10656
+ this.$nova4b.touch(n, G(e), this._rootPass), this.$nova2s(n, i, s);
10647
10657
  return;
10648
10658
  }
10649
10659
  }
@@ -10698,7 +10708,7 @@ class Rc {
10698
10708
  }
10699
10709
  }
10700
10710
  $nova7o(e, t, i, s) {
10701
- const r = e.revision ?? 0, n = e.staticRevision ?? 0, o = this.$nova8c(i, t), a = U(e), h = this._glyphTextBatchCache.get(a) ?? null;
10711
+ const r = e.revision ?? 0, n = e.staticRevision ?? 0, o = this.$nova8c(i, t), a = G(e), h = this._glyphTextBatchCache.get(a) ?? null;
10702
10712
  if (!h || h.count !== e.count || h.mode !== t || h.staticRevision !== n || h.visibilityKey !== o || h.incomplete || this.$nova4m(h)) {
10703
10713
  const d = this.$novax(e, t, i, s, o);
10704
10714
  return d ? (h && this.$nova28(h), this._glyphTextBatchCache.set(a, d), d) : null;
@@ -11011,7 +11021,7 @@ class Rc {
11011
11021
  t && (t.lastUsed = this._time, t.pinnedFrame = this._time, e.lastUsed = this._time);
11012
11022
  }
11013
11023
  $nova7q(e, t) {
11014
- const i = U(e), s = this._iconStreamBatchCache.get(i) ?? null, r = e.revision ?? 0, n = e.staticRevision ?? 0, o = s ? this.$nova4s(s) : !1;
11024
+ const i = G(e), s = this._iconStreamBatchCache.get(i) ?? null, r = e.revision ?? 0, n = e.staticRevision ?? 0, o = s ? this.$nova4s(s) : !1;
11015
11025
  if (!s || s.count !== e.count || s.staticRevision !== n || s.incomplete || o) {
11016
11026
  const a = this.$nova10(e, t);
11017
11027
  return !a || a.groups.length === 0 ? s && !o && s.count === e.count ? (this.$novaae(s, e), s.revision = r, s) : null : (s && this.$nova2d(s), this._iconStreamBatchCache.set(i, a), a);
@@ -11049,7 +11059,7 @@ class Rc {
11049
11059
  this.$novab3(t, i.indices, i.geometryData, i.rectSource, i.deviceSpace), i.geometryUpload.lastData = void 0;
11050
11060
  }
11051
11061
  $nova8p(e, t, i) {
11052
- const s = U(e), r = this._textStreamBatchCache.get(s) ?? null, n = e.revision ?? 0, o = e.staticRevision ?? 0, a = this.$nova8k(t, i, this.$nova8l(e.meta, "run-atlas")), h = this.$nova8c(t, "run-atlas", r?.hasTiledText), d = this._textConfig.tightRunAtlas ? this.$nova25(t) : void 0, l = d?.stamp;
11062
+ const s = G(e), r = this._textStreamBatchCache.get(s) ?? null, n = e.revision ?? 0, o = e.staticRevision ?? 0, a = this.$nova8k(t, i, this.$nova8l(e.meta, "run-atlas")), h = this.$nova8c(t, "run-atlas", r?.hasTiledText), d = this._textConfig.tightRunAtlas ? this.$nova25(t) : void 0, l = d?.stamp;
11053
11063
  if (!r || r.count !== e.count || r.staticRevision !== o || r.rasterScale !== a || r.deviceStamp !== l || r.visibilityKey !== h || r.incomplete || this.$nova4t(r)) {
11054
11064
  const u = this.$nova1p(e, t, i, a, h);
11055
11065
  return u ? (r && this.$nova2d(r), this.$nova96(u, d), this._textStreamBatchCache.set(s, u), u) : null;
@@ -11203,7 +11213,7 @@ class Rc {
11203
11213
  }
11204
11214
  }
11205
11215
  $nova86(e) {
11206
- const t = U(e), i = this._stripeStreamBatchCache.get(t) ?? null, s = e.revision ?? 0, r = e.staticRevision ?? 0;
11216
+ const t = G(e), i = this._stripeStreamBatchCache.get(t) ?? null, s = e.revision ?? 0, r = e.staticRevision ?? 0;
11207
11217
  if (!i || i.count !== e.count || i.staticRevision !== r) {
11208
11218
  const n = this.$nova1j(e);
11209
11219
  return n ? (i && this.$nova2c(i), this._stripeStreamBatchCache.set(t, n), n) : null;
@@ -11279,7 +11289,7 @@ class Rc {
11279
11289
  }
11280
11290
  }
11281
11291
  $nova2j(e, t, i) {
11282
- const s = U(e);
11292
+ const s = G(e);
11283
11293
  let r = this._particleCircleBatchCache.get(s);
11284
11294
  const n = e.revision ?? 0, o = e.staticRevision ?? 0;
11285
11295
  let a = null, h = null;
@@ -11296,7 +11306,7 @@ class Rc {
11296
11306
  const r = this._assets.resolveDrawableKey("particle", e.texture, (g) => this._resolveSourceKey(g));
11297
11307
  let n = this._textures.get(r);
11298
11308
  n || (n = this.$nova1r(r, s, i)), n.lastUsed = this._time;
11299
- const o = U(e), a = e.spriteSizes !== void 0 && e.textureRects !== void 0;
11309
+ const o = G(e), a = e.spriteSizes !== void 0 && e.textureRects !== void 0;
11300
11310
  let h = this._particleSpriteBatchCache.get(o);
11301
11311
  const d = e.revision ?? 0, l = e.staticRevision ?? 0;
11302
11312
  let u = null, f = null;
@@ -12150,7 +12160,7 @@ class Rc {
12150
12160
  $nova3q() {
12151
12161
  if (this.$nova3y && this.$nova3x && this.$nova40)
12152
12162
  return { program: this.$nova3y, buffer: this.$nova3x, vao: this.$nova40 };
12153
- const e = Q.create(this._gl, Ja, Jt);
12163
+ const e = j.create(this._gl, Ja, Jt);
12154
12164
  let t, i;
12155
12165
  try {
12156
12166
  t = this._createBuffer(), i = this.$novaw(e, t);
@@ -12171,7 +12181,7 @@ class Rc {
12171
12181
  return s;
12172
12182
  }
12173
12183
  $nova45() {
12174
- return this.$nova1y ??= Q.create(this._gl, tc, ic), this.$nova1y;
12184
+ return this.$nova1y ??= j.create(this._gl, tc, ic), this.$nova1y;
12175
12185
  }
12176
12186
  $nova1f(e = this.$nova9f, t = !1) {
12177
12187
  const i = this._gl, s = this._createVao(), r = (t ? mt : Ve) * A, n = t ? this.$nova45() : this.$nova9h;
@@ -12188,7 +12198,7 @@ class Rc {
12188
12198
  return t.bindVertexArray(i), t.bindBuffer(t.ARRAY_BUFFER, e), this._bindAttrib(this.$novaa0, "a_position", 2, s, 0), this._bindAttrib(this.$novaa0, "a_uv", 2, s, 2), this._bindAttrib(this.$novaa0, "a_color", 4, s, 4), t.bindVertexArray(null), i;
12189
12199
  }
12190
12200
  $nova7c() {
12191
- return this._distanceFieldTextProgram ??= Q.create(
12201
+ return this._distanceFieldTextProgram ??= j.create(
12192
12202
  this._gl,
12193
12203
  hc,
12194
12204
  dc
@@ -12264,28 +12274,28 @@ class Rc {
12264
12274
  return this.$nova9(i, "a_rect", 4, r, 0, 1), this.$nova9(i, "a_minWidth", 1, r, 4, 1), t.bindVertexArray(null), s;
12265
12275
  }
12266
12276
  $nova7z() {
12267
- return this.$nova6w ??= Q.create(
12277
+ return this.$nova6w ??= j.create(
12268
12278
  this._gl,
12269
12279
  vc,
12270
12280
  Us
12271
12281
  ), this.$nova6w;
12272
12282
  }
12273
12283
  $nova7v() {
12274
- return this.$nova5t ??= Q.create(
12284
+ return this.$nova5t ??= j.create(
12275
12285
  this._gl,
12276
12286
  mc,
12277
12287
  Gs
12278
12288
  ), this.$nova5t;
12279
12289
  }
12280
12290
  $nova7f() {
12281
- return this.$nova3z ??= Q.create(
12291
+ return this.$nova3z ??= j.create(
12282
12292
  this._gl,
12283
12293
  ec,
12284
12294
  Jt
12285
12295
  ), this.$nova3z;
12286
12296
  }
12287
12297
  $nova7w() {
12288
- return this.$nova5u ??= Q.create(
12298
+ return this.$nova5u ??= j.create(
12289
12299
  this._gl,
12290
12300
  gc,
12291
12301
  Gs
@@ -12423,7 +12433,7 @@ class Rc {
12423
12433
  }
12424
12434
  $nova6r(e, t, i, s, r) {
12425
12435
  const n = this._textRasterCanvas, o = Math.max(1, Math.ceil(e.width * i)), a = Math.max(1, Math.ceil(e.height * i)), h = this.$nova50(t.font);
12426
- if (e.parser === "markdown" || H(e))
12436
+ if (e.parser === "markdown" || V(e))
12427
12437
  return this.$nova6q(e, t, i, h, o, a, s, r);
12428
12438
  const d = this.$nova8j(e, t, h), l = this.$nova8h(e, t, d, i, o, a), u = this.$nova87();
12429
12439
  if (!Number.isFinite(l.width) || !Number.isFinite(l.height) || !Number.isFinite(l.boxPixels) || l.width > u || l.height > u)
@@ -12439,7 +12449,7 @@ class Rc {
12439
12449
  $nova6q(e, t, i, s, r, n, o, a) {
12440
12450
  t.direction !== void 0 && (s.save(), s.direction = t.direction);
12441
12451
  try {
12442
- const h = H(e), d = (g, m) => (s.font = m, s.measureText(g).width), u = { runs: (h ? it(e, d) : st(e, d, { family: "sans-serif", lineHeight: t.lineHeight })).runs, wrapping: h }, f = { width: r, height: n, offsetX: 0, offsetY: 0, drawWidth: e.width, drawHeight: e.height, boxPixels: r * n }, _ = this.$nova87();
12452
+ const h = V(e), d = (g, m) => (s.font = m, s.measureText(g).width), u = { runs: (h ? it(e, d) : st(e, d, { family: "sans-serif", lineHeight: t.lineHeight })).runs, wrapping: h }, f = { width: r, height: n, offsetX: 0, offsetY: 0, drawWidth: e.width, drawHeight: e.height, boxPixels: r * n }, _ = this.$nova87();
12443
12453
  if (!Number.isFinite(r) || !Number.isFinite(n) || !Number.isFinite(f.boxPixels) || r > _ || n > _)
12444
12454
  return this.$nova1v(o, a, u, f, i, _);
12445
12455
  const v = this._textRasterCanvas;
@@ -12510,13 +12520,13 @@ class Rc {
12510
12520
  ].join(":");
12511
12521
  }
12512
12522
  $nova1l(e, t) {
12513
- const i = [
12523
+ const i = this._textConfig.tightRunAtlas && !V(e) && e.parser !== "markdown" && !t.ellipsis && t.horizontalAlign === "left" && t.overflowAlign === "start" ? "ink" : e.width, s = [
12514
12524
  e.parser ?? "string",
12515
12525
  e.styles?.wrap ?? "none",
12516
12526
  e.styles?.maxLines,
12517
- H(e) ? t.opacity : "",
12527
+ V(e) ? t.opacity : "",
12518
12528
  e.text,
12519
- e.width,
12529
+ i,
12520
12530
  e.height,
12521
12531
  t.font,
12522
12532
  t.lineHeight,
@@ -12530,8 +12540,8 @@ class Rc {
12530
12540
  t.verticalAlign,
12531
12541
  t.ellipsis,
12532
12542
  this._textConfig.tightRunAtlas ? "tight" : "box"
12533
- ].join(":"), s = t.direction === void 0 ? i : JSON.stringify([i, t.direction]);
12534
- return t.paint ? JSON.stringify([s, t.paint.key]) : s;
12543
+ ].join(":"), r = t.direction === void 0 ? s : JSON.stringify([s, t.direction]);
12544
+ return t.paint ? JSON.stringify([r, t.paint.key]) : r;
12535
12545
  }
12536
12546
  _resolveSourceKey(e) {
12537
12547
  if (typeof e != "object" || e === null)
@@ -12714,7 +12724,7 @@ class Cc {
12714
12724
  this.novaCanvas = e, this._rendererConfig = i, this._assets = s, this.device = new $a(e), this._frameRenderer = this._createFrameRenderer(), e.element.addEventListener("webglcontextlost", this._handleContextLost), e.element.addEventListener("webglcontextrestored", this._handleContextRestored);
12715
12725
  }
12716
12726
  id = cr(5);
12717
- type = G.WebGL;
12727
+ type = W.WebGL;
12718
12728
  supportsLinearRectRepack = !0;
12719
12729
  capabilities = {
12720
12730
  canvas2d: !1,
@@ -12914,9 +12924,9 @@ class Cc {
12914
12924
  }
12915
12925
  function Mc(c, e, t, i, s) {
12916
12926
  switch (c) {
12917
- case G.Web2D:
12927
+ case W.Web2D:
12918
12928
  return new wa(e, t, s);
12919
- case G.WebGL:
12929
+ case W.WebGL:
12920
12930
  return new Cc(e, t, i, s);
12921
12931
  default:
12922
12932
  throw new Error(`Unsupported Nova render backend: ${String(c)}`);
@@ -13111,7 +13121,7 @@ class Bc {
13111
13121
  return this._releaseFrame(e, !1), t;
13112
13122
  }
13113
13123
  _shouldCompositeSurfaces(e) {
13114
- return this._backend.type === G.Web2D && e.some((t) => t.renderPolicy.cache === "texture");
13124
+ return this._backend.type === W.Web2D && e.some((t) => t.renderPolicy.cache === "texture");
13115
13125
  }
13116
13126
  _renderWithSurfaceTargets(e, t) {
13117
13127
  this._backend.resize?.();
@@ -13163,7 +13173,7 @@ class Bc {
13163
13173
  i();
13164
13174
  }
13165
13175
  _shouldCacheSurface(e) {
13166
- return this._backend.type === G.Web2D ? e.renderPolicy.cache === "texture" : !String(e.name ?? "").endsWith(":controls");
13176
+ return this._backend.type === W.Web2D ? e.renderPolicy.cache === "texture" : !String(e.name ?? "").endsWith(":controls");
13167
13177
  }
13168
13178
  _ensureSurfaceCache(e) {
13169
13179
  const t = this._surfaceCaches.get(e);
@@ -13825,13 +13835,13 @@ function kc(c, e) {
13825
13835
  F.Update,
13826
13836
  !1,
13827
13837
  (s) => c.update(s),
13828
- (s, r) => s instanceof W && (r & E.Update.Run) !== 0 ? s.doUpdate() : void 0
13838
+ (s, r) => s instanceof H && (r & E.Update.Run) !== 0 ? s.doUpdate() : void 0
13829
13839
  ),
13830
13840
  Se(
13831
13841
  F.Matrix,
13832
13842
  !1,
13833
13843
  (s) => c.matrix(s),
13834
- (s) => s instanceof W ? s.doMatrix() : void 0
13844
+ (s) => s instanceof H ? s.doMatrix() : void 0
13835
13845
  ),
13836
13846
  Se(F.Render, !1, (s) => c.render(s)),
13837
13847
  Se(F.Flush, !1, () => c.flush()),
@@ -13857,7 +13867,7 @@ function Ac() {
13857
13867
  return [
13858
13868
  // Обычная запись localActive сохраняет прежний update lifecycle subtree;
13859
13869
  // только structural reparent запрашивает EffectiveActive без Update.Run.
13860
- q(
13870
+ X(
13861
13871
  "localActive",
13862
13872
  F.Update,
13863
13873
  !0,
@@ -13869,19 +13879,19 @@ function Ac() {
13869
13879
  const h = a.parent?.getLocal("active") ?? !0;
13870
13880
  return a.getLocal("localActive") && h;
13871
13881
  }),
13872
- q("localVisible", F.Render, !0, r, r, !0),
13882
+ X("localVisible", F.Render, !0, r, r, !0),
13873
13883
  Xs("visible", F.Render, r, r, !0, (a) => {
13874
13884
  const h = a.parent?.getLocal("visible") ?? !0;
13875
13885
  return a.getLocal("localVisible") && h;
13876
13886
  }),
13877
- q("opacity", F.Render, !0, o, 0, 1),
13878
- q("width", F.Render, !0, n, 0, 0),
13879
- q("height", F.Render, !0, n, 0, 0),
13880
- q("x", F.Matrix, !0, t | i | s, i | s, 0),
13881
- q("y", F.Matrix, !0, t | i | s, i | s, 0),
13882
- q("scaleX", F.Matrix, !0, t | i | s, i | s, 1),
13883
- q("scaleY", F.Matrix, !0, t | i | s, i | s, 1),
13884
- q("rotation", F.Matrix, !0, t | i | s, i | s, 0),
13887
+ X("opacity", F.Render, !0, o, 0, 1),
13888
+ X("width", F.Render, !0, n, 0, 0),
13889
+ X("height", F.Render, !0, n, 0, 0),
13890
+ X("x", F.Matrix, !0, t | i | s, i | s, 0),
13891
+ X("y", F.Matrix, !0, t | i | s, i | s, 0),
13892
+ X("scaleX", F.Matrix, !0, t | i | s, i | s, 1),
13893
+ X("scaleY", F.Matrix, !0, t | i | s, i | s, 1),
13894
+ X("rotation", F.Matrix, !0, t | i | s, i | s, 0),
13885
13895
  {
13886
13896
  name: "matrix",
13887
13897
  phase: F.Matrix,
@@ -13890,14 +13900,14 @@ function Ac() {
13890
13900
  downMask: i,
13891
13901
  compute: (a) => a._computeWorldMatrix()
13892
13902
  },
13893
- q("interactive", F.PreUpdate, !0, c, 0, !1),
13894
- q("propagateUpdate", F.PreUpdate, !0, c, 0, !1),
13895
- q("cursor", F.PreUpdate, !0, c, 0, null),
13896
- q("cursorContext", F.PreUpdate, !0, c, 0, null),
13897
- q("hitTest", F.PreUpdate, !0, c, 0, null)
13903
+ X("interactive", F.PreUpdate, !0, c, 0, !1),
13904
+ X("propagateUpdate", F.PreUpdate, !0, c, 0, !1),
13905
+ X("cursor", F.PreUpdate, !0, c, 0, null),
13906
+ X("cursorContext", F.PreUpdate, !0, c, 0, null),
13907
+ X("hitTest", F.PreUpdate, !0, c, 0, null)
13898
13908
  ];
13899
13909
  }
13900
- function q(c, e, t, i, s, r) {
13910
+ function X(c, e, t, i, s, r) {
13901
13911
  return { name: c, phase: e, source: t, selfMask: i, downMask: s, defaultValue: r };
13902
13912
  }
13903
13913
  function Xs(c, e, t, i, s, r) {
@@ -14887,7 +14897,7 @@ class th {
14887
14897
  }
14888
14898
  if (!(!this.interactiveNodes.has(e) && !t) && !this._spatialFullDirty && (this.interactiveNodes.has(e) && this._spatialDirtyNodes.add(e), !!t))
14889
14899
  for (const i of e.children)
14890
- i instanceof W && this.markSpatialDirty(i, !0);
14900
+ i instanceof H && this.markSpatialDirty(i, !0);
14891
14901
  }
14892
14902
  removeNodeReferences(e) {
14893
14903
  this.interactiveNodes.delete(e), this.canvasLifecycleNodes.delete(e), this._spatialDirtyNodes.delete(e), this._spatialIndex.remove(e), this.hoveredNodes.delete(e);
@@ -15106,7 +15116,7 @@ class th {
15106
15116
  _buildEventPath(e) {
15107
15117
  const t = [];
15108
15118
  let i = e;
15109
- for (; i instanceof W; )
15119
+ for (; i instanceof H; )
15110
15120
  t.unshift(i), i = i.parent;
15111
15121
  return t;
15112
15122
  }
@@ -15714,7 +15724,7 @@ function jr(c, e, t, i, s, r, n, o, a) {
15714
15724
  const l = h.children;
15715
15725
  for (let u = l.length - 1; u >= 0; u -= 1) {
15716
15726
  const f = l[u];
15717
- if (!(f instanceof W))
15727
+ if (!(f instanceof H))
15718
15728
  return !1;
15719
15729
  n.push(f);
15720
15730
  }
@@ -15732,7 +15742,7 @@ function lh(c, e) {
15732
15742
  const s = i.children;
15733
15743
  for (let r = s.length - 1; r >= 0; r -= 1) {
15734
15744
  const n = s[r];
15735
- n instanceof W && t.push(n);
15745
+ n instanceof H && t.push(n);
15736
15746
  }
15737
15747
  }
15738
15748
  }
@@ -15769,7 +15779,7 @@ class fh {
15769
15779
  constructor(e) {
15770
15780
  this._schemaRegistry = e.schemaRegistry;
15771
15781
  const t = e.rendererConfig ?? Me;
15772
- this._resolveRendererConfig = typeof t == "function" ? t : () => t, this._rendererType = e.rendererType ?? G.WebGL;
15782
+ this._resolveRendererConfig = typeof t == "function" ? t : () => t, this._rendererType = e.rendererType ?? W.WebGL;
15773
15783
  }
15774
15784
  prepareSurface(e, t = !1) {
15775
15785
  if (this._activePrepareGeneration !== void 0)
@@ -15778,7 +15788,7 @@ class fh {
15778
15788
  this._activePrepareGeneration = i;
15779
15789
  const s = performance.now();
15780
15790
  try {
15781
- const r = e.renderGraph, n = this._lastFrame ? ai(this._lastFrame)?.nodeIds.some((a) => r.retainedPaintDirtyNodeIds.has(a)) ?? !1 : !1, o = r.paintDirtyNodeIds.size > 0 || r.resourceDirtyNodeIds.size > 0 || r.visibilityDirtyNodeIds.size > 0 || this._rendererType !== G.WebGL && r.retainedPaintDirtyNodeIds.size > 0 || n || r.hasOwnedRectBatchWork && (e.renderCullingMode !== "off" || e.captureContext !== void 0 || !r.canPrepareOwnedRectBatches()) || this._lastFrame && At(this._lastFrame)?.hasComposition && r.transformDirtyNodeIds.size > 0;
15791
+ const r = e.renderGraph, n = this._lastFrame ? ai(this._lastFrame)?.nodeIds.some((a) => r.retainedPaintDirtyNodeIds.has(a)) ?? !1 : !1, o = r.paintDirtyNodeIds.size > 0 || r.resourceDirtyNodeIds.size > 0 || r.visibilityDirtyNodeIds.size > 0 || this._rendererType !== W.WebGL && r.retainedPaintDirtyNodeIds.size > 0 || n || r.hasOwnedRectBatchWork && (e.renderCullingMode !== "off" || e.captureContext !== void 0 || !r.canPrepareOwnedRectBatches()) || this._lastFrame && At(this._lastFrame)?.hasComposition && r.transformDirtyNodeIds.size > 0;
15782
15792
  return this._lastFrame && !e.renderFrameDirty && !o && !this._canonicalOrderDiverged ? this._prepareRetainedFrame(e, s, i) : this._prepareStructuralFrame(e, s, i, t);
15783
15793
  } catch (r) {
15784
15794
  throw this._activePrepareGeneration === i && (this._activePrepareGeneration = void 0), r;
@@ -15788,7 +15798,7 @@ class fh {
15788
15798
  this._lastFrame = void 0, this._canonicalOrderDiverged = !1;
15789
15799
  }
15790
15800
  _prepareRetainedFrame(e, t, i) {
15791
- const s = e.renderGraph, r = this._lastFrame, n = r.patchRevision, o = r.metrics, a = ps(s.groupsById.values(), r.viewport), h = this._rendererType === G.WebGL ? Hi(r) : void 0, d = this._rendererType === G.WebGL ? Vi(r) : void 0, l = h?.itemIds.length ?? 0, u = d?.nodeIds.length ?? 0;
15801
+ const s = e.renderGraph, r = this._lastFrame, n = r.patchRevision, o = r.metrics, a = ps(s.groupsById.values(), r.viewport), h = this._rendererType === W.WebGL ? Hi(r) : void 0, d = this._rendererType === W.WebGL ? Vi(r) : void 0, l = h?.itemIds.length ?? 0, u = d?.nodeIds.length ?? 0;
15792
15802
  let f, _;
15793
15803
  try {
15794
15804
  f = s.prepareRetainedTransformSnapshots(h);
@@ -15864,7 +15874,7 @@ class fh {
15864
15874
  }
15865
15875
  _prepareLinearRectRepackFrame(e, t, i, s, r) {
15866
15876
  const n = this._lastFrame, o = e.renderLayer.rootGroup.id;
15867
- if (!n || this._rendererType !== G.WebGL || !this._rendererConfig.batching.plainRectStream || e.fullRenderFrameDirty || e.renderCullingMode !== "off" || t.reparentOperations.length === 0 || t.hasNonReparentStructuralMutation || t.paintNodeIds.size > 0 || t.resourceNodeIds.size > 0 || t.visibilityNodeIds.size > 0 || t.retainedPaintNodeIds.size > 0 || t.childrenGroupIds.size !== 1 || !t.childrenGroupIds.has(o) || !ph(t.cacheGroupIds, o))
15877
+ if (!n || this._rendererType !== W.WebGL || !this._rendererConfig.batching.plainRectStream || e.fullRenderFrameDirty || e.renderCullingMode !== "off" || t.reparentOperations.length === 0 || t.hasNonReparentStructuralMutation || t.paintNodeIds.size > 0 || t.resourceNodeIds.size > 0 || t.visibilityNodeIds.size > 0 || t.retainedPaintNodeIds.size > 0 || t.childrenGroupIds.size !== 1 || !t.childrenGroupIds.has(o) || !ph(t.cacheGroupIds, o))
15868
15878
  return;
15869
15879
  const a = dh(
15870
15880
  n,
@@ -16143,7 +16153,7 @@ class fh {
16143
16153
  throw new Error("Nova render subtree did not produce an aligned segmented program.");
16144
16154
  return m.metrics.batches = this._estimateBatches(
16145
16155
  this._rebuildCandidateBatchPlans(t, m.commands)
16146
- ), i === e && this._rendererType === G.WebGL && this._rendererConfig.batching.plainRectStream && e.renderCullingMode === "off" && ch(m, e), { frame: m, program: x, dirtyAcknowledgements: v };
16156
+ ), i === e && this._rendererType === W.WebGL && this._rendererConfig.batching.plainRectStream && e.renderCullingMode === "off" && ch(m, e), { frame: m, program: x, dirtyAcknowledgements: v };
16147
16157
  }
16148
16158
  _mergeStructuralPrograms(e, t, i, s, r, n, o, a) {
16149
16159
  const h = /* @__PURE__ */ new Map();
@@ -16274,7 +16284,7 @@ class fh {
16274
16284
  batches: this._estimateBatches(y.length)
16275
16285
  }
16276
16286
  };
16277
- this._rendererType === G.WebGL && (Hi(B), Vi(B)), t.setInstructionBuffers($);
16287
+ this._rendererType === W.WebGL && (Hi(B), Vi(B)), t.setInstructionBuffers($);
16278
16288
  const P = Is(B, u, f);
16279
16289
  if (P)
16280
16290
  return { frame: B, program: P, dirtyAcknowledgements: o.dirtyAcknowledgements };
@@ -16331,7 +16341,7 @@ class fh {
16331
16341
  });
16332
16342
  for (let r = s.children.length - 1; r >= 0; r -= 1) {
16333
16343
  const n = s.children[r];
16334
- n instanceof W && i.push(n);
16344
+ n instanceof H && i.push(n);
16335
16345
  }
16336
16346
  }
16337
16347
  return Object.freeze(t);
@@ -16355,7 +16365,7 @@ function ph(c, e) {
16355
16365
  return !1;
16356
16366
  return !0;
16357
16367
  }
16358
- class It extends W {
16368
+ class It extends H {
16359
16369
  name;
16360
16370
  _activeRenderContext = null;
16361
16371
  _captureContext;
@@ -16491,7 +16501,7 @@ class It extends W {
16491
16501
  captureSubtreeWithContext(e, t, i, s, r) {
16492
16502
  const n = [];
16493
16503
  let o = e.parent;
16494
- for (; o instanceof W && (n.push(o), o !== this); )
16504
+ for (; o instanceof H && (n.push(o), o !== this); )
16495
16505
  o = o.parent;
16496
16506
  if (e !== this && n.at(-1) !== this)
16497
16507
  throw new Error("[Nova] Capture source is detached from its surface");
@@ -16539,7 +16549,7 @@ class It extends W {
16539
16549
  throw new AggregateError(e, "[Nova] Surface disposal failed");
16540
16550
  }
16541
16551
  createNode(e, ...t) {
16542
- const i = e ? mn(e, this._nova, this, ...t) : new W(this._nova, this);
16552
+ const i = e ? mn(e, this._nova, this, ...t) : new H(this._nova, this);
16543
16553
  return this.addChild(i), i;
16544
16554
  }
16545
16555
  get canvas() {
@@ -17359,7 +17369,7 @@ class Ih {
17359
17369
  constructor(e) {
17360
17370
  if (!(e.target instanceof HTMLCanvasElement))
17361
17371
  throw new TypeError("NovaApp target must be an HTMLCanvasElement");
17362
- this._inputOptions = this._resolveInputOptions(e.input), this._webglAttributes = e.renderer?.webgl, this._mainRendererType = e.renderer?.main ?? G.WebGL, this._rendererConfig = qi(e.renderer?.config), this._canvas = Dt.attach(e.target, {
17372
+ this._inputOptions = this._resolveInputOptions(e.input), this._webglAttributes = e.renderer?.webgl, this._mainRendererType = e.renderer?.main ?? W.WebGL, this._rendererConfig = qi(e.renderer?.config), this._canvas = Dt.attach(e.target, {
17363
17373
  ...e.size,
17364
17374
  webgl: this._webglAttributes,
17365
17375
  contextType: this._mainRendererType,
@@ -17409,7 +17419,7 @@ class Ih {
17409
17419
  const t = this.events.interactiveNodes.size > 0, i = this.cursors.cursorNodes.size > 0;
17410
17420
  let s = !1;
17411
17421
  for (const r of e.direct) {
17412
- if (!(r instanceof W))
17422
+ if (!(r instanceof H))
17413
17423
  continue;
17414
17424
  const n = r.surface;
17415
17425
  this._phaseDirtySurfaces.add(n), s ||= !n.renderGraph;
@@ -17428,9 +17438,9 @@ class Ih {
17428
17438
  render(e) {
17429
17439
  this._debugger.phaseStart("render"), this._diagnostics.phaseStart("render"), this._diagnostics.recordDirtyRenderNodes(e.dirty.length), Mt({ payload: e });
17430
17440
  for (const t of e.dirty)
17431
- t instanceof It ? this._dirtySurfaces.add(t) : t instanceof W && this._dirtySurfaces.add(t.surface);
17441
+ t instanceof It ? this._dirtySurfaces.add(t) : t instanceof H && this._dirtySurfaces.add(t.surface);
17432
17442
  for (const t of e.dirty)
17433
- if (t instanceof W && !(t instanceof It)) {
17443
+ if (t instanceof H && !(t instanceof It)) {
17434
17444
  const i = e.maskOf(t), s = t.surface.renderGraph, r = t._isCoveredByRenderGroupRoots(s.childrenDirtyGroupIds), n = (i & E.Render.EffectiveVisible) !== 0, o = (i & E.Render.Geometry) !== 0, a = (i & E.Render.Paint) !== 0, h = (i & E.Render.Resource) !== 0, d = (i & E.Render.Cache) !== 0;
17435
17445
  t.markRenderDirtyFlags({
17436
17446
  visibility: n,
@@ -17442,7 +17452,7 @@ class Ih {
17442
17452
  }
17443
17453
  this._phaseDirtySurfaces.clear();
17444
17454
  for (const t of e.direct)
17445
- t instanceof It ? this._phaseDirtySurfaces.add(t) : t instanceof W && this._phaseDirtySurfaces.add(t.surface);
17455
+ t instanceof It ? this._phaseDirtySurfaces.add(t) : t instanceof H && this._phaseDirtySurfaces.add(t.surface);
17446
17456
  for (const t of this._phaseDirtySurfaces)
17447
17457
  t.invalidate({ flush: !0 });
17448
17458
  this._phaseDirtySurfaces.clear(), this._diagnostics.phaseEnd(), this._debugger.phaseEnd();
@@ -17559,7 +17569,7 @@ class Ih {
17559
17569
  return this._invalidateAssetsBroadly(), !0;
17560
17570
  a === "exact" && (n ??= o, this._orchestrator.invalidateRetainedReplay(o));
17561
17571
  }
17562
- return n ? !this._backend.invalidateAsset && this._backend.type !== G.Web2D ? (this._invalidateAssetsBroadly(), !0) : (this._backend.invalidateAsset?.({
17572
+ return n ? !this._backend.invalidateAsset && this._backend.type !== W.Web2D ? (this._invalidateAssetsBroadly(), !0) : (this._backend.invalidateAsset?.({
17563
17573
  id: e.id,
17564
17574
  generation: e.generation,
17565
17575
  previousVersion: e.previousVersion,
@@ -17738,7 +17748,7 @@ class Ih {
17738
17748
  _getRenderPath(e) {
17739
17749
  const t = [];
17740
17750
  let i = e;
17741
- for (; i instanceof W; )
17751
+ for (; i instanceof H; )
17742
17752
  t.unshift(i), i = i.parent;
17743
17753
  return t;
17744
17754
  }
@@ -17793,7 +17803,7 @@ class Ih {
17793
17803
  // Зарегистрированные canvas event handlers для корректного destroy.
17794
17804
  _boundCanvasEvents = {};
17795
17805
  _setupEventListeners() {
17796
- if (this._mainRendererType === G.WebGL) {
17806
+ if (this._mainRendererType === W.WebGL) {
17797
17807
  const t = () => this._renderTextures?.lost();
17798
17808
  this._boundCanvasEvents.webglcontextlost = t, this._canvas.element.addEventListener("webglcontextlost", t);
17799
17809
  const i = () => {
@@ -18232,7 +18242,7 @@ class Gh {
18232
18242
  }
18233
18243
  }
18234
18244
  const Md = Gh.createContextToken("Nova.SyncScope");
18235
- class Bd extends W {
18245
+ class Bd extends H {
18236
18246
  constructor(e, t) {
18237
18247
  super(e, t);
18238
18248
  }
@@ -18316,7 +18326,7 @@ class Bd extends W {
18316
18326
  return e;
18317
18327
  }
18318
18328
  get novaChildren() {
18319
- return this.children.filter((e) => e instanceof W);
18329
+ return this.children.filter((e) => e instanceof H);
18320
18330
  }
18321
18331
  }
18322
18332
  const ir = "rgba(37, 99, 235, 0.24)", Fe = 128;
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { D as o, a as s, N as t, b as r, R as n, S as N, c as v, d as i, e as c, f as d, g as l, h as p, i as S, j as m, k as R, m as u, n as C, r as A, l as T, o as h, p as E, q as g, s as P, t as y, u as f, v as M } from "./NovaNode-CBZ-Ol-W.js";
2
- import { A as b, C as _, a as x, E as D, G as O, N as B, b as V, c as G, d as L, e as k, f as F, g as H, h as j, i as z, j as q, k as K, l as Y, m as U, n as W, o as w, p as J, q as Q, r as X, s as Z, t as $, u as aa, v as ea, w as oa, x as sa, y as ta, z as ra, B as na, D as Na, F as va, H as ia, I as ca, J as da, J as la, K as pa, L as Sa, M as ma, O as Ra, P as ua, Q as Ca, R as Aa, S as Ta, T as ha, U as Ea, V as ga, W as Pa, X as ya, Y as fa, Z as Ma, _ as Ia, $ as ba, a0 as _a, a1 as xa, a2 as Da, a3 as Oa, a4 as Ba, a5 as Va, a6 as Ga, a7 as La, a8 as ka, a9 as Fa, aa as Ha, ab as ja, ac as za, ad as qa, ae as Ka, af as Ya, ag as Ua, ah as Wa, ai as wa, aj as Ja, ak as Qa, al as Xa, am as Za, an as $a, ao as ae, ap as ee, aq as oe, ar as se, as as te, at as re, au as ne, av as Ne, aw as ve, ax as ie, ay as ce, az as de, aA as le, aB as pe, aC as Se, aD as me, aE as Re, aF as ue, aG as Ce, aH as Ae, aI as Te, aJ as he, aK as Ee, aL as ge, aM as Pe, aN as ye, aO as fe, aP as Me, aQ as Ie, aR as be, aS as _e, aT as xe, aU as De, aV as Oe, aW as Be, aX as Ve, aY as Ge, aZ as Le, a_ as ke, a$ as Fe, b0 as He, b1 as je, b2 as ze, b3 as qe, b4 as Ke, b5 as Ye, b6 as Ue, b7 as We, b8 as we } from "./NovaTextSelectionService-CPRzGqvI.js";
2
+ import { A as b, C as _, a as x, E as D, G as O, N as B, b as V, c as G, d as L, e as k, f as F, g as H, h as j, i as z, j as q, k as K, l as Y, m as U, n as W, o as w, p as J, q as Q, r as X, s as Z, t as $, u as aa, v as ea, w as oa, x as sa, y as ta, z as ra, B as na, D as Na, F as va, H as ia, I as ca, J as da, J as la, K as pa, L as Sa, M as ma, O as Ra, P as ua, Q as Ca, R as Aa, S as Ta, T as ha, U as Ea, V as ga, W as Pa, X as ya, Y as fa, Z as Ma, _ as Ia, $ as ba, a0 as _a, a1 as xa, a2 as Da, a3 as Oa, a4 as Ba, a5 as Va, a6 as Ga, a7 as La, a8 as ka, a9 as Fa, aa as Ha, ab as ja, ac as za, ad as qa, ae as Ka, af as Ya, ag as Ua, ah as Wa, ai as wa, aj as Ja, ak as Qa, al as Xa, am as Za, an as $a, ao as ae, ap as ee, aq as oe, ar as se, as as te, at as re, au as ne, av as Ne, aw as ve, ax as ie, ay as ce, az as de, aA as le, aB as pe, aC as Se, aD as me, aE as Re, aF as ue, aG as Ce, aH as Ae, aI as Te, aJ as he, aK as Ee, aL as ge, aM as Pe, aN as ye, aO as fe, aP as Me, aQ as Ie, aR as be, aS as _e, aT as xe, aU as De, aV as Oe, aW as Be, aX as Ve, aY as Ge, aZ as Le, a_ as ke, a$ as Fe, b0 as He, b1 as je, b2 as ze, b3 as qe, b4 as Ke, b5 as Ye, b6 as Ue, b7 as We, b8 as we } from "./NovaTextSelectionService-Bdi0AqZ5.js";
3
3
  import { N as Qe, R as Xe, c as Ze, a as $e, b as ao, d as eo, e as oo, f as so, g as to, h as ro, i as no, j as No, k as vo, l as io, m as co, n as lo, o as po, r as So, p as mo, s as Ro, q as uo } from "./NovaRenderCommandWriter-CWQRa42y.js";
4
4
  import { b as Ao, a as To, c as ho, d as Eo, e as go, p as Po, f as yo, s as fo, t as Mo, u as Io } from "./nova-color-parser-BCN_rFRN.js";
5
5
  import { N as _o, a as xo, c as Do, b as Oo, d as Bo, e as Vo, f as Go, g as Lo, h as ko, i as Fo, j as Ho, k as jo, l as zo, m as qo, n as Ko, o as Yo, r as Uo } from "./NovaAssetRegistry-p2QlCwvT.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nova-lab/core",
3
3
  "type": "module",
4
- "version": "1.2.0-dev.256",
4
+ "version": "1.2.1-dev.258",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -215,7 +215,7 @@
215
215
  "example:courier": "vite --config examples/courier/vite.config.ts",
216
216
  "example:fps": "vite --config examples/fps/vite.config.ts",
217
217
  "example:rpg": "vite --config examples/rpg/vite.config.ts",
218
- "lint:release": "eslint src build-tools vite.config.ts package.json eslint.config.mjs eslint.endge.config.mjs",
218
+ "lint:release": "eslint src/model/render/backends/webgl/NovaWebGLFrameRenderer.ts",
219
219
  "test:release": "node node_modules/vitest/vitest.mjs run --maxWorkers=1 --exclude \"**/benchmarks/**\" --exclude \"**/*.bench.*\" --exclude \"**/*.performance.*\" --exclude \"**/performance/**\" --config vite.config.ts"
220
220
  },
221
221
  "peerDependencies": {