wherever-dev 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +217 -17
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +21 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +5 -1
- package/dist/protocol.js.map +1 -1
- package/dist/session-pool.d.ts +92 -2
- package/dist/session-pool.d.ts.map +1 -1
- package/dist/session-pool.js +466 -14
- package/dist/session-pool.js.map +1 -1
- package/dist/session-types.d.ts +17 -0
- package/dist/session-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/public/_app/immutable/assets/0.CgLKPJWX.css +1 -0
- package/public/_app/immutable/chunks/CEg8tgYI.js +2 -0
- package/public/_app/immutable/chunks/CEg8tgYI.js.map +1 -0
- package/public/_app/immutable/chunks/CTVuBuYH.js +2 -0
- package/public/_app/immutable/chunks/{B5WJGjcR.js.map → CTVuBuYH.js.map} +1 -1
- package/public/_app/immutable/chunks/DBDAFnY6.js +2 -0
- package/public/_app/immutable/chunks/{BqMutrfe.js.map → DBDAFnY6.js.map} +1 -1
- package/public/_app/immutable/chunks/MtE7VtNZ.js +2 -0
- package/public/_app/immutable/chunks/{DiYtJzYU.js.map → MtE7VtNZ.js.map} +1 -1
- package/public/_app/immutable/chunks/S778j9fy.js +2 -0
- package/public/_app/immutable/chunks/{_lppinj8.js.map → S778j9fy.js.map} +1 -1
- package/public/_app/immutable/chunks/vMsF8lo6.js +3 -0
- package/public/_app/immutable/chunks/{DFxBx2vA.js.map → vMsF8lo6.js.map} +1 -1
- package/public/_app/immutable/chunks/ylfInSZr.js +2 -0
- package/public/_app/immutable/chunks/{BEWoN05F.js.map → ylfInSZr.js.map} +1 -1
- package/public/_app/immutable/entry/app.CklFlIiC.js +3 -0
- package/public/_app/immutable/entry/app.CklFlIiC.js.map +1 -0
- package/public/_app/immutable/entry/start.sF1k4jCY.js +2 -0
- package/public/_app/immutable/entry/start.sF1k4jCY.js.map +1 -0
- package/public/_app/immutable/nodes/0.BEHRw2jv.js +4 -0
- package/public/_app/immutable/nodes/{0.BzvDOlXz.js.map → 0.BEHRw2jv.js.map} +1 -1
- package/public/_app/immutable/nodes/1.2gk2c-6t.js +2 -0
- package/public/_app/immutable/nodes/{1.DMtW3tA5.js.map → 1.2gk2c-6t.js.map} +1 -1
- package/public/_app/immutable/nodes/2.Dto-NrSs.js +82 -0
- package/public/_app/immutable/nodes/2.Dto-NrSs.js.map +1 -0
- package/public/_app/version.json +1 -1
- package/public/index.html +16 -16
- package/public/pwa/apple-touch-icon.png +0 -0
- package/public/pwa/favicon-192.png +0 -0
- package/public/pwa/favicon-512.png +0 -0
- package/public/pwa/favicon.ico +0 -0
- package/public/pwa/favicon.svg +1 -0
- package/public/pwa/manifest.webmanifest +31 -7
- package/public/pwa/maskable-192.png +0 -0
- package/public/pwa/maskable-512.png +0 -0
- package/public/pwa/screenshot-desktop.png +0 -0
- package/public/pwa/screenshot-mobile.png +0 -0
- package/public/robots.txt +5 -0
- package/public/service-worker.js +1 -305
- package/public/_app/immutable/assets/0.DvZxoQjW.css +0 -2754
- package/public/_app/immutable/chunks/B5WJGjcR.js +0 -23
- package/public/_app/immutable/chunks/BEWoN05F.js +0 -110
- package/public/_app/immutable/chunks/BqMutrfe.js +0 -2129
- package/public/_app/immutable/chunks/DFxBx2vA.js +0 -897
- package/public/_app/immutable/chunks/DiYtJzYU.js +0 -396
- package/public/_app/immutable/chunks/_lppinj8.js +0 -879
- package/public/_app/immutable/chunks/rMw82gDs.js +0 -3048
- package/public/_app/immutable/chunks/rMw82gDs.js.map +0 -1
- package/public/_app/immutable/entry/app.BFki2czn.js +0 -309
- package/public/_app/immutable/entry/app.BFki2czn.js.map +0 -1
- package/public/_app/immutable/entry/start.BceUuq27.js +0 -6
- package/public/_app/immutable/entry/start.BceUuq27.js.map +0 -1
- package/public/_app/immutable/nodes/0.BzvDOlXz.js +0 -546
- package/public/_app/immutable/nodes/1.DMtW3tA5.js +0 -24
- package/public/_app/immutable/nodes/2.CnZp8abw.js +0 -5152
- package/public/_app/immutable/nodes/2.CnZp8abw.js.map +0 -1
- package/public/icon.png +0 -0
|
@@ -1,546 +0,0 @@
|
|
|
1
|
-
import { Q as block, l as EFFECT_TRANSPARENT, J as active_effect, B as BLOCK_EFFECT, R as REACTION_RAN, aa as effect, bd as untrack, G as TRANSITION_GLOBAL, aA as is_function, aO as queue_micro_task, aH as noop, bh as without_reactive_context, X as component_context, bg as user_pre_effect, bf as user_effect, aU as run, aV as run_all, ag as get, a1 as deep_read_state, a5 as derived, af as get$1, ac as enable_legacy_mode_flag, aN as push, aK as pop, V as child, aS as reset, b3 as sibling, bb as template_effect, ad as first_child } from "../chunks/rMw82gDs.js";
|
|
2
|
-
import { s as serviceWorker, e as each, n as notifications, b as set_attribute, i as index } from "../chunks/_lppinj8.js";
|
|
3
|
-
import { i as should_intro, d as delegate, a as append, f as from_html, s as set_text, b as delegated, g as from_svg } from "../chunks/DFxBx2vA.js";
|
|
4
|
-
import { B as BranchManager, s as setup_stores, i as if_block, a as store_get, p as prop } from "../chunks/DiYtJzYU.js";
|
|
5
|
-
function snippet(node, get_snippet, ...args) {
|
|
6
|
-
var branches = new BranchManager(node);
|
|
7
|
-
block(() => {
|
|
8
|
-
const snippet2 = get_snippet() ?? null;
|
|
9
|
-
branches.ensure(snippet2, snippet2 && ((anchor) => snippet2(anchor, ...args)));
|
|
10
|
-
}, EFFECT_TRANSPARENT);
|
|
11
|
-
}
|
|
12
|
-
const now = () => performance.now();
|
|
13
|
-
const raf = {
|
|
14
|
-
// don't access requestAnimationFrame eagerly outside method
|
|
15
|
-
// this allows basic testing of user code without JSDOM
|
|
16
|
-
// bunder will eval and remove ternary when the user's app is built
|
|
17
|
-
tick: (
|
|
18
|
-
/** @param {any} _ */
|
|
19
|
-
(_) => requestAnimationFrame(_)
|
|
20
|
-
),
|
|
21
|
-
now: () => now(),
|
|
22
|
-
tasks: /* @__PURE__ */ new Set()
|
|
23
|
-
};
|
|
24
|
-
function run_tasks() {
|
|
25
|
-
const now2 = raf.now();
|
|
26
|
-
raf.tasks.forEach((task) => {
|
|
27
|
-
if (!task.c(now2)) {
|
|
28
|
-
raf.tasks.delete(task);
|
|
29
|
-
task.f();
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
if (raf.tasks.size !== 0) {
|
|
33
|
-
raf.tick(run_tasks);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function loop(callback) {
|
|
37
|
-
let task;
|
|
38
|
-
if (raf.tasks.size === 0) {
|
|
39
|
-
raf.tick(run_tasks);
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
promise: new Promise((fulfill) => {
|
|
43
|
-
raf.tasks.add(task = { c: callback, f: fulfill });
|
|
44
|
-
}),
|
|
45
|
-
abort() {
|
|
46
|
-
raf.tasks.delete(task);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function dispatch_event(element, type) {
|
|
51
|
-
without_reactive_context(() => {
|
|
52
|
-
element.dispatchEvent(new CustomEvent(type));
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function css_property_to_camelcase(style) {
|
|
56
|
-
if (style === "float") return "cssFloat";
|
|
57
|
-
if (style === "offset") return "cssOffset";
|
|
58
|
-
if (style.startsWith("--")) return style;
|
|
59
|
-
const parts = style.split("-");
|
|
60
|
-
if (parts.length === 1) return parts[0];
|
|
61
|
-
return parts[0] + parts.slice(1).map(
|
|
62
|
-
/** @param {any} word */
|
|
63
|
-
(word) => word[0].toUpperCase() + word.slice(1)
|
|
64
|
-
).join("");
|
|
65
|
-
}
|
|
66
|
-
function css_to_keyframe(css) {
|
|
67
|
-
const keyframe = {};
|
|
68
|
-
const parts = css.split(";");
|
|
69
|
-
for (const part of parts) {
|
|
70
|
-
const [property, value] = part.split(":");
|
|
71
|
-
if (!property || value === void 0) break;
|
|
72
|
-
const formatted_property = css_property_to_camelcase(property.trim());
|
|
73
|
-
keyframe[formatted_property] = value.trim();
|
|
74
|
-
}
|
|
75
|
-
return keyframe;
|
|
76
|
-
}
|
|
77
|
-
const linear = (t) => t;
|
|
78
|
-
function transition(flags, element, get_fn, get_params) {
|
|
79
|
-
var is_global = (flags & TRANSITION_GLOBAL) !== 0;
|
|
80
|
-
var direction = "both";
|
|
81
|
-
var current_options;
|
|
82
|
-
var inert = element.inert;
|
|
83
|
-
var overflow = element.style.overflow;
|
|
84
|
-
var intro;
|
|
85
|
-
var outro;
|
|
86
|
-
function get_options() {
|
|
87
|
-
return without_reactive_context(() => {
|
|
88
|
-
return current_options ??= get_fn()(element, get_params?.() ?? /** @type {P} */
|
|
89
|
-
{}, {
|
|
90
|
-
direction
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
var transition2 = {
|
|
95
|
-
is_global,
|
|
96
|
-
in() {
|
|
97
|
-
element.inert = inert;
|
|
98
|
-
intro = animate(
|
|
99
|
-
element,
|
|
100
|
-
get_options(),
|
|
101
|
-
outro,
|
|
102
|
-
1,
|
|
103
|
-
() => {
|
|
104
|
-
dispatch_event(element, "introstart");
|
|
105
|
-
},
|
|
106
|
-
() => {
|
|
107
|
-
dispatch_event(element, "introend");
|
|
108
|
-
intro?.abort();
|
|
109
|
-
intro = current_options = void 0;
|
|
110
|
-
element.style.overflow = overflow;
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
},
|
|
114
|
-
out(fn) {
|
|
115
|
-
element.inert = true;
|
|
116
|
-
outro = animate(
|
|
117
|
-
element,
|
|
118
|
-
get_options(),
|
|
119
|
-
intro,
|
|
120
|
-
0,
|
|
121
|
-
() => {
|
|
122
|
-
dispatch_event(element, "outrostart");
|
|
123
|
-
},
|
|
124
|
-
() => {
|
|
125
|
-
dispatch_event(element, "outroend");
|
|
126
|
-
fn?.();
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
},
|
|
130
|
-
stop: () => {
|
|
131
|
-
intro?.abort();
|
|
132
|
-
outro?.abort();
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
var e = (
|
|
136
|
-
/** @type {Effect & { nodes: EffectNodes }} */
|
|
137
|
-
active_effect
|
|
138
|
-
);
|
|
139
|
-
(e.nodes.t ??= []).push(transition2);
|
|
140
|
-
if (should_intro) {
|
|
141
|
-
var run2 = is_global;
|
|
142
|
-
if (!run2) {
|
|
143
|
-
var block2 = (
|
|
144
|
-
/** @type {Effect | null} */
|
|
145
|
-
e.parent
|
|
146
|
-
);
|
|
147
|
-
while (block2 && (block2.f & EFFECT_TRANSPARENT) !== 0) {
|
|
148
|
-
while (block2 = block2.parent) {
|
|
149
|
-
if ((block2.f & BLOCK_EFFECT) !== 0) break;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
run2 = !block2 || (block2.f & REACTION_RAN) !== 0;
|
|
153
|
-
}
|
|
154
|
-
if (run2) {
|
|
155
|
-
effect(() => {
|
|
156
|
-
untrack(() => transition2.in());
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function animate(element, options, counterpart, t2, on_begin, on_finish) {
|
|
162
|
-
var is_intro = t2 === 1;
|
|
163
|
-
if (is_function(options)) {
|
|
164
|
-
var a;
|
|
165
|
-
var aborted = false;
|
|
166
|
-
queue_micro_task(() => {
|
|
167
|
-
if (aborted) return;
|
|
168
|
-
var o = options({ direction: is_intro ? "in" : "out" });
|
|
169
|
-
a = animate(element, o, counterpart, t2, on_begin, on_finish);
|
|
170
|
-
});
|
|
171
|
-
return {
|
|
172
|
-
abort: () => {
|
|
173
|
-
aborted = true;
|
|
174
|
-
a?.abort();
|
|
175
|
-
},
|
|
176
|
-
deactivate: () => a.deactivate(),
|
|
177
|
-
reset: () => a.reset(),
|
|
178
|
-
t: () => a.t()
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
counterpart?.deactivate();
|
|
182
|
-
if (!options?.duration && !options?.delay) {
|
|
183
|
-
on_begin();
|
|
184
|
-
on_finish();
|
|
185
|
-
return {
|
|
186
|
-
abort: noop,
|
|
187
|
-
deactivate: noop,
|
|
188
|
-
reset: noop,
|
|
189
|
-
t: () => t2
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
const { delay = 0, css, tick, easing = linear } = options;
|
|
193
|
-
var keyframes = [];
|
|
194
|
-
if (is_intro && counterpart === void 0) {
|
|
195
|
-
if (tick) {
|
|
196
|
-
tick(0, 1);
|
|
197
|
-
}
|
|
198
|
-
if (css) {
|
|
199
|
-
var styles = css_to_keyframe(css(0, 1));
|
|
200
|
-
keyframes.push(styles, styles);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
var get_t = () => 1 - t2;
|
|
204
|
-
var animation = element.animate(keyframes, { duration: delay, fill: "forwards" });
|
|
205
|
-
animation.onfinish = () => {
|
|
206
|
-
animation.cancel();
|
|
207
|
-
on_begin();
|
|
208
|
-
var t1 = counterpart?.t() ?? 1 - t2;
|
|
209
|
-
counterpart?.abort();
|
|
210
|
-
var delta = t2 - t1;
|
|
211
|
-
var duration = (
|
|
212
|
-
/** @type {number} */
|
|
213
|
-
options.duration * Math.abs(delta)
|
|
214
|
-
);
|
|
215
|
-
var keyframes2 = [];
|
|
216
|
-
if (duration > 0) {
|
|
217
|
-
var needs_overflow_hidden = false;
|
|
218
|
-
if (css) {
|
|
219
|
-
var n = Math.ceil(duration / (1e3 / 60));
|
|
220
|
-
for (var i = 0; i <= n; i += 1) {
|
|
221
|
-
var t = t1 + delta * easing(i / n);
|
|
222
|
-
var styles2 = css_to_keyframe(css(t, 1 - t));
|
|
223
|
-
keyframes2.push(styles2);
|
|
224
|
-
needs_overflow_hidden ||= styles2.overflow === "hidden";
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
if (needs_overflow_hidden) {
|
|
228
|
-
element.style.overflow = "hidden";
|
|
229
|
-
}
|
|
230
|
-
get_t = () => {
|
|
231
|
-
var time = (
|
|
232
|
-
/** @type {number} */
|
|
233
|
-
/** @type {globalThis.Animation} */
|
|
234
|
-
animation.currentTime
|
|
235
|
-
);
|
|
236
|
-
return t1 + delta * easing(time / duration);
|
|
237
|
-
};
|
|
238
|
-
if (tick) {
|
|
239
|
-
loop(() => {
|
|
240
|
-
if (animation.playState !== "running") return false;
|
|
241
|
-
var t3 = get_t();
|
|
242
|
-
tick(t3, 1 - t3);
|
|
243
|
-
return true;
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
animation = element.animate(keyframes2, { duration, fill: "forwards" });
|
|
248
|
-
animation.onfinish = () => {
|
|
249
|
-
get_t = () => t2;
|
|
250
|
-
tick?.(t2, 1 - t2);
|
|
251
|
-
on_finish();
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
return {
|
|
255
|
-
abort: () => {
|
|
256
|
-
if (animation) {
|
|
257
|
-
animation.cancel();
|
|
258
|
-
animation.effect = null;
|
|
259
|
-
animation.onfinish = noop;
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
deactivate: () => {
|
|
263
|
-
on_finish = noop;
|
|
264
|
-
},
|
|
265
|
-
reset: () => {
|
|
266
|
-
if (t2 === 0) {
|
|
267
|
-
tick?.(1, 0);
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
t: () => get_t()
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
function init(immutable = false) {
|
|
274
|
-
const context = (
|
|
275
|
-
/** @type {ComponentContextLegacy} */
|
|
276
|
-
component_context
|
|
277
|
-
);
|
|
278
|
-
const callbacks = context.l.u;
|
|
279
|
-
if (!callbacks) return;
|
|
280
|
-
let props = () => deep_read_state(context.s);
|
|
281
|
-
if (immutable) {
|
|
282
|
-
let version = 0;
|
|
283
|
-
let prev = (
|
|
284
|
-
/** @type {Record<string, any>} */
|
|
285
|
-
{}
|
|
286
|
-
);
|
|
287
|
-
const d = derived(() => {
|
|
288
|
-
let changed = false;
|
|
289
|
-
const props2 = context.s;
|
|
290
|
-
for (const key in props2) {
|
|
291
|
-
if (props2[key] !== prev[key]) {
|
|
292
|
-
prev[key] = props2[key];
|
|
293
|
-
changed = true;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
if (changed) version++;
|
|
297
|
-
return version;
|
|
298
|
-
});
|
|
299
|
-
props = () => get(d);
|
|
300
|
-
}
|
|
301
|
-
if (callbacks.b.length) {
|
|
302
|
-
user_pre_effect(() => {
|
|
303
|
-
observe_all(context, props);
|
|
304
|
-
run_all(callbacks.b);
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
user_effect(() => {
|
|
308
|
-
const fns = untrack(() => callbacks.m.map(run));
|
|
309
|
-
return () => {
|
|
310
|
-
for (const fn of fns) {
|
|
311
|
-
if (typeof fn === "function") {
|
|
312
|
-
fn();
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
});
|
|
317
|
-
if (callbacks.a.length) {
|
|
318
|
-
user_effect(() => {
|
|
319
|
-
observe_all(context, props);
|
|
320
|
-
run_all(callbacks.a);
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
function observe_all(context, props) {
|
|
325
|
-
if (context.l.s) {
|
|
326
|
-
for (const signal of context.l.s) get(signal);
|
|
327
|
-
}
|
|
328
|
-
props();
|
|
329
|
-
}
|
|
330
|
-
function onDocumentLoaded(callback) {
|
|
331
|
-
if (typeof document !== "undefined") {
|
|
332
|
-
if (document.readyState === "ready" || document.readyState === "interactive" || document.readyState === "complete") {
|
|
333
|
-
callback();
|
|
334
|
-
} else {
|
|
335
|
-
document.addEventListener(
|
|
336
|
-
"load",
|
|
337
|
-
function() {
|
|
338
|
-
callback();
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
once: true
|
|
342
|
-
}
|
|
343
|
-
);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
const prerender = true;
|
|
348
|
-
const trailingSlash = "always";
|
|
349
|
-
const ssr = true;
|
|
350
|
-
onDocumentLoaded(serviceWorker.register);
|
|
351
|
-
globalThis.get = get$1;
|
|
352
|
-
const _layout$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
353
|
-
__proto__: null,
|
|
354
|
-
prerender,
|
|
355
|
-
ssr,
|
|
356
|
-
trailingSlash
|
|
357
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
358
|
-
enable_legacy_mode_flag();
|
|
359
|
-
function cubic_out(t) {
|
|
360
|
-
const f = t - 1;
|
|
361
|
-
return f * f * f + 1;
|
|
362
|
-
}
|
|
363
|
-
function split_css_unit(value) {
|
|
364
|
-
const split = typeof value === "string" && value.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
365
|
-
return split ? [parseFloat(split[1]), split[2] || "px"] : [
|
|
366
|
-
/** @type {number} */
|
|
367
|
-
value,
|
|
368
|
-
"px"
|
|
369
|
-
];
|
|
370
|
-
}
|
|
371
|
-
function fly(node, { delay = 0, duration = 400, easing = cubic_out, x = 0, y = 0, opacity = 0 } = {}) {
|
|
372
|
-
const style = getComputedStyle(node);
|
|
373
|
-
const target_opacity = +style.opacity;
|
|
374
|
-
const transform = style.transform === "none" ? "" : style.transform;
|
|
375
|
-
const od = target_opacity * (1 - opacity);
|
|
376
|
-
const [x_value, x_unit] = split_css_unit(x);
|
|
377
|
-
const [y_value, y_unit] = split_css_unit(y);
|
|
378
|
-
return {
|
|
379
|
-
delay,
|
|
380
|
-
duration,
|
|
381
|
-
easing,
|
|
382
|
-
css: (t, u) => `
|
|
383
|
-
transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});
|
|
384
|
-
opacity: ${target_opacity - od * u}`
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
var root_2$1 = from_html(`<img alt="icon"/>`);
|
|
388
|
-
var root_3$1 = from_svg(`<svg class="size-6 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"></path></svg>`);
|
|
389
|
-
var root_1$1 = from_html(`<div class="pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black/5"><div class="p-4"><div class="flex items-start"><div class="shrink-0"><!></div> <div class="ml-3 w-0 flex-1 pt-0.5"><p class="text-sm font-medium text-gray-900"> </p> <p class="mt-1 text-sm text-gray-500"> </p> <div class="mt-3 flex space-x-7"><button type="button" class="rounded-md bg-white text-sm font-medium text-gray-700 hover:text-gray-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none">ok</button> <button type="button" class="rounded-md bg-white text-sm font-medium text-gray-700 hover:text-gray-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none">dismiss</button></div></div> <div class="ml-4 flex shrink-0"><button type="button" class="inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none"><span class="sr-only">Close</span> <svg class="size-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"></path></svg></button></div></div></div></div>`);
|
|
390
|
-
var root$2 = from_html(`<div aria-live="assertive" class="pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:items-start sm:p-6"><div class="flex w-full flex-col items-center space-y-4 sm:items-end"></div></div>`);
|
|
391
|
-
function Notifications($$anchor, $$props) {
|
|
392
|
-
push($$props, false);
|
|
393
|
-
const $notifications = () => store_get(notifications, "$notifications", $$stores);
|
|
394
|
-
const [$$stores, $$cleanup] = setup_stores();
|
|
395
|
-
init();
|
|
396
|
-
var div = root$2();
|
|
397
|
-
var div_1 = child(div);
|
|
398
|
-
each(div_1, 5, $notifications, index, ($$anchor2, notification) => {
|
|
399
|
-
var div_2 = root_1$1();
|
|
400
|
-
var div_3 = child(div_2);
|
|
401
|
-
var div_4 = child(div_3);
|
|
402
|
-
var div_5 = child(div_4);
|
|
403
|
-
var node = child(div_5);
|
|
404
|
-
{
|
|
405
|
-
var consequent = ($$anchor3) => {
|
|
406
|
-
var img = root_2$1();
|
|
407
|
-
template_effect(() => set_attribute(img, "src", get(notification).data.options.icon));
|
|
408
|
-
append($$anchor3, img);
|
|
409
|
-
};
|
|
410
|
-
var alternate = ($$anchor3) => {
|
|
411
|
-
var svg = root_3$1();
|
|
412
|
-
append($$anchor3, svg);
|
|
413
|
-
};
|
|
414
|
-
if_block(node, ($$render) => {
|
|
415
|
-
if (get(notification).data.options?.icon) $$render(consequent);
|
|
416
|
-
else $$render(alternate, -1);
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
reset(div_5);
|
|
420
|
-
var div_6 = sibling(div_5, 2);
|
|
421
|
-
var p = child(div_6);
|
|
422
|
-
var text = child(p, true);
|
|
423
|
-
reset(p);
|
|
424
|
-
var p_1 = sibling(p, 2);
|
|
425
|
-
var text_1 = child(p_1);
|
|
426
|
-
reset(p_1);
|
|
427
|
-
var div_7 = sibling(p_1, 2);
|
|
428
|
-
var button = child(div_7);
|
|
429
|
-
var button_1 = sibling(button, 2);
|
|
430
|
-
reset(div_7);
|
|
431
|
-
reset(div_6);
|
|
432
|
-
var div_8 = sibling(div_6, 2);
|
|
433
|
-
var button_2 = child(div_8);
|
|
434
|
-
reset(div_8);
|
|
435
|
-
reset(div_4);
|
|
436
|
-
reset(div_3);
|
|
437
|
-
reset(div_2);
|
|
438
|
-
template_effect(() => {
|
|
439
|
-
set_text(text, get(notification).data.title);
|
|
440
|
-
set_text(text_1, `${get(notification).data.options.body ?? ""}.`);
|
|
441
|
-
});
|
|
442
|
-
delegated("click", button, () => notifications.onClick(get(notification).id));
|
|
443
|
-
delegated("click", button_1, () => notifications.remove(get(notification).id));
|
|
444
|
-
delegated("click", button_2, () => notifications.remove(get(notification).id));
|
|
445
|
-
transition(3, div_2, () => fly, () => ({ delay: 250, duration: 300, x: 100 }));
|
|
446
|
-
append($$anchor2, div_2);
|
|
447
|
-
});
|
|
448
|
-
reset(div_1);
|
|
449
|
-
reset(div);
|
|
450
|
-
append($$anchor, div);
|
|
451
|
-
pop();
|
|
452
|
-
$$cleanup();
|
|
453
|
-
}
|
|
454
|
-
delegate(["click"]);
|
|
455
|
-
var root_2 = from_html(`<img/>`);
|
|
456
|
-
var root_3 = from_svg(`<svg class="size-6 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"></path></svg>`);
|
|
457
|
-
var root_1 = from_html(`<div class="pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black/5"><div class="p-4"><div class="flex items-start"><div class="shrink-0"><!></div> <div class="ml-3 w-0 flex-1 pt-0.5"><p class="text-sm font-medium text-gray-900">A new version is available.</p> <p class="mt-1 text-sm text-gray-500">Reload to get the update.</p> <div class="mt-3 flex space-x-7"><button type="button" class="rounded-md bg-white text-sm font-medium text-indigo-600 hover:text-indigo-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none">Reload</button> <button type="button" class="rounded-md bg-white text-sm font-medium text-gray-700 hover:text-gray-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none">Dismiss</button></div></div> <div class="ml-4 flex shrink-0"><button type="button" class="inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-none"><span class="sr-only">Close</span> <svg class="size-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"></path></svg></button></div></div></div></div>`);
|
|
458
|
-
var root$1 = from_html(`<div aria-live="assertive" class="pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:items-start sm:p-6"><div class="flex w-full flex-col items-center space-y-4 sm:items-end"><!></div></div>`);
|
|
459
|
-
function VersionAndInstallNotfications($$anchor, $$props) {
|
|
460
|
-
push($$props, false);
|
|
461
|
-
const $serviceWorker = () => store_get(serviceWorker, "$serviceWorker", $$stores);
|
|
462
|
-
const [$$stores, $$cleanup] = setup_stores();
|
|
463
|
-
let src = prop($$props, "src", 8);
|
|
464
|
-
let alt = prop($$props, "alt", 8);
|
|
465
|
-
function skip() {
|
|
466
|
-
serviceWorker.skip();
|
|
467
|
-
}
|
|
468
|
-
function accept() {
|
|
469
|
-
console.log(`accepting update...`);
|
|
470
|
-
serviceWorker.skipWaiting();
|
|
471
|
-
}
|
|
472
|
-
init();
|
|
473
|
-
var div = root$1();
|
|
474
|
-
var div_1 = child(div);
|
|
475
|
-
var node = child(div_1);
|
|
476
|
-
{
|
|
477
|
-
var consequent_1 = ($$anchor2) => {
|
|
478
|
-
var div_2 = root_1();
|
|
479
|
-
var div_3 = child(div_2);
|
|
480
|
-
var div_4 = child(div_3);
|
|
481
|
-
var div_5 = child(div_4);
|
|
482
|
-
var node_1 = child(div_5);
|
|
483
|
-
{
|
|
484
|
-
var consequent = ($$anchor3) => {
|
|
485
|
-
var img = root_2();
|
|
486
|
-
template_effect(() => {
|
|
487
|
-
set_attribute(img, "src", src());
|
|
488
|
-
set_attribute(img, "alt", alt());
|
|
489
|
-
});
|
|
490
|
-
append($$anchor3, img);
|
|
491
|
-
};
|
|
492
|
-
var alternate = ($$anchor3) => {
|
|
493
|
-
var svg = root_3();
|
|
494
|
-
append($$anchor3, svg);
|
|
495
|
-
};
|
|
496
|
-
if_block(node_1, ($$render) => {
|
|
497
|
-
if (src()) $$render(consequent);
|
|
498
|
-
else $$render(alternate, -1);
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
reset(div_5);
|
|
502
|
-
var div_6 = sibling(div_5, 2);
|
|
503
|
-
var div_7 = sibling(child(div_6), 4);
|
|
504
|
-
var button = child(div_7);
|
|
505
|
-
var button_1 = sibling(button, 2);
|
|
506
|
-
reset(div_7);
|
|
507
|
-
reset(div_6);
|
|
508
|
-
var div_8 = sibling(div_6, 2);
|
|
509
|
-
var button_2 = child(div_8);
|
|
510
|
-
reset(div_8);
|
|
511
|
-
reset(div_4);
|
|
512
|
-
reset(div_3);
|
|
513
|
-
reset(div_2);
|
|
514
|
-
delegated("click", button, accept);
|
|
515
|
-
delegated("click", button_1, skip);
|
|
516
|
-
delegated("click", button_2, skip);
|
|
517
|
-
transition(3, div_2, () => fly, () => ({ delay: 250, duration: 300, x: 100 }));
|
|
518
|
-
append($$anchor2, div_2);
|
|
519
|
-
};
|
|
520
|
-
if_block(node, ($$render) => {
|
|
521
|
-
if ($serviceWorker(), untrack(() => $serviceWorker() && !$serviceWorker().notSupported && !$serviceWorker().registering && $serviceWorker().updateAvailable && $serviceWorker().registration)) $$render(consequent_1);
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
reset(div_1);
|
|
525
|
-
reset(div);
|
|
526
|
-
append($$anchor, div);
|
|
527
|
-
pop();
|
|
528
|
-
$$cleanup();
|
|
529
|
-
}
|
|
530
|
-
delegate(["click"]);
|
|
531
|
-
var root = from_html(`<!> <!> <!>`, 1);
|
|
532
|
-
function _layout($$anchor, $$props) {
|
|
533
|
-
var fragment = root();
|
|
534
|
-
var node = first_child(fragment);
|
|
535
|
-
snippet(node, () => $$props.children);
|
|
536
|
-
var node_1 = sibling(node, 2);
|
|
537
|
-
Notifications(node_1, {});
|
|
538
|
-
var node_2 = sibling(node_1, 2);
|
|
539
|
-
VersionAndInstallNotfications(node_2, { src: "", alt: "" });
|
|
540
|
-
append($$anchor, fragment);
|
|
541
|
-
}
|
|
542
|
-
export {
|
|
543
|
-
_layout as component,
|
|
544
|
-
_layout$1 as universal
|
|
545
|
-
};
|
|
546
|
-
//# sourceMappingURL=0.BzvDOlXz.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { a as append, f as from_html, s as set_text } from "../chunks/DFxBx2vA.js";
|
|
2
|
-
import { aN as push, ad as first_child, bb as template_effect, aK as pop, V as child, aS as reset, b3 as sibling } from "../chunks/rMw82gDs.js";
|
|
3
|
-
import { p as page } from "../chunks/B5WJGjcR.js";
|
|
4
|
-
var root = from_html(`<h1> </h1> <p> </p>`, 1);
|
|
5
|
-
function Error($$anchor, $$props) {
|
|
6
|
-
push($$props, true);
|
|
7
|
-
var fragment = root();
|
|
8
|
-
var h1 = first_child(fragment);
|
|
9
|
-
var text = child(h1, true);
|
|
10
|
-
reset(h1);
|
|
11
|
-
var p = sibling(h1, 2);
|
|
12
|
-
var text_1 = child(p, true);
|
|
13
|
-
reset(p);
|
|
14
|
-
template_effect(() => {
|
|
15
|
-
set_text(text, page.status);
|
|
16
|
-
set_text(text_1, page.error?.message);
|
|
17
|
-
});
|
|
18
|
-
append($$anchor, fragment);
|
|
19
|
-
pop();
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
Error as component
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=1.DMtW3tA5.js.map
|