triiiceratops 0.12.3 → 0.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{ArrowCounterClockwise-CM9mGGcp.js → ArrowCounterClockwise-Bcse6skq.js} +1 -1
  2. package/dist/Check-D3d2XX_P.js +423 -0
  3. package/dist/{X-Bn7S7vUL.js → X-BsrpnzCK.js} +169 -156
  4. package/dist/components/DemoHeader.svelte +5 -548
  5. package/dist/components/SettingsMenu.svelte +507 -0
  6. package/dist/components/SettingsMenu.svelte.d.ts +6 -0
  7. package/dist/components/Toolbar.svelte +13 -2
  8. package/dist/components/TriiiceratopsViewer.svelte +37 -11
  9. package/dist/{image_filters_reset-CmWuQiOc.js → image_filters_reset-Dw23NgOZ.js} +1 -1
  10. package/dist/paraglide/messages/_index.d.ts +3 -0
  11. package/dist/paraglide/messages/_index.js +3 -0
  12. package/dist/paraglide/messages/demo_title.d.ts +4 -0
  13. package/dist/paraglide/messages/demo_title.js +34 -0
  14. package/dist/paraglide/messages/settings_thumbnail_height.d.ts +4 -0
  15. package/dist/paraglide/messages/settings_thumbnail_height.js +34 -0
  16. package/dist/paraglide/messages/settings_toggle_show_viewing_mode.js +3 -2
  17. package/dist/paraglide/messages/settings_view_configuration.d.ts +4 -0
  18. package/dist/paraglide/messages/settings_view_configuration.js +34 -0
  19. package/dist/plugins/annotation-editor.js +493 -623
  20. package/dist/plugins/image-manipulation.js +3 -3
  21. package/dist/state/viewer.svelte.d.ts +1 -0
  22. package/dist/state/viewer.svelte.js +6 -1
  23. package/dist/triiiceratops-bundle.js +1780 -1711
  24. package/dist/triiiceratops-element.iife.js +15 -15
  25. package/dist/triiiceratops.css +1 -1
  26. package/package.json +1 -1
  27. package/dist/annotation_tool_point-LoRp_nrI.js +0 -290
