@fest-lib/dom 0.1.8 → 0.1.10
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/dom.js +535 -596
- package/package.json +1 -1
- package/dist/index.js +0 -1713
package/dist/dom.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { $avoidTrigger as B, camelToKebab as ee, cvt_cs_to_os as Se, hasValue as E, isArrayOrIterable as Xe, isVal as Ye, isValueUnit as Ge, kebabToCamel as Oe, normalizeGridLayout as Je, normalizePrimitive as he, resolveLocalPointToGridCell as Ke, tryStringAsNumber as We } from "@fest-lib/core";
|
|
2
|
+
var Qe = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), we = globalThis[Qe] ??= /* @__PURE__ */ new Set();
|
|
2
3
|
[
|
|
3
4
|
{
|
|
4
5
|
name: "--screen-width",
|
|
@@ -195,22 +196,22 @@ var Je = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), Me = gl
|
|
|
195
196
|
].forEach((e) => {
|
|
196
197
|
if (typeof CSS > "u" || typeof CSS?.registerProperty != "function") return;
|
|
197
198
|
const t = String(e?.name || "").trim();
|
|
198
|
-
if (!(!t ||
|
|
199
|
+
if (!(!t || we.has(t)))
|
|
199
200
|
try {
|
|
200
201
|
CSS.registerProperty(e);
|
|
201
202
|
} catch (n) {
|
|
202
203
|
String(n?.name || "").toLowerCase() !== "invalidmodificationerror" && console.warn(n);
|
|
203
204
|
} finally {
|
|
204
|
-
|
|
205
|
+
we.add(t);
|
|
205
206
|
}
|
|
206
207
|
});
|
|
207
|
-
var
|
|
208
|
-
},
|
|
208
|
+
var nn = () => {
|
|
209
|
+
}, et = () => {
|
|
209
210
|
let e = navigator?.userAgentData?.mobile || !1;
|
|
210
211
|
return ((t) => {
|
|
211
212
|
(/(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
213
|
})(navigator.userAgent || navigator.vendor || globalThis.opera), e;
|
|
213
|
-
},
|
|
214
|
+
}, rn = () => [
|
|
214
215
|
/Android/i,
|
|
215
216
|
/webOS/i,
|
|
216
217
|
/iPhone/i,
|
|
@@ -218,80 +219,19 @@ var yn = () => {
|
|
|
218
219
|
/iPod/i,
|
|
219
220
|
/BlackBerry/i,
|
|
220
221
|
/Windows Phone/i
|
|
221
|
-
].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches,
|
|
222
|
-
le(e, n) && (e[Ee] = !0);
|
|
223
|
-
let r;
|
|
224
|
-
try {
|
|
225
|
-
r = t?.();
|
|
226
|
-
} finally {
|
|
227
|
-
le(e, n) && delete e[Ee];
|
|
228
|
-
}
|
|
229
|
-
return r;
|
|
230
|
-
}, Ie = (e) => {
|
|
231
|
-
if (typeof e != "string") return null;
|
|
232
|
-
const t = [...e?.matchAll?.(/^\d+(\.\d+)?$/g)];
|
|
233
|
-
if (t?.length != 1) return null;
|
|
234
|
-
const n = parseFloat(t[0][0]);
|
|
235
|
-
return !Number.isNaN(n) && Number.isFinite(n) ? n : null;
|
|
236
|
-
}, tt = (e) => Array.isArray(e) || e != null && typeof e == "object" && typeof e[Symbol.iterator] == "function", de = (e, t, n = 0) => {
|
|
237
|
-
const r = [...t], i = [...e];
|
|
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
|
-
}, H = (e, t = [4, 8]) => {
|
|
240
|
-
if (Array.isArray(e) && e.length >= 2) return [Math.max(1, Math.floor(Number(e[0]) || t[0])), Math.max(1, Math.floor(Number(e[1]) || t[1]))];
|
|
241
|
-
if (e && typeof e == "object") {
|
|
242
|
-
const n = e;
|
|
243
|
-
return [Math.max(1, Math.floor(Number(n.columns) || t[0])), Math.max(1, Math.floor(Number(n.rows) || t[1]))];
|
|
244
|
-
}
|
|
245
|
-
return [t[0], t[1]];
|
|
246
|
-
}, nt = (e, t) => {
|
|
247
|
-
const [n, r] = H(t);
|
|
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
|
-
}, 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
|
-
item: i?.redirect?.item ?? { id: "" },
|
|
252
|
-
list: i?.redirect?.list ?? [],
|
|
253
|
-
items: i?.redirect?.items ?? /* @__PURE__ */ new Map(),
|
|
254
|
-
layout: s,
|
|
255
|
-
size: [a, o]
|
|
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
|
-
const n = H(t?.layout ?? [4, 8]), r = {
|
|
260
|
-
...t,
|
|
261
|
-
layout: n
|
|
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
|
-
if (!a(o)) return [...o];
|
|
264
|
-
const u = n[0] || 4, p = n[1] || 8, d = ([
|
|
265
|
-
[o[0] + 1, o[1]],
|
|
266
|
-
[o[0] - 1, o[1]],
|
|
267
|
-
[o[0], o[1] + 1],
|
|
268
|
-
[o[0], o[1] - 1]
|
|
269
|
-
].filter((f) => f[0] >= 0 && f[0] < u && f[1] >= 0 && f[1] < p) || []).find((f) => !a(f));
|
|
270
|
-
if (d) return [...d];
|
|
271
|
-
let h = 0, c = !0, l = [...o];
|
|
272
|
-
for (; c && h++ < u * p; ) {
|
|
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
|
-
}
|
|
276
|
-
return [...o];
|
|
277
|
-
}, at = (e, t, n = 0) => {
|
|
278
|
-
const r = [...t.size], i = [...e], s = H(t.layout ?? [4, 8]);
|
|
279
|
-
n % 2 && r.reverse();
|
|
280
|
-
const a = [s[0] / r[0], s[1] / r[1]];
|
|
281
|
-
return [i[0] * a[0], i[1] * a[1]];
|
|
282
|
-
}, st = () => ({
|
|
222
|
+
].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches, tt = () => ({
|
|
283
223
|
didTimeout: !1,
|
|
284
224
|
timeRemaining: () => 0
|
|
285
|
-
}),
|
|
225
|
+
}), xe = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(tt()), 0), nt = (e) => e?.offsetParent ?? e?.host, on = (e) => {
|
|
286
226
|
const t = [];
|
|
287
227
|
let n = e;
|
|
288
228
|
for (; n; ) {
|
|
289
|
-
const r =
|
|
229
|
+
const r = nt(n);
|
|
290
230
|
if (r && r instanceof HTMLHtmlElement) break;
|
|
291
231
|
(n = r) && t.push(n);
|
|
292
232
|
}
|
|
293
233
|
return t;
|
|
294
|
-
},
|
|
234
|
+
}, an = (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, rt = () => {
|
|
295
235
|
const e = {
|
|
296
236
|
canceled: !1,
|
|
297
237
|
rAFs: /* @__PURE__ */ new Set(),
|
|
@@ -311,25 +251,25 @@ var yn = () => {
|
|
|
311
251
|
setTimeout(t, 16);
|
|
312
252
|
});
|
|
313
253
|
})(), e;
|
|
314
|
-
},
|
|
254
|
+
}, sn = (e = rt()) => (t) => e.shedule(t), cn = typeof document < "u" ? document?.documentElement : null, un = (e, t = {}) => {
|
|
315
255
|
if (!(!t || typeof t != "object" || !e))
|
|
316
256
|
return Array.from(Object.entries(t)).map(([n, r]) => {
|
|
317
257
|
const i = e.getAttribute(n);
|
|
318
258
|
r == null ? e.removeAttribute(n) : r != i && e.setAttribute(n, i == "" ? r ?? i : i ?? r);
|
|
319
259
|
});
|
|
320
|
-
},
|
|
260
|
+
}, dn = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
|
|
321
261
|
r == null ? e.removeAttribute(n) : e.setAttribute(n, r ?? e.getAttribute(n));
|
|
322
|
-
}),
|
|
262
|
+
}), it = /* @__PURE__ */ new Map(), ln = (e, t = 1e3, ...n) => {
|
|
323
263
|
const r = {
|
|
324
264
|
running: !0,
|
|
325
265
|
cancel: () => {
|
|
326
266
|
r.running = !1;
|
|
327
267
|
}
|
|
328
268
|
};
|
|
329
|
-
return
|
|
269
|
+
return xe(async () => {
|
|
330
270
|
if (!(!e || typeof e != "function")) {
|
|
331
271
|
for (; r.running; )
|
|
332
|
-
await Promise.all([Promise.try(e, ...n), new Promise((i) => setTimeout(i, t))]).catch?.(console.warn.bind(console)), await Promise.any([new Promise((i) =>
|
|
272
|
+
await Promise.all([Promise.try(e, ...n), new Promise((i) => setTimeout(i, t))]).catch?.(console.warn.bind(console)), await Promise.any([new Promise((i) => xe(i, t)), new Promise((i) => setTimeout(i, t))]);
|
|
333
273
|
r.cancel = () => {
|
|
334
274
|
};
|
|
335
275
|
}
|
|
@@ -337,67 +277,67 @@ var yn = () => {
|
|
|
337
277
|
};
|
|
338
278
|
typeof requestAnimationFrame < "u" && requestAnimationFrame(async () => {
|
|
339
279
|
for (; ; )
|
|
340
|
-
|
|
280
|
+
it.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
|
|
341
281
|
});
|
|
342
|
-
var
|
|
282
|
+
var U = /* @__PURE__ */ Symbol("@border-box-width"), X = /* @__PURE__ */ Symbol("@border-box-height"), Y = /* @__PURE__ */ Symbol("@content-box-width"), G = /* @__PURE__ */ Symbol("@content-box-height"), Ee = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), fn = (e, t = () => {
|
|
343
283
|
}) => {
|
|
344
|
-
if (e instanceof HTMLElement && !
|
|
345
|
-
e[
|
|
284
|
+
if (e instanceof HTMLElement && !Ae.has(e)) {
|
|
285
|
+
e[Y] = e.clientWidth, e[G] = e.clientHeight;
|
|
346
286
|
const n = new ResizeObserver((r) => {
|
|
347
287
|
for (const i of r) if (i.contentBoxSize) {
|
|
348
288
|
const s = i.contentBoxSize[0];
|
|
349
|
-
s && (e[
|
|
289
|
+
s && (e[Y] = Math.min(s.inlineSize, e.clientWidth), e[G] = Math.min(s.blockSize, e.clientHeight), t?.(e));
|
|
350
290
|
}
|
|
351
291
|
});
|
|
352
|
-
|
|
292
|
+
Ae.set(e, n), n.observe(e?.element ?? e, { box: "content-box" });
|
|
353
293
|
}
|
|
354
|
-
},
|
|
294
|
+
}, pn = (e, t = () => {
|
|
355
295
|
}) => {
|
|
356
|
-
if (e instanceof HTMLElement && !
|
|
357
|
-
e[
|
|
296
|
+
if (e instanceof HTMLElement && !Ee.has(e)) {
|
|
297
|
+
e[U] = e.offsetWidth, e[X] = e.offsetHeight;
|
|
358
298
|
const n = new ResizeObserver((r) => {
|
|
359
299
|
for (const i of r) if (i.borderBoxSize) {
|
|
360
300
|
const s = i.borderBoxSize[0];
|
|
361
|
-
s && (e[
|
|
301
|
+
s && (e[U] = Math.min(s.inlineSize, e.offsetWidth), e[X] = Math.min(s.blockSize, e.offsetHeight), t?.(e));
|
|
362
302
|
}
|
|
363
303
|
});
|
|
364
|
-
|
|
304
|
+
Ee.set(e, n), n.observe(e?.element ?? e, { box: "border-box" });
|
|
365
305
|
}
|
|
366
|
-
},
|
|
306
|
+
}, hn = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), mn = (e, t = "text/html") => {
|
|
367
307
|
const n = new DOMParser().parseFromString(e, t);
|
|
368
308
|
return n.querySelector("template") ?? n.querySelector("*");
|
|
369
|
-
},
|
|
309
|
+
}, yn = (e, t, n) => {
|
|
370
310
|
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
311
|
bubbles: !0,
|
|
372
312
|
cancelable: !0
|
|
373
313
|
}))));
|
|
374
|
-
},
|
|
314
|
+
}, gn = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, vn = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, bn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", Sn = `^(?:(-?[_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)?\\]`, wn = (e) => {
|
|
375
315
|
if (e == ":fragment:") return document.createDocumentFragment();
|
|
376
316
|
const t = document.createElement.bind(document);
|
|
377
317
|
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
318
|
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
319
|
return i && (n.className = i.slice(1)), n;
|
|
380
|
-
},
|
|
320
|
+
}, xn = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, En = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), ne = (e, t) => {
|
|
381
321
|
for (; e; ) {
|
|
382
322
|
if (!(e?.element ?? e)) return !1;
|
|
383
323
|
if ((e?.element ?? e) === (t?.element ?? t)) return !0;
|
|
384
324
|
e = e.parentElement ?? (e.parentNode == e?.getRootNode?.({ composed: !0 }) ? e?.getRootNode?.({ composed: !0 })?.host : e?.parentNode);
|
|
385
325
|
}
|
|
386
|
-
},
|
|
387
|
-
function m(e, t, n, r =
|
|
326
|
+
}, Fe = {};
|
|
327
|
+
function m(e, t, n, r = Fe) {
|
|
388
328
|
e?.addEventListener?.(t, n, r);
|
|
389
329
|
const i = typeof e == "object" || typeof e == "function" && !e?.deref ? new WeakRef(e) : e;
|
|
390
330
|
return () => i?.deref?.()?.removeEventListener?.(t, n, r);
|
|
391
331
|
}
|
|
392
|
-
function
|
|
332
|
+
function Me(e, t, n, r = Fe) {
|
|
393
333
|
e?.removeEventListener?.(t, n, r);
|
|
394
334
|
}
|
|
395
|
-
var
|
|
335
|
+
var J = (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))), An = (e, t) => {
|
|
396
336
|
if (t) {
|
|
397
337
|
let n = t;
|
|
398
|
-
return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((
|
|
338
|
+
return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((Xe(i) ? [...i] : i) ?? [])?.map?.((s) => m(e, r, s)));
|
|
399
339
|
}
|
|
400
|
-
},
|
|
340
|
+
}, Mn = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? Me(e, n, ...r) : Me(e, n, r))), Cn = (e) => {
|
|
401
341
|
if (!e) return null;
|
|
402
342
|
if (e?.composedPath && typeof e.composedPath == "function") {
|
|
403
343
|
const n = e.composedPath();
|
|
@@ -405,7 +345,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
405
345
|
}
|
|
406
346
|
const t = e?.target;
|
|
407
347
|
return t instanceof HTMLElement || t instanceof Element ? t : null;
|
|
408
|
-
},
|
|
348
|
+
}, Rn = (e, t, n) => {
|
|
409
349
|
if (t == null || !(t instanceof Node) && t?.element == null) return !1;
|
|
410
350
|
if (e == t || (e?.element ?? e) == (t?.element ?? t)) return !0;
|
|
411
351
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
@@ -416,42 +356,43 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
416
356
|
}
|
|
417
357
|
}
|
|
418
358
|
return !!(e?.contains?.(t?.element ?? t) || e?.getRootNode({ composed: !0 })?.host == (t?.element ?? t));
|
|
419
|
-
},
|
|
359
|
+
}, ue = (e, t, n) => {
|
|
420
360
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
421
361
|
const o = n.composedPath();
|
|
422
|
-
for (const
|
|
423
|
-
return
|
|
362
|
+
for (const c of o) if ((c instanceof HTMLElement || c instanceof Element) && c.matches?.(t))
|
|
363
|
+
return c;
|
|
424
364
|
}
|
|
425
365
|
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
366
|
return r ?? a ?? s;
|
|
427
|
-
},
|
|
367
|
+
}, Pn = (e, t) => !!ue(e, t), kn = (e, t, n = "parent") => {
|
|
428
368
|
if (!e || e.checkVisibility && !e.checkVisibility({
|
|
429
369
|
checkOpacity: !0,
|
|
430
370
|
checkVisibilityCSS: !0
|
|
431
371
|
}) || !e.checkVisibility && e.offsetParent === null && e.style.position !== "fixed") return !1;
|
|
432
372
|
let r = document.activeElement;
|
|
433
373
|
for (; r && r.shadowRoot && r.shadowRoot.activeElement; ) r = r.shadowRoot.activeElement;
|
|
434
|
-
const i = r === e ||
|
|
374
|
+
const i = r === e || ne(r, e), s = e.matches(":hover");
|
|
435
375
|
if (!i && !s && !t) return !1;
|
|
436
376
|
if (t) {
|
|
437
377
|
if (typeof t == "string") {
|
|
438
|
-
if (n === "parent") return !!
|
|
378
|
+
if (n === "parent") return !!ue(e, t);
|
|
439
379
|
{
|
|
440
|
-
const a = i ? r : e.querySelector(":hover") || e, o = !!
|
|
380
|
+
const a = i ? r : e.querySelector(":hover") || e, o = !!ue(a, t);
|
|
441
381
|
return e?.querySelector?.(t) != null || e?.matches?.(t) || o;
|
|
442
382
|
}
|
|
443
|
-
} else if (t instanceof HTMLElement)
|
|
383
|
+
} else if (t instanceof HTMLElement)
|
|
384
|
+
return n === "parent" ? ne(e, t) || !1 : ne(t, e) || !1;
|
|
444
385
|
}
|
|
445
386
|
return !0;
|
|
446
|
-
},
|
|
387
|
+
}, zn = () => "currentCSSZoom" in document.documentElement ? document.documentElement.currentCSSZoom || 1 : parseFloat(document.documentElement.style.getPropertyValue("--scaling") || "1") || 1, ot = /* @__PURE__ */ Symbol.for("dom.ts@zoomValues"), at = globalThis[ot] ??= /* @__PURE__ */ new WeakMap(), st = (e = document.documentElement) => at.getOrInsertComputed(e, () => {
|
|
447
388
|
const t = (e?.matches?.(".ui-orientbox") ? e : null) || e?.closest?.(".ui-orientbox") || document.body;
|
|
448
389
|
if (t?.zoom) return t?.zoom || 1;
|
|
449
390
|
if (e?.currentCSSZoom) return e?.currentCSSZoom || 1;
|
|
450
|
-
}),
|
|
391
|
+
}), Ln = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
|
|
451
392
|
detail: { zoom: e },
|
|
452
393
|
bubbles: !0,
|
|
453
394
|
cancelable: !0
|
|
454
|
-
})), e),
|
|
395
|
+
})), e), Tn = (e = document.documentElement) => (e?.currentCSSZoom != null ? 1 : st(e)) || 1, de = (e = document.documentElement) => (e?.currentCSSZoom == null ? 1 : e?.currentCSSZoom) || 1, k = (e = document.documentElement) => {
|
|
455
396
|
const t = (e?.matches?.('[orient], [data-mixin="ui-orientbox"]') ? e : null) || e?.closest?.('[orient], [data-mixin="ui-orientbox"]') || e;
|
|
456
397
|
if (t?.hasAttribute?.("orient")) return parseInt(t?.getAttribute?.("orient") || "0") || 0;
|
|
457
398
|
if (t?.orient != null && Number.isFinite(Number(t.orient))) return Number(t.orient) || 0;
|
|
@@ -461,27 +402,27 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
461
402
|
} catch {
|
|
462
403
|
}
|
|
463
404
|
return 0;
|
|
464
|
-
},
|
|
465
|
-
const n =
|
|
405
|
+
}, Vn = (e, t = null) => {
|
|
406
|
+
const n = de(e) || 1, r = e?.getBoundingClientRect?.(), i = {
|
|
466
407
|
left: r?.left / n,
|
|
467
408
|
right: r?.right / n,
|
|
468
409
|
top: r?.top / n,
|
|
469
410
|
bottom: r?.bottom / n,
|
|
470
411
|
width: r?.width / n,
|
|
471
412
|
height: r?.height / n
|
|
472
|
-
}, s = t ?? (
|
|
413
|
+
}, s = t ?? (k(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], [c, u] = Se([i.left, i.top], o, s), [l, h] = Se([i.right, i.bottom], o, s), [d, f] = s == 0 || s == 3 ? [c, l] : [l, c], [p, y] = s == 0 || s == 1 ? [u, h] : [h, u], [q, Ue] = s % 2 ? [i.height, i.width] : [i.width, i.height];
|
|
473
414
|
return {
|
|
474
|
-
left:
|
|
475
|
-
top:
|
|
476
|
-
right:
|
|
415
|
+
left: d,
|
|
416
|
+
top: p,
|
|
417
|
+
right: f,
|
|
477
418
|
bottom: y,
|
|
478
|
-
width:
|
|
479
|
-
height:
|
|
419
|
+
width: q,
|
|
420
|
+
height: Ue
|
|
480
421
|
};
|
|
481
|
-
},
|
|
422
|
+
}, jn = (e, t = null) => (t ?? k(e)) % 2 ? e[X] ?? e?.clientHeight : e[U] ?? e?.clientWidth, On = (e, t = null) => (t ?? k(e)) % 2 ? e[U] ?? e?.clientWidth : e[X] ?? e?.clientHeight, Wn = (e, t = null) => (t ?? k(e)) % 2 ? e[G] ?? e?.clientHeight : e[Y] ?? e?.clientWidth, Fn = (e, t = null) => (t ?? k(e)) % 2 ? e[Y] ?? e?.clientWidth : e[G] ?? e?.clientHeight, ct = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
|
|
482
423
|
didTimeout: !1,
|
|
483
424
|
timeRemaining: () => 0
|
|
484
|
-
}), 0),
|
|
425
|
+
}), 0), Ie = () => {
|
|
485
426
|
const e = typeof matchMedia < "u" ? matchMedia("(orientation: landscape)")?.matches : !1, t = typeof window < "u" ? window.visualViewport : null, n = t ? {
|
|
486
427
|
"--vv-width": `${t.width}px`,
|
|
487
428
|
"--vv-height": `${t.height}px`,
|
|
@@ -516,35 +457,35 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
516
457
|
"--pixel-ratio": "1",
|
|
517
458
|
...n
|
|
518
459
|
};
|
|
519
|
-
},
|
|
460
|
+
}, le = Ie(), In = [[":root, :host, :scope", le]], ut = {
|
|
520
461
|
"portrait-primary": 0,
|
|
521
462
|
"landscape-primary": 1,
|
|
522
463
|
"portrait-secondary": 2,
|
|
523
464
|
"landscape-secondary": 3
|
|
524
|
-
},
|
|
465
|
+
}, dt = (e) => {
|
|
525
466
|
const t = document.documentElement;
|
|
526
|
-
Object.assign(
|
|
467
|
+
Object.assign(le, Ie()), Object.entries(le).forEach(([n, r]) => {
|
|
527
468
|
const i = t?.style?.getPropertyValue(n);
|
|
528
469
|
(!i || i != r) && t?.style?.setProperty?.(n, r || "", "");
|
|
529
470
|
}), document.documentElement.style.setProperty("--orientation-secondary", screen?.orientation?.type?.endsWith?.("secondary") ? "1" : "0");
|
|
530
|
-
},
|
|
471
|
+
}, lt = () => {
|
|
531
472
|
let e = screen?.orientation?.type || "portrait-primary";
|
|
532
473
|
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
|
-
},
|
|
474
|
+
}, re = { passive: !0 }, ft = (e) => {
|
|
534
475
|
let t = !1;
|
|
535
476
|
const n = () => {
|
|
536
477
|
t || (requestAnimationFrame(() => {
|
|
537
|
-
|
|
478
|
+
dt(), e(), t = !1;
|
|
538
479
|
}), t = !0);
|
|
539
480
|
}, r = [];
|
|
540
|
-
return r.push(m(navigator?.virtualKeyboard, "geometrychange", n,
|
|
541
|
-
},
|
|
481
|
+
return r.push(m(navigator?.virtualKeyboard, "geometrychange", n, re)), r.push(m(window?.visualViewport, "scroll", n, re)), r.push(m(window?.visualViewport, "resize", n, re)), 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(), ct(() => n(), 100), () => r.forEach((i) => i());
|
|
482
|
+
}, $n = (e) => {
|
|
542
483
|
if (!e?.classList?.contains?.("native-portrait-optimized"))
|
|
543
|
-
return e?.classList?.add?.("native-portrait-optimized"),
|
|
544
|
-
const t =
|
|
484
|
+
return e?.classList?.add?.("native-portrait-optimized"), ft(() => {
|
|
485
|
+
const t = ut?.[lt()] ?? 0;
|
|
545
486
|
e.orient = t, e.setAttribute?.("orient", String(t)), e.style?.setProperty?.("--orient", String(t));
|
|
546
487
|
});
|
|
547
|
-
}, R = new OffscreenCanvas(1, 1).getContext("2d"),
|
|
488
|
+
}, R = new OffscreenCanvas(1, 1).getContext("2d"), $e = (e, t) => {
|
|
548
489
|
const n = getComputedStyle(e, "");
|
|
549
490
|
if (t && n) {
|
|
550
491
|
const r = n.getPropertyValue("font-weight") || "normal", i = n.getPropertyValue("font-size") || "16px", s = n.getPropertyValue("font-family") || "Times New Roman", a = n.getPropertyValue("font-stretch") || "normal";
|
|
@@ -569,22 +510,22 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
569
510
|
} catch {
|
|
570
511
|
}
|
|
571
512
|
}
|
|
572
|
-
},
|
|
513
|
+
}, pt = (e, t) => {
|
|
573
514
|
if (R) {
|
|
574
|
-
|
|
515
|
+
$e(t, R);
|
|
575
516
|
try {
|
|
576
517
|
return R.measureText(e);
|
|
577
518
|
} catch {
|
|
578
519
|
}
|
|
579
520
|
}
|
|
580
521
|
return { width: null };
|
|
581
|
-
},
|
|
522
|
+
}, Nn = (e) => {
|
|
582
523
|
const t = e.value.slice(0, e.selectionEnd || 0);
|
|
583
|
-
return
|
|
584
|
-
},
|
|
524
|
+
return pt(t, e);
|
|
525
|
+
}, ht = (e, t) => {
|
|
585
526
|
const n = e?.value || "";
|
|
586
527
|
if (R) {
|
|
587
|
-
|
|
528
|
+
$e(e, R);
|
|
588
529
|
let r = 0;
|
|
589
530
|
for (let i = 0; i < n.length; i++) {
|
|
590
531
|
if (r = R.measureText(n.slice(0, i))?.width, r == null) return n.length;
|
|
@@ -592,18 +533,18 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
592
533
|
}
|
|
593
534
|
}
|
|
594
535
|
return n.length;
|
|
595
|
-
},
|
|
596
|
-
const n = e.getBoundingClientRect(), r = [t[0] - n.left /
|
|
597
|
-
return
|
|
598
|
-
},
|
|
599
|
-
const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i =
|
|
536
|
+
}, Bn = (e, t) => {
|
|
537
|
+
const n = e.getBoundingClientRect(), r = [t[0] - n.left / de(), t[1] - n.top / de()];
|
|
538
|
+
return ht(e, r);
|
|
539
|
+
}, mt = (e, t) => {
|
|
540
|
+
const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i = Je(t ?? [4, 8]);
|
|
600
541
|
return [Number.isFinite(n) && n > 0 ? n : i[0], Number.isFinite(r) && r > 0 ? r : i[1]];
|
|
601
|
-
},
|
|
542
|
+
}, Hn = (e, t, n, r = "floor") => {
|
|
602
543
|
if (!e) return [0, 0];
|
|
603
544
|
const i = e.getBoundingClientRect?.();
|
|
604
545
|
if (!i) return [0, 0];
|
|
605
|
-
const s =
|
|
606
|
-
return
|
|
546
|
+
const s = mt(e, n?.layout), a = k(e), o = globalThis.getComputedStyle?.(e), c = parseFloat(o?.paddingLeft) || 0, u = parseFloat(o?.paddingTop) || 0, l = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, d = Math.max(1, (i.width || e.clientWidth || 1) - c - l), f = Math.max(1, (i.height || e.clientHeight || 1) - u - h), p = [(t?.[0] || 0) - i.left - c, (t?.[1] || 0) - i.top - u];
|
|
547
|
+
return Ke(p, [d, f], s, a, {
|
|
607
548
|
mode: r,
|
|
608
549
|
redirect: {
|
|
609
550
|
item: n?.item,
|
|
@@ -611,7 +552,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
611
552
|
items: n?.items
|
|
612
553
|
}
|
|
613
554
|
});
|
|
614
|
-
},
|
|
555
|
+
}, yt = async (e) => {
|
|
615
556
|
const t = () => {
|
|
616
557
|
e?.hasAttribute?.("data-hidden") || (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-appear", {
|
|
617
558
|
detail: {},
|
|
@@ -651,14 +592,14 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
651
592
|
pointerEvents: "revert-layer"
|
|
652
593
|
}
|
|
653
594
|
], {
|
|
654
|
-
duration:
|
|
595
|
+
duration: et() ? 100 : 80,
|
|
655
596
|
easing: "linear",
|
|
656
597
|
delay: 0
|
|
657
598
|
});
|
|
658
599
|
let r = !1;
|
|
659
600
|
const i = () => {
|
|
660
601
|
r || (r = !0, s?.forEach?.((a) => a?.()), n.currentTime = 1, n.finish(), t?.());
|
|
661
|
-
}, s =
|
|
602
|
+
}, s = J(e, {
|
|
662
603
|
"u2-before-hide": [i, {
|
|
663
604
|
once: !0,
|
|
664
605
|
passive: !0
|
|
@@ -673,8 +614,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
673
614
|
const { resolve: n, reject: r, promise: i } = Promise.withResolvers(), s = requestAnimationFrame(n);
|
|
674
615
|
let a = !1;
|
|
675
616
|
const o = () => {
|
|
676
|
-
a || (a = !0,
|
|
677
|
-
},
|
|
617
|
+
a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
|
|
618
|
+
}, c = J(e, {
|
|
678
619
|
"u2-before-hide": [o, {
|
|
679
620
|
once: !0,
|
|
680
621
|
passive: !0
|
|
@@ -686,7 +627,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
686
627
|
});
|
|
687
628
|
await i, o?.();
|
|
688
629
|
}
|
|
689
|
-
},
|
|
630
|
+
}, gt = async (e) => {
|
|
690
631
|
const t = () => {
|
|
691
632
|
e?.hasAttribute?.("data-hidden") && (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-hidden", {
|
|
692
633
|
detail: {},
|
|
@@ -729,7 +670,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
729
670
|
let r = !1;
|
|
730
671
|
const i = () => {
|
|
731
672
|
r || (r = !0, s?.forEach?.((a) => a?.()), n.currentTime = 1, n.finish(), t?.());
|
|
732
|
-
}, s =
|
|
673
|
+
}, s = J(e, { "u2-before-show": [i, {
|
|
733
674
|
once: !0,
|
|
734
675
|
passive: !0
|
|
735
676
|
}] });
|
|
@@ -738,8 +679,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
738
679
|
const { resolve: n, reject: r, promise: i } = Promise.withResolvers(), s = requestAnimationFrame(n);
|
|
739
680
|
let a = !1;
|
|
740
681
|
const o = () => {
|
|
741
|
-
a || (a = !0,
|
|
742
|
-
},
|
|
682
|
+
a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
|
|
683
|
+
}, c = J(e, {
|
|
743
684
|
"u2-before-hide": [o, {
|
|
744
685
|
once: !0,
|
|
745
686
|
passive: !0
|
|
@@ -751,8 +692,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
751
692
|
});
|
|
752
693
|
await i, o?.();
|
|
753
694
|
}
|
|
754
|
-
},
|
|
755
|
-
if (!L.has(e =
|
|
695
|
+
}, vt = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), z = globalThis[vt] ??= /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), L = globalThis[bt] ??= /* @__PURE__ */ new WeakMap(), H = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), qn = (e, t) => {
|
|
696
|
+
if (!L.has(e = H(e))) {
|
|
756
697
|
const n = [], r = new ResizeObserver((i) => {
|
|
757
698
|
for (const s of i) if (s.contentBoxSize) {
|
|
758
699
|
const a = s.contentBoxSize[0];
|
|
@@ -765,8 +706,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
765
706
|
}, r), L.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
|
|
766
707
|
}
|
|
767
708
|
return L.get(e)?.push?.(t), { disconnect: () => L.get(e)?.splice?.(L.get(e)?.indexOf(t) || -1, 1) };
|
|
768
|
-
},
|
|
769
|
-
if (!
|
|
709
|
+
}, _n = (e, t) => {
|
|
710
|
+
if (!z.has(e = H(e))) {
|
|
770
711
|
const n = [], r = new ResizeObserver((i) => {
|
|
771
712
|
for (const s of i) if (s.borderBoxSize) {
|
|
772
713
|
const a = s.borderBoxSize[0];
|
|
@@ -776,15 +717,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
776
717
|
t?.({
|
|
777
718
|
inlineSize: e.offsetWidth,
|
|
778
719
|
blockSize: e.offsetHeight
|
|
779
|
-
}, r),
|
|
720
|
+
}, r), z.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
|
|
780
721
|
}
|
|
781
|
-
return
|
|
782
|
-
},
|
|
783
|
-
if (typeof e?.selector == "string") return
|
|
722
|
+
return z.get(e)?.push?.(t), { disconnect: () => z.get(e)?.splice?.(z.get(e)?.indexOf(t) || -1, 1) };
|
|
723
|
+
}, Dn = (e, t, n) => {
|
|
724
|
+
if (typeof e?.selector == "string") return me(e, e?.selector, t, n);
|
|
784
725
|
const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, a) => {
|
|
785
726
|
for (const o of s) o.attributeName && r.has(o.attributeName) && n(o, a);
|
|
786
727
|
});
|
|
787
|
-
return (e?.element ?? e) instanceof Node && i.observe(e =
|
|
728
|
+
return (e?.element ?? e) instanceof Node && i.observe(e = H(e), {
|
|
788
729
|
attributes: !0,
|
|
789
730
|
attributeOldValue: !0,
|
|
790
731
|
attributeFilter: [...r]
|
|
@@ -794,23 +735,23 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
794
735
|
attributeName: s,
|
|
795
736
|
oldValue: e?.getAttribute?.(s)
|
|
796
737
|
}, i)), i;
|
|
797
|
-
},
|
|
738
|
+
}, me = (e, t, n, r) => {
|
|
798
739
|
const i = new Set([...n.split(",") || [n]].map((a) => a.trim())), s = new MutationObserver((a, o) => {
|
|
799
|
-
for (const
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
i.forEach((
|
|
740
|
+
for (const c of a) if (c.type == "childList") {
|
|
741
|
+
const u = Array.from(c.addedNodes) || [], l = Array.from(c.removedNodes) || [];
|
|
742
|
+
u.push(...Array.from(c.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), l.push(...Array.from(c.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(u)].filter((h) => h?.matches?.(t))?.map?.((h) => {
|
|
743
|
+
i.forEach((d) => {
|
|
803
744
|
r({
|
|
804
745
|
target: h,
|
|
805
746
|
type: "attributes",
|
|
806
|
-
attributeName:
|
|
807
|
-
oldValue: h?.getAttribute?.(
|
|
747
|
+
attributeName: d,
|
|
748
|
+
oldValue: h?.getAttribute?.(d)
|
|
808
749
|
}, o);
|
|
809
750
|
});
|
|
810
751
|
});
|
|
811
|
-
} else
|
|
752
|
+
} else c.target?.matches?.(t) && c.attributeName && i.has(c.attributeName) && r(c, o);
|
|
812
753
|
});
|
|
813
|
-
return s.observe(e =
|
|
754
|
+
return s.observe(e = H(e), {
|
|
814
755
|
attributeOldValue: !0,
|
|
815
756
|
attributes: !0,
|
|
816
757
|
attributeFilter: [...i],
|
|
@@ -823,69 +764,71 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
823
764
|
attributeName: o,
|
|
824
765
|
oldValue: a?.getAttribute?.(o)
|
|
825
766
|
}, s))), s;
|
|
826
|
-
},
|
|
767
|
+
}, St = (e, t = "*", n = (r, i) => {
|
|
827
768
|
}) => {
|
|
828
|
-
const r = (
|
|
829
|
-
const
|
|
830
|
-
return
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
769
|
+
const r = (d) => {
|
|
770
|
+
const f = Array.from(d || []) || [];
|
|
771
|
+
return f.push(...Array.from(d || []).flatMap((p) => Array.from(p?.querySelectorAll?.(t) || []))), [...Array.from(new Set(f).values())].filter((p) => p?.matches?.(t));
|
|
772
|
+
};
|
|
773
|
+
let i = null;
|
|
774
|
+
const s = (d) => {
|
|
775
|
+
const f = i?.deref?.(), p = r(d.addedNodes), y = r(d.removedNodes);
|
|
776
|
+
(p.length > 0 || y.length > 0) && n?.({
|
|
777
|
+
type: d.type,
|
|
778
|
+
target: d.target,
|
|
779
|
+
attributeName: d.attributeName,
|
|
780
|
+
attributeNamespace: d.attributeNamespace,
|
|
781
|
+
nextSibling: d.nextSibling,
|
|
782
|
+
oldValue: d.oldValue,
|
|
783
|
+
previousSibling: d.previousSibling,
|
|
784
|
+
addedNodes: p,
|
|
842
785
|
removedNodes: y
|
|
843
|
-
},
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
addedNodes: [
|
|
847
|
-
removedNodes: [
|
|
786
|
+
}, f);
|
|
787
|
+
}, a = (d) => {
|
|
788
|
+
s({
|
|
789
|
+
addedNodes: [d?.target].filter((f) => !!f),
|
|
790
|
+
removedNodes: [d?.relatedTarget].filter((f) => !!f),
|
|
848
791
|
type: "childList",
|
|
849
|
-
target:
|
|
792
|
+
target: d?.currentTarget
|
|
850
793
|
});
|
|
851
|
-
},
|
|
852
|
-
|
|
853
|
-
addedNodes: [
|
|
854
|
-
removedNodes: [
|
|
794
|
+
}, o = (d) => {
|
|
795
|
+
s({
|
|
796
|
+
addedNodes: [d?.relatedTarget].filter((f) => !!f),
|
|
797
|
+
removedNodes: [d?.target].filter((f) => !!f),
|
|
855
798
|
type: "childList",
|
|
856
|
-
target:
|
|
799
|
+
target: d?.currentTarget
|
|
857
800
|
});
|
|
858
|
-
},
|
|
859
|
-
|
|
860
|
-
addedNodes: [
|
|
861
|
-
removedNodes: [
|
|
801
|
+
}, c = (d) => {
|
|
802
|
+
s({
|
|
803
|
+
addedNodes: [d?.target].filter((f) => !!f),
|
|
804
|
+
removedNodes: [d?.relatedTarget || document?.activeElement].filter((f) => !!f),
|
|
862
805
|
type: "childList",
|
|
863
|
-
target:
|
|
806
|
+
target: d?.currentTarget
|
|
864
807
|
});
|
|
865
808
|
}, u = {
|
|
866
809
|
passive: !0,
|
|
867
810
|
capture: !1
|
|
868
811
|
};
|
|
869
812
|
if (t?.includes?.(":hover") && t?.includes?.(":active"))
|
|
870
|
-
return e.addEventListener("pointerover",
|
|
871
|
-
e.removeEventListener("pointerover",
|
|
813
|
+
return e.addEventListener("pointerover", a, u), e.addEventListener("pointerout", o, u), e.addEventListener("pointerdown", a, u), e.addEventListener("pointerup", o, u), e.addEventListener("pointercancel", o, u), { disconnect: () => {
|
|
814
|
+
e.removeEventListener("pointerover", a, u), e.removeEventListener("pointerout", o, u), e.removeEventListener("pointerdown", a, u), e.removeEventListener("pointerup", o, u), e.removeEventListener("pointercancel", o, u);
|
|
872
815
|
} };
|
|
873
816
|
if (t?.includes?.(":hover"))
|
|
874
|
-
return e.addEventListener("pointerover",
|
|
875
|
-
e.removeEventListener("pointerover",
|
|
817
|
+
return e.addEventListener("pointerover", a, u), e.addEventListener("pointerout", o, u), { disconnect: () => {
|
|
818
|
+
e.removeEventListener("pointerover", a, u), e.removeEventListener("pointerout", o, u);
|
|
876
819
|
} };
|
|
877
820
|
if (t?.includes?.(":active"))
|
|
878
|
-
return e.addEventListener("pointerdown",
|
|
879
|
-
e.removeEventListener("pointerdown",
|
|
821
|
+
return e.addEventListener("pointerdown", a, u), e.addEventListener("pointerup", o, u), e.addEventListener("pointercancel", o, u), { disconnect: () => {
|
|
822
|
+
e.removeEventListener("pointerdown", a, u), e.removeEventListener("pointerup", o, u), e.removeEventListener("pointercancel", o, u);
|
|
880
823
|
} };
|
|
881
824
|
if (t?.includes?.(":focus") && t?.includes?.(":focus-within") && t?.includes?.(":focus-visible"))
|
|
882
|
-
return e.addEventListener("focusin",
|
|
883
|
-
e.removeEventListener("focusin",
|
|
825
|
+
return e.addEventListener("focusin", a, u), e.addEventListener("focusout", o, u), e.addEventListener("click", c, u), { disconnect: () => {
|
|
826
|
+
e.removeEventListener("focusin", a, u), e.removeEventListener("focusout", o, u), e.removeEventListener("click", c, u);
|
|
884
827
|
} };
|
|
885
|
-
const
|
|
886
|
-
for (const
|
|
887
|
-
})
|
|
888
|
-
(e?.element ?? e) instanceof Node &&
|
|
828
|
+
const l = new MutationObserver((d, f) => {
|
|
829
|
+
for (const p of d) p.type == "childList" && s(p);
|
|
830
|
+
});
|
|
831
|
+
i = new WeakRef(l), (e?.element ?? e) instanceof Node && l.observe(e = H(e), {
|
|
889
832
|
childList: !0,
|
|
890
833
|
subtree: !0
|
|
891
834
|
});
|
|
@@ -893,15 +836,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
893
836
|
return h.length > 0 && n?.({
|
|
894
837
|
addedNodes: h,
|
|
895
838
|
removedNodes: []
|
|
896
|
-
},
|
|
897
|
-
},
|
|
898
|
-
|
|
839
|
+
}, l), l;
|
|
840
|
+
}, Zn = async (e = document.body) => {
|
|
841
|
+
me(e, "*", "data-hidden", (t, n) => {
|
|
899
842
|
if (t.attributeName == "data-hidden") {
|
|
900
843
|
const r = t.target;
|
|
901
|
-
r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ?
|
|
844
|
+
r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? gt : yt, r, n)?.catch?.(console.warn.bind(console));
|
|
902
845
|
}
|
|
903
846
|
});
|
|
904
|
-
},
|
|
847
|
+
}, Un = (e = 100, t = 0.05, n = 8) => {
|
|
905
848
|
const r = [];
|
|
906
849
|
for (let o = 0; o < e; o++) r.push(o / e);
|
|
907
850
|
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,40 +853,40 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
910
853
|
"--clip-freq": n,
|
|
911
854
|
"--clip-path": `polygon(${r.map((o) => a(o).join(" ")).join(", ")})`
|
|
912
855
|
};
|
|
913
|
-
},
|
|
914
|
-
|
|
915
|
-
var
|
|
856
|
+
}, Ne = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", Ce = (e) => typeof e == "string" && /@import\b/i.test(e), ye = "DOM", F = typeof document < "u" ? document.createElement("style") : null;
|
|
857
|
+
F && (typeof document < "u" && document.querySelector("head")?.appendChild?.(F), F.dataset.owner = ye);
|
|
858
|
+
var Re = (e, t, n = "") => {
|
|
916
859
|
e[0][e[1]] = e[1] == "innerHTML" ? `@import url("${t}") ${n && typeof n == "string" ? `layer(${n})` : ""};` : t;
|
|
917
|
-
},
|
|
918
|
-
t ||=
|
|
860
|
+
}, Xn = (e) => e?.map?.((t) => Lt(...t)), wt = (e, t) => {
|
|
861
|
+
t ||= F?.sheet;
|
|
919
862
|
let n = Array.from(t?.cssRules || []).findIndex((i) => i instanceof CSSLayerBlockRule && i?.name === e), r;
|
|
920
863
|
return n === -1 && t ? r = t?.cssRules?.[n = t.insertRule(`@layer ${e} {}`)] : r = t?.cssRules?.[n], r;
|
|
921
|
-
},
|
|
864
|
+
}, xt = 0, ie = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot, Pe = (e) => typeof Document < "u" && e instanceof Document, Et = (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(""), At = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `ux-${Date.now().toString(36)}-${(++xt).toString(36)}`, Mt = (e, t) => (t = t.trim(), e ? t ? t.startsWith("::") ? `${e}${t}` : `${e} ${t}` : e : t), Ct = (e, t, n, r) => {
|
|
922
865
|
const i = Array.from(e?.cssRules || []), s = t.trim(), a = r.trim();
|
|
923
866
|
return i.findIndex((o) => {
|
|
924
867
|
if (!(o instanceof CSSStyleRule)) return !1;
|
|
925
|
-
const
|
|
926
|
-
return
|
|
868
|
+
const c = o.selectorText?.trim?.() ?? "";
|
|
869
|
+
return c === s ? !0 : a && c.endsWith(a) ? c.slice(0, c.length - a.length).trim() === n : !1;
|
|
927
870
|
});
|
|
928
|
-
},
|
|
929
|
-
const i =
|
|
871
|
+
}, ge = (e, t, n = "ux-query", r = null) => {
|
|
872
|
+
const i = ie(r) || Pe(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = Et(r) ? r : null;
|
|
930
873
|
let a = "";
|
|
931
874
|
if (s?.id) a = `#${ke(s.id)}`;
|
|
932
875
|
else if (s) {
|
|
933
|
-
let
|
|
934
|
-
|
|
935
|
-
} else
|
|
876
|
+
let l = s.getAttribute("data-style-id");
|
|
877
|
+
l || (l = At(), s.setAttribute("data-style-id", l)), a = `[data-style-id="${ke(l)}"]`;
|
|
878
|
+
} else ie(i) ? a = ":host" : Pe(i) && (a = ":root");
|
|
936
879
|
let o = null;
|
|
937
|
-
if (
|
|
938
|
-
if (n) return
|
|
939
|
-
const
|
|
940
|
-
let
|
|
941
|
-
return
|
|
880
|
+
if (ie(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 = Rt(), t ||= o?.sheet, !t) return;
|
|
881
|
+
if (n) return ge(e, wt(n, t), null, r);
|
|
882
|
+
const c = Mt(a, e);
|
|
883
|
+
let u = Ct(t, c, a, e);
|
|
884
|
+
return u === -1 && (u = t.insertRule(`${c} {}`)), t.cssRules?.[u];
|
|
942
885
|
};
|
|
943
|
-
function
|
|
944
|
-
return
|
|
886
|
+
function Rt() {
|
|
887
|
+
return F ?? null;
|
|
945
888
|
}
|
|
946
|
-
var
|
|
889
|
+
var te = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => te && e instanceof CSSStyleValue, M = (e) => te && e instanceof CSSUnitValue, b = (e, t, n, r = "") => {
|
|
947
890
|
if (!(!e || !t)) {
|
|
948
891
|
if (n == null) {
|
|
949
892
|
e.getPropertyValue(t) !== "" && e.removeProperty(t);
|
|
@@ -951,47 +894,48 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
951
894
|
}
|
|
952
895
|
e.getPropertyValue(t) !== n && e.setProperty(t, n, r);
|
|
953
896
|
}
|
|
954
|
-
},
|
|
897
|
+
}, Pt = (e, t, n, r = "") => {
|
|
955
898
|
if (!e || !t) return e;
|
|
956
|
-
const i =
|
|
957
|
-
if (!
|
|
958
|
-
let o =
|
|
899
|
+
const i = ee(t), s = e.style, a = e.attributeStyleMap ?? e.styleMap;
|
|
900
|
+
if (!te || !a) return Be(e, t, n, r);
|
|
901
|
+
let o = E(n) && !(P(n) || M(n)) ? n?.value : n;
|
|
959
902
|
if (o == null)
|
|
960
903
|
return a.delete?.(i), s && b(s, i, null, r), e;
|
|
961
904
|
if (P(o)) {
|
|
962
|
-
const
|
|
963
|
-
if (
|
|
964
|
-
if (
|
|
965
|
-
} else if (
|
|
905
|
+
const c = a.get(i);
|
|
906
|
+
if (M(o) && M(c)) {
|
|
907
|
+
if (c.value === o.value && c.unit === o.unit) return e;
|
|
908
|
+
} else if (c === o) return e;
|
|
966
909
|
return a.set(i, o), e;
|
|
967
910
|
}
|
|
968
|
-
if (typeof o == "number")
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
911
|
+
if (typeof o == "number")
|
|
912
|
+
if (CSS?.number && !i.startsWith("--")) {
|
|
913
|
+
const c = CSS.number(o), u = a.get(i);
|
|
914
|
+
return M(u) && u.value === c.value && u.unit === c.unit || a.set(i, c), e;
|
|
915
|
+
} else
|
|
916
|
+
return b(s, i, String(o), r), e;
|
|
973
917
|
if (typeof o == "string" && !P(o)) {
|
|
974
|
-
const
|
|
975
|
-
if (typeof
|
|
976
|
-
const
|
|
977
|
-
return
|
|
918
|
+
const c = We(o);
|
|
919
|
+
if (typeof c == "number" && CSS?.number && !i.startsWith("--")) {
|
|
920
|
+
const u = CSS.number(c), l = a.get(i);
|
|
921
|
+
return M(l) && l.value === u.value && l.unit === u.unit || a.set(i, u), e;
|
|
978
922
|
} else
|
|
979
923
|
return b(s, i, o, r), e;
|
|
980
924
|
}
|
|
981
925
|
return b(s, i, String(o), r), e;
|
|
982
|
-
},
|
|
926
|
+
}, Be = (e, t, n, r = "") => {
|
|
983
927
|
if (!e || !t) return e;
|
|
984
|
-
const i =
|
|
928
|
+
const i = ee(t), s = e.style;
|
|
985
929
|
if (!s) return e;
|
|
986
|
-
let a =
|
|
987
|
-
return typeof a == "string" && !P(a) && (a =
|
|
988
|
-
},
|
|
930
|
+
let a = E(n) && !(P(n) || M(n)) ? n?.value : n;
|
|
931
|
+
return typeof a == "string" && !P(a) && (a = We(a) ?? a), a == null ? (b(s, i, null, r), e) : (P(a) || typeof a == "number", b(s, i, String(a), r), e);
|
|
932
|
+
}, He = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), T = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new Map(), kt = (e) => {
|
|
989
933
|
if (!e) return null;
|
|
990
934
|
if (x.has(e)) return x.get(e);
|
|
991
935
|
if (e instanceof Blob || e instanceof File) {
|
|
992
|
-
if (
|
|
936
|
+
if (T.has(e)) return T.get(e);
|
|
993
937
|
const t = URL.createObjectURL(e);
|
|
994
|
-
return
|
|
938
|
+
return T.set(e, t), x.set(t, t), t;
|
|
995
939
|
}
|
|
996
940
|
if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
|
|
997
941
|
const t = fetch(e?.replace?.("?url", "?raw"), {
|
|
@@ -1000,22 +944,22 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1000
944
|
priority: "high"
|
|
1001
945
|
})?.then?.(async (n) => {
|
|
1002
946
|
const r = await n.blob(), i = URL.createObjectURL(r);
|
|
1003
|
-
return
|
|
947
|
+
return T.set(r, i), x.set(e, i), x.set(i, i), i;
|
|
1004
948
|
});
|
|
1005
949
|
return x.set(e, t), t;
|
|
1006
950
|
}
|
|
1007
951
|
if (typeof e == "string") {
|
|
1008
952
|
const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
|
|
1009
|
-
return
|
|
953
|
+
return T.set(t, n), x.set(n, n), n;
|
|
1010
954
|
}
|
|
1011
955
|
return e;
|
|
1012
|
-
}, V = /* @__PURE__ */ new Map(),
|
|
956
|
+
}, V = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new WeakMap(), zt = (e) => {
|
|
1013
957
|
if (!e) return "";
|
|
1014
958
|
if (V.has(e)) return V.get(e) ?? "";
|
|
1015
959
|
if (e instanceof Blob || e instanceof File) {
|
|
1016
|
-
if (
|
|
1017
|
-
const t = e?.text?.()?.then?.((n) => (
|
|
1018
|
-
return
|
|
960
|
+
if (_.has(e)) return _.get(e) ?? "";
|
|
961
|
+
const t = e?.text?.()?.then?.((n) => (_.set(e, n), n));
|
|
962
|
+
return _.set(e, t), t;
|
|
1019
963
|
}
|
|
1020
964
|
if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
|
|
1021
965
|
const t = fetch(e?.replace?.("?url", "?raw"), {
|
|
@@ -1029,82 +973,83 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1029
973
|
return V.set(e, t), t;
|
|
1030
974
|
}
|
|
1031
975
|
return typeof e == "string" && V.set(e, e), e;
|
|
1032
|
-
},
|
|
1033
|
-
if (!e || !
|
|
976
|
+
}, ze = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), Yn = (e, t = "ux-query", n = null) => {
|
|
977
|
+
if (!e || !Ne()) return null;
|
|
1034
978
|
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
979
|
if (!s) return null;
|
|
1036
980
|
const a = `${t || ""}:${e}`;
|
|
1037
981
|
let o;
|
|
1038
982
|
if (i) {
|
|
1039
|
-
let
|
|
1040
|
-
|
|
983
|
+
let l = Le.get(r);
|
|
984
|
+
l || (l = /* @__PURE__ */ new Map(), Le.set(r, l)), o = l.get(a), o || (o = new CSSStyleSheet(), l.set(a, o), s.includes(o) || s.push(o));
|
|
1041
985
|
} else
|
|
1042
|
-
o =
|
|
986
|
+
o = ze.get(a), o || (o = new CSSStyleSheet(), ze.set(a, o), s.includes(o) || s.push(o));
|
|
1043
987
|
if (t) {
|
|
1044
|
-
let
|
|
988
|
+
let l;
|
|
1045
989
|
if (i) {
|
|
1046
990
|
let h = D.get(r);
|
|
1047
|
-
h || (h = /* @__PURE__ */ new Map(), D.set(r, h)),
|
|
1048
|
-
} else
|
|
1049
|
-
if (!
|
|
1050
|
-
const h = Array.from(o.cssRules || []),
|
|
1051
|
-
if (
|
|
991
|
+
h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), l = h.get(t);
|
|
992
|
+
} else l = Te.get(t);
|
|
993
|
+
if (!l) {
|
|
994
|
+
const h = Array.from(o.cssRules || []), d = h.findIndex((f) => f instanceof CSSLayerBlockRule && f.name === t);
|
|
995
|
+
if (d === -1) try {
|
|
1052
996
|
o.insertRule(`@layer ${t} {}`, o.cssRules.length);
|
|
1053
|
-
const
|
|
1054
|
-
|
|
997
|
+
const f = o.cssRules[o.cssRules.length - 1];
|
|
998
|
+
f instanceof CSSLayerBlockRule && (l = f);
|
|
1055
999
|
} catch {
|
|
1056
|
-
|
|
1000
|
+
l = void 0;
|
|
1057
1001
|
}
|
|
1058
|
-
else
|
|
1059
|
-
if (
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1002
|
+
else l = h[d];
|
|
1003
|
+
if (l)
|
|
1004
|
+
if (i) {
|
|
1005
|
+
let f = D.get(r);
|
|
1006
|
+
f || (f = /* @__PURE__ */ new Map(), D.set(r, f)), f.set(t, l);
|
|
1007
|
+
} else Te.set(t, l);
|
|
1063
1008
|
}
|
|
1064
|
-
if (
|
|
1065
|
-
let h = Array.from(
|
|
1009
|
+
if (l) {
|
|
1010
|
+
let h = Array.from(l.cssRules || []).findIndex((d) => d instanceof CSSStyleRule && d.selectorText?.trim?.() === e?.trim?.());
|
|
1066
1011
|
if (h === -1) try {
|
|
1067
|
-
h =
|
|
1012
|
+
h = l.insertRule(`${e} {}`, l.cssRules.length);
|
|
1068
1013
|
} catch {
|
|
1069
1014
|
return null;
|
|
1070
1015
|
}
|
|
1071
|
-
return
|
|
1016
|
+
return l.cssRules[h];
|
|
1072
1017
|
}
|
|
1073
1018
|
}
|
|
1074
|
-
let
|
|
1075
|
-
if (
|
|
1076
|
-
|
|
1019
|
+
let c = Array.from(o.cssRules || []).findIndex((l) => l instanceof CSSStyleRule && l.selectorText?.trim?.() === e?.trim?.());
|
|
1020
|
+
if (c === -1) try {
|
|
1021
|
+
c = o.insertRule(`${e} {}`, o.cssRules.length);
|
|
1077
1022
|
} catch {
|
|
1078
1023
|
return null;
|
|
1079
1024
|
}
|
|
1080
|
-
const
|
|
1081
|
-
return
|
|
1082
|
-
}, S = (e, t, n, r = "") =>
|
|
1083
|
-
const n =
|
|
1025
|
+
const u = o.cssRules[c];
|
|
1026
|
+
return u instanceof CSSStyleRule ? u : null;
|
|
1027
|
+
}, S = (e, t, n, r = "") => te ? Pt(e, t, n, r) : Be(e, t, n, r), Gn = (e, t, n) => S(ge(e), t, n), Lt = (e, t) => {
|
|
1028
|
+
const n = ge(e);
|
|
1084
1029
|
return Object.entries(t).forEach(([r, i]) => S(n, r, i)), n;
|
|
1085
|
-
},
|
|
1030
|
+
}, Jn = async (e) => {
|
|
1086
1031
|
const t = await crypto?.subtle?.digest("SHA-256", typeof e == "string" ? new TextEncoder().encode(e) : e instanceof ArrayBuffer ? e : await e?.arrayBuffer?.());
|
|
1087
1032
|
return "sha256-" + btoa(String.fromCharCode.apply(null, new Uint8Array(t)));
|
|
1088
|
-
},
|
|
1089
|
-
const i =
|
|
1090
|
-
return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" &&
|
|
1091
|
-
t?.[0] && a && (
|
|
1033
|
+
}, qe = (e, t, n = "", r) => {
|
|
1034
|
+
const i = kt(e), s = typeof e == "string" && URL.canParse(e) ? e : i;
|
|
1035
|
+
return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" && Re(t, s, n), t?.[0] && (!URL.canParse(e) || r) && t?.[0] instanceof HTMLLinkElement, He(i, (a) => {
|
|
1036
|
+
t?.[0] && a && (Re(t, a, n), t?.[0].setAttribute("loaded", ""));
|
|
1092
1037
|
})?.catch?.((a) => {
|
|
1093
1038
|
console.warn("Failed to load style sheet:", a);
|
|
1094
1039
|
});
|
|
1095
|
-
},
|
|
1040
|
+
}, Tt = (e) => {
|
|
1096
1041
|
const t = typeof document < "u" ? document.createElement("link") : null;
|
|
1097
1042
|
return t && (t.fetchPriority = "high"), t ? (Object.assign(t, {
|
|
1098
1043
|
rel: "stylesheet",
|
|
1099
1044
|
type: "text/css",
|
|
1100
1045
|
crossOrigin: "same-origin"
|
|
1101
|
-
}), t.dataset.owner =
|
|
1046
|
+
}), t.dataset.owner = ye, qe(e, [t, "href"]), typeof document < "u" && document.head.append(t), t) : null;
|
|
1102
1047
|
}, j = (e, t = typeof document < "u" ? document?.head : null, n = "") => {
|
|
1103
1048
|
const r = t?.querySelector?.("head") ?? t;
|
|
1104
|
-
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return
|
|
1049
|
+
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return Tt(e);
|
|
1105
1050
|
const i = typeof document < "u" ? document.createElement("style") : null;
|
|
1106
|
-
return i ? (i.dataset.owner =
|
|
1107
|
-
},
|
|
1051
|
+
return i ? (i.dataset.owner = ye, qe(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
|
|
1052
|
+
}, Kn = (e, t, n, r = "") => S(e, t, n, r), Qn = (e) => Vt(e, ""), v = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new WeakMap(), Ve = (e, t) => {
|
|
1108
1053
|
if (!e || !t) return !1;
|
|
1109
1054
|
try {
|
|
1110
1055
|
return e.replaceSync(t), !0;
|
|
@@ -1112,10 +1057,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1112
1057
|
const r = String(n?.message || "").toLowerCase();
|
|
1113
1058
|
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
1059
|
}
|
|
1115
|
-
},
|
|
1116
|
-
if (!
|
|
1060
|
+
}, Vt = (e, t = null) => {
|
|
1061
|
+
if (!Ne())
|
|
1117
1062
|
return typeof e == "string" && j(e, void 0, t || ""), null;
|
|
1118
|
-
if (typeof e == "string" &&
|
|
1063
|
+
if (typeof e == "string" && Ce(e))
|
|
1119
1064
|
return j(e, void 0, t || ""), null;
|
|
1120
1065
|
if (typeof e == "string" && v?.has?.(e)) {
|
|
1121
1066
|
const r = v.get(e);
|
|
@@ -1129,26 +1074,26 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1129
1074
|
const n = typeof e == "string" ? v.getOrInsertComputed(e, (r) => new CSSStyleSheet()) : O.getOrInsertComputed(e, (r) => new CSSStyleSheet());
|
|
1130
1075
|
if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
|
|
1131
1076
|
const r = t ? `@layer ${t} { ${e} }` : e;
|
|
1132
|
-
return v.set(e, n),
|
|
1133
|
-
} else
|
|
1077
|
+
return v.set(e, n), Ve(n, r) || (oe(n), v.delete(e), j(e)), n;
|
|
1078
|
+
} else He(zt(e), (r) => {
|
|
1134
1079
|
if (v.set(r, n), r) {
|
|
1135
|
-
if (
|
|
1136
|
-
return
|
|
1080
|
+
if (Ce(r))
|
|
1081
|
+
return oe(n), v.delete(r), O.delete(e), j(r, void 0, t || ""), n;
|
|
1137
1082
|
const i = t ? `@layer ${t} { ${r} }` : r;
|
|
1138
|
-
return
|
|
1083
|
+
return Ve(n, i) || (oe(n), v.delete(r), O.delete(e), j(r, void 0, t || "")), n;
|
|
1139
1084
|
}
|
|
1140
1085
|
});
|
|
1141
1086
|
return n;
|
|
1142
|
-
},
|
|
1087
|
+
}, oe = (e) => {
|
|
1143
1088
|
if (!e) return !1;
|
|
1144
1089
|
const t = typeof e == "string" ? v.get(e) : e;
|
|
1145
1090
|
if (!t || typeof document > "u") return !1;
|
|
1146
1091
|
const n = document.adoptedStyleSheets, r = n.indexOf(t);
|
|
1147
1092
|
return r !== -1 ? (n.splice(r, 1), !0) : !1;
|
|
1148
|
-
},
|
|
1093
|
+
}, jt = (e, t) => {
|
|
1149
1094
|
const n = e.split(" ");
|
|
1150
|
-
return new DOMPoint(
|
|
1151
|
-
},
|
|
1095
|
+
return new DOMPoint(je(n[0], () => t.clientWidth), je(n[1], () => t.clientHeight));
|
|
1096
|
+
}, je = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), er = (e) => {
|
|
1152
1097
|
if (e?.computedStyleMap) {
|
|
1153
1098
|
const t = e.computedStyleMap().get("transform")?.toMatrix?.();
|
|
1154
1099
|
if (t) return t;
|
|
@@ -1157,10 +1102,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1157
1102
|
return new DOMMatrix(t?.getPropertyValue?.("transform"));
|
|
1158
1103
|
}
|
|
1159
1104
|
return new DOMMatrix();
|
|
1160
|
-
},
|
|
1105
|
+
}, tr = (e) => {
|
|
1161
1106
|
const t = getComputedStyle(e)?.getPropertyValue?.("transform-origin") || "50% 50%";
|
|
1162
|
-
return
|
|
1163
|
-
},
|
|
1107
|
+
return jt(t, e);
|
|
1108
|
+
}, W = (e, t) => {
|
|
1164
1109
|
if ("computedStyleMap" in e) {
|
|
1165
1110
|
const n = e?.computedStyleMap?.()?.get(t);
|
|
1166
1111
|
return n instanceof CSSUnitValue ? n?.value || 0 : n?.toString?.();
|
|
@@ -1170,7 +1115,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1170
1115
|
return parseFloat(n?.getPropertyValue?.(t)?.replace?.("px", "")) || 0;
|
|
1171
1116
|
}
|
|
1172
1117
|
return parseFloat((e?.style ?? e).getPropertyValue?.(t)?.replace?.("px", "")) || 0;
|
|
1173
|
-
},
|
|
1118
|
+
}, nr = (e) => {
|
|
1174
1119
|
let t = 1, n = e;
|
|
1175
1120
|
for (; n; ) {
|
|
1176
1121
|
if ("currentCSSZoom" in n) {
|
|
@@ -1183,70 +1128,71 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1183
1128
|
n = n?.offsetParent ?? n?.parentElement;
|
|
1184
1129
|
}
|
|
1185
1130
|
return t;
|
|
1186
|
-
},
|
|
1131
|
+
}, rr = (e, t) => W?.(e, t), ir = (e, t) => t == "inline" ? W(e, "padding-inline-start") + W(e, "padding-inline-end") : W(e, "padding-block-start") + W(e, "padding-block-end"), _e = /* @__PURE__ */ new WeakMap(), Ot = (e, t, n) => (new WeakRef(e), t.has(n) || t.add(n), e), or = (e, t) => {
|
|
1187
1132
|
if (e) {
|
|
1188
1133
|
if (t) {
|
|
1189
|
-
const n =
|
|
1190
|
-
[...t?.values?.() || []].map((r) =>
|
|
1134
|
+
const n = _e.getOrInsert(e, /* @__PURE__ */ new Set());
|
|
1135
|
+
[...t?.values?.() || []].map((r) => Ot(e, n, r));
|
|
1191
1136
|
}
|
|
1192
1137
|
return e;
|
|
1193
1138
|
}
|
|
1194
|
-
},
|
|
1139
|
+
}, Wt = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), $ = globalThis[Wt] ??= /* @__PURE__ */ new Map(), Ft = (e, t) => {
|
|
1195
1140
|
const n = [...e.entries() || []];
|
|
1196
1141
|
return new Map(n?.map?.(([r, i]) => [r, i?.get?.(t)])?.filter?.(([r, i]) => !!i) || []);
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1142
|
+
}, It = (e) => (typeof e == "object" || typeof e == "function") && e != null, $t = (e, t, n) => {
|
|
1143
|
+
if (!It(e) && e != null) return e;
|
|
1144
|
+
let r = $.get(t);
|
|
1145
|
+
return r || (r = /* @__PURE__ */ new WeakMap(), $.set(t, r)), !r.has(e) && e != null && r.set(e, n), e;
|
|
1146
|
+
}, ar = (e, t) => {
|
|
1201
1147
|
if (!(!e || !t)) {
|
|
1202
|
-
for (const [n, r] of t.entries())
|
|
1148
|
+
for (const [n, r] of t.entries()) $t(e, n, r);
|
|
1203
1149
|
return e;
|
|
1204
1150
|
}
|
|
1205
|
-
},
|
|
1151
|
+
}, sr = (e, t) => {
|
|
1206
1152
|
if (e) {
|
|
1207
1153
|
if (t) {
|
|
1208
1154
|
const n = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1209
|
-
w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) =>
|
|
1155
|
+
w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) => Nt(e, r, n));
|
|
1210
1156
|
}
|
|
1211
1157
|
return e;
|
|
1212
1158
|
}
|
|
1213
|
-
},
|
|
1214
|
-
storeSet:
|
|
1159
|
+
}, I = (e) => ({
|
|
1160
|
+
storeSet: Ft($, e),
|
|
1215
1161
|
mixinSet: w?.get?.(e),
|
|
1216
|
-
behaviorSet:
|
|
1217
|
-
}),
|
|
1162
|
+
behaviorSet: _e?.get?.(e)
|
|
1163
|
+
}), Nt = (e, t, n) => {
|
|
1218
1164
|
const r = new WeakRef(e);
|
|
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,
|
|
1220
|
-
},
|
|
1221
|
-
typeof t == "string" && (t =
|
|
1222
|
-
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) =>
|
|
1165
|
+
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, I(e))), e;
|
|
1166
|
+
}, Bt = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), w = globalThis[Bt] ??= /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), C = globalThis[Ht] ??= /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), N = globalThis[qt] ??= /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), K = globalThis[_t] ??= /* @__PURE__ */ new WeakMap(), De = (e, t) => {
|
|
1167
|
+
typeof t == "string" && (t = N?.get?.(t));
|
|
1168
|
+
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) => N?.get?.(a)).filter((a) => !!a)), i = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1223
1169
|
C?.has?.(t) || C?.set?.(t, /* @__PURE__ */ new WeakSet()), w?.has?.(e) || w?.set?.(e, i);
|
|
1224
1170
|
const s = new WeakRef(e);
|
|
1225
|
-
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t,
|
|
1226
|
-
},
|
|
1171
|
+
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, I(e)), (r.has(t) || !C?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, I(e)), n.add(K?.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, I(e))));
|
|
1172
|
+
}, fe = /* @__PURE__ */ new Set(), Dt = (e = typeof document < "u" ? document : null) => {
|
|
1227
1173
|
if (e)
|
|
1228
|
-
return
|
|
1229
|
-
for (const n of t.addedNodes) n instanceof HTMLElement &&
|
|
1174
|
+
return fe?.has?.(e) || (fe?.add?.(e), me(e, "*", "data-mixin", (t) => pe(t.target)), St(e, "[data-mixin]", (t) => {
|
|
1175
|
+
for (const n of t.addedNodes) n instanceof HTMLElement && pe(n);
|
|
1230
1176
|
})), e;
|
|
1231
|
-
},
|
|
1177
|
+
}, pe = (e) => {
|
|
1232
1178
|
const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
|
|
1233
|
-
[...new Set([...t].map((n) =>
|
|
1234
|
-
},
|
|
1235
|
-
e.forEach((n) => t ?
|
|
1236
|
-
},
|
|
1237
|
-
for (const t of
|
|
1238
|
-
},
|
|
1239
|
-
|
|
1240
|
-
}),
|
|
1241
|
-
if (!
|
|
1179
|
+
[...new Set([...t].map((n) => N?.get?.(n)).filter((n) => !!n))].map?.((n) => De(e, n));
|
|
1180
|
+
}, Zt = (e, t) => {
|
|
1181
|
+
e.forEach((n) => t ? De(n, t) : pe(n));
|
|
1182
|
+
}, Ut = (e) => {
|
|
1183
|
+
for (const t of fe) Zt(t?.querySelectorAll?.("[data-mixin]"), e);
|
|
1184
|
+
}, Xt = new FinalizationRegistry((e) => {
|
|
1185
|
+
N?.delete?.(e);
|
|
1186
|
+
}), Yt = (e, t) => {
|
|
1187
|
+
if (!K?.has?.(t)) {
|
|
1242
1188
|
const n = e?.trim?.();
|
|
1243
|
-
n && (
|
|
1189
|
+
n && (K?.set?.(t, n), N?.set?.(n, t), Xt?.register?.(t, n), Ut(t));
|
|
1244
1190
|
}
|
|
1245
1191
|
};
|
|
1246
|
-
|
|
1247
|
-
var
|
|
1192
|
+
Dt(typeof document < "u" ? document : null);
|
|
1193
|
+
var ve = class {
|
|
1248
1194
|
constructor(e = null) {
|
|
1249
|
-
e &&
|
|
1195
|
+
e && Yt(e, this);
|
|
1250
1196
|
}
|
|
1251
1197
|
connect(e, t, n) {
|
|
1252
1198
|
return this;
|
|
@@ -1255,29 +1201,29 @@ var we = class {
|
|
|
1255
1201
|
return this;
|
|
1256
1202
|
}
|
|
1257
1203
|
storeForElement(e) {
|
|
1258
|
-
return
|
|
1204
|
+
return $.get(this.name || "")?.get?.(e);
|
|
1259
1205
|
}
|
|
1260
1206
|
relatedForElement(e) {
|
|
1261
|
-
return
|
|
1207
|
+
return I(e);
|
|
1262
1208
|
}
|
|
1263
1209
|
get elements() {
|
|
1264
1210
|
return C?.get?.(this);
|
|
1265
1211
|
}
|
|
1266
1212
|
get storage() {
|
|
1267
|
-
return
|
|
1213
|
+
return $?.get?.(this.name || "");
|
|
1268
1214
|
}
|
|
1269
1215
|
get name() {
|
|
1270
|
-
return
|
|
1216
|
+
return K?.get?.(this);
|
|
1271
1217
|
}
|
|
1272
|
-
},
|
|
1218
|
+
}, cr = (e, t, n) => {
|
|
1273
1219
|
const r = n;
|
|
1274
|
-
|
|
1275
|
-
const i = (n =
|
|
1220
|
+
E(n) && (n = n.value);
|
|
1221
|
+
const i = (n = he(n)) != null && n !== !1;
|
|
1276
1222
|
return B(r, () => {
|
|
1277
1223
|
e instanceof HTMLInputElement ? e.hidden = !i : i ? e?.removeAttribute?.("data-hidden") : e?.setAttribute?.("data-hidden", "");
|
|
1278
1224
|
}), e;
|
|
1279
|
-
},
|
|
1280
|
-
if (!(t = typeof t == "string" ?
|
|
1225
|
+
}, ur = (e, t, n) => {
|
|
1226
|
+
if (!(t = typeof t == "string" ? Oe(t) : t) || !e || [
|
|
1281
1227
|
"style",
|
|
1282
1228
|
"dataset",
|
|
1283
1229
|
"attributeStyleMap",
|
|
@@ -1285,29 +1231,29 @@ var we = class {
|
|
|
1285
1231
|
"computedStyleMap"
|
|
1286
1232
|
].indexOf(t || "") != -1) return e;
|
|
1287
1233
|
const r = n;
|
|
1288
|
-
return
|
|
1234
|
+
return E(n) && (n = n.value), e?.[t] === n || e?.[t] !== n && B(r, () => {
|
|
1289
1235
|
n != null ? e[t] = n : delete e[t];
|
|
1290
1236
|
}), e;
|
|
1291
|
-
},
|
|
1237
|
+
}, dr = (e, t, n) => {
|
|
1292
1238
|
const r = e?.dataset;
|
|
1293
1239
|
if (!t || !e || !r) return e;
|
|
1294
1240
|
const i = n;
|
|
1295
|
-
return
|
|
1241
|
+
return E(n) && (n = n?.value), t = Oe(t), r?.[t] === (n = he(n)) || (n == null || n === !1 ? delete r[t] : B(i, () => {
|
|
1296
1242
|
typeof n != "object" && typeof n != "function" ? r[t] = String(n) : delete r[t];
|
|
1297
1243
|
})), e;
|
|
1298
|
-
},
|
|
1244
|
+
}, Gt = (e, t) => e.style.removeProperty(ee(t)), lr = (e, t, n) => {
|
|
1299
1245
|
const r = e?.style;
|
|
1300
1246
|
return !t || typeof t != "string" || !e || !r || B(n, () => {
|
|
1301
|
-
|
|
1247
|
+
Ye(n) || E(n) || Ge(n) ? S(e, t, n) : n == null && Gt(e, t);
|
|
1302
1248
|
}), e;
|
|
1303
|
-
},
|
|
1249
|
+
}, fr = (e, t, n) => {
|
|
1304
1250
|
if (!t || !e) return e;
|
|
1305
1251
|
const r = n;
|
|
1306
|
-
return
|
|
1252
|
+
return E(n) && (n = n.value), t = ee(t), e?.getAttribute?.(t) === (n = he(n)) || B(r, () => {
|
|
1307
1253
|
typeof n != "object" && typeof n != "function" && n != null && (typeof n != "boolean" || n == !0) ? e?.setAttribute?.(t, String(n)) : e?.removeAttribute?.(t);
|
|
1308
1254
|
}), e;
|
|
1309
1255
|
};
|
|
1310
|
-
function
|
|
1256
|
+
function ae(e, t) {
|
|
1311
1257
|
const n = Math.min(e.x, t.x), r = Math.min(e.y, t.y), i = Math.max(e.x, t.x), s = Math.max(e.y, t.y);
|
|
1312
1258
|
return {
|
|
1313
1259
|
left: n,
|
|
@@ -1318,12 +1264,12 @@ function se(e, t) {
|
|
|
1318
1264
|
height: s - r
|
|
1319
1265
|
};
|
|
1320
1266
|
}
|
|
1321
|
-
var
|
|
1267
|
+
var Z = {
|
|
1322
1268
|
start: "junction-select:start",
|
|
1323
1269
|
move: "junction-select:move",
|
|
1324
1270
|
end: "junction-select:end",
|
|
1325
1271
|
cancel: "junction-select:cancel"
|
|
1326
|
-
},
|
|
1272
|
+
}, se = {
|
|
1327
1273
|
start: "junction-drag:start",
|
|
1328
1274
|
move: "junction-drag:move",
|
|
1329
1275
|
end: "junction-drag:end"
|
|
@@ -1331,27 +1277,27 @@ var U = {
|
|
|
1331
1277
|
start: "junction-resize:start",
|
|
1332
1278
|
move: "junction-resize:move",
|
|
1333
1279
|
end: "junction-resize:end"
|
|
1334
|
-
},
|
|
1335
|
-
const r =
|
|
1336
|
-
i.push(n), r.set(t, i),
|
|
1337
|
-
},
|
|
1338
|
-
const n =
|
|
1280
|
+
}, Jt = /* @__PURE__ */ Symbol.for("dom.ts@mixinDisposers"), Q = globalThis[Jt] ??= /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
|
|
1281
|
+
const r = Q.get(e) ?? /* @__PURE__ */ new Map(), i = r.get(t) ?? [];
|
|
1282
|
+
i.push(n), r.set(t, i), Q.set(e, r);
|
|
1283
|
+
}, be = (e, t) => {
|
|
1284
|
+
const n = Q.get(e), r = n?.get(t);
|
|
1339
1285
|
if (r) {
|
|
1340
1286
|
for (const i of r) try {
|
|
1341
1287
|
i();
|
|
1342
1288
|
} catch {
|
|
1343
1289
|
}
|
|
1344
|
-
n.delete(t), n.size === 0 &&
|
|
1290
|
+
n.delete(t), n.size === 0 && Q.delete(e);
|
|
1345
1291
|
}
|
|
1346
|
-
},
|
|
1292
|
+
}, A = (e, t) => {
|
|
1347
1293
|
const n = globalThis.getComputedStyle?.(e)?.getPropertyValue?.(t)?.trim?.() ?? "", r = parseFloat(n);
|
|
1348
1294
|
return Number.isFinite(r) ? r : 0;
|
|
1349
|
-
},
|
|
1295
|
+
}, Ze = (e, t, n) => {
|
|
1350
1296
|
const r = e.getAttribute(t)?.trim();
|
|
1351
1297
|
if (!r) return n;
|
|
1352
1298
|
const i = e.querySelector(r);
|
|
1353
1299
|
return i instanceof HTMLElement ? i : n;
|
|
1354
|
-
},
|
|
1300
|
+
}, Kt = class extends ve {
|
|
1355
1301
|
constructor() {
|
|
1356
1302
|
super("ui-junction-select");
|
|
1357
1303
|
}
|
|
@@ -1367,33 +1313,33 @@ var U = {
|
|
|
1367
1313
|
x: 0,
|
|
1368
1314
|
y: 0
|
|
1369
1315
|
};
|
|
1370
|
-
const o = (
|
|
1316
|
+
const o = (p) => {
|
|
1371
1317
|
const y = t.getBoundingClientRect();
|
|
1372
1318
|
return {
|
|
1373
|
-
x:
|
|
1374
|
-
y:
|
|
1319
|
+
x: p.clientX - y.left,
|
|
1320
|
+
y: p.clientY - y.top
|
|
1375
1321
|
};
|
|
1376
|
-
},
|
|
1377
|
-
const
|
|
1378
|
-
if (
|
|
1322
|
+
}, c = () => {
|
|
1323
|
+
const p = ae(s, a);
|
|
1324
|
+
if (p.width < 1 && p.height < 1) {
|
|
1379
1325
|
n.style.display = "none";
|
|
1380
1326
|
return;
|
|
1381
1327
|
}
|
|
1382
|
-
n.style.display = "block", n.style.left = `${
|
|
1383
|
-
},
|
|
1384
|
-
|
|
1328
|
+
n.style.display = "block", n.style.left = `${p.left}px`, n.style.top = `${p.top}px`, n.style.width = `${p.width}px`, n.style.height = `${p.height}px`;
|
|
1329
|
+
}, u = (p) => {
|
|
1330
|
+
p.button === 0 && (p.target?.closest?.("[data-junction-ignore-select], [data-junction-drag-handle], [data-junction-resize-handle], button, a, input, textarea, select") || (p.target === t || t.contains(p.target)) && (i = !0, s = o(p), a = { ...s }, t.setPointerCapture(p.pointerId), t.dispatchEvent(new CustomEvent(Z.start, {
|
|
1385
1331
|
bubbles: !0,
|
|
1386
1332
|
detail: {
|
|
1387
1333
|
a: { ...s },
|
|
1388
1334
|
b: { ...a },
|
|
1389
1335
|
host: t
|
|
1390
1336
|
}
|
|
1391
|
-
})),
|
|
1392
|
-
},
|
|
1337
|
+
})), c()));
|
|
1338
|
+
}, l = (p) => {
|
|
1393
1339
|
if (!i) return;
|
|
1394
|
-
a = o(
|
|
1395
|
-
const y =
|
|
1396
|
-
t.dispatchEvent(new CustomEvent(
|
|
1340
|
+
a = o(p), c();
|
|
1341
|
+
const y = ae(s, a);
|
|
1342
|
+
t.dispatchEvent(new CustomEvent(Z.move, {
|
|
1397
1343
|
bubbles: !0,
|
|
1398
1344
|
detail: {
|
|
1399
1345
|
a: { ...s },
|
|
@@ -1402,15 +1348,15 @@ var U = {
|
|
|
1402
1348
|
host: t
|
|
1403
1349
|
}
|
|
1404
1350
|
}));
|
|
1405
|
-
}, h = (
|
|
1351
|
+
}, h = (p) => {
|
|
1406
1352
|
if (!i) return;
|
|
1407
1353
|
i = !1;
|
|
1408
1354
|
try {
|
|
1409
|
-
t.releasePointerCapture(
|
|
1355
|
+
t.releasePointerCapture(p.pointerId);
|
|
1410
1356
|
} catch {
|
|
1411
1357
|
}
|
|
1412
|
-
const y =
|
|
1413
|
-
t.dispatchEvent(new CustomEvent(
|
|
1358
|
+
const y = ae(s, a);
|
|
1359
|
+
t.dispatchEvent(new CustomEvent(Z.end, {
|
|
1414
1360
|
bubbles: !0,
|
|
1415
1361
|
detail: {
|
|
1416
1362
|
a: { ...s },
|
|
@@ -1419,16 +1365,16 @@ var U = {
|
|
|
1419
1365
|
host: t
|
|
1420
1366
|
}
|
|
1421
1367
|
}));
|
|
1422
|
-
},
|
|
1423
|
-
i && h(
|
|
1424
|
-
},
|
|
1368
|
+
}, d = (p) => {
|
|
1369
|
+
i && h(p);
|
|
1370
|
+
}, f = (p) => {
|
|
1425
1371
|
if (i) {
|
|
1426
1372
|
i = !1, n.style.display = "none";
|
|
1427
1373
|
try {
|
|
1428
|
-
t.releasePointerCapture(
|
|
1374
|
+
t.releasePointerCapture(p.pointerId);
|
|
1429
1375
|
} catch {
|
|
1430
1376
|
}
|
|
1431
|
-
t.dispatchEvent(new CustomEvent(
|
|
1377
|
+
t.dispatchEvent(new CustomEvent(Z.cancel, {
|
|
1432
1378
|
bubbles: !0,
|
|
1433
1379
|
detail: { host: t }
|
|
1434
1380
|
}));
|
|
@@ -1436,84 +1382,84 @@ var U = {
|
|
|
1436
1382
|
};
|
|
1437
1383
|
return g(t, "ui-junction-select", () => {
|
|
1438
1384
|
n.remove();
|
|
1439
|
-
}), g(t, "ui-junction-select", m(t, "pointerdown",
|
|
1385
|
+
}), g(t, "ui-junction-select", m(t, "pointerdown", u)), g(t, "ui-junction-select", m(t, "pointermove", l)), g(t, "ui-junction-select", m(t, "pointerup", d)), g(t, "ui-junction-select", m(t, "pointercancel", f)), this;
|
|
1440
1386
|
}
|
|
1441
1387
|
disconnect(e) {
|
|
1442
1388
|
const t = e?.deref?.();
|
|
1443
|
-
return t &&
|
|
1389
|
+
return t && be(t, "ui-junction-select"), this;
|
|
1444
1390
|
}
|
|
1445
|
-
},
|
|
1391
|
+
}, Qt = class extends ve {
|
|
1446
1392
|
constructor() {
|
|
1447
1393
|
super("ui-junction-drag");
|
|
1448
1394
|
}
|
|
1449
1395
|
connect(e) {
|
|
1450
1396
|
const t = e?.deref?.();
|
|
1451
1397
|
if (!t) return this;
|
|
1452
|
-
S(t, "--jx-drag-x",
|
|
1398
|
+
S(t, "--jx-drag-x", A(t, "--jx-drag-x")), S(t, "--jx-drag-y", A(t, "--jx-drag-y"));
|
|
1453
1399
|
const n = t.style.transform;
|
|
1454
1400
|
(!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
|
-
const r =
|
|
1456
|
-
let i = !1, s = 0, a = 0, o = 0,
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1401
|
+
const r = Ze(t, "data-junction-drag-handle", t);
|
|
1402
|
+
let i = !1, s = 0, a = 0, o = 0, c = 0;
|
|
1403
|
+
const u = (d) => {
|
|
1404
|
+
d.button === 0 && (d.target !== r && !r.contains(d.target) || (i = !0, s = d.clientX, a = d.clientY, o = A(t, "--jx-drag-x"), c = A(t, "--jx-drag-y"), r.setPointerCapture(d.pointerId), t.dispatchEvent(new CustomEvent(se.start, {
|
|
1459
1405
|
bubbles: !0,
|
|
1460
1406
|
detail: {
|
|
1461
1407
|
host: t,
|
|
1462
|
-
clientX:
|
|
1463
|
-
clientY:
|
|
1408
|
+
clientX: d.clientX,
|
|
1409
|
+
clientY: d.clientY,
|
|
1464
1410
|
baseX: o,
|
|
1465
|
-
baseY:
|
|
1411
|
+
baseY: c
|
|
1466
1412
|
}
|
|
1467
1413
|
}))));
|
|
1468
|
-
},
|
|
1414
|
+
}, l = (d) => {
|
|
1469
1415
|
if (!i) return;
|
|
1470
|
-
const
|
|
1471
|
-
S(t, "--jx-drag-x", y), S(t, "--jx-drag-y",
|
|
1416
|
+
const f = d.clientX - s, p = d.clientY - a, y = o + f, q = c + p;
|
|
1417
|
+
S(t, "--jx-drag-x", y), S(t, "--jx-drag-y", q), t.dispatchEvent(new CustomEvent(se.move, {
|
|
1472
1418
|
bubbles: !0,
|
|
1473
1419
|
detail: {
|
|
1474
1420
|
host: t,
|
|
1475
|
-
dx:
|
|
1476
|
-
dy:
|
|
1421
|
+
dx: f,
|
|
1422
|
+
dy: p,
|
|
1477
1423
|
x: y,
|
|
1478
|
-
y:
|
|
1424
|
+
y: q
|
|
1479
1425
|
}
|
|
1480
1426
|
}));
|
|
1481
|
-
}, h = (
|
|
1427
|
+
}, h = (d) => {
|
|
1482
1428
|
if (i) {
|
|
1483
1429
|
i = !1;
|
|
1484
1430
|
try {
|
|
1485
|
-
r.releasePointerCapture(
|
|
1431
|
+
r.releasePointerCapture(d.pointerId);
|
|
1486
1432
|
} catch {
|
|
1487
1433
|
}
|
|
1488
|
-
t.dispatchEvent(new CustomEvent(
|
|
1434
|
+
t.dispatchEvent(new CustomEvent(se.end, {
|
|
1489
1435
|
bubbles: !0,
|
|
1490
1436
|
detail: {
|
|
1491
1437
|
host: t,
|
|
1492
|
-
x:
|
|
1493
|
-
y:
|
|
1438
|
+
x: A(t, "--jx-drag-x"),
|
|
1439
|
+
y: A(t, "--jx-drag-y")
|
|
1494
1440
|
}
|
|
1495
1441
|
}));
|
|
1496
1442
|
}
|
|
1497
1443
|
};
|
|
1498
1444
|
return g(t, "ui-junction-drag", () => {
|
|
1499
1445
|
t.style.transform = n;
|
|
1500
|
-
}), g(t, "ui-junction-drag", m(r, "pointerdown",
|
|
1446
|
+
}), g(t, "ui-junction-drag", m(r, "pointerdown", u)), g(t, "ui-junction-drag", m(r, "pointermove", l)), g(t, "ui-junction-drag", m(r, "pointerup", h)), g(t, "ui-junction-drag", m(r, "pointercancel", h)), this;
|
|
1501
1447
|
}
|
|
1502
1448
|
disconnect(e) {
|
|
1503
1449
|
const t = e?.deref?.();
|
|
1504
|
-
return t &&
|
|
1450
|
+
return t && be(t, "ui-junction-drag"), this;
|
|
1505
1451
|
}
|
|
1506
|
-
},
|
|
1452
|
+
}, en = class extends ve {
|
|
1507
1453
|
constructor() {
|
|
1508
1454
|
super("ui-junction-resize");
|
|
1509
1455
|
}
|
|
1510
1456
|
connect(e) {
|
|
1511
1457
|
const t = e?.deref?.();
|
|
1512
1458
|
if (!t) return this;
|
|
1513
|
-
const n =
|
|
1459
|
+
const n = Ze(t, "data-junction-resize-handle", t);
|
|
1514
1460
|
let r = !1, i = 0, s = 0, a = 0, o = 0;
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1461
|
+
const c = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), u = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80), l = (f) => {
|
|
1462
|
+
f.button === 0 && (f.target !== n && !n.contains(f.target) || (r = !0, i = f.clientX, s = f.clientY, a = t.offsetWidth, o = t.offsetHeight, n.setPointerCapture(f.pointerId), t.dispatchEvent(new CustomEvent(ce.start, {
|
|
1517
1463
|
bubbles: !0,
|
|
1518
1464
|
detail: {
|
|
1519
1465
|
host: t,
|
|
@@ -1521,22 +1467,22 @@ var U = {
|
|
|
1521
1467
|
height: o
|
|
1522
1468
|
}
|
|
1523
1469
|
}))));
|
|
1524
|
-
}, h = (
|
|
1470
|
+
}, h = (f) => {
|
|
1525
1471
|
if (!r) return;
|
|
1526
|
-
const
|
|
1527
|
-
t.style.width = `${
|
|
1472
|
+
const p = Math.max(c, a + (f.clientX - i)), y = Math.max(u, o + (f.clientY - s));
|
|
1473
|
+
t.style.width = `${p}px`, t.style.height = `${y}px`, t.dispatchEvent(new CustomEvent(ce.move, {
|
|
1528
1474
|
bubbles: !0,
|
|
1529
1475
|
detail: {
|
|
1530
1476
|
host: t,
|
|
1531
|
-
width:
|
|
1477
|
+
width: p,
|
|
1532
1478
|
height: y
|
|
1533
1479
|
}
|
|
1534
1480
|
}));
|
|
1535
|
-
},
|
|
1481
|
+
}, d = (f) => {
|
|
1536
1482
|
if (r) {
|
|
1537
1483
|
r = !1;
|
|
1538
1484
|
try {
|
|
1539
|
-
n.releasePointerCapture(
|
|
1485
|
+
n.releasePointerCapture(f.pointerId);
|
|
1540
1486
|
} catch {
|
|
1541
1487
|
}
|
|
1542
1488
|
t.dispatchEvent(new CustomEvent(ce.end, {
|
|
@@ -1549,165 +1495,158 @@ var U = {
|
|
|
1549
1495
|
}));
|
|
1550
1496
|
}
|
|
1551
1497
|
};
|
|
1552
|
-
return g(t, "ui-junction-resize", m(n, "pointerdown",
|
|
1498
|
+
return g(t, "ui-junction-resize", m(n, "pointerdown", l)), g(t, "ui-junction-resize", m(n, "pointermove", h)), g(t, "ui-junction-resize", m(n, "pointerup", d)), g(t, "ui-junction-resize", m(n, "pointercancel", d)), this;
|
|
1553
1499
|
}
|
|
1554
1500
|
disconnect(e) {
|
|
1555
1501
|
const t = e?.deref?.();
|
|
1556
|
-
return t &&
|
|
1502
|
+
return t && be(t, "ui-junction-resize"), this;
|
|
1557
1503
|
}
|
|
1558
1504
|
};
|
|
1559
|
-
new
|
|
1560
|
-
new
|
|
1561
|
-
new
|
|
1505
|
+
new Kt();
|
|
1506
|
+
new Qt();
|
|
1507
|
+
new en();
|
|
1562
1508
|
export {
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1509
|
+
ve as DOMMixin,
|
|
1510
|
+
Qt as JunctionDragMixin,
|
|
1511
|
+
en as JunctionResizeMixin,
|
|
1512
|
+
Kt as JunctionSelectMixin,
|
|
1513
|
+
bn as MATCH,
|
|
1514
|
+
Pn as MOC,
|
|
1515
|
+
ue as MOCElement,
|
|
1516
|
+
sn as RAFBehavior,
|
|
1517
|
+
Sn as REGEX,
|
|
1518
|
+
cn as ROOT,
|
|
1519
|
+
Un as WavyShapedCircle,
|
|
1520
|
+
nn as __exportProperties,
|
|
1521
|
+
we as __registeredCssProperties,
|
|
1576
1522
|
m as addEvent,
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1523
|
+
J as addEvents,
|
|
1524
|
+
An as addEventsList,
|
|
1525
|
+
Dt as addRoot,
|
|
1580
1526
|
O as adoptedBlobMap,
|
|
1581
|
-
Oe as adoptedLayerMap,
|
|
1582
1527
|
v as adoptedMap,
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
k as blobURLMap,
|
|
1595
|
-
Y as borderBoxHeight,
|
|
1596
|
-
X as borderBoxWidth,
|
|
1597
|
-
Ue as boundBehaviors,
|
|
1528
|
+
gt as animateHide,
|
|
1529
|
+
yt as animateShow,
|
|
1530
|
+
le as availSize,
|
|
1531
|
+
On as bbh,
|
|
1532
|
+
jn as bbw,
|
|
1533
|
+
Ot as bindBehavior,
|
|
1534
|
+
Nt as bindMixins,
|
|
1535
|
+
$t as bindStore,
|
|
1536
|
+
X as borderBoxHeight,
|
|
1537
|
+
U as borderBoxWidth,
|
|
1538
|
+
_e as boundBehaviors,
|
|
1598
1539
|
w as boundMixinSet,
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
Xt as loadAsAdopted,
|
|
1655
|
-
_t as loadBlobStyle,
|
|
1540
|
+
Fn as cbh,
|
|
1541
|
+
Wn as cbw,
|
|
1542
|
+
Ln as changeZoom,
|
|
1543
|
+
In as classes,
|
|
1544
|
+
ht as computeCaretPosition,
|
|
1545
|
+
Bn as computeCaretPositionFromClient,
|
|
1546
|
+
Rn as containsOrSelf,
|
|
1547
|
+
G as contentBoxHeight,
|
|
1548
|
+
Y as contentBoxWidth,
|
|
1549
|
+
wn as createElementVanilla,
|
|
1550
|
+
Gt as deleteStyleProperty,
|
|
1551
|
+
rn as detectMobile,
|
|
1552
|
+
pn as doBorderObserve,
|
|
1553
|
+
fn as doContentObserve,
|
|
1554
|
+
kt as fetchAndCache,
|
|
1555
|
+
zt as fetchAsInline,
|
|
1556
|
+
$n as fixOrientToScreen,
|
|
1557
|
+
Tn as fixedClientZoom,
|
|
1558
|
+
Yn as getAdoptedStyleRule,
|
|
1559
|
+
Ie as getAvailSize,
|
|
1560
|
+
Vn as getBoundingOrientRect,
|
|
1561
|
+
lt as getCorrectOrientation,
|
|
1562
|
+
I as getElementRelated,
|
|
1563
|
+
nr as getElementZoom,
|
|
1564
|
+
Cn as getEventTarget,
|
|
1565
|
+
nt as getOffsetParent,
|
|
1566
|
+
on as getOffsetParentChain,
|
|
1567
|
+
ir as getPadding,
|
|
1568
|
+
W as getPropertyValue,
|
|
1569
|
+
rr as getPxValue,
|
|
1570
|
+
Ft as getStoresOfElement,
|
|
1571
|
+
wt as getStyleLayer,
|
|
1572
|
+
ge as getStyleRule,
|
|
1573
|
+
er as getTransform,
|
|
1574
|
+
tr as getTransformOrigin,
|
|
1575
|
+
zn as getZoom,
|
|
1576
|
+
fr as handleAttribute,
|
|
1577
|
+
dr as handleDataset,
|
|
1578
|
+
cr as handleHidden,
|
|
1579
|
+
ur as handleProperty,
|
|
1580
|
+
lr as handleStyleChange,
|
|
1581
|
+
ne as hasParent,
|
|
1582
|
+
Jn as hash,
|
|
1583
|
+
mn as html,
|
|
1584
|
+
En as includeSelf,
|
|
1585
|
+
vn as indexOf,
|
|
1586
|
+
$e as initTextStyle,
|
|
1587
|
+
Zn as initVisibility,
|
|
1588
|
+
xn as isElement,
|
|
1589
|
+
kn as isInFocus,
|
|
1590
|
+
et as isMobile,
|
|
1591
|
+
an as isNearlyIdentity,
|
|
1592
|
+
gn as isValidParent,
|
|
1593
|
+
Vt as loadAsAdopted,
|
|
1594
|
+
Tt as loadBlobStyle,
|
|
1656
1595
|
j as loadInlineStyle,
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1596
|
+
qe as loadStyleSheet,
|
|
1597
|
+
rt as makeRAFCycle,
|
|
1598
|
+
Nn as measureInputInFocus,
|
|
1599
|
+
pt as measureText,
|
|
1600
|
+
Q as mixinDisposers,
|
|
1662
1601
|
C as mixinElements,
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1602
|
+
K as mixinNamespace,
|
|
1603
|
+
N as mixinRegistry,
|
|
1604
|
+
Xt as nameRegistryF,
|
|
1605
|
+
$ as namedStoreMaps,
|
|
1606
|
+
Dn as observeAttribute,
|
|
1607
|
+
me as observeAttributeBySelector,
|
|
1608
|
+
_n as observeBorderBox,
|
|
1609
|
+
St as observeBySelector,
|
|
1610
|
+
qn as observeContentBox,
|
|
1611
|
+
Ee as onBorderObserve,
|
|
1612
|
+
Ae as onContentObserve,
|
|
1613
|
+
k as orientOf,
|
|
1614
|
+
ut as orientationNumberMap,
|
|
1615
|
+
je as parseLength,
|
|
1616
|
+
jt as parseOrigin,
|
|
1617
|
+
Fe as passiveOpts,
|
|
1618
|
+
Qn as preloadStyle,
|
|
1619
|
+
mt as readLauncherLayoutFromElement,
|
|
1620
|
+
or as reflectBehaviors,
|
|
1621
|
+
sr as reflectMixins,
|
|
1622
|
+
ar as reflectStores,
|
|
1623
|
+
Yt as registerMixin,
|
|
1624
|
+
oe as removeAdopted,
|
|
1625
|
+
Me as removeEvent,
|
|
1626
|
+
Mn as removeEvents,
|
|
1627
|
+
Hn as resolveGridCellFromClientPoint,
|
|
1628
|
+
fe as roots,
|
|
1629
|
+
dn as setAttributes,
|
|
1630
|
+
un as setAttributesIfNull,
|
|
1631
|
+
yn as setChecked,
|
|
1632
|
+
ln as setIdleInterval,
|
|
1633
|
+
Kn as setProperty,
|
|
1634
|
+
Gn as setStyleInRule,
|
|
1696
1635
|
S as setStyleProperty,
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1636
|
+
Be as setStylePropertyFallback,
|
|
1637
|
+
Pt as setStylePropertyTyped,
|
|
1638
|
+
Lt as setStyleRule,
|
|
1639
|
+
Xn as setStyleRules,
|
|
1640
|
+
Re as setStyleURL,
|
|
1641
|
+
it as throttleMap,
|
|
1642
|
+
de as unfixedClientZoom,
|
|
1643
|
+
pe as updateAllMixins,
|
|
1644
|
+
De as updateMixinAttributes,
|
|
1645
|
+
Zt as updateMixinAttributesAll,
|
|
1646
|
+
Ut as updateMixinAttributesAllInRoots,
|
|
1647
|
+
dt as updateVP,
|
|
1648
|
+
hn as url,
|
|
1649
|
+
ft as whenAnyScreenChanges,
|
|
1650
|
+
st as zoomOf,
|
|
1651
|
+
at as zoomValues
|
|
1713
1652
|
};
|