@digipair/skill-web-editor 0.112.3 → 0.114.1

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.
Files changed (34) hide show
  1. package/README.md +7 -0
  2. package/{blockly-to-json.cjs.js → dist/blockly-to-json.cjs.js} +4 -6
  3. package/{blockly-to-json.esm.js → dist/blockly-to-json.esm.js} +4 -6
  4. package/{index.cjs2.js → dist/index.cjs.js} +155 -224
  5. package/{index.esm2.js → dist/index.esm.js} +156 -224
  6. package/{pins-to-blockly.cjs.js → dist/pins-to-blockly.cjs.js} +87 -95
  7. package/{pins-to-blockly.esm.js → dist/pins-to-blockly.esm.js} +87 -95
  8. package/{libs/skill-web-editor → dist}/src/index.d.ts +1 -0
  9. package/dist/src/index.d.ts.map +1 -0
  10. package/{libs/skill-web-editor → dist}/src/lib/blocks/json.d.ts +1 -0
  11. package/dist/src/lib/blocks/json.d.ts.map +1 -0
  12. package/{libs/skill-web-editor → dist}/src/lib/editor.element.d.ts +1 -0
  13. package/dist/src/lib/editor.element.d.ts.map +1 -0
  14. package/dist/src/lib/generator/blockly-to-json.d.ts +2 -0
  15. package/dist/src/lib/generator/blockly-to-json.d.ts.map +1 -0
  16. package/{libs/skill-web-editor → dist}/src/lib/generator/json-to-blockly.d.ts +1 -0
  17. package/dist/src/lib/generator/json-to-blockly.d.ts.map +1 -0
  18. package/{libs/skill-web-editor → dist}/src/lib/generator/pins-to-blockly.d.ts +1 -0
  19. package/dist/src/lib/generator/pins-to-blockly.d.ts.map +1 -0
  20. package/{libs/skill-web-editor → dist}/src/lib/schemas/web.fr.schema.d.ts +1 -0
  21. package/dist/src/lib/schemas/web.fr.schema.d.ts.map +1 -0
  22. package/{libs/skill-web-editor → dist}/src/lib/schemas/web.schema.d.ts +1 -0
  23. package/dist/src/lib/schemas/web.schema.d.ts.map +1 -0
  24. package/dist/src/lib/skill-web-editor.d.ts +2 -0
  25. package/dist/src/lib/skill-web-editor.d.ts.map +1 -0
  26. package/package.json +30 -5
  27. package/index.cjs.js +0 -12
  28. package/index.d.ts +0 -1
  29. package/index.esm.js +0 -1
  30. package/libs/skill-web-editor/src/lib/generator/blockly-to-json.d.ts +0 -1
  31. package/libs/skill-web-editor/src/lib/skill-web-editor.d.ts +0 -1
  32. /package/{index.cjs.d.ts → dist/index.d.ts} +0 -0
  33. /package/{schema.fr.json → dist/schema.fr.json} +0 -0
  34. /package/{schema.json → dist/schema.json} +0 -0
@@ -1,14 +1,3 @@
1
- function _extends() {
2
- _extends = Object.assign || function assign(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
6
- }
7
- return target;
8
- };
9
- return _extends.apply(this, arguments);
10
- }
11
-
12
1
  function __decorate(decorators, target, key, desc) {
13
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -18,7 +7,7 @@ function __decorate(decorators, target, key, desc) {
18
7
  function __metadata(metadataKey, metadataValue) {
19
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
20
9
  }
21
- typeof SuppressedError === "function" ? SuppressedError : function _SuppressedError(error, suppressed, message) {
10
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
22
11
  var e = new Error(message);
23
12
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
24
13
  };
@@ -43,7 +32,6 @@ function _defineProperties$3(target, props) {
43
32
  }
44
33
  function _create_class$3(Constructor, protoProps, staticProps) {
45
34
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
46
- if (staticProps) _defineProperties$3(Constructor, staticProps);
47
35
  return Constructor;
48
36
  }
49
37
  function _instanceof(left, right) {
@@ -53,11 +41,11 @@ function _instanceof(left, right) {
53
41
  return left instanceof right;
54
42
  }
55
43
  }
56
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
44
+ var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$4 = new WeakMap;
57
45
  var n$3 = /*#__PURE__*/ function() {
58
46
  function n(t, e, o) {
59
47
  _class_call_check$3(this, n);
60
- if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
48
+ if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
61
49
  this.cssText = t, this.t = e;
62
50
  }
63
51
  _create_class$3(n, [
@@ -68,7 +56,7 @@ var n$3 = /*#__PURE__*/ function() {
68
56
  var s = this.t;
69
57
  if (e$2 && void 0 === t) {
70
58
  var e1 = void 0 !== s && 1 === s.length;
71
- e1 && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$3.set(s, t));
59
+ e1 && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$4.set(s, t));
72
60
  }
73
61
  return t;
74
62
  }
@@ -82,8 +70,8 @@ var n$3 = /*#__PURE__*/ function() {
82
70
  ]);
83
71
  return n;
84
72
  }();
85
- var r$4 = function(t) {
86
- return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
73
+ var r$3 = function(t) {
74
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
87
75
  }, S$1 = function(s, o) {
88
76
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
89
77
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -134,7 +122,7 @@ var r$4 = function(t) {
134
122
  }
135
123
  }
136
124
  }
137
- return r$4(e);
125
+ return r$3(e);
138
126
  }(t) : t;
139
127
  };
140
128
 
@@ -276,7 +264,7 @@ function _non_iterable_spread$1() {
276
264
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
277
265
  }
278
266
  function _possible_constructor_return$2(self, call) {
279
- if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
267
+ if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
280
268
  return call;
281
269
  }
282
270
  return _assert_this_initialized$2(self);
