@fest-lib/dom 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/dom.js +368 -358
  2. package/package.json +3 -3
package/dist/dom.js CHANGED
@@ -1,4 +1,4 @@
1
- var Me = /* @__PURE__ */ new Set();
1
+ var Je = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), Me = globalThis[Je] ??= /* @__PURE__ */ new Set();
2
2
  [
3
3
  {
4
4
  name: "--screen-width",
@@ -204,13 +204,13 @@ var Me = /* @__PURE__ */ new Set();
204
204
  Me.add(t);
205
205
  }
206
206
  });
207
- var Gt = () => {
208
- }, Je = () => {
207
+ var yn = () => {
208
+ }, Ke = () => {
209
209
  let e = navigator?.userAgentData?.mobile || !1;
210
210
  return ((t) => {
211
211
  (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0);
212
212
  })(navigator.userAgent || navigator.vendor || globalThis.opera), e;
213
- }, Jt = () => [
213
+ }, gn = () => [
214
214
  /Android/i,
215
215
  /webOS/i,
216
216
  /iPhone/i,
@@ -218,13 +218,13 @@ var Gt = () => {
218
218
  /iPod/i,
219
219
  /BlackBerry/i,
220
220
  /Windows Phone/i
221
- ].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches, de = (e, t = "value") => (typeof e == "object" || typeof e == "function") && e != null && (t in e || e?.[t] != null), M = (e) => de(e, "value"), te = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Fe = (e) => e && e?.replace?.(/-([a-z])/g, (t, n) => n.toUpperCase()), Ke = (e) => typeof CSSStyleValue < "u" && e instanceof CSSStyleValue, Qe = (e) => e != null && (typeof e == "boolean" ? e !== !1 : !0) && typeof e != "object" && typeof e != "function", ge = (e) => typeof e == "boolean" ? e ? "" : null : typeof e == "number" ? String(e) : e, Ee = /* @__PURE__ */ Symbol.for("@trigger-lock"), B = (e, t, n = "value") => {
222
- de(e, n) && (e[Ee] = !0);
221
+ ].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches, le = (e, t = "value") => (typeof e == "object" || typeof e == "function") && e != null && (t in e || e?.[t] != null), M = (e) => le(e, "value"), te = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Fe = (e) => e && e?.replace?.(/-([a-z])/g, (t, n) => n.toUpperCase()), Qe = (e) => typeof CSSStyleValue < "u" && e instanceof CSSStyleValue, et = (e) => e != null && (typeof e == "boolean" ? e !== !1 : !0) && typeof e != "object" && typeof e != "function", ge = (e) => typeof e == "boolean" ? e ? "" : null : typeof e == "number" ? String(e) : e, Ee = /* @__PURE__ */ Symbol.for("@trigger-lock"), B = (e, t, n = "value") => {
222
+ le(e, n) && (e[Ee] = !0);
223
223
  let r;
224
224
  try {
225
225
  r = t?.();
226
226
  } finally {
227
- de(e, n) && delete e[Ee];
227
+ le(e, n) && delete e[Ee];
228
228
  }
229
229
  return r;
230
230
  }, Ie = (e) => {
@@ -233,7 +233,7 @@ var Gt = () => {
233
233
  if (t?.length != 1) return null;
234
234
  const n = parseFloat(t[0][0]);
235
235
  return !Number.isNaN(n) && Number.isFinite(n) ? n : null;
236
- }, et = (e) => Array.isArray(e) || e != null && typeof e == "object" && typeof e[Symbol.iterator] == "function", le = (e, t, n = 0) => {
236
+ }, tt = (e) => Array.isArray(e) || e != null && typeof e == "object" && typeof e[Symbol.iterator] == "function", de = (e, t, n = 0) => {
237
237
  const r = [...t], i = [...e];
238
238
  return n % 2 && (i.reverse(), r.reverse()), [(n == 0 || n == 3 ? i[0] : r[0] - i[0]) || 0, (n == 0 || n == 1 ? i[1] : r[1] - i[1]) || 0];
239
239
  }, H = (e, t = [4, 8]) => {
@@ -243,55 +243,55 @@ var Gt = () => {
243
243
  return [Math.max(1, Math.floor(Number(n.columns) || t[0])), Math.max(1, Math.floor(Number(n.rows) || t[1]))];
244
244
  }
245
245
  return [t[0], t[1]];
246
- }, tt = (e, t) => {
246
+ }, nt = (e, t) => {
247
247
  const [n, r] = H(t);
248
248
  return [Math.max(0, Math.min(n - 1, Math.floor(Number(e[0]) || 0))), Math.max(0, Math.min(r - 1, Math.floor(Number(e[1]) || 0)))];
249
- }, nt = (e, t, n, r, i) => {
250
- const s = H(n), a = Math.max(1, t[0] || 1), o = Math.max(1, t[1] || 1), u = le(e, [a, o], r), p = {
249
+ }, rt = (e, t, n, r, i) => {
250
+ const s = H(n), a = Math.max(1, t[0] || 1), o = Math.max(1, t[1] || 1), u = de(e, [a, o], r), p = {
251
251
  item: i?.redirect?.item ?? { id: "" },
252
252
  list: i?.redirect?.list ?? [],
253
253
  items: i?.redirect?.items ?? /* @__PURE__ */ new Map(),
254
254
  layout: s,
255
255
  size: [a, o]
256
- }, l = ot(u, p, r), h = (i?.mode ?? "floor") === "round" ? [Math.round(l[0]), Math.round(l[1])] : [Math.floor(l[0]), Math.floor(l[1])], c = it(h, p);
257
- return tt(c, s);
258
- }, rt = (e) => e == null ? [] : Array.isArray(e) ? e : e instanceof Map ? Array.from(e.values()) : e instanceof Set || typeof e[Symbol.iterator] == "function" ? Array.from(e) : [], it = (e, t) => {
256
+ }, d = at(u, p, r), h = (i?.mode ?? "floor") === "round" ? [Math.round(d[0]), Math.round(d[1])] : [Math.floor(d[0]), Math.floor(d[1])], c = ot(h, p);
257
+ return nt(c, s);
258
+ }, it = (e) => e == null ? [] : Array.isArray(e) ? e : e instanceof Map ? Array.from(e.values()) : e instanceof Set || typeof e[Symbol.iterator] == "function" ? Array.from(e) : [], ot = (e, t) => {
259
259
  const n = H(t?.layout ?? [4, 8]), r = {
260
260
  ...t,
261
261
  layout: n
262
- }, i = rt(r?.items), s = r?.item || {}, a = (f) => i.filter((m) => !(m == s || m?.id == s?.id)).some((m) => (m?.cell?.[0] || 0) == (f[0] || 0) && (m?.cell?.[1] || 0) == (f[1] || 0)), o = [...e];
262
+ }, i = it(r?.items), s = r?.item || {}, a = (f) => i.filter((y) => !(y == s || y?.id == s?.id)).some((y) => (y?.cell?.[0] || 0) == (f[0] || 0) && (y?.cell?.[1] || 0) == (f[1] || 0)), o = [...e];
263
263
  if (!a(o)) return [...o];
264
- const u = n[0] || 4, p = n[1] || 8, l = ([
264
+ const u = n[0] || 4, p = n[1] || 8, d = ([
265
265
  [o[0] + 1, o[1]],
266
266
  [o[0] - 1, o[1]],
267
267
  [o[0], o[1] + 1],
268
268
  [o[0], o[1] - 1]
269
269
  ].filter((f) => f[0] >= 0 && f[0] < u && f[1] >= 0 && f[1] < p) || []).find((f) => !a(f));
270
- if (l) return [...l];
271
- let h = 0, c = !0, d = [...o];
270
+ if (d) return [...d];
271
+ let h = 0, c = !0, l = [...o];
272
272
  for (; c && h++ < u * p; ) {
273
- if (!(c = a(d))) return [...d];
274
- d[0]++, d[0] >= u && (d[0] = 0, d[1]++, d[1] >= p && (d[1] = 0));
273
+ if (!(c = a(l))) return [...l];
274
+ l[0]++, l[0] >= u && (l[0] = 0, l[1]++, l[1] >= p && (l[1] = 0));
275
275
  }
276
276
  return [...o];
277
- }, ot = (e, t, n = 0) => {
277
+ }, at = (e, t, n = 0) => {
278
278
  const r = [...t.size], i = [...e], s = H(t.layout ?? [4, 8]);
279
279
  n % 2 && r.reverse();
280
280
  const a = [s[0] / r[0], s[1] / r[1]];
281
281
  return [i[0] * a[0], i[1] * a[1]];
282
- }, at = () => ({
282
+ }, st = () => ({
283
283
  didTimeout: !1,
284
284
  timeRemaining: () => 0
285
- }), Ae = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(at()), 0), st = (e) => e?.offsetParent ?? e?.host, Kt = (e) => {
285
+ }), Ae = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(st()), 0), ut = (e) => e?.offsetParent ?? e?.host, vn = (e) => {
286
286
  const t = [];
287
287
  let n = e;
288
288
  for (; n; ) {
289
- const r = st(n);
289
+ const r = ut(n);
290
290
  if (r && r instanceof HTMLHtmlElement) break;
291
291
  (n = r) && t.push(n);
292
292
  }
293
293
  return t;
294
- }, Qt = (e, t = 1e-6) => Math.abs(e.a - 1) < t && Math.abs(e.b) < t && Math.abs(e.c) < t && Math.abs(e.d - 1) < t && Math.abs(e.e) < t && Math.abs(e.f) < t, ut = () => {
294
+ }, bn = (e, t = 1e-6) => Math.abs(e.a - 1) < t && Math.abs(e.b) < t && Math.abs(e.c) < t && Math.abs(e.d - 1) < t && Math.abs(e.e) < t && Math.abs(e.f) < t, ct = () => {
295
295
  const e = {
296
296
  canceled: !1,
297
297
  rAFs: /* @__PURE__ */ new Set(),
@@ -311,15 +311,15 @@ var Gt = () => {
311
311
  setTimeout(t, 16);
312
312
  });
313
313
  })(), e;
314
- }, en = (e = ut()) => (t) => e.shedule(t), tn = typeof document < "u" ? document?.documentElement : null, nn = (e, t = {}) => {
314
+ }, Sn = (e = ct()) => (t) => e.shedule(t), wn = typeof document < "u" ? document?.documentElement : null, xn = (e, t = {}) => {
315
315
  if (!(!t || typeof t != "object" || !e))
316
316
  return Array.from(Object.entries(t)).map(([n, r]) => {
317
317
  const i = e.getAttribute(n);
318
318
  r == null ? e.removeAttribute(n) : r != i && e.setAttribute(n, i == "" ? r ?? i : i ?? r);
319
319
  });
320
- }, rn = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
320
+ }, Mn = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
321
321
  r == null ? e.removeAttribute(n) : e.setAttribute(n, r ?? e.getAttribute(n));
