@pygmalionjs/pygmalion 0.5.2 → 0.5.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.
@@ -1,11 +1,11 @@
1
- var Bo = Object.defineProperty;
2
- var Ko = (t, e, n) => e in t ? Bo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var b = (t, e, n) => Ko(t, typeof e != "symbol" ? e + "" : e, n);
1
+ var Wo = Object.defineProperty;
2
+ var Go = (t, e, n) => e in t ? Wo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var b = (t, e, n) => Go(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsxs as Kr, jsx as Hr } from "react/jsx-runtime";
5
- import Ht, { useState as Kn, forwardRef as Hn, memo as Un, createElement as Ut, useRef as ht, useEffect as Ur, Component as Ho } from "react";
6
- import { unstable_batchedUpdates as Uo, flushSync as Wo } from "react-dom";
5
+ import Ht, { useState as Kn, forwardRef as Hn, memo as Un, createElement as Ut, useRef as ht, useEffect as Ur, Component as qo } from "react";
6
+ import { unstable_batchedUpdates as Xo, flushSync as Yo } from "react-dom";
7
7
  import { createRoot as Ui } from "react-dom/client";
8
- var Go = {
8
+ var Jo = {
9
9
  0: "Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",
10
10
  1: function(e, n) {
11
11
  return "Cannot apply '" + e + "' to '" + n.toString() + "': Field not found.";
@@ -80,27 +80,27 @@ var Go = {
80
80
  },
81
81
  38: "'ownKeys()' can only be used on observable objects",
82
82
  39: "'defineProperty()' can only be used on observable objects"
83
- }, qo = process.env.NODE_ENV !== "production" ? Go : {};
83
+ }, Zo = process.env.NODE_ENV !== "production" ? Jo : {};
84
84
  function _(t) {
85
85
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
86
86
  n[r - 1] = arguments[r];
87
87
  if (process.env.NODE_ENV !== "production") {
88
- var i = typeof t == "string" ? t : qo[t];
88
+ var i = typeof t == "string" ? t : Zo[t];
89
89
  throw typeof i == "function" && (i = i.apply(null, n)), new Error("[MobX] " + i);
90
90
  }
91
91
  throw new Error(typeof t == "number" ? "[MobX] minified error nr: " + t + (n.length ? " " + n.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + t);
92
92
  }
93
- var Xo = {};
93
+ var Qo = {};
94
94
  function cn() {
95
- return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Xo;
95
+ return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Qo;
96
96
  }
97
97
  var Wi = Object.assign, Wt = Object.getOwnPropertyDescriptor, be = Object.defineProperty, un = Object.prototype, Gt = [];
98
98
  Object.freeze(Gt);
99
99
  var vr = {};
100
100
  Object.freeze(vr);
101
- var Yo = typeof Proxy < "u", Jo = /* @__PURE__ */ Object.toString();
101
+ var ea = typeof Proxy < "u", ta = /* @__PURE__ */ Object.toString();
102
102
  function Gi() {
103
- Yo || _(process.env.NODE_ENV !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
103
+ ea || _(process.env.NODE_ENV !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
104
104
  }
105
105
  function pt(t) {
106
106
  process.env.NODE_ENV !== "production" && y.verifyProxies && _("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + t);
@@ -140,7 +140,7 @@ function z(t) {
140
140
  if (e == null)
141
141
  return !0;
142
142
  var n = Object.hasOwnProperty.call(e, "constructor") && e.constructor;
143
- return typeof n == "function" && n.toString() === Jo;
143
+ return typeof n == "function" && n.toString() === ta;
144
144
  }
145
145
  function qi(t) {
146
146
  var e = t == null ? void 0 : t.constructor;
@@ -171,7 +171,7 @@ function Je(t, e) {
171
171
  function lt(t) {
172
172
  return t != null && Object.prototype.toString.call(t) === "[object Map]";
173
173
  }
174
- function Zo(t) {
174
+ function na(t) {
175
175
  var e = Object.getPrototypeOf(t), n = Object.getPrototypeOf(e), r = Object.getPrototypeOf(n);
176
176
  return r === null;
177
177
  }
@@ -179,7 +179,7 @@ function Ee(t) {
179
179
  return t != null && Object.prototype.toString.call(t) === "[object Set]";
180
180
  }
181
181
  var Yi = typeof Object.getOwnPropertySymbols < "u";
182
- function Qo(t) {
182
+ function ra(t) {
183
183
  var e = Object.keys(t);
184
184
  if (!Yi)
185
185
  return e;
@@ -203,7 +203,7 @@ function Ji(t) {
203
203
  function ne(t, e) {
204
204
  return un.hasOwnProperty.call(t, e);
205
205
  }
206
- var ea = Object.getOwnPropertyDescriptors || function(e) {
206
+ var ia = Object.getOwnPropertyDescriptors || function(e) {
207
207
  var n = {};
208
208
  return ct(e).forEach(function(r) {
209
209
  n[r] = Wt(e, r);
@@ -220,28 +220,28 @@ function Wr(t, e) {
220
220
  for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
221
221
  return r;
222
222
  }
223
- function ta(t, e, n) {
223
+ function sa(t, e, n) {
224
224
  if (Zi()) return Reflect.construct.apply(null, arguments);
225
225
  var r = [null];
226
226
  r.push.apply(r, e);
227
227
  var i = new (t.bind.apply(t, r))();
228
228
  return n && bt(i, n.prototype), i;
229
229
  }
230
- function na(t, e) {
230
+ function oa(t, e) {
231
231
  for (var n = 0; n < e.length; n++) {
232
232
  var r = e[n];
233
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, sa(r.key), r);
233
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, ua(r.key), r);
234
234
  }
235
235
  }
236
236
  function dt(t, e, n) {
237
- return e && na(t.prototype, e), Object.defineProperty(t, "prototype", {
237
+ return e && oa(t.prototype, e), Object.defineProperty(t, "prototype", {
238
238
  writable: !1
239
239
  }), t;
240
240
  }
241
241
  function st(t, e) {
242
242
  var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
243
243
  if (n) return (n = n.call(t)).next.bind(n);
244
- if (Array.isArray(t) || (n = oa(t)) || e) {
244
+ if (Array.isArray(t) || (n = la(t)) || e) {
245
245
  n && (t = n);
246
246
  var r = 0;
247
247
  return function() {
@@ -273,7 +273,7 @@ function Gn(t) {
273
273
  function yr(t, e) {
274
274
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, bt(t, e);
275
275
  }
276
- function ra(t) {
276
+ function aa(t) {
277
277
  try {
278
278
  return Function.toString.call(t).indexOf("[native code]") !== -1;
279
279
  } catch {
@@ -295,7 +295,7 @@ function bt(t, e) {
295
295
  return n.__proto__ = r, n;
296
296
  }, bt(t, e);
297
297
  }
298
- function ia(t, e) {
298
+ function ca(t, e) {
299
299
  if (typeof t != "object" || !t) return t;
300
300
  var n = t[Symbol.toPrimitive];
301
301
  if (n !== void 0) {
@@ -305,11 +305,11 @@ function ia(t, e) {
305
305
  }
306
306
  return String(t);
307
307
  }
308
- function sa(t) {
309
- var e = ia(t, "string");
308
+ function ua(t) {
309
+ var e = ca(t, "string");
310
310
  return typeof e == "symbol" ? e : e + "";
311
311
  }
312
- function oa(t, e) {
312
+ function la(t, e) {
313
313
  if (t) {
314
314
  if (typeof t == "string") return Wr(t, e);
315
315
  var n = {}.toString.call(t).slice(8, -1);
@@ -319,14 +319,14 @@ function oa(t, e) {
319
319
  function qn(t) {
320
320
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
321
321
  return qn = function(n) {
322
- if (n === null || !ra(n)) return n;
322
+ if (n === null || !aa(n)) return n;
323
323
  if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
324
324
  if (e !== void 0) {
325
325
  if (e.has(n)) return e.get(n);
326
326
  e.set(n, r);
327
327
  }
328
328
  function r() {
329
- return ta(n, arguments, Gn(this).constructor);
329
+ return sa(n, arguments, Gn(this).constructor);
330
330
  }
331
331
  return r.prototype = Object.create(n.prototype, {
332
332
  constructor: {
@@ -352,9 +352,9 @@ function Et(t, e, n) {
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
- aa(t, n, e), qt(n) || (t[k][e] = n);
355
+ da(t, n, e), qt(n) || (t[k][e] = n);
356
356
  }
357
- function aa(t, e, n) {
357
+ function da(t, e, n) {
358
358
  if (process.env.NODE_ENV !== "production" && !qt(e) && ne(t[k], n)) {
359
359
  var r = t.constructor.name + ".prototype." + n.toString(), i = t[k][n].annotationType_, s = e.annotationType_;
360
360
  _("Cannot apply '@" + s + "' to '" + r + "':" + (`
@@ -363,7 +363,7 @@ Re-decorating fields is not allowed.
363
363
  Use '@override' decorator for methods overridden by subclass.`);
364
364
  }
365
365
  }
366
- function ca(t) {
366
+ function fa(t) {
367
367
  return ne(t, k) || Ot(t, k, Ne({}, t[k])), t[k];
368
368
  }
369
369
  function xt(t) {
@@ -424,17 +424,17 @@ var _r = /* @__PURE__ */ Je("Atom", je);
424
424
  function Qi(t, e, n) {
425
425
  e === void 0 && (e = it), n === void 0 && (n = it);
426
426
  var r = new je(t);
427
- return e !== it && Ec(r, e), n !== it && ws(r, n), r;
427
+ return e !== it && Ic(r, e), n !== it && ws(r, n), r;
428
428
  }
429
- function ua(t, e) {
430
- return Ls(t, e);
429
+ function ha(t, e) {
430
+ return Fs(t, e);
431
431
  }
432
- function la(t, e) {
432
+ function pa(t, e) {
433
433
  return Object.is ? Object.is(t, e) : t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
434
434
  }
435
435
  var Ke = {
436
- structural: ua,
437
- default: la
436
+ structural: ha,
437
+ default: pa
438
438
  };
439
439
  function He(t, e, n) {
440
440
  return St(t) ? t : Array.isArray(t) ? j.array(t, {
@@ -447,8 +447,8 @@ function He(t, e, n) {
447
447
  name: n
448
448
  }) : typeof t == "function" && !Ge(t) && !_t(t) ? qi(t) ? ut(t) : yt(n, t) : t;
449
449
  }
450
- function da(t, e, n) {
451
- if (t == null || qe(t) || It(t) || Pe(t) || ge(t))
450
+ function ma(t, e, n) {
451
+ if (t == null || qe(t) || Pt(t) || Ie(t) || ge(t))
452
452
  return t;
453
453
  if (Array.isArray(t))
454
454
  return j.array(t, {
@@ -475,23 +475,23 @@ function da(t, e, n) {
475
475
  function fn(t) {
476
476
  return t;
477
477
  }
478
- function fa(t, e) {
479
- return process.env.NODE_ENV !== "production" && St(t) && _("observable.struct should not be used with observable values"), Ls(t, e) ? e : t;
478
+ function ga(t, e) {
479
+ return process.env.NODE_ENV !== "production" && St(t) && _("observable.struct should not be used with observable values"), Fs(t, e) ? e : t;
480
480
  }
481
- var ha = "override";
481
+ var va = "override";
482
482
  function qt(t) {
483
- return t.annotationType_ === ha;
483
+ return t.annotationType_ === va;
484
484
  }
485
485
  function At(t, e) {
486
486
  return {
487
487
  annotationType_: t,
488
488
  options_: e,
489
- make_: pa,
490
- extend_: ma,
491
- decorate_20223_: ga
489
+ make_: ba,
490
+ extend_: ya,
491
+ decorate_20223_: _a
492
492
  };
493
493
  }
494
- function pa(t, e, n, r) {
494
+ function ba(t, e, n, r) {
495
495
  var i;
496
496
  if ((i = this.options_) != null && i.bound)
497
497
  return this.extend_(t, e, n, !1) === null ? 0 : 1;
@@ -502,11 +502,11 @@ function pa(t, e, n, r) {
502
502
  var s = es(t, this, e, n, !1);
503
503
  return be(r, e, s), 2;
504
504
  }
505
- function ma(t, e, n, r) {
505
+ function ya(t, e, n, r) {
506
506
  var i = es(t, this, e, n);
507
507
  return t.defineProperty_(e, i, r);
508
508
  }
509
- function ga(t, e) {
509
+ function _a(t, e) {
510
510
  process.env.NODE_ENV !== "production" && dn(e, ["method", "field"]);
511
511
  var n = e.kind, r = e.name, i = e.addInitializer, s = this, o = function(u) {
512
512
  var l, d, f, h;
@@ -527,14 +527,14 @@ function ga(t, e) {
527
527
  _("Cannot apply '" + s.annotationType_ + "' to '" + String(r) + "' (kind: " + n + "):" + (`
528
528
  '` + s.annotationType_ + "' can only be used on properties with a function value."));
529
529
  }
530
- function va(t, e, n, r) {
530
+ function Sa(t, e, n, r) {
531
531
  var i = e.annotationType_, s = r.value;
532
532
  process.env.NODE_ENV !== "production" && !T(s) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
533
533
  '` + i + "' can only be used on properties with a function value."));
534
534
  }
535
535
  function es(t, e, n, r, i) {
536
536
  var s, o, a, c, u, l, d;
537
- i === void 0 && (i = y.safeDescriptors), va(t, e, n, r);
537
+ i === void 0 && (i = y.safeDescriptors), Sa(t, e, n, r);
538
538
  var f = r.value;
539
539
  if ((s = e.options_) != null && s.bound) {
540
540
  var h;
@@ -562,12 +562,12 @@ function ts(t, e) {
562
562
  return {
563
563
  annotationType_: t,
564
564
  options_: e,
565
- make_: ba,
566
- extend_: ya,
567
- decorate_20223_: _a
565
+ make_: wa,
566
+ extend_: Oa,
567
+ decorate_20223_: Ea
568
568
  };
569
569
  }
570
- function ba(t, e, n, r) {
570
+ function wa(t, e, n, r) {
571
571
  var i;
572
572
  if (r === t.target_)
573
573
  return this.extend_(t, e, n, !1) === null ? 0 : 2;
@@ -578,11 +578,11 @@ function ba(t, e, n, r) {
578
578
  var s = ns(t, this, e, n, !1, !1);
579
579
  return be(r, e, s), 2;
580
580
  }
581
- function ya(t, e, n, r) {
581
+ function Oa(t, e, n, r) {
582
582
  var i, s = ns(t, this, e, n, (i = this.options_) == null ? void 0 : i.bound);
583
583
  return t.defineProperty_(e, s, r);
584
584
  }
585
- function _a(t, e) {
585
+ function Ea(t, e) {
586
586
  var n;
587
587
  process.env.NODE_ENV !== "production" && dn(e, ["method"]);
588
588
  var r = e.name, i = e.addInitializer;
@@ -591,13 +591,13 @@ function _a(t, e) {
591
591
  o.isMobXFlow = !0, s[r] = o;
592
592
  }), t;
593
593
  }
594
- function Sa(t, e, n, r) {
594
+ function xa(t, e, n, r) {
595
595
  var i = e.annotationType_, s = r.value;
596
596
  process.env.NODE_ENV !== "production" && !T(s) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
597
597
  '` + i + "' can only be used on properties with a generator function value."));
598
598
  }
599
599
  function ns(t, e, n, r, i, s) {
600
- s === void 0 && (s = y.safeDescriptors), Sa(t, e, n, r);
600
+ s === void 0 && (s = y.safeDescriptors), xa(t, e, n, r);
601
601
  var o = r.value;
602
602
  if (_t(o) || (o = ut(o)), i) {
603
603
  var a;
@@ -619,21 +619,21 @@ function Sr(t, e) {
619
619
  return {
620
620
  annotationType_: t,
621
621
  options_: e,
622
- make_: wa,
623
- extend_: Oa,
624
- decorate_20223_: Ea
622
+ make_: Aa,
623
+ extend_: Na,
624
+ decorate_20223_: Ia
625
625
  };
626
626
  }
627
- function wa(t, e, n) {
627
+ function Aa(t, e, n) {
628
628
  return this.extend_(t, e, n, !1) === null ? 0 : 1;
629
629
  }
630
- function Oa(t, e, n, r) {
631
- return xa(t, this, e, n), t.defineComputedProperty_(e, Ne({}, this.options_, {
630
+ function Na(t, e, n, r) {
631
+ return Pa(t, this, e, n), t.defineComputedProperty_(e, Ne({}, this.options_, {
632
632
  get: n.get,
633
633
  set: n.set
634
634
  }), r);
635
635
  }
636
- function Ea(t, e) {
636
+ function Ia(t, e) {
637
637
  process.env.NODE_ENV !== "production" && dn(e, ["getter"]);
638
638
  var n = this, r = e.name, i = e.addInitializer, s;
639
639
  function o(a, c) {
@@ -661,7 +661,7 @@ function Ea(t, e) {
661
661
  return a.getObservablePropValue_(r);
662
662
  };
663
663
  }
664
- function xa(t, e, n, r) {
664
+ function Pa(t, e, n, r) {
665
665
  var i = e.annotationType_, s = r.get;
666
666
  process.env.NODE_ENV !== "production" && !s && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
667
667
  '` + i + "' can only be used on getter(+setter) properties."));
@@ -670,19 +670,19 @@ function hn(t, e) {
670
670
  return {
671
671
  annotationType_: t,
672
672
  options_: e,
673
- make_: Aa,
674
- extend_: Na,
675
- decorate_20223_: Pa
673
+ make_: Ma,
674
+ extend_: Ca,
675
+ decorate_20223_: Ta
676
676
  };
677
677
  }
678
- function Aa(t, e, n) {
678
+ function Ma(t, e, n) {
679
679
  return this.extend_(t, e, n, !1) === null ? 0 : 1;
680
680
  }
681
- function Na(t, e, n, r) {
681
+ function Ca(t, e, n, r) {
682
682
  var i, s;
683
- return Ia(t, this, e, n), t.defineObservableProperty_(e, n.value, (i = (s = this.options_) == null ? void 0 : s.enhancer) != null ? i : He, r);
683
+ return Da(t, this, e, n), t.defineObservableProperty_(e, n.value, (i = (s = this.options_) == null ? void 0 : s.enhancer) != null ? i : He, r);
684
684
  }
685
- function Pa(t, e) {
685
+ function Ta(t, e) {
686
686
  if (process.env.NODE_ENV !== "production") {
687
687
  if (e.kind === "field")
688
688
  throw _("Please use `@observable accessor " + String(e.name) + "` instead of `@observable " + String(e.name) + "`");
@@ -712,22 +712,22 @@ function Pa(t, e) {
712
712
  }
713
713
  };
714
714
  }
715
- function Ia(t, e, n, r) {
715
+ function Da(t, e, n, r) {
716
716
  var i = e.annotationType_;
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 Ma = "true", Ca = /* @__PURE__ */ rs();
720
+ var $a = "true", Ra = /* @__PURE__ */ rs();
721
721
  function rs(t) {
722
722
  return {
723
- annotationType_: Ma,
723
+ annotationType_: $a,
724
724
  options_: t,
725
- make_: Ta,
726
- extend_: Da,
727
- decorate_20223_: $a
725
+ make_: ja,
726
+ extend_: Fa,
727
+ decorate_20223_: La
728
728
  };
729
729
  }
730
- function Ta(t, e, n, r) {
730
+ function ja(t, e, n, r) {
731
731
  var i, s;
732
732
  if (n.get)
733
733
  return pn.make_(t, e, n, r);
@@ -757,7 +757,7 @@ function Ta(t, e, n, r) {
757
757
  }
758
758
  return d.make_(t, e, n, r);
759
759
  }
760
- function Da(t, e, n, r) {
760
+ function Fa(t, e, n, r) {
761
761
  var i, s;
762
762
  if (n.get)
763
763
  return pn.extend_(t, e, n, r);
@@ -773,10 +773,10 @@ function Da(t, e, n, r) {
773
773
  var a = ((s = this.options_) == null ? void 0 : s.deep) === !1 ? j.ref : j;
774
774
  return a.extend_(t, e, n, r);
775
775
  }
776
- function $a(t, e) {
776
+ function La(t, e) {
777
777
  _("'" + this.annotationType_ + "' cannot be used as a decorator");
778
778
  }
779
- var Ra = "observable", ja = "observable.ref", La = "observable.shallow", Fa = "observable.struct", is = {
779
+ var ka = "observable", za = "observable.ref", Va = "observable.shallow", Ba = "observable.struct", is = {
780
780
  deep: !0,
781
781
  name: void 0,
782
782
  defaultDecorator: void 0,
@@ -786,21 +786,21 @@ Object.freeze(is);
786
786
  function Tt(t) {
787
787
  return t || is;
788
788
  }
789
- var Xn = /* @__PURE__ */ hn(Ra), ka = /* @__PURE__ */ hn(ja, {
789
+ var Xn = /* @__PURE__ */ hn(ka), Ka = /* @__PURE__ */ hn(za, {
790
790
  enhancer: fn
791
- }), za = /* @__PURE__ */ hn(La, {
792
- enhancer: da
793
- }), Va = /* @__PURE__ */ hn(Fa, {
794
- enhancer: fa
791
+ }), Ha = /* @__PURE__ */ hn(Va, {
792
+ enhancer: ma
793
+ }), Ua = /* @__PURE__ */ hn(Ba, {
794
+ enhancer: ga
795
795
  }), ss = /* @__PURE__ */ ye(Xn);
796
796
  function Dt(t) {
797
- return t.deep === !0 ? He : t.deep === !1 ? fn : Ka(t.defaultDecorator);
797
+ return t.deep === !0 ? He : t.deep === !1 ? fn : Ga(t.defaultDecorator);
798
798
  }
799
- function Ba(t) {
799
+ function Wa(t) {
800
800
  var e;
801
801
  return t ? (e = t.defaultDecorator) != null ? e : rs(t) : void 0;
802
802
  }
803
- function Ka(t) {
803
+ function Ga(t) {
804
804
  var e, n;
805
805
  return t && (e = (n = t.options_) == null ? void 0 : n.enhancer) != null ? e : He;
806
806
  }
@@ -814,14 +814,14 @@ function os(t, e, n) {
814
814
  return St(t) ? t : z(t) ? j.object(t, e, n) : Array.isArray(t) ? j.array(t, e) : lt(t) ? j.map(t, e) : Ee(t) ? j.set(t, e) : typeof t == "object" && t !== null ? t : j.box(t, e);
815
815
  }
816
816
  Wi(os, ss);
817
- var Ha = {
817
+ var qa = {
818
818
  box: function(e, n) {
819
819
  var r = Tt(n);
820
820
  return new Be(e, Dt(r), r.name, !0, r.equals);
821
821
  },
822
822
  array: function(e, n) {
823
823
  var r = Tt(n);
824
- return (y.useProxies === !1 || r.proxy === !1 ? Xc : kc)(e, Dt(r), r.name);
824
+ return (y.useProxies === !1 || r.proxy === !1 ? Qc : Kc)(e, Dt(r), r.name);
825
825
  },
826
826
  map: function(e, n) {
827
827
  var r = Tt(n);
@@ -832,15 +832,15 @@ var Ha = {
832
832
  return new Ts(e, Dt(r), r.name);
833
833
  },
834
834
  object: function(e, n, r) {
835
- return Le(function() {
836
- return Es(y.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? Qe({}, r) : Rc({}, r), e, n);
835
+ return Fe(function() {
836
+ return Es(y.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? Qe({}, r) : kc({}, r), e, n);
837
837
  });
838
838
  },
839
- ref: /* @__PURE__ */ ye(ka),
840
- shallow: /* @__PURE__ */ ye(za),
839
+ ref: /* @__PURE__ */ ye(Ka),
840
+ shallow: /* @__PURE__ */ ye(Ha),
841
841
  deep: ss,
842
- struct: /* @__PURE__ */ ye(Va)
843
- }, j = /* @__PURE__ */ Wi(os, Ha), as = "computed", Ua = "computed.struct", Yn = /* @__PURE__ */ Sr(as), Wa = /* @__PURE__ */ Sr(Ua, {
842
+ struct: /* @__PURE__ */ ye(Ua)
843
+ }, j = /* @__PURE__ */ Wi(os, qa), as = "computed", Xa = "computed.struct", Yn = /* @__PURE__ */ Sr(as), Ya = /* @__PURE__ */ Sr(Xa, {
844
844
  equals: Ke.structural
845
845
  }), pn = function(e, n) {
846
846
  if (xt(n))
@@ -854,8 +854,8 @@ var Ha = {
854
854
  return r.get = e, r.name || (r.name = e.name || ""), new V(r);
855
855
  };
856
856
  Object.assign(pn, Yn);
857
- pn.struct = /* @__PURE__ */ ye(Wa);
858
- var Gr, qr, Xt = 0, Ga = 1, qa = (Gr = (qr = /* @__PURE__ */ Wt(function() {
857
+ pn.struct = /* @__PURE__ */ ye(Ya);
858
+ var Gr, qr, Xt = 0, Ja = 1, Za = (Gr = (qr = /* @__PURE__ */ Wt(function() {
859
859
  }, "name")) == null ? void 0 : qr.configurable) != null ? Gr : !1, Xr = {
860
860
  value: "action",
861
861
  configurable: !0,
@@ -865,24 +865,24 @@ var Gr, qr, Xt = 0, Ga = 1, qa = (Gr = (qr = /* @__PURE__ */ Wt(function() {
865
865
  function Ue(t, e, n, r) {
866
866
  n === void 0 && (n = !1), process.env.NODE_ENV !== "production" && (T(e) || _("`action` can only be invoked on functions"), (typeof t != "string" || !t) && _("actions should have valid names, got: '" + t + "'"));
867
867
  function i() {
868
- return Xa(t, n, e, r || this, arguments);
868
+ return Qa(t, n, e, r || this, arguments);
869
869
  }
870
870
  return i.isMobxAction = !0, i.toString = function() {
871
871
  return e.toString();
872
- }, qa && (Xr.value = t, be(i, "name", Xr)), i;
872
+ }, Za && (Xr.value = t, be(i, "name", Xr)), i;
873
873
  }
874
- function Xa(t, e, n, r, i) {
875
- var s = Ya(t, e, r, i);
874
+ function Qa(t, e, n, r, i) {
875
+ var s = ec(t, e, r, i);
876
876
  try {
877
877
  return n.apply(r, i);
878
878
  } catch (o) {
879
879
  throw s.error_ = o, o;
880
880
  } finally {
881
- Ja(s);
881
+ tc(s);
882
882
  }
883
883
  }
884
- function Ya(t, e, n, r) {
885
- var i = process.env.NODE_ENV !== "production" && F() && !!t, s = 0;
884
+ function ec(t, e, n, r) {
885
+ var i = process.env.NODE_ENV !== "production" && L() && !!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) : Gt;
@@ -904,17 +904,17 @@ function Ya(t, e, n, r) {
904
904
  prevAllowStateReads_: l,
905
905
  notifySpy_: i,
906
906
  startTime_: s,
907
- actionId_: Ga++,
907
+ actionId_: Ja++,
908
908
  parentActionId_: Xt
909
909
  };
910
910
  return Xt = d.actionId_, d;
911
911
  }
912
- function Ja(t) {
912
+ function tc(t) {
913
913
  Xt !== t.actionId_ && _(30), Xt = t.parentActionId_, t.error_ !== void 0 && (y.suppressReactionErrors = !0), gn(t.prevAllowStateChanges_), vt(t.prevAllowStateReads_), te(), t.runAsAction_ && Ae(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && G({
914
914
  time: Date.now() - t.startTime_
915
915
  }), y.suppressReactionErrors = !1;
916
916
  }
917
- function Za(t, e) {
917
+ function nc(t, e) {
918
918
  var n = mn(t);
919
919
  try {
920
920
  return e();
@@ -929,13 +929,13 @@ function mn(t) {
929
929
  function gn(t) {
930
930
  y.allowStateChanges = t;
931
931
  }
932
- var Qa = "create", Be = /* @__PURE__ */ (function(t) {
932
+ var rc = "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 && F()) {
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 && L()) {
936
936
  var u;
937
937
  We({
938
- type: Qa,
938
+ type: rc,
939
939
  object: c,
940
940
  observableKind: "value",
941
941
  debugObjectName: c.name_,
@@ -951,7 +951,7 @@ var Qa = "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 = F();
954
+ var o = L();
955
955
  process.env.NODE_ENV !== "production" && o && W({
956
956
  type: ue,
957
957
  object: this,
@@ -993,7 +993,7 @@ var Qa = "create", Be = /* @__PURE__ */ (function(t) {
993
993
  type: ue,
994
994
  newValue: this.value_,
995
995
  oldValue: void 0
996
- }), Pt(this, i);
996
+ }), It(this, i);
997
997
  }, n.raw = function() {
998
998
  return this.value_;
999
999
  }, n.toJSON = function() {
@@ -1011,7 +1011,7 @@ var Qa = "create", Be = /* @__PURE__ */ (function(t) {
1011
1011
  }
1012
1012
  var e = t.prototype;
1013
1013
  return e.onBecomeStale_ = function() {
1014
- cc(this);
1014
+ fc(this);
1015
1015
  }, e.onBO = function() {
1016
1016
  this.onBOL && this.onBOL.forEach(function(r) {
1017
1017
  return r();
@@ -1026,7 +1026,7 @@ var Qa = "create", Be = /* @__PURE__ */ (function(t) {
1026
1026
  Jn(this) && (this.warnAboutUntrackedRead_(), ee(), this.value_ = this.computeValue_(!1), te());
1027
1027
  else if (ps(this), Jn(this)) {
1028
1028
  var r = y.trackingContext;
1029
- this.keepAlive_ && !r && (y.trackingContext = this), this.trackAndCompute() && ac(this), y.trackingContext = r;
1029
+ this.keepAlive_ && !r && (y.trackingContext = this), this.trackAndCompute() && dc(this), y.trackingContext = r;
1030
1030
  }
1031
1031
  var i = this.value_;
1032
1032
  if (kt(i))
@@ -1047,7 +1047,7 @@ var Qa = "create", Be = /* @__PURE__ */ (function(t) {
1047
1047
  /* see #1208 */
1048
1048
  this.dependenciesState_ === x.NOT_TRACKING_
1049
1049
  ), s = this.computeValue_(!0), o = i || kt(r) || kt(s) || !this.equals_(r, s);
1050
- return o && (this.value_ = s, process.env.NODE_ENV !== "production" && F() && We({
1050
+ return o && (this.value_ = s, process.env.NODE_ENV !== "production" && L() && We({
1051
1051
  observableKind: "computed",
1052
1052
  debugObjectName: this.name_,
1053
1053
  object: this.scope_,
@@ -1073,7 +1073,7 @@ var Qa = "create", Be = /* @__PURE__ */ (function(t) {
1073
1073
  this.keepAlive_ || (Zn(this), this.value_ = void 0, process.env.NODE_ENV !== "production" && this.isTracing_ !== re.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) {
1075
1075
  var s = this, o = !0, a = void 0;
1076
- return bc(function() {
1076
+ return wc(function() {
1077
1077
  var c = s.get();
1078
1078
  if (!o || i) {
1079
1079
  var u = Ze();
@@ -1190,7 +1190,7 @@ function ve(t) {
1190
1190
  !y.allowStateChanges && (e || y.enforceActions === "always") && console.warn("[MobX] " + (y.enforceActions ? "Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: " : "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ") + t.name_);
1191
1191
  }
1192
1192
  }
1193
- function ec(t) {
1193
+ function ic(t) {
1194
1194
  process.env.NODE_ENV !== "production" && !y.allowStateReads && y.observableRequiresReaction && console.warn("[mobx] Observable '" + t.name_ + "' being read outside a reactive context.");
1195
1195
  }
1196
1196
  function cs(t, e, n) {
@@ -1211,12 +1211,12 @@ function cs(t, e, n) {
1211
1211
  } catch (o) {
1212
1212
  s = new Yt(o);
1213
1213
  }
1214
- return y.inBatch--, y.trackingDerivation = i, nc(t), tc(t), vt(r), s;
1214
+ return y.inBatch--, y.trackingDerivation = i, oc(t), sc(t), vt(r), s;
1215
1215
  }
1216
- function tc(t) {
1216
+ function sc(t) {
1217
1217
  process.env.NODE_ENV !== "production" && t.observing_.length === 0 && (typeof t.requiresObservable_ == "boolean" ? t.requiresObservable_ : y.reactionRequiresObservable) && console.warn("[mobx] Derivation '" + t.name_ + "' is created/updated without reading any observable value.");
1218
1218
  }
1219
- function nc(t) {
1219
+ function oc(t) {
1220
1220
  for (var e = t.observing_, n = t.observing_ = t.newObserving_, r = x.UP_TO_DATE_, i = 0, s = t.unboundDepsCount_, o = 0; o < s; o++) {
1221
1221
  var a = n[o];
1222
1222
  a.diffValue === 0 && (a.diffValue = 1, i !== o && (n[i] = a), i++), a.dependenciesState_ > r && (r = a.dependenciesState_);
@@ -1227,7 +1227,7 @@ function nc(t) {
1227
1227
  }
1228
1228
  for (; i--; ) {
1229
1229
  var u = n[i];
1230
- u.diffValue === 1 && (u.diffValue = 0, oc(u, t));
1230
+ u.diffValue === 1 && (u.diffValue = 0, lc(u, t));
1231
1231
  }
1232
1232
  r !== x.UP_TO_DATE_ && (t.dependenciesState_ = r, t.onBecomeStale_());
1233
1233
  }
@@ -1275,19 +1275,19 @@ var zt = function() {
1275
1275
  ds || _(35);
1276
1276
  }, 1), new zt());
1277
1277
  })();
1278
- function rc() {
1278
+ function ac() {
1279
1279
  if ((y.pendingReactions.length || y.inBatch || y.isRunningReactions) && _(36), ds = !0, Vt) {
1280
1280
  var t = cn();
1281
1281
  --t.__mobxInstanceCount === 0 && (t.__mobxGlobals = void 0), y = new zt();
1282
1282
  }
1283
1283
  }
1284
- function ic(t) {
1284
+ function cc(t) {
1285
1285
  return t.observers_ && t.observers_.size > 0;
1286
1286
  }
1287
- function sc(t) {
1287
+ function uc(t) {
1288
1288
  return t.observers_;
1289
1289
  }
1290
- function oc(t, e) {
1290
+ function lc(t, e) {
1291
1291
  t.observers_.add(e), t.lowestObserverState_ > e.dependenciesState_ && (t.lowestObserverState_ = e.dependenciesState_);
1292
1292
  }
1293
1293
  function fs(t, e) {
@@ -1310,7 +1310,7 @@ function te() {
1310
1310
  }
1311
1311
  }
1312
1312
  function ps(t) {
1313
- ec(t);
1313
+ ic(t);
1314
1314
  var e = y.trackingDerivation;
1315
1315
  return e !== null ? (e.runId_ !== t.lastAccessedBy_ && (t.lastAccessedBy_ = e.runId_, e.newObserving_[e.unboundDepsCount_++] = t, !t.isBeingObserved && y.trackingContext && (t.isBeingObserved = !0, t.onBO())), t.isBeingObserved) : (t.observers_.size === 0 && y.inBatch > 0 && hs(t), !1);
1316
1316
  }
@@ -1319,12 +1319,12 @@ function ms(t) {
1319
1319
  e.dependenciesState_ === x.UP_TO_DATE_ && (process.env.NODE_ENV !== "production" && e.isTracing_ !== re.NONE && gs(e, t), e.onBecomeStale_()), e.dependenciesState_ = x.STALE_;
1320
1320
  }));
1321
1321
  }
1322
- function ac(t) {
1322
+ function dc(t) {
1323
1323
  t.lowestObserverState_ !== x.STALE_ && (t.lowestObserverState_ = x.STALE_, t.observers_.forEach(function(e) {
1324
1324
  e.dependenciesState_ === x.POSSIBLY_STALE_ ? (e.dependenciesState_ = x.STALE_, process.env.NODE_ENV !== "production" && e.isTracing_ !== re.NONE && gs(e, t)) : e.dependenciesState_ === x.UP_TO_DATE_ && (t.lowestObserverState_ = x.UP_TO_DATE_);
1325
1325
  }));
1326
1326
  }
1327
- function cc(t) {
1327
+ function fc(t) {
1328
1328
  t.lowestObserverState_ === x.UP_TO_DATE_ && (t.lowestObserverState_ = x.POSSIBLY_STALE_, t.observers_.forEach(function(e) {
1329
1329
  e.dependenciesState_ === x.UP_TO_DATE_ && (e.dependenciesState_ = x.POSSIBLY_STALE_, e.onBecomeStale_());
1330
1330
  }));
@@ -1375,7 +1375,7 @@ var _e = /* @__PURE__ */ (function() {
1375
1375
  if (y.trackingContext = this, Jn(this)) {
1376
1376
  this.isTrackPending = !0;
1377
1377
  try {
1378
- this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && F() && We({
1378
+ this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && L() && 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 = F(), s;
1391
+ var i = L(), 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" && F() && 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" && L() && We({
1413
1413
  type: "error",
1414
1414
  name: this.name_,
1415
1415
  message: s,
@@ -1427,7 +1427,7 @@ var _e = /* @__PURE__ */ (function() {
1427
1427
  }, e.toString = function() {
1428
1428
  return "Reaction[" + this.name_ + "]";
1429
1429
  }, e.trace = function(r) {
1430
- r === void 0 && (r = !1), Tc(this, r);
1430
+ r === void 0 && (r = !1), jc(this, r);
1431
1431
  }, dt(t, [{
1432
1432
  key: "isDisposed",
1433
1433
  get: function() {
@@ -1479,9 +1479,9 @@ var Yr = 100, Qn = function(e) {
1479
1479
  return e();
1480
1480
  };
1481
1481
  function bs() {
1482
- y.inBatch > 0 || y.isRunningReactions || Qn(uc);
1482
+ y.inBatch > 0 || y.isRunningReactions || Qn(hc);
1483
1483
  }
1484
- function uc() {
1484
+ function hc() {
1485
1485
  y.isRunningReactions = !0;
1486
1486
  for (var t = y.pendingReactions, e = 0; t.length > 0; ) {
1487
1487
  ++e === Yr && (console.error(process.env.NODE_ENV !== "production" ? "Reaction doesn't converge to a stable state after " + Yr + " iterations." + (" Probably there is a cycle in the reactive function: " + t[0]) : "[mobx] cycle in reaction: " + t[0]), t.splice(0));
@@ -1491,7 +1491,7 @@ function uc() {
1491
1491
  y.isRunningReactions = !1;
1492
1492
  }
1493
1493
  var Jt = /* @__PURE__ */ Je("Reaction", _e);
1494
- function lc(t) {
1494
+ function pc(t) {
1495
1495
  var e = Qn;
1496
1496
  Qn = function(r) {
1497
1497
  return t(function() {
@@ -1499,7 +1499,7 @@ function lc(t) {
1499
1499
  });
1500
1500
  };
1501
1501
  }
1502
- function F() {
1502
+ function L() {
1503
1503
  return process.env.NODE_ENV !== "production" && !!y.spyListeners.length;
1504
1504
  }
1505
1505
  function We(t) {
@@ -1515,7 +1515,7 @@ function W(t) {
1515
1515
  We(e);
1516
1516
  }
1517
1517
  }
1518
- var dc = {
1518
+ var mc = {
1519
1519
  type: "report-end",
1520
1520
  spyReportEnd: !0
1521
1521
  };
@@ -1523,9 +1523,9 @@ function G(t) {
1523
1523
  process.env.NODE_ENV !== "production" && We(t ? Ne({}, t, {
1524
1524
  type: "report-end",
1525
1525
  spyReportEnd: !0
1526
- }) : dc);
1526
+ }) : mc);
1527
1527
  }
1528
- function fc(t) {
1528
+ function gc(t) {
1529
1529
  return process.env.NODE_ENV === "production" ? (console.warn("[mobx.spy] Is a no-op in production builds"), function() {
1530
1530
  }) : (y.spyListeners.push(t), br(function() {
1531
1531
  y.spyListeners = y.spyListeners.filter(function(e) {
@@ -1533,18 +1533,18 @@ function fc(t) {
1533
1533
  });
1534
1534
  }));
1535
1535
  }
1536
- var Or = "action", hc = "action.bound", ys = "autoAction", pc = "autoAction.bound", mc = "<unnamed action>", er = /* @__PURE__ */ At(Or), gc = /* @__PURE__ */ At(hc, {
1536
+ var Or = "action", vc = "action.bound", ys = "autoAction", bc = "autoAction.bound", yc = "<unnamed action>", er = /* @__PURE__ */ At(Or), _c = /* @__PURE__ */ At(vc, {
1537
1537
  bound: !0
1538
1538
  }), tr = /* @__PURE__ */ At(ys, {
1539
1539
  autoAction: !0
1540
- }), vc = /* @__PURE__ */ At(pc, {
1540
+ }), Sc = /* @__PURE__ */ At(bc, {
1541
1541
  autoAction: !0,
1542
1542
  bound: !0
1543
1543
  });
1544
1544
  function _s(t) {
1545
1545
  var e = function(r, i) {
1546
1546
  if (T(r))
1547
- return Ue(r.name || mc, r, t);
1547
+ return Ue(r.name || yc, r, t);
1548
1548
  if (T(i))
1549
1549
  return Ue(r, i, t);
1550
1550
  if (xt(i))
@@ -1564,12 +1564,12 @@ var Ve = /* @__PURE__ */ _s(!1);
1564
1564
  Object.assign(Ve, er);
1565
1565
  var yt = /* @__PURE__ */ _s(!0);
1566
1566
  Object.assign(yt, tr);
1567
- Ve.bound = /* @__PURE__ */ ye(gc);
1568
- yt.bound = /* @__PURE__ */ ye(vc);
1567
+ Ve.bound = /* @__PURE__ */ ye(_c);
1568
+ yt.bound = /* @__PURE__ */ ye(Sc);
1569
1569
  function Ge(t) {
1570
1570
  return T(t) && t.isMobxAction === !0;
1571
1571
  }
1572
- function bc(t, e) {
1572
+ function wc(t, e) {
1573
1573
  var n, r, i, s;
1574
1574
  e === void 0 && (e = vr), process.env.NODE_ENV !== "production" && (T(t) || _("Autorun expects a function as first argument"), Ge(t) && _("Autorun does not accept actions since actions are untrackable"));
1575
1575
  var o = (n = (r = e) == null ? void 0 : r.name) != null ? n : process.env.NODE_ENV !== "production" ? t.name || "Autorun@" + ie() : "Autorun", a = !e.scheduler && !e.delay, c;
@@ -1590,25 +1590,25 @@ function bc(t, e) {
1590
1590
  }
1591
1591
  return (i = e) != null && (i = i.signal) != null && i.aborted || c.schedule_(), c.getDisposer_((s = e) == null ? void 0 : s.signal);
1592
1592
  }
1593
- var yc = function(e) {
1593
+ var Oc = function(e) {
1594
1594
  return e();
1595
1595
  };
1596
1596
  function Ss(t) {
1597
1597
  return t.scheduler ? t.scheduler : t.delay ? function(e) {
1598
1598
  return setTimeout(e, t.delay);
1599
- } : yc;
1599
+ } : Oc;
1600
1600
  }
1601
- function _c(t, e, n) {
1601
+ function Ec(t, e, n) {
1602
1602
  var r, i, s;
1603
1603
  n === void 0 && (n = vr), process.env.NODE_ENV !== "production" && ((!T(t) || !T(e)) && _("First and second argument to reaction should be functions"), z(n) || _("Third argument of reactions should be an object"));
1604
- var o = (r = n.name) != null ? r : process.env.NODE_ENV !== "production" ? "Reaction@" + ie() : "Reaction", a = Ve(o, n.onError ? Sc(n.onError, e) : e), c = !n.scheduler && !n.delay, u = Ss(n), l = !0, d = !1, f, h = n.compareStructural ? Ke.structural : n.equals || Ke.default, v = new _e(o, function() {
1604
+ var o = (r = n.name) != null ? r : process.env.NODE_ENV !== "production" ? "Reaction@" + ie() : "Reaction", a = Ve(o, n.onError ? xc(n.onError, e) : e), c = !n.scheduler && !n.delay, u = Ss(n), l = !0, d = !1, f, h = n.compareStructural ? Ke.structural : n.equals || Ke.default, v = new _e(o, function() {
1605
1605
  l || c ? p() : d || (d = !0, u(p));
1606
1606
  }, n.onError, n.requiresObservable);
1607
1607
  function p() {
1608
1608
  if (d = !1, !v.isDisposed) {
1609
1609
  var g = !1, S = f;
1610
1610
  v.track(function() {
1611
- var m = Za(!1, function() {
1611
+ var m = nc(!1, function() {
1612
1612
  return t(v);
1613
1613
  });
1614
1614
  g = l || !h(f, m), f = m;
@@ -1617,7 +1617,7 @@ function _c(t, e, n) {
1617
1617
  }
1618
1618
  return (i = n) != null && (i = i.signal) != null && i.aborted || v.schedule_(), v.getDisposer_((s = n) == null ? void 0 : s.signal);
1619
1619
  }
1620
- function Sc(t, e) {
1620
+ function xc(t, e) {
1621
1621
  return function() {
1622
1622
  try {
1623
1623
  return e.apply(this, arguments);
@@ -1626,12 +1626,12 @@ function Sc(t, e) {
1626
1626
  }
1627
1627
  };
1628
1628
  }
1629
- var wc = "onBO", Oc = "onBUO";
1630
- function Ec(t, e, n) {
1631
- return Os(wc, t, e, n);
1629
+ var Ac = "onBO", Nc = "onBUO";
1630
+ function Ic(t, e, n) {
1631
+ return Os(Ac, t, e, n);
1632
1632
  }
1633
1633
  function ws(t, e, n) {
1634
- return Os(Oc, t, e, n);
1634
+ return Os(Nc, t, e, n);
1635
1635
  }
1636
1636
  function Os(t, e, n, r) {
1637
1637
  var i = Xe(e), s = T(r) ? r : n, o = t + "L";
@@ -1640,22 +1640,22 @@ function Os(t, e, n, r) {
1640
1640
  a && (a.delete(s), a.size === 0 && delete i[o]);
1641
1641
  };
1642
1642
  }
1643
- var xc = "never", $t = "always", Ac = "observed";
1644
- function Nc(t) {
1645
- t.isolateGlobalState === !0 && rc();
1643
+ var Pc = "never", $t = "always", Mc = "observed";
1644
+ function Cc(t) {
1645
+ t.isolateGlobalState === !0 && ac();
1646
1646
  var e = t.useProxies, n = t.enforceActions;
1647
- if (e !== void 0 && (y.useProxies = e === $t ? !0 : e === xc ? !1 : typeof Proxy < "u"), e === "ifavailable" && (y.verifyProxies = !0), n !== void 0) {
1648
- var r = n === $t ? $t : n === Ac;
1647
+ if (e !== void 0 && (y.useProxies = e === $t ? !0 : e === Pc ? !1 : typeof Proxy < "u"), e === "ifavailable" && (y.verifyProxies = !0), n !== void 0) {
1648
+ var r = n === $t ? $t : n === Mc;
1649
1649
  y.enforceActions = r, y.allowStateChanges = !(r === !0 || r === $t);
1650
1650
  }
1651
1651
  ["computedRequiresReaction", "reactionRequiresObservable", "observableRequiresReaction", "disableErrorBoundaries", "safeDescriptors"].forEach(function(i) {
1652
1652
  i in t && (y[i] = !!t[i]);
1653
- }), 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 && lc(t.reactionScheduler);
1653
+ }), 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 && pc(t.reactionScheduler);
1654
1654
  }
1655
1655
  function Es(t, e, n, r) {
1656
- process.env.NODE_ENV !== "production" && (arguments.length > 4 && _("'extendObservable' expected 2-4 arguments"), typeof t != "object" && _("'extendObservable' expects an object as first argument"), Pe(t) && _("'extendObservable' should not be used on maps, use map.merge instead"), z(e) || _("'extendObservable' only accepts plain objects as second argument"), (St(e) || St(n)) && _("Extending an object with another observable (object) is not supported"));
1657
- var i = ea(e);
1658
- return Le(function() {
1656
+ process.env.NODE_ENV !== "production" && (arguments.length > 4 && _("'extendObservable' expected 2-4 arguments"), typeof t != "object" && _("'extendObservable' expects an object as first argument"), Ie(t) && _("'extendObservable' should not be used on maps, use map.merge instead"), z(e) || _("'extendObservable' only accepts plain objects as second argument"), (St(e) || St(n)) && _("Extending an object with another observable (object) is not supported"));
1657
+ var i = ia(e);
1658
+ return Fe(function() {
1659
1659
  var s = Qe(t, r)[O];
1660
1660
  ct(i).forEach(function(o) {
1661
1661
  s.extend_(
@@ -1674,21 +1674,21 @@ function As(t) {
1674
1674
  var e = {
1675
1675
  name: t.name_
1676
1676
  };
1677
- return t.observing_ && t.observing_.length > 0 && (e.dependencies = Pc(t.observing_).map(As)), e;
1677
+ return t.observing_ && t.observing_.length > 0 && (e.dependencies = Tc(t.observing_).map(As)), e;
1678
1678
  }
1679
- function sf(t, e) {
1679
+ function uf(t, e) {
1680
1680
  return Ns(Xe(t, e));
1681
1681
  }
1682
1682
  function Ns(t) {
1683
1683
  var e = {
1684
1684
  name: t.name_
1685
1685
  };
1686
- return ic(t) && (e.observers = Array.from(sc(t)).map(Ns)), e;
1686
+ return cc(t) && (e.observers = Array.from(uc(t)).map(Ns)), e;
1687
1687
  }
1688
- function Pc(t) {
1688
+ function Tc(t) {
1689
1689
  return Array.from(new Set(t));
1690
1690
  }
1691
- var Ic = 0, Mc = /* @__PURE__ */ (function(t) {
1691
+ var Dc = 0, $c = /* @__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 Ic = 0, Mc = /* @__PURE__ */ (function(t) {
1698
1698
  return n.toString = function() {
1699
1699
  return "Error: " + this.message;
1700
1700
  }, e;
1701
- })(/* @__PURE__ */ qn(Error)), _n = /* @__PURE__ */ ts("flow"), Cc = /* @__PURE__ */ ts("flow.bound", {
1701
+ })(/* @__PURE__ */ qn(Error)), _n = /* @__PURE__ */ ts("flow"), Rc = /* @__PURE__ */ ts("flow.bound", {
1702
1702
  bound: !0
1703
1703
  }), ut = /* @__PURE__ */ Object.assign(function(e, n) {
1704
1704
  if (xt(n))
@@ -1707,28 +1707,28 @@ var Ic = 0, Mc = /* @__PURE__ */ (function(t) {
1707
1707
  return Et(e, n, _n);
1708
1708
  process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("Flow expects single argument with generator function");
1709
1709
  var r = e, i = r.name || "<unnamed flow>", s = function() {
1710
- var a = this, c = arguments, u = ++Ic, l = Ve(i + " - runid: " + u + " - init", r).apply(a, c), d, f = void 0, h = new Promise(function(v, p) {
1710
+ var a = this, c = arguments, u = ++Dc, l = Ve(i + " - runid: " + u + " - init", r).apply(a, c), d, f = void 0, h = new Promise(function(v, p) {
1711
1711
  var g = 0;
1712
1712
  d = p;
1713
1713
  function S(w) {
1714
1714
  f = void 0;
1715
- var I;
1715
+ var P;
1716
1716
  try {
1717
- I = Ve(i + " - runid: " + u + " - yield " + g++, l.next).call(l, w);
1717
+ P = Ve(i + " - runid: " + u + " - yield " + g++, l.next).call(l, w);
1718
1718
  } catch (C) {
1719
1719
  return p(C);
1720
1720
  }
1721
- E(I);
1721
+ E(P);
1722
1722
  }
1723
1723
  function m(w) {
1724
1724
  f = void 0;
1725
- var I;
1725
+ var P;
1726
1726
  try {
1727
- I = Ve(i + " - runid: " + u + " - yield " + g++, l.throw).call(l, w);
1727
+ P = Ve(i + " - runid: " + u + " - yield " + g++, l.throw).call(l, w);
1728
1728
  } catch (C) {
1729
1729
  return p(C);
1730
1730
  }
1731
- E(I);
1731
+ E(P);
1732
1732
  }
1733
1733
  function E(w) {
1734
1734
  if (T(w == null ? void 0 : w.then)) {
@@ -1743,7 +1743,7 @@ var Ic = 0, Mc = /* @__PURE__ */ (function(t) {
1743
1743
  try {
1744
1744
  f && Jr(f);
1745
1745
  var v = l.return(void 0), p = Promise.resolve(v.value);
1746
- p.then(it, it), Jr(p), d(new Mc());
1746
+ p.then(it, it), Jr(p), d(new $c());
1747
1747
  } catch (g) {
1748
1748
  d(g);
1749
1749
  }
@@ -1751,18 +1751,18 @@ var Ic = 0, Mc = /* @__PURE__ */ (function(t) {
1751
1751
  };
1752
1752
  return s.isMobXFlow = !0, s;
1753
1753
  }, _n);
1754
- ut.bound = /* @__PURE__ */ ye(Cc);
1754
+ ut.bound = /* @__PURE__ */ ye(Rc);
1755
1755
  function Jr(t) {
1756
1756
  T(t.cancel) && t.cancel();
1757
1757
  }
1758
1758
  function _t(t) {
1759
1759
  return (t == null ? void 0 : t.isMobXFlow) === !0;
1760
1760
  }
1761
- function Ps(t, e) {
1761
+ function Is(t, e) {
1762
1762
  if (!t)
1763
1763
  return !1;
1764
1764
  if (e !== void 0) {
1765
- if (process.env.NODE_ENV !== "production" && (Pe(t) || It(t)))
1765
+ if (process.env.NODE_ENV !== "production" && (Ie(t) || Pt(t)))
1766
1766
  return _("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");
1767
1767
  if (qe(t)) {
1768
1768
  var n, r, i = t[O];
@@ -1773,23 +1773,23 @@ function Ps(t, e) {
1773
1773
  return qe(t) || !!t[O] || _r(t) || Jt(t) || vn(t);
1774
1774
  }
1775
1775
  function St(t) {
1776
- return process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), Ps(t);
1776
+ return process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), Is(t);
1777
1777
  }
1778
- function of(t, e) {
1779
- return process.env.NODE_ENV !== "production" && !$e(e) ? _("expected a property name as second argument") : Ps(t, e);
1778
+ function lf(t, e) {
1779
+ return process.env.NODE_ENV !== "production" && !$e(e) ? _("expected a property name as second argument") : Is(t, e);
1780
1780
  }
1781
- function Tc() {
1781
+ function jc() {
1782
1782
  if (process.env.NODE_ENV !== "production") {
1783
1783
  for (var t = !1, e = arguments.length, n = new Array(e), r = 0; r < e; r++)
1784
1784
  n[r] = arguments[r];
1785
1785
  typeof n[n.length - 1] == "boolean" && (t = n.pop());
1786
- var i = Dc(n);
1786
+ var i = Fc(n);
1787
1787
  if (!i)
1788
1788
  return _("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
1789
1789
  i.isTracing_ === re.NONE && console.log("[mobx.trace] '" + i.name_ + "' tracing enabled"), i.isTracing_ = t ? re.BREAK : re.LOG;
1790
1790
  }
1791
1791
  }
1792
- function Dc(t) {
1792
+ function Fc(t) {
1793
1793
  switch (t.length) {
1794
1794
  case 0:
1795
1795
  return y.trackingDerivation;
@@ -1810,7 +1810,7 @@ function xe(t, e) {
1810
1810
  function ke(t) {
1811
1811
  return t[O];
1812
1812
  }
1813
- var $c = {
1813
+ var Lc = {
1814
1814
  has: function(e, n) {
1815
1815
  return process.env.NODE_ENV !== "production" && y.trackingDerivation && pt("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."), ke(e).has_(n);
1816
1816
  },
@@ -1836,9 +1836,9 @@ var $c = {
1836
1836
  _(13);
1837
1837
  }
1838
1838
  };
1839
- function Rc(t, e) {
1839
+ function kc(t, e) {
1840
1840
  var n, r;
1841
- return Gi(), t = Qe(t, e), (r = (n = t[O]).proxy_) != null ? r : n.proxy_ = new Proxy(t, $c);
1841
+ return Gi(), t = Qe(t, e), (r = (n = t[O]).proxy_) != null ? r : n.proxy_ = new Proxy(t, Lc);
1842
1842
  }
1843
1843
  function Z(t) {
1844
1844
  return t.interceptors_ !== void 0 && t.interceptors_.length > 0;
@@ -1863,7 +1863,7 @@ function Q(t, e) {
1863
1863
  function le(t) {
1864
1864
  return t.changeListeners_ !== void 0 && t.changeListeners_.length > 0;
1865
1865
  }
1866
- function Pt(t, e) {
1866
+ function It(t, e) {
1867
1867
  var n = t.changeListeners_ || (t.changeListeners_ = []);
1868
1868
  return n.push(e), br(function() {
1869
1869
  var r = n.indexOf(e);
@@ -1879,17 +1879,17 @@ function de(t, e) {
1879
1879
  Ae(n);
1880
1880
  }
1881
1881
  }
1882
- function jc(t, e, n) {
1883
- return Le(function() {
1882
+ function zc(t, e, n) {
1883
+ return Fe(function() {
1884
1884
  var r, i = Qe(t, n)[O];
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 = ca(t)), ct(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 = fa(t)), ct(e).forEach(function(s) {
1886
1886
  return i.make_(s, e[s]);
1887
1887
  });
1888
1888
  }), t;
1889
1889
  }
1890
1890
  var Sn = /* @__PURE__ */ Symbol("mobx-keys");
1891
- function Is(t, e, n) {
1892
- return process.env.NODE_ENV !== "production" && (!z(t) && !z(Object.getPrototypeOf(t)) && _("'makeAutoObservable' can only be used for classes that don't have a superclass"), qe(t) && _("makeAutoObservable can only be used on objects not already made observable")), z(t) ? Es(t, t, e, n) : (Le(function() {
1891
+ function Ps(t, e, n) {
1892
+ return process.env.NODE_ENV !== "production" && (!z(t) && !z(Object.getPrototypeOf(t)) && _("'makeAutoObservable' can only be used for classes that don't have a superclass"), qe(t) && _("makeAutoObservable can only be used on objects not already made observable")), z(t) ? Es(t, t, e, n) : (Fe(function() {
1893
1893
  var r = Qe(t, n)[O];
1894
1894
  if (!t[Sn]) {
1895
1895
  var i = Object.getPrototypeOf(t), s = new Set([].concat(ct(t), ct(i)));
@@ -1904,7 +1904,7 @@ function Is(t, e, n) {
1904
1904
  });
1905
1905
  }), t);
1906
1906
  }
1907
- var Zr = "splice", ue = "update", Lc = 1e4, Fc = {
1907
+ var Zr = "splice", ue = "update", Vc = 1e4, Bc = {
1908
1908
  get: function(e, n) {
1909
1909
  var r = e[O];
1910
1910
  return n === O ? r : n === "length" ? r.getArrayLength_() : typeof n == "string" && !isNaN(n) ? r.get_(parseInt(n)) : ne(Zt, n) ? Zt[n] : e[n];
@@ -1940,7 +1940,7 @@ var Zr = "splice", ue = "update", Lc = 1e4, Fc = {
1940
1940
  addedCount: this.values_.length,
1941
1941
  removed: [],
1942
1942
  removedCount: 0
1943
- }), Pt(this, r);
1943
+ }), It(this, r);
1944
1944
  }, e.getArrayLength_ = function() {
1945
1945
  return this.atom_.reportObserved(), this.values_.length;
1946
1946
  }, e.setArrayLength_ = function(r) {
@@ -1980,7 +1980,7 @@ var Zr = "splice", ue = "update", Lc = 1e4, Fc = {
1980
1980
  var l = this.spliceItemsIntoValues_(r, i, s);
1981
1981
  return (i !== 0 || s.length !== 0) && this.notifyArraySplice_(r, s, l), this.dehanceValues_(l);
1982
1982
  }, e.spliceItemsIntoValues_ = function(r, i, s) {
1983
- if (s.length < Lc) {
1983
+ if (s.length < Vc) {
1984
1984
  var o;
1985
1985
  return (o = this.values_).splice.apply(o, [r, i].concat(s));
1986
1986
  } else {
@@ -1993,7 +1993,7 @@ var Zr = "splice", ue = "update", Lc = 1e4, Fc = {
1993
1993
  return a;
1994
1994
  }
1995
1995
  }, e.notifyArrayChildUpdate_ = function(r, i, s) {
1996
- var o = !this.owned_ && F(), a = le(this), c = a || o ? {
1996
+ var o = !this.owned_ && L(), a = le(this), c = a || o ? {
1997
1997
  observableKind: "array",
1998
1998
  object: this.proxy_,
1999
1999
  type: ue,
@@ -2004,7 +2004,7 @@ var Zr = "splice", ue = "update", Lc = 1e4, Fc = {
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_ && F(), a = le(this), c = a || o ? {
2007
+ var o = !this.owned_ && L(), a = le(this), c = a || o ? {
2008
2008
  observableKind: "array",
2009
2009
  object: this.proxy_,
2010
2010
  debugObjectName: this.atom_.name_,
@@ -2049,11 +2049,11 @@ var Zr = "splice", ue = "update", Lc = 1e4, Fc = {
2049
2049
  }
2050
2050
  }, t;
2051
2051
  })();
2052
- function kc(t, e, n, r) {
2053
- return n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), r === void 0 && (r = !1), Gi(), Le(function() {
2052
+ function Kc(t, e, n, r) {
2053
+ return n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), r === void 0 && (r = !1), Gi(), Fe(function() {
2054
2054
  var i = new Er(n, e, r, !1);
2055
2055
  Xi(i.values_, O, i);
2056
- var s = new Proxy(i.values_, Fc);
2056
+ var s = new Proxy(i.values_, Bc);
2057
2057
  return i.proxy_ = s, t && t.length && i.spliceWithArray_(0, 0, t), s;
2058
2058
  });
2059
2059
  }
@@ -2121,33 +2121,33 @@ var Zt = {
2121
2121
  return r > -1 ? (this.splice(r, 1), !0) : !1;
2122
2122
  }
2123
2123
  };
2124
- P("at", X);
2125
- P("concat", X);
2126
- P("flat", X);
2127
- P("includes", X);
2128
- P("indexOf", X);
2129
- P("join", X);
2130
- P("lastIndexOf", X);
2131
- P("slice", X);
2132
- P("toString", X);
2133
- P("toLocaleString", X);
2134
- P("toSorted", X);
2135
- P("toSpliced", X);
2136
- P("with", X);
2137
- P("every", fe);
2138
- P("filter", fe);
2139
- P("find", fe);
2140
- P("findIndex", fe);
2141
- P("findLast", fe);
2142
- P("findLastIndex", fe);
2143
- P("flatMap", fe);
2144
- P("forEach", fe);
2145
- P("map", fe);
2146
- P("some", fe);
2147
- P("toReversed", fe);
2148
- P("reduce", Ms);
2149
- P("reduceRight", Ms);
2150
- function P(t, e) {
2124
+ I("at", X);
2125
+ I("concat", X);
2126
+ I("flat", X);
2127
+ I("includes", X);
2128
+ I("indexOf", X);
2129
+ I("join", X);
2130
+ I("lastIndexOf", X);
2131
+ I("slice", X);
2132
+ I("toString", X);
2133
+ I("toLocaleString", X);
2134
+ I("toSorted", X);
2135
+ I("toSpliced", X);
2136
+ I("with", X);
2137
+ I("every", fe);
2138
+ I("filter", fe);
2139
+ I("find", fe);
2140
+ I("findIndex", fe);
2141
+ I("findLast", fe);
2142
+ I("findLastIndex", fe);
2143
+ I("flatMap", fe);
2144
+ I("forEach", fe);
2145
+ I("map", fe);
2146
+ I("some", fe);
2147
+ I("toReversed", fe);
2148
+ I("reduce", Ms);
2149
+ I("reduceRight", Ms);
2150
+ function I(t, e) {
2151
2151
  typeof Array.prototype[t] == "function" && (Zt[t] = e(t));
2152
2152
  }
2153
2153
  function X(t) {
@@ -2178,14 +2178,14 @@ function Ms(t) {
2178
2178
  }, r[t].apply(r, arguments);
2179
2179
  };
2180
2180
  }
2181
- var zc = /* @__PURE__ */ Je("ObservableArrayAdministration", Er);
2182
- function It(t) {
2183
- return ln(t) && zc(t[O]);
2181
+ var Hc = /* @__PURE__ */ Je("ObservableArrayAdministration", Er);
2182
+ function Pt(t) {
2183
+ return ln(t) && Hc(t[O]);
2184
2184
  }
2185
- var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2185
+ var Uc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2186
2186
  function t(n, r, i) {
2187
2187
  var s = this;
2188
- r === void 0 && (r = He), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + ie() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] = Vc, 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, T(Map) || _(18), Le(function() {
2188
+ r === void 0 && (r = He), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + ie() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] = Uc, 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, T(Map) || _(18), Fe(function() {
2189
2189
  s.keysAtom_ = Qi(process.env.NODE_ENV !== "production" ? s.name_ + ".keys()" : "ObservableMap.keys()"), s.data_ = /* @__PURE__ */ new Map(), s.hasMap_ = /* @__PURE__ */ new Map(), n && s.merge(n);
2190
2190
  });
2191
2191
  }
@@ -2230,7 +2230,7 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2230
2230
  return !1;
2231
2231
  }
2232
2232
  if (this.has_(r)) {
2233
- var o = F(), a = le(this), c = a || o ? {
2233
+ var o = L(), a = le(this), c = a || o ? {
2234
2234
  observableKind: "map",
2235
2235
  debugObjectName: this.name_,
2236
2236
  type: Qt,
@@ -2249,7 +2249,7 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__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 = F(), a = le(this), c = a || o ? {
2252
+ var o = L(), a = le(this), c = a || o ? {
2253
2253
  observableKind: "map",
2254
2254
  debugObjectName: this.name_,
2255
2255
  type: ue,
@@ -2266,7 +2266,7 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2266
2266
  var u, l = new Be(i, s.enhancer_, process.env.NODE_ENV !== "production" ? s.name_ + "." + Wn(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 = F(), a = le(this), c = a || o ? {
2269
+ var o = L(), a = le(this), c = a || o ? {
2270
2270
  observableKind: "map",
2271
2271
  debugObjectName: this.name_,
2272
2272
  type: De,
@@ -2316,13 +2316,13 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2316
2316
  }
2317
2317
  }, e.merge = function(r) {
2318
2318
  var i = this;
2319
- return Pe(r) && (r = new Map(r)), xe(function() {
2320
- z(r) ? Qo(r).forEach(function(s) {
2319
+ return Ie(r) && (r = new Map(r)), xe(function() {
2320
+ z(r) ? ra(r).forEach(function(s) {
2321
2321
  return i.set(s, r[s]);
2322
2322
  }) : Array.isArray(r) ? r.forEach(function(s) {
2323
2323
  var o = s[0], a = s[1];
2324
2324
  return i.set(o, a);
2325
- }) : lt(r) ? (Zo(r) || _(19, r), r.forEach(function(s, o) {
2325
+ }) : lt(r) ? (na(r) || _(19, r), r.forEach(function(s, o) {
2326
2326
  return i.set(o, s);
2327
2327
  })) : r != null && _(20, r);
2328
2328
  }), this;
@@ -2339,7 +2339,7 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2339
2339
  }, e.replace = function(r) {
2340
2340
  var i = this;
2341
2341
  return xe(function() {
2342
- for (var s = Bc(r), o = /* @__PURE__ */ new Map(), a = !1, c = st(i.data_.keys()), u; !(u = c()).done; ) {
2342
+ for (var s = Wc(r), o = /* @__PURE__ */ new Map(), a = !1, c = st(i.data_.keys()), u; !(u = c()).done; ) {
2343
2343
  var l = u.value;
2344
2344
  if (!s.has(l)) {
2345
2345
  var d = i.delete(l);
@@ -2362,12 +2362,12 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2362
2362
  if (i.data_.size !== o.size)
2363
2363
  i.keysAtom_.reportChanged();
2364
2364
  else
2365
- for (var w = i.data_.keys(), I = o.keys(), C = w.next(), M = I.next(); !C.done; ) {
2365
+ for (var w = i.data_.keys(), P = o.keys(), C = w.next(), M = P.next(); !C.done; ) {
2366
2366
  if (C.value !== M.value) {
2367
2367
  i.keysAtom_.reportChanged();
2368
2368
  break;
2369
2369
  }
2370
- C = w.next(), M = I.next();
2370
+ C = w.next(), M = P.next();
2371
2371
  }
2372
2372
  i.data_ = o;
2373
2373
  }), this;
@@ -2376,7 +2376,7 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2376
2376
  }, e.toJSON = function() {
2377
2377
  return Array.from(this);
2378
2378
  }, e.observe_ = function(r, i) {
2379
- return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support fireImmediately=true in combination with maps."), Pt(this, r);
2379
+ return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support fireImmediately=true in combination with maps."), It(this, r);
2380
2380
  }, e.intercept_ = function(r) {
2381
2381
  return Nt(this, r);
2382
2382
  }, dt(t, [{
@@ -2390,12 +2390,12 @@ var Vc = {}, De = "add", Qt = "delete", Cs = /* @__PURE__ */ (function() {
2390
2390
  return "Map";
2391
2391
  }
2392
2392
  }]);
2393
- })(), Pe = /* @__PURE__ */ Je("ObservableMap", Cs);
2393
+ })(), Ie = /* @__PURE__ */ Je("ObservableMap", Cs);
2394
2394
  function Qr(t) {
2395
2395
  return t[Symbol.toStringTag] = "MapIterator", Ar(t);
2396
2396
  }
2397
- function Bc(t) {
2398
- if (lt(t) || Pe(t))
2397
+ function Wc(t) {
2398
+ if (lt(t) || Ie(t))
2399
2399
  return t;
2400
2400
  if (Array.isArray(t))
2401
2401
  return new Map(t);
@@ -2407,12 +2407,12 @@ function Bc(t) {
2407
2407
  } else
2408
2408
  return _(21, t);
2409
2409
  }
2410
- var Kc = {}, Ts = /* @__PURE__ */ (function() {
2410
+ var Gc = {}, Ts = /* @__PURE__ */ (function() {
2411
2411
  function t(n, r, i) {
2412
2412
  var s = this;
2413
- r === void 0 && (r = He), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + ie() : "ObservableSet"), this.name_ = void 0, this[O] = Kc, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = i, T(Set) || _(22), this.enhancer_ = function(o, a) {
2413
+ r === void 0 && (r = He), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + ie() : "ObservableSet"), this.name_ = void 0, this[O] = Gc, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = i, T(Set) || _(22), this.enhancer_ = function(o, a) {
2414
2414
  return r(o, a, i);
2415
- }, Le(function() {
2415
+ }, Fe(function() {
2416
2416
  s.atom_ = Qi(s.name_), n && s.replace(n);
2417
2417
  });
2418
2418
  }
@@ -2450,7 +2450,7 @@ var Kc = {}, Ts = /* @__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" && F(), a = le(this), c = a || o ? {
2453
+ var o = process.env.NODE_ENV !== "production" && L(), a = le(this), c = a || o ? {
2454
2454
  observableKind: "set",
2455
2455
  debugObjectName: this.name_,
2456
2456
  type: De,
@@ -2472,7 +2472,7 @@ var Kc = {}, Ts = /* @__PURE__ */ (function() {
2472
2472
  return !1;
2473
2473
  }
2474
2474
  if (this.has(r)) {
2475
- var o = process.env.NODE_ENV !== "production" && F(), a = le(this), c = a || o ? {
2475
+ var o = process.env.NODE_ENV !== "production" && L(), a = le(this), c = a || o ? {
2476
2476
  observableKind: "set",
2477
2477
  debugObjectName: this.name_,
2478
2478
  type: Qt,
@@ -2553,7 +2553,7 @@ var Kc = {}, Ts = /* @__PURE__ */ (function() {
2553
2553
  })) : r != null && _("Cannot initialize set from " + r);
2554
2554
  }), this;
2555
2555
  }, e.observe_ = function(r, i) {
2556
- return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support fireImmediately=true in combination with sets."), Pt(this, r);
2556
+ return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support fireImmediately=true in combination with sets."), It(this, r);
2557
2557
  }, e.intercept_ = function(r) {
2558
2558
  return Nt(this, r);
2559
2559
  }, e.toJSON = function() {
@@ -2579,7 +2579,7 @@ function ei(t) {
2579
2579
  }
2580
2580
  var ti = /* @__PURE__ */ Object.create(null), ni = "remove", nr = /* @__PURE__ */ (function() {
2581
2581
  function t(n, r, i, s) {
2582
- r === void 0 && (r = /* @__PURE__ */ new Map()), s === void 0 && (s = Ca), 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" && !Fs(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 = Ra), 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" && !Ls(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 ti = /* @__PURE__ */ Object.create(null), ni = "remove", nr = /* @__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" && F(), d = u || l ? {
2618
+ var u = le(this), l = process.env.NODE_ENV !== "production" && L(), d = u || l ? {
2619
2619
  type: ue,
2620
2620
  observableKind: "object",
2621
2621
  debugObjectName: this.name_,
@@ -2784,7 +2784,7 @@ var ti = /* @__PURE__ */ Object.create(null), ni = "remove", nr = /* @__PURE__ *
2784
2784
  try {
2785
2785
  var o;
2786
2786
  ee();
2787
- var a = le(this), c = process.env.NODE_ENV !== "production" && F(), u = this.values_.get(r), l = void 0;
2787
+ var a = le(this), c = process.env.NODE_ENV !== "production" && L(), u = this.values_.get(r), l = void 0;
2788
2788
  if (!u && (a || c)) {
2789
2789
  var d;
2790
2790
  l = (d = Wt(this.target_, r)) == null ? void 0 : d.value;
@@ -2810,11 +2810,11 @@ var ti = /* @__PURE__ */ Object.create(null), ni = "remove", nr = /* @__PURE__ *
2810
2810
  }
2811
2811
  return !0;
2812
2812
  }, e.observe_ = function(r, i) {
2813
- return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support the fire immediately property for observable objects."), Pt(this, r);
2813
+ return process.env.NODE_ENV !== "production" && i === !0 && _("`observe` doesn't support the fire immediately property for observable objects."), It(this, r);
2814
2814
  }, e.intercept_ = function(r) {
2815
2815
  return Nt(this, r);
2816
2816
  }, e.notifyPropertyAddition_ = function(r, i) {
2817
- var s, o = le(this), a = process.env.NODE_ENV !== "production" && F();
2817
+ var s, o = le(this), a = process.env.NODE_ENV !== "production" && L();
2818
2818
  if (o || a) {
2819
2819
  var c = o || a ? {
2820
2820
  type: De,
@@ -2840,10 +2840,10 @@ function Qe(t, e) {
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");
2843
- var r = (n = e == null ? void 0 : e.name) != null ? n : process.env.NODE_ENV !== "production" ? (z(t) ? "ObservableObject" : t.constructor.name) + "@" + ie() : "ObservableObject", i = new nr(t, /* @__PURE__ */ new Map(), String(r), Ba(e));
2843
+ var r = (n = e == null ? void 0 : e.name) != null ? n : process.env.NODE_ENV !== "production" ? (z(t) ? "ObservableObject" : t.constructor.name) + "@" + ie() : "ObservableObject", i = new nr(t, /* @__PURE__ */ new Map(), String(r), Wa(e));
2844
2844
  return Ot(t, O, i), t;
2845
2845
  }
2846
- var Hc = /* @__PURE__ */ Je("ObservableObjectAdministration", nr);
2846
+ var qc = /* @__PURE__ */ Je("ObservableObjectAdministration", nr);
2847
2847
  function ri(t) {
2848
2848
  return ti[t] || (ti[t] = {
2849
2849
  get: function() {
@@ -2855,14 +2855,14 @@ function ri(t) {
2855
2855
  });
2856
2856
  }
2857
2857
  function qe(t) {
2858
- return ln(t) ? Hc(t[O]) : !1;
2858
+ return ln(t) ? qc(t[O]) : !1;
2859
2859
  }
2860
2860
  function ii(t, e, n) {
2861
2861
  var r;
2862
2862
  process.env.NODE_ENV !== "production" && (t.appliedAnnotations_[n] = e), (r = t.target_[k]) == null || delete r[n];
2863
2863
  }
2864
2864
  function si(t, e, n) {
2865
- if (process.env.NODE_ENV !== "production" && !Fs(e) && _("Cannot annotate '" + t.name_ + "." + n.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !qt(e) && ne(t.appliedAnnotations_, n)) {
2865
+ if (process.env.NODE_ENV !== "production" && !Ls(e) && _("Cannot annotate '" + t.name_ + "." + n.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !qt(e) && ne(t.appliedAnnotations_, n)) {
2866
2866
  var r = t.name_ + "." + n.toString(), i = t.appliedAnnotations_[n].annotationType_, s = e.annotationType_;
2867
2867
  _("Cannot apply '" + s + "' to '" + r + "':" + (`
2868
2868
  The field is already annotated with '` + i + "'.") + `
@@ -2870,7 +2870,7 @@ Re-annotating fields is not allowed.
2870
2870
  Use 'override' annotation for methods overridden by subclass.`);
2871
2871
  }
2872
2872
  }
2873
- var Uc = /* @__PURE__ */ $s(0), Wc = /* @__PURE__ */ (function() {
2873
+ var Xc = /* @__PURE__ */ $s(0), Yc = /* @__PURE__ */ (function() {
2874
2874
  var t = !1, e = {};
2875
2875
  return Object.defineProperty(e, "0", {
2876
2876
  set: function() {
@@ -2879,16 +2879,16 @@ var Uc = /* @__PURE__ */ $s(0), Wc = /* @__PURE__ */ (function() {
2879
2879
  }), Object.create(e)[0] = 1, t === !1;
2880
2880
  })(), wn = 0, Ds = function() {
2881
2881
  };
2882
- function Gc(t, e) {
2882
+ function Jc(t, e) {
2883
2883
  Object.setPrototypeOf ? Object.setPrototypeOf(t.prototype, e) : t.prototype.__proto__ !== void 0 ? t.prototype.__proto__ = e : t.prototype = e;
2884
2884
  }
2885
- Gc(Ds, Array.prototype);
2885
+ Jc(Ds, Array.prototype);
2886
2886
  var xr = /* @__PURE__ */ (function(t) {
2887
2887
  function e(r, i, s, o) {
2888
2888
  var a;
2889
- return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), o === void 0 && (o = !1), a = t.call(this) || this, Le(function() {
2889
+ return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), o === void 0 && (o = !1), a = t.call(this) || this, Fe(function() {
2890
2890
  var c = new Er(s, i, o, !0);
2891
- c.proxy_ = a, Xi(a, O, c), r && r.length && a.spliceWithArray(0, 0, r), Wc && Object.defineProperty(a, "0", Uc);
2891
+ c.proxy_ = a, Xi(a, O, c), r && r.length && a.spliceWithArray(0, 0, r), Yc && Object.defineProperty(a, "0", Xc);
2892
2892
  }), a;
2893
2893
  }
2894
2894
  yr(e, t);
@@ -2901,7 +2901,7 @@ var xr = /* @__PURE__ */ (function(t) {
2901
2901
  this.slice(),
2902
2902
  //@ts-ignore
2903
2903
  s.map(function(a) {
2904
- return It(a) ? a.slice() : a;
2904
+ return Pt(a) ? a.slice() : a;
2905
2905
  })
2906
2906
  );
2907
2907
  }, n[Symbol.iterator] = function() {
@@ -2948,27 +2948,27 @@ function $s(t) {
2948
2948
  }
2949
2949
  };
2950
2950
  }
2951
- function qc(t) {
2951
+ function Zc(t) {
2952
2952
  be(xr.prototype, "" + t, $s(t));
2953
2953
  }
2954
2954
  function Rs(t) {
2955
2955
  if (t > wn) {
2956
2956
  for (var e = wn; e < t + 100; e++)
2957
- qc(e);
2957
+ Zc(e);
2958
2958
  wn = t;
2959
2959
  }
2960
2960
  }
2961
2961
  Rs(1e3);
2962
- function Xc(t, e, n) {
2962
+ function Qc(t, e, n) {
2963
2963
  return new xr(t, e, n);
2964
2964
  }
2965
2965
  function Xe(t, e) {
2966
2966
  if (typeof t == "object" && t !== null) {
2967
- if (It(t))
2967
+ if (Pt(t))
2968
2968
  return e !== void 0 && _(23), t[O].atom_;
2969
2969
  if (ge(t))
2970
2970
  return t.atom_;
2971
- if (Pe(t)) {
2971
+ if (Ie(t)) {
2972
2972
  if (e === void 0)
2973
2973
  return t.keysAtom_;
2974
2974
  var n = t.data_.get(e) || t.hasMap_.get(e);
@@ -2988,7 +2988,7 @@ function Xe(t, e) {
2988
2988
  _(28);
2989
2989
  }
2990
2990
  function js(t, e) {
2991
- if (t || _(29), _r(t) || vn(t) || Jt(t) || Pe(t) || ge(t))
2991
+ if (t || _(29), _r(t) || vn(t) || Jt(t) || Ie(t) || ge(t))
2992
2992
  return t;
2993
2993
  if (t[O])
2994
2994
  return t[O];
@@ -3001,11 +3001,11 @@ function en(t, e) {
3001
3001
  else {
3002
3002
  if (Ge(t))
3003
3003
  return t.name;
3004
- qe(t) || Pe(t) || ge(t) ? n = js(t) : n = Xe(t);
3004
+ qe(t) || Ie(t) || ge(t) ? n = js(t) : n = Xe(t);
3005
3005
  }
3006
3006
  return n.name_;
3007
3007
  }
3008
- function Le(t) {
3008
+ function Fe(t) {
3009
3009
  var e = Ze(), n = mn(!0);
3010
3010
  ee();
3011
3011
  try {
@@ -3015,7 +3015,7 @@ function Le(t) {
3015
3015
  }
3016
3016
  }
3017
3017
  var oi = un.toString;
3018
- function Ls(t, e, n) {
3018
+ function Fs(t, e, n) {
3019
3019
  return n === void 0 && (n = -1), rr(t, e, n);
3020
3020
  }
3021
3021
  function rr(t, e, n, r, i) {
@@ -3083,16 +3083,16 @@ function rr(t, e, n, r, i) {
3083
3083
  return r.pop(), i.pop(), !0;
3084
3084
  }
3085
3085
  function ai(t) {
3086
- return It(t) ? t.slice() : lt(t) || Pe(t) || Ee(t) || ge(t) ? Array.from(t.entries()) : t;
3086
+ return Pt(t) ? t.slice() : lt(t) || Ie(t) || Ee(t) || ge(t) ? Array.from(t.entries()) : t;
3087
3087
  }
3088
- var ci, Yc = /* @__PURE__ */ cn(), Jc = ((ci = Yc.Iterator) == null ? void 0 : ci.prototype) || {};
3088
+ var ci, eu = /* @__PURE__ */ cn(), tu = ((ci = eu.Iterator) == null ? void 0 : ci.prototype) || {};
3089
3089
  function Ar(t) {
3090
- return t[Symbol.iterator] = Zc, Object.assign(Object.create(Jc), t);
3090
+ return t[Symbol.iterator] = nu, Object.assign(Object.create(tu), t);
3091
3091
  }
3092
- function Zc() {
3092
+ function nu() {
3093
3093
  return this;
3094
3094
  }
3095
- function Fs(t) {
3095
+ function Ls(t) {
3096
3096
  return (
3097
3097
  // Can be function
3098
3098
  t instanceof Object && typeof t.annotationType_ == "string" && T(t.make_) && T(t.extend_)
@@ -3103,7 +3103,7 @@ function Fs(t) {
3103
3103
  typeof e[t] > "u" && _("MobX requires global '" + t + "' to be available or polyfilled");
3104
3104
  });
3105
3105
  typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
3106
- spy: fc,
3106
+ spy: gc,
3107
3107
  extras: {
3108
3108
  getDebugName: en
3109
3109
  },
@@ -3111,18 +3111,18 @@ typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK_
3111
3111
  });
3112
3112
  if (!Kn)
3113
3113
  throw new Error("mobx-react-lite requires React with Hooks support");
3114
- if (!jc)
3114
+ if (!zc)
3115
3115
  throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");
3116
- function Qc(t) {
3116
+ function ru(t) {
3117
3117
  t();
3118
3118
  }
3119
- function eu(t) {
3120
- t || (t = Qc, process.env.NODE_ENV !== "production" && console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")), Nc({ reactionScheduler: t });
3119
+ function iu(t) {
3120
+ t || (t = ru, process.env.NODE_ENV !== "production" && console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")), Cc({ reactionScheduler: t });
3121
3121
  }
3122
- function tu(t) {
3122
+ function su(t) {
3123
3123
  return xs(t);
3124
3124
  }
3125
- var nu = 1e4, ru = 1e4, iu = (
3125
+ var ou = 1e4, au = 1e4, cu = (
3126
3126
  /** @class */
3127
3127
  (function() {
3128
3128
  function t(e) {
@@ -3147,7 +3147,7 @@ var nu = 1e4, ru = 1e4, iu = (
3147
3147
  configurable: !0,
3148
3148
  writable: !0,
3149
3149
  value: function(r) {
3150
- r === void 0 && (r = nu), clearTimeout(n.sweepTimeout), n.sweepTimeout = void 0;
3150
+ r === void 0 && (r = ou), clearTimeout(n.sweepTimeout), n.sweepTimeout = void 0;
3151
3151
  var i = Date.now();
3152
3152
  n.registrations.forEach(function(s, o) {
3153
3153
  i - s.registeredAt >= r && (n.finalize(s.value), n.registrations.delete(o));
@@ -3184,11 +3184,11 @@ var nu = 1e4, ru = 1e4, iu = (
3184
3184
  configurable: !0,
3185
3185
  writable: !0,
3186
3186
  value: function() {
3187
- this.sweepTimeout === void 0 && (this.sweepTimeout = setTimeout(this.sweep, ru));
3187
+ this.sweepTimeout === void 0 && (this.sweepTimeout = setTimeout(this.sweep, au));
3188
3188
  }
3189
3189
  }), t;
3190
3190
  })()
3191
- ), su = typeof FinalizationRegistry < "u" ? FinalizationRegistry : iu, ir = new su(function(t) {
3191
+ ), uu = typeof FinalizationRegistry < "u" ? FinalizationRegistry : cu, ir = new uu(function(t) {
3192
3192
  var e;
3193
3193
  (e = t.reaction) === null || e === void 0 || e.dispose(), t.reaction = null;
3194
3194
  }), Rt = { exports: {} }, On = {};
@@ -3202,7 +3202,7 @@ var nu = 1e4, ru = 1e4, iu = (
3202
3202
  * LICENSE file in the root directory of this source tree.
3203
3203
  */
3204
3204
  var ui;
3205
- function ou() {
3205
+ function lu() {
3206
3206
  if (ui) return On;
3207
3207
  ui = 1;
3208
3208
  var t = Ht;
@@ -3253,7 +3253,7 @@ var En = {};
3253
3253
  * LICENSE file in the root directory of this source tree.
3254
3254
  */
3255
3255
  var li;
3256
- function au() {
3256
+ function du() {
3257
3257
  return li || (li = 1, process.env.NODE_ENV !== "production" && (function() {
3258
3258
  function t(h, v) {
3259
3259
  return h === v && (h !== 0 || 1 / h === 1 / v) || h !== h && v !== v;
@@ -3306,17 +3306,17 @@ function au() {
3306
3306
  })()), En;
3307
3307
  }
3308
3308
  var di;
3309
- function cu() {
3310
- return di || (di = 1, process.env.NODE_ENV === "production" ? Rt.exports = ou() : Rt.exports = au()), Rt.exports;
3309
+ function fu() {
3310
+ return di || (di = 1, process.env.NODE_ENV === "production" ? Rt.exports = lu() : Rt.exports = du()), Rt.exports;
3311
3311
  }
3312
- var uu = cu();
3312
+ var hu = fu();
3313
3313
  function fi(t) {
3314
3314
  t.reaction = new _e("observer".concat(t.name), function() {
3315
3315
  var e;
3316
3316
  t.stateVersion = Symbol(), (e = t.onStoreChange) === null || e === void 0 || e.call(t);
3317
3317
  });
3318
3318
  }
3319
- function lu(t, e) {
3319
+ function pu(t, e) {
3320
3320
  e === void 0 && (e = "observed");
3321
3321
  var n = Ht.useRef(null);
3322
3322
  if (!n.current) {
@@ -3338,7 +3338,7 @@ function lu(t, e) {
3338
3338
  n.current = r;
3339
3339
  }
3340
3340
  var i = n.current;
3341
- i.reaction || (fi(i), ir.register(n, i, i)), Ht.useDebugValue(i.reaction, tu), uu.useSyncExternalStore(
3341
+ i.reaction || (fi(i), ir.register(n, i, i)), Ht.useDebugValue(i.reaction, su), hu.useSyncExternalStore(
3342
3342
  // Both of these must be stable, otherwise it would keep resubscribing every render.
3343
3343
  i.subscribe,
3344
3344
  i.getSnapshot,
@@ -3355,13 +3355,13 @@ function lu(t, e) {
3355
3355
  throw o;
3356
3356
  return s;
3357
3357
  }
3358
- var xn, An, du = !0, hi = !0, ks = typeof Symbol == "function" && Symbol.for, fu = (An = (xn = Object.getOwnPropertyDescriptor(function() {
3358
+ var xn, An, mu = !0, hi = !0, ks = typeof Symbol == "function" && Symbol.for, gu = (An = (xn = Object.getOwnPropertyDescriptor(function() {
3359
3359
  }, "name")) === null || xn === void 0 ? void 0 : xn.configurable) !== null && An !== void 0 ? An : !1, pi = ks ? Symbol.for("react.forward_ref") : typeof Hn == "function" && Hn(function(t) {
3360
3360
  return null;
3361
3361
  }).$$typeof, mi = ks ? Symbol.for("react.memo") : typeof Un == "function" && Un(function(t) {
3362
3362
  return null;
3363
3363
  }).$$typeof;
3364
- function hu(t, e) {
3364
+ function vu(t, e) {
3365
3365
  var n;
3366
3366
  if (process.env.NODE_ENV, mi && t.$$typeof === mi)
3367
3367
  throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");
@@ -3369,22 +3369,22 @@ function hu(t, e) {
3369
3369
  if (pi && t.$$typeof === pi && (r = !0, i = t.render, typeof i != "function"))
3370
3370
  throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");
3371
3371
  var o = function(a, c) {
3372
- return lu(function() {
3372
+ return pu(function() {
3373
3373
  return i(a, c);
3374
3374
  }, s);
3375
3375
  };
3376
- return o.displayName = t.displayName, fu && Object.defineProperty(o, "name", {
3376
+ return o.displayName = t.displayName, gu && Object.defineProperty(o, "name", {
3377
3377
  value: t.name,
3378
3378
  writable: !0,
3379
3379
  configurable: !0
3380
- }), t.contextTypes && (o.contextTypes = t.contextTypes, process.env.NODE_ENV !== "production" && hi && (hi = !1, console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))), r && (o = Hn(o)), o = Un(o), mu(t, o), process.env.NODE_ENV !== "production" && Object.defineProperty(o, "contextTypes", {
3380
+ }), t.contextTypes && (o.contextTypes = t.contextTypes, process.env.NODE_ENV !== "production" && hi && (hi = !1, console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))), r && (o = Hn(o)), o = Un(o), yu(t, o), process.env.NODE_ENV !== "production" && Object.defineProperty(o, "contextTypes", {
3381
3381
  set: function() {
3382
3382
  var a, c;
3383
3383
  throw new Error("[mobx-react-lite] `".concat(this.displayName || ((a = this.type) === null || a === void 0 ? void 0 : a.displayName) || ((c = this.type) === null || c === void 0 ? void 0 : c.name) || "Component", ".contextTypes` must be set before applying `observer`."));
3384
3384
  }
3385
3385
  }), o;
3386
3386
  }
3387
- var pu = {
3387
+ var bu = {
3388
3388
  $$typeof: !0,
3389
3389
  render: !0,
3390
3390
  compare: !0,
@@ -3393,30 +3393,30 @@ var pu = {
3393
3393
  // it's defined as getter-setter pair on `memo` (see #3192).
3394
3394
  displayName: !0
3395
3395
  };
3396
- function mu(t, e) {
3396
+ function yu(t, e) {
3397
3397
  Object.keys(t).forEach(function(n) {
3398
- pu[n] || Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
3398
+ bu[n] || Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
3399
3399
  });
3400
3400
  }
3401
3401
  process.env.NODE_ENV;
3402
3402
  var Nn;
3403
- eu(Uo);
3403
+ iu(Xo);
3404
3404
  Nn = ir.finalizeAllImmediately;
3405
- const gu = 12e3, vu = 32e3;
3406
- function bu(t) {
3405
+ const _u = 12e3, Su = 32e3;
3406
+ function wu(t) {
3407
3407
  return typeof t == "number" && Number.isFinite(t) && t > 0;
3408
3408
  }
3409
3409
  function tn(t, e) {
3410
- return bu(t) ? Math.max(1, Math.round(t)) : e;
3410
+ return wu(t) ? Math.max(1, Math.round(t)) : e;
3411
3411
  }
3412
- function yu(t, e) {
3412
+ function Ou(t, e) {
3413
3413
  const n = tn(t, 600), r = tn(
3414
3414
  e,
3415
- gu
3415
+ _u
3416
3416
  );
3417
3417
  return Math.max(
3418
3418
  n,
3419
- Math.min(vu, r)
3419
+ Math.min(Su, r)
3420
3420
  );
3421
3421
  }
3422
3422
  function oe(t) {
@@ -3424,11 +3424,11 @@ function oe(t) {
3424
3424
  if (t.heightMode !== "document") return e;
3425
3425
  const n = tn(t.resolvedDocumentHeight, e);
3426
3426
  return Math.min(
3427
- yu(e, t.maxHeight),
3427
+ Ou(e, t.maxHeight),
3428
3428
  Math.max(e, n)
3429
3429
  );
3430
3430
  }
3431
- function _u(t) {
3431
+ function Eu(t) {
3432
3432
  if (!t) return 0;
3433
3433
  const e = t, n = typeof t.getBoundingClientRect == "function" ? t.getBoundingClientRect().height : 0;
3434
3434
  return Math.max(
@@ -3449,18 +3449,18 @@ function zs(t) {
3449
3449
  t.querySelector("body")
3450
3450
  ].filter((n) => n != null);
3451
3451
  }
3452
- function Su(t) {
3452
+ function xu(t) {
3453
3453
  return Math.ceil(
3454
- Math.max(0, ...zs(t).map(_u))
3454
+ Math.max(0, ...zs(t).map(Eu))
3455
3455
  );
3456
3456
  }
3457
- function wu(t, e) {
3457
+ function Au(t, e) {
3458
3458
  var p;
3459
3459
  const n = "documentElement" in t ? t : t.ownerDocument, r = n.defaultView, i = zs(t);
3460
3460
  let s = !1, o = 0, a = -1;
3461
3461
  const c = () => {
3462
3462
  if (o = 0, s) return;
3463
- const g = Su(t);
3463
+ const g = xu(t);
3464
3464
  g !== a && (a = g, e(g));
3465
3465
  }, u = () => {
3466
3466
  s || o || (r != null && r.requestAnimationFrame ? o = r.requestAnimationFrame(c) : c());
@@ -3477,7 +3477,7 @@ function wu(t, e) {
3477
3477
  s = !0, d == null || d.disconnect(), h == null || h.disconnect(), o && (r != null && r.cancelAnimationFrame) && r.cancelAnimationFrame(o);
3478
3478
  };
3479
3479
  }
3480
- function Ou(t) {
3480
+ function Nu(t) {
3481
3481
  for (const e in t) if (e.startsWith("__reactFiber$")) return t[e];
3482
3482
  return null;
3483
3483
  }
@@ -3490,7 +3490,7 @@ function gi(t) {
3490
3490
  }
3491
3491
  return e;
3492
3492
  }
3493
- function Eu(t) {
3493
+ function Iu(t) {
3494
3494
  let e = t.child;
3495
3495
  for (; e; ) {
3496
3496
  const n = e.stateNode;
@@ -3505,7 +3505,7 @@ function Eu(t) {
3505
3505
  }
3506
3506
  return null;
3507
3507
  }
3508
- function xu(t) {
3508
+ function Pu(t) {
3509
3509
  const e = {}, n = {};
3510
3510
  let r = "";
3511
3511
  for (const [i, s] of Object.entries(t ?? {})) {
@@ -3524,7 +3524,7 @@ function Vs(t) {
3524
3524
  return (n, r) => {
3525
3525
  var u;
3526
3526
  let i = null, s = "";
3527
- for (let l = Ou(n); l; l = l.return) {
3527
+ for (let l = Nu(n); l; l = l.return) {
3528
3528
  const d = l.type;
3529
3529
  if (d == null || typeof d == "string") continue;
3530
3530
  const f = gi(d);
@@ -3533,28 +3533,28 @@ function Vs(t) {
3533
3533
  const v = f, p = v.displayName ?? v.name;
3534
3534
  p && t[p] && (h = p);
3535
3535
  }
3536
- !h || r != null && r.has(h) || Eu(l) === n && (i = l, s = h);
3536
+ !h || r != null && r.has(h) || Iu(l) === n && (i = l, s = h);
3537
3537
  }
3538
3538
  if (!i) return null;
3539
- const { props: o, primitiveProps: a, childrenText: c } = xu(i.memoizedProps);
3539
+ const { props: o, primitiveProps: a, childrenText: c } = Pu(i.memoizedProps);
3540
3540
  return { name: s, sourceId: ((u = t[s]) == null ? void 0 : u.importPath) ?? s, props: o, primitiveProps: a, childrenText: c };
3541
3541
  };
3542
3542
  }
3543
3543
  let Bs = {};
3544
- function af(t) {
3544
+ function df(t) {
3545
3545
  Bs = t;
3546
3546
  }
3547
3547
  function ae() {
3548
3548
  return Bs;
3549
3549
  }
3550
3550
  const vi = /* @__PURE__ */ new WeakMap();
3551
- function Au(t) {
3551
+ function Mu(t) {
3552
3552
  return t.__PYG_CSS_MODULES__ ?? [];
3553
3553
  }
3554
3554
  function bn(t) {
3555
3555
  const e = t.ownerDocument.defaultView;
3556
3556
  if (!e) return null;
3557
- const n = Au(e);
3557
+ const n = Mu(e);
3558
3558
  let r = vi.get(e);
3559
3559
  if (!r || r.len !== n.length) {
3560
3560
  const i = /* @__PURE__ */ new Map();
@@ -3569,7 +3569,7 @@ function bn(t) {
3569
3569
  }
3570
3570
  return null;
3571
3571
  }
3572
- function Nu(t) {
3572
+ function Cu(t) {
3573
3573
  for (let e = t; e && e !== t.ownerDocument.documentElement; e = e.parentElement) {
3574
3574
  const n = bn(e);
3575
3575
  if (n) return n.componentFile;
@@ -3618,13 +3618,13 @@ function J(t) {
3618
3618
  !r.id || e.has(r.id) || (e.add(r.id), n.push({ id: r.id, name: r.name || r.id }));
3619
3619
  return n;
3620
3620
  }
3621
- function Pn(t) {
3621
+ function In(t) {
3622
3622
  return typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
3623
3623
  }
3624
3624
  function yi(t) {
3625
3625
  return typeof t == "string" ? t : String(t);
3626
3626
  }
3627
- function In(t, e) {
3627
+ function Pn(t, e) {
3628
3628
  return e === "boolean" ? t === "true" : e === "number" ? Number(t) : t;
3629
3629
  }
3630
3630
  const Ks = {
@@ -3663,7 +3663,7 @@ function Si(t, e, n) {
3663
3663
  const r = Array.from(t.children).filter((i) => i !== e);
3664
3664
  return !Number.isSafeInteger(n) || n < 0 || n > r.length ? !1 : (t.insertBefore(e, r[n] ?? null), gt(e, t) === n);
3665
3665
  }
3666
- const Pu = /* @__PURE__ */ new Set([
3666
+ const Tu = /* @__PURE__ */ new Set([
3667
3667
  "area",
3668
3668
  "base",
3669
3669
  "br",
@@ -3679,13 +3679,13 @@ const Pu = /* @__PURE__ */ new Set([
3679
3679
  "track",
3680
3680
  "wbr"
3681
3681
  ]);
3682
- function Iu(t) {
3682
+ function Du(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 wi = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/;
3686
- function Mu(t) {
3686
+ function $u(t) {
3687
3687
  const e = ae()[t];
3688
- if (!(e != null && e.importPath) || !/^[A-Z][A-Za-z0-9_$]*$/.test(t) || !Iu(e.importPath))
3688
+ if (!(e != null && e.importPath) || !/^[A-Z][A-Za-z0-9_$]*$/.test(t) || !Du(e.importPath))
3689
3689
  return null;
3690
3690
  const n = e.defaultProps ?? {}, r = Object.entries(n);
3691
3691
  if (Reflect.ownKeys(n).length !== r.length) return null;
@@ -3714,7 +3714,7 @@ function Oi(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 Cu(t, e, n, r) {
3717
+ function Ru(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";
@@ -3739,7 +3739,7 @@ function Cu(t, e, n, r) {
3739
3739
  }
3740
3740
  });
3741
3741
  const d = n.children;
3742
- return Wo(() => {
3742
+ return Yo(() => {
3743
3743
  s == null || s.render(
3744
3744
  Ut(
3745
3745
  r.component,
@@ -3762,7 +3762,7 @@ function Cu(t, e, n, r) {
3762
3762
  i.replaceChildren(), i.remove();
3763
3763
  }, status: () => a };
3764
3764
  }
3765
- class Tu {
3765
+ class ju {
3766
3766
  constructor() {
3767
3767
  /** Final commit candidate. Only one combination of the same element, attribute, and breakpoint is always maintained. */
3768
3768
  b(this, "entries", []);
@@ -3928,7 +3928,7 @@ class Tu {
3928
3928
  if (s && s.children !== "nodes")
3929
3929
  return "The selected registration component does not support children node slots.";
3930
3930
  const o = (s == null ? void 0 : s.children) === "nodes" && /^[A-Z]/.test(i);
3931
- return (s == null ? void 0 : s.children) === "nodes" && !o ? "The JSX source location of the component call-site is not passed to the DOM, so it cannot be safely inserted." : !(!s && /^[a-z]/.test(i) && !Pu.has(i.toLowerCase())) && !o ? "Only regular containers or registered components that support children nodes can be used as slots." : bi(e) == null ? "Since the number of JSX children is not directly measured, safe insertion positions cannot be calculated." : this.hasPendingValueEdit(e) ? "Please undo this slot owner's prop/text changes first and then insert them." : this.hasPendingStructuralEdit(e) ? "This slot owner already has a pending structure change. Please insert after undo." : this.entries.find(
3931
+ return (s == null ? void 0 : s.children) === "nodes" && !o ? "The JSX source location of the component call-site is not passed to the DOM, so it cannot be safely inserted." : !(!s && /^[a-z]/.test(i) && !Tu.has(i.toLowerCase())) && !o ? "Only regular containers or registered components that support children nodes can be used as slots." : bi(e) == null ? "Since the number of JSX children is not directly measured, safe insertion positions cannot be calculated." : this.hasPendingValueEdit(e) ? "Please undo this slot owner's prop/text changes first and then insert them." : this.hasPendingStructuralEdit(e) ? "This slot owner already has a pending structure change. Please insert after undo." : this.entries.find(
3932
3932
  (u) => u.kind === "structure" && u.structureParent === e
3933
3933
  ) ? "A structural change can only be staged once in the same children slot." : null;
3934
3934
  }
@@ -3949,7 +3949,7 @@ class Tu {
3949
3949
  to: n,
3950
3950
  token: !1,
3951
3951
  source: null,
3952
- componentFile: (a == null ? void 0 : a.componentFile) ?? Nu(e),
3952
+ componentFile: (a == null ? void 0 : a.componentFile) ?? Cu(e),
3953
3953
  media: null,
3954
3954
  sourceIdentity: a,
3955
3955
  sourceScope: a ? et(a) : null,
@@ -3961,8 +3961,8 @@ class Tu {
3961
3961
  /** Editing primitive component props — Possible DOM properties are reflected immediately, variants, etc. are reflected after application/HMR. */
3962
3962
  recordProp(e, n, r, i, s, o = se(e), a = []) {
3963
3963
  var p;
3964
- if (this.hasPendingStructuralEdit(e) || !o || !n || Pn(r) !== Pn(i)) return !1;
3965
- const c = Pn(r), u = yi(r), l = this.scopeKey("prop", n, null), d = this.originalValue(e, l, () => u), f = ((p = this.pendingFor({ kind: "prop", el: e, prop: n, media: null })) == null ? void 0 : p.to) ?? d, h = yi(i);
3964
+ if (this.hasPendingStructuralEdit(e) || !o || !n || In(r) !== In(i)) return !1;
3965
+ const c = In(r), u = yi(r), l = this.scopeKey("prop", n, null), d = this.originalValue(e, l, () => u), f = ((p = this.pendingFor({ kind: "prop", el: e, prop: n, media: null })) == null ? void 0 : p.to) ?? d, h = yi(i);
3966
3966
  if (f === h) return Hs(e, n);
3967
3967
  const v = _i(e, n, i);
3968
3968
  return this.pushOperation({
@@ -4015,10 +4015,10 @@ class Tu {
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 = bi(e), u = ae()[n], l = Mu(n);
4018
+ const a = se(e), c = bi(e), u = ae()[n], l = $u(n);
4019
4019
  if (!a || c == null || !u || !l || !Number.isSafeInteger(r) || r < 0 || r > c)
4020
4020
  return !1;
4021
- const d = Cu(
4021
+ const d = Ru(
4022
4022
  e,
4023
4023
  Math.min(r, e.children.length),
4024
4024
  l,
@@ -4101,7 +4101,7 @@ class Tu {
4101
4101
  const r = e.structureParent;
4102
4102
  if (!r) return;
4103
4103
  e.structureKind === "insert" && e.structureInsertMode === "component" && e.structurePreview ? n === e.to ? e.structurePreview.mount() : e.structurePreview.unmount() : e.structureKind === "insert" && e.structureClone ? n === e.to ? or(r, e.structureClone, Number(e.to)) : e.structureClone.remove() : e.structureKind === "remove" ? e.el.hidden = n === e.to : e.structureKind === "move" && Si(r, e.el, Number(n));
4104
- } else e.kind === "text" ? e.el.textContent = n : e.kind === "prop" && e.valueType ? _i(e.el, e.prop, In(n, e.valueType)) : n ? e.el.style.setProperty(e.prop, n) : e.el.style.removeProperty(e.prop);
4104
+ } else e.kind === "text" ? e.el.textContent = n : e.kind === "prop" && e.valueType ? _i(e.el, e.prop, Pn(n, e.valueType)) : n ? e.el.style.setProperty(e.prop, n) : e.el.style.removeProperty(e.prop);
4105
4105
  }
4106
4106
  undo() {
4107
4107
  const e = this.undoHistory.pop();
@@ -4147,8 +4147,8 @@ class Tu {
4147
4147
  kind: "prop",
4148
4148
  identity: i.sourceIdentity,
4149
4149
  prop: i.prop,
4150
- from: In(i.from, i.valueType),
4151
- to: In(i.to, i.valueType),
4150
+ from: Pn(i.from, i.valueType),
4151
+ to: Pn(i.to, i.valueType),
4152
4152
  valueType: i.valueType,
4153
4153
  scope: i.sourceScope,
4154
4154
  affectedFrames: i.affectedFrames
@@ -4242,7 +4242,7 @@ class Tu {
4242
4242
  function ze(t) {
4243
4243
  return t.kind === "style" ? t.source != null : t.sourceIdentity ? !0 : t.kind === "text" && t.componentFile != null;
4244
4244
  }
4245
- const cf = new Tu(), Du = Object.freeze({
4245
+ const ff = new ju(), Fu = Object.freeze({
4246
4246
  panX: 300,
4247
4247
  panY: 40,
4248
4248
  zoom: 1
@@ -4252,9 +4252,9 @@ function Ei(t) {
4252
4252
  panX: t.panX,
4253
4253
  panY: t.panY,
4254
4254
  zoom: Math.min(3, Math.max(0.25, t.zoom))
4255
- } : { ...Du };
4255
+ } : { ...Fu };
4256
4256
  }
4257
- function uf(t, e, n = {}) {
4257
+ function hf(t, e, n = {}) {
4258
4258
  const r = Math.max(0, n.padding ?? 40), i = Math.max(0.01, n.minZoom ?? 0.25), s = Math.max(i, n.maxZoom ?? 1), o = Math.max(0, e.insetLeft ?? 0), a = Math.max(0, e.insetRight ?? 0), c = Math.max(0, e.insetTop), u = Math.max(0, e.insetBottom), l = Math.max(
4259
4259
  1,
4260
4260
  e.width - o - a - r * 2
@@ -4278,7 +4278,7 @@ function xi(t, e, n, r, i, s, o) {
4278
4278
  const a = i + t * s, c = i + (t + Math.max(1, e)) * s, u = Math.max(1, r - n);
4279
4279
  return c - a <= u ? a < n - o ? i + n - a : c > r + o ? i - (c - r) : i : c >= n && a <= r ? i : c < n ? i + r - c : i + n - a;
4280
4280
  }
4281
- function lf(t, e, n, r = {}) {
4281
+ function pf(t, e, n, r = {}) {
4282
4282
  const i = Math.max(0, r.padding ?? 24), s = Math.max(0, r.tolerance ?? 8), o = Math.min(3, Math.max(0.25, n.zoom)), a = Math.max(0, e.insetLeft ?? 0) + i, c = Math.max(
4283
4283
  a + 1,
4284
4284
  e.width - Math.max(0, e.insetRight ?? 0) - i
@@ -4308,11 +4308,11 @@ function lf(t, e, n, r = {}) {
4308
4308
  zoom: o
4309
4309
  };
4310
4310
  }
4311
- const $u = 210, Ru = 6;
4312
- function ju(t, e = {}) {
4313
- const n = Math.max(0, e.gap ?? Us), r = Math.max(0, e.laneGap ?? $u), i = Math.max(
4311
+ const Lu = 210, ku = 6;
4312
+ function zu(t, e = {}) {
4313
+ const n = Math.max(0, e.gap ?? Us), r = Math.max(0, e.laneGap ?? Lu), i = Math.max(
4314
4314
  1,
4315
- Math.round(e.maxFramesPerRow ?? Ru)
4315
+ Math.round(e.maxFramesPerRow ?? ku)
4316
4316
  ), s = [], o = [];
4317
4317
  let a = 0, c = 0;
4318
4318
  for (const u of t) {
@@ -4341,7 +4341,7 @@ function ju(t, e = {}) {
4341
4341
  height: o.length === 0 ? 0 : a - r
4342
4342
  };
4343
4343
  }
4344
- const Us = 80, Lu = 1.6;
4344
+ const Us = 80, Vu = 1.6;
4345
4345
  function nn(t) {
4346
4346
  return Number.isFinite(t) ? Math.max(1, Math.round(t)) : 1;
4347
4347
  }
@@ -4350,7 +4350,7 @@ function Mn(t, e = {}) {
4350
4350
  return { frames: [], width: 0, height: 0, rowWidth: 0 };
4351
4351
  const n = Math.max(0, e.gap ?? Us), r = Math.max(
4352
4352
  0.25,
4353
- e.targetAspectRatio ?? Lu
4353
+ e.targetAspectRatio ?? Vu
4354
4354
  ), i = e.maxRowWidth == null ? Number.POSITIVE_INFINITY : Math.max(1, e.maxRowWidth), s = t.map((p) => ({
4355
4355
  width: nn(p.width),
4356
4356
  height: nn(p.height)
@@ -4377,7 +4377,7 @@ function Mn(t, e = {}) {
4377
4377
  rowWidth: u
4378
4378
  };
4379
4379
  }
4380
- const df = {
4380
+ const mf = {
4381
4381
  /** Rule width and the gap between rule and text. */
4382
4382
  ruleWidth: 4,
4383
4383
  gap: 10,
@@ -4394,7 +4394,7 @@ const df = {
4394
4394
  laneGap: 210,
4395
4395
  maxFramesPerRow: 6
4396
4396
  }, Ws = "";
4397
- function ff(t, e = {}) {
4397
+ function gf(t, e = {}) {
4398
4398
  const n = [], r = /* @__PURE__ */ new Set(), i = e.sections ? new Set(e.sections) : null;
4399
4399
  for (const s of t) {
4400
4400
  const o = `${s.section}
@@ -4419,19 +4419,19 @@ ${s.id}`;
4419
4419
  }
4420
4420
  return n;
4421
4421
  }
4422
- let Pr = [];
4423
- function hf(t) {
4424
- Pr = t ?? [];
4422
+ let Ir = [];
4423
+ function vf(t) {
4424
+ Ir = t ?? [];
4425
4425
  }
4426
4426
  function Gs(t) {
4427
- return Pr.filter((e) => e.section === t);
4427
+ return Ir.filter((e) => e.section === t);
4428
4428
  }
4429
- function pf(t, e) {
4430
- return e === Ws ? null : Pr.find(
4429
+ function bf(t, e) {
4430
+ return e === Ws ? null : Ir.find(
4431
4431
  (n) => n.section === t && n.id === e
4432
4432
  ) ?? null;
4433
4433
  }
4434
- function Fu(t, e) {
4434
+ function Bu(t, e) {
4435
4435
  const n = Gs(t), r = new Map(
4436
4436
  n.map((o) => [o.id, []])
4437
4437
  ), i = [];
@@ -4442,7 +4442,103 @@ function Fu(t, e) {
4442
4442
  const s = [...r.entries()].filter(([, o]) => o.length > 0).map(([o, a]) => ({ laneId: o, frames: a }));
4443
4443
  return i.length > 0 && s.push({ laneId: Ws, frames: i }), s;
4444
4444
  }
4445
- const qs = {
4445
+ function yf(t) {
4446
+ const e = [], n = /* @__PURE__ */ new Set();
4447
+ for (const r of t) {
4448
+ n.has(r.id) && e.push({
4449
+ severity: "error",
4450
+ interactionId: r.id,
4451
+ message: `Interactive state "${r.id}" is declared more than once.`
4452
+ }), n.add(r.id), r.options.length < 2 && e.push({
4453
+ severity: "error",
4454
+ interactionId: r.id,
4455
+ message: `Interactive state "${r.id}" needs at least two options.`
4456
+ });
4457
+ const i = r.options.filter((c) => {
4458
+ var u;
4459
+ return (((u = c.steps) == null ? void 0 : u.length) ?? 0) === 0;
4460
+ }), s = r.options.every(
4461
+ (c) => {
4462
+ var u;
4463
+ return c.capturedWhen != null && (((u = c.steps) == null ? void 0 : u.length) ?? 0) > 0;
4464
+ }
4465
+ );
4466
+ !s && r.options.some((c) => c.capturedWhen != null) ? e.push({
4467
+ severity: "error",
4468
+ interactionId: r.id,
4469
+ message: `Interactive state "${r.id}" witnesses only some options. Declare capturedWhen and steps on every option, or on none of them.`
4470
+ }) : !s && i.length !== 1 && e.push({
4471
+ severity: "error",
4472
+ interactionId: r.id,
4473
+ message: `Interactive state "${r.id}" needs exactly one base option (the captured state, declared without steps), or capturedWhen plus steps on every option so the base resolves per frame.`
4474
+ });
4475
+ const a = /* @__PURE__ */ new Set();
4476
+ for (const c of r.options) {
4477
+ a.has(c.id) && e.push({
4478
+ severity: "error",
4479
+ interactionId: r.id,
4480
+ message: `Option "${c.id}" is declared more than once.`
4481
+ }), a.add(c.id);
4482
+ for (const u of c.steps ?? [])
4483
+ u.label || e.push({
4484
+ severity: "error",
4485
+ interactionId: r.id,
4486
+ message: `Option "${c.id}" has a step without a label.`
4487
+ }), !u.selector && !u.text && u.action !== "storage" && e.push({
4488
+ severity: "error",
4489
+ interactionId: r.id,
4490
+ message: `Option "${c.id}" step "${u.label}" targets nothing.`
4491
+ });
4492
+ }
4493
+ }
4494
+ return e;
4495
+ }
4496
+ function qs(t, e) {
4497
+ if (!t) return !1;
4498
+ const n = t.domAttributes;
4499
+ return (n == null ? void 0 : n["data-testid"]) === e ? !0 : (t.children ?? []).some((r) => qs(r, e));
4500
+ }
4501
+ function _f(t, e) {
4502
+ return e.filter((n) => {
4503
+ var s, o;
4504
+ const r = (s = n.requires) == null ? void 0 : s.route;
4505
+ if (r != null && (t.route ?? "") !== r) return !1;
4506
+ const i = (o = n.requires) == null ? void 0 : o.testId;
4507
+ return !(i != null && !qs(t.root, i));
4508
+ });
4509
+ }
4510
+ function Xs(t, e) {
4511
+ if (!t) return !1;
4512
+ const n = t.domAttributes;
4513
+ if ((n == null ? void 0 : n["data-testid"]) === e.testId) {
4514
+ const r = e.attribute;
4515
+ if (r == null || (n == null ? void 0 : n[r.name]) === r.value) return !0;
4516
+ }
4517
+ return (t.children ?? []).some((r) => Xs(r, e));
4518
+ }
4519
+ function Ys(t, e) {
4520
+ return t.options.find(
4521
+ (n) => n.capturedWhen != null && Xs(e.root, n.capturedWhen)
4522
+ );
4523
+ }
4524
+ function Sf(t, e) {
4525
+ if (e) {
4526
+ const n = Ys(t, e);
4527
+ if (n) return n;
4528
+ }
4529
+ return t.options.find((n) => {
4530
+ var r;
4531
+ return (((r = n.steps) == null ? void 0 : r.length) ?? 0) === 0;
4532
+ });
4533
+ }
4534
+ let Js = [];
4535
+ function wf(t) {
4536
+ Js = t ?? [];
4537
+ }
4538
+ function Of() {
4539
+ return Js;
4540
+ }
4541
+ const Zs = {
4446
4542
  surface: "#343441",
4447
4543
  pillSurface: "#2e2c3a",
4448
4544
  caption: "#a1a1b3",
@@ -4451,24 +4547,24 @@ const qs = {
4451
4547
  titleMuted: "#a1a1b3",
4452
4548
  meta: "#bebecb",
4453
4549
  purpose: "#c4ccd8"
4454
- }, Ir = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
4455
- function mf(t, e) {
4550
+ }, Pr = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
4551
+ function Ef(t, e) {
4456
4552
  const n = t.length === 4 ? `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}` : t;
4457
- if (!Ir.test(n)) return t;
4553
+ if (!Pr.test(n)) return t;
4458
4554
  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);
4459
4555
  return `#${(s << 16 | o << 8 | a).toString(16).padStart(6, "0")}`;
4460
4556
  }
4461
- const ku = {
4557
+ const Ku = {
4462
4558
  layers: "layers",
4463
4559
  noScenario: "no scenario",
4464
4560
  omissions: "some omissions",
4465
4561
  checkFlow: "check flow"
4466
4562
  };
4467
- function gf(t) {
4468
- return { ...ku, ...t };
4563
+ function xf(t) {
4564
+ return { ...Ku, ...t };
4469
4565
  }
4470
- const Xs = "step", Ys = "variant", zu = "#8b8b9e";
4471
- function vf(t, e = {}) {
4566
+ const Qs = "step", eo = "variant", Hu = "#8b8b9e";
4567
+ function Af(t, e = {}) {
4472
4568
  const n = [], r = /* @__PURE__ */ new Set();
4473
4569
  for (const i of t)
4474
4570
  r.has(i.kind) && n.push({
@@ -4479,12 +4575,12 @@ function vf(t, e = {}) {
4479
4575
  severity: "error",
4480
4576
  kind: i.kind,
4481
4577
  message: "a branch kind needs a label — it is what the pill reads"
4482
- }), Ir.test(i.accent) || n.push({
4578
+ }), Pr.test(i.accent) || n.push({
4483
4579
  severity: "error",
4484
4580
  kind: i.kind,
4485
4581
  message: `accent "${i.accent}" is not a hex colour`
4486
4582
  });
4487
- for (const i of [Xs, Ys])
4583
+ for (const i of [Qs, eo])
4488
4584
  r.has(i) || n.push({
4489
4585
  severity: "warning",
4490
4586
  kind: i,
@@ -4501,38 +4597,38 @@ function vf(t, e = {}) {
4501
4597
  function Mr(t) {
4502
4598
  return t.scenarioIds && t.scenarioIds.length > 0 ? t.scenarioIds : t.scenarioId ? [t.scenarioId] : [];
4503
4599
  }
4504
- function Js(t) {
4600
+ function to(t) {
4505
4601
  return t.route != null && Mr(t).length === 0;
4506
4602
  }
4507
- function bf(t) {
4508
- return t.filter(Js);
4603
+ function Nf(t) {
4604
+ return t.filter(to);
4509
4605
  }
4510
- function yf(t) {
4606
+ function If(t) {
4511
4607
  if (t.stateKind) return t.stateKind;
4512
- const e = Vu(t);
4513
- return e != null && e.split(".").length > 2 ? Ys : Xs;
4608
+ const e = Uu(t);
4609
+ return e != null && e.split(".").length > 2 ? eo : Qs;
4514
4610
  }
4515
- const Zs = /^(\d+(?:\.\d+)*)\s+(.*)$/;
4516
- function Vu(t) {
4611
+ const no = /^(\d+(?:\.\d+)*)\s+(.*)$/;
4612
+ function Uu(t) {
4517
4613
  var e;
4518
- return ((e = Zs.exec(t.name.trim())) == null ? void 0 : e[1]) ?? null;
4614
+ return ((e = no.exec(t.name.trim())) == null ? void 0 : e[1]) ?? null;
4519
4615
  }
4520
- function _f(t) {
4521
- const e = t.name.trim(), n = Zs.exec(e), r = n ? n[2] : e, i = r.lastIndexOf(" / "), s = i >= 0 ? r.slice(i + 3).trim() : r;
4616
+ function Pf(t) {
4617
+ const e = t.name.trim(), n = no.exec(e), r = n ? n[2] : e, i = r.lastIndexOf(" / "), s = i >= 0 ? r.slice(i + 3).trim() : r;
4522
4618
  return {
4523
4619
  code: n ? n[1] : null,
4524
4620
  title: s || e,
4525
4621
  ...t.state ? { state: t.state } : {}
4526
4622
  };
4527
4623
  }
4528
- function Sf(t, e) {
4624
+ function Mf(t, e) {
4529
4625
  const n = [];
4530
4626
  t.layerImportTruncated ? n.push(e.omissions) : t.layerImportError && n.push(e.checkFlow);
4531
4627
  const r = Mr(t);
4532
- return r.length > 0 ? n.push(r.join(" · ")) : Js(t) && n.push(e.noScenario), t.layersImported && !t.layerImportTruncated && n.push(`${t.layerImportCount ?? 0} ${e.layers}`), n.join(" · ");
4628
+ return r.length > 0 ? n.push(r.join(" · ")) : to(t) && n.push(e.noScenario), t.layersImported && !t.layerImportTruncated && n.push(`${t.layerImportCount ?? 0} ${e.layers}`), n.join(" · ");
4533
4629
  }
4534
- const wf = {
4535
- ...qs,
4630
+ const Cf = {
4631
+ ...Zs,
4536
4632
  radius: 10,
4537
4633
  pillRadius: 999,
4538
4634
  ruleWidth: 6,
@@ -4547,32 +4643,32 @@ const wf = {
4547
4643
  pillPaddingX: 10,
4548
4644
  /** Bottom margin between the label and its frame. */
4549
4645
  marginBottom: 8
4550
- }, Of = 0.35;
4551
- let Qs = [], eo;
4552
- function Ef(t, e) {
4553
- Qs = t, eo = e;
4646
+ }, Tf = 0.35;
4647
+ let ro = [], io;
4648
+ function Df(t, e) {
4649
+ ro = t, io = e;
4554
4650
  }
4555
- function xf() {
4556
- return eo;
4651
+ function $f() {
4652
+ return io;
4557
4653
  }
4558
- function Af(t) {
4559
- return Qs.find((e) => e.kind === t) ?? {
4654
+ function Rf(t) {
4655
+ return ro.find((e) => e.kind === t) ?? {
4560
4656
  kind: t,
4561
4657
  label: t,
4562
- accent: zu
4658
+ accent: Hu
4563
4659
  };
4564
4660
  }
4565
- const Bu = {
4661
+ const Wu = {
4566
4662
  code: "SECTION",
4567
4663
  frames: "frames",
4568
4664
  folded: "folded",
4569
4665
  scenarios: "scenarios",
4570
4666
  flows: "flows"
4571
4667
  };
4572
- function Nf(t) {
4573
- return { ...Bu, ...t };
4668
+ function jf(t) {
4669
+ return { ...Wu, ...t };
4574
4670
  }
4575
- function Pf(t, e) {
4671
+ function Ff(t, e) {
4576
4672
  const n = [], r = new Set(e.sections), i = /* @__PURE__ */ new Set();
4577
4673
  for (const s of t)
4578
4674
  i.has(s.section) && n.push({
@@ -4595,7 +4691,7 @@ function Pf(t, e) {
4595
4691
  severity: "error",
4596
4692
  section: s.section,
4597
4693
  message: "a header needs a purpose — it is the line a planner reads"
4598
- }), Ir.test(s.accent) || n.push({
4694
+ }), Pr.test(s.accent) || n.push({
4599
4695
  severity: "error",
4600
4696
  section: s.section,
4601
4697
  message: `accent "${s.accent}" is not a hex colour`
@@ -4608,7 +4704,7 @@ function Pf(t, e) {
4608
4704
  });
4609
4705
  return n;
4610
4706
  }
4611
- function If(t, e = {}) {
4707
+ function Lf(t, e = {}) {
4612
4708
  const n = e.isShown ?? (() => !0), r = /* @__PURE__ */ new Set(), i = [], s = /* @__PURE__ */ new Set();
4613
4709
  let o = 0;
4614
4710
  for (const a of t) {
@@ -4626,14 +4722,14 @@ function If(t, e = {}) {
4626
4722
  viewport: s.size === 1 ? [...s][0] : null
4627
4723
  };
4628
4724
  }
4629
- function Mf(t, e) {
4725
+ function kf(t, e) {
4630
4726
  const n = [];
4631
4727
  return n.push(
4632
4728
  t.foldedCount > 0 ? `${t.frameCount} ${e.frames} (+${t.foldedCount} ${e.folded})` : `${t.frameCount} ${e.frames}`
4633
4729
  ), 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(" · ");
4634
4730
  }
4635
- const Cf = {
4636
- ...qs,
4731
+ const zf = {
4732
+ ...Zs,
4637
4733
  radius: 12,
4638
4734
  pillRadius: 999,
4639
4735
  ruleWidth: 6,
@@ -4647,18 +4743,18 @@ const Cf = {
4647
4743
  pillSize: 12,
4648
4744
  pillPaddingY: 6,
4649
4745
  pillPaddingX: 14
4650
- }, Ku = 176, Tf = 1280;
4651
- let Cr = [], to;
4652
- function Df(t, e) {
4653
- Cr = t, to = e;
4746
+ }, Gu = 176, Vf = 1280;
4747
+ let Cr = [], so;
4748
+ function Bf(t, e) {
4749
+ Cr = t, so = e;
4654
4750
  }
4655
- function no() {
4751
+ function oo() {
4656
4752
  return Cr;
4657
4753
  }
4658
- function $f() {
4659
- return to;
4754
+ function Kf() {
4755
+ return so;
4660
4756
  }
4661
- function Rf(t) {
4757
+ function Hf(t) {
4662
4758
  return Cr.find((e) => e.section === t) ?? null;
4663
4759
  }
4664
4760
  function q(t, e) {
@@ -4670,7 +4766,7 @@ function q(t, e) {
4670
4766
  const i = `${n.className ?? ""} ${t.name ?? ""}`;
4671
4767
  return (typeof r == "string" ? [r] : r).some((o) => o !== "" && i.includes(o));
4672
4768
  }
4673
- function Fe(t, e, n) {
4769
+ function Le(t, e, n) {
4674
4770
  const r = [], i = (s) => {
4675
4771
  if (!(r.length >= n)) {
4676
4772
  e(s) && r.push(s);
@@ -4679,15 +4775,15 @@ function Fe(t, e, n) {
4679
4775
  };
4680
4776
  return i(t), r;
4681
4777
  }
4682
- function ro(t, e) {
4778
+ function ao(t, e) {
4683
4779
  if (t.id === e) return [t];
4684
4780
  for (const n of t.children ?? []) {
4685
- const r = ro(n, e);
4781
+ const r = ao(n, e);
4686
4782
  if (r) return [t, ...r];
4687
4783
  }
4688
4784
  return null;
4689
4785
  }
4690
- function Hu(t, e = 28) {
4786
+ function qu(t, e = 28) {
4691
4787
  const n = [];
4692
4788
  let r = 0;
4693
4789
  const i = (o) => {
@@ -4700,8 +4796,8 @@ function Hu(t, e = 28) {
4700
4796
  const s = n.join(" ");
4701
4797
  return s.length > e ? `${s.slice(0, e - 1)}…` : s;
4702
4798
  }
4703
- const Uu = 24;
4704
- function jf(t, e) {
4799
+ const Xu = 24;
4800
+ function Uf(t, e) {
4705
4801
  var i, s, o;
4706
4802
  const n = [], r = /* @__PURE__ */ new Set();
4707
4803
  for (const a of t) {
@@ -4771,26 +4867,26 @@ function jf(t, e) {
4771
4867
  }
4772
4868
  return n;
4773
4869
  }
4774
- function Wu(t, e) {
4870
+ function Yu(t, e) {
4775
4871
  return t.componentName === e.component ? !0 : q(t, e.match);
4776
4872
  }
4777
- function Gu(t, e) {
4778
- return Fe(
4873
+ function Ju(t, e) {
4874
+ return Le(
4779
4875
  t.root,
4780
- (n) => Wu(n, e),
4781
- Uu
4876
+ (n) => Yu(n, e),
4877
+ Xu
4782
4878
  );
4783
4879
  }
4784
- function qu(t, e) {
4785
- return Gu(t, e)[0] ?? null;
4880
+ function Zu(t, e) {
4881
+ return Ju(t, e)[0] ?? null;
4786
4882
  }
4787
- function Xu(t, e) {
4883
+ function Qu(t, e) {
4788
4884
  var r;
4789
4885
  if (t.prop) return { [t.prop]: e };
4790
4886
  const n = (r = t.options) == null ? void 0 : r.find((i) => i.label === e);
4791
4887
  return n ? n.props : null;
4792
4888
  }
4793
- function Lf(t, e) {
4889
+ function Wf(t, e) {
4794
4890
  var n;
4795
4891
  if (e.componentName !== t.component) return null;
4796
4892
  if (t.prop) {
@@ -4806,15 +4902,15 @@ function Lf(t, e) {
4806
4902
  )) return r.label;
4807
4903
  return null;
4808
4904
  }
4809
- let io = [];
4810
- function Ff(t) {
4811
- io = t;
4905
+ let co = [];
4906
+ function Gf(t) {
4907
+ co = t;
4812
4908
  }
4813
- function kf() {
4814
- return io;
4909
+ function qf() {
4910
+ return co;
4815
4911
  }
4816
4912
  const Tr = 12;
4817
- function zf(t, e) {
4913
+ function Xf(t, e) {
4818
4914
  var i, s;
4819
4915
  const n = [], r = /* @__PURE__ */ new Set();
4820
4916
  for (const o of t) {
@@ -4885,15 +4981,15 @@ function zf(t, e) {
4885
4981
  }
4886
4982
  return n;
4887
4983
  }
4888
- function Vf(t, e) {
4889
- return Fe(
4984
+ function Yf(t, e) {
4985
+ return Le(
4890
4986
  t.root,
4891
4987
  (n) => q(n, e.card),
4892
4988
  Tr
4893
4989
  );
4894
4990
  }
4895
- function so(t, e) {
4896
- return Fe(
4991
+ function uo(t, e) {
4992
+ return Le(
4897
4993
  t,
4898
4994
  (n) => n !== t && q(n, e.container),
4899
4995
  1
@@ -4907,8 +5003,8 @@ function Bt(t, e) {
4907
5003
  }
4908
5004
  ) : q(t, e.match);
4909
5005
  }
4910
- function Bf(t, e) {
4911
- const n = so(t, e);
5006
+ function Jf(t, e) {
5007
+ const n = uo(t, e);
4912
5008
  if (!n) return [];
4913
5009
  const r = [];
4914
5010
  for (const i of n.children ?? []) {
@@ -4917,18 +5013,18 @@ function Bf(t, e) {
4917
5013
  }
4918
5014
  return r;
4919
5015
  }
4920
- function Kf(t, e) {
4921
- return Hu(t) || `#${e + 1}`;
5016
+ function Zf(t, e) {
5017
+ return qu(t) || `#${e + 1}`;
4922
5018
  }
4923
- function Yu(t, e, n) {
4924
- return Fe(
5019
+ function el(t, e, n) {
5020
+ return Le(
4925
5021
  t.root,
4926
5022
  (i) => i.componentName !== e.component && q(i, e.match),
4927
5023
  Tr
4928
5024
  ).find((i) => !Dr(n, i)) ?? null;
4929
5025
  }
4930
- function Ju(t, e, n) {
4931
- return Fe(
5026
+ function tl(t, e, n) {
5027
+ return Le(
4932
5028
  t.root,
4933
5029
  (i) => q(i, e.container),
4934
5030
  Tr
@@ -4937,10 +5033,10 @@ function Ju(t, e, n) {
4937
5033
  function Dr(t, e) {
4938
5034
  return t === e ? !0 : (t.children ?? []).some((n) => Dr(n, e));
4939
5035
  }
4940
- function Zu(t, e) {
5036
+ function nl(t, e) {
4941
5037
  const n = e.placement;
4942
5038
  if (!n) return null;
4943
- const r = Fe(
5039
+ const r = Le(
4944
5040
  t,
4945
5041
  (s) => q(s, n.parent),
4946
5042
  1
@@ -4961,7 +5057,7 @@ function Zu(t, e) {
4961
5057
  }
4962
5058
  return { parent: r, index: i.length };
4963
5059
  }
4964
- function Qu(t, e) {
5060
+ function rl(t, e) {
4965
5061
  var s, o;
4966
5062
  const n = t.children ?? [], r = (s = e.anchor) == null ? void 0 : s.before;
4967
5063
  if (r) {
@@ -4975,21 +5071,21 @@ function Qu(t, e) {
4975
5071
  }
4976
5072
  return n.length;
4977
5073
  }
4978
- let oo = [];
4979
- function Hf(t) {
4980
- oo = t;
5074
+ let lo = [];
5075
+ function Qf(t) {
5076
+ lo = t;
4981
5077
  }
4982
- function Uf() {
4983
- return oo;
5078
+ function eh() {
5079
+ return lo;
4984
5080
  }
4985
- const el = 0, tl = 12, ao = el, co = tl, nl = 64;
5081
+ const il = 0, sl = 12, fo = il, ho = sl, ol = 64;
4986
5082
  function Ni(t) {
4987
5083
  if (!t) return !0;
4988
5084
  if (t.testId) return !1;
4989
5085
  const e = t.classIncludes;
4990
5086
  return typeof e == "string" ? e === "" : !e || e.length === 0;
4991
5087
  }
4992
- function Wf(t) {
5088
+ function th(t) {
4993
5089
  const e = [], n = /* @__PURE__ */ new Set();
4994
5090
  for (const r of t) {
4995
5091
  n.has(r.id) && e.push({
@@ -5005,7 +5101,7 @@ function Wf(t) {
5005
5101
  listId: r.id,
5006
5102
  message: "a list needs an item matcher"
5007
5103
  });
5008
- const i = r.min ?? ao, s = r.max ?? co;
5104
+ const i = r.min ?? fo, s = r.max ?? ho;
5009
5105
  i < 0 && e.push({
5010
5106
  severity: "error",
5011
5107
  listId: r.id,
@@ -5022,24 +5118,24 @@ function Wf(t) {
5022
5118
  }
5023
5119
  return e;
5024
5120
  }
5025
- function rl(t, e) {
5026
- return Fe(t.root, (n) => q(n, e.container), 1)[0] ?? null;
5121
+ function al(t, e) {
5122
+ return Le(t.root, (n) => q(n, e.container), 1)[0] ?? null;
5027
5123
  }
5028
- function il(t, e) {
5029
- return Fe(
5124
+ function cl(t, e) {
5125
+ return Le(
5030
5126
  t,
5031
5127
  (n) => n !== t && q(n, e.item),
5032
- nl
5128
+ ol
5033
5129
  );
5034
5130
  }
5035
- function sl(t, e) {
5036
- const n = Math.max(0, t.min ?? ao), r = Math.max(n, t.max ?? co);
5131
+ function ul(t, e) {
5132
+ const n = Math.max(0, t.min ?? fo), r = Math.max(n, t.max ?? ho);
5037
5133
  return Number.isFinite(e) ? Math.min(r, Math.max(n, Math.round(e))) : n;
5038
5134
  }
5039
- const ol = /^(-?\d+(?:\.\d+)?)px$/;
5135
+ const ll = /^(-?\d+(?:\.\d+)?)px$/;
5040
5136
  function Ye(t) {
5041
5137
  if (!t) return null;
5042
- const e = ol.exec(t.trim());
5138
+ const e = ll.exec(t.trim());
5043
5139
  return e ? Number(e[1]) : null;
5044
5140
  }
5045
5141
  function rn(t) {
@@ -5048,12 +5144,12 @@ function rn(t) {
5048
5144
  function ar(t) {
5049
5145
  return `${Number(t.toFixed(4))}px`;
5050
5146
  }
5051
- function Pi(t, e) {
5147
+ function Ii(t, e) {
5052
5148
  var i, s, o;
5053
5149
  const n = Ye((i = e.domStyle) == null ? void 0 : i.height) ?? 0, r = rn((s = t.domStyle) == null ? void 0 : s.rowGap) ?? rn((o = t.domStyle) == null ? void 0 : o.gap) ?? 0;
5054
5150
  return n + r;
5055
5151
  }
5056
- function al(t, e) {
5152
+ function dl(t, e) {
5057
5153
  const n = { ...t.domStyle };
5058
5154
  let r = !1;
5059
5155
  const i = Ye(n.height);
@@ -5061,7 +5157,7 @@ function al(t, e) {
5061
5157
  const s = Ye(n.maxHeight);
5062
5158
  s != null && (n.maxHeight = ar(s + e), r = !0), r && (t.domStyle = n);
5063
5159
  }
5064
- function cl(t, e, n) {
5160
+ function fl(t, e, n) {
5065
5161
  var i, s;
5066
5162
  const r = t.children.indexOf(e);
5067
5163
  if (!(r < 0))
@@ -5072,21 +5168,21 @@ function cl(t, e, n) {
5072
5168
  c != null && (o.domStyle = { ...o.domStyle, top: ar(c + n) });
5073
5169
  }
5074
5170
  }
5075
- const ul = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), ll = /* @__PURE__ */ new Set(["auto", "scroll", "overlay", "hidden", "clip"]), Cn = "data-pygmalion-captured-overflow-y";
5076
- function uo(t) {
5171
+ const hl = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), pl = /* @__PURE__ */ new Set(["auto", "scroll", "overlay", "hidden", "clip"]), Cn = "data-pygmalion-captured-overflow-y";
5172
+ function po(t) {
5077
5173
  const e = t.domStyle ?? {};
5078
5174
  return e.overflowY ?? e.overflow;
5079
5175
  }
5080
- function dl(t) {
5081
- const e = uo(t);
5082
- return e != null && ll.has(e);
5176
+ function ml(t) {
5177
+ const e = po(t);
5178
+ return e != null && pl.has(e);
5083
5179
  }
5084
- function fl(t) {
5180
+ function gl(t) {
5085
5181
  for (let e = t.length - 2; e >= 0; e -= 1)
5086
- if (dl(t[e])) return e;
5182
+ if (ml(t[e])) return e;
5087
5183
  return -1;
5088
5184
  }
5089
- function hl(t) {
5185
+ function vl(t) {
5090
5186
  var s, o, a, c;
5091
5187
  const e = rn((s = t.domStyle) == null ? void 0 : s.rowGap) ?? rn((o = t.domStyle) == null ? void 0 : o.gap) ?? 0, n = t.children ?? [];
5092
5188
  let r = 0, i = 0;
@@ -5098,13 +5194,13 @@ function hl(t) {
5098
5194
  }
5099
5195
  return i > 0 ? r + e * (i - 1) : 0;
5100
5196
  }
5101
- function pl(t) {
5197
+ function bl(t) {
5102
5198
  var a, c;
5103
5199
  const e = Ye((a = t.domStyle) == null ? void 0 : a.height);
5104
5200
  if (e == null) return;
5105
- const n = { ...t.domAttributes ?? {} }, r = n[Cn], i = hl(t) > e + 0.5, s = uo(t);
5201
+ const n = { ...t.domAttributes ?? {} }, r = n[Cn], i = vl(t) > e + 0.5, s = po(t);
5106
5202
  if (i) {
5107
- if (s != null && ul.has(s)) return;
5203
+ if (s != null && hl.has(s)) return;
5108
5204
  r == null && (n[Cn] = ((c = t.domStyle) == null ? void 0 : c.overflowY) ?? "", t.domAttributes = n), t.domStyle = { ...t.domStyle, overflowY: "auto" };
5109
5205
  return;
5110
5206
  }
@@ -5112,27 +5208,27 @@ function pl(t) {
5112
5208
  const o = { ...t.domStyle };
5113
5209
  r === "" ? delete o.overflowY : o.overflowY = r, t.domStyle = o, delete n[Cn], t.domAttributes = n;
5114
5210
  }
5115
- function ml(t, e, n) {
5211
+ function yl(t, e, n) {
5116
5212
  if (!n) return;
5117
- const r = ro(t, e.id);
5213
+ const r = ao(t, e.id);
5118
5214
  if (!r) return;
5119
- const i = fl(r);
5215
+ const i = gl(r);
5120
5216
  for (let s = r.length - 1; s > i; s -= 1)
5121
- al(r[s], n), s > 0 && cl(r[s - 1], r[s], n);
5122
- i >= 0 && pl(r[i]);
5217
+ dl(r[s], n), s > 0 && fl(r[s - 1], r[s], n);
5218
+ i >= 0 && bl(r[i]);
5123
5219
  }
5124
- let lo = [];
5125
- function Gf(t) {
5126
- lo = t;
5220
+ let mo = [];
5221
+ function nh(t) {
5222
+ mo = t;
5127
5223
  }
5128
- function qf() {
5129
- return lo;
5224
+ function rh() {
5225
+ return mo;
5130
5226
  }
5131
- const gl = 12, vl = 800, bl = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "META", "LINK", "TEMPLATE", "IFRAME", "BR", "HEAD"]), yl = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]);
5132
- let _l = 0;
5133
- function Lt(t, e) {
5227
+ const _l = 12, Sl = 800, wl = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "META", "LINK", "TEMPLATE", "IFRAME", "BR", "HEAD"]), Ol = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]);
5228
+ let El = 0;
5229
+ function Ft(t, e) {
5134
5230
  return {
5135
- id: `imp${++_l}`,
5231
+ id: `imp${++El}`,
5136
5232
  type: t,
5137
5233
  name: t,
5138
5234
  widthMode: "fill",
@@ -5171,7 +5267,7 @@ function Lt(t, e) {
5171
5267
  };
5172
5268
  }
5173
5269
  const Oe = (t) => Math.round(parseFloat(t) || 0);
5174
- function Sl(t) {
5270
+ function xl(t) {
5175
5271
  const e = Number.parseFloat(t);
5176
5272
  return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 1;
5177
5273
  }
@@ -5185,19 +5281,19 @@ function Tn(t) {
5185
5281
  const r = (i) => Number(i).toString(16).padStart(2, "0");
5186
5282
  return `#${r(e[1])}${r(e[2])}${r(e[3])}`;
5187
5283
  }
5188
- const wl = {
5284
+ const Al = {
5189
5285
  center: "center",
5190
5286
  "flex-end": "end",
5191
5287
  end: "end",
5192
5288
  "space-between": "between"
5193
- }, Ol = { center: "center", "flex-end": "end", end: "end" };
5289
+ }, Nl = { center: "center", "flex-end": "end", end: "end" };
5194
5290
  function Dn(t, e) {
5195
5291
  t.truncated = !0, !t.diagnosticCodes.has(e.code) && (t.diagnosticCodes.add(e.code), t.diagnostics.push(e));
5196
5292
  }
5197
- function Ii(t, e, n, r) {
5293
+ function Pi(t, e, n, r) {
5198
5294
  return Math.abs(t.width - e.width) <= 2 * r ? { widthMode: "fill", width: 200 } : n.startsWith("inline") || n === "flex" || n === "grid" ? { widthMode: "fit", width: 200 } : { widthMode: "fixed", width: Math.max(4, Math.round(t.width / r)) };
5199
5295
  }
5200
- function El(t) {
5296
+ function Il(t) {
5201
5297
  const e = {
5202
5298
  class: "className",
5203
5299
  for: "htmlFor",
@@ -5219,11 +5315,11 @@ function $n(t) {
5219
5315
  r = new URL(r, t.ownerDocument.baseURI).href;
5220
5316
  } catch {
5221
5317
  }
5222
- e[El(n.name)] = r;
5318
+ e[Il(n.name)] = r;
5223
5319
  }
5224
5320
  return e;
5225
5321
  }
5226
- const xl = [
5322
+ const Pl = [
5227
5323
  "display",
5228
5324
  "position",
5229
5325
  "inset",
@@ -5310,19 +5406,19 @@ const xl = [
5310
5406
  "object-position",
5311
5407
  "visibility"
5312
5408
  ];
5313
- function Al(t) {
5409
+ function Ml(t) {
5314
5410
  return t.replace(/-([a-z])/g, (e, n) => n.toUpperCase());
5315
5411
  }
5316
- const Nl = /* @__PURE__ */ new Set(["overflow", "overflow-x", "overflow-y"]);
5412
+ const Cl = /* @__PURE__ */ new Set(["overflow", "overflow-x", "overflow-y"]);
5317
5413
  function Rn(t) {
5318
5414
  const e = {};
5319
- for (const n of xl) {
5415
+ for (const n of Pl) {
5320
5416
  const r = t.getPropertyValue(n);
5321
- !r || r === "normal" || r === "none" || r === "auto" && !Nl.has(n) || (e[Al(n)] = r);
5417
+ !r || r === "normal" || r === "none" || r === "auto" && !Cl.has(n) || (e[Ml(n)] = r);
5322
5418
  }
5323
5419
  return e;
5324
5420
  }
5325
- function Pl(t, e, n) {
5421
+ function Tl(t, e, n) {
5326
5422
  const r = t.getAttribute("data-pygmalion-layer");
5327
5423
  if (r) return r;
5328
5424
  if (n) return n;
@@ -5335,7 +5431,7 @@ function Pl(t, e, n) {
5335
5431
  const a = (t.getAttribute("class") || "").split(/\s+/).find(Boolean);
5336
5432
  return a ? `${e.toLowerCase()}.${a.slice(0, 32)}` : e.toLowerCase();
5337
5433
  }
5338
- function Il(t) {
5434
+ function Dl(t) {
5339
5435
  let e = "";
5340
5436
  const n = Array.from(t.childNodes ?? []);
5341
5437
  for (; n.length > 0; ) {
@@ -5348,13 +5444,13 @@ function Il(t) {
5348
5444
  }
5349
5445
  return e.replace(/\s+/g, " ").trim();
5350
5446
  }
5351
- function Ml(t, e) {
5352
- const n = Il(t);
5447
+ function $l(t, e) {
5448
+ const n = Dl(t);
5353
5449
  if (!n) return !0;
5354
5450
  const r = [e.childrenText, ...Object.values(e.props).map(String)].join(" ").replace(/\s+/g, " ").trim();
5355
5451
  return r ? n.split(" ").every((i) => r.includes(i)) : !1;
5356
5452
  }
5357
- function Cl(t, e) {
5453
+ function Rl(t, e) {
5358
5454
  if (!e.resolveInstance) return !1;
5359
5455
  const n = Array.from(t.children ?? []);
5360
5456
  for (; n.length > 0; ) {
@@ -5364,9 +5460,9 @@ function Cl(t, e) {
5364
5460
  }
5365
5461
  return !1;
5366
5462
  }
5367
- function fo(t, e, n, r, i, s) {
5463
+ function go(t, e, n, r, i, s) {
5368
5464
  var Se, Y;
5369
- const o = s.maxNodes ?? vl, a = s.maxDepth ?? gl;
5465
+ const o = s.maxNodes ?? Sl, a = s.maxDepth ?? _l;
5370
5466
  if (r.maxDepth = Math.max(r.maxDepth, n), r.count >= o)
5371
5467
  return Dn(r, {
5372
5468
  severity: "warning",
@@ -5377,7 +5473,7 @@ function fo(t, e, n, r, i, s) {
5377
5473
  actual: r.count
5378
5474
  }), null;
5379
5475
  const c = t.tagName.toUpperCase();
5380
- if (bl.has(c)) return null;
5476
+ if (wl.has(c)) return null;
5381
5477
  const u = i.getComputedStyle(t), l = u.display === "none" || u.visibility === "hidden";
5382
5478
  if (l && !s.includeHidden) return null;
5383
5479
  const d = t.getBoundingClientRect();
@@ -5390,9 +5486,9 @@ function fo(t, e, n, r, i, s) {
5390
5486
  sourceProps: sr(
5391
5487
  t.getAttribute("data-pygmalion-own-props")
5392
5488
  )
5393
- }, S = v != null && h === "expand" && ((Y = s.collapseInstance) == null ? void 0 : Y.call(s, v)) === !0 && !Cl(t, s) && Ml(t, v);
5489
+ }, S = v != null && h === "expand" && ((Y = s.collapseInstance) == null ? void 0 : Y.call(s, v)) === !0 && !Rl(t, s) && $l(t, v);
5394
5490
  if (v && (h === "collapse" || S))
5395
- return Lt("component", {
5491
+ return Ft("component", {
5396
5492
  name: v.name,
5397
5493
  componentName: v.name,
5398
5494
  componentProps: v.props,
@@ -5401,11 +5497,11 @@ function fo(t, e, n, r, i, s) {
5401
5497
  domAttributes: $n(t),
5402
5498
  domStyle: Rn(u),
5403
5499
  ...g,
5404
- ...Ii(d, e, u.display, f)
5500
+ ...Pi(d, e, u.display, f)
5405
5501
  });
5406
- const m = Pl(t, c, v == null ? void 0 : v.name);
5407
- if (yl.has(c) && (s.mediaMode ?? "placeholder") === "placeholder")
5408
- return Lt("rows", {
5502
+ const m = Tl(t, c, v == null ? void 0 : v.name);
5503
+ if (Ol.has(c) && (s.mediaMode ?? "placeholder") === "placeholder")
5504
+ return Ft("rows", {
5409
5505
  name: m,
5410
5506
  widthMode: "fixed",
5411
5507
  width: Math.max(4, Math.round(d.width / f)),
@@ -5419,15 +5515,15 @@ function fo(t, e, n, r, i, s) {
5419
5515
  domStyle: Rn(u),
5420
5516
  ...g
5421
5517
  });
5422
- const E = u.display === "flex" || u.display === "inline-flex", w = E && u.flexDirection.startsWith("row") ? "columns" : "rows", I = Oe(w === "columns" ? u.columnGap : u.rowGap), C = Math.round(
5518
+ 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(
5423
5519
  (Oe(u.paddingTop) + Oe(u.paddingRight) + Oe(u.paddingBottom) + Oe(u.paddingLeft)) / 4
5424
- ), M = Oe(u.borderTopWidth), L = Lt(w, {
5520
+ ), M = Oe(u.borderTopWidth), F = Ft(w, {
5425
5521
  name: m,
5426
- ...Ii(d, e, u.display, f),
5427
- gap: Number.isFinite(I) ? I : 0,
5522
+ ...Pi(d, e, u.display, f),
5523
+ gap: Number.isFinite(P) ? P : 0,
5428
5524
  padding: C,
5429
- justify: E ? wl[u.justifyContent] ?? "start" : "start",
5430
- alignItems: E ? Ol[u.alignItems] ?? "start" : "start",
5525
+ justify: E ? Al[u.justifyContent] ?? "start" : "start",
5526
+ alignItems: E ? Nl[u.alignItems] ?? "start" : "start",
5431
5527
  fill: Tn(u.backgroundColor),
5432
5528
  radius: Oe(u.borderTopLeftRadius),
5433
5529
  borderWidth: M,
@@ -5435,7 +5531,7 @@ function fo(t, e, n, r, i, s) {
5435
5531
  // A fully transparent element reads as opacity "0", and 0 is falsy — an
5436
5532
  // `|| 1` fallback here turned every hover-only affordance (a list row's
5437
5533
  // reveal-on-hover action) into a permanently visible one.
5438
- opacity: Sl(u.opacity),
5534
+ opacity: xl(u.opacity),
5439
5535
  hidden: l,
5440
5536
  domTag: c.toLowerCase(),
5441
5537
  domAttributes: $n(t),
@@ -5450,8 +5546,8 @@ function fo(t, e, n, r, i, s) {
5450
5546
  message: `DOM capture stopped descending at depth ${a}.`,
5451
5547
  limit: a,
5452
5548
  actual: n
5453
- }), L;
5454
- for (const Ie of Array.from(t.childNodes)) {
5549
+ }), F;
5550
+ for (const Pe of Array.from(t.childNodes)) {
5455
5551
  if (r.count >= o) {
5456
5552
  Dn(r, {
5457
5553
  severity: "warning",
@@ -5463,11 +5559,11 @@ function fo(t, e, n, r, i, s) {
5463
5559
  });
5464
5560
  break;
5465
5561
  }
5466
- if (Ie.nodeType === Node.TEXT_NODE) {
5467
- const Me = (Ie.textContent ?? "").replace(/\s+/g, " ").trim();
5562
+ if (Pe.nodeType === Node.TEXT_NODE) {
5563
+ const Me = (Pe.textContent ?? "").replace(/\s+/g, " ").trim();
5468
5564
  if (!Me) continue;
5469
- r.count += 1, r.maxDepth = Math.max(r.maxDepth, n + 1), L.children.push(
5470
- Lt("text", {
5565
+ r.count += 1, r.maxDepth = Math.max(r.maxDepth, n + 1), F.children.push(
5566
+ Ft("text", {
5471
5567
  name: "text",
5472
5568
  text: Me,
5473
5569
  fontSize: Oe(u.fontSize) || 14,
@@ -5477,12 +5573,12 @@ function fo(t, e, n, r, i, s) {
5477
5573
  domTag: "#text"
5478
5574
  })
5479
5575
  );
5480
- } else if (Ie.nodeType === Node.ELEMENT_NODE) {
5481
- const Me = fo(Ie, d, n + 1, r, i, s);
5482
- Me && L.children.push(Me);
5576
+ } else if (Pe.nodeType === Node.ELEMENT_NODE) {
5577
+ const Me = go(Pe, d, n + 1, r, i, s);
5578
+ Me && F.children.push(Me);
5483
5579
  }
5484
5580
  }
5485
- return L;
5581
+ return F;
5486
5582
  }
5487
5583
  function $r(t, e, n = {}) {
5488
5584
  const r = {
@@ -5491,7 +5587,7 @@ function $r(t, e, n = {}) {
5491
5587
  maxDepth: 0,
5492
5588
  diagnostics: [],
5493
5589
  diagnosticCodes: /* @__PURE__ */ new Set()
5494
- }, i = (t.parentElement ?? t).getBoundingClientRect(), s = fo(t, i, 0, r, e, n);
5590
+ }, i = (t.parentElement ?? t).getBoundingClientRect(), s = go(t, i, 0, r, e, n);
5495
5591
  return s ? {
5496
5592
  root: s,
5497
5593
  count: r.count,
@@ -5515,7 +5611,7 @@ function Mi(t, e = {}) {
5515
5611
  function Ci(t) {
5516
5612
  return (t ?? "").replace(/\s+/g, " ").trim();
5517
5613
  }
5518
- function Tl(t, e) {
5614
+ function jl(t, e) {
5519
5615
  const n = e.selector ?? 'button,a,input,textarea,select,[role="button"],[role="tab"],[role="menuitem"],[role="option"]';
5520
5616
  let r;
5521
5617
  try {
@@ -5534,7 +5630,7 @@ function Tl(t, e) {
5534
5630
  (a) => e.exact ? a === i : a.includes(i)
5535
5631
  ));
5536
5632
  }
5537
- function Dl(t) {
5633
+ function Fl(t) {
5538
5634
  const e = t.ownerDocument, n = t.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2;
5539
5635
  let s = null;
5540
5636
  try {
@@ -5545,7 +5641,7 @@ function Dl(t) {
5545
5641
  return { receiver: s && t.contains(s) ? s : t, x: r, y: i };
5546
5642
  }
5547
5643
  function Ti(t, e) {
5548
- const { receiver: n, x: r, y: i } = Dl(t), s = {
5644
+ const { receiver: n, x: r, y: i } = Fl(t), s = {
5549
5645
  bubbles: !0,
5550
5646
  cancelable: !0,
5551
5647
  composed: !0,
@@ -5580,7 +5676,7 @@ function Di(t, e) {
5580
5676
  }
5581
5677
  return e;
5582
5678
  }
5583
- function $l(t, e) {
5679
+ function Ll(t, e) {
5584
5680
  var i;
5585
5681
  const n = t instanceof t.ownerDocument.defaultView.HTMLTextAreaElement ? t.ownerDocument.defaultView.HTMLTextAreaElement.prototype : t.ownerDocument.defaultView.HTMLInputElement.prototype, r = (i = Object.getOwnPropertyDescriptor(n, "value")) == null ? void 0 : i.set;
5586
5682
  r == null || r.call(t, e), t.dispatchEvent(new t.ownerDocument.defaultView.Event("input", { bubbles: !0 })), t.dispatchEvent(new t.ownerDocument.defaultView.Event("change", { bubbles: !0 }));
@@ -5630,7 +5726,7 @@ function $i(t) {
5630
5726
  }
5631
5727
  return !0;
5632
5728
  }
5633
- function Rl(t) {
5729
+ function kl(t) {
5634
5730
  const e = t.ownerDocument, n = e.defaultView;
5635
5731
  if (!n || typeof e.elementFromPoint != "function") return !1;
5636
5732
  const r = t.getBoundingClientRect(), i = r.left + r.width / 2, s = r.top + r.height / 2;
@@ -5639,8 +5735,8 @@ function Rl(t) {
5639
5735
  const o = e.elementFromPoint(i, s);
5640
5736
  return !!(o && (o === t || t.contains(o)));
5641
5737
  }
5642
- function jl(t, e) {
5643
- return e === "focus" ? Rr(t) && $i(t) && "focus" in t : !(!yn(t) || !$i(t) || !Rl(t) || e === "fill" && "readOnly" in t && t.readOnly);
5738
+ function zl(t, e) {
5739
+ return e === "focus" ? Rr(t) && $i(t) && "focus" in t : !(!yn(t) || !$i(t) || !kl(t) || e === "fill" && "readOnly" in t && t.readOnly);
5644
5740
  }
5645
5741
  async function Ri(t, e, n) {
5646
5742
  const r = Date.now(), i = e.timeoutMs ?? 5e3;
@@ -5651,8 +5747,8 @@ async function Ri(t, e, n) {
5651
5747
  } catch {
5652
5748
  return null;
5653
5749
  }
5654
- const a = (s ? Tl(s, e) : [])[e.index ?? 0];
5655
- if (a && (n === "attached" ? Rr(a) : n === "visible" ? yn(a) : jl(a, e.action)))
5750
+ const a = (s ? jl(s, e) : [])[e.index ?? 0];
5751
+ if (a && (n === "attached" ? Rr(a) : n === "visible" ? yn(a) : zl(a, e.action)))
5656
5752
  return a;
5657
5753
  const c = i - (Date.now() - r);
5658
5754
  if (c <= 0) break;
@@ -5732,7 +5828,7 @@ async function cr(t, e) {
5732
5828
  failedLabel: r.label,
5733
5829
  error: `"${r.label}"Step is not an input element.`
5734
5830
  };
5735
- $l(i, r.value ?? "");
5831
+ Ll(i, r.value ?? "");
5736
5832
  } else if (r.action === "check") {
5737
5833
  if (!(i instanceof s.HTMLInputElement))
5738
5834
  return {
@@ -5751,13 +5847,13 @@ async function cr(t, e) {
5751
5847
  }
5752
5848
  return { complete: !0, completed: n, total: e.length };
5753
5849
  }
5754
- const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5850
+ const ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5755
5851
  __proto__: null,
5756
5852
  elementVisible: yn,
5757
5853
  runScreenInteractions: cr,
5758
5854
  settleScreen: ot
5759
5855
  }, Symbol.toStringTag, { value: "Module" })), nt = ["icons", "design-tokens", "atoms", "components", "screens"];
5760
- function Ll(t) {
5856
+ function Vl(t) {
5761
5857
  if (!(!t || t.complete))
5762
5858
  throw new Error(
5763
5859
  t.error ?? `The screen recipe did not complete${t.failedLabel ? ` at "${t.failedLabel}"` : ""}.`
@@ -5769,7 +5865,7 @@ const ji = {
5769
5865
  atoms: "🧩 Atoms",
5770
5866
  components: "🧩 Components",
5771
5867
  screens: "🖥️ Screens"
5772
- }, Fl = {
5868
+ }, Bl = {
5773
5869
  instanceMode: "expand",
5774
5870
  mediaMode: "layers",
5775
5871
  includeHidden: !0,
@@ -5783,7 +5879,7 @@ function Re(t) {
5783
5879
  e.has(r) && n.add(r), e.add(r);
5784
5880
  return [...n];
5785
5881
  }
5786
- function ho(t) {
5882
+ function vo(t) {
5787
5883
  const e = t.map((r) => r.id.trim()), n = [
5788
5884
  ...Re(e).map((r) => `Duplicate viewport ID: ${r}`)
5789
5885
  ];
@@ -5794,8 +5890,8 @@ function ho(t) {
5794
5890
  ${n.join(`
5795
5891
  `)}`);
5796
5892
  }
5797
- function kl(t, e, n = {}) {
5798
- ho(e);
5893
+ function Kl(t, e, n = {}) {
5894
+ vo(e);
5799
5895
  const r = e.flatMap(
5800
5896
  (s) => t.filter((o) => {
5801
5897
  var a;
@@ -5826,9 +5922,9 @@ function kl(t, e, n = {}) {
5826
5922
  );
5827
5923
  return r;
5828
5924
  }
5829
- function zl(t, e, n = {}) {
5925
+ function Hl(t, e, n = {}) {
5830
5926
  var l, d, f, h, v;
5831
- if (ho(e), e.length === 0)
5927
+ if (vo(e), e.length === 0)
5832
5928
  return {
5833
5929
  ...t,
5834
5930
  assets: t.assets.map((p) => ({ ...p })),
@@ -5855,11 +5951,11 @@ function zl(t, e, n = {}) {
5855
5951
  heightMode: p.heightMode ?? (S == null ? void 0 : S.heightMode) ?? g.heightMode,
5856
5952
  maxHeight: p.maxHeight ?? (S == null ? void 0 : S.maxHeight) ?? g.maxHeight
5857
5953
  });
5858
- for (const I of r.get(g.id) ?? [])
5954
+ for (const P of r.get(g.id) ?? [])
5859
5955
  s.push({
5860
- ...I,
5861
- id: `${I.id}:viewport:${p.id}`,
5862
- name: `${I.name} · ${p.label}`,
5956
+ ...P,
5957
+ id: `${P.id}:viewport:${p.id}`,
5958
+ name: `${P.name} · ${p.label}`,
5863
5959
  section: w,
5864
5960
  pageId: m
5865
5961
  });
@@ -5880,7 +5976,7 @@ function zl(t, e, n = {}) {
5880
5976
  expectedCount: s.length
5881
5977
  };
5882
5978
  }
5883
- function Vl({
5979
+ function Ul({
5884
5980
  cases: t,
5885
5981
  scenarios: e,
5886
5982
  behaviorScenarios: n = [],
@@ -5892,10 +5988,10 @@ function Vl({
5892
5988
  var E, w;
5893
5989
  return {
5894
5990
  ...m,
5895
- preset: r != null && r.preset || m.preset ? mo(r == null ? void 0 : r.preset, m.preset) : void 0,
5991
+ preset: r != null && r.preset || m.preset ? yo(r == null ? void 0 : r.preset, m.preset) : void 0,
5896
5992
  assertions: (E = r == null ? void 0 : r.assertions) != null && E.length || (w = m.assertions) != null && w.length ? [
5897
- ...((r == null ? void 0 : r.assertions) ?? []).map(Fi),
5898
- ...(m.assertions ?? []).map(Fi)
5993
+ ...((r == null ? void 0 : r.assertions) ?? []).map(Li),
5994
+ ...(m.assertions ?? []).map(Li)
5899
5995
  ] : void 0
5900
5996
  };
5901
5997
  }), o = e.map((m) => m.id), a = new Set(o), c = s.map((m) => m.id), u = [
@@ -5973,8 +6069,8 @@ function Vl({
5973
6069
  sourcePath: m,
5974
6070
  codeName: E,
5975
6071
  coverageRoutes: w,
5976
- ...I
5977
- }) => I
6072
+ ...P
6073
+ }) => P
5978
6074
  )
5979
6075
  },
5980
6076
  coverage: {
@@ -6000,38 +6096,38 @@ function sn(t, e = /* @__PURE__ */ new Set()) {
6000
6096
  function wt(t) {
6001
6097
  return JSON.parse(JSON.stringify(t));
6002
6098
  }
6003
- function Li(t) {
6099
+ function Fi(t) {
6004
6100
  return t !== null && typeof t == "object" && !Array.isArray(t);
6005
6101
  }
6006
- function po(t, e) {
6007
- if (!Li(t) || !Li(e))
6102
+ function bo(t, e) {
6103
+ if (!Fi(t) || !Fi(e))
6008
6104
  return JSON.parse(JSON.stringify(e));
6009
6105
  const n = {
6010
6106
  ...wt(t)
6011
6107
  };
6012
6108
  for (const [r, i] of Object.entries(e))
6013
- n[r] = r in n ? po(n[r], i) : JSON.parse(JSON.stringify(i));
6109
+ n[r] = r in n ? bo(n[r], i) : JSON.parse(JSON.stringify(i));
6014
6110
  return n;
6015
6111
  }
6016
- function mo(t, e) {
6017
- return t ? e ? po(t, e) : wt(t) : e ? wt(e) : {};
6112
+ function yo(t, e) {
6113
+ return t ? e ? bo(t, e) : wt(t) : e ? wt(e) : {};
6018
6114
  }
6019
- function Fi(t) {
6115
+ function Li(t) {
6020
6116
  return {
6021
6117
  ...t,
6022
6118
  attribute: t.attribute ? { ...t.attribute } : void 0
6023
6119
  };
6024
6120
  }
6025
- function Bl(t = 0) {
6121
+ function Wl(t = 0) {
6026
6122
  return { complete: t === 0, completed: 0, total: t };
6027
6123
  }
6028
- function Kl(t = 0) {
6124
+ function Gl(t = 0) {
6029
6125
  return { complete: t === 0, completed: 0, total: t, failures: [] };
6030
6126
  }
6031
- function Hl(t) {
6127
+ function ql(t) {
6032
6128
  return "value" in t ? ur(String(t.value ?? "")) : ur(t.textContent);
6033
6129
  }
6034
- function Ul(t, e, n) {
6130
+ function Xl(t, e, n) {
6035
6131
  let r;
6036
6132
  try {
6037
6133
  r = [...t.querySelectorAll(e.selector)];
@@ -6059,7 +6155,7 @@ function Ul(t, e, n) {
6059
6155
  };
6060
6156
  if (!i) return null;
6061
6157
  if (e.text != null) {
6062
- const o = ur(e.text), a = Hl(i);
6158
+ const o = ur(e.text), a = ql(i);
6063
6159
  if (!(e.exact ? a === o : a.includes(o)))
6064
6160
  return {
6065
6161
  stage: "assertion",
@@ -6102,7 +6198,7 @@ function Ul(t, e, n) {
6102
6198
  }
6103
6199
  return null;
6104
6200
  }
6105
- async function Wl(t, e) {
6201
+ async function Yl(t, e) {
6106
6202
  const n = [];
6107
6203
  let r = 0;
6108
6204
  for (const [i, s] of e.entries()) {
@@ -6114,7 +6210,7 @@ async function Wl(t, e) {
6114
6210
  u = t.contentDocument;
6115
6211
  } catch {
6116
6212
  }
6117
- if (c = u ? Ul(u, s, i) : {
6213
+ if (c = u ? Xl(u, s, i) : {
6118
6214
  stage: "assertion",
6119
6215
  code: "existence_mismatch",
6120
6216
  label: s.label,
@@ -6135,9 +6231,9 @@ async function Wl(t, e) {
6135
6231
  failures: n
6136
6232
  };
6137
6233
  }
6138
- function Gl(t, e = {}) {
6234
+ function Jl(t, e = {}) {
6139
6235
  const n = t.registry, r = [...t.tokens], i = Vs(n), o = {
6140
- ...Fl,
6236
+ ...Bl,
6141
6237
  collapseInstance: (u) => {
6142
6238
  const l = n[u.name];
6143
6239
  return l != null && l.collapsible === !0 && Object.keys(l.props ?? {}).length > 0 && l.children !== "nodes";
@@ -6264,24 +6360,24 @@ ${u.join(`
6264
6360
  if (!(p != null && p.body) || !g) return null;
6265
6361
  const S = Date.now();
6266
6362
  let m = Date.now(), E = p.body.querySelectorAll("*").length;
6267
- const w = g.MutationObserver, I = new w(() => {
6363
+ const w = g.MutationObserver, P = new w(() => {
6268
6364
  m = Date.now(), E = p.body.querySelectorAll("*").length;
6269
6365
  });
6270
- I.observe(p.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
6366
+ P.observe(p.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
6271
6367
  try {
6272
6368
  await new Promise((M) => {
6273
- const L = () => {
6369
+ const F = () => {
6274
6370
  const Se = Date.now(), Y = p.body.querySelectorAll("*").length;
6275
6371
  if (Y !== E && (E = Y, m = Se), Y >= h && Se - m >= d || Se - S >= f) {
6276
6372
  M();
6277
6373
  return;
6278
6374
  }
6279
- g.setTimeout(L, 100);
6375
+ g.setTimeout(F, 100);
6280
6376
  };
6281
- g.setTimeout(L, 100);
6377
+ g.setTimeout(F, 100);
6282
6378
  });
6283
6379
  } finally {
6284
- I.disconnect();
6380
+ P.disconnect();
6285
6381
  }
6286
6382
  try {
6287
6383
  await ((C = p.fonts) == null ? void 0 : C.ready), await new Promise((M) => {
@@ -6329,13 +6425,13 @@ ${u.join(`
6329
6425
  message: `An error occurred while applying the screen preset:${String(m).slice(0, 160)}`
6330
6426
  });
6331
6427
  }
6332
- let h = Bl(((g = l.interactions) == null ? void 0 : g.length) ?? 0), v = Kl(((S = l.assertions) == null ? void 0 : S.length) ?? 0);
6428
+ let h = Wl(((g = l.interactions) == null ? void 0 : g.length) ?? 0), v = Gl(((S = l.assertions) == null ? void 0 : S.length) ?? 0);
6333
6429
  d.length === 0 && (h = await cr(u, l.interactions ?? []), h.complete || d.push({
6334
6430
  stage: "interaction",
6335
6431
  code: "interaction_failed",
6336
6432
  label: h.failedLabel,
6337
6433
  message: h.error ?? "Couldn't reproduce the user flow."
6338
- })), d.length === 0 && (v = await Wl(u, l.assertions ?? []), d.push(...v.failures));
6434
+ })), d.length === 0 && (v = await Yl(u, l.assertions ?? []), d.push(...v.failures));
6339
6435
  const p = d[0];
6340
6436
  return {
6341
6437
  complete: d.length === 0,
@@ -6349,26 +6445,26 @@ ${u.join(`
6349
6445
  }
6350
6446
  };
6351
6447
  }
6352
- let go = null;
6353
- function ql(t) {
6354
- go = t;
6448
+ let _o = null;
6449
+ function Zl(t) {
6450
+ _o = t;
6355
6451
  }
6356
6452
  function on() {
6357
- return go;
6453
+ return _o;
6358
6454
  }
6359
- const Yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6455
+ const sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6360
6456
  __proto__: null,
6361
6457
  DESIGN_IMPORT_KINDS: nt,
6362
- assertScreenCaptureComplete: Ll,
6363
- createDesignImportController: Gl,
6364
- createDesignScreenCollection: Vl,
6365
- expandDesignScreenCasesViewports: kl,
6366
- expandDesignScreenCollectionViewports: zl,
6458
+ assertScreenCaptureComplete: Vl,
6459
+ createDesignImportController: Jl,
6460
+ createDesignScreenCollection: Ul,
6461
+ expandDesignScreenCasesViewports: Kl,
6462
+ expandDesignScreenCollectionViewports: Hl,
6367
6463
  getDesignImportController: on,
6368
- mergeScreenPresets: mo,
6369
- setDesignImportController: ql
6464
+ mergeScreenPresets: yo,
6465
+ setDesignImportController: Zl
6370
6466
  }, Symbol.toStringTag, { value: "Module" }));
6371
- function vo() {
6467
+ function So() {
6372
6468
  return (t, e) => {
6373
6469
  const n = t.getAttribute("data-pygmalion-source-component"), r = t.getAttribute("data-pygmalion-source-component-name");
6374
6470
  return !n || !r || e != null && e.has(r) ? null : {
@@ -6388,16 +6484,16 @@ function vo() {
6388
6484
  };
6389
6485
  };
6390
6486
  }
6391
- function bo(t) {
6487
+ function wo(t) {
6392
6488
  const e = t.getAttribute("data-pygmalion-source-style");
6393
6489
  if (e) return e;
6394
6490
  const n = bn(t);
6395
6491
  return n ? `${n.file}#${n.localName}` : "";
6396
6492
  }
6397
- function yo(t) {
6493
+ function Oo(t) {
6398
6494
  return t.querySelector('body[data-pygmalion-source-stamped="1"]') != null;
6399
6495
  }
6400
- function Xl(t) {
6496
+ function Ql(t) {
6401
6497
  for (const e of Array.from(t.children))
6402
6498
  if (e.tagName.toLowerCase() === "html") {
6403
6499
  for (const n of Array.from(e.children))
@@ -6405,14 +6501,14 @@ function Xl(t) {
6405
6501
  }
6406
6502
  return null;
6407
6503
  }
6408
- function Yl(t) {
6504
+ function ed(t) {
6409
6505
  var e;
6410
6506
  return t.bodyAttributes != null ? t.bodyAttributes.includes("data-pygmalion-source-stamped") : ((e = t.snapshotHtml) == null ? void 0 : e.includes("data-pygmalion-source-stamped")) ?? !1;
6411
6507
  }
6412
- function _o(t) {
6508
+ function Eo(t) {
6413
6509
  return t < 12 ? 1 : Math.max(3, Math.floor(t * 0.25));
6414
6510
  }
6415
- function Jl(t, e = 600) {
6511
+ function td(t, e = 600) {
6416
6512
  if (!t) return 0;
6417
6513
  let n = 0;
6418
6514
  for (let r = t.indexOf("<"); r !== -1 && n < e; r = t.indexOf("<", r + 1)) {
@@ -6421,7 +6517,7 @@ function Jl(t, e = 600) {
6421
6517
  }
6422
6518
  return n;
6423
6519
  }
6424
- function Zl(t, e = 600) {
6520
+ function nd(t, e = 600) {
6425
6521
  let n = 0;
6426
6522
  const r = [t];
6427
6523
  for (; r.length > 0 && n < e; ) {
@@ -6430,9 +6526,9 @@ function Zl(t, e = 600) {
6430
6526
  }
6431
6527
  return n;
6432
6528
  }
6433
- function So(t, e = {}) {
6434
- const n = Xl(t.root);
6435
- if (!n || !yo(t.root)) return null;
6529
+ function xo(t, e = {}) {
6530
+ const n = Ql(t.root);
6531
+ if (!n || !Oo(t.root)) return null;
6436
6532
  const r = n.ownerDocument.defaultView;
6437
6533
  if (!r || typeof n.checkVisibility == "function" && !n.checkVisibility({ contentVisibilityAuto: !0 }))
6438
6534
  return null;
@@ -6440,16 +6536,16 @@ function So(t, e = {}) {
6440
6536
  if (!i) return null;
6441
6537
  const s = i.captureElement(n, r, {
6442
6538
  ...e,
6443
- resolveInstance: vo(),
6444
- resolveSourceStyle: bo
6539
+ resolveInstance: So(),
6540
+ resolveSourceStyle: wo
6445
6541
  });
6446
- return !s || s.count < _o(Zl(n)) ? null : (s.root.widthMode = "fill", s.root.name = "Page", s.root.fill || (s.root.fill = "#ffffff"), s);
6542
+ return !s || s.count < Eo(nd(n)) ? null : (s.root.widthMode = "fill", s.root.name = "Page", s.root.fill || (s.root.fill = "#ffffff"), s);
6447
6543
  }
6448
- function Ql(t) {
6544
+ function rd(t) {
6449
6545
  return !t.editedSinceImport;
6450
6546
  }
6451
6547
  const Kt = /* @__PURE__ */ new Map();
6452
- function ed(t, e, n = {}) {
6548
+ function id(t, e, n = {}) {
6453
6549
  const r = {
6454
6550
  handle: e,
6455
6551
  stale: n.stale === !0
@@ -6458,132 +6554,132 @@ function ed(t, e, n = {}) {
6458
6554
  Kt.get(t) === r && Kt.delete(t);
6459
6555
  };
6460
6556
  }
6461
- function wo(t) {
6557
+ function Ao(t) {
6462
6558
  const e = Kt.get(t);
6463
6559
  return !e || e.stale ? null : e.handle;
6464
6560
  }
6465
- const Jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6561
+ const oh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6466
6562
  __proto__: null,
6467
- countMarkupElements: Jl,
6468
- createStampedInstanceResolver: vo,
6469
- frozenSnapshotStamped: Yl,
6470
- getMountedShadowPreviewHandle: wo,
6471
- importCountFloor: _o,
6472
- importDomFromShadowPreview: So,
6473
- isStampedFrozenPreview: yo,
6474
- registerMountedShadowPreview: ed,
6475
- resolveStampedSourceStyle: bo,
6476
- shouldSwapLiveImport: Ql
6563
+ countMarkupElements: td,
6564
+ createStampedInstanceResolver: So,
6565
+ frozenSnapshotStamped: ed,
6566
+ getMountedShadowPreviewHandle: Ao,
6567
+ importCountFloor: Eo,
6568
+ importDomFromShadowPreview: xo,
6569
+ isStampedFrozenPreview: Oo,
6570
+ registerMountedShadowPreview: id,
6571
+ resolveStampedSourceStyle: wo,
6572
+ shouldSwapLiveImport: rd
6477
6573
  }, Symbol.toStringTag, { value: "Module" }));
6478
6574
  let lr = "";
6479
6575
  const dr = /* @__PURE__ */ new Set();
6480
6576
  let fr = "";
6481
6577
  const hr = /* @__PURE__ */ new Set();
6482
- let Oo = null, Eo = null, xo = null, Ao = null, No = null, Po = null;
6483
- function td(t) {
6578
+ let No = null, Io = null, Po = null, Mo = null, Co = null, To = null;
6579
+ function sd(t) {
6484
6580
  if (lr !== t) {
6485
6581
  lr = t;
6486
6582
  for (const e of dr) e();
6487
6583
  }
6488
6584
  }
6489
- function Io() {
6585
+ function Do() {
6490
6586
  return lr;
6491
6587
  }
6492
- function nd(t) {
6588
+ function od(t) {
6493
6589
  return dr.add(t), () => dr.delete(t);
6494
6590
  }
6495
- function rd(t) {
6591
+ function ad(t) {
6496
6592
  if (fr !== t) {
6497
6593
  fr = t;
6498
6594
  for (const e of hr) e();
6499
6595
  }
6500
6596
  }
6501
- function Mo() {
6597
+ function $o() {
6502
6598
  return fr;
6503
6599
  }
6504
- function id(t) {
6600
+ function cd(t) {
6505
6601
  return hr.add(t), () => hr.delete(t);
6506
6602
  }
6507
- let Co = "";
6508
- function sd(t) {
6509
- Co = t;
6603
+ let Ro = "";
6604
+ function ud(t) {
6605
+ Ro = t;
6510
6606
  }
6511
6607
  function pr() {
6512
- return Co;
6513
- }
6514
- let To = "bitmap";
6515
- function od(t) {
6516
- To = t;
6517
- }
6518
- function ad() {
6519
- return To;
6520
- }
6521
- function cd(t) {
6522
- Oo = t;
6523
- }
6524
- function ud() {
6525
- return Oo;
6608
+ return Ro;
6526
6609
  }
6610
+ let jo = "bitmap";
6527
6611
  function ld(t) {
6528
- Eo = t;
6612
+ jo = t;
6529
6613
  }
6530
6614
  function dd() {
6531
- return Eo;
6615
+ return jo;
6532
6616
  }
6533
6617
  function fd(t) {
6534
- xo = t;
6618
+ No = t;
6535
6619
  }
6536
6620
  function hd() {
6537
- return xo;
6621
+ return No;
6538
6622
  }
6539
6623
  function pd(t) {
6540
- Ao = t;
6624
+ Io = t;
6541
6625
  }
6542
6626
  function md() {
6543
- return Ao;
6627
+ return Io;
6544
6628
  }
6545
6629
  function gd(t) {
6546
- No = t;
6630
+ Po = t;
6547
6631
  }
6548
6632
  function vd() {
6549
- return No;
6633
+ return Po;
6550
6634
  }
6551
6635
  function bd(t) {
6552
- Po = t;
6636
+ Mo = t;
6637
+ }
6638
+ function yd() {
6639
+ return Mo;
6640
+ }
6641
+ function _d(t) {
6642
+ Co = t;
6643
+ }
6644
+ function Sd() {
6645
+ return Co;
6646
+ }
6647
+ function wd(t) {
6648
+ To = t;
6553
6649
  }
6554
6650
  function mr() {
6555
- return Po;
6651
+ return To;
6556
6652
  }
6557
- const Zf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6653
+ const ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6558
6654
  __proto__: null,
6559
- getAppOrigin: Io,
6655
+ getAppOrigin: Do,
6560
6656
  getFlowCanvas: pr,
6561
- getOnApply: ud,
6562
- getOnDesignChange: vd,
6563
- getOnInspectApply: dd,
6564
- getOnInspectImpact: md,
6565
- getOnInspectPreview: hd,
6657
+ getOnApply: hd,
6658
+ getOnDesignChange: Sd,
6659
+ getOnInspectApply: md,
6660
+ getOnInspectImpact: yd,
6661
+ getOnInspectPreview: vd,
6566
6662
  getOnPreviewOpenChange: mr,
6567
- getPreviewRevision: Mo,
6568
- getStaticFrameSurface: ad,
6569
- setAppOrigin: td,
6570
- setFlowCanvas: sd,
6571
- setOnApply: cd,
6572
- setOnDesignChange: gd,
6573
- setOnInspectApply: ld,
6574
- setOnInspectImpact: pd,
6575
- setOnInspectPreview: fd,
6576
- setOnPreviewOpenChange: bd,
6577
- setPreviewRevision: rd,
6578
- setStaticFrameSurface: od,
6579
- subscribeAppOrigin: nd,
6580
- subscribePreviewRevision: id
6663
+ getPreviewRevision: $o,
6664
+ getStaticFrameSurface: dd,
6665
+ setAppOrigin: sd,
6666
+ setFlowCanvas: ud,
6667
+ setOnApply: fd,
6668
+ setOnDesignChange: _d,
6669
+ setOnInspectApply: pd,
6670
+ setOnInspectImpact: bd,
6671
+ setOnInspectPreview: gd,
6672
+ setOnPreviewOpenChange: wd,
6673
+ setPreviewRevision: ad,
6674
+ setStaticFrameSurface: ld,
6675
+ subscribeAppOrigin: od,
6676
+ subscribePreviewRevision: cd
6581
6677
  }, Symbol.toStringTag, { value: "Module" }));
6582
- function Do(t) {
6678
+ function Fo(t) {
6583
6679
  var n;
6584
6680
  return ((n = t.importPageId) == null ? void 0 : n.trim()) || t.id;
6585
6681
  }
6586
- const yd = /* @__PURE__ */ new Set([
6682
+ const Od = /* @__PURE__ */ new Set([
6587
6683
  "background-color",
6588
6684
  "border-color",
6589
6685
  "border-radius",
@@ -6609,25 +6705,25 @@ const yd = /* @__PURE__ */ new Set([
6609
6705
  "padding-top",
6610
6706
  "row-gap",
6611
6707
  "text-align"
6612
- ]), _d = {
6708
+ ]), Ed = {
6613
6709
  start: "flex-start",
6614
6710
  center: "center",
6615
6711
  end: "flex-end",
6616
6712
  between: "space-between"
6617
- }, Sd = {
6713
+ }, xd = {
6618
6714
  start: "flex-start",
6619
6715
  center: "center",
6620
6716
  end: "flex-end"
6621
- }, $o = {
6717
+ }, Lo = {
6622
6718
  gap: { cssProp: "gap", read: (t) => `${t.gap}px` },
6623
6719
  padding: { cssProp: "padding", read: (t) => `${t.padding}px` },
6624
6720
  justify: {
6625
6721
  cssProp: "justify-content",
6626
- read: (t) => _d[t.justify]
6722
+ read: (t) => Ed[t.justify]
6627
6723
  },
6628
6724
  alignItems: {
6629
6725
  cssProp: "align-items",
6630
- read: (t) => Sd[t.alignItems]
6726
+ read: (t) => xd[t.alignItems]
6631
6727
  },
6632
6728
  fill: { cssProp: "background-color", read: (t) => t.fill },
6633
6729
  radius: { cssProp: "border-radius", read: (t) => `${t.radius}px` },
@@ -6642,7 +6738,7 @@ const yd = /* @__PURE__ */ new Set([
6642
6738
  function an(t) {
6643
6739
  return `${t.componentFile}|${t.sourceStart}|${t.elementName}`;
6644
6740
  }
6645
- function wd(t) {
6741
+ function Ad(t) {
6646
6742
  if (!t || t.includes("\0") || t.includes(`
6647
6743
  `) || t.includes("\r")) return null;
6648
6744
  const e = t.lastIndexOf("#");
@@ -6672,18 +6768,18 @@ function jn(t, e, n) {
6672
6768
  }
6673
6769
  return null;
6674
6770
  }
6675
- function Ln(t, e, n, r, i, s = "call-site") {
6771
+ function Fn(t, e, n, r, i, s = "call-site") {
6676
6772
  const o = [];
6677
6773
  for (const a of t) {
6678
6774
  let c = !1;
6679
6775
  jr(a.root, null, null, i, (u, l, d) => {
6680
6776
  const f = s === "own" ? d : l;
6681
6777
  return r === "instance" && u.id === n || r === "shared-source" && f != null && an(f) === an(e) ? (c = !0, !0) : !1;
6682
- }), c && o.push({ id: Do(a), name: a.name });
6778
+ }), c && o.push({ id: Fo(a), name: a.name });
6683
6779
  }
6684
6780
  return o;
6685
6781
  }
6686
- function Od(...t) {
6782
+ function Nd(...t) {
6687
6783
  const e = /* @__PURE__ */ new Map();
6688
6784
  for (const n of t)
6689
6785
  for (const r of n)
@@ -6692,15 +6788,15 @@ function Od(...t) {
6692
6788
  }
6693
6789
  function ki(t, e) {
6694
6790
  var n;
6695
- return t.modelField.startsWith("domStyle:") ? e.domStyle[t.modelField.slice(9)] ?? "" : ((n = $o[t.modelField]) == null ? void 0 : n.read(e)) ?? t.from;
6791
+ return t.modelField.startsWith("domStyle:") ? e.domStyle[t.modelField.slice(9)] ?? "" : ((n = Lo[t.modelField]) == null ? void 0 : n.read(e)) ?? t.from;
6696
6792
  }
6697
- function Ft(t) {
6793
+ function Lt(t) {
6698
6794
  return typeof t == "string" || typeof t == "boolean" || typeof t == "number" && Number.isFinite(t);
6699
6795
  }
6700
- function Ed(t) {
6796
+ function Id(t) {
6701
6797
  return typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
6702
6798
  }
6703
- class xd {
6799
+ class Pd {
6704
6800
  constructor(e) {
6705
6801
  b(this, "baselines", /* @__PURE__ */ new Map());
6706
6802
  b(this, "parseIdentity");
@@ -6728,7 +6824,7 @@ class xd {
6728
6824
  ...Object.keys(r.sourceProps)
6729
6825
  ])) {
6730
6826
  const l = (c = i.node.sourceProps) == null ? void 0 : c[u], d = r.sourceProps[u];
6731
- if (!Ft(l) || !Ft(d) || typeof l != typeof d || l === d)
6827
+ if (!Lt(l) || !Lt(d) || typeof l != typeof d || l === d)
6732
6828
  continue;
6733
6829
  const f = `prop:${an(i.ownIdentity)}:${u}`, h = this.baselines.get(f);
6734
6830
  (h == null ? void 0 : h.kind) === "prop" ? h.nodeId = n : this.baselines.set(f, {
@@ -6740,10 +6836,10 @@ class xd {
6740
6836
  from: l
6741
6837
  }), s = !0;
6742
6838
  }
6743
- const o = wd(i.node.sourceStyle), a = i.callSiteIdentity ?? i.ownIdentity;
6839
+ const o = Ad(i.node.sourceStyle), a = i.callSiteIdentity ?? i.ownIdentity;
6744
6840
  if (o && a) {
6745
6841
  for (const u of Object.keys(r)) {
6746
- const l = $o[u];
6842
+ const l = Lo[u];
6747
6843
  if (!l) continue;
6748
6844
  const d = `style:${o.file}#${o.className}:${l.cssProp}`, f = this.baselines.get(d);
6749
6845
  (f == null ? void 0 : f.kind) === "style" ? f.nodeId = n : this.baselines.set(d, {
@@ -6760,7 +6856,7 @@ class xd {
6760
6856
  if (r.domStyle && typeof r.domStyle == "object") {
6761
6857
  const u = i.node.domStyle, l = r.domStyle;
6762
6858
  for (const d of /* @__PURE__ */ new Set([...Object.keys(u), ...Object.keys(l)])) {
6763
- if (!yd.has(d)) continue;
6859
+ if (!Od.has(d)) continue;
6764
6860
  const f = `style:${o.file}#${o.className}:${d}`, h = this.baselines.get(f);
6765
6861
  (h == null ? void 0 : h.kind) === "style" ? h.nodeId = n : this.baselines.set(f, {
6766
6862
  kind: "style",
@@ -6803,7 +6899,7 @@ class xd {
6803
6899
  from: o.from,
6804
6900
  to: h,
6805
6901
  scope: c,
6806
- affectedFrames: Ln(
6902
+ affectedFrames: Fn(
6807
6903
  e,
6808
6904
  o.identity,
6809
6905
  o.nodeId,
@@ -6815,7 +6911,7 @@ class xd {
6815
6911
  }
6816
6912
  if (o.kind === "prop") {
6817
6913
  const h = (s = a.node.sourceProps) == null ? void 0 : s[o.prop];
6818
- if (!Ft(h) || typeof h != typeof o.from || h === o.from)
6914
+ if (!Lt(h) || typeof h != typeof o.from || h === o.from)
6819
6915
  continue;
6820
6916
  r.push({
6821
6917
  kind: "prop",
@@ -6823,9 +6919,9 @@ class xd {
6823
6919
  prop: o.prop,
6824
6920
  from: o.from,
6825
6921
  to: h,
6826
- valueType: Ed(o.from),
6922
+ valueType: Id(o.from),
6827
6923
  scope: c,
6828
- affectedFrames: Ln(
6924
+ affectedFrames: Fn(
6829
6925
  e,
6830
6926
  o.identity,
6831
6927
  o.nodeId,
@@ -6839,7 +6935,7 @@ class xd {
6839
6935
  if (c === "instance") continue;
6840
6936
  const u = ki(o, a.node);
6841
6937
  if (u === o.from) continue;
6842
- const l = `${o.source.file}#${o.source.className}`, d = Ln(
6938
+ const l = `${o.source.file}#${o.source.className}`, d = Fn(
6843
6939
  e,
6844
6940
  o.identity,
6845
6941
  o.nodeId,
@@ -6847,7 +6943,7 @@ class xd {
6847
6943
  this.parseIdentity
6848
6944
  );
6849
6945
  let f = i.get(l);
6850
- f ? f.affectedFrames = Od(
6946
+ f ? f.affectedFrames = Nd(
6851
6947
  f.affectedFrames,
6852
6948
  d
6853
6949
  ) : (f = {
@@ -6873,14 +6969,14 @@ class xd {
6873
6969
  s.from = o.node.text;
6874
6970
  else if (s.kind === "prop") {
6875
6971
  const a = (i = o.node.sourceProps) == null ? void 0 : i[s.prop];
6876
- Ft(a) && typeof a == typeof s.from && (s.from = a);
6972
+ Lt(a) && typeof a == typeof s.from && (s.from = a);
6877
6973
  } else
6878
6974
  s.from = ki(s, o.node);
6879
6975
  }
6880
6976
  return this.revision += 1, !0;
6881
6977
  }
6882
6978
  }
6883
- const Ad = [
6979
+ const Md = [
6884
6980
  "type",
6885
6981
  "widthMode",
6886
6982
  "width",
@@ -6906,7 +7002,7 @@ const Ad = [
6906
7002
  "childrenText",
6907
7003
  "domAttributes",
6908
7004
  "domStyle"
6909
- ], Nd = new Set(Ad), Pd = /* @__PURE__ */ new Set([
7005
+ ], Cd = new Set(Md), Td = /* @__PURE__ */ new Set([
6910
7006
  "data-state",
6911
7007
  "data-status",
6912
7008
  "data-selected",
@@ -6917,22 +7013,22 @@ const Ad = [
6917
7013
  "aria-expanded",
6918
7014
  "aria-selected"
6919
7015
  ]);
6920
- function Id(t) {
7016
+ function Dd(t) {
6921
7017
  return Array.isArray(t) ? [...t] : t && typeof t == "object" ? { ...t } : t;
6922
7018
  }
6923
- function Ro(t) {
7019
+ function ko(t) {
6924
7020
  const e = {};
6925
7021
  for (const n of Object.keys(t))
6926
- Nd.has(n) && (e[n] = Id(t[n]));
7022
+ Cd.has(n) && (e[n] = Dd(t[n]));
6927
7023
  return e;
6928
7024
  }
6929
7025
  function rt(t) {
6930
- return Ro(t);
7026
+ return ko(t);
6931
7027
  }
6932
- function Md(t) {
7028
+ function $d(t) {
6933
7029
  return Object.keys(t).length > 0;
6934
7030
  }
6935
- const Cd = /* @__PURE__ */ new Set([
7031
+ const Rd = /* @__PURE__ */ new Set([
6936
7032
  "alignContent",
6937
7033
  "alignItems",
6938
7034
  "alignSelf",
@@ -6956,22 +7052,22 @@ const Cd = /* @__PURE__ */ new Set([
6956
7052
  "rowGap",
6957
7053
  "textAlign"
6958
7054
  ]);
6959
- function Td(t) {
7055
+ function jd(t) {
6960
7056
  return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
6961
7057
  }
6962
- function Dd(t) {
7058
+ function Fd(t) {
6963
7059
  if (typeof t != "string" && typeof t != "number") return null;
6964
7060
  const e = String(t).trim();
6965
7061
  return !e || /[{};]/.test(e) || e.includes("</") ? null : e;
6966
7062
  }
6967
- function $d(t) {
7063
+ function Ld(t) {
6968
7064
  const e = {}, n = (r, i, s = "") => {
6969
- const o = Dd(i);
7065
+ const o = Fd(i);
6970
7066
  o != null && (e[r] = `${o}${s}`);
6971
7067
  };
6972
7068
  if (t.domStyle)
6973
7069
  for (const [r, i] of Object.entries(t.domStyle))
6974
- Cd.has(r) && n(Td(r), i);
7070
+ Rd.has(r) && n(jd(r), i);
6975
7071
  return t.type != null && (n("display", "flex"), n("flex-direction", t.type === "columns" ? "row" : "column")), t.widthMode != null ? n(
6976
7072
  "width",
6977
7073
  t.widthMode === "fixed" ? `${t.width ?? 200}px` : t.widthMode === "fit" ? "fit-content" : "100%"
@@ -6989,37 +7085,37 @@ function $d(t) {
6989
7085
  function ce(t) {
6990
7086
  return encodeURIComponent(t.trim().replace(/\s+/g, " "));
6991
7087
  }
6992
- function Rd(t) {
7088
+ function kd(t) {
6993
7089
  try {
6994
7090
  return new URL(t, "http://pygmalion.local").pathname.replace(/\/+$/, "") || "/";
6995
7091
  } catch {
6996
7092
  return t.split(/[?#]/, 1)[0].replace(/\/+$/, "") || "/";
6997
7093
  }
6998
7094
  }
6999
- function jd(t) {
7000
- if (t.route) return `route:${ce(Rd(t.route))}`;
7095
+ function zd(t) {
7096
+ if (t.route) return `route:${ce(kd(t.route))}`;
7001
7097
  const e = [...new Set((t.sourcePaths ?? []).filter(Boolean))].sort();
7002
7098
  return e.length ? `source:${e.map(ce).join("|")}` : `page:${ce(t.importPageId ?? t.id)}`;
7003
7099
  }
7004
- function Ld(t) {
7100
+ function Vd(t) {
7005
7101
  const e = t.domAttributes ?? {}, n = e["data-pygmalion-source"];
7006
7102
  if (n) return `explicit=${ce(n)}`;
7007
7103
  const r = [], i = (o) => {
7008
7104
  const a = e[o];
7009
- a && !Pd.has(o) && r.push(`${o}=${ce(a)}`);
7105
+ a && !Td.has(o) && r.push(`${o}=${ce(a)}`);
7010
7106
  };
7011
7107
  i("id"), i("data-testid"), i("data-card-key"), i("data-slot"), i("data-key"), i("name"), i("aria-label"), i("role");
7012
7108
  const s = t.domTag || (t.type === "text" ? "#text" : t.type);
7013
7109
  return r.length ? `${s}[${r.join("&")}]` : `${s}:${ce(t.name)}`;
7014
7110
  }
7015
7111
  function Ce(t, e) {
7016
- const n = jd(e), r = (i, s, o) => {
7112
+ const n = zd(e), r = (i, s, o) => {
7017
7113
  var f;
7018
7114
  const a = i.sourceComponent || (i.type === "component" ? i.componentName : ""), c = a ? i.componentName ? `component:${ce(a)}:${ce(i.componentName)}` : `component:${ce(a)}` : s, u = a ? "$" : o, l = (f = i.domAttributes) == null ? void 0 : f["data-pygmalion-source"];
7019
7115
  i.sourceKey = l ? `explicit:${ce(l)}` : i.sourceStyle ? `style:${ce(i.sourceStyle)}` : `${c}/${u}`;
7020
7116
  const d = /* @__PURE__ */ new Map();
7021
7117
  for (const h of i.children) {
7022
- const v = Ld(h), p = d.get(v) ?? 0;
7118
+ const v = Vd(h), p = d.get(v) ?? 0;
7023
7119
  d.set(v, p + 1), r(h, c, `${u}/${v}@${p}`);
7024
7120
  }
7025
7121
  };
@@ -7029,7 +7125,7 @@ function at(t, e) {
7029
7125
  e(t);
7030
7126
  for (const n of t.children) at(n, e);
7031
7127
  }
7032
- function Fd(t, e) {
7128
+ function Bd(t, e) {
7033
7129
  const n = [];
7034
7130
  let r = 0;
7035
7131
  if (!e) return { sourceKey: e, frames: n, nodeCount: r };
@@ -7037,7 +7133,7 @@ function Fd(t, e) {
7037
7133
  let s = !1;
7038
7134
  at(i.root, (o) => {
7039
7135
  o.sourceKey === e && (s = !0, r += 1);
7040
- }), s && n.push({ id: Do(i), name: i.name });
7136
+ }), s && n.push({ id: Fo(i), name: i.name });
7041
7137
  }
7042
7138
  return { sourceKey: e, frames: n, nodeCount: r };
7043
7139
  }
@@ -7050,40 +7146,40 @@ function mt(t, e) {
7050
7146
  function gr(t) {
7051
7147
  return (t ?? "").replaceAll("\\", "/").replace(/[?#].*$/, "").replace(/^\.\//, "").replace(/\/+/g, "/");
7052
7148
  }
7053
- function kd(t) {
7149
+ function Kd(t) {
7054
7150
  return t.domAttributes["data-pygmalion-catalog-item"] ?? t.domAttributes["data-pygmalion-catalog-component"] ?? "";
7055
7151
  }
7056
7152
  function zi(t, e) {
7057
7153
  return !t || !e ? !1 : t === e ? !0 : t.endsWith(`/${e.replace(/^\/+/, "")}`);
7058
7154
  }
7059
- function zd(t, e) {
7155
+ function Hd(t, e) {
7060
7156
  return !!(t && (t === e.id || t === e.name || t === e.codeName));
7061
7157
  }
7062
- function Vd(t) {
7158
+ function Ud(t) {
7063
7159
  var n;
7064
7160
  const e = t.domAttributes["data-pygmalion-own-source"] ?? t.domAttributes["data-pygmalion-source"];
7065
7161
  return gr((n = Nr(e)) == null ? void 0 : n.componentFile);
7066
7162
  }
7067
- function Bd(t, e) {
7163
+ function Wd(t, e) {
7068
7164
  var a;
7069
7165
  const n = gr(e.sourcePath), r = e.codeName ?? "", i = [];
7070
7166
  let s = 0;
7071
7167
  const o = (c, u) => {
7072
- const l = s++, d = zd(kd(c), e), f = u || d;
7168
+ const l = s++, d = Hd(Kd(c), e), f = u || d;
7073
7169
  let h = d ? 60 : u ? 30 : 0;
7074
- r && (c.name === r || c.componentName === r) && (h += 100), zi(Vd(c), n) && (h += 140), zi(gr(c.sourceComponent), n) && (h += 120), h > 0 && i.push({ node: c, score: h, order: l });
7170
+ r && (c.name === r || c.componentName === r) && (h += 100), zi(Ud(c), n) && (h += 140), zi(gr(c.sourceComponent), n) && (h += 120), h > 0 && i.push({ node: c, score: h, order: l });
7075
7171
  for (const v of c.children) o(v, f);
7076
7172
  };
7077
7173
  return o(t, !1), i.sort((c, u) => u.score - c.score || c.order - u.order), ((a = i[0]) == null ? void 0 : a.node) ?? null;
7078
7174
  }
7079
- function Kd(t, e, n) {
7175
+ function Gd(t, e, n) {
7080
7176
  return t.find(
7081
7177
  (r) => r.importKind === e && r.importPageId === n.pageId
7082
7178
  ) ?? null;
7083
7179
  }
7084
- const jo = (t) => t === "rows" || t === "columns", Vi = (t) => {
7180
+ const zo = (t) => t === "rows" || t === "columns", Vi = (t) => {
7085
7181
  var e;
7086
- return jo(t.type) || t.type === "component" && ((e = ae()[t.componentName]) == null ? void 0 : e.children) === "nodes";
7182
+ return zo(t.type) || t.type === "component" && ((e = ae()[t.componentName]) == null ? void 0 : e.children) === "nodes";
7087
7183
  }, Bi = {
7088
7184
  autoFocus: "autofocus"
7089
7185
  }, Ki = /* @__PURE__ */ new Set([
@@ -7095,10 +7191,10 @@ const jo = (t) => t === "rows" || t === "columns", Vi = (t) => {
7095
7191
  "required",
7096
7192
  "selected"
7097
7193
  ]);
7098
- let Hd = 0;
7194
+ let qd = 0;
7099
7195
  class R {
7100
7196
  constructor(e, n) {
7101
- b(this, "id", `n${++Hd}`);
7197
+ b(this, "id", `n${++qd}`);
7102
7198
  b(this, "type");
7103
7199
  b(this, "name");
7104
7200
  b(this, "children", []);
@@ -7147,7 +7243,7 @@ class R {
7147
7243
  b(this, "sourceProps", {});
7148
7244
  // Prototype — Page id to be taken to when clicked ('' = none). Operates only in preview mode.
7149
7245
  b(this, "linkTo", "");
7150
- this.type = e, this.name = { rows: "Rows", columns: "Columns", text: "Text", component: "Component" }[e], Object.assign(this, n), Is(this);
7246
+ this.type = e, this.name = { rows: "Rows", columns: "Columns", text: "Text", component: "Component" }[e], Object.assign(this, n), Ps(this);
7151
7247
  }
7152
7248
  }
7153
7249
  function B(t) {
@@ -7197,17 +7293,17 @@ function K(t, e = !1) {
7197
7293
  children: n.map((o) => K(o, e))
7198
7294
  });
7199
7295
  }
7200
- function Fn(t) {
7296
+ function Ln(t) {
7201
7297
  return JSON.parse(JSON.stringify(t));
7202
7298
  }
7203
7299
  function Hi() {
7204
- return no().length > 0 ? Ku : 0;
7300
+ return oo().length > 0 ? Gu : 0;
7205
7301
  }
7206
- const Lr = 5, Ud = `pygmalion.canvas-layout.v${Lr}`, kn = 120, zn = 80;
7302
+ const Fr = 5, Xd = `pygmalion.canvas-layout.v${Fr}`, kn = 120, zn = 80;
7207
7303
  function Te(t) {
7208
7304
  return typeof t == "number" && Number.isFinite(t);
7209
7305
  }
7210
- function Wd(t) {
7306
+ function Yd(t) {
7211
7307
  let e = 0xcbf29ce484222325n;
7212
7308
  for (const n of t)
7213
7309
  e ^= BigInt(n.codePointAt(0) ?? 0), e = BigInt.asUintN(64, e * 0x100000001b3n);
@@ -7217,13 +7313,13 @@ function Vn(t, e) {
7217
7313
  const n = t.importPageId ?? t.path ?? t.route ?? t.name;
7218
7314
  return `${e}:${t.importKind ?? ""}:${t.canvas ?? "default"}:${n}`;
7219
7315
  }
7220
- function Gd(t, e) {
7316
+ function Jd(t, e) {
7221
7317
  if (!t || typeof t != "object") return !1;
7222
7318
  const n = t;
7223
- return n.version === Lr && n.scope === e && Array.isArray(n.frames) && Array.isArray(n.sections);
7319
+ return n.version === Fr && n.scope === e && Array.isArray(n.frames) && Array.isArray(n.sections);
7224
7320
  }
7225
7321
  let tt = 0;
7226
- class qd {
7322
+ class Zd {
7227
7323
  constructor() {
7228
7324
  /** Multi-page — each page has an independent tree. */
7229
7325
  b(this, "pages");
@@ -7286,7 +7382,7 @@ class qd {
7286
7382
  /** Explicit edit scope by sourceKey. Unspecified is shared like the existing operation. */
7287
7383
  b(this, "sharedSourceEditScopes", /* @__PURE__ */ new Map());
7288
7384
  /** The final change that can be safely reflected to the original source during a regular canvas NodeModel patch. */
7289
- b(this, "sourcePatchJournal", new xd(Nr));
7385
+ b(this, "sourcePatchJournal", new Pd(Nr));
7290
7386
  /** Asset-list edit intent waiting for the catalog page's DOM layer import. */
7291
7387
  b(this, "pendingDesignAssetEdit", null);
7292
7388
  /** Page DOM as of last load/reflection. Asynchronous screens register upon completion of each capture. */
@@ -7317,7 +7413,7 @@ class qd {
7317
7413
  b(this, "sections", []);
7318
7414
  /** Section name whose name is entered immediately after creation/double-clicking — SectionBoxes are rendered as input. */
7319
7415
  b(this, "sectionRenameTarget", null);
7320
- this.pages = [{ id: `p${++tt}`, name: "Page 1", x: 60, y: 60, root: Xd() }], this.activePageId = this.pages[0].id, Is(this);
7416
+ this.pages = [{ id: `p${++tt}`, name: "Page 1", x: 60, y: 60, root: Qd() }], this.activePageId = this.pages[0].id, Ps(this);
7321
7417
  }
7322
7418
  /**
7323
7419
  * Canvas names in the order a designer navigates them.
@@ -7334,7 +7430,7 @@ class qd {
7334
7430
  */
7335
7431
  get canvasNames() {
7336
7432
  const e = /* @__PURE__ */ new Map();
7337
- no().forEach((o, a) => {
7433
+ oo().forEach((o, a) => {
7338
7434
  e.has(o.section) || e.set(o.section, a);
7339
7435
  });
7340
7436
  const n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
@@ -7459,7 +7555,7 @@ ${e}`;
7459
7555
  return !e || this.activeCanvas === e || this.activeCanvas.startsWith(`${e} · `);
7460
7556
  }
7461
7557
  designAssetPage(e, n) {
7462
- return Kd(this.pages, e, n);
7558
+ return Gd(this.pages, e, n);
7463
7559
  }
7464
7560
  /** Open an inventory asset as an editable implementation layer. */
7465
7561
  beginDesignAssetEdit(e, n) {
@@ -7469,11 +7565,11 @@ ${e}`;
7469
7565
  resolvePendingDesignAssetEdit(e) {
7470
7566
  const n = this.pendingDesignAssetEdit;
7471
7567
  if (!n || n.pageId !== e.id) return !1;
7472
- const r = Bd(e.root, n.asset) ?? e.root;
7568
+ const r = Wd(e.root, n.asset) ?? e.root;
7473
7569
  return this.pendingDesignAssetEdit = null, this.selectedIds = [r.id], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null, !0;
7474
7570
  }
7475
7571
  sharedSourceImpactFor(e) {
7476
- return Fd(this.pages, e.sourceKey);
7572
+ return Bd(this.pages, e.sourceKey);
7477
7573
  }
7478
7574
  /**
7479
7575
  * Common source CSS to put into script-free DOM previews on inactive screens.
@@ -7801,7 +7897,7 @@ ${e}`;
7801
7897
  ) + r;
7802
7898
  continue;
7803
7899
  }
7804
- const d = u.filter((p) => this.isScreenStateShown(p)), f = Gs(((s = u[0]) == null ? void 0 : s.section) ?? "").length ? Fu(((o = u[0]) == null ? void 0 : o.section) ?? "", d) : [], h = f.length ? ju(
7900
+ const d = u.filter((p) => this.isScreenStateShown(p)), f = Gs(((s = u[0]) == null ? void 0 : s.section) ?? "").length ? Bu(((o = u[0]) == null ? void 0 : o.section) ?? "", d) : [], h = f.length ? zu(
7805
7901
  f.map((p) => ({
7806
7902
  laneId: p.laneId,
7807
7903
  frames: p.frames.map((g) => ({
@@ -7883,7 +7979,7 @@ ${e}`;
7883
7979
  }
7884
7980
  canvasLayoutSnapshot() {
7885
7981
  return {
7886
- version: Lr,
7982
+ version: Fr,
7887
7983
  scope: this.canvasLayoutScope,
7888
7984
  frames: this.pages.map((e, n) => ({
7889
7985
  key: Vn(e, n),
@@ -7938,27 +8034,27 @@ ${e}`;
7938
8034
  startCanvasLayoutPersistence() {
7939
8035
  var s, o;
7940
8036
  if (typeof window > "u") return;
7941
- const e = ((s = on()) == null ? void 0 : s.sourceSha) || Mo();
8037
+ const e = ((s = on()) == null ? void 0 : s.sourceSha) || $o();
7942
8038
  if (!e) return;
7943
8039
  const n = this.pages.map((a, c) => ({
7944
8040
  key: Vn(a, c),
7945
8041
  sourcePaths: [...a.sourcePaths ?? []]
7946
8042
  })), r = JSON.stringify({
7947
8043
  sourceRevision: e,
7948
- appOrigin: Io(),
8044
+ appOrigin: Do(),
7949
8045
  catalog: n
7950
- }), i = `${Ud}:${Wd(r)}`;
8046
+ }), i = `${Xd}:${Yd(r)}`;
7951
8047
  if (i !== this.canvasLayoutStorageKey) {
7952
8048
  (o = this.canvasLayoutDisposer) == null || o.call(this), this.canvasLayoutScope = r, this.canvasLayoutStorageKey = i;
7953
8049
  try {
7954
8050
  const a = window.localStorage.getItem(i);
7955
8051
  if (a) {
7956
8052
  const c = JSON.parse(a);
7957
- Gd(c, r) && this.restoreCanvasLayout(c);
8053
+ Jd(c, r) && this.restoreCanvasLayout(c);
7958
8054
  }
7959
8055
  } catch {
7960
8056
  }
7961
- this.canvasLayoutDisposer = _c(
8057
+ this.canvasLayoutDisposer = Ec(
7962
8058
  () => this.canvasLayoutSnapshot(),
7963
8059
  (a) => {
7964
8060
  try {
@@ -8090,9 +8186,9 @@ ${e}`;
8090
8186
  promoteFrozenLayerImport(e) {
8091
8187
  if (e.route == null || !e.importLayers || e.layersImported)
8092
8188
  return;
8093
- const n = wo(e.id);
8189
+ const n = Ao(e.id);
8094
8190
  if (!n) return;
8095
- const r = So(n, { scale: this.zoom });
8191
+ const r = xo(n, { scale: this.zoom });
8096
8192
  if (!r) {
8097
8193
  this.frozenPromotionRefusals.add(e.id);
8098
8194
  return;
@@ -8115,7 +8211,7 @@ ${e}`;
8115
8211
  applyScreenDimension(e, n, r, i) {
8116
8212
  const s = this.pages.find((d) => d.id === e);
8117
8213
  if (!s || !s.layersImported) return !1;
8118
- const o = Xu(n, r), a = i ? me(s.root, i) : qu(s, n);
8214
+ const o = Qu(n, r), a = i ? me(s.root, i) : Zu(s, n);
8119
8215
  if (!o || !a) return !1;
8120
8216
  if (a.componentName === n.component) {
8121
8217
  for (const [d, f] of Object.entries(o))
@@ -8150,11 +8246,11 @@ ${e}`;
8150
8246
  applyScreenListLength(e, n, r) {
8151
8247
  const i = this.pages.find((d) => d.id === e);
8152
8248
  if (!i || !i.layersImported) return !1;
8153
- const s = rl(i, n);
8249
+ const s = al(i, n);
8154
8250
  if (!s) return !1;
8155
- const o = il(s, n);
8251
+ const o = cl(s, n);
8156
8252
  if (o.length === 0) return !1;
8157
- const a = sl(n, r);
8253
+ const a = ul(n, r);
8158
8254
  if (a === o.length) return !0;
8159
8255
  const c = o[o.length - 1], u = $(i.root, c.id);
8160
8256
  if (!u) return !1;
@@ -8165,17 +8261,17 @@ ${e}`;
8165
8261
  const f = $(i.root, d.id);
8166
8262
  if (!f) continue;
8167
8263
  const h = f.children.indexOf(d);
8168
- h < 0 || (l -= Pi(f, d), f.children.splice(h, 1));
8264
+ h < 0 || (l -= Ii(f, d), f.children.splice(h, 1));
8169
8265
  }
8170
8266
  else {
8171
8267
  let d = u.children.indexOf(c);
8172
8268
  if (d < 0) return !1;
8173
8269
  for (let f = o.length; f < a; f += 1) {
8174
8270
  const h = K(B(c), !0);
8175
- d += 1, u.children.splice(d, 0, h), l += Pi(u, h);
8271
+ d += 1, u.children.splice(d, 0, h), l += Ii(u, h);
8176
8272
  }
8177
8273
  }
8178
- return ml(i.root, u, l), this.bumpPageEditRevision(e), !0;
8274
+ return yl(i.root, u, l), this.bumpPageEditRevision(e), !0;
8179
8275
  }
8180
8276
  /**
8181
8277
  * Adds or removes one badge in one slot of one card.
@@ -8191,7 +8287,7 @@ ${e}`;
8191
8287
  if (!a || !a.layersImported) return !1;
8192
8288
  const c = me(a.root, r);
8193
8289
  if (!c) return !1;
8194
- let u = so(c, i);
8290
+ let u = uo(c, i);
8195
8291
  if (!o && !u) return !0;
8196
8292
  if (this.checkpoint(`card:${n.id}:${i.id}`, !0), !o) {
8197
8293
  const f = u.children.filter(
@@ -8209,9 +8305,9 @@ ${e}`;
8209
8305
  return this.bumpPageEditRevision(e), !0;
8210
8306
  }
8211
8307
  if (!u) {
8212
- const f = Ju(a, i, c);
8308
+ const f = tl(a, i, c);
8213
8309
  if (!f) return !1;
8214
- const h = Zu(c, i);
8310
+ const h = nl(c, i);
8215
8311
  if (!h) return !1;
8216
8312
  const v = K(B(f), !0);
8217
8313
  v.children.splice(0, v.children.length), h.parent.children.splice(h.index, 0, v), u = v;
@@ -8223,13 +8319,13 @@ ${e}`;
8223
8319
  u.children.splice(0, u.children.length, ...f);
8224
8320
  } else if (u.children.some((f) => Bt(f, s)))
8225
8321
  return !0;
8226
- const l = Yu(a, s, c), d = l ? K(B(l), !0) : new R("component", {
8322
+ const l = el(a, s, c), d = l ? K(B(l), !0) : new R("component", {
8227
8323
  name: s.component,
8228
8324
  componentName: s.component,
8229
8325
  componentProps: { ...s.props },
8230
8326
  widthMode: "fit"
8231
8327
  });
8232
- return u.children.splice(Qu(u, s), 0, d), this.bumpPageEditRevision(e), this.selectedIds = [d.id], !0;
8328
+ return u.children.splice(rl(u, s), 0, d), this.bumpPageEditRevision(e), this.selectedIds = [d.id], !0;
8233
8329
  }
8234
8330
  /**
8235
8331
  * Puts a frame into a declared interactive state by extending its recipe.
@@ -8240,13 +8336,13 @@ ${e}`;
8240
8336
  * path. Returning to the base option restores the captured recipe.
8241
8337
  */
8242
8338
  applyInteractiveState(e, n, r) {
8243
- const i = this.pages.find((a) => a.id === e), s = n.options.find((a) => a.id === r);
8339
+ const i = this.pages.find((c) => c.id === e), s = n.options.find((c) => c.id === r);
8244
8340
  if (!i || !s) return !1;
8245
8341
  if (i.interactiveStateId === n.id && i.interactiveOptionId === r)
8246
8342
  return !0;
8247
8343
  i.baseInteractions ?? (i.baseInteractions = i.interactions ? [...i.interactions] : []);
8248
- const o = s.steps ?? [];
8249
- return i.interactions = [...i.baseInteractions, ...o.map((a) => ({ ...a }))], o.length === 0 ? (i.interactiveStateId = void 0, i.interactiveOptionId = void 0) : (i.interactiveStateId = n.id, i.interactiveOptionId = r), i.layersImported = !1, i.layerImportRevision = void 0, this.provisionalLayerImports.delete(e), !0;
8344
+ const o = Ys(n, i), a = (o == null ? void 0 : o.id) === s.id ? [] : s.steps ?? [];
8345
+ return i.interactions = [...i.baseInteractions, ...a.map((c) => ({ ...c }))], a.length === 0 ? (i.interactiveStateId = void 0, i.interactiveOptionId = void 0) : (i.interactiveStateId = n.id, i.interactiveOptionId = r), i.layersImported = !1, i.layerImportRevision = void 0, this.provisionalLayerImports.delete(e), !0;
8250
8346
  }
8251
8347
  /** True when the page's frozen capture was refused and activation should boot live instead. */
8252
8348
  frozenPromotionRefused(e) {
@@ -8460,7 +8556,7 @@ ${e}`;
8460
8556
  rt(n)
8461
8557
  ]),
8462
8558
  sharedSourceStructureOverrides: [...this.sharedSourceStructureOverrides.entries()].map(
8463
- ([e, n]) => [e, n.map(Fn)]
8559
+ ([e, n]) => [e, n.map(Ln)]
8464
8560
  ),
8465
8561
  sharedFrozenCssRules: [...this.sharedFrozenCssRules.entries()],
8466
8562
  sharedFrozenDomMutations: [...this.sharedFrozenDomMutations.entries()],
@@ -8492,7 +8588,7 @@ ${e}`;
8492
8588
  ), this.sharedSourceStructureOverrides = new Map(
8493
8589
  (n.sharedSourceStructureOverrides ?? []).map(([r, i]) => [
8494
8590
  r,
8495
- i.map(Fn)
8591
+ i.map(Ln)
8496
8592
  ])
8497
8593
  ), 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;
8498
8594
  for (const r of this.pages) this.bumpPageEditRevision(r.id);
@@ -8600,7 +8696,7 @@ ${e}`;
8600
8696
  });
8601
8697
  }
8602
8698
  recordFrozenPreviewPatch(e, n, r = []) {
8603
- const i = this.sharedSourceOverrides.get(e.sourceKey) ?? n, s = $d(i), o = this.frozenStyleSelector(e), a = Object.entries(s).map(([c, u]) => `${c}:${u}!important`).join(";");
8699
+ const i = this.sharedSourceOverrides.get(e.sourceKey) ?? n, s = Ld(i), o = this.frozenStyleSelector(e), a = Object.entries(s).map(([c, u]) => `${c}:${u}!important`).join(";");
8604
8700
  if (o && a && this.sharedFrozenCssRules.set(e.sourceKey, { selector: o, css: a }), Object.hasOwn(n, "hidden")) {
8605
8701
  const c = this.frozenSemanticSelector(e);
8606
8702
  c && this.sharedFrozenDomMutations.set(`${e.sourceKey}:hidden`, {
@@ -8688,7 +8784,7 @@ ${e}`;
8688
8784
  const n = e.children.map((i) => B(i));
8689
8785
  this.sharedSourceStructureOverrides.set(
8690
8786
  e.sourceKey,
8691
- n.map(Fn)
8787
+ n.map(Ln)
8692
8788
  ), this.recordFrozenPreviewStructure(e);
8693
8789
  const r = /* @__PURE__ */ new Set();
8694
8790
  for (const i of this.pages) {
@@ -8709,7 +8805,7 @@ ${e}`;
8709
8805
  patch(e, n) {
8710
8806
  const r = this.withImportedDomStyle(e, n), i = r.domAttributes ? Object.keys(e.domAttributes) : [];
8711
8807
  this.sourcePatchJournal.captureBefore(this.pages, e.id, r);
8712
- const s = Ro(r), a = this.sharedSourceEditScopeFor(e) === "shared" && !!e.sourceKey && Md(s);
8808
+ const s = ko(r), a = this.sharedSourceEditScopeFor(e) === "shared" && !!e.sourceKey && $d(s);
8713
8809
  if (this.checkpoint(a ? `patch-source:${e.sourceKey}` : `patch-instance:${e.id}`), Object.assign(e, r), !a) return;
8714
8810
  const c = this.sharedSourceOverrides.get(e.sourceKey);
8715
8811
  this.sharedSourceOverrides.set(e.sourceKey, {
@@ -8841,7 +8937,7 @@ ${e}`;
8841
8937
  }
8842
8938
  /** ⌘⇧G — Unpacks the selected container and spreads its children into the parent's place. */
8843
8939
  ungroupSelected() {
8844
- const e = this.topLevelSelected().filter((i) => jo(i.type) && i !== this.root);
8940
+ const e = this.topLevelSelected().filter((i) => zo(i.type) && i !== this.root);
8845
8941
  if (!e.length) return;
8846
8942
  this.checkpoint("ungroup", !0);
8847
8943
  const n = [], r = /* @__PURE__ */ new Set();
@@ -9018,7 +9114,7 @@ function $(t, e) {
9018
9114
  }
9019
9115
  return null;
9020
9116
  }
9021
- function Xd() {
9117
+ function Qd() {
9022
9118
  const t = (e) => new R("rows", {
9023
9119
  name: "Chip",
9024
9120
  widthMode: "fit",
@@ -9054,8 +9150,8 @@ function Xd() {
9054
9150
  ]
9055
9151
  });
9056
9152
  }
9057
- const Bn = new qd();
9058
- class Yd extends Ho {
9153
+ const Bn = new Zd();
9154
+ class ef extends qo {
9059
9155
  constructor() {
9060
9156
  super(...arguments);
9061
9157
  b(this, "state", { failed: !1 });
@@ -9073,7 +9169,7 @@ class Yd extends Ho {
9073
9169
  }) : this.props.children;
9074
9170
  }
9075
9171
  }
9076
- function Jd({
9172
+ function tf({
9077
9173
  page: t,
9078
9174
  snapshot: e,
9079
9175
  height: n,
@@ -9086,15 +9182,15 @@ function Jd({
9086
9182
  }), u = ht(i);
9087
9183
  u.current = i;
9088
9184
  const l = ht(0), [d, f] = Kn([]), [h, v] = Kn("none"), p = Bn.frozenPreviewOverrideCss(t), g = Bn.frozenPreviewCssRules(), S = Bn.frozenPreviewMutations(), m = JSON.stringify({ cssRules: g, mutations: S }), E = () => {
9089
- var Me, Fr;
9185
+ var Me, Lr;
9090
9186
  const w = (Me = o.current) == null ? void 0 : Me.contentDocument;
9091
9187
  if (!(w != null && w.head)) return;
9092
- const I = ++l.current, C = [];
9188
+ const P = ++l.current, C = [];
9093
9189
  let M = w.querySelector(
9094
9190
  "style[data-pygmalion-frozen-overrides]"
9095
9191
  );
9096
9192
  p ? M || (M = w.createElement("style"), M.dataset.pygmalionFrozenOverrides = "", w.head.append(M)) : M == null || M.remove(), M && M.textContent !== p && (M.textContent = p), a.current();
9097
- const L = [];
9193
+ const F = [];
9098
9194
  let Se = 0, Y = 0;
9099
9195
  for (const A of g)
9100
9196
  try {
@@ -9120,7 +9216,7 @@ function Jd({
9120
9216
  if (!he) {
9121
9217
  C.push(
9122
9218
  `Component registry entry not found:${D.name}`
9123
- ), Y += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), L.push(() => {
9219
+ ), Y += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
9124
9220
  N.removeAttribute("data-pygmalion-sandbox-replay");
9125
9221
  });
9126
9222
  continue;
@@ -9128,7 +9224,7 @@ function Jd({
9128
9224
  if (he.children === "nodes") {
9129
9225
  C.push(
9130
9226
  "Components that use node children cannot be safely replayed in a frozen sandbox."
9131
- ), Y += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), L.push(() => {
9227
+ ), Y += 1, N.setAttribute("data-pygmalion-sandbox-replay", "stale"), F.push(() => {
9132
9228
  N.removeAttribute("data-pygmalion-sandbox-replay");
9133
9229
  });
9134
9230
  continue;
@@ -9138,17 +9234,17 @@ function Jd({
9138
9234
  const kr = N.hasAttribute("hidden");
9139
9235
  N.setAttribute("hidden", ""), N.setAttribute("data-pygmalion-sandbox-replay", "source");
9140
9236
  let ft = Ui(we);
9141
- const ko = () => {
9237
+ const Ko = () => {
9142
9238
  const pe = ft;
9143
9239
  ft = null, we.remove(), N.toggleAttribute("hidden", kr), N.removeAttribute("data-pygmalion-sandbox-replay"), pe && queueMicrotask(() => pe.unmount());
9144
9240
  };
9145
- L.push(ko);
9241
+ F.push(Ko);
9146
9242
  const zr = (pe) => {
9147
- if (l.current !== I) return;
9243
+ if (l.current !== P) return;
9148
9244
  Y += 1;
9149
- const zo = pe instanceof Error ? pe.message : String(pe), Vr = `Component sandbox rendering failed:${D.name} · ${zo}`;
9150
- C.push(Vr), we.setAttribute("data-pygmalion-sandbox-replay", "stale"), N.toggleAttribute("hidden", kr), v("stale"), f((Vo) => {
9151
- const Br = [.../* @__PURE__ */ new Set([...Vo, Vr])];
9245
+ const Ho = pe instanceof Error ? pe.message : String(pe), Vr = `Component sandbox rendering failed:${D.name} · ${Ho}`;
9246
+ C.push(Vr), we.setAttribute("data-pygmalion-sandbox-replay", "stale"), N.toggleAttribute("hidden", kr), v("stale"), f((Uo) => {
9247
+ const Br = [.../* @__PURE__ */ new Set([...Uo, Vr])];
9152
9248
  return s == null || s(Br), Br;
9153
9249
  });
9154
9250
  };
@@ -9156,7 +9252,7 @@ function Jd({
9156
9252
  const pe = he.children === "text" ? D.childrenText : void 0;
9157
9253
  ft == null || ft.render(
9158
9254
  Ut(
9159
- Yd,
9255
+ ef,
9160
9256
  { onError: zr },
9161
9257
  Ut(
9162
9258
  he.component,
@@ -9172,51 +9268,51 @@ function Jd({
9172
9268
  }
9173
9269
  if (A.hidden != null) {
9174
9270
  const D = N.hasAttribute("hidden");
9175
- N.toggleAttribute("hidden", A.hidden), L.push(() => N.toggleAttribute("hidden", D));
9271
+ N.toggleAttribute("hidden", A.hidden), F.push(() => N.toggleAttribute("hidden", D));
9176
9272
  }
9177
9273
  if (A.attributes)
9178
9274
  for (const [D, he] of Object.entries(A.attributes)) {
9179
9275
  const we = N.getAttribute(D);
9180
- he == null ? N.removeAttribute(D) : N.setAttribute(D, he), L.push(() => {
9276
+ he == null ? N.removeAttribute(D) : N.setAttribute(D, he), F.push(() => {
9181
9277
  we == null ? N.removeAttribute(D) : N.setAttribute(D, we);
9182
9278
  });
9183
9279
  }
9184
9280
  if (A.replaceChildrenHtml != null) {
9185
9281
  const D = N.innerHTML;
9186
- N.innerHTML = A.replaceChildrenHtml, L.push(() => {
9282
+ N.innerHTML = A.replaceChildrenHtml, F.push(() => {
9187
9283
  N.innerHTML = D;
9188
9284
  });
9189
9285
  }
9190
9286
  if (A.text == null) continue;
9191
9287
  if (A.textNodeOrdinal == null) {
9192
9288
  const D = N.textContent;
9193
- N.textContent = A.text, L.push(() => {
9289
+ N.textContent = A.text, F.push(() => {
9194
9290
  N.textContent = D;
9195
9291
  });
9196
9292
  continue;
9197
9293
  }
9198
- const Lo = ((Fr = w.defaultView) == null ? void 0 : Fr.Node.TEXT_NODE) ?? 3, Ct = [...N.childNodes].filter(
9294
+ const Vo = ((Lr = w.defaultView) == null ? void 0 : Lr.Node.TEXT_NODE) ?? 3, Ct = [...N.childNodes].filter(
9199
9295
  (D) => {
9200
9296
  var he;
9201
- return D.nodeType === Lo && !!((he = D.textContent) != null && he.trim());
9297
+ return D.nodeType === Vo && !!((he = D.textContent) != null && he.trim());
9202
9298
  }
9203
9299
  )[A.textNodeOrdinal];
9204
9300
  if (!Ct) continue;
9205
- const Fo = Ct.textContent;
9206
- Ct.textContent = A.text, L.push(() => {
9207
- Ct.textContent = Fo;
9301
+ const Bo = Ct.textContent;
9302
+ Ct.textContent = A.text, F.push(() => {
9303
+ Ct.textContent = Bo;
9208
9304
  });
9209
9305
  }
9210
9306
  }
9211
9307
  a.current = () => {
9212
- for (const A of L.reverse()) A();
9308
+ for (const A of F.reverse()) A();
9213
9309
  };
9214
- const Ie = [...new Set(C)];
9310
+ const Pe = [...new Set(C)];
9215
9311
  v(
9216
9312
  Y > 0 ? "stale" : Se > 0 ? "applied" : "none"
9217
9313
  ), f(
9218
- (A) => JSON.stringify(A) === JSON.stringify(Ie) ? A : Ie
9219
- ), s == null || s(Ie);
9314
+ (A) => JSON.stringify(A) === JSON.stringify(Pe) ? A : Pe
9315
+ ), s == null || s(Pe);
9220
9316
  };
9221
9317
  return Ur(() => (E(), () => {
9222
9318
  l.current += 1, a.current();
@@ -9246,8 +9342,8 @@ function Jd({
9246
9342
  const w = o.current;
9247
9343
  if (!w) return;
9248
9344
  c.current();
9249
- const I = w.contentDocument;
9250
- c.current = t.heightMode === "document" && I ? wu(I, (C) => {
9345
+ const P = w.contentDocument;
9346
+ c.current = t.heightMode === "document" && P ? Au(P, (C) => {
9251
9347
  var M;
9252
9348
  (M = u.current) == null || M.call(u, C);
9253
9349
  }) : () => {
@@ -9293,123 +9389,128 @@ function Jd({
9293
9389
  }
9294
9390
  );
9295
9391
  }
9296
- const Qf = hu(Jd);
9392
+ const ch = vu(tf);
9297
9393
  export {
9298
- vd as $,
9299
- Nf as A,
9300
- If as B,
9301
- Mf as C,
9394
+ Sd as $,
9395
+ jf as A,
9396
+ Lf as B,
9397
+ kf as C,
9302
9398
  Gs as D,
9303
- Fu as E,
9304
- Jd as F,
9305
- pf as G,
9306
- Rf as H,
9307
- Tf as I,
9308
- $f as J,
9309
- wu as K,
9310
- df as L,
9311
- ed as M,
9399
+ Bu as E,
9400
+ tf as F,
9401
+ bf as G,
9402
+ Hf as H,
9403
+ Vf as I,
9404
+ Kf as J,
9405
+ Au as K,
9406
+ mf as L,
9407
+ id as M,
9312
9408
  R as N,
9313
- Yl as O,
9314
- Qf as P,
9315
- Ll as Q,
9409
+ ed as O,
9410
+ ch as P,
9411
+ Vl as Q,
9316
9412
  _e as R,
9317
- Cf as S,
9318
- ad as T,
9319
- Su as U,
9320
- Ql as V,
9321
- Jl as W,
9322
- _o as X,
9323
- Is as Y,
9324
- _c as Z,
9413
+ zf as S,
9414
+ dd as T,
9415
+ xu as U,
9416
+ rd as V,
9417
+ td as W,
9418
+ Eo as X,
9419
+ Ps as Y,
9420
+ Ec as Z,
9325
9421
  Ke as _,
9326
- af as a,
9327
- Zf as a$,
9328
- cf as a0,
9329
- Mu as a1,
9422
+ df as a,
9423
+ th as a$,
9424
+ ff as a0,
9425
+ $u as a1,
9330
9426
  bi as a2,
9331
9427
  se as a3,
9332
9428
  ze as a4,
9333
9429
  Hs as a5,
9334
- hd as a6,
9335
- Do as a7,
9336
- md as a8,
9337
- dd as a9,
9338
- Df as aA,
9339
- hf as aB,
9340
- Ef as aC,
9341
- Hf as aD,
9342
- fd as aE,
9343
- td as aF,
9344
- rd as aG,
9345
- bd as aH,
9346
- cd as aI,
9347
- ld as aJ,
9348
- pd as aK,
9349
- gd as aL,
9350
- Gl as aM,
9351
- Vl as aN,
9352
- kl as aO,
9353
- zl as aP,
9354
- bf as aQ,
9355
- mo as aR,
9356
- vf as aS,
9357
- zf as aT,
9358
- jf as aU,
9359
- ff as aV,
9360
- Wf as aW,
9361
- Pf as aX,
9430
+ vd as a6,
9431
+ Fo as a7,
9432
+ yd as a8,
9433
+ md as a9,
9434
+ ld as aA,
9435
+ Gf as aB,
9436
+ nh as aC,
9437
+ Bf as aD,
9438
+ vf as aE,
9439
+ Df as aF,
9440
+ Qf as aG,
9441
+ wf as aH,
9442
+ gd as aI,
9443
+ sd as aJ,
9444
+ ad as aK,
9445
+ wd as aL,
9446
+ fd as aM,
9447
+ pd as aN,
9448
+ bd as aO,
9449
+ _d as aP,
9450
+ Jl as aQ,
9451
+ Ul as aR,
9452
+ Kl as aS,
9453
+ Hl as aT,
9454
+ Nf as aU,
9455
+ yo as aV,
9456
+ Af as aW,
9457
+ yf as aX,
9362
9458
  Xf as aY,
9363
- Yf as aZ,
9364
- Jf as a_,
9459
+ Uf as aZ,
9460
+ gf as a_,
9365
9461
  Mi as aa,
9366
9462
  pr as ab,
9367
- ud as ac,
9463
+ hd as ac,
9368
9464
  nt as ad,
9369
- Uf as ae,
9370
- Vf as af,
9371
- qf as ag,
9372
- el as ah,
9373
- tl as ai,
9374
- qu as aj,
9375
- Lf as ak,
9376
- kf as al,
9377
- rl as am,
9378
- il as an,
9379
- Kf as ao,
9380
- Bf as ap,
9381
- jo as aq,
9382
- lf as ar,
9383
- uf as as,
9384
- of as at,
9385
- sf as au,
9386
- ql as av,
9387
- sd as aw,
9388
- od as ax,
9389
- Ff as ay,
9390
- Gf as az,
9465
+ Of as ae,
9466
+ eh as af,
9467
+ Yf as ag,
9468
+ rh as ah,
9469
+ il as ai,
9470
+ sl as aj,
9471
+ Zu as ak,
9472
+ Wf as al,
9473
+ qf as am,
9474
+ al as an,
9475
+ cl as ao,
9476
+ Zf as ap,
9477
+ Jf as aq,
9478
+ _f as ar,
9479
+ Sf as as,
9480
+ zo as at,
9481
+ pf as au,
9482
+ hf as av,
9483
+ lf as aw,
9484
+ uf as ax,
9485
+ Zl as ay,
9486
+ ud as az,
9391
9487
  bn as b,
9488
+ Ff as b0,
9489
+ ih as b1,
9490
+ sh as b2,
9491
+ oh as b3,
9492
+ ah as b4,
9392
9493
  Vs as c,
9393
- Mo as d,
9494
+ $o as d,
9394
9495
  Bn as e,
9395
- nd as f,
9496
+ od as f,
9396
9497
  ae as g,
9397
- Io as h,
9398
- id as i,
9498
+ Do as h,
9499
+ cd as i,
9399
9500
  on as j,
9400
- gf as k,
9401
- _f as l,
9402
- Af as m,
9403
- yf as n,
9404
- hu as o,
9405
- Sf as p,
9406
- Of as q,
9501
+ xf as k,
9502
+ Pf as l,
9503
+ Rf as m,
9504
+ If as n,
9505
+ vu as o,
9506
+ Mf as p,
9507
+ Tf as q,
9407
9508
  oe as r,
9408
9509
  B as s,
9409
- wf as t,
9510
+ Cf as t,
9410
9511
  us as u,
9411
- mf as v,
9412
- xf as w,
9512
+ Ef as v,
9513
+ $f as w,
9413
9514
  me as x,
9414
9515
  Vi as y,
9415
9516
  $ as z