@prosopo/procaptcha-bundle 3.0.11 → 3.0.13

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.
Files changed (36) hide show
  1. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +2 -2
  2. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -1
  3. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +1 -0
  4. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  5. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +1 -0
  6. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
  7. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +1 -0
  8. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  9. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +2 -1
  10. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +1 -1
  11. package/CHANGELOG.md +46 -0
  12. package/dist/bundle/{ProcaptchaWidget-48FxVPQd.js → ProcaptchaWidget-BIt2pcrz.js} +5 -5
  13. package/dist/bundle/{ProcaptchaWidget-B2BzhXLv.js → ProcaptchaWidget-CXxnCzl2.js} +7 -7
  14. package/dist/bundle/{captchaComponentProvider-B7Vxx339.js → captchaComponentProvider-BGEAkC9Y.js} +7 -7
  15. package/dist/bundle/{captchaRenderer-DdOlOCKw.js → captchaRenderer-CqnUYyKY.js} +3 -3
  16. package/dist/bundle/{commonChunk-HCVkoCqn.js → commonChunk-BKceWhtS.js} +1 -1
  17. package/dist/bundle/{emotion-element-5486c51c.browser.esm-D7qvHZDV.js → emotion-element-5486c51c.browser.esm-CimrRZxS.js} +1 -1
  18. package/dist/bundle/{index-DyYmvHVN.js → index-KHTbPva_.js} +1 -1
  19. package/dist/bundle/{index-C00_J7av.js → index-hrOz2CPm.js} +2 -2
  20. package/dist/bundle/nobleChunk-CQ4ENyKh.js +3769 -0
  21. package/dist/bundle/procaptcha.bundle.js +2 -2
  22. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +1 -0
  23. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  24. package/dist/bundle/util/captcha/captchaComponentsList.d.ts +1 -0
  25. package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
  26. package/dist/bundle/util/captcha/captchaRenderer.d.ts +1 -0
  27. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  28. package/dist/bundle/util/captcha/captchaType.d.ts +2 -1
  29. package/dist/bundle/util/captcha/captchaType.d.ts.map +1 -1
  30. package/dist/bundle/{utilChunk-sqstc6C5.js → utilChunk-DPr6oTOj.js} +22 -22
  31. package/dist/bundle/{utilCryptoChunk-qm-BM2eT.js → utilCryptoChunk-BKe3CKqn.js} +273 -273
  32. package/dist/bundle/{web2Chunk-DCsWA5PR.js → web2Chunk-Cqw91v-J.js} +404 -394
  33. package/dist/bundle/{web3Chunk-B8txCqUJ.js → web3Chunk-BcwDKvjL.js} +4 -4
  34. package/package.json +18 -18
  35. package/stats.html +1 -1
  36. package/dist/bundle/nobleChunk-Qozzkbsq.js +0 -3648
@@ -2,14 +2,14 @@ var Rt = (n) => {
2
2
  throw TypeError(n);
3
3
  };
4
4
  var $t = (n, e, t) => e.has(n) || Rt("Cannot " + t);
