@commentkit/comment-kit 1.5.0 → 1.6.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/CHANGELOG.md +20 -2
- package/dist/npm/THIRD_PARTY_NOTICES.txt +2 -2
- package/dist/npm/chunks/{AgentSend-DyWxNQ0p.js → AgentSend-2JPDseOo.js} +4 -5
- package/dist/npm/chunks/{Checklist-VYkSl6Q9.js → Checklist-BpDXQebo.js} +77 -79
- package/dist/npm/chunks/Composer-CAyj-c8e.js +677 -0
- package/dist/npm/chunks/Guest-ZdFmTcXI.js +187 -0
- package/dist/npm/chunks/{MarkupEditor-DxTI9nJH.js → MarkupEditor-BFplZwFy.js} +3 -5
- package/dist/npm/chunks/{Panel-riaMYxt-.js → Panel-BhZ4XRDR.js} +300 -302
- package/dist/npm/chunks/{Settings-CB4zxQAL.js → Settings-SPG9EHUZ.js} +70 -72
- package/dist/npm/chunks/{Shortcuts-D1cbajg_.js → Shortcuts-C28HVDw6.js} +3 -5
- package/dist/npm/chunks/{StyleEditor-BtTv3I8_.js → StyleEditor-ByZMtq10.js} +4 -5
- package/dist/npm/chunks/{StylePanel-BI-n5Me1.js → StylePanel-Iwhce2tE.js} +62 -64
- package/dist/npm/chunks/{TaskFields-HwrD0FrH.js → TaskFields-BsP_fVJg.js} +7 -6
- package/dist/npm/chunks/{ThreadCard-CjaC8BTa.js → ThreadCard-BzVZdDCb.js} +407 -403
- package/dist/npm/chunks/{Viewer-BnWshSXb.js → Viewer-CqtGrdD8.js} +29 -31
- package/dist/npm/chunks/{agent-Cr6NB6We.js → agent-BDMQtOzH.js} +14 -15
- package/dist/npm/chunks/{anchor-OCQnjp_6.js → anchor-BsradQhn.js} +1 -2
- package/dist/npm/chunks/{ar-BQ9K9Oqf.js → ar-8tPch6W4.js} +5 -2
- package/dist/npm/chunks/{card-bits-CxteYiZ9.js → card-bits-Bna-g3Py.js} +24 -26
- package/dist/npm/chunks/{client-CJ1tpI62.js → client-EFTWxHbJ.js} +76 -61
- package/dist/npm/chunks/{colors-0Ied7PE2.js → colors-CWAn_swA.js} +39 -4
- package/dist/npm/chunks/{confetti-DKeKR7-6.js → confetti-DTKpwF3O.js} +1 -2
- package/dist/npm/chunks/{de-CcPi8xdC.js → de-C63897uD.js} +5 -2
- package/dist/npm/chunks/{drafts-CpQdHhcK.js → drafts-akdBsOd0.js} +1 -2
- package/dist/npm/chunks/{es-DXgkjDCG.js → es-CI2bSpvB.js} +5 -2
- package/dist/npm/chunks/{extension-BIGfr4Gh.js → extension-BST6LH1q.js} +2 -3
- package/dist/npm/chunks/{extension-DkDSW4qw.js → extension-D-V3utTm.js} +3 -4
- package/dist/npm/chunks/{fr-IjJaUbWh.js → fr-rsVe-Lqk.js} +5 -2
- package/dist/npm/chunks/{hi-BhKQK2MU.js → hi-cvwbSaWP.js} +5 -2
- package/dist/npm/chunks/{html2canvas-pro.esm-lgs6tb4C.js → html2canvas-pro.esm-B7b8p5Wr.js} +608 -528
- package/dist/npm/chunks/{i18n-DAJGndZ2.js → i18n-C4v0M-6z.js} +254 -257
- package/dist/npm/chunks/{it-DKiSCkiD.js → it-C8tnV0BF.js} +5 -2
- package/dist/npm/chunks/{ja-BI1WagDg.js → ja-BWxDfC2f.js} +5 -2
- package/dist/npm/chunks/{live-B-mo27Qq.js → live-BCpJVBeN.js} +2 -3
- package/dist/npm/chunks/{lock-C82sC17d.js → lock-B1JLlOhz.js} +0 -1
- package/dist/npm/chunks/{nl-CJw3VUQ5.js → nl-DNQ6eCht.js} +5 -2
- package/dist/npm/chunks/{pick-CYPkLLFJ.js → pick-CLyOdjnD.js} +3 -4
- package/dist/npm/chunks/{pt-BR-CjBolC5g.js → pt-BR-CkG7vpU2.js} +5 -2
- package/dist/npm/chunks/{realtime-D22tI_AS.js → realtime-DIo-Wth4.js} +2 -3
- package/dist/npm/chunks/{report-DoDVi1qT.js → report-BBrT3r89.js} +1 -2
- package/dist/npm/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/npm/chunks/{source-CTQmAh0Y.js → source-CS7C6wJA.js} +2 -3
- package/dist/npm/chunks/{src-CgBEoWl0.js → src-C4FsVoUp.js} +22 -24
- package/dist/npm/chunks/{start-DW9_DKmf.js → start-i9M-r3aH.js} +375 -358
- package/dist/npm/chunks/{upload-BmrpZE5G.js → upload-DSv7EyBD.js} +2 -3
- package/dist/npm/chunks/uploads-I01kdqQF.js +1103 -0
- package/dist/npm/chunks/{zh-CN-BrZGx2S0.js → zh-CN-BKuZOLBE.js} +5 -2
- package/dist/npm/element.js +2 -3
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +2 -2
- package/dist/npm/react.js +2 -3
- package/dist/npm/svelte.js +2 -3
- package/dist/npm/types/core/auth.d.ts +14 -0
- package/dist/npm/vue.js +2 -3
- package/package.json +8 -8
- package/dist/npm/chunks/Composer-CnsGQirF.js +0 -679
- package/dist/npm/chunks/Guest-DkIvY5zt.js +0 -170
- package/dist/npm/chunks/uploads-CipONvCy.js +0 -541
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
var e, t, n, r, i, a, o, s, c, l, u = {},
|
|
3
|
-
function
|
|
1
|
+
// node_modules/preact/dist/preact.mjs
|
|
2
|
+
var e, t, n, r, i, a, o, s, c, l, u = Symbol.for("pv"), d = {}, f = [], p = /^m(i|n|o|s|text|space)$/, m = Array.isArray, h = f.slice, g = Object.assign;
|
|
3
|
+
function _(e) {
|
|
4
4
|
e && e.parentNode && e.remove();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function v(n, r, i, a, o) {
|
|
7
7
|
var s = {
|
|
8
8
|
type: n,
|
|
9
9
|
props: r,
|
|
@@ -14,176 +14,173 @@ function _(n, r, i, a, o) {
|
|
|
14
14
|
__b: 0,
|
|
15
15
|
__e: null,
|
|
16
16
|
__c: null,
|
|
17
|
-
constructor:
|
|
17
|
+
constructor: u,
|
|
18
18
|
__v: o || ++t,
|
|
19
19
|
__i: -1,
|
|
20
20
|
__u: 0
|
|
21
21
|
};
|
|
22
22
|
return !o && e.vnode && e.vnode(s), s;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function y(e) {
|
|
25
25
|
return e.children;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function b(e, t) {
|
|
28
28
|
this.props = e, this.context = t, this.__g = 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
if (t == null) return e.__
|
|
30
|
+
function x(e, t) {
|
|
31
|
+
if (t == null) return e.__ && x(e.__, e.__i + 1);
|
|
32
32
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) && n.__e) return n.__e;
|
|
33
|
-
return typeof e.type != "function" || e.props.__P ? null :
|
|
33
|
+
return typeof e.type != "function" || e.props.__P ? null : x(e);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function S(e) {
|
|
36
36
|
if ((e = e.__) && e.__c && !e.props.__P) return e.__e = null, e.__k.some(function(t) {
|
|
37
37
|
return t && (e.__e = t.__e);
|
|
38
|
-
}),
|
|
38
|
+
}), S(e);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
(8 & t.__g ||
|
|
40
|
+
function C(t) {
|
|
41
|
+
(8 & t.__g || (t.__g |= 8, n.push(t), i++)) && r == e.debounceRendering || ((r = e.debounceRendering) || queueMicrotask)(w);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
var t,
|
|
43
|
+
function w() {
|
|
44
|
+
var t, o, s, c, l, d, f, p, m;
|
|
45
45
|
try {
|
|
46
|
-
for (
|
|
46
|
+
for (o = 1; n.length;) n.length > o && n.sort(a), t = n.shift(), o = n.length, 8 & t.__g && (c = void 0, l = void 0, d = (l = (s = t).__v).__e, f = [], p = [], (m = s.__P) && ((c = g({ constructor: u }, l)).__v = l.__v + 1, e.vnode && e.vnode(c), j(m, c, l, s.__n, m.namespaceURI, 32 & l.__u ? [d] : null, f, d || x(l), 32 & l.__u, p), c.__v = l.__v, c.__.__k[c.__i] = c, N(f, c, p), l.__ = l.__e = null, c.__e != d && S(c)));
|
|
47
47
|
} finally {
|
|
48
|
-
n.length
|
|
48
|
+
(i = n.length) && (r || queueMicrotask)(w);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function ee(e, t, n, r, i, a, o, s, c, l,
|
|
52
|
-
var p, m, h, g, _, v, y = r.__k ||
|
|
53
|
-
for (c =
|
|
51
|
+
function ee(e, t, n, r, i, a, o, s, c, l, u) {
|
|
52
|
+
var p, m, h, g, _, v, y = r.__k || f, b = t.length;
|
|
53
|
+
for (c = T(n, t, y, c, b), p = 0; p < b; p++) (h = n.__k[p]) != null && (m = ~h.__i && y[h.__i] || d, h.__i = p, v = j(e, h, m, i, a, o, s, c, l, u), g = h.__e, (m.ref != h.ref || 8 & m.__u) && (m.ref && P(m.ref, null, h, m), h.ref && u.push(h.ref, h.__c || g, h)), _ = _ || g, 4 & h.__u ? (c = E(h, c, e, !m.__v), m.__e && (m.__e = null)) : typeof h.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), h.__u &= -21);
|
|
54
54
|
return n.__e = _, c;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
var a, o, s, c, l,
|
|
58
|
-
for (a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o != "object" || o.constructor
|
|
56
|
+
function T(e, t, n, r, i) {
|
|
57
|
+
var a, o, s, c, l, d, f, p, h, g = n.length, _ = g, b = 0, S = 0, C = e.__k = Array(i);
|
|
58
|
+
for (a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o != "object" || o.constructor === String ? o = C[a] = v(null, o) : m(o) ? o = C[a] = v(y, { children: o }) : o.constructor === u && o.__b ? o = C[a] = v(o.type, o.props, o.key, o.ref, o.__v) : C[a] = o, c = a + b, o.__ = e, o.__b = e.__b + 1, s = null, ~(l = o.__i = D(o, n, c, _)) && (_--, (s = n[l]) && (s.__u |= 2)), s && s.__v ? (o.__u |= 16, l == c - 1 ? b-- : l == c + 1 ? b++ : l != c && (l > c ? b-- : b++, S = 1)) : (~l || (i > g ? b-- : i < g && b++), typeof o.type != "function" && (o.__u |= 4))) : C[a] = null;
|
|
59
59
|
if (S) {
|
|
60
|
-
for (
|
|
61
|
-
for (
|
|
62
|
-
|
|
60
|
+
for (d = [], f = [], a = 0; a < i; a++) if ((o = C[a]) && 16 & o.__u) {
|
|
61
|
+
for (b = 0, p = d.length; b < p;) d[h = b + p >> 1] < o.__i ? b = h + 1 : p = h;
|
|
62
|
+
d[b] = o.__i, f[a] = b + 1;
|
|
63
63
|
}
|
|
64
|
-
for (
|
|
64
|
+
for (b = d.length; a--;) f[a] && (f[a] == b ? b-- : C[a].__u |= 4);
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
66
|
+
if (_) for (a = 0; a < g; a++) !(s = n[a]) || 2 & s.__u || (s.__e == r && (r = x(s)), F(s, s));
|
|
67
67
|
return r;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
var i, a, o;
|
|
69
|
+
function E(e, t, n, r) {
|
|
70
|
+
var i, a, o, s;
|
|
71
71
|
if (typeof e.type == "function") {
|
|
72
72
|
if (e.props.__P) return t;
|
|
73
|
-
if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && (i[a].__ = e, t =
|
|
73
|
+
if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && (i[a].__ = e, t = E(i[a], t, n, !1));
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
|
-
for (t && !t.parentNode && (t =
|
|
77
|
-
for (
|
|
76
|
+
for (t && !t.parentNode && (t = x(e)) && !t.parentNode && (t = null), o = e.__e, s = t; s && s.nodeType == 8;) s = s.nextSibling;
|
|
77
|
+
for (o != s && (!r && n.moveBefore && o.parentNode ? n.moveBefore(o, t) : n.insertBefore(o, t || null)), t = o; (t = t && t.nextSibling) && t.nodeType == 8 && !t.data.startsWith("$s"););
|
|
78
78
|
return t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
var i, a
|
|
82
|
-
if (
|
|
83
|
-
if (r > +!!
|
|
84
|
-
for (i = n - 1
|
|
80
|
+
function D(e, t, n, r) {
|
|
81
|
+
var i, a = e.key, o = e.type, s = t[n], c = s && !(2 & s.__u);
|
|
82
|
+
if (s === null && a == null || c && a == s.key && o == s.type) return n;
|
|
83
|
+
if (r > +!!c) {
|
|
84
|
+
for (i = n - 1; i >= 0; i--) if ((s = t[i]) && !(2 & s.__u) && a == s.key && o == s.type) return i;
|
|
85
|
+
for (i = n + 1; i < t.length; i++) if ((s = t[i]) && !(2 & s.__u) && a == s.key && o == s.type) return i;
|
|
85
86
|
}
|
|
86
87
|
return -1;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function O(e, t, n) {
|
|
89
90
|
n ?? (n = ""), t[0] == "-" ? e.setProperty(t, n) : e[t] = n;
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function k(e, t, n, r, i) {
|
|
92
93
|
var a, o;
|
|
93
|
-
|
|
94
|
+
if (t == "style") {
|
|
94
95
|
if (typeof n == "string") e.style.cssText = n;
|
|
95
96
|
else {
|
|
96
|
-
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n ||
|
|
97
|
-
if (n) for (t in n) r && n[t] == r[t] ||
|
|
97
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || O(e.style, t);
|
|
98
|
+
if (n) for (t in n) r && n[t] == r[t] || O(e.style, t, n[t]);
|
|
98
99
|
}
|
|
99
|
-
} else if (t[0] == "o" && t[1] == "n") (e.__e || (e.__e = {}))[t] = n, n && r || (o = l[t] || (l[t] =
|
|
100
|
+
} else if (t[0] == "o" && t[1] == "n") (e.__e || (e.__e = {}))[t] = n, n && r || (o = l[t] || (l[t] = A(t)), (e.__a || (e.__a = {}))[t] = c, a = t != (t = t.replace(s, "$1")), (t = t.slice(2))[0] < "a" && (t = t.toLowerCase()), n ? e.addEventListener(t, o, a) : e.removeEventListener(t, o, a));
|
|
100
101
|
else {
|
|
101
102
|
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
102
103
|
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
103
104
|
e[t] = n ?? "";
|
|
104
|
-
|
|
105
|
+
return;
|
|
105
106
|
} catch {}
|
|
106
|
-
typeof n == "function"
|
|
107
|
+
if (typeof n == "function") return;
|
|
108
|
+
n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n);
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
|
-
function
|
|
111
|
+
function A(t) {
|
|
110
112
|
return function(n) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (n[o] == null) n[o] = c++;
|
|
113
|
+
var r = this.__e;
|
|
114
|
+
if (r) {
|
|
115
|
+
if (r = r[t], n[o] == null) n[o] = c++;
|
|
114
116
|
else if (n[o] < this.__a[t]) return;
|
|
115
117
|
return r(e.event ? e.event(n) : n);
|
|
116
118
|
}
|
|
117
119
|
};
|
|
118
120
|
}
|
|
119
|
-
function
|
|
120
|
-
var
|
|
121
|
-
if (n.constructor !==
|
|
122
|
-
|
|
123
|
-
if (n.__u |= l, m = o = [], f.nodeType == 8) for (_ = 1, x = f.nextSibling; x; x = x.nextSibling) {
|
|
124
|
-
if (x.nodeType == 8) {
|
|
125
|
-
if (x.data.startsWith("$s")) _++;
|
|
126
|
-
else if (x.data.startsWith("/$s") && !--_) break;
|
|
127
|
-
}
|
|
128
|
-
o.push(x);
|
|
129
|
-
}
|
|
130
|
-
else o.push(f);
|
|
131
|
-
c = o[0];
|
|
132
|
-
}
|
|
133
|
-
(f = e.__b) && f(n);
|
|
121
|
+
function j(t, n, r, i, a, o, s, c, l, d) {
|
|
122
|
+
var p, h, v, S, C, w, T, E, D, O, k, A, j, N, P, I, L, R, z = n.type;
|
|
123
|
+
if (n.constructor !== u) return null;
|
|
124
|
+
128 & r.__u && (l = 32 & r.__u, p = r.__c.__z) && (n.__u |= l, h = o = [], p.nodeType == 8 ? c = M(p, o) : o.push(p), c = o[0] || c), (p = e.__b) && p(n);
|
|
134
125
|
n: if (typeof z == "function") {
|
|
135
|
-
|
|
126
|
+
v = s.length;
|
|
136
127
|
try {
|
|
137
|
-
if (
|
|
138
|
-
if (
|
|
139
|
-
n.__v != r.__v && (
|
|
128
|
+
if (E = n.props, D = (p = z.prototype) && p.render, O = (p = z.contextType) && i[p.__c], k = p ? O ? O.props.value : p.__ : i, (S = r.__c) ? (n.__c = S, 2 & S.__g && (S.__g |= 1)) : (D ? n.__c = S = new z(E, k) : (n.__c = S = new b(E, k), S.constructor = z, S.render = re), O && O.sub(S), S.state || (S.state = {}), S.__n = i, S.__g |= 8, S.__h = [], S.__k = []), D && (S.__s || (S.__s = S.state), z.getDerivedStateFromProps && (S.__s == S.state && (S.__s = g({}, S.__s)), g(S.__s, z.getDerivedStateFromProps(E, S.__s)))), C = S.props, w = S.state, S.__v = n, r.__c) {
|
|
129
|
+
if (E !== C && D && !z.getDerivedStateFromProps && S.componentWillReceiveProps && S.componentWillReceiveProps(E, k), n.__v == r.__v && !(8 & S.__g) || !(4 & S.__g) && S.shouldComponentUpdate && !1 === S.shouldComponentUpdate(E, S.__s, k)) {
|
|
130
|
+
n.__v != r.__v && (S.props = E, S.state = S.__s, S.__g &= -9), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
|
|
140
131
|
e && (e.__ = n);
|
|
141
|
-
}),
|
|
132
|
+
}), f.push.apply(S.__h, S.__k), S.__k = [], S.__h.length && s.push(S), c = x(r);
|
|
142
133
|
break n;
|
|
143
134
|
}
|
|
144
|
-
|
|
145
|
-
|
|
135
|
+
S.componentWillUpdate && S.componentWillUpdate(E, S.__s, k), D && S.componentDidUpdate && S.__h.push(function() {
|
|
136
|
+
S.componentDidUpdate(C, w, T);
|
|
146
137
|
});
|
|
147
|
-
} else
|
|
148
|
-
if (
|
|
138
|
+
} else D && !z.getDerivedStateFromProps && S.componentWillMount && S.componentWillMount(), D && S.componentDidMount && S.__h.push(S.componentDidMount);
|
|
139
|
+
if (S.context = k, S.props = E, S.__P = t, S.__g &= -5, A = e.__r, j = 0, D) S.state = S.__s, S.__g &= -9, A && A(n), p = S.render(S.props, S.state, S.context), f.push.apply(S.__h, S.__k), S.__k = [];
|
|
149
140
|
else do
|
|
150
|
-
|
|
151
|
-
while (8 &
|
|
152
|
-
|
|
153
|
-
e &&
|
|
154
|
-
}), r.__k = null), c = r.__k ?
|
|
141
|
+
S.__g &= -9, A && A(n), p = S.render(S.props, S.state, S.context), S.state = S.__s;
|
|
142
|
+
while (8 & S.__g && ++j < 25);
|
|
143
|
+
S.state = S.__s, S.getChildContext && (i = g({}, i, S.getChildContext())), D && r.__c && S.getSnapshotBeforeUpdate && (T = S.getSnapshotBeforeUpdate(C, w)), N = p && p.type === y && p.key == null ? p.props.children : p, E.__P && (p = c, a = (t = E.__P).namespaceURI, l = o = null, r.props && r.props.__P != t && (r.__k.some(function(e) {
|
|
144
|
+
e && F(e, e);
|
|
145
|
+
}), r.__k = null), c = r.__k ? x(r, 0) : null), c = ee(t, m(N) ? N : [N], n, r, i, a, o, s, c, l, d), E.__P && (n.__e = null, c = p), n.__u &= -161, h && h.some(_), S.__h.length && s.push(S), 1 & S.__g && (S.__g &= -4);
|
|
155
146
|
} catch (t) {
|
|
156
|
-
if (s.length =
|
|
147
|
+
if (s.length = v, n.__v = null, l || o) {
|
|
157
148
|
if (t.then) {
|
|
158
|
-
if (
|
|
149
|
+
if (P = 0, n.__u |= 128 | l, o) {
|
|
159
150
|
for (~(L = o.indexOf(c || void 0)) || (L = o.length); (R = o[L - 1]) && R.nodeType == 8;) L--;
|
|
160
151
|
for (; L < o.length; L++) if (R = o[L]) {
|
|
161
152
|
if (o[L] = null, R.nodeType == 8) {
|
|
162
|
-
if (R.data.startsWith("$s"))
|
|
163
|
-
else if (
|
|
164
|
-
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
} else if (!F) break;
|
|
153
|
+
if (R.data.startsWith("$s")) P++ || (I = R);
|
|
154
|
+
else if (P && R.data.startsWith("/$s") && !--P) break;
|
|
155
|
+
} else if (!P) break;
|
|
168
156
|
}
|
|
169
157
|
}
|
|
170
158
|
if (!I) {
|
|
171
159
|
for (; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
|
|
172
160
|
I = c;
|
|
173
161
|
}
|
|
174
|
-
n.__c.__z || (n.__c.__z = I), n.__e = c;
|
|
175
|
-
} else o && o.some(
|
|
162
|
+
(p = M(I = n.__c.__z || (n.__c.__z = I))) ? (n.__e = I, c = p) : n.__e = c, c = c && c.nextSibling;
|
|
163
|
+
} else o && o.some(_);
|
|
176
164
|
} else n.__e = r.__e;
|
|
177
165
|
n.__k || (n.__k = r.__k || []), t.then || te(n), e.__e(t, n, r);
|
|
178
166
|
}
|
|
179
|
-
} else c = n.__e = ne(r.__e, n, r, i, a, o, s, l,
|
|
180
|
-
return (
|
|
167
|
+
} else c = n.__e = ne(r.__e, n, r, i, a, o, s, l, d, t);
|
|
168
|
+
return (p = e.diffed) && p(n), c;
|
|
169
|
+
}
|
|
170
|
+
function M(e, t) {
|
|
171
|
+
if (e && e.nodeType == 8 && e.data.startsWith("$s")) for (var n = 1; e = e.nextSibling;) {
|
|
172
|
+
if (e.nodeType == 8) {
|
|
173
|
+
if (e.data.startsWith("$s")) n++;
|
|
174
|
+
else if (e.data.startsWith("/$s") && !--n) return e;
|
|
175
|
+
}
|
|
176
|
+
t && t.push(e);
|
|
177
|
+
}
|
|
181
178
|
}
|
|
182
179
|
function te(e) {
|
|
183
180
|
e && (e.__c && (e.__c.__g |= 4), e.__k && e.__k.some(te));
|
|
184
181
|
}
|
|
185
|
-
function
|
|
186
|
-
for (var i = 0; i < r.length;)
|
|
182
|
+
function N(t, n, r) {
|
|
183
|
+
for (var i = 0; i < r.length;) P(r[i++], r[i++], r[i++]);
|
|
187
184
|
e.__c && e.__c(n, t), t.some(function(n) {
|
|
188
185
|
try {
|
|
189
186
|
t = n.__h, n.__h = [], t.some(function(e) {
|
|
@@ -194,36 +191,36 @@ function j(t, n, r) {
|
|
|
194
191
|
}
|
|
195
192
|
});
|
|
196
193
|
}
|
|
197
|
-
function ne(t, n, r, i, a, o, s, c, l,
|
|
198
|
-
var
|
|
199
|
-
if (
|
|
200
|
-
for (
|
|
201
|
-
t =
|
|
194
|
+
function ne(t, n, r, i, a, o, s, c, l, u) {
|
|
195
|
+
var f, g, v, y, b, S, C, w, T, E = r.props || d, D = n.props, O = n.type;
|
|
196
|
+
if (O == "svg" ? a = "http://www.w3.org/2000/svg" : O == "math" ? a = "http://www.w3.org/1998/Math/MathML" : a || (a = "http://www.w3.org/1999/xhtml"), o) {
|
|
197
|
+
for (f = 0; f < o.length; f++) if ((b = o[f]) && (O ? b.localName == O : b.nodeType == 3)) {
|
|
198
|
+
t = b, o[f] = null;
|
|
202
199
|
break;
|
|
203
200
|
}
|
|
204
201
|
}
|
|
205
202
|
if (!t) {
|
|
206
|
-
if (w =
|
|
207
|
-
t = w.createElementNS(a,
|
|
203
|
+
if (w = u.ownerDocument || document, !O) return w.createTextNode(D);
|
|
204
|
+
t = w.createElementNS(a, O, D.is && D), c && (e.__m && e.__m(n, o), c = !1), o = null;
|
|
208
205
|
}
|
|
209
|
-
if (
|
|
210
|
-
if (
|
|
211
|
-
for (
|
|
212
|
-
for (
|
|
213
|
-
|
|
206
|
+
if (O) {
|
|
207
|
+
if (u = O == "template" ? t.content : t, o = O == "textarea" && D.defaultValue != null ? null : o && h.call(u.childNodes), !c && o) for (E = {}, f = 0; f < t.attributes.length; f++) E[(b = t.attributes[f]).name] = b.value;
|
|
208
|
+
for (f in E) b = E[f], f == "dangerouslySetInnerHTML" ? v = b : f == "children" || f in D || f == "value" && "defaultValue" in D || f == "checked" && "defaultChecked" in D || k(t, f, null, b, a);
|
|
209
|
+
for (f in T = 1 & r.__u, D) b = D[f], f == "children" ? y = b : f == "dangerouslySetInnerHTML" ? g = b : f == "value" ? S = b : f == "checked" ? C = b : c && typeof b != "function" || !(E[f] !== b || T && b != null) || k(t, f, b, E[f], a);
|
|
210
|
+
g ? (c || v && (g.__html == v.__html || g.__html == t.innerHTML) || (t.innerHTML = g.__html), n.__k = []) : (v && (t.textContent = ""), (O == "foreignObject" || a == "http://www.w3.org/1998/Math/MathML" && p.test(O)) && (a = "http://www.w3.org/1999/xhtml"), ee(u, m(y) ? y : [y], n, r, i, a, o, s, o ? o[0] : r.__k && x(r, 0), c, l), o && o.some(_)), c && O != "textarea" || (f = "value", O == "progress" && S == null ? t.removeAttribute(f) : S == null || S === t[f] && (O != "progress" || S) || k(t, f, S, E[f], a), f = "checked", C != null && C != t[f] && k(t, f, C, E[f], a));
|
|
214
211
|
} else E === D || c && t.data == D || (t.data = D);
|
|
215
212
|
return t;
|
|
216
213
|
}
|
|
217
|
-
function
|
|
214
|
+
function P(t, n, r, i) {
|
|
218
215
|
try {
|
|
219
216
|
typeof t == "function" ? n ? n.__x = t(n) || 1 : i && (i = i.__c || i.__e) && (n = i.__x) && (i.__x = null, typeof n == "function" ? n() : t(null)) : t.current = n;
|
|
220
217
|
} catch (t) {
|
|
221
218
|
e.__e(t, r);
|
|
222
219
|
}
|
|
223
220
|
}
|
|
224
|
-
function
|
|
225
|
-
var i, a;
|
|
226
|
-
if (e.unmount && e.unmount(t), !(i = t.ref) || i.current && i.current != t.__e ||
|
|
221
|
+
function F(t, n, r) {
|
|
222
|
+
var i, a, o, s;
|
|
223
|
+
if (e.unmount && e.unmount(t), !(i = t.ref) || i.current && i.current != t.__e || P(i, null, n, t), i = t.__c) {
|
|
227
224
|
if (i.componentWillUnmount) try {
|
|
228
225
|
i.componentWillUnmount();
|
|
229
226
|
} catch (t) {
|
|
@@ -231,62 +228,61 @@ function N(t, n, r) {
|
|
|
231
228
|
}
|
|
232
229
|
i.__P = i.__n = null;
|
|
233
230
|
}
|
|
234
|
-
if (i = t.__k) for (
|
|
235
|
-
(i = t.__e) && (r ||
|
|
231
|
+
if (i = t.__k) for (s = 0; s < i.length; s++) i[s] && F(i[s], n, typeof t.type != "function" || r && !t.props.__P);
|
|
232
|
+
!r && (i = t.__c) && (i = i.__z) && (a = M(i, o = [])) && (i == t.__e && o.some(_), _(a), _(i)), (i = t.__e) && (r || _(i), i.__e && (i.__e = null)), t.__e = t.__c = t.__ = null;
|
|
236
233
|
}
|
|
237
234
|
function re(e, t, n) {
|
|
238
235
|
return this.constructor(e, n);
|
|
239
236
|
}
|
|
240
|
-
function
|
|
237
|
+
function I(t, n) {
|
|
241
238
|
var r, i, a, o;
|
|
242
|
-
e.__ && e.__(t, n), n.nodeType == 9 && (n = n.documentElement), i = (r = t && 32 & t.__u) ? null : n.__k, n.__k =
|
|
239
|
+
e.__ && e.__(t, n), n.nodeType == 9 && (n = n.documentElement), i = (r = t && 32 & t.__u) ? null : n.__k, n.__k = v(y, { children: [t] }), a = [], o = [], j(n, n.__k, i || d, d, n.namespaceURI, i ? null : n.firstChild ? h.call(n.childNodes) : null, a, i ? i.__e : n.firstChild, r, o), N(a, n.__k, o), n.__k.props.children = null;
|
|
243
240
|
}
|
|
244
241
|
e = { __e: function(e, t, n, r) {
|
|
245
242
|
for (var a, o, s; t = t.__;) if ((a = t.__c) && !(1 & a.__g)) {
|
|
246
243
|
a.__g |= 4;
|
|
247
244
|
try {
|
|
248
|
-
if ((o = a.constructor) && o.getDerivedStateFromError &&
|
|
245
|
+
if ((s = (o = a.constructor) && o.getDerivedStateFromError) && a.setState(o.getDerivedStateFromError(e)), a.componentDidCatch && (a.componentDidCatch(e, r || {}), s = 1), s && 8 & a.__g) return void (a.__g |= 2);
|
|
249
246
|
} catch (t) {
|
|
250
|
-
e = t
|
|
247
|
+
e = t;
|
|
251
248
|
}
|
|
252
249
|
}
|
|
253
250
|
throw i = 0, e;
|
|
254
|
-
} }, t = 0,
|
|
251
|
+
} }, t = 0, b.prototype.setState = function(e, t) {
|
|
255
252
|
var n = this.__s;
|
|
256
|
-
n && n != this.state || (n = this.__s =
|
|
257
|
-
},
|
|
258
|
-
this.__v && (this.__g |= 4, e && this.__h.push(e),
|
|
259
|
-
},
|
|
253
|
+
n && n != this.state || (n = this.__s = g({}, this.state)), typeof e == "function" && (e = e(g({}, n), this.props)), e && (g(n, e), this.__v && (t && this.__k.push(t), C(this)));
|
|
254
|
+
}, b.prototype.forceUpdate = function(e) {
|
|
255
|
+
this.__v && (this.__g |= 4, e && this.__h.push(e), C(this));
|
|
256
|
+
}, b.prototype.render = y, n = [], i = 0, a = function(e, t) {
|
|
260
257
|
return e.__v.__b - t.__v.__b;
|
|
261
258
|
}, o = Symbol(), s = /(PointerCapture)$|Capture$/i, c = 0, l = {};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var n = I.__H || (I.__H = {
|
|
259
|
+
// node_modules/preact/hooks/dist/hooks.mjs
|
|
260
|
+
var L, R, z, ie, B = Object.is, V = 0, ae = [], H = [], U = e, oe = U.__b, se = U.__r, ce = U.diffed, le = U.__c, ue = U.unmount, de = U.__;
|
|
261
|
+
function W(e, t) {
|
|
262
|
+
U.__h && U.__h(R, e, V || t), V = 0;
|
|
263
|
+
var n = R.__H || (R.__H = {
|
|
268
264
|
__: [],
|
|
269
265
|
__h: []
|
|
270
266
|
});
|
|
271
267
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
272
268
|
}
|
|
273
|
-
function
|
|
274
|
-
return
|
|
269
|
+
function fe(e) {
|
|
270
|
+
return V = 1, pe(Se, e);
|
|
275
271
|
}
|
|
276
|
-
function
|
|
277
|
-
var r =
|
|
278
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
272
|
+
function pe(e, t, n) {
|
|
273
|
+
var r = W(L++, 2);
|
|
274
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Se(void 0, t), function(e) {
|
|
279
275
|
var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
|
|
280
|
-
|
|
281
|
-
}], r.__c =
|
|
282
|
-
|
|
283
|
-
var i =
|
|
284
|
-
|
|
276
|
+
B(t, n) || (r.__N = [n, r.__[1]], r.__c.setState({}));
|
|
277
|
+
}], r.__c = R, !R.__f)) {
|
|
278
|
+
R.__f = !0;
|
|
279
|
+
var i = R.shouldComponentUpdate;
|
|
280
|
+
R.shouldComponentUpdate = function(e, t, n) {
|
|
285
281
|
var r = this.__H;
|
|
286
282
|
if (!r) return !0;
|
|
287
283
|
var a = !1, o = this.props != e;
|
|
288
284
|
if (r.__.some(function(e) {
|
|
289
|
-
e.__N && (a = !0,
|
|
285
|
+
e.__N && (a = !0, B(e.__[0], e.__N[0]) || (o = !0));
|
|
290
286
|
}), i) {
|
|
291
287
|
var s = i.call(this, e, t, n);
|
|
292
288
|
return a ? s || o : s;
|
|
@@ -296,76 +292,76 @@ function fe(e, t, n) {
|
|
|
296
292
|
}
|
|
297
293
|
return r.__;
|
|
298
294
|
}
|
|
299
|
-
function pe(e, t) {
|
|
300
|
-
var n = U(F++, 3);
|
|
301
|
-
!H.__s && q(n.__H, t) && (n.__P = !0, n.__ = e, n.u = t, I.__H.__h.push(n));
|
|
302
|
-
}
|
|
303
295
|
function me(e, t) {
|
|
304
|
-
var n =
|
|
305
|
-
!
|
|
296
|
+
var n = W(L++, 3);
|
|
297
|
+
!U.__s && J(n.__H, t) && (n.__P = !0, n.__ = e, n.u = t, R.__H.__h.push(n));
|
|
298
|
+
}
|
|
299
|
+
function he(e, t) {
|
|
300
|
+
var n = W(L++, 4);
|
|
301
|
+
!U.__s && J(n.__H, t) && (n.__P = !1, n.__ = e, n.u = t, R.__h.push(n));
|
|
306
302
|
}
|
|
307
|
-
function
|
|
308
|
-
return
|
|
303
|
+
function ge(e) {
|
|
304
|
+
return V = 5, G(function() {
|
|
309
305
|
return { current: e };
|
|
310
306
|
}, []);
|
|
311
307
|
}
|
|
312
|
-
function
|
|
313
|
-
var n =
|
|
314
|
-
return
|
|
308
|
+
function G(e, t) {
|
|
309
|
+
var n = W(L++, 7);
|
|
310
|
+
return J(n.__H, t) && (n.__ = e(), n.__H = t), n.__;
|
|
315
311
|
}
|
|
316
|
-
function
|
|
317
|
-
return
|
|
312
|
+
function _e(e, t) {
|
|
313
|
+
return V = 8, G(function() {
|
|
318
314
|
return e;
|
|
319
315
|
}, t);
|
|
320
316
|
}
|
|
321
|
-
function
|
|
317
|
+
function ve() {
|
|
322
318
|
var e;
|
|
323
319
|
do {
|
|
324
|
-
for (; e =
|
|
325
|
-
|
|
320
|
+
for (; e = H.shift();) try {
|
|
321
|
+
K(e);
|
|
326
322
|
} catch (t) {
|
|
327
|
-
|
|
323
|
+
U.__e(t, { __: (e = e.__P) && e.__v });
|
|
328
324
|
}
|
|
329
|
-
for (; e =
|
|
325
|
+
for (; e = ae.shift();) {
|
|
330
326
|
var t = e.__H;
|
|
331
327
|
if (e.__P && t) try {
|
|
332
|
-
t.__h.some(
|
|
328
|
+
t.__h.some(K), t.__h.some(q), t.__h = [];
|
|
333
329
|
} catch (n) {
|
|
334
|
-
t.__h = [],
|
|
330
|
+
t.__h = [], U.__e(n, e.__v);
|
|
335
331
|
}
|
|
336
332
|
}
|
|
337
|
-
} while (
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
var t = (
|
|
346
|
-
t && (
|
|
333
|
+
} while (H.length);
|
|
334
|
+
}
|
|
335
|
+
U.__b = function(e) {
|
|
336
|
+
R = null, oe && oe(e);
|
|
337
|
+
}, U.__ = function(e, t) {
|
|
338
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), de && de(e, t);
|
|
339
|
+
}, U.__r = function(e) {
|
|
340
|
+
se && se(e), L = 0;
|
|
341
|
+
var t = (R = e.__c).__H;
|
|
342
|
+
t && (z == R ? R.__h = [] : (t.__h.some(K), t.__h.some(q), L = 0), t.__h = [], t.__.some(function(e) {
|
|
347
343
|
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
|
|
348
|
-
})),
|
|
349
|
-
},
|
|
350
|
-
|
|
344
|
+
})), z = R;
|
|
345
|
+
}, U.diffed = function(e) {
|
|
346
|
+
ce && ce(e);
|
|
351
347
|
var t = e.__c;
|
|
352
|
-
t && t.__H && (t.__H.__h.length &&
|
|
348
|
+
t && t.__H && (t.__H.__h.length && xe(ae.push(t)), t.__H.__.some(function(e) {
|
|
353
349
|
e.u && (e.__H = e.u);
|
|
354
|
-
})),
|
|
355
|
-
},
|
|
350
|
+
})), z = R = null;
|
|
351
|
+
}, U.__c = function(e, t) {
|
|
356
352
|
t.some(function(e) {
|
|
357
353
|
try {
|
|
358
|
-
e.__h.some(
|
|
359
|
-
return !e.__ ||
|
|
354
|
+
e.__h.some(K), e.__h = e.__h.filter(function(e) {
|
|
355
|
+
return !e.__ || q(e);
|
|
360
356
|
});
|
|
361
|
-
} catch (
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
357
|
+
} catch (t) {
|
|
358
|
+
e.__h = [function() {
|
|
359
|
+
throw t;
|
|
360
|
+
}];
|
|
365
361
|
}
|
|
366
|
-
}),
|
|
367
|
-
},
|
|
368
|
-
|
|
362
|
+
}), le && le(e, t);
|
|
363
|
+
}, U.unmount = function(e) {
|
|
364
|
+
ue && ue(e);
|
|
369
365
|
var t, n, r = e.__c;
|
|
370
366
|
r && r.__H && (r.__H.__.some(function(r) {
|
|
371
367
|
try {
|
|
@@ -374,44 +370,43 @@ H.__b = function(e) {
|
|
|
374
370
|
for (n = e.__; n && (!n.__c || !n.__c.__P);) n = n.__;
|
|
375
371
|
n = n && n.__c;
|
|
376
372
|
}
|
|
377
|
-
r.__P = n,
|
|
378
|
-
} else
|
|
373
|
+
r.__P = n, xe(H.push(r));
|
|
374
|
+
} else K(r);
|
|
379
375
|
} catch (e) {
|
|
380
376
|
t = e;
|
|
381
377
|
}
|
|
382
|
-
}), r.__H = void 0, t &&
|
|
378
|
+
}), r.__H = void 0, t && U.__e(t, r.__v));
|
|
383
379
|
};
|
|
384
|
-
var
|
|
385
|
-
function
|
|
380
|
+
var ye = typeof requestAnimationFrame == "function";
|
|
381
|
+
function be(e) {
|
|
386
382
|
var t, n = function() {
|
|
387
|
-
clearTimeout(r),
|
|
383
|
+
clearTimeout(r), ye && cancelAnimationFrame(t), setTimeout(e);
|
|
388
384
|
}, r = setTimeout(n, 35);
|
|
389
|
-
|
|
385
|
+
ye && (t = requestAnimationFrame(n));
|
|
390
386
|
}
|
|
391
|
-
function
|
|
392
|
-
e != 1 &&
|
|
393
|
-
}
|
|
394
|
-
function G(e) {
|
|
395
|
-
var t = I, n = e.__c;
|
|
396
|
-
typeof n == "function" && (e.__c = void 0, n()), I = t;
|
|
387
|
+
function xe(e) {
|
|
388
|
+
e != 1 && ie == U.requestAnimationFrame || ((ie = U.requestAnimationFrame) || be)(ve);
|
|
397
389
|
}
|
|
398
390
|
function K(e) {
|
|
399
|
-
var t =
|
|
400
|
-
e.__c =
|
|
391
|
+
var t = R, n = e.__c;
|
|
392
|
+
typeof n == "function" && (e.__c = void 0, n()), R = t;
|
|
393
|
+
}
|
|
394
|
+
function q(e) {
|
|
395
|
+
var t = R;
|
|
396
|
+
e.__c = e.__(), R = t;
|
|
401
397
|
}
|
|
402
|
-
function
|
|
398
|
+
function J(e, t) {
|
|
403
399
|
return !e || e.length != t.length || t.some(function(t, n) {
|
|
404
|
-
return !
|
|
400
|
+
return !B(t, e[n]);
|
|
405
401
|
});
|
|
406
402
|
}
|
|
407
|
-
function
|
|
403
|
+
function Se(e, t) {
|
|
408
404
|
return typeof t == "function" ? t(e) : t;
|
|
409
405
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
var Se = 0;
|
|
406
|
+
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
|
|
407
|
+
var Ce = Symbol.for("pv"), we = 0;
|
|
413
408
|
Array.isArray;
|
|
414
|
-
function
|
|
409
|
+
function Te(t, n, r, i, a, o) {
|
|
415
410
|
n || (n = {});
|
|
416
411
|
var s, c, l = n;
|
|
417
412
|
if ("ref" in l && typeof t != "function") for (c in l = {}, n) c == "ref" ? s = n[c] : l[c] = n[c];
|
|
@@ -425,16 +420,15 @@ function Ce(t, n, r, i, a, o) {
|
|
|
425
420
|
__b: 0,
|
|
426
421
|
__e: null,
|
|
427
422
|
__c: null,
|
|
428
|
-
constructor:
|
|
429
|
-
__v: --
|
|
423
|
+
constructor: Ce,
|
|
424
|
+
__v: --we,
|
|
430
425
|
__i: -1,
|
|
431
426
|
__u: 0
|
|
432
427
|
};
|
|
433
428
|
return (a || o) && (u.__source = a, u.__self = o), e.vnode && e.vnode(u), u;
|
|
434
429
|
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
var J = {
|
|
430
|
+
// src/ui/i18n.ts
|
|
431
|
+
var Y = {
|
|
438
432
|
comment: "Comment",
|
|
439
433
|
commentHint: "Click anything on the page to comment on it",
|
|
440
434
|
inbox: "Inbox",
|
|
@@ -624,6 +618,10 @@ var J = {
|
|
|
624
618
|
shareExpired: "This client link has expired. Ask the team for a new one.",
|
|
625
619
|
verifyTitle: "Check your email",
|
|
626
620
|
verifyBody: "Enter the 6-digit code to publish your comment. We sent it to {email}.",
|
|
621
|
+
verifyLookFor: "Look for an email from CommentKit: “Your code for {website}”. Check spam if it isn't there.",
|
|
622
|
+
signInLinkTitle: "Welcome back to {project}",
|
|
623
|
+
signInLinkBody: "Continue to see the feedback and reply. We'll email you a 6-digit code to confirm it's you.",
|
|
624
|
+
notNow: "Not now",
|
|
627
625
|
verifyCode: "6-digit code",
|
|
628
626
|
verifyPublish: "Publish comment",
|
|
629
627
|
verifyResend: "Send a new code",
|
|
@@ -793,7 +791,7 @@ var J = {
|
|
|
793
791
|
stylePrevious: "Previous value for {property}",
|
|
794
792
|
styleNext: "Next value for {property}",
|
|
795
793
|
styleEdit: "Edit the suggested style changes"
|
|
796
|
-
},
|
|
794
|
+
}, Ee = [
|
|
797
795
|
"en",
|
|
798
796
|
"es",
|
|
799
797
|
"fr",
|
|
@@ -805,81 +803,81 @@ var J = {
|
|
|
805
803
|
"zh-CN",
|
|
806
804
|
"hi",
|
|
807
805
|
"ar"
|
|
808
|
-
],
|
|
809
|
-
es: () => import("./es-
|
|
810
|
-
fr: () => import("./fr-
|
|
811
|
-
de: () => import("./de-
|
|
812
|
-
"pt-BR": () => import("./pt-BR-
|
|
813
|
-
it: () => import("./it-
|
|
814
|
-
nl: () => import("./nl-
|
|
815
|
-
ja: () => import("./ja-
|
|
816
|
-
"zh-CN": () => import("./zh-CN-
|
|
817
|
-
hi: () => import("./hi-
|
|
818
|
-
ar: () => import("./ar-
|
|
819
|
-
},
|
|
820
|
-
function
|
|
806
|
+
], De = {
|
|
807
|
+
es: () => import("./es-CI2bSpvB.js"),
|
|
808
|
+
fr: () => import("./fr-rsVe-Lqk.js"),
|
|
809
|
+
de: () => import("./de-C63897uD.js"),
|
|
810
|
+
"pt-BR": () => import("./pt-BR-CkG7vpU2.js"),
|
|
811
|
+
it: () => import("./it-C8tnV0BF.js"),
|
|
812
|
+
nl: () => import("./nl-DNQ6eCht.js"),
|
|
813
|
+
ja: () => import("./ja-BWxDfC2f.js"),
|
|
814
|
+
"zh-CN": () => import("./zh-CN-BKuZOLBE.js"),
|
|
815
|
+
hi: () => import("./hi-cvwbSaWP.js"),
|
|
816
|
+
ar: () => import("./ar-8tPch6W4.js")
|
|
817
|
+
}, X = /^(ar|he|iw|fa|ur|ps|yi|ckb|sd|ug|dv)(-|$)/i, Z = "en", Q = Y, $ = Promise.resolve();
|
|
818
|
+
function Oe(e) {
|
|
821
819
|
let t = (e ?? "").trim().replace(/_/g, "-").toLowerCase();
|
|
822
820
|
if (!/^[a-z]{2,3}(-[a-z0-9]{1,8})*$/.test(t)) return null;
|
|
823
|
-
let n =
|
|
821
|
+
let n = Ee.find((e) => e.toLowerCase() === t);
|
|
824
822
|
if (n) return n;
|
|
825
823
|
let r = t.split("-")[0];
|
|
826
|
-
return
|
|
824
|
+
return Ee.find((e) => e.toLowerCase().split("-")[0] === r) ?? null;
|
|
827
825
|
}
|
|
828
|
-
function
|
|
826
|
+
function ke(e) {
|
|
829
827
|
let t = [e];
|
|
830
828
|
typeof document < "u" && t.push(document.documentElement.lang), typeof navigator < "u" && t.push(...navigator.languages ?? [], navigator.language);
|
|
831
829
|
for (let e of t) {
|
|
832
|
-
let t =
|
|
830
|
+
let t = Oe(e);
|
|
833
831
|
if (t) return t;
|
|
834
832
|
}
|
|
835
833
|
return "en";
|
|
836
834
|
}
|
|
837
|
-
function
|
|
838
|
-
let t =
|
|
839
|
-
return
|
|
840
|
-
|
|
835
|
+
function Ae(e) {
|
|
836
|
+
let t = ke(e);
|
|
837
|
+
return Z = t, t === "en" ? (Q = Y, $ = Promise.resolve(), $) : ($ = De[t]().then((e) => {
|
|
838
|
+
Z === t && (Q = e.default);
|
|
841
839
|
}, () => {
|
|
842
|
-
|
|
843
|
-
}),
|
|
840
|
+
Z === t && (Z = "en", Q = Y);
|
|
841
|
+
}), $);
|
|
844
842
|
}
|
|
845
|
-
function
|
|
846
|
-
return
|
|
843
|
+
function je() {
|
|
844
|
+
return Z;
|
|
847
845
|
}
|
|
848
|
-
function
|
|
849
|
-
let n =
|
|
846
|
+
function Me(e, t) {
|
|
847
|
+
let n = X.test(Z);
|
|
850
848
|
return e.replace(/\{(\w+)\}/g, (e, r) => {
|
|
851
849
|
let i = String(t[r] ?? "");
|
|
852
850
|
return n && i ? `\u2068${i}\u2069` : i;
|
|
853
851
|
});
|
|
854
852
|
}
|
|
855
|
-
function
|
|
856
|
-
return
|
|
853
|
+
function Ne(e, t = {}) {
|
|
854
|
+
return Me(Q[e] ?? Y[e], t);
|
|
857
855
|
}
|
|
858
|
-
function
|
|
859
|
-
let [n = "", r = ""] = (
|
|
856
|
+
function Pe(e, t) {
|
|
857
|
+
let [n = "", r = ""] = (Q[e] ?? Y[e]).split(`{${t}}`);
|
|
860
858
|
return [n, r];
|
|
861
859
|
}
|
|
862
|
-
function
|
|
860
|
+
function Fe(e, t, n = {}) {
|
|
863
861
|
let r = "other", i = String(t);
|
|
864
862
|
try {
|
|
865
|
-
r = new Intl.PluralRules(
|
|
863
|
+
r = new Intl.PluralRules(Z).select(t), i = new Intl.NumberFormat(Z).format(t);
|
|
866
864
|
} catch {}
|
|
867
|
-
let a =
|
|
868
|
-
return
|
|
865
|
+
let a = Y;
|
|
866
|
+
return Me(Q[`${e}_${r}`] ?? Q[e] ?? a[`${e}_${r}`] ?? Y[e], {
|
|
869
867
|
...n,
|
|
870
868
|
n: i
|
|
871
869
|
});
|
|
872
870
|
}
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
871
|
+
function Ie() {
|
|
872
|
+
if (X.test(Z)) return "rtl";
|
|
875
873
|
let e = document.documentElement.dir || document.body?.dir;
|
|
876
|
-
return e === "rtl" || e === "ltr" ? e :
|
|
874
|
+
return e === "rtl" || e === "ltr" ? e : X.test(document.documentElement.lang || "") ? "rtl" : "ltr";
|
|
877
875
|
}
|
|
878
|
-
function
|
|
876
|
+
function Le(e) {
|
|
879
877
|
let t = e ? new Date(e).getTime() : NaN;
|
|
880
878
|
if (!Number.isFinite(t)) return "";
|
|
881
879
|
try {
|
|
882
|
-
return new Date(t).toLocaleString(
|
|
880
|
+
return new Date(t).toLocaleString(Z, {
|
|
883
881
|
dateStyle: "medium",
|
|
884
882
|
timeStyle: "short"
|
|
885
883
|
});
|
|
@@ -887,18 +885,17 @@ function Pe(e) {
|
|
|
887
885
|
return new Date(t).toLocaleString();
|
|
888
886
|
}
|
|
889
887
|
}
|
|
890
|
-
function
|
|
888
|
+
function Re(e, t = Date.now()) {
|
|
891
889
|
let n = new Date(e).getTime();
|
|
892
890
|
if (!Number.isFinite(n)) return "";
|
|
893
891
|
let r = Math.max(0, (t - n) / 1e3);
|
|
894
|
-
if (r < 60) return
|
|
895
|
-
if (r >= 2592e3) return new Date(n).toLocaleDateString(
|
|
892
|
+
if (r < 60) return Ne("justNow");
|
|
893
|
+
if (r >= 2592e3) return new Date(n).toLocaleDateString(Z);
|
|
896
894
|
let [i, a] = r < 3600 ? ["minute", 60] : r < 86400 ? ["hour", 3600] : ["day", 86400], o = Math.floor(r / a);
|
|
897
895
|
try {
|
|
898
|
-
return new Intl.RelativeTimeFormat(
|
|
896
|
+
return new Intl.RelativeTimeFormat(Z, { numeric: "auto" }).format(-o, i);
|
|
899
897
|
} catch {
|
|
900
898
|
return `${o} ${i}`;
|
|
901
899
|
}
|
|
902
900
|
}
|
|
903
|
-
|
|
904
|
-
export { P as _, Fe as a, Ne as c, me as d, he as f, y as g, ge as h, Me as i, Ce as l, de as m, ke as n, Oe as o, W as p, Pe as r, $ as s, je as t, pe as u, v };
|
|
901
|
+
export { y as _, Re as a, Ie as c, he as d, ge as f, I as g, G as h, Fe as i, Te as l, fe as m, je as n, Ae as o, _e as p, Le as r, Ne as s, Pe as t, me as u, b as v };
|