@blinkk/root-cms 1.0.0-rc.1 → 1.0.0-rc.2

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/ui/signin.js CHANGED
@@ -1,385 +1,5 @@
1
1
  "use strict";
2
2
  (() => {
3
- // ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/dist/preact.module.js
4
- var n;
5
- var l;
6
- var u;
7
- var i;
8
- var t;
9
- var o;
10
- var r;
11
- var f = {};
12
- var e = [];
13
- var c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
14
- function s(n2, l2) {
15
- for (var u2 in l2)
16
- n2[u2] = l2[u2];
17
- return n2;
18
- }
19
- function a(n2) {
20
- var l2 = n2.parentNode;
21
- l2 && l2.removeChild(n2);
22
- }
23
- function h(l2, u2, i2) {
24
- var t2, o3, r2, f2 = {};
25
- for (r2 in u2)
26
- "key" == r2 ? t2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
27
- if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : i2), "function" == typeof l2 && null != l2.defaultProps)
28
- for (r2 in l2.defaultProps)
29
- void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
30
- return v(l2, f2, t2, o3, null);
31
- }
32
- function v(n2, i2, t2, o3, r2) {
33
- var f2 = { type: n2, props: i2, key: t2, ref: o3, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u : r2 };
34
- return null == r2 && null != l.vnode && l.vnode(f2), f2;
35
- }
36
- function p(n2) {
37
- return n2.children;
38
- }
39
- function d(n2, l2) {
40
- this.props = n2, this.context = l2;
41
- }
42
- function _(n2, l2) {
43
- if (null == l2)
44
- return n2.__ ? _(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
45
- for (var u2; l2 < n2.__k.length; l2++)
46
- if (null != (u2 = n2.__k[l2]) && null != u2.__e)
47
- return u2.__e;
48
- return "function" == typeof n2.type ? _(n2) : null;
49
- }
50
- function k(n2) {
51
- var l2, u2;
52
- if (null != (n2 = n2.__) && null != n2.__c) {
53
- for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
54
- if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
55
- n2.__e = n2.__c.base = u2.__e;
56
- break;
57
- }
58
- return k(n2);
59
- }
60
- }
61
- function b(n2) {
62
- (!n2.__d && (n2.__d = true) && t.push(n2) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
63
- }
64
- function g() {
65
- for (var n2; g.__r = t.length; )
66
- n2 = t.sort(function(n3, l2) {
67
- return n3.__v.__b - l2.__v.__b;
68
- }), t = [], n2.some(function(n3) {
69
- var l2, u2, i2, t2, o3, r2;
70
- n3.__d && (o3 = (t2 = (l2 = n3).__v).__e, (r2 = l2.__P) && (u2 = [], (i2 = s({}, t2)).__v = t2.__v + 1, j(r2, t2, i2, l2.__n, void 0 !== r2.ownerSVGElement, null != t2.__h ? [o3] : null, u2, null == o3 ? _(t2) : o3, t2.__h), z(u2, t2), t2.__e != o3 && k(t2)));
71
- });
72
- }
73
- function w(n2, l2, u2, i2, t2, o3, r2, c2, s2, a2) {
74
- var h2, y, d2, k2, b2, g2, w2, x2 = i2 && i2.__k || e, C2 = x2.length;
75
- for (u2.__k = [], h2 = 0; h2 < l2.length; h2++)
76
- if (null != (k2 = u2.__k[h2] = null == (k2 = l2[h2]) || "boolean" == typeof k2 ? null : "string" == typeof k2 || "number" == typeof k2 || "bigint" == typeof k2 ? v(null, k2, null, null, k2) : Array.isArray(k2) ? v(p, { children: k2 }, null, null, null) : k2.__b > 0 ? v(k2.type, k2.props, k2.key, k2.ref ? k2.ref : null, k2.__v) : k2)) {
77
- if (k2.__ = u2, k2.__b = u2.__b + 1, null === (d2 = x2[h2]) || d2 && k2.key == d2.key && k2.type === d2.type)
78
- x2[h2] = void 0;
79
- else
80
- for (y = 0; y < C2; y++) {
81
- if ((d2 = x2[y]) && k2.key == d2.key && k2.type === d2.type) {
82
- x2[y] = void 0;
83
- break;
84
- }
85
- d2 = null;
86
- }
87
- j(n2, k2, d2 = d2 || f, t2, o3, r2, c2, s2, a2), b2 = k2.__e, (y = k2.ref) && d2.ref != y && (w2 || (w2 = []), d2.ref && w2.push(d2.ref, null, k2), w2.push(y, k2.__c || b2, k2)), null != b2 ? (null == g2 && (g2 = b2), "function" == typeof k2.type && k2.__k === d2.__k ? k2.__d = s2 = m(k2, s2, n2) : s2 = A(n2, k2, d2, x2, b2, s2), "function" == typeof u2.type && (u2.__d = s2)) : s2 && d2.__e == s2 && s2.parentNode != n2 && (s2 = _(d2));
88
- }
89
- for (u2.__e = g2, h2 = C2; h2--; )
90
- null != x2[h2] && ("function" == typeof u2.type && null != x2[h2].__e && x2[h2].__e == u2.__d && (u2.__d = _(i2, h2 + 1)), N(x2[h2], x2[h2]));
91
- if (w2)
92
- for (h2 = 0; h2 < w2.length; h2++)
93
- M(w2[h2], w2[++h2], w2[++h2]);
94
- }
95
- function m(n2, l2, u2) {
96
- for (var i2, t2 = n2.__k, o3 = 0; t2 && o3 < t2.length; o3++)
97
- (i2 = t2[o3]) && (i2.__ = n2, l2 = "function" == typeof i2.type ? m(i2, l2, u2) : A(u2, i2, i2, t2, i2.__e, l2));
98
- return l2;
99
- }
100
- function x(n2, l2) {
101
- return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (Array.isArray(n2) ? n2.some(function(n3) {
102
- x(n3, l2);
103
- }) : l2.push(n2)), l2;
104
- }
105
- function A(n2, l2, u2, i2, t2, o3) {
106
- var r2, f2, e2;
107
- if (void 0 !== l2.__d)
108
- r2 = l2.__d, l2.__d = void 0;
109
- else if (null == u2 || t2 != o3 || null == t2.parentNode)
110
- n:
111
- if (null == o3 || o3.parentNode !== n2)
112
- n2.appendChild(t2), r2 = null;
113
- else {
114
- for (f2 = o3, e2 = 0; (f2 = f2.nextSibling) && e2 < i2.length; e2 += 2)
115
- if (f2 == t2)
116
- break n;
117
- n2.insertBefore(t2, o3), r2 = o3;
118
- }
119
- return void 0 !== r2 ? r2 : t2.nextSibling;
120
- }
121
- function C(n2, l2, u2, i2, t2) {
122
- var o3;
123
- for (o3 in u2)
124
- "children" === o3 || "key" === o3 || o3 in l2 || H(n2, o3, null, u2[o3], i2);
125
- for (o3 in l2)
126
- t2 && "function" != typeof l2[o3] || "children" === o3 || "key" === o3 || "value" === o3 || "checked" === o3 || u2[o3] === l2[o3] || H(n2, o3, l2[o3], u2[o3], i2);
127
- }
128
- function $(n2, l2, u2) {
129
- "-" === l2[0] ? n2.setProperty(l2, u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || c.test(l2) ? u2 : u2 + "px";
130
- }
131
- function H(n2, l2, u2, i2, t2) {
132
- var o3;
133
- n:
134
- if ("style" === l2)
135
- if ("string" == typeof u2)
136
- n2.style.cssText = u2;
137
- else {
138
- if ("string" == typeof i2 && (n2.style.cssText = i2 = ""), i2)
139
- for (l2 in i2)
140
- u2 && l2 in u2 || $(n2.style, l2, "");
141
- if (u2)
142
- for (l2 in u2)
143
- i2 && u2[l2] === i2[l2] || $(n2.style, l2, u2[l2]);
144
- }
145
- else if ("o" === l2[0] && "n" === l2[1])
146
- o3 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o3] = u2, u2 ? i2 || n2.addEventListener(l2, o3 ? T : I, o3) : n2.removeEventListener(l2, o3 ? T : I, o3);
147
- else if ("dangerouslySetInnerHTML" !== l2) {
148
- if (t2)
149
- l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
150
- else if ("href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && l2 in n2)
151
- try {
152
- n2[l2] = null == u2 ? "" : u2;
153
- break n;
154
- } catch (n3) {
155
- }
156
- "function" == typeof u2 || (null != u2 && (false !== u2 || "a" === l2[0] && "r" === l2[1]) ? n2.setAttribute(l2, u2) : n2.removeAttribute(l2));
157
- }
158
- }
159
- function I(n2) {
160
- this.l[n2.type + false](l.event ? l.event(n2) : n2);
161
- }
162
- function T(n2) {
163
- this.l[n2.type + true](l.event ? l.event(n2) : n2);
164
- }
165
- function j(n2, u2, i2, t2, o3, r2, f2, e2, c2) {
166
- var a2, h2, v2, y, _3, k2, b2, g2, m2, x2, A2, C2, $2, H2 = u2.type;
167
- if (void 0 !== u2.constructor)
168
- return null;
169
- null != i2.__h && (c2 = i2.__h, e2 = u2.__e = i2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
170
- try {
171
- n:
172
- if ("function" == typeof H2) {
173
- if (g2 = u2.props, m2 = (a2 = H2.contextType) && t2[a2.__c], x2 = a2 ? m2 ? m2.props.value : a2.__ : t2, i2.__c ? b2 = (h2 = u2.__c = i2.__c).__ = h2.__E : ("prototype" in H2 && H2.prototype.render ? u2.__c = h2 = new H2(g2, x2) : (u2.__c = h2 = new d(g2, x2), h2.constructor = H2, h2.render = O), m2 && m2.sub(h2), h2.props = g2, h2.state || (h2.state = {}), h2.context = x2, h2.__n = t2, v2 = h2.__d = true, h2.__h = []), null == h2.__s && (h2.__s = h2.state), null != H2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = s({}, h2.__s)), s(h2.__s, H2.getDerivedStateFromProps(g2, h2.__s))), y = h2.props, _3 = h2.state, v2)
174
- null == H2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
175
- else {
176
- if (null == H2.getDerivedStateFromProps && g2 !== y && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(g2, x2), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(g2, h2.__s, x2) || u2.__v === i2.__v) {
177
- h2.props = g2, h2.state = h2.__s, u2.__v !== i2.__v && (h2.__d = false), h2.__v = u2, u2.__e = i2.__e, u2.__k = i2.__k, u2.__k.forEach(function(n3) {
178
- n3 && (n3.__ = u2);
179
- }), h2.__h.length && f2.push(h2);
180
- break n;
181
- }
182
- null != h2.componentWillUpdate && h2.componentWillUpdate(g2, h2.__s, x2), null != h2.componentDidUpdate && h2.__h.push(function() {
183
- h2.componentDidUpdate(y, _3, k2);
184
- });
185
- }
186
- if (h2.context = x2, h2.props = g2, h2.__v = u2, h2.__P = n2, A2 = l.__r, C2 = 0, "prototype" in H2 && H2.prototype.render)
187
- h2.state = h2.__s, h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context);
188
- else
189
- do {
190
- h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
191
- } while (h2.__d && ++C2 < 25);
192
- h2.state = h2.__s, null != h2.getChildContext && (t2 = s(s({}, t2), h2.getChildContext())), v2 || null == h2.getSnapshotBeforeUpdate || (k2 = h2.getSnapshotBeforeUpdate(y, _3)), $2 = null != a2 && a2.type === p && null == a2.key ? a2.props.children : a2, w(n2, Array.isArray($2) ? $2 : [$2], u2, i2, t2, o3, r2, f2, e2, c2), h2.base = u2.__e, u2.__h = null, h2.__h.length && f2.push(h2), b2 && (h2.__E = h2.__ = null), h2.__e = false;
193
- } else
194
- null == r2 && u2.__v === i2.__v ? (u2.__k = i2.__k, u2.__e = i2.__e) : u2.__e = L(i2.__e, u2, i2, t2, o3, r2, f2, c2);
195
- (a2 = l.diffed) && a2(u2);
196
- } catch (n3) {
197
- u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, i2);
198
- }
199
- }
200
- function z(n2, u2) {
201
- l.__c && l.__c(u2, n2), n2.some(function(u3) {
202
- try {
203
- n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
204
- n3.call(u3);
205
- });
206
- } catch (n3) {
207
- l.__e(n3, u3.__v);
208
- }
209
- });
210
- }
211
- function L(l2, u2, i2, t2, o3, r2, e2, c2) {
212
- var s2, h2, v2, y = i2.props, p2 = u2.props, d2 = u2.type, k2 = 0;
213
- if ("svg" === d2 && (o3 = true), null != r2) {
214
- for (; k2 < r2.length; k2++)
215
- if ((s2 = r2[k2]) && "setAttribute" in s2 == !!d2 && (d2 ? s2.localName === d2 : 3 === s2.nodeType)) {
216
- l2 = s2, r2[k2] = null;
217
- break;
218
- }
219
- }
220
- if (null == l2) {
221
- if (null === d2)
222
- return document.createTextNode(p2);
223
- l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p2.is && p2), r2 = null, c2 = false;
224
- }
225
- if (null === d2)
226
- y === p2 || c2 && l2.data === p2 || (l2.data = p2);
227
- else {
228
- if (r2 = r2 && n.call(l2.childNodes), h2 = (y = i2.props || f).dangerouslySetInnerHTML, v2 = p2.dangerouslySetInnerHTML, !c2) {
229
- if (null != r2)
230
- for (y = {}, k2 = 0; k2 < l2.attributes.length; k2++)
231
- y[l2.attributes[k2].name] = l2.attributes[k2].value;
232
- (v2 || h2) && (v2 && (h2 && v2.__html == h2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2 && v2.__html || ""));
233
- }
234
- if (C(l2, p2, y, o3, c2), v2)
235
- u2.__k = [];
236
- else if (k2 = u2.props.children, w(l2, Array.isArray(k2) ? k2 : [k2], u2, i2, t2, o3 && "foreignObject" !== d2, r2, e2, r2 ? r2[0] : i2.__k && _(i2, 0), c2), null != r2)
237
- for (k2 = r2.length; k2--; )
238
- null != r2[k2] && a(r2[k2]);
239
- c2 || ("value" in p2 && void 0 !== (k2 = p2.value) && (k2 !== l2.value || "progress" === d2 && !k2 || "option" === d2 && k2 !== y.value) && H(l2, "value", k2, y.value, false), "checked" in p2 && void 0 !== (k2 = p2.checked) && k2 !== l2.checked && H(l2, "checked", k2, y.checked, false));
240
- }
241
- return l2;
242
- }
243
- function M(n2, u2, i2) {
244
- try {
245
- "function" == typeof n2 ? n2(u2) : n2.current = u2;
246
- } catch (n3) {
247
- l.__e(n3, i2);
248
- }
249
- }
250
- function N(n2, u2, i2) {
251
- var t2, o3;
252
- if (l.unmount && l.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current !== n2.__e || M(t2, null, u2)), null != (t2 = n2.__c)) {
253
- if (t2.componentWillUnmount)
254
- try {
255
- t2.componentWillUnmount();
256
- } catch (n3) {
257
- l.__e(n3, u2);
258
- }
259
- t2.base = t2.__P = null, n2.__c = void 0;
260
- }
261
- if (t2 = n2.__k)
262
- for (o3 = 0; o3 < t2.length; o3++)
263
- t2[o3] && N(t2[o3], u2, "function" != typeof n2.type);
264
- i2 || null == n2.__e || a(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
265
- }
266
- function O(n2, l2, u2) {
267
- return this.constructor(n2, u2);
268
- }
269
- function P(u2, i2, t2) {
270
- var o3, r2, e2;
271
- l.__ && l.__(u2, i2), r2 = (o3 = "function" == typeof t2) ? null : t2 && t2.__k || i2.__k, e2 = [], j(i2, u2 = (!o3 && t2 || i2).__k = h(p, null, [u2]), r2 || f, f, void 0 !== i2.ownerSVGElement, !o3 && t2 ? [t2] : r2 ? null : i2.firstChild ? n.call(i2.childNodes) : null, e2, !o3 && t2 ? t2 : r2 ? r2.__e : i2.firstChild, o3), z(e2, u2);
272
- }
273
- n = e.slice, l = { __e: function(n2, l2, u2, i2) {
274
- for (var t2, o3, r2; l2 = l2.__; )
275
- if ((t2 = l2.__c) && !t2.__)
276
- try {
277
- if ((o3 = t2.constructor) && null != o3.getDerivedStateFromError && (t2.setState(o3.getDerivedStateFromError(n2)), r2 = t2.__d), null != t2.componentDidCatch && (t2.componentDidCatch(n2, i2 || {}), r2 = t2.__d), r2)
278
- return t2.__E = t2;
279
- } catch (l3) {
280
- n2 = l3;
281
- }
282
- throw n2;
283
- } }, u = 0, i = function(n2) {
284
- return null != n2 && void 0 === n2.constructor;
285
- }, d.prototype.setState = function(n2, l2) {
286
- var u2;
287
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = s({}, this.state), "function" == typeof n2 && (n2 = n2(s({}, u2), this.props)), n2 && s(u2, n2), null != n2 && this.__v && (l2 && this.__h.push(l2), b(this));
288
- }, d.prototype.forceUpdate = function(n2) {
289
- this.__v && (this.__e = true, n2 && this.__h.push(n2), b(this));
290
- }, d.prototype.render = p, t = [], g.__r = 0, r = 0;
291
-
292
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.39.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/defaultAttributes.js
293
- var defaultAttributes = {
294
- xmlns: "http://www.w3.org/2000/svg",
295
- width: 24,
296
- height: 24,
297
- viewBox: "0 0 24 24",
298
- fill: "none",
299
- stroke: "currentColor",
300
- "stroke-width": 2,
301
- "stroke-linecap": "round",
302
- "stroke-linejoin": "round"
303
- };
304
-
305
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.39.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/createPreactComponent.js
306
- var __defProp = Object.defineProperty;
307
- var __defProps = Object.defineProperties;
308
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
309
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
310
- var __hasOwnProp = Object.prototype.hasOwnProperty;
311
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
312
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
313
- var __spreadValues = (a2, b2) => {
314
- for (var prop in b2 || (b2 = {}))
315
- if (__hasOwnProp.call(b2, prop))
316
- __defNormalProp(a2, prop, b2[prop]);
317
- if (__getOwnPropSymbols)
318
- for (var prop of __getOwnPropSymbols(b2)) {
319
- if (__propIsEnum.call(b2, prop))
320
- __defNormalProp(a2, prop, b2[prop]);
321
- }
322
- return a2;
323
- };
324
- var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
325
- var __objRest = (source, exclude) => {
326
- var target = {};
327
- for (var prop in source)
328
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
329
- target[prop] = source[prop];
330
- if (source != null && __getOwnPropSymbols)
331
- for (var prop of __getOwnPropSymbols(source)) {
332
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
333
- target[prop] = source[prop];
334
- }
335
- return target;
336
- };
337
- var createPreactComponent = (iconName, iconNamePascal, iconNode) => {
338
- const Component2 = (_a) => {
339
- var _b = _a, { color = "currentColor", size = 24, stroke = 2, children } = _b, rest = __objRest(_b, ["color", "size", "stroke", "children"]);
340
- return h(
341
- "svg",
342
- __spreadValues(__spreadProps(__spreadValues({}, defaultAttributes), {
343
- width: size,
344
- height: size,
345
- stroke: color,
346
- "stroke-width": stroke,
347
- class: `tabler-icon tabler-icon-${iconName}`
348
- }), rest),
349
- [...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...x(children)]
350
- );
351
- };
352
- Component2.displayName = `${iconNamePascal}`;
353
- return Component2;
354
- };
355
-
356
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.39.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSitemap.js
357
- var IconSitemap = createPreactComponent("sitemap", "IconSitemap", [
358
- [
359
- "path",
360
- {
361
- d: "M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
362
- key: "svg-0"
363
- }
364
- ],
365
- [
366
- "path",
367
- {
368
- d: "M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
369
- key: "svg-1"
370
- }
371
- ],
372
- [
373
- "path",
374
- {
375
- d: "M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",
376
- key: "svg-2"
377
- }
378
- ],
379
- ["path", { d: "M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1", key: "svg-3" }],
380
- ["path", { d: "M12 9l0 3", key: "svg-4" }]
381
- ]);
382
-
383
3
  // ../../node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/dist/index.esm2017.js
