@konemono/nostr-share-component 0.0.18 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/dist/nostr-share-component.es.js +830 -745
- package/dist/nostr-share-component.js +16 -13
- package/dist/nostr-share-component.umd.js +16 -13
- package/package.json +2 -1
- package/dist/icons.d.ts +0 -4
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ur = Object.defineProperty;
|
|
2
|
+
var _e = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
-
}
|
|
14
|
-
const
|
|
15
|
-
var
|
|
16
|
-
function
|
|
5
|
+
var cr = (t, e, r) => e in t ? ur(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var R = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r), ge = (t, e, r) => e.has(t) || _e("Cannot " + r);
|
|
7
|
+
var T = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Gt = (t, e, r) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Kt = (t, e, r, n) => (ge(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
|
+
const fr = "5";
|
|
9
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
|
|
10
|
+
const vr = 1, dr = 2, hr = 16, _r = 8, gr = 1, pr = 2, ye = "[", ne = "[!", le = "]", vt = {}, br = Symbol(), $r = ["touchstart", "touchmove"];
|
|
11
|
+
function mr(t) {
|
|
12
|
+
return $r.includes(t);
|
|
13
|
+
}
|
|
14
|
+
const Ee = !1;
|
|
15
|
+
var ke = Array.isArray, se = Array.from, Tt = Object.keys, Ct = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, xr = Object.getOwnPropertyDescriptors, wr = Object.getPrototypeOf;
|
|
16
|
+
function yr(t) {
|
|
17
17
|
for (var e = 0; e < t.length; e++)
|
|
18
18
|
t[e]();
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
function
|
|
20
|
+
const M = 2, Se = 4, Lt = 8, oe = 16, q = 32, it = 64, Jt = 128, at = 256, zt = 512, z = 1024, J = 2048, bt = 4096, L = 8192, ut = 16384, Er = 32768, ie = 65536, kr = 1 << 19, Te = 1 << 20, Sr = Symbol("$state"), Ce = Symbol("legacy props"), Tr = Symbol("");
|
|
21
|
+
function Ne(t) {
|
|
22
22
|
return t === this.v;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Cr(t, e) {
|
|
25
25
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return !
|
|
27
|
+
function Nr(t) {
|
|
28
|
+
return !Cr(t, this.v);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function zr() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ar() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Rr(t) {
|
|
37
37
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Or() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/state_unsafe_local_read");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ir() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
44
44
|
}
|
|
45
|
-
let
|
|
46
|
-
function
|
|
45
|
+
let ze = !1;
|
|
46
|
+
function At(t, e) {
|
|
47
47
|
var r = {
|
|
48
48
|
f: 0,
|
|
49
49
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
50
50
|
v: t,
|
|
51
51
|
reactions: null,
|
|
52
|
-
equals:
|
|
52
|
+
equals: Ne,
|
|
53
53
|
version: 0
|
|
54
54
|
};
|
|
55
55
|
return r;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */
|
|
57
|
+
function Dr(t) {
|
|
58
|
+
return /* @__PURE__ */ Mr(At(t));
|
|
59
59
|
}
|
|
60
60
|
// @__NO_SIDE_EFFECTS__
|
|
61
|
-
function
|
|
62
|
-
const r =
|
|
63
|
-
return e || (r.equals =
|
|
61
|
+
function ae(t, e = !1) {
|
|
62
|
+
const r = At(t);
|
|
63
|
+
return e || (r.equals = Nr), r;
|
|
64
64
|
}
|
|
65
65
|
// @__NO_SIDE_EFFECTS__
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function Mr(t) {
|
|
67
|
+
return w !== null && w.f & M && (P === null ? Kr([t]) : P.push(t)), t;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function Ft(t, e) {
|
|
70
|
+
return w !== null && Jr() && w.f & (M | oe) && // If the source was created locally within the current derived, then
|
|
71
71
|
// we allow the mutation.
|
|
72
|
-
(P === null || !P.includes(t)) &&
|
|
72
|
+
(P === null || !P.includes(t)) && Ir(), Ae(t, e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return t.equals(e) || (t.v = e, t.version =
|
|
74
|
+
function Ae(t, e) {
|
|
75
|
+
return t.equals(e) || (t.v = e, t.version = Ke(), Re(t, J), p !== null && p.f & z && !(p.f & q) && (S !== null && S.includes(t) ? (G(p, J), Vt(p)) : W === null ? Wr([t]) : W.push(t))), e;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Re(t, e) {
|
|
78
78
|
var r = t.reactions;
|
|
79
79
|
if (r !== null)
|
|
80
80
|
for (var n = r.length, l = 0; l < n; l++) {
|
|
81
81
|
var s = r[l], o = s.f;
|
|
82
|
-
o &
|
|
82
|
+
o & J || (G(s, e), o & (z | at) && (o & M ? Re(
|
|
83
83
|
/** @type {Derived} */
|
|
84
84
|
s,
|
|
85
|
-
|
|
86
|
-
) :
|
|
85
|
+
bt
|
|
86
|
+
) : Vt(
|
|
87
87
|
/** @type {Effect} */
|
|
88
88
|
s
|
|
89
89
|
)));
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ue(t) {
|
|
93
93
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
94
94
|
}
|
|
95
95
|
let $ = !1;
|
|
96
|
-
function
|
|
96
|
+
function U(t) {
|
|
97
97
|
$ = t;
|
|
98
98
|
}
|
|
99
99
|
let m;
|
|
100
100
|
function F(t) {
|
|
101
101
|
if (t === null)
|
|
102
|
-
throw
|
|
102
|
+
throw ue(), vt;
|
|
103
103
|
return m = t;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function $t() {
|
|
106
106
|
return F(
|
|
107
107
|
/** @type {TemplateNode} */
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ Z(m)
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ft(t) {
|
|
112
112
|
if ($) {
|
|
113
|
-
if (/* @__PURE__ */
|
|
114
|
-
throw
|
|
113
|
+
if (/* @__PURE__ */ Z(m) !== null)
|
|
114
|
+
throw ue(), vt;
|
|
115
115
|
m = t;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Xt() {
|
|
119
119
|
for (var t = 0, e = m; ; ) {
|
|
120
120
|
if (e.nodeType === 8) {
|
|
121
121
|
var r = (
|
|
122
122
|
/** @type {Comment} */
|
|
123
123
|
e.data
|
|
124
124
|
);
|
|
125
|
-
if (r ===
|
|
125
|
+
if (r === le) {
|
|
126
126
|
if (t === 0) return e;
|
|
127
127
|
t -= 1;
|
|
128
|
-
} else (r ===
|
|
128
|
+
} else (r === ye || r === ne) && (t += 1);
|
|
129
129
|
}
|
|
130
130
|
var n = (
|
|
131
131
|
/** @type {TemplateNode} */
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ Z(e)
|
|
133
133
|
);
|
|
134
134
|
e.remove(), e = n;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
139
|
-
if (
|
|
140
|
-
|
|
137
|
+
var pe, Oe, Ie;
|
|
138
|
+
function Zt() {
|
|
139
|
+
if (pe === void 0) {
|
|
140
|
+
pe = window;
|
|
141
141
|
var t = Element.prototype, e = Node.prototype;
|
|
142
|
-
|
|
142
|
+
Oe = Nt(e, "firstChild").get, Ie = Nt(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Pt(t = "") {
|
|
146
146
|
return document.createTextNode(t);
|
|
147
147
|
}
|
|
148
148
|
// @__NO_SIDE_EFFECTS__
|
|
149
|
-
function
|
|
150
|
-
return
|
|
149
|
+
function Y(t) {
|
|
150
|
+
return Oe.call(t);
|
|
151
151
|
}
|
|
152
152
|
// @__NO_SIDE_EFFECTS__
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Z(t) {
|
|
154
|
+
return Ie.call(t);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function yt(t, e) {
|
|
157
157
|
if (!$)
|
|
158
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ Y(t);
|
|
159
159
|
var r = (
|
|
160
160
|
/** @type {TemplateNode} */
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ Y(m)
|
|
162
162
|
);
|
|
163
|
-
return r === null && (r = m.appendChild(
|
|
163
|
+
return r === null && (r = m.appendChild(Pt())), F(r), r;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function be(t, e) {
|
|
166
166
|
if (!$) {
|
|
167
167
|
var r = (
|
|
168
168
|
/** @type {DocumentFragment} */
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ Y(
|
|
170
170
|
/** @type {Node} */
|
|
171
171
|
t
|
|
172
172
|
)
|
|
173
173
|
);
|
|
174
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
174
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Z(r) : r;
|
|
175
175
|
}
|
|
176
176
|
return m;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Rt(t, e = 1, r = !1) {
|
|
179
179
|
let n = $ ? m : t;
|
|
180
180
|
for (var l; e--; )
|
|
181
181
|
l = n, n = /** @type {TemplateNode} */
|
|
182
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ Z(n);
|
|
183
183
|
if (!$)
|
|
184
184
|
return n;
|
|
185
185
|
var s = n == null ? void 0 : n.nodeType;
|
|
186
186
|
if (r && s !== 3) {
|
|
187
|
-
var o =
|
|
187
|
+
var o = Pt();
|
|
188
188
|
return n === null ? l == null || l.after(o) : n.before(o), F(o), o;
|
|
189
189
|
}
|
|
190
190
|
return F(n), /** @type {TemplateNode} */
|
|
191
191
|
n;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function De(t) {
|
|
194
194
|
t.textContent = "";
|
|
195
195
|
}
|
|
196
196
|
// @__NO_SIDE_EFFECTS__
|
|
197
|
-
function
|
|
198
|
-
var e =
|
|
199
|
-
|
|
200
|
-
var r =
|
|
197
|
+
function Lr(t) {
|
|
198
|
+
var e = M | J;
|
|
199
|
+
p === null ? e |= at : p.f |= Te;
|
|
200
|
+
var r = w !== null && w.f & M ? (
|
|
201
201
|
/** @type {Derived} */
|
|
202
|
-
|
|
202
|
+
w
|
|
203
203
|
) : null;
|
|
204
204
|
const n = {
|
|
205
205
|
children: null,
|
|
206
|
-
ctx:
|
|
206
|
+
ctx: D,
|
|
207
207
|
deps: null,
|
|
208
|
-
equals:
|
|
208
|
+
equals: Ne,
|
|
209
209
|
f: e,
|
|
210
210
|
fn: t,
|
|
211
211
|
reactions: null,
|
|
@@ -214,29 +214,29 @@ function Dr(t) {
|
|
|
214
214
|
null
|
|
215
215
|
),
|
|
216
216
|
version: 0,
|
|
217
|
-
parent: r ??
|
|
217
|
+
parent: r ?? p
|
|
218
218
|
};
|
|
219
219
|
return r !== null && (r.children ?? (r.children = [])).push(n), n;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Me(t) {
|
|
222
222
|
var e = t.children;
|
|
223
223
|
if (e !== null) {
|
|
224
224
|
t.children = null;
|
|
225
225
|
for (var r = 0; r < e.length; r += 1) {
|
|
226
226
|
var n = e[r];
|
|
227
|
-
n.f &
|
|
227
|
+
n.f & M ? ce(
|
|
228
228
|
/** @type {Derived} */
|
|
229
229
|
n
|
|
230
|
-
) :
|
|
230
|
+
) : j(
|
|
231
231
|
/** @type {Effect} */
|
|
232
232
|
n
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Fr(t) {
|
|
238
238
|
for (var e = t.parent; e !== null; ) {
|
|
239
|
-
if (!(e.f &
|
|
239
|
+
if (!(e.f & M))
|
|
240
240
|
return (
|
|
241
241
|
/** @type {Effect} */
|
|
242
242
|
e
|
|
@@ -245,35 +245,35 @@ function Ir(t) {
|
|
|
245
245
|
}
|
|
246
246
|
return null;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
var e, r =
|
|
250
|
-
|
|
248
|
+
function Le(t) {
|
|
249
|
+
var e, r = p;
|
|
250
|
+
X(Fr(t));
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
Me(t), e = We(t);
|
|
253
253
|
} finally {
|
|
254
|
-
|
|
254
|
+
X(r);
|
|
255
255
|
}
|
|
256
256
|
return e;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
var e =
|
|
260
|
-
|
|
258
|
+
function Fe(t) {
|
|
259
|
+
var e = Le(t), r = (tt || t.f & at) && t.deps !== null ? bt : z;
|
|
260
|
+
G(t, r), t.equals(e) || (t.v = e, t.version = Ke());
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
262
|
+
function ce(t) {
|
|
263
|
+
Me(t), pt(t, 0), G(t, ut), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Pr(t, e) {
|
|
266
266
|
var r = e.last;
|
|
267
267
|
r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
var l = (t &
|
|
271
|
-
ctx:
|
|
269
|
+
function ct(t, e, r, n = !0) {
|
|
270
|
+
var l = (t & it) !== 0, s = p, o = {
|
|
271
|
+
ctx: D,
|
|
272
272
|
deps: null,
|
|
273
273
|
deriveds: null,
|
|
274
274
|
nodes_start: null,
|
|
275
275
|
nodes_end: null,
|
|
276
|
-
f: t |
|
|
276
|
+
f: t | J,
|
|
277
277
|
first: null,
|
|
278
278
|
fn: e,
|
|
279
279
|
last: null,
|
|
@@ -285,119 +285,119 @@ function at(t, e, r, n = !0) {
|
|
|
285
285
|
version: 0
|
|
286
286
|
};
|
|
287
287
|
if (r) {
|
|
288
|
-
var
|
|
288
|
+
var i = nt;
|
|
289
289
|
try {
|
|
290
|
-
|
|
291
|
-
} catch (
|
|
292
|
-
throw
|
|
290
|
+
$e(!0), Ht(o), o.f |= Er;
|
|
291
|
+
} catch (d) {
|
|
292
|
+
throw j(o), d;
|
|
293
293
|
} finally {
|
|
294
|
-
|
|
294
|
+
$e(i);
|
|
295
295
|
}
|
|
296
|
-
} else e !== null &&
|
|
297
|
-
var
|
|
298
|
-
if (!
|
|
296
|
+
} else e !== null && Vt(o);
|
|
297
|
+
var u = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & Te) === 0;
|
|
298
|
+
if (!u && !l && n && (s !== null && Pr(o, s), w !== null && w.f & M)) {
|
|
299
299
|
var f = (
|
|
300
300
|
/** @type {Derived} */
|
|
301
|
-
|
|
301
|
+
w
|
|
302
302
|
);
|
|
303
303
|
(f.children ?? (f.children = [])).push(o);
|
|
304
304
|
}
|
|
305
305
|
return o;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
const e =
|
|
307
|
+
function qr(t) {
|
|
308
|
+
const e = ct(it, t, !0);
|
|
309
309
|
return () => {
|
|
310
|
-
|
|
310
|
+
j(e);
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
const e =
|
|
313
|
+
function Hr(t) {
|
|
314
|
+
const e = ct(it, t, !0);
|
|
315
315
|
return (r = {}) => new Promise((n) => {
|
|
316
|
-
r.outro ?
|
|
317
|
-
|
|
318
|
-
}) : (
|
|
316
|
+
r.outro ? It(e, () => {
|
|
317
|
+
j(e), n(void 0);
|
|
318
|
+
}) : (j(e), n(void 0));
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
return
|
|
321
|
+
function Vr(t) {
|
|
322
|
+
return ct(Se, t, !1);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
return
|
|
324
|
+
function Br(t) {
|
|
325
|
+
return ct(Lt, t, !0);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
327
|
+
function Ot(t) {
|
|
328
|
+
return fe(t);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
330
|
+
function fe(t, e = 0) {
|
|
331
|
+
return ct(Lt | oe | e, t, !0);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
333
|
+
function ht(t, e = !0) {
|
|
334
|
+
return ct(Lt | q, t, !0, e);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Pe(t) {
|
|
337
337
|
var e = t.teardown;
|
|
338
338
|
if (e !== null) {
|
|
339
|
-
const r =
|
|
340
|
-
|
|
339
|
+
const r = w;
|
|
340
|
+
ot(null);
|
|
341
341
|
try {
|
|
342
342
|
e.call(null);
|
|
343
343
|
} finally {
|
|
344
|
-
|
|
344
|
+
ot(r);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function qe(t) {
|
|
349
349
|
var e = t.deriveds;
|
|
350
350
|
if (e !== null) {
|
|
351
351
|
t.deriveds = null;
|
|
352
352
|
for (var r = 0; r < e.length; r += 1)
|
|
353
|
-
|
|
353
|
+
ce(e[r]);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function He(t, e = !1) {
|
|
357
357
|
var r = t.first;
|
|
358
358
|
for (t.first = t.last = null; r !== null; ) {
|
|
359
359
|
var n = r.next;
|
|
360
|
-
|
|
360
|
+
j(r, e), r = n;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Ur(t) {
|
|
364
364
|
for (var e = t.first; e !== null; ) {
|
|
365
365
|
var r = e.next;
|
|
366
|
-
e.f &
|
|
366
|
+
e.f & q || j(e), e = r;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function j(t, e = !0) {
|
|
370
370
|
var r = !1;
|
|
371
|
-
if ((e || t.f &
|
|
371
|
+
if ((e || t.f & kr) && t.nodes_start !== null) {
|
|
372
372
|
for (var n = t.nodes_start, l = t.nodes_end; n !== null; ) {
|
|
373
373
|
var s = n === l ? null : (
|
|
374
374
|
/** @type {TemplateNode} */
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ Z(n)
|
|
376
376
|
);
|
|
377
377
|
n.remove(), n = s;
|
|
378
378
|
}
|
|
379
379
|
r = !0;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
He(t, e && !r), qe(t), pt(t, 0), G(t, ut);
|
|
382
382
|
var o = t.transitions;
|
|
383
383
|
if (o !== null)
|
|
384
|
-
for (const
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
var
|
|
388
|
-
|
|
384
|
+
for (const u of o)
|
|
385
|
+
u.stop();
|
|
386
|
+
Pe(t);
|
|
387
|
+
var i = t.parent;
|
|
388
|
+
i !== null && i.first !== null && Ve(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ve(t) {
|
|
391
391
|
var e = t.parent, r = t.prev, n = t.next;
|
|
392
392
|
r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function It(t, e) {
|
|
395
395
|
var r = [];
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
ve(t, r, !0), Be(r, () => {
|
|
397
|
+
j(t), e && e();
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Be(t, e) {
|
|
401
401
|
var r = t.length;
|
|
402
402
|
if (r > 0) {
|
|
403
403
|
var n = () => --r || e();
|
|
@@ -406,158 +406,158 @@ function Pe(t, e) {
|
|
|
406
406
|
} else
|
|
407
407
|
e();
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ve(t, e, r) {
|
|
410
410
|
if (!(t.f & L)) {
|
|
411
411
|
if (t.f ^= L, t.transitions !== null)
|
|
412
412
|
for (const o of t.transitions)
|
|
413
413
|
(o.is_global || r) && e.push(o);
|
|
414
414
|
for (var n = t.first; n !== null; ) {
|
|
415
|
-
var l = n.next, s = (n.f &
|
|
416
|
-
|
|
415
|
+
var l = n.next, s = (n.f & ie) !== 0 || (n.f & q) !== 0;
|
|
416
|
+
ve(n, e, s ? r : !1), n = l;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
420
|
+
function Dt(t) {
|
|
421
|
+
Ue(t, !0);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Ue(t, e) {
|
|
424
424
|
if (t.f & L) {
|
|
425
|
-
|
|
425
|
+
mt(t) && Ht(t), t.f ^= L;
|
|
426
426
|
for (var r = t.first; r !== null; ) {
|
|
427
|
-
var n = r.next, l = (r.f &
|
|
428
|
-
|
|
427
|
+
var n = r.next, l = (r.f & ie) !== 0 || (r.f & q) !== 0;
|
|
428
|
+
Ue(r, l ? e : !1), r = n;
|
|
429
429
|
}
|
|
430
430
|
if (t.transitions !== null)
|
|
431
431
|
for (const s of t.transitions)
|
|
432
432
|
(s.is_global || e) && s.in();
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
let
|
|
436
|
-
function
|
|
437
|
-
|
|
438
|
-
const t =
|
|
439
|
-
|
|
435
|
+
let Mt = !1, Qt = [];
|
|
436
|
+
function Ye() {
|
|
437
|
+
Mt = !1;
|
|
438
|
+
const t = Qt.slice();
|
|
439
|
+
Qt = [], yr(t);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
441
|
+
function Yr(t) {
|
|
442
|
+
Mt || (Mt = !0, queueMicrotask(Ye)), Qt.push(t);
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
|
|
444
|
+
function jr() {
|
|
445
|
+
Mt && Ye();
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
let
|
|
449
|
-
function
|
|
450
|
-
|
|
447
|
+
const je = 0, Gr = 1;
|
|
448
|
+
let Et = !1, kt = je, _t = !1, gt = null, nt = !1;
|
|
449
|
+
function $e(t) {
|
|
450
|
+
nt = t;
|
|
451
451
|
}
|
|
452
|
-
let
|
|
453
|
-
let
|
|
454
|
-
function
|
|
455
|
-
|
|
452
|
+
let Q = [], lt = 0;
|
|
453
|
+
let w = null;
|
|
454
|
+
function ot(t) {
|
|
455
|
+
w = t;
|
|
456
456
|
}
|
|
457
|
-
let
|
|
458
|
-
function
|
|
459
|
-
|
|
457
|
+
let p = null;
|
|
458
|
+
function X(t) {
|
|
459
|
+
p = t;
|
|
460
460
|
}
|
|
461
461
|
let P = null;
|
|
462
|
-
function
|
|
462
|
+
function Kr(t) {
|
|
463
463
|
P = t;
|
|
464
464
|
}
|
|
465
|
-
let
|
|
466
|
-
function
|
|
467
|
-
|
|
465
|
+
let S = null, C = 0, W = null;
|
|
466
|
+
function Wr(t) {
|
|
467
|
+
W = t;
|
|
468
468
|
}
|
|
469
|
-
let
|
|
470
|
-
function
|
|
471
|
-
return ++
|
|
469
|
+
let Ge = 1, tt = !1, D = null;
|
|
470
|
+
function Ke() {
|
|
471
|
+
return ++Ge;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
return !
|
|
473
|
+
function Jr() {
|
|
474
|
+
return !ze;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
var o,
|
|
476
|
+
function mt(t) {
|
|
477
|
+
var o, i;
|
|
478
478
|
var e = t.f;
|
|
479
|
-
if (e &
|
|
479
|
+
if (e & J)
|
|
480
480
|
return !0;
|
|
481
|
-
if (e &
|
|
482
|
-
var r = t.deps, n = (e &
|
|
481
|
+
if (e & bt) {
|
|
482
|
+
var r = t.deps, n = (e & at) !== 0;
|
|
483
483
|
if (r !== null) {
|
|
484
484
|
var l;
|
|
485
|
-
if (e &
|
|
485
|
+
if (e & zt) {
|
|
486
486
|
for (l = 0; l < r.length; l++)
|
|
487
487
|
((o = r[l]).reactions ?? (o.reactions = [])).push(t);
|
|
488
|
-
t.f ^=
|
|
488
|
+
t.f ^= zt;
|
|
489
489
|
}
|
|
490
490
|
for (l = 0; l < r.length; l++) {
|
|
491
491
|
var s = r[l];
|
|
492
|
-
if (
|
|
492
|
+
if (mt(
|
|
493
493
|
/** @type {Derived} */
|
|
494
494
|
s
|
|
495
|
-
) &&
|
|
495
|
+
) && Fe(
|
|
496
496
|
/** @type {Derived} */
|
|
497
497
|
s
|
|
498
|
-
), n &&
|
|
498
|
+
), n && p !== null && !tt && !((i = s == null ? void 0 : s.reactions) != null && i.includes(t)) && (s.reactions ?? (s.reactions = [])).push(t), s.version > t.version)
|
|
499
499
|
return !0;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
(!n ||
|
|
502
|
+
(!n || p !== null && !tt) && G(t, z);
|
|
503
503
|
}
|
|
504
504
|
return !1;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Xr(t, e) {
|
|
507
507
|
for (var r = e; r !== null; ) {
|
|
508
|
-
if (r.f &
|
|
508
|
+
if (r.f & Jt)
|
|
509
509
|
try {
|
|
510
510
|
r.fn(t);
|
|
511
511
|
return;
|
|
512
512
|
} catch {
|
|
513
|
-
r.f ^=
|
|
513
|
+
r.f ^= Jt;
|
|
514
514
|
}
|
|
515
515
|
r = r.parent;
|
|
516
516
|
}
|
|
517
|
-
throw
|
|
517
|
+
throw Et = !1, t;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return (t.f & ut) === 0 && (t.parent === null || (t.parent.f &
|
|
519
|
+
function Zr(t) {
|
|
520
|
+
return (t.f & ut) === 0 && (t.parent === null || (t.parent.f & Jt) === 0);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
if (
|
|
524
|
-
if (r === null && (
|
|
522
|
+
function qt(t, e, r, n) {
|
|
523
|
+
if (Et) {
|
|
524
|
+
if (r === null && (Et = !1), Zr(e))
|
|
525
525
|
throw t;
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
|
-
r !== null && (
|
|
528
|
+
r !== null && (Et = !0);
|
|
529
529
|
{
|
|
530
|
-
|
|
530
|
+
Xr(t, e);
|
|
531
531
|
return;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function We(t) {
|
|
535
535
|
var c;
|
|
536
|
-
var e =
|
|
537
|
-
|
|
538
|
-
null, C = 0,
|
|
536
|
+
var e = S, r = C, n = W, l = w, s = tt, o = P, i = D, u = t.f;
|
|
537
|
+
S = /** @type {null | Value[]} */
|
|
538
|
+
null, C = 0, W = null, w = u & (q | it) ? null : t, tt = !nt && (u & at) !== 0, P = null, D = t.ctx;
|
|
539
539
|
try {
|
|
540
540
|
var f = (
|
|
541
541
|
/** @type {Function} */
|
|
542
542
|
(0, t.fn)()
|
|
543
|
-
),
|
|
544
|
-
if (
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
for (
|
|
548
|
-
|
|
543
|
+
), d = t.deps;
|
|
544
|
+
if (S !== null) {
|
|
545
|
+
var a;
|
|
546
|
+
if (pt(t, C), d !== null && C > 0)
|
|
547
|
+
for (d.length = C + S.length, a = 0; a < S.length; a++)
|
|
548
|
+
d[C + a] = S[a];
|
|
549
549
|
else
|
|
550
|
-
t.deps =
|
|
551
|
-
if (!
|
|
552
|
-
for (
|
|
553
|
-
((c =
|
|
554
|
-
} else
|
|
550
|
+
t.deps = d = S;
|
|
551
|
+
if (!tt)
|
|
552
|
+
for (a = C; a < d.length; a++)
|
|
553
|
+
((c = d[a]).reactions ?? (c.reactions = [])).push(t);
|
|
554
|
+
} else d !== null && C < d.length && (pt(t, C), d.length = C);
|
|
555
555
|
return f;
|
|
556
556
|
} finally {
|
|
557
|
-
|
|
557
|
+
S = e, C = r, W = n, w = l, tt = s, P = o, D = i;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Qr(t, e) {
|
|
561
561
|
let r = e.reactions;
|
|
562
562
|
if (r !== null) {
|
|
563
563
|
var n = r.indexOf(t);
|
|
@@ -566,206 +566,206 @@ function Xr(t, e) {
|
|
|
566
566
|
l === 0 ? r = e.reactions = null : (r[n] = r[l], r.pop());
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
r === null && e.f &
|
|
569
|
+
r === null && e.f & M && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
570
570
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
571
571
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
572
|
-
(
|
|
572
|
+
(S === null || !S.includes(e)) && (G(e, bt), e.f & (at | zt) || (e.f ^= zt), pt(
|
|
573
573
|
/** @type {Derived} **/
|
|
574
574
|
e,
|
|
575
575
|
0
|
|
576
576
|
));
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function pt(t, e) {
|
|
579
579
|
var r = t.deps;
|
|
580
580
|
if (r !== null)
|
|
581
581
|
for (var n = e; n < r.length; n++)
|
|
582
|
-
|
|
582
|
+
Qr(t, r[n]);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Ht(t) {
|
|
585
585
|
var e = t.f;
|
|
586
586
|
if (!(e & ut)) {
|
|
587
|
-
|
|
588
|
-
var r =
|
|
589
|
-
|
|
587
|
+
G(t, z);
|
|
588
|
+
var r = p, n = D;
|
|
589
|
+
p = t;
|
|
590
590
|
try {
|
|
591
|
-
e &
|
|
592
|
-
var l =
|
|
593
|
-
t.teardown = typeof l == "function" ? l : null, t.version =
|
|
591
|
+
e & oe ? Ur(t) : He(t), qe(t), Pe(t);
|
|
592
|
+
var l = We(t);
|
|
593
|
+
t.teardown = typeof l == "function" ? l : null, t.version = Ge;
|
|
594
594
|
} catch (s) {
|
|
595
|
-
|
|
595
|
+
qt(s, t, r, n || t.ctx);
|
|
596
596
|
} finally {
|
|
597
|
-
|
|
597
|
+
p = r;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
if (
|
|
603
|
-
|
|
601
|
+
function Je() {
|
|
602
|
+
if (lt > 1e3) {
|
|
603
|
+
lt = 0;
|
|
604
604
|
try {
|
|
605
|
-
|
|
605
|
+
zr();
|
|
606
606
|
} catch (t) {
|
|
607
|
-
if (
|
|
608
|
-
|
|
607
|
+
if (gt !== null)
|
|
608
|
+
qt(t, gt, null);
|
|
609
609
|
else
|
|
610
610
|
throw t;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
lt++;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Xe(t) {
|
|
616
616
|
var e = t.length;
|
|
617
617
|
if (e !== 0) {
|
|
618
|
-
|
|
619
|
-
var r =
|
|
620
|
-
|
|
618
|
+
Je();
|
|
619
|
+
var r = nt;
|
|
620
|
+
nt = !0;
|
|
621
621
|
try {
|
|
622
622
|
for (var n = 0; n < e; n++) {
|
|
623
623
|
var l = t[n];
|
|
624
|
-
l.f &
|
|
624
|
+
l.f & z || (l.f ^= z);
|
|
625
625
|
var s = [];
|
|
626
|
-
|
|
626
|
+
Ze(l, s), tn(s);
|
|
627
627
|
}
|
|
628
628
|
} finally {
|
|
629
|
-
|
|
629
|
+
nt = r;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function tn(t) {
|
|
634
634
|
var e = t.length;
|
|
635
635
|
if (e !== 0)
|
|
636
636
|
for (var r = 0; r < e; r++) {
|
|
637
637
|
var n = t[r];
|
|
638
638
|
if (!(n.f & (ut | L)))
|
|
639
639
|
try {
|
|
640
|
-
|
|
640
|
+
mt(n) && (Ht(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? Ve(n) : n.fn = null));
|
|
641
641
|
} catch (l) {
|
|
642
|
-
|
|
642
|
+
qt(l, n, null, n.ctx);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
if (
|
|
646
|
+
function en() {
|
|
647
|
+
if (_t = !1, lt > 1001)
|
|
648
648
|
return;
|
|
649
|
-
const t =
|
|
650
|
-
|
|
649
|
+
const t = Q;
|
|
650
|
+
Q = [], Xe(t), _t || (lt = 0, gt = null);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
|
|
652
|
+
function Vt(t) {
|
|
653
|
+
kt === je && (_t || (_t = !0, queueMicrotask(en))), gt = t;
|
|
654
654
|
for (var e = t; e.parent !== null; ) {
|
|
655
655
|
e = e.parent;
|
|
656
656
|
var r = e.f;
|
|
657
|
-
if (r & (
|
|
658
|
-
if (!(r &
|
|
659
|
-
e.f ^=
|
|
657
|
+
if (r & (it | q)) {
|
|
658
|
+
if (!(r & z)) return;
|
|
659
|
+
e.f ^= z;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
|
|
662
|
+
Q.push(e);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Ze(t, e) {
|
|
665
665
|
var r = t.first, n = [];
|
|
666
666
|
t: for (; r !== null; ) {
|
|
667
|
-
var l = r.f, s = (l &
|
|
667
|
+
var l = r.f, s = (l & q) !== 0, o = s && (l & z) !== 0, i = r.next;
|
|
668
668
|
if (!o && !(l & L))
|
|
669
|
-
if (l &
|
|
669
|
+
if (l & Lt) {
|
|
670
670
|
if (s)
|
|
671
|
-
r.f ^=
|
|
671
|
+
r.f ^= z;
|
|
672
672
|
else
|
|
673
673
|
try {
|
|
674
|
-
|
|
675
|
-
} catch (
|
|
676
|
-
|
|
674
|
+
mt(r) && Ht(r);
|
|
675
|
+
} catch (a) {
|
|
676
|
+
qt(a, r, null, r.ctx);
|
|
677
677
|
}
|
|
678
|
-
var
|
|
679
|
-
if (
|
|
680
|
-
r =
|
|
678
|
+
var u = r.first;
|
|
679
|
+
if (u !== null) {
|
|
680
|
+
r = u;
|
|
681
681
|
continue;
|
|
682
682
|
}
|
|
683
|
-
} else l &
|
|
684
|
-
if (
|
|
685
|
-
let
|
|
686
|
-
for (;
|
|
687
|
-
if (t ===
|
|
683
|
+
} else l & Se && n.push(r);
|
|
684
|
+
if (i === null) {
|
|
685
|
+
let a = r.parent;
|
|
686
|
+
for (; a !== null; ) {
|
|
687
|
+
if (t === a)
|
|
688
688
|
break t;
|
|
689
|
-
var f =
|
|
689
|
+
var f = a.next;
|
|
690
690
|
if (f !== null) {
|
|
691
691
|
r = f;
|
|
692
692
|
continue t;
|
|
693
693
|
}
|
|
694
|
-
|
|
694
|
+
a = a.parent;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
r =
|
|
697
|
+
r = i;
|
|
698
698
|
}
|
|
699
|
-
for (var
|
|
700
|
-
|
|
699
|
+
for (var d = 0; d < n.length; d++)
|
|
700
|
+
u = n[d], e.push(u), Ze(u, e);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
var e =
|
|
702
|
+
function N(t) {
|
|
703
|
+
var e = kt, r = Q;
|
|
704
704
|
try {
|
|
705
|
-
|
|
705
|
+
Je();
|
|
706
706
|
const l = [];
|
|
707
|
-
|
|
707
|
+
kt = Gr, Q = l, _t = !1, Xe(r);
|
|
708
708
|
var n = t == null ? void 0 : t();
|
|
709
|
-
return
|
|
709
|
+
return jr(), (Q.length > 0 || l.length > 0) && N(), lt = 0, gt = null, n;
|
|
710
710
|
} finally {
|
|
711
|
-
|
|
711
|
+
kt = e, Q = r;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
var
|
|
716
|
-
var e = t.f, r = (e &
|
|
714
|
+
function I(t) {
|
|
715
|
+
var d;
|
|
716
|
+
var e = t.f, r = (e & M) !== 0;
|
|
717
717
|
if (r && e & ut) {
|
|
718
|
-
var n =
|
|
718
|
+
var n = Le(
|
|
719
719
|
/** @type {Derived} */
|
|
720
720
|
t
|
|
721
721
|
);
|
|
722
|
-
return
|
|
722
|
+
return ce(
|
|
723
723
|
/** @type {Derived} */
|
|
724
724
|
t
|
|
725
725
|
), n;
|
|
726
726
|
}
|
|
727
|
-
if (
|
|
728
|
-
P !== null && P.includes(t) &&
|
|
729
|
-
var l =
|
|
730
|
-
|
|
727
|
+
if (w !== null) {
|
|
728
|
+
P !== null && P.includes(t) && Or();
|
|
729
|
+
var l = w.deps;
|
|
730
|
+
S === null && l !== null && l[C] === t ? C++ : S === null ? S = [t] : S.push(t), W !== null && p !== null && p.f & z && !(p.f & q) && W.includes(t) && (G(p, J), Vt(p));
|
|
731
731
|
} else if (r && /** @type {Derived} */
|
|
732
732
|
t.deps === null)
|
|
733
733
|
for (var s = (
|
|
734
734
|
/** @type {Derived} */
|
|
735
735
|
t
|
|
736
|
-
), o = s.parent,
|
|
737
|
-
if (o.f &
|
|
738
|
-
var
|
|
736
|
+
), o = s.parent, i = s; o !== null; )
|
|
737
|
+
if (o.f & M) {
|
|
738
|
+
var u = (
|
|
739
739
|
/** @type {Derived} */
|
|
740
740
|
o
|
|
741
741
|
);
|
|
742
|
-
|
|
742
|
+
i = u, o = u.parent;
|
|
743
743
|
} else {
|
|
744
744
|
var f = (
|
|
745
745
|
/** @type {Effect} */
|
|
746
746
|
o
|
|
747
747
|
);
|
|
748
|
-
(
|
|
748
|
+
(d = f.deriveds) != null && d.includes(i) || (f.deriveds ?? (f.deriveds = [])).push(i);
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
751
|
return r && (s = /** @type {Derived} */
|
|
752
|
-
t,
|
|
752
|
+
t, mt(s) && Fe(s)), t.v;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
const e =
|
|
754
|
+
function rn(t) {
|
|
755
|
+
const e = w;
|
|
756
756
|
try {
|
|
757
|
-
return
|
|
757
|
+
return w = null, t();
|
|
758
758
|
} finally {
|
|
759
|
-
|
|
759
|
+
w = e;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
const
|
|
763
|
-
function
|
|
764
|
-
t.f = t.f &
|
|
762
|
+
const nn = ~(J | bt | z);
|
|
763
|
+
function G(t, e) {
|
|
764
|
+
t.f = t.f & nn | e;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
|
|
768
|
-
p:
|
|
766
|
+
function Bt(t, e = !1, r) {
|
|
767
|
+
D = {
|
|
768
|
+
p: D,
|
|
769
769
|
c: null,
|
|
770
770
|
e: null,
|
|
771
771
|
m: !1,
|
|
@@ -774,47 +774,47 @@ function ue(t, e = !1, r) {
|
|
|
774
774
|
l: null
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
const e =
|
|
777
|
+
function Ut(t) {
|
|
778
|
+
const e = D;
|
|
779
779
|
if (e !== null) {
|
|
780
780
|
t !== void 0 && (e.x = t);
|
|
781
781
|
const o = e.e;
|
|
782
782
|
if (o !== null) {
|
|
783
|
-
var r =
|
|
783
|
+
var r = p, n = w;
|
|
784
784
|
e.e = null;
|
|
785
785
|
try {
|
|
786
786
|
for (var l = 0; l < o.length; l++) {
|
|
787
787
|
var s = o[l];
|
|
788
|
-
|
|
788
|
+
X(s.effect), ot(s.reaction), Vr(s.fn);
|
|
789
789
|
}
|
|
790
790
|
} finally {
|
|
791
|
-
|
|
791
|
+
X(r), ot(n);
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
-
|
|
794
|
+
D = e.p, e.m = !0;
|
|
795
795
|
}
|
|
796
796
|
return t || /** @type {T} */
|
|
797
797
|
{};
|
|
798
798
|
}
|
|
799
|
-
const
|
|
800
|
-
function
|
|
799
|
+
const Qe = /* @__PURE__ */ new Set(), te = /* @__PURE__ */ new Set();
|
|
800
|
+
function tr(t) {
|
|
801
801
|
for (var e = 0; e < t.length; e++)
|
|
802
|
-
|
|
803
|
-
for (var r of
|
|
802
|
+
Qe.add(t[e]);
|
|
803
|
+
for (var r of te)
|
|
804
804
|
r(t);
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
var
|
|
806
|
+
function wt(t) {
|
|
807
|
+
var g;
|
|
808
808
|
var e = this, r = (
|
|
809
809
|
/** @type {Node} */
|
|
810
810
|
e.ownerDocument
|
|
811
|
-
), n = t.type, l = ((
|
|
811
|
+
), n = t.type, l = ((g = t.composedPath) == null ? void 0 : g.call(t)) || [], s = (
|
|
812
812
|
/** @type {null | Element} */
|
|
813
813
|
l[0] || t.target
|
|
814
|
-
), o = 0,
|
|
815
|
-
if (
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
814
|
+
), o = 0, i = t.__root;
|
|
815
|
+
if (i) {
|
|
816
|
+
var u = l.indexOf(i);
|
|
817
|
+
if (u !== -1 && (e === document || e === /** @type {any} */
|
|
818
818
|
window)) {
|
|
819
819
|
t.__root = e;
|
|
820
820
|
return;
|
|
@@ -822,7 +822,7 @@ function mt(t) {
|
|
|
822
822
|
var f = l.indexOf(e);
|
|
823
823
|
if (f === -1)
|
|
824
824
|
return;
|
|
825
|
-
|
|
825
|
+
u <= f && (o = u);
|
|
826
826
|
}
|
|
827
827
|
if (s = /** @type {Element} */
|
|
828
828
|
l[o] || t.target, s !== e) {
|
|
@@ -832,80 +832,104 @@ function mt(t) {
|
|
|
832
832
|
return s || r;
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
|
-
var
|
|
836
|
-
|
|
835
|
+
var d = w, a = p;
|
|
836
|
+
ot(null), X(null);
|
|
837
837
|
try {
|
|
838
838
|
for (var c, v = []; s !== null; ) {
|
|
839
|
-
var
|
|
839
|
+
var h = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
840
840
|
s.host || null;
|
|
841
841
|
try {
|
|
842
842
|
var _ = s["__" + n];
|
|
843
843
|
if (_ !== void 0 && !/** @type {any} */
|
|
844
844
|
s.disabled)
|
|
845
|
-
if (
|
|
846
|
-
var [
|
|
847
|
-
|
|
845
|
+
if (ke(_)) {
|
|
846
|
+
var [k, ...E] = _;
|
|
847
|
+
k.apply(s, [t, ...E]);
|
|
848
848
|
} else
|
|
849
849
|
_.call(s, t);
|
|
850
|
-
} catch (
|
|
851
|
-
c ? v.push(
|
|
850
|
+
} catch (x) {
|
|
851
|
+
c ? v.push(x) : c = x;
|
|
852
852
|
}
|
|
853
|
-
if (t.cancelBubble ||
|
|
853
|
+
if (t.cancelBubble || h === e || h === null)
|
|
854
854
|
break;
|
|
855
|
-
s =
|
|
855
|
+
s = h;
|
|
856
856
|
}
|
|
857
857
|
if (c) {
|
|
858
|
-
for (let
|
|
858
|
+
for (let x of v)
|
|
859
859
|
queueMicrotask(() => {
|
|
860
|
-
throw
|
|
860
|
+
throw x;
|
|
861
861
|
});
|
|
862
862
|
throw c;
|
|
863
863
|
}
|
|
864
864
|
} finally {
|
|
865
|
-
t.__root = e, delete t.currentTarget,
|
|
865
|
+
t.__root = e, delete t.currentTarget, ot(d), X(a);
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function er(t) {
|
|
870
870
|
var e = document.createElement("template");
|
|
871
871
|
return e.innerHTML = t, e.content;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function st(t, e) {
|
|
874
874
|
var r = (
|
|
875
875
|
/** @type {Effect} */
|
|
876
|
-
|
|
876
|
+
p
|
|
877
877
|
);
|
|
878
878
|
r.nodes_start === null && (r.nodes_start = t, r.nodes_end = e);
|
|
879
879
|
}
|
|
880
880
|
// @__NO_SIDE_EFFECTS__
|
|
881
|
-
function
|
|
882
|
-
var r = (e &
|
|
881
|
+
function xt(t, e) {
|
|
882
|
+
var r = (e & gr) !== 0, n = (e & pr) !== 0, l, s = !t.startsWith("<!>");
|
|
883
883
|
return () => {
|
|
884
884
|
if ($)
|
|
885
|
-
return
|
|
886
|
-
l === void 0 && (l =
|
|
887
|
-
/* @__PURE__ */
|
|
885
|
+
return st(m, null), m;
|
|
886
|
+
l === void 0 && (l = er(s ? t : "<!>" + t), r || (l = /** @type {Node} */
|
|
887
|
+
/* @__PURE__ */ Y(l)));
|
|
888
888
|
var o = (
|
|
889
889
|
/** @type {TemplateNode} */
|
|
890
890
|
n ? document.importNode(l, !0) : l.cloneNode(!0)
|
|
891
891
|
);
|
|
892
892
|
if (r) {
|
|
893
|
-
var
|
|
893
|
+
var i = (
|
|
894
894
|
/** @type {TemplateNode} */
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
),
|
|
895
|
+
/* @__PURE__ */ Y(o)
|
|
896
|
+
), u = (
|
|
897
897
|
/** @type {TemplateNode} */
|
|
898
898
|
o.lastChild
|
|
899
899
|
);
|
|
900
|
-
|
|
900
|
+
st(i, u);
|
|
901
901
|
} else
|
|
902
|
-
|
|
902
|
+
st(o, o);
|
|
903
903
|
return o;
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
|
-
|
|
906
|
+
// @__NO_SIDE_EFFECTS__
|
|
907
|
+
function ln(t, e, r = "svg") {
|
|
908
|
+
var n = !t.startsWith("<!>"), l = `<${r}>${n ? t : "<!>" + t}</${r}>`, s;
|
|
909
|
+
return () => {
|
|
910
|
+
if ($)
|
|
911
|
+
return st(m, null), m;
|
|
912
|
+
if (!s) {
|
|
913
|
+
var o = (
|
|
914
|
+
/** @type {DocumentFragment} */
|
|
915
|
+
er(l)
|
|
916
|
+
), i = (
|
|
917
|
+
/** @type {Element} */
|
|
918
|
+
/* @__PURE__ */ Y(o)
|
|
919
|
+
);
|
|
920
|
+
s = /** @type {Element} */
|
|
921
|
+
/* @__PURE__ */ Y(i);
|
|
922
|
+
}
|
|
923
|
+
var u = (
|
|
924
|
+
/** @type {TemplateNode} */
|
|
925
|
+
s.cloneNode(!0)
|
|
926
|
+
);
|
|
927
|
+
return st(u, u), u;
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
function et(t, e) {
|
|
907
931
|
if ($) {
|
|
908
|
-
|
|
932
|
+
p.nodes_end = m, $t();
|
|
909
933
|
return;
|
|
910
934
|
}
|
|
911
935
|
t !== null && t.before(
|
|
@@ -913,276 +937,276 @@ function lt(t, e) {
|
|
|
913
937
|
e
|
|
914
938
|
);
|
|
915
939
|
}
|
|
916
|
-
function
|
|
940
|
+
function sn(t, e) {
|
|
917
941
|
var r = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
918
942
|
r !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = r, t.nodeValue = r == null ? "" : r + "");
|
|
919
943
|
}
|
|
920
|
-
function
|
|
921
|
-
return
|
|
944
|
+
function rr(t, e) {
|
|
945
|
+
return nr(t, e);
|
|
922
946
|
}
|
|
923
|
-
function
|
|
924
|
-
|
|
947
|
+
function on(t, e) {
|
|
948
|
+
Zt(), e.intro = e.intro ?? !1;
|
|
925
949
|
const r = e.target, n = $, l = m;
|
|
926
950
|
try {
|
|
927
951
|
for (var s = (
|
|
928
952
|
/** @type {TemplateNode} */
|
|
929
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ Y(r)
|
|
930
954
|
); s && (s.nodeType !== 8 || /** @type {Comment} */
|
|
931
|
-
s.data !==
|
|
955
|
+
s.data !== ye); )
|
|
932
956
|
s = /** @type {TemplateNode} */
|
|
933
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ Z(s);
|
|
934
958
|
if (!s)
|
|
935
|
-
throw
|
|
936
|
-
|
|
959
|
+
throw vt;
|
|
960
|
+
U(!0), F(
|
|
937
961
|
/** @type {Comment} */
|
|
938
962
|
s
|
|
939
|
-
),
|
|
940
|
-
const o =
|
|
963
|
+
), $t();
|
|
964
|
+
const o = nr(t, { ...e, anchor: s });
|
|
941
965
|
if (m === null || m.nodeType !== 8 || /** @type {Comment} */
|
|
942
|
-
m.data !==
|
|
943
|
-
throw
|
|
944
|
-
return
|
|
966
|
+
m.data !== le)
|
|
967
|
+
throw ue(), vt;
|
|
968
|
+
return U(!1), /** @type {Exports} */
|
|
945
969
|
o;
|
|
946
970
|
} catch (o) {
|
|
947
|
-
if (o ===
|
|
948
|
-
return e.recover === !1 &&
|
|
971
|
+
if (o === vt)
|
|
972
|
+
return e.recover === !1 && Ar(), Zt(), De(r), U(!1), rr(t, e);
|
|
949
973
|
throw o;
|
|
950
974
|
} finally {
|
|
951
|
-
|
|
975
|
+
U(n), F(l);
|
|
952
976
|
}
|
|
953
977
|
}
|
|
954
|
-
const
|
|
955
|
-
function
|
|
956
|
-
|
|
957
|
-
var
|
|
958
|
-
for (var c = 0; c <
|
|
959
|
-
var v =
|
|
960
|
-
if (!
|
|
961
|
-
|
|
962
|
-
var
|
|
963
|
-
e.addEventListener(v,
|
|
964
|
-
var _ =
|
|
965
|
-
_ === void 0 ? (document.addEventListener(v,
|
|
978
|
+
const rt = /* @__PURE__ */ new Map();
|
|
979
|
+
function nr(t, { target: e, anchor: r, props: n = {}, events: l, context: s, intro: o = !0 }) {
|
|
980
|
+
Zt();
|
|
981
|
+
var i = /* @__PURE__ */ new Set(), u = (a) => {
|
|
982
|
+
for (var c = 0; c < a.length; c++) {
|
|
983
|
+
var v = a[c];
|
|
984
|
+
if (!i.has(v)) {
|
|
985
|
+
i.add(v);
|
|
986
|
+
var h = mr(v);
|
|
987
|
+
e.addEventListener(v, wt, { passive: h });
|
|
988
|
+
var _ = rt.get(v);
|
|
989
|
+
_ === void 0 ? (document.addEventListener(v, wt, { passive: h }), rt.set(v, 1)) : rt.set(v, _ + 1);
|
|
966
990
|
}
|
|
967
991
|
}
|
|
968
992
|
};
|
|
969
|
-
|
|
970
|
-
var f = void 0,
|
|
971
|
-
var
|
|
972
|
-
return
|
|
993
|
+
u(se(Qe)), te.add(u);
|
|
994
|
+
var f = void 0, d = Hr(() => {
|
|
995
|
+
var a = r ?? e.appendChild(Pt());
|
|
996
|
+
return ht(() => {
|
|
973
997
|
if (s) {
|
|
974
|
-
|
|
998
|
+
Bt({});
|
|
975
999
|
var c = (
|
|
976
1000
|
/** @type {ComponentContext} */
|
|
977
|
-
|
|
1001
|
+
D
|
|
978
1002
|
);
|
|
979
1003
|
c.c = s;
|
|
980
1004
|
}
|
|
981
|
-
l && (n.$$events = l), $ &&
|
|
1005
|
+
l && (n.$$events = l), $ && st(
|
|
982
1006
|
/** @type {TemplateNode} */
|
|
983
|
-
|
|
1007
|
+
a,
|
|
984
1008
|
null
|
|
985
|
-
), f = t(
|
|
1009
|
+
), f = t(a, n) || {}, $ && (p.nodes_end = m), s && Ut();
|
|
986
1010
|
}), () => {
|
|
987
|
-
var
|
|
988
|
-
for (var c of
|
|
989
|
-
e.removeEventListener(c,
|
|
1011
|
+
var h;
|
|
1012
|
+
for (var c of i) {
|
|
1013
|
+
e.removeEventListener(c, wt);
|
|
990
1014
|
var v = (
|
|
991
1015
|
/** @type {number} */
|
|
992
|
-
|
|
1016
|
+
rt.get(c)
|
|
993
1017
|
);
|
|
994
|
-
--v === 0 ? (document.removeEventListener(c,
|
|
1018
|
+
--v === 0 ? (document.removeEventListener(c, wt), rt.delete(c)) : rt.set(c, v);
|
|
995
1019
|
}
|
|
996
|
-
|
|
1020
|
+
te.delete(u), a !== r && ((h = a.parentNode) == null || h.removeChild(a));
|
|
997
1021
|
};
|
|
998
1022
|
});
|
|
999
|
-
return
|
|
1000
|
-
}
|
|
1001
|
-
let
|
|
1002
|
-
function
|
|
1003
|
-
const r =
|
|
1004
|
-
return r ? (
|
|
1005
|
-
}
|
|
1006
|
-
function
|
|
1007
|
-
$ &&
|
|
1008
|
-
var n = t, l = null, s = null, o =
|
|
1009
|
-
const f = (
|
|
1010
|
-
|
|
1011
|
-
},
|
|
1012
|
-
if (o === (o =
|
|
1023
|
+
return ee.set(f, d), f;
|
|
1024
|
+
}
|
|
1025
|
+
let ee = /* @__PURE__ */ new WeakMap();
|
|
1026
|
+
function an(t, e) {
|
|
1027
|
+
const r = ee.get(t);
|
|
1028
|
+
return r ? (ee.delete(t), r(e)) : Promise.resolve();
|
|
1029
|
+
}
|
|
1030
|
+
function Wt(t, e, r = !1) {
|
|
1031
|
+
$ && $t();
|
|
1032
|
+
var n = t, l = null, s = null, o = br, i = r ? ie : 0, u = !1;
|
|
1033
|
+
const f = (a, c = !0) => {
|
|
1034
|
+
u = !0, d(c, a);
|
|
1035
|
+
}, d = (a, c) => {
|
|
1036
|
+
if (o === (o = a)) return;
|
|
1013
1037
|
let v = !1;
|
|
1014
1038
|
if ($) {
|
|
1015
|
-
const
|
|
1039
|
+
const h = (
|
|
1016
1040
|
/** @type {Comment} */
|
|
1017
|
-
n.data ===
|
|
1041
|
+
n.data === ne
|
|
1018
1042
|
);
|
|
1019
|
-
!!o ===
|
|
1043
|
+
!!o === h && (n = Xt(), F(n), U(!1), v = !0);
|
|
1020
1044
|
}
|
|
1021
|
-
o ? (l ?
|
|
1045
|
+
o ? (l ? Dt(l) : c && (l = ht(() => c(n))), s && It(s, () => {
|
|
1022
1046
|
s = null;
|
|
1023
|
-
})) : (s ?
|
|
1047
|
+
})) : (s ? Dt(s) : c && (s = ht(() => c(n))), l && It(l, () => {
|
|
1024
1048
|
l = null;
|
|
1025
|
-
})), v &&
|
|
1049
|
+
})), v && U(!0);
|
|
1026
1050
|
};
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
},
|
|
1051
|
+
fe(() => {
|
|
1052
|
+
u = !1, e(f), u || d(null, null);
|
|
1053
|
+
}, i), $ && (n = m);
|
|
1030
1054
|
}
|
|
1031
|
-
function
|
|
1055
|
+
function un(t, e) {
|
|
1032
1056
|
return e;
|
|
1033
1057
|
}
|
|
1034
|
-
function
|
|
1058
|
+
function cn(t, e, r, n) {
|
|
1035
1059
|
for (var l = [], s = e.length, o = 0; o < s; o++)
|
|
1036
|
-
|
|
1037
|
-
var
|
|
1038
|
-
if (
|
|
1039
|
-
var
|
|
1060
|
+
ve(e[o].e, l, !0);
|
|
1061
|
+
var i = s > 0 && l.length === 0 && r !== null;
|
|
1062
|
+
if (i) {
|
|
1063
|
+
var u = (
|
|
1040
1064
|
/** @type {Element} */
|
|
1041
1065
|
/** @type {Element} */
|
|
1042
1066
|
r.parentNode
|
|
1043
1067
|
);
|
|
1044
|
-
|
|
1068
|
+
De(u), u.append(
|
|
1045
1069
|
/** @type {Element} */
|
|
1046
1070
|
r
|
|
1047
|
-
), n.clear(),
|
|
1071
|
+
), n.clear(), K(t, e[0].prev, e[s - 1].next);
|
|
1048
1072
|
}
|
|
1049
|
-
|
|
1073
|
+
Be(l, () => {
|
|
1050
1074
|
for (var f = 0; f < s; f++) {
|
|
1051
|
-
var
|
|
1052
|
-
|
|
1075
|
+
var d = e[f];
|
|
1076
|
+
i || (n.delete(d.k), K(t, d.prev, d.next)), j(d.e, !i);
|
|
1053
1077
|
}
|
|
1054
1078
|
});
|
|
1055
1079
|
}
|
|
1056
|
-
function
|
|
1057
|
-
var o = t,
|
|
1080
|
+
function fn(t, e, r, n, l, s = null) {
|
|
1081
|
+
var o = t, i = { flags: e, items: /* @__PURE__ */ new Map(), first: null };
|
|
1058
1082
|
{
|
|
1059
|
-
var
|
|
1083
|
+
var u = (
|
|
1060
1084
|
/** @type {Element} */
|
|
1061
1085
|
t
|
|
1062
1086
|
);
|
|
1063
1087
|
o = $ ? F(
|
|
1064
1088
|
/** @type {Comment | Text} */
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
) :
|
|
1089
|
+
/* @__PURE__ */ Y(u)
|
|
1090
|
+
) : u.appendChild(Pt());
|
|
1067
1091
|
}
|
|
1068
|
-
$ &&
|
|
1069
|
-
var f = null,
|
|
1070
|
-
|
|
1071
|
-
var
|
|
1072
|
-
if (
|
|
1092
|
+
$ && $t();
|
|
1093
|
+
var f = null, d = !1;
|
|
1094
|
+
fe(() => {
|
|
1095
|
+
var a = r(), c = ke(a) ? a : a == null ? [] : se(a), v = c.length;
|
|
1096
|
+
if (d && v === 0)
|
|
1073
1097
|
return;
|
|
1074
|
-
|
|
1075
|
-
let
|
|
1098
|
+
d = v === 0;
|
|
1099
|
+
let h = !1;
|
|
1076
1100
|
if ($) {
|
|
1077
1101
|
var _ = (
|
|
1078
1102
|
/** @type {Comment} */
|
|
1079
|
-
o.data ===
|
|
1103
|
+
o.data === ne
|
|
1080
1104
|
);
|
|
1081
|
-
_ !== (v === 0) && (o =
|
|
1105
|
+
_ !== (v === 0) && (o = Xt(), F(o), U(!1), h = !0);
|
|
1082
1106
|
}
|
|
1083
1107
|
if ($) {
|
|
1084
|
-
for (var
|
|
1108
|
+
for (var k = null, E, g = 0; g < v; g++) {
|
|
1085
1109
|
if (m.nodeType === 8 && /** @type {Comment} */
|
|
1086
|
-
m.data ===
|
|
1110
|
+
m.data === le) {
|
|
1087
1111
|
o = /** @type {Comment} */
|
|
1088
|
-
m,
|
|
1112
|
+
m, h = !0, U(!1);
|
|
1089
1113
|
break;
|
|
1090
1114
|
}
|
|
1091
|
-
var
|
|
1092
|
-
|
|
1115
|
+
var x = c[g], H = n(x, g);
|
|
1116
|
+
E = lr(
|
|
1093
1117
|
m,
|
|
1094
|
-
|
|
1095
|
-
|
|
1118
|
+
i,
|
|
1119
|
+
k,
|
|
1096
1120
|
null,
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1121
|
+
x,
|
|
1122
|
+
H,
|
|
1123
|
+
g,
|
|
1100
1124
|
l,
|
|
1101
1125
|
e
|
|
1102
|
-
),
|
|
1126
|
+
), i.items.set(H, E), k = E;
|
|
1103
1127
|
}
|
|
1104
|
-
v > 0 && F(
|
|
1128
|
+
v > 0 && F(Xt());
|
|
1105
1129
|
}
|
|
1106
1130
|
if (!$) {
|
|
1107
|
-
var
|
|
1131
|
+
var y = (
|
|
1108
1132
|
/** @type {Effect} */
|
|
1109
|
-
|
|
1133
|
+
w
|
|
1110
1134
|
);
|
|
1111
|
-
|
|
1135
|
+
vn(
|
|
1112
1136
|
c,
|
|
1113
|
-
|
|
1137
|
+
i,
|
|
1114
1138
|
o,
|
|
1115
1139
|
l,
|
|
1116
1140
|
e,
|
|
1117
|
-
(
|
|
1141
|
+
(y.f & L) !== 0,
|
|
1118
1142
|
n
|
|
1119
1143
|
);
|
|
1120
1144
|
}
|
|
1121
|
-
s !== null && (v === 0 ? f ?
|
|
1145
|
+
s !== null && (v === 0 ? f ? Dt(f) : f = ht(() => s(o)) : f !== null && It(f, () => {
|
|
1122
1146
|
f = null;
|
|
1123
|
-
})),
|
|
1147
|
+
})), h && U(!0);
|
|
1124
1148
|
}), $ && (o = m);
|
|
1125
1149
|
}
|
|
1126
|
-
function
|
|
1127
|
-
var
|
|
1128
|
-
for (
|
|
1129
|
-
if (
|
|
1130
|
-
var
|
|
1150
|
+
function vn(t, e, r, n, l, s, o, i) {
|
|
1151
|
+
var u = t.length, f = e.items, d = e.first, a = d, c, v = null, h = [], _ = [], k, E, g, x;
|
|
1152
|
+
for (x = 0; x < u; x += 1) {
|
|
1153
|
+
if (k = t[x], E = o(k, x), g = f.get(E), g === void 0) {
|
|
1154
|
+
var H = a ? (
|
|
1131
1155
|
/** @type {TemplateNode} */
|
|
1132
|
-
|
|
1156
|
+
a.e.nodes_start
|
|
1133
1157
|
) : r;
|
|
1134
|
-
v =
|
|
1135
|
-
|
|
1158
|
+
v = lr(
|
|
1159
|
+
H,
|
|
1136
1160
|
e,
|
|
1137
1161
|
v,
|
|
1138
1162
|
v === null ? e.first : v.next,
|
|
1139
|
-
y,
|
|
1140
1163
|
k,
|
|
1141
|
-
|
|
1164
|
+
E,
|
|
1165
|
+
x,
|
|
1142
1166
|
n,
|
|
1143
1167
|
l
|
|
1144
|
-
), f.set(
|
|
1168
|
+
), f.set(E, v), h = [], _ = [], a = v.next;
|
|
1145
1169
|
continue;
|
|
1146
1170
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
if (c !== void 0 && c.has(
|
|
1149
|
-
if (
|
|
1150
|
-
var
|
|
1151
|
-
v =
|
|
1152
|
-
var
|
|
1153
|
-
for (
|
|
1154
|
-
|
|
1155
|
-
for (
|
|
1156
|
-
c.delete(_[
|
|
1157
|
-
|
|
1171
|
+
if (dn(g, k, x), g.e.f & L && Dt(g.e), g !== a) {
|
|
1172
|
+
if (c !== void 0 && c.has(g)) {
|
|
1173
|
+
if (h.length < _.length) {
|
|
1174
|
+
var y = _[0], b;
|
|
1175
|
+
v = y.prev;
|
|
1176
|
+
var V = h[0], Yt = h[h.length - 1];
|
|
1177
|
+
for (b = 0; b < h.length; b += 1)
|
|
1178
|
+
me(h[b], y, r);
|
|
1179
|
+
for (b = 0; b < _.length; b += 1)
|
|
1180
|
+
c.delete(_[b]);
|
|
1181
|
+
K(e, V.prev, Yt.next), K(e, v, V), K(e, Yt, y), a = y, v = Yt, x -= 1, h = [], _ = [];
|
|
1158
1182
|
} else
|
|
1159
|
-
c.delete(
|
|
1183
|
+
c.delete(g), me(g, a, r), K(e, g.prev, g.next), K(e, g, v === null ? e.first : v.next), K(e, v, g), v = g;
|
|
1160
1184
|
continue;
|
|
1161
1185
|
}
|
|
1162
|
-
for (
|
|
1163
|
-
(s || !(
|
|
1164
|
-
if (
|
|
1186
|
+
for (h = [], _ = []; a !== null && a.k !== E; )
|
|
1187
|
+
(s || !(a.e.f & L)) && (c ?? (c = /* @__PURE__ */ new Set())).add(a), _.push(a), a = a.next;
|
|
1188
|
+
if (a === null)
|
|
1165
1189
|
continue;
|
|
1166
|
-
|
|
1190
|
+
g = a;
|
|
1167
1191
|
}
|
|
1168
|
-
|
|
1192
|
+
h.push(g), v = g, a = g.next;
|
|
1169
1193
|
}
|
|
1170
|
-
if (
|
|
1171
|
-
for (var
|
|
1172
|
-
(s || !(
|
|
1173
|
-
var
|
|
1174
|
-
if (
|
|
1175
|
-
var
|
|
1176
|
-
|
|
1194
|
+
if (a !== null || c !== void 0) {
|
|
1195
|
+
for (var jt = c === void 0 ? [] : se(c); a !== null; )
|
|
1196
|
+
(s || !(a.e.f & L)) && jt.push(a), a = a.next;
|
|
1197
|
+
var ir = jt.length;
|
|
1198
|
+
if (ir > 0) {
|
|
1199
|
+
var ar = u === 0 ? r : null;
|
|
1200
|
+
cn(e, jt, ar, f);
|
|
1177
1201
|
}
|
|
1178
1202
|
}
|
|
1179
|
-
|
|
1203
|
+
p.first = e.first && e.first.e, p.last = v && v.e;
|
|
1180
1204
|
}
|
|
1181
|
-
function
|
|
1182
|
-
|
|
1205
|
+
function dn(t, e, r, n) {
|
|
1206
|
+
Ae(t.v, e), t.i = r;
|
|
1183
1207
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var
|
|
1208
|
+
function lr(t, e, r, n, l, s, o, i, u, f) {
|
|
1209
|
+
var d = (u & vr) !== 0, a = (u & hr) === 0, c = d ? a ? /* @__PURE__ */ ae(l) : At(l) : l, v = u & dr ? At(o) : o, h = {
|
|
1186
1210
|
i: v,
|
|
1187
1211
|
v: c,
|
|
1188
1212
|
k: s,
|
|
@@ -1193,11 +1217,11 @@ function tr(t, e, r, n, l, s, o, u, a, f) {
|
|
|
1193
1217
|
next: n
|
|
1194
1218
|
};
|
|
1195
1219
|
try {
|
|
1196
|
-
return
|
|
1220
|
+
return h.e = ht(() => i(t, c, v), $), h.e.prev = r && r.e, h.e.next = n && n.e, r === null ? e.first = h : (r.next = h, r.e.next = h.e), n !== null && (n.prev = h, n.e.prev = h.e), h;
|
|
1197
1221
|
} finally {
|
|
1198
1222
|
}
|
|
1199
1223
|
}
|
|
1200
|
-
function
|
|
1224
|
+
function me(t, e, r) {
|
|
1201
1225
|
for (var n = t.next ? (
|
|
1202
1226
|
/** @type {TemplateNode} */
|
|
1203
1227
|
t.next.e.nodes_start
|
|
@@ -1210,22 +1234,22 @@ function pe(t, e, r) {
|
|
|
1210
1234
|
); s !== n; ) {
|
|
1211
1235
|
var o = (
|
|
1212
1236
|
/** @type {TemplateNode} */
|
|
1213
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ Z(s)
|
|
1214
1238
|
);
|
|
1215
1239
|
l.before(s), s = o;
|
|
1216
1240
|
}
|
|
1217
1241
|
}
|
|
1218
|
-
function
|
|
1242
|
+
function K(t, e, r) {
|
|
1219
1243
|
e === null ? t.first = r : (e.next = r, e.e.next = r && r.e), r !== null && (r.prev = e, r.e.prev = e && e.e);
|
|
1220
1244
|
}
|
|
1221
|
-
function
|
|
1222
|
-
var
|
|
1223
|
-
$ &&
|
|
1224
|
-
var s = (
|
|
1245
|
+
function hn(t, e, r, n, l) {
|
|
1246
|
+
var i;
|
|
1247
|
+
$ && $t();
|
|
1248
|
+
var s = (i = e.$$slots) == null ? void 0 : i[r], o = !1;
|
|
1225
1249
|
s === !0 && (s = e.children, o = !0), s === void 0 ? l !== null && l(t) : s(t, o ? () => n : n);
|
|
1226
1250
|
}
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1251
|
+
function de(t, e) {
|
|
1252
|
+
Yr(() => {
|
|
1229
1253
|
var r = t.getRootNode(), n = (
|
|
1230
1254
|
/** @type {ShadowRoot} */
|
|
1231
1255
|
r.host ? (
|
|
@@ -1243,82 +1267,82 @@ function er(t, e) {
|
|
|
1243
1267
|
}
|
|
1244
1268
|
});
|
|
1245
1269
|
}
|
|
1246
|
-
function
|
|
1270
|
+
function dt(t, e, r, n) {
|
|
1247
1271
|
var l = t.__attributes ?? (t.__attributes = {});
|
|
1248
|
-
$ && (l[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || l[e] !== (l[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[
|
|
1272
|
+
$ && (l[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || l[e] !== (l[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Tr] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && _n(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
|
|
1249
1273
|
}
|
|
1250
|
-
var
|
|
1251
|
-
function
|
|
1252
|
-
var e =
|
|
1274
|
+
var xe = /* @__PURE__ */ new Map();
|
|
1275
|
+
function _n(t) {
|
|
1276
|
+
var e = xe.get(t.nodeName);
|
|
1253
1277
|
if (e) return e;
|
|
1254
|
-
|
|
1278
|
+
xe.set(t.nodeName, e = []);
|
|
1255
1279
|
for (var r, n = t, l = Element.prototype; l !== n; ) {
|
|
1256
|
-
r =
|
|
1280
|
+
r = xr(n);
|
|
1257
1281
|
for (var s in r)
|
|
1258
1282
|
r[s].set && e.push(s);
|
|
1259
|
-
n =
|
|
1283
|
+
n = wr(n);
|
|
1260
1284
|
}
|
|
1261
1285
|
return e;
|
|
1262
1286
|
}
|
|
1263
|
-
function
|
|
1264
|
-
var r = t.__className, n =
|
|
1287
|
+
function we(t, e) {
|
|
1288
|
+
var r = t.__className, n = gn(e);
|
|
1265
1289
|
$ && t.className === n ? t.__className = n : (r !== n || $ && t.className !== n) && (e == null ? t.removeAttribute("class") : t.className = n, t.__className = n);
|
|
1266
1290
|
}
|
|
1267
|
-
function
|
|
1291
|
+
function gn(t) {
|
|
1268
1292
|
return t ?? "";
|
|
1269
1293
|
}
|
|
1270
|
-
function
|
|
1271
|
-
for (var e =
|
|
1294
|
+
function pn(t) {
|
|
1295
|
+
for (var e = p, r = p; e !== null && !(e.f & (q | it)); )
|
|
1272
1296
|
e = e.parent;
|
|
1273
1297
|
try {
|
|
1274
|
-
return
|
|
1298
|
+
return X(e), t();
|
|
1275
1299
|
} finally {
|
|
1276
|
-
|
|
1300
|
+
X(r);
|
|
1277
1301
|
}
|
|
1278
1302
|
}
|
|
1279
|
-
function
|
|
1280
|
-
var
|
|
1281
|
-
var l = !
|
|
1282
|
-
|
|
1303
|
+
function O(t, e, r, n) {
|
|
1304
|
+
var H;
|
|
1305
|
+
var l = !ze, s = (r & _r) !== 0, o = !1, i;
|
|
1306
|
+
i = /** @type {V} */
|
|
1283
1307
|
t[e];
|
|
1284
|
-
var
|
|
1308
|
+
var u = Sr in t || Ce in t, f = ((H = Nt(t, e)) == null ? void 0 : H.set) ?? (u && s && e in t ? (y) => t[e] = y : void 0), d = (
|
|
1285
1309
|
/** @type {V} */
|
|
1286
1310
|
n
|
|
1287
|
-
),
|
|
1288
|
-
n),
|
|
1289
|
-
|
|
1290
|
-
var
|
|
1291
|
-
if (
|
|
1292
|
-
var
|
|
1311
|
+
), a = !0, c = !1, v = () => (c = !0, a && (a = !1, d = /** @type {V} */
|
|
1312
|
+
n), d);
|
|
1313
|
+
i === void 0 && n !== void 0 && (f && l && Rr(), i = v(), f && f(i));
|
|
1314
|
+
var h;
|
|
1315
|
+
if (h = () => {
|
|
1316
|
+
var y = (
|
|
1293
1317
|
/** @type {V} */
|
|
1294
1318
|
t[e]
|
|
1295
1319
|
);
|
|
1296
|
-
return
|
|
1320
|
+
return y === void 0 ? v() : (a = !0, c = !1, y);
|
|
1297
1321
|
}, f) {
|
|
1298
1322
|
var _ = t.$$legacy;
|
|
1299
|
-
return function(
|
|
1300
|
-
return arguments.length > 0 ? ((!
|
|
1323
|
+
return function(y, b) {
|
|
1324
|
+
return arguments.length > 0 ? ((!b || _ || o) && f(b ? h() : y), y) : h();
|
|
1301
1325
|
};
|
|
1302
1326
|
}
|
|
1303
|
-
var
|
|
1304
|
-
() => /* @__PURE__ */
|
|
1305
|
-
var
|
|
1306
|
-
return
|
|
1327
|
+
var k = !1, E = !1, g = /* @__PURE__ */ ae(i), x = pn(
|
|
1328
|
+
() => /* @__PURE__ */ Lr(() => {
|
|
1329
|
+
var y = h(), b = I(g);
|
|
1330
|
+
return k ? (k = !1, E = !0, b) : (E = !1, g.v = y);
|
|
1307
1331
|
})
|
|
1308
1332
|
);
|
|
1309
|
-
return function(
|
|
1333
|
+
return function(y, b) {
|
|
1310
1334
|
if (arguments.length > 0) {
|
|
1311
|
-
const
|
|
1312
|
-
return
|
|
1335
|
+
const V = b ? I(x) : y;
|
|
1336
|
+
return x.equals(V) || (k = !0, Ft(g, V), c && d !== void 0 && (d = V), rn(() => I(x))), y;
|
|
1313
1337
|
}
|
|
1314
|
-
return
|
|
1338
|
+
return I(x);
|
|
1315
1339
|
};
|
|
1316
1340
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return new
|
|
1341
|
+
function bn(t) {
|
|
1342
|
+
return new $n(t);
|
|
1319
1343
|
}
|
|
1320
|
-
var
|
|
1321
|
-
class
|
|
1344
|
+
var B, A;
|
|
1345
|
+
class $n {
|
|
1322
1346
|
/**
|
|
1323
1347
|
* @param {ComponentConstructorOptions & {
|
|
1324
1348
|
* component: any;
|
|
@@ -1326,57 +1350,57 @@ class gn {
|
|
|
1326
1350
|
*/
|
|
1327
1351
|
constructor(e) {
|
|
1328
1352
|
/** @type {any} */
|
|
1329
|
-
|
|
1353
|
+
Gt(this, B);
|
|
1330
1354
|
/** @type {Record<string, any>} */
|
|
1331
|
-
|
|
1355
|
+
Gt(this, A);
|
|
1332
1356
|
var s;
|
|
1333
|
-
var r = /* @__PURE__ */ new Map(), n = (o,
|
|
1334
|
-
var
|
|
1335
|
-
return r.set(o,
|
|
1357
|
+
var r = /* @__PURE__ */ new Map(), n = (o, i) => {
|
|
1358
|
+
var u = /* @__PURE__ */ ae(i);
|
|
1359
|
+
return r.set(o, u), u;
|
|
1336
1360
|
};
|
|
1337
1361
|
const l = new Proxy(
|
|
1338
1362
|
{ ...e.props || {}, $$events: {} },
|
|
1339
1363
|
{
|
|
1340
|
-
get(o,
|
|
1341
|
-
return
|
|
1364
|
+
get(o, i) {
|
|
1365
|
+
return I(r.get(i) ?? n(i, Reflect.get(o, i)));
|
|
1342
1366
|
},
|
|
1343
|
-
has(o,
|
|
1344
|
-
return
|
|
1367
|
+
has(o, i) {
|
|
1368
|
+
return i === Ce ? !0 : (I(r.get(i) ?? n(i, Reflect.get(o, i))), Reflect.has(o, i));
|
|
1345
1369
|
},
|
|
1346
|
-
set(o,
|
|
1347
|
-
return
|
|
1370
|
+
set(o, i, u) {
|
|
1371
|
+
return Ft(r.get(i) ?? n(i, u), u), Reflect.set(o, i, u);
|
|
1348
1372
|
}
|
|
1349
1373
|
}
|
|
1350
1374
|
);
|
|
1351
|
-
|
|
1375
|
+
Kt(this, A, (e.hydrate ? on : rr)(e.component, {
|
|
1352
1376
|
target: e.target,
|
|
1353
1377
|
anchor: e.anchor,
|
|
1354
1378
|
props: l,
|
|
1355
1379
|
context: e.context,
|
|
1356
1380
|
intro: e.intro ?? !1,
|
|
1357
1381
|
recover: e.recover
|
|
1358
|
-
})), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) &&
|
|
1359
|
-
for (const o of Object.keys(
|
|
1382
|
+
})), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) && N(), Kt(this, B, l.$$events);
|
|
1383
|
+
for (const o of Object.keys(T(this, A)))
|
|
1360
1384
|
o === "$set" || o === "$destroy" || o === "$on" || Ct(this, o, {
|
|
1361
1385
|
get() {
|
|
1362
|
-
return
|
|
1386
|
+
return T(this, A)[o];
|
|
1363
1387
|
},
|
|
1364
1388
|
/** @param {any} value */
|
|
1365
|
-
set(
|
|
1366
|
-
|
|
1389
|
+
set(i) {
|
|
1390
|
+
T(this, A)[o] = i;
|
|
1367
1391
|
},
|
|
1368
1392
|
enumerable: !0
|
|
1369
1393
|
});
|
|
1370
|
-
|
|
1394
|
+
T(this, A).$set = /** @param {Record<string, any>} next */
|
|
1371
1395
|
(o) => {
|
|
1372
1396
|
Object.assign(l, o);
|
|
1373
|
-
},
|
|
1374
|
-
|
|
1397
|
+
}, T(this, A).$destroy = () => {
|
|
1398
|
+
an(T(this, A));
|
|
1375
1399
|
};
|
|
1376
1400
|
}
|
|
1377
1401
|
/** @param {Record<string, any>} props */
|
|
1378
1402
|
$set(e) {
|
|
1379
|
-
|
|
1403
|
+
T(this, A).$set(e);
|
|
1380
1404
|
}
|
|
1381
1405
|
/**
|
|
1382
1406
|
* @param {string} event
|
|
@@ -1384,22 +1408,22 @@ class gn {
|
|
|
1384
1408
|
* @returns {any}
|
|
1385
1409
|
*/
|
|
1386
1410
|
$on(e, r) {
|
|
1387
|
-
|
|
1411
|
+
T(this, B)[e] = T(this, B)[e] || [];
|
|
1388
1412
|
const n = (...l) => r.call(this, ...l);
|
|
1389
|
-
return
|
|
1390
|
-
|
|
1413
|
+
return T(this, B)[e].push(n), () => {
|
|
1414
|
+
T(this, B)[e] = T(this, B)[e].filter(
|
|
1391
1415
|
/** @param {any} fn */
|
|
1392
1416
|
(l) => l !== n
|
|
1393
1417
|
);
|
|
1394
1418
|
};
|
|
1395
1419
|
}
|
|
1396
1420
|
$destroy() {
|
|
1397
|
-
|
|
1421
|
+
T(this, A).$destroy();
|
|
1398
1422
|
}
|
|
1399
1423
|
}
|
|
1400
|
-
|
|
1401
|
-
let
|
|
1402
|
-
typeof HTMLElement == "function" && (
|
|
1424
|
+
B = new WeakMap(), A = new WeakMap();
|
|
1425
|
+
let sr;
|
|
1426
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
1403
1427
|
/**
|
|
1404
1428
|
* @param {*} $$componentCtor
|
|
1405
1429
|
* @param {*} $$slots
|
|
@@ -1408,25 +1432,25 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
1408
1432
|
constructor(e, r, n) {
|
|
1409
1433
|
super();
|
|
1410
1434
|
/** The Svelte component constructor */
|
|
1411
|
-
|
|
1435
|
+
R(this, "$$ctor");
|
|
1412
1436
|
/** Slots */
|
|
1413
|
-
|
|
1437
|
+
R(this, "$$s");
|
|
1414
1438
|
/** @type {any} The Svelte component instance */
|
|
1415
|
-
|
|
1439
|
+
R(this, "$$c");
|
|
1416
1440
|
/** Whether or not the custom element is connected */
|
|
1417
|
-
|
|
1441
|
+
R(this, "$$cn", !1);
|
|
1418
1442
|
/** @type {Record<string, any>} Component props data */
|
|
1419
|
-
|
|
1443
|
+
R(this, "$$d", {});
|
|
1420
1444
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1421
|
-
|
|
1445
|
+
R(this, "$$r", !1);
|
|
1422
1446
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1423
|
-
|
|
1447
|
+
R(this, "$$p_d", {});
|
|
1424
1448
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1425
|
-
|
|
1449
|
+
R(this, "$$l", {});
|
|
1426
1450
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1427
|
-
|
|
1451
|
+
R(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1428
1452
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1429
|
-
|
|
1453
|
+
R(this, "$$me");
|
|
1430
1454
|
this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
1431
1455
|
}
|
|
1432
1456
|
/**
|
|
@@ -1457,21 +1481,21 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
1457
1481
|
let e = function(l) {
|
|
1458
1482
|
return (s) => {
|
|
1459
1483
|
const o = document.createElement("slot");
|
|
1460
|
-
l !== "default" && (o.name = l),
|
|
1484
|
+
l !== "default" && (o.name = l), et(s, o);
|
|
1461
1485
|
};
|
|
1462
1486
|
};
|
|
1463
1487
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1464
1488
|
return;
|
|
1465
|
-
const r = {}, n =
|
|
1489
|
+
const r = {}, n = mn(this);
|
|
1466
1490
|
for (const l of this.$$s)
|
|
1467
1491
|
l in n && (l === "default" && !this.$$d.children ? (this.$$d.children = e(l), r.default = !0) : r[l] = e(l));
|
|
1468
1492
|
for (const l of this.attributes) {
|
|
1469
1493
|
const s = this.$$g_p(l.name);
|
|
1470
|
-
s in this.$$d || (this.$$d[s] =
|
|
1494
|
+
s in this.$$d || (this.$$d[s] = St(s, l.value, this.$$p_d, "toProp"));
|
|
1471
1495
|
}
|
|
1472
1496
|
for (const l in this.$$p_d)
|
|
1473
1497
|
!(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
|
|
1474
|
-
this.$$c =
|
|
1498
|
+
this.$$c = bn({
|
|
1475
1499
|
component: this.$$ctor,
|
|
1476
1500
|
target: this.shadowRoot || this,
|
|
1477
1501
|
props: {
|
|
@@ -1479,14 +1503,14 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
1479
1503
|
$$slots: r,
|
|
1480
1504
|
$$host: this
|
|
1481
1505
|
}
|
|
1482
|
-
}), this.$$me =
|
|
1483
|
-
|
|
1506
|
+
}), this.$$me = qr(() => {
|
|
1507
|
+
Br(() => {
|
|
1484
1508
|
var l;
|
|
1485
1509
|
this.$$r = !0;
|
|
1486
|
-
for (const s of
|
|
1510
|
+
for (const s of Tt(this.$$c)) {
|
|
1487
1511
|
if (!((l = this.$$p_d[s]) != null && l.reflect)) continue;
|
|
1488
1512
|
this.$$d[s] = this.$$c[s];
|
|
1489
|
-
const o =
|
|
1513
|
+
const o = St(
|
|
1490
1514
|
s,
|
|
1491
1515
|
this.$$d[s],
|
|
1492
1516
|
this.$$p_d,
|
|
@@ -1514,7 +1538,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
1514
1538
|
*/
|
|
1515
1539
|
attributeChangedCallback(e, r, n) {
|
|
1516
1540
|
var l;
|
|
1517
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
1541
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = St(e, n, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [e]: this.$$d[e] }));
|
|
1518
1542
|
}
|
|
1519
1543
|
disconnectedCallback() {
|
|
1520
1544
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1525,12 +1549,12 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
1525
1549
|
* @param {string} attribute_name
|
|
1526
1550
|
*/
|
|
1527
1551
|
$$g_p(e) {
|
|
1528
|
-
return
|
|
1552
|
+
return Tt(this.$$p_d).find(
|
|
1529
1553
|
(r) => this.$$p_d[r].attribute === e || !this.$$p_d[r].attribute && r.toLowerCase() === e
|
|
1530
1554
|
) || e;
|
|
1531
1555
|
}
|
|
1532
1556
|
});
|
|
1533
|
-
function
|
|
1557
|
+
function St(t, e, r, n) {
|
|
1534
1558
|
var s;
|
|
1535
1559
|
const l = (s = r[t]) == null ? void 0 : s.type;
|
|
1536
1560
|
if (e = l === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !r[t])
|
|
@@ -1561,7 +1585,7 @@ function Tt(t, e, r, n) {
|
|
|
1561
1585
|
return e;
|
|
1562
1586
|
}
|
|
1563
1587
|
}
|
|
1564
|
-
function
|
|
1588
|
+
function mn(t) {
|
|
1565
1589
|
const e = {};
|
|
1566
1590
|
return t.childNodes.forEach((r) => {
|
|
1567
1591
|
e[
|
|
@@ -1570,46 +1594,46 @@ function bn(t) {
|
|
|
1570
1594
|
] = !0;
|
|
1571
1595
|
}), e;
|
|
1572
1596
|
}
|
|
1573
|
-
function
|
|
1574
|
-
let o = class extends
|
|
1597
|
+
function he(t, e, r, n, l, s) {
|
|
1598
|
+
let o = class extends sr {
|
|
1575
1599
|
constructor() {
|
|
1576
1600
|
super(t, r, l), this.$$p_d = e;
|
|
1577
1601
|
}
|
|
1578
1602
|
static get observedAttributes() {
|
|
1579
|
-
return
|
|
1580
|
-
(
|
|
1603
|
+
return Tt(e).map(
|
|
1604
|
+
(i) => (e[i].attribute || i).toLowerCase()
|
|
1581
1605
|
);
|
|
1582
1606
|
}
|
|
1583
1607
|
};
|
|
1584
|
-
return
|
|
1585
|
-
Ct(o.prototype,
|
|
1608
|
+
return Tt(e).forEach((i) => {
|
|
1609
|
+
Ct(o.prototype, i, {
|
|
1586
1610
|
get() {
|
|
1587
|
-
return this.$$c &&
|
|
1611
|
+
return this.$$c && i in this.$$c ? this.$$c[i] : this.$$d[i];
|
|
1588
1612
|
},
|
|
1589
|
-
set(
|
|
1590
|
-
var
|
|
1591
|
-
|
|
1613
|
+
set(u) {
|
|
1614
|
+
var a;
|
|
1615
|
+
u = St(i, u, e), this.$$d[i] = u;
|
|
1592
1616
|
var f = this.$$c;
|
|
1593
1617
|
if (f) {
|
|
1594
|
-
var
|
|
1595
|
-
|
|
1618
|
+
var d = (a = Nt(f, i)) == null ? void 0 : a.get;
|
|
1619
|
+
d ? f[i] = u : f.$set({ [i]: u });
|
|
1596
1620
|
}
|
|
1597
1621
|
}
|
|
1598
1622
|
});
|
|
1599
|
-
}), n.forEach((
|
|
1600
|
-
Ct(o.prototype,
|
|
1623
|
+
}), n.forEach((i) => {
|
|
1624
|
+
Ct(o.prototype, i, {
|
|
1601
1625
|
get() {
|
|
1602
|
-
var
|
|
1603
|
-
return (
|
|
1626
|
+
var u;
|
|
1627
|
+
return (u = this.$$c) == null ? void 0 : u[i];
|
|
1604
1628
|
}
|
|
1605
1629
|
});
|
|
1606
1630
|
}), t.element = /** @type {any} */
|
|
1607
1631
|
o, o;
|
|
1608
1632
|
}
|
|
1609
|
-
const
|
|
1633
|
+
const xn = [
|
|
1610
1634
|
{
|
|
1611
1635
|
name: "nostter",
|
|
1612
|
-
url: "https://nostter.app/post?
|
|
1636
|
+
url: "https://nostter.app/post?text={text}&url={url}&title={title}",
|
|
1613
1637
|
icon: "https://nostter.app/favicon.ico"
|
|
1614
1638
|
},
|
|
1615
1639
|
{
|
|
@@ -1617,9 +1641,39 @@ const $n = [
|
|
|
1617
1641
|
url: "https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",
|
|
1618
1642
|
icon: "https://lumilumi.vercel.app/favicon.ico"
|
|
1619
1643
|
}
|
|
1644
|
+
// // Androidアプリ例
|
|
1645
|
+
// {
|
|
1646
|
+
// name: "NostrShare (Android)",
|
|
1647
|
+
// url: "intent://share?text={text}&url={url}&title={title}#Intent;package=com.nostr.share;scheme=https;end",
|
|
1648
|
+
// icon: "https://example.com/nostrshare_android_icon.png",
|
|
1649
|
+
// },
|
|
1650
|
+
// // iOSアプリ例
|
|
1651
|
+
// {
|
|
1652
|
+
// name: "ShareKit (iOS)",
|
|
1653
|
+
// url: "sharekit://share?text={text}&url={url}&title={title}",
|
|
1654
|
+
// icon: "https://example.com/sharekit_ios_icon.png",
|
|
1655
|
+
// },
|
|
1656
|
+
// // 他のプラットフォーム例(例:Slack)
|
|
1657
|
+
// {
|
|
1658
|
+
// name: "Slack",
|
|
1659
|
+
// url: "slack://channel?team={teamId}&id={channelId}&message={text}%20{url}",
|
|
1660
|
+
// icon: "https://slack.com/favicon.ico",
|
|
1661
|
+
// },
|
|
1662
|
+
// // メッセージアプリ(例:WhatsApp)
|
|
1663
|
+
// {
|
|
1664
|
+
// name: "WhatsApp",
|
|
1665
|
+
// url: "https://wa.me/?text={text}%20{url}",
|
|
1666
|
+
// icon: "https://web.whatsapp.com/favicon.ico",
|
|
1667
|
+
// },
|
|
1668
|
+
// // デスクトップアプリ(例:Discord)
|
|
1669
|
+
// {
|
|
1670
|
+
// name: "Discord",
|
|
1671
|
+
// url: "discord://send?message={text}%20{url}&title={title}",
|
|
1672
|
+
// icon: "https://discord.com/favicon.ico",
|
|
1673
|
+
// },
|
|
1620
1674
|
];
|
|
1621
|
-
var
|
|
1622
|
-
const
|
|
1675
|
+
var wn = (t) => t.stopPropagation(), yn = (t, e, r) => e(I(r).url), En = /* @__PURE__ */ xt('<button class="item svelte-13vsz3z"><img> </button>'), kn = /* @__PURE__ */ xt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');
|
|
1676
|
+
const Sn = {
|
|
1623
1677
|
hash: "svelte-13vsz3z",
|
|
1624
1678
|
code: `
|
|
1625
1679
|
/* オーバーレイ背景 */.overlay.svelte-13vsz3z {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
|
|
@@ -1636,65 +1690,66 @@ const kn = {
|
|
|
1636
1690
|
/* バツボタン */.close-button.svelte-13vsz3z {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
|
|
1637
1691
|
transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`
|
|
1638
1692
|
};
|
|
1639
|
-
function
|
|
1640
|
-
|
|
1641
|
-
let r =
|
|
1642
|
-
const o = (
|
|
1643
|
-
|
|
1693
|
+
function or(t, e) {
|
|
1694
|
+
Bt(e, !0), de(t, Sn);
|
|
1695
|
+
let r = O(e, "url", 7, ""), n = O(e, "text", 7, ""), l = O(e, "shareTitle", 7, ""), s = O(e, "handleClose", 7);
|
|
1696
|
+
const o = (a) => {
|
|
1697
|
+
r() === "" && n() === "" && l() === "" && (r(window.location.href), l(document.title));
|
|
1698
|
+
const c = a.replace("{url}", encodeURIComponent(r())).replace("{title}", encodeURIComponent(l())).replace("{text}", encodeURIComponent(n()));
|
|
1644
1699
|
console.log(c), window.open(c, "_blank", "noreferrer"), s()();
|
|
1645
1700
|
};
|
|
1646
|
-
var
|
|
1647
|
-
|
|
1701
|
+
var i = kn();
|
|
1702
|
+
i.__click = function(...a) {
|
|
1648
1703
|
var c;
|
|
1649
|
-
(c = s()) == null || c.apply(this,
|
|
1704
|
+
(c = s()) == null || c.apply(this, a);
|
|
1650
1705
|
};
|
|
1651
|
-
var
|
|
1652
|
-
|
|
1653
|
-
var f =
|
|
1654
|
-
f.__click = function(...
|
|
1706
|
+
var u = yt(i);
|
|
1707
|
+
u.__click = [wn];
|
|
1708
|
+
var f = yt(u);
|
|
1709
|
+
f.__click = function(...a) {
|
|
1655
1710
|
var c;
|
|
1656
|
-
(c = s()) == null || c.apply(this,
|
|
1711
|
+
(c = s()) == null || c.apply(this, a);
|
|
1657
1712
|
};
|
|
1658
|
-
var
|
|
1659
|
-
return
|
|
1660
|
-
var v =
|
|
1661
|
-
v.__click = [
|
|
1662
|
-
var
|
|
1663
|
-
|
|
1664
|
-
var _ =
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
}),
|
|
1668
|
-
}),
|
|
1713
|
+
var d = Rt(f, 4);
|
|
1714
|
+
return fn(d, 21, () => xn, un, (a, c) => {
|
|
1715
|
+
var v = En();
|
|
1716
|
+
v.__click = [yn, o, c];
|
|
1717
|
+
var h = yt(v);
|
|
1718
|
+
dt(h, "width", 24);
|
|
1719
|
+
var _ = Rt(h);
|
|
1720
|
+
ft(v), Ot(() => {
|
|
1721
|
+
dt(h, "src", I(c).icon), dt(h, "alt", I(c).name), sn(_, ` ${I(c).name ?? ""}`);
|
|
1722
|
+
}), et(a, v);
|
|
1723
|
+
}), ft(d), ft(u), ft(i), et(t, i), Ut({
|
|
1669
1724
|
get url() {
|
|
1670
1725
|
return r();
|
|
1671
1726
|
},
|
|
1672
|
-
set url(
|
|
1673
|
-
r(
|
|
1727
|
+
set url(a = "") {
|
|
1728
|
+
r(a), N();
|
|
1674
1729
|
},
|
|
1675
1730
|
get text() {
|
|
1676
1731
|
return n();
|
|
1677
1732
|
},
|
|
1678
|
-
set text(
|
|
1679
|
-
n(
|
|
1733
|
+
set text(a = "") {
|
|
1734
|
+
n(a), N();
|
|
1680
1735
|
},
|
|
1681
1736
|
get shareTitle() {
|
|
1682
1737
|
return l();
|
|
1683
1738
|
},
|
|
1684
|
-
set shareTitle(
|
|
1685
|
-
l(
|
|
1739
|
+
set shareTitle(a = "") {
|
|
1740
|
+
l(a), N();
|
|
1686
1741
|
},
|
|
1687
1742
|
get handleClose() {
|
|
1688
1743
|
return s();
|
|
1689
1744
|
},
|
|
1690
|
-
set handleClose(
|
|
1691
|
-
s(
|
|
1745
|
+
set handleClose(a) {
|
|
1746
|
+
s(a), N();
|
|
1692
1747
|
}
|
|
1693
1748
|
});
|
|
1694
1749
|
}
|
|
1695
|
-
|
|
1696
|
-
customElements.define("nostr-share-dialog",
|
|
1697
|
-
|
|
1750
|
+
tr(["click"]);
|
|
1751
|
+
customElements.define("nostr-share-dialog", he(
|
|
1752
|
+
or,
|
|
1698
1753
|
{
|
|
1699
1754
|
url: {},
|
|
1700
1755
|
text: {},
|
|
@@ -1705,18 +1760,14 @@ customElements.define("nostr-share-dialog", nr(
|
|
|
1705
1760
|
[],
|
|
1706
1761
|
!0
|
|
1707
1762
|
));
|
|
1708
|
-
|
|
1709
|
-
Mt(e, !0);
|
|
1710
|
-
};
|
|
1711
|
-
var Tn = /* @__PURE__ */ $t("<span>Share</span>"), Sn = /* @__PURE__ */ $t(
|
|
1712
|
-
`<svg class="nostr-icon svelte-1k7qocb" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><g><path class="st0 svelte-1k7qocb" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
|
|
1763
|
+
var Tn = /* @__PURE__ */ ln(`<svg class="nostr-icon svelte-k84is3" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-k84is3" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
|
|
1713
1764
|
c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
|
|
1714
1765
|
c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
|
|
1715
|
-
c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-
|
|
1766
|
+
c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-k84is3" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-k84is3" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
|
|
1716
1767
|
c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
|
|
1717
1768
|
c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
|
|
1718
1769
|
c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
|
|
1719
|
-
c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-
|
|
1770
|
+
c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-k84is3" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
|
|
1720
1771
|
c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
|
|
1721
1772
|
c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
|
|
1722
1773
|
C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
|
|
@@ -1724,52 +1775,86 @@ var Tn = /* @__PURE__ */ $t("<span>Share</span>"), Sn = /* @__PURE__ */ $t(
|
|
|
1724
1775
|
c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
|
|
1725
1776
|
c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
|
|
1726
1777
|
c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
|
|
1727
|
-
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1778
|
+
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);
|
|
1779
|
+
const Cn = {
|
|
1780
|
+
hash: "svelte-k84is3",
|
|
1781
|
+
code: `
|
|
1782
|
+
/* アイコン内部のSVG */.nostr-icon.svelte-k84is3 {display:flex;align-items:center;justify-content:center;}.st0.svelte-k84is3 {fill:none;}.st1.svelte-k84is3 {fill:var(--button1-bg-color);}.st2.svelte-k84is3 {fill:var(--nostr-color);}`
|
|
1783
|
+
};
|
|
1784
|
+
function re(t, e) {
|
|
1785
|
+
Bt(e, !0), de(t, Cn);
|
|
1786
|
+
let r = O(e, "size", 7, 28);
|
|
1787
|
+
var n = Tn();
|
|
1788
|
+
return Ot(() => dt(n, "style", `enable-background:new 0 0 256 256; width: ${r() ?? ""}px; height: ${r() ?? ""}px;`)), et(t, n), Ut({
|
|
1789
|
+
get size() {
|
|
1790
|
+
return r();
|
|
1791
|
+
},
|
|
1792
|
+
set size(l = 28) {
|
|
1793
|
+
r(l), N();
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
he(re, { size: {} }, [], [], !0);
|
|
1798
|
+
const Nn = (t, e) => {
|
|
1799
|
+
Ft(e, !0);
|
|
1800
|
+
};
|
|
1801
|
+
var zn = /* @__PURE__ */ xt("<span>Nostr</span>"), An = /* @__PURE__ */ xt("<!> <!>", 1), Rn = /* @__PURE__ */ xt("<button><!></button> <!>", 1);
|
|
1802
|
+
const On = {
|
|
1803
|
+
hash: "svelte-uxew0g",
|
|
1732
1804
|
code: `:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
|
1733
|
-
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #
|
|
1734
|
-
@media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
|
|
1805
|
+
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #e2e2e2;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
|
|
1806
|
+
@media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
|
|
1735
1807
|
}
|
|
1736
|
-
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-
|
|
1737
|
-
.nostrShare-icon.svelte-
|
|
1808
|
+
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-uxew0g,
|
|
1809
|
+
.nostrShare-icon.svelte-uxew0g,
|
|
1810
|
+
.nostrShare-mini.svelte-uxew0g {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}
|
|
1738
1811
|
|
|
1739
|
-
/* ボタンスタイル */.nostrShare-button.svelte-
|
|
1812
|
+
/* ボタンスタイル */.nostrShare-button.svelte-uxew0g {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-uxew0g:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-uxew0g:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
1740
1813
|
|
|
1741
|
-
/* テキスト用スタイル */.nostrShare-text.svelte-
|
|
1814
|
+
/* テキスト用スタイル */.nostrShare-text.svelte-uxew0g {margin-left:8px;font-size:medium;color:var(--button2-text-color);}
|
|
1742
1815
|
|
|
1743
|
-
/* アイコンスタイル */.nostrShare-icon.svelte-
|
|
1816
|
+
/* アイコンスタイル */.nostrShare-icon.svelte-uxew0g {width:36px;height:36px;margin:4px;border-radius:50%;background-color:var(--button1-bg-color); /* グレー */}.nostrShare-icon.svelte-uxew0g:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-uxew0g:active {background-color:#d1d5db;transform:scale(0.95);}
|
|
1744
1817
|
|
|
1745
|
-
/*
|
|
1818
|
+
/* miniスタイル */.nostrShare-mini.svelte-uxew0g {padding:4px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-uxew0g:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-uxew0g:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
1819
|
+
/* テキスト用スタイル */.nostrShare-text-mini.svelte-uxew0g {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`
|
|
1746
1820
|
};
|
|
1747
|
-
function
|
|
1748
|
-
|
|
1749
|
-
let r =
|
|
1821
|
+
function In(t, e) {
|
|
1822
|
+
Bt(e, !0), de(t, On);
|
|
1823
|
+
let r = O(e, "data-url", 7), n = O(e, "data-text", 7), l = O(e, "data-title", 7), s = O(e, "data-type", 7, "default"), o = O(e, "class", 7), i = O(e, "style", 7), u = Dr(!1);
|
|
1750
1824
|
const f = () => {
|
|
1751
|
-
|
|
1825
|
+
Ft(u, !1);
|
|
1752
1826
|
};
|
|
1753
|
-
var
|
|
1754
|
-
|
|
1755
|
-
var c =
|
|
1756
|
-
|
|
1757
|
-
var
|
|
1827
|
+
var d = Rn(), a = be(d);
|
|
1828
|
+
a.__click = [Nn, u];
|
|
1829
|
+
var c = yt(a);
|
|
1830
|
+
hn(c, e, "default", {}, (_) => {
|
|
1831
|
+
var k = An(), E = be(k);
|
|
1832
|
+
{
|
|
1833
|
+
var g = (b) => {
|
|
1834
|
+
re(b, { size: 24 });
|
|
1835
|
+
}, x = (b) => {
|
|
1836
|
+
re(b, {});
|
|
1837
|
+
};
|
|
1838
|
+
Wt(E, (b) => {
|
|
1839
|
+
s() === "mini" ? b(g) : b(x, !1);
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
var H = Rt(E, 2);
|
|
1758
1843
|
{
|
|
1759
|
-
var
|
|
1760
|
-
var
|
|
1761
|
-
|
|
1844
|
+
var y = (b) => {
|
|
1845
|
+
var V = zn();
|
|
1846
|
+
Ot(() => we(V, `${(s() === "mini" ? "nostrShare-text-mini" : "nostrShare-text") ?? ""} svelte-uxew0g`)), et(b, V);
|
|
1762
1847
|
};
|
|
1763
|
-
|
|
1764
|
-
s()
|
|
1848
|
+
Wt(H, (b) => {
|
|
1849
|
+
s() !== "icon" && b(y);
|
|
1765
1850
|
});
|
|
1766
1851
|
}
|
|
1767
|
-
|
|
1768
|
-
}),
|
|
1769
|
-
var v =
|
|
1852
|
+
et(_, k);
|
|
1853
|
+
}), ft(a);
|
|
1854
|
+
var v = Rt(a, 2);
|
|
1770
1855
|
{
|
|
1771
|
-
var
|
|
1772
|
-
|
|
1856
|
+
var h = (_) => {
|
|
1857
|
+
or(_, {
|
|
1773
1858
|
handleClose: f,
|
|
1774
1859
|
get url() {
|
|
1775
1860
|
return r();
|
|
@@ -1782,59 +1867,59 @@ function An(t, e) {
|
|
|
1782
1867
|
}
|
|
1783
1868
|
});
|
|
1784
1869
|
};
|
|
1785
|
-
|
|
1786
|
-
|
|
1870
|
+
Wt(v, (_) => {
|
|
1871
|
+
I(u) && _(h);
|
|
1787
1872
|
});
|
|
1788
1873
|
}
|
|
1789
|
-
return
|
|
1790
|
-
|
|
1791
|
-
}),
|
|
1792
|
-
get url() {
|
|
1874
|
+
return Ot(() => {
|
|
1875
|
+
we(a, `${`${o() || (s() === "icon" ? "nostrShare-icon" : s() === "mini" ? "nostrShare-mini" : "nostrShare-button")}` ?? ""} svelte-uxew0g`), dt(a, "style", i() || "");
|
|
1876
|
+
}), et(t, d), Ut({
|
|
1877
|
+
get "data-url"() {
|
|
1793
1878
|
return r();
|
|
1794
1879
|
},
|
|
1795
|
-
set url(_) {
|
|
1796
|
-
r(_),
|
|
1880
|
+
set "data-url"(_) {
|
|
1881
|
+
r(_), N();
|
|
1797
1882
|
},
|
|
1798
|
-
get text() {
|
|
1883
|
+
get "data-text"() {
|
|
1799
1884
|
return n();
|
|
1800
1885
|
},
|
|
1801
|
-
set text(_) {
|
|
1802
|
-
n(_),
|
|
1886
|
+
set "data-text"(_) {
|
|
1887
|
+
n(_), N();
|
|
1803
1888
|
},
|
|
1804
|
-
get
|
|
1889
|
+
get "data-title"() {
|
|
1805
1890
|
return l();
|
|
1806
1891
|
},
|
|
1807
|
-
set
|
|
1808
|
-
l(_),
|
|
1892
|
+
set "data-title"(_) {
|
|
1893
|
+
l(_), N();
|
|
1809
1894
|
},
|
|
1810
|
-
get
|
|
1895
|
+
get "data-type"() {
|
|
1811
1896
|
return s();
|
|
1812
1897
|
},
|
|
1813
|
-
set
|
|
1814
|
-
s(_),
|
|
1898
|
+
set "data-type"(_ = "default") {
|
|
1899
|
+
s(_), N();
|
|
1815
1900
|
},
|
|
1816
1901
|
get class() {
|
|
1817
1902
|
return o();
|
|
1818
1903
|
},
|
|
1819
1904
|
set class(_) {
|
|
1820
|
-
o(_),
|
|
1905
|
+
o(_), N();
|
|
1821
1906
|
},
|
|
1822
1907
|
get style() {
|
|
1823
|
-
return
|
|
1908
|
+
return i();
|
|
1824
1909
|
},
|
|
1825
1910
|
set style(_) {
|
|
1826
|
-
|
|
1911
|
+
i(_), N();
|
|
1827
1912
|
}
|
|
1828
1913
|
});
|
|
1829
1914
|
}
|
|
1830
|
-
|
|
1831
|
-
customElements.define("nostr-share",
|
|
1832
|
-
|
|
1915
|
+
tr(["click"]);
|
|
1916
|
+
customElements.define("nostr-share", he(
|
|
1917
|
+
In,
|
|
1833
1918
|
{
|
|
1834
|
-
url: {},
|
|
1835
|
-
text: {},
|
|
1836
|
-
|
|
1837
|
-
|
|
1919
|
+
"data-url": {},
|
|
1920
|
+
"data-text": {},
|
|
1921
|
+
"data-title": {},
|
|
1922
|
+
"data-type": {},
|
|
1838
1923
|
class: {},
|
|
1839
1924
|
style: {}
|
|
1840
1925
|
},
|
|
@@ -1843,6 +1928,6 @@ customElements.define("nostr-share", nr(
|
|
|
1843
1928
|
!0
|
|
1844
1929
|
));
|
|
1845
1930
|
export {
|
|
1846
|
-
|
|
1847
|
-
|
|
1931
|
+
or as Dialog,
|
|
1932
|
+
In as NostrShare
|
|
1848
1933
|
};
|