@triptease/tt-navbar 0.0.78 → 0.0.80
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.
- package/CHANGELOG.md +16 -0
- package/dist/web/Config.js +1 -1
- package/dist/web/Routes.js +1 -1
- package/dist/web/TtNavbar.js +265 -275
- package/dist/web/TtNavbar.js.map +4 -4
- package/dist/web/getInitialNavbarState.js +1 -1
- package/dist/web/global.d.js +1 -1
- package/dist/web/index.js +265 -275
- package/dist/web/index.js.map +4 -4
- package/dist/web/styles.js +1 -1
- package/dist/web/triptease-logo.js +1 -1
- package/dist/web/tt-navbar.js +265 -275
- package/dist/web/tt-navbar.js.map +4 -4
- package/dist/web/urlMappings.js +1 -1
- package/package.json +3 -3
package/dist/web/TtNavbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.80
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -18,44 +18,44 @@ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "a
|
|
|
18
18
|
var s = Symbol();
|
|
19
19
|
var o = /* @__PURE__ */ new WeakMap();
|
|
20
20
|
var n = class {
|
|
21
|
-
constructor(
|
|
21
|
+
constructor(t6, e10, o10) {
|
|
22
22
|
if (this._$cssResult$ = true, o10 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
23
|
-
this.cssText =
|
|
23
|
+
this.cssText = t6, this.t = e10;
|
|
24
24
|
}
|
|
25
25
|
get styleSheet() {
|
|
26
|
-
let
|
|
26
|
+
let t6 = this.o;
|
|
27
27
|
const s5 = this.t;
|
|
28
|
-
if (e && void 0 ===
|
|
28
|
+
if (e && void 0 === t6) {
|
|
29
29
|
const e10 = void 0 !== s5 && 1 === s5.length;
|
|
30
|
-
e10 && (
|
|
30
|
+
e10 && (t6 = o.get(s5)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e10 && o.set(s5, t6));
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return t6;
|
|
33
33
|
}
|
|
34
34
|
toString() {
|
|
35
35
|
return this.cssText;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var r = (
|
|
39
|
-
var i = (
|
|
40
|
-
const o10 = 1 ===
|
|
41
|
-
if (true ===
|
|
42
|
-
if ("number" == typeof
|
|
43
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
44
|
-
})(s5) +
|
|
45
|
-
return new n(o10,
|
|
38
|
+
var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
|
|
39
|
+
var i = (t6, ...e10) => {
|
|
40
|
+
const o10 = 1 === t6.length ? t6[0] : e10.reduce((e11, s5, o11) => e11 + ((t7) => {
|
|
41
|
+
if (true === t7._$cssResult$) return t7.cssText;
|
|
42
|
+
if ("number" == typeof t7) return t7;
|
|
43
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t7 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
44
|
+
})(s5) + t6[o11 + 1], t6[0]);
|
|
45
|
+
return new n(o10, t6, s);
|
|
46
46
|
};
|
|
47
47
|
var S = (s5, o10) => {
|
|
48
|
-
if (e) s5.adoptedStyleSheets = o10.map((
|
|
48
|
+
if (e) s5.adoptedStyleSheets = o10.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet);
|
|
49
49
|
else for (const e10 of o10) {
|
|
50
50
|
const o11 = document.createElement("style"), n5 = t.litNonce;
|
|
51
51
|
void 0 !== n5 && o11.setAttribute("nonce", n5), o11.textContent = e10.cssText, s5.appendChild(o11);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
var c = e ? (
|
|
54
|
+
var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
|
|
55
55
|
let e10 = "";
|
|
56
|
-
for (const s5 of
|
|
56
|
+
for (const s5 of t7.cssRules) e10 += s5.cssText;
|
|
57
57
|
return r(e10);
|
|
58
|
-
})(
|
|
58
|
+
})(t6) : t6;
|
|
59
59
|
|
|
60
60
|
// ../../node_modules/@lit/reactive-element/reactive-element.js
|
|
61
61
|
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
@@ -63,86 +63,86 @@ var a = globalThis;
|
|
|
63
63
|
var c2 = a.trustedTypes;
|
|
64
64
|
var l = c2 ? c2.emptyScript : "";
|
|
65
65
|
var p = a.reactiveElementPolyfillSupport;
|
|
66
|
-
var d = (
|
|
67
|
-
var u = { toAttribute(
|
|
66
|
+
var d = (t6, s5) => t6;
|
|
67
|
+
var u = { toAttribute(t6, s5) {
|
|
68
68
|
switch (s5) {
|
|
69
69
|
case Boolean:
|
|
70
|
-
|
|
70
|
+
t6 = t6 ? l : null;
|
|
71
71
|
break;
|
|
72
72
|
case Object:
|
|
73
73
|
case Array:
|
|
74
|
-
|
|
74
|
+
t6 = null == t6 ? t6 : JSON.stringify(t6);
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
}, fromAttribute(
|
|
78
|
-
let i7 =
|
|
76
|
+
return t6;
|
|
77
|
+
}, fromAttribute(t6, s5) {
|
|
78
|
+
let i7 = t6;
|
|
79
79
|
switch (s5) {
|
|
80
80
|
case Boolean:
|
|
81
|
-
i7 = null !==
|
|
81
|
+
i7 = null !== t6;
|
|
82
82
|
break;
|
|
83
83
|
case Number:
|
|
84
|
-
i7 = null ===
|
|
84
|
+
i7 = null === t6 ? null : Number(t6);
|
|
85
85
|
break;
|
|
86
86
|
case Object:
|
|
87
87
|
case Array:
|
|
88
88
|
try {
|
|
89
|
-
i7 = JSON.parse(
|
|
90
|
-
} catch (
|
|
89
|
+
i7 = JSON.parse(t6);
|
|
90
|
+
} catch (t7) {
|
|
91
91
|
i7 = null;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
return i7;
|
|
95
95
|
} };
|
|
96
|
-
var f = (
|
|
96
|
+
var f = (t6, s5) => !i2(t6, s5);
|
|
97
97
|
var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
|
|
98
98
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
99
99
|
var y = class extends HTMLElement {
|
|
100
|
-
static addInitializer(
|
|
101
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(
|
|
100
|
+
static addInitializer(t6) {
|
|
101
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t6);
|
|
102
102
|
}
|
|
103
103
|
static get observedAttributes() {
|
|
104
104
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
105
105
|
}
|
|
106
|
-
static createProperty(
|
|
107
|
-
if (s5.state && (s5.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(
|
|
108
|
-
const i7 = Symbol(), h3 = this.getPropertyDescriptor(
|
|
109
|
-
void 0 !== h3 && e2(this.prototype,
|
|
106
|
+
static createProperty(t6, s5 = b) {
|
|
107
|
+
if (s5.state && (s5.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s5 = Object.create(s5)).wrapped = true), this.elementProperties.set(t6, s5), !s5.noAccessor) {
|
|
108
|
+
const i7 = Symbol(), h3 = this.getPropertyDescriptor(t6, i7, s5);
|
|
109
|
+
void 0 !== h3 && e2(this.prototype, t6, h3);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
static getPropertyDescriptor(
|
|
113
|
-
const { get: e10, set: r8 } = h(this.prototype,
|
|
112
|
+
static getPropertyDescriptor(t6, s5, i7) {
|
|
113
|
+
const { get: e10, set: r8 } = h(this.prototype, t6) ?? { get() {
|
|
114
114
|
return this[s5];
|
|
115
|
-
}, set(
|
|
116
|
-
this[s5] =
|
|
115
|
+
}, set(t7) {
|
|
116
|
+
this[s5] = t7;
|
|
117
117
|
} };
|
|
118
118
|
return { get: e10, set(s6) {
|
|
119
119
|
const h3 = e10?.call(this);
|
|
120
|
-
r8?.call(this, s6), this.requestUpdate(
|
|
120
|
+
r8?.call(this, s6), this.requestUpdate(t6, h3, i7);
|
|
121
121
|
}, configurable: true, enumerable: true };
|
|
122
122
|
}
|
|
123
|
-
static getPropertyOptions(
|
|
124
|
-
return this.elementProperties.get(
|
|
123
|
+
static getPropertyOptions(t6) {
|
|
124
|
+
return this.elementProperties.get(t6) ?? b;
|
|
125
125
|
}
|
|
126
126
|
static _$Ei() {
|
|
127
127
|
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
128
|
-
const
|
|
129
|
-
|
|
128
|
+
const t6 = n2(this);
|
|
129
|
+
t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
|
|
130
130
|
}
|
|
131
131
|
static finalize() {
|
|
132
132
|
if (this.hasOwnProperty(d("finalized"))) return;
|
|
133
133
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
134
|
-
const
|
|
135
|
-
for (const i7 of s5) this.createProperty(i7,
|
|
134
|
+
const t7 = this.properties, s5 = [...r2(t7), ...o2(t7)];
|
|
135
|
+
for (const i7 of s5) this.createProperty(i7, t7[i7]);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
if (null !==
|
|
139
|
-
const s5 = litPropertyMetadata.get(
|
|
140
|
-
if (void 0 !== s5) for (const [
|
|
137
|
+
const t6 = this[Symbol.metadata];
|
|
138
|
+
if (null !== t6) {
|
|
139
|
+
const s5 = litPropertyMetadata.get(t6);
|
|
140
|
+
if (void 0 !== s5) for (const [t7, i7] of s5) this.elementProperties.set(t7, i7);
|
|
141
141
|
}
|
|
142
142
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
143
|
-
for (const [
|
|
144
|
-
const i7 = this._$Eu(
|
|
145
|
-
void 0 !== i7 && this._$Eh.set(i7,
|
|
143
|
+
for (const [t7, s5] of this.elementProperties) {
|
|
144
|
+
const i7 = this._$Eu(t7, s5);
|
|
145
|
+
void 0 !== i7 && this._$Eh.set(i7, t7);
|
|
146
146
|
}
|
|
147
147
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
148
148
|
}
|
|
@@ -154,76 +154,76 @@ var y = class extends HTMLElement {
|
|
|
154
154
|
} else void 0 !== s5 && i7.push(c(s5));
|
|
155
155
|
return i7;
|
|
156
156
|
}
|
|
157
|
-
static _$Eu(
|
|
157
|
+
static _$Eu(t6, s5) {
|
|
158
158
|
const i7 = s5.attribute;
|
|
159
|
-
return false === i7 ? void 0 : "string" == typeof i7 ? i7 : "string" == typeof
|
|
159
|
+
return false === i7 ? void 0 : "string" == typeof i7 ? i7 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
|
|
160
160
|
}
|
|
161
161
|
constructor() {
|
|
162
162
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
163
163
|
}
|
|
164
164
|
_$Ev() {
|
|
165
|
-
this._$ES = new Promise((
|
|
165
|
+
this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this));
|
|
166
166
|
}
|
|
167
|
-
addController(
|
|
168
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(
|
|
167
|
+
addController(t6) {
|
|
168
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
|
|
169
169
|
}
|
|
170
|
-
removeController(
|
|
171
|
-
this._$EO?.delete(
|
|
170
|
+
removeController(t6) {
|
|
171
|
+
this._$EO?.delete(t6);
|
|
172
172
|
}
|
|
173
173
|
_$E_() {
|
|
174
|
-
const
|
|
175
|
-
for (const i7 of s5.keys()) this.hasOwnProperty(i7) && (
|
|
176
|
-
|
|
174
|
+
const t6 = /* @__PURE__ */ new Map(), s5 = this.constructor.elementProperties;
|
|
175
|
+
for (const i7 of s5.keys()) this.hasOwnProperty(i7) && (t6.set(i7, this[i7]), delete this[i7]);
|
|
176
|
+
t6.size > 0 && (this._$Ep = t6);
|
|
177
177
|
}
|
|
178
178
|
createRenderRoot() {
|
|
179
|
-
const
|
|
180
|
-
return S(
|
|
179
|
+
const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
180
|
+
return S(t6, this.constructor.elementStyles), t6;
|
|
181
181
|
}
|
|
182
182
|
connectedCallback() {
|
|
183
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((
|
|
183
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.());
|
|
184
184
|
}
|
|
185
|
-
enableUpdating(
|
|
185
|
+
enableUpdating(t6) {
|
|
186
186
|
}
|
|
187
187
|
disconnectedCallback() {
|
|
188
|
-
this._$EO?.forEach((
|
|
188
|
+
this._$EO?.forEach((t6) => t6.hostDisconnected?.());
|
|
189
189
|
}
|
|
190
|
-
attributeChangedCallback(
|
|
191
|
-
this._$AK(
|
|
190
|
+
attributeChangedCallback(t6, s5, i7) {
|
|
191
|
+
this._$AK(t6, i7);
|
|
192
192
|
}
|
|
193
|
-
_$ET(
|
|
194
|
-
const i7 = this.constructor.elementProperties.get(
|
|
193
|
+
_$ET(t6, s5) {
|
|
194
|
+
const i7 = this.constructor.elementProperties.get(t6), e10 = this.constructor._$Eu(t6, i7);
|
|
195
195
|
if (void 0 !== e10 && true === i7.reflect) {
|
|
196
196
|
const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s5, i7.type);
|
|
197
|
-
this._$Em =
|
|
197
|
+
this._$Em = t6, null == h3 ? this.removeAttribute(e10) : this.setAttribute(e10, h3), this._$Em = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
_$AK(
|
|
201
|
-
const i7 = this.constructor, e10 = i7._$Eh.get(
|
|
200
|
+
_$AK(t6, s5) {
|
|
201
|
+
const i7 = this.constructor, e10 = i7._$Eh.get(t6);
|
|
202
202
|
if (void 0 !== e10 && this._$Em !== e10) {
|
|
203
|
-
const
|
|
204
|
-
this._$Em = e10, this[e10] = h3.fromAttribute(s5,
|
|
203
|
+
const t7 = i7.getPropertyOptions(e10), h3 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
|
|
204
|
+
this._$Em = e10, this[e10] = h3.fromAttribute(s5, t7.type) ?? this._$Ej?.get(e10) ?? null, this._$Em = null;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
requestUpdate(
|
|
208
|
-
if (void 0 !==
|
|
209
|
-
const e10 = this.constructor, h3 = this[
|
|
210
|
-
if (i7 ?? (i7 = e10.getPropertyOptions(
|
|
211
|
-
this.C(
|
|
207
|
+
requestUpdate(t6, s5, i7) {
|
|
208
|
+
if (void 0 !== t6) {
|
|
209
|
+
const e10 = this.constructor, h3 = this[t6];
|
|
210
|
+
if (i7 ?? (i7 = e10.getPropertyOptions(t6)), !((i7.hasChanged ?? f)(h3, s5) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t6) && !this.hasAttribute(e10._$Eu(t6, i7)))) return;
|
|
211
|
+
this.C(t6, s5, i7);
|
|
212
212
|
}
|
|
213
213
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
214
214
|
}
|
|
215
|
-
C(
|
|
216
|
-
i7 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(
|
|
215
|
+
C(t6, s5, { useDefault: i7, reflect: e10, wrapped: h3 }, r8) {
|
|
216
|
+
i7 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t6) && (this._$Ej.set(t6, r8 ?? s5 ?? this[t6]), true !== h3 || void 0 !== r8) || (this._$AL.has(t6) || (this.hasUpdated || i7 || (s5 = void 0), this._$AL.set(t6, s5)), true === e10 && this._$Em !== t6 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t6));
|
|
217
217
|
}
|
|
218
218
|
async _$EP() {
|
|
219
219
|
this.isUpdatePending = true;
|
|
220
220
|
try {
|
|
221
221
|
await this._$ES;
|
|
222
|
-
} catch (
|
|
223
|
-
Promise.reject(
|
|
222
|
+
} catch (t7) {
|
|
223
|
+
Promise.reject(t7);
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
return null !=
|
|
225
|
+
const t6 = this.scheduleUpdate();
|
|
226
|
+
return null != t6 && await t6, !this.isUpdatePending;
|
|
227
227
|
}
|
|
228
228
|
scheduleUpdate() {
|
|
229
229
|
return this.performUpdate();
|
|
@@ -232,28 +232,28 @@ var y = class extends HTMLElement {
|
|
|
232
232
|
if (!this.isUpdatePending) return;
|
|
233
233
|
if (!this.hasUpdated) {
|
|
234
234
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
235
|
-
for (const [
|
|
235
|
+
for (const [t8, s6] of this._$Ep) this[t8] = s6;
|
|
236
236
|
this._$Ep = void 0;
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
if (
|
|
240
|
-
const { wrapped:
|
|
241
|
-
true !==
|
|
238
|
+
const t7 = this.constructor.elementProperties;
|
|
239
|
+
if (t7.size > 0) for (const [s6, i7] of t7) {
|
|
240
|
+
const { wrapped: t8 } = i7, e10 = this[s6];
|
|
241
|
+
true !== t8 || this._$AL.has(s6) || void 0 === e10 || this.C(s6, void 0, i7, e10);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
let
|
|
244
|
+
let t6 = false;
|
|
245
245
|
const s5 = this._$AL;
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
t6 = this.shouldUpdate(s5), t6 ? (this.willUpdate(s5), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s5)) : this._$EM();
|
|
248
248
|
} catch (s6) {
|
|
249
|
-
throw
|
|
249
|
+
throw t6 = false, this._$EM(), s6;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
t6 && this._$AE(s5);
|
|
252
252
|
}
|
|
253
|
-
willUpdate(
|
|
253
|
+
willUpdate(t6) {
|
|
254
254
|
}
|
|
255
|
-
_$AE(
|
|
256
|
-
this._$EO?.forEach((
|
|
255
|
+
_$AE(t6) {
|
|
256
|
+
this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
|
|
257
257
|
}
|
|
258
258
|
_$EM() {
|
|
259
259
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -264,15 +264,15 @@ var y = class extends HTMLElement {
|
|
|
264
264
|
getUpdateComplete() {
|
|
265
265
|
return this._$ES;
|
|
266
266
|
}
|
|
267
|
-
shouldUpdate(
|
|
267
|
+
shouldUpdate(t6) {
|
|
268
268
|
return true;
|
|
269
269
|
}
|
|
270
|
-
update(
|
|
271
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((
|
|
270
|
+
update(t6) {
|
|
271
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t7) => this._$ET(t7, this[t7]))), this._$EM();
|
|
272
272
|
}
|
|
273
|
-
updated(
|
|
273
|
+
updated(t6) {
|
|
274
274
|
}
|
|
275
|
-
firstUpdated(
|
|
275
|
+
firstUpdated(t6) {
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.0");
|
|
@@ -280,16 +280,16 @@ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProper
|
|
|
280
280
|
// ../../node_modules/lit-html/lit-html.js
|
|
281
281
|
var t2 = globalThis;
|
|
282
282
|
var i3 = t2.trustedTypes;
|
|
283
|
-
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (
|
|
283
|
+
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
|
|
284
284
|
var e3 = "$lit$";
|
|
285
285
|
var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
286
286
|
var o3 = "?" + h2;
|
|
287
287
|
var n3 = `<${o3}>`;
|
|
288
288
|
var r3 = document;
|
|
289
289
|
var l2 = () => r3.createComment("");
|
|
290
|
-
var c3 = (
|
|
290
|
+
var c3 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
|
|
291
291
|
var a2 = Array.isArray;
|
|
292
|
-
var u2 = (
|
|
292
|
+
var u2 = (t6) => a2(t6) || "function" == typeof t6?.[Symbol.iterator];
|
|
293
293
|
var d2 = "[ \n\f\r]";
|
|
294
294
|
var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
295
295
|
var v = /-->/g;
|
|
@@ -299,7 +299,7 @@ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
|
|
|
299
299
|
var p2 = /'/g;
|
|
300
300
|
var g = /"/g;
|
|
301
301
|
var $ = /^(?:script|style|textarea|title)$/i;
|
|
302
|
-
var y2 = (
|
|
302
|
+
var y2 = (t6) => (i7, ...s5) => ({ _$litType$: t6, strings: i7, values: s5 });
|
|
303
303
|
var x = y2(1);
|
|
304
304
|
var b2 = y2(2);
|
|
305
305
|
var w = y2(3);
|
|
@@ -307,68 +307,68 @@ var T = Symbol.for("lit-noChange");
|
|
|
307
307
|
var E = Symbol.for("lit-nothing");
|
|
308
308
|
var A = /* @__PURE__ */ new WeakMap();
|
|
309
309
|
var C = r3.createTreeWalker(r3, 129);
|
|
310
|
-
function P(
|
|
311
|
-
if (!a2(
|
|
310
|
+
function P(t6, i7) {
|
|
311
|
+
if (!a2(t6) || !t6.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
312
312
|
return void 0 !== s2 ? s2.createHTML(i7) : i7;
|
|
313
313
|
}
|
|
314
|
-
var V = (
|
|
315
|
-
const s5 =
|
|
314
|
+
var V = (t6, i7) => {
|
|
315
|
+
const s5 = t6.length - 1, o10 = [];
|
|
316
316
|
let r8, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c5 = f2;
|
|
317
317
|
for (let i8 = 0; i8 < s5; i8++) {
|
|
318
|
-
const s6 =
|
|
318
|
+
const s6 = t6[i8];
|
|
319
319
|
let a3, u5, d3 = -1, y3 = 0;
|
|
320
320
|
for (; y3 < s6.length && (c5.lastIndex = y3, u5 = c5.exec(s6), null !== u5); ) y3 = c5.lastIndex, c5 === f2 ? "!--" === u5[1] ? c5 = v : void 0 !== u5[1] ? c5 = _ : void 0 !== u5[2] ? ($.test(u5[2]) && (r8 = RegExp("</" + u5[2], "g")), c5 = m) : void 0 !== u5[3] && (c5 = m) : c5 === m ? ">" === u5[0] ? (c5 = r8 ?? f2, d3 = -1) : void 0 === u5[1] ? d3 = -2 : (d3 = c5.lastIndex - u5[2].length, a3 = u5[1], c5 = void 0 === u5[3] ? m : '"' === u5[3] ? g : p2) : c5 === g || c5 === p2 ? c5 = m : c5 === v || c5 === _ ? c5 = f2 : (c5 = m, r8 = void 0);
|
|
321
|
-
const x2 = c5 === m &&
|
|
321
|
+
const x2 = c5 === m && t6[i8 + 1].startsWith("/>") ? " " : "";
|
|
322
322
|
l3 += c5 === f2 ? s6 + n3 : d3 >= 0 ? (o10.push(a3), s6.slice(0, d3) + e3 + s6.slice(d3) + h2 + x2) : s6 + h2 + (-2 === d3 ? i8 : x2);
|
|
323
323
|
}
|
|
324
|
-
return [P(
|
|
324
|
+
return [P(t6, l3 + (t6[s5] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), o10];
|
|
325
325
|
};
|
|
326
326
|
var N = class _N {
|
|
327
|
-
constructor({ strings:
|
|
327
|
+
constructor({ strings: t6, _$litType$: s5 }, n5) {
|
|
328
328
|
let r8;
|
|
329
329
|
this.parts = [];
|
|
330
330
|
let c5 = 0, a3 = 0;
|
|
331
|
-
const u5 =
|
|
331
|
+
const u5 = t6.length - 1, d3 = this.parts, [f3, v3] = V(t6, s5);
|
|
332
332
|
if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s5 || 3 === s5) {
|
|
333
|
-
const
|
|
334
|
-
|
|
333
|
+
const t7 = this.el.content.firstChild;
|
|
334
|
+
t7.replaceWith(...t7.childNodes);
|
|
335
335
|
}
|
|
336
336
|
for (; null !== (r8 = C.nextNode()) && d3.length < u5; ) {
|
|
337
337
|
if (1 === r8.nodeType) {
|
|
338
|
-
if (r8.hasAttributes()) for (const
|
|
339
|
-
const i7 = v3[a3++], s6 = r8.getAttribute(
|
|
340
|
-
d3.push({ type: 1, index: c5, name: e10[2], strings: s6, ctor: "." === e10[1] ? H : "?" === e10[1] ? I : "@" === e10[1] ? L : k }), r8.removeAttribute(
|
|
341
|
-
} else
|
|
338
|
+
if (r8.hasAttributes()) for (const t7 of r8.getAttributeNames()) if (t7.endsWith(e3)) {
|
|
339
|
+
const i7 = v3[a3++], s6 = r8.getAttribute(t7).split(h2), e10 = /([.?@])?(.*)/.exec(i7);
|
|
340
|
+
d3.push({ type: 1, index: c5, name: e10[2], strings: s6, ctor: "." === e10[1] ? H : "?" === e10[1] ? I : "@" === e10[1] ? L : k }), r8.removeAttribute(t7);
|
|
341
|
+
} else t7.startsWith(h2) && (d3.push({ type: 6, index: c5 }), r8.removeAttribute(t7));
|
|
342
342
|
if ($.test(r8.tagName)) {
|
|
343
|
-
const
|
|
343
|
+
const t7 = r8.textContent.split(h2), s6 = t7.length - 1;
|
|
344
344
|
if (s6 > 0) {
|
|
345
345
|
r8.textContent = i3 ? i3.emptyScript : "";
|
|
346
|
-
for (let i7 = 0; i7 < s6; i7++) r8.append(
|
|
347
|
-
r8.append(
|
|
346
|
+
for (let i7 = 0; i7 < s6; i7++) r8.append(t7[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c5 });
|
|
347
|
+
r8.append(t7[s6], l2());
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
} else if (8 === r8.nodeType) if (r8.data === o3) d3.push({ type: 2, index: c5 });
|
|
351
351
|
else {
|
|
352
|
-
let
|
|
353
|
-
for (; -1 !== (
|
|
352
|
+
let t7 = -1;
|
|
353
|
+
for (; -1 !== (t7 = r8.data.indexOf(h2, t7 + 1)); ) d3.push({ type: 7, index: c5 }), t7 += h2.length - 1;
|
|
354
354
|
}
|
|
355
355
|
c5++;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
static createElement(
|
|
358
|
+
static createElement(t6, i7) {
|
|
359
359
|
const s5 = r3.createElement("template");
|
|
360
|
-
return s5.innerHTML =
|
|
360
|
+
return s5.innerHTML = t6, s5;
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
|
-
function S2(
|
|
363
|
+
function S2(t6, i7, s5 = t6, e10) {
|
|
364
364
|
if (i7 === T) return i7;
|
|
365
365
|
let h3 = void 0 !== e10 ? s5._$Co?.[e10] : s5._$Cl;
|
|
366
366
|
const o10 = c3(i7) ? void 0 : i7._$litDirective$;
|
|
367
|
-
return h3?.constructor !== o10 && (h3?._$AO?.(false), void 0 === o10 ? h3 = void 0 : (h3 = new o10(
|
|
367
|
+
return h3?.constructor !== o10 && (h3?._$AO?.(false), void 0 === o10 ? h3 = void 0 : (h3 = new o10(t6), h3._$AT(t6, s5, e10)), void 0 !== e10 ? (s5._$Co ?? (s5._$Co = []))[e10] = h3 : s5._$Cl = h3), void 0 !== h3 && (i7 = S2(t6, h3._$AS(t6, i7.values), h3, e10)), i7;
|
|
368
368
|
}
|
|
369
369
|
var M = class {
|
|
370
|
-
constructor(
|
|
371
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
370
|
+
constructor(t6, i7) {
|
|
371
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i7;
|
|
372
372
|
}
|
|
373
373
|
get parentNode() {
|
|
374
374
|
return this._$AM.parentNode;
|
|
@@ -376,35 +376,35 @@ var M = class {
|
|
|
376
376
|
get _$AU() {
|
|
377
377
|
return this._$AM._$AU;
|
|
378
378
|
}
|
|
379
|
-
u(
|
|
380
|
-
const { el: { content: i7 }, parts: s5 } = this._$AD, e10 = (
|
|
379
|
+
u(t6) {
|
|
380
|
+
const { el: { content: i7 }, parts: s5 } = this._$AD, e10 = (t6?.creationScope ?? r3).importNode(i7, true);
|
|
381
381
|
C.currentNode = e10;
|
|
382
382
|
let h3 = C.nextNode(), o10 = 0, n5 = 0, l3 = s5[0];
|
|
383
383
|
for (; void 0 !== l3; ) {
|
|
384
384
|
if (o10 === l3.index) {
|
|
385
385
|
let i8;
|
|
386
|
-
2 === l3.type ? i8 = new R(h3, h3.nextSibling, this,
|
|
386
|
+
2 === l3.type ? i8 = new R(h3, h3.nextSibling, this, t6) : 1 === l3.type ? i8 = new l3.ctor(h3, l3.name, l3.strings, this, t6) : 6 === l3.type && (i8 = new z(h3, this, t6)), this._$AV.push(i8), l3 = s5[++n5];
|
|
387
387
|
}
|
|
388
388
|
o10 !== l3?.index && (h3 = C.nextNode(), o10++);
|
|
389
389
|
}
|
|
390
390
|
return C.currentNode = r3, e10;
|
|
391
391
|
}
|
|
392
|
-
p(
|
|
392
|
+
p(t6) {
|
|
393
393
|
let i7 = 0;
|
|
394
|
-
for (const s5 of this._$AV) void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(
|
|
394
|
+
for (const s5 of this._$AV) void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t6, s5, i7), i7 += s5.strings.length - 2) : s5._$AI(t6[i7])), i7++;
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
var R = class _R {
|
|
398
398
|
get _$AU() {
|
|
399
399
|
return this._$AM?._$AU ?? this._$Cv;
|
|
400
400
|
}
|
|
401
|
-
constructor(
|
|
402
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA =
|
|
401
|
+
constructor(t6, i7, s5, e10) {
|
|
402
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t6, this._$AB = i7, this._$AM = s5, this.options = e10, this._$Cv = e10?.isConnected ?? true;
|
|
403
403
|
}
|
|
404
404
|
get parentNode() {
|
|
405
|
-
let
|
|
405
|
+
let t6 = this._$AA.parentNode;
|
|
406
406
|
const i7 = this._$AM;
|
|
407
|
-
return void 0 !== i7 && 11 ===
|
|
407
|
+
return void 0 !== i7 && 11 === t6?.nodeType && (t6 = i7.parentNode), t6;
|
|
408
408
|
}
|
|
409
409
|
get startNode() {
|
|
410
410
|
return this._$AA;
|
|
@@ -412,45 +412,45 @@ var R = class _R {
|
|
|
412
412
|
get endNode() {
|
|
413
413
|
return this._$AB;
|
|
414
414
|
}
|
|
415
|
-
_$AI(
|
|
416
|
-
|
|
415
|
+
_$AI(t6, i7 = this) {
|
|
416
|
+
t6 = S2(this, t6, i7), c3(t6) ? t6 === E || null == t6 || "" === t6 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t6 !== this._$AH && t6 !== T && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : u2(t6) ? this.k(t6) : this._(t6);
|
|
417
417
|
}
|
|
418
|
-
O(
|
|
419
|
-
return this._$AA.parentNode.insertBefore(
|
|
418
|
+
O(t6) {
|
|
419
|
+
return this._$AA.parentNode.insertBefore(t6, this._$AB);
|
|
420
420
|
}
|
|
421
|
-
T(
|
|
422
|
-
this._$AH !==
|
|
421
|
+
T(t6) {
|
|
422
|
+
this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
|
|
423
423
|
}
|
|
424
|
-
_(
|
|
425
|
-
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data =
|
|
424
|
+
_(t6) {
|
|
425
|
+
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(r3.createTextNode(t6)), this._$AH = t6;
|
|
426
426
|
}
|
|
427
|
-
$(
|
|
428
|
-
const { values: i7, _$litType$: s5 } =
|
|
427
|
+
$(t6) {
|
|
428
|
+
const { values: i7, _$litType$: s5 } = t6, e10 = "number" == typeof s5 ? this._$AC(t6) : (void 0 === s5.el && (s5.el = N.createElement(P(s5.h, s5.h[0]), this.options)), s5);
|
|
429
429
|
if (this._$AH?._$AD === e10) this._$AH.p(i7);
|
|
430
430
|
else {
|
|
431
|
-
const
|
|
432
|
-
|
|
431
|
+
const t7 = new M(e10, this), s6 = t7.u(this.options);
|
|
432
|
+
t7.p(i7), this.T(s6), this._$AH = t7;
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
_$AC(
|
|
436
|
-
let i7 = A.get(
|
|
437
|
-
return void 0 === i7 && A.set(
|
|
435
|
+
_$AC(t6) {
|
|
436
|
+
let i7 = A.get(t6.strings);
|
|
437
|
+
return void 0 === i7 && A.set(t6.strings, i7 = new N(t6)), i7;
|
|
438
438
|
}
|
|
439
|
-
k(
|
|
439
|
+
k(t6) {
|
|
440
440
|
a2(this._$AH) || (this._$AH = [], this._$AR());
|
|
441
441
|
const i7 = this._$AH;
|
|
442
442
|
let s5, e10 = 0;
|
|
443
|
-
for (const h3 of
|
|
443
|
+
for (const h3 of t6) e10 === i7.length ? i7.push(s5 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s5 = i7[e10], s5._$AI(h3), e10++;
|
|
444
444
|
e10 < i7.length && (this._$AR(s5 && s5._$AB.nextSibling, e10), i7.length = e10);
|
|
445
445
|
}
|
|
446
|
-
_$AR(
|
|
447
|
-
for (this._$AP?.(false, true, i7);
|
|
448
|
-
const i8 =
|
|
449
|
-
|
|
446
|
+
_$AR(t6 = this._$AA.nextSibling, i7) {
|
|
447
|
+
for (this._$AP?.(false, true, i7); t6 && t6 !== this._$AB; ) {
|
|
448
|
+
const i8 = t6.nextSibling;
|
|
449
|
+
t6.remove(), t6 = i8;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
setConnected(
|
|
453
|
-
void 0 === this._$AM && (this._$Cv =
|
|
452
|
+
setConnected(t6) {
|
|
453
|
+
void 0 === this._$AM && (this._$Cv = t6, this._$AP?.(t6));
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
var k = class {
|
|
@@ -460,75 +460,75 @@ var k = class {
|
|
|
460
460
|
get _$AU() {
|
|
461
461
|
return this._$AM._$AU;
|
|
462
462
|
}
|
|
463
|
-
constructor(
|
|
464
|
-
this.type = 1, this._$AH = E, this._$AN = void 0, this.element =
|
|
463
|
+
constructor(t6, i7, s5, e10, h3) {
|
|
464
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t6, this.name = i7, this._$AM = e10, this.options = h3, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = E;
|
|
465
465
|
}
|
|
466
|
-
_$AI(
|
|
466
|
+
_$AI(t6, i7 = this, s5, e10) {
|
|
467
467
|
const h3 = this.strings;
|
|
468
468
|
let o10 = false;
|
|
469
|
-
if (void 0 === h3)
|
|
469
|
+
if (void 0 === h3) t6 = S2(this, t6, i7, 0), o10 = !c3(t6) || t6 !== this._$AH && t6 !== T, o10 && (this._$AH = t6);
|
|
470
470
|
else {
|
|
471
|
-
const e11 =
|
|
471
|
+
const e11 = t6;
|
|
472
472
|
let n5, r8;
|
|
473
|
-
for (
|
|
473
|
+
for (t6 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r8 = S2(this, e11[s5 + n5], i7, n5), r8 === T && (r8 = this._$AH[n5]), o10 || (o10 = !c3(r8) || r8 !== this._$AH[n5]), r8 === E ? t6 = E : t6 !== E && (t6 += (r8 ?? "") + h3[n5 + 1]), this._$AH[n5] = r8;
|
|
474
474
|
}
|
|
475
|
-
o10 && !e10 && this.j(
|
|
475
|
+
o10 && !e10 && this.j(t6);
|
|
476
476
|
}
|
|
477
|
-
j(
|
|
478
|
-
|
|
477
|
+
j(t6) {
|
|
478
|
+
t6 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
var H = class extends k {
|
|
482
482
|
constructor() {
|
|
483
483
|
super(...arguments), this.type = 3;
|
|
484
484
|
}
|
|
485
|
-
j(
|
|
486
|
-
this.element[this.name] =
|
|
485
|
+
j(t6) {
|
|
486
|
+
this.element[this.name] = t6 === E ? void 0 : t6;
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
var I = class extends k {
|
|
490
490
|
constructor() {
|
|
491
491
|
super(...arguments), this.type = 4;
|
|
492
492
|
}
|
|
493
|
-
j(
|
|
494
|
-
this.element.toggleAttribute(this.name, !!
|
|
493
|
+
j(t6) {
|
|
494
|
+
this.element.toggleAttribute(this.name, !!t6 && t6 !== E);
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
var L = class extends k {
|
|
498
|
-
constructor(
|
|
499
|
-
super(
|
|
498
|
+
constructor(t6, i7, s5, e10, h3) {
|
|
499
|
+
super(t6, i7, s5, e10, h3), this.type = 5;
|
|
500
500
|
}
|
|
501
|
-
_$AI(
|
|
502
|
-
if ((
|
|
503
|
-
const s5 = this._$AH, e10 =
|
|
504
|
-
e10 && this.element.removeEventListener(this.name, this, s5), h3 && this.element.addEventListener(this.name, this,
|
|
501
|
+
_$AI(t6, i7 = this) {
|
|
502
|
+
if ((t6 = S2(this, t6, i7, 0) ?? E) === T) return;
|
|
503
|
+
const s5 = this._$AH, e10 = t6 === E && s5 !== E || t6.capture !== s5.capture || t6.once !== s5.once || t6.passive !== s5.passive, h3 = t6 !== E && (s5 === E || e10);
|
|
504
|
+
e10 && this.element.removeEventListener(this.name, this, s5), h3 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
|
|
505
505
|
}
|
|
506
|
-
handleEvent(
|
|
507
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element,
|
|
506
|
+
handleEvent(t6) {
|
|
507
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
var z = class {
|
|
511
|
-
constructor(
|
|
512
|
-
this.element =
|
|
511
|
+
constructor(t6, i7, s5) {
|
|
512
|
+
this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s5;
|
|
513
513
|
}
|
|
514
514
|
get _$AU() {
|
|
515
515
|
return this._$AM._$AU;
|
|
516
516
|
}
|
|
517
|
-
_$AI(
|
|
518
|
-
S2(this,
|
|
517
|
+
_$AI(t6) {
|
|
518
|
+
S2(this, t6);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
var Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z };
|
|
522
522
|
var j = t2.litHtmlPolyfillSupport;
|
|
523
523
|
j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.0");
|
|
524
|
-
var B = (
|
|
524
|
+
var B = (t6, i7, s5) => {
|
|
525
525
|
const e10 = s5?.renderBefore ?? i7;
|
|
526
526
|
let h3 = e10._$litPart$;
|
|
527
527
|
if (void 0 === h3) {
|
|
528
|
-
const
|
|
529
|
-
e10._$litPart$ = h3 = new R(i7.insertBefore(l2(),
|
|
528
|
+
const t7 = s5?.renderBefore ?? null;
|
|
529
|
+
e10._$litPart$ = h3 = new R(i7.insertBefore(l2(), t7), t7, void 0, s5 ?? {});
|
|
530
530
|
}
|
|
531
|
-
return h3._$AI(
|
|
531
|
+
return h3._$AI(t6), h3;
|
|
532
532
|
};
|
|
533
533
|
|
|
534
534
|
// ../../node_modules/lit-element/lit-element.js
|
|
@@ -539,12 +539,12 @@ var i4 = class extends y {
|
|
|
539
539
|
}
|
|
540
540
|
createRenderRoot() {
|
|
541
541
|
var _a;
|
|
542
|
-
const
|
|
543
|
-
return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore =
|
|
542
|
+
const t6 = super.createRenderRoot();
|
|
543
|
+
return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t6.firstChild), t6;
|
|
544
544
|
}
|
|
545
|
-
update(
|
|
545
|
+
update(t6) {
|
|
546
546
|
const r8 = this.render();
|
|
547
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
547
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this._$Do = B(r8, this.renderRoot, this.renderOptions);
|
|
548
548
|
}
|
|
549
549
|
connectedCallback() {
|
|
550
550
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -561,41 +561,34 @@ var o4 = s3.litElementPolyfillSupport;
|
|
|
561
561
|
o4?.({ LitElement: i4 });
|
|
562
562
|
(s3.litElementVersions ?? (s3.litElementVersions = [])).push("4.2.0");
|
|
563
563
|
|
|
564
|
-
// ../../node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
565
|
-
var t3 = (t7) => (e10, o10) => {
|
|
566
|
-
void 0 !== o10 ? o10.addInitializer(() => {
|
|
567
|
-
customElements.define(t7, e10);
|
|
568
|
-
}) : customElements.define(t7, e10);
|
|
569
|
-
};
|
|
570
|
-
|
|
571
564
|
// ../../node_modules/@lit/reactive-element/decorators/property.js
|
|
572
565
|
var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
573
|
-
var r4 = (
|
|
566
|
+
var r4 = (t6 = o5, e10, r8) => {
|
|
574
567
|
const { kind: n5, metadata: i7 } = r8;
|
|
575
568
|
let s5 = globalThis.litPropertyMetadata.get(i7);
|
|
576
|
-
if (void 0 === s5 && globalThis.litPropertyMetadata.set(i7, s5 = /* @__PURE__ */ new Map()), "setter" === n5 && ((
|
|
569
|
+
if (void 0 === s5 && globalThis.litPropertyMetadata.set(i7, s5 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t6 = Object.create(t6)).wrapped = true), s5.set(r8.name, t6), "accessor" === n5) {
|
|
577
570
|
const { name: o10 } = r8;
|
|
578
571
|
return { set(r9) {
|
|
579
572
|
const n6 = e10.get.call(this);
|
|
580
|
-
e10.set.call(this, r9), this.requestUpdate(o10, n6,
|
|
573
|
+
e10.set.call(this, r9), this.requestUpdate(o10, n6, t6);
|
|
581
574
|
}, init(e11) {
|
|
582
|
-
return void 0 !== e11 && this.C(o10, void 0,
|
|
575
|
+
return void 0 !== e11 && this.C(o10, void 0, t6, e11), e11;
|
|
583
576
|
} };
|
|
584
577
|
}
|
|
585
578
|
if ("setter" === n5) {
|
|
586
579
|
const { name: o10 } = r8;
|
|
587
580
|
return function(r9) {
|
|
588
581
|
const n6 = this[o10];
|
|
589
|
-
e10.call(this, r9), this.requestUpdate(o10, n6,
|
|
582
|
+
e10.call(this, r9), this.requestUpdate(o10, n6, t6);
|
|
590
583
|
};
|
|
591
584
|
}
|
|
592
585
|
throw Error("Unsupported decorator location: " + n5);
|
|
593
586
|
};
|
|
594
|
-
function n4(
|
|
595
|
-
return (e10, o10) => "object" == typeof o10 ? r4(
|
|
587
|
+
function n4(t6) {
|
|
588
|
+
return (e10, o10) => "object" == typeof o10 ? r4(t6, e10, o10) : ((t7, e11, o11) => {
|
|
596
589
|
const r8 = e11.hasOwnProperty(o11);
|
|
597
|
-
return e11.constructor.createProperty(o11,
|
|
598
|
-
})(
|
|
590
|
+
return e11.constructor.createProperty(o11, t7), r8 ? Object.getOwnPropertyDescriptor(e11, o11) : void 0;
|
|
591
|
+
})(t6, e10, o10);
|
|
599
592
|
}
|
|
600
593
|
|
|
601
594
|
// ../../node_modules/@lit/reactive-element/decorators/state.js
|
|
@@ -604,24 +597,24 @@ function r5(r8) {
|
|
|
604
597
|
}
|
|
605
598
|
|
|
606
599
|
// ../../node_modules/@lit/reactive-element/decorators/base.js
|
|
607
|
-
var e4 = (e10,
|
|
600
|
+
var e4 = (e10, t6, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t6 && Object.defineProperty(e10, t6, c5), c5);
|
|
608
601
|
|
|
609
602
|
// ../../node_modules/@lit/reactive-element/decorators/query.js
|
|
610
603
|
function e5(e10, r8) {
|
|
611
604
|
return (n5, s5, i7) => {
|
|
612
|
-
const o10 = (
|
|
605
|
+
const o10 = (t6) => t6.renderRoot?.querySelector(e10) ?? null;
|
|
613
606
|
if (r8) {
|
|
614
607
|
const { get: e11, set: r9 } = "object" == typeof s5 ? n5 : i7 ?? (() => {
|
|
615
|
-
const
|
|
608
|
+
const t6 = Symbol();
|
|
616
609
|
return { get() {
|
|
617
|
-
return this[
|
|
610
|
+
return this[t6];
|
|
618
611
|
}, set(e12) {
|
|
619
|
-
this[
|
|
612
|
+
this[t6] = e12;
|
|
620
613
|
} };
|
|
621
614
|
})();
|
|
622
615
|
return e4(n5, s5, { get() {
|
|
623
|
-
let
|
|
624
|
-
return void 0 ===
|
|
616
|
+
let t6 = e11.call(this);
|
|
617
|
+
return void 0 === t6 && (t6 = o10(this), (null !== t6 || this.hasUpdated) && r9.call(this, t6)), t6;
|
|
625
618
|
} });
|
|
626
619
|
}
|
|
627
620
|
return e4(n5, s5, { get() {
|
|
@@ -643,28 +636,28 @@ function o6(o10) {
|
|
|
643
636
|
return (e10, n5) => {
|
|
644
637
|
const { slot: r8, selector: s5 } = o10 ?? {}, c5 = "slot" + (r8 ? `[name=${r8}]` : ":not([name])");
|
|
645
638
|
return e4(e10, n5, { get() {
|
|
646
|
-
const
|
|
647
|
-
return void 0 === s5 ? e11 : e11.filter((
|
|
639
|
+
const t6 = this.renderRoot?.querySelector(c5), e11 = t6?.assignedElements(o10) ?? [];
|
|
640
|
+
return void 0 === s5 ? e11 : e11.filter((t7) => t7.matches(s5));
|
|
648
641
|
} });
|
|
649
642
|
};
|
|
650
643
|
}
|
|
651
644
|
|
|
652
645
|
// ../../node_modules/lit-html/directive.js
|
|
653
|
-
var
|
|
654
|
-
var e7 = (
|
|
646
|
+
var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
647
|
+
var e7 = (t6) => (...e10) => ({ _$litDirective$: t6, values: e10 });
|
|
655
648
|
var i5 = class {
|
|
656
|
-
constructor(
|
|
649
|
+
constructor(t6) {
|
|
657
650
|
}
|
|
658
651
|
get _$AU() {
|
|
659
652
|
return this._$AM._$AU;
|
|
660
653
|
}
|
|
661
|
-
_$AT(
|
|
662
|
-
this._$Ct =
|
|
654
|
+
_$AT(t6, e10, i7) {
|
|
655
|
+
this._$Ct = t6, this._$AM = e10, this._$Ci = i7;
|
|
663
656
|
}
|
|
664
|
-
_$AS(
|
|
665
|
-
return this.update(
|
|
657
|
+
_$AS(t6, e10) {
|
|
658
|
+
return this.update(t6, e10);
|
|
666
659
|
}
|
|
667
|
-
update(
|
|
660
|
+
update(t6, e10) {
|
|
668
661
|
return this.render(...e10);
|
|
669
662
|
}
|
|
670
663
|
};
|
|
@@ -672,7 +665,7 @@ var i5 = class {
|
|
|
672
665
|
// ../../node_modules/lit-html/directives/unsafe-html.js
|
|
673
666
|
var e8 = class extends i5 {
|
|
674
667
|
constructor(i7) {
|
|
675
|
-
if (super(i7), this.it = E, i7.type !==
|
|
668
|
+
if (super(i7), this.it = E, i7.type !== t3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
676
669
|
}
|
|
677
670
|
render(r8) {
|
|
678
671
|
if (r8 === E || null == r8) return this._t = void 0, this.it = r8;
|
|
@@ -688,10 +681,10 @@ e8.directiveName = "unsafeHTML", e8.resultType = 1;
|
|
|
688
681
|
var o7 = e7(e8);
|
|
689
682
|
|
|
690
683
|
// ../../node_modules/lit-html/directives/unsafe-svg.js
|
|
691
|
-
var
|
|
684
|
+
var t4 = class extends e8 {
|
|
692
685
|
};
|
|
693
|
-
|
|
694
|
-
var o8 = e7(
|
|
686
|
+
t4.directiveName = "unsafeSVG", t4.resultType = 2;
|
|
687
|
+
var o8 = e7(t4);
|
|
695
688
|
|
|
696
689
|
// ../icons/dist/src/icons/alert.js
|
|
697
690
|
var alert = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -762,66 +755,66 @@ var wallet = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor
|
|
|
762
755
|
var o9 = (o10) => o10 ?? E;
|
|
763
756
|
|
|
764
757
|
// ../../node_modules/lit-html/directive-helpers.js
|
|
765
|
-
var { I:
|
|
758
|
+
var { I: t5 } = Z;
|
|
766
759
|
var s4 = () => document.createComment("");
|
|
767
760
|
var r7 = (o10, i7, n5) => {
|
|
768
761
|
const e10 = o10._$AA.parentNode, l3 = void 0 === i7 ? o10._$AB : i7._$AA;
|
|
769
762
|
if (void 0 === n5) {
|
|
770
763
|
const i8 = e10.insertBefore(s4(), l3), c5 = e10.insertBefore(s4(), l3);
|
|
771
|
-
n5 = new
|
|
764
|
+
n5 = new t5(i8, c5, o10, o10.options);
|
|
772
765
|
} else {
|
|
773
|
-
const
|
|
766
|
+
const t6 = n5._$AB.nextSibling, i8 = n5._$AM, c5 = i8 !== o10;
|
|
774
767
|
if (c5) {
|
|
775
|
-
let
|
|
776
|
-
n5._$AQ?.(o10), n5._$AM = o10, void 0 !== n5._$AP && (
|
|
768
|
+
let t7;
|
|
769
|
+
n5._$AQ?.(o10), n5._$AM = o10, void 0 !== n5._$AP && (t7 = o10._$AU) !== i8._$AU && n5._$AP(t7);
|
|
777
770
|
}
|
|
778
|
-
if (
|
|
771
|
+
if (t6 !== l3 || c5) {
|
|
779
772
|
let o11 = n5._$AA;
|
|
780
|
-
for (; o11 !==
|
|
781
|
-
const
|
|
782
|
-
e10.insertBefore(o11, l3), o11 =
|
|
773
|
+
for (; o11 !== t6; ) {
|
|
774
|
+
const t7 = o11.nextSibling;
|
|
775
|
+
e10.insertBefore(o11, l3), o11 = t7;
|
|
783
776
|
}
|
|
784
777
|
}
|
|
785
778
|
}
|
|
786
779
|
return n5;
|
|
787
780
|
};
|
|
788
|
-
var v2 = (o10,
|
|
781
|
+
var v2 = (o10, t6, i7 = o10) => (o10._$AI(t6, i7), o10);
|
|
789
782
|
var u3 = {};
|
|
790
|
-
var m2 = (o10,
|
|
783
|
+
var m2 = (o10, t6 = u3) => o10._$AH = t6;
|
|
791
784
|
var p3 = (o10) => o10._$AH;
|
|
792
785
|
var M2 = (o10) => {
|
|
793
786
|
o10._$AP?.(false, true);
|
|
794
|
-
let
|
|
787
|
+
let t6 = o10._$AA;
|
|
795
788
|
const i7 = o10._$AB.nextSibling;
|
|
796
|
-
for (;
|
|
797
|
-
const o11 =
|
|
798
|
-
|
|
789
|
+
for (; t6 !== i7; ) {
|
|
790
|
+
const o11 = t6.nextSibling;
|
|
791
|
+
t6.remove(), t6 = o11;
|
|
799
792
|
}
|
|
800
793
|
};
|
|
801
794
|
|
|
802
795
|
// ../../node_modules/lit-html/directives/repeat.js
|
|
803
|
-
var u4 = (e10, s5,
|
|
796
|
+
var u4 = (e10, s5, t6) => {
|
|
804
797
|
const r8 = /* @__PURE__ */ new Map();
|
|
805
|
-
for (let l3 = s5; l3 <=
|
|
798
|
+
for (let l3 = s5; l3 <= t6; l3++) r8.set(e10[l3], l3);
|
|
806
799
|
return r8;
|
|
807
800
|
};
|
|
808
801
|
var c4 = e7(class extends i5 {
|
|
809
802
|
constructor(e10) {
|
|
810
|
-
if (super(e10), e10.type !==
|
|
803
|
+
if (super(e10), e10.type !== t3.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
811
804
|
}
|
|
812
|
-
dt(e10, s5,
|
|
805
|
+
dt(e10, s5, t6) {
|
|
813
806
|
let r8;
|
|
814
|
-
void 0 ===
|
|
807
|
+
void 0 === t6 ? t6 = s5 : void 0 !== s5 && (r8 = s5);
|
|
815
808
|
const l3 = [], o10 = [];
|
|
816
809
|
let i7 = 0;
|
|
817
|
-
for (const s6 of e10) l3[i7] = r8 ? r8(s6, i7) : i7, o10[i7] =
|
|
810
|
+
for (const s6 of e10) l3[i7] = r8 ? r8(s6, i7) : i7, o10[i7] = t6(s6, i7), i7++;
|
|
818
811
|
return { values: o10, keys: l3 };
|
|
819
812
|
}
|
|
820
|
-
render(e10, s5,
|
|
821
|
-
return this.dt(e10, s5,
|
|
813
|
+
render(e10, s5, t6) {
|
|
814
|
+
return this.dt(e10, s5, t6).values;
|
|
822
815
|
}
|
|
823
|
-
update(s5, [
|
|
824
|
-
const d3 = p3(s5), { values: p4, keys: a3 } = this.dt(
|
|
816
|
+
update(s5, [t6, r8, c5]) {
|
|
817
|
+
const d3 = p3(s5), { values: p4, keys: a3 } = this.dt(t6, r8, c5);
|
|
825
818
|
if (!Array.isArray(d3)) return this.ut = a3, p4;
|
|
826
819
|
const h3 = this.ut ?? (this.ut = []), v3 = [];
|
|
827
820
|
let m3, y3, x2 = 0, j2 = d3.length - 1, k2 = 0, w2 = p4.length - 1;
|
|
@@ -832,11 +825,11 @@ var c4 = e7(class extends i5 {
|
|
|
832
825
|
else if (h3[x2] === a3[w2]) v3[w2] = v2(d3[x2], p4[w2]), r7(s5, v3[w2 + 1], d3[x2]), x2++, w2--;
|
|
833
826
|
else if (h3[j2] === a3[k2]) v3[k2] = v2(d3[j2], p4[k2]), r7(s5, d3[x2], d3[j2]), j2--, k2++;
|
|
834
827
|
else if (void 0 === m3 && (m3 = u4(a3, k2, w2), y3 = u4(h3, x2, j2)), m3.has(h3[x2])) if (m3.has(h3[j2])) {
|
|
835
|
-
const e10 = y3.get(a3[k2]),
|
|
836
|
-
if (null ===
|
|
828
|
+
const e10 = y3.get(a3[k2]), t7 = void 0 !== e10 ? d3[e10] : null;
|
|
829
|
+
if (null === t7) {
|
|
837
830
|
const e11 = r7(s5, d3[x2]);
|
|
838
831
|
v2(e11, p4[k2]), v3[k2] = e11;
|
|
839
|
-
} else v3[k2] = v2(
|
|
832
|
+
} else v3[k2] = v2(t7, p4[k2]), r7(s5, d3[x2], t7), d3[e10] = null;
|
|
840
833
|
k2++;
|
|
841
834
|
} else M2(d3[j2]), j2--;
|
|
842
835
|
else M2(d3[x2]), x2++;
|
|
@@ -858,12 +851,12 @@ var i6 = e7(class extends i5 {
|
|
|
858
851
|
constructor() {
|
|
859
852
|
super(...arguments), this.ot = e9;
|
|
860
853
|
}
|
|
861
|
-
render(r8,
|
|
862
|
-
return
|
|
854
|
+
render(r8, t6) {
|
|
855
|
+
return t6();
|
|
863
856
|
}
|
|
864
|
-
update(
|
|
857
|
+
update(t6, [s5, e10]) {
|
|
865
858
|
if (Array.isArray(s5)) {
|
|
866
|
-
if (Array.isArray(this.ot) && this.ot.length === s5.length && s5.every((r8,
|
|
859
|
+
if (Array.isArray(this.ot) && this.ot.length === s5.length && s5.every((r8, t7) => r8 === this.ot[t7])) return T;
|
|
867
860
|
} else if (this.ot === s5) return T;
|
|
868
861
|
return this.ot = Array.isArray(s5) ? Array.from(s5) : s5, this.render(s5, e10);
|
|
869
862
|
}
|
|
@@ -1098,7 +1091,7 @@ var __decorate = function(decorators, target2, key, desc) {
|
|
|
1098
1091
|
else for (var i7 = decorators.length - 1; i7 >= 0; i7--) if (d3 = decorators[i7]) r8 = (c5 < 3 ? d3(r8) : c5 > 3 ? d3(target2, key, r8) : d3(target2, key)) || r8;
|
|
1099
1092
|
return c5 > 3 && r8 && Object.defineProperty(target2, key, r8), r8;
|
|
1100
1093
|
};
|
|
1101
|
-
var TtCombobox = class
|
|
1094
|
+
var TtCombobox = class extends i4 {
|
|
1102
1095
|
get form() {
|
|
1103
1096
|
return this.internals.form;
|
|
1104
1097
|
}
|
|
@@ -1559,9 +1552,6 @@ __decorate([
|
|
|
1559
1552
|
__decorate([
|
|
1560
1553
|
n4({ type: Array, attribute: "value" })
|
|
1561
1554
|
], TtCombobox.prototype, "value", void 0);
|
|
1562
|
-
TtCombobox = __decorate([
|
|
1563
|
-
t3("tt-combobox")
|
|
1564
|
-
], TtCombobox);
|
|
1565
1555
|
|
|
1566
1556
|
// ../tt-combobox/dist/src/tt-option/styles.js
|
|
1567
1557
|
var styles2 = i`
|