cos-design 4.0.0 → 4.1.0

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/elements.js CHANGED
@@ -1,13 +1,14 @@
1
- import { $t as e, An as t, At as n, Bn as r, Bt as ee, Cn as te, Ct as ne, Dn as re, Dt as ie, En as ae, Et as oe, Fn as se, Ft as ce, Gt as le, Hn as ue, Ht as de, In as fe, It as pe, Jt as me, Kt as he, Ln as ge, Lt as _e, Mn as ve, Mt as ye, Nn as be, Nt as xe, On as Se, Ot as Ce, Pn as we, Pt as Te, Qt as Ee, Rn as De, Rt as Oe, Sn as ke, St as Ae, Tn as je, Tt as Me, Un as Ne, Ut as Pe, Vn as Fe, Vt as Ie, Wn as Le, Wt as Re, Xt as ze, Yt as Be, Zt as Ve, _n as He, _t as Ue, an as We, bn as Ge, bt as Ke, cn as qe, dn as Je, dt as Ye, en as Xe, fn as Ze, ft as Qe, gn as $e, gt as et, hn as tt, ht as nt, in as rt, jn as it, jt as at, kn as ot, kt as st, ln as ct, mn as lt, mt as ut, n as dt, nn as ft, on as pt, pn as mt, pt as ht, qt as gt, rn as _t, sn as vt, t as yt, tn as bt, un as xt, vn as St, vt as Ct, wn as wt, wt as Tt, xn as Et, xt as Dt, yn as Ot, yt as kt, zn as At, zt as jt } from "./engine-jGjtPKCP.js";
1
+ import { $t as e, An as t, At as ee, Bn as te, Bt as ne, Cn as re, Ct as ie, Dn as ae, Dt as oe, En as se, Et as ce, Fn as le, Ft as ue, Gt as de, Hn as fe, Ht as pe, In as me, It as he, Jt as ge, Kt as _e, Ln as ve, Lt as ye, Mn as be, Mt as xe, Nn as Se, Nt as Ce, On as we, Ot as Te, Pn as Ee, Pt as De, Qt as Oe, Rn as ke, Rt as Ae, Sn as je, St as Me, Tn as Ne, Tt as Pe, Un as Fe, Ut as Ie, Vn as Le, Vt as Re, Wn as ze, Wt as Be, Xt as Ve, Yt as He, Zt as Ue, _n as We, _t as Ge, an as Ke, bn as qe, bt as Je, cn as Ye, dn as Xe, dt as Ze, en as Qe, fn as $e, ft as et, gn as tt, gt as nt, hn as rt, ht as it, in as at, jn as ot, jt as st, kn as ct, kt as lt, ln as ut, mn as dt, mt as ft, n as pt, nn as mt, on as ht, pn as gt, pt as _t, qt as vt, rn as yt, sn as bt, t as xt, tn as St, un as Ct, vn as wt, vt as Tt, wn as Et, wt as Dt, xn as Ot, xt as kt, yn as At, yt as jt, zn as Mt, zt as Nt } from "./engine-Dh44m7ox.js";
2
2
  import './style.css';/* empty css */
3
- import { t as Mt } from "./core-On5bp2VI.js";
3
+ import { t as Pt } from "./core-On5bp2VI.js";
4
+ import { optionCallbackDispatcher as n, readBooleanAttr as r, readJsonAttr as i, readNumberAttr as a, readPropertyOverride as o, readStringAttr as s } from "@cos-design/shared";
4
5
  //#region src/components/audioVisualizer/element/index.ts
5
- var Nt = "cos-audio-visualizer";
6
- function i(e) {
6
+ var Ft = "cos-audio-visualizer";
7
+ function It(e) {
7
8
  let t = {};
8
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("bar-count") && (t.barCount = Number(e.getAttribute("bar-count"))), t.useMic = e.hasAttribute("use-mic"), t;
9
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "barCount", "bar-count"), r(t, e, "useMic", "use-mic", "presence"), t;
9
10
  }
