@blinkk/root-cms 1.0.0-beta.8 → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/signin.js CHANGED
@@ -1,5 +1,385 @@
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.17.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.17.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.17.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
+
3
383
  // ../../node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/dist/index.esm2017.js
4
384
  var stringToByteArray$1 = function(str) {
5
385
  const out = [];
@@ -395,13 +775,13 @@
395
775
  });
396
776
  }
397
777
  var ERROR_NAME = "FirebaseError";
398
- var FirebaseError = class extends Error {
778
+ var FirebaseError = class _FirebaseError extends Error {
399
779
  constructor(code, message, customData) {
400
780
  super(message);
401
781
  this.code = code;
402
782
  this.customData = customData;
403
783
  this.name = ERROR_NAME;
404
- Object.setPrototypeOf(this, FirebaseError.prototype);
784
+ Object.setPrototypeOf(this, _FirebaseError.prototype);
405
785
  if (Error.captureStackTrace) {
406
786
  Error.captureStackTrace(this, ErrorFactory.prototype.create);
407
787
  }
@@ -1781,6 +2161,11 @@
1781
2161
  }
1782
2162
  registerCoreComponents("");
1783
2163
 
2164
+ // ../../node_modules/.pnpm/firebase@9.17.2/node_modules/firebase/app/dist/esm/index.esm.js
2165
+ var name2 = "firebase";
2166
+ var version2 = "9.17.2";
2167
+ registerVersion(name2, version2, "app");
2168
+
1784
2169
  // ../../node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.es6.js
1785
2170
  function __rest(s2, e2) {
1786
2171
  var t2 = {};
@@ -2565,7 +2950,7 @@
2565
2950
  refreshToken: response.refresh_token
2566
2951
  };
2567
2952
  }
2568
- var StsTokenManager = class {
2953
+ var StsTokenManager = class _StsTokenManager {
2569
2954
  constructor() {
2570
2955
  this.refreshToken = null;
2571
2956
  this.accessToken = null;
@@ -2623,7 +3008,7 @@
2623
3008
  }
2624
3009
  static fromJSON(appName, object) {
2625
3010
  const { refreshToken, accessToken, expirationTime } = object;
2626
- const manager = new StsTokenManager();
3011
+ const manager = new _StsTokenManager();
2627
3012
  if (refreshToken) {
2628
3013
  _assert(typeof refreshToken === "string", "internal-error", {
2629
3014
  appName
@@ -2657,7 +3042,7 @@
2657
3042
  this.expirationTime = stsTokenManager.expirationTime;
2658
3043
  }
2659
3044
  _clone() {
2660
- return Object.assign(new StsTokenManager(), this.toJSON());
3045
+ return Object.assign(new _StsTokenManager(), this.toJSON());
2661
3046
  }
2662
3047
  _performRefresh() {
2663
3048
  return debugFail("not implemented");
@@ -2666,7 +3051,7 @@
2666
3051
  function assertStringOrUndefined(assertion, appName) {
2667
3052
  _assert(typeof assertion === "string" || typeof assertion === "undefined", "internal-error", { appName });
2668
3053
  }
2669
- var UserImpl = class {
3054
+ var UserImpl = class _UserImpl {
2670
3055
  constructor(_a) {
2671
3056
  var { uid, auth: auth2, stsTokenManager } = _a, opt = __rest(_a, ["uid", "auth", "stsTokenManager"]);
2672
3057
  this.providerId = "firebase";
@@ -2730,7 +3115,7 @@
2730
3115
  this.stsTokenManager._assign(user.stsTokenManager);
2731
3116
  }
2732
3117
  _clone(auth2) {
2733
- return new UserImpl(Object.assign(Object.assign({}, this), { auth: auth2, stsTokenManager: this.stsTokenManager._clone() }));
3118
+ return new _UserImpl(Object.assign(Object.assign({}, this), { auth: auth2, stsTokenManager: this.stsTokenManager._clone() }));
2734
3119
  }
2735
3120
  _onReload(callback) {
2736
3121
  _assert(
@@ -2846,7 +3231,7 @@
2846
3231
  assertStringOrUndefined(_redirectEventId, auth2.name);
2847
3232
  assertStringOrUndefined(createdAt, auth2.name);
2848
3233
  assertStringOrUndefined(lastLoginAt, auth2.name);
2849
- const user = new UserImpl({
3234
+ const user = new _UserImpl({
2850
3235
  uid,
2851
3236
  auth: auth2,
2852
3237
  email,
@@ -2876,7 +3261,7 @@
2876
3261
  static async _fromIdTokenResponse(auth2, idTokenResponse, isAnonymous = false) {
2877
3262
  const stsTokenManager = new StsTokenManager();
2878
3263
  stsTokenManager.updateFromServerResponse(idTokenResponse);
2879
- const user = new UserImpl({
3264
+ const user = new _UserImpl({
2880
3265
  uid: idTokenResponse.localId,
2881
3266
  auth: auth2,
2882
3267
  stsTokenManager,
@@ -2916,7 +3301,7 @@
2916
3301
  function _persistenceKeyName(key, apiKey, appName) {
2917
3302
  return `${"firebase"}:${key}:${apiKey}:${appName}`;
2918
3303
  }
2919
- var PersistenceUserManager = class {
3304
+ var PersistenceUserManager = class _PersistenceUserManager {
2920
3305
  constructor(persistence, auth2, userKey) {
2921
3306
  this.persistence = persistence;
2922
3307
  this.auth = auth2;
@@ -2956,7 +3341,7 @@
2956
3341
  }
2957
3342
  static async create(auth2, persistenceHierarchy, userKey = "authUser") {
2958
3343
  if (!persistenceHierarchy.length) {
2959
- return new PersistenceUserManager(_getInstance(inMemoryPersistence), auth2, userKey);
3344
+ return new _PersistenceUserManager(_getInstance(inMemoryPersistence), auth2, userKey);
2960
3345
  }
2961
3346
  const availablePersistences = (await Promise.all(persistenceHierarchy.map(async (persistence) => {
2962
3347
  if (await persistence._isAvailable()) {
@@ -2983,7 +3368,7 @@
2983
3368
  }
2984
3369
  const migrationHierarchy = availablePersistences.filter((p2) => p2._shouldAllowMigration);
2985
3370
  if (!selectedPersistence._shouldAllowMigration || !migrationHierarchy.length) {
2986
- return new PersistenceUserManager(selectedPersistence, auth2, userKey);
3371
+ return new _PersistenceUserManager(selectedPersistence, auth2, userKey);
2987
3372
  }
2988
3373
  selectedPersistence = migrationHierarchy[0];
2989
3374
  if (userToMigrate) {
@@ -2997,7 +3382,7 @@
2997
3382
  }
2998
3383
  }
2999
3384
  }));
3000
- return new PersistenceUserManager(selectedPersistence, auth2, userKey);
3385
+ return new _PersistenceUserManager(selectedPersistence, auth2, userKey);
3001
3386
  }
3002
3387
  };
3003
3388
  function _getBrowserName(userAgent) {
@@ -3671,7 +4056,7 @@
3671
4056
  async function signInWithEmailLinkForLinking(auth2, request) {
3672
4057
  return _performSignInRequest(auth2, "POST", "/v1/accounts:signInWithEmailLink", _addTidIfNecessary(auth2, request));
3673
4058
  }
3674
- var EmailAuthCredential = class extends AuthCredential {
4059
+ var EmailAuthCredential = class _EmailAuthCredential extends AuthCredential {
3675
4060
  /** @internal */
3676
4061
  constructor(_email, _password, signInMethod, _tenantId = null) {
3677
4062
  super("password", signInMethod);
@@ -3681,7 +4066,7 @@
3681
4066
  }
3682
4067
  /** @internal */
3683
4068
  static _fromEmailAndPassword(email, password) {
3684
- return new EmailAuthCredential(
4069
+ return new _EmailAuthCredential(
3685
4070
  email,
3686
4071
  password,
3687
4072
  "password"
@@ -3690,7 +4075,7 @@
3690
4075
  }
3691
4076
  /** @internal */
3692
4077
  static _fromEmailAndCode(email, oobCode, tenantId = null) {
3693
- return new EmailAuthCredential(email, oobCode, "emailLink", tenantId);
4078
+ return new _EmailAuthCredential(email, oobCode, "emailLink", tenantId);
3694
4079
  }
3695
4080
  /** {@inheritdoc AuthCredential.toJSON} */
3696
4081
  toJSON() {
@@ -3775,14 +4160,14 @@
3775
4160
  return _performSignInRequest(auth2, "POST", "/v1/accounts:signInWithIdp", _addTidIfNecessary(auth2, request));
3776
4161
  }
3777
4162
  var IDP_REQUEST_URI$1 = "http://localhost";
3778
- var OAuthCredential = class extends AuthCredential {
4163
+ var OAuthCredential = class _OAuthCredential extends AuthCredential {
3779
4164
  constructor() {
3780
4165
  super(...arguments);
3781
4166
  this.pendingToken = null;
3782
4167
  }
3783
4168
  /** @internal */
3784
4169
  static _fromParams(params) {
3785
- const cred = new OAuthCredential(params.providerId, params.signInMethod);
4170
+ const cred = new _OAuthCredential(params.providerId, params.signInMethod);
3786
4171
  if (params.idToken || params.accessToken) {
3787
4172
  if (params.idToken) {
3788
4173
  cred.idToken = params.idToken;
@@ -3834,7 +4219,7 @@
3834
4219
  if (!providerId || !signInMethod) {
3835
4220
  return null;
3836
4221
  }
3837
- const cred = new OAuthCredential(providerId, signInMethod);
4222
+ const cred = new _OAuthCredential(providerId, signInMethod);
3838
4223
  cred.idToken = rest.idToken || void 0;
3839
4224
  cred.accessToken = rest.accessToken || void 0;
3840
4225
  cred.secret = rest.secret;
@@ -3910,7 +4295,7 @@
3910
4295
  const apiRequest = Object.assign(Object.assign({}, request), { operation: "REAUTH" });
3911
4296
  return _performSignInRequest(auth2, "POST", "/v1/accounts:signInWithPhoneNumber", _addTidIfNecessary(auth2, apiRequest), VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_);
3912
4297
  }
3913
- var PhoneAuthCredential = class extends AuthCredential {
4298
+ var PhoneAuthCredential = class _PhoneAuthCredential extends AuthCredential {
3914
4299
  constructor(params) {
3915
4300
  super(
3916
4301
  "phone",
@@ -3921,11 +4306,11 @@
3921
4306
  }
3922
4307
  /** @internal */
3923
4308
  static _fromVerification(verificationId, verificationCode) {
3924
- return new PhoneAuthCredential({ verificationId, verificationCode });
4309
+ return new _PhoneAuthCredential({ verificationId, verificationCode });
3925
4310
  }
3926
4311
  /** @internal */
3927
4312
  static _fromTokenResponse(phoneNumber, temporaryProof) {
3928
- return new PhoneAuthCredential({ phoneNumber, temporaryProof });
4313
+ return new _PhoneAuthCredential({ phoneNumber, temporaryProof });
3929
4314
  }
3930
4315
  /** @internal */
3931
4316
  _getIdTokenResponse(auth2) {
@@ -3978,7 +4363,7 @@
3978
4363
  if (!verificationCode && !verificationId && !phoneNumber && !temporaryProof) {
3979
4364
  return null;
3980
4365
  }
3981
- return new PhoneAuthCredential({
4366
+ return new _PhoneAuthCredential({
3982
4367
  verificationId,
3983
4368
  verificationCode,
3984
4369
  phoneNumber,
@@ -4011,7 +4396,7 @@
4011
4396
  const iOSDoubleDeepLink = iOSDeepLink ? querystringDecode(extractQuerystring(iOSDeepLink))["link"] : null;
4012
4397
  return iOSDoubleDeepLink || iOSDeepLink || doubleDeepLink || link || url;
4013
4398
  }
4014
- var ActionCodeURL = class {
4399
+ var ActionCodeURL = class _ActionCodeURL {
4015
4400
  /**
4016
4401
  * @param actionLink - The link from which to extract the URL.
4017
4402
  * @returns The {@link ActionCodeURL} object, or null if the link is invalid.
@@ -4066,15 +4451,15 @@
4066
4451
  static parseLink(link) {
4067
4452
  const actionLink = parseDeepLink(link);
4068
4453
  try {
4069
- return new ActionCodeURL(actionLink);
4454
+ return new _ActionCodeURL(actionLink);
4070
4455
  } catch (_a) {
4071
4456
  return null;
4072
4457
  }
4073
4458
  }
4074
4459
  };
4075
- var EmailAuthProvider = class {
4460
+ var EmailAuthProvider = class _EmailAuthProvider {
4076
4461
  constructor() {
4077
- this.providerId = EmailAuthProvider.PROVIDER_ID;
4462
+ this.providerId = _EmailAuthProvider.PROVIDER_ID;
4078
4463
  }
4079
4464
  /**
4080
4465
  * Initialize an {@link AuthCredential} using an email and password.
@@ -4195,7 +4580,7 @@
4195
4580
  return [...this.scopes];
4196
4581
  }
4197
4582
  };
4198
- var FacebookAuthProvider = class extends BaseOAuthProvider {
4583
+ var FacebookAuthProvider = class _FacebookAuthProvider extends BaseOAuthProvider {
4199
4584
  constructor() {
4200
4585
  super(
4201
4586
  "facebook.com"
@@ -4216,8 +4601,8 @@
4216
4601
  */
4217
4602
  static credential(accessToken) {
4218
4603
  return OAuthCredential._fromParams({
4219
- providerId: FacebookAuthProvider.PROVIDER_ID,
4220
- signInMethod: FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,
4604
+ providerId: _FacebookAuthProvider.PROVIDER_ID,
4605
+ signInMethod: _FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,
4221
4606
  accessToken
4222
4607
  });
4223
4608
  }
@@ -4227,7 +4612,7 @@
4227
4612
  * @param userCredential - The user credential.
4228
4613
  */
4229
4614
  static credentialFromResult(userCredential) {
4230
- return FacebookAuthProvider.credentialFromTaggedObject(userCredential);
4615
+ return _FacebookAuthProvider.credentialFromTaggedObject(userCredential);
4231
4616
  }
4232
4617
  /**
4233
4618
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4236,7 +4621,7 @@
4236
4621
  * @param userCredential - The user credential.
4237
4622
  */
4238
4623
  static credentialFromError(error) {
4239
- return FacebookAuthProvider.credentialFromTaggedObject(error.customData || {});
4624
+ return _FacebookAuthProvider.credentialFromTaggedObject(error.customData || {});
4240
4625
  }
4241
4626
  static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {
4242
4627
  if (!tokenResponse || !("oauthAccessToken" in tokenResponse)) {
@@ -4246,7 +4631,7 @@
4246
4631
  return null;
4247
4632
  }
4248
4633
  try {
4249
- return FacebookAuthProvider.credential(tokenResponse.oauthAccessToken);
4634
+ return _FacebookAuthProvider.credential(tokenResponse.oauthAccessToken);
4250
4635
  } catch (_a) {
4251
4636
  return null;
4252
4637
  }
@@ -4254,7 +4639,7 @@
4254
4639
  };
4255
4640
  FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4256
4641
  FacebookAuthProvider.PROVIDER_ID = "facebook.com";
4257
- var GoogleAuthProvider = class extends BaseOAuthProvider {
4642
+ var GoogleAuthProvider = class _GoogleAuthProvider extends BaseOAuthProvider {
4258
4643
  constructor() {
4259
4644
  super(
4260
4645
  "google.com"
@@ -4277,8 +4662,8 @@
4277
4662
  */
4278
4663
  static credential(idToken, accessToken) {
4279
4664
  return OAuthCredential._fromParams({
4280
- providerId: GoogleAuthProvider.PROVIDER_ID,
4281
- signInMethod: GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,
4665
+ providerId: _GoogleAuthProvider.PROVIDER_ID,
4666
+ signInMethod: _GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,
4282
4667
  idToken,
4283
4668
  accessToken
4284
4669
  });
@@ -4289,7 +4674,7 @@
4289
4674
  * @param userCredential - The user credential.
4290
4675
  */
4291
4676
  static credentialFromResult(userCredential) {
4292
- return GoogleAuthProvider.credentialFromTaggedObject(userCredential);
4677
+ return _GoogleAuthProvider.credentialFromTaggedObject(userCredential);
4293
4678
  }
4294
4679
  /**
4295
4680
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4298,7 +4683,7 @@
4298
4683
  * @param userCredential - The user credential.
4299
4684
  */
4300
4685
  static credentialFromError(error) {
4301
- return GoogleAuthProvider.credentialFromTaggedObject(error.customData || {});
4686
+ return _GoogleAuthProvider.credentialFromTaggedObject(error.customData || {});
4302
4687
  }
4303
4688
  static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {
4304
4689
  if (!tokenResponse) {
@@ -4309,7 +4694,7 @@
4309
4694
  return null;
4310
4695
  }
4311
4696
  try {
4312
- return GoogleAuthProvider.credential(oauthIdToken, oauthAccessToken);
4697
+ return _GoogleAuthProvider.credential(oauthIdToken, oauthAccessToken);
4313
4698
  } catch (_a) {
4314
4699
  return null;
4315
4700
  }
@@ -4317,7 +4702,7 @@
4317
4702
  };
4318
4703
  GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD = "google.com";
4319
4704
  GoogleAuthProvider.PROVIDER_ID = "google.com";
4320
- var GithubAuthProvider = class extends BaseOAuthProvider {
4705
+ var GithubAuthProvider = class _GithubAuthProvider extends BaseOAuthProvider {
4321
4706
  constructor() {
4322
4707
  super(
4323
4708
  "github.com"
@@ -4331,8 +4716,8 @@
4331
4716
  */
4332
4717
  static credential(accessToken) {
4333
4718
  return OAuthCredential._fromParams({
4334
- providerId: GithubAuthProvider.PROVIDER_ID,
4335
- signInMethod: GithubAuthProvider.GITHUB_SIGN_IN_METHOD,
4719
+ providerId: _GithubAuthProvider.PROVIDER_ID,
4720
+ signInMethod: _GithubAuthProvider.GITHUB_SIGN_IN_METHOD,
4336
4721
  accessToken
4337
4722
  });
4338
4723
  }
@@ -4342,7 +4727,7 @@
4342
4727
  * @param userCredential - The user credential.
4343
4728
  */
4344
4729
  static credentialFromResult(userCredential) {
4345
- return GithubAuthProvider.credentialFromTaggedObject(userCredential);
4730
+ return _GithubAuthProvider.credentialFromTaggedObject(userCredential);
4346
4731
  }
4347
4732
  /**
4348
4733
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4351,7 +4736,7 @@
4351
4736
  * @param userCredential - The user credential.
4352
4737
  */
4353
4738
  static credentialFromError(error) {
4354
- return GithubAuthProvider.credentialFromTaggedObject(error.customData || {});
4739
+ return _GithubAuthProvider.credentialFromTaggedObject(error.customData || {});
4355
4740
  }
4356
4741
  static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {
4357
4742
  if (!tokenResponse || !("oauthAccessToken" in tokenResponse)) {
@@ -4361,7 +4746,7 @@
4361
4746
  return null;
4362
4747
  }
4363
4748
  try {
4364
- return GithubAuthProvider.credential(tokenResponse.oauthAccessToken);
4749
+ return _GithubAuthProvider.credential(tokenResponse.oauthAccessToken);
4365
4750
  } catch (_a) {
4366
4751
  return null;
4367
4752
  }
@@ -4369,7 +4754,7 @@
4369
4754
  };
4370
4755
  GithubAuthProvider.GITHUB_SIGN_IN_METHOD = "github.com";
4371
4756
  GithubAuthProvider.PROVIDER_ID = "github.com";
4372
- var TwitterAuthProvider = class extends BaseOAuthProvider {
4757
+ var TwitterAuthProvider = class _TwitterAuthProvider extends BaseOAuthProvider {
4373
4758
  constructor() {
4374
4759
  super(
4375
4760
  "twitter.com"
@@ -4384,8 +4769,8 @@
4384
4769
  */
4385
4770
  static credential(token, secret) {
4386
4771
  return OAuthCredential._fromParams({
4387
- providerId: TwitterAuthProvider.PROVIDER_ID,
4388
- signInMethod: TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,
4772
+ providerId: _TwitterAuthProvider.PROVIDER_ID,
4773
+ signInMethod: _TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,
4389
4774
  oauthToken: token,
4390
4775
  oauthTokenSecret: secret
4391
4776
  });
@@ -4396,7 +4781,7 @@
4396
4781
  * @param userCredential - The user credential.
4397
4782
  */
4398
4783
  static credentialFromResult(userCredential) {
4399
- return TwitterAuthProvider.credentialFromTaggedObject(userCredential);
4784
+ return _TwitterAuthProvider.credentialFromTaggedObject(userCredential);
4400
4785
  }
4401
4786
  /**
4402
4787
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4405,7 +4790,7 @@
4405
4790
  * @param userCredential - The user credential.
4406
4791
  */
4407
4792
  static credentialFromError(error) {
4408
- return TwitterAuthProvider.credentialFromTaggedObject(error.customData || {});
4793
+ return _TwitterAuthProvider.credentialFromTaggedObject(error.customData || {});
4409
4794
  }
4410
4795
  static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {
4411
4796
  if (!tokenResponse) {
@@ -4416,7 +4801,7 @@
4416
4801
  return null;
4417
4802
  }
4418
4803
  try {
4419
- return TwitterAuthProvider.credential(oauthAccessToken, oauthTokenSecret);
4804
+ return _TwitterAuthProvider.credential(oauthAccessToken, oauthTokenSecret);
4420
4805
  } catch (_a) {
4421
4806
  return null;
4422
4807
  }
@@ -4424,7 +4809,7 @@
4424
4809
  };
4425
4810
  TwitterAuthProvider.TWITTER_SIGN_IN_METHOD = "twitter.com";
4426
4811
  TwitterAuthProvider.PROVIDER_ID = "twitter.com";
4427
- var UserCredentialImpl = class {
4812
+ var UserCredentialImpl = class _UserCredentialImpl {
4428
4813
  constructor(params) {
4429
4814
  this.user = params.user;
4430
4815
  this.providerId = params.providerId;
@@ -4434,7 +4819,7 @@
4434
4819
  static async _fromIdTokenResponse(auth2, operationType, idTokenResponse, isAnonymous = false) {
4435
4820
  const user = await UserImpl._fromIdTokenResponse(auth2, idTokenResponse, isAnonymous);
4436
4821
  const providerId = providerIdForResponse(idTokenResponse);
4437
- const userCred = new UserCredentialImpl({
4822
+ const userCred = new _UserCredentialImpl({
4438
4823
  user,
4439
4824
  providerId,
4440
4825
  _tokenResponse: idTokenResponse,
@@ -4449,7 +4834,7 @@
4449
4834
  true
4450
4835
  );
4451
4836
  const providerId = providerIdForResponse(response);
4452
- return new UserCredentialImpl({
4837
+ return new _UserCredentialImpl({
4453
4838
  user,
4454
4839
  providerId,
4455
4840
  _tokenResponse: response,
@@ -4466,13 +4851,13 @@
4466
4851
  }
4467
4852
  return null;
4468
4853
  }
4469
- var MultiFactorError = class extends FirebaseError {
4854
+ var MultiFactorError = class _MultiFactorError extends FirebaseError {
4470
4855
  constructor(auth2, error, operationType, user) {
4471
4856
  var _a;
4472
4857
  super(error.code, error.message);
4473
4858
  this.operationType = operationType;
4474
4859
  this.user = user;
4475
- Object.setPrototypeOf(this, MultiFactorError.prototype);
4860
+ Object.setPrototypeOf(this, _MultiFactorError.prototype);
4476
4861
  this.customData = {
4477
4862
  appName: auth2.name,
4478
4863
  tenantId: (_a = auth2.tenantId) !== null && _a !== void 0 ? _a : void 0,
@@ -4481,7 +4866,7 @@
4481
4866
  };
4482
4867
  }
4483
4868
  static _fromErrorAndOperation(auth2, error, operationType, user) {
4484
- return new MultiFactorError(auth2, error, operationType, user);
4869
+ return new _MultiFactorError(auth2, error, operationType, user);
4485
4870
  }
4486
4871
  };
4487
4872
  function _processCredentialSavingMfaContextIfNecessary(auth2, operationType, credential, user) {
@@ -4771,7 +5156,7 @@
4771
5156
  }
4772
5157
  }));
4773
5158
  }
4774
- var Receiver = class {
5159
+ var Receiver = class _Receiver {
4775
5160
  constructor(eventTarget) {
4776
5161
  this.eventTarget = eventTarget;
4777
5162
  this.handlersMap = {};
@@ -4788,7 +5173,7 @@
4788
5173
  if (existingInstance) {
4789
5174
  return existingInstance;
4790
5175
  }
4791
- const newInstance = new Receiver(eventTarget);
5176
+ const newInstance = new _Receiver(eventTarget);
4792
5177
  this.receivers.push(newInstance);
4793
5178
  return newInstance;
4794
5179
  }
@@ -5404,13 +5789,13 @@
5404
5789
  verifier._reset();
5405
5790
  }
5406
5791
  }
5407
- var PhoneAuthProvider = class {
5792
+ var PhoneAuthProvider = class _PhoneAuthProvider {
5408
5793
  /**
5409
5794
  * @param auth - The Firebase {@link Auth} instance in which sign-ins should occur.
5410
5795
  *
5411
5796
  */
5412
5797
  constructor(auth2) {
5413
- this.providerId = PhoneAuthProvider.PROVIDER_ID;
5798
+ this.providerId = _PhoneAuthProvider.PROVIDER_ID;
5414
5799
  this.auth = _castAuth(auth2);
5415
5800
  }
5416
5801
  /**
@@ -5483,7 +5868,7 @@
5483
5868
  */
5484
5869
  static credentialFromResult(userCredential) {
5485
5870
  const credential = userCredential;
5486
- return PhoneAuthProvider.credentialFromTaggedObject(credential);
5871
+ return _PhoneAuthProvider.credentialFromTaggedObject(credential);
5487
5872
  }
5488
5873
  /**
5489
5874
  * Returns an {@link AuthCredential} when passed an error.
@@ -5518,7 +5903,7 @@
5518
5903
  * @param error - The error to generate a credential from.
5519
5904
  */
5520
5905
  static credentialFromError(error) {
5521
- return PhoneAuthProvider.credentialFromTaggedObject(error.customData || {});
5906
+ return _PhoneAuthProvider.credentialFromTaggedObject(error.customData || {});
5522
5907
  }
5523
5908
  static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {
5524
5909
  if (!tokenResponse) {
@@ -5693,16 +6078,16 @@
5693
6078
  const action = new PopupOperation(authInternal, "signInViaPopup", provider, resolverInternal);
5694
6079
  return action.executeNotNull();
5695
6080
  }
5696
- var PopupOperation = class extends AbstractPopupRedirectOperation {
6081
+ var PopupOperation = class _PopupOperation extends AbstractPopupRedirectOperation {
5697
6082
  constructor(auth2, filter, provider, resolver, user) {
5698
6083
  super(auth2, filter, resolver, user);
5699
6084
  this.provider = provider;
5700
6085
  this.authWindow = null;
5701
6086
  this.pollId = null;
5702
- if (PopupOperation.currentPopupAction) {
5703
- PopupOperation.currentPopupAction.cancel();
6087
+ if (_PopupOperation.currentPopupAction) {
6088
+ _PopupOperation.currentPopupAction.cancel();
5704
6089
  }
5705
- PopupOperation.currentPopupAction = this;
6090
+ _PopupOperation.currentPopupAction = this;
5706
6091
  }
5707
6092
  async executeNotNull() {
5708
6093
  const result = await this.execute();
@@ -5759,7 +6144,7 @@
5759
6144
  }
5760
6145
  this.authWindow = null;
5761
6146
  this.pollId = null;
5762
- PopupOperation.currentPopupAction = null;
6147
+ _PopupOperation.currentPopupAction = null;
5763
6148
  }
5764
6149
  pollUserCancellation() {
5765
6150
  const poll = () => {
@@ -6374,7 +6759,7 @@
6374
6759
  }
6375
6760
  }
6376
6761
  };
6377
- var PhoneMultiFactorAssertionImpl = class extends MultiFactorAssertionImpl {
6762
+ var PhoneMultiFactorAssertionImpl = class _PhoneMultiFactorAssertionImpl extends MultiFactorAssertionImpl {
6378
6763
  constructor(credential) {
6379
6764
  super(
6380
6765
  "phone"
@@ -6384,7 +6769,7 @@
6384
6769
  }
6385
6770
  /** @internal */
6386
6771
  static _fromCredential(credential) {
6387
- return new PhoneMultiFactorAssertionImpl(credential);
6772
+ return new _PhoneMultiFactorAssertionImpl(credential);
6388
6773
  }
6389
6774
  /** @internal */
6390
6775
  _finalizeEnroll(auth2, idToken, displayName) {
@@ -6410,575 +6795,190 @@
6410
6795
  *
6411
6796
  * @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.
6412
6797
  * @returns A {@link PhoneMultiFactorAssertion} which can be used with
6413
- * {@link MultiFactorResolver.resolveSignIn}
6414
- */
6415
- static assertion(credential) {
6416
- return PhoneMultiFactorAssertionImpl._fromCredential(credential);
6417
- }
6418
- };
6419
- PhoneMultiFactorGenerator.FACTOR_ID = "phone";
6420
- var name2 = "@firebase/auth";
6421
- var version2 = "0.21.4";
6422
- var AuthInterop = class {
6423
- constructor(auth2) {
6424
- this.auth = auth2;
6425
- this.internalListeners = /* @__PURE__ */ new Map();
6426
- }
6427
- getUid() {
6428
- var _a;
6429
- this.assertAuthConfigured();
6430
- return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;
6431
- }
6432
- async getToken(forceRefresh) {
6433
- this.assertAuthConfigured();
6434
- await this.auth._initializationPromise;
6435
- if (!this.auth.currentUser) {
6436
- return null;
6437
- }
6438
- const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);
6439
- return { accessToken };
6440
- }
6441
- addAuthTokenListener(listener) {
6442
- this.assertAuthConfigured();
6443
- if (this.internalListeners.has(listener)) {
6444
- return;
6445
- }
6446
- const unsubscribe = this.auth.onIdTokenChanged((user) => {
6447
- listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);
6448
- });
6449
- this.internalListeners.set(listener, unsubscribe);
6450
- this.updateProactiveRefresh();
6451
- }
6452
- removeAuthTokenListener(listener) {
6453
- this.assertAuthConfigured();
6454
- const unsubscribe = this.internalListeners.get(listener);
6455
- if (!unsubscribe) {
6456
- return;
6457
- }
6458
- this.internalListeners.delete(listener);
6459
- unsubscribe();
6460
- this.updateProactiveRefresh();
6461
- }
6462
- assertAuthConfigured() {
6463
- _assert(
6464
- this.auth._initializationPromise,
6465
- "dependent-sdk-initialized-before-auth"
6466
- /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
6467
- );
6468
- }
6469
- updateProactiveRefresh() {
6470
- if (this.internalListeners.size > 0) {
6471
- this.auth._startProactiveRefresh();
6472
- } else {
6473
- this.auth._stopProactiveRefresh();
6474
- }
6475
- }
6476
- };
6477
- function getVersionForPlatform(clientPlatform) {
6478
- switch (clientPlatform) {
6479
- case "Node":
6480
- return "node";
6481
- case "ReactNative":
6482
- return "rn";
6483
- case "Worker":
6484
- return "webworker";
6485
- case "Cordova":
6486
- return "cordova";
6487
- default:
6488
- return void 0;
6489
- }
6490
- }
6491
- function registerAuth(clientPlatform) {
6492
- _registerComponent(new Component(
6493
- "auth",
6494
- (container, { options: deps }) => {
6495
- const app2 = container.getProvider("app").getImmediate();
6496
- const heartbeatServiceProvider = container.getProvider("heartbeat");
6497
- const { apiKey, authDomain } = app2.options;
6498
- return ((app3, heartbeatServiceProvider2) => {
6499
- _assert(apiKey && !apiKey.includes(":"), "invalid-api-key", { appName: app3.name });
6500
- _assert(!(authDomain === null || authDomain === void 0 ? void 0 : authDomain.includes(":")), "argument-error", {
6501
- appName: app3.name
6502
- });
6503
- const config = {
6504
- apiKey,
6505
- authDomain,
6506
- clientPlatform,
6507
- apiHost: "identitytoolkit.googleapis.com",
6508
- tokenApiHost: "securetoken.googleapis.com",
6509
- apiScheme: "https",
6510
- sdkClientVersion: _getClientVersion(clientPlatform)
6511
- };
6512
- const authInstance = new AuthImpl(app3, heartbeatServiceProvider2, config);
6513
- _initializeAuthInstance(authInstance, deps);
6514
- return authInstance;
6515
- })(app2, heartbeatServiceProvider);
6516
- },
6517
- "PUBLIC"
6518
- /* ComponentType.PUBLIC */
6519
- ).setInstantiationMode(
6520
- "EXPLICIT"
6521
- /* InstantiationMode.EXPLICIT */
6522
- ).setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {
6523
- const authInternalProvider = container.getProvider(
6524
- "auth-internal"
6525
- /* _ComponentName.AUTH_INTERNAL */
6526
- );
6527
- authInternalProvider.initialize();
6528
- }));
6529
- _registerComponent(new Component(
6530
- "auth-internal",
6531
- (container) => {
6532
- const auth2 = _castAuth(container.getProvider(
6533
- "auth"
6534
- /* _ComponentName.AUTH */
6535
- ).getImmediate());
6536
- return ((auth3) => new AuthInterop(auth3))(auth2);
6537
- },
6538
- "PRIVATE"
6539
- /* ComponentType.PRIVATE */
6540
- ).setInstantiationMode(
6541
- "EXPLICIT"
6542
- /* InstantiationMode.EXPLICIT */
6543
- ));
6544
- registerVersion(name2, version2, getVersionForPlatform(clientPlatform));
6545
- registerVersion(name2, version2, "esm2017");
6546
- }
6547
- var DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;
6548
- var authIdTokenMaxAge = getExperimentalSetting("authIdTokenMaxAge") || DEFAULT_ID_TOKEN_MAX_AGE;
6549
- var lastPostedIdToken = null;
6550
- var mintCookieFactory = (url) => async (user) => {
6551
- const idTokenResult = user && await user.getIdTokenResult();
6552
- const idTokenAge = idTokenResult && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1e3;
6553
- if (idTokenAge && idTokenAge > authIdTokenMaxAge) {
6554
- return;
6555
- }
6556
- const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;
6557
- if (lastPostedIdToken === idToken) {
6558
- return;
6559
- }
6560
- lastPostedIdToken = idToken;
6561
- await fetch(url, {
6562
- method: idToken ? "POST" : "DELETE",
6563
- headers: idToken ? {
6564
- "Authorization": `Bearer ${idToken}`
6565
- } : {}
6566
- });
6567
- };
6568
- function getAuth(app2 = getApp()) {
6569
- const provider = _getProvider(app2, "auth");
6570
- if (provider.isInitialized()) {
6571
- return provider.getImmediate();
6572
- }
6573
- const auth2 = initializeAuth(app2, {
6574
- popupRedirectResolver: browserPopupRedirectResolver,
6575
- persistence: [
6576
- indexedDBLocalPersistence,
6577
- browserLocalPersistence,
6578
- browserSessionPersistence
6579
- ]
6580
- });
6581
- const authTokenSyncUrl = getExperimentalSetting("authTokenSyncURL");
6582
- if (authTokenSyncUrl) {
6583
- const mintCookie = mintCookieFactory(authTokenSyncUrl);
6584
- beforeAuthStateChanged(auth2, mintCookie, () => mintCookie(auth2.currentUser));
6585
- onIdTokenChanged(auth2, (user) => mintCookie(user));
6586
- }
6587
- const authEmulatorHost = getDefaultEmulatorHost("auth");
6588
- if (authEmulatorHost) {
6589
- connectAuthEmulator(auth2, `http://${authEmulatorHost}`);
6590
- }
6591
- return auth2;
6592
- }
6593
- registerAuth(
6594
- "Browser"
6595
- /* ClientPlatform.BROWSER */
6596
- );
6597
-
6598
- // ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/dist/preact.module.js
6599
- var n;
6600
- var l;
6601
- var u;
6602
- var i;
6603
- var t;
6604
- var o;
6605
- var r;
6606
- var f = {};
6607
- var e = [];
6608
- var c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
6609
- function s(n2, l2) {
6610
- for (var u2 in l2)
6611
- n2[u2] = l2[u2];
6612
- return n2;
6613
- }
6614
- function a(n2) {
6615
- var l2 = n2.parentNode;
6616
- l2 && l2.removeChild(n2);
6617
- }
6618
- function h(l2, u2, i2) {
6619
- var t2, o3, r2, f2 = {};
6620
- for (r2 in u2)
6621
- "key" == r2 ? t2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
6622
- if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : i2), "function" == typeof l2 && null != l2.defaultProps)
6623
- for (r2 in l2.defaultProps)
6624
- void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
6625
- return v(l2, f2, t2, o3, null);
6626
- }
6627
- function v(n2, i2, t2, o3, r2) {
6628
- 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 };
6629
- return null == r2 && null != l.vnode && l.vnode(f2), f2;
6630
- }
6631
- function p(n2) {
6632
- return n2.children;
6633
- }
6634
- function d(n2, l2) {
6635
- this.props = n2, this.context = l2;
6636
- }
6637
- function _(n2, l2) {
6638
- if (null == l2)
6639
- return n2.__ ? _(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
6640
- for (var u2; l2 < n2.__k.length; l2++)
6641
- if (null != (u2 = n2.__k[l2]) && null != u2.__e)
6642
- return u2.__e;
6643
- return "function" == typeof n2.type ? _(n2) : null;
6644
- }
6645
- function k(n2) {
6646
- var l2, u2;
6647
- if (null != (n2 = n2.__) && null != n2.__c) {
6648
- for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
6649
- if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
6650
- n2.__e = n2.__c.base = u2.__e;
6651
- break;
6652
- }
6653
- return k(n2);
6798
+ * {@link MultiFactorResolver.resolveSignIn}
6799
+ */
6800
+ static assertion(credential) {
6801
+ return PhoneMultiFactorAssertionImpl._fromCredential(credential);
6654
6802
  }
6655
- }
6656
- function b(n2) {
6657
- (!n2.__d && (n2.__d = true) && t.push(n2) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
6658
- }
6659
- function g() {
6660
- for (var n2; g.__r = t.length; )
6661
- n2 = t.sort(function(n3, l2) {
6662
- return n3.__v.__b - l2.__v.__b;
6663
- }), t = [], n2.some(function(n3) {
6664
- var l2, u2, i2, t2, o3, r2;
6665
- 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)));
6803
+ };
6804
+ PhoneMultiFactorGenerator.FACTOR_ID = "phone";
6805
+ var name3 = "@firebase/auth";
6806
+ var version3 = "0.21.4";
6807
+ var AuthInterop = class {
6808
+ constructor(auth2) {
6809
+ this.auth = auth2;
6810
+ this.internalListeners = /* @__PURE__ */ new Map();
6811
+ }
6812
+ getUid() {
6813
+ var _a;
6814
+ this.assertAuthConfigured();
6815
+ return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;
6816
+ }
6817
+ async getToken(forceRefresh) {
6818
+ this.assertAuthConfigured();
6819
+ await this.auth._initializationPromise;
6820
+ if (!this.auth.currentUser) {
6821
+ return null;
6822
+ }
6823
+ const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);
6824
+ return { accessToken };
6825
+ }
6826
+ addAuthTokenListener(listener) {
6827
+ this.assertAuthConfigured();
6828
+ if (this.internalListeners.has(listener)) {
6829
+ return;
6830
+ }
6831
+ const unsubscribe = this.auth.onIdTokenChanged((user) => {
6832
+ listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);
6666
6833
  });
6667
- }
6668
- function w(n2, l2, u2, i2, t2, o3, r2, c2, s2, a2) {
6669
- var h2, y, d2, k2, b2, g2, w2, x2 = i2 && i2.__k || e, C2 = x2.length;
6670
- for (u2.__k = [], h2 = 0; h2 < l2.length; h2++)
6671
- 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)) {
6672
- if (k2.__ = u2, k2.__b = u2.__b + 1, null === (d2 = x2[h2]) || d2 && k2.key == d2.key && k2.type === d2.type)
6673
- x2[h2] = void 0;
6674
- else
6675
- for (y = 0; y < C2; y++) {
6676
- if ((d2 = x2[y]) && k2.key == d2.key && k2.type === d2.type) {
6677
- x2[y] = void 0;
6678
- break;
6679
- }
6680
- d2 = null;
6681
- }
6682
- 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));
6834
+ this.internalListeners.set(listener, unsubscribe);
6835
+ this.updateProactiveRefresh();
6836
+ }
6837
+ removeAuthTokenListener(listener) {
6838
+ this.assertAuthConfigured();
6839
+ const unsubscribe = this.internalListeners.get(listener);
6840
+ if (!unsubscribe) {
6841
+ return;
6683
6842
  }
6684
- for (u2.__e = g2, h2 = C2; h2--; )
6685
- 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]));
6686
- if (w2)
6687
- for (h2 = 0; h2 < w2.length; h2++)
6688
- M(w2[h2], w2[++h2], w2[++h2]);
6689
- }
6690
- function m(n2, l2, u2) {
6691
- for (var i2, t2 = n2.__k, o3 = 0; t2 && o3 < t2.length; o3++)
6692
- (i2 = t2[o3]) && (i2.__ = n2, l2 = "function" == typeof i2.type ? m(i2, l2, u2) : A(u2, i2, i2, t2, i2.__e, l2));
6693
- return l2;
6694
- }
6695
- function x(n2, l2) {
6696
- return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (Array.isArray(n2) ? n2.some(function(n3) {
6697
- x(n3, l2);
6698
- }) : l2.push(n2)), l2;
6699
- }
6700
- function A(n2, l2, u2, i2, t2, o3) {
6701
- var r2, f2, e2;
6702
- if (void 0 !== l2.__d)
6703
- r2 = l2.__d, l2.__d = void 0;
6704
- else if (null == u2 || t2 != o3 || null == t2.parentNode)
6705
- n:
6706
- if (null == o3 || o3.parentNode !== n2)
6707
- n2.appendChild(t2), r2 = null;
6708
- else {
6709
- for (f2 = o3, e2 = 0; (f2 = f2.nextSibling) && e2 < i2.length; e2 += 2)
6710
- if (f2 == t2)
6711
- break n;
6712
- n2.insertBefore(t2, o3), r2 = o3;
6713
- }
6714
- return void 0 !== r2 ? r2 : t2.nextSibling;
6715
- }
6716
- function C(n2, l2, u2, i2, t2) {
6717
- var o3;
6718
- for (o3 in u2)
6719
- "children" === o3 || "key" === o3 || o3 in l2 || H(n2, o3, null, u2[o3], i2);
6720
- for (o3 in l2)
6721
- 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);
6722
- }
6723
- function $(n2, l2, u2) {
6724
- "-" === l2[0] ? n2.setProperty(l2, u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || c.test(l2) ? u2 : u2 + "px";
6725
- }
6726
- function H(n2, l2, u2, i2, t2) {
6727
- var o3;
6728
- n:
6729
- if ("style" === l2)
6730
- if ("string" == typeof u2)
6731
- n2.style.cssText = u2;
6732
- else {
6733
- if ("string" == typeof i2 && (n2.style.cssText = i2 = ""), i2)
6734
- for (l2 in i2)
6735
- u2 && l2 in u2 || $(n2.style, l2, "");
6736
- if (u2)
6737
- for (l2 in u2)
6738
- i2 && u2[l2] === i2[l2] || $(n2.style, l2, u2[l2]);
6739
- }
6740
- else if ("o" === l2[0] && "n" === l2[1])
6741
- 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);
6742
- else if ("dangerouslySetInnerHTML" !== l2) {
6743
- if (t2)
6744
- l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
6745
- else if ("href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && l2 in n2)
6746
- try {
6747
- n2[l2] = null == u2 ? "" : u2;
6748
- break n;
6749
- } catch (n3) {
6750
- }
6751
- "function" == typeof u2 || (null != u2 && (false !== u2 || "a" === l2[0] && "r" === l2[1]) ? n2.setAttribute(l2, u2) : n2.removeAttribute(l2));
6843
+ this.internalListeners.delete(listener);
6844
+ unsubscribe();
6845
+ this.updateProactiveRefresh();
6846
+ }
6847
+ assertAuthConfigured() {
6848
+ _assert(
6849
+ this.auth._initializationPromise,
6850
+ "dependent-sdk-initialized-before-auth"
6851
+ /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
6852
+ );
6853
+ }
6854
+ updateProactiveRefresh() {
6855
+ if (this.internalListeners.size > 0) {
6856
+ this.auth._startProactiveRefresh();
6857
+ } else {
6858
+ this.auth._stopProactiveRefresh();
6752
6859
  }
6753
- }
6754
- function I(n2) {
6755
- this.l[n2.type + false](l.event ? l.event(n2) : n2);
6756
- }
6757
- function T(n2) {
6758
- this.l[n2.type + true](l.event ? l.event(n2) : n2);
6759
- }
6760
- function j(n2, u2, i2, t2, o3, r2, f2, e2, c2) {
6761
- var a2, h2, v2, y, _3, k2, b2, g2, m2, x2, A2, C2, $2, H2 = u2.type;
6762
- if (void 0 !== u2.constructor)
6763
- return null;
6764
- null != i2.__h && (c2 = i2.__h, e2 = u2.__e = i2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
6765
- try {
6766
- n:
6767
- if ("function" == typeof H2) {
6768
- 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)
6769
- null == H2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
6770
- else {
6771
- 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) {
6772
- 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) {
6773
- n3 && (n3.__ = u2);
6774
- }), h2.__h.length && f2.push(h2);
6775
- break n;
6776
- }
6777
- null != h2.componentWillUpdate && h2.componentWillUpdate(g2, h2.__s, x2), null != h2.componentDidUpdate && h2.__h.push(function() {
6778
- h2.componentDidUpdate(y, _3, k2);
6779
- });
6780
- }
6781
- if (h2.context = x2, h2.props = g2, h2.__v = u2, h2.__P = n2, A2 = l.__r, C2 = 0, "prototype" in H2 && H2.prototype.render)
6782
- h2.state = h2.__s, h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context);
6783
- else
6784
- do {
6785
- h2.__d = false, A2 && A2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
6786
- } while (h2.__d && ++C2 < 25);
6787
- 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;
6788
- } else
6789
- 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);
6790
- (a2 = l.diffed) && a2(u2);
6791
- } catch (n3) {
6792
- u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, i2);
6860
+ }
6861
+ };
6862
+ function getVersionForPlatform(clientPlatform) {
6863
+ switch (clientPlatform) {
6864
+ case "Node":
6865
+ return "node";
6866
+ case "ReactNative":
6867
+ return "rn";
6868
+ case "Worker":
6869
+ return "webworker";
6870
+ case "Cordova":
6871
+ return "cordova";
6872
+ default:
6873
+ return void 0;
6793
6874
  }
6794
6875
  }
6795
- function z(n2, u2) {
6796
- l.__c && l.__c(u2, n2), n2.some(function(u3) {
6797
- try {
6798
- n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
6799
- n3.call(u3);
6800
- });
6801
- } catch (n3) {
6802
- l.__e(n3, u3.__v);
6803
- }
6804
- });
6876
+ function registerAuth(clientPlatform) {
6877
+ _registerComponent(new Component(
6878
+ "auth",
6879
+ (container, { options: deps }) => {
6880
+ const app2 = container.getProvider("app").getImmediate();
6881
+ const heartbeatServiceProvider = container.getProvider("heartbeat");
6882
+ const { apiKey, authDomain } = app2.options;
6883
+ return ((app3, heartbeatServiceProvider2) => {
6884
+ _assert(apiKey && !apiKey.includes(":"), "invalid-api-key", { appName: app3.name });
6885
+ _assert(!(authDomain === null || authDomain === void 0 ? void 0 : authDomain.includes(":")), "argument-error", {
6886
+ appName: app3.name
6887
+ });
6888
+ const config = {
6889
+ apiKey,
6890
+ authDomain,
6891
+ clientPlatform,
6892
+ apiHost: "identitytoolkit.googleapis.com",
6893
+ tokenApiHost: "securetoken.googleapis.com",
6894
+ apiScheme: "https",
6895
+ sdkClientVersion: _getClientVersion(clientPlatform)
6896
+ };
6897
+ const authInstance = new AuthImpl(app3, heartbeatServiceProvider2, config);
6898
+ _initializeAuthInstance(authInstance, deps);
6899
+ return authInstance;
6900
+ })(app2, heartbeatServiceProvider);
6901
+ },
6902
+ "PUBLIC"
6903
+ /* ComponentType.PUBLIC */
6904
+ ).setInstantiationMode(
6905
+ "EXPLICIT"
6906
+ /* InstantiationMode.EXPLICIT */
6907
+ ).setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {
6908
+ const authInternalProvider = container.getProvider(
6909
+ "auth-internal"
6910
+ /* _ComponentName.AUTH_INTERNAL */
6911
+ );
6912
+ authInternalProvider.initialize();
6913
+ }));
6914
+ _registerComponent(new Component(
6915
+ "auth-internal",
6916
+ (container) => {
6917
+ const auth2 = _castAuth(container.getProvider(
6918
+ "auth"
6919
+ /* _ComponentName.AUTH */
6920
+ ).getImmediate());
6921
+ return ((auth3) => new AuthInterop(auth3))(auth2);
6922
+ },
6923
+ "PRIVATE"
6924
+ /* ComponentType.PRIVATE */
6925
+ ).setInstantiationMode(
6926
+ "EXPLICIT"
6927
+ /* InstantiationMode.EXPLICIT */
6928
+ ));
6929
+ registerVersion(name3, version3, getVersionForPlatform(clientPlatform));
6930
+ registerVersion(name3, version3, "esm2017");
6805
6931
  }
6806
- function L(l2, u2, i2, t2, o3, r2, e2, c2) {
6807
- var s2, h2, v2, y = i2.props, p2 = u2.props, d2 = u2.type, k2 = 0;
6808
- if ("svg" === d2 && (o3 = true), null != r2) {
6809
- for (; k2 < r2.length; k2++)
6810
- if ((s2 = r2[k2]) && "setAttribute" in s2 == !!d2 && (d2 ? s2.localName === d2 : 3 === s2.nodeType)) {
6811
- l2 = s2, r2[k2] = null;
6812
- break;
6813
- }
6932
+ var DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;
6933
+ var authIdTokenMaxAge = getExperimentalSetting("authIdTokenMaxAge") || DEFAULT_ID_TOKEN_MAX_AGE;
6934
+ var lastPostedIdToken = null;
6935
+ var mintCookieFactory = (url) => async (user) => {
6936
+ const idTokenResult = user && await user.getIdTokenResult();
6937
+ const idTokenAge = idTokenResult && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1e3;
6938
+ if (idTokenAge && idTokenAge > authIdTokenMaxAge) {
6939
+ return;
6814
6940
  }
6815
- if (null == l2) {
6816
- if (null === d2)
6817
- return document.createTextNode(p2);
6818
- l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p2.is && p2), r2 = null, c2 = false;
6941
+ const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;
6942
+ if (lastPostedIdToken === idToken) {
6943
+ return;
6819
6944
  }
6820
- if (null === d2)
6821
- y === p2 || c2 && l2.data === p2 || (l2.data = p2);
6822
- else {
6823
- if (r2 = r2 && n.call(l2.childNodes), h2 = (y = i2.props || f).dangerouslySetInnerHTML, v2 = p2.dangerouslySetInnerHTML, !c2) {
6824
- if (null != r2)
6825
- for (y = {}, k2 = 0; k2 < l2.attributes.length; k2++)
6826
- y[l2.attributes[k2].name] = l2.attributes[k2].value;
6827
- (v2 || h2) && (v2 && (h2 && v2.__html == h2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2 && v2.__html || ""));
6828
- }
6829
- if (C(l2, p2, y, o3, c2), v2)
6830
- u2.__k = [];
6831
- 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)
6832
- for (k2 = r2.length; k2--; )
6833
- null != r2[k2] && a(r2[k2]);
6834
- 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));
6945
+ lastPostedIdToken = idToken;
6946
+ await fetch(url, {
6947
+ method: idToken ? "POST" : "DELETE",
6948
+ headers: idToken ? {
6949
+ "Authorization": `Bearer ${idToken}`
6950
+ } : {}
6951
+ });
6952
+ };
6953
+ function getAuth(app2 = getApp()) {
6954
+ const provider = _getProvider(app2, "auth");
6955
+ if (provider.isInitialized()) {
6956
+ return provider.getImmediate();
6835
6957
  }
6836
- return l2;
6837
- }
6838
- function M(n2, u2, i2) {
6839
- try {
6840
- "function" == typeof n2 ? n2(u2) : n2.current = u2;
6841
- } catch (n3) {
6842
- l.__e(n3, i2);
6958
+ const auth2 = initializeAuth(app2, {
6959
+ popupRedirectResolver: browserPopupRedirectResolver,
6960
+ persistence: [
6961
+ indexedDBLocalPersistence,
6962
+ browserLocalPersistence,
6963
+ browserSessionPersistence
6964
+ ]
6965
+ });
6966
+ const authTokenSyncUrl = getExperimentalSetting("authTokenSyncURL");
6967
+ if (authTokenSyncUrl) {
6968
+ const mintCookie = mintCookieFactory(authTokenSyncUrl);
6969
+ beforeAuthStateChanged(auth2, mintCookie, () => mintCookie(auth2.currentUser));
6970
+ onIdTokenChanged(auth2, (user) => mintCookie(user));
6843
6971
  }
6844
- }
6845
- function N(n2, u2, i2) {
6846
- var t2, o3;
6847
- if (l.unmount && l.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current !== n2.__e || M(t2, null, u2)), null != (t2 = n2.__c)) {
6848
- if (t2.componentWillUnmount)
6849
- try {
6850
- t2.componentWillUnmount();
6851
- } catch (n3) {
6852
- l.__e(n3, u2);
6853
- }
6854
- t2.base = t2.__P = null, n2.__c = void 0;
6972
+ const authEmulatorHost = getDefaultEmulatorHost("auth");
6973
+ if (authEmulatorHost) {
6974
+ connectAuthEmulator(auth2, `http://${authEmulatorHost}`);
6855
6975
  }
6856
- if (t2 = n2.__k)
6857
- for (o3 = 0; o3 < t2.length; o3++)
6858
- t2[o3] && N(t2[o3], u2, "function" != typeof n2.type);
6859
- i2 || null == n2.__e || a(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
6860
- }
6861
- function O(n2, l2, u2) {
6862
- return this.constructor(n2, u2);
6863
- }
6864
- function P(u2, i2, t2) {
6865
- var o3, r2, e2;
6866
- 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);
6976
+ return auth2;
6867
6977
  }
6868
- n = e.slice, l = { __e: function(n2, l2, u2, i2) {
6869
- for (var t2, o3, r2; l2 = l2.__; )
6870
- if ((t2 = l2.__c) && !t2.__)
6871
- try {
6872
- 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)
6873
- return t2.__E = t2;
6874
- } catch (l3) {
6875
- n2 = l3;
6876
- }
6877
- throw n2;
6878
- } }, u = 0, i = function(n2) {
6879
- return null != n2 && void 0 === n2.constructor;
6880
- }, d.prototype.setState = function(n2, l2) {
6881
- var u2;
6882
- 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));
6883
- }, d.prototype.forceUpdate = function(n2) {
6884
- this.__v && (this.__e = true, n2 && this.__h.push(n2), b(this));
6885
- }, d.prototype.render = p, t = [], g.__r = 0, r = 0;
6886
-
6887
- // ../../node_modules/.pnpm/firebase@9.17.2/node_modules/firebase/app/dist/esm/index.esm.js
6888
- var name3 = "firebase";
6889
- var version3 = "9.17.2";
6890
- registerVersion(name3, version3, "app");
6891
-
6892
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/defaultAttributes.js
6893
- var defaultAttributes = {
6894
- xmlns: "http://www.w3.org/2000/svg",
6895
- width: 24,
6896
- height: 24,
6897
- viewBox: "0 0 24 24",
6898
- fill: "none",
6899
- stroke: "currentColor",
6900
- "stroke-width": 2,
6901
- "stroke-linecap": "round",
6902
- "stroke-linejoin": "round"
6903
- };
6904
-
6905
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/createPreactComponent.js
6906
- var __defProp = Object.defineProperty;
6907
- var __defProps = Object.defineProperties;
6908
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6909
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6910
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6911
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
6912
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6913
- var __spreadValues = (a2, b2) => {
6914
- for (var prop in b2 || (b2 = {}))
6915
- if (__hasOwnProp.call(b2, prop))
6916
- __defNormalProp(a2, prop, b2[prop]);
6917
- if (__getOwnPropSymbols)
6918
- for (var prop of __getOwnPropSymbols(b2)) {
6919
- if (__propIsEnum.call(b2, prop))
6920
- __defNormalProp(a2, prop, b2[prop]);
6921
- }
6922
- return a2;
6923
- };
6924
- var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
6925
- var __objRest = (source, exclude) => {
6926
- var target = {};
6927
- for (var prop in source)
6928
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
6929
- target[prop] = source[prop];
6930
- if (source != null && __getOwnPropSymbols)
6931
- for (var prop of __getOwnPropSymbols(source)) {
6932
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
6933
- target[prop] = source[prop];
6934
- }
6935
- return target;
6936
- };
6937
- var createPreactComponent = (iconName, iconNamePascal, iconNode) => {
6938
- const Component2 = (_a) => {
6939
- var _b = _a, { color = "currentColor", size = 24, stroke = 2, children } = _b, rest = __objRest(_b, ["color", "size", "stroke", "children"]);
6940
- return h(
6941
- "svg",
6942
- __spreadValues(__spreadProps(__spreadValues({}, defaultAttributes), {
6943
- width: size,
6944
- height: size,
6945
- stroke: color,
6946
- "stroke-width": stroke,
6947
- class: `tabler-icon tabler-icon-${iconName}`
6948
- }), rest),
6949
- [...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...x(children)]
6950
- );
6951
- };
6952
- Component2.displayName = `${iconNamePascal}`;
6953
- return Component2;
6954
- };
6955
-
6956
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSitemap.js
6957
- var IconSitemap = createPreactComponent("sitemap", "IconSitemap", [
6958
- [
6959
- "path",
6960
- {
6961
- 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",
6962
- key: "svg-0"
6963
- }
6964
- ],
6965
- [
6966
- "path",
6967
- {
6968
- 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",
6969
- key: "svg-1"
6970
- }
6971
- ],
6972
- [
6973
- "path",
6974
- {
6975
- 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",
6976
- key: "svg-2"
6977
- }
6978
- ],
6979
- ["path", { d: "M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1", key: "svg-3" }],
6980
- ["path", { d: "M12 9l0 3", key: "svg-4" }]
6981
- ]);
6978
+ registerAuth(
6979
+ "Browser"
6980
+ /* ClientPlatform.BROWSER */
6981
+ );
6982
6982
 
6983
6983
  // ../../node_modules/.pnpm/preact@10.11.0/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
6984
6984
  var _2 = 0;
@@ -6996,10 +6996,7 @@
6996
6996
  // signin/signin.tsx
6997
6997
  function SignIn() {
6998
6998
  return /* @__PURE__ */ o2("div", { className: "signin", children: /* @__PURE__ */ o2("div", { className: "signin__card", children: [
6999
- /* @__PURE__ */ o2("div", { className: "signin__card__header", children: [
7000
- /* @__PURE__ */ o2(IconSitemap, { className: "signin__card__header__icon", size: 48 }),
7001
- /* @__PURE__ */ o2("h1", { children: "Root.js CMS" })
7002
- ] }),
6999
+ /* @__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 }) }) }),
7003
7000
  /* @__PURE__ */ o2(SignIn.Button, {})
7004
7001
  ] }) });
7005
7002
  }
@@ -7070,7 +7067,7 @@
7070
7067
  function loginSuccessRedirect() {
7071
7068
  const params = new URLSearchParams(window.location.search);
7072
7069
  let redirectUrl = params.get("continue");
7073
- if (!redirectUrl || !redirectUrl.startsWith("/cms") || redirectUrl.startsWith("/cms/login")) {
7070
+ if (!redirectUrl || !redirectUrl.startsWith("/") || redirectUrl.startsWith("/cms/login")) {
7074
7071
  redirectUrl = "/cms";
7075
7072
  }
7076
7073
  window.location.replace(redirectUrl);
@@ -7512,6 +7509,24 @@
7512
7509
  * limitations under the License.
7513
7510
  *)
7514
7511
 
7512
+ firebase/app/dist/esm/index.esm.js:
7513
+ (**
7514
+ * @license
7515
+ * Copyright 2020 Google LLC
7516
+ *
7517
+ * Licensed under the Apache License, Version 2.0 (the "License");
7518
+ * you may not use this file except in compliance with the License.
7519
+ * You may obtain a copy of the License at
7520
+ *
7521
+ * http://www.apache.org/licenses/LICENSE-2.0
7522
+ *
7523
+ * Unless required by applicable law or agreed to in writing, software
7524
+ * distributed under the License is distributed on an "AS IS" BASIS,
7525
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7526
+ * See the License for the specific language governing permissions and
7527
+ * limitations under the License.
7528
+ *)
7529
+
7515
7530
  @firebase/auth/dist/esm2017/index-e3f1fbba.js:
7516
7531
  (**
7517
7532
  * @license
@@ -8373,22 +8388,4 @@
8373
8388
  * See the License for the specific language governing permissions and
8374
8389
  * limitations under the License.
8375
8390
  *)
8376
-
8377
- firebase/app/dist/esm/index.esm.js:
8378
- (**
8379
- * @license
8380
- * Copyright 2020 Google LLC
8381
- *
8382
- * Licensed under the Apache License, Version 2.0 (the "License");
8383
- * you may not use this file except in compliance with the License.
8384
- * You may obtain a copy of the License at
8385
- *
8386
- * http://www.apache.org/licenses/LICENSE-2.0
8387
- *
8388
- * Unless required by applicable law or agreed to in writing, software
8389
- * distributed under the License is distributed on an "AS IS" BASIS,
8390
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8391
- * See the License for the specific language governing permissions and
8392
- * limitations under the License.
8393
- *)
8394
8391
  */