@@ -294,7 +282,7 @@ function _sliced_to_array$1(arr, i) {
294
282
  function _to_consumable_array$1(arr) {
295
283
  return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
296
284
  }
297
- function _type_of$2(obj) {
285
+ function _type_of$3(obj) {
298
286
  "@swc/helpers - typeof";
299
287
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
300
288
  }
@@ -456,7 +444,7 @@ var _Symbol, _a, _a1;
456
444
  * @license
457
445
  * Copyright 2017 Google LLC
458
446
  * SPDX-License-Identifier: BSD-3-Clause
459
- */ var i$2 = Object.is, e$1 = Object.defineProperty, r$3 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
447
+ */ var i$2 = Object.is, e$1 = Object.defineProperty, h$1 = Object.getOwnPropertyDescriptor, r$2 = Object.getOwnPropertyNames, o$3 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
460
448
  return t;
461
449
  }, u$1 = {
462
450
  toAttribute: function toAttribute(t, s) {
@@ -491,25 +479,26 @@ var _Symbol, _a, _a1;
491
479
  }
492
480
  }, f$1 = function(t, s) {
493
481
  return !i$2(t, s);
494
- }, y$1 = {
495
- attribute: !0,
482
+ }, b = {
483
+ attribute: true,
496
484
  type: String,
497
485
  converter: u$1,
498
- reflect: !1,
486
+ reflect: false,
487
+ useDefault: false,
499
488
  hasChanged: f$1
500
489
  };
501
490
  var _metadata, _litPropertyMetadata;
502
491
  (_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a.litPropertyMetadata = new WeakMap;
503
- var b = /*#__PURE__*/ function(HTMLElement1) {
504
- _inherits$2(b, HTMLElement1);
505
- var _super = _create_super$2(b);
506
- function b() {
507
- _class_call_check$2(this, b);
492
+ var y$1 = /*#__PURE__*/ function(HTMLElement1) {
493
+ _inherits$2(y, HTMLElement1);
494
+ var _super = _create_super$2(y);
495
+ function y() {
496
+ _class_call_check$2(this, y);
508
497
  var _this;
509
- _this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = !1, _this.hasUpdated = !1, _this._$Em = null, _this._$Ev();
498
+ _this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
510
499
  return _possible_constructor_return$2(_this);
511
500
  }
512
- _create_class$2(b, [
501
+ _create_class$2(y, [
513
502
  {
514
503
  key: "_$Ev",
515
504
  value: function _$Ev() {
@@ -577,7 +566,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
577
566
  value: function connectedCallback() {
578
567
  var _this__$EO;
579
568
  var _this_renderRoot;
580
- (_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(!0), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
569
+ (_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(true), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
581
570
  var _t_hostConnected;
582
571
  return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
583
572
  });
@@ -604,13 +593,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
604
593
  }
605
594
  },
606
595
  {
607
- key: "_$EC",
608
- value: function _$EC(t, s) {
596
+ key: "_$ET",
597
+ value: function _$ET(t, s) {
609
598
  var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
610
- if (void 0 !== e && !0 === i.reflect) {
599
+ if (void 0 !== e && true === i.reflect) {
611
600
  var _i_converter;
612
- var r = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
613
- this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
601
+ var h = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
602
+ this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
614
603
  }
615
604
  }
616
605
  },
@@ -619,11 +608,14 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
619
608
  value: function _$AK(t, s) {
620
609
  var i = this.constructor, e = i._$Eh.get(t);
621
610
  if (void 0 !== e && this._$Em !== e) {
622
- var _t_converter;
623
- var _$t = i.getPropertyOptions(e), r = "function" == typeof _$t.converter ? {
611
+ var _t_converter, _this__$Ej;
612
+ var _$t = i.getPropertyOptions(e), h = "function" == typeof _$t.converter ? {
624
613
  fromAttribute: _$t.converter
625
614
  } : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
626
- this._$Em = e, this[e] = r.fromAttribute(s, _$t.type), this._$Em = null;
615
+ this._$Em = e;
616
+ var r = h.fromAttribute(s, _$t.type);
617
+ var _ref;
618
+ this[e] = (_ref = r !== null && r !== void 0 ? r : (_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(e)) !== null && _ref !== void 0 ? _ref : r, this._$Em = null;
627
619
  }
628
620
  }
629
621
  },
@@ -631,30 +623,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
631
623
  key: "requestUpdate",
632
624
  value: function requestUpdate(t, s, i) {
633
625
  if (void 0 !== t) {
626
+ var _this__$Ej;
627
+ var e = this.constructor, h = this[t];
634
628
  var _i_hasChanged;
635
- if (i !== null && i !== void 0 ? i : i = this.constructor.getPropertyOptions(t), !((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(this[t], s)) return;
636
- this.P(t, s, i);
629
+ if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
630
+ this.C(t, s, i);
637
631
  }
638
- !1 === this.isUpdatePending && (this._$ES = this._$ET());
632
+ false === this.isUpdatePending && (this._$ES = this._$EP());
639
633
  }
640
634
  },
641
635
  {
642
- key: "P",
643
- value: function P(t, s, i) {
644
- var _this__$Ej;
645
- this._$AL.has(t) || this._$AL.set(t, s), !0 === i.reflect && this._$Em !== t && ((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Set).add(t);
636
+ key: "C",
637
+ value: function C(t, s, param, r) {
638
+ var i = param.useDefault, e = param.reflect, h = param.wrapped;
639
+ var _this__$Ej, _ref, _this__$Eq;
640
+ i && !((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Map).has(t) && (this._$Ej.set(t, (_ref = r !== null && r !== void 0 ? r : s) !== null && _ref !== void 0 ? _ref : this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && ((_this__$Eq = this._$Eq) !== null && _this__$Eq !== void 0 ? _this__$Eq : this._$Eq = new Set).add(t));
646
641
  }
647
642
  },
648
643
  {
649
- key: "_$ET",
650
- value: function _$ET() {
644
+ key: "_$EP",
645
+ value: function _$EP() {
651
646
  var _this = this;
652
647
  return _async_to_generator(function() {
653
648
  var t, _$t, _tmp;
654
649
  return _ts_generator(this, function(_state) {
655
650
  switch(_state.label){
656
651
  case 0:
657
- _this.isUpdatePending = !0;
652
+ _this.isUpdatePending = true;
658
653
  _state.label = 1;
659
654
  case 1:
660
655
  _state.trys.push([
@@ -744,7 +739,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
744
739
  if (t1.size > 0) try {
745
740
  for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
746
741
  var _step_value1 = _sliced_to_array$1(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
747
- !0 !== i.wrapped || this._$AL.has(_$s1) || void 0 === this[_$s1] || this.P(_$s1, this[_$s1], i);
742
+ var t2 = i.wrapped, e = this[_$s1];
743
+ !0 !== t2 || this._$AL.has(_$s1) || void 0 === e || this.C(_$s1, void 0, i, e);
748
744
  }
749
745
  } catch (err) {
750
746
  _didIteratorError1 = true;
@@ -761,18 +757,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
761
757
  }
762
758
  }
763
759
  }
764
- var t2 = !1;
760
+ var t3 = false;
765
761
  var _$s2 = this._$AL;
766
762
  try {
767
763
  var _this__$EO;
768
- t2 = this.shouldUpdate(_$s2), t2 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
764
+ t3 = this.shouldUpdate(_$s2), t3 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
769
765
  var _t_hostUpdate;
770
766
  return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
771
- }), this.update(_$s2)) : this._$EU();
767
+ }), this.update(_$s2)) : this._$EM();
772
768
  } catch (s) {
773
- throw t2 = !1, this._$EU(), s;
769
+ throw t3 = false, this._$EM(), s;
774
770
  }
775
- t2 && this._$AE(_$s2);
771
+ t3 && this._$AE(_$s2);
776
772
  }
777
773
  },
778
774
  {
@@ -786,13 +782,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
786
782
  (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
787
783
  var _t_hostUpdated;
788
784
  return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
789
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
785
+ }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
790
786
  }
791
787
  },
792
788
  {
793
- key: "_$EU",
794
- value: function _$EU() {
795
- this._$AL = new Map, this.isUpdatePending = !1;
789
+ key: "_$EM",
790
+ value: function _$EM() {
791
+ this._$AL = new Map, this.isUpdatePending = false;
796
792
  }
797
793
  },
798
794
  {
@@ -810,16 +806,16 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
810
806
  {
811
807
  key: "shouldUpdate",
812
808
  value: function shouldUpdate(t) {
813
- return !0;
809
+ return true;
814
810
  }
815
811
  },
816
812
  {
817
813
  key: "update",
818
814
  value: function update(t) {
819
815
  var _this = this;
820
- this._$Ej && (this._$Ej = this._$Ej.forEach(function(t) {
821
- return _this._$EC(t, _this[t]);
822
- })), this._$EU();
816
+ this._$Eq && (this._$Eq = this._$Eq.forEach(function(t) {
817
+ return _this._$ET(t, _this[t]);
818
+ })), this._$EM();
823
819
  }
824
820
  },
825
821
  {
@@ -847,35 +843,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
847
843
  {
848
844
  key: "createProperty",
849
845
  value: function createProperty(t) {
850
- var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : y$1;
851
- if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
852
- var i = Symbol(), r = this.getPropertyDescriptor(t, i, s);
853
- void 0 !== r && e$1(this.prototype, t, r);
846
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
847
+ if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
848
+ var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
849
+ void 0 !== h && e$1(this.prototype, t, h);
854
850
  }
855
851
  }
856
852
  },
857
853
  {
858
854
  key: "getPropertyDescriptor",
859
855
  value: function getPropertyDescriptor(t, s, i) {
860
- var _r;
861
- var _ref = (_r = r$3(this.prototype, t)) !== null && _r !== void 0 ? _r : {
856
+ var _h;
857
+ var _ref = (_h = h$1(this.prototype, t)) !== null && _h !== void 0 ? _h : {
862
858
  get: function get() {
863
859
  return this[s];
864
860
  },
865
861
  set: function set(t) {
866
862
  this[s] = t;
867
863
  }
868
- }, e = _ref.get, h = _ref.set;
864
+ }, e = _ref.get, r = _ref.set;
869
865
  return {
870
- get: function get() {
871
- return e === null || e === void 0 ? void 0 : e.call(this);
872
- },
866
+ get: e,
873
867
  set: function set(s) {
874
- var r = e === null || e === void 0 ? void 0 : e.call(this);
875
- h.call(this, s), this.requestUpdate(t, r, i);
868
+ var h = e === null || e === void 0 ? void 0 : e.call(this);
869
+ r === null || r === void 0 ? void 0 : r.call(this, s), this.requestUpdate(t, h, i);
876
870
  },
877
- configurable: !0,
878
- enumerable: !0
871
+ configurable: true,
872
+ enumerable: true
879
873
  };
880
874
  }
881
875
  },
@@ -883,7 +877,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
883
877
  key: "getPropertyOptions",
884
878
  value: function getPropertyOptions(t) {
885
879
  var _this_elementProperties_get;
886
- return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : y$1;
880
+ return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
887
881
  }
888
882
  },
889
883
  {
@@ -898,8 +892,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
898
892
  key: "finalize",
899
893
  value: function finalize() {
900
894
  if (this.hasOwnProperty(d$1("finalized"))) return;
901
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
902
- var t = this.properties, s = _to_consumable_array$1(h$1(t)).concat(_to_consumable_array$1(o$2(t)));
895
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
896
+ var t = this.properties, s = _to_consumable_array$1(r$2(t)).concat(_to_consumable_array$1(o$3(t)));
903
897
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
904
898
  try {
905
899
  for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -1004,18 +998,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
1004
998
  key: "_$Eu",
1005
999
  value: function _$Eu(t, s) {
1006
1000
  var i = s.attribute;
1007
- return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
1001
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
1008
1002
  }
1009
1003
  }
1010
1004
  ]);
1011
- return b;
1005
+ return y;
1012
1006
  }(_wrap_native_super(HTMLElement));
1013
1007
  var _reactiveElementVersions;
1014
- b.elementStyles = [], b.shadowRootOptions = {
1008
+ y$1.elementStyles = [], y$1.shadowRootOptions = {
1015
1009
  mode: "open"
1016
- }, b[d$1("elementProperties")] = new Map, b[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
1017
- ReactiveElement: b
1018
- }), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.0.4");
1010
+ }, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
1011
+ ReactiveElement: y$1
1012
+ }), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
1019
1013
 
1020
1014
  /**
1021
1015
  * @license
@@ -1110,7 +1104,7 @@ function _non_iterable_spread() {
1110
1104
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1111
1105
  }
1112
1106
  function _possible_constructor_return$1(self, call) {
1113
- if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
1107
+ if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
1114
1108
  return call;
1115
1109
  }
1116
1110
  return _assert_this_initialized$1(self);
@@ -1128,7 +1122,7 @@ function _sliced_to_array(arr, i) {
1128
1122
  function _to_consumable_array(arr) {
1129
1123
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
1130
1124
  }
1131
- function _type_of$1(obj) {
1125
+ function _type_of$2(obj) {
1132
1126
  "@swc/helpers - typeof";
1133
1127
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1134
1128
  }
@@ -1165,17 +1159,17 @@ function _create_super$1(Derived) {
1165
1159
  };
1166
1160
  }
1167
1161
  var _t;
1168
- var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1162
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
1169
1163
  createHTML: function(t) {
1170
1164
  return t;
1171
1165
  }
1172
- }) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$1 = "?" + h, n$1 = "<".concat(o$1, ">"), r$2 = document, l = function() {
1173
- return r$2.createComment("");
1166
+ }) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$1 = document, l = function() {
1167
+ return r$1.createComment("");
1174
1168
  }, c = function(t) {
1175
- return null === t || "object" != typeof t && "function" != typeof t;
1169
+ return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$2(t)) && "function" != typeof t;
1176
1170
  }, a = Array.isArray, u = function(t) {
1177
1171
  return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
1178
- }, d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
1172
+ }, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
1179
1173
  return function(i) {
1180
1174
  for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
1181
1175
  s[_key - 1] = arguments[_key];
@@ -1186,10 +1180,10 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
1186
1180
  values: s
1187
1181
  };
1188
1182
  };
1189
- }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
1183
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$1.createTreeWalker(r$1, 129);
1190
1184
  function P(t, i) {
1191
1185
  if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1192
- return void 0 !== s ? s.createHTML(i) : i;
1186
+ return void 0 !== s$1 ? s$1.createHTML(i) : i;
1193
1187
  }
1194
1188
  var V = function(t, i) {
1195
1189
  var s = t.length - 1, o = [];
@@ -1264,7 +1258,7 @@ var N = /*#__PURE__*/ function() {
1264
1258
  r.append(t3[s2], l());
1265
1259
  }
1266
1260
  }
1267
- } else if (8 === r.nodeType) if (r.data === o$1) d.push({
1261
+ } else if (8 === r.nodeType) if (r.data === o$2) d.push({
1268
1262
  type: 2,
1269
1263
  index: c
1270
1264
  });
@@ -1282,7 +1276,7 @@ var N = /*#__PURE__*/ function() {
1282
1276
  {
1283
1277
  key: "createElement",
1284
1278
  value: function createElement(t, i) {
1285
- var s = r$2.createElement("template");
1279
+ var s = r$1.createElement("template");
1286
1280
  return s.innerHTML = t, s;
1287
1281
  }
1288
1282
  }
@@ -1297,7 +1291,7 @@ function S(t, i) {
1297
1291
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1298
1292
  var o = c(i) ? void 0 : i._$litDirective$;
1299
1293
  var __$Co;
1300
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1294
+ return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1301
1295
  }
1302
1296
  var M = /*#__PURE__*/ function() {
1303
1297
  function M(t, i) {
@@ -1321,7 +1315,7 @@ var M = /*#__PURE__*/ function() {
1321
1315
  key: "u",
1322
1316
  value: function u(t) {
1323
1317
  var _t_creationScope;
1324
- var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, !0);
1318
+ var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$1).importNode(i, true);
1325
1319
  C.currentNode = e;
1326
1320
  var h = C.nextNode(), o = 0, n = 0, l = s[0];
1327
1321
  for(; void 0 !== l;){
@@ -1331,7 +1325,7 @@ var M = /*#__PURE__*/ function() {
1331
1325
  }
1332
1326
  o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1333
1327
  }
1334
- return C.currentNode = r$2, e;
1328
+ return C.currentNode = r$1, e;
1335
1329
  }
1336
1330
  },
1337
1331
  {
@@ -1367,7 +1361,7 @@ var R = /*#__PURE__*/ function() {
1367
1361
  function R(t, i, s, e) {
1368
1362
  _class_call_check$1(this, R);
1369
1363
  var _e_isConnected;
1370
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1364
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : true;
1371
1365
  }
1372
1366
  _create_class$1(R, [
1373
1367
  {
@@ -1420,7 +1414,7 @@ var R = /*#__PURE__*/ function() {
1420
1414
  {
1421
1415
  key: "_",
1422
1416
  value: function _(t) {
1423
- this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
1417
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$1.createTextNode(t)), this._$AH = t;
1424
1418
  }
1425
1419
  },
1426
1420
  {
@@ -1476,7 +1470,7 @@ var R = /*#__PURE__*/ function() {
1476
1470
  value: function _$AR() {
1477
1471
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
1478
1472
  var _this__$AP, _this;
1479
- for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, !1, !0, i); t && t !== this._$AB;){
1473
+ for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
1480
1474
  var i1 = t.nextSibling;
1481
1475
  t.remove(), t = i1;
1482
1476
  }
@@ -1515,7 +1509,7 @@ var k = /*#__PURE__*/ function() {
1515
1509
  value: function _$AI(t) {
1516
1510
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1517
1511
  var h = this.strings;
1518
- var o = !1;
1512
+ var o = false;
1519
1513
  if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1520
1514
  else {
1521
1515
  var e1 = t;
@@ -1630,7 +1624,7 @@ var z = /*#__PURE__*/ function() {
1630
1624
  }();
1631
1625
  var j = t$1.litHtmlPolyfillSupport;
1632
1626
  var _litHtmlVersions;
1633
- j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
1627
+ j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
1634
1628
  var B = function(t, i, s) {
1635
1629
  var _s_renderBefore;
1636
1630
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
@@ -1665,7 +1659,6 @@ function _defineProperties(target, props) {
1665
1659
  }
1666
1660
  function _create_class(Constructor, protoProps, staticProps) {
1667
1661
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1668
- if (staticProps) _defineProperties(Constructor, staticProps);
1669
1662
  return Constructor;
1670
1663
  }
1671
1664
  function _get(target, property, receiver) {
@@ -1704,7 +1697,7 @@ function _inherits(subClass, superClass) {
1704
1697
  if (superClass) _set_prototype_of(subClass, superClass);
1705
1698
  }
1706
1699
  function _possible_constructor_return(self, call) {
1707
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
1700
+ if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
1708
1701
  return call;
1709
1702
  }
1710
1703
  return _assert_this_initialized(self);
@@ -1723,7 +1716,7 @@ function _super_prop_base(object, property) {
1723
1716
  }
1724
1717
  return object;
1725
1718
  }
1726
- function _type_of(obj) {
1719
+ function _type_of$1(obj) {
1727
1720
  "@swc/helpers - typeof";
1728
1721
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1729
1722
  }
@@ -1751,17 +1744,18 @@ function _create_super(Derived) {
1751
1744
  return _possible_constructor_return(this, result);
1752
1745
  };
1753
1746
  }
1754
- var _globalThis_litElementHydrateSupport, _globalThis;
1755
- var _globalThis1;
1747
+ var _s_litElementHydrateSupport;
1748
+ var _s;
1756
1749
  /**
1757
1750
  * @license
1758
1751
  * Copyright 2017 Google LLC
1759
1752
  * SPDX-License-Identifier: BSD-3-Clause
1760
- */ var r$1 = /*#__PURE__*/ function(t) {
1761
- _inherits(r, t);
1762
- var _super = _create_super(r);
1763
- function r() {
1764
- _class_call_check(this, r);
1753
+ */ var s = globalThis;
1754
+ var i = /*#__PURE__*/ function(t) {
1755
+ _inherits(i, t);
1756
+ var _super = _create_super(i);
1757
+ function i() {
1758
+ _class_call_check(this, i);
1765
1759
  var _this;
1766
1760
  _this = _super.call.apply(_super, [
1767
1761
  this
@@ -1770,12 +1764,12 @@ var _globalThis1;
1770
1764
  }, _this._$Do = void 0;
1771
1765
  return _possible_constructor_return(_this);
1772
1766
  }
1773
- _create_class(r, [
1767
+ _create_class(i, [
1774
1768
  {
1775
1769
  key: "createRenderRoot",
1776
1770
  value: function createRenderRoot() {
1777
1771
  var _this_renderOptions;
1778
- var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1772
+ var _$t = _get(_get_prototype_of(i.prototype), "createRenderRoot", this).call(this);
1779
1773
  var _renderBefore;
1780
1774
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1781
1775
  }
@@ -1783,22 +1777,22 @@ var _globalThis1;
1783
1777
  {
1784
1778
  key: "update",
1785
1779
  value: function update(t) {
1786
- var s = this.render();
1787
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
1780
+ var r = this.render();
1781
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
1788
1782
  }
1789
1783
  },
1790
1784
  {
1791
1785
  key: "connectedCallback",
1792
1786
  value: function connectedCallback() {
1793
1787
  var _this__$Do;
1794
- _get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1788
+ _get(_get_prototype_of(i.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(true);
1795
1789
  }
1796
1790
  },
1797
1791
  {
1798
1792
  key: "disconnectedCallback",
1799
1793
  value: function disconnectedCallback() {
1800
1794
  var _this__$Do;
1801
- _get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1795
+ _get(_get_prototype_of(i.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(false);
1802
1796
  }
1803
1797
  },
1804
1798
  {
@@ -1808,17 +1802,17 @@ var _globalThis1;
1808
1802
  }
1809
1803
  }
1810
1804
  ]);
1811
- return r;
1812
- }(b);
1813
- r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1814
- LitElement: r$1
1805
+ return i;
1806
+ }(y$1);
1807
+ i._$litElement$ = true, i["finalized"] = true, (_s_litElementHydrateSupport = s.litElementHydrateSupport) === null || _s_litElementHydrateSupport === void 0 ? void 0 : _s_litElementHydrateSupport.call(s, {
1808
+ LitElement: i
1815
1809
  });
1816
- var i = globalThis.litElementPolyfillSupport;
1817
- i === null || i === void 0 ? void 0 : i({
1818
- LitElement: r$1
1810
+ var o$1 = s.litElementPolyfillSupport;
1811
+ o$1 === null || o$1 === void 0 ? void 0 : o$1({
1812
+ LitElement: i
1819
1813
  });
1820
1814
  var _litElementVersions;
1821
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1815
+ ((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
1822
1816
 
1823
1817
  /**
1824
1818
  * @license
@@ -1832,73 +1826,25 @@ var _litElementVersions;
1832
1826
  };
1833
1827
  };
1834
1828
 
1835
- function _define_property(obj, key, value) {
1836
- if (key in obj) {
1837
- Object.defineProperty(obj, key, {
1838
- value: value,
1839
- enumerable: true,
1840
- configurable: true,
1841
- writable: true
1842
- });
1843
- } else {
1844
- obj[key] = value;
1845
- }
1846
- return obj;
1847
- }
1848
- function _object_spread(target) {
1849
- for(var i = 1; i < arguments.length; i++){
1850
- var source = arguments[i] != null ? arguments[i] : {};
1851
- var ownKeys = Object.keys(source);
1852
- if (typeof Object.getOwnPropertySymbols === "function") {
1853
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1854
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1855
- }));
1856
- }
1857
- ownKeys.forEach(function(key) {
1858
- _define_property(target, key, source[key]);
1859
- });
1860
- }
1861
- return target;
1862
- }
1863
- function ownKeys(object, enumerableOnly) {
1864
- var keys = Object.keys(object);
1865
- if (Object.getOwnPropertySymbols) {
1866
- var symbols = Object.getOwnPropertySymbols(object);
1867
- if (enumerableOnly) {
1868
- symbols = symbols.filter(function(sym) {
1869
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1870
- });
1871
- }
1872
- keys.push.apply(keys, symbols);
1873
- }
1874
- return keys;
1875
- }
1876
- function _object_spread_props(target, source) {
1877
- source = source != null ? source : {};
1878
- if (Object.getOwnPropertyDescriptors) {
1879
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1880
- } else {
1881
- ownKeys(Object(source)).forEach(function(key) {
1882
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1883
- });
1884
- }
1885
- return target;
1829
+ function _type_of(obj) {
1830
+ "@swc/helpers - typeof";
1831
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1886
1832
  }
1887
1833
  /**
1888
1834
  * @license
1889
1835
  * Copyright 2017 Google LLC
1890
1836
  * SPDX-License-Identifier: BSD-3-Clause
1891
1837
  */ var o = {
1892
- attribute: !0,
1838
+ attribute: true,
1893
1839
  type: String,
1894
1840
  converter: u$1,
1895
- reflect: !1,
1841
+ reflect: false,
1896
1842
  hasChanged: f$1
1897
1843
  }, r = function() {
1898
1844
  var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
1899
1845
  var n = r.kind, i = r.metadata;
1900
1846
  var s = globalThis.litPropertyMetadata.get(i);
1901
- if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), s.set(r.name, _$t), "accessor" === n) {
1847
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), "setter" === n && ((_$t = Object.create(_$t)).wrapped = true), s.set(r.name, _$t), "accessor" === n) {
1902
1848
  var o1 = r.name;
1903
1849
  return {
1904
1850
  set: function set(r) {
@@ -1906,7 +1852,7 @@ function _object_spread_props(target, source) {
1906
1852
  _$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
1907
1853
  },
1908
1854
  init: function init(e) {
1909
- return void 0 !== e && this.P(o1, void 0, _$t), e;
1855
+ return void 0 !== e && this.C(o1, void 0, _$t, e), e;
1910
1856
  }
1911
1857
  };
1912
1858
  }
@@ -1921,11 +1867,9 @@ function _object_spread_props(target, source) {
1921
1867
  };
1922
1868
  function n(t) {
1923
1869
  return function(e, o) {
1924
- return "object" == typeof o ? r(t, e, o) : function(t, e, o) {
1870
+ return "object" == (typeof o === "undefined" ? "undefined" : _type_of(o)) ? r(t, e, o) : function(t, e, o) {
1925
1871
  var r = e.hasOwnProperty(o);
1926
- return e.constructor.createProperty(o, r ? _object_spread_props(_object_spread({}, t), {
1927
- wrapped: !0
1928
- }) : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1872
+ return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
1929
1873
  }(t, e, o);
1930
1874
  };
1931
1875
  }
@@ -2083,7 +2027,6 @@ function initializeWorkspaceFromPinsAndLibraries(pinsSettings, workspace, librar
2083
2027
  generateSceneBlock(pinsSettings, workspace);
2084
2028
  }
2085
2029
  function generateSceneBlock(pinsSettings, workspace) {
2086
- var _sceneBlock_getInput;
2087
2030
  let sceneBlockName = '';
2088
2031
  let sceneBlockLibrary = '';
2089
2032
  let hasSceneBlock = false;
@@ -2107,11 +2050,9 @@ function generateSceneBlock(pinsSettings, workspace) {
2107
2050
  for (const [metadataKey, metadataValue] of Object.entries(pinsSettings.metadata)){
2108
2051
  const inputName = 'metadata--' + metadataKey;
2109
2052
  if (sceneBlock.getInput(inputName)) {
2110
- var _foundLibrary_xsceneblocks_sceneBlockName_metadata;
2111
- const parameter = (_foundLibrary_xsceneblocks_sceneBlockName_metadata = foundLibrary['x-scene-blocks'][sceneBlockName].metadata) == null ? void 0 : _foundLibrary_xsceneblocks_sceneBlockName_metadata.find((p)=>p.name === metadataKey);
2053
+ const parameter = foundLibrary['x-scene-blocks'][sceneBlockName].metadata?.find((p)=>p.name === metadataKey);
2112
2054
  if (parameter) {
2113
- var _parameter_schema_items;
2114
- if (parameter.schema.type === 'array' && ((_parameter_schema_items = parameter.schema.items) == null ? void 0 : _parameter_schema_items.$ref)) {
2055
+ if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
2115
2056
  const parameterType = getParameterType(parameter.schema.items);
2116
2057
  if (typeof metadataValue === 'string') {
2117
2058
  const metadataBlock = generateParameterBlock({
@@ -2143,11 +2084,9 @@ function generateSceneBlock(pinsSettings, workspace) {
2143
2084
  for (const [key, value] of Object.entries(pinsSettings.properties)){
2144
2085
  const inputName = key;
2145
2086
  if (sceneBlock.getInput(inputName)) {
2146
- var _foundLibrary_xsceneblocks_sceneBlockName_parameters;
2147
- const parameter = (_foundLibrary_xsceneblocks_sceneBlockName_parameters = foundLibrary['x-scene-blocks'][sceneBlockName].parameters) == null ? void 0 : _foundLibrary_xsceneblocks_sceneBlockName_parameters.find((p)=>p.name === inputName);
2087
+ const parameter = foundLibrary['x-scene-blocks'][sceneBlockName].parameters?.find((p)=>p.name === inputName);
2148
2088
  if (parameter) {
2149
- var _parameter_schema_items1;
2150
- if (parameter.schema.type === 'array' && ((_parameter_schema_items1 = parameter.schema.items) == null ? void 0 : _parameter_schema_items1.$ref)) {
2089
+ if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
2151
2090
  const parameterType = getParameterType(parameter.schema.items);
2152
2091
  if (typeof value === 'string') {
2153
2092
  const metadataBlock = generateParameterBlock({
@@ -2187,7 +2126,7 @@ function generateSceneBlock(pinsSettings, workspace) {
2187
2126
  const sceneInputConnection = sceneBlock.getInput('METADATA_INPUT').connection;
2188
2127
  connectBlock(metadataBlock, sceneInputConnection);
2189
2128
  }
2190
- const pinsConnection = (_sceneBlock_getInput = sceneBlock.getInput('EXECUTE_PINS')) == null ? void 0 : _sceneBlock_getInput.connection;
2129
+ const pinsConnection = sceneBlock.getInput('EXECUTE_PINS')?.connection;
2191
2130
  if (pinsConnection) {
2192
2131
  const reversedPins = [
2193
2132
  ...pinsSettings.pins || []
@@ -2201,7 +2140,6 @@ function generateSceneBlock(pinsSettings, workspace) {
2201
2140
  return sceneBlock;
2202
2141
  }
2203
2142
  function generateBlockFromPins(pinsSettings, workspace) {
2204
- var _library_paths_;
2205
2143
  const blockPath = pinsSettings.library + '/__PINS__/' + pinsSettings.element;
2206
2144
  const library = getLibraryFromName(pinsSettings.library);
2207
2145
  if (!library) {
@@ -2211,7 +2149,7 @@ function generateBlockFromPins(pinsSettings, workspace) {
2211
2149
  pinsBlock.render();
2212
2150
  return pinsBlock;
2213
2151
  }
2214
- const pinsDefinition = (_library_paths_ = library.paths['/' + pinsSettings.element]) == null ? void 0 : _library_paths_.post;
2152
+ const pinsDefinition = library.paths['/' + pinsSettings.element]?.post;
2215
2153
  if (!pinsDefinition) {
2216
2154
  const pinsBlock = workspace.newBlock('unknown-pins');
2217
2155
  console.log('[generateBlockFromPins] - Pins not existing in library', pinsSettings.element, pinsSettings.library);
@@ -2237,12 +2175,11 @@ function generateBlockFromPins(pinsSettings, workspace) {
2237
2175
  }
2238
2176
  }
2239
2177
  for (const parameter of pinsDefinition.parameters){
2240
- var _parameter_schema_items;
2241
2178
  if (!pinsSettings.properties || !Object.prototype.hasOwnProperty.call(pinsSettings.properties, parameter.name)) {
2242
2179
  continue;
2243
2180
  }
2244
2181
  const valueToLoad = pinsSettings.properties[parameter.name];
2245
- if (parameter.schema.type === 'array' && ((_parameter_schema_items = parameter.schema.items) == null ? void 0 : _parameter_schema_items.$ref)) {
2182
+ if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
2246
2183
  const parameterType = getParameterType(parameter.schema.items);
2247
2184
  if (typeof valueToLoad === 'string') {
2248
2185
  const parameterBlock = generateParameterBlock({
@@ -2292,12 +2229,11 @@ function generateBlockFromPins(pinsSettings, workspace) {
2292
2229
  }
2293
2230
  ];
2294
2231
  for (const parameter of conditions){
2295
- var _parameter_schema_items1;
2296
2232
  if (!pinsSettings.conditions || !Object.prototype.hasOwnProperty.call(pinsSettings.conditions, parameter.name)) {
2297
2233
  continue;
2298
2234
  }
2299
2235
  const valueToLoad = pinsSettings.conditions[parameter.name];
2300
- if (parameter.schema.type === 'array' && ((_parameter_schema_items1 = parameter.schema.items) == null ? void 0 : _parameter_schema_items1.$ref)) {
2236
+ if (parameter.schema.type === 'array' && parameter.schema.items?.$ref) {
2301
2237
  const parameterType = getParameterType(parameter.schema.items);
2302
2238
  if (typeof valueToLoad === 'string') {
2303
2239
  const parameterBlock = generateParameterBlock({
@@ -2338,12 +2274,11 @@ function generateBlockFromComponent(componentSettings, workspace, library, compo
2338
2274
  componentBlock.initSvg();
2339
2275
  componentBlock.render();
2340
2276
  for (const [propertyKey, schema] of Object.entries(componentDefinition.properties)){
2341
- var _schema_items;
2342
2277
  if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey)) {
2343
2278
  continue;
2344
2279
  }
2345
2280
  const valueToLoad = componentSettings[propertyKey];
2346
- if (schema.type === 'array' && ((_schema_items = schema.items) == null ? void 0 : _schema_items.$ref)) {
2281
+ if (schema.type === 'array' && schema.items?.$ref) {
2347
2282
  const parameterType = getParameterType(schema.items);
2348
2283
  if (typeof valueToLoad === 'string') {
2349
2284
  const parameterBlock = generateParameterBlock({
@@ -2462,11 +2397,11 @@ function getLibraryFromName(name) {
2462
2397
  }
2463
2398
  function connectBlock(targetBlock, parentConnection) {
2464
2399
  if (parentConnection) {
2465
- const childConnection = (targetBlock == null ? void 0 : targetBlock.outputConnection) || (targetBlock == null ? void 0 : targetBlock.previousConnection);
2400
+ const childConnection = targetBlock?.outputConnection || targetBlock?.previousConnection;
2466
2401
  parentConnection.connect(childConnection);
2467
2402
  }
2468
- targetBlock == null ? void 0 : targetBlock.initSvg();
2469
- targetBlock == null ? void 0 : targetBlock.render();
2403
+ targetBlock?.initSvg();
2404
+ targetBlock?.render();
2470
2405
  }
2471
2406
  function generateBlockFromJson(json_structure, workspace) {
2472
2407
  if (json_structure === null) {
@@ -2537,11 +2472,10 @@ function itemListFromPinsSettings(pinsSettings, pinsDefinition) {
2537
2472
  }
2538
2473
  if (pinsDefinition.parameters && pinsSettings.properties) {
2539
2474
  for (const parameter of pinsDefinition.parameters){
2540
- var _parameter_schema, _parameter_schema_items, _parameter_schema_items_$ref, _parameter_schema_items1;
2541
2475
  if (!Object.prototype.hasOwnProperty.call(pinsSettings.properties, parameter.name)) {
2542
2476
  continue;
2543
2477
  }
2544
- const isEvaluate = ((_parameter_schema = parameter.schema) == null ? void 0 : _parameter_schema.type) === 'array' && typeof pinsSettings.properties[parameter.name] === 'string' && (((_parameter_schema_items = parameter.schema.items) == null ? void 0 : _parameter_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_parameter_schema_items1 = parameter.schema.items) == null ? void 0 : (_parameter_schema_items_$ref = _parameter_schema_items1.$ref) == null ? void 0 : _parameter_schema_items_$ref.includes('#/components/schemas/')));
2478
+ const isEvaluate = parameter.schema?.type === 'array' && typeof pinsSettings.properties[parameter.name] === 'string' && (parameter.schema.items?.$ref === 'https://schemas.digipair.ai/pinsSettings' || parameter.schema.items?.$ref?.includes('#/components/schemas/'));
2545
2479
  const name = isEvaluate ? parameter.name + '__EVALUATE' : parameter.name;
2546
2480
  const summary = isEvaluate ? (parameter.summary || parameter.name) + ' (evaluate)' : parameter.summary || parameter.name;
2547
2481
  inputArray.push({
@@ -2586,11 +2520,10 @@ function itemListFromPinsSettings(pinsSettings, pinsDefinition) {
2586
2520
  function itemListFromComponentSettings(componentSettings, componentDefinition) {
2587
2521
  const inputArray = [];
2588
2522
  for (const [propertyKey, propertyValue] of Object.entries(componentDefinition.properties)){
2589
- var _propertyValue_items, _propertyValue_items_$ref, _propertyValue_items1;
2590
2523
  if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey) || propertyValue.type === 'array' && (!componentSettings[propertyKey] || componentSettings[propertyKey].length === 0)) {
2591
2524
  continue;
2592
2525
  }
2593
- const isEvaluate = propertyValue.type === 'array' && typeof componentSettings[propertyKey] === 'string' && (((_propertyValue_items = propertyValue.items) == null ? void 0 : _propertyValue_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_propertyValue_items1 = propertyValue.items) == null ? void 0 : (_propertyValue_items_$ref = _propertyValue_items1.$ref) == null ? void 0 : _propertyValue_items_$ref.includes('#/components/schemas/')));
2526
+ const isEvaluate = propertyValue.type === 'array' && typeof componentSettings[propertyKey] === 'string' && (propertyValue.items?.$ref === 'https://schemas.digipair.ai/pinsSettings' || propertyValue.items?.$ref?.includes('#/components/schemas/'));
2594
2527
  const name = isEvaluate ? propertyKey + '__EVALUATE' : propertyKey;
2595
2528
  const summary = isEvaluate ? (propertyValue.summary || propertyKey) + ' (evaluate)' : propertyValue.summary || propertyKey;
2596
2529
  inputArray.push({
@@ -2604,11 +2537,10 @@ function itemListFromSceneSettings(sceneSettings, sceneDefinition) {
2604
2537
  const inputArray = [];
2605
2538
  if (sceneDefinition.parameters && sceneSettings.properties) {
2606
2539
  for (const parameter of sceneDefinition.parameters){
2607
- var _parameter_schema, _parameter_schema_items, _parameter_schema_items_$ref, _parameter_schema_items1;
2608
2540
  if (!Object.prototype.hasOwnProperty.call(sceneSettings.properties, parameter.name)) {
2609
2541
  continue;
2610
2542
  }
2611
- const isEvaluate = ((_parameter_schema = parameter.schema) == null ? void 0 : _parameter_schema.type) === 'array' && typeof sceneSettings.properties[parameter.name] === 'string' && (((_parameter_schema_items = parameter.schema.items) == null ? void 0 : _parameter_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_parameter_schema_items1 = parameter.schema.items) == null ? void 0 : (_parameter_schema_items_$ref = _parameter_schema_items1.$ref) == null ? void 0 : _parameter_schema_items_$ref.includes('#/components/schemas/')));
2543
+ const isEvaluate = parameter.schema?.type === 'array' && typeof sceneSettings.properties[parameter.name] === 'string' && (parameter.schema.items?.$ref === 'https://schemas.digipair.ai/pinsSettings' || parameter.schema.items?.$ref?.includes('#/components/schemas/'));
2612
2544
  const name = isEvaluate ? parameter.name + '__EVALUATE' : parameter.name;
2613
2545
  const summary = isEvaluate ? (parameter.summary || parameter.name) + ' (evaluate)' : parameter.summary || parameter.name;
2614
2546
  inputArray.push({
@@ -72361,7 +72293,7 @@ const schemas = {
72361
72293
  };
72362
72294
 
72363
72295
  let jsonGenerator, generateBlocklyBlockFromLibraries, generateToolboxFromLibraries, initializeMutator;
72364
- class EditorElement extends r$1 {
72296
+ class EditorElement extends i {
72365
72297
  createRenderRoot() {
72366
72298
  return this;
72367
72299
  }
@@ -72430,21 +72362,21 @@ class EditorElement extends r$1 {
72430
72362
  verifyCanSaveAndGetCode() {
72431
72363
  const code = jsonGenerator.workspaceToCode(this.workspace);
72432
72364
  try {
72433
- this.codeInWorkspace = _extends({
72365
+ this.codeInWorkspace = {
72434
72366
  description: this.reasoning.description,
72435
- summary: this.reasoning.summary
72436
- }, JSON.parse(code));
72367
+ summary: this.reasoning.summary,
72368
+ ...JSON.parse(code)
72369
+ };
72437
72370
  return true;
72438
72371
  } catch (e) {
72439
72372
  return false;
72440
72373
  }
72441
72374
  }
72442
72375
  loadBlockly(scene) {
72443
- var _this_librariesToLoad_find_xsceneblocks_, _this_librariesToLoad_find_xsceneblocks, _this_librariesToLoad_find;
72444
72376
  initializeMutator();
72445
72377
  const generatedBlocks = generateBlocklyBlockFromLibraries(this.librariesToLoad, blocksLegacy);
72446
72378
  this.blocks = Blockly.common.createBlockDefinitionsFromJsonArray(generatedBlocks);
72447
- const tags = ((_this_librariesToLoad_find = this.librariesToLoad.find((library)=>library.info.title === scene.library)) == null ? void 0 : (_this_librariesToLoad_find_xsceneblocks = _this_librariesToLoad_find['x-scene-blocks']) == null ? void 0 : (_this_librariesToLoad_find_xsceneblocks_ = _this_librariesToLoad_find_xsceneblocks[`/${scene.element}`]) == null ? void 0 : _this_librariesToLoad_find_xsceneblocks_.tags) || [];
72379
+ const tags = this.librariesToLoad.find((library)=>library.info.title === scene.library)?.['x-scene-blocks']?.[`/${scene.element}`]?.tags || [];
72448
72380
  this.toolbox = generateToolboxFromLibraries(this.librariesToLoad, tags);
72449
72381
  Blockly.common.defineBlocks(this.blocks);
72450
72382
  const container = this.renderRoot.querySelector('[data-scene]');
@@ -72610,4 +72542,4 @@ EditorElement = __decorate([
72610
72542
  t('digipair-editor')
72611
72543
  ], EditorElement);
72612
72544
 
72613
- export { EditorElement as E, _extends as _ };
72545
+ export { EditorElement };