@design.estate/dees-wcctools 3.9.1 → 3.9.2

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.
@@ -5180,10 +5180,10 @@ var require_sweet_scroll = __commonJS({
5180
5180
  };
5181
5181
  var CONTAINER_CLICK_EVENT = "click";
5182
5182
  var CONTAINER_STOP_EVENT = "wheel touchstart touchmove";
5183
- var SweetScroll3 = (
5183
+ var SweetScroll2 = (
5184
5184
  /** @class */
5185
5185
  (function() {
5186
- function SweetScroll4(options, container) {
5186
+ function SweetScroll3(options, container) {
5187
5187
  var _this = this;
5188
5188
  this.$el = null;
5189
5189
  this.ctx = {
@@ -5199,7 +5199,7 @@ var require_sweet_scroll = __commonJS({
5199
5199
  hash: null
5200
5200
  };
5201
5201
  this.loop = function(time) {
5202
- var _a23 = _this, $el = _a23.$el, ctx = _a23.ctx;
5202
+ var _a22 = _this, $el = _a22.$el, ctx = _a22.ctx;
5203
5203
  if (!ctx.start) {
5204
5204
  ctx.start = time;
5205
5205
  }
@@ -5227,7 +5227,7 @@ var require_sweet_scroll = __commonJS({
5227
5227
  });
5228
5228
  if (timeElapsed <= duration) {
5229
5229
  _this.hook(options2, "step", t8);
5230
- ctx.id = SweetScroll4.raf(_this.loop);
5230
+ ctx.id = SweetScroll3.raf(_this.loop);
5231
5231
  } else {
5232
5232
  _this.stop(true);
5233
5233
  }
@@ -5287,15 +5287,15 @@ var require_sweet_scroll = __commonJS({
5287
5287
  this.bind(true, false);
5288
5288
  }
5289
5289
  }
5290
- __name(SweetScroll4, "SweetScroll");
5291
- SweetScroll4.create = function(options, container) {
5292
- return new SweetScroll4(options, container);
5290
+ __name(SweetScroll3, "SweetScroll");
5291
+ SweetScroll3.create = function(options, container) {
5292
+ return new SweetScroll3(options, container);
5293
5293
  };
5294
- SweetScroll4.prototype.to = function(distance, options) {
5294
+ SweetScroll3.prototype.to = function(distance, options) {
5295
5295
  if (!canUseDOM) {
5296
5296
  return;
5297
5297
  }
5298
- var _a23 = this, $el = _a23.$el, ctx = _a23.ctx, currentOptions = _a23.opts;
5298
+ var _a22 = this, $el = _a22.$el, ctx = _a22.ctx, currentOptions = _a22.opts;
5299
5299
  var $trigger = ctx.$trigger;
5300
5300
  var opts = __assign2({}, currentOptions, options || {});
5301
5301
  var optOffset = opts.offset, vertical = opts.vertical, horizontal = opts.horizontal;
@@ -5345,29 +5345,29 @@ var require_sweet_scroll = __commonJS({
5345
5345
  this.start(opts);
5346
5346
  this.bind(false, true);
5347
5347
  };
5348
- SweetScroll4.prototype.toTop = function(distance, options) {
5348
+ SweetScroll3.prototype.toTop = function(distance, options) {
5349
5349
  this.to(distance, __assign2({}, options || {}, { vertical: true, horizontal: false }));
5350
5350
  };
5351
- SweetScroll4.prototype.toLeft = function(distance, options) {
5351
+ SweetScroll3.prototype.toLeft = function(distance, options) {
5352
5352
  this.to(distance, __assign2({}, options || {}, { vertical: false, horizontal: true }));
5353
5353
  };
5354
- SweetScroll4.prototype.toElement = function($element, options) {
5354
+ SweetScroll3.prototype.toElement = function($element, options) {
5355
5355
  var $el = this.$el;
5356
5356
  if (!canUseDOM || !$el) {
5357
5357
  return;
5358
5358
  }
5359
5359
  this.to(getOffset($element, $el), options || {});
5360
5360
  };
5361
- SweetScroll4.prototype.stop = function(gotoEnd) {
5361
+ SweetScroll3.prototype.stop = function(gotoEnd) {
5362
5362
  if (gotoEnd === void 0) {
5363
5363
  gotoEnd = false;
5364
5364
  }
5365
- var _a23 = this, $el = _a23.$el, ctx = _a23.ctx;
5365
+ var _a22 = this, $el = _a22.$el, ctx = _a22.ctx;
5366
5366
  var pos = ctx.pos;
5367
5367
  if (!$el || !ctx.progress) {
5368
5368
  return;
5369
5369
  }
5370
- SweetScroll4.caf(ctx.id);
5370
+ SweetScroll3.caf(ctx.id);
5371
5371
  ctx.progress = false;
5372
5372
  ctx.start = 0;
5373
5373
  ctx.id = 0;
@@ -5377,7 +5377,7 @@ var require_sweet_scroll = __commonJS({
5377
5377
  }
5378
5378
  this.complete();
5379
5379
  };
5380
- SweetScroll4.prototype.update = function(options) {
5380
+ SweetScroll3.prototype.update = function(options) {
5381
5381
  if (this.$el) {
5382
5382
  var opts = __assign2({}, this.opts, options);
5383
5383
  this.stop();
@@ -5386,25 +5386,25 @@ var require_sweet_scroll = __commonJS({
5386
5386
  this.bind(true, false);
5387
5387
  }
5388
5388
  };
5389
- SweetScroll4.prototype.destroy = function() {
5389
+ SweetScroll3.prototype.destroy = function() {
5390
5390
  if (this.$el) {
5391
5391
  this.stop();
5392
5392
  this.unbind(true, true);
5393
5393
  this.$el = null;
5394
5394
  }
5395
5395
  };
5396
- SweetScroll4.prototype.onBefore = function(_3, __) {
5396
+ SweetScroll3.prototype.onBefore = function(_3, __) {
5397
5397
  return true;
5398
5398
  };
5399
- SweetScroll4.prototype.onStep = function(_3) {
5399
+ SweetScroll3.prototype.onStep = function(_3) {
5400
5400
  };
5401
- SweetScroll4.prototype.onAfter = function(_3, __) {
5401
+ SweetScroll3.prototype.onAfter = function(_3, __) {
5402
5402
  };
5403
- SweetScroll4.prototype.onCancel = function() {
5403
+ SweetScroll3.prototype.onCancel = function() {
5404
5404
  };
5405
- SweetScroll4.prototype.onComplete = function(_3) {
5405
+ SweetScroll3.prototype.onComplete = function(_3) {
5406
5406
  };
5407
- SweetScroll4.prototype.start = function(opts) {
5407
+ SweetScroll3.prototype.start = function(opts) {
5408
5408
  var ctx = this.ctx;
5409
5409
  ctx.opts = opts;
5410
5410
  ctx.progress = true;
@@ -5415,10 +5415,10 @@ var require_sweet_scroll = __commonJS({
5415
5415
  left: getScroll($container, "x")
5416
5416
  };
5417
5417
  ctx.startPos = start;
5418
- ctx.id = SweetScroll4.raf(this.loop);
5418
+ ctx.id = SweetScroll3.raf(this.loop);
5419
5419
  };
5420
- SweetScroll4.prototype.complete = function() {
5421
- var _a23 = this, $el = _a23.$el, ctx = _a23.ctx;
5420
+ SweetScroll3.prototype.complete = function() {
5421
+ var _a22 = this, $el = _a22.$el, ctx = _a22.ctx;
5422
5422
  var hash = ctx.hash, cancel = ctx.cancel, opts = ctx.opts, pos = ctx.pos, $trigger = ctx.$trigger;
5423
5423
  if (!$el || !opts) {
5424
5424
  return;
@@ -5439,23 +5439,23 @@ var require_sweet_scroll = __commonJS({
5439
5439
  }
5440
5440
  this.hook(opts, "complete", cancel);
5441
5441
  };
5442
- SweetScroll4.prototype.hook = function(options, type5) {
5442
+ SweetScroll3.prototype.hook = function(options, type5) {
5443
5443
  var args = [];
5444
5444
  for (var _i = 2; _i < arguments.length; _i++) {
5445
5445
  args[_i - 2] = arguments[_i];
5446
5446
  }
5447
- var _a23;
5447
+ var _a22;
5448
5448
  var callback = options[type5];
5449
5449
  var callbackResult;
5450
5450
  var methodResult;
5451
5451
  if (isFunction2(callback)) {
5452
5452
  callbackResult = callback.apply(this, args.concat([this]));
5453
5453
  }
5454
- methodResult = (_a23 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a23, args);
5454
+ methodResult = (_a22 = this)["on" + (type5[0].toUpperCase() + type5.slice(1))].apply(_a22, args);
5455
5455
  return callbackResult !== void 0 ? callbackResult : methodResult;
5456
5456
  };
5457
- SweetScroll4.prototype.bind = function(click, stop) {
5458
- var _a23 = this, $el = _a23.$el, opts = _a23.ctx.opts;
5457
+ SweetScroll3.prototype.bind = function(click, stop) {
5458
+ var _a22 = this, $el = _a22.$el, opts = _a22.ctx.opts;
5459
5459
  if ($el) {
5460
5460
  if (click) {
5461
5461
  addEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
@@ -5465,8 +5465,8 @@ var require_sweet_scroll = __commonJS({
5465
5465
  }
5466
5466
  }
5467
5467
  };
5468
- SweetScroll4.prototype.unbind = function(click, stop) {
5469
- var _a23 = this, $el = _a23.$el, opts = _a23.ctx.opts;
5468
+ SweetScroll3.prototype.unbind = function(click, stop) {
5469
+ var _a22 = this, $el = _a22.$el, opts = _a22.ctx.opts;
5470
5470
  if ($el) {
5471
5471
  if (click) {
5472
5472
  removeEvent($el, CONTAINER_CLICK_EVENT, this.handleClick, false);
@@ -5476,12 +5476,12 @@ var require_sweet_scroll = __commonJS({
5476
5476
  }
5477
5477
  }
5478
5478
  };
5479
- SweetScroll4.raf = raf;
5480
- SweetScroll4.caf = caf;
5481
- return SweetScroll4;
5479
+ SweetScroll3.raf = raf;
5480
+ SweetScroll3.caf = caf;
5481
+ return SweetScroll3;
5482
5482
  })()
5483
5483
  );
5484
- return SweetScroll3;
5484
+ return SweetScroll2;
5485
5485
  });
5486
5486
  }
5487
5487
  });
@@ -36881,7 +36881,7 @@ var Subscription = (function() {
36881
36881
  }
36882
36882
  __name(Subscription2, "Subscription");
36883
36883
  Subscription2.prototype.unsubscribe = function() {
36884
- var e_1, _a23, e_2, _b2;
36884
+ var e_1, _a22, e_2, _b2;
36885
36885
  var errors;
36886
36886
  if (!this.closed) {
36887
36887
  this.closed = true;
@@ -36898,7 +36898,7 @@ var Subscription = (function() {
36898
36898
  e_1 = { error: e_1_1 };
36899
36899
  } finally {
36900
36900
  try {
36901
- if (_parentage_1_1 && !_parentage_1_1.done && (_a23 = _parentage_1.return)) _a23.call(_parentage_1);
36901
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a22 = _parentage_1.return)) _a22.call(_parentage_1);
36902
36902
  } finally {
36903
36903
  if (e_1) throw e_1.error;
36904
36904
  }
@@ -36948,7 +36948,7 @@ var Subscription = (function() {
36948
36948
  }
36949
36949
  };
36950
36950
  Subscription2.prototype.add = function(teardown) {
36951
- var _a23;
36951
+ var _a22;
36952
36952
  if (teardown && teardown !== this) {
36953
36953
  if (this.closed) {
36954
36954
  execFinalizer(teardown);
@@ -36959,7 +36959,7 @@ var Subscription = (function() {
36959
36959
  }
36960
36960
  teardown._addParent(this);
36961
36961
  }
36962
- (this._finalizers = (_a23 = this._finalizers) !== null && _a23 !== void 0 ? _a23 : []).push(teardown);
36962
+ (this._finalizers = (_a22 = this._finalizers) !== null && _a22 !== void 0 ? _a22 : []).push(teardown);
36963
36963
  }
36964
36964
  }
36965
36965
  };
@@ -37085,7 +37085,7 @@ function errorContext(cb) {
37085
37085
  }
37086
37086
  cb();
37087
37087
  if (isRoot) {
37088
- var _a23 = context, errorThrown = _a23.errorThrown, error = _a23.error;
37088
+ var _a22 = context, errorThrown = _a22.errorThrown, error = _a22.error;
37089
37089
  context = null;
37090
37090
  if (errorThrown) {
37091
37091
  throw error;
@@ -37329,7 +37329,7 @@ var Observable = (function() {
37329
37329
  var _this = this;
37330
37330
  var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
37331
37331
  errorContext(function() {
37332
- var _a23 = _this, operator = _a23.operator, source = _a23.source;
37332
+ var _a22 = _this, operator = _a22.operator, source = _a22.source;
37333
37333
  subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
37334
37334
  });
37335
37335
  return subscriber;
@@ -37361,8 +37361,8 @@ var Observable = (function() {
37361
37361
  });
37362
37362
  };
37363
37363
  Observable2.prototype._subscribe = function(subscriber) {
37364
- var _a23;
37365
- return (_a23 = this.source) === null || _a23 === void 0 ? void 0 : _a23.subscribe(subscriber);
37364
+ var _a22;
37365
+ return (_a22 = this.source) === null || _a22 === void 0 ? void 0 : _a22.subscribe(subscriber);
37366
37366
  };
37367
37367
  Observable2.prototype[observable] = function() {
37368
37368
  return this;
@@ -37394,8 +37394,8 @@ var Observable = (function() {
37394
37394
  return Observable2;
37395
37395
  })();
37396
37396
  function getPromiseCtor(promiseCtor) {
37397
- var _a23;
37398
- return (_a23 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a23 !== void 0 ? _a23 : Promise;
37397
+ var _a22;
37398
+ return (_a22 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a22 !== void 0 ? _a22 : Promise;
37399
37399
  }
37400
37400
  __name(getPromiseCtor, "getPromiseCtor");
37401
37401
  function isObserver(value2) {
@@ -37468,11 +37468,11 @@ var OperatorSubscriber = (function(_super) {
37468
37468
  }
37469
37469
  __name(OperatorSubscriber2, "OperatorSubscriber");
37470
37470
  OperatorSubscriber2.prototype.unsubscribe = function() {
37471
- var _a23;
37471
+ var _a22;
37472
37472
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
37473
37473
  var closed_1 = this.closed;
37474
37474
  _super.prototype.unsubscribe.call(this);
37475
- !closed_1 && ((_a23 = this.onFinalize) === null || _a23 === void 0 ? void 0 : _a23.call(this));
37475
+ !closed_1 && ((_a22 = this.onFinalize) === null || _a22 === void 0 ? void 0 : _a22.call(this));
37476
37476
  }
37477
37477
  };
37478
37478
  return OperatorSubscriber2;
@@ -37514,7 +37514,7 @@ var Subject = (function(_super) {
37514
37514
  Subject2.prototype.next = function(value2) {
37515
37515
  var _this = this;
37516
37516
  errorContext(function() {
37517
- var e_1, _a23;
37517
+ var e_1, _a22;
37518
37518
  _this._throwIfClosed();
37519
37519
  if (!_this.isStopped) {
37520
37520
  if (!_this.currentObservers) {
@@ -37529,7 +37529,7 @@ var Subject = (function(_super) {
37529
37529
  e_1 = { error: e_1_1 };
37530
37530
  } finally {
37531
37531
  try {
37532
- if (_c2 && !_c2.done && (_a23 = _b2.return)) _a23.call(_b2);
37532
+ if (_c2 && !_c2.done && (_a22 = _b2.return)) _a22.call(_b2);
37533
37533
  } finally {
37534
37534
  if (e_1) throw e_1.error;
37535
37535
  }
@@ -37570,8 +37570,8 @@ var Subject = (function(_super) {
37570
37570
  };
37571
37571
  Object.defineProperty(Subject2.prototype, "observed", {
37572
37572
  get: /* @__PURE__ */ __name(function() {
37573
- var _a23;
37574
- return ((_a23 = this.observers) === null || _a23 === void 0 ? void 0 : _a23.length) > 0;
37573
+ var _a22;
37574
+ return ((_a22 = this.observers) === null || _a22 === void 0 ? void 0 : _a22.length) > 0;
37575
37575
  }, "get"),
37576
37576
  enumerable: false,
37577
37577
  configurable: true
@@ -37587,7 +37587,7 @@ var Subject = (function(_super) {
37587
37587
  };
37588
37588
  Subject2.prototype._innerSubscribe = function(subscriber) {
37589
37589
  var _this = this;
37590
- var _a23 = this, hasError = _a23.hasError, isStopped = _a23.isStopped, observers = _a23.observers;
37590
+ var _a22 = this, hasError = _a22.hasError, isStopped = _a22.isStopped, observers = _a22.observers;
37591
37591
  if (hasError || isStopped) {
37592
37592
  return EMPTY_SUBSCRIPTION;
37593
37593
  }
@@ -37599,7 +37599,7 @@ var Subject = (function(_super) {
37599
37599
  });
37600
37600
  };
37601
37601
  Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
37602
- var _a23 = this, hasError = _a23.hasError, thrownError = _a23.thrownError, isStopped = _a23.isStopped;
37602
+ var _a22 = this, hasError = _a22.hasError, thrownError = _a22.thrownError, isStopped = _a22.isStopped;
37603
37603
  if (hasError) {
37604
37604
  subscriber.error(thrownError);
37605
37605
  } else if (isStopped) {
@@ -37626,20 +37626,20 @@ var AnonymousSubject = (function(_super) {
37626
37626
  }
37627
37627
  __name(AnonymousSubject2, "AnonymousSubject");
37628
37628
  AnonymousSubject2.prototype.next = function(value2) {
37629
- var _a23, _b2;
37630
- (_b2 = (_a23 = this.destination) === null || _a23 === void 0 ? void 0 : _a23.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a23, value2);
37629
+ var _a22, _b2;
37630
+ (_b2 = (_a22 = this.destination) === null || _a22 === void 0 ? void 0 : _a22.next) === null || _b2 === void 0 ? void 0 : _b2.call(_a22, value2);
37631
37631
  };
37632
37632
  AnonymousSubject2.prototype.error = function(err) {
37633
- var _a23, _b2;
37634
- (_b2 = (_a23 = this.destination) === null || _a23 === void 0 ? void 0 : _a23.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a23, err);
37633
+ var _a22, _b2;
37634
+ (_b2 = (_a22 = this.destination) === null || _a22 === void 0 ? void 0 : _a22.error) === null || _b2 === void 0 ? void 0 : _b2.call(_a22, err);
37635
37635
  };
37636
37636
  AnonymousSubject2.prototype.complete = function() {
37637
- var _a23, _b2;
37638
- (_b2 = (_a23 = this.destination) === null || _a23 === void 0 ? void 0 : _a23.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a23);
37637
+ var _a22, _b2;
37638
+ (_b2 = (_a22 = this.destination) === null || _a22 === void 0 ? void 0 : _a22.complete) === null || _b2 === void 0 ? void 0 : _b2.call(_a22);
37639
37639
  };
37640
37640
  AnonymousSubject2.prototype._subscribe = function(subscriber) {
37641
- var _a23, _b2;
37642
- return (_b2 = (_a23 = this.source) === null || _a23 === void 0 ? void 0 : _a23.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : EMPTY_SUBSCRIPTION;
37641
+ var _a22, _b2;
37642
+ return (_b2 = (_a22 = this.source) === null || _a22 === void 0 ? void 0 : _a22.subscribe(subscriber)) !== null && _b2 !== void 0 ? _b2 : EMPTY_SUBSCRIPTION;
37643
37643
  };
37644
37644
  return AnonymousSubject2;
37645
37645
  })(Subject);
@@ -37666,7 +37666,7 @@ var BehaviorSubject = (function(_super) {
37666
37666
  return subscription;
37667
37667
  };
37668
37668
  BehaviorSubject2.prototype.getValue = function() {
37669
- var _a23 = this, hasError = _a23.hasError, thrownError = _a23.thrownError, _value2 = _a23._value;
37669
+ var _a22 = this, hasError = _a22.hasError, thrownError = _a22.thrownError, _value2 = _a22._value;
37670
37670
  if (hasError) {
37671
37671
  throw thrownError;
37672
37672
  }
@@ -37713,7 +37713,7 @@ var ReplaySubject = (function(_super) {
37713
37713
  }
37714
37714
  __name(ReplaySubject2, "ReplaySubject");
37715
37715
  ReplaySubject2.prototype.next = function(value2) {
37716
- var _a23 = this, isStopped = _a23.isStopped, _buffer = _a23._buffer, _infiniteTimeWindow = _a23._infiniteTimeWindow, _timestampProvider = _a23._timestampProvider, _windowTime = _a23._windowTime;
37716
+ var _a22 = this, isStopped = _a22.isStopped, _buffer = _a22._buffer, _infiniteTimeWindow = _a22._infiniteTimeWindow, _timestampProvider = _a22._timestampProvider, _windowTime = _a22._windowTime;
37717
37717
  if (!isStopped) {
37718
37718
  _buffer.push(value2);
37719
37719
  !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
@@ -37725,7 +37725,7 @@ var ReplaySubject = (function(_super) {
37725
37725
  this._throwIfClosed();
37726
37726
  this._trimBuffer();
37727
37727
  var subscription = this._innerSubscribe(subscriber);
37728
- var _a23 = this, _infiniteTimeWindow = _a23._infiniteTimeWindow, _buffer = _a23._buffer;
37728
+ var _a22 = this, _infiniteTimeWindow = _a22._infiniteTimeWindow, _buffer = _a22._buffer;
37729
37729
  var copy = _buffer.slice();
37730
37730
  for (var i10 = 0; i10 < copy.length && !subscriber.closed; i10 += _infiniteTimeWindow ? 1 : 2) {
37731
37731
  subscriber.next(copy[i10]);
@@ -37734,7 +37734,7 @@ var ReplaySubject = (function(_super) {
37734
37734
  return subscription;
37735
37735
  };
37736
37736
  ReplaySubject2.prototype._trimBuffer = function() {
37737
- var _a23 = this, _bufferSize = _a23._bufferSize, _timestampProvider = _a23._timestampProvider, _buffer = _a23._buffer, _infiniteTimeWindow = _a23._infiniteTimeWindow;
37737
+ var _a22 = this, _bufferSize = _a22._bufferSize, _timestampProvider = _a22._timestampProvider, _buffer = _a22._buffer, _infiniteTimeWindow = _a22._infiniteTimeWindow;
37738
37738
  var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
37739
37739
  _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
37740
37740
  if (!_infiniteTimeWindow) {
@@ -37797,7 +37797,7 @@ var AsyncAction = (function(_super) {
37797
37797
  }
37798
37798
  __name(AsyncAction2, "AsyncAction");
37799
37799
  AsyncAction2.prototype.schedule = function(state, delay2) {
37800
- var _a23;
37800
+ var _a22;
37801
37801
  if (delay2 === void 0) {
37802
37802
  delay2 = 0;
37803
37803
  }
@@ -37812,7 +37812,7 @@ var AsyncAction = (function(_super) {
37812
37812
  }
37813
37813
  this.pending = true;
37814
37814
  this.delay = delay2;
37815
- this.id = (_a23 = this.id) !== null && _a23 !== void 0 ? _a23 : this.requestAsyncId(scheduler, this.id, delay2);
37815
+ this.id = (_a22 = this.id) !== null && _a22 !== void 0 ? _a22 : this.requestAsyncId(scheduler, this.id, delay2);
37816
37816
  return this;
37817
37817
  };
37818
37818
  AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) {
@@ -37861,7 +37861,7 @@ var AsyncAction = (function(_super) {
37861
37861
  };
37862
37862
  AsyncAction2.prototype.unsubscribe = function() {
37863
37863
  if (!this.closed) {
37864
- var _a23 = this, id = _a23.id, scheduler = _a23.scheduler;
37864
+ var _a22 = this, id = _a22.id, scheduler = _a22.scheduler;
37865
37865
  var actions = scheduler.actions;
37866
37866
  this.work = this.state = this.scheduler = null;
37867
37867
  this.pending = false;
@@ -38009,7 +38009,7 @@ __name(isIterable, "isIterable");
38009
38009
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
38010
38010
  function readableStreamLikeToAsyncGenerator(readableStream) {
38011
38011
  return __asyncGenerator(this, arguments, /* @__PURE__ */ __name(function readableStreamLikeToAsyncGenerator_1() {
38012
- var reader, _a23, value2, done;
38012
+ var reader, _a22, value2, done;
38013
38013
  return __generator(this, function(_b2) {
38014
38014
  switch (_b2.label) {
38015
38015
  case 0:
@@ -38022,7 +38022,7 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
38022
38022
  if (false) return [3, 8];
38023
38023
  return [4, __await(reader.read())];
38024
38024
  case 3:
38025
- _a23 = _b2.sent(), value2 = _a23.value, done = _a23.done;
38025
+ _a22 = _b2.sent(), value2 = _a22.value, done = _a22.done;
38026
38026
  if (!done) return [3, 5];
38027
38027
  return [4, __await(void 0)];
38028
38028
  case 4:
@@ -38113,7 +38113,7 @@ function fromPromise(promise) {
38113
38113
  __name(fromPromise, "fromPromise");
38114
38114
  function fromIterable(iterable) {
38115
38115
  return new Observable(function(subscriber) {
38116
- var e_1, _a23;
38116
+ var e_1, _a22;
38117
38117
  try {
38118
38118
  for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
38119
38119
  var value2 = iterable_1_1.value;
@@ -38126,7 +38126,7 @@ function fromIterable(iterable) {
38126
38126
  e_1 = { error: e_1_1 };
38127
38127
  } finally {
38128
38128
  try {
38129
- if (iterable_1_1 && !iterable_1_1.done && (_a23 = iterable_1.return)) _a23.call(iterable_1);
38129
+ if (iterable_1_1 && !iterable_1_1.done && (_a22 = iterable_1.return)) _a22.call(iterable_1);
38130
38130
  } finally {
38131
38131
  if (e_1) throw e_1.error;
38132
38132
  }
@@ -38149,7 +38149,7 @@ function fromReadableStreamLike(readableStream) {
38149
38149
  __name(fromReadableStreamLike, "fromReadableStreamLike");
38150
38150
  function process2(asyncIterable, subscriber) {
38151
38151
  var asyncIterable_1, asyncIterable_1_1;
38152
- var e_2, _a23;
38152
+ var e_2, _a22;
38153
38153
  return __awaiter(this, void 0, void 0, function() {
38154
38154
  var value2, e_2_1;
38155
38155
  return __generator(this, function(_b2) {
@@ -38178,8 +38178,8 @@ function process2(asyncIterable, subscriber) {
38178
38178
  return [3, 11];
38179
38179
  case 6:
38180
38180
  _b2.trys.push([6, , 9, 10]);
38181
- if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a23 = asyncIterable_1.return))) return [3, 8];
38182
- return [4, _a23.call(asyncIterable_1)];
38181
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a22 = asyncIterable_1.return))) return [3, 8];
38182
+ return [4, _a22.call(asyncIterable_1)];
38183
38183
  case 7:
38184
38184
  _b2.sent();
38185
38185
  _b2.label = 8;
@@ -38295,11 +38295,11 @@ function scheduleIterable(input, scheduler) {
38295
38295
  executeSchedule(subscriber, scheduler, function() {
38296
38296
  iterator2 = input[iterator]();
38297
38297
  executeSchedule(subscriber, scheduler, function() {
38298
- var _a23;
38298
+ var _a22;
38299
38299
  var value2;
38300
38300
  var done;
38301
38301
  try {
38302
- _a23 = iterator2.next(), value2 = _a23.value, done = _a23.done;
38302
+ _a22 = iterator2.next(), value2 = _a22.value, done = _a22.done;
38303
38303
  } catch (err) {
38304
38304
  subscriber.error(err);
38305
38305
  return;
@@ -38462,7 +38462,7 @@ function combineLatest() {
38462
38462
  }
38463
38463
  var scheduler = popScheduler(args);
38464
38464
  var resultSelector = popResultSelector(args);
38465
- var _a23 = argsArgArrayOrObject(args), observables = _a23.args, keys2 = _a23.keys;
38465
+ var _a22 = argsArgArrayOrObject(args), observables = _a22.args, keys2 = _a22.keys;
38466
38466
  if (observables.length === 0) {
38467
38467
  return from([], scheduler);
38468
38468
  }
@@ -38636,11 +38636,11 @@ function fromEvent(target, eventName, options, resultSelector) {
38636
38636
  if (resultSelector) {
38637
38637
  return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
38638
38638
  }
38639
- var _a23 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
38639
+ var _a22 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
38640
38640
  return function(handler2) {
38641
38641
  return target[methodName](eventName, handler2, options);
38642
38642
  };
38643
- }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a23[0], remove2 = _a23[1];
38643
+ }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add2 = _a22[0], remove2 = _a22[1];
38644
38644
  if (!add2) {
38645
38645
  if (isArrayLike(target)) {
38646
38646
  return mergeMap(function(subTarget) {
@@ -38781,7 +38781,7 @@ function bufferCount(bufferSize, startBufferEvery) {
38781
38781
  var buffers = [];
38782
38782
  var count2 = 0;
38783
38783
  source.subscribe(createOperatorSubscriber(subscriber, function(value2) {
38784
- var e_1, _a23, e_2, _b2;
38784
+ var e_1, _a22, e_2, _b2;
38785
38785
  var toEmit = null;
38786
38786
  if (count2++ % startBufferEvery === 0) {
38787
38787
  buffers.push([]);
@@ -38799,7 +38799,7 @@ function bufferCount(bufferSize, startBufferEvery) {
38799
38799
  e_1 = { error: e_1_1 };
38800
38800
  } finally {
38801
38801
  try {
38802
- if (buffers_1_1 && !buffers_1_1.done && (_a23 = buffers_1.return)) _a23.call(buffers_1);
38802
+ if (buffers_1_1 && !buffers_1_1.done && (_a22 = buffers_1.return)) _a22.call(buffers_1);
38803
38803
  } finally {
38804
38804
  if (e_1) throw e_1.error;
38805
38805
  }
@@ -38822,7 +38822,7 @@ function bufferCount(bufferSize, startBufferEvery) {
38822
38822
  }
38823
38823
  }
38824
38824
  }, function() {
38825
- var e_3, _a23;
38825
+ var e_3, _a22;
38826
38826
  try {
38827
38827
  for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
38828
38828
  var buffer2 = buffers_2_1.value;
@@ -38832,7 +38832,7 @@ function bufferCount(bufferSize, startBufferEvery) {
38832
38832
  e_3 = { error: e_3_1 };
38833
38833
  } finally {
38834
38834
  try {
38835
- if (buffers_2_1 && !buffers_2_1.done && (_a23 = buffers_2.return)) _a23.call(buffers_2);
38835
+ if (buffers_2_1 && !buffers_2_1.done && (_a22 = buffers_2.return)) _a22.call(buffers_2);
38836
38836
  } finally {
38837
38837
  if (e_3) throw e_3.error;
38838
38838
  }
@@ -38847,12 +38847,12 @@ __name(bufferCount, "bufferCount");
38847
38847
 
38848
38848
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js
38849
38849
  function bufferTime(bufferTimeSpan) {
38850
- var _a23, _b2;
38850
+ var _a22, _b2;
38851
38851
  var otherArgs = [];
38852
38852
  for (var _i = 1; _i < arguments.length; _i++) {
38853
38853
  otherArgs[_i - 1] = arguments[_i];
38854
38854
  }
38855
- var scheduler = (_a23 = popScheduler(otherArgs)) !== null && _a23 !== void 0 ? _a23 : asyncScheduler;
38855
+ var scheduler = (_a22 = popScheduler(otherArgs)) !== null && _a22 !== void 0 ? _a22 : asyncScheduler;
38856
38856
  var bufferCreationInterval = (_b2 = otherArgs[0]) !== null && _b2 !== void 0 ? _b2 : null;
38857
38857
  var maxBufferSize = otherArgs[1] || Infinity;
38858
38858
  return operate(function(source, subscriber) {
@@ -38887,7 +38887,7 @@ function bufferTime(bufferTimeSpan) {
38887
38887
  }
38888
38888
  startBuffer();
38889
38889
  var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value2) {
38890
- var e_1, _a24;
38890
+ var e_1, _a23;
38891
38891
  var recordsCopy = bufferRecords.slice();
38892
38892
  try {
38893
38893
  for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
@@ -38900,7 +38900,7 @@ function bufferTime(bufferTimeSpan) {
38900
38900
  e_1 = { error: e_1_1 };
38901
38901
  } finally {
38902
38902
  try {
38903
- if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a24 = recordsCopy_1.return)) _a24.call(recordsCopy_1);
38903
+ if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a23 = recordsCopy_1.return)) _a23.call(recordsCopy_1);
38904
38904
  } finally {
38905
38905
  if (e_1) throw e_1.error;
38906
38906
  }
@@ -39028,9 +39028,9 @@ function share(options) {
39028
39028
  if (options === void 0) {
39029
39029
  options = {};
39030
39030
  }
39031
- var _a23 = options.connector, connector = _a23 === void 0 ? function() {
39031
+ var _a22 = options.connector, connector = _a22 === void 0 ? function() {
39032
39032
  return new Subject();
39033
- } : _a23, _b2 = options.resetOnError, resetOnError = _b2 === void 0 ? true : _b2, _c2 = options.resetOnComplete, resetOnComplete = _c2 === void 0 ? true : _c2, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
39033
+ } : _a22, _b2 = options.resetOnError, resetOnError = _b2 === void 0 ? true : _b2, _c2 = options.resetOnComplete, resetOnComplete = _c2 === void 0 ? true : _c2, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
39034
39034
  return function(wrapperSource) {
39035
39035
  var connection;
39036
39036
  var resetConnection;
@@ -39113,11 +39113,11 @@ __name(handleReset, "handleReset");
39113
39113
 
39114
39114
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js
39115
39115
  function shareReplay(configOrBufferSize, windowTime2, scheduler) {
39116
- var _a23, _b2, _c2;
39116
+ var _a22, _b2, _c2;
39117
39117
  var bufferSize;
39118
39118
  var refCount2 = false;
39119
39119
  if (configOrBufferSize && typeof configOrBufferSize === "object") {
39120
- _a23 = configOrBufferSize.bufferSize, bufferSize = _a23 === void 0 ? Infinity : _a23, _b2 = configOrBufferSize.windowTime, windowTime2 = _b2 === void 0 ? Infinity : _b2, _c2 = configOrBufferSize.refCount, refCount2 = _c2 === void 0 ? false : _c2, scheduler = configOrBufferSize.scheduler;
39120
+ _a22 = configOrBufferSize.bufferSize, bufferSize = _a22 === void 0 ? Infinity : _a22, _b2 = configOrBufferSize.windowTime, windowTime2 = _b2 === void 0 ? Infinity : _b2, _c2 = configOrBufferSize.refCount, refCount2 = _c2 === void 0 ? false : _c2, scheduler = configOrBufferSize.scheduler;
39121
39121
  } else {
39122
39122
  bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
39123
39123
  }
@@ -39159,7 +39159,7 @@ __name(takeUntil, "takeUntil");
39159
39159
  // node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js
39160
39160
  function throttle(durationSelector, config2) {
39161
39161
  return operate(function(source, subscriber) {
39162
- var _a23 = config2 !== null && config2 !== void 0 ? config2 : {}, _b2 = _a23.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a23.trailing, trailing = _c2 === void 0 ? false : _c2;
39162
+ var _a22 = config2 !== null && config2 !== void 0 ? config2 : {}, _b2 = _a22.leading, leading = _b2 === void 0 ? true : _b2, _c2 = _a22.trailing, trailing = _c2 === void 0 ? false : _c2;
39163
39163
  var hasValue = false;
39164
39164
  var sendValue = null;
39165
39165
  var throttled = null;
@@ -39419,7 +39419,7 @@ function n5(t8) {
39419
39419
  }
39420
39420
  __name(n5, "n");
39421
39421
 
39422
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/index.js
39422
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/index.js
39423
39423
  var dist_ts_exports25 = {};
39424
39424
  __export(dist_ts_exports25, {
39425
39425
  DomTools: () => DomTools,
@@ -39430,7 +39430,7 @@ __export(dist_ts_exports25, {
39430
39430
  plugins: () => domtools_pluginexports_exports
39431
39431
  });
39432
39432
 
39433
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.elementbasic.js
39433
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.elementbasic.js
39434
39434
  var domtools_elementbasic_exports = {};
39435
39435
  __export(domtools_elementbasic_exports, {
39436
39436
  setup: () => setup,
@@ -73941,7 +73941,7 @@ var Lenis = class {
73941
73941
  }
73942
73942
  };
73943
73943
 
73944
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.plugins.js
73944
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.plugins.js
73945
73945
  var import_sweet_scroll = __toESM(require_sweet_scroll(), 1);
73946
73946
  var lik = {
73947
73947
  ObjectMap,
@@ -73949,7 +73949,7 @@ var lik = {
73949
73949
  FastMap
73950
73950
  };
73951
73951
 
73952
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.breakpoints.js
73952
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.breakpoints.js
73953
73953
  var domtools_css_breakpoints_exports = {};
73954
73954
  __export(domtools_css_breakpoints_exports, {
73955
73955
  containerContextStyles: () => containerContextStyles,
@@ -74022,21 +74022,24 @@ var cssForPhone = /* @__PURE__ */ __name((cssArg) => {
74022
74022
  return cssForViewport(cssArg, `(max-width: ${phone}px)`);
74023
74023
  }, "cssForPhone");
74024
74024
 
74025
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.scroller.js
74025
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.scroller.js
74026
74026
  var Scroller = class {
74027
74027
  static {
74028
74028
  __name(this, "Scroller");
74029
74029
  }
74030
74030
  domtoolsInstance;
74031
+ disposed = false;
74031
74032
  // Array to store scroll callback functions.
74032
74033
  scrollCallbacks = [];
74033
74034
  // Lenis instance (if activated) or null.
74034
74035
  lenisInstance = null;
74036
+ lenisScrollUnsubscribe = null;
74037
+ nativeScrollListenerAttached = false;
74035
74038
  // Bound handlers to allow removal from event listeners.
74036
- handleNativeScroll = /* @__PURE__ */ __name((event) => {
74039
+ handleNativeScroll = /* @__PURE__ */ __name((_event) => {
74037
74040
  this.executeScrollCallbacks();
74038
74041
  }, "handleNativeScroll");
74039
- handleLenisScroll = /* @__PURE__ */ __name((info) => {
74042
+ handleLenisScroll = /* @__PURE__ */ __name((_info) => {
74040
74043
  this.executeScrollCallbacks();
74041
74044
  }, "handleLenisScroll");
74042
74045
  constructor(domtoolsInstanceArg) {
@@ -74057,20 +74060,34 @@ var Scroller = class {
74057
74060
  * Detects whether native smooth scrolling is enabled.
74058
74061
  */
74059
74062
  async detectNativeSmoothScroll() {
74063
+ const rootScrollBehavior = getComputedStyle(document.documentElement).scrollBehavior;
74064
+ const bodyScrollBehavior = document.body ? getComputedStyle(document.body).scrollBehavior : "auto";
74065
+ if (rootScrollBehavior === "smooth" || bodyScrollBehavior === "smooth") {
74066
+ return true;
74067
+ }
74060
74068
  const done = dist_ts_exports.defer();
74061
- const sampleSize = 100;
74069
+ const sampleSize = 12;
74062
74070
  const acceptableDeltaDifference = 3;
74063
74071
  const minimumSmoothRatio = 0.75;
74072
+ const timeoutInMs = 1200;
74064
74073
  const eventDeltas = [];
74074
+ const finalize2 = /* @__PURE__ */ __name((result) => {
74075
+ window.removeEventListener("wheel", onWheel);
74076
+ window.clearTimeout(timeoutId);
74077
+ done.resolve(result);
74078
+ }, "finalize");
74065
74079
  function onWheel(event) {
74066
74080
  eventDeltas.push(event.deltaY);
74067
74081
  if (eventDeltas.length >= sampleSize) {
74068
- window.removeEventListener("wheel", onWheel);
74069
74082
  analyzeEvents();
74070
74083
  }
74071
74084
  }
74072
74085
  __name(onWheel, "onWheel");
74073
74086
  function analyzeEvents() {
74087
+ if (eventDeltas.length < 2) {
74088
+ finalize2(false);
74089
+ return;
74090
+ }
74074
74091
  const totalDiffs = eventDeltas.length - 1;
74075
74092
  let smallDiffCount = 0;
74076
74093
  for (let i10 = 0; i10 < totalDiffs; i10++) {
@@ -74080,16 +74097,13 @@ var Scroller = class {
74080
74097
  }
74081
74098
  }
74082
74099
  const smoothRatio = smallDiffCount / totalDiffs;
74083
- if (smoothRatio >= minimumSmoothRatio) {
74084
- console.log("Smooth scrolling detected.");
74085
- done.resolve(true);
74086
- } else {
74087
- console.log("Smooth scrolling NOT detected.");
74088
- done.resolve(false);
74089
- }
74100
+ finalize2(smoothRatio >= minimumSmoothRatio);
74090
74101
  }
74091
74102
  __name(analyzeEvents, "analyzeEvents");
74092
- window.addEventListener("wheel", onWheel);
74103
+ const timeoutId = window.setTimeout(() => {
74104
+ analyzeEvents();
74105
+ }, timeoutInMs);
74106
+ window.addEventListener("wheel", onWheel, { passive: true });
74093
74107
  return done.promise;
74094
74108
  }
74095
74109
  /**
@@ -74098,6 +74112,12 @@ var Scroller = class {
74098
74112
  * Lenis will be destroyed immediately.
74099
74113
  */
74100
74114
  async enableLenisScroll(optionsArg) {
74115
+ if (this.disposed) {
74116
+ return;
74117
+ }
74118
+ if (this.lenisInstance) {
74119
+ this.disableLenisScroll();
74120
+ }
74101
74121
  const lenis = new Lenis({
74102
74122
  autoRaf: true
74103
74123
  });
@@ -74110,13 +74130,15 @@ var Scroller = class {
74110
74130
  this.lenisInstance = lenis;
74111
74131
  this.detachNativeScrollListener();
74112
74132
  this.attachLenisScrollListener();
74113
- const originalDestroy = lenis.destroy.bind(lenis);
74114
- lenis.destroy = () => {
74115
- originalDestroy();
74116
- this.detachLenisScrollListener();
74117
- this.attachNativeScrollListener();
74118
- this.lenisInstance = null;
74119
- };
74133
+ }
74134
+ disableLenisScroll() {
74135
+ if (!this.lenisInstance) {
74136
+ return;
74137
+ }
74138
+ this.detachLenisScrollListener();
74139
+ this.lenisInstance.destroy();
74140
+ this.lenisInstance = null;
74141
+ this.attachNativeScrollListener();
74120
74142
  }
74121
74143
  /**
74122
74144
  * Registers a callback to be executed on scroll.
@@ -74124,6 +74146,9 @@ var Scroller = class {
74124
74146
  */
74125
74147
  onScroll(callback) {
74126
74148
  this.scrollCallbacks.push(callback);
74149
+ return () => {
74150
+ this.scrollCallbacks = this.scrollCallbacks.filter((existingCallback) => existingCallback !== callback);
74151
+ };
74127
74152
  }
74128
74153
  /**
74129
74154
  * Executes all registered scroll callbacks concurrently.
@@ -74141,33 +74166,54 @@ var Scroller = class {
74141
74166
  * Attaches the native scroll event listener.
74142
74167
  */
74143
74168
  attachNativeScrollListener() {
74169
+ if (this.nativeScrollListenerAttached || this.disposed) {
74170
+ return;
74171
+ }
74144
74172
  window.addEventListener("scroll", this.handleNativeScroll);
74173
+ this.nativeScrollListenerAttached = true;
74145
74174
  }
74146
74175
  /**
74147
74176
  * Detaches the native scroll event listener.
74148
74177
  */
74149
74178
  detachNativeScrollListener() {
74179
+ if (!this.nativeScrollListenerAttached) {
74180
+ return;
74181
+ }
74150
74182
  window.removeEventListener("scroll", this.handleNativeScroll);
74183
+ this.nativeScrollListenerAttached = false;
74151
74184
  }
74152
74185
  /**
74153
74186
  * Attaches the Lenis scroll event listener.
74154
74187
  */
74155
74188
  attachLenisScrollListener() {
74156
- if (this.lenisInstance) {
74157
- this.lenisInstance.on("scroll", this.handleLenisScroll);
74189
+ if (this.lenisInstance && !this.lenisScrollUnsubscribe) {
74190
+ this.lenisScrollUnsubscribe = this.lenisInstance.on("scroll", this.handleLenisScroll);
74158
74191
  }
74159
74192
  }
74160
74193
  /**
74161
74194
  * Detaches the Lenis scroll event listener.
74162
74195
  */
74163
74196
  detachLenisScrollListener() {
74164
- if (this.lenisInstance) {
74165
- this.lenisInstance.off("scroll", this.handleLenisScroll);
74197
+ if (this.lenisScrollUnsubscribe) {
74198
+ this.lenisScrollUnsubscribe();
74199
+ this.lenisScrollUnsubscribe = null;
74200
+ }
74201
+ }
74202
+ dispose() {
74203
+ if (this.disposed) {
74204
+ return;
74166
74205
  }
74206
+ this.disposed = true;
74207
+ this.detachLenisScrollListener();
74208
+ this.lenisInstance?.destroy();
74209
+ this.lenisInstance = null;
74210
+ this.detachNativeScrollListener();
74211
+ this.scrollCallbacks = [];
74212
+ this.sweetScroller.destroy();
74167
74213
  }
74168
74214
  };
74169
74215
 
74170
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.thememanager.js
74216
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.thememanager.js
74171
74217
  var ThemeManager = class {
74172
74218
  static {
74173
74219
  __name(this, "ThemeManager");
@@ -74176,25 +74222,31 @@ var ThemeManager = class {
74176
74222
  goBrightBoolean = false;
74177
74223
  preferredColorSchemeMediaMatch = window.matchMedia("(prefers-color-scheme: light)");
74178
74224
  themeObservable = new dist_ts_exports2.rxjs.ReplaySubject(1);
74225
+ automaticGlobalThemeChangeSubscription = null;
74226
+ preferredColorSchemeChangeHandler = /* @__PURE__ */ __name((eventArg) => {
74227
+ this.goBrightBoolean = eventArg.matches;
74228
+ this.updateAllConnectedElements();
74229
+ }, "preferredColorSchemeChangeHandler");
74179
74230
  constructor(domtoolsRefArg) {
74180
74231
  this.domtoolsRef = domtoolsRefArg;
74181
74232
  this.goBrightBoolean = this.preferredColorSchemeMediaMatch.matches;
74182
- this.preferredColorSchemeMediaMatch.addEventListener("change", (eventArg) => {
74183
- this.goBrightBoolean = eventArg.matches;
74184
- this.updateAllConnectedElements();
74185
- });
74233
+ this.preferredColorSchemeMediaMatch.addEventListener("change", this.preferredColorSchemeChangeHandler);
74186
74234
  this.updateAllConnectedElements();
74187
74235
  }
74188
74236
  async enableAutomaticGlobalThemeChange() {
74189
- if (document.body && document.body.style) {
74190
- this.themeObservable.subscribe({
74237
+ await this.domtoolsRef.domReady.promise;
74238
+ if (!this.automaticGlobalThemeChangeSubscription) {
74239
+ this.automaticGlobalThemeChangeSubscription = this.themeObservable.subscribe({
74191
74240
  next: /* @__PURE__ */ __name((goBright) => {
74192
74241
  document.body.style.background = goBright ? "#fff" : "#000";
74193
74242
  }, "next")
74194
74243
  });
74195
74244
  }
74196
74245
  }
74197
- async updateAllConnectedElements() {
74246
+ updateAllConnectedElements() {
74247
+ if (this.domtoolsRef.disposed) {
74248
+ return;
74249
+ }
74198
74250
  this.themeObservable.next(this.goBrightBoolean);
74199
74251
  }
74200
74252
  /**
@@ -74218,9 +74270,15 @@ var ThemeManager = class {
74218
74270
  this.goBrightBoolean = !this.goBrightBoolean;
74219
74271
  this.updateAllConnectedElements();
74220
74272
  }
74273
+ dispose() {
74274
+ this.preferredColorSchemeMediaMatch.removeEventListener("change", this.preferredColorSchemeChangeHandler);
74275
+ this.automaticGlobalThemeChangeSubscription?.unsubscribe();
74276
+ this.automaticGlobalThemeChangeSubscription = null;
74277
+ this.themeObservable.complete();
74278
+ }
74221
74279
  };
74222
74280
 
74223
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.keyboard.js
74281
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.keyboard.js
74224
74282
  var Key;
74225
74283
  (function(Key2) {
74226
74284
  Key2[Key2["Backspace"] = 8] = "Backspace";
@@ -74345,6 +74403,7 @@ var Keyboard = class {
74345
74403
  domNode;
74346
74404
  mapCombosToHandlers = /* @__PURE__ */ new Map();
74347
74405
  pressedKeys = /* @__PURE__ */ new Set();
74406
+ listening = false;
74348
74407
  constructor(domNode) {
74349
74408
  this.domNode = domNode;
74350
74409
  this.startListening();
@@ -74356,40 +74415,67 @@ var Keyboard = class {
74356
74415
  return subject;
74357
74416
  }
74358
74417
  triggerKeyPress(keysArg) {
74359
- for (const key2 of keysArg) {
74418
+ const normalizedKeys = this.normalizeKeys(keysArg);
74419
+ for (const key2 of normalizedKeys) {
74360
74420
  this.pressedKeys.add(key2);
74361
74421
  }
74362
- this.checkMatchingKeyboardSubjects();
74363
- for (const key2 of keysArg) {
74422
+ this.checkMatchingKeyboardSubjects(this.createKeyboardEvent(normalizedKeys));
74423
+ for (const key2 of normalizedKeys) {
74364
74424
  this.pressedKeys.delete(key2);
74365
74425
  }
74366
74426
  }
74367
74427
  startListening() {
74428
+ if (this.listening) {
74429
+ return;
74430
+ }
74368
74431
  this.domNode.addEventListener("keydown", this.handleKeyDown);
74369
74432
  this.domNode.addEventListener("keyup", this.handleKeyUp);
74433
+ this.listening = true;
74370
74434
  }
74371
74435
  stopListening() {
74436
+ if (!this.listening) {
74437
+ return;
74438
+ }
74372
74439
  this.domNode.removeEventListener("keydown", this.handleKeyDown);
74373
74440
  this.domNode.removeEventListener("keyup", this.handleKeyUp);
74441
+ this.listening = false;
74374
74442
  }
74375
74443
  clear() {
74376
74444
  this.stopListening();
74445
+ for (const comboEntry of this.mapCombosToHandlers.values()) {
74446
+ for (const subject of comboEntry.subjects) {
74447
+ subject.complete();
74448
+ }
74449
+ }
74377
74450
  this.mapCombosToHandlers.clear();
74378
74451
  this.pressedKeys.clear();
74379
74452
  }
74453
+ dispose() {
74454
+ this.clear();
74455
+ }
74380
74456
  handleKeyDown = /* @__PURE__ */ __name((event) => {
74381
- this.pressedKeys.add(event.keyCode);
74457
+ const resolvedKey = this.resolveKey(event);
74458
+ if (resolvedKey === null) {
74459
+ return;
74460
+ }
74461
+ this.pressedKeys.add(resolvedKey);
74382
74462
  this.checkMatchingKeyboardSubjects(event);
74383
74463
  }, "handleKeyDown");
74384
74464
  checkMatchingKeyboardSubjects(payloadArg) {
74385
- this.mapCombosToHandlers.forEach((subjectArg, keysArg) => {
74386
- if (this.areAllKeysPressed(keysArg)) {
74387
- subjectArg.next(payloadArg);
74465
+ this.mapCombosToHandlers.forEach((comboEntry) => {
74466
+ if (this.areAllKeysPressed(comboEntry.keys)) {
74467
+ for (const subjectArg of comboEntry.subjects) {
74468
+ subjectArg.next(payloadArg);
74469
+ }
74388
74470
  }
74389
74471
  });
74390
74472
  }
74391
74473
  handleKeyUp = /* @__PURE__ */ __name((event) => {
74392
- this.pressedKeys.delete(event.keyCode);
74474
+ const resolvedKey = this.resolveKey(event);
74475
+ if (resolvedKey === null) {
74476
+ return;
74477
+ }
74478
+ this.pressedKeys.delete(resolvedKey);
74393
74479
  }, "handleKeyUp");
74394
74480
  areAllKeysPressed(keysArg) {
74395
74481
  let result = true;
@@ -74401,16 +74487,322 @@ var Keyboard = class {
74401
74487
  return result;
74402
74488
  }
74403
74489
  registerKeys(keysArg, subjectArg) {
74404
- if (!this.mapCombosToHandlers.has(keysArg)) {
74405
- this.mapCombosToHandlers.set(keysArg, subjectArg);
74406
- } else {
74407
- const subject = this.mapCombosToHandlers.get(keysArg);
74408
- return subject;
74490
+ const normalizedKeys = this.normalizeKeys(keysArg);
74491
+ const comboKey = normalizedKeys.join("+");
74492
+ const existingEntry = this.mapCombosToHandlers.get(comboKey);
74493
+ if (!existingEntry) {
74494
+ this.mapCombosToHandlers.set(comboKey, {
74495
+ keys: normalizedKeys,
74496
+ subjects: [subjectArg]
74497
+ });
74498
+ return;
74499
+ }
74500
+ existingEntry.subjects.push(subjectArg);
74501
+ }
74502
+ normalizeKeys(keysArg) {
74503
+ return [...new Set(keysArg)].sort((leftKey, rightKey) => leftKey - rightKey);
74504
+ }
74505
+ resolveKey(event) {
74506
+ return this.resolveKeyFromCode(event.code) ?? this.resolveKeyFromKey(event.key) ?? this.resolveKeyFromKeyCode(event.keyCode);
74507
+ }
74508
+ resolveKeyFromCode(codeArg) {
74509
+ if (!codeArg) {
74510
+ return null;
74511
+ }
74512
+ if (codeArg.startsWith("Key") && codeArg.length === 4) {
74513
+ return Key[codeArg.slice(3)] ?? null;
74514
+ }
74515
+ if (codeArg.startsWith("Digit") && codeArg.length === 6) {
74516
+ return this.resolveKeyFromKey(codeArg.slice(5));
74517
+ }
74518
+ switch (codeArg) {
74519
+ case "Backspace":
74520
+ return Key.Backspace;
74521
+ case "Tab":
74522
+ return Key.Tab;
74523
+ case "Enter":
74524
+ case "NumpadEnter":
74525
+ return Key.Enter;
74526
+ case "ShiftLeft":
74527
+ case "ShiftRight":
74528
+ return Key.Shift;
74529
+ case "ControlLeft":
74530
+ case "ControlRight":
74531
+ return Key.Ctrl;
74532
+ case "AltLeft":
74533
+ case "AltRight":
74534
+ return Key.Alt;
74535
+ case "Pause":
74536
+ return Key.PauseBreak;
74537
+ case "CapsLock":
74538
+ return Key.CapsLock;
74539
+ case "Escape":
74540
+ return Key.Escape;
74541
+ case "Space":
74542
+ return Key.Space;
74543
+ case "PageUp":
74544
+ return Key.PageUp;
74545
+ case "PageDown":
74546
+ return Key.PageDown;
74547
+ case "End":
74548
+ return Key.End;
74549
+ case "Home":
74550
+ return Key.Home;
74551
+ case "ArrowLeft":
74552
+ return Key.LeftArrow;
74553
+ case "ArrowUp":
74554
+ return Key.UpArrow;
74555
+ case "ArrowRight":
74556
+ return Key.RightArrow;
74557
+ case "ArrowDown":
74558
+ return Key.DownArrow;
74559
+ case "Insert":
74560
+ return Key.Insert;
74561
+ case "Delete":
74562
+ return Key.Delete;
74563
+ case "MetaLeft":
74564
+ return Key.LeftWindowKey;
74565
+ case "MetaRight":
74566
+ return Key.RightWindowKey;
74567
+ case "ContextMenu":
74568
+ return Key.SelectKey;
74569
+ case "Numpad0":
74570
+ return Key.Numpad0;
74571
+ case "Numpad1":
74572
+ return Key.Numpad1;
74573
+ case "Numpad2":
74574
+ return Key.Numpad2;
74575
+ case "Numpad3":
74576
+ return Key.Numpad3;
74577
+ case "Numpad4":
74578
+ return Key.Numpad4;
74579
+ case "Numpad5":
74580
+ return Key.Numpad5;
74581
+ case "Numpad6":
74582
+ return Key.Numpad6;
74583
+ case "Numpad7":
74584
+ return Key.Numpad7;
74585
+ case "Numpad8":
74586
+ return Key.Numpad8;
74587
+ case "Numpad9":
74588
+ return Key.Numpad9;
74589
+ case "NumpadMultiply":
74590
+ return Key.Multiply;
74591
+ case "NumpadAdd":
74592
+ return Key.Add;
74593
+ case "NumpadSubtract":
74594
+ return Key.Subtract;
74595
+ case "NumpadDecimal":
74596
+ return Key.DecimalPoint;
74597
+ case "NumpadDivide":
74598
+ return Key.Divide;
74599
+ case "F1":
74600
+ return Key.F1;
74601
+ case "F2":
74602
+ return Key.F2;
74603
+ case "F3":
74604
+ return Key.F3;
74605
+ case "F4":
74606
+ return Key.F4;
74607
+ case "F5":
74608
+ return Key.F5;
74609
+ case "F6":
74610
+ return Key.F6;
74611
+ case "F7":
74612
+ return Key.F7;
74613
+ case "F8":
74614
+ return Key.F8;
74615
+ case "F9":
74616
+ return Key.F9;
74617
+ case "F10":
74618
+ return Key.F10;
74619
+ case "F11":
74620
+ return Key.F11;
74621
+ case "F12":
74622
+ return Key.F12;
74623
+ case "NumLock":
74624
+ return Key.NumLock;
74625
+ case "ScrollLock":
74626
+ return Key.ScrollLock;
74627
+ case "Semicolon":
74628
+ return Key.SemiColon;
74629
+ case "Equal":
74630
+ return Key.Equals;
74631
+ case "Comma":
74632
+ return Key.Comma;
74633
+ case "Minus":
74634
+ return Key.Dash;
74635
+ case "Period":
74636
+ return Key.Period;
74637
+ case "Slash":
74638
+ return Key.ForwardSlash;
74639
+ case "Backquote":
74640
+ return Key.Tilde;
74641
+ case "BracketLeft":
74642
+ return Key.OpenBracket;
74643
+ case "BracketRight":
74644
+ return Key.ClosedBracket;
74645
+ case "Quote":
74646
+ return Key.Quote;
74647
+ default:
74648
+ return null;
74649
+ }
74650
+ }
74651
+ resolveKeyFromKey(keyArg) {
74652
+ if (!keyArg) {
74653
+ return null;
74654
+ }
74655
+ if (keyArg.length === 1) {
74656
+ const upperKey = keyArg.toUpperCase();
74657
+ if (upperKey >= "A" && upperKey <= "Z") {
74658
+ return Key[upperKey] ?? null;
74659
+ }
74660
+ switch (keyArg) {
74661
+ case "0":
74662
+ return Key.Zero;
74663
+ case "1":
74664
+ return Key.One;
74665
+ case "2":
74666
+ return Key.Two;
74667
+ case "3":
74668
+ return Key.Three;
74669
+ case "4":
74670
+ return Key.Four;
74671
+ case "5":
74672
+ return Key.Five;
74673
+ case "6":
74674
+ return Key.Six;
74675
+ case "7":
74676
+ return Key.Seven;
74677
+ case "8":
74678
+ return Key.Eight;
74679
+ case "9":
74680
+ return Key.Nine;
74681
+ case " ":
74682
+ return Key.Space;
74683
+ case ";":
74684
+ return Key.SemiColon;
74685
+ case "=":
74686
+ return Key.Equals;
74687
+ case ",":
74688
+ return Key.Comma;
74689
+ case "-":
74690
+ return Key.Dash;
74691
+ case ".":
74692
+ return Key.Period;
74693
+ case "/":
74694
+ return Key.ForwardSlash;
74695
+ case "`":
74696
+ return Key.Tilde;
74697
+ case "[":
74698
+ return Key.OpenBracket;
74699
+ case "]":
74700
+ return Key.ClosedBracket;
74701
+ case "'":
74702
+ return Key.Quote;
74703
+ default:
74704
+ return null;
74705
+ }
74706
+ }
74707
+ switch (keyArg) {
74708
+ case "Backspace":
74709
+ return Key.Backspace;
74710
+ case "Tab":
74711
+ return Key.Tab;
74712
+ case "Enter":
74713
+ return Key.Enter;
74714
+ case "Shift":
74715
+ return Key.Shift;
74716
+ case "Control":
74717
+ return Key.Ctrl;
74718
+ case "Alt":
74719
+ return Key.Alt;
74720
+ case "Pause":
74721
+ return Key.PauseBreak;
74722
+ case "CapsLock":
74723
+ return Key.CapsLock;
74724
+ case "Escape":
74725
+ return Key.Escape;
74726
+ case "PageUp":
74727
+ return Key.PageUp;
74728
+ case "PageDown":
74729
+ return Key.PageDown;
74730
+ case "End":
74731
+ return Key.End;
74732
+ case "Home":
74733
+ return Key.Home;
74734
+ case "ArrowLeft":
74735
+ return Key.LeftArrow;
74736
+ case "ArrowUp":
74737
+ return Key.UpArrow;
74738
+ case "ArrowRight":
74739
+ return Key.RightArrow;
74740
+ case "ArrowDown":
74741
+ return Key.DownArrow;
74742
+ case "Insert":
74743
+ return Key.Insert;
74744
+ case "Delete":
74745
+ return Key.Delete;
74746
+ case "Meta":
74747
+ return Key.LeftWindowKey;
74748
+ case "ContextMenu":
74749
+ return Key.SelectKey;
74750
+ case "NumLock":
74751
+ return Key.NumLock;
74752
+ case "ScrollLock":
74753
+ return Key.ScrollLock;
74754
+ default:
74755
+ return null;
74756
+ }
74757
+ }
74758
+ resolveKeyFromKeyCode(keyCodeArg) {
74759
+ if (typeof keyCodeArg !== "number") {
74760
+ return null;
74761
+ }
74762
+ return typeof Key[keyCodeArg] !== "undefined" ? keyCodeArg : null;
74763
+ }
74764
+ createKeyboardEvent(keysArg) {
74765
+ const triggerKey = keysArg[keysArg.length - 1] ?? Key.Enter;
74766
+ const keyDescriptor = this.getKeyDescriptor(triggerKey);
74767
+ return new KeyboardEvent("keydown", {
74768
+ key: keyDescriptor.key,
74769
+ code: keyDescriptor.code,
74770
+ ctrlKey: keysArg.includes(Key.Ctrl),
74771
+ shiftKey: keysArg.includes(Key.Shift),
74772
+ altKey: keysArg.includes(Key.Alt),
74773
+ metaKey: keysArg.includes(Key.LeftWindowKey) || keysArg.includes(Key.RightWindowKey)
74774
+ });
74775
+ }
74776
+ getKeyDescriptor(keyArg) {
74777
+ switch (keyArg) {
74778
+ case Key.Ctrl:
74779
+ return { key: "Control", code: "ControlLeft" };
74780
+ case Key.Shift:
74781
+ return { key: "Shift", code: "ShiftLeft" };
74782
+ case Key.Alt:
74783
+ return { key: "Alt", code: "AltLeft" };
74784
+ case Key.Enter:
74785
+ return { key: "Enter", code: "Enter" };
74786
+ case Key.Space:
74787
+ return { key: " ", code: "Space" };
74788
+ default: {
74789
+ const keyName = Key[keyArg];
74790
+ if (keyName && keyName.length === 1) {
74791
+ if (keyName >= "A" && keyName <= "Z") {
74792
+ return { key: keyName.toLowerCase(), code: `Key${keyName}` };
74793
+ }
74794
+ }
74795
+ if (keyArg >= Key.Zero && keyArg <= Key.Nine) {
74796
+ const digit = String(keyArg - Key.Zero);
74797
+ return { key: digit, code: `Digit${digit}` };
74798
+ }
74799
+ return { key: keyName ?? "Unidentified", code: "Unidentified" };
74800
+ }
74409
74801
  }
74410
74802
  }
74411
74803
  };
74412
74804
 
74413
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.domtools.js
74805
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.classes.domtools.js
74414
74806
  var DomTools = class _DomTools {
74415
74807
  static {
74416
74808
  __name(this, "DomTools");
@@ -74423,50 +74815,37 @@ var DomTools = class _DomTools {
74423
74815
  * setups domtools
74424
74816
  */
74425
74817
  static async setupDomTools(optionsArg = {}) {
74426
- if (!optionsArg.ignoreGlobal && _DomTools.initializationPromise) {
74427
- return await _DomTools.initializationPromise;
74428
- }
74429
- if (!optionsArg.ignoreGlobal) {
74430
- _DomTools.initializationPromise = (async () => {
74431
- let domToolsInstance;
74432
- if (!globalThis.deesDomTools) {
74433
- globalThis.deesDomTools = new _DomTools(optionsArg);
74434
- domToolsInstance = globalThis.deesDomTools;
74435
- const readyStateChangedFunc = /* @__PURE__ */ __name(() => {
74436
- if (document.readyState === "interactive" || document.readyState === "complete") {
74437
- domToolsInstance.elements.headElement = document.querySelector("head");
74438
- domToolsInstance.elements.bodyElement = document.querySelector("body");
74439
- domToolsInstance.keyboard = new Keyboard(document.body);
74440
- domToolsInstance.domReady.resolve();
74441
- }
74442
- }, "readyStateChangedFunc");
74443
- if (document.readyState === "interactive" || document.readyState === "complete") {
74444
- readyStateChangedFunc();
74445
- } else {
74446
- document.addEventListener("readystatechange", readyStateChangedFunc);
74447
- }
74448
- domToolsInstance.domToolsReady.resolve();
74449
- } else {
74450
- domToolsInstance = globalThis.deesDomTools;
74451
- }
74452
- await domToolsInstance.domToolsReady.promise;
74453
- return domToolsInstance;
74454
- })();
74455
- return await _DomTools.initializationPromise;
74456
- } else {
74818
+ if (optionsArg.ignoreGlobal) {
74457
74819
  const domToolsInstance = new _DomTools(optionsArg);
74820
+ await domToolsInstance.initializationPromise;
74458
74821
  return domToolsInstance;
74459
74822
  }
74823
+ if (globalThis.deesDomTools && !globalThis.deesDomTools.disposed) {
74824
+ await globalThis.deesDomTools.initializationPromise;
74825
+ return globalThis.deesDomTools;
74826
+ }
74827
+ if (!_DomTools.initializationPromise) {
74828
+ const domToolsInstance = new _DomTools(optionsArg);
74829
+ globalThis.deesDomTools = domToolsInstance;
74830
+ _DomTools.initializationPromise = domToolsInstance.initializationPromise.then(() => domToolsInstance).catch((error) => {
74831
+ if (globalThis.deesDomTools === domToolsInstance) {
74832
+ globalThis.deesDomTools = void 0;
74833
+ }
74834
+ _DomTools.initializationPromise = null;
74835
+ throw error;
74836
+ });
74837
+ }
74838
+ return await _DomTools.initializationPromise;
74460
74839
  }
74461
74840
  /**
74462
74841
  * if you can, use the static asysnc .setupDomTools() function instead since it is safer to use.
74463
74842
  */
74464
74843
  static getGlobalDomToolsSync() {
74465
74844
  const globalDomTools = globalThis.deesDomTools;
74466
- if (!globalDomTools) {
74845
+ if (!globalDomTools || globalDomTools.disposed) {
74467
74846
  throw new Error("You tried to access domtools synchronously too early");
74468
74847
  }
74469
- return globalThis.deesDomTools;
74848
+ return globalDomTools;
74470
74849
  }
74471
74850
  // ========
74472
74851
  // INSTANCE
@@ -74500,42 +74879,71 @@ var DomTools = class _DomTools {
74500
74879
  themeManager = new ThemeManager(this);
74501
74880
  keyboard = null;
74502
74881
  // Initialized after DOM ready to avoid accessing document.body before it exists
74882
+ disposed = false;
74503
74883
  domToolsReady = dist_ts_exports.defer();
74504
74884
  domReady = dist_ts_exports.defer();
74505
74885
  globalStylesReady = dist_ts_exports.defer();
74886
+ initializationPromise;
74887
+ managedDomNodes = [];
74888
+ readyStateChangedFunc = /* @__PURE__ */ __name(() => {
74889
+ this.tryMarkDomReady();
74890
+ }, "readyStateChangedFunc");
74506
74891
  constructor(optionsArg) {
74892
+ this.initializationPromise = this.initialize();
74893
+ }
74894
+ runOncePromiseMap = /* @__PURE__ */ new Map();
74895
+ async initialize() {
74896
+ this.tryMarkDomReady();
74897
+ if (this.domReady.status === "pending") {
74898
+ document.addEventListener("readystatechange", this.readyStateChangedFunc);
74899
+ }
74900
+ if (this.domToolsReady.status === "pending") {
74901
+ this.domToolsReady.resolve();
74902
+ }
74903
+ }
74904
+ tryMarkDomReady() {
74905
+ if (this.disposed || this.domReady.status !== "pending") {
74906
+ return;
74907
+ }
74908
+ if (document.readyState !== "interactive" && document.readyState !== "complete") {
74909
+ return;
74910
+ }
74911
+ if (!document.head || !document.body) {
74912
+ return;
74913
+ }
74914
+ this.elements.headElement = document.head;
74915
+ this.elements.bodyElement = document.body;
74916
+ if (!this.keyboard) {
74917
+ this.keyboard = new Keyboard(document.body);
74918
+ }
74919
+ document.removeEventListener("readystatechange", this.readyStateChangedFunc);
74920
+ this.domReady.resolve();
74921
+ }
74922
+ trackManagedDomNode(elementArg) {
74923
+ this.managedDomNodes.push(elementArg);
74924
+ return elementArg;
74925
+ }
74926
+ getHeadOrBodyElement() {
74927
+ const targetElement = this.elements.headElement || document.head || this.elements.bodyElement || document.body;
74928
+ if (!targetElement) {
74929
+ throw new Error("DomTools could not find a DOM target element to attach resources to");
74930
+ }
74931
+ return targetElement;
74507
74932
  }
74508
- runOnceTrackerStringMap = new lik.Stringmap();
74509
- runOnceResultMap = new lik.FastMap();
74510
- runOnceErrorMap = new lik.FastMap();
74511
74933
  /**
74512
74934
  * run a function once and always get the Promise of the first execution
74513
74935
  * @param identifierArg the indentifier arg identifies functions. functions with the same identifier are considered equal
74514
74936
  * @param funcArg the actual func arg to run
74515
74937
  */
74516
74938
  async runOnce(identifierArg, funcArg) {
74517
- const runningId = `${identifierArg}+runningCheck`;
74518
- if (!this.runOnceTrackerStringMap.checkString(identifierArg)) {
74519
- this.runOnceTrackerStringMap.addString(identifierArg);
74520
- this.runOnceTrackerStringMap.addString(runningId);
74521
- try {
74522
- const result = await funcArg();
74523
- this.runOnceResultMap.addToMap(identifierArg, result);
74524
- } catch (error) {
74525
- this.runOnceErrorMap.addToMap(identifierArg, error);
74526
- } finally {
74527
- this.runOnceTrackerStringMap.removeString(runningId);
74528
- }
74939
+ let runOncePromise = this.runOncePromiseMap.get(identifierArg);
74940
+ if (!runOncePromise) {
74941
+ runOncePromise = Promise.resolve().then(async () => {
74942
+ return await funcArg();
74943
+ });
74944
+ this.runOncePromiseMap.set(identifierArg, runOncePromise);
74529
74945
  }
74530
- return await this.runOnceTrackerStringMap.registerUntilTrue((stringMap) => {
74531
- return !stringMap?.includes(runningId);
74532
- }, () => {
74533
- const error = this.runOnceErrorMap.getByKey(identifierArg);
74534
- if (error) {
74535
- throw error;
74536
- }
74537
- return this.runOnceResultMap.getByKey(identifierArg);
74538
- });
74946
+ return await runOncePromise;
74539
74947
  }
74540
74948
  // setStuff
74541
74949
  /**
@@ -74544,10 +74952,10 @@ var DomTools = class _DomTools {
74544
74952
  */
74545
74953
  async setGlobalStyles(stylesText) {
74546
74954
  await this.domReady.promise;
74547
- const styleElement = document.createElement("style");
74955
+ const styleElement = this.trackManagedDomNode(document.createElement("style"));
74548
74956
  styleElement.type = "text/css";
74549
74957
  styleElement.appendChild(document.createTextNode(stylesText));
74550
- this.elements.headElement.appendChild(styleElement);
74958
+ this.getHeadOrBodyElement().appendChild(styleElement);
74551
74959
  }
74552
74960
  /**
74553
74961
  * allows to set global styles
@@ -74556,13 +74964,15 @@ var DomTools = class _DomTools {
74556
74964
  async setExternalScript(scriptLinkArg) {
74557
74965
  await this.domReady.promise;
74558
74966
  const done = dist_ts_exports.defer();
74559
- const script = document.createElement("script");
74967
+ const script = this.trackManagedDomNode(document.createElement("script"));
74560
74968
  script.src = scriptLinkArg;
74561
- script.addEventListener("load", function() {
74969
+ script.addEventListener("load", () => {
74562
74970
  done.resolve();
74563
74971
  });
74564
- const parentNode = document.head || document.body;
74565
- parentNode.append(script);
74972
+ script.addEventListener("error", () => {
74973
+ done.reject(new Error(`Failed to load external script: ${scriptLinkArg}`));
74974
+ });
74975
+ this.getHeadOrBodyElement().append(script);
74566
74976
  await done.promise;
74567
74977
  }
74568
74978
  /**
@@ -74570,11 +74980,20 @@ var DomTools = class _DomTools {
74570
74980
  * @param cssLinkArg a url to an external stylesheet
74571
74981
  */
74572
74982
  async setExternalCss(cssLinkArg) {
74573
- const cssTag = document.createElement("link");
74983
+ await this.domReady.promise;
74984
+ const done = dist_ts_exports.defer();
74985
+ const cssTag = this.trackManagedDomNode(document.createElement("link"));
74574
74986
  cssTag.rel = "stylesheet";
74575
74987
  cssTag.crossOrigin = "anonymous";
74576
74988
  cssTag.href = cssLinkArg;
74577
- document.head.append(cssTag);
74989
+ cssTag.addEventListener("load", () => {
74990
+ done.resolve();
74991
+ });
74992
+ cssTag.addEventListener("error", () => {
74993
+ done.reject(new Error(`Failed to load external stylesheet: ${cssLinkArg}`));
74994
+ });
74995
+ this.getHeadOrBodyElement().append(cssTag);
74996
+ await done.promise;
74578
74997
  }
74579
74998
  /**
74580
74999
  * allows setting of website infos
@@ -74584,9 +75003,28 @@ var DomTools = class _DomTools {
74584
75003
  await this.websetup.setup(optionsArg);
74585
75004
  await this.websetup.readyPromise;
74586
75005
  }
75006
+ dispose() {
75007
+ if (this.disposed) {
75008
+ return;
75009
+ }
75010
+ this.disposed = true;
75011
+ document.removeEventListener("readystatechange", this.readyStateChangedFunc);
75012
+ this.keyboard?.dispose();
75013
+ this.keyboard = null;
75014
+ this.scroller.dispose();
75015
+ this.themeManager.dispose();
75016
+ for (const managedDomNode of this.managedDomNodes) {
75017
+ managedDomNode.remove();
75018
+ }
75019
+ this.managedDomNodes.length = 0;
75020
+ if (globalThis.deesDomTools === this) {
75021
+ globalThis.deesDomTools = void 0;
75022
+ _DomTools.initializationPromise = null;
75023
+ }
75024
+ }
74587
75025
  };
74588
75026
 
74589
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.basestyles.js
75027
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.basestyles.js
74590
75028
  var scrollBarStyles = (() => {
74591
75029
  const returnStylesOld = navigator.userAgent.indexOf("Mac OS X") === -1 ? i``.cssText : ``;
74592
75030
  const returnStyles = i`
@@ -74621,7 +75059,7 @@ var globalBaseStyles = i`
74621
75059
  ${r(scrollBarStyles)}
74622
75060
  `.cssText;
74623
75061
 
74624
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.elementbasic.js
75062
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.elementbasic.js
74625
75063
  var staticStyles = i`
74626
75064
  * {
74627
75065
  transition: background 0.1s, color 0.1s;
@@ -74653,13 +75091,17 @@ var setup = /* @__PURE__ */ __name(async (elementArg, optionsArg = {}) => {
74653
75091
  const domTools = await DomTools.setupDomTools(optionsArg);
74654
75092
  if (elementArg) {
74655
75093
  }
74656
- domTools.runOnce("elementBasicSetup", async () => {
74657
- domTools.setGlobalStyles(globalBaseStyles);
75094
+ await domTools.runOnce("elementBasicSetup", async () => {
75095
+ await domTools.setGlobalStyles(globalBaseStyles);
74658
75096
  });
75097
+ if (domTools.globalStylesReady.status === "pending") {
75098
+ domTools.globalStylesReady.resolve();
75099
+ }
75100
+ await domTools.globalStylesReady.promise;
74659
75101
  return domTools;
74660
75102
  }, "setup");
74661
75103
 
74662
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.js
75104
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.css.js
74663
75105
  var domtools_css_exports = {};
74664
75106
  __export(domtools_css_exports, {
74665
75107
  cssGridColumns: () => cssGridColumns
@@ -74672,10 +75114,10 @@ var cssGridColumns = /* @__PURE__ */ __name((amountOfColumnsArg, gapSizeArg) =>
74672
75114
  return returnString;
74673
75115
  }, "cssGridColumns");
74674
75116
 
74675
- // node_modules/.pnpm/@design.estate+dees-domtools@2.5.4/node_modules/@design.estate/dees-domtools/dist_ts/domtools.pluginexports.js
75117
+ // node_modules/.pnpm/@design.estate+dees-domtools@2.5.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.pluginexports.js
74676
75118
  var domtools_pluginexports_exports = {};
74677
75119
  __export(domtools_pluginexports_exports, {
74678
- SweetScroll: () => import_sweet_scroll2.default,
75120
+ SweetScroll: () => import_sweet_scroll.default,
74679
75121
  smartdelay: () => dist_ts_exports3,
74680
75122
  smartmarkdown: () => dist_ts_exports17,
74681
75123
  smartpromise: () => dist_ts_exports,
@@ -74686,9 +75128,8 @@ __export(domtools_pluginexports_exports, {
74686
75128
  smarturl: () => dist_ts_exports20,
74687
75129
  typedrequest: () => dist_ts_exports15
74688
75130
  });
74689
- var import_sweet_scroll2 = __toESM(require_sweet_scroll(), 1);
74690
75131
 
74691
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/plugins.js
75132
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/plugins.js
74692
75133
  var isounique3 = __toESM(require_dist_ts(), 1);
74693
75134
  var lit = {
74694
75135
  css: i,
@@ -74697,7 +75138,7 @@ var lit = {
74697
75138
  property: n5
74698
75139
  };
74699
75140
 
74700
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/classes.cssmanager.js
75141
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/classes.cssmanager.js
74701
75142
  var CssManager = class _CssManager {
74702
75143
  static {
74703
75144
  __name(this, "CssManager");
@@ -74875,7 +75316,7 @@ var t4 = /* @__PURE__ */ __name((t8) => (e10, o12) => {
74875
75316
  }) : customElements.define(t8, e10);
74876
75317
  }, "t");
74877
75318
 
74878
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/decorators.customelement.js
75319
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/decorators.customelement.js
74879
75320
  var camelToKebab = /* @__PURE__ */ __name((name) => name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), "camelToKebab");
74880
75321
  function customElement(tagName) {
74881
75322
  return (classOrTarget, context2) => {
@@ -74975,7 +75416,7 @@ function n7(n11) {
74975
75416
  }
74976
75417
  __name(n7, "n");
74977
75418
 
74978
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/classes.dees-element.js
75419
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/classes.dees-element.js
74979
75420
  var __esDecorate2 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
74980
75421
  function accept(f6) {
74981
75422
  if (f6 !== void 0 && typeof f6 !== "function") throw new TypeError("Function expected");
@@ -75030,7 +75471,7 @@ var DeesElement = (() => {
75030
75471
  }
75031
75472
  static {
75032
75473
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
75033
- _goBright_decorators = [lit.property({ type: Boolean })];
75474
+ _goBright_decorators = [lit.property({ type: Boolean, reflect: true })];
75034
75475
  _domtools_decorators = [lit.property()];
75035
75476
  __esDecorate2(this, null, _goBright_decorators, { kind: "accessor", name: "goBright", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "goBright" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.goBright, "get"), set: /* @__PURE__ */ __name((obj, value2) => {
75036
75477
  obj.goBright = value2;
@@ -75049,6 +75490,10 @@ var DeesElement = (() => {
75049
75490
  }
75050
75491
  #goBright_accessor_storage = __runInitializers3(this, _goBright_initializers, false);
75051
75492
  // INSTANCE
75493
+ /**
75494
+ * Reflected as the `gobright` attribute so components can style themes
75495
+ * directly via `:host([gobright]) { ... }` without per-value bdTheme pairs.
75496
+ */
75052
75497
  get goBright() {
75053
75498
  return this.#goBright_accessor_storage;
75054
75499
  }
@@ -75116,7 +75561,7 @@ var DeesElement = (() => {
75116
75561
  };
75117
75562
  })();
75118
75563
 
75119
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/decorators.containerresponsive.js
75564
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/decorators.containerresponsive.js
75120
75565
  var camelToKebab2 = /* @__PURE__ */ __name((name) => name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), "camelToKebab");
75121
75566
  function containerResponsive() {
75122
75567
  return function(target) {
@@ -75150,7 +75595,7 @@ function containerResponsive() {
75150
75595
  }
75151
75596
  __name(containerResponsive, "containerResponsive");
75152
75597
 
75153
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/directives/index.js
75598
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/directives/index.js
75154
75599
  var directives_exports = {};
75155
75600
  __export(directives_exports, {
75156
75601
  asyncAppend: () => c8,
@@ -75250,7 +75695,7 @@ var f5 = class extends i6 {
75250
75695
  }
75251
75696
  };
75252
75697
 
75253
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/directives/classes.resolvedirective.js
75698
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/directives/classes.resolvedirective.js
75254
75699
  var ResolveDirective = class extends f5 {
75255
75700
  static {
75256
75701
  __name(this, "ResolveDirective");
@@ -75294,7 +75739,7 @@ var resolveExec = /* @__PURE__ */ __name((funcArg) => {
75294
75739
  return resolve(funcArg());
75295
75740
  }, "resolveExec");
75296
75741
 
75297
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/directives/classes.subscribedirective.js
75742
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/directives/classes.subscribedirective.js
75298
75743
  var SubscribeDirective = class extends f5 {
75299
75744
  static {
75300
75745
  __name(this, "SubscribeDirective");
@@ -75325,7 +75770,7 @@ var SubscribeDirective = class extends f5 {
75325
75770
  };
75326
75771
  var subscribe = e4(SubscribeDirective);
75327
75772
 
75328
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/directives/classes.subscribewithtemplate.js
75773
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/directives/classes.subscribewithtemplate.js
75329
75774
  var SubscribeWithTemplateDirective = class extends f5 {
75330
75775
  static {
75331
75776
  __name(this, "SubscribeWithTemplateDirective");
@@ -75558,7 +76003,7 @@ var u5 = /* @__PURE__ */ __name((e10, s9, t8) => {
75558
76003
  }
75559
76004
  });
75560
76005
 
75561
- // node_modules/.pnpm/@design.estate+dees-element@2.2.4/node_modules/@design.estate/dees-element/dist_ts/index.js
76006
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts/index.js
75562
76007
  var cssManager = CssManager.getSingleton();
75563
76008
 
75564
76009
  // ts_web/elements/wcctools.helpers.ts
@@ -80058,55 +80503,121 @@ __publicField(_TestComplexTypes, "styles", [
80058
80503
  __runInitializers(_init10, 1, _TestComplexTypes);
80059
80504
  var TestComplexTypes = _TestComplexTypes;
80060
80505
 
80061
- // ts_demotools/demotools.ts
80062
- var _runAfterRender_dec, _a11, _DeesDemoWrapper_decorators, _init11, _runAfterRender;
80063
- _DeesDemoWrapper_decorators = [customElement("dees-demowrapper")];
80064
- var _DeesDemoWrapper = class _DeesDemoWrapper extends (_a11 = DeesElement, _runAfterRender_dec = [n5({ attribute: false })], _a11) {
80065
- constructor() {
80066
- super(...arguments);
80067
- __privateAdd(this, _runAfterRender, __runInitializers(_init11, 8, this)), __runInitializers(_init11, 11, this);
80068
- }
80069
- render() {
80070
- return b2`
80071
- <slot></slot>
80072
- `;
80506
+ // node_modules/.pnpm/@design.estate+dees-element@2.4.0/node_modules/@design.estate/dees-element/dist_ts_demotools/demotools.js
80507
+ var __esDecorate3 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
80508
+ function accept(f6) {
80509
+ if (f6 !== void 0 && typeof f6 !== "function") throw new TypeError("Function expected");
80510
+ return f6;
80073
80511
  }
80074
- async firstUpdated() {
80075
- await this.updateComplete;
80076
- await new Promise((resolve2) => setTimeout(resolve2, 50));
80077
- if (this.children.length > 0 && this.runAfterRender) {
80078
- try {
80079
- await this.runAfterRender(this);
80080
- } catch (error) {
80081
- console.error("Error in runAfterRender:", error);
80082
- }
80512
+ __name(accept, "accept");
80513
+ var kind = contextIn.kind, key2 = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
80514
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
80515
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
80516
+ var _3, done = false;
80517
+ for (var i10 = decorators.length - 1; i10 >= 0; i10--) {
80518
+ var context2 = {};
80519
+ for (var p6 in contextIn) context2[p6] = p6 === "access" ? {} : contextIn[p6];
80520
+ for (var p6 in contextIn.access) context2.access[p6] = contextIn.access[p6];
80521
+ context2.addInitializer = function(f6) {
80522
+ if (done) throw new TypeError("Cannot add initializers after decoration has completed");
80523
+ extraInitializers.push(accept(f6 || null));
80524
+ };
80525
+ var result = (0, decorators[i10])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key2], context2);
80526
+ if (kind === "accessor") {
80527
+ if (result === void 0) continue;
80528
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
80529
+ if (_3 = accept(result.get)) descriptor.get = _3;
80530
+ if (_3 = accept(result.set)) descriptor.set = _3;
80531
+ if (_3 = accept(result.init)) initializers.unshift(_3);
80532
+ } else if (_3 = accept(result)) {
80533
+ if (kind === "field") initializers.unshift(_3);
80534
+ else descriptor[key2] = _3;
80083
80535
  }
80084
80536
  }
80537
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
80538
+ done = true;
80085
80539
  };
80086
- _init11 = __decoratorStart(_a11);
80087
- _runAfterRender = new WeakMap();
80088
- __decorateElement(_init11, 4, "runAfterRender", _runAfterRender_dec, _DeesDemoWrapper, _runAfterRender);
80089
- _DeesDemoWrapper = __decorateElement(_init11, 0, "DeesDemoWrapper", _DeesDemoWrapper_decorators, _DeesDemoWrapper);
80090
- __name(_DeesDemoWrapper, "DeesDemoWrapper");
80091
- __publicField(_DeesDemoWrapper, "styles", [
80092
- i`
80540
+ var __runInitializers4 = function(thisArg, initializers, value2) {
80541
+ var useValue = arguments.length > 2;
80542
+ for (var i10 = 0; i10 < initializers.length; i10++) {
80543
+ value2 = useValue ? initializers[i10].call(thisArg, value2) : initializers[i10].call(thisArg);
80544
+ }
80545
+ return useValue ? value2 : void 0;
80546
+ };
80547
+ var DeesDemoWrapper = (() => {
80548
+ let _classDecorators = [customElement("dees-demowrapper")];
80549
+ let _classDescriptor;
80550
+ let _classExtraInitializers = [];
80551
+ let _classThis;
80552
+ let _classSuper = DeesElement;
80553
+ let _runAfterRender_decorators;
80554
+ let _runAfterRender_initializers = [];
80555
+ let _runAfterRender_extraInitializers = [];
80556
+ var DeesDemoWrapper2 = class extends _classSuper {
80557
+ static {
80558
+ __name(this, "DeesDemoWrapper");
80559
+ }
80560
+ static {
80561
+ _classThis = this;
80562
+ }
80563
+ static {
80564
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
80565
+ _runAfterRender_decorators = [n5({ attribute: false })];
80566
+ __esDecorate3(this, null, _runAfterRender_decorators, { kind: "accessor", name: "runAfterRender", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "runAfterRender" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.runAfterRender, "get"), set: /* @__PURE__ */ __name((obj, value2) => {
80567
+ obj.runAfterRender = value2;
80568
+ }, "set") }, metadata: _metadata }, _runAfterRender_initializers, _runAfterRender_extraInitializers);
80569
+ __esDecorate3(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
80570
+ DeesDemoWrapper2 = _classThis = _classDescriptor.value;
80571
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
80572
+ }
80573
+ #runAfterRender_accessor_storage = __runInitializers4(this, _runAfterRender_initializers, void 0);
80574
+ get runAfterRender() {
80575
+ return this.#runAfterRender_accessor_storage;
80576
+ }
80577
+ set runAfterRender(value2) {
80578
+ this.#runAfterRender_accessor_storage = value2;
80579
+ }
80580
+ static styles = [
80581
+ i`
80093
80582
  :host {
80094
80583
  display: contents;
80095
80584
  }
80096
80585
  `
80097
- ]);
80098
- __runInitializers(_init11, 1, _DeesDemoWrapper);
80099
- var DeesDemoWrapper = _DeesDemoWrapper;
80586
+ ];
80587
+ render() {
80588
+ return b2`<slot></slot>`;
80589
+ }
80590
+ async firstUpdated() {
80591
+ await this.updateComplete;
80592
+ await new Promise((resolve2) => setTimeout(resolve2, 50));
80593
+ if (this.children.length > 0 && this.runAfterRender) {
80594
+ try {
80595
+ await this.runAfterRender(this);
80596
+ } catch (error) {
80597
+ console.error("Error in runAfterRender:", error);
80598
+ }
80599
+ }
80600
+ }
80601
+ constructor() {
80602
+ super(...arguments);
80603
+ __runInitializers4(this, _runAfterRender_extraInitializers);
80604
+ }
80605
+ static {
80606
+ __runInitializers4(_classThis, _classExtraInitializers);
80607
+ }
80608
+ };
80609
+ return DeesDemoWrapper2 = _classThis;
80610
+ })();
80100
80611
 
80101
80612
  // test/elements/test-withwrapper.ts
80102
- var _isActive_dec, _counter_dec, _dynamicValue_dec, _a12, _TestWithWrapper_decorators, _init12, _dynamicValue, _counter, _isActive;
80613
+ var _isActive_dec, _counter_dec, _dynamicValue_dec, _a11, _TestWithWrapper_decorators, _init11, _dynamicValue, _counter, _isActive;
80103
80614
  _TestWithWrapper_decorators = [customElement("test-withwrapper")];
80104
- var _TestWithWrapper = class _TestWithWrapper extends (_a12 = DeesElement, _dynamicValue_dec = [n5({ type: String })], _counter_dec = [n5({ type: Number })], _isActive_dec = [n5({ type: Boolean })], _a12) {
80615
+ var _TestWithWrapper = class _TestWithWrapper extends (_a11 = DeesElement, _dynamicValue_dec = [n5({ type: String })], _counter_dec = [n5({ type: Number })], _isActive_dec = [n5({ type: Boolean })], _a11) {
80105
80616
  constructor() {
80106
80617
  super(...arguments);
80107
- __privateAdd(this, _dynamicValue, __runInitializers(_init12, 8, this, "Initial value")), __runInitializers(_init12, 11, this);
80108
- __privateAdd(this, _counter, __runInitializers(_init12, 12, this, 0)), __runInitializers(_init12, 15, this);
80109
- __privateAdd(this, _isActive, __runInitializers(_init12, 16, this, false)), __runInitializers(_init12, 19, this);
80618
+ __privateAdd(this, _dynamicValue, __runInitializers(_init11, 8, this, "Initial value")), __runInitializers(_init11, 11, this);
80619
+ __privateAdd(this, _counter, __runInitializers(_init11, 12, this, 0)), __runInitializers(_init11, 15, this);
80620
+ __privateAdd(this, _isActive, __runInitializers(_init11, 16, this, false)), __runInitializers(_init11, 19, this);
80110
80621
  }
80111
80622
  render() {
80112
80623
  return b2`
@@ -80130,14 +80641,14 @@ var _TestWithWrapper = class _TestWithWrapper extends (_a12 = DeesElement, _dyna
80130
80641
  `;
80131
80642
  }
80132
80643
  };
80133
- _init12 = __decoratorStart(_a12);
80644
+ _init11 = __decoratorStart(_a11);
80134
80645
  _dynamicValue = new WeakMap();
80135
80646
  _counter = new WeakMap();
80136
80647
  _isActive = new WeakMap();
80137
- __decorateElement(_init12, 4, "dynamicValue", _dynamicValue_dec, _TestWithWrapper, _dynamicValue);
80138
- __decorateElement(_init12, 4, "counter", _counter_dec, _TestWithWrapper, _counter);
80139
- __decorateElement(_init12, 4, "isActive", _isActive_dec, _TestWithWrapper, _isActive);
80140
- _TestWithWrapper = __decorateElement(_init12, 0, "TestWithWrapper", _TestWithWrapper_decorators, _TestWithWrapper);
80648
+ __decorateElement(_init11, 4, "dynamicValue", _dynamicValue_dec, _TestWithWrapper, _dynamicValue);
80649
+ __decorateElement(_init11, 4, "counter", _counter_dec, _TestWithWrapper, _counter);
80650
+ __decorateElement(_init11, 4, "isActive", _isActive_dec, _TestWithWrapper, _isActive);
80651
+ _TestWithWrapper = __decorateElement(_init11, 0, "TestWithWrapper", _TestWithWrapper_decorators, _TestWithWrapper);
80141
80652
  __name(_TestWithWrapper, "TestWithWrapper");
80142
80653
  __publicField(_TestWithWrapper, "demo", /* @__PURE__ */ __name(() => b2`
80143
80654
  <dees-demowrapper .runAfterRender=${async (wrapper) => {
@@ -80198,35 +80709,35 @@ __publicField(_TestWithWrapper, "styles", [
80198
80709
  }
80199
80710
  `
80200
80711
  ]);
80201
- __runInitializers(_init12, 1, _TestWithWrapper);
80712
+ __runInitializers(_init11, 1, _TestWithWrapper);
80202
80713
  var TestWithWrapper = _TestWithWrapper;
80203
80714
 
80204
80715
  // test/elements/test-edgecases.ts
80205
- var _circularRef_dec, _emptyObject_dec, _emptyArray_dec, _emptyString_dec, _booleanNumber_dec, _booleanString_dec, _floatNumber_dec, _verySmallNumber_dec, _veryLargeNumber_dec, _nanNumber_dec, _infinityNumber_dec, _htmlString_dec, _specialChars_dec, _longString_dec, _undefinedNumber_dec, _nullableString_dec, _a13, _TestEdgeCases_decorators, _init13, _nullableString, _undefinedNumber, _longString, _specialChars, _htmlString, _infinityNumber, _nanNumber, _veryLargeNumber, _verySmallNumber, _floatNumber, _booleanString, _booleanNumber, _emptyString, _emptyArray, _emptyObject, _circularRef;
80716
+ var _circularRef_dec, _emptyObject_dec, _emptyArray_dec, _emptyString_dec, _booleanNumber_dec, _booleanString_dec, _floatNumber_dec, _verySmallNumber_dec, _veryLargeNumber_dec, _nanNumber_dec, _infinityNumber_dec, _htmlString_dec, _specialChars_dec, _longString_dec, _undefinedNumber_dec, _nullableString_dec, _a12, _TestEdgeCases_decorators, _init12, _nullableString, _undefinedNumber, _longString, _specialChars, _htmlString, _infinityNumber, _nanNumber, _veryLargeNumber, _verySmallNumber, _floatNumber, _booleanString, _booleanNumber, _emptyString, _emptyArray, _emptyObject, _circularRef;
80206
80717
  _TestEdgeCases_decorators = [customElement("test-edgecases")];
80207
- var _TestEdgeCases = class _TestEdgeCases extends (_a13 = DeesElement, _nullableString_dec = [n5({ type: String })], _undefinedNumber_dec = [n5({ type: Number })], _longString_dec = [n5({ type: String })], _specialChars_dec = [n5({ type: String })], _htmlString_dec = [n5({ type: String })], _infinityNumber_dec = [n5({ type: Number })], _nanNumber_dec = [n5({ type: Number })], _veryLargeNumber_dec = [n5({ type: Number })], _verySmallNumber_dec = [n5({ type: Number })], _floatNumber_dec = [n5({ type: Number })], _booleanString_dec = [n5({ type: String })], _booleanNumber_dec = [n5({ type: Number })], _emptyString_dec = [n5({ type: String })], _emptyArray_dec = [n5({ type: Array })], _emptyObject_dec = [n5({ type: Object })], _circularRef_dec = [n5({ attribute: false })], _a13) {
80718
+ var _TestEdgeCases = class _TestEdgeCases extends (_a12 = DeesElement, _nullableString_dec = [n5({ type: String })], _undefinedNumber_dec = [n5({ type: Number })], _longString_dec = [n5({ type: String })], _specialChars_dec = [n5({ type: String })], _htmlString_dec = [n5({ type: String })], _infinityNumber_dec = [n5({ type: Number })], _nanNumber_dec = [n5({ type: Number })], _veryLargeNumber_dec = [n5({ type: Number })], _verySmallNumber_dec = [n5({ type: Number })], _floatNumber_dec = [n5({ type: Number })], _booleanString_dec = [n5({ type: String })], _booleanNumber_dec = [n5({ type: Number })], _emptyString_dec = [n5({ type: String })], _emptyArray_dec = [n5({ type: Array })], _emptyObject_dec = [n5({ type: Object })], _circularRef_dec = [n5({ attribute: false })], _a12) {
80208
80719
  constructor() {
80209
80720
  super(...arguments);
80210
- __privateAdd(this, _nullableString, __runInitializers(_init13, 8, this, null)), __runInitializers(_init13, 11, this);
80211
- __privateAdd(this, _undefinedNumber, __runInitializers(_init13, 12, this)), __runInitializers(_init13, 15, this);
80212
- __privateAdd(this, _longString, __runInitializers(_init13, 16, this, "Lorem ipsum ".repeat(50))), __runInitializers(_init13, 19, this);
80213
- __privateAdd(this, _specialChars, __runInitializers(_init13, 20, this, "!@#$%^&*()_+-=[]{}|;':\",./<>?`~")), __runInitializers(_init13, 23, this);
80214
- __privateAdd(this, _htmlString, __runInitializers(_init13, 24, this, '<script>alert("test")<\/script><b>Bold text</b>')), __runInitializers(_init13, 27, this);
80215
- __privateAdd(this, _infinityNumber, __runInitializers(_init13, 28, this, Infinity)), __runInitializers(_init13, 31, this);
80216
- __privateAdd(this, _nanNumber, __runInitializers(_init13, 32, this, NaN)), __runInitializers(_init13, 35, this);
80217
- __privateAdd(this, _veryLargeNumber, __runInitializers(_init13, 36, this, Number.MAX_SAFE_INTEGER)), __runInitializers(_init13, 39, this);
80218
- __privateAdd(this, _verySmallNumber, __runInitializers(_init13, 40, this, Number.MIN_SAFE_INTEGER)), __runInitializers(_init13, 43, this);
80219
- __privateAdd(this, _floatNumber, __runInitializers(_init13, 44, this, 3.14159265359)), __runInitializers(_init13, 47, this);
80220
- __privateAdd(this, _booleanString, __runInitializers(_init13, 48, this, "false")), __runInitializers(_init13, 51, this);
80221
- __privateAdd(this, _booleanNumber, __runInitializers(_init13, 52, this, 0)), __runInitializers(_init13, 55, this);
80222
- __privateAdd(this, _emptyString, __runInitializers(_init13, 56, this, "")), __runInitializers(_init13, 59, this);
80223
- __privateAdd(this, _emptyArray, __runInitializers(_init13, 60, this, [])), __runInitializers(_init13, 63, this);
80224
- __privateAdd(this, _emptyObject, __runInitializers(_init13, 64, this, {})), __runInitializers(_init13, 67, this);
80225
- __privateAdd(this, _circularRef, __runInitializers(_init13, 68, this, (() => {
80721
+ __privateAdd(this, _nullableString, __runInitializers(_init12, 8, this, null)), __runInitializers(_init12, 11, this);
80722
+ __privateAdd(this, _undefinedNumber, __runInitializers(_init12, 12, this)), __runInitializers(_init12, 15, this);
80723
+ __privateAdd(this, _longString, __runInitializers(_init12, 16, this, "Lorem ipsum ".repeat(50))), __runInitializers(_init12, 19, this);
80724
+ __privateAdd(this, _specialChars, __runInitializers(_init12, 20, this, "!@#$%^&*()_+-=[]{}|;':\",./<>?`~")), __runInitializers(_init12, 23, this);
80725
+ __privateAdd(this, _htmlString, __runInitializers(_init12, 24, this, '<script>alert("test")<\/script><b>Bold text</b>')), __runInitializers(_init12, 27, this);
80726
+ __privateAdd(this, _infinityNumber, __runInitializers(_init12, 28, this, Infinity)), __runInitializers(_init12, 31, this);
80727
+ __privateAdd(this, _nanNumber, __runInitializers(_init12, 32, this, NaN)), __runInitializers(_init12, 35, this);
80728
+ __privateAdd(this, _veryLargeNumber, __runInitializers(_init12, 36, this, Number.MAX_SAFE_INTEGER)), __runInitializers(_init12, 39, this);
80729
+ __privateAdd(this, _verySmallNumber, __runInitializers(_init12, 40, this, Number.MIN_SAFE_INTEGER)), __runInitializers(_init12, 43, this);
80730
+ __privateAdd(this, _floatNumber, __runInitializers(_init12, 44, this, 3.14159265359)), __runInitializers(_init12, 47, this);
80731
+ __privateAdd(this, _booleanString, __runInitializers(_init12, 48, this, "false")), __runInitializers(_init12, 51, this);
80732
+ __privateAdd(this, _booleanNumber, __runInitializers(_init12, 52, this, 0)), __runInitializers(_init12, 55, this);
80733
+ __privateAdd(this, _emptyString, __runInitializers(_init12, 56, this, "")), __runInitializers(_init12, 59, this);
80734
+ __privateAdd(this, _emptyArray, __runInitializers(_init12, 60, this, [])), __runInitializers(_init12, 63, this);
80735
+ __privateAdd(this, _emptyObject, __runInitializers(_init12, 64, this, {})), __runInitializers(_init12, 67, this);
80736
+ __privateAdd(this, _circularRef, __runInitializers(_init12, 68, this, (() => {
80226
80737
  const obj = { name: "circular" };
80227
80738
  obj.self = obj;
80228
80739
  return obj;
80229
- })())), __runInitializers(_init13, 71, this);
80740
+ })())), __runInitializers(_init12, 71, this);
80230
80741
  }
80231
80742
  formatValue(value2) {
80232
80743
  if (value2 === null) return "null";
@@ -80308,7 +80819,7 @@ var _TestEdgeCases = class _TestEdgeCases extends (_a13 = DeesElement, _nullable
80308
80819
  `;
80309
80820
  }
80310
80821
  };
80311
- _init13 = __decoratorStart(_a13);
80822
+ _init12 = __decoratorStart(_a12);
80312
80823
  _nullableString = new WeakMap();
80313
80824
  _undefinedNumber = new WeakMap();
80314
80825
  _longString = new WeakMap();
@@ -80325,23 +80836,23 @@ _emptyString = new WeakMap();
80325
80836
  _emptyArray = new WeakMap();
80326
80837
  _emptyObject = new WeakMap();
80327
80838
  _circularRef = new WeakMap();
80328
- __decorateElement(_init13, 4, "nullableString", _nullableString_dec, _TestEdgeCases, _nullableString);
80329
- __decorateElement(_init13, 4, "undefinedNumber", _undefinedNumber_dec, _TestEdgeCases, _undefinedNumber);
80330
- __decorateElement(_init13, 4, "longString", _longString_dec, _TestEdgeCases, _longString);
80331
- __decorateElement(_init13, 4, "specialChars", _specialChars_dec, _TestEdgeCases, _specialChars);
80332
- __decorateElement(_init13, 4, "htmlString", _htmlString_dec, _TestEdgeCases, _htmlString);
80333
- __decorateElement(_init13, 4, "infinityNumber", _infinityNumber_dec, _TestEdgeCases, _infinityNumber);
80334
- __decorateElement(_init13, 4, "nanNumber", _nanNumber_dec, _TestEdgeCases, _nanNumber);
80335
- __decorateElement(_init13, 4, "veryLargeNumber", _veryLargeNumber_dec, _TestEdgeCases, _veryLargeNumber);
80336
- __decorateElement(_init13, 4, "verySmallNumber", _verySmallNumber_dec, _TestEdgeCases, _verySmallNumber);
80337
- __decorateElement(_init13, 4, "floatNumber", _floatNumber_dec, _TestEdgeCases, _floatNumber);
80338
- __decorateElement(_init13, 4, "booleanString", _booleanString_dec, _TestEdgeCases, _booleanString);
80339
- __decorateElement(_init13, 4, "booleanNumber", _booleanNumber_dec, _TestEdgeCases, _booleanNumber);
80340
- __decorateElement(_init13, 4, "emptyString", _emptyString_dec, _TestEdgeCases, _emptyString);
80341
- __decorateElement(_init13, 4, "emptyArray", _emptyArray_dec, _TestEdgeCases, _emptyArray);
80342
- __decorateElement(_init13, 4, "emptyObject", _emptyObject_dec, _TestEdgeCases, _emptyObject);
80343
- __decorateElement(_init13, 4, "circularRef", _circularRef_dec, _TestEdgeCases, _circularRef);
80344
- _TestEdgeCases = __decorateElement(_init13, 0, "TestEdgeCases", _TestEdgeCases_decorators, _TestEdgeCases);
80839
+ __decorateElement(_init12, 4, "nullableString", _nullableString_dec, _TestEdgeCases, _nullableString);
80840
+ __decorateElement(_init12, 4, "undefinedNumber", _undefinedNumber_dec, _TestEdgeCases, _undefinedNumber);
80841
+ __decorateElement(_init12, 4, "longString", _longString_dec, _TestEdgeCases, _longString);
80842
+ __decorateElement(_init12, 4, "specialChars", _specialChars_dec, _TestEdgeCases, _specialChars);
80843
+ __decorateElement(_init12, 4, "htmlString", _htmlString_dec, _TestEdgeCases, _htmlString);
80844
+ __decorateElement(_init12, 4, "infinityNumber", _infinityNumber_dec, _TestEdgeCases, _infinityNumber);
80845
+ __decorateElement(_init12, 4, "nanNumber", _nanNumber_dec, _TestEdgeCases, _nanNumber);
80846
+ __decorateElement(_init12, 4, "veryLargeNumber", _veryLargeNumber_dec, _TestEdgeCases, _veryLargeNumber);
80847
+ __decorateElement(_init12, 4, "verySmallNumber", _verySmallNumber_dec, _TestEdgeCases, _verySmallNumber);
80848
+ __decorateElement(_init12, 4, "floatNumber", _floatNumber_dec, _TestEdgeCases, _floatNumber);
80849
+ __decorateElement(_init12, 4, "booleanString", _booleanString_dec, _TestEdgeCases, _booleanString);
80850
+ __decorateElement(_init12, 4, "booleanNumber", _booleanNumber_dec, _TestEdgeCases, _booleanNumber);
80851
+ __decorateElement(_init12, 4, "emptyString", _emptyString_dec, _TestEdgeCases, _emptyString);
80852
+ __decorateElement(_init12, 4, "emptyArray", _emptyArray_dec, _TestEdgeCases, _emptyArray);
80853
+ __decorateElement(_init12, 4, "emptyObject", _emptyObject_dec, _TestEdgeCases, _emptyObject);
80854
+ __decorateElement(_init12, 4, "circularRef", _circularRef_dec, _TestEdgeCases, _circularRef);
80855
+ _TestEdgeCases = __decorateElement(_init12, 0, "TestEdgeCases", _TestEdgeCases_decorators, _TestEdgeCases);
80345
80856
  __name(_TestEdgeCases, "TestEdgeCases");
80346
80857
  __publicField(_TestEdgeCases, "demo", /* @__PURE__ */ __name(() => b2`<test-edgecases></test-edgecases>`, "demo"));
80347
80858
  __publicField(_TestEdgeCases, "styles", [
@@ -80383,13 +80894,13 @@ __publicField(_TestEdgeCases, "styles", [
80383
80894
  }
80384
80895
  `
80385
80896
  ]);
80386
- __runInitializers(_init13, 1, _TestEdgeCases);
80897
+ __runInitializers(_init12, 1, _TestEdgeCases);
80387
80898
  var TestEdgeCases = _TestEdgeCases;
80388
80899
 
80389
80900
  // test/elements/test-nested.ts
80390
- var _TestNestedWrapper_decorators, _init14, _a14, _found_dec, _depth_dec, _message_dec, _b, _TestNestedTarget_decorators, _init15, _message, _depth, _found, _testId_dec, _c, _TestNested_decorators, _init16, _testId;
80901
+ var _TestNestedWrapper_decorators, _init13, _a13, _found_dec, _depth_dec, _message_dec, _b, _TestNestedTarget_decorators, _init14, _message, _depth, _found, _testId_dec, _c, _TestNested_decorators, _init15, _testId;
80391
80902
  _TestNestedWrapper_decorators = [customElement("test-nested-wrapper")];
80392
- var TestNestedWrapper = class extends (_a14 = DeesElement) {
80903
+ var TestNestedWrapper = class extends (_a13 = DeesElement) {
80393
80904
  static {
80394
80905
  __name(this, "TestNestedWrapper");
80395
80906
  }
@@ -80401,16 +80912,16 @@ var TestNestedWrapper = class extends (_a14 = DeesElement) {
80401
80912
  `;
80402
80913
  }
80403
80914
  };
80404
- _init14 = __decoratorStart(_a14);
80405
- TestNestedWrapper = __decorateElement(_init14, 0, "TestNestedWrapper", _TestNestedWrapper_decorators, TestNestedWrapper);
80406
- __runInitializers(_init14, 1, TestNestedWrapper);
80915
+ _init13 = __decoratorStart(_a13);
80916
+ TestNestedWrapper = __decorateElement(_init13, 0, "TestNestedWrapper", _TestNestedWrapper_decorators, TestNestedWrapper);
80917
+ __runInitializers(_init13, 1, TestNestedWrapper);
80407
80918
  _TestNestedTarget_decorators = [customElement("test-nested-target")];
80408
80919
  var _TestNestedTarget = class _TestNestedTarget extends (_b = DeesElement, _message_dec = [n5({ type: String })], _depth_dec = [n5({ type: Number })], _found_dec = [n5({ type: Boolean })], _b) {
80409
80920
  constructor() {
80410
80921
  super(...arguments);
80411
- __privateAdd(this, _message, __runInitializers(_init15, 8, this, "I am deeply nested!")), __runInitializers(_init15, 11, this);
80412
- __privateAdd(this, _depth, __runInitializers(_init15, 12, this, 0)), __runInitializers(_init15, 15, this);
80413
- __privateAdd(this, _found, __runInitializers(_init15, 16, this, false)), __runInitializers(_init15, 19, this);
80922
+ __privateAdd(this, _message, __runInitializers(_init14, 8, this, "I am deeply nested!")), __runInitializers(_init14, 11, this);
80923
+ __privateAdd(this, _depth, __runInitializers(_init14, 12, this, 0)), __runInitializers(_init14, 15, this);
80924
+ __privateAdd(this, _found, __runInitializers(_init14, 16, this, false)), __runInitializers(_init14, 19, this);
80414
80925
  }
80415
80926
  render() {
80416
80927
  return b2`
@@ -80423,14 +80934,14 @@ var _TestNestedTarget = class _TestNestedTarget extends (_b = DeesElement, _mess
80423
80934
  `;
80424
80935
  }
80425
80936
  };
80426
- _init15 = __decoratorStart(_b);
80937
+ _init14 = __decoratorStart(_b);
80427
80938
  _message = new WeakMap();
80428
80939
  _depth = new WeakMap();
80429
80940
  _found = new WeakMap();
80430
- __decorateElement(_init15, 4, "message", _message_dec, _TestNestedTarget, _message);
80431
- __decorateElement(_init15, 4, "depth", _depth_dec, _TestNestedTarget, _depth);
80432
- __decorateElement(_init15, 4, "found", _found_dec, _TestNestedTarget, _found);
80433
- _TestNestedTarget = __decorateElement(_init15, 0, "TestNestedTarget", _TestNestedTarget_decorators, _TestNestedTarget);
80941
+ __decorateElement(_init14, 4, "message", _message_dec, _TestNestedTarget, _message);
80942
+ __decorateElement(_init14, 4, "depth", _depth_dec, _TestNestedTarget, _depth);
80943
+ __decorateElement(_init14, 4, "found", _found_dec, _TestNestedTarget, _found);
80944
+ _TestNestedTarget = __decorateElement(_init14, 0, "TestNestedTarget", _TestNestedTarget_decorators, _TestNestedTarget);
80434
80945
  __name(_TestNestedTarget, "TestNestedTarget");
80435
80946
  __publicField(_TestNestedTarget, "styles", [
80436
80947
  i`
@@ -80448,13 +80959,13 @@ __publicField(_TestNestedTarget, "styles", [
80448
80959
  }
80449
80960
  `
80450
80961
  ]);
80451
- __runInitializers(_init15, 1, _TestNestedTarget);
80962
+ __runInitializers(_init14, 1, _TestNestedTarget);
80452
80963
  var TestNestedTarget = _TestNestedTarget;
80453
80964
  _TestNested_decorators = [customElement("test-nested")];
80454
80965
  var _TestNested = class _TestNested extends (_c = DeesElement, _testId_dec = [n5({ type: String })], _c) {
80455
80966
  constructor() {
80456
80967
  super(...arguments);
80457
- __privateAdd(this, _testId, __runInitializers(_init16, 8, this, "nested-test")), __runInitializers(_init16, 11, this);
80968
+ __privateAdd(this, _testId, __runInitializers(_init15, 8, this, "nested-test")), __runInitializers(_init15, 11, this);
80458
80969
  }
80459
80970
  render() {
80460
80971
  return b2`
@@ -80489,10 +81000,10 @@ var _TestNested = class _TestNested extends (_c = DeesElement, _testId_dec = [n5
80489
81000
  `;
80490
81001
  }
80491
81002
  };
80492
- _init16 = __decoratorStart(_c);
81003
+ _init15 = __decoratorStart(_c);
80493
81004
  _testId = new WeakMap();
80494
- __decorateElement(_init16, 4, "testId", _testId_dec, _TestNested, _testId);
80495
- _TestNested = __decorateElement(_init16, 0, "TestNested", _TestNested_decorators, _TestNested);
81005
+ __decorateElement(_init15, 4, "testId", _testId_dec, _TestNested, _testId);
81006
+ _TestNested = __decorateElement(_init15, 0, "TestNested", _TestNested_decorators, _TestNested);
80496
81007
  __name(_TestNested, "TestNested");
80497
81008
  __publicField(_TestNested, "demo", /* @__PURE__ */ __name(() => b2`
80498
81009
  <test-nested></test-nested>
@@ -80519,25 +81030,25 @@ __publicField(_TestNested, "styles", [
80519
81030
  }
80520
81031
  `
80521
81032
  ]);
80522
- __runInitializers(_init16, 1, _TestNested);
81033
+ __runInitializers(_init15, 1, _TestNested);
80523
81034
  var TestNested = _TestNested;
80524
81035
 
80525
81036
  // test/elements/test-button-primary.ts
80526
- var _label_dec, _a15, _TestButtonPrimary_decorators, _init17, _label;
81037
+ var _label_dec, _a14, _TestButtonPrimary_decorators, _init16, _label;
80527
81038
  _TestButtonPrimary_decorators = [customElement("test-button-primary")];
80528
- var _TestButtonPrimary = class _TestButtonPrimary extends (_a15 = DeesElement, _label_dec = [n5({ type: String })], _a15) {
81039
+ var _TestButtonPrimary = class _TestButtonPrimary extends (_a14 = DeesElement, _label_dec = [n5({ type: String })], _a14) {
80529
81040
  constructor() {
80530
81041
  super(...arguments);
80531
- __privateAdd(this, _label, __runInitializers(_init17, 8, this, "Button")), __runInitializers(_init17, 11, this);
81042
+ __privateAdd(this, _label, __runInitializers(_init16, 8, this, "Button")), __runInitializers(_init16, 11, this);
80532
81043
  }
80533
81044
  render() {
80534
81045
  return b2`<button><slot>${this.label}</slot></button>`;
80535
81046
  }
80536
81047
  };
80537
- _init17 = __decoratorStart(_a15);
81048
+ _init16 = __decoratorStart(_a14);
80538
81049
  _label = new WeakMap();
80539
- __decorateElement(_init17, 4, "label", _label_dec, _TestButtonPrimary, _label);
80540
- _TestButtonPrimary = __decorateElement(_init17, 0, "TestButtonPrimary", _TestButtonPrimary_decorators, _TestButtonPrimary);
81050
+ __decorateElement(_init16, 4, "label", _label_dec, _TestButtonPrimary, _label);
81051
+ _TestButtonPrimary = __decorateElement(_init16, 0, "TestButtonPrimary", _TestButtonPrimary_decorators, _TestButtonPrimary);
80541
81052
  __name(_TestButtonPrimary, "TestButtonPrimary");
80542
81053
  // This groups the element with other "Buttons" in the sidebar
80543
81054
  __publicField(_TestButtonPrimary, "demoGroups", "Buttons");
@@ -80564,25 +81075,25 @@ __publicField(_TestButtonPrimary, "styles", [
80564
81075
  }
80565
81076
  `
80566
81077
  ]);
80567
- __runInitializers(_init17, 1, _TestButtonPrimary);
81078
+ __runInitializers(_init16, 1, _TestButtonPrimary);
80568
81079
  var TestButtonPrimary = _TestButtonPrimary;
80569
81080
 
80570
81081
  // test/elements/test-button-secondary.ts
80571
- var _label_dec2, _a16, _TestButtonSecondary_decorators, _init18, _label2;
81082
+ var _label_dec2, _a15, _TestButtonSecondary_decorators, _init17, _label2;
80572
81083
  _TestButtonSecondary_decorators = [customElement("test-button-secondary")];
80573
- var _TestButtonSecondary = class _TestButtonSecondary extends (_a16 = DeesElement, _label_dec2 = [n5({ type: String })], _a16) {
81084
+ var _TestButtonSecondary = class _TestButtonSecondary extends (_a15 = DeesElement, _label_dec2 = [n5({ type: String })], _a15) {
80574
81085
  constructor() {
80575
81086
  super(...arguments);
80576
- __privateAdd(this, _label2, __runInitializers(_init18, 8, this, "Button")), __runInitializers(_init18, 11, this);
81087
+ __privateAdd(this, _label2, __runInitializers(_init17, 8, this, "Button")), __runInitializers(_init17, 11, this);
80577
81088
  }
80578
81089
  render() {
80579
81090
  return b2`<button><slot>${this.label}</slot></button>`;
80580
81091
  }
80581
81092
  };
80582
- _init18 = __decoratorStart(_a16);
81093
+ _init17 = __decoratorStart(_a15);
80583
81094
  _label2 = new WeakMap();
80584
- __decorateElement(_init18, 4, "label", _label_dec2, _TestButtonSecondary, _label2);
80585
- _TestButtonSecondary = __decorateElement(_init18, 0, "TestButtonSecondary", _TestButtonSecondary_decorators, _TestButtonSecondary);
81095
+ __decorateElement(_init17, 4, "label", _label_dec2, _TestButtonSecondary, _label2);
81096
+ _TestButtonSecondary = __decorateElement(_init17, 0, "TestButtonSecondary", _TestButtonSecondary_decorators, _TestButtonSecondary);
80586
81097
  __name(_TestButtonSecondary, "TestButtonSecondary");
80587
81098
  // Same group as test-button-primary - they'll appear together
80588
81099
  __publicField(_TestButtonSecondary, "demoGroups", "Buttons");
@@ -80609,25 +81120,25 @@ __publicField(_TestButtonSecondary, "styles", [
80609
81120
  }
80610
81121
  `
80611
81122
  ]);
80612
- __runInitializers(_init18, 1, _TestButtonSecondary);
81123
+ __runInitializers(_init17, 1, _TestButtonSecondary);
80613
81124
  var TestButtonSecondary = _TestButtonSecondary;
80614
81125
 
80615
81126
  // test/elements/test-button-danger.ts
80616
- var _label_dec3, _a17, _TestButtonDanger_decorators, _init19, _label3;
81127
+ var _label_dec3, _a16, _TestButtonDanger_decorators, _init18, _label3;
80617
81128
  _TestButtonDanger_decorators = [customElement("test-button-danger")];
80618
- var _TestButtonDanger = class _TestButtonDanger extends (_a17 = DeesElement, _label_dec3 = [n5({ type: String })], _a17) {
81129
+ var _TestButtonDanger = class _TestButtonDanger extends (_a16 = DeesElement, _label_dec3 = [n5({ type: String })], _a16) {
80619
81130
  constructor() {
80620
81131
  super(...arguments);
80621
- __privateAdd(this, _label3, __runInitializers(_init19, 8, this, "Delete")), __runInitializers(_init19, 11, this);
81132
+ __privateAdd(this, _label3, __runInitializers(_init18, 8, this, "Delete")), __runInitializers(_init18, 11, this);
80622
81133
  }
80623
81134
  render() {
80624
81135
  return b2`<button><slot>${this.label}</slot></button>`;
80625
81136
  }
80626
81137
  };
80627
- _init19 = __decoratorStart(_a17);
81138
+ _init18 = __decoratorStart(_a16);
80628
81139
  _label3 = new WeakMap();
80629
- __decorateElement(_init19, 4, "label", _label_dec3, _TestButtonDanger, _label3);
80630
- _TestButtonDanger = __decorateElement(_init19, 0, "TestButtonDanger", _TestButtonDanger_decorators, _TestButtonDanger);
81140
+ __decorateElement(_init18, 4, "label", _label_dec3, _TestButtonDanger, _label3);
81141
+ _TestButtonDanger = __decorateElement(_init18, 0, "TestButtonDanger", _TestButtonDanger_decorators, _TestButtonDanger);
80631
81142
  __name(_TestButtonDanger, "TestButtonDanger");
80632
81143
  // Same group as other buttons
80633
81144
  __publicField(_TestButtonDanger, "demoGroups", "Buttons");
@@ -80654,17 +81165,17 @@ __publicField(_TestButtonDanger, "styles", [
80654
81165
  }
80655
81166
  `
80656
81167
  ]);
80657
- __runInitializers(_init19, 1, _TestButtonDanger);
81168
+ __runInitializers(_init18, 1, _TestButtonDanger);
80658
81169
  var TestButtonDanger = _TestButtonDanger;
80659
81170
 
80660
81171
  // test/elements/test-input-text.ts
80661
- var _value_dec, _placeholder_dec, _a18, _TestInputText_decorators, _init20, _placeholder, _value;
81172
+ var _value_dec, _placeholder_dec, _a17, _TestInputText_decorators, _init19, _placeholder, _value;
80662
81173
  _TestInputText_decorators = [customElement("test-input-text")];
80663
- var _TestInputText = class _TestInputText extends (_a18 = DeesElement, _placeholder_dec = [n5({ type: String })], _value_dec = [n5({ type: String })], _a18) {
81174
+ var _TestInputText = class _TestInputText extends (_a17 = DeesElement, _placeholder_dec = [n5({ type: String })], _value_dec = [n5({ type: String })], _a17) {
80664
81175
  constructor() {
80665
81176
  super(...arguments);
80666
- __privateAdd(this, _placeholder, __runInitializers(_init20, 8, this, "")), __runInitializers(_init20, 11, this);
80667
- __privateAdd(this, _value, __runInitializers(_init20, 12, this, "")), __runInitializers(_init20, 15, this);
81177
+ __privateAdd(this, _placeholder, __runInitializers(_init19, 8, this, "")), __runInitializers(_init19, 11, this);
81178
+ __privateAdd(this, _value, __runInitializers(_init19, 12, this, "")), __runInitializers(_init19, 15, this);
80668
81179
  }
80669
81180
  render() {
80670
81181
  return b2`
@@ -80677,12 +81188,12 @@ var _TestInputText = class _TestInputText extends (_a18 = DeesElement, _placehol
80677
81188
  `;
80678
81189
  }
80679
81190
  };
80680
- _init20 = __decoratorStart(_a18);
81191
+ _init19 = __decoratorStart(_a17);
80681
81192
  _placeholder = new WeakMap();
80682
81193
  _value = new WeakMap();
80683
- __decorateElement(_init20, 4, "placeholder", _placeholder_dec, _TestInputText, _placeholder);
80684
- __decorateElement(_init20, 4, "value", _value_dec, _TestInputText, _value);
80685
- _TestInputText = __decorateElement(_init20, 0, "TestInputText", _TestInputText_decorators, _TestInputText);
81194
+ __decorateElement(_init19, 4, "placeholder", _placeholder_dec, _TestInputText, _placeholder);
81195
+ __decorateElement(_init19, 4, "value", _value_dec, _TestInputText, _value);
81196
+ _TestInputText = __decorateElement(_init19, 0, "TestInputText", _TestInputText_decorators, _TestInputText);
80686
81197
  __name(_TestInputText, "TestInputText");
80687
81198
  // Different group - "Inputs"
80688
81199
  __publicField(_TestInputText, "demoGroups", "Inputs");
@@ -80713,17 +81224,17 @@ __publicField(_TestInputText, "styles", [
80713
81224
  }
80714
81225
  `
80715
81226
  ]);
80716
- __runInitializers(_init20, 1, _TestInputText);
81227
+ __runInitializers(_init19, 1, _TestInputText);
80717
81228
  var TestInputText = _TestInputText;
80718
81229
 
80719
81230
  // test/elements/test-input-checkbox.ts
80720
- var _checked_dec, _label_dec4, _a19, _TestInputCheckbox_decorators, _init21, _label4, _checked;
81231
+ var _checked_dec, _label_dec4, _a18, _TestInputCheckbox_decorators, _init20, _label4, _checked;
80721
81232
  _TestInputCheckbox_decorators = [customElement("test-input-checkbox")];
80722
- var _TestInputCheckbox = class _TestInputCheckbox extends (_a19 = DeesElement, _label_dec4 = [n5({ type: String })], _checked_dec = [n5({ type: Boolean })], _a19) {
81233
+ var _TestInputCheckbox = class _TestInputCheckbox extends (_a18 = DeesElement, _label_dec4 = [n5({ type: String })], _checked_dec = [n5({ type: Boolean })], _a18) {
80723
81234
  constructor() {
80724
81235
  super(...arguments);
80725
- __privateAdd(this, _label4, __runInitializers(_init21, 8, this, "Checkbox")), __runInitializers(_init21, 11, this);
80726
- __privateAdd(this, _checked, __runInitializers(_init21, 12, this, false)), __runInitializers(_init21, 15, this);
81236
+ __privateAdd(this, _label4, __runInitializers(_init20, 8, this, "Checkbox")), __runInitializers(_init20, 11, this);
81237
+ __privateAdd(this, _checked, __runInitializers(_init20, 12, this, false)), __runInitializers(_init20, 15, this);
80727
81238
  }
80728
81239
  render() {
80729
81240
  return b2`
@@ -80735,12 +81246,12 @@ var _TestInputCheckbox = class _TestInputCheckbox extends (_a19 = DeesElement, _
80735
81246
  `;
80736
81247
  }
80737
81248
  };
80738
- _init21 = __decoratorStart(_a19);
81249
+ _init20 = __decoratorStart(_a18);
80739
81250
  _label4 = new WeakMap();
80740
81251
  _checked = new WeakMap();
80741
- __decorateElement(_init21, 4, "label", _label_dec4, _TestInputCheckbox, _label4);
80742
- __decorateElement(_init21, 4, "checked", _checked_dec, _TestInputCheckbox, _checked);
80743
- _TestInputCheckbox = __decorateElement(_init21, 0, "TestInputCheckbox", _TestInputCheckbox_decorators, _TestInputCheckbox);
81252
+ __decorateElement(_init20, 4, "label", _label_dec4, _TestInputCheckbox, _label4);
81253
+ __decorateElement(_init20, 4, "checked", _checked_dec, _TestInputCheckbox, _checked);
81254
+ _TestInputCheckbox = __decorateElement(_init20, 0, "TestInputCheckbox", _TestInputCheckbox_decorators, _TestInputCheckbox);
80744
81255
  __name(_TestInputCheckbox, "TestInputCheckbox");
80745
81256
  // Same group as test-input-text
80746
81257
  __publicField(_TestInputCheckbox, "demoGroups", ["Inputs", "A Second Group"]);
@@ -80781,7 +81292,7 @@ __publicField(_TestInputCheckbox, "styles", [
80781
81292
  }
80782
81293
  `
80783
81294
  ]);
80784
- __runInitializers(_init21, 1, _TestInputCheckbox);
81295
+ __runInitializers(_init20, 1, _TestInputCheckbox);
80785
81296
  var TestInputCheckbox = _TestInputCheckbox;
80786
81297
 
80787
81298
  // test/views/index.ts
@@ -80793,13 +81304,13 @@ __export(views_exports, {
80793
81304
  });
80794
81305
 
80795
81306
  // test/views/view-dashboard.ts
80796
- var _notificationCount_dec, _title_dec, _a20, _ViewDashboard_decorators, _init22, _title, _notificationCount;
81307
+ var _notificationCount_dec, _title_dec, _a19, _ViewDashboard_decorators, _init21, _title, _notificationCount;
80797
81308
  _ViewDashboard_decorators = [customElement("view-dashboard")];
80798
- var _ViewDashboard = class _ViewDashboard extends (_a20 = DeesElement, _title_dec = [n5()], _notificationCount_dec = [n5({ type: Number })], _a20) {
81309
+ var _ViewDashboard = class _ViewDashboard extends (_a19 = DeesElement, _title_dec = [n5()], _notificationCount_dec = [n5({ type: Number })], _a19) {
80799
81310
  constructor() {
80800
81311
  super(...arguments);
80801
- __privateAdd(this, _title, __runInitializers(_init22, 8, this, "Dashboard")), __runInitializers(_init22, 11, this);
80802
- __privateAdd(this, _notificationCount, __runInitializers(_init22, 12, this, 3)), __runInitializers(_init22, 15, this);
81312
+ __privateAdd(this, _title, __runInitializers(_init21, 8, this, "Dashboard")), __runInitializers(_init21, 11, this);
81313
+ __privateAdd(this, _notificationCount, __runInitializers(_init21, 12, this, 3)), __runInitializers(_init21, 15, this);
80803
81314
  }
80804
81315
  render() {
80805
81316
  return b2`
@@ -80880,12 +81391,12 @@ var _ViewDashboard = class _ViewDashboard extends (_a20 = DeesElement, _title_de
80880
81391
  `;
80881
81392
  }
80882
81393
  };
80883
- _init22 = __decoratorStart(_a20);
81394
+ _init21 = __decoratorStart(_a19);
80884
81395
  _title = new WeakMap();
80885
81396
  _notificationCount = new WeakMap();
80886
- __decorateElement(_init22, 4, "title", _title_dec, _ViewDashboard, _title);
80887
- __decorateElement(_init22, 4, "notificationCount", _notificationCount_dec, _ViewDashboard, _notificationCount);
80888
- _ViewDashboard = __decorateElement(_init22, 0, "ViewDashboard", _ViewDashboard_decorators, _ViewDashboard);
81397
+ __decorateElement(_init21, 4, "title", _title_dec, _ViewDashboard, _title);
81398
+ __decorateElement(_init21, 4, "notificationCount", _notificationCount_dec, _ViewDashboard, _notificationCount);
81399
+ _ViewDashboard = __decorateElement(_init21, 0, "ViewDashboard", _ViewDashboard_decorators, _ViewDashboard);
80889
81400
  __name(_ViewDashboard, "ViewDashboard");
80890
81401
  __publicField(_ViewDashboard, "demo", /* @__PURE__ */ __name(() => b2`<view-dashboard></view-dashboard>`, "demo"));
80891
81402
  __publicField(_ViewDashboard, "styles", [
@@ -81082,18 +81593,18 @@ __publicField(_ViewDashboard, "styles", [
81082
81593
  }
81083
81594
  `
81084
81595
  ]);
81085
- __runInitializers(_init22, 1, _ViewDashboard);
81596
+ __runInitializers(_init21, 1, _ViewDashboard);
81086
81597
  var ViewDashboard = _ViewDashboard;
81087
81598
 
81088
81599
  // test/views/view-settings.ts
81089
- var _userEmail_dec, _userName_dec, _activeTab_dec, _a21, _ViewSettings_decorators, _init23, _activeTab, _userName, _userEmail;
81600
+ var _userEmail_dec, _userName_dec, _activeTab_dec, _a20, _ViewSettings_decorators, _init22, _activeTab, _userName, _userEmail;
81090
81601
  _ViewSettings_decorators = [customElement("view-settings")];
81091
- var _ViewSettings = class _ViewSettings extends (_a21 = DeesElement, _activeTab_dec = [n5()], _userName_dec = [n5()], _userEmail_dec = [n5()], _a21) {
81602
+ var _ViewSettings = class _ViewSettings extends (_a20 = DeesElement, _activeTab_dec = [n5()], _userName_dec = [n5()], _userEmail_dec = [n5()], _a20) {
81092
81603
  constructor() {
81093
81604
  super(...arguments);
81094
- __privateAdd(this, _activeTab, __runInitializers(_init23, 8, this, "profile")), __runInitializers(_init23, 11, this);
81095
- __privateAdd(this, _userName, __runInitializers(_init23, 12, this, "John Doe")), __runInitializers(_init23, 15, this);
81096
- __privateAdd(this, _userEmail, __runInitializers(_init23, 16, this, "john@example.com")), __runInitializers(_init23, 19, this);
81605
+ __privateAdd(this, _activeTab, __runInitializers(_init22, 8, this, "profile")), __runInitializers(_init22, 11, this);
81606
+ __privateAdd(this, _userName, __runInitializers(_init22, 12, this, "John Doe")), __runInitializers(_init22, 15, this);
81607
+ __privateAdd(this, _userEmail, __runInitializers(_init22, 16, this, "john@example.com")), __runInitializers(_init22, 19, this);
81097
81608
  }
81098
81609
  handleTabClick(tab2) {
81099
81610
  this.activeTab = tab2;
@@ -81252,14 +81763,14 @@ var _ViewSettings = class _ViewSettings extends (_a21 = DeesElement, _activeTab_
81252
81763
  `;
81253
81764
  }
81254
81765
  };
81255
- _init23 = __decoratorStart(_a21);
81766
+ _init22 = __decoratorStart(_a20);
81256
81767
  _activeTab = new WeakMap();
81257
81768
  _userName = new WeakMap();
81258
81769
  _userEmail = new WeakMap();
81259
- __decorateElement(_init23, 4, "activeTab", _activeTab_dec, _ViewSettings, _activeTab);
81260
- __decorateElement(_init23, 4, "userName", _userName_dec, _ViewSettings, _userName);
81261
- __decorateElement(_init23, 4, "userEmail", _userEmail_dec, _ViewSettings, _userEmail);
81262
- _ViewSettings = __decorateElement(_init23, 0, "ViewSettings", _ViewSettings_decorators, _ViewSettings);
81770
+ __decorateElement(_init22, 4, "activeTab", _activeTab_dec, _ViewSettings, _activeTab);
81771
+ __decorateElement(_init22, 4, "userName", _userName_dec, _ViewSettings, _userName);
81772
+ __decorateElement(_init22, 4, "userEmail", _userEmail_dec, _ViewSettings, _userEmail);
81773
+ _ViewSettings = __decorateElement(_init22, 0, "ViewSettings", _ViewSettings_decorators, _ViewSettings);
81263
81774
  __name(_ViewSettings, "ViewSettings");
81264
81775
  __publicField(_ViewSettings, "demo", [
81265
81776
  () => b2`<view-settings></view-settings>`,
@@ -81521,18 +82032,18 @@ __publicField(_ViewSettings, "styles", [
81521
82032
  }
81522
82033
  `
81523
82034
  ]);
81524
- __runInitializers(_init23, 1, _ViewSettings);
82035
+ __runInitializers(_init22, 1, _ViewSettings);
81525
82036
  var ViewSettings = _ViewSettings;
81526
82037
 
81527
82038
  // test/views/view-empty-state.ts
81528
- var _description_dec, _title_dec2, _variant_dec, _a22, _ViewEmptyState_decorators, _init24, _variant, _title2, _description;
82039
+ var _description_dec, _title_dec2, _variant_dec, _a21, _ViewEmptyState_decorators, _init23, _variant, _title2, _description;
81529
82040
  _ViewEmptyState_decorators = [customElement("view-empty-state")];
81530
- var _ViewEmptyState = class _ViewEmptyState extends (_a22 = DeesElement, _variant_dec = [n5()], _title_dec2 = [n5()], _description_dec = [n5()], _a22) {
82041
+ var _ViewEmptyState = class _ViewEmptyState extends (_a21 = DeesElement, _variant_dec = [n5()], _title_dec2 = [n5()], _description_dec = [n5()], _a21) {
81531
82042
  constructor() {
81532
82043
  super(...arguments);
81533
- __privateAdd(this, _variant, __runInitializers(_init24, 8, this, "empty")), __runInitializers(_init24, 11, this);
81534
- __privateAdd(this, _title2, __runInitializers(_init24, 12, this, "")), __runInitializers(_init24, 15, this);
81535
- __privateAdd(this, _description, __runInitializers(_init24, 16, this, "")), __runInitializers(_init24, 19, this);
82044
+ __privateAdd(this, _variant, __runInitializers(_init23, 8, this, "empty")), __runInitializers(_init23, 11, this);
82045
+ __privateAdd(this, _title2, __runInitializers(_init23, 12, this, "")), __runInitializers(_init23, 15, this);
82046
+ __privateAdd(this, _description, __runInitializers(_init23, 16, this, "")), __runInitializers(_init23, 19, this);
81536
82047
  }
81537
82048
  getContent() {
81538
82049
  switch (this.variant) {
@@ -81593,14 +82104,14 @@ var _ViewEmptyState = class _ViewEmptyState extends (_a22 = DeesElement, _varian
81593
82104
  }
81594
82105
  }
81595
82106
  };
81596
- _init24 = __decoratorStart(_a22);
82107
+ _init23 = __decoratorStart(_a21);
81597
82108
  _variant = new WeakMap();
81598
82109
  _title2 = new WeakMap();
81599
82110
  _description = new WeakMap();
81600
- __decorateElement(_init24, 4, "variant", _variant_dec, _ViewEmptyState, _variant);
81601
- __decorateElement(_init24, 4, "title", _title_dec2, _ViewEmptyState, _title2);
81602
- __decorateElement(_init24, 4, "description", _description_dec, _ViewEmptyState, _description);
81603
- _ViewEmptyState = __decorateElement(_init24, 0, "ViewEmptyState", _ViewEmptyState_decorators, _ViewEmptyState);
82111
+ __decorateElement(_init23, 4, "variant", _variant_dec, _ViewEmptyState, _variant);
82112
+ __decorateElement(_init23, 4, "title", _title_dec2, _ViewEmptyState, _title2);
82113
+ __decorateElement(_init23, 4, "description", _description_dec, _ViewEmptyState, _description);
82114
+ _ViewEmptyState = __decorateElement(_init23, 0, "ViewEmptyState", _ViewEmptyState_decorators, _ViewEmptyState);
81604
82115
  __name(_ViewEmptyState, "ViewEmptyState");
81605
82116
  __publicField(_ViewEmptyState, "demo", [
81606
82117
  () => b2`<view-empty-state></view-empty-state>`,
@@ -81781,7 +82292,7 @@ __publicField(_ViewEmptyState, "styles", [
81781
82292
  }
81782
82293
  `
81783
82294
  ]);
81784
- __runInitializers(_init24, 1, _ViewEmptyState);
82295
+ __runInitializers(_init23, 1, _ViewEmptyState);
81785
82296
  var ViewEmptyState = _ViewEmptyState;
81786
82297
 
81787
82298
  // test/pages/index.ts