384
4
  var stringToByteArray$1 = function(str) {
385
5
  const out = [];
@@ -7311,244 +6931,528 @@
7311
6931
  totpVerificationInfo: this.secret._makeTotpVerificationInfo(this.otp)
7312
6932
  });
7313
6933
  }
7314
- /** @internal */
7315
- async _finalizeSignIn(auth2, mfaPendingCredential) {
7316
- _assert(
7317
- this.enrollmentId !== void 0 && this.otp !== void 0,
7318
- auth2,
7319
- "argument-error"
7320
- /* AuthErrorCode.ARGUMENT_ERROR */
7321
- );
7322
- const totpVerificationInfo = { verificationCode: this.otp };
7323
- return finalizeSignInTotpMfa(auth2, {
7324
- mfaPendingCredential,
7325
- mfaEnrollmentId: this.enrollmentId,
7326
- totpVerificationInfo
7327
- });
6934
+ /** @internal */
6935
+ async _finalizeSignIn(auth2, mfaPendingCredential) {
6936
+ _assert(
6937
+ this.enrollmentId !== void 0 && this.otp !== void 0,
6938
+ auth2,
6939
+ "argument-error"
6940
+ /* AuthErrorCode.ARGUMENT_ERROR */
6941
+ );
6942
+ const totpVerificationInfo = { verificationCode: this.otp };
6943
+ return finalizeSignInTotpMfa(auth2, {
6944
+ mfaPendingCredential,
6945
+ mfaEnrollmentId: this.enrollmentId,
6946
+ totpVerificationInfo
6947
+ });
6948
+ }
6949
+ };
6950
+ var TotpSecret = class _TotpSecret {
6951
+ // The public members are declared outside the constructor so the docs can be generated.
6952
+ constructor(secretKey, hashingAlgorithm, codeLength, codeIntervalSeconds, enrollmentCompletionDeadline, sessionInfo, auth2) {
6953
+ this.sessionInfo = sessionInfo;
6954
+ this.auth = auth2;
6955
+ this.secretKey = secretKey;
6956
+ this.hashingAlgorithm = hashingAlgorithm;
6957
+ this.codeLength = codeLength;
6958
+ this.codeIntervalSeconds = codeIntervalSeconds;
6959
+ this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;
6960
+ }
6961
+ /** @internal */
6962
+ static _fromStartTotpMfaEnrollmentResponse(response, auth2) {
6963
+ return new _TotpSecret(response.totpSessionInfo.sharedSecretKey, response.totpSessionInfo.hashingAlgorithm, response.totpSessionInfo.verificationCodeLength, response.totpSessionInfo.periodSec, new Date(response.totpSessionInfo.finalizeEnrollmentTime).toUTCString(), response.totpSessionInfo.sessionInfo, auth2);
6964
+ }
6965
+ /** @internal */
6966
+ _makeTotpVerificationInfo(otp) {
6967
+ return { sessionInfo: this.sessionInfo, verificationCode: otp };
6968
+ }
6969
+ /**
6970
+ * Returns a QR code URL as described in
6971
+ * https://github.com/google/google-authenticator/wiki/Key-Uri-Format
6972
+ * This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator.
6973
+ * If the optional parameters are unspecified, an accountName of <userEmail> and issuer of <firebaseAppName> are used.
6974
+ *
6975
+ * @param accountName the name of the account/app along with a user identifier.
6976
+ * @param issuer issuer of the TOTP (likely the app name).
6977
+ * @returns A QR code URL string.
6978
+ */
6979
+ generateQrCodeUrl(accountName, issuer) {
6980
+ var _a;
6981
+ let useDefaults = false;
6982
+ if (_isEmptyString(accountName) || _isEmptyString(issuer)) {
6983
+ useDefaults = true;
6984
+ }
6985
+ if (useDefaults) {
6986
+ if (_isEmptyString(accountName)) {
6987
+ accountName = ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.email) || "unknownuser";
6988
+ }
6989
+ if (_isEmptyString(issuer)) {
6990
+ issuer = this.auth.name;
6991
+ }
6992
+ }
6993
+ return `otpauth://totp/${issuer}:${accountName}?secret=${this.secretKey}&issuer=${issuer}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`;
6994
+ }
6995
+ };
6996
+ function _isEmptyString(input) {
6997
+ return typeof input === "undefined" || (input === null || input === void 0 ? void 0 : input.length) === 0;
6998
+ }
6999
+ var name3 = "@firebase/auth";
7000
+ var version3 = "1.3.0";
7001
+ var AuthInterop = class {
7002
+ constructor(auth2) {
7003
+ this.auth = auth2;
7004
+ this.internalListeners = /* @__PURE__ */ new Map();
7005
+ }
7006
+ getUid() {
7007
+ var _a;
7008
+ this.assertAuthConfigured();
7009
+ return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;
7010
+ }
7011
+ async getToken(forceRefresh) {
7012
+ this.assertAuthConfigured();
7013
+ await this.auth._initializationPromise;
7014
+ if (!this.auth.currentUser) {
7015
+ return null;
7016
+ }
7017
+ const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);
7018
+ return { accessToken };
7019
+ }
7020
+ addAuthTokenListener(listener) {
7021
+ this.assertAuthConfigured();
7022
+ if (this.internalListeners.has(listener)) {
7023
+ return;
7024
+ }
7025
+ const unsubscribe = this.auth.onIdTokenChanged((user) => {
7026
+ listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);
7027
+ });
7028
+ this.internalListeners.set(listener, unsubscribe);
7029
+ this.updateProactiveRefresh();
7030
+ }
7031
+ removeAuthTokenListener(listener) {
7032
+ this.assertAuthConfigured();
7033
+ const unsubscribe = this.internalListeners.get(listener);
7034
+ if (!unsubscribe) {
7035
+ return;
7036
+ }
7037
+ this.internalListeners.delete(listener);
7038
+ unsubscribe();
7039
+ this.updateProactiveRefresh();
7040
+ }
7041
+ assertAuthConfigured() {
7042
+ _assert(
7043
+ this.auth._initializationPromise,
7044
+ "dependent-sdk-initialized-before-auth"
7045
+ /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
7046
+ );
7047
+ }
7048
+ updateProactiveRefresh() {
7049
+ if (this.internalListeners.size > 0) {
7050
+ this.auth._startProactiveRefresh();
7051
+ } else {
7052
+ this.auth._stopProactiveRefresh();
7053
+ }
7054
+ }
7055
+ };
7056
+ function getVersionForPlatform(clientPlatform) {
7057
+ switch (clientPlatform) {
7058
+ case "Node":
7059
+ return "node";
7060
+ case "ReactNative":
7061
+ return "rn";
7062
+ case "Worker":
7063
+ return "webworker";
7064
+ case "Cordova":
7065
+ return "cordova";
7066
+ default:
7067
+ return void 0;
7068
+ }
7069
+ }
7070
+ function registerAuth(clientPlatform) {
7071
+ _registerComponent(new Component(
7072
+ "auth",
7073
+ (container, { options: deps }) => {
7074
+ const app2 = container.getProvider("app").getImmediate();
7075
+ const heartbeatServiceProvider = container.getProvider("heartbeat");
7076
+ const appCheckServiceProvider = container.getProvider("app-check-internal");
7077
+ const { apiKey, authDomain } = app2.options;
7078
+ _assert(apiKey && !apiKey.includes(":"), "invalid-api-key", { appName: app2.name });
7079
+ const config = {
7080
+ apiKey,
7081
+ authDomain,
7082
+ clientPlatform,
7083
+ apiHost: "identitytoolkit.googleapis.com",
7084
+ tokenApiHost: "securetoken.googleapis.com",
7085
+ apiScheme: "https",
7086
+ sdkClientVersion: _getClientVersion(clientPlatform)
7087
+ };
7088
+ const authInstance = new AuthImpl(app2, heartbeatServiceProvider, appCheckServiceProvider, config);
7089
+ _initializeAuthInstance(authInstance, deps);
7090
+ return authInstance;
7091
+ },
7092
+ "PUBLIC"
7093
+ /* ComponentType.PUBLIC */
7094
+ ).setInstantiationMode(
7095
+ "EXPLICIT"
7096
+ /* InstantiationMode.EXPLICIT */
7097
+ ).setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {
7098
+ const authInternalProvider = container.getProvider(
7099
+ "auth-internal"
7100
+ /* _ComponentName.AUTH_INTERNAL */
7101
+ );
7102
+ authInternalProvider.initialize();
7103
+ }));
7104
+ _registerComponent(new Component(
7105
+ "auth-internal",
7106
+ (container) => {
7107
+ const auth2 = _castAuth(container.getProvider(
7108
+ "auth"
7109
+ /* _ComponentName.AUTH */
7110
+ ).getImmediate());
7111
+ return ((auth3) => new AuthInterop(auth3))(auth2);
7112
+ },
7113
+ "PRIVATE"
7114
+ /* ComponentType.PRIVATE */
7115
+ ).setInstantiationMode(
7116
+ "EXPLICIT"
7117
+ /* InstantiationMode.EXPLICIT */
7118
+ ));
7119
+ registerVersion(name3, version3, getVersionForPlatform(clientPlatform));
7120
+ registerVersion(name3, version3, "esm2017");
7121
+ }
7122
+ var DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;
7123
+ var authIdTokenMaxAge = getExperimentalSetting("authIdTokenMaxAge") || DEFAULT_ID_TOKEN_MAX_AGE;
7124
+ var lastPostedIdToken = null;
7125
+ var mintCookieFactory = (url) => async (user) => {
7126
+ const idTokenResult = user && await user.getIdTokenResult();
7127
+ const idTokenAge = idTokenResult && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1e3;
7128
+ if (idTokenAge && idTokenAge > authIdTokenMaxAge) {
7129
+ return;
7130
+ }
7131
+ const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;
7132
+ if (lastPostedIdToken === idToken) {
7133
+ return;
7328
7134
  }
7135
+ lastPostedIdToken = idToken;
7136
+ await fetch(url, {
7137
+ method: idToken ? "POST" : "DELETE",
7138
+ headers: idToken ? {
7139
+ "Authorization": `Bearer ${idToken}`
7140
+ } : {}
7141
+ });
7329
7142
  };