5
- var U = (n, e, t) => ($t(n, e, "read from private field"), t ? t.call(n) : e.get(n)), pe = (n, e, t) => e.has(n) ? Rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), he = (n, e, t, r) => ($t(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t);
6
- import { q as Ur } from "./nobleChunk-Qozzkbsq.js";
7
- import { g as Ar } from "./bnChunk-DRlDxTFg.js";
8
- import { z as R, n as Ce, o as y, a as S, b as K, s as p, c as Dr, u as Ae, d as jt, e as De, f as Nt, g as ze, r as Sn, l as Ut } from "./zodChunk-wTu9ZHzV.js";
9
- import { h as Fr } from "./commonChunk-HCVkoCqn.js";
10
- import { j as _r, s as Mr, n as Hr, a as Vr, c as Br, d as Kr, e as qr, f as zr, g as Wr, h as Jr, k as Xr, i as xn, l as On, m as $e, o as Gr, p as Yr, q as Qr, r as Zr } from "./utilCryptoChunk-qm-BM2eT.js";
11
- import { r as et, b as lt, o as En, u as ct, a as At, t as ei, i as ti, c as je, k as tt, s as Tn } from "./utilChunk-sqstc6C5.js";
12
- function ni(n, e) {
5
+ var j = (n, e, t) => ($t(n, e, "read from private field"), t ? t.call(n) : e.get(n)), pe = (n, e, t) => e.has(n) ? Rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), he = (n, e, t, r) => ($t(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t);
6
+ import { j as Dr } from "./nobleChunk-CQ4ENyKh.js";
7
+ import { g as Fr } from "./bnChunk-DRlDxTFg.js";
8
+ import { z as R, n as Le, o as y, a as S, b as K, s as p, c as _r, u as Ue, d as At, e as De, f as Nt, g as ze, r as Sn, l as jt } from "./zodChunk-wTu9ZHzV.js";
9
+ import { h as Mr } from "./commonChunk-BKceWhtS.js";
10
+ import { j as Hr, s as Vr, n as Br, a as Kr, c as qr, d as zr, e as Wr, f as Jr, g as Xr, h as Gr, k as Yr, i as xn, l as On, m as $e, o as Qr, p as Zr, q as ei, r as ti } from "./utilCryptoChunk-BKe3CKqn.js";
11
+ import { r as et, b as lt, o as En, u as ct, a as Ut, t as ni, i as ri, c as Ae, k as tt, s as Tn } from "./utilChunk-DPr6oTOj.js";
12
+ function ii(n, e) {
13
13
  for (var t = 0; t < e.length; t++) {
14
14
  const r = e[t];
15
15
  if (typeof r != "string" && !Array.isArray(r)) {
@@ -25,17 +25,17 @@ function ni(n, e) {
25
25
  }
26
26
  return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
27
27
  }
28
- const ha = (n) => new Promise((e) => setTimeout(e, n)), ga = (n, e) => {
28
+ const ma = (n) => new Promise((e) => setTimeout(e, n)), ya = (n, e) => {
29
29
  let t = 0;
30
30
  const r = "0".repeat(e);
31
31
  for (; ; ) {
32
32
  const i = new TextEncoder().encode(t + n);
33
- if (ri(Ur(i)).startsWith(r))
33
+ if (oi(Dr(i)).startsWith(r))
34
34
  return t;
35
35
  t += 1;
36
36
  }
37
- }, ri = (n) => Array.from(n).map((e) => e.toString(16).padStart(2, "0")).join("");
38
- function ma(n, e, t) {
37
+ }, oi = (n) => Array.from(n).map((e) => e.toString(16).padStart(2, "0")).join("");
38
+ function va(n, e, t) {
39
39
  if (n.length === 0)
40
40
  throw new Error("Array is empty");
41
41
  if (!Number.isFinite(e))
@@ -46,18 +46,18 @@ function ma(n, e, t) {
46
46
  throw new Error(`Index ${e} smaller than 0`);
47
47
  return n[e];
48
48
  }
49
- const ii = (n) => Array.isArray(n) && n !== null, oi = "dev", Fe = new Array(256), Cn = new Array(256 * 256);
49
+ const si = (n) => Array.isArray(n) && n !== null, ai = "dev", Fe = new Array(256), Ln = new Array(256 * 256);
50
50
  for (let n = 0; n < 256; n++)
51
51
  Fe[n] = n.toString(16).padStart(2, "0");
52
52
  for (let n = 0; n < 256; n++) {
53
53
  const e = n << 8;
54
54
  for (let t = 0; t < 256; t++)
55
- Cn[e | t] = Fe[n] + Fe[t];
55
+ Ln[e | t] = Fe[n] + Fe[t];
56
56
  }
57
57
  function nt(n, e) {
58
58
  const t = n.length % 2 | 0, r = n.length - t | 0;
59
59
  for (let i = 0; i < r; i += 2)
60
- e += Cn[n[i] << 8 | n[i + 1]];
60
+ e += Ln[n[i] << 8 | n[i + 1]];
61
61
  return t && (e += Fe[n[r] | 0]), e;
62
62
  }
63
63
  function We(n, e = -1, t = !0) {
@@ -71,23 +71,23 @@ function We(n, e = -1, t = !0) {
71
71
  }
72
72
  return nt(n, r);
73
73
  }
74
- const ya = (n) => ii(n) ? We(new Uint8Array(n)) : n.toString();
74
+ const wa = (n) => si(n) ? We(new Uint8Array(n)) : n.toString();
75
75
  var h = /* @__PURE__ */ ((n) => (n.datasetId = "datasetId", n.user = "user", n.dapp = "dapp", n.provider = "provider", n.blockNumber = "blockNumber", n.requestHash = "requestHash", n.captchas = "captchas", n.commitmentId = "commitmentId", n.proof = "proof", n.dappSignature = "dappSignature", n.dappUserSignature = "dappUserSignature", n.providerUrl = "providerUrl", n.procaptchaResponse = "procaptcha-response", n.verifiedTimeout = "verifiedTimeout", n.maxVerifiedTime = "maxVerifiedTime", n.verified = "verified", n.status = "status", n.challenge = "challenge", n.difficulty = "difficulty", n.nonce = "nonce", n.timeouts = "timeouts", n.token = "token", n.secret = "secret", n.timestamp = "timestamp", n.signature = "signature", n.error = "error", n.siteKey = "siteKey", n.captchaType = "captchaType", n.sessionId = "sessionId", n.settings = "settings", n.domains = "domains", n.frictionlessThreshold = "frictionlessThreshold", n.powDifficulty = "powDifficulty", n.score = "score", n.tier = "tier", n.detectorKey = "detectorKey", n.ip = "ip", n))(h || {}), wt = /* @__PURE__ */ ((n) => (n.Free = "free", n.Professional = "professional", n.Enterprise = "enterprise", n))(wt || {});
76
76
  R.nativeEnum(wt);
77
77
  var Je = /* @__PURE__ */ ((n) => (n.image = "image", n.pow = "pow", n.frictionless = "frictionless", n.invisible = "invisible", n))(Je || {});
78
78
  R.nativeEnum(Je);
79
- const si = Ce(Je), ai = Je.frictionless, ui = [], li = 0.5, ci = 4, fi = 0.8, di = y({
80
- captchaType: si.optional().default(ai),
81
- domains: K(p()).optional().default([...ui]),
82
- frictionlessThreshold: S().optional().default(li),
83
- powDifficulty: S().optional().default(ci),
84
- imageThreshold: S().optional().default(fi)
79
+ const ui = Le(Je), li = Je.frictionless, ci = [], fi = 0.5, di = 4, pi = 0.8, hi = y({
80
+ captchaType: ui.optional().default(li),
81
+ domains: K(p()).optional().default([...ci]),
82
+ frictionlessThreshold: S().optional().default(fi),
83
+ powDifficulty: S().optional().default(di),
84
+ imageThreshold: S().optional().default(pi)
85
85
  });
86
86
  let rt;
87
- async function va(n) {
87
+ async function ba(n) {
88
88
  return new Promise((e, t) => {
89
89
  try {
90
- Promise.resolve().then(() => Go).then(({ default: r }) => {
90
+ Promise.resolve().then(() => Qo).then(({ default: r }) => {
91
91
  rt ? e(rt) : rt = r(e);
92
92
  });
93
93
  } catch (r) {
@@ -95,7 +95,7 @@ async function va(n) {
95
95
  }
96
96
  });
97
97
  }
98
- const Ln = {
98
+ const Cn = {
99
99
  arabic: "ar",
100
100
  azerbaijani: "az",
101
101
  czech: "cs",
@@ -129,11 +129,11 @@ const Ln = {
129
129
  vietnamese: "vi",
130
130
  chinese: "zh-CN"
131
131
  }, kn = R.enum(
132
- Object.values(Ln)
132
+ Object.values(Cn)
133
133
  );
134
134
  var Pn = { exports: {} }, x = {};
135
- var Le = Symbol.for("react.element"), pi = Symbol.for("react.portal"), hi = Symbol.for("react.fragment"), gi = Symbol.for("react.strict_mode"), mi = Symbol.for("react.profiler"), yi = Symbol.for("react.provider"), vi = Symbol.for("react.context"), wi = Symbol.for("react.forward_ref"), bi = Symbol.for("react.suspense"), Si = Symbol.for("react.memo"), xi = Symbol.for("react.lazy"), Dt = Symbol.iterator;
136
- function Oi(n) {
135
+ var Ce = Symbol.for("react.element"), gi = Symbol.for("react.portal"), mi = Symbol.for("react.fragment"), yi = Symbol.for("react.strict_mode"), vi = Symbol.for("react.profiler"), wi = Symbol.for("react.provider"), bi = Symbol.for("react.context"), Si = Symbol.for("react.forward_ref"), xi = Symbol.for("react.suspense"), Oi = Symbol.for("react.memo"), Ei = Symbol.for("react.lazy"), Dt = Symbol.iterator;
136
+ function Ti(n) {
137
137
  return n === null || typeof n != "object" ? null : (n = Dt && n[Dt] || n["@@iterator"], typeof n == "function" ? n : null);
138
138
  }
139
139
  var In = { isMounted: function() {
@@ -153,20 +153,20 @@ ce.prototype.setState = function(n, e) {
153
153
  ce.prototype.forceUpdate = function(n) {
154
154
  this.updater.enqueueForceUpdate(this, n, "forceUpdate");
155
155
  };
156
- function jn() {
156
+ function An() {
157
157
  }
158
- jn.prototype = ce.prototype;
158
+ An.prototype = ce.prototype;
159
159
  function bt(n, e, t) {
160
160
  this.props = n, this.context = e, this.refs = $n, this.updater = t || In;
161
161
  }
162
- var St = bt.prototype = new jn();
162
+ var St = bt.prototype = new An();
163
163
  St.constructor = bt;
164
164
  Rn(St, ce.prototype);
165
165
  St.isPureReactComponent = !0;
166
- var Ft = Array.isArray, Nn = Object.prototype.hasOwnProperty, xt = { current: null }, Un = { key: !0, ref: !0, __self: !0, __source: !0 };
167
- function An(n, e, t) {
166
+ var Ft = Array.isArray, Nn = Object.prototype.hasOwnProperty, xt = { current: null }, jn = { key: !0, ref: !0, __self: !0, __source: !0 };
167
+ function Un(n, e, t) {
168
168
  var r, i = {}, o = null, s = null;
169
- if (e != null) for (r in e.ref !== void 0 && (s = e.ref), e.key !== void 0 && (o = "" + e.key), e) Nn.call(e, r) && !Un.hasOwnProperty(r) && (i[r] = e[r]);
169
+ if (e != null) for (r in e.ref !== void 0 && (s = e.ref), e.key !== void 0 && (o = "" + e.key), e) Nn.call(e, r) && !jn.hasOwnProperty(r) && (i[r] = e[r]);
170
170
  var a = arguments.length - 2;
171
171
  if (a === 1) i.children = t;
172
172
  else if (1 < a) {
@@ -174,15 +174,15 @@ function An(n, e, t) {
174
174
  i.children = u;
175
175
  }
176
176
  if (n && n.defaultProps) for (r in a = n.defaultProps, a) i[r] === void 0 && (i[r] = a[r]);
177
- return { $$typeof: Le, type: n, key: o, ref: s, props: i, _owner: xt.current };
177
+ return { $$typeof: Ce, type: n, key: o, ref: s, props: i, _owner: xt.current };
178
178
  }
179
- function Ei(n, e) {
180
- return { $$typeof: Le, type: n.type, key: e, ref: n.ref, props: n.props, _owner: n._owner };
179
+ function Li(n, e) {
180
+ return { $$typeof: Ce, type: n.type, key: e, ref: n.ref, props: n.props, _owner: n._owner };
181
181
  }
182
182
  function Ot(n) {
183
- return typeof n == "object" && n !== null && n.$$typeof === Le;
183
+ return typeof n == "object" && n !== null && n.$$typeof === Ce;
184
184
  }
185
- function Ti(n) {
185
+ function Ci(n) {
186
186
  var e = { "=": "=0", ":": "=2" };
187
187
  return "$" + n.replace(/[=:]/g, function(t) {
188
188
  return e[t];
@@ -190,7 +190,7 @@ function Ti(n) {
190
190
  }
191
191
  var _t = /\/+/g;
192
192
  function it(n, e) {
193
- return typeof n == "object" && n !== null && n.key != null ? Ti("" + n.key) : e.toString(36);
193
+ return typeof n == "object" && n !== null && n.key != null ? Ci("" + n.key) : e.toString(36);
194
194
  }
195
195
  function Ne(n, e, t, r, i) {
196
196
  var o = typeof n;
@@ -204,20 +204,20 @@ function Ne(n, e, t, r, i) {
204
204
  break;
205
205
  case "object":
206
206
  switch (n.$$typeof) {
207
- case Le:
208
- case pi:
207
+ case Ce:
208
+ case gi:
209
209
  s = !0;
210
210
  }
211
211
  }
212
212
  if (s) return s = n, i = i(s), n = r === "" ? "." + it(s, 0) : r, Ft(i) ? (t = "", n != null && (t = n.replace(_t, "$&/") + "/"), Ne(i, e, t, "", function(c) {
213
213
  return c;
214
- })) : i != null && (Ot(i) && (i = Ei(i, t + (!i.key || s && s.key === i.key ? "" : ("" + i.key).replace(_t, "$&/") + "/") + n)), e.push(i)), 1;
214
+ })) : i != null && (Ot(i) && (i = Li(i, t + (!i.key || s && s.key === i.key ? "" : ("" + i.key).replace(_t, "$&/") + "/") + n)), e.push(i)), 1;
215
215
  if (s = 0, r = r === "" ? "." : r + ":", Ft(n)) for (var a = 0; a < n.length; a++) {
216
216
  o = n[a];
217
217
  var u = r + it(o, a);
218
218
  s += Ne(o, e, t, u, i);
219
219
  }
220
- else if (u = Oi(n), typeof u == "function") for (n = u.call(n), a = 0; !(o = n.next()).done; ) o = o.value, u = r + it(o, a++), s += Ne(o, e, t, u, i);
220
+ else if (u = Ti(n), typeof u == "function") for (n = u.call(n), a = 0; !(o = n.next()).done; ) o = o.value, u = r + it(o, a++), s += Ne(o, e, t, u, i);
221
221
  else if (o === "object") throw e = String(n), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead.");
222
222
  return s;
223
223
  }
@@ -228,7 +228,7 @@ function Ie(n, e, t) {
228
228
  return e.call(t, o, i++);
229
229
  }), r;
230
230
  }
231
- function Ci(n) {
231
+ function ki(n) {
232
232
  if (n._status === -1) {
233
233
  var e = n._result;
234
234
  e = e(), e.then(function(t) {
@@ -240,7 +240,7 @@ function Ci(n) {
240
240
  if (n._status === 1) return n._result.default;
241
241
  throw n._result;
242
242
  }
243
- var $ = { current: null }, Ue = { transition: null }, Li = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: Ue, ReactCurrentOwner: xt };
243
+ var $ = { current: null }, je = { transition: null }, Pi = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: je, ReactCurrentOwner: xt };
244
244
  function Dn() {
245
245
  throw Error("act(...) is not supported in production builds of React.");
246
246
  }
@@ -262,19 +262,19 @@ x.Children = { map: Ie, forEach: function(n, e, t) {
262
262
  return n;
263
263
  } };
264
264
  x.Component = ce;
265
- x.Fragment = hi;
266
- x.Profiler = mi;
265
+ x.Fragment = mi;
266
+ x.Profiler = vi;
267
267
  x.PureComponent = bt;
268
- x.StrictMode = gi;
269
- x.Suspense = bi;
270
- x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Li;
268
+ x.StrictMode = yi;
269
+ x.Suspense = xi;
270
+ x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Pi;
271
271
  x.act = Dn;
272
272
  x.cloneElement = function(n, e, t) {
273
273
  if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
274
274
  var r = Rn({}, n.props), i = n.key, o = n.ref, s = n._owner;
275
275
  if (e != null) {
276
276
  if (e.ref !== void 0 && (o = e.ref, s = xt.current), e.key !== void 0 && (i = "" + e.key), n.type && n.type.defaultProps) var a = n.type.defaultProps;
277
- for (u in e) Nn.call(e, u) && !Un.hasOwnProperty(u) && (r[u] = e[u] === void 0 && a !== void 0 ? a[u] : e[u]);
277
+ for (u in e) Nn.call(e, u) && !jn.hasOwnProperty(u) && (r[u] = e[u] === void 0 && a !== void 0 ? a[u] : e[u]);
278
278
  }
279
279
  var u = arguments.length - 2;
280
280
  if (u === 1) r.children = t;
@@ -283,36 +283,36 @@ x.cloneElement = function(n, e, t) {
283
283
  for (var c = 0; c < u; c++) a[c] = arguments[c + 2];
284
284
  r.children = a;
285
285
  }
286
- return { $$typeof: Le, type: n.type, key: i, ref: o, props: r, _owner: s };
286
+ return { $$typeof: Ce, type: n.type, key: i, ref: o, props: r, _owner: s };
287
287
  };
288
288
  x.createContext = function(n) {
289
- return n = { $$typeof: vi, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: yi, _context: n }, n.Consumer = n;
289
+ return n = { $$typeof: bi, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: wi, _context: n }, n.Consumer = n;
290
290
  };
291
- x.createElement = An;
291
+ x.createElement = Un;
292
292
  x.createFactory = function(n) {
293
- var e = An.bind(null, n);
293
+ var e = Un.bind(null, n);
294
294
  return e.type = n, e;
295
295
  };
296
296
  x.createRef = function() {
297
297
  return { current: null };
298
298
  };
299
299
  x.forwardRef = function(n) {
300
- return { $$typeof: wi, render: n };
300
+ return { $$typeof: Si, render: n };
301
301
  };
302
302
  x.isValidElement = Ot;
303
303
  x.lazy = function(n) {
304
- return { $$typeof: xi, _payload: { _status: -1, _result: n }, _init: Ci };
304
+ return { $$typeof: Ei, _payload: { _status: -1, _result: n }, _init: ki };
305
305
  };
306
306
  x.memo = function(n, e) {
307
- return { $$typeof: Si, type: n, compare: e === void 0 ? null : e };
307
+ return { $$typeof: Oi, type: n, compare: e === void 0 ? null : e };
308
308
  };
309
309
  x.startTransition = function(n) {
310
- var e = Ue.transition;
311
- Ue.transition = {};
310
+ var e = je.transition;
311
+ je.transition = {};
312
312
  try {
313
313
  n();
314
314
  } finally {
315
- Ue.transition = e;
315
+ je.transition = e;
316
316
  }
317
317
  };
318
318
  x.unstable_act = Dn;
@@ -363,10 +363,10 @@ x.useTransition = function() {
363
363
  x.version = "18.3.1";
364
364
  Pn.exports = x;
365
365
  var F = Pn.exports;
366
- const ki = /* @__PURE__ */ Ar(F), wa = /* @__PURE__ */ ni({
366
+ const Ii = /* @__PURE__ */ Fr(F), Sa = /* @__PURE__ */ ii({
367
367
  __proto__: null,
368
- default: ki
369
- }, [F]), Pi = (n, e, t, r) => {
368
+ default: Ii
369
+ }, [F]), Ri = (n, e, t, r) => {
370
370
  var o, s, a, u;
371
371
  const i = [t, {
372
372
  code: e,
@@ -376,7 +376,7 @@ const ki = /* @__PURE__ */ Ar(F), wa = /* @__PURE__ */ ni({
376
376
  return n.services.logger.forward(i, "warn", "react-i18next::", !0);
377
377
  Q(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (u = (a = n == null ? void 0 : n.services) == null ? void 0 : a.logger) != null && u.warn ? n.services.logger.warn(...i) : console != null && console.warn && [...i];
378
378
  }, Mt = {}, ft = (n, e, t, r) => {
379
- Q(t) && Mt[t] || (Q(t) && (Mt[t] = /* @__PURE__ */ new Date()), Pi(n, e, t, r));
379
+ Q(t) && Mt[t] || (Q(t) && (Mt[t] = /* @__PURE__ */ new Date()), Ri(n, e, t, r));
380
380
  }, Fn = (n, e) => () => {
381
381
  if (n.isInitialized)
382
382
  e();
@@ -395,7 +395,7 @@ const ki = /* @__PURE__ */ Ar(F), wa = /* @__PURE__ */ ni({
395
395
  t.forEach((i) => {
396
396
  n.options.ns.indexOf(i) < 0 && n.options.ns.push(i);
397
397
  }), n.loadLanguages(e, Fn(n, r));
398
- }, Ii = (n, e, t = {}) => !e.languages || !e.languages.length ? (ft(e, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
398
+ }, $i = (n, e, t = {}) => !e.languages || !e.languages.length ? (ft(e, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
399
399
  languages: e.languages
400
400
  }), !0) : e.hasLoadedNamespace(n, {
401
401
  lng: t.lng,
@@ -403,7 +403,7 @@ const ki = /* @__PURE__ */ Ar(F), wa = /* @__PURE__ */ ni({
403
403
  var o;
404
404
  if (((o = t.bindI18n) == null ? void 0 : o.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, n)) return !1;
405
405
  }
406
- }), Q = (n) => typeof n == "string", Ri = (n) => typeof n == "object" && n !== null, $i = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ji = {
406
+ }), Q = (n) => typeof n == "string", Ai = (n) => typeof n == "object" && n !== null, Ni = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ji = {
407
407
  "&amp;": "&",
408
408
  "&#38;": "&",
409
409
  "&lt;": "<",
@@ -424,7 +424,7 @@ const ki = /* @__PURE__ */ Ar(F), wa = /* @__PURE__ */ ni({
424
424
  "&#8230;": "…",
425
425
  "&#x2F;": "/",
426
426
  "&#47;": "/"
427
- }, Ni = (n) => ji[n], Ui = (n) => n.replace($i, Ni);
427
+ }, Ui = (n) => ji[n], Di = (n) => n.replace(Ni, Ui);
428
428
  let pt = {
429
429
  bindI18n: "languageChanged",
430
430
  bindI18nStore: "",
@@ -433,24 +433,24 @@ let pt = {
433
433
  transWrapTextNodes: "",
434
434
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
435
435
  useSuspense: !0,
436
- unescape: Ui
436
+ unescape: Di
437
437
  };
438
- const Ai = (n = {}) => {
438
+ const Fi = (n = {}) => {
439
439
  pt = {
440
440
  ...pt,
441
441
  ...n
442
442
  };
443
- }, Di = () => pt;
443
+ }, _i = () => pt;
444
444
  let _n;
445
- const Fi = (n) => {
445
+ const Mi = (n) => {
446
446
  _n = n;
447
- }, _i = () => _n, Mi = {
447
+ }, Hi = () => _n, Vi = {
448
448
  type: "3rdParty",
449
449
  init(n) {
450
- Ai(n.options.react), Fi(n);
450
+ Fi(n.options.react), Mi(n);
451
451
  }
452
- }, Hi = F.createContext();
453
- class Vi {
452
+ }, Bi = F.createContext();
453
+ class Ki {
454
454
  constructor() {
455
455
  this.usedNamespaces = {};
456
456
  }
@@ -463,27 +463,27 @@ class Vi {
463
463
  return Object.keys(this.usedNamespaces);
464
464
  }
465
465
  }
466
- const Bi = (n, e) => {
466
+ const qi = (n, e) => {
467
467
  const t = F.useRef();
468
468
  return F.useEffect(() => {
469
469
  t.current = n;
470
470
  }, [n, e]), t.current;
471
- }, Mn = (n, e, t, r) => n.getFixedT(e, t, r), Ki = (n, e, t, r) => F.useCallback(Mn(n, e, t, r), [n, e, t, r]), qi = (n, e = {}) => {
472
- var j, z, W, k;
471
+ }, Mn = (n, e, t, r) => n.getFixedT(e, t, r), zi = (n, e, t, r) => F.useCallback(Mn(n, e, t, r), [n, e, t, r]), Wi = (n, e = {}) => {
472
+ var A, z, W, k;
473
473
  const {
474
474
  i18n: t
475
475
  } = e, {
476
476
  i18n: r,
477
477
  defaultNS: i
478
- } = F.useContext(Hi) || {}, o = t || r || _i();
479
- if (o && !o.reportNamespaces && (o.reportNamespaces = new Vi()), !o) {
478
+ } = F.useContext(Bi) || {}, o = t || r || Hi();
479
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new Ki()), !o) {
480
480
  ft(o, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
481
- const O = (I, T) => Q(T) ? T : Ri(T) && Q(T.defaultValue) ? T.defaultValue : Array.isArray(I) ? I[I.length - 1] : I, P = [O, {}, !1];
481
+ const O = (I, T) => Q(T) ? T : Ai(T) && Q(T.defaultValue) ? T.defaultValue : Array.isArray(I) ? I[I.length - 1] : I, P = [O, {}, !1];
482
482
  return P.t = O, P.i18n = {}, P.ready = !1, P;
483
483
  }
484
- (j = o.options.react) != null && j.wait && ft(o, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
484
+ (A = o.options.react) != null && A.wait && ft(o, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
485
485
  const s = {
486
- ...Di(),
486
+ ..._i(),
487
487
  ...o.options.react,
488
488
  ...e
489
489
  }, {
@@ -492,10 +492,10 @@ const Bi = (n, e) => {
492
492
  } = s;
493
493
  let c = n || i || ((z = o.options) == null ? void 0 : z.defaultNS);
494
494
  c = Q(c) ? [c] : c || ["translation"], (k = (W = o.reportNamespaces).addUsedNamespaces) == null || k.call(W, c);
495
- const l = (o.isInitialized || o.initializedStoreOnce) && c.every((O) => Ii(O, o, s)), f = Ki(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), d = () => f, g = () => Mn(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), [m, v] = F.useState(d);
495
+ const l = (o.isInitialized || o.initializedStoreOnce) && c.every((O) => $i(O, o, s)), f = zi(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), d = () => f, g = () => Mn(o, e.lng || null, s.nsMode === "fallback" ? c : c[0], u), [m, v] = F.useState(d);
496
496
  let w = c.join();
497
497
  e.lng && (w = `${e.lng}${w}`);
498
- const L = Bi(w), E = F.useRef(!0);
498
+ const C = qi(w), E = F.useRef(!0);
499
499
  F.useEffect(() => {
500
500
  const {
501
501
  bindI18n: O,
@@ -505,7 +505,7 @@ const Bi = (n, e) => {
505
505
  E.current && v(g);
506
506
  }) : dt(o, c, () => {
507
507
  E.current && v(g);
508
- })), l && L && L !== w && E.current && v(g);
508
+ })), l && C && C !== w && E.current && v(g);
509
509
  const I = () => {
510
510
  E.current && v(g);
511
511
  };
@@ -515,8 +515,8 @@ const Bi = (n, e) => {
515
515
  }, [o, w]), F.useEffect(() => {
516
516
  E.current && l && v(d);
517
517
  }, [o, u, l]);
518
- const C = [m, o, l];
519
- if (C.t = m, C.i18n = o, C.ready = l, l || !l && !a) return C;
518
+ const L = [m, o, l];
519
+ if (L.t = m, L.i18n = o, L.ready = l, l || !l && !a) return L;
520
520
  throw new Promise((O) => {
521
521
  e.lng ? Ht(o, e.lng, c, () => O()) : dt(o, c, () => O());
522
522
  });
@@ -526,11 +526,11 @@ const Bi = (n, e) => {
526
526
  n = r, e = i;
527
527
  });
528
528
  return t.resolve = n, t.reject = e, t;
529
- }, Vt = (n) => n == null ? "" : "" + n, zi = (n, e, t) => {
529
+ }, Vt = (n) => n == null ? "" : "" + n, Ji = (n, e, t) => {
530
530
  n.forEach((r) => {
531
531
  e[r] && (t[r] = e[r]);
532
532
  });
533
- }, Wi = /###/g, Bt = (n) => n && n.indexOf("###") > -1 ? n.replace(Wi, ".") : n, Kt = (n) => !n || b(n), be = (n, e, t) => {
533
+ }, Xi = /###/g, Bt = (n) => n && n.indexOf("###") > -1 ? n.replace(Xi, ".") : n, Kt = (n) => !n || b(n), be = (n, e, t) => {
534
534
  const r = b(e) ? e.split(".") : e;
535
535
  let i = 0;
536
536
  for (; i < r.length - 1; ) {
@@ -555,7 +555,7 @@ const Bi = (n, e) => {
555
555
  for (; a.obj === void 0 && s.length; )
556
556
  o = `${s[s.length - 1]}.${o}`, s = s.slice(0, s.length - 1), a = be(n, s, Object), a != null && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
557
557
  a.obj[`${a.k}.${o}`] = t;
558
- }, Ji = (n, e, t, r) => {
558
+ }, Gi = (n, e, t, r) => {
559
559
  const {
560
560
  obj: i,
561
561
  k: o
@@ -568,7 +568,7 @@ const Bi = (n, e) => {
568
568
  } = be(n, e);
569
569
  if (t && Object.prototype.hasOwnProperty.call(t, r))
570
570
  return t[r];
571
- }, Xi = (n, e, t) => {
571
+ }, Yi = (n, e, t) => {
572
572
  const r = _e(n, t);
573
573
  return r !== void 0 ? r : _e(e, t);
574
574
  }, Hn = (n, e, t) => {
@@ -576,7 +576,7 @@ const Bi = (n, e) => {
576
576
  r !== "__proto__" && r !== "constructor" && (r in n ? b(n[r]) || n[r] instanceof String || b(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : Hn(n[r], e[r], t) : n[r] = e[r]);
577
577
  return n;
578
578
  }, te = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
579
- var Gi = {
579
+ var Qi = {
580
580
  "&": "&amp;",
581
581
  "<": "&lt;",
582
582
  ">": "&gt;",
@@ -584,8 +584,8 @@ var Gi = {
584
584
  "'": "&#39;",
585
585
  "/": "&#x2F;"
586
586
  };
587
- const Yi = (n) => b(n) ? n.replace(/[&<>"'\/]/g, (e) => Gi[e]) : n;
588
- class Qi {
587
+ const Zi = (n) => b(n) ? n.replace(/[&<>"'\/]/g, (e) => Qi[e]) : n;
588
+ class eo {
589
589
  constructor(e) {
590
590
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
591
591
  }
@@ -597,11 +597,11 @@ class Qi {
597
597
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
598
598
  }
599
599
  }
600
- const Zi = [" ", ",", "?", "!", ";"], eo = new Qi(20), to = (n, e, t) => {
600
+ const to = [" ", ",", "?", "!", ";"], no = new eo(20), ro = (n, e, t) => {
601
601
  e = e || "", t = t || "";
602
- const r = Zi.filter((s) => e.indexOf(s) < 0 && t.indexOf(s) < 0);
602
+ const r = to.filter((s) => e.indexOf(s) < 0 && t.indexOf(s) < 0);
603
603
  if (r.length === 0) return !0;
604
- const i = eo.getRegExp(`(${r.map((s) => s === "?" ? "\\?" : s).join("|")})`);
604
+ const i = no.getRegExp(`(${r.map((s) => s === "?" ? "\\?" : s).join("|")})`);
605
605
  let o = !i.test(n);
606
606
  if (!o) {
607
607
  const s = n.indexOf(t);
@@ -629,7 +629,7 @@ const Zi = [" ", ",", "?", "!", ";"], eo = new Qi(20), to = (n, e, t) => {
629
629
  i = s;
630
630
  }
631
631
  return i;
632
- }, Me = (n) => n == null ? void 0 : n.replace("_", "-"), no = {
632
+ }, Me = (n) => n == null ? void 0 : n.replace("_", "-"), io = {
633
633
  type: "logger",
634
634
  log(n) {
635
635
  this.output("log", n);
@@ -652,7 +652,7 @@ class He {
652
652
  }
653
653
  init(e) {
654
654
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
655
- this.prefix = t.prefix || "i18next:", this.logger = e || no, this.options = t, this.debug = t.debug;
655
+ this.prefix = t.prefix || "i18next:", this.logger = e || io, this.options = t, this.debug = t.debug;
656
656
  }
657
657
  log() {
658
658
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
@@ -812,7 +812,7 @@ const Wt = {}, Jt = (n) => !b(n) && typeof n != "boolean" && typeof n != "number
812
812
  class Ve extends Xe {
813
813
  constructor(e) {
814
814
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
815
- super(), zi(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = B.create("translator");
815
+ super(), Ji(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = B.create("translator");
816
816
  }
817
817
  changeLanguage(e) {
818
818
  e && (this.language = e);
@@ -831,7 +831,7 @@ class Ve extends Xe {
831
831
  r === void 0 && (r = ":");
832
832
  const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
833
833
  let o = t.ns || this.options.defaultNS || [];
834
- const s = r && e.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !to(e, r, i);
834
+ const s = r && e.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ro(e, r, i);
835
835
  if (s && !a) {
836
836
  const u = e.match(this.interpolator.nestingRegexp);
837
837
  if (u && u.length > 0)
@@ -879,13 +879,13 @@ class Ve extends Xe {
879
879
  }
880
880
  const f = this.resolve(e, t);
881
881
  let d = f == null ? void 0 : f.res;
882
- const g = (f == null ? void 0 : f.usedKey) || s, m = (f == null ? void 0 : f.exactUsedKey) || s, v = ["[object Number]", "[object Function]", "[object RegExp]"], w = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, L = !this.i18nFormat || this.i18nFormat.handleAsObject, E = t.count !== void 0 && !b(t.count), C = Ve.hasDefaultValue(t), j = E ? this.pluralResolver.getSuffix(c, t.count, t) : "", z = t.ordinal && E ? this.pluralResolver.getSuffix(c, t.count, {
882
+ const g = (f == null ? void 0 : f.usedKey) || s, m = (f == null ? void 0 : f.exactUsedKey) || s, v = ["[object Number]", "[object Function]", "[object RegExp]"], w = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, E = t.count !== void 0 && !b(t.count), L = Ve.hasDefaultValue(t), A = E ? this.pluralResolver.getSuffix(c, t.count, t) : "", z = t.ordinal && E ? this.pluralResolver.getSuffix(c, t.count, {
883
883
  ordinal: !1
884
- }) : "", W = E && !t.ordinal && t.count === 0, k = W && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${j}`] || t[`defaultValue${z}`] || t.defaultValue;
884
+ }) : "", W = E && !t.ordinal && t.count === 0, k = W && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${A}`] || t[`defaultValue${z}`] || t.defaultValue;
885
885
  let O = d;
886
- L && !d && C && (O = k);
886
+ C && !d && L && (O = k);
887
887
  const P = Jt(O), I = Object.prototype.toString.apply(O);
888
- if (L && O && P && v.indexOf(I) < 0 && !(b(w) && Array.isArray(O))) {
888
+ if (C && O && P && v.indexOf(I) < 0 && !(b(w) && Array.isArray(O))) {
889
889
  if (!t.returnObjects && !this.options.returnObjects) {
890
890
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
891
891
  const T = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, O, {
@@ -895,11 +895,11 @@ class Ve extends Xe {
895
895
  return i ? (f.res = T, f.usedParams = this.getUsedParamsDetails(t), f) : T;
896
896
  }
897
897
  if (o) {
898
- const T = Array.isArray(O), D = T ? [] : {}, Lt = T ? m : g;
898
+ const T = Array.isArray(O), D = T ? [] : {}, Ct = T ? m : g;
899
899
  for (const _ in O)
900
900
  if (Object.prototype.hasOwnProperty.call(O, _)) {
901
- const q = `${Lt}${o}${_}`;
902
- C && !d ? D[_] = this.translate(q, {
901
+ const q = `${Ct}${o}${_}`;
902
+ L && !d ? D[_] = this.translate(q, {
903
903
  ...t,
904
904
  defaultValue: Jt(k) ? k[_] : void 0,
905
905
  joinArrays: !1,
@@ -912,12 +912,12 @@ class Ve extends Xe {
912
912
  }
913
913
  d = D;
914
914
  }
915
- } else if (L && b(w) && Array.isArray(d))
915
+ } else if (C && b(w) && Array.isArray(d))
916
916
  d = d.join(w), d && (d = this.extendTranslation(d, e, t, r));
917
917
  else {
918
918
  let T = !1, D = !1;
919
- !this.isValidLookup(d) && C && (T = !0, d = k), this.isValidLookup(d) || (D = !0, d = s);
920
- const _ = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && D ? void 0 : d, q = C && k !== d && this.options.updateMissing;
919
+ !this.isValidLookup(d) && L && (T = !0, d = k), this.isValidLookup(d) || (D = !0, d = s);
920
+ const _ = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && D ? void 0 : d, q = L && k !== d && this.options.updateMissing;
921
921
  if (D || T || q) {
922
922
  if (this.logger.log(q ? "updateKey" : "missingKey", c, u, s, q ? k : d), o) {
923
923
  const N = this.resolve(s, {
@@ -934,7 +934,7 @@ class Ve extends Xe {
934
934
  else this.options.saveMissingTo === "all" ? fe = this.languageUtils.toResolveHierarchy(t.lng || this.language) : fe.push(t.lng || this.language);
935
935
  const kt = (N, G, de) => {
936
936
  var It;
937
- const Pt = C && de !== d ? de : _;
937
+ const Pt = L && de !== d ? de : _;
938
938
  this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, G, Pt, q, t) : (It = this.backendConnector) != null && It.saveMissing && this.backendConnector.saveMissing(N, u, G, Pt, q, t), this.emit("missingKey", N, u, G, d);
939
939
  };
940
940
  this.options.saveMissing && (this.options.saveMissingPlurals && E ? fe.forEach((N) => {
@@ -1005,26 +1005,26 @@ class Ve extends Xe {
1005
1005
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
1006
1006
  const d = t.count !== void 0 && !b(t.count), g = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (b(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
1007
1007
  f.forEach((w) => {
1008
- var L, E;
1009
- this.isValidLookup(r) || (a = w, !Wt[`${v[0]}-${w}`] && ((L = this.utils) != null && L.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(a)) && (Wt[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((C) => {
1008
+ var C, E;
1009
+ this.isValidLookup(r) || (a = w, !Wt[`${v[0]}-${w}`] && ((C = this.utils) != null && C.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(a)) && (Wt[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((L) => {
1010
1010
  var W;
1011
1011
  if (this.isValidLookup(r)) return;
1012
- s = C;
1013
- const j = [l];
1012
+ s = L;
1013
+ const A = [l];
1014
1014
  if ((W = this.i18nFormat) != null && W.addLookupKeys)
1015
- this.i18nFormat.addLookupKeys(j, l, C, w, t);
1015
+ this.i18nFormat.addLookupKeys(A, l, L, w, t);
1016
1016
  else {
1017
1017
  let k;
1018
- d && (k = this.pluralResolver.getSuffix(C, t.count, t));
1018
+ d && (k = this.pluralResolver.getSuffix(L, t.count, t));
1019
1019
  const O = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
1020
- if (d && (j.push(l + k), t.ordinal && k.indexOf(P) === 0 && j.push(l + k.replace(P, this.options.pluralSeparator)), g && j.push(l + O)), m) {
1020
+ if (d && (A.push(l + k), t.ordinal && k.indexOf(P) === 0 && A.push(l + k.replace(P, this.options.pluralSeparator)), g && A.push(l + O)), m) {
1021
1021
  const I = `${l}${this.options.contextSeparator}${t.context}`;
1022
- j.push(I), d && (j.push(I + k), t.ordinal && k.indexOf(P) === 0 && j.push(I + k.replace(P, this.options.pluralSeparator)), g && j.push(I + O));
1022
+ A.push(I), d && (A.push(I + k), t.ordinal && k.indexOf(P) === 0 && A.push(I + k.replace(P, this.options.pluralSeparator)), g && A.push(I + O));
1023
1023
  }
1024
1024
  }
1025
1025
  let z;
1026
- for (; z = j.pop(); )
1027
- this.isValidLookup(r) || (o = z, r = this.getResource(C, w, z, t));
1026
+ for (; z = A.pop(); )
1027
+ this.isValidLookup(r) || (o = z, r = this.getResource(L, w, z, t));
1028
1028
  }));
1029
1029
  });
1030
1030
  }), {
@@ -1142,7 +1142,7 @@ const Gt = {
1142
1142
  pluralCategories: ["one", "other"]
1143
1143
  })
1144
1144
  };
1145
- class ro {
1145
+ class oo {
1146
1146
  constructor(e) {
1147
1147
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1148
1148
  this.languageUtils = e, this.options = t, this.logger = B.create("pluralResolver"), this.pluralRulesCache = {};
@@ -1194,10 +1194,10 @@ class ro {
1194
1194
  }
1195
1195
  }
1196
1196
  const Qt = function(n, e, t) {
1197
- let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = Xi(n, e, t);
1197
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = Yi(n, e, t);
1198
1198
  return !o && i && b(t) && (o = ht(n, t, r), o === void 0 && (o = ht(e, t, r))), o;
1199
1199
  }, ot = (n) => n.replace(/\$/g, "$$$$");
1200
- class io {
1200
+ class so {
1201
1201
  constructor() {
1202
1202
  var t;
1203
1203
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -1224,10 +1224,10 @@ class io {
1224
1224
  nestingSuffix: m,
1225
1225
  nestingSuffixEscaped: v,
1226
1226
  nestingOptionsSeparator: w,
1227
- maxReplaces: L,
1227
+ maxReplaces: C,
1228
1228
  alwaysFormat: E
1229
1229
  } = e.interpolation;
1230
- this.escape = t !== void 0 ? t : Yi, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? te(o) : s || "{{", this.suffix = a ? te(a) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? te(d) : g || te("$t("), this.nestingSuffix = m ? te(m) : v || te(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
1230
+ this.escape = t !== void 0 ? t : Zi, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? te(o) : s || "{{", this.suffix = a ? te(a) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? te(d) : g || te("$t("), this.nestingSuffix = m ? te(m) : v || te(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = C || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
1231
1231
  }
1232
1232
  reset() {
1233
1233
  this.options && this.init(this.options);
@@ -1248,8 +1248,8 @@ class io {
1248
1248
  interpolationkey: m
1249
1249
  }) : E;
1250
1250
  }
1251
- const v = m.split(this.formatSeparator), w = v.shift().trim(), L = v.join(this.formatSeparator).trim();
1252
- return this.format(Qt(t, u, w, this.options.keySeparator, this.options.ignoreJSONStructure), L, r, {
1251
+ const v = m.split(this.formatSeparator), w = v.shift().trim(), C = v.join(this.formatSeparator).trim();
1252
+ return this.format(Qt(t, u, w, this.options.keySeparator, this.options.ignoreJSONStructure), C, r, {
1253
1253
  ...i,
1254
1254
  ...t,
1255
1255
  interpolationkey: w
@@ -1268,8 +1268,8 @@ class io {
1268
1268
  const v = o[1].trim();
1269
1269
  if (s = c(v), s === void 0)
1270
1270
  if (typeof l == "function") {
1271
- const L = l(e, o, i);
1272
- s = b(L) ? L : "";
1271
+ const C = l(e, o, i);
1272
+ s = b(C) ? C : "";
1273
1273
  } else if (i && Object.prototype.hasOwnProperty.call(i, v))
1274
1274
  s = "";
1275
1275
  else if (f) {
@@ -1323,7 +1323,7 @@ class io {
1323
1323
  return e;
1324
1324
  }
1325
1325
  }
1326
- const oo = (n) => {
1326
+ const ao = (n) => {
1327
1327
  let e = n.toLowerCase().trim();
1328
1328
  const t = {};
1329
1329
  if (n.indexOf("(") > -1) {
@@ -1354,7 +1354,7 @@ const oo = (n) => {
1354
1354
  return a || (a = n(Me(r), i), e[s] = a), a(t);
1355
1355
  };
1356
1356
  };
1357
- class so {
1357
+ class uo {
1358
1358
  constructor() {
1359
1359
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1360
1360
  this.logger = B.create("formatter"), this.options = e, this.formats = {
@@ -1415,7 +1415,7 @@ class so {
1415
1415
  const {
1416
1416
  formatName: c,
1417
1417
  formatOptions: l
1418
- } = oo(u);
1418
+ } = ao(u);
1419
1419
  if (this.formats[c]) {
1420
1420
  let d = a;
1421
1421
  try {
@@ -1435,10 +1435,10 @@ class so {
1435
1435
  }, e);
1436
1436
  }
1437
1437
  }
1438
- const ao = (n, e) => {
1438
+ const lo = (n, e) => {
1439
1439
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
1440
1440
  };
1441
- class uo extends Xe {
1441
+ class co extends Xe {
1442
1442
  constructor(e, t, r) {
1443
1443
  var o, s;
1444
1444
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -1472,7 +1472,7 @@ class uo extends Xe {
1472
1472
  }), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
1473
1473
  const a = {};
1474
1474
  this.queue.forEach((u) => {
1475
- Ji(u.loaded, [o], s), ao(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
1475
+ Gi(u.loaded, [o], s), lo(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
1476
1476
  a[c] || (a[c] = {});
1477
1477
  const l = u.loaded[c];
1478
1478
  l.length && l.forEach((f) => {
@@ -1635,7 +1635,7 @@ const Zt = () => ({
1635
1635
  var e, t;
1636
1636
  return b(n.ns) && (n.ns = [n.ns]), b(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), b(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
1637
1637
  }, Re = () => {
1638
- }, lo = (n) => {
1638
+ }, fo = (n) => {
1639
1639
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
1640
1640
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
1641
1641
  });
@@ -1645,7 +1645,7 @@ class Se extends Xe {
1645
1645
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
1646
1646
  if (super(), this.options = en(e), this.services = {}, this.logger = B, this.modules = {
1647
1647
  external: []
1648
- }, lo(this), t && !this.isInitialized && !e.isClone) {
1648
+ }, fo(this), t && !this.isInitialized && !e.isClone) {
1649
1649
  if (!this.options.initAsync)
1650
1650
  return this.init(e, t), this;
1651
1651
  setTimeout(() => {
@@ -1670,16 +1670,16 @@ class Se extends Xe {
1670
1670
  if (!this.options.isClone) {
1671
1671
  this.modules.logger ? B.init(o(this.modules.logger), this.options) : B.init(null, this.options);
1672
1672
  let l;
1673
- this.modules.formatter ? l = this.modules.formatter : l = so;
1673
+ this.modules.formatter ? l = this.modules.formatter : l = uo;
1674
1674
  const f = new Xt(this.options);
1675
1675
  this.store = new zt(this.options.resources, this.options);
1676
1676
  const d = this.services;
1677
- d.logger = B, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new ro(f, {
1677
+ d.logger = B, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new oo(f, {
1678
1678
  prepend: this.options.pluralSeparator,
1679
1679
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1680
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = o(l), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new io(this.options), d.utils = {
1680
+ }), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = o(l), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new so(this.options), d.utils = {
1681
1681
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1682
- }, d.backendConnector = new uo(o(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(g) {
1682
+ }, d.backendConnector = new co(o(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(g) {
1683
1683
  for (var m = arguments.length, v = new Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
1684
1684
  v[w - 1] = arguments[w];
1685
1685
  e.emit(g, ...v);
@@ -1897,17 +1897,17 @@ class Se extends Xe {
1897
1897
  const re = Se.createInstance();
1898
1898
  re.createInstance = Se.createInstance;
1899
1899
  const {
1900
- slice: co,
1901
- forEach: fo
1900
+ slice: po,
1901
+ forEach: ho
1902
1902
  } = [];
1903
- function po(n) {
1904
- return fo.call(co.call(arguments, 1), (e) => {
1903
+ function go(n) {
1904
+ return ho.call(po.call(arguments, 1), (e) => {
1905
1905
  if (e)
1906
1906
  for (const t in e)
1907
1907
  n[t] === void 0 && (n[t] = e[t]);
1908
1908
  }), n;
1909
1909
  }
1910
- const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ho = function(n, e) {
1910
+ const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, mo = function(n, e) {
1911
1911
  const r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1912
1912
  path: "/"
1913
1913
  }, i = encodeURIComponent(e);
@@ -1956,7 +1956,7 @@ const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ho = function(n, e) {
1956
1956
  path: "/",
1957
1957
  sameSite: "strict"
1958
1958
  };
1959
- t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), r && (i.domain = r), document.cookie = ho(n, encodeURIComponent(e), i);
1959
+ t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), r && (i.domain = r), document.cookie = mo(n, encodeURIComponent(e), i);
1960
1960
  },
1961
1961
  read(n) {
1962
1962
  const e = `${n}=`, t = document.cookie.split(";");
@@ -1971,7 +1971,7 @@ const tn = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ho = function(n, e) {
1971
1971
  this.create(n, "", -1);
1972
1972
  }
1973
1973
  };
1974
- var go = {
1974
+ var yo = {
1975
1975
  name: "cookie",
1976
1976
  // Deconstruct the options object and extract the lookupCookie property
1977
1977
  lookup(n) {
@@ -1991,7 +1991,7 @@ var go = {
1991
1991
  } = e;
1992
1992
  t && typeof document < "u" && nn.create(t, n, r, i, o);
1993
1993
  }
1994
- }, mo = {
1994
+ }, vo = {
1995
1995
  name: "querystring",
1996
1996
  // Deconstruct the options object and extract the lookupQuerystring property
1997
1997
  lookup(n) {
@@ -2025,7 +2025,7 @@ const rn = () => {
2025
2025
  }
2026
2026
  return me;
2027
2027
  };
2028
- var yo = {
2028
+ var wo = {
2029
2029
  name: "localStorage",
2030
2030
  // Deconstruct the options object and extract the lookupLocalStorage property
2031
2031
  lookup(n) {
@@ -2055,7 +2055,7 @@ const on = () => {
2055
2055
  }
2056
2056
  return ye;
2057
2057
  };
2058
- var vo = {
2058
+ var bo = {
2059
2059
  name: "sessionStorage",
2060
2060
  lookup(n) {
2061
2061
  let {
@@ -2070,7 +2070,7 @@ var vo = {
2070
2070
  } = e;
2071
2071
  t && on() && window.sessionStorage.setItem(t, n);
2072
2072
  }
2073
- }, wo = {
2073
+ }, So = {
2074
2074
  name: "navigator",
2075
2075
  lookup(n) {
2076
2076
  const e = [];
@@ -2087,7 +2087,7 @@ var vo = {
2087
2087
  }
2088
2088
  return e.length > 0 ? e : void 0;
2089
2089
  }
2090
- }, bo = {
2090
+ }, xo = {
2091
2091
  name: "htmlTag",
2092
2092
  // Deconstruct the options object and extract the htmlTag property
2093
2093
  lookup(n) {
@@ -2097,7 +2097,7 @@ var vo = {
2097
2097
  const r = e || (typeof document < "u" ? document.documentElement : null);
2098
2098
  return r && typeof r.getAttribute == "function" && (t = r.getAttribute("lang")), t;
2099
2099
  }
2100
- }, So = {
2100
+ }, Oo = {
2101
2101
  name: "path",
2102
2102
  // Deconstruct the options object and extract the lookupFromPathIndex property
2103
2103
  lookup(n) {
@@ -2109,7 +2109,7 @@ var vo = {
2109
2109
  const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
2110
2110
  return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
2111
2111
  }
2112
- }, xo = {
2112
+ }, Eo = {
2113
2113
  name: "subdomain",
2114
2114
  lookup(n) {
2115
2115
  var i, o;
@@ -2128,7 +2128,7 @@ try {
2128
2128
  }
2129
2129
  const Kn = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
2130
2130
  Bn || Kn.splice(1, 1);
2131
- const Oo = () => ({
2131
+ const To = () => ({
2132
2132
  order: Kn,
2133
2133
  lookupQuerystring: "lng",
2134
2134
  lookupCookie: "i18next",
@@ -2150,7 +2150,7 @@ class qn {
2150
2150
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
2151
2151
  languageUtils: {}
2152
2152
  }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2153
- this.services = e, this.options = po(t, this.options || {}, Oo()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(go), this.addDetector(mo), this.addDetector(yo), this.addDetector(vo), this.addDetector(wo), this.addDetector(bo), this.addDetector(So), this.addDetector(xo);
2153
+ this.services = e, this.options = go(t, this.options || {}, To()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(yo), this.addDetector(vo), this.addDetector(wo), this.addDetector(bo), this.addDetector(So), this.addDetector(xo), this.addDetector(Oo), this.addDetector(Eo);
2154
2154
  }
2155
2155
  addDetector(e) {
2156
2156
  return this.detectors[e.name] = e, this;
@@ -2172,7 +2172,7 @@ class qn {
2172
2172
  }
2173
2173
  }
2174
2174
  qn.type = "languageDetector";
2175
- function Eo(n, e) {
2175
+ function Lo(n, e) {
2176
2176
  if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
2177
2177
  }
2178
2178
  function xe(n) {
@@ -2183,7 +2183,7 @@ function xe(n) {
2183
2183
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2184
2184
  }, xe(n);
2185
2185
  }
2186
- function To(n, e) {
2186
+ function Co(n, e) {
2187
2187
  if (xe(n) != "object" || !n) return n;
2188
2188
  var t = n[Symbol.toPrimitive];
2189
2189
  if (t !== void 0) {
@@ -2193,30 +2193,30 @@ function To(n, e) {
2193
2193
  }
2194
2194
  return String(n);
2195
2195
  }
2196
- function Co(n) {
2197
- var e = To(n, "string");
2196
+ function ko(n) {
2197
+ var e = Co(n, "string");
2198
2198
  return xe(e) == "symbol" ? e : e + "";
2199
2199
  }
2200
- function Lo(n, e) {
2200
+ function Po(n, e) {
2201
2201
  for (var t = 0; t < e.length; t++) {
2202
2202
  var r = e[t];
2203
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, Co(r.key), r);
2203
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, ko(r.key), r);
2204
2204
  }
2205
2205
  }
2206
- function ko(n, e, t) {
2207
- return e && Lo(n.prototype, e), Object.defineProperty(n, "prototype", {
2206
+ function Io(n, e, t) {
2207
+ return e && Po(n.prototype, e), Object.defineProperty(n, "prototype", {
2208
2208
  writable: !1
2209
2209
  }), n;
2210
2210
  }
2211
- var zn = [], Po = zn.forEach, Io = zn.slice;
2212
- function Ro(n) {
2213
- return Po.call(Io.call(arguments, 1), function(e) {
2211
+ var zn = [], Ro = zn.forEach, $o = zn.slice;
2212
+ function Ao(n) {
2213
+ return Ro.call($o.call(arguments, 1), function(e) {
2214
2214
  if (e)
2215
2215
  for (var t in e)
2216
2216
  n[t] === void 0 && (n[t] = e[t]);
2217
2217
  }), n;
2218
2218
  }
2219
- function $o(n) {
2219
+ function No(n) {
2220
2220
  return n ? typeof n == "function" ? new n() : n : null;
2221
2221
  }
2222
2222
  function jo() {
@@ -2245,14 +2245,14 @@ function sn(n, e, t, r) {
2245
2245
  var Wn = /* @__PURE__ */ function() {
2246
2246
  function n(e) {
2247
2247
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2248
- Eo(this, n), this.backends = [], this.type = "backend", this.allOptions = r, this.init(e, t);
2248
+ Lo(this, n), this.backends = [], this.type = "backend", this.allOptions = r, this.init(e, t);
2249
2249
  }
2250
- return ko(n, [{
2250
+ return Io(n, [{
2251
2251
  key: "init",
2252
2252
  value: function(t) {
2253
2253
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2254
- this.services = t, this.options = Ro(i, this.options || {}, jo()), this.allOptions = o, this.options.backends && this.options.backends.forEach(function(s, a) {
2255
- r.backends[a] = r.backends[a] || $o(s), r.backends[a].init(t, r.options.backendOptions && r.options.backendOptions[a] || {}, o);
2254
+ this.services = t, this.options = Ao(i, this.options || {}, jo()), this.allOptions = o, this.options.backends && this.options.backends.forEach(function(s, a) {
2255
+ r.backends[a] = r.backends[a] || No(s), r.backends[a].init(t, r.options.backendOptions && r.options.backendOptions[a] || {}, o);
2256
2256
  }), this.services && this.options.reloadInterval && setInterval(function() {
2257
2257
  return r.reload();
2258
2258
  }, this.options.reloadInterval);
@@ -2267,9 +2267,9 @@ var Wn = /* @__PURE__ */ function() {
2267
2267
  if (!m && v && Object.keys(v).length > d) {
2268
2268
  if (i(null, v, l), u(l - 1, v), g.save && o.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(o.options.cacheHitMode) > -1) {
2269
2269
  if (w && o.options.refreshExpirationTime && w + o.options.refreshExpirationTime > Date.now()) return;
2270
- var L = o.backends[l + 1];
2271
- L && L.read && sn(L, t, r, function(E, C) {
2272
- E || C && (Object.keys(C).length <= d || (u(l, C), o.options.cacheHitMode === "refreshAndUpdateStore" && o.services && o.services.resourceStore && o.services.resourceStore.addResourceBundle(t, r, C)));
2270
+ var C = o.backends[l + 1];
2271
+ C && C.read && sn(C, t, r, function(E, L) {
2272
+ E || L && (Object.keys(L).length <= d || (u(l, L), o.options.cacheHitMode === "refreshAndUpdateStore" && o.services && o.services.resourceStore && o.services.resourceStore.addResourceBundle(t, r, L)));
2273
2273
  });
2274
2274
  }
2275
2275
  } else
@@ -2342,11 +2342,11 @@ function gt(n) {
2342
2342
  function Jn() {
2343
2343
  return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : gt(XMLHttpRequest)) === "object";
2344
2344
  }
2345
- function No(n) {
2345
+ function Uo(n) {
2346
2346
  return !!n && typeof n.then == "function";
2347
2347
  }
2348
- function Uo(n) {
2349
- return No(n) ? n : Promise.resolve(n);
2348
+ function Do(n) {
2349
+ return Uo(n) ? n : Promise.resolve(n);
2350
2350
  }
2351
2351
  function an(n, e) {
2352
2352
  var t = Object.keys(n);
@@ -2362,21 +2362,21 @@ function un(n) {
2362
2362
  for (var e = 1; e < arguments.length; e++) {
2363
2363
  var t = arguments[e] != null ? arguments[e] : {};
2364
2364
  e % 2 ? an(Object(t), !0).forEach(function(r) {
2365
- Ao(n, r, t[r]);
2365
+ Fo(n, r, t[r]);
2366
2366
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : an(Object(t)).forEach(function(r) {
2367
2367
  Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
2368
2368
  });
2369
2369
  }
2370
2370
  return n;
2371
2371
  }
2372
- function Ao(n, e, t) {
2373
- return (e = Do(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2372
+ function Fo(n, e, t) {
2373
+ return (e = _o(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2374
2374
  }
2375
- function Do(n) {
2376
- var e = Fo(n, "string");
2375
+ function _o(n) {
2376
+ var e = Mo(n, "string");
2377
2377
  return Z(e) == "symbol" ? e : e + "";
2378
2378
  }
2379
- function Fo(n, e) {
2379
+ function Mo(n, e) {
2380
2380
  if (Z(n) != "object" || !n) return n;
2381
2381
  var t = n[Symbol.toPrimitive];
2382
2382
  if (t !== void 0) {
@@ -2438,7 +2438,7 @@ var mt = function(e, t) {
2438
2438
  }
2439
2439
  }
2440
2440
  typeof fetch == "function" ? fetch(e, t).then(o).catch(r) : J(e, t).then(o).catch(r);
2441
- }, cn = !1, _o = function(e, t, r, i) {
2441
+ }, cn = !1, Ho = function(e, t, r, i) {
2442
2442
  e.queryStringParams && (t = mt(t, e.queryStringParams));
2443
2443
  var o = un({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
2444
2444
  typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (o["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), r && (o["Content-Type"] = "application/json");
@@ -2460,7 +2460,7 @@ var mt = function(e, t) {
2460
2460
  i(l);
2461
2461
  }
2462
2462
  }
2463
- }, Mo = function(e, t, r, i) {
2463
+ }, Vo = function(e, t, r, i) {
2464
2464
  r && Z(r) === "object" && (r = mt("", r).slice(1)), e.queryStringParams && (t = mt(t, e.queryStringParams));
2465
2465
  try {
2466
2466
  var o = Oe ? new Oe() : new Be("MSXML2.XMLHTTP.3.0");
@@ -2477,12 +2477,12 @@ var mt = function(e, t) {
2477
2477
  }, o.send(r);
2478
2478
  } catch (u) {
2479
2479
  }
2480
- }, Ho = function(e, t, r, i) {
2480
+ }, Bo = function(e, t, r, i) {
2481
2481
  if (typeof r == "function" && (i = r, r = void 0), i = i || function() {
2482
2482
  }, J && t.indexOf("file:") !== 0)
2483
- return _o(e, t, r, i);
2483
+ return Ho(e, t, r, i);
2484
2484
  if (Jn() || typeof ActiveXObject == "function")
2485
- return Mo(e, t, r, i);
2485
+ return Vo(e, t, r, i);
2486
2486
  i(new Error("No fetch and no xhr implementation found!"));
2487
2487
  };
2488
2488
  function ue(n) {
@@ -2514,26 +2514,26 @@ function st(n) {
2514
2514
  }
2515
2515
  return n;
2516
2516
  }
2517
- function Vo(n, e) {
2517
+ function Ko(n, e) {
2518
2518
  if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
2519
2519
  }
2520
- function Bo(n, e) {
2520
+ function qo(n, e) {
2521
2521
  for (var t = 0; t < e.length; t++) {
2522
2522
  var r = e[t];
2523
2523
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, Gn(r.key), r);
2524
2524
  }
2525
2525
  }
2526
- function Ko(n, e, t) {
2527
- return e && Bo(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
2526
+ function zo(n, e, t) {
2527
+ return e && qo(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
2528
2528
  }
2529
2529
  function Xn(n, e, t) {
2530
2530
  return (e = Gn(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
2531
2531
  }
2532
2532
  function Gn(n) {
2533
- var e = qo(n, "string");
2533
+ var e = Wo(n, "string");
2534
2534
  return ue(e) == "symbol" ? e : e + "";
2535
2535
  }
2536
- function qo(n, e) {
2536
+ function Wo(n, e) {
2537
2537
  if (ue(n) != "object" || !n) return n;
2538
2538
  var t = n[Symbol.toPrimitive];
2539
2539
  if (t !== void 0) {
@@ -2543,7 +2543,7 @@ function qo(n, e) {
2543
2543
  }
2544
2544
  return String(n);
2545
2545
  }
2546
- var zo = function() {
2546
+ var Jo = function() {
2547
2547
  return {
2548
2548
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2549
2549
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -2556,7 +2556,7 @@ var zo = function() {
2556
2556
  },
2557
2557
  parseLoadPayload: function(t, r) {
2558
2558
  },
2559
- request: Ho,
2559
+ request: Bo,
2560
2560
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2561
2561
  customHeaders: {},
2562
2562
  queryStringParams: {},
@@ -2572,13 +2572,13 @@ var zo = function() {
2572
2572
  }, Yn = function() {
2573
2573
  function n(e) {
2574
2574
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2575
- Vo(this, n), this.services = e, this.options = t, this.allOptions = r, this.type = "backend", this.init(e, t, r);
2575
+ Ko(this, n), this.services = e, this.options = t, this.allOptions = r, this.type = "backend", this.init(e, t, r);
2576
2576
  }
2577
- return Ko(n, [{
2577
+ return zo(n, [{
2578
2578
  key: "init",
2579
2579
  value: function(t) {
2580
2580
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2581
- if (this.services = t, this.options = st(st(st({}, zo()), this.options || {}), i), this.allOptions = o, this.services && this.options.reloadInterval) {
2581
+ if (this.services = t, this.options = st(st(st({}, Jo()), this.options || {}), i), this.allOptions = o, this.services && this.options.reloadInterval) {
2582
2582
  var s = setInterval(function() {
2583
2583
  return r.reload();
2584
2584
  }, this.options.reloadInterval);
@@ -2599,7 +2599,7 @@ var zo = function() {
2599
2599
  key: "_readAny",
2600
2600
  value: function(t, r, i, o, s) {
2601
2601
  var a = this, u = this.options.loadPath;
2602
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, i)), u = Uo(u), u.then(function(c) {
2602
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, i)), u = Do(u), u.then(function(c) {
2603
2603
  if (!c) return s(null, {});
2604
2604
  var l = a.services.interpolator.interpolate(c, {
2605
2605
  lng: t.join("+"),
@@ -2678,7 +2678,7 @@ var zo = function() {
2678
2678
  }]);
2679
2679
  }();
2680
2680
  Yn.type = "backend";
2681
- var Wo = function(e) {
2681
+ var Xo = function(e) {
2682
2682
  return {
2683
2683
  type: "backend",
2684
2684
  init: function(r, i, o) {
@@ -2703,13 +2703,13 @@ var Wo = function(e) {
2703
2703
  }
2704
2704
  };
2705
2705
  };
2706
- const Jo = {
2706
+ const Go = {
2707
2707
  debug: !1,
2708
2708
  fallbackLng: kn.enum.en,
2709
2709
  namespace: "translation",
2710
- supportedLngs: Object.values(Ln),
2710
+ supportedLngs: Object.values(Cn),
2711
2711
  nonExplicitSupportedLngs: !1
2712
- }, Xo = {
2712
+ }, Yo = {
2713
2713
  react: {
2714
2714
  useSuspense: !0
2715
2715
  },
@@ -2730,14 +2730,14 @@ function yt(n) {
2730
2730
  lookupLocalStorage: "i18nextLng",
2731
2731
  caches: ["localStorage", "cookie"]
2732
2732
  })
2733
- ).use(Mi).init({
2734
- ...Jo,
2733
+ ).use(Vi).init({
2734
+ ...Go,
2735
2735
  backend: {
2736
2736
  backends: [
2737
2737
  Yn,
2738
2738
  // if a namespace can't be loaded via normal http-backend loadPath, then the inMemoryLocalBackend will try to return the correct resources
2739
2739
  // with dynamic import, you have to use the "default" key of the module ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#importing_defaults )
2740
- Wo(
2740
+ Xo(
2741
2741
  (e, t) => import(dn(e, t))
2742
2742
  )
2743
2743
  ],
@@ -2747,33 +2747,33 @@ function yt(n) {
2747
2747
  }
2748
2748
  ]
2749
2749
  },
2750
- ...Xo
2750
+ ...Yo
2751
2751
  }), re.on("loaded", () => {
2752
2752
  n == null || n(re);
2753
2753
  })), re;
2754
2754
  }
2755
- const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2755
+ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2756
2756
  __proto__: null,
2757
2757
  default: yt,
2758
2758
  initializeI18n: yt
2759
2759
  }, Symbol.toStringTag, { value: "Module" }));
2760
- function ba(n) {
2760
+ function xa(n) {
2761
2761
  const e = yt();
2762
- return qi("translation", { i18n: e, ...n });
2762
+ return Wi("translation", { i18n: e, ...n });
2763
2763
  }
2764
2764
  const Et = 60 * 1e3, ke = Et, Qn = ke * 2, Zn = ke * 3, Tt = ke * 15, Ge = Et, Ye = Ge * 2, er = Ge * 3, tr = Et * 15;
2765
2765
  var nr = /* @__PURE__ */ ((n) => (n.SelectAll = "SelectAll", n))(nr || {}), rr = /* @__PURE__ */ ((n) => (n.Text = "text", n.Image = "image", n))(rr || {});
2766
2766
  S();
2767
- const Yo = "___", Qo = Dr((n) => {
2768
- const e = n.split(Yo);
2767
+ const Zo = "___", es = _r((n) => {
2768
+ const e = n.split(Zo);
2769
2769
  try {
2770
2770
  return e.length === 4;
2771
2771
  } catch {
2772
2772
  return !1;
2773
2773
  }
2774
- }), Zo = y({
2775
- captchaId: Ae([p(), jt()]),
2776
- captchaContentId: Ae([p(), jt()]),
2774
+ }), ts = y({
2775
+ captchaId: Ue([p(), At()]),
2776
+ captchaContentId: Ue([p(), At()]),
2777
2777
  salt: p().min(34),
2778
2778
  solution: S().array().optional(),
2779
2779
  unlabelled: S().array().optional(),
@@ -2781,25 +2781,25 @@ const Yo = "___", Qo = Dr((n) => {
2781
2781
  }), ir = y({
2782
2782
  hash: p(),
2783
2783
  data: p(),
2784
- type: Ce(rr)
2784
+ type: Le(rr)
2785
2785
  }), or = ir.extend({
2786
2786
  hash: p()
2787
- }), es = or.extend({
2787
+ }), ns = or.extend({
2788
2788
  label: p()
2789
- }), ts = or.extend({
2789
+ }), rs = or.extend({
2790
2790
  label: p().optional()
2791
- }), sr = Zo.extend({
2791
+ }), sr = ts.extend({
2792
2792
  items: K(ir),
2793
2793
  target: p()
2794
- }), ns = sr.extend({
2794
+ }), is = sr.extend({
2795
2795
  solution: p().array().optional(),
2796
2796
  unlabelled: p().array().optional()
2797
- }), rs = ns.extend({
2797
+ }), os = is.extend({
2798
2798
  solution: S().array().optional(),
2799
2799
  unlabelled: S().array().optional()
2800
- }), is = K(sr);
2800
+ }), ss = K(sr);
2801
2801
  K(
2802
- rs
2802
+ os
2803
2803
  );
2804
2804
  const ar = y({
2805
2805
  captchaId: p(),
@@ -2809,19 +2809,19 @@ const ar = y({
2809
2809
  });
2810
2810
  K(ar);
2811
2811
  y({
2812
- items: K(ts)
2812
+ items: K(rs)
2813
2813
  });
2814
2814
  y({
2815
- items: K(es)
2815
+ items: K(ns)
2816
2816
  });
2817
2817
  y({
2818
- captchas: is,
2819
- format: Ce(nr)
2818
+ captchas: ss,
2819
+ format: Le(nr)
2820
2820
  });
2821
2821
  y({
2822
2822
  labels: K(p())
2823
2823
  });
2824
- var os = Object.defineProperty, ss = (n, e, t) => e in n ? os(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, pn = (n, e, t) => (ss(n, typeof e != "symbol" ? e + "" : e, t), t), at = {
2824
+ var as = Object.defineProperty, us = (n, e, t) => e in n ? as(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, pn = (n, e, t) => (us(n, typeof e != "symbol" ? e + "" : e, t), t), at = {
2825
2825
  0: 0,
2826
2826
  1: 1,
2827
2827
  2: 2,
@@ -2845,7 +2845,7 @@ var os = Object.defineProperty, ss = (n, e, t) => e in n ? os(n, e, { enumerable
2845
2845
  E: 14,
2846
2846
  F: 15
2847
2847
  };
2848
- function as(n) {
2848
+ function ls(n) {
2849
2849
  const e = n.length % 2, t = (n[1] === "x" ? 2 : 0) + e, r = (n.length - t) / 2 + e, i = new Uint8Array(r);
2850
2850
  e && (i[0] = 0 | at[n[2]]);
2851
2851
  for (let o = 0; o < r; ) {
@@ -2858,7 +2858,7 @@ var hn = class extends Uint8Array {
2858
2858
  constructor(n) {
2859
2859
  super(n), pn(this, "i", 0), pn(this, "v"), this.v = new DataView(n);
2860
2860
  }
2861
- }, ee = (n) => (e) => n(e instanceof hn ? e : new hn(e instanceof Uint8Array ? e.buffer : typeof e == "string" ? as(e).buffer : e)), Qe = (n) => {
2861
+ }, ee = (n) => (e) => n(e instanceof hn ? e : new hn(e instanceof Uint8Array ? e.buffer : typeof e == "string" ? ls(e).buffer : e)), Qe = (n) => {
2862
2862
  const e = n.length;
2863
2863
  let t = 0;
2864
2864
  for (let i = 0; i < e; i++)
@@ -2878,24 +2878,24 @@ function gn(n, e) {
2878
2878
  }
2879
2879
  return i;
2880
2880
  }
2881
- var A = (n, e) => {
2881
+ var U = (n, e) => {
2882
2882
  const t = [n, e];
2883
2883
  return t.enc = n, t.dec = e, t;
2884
- }, ur = (n, e) => (t) => n(e(t)), lr = (n, e) => (t) => e(n(t)), us = ([n, e], t, r) => A(ur(n, t), lr(e, r));
2885
- function ls(n, e) {
2884
+ }, ur = (n, e) => (t) => n(e(t)), lr = (n, e) => (t) => e(n(t)), cs = ([n, e], t, r) => U(ur(n, t), lr(e, r));
2885
+ function fs(n, e) {
2886
2886
  return ee((t) => {
2887
2887
  const r = t.v[e](t.i, !0);
2888
2888
  return t.i += n, r;
2889
2889
  });
2890
2890
  }
2891
- function cs(n, e) {
2891
+ function ds(n, e) {
2892
2892
  return (t) => {
2893
2893
  const r = new Uint8Array(n);
2894
2894
  return new DataView(r.buffer)[e](0, t, !0), r;
2895
2895
  };
2896
2896
  }
2897
2897
  function X(n, e, t) {
2898
- return A(cs(n, t), ls(n, e));
2898
+ return U(ds(n, t), fs(n, e));
2899
2899
  }
2900
2900
  var le = X(1, "getUint8", "setUint8"), Ke = X(2, "getUint16", "setUint16"), Ee = X(4, "getUint32", "setUint32"), cr = X(8, "getBigUint64", "setBigUint64");
2901
2901
  X(1, "getInt8", "setInt8");
@@ -2909,8 +2909,8 @@ var fr = (n) => {
2909
2909
  const { v: t, i: r } = e, i = t.getBigUint64(r, !0), o = t[n](r + 8, !0);
2910
2910
  return e.i += 16, o << 64n | i;
2911
2911
  });
2912
- A(fr, dr("getBigUint64"));
2913
- A(fr, dr("getBigInt64"));
2912
+ U(fr, dr("getBigUint64"));
2913
+ U(fr, dr("getBigInt64"));
2914
2914
  var pr = (n) => {
2915
2915
  const e = new Uint8Array(32), t = new DataView(e.buffer);
2916
2916
  return t.setBigInt64(0, n, !0), t.setBigInt64(8, n >> 64n, !0), t.setBigInt64(16, n >> 128n, !0), t.setBigInt64(24, n >> 192n, !0), e;
@@ -2918,12 +2918,12 @@ var pr = (n) => {
2918
2918
  let t = e.v.getBigUint64(e.i, !0);
2919
2919
  return e.i += 8, t |= e.v.getBigUint64(e.i, !0) << 64n, e.i += 8, t |= e.v.getBigUint64(e.i, !0) << 128n, e.i += 8, t |= e.v[n](e.i, !0) << 192n, e.i += 8, t;
2920
2920
  });
2921
- A(pr, hr("getBigUint64"));
2922
- A(pr, hr("getBigInt64"));
2923
- var gr = us(le, (n) => n ? 1 : 0, Boolean), fs = [le[1], Ke[1], Ee[1]], ds = ee((n) => {
2921
+ U(pr, hr("getBigUint64"));
2922
+ U(pr, hr("getBigInt64"));
2923
+ var gr = cs(le, (n) => n ? 1 : 0, Boolean), ps = [le[1], Ke[1], Ee[1]], hs = ee((n) => {
2924
2924
  const e = n[n.i], t = e & 3;
2925
2925
  if (t < 3)
2926
- return fs[t](n) >>> 2;
2926
+ return ps[t](n) >>> 2;
2927
2927
  const r = (e >>> 2) + 4;
2928
2928
  n.i++;
2929
2929
  let i = 0n;
@@ -2933,34 +2933,34 @@ var gr = us(le, (n) => n ? 1 : 0, Boolean), fs = [le[1], Ke[1], Ee[1]], ds = ee(
2933
2933
  i = cr[1](n) << s | i, s += 64n;
2934
2934
  let a = r % 8;
2935
2935
  return a > 3 && (i = BigInt(Ee[1](n)) << s | i, s += 32n, a -= 4), a > 1 && (i = BigInt(Ke[1](n)) << s | i, s += 16n, a -= 2), a && (i = BigInt(le[1](n)) << s | i), i;
2936
- }), ps = 1n << 56n, hs = 1 << 24, gs = 256, ms = 4294967295n, ys = 64, vs = 16384, ws = 1 << 30, bs = (n) => {
2936
+ }), gs = 1n << 56n, ms = 1 << 24, ys = 256, vs = 4294967295n, ws = 64, bs = 16384, Ss = 1 << 30, xs = (n) => {
2937
2937
  if (n < 0)
2938
2938
  throw new Error(`Wrong compact input (${n})`);
2939
2939
  const e = Number(n) << 2;
2940
- if (n < ys)
2940
+ if (n < ws)
2941
2941
  return le[0](e);
2942
- if (n < vs)
2942
+ if (n < bs)
2943
2943
  return Ke[0](e | 1);
2944
- if (n < ws)
2944
+ if (n < Ss)
2945
2945
  return Ee[0](e | 2);
2946
2946
  let t = [new Uint8Array(1)], r = BigInt(n);
2947
- for (; r >= ps; )
2947
+ for (; r >= gs; )
2948
2948
  t.push(cr[0](r)), r >>= 64n;
2949
- r >= hs && (t.push(Ee[0](Number(r & ms))), r >>= 32n);
2949
+ r >= ms && (t.push(Ee[0](Number(r & vs))), r >>= 32n);
2950
2950
  let i = Number(r);
2951
- i >= gs && (t.push(Ke[0](i)), i >>= 16), i && t.push(le[0](i));
2951
+ i >= ys && (t.push(Ke[0](i)), i >>= 16), i && t.push(le[0](i));
2952
2952
  const o = Qe(t);
2953
2953
  return o[0] = o.length - 5 << 2 | 3, o;
2954
- }, mr = A(bs, ds), Ss = new TextEncoder(), xs = (n) => {
2955
- const e = Ss.encode(n);
2954
+ }, mr = U(xs, hs), Os = new TextEncoder(), Es = (n) => {
2955
+ const e = Os.encode(n);
2956
2956
  return Qe([mr.enc(e.length), e]);
2957
- }, Os = new TextDecoder(), Es = ee((n) => {
2957
+ }, Ts = new TextDecoder(), Ls = ee((n) => {
2958
2958
  let e = mr.dec(n);
2959
2959
  const t = new DataView(n.buffer, n.i, e);
2960
- return n.i += e, Os.decode(t);
2961
- }), M = A(xs, Es), Ts = () => {
2962
- }, Cs = new Uint8Array(0);
2963
- A(() => Cs, Ts);
2960
+ return n.i += e, Ts.decode(t);
2961
+ }), M = U(Es, Ls), Cs = () => {
2962
+ }, ks = new Uint8Array(0);
2963
+ U(() => ks, Cs);
2964
2964
  var yr = (n) => ee((e) => {
2965
2965
  const t = le.dec(e);
2966
2966
  if (t !== 0)
@@ -2968,10 +2968,10 @@ var yr = (n) => ee((e) => {
2968
2968
  }), vr = (n) => (e) => {
2969
2969
  const t = new Uint8Array(1);
2970
2970
  return e === void 0 ? (t[0] = 0, t) : (t[0] = 1, n === gr[0] ? (t[0] = e ? 1 : 2, t) : Qe([t, n(e)]));
2971
- }, H = (n) => A(vr(n[0]), yr(n[1]));
2971
+ }, H = (n) => U(vr(n[0]), yr(n[1]));
2972
2972
  H.enc = vr;
2973
2973
  H.dec = yr;
2974
- var wr = (...n) => ee((e) => n.map((t) => t(e))), br = (...n) => (e) => Qe(n.map((t, r) => t(e[r]))), Ze = (...n) => A(br(...n.map(([e]) => e)), wr(...n.map(([, e]) => e)));
2974
+ var wr = (...n) => ee((e) => n.map((t) => t(e))), br = (...n) => (e) => Qe(n.map((t, r) => t(e[r]))), Ze = (...n) => U(br(...n.map(([e]) => e)), wr(...n.map(([, e]) => e)));
2975
2975
  Ze.enc = br;
2976
2976
  Ze.dec = wr;
2977
2977
  var Sr = (n) => {
@@ -2980,16 +2980,16 @@ var Sr = (n) => {
2980
2980
  }, xr = (n) => {
2981
2981
  const e = Object.keys(n);
2982
2982
  return lr(Ze.dec(...Object.values(n)), (t) => Object.fromEntries(t.map((r, i) => [e[i], r])));
2983
- }, se = (n) => A(Sr(gn(n, (e) => e[0])), xr(gn(n, (e) => e[1])));
2983
+ }, se = (n) => U(Sr(gn(n, (e) => e[0])), xr(gn(n, (e) => e[1])));
2984
2984
  se.enc = Sr;
2985
2985
  se.dec = xr;
2986
- const Ls = y({
2986
+ const Ps = y({
2987
2987
  [h.requestHash]: p()
2988
2988
  });
2989
2989
  y({
2990
2990
  [h.challenge]: p()
2991
2991
  });
2992
- const ks = y({
2992
+ const Is = y({
2993
2993
  [h.timestamp]: p()
2994
2994
  }), mn = y({
2995
2995
  [h.challenge]: p().optional(),
@@ -3009,7 +3009,7 @@ y({
3009
3009
  [h.user]: mn
3010
3010
  })
3011
3011
  });
3012
- const Ps = se({
3012
+ const Rs = se({
3013
3013
  [h.commitmentId]: H(M),
3014
3014
  [h.providerUrl]: H(M),
3015
3015
  [h.dapp]: M,
@@ -3027,10 +3027,10 @@ const Ps = se({
3027
3027
  [h.requestHash]: H(M)
3028
3028
  })
3029
3029
  })
3030
- }), Or = p().startsWith("0x"), Sa = (n) => {
3030
+ }), Or = p().startsWith("0x"), Oa = (n) => {
3031
3031
  var e, t, r, i;
3032
3032
  return We(
3033
- Ps.enc({
3033
+ Rs.enc({
3034
3034
  [h.commitmentId]: void 0,
3035
3035
  [h.providerUrl]: void 0,
3036
3036
  [h.challenge]: void 0,
@@ -3050,8 +3050,8 @@ const Ps = se({
3050
3050
  })
3051
3051
  );
3052
3052
  }, Er = 2, Tr = 0;
3053
- var Is = /* @__PURE__ */ ((n) => (n.GetImageCaptchaChallenge = "/v1/prosopo/provider/client/captcha/image", n.GetPowCaptchaChallenge = "/v1/prosopo/provider/client/captcha/pow", n.GetFrictionlessCaptchaChallenge = "/v1/prosopo/provider/client/captcha/frictionless", n.SubmitImageCaptchaSolution = "/v1/prosopo/provider/client/solution", n.SubmitPowCaptchaSolution = "/v1/prosopo/provider/client/pow/solution", n.VerifyPowCaptchaSolution = "/v1/prosopo/provider/client/pow/verify", n.VerifyImageCaptchaSolutionDapp = "/v1/prosopo/provider/client/image/dapp/verify", n.GetProviderStatus = "/v1/prosopo/provider/client/status", n.SubmitUserEvents = "/v1/prosopo/provider/client/events", n))(Is || {}), Rs = /* @__PURE__ */ ((n) => (n.Healthz = "/healthz", n.GetProviderDetails = "/v1/prosopo/provider/public/details", n))(Rs || {}), $s = /* @__PURE__ */ ((n) => (n.SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register", n.UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update", n.RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove", n))($s || {});
3054
- const Cr = {
3053
+ var $s = /* @__PURE__ */ ((n) => (n.GetImageCaptchaChallenge = "/v1/prosopo/provider/client/captcha/image", n.GetPowCaptchaChallenge = "/v1/prosopo/provider/client/captcha/pow", n.GetFrictionlessCaptchaChallenge = "/v1/prosopo/provider/client/captcha/frictionless", n.SubmitImageCaptchaSolution = "/v1/prosopo/provider/client/solution", n.SubmitPowCaptchaSolution = "/v1/prosopo/provider/client/pow/solution", n.VerifyPowCaptchaSolution = "/v1/prosopo/provider/client/pow/verify", n.VerifyImageCaptchaSolutionDapp = "/v1/prosopo/provider/client/image/dapp/verify", n.GetProviderStatus = "/v1/prosopo/provider/client/status", n.SubmitUserEvents = "/v1/prosopo/provider/client/events", n))($s || {}), As = /* @__PURE__ */ ((n) => (n.Healthz = "/healthz", n.GetProviderDetails = "/v1/prosopo/provider/public/details", n))(As || {}), Ns = /* @__PURE__ */ ((n) => (n.SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register", n.UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update", n.RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove", n))(Ns || {});
3054
+ const Lr = {
3055
3055
  "/v1/prosopo/provider/client/captcha/image": { windowMs: 6e4, limit: 30 },
3056
3056
  "/v1/prosopo/provider/client/captcha/pow": { windowMs: 6e4, limit: 60 },
3057
3057
  "/v1/prosopo/provider/client/solution": { windowMs: 6e4, limit: 60 },
@@ -3082,13 +3082,13 @@ const Cr = {
3082
3082
  },
3083
3083
  {}
3084
3084
  )
3085
- ), Ns = js(
3086
- Cr
3085
+ ), Us = js(
3086
+ Lr
3087
3087
  );
3088
3088
  y({
3089
3089
  [h.user]: p(),
3090
3090
  [h.dapp]: p(),
3091
- [h.datasetId]: Ae([p(), K(S())]),
3091
+ [h.datasetId]: Ue([p(), K(S())]),
3092
3092
  [h.sessionId]: p().optional()
3093
3093
  });
3094
3094
  y({
@@ -3098,8 +3098,8 @@ y({
3098
3098
  [h.requestHash]: p(),
3099
3099
  [h.timestamp]: p(),
3100
3100
  [h.signature]: y({
3101
- [h.user]: ks,
3102
- [h.provider]: Ls
3101
+ [h.user]: Is,
3102
+ [h.provider]: Ps
3103
3103
  })
3104
3104
  });
3105
3105
  y({
@@ -3119,8 +3119,8 @@ y({
3119
3119
  [h.dapp]: p(),
3120
3120
  [h.sessionId]: p().optional()
3121
3121
  });
3122
- const xa = y({
3123
- [h.challenge]: Qo,
3122
+ const Ea = y({
3123
+ [h.challenge]: es,
3124
3124
  [h.difficulty]: S(),
3125
3125
  [h.signature]: y({
3126
3126
  [h.user]: y({
@@ -3145,12 +3145,12 @@ y({
3145
3145
  });
3146
3146
  y({
3147
3147
  [h.siteKey]: p(),
3148
- [h.tier]: Ce(wt),
3149
- [h.settings]: di.optional()
3148
+ [h.tier]: Le(wt),
3149
+ [h.settings]: hi.optional()
3150
3150
  });
3151
- const Oa = y({
3151
+ const Ta = y({
3152
3152
  [h.detectorKey]: p()
3153
- }), Lr = y({
3153
+ }), Cr = y({
3154
3154
  solved: y({
3155
3155
  count: S().positive()
3156
3156
  }).optional().default({ count: Er }),
@@ -3159,20 +3159,20 @@ const Oa = y({
3159
3159
  }).optional().default({ count: Tr })
3160
3160
  });
3161
3161
  var kr = /* @__PURE__ */ ((n) => (n.ipAddress = "ipAddress", n.userAccount = "userAccount", n))(kr || {});
3162
- const Us = Ce(kr);
3162
+ const Ds = Le(kr);
3163
3163
  y({
3164
3164
  global: De(),
3165
3165
  hardBlock: De(),
3166
- type: Us,
3166
+ type: Ds,
3167
3167
  dappAccount: p().optional(),
3168
- captchaConfig: Lr.optional()
3168
+ captchaConfig: Cr.optional()
3169
3169
  });
3170
3170
  y({
3171
3171
  [h.dapp]: p()
3172
3172
  });
3173
- const As = y({
3174
- PENALTY_OLD_TIMESTAMP: S().positive().optional().default(0.2),
3175
- PENALTY_ACCESS_RULE: S().positive().optional().default(0.5)
3173
+ const Pr = 0.2, Ir = 0.5, Fs = y({
3174
+ PENALTY_OLD_TIMESTAMP: S().positive().optional().default(Pr),
3175
+ PENALTY_ACCESS_RULE: S().positive().optional().default(Ir)
3176
3176
  }), yn = ze([
3177
3177
  "trace",
3178
3178
  "debug",
@@ -3193,7 +3193,7 @@ const vt = ze([
3193
3193
  "development",
3194
3194
  "staging",
3195
3195
  "production"
3196
- ]), Ds = Sn(
3196
+ ]), _s = Sn(
3197
3197
  vt,
3198
3198
  y({
3199
3199
  type: p(),
@@ -3201,7 +3201,7 @@ const vt = ze([
3201
3201
  dbname: p().default("prosopo"),
3202
3202
  authSource: p().default("admin")
3203
3203
  })
3204
- ), Fs = y({
3204
+ ), Ms = y({
3205
3205
  logLevel: yn.optional().default(yn.enum.info),
3206
3206
  defaultEnvironment: vt.default(
3207
3207
  vt.Values.production
@@ -3227,21 +3227,24 @@ R.object({
3227
3227
  whenCreated: R.number()
3228
3228
  })
3229
3229
  });
3230
- const Pr = Fs.merge(
3230
+ const Rr = Ms.merge(
3231
3231
  y({
3232
- database: Ds.optional(),
3232
+ database: _s.optional(),
3233
3233
  devOnlyWatchEvents: De().optional()
3234
3234
  })
3235
- ), _s = y({
3235
+ ), Hs = y({
3236
3236
  baseURL: p().url(),
3237
3237
  port: S().optional().default(9229)
3238
+ }).default({
3239
+ baseURL: "http://localhost",
3240
+ port: 9229
3238
3241
  });
3239
3242
  y({
3240
3243
  requiredNumberOfSolutions: S().positive().min(2),
3241
3244
  solutionWinningPercentage: S().positive().max(100),
3242
3245
  captchaBlockRecency: S().positive().min(2)
3243
3246
  });
3244
- const Ir = Pr.merge(
3247
+ const $r = Rr.merge(
3245
3248
  y({
3246
3249
  userAccountAddress: p().optional(),
3247
3250
  web2: De().optional().default(!0),
@@ -3249,22 +3252,22 @@ const Ir = Pr.merge(
3249
3252
  dappName: p().optional().default("ProsopoClientDapp"),
3250
3253
  serverUrl: p().optional()
3251
3254
  })
3252
- ), Rr = {
3255
+ ), Ar = {
3253
3256
  challengeTimeout: ke,
3254
3257
  solutionTimeout: Qn,
3255
3258
  verifiedTimeout: Zn,
3256
3259
  cachedTimeout: Tt
3257
- }, $r = {
3260
+ }, Nr = {
3258
3261
  challengeTimeout: Ye,
3259
3262
  solutionTimeout: Ge,
3260
3263
  cachedTimeout: er
3261
3264
  }, jr = {
3262
3265
  maxVerifiedTime: tr
3263
- }, Ct = {
3264
- image: Rr,
3265
- pow: $r,
3266
+ }, Lt = {
3267
+ image: Ar,
3268
+ pow: Nr,
3266
3269
  contract: jr
3267
- }, Nr = y({
3270
+ }, Ur = y({
3268
3271
  image: y({
3269
3272
  // Set this to a default value for the frontend
3270
3273
  challengeTimeout: S().positive().optional().default(ke),
@@ -3272,20 +3275,20 @@ const Ir = Pr.merge(
3272
3275
  solutionTimeout: S().positive().optional().default(Qn),
3273
3276
  verifiedTimeout: S().positive().optional().default(Zn),
3274
3277
  cachedTimeout: S().positive().optional().default(Tt)
3275
- }).default(Rr),
3278
+ }).default(Ar),
3276
3279
  pow: y({
3277
3280
  verifiedTimeout: S().positive().optional().default(Ye),
3278
3281
  solutionTimeout: S().positive().optional().default(Ge),
3279
3282
  cachedTimeout: S().positive().optional().default(er)
3280
- }).default($r),
3283
+ }).default(Nr),
3281
3284
  contract: y({
3282
3285
  maxVerifiedTime: S().positive().optional().default(tr)
3283
3286
  }).default(jr)
3284
- }).default(Ct);
3285
- Ir.merge(
3287
+ }).default(Lt);
3288
+ $r.merge(
3286
3289
  y({
3287
3290
  serverUrl: p().url().optional(),
3288
- timeouts: Nr.optional().default(Ct)
3291
+ timeouts: Ur.optional().default(Lt)
3289
3292
  })
3290
3293
  );
3291
3294
  y({
@@ -3300,30 +3303,33 @@ y({
3300
3303
  numberOfRounds: S().positive(),
3301
3304
  seed: S().positive()
3302
3305
  });
3303
- const Ms = Ae([Ut("light"), Ut("dark")]);
3304
- var Hs = /* @__PURE__ */ ((n) => (n.visible = "visible", n.invisible = "invisible", n))(Hs || {});
3305
- const Vs = ze([
3306
+ const Vs = Ue([jt("light"), jt("dark")]);
3307
+ var Bs = /* @__PURE__ */ ((n) => (n.visible = "visible", n.invisible = "invisible", n))(Bs || {});
3308
+ const Ks = ze([
3306
3309
  "visible",
3307
3310
  "invisible"
3308
3311
  /* invisible */
3309
- ]).optional(), Ea = Ir.and(
3312
+ ]).optional(), La = $r.and(
3310
3313
  y({
3311
- theme: Ms.optional().default("light"),
3312
- captchas: Nr.optional().default(Ct),
3314
+ theme: Vs.optional().default("light"),
3315
+ captchas: Ur.optional().default(Lt),
3313
3316
  language: kn.optional(),
3314
- mode: Vs.optional().default(
3317
+ mode: Ks.optional().default(
3315
3318
  "visible"
3316
3319
  /* visible */
3317
3320
  )
3318
3321
  })
3319
3322
  );
3320
- Pr.merge(
3323
+ Rr.merge(
3321
3324
  y({
3322
- captchas: Lr.optional().default({
3325
+ captchas: Cr.optional().default({
3323
3326
  solved: { count: Er },
3324
3327
  unsolved: { count: Tr }
3325
3328
  }),
3326
- penalties: As,
3329
+ penalties: Fs.optional().default({
3330
+ PENALTY_OLD_TIMESTAMP: Pr,
3331
+ PENALTY_ACCESS_RULE: Ir
3332
+ }),
3327
3333
  scheduledTasks: y({
3328
3334
  captchaScheduler: y({
3329
3335
  schedule: p().optional()
@@ -3332,15 +3338,19 @@ Pr.merge(
3332
3338
  schedule: p().optional()
3333
3339
  }).optional()
3334
3340
  }).optional(),
3335
- server: _s,
3341
+ server: Hs.optional(),
3336
3342
  mongoEventsUri: p().optional(),
3337
3343
  mongoCaptchaUri: p().optional(),
3338
3344
  mongoClientUri: p().optional(),
3339
3345
  redisConnection: y({
3340
3346
  url: p(),
3341
- password: p()
3347
+ password: p(),
3348
+ indexName: p().optional()
3349
+ }).default({
3350
+ url: "redis://localhost:6379",
3351
+ password: "root"
3342
3352
  }),
3343
- rateLimits: Ns.default(Cr),
3353
+ rateLimits: Us.default(Lr),
3344
3354
  proxyCount: S().optional().default(0),
3345
3355
  lRules: Sn(p(), S()).optional(),
3346
3356
  authAccount: y({
@@ -3350,7 +3360,7 @@ Pr.merge(
3350
3360
  })
3351
3361
  })
3352
3362
  );
3353
- const Bs = async () => (await import("./fp.esm-DYWeNGcH.js")).default, Ks = async () => (await (await (await Bs()).load()).get()).visitorId, ie = new Uint8Array([161, 35, 3, 33, 0]), qe = new Uint8Array([
3363
+ const qs = async () => (await import("./fp.esm-DYWeNGcH.js")).default, zs = async () => (await (await (await qs()).load()).get()).visitorId, ie = new Uint8Array([161, 35, 3, 33, 0]), qe = new Uint8Array([
3354
3364
  48,
3355
3365
  83,
3356
3366
  2,
@@ -3367,39 +3377,39 @@ const Bs = async () => (await import("./fp.esm-DYWeNGcH.js")).default, Ks = asyn
3367
3377
  34,
3368
3378
  4,
3369
3379
  32
3370
- ]), qs = 32, vn = 64, zs = 32, ve = qe.length;
3371
- function Ws(n, e, t) {
3372
- const r = Array.isArray(t) || t === void 0 ? t : [t], i = _r(e, n, r), o = i.subarray(0, qe.length);
3380
+ ]), Ws = 32, vn = 64, Js = 32, ve = qe.length;
3381
+ function Xs(n, e, t) {
3382
+ const r = Array.isArray(t) || t === void 0 ? t : [t], i = Hr(e, n, r), o = i.subarray(0, qe.length);
3373
3383
  if (!et(o, qe))
3374
3384
  throw new Error("Invalid encoding header found in body");
3375
3385
  let s = i.subarray(ve, ve + vn), a = ve + vn, u = i.subarray(a, a + ie.length);
3376
- if (!et(u, ie) && (a = ve + zs, s = i.subarray(ve, a), u = i.subarray(a, a + ie.length), !et(u, ie)))
3386
+ if (!et(u, ie) && (a = ve + Js, s = i.subarray(ve, a), u = i.subarray(a, a + ie.length), !et(u, ie)))
3377
3387
  throw new Error("Invalid encoding divider found in body");
3378
3388
  const c = a + ie.length;
3379
3389
  return {
3380
- publicKey: i.subarray(c, c + qs),
3390
+ publicKey: i.subarray(c, c + Ws),
3381
3391
  secretKey: s
3382
3392
  };
3383
3393
  }
3384
- function Js({ publicKey: n, secretKey: e }, t) {
3394
+ function Gs({ publicKey: n, secretKey: e }, t) {
3385
3395
  if (!e)
3386
3396
  throw new Error("Expected a valid secretKey to be passed to encode");
3387
3397
  const r = lt(qe, e, ie, n);
3388
3398
  if (!t)
3389
3399
  return r;
3390
- const { params: i, password: o, salt: s } = Mr(t), { encrypted: a, nonce: u } = Hr(r, o.subarray(0, 32));
3391
- return lt(Vr(s, i), u, a);
3400
+ const { params: i, password: o, salt: s } = Vr(t), { encrypted: a, nonce: u } = Br(r, o.subarray(0, 32));
3401
+ return lt(Kr(s, i), u, a);
3392
3402
  }
3393
- function Xs(n, { address: e, meta: t }, r, i) {
3403
+ function Ys(n, { address: e, meta: t }, r, i) {
3394
3404
  return En(
3395
- Br(r, ["pkcs8", n], i),
3405
+ qr(r, ["pkcs8", n], i),
3396
3406
  {
3397
3407
  address: e,
3398
3408
  meta: t
3399
3409
  }
3400
3410
  );
3401
3411
  }
3402
- const Gs = new Uint8Array([]), Ys = {
3412
+ const Qs = new Uint8Array([]), Zs = {
3403
3413
  sr25519: On,
3404
3414
  ed25519: () => {
3405
3415
  throw new Error("Not Implemented");
@@ -3410,13 +3420,13 @@ const Gs = new Uint8Array([]), Ys = {
3410
3420
  ethereum: () => {
3411
3421
  throw new Error("Not Implemented");
3412
3422
  }
3413
- }, Qs = {
3423
+ }, ea = {
3414
3424
  ecdsa: new Uint8Array([2]),
3415
3425
  ed25519: new Uint8Array([0]),
3416
3426
  ethereum: new Uint8Array([2]),
3417
3427
  sr25519: new Uint8Array([1])
3418
- }, Zs = {
3419
- sr25519: Jr,
3428
+ }, ta = {
3429
+ sr25519: Gr,
3420
3430
  ed25519: () => {
3421
3431
  throw new Error("Not Implemented");
3422
3432
  },
@@ -3439,18 +3449,18 @@ const Gs = new Uint8Array([]), Ys = {
3439
3449
  }
3440
3450
  };
3441
3451
  function we(n) {
3442
- return !n || ei(n);
3452
+ return !n || ni(n);
3443
3453
  }
3444
3454
  function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o = null, s) {
3445
3455
  const a = (l, f) => {
3446
- const d = Ws(l, f || o, s);
3456
+ const d = Xs(l, f || o, s);
3447
3457
  if (d.secretKey.length === 64)
3448
3458
  t = d.publicKey, r = d.secretKey;
3449
3459
  else {
3450
- const g = Ys[e](d.secretKey);
3460
+ const g = Zs[e](d.secretKey);
3451
3461
  t = g.publicKey, r = g.secretKey;
3452
3462
  }
3453
- }, u = (l) => (we(r) && o && a(l, o), o = Js({ publicKey: t, secretKey: r }, l), s = void 0, o), c = () => {
3463
+ }, u = (l) => (we(r) && o && a(l, o), o = Gs({ publicKey: t, secretKey: r }, l), s = void 0, o), c = () => {
3454
3464
  const l = ut[e](t);
3455
3465
  return n(l);
3456
3466
  };
@@ -3478,7 +3488,7 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3478
3488
  derive: (l, f) => {
3479
3489
  if (we(r))
3480
3490
  throw new Error("Cannot derive on a locked keypair");
3481
- const { path: d } = Xr(l), g = xn({ publicKey: t, secretKey: r }, d, e);
3491
+ const { path: d } = Yr(l), g = xn({ publicKey: t, secretKey: r }, d, e);
3482
3492
  return oe({ toSS58: n, type: e }, g, f, null);
3483
3493
  },
3484
3494
  encodePkcs8: (l) => u(l),
@@ -3492,13 +3502,13 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3492
3502
  if (we(r))
3493
3503
  throw new Error("Cannot sign with a locked key pair");
3494
3504
  return lt(
3495
- f.withType ? Qs[e] : Gs,
3496
- Zs[e](ct(l), { publicKey: t, secretKey: r })
3505
+ f.withType ? ea[e] : Qs,
3506
+ ta[e](ct(l), { publicKey: t, secretKey: r })
3497
3507
  );
3498
3508
  },
3499
3509
  toJson: (l) => {
3500
- const f = ["ecdsa", "ethereum"].includes(e) ? t.length === 20 ? At(t) : At(Wr(t)) : c();
3501
- return Xs(
3510
+ const f = ["ecdsa", "ethereum"].includes(e) ? t.length === 20 ? Ut(t) : Ut(Xr(t)) : c();
3511
+ return Ys(
3502
3512
  e,
3503
3513
  { address: f, meta: i },
3504
3514
  u(l),
@@ -3508,7 +3518,7 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3508
3518
  unlock: (l) => {
3509
3519
  a(l);
3510
3520
  },
3511
- verify: (l, f, d) => zr(
3521
+ verify: (l, f, d) => Jr(
3512
3522
  l,
3513
3523
  f,
3514
3524
  ut[e](ct(d))
@@ -3516,36 +3526,36 @@ function oe({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, o =
3516
3526
  vrfSign: (l, f, d) => {
3517
3527
  if (we(r))
3518
3528
  throw new Error("Cannot sign with a locked key pair");
3519
- return qr(l, { secretKey: r }, f, d);
3529
+ return Wr(l, { secretKey: r }, f, d);
3520
3530
  },
3521
- vrfVerify: (l, f, d, g, m) => Kr(l, f, t, g, m)
3531
+ vrfVerify: (l, f, d, g, m) => zr(l, f, t, g, m)
3522
3532
  };
3523
3533
  }
3524
3534
  var Y;
3525
- class ea {
3535
+ class na {
3526
3536
  constructor() {
3527
3537
  pe(this, Y, {});
3528
3538
  }
3529
3539
  add(e) {
3530
- return U(this, Y)[$e(e.address).toString()] = e, e;
3540
+ return j(this, Y)[$e(e.address).toString()] = e, e;
3531
3541
  }
3532
3542
  all() {
3533
- return Object.values(U(this, Y));
3543
+ return Object.values(j(this, Y));
3534
3544
  }
3535
3545
  get(e) {
3536
- const t = U(this, Y)[$e(e).toString()];
3546
+ const t = j(this, Y)[$e(e).toString()];
3537
3547
  if (!t)
3538
3548
  throw new Error(
3539
- `Unable to retrieve keypair '${ti(e) || je(e) ? We(ct(e)) : e}'`
3549
+ `Unable to retrieve keypair '${ri(e) || Ae(e) ? We(ct(e)) : e}'`
3540
3550
  );
3541
3551
  return t;
3542
3552
  }
3543
3553
  remove(e) {
3544
- delete U(this, Y)[$e(e).toString()];
3554
+ delete j(this, Y)[$e(e).toString()];
3545
3555
  }
3546
3556
  }
3547
3557
  Y = new WeakMap();
3548
- const ta = "bottom drive obey lake curtain smoke basket hold race lonely fit walk", wn = {
3558
+ const ra = "bottom drive obey lake curtain smoke basket hold race lonely fit walk", wn = {
3549
3559
  sr25519: (n) => On(n),
3550
3560
  ed25519: () => {
3551
3561
  throw new Error("Not Implemented");
@@ -3557,20 +3567,20 @@ const ta = "bottom drive obey lake curtain smoke basket hold race lonely fit wal
3557
3567
  throw new Error("Not Implemented");
3558
3568
  }
3559
3569
  };
3560
- function na({ publicKey: n }) {
3570
+ function ia({ publicKey: n }) {
3561
3571
  return n;
3562
3572
  }
3563
3573
  var V, Te, ae;
3564
- class ra {
3574
+ class oa {
3565
3575
  constructor(e = {}) {
3566
3576
  pe(this, V);
3567
3577
  pe(this, Te);
3568
3578
  pe(this, ae);
3569
- if (this.decodeAddress = $e, this.encodeAddress = (t, r) => Gr(t, r ?? U(this, ae)), e.type = e.type || "sr25519", !["sr25519"].includes(e.type || "undefined"))
3579
+ if (this.decodeAddress = $e, this.encodeAddress = (t, r) => Qr(t, r ?? j(this, ae)), e.type = e.type || "sr25519", !["sr25519"].includes(e.type || "undefined"))
3570
3580
  throw new Error(
3571
3581
  `Expected a keyring type of either 'sr25519', found '${e.type || "unknown"}`
3572
3582
  );
3573
- he(this, V, new ea()), he(this, ae, e.ss58Format), he(this, Te, e.type);
3583
+ he(this, V, new na()), he(this, ae, e.ss58Format), he(this, Te, e.type);
3574
3584
  }
3575
3585
  /**
3576
3586
  * @description retrieve the pairs (alias for getPairs)
@@ -3588,14 +3598,14 @@ class ra {
3588
3598
  * @description Returns the type of the keyring, ed25519, sr25519 or ecdsa
3589
3599
  */
3590
3600
  get type() {
3591
- return U(this, Te);
3601
+ return j(this, Te);
3592
3602
  }
3593
3603
  /**
3594
3604
  * @name addPair
3595
3605
  * @summary Stores an account, given a keyring pair, as a Key/Value (public key, pair) in Keyring Pair Dictionary
3596
3606
  */
3597
3607
  addPair(e) {
3598
- return U(this, V).add(e);
3608
+ return j(this, V).add(e);
3599
3609
  }
3600
3610
  /**
3601
3611
  * @name addFromAddress
@@ -3690,7 +3700,7 @@ class ra {
3690
3700
  const c = Array.isArray(i) ? i : [i];
3691
3701
  if (!["sr25519"].includes(u))
3692
3702
  throw new Error(`Unknown crypto type ${u}`);
3693
- const l = je(e) ? tt(e) : this.decodeAddress(e, a), f = je(t) ? tt(t) : Yr(t);
3703
+ const l = Ae(e) ? tt(e) : this.decodeAddress(e, a), f = Ae(t) ? tt(t) : Zr(t);
3694
3704
  return oe(
3695
3705
  { toSS58: this.encodeAddress, type: u },
3696
3706
  { publicKey: l, secretKey: new Uint8Array() },
@@ -3712,9 +3722,9 @@ class ra {
3712
3722
  * @description This creates a pair from the suri, but does not add it to the keyring
3713
3723
  */
3714
3724
  createFromUri(e, t = {}, r = this.type) {
3715
- const i = e.startsWith("//") ? `${ta}${e}` : e, { password: o, path: s, phrase: a } = Qr(i);
3725
+ const i = e.startsWith("//") ? `${ra}${e}` : e, { password: o, path: s, phrase: a } = ei(i);
3716
3726
  let u;
3717
- if (je(a, 256))
3727
+ if (Ae(a, 256))
3718
3728
  u = tt(a);
3719
3729
  else {
3720
3730
  const f = a.split(" ");
@@ -3723,7 +3733,7 @@ class ra {
3723
3733
  throw new Error(
3724
3734
  "Not implemented - Prosopo Keyring supports sr25519 only"
3725
3735
  );
3726
- })() : Zr(a, o);
3736
+ })() : ti(a, o);
3727
3737
  else {
3728
3738
  if (a.length > 32)
3729
3739
  throw new Error(
@@ -3747,7 +3757,7 @@ class ra {
3747
3757
  * a key lookup using the provided account address or public key (after decoding it).
3748
3758
  */
3749
3759
  getPair(e) {
3750
- return U(this, V).get(e);
3760
+ return j(this, V).get(e);
3751
3761
  }
3752
3762
  /**
3753
3763
  * @name getPairs
@@ -3755,7 +3765,7 @@ class ra {
3755
3765
  * @description Returns an array list of all the keyring pair values that are stored in the keyring pair dictionary.
3756
3766
  */
3757
3767
  getPairs() {
3758
- return U(this, V).all();
3768
+ return j(this, V).all();
3759
3769
  }
3760
3770
  /**
3761
3771
  * @name getPublicKeys
@@ -3763,14 +3773,14 @@ class ra {
3763
3773
  * @description Returns an array list of all the public keys associated with each of the keyring pair values that are stored in the keyring pair dictionary.
3764
3774
  */
3765
3775
  getPublicKeys() {
3766
- return U(this, V).all().map(na);
3776
+ return j(this, V).all().map(ia);
3767
3777
  }
3768
3778
  /**
3769
3779
  * @name removePair
3770
3780
  * @description Deletes the provided input address or public key from the stored Keyring Pair Dictionary.
3771
3781
  */
3772
3782
  removePair(e) {
3773
- U(this, V).remove(e);
3783
+ j(this, V).remove(e);
3774
3784
  }
3775
3785
  /**
3776
3786
  * @name setSS58Format;
@@ -3788,14 +3798,14 @@ class ra {
3788
3798
  * may backup their account to a JSON file that contains this information.
3789
3799
  */
3790
3800
  toJson(e, t) {
3791
- return U(this, V).get(e).toJson(t);
3801
+ return j(this, V).get(e).toJson(t);
3792
3802
  }
3793
3803
  }
3794
3804
  V = new WeakMap(), Te = new WeakMap(), ae = new WeakMap();
3795
- class ia {
3805
+ class sa {
3796
3806
  }
3797
- const oa = async () => (await import("./Signer-DP9drQ55.js")).default, sa = async () => (await import("./utilCryptoChunk-qm-BM2eT.js").then((n) => n.v)).entropyToMnemonic;
3798
- class bn extends ia {
3807
+ const aa = async () => (await import("./Signer-DP9drQ55.js")).default, ua = async () => (await import("./utilCryptoChunk-BKe3CKqn.js").then((n) => n.v)).entropyToMnemonic;
3808
+ class bn extends sa {
3799
3809
  async getAccount(e) {
3800
3810
  const t = await this.createAccount(e), r = await this.createExtension(t);
3801
3811
  return {
@@ -3804,7 +3814,7 @@ class bn extends ia {
3804
3814
  };
3805
3815
  }
3806
3816
  async createExtension(e) {
3807
- const t = await oa(), r = new t(async () => {
3817
+ const t = await aa(), r = new t(async () => {
3808
3818
  });
3809
3819
  return r.signRaw = async (i) => {
3810
3820
  const o = e.keypair.sign(i.data);
@@ -3820,12 +3830,12 @@ class bn extends ia {
3820
3830
  }
3821
3831
  },
3822
3832
  name: "procaptcha-web2",
3823
- version: oi,
3833
+ version: ai,
3824
3834
  signer: r
3825
3835
  };
3826
3836
  }
3827
3837
  async createAccount(e) {
3828
- const t = await Ks(), r = Fr(t, 128).slice(2), i = Tn(r), s = (await sa())(i), a = "sr25519", c = new ra({
3838
+ const t = await zs(), r = Mr(t, 128).slice(2), i = Tn(r), s = (await ua())(i), a = "sr25519", c = new oa({
3829
3839
  type: a
3830
3840
  }).addFromMnemonic(s), l = c.address;
3831
3841
  return {
@@ -3835,7 +3845,7 @@ class bn extends ia {
3835
3845
  };
3836
3846
  }
3837
3847
  }
3838
- const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3848
+ const Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3839
3849
  __proto__: null,
3840
3850
  ExtensionWeb2: bn,
3841
3851
  default: bn
@@ -3843,25 +3853,25 @@ const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3843
3853
  export {
3844
3854
  h as A,
3845
3855
  Je as C,
3846
- ia as E,
3856
+ sa as E,
3847
3857
  kn as L,
3848
- Hs as M,
3849
- Ea as P,
3850
- wa as R,
3851
- xa as S,
3852
- Oa as U,
3853
- ma as a,
3858
+ Bs as M,
3859
+ La as P,
3860
+ Sa as R,
3861
+ Ea as S,
3862
+ Ta as U,
3863
+ va as a,
3854
3864
  vt as b,
3855
- Is as c,
3856
- Rs as d,
3857
- $s as e,
3858
- Sa as f,
3859
- ki as g,
3860
- ya as h,
3861
- ga as i,
3862
- Ta as j,
3863
- va as l,
3865
+ $s as c,
3866
+ As as d,
3867
+ Ns as e,
3868
+ Oa as f,
3869
+ Ii as g,
3870
+ wa as h,
3871
+ ya as i,
3872
+ Ca as j,
3873
+ ba as l,
3864
3874
  F as r,
3865
- ha as s,
3866
- ba as u
3875
+ ma as s,
3876
+ xa as u
3867
3877
  };