@pygmalionjs/pygmalion 0.5.6 → 0.5.9

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.
@@ -338,7 +338,7 @@ function Yn(t) {
338
338
  }), yt(r, n);
339
339
  }, Yn(t);
340
340
  }
341
- var F = /* @__PURE__ */ Symbol("mobx-stored-annotations");
341
+ var k = /* @__PURE__ */ Symbol("mobx-stored-annotations");
342
342
  function ye(t) {
343
343
  function e(n, r) {
344
344
  if (At(r))
@@ -348,15 +348,15 @@ function ye(t) {
348
348
  return Object.assign(e, t);
349
349
  }
350
350
  function xt(t, e, n) {
351
- if (ne(t, F) || Et(t, F, Ne({}, t[F])), process.env.NODE_ENV !== "production" && Yt(n) && !ne(t[F], e)) {
351
+ if (ne(t, k) || Et(t, k, Ne({}, t[k])), process.env.NODE_ENV !== "production" && Yt(n) && !ne(t[k], 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
  }
355
- ma(t, n, e), Yt(n) || (t[F][e] = n);
355
+ ma(t, n, e), Yt(n) || (t[k][e] = n);
356
356
  }
357
357
  function ma(t, e, n) {
358
- if (process.env.NODE_ENV !== "production" && !Yt(e) && ne(t[F], n)) {
359
- var r = t.constructor.name + ".prototype." + n.toString(), i = t[F][n].annotationType_, s = e.annotationType_;
358
+ if (process.env.NODE_ENV !== "production" && !Yt(e) && ne(t[k], n)) {
359
+ var r = t.constructor.name + ".prototype." + n.toString(), i = t[k][n].annotationType_, s = e.annotationType_;
360
360
  _("Cannot apply '@" + s + "' to '" + r + "':" + (`
361
361
  The field is already decorated with '@` + i + "'.") + `
362
362
  Re-decorating fields is not allowed.
@@ -364,7 +364,7 @@ Use '@override' decorator for methods overridden by subclass.`);
364
364
  }
365
365
  }
366
366
  function ga(t) {
367
- return ne(t, F) || Et(t, F, Ne({}, t[F])), t[F];
367
+ return ne(t, k) || Et(t, k, Ne({}, t[k])), t[k];
368
368
  }
369
369
  function At(t) {
370
370
  return typeof t == "object" && typeof t.kind == "string";
@@ -427,7 +427,7 @@ function ts(t, e, n) {
427
427
  return e !== it && Tc(r, e), n !== it && Es(r, n), r;
428
428
  }
429
429
  function va(t, e) {
430
- return Fs(t, e);
430
+ return ks(t, e);
431
431
  }
432
432
  function ba(t, e) {
433
433
  return Object.is ? Object.is(t, e) : t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
@@ -476,7 +476,7 @@ function hn(t) {
476
476
  return t;
477
477
  }
478
478
  function _a(t, e) {
479
- return process.env.NODE_ENV !== "production" && wt(t) && _("observable.struct should not be used with observable values"), Fs(t, e) ? e : t;
479
+ return process.env.NODE_ENV !== "production" && wt(t) && _("observable.struct should not be used with observable values"), ks(t, e) ? e : t;
480
480
  }
481
481
  var Sa = "override";
482
482
  function Yt(t) {
@@ -717,10 +717,10 @@ function La(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 ka = "true", Fa = /* @__PURE__ */ ss();
720
+ var Fa = "true", ka = /* @__PURE__ */ ss();
721
721
  function ss(t) {
722
722
  return {
723
- annotationType_: ka,
723
+ annotationType_: Fa,
724
724
  options_: t,
725
725
  make_: za,
726
726
  extend_: Va,
@@ -882,7 +882,7 @@ function rc(t, e, n, r, i) {
882
882
  }
883
883
  }
884
884
  function ic(t, e, n, r) {
885
- var i = process.env.NODE_ENV !== "production" && k() && !!t, s = 0;
885
+ var i = process.env.NODE_ENV !== "production" && F() && !!t, s = 0;
886
886
  if (process.env.NODE_ENV !== "production" && i) {
887
887
  s = Date.now();
888
888
  var o = r ? Array.from(r) : qt;
@@ -932,7 +932,7 @@ function vn(t) {
932
932
  var ac = "create", Be = /* @__PURE__ */ (function(t) {
933
933
  function e(r, i, s, o, a) {
934
934
  var c;
935
- if (s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableValue@" + ie() : "ObservableValue"), o === void 0 && (o = !0), a === void 0 && (a = Ke.default), c = t.call(this, s) || this, c.enhancer = void 0, c.name_ = void 0, c.equals = void 0, c.hasUnreportedChange_ = !1, c.interceptors_ = void 0, c.changeListeners_ = void 0, c.value_ = void 0, c.dehancer = void 0, c.enhancer = i, c.name_ = s, c.equals = a, c.value_ = i(r, void 0, s), process.env.NODE_ENV !== "production" && o && k()) {
935
+ if (s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableValue@" + ie() : "ObservableValue"), o === void 0 && (o = !0), a === void 0 && (a = Ke.default), c = t.call(this, s) || this, c.enhancer = void 0, c.name_ = void 0, c.equals = void 0, c.hasUnreportedChange_ = !1, c.interceptors_ = void 0, c.changeListeners_ = void 0, c.value_ = void 0, c.dehancer = void 0, c.enhancer = i, c.name_ = s, c.equals = a, c.value_ = i(r, void 0, s), process.env.NODE_ENV !== "production" && o && F()) {
936
936
  var u;
937
937
  We({
938
938
  type: ac,
@@ -951,7 +951,7 @@ var ac = "create", Be = /* @__PURE__ */ (function(t) {
951
951
  }, n.set = function(i) {
952
952
  var s = this.value_;
953
953
  if (i = this.prepareNewValue_(i), i !== y.UNCHANGED) {
954
- var o = k();
954
+ var o = F();
955
955
  process.env.NODE_ENV !== "production" && o && W({
956
956
  type: ue,
957
957
  object: this,
@@ -1047,7 +1047,7 @@ var ac = "create", Be = /* @__PURE__ */ (function(t) {
1047
1047
  /* see #1208 */
1048
1048
  this.dependenciesState_ === x.NOT_TRACKING_
1049
1049
  ), s = this.computeValue_(!0), o = i || zt(r) || zt(s) || !this.equals_(r, s);
1050
- return o && (this.value_ = s, process.env.NODE_ENV !== "production" && k() && We({
1050
+ return o && (this.value_ = s, process.env.NODE_ENV !== "production" && F() && We({
1051
1051
  observableKind: "computed",
1052
1052
  debugObjectName: this.name_,
1053
1053
  object: this.scope_,
@@ -1375,7 +1375,7 @@ var _e = /* @__PURE__ */ (function() {
1375
1375
  if (y.trackingContext = this, Zn(this)) {
1376
1376
  this.isTrackPending = !0;
1377
1377
  try {
1378
- this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && k() && We({
1378
+ this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && F() && We({
1379
1379
  name: this.name_,
1380
1380
  type: "scheduled-reaction"
1381
1381
  });
@@ -1388,7 +1388,7 @@ var _e = /* @__PURE__ */ (function() {
1388
1388
  }, e.track = function(r) {
1389
1389
  if (!this.isDisposed) {
1390
1390
  ee();
1391
- var i = k(), s;
1391
+ var i = F(), s;
1392
1392
  process.env.NODE_ENV !== "production" && i && (s = Date.now(), W({
1393
1393
  name: this.name_,
1394
1394
  type: "reaction"
@@ -1409,7 +1409,7 @@ var _e = /* @__PURE__ */ (function() {
1409
1409
  if (y.disableErrorBoundaries)
1410
1410
  throw r;
1411
1411
  var s = process.env.NODE_ENV !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
1412
- y.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(s, r), process.env.NODE_ENV !== "production" && k() && We({
1412
+ y.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(s, r), process.env.NODE_ENV !== "production" && F() && We({
1413
1413
  type: "error",
1414
1414
  name: this.name_,
1415
1415
  message: s,
@@ -1499,7 +1499,7 @@ function bc(t) {
1499
1499
  });
1500
1500
  };
1501
1501
  }
1502
- function k() {
1502
+ function F() {
1503
1503
  return process.env.NODE_ENV !== "production" && !!y.spyListeners.length;
1504
1504
  }
1505
1505
  function We(t) {
@@ -1688,7 +1688,7 @@ function Ps(t) {
1688
1688
  function jc(t) {
1689
1689
  return Array.from(new Set(t));
1690
1690
  }
1691
- var Lc = 0, kc = /* @__PURE__ */ (function(t) {
1691
+ var Lc = 0, Fc = /* @__PURE__ */ (function(t) {
1692
1692
  function e() {
1693
1693
  var r;
1694
1694
  return r = t.call(this, "FLOW_CANCELLED") || this, Object.setPrototypeOf(r, (this instanceof e ? this.constructor : void 0).prototype), r.name = "FlowCancellationError", r;
@@ -1698,7 +1698,7 @@ var Lc = 0, kc = /* @__PURE__ */ (function(t) {
1698
1698
  return n.toString = function() {
1699
1699
  return "Error: " + this.message;
1700
1700
  }, e;
1701
- })(/* @__PURE__ */ Yn(Error)), Sn = /* @__PURE__ */ rs("flow"), Fc = /* @__PURE__ */ rs("flow.bound", {
1701
+ })(/* @__PURE__ */ Yn(Error)), Sn = /* @__PURE__ */ rs("flow"), kc = /* @__PURE__ */ rs("flow.bound", {
1702
1702
  bound: !0
1703
1703
  }), lt = /* @__PURE__ */ Object.assign(function(e, n) {
1704
1704
  if (At(n))
@@ -1743,7 +1743,7 @@ var Lc = 0, kc = /* @__PURE__ */ (function(t) {
1743
1743
  try {
1744
1744
  f && Qr(f);
1745
1745
  var v = l.return(void 0), p = Promise.resolve(v.value);
1746
- p.then(it, it), Qr(p), d(new kc());
1746
+ p.then(it, it), Qr(p), d(new Fc());
1747
1747
  } catch (g) {
1748
1748
  d(g);
1749
1749
  }
@@ -1751,7 +1751,7 @@ var Lc = 0, kc = /* @__PURE__ */ (function(t) {
1751
1751
  };
1752
1752
  return s.isMobXFlow = !0, s;
1753
1753
  }, Sn);
1754
- lt.bound = /* @__PURE__ */ ye(Fc);
1754
+ lt.bound = /* @__PURE__ */ ye(kc);
1755
1755
  function Qr(t) {
1756
1756
  T(t.cancel) && t.cancel();
1757
1757
  }
@@ -1807,30 +1807,30 @@ function xe(t, e) {
1807
1807
  te();
1808
1808
  }
1809
1809
  }
1810
- function Fe(t) {
1810
+ function ke(t) {
1811
1811
  return t[O];
1812
1812
  }
1813
1813
  var Bc = {
1814
1814
  has: function(e, n) {
1815
- return process.env.NODE_ENV !== "production" && y.trackingDerivation && mt("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."), Fe(e).has_(n);
1815
+ return process.env.NODE_ENV !== "production" && y.trackingDerivation && mt("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."), ke(e).has_(n);
1816
1816
  },
1817
1817
  get: function(e, n) {
1818
- return Fe(e).get_(n);
1818
+ return ke(e).get_(n);
1819
1819
  },
1820
1820
  set: function(e, n, r) {
1821
1821
  var i;
1822
- return De(n) ? (process.env.NODE_ENV !== "production" && !Fe(e).values_.has(n) && mt("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."), (i = Fe(e).set_(n, r, !0)) != null ? i : !0) : !1;
1822
+ return De(n) ? (process.env.NODE_ENV !== "production" && !ke(e).values_.has(n) && mt("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."), (i = ke(e).set_(n, r, !0)) != null ? i : !0) : !1;
1823
1823
  },
1824
1824
  deleteProperty: function(e, n) {
1825
1825
  var r;
1826
- return process.env.NODE_ENV !== "production" && mt("delete properties from an observable object. Use 'remove' from 'mobx' instead."), De(n) ? (r = Fe(e).delete_(n, !0)) != null ? r : !0 : !1;
1826
+ return process.env.NODE_ENV !== "production" && mt("delete properties from an observable object. Use 'remove' from 'mobx' instead."), De(n) ? (r = ke(e).delete_(n, !0)) != null ? r : !0 : !1;
1827
1827
  },
1828
1828
  defineProperty: function(e, n, r) {
1829
1829
  var i;
1830
- return process.env.NODE_ENV !== "production" && mt("define property on an observable object. Use 'defineProperty' from 'mobx' instead."), (i = Fe(e).defineProperty_(n, r)) != null ? i : !0;
1830
+ return process.env.NODE_ENV !== "production" && mt("define property on an observable object. Use 'defineProperty' from 'mobx' instead."), (i = ke(e).defineProperty_(n, r)) != null ? i : !0;
1831
1831
  },
1832
1832
  ownKeys: function(e) {
1833
- return process.env.NODE_ENV !== "production" && y.trackingDerivation && mt("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."), Fe(e).ownKeys_();
1833
+ return process.env.NODE_ENV !== "production" && y.trackingDerivation && mt("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."), ke(e).ownKeys_();
1834
1834
  },
1835
1835
  preventExtensions: function(e) {
1836
1836
  _(13);
@@ -1882,7 +1882,7 @@ function de(t, e) {
1882
1882
  function Hc(t, e, n) {
1883
1883
  return Le(function() {
1884
1884
  var r, i = Qe(t, n)[O];
1885
- process.env.NODE_ENV !== "production" && e && t[F] && _("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = e) != null || (e = ga(t)), ut(e).forEach(function(s) {
1885
+ process.env.NODE_ENV !== "production" && e && t[k] && _("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = e) != null || (e = ga(t)), ut(e).forEach(function(s) {
1886
1886
  return i.make_(s, e[s]);
1887
1887
  });
1888
1888
  }), t;
@@ -1993,7 +1993,7 @@ var ei = "splice", ue = "update", Uc = 1e4, Wc = {
1993
1993
  return a;
1994
1994
  }
1995
1995
  }, e.notifyArrayChildUpdate_ = function(r, i, s) {
1996
- var o = !this.owned_ && k(), a = le(this), c = a || o ? {
1996
+ var o = !this.owned_ && F(), a = le(this), c = a || o ? {
1997
1997
  observableKind: "array",
1998
1998
  object: this.proxy_,
1999
1999
  type: ue,
@@ -2004,7 +2004,7 @@ var ei = "splice", ue = "update", Uc = 1e4, Wc = {
2004
2004
  } : null;
2005
2005
  process.env.NODE_ENV !== "production" && o && W(c), this.atom_.reportChanged(), a && de(this, c), process.env.NODE_ENV !== "production" && o && G();
2006
2006
  }, e.notifyArraySplice_ = function(r, i, s) {
2007
- var o = !this.owned_ && k(), a = le(this), c = a || o ? {
2007
+ var o = !this.owned_ && F(), a = le(this), c = a || o ? {
2008
2008
  observableKind: "array",
2009
2009
  object: this.proxy_,
2010
2010
  debugObjectName: this.atom_.name_,
@@ -2230,7 +2230,7 @@ var Yc = {}, $e = "add", en = "delete", $s = /* @__PURE__ */ (function() {
2230
2230
  return !1;
2231
2231
  }
2232
2232
  if (this.has_(r)) {
2233
- var o = k(), a = le(this), c = a || o ? {
2233
+ var o = F(), a = le(this), c = a || o ? {
2234
2234
  observableKind: "map",
2235
2235
  debugObjectName: this.name_,
2236
2236
  type: en,
@@ -2249,7 +2249,7 @@ var Yc = {}, $e = "add", en = "delete", $s = /* @__PURE__ */ (function() {
2249
2249
  }, e.updateValue_ = function(r, i) {
2250
2250
  var s = this.data_.get(r);
2251
2251
  if (i = s.prepareNewValue_(i), i !== y.UNCHANGED) {
2252
- var o = k(), a = le(this), c = a || o ? {
2252
+ var o = F(), a = le(this), c = a || o ? {
2253
2253
  observableKind: "map",
2254
2254
  debugObjectName: this.name_,
2255
2255
  type: ue,
@@ -2266,7 +2266,7 @@ var Yc = {}, $e = "add", en = "delete", $s = /* @__PURE__ */ (function() {
2266
2266
  var u, l = new Be(i, s.enhancer_, process.env.NODE_ENV !== "production" ? s.name_ + "." + Gn(r) : "ObservableMap.key", !1);
2267
2267
  s.data_.set(r, l), i = l.value_, (u = s.hasMap_.get(r)) == null || u.setNewValue_(!0), s.keysAtom_.reportChanged();
2268
2268
  });
2269
- var o = k(), a = le(this), c = a || o ? {
2269
+ var o = F(), a = le(this), c = a || o ? {
2270
2270
  observableKind: "map",
2271
2271
  debugObjectName: this.name_,
2272
2272
  type: $e,
@@ -2450,7 +2450,7 @@ var Xc = {}, Ds = /* @__PURE__ */ (function() {
2450
2450
  xe(function() {
2451
2451
  i.data_.add(i.enhancer_(r, void 0)), i.atom_.reportChanged();
2452
2452
  });
2453
- var o = process.env.NODE_ENV !== "production" && k(), a = le(this), c = a || o ? {
2453
+ var o = process.env.NODE_ENV !== "production" && F(), a = le(this), c = a || o ? {
2454
2454
  observableKind: "set",
2455
2455
  debugObjectName: this.name_,
2456
2456
  type: $e,
@@ -2472,7 +2472,7 @@ var Xc = {}, Ds = /* @__PURE__ */ (function() {
2472
2472
  return !1;
2473
2473
  }
2474
2474
  if (this.has(r)) {
2475
- var o = process.env.NODE_ENV !== "production" && k(), a = le(this), c = a || o ? {
2475
+ var o = process.env.NODE_ENV !== "production" && F(), a = le(this), c = a || o ? {
2476
2476
  observableKind: "set",
2477
2477
  debugObjectName: this.name_,
2478
2478
  type: en,
@@ -2579,7 +2579,7 @@ function ni(t) {
2579
2579
  }
2580
2580
  var ri = /* @__PURE__ */ Object.create(null), ii = "remove", rr = /* @__PURE__ */ (function() {
2581
2581
  function t(n, r, i, s) {
2582
- r === void 0 && (r = /* @__PURE__ */ new Map()), s === void 0 && (s = Fa), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.lazyComputedKeys_ = void 0, this.lazyObservableKeys_ = void 0, this.target_ = n, this.values_ = r, this.name_ = i, this.defaultAnnotation_ = s, this.keysAtom_ = new je(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys"), this.isPlainObject_ = z(this.target_), process.env.NODE_ENV !== "production" && !zs(this.defaultAnnotation_) && _("defaultAnnotation must be valid annotation"), process.env.NODE_ENV !== "production" && (this.appliedAnnotations_ = {});
2582
+ r === void 0 && (r = /* @__PURE__ */ new Map()), s === void 0 && (s = ka), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.lazyComputedKeys_ = void 0, this.lazyObservableKeys_ = void 0, this.target_ = n, this.values_ = r, this.name_ = i, this.defaultAnnotation_ = s, this.keysAtom_ = new je(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys"), this.isPlainObject_ = z(this.target_), process.env.NODE_ENV !== "production" && !zs(this.defaultAnnotation_) && _("defaultAnnotation must be valid annotation"), process.env.NODE_ENV !== "production" && (this.appliedAnnotations_ = {});
2583
2583
  }
2584
2584
  var e = t.prototype;
2585
2585
  return e.getObservablePropValue_ = function(r) {
@@ -2615,7 +2615,7 @@ var ri = /* @__PURE__ */ Object.create(null), ii = "remove", rr = /* @__PURE__ *
2615
2615
  i = c.newValue;
2616
2616
  }
2617
2617
  if (i = a.prepareNewValue_(i), i !== y.UNCHANGED) {
2618
- var u = le(this), l = process.env.NODE_ENV !== "production" && k(), d = u || l ? {
2618
+ var u = le(this), l = process.env.NODE_ENV !== "production" && F(), d = u || l ? {
2619
2619
  type: ue,
2620
2620
  observableKind: "object",
2621
2621
  debugObjectName: this.name_,
@@ -2646,7 +2646,7 @@ var ri = /* @__PURE__ */ Object.create(null), ii = "remove", rr = /* @__PURE__ *
2646
2646
  if (i === !0 && (i = this.defaultAnnotation_), i !== !1) {
2647
2647
  if (ai(this, i, r), !(r in this.target_)) {
2648
2648
  var s;
2649
- if ((s = this.target_[F]) != null && s[r])
2649
+ if ((s = this.target_[k]) != null && s[r])
2650
2650
  return;
2651
2651
  _(1, i.annotationType_, this.name_ + "." + r.toString());
2652
2652
  }
@@ -2784,7 +2784,7 @@ var ri = /* @__PURE__ */ Object.create(null), ii = "remove", rr = /* @__PURE__ *
2784
2784
  try {
2785
2785
  var o;
2786
2786
  ee();
2787
- var a = le(this), c = process.env.NODE_ENV !== "production" && k(), u = this.values_.get(r), l = void 0;
2787
+ var a = le(this), c = process.env.NODE_ENV !== "production" && F(), u = this.values_.get(r), l = void 0;
2788
2788
  if (!u && (a || c)) {
2789
2789
  var d;
2790
2790
  l = (d = Gt(this.target_, r)) == null ? void 0 : d.value;
@@ -2814,7 +2814,7 @@ var ri = /* @__PURE__ */ Object.create(null), ii = "remove", rr = /* @__PURE__ *
2814
2814
  }, e.intercept_ = function(r) {
2815
2815
  return It(this, r);
2816
2816
  }, e.notifyPropertyAddition_ = function(r, i) {
2817
- var s, o = le(this), a = process.env.NODE_ENV !== "production" && k();
2817
+ var s, o = le(this), a = process.env.NODE_ENV !== "production" && F();
2818
2818
  if (o || a) {
2819
2819
  var c = o || a ? {
2820
2820
  type: $e,
@@ -2836,7 +2836,7 @@ var ri = /* @__PURE__ */ Object.create(null), ii = "remove", rr = /* @__PURE__ *
2836
2836
  function Qe(t, e) {
2837
2837
  var n;
2838
2838
  if (process.env.NODE_ENV !== "production" && e && qe(t) && _("Options can't be provided for already observable objects."), ne(t, O))
2839
- return process.env.NODE_ENV !== "production" && !(ks(t) instanceof rr) && _("Cannot convert '" + tn(t) + `' into observable object:
2839
+ return process.env.NODE_ENV !== "production" && !(Fs(t) instanceof rr) && _("Cannot convert '" + tn(t) + `' into observable object:
2840
2840
  The target is already observable of different type.
2841
2841
  Extending builtins is not supported.`), t;
2842
2842
  process.env.NODE_ENV !== "production" && !Object.isExtensible(t) && _("Cannot make the designated object observable; it is not extensible");
@@ -2859,7 +2859,7 @@ function qe(t) {
2859
2859
  }
2860
2860
  function oi(t, e, n) {
2861
2861
  var r;
2862
- process.env.NODE_ENV !== "production" && (t.appliedAnnotations_[n] = e), (r = t.target_[F]) == null || delete r[n];
2862
+ process.env.NODE_ENV !== "production" && (t.appliedAnnotations_[n] = e), (r = t.target_[k]) == null || delete r[n];
2863
2863
  }
2864
2864
  function ai(t, e, n) {
2865
2865
  if (process.env.NODE_ENV !== "production" && !zs(e) && _("Cannot annotate '" + t.name_ + "." + n.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !Yt(e) && ne(t.appliedAnnotations_, n)) {
@@ -2987,7 +2987,7 @@ function Ye(t, e) {
2987
2987
  return t[O];
2988
2988
  _(28);
2989
2989
  }
2990
- function ks(t, e) {
2990
+ function Fs(t, e) {
2991
2991
  if (t || _(29), wr(t) || bn(t) || Zt(t) || Ie(t) || ge(t))
2992
2992
  return t;
2993
2993
  if (t[O])
@@ -3001,7 +3001,7 @@ function tn(t, e) {
3001
3001
  else {
3002
3002
  if (Ge(t))
3003
3003
  return t.name;
3004
- qe(t) || Ie(t) || ge(t) ? n = ks(t) : n = Ye(t);
3004
+ qe(t) || Ie(t) || ge(t) ? n = Fs(t) : n = Ye(t);
3005
3005
  }
3006
3006
  return n.name_;
3007
3007
  }
@@ -3015,7 +3015,7 @@ function Le(t) {
3015
3015
  }
3016
3016
  }
3017
3017
  var ci = ln.toString;
3018
- function Fs(t, e, n) {
3018
+ function ks(t, e, n) {
3019
3019
  return n === void 0 && (n = -1), ir(t, e, n);
3020
3020
  }
3021
3021
  function ir(t, e, n, r, i) {
@@ -3683,7 +3683,7 @@ function Lu(t) {
3683
3683
  return /^@\/[A-Za-z0-9_$@./-]+$/.test(t) || /^(?:@[A-Za-z0-9_.-]+\/)?[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.$-]+)*$/.test(t);
3684
3684
  }
3685
3685
  const Ei = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/;
3686
- function ku(t) {
3686
+ function Fu(t) {
3687
3687
  const e = ae()[t];
3688
3688
  if (!(e != null && e.importPath) || !/^[A-Z][A-Za-z0-9_$]*$/.test(t) || !Lu(e.importPath))
3689
3689
  return null;
@@ -3714,7 +3714,7 @@ function xi(t, e, n) {
3714
3714
  font: "600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace"
3715
3715
  }), t.replaceChildren(r);
3716
3716
  }
3717
- function Fu(t, e, n, r) {
3717
+ function ku(t, e, n, r) {
3718
3718
  const i = t.ownerDocument.createElement("span");
3719
3719
  i.dataset.pygmalionComponentInsert = n.name, i.style.display = "contents";
3720
3720
  let s = null, o = 0, a = "component";
@@ -4015,10 +4015,10 @@ class zu {
4015
4015
  /** Inserts the registry component directly into the children slot of the selected element. */
4016
4016
  recordComponentInsert(e, n, r, i, s = null, o = []) {
4017
4017
  if (this.componentInsertBlockReason(e, s)) return !1;
4018
- const a = se(e), c = _i(e), u = ae()[n], l = ku(n);
4018
+ const a = se(e), c = _i(e), u = ae()[n], l = Fu(n);
4019
4019
  if (!a || c == null || !u || !l || !Number.isSafeInteger(r) || r < 0 || r > c)
4020
4020
  return !1;
4021
- const d = Fu(
4021
+ const d = ku(
4022
4022
  e,
4023
4023
  Math.min(r, e.children.length),
4024
4024
  l,
@@ -4262,7 +4262,7 @@ function Ef() {
4262
4262
  return ot(qs);
4263
4263
  }
4264
4264
  function Ku(t, e) {
4265
- var n, r, i, s, o, a;
4265
+ var n, r, i, s;
4266
4266
  return t ? e ? {
4267
4267
  ...ot(t),
4268
4268
  ...ot(e),
@@ -4282,10 +4282,9 @@ function Ku(t, e) {
4282
4282
  ...t.mediaDevices,
4283
4283
  ...e.mediaDevices
4284
4284
  },
4285
- // Network merges by union, not by replacement. A case turns recording on to
4286
- // answer the editor's questions while an interactive option adds the one
4287
- // condition it demonstrates; a plain override would silently drop whichever
4288
- // of the two the other side did not repeat.
4285
+ // Network merges by union, not by replacement: a case may declare one
4286
+ // condition and a selected option another, and a plain override would drop
4287
+ // whichever side the other did not repeat.
4289
4288
  ...t.network || e.network ? {
4290
4289
  network: {
4291
4290
  ...t.network,
@@ -4295,8 +4294,7 @@ function Ku(t, e) {
4295
4294
  ...((i = t.network) == null ? void 0 : i.conditions) ?? [],
4296
4295
  ...((s = e.network) == null ? void 0 : s.conditions) ?? []
4297
4296
  ]
4298
- } : {},
4299
- ...((o = t.network) == null ? void 0 : o.record) === !0 || ((a = e.network) == null ? void 0 : a.record) === !0 ? { record: !0 } : {}
4297
+ } : {}
4300
4298
  }
4301
4299
  } : {}
4302
4300
  } : ot(t) : ot(e);
@@ -4646,7 +4644,7 @@ const no = {
4646
4644
  meta: "#bebecb",
4647
4645
  purpose: "#c4ccd8"
4648
4646
  }, Cr = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
4649
- function kf(t, e) {
4647
+ function Ff(t, e) {
4650
4648
  const n = t.length === 4 ? `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}` : t;
4651
4649
  if (!Cr.test(n)) return t;
4652
4650
  const r = Number.parseInt(n.slice(1), 16), i = (c) => Math.round(c + (255 - c) * Math.min(1, Math.max(0, e))), s = i(r >> 16 & 255), o = i(r >> 8 & 255), a = i(r & 255);
@@ -4658,7 +4656,7 @@ const Xu = {
4658
4656
  omissions: "some omissions",
4659
4657
  checkFlow: "check flow"
4660
4658
  };
4661
- function Ff(t) {
4659
+ function kf(t) {
4662
4660
  return { ...Xu, ...t };
4663
4661
  }
4664
4662
  const ro = "step", io = "variant", Zu = "#8b8b9e";
@@ -4864,7 +4862,7 @@ function q(t, e) {
4864
4862
  const i = `${n.className ?? ""} ${t.name ?? ""}`;
4865
4863
  return (typeof r == "string" ? [r] : r).some((o) => o !== "" && i.includes(o));
4866
4864
  }
4867
- function ke(t, e, n) {
4865
+ function Fe(t, e, n) {
4868
4866
  const r = [], i = (s) => {
4869
4867
  if (!(r.length >= n)) {
4870
4868
  e(s) && r.push(s);
@@ -4969,7 +4967,7 @@ function il(t, e) {
4969
4967
  return t.componentName === e.component ? !0 : q(t, e.match);
4970
4968
  }
4971
4969
  function sl(t, e) {
4972
- return ke(
4970
+ return Fe(
4973
4971
  t.root,
4974
4972
  (n) => il(n, e),
4975
4973
  rl
@@ -5080,14 +5078,14 @@ function uh(t, e) {
5080
5078
  return n;
5081
5079
  }
5082
5080
  function lh(t, e) {
5083
- return ke(
5081
+ return Fe(
5084
5082
  t.root,
5085
5083
  (n) => q(n, e.card),
5086
5084
  Dr
5087
5085
  );
5088
5086
  }
5089
5087
  function po(t, e) {
5090
- return ke(
5088
+ return Fe(
5091
5089
  t,
5092
5090
  (n) => n !== t && q(n, e.container),
5093
5091
  1
@@ -5115,14 +5113,14 @@ function fh(t, e) {
5115
5113
  return nl(t) || `#${e + 1}`;
5116
5114
  }
5117
5115
  function cl(t, e, n) {
5118
- return ke(
5116
+ return Fe(
5119
5117
  t.root,
5120
5118
  (i) => i.componentName !== e.component && q(i, e.match),
5121
5119
  Dr
5122
5120
  ).find((i) => !Rr(n, i)) ?? null;
5123
5121
  }
5124
5122
  function ul(t, e, n) {
5125
- return ke(
5123
+ return Fe(
5126
5124
  t.root,
5127
5125
  (i) => q(i, e.container),
5128
5126
  Dr
@@ -5134,7 +5132,7 @@ function Rr(t, e) {
5134
5132
  function ll(t, e) {
5135
5133
  const n = e.placement;
5136
5134
  if (!n) return null;
5137
- const r = ke(
5135
+ const r = Fe(
5138
5136
  t,
5139
5137
  (s) => q(s, n.parent),
5140
5138
  1
@@ -5217,10 +5215,10 @@ function mh(t) {
5217
5215
  return e;
5218
5216
  }
5219
5217
  function ml(t, e) {
5220
- return ke(t.root, (n) => q(n, e.container), 1)[0] ?? null;
5218
+ return Fe(t.root, (n) => q(n, e.container), 1)[0] ?? null;
5221
5219
  }
5222
5220
  function gl(t, e) {
5223
- return ke(
5221
+ return Fe(
5224
5222
  t,
5225
5223
  (n) => n !== t && q(n, e.item),
5226
5224
  pl
@@ -5324,7 +5322,7 @@ function vh() {
5324
5322
  }
5325
5323
  const Il = 12, Pl = 800, Ml = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "META", "LINK", "TEMPLATE", "IFRAME", "BR", "HEAD"]), Cl = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]);
5326
5324
  let Tl = 0;
5327
- function kt(t, e) {
5325
+ function Ft(t, e) {
5328
5326
  return {
5329
5327
  id: `imp${++Tl}`,
5330
5328
  type: t,
@@ -5504,15 +5502,15 @@ const Ll = [
5504
5502
  "object-position",
5505
5503
  "visibility"
5506
5504
  ];
5507
- function kl(t) {
5505
+ function Fl(t) {
5508
5506
  return t.replace(/-([a-z])/g, (e, n) => n.toUpperCase());
5509
5507
  }
5510
- const Fl = /* @__PURE__ */ new Set(["overflow", "overflow-x", "overflow-y"]);
5508
+ const kl = /* @__PURE__ */ new Set(["overflow", "overflow-x", "overflow-y"]);
5511
5509
  function jn(t) {
5512
5510
  const e = {};
5513
5511
  for (const n of Ll) {
5514
5512
  const r = t.getPropertyValue(n);
5515
- !r || r === "normal" || r === "none" || r === "auto" && !Fl.has(n) || (e[kl(n)] = r);
5513
+ !r || r === "normal" || r === "none" || r === "auto" && !kl.has(n) || (e[Fl(n)] = r);
5516
5514
  }
5517
5515
  return e;
5518
5516
  }
@@ -5586,7 +5584,7 @@ function _o(t, e, n, r, i, s) {
5586
5584
  )
5587
5585
  }, S = v != null && h === "expand" && ((J = s.collapseInstance) == null ? void 0 : J.call(s, v)) === !0 && !Kl(t, s) && Bl(t, v);
5588
5586
  if (v && (h === "collapse" || S))
5589
- return kt("component", {
5587
+ return Ft("component", {
5590
5588
  name: v.name,
5591
5589
  componentName: v.name,
5592
5590
  componentProps: v.props,
@@ -5599,7 +5597,7 @@ function _o(t, e, n, r, i, s) {
5599
5597
  });
5600
5598
  const m = zl(t, c, v == null ? void 0 : v.name);
5601
5599
  if (Cl.has(c) && (s.mediaMode ?? "placeholder") === "placeholder")
5602
- return kt("rows", {
5600
+ return Ft("rows", {
5603
5601
  name: m,
5604
5602
  widthMode: "fixed",
5605
5603
  width: Math.max(4, Math.round(d.width / f)),
@@ -5615,7 +5613,7 @@ function _o(t, e, n, r, i, s) {
5615
5613
  });
5616
5614
  const E = u.display === "flex" || u.display === "inline-flex", w = E && u.flexDirection.startsWith("row") ? "columns" : "rows", P = Oe(w === "columns" ? u.columnGap : u.rowGap), C = Math.round(
5617
5615
  (Oe(u.paddingTop) + Oe(u.paddingRight) + Oe(u.paddingBottom) + Oe(u.paddingLeft)) / 4
5618
- ), M = Oe(u.borderTopWidth), L = kt(w, {
5616
+ ), M = Oe(u.borderTopWidth), L = Ft(w, {
5619
5617
  name: m,
5620
5618
  ...Ci(d, e, u.display, f),
5621
5619
  gap: Number.isFinite(P) ? P : 0,
@@ -5661,7 +5659,7 @@ function _o(t, e, n, r, i, s) {
5661
5659
  const Me = (Pe.textContent ?? "").replace(/\s+/g, " ").trim();
5662
5660
  if (!Me) continue;
5663
5661
  r.count += 1, r.maxDepth = Math.max(r.maxDepth, n + 1), L.children.push(
5664
- kt("text", {
5662
+ Ft("text", {
5665
5663
  name: "text",
5666
5664
  text: Me,
5667
5665
  fontSize: Oe(u.fontSize) || 14,
@@ -5957,7 +5955,7 @@ function Yl(t) {
5957
5955
  t.error ?? `The screen recipe did not complete${t.failedLabel ? ` at "${t.failedLabel}"` : ""}.`
5958
5956
  );
5959
5957
  }
5960
- const ki = {
5958
+ const Fi = {
5961
5959
  icons: "🎨 Icons",
5962
5960
  "design-tokens": "🎨 Design Tokens",
5963
5961
  atoms: "🧩 Atoms",
@@ -6194,11 +6192,11 @@ function on(t, e = /* @__PURE__ */ new Set()) {
6194
6192
  function Ot(t) {
6195
6193
  return JSON.parse(JSON.stringify(t));
6196
6194
  }
6197
- function Fi(t) {
6195
+ function ki(t) {
6198
6196
  return t !== null && typeof t == "object" && !Array.isArray(t);
6199
6197
  }
6200
6198
  function wo(t, e) {
6201
- if (!Fi(t) || !Fi(e))
6199
+ if (!ki(t) || !ki(e))
6202
6200
  return JSON.parse(JSON.stringify(e));
6203
6201
  const n = {
6204
6202
  ...Ot(t)
@@ -6387,7 +6385,7 @@ ${u.join(`
6387
6385
  getAssets: (u) => (u ? t.collections[u].assets : nt.flatMap((l) => t.collections[l].assets)).map((l) => ({ ...l })),
6388
6386
  getInitialPages: () => nt.flatMap(
6389
6387
  (u) => t.collections[u].pages.map((l) => {
6390
- const d = t.collections[u].assets.filter((h) => h.pageId === l.id), f = u === "screens" && e.screensCanvasPartition === "section" && l.section ? `${ki[u]} · ${l.section}` : ki[u];
6388
+ const d = t.collections[u].assets.filter((h) => h.pageId === l.id), f = u === "screens" && e.screensCanvasPartition === "section" && l.section ? `${Fi[u]} · ${l.section}` : Fi[u];
6391
6389
  return {
6392
6390
  name: l.name,
6393
6391
  canvas: f,
@@ -6692,18 +6690,18 @@ function md(t) {
6692
6690
  for (const e of mr) e();
6693
6691
  }
6694
6692
  }
6695
- function ko() {
6693
+ function Fo() {
6696
6694
  return pr;
6697
6695
  }
6698
6696
  function gd(t) {
6699
6697
  return mr.add(t), () => mr.delete(t);
6700
6698
  }
6701
- let Fo = "";
6699
+ let ko = "";
6702
6700
  function vd(t) {
6703
- Fo = t;
6701
+ ko = t;
6704
6702
  }
6705
6703
  function gr() {
6706
- return Fo;
6704
+ return ko;
6707
6705
  }
6708
6706
  let zo = "bitmap";
6709
6707
  function bd(t) {
@@ -6758,7 +6756,7 @@ const Sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6758
6756
  getOnInspectImpact: Nd,
6759
6757
  getOnInspectPreview: xd,
6760
6758
  getOnPreviewOpenChange: vr,
6761
- getPreviewRevision: ko,
6759
+ getPreviewRevision: Fo,
6762
6760
  getStaticFrameSurface: yd,
6763
6761
  setAppOrigin: hd,
6764
6762
  setFlowCanvas: vd,
@@ -6844,12 +6842,12 @@ function Dd(t) {
6844
6842
  const n = t.slice(0, e), r = t.slice(e + 1);
6845
6843
  return n.startsWith("/") || n.split(/[\\/]/).includes("..") || n.length > 1200 || !/^[A-Za-z_$][A-Za-z0-9_$-]*$/.test(r) ? null : { file: n.replaceAll("\\", "/"), className: r };
6846
6844
  }
6847
- function kr(t, e, n, r, i) {
6845
+ function Fr(t, e, n, r, i) {
6848
6846
  var u, l;
6849
6847
  const s = (u = t.domAttributes) == null ? void 0 : u["data-pygmalion-source"], o = s == null ? e : r(s), a = (l = t.domAttributes) == null ? void 0 : l["data-pygmalion-own-source"], c = a != null ? r(a) : s != null ? o : n ?? o;
6850
6848
  if (i(t, o, c)) return !0;
6851
6849
  for (const d of t.children)
6852
- if (kr(
6850
+ if (Fr(
6853
6851
  d,
6854
6852
  o,
6855
6853
  c,
@@ -6862,15 +6860,15 @@ function kr(t, e, n, r, i) {
6862
6860
  function Ln(t, e, n) {
6863
6861
  for (const r of t) {
6864
6862
  let i = null;
6865
- if (kr(r.root, null, null, n, (s, o, a) => s.id !== e ? !1 : (i = { node: s, callSiteIdentity: o, ownIdentity: a, page: r }, !0)), i) return i;
6863
+ if (Fr(r.root, null, null, n, (s, o, a) => s.id !== e ? !1 : (i = { node: s, callSiteIdentity: o, ownIdentity: a, page: r }, !0)), i) return i;
6866
6864
  }
6867
6865
  return null;
6868
6866
  }
6869
- function kn(t, e, n, r, i, s = "call-site") {
6867
+ function Fn(t, e, n, r, i, s = "call-site") {
6870
6868
  const o = [];
6871
6869
  for (const a of t) {
6872
6870
  let c = !1;
6873
- kr(a.root, null, null, i, (u, l, d) => {
6871
+ Fr(a.root, null, null, i, (u, l, d) => {
6874
6872
  const f = s === "own" ? d : l;
6875
6873
  return r === "instance" && u.id === n || r === "shared-source" && f != null && cn(f) === cn(e) ? (c = !0, !0) : !1;
6876
6874
  }), c && o.push({ id: Vo(a), name: a.name });
@@ -6888,7 +6886,7 @@ function Vi(t, e) {
6888
6886
  var n;
6889
6887
  return t.modelField.startsWith("domStyle:") ? e.domStyle[t.modelField.slice(9)] ?? "" : ((n = Bo[t.modelField]) == null ? void 0 : n.read(e)) ?? t.from;
6890
6888
  }
6891
- function Ft(t) {
6889
+ function kt(t) {
6892
6890
  return typeof t == "string" || typeof t == "boolean" || typeof t == "number" && Number.isFinite(t);
6893
6891
  }
6894
6892
  function jd(t) {
@@ -6922,7 +6920,7 @@ class Ld {
6922
6920
  ...Object.keys(r.sourceProps)
6923
6921
  ])) {
6924
6922
  const l = (c = i.node.sourceProps) == null ? void 0 : c[u], d = r.sourceProps[u];
6925
- if (!Ft(l) || !Ft(d) || typeof l != typeof d || l === d)
6923
+ if (!kt(l) || !kt(d) || typeof l != typeof d || l === d)
6926
6924
  continue;
6927
6925
  const f = `prop:${cn(i.ownIdentity)}:${u}`, h = this.baselines.get(f);
6928
6926
  (h == null ? void 0 : h.kind) === "prop" ? h.nodeId = n : this.baselines.set(f, {
@@ -6997,7 +6995,7 @@ class Ld {
6997
6995
  from: o.from,
6998
6996
  to: h,
6999
6997
  scope: c,
7000
- affectedFrames: kn(
6998
+ affectedFrames: Fn(
7001
6999
  e,
7002
7000
  o.identity,
7003
7001
  o.nodeId,
@@ -7009,7 +7007,7 @@ class Ld {
7009
7007
  }
7010
7008
  if (o.kind === "prop") {
7011
7009
  const h = (s = a.node.sourceProps) == null ? void 0 : s[o.prop];
7012
- if (!Ft(h) || typeof h != typeof o.from || h === o.from)
7010
+ if (!kt(h) || typeof h != typeof o.from || h === o.from)
7013
7011
  continue;
7014
7012
  r.push({
7015
7013
  kind: "prop",
@@ -7019,7 +7017,7 @@ class Ld {
7019
7017
  to: h,
7020
7018
  valueType: jd(o.from),
7021
7019
  scope: c,
7022
- affectedFrames: kn(
7020
+ affectedFrames: Fn(
7023
7021
  e,
7024
7022
  o.identity,
7025
7023
  o.nodeId,
@@ -7033,7 +7031,7 @@ class Ld {
7033
7031
  if (c === "instance") continue;
7034
7032
  const u = Vi(o, a.node);
7035
7033
  if (u === o.from) continue;
7036
- const l = `${o.source.file}#${o.source.className}`, d = kn(
7034
+ const l = `${o.source.file}#${o.source.className}`, d = Fn(
7037
7035
  e,
7038
7036
  o.identity,
7039
7037
  o.nodeId,
@@ -7067,14 +7065,14 @@ class Ld {
7067
7065
  s.from = o.node.text;
7068
7066
  else if (s.kind === "prop") {
7069
7067
  const a = (i = o.node.sourceProps) == null ? void 0 : i[s.prop];
7070
- Ft(a) && typeof a == typeof s.from && (s.from = a);
7068
+ kt(a) && typeof a == typeof s.from && (s.from = a);
7071
7069
  } else
7072
7070
  s.from = Vi(s, o.node);
7073
7071
  }
7074
7072
  return this.revision += 1, !0;
7075
7073
  }
7076
7074
  }
7077
- const kd = [
7075
+ const Fd = [
7078
7076
  "type",
7079
7077
  "widthMode",
7080
7078
  "width",
@@ -7100,7 +7098,7 @@ const kd = [
7100
7098
  "childrenText",
7101
7099
  "domAttributes",
7102
7100
  "domStyle"
7103
- ], Fd = new Set(kd), zd = /* @__PURE__ */ new Set([
7101
+ ], kd = new Set(Fd), zd = /* @__PURE__ */ new Set([
7104
7102
  "data-state",
7105
7103
  "data-status",
7106
7104
  "data-selected",
@@ -7117,7 +7115,7 @@ function Vd(t) {
7117
7115
  function Ko(t) {
7118
7116
  const e = {};
7119
7117
  for (const n of Object.keys(t))
7120
- Fd.has(n) && (e[n] = Vd(t[n]));
7118
+ kd.has(n) && (e[n] = Vd(t[n]));
7121
7119
  return e;
7122
7120
  }
7123
7121
  function rt(t) {
@@ -7391,13 +7389,13 @@ function K(t, e = !1) {
7391
7389
  children: n.map((o) => K(o, e))
7392
7390
  });
7393
7391
  }
7394
- function Fn(t) {
7392
+ function kn(t) {
7395
7393
  return JSON.parse(JSON.stringify(t));
7396
7394
  }
7397
7395
  function Wi() {
7398
7396
  return lo().length > 0 ? tl : 0;
7399
7397
  }
7400
- const Fr = 5, rf = `pygmalion.canvas-layout.v${Fr}`, zn = 120, Vn = 80;
7398
+ const kr = 5, rf = `pygmalion.canvas-layout.v${kr}`, zn = 120, Vn = 80;
7401
7399
  function Te(t) {
7402
7400
  return typeof t == "number" && Number.isFinite(t);
7403
7401
  }
@@ -7414,7 +7412,7 @@ function Bn(t, e) {
7414
7412
  function of(t, e) {
7415
7413
  if (!t || typeof t != "object") return !1;
7416
7414
  const n = t;
7417
- return n.version === Fr && n.scope === e && Array.isArray(n.frames) && Array.isArray(n.sections);
7415
+ return n.version === kr && n.scope === e && Array.isArray(n.frames) && Array.isArray(n.sections);
7418
7416
  }
7419
7417
  let tt = 0;
7420
7418
  class af {
@@ -8077,7 +8075,7 @@ ${e}`;
8077
8075
  }
8078
8076
  canvasLayoutSnapshot() {
8079
8077
  return {
8080
- version: Fr,
8078
+ version: kr,
8081
8079
  scope: this.canvasLayoutScope,
8082
8080
  frames: this.pages.map((e, n) => ({
8083
8081
  key: Bn(e, n),
@@ -8132,7 +8130,7 @@ ${e}`;
8132
8130
  startCanvasLayoutPersistence() {
8133
8131
  var s, o;
8134
8132
  if (typeof window > "u") return;
8135
- const e = ((s = an()) == null ? void 0 : s.sourceSha) || ko();
8133
+ const e = ((s = an()) == null ? void 0 : s.sourceSha) || Fo();
8136
8134
  if (!e) return;
8137
8135
  const n = this.pages.map((a, c) => ({
8138
8136
  key: Bn(a, c),
@@ -8654,7 +8652,7 @@ ${e}`;
8654
8652
  rt(n)
8655
8653
  ]),
8656
8654
  sharedSourceStructureOverrides: [...this.sharedSourceStructureOverrides.entries()].map(
8657
- ([e, n]) => [e, n.map(Fn)]
8655
+ ([e, n]) => [e, n.map(kn)]
8658
8656
  ),
8659
8657
  sharedFrozenCssRules: [...this.sharedFrozenCssRules.entries()],
8660
8658
  sharedFrozenDomMutations: [...this.sharedFrozenDomMutations.entries()],
@@ -8686,7 +8684,7 @@ ${e}`;
8686
8684
  ), this.sharedSourceStructureOverrides = new Map(
8687
8685
  (n.sharedSourceStructureOverrides ?? []).map(([r, i]) => [
8688
8686
  r,
8689
- i.map(Fn)
8687
+ i.map(kn)
8690
8688
  ])
8691
8689
  ), this.sharedFrozenCssRules = new Map(n.sharedFrozenCssRules ?? []), this.sharedFrozenDomMutations = new Map(n.sharedFrozenDomMutations ?? []), this.sharedSourceEditScopes = new Map(n.sharedSourceEditScopes ?? []), this.hoveredId = null, this.dragNodeId = null, this.dropHint = null, this.ctxMenu = null, this.renamingId = null, this.editingTextId = null, this.lastCheckpointTag = "", this.lastCheckpointTime = 0;
8692
8690
  for (const r of this.pages) this.bumpPageEditRevision(r.id);
@@ -8882,7 +8880,7 @@ ${e}`;
8882
8880
  const n = e.children.map((i) => B(i));
8883
8881
  this.sharedSourceStructureOverrides.set(
8884
8882
  e.sourceKey,
8885
- n.map(Fn)
8883
+ n.map(kn)
8886
8884
  ), this.recordFrozenPreviewStructure(e);
8887
8885
  const r = /* @__PURE__ */ new Set();
8888
8886
  for (const i of this.pages) {
@@ -9491,7 +9489,7 @@ const wh = Su(lf);
9491
9489
  export {
9492
9490
  dd as $,
9493
9491
  Uf as A,
9494
- kf as B,
9492
+ Ff as B,
9495
9493
  qf as C,
9496
9494
  me as D,
9497
9495
  Ki as E,
@@ -9526,7 +9524,7 @@ export {
9526
9524
  Ke as a4,
9527
9525
  Pd as a5,
9528
9526
  _f as a6,
9529
- ku as a7,
9527
+ Fu as a7,
9530
9528
  _i as a8,
9531
9529
  se as a9,
9532
9530
  If as aA,
@@ -9603,7 +9601,7 @@ export {
9603
9601
  Ef as f,
9604
9602
  ae as g,
9605
9603
  Sf as h,
9606
- ko as i,
9604
+ Fo as i,
9607
9605
  pd as j,
9608
9606
  Lo as k,
9609
9607
  gd as l,
@@ -9614,7 +9612,7 @@ export {
9614
9612
  Su as q,
9615
9613
  oe as r,
9616
9614
  B as s,
9617
- Ff as t,
9615
+ kf as t,
9618
9616
  ds as u,
9619
9617
  Kf as v,
9620
9618
  Yf as w,