322
- }), ct = /* @__PURE__ */ new Map(), on = (e, t = 1e3, ...n) => {
322
+ }), lt = /* @__PURE__ */ new Map(), En = (e, t = 1e3, ...n) => {
323
323
  const r = {
324
324
  running: !0,
325
325
  cancel: () => {
@@ -337,9 +337,9 @@ var Gt = () => {
337
337
  };
338
338
  typeof requestAnimationFrame < "u" && requestAnimationFrame(async () => {
339
339
  for (; ; )
340
- ct.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
340
+ lt.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
341
341
  });
342
- var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol("@border-box-height"), G = /* @__PURE__ */ Symbol("@content-box-width"), J = /* @__PURE__ */ Symbol("@content-box-height"), Ce = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), an = (e, t = () => {
342
+ var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol("@border-box-height"), G = /* @__PURE__ */ Symbol("@content-box-width"), J = /* @__PURE__ */ Symbol("@content-box-height"), Ce = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), An = (e, t = () => {
343
343
  }) => {
344
344
  if (e instanceof HTMLElement && !Re.has(e)) {
345
345
  e[G] = e.clientWidth, e[J] = e.clientHeight;
@@ -351,7 +351,7 @@ var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol(
351
351
  });
352
352
  Re.set(e, n), n.observe(e?.element ?? e, { box: "content-box" });
353
353
  }
354
- }, sn = (e, t = () => {
354
+ }, Cn = (e, t = () => {
355
355
  }) => {
356
356
  if (e instanceof HTMLElement && !Ce.has(e)) {
357
357
  e[X] = e.offsetWidth, e[Y] = e.offsetHeight;
@@ -363,28 +363,28 @@ var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol(
363
363
  });
364
364
  Ce.set(e, n), n.observe(e?.element ?? e, { box: "border-box" });
365
365
  }
366
- }, un = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), cn = (e, t = "text/html") => {
366
+ }, Rn = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), Pn = (e, t = "text/html") => {
367
367
  const n = new DOMParser().parseFromString(e, t);
368
368
  return n.querySelector("template") ?? n.querySelector("*");
369
- }, dn = (e, t, n) => {
369
+ }, zn = (e, t, n) => {
370
370
  t != null && e.checked != t && (e?.type == "checkbox" || e?.type == "radio" && !e?.checked ? (e?.click?.(), n?.preventDefault?.()) : (e.checked = !!t, e?.dispatchEvent?.(new Event("change", {
371
371
  bubbles: !0,
372
372
  cancelable: !0
373
373
  }))));
374
- }, ln = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, fn = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, pn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", hn = `^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`, yn = (e) => {
374
+ }, Tn = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, Ln = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, kn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", Vn = `^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`, jn = (e) => {
375
375
  if (e == ":fragment:") return document.createDocumentFragment();
376
376
  const t = document.createElement.bind(document);
377
377
  for (var n = t("div"), r, i = ""; e && (r = e.match(`^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`)); )
378
378
  r[1] && (n = t(r[1])), r[2] && (n.id = r[2]), r[3] && (i += " " + r[3]), r[4] && n.setAttribute(r[4], r[7] || ""), e = e.slice(r[0].length);
379
379
  return i && (n.className = i.slice(1)), n;
380
- }, mn = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, gn = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), re = (e, t) => {
380
+ }, On = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, Nn = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), re = (e, t) => {
381
381
  for (; e; ) {
382
382
  if (!(e?.element ?? e)) return !1;
383
383
  if ((e?.element ?? e) === (t?.element ?? t)) return !0;
384
384
  e = e.parentElement ?? (e.parentNode == e?.getRootNode?.({ composed: !0 }) ? e?.getRootNode?.({ composed: !0 })?.host : e?.parentNode);
385
385
  }
386
386
  }, $e = {};
387
- function y(e, t, n, r = $e) {
387
+ function m(e, t, n, r = $e) {
388
388
  e?.addEventListener?.(t, n, r);
389
389
  const i = typeof e == "object" || typeof e == "function" && !e?.deref ? new WeakRef(e) : e;
390
390
  return () => i?.deref?.()?.removeEventListener?.(t, n, r);
@@ -392,12 +392,12 @@ function y(e, t, n, r = $e) {
392
392
  function Pe(e, t, n, r = $e) {
393
393
  e?.removeEventListener?.(t, n, r);
394
394
  }
395
- var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? y(e, n, ...r) : y(e, n, r))), vn = (e, t) => {
395
+ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? m(e, n, ...r) : m(e, n, r))), Wn = (e, t) => {
396
396
  if (t) {
397
397
  let n = t;
398
- return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((et(i) ? [...i] : i) ?? [])?.map?.((s) => y(e, r, s)));
398
+ return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((tt(i) ? [...i] : i) ?? [])?.map?.((s) => m(e, r, s)));
399
399
  }
400
- }, bn = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? Pe(e, n, ...r) : Pe(e, n, r))), wn = (e) => {
400
+ }, Fn = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? Pe(e, n, ...r) : Pe(e, n, r))), In = (e) => {
401
401
  if (!e) return null;
402
402
  if (e?.composedPath && typeof e.composedPath == "function") {
403
403
  const n = e.composedPath();
@@ -405,7 +405,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
405
405
  }
406
406
  const t = e?.target;
407
407
  return t instanceof HTMLElement || t instanceof Element ? t : null;
408
- }, Sn = (e, t, n) => {
408
+ }, $n = (e, t, n) => {
409
409
  if (t == null || !(t instanceof Node) && t?.element == null) return !1;
410
410
  if (e == t || (e?.element ?? e) == (t?.element ?? t)) return !0;
411
411
  if (n?.composedPath && typeof n.composedPath == "function") {
@@ -424,7 +424,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
424
424
  }
425
425
  const r = e?.matches?.(t) ? e : null, i = (e?.getRootNode({ composed: !0 }) ?? e?.parentElement?.getRootNode({ composed: !0 }))?.host, s = i?.matches?.(t) ? i : null, a = e?.closest?.(t) ?? r?.closest?.(t) ?? s?.closest?.(t) ?? null;
426
426
  return r ?? a ?? s;
427
- }, xn = (e, t) => !!fe(e, t), Mn = (e, t, n = "parent") => {
427
+ }, Bn = (e, t) => !!fe(e, t), Hn = (e, t, n = "parent") => {
428
428
  if (!e || e.checkVisibility && !e.checkVisibility({
429
429
  checkOpacity: !0,
430
430
  checkVisibilityCSS: !0
@@ -443,15 +443,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
443
443
  } else if (t instanceof HTMLElement) return n === "parent" ? re(e, t) || !1 : re(t, e) || !1;
444
444
  }
445
445
  return !0;
446
- }, En = () => "currentCSSZoom" in document.documentElement ? document.documentElement.currentCSSZoom || 1 : parseFloat(document.documentElement.style.getPropertyValue("--scaling") || "1") || 1, dt = /* @__PURE__ */ new WeakMap(), lt = (e = document.documentElement) => dt.getOrInsertComputed(e, () => {
446
+ }, qn = () => "currentCSSZoom" in document.documentElement ? document.documentElement.currentCSSZoom || 1 : parseFloat(document.documentElement.style.getPropertyValue("--scaling") || "1") || 1, dt = /* @__PURE__ */ Symbol.for("dom.ts@zoomValues"), ft = globalThis[dt] ??= /* @__PURE__ */ new WeakMap(), pt = (e = document.documentElement) => ft.getOrInsertComputed(e, () => {
447
447
  const t = (e?.matches?.(".ui-orientbox") ? e : null) || e?.closest?.(".ui-orientbox") || document.body;
448
448
  if (t?.zoom) return t?.zoom || 1;
449
449
  if (e?.currentCSSZoom) return e?.currentCSSZoom || 1;
450
- }), An = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
450
+ }), _n = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
451
451
  detail: { zoom: e },
452
452
  bubbles: !0,
453
453
  cancelable: !0
454
- })), e), Cn = (e = document.documentElement) => (e?.currentCSSZoom != null ? 1 : lt(e)) || 1, pe = (e = document.documentElement) => (e?.currentCSSZoom == null ? 1 : e?.currentCSSZoom) || 1, z = (e = document.documentElement) => {
454
+ })), e), Zn = (e = document.documentElement) => (e?.currentCSSZoom != null ? 1 : pt(e)) || 1, pe = (e = document.documentElement) => (e?.currentCSSZoom == null ? 1 : e?.currentCSSZoom) || 1, z = (e = document.documentElement) => {
455
455
  const t = (e?.matches?.('[orient], [data-mixin="ui-orientbox"]') ? e : null) || e?.closest?.('[orient], [data-mixin="ui-orientbox"]') || e;
456
456
  if (t?.hasAttribute?.("orient")) return parseInt(t?.getAttribute?.("orient") || "0") || 0;
457
457
  if (t?.orient != null && Number.isFinite(Number(t.orient))) return Number(t.orient) || 0;
@@ -461,7 +461,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
461
461
  } catch {
462
462
  }
463
463
  return 0;
