@pygmalionjs/pygmalion 0.6.2 → 0.6.3

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.
@@ -256,14 +256,14 @@ function at(t, e) {
256
256
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
257
257
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
258
258
  }
259
- function Ne() {
260
- return Ne = Object.assign ? Object.assign.bind() : function(t) {
259
+ function Ie() {
260
+ return Ie = Object.assign ? Object.assign.bind() : function(t) {
261
261
  for (var e = 1; e < arguments.length; e++) {
262
262
  var n = arguments[e];
263
263
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
264
264
  }
265
265
  return t;
266
- }, Ne.apply(null, arguments);
266
+ }, Ie.apply(null, arguments);
267
267
  }
268
268
  function ar(t) {
269
269
  return ar = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
@@ -348,7 +348,7 @@ function Se(t) {
348
348
  return Object.assign(e, t);
349
349
  }
350
350
  function $t(t, e, n) {
351
- if (ie(t, z) || Tt(t, z, Ne({}, t[z])), process.env.NODE_ENV !== "production" && rn(n) && !ie(t[z], e)) {
351
+ if (ie(t, z) || Tt(t, z, Ie({}, t[z])), process.env.NODE_ENV !== "production" && rn(n) && !ie(t[z], e)) {
352
352
  var r = t.constructor.name + ".prototype." + e.toString();
353
353
  _("'" + r + "' is decorated with 'override', but no such decorated member was found on prototype.");
354
354
  }
@@ -364,7 +364,7 @@ Use '@override' decorator for methods overridden by subclass.`);
364
364
  }
365
365
  }
366
366
  function Ya(t) {
367
- return ie(t, z) || Tt(t, z, Ne({}, t[z])), t[z];
367
+ return ie(t, z) || Tt(t, z, Ie({}, t[z])), t[z];
368
368
  }
369
369
  function Dt(t) {
370
370
  return typeof t == "object" && typeof t.kind == "string";
@@ -437,7 +437,7 @@ var Ke = {
437
437
  default: Ja
438
438
  };
439
439
  function Ue(t, e, n) {
440
- return It(t) ? t : Array.isArray(t) ? T.array(t, {
440
+ return Nt(t) ? t : Array.isArray(t) ? T.array(t, {
441
441
  name: n
442
442
  }) : V(t) ? T.object(t, void 0, {
443
443
  name: n
@@ -476,7 +476,7 @@ function En(t) {
476
476
  return t;
477
477
  }
478
478
  function Qa(t, e) {
479
- return process.env.NODE_ENV !== "production" && It(t) && _("observable.struct should not be used with observable values"), us(t, e) ? e : t;
479
+ return process.env.NODE_ENV !== "production" && Nt(t) && _("observable.struct should not be used with observable values"), us(t, e) ? e : t;
480
480
  }
481
481
  var ec = "override";
482
482
  function rn(t) {
@@ -628,7 +628,7 @@ function uc(t, e, n) {
628
628
  return this.extend_(t, e, n, !1) === null ? 0 : 1;
629
629
  }
630
630
  function lc(t, e, n, r) {
631
- return fc(t, this, e, n), t.defineComputedProperty_(e, Ne({}, this.options_, {
631
+ return fc(t, this, e, n), t.defineComputedProperty_(e, Ie({}, this.options_, {
632
632
  get: n.get,
633
633
  set: n.set
634
634
  }), r);
@@ -637,7 +637,7 @@ function dc(t, e) {
637
637
  process.env.NODE_ENV !== "production" && On(e, ["getter"]);
638
638
  var n = this, r = e.name, i = e.addInitializer, o;
639
639
  function s(a, c) {
640
- var u = Ne({}, n.options_, {
640
+ var u = Ie({}, n.options_, {
641
641
  get: t,
642
642
  context: a
643
643
  });
@@ -717,8 +717,8 @@ function gc(t, e, n, r) {
717
717
  process.env.NODE_ENV !== "production" && !("value" in r) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
718
718
  '` + i + "' cannot be used on getter/setter properties"));
719
719
  }
720
- var vc = "true", bc = /* @__PURE__ */ Io();
721
- function Io(t) {
720
+ var vc = "true", bc = /* @__PURE__ */ No();
721
+ function No(t) {
722
722
  return {
723
723
  annotationType_: vc,
724
724
  options_: t,
@@ -776,21 +776,21 @@ function _c(t, e, n, r) {
776
776
  function Sc(t, e) {
777
777
  _("'" + this.annotationType_ + "' cannot be used as a decorator");
778
778
  }
779
- var wc = "observable", Oc = "observable.ref", Ec = "observable.shallow", Ac = "observable.struct", No = {
779
+ var wc = "observable", Oc = "observable.ref", Ec = "observable.shallow", Ac = "observable.struct", Io = {
780
780
  deep: !0,
781
781
  name: void 0,
782
782
  defaultDecorator: void 0,
783
783
  proxy: !0
784
784
  };
785
- Object.freeze(No);
785
+ Object.freeze(Io);
786
786
  function zt(t) {
787
- return t || No;
787
+ return t || Io;
788
788
  }
789
789
  var ur = /* @__PURE__ */ An(wc), xc = /* @__PURE__ */ An(Oc, {
790
790
  enhancer: En
791
- }), Ic = /* @__PURE__ */ An(Ec, {
791
+ }), Nc = /* @__PURE__ */ An(Ec, {
792
792
  enhancer: Za
793
- }), Nc = /* @__PURE__ */ An(Ac, {
793
+ }), Ic = /* @__PURE__ */ An(Ac, {
794
794
  enhancer: Qa
795
795
  }), Mo = /* @__PURE__ */ Se(ur);
796
796
  function Vt(t) {
@@ -798,7 +798,7 @@ function Vt(t) {
798
798
  }
799
799
  function Mc(t) {
800
800
  var e;
801
- return t ? (e = t.defaultDecorator) != null ? e : Io(t) : void 0;
801
+ return t ? (e = t.defaultDecorator) != null ? e : No(t) : void 0;
802
802
  }
803
803
  function Pc(t) {
804
804
  var e, n;
@@ -811,7 +811,7 @@ function Po(t, e, n) {
811
811
  $t(t, e, ur);
812
812
  return;
813
813
  }
814
- return It(t) ? t : V(t) ? T.object(t, e, n) : Array.isArray(t) ? T.array(t, e) : pt(t) ? T.map(t, e) : Ae(t) ? T.set(t, e) : typeof t == "object" && t !== null ? t : T.box(t, e);
814
+ return Nt(t) ? t : V(t) ? T.object(t, e, n) : Array.isArray(t) ? T.array(t, e) : pt(t) ? T.map(t, e) : Ae(t) ? T.set(t, e) : typeof t == "object" && t !== null ? t : T.box(t, e);
815
815
  }
816
816
  go(Po, Mo);
817
817
  var Cc = {
@@ -837,9 +837,9 @@ var Cc = {
837
837
  });
838
838
  },
839
839
  ref: /* @__PURE__ */ Se(xc),
840
- shallow: /* @__PURE__ */ Se(Ic),
840
+ shallow: /* @__PURE__ */ Se(Nc),
841
841
  deep: Mo,
842
- struct: /* @__PURE__ */ Se(Nc)
842
+ struct: /* @__PURE__ */ Se(Ic)
843
843
  }, T = /* @__PURE__ */ go(Po, Cc), Co = "computed", Tc = "computed.struct", lr = /* @__PURE__ */ Fr(Co), $c = /* @__PURE__ */ Fr(Tc, {
844
844
  equals: Ke.structural
845
845
  }), xn = function(e, n) {
@@ -896,7 +896,7 @@ function Lc(t, e, n, r) {
896
896
  var a = y.trackingDerivation, c = !e || !a;
897
897
  ne();
898
898
  var u = y.allowStateChanges;
899
- c && (Qe(), u = In(!0));
899
+ c && (Qe(), u = Nn(!0));
900
900
  var l = jr(!0), d = {
901
901
  runAsAction_: c,
902
902
  prevDerivation_: a,
@@ -910,23 +910,23 @@ function Lc(t, e, n, r) {
910
910
  return on = d.actionId_, d;
911
911
  }
912
912
  function kc(t) {
913
- on !== t.actionId_ && _(30), on = t.parentActionId_, t.error_ !== void 0 && (y.suppressReactionErrors = !0), Nn(t.prevAllowStateChanges_), wt(t.prevAllowStateReads_), re(), t.runAsAction_ && Ie(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && Y({
913
+ on !== t.actionId_ && _(30), on = t.parentActionId_, t.error_ !== void 0 && (y.suppressReactionErrors = !0), In(t.prevAllowStateChanges_), wt(t.prevAllowStateReads_), re(), t.runAsAction_ && Ne(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && Y({
914
914
  time: Date.now() - t.startTime_
915
915
  }), y.suppressReactionErrors = !1;
916
916
  }
917
917
  function Fc(t, e) {
918
- var n = In(t);
918
+ var n = Nn(t);
919
919
  try {
920
920
  return e();
921
921
  } finally {
922
- Nn(n);
922
+ In(n);
923
923
  }
924
924
  }
925
- function In(t) {
925
+ function Nn(t) {
926
926
  var e = y.allowStateChanges;
927
927
  return y.allowStateChanges = t, e;
928
928
  }
929
- function Nn(t) {
929
+ function In(t) {
930
930
  y.allowStateChanges = t;
931
931
  }
932
932
  var jc = "create", He = /* @__PURE__ */ (function(t) {
@@ -1057,7 +1057,7 @@ var jc = "create", He = /* @__PURE__ */ (function(t) {
1057
1057
  })), s;
1058
1058
  }, e.computeValue_ = function(r) {
1059
1059
  this.isComputing = !0;
1060
- var i = In(!1), o;
1060
+ var i = Nn(!1), o;
1061
1061
  if (r)
1062
1062
  o = $o(this, this.derivation, this.scope_);
1063
1063
  else if (y.disableErrorBoundaries === !0)
@@ -1068,7 +1068,7 @@ var jc = "create", He = /* @__PURE__ */ (function(t) {
1068
1068
  } catch (s) {
1069
1069
  o = new sn(s);
1070
1070
  }
1071
- return Nn(i), this.isComputing = !1, o;
1071
+ return In(i), this.isComputing = !1, o;
1072
1072
  }, e.suspend_ = function() {
1073
1073
  this.keepAlive_ || (fr(this), this.value_ = void 0, process.env.NODE_ENV !== "production" && this.isTracing_ !== oe.NONE && console.log("[mobx.trace] Computed value '" + this.name_ + "' was suspended and it will recompute on the next access."));
1074
1074
  }, e.observe_ = function(r, i) {
@@ -1084,7 +1084,7 @@ var jc = "create", He = /* @__PURE__ */ (function(t) {
1084
1084
  object: o,
1085
1085
  newValue: c,
1086
1086
  oldValue: a
1087
- }), Ie(u);
1087
+ }), Ne(u);
1088
1088
  }
1089
1089
  s = !1, a = c;
1090
1090
  });
@@ -1174,13 +1174,13 @@ function dr(t) {
1174
1174
  try {
1175
1175
  s.get();
1176
1176
  } catch {
1177
- return Ie(n), wt(e), !0;
1177
+ return Ne(n), wt(e), !0;
1178
1178
  }
1179
1179
  if (t.dependenciesState_ === x.STALE_)
1180
- return Ie(n), wt(e), !0;
1180
+ return Ne(n), wt(e), !0;
1181
1181
  }
1182
1182
  }
1183
- return Ro(t), Ie(n), wt(e), !1;
1183
+ return Ro(t), Ne(n), wt(e), !1;
1184
1184
  }
1185
1185
  }
1186
1186
  }
@@ -1243,14 +1243,14 @@ function Do(t) {
1243
1243
  try {
1244
1244
  return t();
1245
1245
  } finally {
1246
- Ie(e);
1246
+ Ne(e);
1247
1247
  }
1248
1248
  }
1249
1249
  function Qe() {
1250
1250
  var t = y.trackingDerivation;
1251
1251
  return y.trackingDerivation = null, t;
1252
1252
  }
1253
- function Ie(t) {
1253
+ function Ne(t) {
1254
1254
  y.trackingDerivation = t;
1255
1255
  }
1256
1256
  function jr(t) {
@@ -1509,7 +1509,7 @@ function Ge(t) {
1509
1509
  }
1510
1510
  function q(t) {
1511
1511
  if (process.env.NODE_ENV !== "production") {
1512
- var e = Ne({}, t, {
1512
+ var e = Ie({}, t, {
1513
1513
  spyReportStart: !0
1514
1514
  });
1515
1515
  Ge(e);
@@ -1520,7 +1520,7 @@ var Jc = {
1520
1520
  spyReportEnd: !0
1521
1521
  };
1522
1522
  function Y(t) {
1523
- process.env.NODE_ENV !== "production" && Ge(t ? Ne({}, t, {
1523
+ process.env.NODE_ENV !== "production" && Ge(t ? Ie({}, t, {
1524
1524
  type: "report-end",
1525
1525
  spyReportEnd: !0
1526
1526
  }) : Jc);
@@ -1656,7 +1656,7 @@ function hu(t) {
1656
1656
  }), y.allowStateReads = !y.observableRequiresReaction, process.env.NODE_ENV !== "production" && y.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), t.reactionScheduler && Xc(t.reactionScheduler);
1657
1657
  }
1658
1658
  function Xo(t, e, n, r) {
1659
- process.env.NODE_ENV !== "production" && (arguments.length > 4 && _("'extendObservable' expected 2-4 arguments"), typeof t != "object" && _("'extendObservable' expects an object as first argument"), Me(t) && _("'extendObservable' should not be used on maps, use map.merge instead"), V(e) || _("'extendObservable' only accepts plain objects as second argument"), (It(e) || It(n)) && _("Extending an object with another observable (object) is not supported"));
1659
+ process.env.NODE_ENV !== "production" && (arguments.length > 4 && _("'extendObservable' expected 2-4 arguments"), typeof t != "object" && _("'extendObservable' expects an object as first argument"), Me(t) && _("'extendObservable' should not be used on maps, use map.merge instead"), V(e) || _("'extendObservable' only accepts plain objects as second argument"), (Nt(e) || Nt(n)) && _("Extending an object with another observable (object) is not supported"));
1660
1660
  var i = Va(e);
1661
1661
  return ke(function() {
1662
1662
  var o = et(t, r)[O];
@@ -1715,23 +1715,23 @@ var mu = 0, gu = /* @__PURE__ */ (function(t) {
1715
1715
  d = p;
1716
1716
  function w(S) {
1717
1717
  f = void 0;
1718
- var N;
1718
+ var I;
1719
1719
  try {
1720
- N = Be(i + " - runid: " + u + " - yield " + m++, l.next).call(l, S);
1720
+ I = Be(i + " - runid: " + u + " - yield " + m++, l.next).call(l, S);
1721
1721
  } catch (P) {
1722
1722
  return p(P);
1723
1723
  }
1724
- E(N);
1724
+ E(I);
1725
1725
  }
1726
1726
  function g(S) {
1727
1727
  f = void 0;
1728
- var N;
1728
+ var I;
1729
1729
  try {
1730
- N = Be(i + " - runid: " + u + " - yield " + m++, l.throw).call(l, S);
1730
+ I = Be(i + " - runid: " + u + " - yield " + m++, l.throw).call(l, S);
1731
1731
  } catch (P) {
1732
1732
  return p(P);
1733
1733
  }
1734
- E(N);
1734
+ E(I);
1735
1735
  }
1736
1736
  function E(S) {
1737
1737
  if ($(S == null ? void 0 : S.then)) {
@@ -1775,7 +1775,7 @@ function es(t, e) {
1775
1775
  }
1776
1776
  return Ye(t) || !!t[O] || kr(t) || an(t) || Mn(t);
1777
1777
  }
1778
- function It(t) {
1778
+ function Nt(t) {
1779
1779
  return process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), es(t);
1780
1780
  }
1781
1781
  function Hh(t, e) {
@@ -1860,7 +1860,7 @@ function te(t, e) {
1860
1860
  ;
1861
1861
  return e;
1862
1862
  } finally {
1863
- Ie(n);
1863
+ Ne(n);
1864
1864
  }
1865
1865
  }
1866
1866
  function fe(t) {
@@ -1879,7 +1879,7 @@ function he(t, e) {
1879
1879
  r = r.slice();
1880
1880
  for (var i = 0, o = r.length; i < o; i++)
1881
1881
  r[i](e);
1882
- Ie(n);
1882
+ Ne(n);
1883
1883
  }
1884
1884
  }
1885
1885
  function wu(t, e, n) {
@@ -2185,10 +2185,10 @@ var xu = /* @__PURE__ */ Ze("ObservableArrayAdministration", Vr);
2185
2185
  function Ft(t) {
2186
2186
  return wn(t) && xu(t[O]);
2187
2187
  }
2188
- var Iu = {}, $e = "add", un = "delete", rs = /* @__PURE__ */ (function() {
2188
+ var Nu = {}, $e = "add", un = "delete", rs = /* @__PURE__ */ (function() {
2189
2189
  function t(n, r, i) {
2190
2190
  var o = this;
2191
- r === void 0 && (r = Ue), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + se() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] = Iu, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = r, this.name_ = i, $(Map) || _(18), ke(function() {
2191
+ r === void 0 && (r = Ue), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + se() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] = Nu, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = r, this.name_ = i, $(Map) || _(18), ke(function() {
2192
2192
  o.keysAtom_ = Oo(process.env.NODE_ENV !== "production" ? o.name_ + ".keys()" : "ObservableMap.keys()"), o.data_ = /* @__PURE__ */ new Map(), o.hasMap_ = /* @__PURE__ */ new Map(), n && o.merge(n);
2193
2193
  });
2194
2194
  }
@@ -2342,7 +2342,7 @@ var Iu = {}, $e = "add", un = "delete", rs = /* @__PURE__ */ (function() {
2342
2342
  }, e.replace = function(r) {
2343
2343
  var i = this;
2344
2344
  return xe(function() {
2345
- for (var o = Nu(r), s = /* @__PURE__ */ new Map(), a = !1, c = at(i.data_.keys()), u; !(u = c()).done; ) {
2345
+ for (var o = Iu(r), s = /* @__PURE__ */ new Map(), a = !1, c = at(i.data_.keys()), u; !(u = c()).done; ) {
2346
2346
  var l = u.value;
2347
2347
  if (!o.has(l)) {
2348
2348
  var d = i.delete(l);
@@ -2365,12 +2365,12 @@ var Iu = {}, $e = "add", un = "delete", rs = /* @__PURE__ */ (function() {
2365
2365
  if (i.data_.size !== s.size)
2366
2366
  i.keysAtom_.reportChanged();
2367
2367
  else
2368
- for (var S = i.data_.keys(), N = s.keys(), P = S.next(), C = N.next(); !P.done; ) {
2368
+ for (var S = i.data_.keys(), I = s.keys(), P = S.next(), C = I.next(); !P.done; ) {
2369
2369
  if (P.value !== C.value) {
2370
2370
  i.keysAtom_.reportChanged();
2371
2371
  break;
2372
2372
  }
2373
- P = S.next(), C = N.next();
2373
+ P = S.next(), C = I.next();
2374
2374
  }
2375
2375
  i.data_ = s;
2376
2376
  }), this;
@@ -2397,7 +2397,7 @@ var Iu = {}, $e = "add", un = "delete", rs = /* @__PURE__ */ (function() {
2397
2397
  function gi(t) {
2398
2398
  return t[Symbol.toStringTag] = "MapIterator", Hr(t);
2399
2399
  }
2400
- function Nu(t) {
2400
+ function Iu(t) {
2401
2401
  if (pt(t) || Me(t))
2402
2402
  return t;
2403
2403
  if (Array.isArray(t))
@@ -2689,7 +2689,7 @@ var bi = /* @__PURE__ */ Object.create(null), yi = "remove", gr = /* @__PURE__ *
2689
2689
  if (!a)
2690
2690
  return null;
2691
2691
  var c = a.newValue;
2692
- i.value !== c && (i = Ne({}, i, {
2692
+ i.value !== c && (i = Ie({}, i, {
2693
2693
  value: c
2694
2694
  }));
2695
2695
  }
@@ -3009,12 +3009,12 @@ function ln(t, e) {
3009
3009
  return n.name_;
3010
3010
  }
3011
3011
  function ke(t) {
3012
- var e = Qe(), n = In(!0);
3012
+ var e = Qe(), n = Nn(!0);
3013
3013
  ne();
3014
3014
  try {
3015
3015
  return t();
3016
3016
  } finally {
3017
- re(), Nn(n), Ie(e);
3017
+ re(), In(n), Ne(e);
3018
3018
  }
3019
3019
  }
3020
3020
  var Oi = Sn.toString;
@@ -3255,9 +3255,9 @@ var Rn = {};
3255
3255
  * This source code is licensed under the MIT license found in the
3256
3256
  * LICENSE file in the root directory of this source tree.
3257
3257
  */
3258
- var Ii;
3258
+ var Ni;
3259
3259
  function Gu() {
3260
- return Ii || (Ii = 1, process.env.NODE_ENV !== "production" && (function() {
3260
+ return Ni || (Ni = 1, process.env.NODE_ENV !== "production" && (function() {
3261
3261
  function t(h, v) {
3262
3262
  return h === v && (h !== 0 || 1 / h === 1 / v) || h !== h && v !== v;
3263
3263
  }
@@ -3308,9 +3308,9 @@ function Gu() {
3308
3308
  Rn.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3309
3309
  })()), Rn;
3310
3310
  }
3311
- var Ni;
3311
+ var Ii;
3312
3312
  function qu() {
3313
- return Ni || (Ni = 1, process.env.NODE_ENV === "production" ? Ht.exports = Wu() : Ht.exports = Gu()), Ht.exports;
3313
+ return Ii || (Ii = 1, process.env.NODE_ENV === "production" ? Ht.exports = Wu() : Ht.exports = Gu()), Ht.exports;
3314
3314
  }
3315
3315
  var Yu = qu();
3316
3316
  function Mi(t) {
@@ -4325,7 +4325,7 @@ function xl(t) {
4325
4325
  ).replace(Vi, "").replace(/:(?:is|where|not|has)\(\s*(?:,\s*)*\)/gi, "").trim();
4326
4326
  return Vi.lastIndex = 0, e || null;
4327
4327
  }
4328
- function Il(t) {
4328
+ function Nl(t) {
4329
4329
  const e = /* @__PURE__ */ new Set(), n = (r) => {
4330
4330
  for (const i of Array.from(r)) {
4331
4331
  const o = i;
@@ -4352,7 +4352,7 @@ function Il(t) {
4352
4352
  }
4353
4353
  return e;
4354
4354
  }
4355
- function Nl(t) {
4355
+ function Il(t) {
4356
4356
  var r;
4357
4357
  const e = /* @__PURE__ */ new Set(), n = t.getAnimations;
4358
4358
  if (!n) return e;
@@ -4410,10 +4410,10 @@ function Tl(t) {
4410
4410
  const e = Array.from(t.querySelectorAll("*")), n = /* @__PURE__ */ new Set();
4411
4411
  for (const a of e)
4412
4412
  Ur(a) && (a.hasAttribute(yl) || El(a)) && n.add(a);
4413
- for (const a of Il(t))
4414
- n.add(a);
4415
4413
  for (const a of Nl(t))
4416
4414
  n.add(a);
4415
+ for (const a of Il(t))
4416
+ n.add(a);
4417
4417
  const r = new Map(e.map((a, c) => [a, c])), i = Array.from(n).map((a) => {
4418
4418
  const c = Ml(t, a);
4419
4419
  return c ? {
@@ -4606,7 +4606,7 @@ function Zh(t, e, n) {
4606
4606
  }
4607
4607
  }
4608
4608
  let ht = [];
4609
- const Nt = T.box(null), Sr = /* @__PURE__ */ new Set();
4609
+ const It = T.box(null), Sr = /* @__PURE__ */ new Set();
4610
4610
  function Qh(t) {
4611
4611
  const e = /* @__PURE__ */ new Set();
4612
4612
  ht = t.map((r) => {
@@ -4622,19 +4622,19 @@ function Qh(t) {
4622
4622
  ...r.description ? { description: r.description } : {}
4623
4623
  };
4624
4624
  });
4625
- const n = Nt.get();
4625
+ const n = It.get();
4626
4626
  n != null && n >= ht.length && jl(null);
4627
4627
  }
4628
4628
  function ep() {
4629
4629
  return ht;
4630
4630
  }
4631
4631
  function tp() {
4632
- return Nt.get();
4632
+ return It.get();
4633
4633
  }
4634
4634
  function jl(t) {
4635
4635
  const e = t != null && t >= 0 && t < ht.length ? t : null;
4636
- if (e !== Nt.get()) {
4637
- ru(() => Nt.set(e)), kl(
4636
+ if (e !== It.get()) {
4637
+ ru(() => It.set(e)), kl(
4638
4638
  e == null ? void 0 : ht[e].environment
4639
4639
  );
4640
4640
  for (const n of Sr) n();
@@ -4645,7 +4645,7 @@ function np(t) {
4645
4645
  }
4646
4646
  function zl(t) {
4647
4647
  if (t == null || t.length === 0) return !0;
4648
- const e = Nt.get();
4648
+ const e = It.get();
4649
4649
  return e == null ? !0 : t.includes(ht[e].id);
4650
4650
  }
4651
4651
  const Vl = Object.freeze({
@@ -4959,23 +4959,23 @@ function cp(t, e) {
4959
4959
  return !(i != null && !xs(t.root, i));
4960
4960
  });
4961
4961
  }
4962
- function Is(t, e) {
4962
+ function Ns(t, e) {
4963
4963
  if (!t) return !1;
4964
4964
  const n = t.domAttributes;
4965
4965
  if ((n == null ? void 0 : n["data-testid"]) === e.testId) {
4966
4966
  const r = e.attribute;
4967
4967
  if (r == null || (n == null ? void 0 : n[r.name]) === r.value) return !0;
4968
4968
  }
4969
- return (t.children ?? []).some((r) => Is(r, e));
4969
+ return (t.children ?? []).some((r) => Ns(r, e));
4970
4970
  }
4971
- function Ns(t, e) {
4971
+ function Is(t, e) {
4972
4972
  return t.options.find(
4973
- (n) => n.capturedWhen != null && Is(e.root, n.capturedWhen)
4973
+ (n) => n.capturedWhen != null && Ns(e.root, n.capturedWhen)
4974
4974
  );
4975
4975
  }
4976
4976
  function up(t, e) {
4977
4977
  if (e) {
4978
- const n = Ns(t, e);
4978
+ const n = Is(t, e);
4979
4979
  if (n) return n;
4980
4980
  }
4981
4981
  return t.options.find((n) => !Ot(n));
@@ -5183,13 +5183,13 @@ function xp(t, e = {}) {
5183
5183
  viewport: o.size === 1 ? [...o][0] : null
5184
5184
  };
5185
5185
  }
5186
- function Ip(t, e) {
5186
+ function Np(t, e) {
5187
5187
  const n = [];
5188
5188
  return n.push(
5189
5189
  t.foldedCount > 0 ? `${t.frameCount} ${e.frames} (+${t.foldedCount} ${e.folded})` : `${t.frameCount} ${e.frames}`
5190
5190
  ), t.flows.length > 1 && n.push(`${e.flows} ${t.flows.join(" / ")}`), t.scenarioCount > 0 && n.push(`${e.scenarios} ${t.scenarioCount}`), t.viewport && n.push(t.viewport), n.join(" · ");
5191
5191
  }
5192
- const Np = {
5192
+ const Ip = {
5193
5193
  ...Ms,
5194
5194
  radius: 12,
5195
5195
  pillRadius: 999,
@@ -5685,7 +5685,7 @@ function Kp(t) {
5685
5685
  function Up() {
5686
5686
  return Us;
5687
5687
  }
5688
- const Id = 12, Nd = 800, Md = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "META", "LINK", "TEMPLATE", "IFRAME", "BR", "HEAD"]), Pd = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]), Cd = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]);
5688
+ const Nd = 12, Id = 800, Md = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "META", "LINK", "TEMPLATE", "IFRAME", "BR", "HEAD"]), Pd = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]), Cd = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]);
5689
5689
  let Td = 0;
5690
5690
  function Ut(t, e) {
5691
5691
  return {
@@ -5971,7 +5971,7 @@ function Gn(t, e) {
5971
5971
  }
5972
5972
  function Ws(t, e, n, r, i, o, s) {
5973
5973
  var Z, tt, gt;
5974
- const a = o.maxNodes ?? Nd, c = o.maxDepth ?? Id;
5974
+ const a = o.maxNodes ?? Id, c = o.maxDepth ?? Nd;
5975
5975
  if (r.maxDepth = Math.max(r.maxDepth, n), r.count >= a)
5976
5976
  return Kn(r, {
5977
5977
  severity: "warning",
@@ -6024,9 +6024,9 @@ function Ws(t, e, n, r, i, o, s) {
6024
6024
  domStyle: Wn(l),
6025
6025
  ...w
6026
6026
  });
6027
- const S = l.display === "flex" || l.display === "inline-flex", N = S && l.flexDirection.startsWith("row") ? "columns" : "rows", P = Ee(N === "columns" ? l.columnGap : l.rowGap), C = Math.round(
6027
+ const S = l.display === "flex" || l.display === "inline-flex", I = S && l.flexDirection.startsWith("row") ? "columns" : "rows", P = Ee(I === "columns" ? l.columnGap : l.rowGap), C = Math.round(
6028
6028
  (Ee(l.paddingTop) + Ee(l.paddingRight) + Ee(l.paddingBottom) + Ee(l.paddingLeft)) / 4
6029
- ), F = Ee(l.borderTopWidth), H = Ut(N, {
6029
+ ), F = Ee(l.borderTopWidth), H = Ut(I, {
6030
6030
  name: E,
6031
6031
  ...Xi(f, e, l.display, h),
6032
6032
  gap: Number.isFinite(P) ? P : 0,
@@ -6075,11 +6075,11 @@ function Ws(t, e, n, r, i, o, s) {
6075
6075
  try {
6076
6076
  const je = t.ownerDocument.createRange();
6077
6077
  je.selectNodeContents(Pe);
6078
- const I = je.getBoundingClientRect();
6079
- (I.width >= 1 || I.height >= 1) && Yi(
6078
+ const N = je.getBoundingClientRect();
6079
+ (N.width >= 1 || N.height >= 1) && Yi(
6080
6080
  r,
6081
6081
  [...s, H.children.length],
6082
- I,
6082
+ N,
6083
6083
  h
6084
6084
  );
6085
6085
  } catch {
@@ -6913,11 +6913,11 @@ function pf(t, e, n = {}) {
6913
6913
  heightMode: p.heightMode ?? (w == null ? void 0 : w.heightMode) ?? m.heightMode,
6914
6914
  maxHeight: p.maxHeight ?? (w == null ? void 0 : w.maxHeight) ?? m.maxHeight
6915
6915
  });
6916
- for (const N of r.get(m.id) ?? [])
6916
+ for (const I of r.get(m.id) ?? [])
6917
6917
  o.push({
6918
- ...N,
6919
- id: `${N.id}:viewport:${p.id}`,
6920
- name: `${N.name} · ${p.label}`,
6918
+ ...I,
6919
+ id: `${I.id}:viewport:${p.id}`,
6920
+ name: `${I.name} · ${p.label}`,
6921
6921
  section: S,
6922
6922
  pageId: g
6923
6923
  });
@@ -7031,8 +7031,8 @@ function mf({
7031
7031
  sourcePath: g,
7032
7032
  codeName: E,
7033
7033
  coverageRoutes: S,
7034
- ...N
7035
- }) => N
7034
+ ...I
7035
+ }) => I
7036
7036
  )
7037
7037
  },
7038
7038
  coverage: {
@@ -7327,10 +7327,10 @@ ${u.join(`
7327
7327
  if (!(p != null && p.body) || !m) return null;
7328
7328
  const w = Date.now();
7329
7329
  let g = Date.now(), E = p.body.querySelectorAll("*").length;
7330
- const S = m.MutationObserver, N = new S(() => {
7330
+ const S = m.MutationObserver, I = new S(() => {
7331
7331
  g = Date.now(), E = p.body.querySelectorAll("*").length;
7332
7332
  });
7333
- N.observe(p.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
7333
+ I.observe(p.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
7334
7334
  try {
7335
7335
  await new Promise((C) => {
7336
7336
  const F = () => {
@@ -7344,7 +7344,7 @@ ${u.join(`
7344
7344
  m.setTimeout(F, 100);
7345
7345
  });
7346
7346
  } finally {
7347
- N.disconnect();
7347
+ I.disconnect();
7348
7348
  }
7349
7349
  try {
7350
7350
  await ((P = p.fonts) == null ? void 0 : P.ready), await new Promise((C) => {
@@ -7406,10 +7406,10 @@ ${u.join(`
7406
7406
  S = null;
7407
7407
  }
7408
7408
  if (S) {
7409
- const N = await ef(S, e.stability);
7409
+ const I = await ef(S, e.stability);
7410
7410
  p = {
7411
- stable: N,
7412
- churn: N ? [] : Qd(S, (E = e.stability) == null ? void 0 : E.volatileSelectors)
7411
+ stable: I,
7412
+ churn: I ? [] : Qd(S, (E = e.stability) == null ? void 0 : E.volatileSelectors)
7413
7413
  };
7414
7414
  }
7415
7415
  }
@@ -7462,8 +7462,8 @@ function Of(t) {
7462
7462
  }
7463
7463
  return null;
7464
7464
  }
7465
- const Ef = 4, Af = 12, xf = 0.05, If = 5;
7466
- function Nf(t, e) {
7465
+ const Ef = 4, Af = 12, xf = 0.05, Nf = 5;
7466
+ function If(t, e) {
7467
7467
  var r;
7468
7468
  let n = t;
7469
7469
  for (const i of e)
@@ -7480,7 +7480,7 @@ function Mf(t) {
7480
7480
  let a = 0, c = 0;
7481
7481
  const u = [];
7482
7482
  for (const f of n) {
7483
- const h = Nf(e, f.path);
7483
+ const h = If(e, f.path);
7484
7484
  if (!h || h.hidden) continue;
7485
7485
  const v = f.path.length === 0 ? o : i(h.id);
7486
7486
  if (!v) continue;
@@ -7522,7 +7522,7 @@ function Mf(t) {
7522
7522
  checked: a,
7523
7523
  drifted: l,
7524
7524
  maxDriftPx: Math.round(c),
7525
- worst: u.slice(0, If),
7525
+ worst: u.slice(0, Nf),
7526
7526
  ok: d
7527
7527
  };
7528
7528
  }
@@ -7616,7 +7616,7 @@ function Rf(t, e, n = {}) {
7616
7616
  Zt.get(t) === r && Zt.delete(t);
7617
7617
  };
7618
7618
  }
7619
- function Ir(t) {
7619
+ function Nr(t) {
7620
7620
  const e = Zt.get(t);
7621
7621
  return !e || e.stale ? null : e.handle;
7622
7622
  }
@@ -7625,7 +7625,7 @@ const qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7625
7625
  countMarkupElements: Tf,
7626
7626
  createStampedInstanceResolver: oa,
7627
7627
  frozenSnapshotStamped: Cf,
7628
- getMountedShadowPreviewHandle: Ir,
7628
+ getMountedShadowPreviewHandle: Nr,
7629
7629
  importCountFloor: ca,
7630
7630
  importDomFromShadowPreview: ua,
7631
7631
  isStampedFrozenPreview: aa,
@@ -7634,7 +7634,7 @@ const qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7634
7634
  shouldSwapLiveImport: Df
7635
7635
  }, Symbol.toStringTag, { value: "Module" }));
7636
7636
  let Ct = "";
7637
- const Nr = /* @__PURE__ */ new Set();
7637
+ const Ir = /* @__PURE__ */ new Set();
7638
7638
  let vn = "";
7639
7639
  const bn = /* @__PURE__ */ new Set();
7640
7640
  let Mr = "";
@@ -7643,7 +7643,7 @@ let la = null, da = null, fa = null, ha = null, pa = null, ma = null;
7643
7643
  function Lf(t) {
7644
7644
  if (Ct !== t) {
7645
7645
  Ct = t;
7646
- for (const e of Nr) e();
7646
+ for (const e of Ir) e();
7647
7647
  for (const e of bn) e();
7648
7648
  }
7649
7649
  }
@@ -7651,7 +7651,7 @@ function ga() {
7651
7651
  return Ct;
7652
7652
  }
7653
7653
  function kf(t) {
7654
- return Nr.add(t), () => Nr.delete(t);
7654
+ return Ir.add(t), () => Ir.delete(t);
7655
7655
  }
7656
7656
  function Ff(t) {
7657
7657
  if (vn !== t) {
@@ -8253,7 +8253,7 @@ function xh(t, e) {
8253
8253
  };
8254
8254
  return s(t, !1), i.sort((c, u) => u.score - c.score || c.order - u.order), ((a = i[0]) == null ? void 0 : a.node) ?? null;
8255
8255
  }
8256
- function Ih(t, e, n) {
8256
+ function Nh(t, e, n) {
8257
8257
  return t.find(
8258
8258
  (r) => r.importKind === e && r.importPageId === n.pageId
8259
8259
  ) ?? null;
@@ -8272,10 +8272,10 @@ const Oa = (t) => t === "rows" || t === "columns", lo = (t) => {
8272
8272
  "required",
8273
8273
  "selected"
8274
8274
  ]);
8275
- let Nh = 0;
8275
+ let Ih = 0;
8276
8276
  class L {
8277
8277
  constructor(e, n) {
8278
- b(this, "id", `n${++Nh}`);
8278
+ b(this, "id", `n${++Ih}`);
8279
8279
  b(this, "type");
8280
8280
  b(this, "name");
8281
8281
  b(this, "children", []);
@@ -8500,12 +8500,6 @@ class Th {
8500
8500
  b(this, "previewHistory", []);
8501
8501
  /** Edit Mode (top right toggle) — If false, block manipulation of canvas (view only). */
8502
8502
  b(this, "editMode", !0);
8503
- /**
8504
- * The one frame whose preview surface accepts pointer/wheel input in
8505
- * view-only. Entering it is explicit (double-click); ordinary selection
8506
- * remains a safe read of the frame and its inspector.
8507
- */
8508
- b(this, "viewOnlyInteractionPageId", null);
8509
8503
  /** Shows the Reflect (Change Summary) panel. */
8510
8504
  b(this, "applyOpen", !1);
8511
8505
  b(this, "editModeInitialized", !1);
@@ -8619,7 +8613,7 @@ ${e}`;
8619
8613
  /** Switch canvases, restore their view, and activate the first frame. */
8620
8614
  switchCanvas(e) {
8621
8615
  if (e === this.activeCanvas) return;
8622
- this.viewOnlyInteractionPageId = null, this.canvasViews[this.activeCanvas] = { panX: this.panX, panY: this.panY, zoom: this.zoom }, this.activeCanvas = e;
8616
+ this.canvasViews[this.activeCanvas] = { panX: this.panX, panY: this.panY, zoom: this.zoom }, this.activeCanvas = e;
8623
8617
  const n = Ki(this.canvasViews[e]);
8624
8618
  this.panX = n.panX, this.panY = n.panY, this.zoom = n.zoom;
8625
8619
  const r = this.canvasPages[0];
@@ -8669,7 +8663,7 @@ ${e}`;
8669
8663
  return !e || this.activeCanvas === e || this.activeCanvas.startsWith(`${e} · `);
8670
8664
  }
8671
8665
  designAssetPage(e, n) {
8672
- return Ih(this.pages, e, n);
8666
+ return Nh(this.pages, e, n);
8673
8667
  }
8674
8668
  /** Open an inventory asset as an editable implementation layer. */
8675
8669
  beginDesignAssetEdit(e, n) {
@@ -8879,7 +8873,7 @@ ${e}`;
8879
8873
  switchPage(e, n = {}) {
8880
8874
  var o;
8881
8875
  if (!this.pages.some((s) => s.id === e) || e === this.activePageId) return;
8882
- this.viewOnlyInteractionPageId = null, ((o = this.pendingDesignAssetEdit) == null ? void 0 : o.pageId) !== e && (this.pendingDesignAssetEdit = null);
8876
+ ((o = this.pendingDesignAssetEdit) == null ? void 0 : o.pageId) !== e && (this.pendingDesignAssetEdit = null);
8883
8877
  const r = this.pages.find((s) => s.id === e);
8884
8878
  this.revealScreenState(r), this.promoteFrozenLayerImport(r);
8885
8879
  const i = r.canvas ?? "default";
@@ -9247,7 +9241,7 @@ ${e}`;
9247
9241
  if (n < 0 || this.pages.length <= 1) return !1;
9248
9242
  this.checkpoint("frame-remove", !0);
9249
9243
  const r = this.pages[n];
9250
- if (this.pages.splice(n, 1), this.provisionalLayerImports.delete(e), this.previewMotionStates.delete(e), this.viewOnlyInteractionPageId === e && (this.viewOnlyInteractionPageId = null), this.activePageId === e) {
9244
+ if (this.pages.splice(n, 1), this.provisionalLayerImports.delete(e), this.previewMotionStates.delete(e), this.activePageId === e) {
9251
9245
  const o = this.pages.find((s) => (s.canvas ?? "default") === (r.canvas ?? "default")) ?? this.pages[Math.min(n, this.pages.length - 1)];
9252
9246
  this.activePageId = o.id, this.activeCanvas = o.canvas ?? "default";
9253
9247
  }
@@ -9301,7 +9295,7 @@ ${e}`;
9301
9295
  promoteFrozenLayerImport(e) {
9302
9296
  if (e.route == null || !e.importLayers || e.layersImported)
9303
9297
  return;
9304
- const n = Ir(e.id);
9298
+ const n = Nr(e.id);
9305
9299
  if (!n) return;
9306
9300
  const r = ua(n, { scale: this.zoom });
9307
9301
  if (!r) {
@@ -9456,7 +9450,7 @@ ${e}`;
9456
9450
  if (!n.multiple && i.interactiveStateId === n.id && i.interactiveOptionId === r)
9457
9451
  return !0;
9458
9452
  i.baseInteractions ?? (i.baseInteractions = i.interactions ? [...i.interactions] : []);
9459
- const s = Ns(n, i), a = !n.multiple && (s == null ? void 0 : s.id) === o.id, c = n.multiple ? (() => {
9453
+ const s = Is(n, i), a = !n.multiple && (s == null ? void 0 : s.id) === o.id, c = n.multiple ? (() => {
9460
9454
  const f = new Set(
9461
9455
  i.interactiveStateId === n.id ? i.interactiveOptionIds ?? [] : []
9462
9456
  );
@@ -9481,7 +9475,7 @@ ${e}`;
9481
9475
  }
9482
9476
  pausePreviewMotion(e, n) {
9483
9477
  var s;
9484
- const r = this.previewMotionState(e), i = r.targetId !== n, o = i ? r.progress : ((s = Ir(e)) == null ? void 0 : s.readMotionProgress()) ?? r.progress;
9478
+ const r = this.previewMotionState(e), i = r.targetId !== n, o = i ? r.progress : ((s = Nr(e)) == null ? void 0 : s.readMotionProgress()) ?? r.progress;
9485
9479
  this.previewMotionStates.set(e, {
9486
9480
  ...r,
9487
9481
  mode: "paused",
@@ -9601,27 +9595,13 @@ ${e}`;
9601
9595
  this.editModeInitialized || (this.editModeInitialized = !0, this.editMode = e);
9602
9596
  }
9603
9597
  toggleEditMode() {
9604
- this.editMode = !this.editMode, this.viewOnlyInteractionPageId = null;
9605
- }
9606
- /**
9607
- * Lets a view-only reader operate one preview without opening the full-screen
9608
- * player. This selects the frame as well, so its declared preview controls
9609
- * and viewport controls remain available in the right panel.
9610
- */
9611
- enterViewOnlyInteraction(e) {
9612
- return this.editMode || !this.pages.some((n) => n.id === e) ? !1 : (this.selectFrame(e), this.viewOnlyInteractionPageId = e, !0);
9613
- }
9614
- exitViewOnlyInteraction() {
9615
- this.viewOnlyInteractionPageId = null;
9616
- }
9617
- isViewOnlyInteractionActive(e) {
9618
- return !this.editMode && this.activePageId === e && this.viewOnlyInteractionPageId === e;
9598
+ this.editMode = !this.editMode;
9619
9599
  }
9620
9600
  setApplyOpen(e) {
9621
9601
  this.applyOpen = e;
9622
9602
  }
9623
9603
  setTool(e) {
9624
- this.tool = e, e !== "select" && (this.viewOnlyInteractionPageId = null);
9604
+ this.tool = e;
9625
9605
  }
9626
9606
  setSectionRenameTarget(e) {
9627
9607
  this.sectionRenameTarget = e;
@@ -9690,13 +9670,13 @@ ${e}`;
9690
9670
  return this.selectedIds.includes(e);
9691
9671
  }
9692
9672
  select(e) {
9693
- this.viewOnlyInteractionPageId = null, this.selectedIds = e ? [e] : [], this.selectedCanvasObject = null;
9673
+ this.selectedIds = e ? [e] : [], this.selectedCanvasObject = null;
9694
9674
  }
9695
9675
  setSelection(e) {
9696
- this.viewOnlyInteractionPageId = null, this.selectedIds = [...e], this.selectedCanvasObject = null;
9676
+ this.selectedIds = [...e], this.selectedCanvasObject = null;
9697
9677
  }
9698
9678
  selectFrame(e) {
9699
- this.pages.some((n) => n.id === e) && (this.viewOnlyInteractionPageId !== e && (this.viewOnlyInteractionPageId = null), e !== this.activePageId && this.switchPage(e), this.selectedIds = [], this.selectedCanvasObject = { kind: "frame", id: e });
9679
+ this.pages.some((n) => n.id === e) && (e !== this.activePageId && this.switchPage(e), this.selectedIds = [], this.selectedCanvasObject = { kind: "frame", id: e });
9700
9680
  }
9701
9681
  /**
9702
9682
  * An implicit section with only page.section promotes the currently displayed bbox to a first-class SectionRect at the moment of selection.
@@ -9713,10 +9693,10 @@ ${e}`;
9713
9693
  y: Math.round(n.y),
9714
9694
  width: Math.round(Math.max(Qn, n.width)),
9715
9695
  height: Math.round(Math.max(er, n.height))
9716
- }, this.sections.push(r)), r && (this.viewOnlyInteractionPageId = null, this.selectedIds = [], this.selectedCanvasObject = { kind: "section", name: e });
9696
+ }, this.sections.push(r)), r && (this.selectedIds = [], this.selectedCanvasObject = { kind: "section", name: e });
9717
9697
  }
9718
9698
  toggleInSelection(e) {
9719
- this.viewOnlyInteractionPageId = null, this.selectedCanvasObject = null, this.selectedIds.includes(e) ? this.selectedIds = this.selectedIds.filter((n) => n !== e) : this.selectedIds = [...this.selectedIds, e];
9699
+ this.selectedCanvasObject = null, this.selectedIds.includes(e) ? this.selectedIds = this.selectedIds.filter((n) => n !== e) : this.selectedIds = [...this.selectedIds, e];
9720
9700
  }
9721
9701
  hover(e) {
9722
9702
  this.hoveredId = e;
@@ -9804,7 +9784,7 @@ ${e}`;
9804
9784
  }
9805
9785
  restore(e) {
9806
9786
  const n = JSON.parse(e);
9807
- this.previewMotionStates.clear(), this.viewOnlyInteractionPageId = null, this.pages = n.pages.map((r) => ({ ...r, tree: void 0, root: U(r.tree) })), this.sections = n.sections ?? [], this.activePageId = this.pages.some((r) => r.id === n.activePageId) ? n.activePageId : this.pages[0].id, this.activeCanvas = n.activeCanvas ?? this.activeCanvas, this.selectedIds = n.selectedIds ?? [], this.selectedCanvasObject = n.selectedCanvasObject ?? null, this.sharedSourceOverrides = new Map(
9787
+ this.previewMotionStates.clear(), this.pages = n.pages.map((r) => ({ ...r, tree: void 0, root: U(r.tree) })), this.sections = n.sections ?? [], this.activePageId = this.pages.some((r) => r.id === n.activePageId) ? n.activePageId : this.pages[0].id, this.activeCanvas = n.activeCanvas ?? this.activeCanvas, this.selectedIds = n.selectedIds ?? [], this.selectedCanvasObject = n.selectedCanvasObject ?? null, this.sharedSourceOverrides = new Map(
9808
9788
  (n.sharedSourceOverrides ?? []).map(([r, i]) => [r, ot(i)])
9809
9789
  ), this.sharedSourceStructureOverrides = new Map(
9810
9790
  (n.sharedSourceStructureOverrides ?? []).map(([r, i]) => [
@@ -10406,7 +10386,7 @@ function Rh({
10406
10386
  var gt, Pe;
10407
10387
  const S = (gt = s.current) == null ? void 0 : gt.contentDocument;
10408
10388
  if (!(S != null && S.head)) return;
10409
- const N = ++l.current, P = [];
10389
+ const I = ++l.current, P = [];
10410
10390
  let C = S.querySelector(
10411
10391
  "style[data-pygmalion-frozen-overrides]"
10412
10392
  );
@@ -10431,41 +10411,41 @@ function Rh({
10431
10411
  P.push(A.staleReason), (A.component || A.key.endsWith(":component-props")) && (Z += je.length);
10432
10412
  continue;
10433
10413
  }
10434
- for (const I of je) {
10414
+ for (const N of je) {
10435
10415
  if (A.component) {
10436
10416
  const D = A.component, me = ue()[D.name];
10437
10417
  if (!me) {
10438
10418
  P.push(
10439
10419
  `Component registry entry not found:${D.name}`
10440
- ), Z += 1, I.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
10441
- I.removeAttribute("data-pygmalion-sandbox-replay");
10420
+ ), Z += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
10421
+ N.removeAttribute("data-pygmalion-sandbox-replay");
10442
10422
  });
10443
10423
  continue;
10444
10424
  }
10445
10425
  if (me.children === "nodes") {
10446
10426
  P.push(
10447
10427
  "Components that use node children cannot be safely replayed in a frozen sandbox."
10448
- ), Z += 1, I.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
10449
- I.removeAttribute("data-pygmalion-sandbox-replay");
10428
+ ), Z += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
10429
+ N.removeAttribute("data-pygmalion-sandbox-replay");
10450
10430
  });
10451
10431
  continue;
10452
10432
  }
10453
10433
  const Oe = S.createElement("pygmalion-sandbox-root");
10454
- Oe.setAttribute("data-pygmalion-sandbox-replay", "applied"), Oe.style.display = "contents", I.before(Oe);
10455
- const ni = I.hasAttribute("hidden");
10456
- I.setAttribute("hidden", ""), I.setAttribute("data-pygmalion-sandbox-replay", "source");
10434
+ Oe.setAttribute("data-pygmalion-sandbox-replay", "applied"), Oe.style.display = "contents", N.before(Oe);
10435
+ const ni = N.hasAttribute("hidden");
10436
+ N.setAttribute("hidden", ""), N.setAttribute("data-pygmalion-sandbox-replay", "source");
10457
10437
  let vt = mo(Oe);
10458
10438
  const xa = () => {
10459
10439
  const ge = vt;
10460
- vt = null, Oe.remove(), I.toggleAttribute("hidden", ni), I.removeAttribute("data-pygmalion-sandbox-replay"), ge && queueMicrotask(() => ge.unmount());
10440
+ vt = null, Oe.remove(), N.toggleAttribute("hidden", ni), N.removeAttribute("data-pygmalion-sandbox-replay"), ge && queueMicrotask(() => ge.unmount());
10461
10441
  };
10462
10442
  F.push(xa);
10463
10443
  const ri = (ge) => {
10464
- if (l.current !== N) return;
10444
+ if (l.current !== I) return;
10465
10445
  Z += 1;
10466
- const Ia = ge instanceof Error ? ge.message : String(ge), ii = `Component sandbox rendering failed:${D.name} · ${Ia}`;
10467
- P.push(ii), Oe.setAttribute("data-pygmalion-sandbox-replay", "stale"), I.toggleAttribute("hidden", ni), v("stale"), f((Na) => {
10468
- const oi = [.../* @__PURE__ */ new Set([...Na, ii])];
10446
+ const Na = ge instanceof Error ? ge.message : String(ge), ii = `Component sandbox rendering failed:${D.name} · ${Na}`;
10447
+ P.push(ii), Oe.setAttribute("data-pygmalion-sandbox-replay", "stale"), N.toggleAttribute("hidden", ni), v("stale"), f((Ia) => {
10448
+ const oi = [.../* @__PURE__ */ new Set([...Ia, ii])];
10469
10449
  return o == null || o(oi), oi;
10470
10450
  });
10471
10451
  };
@@ -10488,31 +10468,31 @@ function Rh({
10488
10468
  continue;
10489
10469
  }
10490
10470
  if (A.hidden != null) {
10491
- const D = I.hasAttribute("hidden");
10492
- I.toggleAttribute("hidden", A.hidden), F.push(() => I.toggleAttribute("hidden", D));
10471
+ const D = N.hasAttribute("hidden");
10472
+ N.toggleAttribute("hidden", A.hidden), F.push(() => N.toggleAttribute("hidden", D));
10493
10473
  }
10494
10474
  if (A.attributes)
10495
10475
  for (const [D, me] of Object.entries(A.attributes)) {
10496
- const Oe = I.getAttribute(D);
10497
- me == null ? I.removeAttribute(D) : I.setAttribute(D, me), F.push(() => {
10498
- Oe == null ? I.removeAttribute(D) : I.setAttribute(D, Oe);
10476
+ const Oe = N.getAttribute(D);
10477
+ me == null ? N.removeAttribute(D) : N.setAttribute(D, me), F.push(() => {
10478
+ Oe == null ? N.removeAttribute(D) : N.setAttribute(D, Oe);
10499
10479
  });
10500
10480
  }
10501
10481
  if (A.replaceChildrenHtml != null) {
10502
- const D = I.innerHTML;
10503
- I.innerHTML = A.replaceChildrenHtml, F.push(() => {
10504
- I.innerHTML = D;
10482
+ const D = N.innerHTML;
10483
+ N.innerHTML = A.replaceChildrenHtml, F.push(() => {
10484
+ N.innerHTML = D;
10505
10485
  });
10506
10486
  }
10507
10487
  if (A.text == null) continue;
10508
10488
  if (A.textNodeOrdinal == null) {
10509
- const D = I.textContent;
10510
- I.textContent = A.text, F.push(() => {
10511
- I.textContent = D;
10489
+ const D = N.textContent;
10490
+ N.textContent = A.text, F.push(() => {
10491
+ N.textContent = D;
10512
10492
  });
10513
10493
  continue;
10514
10494
  }
10515
- const Ea = ((Pe = S.defaultView) == null ? void 0 : Pe.Node.TEXT_NODE) ?? 3, jt = [...I.childNodes].filter(
10495
+ const Ea = ((Pe = S.defaultView) == null ? void 0 : Pe.Node.TEXT_NODE) ?? 3, jt = [...N.childNodes].filter(
10516
10496
  (D) => {
10517
10497
  var me;
10518
10498
  return D.nodeType === Ea && !!((me = D.textContent) != null && me.trim());
@@ -10563,8 +10543,8 @@ function Rh({
10563
10543
  const S = s.current;
10564
10544
  if (!S) return;
10565
10545
  c.current();
10566
- const N = S.contentDocument;
10567
- c.current = t.heightMode === "document" && N ? cl(N, (P) => {
10546
+ const I = S.contentDocument;
10547
+ c.current = t.heightMode === "document" && I ? cl(I, (P) => {
10568
10548
  var C;
10569
10549
  (C = u.current) == null || C.call(u, P);
10570
10550
  }) : () => {
@@ -10623,7 +10603,7 @@ export {
10623
10603
  R as H,
10624
10604
  Ep as I,
10625
10605
  xp as J,
10626
- Ip as K,
10606
+ Np as K,
10627
10607
  Gl as L,
10628
10608
  Wl as M,
10629
10609
  L as N,
@@ -10631,7 +10611,7 @@ export {
10631
10611
  Tp as P,
10632
10612
  Mp as Q,
10633
10613
  we as R,
10634
- Np as S,
10614
+ Ip as S,
10635
10615
  Cp as T,
10636
10616
  As as U,
10637
10617
  tf as V,