10
- var Pt = class extends HTMLElement {
11
+ var Lt = class extends HTMLElement {
11
12
  ctrl = null;
12
13
  static get observedAttributes() {
13
14
  return [
@@ -18,35 +19,31 @@ var Pt = class extends HTMLElement {
18
19
  ];
19
20
  }
20
21
  connectedCallback() {
21
- this.ctrl = r(this, i(this));
22
+ this.ctrl = te(this, It(this));
22
23
  }
23
24
  disconnectedCallback() {
24
25
  this.ctrl?.destroy(), this.ctrl = null;
25
26
  }
26
27
  attributeChangedCallback() {
27
- this.ctrl?.update(i(this));
28
+ this.ctrl?.update(It(this));
28
29
  }
29
30
  };
30
- typeof customElements < "u" && !customElements.get("cos-audio-visualizer") && customElements.define(Nt, Pt);
31
+ typeof customElements < "u" && !customElements.get("cos-audio-visualizer") && customElements.define(Ft, Lt);
31
32
  //#endregion
32
33
  //#region src/components/aurora/element/index.ts
33
- var Ft = "cos-aurora";
34
- function a(e) {
34
+ var Rt = "cos-aurora";
35
+ function c(e) {
35
36
  let t = {};
36
- if (e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("colors")) try {
37
- t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
38
- } catch {}
39
- let n = e._colors;
40
- return n !== void 0 && (t.colors = n), t;
37
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), r(t, e, "fill", "fill", "presence"), i(t, e, "colors", "colors"), o(t, e, "colors", "_colors"), t;
41
38
  }
42
- var It = class extends HTMLElement {
39
+ var zt = class extends HTMLElement {
43
40
  ctrl = null;
44
41
  _colors;
45
42
  get colors() {
46
43
  return this._colors;
47
44
  }
48
45
  set colors(e) {
49
- this._colors = e, this.ctrl?.update(a(this));
46
+ this._colors = e, this.ctrl?.update(c(this));
50
47
  }
51
48
  static get observedAttributes() {
52
49
  return [
@@ -57,39 +54,31 @@ var It = class extends HTMLElement {
57
54
  ];
58
55
  }
59
56
  connectedCallback() {
60
- this.ctrl = Fe(this, a(this));
57
+ this.ctrl = Le(this, c(this));
61
58
  }
62
59
  disconnectedCallback() {
63
60
  this.ctrl?.destroy(), this.ctrl = null;
64
61
  }
65
62
  attributeChangedCallback() {
66
- this.ctrl?.update(a(this));
63
+ this.ctrl?.update(c(this));
67
64
  }
68
65
  };
69
- typeof customElements < "u" && !customElements.get("cos-aurora") && customElements.define(Ft, It);
66
+ typeof customElements < "u" && !customElements.get("cos-aurora") && customElements.define(Rt, zt);
70
67
  //#endregion
71
68
  //#region src/components/auroraVeil/element/index.ts
72
- var Lt = "cos-aurora-veil";
73
- function o(e) {
69
+ var Bt = "cos-aurora-veil";
70
+ function l(e) {
74
71
  let t = {};
75
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("band-count") && (t.bandCount = Number(e.getAttribute("band-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
76
- let n = e.getAttribute("interactive");
77
- t.interactive = n !== "false" && n !== "0";
78
- }
79
- if (e.hasAttribute("colors")) try {
80
- t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
81
- } catch {}
82
- let n = e._colors;
83
- return n !== void 0 && (t.colors = n), t;
72
+ return s(t, e, "ariaLabel", "aria-label"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "bandCount", "band-count"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), i(t, e, "colors", "colors"), o(t, e, "colors", "_colors"), t;
84
73
  }
85
- var Rt = class extends HTMLElement {
74
+ var Vt = class extends HTMLElement {
86
75
  ctrl = null;
87
76
  _colors;
88
77
  get colors() {
89
78
  return this._colors;
90
79
  }
91
80
  set colors(e) {
92
- this._colors = e, this.ctrl?.update(o(this));
81
+ this._colors = e, this.ctrl?.update(l(this));
93
82
  }
94
83
  static get observedAttributes() {
95
84
  return [
@@ -104,35 +93,31 @@ var Rt = class extends HTMLElement {
104
93
  ];
105
94
  }
106
95
  connectedCallback() {
107
- this.ctrl = _e(this, o(this));
96
+ this.ctrl = ye(this, l(this));
108
97
  }
109
98
  disconnectedCallback() {
110
99
  this.ctrl?.destroy(), this.ctrl = null;
111
100
  }
112
101
  attributeChangedCallback() {
113
- this.ctrl?.update(o(this));
102
+ this.ctrl?.update(l(this));
114
103
  }
115
104
  };
116
- typeof customElements < "u" && !customElements.get("cos-aurora-veil") && customElements.define(Lt, Rt);
105
+ typeof customElements < "u" && !customElements.get("cos-aurora-veil") && customElements.define(Bt, Vt);
117
106
  //#endregion
118
107
  //#region src/components/barcodeScan/element/index.ts
119
- var zt = "cos-barcode-scan";
120
- function s(e) {
108
+ var Ht = "cos-barcode-scan";
109
+ function u(e) {
121
110
  let t = {};
122
- if (e.hasAttribute("scan-color") && (t.scanColor = e.getAttribute("scan-color") ?? void 0), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("slot-element")) try {
123
- t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
124
- } catch {}
125
- let n = e._slotElement;
126
- return n !== void 0 && (t.slotElement = n), t;
111
+ return s(t, e, "scanColor", "scan-color"), s(t, e, "defaultContent", "default-content"), a(t, e, "speed", "speed"), i(t, e, "slotElement", "slot-element"), o(t, e, "slotElement", "_slotElement"), t;
127
112
  }
128
- var Bt = class extends HTMLElement {
113
+ var Ut = class extends HTMLElement {
129
114
  ctrl = null;
130
115
  _slotElement;
131
116
  get slotElement() {
132
117
  return this._slotElement;
133
118
  }
134
119
  set slotElement(e) {
135
- this._slotElement = e, this.ctrl?.update(s(this));
120
+ this._slotElement = e, this.ctrl?.update(u(this));
136
121
  }
137
122
  static get observedAttributes() {
138
123
  return [
@@ -143,54 +128,41 @@ var Bt = class extends HTMLElement {
143
128
  ];
144
129
  }
145
130
  connectedCallback() {
146
- this.ctrl = Le(this, s(this));
131
+ this.ctrl = ze(this, u(this));
147
132
  }
148
133
  disconnectedCallback() {
149
134
  this.ctrl?.destroy(), this.ctrl = null;
150
135
  }
151
136
  attributeChangedCallback() {
152
- this.ctrl?.update(s(this));
137
+ this.ctrl?.update(u(this));
153
138
  }
154
139
  getSlot() {
155
140
  return this.ctrl?.getSlot();
156
141
  }
157
142
  };
158
- typeof customElements < "u" && !customElements.get("cos-barcode-scan") && customElements.define(zt, Bt);
143
+ typeof customElements < "u" && !customElements.get("cos-barcode-scan") && customElements.define(Ht, Ut);
159
144
  //#endregion
160
145
  //#region src/components/blurText/element/index.ts
161
- var Vt = "cos-blur-text";
162
- function c(e) {
146
+ var Wt = "cos-blur-text";
147
+ function d(e) {
163
148
  let t = {};
164
- if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("stagger") && (t.stagger = Number(e.getAttribute("stagger"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("animate-by")) try {
165
- t.animateBy = JSON.parse(e.getAttribute("animate-by") ?? "null");
166
- } catch {}
167
- let n = e._animateBy;
168
- if (n !== void 0 && (t.animateBy = n), e.hasAttribute("direction")) try {
169
- t.direction = JSON.parse(e.getAttribute("direction") ?? "null");
170
- } catch {}
171
- let r = e._direction;
172
- return r !== void 0 && (t.direction = r), t.onAnimationComplete = (...t) => {
173
- e.dispatchEvent(new CustomEvent("animation-complete", {
174
- detail: t.length <= 1 ? t[0] : t,
175
- bubbles: !0
176
- }));
177
- }, t;
178
- }
179
- var Ht = class extends HTMLElement {
149
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "stagger", "stagger"), a(t, e, "duration", "duration"), a(t, e, "fontSize", "font-size"), i(t, e, "animateBy", "animate-by"), o(t, e, "animateBy", "_animateBy"), i(t, e, "direction", "direction"), o(t, e, "direction", "_direction"), t.onAnimationComplete = n(e, "animation-complete"), t;
150
+ }
151
+ var Gt = class extends HTMLElement {
180
152
  ctrl = null;
181
153
  _animateBy;
182
154
  get animateBy() {
183
155
  return this._animateBy;
184
156
  }
185
157
  set animateBy(e) {
186
- this._animateBy = e, this.ctrl?.update(c(this));
158
+ this._animateBy = e, this.ctrl?.update(d(this));
187
159
  }
188
160
  _direction;
189
161
  get direction() {
190
162
  return this._direction;
191
163
  }
192
164
  set direction(e) {
193
- this._direction = e, this.ctrl?.update(c(this));
165
+ this._direction = e, this.ctrl?.update(d(this));
194
166
  }
195
167
  static get observedAttributes() {
196
168
  return [
@@ -204,28 +176,24 @@ var Ht = class extends HTMLElement {
204
176
  ];
205
177
  }
206
178
  connectedCallback() {
207
- this.ctrl = Ne(this, c(this));
179
+ this.ctrl = Fe(this, d(this));
208
180
  }
209
181
  disconnectedCallback() {
210
182
  this.ctrl?.destroy(), this.ctrl = null;
211
183
  }
212
184
  attributeChangedCallback() {
213
- this.ctrl?.update(c(this));
185
+ this.ctrl?.update(d(this));
214
186
  }
215
187
  };
216
- typeof customElements < "u" && !customElements.get("cos-blur-text") && customElements.define(Vt, Ht);
188
+ typeof customElements < "u" && !customElements.get("cos-blur-text") && customElements.define(Wt, Gt);
217
189
  //#endregion
218
190
  //#region src/components/bubbleField/element/index.ts
219
- var Ut = "cos-bubble-field";
220
- function l(e) {
191
+ var Kt = "cos-bubble-field";
192
+ function qt(e) {
221
193
  let t = {};
222
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("bubble-count") && (t.bubbleCount = Number(e.getAttribute("bubble-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
223
- let n = e.getAttribute("interactive");
224
- t.interactive = n !== "false" && n !== "0";
225
- }
226
- return t;
194
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "bubbleCount", "bubble-count"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), t;
227
195
  }
228
- var Wt = class extends HTMLElement {
196
+ var Jt = class extends HTMLElement {
229
197
  ctrl = null;
230
198
  static get observedAttributes() {
231
199
  return [
@@ -239,29 +207,24 @@ var Wt = class extends HTMLElement {
239
207
  ];
240
208
  }
241
209
  connectedCallback() {
242
- this.ctrl = de(this, l(this));
210
+ this.ctrl = pe(this, qt(this));
243
211
  }
244
212
  disconnectedCallback() {
245
213
  this.ctrl?.destroy(), this.ctrl = null;
246
214
  }
247
215
  attributeChangedCallback() {
248
- this.ctrl?.update(l(this));
216
+ this.ctrl?.update(qt(this));
249
217
  }
250
218
  };
251
- typeof customElements < "u" && !customElements.get("cos-bubble-field") && customElements.define(Ut, Wt);
219
+ typeof customElements < "u" && !customElements.get("cos-bubble-field") && customElements.define(Kt, Jt);
252
220
  //#endregion
253
221
  //#region src/components/burnAway/element/index.ts
254
- var Gt = "cos-burn-away";
255
- function u(e) {
222
+ var Yt = "cos-burn-away";
223
+ function Xt(e) {
256
224
  let t = {};
257
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("completed-text") && (t.completedText = e.getAttribute("completed-text") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.onComplete = (...t) => {
258
- e.dispatchEvent(new CustomEvent("complete", {
259
- detail: t.length <= 1 ? t[0] : t,
260
- bubbles: !0
261
- }));
262
- }, t;
225
+ return s(t, e, "text", "text"), s(t, e, "completedText", "completed-text"), a(t, e, "fontSize", "font-size"), t.onComplete = n(e, "complete"), t;
263
226
  }
264
- var Kt = class extends HTMLElement {
227
+ var Zt = class extends HTMLElement {
265
228
  ctrl = null;
266
229
  static get observedAttributes() {
267
230
  return [
@@ -271,64 +234,50 @@ var Kt = class extends HTMLElement {
271
234
  ];
272
235
  }
273
236
  connectedCallback() {
274
- this.ctrl = ue(this, u(this));
237
+ this.ctrl = fe(this, Xt(this));
275
238
  }
276
239
  disconnectedCallback() {
277
240
  this.ctrl?.destroy(), this.ctrl = null;
278
241
  }
279
242
  attributeChangedCallback() {
280
- this.ctrl?.update(u(this));
243
+ this.ctrl?.update(Xt(this));
281
244
  }
282
245
  ignite() {
283
246
  return this.ctrl?.ignite();
284
247
  }
285
248
  };
286
- typeof customElements < "u" && !customElements.get("cos-burn-away") && customElements.define(Gt, Kt);
249
+ typeof customElements < "u" && !customElements.get("cos-burn-away") && customElements.define(Yt, Zt);
287
250
  //#endregion
288
251
  //#region src/components/canvasClock/element/index.ts
289
- var qt = "cos-canvas-clock";
290
- function d(e) {
252
+ var Qt = "cos-canvas-clock";
253
+ function $t(e) {
291
254
  let t = {};
292
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
255
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), t;
293
256
  }
294
- var Jt = class extends HTMLElement {
257
+ var en = class extends HTMLElement {
295
258
  ctrl = null;
296
259
  static get observedAttributes() {
297
260
  return ["width", "height"];
298
261
  }
299
262
  connectedCallback() {
300
- this.ctrl = At(this, d(this));
263
+ this.ctrl = Mt(this, $t(this));
301
264
  }
302
265
  disconnectedCallback() {
303
266
  this.ctrl?.destroy(), this.ctrl = null;
304
267
  }
305
268
  attributeChangedCallback() {
306
- this.ctrl?.update(d(this));
269
+ this.ctrl?.update($t(this));
307
270
  }
308
271
  };
309
- typeof customElements < "u" && !customElements.get("cos-canvas-clock") && customElements.define(qt, Jt);
272
+ typeof customElements < "u" && !customElements.get("cos-canvas-clock") && customElements.define(Qt, en);
310
273
  //#endregion
311
274
  //#region src/components/charge/element/index.ts
312
- var Yt = "cos-charge";
313
- function f(e) {
275
+ var tn = "cos-charge";
276
+ function nn(e) {
314
277
  let t = {};
315
- if (e.hasAttribute("init-quantity") && (t.initQuantity = Number(e.getAttribute("init-quantity"))), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("interval") && (t.interval = Number(e.getAttribute("interval"))), e.hasAttribute("step") && (t.step = Number(e.getAttribute("step"))), e.hasAttribute("auto-charge")) {
316
- let n = e.getAttribute("auto-charge");
317
- t.autoCharge = n !== "false" && n !== "0";
318
- }
319
- return t.onChange = (...t) => {
320
- e.dispatchEvent(new CustomEvent("change", {
321
- detail: t.length <= 1 ? t[0] : t,
322
- bubbles: !0
323
- }));
324
- }, t.onComplete = (...t) => {
325
- e.dispatchEvent(new CustomEvent("complete", {
326
- detail: t.length <= 1 ? t[0] : t,
327
- bubbles: !0
328
- }));
329
- }, t;
278
+ return a(t, e, "initQuantity", "init-quantity"), a(t, e, "value", "value"), a(t, e, "interval", "interval"), a(t, e, "step", "step"), r(t, e, "autoCharge", "auto-charge", "presence"), t.onChange = n(e, "change"), t.onComplete = n(e, "complete"), t;
330
279
  }
331
- var Xt = class extends HTMLElement {
280
+ var rn = class extends HTMLElement {
332
281
  ctrl = null;
333
282
  static get observedAttributes() {
334
283
  return [
@@ -340,35 +289,31 @@ var Xt = class extends HTMLElement {
340
289
  ];
341
290
  }
342
291
  connectedCallback() {
343
- this.ctrl = De(this, f(this));
292
+ this.ctrl = ke(this, nn(this));
344
293
  }
345
294
  disconnectedCallback() {
346
295
  this.ctrl?.destroy(), this.ctrl = null;
347
296
  }
348
297
  attributeChangedCallback() {
349
- this.ctrl?.update(f(this));
298
+ this.ctrl?.update(nn(this));
350
299
  }
351
300
  };
352
- typeof customElements < "u" && !customElements.get("cos-charge") && customElements.define(Yt, Xt);
301
+ typeof customElements < "u" && !customElements.get("cos-charge") && customElements.define(tn, rn);
353
302
  //#endregion
354
303
  //#region src/components/circularText/element/index.ts
355
- var Zt = "cos-circular-text";
356
- function p(e) {
304
+ var an = "cos-circular-text";
305
+ function f(e) {
357
306
  let t = {};
358
- if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("spin-duration") && (t.spinDuration = Number(e.getAttribute("spin-duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("radius") && (t.radius = Number(e.getAttribute("radius"))), e.hasAttribute("on-hover")) try {
359
- t.onHover = JSON.parse(e.getAttribute("on-hover") ?? "null");
360
- } catch {}
361
- let n = e._onHover;
362
- return n !== void 0 && (t.onHover = n), t;
307
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "spinDuration", "spin-duration"), a(t, e, "fontSize", "font-size"), a(t, e, "radius", "radius"), i(t, e, "onHover", "on-hover"), o(t, e, "onHover", "_onHover"), t;
363
308
  }
364
- var Qt = class extends HTMLElement {
309
+ var on = class extends HTMLElement {
365
310
  ctrl = null;
366
311
  _onHover;
367
312
  get onHover() {
368
313
  return this._onHover;
369
314
  }
370
315
  set onHover(e) {
371
- this._onHover = e, this.ctrl?.update(p(this));
316
+ this._onHover = e, this.ctrl?.update(f(this));
372
317
  }
373
318
  static get observedAttributes() {
374
319
  return [
@@ -381,35 +326,31 @@ var Qt = class extends HTMLElement {
381
326
  ];
382
327
  }
383
328
  connectedCallback() {
384
- this.ctrl = ge(this, p(this));
329
+ this.ctrl = ve(this, f(this));
385
330
  }
386
331
  disconnectedCallback() {
387
332
  this.ctrl?.destroy(), this.ctrl = null;
388
333
  }
389
334
  attributeChangedCallback() {
390
- this.ctrl?.update(p(this));
335
+ this.ctrl?.update(f(this));
391
336
  }
392
337
  };
393
- typeof customElements < "u" && !customElements.get("cos-circular-text") && customElements.define(Zt, Qt);
338
+ typeof customElements < "u" && !customElements.get("cos-circular-text") && customElements.define(an, on);
394
339
  //#endregion
395
340
  //#region src/components/clickSpark/element/index.ts
396
- var $t = "cos-click-spark";
397
- function m(e) {
341
+ var sn = "cos-click-spark";
342
+ function p(e) {
398
343
  let t = {};
399
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("count") && (t.count = Number(e.getAttribute("count"))), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("slot-element")) try {
400
- t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
401
- } catch {}
402
- let n = e._slotElement;
403
- return n !== void 0 && (t.slotElement = n), t;
344
+ return s(t, e, "color", "color"), s(t, e, "defaultContent", "default-content"), a(t, e, "count", "count"), i(t, e, "slotElement", "slot-element"), o(t, e, "slotElement", "_slotElement"), t;
404
345
  }
405
- var en = class extends HTMLElement {
346
+ var cn = class extends HTMLElement {
406
347
  ctrl = null;
407
348
  _slotElement;
408
349
  get slotElement() {
409
350
  return this._slotElement;
410
351
  }
411
352
  set slotElement(e) {
412
- this._slotElement = e, this.ctrl?.update(m(this));
353
+ this._slotElement = e, this.ctrl?.update(p(this));
413
354
  }
414
355
  static get observedAttributes() {
415
356
  return [
@@ -420,37 +361,27 @@ var en = class extends HTMLElement {
420
361
  ];
421
362
  }
422
363
  connectedCallback() {
423
- this.ctrl = fe(this, m(this));
364
+ this.ctrl = me(this, p(this));
424
365
  }
425
366
  disconnectedCallback() {
426
367
  this.ctrl?.destroy(), this.ctrl = null;
427
368
  }
428
369
  attributeChangedCallback() {
429
- this.ctrl?.update(m(this));
370
+ this.ctrl?.update(p(this));
371
+ }
372
+ getSlot() {
373
+ return this.ctrl?.getSlot();
430
374
  }
431
375
  };
432
- typeof customElements < "u" && !customElements.get("cos-click-spark") && customElements.define($t, en);
376
+ typeof customElements < "u" && !customElements.get("cos-click-spark") && customElements.define(sn, cn);
433
377
  //#endregion
434
378
  //#region src/components/confetti/element/index.ts
435
- var tn = "cos-confetti";
436
- function h(e) {
379
+ var ln = "cos-confetti";
380
+ function m(e) {
437
381
  let t = {};
438
- if (e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("particle-count") && (t.particleCount = Number(e.getAttribute("particle-count"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("auto")) {
439
- let n = e.getAttribute("auto");
440
- t.auto = n !== "false" && n !== "0";
441
- }
442
- if (e.hasAttribute("interactive")) {
443
- let n = e.getAttribute("interactive");
444
- t.interactive = n !== "false" && n !== "0";
445
- }
446
- return t.onComplete = (...t) => {
447
- e.dispatchEvent(new CustomEvent("complete", {
448
- detail: t.length <= 1 ? t[0] : t,
449
- bubbles: !0
450
- }));
451
- }, t;
382
+ return s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "particleCount", "particle-count"), r(t, e, "fill", "fill", "presence"), r(t, e, "auto", "auto", "optional-true"), r(t, e, "interactive", "interactive", "optional-true"), t.onComplete = n(e, "complete"), t;
452
383
  }
453
- var nn = class extends HTMLElement {
384
+ var un = class extends HTMLElement {
454
385
  ctrl = null;
455
386
  static get observedAttributes() {
456
387
  return [
@@ -464,27 +395,27 @@ var nn = class extends HTMLElement {
464
395
  ];
465
396
  }
466
397
  connectedCallback() {
467
- this.ctrl = se(this, h(this));
398
+ this.ctrl = le(this, m(this));
468
399
  }
469
400
  disconnectedCallback() {
470
401
  this.ctrl?.destroy(), this.ctrl = null;
471
402
  }
472
403
  attributeChangedCallback() {
473
- this.ctrl?.update(h(this));
404
+ this.ctrl?.update(m(this));
474
405
  }
475
406
  burst() {
476
407
  return this.ctrl?.burst();
477
408
  }
478
409
  };
479
- typeof customElements < "u" && !customElements.get("cos-confetti") && customElements.define(tn, nn);
410
+ typeof customElements < "u" && !customElements.get("cos-confetti") && customElements.define(ln, un);
480
411
  //#endregion
481
412
  //#region src/components/countUp/element/index.ts
482
- var rn = "cos-count-up";
483
- function g(e) {
413
+ var dn = "cos-count-up";
414
+ function fn(e) {
484
415
  let t = {};
485
- return e.hasAttribute("prefix") && (t.prefix = e.getAttribute("prefix") ?? void 0), e.hasAttribute("suffix") && (t.suffix = e.getAttribute("suffix") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("start") && (t.start = Number(e.getAttribute("start"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("decimals") && (t.decimals = Number(e.getAttribute("decimals"))), t;
416
+ return s(t, e, "prefix", "prefix"), s(t, e, "suffix", "suffix"), s(t, e, "color", "color"), a(t, e, "value", "value"), a(t, e, "start", "start"), a(t, e, "duration", "duration"), a(t, e, "decimals", "decimals"), t;
486
417
  }
487
- var an = class extends HTMLElement {
418
+ var pn = class extends HTMLElement {
488
419
  ctrl = null;
489
420
  static get observedAttributes() {
490
421
  return [
@@ -498,40 +429,31 @@ var an = class extends HTMLElement {
498
429
  ];
499
430
  }
500
431
  connectedCallback() {
501
- this.ctrl = it(this, g(this));
432
+ this.ctrl = ot(this, fn(this));
502
433
  }
503
434
  disconnectedCallback() {
504
435
  this.ctrl?.destroy(), this.ctrl = null;
505
436
  }
506
437
  attributeChangedCallback() {
507
- this.ctrl?.update(g(this));
438
+ this.ctrl?.update(fn(this));
508
439
  }
509
440
  };
510
- typeof customElements < "u" && !customElements.get("cos-count-up") && customElements.define(rn, an);
441
+ typeof customElements < "u" && !customElements.get("cos-count-up") && customElements.define(dn, pn);
511
442
  //#endregion
512
443
  //#region src/components/countdown/element/index.ts
513
- var on = "cos-countdown";
514
- function _(e) {
444
+ var mn = "cos-countdown";
445
+ function h(e) {
515
446
  let t = {};
516
- if (e.hasAttribute("target-date") && (t.targetDate = e.getAttribute("target-date") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("invalid-text") && (t.invalidText = e.getAttribute("invalid-text") ?? void 0), e.hasAttribute("ended-text") && (t.endedText = e.getAttribute("ended-text") ?? void 0), t.showLabels = e.hasAttribute("show-labels"), e.hasAttribute("labels")) try {
517
- t.labels = JSON.parse(e.getAttribute("labels") ?? "null");
518
- } catch {}
519
- let n = e._labels;
520
- return n !== void 0 && (t.labels = n), t.onEnd = (...t) => {
521
- e.dispatchEvent(new CustomEvent("end", {
522
- detail: t.length <= 1 ? t[0] : t,
523
- bubbles: !0
524
- }));
525
- }, t;
447
+ return s(t, e, "targetDate", "target-date"), s(t, e, "color", "color"), s(t, e, "invalidText", "invalid-text"), s(t, e, "endedText", "ended-text"), r(t, e, "showLabels", "show-labels", "presence"), i(t, e, "labels", "labels"), o(t, e, "labels", "_labels"), t.onEnd = n(e, "end"), t;
526
448
  }
527
- var sn = class extends HTMLElement {
449
+ var hn = class extends HTMLElement {
528
450
  ctrl = null;
529
451
  _labels;
530
452
  get labels() {
531
453
  return this._labels;
532
454
  }
533
455
  set labels(e) {
534
- this._labels = e, this.ctrl?.update(_(this));
456
+ this._labels = e, this.ctrl?.update(h(this));
535
457
  }
536
458
  static get observedAttributes() {
537
459
  return [
@@ -544,24 +466,24 @@ var sn = class extends HTMLElement {
544
466
  ];
545
467
  }
546
468
  connectedCallback() {
547
- this.ctrl = ve(this, _(this));
469
+ this.ctrl = be(this, h(this));
548
470
  }
549
471
  disconnectedCallback() {
550
472
  this.ctrl?.destroy(), this.ctrl = null;
551
473
  }
552
474
  attributeChangedCallback() {
553
- this.ctrl?.update(_(this));
475
+ this.ctrl?.update(h(this));
554
476
  }
555
477
  };
556
- typeof customElements < "u" && !customElements.get("cos-countdown") && customElements.define(on, sn);
478
+ typeof customElements < "u" && !customElements.get("cos-countdown") && customElements.define(mn, hn);
557
479
  //#endregion
558
480
  //#region src/components/cursorTrail/element/index.ts
559
- var cn = "cos-cursor-trail";
560
- function v(e) {
481
+ var gn = "cos-cursor-trail";
482
+ function _n(e) {
561
483
  let t = {};
562
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("length") && (t.length = Number(e.getAttribute("length"))), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
484
+ return s(t, e, "color", "color"), s(t, e, "hint", "hint"), a(t, e, "length", "length"), a(t, e, "width", "width"), a(t, e, "height", "height"), t;
563
485
  }
564
- var ln = class extends HTMLElement {
486
+ var vn = class extends HTMLElement {
565
487
  ctrl = null;
566
488
  static get observedAttributes() {
567
489
  return [
@@ -573,39 +495,31 @@ var ln = class extends HTMLElement {
573
495
  ];
574
496
  }
575
497
  connectedCallback() {
576
- this.ctrl = Se(this, v(this));
498
+ this.ctrl = we(this, _n(this));
577
499
  }
578
500
  disconnectedCallback() {
579
501
  this.ctrl?.destroy(), this.ctrl = null;
580
502
  }
581
503
  attributeChangedCallback() {
582
- this.ctrl?.update(v(this));
504
+ this.ctrl?.update(_n(this));
583
505
  }
584
506
  };
585
- typeof customElements < "u" && !customElements.get("cos-cursor-trail") && customElements.define(cn, ln);
507
+ typeof customElements < "u" && !customElements.get("cos-cursor-trail") && customElements.define(gn, vn);
586
508
  //#endregion
587
509
  //#region src/components/curvedLoop/element/index.ts
588
- var un = "cos-curved-loop";
589
- function y(e) {
510
+ var yn = "cos-curved-loop";
511
+ function g(e) {
590
512
  let t = {};
591
- if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("curve-amount") && (t.curveAmount = Number(e.getAttribute("curve-amount"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("interactive")) {
592
- let n = e.getAttribute("interactive");
593
- t.interactive = n !== "false" && n !== "0";
594
- }
595
- if (e.hasAttribute("direction")) try {
596
- t.direction = JSON.parse(e.getAttribute("direction") ?? "null");
597
- } catch {}
598
- let n = e._direction;
599
- return n !== void 0 && (t.direction = n), t;
513
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "speed", "speed"), a(t, e, "curveAmount", "curve-amount"), a(t, e, "fontSize", "font-size"), r(t, e, "interactive", "interactive", "optional-true"), i(t, e, "direction", "direction"), o(t, e, "direction", "_direction"), t;
600
514
  }
601
- var dn = class extends HTMLElement {
515
+ var bn = class extends HTMLElement {
602
516
  ctrl = null;
603
517
  _direction;
604
518
  get direction() {
605
519
  return this._direction;
606
520
  }
607
521
  set direction(e) {
608
- this._direction = e, this.ctrl?.update(y(this));
522
+ this._direction = e, this.ctrl?.update(g(this));
609
523
  }
610
524
  static get observedAttributes() {
611
525
  return [
@@ -619,24 +533,24 @@ var dn = class extends HTMLElement {
619
533
  ];
620
534
  }
621
535
  connectedCallback() {
622
- this.ctrl = we(this, y(this));
536
+ this.ctrl = Ee(this, g(this));
623
537
  }
624
538
  disconnectedCallback() {
625
539
  this.ctrl?.destroy(), this.ctrl = null;
626
540
  }
627
541
  attributeChangedCallback() {
628
- this.ctrl?.update(y(this));
542
+ this.ctrl?.update(g(this));
629
543
  }
630
544
  };
631
- typeof customElements < "u" && !customElements.get("cos-curved-loop") && customElements.define(un, dn);
545
+ typeof customElements < "u" && !customElements.get("cos-curved-loop") && customElements.define(yn, bn);
632
546
  //#endregion
633
547
  //#region src/components/cyberGrid/element/index.ts
634
- var fn = "cos-cyber-grid";
635
- function pn(e) {
548
+ var xn = "cos-cyber-grid";
549
+ function Sn(e) {
636
550
  let t = {};
637
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), t;
551
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), t;
638
552
  }
639
- var mn = class extends HTMLElement {
553
+ var Cn = class extends HTMLElement {
640
554
  ctrl = null;
641
555
  static get observedAttributes() {
642
556
  return [
@@ -648,28 +562,24 @@ var mn = class extends HTMLElement {
648
562
  ];
649
563
  }
650
564
  connectedCallback() {
651
- this.ctrl = be(this, pn(this));
565
+ this.ctrl = Se(this, Sn(this));
652
566
  }
653
567
  disconnectedCallback() {
654
568
  this.ctrl?.destroy(), this.ctrl = null;
655
569
  }
656
570
  attributeChangedCallback() {
657
- this.ctrl?.update(pn(this));
571
+ this.ctrl?.update(Sn(this));
658
572
  }
659
573
  };
660
- typeof customElements < "u" && !customElements.get("cos-cyber-grid") && customElements.define(fn, mn);
574
+ typeof customElements < "u" && !customElements.get("cos-cyber-grid") && customElements.define(xn, Cn);
661
575
  //#endregion
662
576
  //#region src/components/dandelionField/element/index.ts
663
- var hn = "cos-dandelion-field";
664
- function gn(e) {
577
+ var wn = "cos-dandelion-field";
578
+ function Tn(e) {
665
579
  let t = {};
666
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("plant-count") && (t.plantCount = Number(e.getAttribute("plant-count"))), e.hasAttribute("seed-count") && (t.seedCount = Number(e.getAttribute("seed-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
667
- let n = e.getAttribute("interactive");
668
- t.interactive = n !== "false" && n !== "0";
669
- }
670
- return t;
580
+ return s(t, e, "ariaLabel", "aria-label"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "plantCount", "plant-count"), a(t, e, "seedCount", "seed-count"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), t;
671
581
  }
672
- var _n = class extends HTMLElement {
582
+ var En = class extends HTMLElement {
673
583
  ctrl = null;
674
584
  static get observedAttributes() {
675
585
  return [
@@ -684,40 +594,31 @@ var _n = class extends HTMLElement {
684
594
  ];
685
595
  }
686
596
  connectedCallback() {
687
- this.ctrl = ee(this, gn(this));
597
+ this.ctrl = ne(this, Tn(this));
688
598
  }
689
599
  disconnectedCallback() {
690
600
  this.ctrl?.destroy(), this.ctrl = null;
691
601
  }
692
602
  attributeChangedCallback() {
693
- this.ctrl?.update(gn(this));
603
+ this.ctrl?.update(Tn(this));
694
604
  }
695
605
  };
696
- typeof customElements < "u" && !customElements.get("cos-dandelion-field") && customElements.define(hn, _n);
606
+ typeof customElements < "u" && !customElements.get("cos-dandelion-field") && customElements.define(wn, En);
697
607
  //#endregion
698
608
  //#region src/components/diceRoll/element/index.ts
699
- var vn = "cos-dice-roll";
700
- function b(e) {
609
+ var Dn = "cos-dice-roll";
610
+ function _(e) {
701
611
  let t = {};
702
- if (e.hasAttribute("roll-text") && (t.rollText = e.getAttribute("roll-text") ?? void 0), e.hasAttribute("rolling-text") && (t.rollingText = e.getAttribute("rolling-text") ?? void 0), e.hasAttribute("result-prefix") && (t.resultPrefix = e.getAttribute("result-prefix") ?? void 0), e.hasAttribute("sides")) try {
703
- t.sides = JSON.parse(e.getAttribute("sides") ?? "null");
704
- } catch {}
705
- let n = e._sides;
706
- return n !== void 0 && (t.sides = n), t.onRoll = (...t) => {
707
- e.dispatchEvent(new CustomEvent("roll", {
708
- detail: t.length <= 1 ? t[0] : t,
709
- bubbles: !0
710
- }));
711
- }, t;
612
+ return s(t, e, "rollText", "roll-text"), s(t, e, "rollingText", "rolling-text"), s(t, e, "resultPrefix", "result-prefix"), i(t, e, "sides", "sides"), o(t, e, "sides", "_sides"), t.onRoll = n(e, "roll"), t;
712
613
  }
713
- var yn = class extends HTMLElement {
614
+ var On = class extends HTMLElement {
714
615
  ctrl = null;
715
616
  _sides;
716
617
  get sides() {
717
618
  return this._sides;
718
619
  }
719
620
  set sides(e) {
720
- this._sides = e, this.ctrl?.update(b(this));
621
+ this._sides = e, this.ctrl?.update(_(this));
721
622
  }
722
623
  static get observedAttributes() {
723
624
  return [
@@ -728,24 +629,24 @@ var yn = class extends HTMLElement {
728
629
  ];
729
630
  }
730
631
  connectedCallback() {
731
- this.ctrl = re(this, b(this));
632
+ this.ctrl = ae(this, _(this));
732
633
  }
733
634
  disconnectedCallback() {
734
635
  this.ctrl?.destroy(), this.ctrl = null;
735
636
  }
736
637
  attributeChangedCallback() {
737
- this.ctrl?.update(b(this));
638
+ this.ctrl?.update(_(this));
738
639
  }
739
640
  };
740
- typeof customElements < "u" && !customElements.get("cos-dice-roll") && customElements.define(vn, yn);
641
+ typeof customElements < "u" && !customElements.get("cos-dice-roll") && customElements.define(Dn, On);
741
642
  //#endregion
742
643
  //#region src/components/dnaHelix/element/index.ts
743
- var bn = "cos-dna-helix";
744
- function xn(e) {
644
+ var kn = "cos-dna-helix";
645
+ function v(e) {
745
646
  let t = {};
746
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t;
647
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "speed", "speed"), t;
747
648
  }
748
- var Sn = class extends HTMLElement {
649
+ var An = class extends HTMLElement {
749
650
  ctrl = null;
750
651
  static get observedAttributes() {
751
652
  return [
@@ -756,24 +657,24 @@ var Sn = class extends HTMLElement {
756
657
  ];
757
658
  }
758
659
  connectedCallback() {
759
- this.ctrl = t(this, xn(this));
660
+ this.ctrl = t(this, v(this));
760
661
  }
761
662
  disconnectedCallback() {
762
663
  this.ctrl?.destroy(), this.ctrl = null;
763
664
  }
764
665
  attributeChangedCallback() {
765
- this.ctrl?.update(xn(this));
666
+ this.ctrl?.update(v(this));
766
667
  }
767
668
  };
768
- typeof customElements < "u" && !customElements.get("cos-dna-helix") && customElements.define(bn, Sn);
669
+ typeof customElements < "u" && !customElements.get("cos-dna-helix") && customElements.define(kn, An);
769
670
  //#endregion
770
671
  //#region src/components/doublePendulum/element/index.ts
771
- var Cn = "cos-double-pendulum";
772
- function wn(e) {
672
+ var jn = "cos-double-pendulum";
673
+ function Mn(e) {
773
674
  let t = {};
774
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("color2") && (t.color2 = e.getAttribute("color2") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("trail-length") && (t.trailLength = Number(e.getAttribute("trail-length"))), t;
675
+ return s(t, e, "color", "color"), s(t, e, "color2", "color2"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "trailLength", "trail-length"), t;
775
676
  }
776
- var Tn = class extends HTMLElement {
677
+ var Nn = class extends HTMLElement {
777
678
  ctrl = null;
778
679
  static get observedAttributes() {
779
680
  return [
@@ -785,24 +686,24 @@ var Tn = class extends HTMLElement {
785
686
  ];
786
687
  }
787
688
  connectedCallback() {
788
- this.ctrl = ae(this, wn(this));
689
+ this.ctrl = se(this, Mn(this));
789
690
  }
790
691
  disconnectedCallback() {
791
692
  this.ctrl?.destroy(), this.ctrl = null;
792
693
  }
793
694
  attributeChangedCallback() {
794
- this.ctrl?.update(wn(this));
695
+ this.ctrl?.update(Mn(this));
795
696
  }
796
697
  };
797
- typeof customElements < "u" && !customElements.get("cos-double-pendulum") && customElements.define(Cn, Tn);
698
+ typeof customElements < "u" && !customElements.get("cos-double-pendulum") && customElements.define(jn, Nn);
798
699
  //#endregion
799
700
  //#region src/components/electricArc/element/index.ts
800
- var En = "cos-electric-arc";
801
- function Dn(e) {
701
+ var Pn = "cos-electric-arc";
702
+ function Fn(e) {
802
703
  let t = {};
803
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
704
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), t;
804
705
  }
805
- var On = class extends HTMLElement {
706
+ var In = class extends HTMLElement {
806
707
  ctrl = null;
807
708
  static get observedAttributes() {
808
709
  return [
@@ -812,37 +713,24 @@ var On = class extends HTMLElement {
812
713
  ];
813
714
  }
814
715
  connectedCallback() {
815
- this.ctrl = ot(this, Dn(this));
716
+ this.ctrl = ct(this, Fn(this));
816
717
  }
817
718
  disconnectedCallback() {
818
719
  this.ctrl?.destroy(), this.ctrl = null;
819
720
  }
820
721
  attributeChangedCallback() {
821
- this.ctrl?.update(Dn(this));
722
+ this.ctrl?.update(Fn(this));
822
723
  }
823
724
  };
824
- typeof customElements < "u" && !customElements.get("cos-electric-arc") && customElements.define(En, On);
725
+ typeof customElements < "u" && !customElements.get("cos-electric-arc") && customElements.define(Pn, In);
825
726
  //#endregion
826
727
  //#region src/components/fireworks/element/index.ts
827
- var kn = "cos-fireworks";
828
- function An(e) {
728
+ var Ln = "cos-fireworks";
729
+ function Rn(e) {
829
730
  let t = {};
830
- if (e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("auto")) {
831
- let n = e.getAttribute("auto");
832
- t.auto = n !== "false" && n !== "0";
833
- }
834
- if (e.hasAttribute("interactive")) {
835
- let n = e.getAttribute("interactive");
836
- t.interactive = n !== "false" && n !== "0";
837
- }
838
- return t.onComplete = (...t) => {
839
- e.dispatchEvent(new CustomEvent("complete", {
840
- detail: t.length <= 1 ? t[0] : t,
841
- bubbles: !0
842
- }));
843
- }, t;
731
+ return s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), r(t, e, "fill", "fill", "presence"), r(t, e, "auto", "auto", "optional-true"), r(t, e, "interactive", "interactive", "optional-true"), t.onComplete = n(e, "complete"), t;
844
732
  }
845
- var jn = class extends HTMLElement {
733
+ var zn = class extends HTMLElement {
846
734
  ctrl = null;
847
735
  static get observedAttributes() {
848
736
  return [
@@ -855,49 +743,27 @@ var jn = class extends HTMLElement {
855
743
  ];
856
744
  }
857
745
  connectedCallback() {
858
- this.ctrl = je(this, An(this));
746
+ this.ctrl = Ne(this, Rn(this));
859
747
  }
860
748
  disconnectedCallback() {
861
749
  this.ctrl?.destroy(), this.ctrl = null;
862
750
  }
863
751
  attributeChangedCallback() {
864
- this.ctrl?.update(An(this));
752
+ this.ctrl?.update(Rn(this));
865
753
  }
866
754
  launch(e) {
867
755
  return this.ctrl?.launch(e);
868
756
  }
869
757
  };
870
- typeof customElements < "u" && !customElements.get("cos-fireworks") && customElements.define(kn, jn);
758
+ typeof customElements < "u" && !customElements.get("cos-fireworks") && customElements.define(Ln, zn);
871
759
  //#endregion
872
760
  //#region src/components/flipCard/element/index.ts
873
- var Mn = "cos-flip-card";
874
- function Nn(e) {
761
+ var Bn = "cos-flip-card";
762
+ function Vn(e) {
875
763
  let t = {};
876
- if (e.hasAttribute("front-title") && (t.frontTitle = e.getAttribute("front-title") ?? void 0), e.hasAttribute("front-subtitle") && (t.frontSubtitle = e.getAttribute("front-subtitle") ?? void 0), e.hasAttribute("back-title") && (t.backTitle = e.getAttribute("back-title") ?? void 0), e.hasAttribute("back-subtitle") && (t.backSubtitle = e.getAttribute("back-subtitle") ?? void 0), e.hasAttribute("flipped")) {
877
- let n = e.getAttribute("flipped");
878
- t.flipped = n !== "false" && n !== "0";
879
- } else t.flipped = void 0;
880
- if (e.hasAttribute("default-flipped")) {
881
- let n = e.getAttribute("default-flipped");
882
- t.defaultFlipped = n !== "false" && n !== "0";
883
- }
884
- if (e.hasAttribute("disabled")) {
885
- let n = e.getAttribute("disabled");
886
- t.disabled = n !== "false" && n !== "0";
887
- }
888
- return t.onReveal = (...t) => {
889
- e.dispatchEvent(new CustomEvent("reveal", {
890
- detail: t.length <= 1 ? t[0] : t,
891
- bubbles: !0
892
- }));
893
- }, t.onFlipChange = (...t) => {
894
- e.dispatchEvent(new CustomEvent("flip-change", {
895
- detail: t.length <= 1 ? t[0] : t,
896
- bubbles: !0
897
- }));
898
- }, t;
764
+ return s(t, e, "frontTitle", "front-title"), s(t, e, "frontSubtitle", "front-subtitle"), s(t, e, "backTitle", "back-title"), s(t, e, "backSubtitle", "back-subtitle"), r(t, e, "flipped", "flipped", "optional-undefined"), r(t, e, "defaultFlipped", "default-flipped", "optional-true"), r(t, e, "disabled", "disabled", "optional-true"), t.onReveal = n(e, "reveal"), t.onFlipChange = n(e, "flip-change"), t;
899
765
  }
900
- var Pn = class extends HTMLElement {
766
+ var Hn = class extends HTMLElement {
901
767
  ctrl = null;
902
768
  static get observedAttributes() {
903
769
  return [
@@ -911,13 +777,13 @@ var Pn = class extends HTMLElement {
911
777
  ];
912
778
  }
913
779
  connectedCallback() {
914
- this.ctrl = wt(this, Nn(this));
780
+ this.ctrl = Et(this, Vn(this));
915
781
  }
916
782
  disconnectedCallback() {
917
783
  this.ctrl?.destroy(), this.ctrl = null;
918
784
  }
919
785
  attributeChangedCallback() {
920
- this.ctrl?.update(Nn(this));
786
+ this.ctrl?.update(Vn(this));
921
787
  }
922
788
  flip() {
923
789
  return this.ctrl?.flip();
@@ -926,19 +792,15 @@ var Pn = class extends HTMLElement {
926
792
  return this.ctrl?.reset();
927
793
  }
928
794
  };
929
- typeof customElements < "u" && !customElements.get("cos-flip-card") && customElements.define(Mn, Pn);
795
+ typeof customElements < "u" && !customElements.get("cos-flip-card") && customElements.define(Bn, Hn);
930
796
  //#endregion
931
797
  //#region src/components/flipCounter/element/index.ts
932
- var Fn = "cos-flip-counter";
933
- function In(e) {
798
+ var Un = "cos-flip-counter";
799
+ function Wn(e) {
934
800
  let t = {};
935
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("digits") && (t.digits = Number(e.getAttribute("digits"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("auto-interval") && (t.autoInterval = Number(e.getAttribute("auto-interval"))), e.hasAttribute("auto")) {
936
- let n = e.getAttribute("auto");
937
- t.auto = n !== "false" && n !== "0";
938
- }
939
- return t;
801
+ return s(t, e, "color", "color"), a(t, e, "value", "value"), a(t, e, "digits", "digits"), a(t, e, "duration", "duration"), a(t, e, "autoInterval", "auto-interval"), r(t, e, "auto", "auto", "optional-true"), t;
940
802
  }
941
- var Ln = class extends HTMLElement {
803
+ var Gn = class extends HTMLElement {
942
804
  ctrl = null;
943
805
  static get observedAttributes() {
944
806
  return [
@@ -951,24 +813,24 @@ var Ln = class extends HTMLElement {
951
813
  ];
952
814
  }
953
815
  connectedCallback() {
954
- this.ctrl = te(this, In(this));
816
+ this.ctrl = re(this, Wn(this));
955
817
  }
956
818
  disconnectedCallback() {
957
819
  this.ctrl?.destroy(), this.ctrl = null;
958
820
  }
959
821
  attributeChangedCallback() {
960
- this.ctrl?.update(In(this));
822
+ this.ctrl?.update(Wn(this));
961
823
  }
962
824
  };
963
- typeof customElements < "u" && !customElements.get("cos-flip-counter") && customElements.define(Fn, Ln);
825
+ typeof customElements < "u" && !customElements.get("cos-flip-counter") && customElements.define(Un, Gn);
964
826
  //#endregion
965
827
  //#region src/components/fuzzyText/element/index.ts
966
- var Rn = "cos-fuzzy-text";
967
- function zn(e) {
828
+ var Kn = "cos-fuzzy-text";
829
+ function qn(e) {
968
830
  let t = {};
969
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("font-weight") && (t.fontWeight = Number(e.getAttribute("font-weight"))), e.hasAttribute("base-intensity") && (t.baseIntensity = Number(e.getAttribute("base-intensity"))), e.hasAttribute("hover-intensity") && (t.hoverIntensity = Number(e.getAttribute("hover-intensity"))), e.hasAttribute("fuzz-range") && (t.fuzzRange = Number(e.getAttribute("fuzz-range"))), t.enableHover = e.hasAttribute("enable-hover"), t;
831
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "fontSize", "font-size"), a(t, e, "fontWeight", "font-weight"), a(t, e, "baseIntensity", "base-intensity"), a(t, e, "hoverIntensity", "hover-intensity"), a(t, e, "fuzzRange", "fuzz-range"), r(t, e, "enableHover", "enable-hover", "presence"), t;
970
832
  }
971
- var Bn = class extends HTMLElement {
833
+ var Jn = class extends HTMLElement {
972
834
  ctrl = null;
973
835
  static get observedAttributes() {
974
836
  return [
@@ -983,35 +845,31 @@ var Bn = class extends HTMLElement {
983
845
  ];
984
846
  }
985
847
  connectedCallback() {
986
- this.ctrl = ke(this, zn(this));
848
+ this.ctrl = je(this, qn(this));
987
849
  }
988
850
  disconnectedCallback() {
989
851
  this.ctrl?.destroy(), this.ctrl = null;
990
852
  }
991
853
  attributeChangedCallback() {
992
- this.ctrl?.update(zn(this));
854
+ this.ctrl?.update(qn(this));
993
855
  }
994
856
  };
995
- typeof customElements < "u" && !customElements.get("cos-fuzzy-text") && customElements.define(Rn, Bn);
857
+ typeof customElements < "u" && !customElements.get("cos-fuzzy-text") && customElements.define(Kn, Jn);
996
858
  //#endregion
997
859
  //#region src/components/gameOfLife/element/index.ts
998
- var Vn = "cos-game-of-life";
999
- function x(e) {
860
+ var Yn = "cos-game-of-life";
861
+ function y(e) {
1000
862
  let t = {};
1001
- if (e.hasAttribute("alive-color") && (t.aliveColor = e.getAttribute("alive-color") ?? void 0), e.hasAttribute("grid-color") && (t.gridColor = e.getAttribute("grid-color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cell-size") && (t.cellSize = Number(e.getAttribute("cell-size"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("density") && (t.density = Number(e.getAttribute("density"))), e.hasAttribute("labels")) try {
1002
- t.labels = JSON.parse(e.getAttribute("labels") ?? "null");
1003
- } catch {}
1004
- let n = e._labels;
1005
- return n !== void 0 && (t.labels = n), t;
863
+ return s(t, e, "aliveColor", "alive-color"), s(t, e, "gridColor", "grid-color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "cellSize", "cell-size"), a(t, e, "speed", "speed"), a(t, e, "density", "density"), i(t, e, "labels", "labels"), o(t, e, "labels", "_labels"), t;
1006
864
  }
1007
- var Hn = class extends HTMLElement {
865
+ var Xn = class extends HTMLElement {
1008
866
  ctrl = null;
1009
867
  _labels;
1010
868
  get labels() {
1011
869
  return this._labels;
1012
870
  }
1013
871
  set labels(e) {
1014
- this._labels = e, this.ctrl?.update(x(this));
872
+ this._labels = e, this.ctrl?.update(y(this));
1015
873
  }
1016
874
  static get observedAttributes() {
1017
875
  return [
@@ -1026,24 +884,24 @@ var Hn = class extends HTMLElement {
1026
884
  ];
1027
885
  }
1028
886
  connectedCallback() {
1029
- this.ctrl = Ge(this, x(this));
887
+ this.ctrl = qe(this, y(this));
1030
888
  }
1031
889
  disconnectedCallback() {
1032
890
  this.ctrl?.destroy(), this.ctrl = null;
1033
891
  }
1034
892
  attributeChangedCallback() {
1035
- this.ctrl?.update(x(this));
893
+ this.ctrl?.update(y(this));
1036
894
  }
1037
895
  };
1038
- typeof customElements < "u" && !customElements.get("cos-game-of-life") && customElements.define(Vn, Hn);
896
+ typeof customElements < "u" && !customElements.get("cos-game-of-life") && customElements.define(Yn, Xn);
1039
897
  //#endregion
1040
898
  //#region src/components/glitchText/element/index.ts
1041
- var Un = "cos-glitch-text";
1042
- function Wn(e) {
899
+ var Zn = "cos-glitch-text";
900
+ function Qn(e) {
1043
901
  let t = {};
1044
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("glitch-color1") && (t.glitchColor1 = e.getAttribute("glitch-color1") ?? void 0), e.hasAttribute("glitch-color2") && (t.glitchColor2 = e.getAttribute("glitch-color2") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t;
902
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), s(t, e, "glitchColor1", "glitch-color1"), s(t, e, "glitchColor2", "glitch-color2"), a(t, e, "fontSize", "font-size"), t;
1045
903
  }
1046
- var Gn = class extends HTMLElement {
904
+ var $n = class extends HTMLElement {
1047
905
  ctrl = null;
1048
906
  static get observedAttributes() {
1049
907
  return [
@@ -1055,35 +913,31 @@ var Gn = class extends HTMLElement {
1055
913
  ];
1056
914
  }
1057
915
  connectedCallback() {
1058
- this.ctrl = Ot(this, Wn(this));
916
+ this.ctrl = At(this, Qn(this));
1059
917
  }
1060
918
  disconnectedCallback() {
1061
919
  this.ctrl?.destroy(), this.ctrl = null;
1062
920
  }
1063
921
  attributeChangedCallback() {
1064
- this.ctrl?.update(Wn(this));
922
+ this.ctrl?.update(Qn(this));
1065
923
  }
1066
924
  };
1067
- typeof customElements < "u" && !customElements.get("cos-glitch-text") && customElements.define(Un, Gn);
925
+ typeof customElements < "u" && !customElements.get("cos-glitch-text") && customElements.define(Zn, $n);
1068
926
  //#endregion
1069
927
  //#region src/components/gradientFlow/element/index.ts
1070
- var Kn = "cos-gradient-flow";
1071
- function S(e) {
928
+ var er = "cos-gradient-flow";
929
+ function b(e) {
1072
930
  let t = {};
1073
- if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("colors")) try {
1074
- t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
1075
- } catch {}
1076
- let n = e._colors;
1077
- return n !== void 0 && (t.colors = n), t;
931
+ return s(t, e, "text", "text"), a(t, e, "fontSize", "font-size"), i(t, e, "colors", "colors"), o(t, e, "colors", "_colors"), t;
1078
932
  }
1079
- var qn = class extends HTMLElement {
933
+ var tr = class extends HTMLElement {
1080
934
  ctrl = null;
1081
935
  _colors;
1082
936
  get colors() {
1083
937
  return this._colors;
1084
938
  }
1085
939
  set colors(e) {
1086
- this._colors = e, this.ctrl?.update(S(this));
940
+ this._colors = e, this.ctrl?.update(b(this));
1087
941
  }
1088
942
  static get observedAttributes() {
1089
943
  return [
@@ -1093,24 +947,24 @@ var qn = class extends HTMLElement {
1093
947
  ];
1094
948
  }
1095
949
  connectedCallback() {
1096
- this.ctrl = Et(this, S(this));
950
+ this.ctrl = Ot(this, b(this));
1097
951
  }
1098
952
  disconnectedCallback() {
1099
953
  this.ctrl?.destroy(), this.ctrl = null;
1100
954
  }
1101
955
  attributeChangedCallback() {
1102
- this.ctrl?.update(S(this));
956
+ this.ctrl?.update(b(this));
1103
957
  }
1104
958
  };
1105
- typeof customElements < "u" && !customElements.get("cos-gradient-flow") && customElements.define(Kn, qn);
959
+ typeof customElements < "u" && !customElements.get("cos-gradient-flow") && customElements.define(er, tr);
1106
960
  //#endregion
1107
961
  //#region src/components/gravityBalls/element/index.ts
1108
- var Jn = "cos-gravity-balls";
1109
- function Yn(e) {
962
+ var nr = "cos-gravity-balls";
963
+ function rr(e) {
1110
964
  let t = {};
1111
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("ball-count") && (t.ballCount = Number(e.getAttribute("ball-count"))), t;
965
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "ballCount", "ball-count"), t;
1112
966
  }
1113
- var Xn = class extends HTMLElement {
967
+ var ir = class extends HTMLElement {
1114
968
  ctrl = null;
1115
969
  static get observedAttributes() {
1116
970
  return [
@@ -1120,24 +974,24 @@ var Xn = class extends HTMLElement {
1120
974
  ];
1121
975
  }
1122
976
  connectedCallback() {
1123
- this.ctrl = St(this, Yn(this));
977
+ this.ctrl = wt(this, rr(this));
1124
978
  }
1125
979
  disconnectedCallback() {
1126
980
  this.ctrl?.destroy(), this.ctrl = null;
1127
981
  }
1128
982
  attributeChangedCallback() {
1129
- this.ctrl?.update(Yn(this));
983
+ this.ctrl?.update(rr(this));
1130
984
  }
1131
985
  };
1132
- typeof customElements < "u" && !customElements.get("cos-gravity-balls") && customElements.define(Jn, Xn);
986
+ typeof customElements < "u" && !customElements.get("cos-gravity-balls") && customElements.define(nr, ir);
1133
987
  //#endregion
1134
988
  //#region src/components/holographicCard/element/index.ts
1135
- var Zn = "cos-holographic-card";
1136
- function Qn(e) {
989
+ var ar = "cos-holographic-card";
990
+ function or(e) {
1137
991
  let t = {};
1138
- return e.hasAttribute("title") && (t.title = e.getAttribute("title") ?? void 0), e.hasAttribute("subtitle") && (t.subtitle = e.getAttribute("subtitle") ?? void 0), e.hasAttribute("image") && (t.image = e.getAttribute("image") ?? void 0), t;
992
+ return s(t, e, "title", "title"), s(t, e, "subtitle", "subtitle"), s(t, e, "image", "image"), t;
1139
993
  }
1140
- var $n = class extends HTMLElement {
994
+ var sr = class extends HTMLElement {
1141
995
  ctrl = null;
1142
996
  static get observedAttributes() {
1143
997
  return [
@@ -1147,28 +1001,24 @@ var $n = class extends HTMLElement {
1147
1001
  ];
1148
1002
  }
1149
1003
  connectedCallback() {
1150
- this.ctrl = He(this, Qn(this));
1004
+ this.ctrl = We(this, or(this));
1151
1005
  }
1152
1006
  disconnectedCallback() {
1153
1007
  this.ctrl?.destroy(), this.ctrl = null;
1154
1008
  }
1155
1009
  attributeChangedCallback() {
1156
- this.ctrl?.update(Qn(this));
1010
+ this.ctrl?.update(or(this));
1157
1011
  }
1158
1012
  };
1159
- typeof customElements < "u" && !customElements.get("cos-holographic-card") && customElements.define(Zn, $n);
1013
+ typeof customElements < "u" && !customElements.get("cos-holographic-card") && customElements.define(ar, sr);
1160
1014
  //#endregion
1161
1015
  //#region src/components/inkBloom/element/index.ts
1162
- var er = "cos-ink-bloom";
1163
- function tr(e) {
1016
+ var cr = "cos-ink-bloom";
1017
+ function lr(e) {
1164
1018
  let t = {};
1165
- if (e.hasAttribute("ink-color") && (t.inkColor = e.getAttribute("ink-color") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
1166
- let n = e.getAttribute("interactive");
1167
- t.interactive = n !== "false" && n !== "0";
1168
- }
1169
- return t;
1019
+ return s(t, e, "inkColor", "ink-color"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), t;
1170
1020
  }
1171
- var nr = class extends HTMLElement {
1021
+ var ur = class extends HTMLElement {
1172
1022
  ctrl = null;
1173
1023
  static get observedAttributes() {
1174
1024
  return [
@@ -1182,28 +1032,24 @@ var nr = class extends HTMLElement {
1182
1032
  ];
1183
1033
  }
1184
1034
  connectedCallback() {
1185
- this.ctrl = Oe(this, tr(this));
1035
+ this.ctrl = Ae(this, lr(this));
1186
1036
  }
1187
1037
  disconnectedCallback() {
1188
1038
  this.ctrl?.destroy(), this.ctrl = null;
1189
1039
  }
1190
1040
  attributeChangedCallback() {
1191
- this.ctrl?.update(tr(this));
1041
+ this.ctrl?.update(lr(this));
1192
1042
  }
1193
1043
  };
1194
- typeof customElements < "u" && !customElements.get("cos-ink-bloom") && customElements.define(er, nr);
1044
+ typeof customElements < "u" && !customElements.get("cos-ink-bloom") && customElements.define(cr, ur);
1195
1045
  //#endregion
1196
1046
  //#region src/components/lavaBubble/element/index.ts
1197
- var rr = "cos-lava-bubble";
1198
- function ir(e) {
1047
+ var dr = "cos-lava-bubble";
1048
+ function fr(e) {
1199
1049
  let t = {};
1200
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("heat") && (t.heat = Number(e.getAttribute("heat"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("activity") && (t.activity = Number(e.getAttribute("activity"))), t.fill = e.hasAttribute("fill"), t.autoSpawn = e.hasAttribute("auto-spawn"), e.hasAttribute("interactive")) {
1201
- let n = e.getAttribute("interactive");
1202
- t.interactive = n !== "false" && n !== "0";
1203
- }
1204
- return t;
1050
+ return s(t, e, "ariaLabel", "aria-label"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "heat", "heat"), a(t, e, "speed", "speed"), a(t, e, "activity", "activity"), r(t, e, "fill", "fill", "presence"), r(t, e, "autoSpawn", "auto-spawn", "presence"), r(t, e, "interactive", "interactive", "optional-true"), t;
1205
1051
  }
1206
- var ar = class extends HTMLElement {
1052
+ var pr = class extends HTMLElement {
1207
1053
  ctrl = null;
1208
1054
  static get observedAttributes() {
1209
1055
  return [
@@ -1219,35 +1065,31 @@ var ar = class extends HTMLElement {
1219
1065
  ];
1220
1066
  }
1221
1067
  connectedCallback() {
1222
- this.ctrl = jt(this, ir(this));
1068
+ this.ctrl = Nt(this, fr(this));
1223
1069
  }
1224
1070
  disconnectedCallback() {
1225
1071
  this.ctrl?.destroy(), this.ctrl = null;
1226
1072
  }
1227
1073
  attributeChangedCallback() {
1228
- this.ctrl?.update(ir(this));
1074
+ this.ctrl?.update(fr(this));
1229
1075
  }
1230
1076
  };
1231
- typeof customElements < "u" && !customElements.get("cos-lava-bubble") && customElements.define(rr, ar);
1077
+ typeof customElements < "u" && !customElements.get("cos-lava-bubble") && customElements.define(dr, pr);
1232
1078
  //#endregion
1233
1079
  //#region src/components/liquidGlass/element/index.ts
1234
- var or = "cos-liquid-glass";
1235
- function C(e) {
1080
+ var mr = "cos-liquid-glass";
1081
+ function x(e) {
1236
1082
  let t = {};
1237
- if (e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("blur") && (t.blur = Number(e.getAttribute("blur"))), e.hasAttribute("border-radius") && (t.borderRadius = Number(e.getAttribute("border-radius"))), e.hasAttribute("slot-element")) try {
1238
- t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
1239
- } catch {}
1240
- let n = e._slotElement;
1241
- return n !== void 0 && (t.slotElement = n), t;
1083
+ return s(t, e, "defaultContent", "default-content"), a(t, e, "blur", "blur"), a(t, e, "borderRadius", "border-radius"), i(t, e, "slotElement", "slot-element"), o(t, e, "slotElement", "_slotElement"), t;
1242
1084
  }
1243
- var sr = class extends HTMLElement {
1085
+ var hr = class extends HTMLElement {
1244
1086
  ctrl = null;
1245
1087
  _slotElement;
1246
1088
  get slotElement() {
1247
1089
  return this._slotElement;
1248
1090
  }
1249
1091
  set slotElement(e) {
1250
- this._slotElement = e, this.ctrl?.update(C(this));
1092
+ this._slotElement = e, this.ctrl?.update(x(this));
1251
1093
  }
1252
1094
  static get observedAttributes() {
1253
1095
  return [
@@ -1258,27 +1100,27 @@ var sr = class extends HTMLElement {
1258
1100
  ];
1259
1101
  }
1260
1102
  connectedCallback() {
1261
- this.ctrl = lt(this, C(this));
1103
+ this.ctrl = dt(this, x(this));
1262
1104
  }
1263
1105
  disconnectedCallback() {
1264
1106
  this.ctrl?.destroy(), this.ctrl = null;
1265
1107
  }
1266
1108
  attributeChangedCallback() {
1267
- this.ctrl?.update(C(this));
1109
+ this.ctrl?.update(x(this));
1268
1110
  }
1269
1111
  getSlot() {
1270
1112
  return this.ctrl?.getSlot();
1271
1113
  }
1272
1114
  };
1273
- typeof customElements < "u" && !customElements.get("cos-liquid-glass") && customElements.define(or, sr);
1115
+ typeof customElements < "u" && !customElements.get("cos-liquid-glass") && customElements.define(mr, hr);
1274
1116
  //#endregion
1275
1117
  //#region src/components/liquidProgress/element/index.ts
1276
- var cr = "cos-liquid-progress";
1277
- function lr(e) {
1118
+ var gr = "cos-liquid-progress";
1119
+ function _r(e) {
1278
1120
  let t = {};
1279
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("max") && (t.max = Number(e.getAttribute("max"))), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), t;
1121
+ return s(t, e, "color", "color"), a(t, e, "value", "value"), a(t, e, "max", "max"), a(t, e, "size", "size"), t;
1280
1122
  }
1281
- var ur = class extends HTMLElement {
1123
+ var vr = class extends HTMLElement {
1282
1124
  ctrl = null;
1283
1125
  static get observedAttributes() {
1284
1126
  return [
@@ -1289,24 +1131,24 @@ var ur = class extends HTMLElement {
1289
1131
  ];
1290
1132
  }
1291
1133
  connectedCallback() {
1292
- this.ctrl = $e(this, lr(this));
1134
+ this.ctrl = tt(this, _r(this));
1293
1135
  }
1294
1136
  disconnectedCallback() {
1295
1137
  this.ctrl?.destroy(), this.ctrl = null;
1296
1138
  }
1297
1139
  attributeChangedCallback() {
1298
- this.ctrl?.update(lr(this));
1140
+ this.ctrl?.update(_r(this));
1299
1141
  }
1300
1142
  };
1301
- typeof customElements < "u" && !customElements.get("cos-liquid-progress") && customElements.define(cr, ur);
1143
+ typeof customElements < "u" && !customElements.get("cos-liquid-progress") && customElements.define(gr, vr);
1302
1144
  //#endregion
1303
1145
  //#region src/components/lorenzAttractor/element/index.ts
1304
- var dr = "cos-lorenz-attractor";
1305
- function fr(e) {
1146
+ var yr = "cos-lorenz-attractor";
1147
+ function br(e) {
1306
1148
  let t = {};
1307
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("point-count") && (t.pointCount = Number(e.getAttribute("point-count"))), t;
1149
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "speed", "speed"), a(t, e, "pointCount", "point-count"), t;
1308
1150
  }
1309
- var pr = class extends HTMLElement {
1151
+ var xr = class extends HTMLElement {
1310
1152
  ctrl = null;
1311
1153
  static get observedAttributes() {
1312
1154
  return [
@@ -1318,35 +1160,31 @@ var pr = class extends HTMLElement {
1318
1160
  ];
1319
1161
  }
1320
1162
  connectedCallback() {
1321
- this.ctrl = tt(this, fr(this));
1163
+ this.ctrl = rt(this, br(this));
1322
1164
  }
1323
1165
  disconnectedCallback() {
1324
1166
  this.ctrl?.destroy(), this.ctrl = null;
1325
1167
  }
1326
1168
  attributeChangedCallback() {
1327
- this.ctrl?.update(fr(this));
1169
+ this.ctrl?.update(br(this));
1328
1170
  }
1329
1171
  };
1330
- typeof customElements < "u" && !customElements.get("cos-lorenz-attractor") && customElements.define(dr, pr);
1172
+ typeof customElements < "u" && !customElements.get("cos-lorenz-attractor") && customElements.define(yr, xr);
1331
1173
  //#endregion
1332
1174
  //#region src/components/magneticButton/element/index.ts
1333
- var mr = "cos-magnetic-button";
1334
- function w(e) {
1175
+ var Sr = "cos-magnetic-button";
1176
+ function S(e) {
1335
1177
  let t = {};
1336
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("strength") && (t.strength = Number(e.getAttribute("strength"))), e.hasAttribute("slot-element")) try {
1337
- t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
1338
- } catch {}
1339
- let n = e._slotElement;
1340
- return n !== void 0 && (t.slotElement = n), t;
1178
+ return s(t, e, "color", "color"), s(t, e, "defaultContent", "default-content"), a(t, e, "strength", "strength"), i(t, e, "slotElement", "slot-element"), o(t, e, "slotElement", "_slotElement"), t;
1341
1179
  }
1342
- var hr = class extends HTMLElement {
1180
+ var Cr = class extends HTMLElement {
1343
1181
  ctrl = null;
1344
1182
  _slotElement;
1345
1183
  get slotElement() {
1346
1184
  return this._slotElement;
1347
1185
  }
1348
1186
  set slotElement(e) {
1349
- this._slotElement = e, this.ctrl?.update(w(this));
1187
+ this._slotElement = e, this.ctrl?.update(S(this));
1350
1188
  }
1351
1189
  static get observedAttributes() {
1352
1190
  return [
@@ -1357,27 +1195,27 @@ var hr = class extends HTMLElement {
1357
1195
  ];
1358
1196
  }
1359
1197
  connectedCallback() {
1360
- this.ctrl = mt(this, w(this));
1198
+ this.ctrl = gt(this, S(this));
1361
1199
  }
1362
1200
  disconnectedCallback() {
1363
1201
  this.ctrl?.destroy(), this.ctrl = null;
1364
1202
  }
1365
1203
  attributeChangedCallback() {
1366
- this.ctrl?.update(w(this));
1204
+ this.ctrl?.update(S(this));
1367
1205
  }
1368
1206
  getSlot() {
1369
1207
  return this.ctrl?.getSlot();
1370
1208
  }
1371
1209
  };
1372
- typeof customElements < "u" && !customElements.get("cos-magnetic-button") && customElements.define(mr, hr);
1210
+ typeof customElements < "u" && !customElements.get("cos-magnetic-button") && customElements.define(Sr, Cr);
1373
1211
  //#endregion
1374
1212
  //#region src/components/matrixRain/element/index.ts
1375
- var gr = "cos-matrix-rain";
1376
- function _r(e) {
1213
+ var wr = "cos-matrix-rain";
1214
+ function Tr(e) {
1377
1215
  let t = {};
1378
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("title") && (t.title = e.getAttribute("title") ?? void 0), e.hasAttribute("subtitle") && (t.subtitle = e.getAttribute("subtitle") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("density") && (t.density = Number(e.getAttribute("density"))), t.fill = e.hasAttribute("fill"), t.showOverlay = e.hasAttribute("show-overlay"), t;
1216
+ return s(t, e, "color", "color"), s(t, e, "title", "title"), s(t, e, "subtitle", "subtitle"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "density", "density"), r(t, e, "fill", "fill", "presence"), r(t, e, "showOverlay", "show-overlay", "presence"), t;
1379
1217
  }
1380
- var vr = class extends HTMLElement {
1218
+ var Er = class extends HTMLElement {
1381
1219
  ctrl = null;
1382
1220
  static get observedAttributes() {
1383
1221
  return [
@@ -1392,29 +1230,24 @@ var vr = class extends HTMLElement {
1392
1230
  ];
1393
1231
  }
1394
1232
  connectedCallback() {
1395
- this.ctrl = Ze(this, _r(this));
1233
+ this.ctrl = $e(this, Tr(this));
1396
1234
  }
1397
1235
  disconnectedCallback() {
1398
1236
  this.ctrl?.destroy(), this.ctrl = null;
1399
1237
  }
1400
1238
  attributeChangedCallback() {
1401
- this.ctrl?.update(_r(this));
1239
+ this.ctrl?.update(Tr(this));
1402
1240
  }
1403
1241
  };
1404
- typeof customElements < "u" && !customElements.get("cos-matrix-rain") && customElements.define(gr, vr);
1242
+ typeof customElements < "u" && !customElements.get("cos-matrix-rain") && customElements.define(wr, Er);
1405
1243
  //#endregion
1406
1244
  //#region src/components/mazeGenerator/element/index.ts
1407
- var yr = "cos-maze-generator";
1408
- function br(e) {
1245
+ var Dr = "cos-maze-generator";
1246
+ function Or(e) {
1409
1247
  let t = {};
1410
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cell-size") && (t.cellSize = Number(e.getAttribute("cell-size"))), t.onGenerated = (...t) => {
1411
- e.dispatchEvent(new CustomEvent("generated", {
1412
- detail: t.length <= 1 ? t[0] : t,
1413
- bubbles: !0
1414
- }));
1415
- }, t;
1248
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "cellSize", "cell-size"), t.onGenerated = n(e, "generated"), t;
1416
1249
  }
1417
- var xr = class extends HTMLElement {
1250
+ var kr = class extends HTMLElement {
1418
1251
  ctrl = null;
1419
1252
  static get observedAttributes() {
1420
1253
  return [
@@ -1424,24 +1257,24 @@ var xr = class extends HTMLElement {
1424
1257
  ];
1425
1258
  }
1426
1259
  connectedCallback() {
1427
- this.ctrl = xt(this, br(this));
1260
+ this.ctrl = Ct(this, Or(this));
1428
1261
  }
1429
1262
  disconnectedCallback() {
1430
1263
  this.ctrl?.destroy(), this.ctrl = null;
1431
1264
  }
1432
1265
  attributeChangedCallback() {
1433
- this.ctrl?.update(br(this));
1266
+ this.ctrl?.update(Or(this));
1434
1267
  }
1435
1268
  };
1436
- typeof customElements < "u" && !customElements.get("cos-maze-generator") && customElements.define(yr, xr);
1269
+ typeof customElements < "u" && !customElements.get("cos-maze-generator") && customElements.define(Dr, kr);
1437
1270
  //#endregion
1438
1271
  //#region src/components/metaballPool/element/index.ts
1439
- var Sr = "cos-metaball-pool";
1440
- function Cr(e) {
1272
+ var Ar = "cos-metaball-pool";
1273
+ function jr(e) {
1441
1274
  let t = {};
1442
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("ball-count") && (t.ballCount = Number(e.getAttribute("ball-count"))), t;
1275
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "ballCount", "ball-count"), t;
1443
1276
  }
1444
- var wr = class extends HTMLElement {
1277
+ var Mr = class extends HTMLElement {
1445
1278
  ctrl = null;
1446
1279
  static get observedAttributes() {
1447
1280
  return [
@@ -1452,24 +1285,24 @@ var wr = class extends HTMLElement {
1452
1285
  ];
1453
1286
  }
1454
1287
  connectedCallback() {
1455
- this.ctrl = Je(this, Cr(this));
1288
+ this.ctrl = Xe(this, jr(this));
1456
1289
  }
1457
1290
  disconnectedCallback() {
1458
1291
  this.ctrl?.destroy(), this.ctrl = null;
1459
1292
  }
1460
1293
  attributeChangedCallback() {
1461
- this.ctrl?.update(Cr(this));
1294
+ this.ctrl?.update(jr(this));
1462
1295
  }
1463
1296
  };
1464
- typeof customElements < "u" && !customElements.get("cos-metaball-pool") && customElements.define(Sr, wr);
1297
+ typeof customElements < "u" && !customElements.get("cos-metaball-pool") && customElements.define(Ar, Mr);
1465
1298
  //#endregion
1466
1299
  //#region src/components/meteorRain/element/index.ts
1467
- var Tr = "cos-meteor-rain";
1468
- function Er(e) {
1300
+ var Nr = "cos-meteor-rain";
1301
+ function Pr(e) {
1469
1302
  let t = {};
1470
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("meteor-count") && (t.meteorCount = Number(e.getAttribute("meteor-count"))), t.fill = e.hasAttribute("fill"), t;
1303
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "meteorCount", "meteor-count"), r(t, e, "fill", "fill", "presence"), t;
1471
1304
  }
1472
- var Dr = class extends HTMLElement {
1305
+ var Fr = class extends HTMLElement {
1473
1306
  ctrl = null;
1474
1307
  static get observedAttributes() {
1475
1308
  return [
@@ -1480,24 +1313,24 @@ var Dr = class extends HTMLElement {
1480
1313
  ];
1481
1314
  }
1482
1315
  connectedCallback() {
1483
- this.ctrl = ct(this, Er(this));
1316
+ this.ctrl = ut(this, Pr(this));
1484
1317
  }
1485
1318
  disconnectedCallback() {
1486
1319
  this.ctrl?.destroy(), this.ctrl = null;
1487
1320
  }
1488
1321
  attributeChangedCallback() {
1489
- this.ctrl?.update(Er(this));
1322
+ this.ctrl?.update(Pr(this));
1490
1323
  }
1491
1324
  };
1492
- typeof customElements < "u" && !customElements.get("cos-meteor-rain") && customElements.define(Tr, Dr);
1325
+ typeof customElements < "u" && !customElements.get("cos-meteor-rain") && customElements.define(Nr, Fr);
1493
1326
  //#endregion
1494
1327
  //#region src/components/neonText/element/index.ts
1495
- var Or = "cos-neon-text";
1496
- function T(e) {
1328
+ var Ir = "cos-neon-text";
1329
+ function Lr(e) {
1497
1330
  let t = {};
1498
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.flicker = e.hasAttribute("flicker"), t;
1331
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "fontSize", "font-size"), r(t, e, "flicker", "flicker", "presence"), t;
1499
1332
  }
1500
- var kr = class extends HTMLElement {
1333
+ var Rr = class extends HTMLElement {
1501
1334
  ctrl = null;
1502
1335
  static get observedAttributes() {
1503
1336
  return [
@@ -1508,46 +1341,38 @@ var kr = class extends HTMLElement {
1508
1341
  ];
1509
1342
  }
1510
1343
  connectedCallback() {
1511
- this.ctrl = vt(this, T(this));
1344
+ this.ctrl = bt(this, Lr(this));
1512
1345
  }
1513
1346
  disconnectedCallback() {
1514
1347
  this.ctrl?.destroy(), this.ctrl = null;
1515
1348
  }
1516
1349
  attributeChangedCallback() {
1517
- this.ctrl?.update(T(this));
1350
+ this.ctrl?.update(Lr(this));
1518
1351
  }
1519
1352
  };
1520
- typeof customElements < "u" && !customElements.get("cos-neon-text") && customElements.define(Or, kr);
1353
+ typeof customElements < "u" && !customElements.get("cos-neon-text") && customElements.define(Ir, Rr);
1521
1354
  //#endregion
1522
1355
  //#region src/components/networkGraph/element/index.ts
1523
- var Ar = "cos-network-graph";
1524
- function E(e) {
1356
+ var zr = "cos-network-graph";
1357
+ function C(e) {
1525
1358
  let t = {};
1526
- if (e.hasAttribute("link-color") && (t.linkColor = e.getAttribute("link-color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("node-radius") && (t.nodeRadius = Number(e.getAttribute("node-radius"))), e.hasAttribute("nodes")) try {
1527
- t.nodes = JSON.parse(e.getAttribute("nodes") ?? "null");
1528
- } catch {}
1529
- let n = e._nodes;
1530
- if (n !== void 0 && (t.nodes = n), e.hasAttribute("edges")) try {
1531
- t.edges = JSON.parse(e.getAttribute("edges") ?? "null");
1532
- } catch {}
1533
- let r = e._edges;
1534
- return r !== void 0 && (t.edges = r), t;
1359
+ return s(t, e, "linkColor", "link-color"), s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "nodeRadius", "node-radius"), i(t, e, "nodes", "nodes"), o(t, e, "nodes", "_nodes"), i(t, e, "edges", "edges"), o(t, e, "edges", "_edges"), t;
1535
1360
  }
1536
- var jr = class extends HTMLElement {
1361
+ var Br = class extends HTMLElement {
1537
1362
  ctrl = null;
1538
1363
  _nodes;
1539
1364
  get nodes() {
1540
1365
  return this._nodes;
1541
1366
  }
1542
1367
  set nodes(e) {
1543
- this._nodes = e, this.ctrl?.update(E(this));
1368
+ this._nodes = e, this.ctrl?.update(C(this));
1544
1369
  }
1545
1370
  _edges;
1546
1371
  get edges() {
1547
1372
  return this._edges;
1548
1373
  }
1549
1374
  set edges(e) {
1550
- this._edges = e, this.ctrl?.update(E(this));
1375
+ this._edges = e, this.ctrl?.update(C(this));
1551
1376
  }
1552
1377
  static get observedAttributes() {
1553
1378
  return [
@@ -1561,24 +1386,24 @@ var jr = class extends HTMLElement {
1561
1386
  ];
1562
1387
  }
1563
1388
  connectedCallback() {
1564
- this.ctrl = qe(this, E(this));
1389
+ this.ctrl = Ye(this, C(this));
1565
1390
  }
1566
1391
  disconnectedCallback() {
1567
1392
  this.ctrl?.destroy(), this.ctrl = null;
1568
1393
  }
1569
1394
  attributeChangedCallback() {
1570
- this.ctrl?.update(E(this));
1395
+ this.ctrl?.update(C(this));
1571
1396
  }
1572
1397
  };
1573
- typeof customElements < "u" && !customElements.get("cos-network-graph") && customElements.define(Ar, jr);
1398
+ typeof customElements < "u" && !customElements.get("cos-network-graph") && customElements.define(zr, Br);
1574
1399
  //#endregion
1575
1400
  //#region src/components/newtonCradle/element/index.ts
1576
- var Mr = "cos-newton-cradle";
1577
- function Nr(e) {
1401
+ var Vr = "cos-newton-cradle";
1402
+ function w(e) {
1578
1403
  let t = {};
1579
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("ball-count") && (t.ballCount = Number(e.getAttribute("ball-count"))), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
1404
+ return s(t, e, "color", "color"), a(t, e, "ballCount", "ball-count"), a(t, e, "width", "width"), a(t, e, "height", "height"), t;
1580
1405
  }
1581
- var Pr = class extends HTMLElement {
1406
+ var Hr = class extends HTMLElement {
1582
1407
  ctrl = null;
1583
1408
  static get observedAttributes() {
1584
1409
  return [
@@ -1589,40 +1414,31 @@ var Pr = class extends HTMLElement {
1589
1414
  ];
1590
1415
  }
1591
1416
  connectedCallback() {
1592
- this.ctrl = pt(this, Nr(this));
1417
+ this.ctrl = ht(this, w(this));
1593
1418
  }
1594
1419
  disconnectedCallback() {
1595
1420
  this.ctrl?.destroy(), this.ctrl = null;
1596
1421
  }
1597
1422
  attributeChangedCallback() {
1598
- this.ctrl?.update(Nr(this));
1423
+ this.ctrl?.update(w(this));
1599
1424
  }
1600
1425
  };
1601
- typeof customElements < "u" && !customElements.get("cos-newton-cradle") && customElements.define(Mr, Pr);
1426
+ typeof customElements < "u" && !customElements.get("cos-newton-cradle") && customElements.define(Vr, Hr);
1602
1427
  //#endregion
1603
1428
  //#region src/components/nineGrid/element/index.ts
1604
- var Fr = "cos-nine-grid";
1605
- function D(e) {
1429
+ var Ur = "cos-nine-grid";
1430
+ function T(e) {
1606
1431
  let t = {};
1607
- if (e.hasAttribute("button-text") && (t.buttonText = e.getAttribute("button-text") ?? void 0), e.hasAttribute("spinning-text") && (t.spinningText = e.getAttribute("spinning-text") ?? void 0), e.hasAttribute("target-index") && (t.targetIndex = Number(e.getAttribute("target-index"))), t.disabled = e.hasAttribute("disabled"), e.hasAttribute("items")) try {
1608
- t.items = JSON.parse(e.getAttribute("items") ?? "null");
1609
- } catch {}
1610
- let n = e._items;
1611
- return n !== void 0 && (t.items = n), t.onDrawEnd = (...t) => {
1612
- e.dispatchEvent(new CustomEvent("draw-end", {
1613
- detail: t.length <= 1 ? t[0] : t,
1614
- bubbles: !0
1615
- }));
1616
- }, t;
1432
+ return s(t, e, "buttonText", "button-text"), s(t, e, "spinningText", "spinning-text"), a(t, e, "targetIndex", "target-index"), r(t, e, "disabled", "disabled", "optional-true"), i(t, e, "items", "items"), o(t, e, "items", "_items"), t.onDrawEnd = n(e, "draw-end"), t;
1617
1433
  }
1618
- var Ir = class extends HTMLElement {
1434
+ var Wr = class extends HTMLElement {
1619
1435
  ctrl = null;
1620
1436
  _items;
1621
1437
  get items() {
1622
1438
  return this._items;
1623
1439
  }
1624
1440
  set items(e) {
1625
- this._items = e, this.ctrl?.update(D(this));
1441
+ this._items = e, this.ctrl?.update(T(this));
1626
1442
  }
1627
1443
  static get observedAttributes() {
1628
1444
  return [
@@ -1634,13 +1450,13 @@ var Ir = class extends HTMLElement {
1634
1450
  ];
1635
1451
  }
1636
1452
  connectedCallback() {
1637
- this.ctrl = We(this, D(this));
1453
+ this.ctrl = Ke(this, T(this));
1638
1454
  }
1639
1455
  disconnectedCallback() {
1640
1456
  this.ctrl?.destroy(), this.ctrl = null;
1641
1457
  }
1642
1458
  attributeChangedCallback() {
1643
- this.ctrl?.update(D(this));
1459
+ this.ctrl?.update(T(this));
1644
1460
  }
1645
1461
  draw(e) {
1646
1462
  return this.ctrl?.draw(e);
@@ -1649,49 +1465,45 @@ var Ir = class extends HTMLElement {
1649
1465
  return this.ctrl?.reset();
1650
1466
  }
1651
1467
  };
1652
- typeof customElements < "u" && !customElements.get("cos-nine-grid") && customElements.define(Fr, Ir);
1468
+ typeof customElements < "u" && !customElements.get("cos-nine-grid") && customElements.define(Ur, Wr);
1653
1469
  //#endregion
1654
1470
  //#region src/components/orbitalChart/element/index.ts
1655
- var Lr = "cos-orbital-chart";
1656
- function O(e) {
1471
+ var Gr = "cos-orbital-chart";
1472
+ function E(e) {
1657
1473
  let t = {};
1658
- if (e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("data")) try {
1659
- t.data = JSON.parse(e.getAttribute("data") ?? "null");
1660
- } catch {}
1661
- let n = e._data;
1662
- return n !== void 0 && (t.data = n), t;
1474
+ return a(t, e, "size", "size"), i(t, e, "data", "data"), o(t, e, "data", "_data"), t;
1663
1475
  }
1664
- var Rr = class extends HTMLElement {
1476
+ var Kr = class extends HTMLElement {
1665
1477
  ctrl = null;
1666
1478
  _data;
1667
1479
  get data() {
1668
1480
  return this._data;
1669
1481
  }
1670
1482
  set data(e) {
1671
- this._data = e, this.ctrl?.update(O(this));
1483
+ this._data = e, this.ctrl?.update(E(this));
1672
1484
  }
1673
1485
  static get observedAttributes() {
1674
1486
  return ["data", "size"];
1675
1487
  }
1676
1488
  connectedCallback() {
1677
- this.ctrl = rt(this, O(this));
1489
+ this.ctrl = at(this, E(this));
1678
1490
  }
1679
1491
  disconnectedCallback() {
1680
1492
  this.ctrl?.destroy(), this.ctrl = null;
1681
1493
  }
1682
1494
  attributeChangedCallback() {
1683
- this.ctrl?.update(O(this));
1495
+ this.ctrl?.update(E(this));
1684
1496
  }
1685
1497
  };
1686
- typeof customElements < "u" && !customElements.get("cos-orbital-chart") && customElements.define(Lr, Rr);
1498
+ typeof customElements < "u" && !customElements.get("cos-orbital-chart") && customElements.define(Gr, Kr);
1687
1499
  //#endregion
1688
1500
  //#region src/components/particleNetwork/element/index.ts
1689
- var zr = "cos-particle-network";
1690
- function Br(e) {
1501
+ var qr = "cos-particle-network";
1502
+ function D(e) {
1691
1503
  let t = {};
1692
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("particle-count") && (t.particleCount = Number(e.getAttribute("particle-count"))), e.hasAttribute("link-distance") && (t.linkDistance = Number(e.getAttribute("link-distance"))), e.hasAttribute("repel-radius") && (t.repelRadius = Number(e.getAttribute("repel-radius"))), t.fill = e.hasAttribute("fill"), t;
1504
+ return s(t, e, "color", "color"), s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "particleCount", "particle-count"), a(t, e, "linkDistance", "link-distance"), a(t, e, "repelRadius", "repel-radius"), r(t, e, "fill", "fill", "presence"), t;
1693
1505
  }
1694
- var Vr = class extends HTMLElement {
1506
+ var Jr = class extends HTMLElement {
1695
1507
  ctrl = null;
1696
1508
  static get observedAttributes() {
1697
1509
  return [
@@ -1706,68 +1518,38 @@ var Vr = class extends HTMLElement {
1706
1518
  ];
1707
1519
  }
1708
1520
  connectedCallback() {
1709
- this.ctrl = _t(this, Br(this));
1521
+ this.ctrl = yt(this, D(this));
1710
1522
  }
1711
1523
  disconnectedCallback() {
1712
1524
  this.ctrl?.destroy(), this.ctrl = null;
1713
1525
  }
1714
1526
  attributeChangedCallback() {
1715
- this.ctrl?.update(Br(this));
1527
+ this.ctrl?.update(D(this));
1716
1528
  }
1717
1529
  };
1718
- typeof customElements < "u" && !customElements.get("cos-particle-network") && customElements.define(zr, Vr);
1530
+ typeof customElements < "u" && !customElements.get("cos-particle-network") && customElements.define(qr, Jr);
1719
1531
  //#endregion
1720
1532
  //#region src/components/photoAlbum/element/index.ts
1721
- var Hr = "cos-photo-album";
1722
- function k(e) {
1533
+ var Yr = "cos-photo-album";
1534
+ function O(e) {
1723
1535
  let t = {};
1724
- if (e.hasAttribute("width")) {
1725
- let n = e.getAttribute("width"), r = Number(n);
1726
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1727
- }
1728
- if (e.hasAttribute("height")) {
1729
- let n = e.getAttribute("height"), r = Number(n);
1730
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1731
- }
1732
- if (e.hasAttribute("object-fit") && (t.objectFit = e.getAttribute("object-fit") ?? void 0), e.hasAttribute("page-color") && (t.pageColor = e.getAttribute("page-color") ?? void 0), e.hasAttribute("cover-color") && (t.coverColor = e.getAttribute("cover-color") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("page-turn-duration") && (t.pageTurnDuration = Number(e.getAttribute("page-turn-duration"))), e.hasAttribute("show-page-number")) {
1733
- let n = e.getAttribute("show-page-number");
1734
- t.showPageNumber = n !== "false" && n !== "0";
1735
- }
1736
- if (e.hasAttribute("photos")) try {
1737
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
1738
- } catch {}
1739
- let n = e._photos;
1740
- if (n !== void 0 && (t.photos = n), e.hasAttribute("labels")) try {
1741
- t.labels = JSON.parse(e.getAttribute("labels") ?? "null");
1742
- } catch {}
1743
- let r = e._labels;
1744
- return r !== void 0 && (t.labels = r), t.onPageChange = (...t) => {
1745
- e.dispatchEvent(new CustomEvent("page-change", {
1746
- detail: t.length <= 1 ? t[0] : t,
1747
- bubbles: !0
1748
- }));
1749
- }, t.onIndexChange = (...t) => {
1750
- e.dispatchEvent(new CustomEvent("index-change", {
1751
- detail: t.length <= 1 ? t[0] : t,
1752
- bubbles: !0
1753
- }));
1754
- }, t;
1755
- }
1756
- var Ur = class extends HTMLElement {
1536
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "objectFit", "object-fit"), s(t, e, "pageColor", "page-color"), s(t, e, "coverColor", "cover-color"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "initialIndex", "initial-index"), a(t, e, "pageTurnDuration", "page-turn-duration"), r(t, e, "showPageNumber", "show-page-number", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), i(t, e, "labels", "labels"), o(t, e, "labels", "_labels"), t.onPageChange = n(e, "page-change"), t.onIndexChange = n(e, "index-change"), t;
1537
+ }
1538
+ var Xr = class extends HTMLElement {
1757
1539
  ctrl = null;
1758
1540
  _photos;
1759
1541
  get photos() {
1760
1542
  return this._photos;
1761
1543
  }
1762
1544
  set photos(e) {
1763
- this._photos = e, this.ctrl?.update(k(this));
1545
+ this._photos = e, this.ctrl?.update(O(this));
1764
1546
  }
1765
1547
  _labels;
1766
1548
  get labels() {
1767
1549
  return this._labels;
1768
1550
  }
1769
1551
  set labels(e) {
1770
- this._labels = e, this.ctrl?.update(k(this));
1552
+ this._labels = e, this.ctrl?.update(O(this));
1771
1553
  }
1772
1554
  static get observedAttributes() {
1773
1555
  return [
@@ -1785,66 +1567,31 @@ var Ur = class extends HTMLElement {
1785
1567
  ];
1786
1568
  }
1787
1569
  connectedCallback() {
1788
- this.ctrl = ft(this, k(this));
1570
+ this.ctrl = mt(this, O(this));
1789
1571
  }
1790
1572
  disconnectedCallback() {
1791
1573
  this.ctrl?.destroy(), this.ctrl = null;
1792
1574
  }
1793
1575
  attributeChangedCallback() {
1794
- this.ctrl?.update(k(this));
1576
+ this.ctrl?.update(O(this));
1795
1577
  }
1796
1578
  };
1797
- typeof customElements < "u" && !customElements.get("cos-photo-album") && customElements.define(Hr, Ur);
1579
+ typeof customElements < "u" && !customElements.get("cos-photo-album") && customElements.define(Yr, Xr);
1798
1580
  //#endregion
1799
1581
  //#region src/components/photoCarousel/element/index.ts
1800
- var Wr = "cos-photo-carousel";
1801
- function A(e) {
1582
+ var Zr = "cos-photo-carousel";
1583
+ function k(e) {
1802
1584
  let t = {};
1803
- if (e.hasAttribute("width")) {
1804
- let n = e.getAttribute("width"), r = Number(n);
1805
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1806
- }
1807
- if (e.hasAttribute("height")) {
1808
- let n = e.getAttribute("height"), r = Number(n);
1809
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1810
- }
1811
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("radius") && (t.radius = Number(e.getAttribute("radius"))), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("auto-rotate-speed") && (t.autoRotateSpeed = Number(e.getAttribute("auto-rotate-speed"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("initial-angle") && (t.initialAngle = Number(e.getAttribute("initial-angle"))), e.hasAttribute("auto-rotate")) {
1812
- let n = e.getAttribute("auto-rotate");
1813
- t.autoRotate = n !== "false" && n !== "0";
1814
- }
1815
- if (e.hasAttribute("show-caption")) {
1816
- let n = e.getAttribute("show-caption");
1817
- t.showCaption = n !== "false" && n !== "0";
1818
- }
1819
- if (e.hasAttribute("photos")) try {
1820
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
1821
- } catch {}
1822
- let n = e._photos;
1823
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
1824
- e.dispatchEvent(new CustomEvent("photo-click", {
1825
- detail: t.length <= 1 ? t[0] : t,
1826
- bubbles: !0
1827
- }));
1828
- }, t.onFaceChange = (...t) => {
1829
- e.dispatchEvent(new CustomEvent("face-change", {
1830
- detail: t.length <= 1 ? t[0] : t,
1831
- bubbles: !0
1832
- }));
1833
- }, t.onIndexChange = (...t) => {
1834
- e.dispatchEvent(new CustomEvent("index-change", {
1835
- detail: t.length <= 1 ? t[0] : t,
1836
- bubbles: !0
1837
- }));
1838
- }, t;
1839
- }
1840
- var Gr = class extends HTMLElement {
1585
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "radius", "radius"), a(t, e, "cardWidth", "card-width"), a(t, e, "cardHeight", "card-height"), a(t, e, "autoRotateSpeed", "auto-rotate-speed"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "friction", "friction"), a(t, e, "initialAngle", "initial-angle"), r(t, e, "autoRotate", "auto-rotate", "optional-true"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onFaceChange = n(e, "face-change"), t.onIndexChange = n(e, "index-change"), t;
1586
+ }
1587
+ var Qr = class extends HTMLElement {
1841
1588
  ctrl = null;
1842
1589
  _photos;
1843
1590
  get photos() {
1844
1591
  return this._photos;
1845
1592
  }
1846
1593
  set photos(e) {
1847
- this._photos = e, this.ctrl?.update(A(this));
1594
+ this._photos = e, this.ctrl?.update(k(this));
1848
1595
  }
1849
1596
  static get observedAttributes() {
1850
1597
  return [
@@ -1864,57 +1611,31 @@ var Gr = class extends HTMLElement {
1864
1611
  ];
1865
1612
  }
1866
1613
  connectedCallback() {
1867
- this.ctrl = bt(this, A(this));
1614
+ this.ctrl = St(this, k(this));
1868
1615
  }
1869
1616
  disconnectedCallback() {
1870
1617
  this.ctrl?.destroy(), this.ctrl = null;
1871
1618
  }
1872
1619
  attributeChangedCallback() {
1873
- this.ctrl?.update(A(this));
1620
+ this.ctrl?.update(k(this));
1874
1621
  }
1875
1622
  };
1876
- typeof customElements < "u" && !customElements.get("cos-photo-carousel") && customElements.define(Wr, Gr);
1623
+ typeof customElements < "u" && !customElements.get("cos-photo-carousel") && customElements.define(Zr, Qr);
1877
1624
  //#endregion
1878
1625
  //#region src/components/photoClothesline/element/index.ts
1879
- var Kr = "cos-photo-clothesline";
1880
- function j(e) {
1626
+ var $r = "cos-photo-clothesline";
1627
+ function A(e) {
1881
1628
  let t = {};
1882
- if (e.hasAttribute("width")) {
1883
- let n = e.getAttribute("width"), r = Number(n);
1884
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1885
- }
1886
- if (e.hasAttribute("height")) {
1887
- let n = e.getAttribute("height"), r = Number(n);
1888
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1889
- }
1890
- if (e.hasAttribute("rope-color") && (t.ropeColor = e.getAttribute("rope-color") ?? void 0), e.hasAttribute("band-color") && (t.bandColor = e.getAttribute("band-color") ?? void 0), e.hasAttribute("pin-color") && (t.pinColor = e.getAttribute("pin-color") ?? void 0), e.hasAttribute("frame-color") && (t.frameColor = e.getAttribute("frame-color") ?? void 0), e.hasAttribute("background") && (t.background = e.getAttribute("background") ?? void 0), e.hasAttribute("object-fit") && (t.objectFit = e.getAttribute("object-fit") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("photo-width") && (t.photoWidth = Number(e.getAttribute("photo-width"))), e.hasAttribute("photo-height") && (t.photoHeight = Number(e.getAttribute("photo-height"))), e.hasAttribute("photo-gap") && (t.photoGap = Number(e.getAttribute("photo-gap"))), e.hasAttribute("rope-top") && (t.ropeTop = Number(e.getAttribute("rope-top"))), e.hasAttribute("rope-sag") && (t.ropeSag = Number(e.getAttribute("rope-sag"))), e.hasAttribute("band-length") && (t.bandLength = Number(e.getAttribute("band-length"))), e.hasAttribute("band-width") && (t.bandWidth = Number(e.getAttribute("band-width"))), e.hasAttribute("max-pull") && (t.maxPull = Number(e.getAttribute("max-pull"))), e.hasAttribute("stiffness") && (t.stiffness = Number(e.getAttribute("stiffness"))), e.hasAttribute("damping") && (t.damping = Number(e.getAttribute("damping"))), e.hasAttribute("tension") && (t.tension = Number(e.getAttribute("tension"))), e.hasAttribute("tilt") && (t.tilt = Number(e.getAttribute("tilt"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
1891
- let n = e.getAttribute("show-caption");
1892
- t.showCaption = n !== "false" && n !== "0";
1893
- }
1894
- if (e.hasAttribute("photos")) try {
1895
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
1896
- } catch {}
1897
- let n = e._photos;
1898
- return n !== void 0 && (t.photos = n), t.onIndexChange = (...t) => {
1899
- e.dispatchEvent(new CustomEvent("index-change", {
1900
- detail: t.length <= 1 ? t[0] : t,
1901
- bubbles: !0
1902
- }));
1903
- }, t.onPhotoClick = (...t) => {
1904
- e.dispatchEvent(new CustomEvent("photo-click", {
1905
- detail: t.length <= 1 ? t[0] : t,
1906
- bubbles: !0
1907
- }));
1908
- }, t;
1909
- }
1910
- var qr = class extends HTMLElement {
1629
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ropeColor", "rope-color"), s(t, e, "bandColor", "band-color"), s(t, e, "pinColor", "pin-color"), s(t, e, "frameColor", "frame-color"), s(t, e, "background", "background"), s(t, e, "objectFit", "object-fit"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "photoWidth", "photo-width"), a(t, e, "photoHeight", "photo-height"), a(t, e, "photoGap", "photo-gap"), a(t, e, "ropeTop", "rope-top"), a(t, e, "ropeSag", "rope-sag"), a(t, e, "bandLength", "band-length"), a(t, e, "bandWidth", "band-width"), a(t, e, "maxPull", "max-pull"), a(t, e, "stiffness", "stiffness"), a(t, e, "damping", "damping"), a(t, e, "tension", "tension"), a(t, e, "tilt", "tilt"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onIndexChange = n(e, "index-change"), t.onPhotoClick = n(e, "photo-click"), t;
1630
+ }
1631
+ var ei = class extends HTMLElement {
1911
1632
  ctrl = null;
1912
1633
  _photos;
1913
1634
  get photos() {
1914
1635
  return this._photos;
1915
1636
  }
1916
1637
  set photos(e) {
1917
- this._photos = e, this.ctrl?.update(j(this));
1638
+ this._photos = e, this.ctrl?.update(A(this));
1918
1639
  }
1919
1640
  static get observedAttributes() {
1920
1641
  return [
@@ -1945,57 +1666,31 @@ var qr = class extends HTMLElement {
1945
1666
  ];
1946
1667
  }
1947
1668
  connectedCallback() {
1948
- this.ctrl = Xe(this, j(this));
1669
+ this.ctrl = Qe(this, A(this));
1949
1670
  }
1950
1671
  disconnectedCallback() {
1951
1672
  this.ctrl?.destroy(), this.ctrl = null;
1952
1673
  }
1953
1674
  attributeChangedCallback() {
1954
- this.ctrl?.update(j(this));
1675
+ this.ctrl?.update(A(this));
1955
1676
  }
1956
1677
  };
1957
- typeof customElements < "u" && !customElements.get("cos-photo-clothesline") && customElements.define(Kr, qr);
1678
+ typeof customElements < "u" && !customElements.get("cos-photo-clothesline") && customElements.define($r, ei);
1958
1679
  //#endregion
1959
1680
  //#region src/components/photoFilmstrip/element/index.ts
1960
- var Jr = "cos-photo-filmstrip";
1961
- function M(e) {
1681
+ var ti = "cos-photo-filmstrip";
1682
+ function j(e) {
1962
1683
  let t = {};
1963
- if (e.hasAttribute("width")) {
1964
- let n = e.getAttribute("width"), r = Number(n);
1965
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1966
- }
1967
- if (e.hasAttribute("height")) {
1968
- let n = e.getAttribute("height"), r = Number(n);
1969
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
1970
- }
1971
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("frame-width") && (t.frameWidth = Number(e.getAttribute("frame-width"))), e.hasAttribute("frame-height") && (t.frameHeight = Number(e.getAttribute("frame-height"))), e.hasAttribute("frame-gap") && (t.frameGap = Number(e.getAttribute("frame-gap"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
1972
- let n = e.getAttribute("show-caption");
1973
- t.showCaption = n !== "false" && n !== "0";
1974
- }
1975
- if (e.hasAttribute("photos")) try {
1976
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
1977
- } catch {}
1978
- let n = e._photos;
1979
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
1980
- e.dispatchEvent(new CustomEvent("photo-click", {
1981
- detail: t.length <= 1 ? t[0] : t,
1982
- bubbles: !0
1983
- }));
1984
- }, t.onIndexChange = (...t) => {
1985
- e.dispatchEvent(new CustomEvent("index-change", {
1986
- detail: t.length <= 1 ? t[0] : t,
1987
- bubbles: !0
1988
- }));
1989
- }, t;
1990
- }
1991
- var Yr = class extends HTMLElement {
1684
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "frameWidth", "frame-width"), a(t, e, "frameHeight", "frame-height"), a(t, e, "frameGap", "frame-gap"), a(t, e, "friction", "friction"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onIndexChange = n(e, "index-change"), t;
1685
+ }
1686
+ var ni = class extends HTMLElement {
1992
1687
  ctrl = null;
1993
1688
  _photos;
1994
1689
  get photos() {
1995
1690
  return this._photos;
1996
1691
  }
1997
1692
  set photos(e) {
1998
- this._photos = e, this.ctrl?.update(M(this));
1693
+ this._photos = e, this.ctrl?.update(j(this));
1999
1694
  }
2000
1695
  static get observedAttributes() {
2001
1696
  return [
@@ -2013,52 +1708,31 @@ var Yr = class extends HTMLElement {
2013
1708
  ];
2014
1709
  }
2015
1710
  connectedCallback() {
2016
- this.ctrl = e(this, M(this));
1711
+ this.ctrl = e(this, j(this));
2017
1712
  }
2018
1713
  disconnectedCallback() {
2019
1714
  this.ctrl?.destroy(), this.ctrl = null;
2020
1715
  }
2021
1716
  attributeChangedCallback() {
2022
- this.ctrl?.update(M(this));
1717
+ this.ctrl?.update(j(this));
2023
1718
  }
2024
1719
  };
2025
- typeof customElements < "u" && !customElements.get("cos-photo-filmstrip") && customElements.define(Jr, Yr);
1720
+ typeof customElements < "u" && !customElements.get("cos-photo-filmstrip") && customElements.define(ti, ni);
2026
1721
  //#endregion
2027
1722
  //#region src/components/photoFridge/element/index.ts
2028
- var Xr = "cos-photo-fridge";
2029
- function N(e) {
1723
+ var ri = "cos-photo-fridge";
1724
+ function M(e) {
2030
1725
  let t = {};
2031
- if (e.hasAttribute("width")) {
2032
- let n = e.getAttribute("width"), r = Number(n);
2033
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2034
- }
2035
- if (e.hasAttribute("height")) {
2036
- let n = e.getAttribute("height"), r = Number(n);
2037
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2038
- }
2039
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("scatter") && (t.scatter = Number(e.getAttribute("scatter"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
2040
- let n = e.getAttribute("show-caption");
2041
- t.showCaption = n !== "false" && n !== "0";
2042
- }
2043
- if (e.hasAttribute("photos")) try {
2044
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2045
- } catch {}
2046
- let n = e._photos;
2047
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2048
- e.dispatchEvent(new CustomEvent("photo-click", {
2049
- detail: t.length <= 1 ? t[0] : t,
2050
- bubbles: !0
2051
- }));
2052
- }, t;
1726
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "cardWidth", "card-width"), a(t, e, "cardHeight", "card-height"), a(t, e, "scatter", "scatter"), a(t, e, "friction", "friction"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t;
2053
1727
  }
2054
- var Zr = class extends HTMLElement {
1728
+ var ii = class extends HTMLElement {
2055
1729
  ctrl = null;
2056
1730
  _photos;
2057
1731
  get photos() {
2058
1732
  return this._photos;
2059
1733
  }
2060
1734
  set photos(e) {
2061
- this._photos = e, this.ctrl?.update(N(this));
1735
+ this._photos = e, this.ctrl?.update(M(this));
2062
1736
  }
2063
1737
  static get observedAttributes() {
2064
1738
  return [
@@ -2075,74 +1749,31 @@ var Zr = class extends HTMLElement {
2075
1749
  ];
2076
1750
  }
2077
1751
  connectedCallback() {
2078
- this.ctrl = Ee(this, N(this));
1752
+ this.ctrl = Oe(this, M(this));
2079
1753
  }
2080
1754
  disconnectedCallback() {
2081
1755
  this.ctrl?.destroy(), this.ctrl = null;
2082
1756
  }
2083
1757
  attributeChangedCallback() {
2084
- this.ctrl?.update(N(this));
1758
+ this.ctrl?.update(M(this));
2085
1759
  }
2086
1760
  };
2087
- typeof customElements < "u" && !customElements.get("cos-photo-fridge") && customElements.define(Xr, Zr);
1761
+ typeof customElements < "u" && !customElements.get("cos-photo-fridge") && customElements.define(ri, ii);
2088
1762
  //#endregion
2089
1763
  //#region src/components/photoLantern/element/index.ts
2090
- var Qr = "cos-photo-lantern";
2091
- function P(e) {
1764
+ var ai = "cos-photo-lantern";
1765
+ function N(e) {
2092
1766
  let t = {};
2093
- if (e.hasAttribute("width")) {
2094
- let n = e.getAttribute("width"), r = Number(n);
2095
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2096
- }
2097
- if (e.hasAttribute("height")) {
2098
- let n = e.getAttribute("height"), r = Number(n);
2099
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2100
- }
2101
- if (e.hasAttribute("frame-color") && (t.frameColor = e.getAttribute("frame-color") ?? void 0), e.hasAttribute("paper-color") && (t.paperColor = e.getAttribute("paper-color") ?? void 0), e.hasAttribute("light-color") && (t.lightColor = e.getAttribute("light-color") ?? void 0), e.hasAttribute("background") && (t.background = e.getAttribute("background") ?? void 0), e.hasAttribute("tassel-color") && (t.tasselColor = e.getAttribute("tassel-color") ?? void 0), e.hasAttribute("object-fit") && (t.objectFit = e.getAttribute("object-fit") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("auto-rotate-speed") && (t.autoRotateSpeed = Number(e.getAttribute("auto-rotate-speed"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("light-sway") && (t.lightSway = Number(e.getAttribute("light-sway"))), e.hasAttribute("initial-angle") && (t.initialAngle = Number(e.getAttribute("initial-angle"))), e.hasAttribute("auto-rotate")) {
2102
- let n = e.getAttribute("auto-rotate");
2103
- t.autoRotate = n !== "false" && n !== "0";
2104
- }
2105
- if (e.hasAttribute("show-accessories")) {
2106
- let n = e.getAttribute("show-accessories");
2107
- t.showAccessories = n !== "false" && n !== "0";
2108
- }
2109
- if (e.hasAttribute("silhouette")) {
2110
- let n = e.getAttribute("silhouette");
2111
- t.silhouette = n !== "false" && n !== "0";
2112
- }
2113
- if (e.hasAttribute("show-caption")) {
2114
- let n = e.getAttribute("show-caption");
2115
- t.showCaption = n !== "false" && n !== "0";
2116
- }
2117
- if (e.hasAttribute("photos")) try {
2118
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2119
- } catch {}
2120
- let n = e._photos;
2121
- return n !== void 0 && (t.photos = n), t.onFaceChange = (...t) => {
2122
- e.dispatchEvent(new CustomEvent("face-change", {
2123
- detail: t.length <= 1 ? t[0] : t,
2124
- bubbles: !0
2125
- }));
2126
- }, t.onIndexChange = (...t) => {
2127
- e.dispatchEvent(new CustomEvent("index-change", {
2128
- detail: t.length <= 1 ? t[0] : t,
2129
- bubbles: !0
2130
- }));
2131
- }, t.onPhotoClick = (...t) => {
2132
- e.dispatchEvent(new CustomEvent("photo-click", {
2133
- detail: t.length <= 1 ? t[0] : t,
2134
- bubbles: !0
2135
- }));
2136
- }, t;
2137
- }
2138
- var $r = class extends HTMLElement {
1767
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "frameColor", "frame-color"), s(t, e, "paperColor", "paper-color"), s(t, e, "lightColor", "light-color"), s(t, e, "background", "background"), s(t, e, "tasselColor", "tassel-color"), s(t, e, "objectFit", "object-fit"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "autoRotateSpeed", "auto-rotate-speed"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "friction", "friction"), a(t, e, "lightSway", "light-sway"), a(t, e, "initialAngle", "initial-angle"), r(t, e, "autoRotate", "auto-rotate", "optional-true"), r(t, e, "showAccessories", "show-accessories", "optional-true"), r(t, e, "silhouette", "silhouette", "presence"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onFaceChange = n(e, "face-change"), t.onIndexChange = n(e, "index-change"), t.onPhotoClick = n(e, "photo-click"), t;
1768
+ }
1769
+ var oi = class extends HTMLElement {
2139
1770
  ctrl = null;
2140
1771
  _photos;
2141
1772
  get photos() {
2142
1773
  return this._photos;
2143
1774
  }
2144
1775
  set photos(e) {
2145
- this._photos = e, this.ctrl?.update(P(this));
1776
+ this._photos = e, this.ctrl?.update(N(this));
2146
1777
  }
2147
1778
  static get observedAttributes() {
2148
1779
  return [
@@ -2168,57 +1799,31 @@ var $r = class extends HTMLElement {
2168
1799
  ];
2169
1800
  }
2170
1801
  connectedCallback() {
2171
- this.ctrl = Ve(this, P(this));
1802
+ this.ctrl = Ue(this, N(this));
2172
1803
  }
2173
1804
  disconnectedCallback() {
2174
1805
  this.ctrl?.destroy(), this.ctrl = null;
2175
1806
  }
2176
1807
  attributeChangedCallback() {
2177
- this.ctrl?.update(P(this));
1808
+ this.ctrl?.update(N(this));
2178
1809
  }
2179
1810
  };
2180
- typeof customElements < "u" && !customElements.get("cos-photo-lantern") && customElements.define(Qr, $r);
1811
+ typeof customElements < "u" && !customElements.get("cos-photo-lantern") && customElements.define(ai, oi);
2181
1812
  //#endregion
2182
1813
  //#region src/components/photoLightbox/element/index.ts
2183
- var ei = "cos-photo-lightbox";
2184
- function F(e) {
1814
+ var si = "cos-photo-lightbox";
1815
+ function P(e) {
2185
1816
  let t = {};
2186
- if (e.hasAttribute("width")) {
2187
- let n = e.getAttribute("width"), r = Number(n);
2188
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2189
- }
2190
- if (e.hasAttribute("height")) {
2191
- let n = e.getAttribute("height"), r = Number(n);
2192
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2193
- }
2194
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("slide-width") && (t.slideWidth = Number(e.getAttribute("slide-width"))), e.hasAttribute("slide-height") && (t.slideHeight = Number(e.getAttribute("slide-height"))), e.hasAttribute("pull-threshold") && (t.pullThreshold = Number(e.getAttribute("pull-threshold"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
2195
- let n = e.getAttribute("show-caption");
2196
- t.showCaption = n !== "false" && n !== "0";
2197
- }
2198
- if (e.hasAttribute("photos")) try {
2199
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2200
- } catch {}
2201
- let n = e._photos;
2202
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2203
- e.dispatchEvent(new CustomEvent("photo-click", {
2204
- detail: t.length <= 1 ? t[0] : t,
2205
- bubbles: !0
2206
- }));
2207
- }, t.onIndexChange = (...t) => {
2208
- e.dispatchEvent(new CustomEvent("index-change", {
2209
- detail: t.length <= 1 ? t[0] : t,
2210
- bubbles: !0
2211
- }));
2212
- }, t;
2213
- }
2214
- var ti = class extends HTMLElement {
1817
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "slideWidth", "slide-width"), a(t, e, "slideHeight", "slide-height"), a(t, e, "pullThreshold", "pull-threshold"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onIndexChange = n(e, "index-change"), t;
1818
+ }
1819
+ var ci = class extends HTMLElement {
2215
1820
  ctrl = null;
2216
1821
  _photos;
2217
1822
  get photos() {
2218
1823
  return this._photos;
2219
1824
  }
2220
1825
  set photos(e) {
2221
- this._photos = e, this.ctrl?.update(F(this));
1826
+ this._photos = e, this.ctrl?.update(P(this));
2222
1827
  }
2223
1828
  static get observedAttributes() {
2224
1829
  return [
@@ -2234,52 +1839,31 @@ var ti = class extends HTMLElement {
2234
1839
  ];
2235
1840
  }
2236
1841
  connectedCallback() {
2237
- this.ctrl = ze(this, F(this));
1842
+ this.ctrl = Ve(this, P(this));
2238
1843
  }
2239
1844
  disconnectedCallback() {
2240
1845
  this.ctrl?.destroy(), this.ctrl = null;
2241
1846
  }
2242
1847
  attributeChangedCallback() {
2243
- this.ctrl?.update(F(this));
1848
+ this.ctrl?.update(P(this));
2244
1849
  }
2245
1850
  };
2246
- typeof customElements < "u" && !customElements.get("cos-photo-lightbox") && customElements.define(ei, ti);
1851
+ typeof customElements < "u" && !customElements.get("cos-photo-lightbox") && customElements.define(si, ci);
2247
1852
  //#endregion
2248
1853
  //#region src/components/photoPolaroid/element/index.ts
2249
- var ni = "cos-photo-polaroid";
2250
- function I(e) {
1854
+ var li = "cos-photo-polaroid";
1855
+ function F(e) {
2251
1856
  let t = {};
2252
- if (e.hasAttribute("width")) {
2253
- let n = e.getAttribute("width"), r = Number(n);
2254
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2255
- }
2256
- if (e.hasAttribute("height")) {
2257
- let n = e.getAttribute("height"), r = Number(n);
2258
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2259
- }
2260
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("scatter") && (t.scatter = Number(e.getAttribute("scatter"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
2261
- let n = e.getAttribute("show-caption");
2262
- t.showCaption = n !== "false" && n !== "0";
2263
- }
2264
- if (e.hasAttribute("photos")) try {
2265
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2266
- } catch {}
2267
- let n = e._photos;
2268
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2269
- e.dispatchEvent(new CustomEvent("photo-click", {
2270
- detail: t.length <= 1 ? t[0] : t,
2271
- bubbles: !0
2272
- }));
2273
- }, t;
1857
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "cardWidth", "card-width"), a(t, e, "cardHeight", "card-height"), a(t, e, "scatter", "scatter"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t;
2274
1858
  }
2275
- var ri = class extends HTMLElement {
1859
+ var ui = class extends HTMLElement {
2276
1860
  ctrl = null;
2277
1861
  _photos;
2278
1862
  get photos() {
2279
1863
  return this._photos;
2280
1864
  }
2281
1865
  set photos(e) {
2282
- this._photos = e, this.ctrl?.update(I(this));
1866
+ this._photos = e, this.ctrl?.update(F(this));
2283
1867
  }
2284
1868
  static get observedAttributes() {
2285
1869
  return [
@@ -2295,66 +1879,31 @@ var ri = class extends HTMLElement {
2295
1879
  ];
2296
1880
  }
2297
1881
  connectedCallback() {
2298
- this.ctrl = Be(this, I(this));
1882
+ this.ctrl = He(this, F(this));
2299
1883
  }
2300
1884
  disconnectedCallback() {
2301
1885
  this.ctrl?.destroy(), this.ctrl = null;
2302
1886
  }
2303
1887
  attributeChangedCallback() {
2304
- this.ctrl?.update(I(this));
1888
+ this.ctrl?.update(F(this));
2305
1889
  }
2306
1890
  };
2307
- typeof customElements < "u" && !customElements.get("cos-photo-polaroid") && customElements.define(ni, ri);
1891
+ typeof customElements < "u" && !customElements.get("cos-photo-polaroid") && customElements.define(li, ui);
2308
1892
  //#endregion
2309
1893
  //#region src/components/photoPostcard/element/index.ts
2310
- var ii = "cos-photo-postcard";
2311
- function L(e) {
1894
+ var di = "cos-photo-postcard";
1895
+ function I(e) {
2312
1896
  let t = {};
2313
- if (e.hasAttribute("width")) {
2314
- let n = e.getAttribute("width"), r = Number(n);
2315
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2316
- }
2317
- if (e.hasAttribute("height")) {
2318
- let n = e.getAttribute("height"), r = Number(n);
2319
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2320
- }
2321
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("pull-threshold") && (t.pullThreshold = Number(e.getAttribute("pull-threshold"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
2322
- let n = e.getAttribute("show-caption");
2323
- t.showCaption = n !== "false" && n !== "0";
2324
- }
2325
- if (e.hasAttribute("initial-flipped")) {
2326
- let n = e.getAttribute("initial-flipped");
2327
- t.initialFlipped = n !== "false" && n !== "0";
2328
- }
2329
- if (e.hasAttribute("photos")) try {
2330
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2331
- } catch {}
2332
- let n = e._photos;
2333
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2334
- e.dispatchEvent(new CustomEvent("photo-click", {
2335
- detail: t.length <= 1 ? t[0] : t,
2336
- bubbles: !0
2337
- }));
2338
- }, t.onIndexChange = (...t) => {
2339
- e.dispatchEvent(new CustomEvent("index-change", {
2340
- detail: t.length <= 1 ? t[0] : t,
2341
- bubbles: !0
2342
- }));
2343
- }, t.onFlipChange = (...t) => {
2344
- e.dispatchEvent(new CustomEvent("flip-change", {
2345
- detail: t.length <= 1 ? t[0] : t,
2346
- bubbles: !0
2347
- }));
2348
- }, t;
2349
- }
2350
- var ai = class extends HTMLElement {
1897
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "cardWidth", "card-width"), a(t, e, "cardHeight", "card-height"), a(t, e, "pullThreshold", "pull-threshold"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), r(t, e, "initialFlipped", "initial-flipped", "presence"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onIndexChange = n(e, "index-change"), t.onFlipChange = n(e, "flip-change"), t;
1898
+ }
1899
+ var fi = class extends HTMLElement {
2351
1900
  ctrl = null;
2352
1901
  _photos;
2353
1902
  get photos() {
2354
1903
  return this._photos;
2355
1904
  }
2356
1905
  set photos(e) {
2357
- this._photos = e, this.ctrl?.update(L(this));
1906
+ this._photos = e, this.ctrl?.update(I(this));
2358
1907
  }
2359
1908
  static get observedAttributes() {
2360
1909
  return [
@@ -2371,56 +1920,31 @@ var ai = class extends HTMLElement {
2371
1920
  ];
2372
1921
  }
2373
1922
  connectedCallback() {
2374
- this.ctrl = Mt(this, L(this));
1923
+ this.ctrl = Pt(this, I(this));
2375
1924
  }
2376
1925
  disconnectedCallback() {
2377
1926
  this.ctrl?.destroy(), this.ctrl = null;
2378
1927
  }
2379
1928
  attributeChangedCallback() {
2380
- this.ctrl?.update(L(this));
1929
+ this.ctrl?.update(I(this));
2381
1930
  }
2382
1931
  };
2383
- typeof customElements < "u" && !customElements.get("cos-photo-postcard") && customElements.define(ii, ai);
1932
+ typeof customElements < "u" && !customElements.get("cos-photo-postcard") && customElements.define(di, fi);
2384
1933
  //#endregion
2385
1934
  //#region src/components/photoPrism/element/index.ts
2386
- var oi = "cos-photo-prism";
2387
- function R(e) {
1935
+ var pi = "cos-photo-prism";
1936
+ function L(e) {
2388
1937
  let t = {};
2389
- if (e.hasAttribute("width")) {
2390
- let n = e.getAttribute("width"), r = Number(n);
2391
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2392
- }
2393
- if (e.hasAttribute("height")) {
2394
- let n = e.getAttribute("height"), r = Number(n);
2395
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2396
- }
2397
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("auto-rotate")) {
2398
- let n = e.getAttribute("auto-rotate");
2399
- t.autoRotate = n !== "false" && n !== "0";
2400
- }
2401
- if (e.hasAttribute("show-caption")) {
2402
- let n = e.getAttribute("show-caption");
2403
- t.showCaption = n !== "false" && n !== "0";
2404
- }
2405
- if (e.hasAttribute("photos")) try {
2406
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2407
- } catch {}
2408
- let n = e._photos;
2409
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2410
- e.dispatchEvent(new CustomEvent("photo-click", {
2411
- detail: t.length <= 1 ? t[0] : t,
2412
- bubbles: !0
2413
- }));
2414
- }, t;
1938
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "size", "size"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "friction", "friction"), r(t, e, "autoRotate", "auto-rotate", "optional-true"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t;
2415
1939
  }
2416
- var si = class extends HTMLElement {
1940
+ var mi = class extends HTMLElement {
2417
1941
  ctrl = null;
2418
1942
  _photos;
2419
1943
  get photos() {
2420
1944
  return this._photos;
2421
1945
  }
2422
1946
  set photos(e) {
2423
- this._photos = e, this.ctrl?.update(R(this));
1947
+ this._photos = e, this.ctrl?.update(L(this));
2424
1948
  }
2425
1949
  static get observedAttributes() {
2426
1950
  return [
@@ -2436,57 +1960,31 @@ var si = class extends HTMLElement {
2436
1960
  ];
2437
1961
  }
2438
1962
  connectedCallback() {
2439
- this.ctrl = me(this, R(this));
1963
+ this.ctrl = ge(this, L(this));
2440
1964
  }
2441
1965
  disconnectedCallback() {
2442
1966
  this.ctrl?.destroy(), this.ctrl = null;
2443
1967
  }
2444
1968
  attributeChangedCallback() {
2445
- this.ctrl?.update(R(this));
1969
+ this.ctrl?.update(L(this));
2446
1970
  }
2447
1971
  };
2448
- typeof customElements < "u" && !customElements.get("cos-photo-prism") && customElements.define(oi, si);
1972
+ typeof customElements < "u" && !customElements.get("cos-photo-prism") && customElements.define(pi, mi);
2449
1973
  //#endregion
2450
1974
  //#region src/components/photoScroll/element/index.ts
2451
- var ci = "cos-photo-scroll";
2452
- function z(e) {
1975
+ var hi = "cos-photo-scroll";
1976
+ function R(e) {
2453
1977
  let t = {};
2454
- if (e.hasAttribute("width")) {
2455
- let n = e.getAttribute("width"), r = Number(n);
2456
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2457
- }
2458
- if (e.hasAttribute("height")) {
2459
- let n = e.getAttribute("height"), r = Number(n);
2460
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2461
- }
2462
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("frame-width") && (t.frameWidth = Number(e.getAttribute("frame-width"))), e.hasAttribute("frame-height") && (t.frameHeight = Number(e.getAttribute("frame-height"))), e.hasAttribute("frame-gap") && (t.frameGap = Number(e.getAttribute("frame-gap"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
2463
- let n = e.getAttribute("show-caption");
2464
- t.showCaption = n !== "false" && n !== "0";
2465
- }
2466
- if (e.hasAttribute("photos")) try {
2467
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2468
- } catch {}
2469
- let n = e._photos;
2470
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2471
- e.dispatchEvent(new CustomEvent("photo-click", {
2472
- detail: t.length <= 1 ? t[0] : t,
2473
- bubbles: !0
2474
- }));
2475
- }, t.onIndexChange = (...t) => {
2476
- e.dispatchEvent(new CustomEvent("index-change", {
2477
- detail: t.length <= 1 ? t[0] : t,
2478
- bubbles: !0
2479
- }));
2480
- }, t;
2481
- }
2482
- var li = class extends HTMLElement {
1978
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "frameWidth", "frame-width"), a(t, e, "frameHeight", "frame-height"), a(t, e, "frameGap", "frame-gap"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "friction", "friction"), a(t, e, "initialIndex", "initial-index"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onIndexChange = n(e, "index-change"), t;
1979
+ }
1980
+ var gi = class extends HTMLElement {
2483
1981
  ctrl = null;
2484
1982
  _photos;
2485
1983
  get photos() {
2486
1984
  return this._photos;
2487
1985
  }
2488
1986
  set photos(e) {
2489
- this._photos = e, this.ctrl?.update(z(this));
1987
+ this._photos = e, this.ctrl?.update(R(this));
2490
1988
  }
2491
1989
  static get observedAttributes() {
2492
1990
  return [
@@ -2504,61 +2002,31 @@ var li = class extends HTMLElement {
2504
2002
  ];
2505
2003
  }
2506
2004
  connectedCallback() {
2507
- this.ctrl = gt(this, z(this));
2005
+ this.ctrl = vt(this, R(this));
2508
2006
  }
2509
2007
  disconnectedCallback() {
2510
2008
  this.ctrl?.destroy(), this.ctrl = null;
2511
2009
  }
2512
2010
  attributeChangedCallback() {
2513
- this.ctrl?.update(z(this));
2011
+ this.ctrl?.update(R(this));
2514
2012
  }
2515
2013
  };
2516
- typeof customElements < "u" && !customElements.get("cos-photo-scroll") && customElements.define(ci, li);
2014
+ typeof customElements < "u" && !customElements.get("cos-photo-scroll") && customElements.define(hi, gi);
2517
2015
  //#endregion
2518
2016
  //#region src/components/photoTunnel/element/index.ts
2519
- var ui = "cos-photo-tunnel";
2520
- function B(e) {
2017
+ var _i = "cos-photo-tunnel";
2018
+ function z(e) {
2521
2019
  let t = {};
2522
- if (e.hasAttribute("width")) {
2523
- let n = e.getAttribute("width"), r = Number(n);
2524
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2525
- }
2526
- if (e.hasAttribute("height")) {
2527
- let n = e.getAttribute("height"), r = Number(n);
2528
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2529
- }
2530
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("depth-step") && (t.depthStep = Number(e.getAttribute("depth-step"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("auto-advance-speed") && (t.autoAdvanceSpeed = Number(e.getAttribute("auto-advance-speed"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("auto-advance")) {
2531
- let n = e.getAttribute("auto-advance");
2532
- t.autoAdvance = n !== "false" && n !== "0";
2533
- }
2534
- if (e.hasAttribute("show-caption")) {
2535
- let n = e.getAttribute("show-caption");
2536
- t.showCaption = n !== "false" && n !== "0";
2537
- }
2538
- if (e.hasAttribute("photos")) try {
2539
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2540
- } catch {}
2541
- let n = e._photos;
2542
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2543
- e.dispatchEvent(new CustomEvent("photo-click", {
2544
- detail: t.length <= 1 ? t[0] : t,
2545
- bubbles: !0
2546
- }));
2547
- }, t.onIndexChange = (...t) => {
2548
- e.dispatchEvent(new CustomEvent("index-change", {
2549
- detail: t.length <= 1 ? t[0] : t,
2550
- bubbles: !0
2551
- }));
2552
- }, t;
2553
- }
2554
- var di = class extends HTMLElement {
2020
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "depthStep", "depth-step"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "friction", "friction"), a(t, e, "autoAdvanceSpeed", "auto-advance-speed"), a(t, e, "initialIndex", "initial-index"), r(t, e, "autoAdvance", "auto-advance", "presence"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onIndexChange = n(e, "index-change"), t;
2021
+ }
2022
+ var vi = class extends HTMLElement {
2555
2023
  ctrl = null;
2556
2024
  _photos;
2557
2025
  get photos() {
2558
2026
  return this._photos;
2559
2027
  }
2560
2028
  set photos(e) {
2561
- this._photos = e, this.ctrl?.update(B(this));
2029
+ this._photos = e, this.ctrl?.update(z(this));
2562
2030
  }
2563
2031
  static get observedAttributes() {
2564
2032
  return [
@@ -2576,61 +2044,31 @@ var di = class extends HTMLElement {
2576
2044
  ];
2577
2045
  }
2578
2046
  connectedCallback() {
2579
- this.ctrl = he(this, B(this));
2047
+ this.ctrl = _e(this, z(this));
2580
2048
  }
2581
2049
  disconnectedCallback() {
2582
2050
  this.ctrl?.destroy(), this.ctrl = null;
2583
2051
  }
2584
2052
  attributeChangedCallback() {
2585
- this.ctrl?.update(B(this));
2053
+ this.ctrl?.update(z(this));
2586
2054
  }
2587
2055
  };
2588
- typeof customElements < "u" && !customElements.get("cos-photo-tunnel") && customElements.define(ui, di);
2056
+ typeof customElements < "u" && !customElements.get("cos-photo-tunnel") && customElements.define(_i, vi);
2589
2057
  //#endregion
2590
2058
  //#region src/components/photoViewMaster/element/index.ts
2591
- var fi = "cos-photo-view-master";
2592
- function V(e) {
2059
+ var yi = "cos-photo-view-master";
2060
+ function B(e) {
2593
2061
  let t = {};
2594
- if (e.hasAttribute("width")) {
2595
- let n = e.getAttribute("width"), r = Number(n);
2596
- t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2597
- }
2598
- if (e.hasAttribute("height")) {
2599
- let n = e.getAttribute("height"), r = Number(n);
2600
- t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
2601
- }
2602
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("disc-size") && (t.discSize = Number(e.getAttribute("disc-size"))), e.hasAttribute("peep-size") && (t.peepSize = Number(e.getAttribute("peep-size"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("auto-rotate-speed") && (t.autoRotateSpeed = Number(e.getAttribute("auto-rotate-speed"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("auto-rotate")) {
2603
- let n = e.getAttribute("auto-rotate");
2604
- t.autoRotate = n !== "false" && n !== "0";
2605
- }
2606
- if (e.hasAttribute("show-caption")) {
2607
- let n = e.getAttribute("show-caption");
2608
- t.showCaption = n !== "false" && n !== "0";
2609
- }
2610
- if (e.hasAttribute("photos")) try {
2611
- t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
2612
- } catch {}
2613
- let n = e._photos;
2614
- return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
2615
- e.dispatchEvent(new CustomEvent("photo-click", {
2616
- detail: t.length <= 1 ? t[0] : t,
2617
- bubbles: !0
2618
- }));
2619
- }, t.onIndexChange = (...t) => {
2620
- e.dispatchEvent(new CustomEvent("index-change", {
2621
- detail: t.length <= 1 ? t[0] : t,
2622
- bubbles: !0
2623
- }));
2624
- }, t;
2625
- }
2626
- var pi = class extends HTMLElement {
2062
+ return s(t, e, "width", "width"), s(t, e, "height", "height"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "discSize", "disc-size"), a(t, e, "peepSize", "peep-size"), a(t, e, "dragSensitivity", "drag-sensitivity"), a(t, e, "friction", "friction"), a(t, e, "autoRotateSpeed", "auto-rotate-speed"), a(t, e, "initialIndex", "initial-index"), r(t, e, "autoRotate", "auto-rotate", "optional-true"), r(t, e, "showCaption", "show-caption", "optional-true"), i(t, e, "photos", "photos"), o(t, e, "photos", "_photos"), t.onPhotoClick = n(e, "photo-click"), t.onIndexChange = n(e, "index-change"), t;
2063
+ }
2064
+ var bi = class extends HTMLElement {
2627
2065
  ctrl = null;
2628
2066
  _photos;
2629
2067
  get photos() {
2630
2068
  return this._photos;
2631
2069
  }
2632
2070
  set photos(e) {
2633
- this._photos = e, this.ctrl?.update(V(this));
2071
+ this._photos = e, this.ctrl?.update(B(this));
2634
2072
  }
2635
2073
  static get observedAttributes() {
2636
2074
  return [
@@ -2649,24 +2087,24 @@ var pi = class extends HTMLElement {
2649
2087
  ];
2650
2088
  }
2651
2089
  connectedCallback() {
2652
- this.ctrl = le(this, V(this));
2090
+ this.ctrl = de(this, B(this));
2653
2091
  }
2654
2092
  disconnectedCallback() {
2655
2093
  this.ctrl?.destroy(), this.ctrl = null;
2656
2094
  }
2657
2095
  attributeChangedCallback() {
2658
- this.ctrl?.update(V(this));
2096
+ this.ctrl?.update(B(this));
2659
2097
  }
2660
2098
  };
2661
- typeof customElements < "u" && !customElements.get("cos-photo-view-master") && customElements.define(fi, pi);
2099
+ typeof customElements < "u" && !customElements.get("cos-photo-view-master") && customElements.define(yi, bi);
2662
2100
  //#endregion
2663
2101
  //#region src/components/plasmaBall/element/index.ts
2664
- var mi = "cos-plasma-ball";
2665
- function hi(e) {
2102
+ var xi = "cos-plasma-ball";
2103
+ function Si(e) {
2666
2104
  let t = {};
2667
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("arc-count") && (t.arcCount = Number(e.getAttribute("arc-count"))), t;
2105
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "arcCount", "arc-count"), t;
2668
2106
  }
2669
- var gi = class extends HTMLElement {
2107
+ var Ci = class extends HTMLElement {
2670
2108
  ctrl = null;
2671
2109
  static get observedAttributes() {
2672
2110
  return [
@@ -2677,33 +2115,24 @@ var gi = class extends HTMLElement {
2677
2115
  ];
2678
2116
  }
2679
2117
  connectedCallback() {
2680
- this.ctrl = Re(this, hi(this));
2118
+ this.ctrl = Be(this, Si(this));
2681
2119
  }
2682
2120
  disconnectedCallback() {
2683
2121
  this.ctrl?.destroy(), this.ctrl = null;
2684
2122
  }
2685
2123
  attributeChangedCallback() {
2686
- this.ctrl?.update(hi(this));
2124
+ this.ctrl?.update(Si(this));
2687
2125
  }
2688
2126
  };
2689
- typeof customElements < "u" && !customElements.get("cos-plasma-ball") && customElements.define(mi, gi);
2127
+ typeof customElements < "u" && !customElements.get("cos-plasma-ball") && customElements.define(xi, Ci);
2690
2128
  //#endregion
2691
2129
  //#region src/components/progressChest/element/index.ts
2692
- var _i = "cos-progress-chest";
2693
- function vi(e) {
2130
+ var wi = "cos-progress-chest";
2131
+ function Ti(e) {
2694
2132
  let t = {};
2695
- if (e.hasAttribute("label") && (t.label = e.getAttribute("label") ?? void 0), e.hasAttribute("opened-label") && (t.openedLabel = e.getAttribute("opened-label") ?? void 0), e.hasAttribute("progress") && (t.progress = Number(e.getAttribute("progress"))), e.hasAttribute("auto")) {
2696
- let n = e.getAttribute("auto");
2697
- t.auto = n !== "false" && n !== "0";
2698
- }
2699
- return t.onOpen = (...t) => {
2700
- e.dispatchEvent(new CustomEvent("open", {
2701
- detail: t.length <= 1 ? t[0] : t,
2702
- bubbles: !0
2703
- }));
2704
- }, t;
2133
+ return s(t, e, "label", "label"), s(t, e, "openedLabel", "opened-label"), a(t, e, "progress", "progress"), r(t, e, "auto", "auto", "optional-true"), t.onOpen = n(e, "open"), t;
2705
2134
  }
2706
- var yi = class extends HTMLElement {
2135
+ var Ei = class extends HTMLElement {
2707
2136
  ctrl = null;
2708
2137
  static get observedAttributes() {
2709
2138
  return [
@@ -2714,24 +2143,24 @@ var yi = class extends HTMLElement {
2714
2143
  ];
2715
2144
  }
2716
2145
  connectedCallback() {
2717
- this.ctrl = xe(this, vi(this));
2146
+ this.ctrl = Ce(this, Ti(this));
2718
2147
  }
2719
2148
  disconnectedCallback() {
2720
2149
  this.ctrl?.destroy(), this.ctrl = null;
2721
2150
  }
2722
2151
  attributeChangedCallback() {
2723
- this.ctrl?.update(vi(this));
2152
+ this.ctrl?.update(Ti(this));
2724
2153
  }
2725
2154
  };
2726
- typeof customElements < "u" && !customElements.get("cos-progress-chest") && customElements.define(_i, yi);
2155
+ typeof customElements < "u" && !customElements.get("cos-progress-chest") && customElements.define(wi, Ei);
2727
2156
  //#endregion
2728
2157
  //#region src/components/radarScan/element/index.ts
2729
- var bi = "cos-radar-scan";
2730
- function xi(e) {
2158
+ var Di = "cos-radar-scan";
2159
+ function Oi(e) {
2731
2160
  let t = {};
2732
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("blip-count") && (t.blipCount = Number(e.getAttribute("blip-count"))), t;
2161
+ return s(t, e, "color", "color"), a(t, e, "size", "size"), a(t, e, "blipCount", "blip-count"), t;
2733
2162
  }
2734
- var Si = class extends HTMLElement {
2163
+ var ki = class extends HTMLElement {
2735
2164
  ctrl = null;
2736
2165
  static get observedAttributes() {
2737
2166
  return [
@@ -2741,38 +2170,24 @@ var Si = class extends HTMLElement {
2741
2170
  ];
2742
2171
  }
2743
2172
  connectedCallback() {
2744
- this.ctrl = ye(this, xi(this));
2173
+ this.ctrl = xe(this, Oi(this));
2745
2174
  }
2746
2175
  disconnectedCallback() {
2747
2176
  this.ctrl?.destroy(), this.ctrl = null;
2748
2177
  }
2749
2178
  attributeChangedCallback() {
2750
- this.ctrl?.update(xi(this));
2179
+ this.ctrl?.update(Oi(this));
2751
2180
  }
2752
2181
  };
2753
- typeof customElements < "u" && !customElements.get("cos-radar-scan") && customElements.define(bi, Si);
2182
+ typeof customElements < "u" && !customElements.get("cos-radar-scan") && customElements.define(Di, ki);
2754
2183
  //#endregion
2755
2184
  //#region src/components/redPacketRain/element/index.ts
2756
- var Ci = "cos-red-packet-rain";
2757
- function wi(e) {
2185
+ var Ai = "cos-red-packet-rain";
2186
+ function ji(e) {
2758
2187
  let t = {};
2759
- if (e.hasAttribute("grabbed-label") && (t.grabbedLabel = e.getAttribute("grabbed-label") ?? void 0), e.hasAttribute("ended-text") && (t.endedText = e.getAttribute("ended-text") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("auto")) {
2760
- let n = e.getAttribute("auto");
2761
- t.auto = n !== "false" && n !== "0";
2762
- }
2763
- return t.onGrab = (...t) => {
2764
- e.dispatchEvent(new CustomEvent("grab", {
2765
- detail: t.length <= 1 ? t[0] : t,
2766
- bubbles: !0
2767
- }));
2768
- }, t.onEnd = (...t) => {
2769
- e.dispatchEvent(new CustomEvent("end", {
2770
- detail: t.length <= 1 ? t[0] : t,
2771
- bubbles: !0
2772
- }));
2773
- }, t;
2188
+ return s(t, e, "grabbedLabel", "grabbed-label"), s(t, e, "endedText", "ended-text"), s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "duration", "duration"), r(t, e, "fill", "fill", "presence"), r(t, e, "auto", "auto", "optional-true"), t.onGrab = n(e, "grab"), t.onEnd = n(e, "end"), t;
2774
2189
  }
2775
- var Ti = class extends HTMLElement {
2190
+ var Mi = class extends HTMLElement {
2776
2191
  ctrl = null;
2777
2192
  static get observedAttributes() {
2778
2193
  return [
@@ -2787,13 +2202,13 @@ var Ti = class extends HTMLElement {
2787
2202
  ];
2788
2203
  }
2789
2204
  connectedCallback() {
2790
- this.ctrl = at(this, wi(this));
2205
+ this.ctrl = st(this, ji(this));
2791
2206
  }
2792
2207
  disconnectedCallback() {
2793
2208
  this.ctrl?.destroy(), this.ctrl = null;
2794
2209
  }
2795
2210
  attributeChangedCallback() {
2796
- this.ctrl?.update(wi(this));
2211
+ this.ctrl?.update(ji(this));
2797
2212
  }
2798
2213
  start() {
2799
2214
  return this.ctrl?.start();
@@ -2805,15 +2220,15 @@ var Ti = class extends HTMLElement {
2805
2220
  return this.ctrl?.reset();
2806
2221
  }
2807
2222
  };
2808
- typeof customElements < "u" && !customElements.get("cos-red-packet-rain") && customElements.define(Ci, Ti);
2223
+ typeof customElements < "u" && !customElements.get("cos-red-packet-rain") && customElements.define(Ai, Mi);
2809
2224
  //#endregion
2810
2225
  //#region src/components/returnCity/element/index.ts
2811
- var Ei = "cos-return-city";
2812
- function Di(e) {
2226
+ var Ni = "cos-return-city";
2227
+ function Pi(e) {
2813
2228
  let t = {};
2814
- return e.hasAttribute("star-count") && (t.starCount = Number(e.getAttribute("star-count"))), e.hasAttribute("glass-count") && (t.glassCount = Number(e.getAttribute("glass-count"))), e.hasAttribute("glass-radius") && (t.glassRadius = Number(e.getAttribute("glass-radius"))), t;
2229
+ return a(t, e, "starCount", "star-count"), a(t, e, "glassCount", "glass-count"), a(t, e, "glassRadius", "glass-radius"), t;
2815
2230
  }
2816
- var Oi = class extends HTMLElement {
2231
+ var Fi = class extends HTMLElement {
2817
2232
  ctrl = null;
2818
2233
  static get observedAttributes() {
2819
2234
  return [
@@ -2823,32 +2238,24 @@ var Oi = class extends HTMLElement {
2823
2238
  ];
2824
2239
  }
2825
2240
  connectedCallback() {
2826
- this.ctrl = n(this, Di(this));
2241
+ this.ctrl = ee(this, Pi(this));
2827
2242
  }
2828
2243
  disconnectedCallback() {
2829
2244
  this.ctrl?.destroy(), this.ctrl = null;
2830
2245
  }
2831
2246
  attributeChangedCallback() {
2832
- this.ctrl?.update(Di(this));
2247
+ this.ctrl?.update(Pi(this));
2833
2248
  }
2834
2249
  };
2835
- typeof customElements < "u" && !customElements.get("cos-return-city") && customElements.define(Ei, Oi);
2250
+ typeof customElements < "u" && !customElements.get("cos-return-city") && customElements.define(Ni, Fi);
2836
2251
  //#endregion
2837
2252
  //#region src/components/rippleWater/element/index.ts
2838
- var ki = "cos-ripple-water";
2839
- function Ai(e) {
2253
+ var Ii = "cos-ripple-water";
2254
+ function V(e) {
2840
2255
  let t = {};
2841
- if (e.hasAttribute("from-color") && (t.fromColor = e.getAttribute("from-color") ?? void 0), e.hasAttribute("to-color") && (t.toColor = e.getAttribute("to-color") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("wave-amplitude") && (t.waveAmplitude = Number(e.getAttribute("wave-amplitude"))), e.hasAttribute("wave-speed") && (t.waveSpeed = Number(e.getAttribute("wave-speed"))), e.hasAttribute("shimmer") && (t.shimmer = Number(e.getAttribute("shimmer"))), e.hasAttribute("reflection") && (t.reflection = Number(e.getAttribute("reflection"))), e.hasAttribute("ripple-strength") && (t.rippleStrength = Number(e.getAttribute("ripple-strength"))), e.hasAttribute("ripple-radius") && (t.rippleRadius = Number(e.getAttribute("ripple-radius"))), e.hasAttribute("damping") && (t.damping = Number(e.getAttribute("damping"))), e.hasAttribute("spread") && (t.spread = Number(e.getAttribute("spread"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
2842
- let n = e.getAttribute("interactive");
2843
- t.interactive = n !== "false" && n !== "0";
2844
- }
2845
- if (e.hasAttribute("show-hint")) {
2846
- let n = e.getAttribute("show-hint");
2847
- t.showHint = n !== "false" && n !== "0";
2848
- }
2849
- return t;
2256
+ return s(t, e, "fromColor", "from-color"), s(t, e, "toColor", "to-color"), s(t, e, "color", "color"), s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "waveAmplitude", "wave-amplitude"), a(t, e, "waveSpeed", "wave-speed"), a(t, e, "shimmer", "shimmer"), a(t, e, "reflection", "reflection"), a(t, e, "rippleStrength", "ripple-strength"), a(t, e, "rippleRadius", "ripple-radius"), a(t, e, "damping", "damping"), a(t, e, "spread", "spread"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), r(t, e, "showHint", "show-hint", "optional-true"), t;
2850
2257
  }
2851
- var ji = class extends HTMLElement {
2258
+ var Li = class extends HTMLElement {
2852
2259
  ctrl = null;
2853
2260
  static get observedAttributes() {
2854
2261
  return [
@@ -2872,24 +2279,24 @@ var ji = class extends HTMLElement {
2872
2279
  ];
2873
2280
  }
2874
2281
  connectedCallback() {
2875
- this.ctrl = Tt(this, Ai(this));
2282
+ this.ctrl = Dt(this, V(this));
2876
2283
  }
2877
2284
  disconnectedCallback() {
2878
2285
  this.ctrl?.destroy(), this.ctrl = null;
2879
2286
  }
2880
2287
  attributeChangedCallback() {
2881
- this.ctrl?.update(Ai(this));
2288
+ this.ctrl?.update(V(this));
2882
2289
  }
2883
2290
  };
2884
- typeof customElements < "u" && !customElements.get("cos-ripple-water") && customElements.define(ki, ji);
2291
+ typeof customElements < "u" && !customElements.get("cos-ripple-water") && customElements.define(Ii, Li);
2885
2292
  //#endregion
2886
2293
  //#region src/components/ropeChain/element/index.ts
2887
- var Mi = "cos-rope-chain";
2888
- function Ni(e) {
2294
+ var Ri = "cos-rope-chain";
2295
+ function zi(e) {
2889
2296
  let t = {};
2890
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("segments") && (t.segments = Number(e.getAttribute("segments"))), e.hasAttribute("gravity") && (t.gravity = Number(e.getAttribute("gravity"))), t;
2297
+ return s(t, e, "color", "color"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "segments", "segments"), a(t, e, "gravity", "gravity"), t;
2891
2298
  }
2892
- var Pi = class extends HTMLElement {
2299
+ var Bi = class extends HTMLElement {
2893
2300
  ctrl = null;
2894
2301
  static get observedAttributes() {
2895
2302
  return [
@@ -2901,28 +2308,24 @@ var Pi = class extends HTMLElement {
2901
2308
  ];
2902
2309
  }
2903
2310
  connectedCallback() {
2904
- this.ctrl = st(this, Ni(this));
2311
+ this.ctrl = lt(this, zi(this));
2905
2312
  }
2906
2313
  disconnectedCallback() {
2907
2314
  this.ctrl?.destroy(), this.ctrl = null;
2908
2315
  }
2909
2316
  attributeChangedCallback() {
2910
- this.ctrl?.update(Ni(this));
2317
+ this.ctrl?.update(zi(this));
2911
2318
  }
2912
2319
  };
2913
- typeof customElements < "u" && !customElements.get("cos-rope-chain") && customElements.define(Mi, Pi);
2320
+ typeof customElements < "u" && !customElements.get("cos-rope-chain") && customElements.define(Ri, Bi);
2914
2321
  //#endregion
2915
2322
  //#region src/components/rotatingText/element/index.ts
2916
- var Fi = "cos-rotating-text";
2323
+ var Vi = "cos-rotating-text";
2917
2324
  function H(e) {
2918
2325
  let t = {};
2919
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("highlight-color") && (t.highlightColor = e.getAttribute("highlight-color") ?? void 0), e.hasAttribute("interval") && (t.interval = Number(e.getAttribute("interval"))), e.hasAttribute("stagger") && (t.stagger = Number(e.getAttribute("stagger"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("texts")) try {
2920
- t.texts = JSON.parse(e.getAttribute("texts") ?? "null");
2921
- } catch {}
2922
- let n = e._texts;
2923
- return n !== void 0 && (t.texts = n), t;
2326
+ return s(t, e, "color", "color"), s(t, e, "highlightColor", "highlight-color"), a(t, e, "interval", "interval"), a(t, e, "stagger", "stagger"), a(t, e, "duration", "duration"), a(t, e, "fontSize", "font-size"), i(t, e, "texts", "texts"), o(t, e, "texts", "_texts"), t;
2924
2327
  }
2925
- var Ii = class extends HTMLElement {
2328
+ var Hi = class extends HTMLElement {
2926
2329
  ctrl = null;
2927
2330
  _texts;
2928
2331
  get texts() {
@@ -2943,7 +2346,7 @@ var Ii = class extends HTMLElement {
2943
2346
  ];
2944
2347
  }
2945
2348
  connectedCallback() {
2946
- this.ctrl = Ce(this, H(this));
2349
+ this.ctrl = Te(this, H(this));
2947
2350
  }
2948
2351
  disconnectedCallback() {
2949
2352
  this.ctrl?.destroy(), this.ctrl = null;
@@ -2952,19 +2355,15 @@ var Ii = class extends HTMLElement {
2952
2355
  this.ctrl?.update(H(this));
2953
2356
  }
2954
2357
  };
2955
- typeof customElements < "u" && !customElements.get("cos-rotating-text") && customElements.define(Fi, Ii);
2358
+ typeof customElements < "u" && !customElements.get("cos-rotating-text") && customElements.define(Vi, Hi);
2956
2359
  //#endregion
2957
2360
  //#region src/components/sandFall/element/index.ts
2958
- var Li = "cos-sand-fall";
2361
+ var Ui = "cos-sand-fall";
2959
2362
  function U(e) {
2960
2363
  let t = {};
2961
- if (e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("clear-text") && (t.clearText = e.getAttribute("clear-text") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cell-size") && (t.cellSize = Number(e.getAttribute("cell-size"))), e.hasAttribute("spawn-rate") && (t.spawnRate = Number(e.getAttribute("spawn-rate"))), e.hasAttribute("colors")) try {
2962
- t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
2963
- } catch {}
2964
- let n = e._colors;
2965
- return n !== void 0 && (t.colors = n), t;
2364
+ return s(t, e, "hint", "hint"), s(t, e, "clearText", "clear-text"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "cellSize", "cell-size"), a(t, e, "spawnRate", "spawn-rate"), i(t, e, "colors", "colors"), o(t, e, "colors", "_colors"), t;
2966
2365
  }
2967
- var Ri = class extends HTMLElement {
2366
+ var Wi = class extends HTMLElement {
2968
2367
  ctrl = null;
2969
2368
  _colors;
2970
2369
  get colors() {
@@ -2985,7 +2384,7 @@ var Ri = class extends HTMLElement {
2985
2384
  ];
2986
2385
  }
2987
2386
  connectedCallback() {
2988
- this.ctrl = Ke(this, U(this));
2387
+ this.ctrl = Je(this, U(this));
2989
2388
  }
2990
2389
  disconnectedCallback() {
2991
2390
  this.ctrl?.destroy(), this.ctrl = null;
@@ -2994,15 +2393,15 @@ var Ri = class extends HTMLElement {
2994
2393
  this.ctrl?.update(U(this));
2995
2394
  }
2996
2395
  };
2997
- typeof customElements < "u" && !customElements.get("cos-sand-fall") && customElements.define(Li, Ri);
2396
+ typeof customElements < "u" && !customElements.get("cos-sand-fall") && customElements.define(Ui, Wi);
2998
2397
  //#endregion
2999
2398
  //#region src/components/scrambleText/element/index.ts
3000
- var zi = "cos-scramble-text";
3001
- function Bi(e) {
2399
+ var Gi = "cos-scramble-text";
2400
+ function Ki(e) {
3002
2401
  let t = {};
3003
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("charset") && (t.charset = e.getAttribute("charset") ?? void 0), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), t;
2402
+ return s(t, e, "text", "text"), s(t, e, "charset", "charset"), a(t, e, "duration", "duration"), t;
3004
2403
  }
3005
- var Vi = class extends HTMLElement {
2404
+ var qi = class extends HTMLElement {
3006
2405
  ctrl = null;
3007
2406
  static get observedAttributes() {
3008
2407
  return [
@@ -3012,29 +2411,24 @@ var Vi = class extends HTMLElement {
3012
2411
  ];
3013
2412
  }
3014
2413
  connectedCallback() {
3015
- this.ctrl = ne(this, Bi(this));
2414
+ this.ctrl = ie(this, Ki(this));
3016
2415
  }
3017
2416
  disconnectedCallback() {
3018
2417
  this.ctrl?.destroy(), this.ctrl = null;
3019
2418
  }
3020
2419
  attributeChangedCallback() {
3021
- this.ctrl?.update(Bi(this));
2420
+ this.ctrl?.update(Ki(this));
3022
2421
  }
3023
2422
  };
3024
- typeof customElements < "u" && !customElements.get("cos-scramble-text") && customElements.define(zi, Vi);
2423
+ typeof customElements < "u" && !customElements.get("cos-scramble-text") && customElements.define(Gi, qi);
3025
2424
  //#endregion
3026
2425
  //#region src/components/scratchCard/element/index.ts
3027
- var Hi = "cos-scratch-card";
3028
- function Ui(e) {
2426
+ var Ji = "cos-scratch-card";
2427
+ function Yi(e) {
3029
2428
  let t = {};
3030
- return e.hasAttribute("cover-color") && (t.coverColor = e.getAttribute("cover-color") ?? void 0), e.hasAttribute("prize") && (t.prize = e.getAttribute("prize") ?? void 0), e.hasAttribute("cover-text") && (t.coverText = e.getAttribute("cover-text") ?? void 0), e.hasAttribute("reveal-threshold") && (t.revealThreshold = Number(e.getAttribute("reveal-threshold"))), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t.onReveal = (...t) => {
3031
- e.dispatchEvent(new CustomEvent("reveal", {
3032
- detail: t.length <= 1 ? t[0] : t,
3033
- bubbles: !0
3034
- }));
3035
- }, t;
2429
+ return s(t, e, "coverColor", "cover-color"), s(t, e, "prize", "prize"), s(t, e, "coverText", "cover-text"), a(t, e, "revealThreshold", "reveal-threshold"), a(t, e, "width", "width"), a(t, e, "height", "height"), t.onReveal = n(e, "reveal"), t;
3036
2430
  }
3037
- var Wi = class extends HTMLElement {
2431
+ var Xi = class extends HTMLElement {
3038
2432
  ctrl = null;
3039
2433
  static get observedAttributes() {
3040
2434
  return [
@@ -3047,13 +2441,13 @@ var Wi = class extends HTMLElement {
3047
2441
  ];
3048
2442
  }
3049
2443
  connectedCallback() {
3050
- this.ctrl = Ae(this, Ui(this));
2444
+ this.ctrl = Me(this, Yi(this));
3051
2445
  }
3052
2446
  disconnectedCallback() {
3053
2447
  this.ctrl?.destroy(), this.ctrl = null;
3054
2448
  }
3055
2449
  attributeChangedCallback() {
3056
- this.ctrl?.update(Ui(this));
2450
+ this.ctrl?.update(Yi(this));
3057
2451
  }
3058
2452
  reset() {
3059
2453
  return this.ctrl?.reset();
@@ -3062,15 +2456,15 @@ var Wi = class extends HTMLElement {
3062
2456
  return this.ctrl?.reveal();
3063
2457
  }
3064
2458
  };
3065
- typeof customElements < "u" && !customElements.get("cos-scratch-card") && customElements.define(Hi, Wi);
2459
+ typeof customElements < "u" && !customElements.get("cos-scratch-card") && customElements.define(Ji, Xi);
3066
2460
  //#endregion
3067
2461
  //#region src/components/shinyText/element/index.ts
3068
- var Gi = "cos-shiny-text";
3069
- function Ki(e) {
2462
+ var Zi = "cos-shiny-text";
2463
+ function Qi(e) {
3070
2464
  let t = {};
3071
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("shine-color") && (t.shineColor = e.getAttribute("shine-color") ?? void 0), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.disabled = e.hasAttribute("disabled"), t;
2465
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), s(t, e, "shineColor", "shine-color"), a(t, e, "speed", "speed"), a(t, e, "fontSize", "font-size"), r(t, e, "disabled", "disabled", "optional-true"), t;
3072
2466
  }
3073
- var qi = class extends HTMLElement {
2467
+ var $i = class extends HTMLElement {
3074
2468
  ctrl = null;
3075
2469
  static get observedAttributes() {
3076
2470
  return [
@@ -3083,37 +2477,24 @@ var qi = class extends HTMLElement {
3083
2477
  ];
3084
2478
  }
3085
2479
  connectedCallback() {
3086
- this.ctrl = oe(this, Ki(this));
2480
+ this.ctrl = ce(this, Qi(this));
3087
2481
  }
3088
2482
  disconnectedCallback() {
3089
2483
  this.ctrl?.destroy(), this.ctrl = null;
3090
2484
  }
3091
2485
  attributeChangedCallback() {
3092
- this.ctrl?.update(Ki(this));
2486
+ this.ctrl?.update(Qi(this));
3093
2487
  }
3094
2488
  };
3095
- typeof customElements < "u" && !customElements.get("cos-shiny-text") && customElements.define(Gi, qi);
2489
+ typeof customElements < "u" && !customElements.get("cos-shiny-text") && customElements.define(Zi, $i);
3096
2490
  //#endregion
3097
2491
  //#region src/components/slotMachine/element/index.ts
3098
- var Ji = "cos-slot-machine";
2492
+ var ea = "cos-slot-machine";
3099
2493
  function W(e) {
3100
2494
  let t = {};
3101
- if (e.hasAttribute("start-text") && (t.startText = e.getAttribute("start-text") ?? void 0), e.hasAttribute("button-text") && (t.buttonText = e.getAttribute("button-text") ?? void 0), e.hasAttribute("spinning-text") && (t.spinningText = e.getAttribute("spinning-text") ?? void 0), e.hasAttribute("jackpot-text") && (t.jackpotText = e.getAttribute("jackpot-text") ?? void 0), e.hasAttribute("result-prefix") && (t.resultPrefix = e.getAttribute("result-prefix") ?? void 0), e.hasAttribute("spin-duration") && (t.spinDuration = Number(e.getAttribute("spin-duration"))), e.hasAttribute("symbols")) try {
3102
- t.symbols = JSON.parse(e.getAttribute("symbols") ?? "null");
3103
- } catch {}
3104
- let n = e._symbols;
3105
- if (n !== void 0 && (t.symbols = n), e.hasAttribute("target-results")) try {
3106
- t.targetResults = JSON.parse(e.getAttribute("target-results") ?? "null");
3107
- } catch {}
3108
- let r = e._targetResults;
3109
- return r !== void 0 && (t.targetResults = r), t.onSpinEnd = (...t) => {
3110
- e.dispatchEvent(new CustomEvent("spin-end", {
3111
- detail: t.length <= 1 ? t[0] : t,
3112
- bubbles: !0
3113
- }));
3114
- }, t;
3115
- }
3116
- var Yi = class extends HTMLElement {
2495
+ return s(t, e, "startText", "start-text"), s(t, e, "buttonText", "button-text"), s(t, e, "spinningText", "spinning-text"), s(t, e, "jackpotText", "jackpot-text"), s(t, e, "resultPrefix", "result-prefix"), a(t, e, "spinDuration", "spin-duration"), i(t, e, "symbols", "symbols"), o(t, e, "symbols", "_symbols"), i(t, e, "targetResults", "target-results"), o(t, e, "targetResults", "_targetResults"), t.onSpinEnd = n(e, "spin-end"), t;
2496
+ }
2497
+ var ta = class extends HTMLElement {
3117
2498
  ctrl = null;
3118
2499
  _symbols;
3119
2500
  get symbols() {
@@ -3142,7 +2523,7 @@ var Yi = class extends HTMLElement {
3142
2523
  ];
3143
2524
  }
3144
2525
  connectedCallback() {
3145
- this.ctrl = Dt(this, W(this));
2526
+ this.ctrl = kt(this, W(this));
3146
2527
  }
3147
2528
  disconnectedCallback() {
3148
2529
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3157,19 +2538,15 @@ var Yi = class extends HTMLElement {
3157
2538
  return this.ctrl?.reset();
3158
2539
  }
3159
2540
  };
3160
- typeof customElements < "u" && !customElements.get("cos-slot-machine") && customElements.define(Ji, Yi);
2541
+ typeof customElements < "u" && !customElements.get("cos-slot-machine") && customElements.define(ea, ta);
3161
2542
  //#endregion
3162
2543
  //#region src/components/smokeFog/element/index.ts
3163
- var Xi = "cos-smoke-fog";
3164
- function Zi(e) {
2544
+ var na = "cos-smoke-fog";
2545
+ function ra(e) {
3165
2546
  let t = {};
3166
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("background-color") && (t.backgroundColor = e.getAttribute("background-color") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("density") && (t.density = Number(e.getAttribute("density"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("disperse-strength") && (t.disperseStrength = Number(e.getAttribute("disperse-strength"))), e.hasAttribute("disperse-radius") && (t.disperseRadius = Number(e.getAttribute("disperse-radius"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
3167
- let n = e.getAttribute("interactive");
3168
- t.interactive = n !== "false" && n !== "0";
3169
- }
3170
- return t;
2547
+ return s(t, e, "color", "color"), s(t, e, "backgroundColor", "background-color"), s(t, e, "ariaLabel", "aria-label"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "density", "density"), a(t, e, "speed", "speed"), a(t, e, "disperseStrength", "disperse-strength"), a(t, e, "disperseRadius", "disperse-radius"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), t;
3171
2548
  }
3172
- var Qi = class extends HTMLElement {
2549
+ var ia = class extends HTMLElement {
3173
2550
  ctrl = null;
3174
2551
  static get observedAttributes() {
3175
2552
  return [
@@ -3187,28 +2564,24 @@ var Qi = class extends HTMLElement {
3187
2564
  ];
3188
2565
  }
3189
2566
  connectedCallback() {
3190
- this.ctrl = Pe(this, Zi(this));
2567
+ this.ctrl = Ie(this, ra(this));
3191
2568
  }
3192
2569
  disconnectedCallback() {
3193
2570
  this.ctrl?.destroy(), this.ctrl = null;
3194
2571
  }
3195
2572
  attributeChangedCallback() {
3196
- this.ctrl?.update(Zi(this));
2573
+ this.ctrl?.update(ra(this));
3197
2574
  }
3198
2575
  };
3199
- typeof customElements < "u" && !customElements.get("cos-smoke-fog") && customElements.define(Xi, Qi);
2576
+ typeof customElements < "u" && !customElements.get("cos-smoke-fog") && customElements.define(na, ia);
3200
2577
  //#endregion
3201
2578
  //#region src/components/snowfall/element/index.ts
3202
- var $i = "cos-snowfall";
2579
+ var aa = "cos-snowfall";
3203
2580
  function G(e) {
3204
2581
  let t = {};
3205
- if (e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("count") && (t.count = Number(e.getAttribute("count"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("mode")) try {
3206
- t.mode = JSON.parse(e.getAttribute("mode") ?? "null");
3207
- } catch {}
3208
- let n = e._mode;
3209
- return n !== void 0 && (t.mode = n), t;
2582
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "count", "count"), r(t, e, "fill", "fill", "presence"), i(t, e, "mode", "mode"), o(t, e, "mode", "_mode"), t;
3210
2583
  }
3211
- var ea = class extends HTMLElement {
2584
+ var oa = class extends HTMLElement {
3212
2585
  ctrl = null;
3213
2586
  _mode;
3214
2587
  get mode() {
@@ -3227,7 +2600,7 @@ var ea = class extends HTMLElement {
3227
2600
  ];
3228
2601
  }
3229
2602
  connectedCallback() {
3230
- this.ctrl = ce(this, G(this));
2603
+ this.ctrl = ue(this, G(this));
3231
2604
  }
3232
2605
  disconnectedCallback() {
3233
2606
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3236,19 +2609,15 @@ var ea = class extends HTMLElement {
3236
2609
  this.ctrl?.update(G(this));
3237
2610
  }
3238
2611
  };
3239
- typeof customElements < "u" && !customElements.get("cos-snowfall") && customElements.define($i, ea);
2612
+ typeof customElements < "u" && !customElements.get("cos-snowfall") && customElements.define(aa, oa);
3240
2613
  //#endregion
3241
2614
  //#region src/components/soapBubbles/element/index.ts
3242
- var ta = "cos-soap-bubbles";
3243
- function na(e) {
2615
+ var sa = "cos-soap-bubbles";
2616
+ function ca(e) {
3244
2617
  let t = {};
3245
- if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("count") && (t.count = Number(e.getAttribute("count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
3246
- let n = e.getAttribute("interactive");
3247
- t.interactive = n !== "false" && n !== "0";
3248
- }
3249
- return t;
2618
+ return s(t, e, "ariaLabel", "aria-label"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "count", "count"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), r(t, e, "interactive", "interactive", "optional-true"), t;
3250
2619
  }
3251
- var ra = class extends HTMLElement {
2620
+ var la = class extends HTMLElement {
3252
2621
  ctrl = null;
3253
2622
  static get observedAttributes() {
3254
2623
  return [
@@ -3262,24 +2631,24 @@ var ra = class extends HTMLElement {
3262
2631
  ];
3263
2632
  }
3264
2633
  connectedCallback() {
3265
- this.ctrl = Ie(this, na(this));
2634
+ this.ctrl = Re(this, ca(this));
3266
2635
  }
3267
2636
  disconnectedCallback() {
3268
2637
  this.ctrl?.destroy(), this.ctrl = null;
3269
2638
  }
3270
2639
  attributeChangedCallback() {
3271
- this.ctrl?.update(na(this));
2640
+ this.ctrl?.update(ca(this));
3272
2641
  }
3273
2642
  };
3274
- typeof customElements < "u" && !customElements.get("cos-soap-bubbles") && customElements.define(ta, ra);
2643
+ typeof customElements < "u" && !customElements.get("cos-soap-bubbles") && customElements.define(sa, la);
3275
2644
  //#endregion
3276
2645
  //#region src/components/solarSystem/element/index.ts
3277
- var ia = "cos-solar-system";
3278
- function aa(e) {
2646
+ var ua = "cos-solar-system";
2647
+ function da(e) {
3279
2648
  let t = {};
3280
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.showOrbits = e.hasAttribute("show-orbits"), t;
2649
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "speed", "speed"), r(t, e, "showOrbits", "show-orbits", "presence"), t;
3281
2650
  }
3282
- var oa = class extends HTMLElement {
2651
+ var fa = class extends HTMLElement {
3283
2652
  ctrl = null;
3284
2653
  static get observedAttributes() {
3285
2654
  return [
@@ -3290,24 +2659,24 @@ var oa = class extends HTMLElement {
3290
2659
  ];
3291
2660
  }
3292
2661
  connectedCallback() {
3293
- this.ctrl = pe(this, aa(this));
2662
+ this.ctrl = he(this, da(this));
3294
2663
  }
3295
2664
  disconnectedCallback() {
3296
2665
  this.ctrl?.destroy(), this.ctrl = null;
3297
2666
  }
3298
2667
  attributeChangedCallback() {
3299
- this.ctrl?.update(aa(this));
2668
+ this.ctrl?.update(da(this));
3300
2669
  }
3301
2670
  };
3302
- typeof customElements < "u" && !customElements.get("cos-solar-system") && customElements.define(ia, oa);
2671
+ typeof customElements < "u" && !customElements.get("cos-solar-system") && customElements.define(ua, fa);
3303
2672
  //#endregion
3304
2673
  //#region src/components/speedometer/element/index.ts
3305
- var sa = "cos-speedometer";
3306
- function ca(e) {
2674
+ var pa = "cos-speedometer";
2675
+ function ma(e) {
3307
2676
  let t = {};
3308
- return e.hasAttribute("label") && (t.label = e.getAttribute("label") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("max") && (t.max = Number(e.getAttribute("max"))), t;
2677
+ return s(t, e, "label", "label"), s(t, e, "color", "color"), a(t, e, "value", "value"), a(t, e, "max", "max"), t;
3309
2678
  }
3310
- var la = class extends HTMLElement {
2679
+ var ha = class extends HTMLElement {
3311
2680
  ctrl = null;
3312
2681
  static get observedAttributes() {
3313
2682
  return [
@@ -3318,24 +2687,24 @@ var la = class extends HTMLElement {
3318
2687
  ];
3319
2688
  }
3320
2689
  connectedCallback() {
3321
- this.ctrl = ie(this, ca(this));
2690
+ this.ctrl = oe(this, ma(this));
3322
2691
  }
3323
2692
  disconnectedCallback() {
3324
2693
  this.ctrl?.destroy(), this.ctrl = null;
3325
2694
  }
3326
2695
  attributeChangedCallback() {
3327
- this.ctrl?.update(ca(this));
2696
+ this.ctrl?.update(ma(this));
3328
2697
  }
3329
2698
  };
3330
- typeof customElements < "u" && !customElements.get("cos-speedometer") && customElements.define(sa, la);
2699
+ typeof customElements < "u" && !customElements.get("cos-speedometer") && customElements.define(pa, ha);
3331
2700
  //#endregion
3332
2701
  //#region src/components/splitReveal/element/index.ts
3333
- var ua = "cos-split-reveal";
3334
- function da(e) {
2702
+ var ga = "cos-split-reveal";
2703
+ function _a(e) {
3335
2704
  let t = {};
3336
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("delay") && (t.delay = Number(e.getAttribute("delay"))), t;
2705
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "delay", "delay"), t;
3337
2706
  }
3338
- var fa = class extends HTMLElement {
2707
+ var va = class extends HTMLElement {
3339
2708
  ctrl = null;
3340
2709
  static get observedAttributes() {
3341
2710
  return [
@@ -3345,28 +2714,24 @@ var fa = class extends HTMLElement {
3345
2714
  ];
3346
2715
  }
3347
2716
  connectedCallback() {
3348
- this.ctrl = kt(this, da(this));
2717
+ this.ctrl = jt(this, _a(this));
3349
2718
  }
3350
2719
  disconnectedCallback() {
3351
2720
  this.ctrl?.destroy(), this.ctrl = null;
3352
2721
  }
3353
2722
  attributeChangedCallback() {
3354
- this.ctrl?.update(da(this));
2723
+ this.ctrl?.update(_a(this));
3355
2724
  }
3356
2725
  };
3357
- typeof customElements < "u" && !customElements.get("cos-split-reveal") && customElements.define(ua, fa);
2726
+ typeof customElements < "u" && !customElements.get("cos-split-reveal") && customElements.define(ga, va);
3358
2727
  //#endregion
3359
2728
  //#region src/components/splitText/element/index.ts
3360
- var pa = "cos-split-text";
2729
+ var ya = "cos-split-text";
3361
2730
  function K(e) {
3362
2731
  let t = {};
3363
- if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("stagger") && (t.stagger = Number(e.getAttribute("stagger"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("loop-pause") && (t.loopPause = Number(e.getAttribute("loop-pause"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.loop = e.hasAttribute("loop"), e.hasAttribute("animation")) try {
3364
- t.animation = JSON.parse(e.getAttribute("animation") ?? "null");
3365
- } catch {}
3366
- let n = e._animation;
3367
- return n !== void 0 && (t.animation = n), t;
2732
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "stagger", "stagger"), a(t, e, "duration", "duration"), a(t, e, "loopPause", "loop-pause"), a(t, e, "fontSize", "font-size"), r(t, e, "loop", "loop", "presence"), i(t, e, "animation", "animation"), o(t, e, "animation", "_animation"), t;
3368
2733
  }
3369
- var ma = class extends HTMLElement {
2734
+ var ba = class extends HTMLElement {
3370
2735
  ctrl = null;
3371
2736
  _animation;
3372
2737
  get animation() {
@@ -3388,7 +2753,7 @@ var ma = class extends HTMLElement {
3388
2753
  ];
3389
2754
  }
3390
2755
  connectedCallback() {
3391
- this.ctrl = Ct(this, K(this));
2756
+ this.ctrl = Tt(this, K(this));
3392
2757
  }
3393
2758
  disconnectedCallback() {
3394
2759
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3397,19 +2762,15 @@ var ma = class extends HTMLElement {
3397
2762
  this.ctrl?.update(K(this));
3398
2763
  }
3399
2764
  };
3400
- typeof customElements < "u" && !customElements.get("cos-split-text") && customElements.define(pa, ma);
2765
+ typeof customElements < "u" && !customElements.get("cos-split-text") && customElements.define(ya, ba);
3401
2766
  //#endregion
3402
2767
  //#region src/components/spotlight/element/index.ts
3403
- var ha = "cos-spotlight";
2768
+ var xa = "cos-spotlight";
3404
2769
  function q(e) {
3405
2770
  let t = {};
3406
- if (e.hasAttribute("dim-color") && (t.dimColor = e.getAttribute("dim-color") ?? void 0), e.hasAttribute("radius") && (t.radius = Number(e.getAttribute("radius"))), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("slot-element")) try {
3407
- t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
3408
- } catch {}
3409
- let n = e._slotElement;
3410
- return n !== void 0 && (t.slotElement = n), t;
2771
+ return s(t, e, "dimColor", "dim-color"), s(t, e, "defaultContent", "default-content"), a(t, e, "radius", "radius"), i(t, e, "slotElement", "slot-element"), o(t, e, "slotElement", "_slotElement"), t;
3411
2772
  }
3412
- var ga = class extends HTMLElement {
2773
+ var Sa = class extends HTMLElement {
3413
2774
  ctrl = null;
3414
2775
  _slotElement;
3415
2776
  get slotElement() {
@@ -3422,12 +2783,12 @@ var ga = class extends HTMLElement {
3422
2783
  return [
3423
2784
  "radius",
3424
2785
  "dim-color",
3425
- "slot-element",
3426
- "default-content"
2786
+ "default-content",
2787
+ "slot-element"
3427
2788
  ];
3428
2789
  }
3429
2790
  connectedCallback() {
3430
- this.ctrl = et(this, q(this));
2791
+ this.ctrl = nt(this, q(this));
3431
2792
  }
3432
2793
  disconnectedCallback() {
3433
2794
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3439,15 +2800,15 @@ var ga = class extends HTMLElement {
3439
2800
  return this.ctrl?.getSlot();
3440
2801
  }
3441
2802
  };
3442
- typeof customElements < "u" && !customElements.get("cos-spotlight") && customElements.define(ha, ga);
2803
+ typeof customElements < "u" && !customElements.get("cos-spotlight") && customElements.define(xa, Sa);
3443
2804
  //#endregion
3444
2805
  //#region src/components/springMass/element/index.ts
3445
- var _a = "cos-spring-mass";
3446
- function va(e) {
2806
+ var Ca = "cos-spring-mass";
2807
+ function wa(e) {
3447
2808
  let t = {};
3448
- return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cols") && (t.cols = Number(e.getAttribute("cols"))), e.hasAttribute("rows") && (t.rows = Number(e.getAttribute("rows"))), e.hasAttribute("stiffness") && (t.stiffness = Number(e.getAttribute("stiffness"))), e.hasAttribute("damping") && (t.damping = Number(e.getAttribute("damping"))), t;
2809
+ return s(t, e, "color", "color"), s(t, e, "hint", "hint"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "cols", "cols"), a(t, e, "rows", "rows"), a(t, e, "stiffness", "stiffness"), a(t, e, "damping", "damping"), t;
3449
2810
  }
3450
- var ya = class extends HTMLElement {
2811
+ var Ta = class extends HTMLElement {
3451
2812
  ctrl = null;
3452
2813
  static get observedAttributes() {
3453
2814
  return [
@@ -3462,24 +2823,24 @@ var ya = class extends HTMLElement {
3462
2823
  ];
3463
2824
  }
3464
2825
  connectedCallback() {
3465
- this.ctrl = Ue(this, va(this));
2826
+ this.ctrl = Ge(this, wa(this));
3466
2827
  }
3467
2828
  disconnectedCallback() {
3468
2829
  this.ctrl?.destroy(), this.ctrl = null;
3469
2830
  }
3470
2831
  attributeChangedCallback() {
3471
- this.ctrl?.update(va(this));
2832
+ this.ctrl?.update(wa(this));
3472
2833
  }
3473
2834
  };
3474
- typeof customElements < "u" && !customElements.get("cos-spring-mass") && customElements.define(_a, ya);
2835
+ typeof customElements < "u" && !customElements.get("cos-spring-mass") && customElements.define(Ca, Ta);
3475
2836
  //#endregion
3476
2837
  //#region src/components/starfield/element/index.ts
3477
- var ba = "cos-starfield";
3478
- function xa(e) {
2838
+ var Ea = "cos-starfield";
2839
+ function Da(e) {
3479
2840
  let t = {};
3480
- return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("star-count") && (t.starCount = Number(e.getAttribute("star-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), t;
2841
+ return a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "starCount", "star-count"), a(t, e, "speed", "speed"), r(t, e, "fill", "fill", "presence"), t;
3481
2842
  }
3482
- var Sa = class extends HTMLElement {
2843
+ var Oa = class extends HTMLElement {
3483
2844
  ctrl = null;
3484
2845
  static get observedAttributes() {
3485
2846
  return [
@@ -3491,28 +2852,24 @@ var Sa = class extends HTMLElement {
3491
2852
  ];
3492
2853
  }
3493
2854
  connectedCallback() {
3494
- this.ctrl = Te(this, xa(this));
2855
+ this.ctrl = De(this, Da(this));
3495
2856
  }
3496
2857
  disconnectedCallback() {
3497
2858
  this.ctrl?.destroy(), this.ctrl = null;
3498
2859
  }
3499
2860
  attributeChangedCallback() {
3500
- this.ctrl?.update(xa(this));
2861
+ this.ctrl?.update(Da(this));
3501
2862
  }
3502
2863
  };
3503
- typeof customElements < "u" && !customElements.get("cos-starfield") && customElements.define(ba, Sa);
2864
+ typeof customElements < "u" && !customElements.get("cos-starfield") && customElements.define(Ea, Oa);
3504
2865
  //#endregion
3505
2866
  //#region src/components/textMorph/element/index.ts
3506
- var Ca = "cos-text-morph";
2867
+ var ka = "cos-text-morph";
3507
2868
  function J(e) {
3508
2869
  let t = {};
3509
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("interval") && (t.interval = Number(e.getAttribute("interval"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("texts")) try {
3510
- t.texts = JSON.parse(e.getAttribute("texts") ?? "null");
3511
- } catch {}
3512
- let n = e._texts;
3513
- return n !== void 0 && (t.texts = n), t;
2870
+ return s(t, e, "color", "color"), a(t, e, "interval", "interval"), a(t, e, "duration", "duration"), a(t, e, "fontSize", "font-size"), i(t, e, "texts", "texts"), o(t, e, "texts", "_texts"), t;
3514
2871
  }
3515
- var wa = class extends HTMLElement {
2872
+ var Aa = class extends HTMLElement {
3516
2873
  ctrl = null;
3517
2874
  _texts;
3518
2875
  get texts() {
@@ -3531,7 +2888,7 @@ var wa = class extends HTMLElement {
3531
2888
  ];
3532
2889
  }
3533
2890
  connectedCallback() {
3534
- this.ctrl = ut(this, J(this));
2891
+ this.ctrl = ft(this, J(this));
3535
2892
  }
3536
2893
  disconnectedCallback() {
3537
2894
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3540,19 +2897,15 @@ var wa = class extends HTMLElement {
3540
2897
  this.ctrl?.update(J(this));
3541
2898
  }
3542
2899
  };
3543
- typeof customElements < "u" && !customElements.get("cos-text-morph") && customElements.define(Ca, wa);
2900
+ typeof customElements < "u" && !customElements.get("cos-text-morph") && customElements.define(ka, Aa);
3544
2901
  //#endregion
3545
2902
  //#region src/components/timelinePulse/element/index.ts
3546
- var Ta = "cos-timeline-pulse";
2903
+ var ja = "cos-timeline-pulse";
3547
2904
  function Y(e) {
3548
2905
  let t = {};
3549
- if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("current") && (t.current = Number(e.getAttribute("current"))), e.hasAttribute("steps")) try {
3550
- t.steps = JSON.parse(e.getAttribute("steps") ?? "null");
3551
- } catch {}
3552
- let n = e._steps;
3553
- return n !== void 0 && (t.steps = n), t;
2906
+ return s(t, e, "color", "color"), a(t, e, "current", "current"), i(t, e, "steps", "steps"), o(t, e, "steps", "_steps"), t;
3554
2907
  }
3555
- var Ea = class extends HTMLElement {
2908
+ var Ma = class extends HTMLElement {
3556
2909
  ctrl = null;
3557
2910
  _steps;
3558
2911
  get steps() {
@@ -3569,7 +2922,7 @@ var Ea = class extends HTMLElement {
3569
2922
  ];
3570
2923
  }
3571
2924
  connectedCallback() {
3572
- this.ctrl = Me(this, Y(this));
2925
+ this.ctrl = Pe(this, Y(this));
3573
2926
  }
3574
2927
  disconnectedCallback() {
3575
2928
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3578,15 +2931,15 @@ var Ea = class extends HTMLElement {
3578
2931
  this.ctrl?.update(Y(this));
3579
2932
  }
3580
2933
  };
3581
- typeof customElements < "u" && !customElements.get("cos-timeline-pulse") && customElements.define(Ta, Ea);
2934
+ typeof customElements < "u" && !customElements.get("cos-timeline-pulse") && customElements.define(ja, Ma);
3582
2935
  //#endregion
3583
2936
  //#region src/components/trueFocus/element/index.ts
3584
- var Da = "cos-true-focus";
3585
- function Oa(e) {
2937
+ var Na = "cos-true-focus";
2938
+ function Pa(e) {
3586
2939
  let t = {};
3587
- return e.hasAttribute("sentence") && (t.sentence = e.getAttribute("sentence") ?? void 0), e.hasAttribute("separator") && (t.separator = e.getAttribute("separator") ?? void 0), e.hasAttribute("border-color") && (t.borderColor = e.getAttribute("border-color") ?? void 0), e.hasAttribute("glow-color") && (t.glowColor = e.getAttribute("glow-color") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("blur-amount") && (t.blurAmount = Number(e.getAttribute("blur-amount"))), e.hasAttribute("animation-duration") && (t.animationDuration = Number(e.getAttribute("animation-duration"))), e.hasAttribute("pause-between-animations") && (t.pauseBetweenAnimations = Number(e.getAttribute("pause-between-animations"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.manualMode = e.hasAttribute("manual-mode"), t;
2940
+ return s(t, e, "sentence", "sentence"), s(t, e, "separator", "separator"), s(t, e, "borderColor", "border-color"), s(t, e, "glowColor", "glow-color"), s(t, e, "color", "color"), a(t, e, "blurAmount", "blur-amount"), a(t, e, "animationDuration", "animation-duration"), a(t, e, "pauseBetweenAnimations", "pause-between-animations"), a(t, e, "fontSize", "font-size"), r(t, e, "manualMode", "manual-mode", "presence"), t;
3588
2941
  }
3589
- var ka = class extends HTMLElement {
2942
+ var Fa = class extends HTMLElement {
3590
2943
  ctrl = null;
3591
2944
  static get observedAttributes() {
3592
2945
  return [
@@ -3603,33 +2956,24 @@ var ka = class extends HTMLElement {
3603
2956
  ];
3604
2957
  }
3605
2958
  connectedCallback() {
3606
- this.ctrl = ht(this, Oa(this));
2959
+ this.ctrl = _t(this, Pa(this));
3607
2960
  }
3608
2961
  disconnectedCallback() {
3609
2962
  this.ctrl?.destroy(), this.ctrl = null;
3610
2963
  }
3611
2964
  attributeChangedCallback() {
3612
- this.ctrl?.update(Oa(this));
2965
+ this.ctrl?.update(Pa(this));
3613
2966
  }
3614
2967
  };
3615
- typeof customElements < "u" && !customElements.get("cos-true-focus") && customElements.define(Da, ka);
2968
+ typeof customElements < "u" && !customElements.get("cos-true-focus") && customElements.define(Na, Fa);
3616
2969
  //#endregion
3617
2970
  //#region src/components/turntable/element/index.ts
3618
- var Aa = "cos-turntable";
2971
+ var Ia = "cos-turntable";
3619
2972
  function X(e) {
3620
2973
  let t = {};
3621
- if (e.hasAttribute("button-text") && (t.buttonText = e.getAttribute("button-text") ?? void 0), e.hasAttribute("spinning-text") && (t.spinningText = e.getAttribute("spinning-text") ?? void 0), e.hasAttribute("result-prefix") && (t.resultPrefix = e.getAttribute("result-prefix") ?? void 0), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("spin-duration") && (t.spinDuration = Number(e.getAttribute("spin-duration"))), e.hasAttribute("spin-rounds") && (t.spinRounds = Number(e.getAttribute("spin-rounds"))), e.hasAttribute("target-index") && (t.targetIndex = Number(e.getAttribute("target-index"))), e.hasAttribute("prizes")) try {
3622
- t.prizes = JSON.parse(e.getAttribute("prizes") ?? "null");
3623
- } catch {}
3624
- let n = e._prizes;
3625
- return n !== void 0 && (t.prizes = n), t.onSpinEnd = (...t) => {
3626
- e.dispatchEvent(new CustomEvent("spin-end", {
3627
- detail: t.length <= 1 ? t[0] : t,
3628
- bubbles: !0
3629
- }));
3630
- }, t;
2974
+ return s(t, e, "buttonText", "button-text"), s(t, e, "spinningText", "spinning-text"), s(t, e, "resultPrefix", "result-prefix"), a(t, e, "size", "size"), a(t, e, "spinDuration", "spin-duration"), a(t, e, "spinRounds", "spin-rounds"), a(t, e, "targetIndex", "target-index"), i(t, e, "prizes", "prizes"), o(t, e, "prizes", "_prizes"), t.onSpinEnd = n(e, "spin-end"), t;
3631
2975
  }
3632
- var ja = class extends HTMLElement {
2976
+ var La = class extends HTMLElement {
3633
2977
  ctrl = null;
3634
2978
  _prizes;
3635
2979
  get prizes() {
@@ -3651,7 +2995,7 @@ var ja = class extends HTMLElement {
3651
2995
  ];
3652
2996
  }
3653
2997
  connectedCallback() {
3654
- this.ctrl = nt(this, X(this));
2998
+ this.ctrl = it(this, X(this));
3655
2999
  }
3656
3000
  disconnectedCallback() {
3657
3001
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3666,19 +3010,15 @@ var ja = class extends HTMLElement {
3666
3010
  return this.ctrl?.reset();
3667
3011
  }
3668
3012
  };
3669
- typeof customElements < "u" && !customElements.get("cos-turntable") && customElements.define(Aa, ja);
3013
+ typeof customElements < "u" && !customElements.get("cos-turntable") && customElements.define(Ia, La);
3670
3014
  //#endregion
3671
3015
  //#region src/components/typewriter/element/index.ts
3672
- var Ma = "cos-typewriter";
3016
+ var Ra = "cos-typewriter";
3673
3017
  function Z(e) {
3674
3018
  let t = {};
3675
- if (e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("delete-speed") && (t.deleteSpeed = Number(e.getAttribute("delete-speed"))), e.hasAttribute("pause") && (t.pause = Number(e.getAttribute("pause"))), e.hasAttribute("texts")) try {
3676
- t.texts = JSON.parse(e.getAttribute("texts") ?? "null");
3677
- } catch {}
3678
- let n = e._texts;
3679
- return n !== void 0 && (t.texts = n), t;
3019
+ return a(t, e, "speed", "speed"), a(t, e, "deleteSpeed", "delete-speed"), a(t, e, "pause", "pause"), i(t, e, "texts", "texts"), o(t, e, "texts", "_texts"), t;
3680
3020
  }
3681
- var Na = class extends HTMLElement {
3021
+ var za = class extends HTMLElement {
3682
3022
  ctrl = null;
3683
3023
  _texts;
3684
3024
  get texts() {
@@ -3696,7 +3036,7 @@ var Na = class extends HTMLElement {
3696
3036
  ];
3697
3037
  }
3698
3038
  connectedCallback() {
3699
- this.ctrl = Qe(this, Z(this));
3039
+ this.ctrl = et(this, Z(this));
3700
3040
  }
3701
3041
  disconnectedCallback() {
3702
3042
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3705,19 +3045,15 @@ var Na = class extends HTMLElement {
3705
3045
  this.ctrl?.update(Z(this));
3706
3046
  }
3707
3047
  };
3708
- typeof customElements < "u" && !customElements.get("cos-typewriter") && customElements.define(Ma, Na);
3048
+ typeof customElements < "u" && !customElements.get("cos-typewriter") && customElements.define(Ra, za);
3709
3049
  //#endregion
3710
3050
  //#region src/components/waveButton/element/index.ts
3711
- var Pa = "cos-wave-button";
3051
+ var Ba = "cos-wave-button";
3712
3052
  function Q(e) {
3713
3053
  let t = {};
3714
- if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("button-props")) try {
3715
- t.buttonProps = JSON.parse(e.getAttribute("button-props") ?? "null");
3716
- } catch {}
3717
- let n = e._buttonProps;
3718
- return n !== void 0 && (t.buttonProps = n), t;
3054
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), i(t, e, "buttonProps", "button-props"), o(t, e, "buttonProps", "_buttonProps"), t;
3719
3055
  }
3720
- var Fa = class extends HTMLElement {
3056
+ var Va = class extends HTMLElement {
3721
3057
  ctrl = null;
3722
3058
  _buttonProps;
3723
3059
  get buttonProps() {
@@ -3734,7 +3070,7 @@ var Fa = class extends HTMLElement {
3734
3070
  ];
3735
3071
  }
3736
3072
  connectedCallback() {
3737
- this.ctrl = Ye(this, Q(this));
3073
+ this.ctrl = Ze(this, Q(this));
3738
3074
  }
3739
3075
  disconnectedCallback() {
3740
3076
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3746,15 +3082,15 @@ var Fa = class extends HTMLElement {
3746
3082
  return this.ctrl?.getButton();
3747
3083
  }
3748
3084
  };
3749
- typeof customElements < "u" && !customElements.get("cos-wave-button") && customElements.define(Pa, Fa);
3085
+ typeof customElements < "u" && !customElements.get("cos-wave-button") && customElements.define(Ba, Va);
3750
3086
  //#endregion
3751
3087
  //#region src/components/waveText/element/index.ts
3752
- var Ia = "cos-wave-text";
3753
- function La(e) {
3088
+ var Ha = "cos-wave-text";
3089
+ function Ua(e) {
3754
3090
  let t = {};
3755
- return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("amplitude") && (t.amplitude = Number(e.getAttribute("amplitude"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t;
3091
+ return s(t, e, "text", "text"), s(t, e, "color", "color"), a(t, e, "amplitude", "amplitude"), a(t, e, "fontSize", "font-size"), t;
3756
3092
  }
3757
- var Ra = class extends HTMLElement {
3093
+ var Wa = class extends HTMLElement {
3758
3094
  ctrl = null;
3759
3095
  static get observedAttributes() {
3760
3096
  return [
@@ -3765,42 +3101,24 @@ var Ra = class extends HTMLElement {
3765
3101
  ];
3766
3102
  }
3767
3103
  connectedCallback() {
3768
- this.ctrl = yt(this, La(this));
3104
+ this.ctrl = xt(this, Ua(this));
3769
3105
  }
3770
3106
  disconnectedCallback() {
3771
3107
  this.ctrl?.destroy(), this.ctrl = null;
3772
3108
  }
3773
3109
  attributeChangedCallback() {
3774
- this.ctrl?.update(La(this));
3110
+ this.ctrl?.update(Ua(this));
3775
3111
  }
3776
3112
  };
3777
- typeof customElements < "u" && !customElements.get("cos-wave-text") && customElements.define(Ia, Ra);
3113
+ typeof customElements < "u" && !customElements.get("cos-wave-text") && customElements.define(Ha, Wa);
3778
3114
  //#endregion
3779
3115
  //#region src/components/weatherBackground/element/index.ts
3780
- var za = "cos-weather-background";
3116
+ var Ga = "cos-weather-background";
3781
3117
  function $(e) {
3782
3118
  let t = {};
3783
- if (e.hasAttribute("time") && (t.time = e.getAttribute("time") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("loading-text") && (t.loadingText = e.getAttribute("loading-text") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("latitude") && (t.latitude = Number(e.getAttribute("latitude"))), e.hasAttribute("longitude") && (t.longitude = Number(e.getAttribute("longitude"))), e.hasAttribute("wind-level") && (t.windLevel = Number(e.getAttribute("wind-level"))), e.hasAttribute("rain-level") && (t.rainLevel = Number(e.getAttribute("rain-level"))), e.hasAttribute("snow-level") && (t.snowLevel = Number(e.getAttribute("snow-level"))), e.hasAttribute("hail-level") && (t.hailLevel = Number(e.getAttribute("hail-level"))), e.hasAttribute("fog-level") && (t.fogLevel = Number(e.getAttribute("fog-level"))), e.hasAttribute("smog-level") && (t.smogLevel = Number(e.getAttribute("smog-level"))), t.fill = e.hasAttribute("fill"), t.live = e.hasAttribute("live"), e.hasAttribute("loading")) {
3784
- let n = e.getAttribute("loading");
3785
- t.loading = n !== "false" && n !== "0";
3786
- }
3787
- if (e.hasAttribute("weather")) {
3788
- let n = e.getAttribute("weather") ?? "";
3789
- try {
3790
- t.weather = JSON.parse(n);
3791
- } catch {
3792
- t.weather = n;
3793
- }
3794
- }
3795
- let n = e._weather;
3796
- return n !== void 0 && (t.weather = n), t.onLiveWeather = (...t) => {
3797
- e.dispatchEvent(new CustomEvent("live-weather", {
3798
- detail: t.length <= 1 ? t[0] : t,
3799
- bubbles: !0
3800
- }));
3801
- }, t;
3119
+ return s(t, e, "time", "time"), s(t, e, "ariaLabel", "aria-label"), s(t, e, "loadingText", "loading-text"), a(t, e, "width", "width"), a(t, e, "height", "height"), a(t, e, "latitude", "latitude"), a(t, e, "longitude", "longitude"), a(t, e, "windLevel", "wind-level"), a(t, e, "rainLevel", "rain-level"), a(t, e, "snowLevel", "snow-level"), a(t, e, "hailLevel", "hail-level"), a(t, e, "fogLevel", "fog-level"), a(t, e, "smogLevel", "smog-level"), r(t, e, "fill", "fill", "presence"), r(t, e, "live", "live", "presence"), r(t, e, "loading", "loading", "presence"), i(t, e, "weather", "weather"), o(t, e, "weather", "_weather"), t.onLiveWeather = n(e, "live-weather"), t;
3802
3120
  }
3803
- var Ba = class extends HTMLElement {
3121
+ var Ka = class extends HTMLElement {
3804
3122
  ctrl = null;
3805
3123
  _weather;
3806
3124
  get weather() {
@@ -3831,7 +3149,7 @@ var Ba = class extends HTMLElement {
3831
3149
  ];
3832
3150
  }
3833
3151
  connectedCallback() {
3834
- this.ctrl = dt(this, $(this));
3152
+ this.ctrl = pt(this, $(this));
3835
3153
  }
3836
3154
  disconnectedCallback() {
3837
3155
  this.ctrl?.destroy(), this.ctrl = null;
@@ -3840,5 +3158,5 @@ var Ba = class extends HTMLElement {
3840
3158
  this.ctrl?.update($(this));
3841
3159
  }
3842
3160
  };
3843
- typeof customElements < "u" && !customElements.get("cos-weather-background") && customElements.define(za, Ba);
3161
+ typeof customElements < "u" && !customElements.get("cos-weather-background") && customElements.define(Ga, Ka);
3844
3162
  //#endregion