ma-icons 0.3.17 → 0.3.18
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/dist/ma-icons.es.js +91 -90
- package/dist/ma-icons.iife.js +7 -7
- package/package.json +1 -1
package/dist/ma-icons.es.js
CHANGED
|
@@ -24,11 +24,11 @@ let Q2 = class {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
const s0 = (i) => new Q2(typeof i == "string" ? i : i + "", void 0, W), o0 = (i, ...t) => {
|
|
27
|
-
const e = i.length === 1 ? i[0] : t.reduce((s, o,
|
|
28
|
-
if (
|
|
29
|
-
if (typeof
|
|
30
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
31
|
-
})(o) + i[
|
|
27
|
+
const e = i.length === 1 ? i[0] : t.reduce((s, o, n) => s + ((r) => {
|
|
28
|
+
if (r._$cssResult$ === !0) return r.cssText;
|
|
29
|
+
if (typeof r == "number") return r;
|
|
30
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
31
|
+
})(o) + i[n + 1], i[0]);
|
|
32
32
|
return new Q2(e, i, W);
|
|
33
33
|
}, i0 = (i, t) => {
|
|
34
34
|
if (q) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
@@ -90,14 +90,14 @@ let M = class extends HTMLElement {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
static getPropertyDescriptor(t, e, s) {
|
|
93
|
-
const { get: o, set:
|
|
93
|
+
const { get: o, set: n } = c0(this.prototype, t) ?? { get() {
|
|
94
94
|
return this[e];
|
|
95
|
-
}, set(
|
|
96
|
-
this[e] =
|
|
95
|
+
}, set(r) {
|
|
96
|
+
this[e] = r;
|
|
97
97
|
} };
|
|
98
|
-
return { get: o, set(
|
|
98
|
+
return { get: o, set(r) {
|
|
99
99
|
const l = o == null ? void 0 : o.call(this);
|
|
100
|
-
|
|
100
|
+
n == null || n.call(this, r), this.requestUpdate(t, l, s);
|
|
101
101
|
}, configurable: !0, enumerable: !0 };
|
|
102
102
|
}
|
|
103
103
|
static getPropertyOptions(t) {
|
|
@@ -182,32 +182,32 @@ let M = class extends HTMLElement {
|
|
|
182
182
|
this._$AK(t, s);
|
|
183
183
|
}
|
|
184
184
|
_$ET(t, e) {
|
|
185
|
-
var
|
|
185
|
+
var n;
|
|
186
186
|
const s = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, s);
|
|
187
187
|
if (o !== void 0 && s.reflect === !0) {
|
|
188
|
-
const
|
|
189
|
-
this._$Em = t,
|
|
188
|
+
const r = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : T).toAttribute(e, s.type);
|
|
189
|
+
this._$Em = t, r == null ? this.removeAttribute(o) : this.setAttribute(o, r), this._$Em = null;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
_$AK(t, e) {
|
|
193
|
-
var
|
|
193
|
+
var n, r;
|
|
194
194
|
const s = this.constructor, o = s._$Eh.get(t);
|
|
195
195
|
if (o !== void 0 && this._$Em !== o) {
|
|
196
|
-
const l = s.getPropertyOptions(o), c = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((
|
|
197
|
-
this._$Em = o, this[o] = c.fromAttribute(e, l.type) ?? ((
|
|
196
|
+
const l = s.getPropertyOptions(o), c = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((n = l.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? l.converter : T;
|
|
197
|
+
this._$Em = o, this[o] = c.fromAttribute(e, l.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(o)) ?? null, this._$Em = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
requestUpdate(t, e, s) {
|
|
201
201
|
var o;
|
|
202
202
|
if (t !== void 0) {
|
|
203
|
-
const
|
|
204
|
-
if (s ?? (s =
|
|
203
|
+
const n = this.constructor, r = this[t];
|
|
204
|
+
if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? F)(r, e) || s.useDefault && s.reflect && r === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
|
|
205
205
|
this.C(t, e, s);
|
|
206
206
|
}
|
|
207
207
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
208
208
|
}
|
|
209
|
-
C(t, e, { useDefault: s, reflect: o, wrapped:
|
|
210
|
-
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t,
|
|
209
|
+
C(t, e, { useDefault: s, reflect: o, wrapped: n }, r) {
|
|
210
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), n !== !0 || r !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), o === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
211
211
|
}
|
|
212
212
|
async _$EP() {
|
|
213
213
|
this.isUpdatePending = !0;
|
|
@@ -227,21 +227,21 @@ let M = class extends HTMLElement {
|
|
|
227
227
|
if (!this.isUpdatePending) return;
|
|
228
228
|
if (!this.hasUpdated) {
|
|
229
229
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
230
|
-
for (const [
|
|
230
|
+
for (const [n, r] of this._$Ep) this[n] = r;
|
|
231
231
|
this._$Ep = void 0;
|
|
232
232
|
}
|
|
233
233
|
const o = this.constructor.elementProperties;
|
|
234
|
-
if (o.size > 0) for (const [
|
|
235
|
-
const { wrapped: l } =
|
|
236
|
-
l !== !0 || this._$AL.has(
|
|
234
|
+
if (o.size > 0) for (const [n, r] of o) {
|
|
235
|
+
const { wrapped: l } = r, c = this[n];
|
|
236
|
+
l !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, r, c);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
let t = !1;
|
|
240
240
|
const e = this._$AL;
|
|
241
241
|
try {
|
|
242
242
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((o) => {
|
|
243
|
-
var
|
|
244
|
-
return (
|
|
243
|
+
var n;
|
|
244
|
+
return (n = o.hostUpdate) == null ? void 0 : n.call(o);
|
|
245
245
|
}), this.update(e)) : this._$EM();
|
|
246
246
|
} catch (o) {
|
|
247
247
|
throw t = !1, this._$EM(), o;
|
|
@@ -292,21 +292,21 @@ function e0(i, t) {
|
|
|
292
292
|
}
|
|
293
293
|
const w0 = (i, t) => {
|
|
294
294
|
const e = i.length - 1, s = [];
|
|
295
|
-
let o,
|
|
295
|
+
let o, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = A;
|
|
296
296
|
for (let l = 0; l < e; l++) {
|
|
297
297
|
const c = i[l];
|
|
298
298
|
let h, p, a = -1, v = 0;
|
|
299
|
-
for (; v < c.length && (
|
|
300
|
-
const u =
|
|
301
|
-
|
|
299
|
+
for (; v < c.length && (r.lastIndex = v, p = r.exec(c), p !== null); ) v = r.lastIndex, r === A ? p[1] === "!--" ? r = q2 : p[1] !== void 0 ? r = W2 : p[2] !== void 0 ? (t0.test(p[2]) && (o = RegExp("</" + p[2], "g")), r = b) : p[3] !== void 0 && (r = b) : r === b ? p[0] === ">" ? (r = o ?? A, a = -1) : p[1] === void 0 ? a = -2 : (a = r.lastIndex - p[2].length, h = p[1], r = p[3] === void 0 ? b : p[3] === '"' ? J2 : F2) : r === J2 || r === F2 ? r = b : r === q2 || r === W2 ? r = A : (r = b, o = void 0);
|
|
300
|
+
const u = r === b && i[l + 1].startsWith("/>") ? " " : "";
|
|
301
|
+
n += r === A ? c + p0 : a >= 0 ? (s.push(h), c.slice(0, a) + X2 + c.slice(a) + _ + u) : c + _ + (a === -2 ? l : u);
|
|
302
302
|
}
|
|
303
|
-
return [e0(i,
|
|
303
|
+
return [e0(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
304
304
|
};
|
|
305
305
|
class B {
|
|
306
306
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
307
307
|
let o;
|
|
308
308
|
this.parts = [];
|
|
309
|
-
let
|
|
309
|
+
let n = 0, r = 0;
|
|
310
310
|
const l = t.length - 1, c = this.parts, [h, p] = w0(t, e);
|
|
311
311
|
if (this.el = B.createElement(h, s), f.currentNode = this.el.content, e === 2 || e === 3) {
|
|
312
312
|
const a = this.el.content.firstChild;
|
|
@@ -315,23 +315,23 @@ class B {
|
|
|
315
315
|
for (; (o = f.nextNode()) !== null && c.length < l; ) {
|
|
316
316
|
if (o.nodeType === 1) {
|
|
317
317
|
if (o.hasAttributes()) for (const a of o.getAttributeNames()) if (a.endsWith(X2)) {
|
|
318
|
-
const v = p[
|
|
319
|
-
c.push({ type: 1, index:
|
|
320
|
-
} else a.startsWith(_) && (c.push({ type: 6, index:
|
|
318
|
+
const v = p[r++], u = o.getAttribute(a).split(_), U = /([.?@])?(.*)/.exec(v);
|
|
319
|
+
c.push({ type: 1, index: n, name: U[2], strings: u, ctor: U[1] === "." ? u0 : U[1] === "?" ? _0 : U[1] === "@" ? m0 : R }), o.removeAttribute(a);
|
|
320
|
+
} else a.startsWith(_) && (c.push({ type: 6, index: n }), o.removeAttribute(a));
|
|
321
321
|
if (t0.test(o.tagName)) {
|
|
322
322
|
const a = o.textContent.split(_), v = a.length - 1;
|
|
323
323
|
if (v > 0) {
|
|
324
324
|
o.textContent = N ? N.emptyScript : "";
|
|
325
|
-
for (let u = 0; u < v; u++) o.append(a[u], V()), f.nextNode(), c.push({ type: 2, index: ++
|
|
325
|
+
for (let u = 0; u < v; u++) o.append(a[u], V()), f.nextNode(), c.push({ type: 2, index: ++n });
|
|
326
326
|
o.append(a[v], V());
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
} else if (o.nodeType === 8) if (o.data === Y2) c.push({ type: 2, index:
|
|
329
|
+
} else if (o.nodeType === 8) if (o.data === Y2) c.push({ type: 2, index: n });
|
|
330
330
|
else {
|
|
331
331
|
let a = -1;
|
|
332
|
-
for (; (a = o.data.indexOf(_, a + 1)) !== -1; ) c.push({ type: 7, index:
|
|
332
|
+
for (; (a = o.data.indexOf(_, a + 1)) !== -1; ) c.push({ type: 7, index: n }), a += _.length - 1;
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
n++;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
static createElement(t, e) {
|
|
@@ -340,11 +340,11 @@ class B {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
function L(i, t, e = i, s) {
|
|
343
|
-
var
|
|
343
|
+
var r, l;
|
|
344
344
|
if (t === y) return t;
|
|
345
|
-
let o = s !== void 0 ? (
|
|
346
|
-
const
|
|
347
|
-
return (o == null ? void 0 : o.constructor) !==
|
|
345
|
+
let o = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
|
|
346
|
+
const n = P(t) ? void 0 : t._$litDirective$;
|
|
347
|
+
return (o == null ? void 0 : o.constructor) !== n && ((l = o == null ? void 0 : o._$AO) == null || l.call(o, !1), n === void 0 ? o = void 0 : (o = new n(i), o._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = o : e._$Cl = o), o !== void 0 && (t = L(i, o._$AS(i, t.values), o, s)), t;
|
|
348
348
|
}
|
|
349
349
|
class v0 {
|
|
350
350
|
constructor(t, e) {
|
|
@@ -359,13 +359,13 @@ class v0 {
|
|
|
359
359
|
u(t) {
|
|
360
360
|
const { el: { content: e }, parts: s } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? $).importNode(e, !0);
|
|
361
361
|
f.currentNode = o;
|
|
362
|
-
let
|
|
362
|
+
let n = f.nextNode(), r = 0, l = 0, c = s[0];
|
|
363
363
|
for (; c !== void 0; ) {
|
|
364
|
-
if (
|
|
364
|
+
if (r === c.index) {
|
|
365
365
|
let h;
|
|
366
|
-
c.type === 2 ? h = new O(
|
|
366
|
+
c.type === 2 ? h = new O(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new b0(n, this, t)), this._$AV.push(h), c = s[++l];
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
r !== (c == null ? void 0 : c.index) && (n = f.nextNode(), r++);
|
|
369
369
|
}
|
|
370
370
|
return f.currentNode = $, o;
|
|
371
371
|
}
|
|
@@ -406,12 +406,12 @@ class O {
|
|
|
406
406
|
this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T($.createTextNode(t)), this._$AH = t;
|
|
407
407
|
}
|
|
408
408
|
$(t) {
|
|
409
|
-
var
|
|
409
|
+
var n;
|
|
410
410
|
const { values: e, _$litType$: s } = t, o = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = B.createElement(e0(s.h, s.h[0]), this.options)), s);
|
|
411
|
-
if (((
|
|
411
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === o) this._$AH.p(e);
|
|
412
412
|
else {
|
|
413
|
-
const
|
|
414
|
-
|
|
413
|
+
const r = new v0(o, this), l = r.u(this.options);
|
|
414
|
+
r.p(e), this.T(l), this._$AH = r;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
_$AC(t) {
|
|
@@ -422,7 +422,7 @@ class O {
|
|
|
422
422
|
J(this._$AH) || (this._$AH = [], this._$AR());
|
|
423
423
|
const e = this._$AH;
|
|
424
424
|
let s, o = 0;
|
|
425
|
-
for (const
|
|
425
|
+
for (const n of t) o === e.length ? e.push(s = new O(this.O(V()), this.O(V()), this, this.options)) : s = e[o], s._$AI(n), o++;
|
|
426
426
|
o < e.length && (this._$AR(s && s._$AB.nextSibling, o), e.length = o);
|
|
427
427
|
}
|
|
428
428
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -444,19 +444,19 @@ class R {
|
|
|
444
444
|
get _$AU() {
|
|
445
445
|
return this._$AM._$AU;
|
|
446
446
|
}
|
|
447
|
-
constructor(t, e, s, o,
|
|
448
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options =
|
|
447
|
+
constructor(t, e, s, o, n) {
|
|
448
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
|
449
449
|
}
|
|
450
450
|
_$AI(t, e = this, s, o) {
|
|
451
|
-
const
|
|
452
|
-
let
|
|
453
|
-
if (
|
|
451
|
+
const n = this.strings;
|
|
452
|
+
let r = !1;
|
|
453
|
+
if (n === void 0) t = L(this, t, e, 0), r = !P(t) || t !== this._$AH && t !== y, r && (this._$AH = t);
|
|
454
454
|
else {
|
|
455
455
|
const l = t;
|
|
456
456
|
let c, h;
|
|
457
|
-
for (t =
|
|
457
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) h = L(this, l[s + c], e, c), h === y && (h = this._$AH[c]), r || (r = !P(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
|
458
458
|
}
|
|
459
|
-
|
|
459
|
+
r && !o && this.j(t);
|
|
460
460
|
}
|
|
461
461
|
j(t) {
|
|
462
462
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -479,13 +479,13 @@ class _0 extends R {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
class m0 extends R {
|
|
482
|
-
constructor(t, e, s, o,
|
|
483
|
-
super(t, e, s, o,
|
|
482
|
+
constructor(t, e, s, o, n) {
|
|
483
|
+
super(t, e, s, o, n), this.type = 5;
|
|
484
484
|
}
|
|
485
485
|
_$AI(t, e = this) {
|
|
486
486
|
if ((t = L(this, t, e, 0) ?? d) === y) return;
|
|
487
|
-
const s = this._$AH, o = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
488
|
-
o && this.element.removeEventListener(this.name, this, s),
|
|
487
|
+
const s = this._$AH, o = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || o);
|
|
488
|
+
o && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
489
489
|
}
|
|
490
490
|
handleEvent(t) {
|
|
491
491
|
var e;
|
|
@@ -509,8 +509,8 @@ const f0 = (i, t, e) => {
|
|
|
509
509
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
510
510
|
let o = s._$litPart$;
|
|
511
511
|
if (o === void 0) {
|
|
512
|
-
const
|
|
513
|
-
s._$litPart$ = o = new O(t.insertBefore(V(),
|
|
512
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
513
|
+
s._$litPart$ = o = new O(t.insertBefore(V(), n), n, void 0, e ?? {});
|
|
514
514
|
}
|
|
515
515
|
return o._$AI(i), o;
|
|
516
516
|
};
|
|
@@ -567,29 +567,29 @@ const C0 = (i) => (t, e) => {
|
|
|
567
567
|
*/
|
|
568
568
|
const $0 = { attribute: !0, type: String, converter: T, reflect: !1, hasChanged: F }, x0 = (i = $0, t, e) => {
|
|
569
569
|
const { kind: s, metadata: o } = e;
|
|
570
|
-
let
|
|
571
|
-
if (
|
|
572
|
-
const { name:
|
|
570
|
+
let n = globalThis.litPropertyMetadata.get(o);
|
|
571
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(o, n = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), n.set(e.name, i), s === "accessor") {
|
|
572
|
+
const { name: r } = e;
|
|
573
573
|
return { set(l) {
|
|
574
574
|
const c = t.get.call(this);
|
|
575
|
-
t.set.call(this, l), this.requestUpdate(
|
|
575
|
+
t.set.call(this, l), this.requestUpdate(r, c, i);
|
|
576
576
|
}, init(l) {
|
|
577
|
-
return l !== void 0 && this.C(
|
|
577
|
+
return l !== void 0 && this.C(r, void 0, i, l), l;
|
|
578
578
|
} };
|
|
579
579
|
}
|
|
580
580
|
if (s === "setter") {
|
|
581
|
-
const { name:
|
|
581
|
+
const { name: r } = e;
|
|
582
582
|
return function(l) {
|
|
583
|
-
const c = this[
|
|
584
|
-
t.call(this, l), this.requestUpdate(
|
|
583
|
+
const c = this[r];
|
|
584
|
+
t.call(this, l), this.requestUpdate(r, c, i);
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
587
|
throw Error("Unsupported decorator location: " + s);
|
|
588
588
|
};
|
|
589
589
|
function w(i) {
|
|
590
|
-
return (t, e) => typeof e == "object" ? x0(i, t, e) : ((s, o,
|
|
591
|
-
const
|
|
592
|
-
return o.constructor.createProperty(
|
|
590
|
+
return (t, e) => typeof e == "object" ? x0(i, t, e) : ((s, o, n) => {
|
|
591
|
+
const r = o.hasOwnProperty(n);
|
|
592
|
+
return o.constructor.createProperty(n, s), r ? Object.getOwnPropertyDescriptor(o, n) : void 0;
|
|
593
593
|
})(i, t, e);
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
@@ -601,8 +601,8 @@ function M0(i) {
|
|
|
601
601
|
return w({ ...i, state: !0, attribute: !1 });
|
|
602
602
|
}
|
|
603
603
|
var y0 = Object.defineProperty, L0 = Object.getOwnPropertyDescriptor, k = (i, t, e, s) => {
|
|
604
|
-
for (var o = s > 1 ? void 0 : s ? L0(t, e) : t,
|
|
605
|
-
(
|
|
604
|
+
for (var o = s > 1 ? void 0 : s ? L0(t, e) : t, n = i.length - 1, r; n >= 0; n--)
|
|
605
|
+
(r = i[n]) && (o = (s ? r(t, e, o) : r(o)) || o);
|
|
606
606
|
return s && o && y0(t, e, o), o;
|
|
607
607
|
};
|
|
608
608
|
let g = class extends E {
|
|
@@ -616,32 +616,33 @@ let g = class extends E {
|
|
|
616
616
|
const i = this.svg ? x`<span .innerHTML=${this.svg}></span>` : x``;
|
|
617
617
|
return this.href != null ? x`
|
|
618
618
|
<a download=${this.download} href=${this.href} class="${this.styled ? "styled" : ""}">
|
|
619
|
-
${this.leading ? x`${i} ` : ""}<slot></slot>${this.leading ? "" : x
|
|
619
|
+
${this.leading ? x`${i} ` : ""}<slot></slot>${this.leading ? "" : x`${i}`}
|
|
620
620
|
</a>
|
|
621
621
|
` : x`${i}`;
|
|
622
622
|
}
|
|
623
623
|
async modifySvg() {
|
|
624
|
-
|
|
624
|
+
const i = this.download ? "download" : this.name;
|
|
625
|
+
let t;
|
|
625
626
|
try {
|
|
626
|
-
|
|
627
|
+
t = new URL((/* @__PURE__ */ Object.assign({ "../icons/add-circle.svg": K, "../icons/bottom-left.svg": G, "../icons/bottom-right.svg": Q, "../icons/camera-video.svg": X, "../icons/camera.svg": Y, "../icons/cmd.svg": t2, "../icons/code.svg": e2, "../icons/down.svg": s2, "../icons/download.svg": o2, "../icons/edit.svg": i2, "../icons/explore.svg": r2, "../icons/external-2.svg": n2, "../icons/fullscreen-exit.svg": c2, "../icons/fullscreen.svg": l2, "../icons/github.svg": a2, "../icons/heart-filled.svg": h2, "../icons/heart.svg": d2, "../icons/home.svg": p2, "../icons/info.svg": g2, "../icons/input.svg": k2, "../icons/instagram.svg": w2, "../icons/left.svg": v2, "../icons/lock-closed.svg": u2, "../icons/lock-open.svg": _2, "../icons/lock.svg": m2, "../icons/login.svg": b2, "../icons/ma-2.svg": f2, "../icons/ma.svg": C2, "../icons/menu.svg": $2, "../icons/options.svg": x2, "../icons/pants.svg": M2, "../icons/pause.svg": y2, "../icons/person.svg": L2, "../icons/play.svg": A2, "../icons/remove-circle.svg": H2, "../icons/right.svg": S2, "../icons/search.svg": E2, "../icons/send.svg": V2, "../icons/settings.svg": P2, "../icons/tiktok.svg": B2, "../icons/top-left.svg": O2, "../icons/top-right.svg": U2, "../icons/trash.svg": Z2, "../icons/up.svg": T2, "../icons/youtube.svg": N2 }))[`../icons/${i}.svg`], import.meta.url).href;
|
|
627
628
|
} catch {
|
|
628
|
-
|
|
629
|
+
t = `/icons/${i}.svg`;
|
|
629
630
|
}
|
|
630
|
-
let
|
|
631
|
+
let e;
|
|
631
632
|
try {
|
|
632
|
-
|
|
633
|
+
e = new URL((/* @__PURE__ */ Object.assign({ "../icons/add-circle.svg": K, "../icons/bottom-left.svg": G, "../icons/bottom-right.svg": Q, "../icons/camera-video.svg": X, "../icons/camera.svg": Y, "../icons/cmd.svg": t2, "../icons/code.svg": e2, "../icons/down.svg": s2, "../icons/download.svg": o2, "../icons/edit.svg": i2, "../icons/explore.svg": r2, "../icons/external-2.svg": n2, "../icons/fullscreen-exit.svg": c2, "../icons/fullscreen.svg": l2, "../icons/github.svg": a2, "../icons/heart-filled.svg": h2, "../icons/heart.svg": d2, "../icons/home.svg": p2, "../icons/info.svg": g2, "../icons/input.svg": k2, "../icons/instagram.svg": w2, "../icons/left.svg": v2, "../icons/lock-closed.svg": u2, "../icons/lock-open.svg": _2, "../icons/lock.svg": m2, "../icons/login.svg": b2, "../icons/ma-2.svg": f2, "../icons/ma.svg": C2, "../icons/menu.svg": $2, "../icons/options.svg": x2, "../icons/pants.svg": M2, "../icons/pause.svg": y2, "../icons/person.svg": L2, "../icons/play.svg": A2, "../icons/remove-circle.svg": H2, "../icons/right.svg": S2, "../icons/search.svg": E2, "../icons/send.svg": V2, "../icons/settings.svg": P2, "../icons/tiktok.svg": B2, "../icons/top-left.svg": O2, "../icons/top-right.svg": U2, "../icons/trash.svg": Z2, "../icons/up.svg": T2, "../icons/youtube.svg": N2 }))[`../icons/${this.altname}.svg`], import.meta.url).href;
|
|
633
634
|
} catch {
|
|
634
|
-
|
|
635
|
+
e = `/icons/${this.altname}.svg`;
|
|
635
636
|
}
|
|
636
|
-
let
|
|
637
|
+
let s, o;
|
|
637
638
|
try {
|
|
638
|
-
|
|
639
|
+
s = await fetch(t), o = await s.text();
|
|
639
640
|
} catch {
|
|
640
|
-
|
|
641
|
+
s = await fetch(e), o = await s.text();
|
|
641
642
|
}
|
|
642
|
-
const
|
|
643
|
+
const n = new DOMParser().parseFromString(o, "image/svg+xml"), r = n.querySelector("svg");
|
|
643
644
|
if (!r) return "";
|
|
644
|
-
r == null || r.setAttribute("width", this.size), r == null || r.setAttribute("height", this.size), r == null || r.setAttribute("fill", "none"),
|
|
645
|
+
r == null || r.setAttribute("width", this.size), r == null || r.setAttribute("height", this.size), r == null || r.setAttribute("fill", "none"), n.querySelectorAll("[stroke]").forEach((l) => l.setAttribute("stroke", this.href ? "hsl(0deg 0% 0% / calc(100% * 3/8))" : this.color)), n.querySelectorAll("[stroke-width]").forEach((l) => l.setAttribute("stroke-width", this.weight)), this.svg = r == null ? void 0 : r.outerHTML;
|
|
645
646
|
}
|
|
646
647
|
};
|
|
647
648
|
g.styles = o0`
|
package/dist/ma-icons.iife.js
CHANGED
|
@@ -2,17 +2,17 @@ var MaIcons=function(z){"use strict";var o0;var x=typeof document<"u"?document.c
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const T=globalThis,D=T.ShadowRoot&&(T.ShadyCSS===void 0||T.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I=Symbol(),z2=new WeakMap;let D2=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==I)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(D&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=z2.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&z2.set(e,t))}return t}toString(){return this.cssText}};const i0=i=>new D2(typeof i=="string"?i:i+"",void 0,I),r0=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,o,
|
|
5
|
+
*/const T=globalThis,D=T.ShadowRoot&&(T.ShadyCSS===void 0||T.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I=Symbol(),z2=new WeakMap;let D2=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==I)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(D&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=z2.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&z2.set(e,t))}return t}toString(){return this.cssText}};const i0=i=>new D2(typeof i=="string"?i:i+"",void 0,I),r0=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,o,n)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new D2(e,i,I)},n0=(i,t)=>{if(D)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),o=T.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)}},I2=D?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i0(e)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:c0,defineProperty:a0,getOwnPropertyDescriptor:l0,getOwnPropertyNames:h0,getOwnPropertySymbols:d0,getPrototypeOf:p0}=Object,u=globalThis,q2=u.trustedTypes,g0=q2?q2.emptyScript:"",q=u.reactiveElementPolyfillSupport,S=(i,t)=>i,Z={toAttribute(i,t){switch(t){case Boolean:i=i?g0:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},W=(i,t)=>!c0(i,t),W2={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),u.litPropertyMetadata??(u.litPropertyMetadata=new WeakMap);let M=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=W2){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&a0(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:
|
|
9
|
+
*/const{is:c0,defineProperty:a0,getOwnPropertyDescriptor:l0,getOwnPropertyNames:h0,getOwnPropertySymbols:d0,getPrototypeOf:p0}=Object,u=globalThis,q2=u.trustedTypes,g0=q2?q2.emptyScript:"",q=u.reactiveElementPolyfillSupport,S=(i,t)=>i,Z={toAttribute(i,t){switch(t){case Boolean:i=i?g0:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},W=(i,t)=>!c0(i,t),W2={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),u.litPropertyMetadata??(u.litPropertyMetadata=new WeakMap);let M=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=W2){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&a0(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:n}=l0(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get:o,set(r){const a=o==null?void 0:o.call(this);n==null||n.call(this,r),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??W2}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=p0(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...h0(e),...d0(e)];for(const o of s)this.createProperty(o,e[o])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const o of s)e.unshift(I2(o))}else t!==void 0&&e.push(I2(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return n0(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){const r=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:Z).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var n,r;const s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const a=s.getPropertyOptions(o),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:Z;this._$Em=o,this[o]=c.fromAttribute(e,a.type)??((r=this._$Ej)==null?void 0:r.get(o))??null,this._$Em=null}}requestUpdate(t,e,s){var o;if(t!==void 0){const n=this.constructor,r=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??W)(r,e)||s.useDefault&&s.reflect&&r===((o=this._$Ej)==null?void 0:o.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:n},r){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,r??e??this[t]),n!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,r]of o){const{wrapped:a}=r,c=this[n];a!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,r,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var o;return(o=s.hostUpdated)==null?void 0:o.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[S("elementProperties")]=new Map,M[S("finalized")]=new Map,q==null||q({ReactiveElement:M}),(u.reactiveElementVersions??(u.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const H=globalThis,R=H.trustedTypes,F2=R?R.createPolicy("lit-html",{createHTML:i=>i}):void 0,J2="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,K2="?"+_,k0=`<${K2}>`,f=document,E=()=>f.createComment(""),V=i=>i===null||typeof i!="object"&&typeof i!="function",F=Array.isArray,w0=i=>F(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",J=`[
|
|
14
14
|
\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G2=/-->/g,Q2=/>/g,b=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),X2=/'/g,Y2=/"/g,t0=/^(?:script|style|textarea|title)$/i,v0=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),y=v0(1),L=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),e0=new WeakMap,C=f.createTreeWalker(f,129);function s0(i,t){if(!F(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return F2!==void 0?F2.createHTML(t):t}const u0=(i,t)=>{const e=i.length-1,s=[];let o,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),X2=/'/g,Y2=/"/g,t0=/^(?:script|style|textarea|title)$/i,v0=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),y=v0(1),L=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),e0=new WeakMap,C=f.createTreeWalker(f,129);function s0(i,t){if(!F(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return F2!==void 0?F2.createHTML(t):t}const u0=(i,t)=>{const e=i.length-1,s=[];let o,n=t===2?"<svg>":t===3?"<math>":"",r=P;for(let a=0;a<e;a++){const c=i[a];let d,p,l=-1,v=0;for(;v<c.length&&(r.lastIndex=v,p=r.exec(c),p!==null);)v=r.lastIndex,r===P?p[1]==="!--"?r=G2:p[1]!==void 0?r=Q2:p[2]!==void 0?(t0.test(p[2])&&(o=RegExp("</"+p[2],"g")),r=b):p[3]!==void 0&&(r=b):r===b?p[0]===">"?(r=o??P,l=-1):p[1]===void 0?l=-2:(l=r.lastIndex-p[2].length,d=p[1],r=p[3]===void 0?b:p[3]==='"'?Y2:X2):r===Y2||r===X2?r=b:r===G2||r===Q2?r=P:(r=b,o=void 0);const m=r===b&&i[a+1].startsWith("/>")?" ":"";n+=r===P?c+k0:l>=0?(s.push(d),c.slice(0,l)+J2+c.slice(l)+_+m):c+_+(l===-2?a:m)}return[s0(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class B{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,r=0;const a=t.length-1,c=this.parts,[d,p]=u0(t,e);if(this.el=B.createElement(d,s),C.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=C.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const l of o.getAttributeNames())if(l.endsWith(J2)){const v=p[r++],m=o.getAttribute(l).split(_),j=/([.?@])?(.*)/.exec(v);c.push({type:1,index:n,name:j[2],strings:m,ctor:j[1]==="."?m0:j[1]==="?"?f0:j[1]==="@"?b0:N}),o.removeAttribute(l)}else l.startsWith(_)&&(c.push({type:6,index:n}),o.removeAttribute(l));if(t0.test(o.tagName)){const l=o.textContent.split(_),v=l.length-1;if(v>0){o.textContent=R?R.emptyScript:"";for(let m=0;m<v;m++)o.append(l[m],E()),C.nextNode(),c.push({type:2,index:++n});o.append(l[v],E())}}}else if(o.nodeType===8)if(o.data===K2)c.push({type:2,index:n});else{let l=-1;for(;(l=o.data.indexOf(_,l+1))!==-1;)c.push({type:7,index:n}),l+=_.length-1}n++}}static createElement(t,e){const s=f.createElement("template");return s.innerHTML=t,s}}function A(i,t,e=i,s){var r,a;if(t===L)return t;let o=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const n=V(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=o:e._$Cl=o),o!==void 0&&(t=A(i,o._$AS(i,t.values),o,s)),t}class _0{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=((t==null?void 0:t.creationScope)??f).importNode(e,!0);C.currentNode=o;let n=C.nextNode(),r=0,a=0,c=s[0];for(;c!==void 0;){if(r===c.index){let d;c.type===2?d=new U(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new C0(n,this,t)),this._$AV.push(d),c=s[++a]}r!==(c==null?void 0:c.index)&&(n=C.nextNode(),r++)}return C.currentNode=f,o}p(t){let e=0;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++}}class U{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=A(this,t,e),V(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==L&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):w0(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==h&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(f.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(s0(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{const r=new _0(o,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=e0.get(t.strings);return e===void 0&&e0.set(t.strings,e=new B(t)),e}k(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const n of t)o===e.length?e.push(s=new U(this.O(E()),this.O(E()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=h}_$AI(t,e=this,s,o){const n=this.strings;let r=!1;if(n===void 0)t=A(this,t,e,0),r=!V(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const a=t;let c,d;for(t=n[0],c=0;c<n.length-1;c++)d=A(this,a[s+c],e,c),d===L&&(d=this._$AH[c]),r||(r=!V(d)||d!==this._$AH[c]),d===h?t=h:t!==h&&(t+=(d??"")+n[c+1]),this._$AH[c]=d}r&&!o&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class m0 extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class f0 extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class b0 extends N{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=A(this,t,e,0)??h)===L)return;const s=this._$AH,o=t===h&&s!==h||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==h&&(s===h||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class C0{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){A(this,t)}}const K=H.litHtmlPolyfillSupport;K==null||K(B,U),(H.litHtmlVersions??(H.litHtmlVersions=[])).push("3.3.0");const $0=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let o=s._$litPart$;if(o===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=o=new U(t.insertBefore(E(),n),n,void 0,e??{})}return o._$AI(i),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,15 +24,15 @@ var MaIcons=function(z){"use strict";var o0;var x=typeof document<"u"?document.c
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const M0={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:W},y0=(i=M0,t,e)=>{const{kind:s,metadata:o}=e;let
|
|
27
|
+
*/const M0={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:W},y0=(i=M0,t,e)=>{const{kind:s,metadata:o}=e;let n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),s==="setter"&&((i=Object.create(i)).wrapped=!0),n.set(e.name,i),s==="accessor"){const{name:r}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(r,c,i)},init(a){return a!==void 0&&this.C(r,void 0,i,a),a}}}if(s==="setter"){const{name:r}=e;return function(a){const c=this[r];t.call(this,a),this.requestUpdate(r,c,i)}}throw Error("Unsupported decorator location: "+s)};function w(i){return(t,e)=>typeof e=="object"?y0(i,t,e):((s,o,n)=>{const r=o.hasOwnProperty(n);return o.constructor.createProperty(n,s),r?Object.getOwnPropertyDescriptor(o,n):void 0})(i,t,e)}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function L0(i){return w({...i,state:!0,attribute:!1})}var A0=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,k=(i,t,e,s)=>{for(var o=s>1?void 0:s?S0(t,e):t,
|
|
31
|
+
*/function L0(i){return w({...i,state:!0,attribute:!1})}var A0=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,k=(i,t,e,s)=>{for(var o=s>1?void 0:s?S0(t,e):t,n=i.length-1,r;n>=0;n--)(r=i[n])&&(o=(s?r(t,e,o):r(o))||o);return s&&o&&A0(t,e,o),o};let g=class extends O{constructor(){super(...arguments),this.styled=!1,this.download=!1,this.leading=!1,this.name="top-right",this.altname="not-found",this.size="16",this.weight="5",this.color="hsl(0deg 0% 0%)",this.svg=null}updated(i){super.updated(i),i.has("name")&&this.modifySvg()}render(){const i=this.svg?y`<span .innerHTML=${this.svg}></span>`:y``;return this.href!=null?y`
|
|
32
32
|
<a download=${this.download} href=${this.href} class="${this.styled?"styled":""}">
|
|
33
|
-
${this.leading?y`${i} `:""}<slot></slot>${this.leading?"":y
|
|
33
|
+
${this.leading?y`${i} `:""}<slot></slot>${this.leading?"":y`${i}`}
|
|
34
34
|
</a>
|
|
35
|
-
`:y`${i}`}async modifySvg(){
|
|
35
|
+
`:y`${i}`}async modifySvg(){const i=this.download?"download":this.name;let t;try{t=new URL(Object.assign({"../icons/add-circle.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/cmd.svg":s2,"../icons/code.svg":o2,"../icons/down.svg":i2,"../icons/download.svg":r2,"../icons/edit.svg":n2,"../icons/explore.svg":c2,"../icons/external-2.svg":a2,"../icons/fullscreen-exit.svg":l2,"../icons/fullscreen.svg":h2,"../icons/github.svg":d2,"../icons/heart-filled.svg":p2,"../icons/heart.svg":g2,"../icons/home.svg":k2,"../icons/info.svg":w2,"../icons/input.svg":v2,"../icons/instagram.svg":u2,"../icons/left.svg":_2,"../icons/lock-closed.svg":m2,"../icons/lock-open.svg":f2,"../icons/lock.svg":b2,"../icons/login.svg":C2,"../icons/ma-2.svg":$2,"../icons/ma.svg":x2,"../icons/menu.svg":M2,"../icons/options.svg":y2,"../icons/pants.svg":L2,"../icons/pause.svg":A2,"../icons/person.svg":S2,"../icons/play.svg":H2,"../icons/remove-circle.svg":E2,"../icons/right.svg":V2,"../icons/search.svg":P2,"../icons/send.svg":B2,"../icons/settings.svg":U2,"../icons/tiktok.svg":O2,"../icons/top-left.svg":T2,"../icons/top-right.svg":Z2,"../icons/trash.svg":R2,"../icons/up.svg":N2,"../icons/youtube.svg":j2})[`../icons/${i}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{t=`/icons/${i}.svg`}let e;try{e=new URL(Object.assign({"../icons/add-circle.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/cmd.svg":s2,"../icons/code.svg":o2,"../icons/down.svg":i2,"../icons/download.svg":r2,"../icons/edit.svg":n2,"../icons/explore.svg":c2,"../icons/external-2.svg":a2,"../icons/fullscreen-exit.svg":l2,"../icons/fullscreen.svg":h2,"../icons/github.svg":d2,"../icons/heart-filled.svg":p2,"../icons/heart.svg":g2,"../icons/home.svg":k2,"../icons/info.svg":w2,"../icons/input.svg":v2,"../icons/instagram.svg":u2,"../icons/left.svg":_2,"../icons/lock-closed.svg":m2,"../icons/lock-open.svg":f2,"../icons/lock.svg":b2,"../icons/login.svg":C2,"../icons/ma-2.svg":$2,"../icons/ma.svg":x2,"../icons/menu.svg":M2,"../icons/options.svg":y2,"../icons/pants.svg":L2,"../icons/pause.svg":A2,"../icons/person.svg":S2,"../icons/play.svg":H2,"../icons/remove-circle.svg":E2,"../icons/right.svg":V2,"../icons/search.svg":P2,"../icons/send.svg":B2,"../icons/settings.svg":U2,"../icons/tiktok.svg":O2,"../icons/top-left.svg":T2,"../icons/top-right.svg":Z2,"../icons/trash.svg":R2,"../icons/up.svg":N2,"../icons/youtube.svg":j2})[`../icons/${this.altname}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{e=`/icons/${this.altname}.svg`}let s,o;try{s=await fetch(t),o=await s.text()}catch{s=await fetch(e),o=await s.text()}const n=new DOMParser().parseFromString(o,"image/svg+xml"),r=n.querySelector("svg");if(!r)return"";r==null||r.setAttribute("width",this.size),r==null||r.setAttribute("height",this.size),r==null||r.setAttribute("fill","none"),n.querySelectorAll("[stroke]").forEach(a=>a.setAttribute("stroke",this.href?"hsl(0deg 0% 0% / calc(100% * 3/8))":this.color)),n.querySelectorAll("[stroke-width]").forEach(a=>a.setAttribute("stroke-width",this.weight)),this.svg=r==null?void 0:r.outerHTML}};g.styles=r0`
|
|
36
36
|
svg {
|
|
37
37
|
display: block;
|
|
38
38
|
}
|