7330
- var TotpSecret = class _TotpSecret {
7331
- // The public members are declared outside the constructor so the docs can be generated.
7332
- constructor(secretKey, hashingAlgorithm, codeLength, codeIntervalSeconds, enrollmentCompletionDeadline, sessionInfo, auth2) {
7333
- this.sessionInfo = sessionInfo;
7334
- this.auth = auth2;
7335
- this.secretKey = secretKey;
7336
- this.hashingAlgorithm = hashingAlgorithm;
7337
- this.codeLength = codeLength;
7338
- this.codeIntervalSeconds = codeIntervalSeconds;
7339
- this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;
7143
+ function getAuth(app2 = getApp()) {
7144
+ const provider = _getProvider(app2, "auth");
7145
+ if (provider.isInitialized()) {
7146
+ return provider.getImmediate();
7340
7147
  }
7341
- /** @internal */
7342
- static _fromStartTotpMfaEnrollmentResponse(response, auth2) {
7343
- return new _TotpSecret(response.totpSessionInfo.sharedSecretKey, response.totpSessionInfo.hashingAlgorithm, response.totpSessionInfo.verificationCodeLength, response.totpSessionInfo.periodSec, new Date(response.totpSessionInfo.finalizeEnrollmentTime).toUTCString(), response.totpSessionInfo.sessionInfo, auth2);
7148
+ const auth2 = initializeAuth(app2, {
7149
+ popupRedirectResolver: browserPopupRedirectResolver,
7150
+ persistence: [
7151
+ indexedDBLocalPersistence,
7152
+ browserLocalPersistence,
7153
+ browserSessionPersistence
7154
+ ]
7155
+ });
7156
+ const authTokenSyncUrl = getExperimentalSetting("authTokenSyncURL");
7157
+ if (authTokenSyncUrl) {
7158
+ const mintCookie = mintCookieFactory(authTokenSyncUrl);
7159
+ beforeAuthStateChanged(auth2, mintCookie, () => mintCookie(auth2.currentUser));
7160
+ onIdTokenChanged(auth2, (user) => mintCookie(user));
7344
7161
  }
7345
- /** @internal */
7346
- _makeTotpVerificationInfo(otp) {
7347
- return { sessionInfo: this.sessionInfo, verificationCode: otp };
7162
+ const authEmulatorHost = getDefaultEmulatorHost("auth");
7163
+ if (authEmulatorHost) {
7164
+ connectAuthEmulator(auth2, `http://${authEmulatorHost}`);
7348
7165
  }
7349
- /**
7350
- * Returns a QR code URL as described in
7351
- * https://github.com/google/google-authenticator/wiki/Key-Uri-Format
7352
- * This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator.
7353
- * If the optional parameters are unspecified, an accountName of <userEmail> and issuer of <firebaseAppName> are used.
7354
- *
7355
- * @param accountName the name of the account/app along with a user identifier.
7356
- * @param issuer issuer of the TOTP (likely the app name).
7357
- * @returns A QR code URL string.
7358
- */
7359
- generateQrCodeUrl(accountName, issuer) {
7360
- var _a;
7361
- let useDefaults = false;
7362
- if (_isEmptyString(accountName) || _isEmptyString(issuer)) {
7363
- useDefaults = true;
7166
+ return auth2;
7167
+ }
7168
+ registerAuth(
7169
+ "Browser"
7170
+ /* ClientPlatform.BROWSER */
7171
+ );
7172
+
7173
+ // ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/dist/preact.module.js
7174
+ var n;
7175
+ var l;
7176
+ var u;
7177
+ var i;
7178
+ var t;
7179
+ var o;
7180
+ var r;
7181
+ var f = {};
7182
+ var e = [];
7183
+ var c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
7184
+ function s(n2, l2) {
7185
+ for (var u2 in l2)
7186
+ n2[u2] = l2[u2];
7187
+ return n2;
7188
+ }
7189
+ function a(n2) {
7190
+ var l2 = n2.parentNode;
7191
+ l2 && l2.removeChild(n2);
7192
+ }
7193
+ function h(l2, u2, i2) {
7194
+ var t2, o3, r2, f2 = {};
7195
+ for (r2 in u2)
7196
+ "key" == r2 ? t2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
7197
+ if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : i2), "function" == typeof l2 && null != l2.defaultProps)
7198
+ for (r2 in l2.defaultProps)
7199
+ void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
7200
+ return v(l2, f2, t2, o3, null);
7201
+ }
7202
+ function v(n2, i2, t2, o3, r2) {
7203
+ var f2 = { type: n2, props: i2, key: t2, ref: o3, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u : r2 };
7204
+ return null == r2 && null != l.vnode && l.vnode(f2), f2;
7205
+ }
7206
+ function p(n2) {
7207
+ return n2.children;
7208
+ }
7209
+ function d(n2, l2) {
7210
+ this.props = n2, this.context = l2;
7211
+ }
7212
+ function _(n2, l2) {
7213
+ if (null == l2)
7214
+ return n2.__ ? _(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
7215
+ for (var u2; l2 < n2.__k.length; l2++)
7216
+ if (null != (u2 = n2.__k[l2]) && null != u2.__e)
7217
+ return u2.__e;
7218
+ return "function" == typeof n2.type ? _(n2) : null;
7219
+ }
7220
+ function k(n2) {
7221
+ var l2, u2;
7222
+ if (null != (n2 = n2.__) && null != n2.__c) {
7223
+ for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
7224
+ if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
7225
+ n2.__e = n2.__c.base = u2.__e;
7226
+ break;
7227
+ }
7228
+ return k(n2);
7229
+ }
7230
+ }
7231
+ function b(n2) {
7232
+ (!n2.__d && (n2.__d = true) && t.push(n2) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
7233
+ }
7234
+ function g() {
7235
+ for (var n2; g.__r = t.length; )
7236
+ n2 = t.sort(function(n3, l2) {
7237
+ return n3.__v.__b - l2.__v.__b;
7238
+ }), t = [], n2.some(function(n3) {
7239
+ var l2, u2, i2, t2, o3, r2;
7240
+ n3.__d && (o3 = (t2 = (l2 = n3).__v).__e, (r2 = l2.__P) && (u2 = [], (i2 = s({}, t2)).__v = t2.__v + 1, j(r2, t2, i2, l2.__n, void 0 !== r2.ownerSVGElement, null != t2.__h ? [o3] : null, u2, null == o3 ? _(t2) : o3, t2.__h), z(u2, t2), t2.__e != o3 && k(t2)));
7241
+ });
7242
+ }
7243
+ function w(n2, l2, u2, i2, t2, o3, r2, c2, s2, a2) {
7244
+ var h2, y, d2, k2, b2, g2, w2, x = i2 && i2.__k || e, C2 = x.length;
7245
+ for (u2.__k = [], h2 = 0; h2 < l2.length; h2++)
7246
+ if (null != (k2 = u2.__k[h2] = null == (k2 = l2[h2]) || "boolean" == typeof k2 ? null : "string" == typeof k2 || "number" == typeof k2 || "bigint" == typeof k2 ? v(null, k2, null, null, k2) : Array.isArray(k2) ? v(p, { children: k2 }, null, null, null) : k2.__b > 0 ? v(k2.type, k2.props, k2.key, k2.ref ? k2.ref : null, k2.__v) : k2)) {
7247
+ if (k2.__ = u2, k2.__b = u2.__b + 1, null === (d2 = x[h2]) || d2 && k2.key == d2.key && k2.type === d2.type)
7248
+ x[h2] = void 0;
7249
+ else
7250
+ for (y = 0; y < C2; y++) {
7251
+ if ((d2 = x[y]) && k2.key == d2.key && k2.type === d2.type) {
7252
+ x[y] = void 0;
7253
+ break;
7254
+ }
7255
+ d2 = null;
7256
+ }
7257
+ j(n2, k2, d2 = d2 || f, t2, o3, r2, c2, s2, a2), b2 = k2.__e, (y = k2.ref) && d2.ref != y && (w2 || (w2 = []), d2.ref && w2.push(d2.ref, null, k2), w2.push(y, k2.__c || b2, k2)), null != b2 ? (null == g2 && (g2 = b2), "function" == typeof k2.type && k2.__k === d2.__k ? k2.__d = s2 = m(k2, s2, n2) : s2 = A(n2, k2, d2, x, b2, s2), "function" == typeof u2.type && (u2.__d = s2)) : s2 && d2.__e == s2 && s2.parentNode != n2 && (s2 = _(d2));
7364
7258
  }
7365
- if (useDefaults) {
7366
- if (_isEmptyString(accountName)) {
7367
- accountName = ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.email) || "unknownuser";
7259
+ for (u2.__e = g2, h2 = C2; h2--; )
7260
+ null != x[h2] && ("function" == typeof u2.type && null != x[h2].__e && x[h2].__e == u2.__d && (u2.__d = _(i2, h2 + 1)), N(x[h2], x[h2]));
7261
+ if (w2)
7262
+ for (h2 = 0; h2 < w2.length; h2++)
7263
+ M(w2[h2], w2[++h2], w2[++h2]);
7264
+ }
7265
+ function m(n2, l2, u2) {
7266
+ for (var i2, t2 = n2.__k, o3 = 0; t2 && o3 < t2.length; o3++)
7267
+ (i2 = t2[o3]) && (i2.__ = n2, l2 = "function" == typeof i2.type ? m(i2, l2, u2) : A(u2, i2, i2, t2, i2.__e, l2));
7268
+ return l2;
7269
+ }
7270
+ function A(n2, l2, u2, i2, t2, o3) {
7271
+ var r2, f2, e2;
7272
+ if (void 0 !== l2.__d)
7273
+ r2 = l2.__d, l2.__d = void 0;
7274
+ else if (null == u2 || t2 != o3 || null == t2.parentNode)
7275
+ n:
7276
+ if (null == o3 || o3.parentNode !== n2)
7277
+ n2.appendChild(t2), r2 = null;
7278
+ else {
7279
+ for (f2 = o3, e2 = 0; (f2 = f2.nextSibling) && e2 < i2.length; e2 += 2)
7280
+ if (f2 == t2)
7281
+ break n;
7282
+ n2.insertBefore(t2, o3), r2 = o3;
7368
7283
  }
7369
- if (_isEmptyString(issuer)) {
7370
- issuer = this.auth.name;
7284
+ return void 0 !== r2 ? r2 : t2.nextSibling;
7285
+ }
7286
+ function C(n2, l2, u2, i2, t2) {
7287
+ var o3;
7288
+ for (o3 in u2)
7289
+ "children" === o3 || "key" === o3 || o3 in l2 || H(n2, o3, null, u2[o3], i2);
7290
+ for (o3 in l2)
7291
+ t2 && "function" != typeof l2[o3] || "children" === o3 || "key" === o3 || "value" === o3 || "checked" === o3 || u2[o3] === l2[o3] || H(n2, o3, l2[o3], u2[o3], i2);
7292
+ }
7293
+ function $(n2, l2, u2) {
7294
+ "-" === l2[0] ? n2.setProperty(l2, u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || c.test(l2) ? u2 : u2 + "px";
7295
+ }
7296
+ function H(n2, l2, u2, i2, t2) {
7297
+ var o3;
7298
+ n:
7299
+ if ("style" === l2)
7300
+ if ("string" == typeof u2)
7301
+ n2.style.cssText = u2;
7302
+ else {
7303
+ if ("string" == typeof i2 && (n2.style.cssText = i2 = ""), i2)
7304
+ for (l2 in i2)
7305
+ u2 && l2 in u2 || $(n2.style, l2, "");
7306
+ if (u2)
7307
+ for (l2 in u2)
7308
+ i2 && u2[l2] === i2[l2] || $(n2.style, l2, u2[l2]);
7371
7309
  }
7310
+ else if ("o" === l2[0] && "n" === l2[1])
7311
+ o3 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o3] = u2, u2 ? i2 || n2.addEventListener(l2, o3 ? T : I, o3) : n2.removeEventListener(l2, o3 ? T : I, o3);
7312
+ else if ("dangerouslySetInnerHTML" !== l2) {
7313
+ if (t2)
7314
+ l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
7315
+ else if ("href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && l2 in n2)
7316
+ try {
7317
+ n2[l2] = null == u2 ? "" : u2;
7318
+ break n;
7319
+ } catch (n3) {
7320
+ }
7321
+ "function" == typeof u2 || (null != u2 && (false !== u2 || "a" === l2[0] && "r" === l2[1]) ? n2.setAttribute(l2, u2) : n2.removeAttribute(l2));
7372
7322
  }
7373
- return `otpauth://totp/${issuer}:${accountName}?secret=${this.secretKey}&issuer=${issuer}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`;
7323
+ }
7324
+ function I(n2) {
7325
+ this.l[n2.type + false](l.event ? l.event(n2) : n2);
7326
+ }
7327
+ function T(n2) {
7328
+ this.l[n2.type + true](l.event ? l.event(n2) : n2);
7329
+ }
7330
+ function j(n2, u2, i2, t2, o3, r2, f2, e2, c2) {
7331
+ var a2, h2, v2, y, _3, k2, b2, g2, m2, x, A2, C2, $2, H2 = u2.type;
7332
+ if (void 0 !== u2.constructor)
7333
+ return null;
7334
+ null != i2.__h && (c2 = i2.__h, e2 = u2.__e = i2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
7335
+ try {
7336
+ n:
7337
+ if ("function" == typeof H2) {
7338
+ if (g2 = u2.props, m2 = (a2 = H2.contextType) && t2[a2.__c], x = a2 ? m2 ? m2.props.value : a2.__ : t2, i2.__c ? b2 = (h2 = u2.__c = i2.__c).__ = h2.__E : ("prototype" in H2 && H2.prototype.render ? u2.__c = h2 = new H2(g2, x) : (u2.__c = h2 = new d(g2, x), h2.constructor = H2, h2.render = O), m2 && m2.sub(h2), h2.props = g2, h2.state || (h2.state = {}), h2.context = x, h2.__n = t2, v2 = h2.__d = true, h2.__h = []), null == h2.__s && (h2.__s = h2.state), null != H2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = s({}, h2.__s)), s(h2.__s, H2.getDerivedStateFromProps(g2, h2.__s))), y = h2.props, _3 = h2.state, v2)
7339
+ null == H2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
7340
+ else {
7341
+ if (null == H2.getDerivedStateFromProps && g2 !== y && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(g2, x), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(g2, h2.__s, x) || u2.__v === i2.__v) {
7342
+ h2.props = g2, h2.state = h2.__s, u2.__v !== i2.__v && (h2.__d = false), h2.__v = u2, u2.__e = i2.__e, u2.__k = i2.__k, u2.__k.forEach(function(n3) {
7343
+ n3 && (n3.__ = u2);
7344
+ }), h2.__h.length && f2.push(h2);
7345
+ break n;
7346
+ }
7347
+ null != h2.componentWillUpdate && h2.componentWillUpdate(g2, h2.__s, x), null != h2.componentDidUpdate && h2.__h.push(function() {
7348
+ h2.componentDidUpdate(y, _3, k2);
7349
+ });
7350
+ }
7351
+ if (h2.context = x, h2.props = g2, h2.__v = u2, h2.__P = n2, A2 = l.__r, C2 = 0, "prototype" in H2 && H2.prototype.render)
7352
+ h2.state = h2.__s, h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context);
7353
+ else
7354
+ do {
7355
+ h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
7356
+ } while (h2.__d && ++C2 < 25);
7357
+ h2.state = h2.__s, null != h2.getChildContext && (t2 = s(s({}, t2), h2.getChildContext())), v2 || null == h2.getSnapshotBeforeUpdate || (k2 = h2.getSnapshotBeforeUpdate(y, _3)), $2 = null != a2 && a2.type === p && null == a2.key ? a2.props.children : a2, w(n2, Array.isArray($2) ? $2 : [$2], u2, i2, t2, o3, r2, f2, e2, c2), h2.base = u2.__e, u2.__h = null, h2.__h.length && f2.push(h2), b2 && (h2.__E = h2.__ = null), h2.__e = false;
7358
+ } else
7359
+ null == r2 && u2.__v === i2.__v ? (u2.__k = i2.__k, u2.__e = i2.__e) : u2.__e = L(i2.__e, u2, i2, t2, o3, r2, f2, c2);
7360
+ (a2 = l.diffed) && a2(u2);
7361
+ } catch (n3) {
7362
+ u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, i2);
7374
7363
  }
7375
- };
7376
- function _isEmptyString(input) {
7377
- return typeof input === "undefined" || (input === null || input === void 0 ? void 0 : input.length) === 0;
7378
7364
  }
7379
- var name3 = "@firebase/auth";
7380
- var version3 = "1.3.0";
7381
- var AuthInterop = class {
7382
- constructor(auth2) {
7383
- this.auth = auth2;
7384
- this.internalListeners = /* @__PURE__ */ new Map();
7385
- }
7386
- getUid() {
7387
- var _a;
7388
- this.assertAuthConfigured();
7389
- return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;
7390
- }
7391
- async getToken(forceRefresh) {
7392
- this.assertAuthConfigured();
7393
- await this.auth._initializationPromise;
7394
- if (!this.auth.currentUser) {
7395
- return null;
7365
+ function z(n2, u2) {
7366
+ l.__c && l.__c(u2, n2), n2.some(function(u3) {
7367
+ try {
7368
+ n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
7369
+ n3.call(u3);
7370
+ });
7371
+ } catch (n3) {
7372
+ l.__e(n3, u3.__v);
7396
7373
  }
7397
- const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);
7398
- return { accessToken };
7374
+ });
7375
+ }
7376
+ function L(l2, u2, i2, t2, o3, r2, e2, c2) {
7377
+ var s2, h2, v2, y = i2.props, p2 = u2.props, d2 = u2.type, k2 = 0;
7378
+ if ("svg" === d2 && (o3 = true), null != r2) {
7379
+ for (; k2 < r2.length; k2++)
7380
+ if ((s2 = r2[k2]) && "setAttribute" in s2 == !!d2 && (d2 ? s2.localName === d2 : 3 === s2.nodeType)) {
7381
+ l2 = s2, r2[k2] = null;
7382
+ break;
7383
+ }
7399
7384
  }
7400
- addAuthTokenListener(listener) {
7401
- this.assertAuthConfigured();
7402
- if (this.internalListeners.has(listener)) {
7403
- return;
7404
- }
7405
- const unsubscribe = this.auth.onIdTokenChanged((user) => {
7406
- listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);
7407
- });
7408
- this.internalListeners.set(listener, unsubscribe);
7409
- this.updateProactiveRefresh();
7385
+ if (null == l2) {
7386
+ if (null === d2)
7387
+ return document.createTextNode(p2);
7388
+ l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p2.is && p2), r2 = null, c2 = false;
7410
7389
  }
7411
- removeAuthTokenListener(listener) {
7412
- this.assertAuthConfigured();
7413
- const unsubscribe = this.internalListeners.get(listener);
7414
- if (!unsubscribe) {
7415
- return;
7390
+ if (null === d2)
7391
+ y === p2 || c2 && l2.data === p2 || (l2.data = p2);
7392
+ else {
7393
+ if (r2 = r2 && n.call(l2.childNodes), h2 = (y = i2.props || f).dangerouslySetInnerHTML, v2 = p2.dangerouslySetInnerHTML, !c2) {
7394
+ if (null != r2)
7395
+ for (y = {}, k2 = 0; k2 < l2.attributes.length; k2++)
7396
+ y[l2.attributes[k2].name] = l2.attributes[k2].value;
7397
+ (v2 || h2) && (v2 && (h2 && v2.__html == h2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2 && v2.__html || ""));
7416
7398
  }
7417
- this.internalListeners.delete(listener);
7418
- unsubscribe();
7419
- this.updateProactiveRefresh();
7420
- }
7421
- assertAuthConfigured() {
7422
- _assert(
7423
- this.auth._initializationPromise,
7424
- "dependent-sdk-initialized-before-auth"
7425
- /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
7426
- );
7399
+ if (C(l2, p2, y, o3, c2), v2)
7400
+ u2.__k = [];
7401
+ else if (k2 = u2.props.children, w(l2, Array.isArray(k2) ? k2 : [k2], u2, i2, t2, o3 && "foreignObject" !== d2, r2, e2, r2 ? r2[0] : i2.__k && _(i2, 0), c2), null != r2)
7402
+ for (k2 = r2.length; k2--; )
7403
+ null != r2[k2] && a(r2[k2]);
7404
+ c2 || ("value" in p2 && void 0 !== (k2 = p2.value) && (k2 !== l2.value || "progress" === d2 && !k2 || "option" === d2 && k2 !== y.value) && H(l2, "value", k2, y.value, false), "checked" in p2 && void 0 !== (k2 = p2.checked) && k2 !== l2.checked && H(l2, "checked", k2, y.checked, false));
7427
7405
  }
7428
- updateProactiveRefresh() {
7429
- if (this.internalListeners.size > 0) {
7430
- this.auth._startProactiveRefresh();
7431
- } else {
7432
- this.auth._stopProactiveRefresh();
7433
- }
7406
+ return l2;
7407
+ }
7408
+ function M(n2, u2, i2) {
7409
+ try {
7410
+ "function" == typeof n2 ? n2(u2) : n2.current = u2;
7411
+ } catch (n3) {
7412
+ l.__e(n3, i2);
7434
7413
  }
7435
- };
7436
- function getVersionForPlatform(clientPlatform) {
7437
- switch (clientPlatform) {
7438
- case "Node":
7439
- return "node";
7440
- case "ReactNative":
7441
- return "rn";
7442
- case "Worker":
7443
- return "webworker";
7444
- case "Cordova":
7445
- return "cordova";
7446
- default:
7447
- return void 0;
7414
+ }
7415
+ function N(n2, u2, i2) {
7416
+ var t2, o3;
7417
+ if (l.unmount && l.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current !== n2.__e || M(t2, null, u2)), null != (t2 = n2.__c)) {
7418
+ if (t2.componentWillUnmount)
7419
+ try {
7420
+ t2.componentWillUnmount();
7421
+ } catch (n3) {
7422
+ l.__e(n3, u2);
7423
+ }
7424
+ t2.base = t2.__P = null, n2.__c = void 0;
7448
7425
  }
7426
+ if (t2 = n2.__k)
7427
+ for (o3 = 0; o3 < t2.length; o3++)
7428
+ t2[o3] && N(t2[o3], u2, "function" != typeof n2.type);
7429
+ i2 || null == n2.__e || a(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
7449
7430
  }
7450
- function registerAuth(clientPlatform) {
7451
- _registerComponent(new Component(
7452
- "auth",
7453
- (container, { options: deps }) => {
7454
- const app2 = container.getProvider("app").getImmediate();
7455
- const heartbeatServiceProvider = container.getProvider("heartbeat");
7456
- const appCheckServiceProvider = container.getProvider("app-check-internal");
7457
- const { apiKey, authDomain } = app2.options;
7458
- _assert(apiKey && !apiKey.includes(":"), "invalid-api-key", { appName: app2.name });
7459
- const config = {
7460
- apiKey,
7461
- authDomain,
7462
- clientPlatform,
7463
- apiHost: "identitytoolkit.googleapis.com",
7464
- tokenApiHost: "securetoken.googleapis.com",
7465
- apiScheme: "https",
7466
- sdkClientVersion: _getClientVersion(clientPlatform)
7467
- };
7468
- const authInstance = new AuthImpl(app2, heartbeatServiceProvider, appCheckServiceProvider, config);
7469
- _initializeAuthInstance(authInstance, deps);
7470
- return authInstance;
7471
- },
7472
- "PUBLIC"
7473
- /* ComponentType.PUBLIC */
7474
- ).setInstantiationMode(
7475
- "EXPLICIT"
7476
- /* InstantiationMode.EXPLICIT */
7477
- ).setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {
7478
- const authInternalProvider = container.getProvider(
7479
- "auth-internal"
7480
- /* _ComponentName.AUTH_INTERNAL */
7481
- );
7482
- authInternalProvider.initialize();
7483
- }));
7484
- _registerComponent(new Component(
7485
- "auth-internal",
7486
- (container) => {
7487
- const auth2 = _castAuth(container.getProvider(
7488
- "auth"
7489
- /* _ComponentName.AUTH */
7490
- ).getImmediate());
7491
- return ((auth3) => new AuthInterop(auth3))(auth2);
7492
- },
7493
- "PRIVATE"
7494
- /* ComponentType.PRIVATE */
7495
- ).setInstantiationMode(
7496
- "EXPLICIT"
7497
- /* InstantiationMode.EXPLICIT */
7498
- ));
7499
- registerVersion(name3, version3, getVersionForPlatform(clientPlatform));
7500
- registerVersion(name3, version3, "esm2017");
7431
+ function O(n2, l2, u2) {
7432
+ return this.constructor(n2, u2);
7501
7433
  }
7502
- var DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;
7503
- var authIdTokenMaxAge = getExperimentalSetting("authIdTokenMaxAge") || DEFAULT_ID_TOKEN_MAX_AGE;
7504
- var lastPostedIdToken = null;
7505
- var mintCookieFactory = (url) => async (user) => {
7506
- const idTokenResult = user && await user.getIdTokenResult();
7507
- const idTokenAge = idTokenResult && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1e3;
7508
- if (idTokenAge && idTokenAge > authIdTokenMaxAge) {
7509
- return;
7510
- }
7511
- const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;
7512
- if (lastPostedIdToken === idToken) {
7513
- return;
7514
- }
7515
- lastPostedIdToken = idToken;
7516
- await fetch(url, {
7517
- method: idToken ? "POST" : "DELETE",
7518
- headers: idToken ? {
7519
- "Authorization": `Bearer ${idToken}`
7520
- } : {}
7521
- });
7522
- };
7523
- function getAuth(app2 = getApp()) {
7524
- const provider = _getProvider(app2, "auth");
7525
- if (provider.isInitialized()) {
7526
- return provider.getImmediate();
7527
- }
7528
- const auth2 = initializeAuth(app2, {
7529
- popupRedirectResolver: browserPopupRedirectResolver,
7530
- persistence: [
7531
- indexedDBLocalPersistence,
7532
- browserLocalPersistence,
7533
- browserSessionPersistence
7534
- ]
7535
- });
7536
- const authTokenSyncUrl = getExperimentalSetting("authTokenSyncURL");
7537
- if (authTokenSyncUrl) {
7538
- const mintCookie = mintCookieFactory(authTokenSyncUrl);
7539
- beforeAuthStateChanged(auth2, mintCookie, () => mintCookie(auth2.currentUser));
7540
- onIdTokenChanged(auth2, (user) => mintCookie(user));
7541
- }
7542
- const authEmulatorHost = getDefaultEmulatorHost("auth");
7543
- if (authEmulatorHost) {
7544
- connectAuthEmulator(auth2, `http://${authEmulatorHost}`);
7545
- }
7546
- return auth2;
7434
+ function P(u2, i2, t2) {
7435
+ var o3, r2, e2;
7436
+ l.__ && l.__(u2, i2), r2 = (o3 = "function" == typeof t2) ? null : t2 && t2.__k || i2.__k, e2 = [], j(i2, u2 = (!o3 && t2 || i2).__k = h(p, null, [u2]), r2 || f, f, void 0 !== i2.ownerSVGElement, !o3 && t2 ? [t2] : r2 ? null : i2.firstChild ? n.call(i2.childNodes) : null, e2, !o3 && t2 ? t2 : r2 ? r2.__e : i2.firstChild, o3), z(e2, u2);
7547
7437
  }
7548
- registerAuth(
7549
- "Browser"
7550
- /* ClientPlatform.BROWSER */
7551
- );
7438
+ n = e.slice, l = { __e: function(n2, l2, u2, i2) {
7439
+ for (var t2, o3, r2; l2 = l2.__; )
7440
+ if ((t2 = l2.__c) && !t2.__)
7441
+ try {
7442
+ if ((o3 = t2.constructor) && null != o3.getDerivedStateFromError && (t2.setState(o3.getDerivedStateFromError(n2)), r2 = t2.__d), null != t2.componentDidCatch && (t2.componentDidCatch(n2, i2 || {}), r2 = t2.__d), r2)
7443
+ return t2.__E = t2;
7444
+ } catch (l3) {
7445
+ n2 = l3;
7446
+ }
7447
+ throw n2;
7448
+ } }, u = 0, i = function(n2) {
7449
+ return null != n2 && void 0 === n2.constructor;
7450
+ }, d.prototype.setState = function(n2, l2) {
7451
+ var u2;
7452
+ u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = s({}, this.state), "function" == typeof n2 && (n2 = n2(s({}, u2), this.props)), n2 && s(u2, n2), null != n2 && this.__v && (l2 && this.__h.push(l2), b(this));
7453
+ }, d.prototype.forceUpdate = function(n2) {
7454
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), b(this));
7455
+ }, d.prototype.render = p, t = [], g.__r = 0, r = 0;
7552
7456
 
7553
7457
  // ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
7554
7458
  var _2 = 0;
@@ -7565,10 +7469,11 @@
7565
7469
 
7566
7470
  // signin/signin.tsx
7567
7471
  function SignIn() {
7568
- return /* @__PURE__ */ o2("div", { className: "signin", children: /* @__PURE__ */ o2("div", { className: "signin__card", children: [
7569
- /* @__PURE__ */ o2("div", { className: "signin__card__header", children: /* @__PURE__ */ o2("div", { className: "signin__card__header__icon", children: /* @__PURE__ */ o2(IconSitemap, { size: 80, "stroke-width": 1.5 }) }) }),
7472
+ const title = window.__ROOT_CTX.name;
7473
+ return /* @__PURE__ */ o2("div", { className: "signin", children: [
7474
+ title && /* @__PURE__ */ o2("h1", { className: "signin__title", children: title }),
7570
7475
  /* @__PURE__ */ o2(SignIn.Button, {})
7571
- ] }) });
7476
+ ] });
7572
7477
  }
7573
7478
  SignIn.Button = () => {
7574
7479
  async function signIn() {