@digipair/skill-web 0.47.2 → 0.47.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs.js +2076 -2076
  2. package/index.esm.js +897 -897
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -13,27 +13,165 @@ function _extends() {
13
13
 
14
14
  /**
15
15
  * @license
16
- * Copyright 2021 Google LLC
16
+ * Copyright 2023 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */ var replacements = {
19
- "&": "&",
20
- "<": "&lt;",
21
- ">": "&gt;",
22
- '"': "&quot;",
23
- // Note &apos; was not defined in the HTML4 spec, and is not supported by very
24
- // old browsers like IE8, so a codepoint entity is used instead.
25
- "'": "&#39;"
26
- };
27
- /**
28
- * Replaces characters which have special meaning in HTML (&<>"') with escaped
29
- * HTML entities ("&amp;", "&lt;", etc.).
30
- */ var escapeHtml = function(str) {
31
- return str.replace(/[&<>"']/g, function(char) {
32
- return replacements[char];
33
- });
18
+ */ /**
19
+ * Map of ARIAMixin properties to attributes
20
+ */ function _class_call_check$A(instance, Constructor) {
21
+ if (!(instance instanceof Constructor)) {
22
+ throw new TypeError("Cannot call a class as a function");
23
+ }
24
+ }
25
+ function _defineProperties$z(target, props) {
26
+ for(var i = 0; i < props.length; i++){
27
+ var descriptor = props[i];
28
+ descriptor.enumerable = descriptor.enumerable || false;
29
+ descriptor.configurable = true;
30
+ if ("value" in descriptor) descriptor.writable = true;
31
+ Object.defineProperty(target, descriptor.key, descriptor);
32
+ }
33
+ }
34
+ function _create_class$z(Constructor, protoProps, staticProps) {
35
+ if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
36
+ if (staticProps) _defineProperties$z(Constructor, staticProps);
37
+ return Constructor;
38
+ }
39
+ var ariaMixinAttributes = {
40
+ ariaAtomic: "aria-atomic",
41
+ ariaAutoComplete: "aria-autocomplete",
42
+ ariaBrailleLabel: "aria-braillelabel",
43
+ ariaBrailleRoleDescription: "aria-brailleroledescription",
44
+ ariaBusy: "aria-busy",
45
+ ariaChecked: "aria-checked",
46
+ ariaColCount: "aria-colcount",
47
+ ariaColIndex: "aria-colindex",
48
+ ariaColSpan: "aria-colspan",
49
+ ariaCurrent: "aria-current",
50
+ ariaDescription: "aria-description",
51
+ ariaDisabled: "aria-disabled",
52
+ ariaExpanded: "aria-expanded",
53
+ ariaHasPopup: "aria-haspopup",
54
+ ariaHidden: "aria-hidden",
55
+ ariaInvalid: "aria-invalid",
56
+ ariaKeyShortcuts: "aria-keyshortcuts",
57
+ ariaLabel: "aria-label",
58
+ ariaLevel: "aria-level",
59
+ ariaLive: "aria-live",
60
+ ariaModal: "aria-modal",
61
+ ariaMultiLine: "aria-multiline",
62
+ ariaMultiSelectable: "aria-multiselectable",
63
+ ariaOrientation: "aria-orientation",
64
+ ariaPlaceholder: "aria-placeholder",
65
+ ariaPosInSet: "aria-posinset",
66
+ ariaPressed: "aria-pressed",
67
+ ariaReadOnly: "aria-readonly",
68
+ ariaRequired: "aria-required",
69
+ ariaRoleDescription: "aria-roledescription",
70
+ ariaRowCount: "aria-rowcount",
71
+ ariaRowIndex: "aria-rowindex",
72
+ ariaRowSpan: "aria-rowspan",
73
+ ariaSelected: "aria-selected",
74
+ ariaSetSize: "aria-setsize",
75
+ ariaSort: "aria-sort",
76
+ ariaValueMax: "aria-valuemax",
77
+ ariaValueMin: "aria-valuemin",
78
+ ariaValueNow: "aria-valuenow",
79
+ ariaValueText: "aria-valuetext",
80
+ role: "role"
34
81
  };
82
+ // Shim the global element internals object
83
+ // Methods should be fine as noops and properties can generally
84
+ // be while on the server.
85
+ var ElementInternalsShim = /*#__PURE__*/ function() {
86
+ function ElementInternals(_host) {
87
+ _class_call_check$A(this, ElementInternals);
88
+ this.ariaAtomic = "";
89
+ this.ariaAutoComplete = "";
90
+ this.ariaBrailleLabel = "";
91
+ this.ariaBrailleRoleDescription = "";
92
+ this.ariaBusy = "";
93
+ this.ariaChecked = "";
94
+ this.ariaColCount = "";
95
+ this.ariaColIndex = "";
96
+ this.ariaColSpan = "";
97
+ this.ariaCurrent = "";
98
+ this.ariaDescription = "";
99
+ this.ariaDisabled = "";
100
+ this.ariaExpanded = "";
101
+ this.ariaHasPopup = "";
102
+ this.ariaHidden = "";
103
+ this.ariaInvalid = "";
104
+ this.ariaKeyShortcuts = "";
105
+ this.ariaLabel = "";
106
+ this.ariaLevel = "";
107
+ this.ariaLive = "";
108
+ this.ariaModal = "";
109
+ this.ariaMultiLine = "";
110
+ this.ariaMultiSelectable = "";
111
+ this.ariaOrientation = "";
112
+ this.ariaPlaceholder = "";
113
+ this.ariaPosInSet = "";
114
+ this.ariaPressed = "";
115
+ this.ariaReadOnly = "";
116
+ this.ariaRequired = "";
117
+ this.ariaRoleDescription = "";
118
+ this.ariaRowCount = "";
119
+ this.ariaRowIndex = "";
120
+ this.ariaRowSpan = "";
121
+ this.ariaSelected = "";
122
+ this.ariaSetSize = "";
123
+ this.ariaSort = "";
124
+ this.ariaValueMax = "";
125
+ this.ariaValueMin = "";
126
+ this.ariaValueNow = "";
127
+ this.ariaValueText = "";
128
+ this.role = "";
129
+ this.form = null;
130
+ this.labels = [];
131
+ this.states = new Set();
132
+ this.validationMessage = "";
133
+ this.validity = {};
134
+ this.willValidate = true;
135
+ this.__host = _host;
136
+ }
137
+ _create_class$z(ElementInternals, [
138
+ {
139
+ key: "shadowRoot",
140
+ get: function get() {
141
+ // Grab the shadow root instance from the Element shim
142
+ // to ensure that the shadow root is always available
143
+ // to the internals instance even if the mode is 'closed'
144
+ return this.__host.__shadowRoot;
145
+ }
146
+ },
147
+ {
148
+ key: "checkValidity",
149
+ value: function checkValidity() {
150
+ // TODO(augustjk) Consider actually implementing logic.
151
+ // See https://github.com/lit/lit/issues/3740
152
+ console.warn("`ElementInternals.checkValidity()` was called on the server." + "This method always returns true.");
153
+ return true;
154
+ }
155
+ },
156
+ {
157
+ key: "reportValidity",
158
+ value: function reportValidity() {
159
+ return true;
160
+ }
161
+ },
162
+ {
163
+ key: "setFormValue",
164
+ value: function setFormValue() {}
165
+ },
166
+ {
167
+ key: "setValidity",
168
+ value: function setValidity() {}
169
+ }
170
+ ]);
171
+ return ElementInternals;
172
+ }();
173
+ var HYDRATE_INTERNALS_ATTR_PREFIX = "hydrate-internals-";
35
174
 
36
- /// <reference lib="dom" />
37
175
  /**
38
176
  * @license
39
177
  * Copyright 2019 Google LLC
@@ -52,12 +190,12 @@ function _assert_this_initialized$f(self) {
52
190
  }
53
191
  return self;
54
192
  }
55
- function _class_call_check$A(instance, Constructor) {
193
+ function _class_call_check$z(instance, Constructor) {
56
194
  if (!(instance instanceof Constructor)) {
57
195
  throw new TypeError("Cannot call a class as a function");
58
196
  }
59
197
  }
60
- function _defineProperties$z(target, props) {
198
+ function _defineProperties$y(target, props) {
61
199
  for(var i = 0; i < props.length; i++){
62
200
  var descriptor = props[i];
63
201
  descriptor.enumerable = descriptor.enumerable || false;
@@ -66,9 +204,9 @@ function _defineProperties$z(target, props) {
66
204
  Object.defineProperty(target, descriptor.key, descriptor);
67
205
  }
68
206
  }
69
- function _create_class$z(Constructor, protoProps, staticProps) {
70
- if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
71
- if (staticProps) _defineProperties$z(Constructor, staticProps);
207
+ function _create_class$y(Constructor, protoProps, staticProps) {
208
+ if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
209
+ if (staticProps) _defineProperties$y(Constructor, staticProps);
72
210
  return Constructor;
73
211
  }
74
212
  function _get_prototype_of$f(o) {
@@ -169,252 +307,607 @@ function _create_super$f(Derived) {
169
307
  return _possible_constructor_return$f(this, result);
170
308
  };
171
309
  }
172
- function _ts_generator$5(thisArg, body) {
173
- var f, y, t, g, _ = {
174
- label: 0,
175
- sent: function() {
176
- if (t[0] & 1) throw t[1];
177
- return t[1];
178
- },
179
- trys: [],
180
- ops: []
181
- };
182
- return g = {
183
- next: verb(0),
184
- "throw": verb(1),
185
- "return": verb(2)
186
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
187
- return this;
188
- }), g;
189
- function verb(n) {
190
- return function(v) {
191
- return step([
192
- n,
193
- v
194
- ]);
195
- };
310
+ var attributes = new WeakMap();
311
+ var attributesForElement = function(element) {
312
+ var attrs = attributes.get(element);
313
+ if (attrs === undefined) {
314
+ attributes.set(element, attrs = new Map());
196
315
  }
197
- function step(op) {
198
- if (f) throw new TypeError("Generator is already executing.");
199
- while(_)try {
200
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
201
- if (y = 0, t) op = [
202
- op[0] & 2,
203
- t.value
204
- ];
205
- switch(op[0]){
206
- case 0:
207
- case 1:
208
- t = op;
209
- break;
210
- case 4:
211
- _.label++;
316
+ return attrs;
317
+ };
318
+ // The typings around the exports below are a little funky:
319
+ //
320
+ // 1. We want the `name` of the shim classes to match the real ones at runtime,
321
+ // hence e.g. `class Element`.
322
+ // 2. We can't shadow the global types with a simple class declaration, because
323
+ // then we can't reference the global types for casting, hence e.g.
324
+ // `const ElementShim = class Element`.
325
+ // 3. We want to export the classes typed as the real ones, hence e.g.
326
+ // `const ElementShimWithRealType = ElementShim as object as typeof Element;`.
327
+ // 4. We want the exported names to match the real ones, hence e.g.
328
+ // `export {ElementShimWithRealType as Element}`.
329
+ var ElementShim = /*#__PURE__*/ function() {
330
+ function Element() {
331
+ _class_call_check$z(this, Element);
332
+ this.__shadowRootMode = null;
333
+ this.__shadowRoot = null;
334
+ this.__internals = null;
335
+ }
336
+ _create_class$y(Element, [
337
+ {
338
+ key: "attributes",
339
+ get: function get() {
340
+ return Array.from(attributesForElement(this)).map(function(param) {
341
+ var _param = _sliced_to_array$j(param, 2), name = _param[0], value = _param[1];
212
342
  return {
213
- value: op[1],
214
- done: false
343
+ name: name,
344
+ value: value
215
345
  };
216
- case 5:
217
- _.label++;
218
- y = op[1];
219
- op = [
220
- 0
221
- ];
222
- continue;
223
- case 7:
224
- op = _.ops.pop();
225
- _.trys.pop();
226
- continue;
227
- default:
228
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
229
- _ = 0;
230
- continue;
231
- }
232
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
233
- _.label = op[1];
234
- break;
235
- }
236
- if (op[0] === 6 && _.label < t[1]) {
237
- _.label = t[1];
238
- t = op;
239
- break;
240
- }
241
- if (t && _.label < t[2]) {
242
- _.label = t[2];
243
- _.ops.push(op);
244
- break;
245
- }
246
- if (t[2]) _.ops.pop();
247
- _.trys.pop();
248
- continue;
346
+ });
249
347
  }
250
- op = body.call(thisArg, _);
251
- } catch (e) {
252
- op = [
253
- 6,
254
- e
255
- ];
256
- y = 0;
257
- } finally{
258
- f = t = 0;
259
- }
260
- if (op[0] & 5) throw op[1];
261
- return {
262
- value: op[0] ? op[1] : void 0,
263
- done: true
264
- };
265
- }
266
- }
267
- var getElementRenderer = function(param, tagName) {
268
- var elementRenderers = param.elementRenderers, ceClass = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : customElements.get(tagName), attributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : new Map();
269
- if (ceClass === undefined) {
270
- console.warn("Custom element ".concat(tagName, " was not registered."));
271
- return new FallbackRenderer(tagName);
272
- }
273
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
274
- try {
275
- // TODO(kschaaf): Should we implement a caching scheme, e.g. keyed off of
276
- // ceClass's base class to prevent O(n) lookups for every element (probably
277
- // not a concern for the small number of element renderers we'd expect)? Doing
278
- // so would preclude having cross-cutting renderers to e.g. no-op render all
279
- // custom elements with a `client-only` attribute, so punting for now.
280
- for(var _iterator = elementRenderers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
281
- var renderer = _step.value;
282
- if (renderer.matchesClass(ceClass, tagName, attributes)) {
283
- return new renderer(tagName);
348
+ },
349
+ {
350
+ key: "shadowRoot",
351
+ get: function get() {
352
+ if (this.__shadowRootMode === "closed") {
353
+ return null;
354
+ }
355
+ return this.__shadowRoot;
284
356
  }
285
- }
286
- } catch (err) {
287
- _didIteratorError = true;
288
- _iteratorError = err;
289
- } finally{
290
- try {
291
- if (!_iteratorNormalCompletion && _iterator.return != null) {
292
- _iterator.return();
357
+ },
358
+ {
359
+ key: "localName",
360
+ get: function get() {
361
+ return this.constructor.__localName;
293
362
  }
294
- } finally{
295
- if (_didIteratorError) {
296
- throw _iteratorError;
363
+ },
364
+ {
365
+ key: "tagName",
366
+ get: function get() {
367
+ var _this_localName;
368
+ return (_this_localName = this.localName) === null || _this_localName === void 0 ? void 0 : _this_localName.toUpperCase();
297
369
  }
298
- }
299
- }
300
- return new FallbackRenderer(tagName);
301
- };
302
- /**
303
- * An object that renders elements of a certain type.
304
- */ var ElementRenderer = /*#__PURE__*/ function() {
305
- function ElementRenderer(tagName) {
306
- _class_call_check$A(this, ElementRenderer);
307
- this.tagName = tagName;
308
- }
309
- _create_class$z(ElementRenderer, [
370
+ },
310
371
  {
311
- /**
312
- * Called when a custom element is "attached" to the server DOM.
313
- *
314
- * Because we don't presume a full DOM emulation, this isn't the same as
315
- * being connected in a real browser. There may not be an owner document,
316
- * parentNode, etc., depending on the DOM emulation.
317
- *
318
- * If this renderer is creating actual element instances, it may forward
319
- * the call to the element's `connectedCallback()`.
320
- *
321
- * The default impementation is a no-op.
322
- */ key: "connectedCallback",
323
- value: function connectedCallback() {
324
- // do nothing
372
+ key: "setAttribute",
373
+ value: function setAttribute(name, value) {
374
+ // Emulate browser behavior that silently casts all values to string. E.g.
375
+ // `42` becomes `"42"` and `{}` becomes `"[object Object]""`.
376
+ attributesForElement(this).set(name, String(value));
325
377
  }
326
378
  },
327
379
  {
328
- /**
329
- * Called from `setAttribute()` to emulate the browser's
330
- * `attributeChangedCallback` lifecycle hook.
331
- *
332
- * If this renderer is creating actual element instances, it may forward
333
- * the call to the element's `attributeChangedCallback()`.
334
- */ key: "attributeChangedCallback",
335
- value: function attributeChangedCallback(_name, _old, _value) {
336
- // do nothing
380
+ key: "removeAttribute",
381
+ value: function removeAttribute(name) {
382
+ attributesForElement(this).delete(name);
337
383
  }
338
384
  },
339
385
  {
340
- /**
341
- * Handles setting a property on the element.
342
- *
343
- * The default implementation sets the property on the renderer's element
344
- * instance.
345
- *
346
- * @param name Name of the property
347
- * @param value Value of the property
348
- */ key: "setProperty",
349
- value: function setProperty(name, value) {
350
- if (this.element !== undefined) {
351
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
352
- this.element[name] = value;
386
+ key: "toggleAttribute",
387
+ value: function toggleAttribute(name, force) {
388
+ // Steps reference https://dom.spec.whatwg.org/#dom-element-toggleattribute
389
+ if (this.hasAttribute(name)) {
390
+ // Step 5
391
+ if (force === undefined || !force) {
392
+ this.removeAttribute(name);
393
+ return false;
394
+ }
395
+ } else {
396
+ // Step 4
397
+ if (force === undefined || force) {
398
+ // Step 4.1
399
+ this.setAttribute(name, "");
400
+ return true;
401
+ } else {
402
+ // Step 4.2
403
+ return false;
404
+ }
353
405
  }
406
+ // Step 6
407
+ return true;
354
408
  }
355
409
  },
356
410
  {
357
- /**
358
- * Handles setting an attribute on an element.
359
- *
360
- * Default implementation calls `setAttribute` on the renderer's element
361
- * instance, and calls the abstract `attributeChangedCallback` on the
362
- * renderer.
363
- *
364
- * @param name Name of the attribute
365
- * @param value Value of the attribute
366
- */ key: "setAttribute",
367
- value: function setAttribute(name, value) {
368
- // Browser turns all HTML attributes to lowercase.
369
- name = name.toLowerCase();
370
- if (this.element !== undefined) {
371
- var old = this.element.getAttribute(name);
372
- this.element.setAttribute(name, value);
373
- this.attributeChangedCallback(name, old, value);
374
- }
411
+ key: "hasAttribute",
412
+ value: function hasAttribute(name) {
413
+ return attributesForElement(this).has(name);
375
414
  }
376
415
  },
377
416
  {
378
- key: "shadowRootOptions",
379
- get: /**
380
- * The shadow root options to write to the declarative shadow DOM <template>,
381
- * if one is created with `renderShadow()`.
382
- */ function get() {
383
- return {
384
- mode: "open"
417
+ key: "attachShadow",
418
+ value: function attachShadow(init) {
419
+ var shadowRoot = {
420
+ host: this
385
421
  };
422
+ this.__shadowRootMode = init.mode;
423
+ if (init && init.mode === "open") {
424
+ this.__shadowRoot = shadowRoot;
425
+ }
426
+ return shadowRoot;
386
427
  }
387
428
  },
388
429
  {
389
- /**
390
- * Render the element's shadow root children.
391
- *
392
- * If `renderShadow()` returns undefined, no declarative shadow root is
393
- * emitted.
394
- */ key: "renderShadow",
395
- value: function renderShadow(_renderInfo) {
396
- return undefined;
430
+ key: "attachInternals",
431
+ value: function attachInternals() {
432
+ if (this.__internals !== null) {
433
+ throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': " + "ElementInternals for the specified element was already attached.");
434
+ }
435
+ var internals = new ElementInternalsShim(this);
436
+ this.__internals = internals;
437
+ return internals;
397
438
  }
398
439
  },
399
440
  {
400
- /**
401
- * Render the element's light DOM children.
402
- */ key: "renderLight",
403
- value: function renderLight(_renderInfo) {
404
- return undefined;
441
+ key: "getAttribute",
442
+ value: function getAttribute(name) {
443
+ var value = attributesForElement(this).get(name);
444
+ return value !== null && value !== void 0 ? value : null;
405
445
  }
406
- },
446
+ }
447
+ ]);
448
+ return Element;
449
+ }();
450
+ var HTMLElementShim = /*#__PURE__*/ function(ElementShim) {
451
+ _inherits$f(HTMLElement, ElementShim);
452
+ var _super = _create_super$f(HTMLElement);
453
+ function HTMLElement() {
454
+ _class_call_check$z(this, HTMLElement);
455
+ return _super.apply(this, arguments);
456
+ }
457
+ return HTMLElement;
458
+ }(ElementShim);
459
+ var HTMLElementShimWithRealType = HTMLElementShim;
460
+ var CustomElementRegistryShim = /*#__PURE__*/ function() {
461
+ function CustomElementRegistry() {
462
+ _class_call_check$z(this, CustomElementRegistry);
463
+ this.__definitions = new Map();
464
+ }
465
+ _create_class$y(CustomElementRegistry, [
407
466
  {
408
- key: "renderAttributes",
409
- value: /**
410
- * Render the element's attributes.
411
- *
412
- * The default implementation serializes all attributes on the element
413
- * instance.
414
- */ function renderAttributes() {
415
- var attributes, ref, i, name, value;
416
- return _ts_generator$5(this, function(_state) {
417
- switch(_state.label){
467
+ key: "define",
468
+ value: function define(name, ctor) {
469
+ if (this.__definitions.has(name)) {
470
+ if (process.env.NODE_ENV === "development") {
471
+ console.warn("'CustomElementRegistry' already has \"".concat(name, '" defined. ') + "This may have been caused by live reload or hot module " + "replacement in which case it can be safely ignored.\n" + "Make sure to test your application with a production build as " + "repeat registrations will throw in production.");
472
+ } else {
473
+ throw new Error("Failed to execute 'define' on 'CustomElementRegistry': " + 'the name "'.concat(name, '" has already been used with this registry'));
474
+ }
475
+ }
476
+ // Provide tagName and localName for the component.
477
+ ctor.__localName = name;
478
+ var _ctor_observedAttributes;
479
+ this.__definitions.set(name, {
480
+ ctor: ctor,
481
+ // Note it's important we read `observedAttributes` in case it is a getter
482
+ // with side-effects, as is the case in Lit, where it triggers class
483
+ // finalization.
484
+ //
485
+ // TODO(aomarks) To be spec compliant, we should also capture the
486
+ // registration-time lifecycle methods like `connectedCallback`. For them
487
+ // to be actually accessible to e.g. the Lit SSR element renderer, though,
488
+ // we'd need to introduce a new API for accessing them (since `get` only
489
+ // returns the constructor).
490
+ observedAttributes: (_ctor_observedAttributes = ctor.observedAttributes) !== null && _ctor_observedAttributes !== void 0 ? _ctor_observedAttributes : []
491
+ });
492
+ }
493
+ },
494
+ {
495
+ key: "get",
496
+ value: function get(name) {
497
+ var definition = this.__definitions.get(name);
498
+ return definition === null || definition === void 0 ? void 0 : definition.ctor;
499
+ }
500
+ }
501
+ ]);
502
+ return CustomElementRegistry;
503
+ }();
504
+ var CustomElementRegistryShimWithRealType = CustomElementRegistryShim;
505
+ new CustomElementRegistryShimWithRealType();
506
+
507
+ /**
508
+ * @license
509
+ * Copyright 2021 Google LLC
510
+ * SPDX-License-Identifier: BSD-3-Clause
511
+ */ var replacements = {
512
+ "&": "&amp;",
513
+ "<": "&lt;",
514
+ ">": "&gt;",
515
+ '"': "&quot;",
516
+ // Note &apos; was not defined in the HTML4 spec, and is not supported by very
517
+ // old browsers like IE8, so a codepoint entity is used instead.
518
+ "'": "&#39;"
519
+ };
520
+ /**
521
+ * Replaces characters which have special meaning in HTML (&<>"') with escaped
522
+ * HTML entities ("&amp;", "&lt;", etc.).
523
+ */ var escapeHtml = function(str) {
524
+ return str.replace(/[&<>"']/g, function(char) {
525
+ return replacements[char];
526
+ });
527
+ };
528
+
529
+ /// <reference lib="dom" />
530
+ /**
531
+ * @license
532
+ * Copyright 2019 Google LLC
533
+ * SPDX-License-Identifier: BSD-3-Clause
534
+ */ function _array_like_to_array$o(arr, len) {
535
+ if (len == null || len > arr.length) len = arr.length;
536
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
537
+ return arr2;
538
+ }
539
+ function _array_with_holes$i(arr) {
540
+ if (Array.isArray(arr)) return arr;
541
+ }
542
+ function _assert_this_initialized$e(self) {
543
+ if (self === void 0) {
544
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
545
+ }
546
+ return self;
547
+ }
548
+ function _class_call_check$y(instance, Constructor) {
549
+ if (!(instance instanceof Constructor)) {
550
+ throw new TypeError("Cannot call a class as a function");
551
+ }
552
+ }
553
+ function _defineProperties$x(target, props) {
554
+ for(var i = 0; i < props.length; i++){
555
+ var descriptor = props[i];
556
+ descriptor.enumerable = descriptor.enumerable || false;
557
+ descriptor.configurable = true;
558
+ if ("value" in descriptor) descriptor.writable = true;
559
+ Object.defineProperty(target, descriptor.key, descriptor);
560
+ }
561
+ }
562
+ function _create_class$x(Constructor, protoProps, staticProps) {
563
+ if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
564
+ if (staticProps) _defineProperties$x(Constructor, staticProps);
565
+ return Constructor;
566
+ }
567
+ function _get_prototype_of$e(o) {
568
+ _get_prototype_of$e = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
569
+ return o.__proto__ || Object.getPrototypeOf(o);
570
+ };
571
+ return _get_prototype_of$e(o);
572
+ }
573
+ function _inherits$e(subClass, superClass) {
574
+ if (typeof superClass !== "function" && superClass !== null) {
575
+ throw new TypeError("Super expression must either be null or a function");
576
+ }
577
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
578
+ constructor: {
579
+ value: subClass,
580
+ writable: true,
581
+ configurable: true
582
+ }
583
+ });
584
+ if (superClass) _set_prototype_of$e(subClass, superClass);
585
+ }
586
+ function _iterable_to_array_limit$i(arr, i) {
587
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
588
+ if (_i == null) return;
589
+ var _arr = [];
590
+ var _n = true;
591
+ var _d = false;
592
+ var _s, _e;
593
+ try {
594
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
595
+ _arr.push(_s.value);
596
+ if (i && _arr.length === i) break;
597
+ }
598
+ } catch (err) {
599
+ _d = true;
600
+ _e = err;
601
+ } finally{
602
+ try {
603
+ if (!_n && _i["return"] != null) _i["return"]();
604
+ } finally{
605
+ if (_d) throw _e;
606
+ }
607
+ }
608
+ return _arr;
609
+ }
610
+ function _non_iterable_rest$i() {
611
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
612
+ }
613
+ function _possible_constructor_return$e(self, call) {
614
+ if (call && (_type_of$i(call) === "object" || typeof call === "function")) {
615
+ return call;
616
+ }
617
+ return _assert_this_initialized$e(self);
618
+ }
619
+ function _set_prototype_of$e(o, p) {
620
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
621
+ o.__proto__ = p;
622
+ return o;
623
+ };
624
+ return _set_prototype_of$e(o, p);
625
+ }
626
+ function _sliced_to_array$i(arr, i) {
627
+ return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$i();
628
+ }
629
+ function _type_of$i(obj) {
630
+ "@swc/helpers - typeof";
631
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
632
+ }
633
+ function _unsupported_iterable_to_array$o(o, minLen) {
634
+ if (!o) return;
635
+ if (typeof o === "string") return _array_like_to_array$o(o, minLen);
636
+ var n = Object.prototype.toString.call(o).slice(8, -1);
637
+ if (n === "Object" && o.constructor) n = o.constructor.name;
638
+ if (n === "Map" || n === "Set") return Array.from(n);
639
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
640
+ }
641
+ function _is_native_reflect_construct$e() {
642
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
643
+ if (Reflect.construct.sham) return false;
644
+ if (typeof Proxy === "function") return true;
645
+ try {
646
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
647
+ return true;
648
+ } catch (e) {
649
+ return false;
650
+ }
651
+ }
652
+ function _create_super$e(Derived) {
653
+ var hasNativeReflectConstruct = _is_native_reflect_construct$e();
654
+ return function _createSuperInternal() {
655
+ var Super = _get_prototype_of$e(Derived), result;
656
+ if (hasNativeReflectConstruct) {
657
+ var NewTarget = _get_prototype_of$e(this).constructor;
658
+ result = Reflect.construct(Super, arguments, NewTarget);
659
+ } else {
660
+ result = Super.apply(this, arguments);
661
+ }
662
+ return _possible_constructor_return$e(this, result);
663
+ };
664
+ }
665
+ function _ts_generator$5(thisArg, body) {
666
+ var f, y, t, g, _ = {
667
+ label: 0,
668
+ sent: function() {
669
+ if (t[0] & 1) throw t[1];
670
+ return t[1];
671
+ },
672
+ trys: [],
673
+ ops: []
674
+ };
675
+ return g = {
676
+ next: verb(0),
677
+ "throw": verb(1),
678
+ "return": verb(2)
679
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
680
+ return this;
681
+ }), g;
682
+ function verb(n) {
683
+ return function(v) {
684
+ return step([
685
+ n,
686
+ v
687
+ ]);
688
+ };
689
+ }
690
+ function step(op) {
691
+ if (f) throw new TypeError("Generator is already executing.");
692
+ while(_)try {
693
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
694
+ if (y = 0, t) op = [
695
+ op[0] & 2,
696
+ t.value
697
+ ];
698
+ switch(op[0]){
699
+ case 0:
700
+ case 1:
701
+ t = op;
702
+ break;
703
+ case 4:
704
+ _.label++;
705
+ return {
706
+ value: op[1],
707
+ done: false
708
+ };
709
+ case 5:
710
+ _.label++;
711
+ y = op[1];
712
+ op = [
713
+ 0
714
+ ];
715
+ continue;
716
+ case 7:
717
+ op = _.ops.pop();
718
+ _.trys.pop();
719
+ continue;
720
+ default:
721
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
722
+ _ = 0;
723
+ continue;
724
+ }
725
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
726
+ _.label = op[1];
727
+ break;
728
+ }
729
+ if (op[0] === 6 && _.label < t[1]) {
730
+ _.label = t[1];
731
+ t = op;
732
+ break;
733
+ }
734
+ if (t && _.label < t[2]) {
735
+ _.label = t[2];
736
+ _.ops.push(op);
737
+ break;
738
+ }
739
+ if (t[2]) _.ops.pop();
740
+ _.trys.pop();
741
+ continue;
742
+ }
743
+ op = body.call(thisArg, _);
744
+ } catch (e) {
745
+ op = [
746
+ 6,
747
+ e
748
+ ];
749
+ y = 0;
750
+ } finally{
751
+ f = t = 0;
752
+ }
753
+ if (op[0] & 5) throw op[1];
754
+ return {
755
+ value: op[0] ? op[1] : void 0,
756
+ done: true
757
+ };
758
+ }
759
+ }
760
+ var getElementRenderer = function(param, tagName) {
761
+ var elementRenderers = param.elementRenderers, ceClass = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : customElements.get(tagName), attributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : new Map();
762
+ if (ceClass === undefined) {
763
+ console.warn("Custom element ".concat(tagName, " was not registered."));
764
+ return new FallbackRenderer(tagName);
765
+ }
766
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
767
+ try {
768
+ // TODO(kschaaf): Should we implement a caching scheme, e.g. keyed off of
769
+ // ceClass's base class to prevent O(n) lookups for every element (probably
770
+ // not a concern for the small number of element renderers we'd expect)? Doing
771
+ // so would preclude having cross-cutting renderers to e.g. no-op render all
772
+ // custom elements with a `client-only` attribute, so punting for now.
773
+ for(var _iterator = elementRenderers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
774
+ var renderer = _step.value;
775
+ if (renderer.matchesClass(ceClass, tagName, attributes)) {
776
+ return new renderer(tagName);
777
+ }
778
+ }
779
+ } catch (err) {
780
+ _didIteratorError = true;
781
+ _iteratorError = err;
782
+ } finally{
783
+ try {
784
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
785
+ _iterator.return();
786
+ }
787
+ } finally{
788
+ if (_didIteratorError) {
789
+ throw _iteratorError;
790
+ }
791
+ }
792
+ }
793
+ return new FallbackRenderer(tagName);
794
+ };
795
+ /**
796
+ * An object that renders elements of a certain type.
797
+ */ var ElementRenderer = /*#__PURE__*/ function() {
798
+ function ElementRenderer(tagName) {
799
+ _class_call_check$y(this, ElementRenderer);
800
+ this.tagName = tagName;
801
+ }
802
+ _create_class$x(ElementRenderer, [
803
+ {
804
+ /**
805
+ * Called when a custom element is "attached" to the server DOM.
806
+ *
807
+ * Because we don't presume a full DOM emulation, this isn't the same as
808
+ * being connected in a real browser. There may not be an owner document,
809
+ * parentNode, etc., depending on the DOM emulation.
810
+ *
811
+ * If this renderer is creating actual element instances, it may forward
812
+ * the call to the element's `connectedCallback()`.
813
+ *
814
+ * The default impementation is a no-op.
815
+ */ key: "connectedCallback",
816
+ value: function connectedCallback() {
817
+ // do nothing
818
+ }
819
+ },
820
+ {
821
+ /**
822
+ * Called from `setAttribute()` to emulate the browser's
823
+ * `attributeChangedCallback` lifecycle hook.
824
+ *
825
+ * If this renderer is creating actual element instances, it may forward
826
+ * the call to the element's `attributeChangedCallback()`.
827
+ */ key: "attributeChangedCallback",
828
+ value: function attributeChangedCallback(_name, _old, _value) {
829
+ // do nothing
830
+ }
831
+ },
832
+ {
833
+ /**
834
+ * Handles setting a property on the element.
835
+ *
836
+ * The default implementation sets the property on the renderer's element
837
+ * instance.
838
+ *
839
+ * @param name Name of the property
840
+ * @param value Value of the property
841
+ */ key: "setProperty",
842
+ value: function setProperty(name, value) {
843
+ if (this.element !== undefined) {
844
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
845
+ this.element[name] = value;
846
+ }
847
+ }
848
+ },
849
+ {
850
+ /**
851
+ * Handles setting an attribute on an element.
852
+ *
853
+ * Default implementation calls `setAttribute` on the renderer's element
854
+ * instance, and calls the abstract `attributeChangedCallback` on the
855
+ * renderer.
856
+ *
857
+ * @param name Name of the attribute
858
+ * @param value Value of the attribute
859
+ */ key: "setAttribute",
860
+ value: function setAttribute(name, value) {
861
+ // Browser turns all HTML attributes to lowercase.
862
+ name = name.toLowerCase();
863
+ if (this.element !== undefined) {
864
+ var old = this.element.getAttribute(name);
865
+ this.element.setAttribute(name, value);
866
+ this.attributeChangedCallback(name, old, value);
867
+ }
868
+ }
869
+ },
870
+ {
871
+ key: "shadowRootOptions",
872
+ get: /**
873
+ * The shadow root options to write to the declarative shadow DOM <template>,
874
+ * if one is created with `renderShadow()`.
875
+ */ function get() {
876
+ return {
877
+ mode: "open"
878
+ };
879
+ }
880
+ },
881
+ {
882
+ /**
883
+ * Render the element's shadow root children.
884
+ *
885
+ * If `renderShadow()` returns undefined, no declarative shadow root is
886
+ * emitted.
887
+ */ key: "renderShadow",
888
+ value: function renderShadow(_renderInfo) {
889
+ return undefined;
890
+ }
891
+ },
892
+ {
893
+ /**
894
+ * Render the element's light DOM children.
895
+ */ key: "renderLight",
896
+ value: function renderLight(_renderInfo) {
897
+ return undefined;
898
+ }
899
+ },
900
+ {
901
+ key: "renderAttributes",
902
+ value: /**
903
+ * Render the element's attributes.
904
+ *
905
+ * The default implementation serializes all attributes on the element
906
+ * instance.
907
+ */ function renderAttributes() {
908
+ var attributes, ref, i, name, value;
909
+ return _ts_generator$5(this, function(_state) {
910
+ switch(_state.label){
418
911
  case 0:
419
912
  if (!(this.element !== undefined)) return [
420
913
  3,
@@ -486,10 +979,10 @@ var getElementRenderer = function(param, tagName) {
486
979
  * An ElementRenderer used as a fallback in the case where a custom element is
487
980
  * either unregistered or has no other matching renderer.
488
981
  */ var FallbackRenderer = /*#__PURE__*/ function(ElementRenderer) {
489
- _inherits$f(FallbackRenderer, ElementRenderer);
490
- var _super = _create_super$f(FallbackRenderer);
982
+ _inherits$e(FallbackRenderer, ElementRenderer);
983
+ var _super = _create_super$e(FallbackRenderer);
491
984
  function FallbackRenderer() {
492
- _class_call_check$A(this, FallbackRenderer);
985
+ _class_call_check$y(this, FallbackRenderer);
493
986
  var _this;
494
987
  _this = _super.call.apply(_super, [
495
988
  this
@@ -497,7 +990,7 @@ var getElementRenderer = function(param, tagName) {
497
990
  _this._attributes = {};
498
991
  return _this;
499
992
  }
500
- _create_class$z(FallbackRenderer, [
993
+ _create_class$x(FallbackRenderer, [
501
994
  {
502
995
  key: "setAttribute",
503
996
  value: function setAttribute(name, value) {
@@ -528,7 +1021,7 @@ var getElementRenderer = function(param, tagName) {
528
1021
  3,
529
1022
  7
530
1023
  ];
531
- _step_value = _sliced_to_array$j(_step.value, 2), name = _step_value[0], value = _step_value[1];
1024
+ _step_value = _sliced_to_array$i(_step.value, 2), name = _step_value[0], value = _step_value[1];
532
1025
  if (!(value === "" || value === undefined || value === null)) return [
533
1026
  3,
534
1027
  4
@@ -600,12 +1093,12 @@ var getElementRenderer = function(param, tagName) {
600
1093
  * @license
601
1094
  * Copyright 2019 Google LLC
602
1095
  * SPDX-License-Identifier: BSD-3-Clause
603
- */ function _class_call_check$z(instance, Constructor) {
1096
+ */ function _class_call_check$x(instance, Constructor) {
604
1097
  if (!(instance instanceof Constructor)) {
605
1098
  throw new TypeError("Cannot call a class as a function");
606
1099
  }
607
1100
  }
608
- function _defineProperties$y(target, props) {
1101
+ function _defineProperties$w(target, props) {
609
1102
  for(var i = 0; i < props.length; i++){
610
1103
  var descriptor = props[i];
611
1104
  descriptor.enumerable = descriptor.enumerable || false;
@@ -614,9 +1107,9 @@ function _defineProperties$y(target, props) {
614
1107
  Object.defineProperty(target, descriptor.key, descriptor);
615
1108
  }
616
1109
  }
617
- function _create_class$y(Constructor, protoProps, staticProps) {
618
- if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
619
- if (staticProps) _defineProperties$y(Constructor, staticProps);
1110
+ function _create_class$w(Constructor, protoProps, staticProps) {
1111
+ if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
1112
+ if (staticProps) _defineProperties$w(Constructor, staticProps);
620
1113
  return Constructor;
621
1114
  }
622
1115
  function _instanceof$a(left, right) {
@@ -629,11 +1122,11 @@ function _instanceof$a(left, right) {
629
1122
  var t$3 = globalThis, e$4 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$3 = Symbol(), o$3 = new WeakMap;
630
1123
  var n$4 = /*#__PURE__*/ function() {
631
1124
  function n(t, e, o) {
632
- _class_call_check$z(this, n);
1125
+ _class_call_check$x(this, n);
633
1126
  if (this._$cssResult$ = !0, o !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
634
1127
  this.cssText = t, this.t = e;
635
1128
  }
636
- _create_class$y(n, [
1129
+ _create_class$w(n, [
637
1130
  {
638
1131
  key: "styleSheet",
639
1132
  get: function get() {
@@ -711,18 +1204,18 @@ var r$4 = function(t) {
711
1204
  }(t) : t;
712
1205
  };
713
1206
 
714
- function _array_like_to_array$o(arr, len) {
1207
+ function _array_like_to_array$n(arr, len) {
715
1208
  if (len == null || len > arr.length) len = arr.length;
716
1209
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
717
1210
  return arr2;
718
1211
  }
719
- function _array_with_holes$i(arr) {
1212
+ function _array_with_holes$h(arr) {
720
1213
  if (Array.isArray(arr)) return arr;
721
1214
  }
722
1215
  function _array_without_holes$e(arr) {
723
- if (Array.isArray(arr)) return _array_like_to_array$o(arr);
1216
+ if (Array.isArray(arr)) return _array_like_to_array$n(arr);
724
1217
  }
725
- function _assert_this_initialized$e(self) {
1218
+ function _assert_this_initialized$d(self) {
726
1219
  if (self === void 0) {
727
1220
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
728
1221
  }
@@ -757,13 +1250,13 @@ function _async_to_generator$1(fn) {
757
1250
  });
758
1251
  };
759
1252
  }
760
- function _class_call_check$y(instance, Constructor) {
1253
+ function _class_call_check$w(instance, Constructor) {
761
1254
  if (!(instance instanceof Constructor)) {
762
1255
  throw new TypeError("Cannot call a class as a function");
763
1256
  }
764
1257
  }
765
1258
  function _construct$2(Parent, args, Class) {
766
- if (_is_native_reflect_construct$e()) {
1259
+ if (_is_native_reflect_construct$d()) {
767
1260
  _construct$2 = Reflect.construct;
768
1261
  } else {
769
1262
  _construct$2 = function construct(Parent, args, Class) {
@@ -773,13 +1266,13 @@ function _construct$2(Parent, args, Class) {
773
1266
  a.push.apply(a, args);
774
1267
  var Constructor = Function.bind.apply(Parent, a);
775
1268
  var instance = new Constructor();
776
- if (Class) _set_prototype_of$e(instance, Class.prototype);
1269
+ if (Class) _set_prototype_of$d(instance, Class.prototype);
777
1270
  return instance;
778
1271
  };
779
1272
  }
780
1273
  return _construct$2.apply(null, arguments);
781
1274
  }
782
- function _defineProperties$x(target, props) {
1275
+ function _defineProperties$v(target, props) {
783
1276
  for(var i = 0; i < props.length; i++){
784
1277
  var descriptor = props[i];
785
1278
  descriptor.enumerable = descriptor.enumerable || false;
@@ -788,18 +1281,18 @@ function _defineProperties$x(target, props) {
788
1281
  Object.defineProperty(target, descriptor.key, descriptor);
789
1282
  }
790
1283
  }
791
- function _create_class$x(Constructor, protoProps, staticProps) {
792
- if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
793
- if (staticProps) _defineProperties$x(Constructor, staticProps);
1284
+ function _create_class$v(Constructor, protoProps, staticProps) {
1285
+ if (protoProps) _defineProperties$v(Constructor.prototype, protoProps);
1286
+ if (staticProps) _defineProperties$v(Constructor, staticProps);
794
1287
  return Constructor;
795
1288
  }
796
- function _get_prototype_of$e(o) {
797
- _get_prototype_of$e = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1289
+ function _get_prototype_of$d(o) {
1290
+ _get_prototype_of$d = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
798
1291
  return o.__proto__ || Object.getPrototypeOf(o);
799
1292
  };
800
- return _get_prototype_of$e(o);
1293
+ return _get_prototype_of$d(o);
801
1294
  }
802
- function _inherits$e(subClass, superClass) {
1295
+ function _inherits$d(subClass, superClass) {
803
1296
  if (typeof superClass !== "function" && superClass !== null) {
804
1297
  throw new TypeError("Super expression must either be null or a function");
805
1298
  }
@@ -810,7 +1303,7 @@ function _inherits$e(subClass, superClass) {
810
1303
  configurable: true
811
1304
  }
812
1305
  });
813
- if (superClass) _set_prototype_of$e(subClass, superClass);
1306
+ if (superClass) _set_prototype_of$d(subClass, superClass);
814
1307
  }
815
1308
  function _is_native_function$2(fn) {
816
1309
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
@@ -818,7 +1311,7 @@ function _is_native_function$2(fn) {
818
1311
  function _iterable_to_array$e(iter) {
819
1312
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
820
1313
  }
821
- function _iterable_to_array_limit$i(arr, i) {
1314
+ function _iterable_to_array_limit$h(arr, i) {
822
1315
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
823
1316
  if (_i == null) return;
824
1317
  var _arr = [];
@@ -842,42 +1335,42 @@ function _iterable_to_array_limit$i(arr, i) {
842
1335
  }
843
1336
  return _arr;
844
1337
  }
845
- function _non_iterable_rest$i() {
1338
+ function _non_iterable_rest$h() {
846
1339
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
847
1340
  }
848
1341
  function _non_iterable_spread$e() {
849
1342
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
850
1343
  }
851
- function _possible_constructor_return$e(self, call) {
852
- if (call && (_type_of$i(call) === "object" || typeof call === "function")) {
1344
+ function _possible_constructor_return$d(self, call) {
1345
+ if (call && (_type_of$h(call) === "object" || typeof call === "function")) {
853
1346
  return call;
854
1347
  }
855
- return _assert_this_initialized$e(self);
1348
+ return _assert_this_initialized$d(self);
856
1349
  }
857
- function _set_prototype_of$e(o, p) {
858
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1350
+ function _set_prototype_of$d(o, p) {
1351
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
859
1352
  o.__proto__ = p;
860
1353
  return o;
861
1354
  };
862
- return _set_prototype_of$e(o, p);
1355
+ return _set_prototype_of$d(o, p);
863
1356
  }
864
- function _sliced_to_array$i(arr, i) {
865
- return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$i();
1357
+ function _sliced_to_array$h(arr, i) {
1358
+ return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$h();
866
1359
  }
867
1360
  function _to_consumable_array$e(arr) {
868
- return _array_without_holes$e(arr) || _iterable_to_array$e(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$e();
1361
+ return _array_without_holes$e(arr) || _iterable_to_array$e(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$e();
869
1362
  }
870
- function _type_of$i(obj) {
1363
+ function _type_of$h(obj) {
871
1364
  "@swc/helpers - typeof";
872
1365
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
873
1366
  }
874
- function _unsupported_iterable_to_array$o(o, minLen) {
1367
+ function _unsupported_iterable_to_array$n(o, minLen) {
875
1368
  if (!o) return;
876
- if (typeof o === "string") return _array_like_to_array$o(o, minLen);
1369
+ if (typeof o === "string") return _array_like_to_array$n(o, minLen);
877
1370
  var n = Object.prototype.toString.call(o).slice(8, -1);
878
1371
  if (n === "Object" && o.constructor) n = o.constructor.name;
879
1372
  if (n === "Map" || n === "Set") return Array.from(n);
880
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
1373
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
881
1374
  }
882
1375
  function _wrap_native_super$2(Class) {
883
1376
  var _cache = typeof Map === "function" ? new Map() : undefined;
@@ -891,7 +1384,7 @@ function _wrap_native_super$2(Class) {
891
1384
  _cache.set(Class, Wrapper);
892
1385
  }
893
1386
  function Wrapper() {
894
- return _construct$2(Class, arguments, _get_prototype_of$e(this).constructor);
1387
+ return _construct$2(Class, arguments, _get_prototype_of$d(this).constructor);
895
1388
  }
896
1389
  Wrapper.prototype = Object.create(Class.prototype, {
897
1390
  constructor: {
@@ -901,11 +1394,11 @@ function _wrap_native_super$2(Class) {
901
1394
  configurable: true
902
1395
  }
903
1396
  });
904
- return _set_prototype_of$e(Wrapper, Class);
1397
+ return _set_prototype_of$d(Wrapper, Class);
905
1398
  };
906
1399
  return _wrap_native_super$2(Class);
907
1400
  }
908
- function _is_native_reflect_construct$e() {
1401
+ function _is_native_reflect_construct$d() {
909
1402
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
910
1403
  if (Reflect.construct.sham) return false;
911
1404
  if (typeof Proxy === "function") return true;
@@ -916,17 +1409,17 @@ function _is_native_reflect_construct$e() {
916
1409
  return false;
917
1410
  }
918
1411
  }
919
- function _create_super$e(Derived) {
920
- var hasNativeReflectConstruct = _is_native_reflect_construct$e();
1412
+ function _create_super$d(Derived) {
1413
+ var hasNativeReflectConstruct = _is_native_reflect_construct$d();
921
1414
  return function _createSuperInternal() {
922
- var Super = _get_prototype_of$e(Derived), result;
1415
+ var Super = _get_prototype_of$d(Derived), result;
923
1416
  if (hasNativeReflectConstruct) {
924
- var NewTarget = _get_prototype_of$e(this).constructor;
1417
+ var NewTarget = _get_prototype_of$d(this).constructor;
925
1418
  result = Reflect.construct(Super, arguments, NewTarget);
926
1419
  } else {
927
1420
  result = Super.apply(this, arguments);
928
1421
  }
929
- return _possible_constructor_return$e(this, result);
1422
+ return _possible_constructor_return$d(this, result);
930
1423
  };
931
1424
  }
932
1425
  function _ts_generator$4(thisArg, body) {
@@ -1074,15 +1567,15 @@ var _Symbol, _a$1, _a1;
1074
1567
  var _metadata, _litPropertyMetadata;
1075
1568
  (_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a$1 = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a$1.litPropertyMetadata = new WeakMap;
1076
1569
  var b = /*#__PURE__*/ function(HTMLElement1) {
1077
- _inherits$e(b, HTMLElement1);
1078
- var _super = _create_super$e(b);
1570
+ _inherits$d(b, HTMLElement1);
1571
+ var _super = _create_super$d(b);
1079
1572
  function b() {
1080
- _class_call_check$y(this, b);
1573
+ _class_call_check$w(this, b);
1081
1574
  var _this;
1082
1575
  _this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = !1, _this.hasUpdated = !1, _this._$Em = null, _this._$Ev();
1083
- return _possible_constructor_return$e(_this);
1576
+ return _possible_constructor_return$d(_this);
1084
1577
  }
1085
- _create_class$x(b, [
1578
+ _create_class$v(b, [
1086
1579
  {
1087
1580
  key: "_$Ev",
1088
1581
  value: function _$Ev() {
@@ -1293,7 +1786,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
1293
1786
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1294
1787
  try {
1295
1788
  for(var _iterator = this._$Ep[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1296
- var _step_value = _sliced_to_array$i(_step.value, 2), t = _step_value[0], _$s = _step_value[1];
1789
+ var _step_value = _sliced_to_array$h(_step.value, 2), t = _step_value[0], _$s = _step_value[1];
1297
1790
  this[t] = _$s;
1298
1791
  }
1299
1792
  } catch (err) {
@@ -1316,7 +1809,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
1316
1809
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1317
1810
  if (t1.size > 0) try {
1318
1811
  for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1319
- var _step_value1 = _sliced_to_array$i(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
1812
+ var _step_value1 = _sliced_to_array$h(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
1320
1813
  !0 !== i.wrapped || this._$AL.has(_$s1) || void 0 === this[_$s1] || this.P(_$s1, this[_$s1], i);
1321
1814
  }
1322
1815
  } catch (err) {
@@ -1500,7 +1993,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
1500
1993
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1501
1994
  if (void 0 !== s1) try {
1502
1995
  for(var _iterator1 = s1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1503
- var _step_value = _sliced_to_array$i(_step1.value, 2), t2 = _step_value[0], i1 = _step_value[1];
1996
+ var _step_value = _sliced_to_array$h(_step1.value, 2), t2 = _step_value[0], i1 = _step_value[1];
1504
1997
  this.elementProperties.set(t2, i1);
1505
1998
  }
1506
1999
  } catch (err) {
@@ -1522,7 +2015,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
1522
2015
  var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
1523
2016
  try {
1524
2017
  for(var _iterator2 = this.elementProperties[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
1525
- var _step_value1 = _sliced_to_array$i(_step2.value, 2), t3 = _step_value1[0], s2 = _step_value1[1];
2018
+ var _step_value1 = _sliced_to_array$h(_step2.value, 2), t3 = _step_value1[0], s2 = _step_value1[1];
1526
2019
  var i2 = this._$Eu(t3, s2);
1527
2020
  void 0 !== i2 && this._$Eh.set(i2, t3);
1528
2021
  }
@@ -1594,29 +2087,29 @@ b.elementStyles = [], b.shadowRootOptions = {
1594
2087
  * @license
1595
2088
  * Copyright 2017 Google LLC
1596
2089
  * SPDX-License-Identifier: BSD-3-Clause
1597
- */ function _array_like_to_array$n(arr, len) {
2090
+ */ function _array_like_to_array$m(arr, len) {
1598
2091
  if (len == null || len > arr.length) len = arr.length;
1599
2092
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1600
2093
  return arr2;
1601
2094
  }
1602
- function _array_with_holes$h(arr) {
2095
+ function _array_with_holes$g(arr) {
1603
2096
  if (Array.isArray(arr)) return arr;
1604
2097
  }
1605
2098
  function _array_without_holes$d(arr) {
1606
- if (Array.isArray(arr)) return _array_like_to_array$n(arr);
2099
+ if (Array.isArray(arr)) return _array_like_to_array$m(arr);
1607
2100
  }
1608
- function _assert_this_initialized$d(self) {
2101
+ function _assert_this_initialized$c(self) {
1609
2102
  if (self === void 0) {
1610
2103
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1611
2104
  }
1612
2105
  return self;
1613
2106
  }
1614
- function _class_call_check$x(instance, Constructor) {
2107
+ function _class_call_check$v(instance, Constructor) {
1615
2108
  if (!(instance instanceof Constructor)) {
1616
2109
  throw new TypeError("Cannot call a class as a function");
1617
2110
  }
1618
2111
  }
1619
- function _defineProperties$w(target, props) {
2112
+ function _defineProperties$u(target, props) {
1620
2113
  for(var i = 0; i < props.length; i++){
1621
2114
  var descriptor = props[i];
1622
2115
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1625,18 +2118,18 @@ function _defineProperties$w(target, props) {
1625
2118
  Object.defineProperty(target, descriptor.key, descriptor);
1626
2119
  }
1627
2120
  }
1628
- function _create_class$w(Constructor, protoProps, staticProps) {
1629
- if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
1630
- if (staticProps) _defineProperties$w(Constructor, staticProps);
2121
+ function _create_class$u(Constructor, protoProps, staticProps) {
2122
+ if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
2123
+ if (staticProps) _defineProperties$u(Constructor, staticProps);
1631
2124
  return Constructor;
1632
2125
  }
1633
- function _get_prototype_of$d(o) {
1634
- _get_prototype_of$d = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
2126
+ function _get_prototype_of$c(o) {
2127
+ _get_prototype_of$c = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1635
2128
  return o.__proto__ || Object.getPrototypeOf(o);
1636
2129
  };
1637
- return _get_prototype_of$d(o);
2130
+ return _get_prototype_of$c(o);
1638
2131
  }
1639
- function _inherits$d(subClass, superClass) {
2132
+ function _inherits$c(subClass, superClass) {
1640
2133
  if (typeof superClass !== "function" && superClass !== null) {
1641
2134
  throw new TypeError("Super expression must either be null or a function");
1642
2135
  }
@@ -1647,12 +2140,12 @@ function _inherits$d(subClass, superClass) {
1647
2140
  configurable: true
1648
2141
  }
1649
2142
  });
1650
- if (superClass) _set_prototype_of$d(subClass, superClass);
2143
+ if (superClass) _set_prototype_of$c(subClass, superClass);
1651
2144
  }
1652
2145
  function _iterable_to_array$d(iter) {
1653
2146
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1654
2147
  }
1655
- function _iterable_to_array_limit$h(arr, i) {
2148
+ function _iterable_to_array_limit$g(arr, i) {
1656
2149
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1657
2150
  if (_i == null) return;
1658
2151
  var _arr = [];
@@ -1676,44 +2169,44 @@ function _iterable_to_array_limit$h(arr, i) {
1676
2169
  }
1677
2170
  return _arr;
1678
2171
  }
1679
- function _non_iterable_rest$h() {
2172
+ function _non_iterable_rest$g() {
1680
2173
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1681
2174
  }
1682
2175
  function _non_iterable_spread$d() {
1683
2176
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1684
2177
  }
1685
- function _possible_constructor_return$d(self, call) {
1686
- if (call && (_type_of$h(call) === "object" || typeof call === "function")) {
2178
+ function _possible_constructor_return$c(self, call) {
2179
+ if (call && (_type_of$g(call) === "object" || typeof call === "function")) {
1687
2180
  return call;
1688
2181
  }
1689
- return _assert_this_initialized$d(self);
2182
+ return _assert_this_initialized$c(self);
1690
2183
  }
1691
- function _set_prototype_of$d(o, p) {
1692
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2184
+ function _set_prototype_of$c(o, p) {
2185
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1693
2186
  o.__proto__ = p;
1694
2187
  return o;
1695
2188
  };
1696
- return _set_prototype_of$d(o, p);
2189
+ return _set_prototype_of$c(o, p);
1697
2190
  }
1698
- function _sliced_to_array$h(arr, i) {
1699
- return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$h();
2191
+ function _sliced_to_array$g(arr, i) {
2192
+ return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$g();
1700
2193
  }
1701
2194
  function _to_consumable_array$d(arr) {
1702
- return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$d();
2195
+ return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$d();
1703
2196
  }
1704
- function _type_of$h(obj) {
2197
+ function _type_of$g(obj) {
1705
2198
  "@swc/helpers - typeof";
1706
2199
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1707
2200
  }
1708
- function _unsupported_iterable_to_array$n(o, minLen) {
2201
+ function _unsupported_iterable_to_array$m(o, minLen) {
1709
2202
  if (!o) return;
1710
- if (typeof o === "string") return _array_like_to_array$n(o, minLen);
2203
+ if (typeof o === "string") return _array_like_to_array$m(o, minLen);
1711
2204
  var n = Object.prototype.toString.call(o).slice(8, -1);
1712
2205
  if (n === "Object" && o.constructor) n = o.constructor.name;
1713
2206
  if (n === "Map" || n === "Set") return Array.from(n);
1714
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
2207
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
1715
2208
  }
1716
- function _is_native_reflect_construct$d() {
2209
+ function _is_native_reflect_construct$c() {
1717
2210
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1718
2211
  if (Reflect.construct.sham) return false;
1719
2212
  if (typeof Proxy === "function") return true;
@@ -1724,17 +2217,17 @@ function _is_native_reflect_construct$d() {
1724
2217
  return false;
1725
2218
  }
1726
2219
  }
1727
- function _create_super$d(Derived) {
1728
- var hasNativeReflectConstruct = _is_native_reflect_construct$d();
2220
+ function _create_super$c(Derived) {
2221
+ var hasNativeReflectConstruct = _is_native_reflect_construct$c();
1729
2222
  return function _createSuperInternal() {
1730
- var Super = _get_prototype_of$d(Derived), result;
2223
+ var Super = _get_prototype_of$c(Derived), result;
1731
2224
  if (hasNativeReflectConstruct) {
1732
- var NewTarget = _get_prototype_of$d(this).constructor;
2225
+ var NewTarget = _get_prototype_of$c(this).constructor;
1733
2226
  result = Reflect.construct(Super, arguments, NewTarget);
1734
2227
  } else {
1735
2228
  result = Super.apply(this, arguments);
1736
2229
  }
1737
- return _possible_constructor_return$d(this, result);
2230
+ return _possible_constructor_return$c(this, result);
1738
2231
  };
1739
2232
  }
1740
2233
  var _t;
@@ -1771,11 +2264,11 @@ var V = function(t, i) {
1771
2264
  var N = /*#__PURE__*/ function() {
1772
2265
  function N(param, n) {
1773
2266
  var t = param.strings, s = param._$litType$;
1774
- _class_call_check$x(this, N);
2267
+ _class_call_check$v(this, N);
1775
2268
  var r;
1776
2269
  this.parts = [];
1777
2270
  var c = 0, a = 0;
1778
- var u = t.length - 1, d = this.parts, _V = _sliced_to_array$h(V(t, s), 2), f = _V[0], v = _V[1];
2271
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array$g(V(t, s), 2), f = _V[0], v = _V[1];
1779
2272
  if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1780
2273
  var _t;
1781
2274
  var t1 = this.el.content.firstChild;
@@ -1840,7 +2333,7 @@ var N = /*#__PURE__*/ function() {
1840
2333
  c++;
1841
2334
  }
1842
2335
  }
1843
- _create_class$w(N, null, [
2336
+ _create_class$u(N, null, [
1844
2337
  {
1845
2338
  key: "createElement",
1846
2339
  value: function createElement(t, i) {
@@ -1863,10 +2356,10 @@ function S(t, i) {
1863
2356
  }
1864
2357
  var M = /*#__PURE__*/ function() {
1865
2358
  function M(t, i) {
1866
- _class_call_check$x(this, M);
2359
+ _class_call_check$v(this, M);
1867
2360
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1868
2361
  }
1869
- _create_class$w(M, [
2362
+ _create_class$u(M, [
1870
2363
  {
1871
2364
  key: "parentNode",
1872
2365
  get: function get() {
@@ -1927,11 +2420,11 @@ var M = /*#__PURE__*/ function() {
1927
2420
  }();
1928
2421
  var R = /*#__PURE__*/ function() {
1929
2422
  function R(t, i, s, e) {
1930
- _class_call_check$x(this, R);
2423
+ _class_call_check$v(this, R);
1931
2424
  var _e_isConnected;
1932
2425
  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;
1933
2426
  }
1934
- _create_class$w(R, [
2427
+ _create_class$u(R, [
1935
2428
  {
1936
2429
  key: "_$AU",
1937
2430
  get: function get() {
@@ -2056,10 +2549,10 @@ var R = /*#__PURE__*/ function() {
2056
2549
  }();
2057
2550
  var k = /*#__PURE__*/ function() {
2058
2551
  function k(t, i, s, e, h) {
2059
- _class_call_check$x(this, k);
2552
+ _class_call_check$v(this, k);
2060
2553
  this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
2061
2554
  }
2062
- _create_class$w(k, [
2555
+ _create_class$u(k, [
2063
2556
  {
2064
2557
  key: "tagName",
2065
2558
  get: function get() {
@@ -2097,17 +2590,17 @@ var k = /*#__PURE__*/ function() {
2097
2590
  return k;
2098
2591
  }();
2099
2592
  var H = /*#__PURE__*/ function(k) {
2100
- _inherits$d(H, k);
2101
- var _super = _create_super$d(H);
2593
+ _inherits$c(H, k);
2594
+ var _super = _create_super$c(H);
2102
2595
  function H() {
2103
- _class_call_check$x(this, H);
2596
+ _class_call_check$v(this, H);
2104
2597
  var _this;
2105
2598
  _this = _super.call.apply(_super, [
2106
2599
  this
2107
2600
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
2108
- return _possible_constructor_return$d(_this);
2601
+ return _possible_constructor_return$c(_this);
2109
2602
  }
2110
- _create_class$w(H, [
2603
+ _create_class$u(H, [
2111
2604
  {
2112
2605
  key: "j",
2113
2606
  value: function j(t) {
@@ -2118,17 +2611,17 @@ var H = /*#__PURE__*/ function(k) {
2118
2611
  return H;
2119
2612
  }(k);
2120
2613
  var I = /*#__PURE__*/ function(k) {
2121
- _inherits$d(I, k);
2122
- var _super = _create_super$d(I);
2614
+ _inherits$c(I, k);
2615
+ var _super = _create_super$c(I);
2123
2616
  function I() {
2124
- _class_call_check$x(this, I);
2617
+ _class_call_check$v(this, I);
2125
2618
  var _this;
2126
2619
  _this = _super.call.apply(_super, [
2127
2620
  this
2128
2621
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
2129
- return _possible_constructor_return$d(_this);
2622
+ return _possible_constructor_return$c(_this);
2130
2623
  }
2131
- _create_class$w(I, [
2624
+ _create_class$u(I, [
2132
2625
  {
2133
2626
  key: "j",
2134
2627
  value: function j(t) {
@@ -2139,15 +2632,15 @@ var I = /*#__PURE__*/ function(k) {
2139
2632
  return I;
2140
2633
  }(k);
2141
2634
  var L = /*#__PURE__*/ function(k) {
2142
- _inherits$d(L, k);
2143
- var _super = _create_super$d(L);
2635
+ _inherits$c(L, k);
2636
+ var _super = _create_super$c(L);
2144
2637
  function L(t, i, s, e, h) {
2145
- _class_call_check$x(this, L);
2638
+ _class_call_check$v(this, L);
2146
2639
  var _this;
2147
2640
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
2148
- return _possible_constructor_return$d(_this);
2641
+ return _possible_constructor_return$c(_this);
2149
2642
  }
2150
- _create_class$w(L, [
2643
+ _create_class$u(L, [
2151
2644
  {
2152
2645
  key: "_$AI",
2153
2646
  value: function _$AI(t) {
@@ -2171,10 +2664,10 @@ var L = /*#__PURE__*/ function(k) {
2171
2664
  }(k);
2172
2665
  var z = /*#__PURE__*/ function() {
2173
2666
  function z(t, i, s) {
2174
- _class_call_check$x(this, z);
2667
+ _class_call_check$v(this, z);
2175
2668
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
2176
2669
  }
2177
- _create_class$w(z, [
2670
+ _create_class$u(z, [
2178
2671
  {
2179
2672
  key: "_$AU",
2180
2673
  get: function get() {
@@ -2220,18 +2713,18 @@ var B = function(t, i, s) {
2220
2713
  return h._$AI(t), h;
2221
2714
  };
2222
2715
 
2223
- function _assert_this_initialized$c(self) {
2716
+ function _assert_this_initialized$b(self) {
2224
2717
  if (self === void 0) {
2225
2718
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2226
2719
  }
2227
2720
  return self;
2228
2721
  }
2229
- function _class_call_check$w(instance, Constructor) {
2722
+ function _class_call_check$u(instance, Constructor) {
2230
2723
  if (!(instance instanceof Constructor)) {
2231
2724
  throw new TypeError("Cannot call a class as a function");
2232
2725
  }
2233
2726
  }
2234
- function _defineProperties$v(target, props) {
2727
+ function _defineProperties$t(target, props) {
2235
2728
  for(var i = 0; i < props.length; i++){
2236
2729
  var descriptor = props[i];
2237
2730
  descriptor.enumerable = descriptor.enumerable || false;
@@ -2240,9 +2733,9 @@ function _defineProperties$v(target, props) {
2240
2733
  Object.defineProperty(target, descriptor.key, descriptor);
2241
2734
  }
2242
2735
  }
2243
- function _create_class$v(Constructor, protoProps, staticProps) {
2244
- if (protoProps) _defineProperties$v(Constructor.prototype, protoProps);
2245
- if (staticProps) _defineProperties$v(Constructor, staticProps);
2736
+ function _create_class$t(Constructor, protoProps, staticProps) {
2737
+ if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
2738
+ if (staticProps) _defineProperties$t(Constructor, staticProps);
2246
2739
  return Constructor;
2247
2740
  }
2248
2741
  function _get$1(target, property, receiver) {
@@ -2261,13 +2754,13 @@ function _get$1(target, property, receiver) {
2261
2754
  }
2262
2755
  return _get$1(target, property, receiver || target);
2263
2756
  }
2264
- function _get_prototype_of$c(o) {
2265
- _get_prototype_of$c = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
2757
+ function _get_prototype_of$b(o) {
2758
+ _get_prototype_of$b = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
2266
2759
  return o.__proto__ || Object.getPrototypeOf(o);
2267
2760
  };
2268
- return _get_prototype_of$c(o);
2761
+ return _get_prototype_of$b(o);
2269
2762
  }
2270
- function _inherits$c(subClass, superClass) {
2763
+ function _inherits$b(subClass, superClass) {
2271
2764
  if (typeof superClass !== "function" && superClass !== null) {
2272
2765
  throw new TypeError("Super expression must either be null or a function");
2273
2766
  }
@@ -2278,33 +2771,33 @@ function _inherits$c(subClass, superClass) {
2278
2771
  configurable: true
2279
2772
  }
2280
2773
  });
2281
- if (superClass) _set_prototype_of$c(subClass, superClass);
2774
+ if (superClass) _set_prototype_of$b(subClass, superClass);
2282
2775
  }
2283
- function _possible_constructor_return$c(self, call) {
2284
- if (call && (_type_of$g(call) === "object" || typeof call === "function")) {
2776
+ function _possible_constructor_return$b(self, call) {
2777
+ if (call && (_type_of$f(call) === "object" || typeof call === "function")) {
2285
2778
  return call;
2286
2779
  }
2287
- return _assert_this_initialized$c(self);
2780
+ return _assert_this_initialized$b(self);
2288
2781
  }
2289
- function _set_prototype_of$c(o, p) {
2290
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2782
+ function _set_prototype_of$b(o, p) {
2783
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2291
2784
  o.__proto__ = p;
2292
2785
  return o;
2293
2786
  };
2294
- return _set_prototype_of$c(o, p);
2787
+ return _set_prototype_of$b(o, p);
2295
2788
  }
2296
2789
  function _super_prop_base$1(object, property) {
2297
2790
  while(!Object.prototype.hasOwnProperty.call(object, property)){
2298
- object = _get_prototype_of$c(object);
2791
+ object = _get_prototype_of$b(object);
2299
2792
  if (object === null) break;
2300
2793
  }
2301
2794
  return object;
2302
2795
  }
2303
- function _type_of$g(obj) {
2796
+ function _type_of$f(obj) {
2304
2797
  "@swc/helpers - typeof";
2305
2798
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
2306
2799
  }
2307
- function _is_native_reflect_construct$c() {
2800
+ function _is_native_reflect_construct$b() {
2308
2801
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
2309
2802
  if (Reflect.construct.sham) return false;
2310
2803
  if (typeof Proxy === "function") return true;
@@ -2315,44 +2808,44 @@ function _is_native_reflect_construct$c() {
2315
2808
  return false;
2316
2809
  }
2317
2810
  }
2318
- function _create_super$c(Derived) {
2319
- var hasNativeReflectConstruct = _is_native_reflect_construct$c();
2811
+ function _create_super$b(Derived) {
2812
+ var hasNativeReflectConstruct = _is_native_reflect_construct$b();
2320
2813
  return function _createSuperInternal() {
2321
- var Super = _get_prototype_of$c(Derived), result;
2814
+ var Super = _get_prototype_of$b(Derived), result;
2322
2815
  if (hasNativeReflectConstruct) {
2323
- var NewTarget = _get_prototype_of$c(this).constructor;
2816
+ var NewTarget = _get_prototype_of$b(this).constructor;
2324
2817
  result = Reflect.construct(Super, arguments, NewTarget);
2325
2818
  } else {
2326
2819
  result = Super.apply(this, arguments);
2327
2820
  }
2328
- return _possible_constructor_return$c(this, result);
2821
+ return _possible_constructor_return$b(this, result);
2329
2822
  };
2330
2823
  }
2331
- var _globalThis_litElementHydrateSupport, _globalThis;
2824
+ var _globalThis_litElementHydrateSupport, _globalThis$1;
2332
2825
  var _globalThis1;
2333
2826
  /**
2334
2827
  * @license
2335
2828
  * Copyright 2017 Google LLC
2336
2829
  * SPDX-License-Identifier: BSD-3-Clause
2337
2830
  */ var r$1 = /*#__PURE__*/ function(t) {
2338
- _inherits$c(r, t);
2339
- var _super = _create_super$c(r);
2831
+ _inherits$b(r, t);
2832
+ var _super = _create_super$b(r);
2340
2833
  function r() {
2341
- _class_call_check$w(this, r);
2834
+ _class_call_check$u(this, r);
2342
2835
  var _this;
2343
2836
  _this = _super.call.apply(_super, [
2344
2837
  this
2345
2838
  ].concat(Array.prototype.slice.call(arguments))), _this.renderOptions = {
2346
- host: _assert_this_initialized$c(_this)
2839
+ host: _assert_this_initialized$b(_this)
2347
2840
  }, _this._$Do = void 0;
2348
- return _possible_constructor_return$c(_this);
2841
+ return _possible_constructor_return$b(_this);
2349
2842
  }
2350
- _create_class$v(r, [
2843
+ _create_class$t(r, [
2351
2844
  {
2352
2845
  key: "createRenderRoot",
2353
2846
  value: function createRenderRoot() {
2354
2847
  var _this_renderOptions;
2355
- var _$t = _get$1(_get_prototype_of$c(r.prototype), "createRenderRoot", this).call(this);
2848
+ var _$t = _get$1(_get_prototype_of$b(r.prototype), "createRenderRoot", this).call(this);
2356
2849
  var _renderBefore;
2357
2850
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
2358
2851
  }
@@ -2361,21 +2854,21 @@ var _globalThis1;
2361
2854
  key: "update",
2362
2855
  value: function update(t) {
2363
2856
  var s = this.render();
2364
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get$1(_get_prototype_of$c(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
2857
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get$1(_get_prototype_of$b(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
2365
2858
  }
2366
2859
  },
2367
2860
  {
2368
2861
  key: "connectedCallback",
2369
2862
  value: function connectedCallback() {
2370
2863
  var _this__$Do;
2371
- _get$1(_get_prototype_of$c(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
2864
+ _get$1(_get_prototype_of$b(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
2372
2865
  }
2373
2866
  },
2374
2867
  {
2375
2868
  key: "disconnectedCallback",
2376
2869
  value: function disconnectedCallback() {
2377
2870
  var _this__$Do;
2378
- _get$1(_get_prototype_of$c(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
2871
+ _get$1(_get_prototype_of$b(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
2379
2872
  }
2380
2873
  },
2381
2874
  {
@@ -2387,7 +2880,7 @@ var _globalThis1;
2387
2880
  ]);
2388
2881
  return r;
2389
2882
  }(b);
2390
- r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
2883
+ r$1._$litElement$ = !0, r$1["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis$1 = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis$1, {
2391
2884
  LitElement: r$1
2392
2885
  });
2393
2886
  var i$4 = globalThis.litElementPolyfillSupport;
@@ -2414,499 +2907,6 @@ var _litElementVersions;
2414
2907
  changedProperties: o._$AL
2415
2908
  };
2416
2909
 
2417
- /**
2418
- * @license
2419
- * Copyright 2023 Google LLC
2420
- * SPDX-License-Identifier: BSD-3-Clause
2421
- */ /**
2422
- * Map of ARIAMixin properties to attributes
2423
- */ function _class_call_check$v(instance, Constructor) {
2424
- if (!(instance instanceof Constructor)) {
2425
- throw new TypeError("Cannot call a class as a function");
2426
- }
2427
- }
2428
- function _defineProperties$u(target, props) {
2429
- for(var i = 0; i < props.length; i++){
2430
- var descriptor = props[i];
2431
- descriptor.enumerable = descriptor.enumerable || false;
2432
- descriptor.configurable = true;
2433
- if ("value" in descriptor) descriptor.writable = true;
2434
- Object.defineProperty(target, descriptor.key, descriptor);
2435
- }
2436
- }
2437
- function _create_class$u(Constructor, protoProps, staticProps) {
2438
- if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
2439
- if (staticProps) _defineProperties$u(Constructor, staticProps);
2440
- return Constructor;
2441
- }
2442
- var ariaMixinAttributes = {
2443
- ariaAtomic: "aria-atomic",
2444
- ariaAutoComplete: "aria-autocomplete",
2445
- ariaBrailleLabel: "aria-braillelabel",
2446
- ariaBrailleRoleDescription: "aria-brailleroledescription",
2447
- ariaBusy: "aria-busy",
2448
- ariaChecked: "aria-checked",
2449
- ariaColCount: "aria-colcount",
2450
- ariaColIndex: "aria-colindex",
2451
- ariaColSpan: "aria-colspan",
2452
- ariaCurrent: "aria-current",
2453
- ariaDescription: "aria-description",
2454
- ariaDisabled: "aria-disabled",
2455
- ariaExpanded: "aria-expanded",
2456
- ariaHasPopup: "aria-haspopup",
2457
- ariaHidden: "aria-hidden",
2458
- ariaInvalid: "aria-invalid",
2459
- ariaKeyShortcuts: "aria-keyshortcuts",
2460
- ariaLabel: "aria-label",
2461
- ariaLevel: "aria-level",
2462
- ariaLive: "aria-live",
2463
- ariaModal: "aria-modal",
2464
- ariaMultiLine: "aria-multiline",
2465
- ariaMultiSelectable: "aria-multiselectable",
2466
- ariaOrientation: "aria-orientation",
2467
- ariaPlaceholder: "aria-placeholder",
2468
- ariaPosInSet: "aria-posinset",
2469
- ariaPressed: "aria-pressed",
2470
- ariaReadOnly: "aria-readonly",
2471
- ariaRequired: "aria-required",
2472
- ariaRoleDescription: "aria-roledescription",
2473
- ariaRowCount: "aria-rowcount",
2474
- ariaRowIndex: "aria-rowindex",
2475
- ariaRowSpan: "aria-rowspan",
2476
- ariaSelected: "aria-selected",
2477
- ariaSetSize: "aria-setsize",
2478
- ariaSort: "aria-sort",
2479
- ariaValueMax: "aria-valuemax",
2480
- ariaValueMin: "aria-valuemin",
2481
- ariaValueNow: "aria-valuenow",
2482
- ariaValueText: "aria-valuetext",
2483
- role: "role"
2484
- };
2485
- // Shim the global element internals object
2486
- // Methods should be fine as noops and properties can generally
2487
- // be while on the server.
2488
- var ElementInternalsShim = /*#__PURE__*/ function() {
2489
- function ElementInternals(_host) {
2490
- _class_call_check$v(this, ElementInternals);
2491
- this.ariaAtomic = "";
2492
- this.ariaAutoComplete = "";
2493
- this.ariaBrailleLabel = "";
2494
- this.ariaBrailleRoleDescription = "";
2495
- this.ariaBusy = "";
2496
- this.ariaChecked = "";
2497
- this.ariaColCount = "";
2498
- this.ariaColIndex = "";
2499
- this.ariaColSpan = "";
2500
- this.ariaCurrent = "";
2501
- this.ariaDescription = "";
2502
- this.ariaDisabled = "";
2503
- this.ariaExpanded = "";
2504
- this.ariaHasPopup = "";
2505
- this.ariaHidden = "";
2506
- this.ariaInvalid = "";
2507
- this.ariaKeyShortcuts = "";
2508
- this.ariaLabel = "";
2509
- this.ariaLevel = "";
2510
- this.ariaLive = "";
2511
- this.ariaModal = "";
2512
- this.ariaMultiLine = "";
2513
- this.ariaMultiSelectable = "";
2514
- this.ariaOrientation = "";
2515
- this.ariaPlaceholder = "";
2516
- this.ariaPosInSet = "";
2517
- this.ariaPressed = "";
2518
- this.ariaReadOnly = "";
2519
- this.ariaRequired = "";
2520
- this.ariaRoleDescription = "";
2521
- this.ariaRowCount = "";
2522
- this.ariaRowIndex = "";
2523
- this.ariaRowSpan = "";
2524
- this.ariaSelected = "";
2525
- this.ariaSetSize = "";
2526
- this.ariaSort = "";
2527
- this.ariaValueMax = "";
2528
- this.ariaValueMin = "";
2529
- this.ariaValueNow = "";
2530
- this.ariaValueText = "";
2531
- this.role = "";
2532
- this.form = null;
2533
- this.labels = [];
2534
- this.states = new Set();
2535
- this.validationMessage = "";
2536
- this.validity = {};
2537
- this.willValidate = true;
2538
- this.__host = _host;
2539
- }
2540
- _create_class$u(ElementInternals, [
2541
- {
2542
- key: "shadowRoot",
2543
- get: function get() {
2544
- // Grab the shadow root instance from the Element shim
2545
- // to ensure that the shadow root is always available
2546
- // to the internals instance even if the mode is 'closed'
2547
- return this.__host.__shadowRoot;
2548
- }
2549
- },
2550
- {
2551
- key: "checkValidity",
2552
- value: function checkValidity() {
2553
- // TODO(augustjk) Consider actually implementing logic.
2554
- // See https://github.com/lit/lit/issues/3740
2555
- console.warn("`ElementInternals.checkValidity()` was called on the server." + "This method always returns true.");
2556
- return true;
2557
- }
2558
- },
2559
- {
2560
- key: "reportValidity",
2561
- value: function reportValidity() {
2562
- return true;
2563
- }
2564
- },
2565
- {
2566
- key: "setFormValue",
2567
- value: function setFormValue() {}
2568
- },
2569
- {
2570
- key: "setValidity",
2571
- value: function setValidity() {}
2572
- }
2573
- ]);
2574
- return ElementInternals;
2575
- }();
2576
- var HYDRATE_INTERNALS_ATTR_PREFIX = "hydrate-internals-";
2577
-
2578
- /**
2579
- * @license
2580
- * Copyright 2019 Google LLC
2581
- * SPDX-License-Identifier: BSD-3-Clause
2582
- */ function _array_like_to_array$m(arr, len) {
2583
- if (len == null || len > arr.length) len = arr.length;
2584
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2585
- return arr2;
2586
- }
2587
- function _array_with_holes$g(arr) {
2588
- if (Array.isArray(arr)) return arr;
2589
- }
2590
- function _assert_this_initialized$b(self) {
2591
- if (self === void 0) {
2592
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2593
- }
2594
- return self;
2595
- }
2596
- function _class_call_check$u(instance, Constructor) {
2597
- if (!(instance instanceof Constructor)) {
2598
- throw new TypeError("Cannot call a class as a function");
2599
- }
2600
- }
2601
- function _defineProperties$t(target, props) {
2602
- for(var i = 0; i < props.length; i++){
2603
- var descriptor = props[i];
2604
- descriptor.enumerable = descriptor.enumerable || false;
2605
- descriptor.configurable = true;
2606
- if ("value" in descriptor) descriptor.writable = true;
2607
- Object.defineProperty(target, descriptor.key, descriptor);
2608
- }
2609
- }
2610
- function _create_class$t(Constructor, protoProps, staticProps) {
2611
- if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
2612
- if (staticProps) _defineProperties$t(Constructor, staticProps);
2613
- return Constructor;
2614
- }
2615
- function _get_prototype_of$b(o) {
2616
- _get_prototype_of$b = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
2617
- return o.__proto__ || Object.getPrototypeOf(o);
2618
- };
2619
- return _get_prototype_of$b(o);
2620
- }
2621
- function _inherits$b(subClass, superClass) {
2622
- if (typeof superClass !== "function" && superClass !== null) {
2623
- throw new TypeError("Super expression must either be null or a function");
2624
- }
2625
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2626
- constructor: {
2627
- value: subClass,
2628
- writable: true,
2629
- configurable: true
2630
- }
2631
- });
2632
- if (superClass) _set_prototype_of$b(subClass, superClass);
2633
- }
2634
- function _iterable_to_array_limit$g(arr, i) {
2635
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2636
- if (_i == null) return;
2637
- var _arr = [];
2638
- var _n = true;
2639
- var _d = false;
2640
- var _s, _e;
2641
- try {
2642
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
2643
- _arr.push(_s.value);
2644
- if (i && _arr.length === i) break;
2645
- }
2646
- } catch (err) {
2647
- _d = true;
2648
- _e = err;
2649
- } finally{
2650
- try {
2651
- if (!_n && _i["return"] != null) _i["return"]();
2652
- } finally{
2653
- if (_d) throw _e;
2654
- }
2655
- }
2656
- return _arr;
2657
- }
2658
- function _non_iterable_rest$g() {
2659
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2660
- }
2661
- function _possible_constructor_return$b(self, call) {
2662
- if (call && (_type_of$f(call) === "object" || typeof call === "function")) {
2663
- return call;
2664
- }
2665
- return _assert_this_initialized$b(self);
2666
- }
2667
- function _set_prototype_of$b(o, p) {
2668
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2669
- o.__proto__ = p;
2670
- return o;
2671
- };
2672
- return _set_prototype_of$b(o, p);
2673
- }
2674
- function _sliced_to_array$g(arr, i) {
2675
- return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$g();
2676
- }
2677
- function _type_of$f(obj) {
2678
- "@swc/helpers - typeof";
2679
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
2680
- }
2681
- function _unsupported_iterable_to_array$m(o, minLen) {
2682
- if (!o) return;
2683
- if (typeof o === "string") return _array_like_to_array$m(o, minLen);
2684
- var n = Object.prototype.toString.call(o).slice(8, -1);
2685
- if (n === "Object" && o.constructor) n = o.constructor.name;
2686
- if (n === "Map" || n === "Set") return Array.from(n);
2687
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
2688
- }
2689
- function _is_native_reflect_construct$b() {
2690
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
2691
- if (Reflect.construct.sham) return false;
2692
- if (typeof Proxy === "function") return true;
2693
- try {
2694
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2695
- return true;
2696
- } catch (e) {
2697
- return false;
2698
- }
2699
- }
2700
- function _create_super$b(Derived) {
2701
- var hasNativeReflectConstruct = _is_native_reflect_construct$b();
2702
- return function _createSuperInternal() {
2703
- var Super = _get_prototype_of$b(Derived), result;
2704
- if (hasNativeReflectConstruct) {
2705
- var NewTarget = _get_prototype_of$b(this).constructor;
2706
- result = Reflect.construct(Super, arguments, NewTarget);
2707
- } else {
2708
- result = Super.apply(this, arguments);
2709
- }
2710
- return _possible_constructor_return$b(this, result);
2711
- };
2712
- }
2713
- var attributes = new WeakMap();
2714
- var attributesForElement = function(element) {
2715
- var attrs = attributes.get(element);
2716
- if (attrs === undefined) {
2717
- attributes.set(element, attrs = new Map());
2718
- }
2719
- return attrs;
2720
- };
2721
- // The typings around the exports below are a little funky:
2722
- //
2723
- // 1. We want the `name` of the shim classes to match the real ones at runtime,
2724
- // hence e.g. `class Element`.
2725
- // 2. We can't shadow the global types with a simple class declaration, because
2726
- // then we can't reference the global types for casting, hence e.g.
2727
- // `const ElementShim = class Element`.
2728
- // 3. We want to export the classes typed as the real ones, hence e.g.
2729
- // `const ElementShimWithRealType = ElementShim as object as typeof Element;`.
2730
- // 4. We want the exported names to match the real ones, hence e.g.
2731
- // `export {ElementShimWithRealType as Element}`.
2732
- var ElementShim = /*#__PURE__*/ function() {
2733
- function Element() {
2734
- _class_call_check$u(this, Element);
2735
- this.__shadowRootMode = null;
2736
- this.__shadowRoot = null;
2737
- this.__internals = null;
2738
- }
2739
- _create_class$t(Element, [
2740
- {
2741
- key: "attributes",
2742
- get: function get() {
2743
- return Array.from(attributesForElement(this)).map(function(param) {
2744
- var _param = _sliced_to_array$g(param, 2), name = _param[0], value = _param[1];
2745
- return {
2746
- name: name,
2747
- value: value
2748
- };
2749
- });
2750
- }
2751
- },
2752
- {
2753
- key: "shadowRoot",
2754
- get: function get() {
2755
- if (this.__shadowRootMode === "closed") {
2756
- return null;
2757
- }
2758
- return this.__shadowRoot;
2759
- }
2760
- },
2761
- {
2762
- key: "localName",
2763
- get: function get() {
2764
- return this.constructor.__localName;
2765
- }
2766
- },
2767
- {
2768
- key: "tagName",
2769
- get: function get() {
2770
- var _this_localName;
2771
- return (_this_localName = this.localName) === null || _this_localName === void 0 ? void 0 : _this_localName.toUpperCase();
2772
- }
2773
- },
2774
- {
2775
- key: "setAttribute",
2776
- value: function setAttribute(name, value) {
2777
- // Emulate browser behavior that silently casts all values to string. E.g.
2778
- // `42` becomes `"42"` and `{}` becomes `"[object Object]""`.
2779
- attributesForElement(this).set(name, String(value));
2780
- }
2781
- },
2782
- {
2783
- key: "removeAttribute",
2784
- value: function removeAttribute(name) {
2785
- attributesForElement(this).delete(name);
2786
- }
2787
- },
2788
- {
2789
- key: "toggleAttribute",
2790
- value: function toggleAttribute(name, force) {
2791
- // Steps reference https://dom.spec.whatwg.org/#dom-element-toggleattribute
2792
- if (this.hasAttribute(name)) {
2793
- // Step 5
2794
- if (force === undefined || !force) {
2795
- this.removeAttribute(name);
2796
- return false;
2797
- }
2798
- } else {
2799
- // Step 4
2800
- if (force === undefined || force) {
2801
- // Step 4.1
2802
- this.setAttribute(name, "");
2803
- return true;
2804
- } else {
2805
- // Step 4.2
2806
- return false;
2807
- }
2808
- }
2809
- // Step 6
2810
- return true;
2811
- }
2812
- },
2813
- {
2814
- key: "hasAttribute",
2815
- value: function hasAttribute(name) {
2816
- return attributesForElement(this).has(name);
2817
- }
2818
- },
2819
- {
2820
- key: "attachShadow",
2821
- value: function attachShadow(init) {
2822
- var shadowRoot = {
2823
- host: this
2824
- };
2825
- this.__shadowRootMode = init.mode;
2826
- if (init && init.mode === "open") {
2827
- this.__shadowRoot = shadowRoot;
2828
- }
2829
- return shadowRoot;
2830
- }
2831
- },
2832
- {
2833
- key: "attachInternals",
2834
- value: function attachInternals() {
2835
- if (this.__internals !== null) {
2836
- throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': " + "ElementInternals for the specified element was already attached.");
2837
- }
2838
- var internals = new ElementInternalsShim(this);
2839
- this.__internals = internals;
2840
- return internals;
2841
- }
2842
- },
2843
- {
2844
- key: "getAttribute",
2845
- value: function getAttribute(name) {
2846
- var value = attributesForElement(this).get(name);
2847
- return value !== null && value !== void 0 ? value : null;
2848
- }
2849
- }
2850
- ]);
2851
- return Element;
2852
- }();
2853
- var HTMLElementShim = /*#__PURE__*/ function(ElementShim) {
2854
- _inherits$b(HTMLElement, ElementShim);
2855
- var _super = _create_super$b(HTMLElement);
2856
- function HTMLElement() {
2857
- _class_call_check$u(this, HTMLElement);
2858
- return _super.apply(this, arguments);
2859
- }
2860
- return HTMLElement;
2861
- }(ElementShim);
2862
- var HTMLElementShimWithRealType = HTMLElementShim;
2863
- var CustomElementRegistryShim = /*#__PURE__*/ function() {
2864
- function CustomElementRegistry() {
2865
- _class_call_check$u(this, CustomElementRegistry);
2866
- this.__definitions = new Map();
2867
- }
2868
- _create_class$t(CustomElementRegistry, [
2869
- {
2870
- key: "define",
2871
- value: function define(name, ctor) {
2872
- if (this.__definitions.has(name)) {
2873
- if (process.env.NODE_ENV === "development") {
2874
- console.warn("'CustomElementRegistry' already has \"".concat(name, '" defined. ') + "This may have been caused by live reload or hot module " + "replacement in which case it can be safely ignored.\n" + "Make sure to test your application with a production build as " + "repeat registrations will throw in production.");
2875
- } else {
2876
- throw new Error("Failed to execute 'define' on 'CustomElementRegistry': " + 'the name "'.concat(name, '" has already been used with this registry'));
2877
- }
2878
- }
2879
- // Provide tagName and localName for the component.
2880
- ctor.__localName = name;
2881
- var _ctor_observedAttributes;
2882
- this.__definitions.set(name, {
2883
- ctor: ctor,
2884
- // Note it's important we read `observedAttributes` in case it is a getter
2885
- // with side-effects, as is the case in Lit, where it triggers class
2886
- // finalization.
2887
- //
2888
- // TODO(aomarks) To be spec compliant, we should also capture the
2889
- // registration-time lifecycle methods like `connectedCallback`. For them
2890
- // to be actually accessible to e.g. the Lit SSR element renderer, though,
2891
- // we'd need to introduce a new API for accessing them (since `get` only
2892
- // returns the constructor).
2893
- observedAttributes: (_ctor_observedAttributes = ctor.observedAttributes) !== null && _ctor_observedAttributes !== void 0 ? _ctor_observedAttributes : []
2894
- });
2895
- }
2896
- },
2897
- {
2898
- key: "get",
2899
- value: function get(name) {
2900
- var definition = this.__definitions.get(name);
2901
- return definition === null || definition === void 0 ? void 0 : definition.ctor;
2902
- }
2903
- }
2904
- ]);
2905
- return CustomElementRegistry;
2906
- }();
2907
- var CustomElementRegistryShimWithRealType = CustomElementRegistryShim;
2908
- new CustomElementRegistryShimWithRealType();
2909
-
2910
2910
  /**
2911
2911
  * @license
2912
2912
  * Copyright 2017 Google LLC
@@ -40968,14 +40968,14 @@ function indent(str, spaces) {
40968
40968
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
40969
40969
  // match is required
40970
40970
  if (!match) {
40971
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
40971
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
40972
40972
  v: nextMatch1
40973
40973
  };
40974
40974
  }
40975
40975
  var token = match.token, offset = match.offset;
40976
40976
  i1 += offset;
40977
40977
  if (token === " ") {
40978
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
40978
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
40979
40979
  }
40980
40980
  tokens1 = _to_consumable_array$1(tokens1).concat([
40981
40981
  token
@@ -40994,7 +40994,7 @@ function indent(str, spaces) {
40994
40994
  if (contextKeys.some(function(el) {
40995
40995
  return el.startsWith(name);
40996
40996
  })) {
40997
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
40997
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
40998
40998
  }
40999
40999
  if (dateTimeIdentifiers.some(function(el) {
41000
41000
  return el === name;
@@ -41013,9 +41013,9 @@ function indent(str, spaces) {
41013
41013
  if (dateTimeIdentifiers.some(function(el) {
41014
41014
  return el.startsWith(name);
41015
41015
  })) {
41016
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
41016
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
41017
41017
  }
41018
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
41018
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
41019
41019
  v: nextMatch1
41020
41020
  };
41021
41021
  };
@@ -45022,9 +45022,9 @@ const preparePinsSettings = async (settings, context)=>{
45022
45022
  });
45023
45023
  };
45024
45024
 
45025
- var _global;
45025
+ var _globalThis;
45026
45026
  var _HTMLElement;
45027
- (_HTMLElement = (_global = global).HTMLElement) != null ? _HTMLElement : _global.HTMLElement = HTMLElementShimWithRealType;
45027
+ (_HTMLElement = (_globalThis = globalThis).HTMLElement) != null ? _HTMLElement : _globalThis.HTMLElement = HTMLElementShimWithRealType;
45028
45028
  let WebService = class WebService {
45029
45029
  filteredWebPinsSettings(item, path) {
45030
45030
  if (Array.isArray(item)) {