@blinkk/root-cms 1.0.0-beta.6 → 1.0.0-beta.61

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 = [];
@@ -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 = {};
@@ -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
  */