464
- }, Rn = (e, t = null) => {
464
+ }, Dn = (e, t = null) => {
465
465
  const n = pe(e) || 1, r = e?.getBoundingClientRect?.(), i = {
466
466
  left: r?.left / n,
467
467
  right: r?.right / n,
@@ -469,16 +469,16 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
469
469
  bottom: r?.bottom / n,
470
470
  width: r?.width / n,
471
471
  height: r?.height / n
472
- }, s = t ?? (z(e) || 0), a = typeof window < "u" ? window.visualViewport : null, o = [((a?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((a?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [u, p] = le([i.left, i.top], o, s), [l, h] = le([i.right, i.bottom], o, s), [c, d] = s == 0 || s == 3 ? [u, l] : [l, u], [f, m] = s == 0 || s == 1 ? [p, h] : [h, p], [_, Ge] = s % 2 ? [i.height, i.width] : [i.width, i.height];
472
+ }, s = t ?? (z(e) || 0), a = typeof window < "u" ? window.visualViewport : null, o = [((a?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((a?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [u, p] = de([i.left, i.top], o, s), [d, h] = de([i.right, i.bottom], o, s), [c, l] = s == 0 || s == 3 ? [u, d] : [d, u], [f, y] = s == 0 || s == 1 ? [p, h] : [h, p], [_, Ge] = s % 2 ? [i.height, i.width] : [i.width, i.height];
473
473
  return {
474
474
  left: c,
475
475
  top: f,
476
- right: d,
477
- bottom: m,
476
+ right: l,
477
+ bottom: y,
478
478
  width: _,
479
479
  height: Ge
480
480
  };
481
- }, Pn = (e, t = null) => (t ?? z(e)) % 2 ? e[Y] ?? e?.clientHeight : e[X] ?? e?.clientWidth, zn = (e, t = null) => (t ?? z(e)) % 2 ? e[X] ?? e?.clientWidth : e[Y] ?? e?.clientHeight, Ln = (e, t = null) => (t ?? z(e)) % 2 ? e[J] ?? e?.clientHeight : e[G] ?? e?.clientWidth, kn = (e, t = null) => (t ?? z(e)) % 2 ? e[G] ?? e?.clientWidth : e[J] ?? e?.clientHeight, ft = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
481
+ }, Un = (e, t = null) => (t ?? z(e)) % 2 ? e[Y] ?? e?.clientHeight : e[X] ?? e?.clientWidth, Xn = (e, t = null) => (t ?? z(e)) % 2 ? e[X] ?? e?.clientWidth : e[Y] ?? e?.clientHeight, Yn = (e, t = null) => (t ?? z(e)) % 2 ? e[J] ?? e?.clientHeight : e[G] ?? e?.clientWidth, Gn = (e, t = null) => (t ?? z(e)) % 2 ? e[G] ?? e?.clientWidth : e[J] ?? e?.clientHeight, ht = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
482
482
  didTimeout: !1,
483
483
  timeRemaining: () => 0
484
484
  }), 0), Be = () => {
@@ -516,32 +516,32 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
516
516
  "--pixel-ratio": "1",
517
517
  ...n
518
518
  };
519
- }, he = Be(), Vn = [[":root, :host, :scope", he]], pt = {
519
+ }, he = Be(), Jn = [[":root, :host, :scope", he]], mt = {
520
520
  "portrait-primary": 0,
521
521
  "landscape-primary": 1,
522
522
  "portrait-secondary": 2,
523
523
  "landscape-secondary": 3
524
- }, ht = (e) => {
524
+ }, yt = (e) => {
525
525
  const t = document.documentElement;
526
526
  Object.assign(he, Be()), Object.entries(he).forEach(([n, r]) => {
527
527
  const i = t?.style?.getPropertyValue(n);
528
528
  (!i || i != r) && t?.style?.setProperty?.(n, r || "", "");
529
529
  }), document.documentElement.style.setProperty("--orientation-secondary", screen?.orientation?.type?.endsWith?.("secondary") ? "1" : "0");
530
- }, yt = () => {
530
+ }, gt = () => {
531
531
  let e = screen?.orientation?.type || "portrait-primary";
532
532
  return globalThis.matchMedia("((display-mode: fullscreen) or (display-mode: standalone) or (display-mode: window-controls-overlay))").matches || (matchMedia("(orientation: portrait)").matches ? e = e.replace("landscape", "portrait") : matchMedia("(orientation: landscape)").matches && (e = e.replace("portrait", "landscape"))), e;
533
- }, ie = { passive: !0 }, mt = (e) => {
533
+ }, ie = { passive: !0 }, vt = (e) => {
534
534
  let t = !1;
535
535
  const n = () => {
536
536
  t || (requestAnimationFrame(() => {
537
- ht(), e(), t = !1;
537
+ yt(), e(), t = !1;
538
538
  }), t = !0);
539
539
  }, r = [];
540
- return r.push(y(navigator?.virtualKeyboard, "geometrychange", n, ie)), r.push(y(window?.visualViewport, "scroll", n, ie)), r.push(y(window?.visualViewport, "resize", n, ie)), r.push(y(screen?.orientation, "change", n)), r.push(y(window, "resize", n)), r.push(y(document?.documentElement, "fullscreenchange", n)), r.push(y(document, "DOMContentLoaded", n)), r.push(y(matchMedia("(orientation: portrait)"), "change", n)), r.push(y(matchMedia("(orientation: landscape)"), "change", n)), n(), ft(() => n(), 100), () => r.forEach((i) => i());
541
- }, jn = (e) => {
540
+ return r.push(m(navigator?.virtualKeyboard, "geometrychange", n, ie)), r.push(m(window?.visualViewport, "scroll", n, ie)), r.push(m(window?.visualViewport, "resize", n, ie)), r.push(m(screen?.orientation, "change", n)), r.push(m(window, "resize", n)), r.push(m(document?.documentElement, "fullscreenchange", n)), r.push(m(document, "DOMContentLoaded", n)), r.push(m(matchMedia("(orientation: portrait)"), "change", n)), r.push(m(matchMedia("(orientation: landscape)"), "change", n)), n(), ht(() => n(), 100), () => r.forEach((i) => i());
541
+ }, Kn = (e) => {
542
542
  if (!e?.classList?.contains?.("native-portrait-optimized"))
543
- return e?.classList?.add?.("native-portrait-optimized"), mt(() => {
544
- const t = pt?.[yt()] ?? 0;
543
+ return e?.classList?.add?.("native-portrait-optimized"), vt(() => {
544
+ const t = mt?.[gt()] ?? 0;
545
545
  e.orient = t, e.setAttribute?.("orient", String(t)), e.style?.setProperty?.("--orient", String(t));
546
546
  });
547
547
  }, R = new OffscreenCanvas(1, 1).getContext("2d"), He = (e, t) => {
@@ -569,7 +569,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
569
569
  } catch {
570
570
  }
571
571
  }
572
- }, gt = (e, t) => {
572
+ }, bt = (e, t) => {
573
573
  if (R) {
574
574
  He(t, R);
575
575
  try {
@@ -578,10 +578,10 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
578
578
  }
579
579
  }
580
580
  return { width: null };
581
- }, Tn = (e) => {
581
+ }, Qn = (e) => {
582
582
  const t = e.value.slice(0, e.selectionEnd || 0);
583
- return gt(t, e);
584
- }, vt = (e, t) => {
583
+ return bt(t, e);
584
+ }, St = (e, t) => {
585
585
  const n = e?.value || "";
586
586
  if (R) {
587
587
  He(e, R);
@@ -592,18 +592,18 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
592
592
  }
593
593
  }
594
594
  return n.length;
595
- }, On = (e, t) => {
595
+ }, er = (e, t) => {
596
596
  const n = e.getBoundingClientRect(), r = [t[0] - n.left / pe(), t[1] - n.top / pe()];
597
- return vt(e, r);
598
- }, bt = (e, t) => {
597
+ return St(e, r);
598
+ }, wt = (e, t) => {
599
599
  const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i = H(t ?? [4, 8]);
600
600
  return [Number.isFinite(n) && n > 0 ? n : i[0], Number.isFinite(r) && r > 0 ? r : i[1]];
601
- }, Wn = (e, t, n, r = "floor") => {
601
+ }, tr = (e, t, n, r = "floor") => {
602
602
  if (!e) return [0, 0];
603
603
  const i = e.getBoundingClientRect?.();
604
604
  if (!i) return [0, 0];
605
- const s = bt(e, n?.layout), a = z(e), o = globalThis.getComputedStyle?.(e), u = parseFloat(o?.paddingLeft) || 0, p = parseFloat(o?.paddingTop) || 0, l = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, c = Math.max(1, (i.width || e.clientWidth || 1) - u - l), d = Math.max(1, (i.height || e.clientHeight || 1) - p - h);
606
- return nt([(t?.[0] || 0) - i.left - u, (t?.[1] || 0) - i.top - p], [c, d], s, a, {
605
+ const s = wt(e, n?.layout), a = z(e), o = globalThis.getComputedStyle?.(e), u = parseFloat(o?.paddingLeft) || 0, p = parseFloat(o?.paddingTop) || 0, d = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, c = Math.max(1, (i.width || e.clientWidth || 1) - u - d), l = Math.max(1, (i.height || e.clientHeight || 1) - p - h);
606
+ return rt([(t?.[0] || 0) - i.left - u, (t?.[1] || 0) - i.top - p], [c, l], s, a, {
607
607
  mode: r,
608
608
  redirect: {
609
609
  item: n?.item,
@@ -611,7 +611,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
611
611
  items: n?.items
612
612
  }
613
613
  });
614
- }, wt = async (e) => {
614
+ }, xt = async (e) => {
615
615
  const t = () => {
616
616
  e?.hasAttribute?.("data-hidden") || (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-appear", {
617
617
  detail: {},
@@ -651,7 +651,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
651
651
  pointerEvents: "revert-layer"
652
652
  }
653
653
  ], {
654
- duration: Je() ? 100 : 80,
654
+ duration: Ke() ? 100 : 80,
655
655
  easing: "linear",
656
656
  delay: 0
657
657
  });
@@ -686,7 +686,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
686
686
  });
687
687
  await i, o?.();
688
688
  }
689
- }, St = async (e) => {
689
+ }, Mt = async (e) => {
690
690
  const t = () => {
691
691
  e?.hasAttribute?.("data-hidden") && (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-hidden", {
692
692
  detail: {},
@@ -751,8 +751,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
751
751
  });
752
752
  await i, o?.();
753
753
  }
754
- }, L = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), q = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), Nn = (e, t) => {
755
- if (!k.has(e = q(e))) {
754
+ }, Et = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), T = globalThis[Et] ??= /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), L = globalThis[At] ??= /* @__PURE__ */ new WeakMap(), q = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), nr = (e, t) => {
755
+ if (!L.has(e = q(e))) {
756
756
  const n = [], r = new ResizeObserver((i) => {
757
757
  for (const s of i) if (s.contentBoxSize) {
758
758
  const a = s.contentBoxSize[0];
@@ -762,11 +762,11 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
762
762
  t?.({
763
763
  inlineSize: e.clientWidth,
764
764
  blockSize: e.clientHeight
765
- }, r), k.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
765
+ }, r), L.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
766
766
  }
767
- return k.get(e)?.push?.(t), { disconnect: () => k.get(e)?.splice?.(k.get(e)?.indexOf(t) || -1, 1) };
768
- }, Fn = (e, t) => {
769
- if (!L.has(e = q(e))) {
767
+ return L.get(e)?.push?.(t), { disconnect: () => L.get(e)?.splice?.(L.get(e)?.indexOf(t) || -1, 1) };
768
+ }, rr = (e, t) => {
769
+ if (!T.has(e = q(e))) {
770
770
  const n = [], r = new ResizeObserver((i) => {
771
771
  for (const s of i) if (s.borderBoxSize) {
772
772
  const a = s.borderBoxSize[0];
@@ -776,10 +776,10 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
776
776
  t?.({
777
777
  inlineSize: e.offsetWidth,
778
778
  blockSize: e.offsetHeight
779
- }, r), L.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
779
+ }, r), T.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
780
780
  }
781
- return L.get(e)?.push?.(t), { disconnect: () => L.get(e)?.splice?.(L.get(e)?.indexOf(t) || -1, 1) };
782
- }, In = (e, t, n) => {
781
+ return T.get(e)?.push?.(t), { disconnect: () => T.get(e)?.splice?.(T.get(e)?.indexOf(t) || -1, 1) };
782
+ }, ir = (e, t, n) => {
783
783
  if (typeof e?.selector == "string") return ve(e, e?.selector, t, n);
784
784
  const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, a) => {
785
785
  for (const o of s) o.attributeName && r.has(o.attributeName) && n(o, a);
@@ -797,8 +797,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
797
797
  }, ve = (e, t, n, r) => {
798
798
  const i = new Set([...n.split(",") || [n]].map((a) => a.trim())), s = new MutationObserver((a, o) => {
799
799
  for (const u of a) if (u.type == "childList") {
800
- const p = Array.from(u.addedNodes) || [], l = Array.from(u.removedNodes) || [];
801
- p.push(...Array.from(u.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), l.push(...Array.from(u.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(p)].filter((h) => h?.matches?.(t))?.map?.((h) => {
800
+ const p = Array.from(u.addedNodes) || [], d = Array.from(u.removedNodes) || [];
801
+ p.push(...Array.from(u.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), d.push(...Array.from(u.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(p)].filter((h) => h?.matches?.(t))?.map?.((h) => {
802
802
  i.forEach((c) => {
803
803
  r({
804
804
  target: h,
@@ -823,14 +823,14 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
823
823
  attributeName: o,
824
824
  oldValue: a?.getAttribute?.(o)
825
825
  }, s))), s;
826
- }, xt = (e, t = "*", n = (r, i) => {
826
+ }, Ct = (e, t = "*", n = (r, i) => {
827
827
  }) => {
828
828
  const r = (c) => {
829
- const d = Array.from(c || []) || [];
830
- return d.push(...Array.from(c || []).flatMap((f) => Array.from(f?.querySelectorAll?.(t) || []))), [...Array.from(new Set(d).values())].filter((f) => f?.matches?.(t));
829
+ const l = Array.from(c || []) || [];
830
+ return l.push(...Array.from(c || []).flatMap((f) => Array.from(f?.querySelectorAll?.(t) || []))), [...Array.from(new Set(l).values())].filter((f) => f?.matches?.(t));
831
831
  }, i = (c) => {
832
- const d = l?.deref?.(), f = r(c.addedNodes), m = r(c.removedNodes);
833
- (f.length > 0 || m.length > 0) && n?.({
832
+ const l = d?.deref?.(), f = r(c.addedNodes), y = r(c.removedNodes);
833
+ (f.length > 0 || y.length > 0) && n?.({
834
834
  type: c.type,
835
835
  target: c.target,
836
836
  attributeName: c.attributeName,
@@ -839,26 +839,26 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
839
839
  oldValue: c.oldValue,
840
840
  previousSibling: c.previousSibling,
841
841
  addedNodes: f,
842
- removedNodes: m
843
- }, d);
842
+ removedNodes: y
843
+ }, l);
844
844
  }, s = (c) => {
845
845
  i({
846
- addedNodes: [c?.target].filter((d) => !!d),
847
- removedNodes: [c?.relatedTarget].filter((d) => !!d),
846
+ addedNodes: [c?.target].filter((l) => !!l),
847
+ removedNodes: [c?.relatedTarget].filter((l) => !!l),
848
848
  type: "childList",
849
849
  target: c?.currentTarget
850
850
  });
851
851
  }, a = (c) => {
852
852
  i({
853
- addedNodes: [c?.relatedTarget].filter((d) => !!d),
854
- removedNodes: [c?.target].filter((d) => !!d),
853
+ addedNodes: [c?.relatedTarget].filter((l) => !!l),
854
+ removedNodes: [c?.target].filter((l) => !!l),
855
855
  type: "childList",
856
856
  target: c?.currentTarget
857
857
  });
858
858
  }, o = (c) => {
859
859
  i({
860
- addedNodes: [c?.target].filter((d) => !!d),
861
- removedNodes: [c?.relatedTarget || document?.activeElement].filter((d) => !!d),
860
+ addedNodes: [c?.target].filter((l) => !!l),
861
+ removedNodes: [c?.relatedTarget || document?.activeElement].filter((l) => !!l),
862
862
  type: "childList",
863
863
  target: c?.currentTarget
864
864
  });
@@ -882,9 +882,9 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
882
882
  return e.addEventListener("focusin", s, u), e.addEventListener("focusout", a, u), e.addEventListener("click", o, u), { disconnect: () => {
883
883
  e.removeEventListener("focusin", s, u), e.removeEventListener("focusout", a, u), e.removeEventListener("click", o, u);
884
884
  } };
885
- const p = new MutationObserver((c, d) => {
885
+ const p = new MutationObserver((c, l) => {
886
886
  for (const f of c) f.type == "childList" && i(f);
887
- }), l = new WeakRef(p);
887
+ }), d = new WeakRef(p);
888
888
  (e?.element ?? e) instanceof Node && p.observe(e = q(e), {
889
889
  childList: !0,
890
890
  subtree: !0
@@ -894,14 +894,14 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
894
894
  addedNodes: h,
895
895
  removedNodes: []
896
896
  }, p), p;
897
- }, $n = async (e = document.body) => {
897
+ }, or = async (e = document.body) => {
898
898
  ve(e, "*", "data-hidden", (t, n) => {
899
899
  if (t.attributeName == "data-hidden") {
900
900
  const r = t.target;
901
- r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? St : wt, r, n)?.catch?.(console.warn.bind(console));
901
+ r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? Mt : xt, r, n)?.catch?.(console.warn.bind(console));
902
902
  }
903
903
  });
904
- }, Bn = (e = 100, t = 0.05, n = 8) => {
904
+ }, ar = (e = 100, t = 0.05, n = 8) => {
905
905
  const r = [];
906
906
  for (let o = 0; o < e; o++) r.push(o / e);
907
907
  const i = (o) => `calc(${o}rad * pi * 2)`, s = (o) => `calc(calc(cos(calc(var(--clip-freq, 8) * ${i(o)})) * 0.5 + 0.5) * var(--clip-amplitude, 0))`, a = (o) => [`calc(calc(0.5 + calc(cos(${i(o)}) * calc(0.5 - ${s(o)}))) * var(--icon-size, 100%))`, `calc(calc(0.5 + calc(sin(${i(o)}) * calc(0.5 - ${s(o)}))) * var(--icon-size, 100%))`];
@@ -910,38 +910,38 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
910
910
  "--clip-freq": n,
911
911
  "--clip-path": `polygon(${r.map((o) => a(o).join(" ")).join(", ")})`
912
912
  };
913
- }, qe = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", ze = (e) => typeof e == "string" && /@import\b/i.test(e), be = "DOM", N = typeof document < "u" ? document.createElement("style") : null;
914
- N && (typeof document < "u" && document.querySelector("head")?.appendChild?.(N), N.dataset.owner = be);
915
- var Le = (e, t, n = "") => {
913
+ }, qe = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", ze = (e) => typeof e == "string" && /@import\b/i.test(e), be = "DOM", W = typeof document < "u" ? document.createElement("style") : null;
914
+ W && (typeof document < "u" && document.querySelector("head")?.appendChild?.(W), W.dataset.owner = be);
915
+ var Te = (e, t, n = "") => {
916
916
  e[0][e[1]] = e[1] == "innerHTML" ? `@import url("${t}") ${n && typeof n == "string" ? `layer(${n})` : ""};` : t;
917
- }, Hn = (e) => e?.map?.((t) => jt(...t)), Mt = (e, t) => {
918
- t ||= N?.sheet;
917
+ }, sr = (e) => e?.map?.((t) => qt(...t)), Rt = (e, t) => {
918
+ t ||= W?.sheet;
919
919
  let n = Array.from(t?.cssRules || []).findIndex((i) => i instanceof CSSLayerBlockRule && i?.name === e), r;
920
920
  return n === -1 && t ? r = t?.cssRules?.[n = t.insertRule(`@layer ${e} {}`)] : r = t?.cssRules?.[n], r;
921
- }, Et = 0, oe = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot, ke = (e) => typeof Document < "u" && e instanceof Document, At = (e) => typeof Element < "u" && e instanceof Element, Ve = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : Array.from(e).map((t) => `\\${t.codePointAt(0).toString(16)} `).join(""), Ct = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `ux-${Date.now().toString(36)}-${(++Et).toString(36)}`, Rt = (e, t) => (t = t.trim(), e ? t ? t.startsWith("::") ? `${e}${t}` : `${e} ${t}` : e : t), Pt = (e, t, n, r) => {
921
+ }, Pt = 0, oe = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot, Le = (e) => typeof Document < "u" && e instanceof Document, zt = (e) => typeof Element < "u" && e instanceof Element, ke = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : Array.from(e).map((t) => `\\${t.codePointAt(0).toString(16)} `).join(""), Tt = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `ux-${Date.now().toString(36)}-${(++Pt).toString(36)}`, Lt = (e, t) => (t = t.trim(), e ? t ? t.startsWith("::") ? `${e}${t}` : `${e} ${t}` : e : t), kt = (e, t, n, r) => {
922
922
  const i = Array.from(e?.cssRules || []), s = t.trim(), a = r.trim();
923
923
  return i.findIndex((o) => {
924
924
  if (!(o instanceof CSSStyleRule)) return !1;
925
925
  const u = o.selectorText?.trim?.() ?? "";
926
926
  return u === s ? !0 : a && u.endsWith(a) ? u.slice(0, u.length - a.length).trim() === n : !1;
927
927
  });
928
- }, we = (e, t, n = "ux-query", r = null) => {
929
- const i = oe(r) || ke(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = At(r) ? r : null;
928
+ }, Se = (e, t, n = "ux-query", r = null) => {
929
+ const i = oe(r) || Le(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = zt(r) ? r : null;
930
930
  let a = "";
931
- if (s?.id) a = `#${Ve(s.id)}`;
931
+ if (s?.id) a = `#${ke(s.id)}`;
932
932
  else if (s) {
933
- let l = s.getAttribute("data-style-id");
934
- l || (l = Ct(), s.setAttribute("data-style-id", l)), a = `[data-style-id="${Ve(l)}"]`;
935
- } else oe(i) ? a = ":host" : ke(i) && (a = ":root");
933
+ let d = s.getAttribute("data-style-id");
934
+ d || (d = Tt(), s.setAttribute("data-style-id", d)), a = `[data-style-id="${ke(d)}"]`;
935
+ } else oe(i) ? a = ":host" : Le(i) && (a = ":root");
936
936
  let o = null;
937
- if (oe(i) ? (o = i.querySelector("style[data-ux-query]"), !o && typeof document < "u" && (o = document.createElement("style"), o.setAttribute("data-ux-query", ""), i.appendChild(o))) : o = zt(), t ||= o?.sheet, !t) return;
938
- if (n) return we(e, Mt(n, t), null, r);
939
- const u = Rt(a, e);
940
- let p = Pt(t, u, a, e);
937
+ if (oe(i) ? (o = i.querySelector("style[data-ux-query]"), !o && typeof document < "u" && (o = document.createElement("style"), o.setAttribute("data-ux-query", ""), i.appendChild(o))) : o = Vt(), t ||= o?.sheet, !t) return;
938
+ if (n) return Se(e, Rt(n, t), null, r);
939
+ const u = Lt(a, e);
940
+ let p = kt(t, u, a, e);
941
941
  return p === -1 && (p = t.insertRule(`${u} {}`)), t.cssRules?.[p];
942
942
  };
943
- function zt() {
944
- return N ?? null;
943
+ function Vt() {
944
+ return W ?? null;
945
945
  }
946
946
  var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne && e instanceof CSSStyleValue, A = (e) => ne && e instanceof CSSUnitValue, b = (e, t, n, r = "") => {
947
947
  if (!(!e || !t)) {
@@ -951,7 +951,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
951
951
  }
952
952
  e.getPropertyValue(t) !== n && e.setProperty(t, n, r);
953
953
  }
954
- }, Lt = (e, t, n, r = "") => {
954
+ }, jt = (e, t, n, r = "") => {
955
955
  if (!e || !t) return e;
956
956
  const i = te(t), s = e.style, a = e.attributeStyleMap ?? e.styleMap;
957
957
  if (!ne || !a) return _e(e, t, n, r);
@@ -973,8 +973,8 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
973
973
  if (typeof o == "string" && !P(o)) {
974
974
  const u = Ie(o);
975
975
  if (typeof u == "number" && CSS?.number && !i.startsWith("--")) {
976
- const p = CSS.number(u), l = a.get(i);
977
- return A(l) && l.value === p.value && l.unit === p.unit || a.set(i, p), e;
976
+ const p = CSS.number(u), d = a.get(i);
977
+ return A(d) && d.value === p.value && d.unit === p.unit || a.set(i, p), e;
978
978
  } else
979
979
  return b(s, i, o, r), e;
980
980
  }
@@ -985,13 +985,13 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
985
985
  if (!s) return e;
986
986
  let a = M(n) && !(P(n) || A(n)) ? n?.value : n;
987
987
  return typeof a == "string" && !P(a) && (a = Ie(a) ?? a), a == null ? (b(s, i, null, r), e) : (P(a) || typeof a == "number", b(s, i, String(a), r), e);
988
- }, Ze = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), V = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new Map(), kt = (e) => {
988
+ }, Ze = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), Ot = /* @__PURE__ */ Symbol.for("dom.ts@blobURLMap"), k = globalThis[Ot] ??= /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ Symbol.for("dom.ts@cacheMap"), x = globalThis[Nt] ??= /* @__PURE__ */ new Map(), Wt = (e) => {
989
989
  if (!e) return null;
990
990
  if (x.has(e)) return x.get(e);
991
991
  if (e instanceof Blob || e instanceof File) {
992
- if (V.has(e)) return V.get(e);
992
+ if (k.has(e)) return k.get(e);
993
993
  const t = URL.createObjectURL(e);
994
- return V.set(e, t), x.set(t, t), t;
994
+ return k.set(e, t), x.set(t, t), t;
995
995
  }
996
996
  if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
997
997
  const t = fetch(e?.replace?.("?url", "?raw"), {
@@ -1000,18 +1000,18 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1000
1000
  priority: "high"
1001
1001
  })?.then?.(async (n) => {
1002
1002
  const r = await n.blob(), i = URL.createObjectURL(r);
1003
- return V.set(r, i), x.set(e, i), x.set(i, i), i;
1003
+ return k.set(r, i), x.set(e, i), x.set(i, i), i;
1004
1004
  });
1005
1005
  return x.set(e, t), t;
1006
1006
  }
1007
1007
  if (typeof e == "string") {
1008
1008
  const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
1009
- return V.set(t, n), x.set(n, n), n;
1009
+ return k.set(t, n), x.set(n, n), n;
1010
1010
  }
1011
1011
  return e;
1012
- }, j = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new WeakMap(), Vt = (e) => {
1012
+ }, V = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new WeakMap(), Ft = (e) => {
1013
1013
  if (!e) return "";
1014
- if (j.has(e)) return j.get(e) ?? "";
1014
+ if (V.has(e)) return V.get(e) ?? "";
1015
1015
  if (e instanceof Blob || e instanceof File) {
1016
1016
  if (Z.has(e)) return Z.get(e) ?? "";
1017
1017
  const t = e?.text?.()?.then?.((n) => (Z.set(e, n), n));
@@ -1024,54 +1024,54 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1024
1024
  priority: "high"
1025
1025
  })?.then?.(async (n) => {
1026
1026
  const r = await n.text();
1027
- return j.set(e, r), r;
1027
+ return V.set(e, r), r;
1028
1028
  });
1029
- return j.set(e, t), t;
1029
+ return V.set(e, t), t;
1030
1030
  }
1031
- return typeof e == "string" && j.set(e, e), e;
1032
- }, je = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), qn = (e, t = "ux-query", n = null) => {
1031
+ return typeof e == "string" && V.set(e, e), e;
1032
+ }, It = /* @__PURE__ */ Symbol.for("dom.ts@adoptedSelectorMap"), Ve = globalThis[It] ??= /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowSelectorMap"), je = globalThis[$t] ??= /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ Symbol.for("dom.ts@adoptedLayerMap"), Oe = globalThis[Bt] ??= /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowLayerMap"), D = globalThis[Ht] ??= /* @__PURE__ */ new WeakMap(), ur = (e, t = "ux-query", n = null) => {
1033
1033
  if (!e || !qe()) return null;
1034
1034
  const r = n instanceof ShadowRoot ? n : n?.getRootNode ? n.getRootNode({ composed: !0 }) : null, i = r instanceof ShadowRoot, s = i ? r.adoptedStyleSheets : typeof document < "u" ? document.adoptedStyleSheets : null;
1035
1035
  if (!s) return null;
1036
1036
  const a = `${t || ""}:${e}`;
1037
1037
  let o;
1038
1038
  if (i) {
1039
- let l = Te.get(r);
1040
- l || (l = /* @__PURE__ */ new Map(), Te.set(r, l)), o = l.get(a), o || (o = new CSSStyleSheet(), l.set(a, o), s.includes(o) || s.push(o));
1039
+ let d = je.get(r);
1040
+ d || (d = /* @__PURE__ */ new Map(), je.set(r, d)), o = d.get(a), o || (o = new CSSStyleSheet(), d.set(a, o), s.includes(o) || s.push(o));
1041
1041
  } else
1042
- o = je.get(a), o || (o = new CSSStyleSheet(), je.set(a, o), s.includes(o) || s.push(o));
1042
+ o = Ve.get(a), o || (o = new CSSStyleSheet(), Ve.set(a, o), s.includes(o) || s.push(o));
1043
1043
  if (t) {
1044
- let l;
1044
+ let d;
1045
1045
  if (i) {
1046
1046
  let h = D.get(r);
1047
- h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), l = h.get(t);
1048
- } else l = Oe.get(t);
1049
- if (!l) {
1050
- const h = Array.from(o.cssRules || []), c = h.findIndex((d) => d instanceof CSSLayerBlockRule && d.name === t);
1047
+ h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), d = h.get(t);
1048
+ } else d = Oe.get(t);
1049
+ if (!d) {
1050
+ const h = Array.from(o.cssRules || []), c = h.findIndex((l) => l instanceof CSSLayerBlockRule && l.name === t);
1051
1051
  if (c === -1) try {
1052
1052
  o.insertRule(`@layer ${t} {}`, o.cssRules.length);
1053
- const d = o.cssRules[o.cssRules.length - 1];
1054
- d instanceof CSSLayerBlockRule && (l = d);
1053
+ const l = o.cssRules[o.cssRules.length - 1];
1054
+ l instanceof CSSLayerBlockRule && (d = l);
1055
1055
  } catch {
1056
- l = void 0;
1056
+ d = void 0;
1057
1057
  }
1058
- else l = h[c];
1059
- if (l) if (i) {
1060
- let d = D.get(r);
1061
- d || (d = /* @__PURE__ */ new Map(), D.set(r, d)), d.set(t, l);
1062
- } else Oe.set(t, l);
1058
+ else d = h[c];
1059
+ if (d) if (i) {
1060
+ let l = D.get(r);
1061
+ l || (l = /* @__PURE__ */ new Map(), D.set(r, l)), l.set(t, d);
1062
+ } else Oe.set(t, d);
1063
1063
  }
1064
- if (l) {
1065
- let h = Array.from(l.cssRules || []).findIndex((c) => c instanceof CSSStyleRule && c.selectorText?.trim?.() === e?.trim?.());
1064
+ if (d) {
1065
+ let h = Array.from(d.cssRules || []).findIndex((c) => c instanceof CSSStyleRule && c.selectorText?.trim?.() === e?.trim?.());
1066
1066
  if (h === -1) try {
1067
- h = l.insertRule(`${e} {}`, l.cssRules.length);
1067
+ h = d.insertRule(`${e} {}`, d.cssRules.length);
1068
1068
  } catch {
1069
1069
  return null;
1070
1070
  }
1071
- return l.cssRules[h];
1071
+ return d.cssRules[h];
1072
1072
  }
1073
1073
  }
1074
- let u = Array.from(o.cssRules || []).findIndex((l) => l instanceof CSSStyleRule && l.selectorText?.trim?.() === e?.trim?.());
1074
+ let u = Array.from(o.cssRules || []).findIndex((d) => d instanceof CSSStyleRule && d.selectorText?.trim?.() === e?.trim?.());
1075
1075
  if (u === -1) try {
1076
1076
  u = o.insertRule(`${e} {}`, o.cssRules.length);
1077
1077
  } catch {
@@ -1079,32 +1079,32 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1079
1079
  }
1080
1080
  const p = o.cssRules[u];
1081
1081
  return p instanceof CSSStyleRule ? p : null;
1082
- }, w = (e, t, n, r = "") => ne ? Lt(e, t, n, r) : _e(e, t, n, r), _n = (e, t, n) => w(we(e), t, n), jt = (e, t) => {
1083
- const n = we(e);
1084
- return Object.entries(t).forEach(([r, i]) => w(n, r, i)), n;
1085
- }, Zn = async (e) => {
1082
+ }, S = (e, t, n, r = "") => ne ? jt(e, t, n, r) : _e(e, t, n, r), cr = (e, t, n) => S(Se(e), t, n), qt = (e, t) => {
1083
+ const n = Se(e);
1084
+ return Object.entries(t).forEach(([r, i]) => S(n, r, i)), n;
1085
+ }, lr = async (e) => {
1086
1086
  const t = await crypto?.subtle?.digest("SHA-256", typeof e == "string" ? new TextEncoder().encode(e) : e instanceof ArrayBuffer ? e : await e?.arrayBuffer?.());
1087
1087
  return "sha256-" + btoa(String.fromCharCode.apply(null, new Uint8Array(t)));
1088
1088
  }, De = (e, t, n = "", r) => {
1089
- const i = kt(e), s = typeof e == "string" && URL.canParse(e) ? e : i;
1090
- return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" && Le(t, s, n), t?.[0] && (!URL.canParse(e) || r) && t?.[0] instanceof HTMLLinkElement, Ze(i, (a) => {
1091
- t?.[0] && a && (Le(t, a, n), t?.[0].setAttribute("loaded", ""));
1089
+ const i = Wt(e), s = typeof e == "string" && URL.canParse(e) ? e : i;
1090
+ return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" && Te(t, s, n), t?.[0] && (!URL.canParse(e) || r) && t?.[0] instanceof HTMLLinkElement, Ze(i, (a) => {
1091
+ t?.[0] && a && (Te(t, a, n), t?.[0].setAttribute("loaded", ""));
1092
1092
  })?.catch?.((a) => {
1093
1093
  console.warn("Failed to load style sheet:", a);
1094
1094
  });
1095
- }, Tt = (e) => {
1095
+ }, _t = (e) => {
1096
1096
  const t = typeof document < "u" ? document.createElement("link") : null;
1097
1097
  return t && (t.fetchPriority = "high"), t ? (Object.assign(t, {
1098
1098
  rel: "stylesheet",
1099
1099
  type: "text/css",
1100
1100
  crossOrigin: "same-origin"
1101
1101
  }), t.dataset.owner = be, De(e, [t, "href"]), typeof document < "u" && document.head.append(t), t) : null;
1102
- }, T = (e, t = typeof document < "u" ? document?.head : null, n = "") => {
1102
+ }, j = (e, t = typeof document < "u" ? document?.head : null, n = "") => {
1103
1103
  const r = t?.querySelector?.("head") ?? t;
1104
- if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return Tt(e);
1104
+ if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return _t(e);
1105
1105
  const i = typeof document < "u" ? document.createElement("style") : null;
1106
1106
  return i ? (i.dataset.owner = be, De(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
1107
- }, Dn = (e, t, n, r = "") => w(e, t, n, r), Un = (e) => Ot(e, ""), v = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new WeakMap(), We = (e, t) => {
1107
+ }, dr = (e, t, n, r = "") => S(e, t, n, r), fr = (e) => Xt(e, ""), Zt = /* @__PURE__ */ Symbol.for("dom.ts@adoptedMap"), v = globalThis[Zt] ??= /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ Symbol.for("dom.ts@adoptedBlobMap"), O = globalThis[Dt] ??= /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ Symbol.for("dom.ts@layerCounter"), pr = globalThis[Ut] ??= 0, Ne = (e, t) => {
1108
1108
  if (!e || !t) return !1;
1109
1109
  try {
1110
1110
  return e.replaceSync(t), !0;
@@ -1112,11 +1112,11 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1112
1112
  const r = String(n?.message || "").toLowerCase();
1113
1113
  return r.includes("@import rules are not allowed") || r.includes("@import") && r.includes("not allowed") || console.warn("[DOM] Failed to apply adopted stylesheet:", n), !1;
1114
1114
  }
1115
- }, Ot = (e, t = null) => {
1115
+ }, Xt = (e, t = null) => {
1116
1116
  if (!qe())
1117
- return typeof e == "string" && T(e, void 0, t || ""), null;
1117
+ return typeof e == "string" && j(e, void 0, t || ""), null;
1118
1118
  if (typeof e == "string" && ze(e))
1119
- return T(e, void 0, t || ""), null;
1119
+ return j(e, void 0, t || ""), null;
1120
1120
  if (typeof e == "string" && v?.has?.(e)) {
1121
1121
  const r = v.get(e);
1122
1122
  return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(r) && document.adoptedStyleSheets.push(r), r;
@@ -1129,13 +1129,13 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1129
1129
  const n = typeof e == "string" ? v.getOrInsertComputed(e, (r) => new CSSStyleSheet()) : O.getOrInsertComputed(e, (r) => new CSSStyleSheet());
1130
1130
  if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
1131
1131
  const r = t ? `@layer ${t} { ${e} }` : e;
1132
- return v.set(e, n), We(n, r) || (ae(n), v.delete(e), T(e)), n;
1133
- } else Ze(Vt(e), (r) => {
1132
+ return v.set(e, n), Ne(n, r) || (ae(n), v.delete(e), j(e)), n;
1133
+ } else Ze(Ft(e), (r) => {
1134
1134
  if (v.set(r, n), r) {
1135
1135
  if (ze(r))
1136
- return ae(n), v.delete(r), O.delete(e), T(r, void 0, t || ""), n;
1136
+ return ae(n), v.delete(r), O.delete(e), j(r, void 0, t || ""), n;
1137
1137
  const i = t ? `@layer ${t} { ${r} }` : r;
1138
- return We(n, i) || (ae(n), v.delete(r), O.delete(e), T(r, void 0, t || "")), n;
1138
+ return Ne(n, i) || (ae(n), v.delete(r), O.delete(e), j(r, void 0, t || "")), n;
1139
1139
  }
1140
1140
  });
1141
1141
  return n;
@@ -1145,10 +1145,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1145
1145
  if (!t || typeof document > "u") return !1;
1146
1146
  const n = document.adoptedStyleSheets, r = n.indexOf(t);
1147
1147
  return r !== -1 ? (n.splice(r, 1), !0) : !1;
1148
- }, Wt = (e, t) => {
1148
+ }, Yt = (e, t) => {
1149
1149
  const n = e.split(" ");
1150
- return new DOMPoint(Ne(n[0], () => t.clientWidth), Ne(n[1], () => t.clientHeight));
1151
- }, Ne = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), Xn = (e) => {
1150
+ return new DOMPoint(We(n[0], () => t.clientWidth), We(n[1], () => t.clientHeight));
1151
+ }, We = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), hr = (e) => {
1152
1152
  if (e?.computedStyleMap) {
1153
1153
  const t = e.computedStyleMap().get("transform")?.toMatrix?.();
1154
1154
  if (t) return t;
@@ -1157,10 +1157,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1157
1157
  return new DOMMatrix(t?.getPropertyValue?.("transform"));
1158
1158
  }
1159
1159
  return new DOMMatrix();
1160
- }, Yn = (e) => {
1160
+ }, mr = (e) => {
1161
1161
  const t = getComputedStyle(e)?.getPropertyValue?.("transform-origin") || "50% 50%";
1162
- return Wt(t, e);
1163
- }, W = (e, t) => {
1162
+ return Yt(t, e);
1163
+ }, N = (e, t) => {
1164
1164
  if ("computedStyleMap" in e) {
1165
1165
  const n = e?.computedStyleMap?.()?.get(t);
1166
1166
  return n instanceof CSSUnitValue ? n?.value || 0 : n?.toString?.();
@@ -1170,7 +1170,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1170
1170
  return parseFloat(n?.getPropertyValue?.(t)?.replace?.("px", "")) || 0;
1171
1171
  }
1172
1172
  return parseFloat((e?.style ?? e).getPropertyValue?.(t)?.replace?.("px", "")) || 0;
1173
- }, Gn = (e) => {
1173
+ }, yr = (e) => {
1174
1174
  let t = 1, n = e;
1175
1175
  for (; n; ) {
1176
1176
  if ("currentCSSZoom" in n) {
@@ -1183,70 +1183,70 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1183
1183
  n = n?.offsetParent ?? n?.parentElement;
1184
1184
  }
1185
1185
  return t;
1186
- }, Jn = (e, t) => W?.(e, t), Kn = (e, t) => t == "inline" ? W(e, "padding-inline-start") + W(e, "padding-inline-end") : W(e, "padding-block-start") + W(e, "padding-block-end"), Ue = /* @__PURE__ */ new WeakMap(), Nt = (e, t, n) => (new WeakRef(e), t.has(n) || t.add(n), e), Qn = (e, t) => {
1186
+ }, gr = (e, t) => N?.(e, t), vr = (e, t) => t == "inline" ? N(e, "padding-inline-start") + N(e, "padding-inline-end") : N(e, "padding-block-start") + N(e, "padding-block-end"), Ue = /* @__PURE__ */ new WeakMap(), Gt = (e, t, n) => (new WeakRef(e), t.has(n) || t.add(n), e), br = (e, t) => {
1187
1187
  if (e) {
1188
1188
  if (t) {
1189
1189
  const n = Ue.getOrInsert(e, /* @__PURE__ */ new Set());
1190
- [...t?.values?.() || []].map((r) => Nt(e, n, r));
1190
+ [...t?.values?.() || []].map((r) => Gt(e, n, r));
1191
1191
  }
1192
1192
  return e;
1193
1193
  }
1194
- }, I = /* @__PURE__ */ new Map(), Ft = (e, t) => {
1194
+ }, Jt = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), I = globalThis[Jt] ??= /* @__PURE__ */ new Map(), Kt = (e, t) => {
1195
1195
  const n = [...e.entries() || []];
1196
1196
  return new Map(n?.map?.(([r, i]) => [r, i?.get?.(t)])?.filter?.(([r, i]) => !!i) || []);
1197
- }, It = (e, t, n) => {
1197
+ }, Qt = (e, t, n) => {
1198
1198
  let r = I.get(t);
1199
1199
  return r || (r = /* @__PURE__ */ new WeakMap(), I.set(t, r)), r.has(e) || r.set(e, n), e;
1200
- }, er = (e, t) => {
1200
+ }, Sr = (e, t) => {
1201
1201
  if (!(!e || !t)) {
1202
- for (const [n, r] of t.entries()) It(e, n, r);
1202
+ for (const [n, r] of t.entries()) Qt(e, n, r);
1203
1203
  return e;
1204
1204
  }
1205
- }, tr = (e, t) => {
1205
+ }, wr = (e, t) => {
1206
1206
  if (e) {
1207
1207
  if (t) {
1208
- const n = S?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1209
- S?.has?.(e) || S?.set?.(e, n), [...t?.values?.() || []].map((r) => $t(e, r, n));
1208
+ const n = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1209
+ w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) => en(e, r, n));
1210
1210
  }
1211
1211
  return e;
1212
1212
  }
1213
1213
  }, F = (e) => ({
1214
- storeSet: Ft(I, e),
1215
- mixinSet: S?.get?.(e),
1214
+ storeSet: Kt(I, e),
1215
+ mixinSet: w?.get?.(e),
1216
1216
  behaviorSet: Ue?.get?.(e)
1217
- }), $t = (e, t, n) => {
1217
+ }), en = (e, t, n) => {
1218
1218
  const r = new WeakRef(e);
1219
- return n ||= S?.get?.(e), n?.has?.(t) || (n?.add?.(t), C?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t, F(e))), e;
1220
- }, S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new WeakMap(), Xe = (e, t) => {
1219
+ return n ||= w?.get?.(e), n?.has?.(t) || (n?.add?.(t), C?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t, F(e))), e;
1220
+ }, tn = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), w = globalThis[tn] ??= /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), C = globalThis[nn] ??= /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), $ = globalThis[rn] ??= /* @__PURE__ */ new Map(), on = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), Q = globalThis[on] ??= /* @__PURE__ */ new WeakMap(), Xe = (e, t) => {
1221
1221
  typeof t == "string" && (t = $?.get?.(t));
1222
- const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) => $?.get?.(a)).filter((a) => !!a)), i = S?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1223
- C?.has?.(t) || C?.set?.(t, /* @__PURE__ */ new WeakSet()), S?.has?.(e) || S?.set?.(e, i);
1222
+ const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) => $?.get?.(a)).filter((a) => !!a)), i = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1223
+ C?.has?.(t) || C?.set?.(t, /* @__PURE__ */ new WeakSet()), w?.has?.(e) || w?.set?.(e, i);
1224
1224
  const s = new WeakRef(e);