@@ -1,20 +1,20 @@
1
- var Ve = Object.defineProperty;
2
- var pe = (i) => {
1
+ var Te = Object.defineProperty;
2
+ var me = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var Te = (i, e, s) => e in i ? Ve(i, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[e] = s;
6
- var O = (i, e, s) => Te(i, typeof e != "symbol" ? e + "" : e, s), Be = (i, e, s) => e.has(i) || pe("Cannot " + s);
7
- var a = (i, e, s) => (Be(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => e.has(i) ? pe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, s);
5
+ var Be = (i, e, s) => e in i ? Te(i, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[e] = s;
6
+ var O = (i, e, s) => Be(i, typeof e != "symbol" ? e + "" : e, s), De = (i, e, s) => e.has(i) || me("Cannot " + s);
7
+ var a = (i, e, s) => (De(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => e.has(i) ? me("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, s);
8
8
  import * as t from "svelte/internal/client";
9
- import { SvelteMap as fe, SvelteSet as De } from "svelte/reactivity";
10
- import * as Ge from "manifesto.js";
9
+ import { SvelteMap as ve, SvelteSet as Ge } from "svelte/reactivity";
10
+ import * as Re from "manifesto.js";
11
11
  import "svelte/internal/disclose-version";
12
- import { hasContext as Re, getContext as je } from "svelte";
12
+ import { hasContext as je, getContext as ze } from "svelte";
13
13
  var T;
14
- class ze {
14
+ class Fe {
15
15
  constructor() {
16
16
  h(this, T, t.state(t.proxy({})));
17
- O(this, "userAnnotations", new fe());
17
+ O(this, "userAnnotations", new ve());
18
18
  }
19
19
  get manifests() {
20
20
  return t.get(a(this, T));
@@ -46,7 +46,7 @@ class ze {
46
46
  const s = await fetch(e);
47
47
  if (!s.ok)
48
48
  throw new Error(`HTTP error! status: ${s.status}`);
49
- const n = await s.json(), r = Ge.parseManifest(n);
49
+ const n = await s.json(), r = Re.parseManifest(n);
50
50
  this.manifests[e] = { json: n, manifesto: r, isFetching: !1 };
51
51
  } catch (s) {
52
52
  this.manifests[e] = { error: s.message, isFetching: !1 };
@@ -119,9 +119,9 @@ class ze {
119
119
  }
120
120
  }
121
121
  T = new WeakMap();
122
- const k = new ze();
123
- var B, D, G, R, j, z, F, Q, Z, $, H, N, U, q, K, W, J, X, Y, ee, te, se, ne, ae, ie, re, oe;
124
- class ot {
122
+ const k = new Fe();
123
+ var B, D, G, R, j, z, F, Q, Z, $, H, N, U, q, K, W, J, X, Y, ee, te, se, ne, ae, ie, re, oe, le;
124
+ class lt {
125
125
  constructor(e = null, s = null, n = []) {
126
126
  h(this, B, t.state(null));
127
127
  h(this, D, t.state(null));
@@ -133,42 +133,49 @@ class ot {
133
133
  h(this, Q, t.state(!1));
134
134
  h(this, Z, t.state(!1));
135
135
  h(this, $, t.state("bottom"));
136
- O(this, "visibleAnnotationIds", new De());
136
+ O(this, "visibleAnnotationIds", new Ge());
137
137
  h(this, H, t.state(t.proxy({})));
138
138
  h(
139
139
  this,
140
140
  N,
141
+ // Dedicated reactive state for viewingMode to ensure proper reactivity
142
+ // when accessed in $derived expressions (tileSources computation)
143
+ t.state("individuals")
144
+ );
145
+ h(
146
+ this,
147
+ U,
141
148
  // Pairing offset for paged mode: 0 = default (pairs start at 1+2), 1 = shifted (page 1 alone, pairs start at 2+3)
142
149
  t.state(0)
143
150
  );
144
- h(this, U, t.state(t.proxy({ x: 20, y: 100 })));
145
- h(this, q, t.state(t.proxy({ width: 300, height: 400 })));
146
- h(this, K, t.state(!1));
147
- h(this, W, t.state(t.proxy({ x: 0, y: 0 })));
148
- h(this, J, t.state(null));
151
+ h(this, q, t.state(t.proxy({ x: 20, y: 100 })));
152
+ h(this, K, t.state(t.proxy({ width: 300, height: 400 })));
153
+ h(this, W, t.state(!1));
154
+ h(this, J, t.state(t.proxy({ x: 0, y: 0 })));
149
155
  h(this, X, t.state(null));
156
+ h(this, Y, t.state(null));
150
157
  O(this, "eventTarget", null);
151
158
  /**
152
159
  * Reference to the main viewer DOM element.
153
160
  * Used for fullscreen toggling.
154
161
  */
155
162
  O(this, "viewerElement", null);
156
- h(this, Y, t.state(""));
157
- h(this, ee, t.state(null));
158
- h(this, te, t.state(t.proxy([])));
159
- h(this, se, t.state(!1));
163
+ h(this, ee, t.state(""));
164
+ h(this, te, t.state(null));
165
+ h(this, se, t.state(t.proxy([])));
160
166
  h(this, ne, t.state(!1));
161
- h(this, ae, t.state(t.proxy([])));
167
+ h(this, ae, t.state(!1));
168
+ h(this, ie, t.state(t.proxy([])));
162
169
  h(
163
170
  this,
164
- ie,
171
+ re,
165
172
  // ==================== PLUGIN STATE ====================
166
173
  /** Plugin-registered menu buttons */
167
174
  t.state(t.proxy([]))
168
175
  );
169
- h(this, re, t.state(t.proxy([])));
170
- h(this, oe, t.state(null));
171
- O(this, "pluginEventHandlers", new fe());
176
+ h(this, oe, t.state(t.proxy([])));
177
+ h(this, le, t.state(null));
178
+ O(this, "pluginEventHandlers", new ve());
172
179
  this.manifestId = e || null, this.canvasId = s || null, this.manifestId && k.fetchManifest(this.manifestId);
173
180
  for (const r of n)
174
181
  this.registerPlugin(r);
@@ -252,53 +259,59 @@ class ot {
252
259
  var e;
253
260
  return ((e = this.config.gallery) == null ? void 0 : e.fixedHeight) ?? 120;
254
261
  }
262
+ get _viewingMode() {
263
+ return t.get(a(this, N));
264
+ }
265
+ set _viewingMode(e) {
266
+ t.set(a(this, N), e, !0);
267
+ }
255
268
  get viewingMode() {
256
- return this.config.viewingMode ?? "individuals";
269
+ return this._viewingMode;
257
270
  }
258
271
  set viewingMode(e) {
259
- this.config.viewingMode = e;
272
+ this._viewingMode = e, this.config.viewingMode = e;
260
273
  }
261
274
  get pagedOffset() {
262
- return t.get(a(this, N));
275
+ return t.get(a(this, U));
263
276
  }
264
277
  set pagedOffset(e) {
265
- t.set(a(this, N), e, !0);
278
+ t.set(a(this, U), e, !0);
266
279
  }
267
280
  get galleryPosition() {
268
- return t.get(a(this, U));
281
+ return t.get(a(this, q));
269
282
  }
270
283
  set galleryPosition(e) {
271
- t.set(a(this, U), e, !0);
284
+ t.set(a(this, q), e, !0);
272
285
  }
273
286
  get gallerySize() {
274
- return t.get(a(this, q));
287
+ return t.get(a(this, K));
275
288
  }
276
289
  set gallerySize(e) {
277
- t.set(a(this, q), e, !0);
290
+ t.set(a(this, K), e, !0);
278
291
  }
279
292
  get isGalleryDragging() {
280
- return t.get(a(this, K));
293
+ return t.get(a(this, W));
281
294
  }
282
295
  set isGalleryDragging(e) {
283
- t.set(a(this, K), e, !0);
296
+ t.set(a(this, W), e, !0);
284
297
  }
285
298
  get galleryDragOffset() {
286
- return t.get(a(this, W));
299
+ return t.get(a(this, J));
287
300
  }
288
301
  set galleryDragOffset(e) {
289
- t.set(a(this, W), e, !0);
302
+ t.set(a(this, J), e, !0);
290
303
  }
291
304
  get dragOverSide() {
292
- return t.get(a(this, J));
305
+ return t.get(a(this, X));
293
306
  }
294
307
  set dragOverSide(e) {
295
- t.set(a(this, J), e, !0);
308
+ t.set(a(this, X), e, !0);
296
309
  }
297
310
  get galleryCenterPanelRect() {
298
- return t.get(a(this, X));
311
+ return t.get(a(this, Y));
299
312
  }
300
313
  set galleryCenterPanelRect(e) {
301
- t.set(a(this, X), e, !0);
314
+ t.set(a(this, Y), e, !0);
302
315
  }
303
316
  setEventTarget(e) {
304
317
  this.eventTarget = e;
@@ -452,43 +465,43 @@ class ot {
452
465
  this.dispatchStateChange();
453
466
  }
454
467
  get searchQuery() {
455
- return t.get(a(this, Y));
468
+ return t.get(a(this, ee));
456
469
  }
457
470
  set searchQuery(e) {
458
- t.set(a(this, Y), e, !0);
471
+ t.set(a(this, ee), e, !0);
459
472
  }
460
473
  get pendingSearchQuery() {
461
- return t.get(a(this, ee));
474
+ return t.get(a(this, te));
462
475
  }
463
476
  set pendingSearchQuery(e) {
464
- t.set(a(this, ee), e, !0);
477
+ t.set(a(this, te), e, !0);
465
478
  }
466
479
  get searchResults() {
467
- return t.get(a(this, te));
480
+ return t.get(a(this, se));
468
481
  }
469
482
  set searchResults(e) {
470
- t.set(a(this, te), e, !0);
483
+ t.set(a(this, se), e, !0);
471
484
  }
472
485
  get isSearching() {
473
- return t.get(a(this, se));
486
+ return t.get(a(this, ne));
474
487
  }
475
488
  set isSearching(e) {
476
- t.set(a(this, se), e, !0);
489
+ t.set(a(this, ne), e, !0);
477
490
  }
478
491
  get showSearchPanel() {
479
- return t.get(a(this, ne));
492
+ return t.get(a(this, ae));
480
493
  }
481
494
  set showSearchPanel(e) {
482
- t.set(a(this, ne), e, !0);
495
+ t.set(a(this, ae), e, !0);
483
496
  }
484
497
  toggleSearchPanel() {
485
498
  this.showSearchPanel = !this.showSearchPanel, this.showSearchPanel || (this.searchAnnotations = []), this.dispatchStateChange();
486
499
  }
487
500
  get searchAnnotations() {
488
- return t.get(a(this, ae));
501
+ return t.get(a(this, ie));
489
502
  }
490
503
  set searchAnnotations(e) {
491
- t.set(a(this, ae), e, !0);
504
+ t.set(a(this, ie), e, !0);
492
505
  }
493
506
  get currentCanvasSearchAnnotations() {
494
507
  if (!this.canvasId) return [];
@@ -499,10 +512,10 @@ class ot {
499
512
  const r = s + 1;
500
513
  if (r < this.canvases.length) {
501
514
  const u = this.canvases[r], p = u.id || u["@id"], c = this.canvases[s].getWidth() * 1.025, w = this.searchAnnotations.filter((y) => y.canvasId === p).map((y) => {
502
- const C = y.on.split("#xywh="), b = C[1].split(",").map(Number), E = b[0] + c;
515
+ const _ = y.on.split("#xywh="), b = _[1].split(",").map(Number), E = b[0] + c;
503
516
  return {
504
517
  ...y,
505
- on: `${C[0]}#xywh=${E},${b[1]},${b[2]},${b[3]}`
518
+ on: `${_[0]}#xywh=${E},${b[1]},${b[2]},${b[3]}`
506
519
  };
507
520
  });
508
521
  e = e.concat(w);
@@ -532,7 +545,7 @@ class ot {
532
545
  }
533
546
  const S = `${u.id || u["@id"]}?q=${encodeURIComponent(e)}`, c = await fetch(S);
534
547
  if (!c.ok) throw new Error("Search request failed");
535
- const m = await c.json(), w = m.resources || [], y = new fe(), C = (o) => {
548
+ const m = await c.json(), w = m.resources || [], y = new ve(), _ = (o) => {
536
549
  const g = typeof o == "string" ? o : o["@id"] || o.id;
537
550
  if (!g) return null;
538
551
  const d = g.split("#xywh=");
@@ -548,7 +561,7 @@ class ot {
548
561
  for (const l of g) {
549
562
  const f = w.find((v) => v["@id"] === l || v.id === l);
550
563
  if (f && f.on) {
551
- const v = typeof f.on == "string" ? f.on : f.on["@id"] || f.on.id, ue = v.split("#")[0], V = C(v), A = this.canvases.findIndex((_) => _.id === ue);
564
+ const v = typeof f.on == "string" ? f.on : f.on["@id"] || f.on.id, fe = v.split("#")[0], V = _(v), A = this.canvases.findIndex((C) => C.id === fe);
552
565
  A >= 0 && (d === -1 && (d = A), V && (I.push(V), x || (x = V)));
553
566
  }
554
567
  }
@@ -577,7 +590,7 @@ class ot {
577
590
  }
578
591
  else if (w.length > 0)
579
592
  for (const o of w) {
580
- const g = typeof o.on == "string" ? o.on : o.on["@id"] || o.on.id, d = g.split("#")[0], x = C(g), I = this.canvases.findIndex((l) => l.id === d);
593
+ const g = typeof o.on == "string" ? o.on : o.on["@id"] || o.on.id, d = g.split("#")[0], x = _(g), I = this.canvases.findIndex((l) => l.id === d);
581
594
  if (I >= 0) {
582
595
  const l = this.canvases[I];
583
596
  let f = "Canvas " + (I + 1);
@@ -623,22 +636,22 @@ class ot {
623
636
  }
624
637
  }
625
638
  get pluginMenuButtons() {
626
- return t.get(a(this, ie));
639
+ return t.get(a(this, re));
627
640
  }
628
641
  set pluginMenuButtons(e) {
629
- t.set(a(this, ie), e, !0);
642
+ t.set(a(this, re), e, !0);
630
643
  }
631
644
  get pluginPanels() {
632
- return t.get(a(this, re));
645
+ return t.get(a(this, oe));
633
646
  }
634
647
  set pluginPanels(e) {
635
- t.set(a(this, re), e, !0);
648
+ t.set(a(this, oe), e, !0);
636
649
  }
637
650
  get osdViewer() {
638
- return t.get(a(this, oe));
651
+ return t.get(a(this, le));
639
652
  }
640
653
  set osdViewer(e) {
641
- t.set(a(this, oe), e);
654
+ t.set(a(this, le), e);
642
655
  }
643
656
  registerPlugin(e) {
644
657
  const s = e.id || `plugin-${Math.random().toString(36).substr(2, 9)}`;
@@ -693,32 +706,32 @@ class ot {
693
706
  this.pluginMenuButtons = [], this.pluginPanels = [], this.pluginEventHandlers.clear();
694
707
  }
695
708
  }
696
- B = new WeakMap(), D = new WeakMap(), G = new WeakMap(), R = new WeakMap(), j = new WeakMap(), z = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), Z = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), N = new WeakMap(), U = new WeakMap(), q = new WeakMap(), K = new WeakMap(), W = new WeakMap(), J = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap();
697
- const lt = "triiiceratops:viewerState";
698
- let me = Symbol("phosphor-svelte");
699
- function Fe() {
700
- return Re(me) ? je(me) : {};
709
+ B = new WeakMap(), D = new WeakMap(), G = new WeakMap(), R = new WeakMap(), j = new WeakMap(), z = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), Z = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), N = new WeakMap(), U = new WeakMap(), q = new WeakMap(), K = new WeakMap(), W = new WeakMap(), J = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), le = new WeakMap();
710
+ const ht = "triiiceratops:viewerState";
711
+ let ye = Symbol("phosphor-svelte");
712
+ function Qe() {
713
+ return je(ye) ? ze(ye) : {};
701
714
  }
702
- const Qe = "en", ve = (
715
+ const Ze = "en", pe = (
703
716
  /** @type {const} */
704
717
  ["en", "de"]
705
- ), we = "PARAGLIDE_LOCALE", Ze = 3456e4, Ie = [
718
+ ), Ie = "PARAGLIDE_LOCALE", $e = 3456e4, xe = [
706
719
  "cookie",
707
720
  "globalVariable",
708
721
  "baseLocale"
709
722
  ];
710
723
  globalThis.__paraglide = {};
711
- let ge, ye = !1, xe = () => {
724
+ let de, we = !1, Se = () => {
712
725
  let i;
713
- for (const e of Ie) {
726
+ for (const e of xe) {
714
727
  if (e === "cookie")
715
- i = Ue();
728
+ i = qe();
716
729
  else if (e === "baseLocale")
717
- i = Qe;
718
- else if (e === "globalVariable" && ge !== void 0)
719
- i = ge;
720
- else if (be(e) && de.has(e)) {
721
- const s = de.get(e);
730
+ i = Ze;
731
+ else if (e === "globalVariable" && de !== void 0)
732
+ i = de;
733
+ else if (Ae(e) && ue.has(e)) {
734
+ const s = ue.get(e);
722
735
  if (s) {
723
736
  const n = s.getLocale();
724
737
  if (n instanceof Promise)
@@ -727,39 +740,39 @@ let ge, ye = !1, xe = () => {
727
740
  }
728
741
  }
729
742
  if (i !== void 0) {
730
- const s = Ne(i);
731
- return ye || (ge = s, ye = !0, Se(s, { reload: !1 })), s;
743
+ const s = Ue(i);
744
+ return we || (de = s, we = !0, be(s, { reload: !1 })), s;
732
745
  }
733
746
  }
734
747
  throw new Error("No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found");
735
748
  };
736
- const $e = (i) => {
749
+ const He = (i) => {
737
750
  window.location.reload();
738
751
  };
739
- let Se = (i, e) => {
752
+ let be = (i, e) => {
740
753
  const s = {
741
754
  reload: !0,
742
755
  ...e
743
756
  };
744
757
  let n;
745
758
  try {
746
- n = xe();
759
+ n = Se();
747
760
  } catch {
748
761
  }
749
762
  const r = [];
750
- for (const p of Ie)
763
+ for (const p of xe)
751
764
  if (p === "globalVariable")
752
- ge = i;
765
+ de = i;
753
766
  else if (p === "cookie") {
754
767
  if (typeof document > "u" || typeof window > "u")
755
768
  continue;
756
- const S = `${we}=${i}; path=/; max-age=${Ze}`;
769
+ const S = `${Ie}=${i}; path=/; max-age=${$e}`;
757
770
  document.cookie = S;
758
771
  } else {
759
772
  if (p === "baseLocale")
760
773
  continue;
761
- if (be(p) && de.has(p)) {
762
- const S = de.get(p);
774
+ if (Ae(p) && ue.has(p)) {
775
+ const S = ue.get(p);
763
776
  if (S) {
764
777
  let c = S.setLocale(i);
765
778
  c instanceof Promise && (c = c.catch((m) => {
@@ -771,7 +784,7 @@ let Se = (i, e) => {
771
784
  }
772
785
  }
773
786
  const u = () => {
774
- s.reload && window.location && i !== n && $e();
787
+ s.reload && window.location && i !== n && He();
775
788
  };
776
789
  if (r.length)
777
790
  return Promise.all(r).then(() => {
@@ -779,55 +792,55 @@ let Se = (i, e) => {
779
792
  });
780
793
  u();
781
794
  };
782
- const ht = (i) => {
783
- Se = /** @type {SetLocaleFn} */
795
+ const ct = (i) => {
796
+ be = /** @type {SetLocaleFn} */
784
797
  i;
785
798
  };
786
- function He(i) {
787
- return typeof i != "string" ? !1 : i ? ve.some((e) => e.toLowerCase() === i.toLowerCase()) : !1;
788
- }
789
799
  function Ne(i) {
800
+ return typeof i != "string" ? !1 : i ? pe.some((e) => e.toLowerCase() === i.toLowerCase()) : !1;
801
+ }
802
+ function Ue(i) {
790
803
  if (typeof i != "string")
791
804
  throw new Error(`Invalid locale: ${i}. Expected a string.`);
792
- const e = i.toLowerCase(), s = ve.find((n) => n.toLowerCase() === e);
805
+ const e = i.toLowerCase(), s = pe.find((n) => n.toLowerCase() === e);
793
806
  if (!s)
794
- throw new Error(`Invalid locale: ${i}. Expected one of: ${ve.join(", ")}`);
807
+ throw new Error(`Invalid locale: ${i}. Expected one of: ${pe.join(", ")}`);
795
808
  return s;
796
809
  }
797
- function Ue() {
810
+ function qe() {
798
811
  if (typeof document > "u" || !document.cookie)
799
812
  return;
800
- const i = document.cookie.match(new RegExp(`(^| )${we}=([^;]+)`)), e = i == null ? void 0 : i[2];
801
- if (He(e))
813
+ const i = document.cookie.match(new RegExp(`(^| )${Ie}=([^;]+)`)), e = i == null ? void 0 : i[2];
814
+ if (Ne(e))
802
815
  return e;
803
816
  }
804
- const de = /* @__PURE__ */ new Map();
805
- function be(i) {
817
+ const ue = /* @__PURE__ */ new Map();
818
+ function Ae(i) {
806
819
  return typeof i == "string" && /^custom-[A-Za-z0-9_-]+$/.test(i);
807
820
  }
808
- const qe = (
821
+ const Ke = (
809
822
  /** @type {(inputs: {}) => LocalizedString} */
810
823
  () => (
811
824
  /** @type {LocalizedString} */
812
825
  "Close"
813
826
  )
814
- ), Ke = (
827
+ ), We = (
815
828
  /** @type {(inputs: {}) => LocalizedString} */
816
829
  () => (
817
830
  /** @type {LocalizedString} */
818
831
  "Schließen"
819
832
  )
820
- ), ct = /* @__NO_SIDE_EFFECTS__ */ (i = {}, e = {}) => (e.locale ?? xe()) === "en" ? qe() : Ke();
821
- var We = t.from_svg('<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"></path>'), Je = t.from_svg('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"></path><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>', 1), Xe = t.from_svg('<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), Ye = t.from_svg('<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"></path>'), et = t.from_svg('<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), tt = t.from_svg('<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"></path>'), st = t.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
822
- function gt(i, e) {
833
+ ), gt = /* @__NO_SIDE_EFFECTS__ */ (i = {}, e = {}) => (e.locale ?? Se()) === "en" ? Ke() : We();
834
+ var Je = t.from_svg('<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"></path>'), Xe = t.from_svg('<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"></path><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>', 1), Ye = t.from_svg('<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), et = t.from_svg('<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"></path>'), tt = t.from_svg('<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>'), st = t.from_svg('<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"></path>'), nt = t.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
835
+ function dt(i, e) {
823
836
  t.push(e, !0);
824
- const s = Fe();
837
+ const s = Qe();
825
838
  let n = t.rest_props(e, ["$$slots", "$$events", "$$legacy", "children"]), r = t.derived(() => e.weight ?? s.weight ?? "regular"), u = t.derived(() => e.color ?? s.color ?? "currentColor"), p = t.derived(() => e.size ?? s.size ?? "1em"), S = t.derived(() => e.mirrored ?? s.mirrored ?? !1);
826
839
  function c(o) {
827
840
  let { weight: g, color: d, size: x, mirrored: I, ...l } = o;
828
841
  return l;
829
842
  }
830
- var m = st();
843
+ var m = nt();
831
844
  t.attribute_effect(
832
845
  m,
833
846
  (o, g) => ({
@@ -853,79 +866,79 @@ function gt(i, e) {
853
866
  e.children && o(y);
854
867
  });
855
868
  }
856
- var C = t.sibling(w, 2);
869
+ var _ = t.sibling(w, 2);
857
870
  {
858
871
  var b = (o) => {
859
- var g = We();
872
+ var g = Je();
860
873
  t.append(o, g);
861
874
  }, E = (o) => {
862
875
  var g = t.comment(), d = t.first_child(g);
863
876
  {
864
877
  var x = (l) => {
865
- var f = Je();
878
+ var f = Xe();
866
879
  t.next(), t.append(l, f);
867
880
  }, I = (l) => {
868
881
  var f = t.comment(), v = t.first_child(f);
869
882
  {
870
- var ue = (A) => {
871
- var _ = Xe();
872
- t.append(A, _);
883
+ var fe = (A) => {
884
+ var C = Ye();
885
+ t.append(A, C);
873
886
  }, V = (A) => {
874
- var _ = t.comment(), Ae = t.first_child(_);
887
+ var C = t.comment(), _e = t.first_child(C);
875
888
  {
876
889
  var Ce = (M) => {
877
- var le = Ye();
878
- t.append(M, le);
879
- }, _e = (M) => {
880
- var le = t.comment(), Me = t.first_child(le);
890
+ var he = et();
891
+ t.append(M, he);
892
+ }, Me = (M) => {
893
+ var he = t.comment(), Le = t.first_child(he);
881
894
  {
882
- var Le = (L) => {
883
- var he = et();
884
- t.append(L, he);
885
- }, Pe = (L) => {
886
- var he = t.comment(), Oe = t.first_child(he);
895
+ var Pe = (L) => {
896
+ var ce = tt();
897
+ t.append(L, ce);
898
+ }, Oe = (L) => {
899
+ var ce = t.comment(), ke = t.first_child(ce);
887
900
  {
888
- var ke = (P) => {
889
- var ce = tt();
890
- t.append(P, ce);
891
- }, Ee = (P) => {
892
- var ce = t.text();
893
- ce.nodeValue = (console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'), ""), t.append(P, ce);
901
+ var Ee = (P) => {
902
+ var ge = st();
903
+ t.append(P, ge);
904
+ }, Ve = (P) => {
905
+ var ge = t.text();
906
+ ge.nodeValue = (console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'), ""), t.append(P, ge);
894
907
  };
895
908
  t.if(
896
- Oe,
909
+ ke,
897
910
  (P) => {
898
- t.get(r) === "thin" ? P(ke) : P(Ee, !1);
911
+ t.get(r) === "thin" ? P(Ee) : P(Ve, !1);
899
912
  },
900
913
  !0
901
914
  );
902
915
  }
903
- t.append(L, he);
916
+ t.append(L, ce);
904
917
  };
905
918
  t.if(
906
- Me,
919
+ Le,
907
920
  (L) => {
908
- t.get(r) === "regular" ? L(Le) : L(Pe, !1);
921
+ t.get(r) === "regular" ? L(Pe) : L(Oe, !1);
909
922
  },
910
923
  !0
911
924
  );
912
925
  }
913
- t.append(M, le);
926
+ t.append(M, he);
914
927
  };
915
928
  t.if(
916
- Ae,
929
+ _e,
917
930
  (M) => {
918
- t.get(r) === "light" ? M(Ce) : M(_e, !1);
931
+ t.get(r) === "light" ? M(Ce) : M(Me, !1);
919
932
  },
920
933
  !0
921
934
  );
922
935
  }
923
- t.append(A, _);
936
+ t.append(A, C);
924
937
  };
925
938
  t.if(
926
939
  v,
927
940
  (A) => {
928
- t.get(r) === "fill" ? A(ue) : A(V, !1);
941
+ t.get(r) === "fill" ? A(fe) : A(V, !1);
929
942
  },
930
943
  !0
931
944
  );
@@ -942,22 +955,22 @@ function gt(i, e) {
942
955
  }
943
956
  t.append(o, g);
944
957
  };
945
- t.if(C, (o) => {
958
+ t.if(_, (o) => {
946
959
  t.get(r) === "bold" ? o(b) : o(E, !1);
947
960
  });
948
961
  }
949
962
  t.reset(m), t.append(i, m), t.pop();
950
963
  }
951
964
  export {
952
- ze as M,
953
- lt as V,
954
- gt as X,
955
- xe as a,
956
- ot as b,
957
- ct as c,
958
- Fe as g,
959
- ve as l,
965
+ Fe as M,
966
+ ht as V,
967
+ dt as X,
968
+ Se as a,
969
+ lt as b,
970
+ gt as c,
971
+ Qe as g,
972
+ pe as l,
960
973
  k as m,
961
- ht as o,
962
- Se as s
974
+ ct as o,
975
+ be as s
963
976
  };