@luzmo/analytics-components-kit 1.0.1-alpha.2 → 1.0.1-alpha.4
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/LICENSE +18 -0
- package/custom-elements.json +1550 -0
- package/lib/area-chart-slots.config-BLxiYX05.cjs +20 -0
- package/lib/area-chart-slots.config-C0c2ZzBh.js +52 -0
- package/lib/async-directive-CPjMHOPu.cjs +24 -0
- package/lib/async-directive-SCUUQ3Mh.js +114 -0
- package/lib/bar-chart-slots.config-GSSL7XVA.js +47 -0
- package/lib/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
- package/lib/bar-chart.config-B57geUzJ.cjs +20 -0
- package/lib/bar-chart.config-CQ6HAvs2.js +153 -0
- package/lib/bar-chart.en-BqYbiHO3.cjs +20 -0
- package/lib/bar-chart.en-FwT00qdU.js +69 -0
- package/lib/bar-chart.fr-DGx9smEh.cjs +20 -0
- package/lib/bar-chart.fr-DbxKiM0j.js +44 -0
- package/lib/bar-chart.nl-BYzVExsz.cjs +20 -0
- package/lib/bar-chart.nl-ahX1ARpH.js +44 -0
- package/lib/button-base-B4PdJFVe.cjs +27 -0
- package/lib/button-base-CtfPWS-P.js +142 -0
- package/lib/column-chart.config-B57geUzJ.cjs +20 -0
- package/lib/column-chart.config-C9hP0kX7.js +153 -0
- package/lib/cs-DVZ0Tapy.js +89 -0
- package/lib/cs-I9E81keK.cjs +20 -0
- package/lib/da-DHy05oSR.js +97 -0
- package/lib/da-QkdvupDg.cjs +20 -0
- package/lib/de-Dn5mUzha.cjs +20 -0
- package/lib/de-iM39JlAt.js +109 -0
- package/lib/decompose-numeric-format-B3rVVHpO.cjs +20 -0
- package/lib/decompose-numeric-format-BuZcjH2k.js +39 -0
- package/lib/directive-helpers-BSB0tfc9.cjs +32 -0
- package/lib/directive-helpers-eY1rHtyn.js +154 -0
- package/lib/divider.module-BW8qaMVq.js +211 -0
- package/lib/divider.module-DEy88Ieh.cjs +20 -0
- package/lib/donut-chart-slots.config-BEwhfq27.js +39 -0
- package/lib/donut-chart-slots.config-DIp-24lO.cjs +20 -0
- package/lib/donut-chart.config-3DhKiSSM.js +177 -0
- package/lib/donut-chart.config-DLWJUlHx.cjs +20 -0
- package/lib/donut-chart.en-Blb9oSdU.cjs +20 -0
- package/lib/donut-chart.en-CzjT4-XN.js +85 -0
- package/lib/donut-chart.fr-BeTVa2wh.cjs +20 -0
- package/lib/donut-chart.fr-DftPrKbG.js +39 -0
- package/lib/donut-chart.nl-D9YGbOce.cjs +20 -0
- package/lib/donut-chart.nl-NMatXfhK.js +39 -0
- package/lib/draggable-data-item/index.cjs +20 -0
- package/lib/draggable-data-item/index.js +30 -0
- package/lib/droppable-slot/index.cjs +20 -0
- package/lib/droppable-slot/index.js +30 -0
- package/lib/en-BDBzmAXX.cjs +202 -0
- package/lib/en-CIeY2T5K.js +1980 -0
- package/lib/en-GB-BqYHIX1v.cjs +20 -0
- package/lib/en-GB-CYx--4nh.js +28 -0
- package/lib/es-CwyPlN5d.cjs +20 -0
- package/lib/es-KhTq4jX8.js +305 -0
- package/lib/fi-Dh_ebgpe.js +97 -0
- package/lib/fi-rijeZE5V.cjs +20 -0
- package/lib/fr-BcgE-6S_.cjs +20 -0
- package/lib/fr-CU727YF1.js +305 -0
- package/lib/get-css-variable-BHHQ0SnL.js +1444 -0
- package/lib/get-css-variable-D439CdH9.cjs +24 -0
- package/lib/he-Au3xg6lR.js +89 -0
- package/lib/he-O6Ih8Bqh.cjs +20 -0
- package/lib/hu-BnZ8y3xQ.cjs +20 -0
- package/lib/hu-DNJ-P_MW.js +97 -0
- package/lib/if-defined-BbzmSG-O.js +757 -0
- package/lib/if-defined-V7yEJWI3.cjs +54 -0
- package/lib/imageobject.config-B7ld9bj3.cjs +20 -0
- package/lib/imageobject.config-DZLp9Elq.js +127 -0
- package/lib/index-0314DjEl.cjs +20 -0
- package/lib/index-B9h2L_hV.js +3048 -0
- package/lib/index-BDXFsKUM.cjs +146 -0
- package/lib/index-Bd4cKS9O.js +155 -0
- package/lib/index-BmAD29P2.js +106 -0
- package/lib/index-Bo1DpZ-1.cjs +58 -0
- package/lib/index-C4ePDYEC.cjs +41 -0
- package/lib/index-C9xEN5Ji.js +82 -0
- package/lib/index-CBCm4_7S.js +869 -0
- package/lib/index-CM80_HQw.js +442 -0
- package/lib/index-CcF-9wyF.cjs +71 -0
- package/lib/index-CfEm5P0J.cjs +196 -0
- package/lib/index-CrWoFMZ3.cjs +22 -0
- package/lib/index-CtEJZdT0.js +1627 -0
- package/lib/index-CvX-HLY1.cjs +322 -0
- package/lib/index-D37RwuEH.js +1584 -0
- package/lib/index-D5puKlcm.cjs +96 -0
- package/lib/index-DGz6jCKo.cjs +26 -0
- package/lib/index-DJp_9h0l.js +327 -0
- package/lib/index-DSbgZduE.js +501 -0
- package/lib/index-D_KYpfBM.js +24 -0
- package/lib/index-DdtjeKYI.js +928 -0
- package/lib/index-Dj7PF4Q9.cjs +63 -0
- package/lib/index-Dq3HAOaM.js +127 -0
- package/lib/index-DrIA0eFE.js +392 -0
- package/lib/index-jt6FL_uE.cjs +20 -0
- package/lib/index-kJR406YZ.cjs +112 -0
- package/lib/index-v8ZTprPO.cjs +51 -0
- package/lib/index.cjs +875 -0
- package/lib/index.js +6411 -0
- package/lib/it-Bh5U73z6.js +305 -0
- package/lib/it-PshtLMkq.cjs +20 -0
- package/lib/ja-CCcHUL61.js +89 -0
- package/lib/ja-KIS2HdaG.cjs +20 -0
- package/lib/ko--l4qmjLV.cjs +20 -0
- package/lib/ko-DhapsZMM.js +89 -0
- package/lib/line-chart.config-BZcvfO2c.cjs +20 -0
- package/lib/line-chart.config-CIVN6uLI.js +115 -0
- package/lib/mk-B9HPSuKa.js +97 -0
- package/lib/mk-DZlj-edb.cjs +20 -0
- package/lib/nl-BKlDqOXb.cjs +20 -0
- package/lib/nl-BwSt5Bf4.js +109 -0
- package/lib/no-D-DofYnx.js +109 -0
- package/lib/no-D_SzxhTu.cjs +20 -0
- package/lib/observe-slot-text-DOYmGOZe.js +181 -0
- package/lib/observe-slot-text-oJ0a2KY9.cjs +42 -0
- package/lib/picker/index.cjs +20 -0
- package/lib/picker/index.js +32 -0
- package/lib/pl-D_L_0Boq.js +97 -0
- package/lib/pl-PIK23rK_.cjs +20 -0
- package/lib/popover-Bwnkg-5-.js +67 -0
- package/lib/popover-CQGN8nbX.cjs +32 -0
- package/lib/progress-circle/index.cjs +35 -0
- package/lib/progress-circle/index.js +104 -0
- package/lib/pt-B0BBS5VB.js +89 -0
- package/lib/pt-Dqlu4MS5.cjs +20 -0
- package/lib/ru-Vo-m3O_2.js +108 -0
- package/lib/ru-zyNDTB04.cjs +20 -0
- package/lib/sv-1DPTltNQ.cjs +20 -0
- package/lib/sv-CiozMaev.js +89 -0
- package/lib/textobject.config-C8opcGG4.js +52 -0
- package/lib/textobject.config-DbAajFz8.cjs +20 -0
- package/lib/tr-BkmWvOG2.cjs +20 -0
- package/lib/tr-D_D4i5iv.js +109 -0
- package/lib/zh-CN-DTZ4OmdP.cjs +20 -0
- package/lib/zh-CN-wsl7eFSd.js +89 -0
- package/lib/zh-TW-DTZ4OmdP.cjs +20 -0
- package/lib/zh-TW-wsl7eFSd.js +89 -0
- package/package.json +19 -24
- package/37.js +0 -1
- package/729.js +0 -1
- package/common-31743c5a.js +0 -13
- package/common-b02547a0.js +0 -1
- package/common-b49d9a9d.js +0 -1
- package/common-b5232813.js +0 -56
- package/common-cefd4f4c.js +0 -1
- package/common-d6cb565f.js +0 -1
- package/common-fd868059.js +0 -1
- package/common-fedaf338.js +0 -32
- package/edit-option-picker/index.js +0 -314
- package/edit-option-slider/index.js +0 -102
- package/edit-option-toggle/index.js +0 -114
- package/index.js +0 -346
- package/vendors-93cc3efa.js +0 -1
- package/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,757 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2024 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
/**
|
21
|
+
* @license
|
22
|
+
* Copyright 2019 Google LLC
|
23
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
24
|
+
*/
|
25
|
+
const T = globalThis, I = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, st = Symbol(), W = /* @__PURE__ */ new WeakMap();
|
26
|
+
let at = class {
|
27
|
+
constructor(t, e, s) {
|
28
|
+
if (this._$cssResult$ = !0, s !== st) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
29
|
+
this.cssText = t, this.t = e;
|
30
|
+
}
|
31
|
+
get styleSheet() {
|
32
|
+
let t = this.o;
|
33
|
+
const e = this.t;
|
34
|
+
if (I && t === void 0) {
|
35
|
+
const s = e !== void 0 && e.length === 1;
|
36
|
+
s && (t = W.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && W.set(e, t));
|
37
|
+
}
|
38
|
+
return t;
|
39
|
+
}
|
40
|
+
toString() {
|
41
|
+
return this.cssText;
|
42
|
+
}
|
43
|
+
};
|
44
|
+
const lt = (r) => new at(typeof r == "string" ? r : r + "", void 0, st), ct = (r, t) => {
|
45
|
+
if (I) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
46
|
+
else for (const e of t) {
|
47
|
+
const s = document.createElement("style"), i = T.litNonce;
|
48
|
+
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
49
|
+
}
|
50
|
+
}, q = I ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
51
|
+
let e = "";
|
52
|
+
for (const s of t.cssRules) e += s.cssText;
|
53
|
+
return lt(e);
|
54
|
+
})(r) : r;
|
55
|
+
/**
|
56
|
+
* @license
|
57
|
+
* Copyright 2017 Google LLC
|
58
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
59
|
+
*/
|
60
|
+
const { is: dt, defineProperty: ut, getOwnPropertyDescriptor: pt, getOwnPropertyNames: $t, getOwnPropertySymbols: _t, getPrototypeOf: ft } = Object, f = globalThis, F = f.trustedTypes, mt = F ? F.emptyScript : "", z = f.reactiveElementPolyfillSupport, S = (r, t) => r, R = { toAttribute(r, t) {
|
61
|
+
switch (t) {
|
62
|
+
case Boolean:
|
63
|
+
r = r ? mt : null;
|
64
|
+
break;
|
65
|
+
case Object:
|
66
|
+
case Array:
|
67
|
+
r = r == null ? r : JSON.stringify(r);
|
68
|
+
}
|
69
|
+
return r;
|
70
|
+
}, fromAttribute(r, t) {
|
71
|
+
let e = r;
|
72
|
+
switch (t) {
|
73
|
+
case Boolean:
|
74
|
+
e = r !== null;
|
75
|
+
break;
|
76
|
+
case Number:
|
77
|
+
e = r === null ? null : Number(r);
|
78
|
+
break;
|
79
|
+
case Object:
|
80
|
+
case Array:
|
81
|
+
try {
|
82
|
+
e = JSON.parse(r);
|
83
|
+
} catch {
|
84
|
+
e = null;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
return e;
|
88
|
+
} }, B = (r, t) => !dt(r, t), Z = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: B };
|
89
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
90
|
+
let y = class extends HTMLElement {
|
91
|
+
static addInitializer(t) {
|
92
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
93
|
+
}
|
94
|
+
static get observedAttributes() {
|
95
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
96
|
+
}
|
97
|
+
static createProperty(t, e = Z) {
|
98
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
99
|
+
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
100
|
+
i !== void 0 && ut(this.prototype, t, i);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
static getPropertyDescriptor(t, e, s) {
|
104
|
+
const { get: i, set: o } = pt(this.prototype, t) ?? { get() {
|
105
|
+
return this[e];
|
106
|
+
}, set(n) {
|
107
|
+
this[e] = n;
|
108
|
+
} };
|
109
|
+
return { get() {
|
110
|
+
return i == null ? void 0 : i.call(this);
|
111
|
+
}, set(n) {
|
112
|
+
const a = i == null ? void 0 : i.call(this);
|
113
|
+
o.call(this, n), this.requestUpdate(t, a, s);
|
114
|
+
}, configurable: !0, enumerable: !0 };
|
115
|
+
}
|
116
|
+
static getPropertyOptions(t) {
|
117
|
+
return this.elementProperties.get(t) ?? Z;
|
118
|
+
}
|
119
|
+
static _$Ei() {
|
120
|
+
if (this.hasOwnProperty(S("elementProperties"))) return;
|
121
|
+
const t = ft(this);
|
122
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
123
|
+
}
|
124
|
+
static finalize() {
|
125
|
+
if (this.hasOwnProperty(S("finalized"))) return;
|
126
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
|
127
|
+
const e = this.properties, s = [...$t(e), ..._t(e)];
|
128
|
+
for (const i of s) this.createProperty(i, e[i]);
|
129
|
+
}
|
130
|
+
const t = this[Symbol.metadata];
|
131
|
+
if (t !== null) {
|
132
|
+
const e = litPropertyMetadata.get(t);
|
133
|
+
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
134
|
+
}
|
135
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
136
|
+
for (const [e, s] of this.elementProperties) {
|
137
|
+
const i = this._$Eu(e, s);
|
138
|
+
i !== void 0 && this._$Eh.set(i, e);
|
139
|
+
}
|
140
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
141
|
+
}
|
142
|
+
static finalizeStyles(t) {
|
143
|
+
const e = [];
|
144
|
+
if (Array.isArray(t)) {
|
145
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
146
|
+
for (const i of s) e.unshift(q(i));
|
147
|
+
} else t !== void 0 && e.push(q(t));
|
148
|
+
return e;
|
149
|
+
}
|
150
|
+
static _$Eu(t, e) {
|
151
|
+
const s = e.attribute;
|
152
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
153
|
+
}
|
154
|
+
constructor() {
|
155
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
156
|
+
}
|
157
|
+
_$Ev() {
|
158
|
+
var t;
|
159
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
160
|
+
}
|
161
|
+
addController(t) {
|
162
|
+
var e;
|
163
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
164
|
+
}
|
165
|
+
removeController(t) {
|
166
|
+
var e;
|
167
|
+
(e = this._$EO) == null || e.delete(t);
|
168
|
+
}
|
169
|
+
_$E_() {
|
170
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
171
|
+
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
172
|
+
t.size > 0 && (this._$Ep = t);
|
173
|
+
}
|
174
|
+
createRenderRoot() {
|
175
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
176
|
+
return ct(t, this.constructor.elementStyles), t;
|
177
|
+
}
|
178
|
+
connectedCallback() {
|
179
|
+
var t;
|
180
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
181
|
+
var s;
|
182
|
+
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
183
|
+
});
|
184
|
+
}
|
185
|
+
enableUpdating(t) {
|
186
|
+
}
|
187
|
+
disconnectedCallback() {
|
188
|
+
var t;
|
189
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
190
|
+
var s;
|
191
|
+
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
192
|
+
});
|
193
|
+
}
|
194
|
+
attributeChangedCallback(t, e, s) {
|
195
|
+
this._$AK(t, s);
|
196
|
+
}
|
197
|
+
_$EC(t, e) {
|
198
|
+
var o;
|
199
|
+
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
200
|
+
if (i !== void 0 && s.reflect === !0) {
|
201
|
+
const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : R).toAttribute(e, s.type);
|
202
|
+
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
_$AK(t, e) {
|
206
|
+
var o;
|
207
|
+
const s = this.constructor, i = s._$Eh.get(t);
|
208
|
+
if (i !== void 0 && this._$Em !== i) {
|
209
|
+
const n = s.getPropertyOptions(i), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : R;
|
210
|
+
this._$Em = i, this[i] = a.fromAttribute(e, n.type), this._$Em = null;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
requestUpdate(t, e, s) {
|
214
|
+
if (t !== void 0) {
|
215
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? B)(this[t], e)) return;
|
216
|
+
this.P(t, e, s);
|
217
|
+
}
|
218
|
+
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
219
|
+
}
|
220
|
+
P(t, e, s) {
|
221
|
+
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
222
|
+
}
|
223
|
+
async _$ET() {
|
224
|
+
this.isUpdatePending = !0;
|
225
|
+
try {
|
226
|
+
await this._$ES;
|
227
|
+
} catch (e) {
|
228
|
+
Promise.reject(e);
|
229
|
+
}
|
230
|
+
const t = this.scheduleUpdate();
|
231
|
+
return t != null && await t, !this.isUpdatePending;
|
232
|
+
}
|
233
|
+
scheduleUpdate() {
|
234
|
+
return this.performUpdate();
|
235
|
+
}
|
236
|
+
performUpdate() {
|
237
|
+
var s;
|
238
|
+
if (!this.isUpdatePending) return;
|
239
|
+
if (!this.hasUpdated) {
|
240
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
241
|
+
for (const [o, n] of this._$Ep) this[o] = n;
|
242
|
+
this._$Ep = void 0;
|
243
|
+
}
|
244
|
+
const i = this.constructor.elementProperties;
|
245
|
+
if (i.size > 0) for (const [o, n] of i) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
246
|
+
}
|
247
|
+
let t = !1;
|
248
|
+
const e = this._$AL;
|
249
|
+
try {
|
250
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
251
|
+
var o;
|
252
|
+
return (o = i.hostUpdate) == null ? void 0 : o.call(i);
|
253
|
+
}), this.update(e)) : this._$EU();
|
254
|
+
} catch (i) {
|
255
|
+
throw t = !1, this._$EU(), i;
|
256
|
+
}
|
257
|
+
t && this._$AE(e);
|
258
|
+
}
|
259
|
+
willUpdate(t) {
|
260
|
+
}
|
261
|
+
_$AE(t) {
|
262
|
+
var e;
|
263
|
+
(e = this._$EO) == null || e.forEach((s) => {
|
264
|
+
var i;
|
265
|
+
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
266
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
267
|
+
}
|
268
|
+
_$EU() {
|
269
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
270
|
+
}
|
271
|
+
get updateComplete() {
|
272
|
+
return this.getUpdateComplete();
|
273
|
+
}
|
274
|
+
getUpdateComplete() {
|
275
|
+
return this._$ES;
|
276
|
+
}
|
277
|
+
shouldUpdate(t) {
|
278
|
+
return !0;
|
279
|
+
}
|
280
|
+
update(t) {
|
281
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
282
|
+
}
|
283
|
+
updated(t) {
|
284
|
+
}
|
285
|
+
firstUpdated(t) {
|
286
|
+
}
|
287
|
+
};
|
288
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[S("elementProperties")] = /* @__PURE__ */ new Map(), y[S("finalized")] = /* @__PURE__ */ new Map(), z == null || z({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
|
289
|
+
/**
|
290
|
+
* @license
|
291
|
+
* Copyright 2017 Google LLC
|
292
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
293
|
+
*/
|
294
|
+
const w = globalThis, H = w.trustedTypes, J = H ? H.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, it = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, rt = "?" + _, gt = `<${rt}>`, A = document, C = () => A.createComment(""), x = (r) => r === null || typeof r != "object" && typeof r != "function", V = Array.isArray, At = (r) => V(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", L = `[
|
295
|
+
\f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, G = />/g, m = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
296
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Q = /'/g, X = /"/g, nt = /^(?:script|style|textarea|title)$/i, ot = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Dt = ot(1), jt = ot(2), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Y = /* @__PURE__ */ new WeakMap(), g = A.createTreeWalker(A, 129);
|
297
|
+
function ht(r, t) {
|
298
|
+
if (!V(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
299
|
+
return J !== void 0 ? J.createHTML(t) : t;
|
300
|
+
}
|
301
|
+
const yt = (r, t) => {
|
302
|
+
const e = r.length - 1, s = [];
|
303
|
+
let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = E;
|
304
|
+
for (let a = 0; a < e; a++) {
|
305
|
+
const h = r[a];
|
306
|
+
let l, u, c = -1, p = 0;
|
307
|
+
for (; p < h.length && (n.lastIndex = p, u = n.exec(h), u !== null); ) p = n.lastIndex, n === E ? u[1] === "!--" ? n = K : u[1] !== void 0 ? n = G : u[2] !== void 0 ? (nt.test(u[2]) && (i = RegExp("</" + u[2], "g")), n = m) : u[3] !== void 0 && (n = m) : n === m ? u[0] === ">" ? (n = i ?? E, c = -1) : u[1] === void 0 ? c = -2 : (c = n.lastIndex - u[2].length, l = u[1], n = u[3] === void 0 ? m : u[3] === '"' ? X : Q) : n === X || n === Q ? n = m : n === K || n === G ? n = E : (n = m, i = void 0);
|
308
|
+
const $ = n === m && r[a + 1].startsWith("/>") ? " " : "";
|
309
|
+
o += n === E ? h + gt : c >= 0 ? (s.push(l), h.slice(0, c) + it + h.slice(c) + _ + $) : h + _ + (c === -2 ? a : $);
|
310
|
+
}
|
311
|
+
return [ht(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
312
|
+
};
|
313
|
+
class U {
|
314
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
315
|
+
let i;
|
316
|
+
this.parts = [];
|
317
|
+
let o = 0, n = 0;
|
318
|
+
const a = t.length - 1, h = this.parts, [l, u] = yt(t, e);
|
319
|
+
if (this.el = U.createElement(l, s), g.currentNode = this.el.content, e === 2 || e === 3) {
|
320
|
+
const c = this.el.content.firstChild;
|
321
|
+
c.replaceWith(...c.childNodes);
|
322
|
+
}
|
323
|
+
for (; (i = g.nextNode()) !== null && h.length < a; ) {
|
324
|
+
if (i.nodeType === 1) {
|
325
|
+
if (i.hasAttributes()) for (const c of i.getAttributeNames()) if (c.endsWith(it)) {
|
326
|
+
const p = u[n++], $ = i.getAttribute(c).split(_), M = /([.?@])?(.*)/.exec(p);
|
327
|
+
h.push({ type: 1, index: o, name: M[2], strings: $, ctor: M[1] === "." ? bt : M[1] === "?" ? Et : M[1] === "@" ? St : N }), i.removeAttribute(c);
|
328
|
+
} else c.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(c));
|
329
|
+
if (nt.test(i.tagName)) {
|
330
|
+
const c = i.textContent.split(_), p = c.length - 1;
|
331
|
+
if (p > 0) {
|
332
|
+
i.textContent = H ? H.emptyScript : "";
|
333
|
+
for (let $ = 0; $ < p; $++) i.append(c[$], C()), g.nextNode(), h.push({ type: 2, index: ++o });
|
334
|
+
i.append(c[p], C());
|
335
|
+
}
|
336
|
+
}
|
337
|
+
} else if (i.nodeType === 8) if (i.data === rt) h.push({ type: 2, index: o });
|
338
|
+
else {
|
339
|
+
let c = -1;
|
340
|
+
for (; (c = i.data.indexOf(_, c + 1)) !== -1; ) h.push({ type: 7, index: o }), c += _.length - 1;
|
341
|
+
}
|
342
|
+
o++;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
static createElement(t, e) {
|
346
|
+
const s = A.createElement("template");
|
347
|
+
return s.innerHTML = t, s;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
function b(r, t, e = r, s) {
|
351
|
+
var n, a;
|
352
|
+
if (t === v) return t;
|
353
|
+
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
354
|
+
const o = x(t) ? void 0 : t._$litDirective$;
|
355
|
+
return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = b(r, i._$AS(r, t.values), i, s)), t;
|
356
|
+
}
|
357
|
+
class vt {
|
358
|
+
constructor(t, e) {
|
359
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
360
|
+
}
|
361
|
+
get parentNode() {
|
362
|
+
return this._$AM.parentNode;
|
363
|
+
}
|
364
|
+
get _$AU() {
|
365
|
+
return this._$AM._$AU;
|
366
|
+
}
|
367
|
+
u(t) {
|
368
|
+
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
|
369
|
+
g.currentNode = i;
|
370
|
+
let o = g.nextNode(), n = 0, a = 0, h = s[0];
|
371
|
+
for (; h !== void 0; ) {
|
372
|
+
if (n === h.index) {
|
373
|
+
let l;
|
374
|
+
h.type === 2 ? l = new O(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new wt(o, this, t)), this._$AV.push(l), h = s[++a];
|
375
|
+
}
|
376
|
+
n !== (h == null ? void 0 : h.index) && (o = g.nextNode(), n++);
|
377
|
+
}
|
378
|
+
return g.currentNode = A, i;
|
379
|
+
}
|
380
|
+
p(t) {
|
381
|
+
let e = 0;
|
382
|
+
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
class O {
|
386
|
+
get _$AU() {
|
387
|
+
var t;
|
388
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
389
|
+
}
|
390
|
+
constructor(t, e, s, i) {
|
391
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
392
|
+
}
|
393
|
+
get parentNode() {
|
394
|
+
let t = this._$AA.parentNode;
|
395
|
+
const e = this._$AM;
|
396
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
397
|
+
}
|
398
|
+
get startNode() {
|
399
|
+
return this._$AA;
|
400
|
+
}
|
401
|
+
get endNode() {
|
402
|
+
return this._$AB;
|
403
|
+
}
|
404
|
+
_$AI(t, e = this) {
|
405
|
+
t = b(this, t, e), x(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : At(t) ? this.k(t) : this._(t);
|
406
|
+
}
|
407
|
+
O(t) {
|
408
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
409
|
+
}
|
410
|
+
T(t) {
|
411
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
412
|
+
}
|
413
|
+
_(t) {
|
414
|
+
this._$AH !== d && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
|
415
|
+
}
|
416
|
+
$(t) {
|
417
|
+
var o;
|
418
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(ht(s.h, s.h[0]), this.options)), s);
|
419
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
|
420
|
+
else {
|
421
|
+
const n = new vt(i, this), a = n.u(this.options);
|
422
|
+
n.p(e), this.T(a), this._$AH = n;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
_$AC(t) {
|
426
|
+
let e = Y.get(t.strings);
|
427
|
+
return e === void 0 && Y.set(t.strings, e = new U(t)), e;
|
428
|
+
}
|
429
|
+
k(t) {
|
430
|
+
V(this._$AH) || (this._$AH = [], this._$AR());
|
431
|
+
const e = this._$AH;
|
432
|
+
let s, i = 0;
|
433
|
+
for (const o of t) i === e.length ? e.push(s = new O(this.O(C()), this.O(C()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
434
|
+
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
435
|
+
}
|
436
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
437
|
+
var s;
|
438
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
439
|
+
const i = t.nextSibling;
|
440
|
+
t.remove(), t = i;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
setConnected(t) {
|
444
|
+
var e;
|
445
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
446
|
+
}
|
447
|
+
}
|
448
|
+
class N {
|
449
|
+
get tagName() {
|
450
|
+
return this.element.tagName;
|
451
|
+
}
|
452
|
+
get _$AU() {
|
453
|
+
return this._$AM._$AU;
|
454
|
+
}
|
455
|
+
constructor(t, e, s, i, o) {
|
456
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
457
|
+
}
|
458
|
+
_$AI(t, e = this, s, i) {
|
459
|
+
const o = this.strings;
|
460
|
+
let n = !1;
|
461
|
+
if (o === void 0) t = b(this, t, e, 0), n = !x(t) || t !== this._$AH && t !== v, n && (this._$AH = t);
|
462
|
+
else {
|
463
|
+
const a = t;
|
464
|
+
let h, l;
|
465
|
+
for (t = o[0], h = 0; h < o.length - 1; h++) l = b(this, a[s + h], e, h), l === v && (l = this._$AH[h]), n || (n = !x(l) || l !== this._$AH[h]), l === d ? t = d : t !== d && (t += (l ?? "") + o[h + 1]), this._$AH[h] = l;
|
466
|
+
}
|
467
|
+
n && !i && this.j(t);
|
468
|
+
}
|
469
|
+
j(t) {
|
470
|
+
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
471
|
+
}
|
472
|
+
}
|
473
|
+
class bt extends N {
|
474
|
+
constructor() {
|
475
|
+
super(...arguments), this.type = 3;
|
476
|
+
}
|
477
|
+
j(t) {
|
478
|
+
this.element[this.name] = t === d ? void 0 : t;
|
479
|
+
}
|
480
|
+
}
|
481
|
+
class Et extends N {
|
482
|
+
constructor() {
|
483
|
+
super(...arguments), this.type = 4;
|
484
|
+
}
|
485
|
+
j(t) {
|
486
|
+
this.element.toggleAttribute(this.name, !!t && t !== d);
|
487
|
+
}
|
488
|
+
}
|
489
|
+
class St extends N {
|
490
|
+
constructor(t, e, s, i, o) {
|
491
|
+
super(t, e, s, i, o), this.type = 5;
|
492
|
+
}
|
493
|
+
_$AI(t, e = this) {
|
494
|
+
if ((t = b(this, t, e, 0) ?? d) === v) return;
|
495
|
+
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
|
496
|
+
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
497
|
+
}
|
498
|
+
handleEvent(t) {
|
499
|
+
var e;
|
500
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
501
|
+
}
|
502
|
+
}
|
503
|
+
class wt {
|
504
|
+
constructor(t, e, s) {
|
505
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
506
|
+
}
|
507
|
+
get _$AU() {
|
508
|
+
return this._$AM._$AU;
|
509
|
+
}
|
510
|
+
_$AI(t) {
|
511
|
+
b(this, t);
|
512
|
+
}
|
513
|
+
}
|
514
|
+
const k = w.litHtmlPolyfillSupport;
|
515
|
+
k == null || k(U, O), (w.litHtmlVersions ?? (w.litHtmlVersions = [])).push("3.2.1");
|
516
|
+
const Pt = (r, t, e) => {
|
517
|
+
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
518
|
+
let i = s._$litPart$;
|
519
|
+
if (i === void 0) {
|
520
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
521
|
+
s._$litPart$ = i = new O(t.insertBefore(C(), o), o, void 0, e ?? {});
|
522
|
+
}
|
523
|
+
return i._$AI(r), i;
|
524
|
+
};
|
525
|
+
/**
|
526
|
+
* @license
|
527
|
+
* Copyright 2017 Google LLC
|
528
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
529
|
+
*/
|
530
|
+
let P = class extends y {
|
531
|
+
constructor() {
|
532
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
533
|
+
}
|
534
|
+
createRenderRoot() {
|
535
|
+
var e;
|
536
|
+
const t = super.createRenderRoot();
|
537
|
+
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
538
|
+
}
|
539
|
+
update(t) {
|
540
|
+
const e = this.render();
|
541
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Pt(e, this.renderRoot, this.renderOptions);
|
542
|
+
}
|
543
|
+
connectedCallback() {
|
544
|
+
var t;
|
545
|
+
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
546
|
+
}
|
547
|
+
disconnectedCallback() {
|
548
|
+
var t;
|
549
|
+
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
550
|
+
}
|
551
|
+
render() {
|
552
|
+
return v;
|
553
|
+
}
|
554
|
+
};
|
555
|
+
var et;
|
556
|
+
P._$litElement$ = !0, P.finalized = !0, (et = globalThis.litElementHydrateSupport) == null || et.call(globalThis, { LitElement: P });
|
557
|
+
const D = globalThis.litElementPolyfillSupport;
|
558
|
+
D == null || D({ LitElement: P });
|
559
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
560
|
+
/**
|
561
|
+
* @license
|
562
|
+
* Copyright 2017 Google LLC
|
563
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
564
|
+
*/
|
565
|
+
const Ct = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: B }, xt = (r = Ct, t, e) => {
|
566
|
+
const { kind: s, metadata: i } = e;
|
567
|
+
let o = globalThis.litPropertyMetadata.get(i);
|
568
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
|
569
|
+
const { name: n } = e;
|
570
|
+
return { set(a) {
|
571
|
+
const h = t.get.call(this);
|
572
|
+
t.set.call(this, a), this.requestUpdate(n, h, r);
|
573
|
+
}, init(a) {
|
574
|
+
return a !== void 0 && this.P(n, void 0, r), a;
|
575
|
+
} };
|
576
|
+
}
|
577
|
+
if (s === "setter") {
|
578
|
+
const { name: n } = e;
|
579
|
+
return function(a) {
|
580
|
+
const h = this[n];
|
581
|
+
t.call(this, a), this.requestUpdate(n, h, r);
|
582
|
+
};
|
583
|
+
}
|
584
|
+
throw Error("Unsupported decorator location: " + s);
|
585
|
+
};
|
586
|
+
function Ut(r) {
|
587
|
+
return (t, e) => typeof e == "object" ? xt(r, t, e) : ((s, i, o) => {
|
588
|
+
const n = i.hasOwnProperty(o);
|
589
|
+
return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
|
590
|
+
})(r, t, e);
|
591
|
+
}
|
592
|
+
/**
|
593
|
+
* @license
|
594
|
+
* Copyright 2017 Google LLC
|
595
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
596
|
+
*/
|
597
|
+
const tt = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
|
598
|
+
/**
|
599
|
+
* @license
|
600
|
+
* Copyright 2017 Google LLC
|
601
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
602
|
+
*/
|
603
|
+
function Bt(r, t) {
|
604
|
+
return (e, s, i) => {
|
605
|
+
const o = (n) => {
|
606
|
+
var a;
|
607
|
+
return ((a = n.renderRoot) == null ? void 0 : a.querySelector(r)) ?? null;
|
608
|
+
};
|
609
|
+
if (t) {
|
610
|
+
const { get: n, set: a } = typeof s == "object" ? e : i ?? (() => {
|
611
|
+
const h = Symbol();
|
612
|
+
return { get() {
|
613
|
+
return this[h];
|
614
|
+
}, set(l) {
|
615
|
+
this[h] = l;
|
616
|
+
} };
|
617
|
+
})();
|
618
|
+
return tt(e, s, { get() {
|
619
|
+
let h = n.call(this);
|
620
|
+
return h === void 0 && (h = o(this), (h !== null || this.hasUpdated) && a.call(this, h)), h;
|
621
|
+
} });
|
622
|
+
}
|
623
|
+
return tt(e, s, { get() {
|
624
|
+
return o(this);
|
625
|
+
} });
|
626
|
+
};
|
627
|
+
}
|
628
|
+
const j = /* @__PURE__ */ new Set(), Ot = () => {
|
629
|
+
const r = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
|
630
|
+
j.forEach((t) => {
|
631
|
+
t.setAttribute("dir", r);
|
632
|
+
});
|
633
|
+
}, Mt = new MutationObserver(Ot);
|
634
|
+
Mt.observe(document.documentElement, {
|
635
|
+
attributes: !0,
|
636
|
+
attributeFilter: ["dir"]
|
637
|
+
});
|
638
|
+
const Tt = (r) => r.startManagingContentDirection !== void 0 || r.tagName === "LUZMO-THEME";
|
639
|
+
function Rt(r) {
|
640
|
+
class t extends r {
|
641
|
+
/**
|
642
|
+
* @private
|
643
|
+
*/
|
644
|
+
get isLTR() {
|
645
|
+
return this.dir === "ltr";
|
646
|
+
}
|
647
|
+
hasVisibleFocusInTree() {
|
648
|
+
const i = ((o = document) => {
|
649
|
+
var h;
|
650
|
+
let n = o.activeElement;
|
651
|
+
for (; n != null && n.shadowRoot && n.shadowRoot.activeElement; )
|
652
|
+
n = n.shadowRoot.activeElement;
|
653
|
+
const a = n ? [n] : [];
|
654
|
+
for (; n; ) {
|
655
|
+
const l = n.assignedSlot || n.parentElement || ((h = n.getRootNode()) == null ? void 0 : h.host);
|
656
|
+
l && a.push(l), n = l;
|
657
|
+
}
|
658
|
+
return a;
|
659
|
+
})(this.getRootNode())[0];
|
660
|
+
if (!i)
|
661
|
+
return !1;
|
662
|
+
try {
|
663
|
+
return i.matches(":focus-visible") || i.matches(".focus-visible");
|
664
|
+
} catch {
|
665
|
+
return i.matches(".focus-visible");
|
666
|
+
}
|
667
|
+
}
|
668
|
+
connectedCallback() {
|
669
|
+
if (!this.hasAttribute("dir")) {
|
670
|
+
let s = this.assignedSlot || this.parentNode;
|
671
|
+
for (; s !== document.documentElement && !Tt(s); )
|
672
|
+
s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
673
|
+
s.parentNode || // DOM Element detected
|
674
|
+
s.host;
|
675
|
+
if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
|
676
|
+
j.add(this);
|
677
|
+
else {
|
678
|
+
const { localName: i } = s;
|
679
|
+
i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
|
680
|
+
s.startManagingContentDirection(this);
|
681
|
+
}) : s.startManagingContentDirection(this);
|
682
|
+
}
|
683
|
+
this._dirParent = s;
|
684
|
+
}
|
685
|
+
super.connectedCallback();
|
686
|
+
}
|
687
|
+
disconnectedCallback() {
|
688
|
+
super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? j.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
|
689
|
+
}
|
690
|
+
}
|
691
|
+
return t;
|
692
|
+
}
|
693
|
+
class Vt extends Rt(P) {
|
694
|
+
}
|
695
|
+
var Ht = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, zt = (r, t, e, s) => {
|
696
|
+
for (var i = Nt(t, e), o = r.length - 1, n; o >= 0; o--)
|
697
|
+
(n = r[o]) && (i = n(t, e, i) || i);
|
698
|
+
return i && Ht(t, e, i), i;
|
699
|
+
};
|
700
|
+
const Wt = {
|
701
|
+
xxs: "xxs",
|
702
|
+
xs: "xs",
|
703
|
+
s: "s",
|
704
|
+
m: "m",
|
705
|
+
l: "l",
|
706
|
+
xl: "xl",
|
707
|
+
xxl: "xxl"
|
708
|
+
};
|
709
|
+
function qt(r, {
|
710
|
+
validSizes: t = ["s", "m", "l", "xl"],
|
711
|
+
noDefaultSize: e,
|
712
|
+
defaultSize: s = "m"
|
713
|
+
} = {}) {
|
714
|
+
class i extends r {
|
715
|
+
constructor() {
|
716
|
+
super(...arguments), this._size = s;
|
717
|
+
}
|
718
|
+
get size() {
|
719
|
+
return this._size || s;
|
720
|
+
}
|
721
|
+
set size(n) {
|
722
|
+
const a = e ? null : s, h = n && n.toLocaleLowerCase(), l = t.includes(h) ? h : a;
|
723
|
+
if (l && this.setAttribute("size", l), this._size === l)
|
724
|
+
return;
|
725
|
+
const u = this._size;
|
726
|
+
this._size = l, this.requestUpdate("size", u);
|
727
|
+
}
|
728
|
+
update(n) {
|
729
|
+
!this.hasAttribute("size") && !e && this.setAttribute("size", this.size), super.update(n);
|
730
|
+
}
|
731
|
+
}
|
732
|
+
return zt([
|
733
|
+
Ut({ type: String })
|
734
|
+
], i.prototype, "size"), i;
|
735
|
+
}
|
736
|
+
/**
|
737
|
+
* @license
|
738
|
+
* Copyright 2018 Google LLC
|
739
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
740
|
+
*/
|
741
|
+
const Ft = (r) => r ?? d;
|
742
|
+
export {
|
743
|
+
Pt as B,
|
744
|
+
d as E,
|
745
|
+
Vt as L,
|
746
|
+
qt as S,
|
747
|
+
v as T,
|
748
|
+
Wt as a,
|
749
|
+
tt as b,
|
750
|
+
jt as c,
|
751
|
+
Bt as e,
|
752
|
+
B as f,
|
753
|
+
Ut as n,
|
754
|
+
Ft as o,
|
755
|
+
lt as r,
|
756
|
+
Dt as x
|
757
|
+
};
|