1225
1225
  i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, F(e)), (r.has(t) || !C?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, F(e)), n.add(Q?.get?.(t)), i?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((a) => !!a).join(" "))), C?.get?.(t)?.add?.(e)), i?.has?.(t) && (r.has(t) || (i?.delete?.(t), t?.disconnect?.(s, t, F(e))));
1226
- }, ye = /* @__PURE__ */ new Set(), Bt = (e = typeof document < "u" ? document : null) => {
1226
+ }, me = /* @__PURE__ */ new Set(), an = (e = typeof document < "u" ? document : null) => {
1227
1227
  if (e)
1228
- return ye?.has?.(e) || (ye?.add?.(e), ve(e, "*", "data-mixin", (t) => me(t.target)), xt(e, "[data-mixin]", (t) => {
1229
- for (const n of t.addedNodes) n instanceof HTMLElement && me(n);
1228
+ return me?.has?.(e) || (me?.add?.(e), ve(e, "*", "data-mixin", (t) => ye(t.target)), Ct(e, "[data-mixin]", (t) => {
1229
+ for (const n of t.addedNodes) n instanceof HTMLElement && ye(n);
1230
1230
  })), e;
1231
- }, me = (e) => {
1231
+ }, ye = (e) => {
1232
1232
  const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
1233
1233
  [...new Set([...t].map((n) => $?.get?.(n)).filter((n) => !!n))].map?.((n) => Xe(e, n));
1234
- }, Ht = (e, t) => {
1235
- e.forEach((n) => t ? Xe(n, t) : me(n));
1236
- }, qt = (e) => {
1237
- for (const t of ye) Ht(t?.querySelectorAll?.("[data-mixin]"), e);
1238
- }, _t = new FinalizationRegistry((e) => {
1234
+ }, sn = (e, t) => {
1235
+ e.forEach((n) => t ? Xe(n, t) : ye(n));
1236
+ }, un = (e) => {
1237
+ for (const t of me) sn(t?.querySelectorAll?.("[data-mixin]"), e);
1238
+ }, cn = new FinalizationRegistry((e) => {
1239
1239
  $?.delete?.(e);
1240
- }), Zt = (e, t) => {
1240
+ }), ln = (e, t) => {
1241
1241
  if (!Q?.has?.(t)) {
1242
1242
  const n = e?.trim?.();
1243
- n && (Q?.set?.(t, n), $?.set?.(n, t), _t?.register?.(t, n), qt(t));
1243
+ n && (Q?.set?.(t, n), $?.set?.(n, t), cn?.register?.(t, n), un(t));
1244
1244
  }
1245
1245
  };
1246
- Bt(typeof document < "u" ? document : null);
1247
- var Se = class {
1246
+ an(typeof document < "u" ? document : null);
1247
+ var we = class {
1248
1248
  constructor(e = null) {
1249
- e && Zt(e, this);
1249
+ e && ln(e, this);
1250
1250
  }
1251
1251
  connect(e, t, n) {
1252
1252
  return this;
@@ -1269,14 +1269,14 @@ var Se = class {
1269
1269
  get name() {
1270
1270
  return Q?.get?.(this);
1271
1271
  }
1272
- }, nr = (e, t, n) => {
1272
+ }, xr = (e, t, n) => {
1273
1273
  const r = n;
1274
1274
  M(n) && (n = n.value);
1275
1275
  const i = (n = ge(n)) != null && n !== !1;
1276
1276
  return B(r, () => {
1277
1277
  e instanceof HTMLInputElement ? e.hidden = !i : i ? e?.removeAttribute?.("data-hidden") : e?.setAttribute?.("data-hidden", "");
1278
1278
  }), e;
1279
- }, rr = (e, t, n) => {
1279
+ }, Mr = (e, t, n) => {
1280
1280
  if (!(t = typeof t == "string" ? Fe(t) : t) || !e || [
1281
1281
  "style",
1282
1282
  "dataset",
@@ -1288,19 +1288,19 @@ var Se = class {
1288
1288
  return M(n) && (n = n.value), e?.[t] === n || e?.[t] !== n && B(r, () => {
1289
1289
  n != null ? e[t] = n : delete e[t];
1290
1290
  }), e;
1291
- }, ir = (e, t, n) => {
1291
+ }, Er = (e, t, n) => {
1292
1292
  const r = e?.dataset;
1293
1293
  if (!t || !e || !r) return e;
1294
1294
  const i = n;
1295
1295
  return M(n) && (n = n?.value), t = Fe(t), r?.[t] === (n = ge(n)) || (n == null || n === !1 ? delete r[t] : B(i, () => {
1296
1296
  typeof n != "object" && typeof n != "function" ? r[t] = String(n) : delete r[t];
1297
1297
  })), e;
1298
- }, Dt = (e, t) => e.style.removeProperty(te(t)), or = (e, t, n) => {
1298
+ }, dn = (e, t) => e.style.removeProperty(te(t)), Ar = (e, t, n) => {
1299
1299
  const r = e?.style;
1300
1300
  return !t || typeof t != "string" || !e || !r || B(n, () => {
1301
- Qe(n) || M(n) || Ke(n) ? w(e, t, n) : n == null && Dt(e, t);
1301
+ et(n) || M(n) || Qe(n) ? S(e, t, n) : n == null && dn(e, t);
1302
1302
  }), e;
1303
- }, ar = (e, t, n) => {
1303
+ }, Cr = (e, t, n) => {
1304
1304
  if (!t || !e) return e;
1305
1305
  const r = n;
1306
1306
  return M(n) && (n = n.value), t = te(t), e?.getAttribute?.(t) === (n = ge(n)) || B(r, () => {
@@ -1331,7 +1331,7 @@ var U = {
1331
1331
  start: "junction-resize:start",
1332
1332
  move: "junction-resize:move",
1333
1333
  end: "junction-resize:end"
1334
- }, ee = /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
1334
+ }, fn = /* @__PURE__ */ Symbol.for("dom.ts@mixinDisposers"), ee = globalThis[fn] ??= /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
1335
1335
  const r = ee.get(e) ?? /* @__PURE__ */ new Map(), i = r.get(t) ?? [];
1336
1336
  i.push(n), r.set(t, i), ee.set(e, r);
1337
1337
  }, xe = (e, t) => {
@@ -1351,7 +1351,7 @@ var U = {
1351
1351
  if (!r) return n;
1352
1352
  const i = e.querySelector(r);
1353
1353
  return i instanceof HTMLElement ? i : n;
1354
- }, Ut = class extends Se {
1354
+ }, pn = class extends we {
1355
1355
  constructor() {
1356
1356
  super("ui-junction-select");
1357
1357
  }
@@ -1368,10 +1368,10 @@ var U = {
1368
1368
  y: 0
1369
1369
  };
1370
1370
  const o = (f) => {
1371
- const m = t.getBoundingClientRect();
1371
+ const y = t.getBoundingClientRect();
1372
1372
  return {
1373
- x: f.clientX - m.left,
1374
- y: f.clientY - m.top
1373
+ x: f.clientX - y.left,
1374
+ y: f.clientY - y.top
1375
1375
  };
1376
1376
  }, u = () => {
1377
1377
  const f = se(s, a);
@@ -1389,16 +1389,16 @@ var U = {
1389
1389
  host: t
1390
1390
  }
1391
1391
  })), u()));
1392
- }, l = (f) => {
1392
+ }, d = (f) => {
1393
1393
  if (!i) return;
1394
1394
  a = o(f), u();
1395
- const m = se(s, a);
1395
+ const y = se(s, a);
1396
1396
  t.dispatchEvent(new CustomEvent(U.move, {
1397
1397
  bubbles: !0,
1398
1398
  detail: {
1399
1399
  a: { ...s },
1400
1400
  b: { ...a },
1401
- box: m,
1401
+ box: y,
1402
1402
  host: t
1403
1403
  }
1404
1404
  }));
@@ -1409,19 +1409,19 @@ var U = {
1409
1409
  t.releasePointerCapture(f.pointerId);
1410
1410
  } catch {
1411
1411
  }
1412
- const m = se(s, a);
1412
+ const y = se(s, a);
1413
1413
  t.dispatchEvent(new CustomEvent(U.end, {
1414
1414
  bubbles: !0,
1415
1415
  detail: {
1416
1416
  a: { ...s },
1417
1417
  b: { ...a },
1418
- box: m,
1418
+ box: y,
1419
1419
  host: t
1420
1420
  }
1421
1421
  }));
1422
1422
  }, c = (f) => {
1423
1423
  i && h(f);
1424
- }, d = (f) => {
1424
+ }, l = (f) => {
1425
1425
  if (i) {
1426
1426
  i = !1, n.style.display = "none";
1427
1427
  try {
@@ -1436,20 +1436,20 @@ var U = {
1436
1436
  };
1437
1437
  return g(t, "ui-junction-select", () => {
1438
1438
  n.remove();
1439
- }), g(t, "ui-junction-select", y(t, "pointerdown", p)), g(t, "ui-junction-select", y(t, "pointermove", l)), g(t, "ui-junction-select", y(t, "pointerup", c)), g(t, "ui-junction-select", y(t, "pointercancel", d)), this;
1439
+ }), g(t, "ui-junction-select", m(t, "pointerdown", p)), g(t, "ui-junction-select", m(t, "pointermove", d)), g(t, "ui-junction-select", m(t, "pointerup", c)), g(t, "ui-junction-select", m(t, "pointercancel", l)), this;
1440
1440
  }
1441
1441
  disconnect(e) {
1442
1442
  const t = e?.deref?.();
1443
1443
  return t && xe(t, "ui-junction-select"), this;
1444
1444
  }
1445
- }, Xt = class extends Se {
1445
+ }, hn = class extends we {
1446
1446
  constructor() {
1447
1447
  super("ui-junction-drag");
1448
1448
  }
1449
1449
  connect(e) {
1450
1450
  const t = e?.deref?.();
1451
1451
  if (!t) return this;
1452
- w(t, "--jx-drag-x", E(t, "--jx-drag-x")), w(t, "--jx-drag-y", E(t, "--jx-drag-y"));
1452
+ S(t, "--jx-drag-x", E(t, "--jx-drag-x")), S(t, "--jx-drag-y", E(t, "--jx-drag-y"));
1453
1453
  const n = t.style.transform;
1454
1454
  (!t.style.transform || t.style.transform === "none") && (t.style.transform = "translate3d(calc(var(--jx-drag-x, 0) * 1px), calc(var(--jx-drag-y, 0) * 1px), 0)");
1455
1455
  const r = Ye(t, "data-junction-drag-handle", t);
@@ -1465,16 +1465,16 @@ var U = {
1465
1465
  baseY: u
1466
1466
  }
1467
1467
  }))));
1468
- }, l = (c) => {
1468
+ }, d = (c) => {
1469
1469
  if (!i) return;
1470
- const d = c.clientX - s, f = c.clientY - a, m = o + d, _ = u + f;
1471
- w(t, "--jx-drag-x", m), w(t, "--jx-drag-y", _), t.dispatchEvent(new CustomEvent(ue.move, {
1470
+ const l = c.clientX - s, f = c.clientY - a, y = o + l, _ = u + f;
1471
+ S(t, "--jx-drag-x", y), S(t, "--jx-drag-y", _), t.dispatchEvent(new CustomEvent(ue.move, {
1472
1472
  bubbles: !0,
1473
1473
  detail: {
1474
1474
  host: t,
1475
- dx: d,
1475
+ dx: l,
1476
1476
  dy: f,
1477
- x: m,
1477
+ x: y,
1478
1478
  y: _
1479
1479
  }
1480
1480
  }));
@@ -1497,13 +1497,13 @@ var U = {
1497
1497
  };
1498
1498
  return g(t, "ui-junction-drag", () => {
1499
1499
  t.style.transform = n;
1500
- }), g(t, "ui-junction-drag", y(r, "pointerdown", p)), g(t, "ui-junction-drag", y(r, "pointermove", l)), g(t, "ui-junction-drag", y(r, "pointerup", h)), g(t, "ui-junction-drag", y(r, "pointercancel", h)), this;
1500
+ }), g(t, "ui-junction-drag", m(r, "pointerdown", p)), g(t, "ui-junction-drag", m(r, "pointermove", d)), g(t, "ui-junction-drag", m(r, "pointerup", h)), g(t, "ui-junction-drag", m(r, "pointercancel", h)), this;
1501
1501
  }
1502
1502
  disconnect(e) {
1503
1503
  const t = e?.deref?.();
1504
1504
  return t && xe(t, "ui-junction-drag"), this;
1505
1505
  }
1506
- }, Yt = class extends Se {
1506
+ }, mn = class extends we {
1507
1507
  constructor() {
1508
1508
  super("ui-junction-resize");
1509
1509
  }
@@ -1512,8 +1512,8 @@ var U = {
1512
1512
  if (!t) return this;
1513
1513
  const n = Ye(t, "data-junction-resize-handle", t);
1514
1514
  let r = !1, i = 0, s = 0, a = 0, o = 0;
1515
- const u = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), p = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80), l = (d) => {
1516
- d.button === 0 && (d.target !== n && !n.contains(d.target) || (r = !0, i = d.clientX, s = d.clientY, a = t.offsetWidth, o = t.offsetHeight, n.setPointerCapture(d.pointerId), t.dispatchEvent(new CustomEvent(ce.start, {
1515
+ const u = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), p = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80), d = (l) => {
1516
+ l.button === 0 && (l.target !== n && !n.contains(l.target) || (r = !0, i = l.clientX, s = l.clientY, a = t.offsetWidth, o = t.offsetHeight, n.setPointerCapture(l.pointerId), t.dispatchEvent(new CustomEvent(ce.start, {
1517
1517
  bubbles: !0,
1518
1518
  detail: {
1519
1519
  host: t,
@@ -1521,22 +1521,22 @@ var U = {
1521
1521
  height: o
1522
1522
  }
1523
1523
  }))));
1524
- }, h = (d) => {
1524
+ }, h = (l) => {
1525
1525
  if (!r) return;
1526
- const f = Math.max(u, a + (d.clientX - i)), m = Math.max(p, o + (d.clientY - s));
1527
- t.style.width = `${f}px`, t.style.height = `${m}px`, t.dispatchEvent(new CustomEvent(ce.move, {
1526
+ const f = Math.max(u, a + (l.clientX - i)), y = Math.max(p, o + (l.clientY - s));
1527
+ t.style.width = `${f}px`, t.style.height = `${y}px`, t.dispatchEvent(new CustomEvent(ce.move, {
1528
1528
  bubbles: !0,
1529
1529
  detail: {
1530
1530
  host: t,
1531
1531
  width: f,
1532
- height: m
1532
+ height: y
1533
1533
  }
1534
1534
  }));
1535
- }, c = (d) => {
1535
+ }, c = (l) => {
1536
1536
  if (r) {
1537
1537
  r = !1;
1538
1538
  try {
1539
- n.releasePointerCapture(d.pointerId);
1539
+ n.releasePointerCapture(l.pointerId);
1540
1540
  } catch {
1541
1541
  }
1542
1542
  t.dispatchEvent(new CustomEvent(ce.end, {
@@ -1549,155 +1549,165 @@ var U = {
1549
1549
  }));
1550
1550
  }
1551
1551
  };
1552
- return g(t, "ui-junction-resize", y(n, "pointerdown", l)), g(t, "ui-junction-resize", y(n, "pointermove", h)), g(t, "ui-junction-resize", y(n, "pointerup", c)), g(t, "ui-junction-resize", y(n, "pointercancel", c)), this;
1552
+ return g(t, "ui-junction-resize", m(n, "pointerdown", d)), g(t, "ui-junction-resize", m(n, "pointermove", h)), g(t, "ui-junction-resize", m(n, "pointerup", c)), g(t, "ui-junction-resize", m(n, "pointercancel", c)), this;
1553
1553
  }
1554
1554
  disconnect(e) {
1555
1555
  const t = e?.deref?.();
1556
1556
  return t && xe(t, "ui-junction-resize"), this;
1557
1557
  }
1558
1558
  };
1559
- new Ut();
1560
- new Xt();
1561
- new Yt();
1559
+ new pn();
1560
+ new hn();
1561
+ new mn();
1562
1562
  export {
1563
- Se as DOMMixin,
1564
- Xt as JunctionDragMixin,
1565
- Yt as JunctionResizeMixin,
1566
- Ut as JunctionSelectMixin,
1567
- pn as MATCH,
1568
- xn as MOC,
1563
+ we as DOMMixin,
1564
+ hn as JunctionDragMixin,
1565
+ mn as JunctionResizeMixin,
1566
+ pn as JunctionSelectMixin,
1567
+ kn as MATCH,
1568
+ Bn as MOC,
1569
1569
  fe as MOCElement,
1570
- en as RAFBehavior,
1571
- hn as REGEX,
1572
- tn as ROOT,
1573
- Bn as WavyShapedCircle,
1574
- Gt as __exportProperties,
1575
- y as addEvent,
1570
+ Sn as RAFBehavior,
1571
+ Vn as REGEX,
1572
+ wn as ROOT,
1573
+ ar as WavyShapedCircle,
1574
+ yn as __exportProperties,
1575
+ Me as __registeredCssProperties,
1576
+ m as addEvent,
1576
1577
  K as addEvents,
1577
- vn as addEventsList,
1578
- Bt as addRoot,
1578
+ Wn as addEventsList,
1579
+ an as addRoot,
1579
1580
  O as adoptedBlobMap,
1581
+ Oe as adoptedLayerMap,
1580
1582
  v as adoptedMap,
1581
- St as animateHide,
1582
- wt as animateShow,
1583
+ Ve as adoptedSelectorMap,
1584
+ D as adoptedShadowLayerMap,
1585
+ je as adoptedShadowSelectorMap,
1586
+ Mt as animateHide,
1587
+ xt as animateShow,
1583
1588
  he as availSize,
1584
- zn as bbh,
1585
- Pn as bbw,
1586
- Nt as bindBehavior,
1587
- $t as bindMixins,
1588
- It as bindStore,
1589
+ Xn as bbh,
1590
+ Un as bbw,
1591
+ Gt as bindBehavior,
1592
+ en as bindMixins,
1593
+ Qt as bindStore,
1594
+ k as blobURLMap,
1589
1595
  Y as borderBoxHeight,
1590
1596
  X as borderBoxWidth,
1591
1597
  Ue as boundBehaviors,
1592
- S as boundMixinSet,
1593
- kn as cbh,
1594
- Ln as cbw,
1595
- An as changeZoom,
1596
- Vn as classes,
1597
- vt as computeCaretPosition,
1598
- On as computeCaretPositionFromClient,
1599
- Sn as containsOrSelf,
1598
+ w as boundMixinSet,
1599
+ x as cacheMap,
1600
+ Gn as cbh,
1601
+ Yn as cbw,
1602
+ _n as changeZoom,
1603
+ Jn as classes,
1604
+ St as computeCaretPosition,
1605
+ er as computeCaretPositionFromClient,
1606
+ $n as containsOrSelf,
1600
1607
  J as contentBoxHeight,
1601
1608
  G as contentBoxWidth,
1602
- yn as createElementVanilla,
1603
- Dt as deleteStyleProperty,
1604
- Jt as detectMobile,
1605
- sn as doBorderObserve,
1606
- an as doContentObserve,
1607
- kt as fetchAndCache,
1608
- Vt as fetchAsInline,
1609
- jn as fixOrientToScreen,
1610
- Cn as fixedClientZoom,
1611
- qn as getAdoptedStyleRule,
1609
+ jn as createElementVanilla,
1610
+ dn as deleteStyleProperty,
1611
+ gn as detectMobile,
1612
+ Cn as doBorderObserve,
1613
+ An as doContentObserve,
1614
+ Wt as fetchAndCache,
1615
+ Ft as fetchAsInline,
1616
+ Kn as fixOrientToScreen,
1617
+ Zn as fixedClientZoom,
1618
+ ur as getAdoptedStyleRule,
1612
1619
  Be as getAvailSize,
1613
- Rn as getBoundingOrientRect,
1614
- yt as getCorrectOrientation,
1620
+ Dn as getBoundingOrientRect,
1621
+ gt as getCorrectOrientation,
1615
1622
  F as getElementRelated,
1616
- Gn as getElementZoom,
1617
- wn as getEventTarget,
1618
- st as getOffsetParent,
1619
- Kt as getOffsetParentChain,
1620
- Kn as getPadding,
1621
- W as getPropertyValue,
1622
- Jn as getPxValue,
1623
- Ft as getStoresOfElement,
1624
- Mt as getStyleLayer,
1625
- we as getStyleRule,
1626
- Xn as getTransform,
1627
- Yn as getTransformOrigin,
1628
- En as getZoom,
1629
- ar as handleAttribute,
1630
- ir as handleDataset,
1631
- nr as handleHidden,
1632
- rr as handleProperty,
1633
- or as handleStyleChange,
1623
+ yr as getElementZoom,
1624
+ In as getEventTarget,
1625
+ ut as getOffsetParent,
1626
+ vn as getOffsetParentChain,
1627
+ vr as getPadding,
1628
+ N as getPropertyValue,
1629
+ gr as getPxValue,
1630
+ Kt as getStoresOfElement,
1631
+ Rt as getStyleLayer,
1632
+ Se as getStyleRule,
1633
+ hr as getTransform,
1634
+ mr as getTransformOrigin,
1635
+ qn as getZoom,
1636
+ Cr as handleAttribute,
1637
+ Er as handleDataset,
1638
+ xr as handleHidden,
1639
+ Mr as handleProperty,
1640
+ Ar as handleStyleChange,
1634
1641
  re as hasParent,
1635
- Zn as hash,
1636
- cn as html,
1637
- gn as includeSelf,
1638
- fn as indexOf,
1642
+ lr as hash,
1643
+ Pn as html,
1644
+ Nn as includeSelf,
1645
+ Ln as indexOf,
1639
1646
  He as initTextStyle,
1640
- $n as initVisibility,
1641
- mn as isElement,
1642
- Mn as isInFocus,
1643
- Je as isMobile,
1644
- Qt as isNearlyIdentity,
1645
- ln as isValidParent,
1646
- Ot as loadAsAdopted,
1647
- Tt as loadBlobStyle,
1648
- T as loadInlineStyle,
1647
+ or as initVisibility,
1648
+ On as isElement,
1649
+ Hn as isInFocus,
1650
+ Ke as isMobile,
1651
+ bn as isNearlyIdentity,
1652
+ Tn as isValidParent,
1653
+ pr as layerCounter,
1654
+ Xt as loadAsAdopted,
1655
+ _t as loadBlobStyle,
1656
+ j as loadInlineStyle,
1649
1657
  De as loadStyleSheet,
1650
- ut as makeRAFCycle,
1651
- Tn as measureInputInFocus,
1652
- gt as measureText,
1658
+ ct as makeRAFCycle,
1659
+ Qn as measureInputInFocus,
1660
+ bt as measureText,
1661
+ ee as mixinDisposers,
1653
1662
  C as mixinElements,
1654
1663
  Q as mixinNamespace,
1655
1664
  $ as mixinRegistry,
1656
- _t as nameRegistryF,
1665
+ cn as nameRegistryF,
1657
1666
  I as namedStoreMaps,
1658
- In as observeAttribute,
1667
+ ir as observeAttribute,
1659
1668
  ve as observeAttributeBySelector,
1660
- Fn as observeBorderBox,
1661
- xt as observeBySelector,
1662
- Nn as observeContentBox,
1669
+ rr as observeBorderBox,
1670
+ Ct as observeBySelector,
1671
+ nr as observeContentBox,
1663
1672
  Ce as onBorderObserve,
1664
1673
  Re as onContentObserve,
1665
1674
  z as orientOf,
1666
- pt as orientationNumberMap,
1667
- Ne as parseLength,
1668
- Wt as parseOrigin,
1675
+ mt as orientationNumberMap,
1676
+ We as parseLength,
1677
+ Yt as parseOrigin,
1669
1678
  $e as passiveOpts,
1670
- Un as preloadStyle,
1671
- bt as readLauncherLayoutFromElement,
1672
- Qn as reflectBehaviors,
1673
- tr as reflectMixins,
1674
- er as reflectStores,
1675
- Zt as registerMixin,
1679
+ fr as preloadStyle,
1680
+ wt as readLauncherLayoutFromElement,
1681
+ br as reflectBehaviors,
1682
+ wr as reflectMixins,
1683
+ Sr as reflectStores,
1684
+ ln as registerMixin,
1676
1685
  ae as removeAdopted,
1677
1686
  Pe as removeEvent,
1678
- bn as removeEvents,
1679
- Wn as resolveGridCellFromClientPoint,
1680
- ye as roots,
1681
- rn as setAttributes,
1682
- nn as setAttributesIfNull,
1683
- dn as setChecked,
1684
- on as setIdleInterval,
1685
- Dn as setProperty,
1686
- _n as setStyleInRule,
1687
- w as setStyleProperty,
1687
+ Fn as removeEvents,
1688
+ tr as resolveGridCellFromClientPoint,
1689
+ me as roots,
1690
+ Mn as setAttributes,
1691
+ xn as setAttributesIfNull,
1692
+ zn as setChecked,
1693
+ En as setIdleInterval,
1694
+ dr as setProperty,
1695
+ cr as setStyleInRule,
1696
+ S as setStyleProperty,
1688
1697
  _e as setStylePropertyFallback,
1689
- Lt as setStylePropertyTyped,
1690
- jt as setStyleRule,
1691
- Hn as setStyleRules,
1692
- Le as setStyleURL,
1693
- ct as throttleMap,
1698
+ jt as setStylePropertyTyped,
1699
+ qt as setStyleRule,
1700
+ sr as setStyleRules,
1701
+ Te as setStyleURL,
1702
+ lt as throttleMap,
1694
1703
  pe as unfixedClientZoom,
1695
- me as updateAllMixins,
1704
+ ye as updateAllMixins,
1696
1705
  Xe as updateMixinAttributes,
1697
- Ht as updateMixinAttributesAll,
1698
- qt as updateMixinAttributesAllInRoots,
1699
- ht as updateVP,
1700
- un as url,
1701
- mt as whenAnyScreenChanges,
1702
- lt as zoomOf
1706
+ sn as updateMixinAttributesAll,
1707
+ un as updateMixinAttributesAllInRoots,
1708
+ yt as updateVP,
1709
+ Rn as url,
1710
+ vt as whenAnyScreenChanges,
1711
+ pt as zoomOf,
1712
+ ft as zoomValues
1703
1713
  };