@bquery/bquery 1.8.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -24
- package/dist/{a11y-DVBCy09c.js → a11y-_9X-kt-_.js} +2 -2
- package/dist/{a11y-DVBCy09c.js.map → a11y-_9X-kt-_.js.map} +1 -1
- package/dist/a11y.es.mjs +1 -1
- package/dist/{forms-UcRHsYxC.js → forms-UhAeJEoO.js} +13 -13
- package/dist/{forms-UcRHsYxC.js.map → forms-UhAeJEoO.js.map} +1 -1
- package/dist/forms.es.mjs +1 -1
- package/dist/full.d.ts +4 -4
- package/dist/full.d.ts.map +1 -1
- package/dist/full.es.mjs +201 -196
- package/dist/full.iife.js +20 -20
- package/dist/full.iife.js.map +1 -1
- package/dist/full.umd.js +20 -20
- package/dist/full.umd.js.map +1 -1
- package/dist/index.es.mjs +214 -209
- package/dist/media/index.d.ts +10 -3
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/observers.d.ts +99 -0
- package/dist/media/observers.d.ts.map +1 -0
- package/dist/media/types.d.ts +125 -0
- package/dist/media/types.d.ts.map +1 -1
- package/dist/media-D4zLj9t-.js +514 -0
- package/dist/media-D4zLj9t-.js.map +1 -0
- package/dist/media.es.mjs +12 -9
- package/dist/mount-B-JvH6Y0.js +449 -0
- package/dist/mount-B-JvH6Y0.js.map +1 -0
- package/dist/reactive/index.d.ts +2 -2
- package/dist/reactive/index.d.ts.map +1 -1
- package/dist/reactive/signal.d.ts +2 -1
- package/dist/reactive/signal.d.ts.map +1 -1
- package/dist/reactive/watch.d.ts +49 -0
- package/dist/reactive/watch.d.ts.map +1 -1
- package/dist/reactive-BjpLkclt.js +1184 -0
- package/dist/{reactive-DwkhUJfP.js.map → reactive-BjpLkclt.js.map} +1 -1
- package/dist/reactive.es.mjs +35 -33
- package/dist/{router-CQikC9Ed.js → router-BieVwgci.js} +2 -2
- package/dist/{router-CQikC9Ed.js.map → router-BieVwgci.js.map} +1 -1
- package/dist/router.es.mjs +1 -1
- package/dist/{ssr-_dAcGdzu.js → ssr-CrGSJySz.js} +3 -3
- package/dist/{ssr-_dAcGdzu.js.map → ssr-CrGSJySz.js.map} +1 -1
- package/dist/ssr.es.mjs +1 -1
- package/dist/{store-Cb3gPRve.js → store-CY6sjTW3.js} +2 -2
- package/dist/{store-Cb3gPRve.js.map → store-CY6sjTW3.js.map} +1 -1
- package/dist/store.es.mjs +1 -1
- package/dist/{testing-C5Sjfsna.js → testing-UjAtu9aQ.js} +9 -9
- package/dist/{testing-C5Sjfsna.js.map → testing-UjAtu9aQ.js.map} +1 -1
- package/dist/testing.es.mjs +1 -1
- package/dist/view/directives/aria.d.ts +7 -0
- package/dist/view/directives/aria.d.ts.map +1 -0
- package/dist/view/directives/error.d.ts +7 -0
- package/dist/view/directives/error.d.ts.map +1 -0
- package/dist/view/directives/index.d.ts +2 -0
- package/dist/view/directives/index.d.ts.map +1 -1
- package/dist/view/mount.d.ts.map +1 -1
- package/dist/view/process.d.ts +2 -0
- package/dist/view/process.d.ts.map +1 -1
- package/dist/view.es.mjs +2 -2
- package/package.json +5 -5
- package/src/full.ts +12 -0
- package/src/media/index.ts +20 -2
- package/src/media/observers.ts +421 -0
- package/src/media/types.ts +136 -0
- package/src/reactive/index.ts +3 -0
- package/src/reactive/signal.ts +2 -1
- package/src/reactive/watch.ts +137 -0
- package/src/view/directives/aria.ts +72 -0
- package/src/view/directives/error.ts +56 -0
- package/src/view/directives/index.ts +2 -0
- package/src/view/mount.ts +4 -0
- package/src/view/process.ts +6 -0
- package/dist/media-i-fB5WxI.js +0 -340
- package/dist/media-i-fB5WxI.js.map +0 -1
- package/dist/mount-B4Y8bk8Z.js +0 -403
- package/dist/mount-B4Y8bk8Z.js.map +0 -1
- package/dist/reactive-DwkhUJfP.js +0 -1148
package/dist/media/types.d.ts
CHANGED
|
@@ -170,4 +170,129 @@ export interface ClipboardAPI {
|
|
|
170
170
|
/** Write text to the clipboard. */
|
|
171
171
|
write: (text: string) => Promise<void>;
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Options for {@link useIntersectionObserver}.
|
|
175
|
+
*/
|
|
176
|
+
export interface IntersectionObserverOptions {
|
|
177
|
+
/**
|
|
178
|
+
* Root element or document to use as the viewport.
|
|
179
|
+
* Defaults to the browser viewport when `null` or omitted.
|
|
180
|
+
*/
|
|
181
|
+
root?: Element | Document | null;
|
|
182
|
+
/** Margin around the root, using CSS margin syntax (e.g. `'10px 20px'`). */
|
|
183
|
+
rootMargin?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Thresholds at which the callback fires.
|
|
186
|
+
* A single number or an array of numbers between 0 and 1.
|
|
187
|
+
*/
|
|
188
|
+
threshold?: number | number[];
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* State tracked by {@link useIntersectionObserver}.
|
|
192
|
+
*
|
|
193
|
+
* Reflects the most recent {@link IntersectionObserverEntry} reported by the
|
|
194
|
+
* underlying `IntersectionObserver` callback, not an aggregate across all
|
|
195
|
+
* observed targets.
|
|
196
|
+
*/
|
|
197
|
+
export interface IntersectionObserverState {
|
|
198
|
+
/**
|
|
199
|
+
* Whether the most recently reported entry is intersecting.
|
|
200
|
+
*
|
|
201
|
+
* This is equivalent to `entry?.isIntersecting ?? false` and does not
|
|
202
|
+
* represent an aggregate across all observed targets.
|
|
203
|
+
*/
|
|
204
|
+
isIntersecting: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* The intersection ratio (0–1) from the most recent entry.
|
|
207
|
+
*
|
|
208
|
+
* This is equivalent to `entry?.intersectionRatio ?? 0`.
|
|
209
|
+
*/
|
|
210
|
+
intersectionRatio: number;
|
|
211
|
+
/** The most recent `IntersectionObserverEntry`, or `null` before the first callback. */
|
|
212
|
+
entry: IntersectionObserverEntry | null;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Extended handle returned by {@link useIntersectionObserver}.
|
|
216
|
+
*
|
|
217
|
+
* In addition to the reactive signal, exposes `observe()` and `unobserve()`
|
|
218
|
+
* so elements can be added or removed after creation.
|
|
219
|
+
*/
|
|
220
|
+
export interface IntersectionObserverSignal extends MediaSignalHandle<IntersectionObserverState> {
|
|
221
|
+
/** Start observing the given element. */
|
|
222
|
+
observe(target: Element): void;
|
|
223
|
+
/** Stop observing the given element. */
|
|
224
|
+
unobserve(target: Element): void;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Options for {@link useResizeObserver}.
|
|
228
|
+
*/
|
|
229
|
+
export interface ResizeObserverOptions {
|
|
230
|
+
/**
|
|
231
|
+
* Which CSS box model to observe.
|
|
232
|
+
* @default 'content-box'
|
|
233
|
+
*/
|
|
234
|
+
box?: ResizeObserverBoxOptions;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* State tracked by {@link useResizeObserver}.
|
|
238
|
+
*/
|
|
239
|
+
export interface ResizeObserverState {
|
|
240
|
+
/** Observed box width of the element in pixels (based on the configured `box`). */
|
|
241
|
+
width: number;
|
|
242
|
+
/** Observed box height of the element in pixels (based on the configured `box`). */
|
|
243
|
+
height: number;
|
|
244
|
+
/** The most recent `ResizeObserverEntry`, or `null` before the first callback. */
|
|
245
|
+
entry: ResizeObserverEntry | null;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Extended handle returned by {@link useResizeObserver}.
|
|
249
|
+
*
|
|
250
|
+
* Exposes `observe()` and `unobserve()` so elements can be added or removed
|
|
251
|
+
* after creation.
|
|
252
|
+
*/
|
|
253
|
+
export interface ResizeObserverSignal extends MediaSignalHandle<ResizeObserverState> {
|
|
254
|
+
/** Start observing the given element. */
|
|
255
|
+
observe(target: Element): void;
|
|
256
|
+
/** Stop observing the given element. */
|
|
257
|
+
unobserve(target: Element): void;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Options for {@link useMutationObserver}.
|
|
261
|
+
*/
|
|
262
|
+
export interface MutationObserverOptions {
|
|
263
|
+
/** Observe attribute changes. @default true */
|
|
264
|
+
attributes?: boolean;
|
|
265
|
+
/** Observe child list changes. @default false */
|
|
266
|
+
childList?: boolean;
|
|
267
|
+
/** Observe character data changes. @default false */
|
|
268
|
+
characterData?: boolean;
|
|
269
|
+
/** Observe the entire subtree. @default false */
|
|
270
|
+
subtree?: boolean;
|
|
271
|
+
/** Record previous attribute values. @default false */
|
|
272
|
+
attributeOldValue?: boolean;
|
|
273
|
+
/** Record previous character data values. @default false */
|
|
274
|
+
characterDataOldValue?: boolean;
|
|
275
|
+
/** Filter observed attributes to this list. */
|
|
276
|
+
attributeFilter?: string[];
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* State tracked by {@link useMutationObserver}.
|
|
280
|
+
*/
|
|
281
|
+
export interface MutationObserverState {
|
|
282
|
+
/** The list of mutations from the most recent callback. */
|
|
283
|
+
mutations: MutationRecord[];
|
|
284
|
+
/** Total number of mutation callbacks received. */
|
|
285
|
+
count: number;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Extended handle returned by {@link useMutationObserver}.
|
|
289
|
+
*
|
|
290
|
+
* Exposes `observe()`, `takeRecords()`, and `destroy()` for manual lifecycle control.
|
|
291
|
+
*/
|
|
292
|
+
export interface MutationObserverSignal extends MediaSignalHandle<MutationObserverState> {
|
|
293
|
+
/** Start observing mutations on the given target. Uses the options from construction time. */
|
|
294
|
+
observe(target: Node): void;
|
|
295
|
+
/** Take and clear any pending mutation records. */
|
|
296
|
+
takeRecords(): MutationRecord[];
|
|
297
|
+
}
|
|
173
298
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/media/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAAE,SAAQ,oBA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MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,mDAAmD;IACnD,WAAW,IAAI,cAAc,EAAE,CAAC;CACjC"}
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
import { n as d } from "./core-DdtZHzsS.js";
|
|
2
|
+
import { g as f } from "./reactive-BjpLkclt.js";
|
|
3
|
+
var A = (i) => {
|
|
4
|
+
const r = d(!1);
|
|
5
|
+
let a;
|
|
6
|
+
if (typeof window < "u" && typeof window.matchMedia == "function") try {
|
|
7
|
+
const t = window.matchMedia(i);
|
|
8
|
+
r.value = t.matches;
|
|
9
|
+
const o = (l) => {
|
|
10
|
+
r.value = l.matches;
|
|
11
|
+
};
|
|
12
|
+
if (typeof t.addEventListener == "function")
|
|
13
|
+
t.addEventListener("change", o), a = () => {
|
|
14
|
+
t.removeEventListener("change", o);
|
|
15
|
+
};
|
|
16
|
+
else if (typeof t.addListener == "function") {
|
|
17
|
+
const l = t;
|
|
18
|
+
l.addListener(o), a = () => {
|
|
19
|
+
l.removeListener(o);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
const e = f(r);
|
|
25
|
+
let n = !1;
|
|
26
|
+
return Object.defineProperty(e, "destroy", {
|
|
27
|
+
enumerable: !1,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
value() {
|
|
30
|
+
n || (n = !0, a?.(), r.dispose());
|
|
31
|
+
}
|
|
32
|
+
}), e;
|
|
33
|
+
}, R = (i) => {
|
|
34
|
+
const r = {}, a = [];
|
|
35
|
+
for (const t of Object.keys(i)) {
|
|
36
|
+
const o = i[t], l = d(!1);
|
|
37
|
+
let s;
|
|
38
|
+
if (typeof window < "u" && typeof window.matchMedia == "function") try {
|
|
39
|
+
const v = window.matchMedia(`(min-width: ${o}px)`);
|
|
40
|
+
l.value = v.matches;
|
|
41
|
+
const c = (h) => {
|
|
42
|
+
l.value = h.matches;
|
|
43
|
+
};
|
|
44
|
+
if (typeof v.addEventListener == "function")
|
|
45
|
+
v.addEventListener("change", c), s = () => {
|
|
46
|
+
v.removeEventListener("change", c);
|
|
47
|
+
};
|
|
48
|
+
else {
|
|
49
|
+
const h = v;
|
|
50
|
+
typeof h.addListener == "function" && (h.addListener(c), s = () => {
|
|
51
|
+
h.removeListener?.(c);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
} catch {
|
|
55
|
+
}
|
|
56
|
+
const u = f(l);
|
|
57
|
+
let g = !1;
|
|
58
|
+
Object.defineProperty(u, "destroy", {
|
|
59
|
+
enumerable: !1,
|
|
60
|
+
configurable: !0,
|
|
61
|
+
value() {
|
|
62
|
+
g || (g = !0, s?.(), l.dispose());
|
|
63
|
+
}
|
|
64
|
+
}), a.push(u.destroy), r[t] = u;
|
|
65
|
+
}
|
|
66
|
+
let e = !1;
|
|
67
|
+
const n = Object.defineProperty(r, "destroyAll", {
|
|
68
|
+
enumerable: !1,
|
|
69
|
+
configurable: !0,
|
|
70
|
+
value() {
|
|
71
|
+
e || (e = !0, a.forEach((t) => {
|
|
72
|
+
t();
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return Object.prototype.hasOwnProperty.call(r, "destroy") || Object.defineProperty(n, "destroy", {
|
|
77
|
+
enumerable: !1,
|
|
78
|
+
configurable: !0,
|
|
79
|
+
value: n.destroyAll
|
|
80
|
+
}), n;
|
|
81
|
+
}, b = (i, r) => r >= i ? "portrait" : "landscape", z = () => {
|
|
82
|
+
const i = d({
|
|
83
|
+
width: typeof window < "u" ? window.innerWidth : 0,
|
|
84
|
+
height: typeof window < "u" ? window.innerHeight : 0,
|
|
85
|
+
orientation: typeof window < "u" ? b(window.innerWidth, window.innerHeight) : "portrait"
|
|
86
|
+
});
|
|
87
|
+
let r;
|
|
88
|
+
if (typeof window < "u") {
|
|
89
|
+
const n = () => {
|
|
90
|
+
i.value = {
|
|
91
|
+
width: window.innerWidth,
|
|
92
|
+
height: window.innerHeight,
|
|
93
|
+
orientation: b(window.innerWidth, window.innerHeight)
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
window.addEventListener("resize", n), r = () => {
|
|
97
|
+
window.removeEventListener("resize", n);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
const a = f(i);
|
|
101
|
+
let e = !1;
|
|
102
|
+
return Object.defineProperty(a, "destroy", {
|
|
103
|
+
enumerable: !1,
|
|
104
|
+
configurable: !0,
|
|
105
|
+
value: () => {
|
|
106
|
+
e || (e = !0, r?.(), i.dispose());
|
|
107
|
+
}
|
|
108
|
+
}), a;
|
|
109
|
+
}, y = () => {
|
|
110
|
+
const i = typeof navigator < "u" && navigator.onLine !== void 0 ? navigator.onLine : !0, r = (typeof navigator < "u" ? navigator : void 0)?.connection;
|
|
111
|
+
return {
|
|
112
|
+
online: i,
|
|
113
|
+
effectiveType: r?.effectiveType ?? "unknown",
|
|
114
|
+
downlink: r?.downlink ?? 0,
|
|
115
|
+
rtt: r?.rtt ?? 0
|
|
116
|
+
};
|
|
117
|
+
}, I = () => {
|
|
118
|
+
const i = d(y());
|
|
119
|
+
let r;
|
|
120
|
+
if (typeof window < "u") {
|
|
121
|
+
const n = () => {
|
|
122
|
+
i.value = y();
|
|
123
|
+
};
|
|
124
|
+
window.addEventListener("online", n), window.addEventListener("offline", n);
|
|
125
|
+
const t = typeof navigator < "u" ? navigator : void 0;
|
|
126
|
+
t?.connection && typeof t.connection.addEventListener == "function" && t.connection.addEventListener("change", n), r = () => {
|
|
127
|
+
window.removeEventListener("online", n), window.removeEventListener("offline", n), t?.connection && typeof t.connection.removeEventListener == "function" && t.connection.removeEventListener("change", n);
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
const a = f(i);
|
|
131
|
+
let e = !1;
|
|
132
|
+
return Object.defineProperty(a, "destroy", {
|
|
133
|
+
value() {
|
|
134
|
+
e || (e = !0, r?.(), i.dispose());
|
|
135
|
+
},
|
|
136
|
+
enumerable: !1,
|
|
137
|
+
configurable: !0
|
|
138
|
+
}), a;
|
|
139
|
+
}, m = {
|
|
140
|
+
supported: !1,
|
|
141
|
+
charging: !1,
|
|
142
|
+
chargingTime: 0,
|
|
143
|
+
dischargingTime: 0,
|
|
144
|
+
level: 1
|
|
145
|
+
}, P = () => {
|
|
146
|
+
const i = d({ ...m });
|
|
147
|
+
let r, a = !1;
|
|
148
|
+
typeof navigator < "u" && "getBattery" in navigator && typeof navigator.getBattery == "function" && navigator.getBattery().then((n) => {
|
|
149
|
+
if (a) return;
|
|
150
|
+
const t = () => {
|
|
151
|
+
i.value = {
|
|
152
|
+
supported: !0,
|
|
153
|
+
charging: n.charging,
|
|
154
|
+
chargingTime: n.chargingTime,
|
|
155
|
+
dischargingTime: n.dischargingTime,
|
|
156
|
+
level: n.level
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
t(), n.addEventListener("chargingchange", t), n.addEventListener("chargingtimechange", t), n.addEventListener("dischargingtimechange", t), n.addEventListener("levelchange", t), r = () => {
|
|
160
|
+
n.removeEventListener("chargingchange", t), n.removeEventListener("chargingtimechange", t), n.removeEventListener("dischargingtimechange", t), n.removeEventListener("levelchange", t);
|
|
161
|
+
};
|
|
162
|
+
}).catch(() => {
|
|
163
|
+
});
|
|
164
|
+
const e = f(i);
|
|
165
|
+
return Object.defineProperty(e, "destroy", {
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
configurable: !0,
|
|
168
|
+
value() {
|
|
169
|
+
a || (a = !0, r?.(), i.dispose());
|
|
170
|
+
}
|
|
171
|
+
}), e;
|
|
172
|
+
}, p = {
|
|
173
|
+
supported: !1,
|
|
174
|
+
loading: !1,
|
|
175
|
+
latitude: null,
|
|
176
|
+
longitude: null,
|
|
177
|
+
accuracy: null,
|
|
178
|
+
altitude: null,
|
|
179
|
+
altitudeAccuracy: null,
|
|
180
|
+
heading: null,
|
|
181
|
+
speed: null,
|
|
182
|
+
timestamp: null,
|
|
183
|
+
error: null
|
|
184
|
+
}, S = (i = {}) => {
|
|
185
|
+
const { enableHighAccuracy: r = !1, maximumAge: a = 0, timeout: e = 1 / 0, watch: n = !1 } = i, t = d({ ...p });
|
|
186
|
+
let o;
|
|
187
|
+
if (typeof navigator < "u" && "geolocation" in navigator) {
|
|
188
|
+
t.value = {
|
|
189
|
+
...p,
|
|
190
|
+
supported: !0,
|
|
191
|
+
loading: !0
|
|
192
|
+
};
|
|
193
|
+
const u = {
|
|
194
|
+
enableHighAccuracy: r,
|
|
195
|
+
maximumAge: a,
|
|
196
|
+
timeout: e === 1 / 0 ? void 0 : e
|
|
197
|
+
}, g = (c) => {
|
|
198
|
+
t.value = {
|
|
199
|
+
supported: !0,
|
|
200
|
+
loading: !1,
|
|
201
|
+
latitude: c.coords.latitude,
|
|
202
|
+
longitude: c.coords.longitude,
|
|
203
|
+
accuracy: c.coords.accuracy,
|
|
204
|
+
altitude: c.coords.altitude,
|
|
205
|
+
altitudeAccuracy: c.coords.altitudeAccuracy,
|
|
206
|
+
heading: c.coords.heading,
|
|
207
|
+
speed: c.coords.speed,
|
|
208
|
+
timestamp: c.timestamp,
|
|
209
|
+
error: null
|
|
210
|
+
};
|
|
211
|
+
}, v = (c) => {
|
|
212
|
+
t.value = {
|
|
213
|
+
...t.value,
|
|
214
|
+
loading: !1,
|
|
215
|
+
error: c.message
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
if (n) {
|
|
219
|
+
const c = navigator.geolocation.watchPosition(g, v, u);
|
|
220
|
+
o = () => {
|
|
221
|
+
navigator.geolocation.clearWatch(c);
|
|
222
|
+
};
|
|
223
|
+
} else navigator.geolocation.getCurrentPosition(g, v, u);
|
|
224
|
+
}
|
|
225
|
+
const l = f(t);
|
|
226
|
+
let s = !1;
|
|
227
|
+
return Object.defineProperty(l, "destroy", {
|
|
228
|
+
enumerable: !1,
|
|
229
|
+
configurable: !0,
|
|
230
|
+
value() {
|
|
231
|
+
s || (s = !0, o?.(), t.dispose());
|
|
232
|
+
}
|
|
233
|
+
}), l;
|
|
234
|
+
}, L = {
|
|
235
|
+
acceleration: {
|
|
236
|
+
x: null,
|
|
237
|
+
y: null,
|
|
238
|
+
z: null
|
|
239
|
+
},
|
|
240
|
+
accelerationIncludingGravity: {
|
|
241
|
+
x: null,
|
|
242
|
+
y: null,
|
|
243
|
+
z: null
|
|
244
|
+
},
|
|
245
|
+
rotationRate: {
|
|
246
|
+
alpha: null,
|
|
247
|
+
beta: null,
|
|
248
|
+
gamma: null
|
|
249
|
+
},
|
|
250
|
+
interval: 0
|
|
251
|
+
}, E = {
|
|
252
|
+
alpha: null,
|
|
253
|
+
beta: null,
|
|
254
|
+
gamma: null,
|
|
255
|
+
absolute: !1
|
|
256
|
+
}, j = () => {
|
|
257
|
+
const i = d({ ...L });
|
|
258
|
+
let r;
|
|
259
|
+
if (typeof window < "u") {
|
|
260
|
+
const n = (t) => {
|
|
261
|
+
i.value = {
|
|
262
|
+
acceleration: {
|
|
263
|
+
x: t.acceleration?.x ?? null,
|
|
264
|
+
y: t.acceleration?.y ?? null,
|
|
265
|
+
z: t.acceleration?.z ?? null
|
|
266
|
+
},
|
|
267
|
+
accelerationIncludingGravity: {
|
|
268
|
+
x: t.accelerationIncludingGravity?.x ?? null,
|
|
269
|
+
y: t.accelerationIncludingGravity?.y ?? null,
|
|
270
|
+
z: t.accelerationIncludingGravity?.z ?? null
|
|
271
|
+
},
|
|
272
|
+
rotationRate: {
|
|
273
|
+
alpha: t.rotationRate?.alpha ?? null,
|
|
274
|
+
beta: t.rotationRate?.beta ?? null,
|
|
275
|
+
gamma: t.rotationRate?.gamma ?? null
|
|
276
|
+
},
|
|
277
|
+
interval: t.interval ?? 0
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
window.addEventListener("devicemotion", n), r = () => {
|
|
281
|
+
window.removeEventListener("devicemotion", n);
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
const a = f(i);
|
|
285
|
+
let e = !1;
|
|
286
|
+
return Object.defineProperty(a, "destroy", {
|
|
287
|
+
enumerable: !1,
|
|
288
|
+
configurable: !0,
|
|
289
|
+
value() {
|
|
290
|
+
e || (e = !0, r?.(), i.dispose());
|
|
291
|
+
}
|
|
292
|
+
}), a;
|
|
293
|
+
}, D = () => {
|
|
294
|
+
const i = d({ ...E });
|
|
295
|
+
let r;
|
|
296
|
+
if (typeof window < "u") {
|
|
297
|
+
const n = (t) => {
|
|
298
|
+
i.value = {
|
|
299
|
+
alpha: t.alpha ?? null,
|
|
300
|
+
beta: t.beta ?? null,
|
|
301
|
+
gamma: t.gamma ?? null,
|
|
302
|
+
absolute: t.absolute ?? !1
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
window.addEventListener("deviceorientation", n), r = () => {
|
|
306
|
+
window.removeEventListener("deviceorientation", n);
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
const a = f(i);
|
|
310
|
+
let e = !1;
|
|
311
|
+
return Object.defineProperty(a, "destroy", {
|
|
312
|
+
enumerable: !1,
|
|
313
|
+
configurable: !0,
|
|
314
|
+
value() {
|
|
315
|
+
e || (e = !0, r?.(), i.dispose());
|
|
316
|
+
}
|
|
317
|
+
}), a;
|
|
318
|
+
}, w = "bQuery media: Clipboard API is unavailable. Use a secure context (HTTPS or localhost) and ensure clipboard permissions or user-activation requirements are met.", M = {
|
|
319
|
+
read: async () => {
|
|
320
|
+
if (typeof navigator > "u" || !navigator.clipboard || typeof navigator.clipboard.readText != "function") throw new Error(w);
|
|
321
|
+
return navigator.clipboard.readText();
|
|
322
|
+
},
|
|
323
|
+
write: async (i) => {
|
|
324
|
+
if (typeof navigator > "u" || !navigator.clipboard || typeof navigator.clipboard.writeText != "function") throw new Error(w);
|
|
325
|
+
return navigator.clipboard.writeText(i);
|
|
326
|
+
}
|
|
327
|
+
}, O = (i, r) => {
|
|
328
|
+
let a;
|
|
329
|
+
r === "border-box" ? a = i.borderBoxSize : r === "device-pixel-content-box" ? a = i.devicePixelContentBoxSize : a = i.contentBoxSize;
|
|
330
|
+
const e = Array.isArray(a) ? a[0] : a;
|
|
331
|
+
return e && typeof e.inlineSize == "number" && typeof e.blockSize == "number" ? {
|
|
332
|
+
width: e.inlineSize,
|
|
333
|
+
height: e.blockSize
|
|
334
|
+
} : {
|
|
335
|
+
width: i.contentRect.width,
|
|
336
|
+
height: i.contentRect.height
|
|
337
|
+
};
|
|
338
|
+
}, k = (i, r) => {
|
|
339
|
+
const a = d({
|
|
340
|
+
isIntersecting: !1,
|
|
341
|
+
intersectionRatio: 0,
|
|
342
|
+
entry: null
|
|
343
|
+
});
|
|
344
|
+
let e, n = !1;
|
|
345
|
+
if (typeof window < "u" && typeof IntersectionObserver < "u") try {
|
|
346
|
+
if (e = new IntersectionObserver((o) => {
|
|
347
|
+
if (n) return;
|
|
348
|
+
const l = o[o.length - 1];
|
|
349
|
+
l && (a.value = {
|
|
350
|
+
isIntersecting: l.isIntersecting,
|
|
351
|
+
intersectionRatio: l.intersectionRatio,
|
|
352
|
+
entry: l
|
|
353
|
+
});
|
|
354
|
+
}, {
|
|
355
|
+
root: r?.root ?? null,
|
|
356
|
+
rootMargin: r?.rootMargin ?? "0px",
|
|
357
|
+
threshold: r?.threshold ?? 0
|
|
358
|
+
}), i) {
|
|
359
|
+
const o = Array.isArray(i) ? i : [i];
|
|
360
|
+
for (const l of o) e.observe(l);
|
|
361
|
+
}
|
|
362
|
+
} catch {
|
|
363
|
+
e && e.disconnect(), e = void 0;
|
|
364
|
+
}
|
|
365
|
+
const t = f(a);
|
|
366
|
+
return Object.defineProperties(t, {
|
|
367
|
+
observe: {
|
|
368
|
+
enumerable: !1,
|
|
369
|
+
configurable: !0,
|
|
370
|
+
value(o) {
|
|
371
|
+
if (!n) try {
|
|
372
|
+
e?.observe(o);
|
|
373
|
+
} catch {
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
unobserve: {
|
|
378
|
+
enumerable: !1,
|
|
379
|
+
configurable: !0,
|
|
380
|
+
value(o) {
|
|
381
|
+
n || e?.unobserve(o);
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
destroy: {
|
|
385
|
+
enumerable: !1,
|
|
386
|
+
configurable: !0,
|
|
387
|
+
value() {
|
|
388
|
+
n || (n = !0, e?.disconnect(), e = void 0, a.dispose());
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}), t;
|
|
392
|
+
}, B = (i, r) => {
|
|
393
|
+
const a = d({
|
|
394
|
+
width: 0,
|
|
395
|
+
height: 0,
|
|
396
|
+
entry: null
|
|
397
|
+
});
|
|
398
|
+
let e, n = !1;
|
|
399
|
+
const t = r?.box ?? "content-box", o = r?.box ? { box: r.box } : void 0;
|
|
400
|
+
if (typeof window < "u" && typeof ResizeObserver < "u") try {
|
|
401
|
+
if (e = new ResizeObserver((s) => {
|
|
402
|
+
if (n) return;
|
|
403
|
+
const u = s[s.length - 1];
|
|
404
|
+
if (u) {
|
|
405
|
+
const { width: g, height: v } = O(u, t);
|
|
406
|
+
a.value = {
|
|
407
|
+
width: g,
|
|
408
|
+
height: v,
|
|
409
|
+
entry: u
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
}), i) {
|
|
413
|
+
const s = Array.isArray(i) ? i : [i];
|
|
414
|
+
for (const u of s) e.observe(u, o);
|
|
415
|
+
}
|
|
416
|
+
} catch {
|
|
417
|
+
e && e.disconnect(), e = void 0;
|
|
418
|
+
}
|
|
419
|
+
const l = f(a);
|
|
420
|
+
return Object.defineProperties(l, {
|
|
421
|
+
observe: {
|
|
422
|
+
enumerable: !1,
|
|
423
|
+
configurable: !0,
|
|
424
|
+
value(s) {
|
|
425
|
+
if (!n) try {
|
|
426
|
+
e?.observe(s, o);
|
|
427
|
+
} catch {
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
unobserve: {
|
|
432
|
+
enumerable: !1,
|
|
433
|
+
configurable: !0,
|
|
434
|
+
value(s) {
|
|
435
|
+
n || e?.unobserve(s);
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
destroy: {
|
|
439
|
+
enumerable: !1,
|
|
440
|
+
configurable: !0,
|
|
441
|
+
value() {
|
|
442
|
+
n || (n = !0, e?.disconnect(), e = void 0, a.dispose());
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}), l;
|
|
446
|
+
}, _ = (i, r) => {
|
|
447
|
+
const a = d({
|
|
448
|
+
mutations: [],
|
|
449
|
+
count: 0
|
|
450
|
+
});
|
|
451
|
+
let e, n = !1, t = 0;
|
|
452
|
+
const o = {
|
|
453
|
+
attributes: r?.attributes ?? !0,
|
|
454
|
+
childList: r?.childList ?? !1,
|
|
455
|
+
characterData: r?.characterData ?? !1,
|
|
456
|
+
subtree: r?.subtree ?? !1,
|
|
457
|
+
attributeOldValue: r?.attributeOldValue ?? !1,
|
|
458
|
+
characterDataOldValue: r?.characterDataOldValue ?? !1,
|
|
459
|
+
...r && r.attributeFilter !== void 0 ? { attributeFilter: r.attributeFilter } : {}
|
|
460
|
+
};
|
|
461
|
+
if (!o.attributes && !o.childList && !o.characterData && (o.attributes = !0), o.attributes || (o.attributeOldValue = !1, delete o.attributeFilter), o.characterData || (o.characterDataOldValue = !1), typeof window < "u" && typeof MutationObserver < "u") try {
|
|
462
|
+
e = new MutationObserver((s) => {
|
|
463
|
+
n || (t += 1, a.value = {
|
|
464
|
+
mutations: s,
|
|
465
|
+
count: t
|
|
466
|
+
});
|
|
467
|
+
}), i && e.observe(i, o);
|
|
468
|
+
} catch {
|
|
469
|
+
e && e.disconnect(), e = void 0;
|
|
470
|
+
}
|
|
471
|
+
const l = f(a);
|
|
472
|
+
return Object.defineProperties(l, {
|
|
473
|
+
observe: {
|
|
474
|
+
enumerable: !1,
|
|
475
|
+
configurable: !0,
|
|
476
|
+
value(s) {
|
|
477
|
+
if (!n) try {
|
|
478
|
+
e?.observe(s, o);
|
|
479
|
+
} catch {
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
takeRecords: {
|
|
484
|
+
enumerable: !1,
|
|
485
|
+
configurable: !0,
|
|
486
|
+
value() {
|
|
487
|
+
return e?.takeRecords() ?? [];
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
destroy: {
|
|
491
|
+
enumerable: !1,
|
|
492
|
+
configurable: !0,
|
|
493
|
+
value() {
|
|
494
|
+
n || (n = !0, e?.disconnect(), e = void 0, a.dispose());
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}), l;
|
|
498
|
+
};
|
|
499
|
+
export {
|
|
500
|
+
j as a,
|
|
501
|
+
P as c,
|
|
502
|
+
R as d,
|
|
503
|
+
A as f,
|
|
504
|
+
M as i,
|
|
505
|
+
I as l,
|
|
506
|
+
_ as n,
|
|
507
|
+
D as o,
|
|
508
|
+
B as r,
|
|
509
|
+
S as s,
|
|
510
|
+
k as t,
|
|
511
|
+
z as u
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
//# sourceMappingURL=media-D4zLj9t-.js.map
|