@abaxx_tech/v-integration-react 1.2.0-dev.4 → 1.2.0-dev.5

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.
@@ -1,50 +1,64 @@
1
- import { jsx as P, jsxs as he, Fragment as Ve } from "react/jsx-runtime";
2
- import Nt, { createContext as qr, useState as ge, useContext as We, useRef as at, useCallback as Ie, useEffect as Ke } from "react";
3
- const je = qr({}), jr = ({
4
- clientId: V,
5
- apiUrl: z,
6
- children: ie
1
+ import { jsx as S, jsxs as he, Fragment as We } from "react/jsx-runtime";
2
+ import Ot, { createContext as jr, useState as ge, useContext as Ze, useRef as Ve, useCallback as Ie, useEffect as je } from "react";
3
+ const $e = jr({}), $r = ({
4
+ clientId: j,
5
+ apiUrl: Y,
6
+ children: ee
7
7
  }) => {
8
- const [Z, q] = ge(""), [Y, $] = ge(""), [M, x] = ge(!1), [g, m] = ge(""), [C, j] = ge(""), [S, H] = ge(/* @__PURE__ */ new Date()), [B, D] = ge(""), [K, G] = ge(null), [J, O] = ge(null), w = Nt.useCallback(() => {
9
- q(""), $(""), x(!1), m(""), j(""), D(""), H(/* @__PURE__ */ new Date()), G(null), O(null);
8
+ const [W, q] = ge(""), [X, F] = ge(""), [M, x] = ge(!1), [g, m] = ge(""), [T, $] = ge(""), [D, G] = ge(/* @__PURE__ */ new Date()), [k, N] = ge(""), [K, Q] = ge(null), [J, O] = ge(null), p = Ot.useCallback(() => {
9
+ q(""), F(""), x(!1), m(""), $(""), N(""), G(/* @__PURE__ */ new Date()), Q(null), O(null);
10
10
  }, []);
11
- return /* @__PURE__ */ P(
12
- je.Provider,
11
+ return /* @__PURE__ */ S(
12
+ $e.Provider,
13
13
  {
14
14
  value: {
15
- apiUrl: z,
16
- clientId: V,
17
- identity: Z,
15
+ apiUrl: Y,
16
+ clientId: j,
17
+ identity: W,
18
18
  setIdentity: q,
19
- authRequestId: Y,
20
- setAuthRequestId: $,
19
+ authRequestId: X,
20
+ setAuthRequestId: F,
21
21
  isAuthenticating: M,
22
22
  setIsAuthenticating: x,
23
23
  codeVerifier: g,
24
24
  setCodeVerifier: m,
25
- codeChallenge: C,
26
- setCodeChallenge: j,
27
- authCode: B,
28
- setAuthCode: D,
29
- authRequestIdExpires: S,
30
- setAuthRequestIdExpires: H,
25
+ codeChallenge: T,
26
+ setCodeChallenge: $,
27
+ authCode: k,
28
+ setAuthCode: N,
29
+ authRequestIdExpires: D,
30
+ setAuthRequestIdExpires: G,
31
31
  token: K,
32
- setToken: G,
32
+ setToken: Q,
33
33
  authError: J,
34
34
  setAuthError: O,
35
- resetState: w
35
+ resetState: p
36
36
  },
37
- children: ie
37
+ children: ee
38
38
  }
39
39
  );
40
40
  };
41
- function $r(V) {
42
- const z = new Uint8Array(V);
43
- return window.crypto.getRandomValues(z), z;
41
+ function Fr(j) {
42
+ const Y = new Uint8Array(j);
43
+ return window.crypto.getRandomValues(Y), Y;
44
44
  }
45
- function Dt(V) {
46
- const z = Array.from(V);
47
- return btoa(String.fromCharCode(...z)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
45
+ function Pt(j) {
46
+ const Y = Array.from(j);
47
+ return btoa(String.fromCharCode(...Y)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
48
+ }
49
+ function it(j, Y) {
50
+ if (j)
51
+ try {
52
+ Y && Y.forEach(({ event: ee, handler: W }) => {
53
+ try {
54
+ j.removeEventListener(ee, W);
55
+ } catch (q) {
56
+ console.warn(`Failed to remove event listener for "${ee}":`, q);
57
+ }
58
+ }), j.onopen = null, j.onmessage = null, j.onerror = null, j.readyState !== EventSource.CLOSED && j.close();
59
+ } catch (ee) {
60
+ console.error("Error cleaning up EventSource:", ee);
61
+ }
48
62
  }
49
63
  const qe = {
50
64
  maxRetries: 3,
@@ -54,174 +68,194 @@ const qe = {
54
68
  };
55
69
  function Ur() {
56
70
  const {
57
- apiUrl: V,
58
- clientId: z,
59
- authRequestId: ie,
71
+ apiUrl: j,
72
+ clientId: Y,
73
+ authRequestId: ee,
60
74
  // results of the successful auth
61
- setIdentity: Z,
75
+ setIdentity: W,
62
76
  authCode: q,
63
- setAuthCode: Y,
77
+ setAuthCode: X,
64
78
  // results of the successful begin auth
65
- setAuthRequestId: $,
79
+ setAuthRequestId: F,
66
80
  setAuthRequestIdExpires: M,
67
81
  setCodeChallenge: x,
68
82
  setCodeVerifier: g,
69
83
  codeChallenge: m,
70
- codeVerifier: C,
71
- setIsAuthenticating: j,
72
- token: S,
73
- setToken: H,
74
- setAuthError: B
75
- } = We(je), D = at(null), K = at(""), G = at(0), J = at(null), O = Ie((c) => {
84
+ codeVerifier: T,
85
+ setIsAuthenticating: $,
86
+ token: D,
87
+ setToken: G,
88
+ setAuthError: k
89
+ } = Ze($e), N = Ve(null), K = Ve(""), Q = Ve(0), J = Ve(null), O = Ve(null), p = Ie((a) => {
76
90
  try {
77
- let a;
91
+ let s;
78
92
  try {
79
- a = JSON.parse(c.data);
93
+ s = JSON.parse(a.data);
80
94
  } catch {
81
- a = { type: c.type, message: c.data };
95
+ s = { type: a.type, message: a.data };
82
96
  }
83
- switch (c.type) {
97
+ switch (a.type) {
84
98
  case "start": {
85
- a.request_id && a.expires && ($(a.request_id), K.current = a.request_id, M(new Date(a.expires)));
99
+ s.request_id && s.expires && (F(s.request_id), K.current = s.request_id, M(new Date(s.expires)));
86
100
  break;
87
101
  }
88
102
  case "approved": {
89
- a.code && a.identity && a.approved && a.request_id && a.request_id == K.current && (D.current && (console.info("Closing SSE connection after approval"), D.current.close(), D.current = null), Y(a.code), Z(a.identity), j(!0));
103
+ if (s.code && s.identity && s.approved && s.request_id && s.request_id == K.current) {
104
+ const n = N.current, t = O.current;
105
+ n && (console.info("Closing SSE connection after approval"), it(n, t ? [
106
+ { event: "start", handler: t },
107
+ { event: "approved", handler: t }
108
+ ] : void 0), N.current = null), X(s.code), W(s.identity), $(!0);
109
+ }
90
110
  break;
91
111
  }
92
112
  default:
93
113
  break;
94
114
  }
95
- } catch (a) {
96
- console.error("Error parsing SSE message:", a);
115
+ } catch (s) {
116
+ console.error("Error parsing SSE message:", s);
97
117
  }
98
- }, [$, M, Y, Z, j]);
99
- Ke(() => {
118
+ }, [F, M, X, W, $]);
119
+ je(() => {
120
+ O.current = p;
121
+ }, [p]), je(() => {
100
122
  if (m)
101
123
  return;
102
- let c = !1;
124
+ let a = !1;
103
125
  return (async () => {
104
- const h = $r(64), n = await window.crypto.subtle.digest("SHA-256", h);
105
- if (!c) {
106
- const t = Dt(new Uint8Array(n)), p = Dt(h);
107
- x(t), g(p);
126
+ const n = Fr(64), t = await window.crypto.subtle.digest("SHA-256", n);
127
+ if (!a) {
128
+ const v = Pt(new Uint8Array(t)), o = Pt(n);
129
+ x(v), g(o);
108
130
  }
109
131
  })(), () => {
110
- c = !0;
132
+ a = !0;
111
133
  };
112
134
  }, [m, x, g]);
113
- const w = Ie((c) => {
114
- const a = qe.initialDelayMs * Math.pow(qe.backoffMultiplier, c);
115
- return Math.min(a, qe.maxDelayMs);
116
- }, []), b = Ie(() => {
117
- if (!(S || D.current)) {
118
- B(null);
135
+ const b = Ie((a) => {
136
+ const s = qe.initialDelayMs * Math.pow(qe.backoffMultiplier, a);
137
+ return Math.min(s, qe.maxDelayMs);
138
+ }, []), d = Ie(() => {
139
+ if (!(D || N.current)) {
140
+ k(null);
119
141
  try {
120
- const c = `${V}/v-plus/auth/start?cid=${z}`, a = new EventSource(c);
121
- D.current = a, a.onopen = () => {
122
- G.current = 0, B(null), console.info("SSE connection established");
123
- }, a.onmessage = O, a.addEventListener("start", O), a.addEventListener("approved", O), a.onerror = () => {
124
- if (D.current && (D.current.close(), D.current = null), S) {
142
+ const a = `${j}/v-plus/auth/start?cid=${Y}`, s = new EventSource(a);
143
+ N.current = s, s.onopen = () => {
144
+ Q.current = 0, k(null), console.info("SSE connection established");
145
+ }, s.onmessage = p, s.addEventListener("start", p), s.addEventListener("approved", p), s.onerror = () => {
146
+ const n = N.current, t = O.current;
147
+ if (n && (it(n, t ? [
148
+ { event: "start", handler: t },
149
+ { event: "approved", handler: t }
150
+ ] : void 0), N.current = null), D) {
125
151
  console.info("SSE connection closed - already authenticated");
126
152
  return;
127
153
  }
128
- const h = G.current;
129
- if (h < qe.maxRetries) {
130
- const n = w(h);
131
- G.current = h + 1, console.info(
132
- `SSE connection error. Retrying in ${n}ms (attempt ${h + 1}/${qe.maxRetries})`
133
- ), B(
134
- `Connection lost. Reconnecting... (attempt ${h + 1}/${qe.maxRetries})`
154
+ const v = Q.current;
155
+ if (v < qe.maxRetries) {
156
+ const o = b(v);
157
+ Q.current = v + 1, console.info(
158
+ `SSE connection error. Retrying in ${o}ms (attempt ${v + 1}/${qe.maxRetries})`
159
+ ), k(
160
+ `Connection lost. Reconnecting... (attempt ${v + 1}/${qe.maxRetries})`
135
161
  ), J.current = setTimeout(() => {
136
- b();
137
- }, n);
162
+ d();
163
+ }, o);
138
164
  } else
139
- console.error("SSE connection failed after maximum retry attempts"), B(
165
+ console.error("SSE connection failed after maximum retry attempts"), k(
140
166
  "Unable to establish connection. Please check your network and try again."
141
167
  );
142
168
  };
143
- } catch (c) {
144
- console.error("SSE connection setup failed:", c), B(`Connection setup failed: ${c}`), D.current = null;
169
+ } catch (a) {
170
+ console.error("SSE connection setup failed:", a), k(`Connection setup failed: ${a}`), N.current = null;
145
171
  }
146
172
  }
147
- }, [S, V, z, O, w, B]);
148
- Ke(() => {
149
- if (S) {
150
- D.current && (console.info("Closing existing SSE connection"), D.current.close(), D.current = null), J.current && (clearTimeout(J.current), J.current = null);
173
+ }, [D, j, Y, p, b, k]);
174
+ je(() => {
175
+ if (D) {
176
+ const a = N.current, s = O.current;
177
+ a && (console.info("Closing existing SSE connection"), it(a, s ? [
178
+ { event: "start", handler: s },
179
+ { event: "approved", handler: s }
180
+ ] : void 0), N.current = null), J.current && (clearTimeout(J.current), J.current = null);
151
181
  return;
152
182
  }
153
- if (!(!m || D.current))
154
- return b(), () => {
155
- D.current && (D.current.close(), D.current = null), J.current && (clearTimeout(J.current), J.current = null), G.current = 0;
183
+ if (!(!m || N.current))
184
+ return d(), () => {
185
+ const a = N.current, s = O.current;
186
+ a && (console.info("Cleaning up SSE connection on unmount"), it(a, s ? [
187
+ { event: "start", handler: s },
188
+ { event: "approved", handler: s }
189
+ ] : void 0), N.current = null), J.current && (clearTimeout(J.current), J.current = null), Q.current = 0;
156
190
  };
157
- }, [S, m, b]);
158
- const d = Ie(async (c, a, h) => {
191
+ }, [D, m, d, p]);
192
+ const w = Ie(async (a, s, n) => {
159
193
  try {
160
- const t = await (await fetch(`${V}/v-plus/auth/token?cid=${z}`, {
194
+ const v = await (await fetch(`${j}/v-plus/auth/token?cid=${Y}`, {
161
195
  method: "POST",
162
196
  headers: {
163
197
  "Content-Type": "application/json"
164
198
  },
165
199
  body: JSON.stringify({
166
- auth_code: c,
167
- request_id: a,
168
- code_verifier: h
200
+ auth_code: a,
201
+ request_id: s,
202
+ code_verifier: n
169
203
  })
170
204
  })).json();
171
- if (t.token)
172
- H(t.token), j(!1);
205
+ if (v.token)
206
+ G(v.token), $(!1);
173
207
  else
174
208
  throw new Error("No token received");
175
- } catch (n) {
176
- console.error("Error fetching token:", n), j(!1), B(`Failed to obtain auth token: ${n}`), Y("");
209
+ } catch (t) {
210
+ console.error("Error fetching token:", t), $(!1), k(`Failed to obtain auth token: ${t}`), X("");
177
211
  }
178
- }, [V, z, H, j, B, Y]);
179
- return Ke(() => {
180
- q && d(q, ie, C);
181
- }, [q, C, ie, d]), null;
212
+ }, [j, Y, G, $, k, X]);
213
+ return je(() => {
214
+ q && w(q, ee, T);
215
+ }, [q, T, ee, w]), null;
182
216
  }
183
- const Kr = ({
184
- clientId: V,
185
- apiUrl: z,
186
- children: ie
187
- }) => /* @__PURE__ */ he(jr, { apiUrl: z, clientId: V, children: [
188
- /* @__PURE__ */ P(Ur, {}),
189
- ie
217
+ const Wr = ({
218
+ clientId: j,
219
+ apiUrl: Y,
220
+ children: ee
221
+ }) => /* @__PURE__ */ he($r, { apiUrl: Y, clientId: j, children: [
222
+ /* @__PURE__ */ S(Ur, {}),
223
+ ee
190
224
  ] });
191
- var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Te = {}, Qe = { exports: {} };
192
- Qe.exports;
193
- var Lt;
194
- function Fr() {
195
- return Lt || (Lt = 1, function(V, z) {
196
- var ie = 200, Z = "__lodash_hash_undefined__", q = 1, Y = 2, $ = 9007199254740991, M = "[object Arguments]", x = "[object Array]", g = "[object AsyncFunction]", m = "[object Boolean]", C = "[object Date]", j = "[object Error]", S = "[object Function]", H = "[object GeneratorFunction]", B = "[object Map]", D = "[object Number]", K = "[object Null]", G = "[object Object]", J = "[object Promise]", O = "[object Proxy]", w = "[object RegExp]", b = "[object Set]", d = "[object String]", c = "[object Symbol]", a = "[object Undefined]", h = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", p = "[object Float32Array]", o = "[object Float64Array]", y = "[object Int8Array]", R = "[object Int16Array]", T = "[object Int32Array]", W = "[object Uint8Array]", U = "[object Uint8ClampedArray]", re = "[object Uint16Array]", oe = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, Q = {};
197
- Q[p] = Q[o] = Q[y] = Q[R] = Q[T] = Q[W] = Q[U] = Q[re] = Q[oe] = !0, Q[M] = Q[x] = Q[n] = Q[m] = Q[t] = Q[C] = Q[j] = Q[S] = Q[B] = Q[D] = Q[G] = Q[w] = Q[b] = Q[d] = Q[h] = !1;
198
- var se = typeof it == "object" && it && it.Object === Object && it, _e = typeof self == "object" && self && self.Object === Object && self, s = se || _e || Function("return this")(), f = z && !z.nodeType && z, i = f && !0 && V && !V.nodeType && V, u = i && i.exports === f, v = u && se.process, _ = function() {
225
+ var ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ce = {}, Ke = { exports: {} };
226
+ Ke.exports;
227
+ var kt;
228
+ function Hr() {
229
+ return kt || (kt = 1, function(j, Y) {
230
+ var ee = 200, W = "__lodash_hash_undefined__", q = 1, X = 2, F = 9007199254740991, M = "[object Arguments]", x = "[object Array]", g = "[object AsyncFunction]", m = "[object Boolean]", T = "[object Date]", $ = "[object Error]", D = "[object Function]", G = "[object GeneratorFunction]", k = "[object Map]", N = "[object Number]", K = "[object Null]", Q = "[object Object]", J = "[object Promise]", O = "[object Proxy]", p = "[object RegExp]", b = "[object Set]", d = "[object String]", w = "[object Symbol]", a = "[object Undefined]", s = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", v = "[object Float32Array]", o = "[object Float64Array]", y = "[object Int8Array]", R = "[object Int16Array]", C = "[object Int32Array]", Z = "[object Uint8Array]", U = "[object Uint8ClampedArray]", ne = "[object Uint16Array]", oe = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, V = {};
231
+ V[v] = V[o] = V[y] = V[R] = V[C] = V[Z] = V[U] = V[ne] = V[oe] = !0, V[M] = V[x] = V[n] = V[m] = V[t] = V[T] = V[$] = V[D] = V[k] = V[N] = V[Q] = V[p] = V[b] = V[d] = V[s] = !1;
232
+ var se = typeof ot == "object" && ot && ot.Object === Object && ot, _e = typeof self == "object" && self && self.Object === Object && self, f = se || _e || Function("return this")(), u = Y && !Y.nodeType && Y, i = u && !0 && j && !j.nodeType && j, l = i && i.exports === u, h = l && se.process, _ = function() {
199
233
  try {
200
- return v && v.binding && v.binding("util");
234
+ return h && h.binding && h.binding("util");
201
235
  } catch {
202
236
  }
203
237
  }(), I = _ && _.isTypedArray;
204
238
  function E(e, r) {
205
- for (var l = -1, A = e == null ? 0 : e.length, te = 0, F = []; ++l < A; ) {
206
- var ae = e[l];
207
- r(ae, l, e) && (F[te++] = ae);
239
+ for (var c = -1, A = e == null ? 0 : e.length, re = 0, H = []; ++c < A; ) {
240
+ var ie = e[c];
241
+ r(ie, c, e) && (H[re++] = ie);
208
242
  }
209
- return F;
243
+ return H;
210
244
  }
211
- function X(e, r) {
212
- for (var l = -1, A = r.length, te = e.length; ++l < A; )
213
- e[te + l] = r[l];
245
+ function z(e, r) {
246
+ for (var c = -1, A = r.length, re = e.length; ++c < A; )
247
+ e[re + c] = r[c];
214
248
  return e;
215
249
  }
216
- function ee(e, r) {
217
- for (var l = -1, A = e == null ? 0 : e.length; ++l < A; )
218
- if (r(e[l], l, e))
250
+ function te(e, r) {
251
+ for (var c = -1, A = e == null ? 0 : e.length; ++c < A; )
252
+ if (r(e[c], c, e))
219
253
  return !0;
220
254
  return !1;
221
255
  }
222
- function N(e, r) {
223
- for (var l = -1, A = Array(e); ++l < e; )
224
- A[l] = r(l);
256
+ function B(e, r) {
257
+ for (var c = -1, A = Array(e); ++c < e; )
258
+ A[c] = r(c);
225
259
  return A;
226
260
  }
227
261
  function le(e) {
@@ -236,235 +270,235 @@ function Fr() {
236
270
  return e == null ? void 0 : e[r];
237
271
  }
238
272
  function Be(e) {
239
- var r = -1, l = Array(e.size);
240
- return e.forEach(function(A, te) {
241
- l[++r] = [te, A];
242
- }), l;
243
- }
244
- function Ze(e, r) {
245
- return function(l) {
246
- return e(r(l));
273
+ var r = -1, c = Array(e.size);
274
+ return e.forEach(function(A, re) {
275
+ c[++r] = [re, A];
276
+ }), c;
277
+ }
278
+ function Je(e, r) {
279
+ return function(c) {
280
+ return e(r(c));
247
281
  };
248
282
  }
249
- function $e(e) {
250
- var r = -1, l = Array(e.size);
283
+ function Fe(e) {
284
+ var r = -1, c = Array(e.size);
251
285
  return e.forEach(function(A) {
252
- l[++r] = A;
253
- }), l;
286
+ c[++r] = A;
287
+ }), c;
254
288
  }
255
- var Ne = Array.prototype, jt = Function.prototype, Je = Object.prototype, ot = s["__core-js_shared__"], dt = jt.toString, be = Je.hasOwnProperty, gt = function() {
256
- var e = /[^.]+$/.exec(ot && ot.keys && ot.keys.IE_PROTO || "");
289
+ var Ne = Array.prototype, $t = Function.prototype, Ye = Object.prototype, st = f["__core-js_shared__"], gt = $t.toString, be = Ye.hasOwnProperty, pt = function() {
290
+ var e = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
257
291
  return e ? "Symbol(src)_1." + e : "";
258
- }(), pt = Je.toString, $t = RegExp(
259
- "^" + dt.call(be).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
260
- ), yt = u ? s.Buffer : void 0, Ye = s.Symbol, xt = s.Uint8Array, wt = Je.propertyIsEnumerable, Ut = Ne.splice, Re = Ye ? Ye.toStringTag : void 0, bt = Object.getOwnPropertySymbols, Ft = yt ? yt.isBuffer : void 0, Ht = Ze(Object.keys, Object), st = Oe(s, "DataView"), Ue = Oe(s, "Map"), ft = Oe(s, "Promise"), ut = Oe(s, "Set"), lt = Oe(s, "WeakMap"), Fe = Oe(Object, "create"), Gt = De(st), Qt = De(Ue), Vt = De(ft), Kt = De(ut), Wt = De(lt), _t = Ye ? Ye.prototype : void 0, ct = _t ? _t.valueOf : void 0;
261
- function Pe(e) {
262
- var r = -1, l = e == null ? 0 : e.length;
263
- for (this.clear(); ++r < l; ) {
292
+ }(), yt = Ye.toString, Ft = RegExp(
293
+ "^" + gt.call(be).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
294
+ ), xt = l ? f.Buffer : void 0, Xe = f.Symbol, wt = f.Uint8Array, bt = Ye.propertyIsEnumerable, Ut = Ne.splice, Re = Xe ? Xe.toStringTag : void 0, _t = Object.getOwnPropertySymbols, Ht = xt ? xt.isBuffer : void 0, Gt = Je(Object.keys, Object), ft = Oe(f, "DataView"), Ue = Oe(f, "Map"), ut = Oe(f, "Promise"), lt = Oe(f, "Set"), ct = Oe(f, "WeakMap"), He = Oe(Object, "create"), Qt = Le(ft), Vt = Le(Ue), Kt = Le(ut), Wt = Le(lt), Zt = Le(ct), mt = Xe ? Xe.prototype : void 0, vt = mt ? mt.valueOf : void 0;
295
+ function Se(e) {
296
+ var r = -1, c = e == null ? 0 : e.length;
297
+ for (this.clear(); ++r < c; ) {
264
298
  var A = e[r];
265
299
  this.set(A[0], A[1]);
266
300
  }
267
301
  }
268
- function Zt() {
269
- this.__data__ = Fe ? Fe(null) : {}, this.size = 0;
302
+ function Jt() {
303
+ this.__data__ = He ? He(null) : {}, this.size = 0;
270
304
  }
271
- function Jt(e) {
305
+ function Yt(e) {
272
306
  var r = this.has(e) && delete this.__data__[e];
273
307
  return this.size -= r ? 1 : 0, r;
274
308
  }
275
- function Yt(e) {
309
+ function Xt(e) {
276
310
  var r = this.__data__;
277
- if (Fe) {
278
- var l = r[e];
279
- return l === Z ? void 0 : l;
311
+ if (He) {
312
+ var c = r[e];
313
+ return c === W ? void 0 : c;
280
314
  }
281
315
  return be.call(r, e) ? r[e] : void 0;
282
316
  }
283
- function Xt(e) {
317
+ function zt(e) {
284
318
  var r = this.__data__;
285
- return Fe ? r[e] !== void 0 : be.call(r, e);
319
+ return He ? r[e] !== void 0 : be.call(r, e);
286
320
  }
287
- function zt(e, r) {
288
- var l = this.__data__;
289
- return this.size += this.has(e) ? 0 : 1, l[e] = Fe && r === void 0 ? Z : r, this;
321
+ function er(e, r) {
322
+ var c = this.__data__;
323
+ return this.size += this.has(e) ? 0 : 1, c[e] = He && r === void 0 ? W : r, this;
290
324
  }
291
- Pe.prototype.clear = Zt, Pe.prototype.delete = Jt, Pe.prototype.get = Yt, Pe.prototype.has = Xt, Pe.prototype.set = zt;
325
+ Se.prototype.clear = Jt, Se.prototype.delete = Yt, Se.prototype.get = Xt, Se.prototype.has = zt, Se.prototype.set = er;
292
326
  function me(e) {
293
- var r = -1, l = e == null ? 0 : e.length;
294
- for (this.clear(); ++r < l; ) {
327
+ var r = -1, c = e == null ? 0 : e.length;
328
+ for (this.clear(); ++r < c; ) {
295
329
  var A = e[r];
296
330
  this.set(A[0], A[1]);
297
331
  }
298
332
  }
299
- function er() {
333
+ function tr() {
300
334
  this.__data__ = [], this.size = 0;
301
335
  }
302
- function tr(e) {
303
- var r = this.__data__, l = ze(r, e);
304
- if (l < 0)
336
+ function rr(e) {
337
+ var r = this.__data__, c = et(r, e);
338
+ if (c < 0)
305
339
  return !1;
306
340
  var A = r.length - 1;
307
- return l == A ? r.pop() : Ut.call(r, l, 1), --this.size, !0;
308
- }
309
- function rr(e) {
310
- var r = this.__data__, l = ze(r, e);
311
- return l < 0 ? void 0 : r[l][1];
341
+ return c == A ? r.pop() : Ut.call(r, c, 1), --this.size, !0;
312
342
  }
313
343
  function nr(e) {
314
- return ze(this.__data__, e) > -1;
344
+ var r = this.__data__, c = et(r, e);
345
+ return c < 0 ? void 0 : r[c][1];
315
346
  }
316
- function ar(e, r) {
317
- var l = this.__data__, A = ze(l, e);
318
- return A < 0 ? (++this.size, l.push([e, r])) : l[A][1] = r, this;
347
+ function ar(e) {
348
+ return et(this.__data__, e) > -1;
319
349
  }
320
- me.prototype.clear = er, me.prototype.delete = tr, me.prototype.get = rr, me.prototype.has = nr, me.prototype.set = ar;
321
- function Se(e) {
322
- var r = -1, l = e == null ? 0 : e.length;
323
- for (this.clear(); ++r < l; ) {
350
+ function ir(e, r) {
351
+ var c = this.__data__, A = et(c, e);
352
+ return A < 0 ? (++this.size, c.push([e, r])) : c[A][1] = r, this;
353
+ }
354
+ me.prototype.clear = tr, me.prototype.delete = rr, me.prototype.get = nr, me.prototype.has = ar, me.prototype.set = ir;
355
+ function De(e) {
356
+ var r = -1, c = e == null ? 0 : e.length;
357
+ for (this.clear(); ++r < c; ) {
324
358
  var A = e[r];
325
359
  this.set(A[0], A[1]);
326
360
  }
327
361
  }
328
- function ir() {
362
+ function or() {
329
363
  this.size = 0, this.__data__ = {
330
- hash: new Pe(),
364
+ hash: new Se(),
331
365
  map: new (Ue || me)(),
332
- string: new Pe()
366
+ string: new Se()
333
367
  };
334
368
  }
335
- function or(e) {
336
- var r = et(this, e).delete(e);
337
- return this.size -= r ? 1 : 0, r;
338
- }
339
369
  function sr(e) {
340
- return et(this, e).get(e);
370
+ var r = tt(this, e).delete(e);
371
+ return this.size -= r ? 1 : 0, r;
341
372
  }
342
373
  function fr(e) {
343
- return et(this, e).has(e);
374
+ return tt(this, e).get(e);
344
375
  }
345
- function ur(e, r) {
346
- var l = et(this, e), A = l.size;
347
- return l.set(e, r), this.size += l.size == A ? 0 : 1, this;
376
+ function ur(e) {
377
+ return tt(this, e).has(e);
348
378
  }
349
- Se.prototype.clear = ir, Se.prototype.delete = or, Se.prototype.get = sr, Se.prototype.has = fr, Se.prototype.set = ur;
350
- function Xe(e) {
351
- var r = -1, l = e == null ? 0 : e.length;
352
- for (this.__data__ = new Se(); ++r < l; )
353
- this.add(e[r]);
379
+ function lr(e, r) {
380
+ var c = tt(this, e), A = c.size;
381
+ return c.set(e, r), this.size += c.size == A ? 0 : 1, this;
354
382
  }
355
- function lr(e) {
356
- return this.__data__.set(e, Z), this;
383
+ De.prototype.clear = or, De.prototype.delete = sr, De.prototype.get = fr, De.prototype.has = ur, De.prototype.set = lr;
384
+ function ze(e) {
385
+ var r = -1, c = e == null ? 0 : e.length;
386
+ for (this.__data__ = new De(); ++r < c; )
387
+ this.add(e[r]);
357
388
  }
358
389
  function cr(e) {
390
+ return this.__data__.set(e, W), this;
391
+ }
392
+ function vr(e) {
359
393
  return this.__data__.has(e);
360
394
  }
361
- Xe.prototype.add = Xe.prototype.push = lr, Xe.prototype.has = cr;
362
- function Ce(e) {
395
+ ze.prototype.add = ze.prototype.push = cr, ze.prototype.has = vr;
396
+ function Te(e) {
363
397
  var r = this.__data__ = new me(e);
364
398
  this.size = r.size;
365
399
  }
366
- function vr() {
400
+ function hr() {
367
401
  this.__data__ = new me(), this.size = 0;
368
402
  }
369
- function hr(e) {
370
- var r = this.__data__, l = r.delete(e);
371
- return this.size = r.size, l;
372
- }
373
403
  function dr(e) {
374
- return this.__data__.get(e);
404
+ var r = this.__data__, c = r.delete(e);
405
+ return this.size = r.size, c;
375
406
  }
376
407
  function gr(e) {
377
- return this.__data__.has(e);
408
+ return this.__data__.get(e);
378
409
  }
379
- function pr(e, r) {
380
- var l = this.__data__;
381
- if (l instanceof me) {
382
- var A = l.__data__;
383
- if (!Ue || A.length < ie - 1)
384
- return A.push([e, r]), this.size = ++l.size, this;
385
- l = this.__data__ = new Se(A);
386
- }
387
- return l.set(e, r), this.size = l.size, this;
410
+ function pr(e) {
411
+ return this.__data__.has(e);
388
412
  }
389
- Ce.prototype.clear = vr, Ce.prototype.delete = hr, Ce.prototype.get = dr, Ce.prototype.has = gr, Ce.prototype.set = pr;
390
413
  function yr(e, r) {
391
- var l = tt(e), A = !l && Dr(e), te = !l && !A && vt(e), F = !l && !A && !te && Pt(e), ae = l || A || te || F, fe = ae ? N(e.length, String) : [], ve = fe.length;
392
- for (var ne in e)
393
- be.call(e, ne) && !(ae && // Safari 9 has enumerable `arguments.length` in strict mode.
394
- (ne == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
395
- te && (ne == "offset" || ne == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
396
- F && (ne == "buffer" || ne == "byteLength" || ne == "byteOffset") || // Skip index properties.
397
- Er(ne, ve))) && fe.push(ne);
414
+ var c = this.__data__;
415
+ if (c instanceof me) {
416
+ var A = c.__data__;
417
+ if (!Ue || A.length < ee - 1)
418
+ return A.push([e, r]), this.size = ++c.size, this;
419
+ c = this.__data__ = new De(A);
420
+ }
421
+ return c.set(e, r), this.size = c.size, this;
422
+ }
423
+ Te.prototype.clear = hr, Te.prototype.delete = dr, Te.prototype.get = gr, Te.prototype.has = pr, Te.prototype.set = yr;
424
+ function xr(e, r) {
425
+ var c = rt(e), A = !c && Pr(e), re = !c && !A && ht(e), H = !c && !A && !re && Dt(e), ie = c || A || re || H, fe = ie ? B(e.length, String) : [], ve = fe.length;
426
+ for (var ae in e)
427
+ be.call(e, ae) && !(ie && // Safari 9 has enumerable `arguments.length` in strict mode.
428
+ (ae == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
429
+ re && (ae == "offset" || ae == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
430
+ H && (ae == "buffer" || ae == "byteLength" || ae == "byteOffset") || // Skip index properties.
431
+ Ir(ae, ve))) && fe.push(ae);
398
432
  return fe;
399
433
  }
400
- function ze(e, r) {
401
- for (var l = e.length; l--; )
402
- if (Mt(e[l][0], r))
403
- return l;
434
+ function et(e, r) {
435
+ for (var c = e.length; c--; )
436
+ if (Et(e[c][0], r))
437
+ return c;
404
438
  return -1;
405
439
  }
406
- function xr(e, r, l) {
440
+ function wr(e, r, c) {
407
441
  var A = r(e);
408
- return tt(e) ? A : X(A, l(e));
442
+ return rt(e) ? A : z(A, c(e));
409
443
  }
410
- function He(e) {
411
- return e == null ? e === void 0 ? a : K : Re && Re in Object(e) ? Cr(e) : Sr(e);
444
+ function Ge(e) {
445
+ return e == null ? e === void 0 ? a : K : Re && Re in Object(e) ? Mr(e) : Lr(e);
412
446
  }
413
- function mt(e) {
414
- return Ge(e) && He(e) == M;
447
+ function At(e) {
448
+ return Qe(e) && Ge(e) == M;
415
449
  }
416
- function At(e, r, l, A, te) {
417
- return e === r ? !0 : e == null || r == null || !Ge(e) && !Ge(r) ? e !== e && r !== r : wr(e, r, l, A, At, te);
450
+ function Ct(e, r, c, A, re) {
451
+ return e === r ? !0 : e == null || r == null || !Qe(e) && !Qe(r) ? e !== e && r !== r : br(e, r, c, A, Ct, re);
418
452
  }
419
- function wr(e, r, l, A, te, F) {
420
- var ae = tt(e), fe = tt(r), ve = ae ? x : Me(e), ne = fe ? x : Me(r);
421
- ve = ve == M ? G : ve, ne = ne == M ? G : ne;
422
- var pe = ve == G, we = ne == G, de = ve == ne;
423
- if (de && vt(e)) {
424
- if (!vt(r))
453
+ function br(e, r, c, A, re, H) {
454
+ var ie = rt(e), fe = rt(r), ve = ie ? x : Me(e), ae = fe ? x : Me(r);
455
+ ve = ve == M ? Q : ve, ae = ae == M ? Q : ae;
456
+ var pe = ve == Q, we = ae == Q, de = ve == ae;
457
+ if (de && ht(e)) {
458
+ if (!ht(r))
425
459
  return !1;
426
- ae = !0, pe = !1;
460
+ ie = !0, pe = !1;
427
461
  }
428
462
  if (de && !pe)
429
- return F || (F = new Ce()), ae || Pt(e) ? Tt(e, r, l, A, te, F) : Ar(e, r, ve, l, A, te, F);
430
- if (!(l & q)) {
463
+ return H || (H = new Te()), ie || Dt(e) ? Tt(e, r, c, A, re, H) : Cr(e, r, ve, c, A, re, H);
464
+ if (!(c & q)) {
431
465
  var ye = pe && be.call(e, "__wrapped__"), xe = we && be.call(r, "__wrapped__");
432
466
  if (ye || xe) {
433
467
  var Ee = ye ? e.value() : e, Ae = xe ? r.value() : r;
434
- return F || (F = new Ce()), te(Ee, Ae, l, A, F);
468
+ return H || (H = new Te()), re(Ee, Ae, c, A, H);
435
469
  }
436
470
  }
437
- return de ? (F || (F = new Ce()), Tr(e, r, l, A, te, F)) : !1;
438
- }
439
- function br(e) {
440
- if (!Rt(e) || Rr(e))
441
- return !1;
442
- var r = Et(e) ? $t : k;
443
- return r.test(De(e));
471
+ return de ? (H || (H = new Te()), Tr(e, r, c, A, re, H)) : !1;
444
472
  }
445
473
  function _r(e) {
446
- return Ge(e) && It(e.length) && !!Q[He(e)];
474
+ if (!St(e) || Sr(e))
475
+ return !1;
476
+ var r = It(e) ? Ft : P;
477
+ return r.test(Le(e));
447
478
  }
448
479
  function mr(e) {
449
- if (!Pr(e))
450
- return Ht(e);
480
+ return Qe(e) && Rt(e.length) && !!V[Ge(e)];
481
+ }
482
+ function Ar(e) {
483
+ if (!Dr(e))
484
+ return Gt(e);
451
485
  var r = [];
452
- for (var l in Object(e))
453
- be.call(e, l) && l != "constructor" && r.push(l);
486
+ for (var c in Object(e))
487
+ be.call(e, c) && c != "constructor" && r.push(c);
454
488
  return r;
455
489
  }
456
- function Tt(e, r, l, A, te, F) {
457
- var ae = l & q, fe = e.length, ve = r.length;
458
- if (fe != ve && !(ae && ve > fe))
490
+ function Tt(e, r, c, A, re, H) {
491
+ var ie = c & q, fe = e.length, ve = r.length;
492
+ if (fe != ve && !(ie && ve > fe))
459
493
  return !1;
460
- var ne = F.get(e);
461
- if (ne && F.get(r))
462
- return ne == r;
463
- var pe = -1, we = !0, de = l & Y ? new Xe() : void 0;
464
- for (F.set(e, r), F.set(r, e); ++pe < fe; ) {
494
+ var ae = H.get(e);
495
+ if (ae && H.get(r))
496
+ return ae == r;
497
+ var pe = -1, we = !0, de = c & X ? new ze() : void 0;
498
+ for (H.set(e, r), H.set(r, e); ++pe < fe; ) {
465
499
  var ye = e[pe], xe = r[pe];
466
500
  if (A)
467
- var Ee = ae ? A(xe, ye, pe, r, e, F) : A(ye, xe, pe, e, r, F);
501
+ var Ee = ie ? A(xe, ye, pe, r, e, H) : A(ye, xe, pe, e, r, H);
468
502
  if (Ee !== void 0) {
469
503
  if (Ee)
470
504
  continue;
@@ -472,150 +506,150 @@ function Fr() {
472
506
  break;
473
507
  }
474
508
  if (de) {
475
- if (!ee(r, function(Ae, Le) {
476
- if (!ce(de, Le) && (ye === Ae || te(ye, Ae, l, A, F)))
477
- return de.push(Le);
509
+ if (!te(r, function(Ae, Pe) {
510
+ if (!ce(de, Pe) && (ye === Ae || re(ye, Ae, c, A, H)))
511
+ return de.push(Pe);
478
512
  })) {
479
513
  we = !1;
480
514
  break;
481
515
  }
482
- } else if (!(ye === xe || te(ye, xe, l, A, F))) {
516
+ } else if (!(ye === xe || re(ye, xe, c, A, H))) {
483
517
  we = !1;
484
518
  break;
485
519
  }
486
520
  }
487
- return F.delete(e), F.delete(r), we;
521
+ return H.delete(e), H.delete(r), we;
488
522
  }
489
- function Ar(e, r, l, A, te, F, ae) {
490
- switch (l) {
523
+ function Cr(e, r, c, A, re, H, ie) {
524
+ switch (c) {
491
525
  case t:
492
526
  if (e.byteLength != r.byteLength || e.byteOffset != r.byteOffset)
493
527
  return !1;
494
528
  e = e.buffer, r = r.buffer;
495
529
  case n:
496
- return !(e.byteLength != r.byteLength || !F(new xt(e), new xt(r)));
530
+ return !(e.byteLength != r.byteLength || !H(new wt(e), new wt(r)));
497
531
  case m:
498
- case C:
499
- case D:
500
- return Mt(+e, +r);
501
- case j:
532
+ case T:
533
+ case N:
534
+ return Et(+e, +r);
535
+ case $:
502
536
  return e.name == r.name && e.message == r.message;
503
- case w:
537
+ case p:
504
538
  case d:
505
539
  return e == r + "";
506
- case B:
540
+ case k:
507
541
  var fe = Be;
508
542
  case b:
509
543
  var ve = A & q;
510
- if (fe || (fe = $e), e.size != r.size && !ve)
544
+ if (fe || (fe = Fe), e.size != r.size && !ve)
511
545
  return !1;
512
- var ne = ae.get(e);
513
- if (ne)
514
- return ne == r;
515
- A |= Y, ae.set(e, r);
516
- var pe = Tt(fe(e), fe(r), A, te, F, ae);
517
- return ae.delete(e), pe;
518
- case c:
519
- if (ct)
520
- return ct.call(e) == ct.call(r);
546
+ var ae = ie.get(e);
547
+ if (ae)
548
+ return ae == r;
549
+ A |= X, ie.set(e, r);
550
+ var pe = Tt(fe(e), fe(r), A, re, H, ie);
551
+ return ie.delete(e), pe;
552
+ case w:
553
+ if (vt)
554
+ return vt.call(e) == vt.call(r);
521
555
  }
522
556
  return !1;
523
557
  }
524
- function Tr(e, r, l, A, te, F) {
525
- var ae = l & q, fe = Ct(e), ve = fe.length, ne = Ct(r), pe = ne.length;
526
- if (ve != pe && !ae)
558
+ function Tr(e, r, c, A, re, H) {
559
+ var ie = c & q, fe = Mt(e), ve = fe.length, ae = Mt(r), pe = ae.length;
560
+ if (ve != pe && !ie)
527
561
  return !1;
528
562
  for (var we = ve; we--; ) {
529
563
  var de = fe[we];
530
- if (!(ae ? de in r : be.call(r, de)))
564
+ if (!(ie ? de in r : be.call(r, de)))
531
565
  return !1;
532
566
  }
533
- var ye = F.get(e);
534
- if (ye && F.get(r))
567
+ var ye = H.get(e);
568
+ if (ye && H.get(r))
535
569
  return ye == r;
536
570
  var xe = !0;
537
- F.set(e, r), F.set(r, e);
538
- for (var Ee = ae; ++we < ve; ) {
571
+ H.set(e, r), H.set(r, e);
572
+ for (var Ee = ie; ++we < ve; ) {
539
573
  de = fe[we];
540
- var Ae = e[de], Le = r[de];
574
+ var Ae = e[de], Pe = r[de];
541
575
  if (A)
542
- var St = ae ? A(Le, Ae, de, r, e, F) : A(Ae, Le, de, e, r, F);
543
- if (!(St === void 0 ? Ae === Le || te(Ae, Le, l, A, F) : St)) {
576
+ var Lt = ie ? A(Pe, Ae, de, r, e, H) : A(Ae, Pe, de, e, r, H);
577
+ if (!(Lt === void 0 ? Ae === Pe || re(Ae, Pe, c, A, H) : Lt)) {
544
578
  xe = !1;
545
579
  break;
546
580
  }
547
581
  Ee || (Ee = de == "constructor");
548
582
  }
549
583
  if (xe && !Ee) {
550
- var rt = e.constructor, nt = r.constructor;
551
- rt != nt && "constructor" in e && "constructor" in r && !(typeof rt == "function" && rt instanceof rt && typeof nt == "function" && nt instanceof nt) && (xe = !1);
584
+ var nt = e.constructor, at = r.constructor;
585
+ nt != at && "constructor" in e && "constructor" in r && !(typeof nt == "function" && nt instanceof nt && typeof at == "function" && at instanceof at) && (xe = !1);
552
586
  }
553
- return F.delete(e), F.delete(r), xe;
587
+ return H.delete(e), H.delete(r), xe;
554
588
  }
555
- function Ct(e) {
556
- return xr(e, Br, Mr);
589
+ function Mt(e) {
590
+ return wr(e, Nr, Er);
557
591
  }
558
- function et(e, r) {
559
- var l = e.__data__;
560
- return Ir(r) ? l[typeof r == "string" ? "string" : "hash"] : l.map;
592
+ function tt(e, r) {
593
+ var c = e.__data__;
594
+ return Rr(r) ? c[typeof r == "string" ? "string" : "hash"] : c.map;
561
595
  }
562
596
  function Oe(e, r) {
563
- var l = ke(e, r);
564
- return br(l) ? l : void 0;
597
+ var c = ke(e, r);
598
+ return _r(c) ? c : void 0;
565
599
  }
566
- function Cr(e) {
567
- var r = be.call(e, Re), l = e[Re];
600
+ function Mr(e) {
601
+ var r = be.call(e, Re), c = e[Re];
568
602
  try {
569
603
  e[Re] = void 0;
570
604
  var A = !0;
571
605
  } catch {
572
606
  }
573
- var te = pt.call(e);
574
- return A && (r ? e[Re] = l : delete e[Re]), te;
607
+ var re = yt.call(e);
608
+ return A && (r ? e[Re] = c : delete e[Re]), re;
575
609
  }
576
- var Mr = bt ? function(e) {
577
- return e == null ? [] : (e = Object(e), E(bt(e), function(r) {
578
- return wt.call(e, r);
610
+ var Er = _t ? function(e) {
611
+ return e == null ? [] : (e = Object(e), E(_t(e), function(r) {
612
+ return bt.call(e, r);
579
613
  }));
580
- } : Nr, Me = He;
581
- (st && Me(new st(new ArrayBuffer(1))) != t || Ue && Me(new Ue()) != B || ft && Me(ft.resolve()) != J || ut && Me(new ut()) != b || lt && Me(new lt()) != h) && (Me = function(e) {
582
- var r = He(e), l = r == G ? e.constructor : void 0, A = l ? De(l) : "";
614
+ } : Or, Me = Ge;
615
+ (ft && Me(new ft(new ArrayBuffer(1))) != t || Ue && Me(new Ue()) != k || ut && Me(ut.resolve()) != J || lt && Me(new lt()) != b || ct && Me(new ct()) != s) && (Me = function(e) {
616
+ var r = Ge(e), c = r == Q ? e.constructor : void 0, A = c ? Le(c) : "";
583
617
  if (A)
584
618
  switch (A) {
585
- case Gt:
586
- return t;
587
619
  case Qt:
588
- return B;
620
+ return t;
589
621
  case Vt:
590
- return J;
622
+ return k;
591
623
  case Kt:
592
- return b;
624
+ return J;
593
625
  case Wt:
594
- return h;
626
+ return b;
627
+ case Zt:
628
+ return s;
595
629
  }
596
630
  return r;
597
631
  });
598
- function Er(e, r) {
599
- return r = r ?? $, !!r && (typeof e == "number" || ue.test(e)) && e > -1 && e % 1 == 0 && e < r;
632
+ function Ir(e, r) {
633
+ return r = r ?? F, !!r && (typeof e == "number" || ue.test(e)) && e > -1 && e % 1 == 0 && e < r;
600
634
  }
601
- function Ir(e) {
635
+ function Rr(e) {
602
636
  var r = typeof e;
603
637
  return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
604
638
  }
605
- function Rr(e) {
606
- return !!gt && gt in e;
639
+ function Sr(e) {
640
+ return !!pt && pt in e;
607
641
  }
608
- function Pr(e) {
609
- var r = e && e.constructor, l = typeof r == "function" && r.prototype || Je;
610
- return e === l;
642
+ function Dr(e) {
643
+ var r = e && e.constructor, c = typeof r == "function" && r.prototype || Ye;
644
+ return e === c;
611
645
  }
612
- function Sr(e) {
613
- return pt.call(e);
646
+ function Lr(e) {
647
+ return yt.call(e);
614
648
  }
615
- function De(e) {
649
+ function Le(e) {
616
650
  if (e != null) {
617
651
  try {
618
- return dt.call(e);
652
+ return gt.call(e);
619
653
  } catch {
620
654
  }
621
655
  try {
@@ -625,263 +659,263 @@ function Fr() {
625
659
  }
626
660
  return "";
627
661
  }
628
- function Mt(e, r) {
662
+ function Et(e, r) {
629
663
  return e === r || e !== e && r !== r;
630
664
  }
631
- var Dr = mt(/* @__PURE__ */ function() {
665
+ var Pr = At(/* @__PURE__ */ function() {
632
666
  return arguments;
633
- }()) ? mt : function(e) {
634
- return Ge(e) && be.call(e, "callee") && !wt.call(e, "callee");
635
- }, tt = Array.isArray;
636
- function Lr(e) {
637
- return e != null && It(e.length) && !Et(e);
667
+ }()) ? At : function(e) {
668
+ return Qe(e) && be.call(e, "callee") && !bt.call(e, "callee");
669
+ }, rt = Array.isArray;
670
+ function kr(e) {
671
+ return e != null && Rt(e.length) && !It(e);
638
672
  }
639
- var vt = Ft || Or;
640
- function kr(e, r) {
641
- return At(e, r);
642
- }
643
- function Et(e) {
644
- if (!Rt(e))
645
- return !1;
646
- var r = He(e);
647
- return r == S || r == H || r == g || r == O;
673
+ var ht = Ht || qr;
674
+ function Br(e, r) {
675
+ return Ct(e, r);
648
676
  }
649
677
  function It(e) {
650
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $;
678
+ if (!St(e))
679
+ return !1;
680
+ var r = Ge(e);
681
+ return r == D || r == G || r == g || r == O;
651
682
  }
652
683
  function Rt(e) {
684
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= F;
685
+ }
686
+ function St(e) {
653
687
  var r = typeof e;
654
688
  return e != null && (r == "object" || r == "function");
655
689
  }
656
- function Ge(e) {
690
+ function Qe(e) {
657
691
  return e != null && typeof e == "object";
658
692
  }
659
- var Pt = I ? le(I) : _r;
660
- function Br(e) {
661
- return Lr(e) ? yr(e) : mr(e);
693
+ var Dt = I ? le(I) : mr;
694
+ function Nr(e) {
695
+ return kr(e) ? xr(e) : Ar(e);
662
696
  }
663
- function Nr() {
697
+ function Or() {
664
698
  return [];
665
699
  }
666
- function Or() {
700
+ function qr() {
667
701
  return !1;
668
702
  }
669
- V.exports = kr;
670
- }(Qe, Qe.exports)), Qe.exports;
703
+ j.exports = Br;
704
+ }(Ke, Ke.exports)), Ke.exports;
671
705
  }
672
- var ht = { exports: {} }, kt;
673
- function Hr() {
674
- return kt || (kt = 1, function(V, z) {
675
- var ie = function() {
676
- var Z = function(w, b) {
677
- var d = 236, c = 17, a = w, h = Y[b], n = null, t = 0, p = null, o = [], y = {}, R = function(s, f) {
706
+ var dt = { exports: {} }, Bt;
707
+ function Gr() {
708
+ return Bt || (Bt = 1, function(j, Y) {
709
+ var ee = function() {
710
+ var W = function(p, b) {
711
+ var d = 236, w = 17, a = p, s = X[b], n = null, t = 0, v = null, o = [], y = {}, R = function(f, u) {
678
712
  t = a * 4 + 17, n = function(i) {
679
- for (var u = new Array(i), v = 0; v < i; v += 1) {
680
- u[v] = new Array(i);
713
+ for (var l = new Array(i), h = 0; h < i; h += 1) {
714
+ l[h] = new Array(i);
681
715
  for (var _ = 0; _ < i; _ += 1)
682
- u[v][_] = null;
716
+ l[h][_] = null;
683
717
  }
684
- return u;
685
- }(t), T(0, 0), T(t - 7, 0), T(0, t - 7), re(), U(), L(s, f), a >= 7 && oe(s), p == null && (p = Q(a, h, o)), k(p, f);
686
- }, T = function(s, f) {
718
+ return l;
719
+ }(t), C(0, 0), C(t - 7, 0), C(0, t - 7), ne(), U(), L(f, u), a >= 7 && oe(f), v == null && (v = V(a, s, o)), P(v, u);
720
+ }, C = function(f, u) {
687
721
  for (var i = -1; i <= 7; i += 1)
688
- if (!(s + i <= -1 || t <= s + i))
689
- for (var u = -1; u <= 7; u += 1)
690
- f + u <= -1 || t <= f + u || (0 <= i && i <= 6 && (u == 0 || u == 6) || 0 <= u && u <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= u && u <= 4 ? n[s + i][f + u] = !0 : n[s + i][f + u] = !1);
691
- }, W = function() {
692
- for (var s = 0, f = 0, i = 0; i < 8; i += 1) {
722
+ if (!(f + i <= -1 || t <= f + i))
723
+ for (var l = -1; l <= 7; l += 1)
724
+ u + l <= -1 || t <= u + l || (0 <= i && i <= 6 && (l == 0 || l == 6) || 0 <= l && l <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= l && l <= 4 ? n[f + i][u + l] = !0 : n[f + i][u + l] = !1);
725
+ }, Z = function() {
726
+ for (var f = 0, u = 0, i = 0; i < 8; i += 1) {
693
727
  R(!0, i);
694
- var u = M.getLostPoint(y);
695
- (i == 0 || s > u) && (s = u, f = i);
728
+ var l = M.getLostPoint(y);
729
+ (i == 0 || f > l) && (f = l, u = i);
696
730
  }
697
- return f;
731
+ return u;
698
732
  }, U = function() {
699
- for (var s = 8; s < t - 8; s += 1)
700
- n[s][6] == null && (n[s][6] = s % 2 == 0);
701
733
  for (var f = 8; f < t - 8; f += 1)
702
- n[6][f] == null && (n[6][f] = f % 2 == 0);
703
- }, re = function() {
704
- for (var s = M.getPatternPosition(a), f = 0; f < s.length; f += 1)
705
- for (var i = 0; i < s.length; i += 1) {
706
- var u = s[f], v = s[i];
707
- if (n[u][v] == null)
734
+ n[f][6] == null && (n[f][6] = f % 2 == 0);
735
+ for (var u = 8; u < t - 8; u += 1)
736
+ n[6][u] == null && (n[6][u] = u % 2 == 0);
737
+ }, ne = function() {
738
+ for (var f = M.getPatternPosition(a), u = 0; u < f.length; u += 1)
739
+ for (var i = 0; i < f.length; i += 1) {
740
+ var l = f[u], h = f[i];
741
+ if (n[l][h] == null)
708
742
  for (var _ = -2; _ <= 2; _ += 1)
709
743
  for (var I = -2; I <= 2; I += 1)
710
- _ == -2 || _ == 2 || I == -2 || I == 2 || _ == 0 && I == 0 ? n[u + _][v + I] = !0 : n[u + _][v + I] = !1;
744
+ _ == -2 || _ == 2 || I == -2 || I == 2 || _ == 0 && I == 0 ? n[l + _][h + I] = !0 : n[l + _][h + I] = !1;
711
745
  }
712
- }, oe = function(s) {
713
- for (var f = M.getBCHTypeNumber(a), i = 0; i < 18; i += 1) {
714
- var u = !s && (f >> i & 1) == 1;
715
- n[Math.floor(i / 3)][i % 3 + t - 8 - 3] = u;
746
+ }, oe = function(f) {
747
+ for (var u = M.getBCHTypeNumber(a), i = 0; i < 18; i += 1) {
748
+ var l = !f && (u >> i & 1) == 1;
749
+ n[Math.floor(i / 3)][i % 3 + t - 8 - 3] = l;
716
750
  }
717
751
  for (var i = 0; i < 18; i += 1) {
718
- var u = !s && (f >> i & 1) == 1;
719
- n[i % 3 + t - 8 - 3][Math.floor(i / 3)] = u;
752
+ var l = !f && (u >> i & 1) == 1;
753
+ n[i % 3 + t - 8 - 3][Math.floor(i / 3)] = l;
720
754
  }
721
- }, L = function(s, f) {
722
- for (var i = h << 3 | f, u = M.getBCHTypeInfo(i), v = 0; v < 15; v += 1) {
723
- var _ = !s && (u >> v & 1) == 1;
724
- v < 6 ? n[v][8] = _ : v < 8 ? n[v + 1][8] = _ : n[t - 15 + v][8] = _;
755
+ }, L = function(f, u) {
756
+ for (var i = s << 3 | u, l = M.getBCHTypeInfo(i), h = 0; h < 15; h += 1) {
757
+ var _ = !f && (l >> h & 1) == 1;
758
+ h < 6 ? n[h][8] = _ : h < 8 ? n[h + 1][8] = _ : n[t - 15 + h][8] = _;
725
759
  }
726
- for (var v = 0; v < 15; v += 1) {
727
- var _ = !s && (u >> v & 1) == 1;
728
- v < 8 ? n[8][t - v - 1] = _ : v < 9 ? n[8][15 - v - 1 + 1] = _ : n[8][15 - v - 1] = _;
760
+ for (var h = 0; h < 15; h += 1) {
761
+ var _ = !f && (l >> h & 1) == 1;
762
+ h < 8 ? n[8][t - h - 1] = _ : h < 9 ? n[8][15 - h - 1 + 1] = _ : n[8][15 - h - 1] = _;
729
763
  }
730
- n[t - 8][8] = !s;
731
- }, k = function(s, f) {
732
- for (var i = -1, u = t - 1, v = 7, _ = 0, I = M.getMaskFunction(f), E = t - 1; E > 0; E -= 2)
764
+ n[t - 8][8] = !f;
765
+ }, P = function(f, u) {
766
+ for (var i = -1, l = t - 1, h = 7, _ = 0, I = M.getMaskFunction(u), E = t - 1; E > 0; E -= 2)
733
767
  for (E == 6 && (E -= 1); ; ) {
734
- for (var X = 0; X < 2; X += 1)
735
- if (n[u][E - X] == null) {
736
- var ee = !1;
737
- _ < s.length && (ee = (s[_] >>> v & 1) == 1);
738
- var N = I(u, E - X);
739
- N && (ee = !ee), n[u][E - X] = ee, v -= 1, v == -1 && (_ += 1, v = 7);
768
+ for (var z = 0; z < 2; z += 1)
769
+ if (n[l][E - z] == null) {
770
+ var te = !1;
771
+ _ < f.length && (te = (f[_] >>> h & 1) == 1);
772
+ var B = I(l, E - z);
773
+ B && (te = !te), n[l][E - z] = te, h -= 1, h == -1 && (_ += 1, h = 7);
740
774
  }
741
- if (u += i, u < 0 || t <= u) {
742
- u -= i, i = -i;
775
+ if (l += i, l < 0 || t <= l) {
776
+ l -= i, i = -i;
743
777
  break;
744
778
  }
745
779
  }
746
- }, ue = function(s, f) {
747
- for (var i = 0, u = 0, v = 0, _ = new Array(f.length), I = new Array(f.length), E = 0; E < f.length; E += 1) {
748
- var X = f[E].dataCount, ee = f[E].totalCount - X;
749
- u = Math.max(u, X), v = Math.max(v, ee), _[E] = new Array(X);
750
- for (var N = 0; N < _[E].length; N += 1)
751
- _[E][N] = 255 & s.getBuffer()[N + i];
752
- i += X;
753
- var le = M.getErrorCorrectPolynomial(ee), ce = g(_[E], le.getLength() - 1), ke = ce.mod(le);
780
+ }, ue = function(f, u) {
781
+ for (var i = 0, l = 0, h = 0, _ = new Array(u.length), I = new Array(u.length), E = 0; E < u.length; E += 1) {
782
+ var z = u[E].dataCount, te = u[E].totalCount - z;
783
+ l = Math.max(l, z), h = Math.max(h, te), _[E] = new Array(z);
784
+ for (var B = 0; B < _[E].length; B += 1)
785
+ _[E][B] = 255 & f.getBuffer()[B + i];
786
+ i += z;
787
+ var le = M.getErrorCorrectPolynomial(te), ce = g(_[E], le.getLength() - 1), ke = ce.mod(le);
754
788
  I[E] = new Array(le.getLength() - 1);
755
- for (var N = 0; N < I[E].length; N += 1) {
756
- var Be = N + ke.getLength() - I[E].length;
757
- I[E][N] = Be >= 0 ? ke.getAt(Be) : 0;
789
+ for (var B = 0; B < I[E].length; B += 1) {
790
+ var Be = B + ke.getLength() - I[E].length;
791
+ I[E][B] = Be >= 0 ? ke.getAt(Be) : 0;
758
792
  }
759
793
  }
760
- for (var Ze = 0, N = 0; N < f.length; N += 1)
761
- Ze += f[N].totalCount;
762
- for (var $e = new Array(Ze), Ne = 0, N = 0; N < u; N += 1)
763
- for (var E = 0; E < f.length; E += 1)
764
- N < _[E].length && ($e[Ne] = _[E][N], Ne += 1);
765
- for (var N = 0; N < v; N += 1)
766
- for (var E = 0; E < f.length; E += 1)
767
- N < I[E].length && ($e[Ne] = I[E][N], Ne += 1);
768
- return $e;
769
- }, Q = function(s, f, i) {
770
- for (var u = m.getRSBlocks(s, f), v = C(), _ = 0; _ < i.length; _ += 1) {
794
+ for (var Je = 0, B = 0; B < u.length; B += 1)
795
+ Je += u[B].totalCount;
796
+ for (var Fe = new Array(Je), Ne = 0, B = 0; B < l; B += 1)
797
+ for (var E = 0; E < u.length; E += 1)
798
+ B < _[E].length && (Fe[Ne] = _[E][B], Ne += 1);
799
+ for (var B = 0; B < h; B += 1)
800
+ for (var E = 0; E < u.length; E += 1)
801
+ B < I[E].length && (Fe[Ne] = I[E][B], Ne += 1);
802
+ return Fe;
803
+ }, V = function(f, u, i) {
804
+ for (var l = m.getRSBlocks(f, u), h = T(), _ = 0; _ < i.length; _ += 1) {
771
805
  var I = i[_];
772
- v.put(I.getMode(), 4), v.put(I.getLength(), M.getLengthInBits(I.getMode(), s)), I.write(v);
806
+ h.put(I.getMode(), 4), h.put(I.getLength(), M.getLengthInBits(I.getMode(), f)), I.write(h);
773
807
  }
774
- for (var E = 0, _ = 0; _ < u.length; _ += 1)
775
- E += u[_].dataCount;
776
- if (v.getLengthInBits() > E * 8)
777
- throw "code length overflow. (" + v.getLengthInBits() + ">" + E * 8 + ")";
778
- for (v.getLengthInBits() + 4 <= E * 8 && v.put(0, 4); v.getLengthInBits() % 8 != 0; )
779
- v.putBit(!1);
780
- for (; !(v.getLengthInBits() >= E * 8 || (v.put(d, 8), v.getLengthInBits() >= E * 8)); )
781
- v.put(c, 8);
782
- return ue(v, u);
808
+ for (var E = 0, _ = 0; _ < l.length; _ += 1)
809
+ E += l[_].dataCount;
810
+ if (h.getLengthInBits() > E * 8)
811
+ throw "code length overflow. (" + h.getLengthInBits() + ">" + E * 8 + ")";
812
+ for (h.getLengthInBits() + 4 <= E * 8 && h.put(0, 4); h.getLengthInBits() % 8 != 0; )
813
+ h.putBit(!1);
814
+ for (; !(h.getLengthInBits() >= E * 8 || (h.put(d, 8), h.getLengthInBits() >= E * 8)); )
815
+ h.put(w, 8);
816
+ return ue(h, l);
783
817
  };
784
- y.addData = function(s, f) {
785
- f = f || "Byte";
818
+ y.addData = function(f, u) {
819
+ u = u || "Byte";
786
820
  var i = null;
787
- switch (f) {
821
+ switch (u) {
788
822
  case "Numeric":
789
- i = j(s);
823
+ i = $(f);
790
824
  break;
791
825
  case "Alphanumeric":
792
- i = S(s);
826
+ i = D(f);
793
827
  break;
794
828
  case "Byte":
795
- i = H(s);
829
+ i = G(f);
796
830
  break;
797
831
  case "Kanji":
798
- i = B(s);
832
+ i = k(f);
799
833
  break;
800
834
  default:
801
- throw "mode:" + f;
835
+ throw "mode:" + u;
802
836
  }
803
- o.push(i), p = null;
804
- }, y.isDark = function(s, f) {
805
- if (s < 0 || t <= s || f < 0 || t <= f)
806
- throw s + "," + f;
807
- return n[s][f];
837
+ o.push(i), v = null;
838
+ }, y.isDark = function(f, u) {
839
+ if (f < 0 || t <= f || u < 0 || t <= u)
840
+ throw f + "," + u;
841
+ return n[f][u];
808
842
  }, y.getModuleCount = function() {
809
843
  return t;
810
844
  }, y.make = function() {
811
845
  if (a < 1) {
812
- for (var s = 1; s < 40; s++) {
813
- for (var f = m.getRSBlocks(s, h), i = C(), u = 0; u < o.length; u++) {
814
- var v = o[u];
815
- i.put(v.getMode(), 4), i.put(v.getLength(), M.getLengthInBits(v.getMode(), s)), v.write(i);
846
+ for (var f = 1; f < 40; f++) {
847
+ for (var u = m.getRSBlocks(f, s), i = T(), l = 0; l < o.length; l++) {
848
+ var h = o[l];
849
+ i.put(h.getMode(), 4), i.put(h.getLength(), M.getLengthInBits(h.getMode(), f)), h.write(i);
816
850
  }
817
- for (var _ = 0, u = 0; u < f.length; u++)
818
- _ += f[u].dataCount;
851
+ for (var _ = 0, l = 0; l < u.length; l++)
852
+ _ += u[l].dataCount;
819
853
  if (i.getLengthInBits() <= _ * 8)
820
854
  break;
821
855
  }
822
- a = s;
856
+ a = f;
823
857
  }
824
- R(!1, W());
825
- }, y.createTableTag = function(s, f) {
826
- s = s || 2, f = typeof f > "u" ? s * 4 : f;
858
+ R(!1, Z());
859
+ }, y.createTableTag = function(f, u) {
860
+ f = f || 2, u = typeof u > "u" ? f * 4 : u;
827
861
  var i = "";
828
- i += '<table style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: " + f + "px;", i += '">', i += "<tbody>";
829
- for (var u = 0; u < y.getModuleCount(); u += 1) {
862
+ i += '<table style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: " + u + "px;", i += '">', i += "<tbody>";
863
+ for (var l = 0; l < y.getModuleCount(); l += 1) {
830
864
  i += "<tr>";
831
- for (var v = 0; v < y.getModuleCount(); v += 1)
832
- i += '<td style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: 0px;", i += " width: " + s + "px;", i += " height: " + s + "px;", i += " background-color: ", i += y.isDark(u, v) ? "#000000" : "#ffffff", i += ";", i += '"/>';
865
+ for (var h = 0; h < y.getModuleCount(); h += 1)
866
+ i += '<td style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: 0px;", i += " width: " + f + "px;", i += " height: " + f + "px;", i += " background-color: ", i += y.isDark(l, h) ? "#000000" : "#ffffff", i += ";", i += '"/>';
833
867
  i += "</tr>";
834
868
  }
835
869
  return i += "</tbody>", i += "</table>", i;
836
- }, y.createSvgTag = function(s, f, i, u) {
837
- var v = {};
838
- typeof arguments[0] == "object" && (v = arguments[0], s = v.cellSize, f = v.margin, i = v.alt, u = v.title), s = s || 2, f = typeof f > "u" ? s * 4 : f, i = typeof i == "string" ? { text: i } : i || {}, i.text = i.text || null, i.id = i.text ? i.id || "qrcode-description" : null, u = typeof u == "string" ? { text: u } : u || {}, u.text = u.text || null, u.id = u.text ? u.id || "qrcode-title" : null;
839
- var _ = y.getModuleCount() * s + f * 2, I, E, X, ee, N = "", le;
840
- for (le = "l" + s + ",0 0," + s + " -" + s + ",0 0,-" + s + "z ", N += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', N += v.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', N += ' viewBox="0 0 ' + _ + " " + _ + '" ', N += ' preserveAspectRatio="xMinYMin meet"', N += u.text || i.text ? ' role="img" aria-labelledby="' + se([u.id, i.id].join(" ").trim()) + '"' : "", N += ">", N += u.text ? '<title id="' + se(u.id) + '">' + se(u.text) + "</title>" : "", N += i.text ? '<description id="' + se(i.id) + '">' + se(i.text) + "</description>" : "", N += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', N += '<path d="', X = 0; X < y.getModuleCount(); X += 1)
841
- for (ee = X * s + f, I = 0; I < y.getModuleCount(); I += 1)
842
- y.isDark(X, I) && (E = I * s + f, N += "M" + E + "," + ee + le);
843
- return N += '" stroke="transparent" fill="black"/>', N += "</svg>", N;
844
- }, y.createDataURL = function(s, f) {
845
- s = s || 2, f = typeof f > "u" ? s * 4 : f;
846
- var i = y.getModuleCount() * s + f * 2, u = f, v = i - f;
870
+ }, y.createSvgTag = function(f, u, i, l) {
871
+ var h = {};
872
+ typeof arguments[0] == "object" && (h = arguments[0], f = h.cellSize, u = h.margin, i = h.alt, l = h.title), f = f || 2, u = typeof u > "u" ? f * 4 : u, i = typeof i == "string" ? { text: i } : i || {}, i.text = i.text || null, i.id = i.text ? i.id || "qrcode-description" : null, l = typeof l == "string" ? { text: l } : l || {}, l.text = l.text || null, l.id = l.text ? l.id || "qrcode-title" : null;
873
+ var _ = y.getModuleCount() * f + u * 2, I, E, z, te, B = "", le;
874
+ for (le = "l" + f + ",0 0," + f + " -" + f + ",0 0,-" + f + "z ", B += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', B += h.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', B += ' viewBox="0 0 ' + _ + " " + _ + '" ', B += ' preserveAspectRatio="xMinYMin meet"', B += l.text || i.text ? ' role="img" aria-labelledby="' + se([l.id, i.id].join(" ").trim()) + '"' : "", B += ">", B += l.text ? '<title id="' + se(l.id) + '">' + se(l.text) + "</title>" : "", B += i.text ? '<description id="' + se(i.id) + '">' + se(i.text) + "</description>" : "", B += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', B += '<path d="', z = 0; z < y.getModuleCount(); z += 1)
875
+ for (te = z * f + u, I = 0; I < y.getModuleCount(); I += 1)
876
+ y.isDark(z, I) && (E = I * f + u, B += "M" + E + "," + te + le);
877
+ return B += '" stroke="transparent" fill="black"/>', B += "</svg>", B;
878
+ }, y.createDataURL = function(f, u) {
879
+ f = f || 2, u = typeof u > "u" ? f * 4 : u;
880
+ var i = y.getModuleCount() * f + u * 2, l = u, h = i - u;
847
881
  return O(i, i, function(_, I) {
848
- if (u <= _ && _ < v && u <= I && I < v) {
849
- var E = Math.floor((_ - u) / s), X = Math.floor((I - u) / s);
850
- return y.isDark(X, E) ? 0 : 1;
882
+ if (l <= _ && _ < h && l <= I && I < h) {
883
+ var E = Math.floor((_ - l) / f), z = Math.floor((I - l) / f);
884
+ return y.isDark(z, E) ? 0 : 1;
851
885
  } else
852
886
  return 1;
853
887
  });
854
- }, y.createImgTag = function(s, f, i) {
855
- s = s || 2, f = typeof f > "u" ? s * 4 : f;
856
- var u = y.getModuleCount() * s + f * 2, v = "";
857
- return v += "<img", v += ' src="', v += y.createDataURL(s, f), v += '"', v += ' width="', v += u, v += '"', v += ' height="', v += u, v += '"', i && (v += ' alt="', v += se(i), v += '"'), v += "/>", v;
888
+ }, y.createImgTag = function(f, u, i) {
889
+ f = f || 2, u = typeof u > "u" ? f * 4 : u;
890
+ var l = y.getModuleCount() * f + u * 2, h = "";
891
+ return h += "<img", h += ' src="', h += y.createDataURL(f, u), h += '"', h += ' width="', h += l, h += '"', h += ' height="', h += l, h += '"', i && (h += ' alt="', h += se(i), h += '"'), h += "/>", h;
858
892
  };
859
- var se = function(s) {
860
- for (var f = "", i = 0; i < s.length; i += 1) {
861
- var u = s.charAt(i);
862
- switch (u) {
893
+ var se = function(f) {
894
+ for (var u = "", i = 0; i < f.length; i += 1) {
895
+ var l = f.charAt(i);
896
+ switch (l) {
863
897
  case "<":
864
- f += "&lt;";
898
+ u += "&lt;";
865
899
  break;
866
900
  case ">":
867
- f += "&gt;";
901
+ u += "&gt;";
868
902
  break;
869
903
  case "&":
870
- f += "&amp;";
904
+ u += "&amp;";
871
905
  break;
872
906
  case '"':
873
- f += "&quot;";
907
+ u += "&quot;";
874
908
  break;
875
909
  default:
876
- f += u;
910
+ u += l;
877
911
  break;
878
912
  }
879
913
  }
880
- return f;
881
- }, _e = function(s) {
882
- var f = 1;
883
- s = typeof s > "u" ? f * 2 : s;
884
- var i = y.getModuleCount() * f + s * 2, u = s, v = i - s, _, I, E, X, ee, N = {
914
+ return u;
915
+ }, _e = function(f) {
916
+ var u = 1;
917
+ f = typeof f > "u" ? u * 2 : f;
918
+ var i = y.getModuleCount() * u + f * 2, l = f, h = i - f, _, I, E, z, te, B = {
885
919
  "██": "█",
886
920
  "█ ": "▀",
887
921
  " █": "▄",
@@ -893,68 +927,68 @@ function Hr() {
893
927
  " ": " "
894
928
  }, ce = "";
895
929
  for (_ = 0; _ < i; _ += 2) {
896
- for (E = Math.floor((_ - u) / f), X = Math.floor((_ + 1 - u) / f), I = 0; I < i; I += 1)
897
- ee = "█", u <= I && I < v && u <= _ && _ < v && y.isDark(E, Math.floor((I - u) / f)) && (ee = " "), u <= I && I < v && u <= _ + 1 && _ + 1 < v && y.isDark(X, Math.floor((I - u) / f)) ? ee += " " : ee += "█", ce += s < 1 && _ + 1 >= v ? le[ee] : N[ee];
930
+ for (E = Math.floor((_ - l) / u), z = Math.floor((_ + 1 - l) / u), I = 0; I < i; I += 1)
931
+ te = "█", l <= I && I < h && l <= _ && _ < h && y.isDark(E, Math.floor((I - l) / u)) && (te = " "), l <= I && I < h && l <= _ + 1 && _ + 1 < h && y.isDark(z, Math.floor((I - l) / u)) ? te += " " : te += "█", ce += f < 1 && _ + 1 >= h ? le[te] : B[te];
898
932
  ce += `
899
933
  `;
900
934
  }
901
- return i % 2 && s > 0 ? ce.substring(0, ce.length - i - 1) + Array(i + 1).join("▀") : ce.substring(0, ce.length - 1);
935
+ return i % 2 && f > 0 ? ce.substring(0, ce.length - i - 1) + Array(i + 1).join("▀") : ce.substring(0, ce.length - 1);
902
936
  };
903
- return y.createASCII = function(s, f) {
904
- if (s = s || 1, s < 2)
905
- return _e(f);
906
- s -= 1, f = typeof f > "u" ? s * 2 : f;
907
- var i = y.getModuleCount() * s + f * 2, u = f, v = i - f, _, I, E, X, ee = Array(s + 1).join("██"), N = Array(s + 1).join(" "), le = "", ce = "";
937
+ return y.createASCII = function(f, u) {
938
+ if (f = f || 1, f < 2)
939
+ return _e(u);
940
+ f -= 1, u = typeof u > "u" ? f * 2 : u;
941
+ var i = y.getModuleCount() * f + u * 2, l = u, h = i - u, _, I, E, z, te = Array(f + 1).join("██"), B = Array(f + 1).join(" "), le = "", ce = "";
908
942
  for (_ = 0; _ < i; _ += 1) {
909
- for (E = Math.floor((_ - u) / s), ce = "", I = 0; I < i; I += 1)
910
- X = 1, u <= I && I < v && u <= _ && _ < v && y.isDark(E, Math.floor((I - u) / s)) && (X = 0), ce += X ? ee : N;
911
- for (E = 0; E < s; E += 1)
943
+ for (E = Math.floor((_ - l) / f), ce = "", I = 0; I < i; I += 1)
944
+ z = 1, l <= I && I < h && l <= _ && _ < h && y.isDark(E, Math.floor((I - l) / f)) && (z = 0), ce += z ? te : B;
945
+ for (E = 0; E < f; E += 1)
912
946
  le += ce + `
913
947
  `;
914
948
  }
915
949
  return le.substring(0, le.length - 1);
916
- }, y.renderTo2dContext = function(s, f) {
917
- f = f || 2;
918
- for (var i = y.getModuleCount(), u = 0; u < i; u++)
919
- for (var v = 0; v < i; v++)
920
- s.fillStyle = y.isDark(u, v) ? "black" : "white", s.fillRect(u * f, v * f, f, f);
950
+ }, y.renderTo2dContext = function(f, u) {
951
+ u = u || 2;
952
+ for (var i = y.getModuleCount(), l = 0; l < i; l++)
953
+ for (var h = 0; h < i; h++)
954
+ f.fillStyle = y.isDark(l, h) ? "black" : "white", f.fillRect(l * u, h * u, u, u);
921
955
  }, y;
922
956
  };
923
- Z.stringToBytesFuncs = {
924
- default: function(w) {
925
- for (var b = [], d = 0; d < w.length; d += 1) {
926
- var c = w.charCodeAt(d);
927
- b.push(c & 255);
957
+ W.stringToBytesFuncs = {
958
+ default: function(p) {
959
+ for (var b = [], d = 0; d < p.length; d += 1) {
960
+ var w = p.charCodeAt(d);
961
+ b.push(w & 255);
928
962
  }
929
963
  return b;
930
964
  }
931
- }, Z.stringToBytes = Z.stringToBytesFuncs.default, Z.createStringToBytes = function(w, b) {
965
+ }, W.stringToBytes = W.stringToBytesFuncs.default, W.createStringToBytes = function(p, b) {
932
966
  var d = function() {
933
- for (var a = G(w), h = function() {
967
+ for (var a = Q(p), s = function() {
934
968
  var U = a.read();
935
969
  if (U == -1) throw "eof";
936
970
  return U;
937
971
  }, n = 0, t = {}; ; ) {
938
- var p = a.read();
939
- if (p == -1) break;
940
- var o = h(), y = h(), R = h(), T = String.fromCharCode(p << 8 | o), W = y << 8 | R;
941
- t[T] = W, n += 1;
972
+ var v = a.read();
973
+ if (v == -1) break;
974
+ var o = s(), y = s(), R = s(), C = String.fromCharCode(v << 8 | o), Z = y << 8 | R;
975
+ t[C] = Z, n += 1;
942
976
  }
943
977
  if (n != b)
944
978
  throw n + " != " + b;
945
979
  return t;
946
- }(), c = 63;
980
+ }(), w = 63;
947
981
  return function(a) {
948
- for (var h = [], n = 0; n < a.length; n += 1) {
982
+ for (var s = [], n = 0; n < a.length; n += 1) {
949
983
  var t = a.charCodeAt(n);
950
984
  if (t < 128)
951
- h.push(t);
985
+ s.push(t);
952
986
  else {
953
- var p = d[a.charAt(n)];
954
- typeof p == "number" ? (p & 255) == p ? h.push(p) : (h.push(p >>> 8), h.push(p & 255)) : h.push(c);
987
+ var v = d[a.charAt(n)];
988
+ typeof v == "number" ? (v & 255) == v ? s.push(v) : (s.push(v >>> 8), s.push(v & 255)) : s.push(w);
955
989
  }
956
990
  }
957
- return h;
991
+ return s;
958
992
  };
959
993
  };
960
994
  var q = {
@@ -962,12 +996,12 @@ function Hr() {
962
996
  MODE_ALPHA_NUM: 2,
963
997
  MODE_8BIT_BYTE: 4,
964
998
  MODE_KANJI: 8
965
- }, Y = {
999
+ }, X = {
966
1000
  L: 1,
967
1001
  M: 0,
968
1002
  Q: 3,
969
1003
  H: 2
970
- }, $ = {
1004
+ }, F = {
971
1005
  PATTERN000: 0,
972
1006
  PATTERN001: 1,
973
1007
  PATTERN010: 2,
@@ -977,7 +1011,7 @@ function Hr() {
977
1011
  PATTERN110: 6,
978
1012
  PATTERN111: 7
979
1013
  }, M = function() {
980
- var w = [
1014
+ var p = [
981
1015
  [],
982
1016
  [6, 18],
983
1017
  [6, 22],
@@ -1018,61 +1052,61 @@ function Hr() {
1018
1052
  [6, 32, 58, 84, 110, 136, 162],
1019
1053
  [6, 26, 54, 82, 110, 138, 166],
1020
1054
  [6, 30, 58, 86, 114, 142, 170]
1021
- ], b = 1335, d = 7973, c = 21522, a = {}, h = function(n) {
1055
+ ], b = 1335, d = 7973, w = 21522, a = {}, s = function(n) {
1022
1056
  for (var t = 0; n != 0; )
1023
1057
  t += 1, n >>>= 1;
1024
1058
  return t;
1025
1059
  };
1026
1060
  return a.getBCHTypeInfo = function(n) {
1027
- for (var t = n << 10; h(t) - h(b) >= 0; )
1028
- t ^= b << h(t) - h(b);
1029
- return (n << 10 | t) ^ c;
1061
+ for (var t = n << 10; s(t) - s(b) >= 0; )
1062
+ t ^= b << s(t) - s(b);
1063
+ return (n << 10 | t) ^ w;
1030
1064
  }, a.getBCHTypeNumber = function(n) {
1031
- for (var t = n << 12; h(t) - h(d) >= 0; )
1032
- t ^= d << h(t) - h(d);
1065
+ for (var t = n << 12; s(t) - s(d) >= 0; )
1066
+ t ^= d << s(t) - s(d);
1033
1067
  return n << 12 | t;
1034
1068
  }, a.getPatternPosition = function(n) {
1035
- return w[n - 1];
1069
+ return p[n - 1];
1036
1070
  }, a.getMaskFunction = function(n) {
1037
1071
  switch (n) {
1038
- case $.PATTERN000:
1039
- return function(t, p) {
1040
- return (t + p) % 2 == 0;
1072
+ case F.PATTERN000:
1073
+ return function(t, v) {
1074
+ return (t + v) % 2 == 0;
1041
1075
  };
1042
- case $.PATTERN001:
1043
- return function(t, p) {
1076
+ case F.PATTERN001:
1077
+ return function(t, v) {
1044
1078
  return t % 2 == 0;
1045
1079
  };
1046
- case $.PATTERN010:
1047
- return function(t, p) {
1048
- return p % 3 == 0;
1080
+ case F.PATTERN010:
1081
+ return function(t, v) {
1082
+ return v % 3 == 0;
1049
1083
  };
1050
- case $.PATTERN011:
1051
- return function(t, p) {
1052
- return (t + p) % 3 == 0;
1084
+ case F.PATTERN011:
1085
+ return function(t, v) {
1086
+ return (t + v) % 3 == 0;
1053
1087
  };
1054
- case $.PATTERN100:
1055
- return function(t, p) {
1056
- return (Math.floor(t / 2) + Math.floor(p / 3)) % 2 == 0;
1088
+ case F.PATTERN100:
1089
+ return function(t, v) {
1090
+ return (Math.floor(t / 2) + Math.floor(v / 3)) % 2 == 0;
1057
1091
  };
1058
- case $.PATTERN101:
1059
- return function(t, p) {
1060
- return t * p % 2 + t * p % 3 == 0;
1092
+ case F.PATTERN101:
1093
+ return function(t, v) {
1094
+ return t * v % 2 + t * v % 3 == 0;
1061
1095
  };
1062
- case $.PATTERN110:
1063
- return function(t, p) {
1064
- return (t * p % 2 + t * p % 3) % 2 == 0;
1096
+ case F.PATTERN110:
1097
+ return function(t, v) {
1098
+ return (t * v % 2 + t * v % 3) % 2 == 0;
1065
1099
  };
1066
- case $.PATTERN111:
1067
- return function(t, p) {
1068
- return (t * p % 3 + (t + p) % 2) % 2 == 0;
1100
+ case F.PATTERN111:
1101
+ return function(t, v) {
1102
+ return (t * v % 3 + (t + v) % 2) % 2 == 0;
1069
1103
  };
1070
1104
  default:
1071
1105
  throw "bad maskPattern:" + n;
1072
1106
  }
1073
1107
  }, a.getErrorCorrectPolynomial = function(n) {
1074
- for (var t = g([1], 0), p = 0; p < n; p += 1)
1075
- t = t.multiply(g([1, x.gexp(p)], 0));
1108
+ for (var t = g([1], 0), v = 0; v < n; v += 1)
1109
+ t = t.multiply(g([1, x.gexp(v)], 0));
1076
1110
  return t;
1077
1111
  }, a.getLengthInBits = function(n, t) {
1078
1112
  if (1 <= t && t < 10)
@@ -1117,82 +1151,82 @@ function Hr() {
1117
1151
  else
1118
1152
  throw "type:" + t;
1119
1153
  }, a.getLostPoint = function(n) {
1120
- for (var t = n.getModuleCount(), p = 0, o = 0; o < t; o += 1)
1154
+ for (var t = n.getModuleCount(), v = 0, o = 0; o < t; o += 1)
1121
1155
  for (var y = 0; y < t; y += 1) {
1122
- for (var R = 0, T = n.isDark(o, y), W = -1; W <= 1; W += 1)
1123
- if (!(o + W < 0 || t <= o + W))
1156
+ for (var R = 0, C = n.isDark(o, y), Z = -1; Z <= 1; Z += 1)
1157
+ if (!(o + Z < 0 || t <= o + Z))
1124
1158
  for (var U = -1; U <= 1; U += 1)
1125
- y + U < 0 || t <= y + U || W == 0 && U == 0 || T == n.isDark(o + W, y + U) && (R += 1);
1126
- R > 5 && (p += 3 + R - 5);
1159
+ y + U < 0 || t <= y + U || Z == 0 && U == 0 || C == n.isDark(o + Z, y + U) && (R += 1);
1160
+ R > 5 && (v += 3 + R - 5);
1127
1161
  }
1128
1162
  for (var o = 0; o < t - 1; o += 1)
1129
1163
  for (var y = 0; y < t - 1; y += 1) {
1130
- var re = 0;
1131
- n.isDark(o, y) && (re += 1), n.isDark(o + 1, y) && (re += 1), n.isDark(o, y + 1) && (re += 1), n.isDark(o + 1, y + 1) && (re += 1), (re == 0 || re == 4) && (p += 3);
1164
+ var ne = 0;
1165
+ n.isDark(o, y) && (ne += 1), n.isDark(o + 1, y) && (ne += 1), n.isDark(o, y + 1) && (ne += 1), n.isDark(o + 1, y + 1) && (ne += 1), (ne == 0 || ne == 4) && (v += 3);
1132
1166
  }
1133
1167
  for (var o = 0; o < t; o += 1)
1134
1168
  for (var y = 0; y < t - 6; y += 1)
1135
- n.isDark(o, y) && !n.isDark(o, y + 1) && n.isDark(o, y + 2) && n.isDark(o, y + 3) && n.isDark(o, y + 4) && !n.isDark(o, y + 5) && n.isDark(o, y + 6) && (p += 40);
1169
+ n.isDark(o, y) && !n.isDark(o, y + 1) && n.isDark(o, y + 2) && n.isDark(o, y + 3) && n.isDark(o, y + 4) && !n.isDark(o, y + 5) && n.isDark(o, y + 6) && (v += 40);
1136
1170
  for (var y = 0; y < t; y += 1)
1137
1171
  for (var o = 0; o < t - 6; o += 1)
1138
- n.isDark(o, y) && !n.isDark(o + 1, y) && n.isDark(o + 2, y) && n.isDark(o + 3, y) && n.isDark(o + 4, y) && !n.isDark(o + 5, y) && n.isDark(o + 6, y) && (p += 40);
1172
+ n.isDark(o, y) && !n.isDark(o + 1, y) && n.isDark(o + 2, y) && n.isDark(o + 3, y) && n.isDark(o + 4, y) && !n.isDark(o + 5, y) && n.isDark(o + 6, y) && (v += 40);
1139
1173
  for (var oe = 0, y = 0; y < t; y += 1)
1140
1174
  for (var o = 0; o < t; o += 1)
1141
1175
  n.isDark(o, y) && (oe += 1);
1142
1176
  var L = Math.abs(100 * oe / t / t - 50) / 5;
1143
- return p += L * 10, p;
1177
+ return v += L * 10, v;
1144
1178
  }, a;
1145
1179
  }(), x = function() {
1146
- for (var w = new Array(256), b = new Array(256), d = 0; d < 8; d += 1)
1147
- w[d] = 1 << d;
1180
+ for (var p = new Array(256), b = new Array(256), d = 0; d < 8; d += 1)
1181
+ p[d] = 1 << d;
1148
1182
  for (var d = 8; d < 256; d += 1)
1149
- w[d] = w[d - 4] ^ w[d - 5] ^ w[d - 6] ^ w[d - 8];
1183
+ p[d] = p[d - 4] ^ p[d - 5] ^ p[d - 6] ^ p[d - 8];
1150
1184
  for (var d = 0; d < 255; d += 1)
1151
- b[w[d]] = d;
1152
- var c = {};
1153
- return c.glog = function(a) {
1185
+ b[p[d]] = d;
1186
+ var w = {};
1187
+ return w.glog = function(a) {
1154
1188
  if (a < 1)
1155
1189
  throw "glog(" + a + ")";
1156
1190
  return b[a];
1157
- }, c.gexp = function(a) {
1191
+ }, w.gexp = function(a) {
1158
1192
  for (; a < 0; )
1159
1193
  a += 255;
1160
1194
  for (; a >= 256; )
1161
1195
  a -= 255;
1162
- return w[a];
1163
- }, c;
1196
+ return p[a];
1197
+ }, w;
1164
1198
  }();
1165
- function g(w, b) {
1166
- if (typeof w.length > "u")
1167
- throw w.length + "/" + b;
1199
+ function g(p, b) {
1200
+ if (typeof p.length > "u")
1201
+ throw p.length + "/" + b;
1168
1202
  var d = function() {
1169
- for (var a = 0; a < w.length && w[a] == 0; )
1203
+ for (var a = 0; a < p.length && p[a] == 0; )
1170
1204
  a += 1;
1171
- for (var h = new Array(w.length - a + b), n = 0; n < w.length - a; n += 1)
1172
- h[n] = w[n + a];
1173
- return h;
1174
- }(), c = {};
1175
- return c.getAt = function(a) {
1205
+ for (var s = new Array(p.length - a + b), n = 0; n < p.length - a; n += 1)
1206
+ s[n] = p[n + a];
1207
+ return s;
1208
+ }(), w = {};
1209
+ return w.getAt = function(a) {
1176
1210
  return d[a];
1177
- }, c.getLength = function() {
1211
+ }, w.getLength = function() {
1178
1212
  return d.length;
1179
- }, c.multiply = function(a) {
1180
- for (var h = new Array(c.getLength() + a.getLength() - 1), n = 0; n < c.getLength(); n += 1)
1213
+ }, w.multiply = function(a) {
1214
+ for (var s = new Array(w.getLength() + a.getLength() - 1), n = 0; n < w.getLength(); n += 1)
1181
1215
  for (var t = 0; t < a.getLength(); t += 1)
1182
- h[n + t] ^= x.gexp(x.glog(c.getAt(n)) + x.glog(a.getAt(t)));
1183
- return g(h, 0);
1184
- }, c.mod = function(a) {
1185
- if (c.getLength() - a.getLength() < 0)
1186
- return c;
1187
- for (var h = x.glog(c.getAt(0)) - x.glog(a.getAt(0)), n = new Array(c.getLength()), t = 0; t < c.getLength(); t += 1)
1188
- n[t] = c.getAt(t);
1216
+ s[n + t] ^= x.gexp(x.glog(w.getAt(n)) + x.glog(a.getAt(t)));
1217
+ return g(s, 0);
1218
+ }, w.mod = function(a) {
1219
+ if (w.getLength() - a.getLength() < 0)
1220
+ return w;
1221
+ for (var s = x.glog(w.getAt(0)) - x.glog(a.getAt(0)), n = new Array(w.getLength()), t = 0; t < w.getLength(); t += 1)
1222
+ n[t] = w.getAt(t);
1189
1223
  for (var t = 0; t < a.getLength(); t += 1)
1190
- n[t] ^= x.gexp(x.glog(a.getAt(t)) + h);
1224
+ n[t] ^= x.gexp(x.glog(a.getAt(t)) + s);
1191
1225
  return g(n, 0).mod(a);
1192
- }, c;
1226
+ }, w;
1193
1227
  }
1194
1228
  var m = function() {
1195
- var w = [
1229
+ var p = [
1196
1230
  // L
1197
1231
  // M
1198
1232
  // Q
@@ -1397,89 +1431,89 @@ function Hr() {
1397
1431
  [18, 75, 47, 31, 76, 48],
1398
1432
  [34, 54, 24, 34, 55, 25],
1399
1433
  [20, 45, 15, 61, 46, 16]
1400
- ], b = function(a, h) {
1434
+ ], b = function(a, s) {
1401
1435
  var n = {};
1402
- return n.totalCount = a, n.dataCount = h, n;
1403
- }, d = {}, c = function(a, h) {
1404
- switch (h) {
1405
- case Y.L:
1406
- return w[(a - 1) * 4 + 0];
1407
- case Y.M:
1408
- return w[(a - 1) * 4 + 1];
1409
- case Y.Q:
1410
- return w[(a - 1) * 4 + 2];
1411
- case Y.H:
1412
- return w[(a - 1) * 4 + 3];
1436
+ return n.totalCount = a, n.dataCount = s, n;
1437
+ }, d = {}, w = function(a, s) {
1438
+ switch (s) {
1439
+ case X.L:
1440
+ return p[(a - 1) * 4 + 0];
1441
+ case X.M:
1442
+ return p[(a - 1) * 4 + 1];
1443
+ case X.Q:
1444
+ return p[(a - 1) * 4 + 2];
1445
+ case X.H:
1446
+ return p[(a - 1) * 4 + 3];
1413
1447
  default:
1414
1448
  return;
1415
1449
  }
1416
1450
  };
1417
- return d.getRSBlocks = function(a, h) {
1418
- var n = c(a, h);
1451
+ return d.getRSBlocks = function(a, s) {
1452
+ var n = w(a, s);
1419
1453
  if (typeof n > "u")
1420
- throw "bad rs block @ typeNumber:" + a + "/errorCorrectionLevel:" + h;
1421
- for (var t = n.length / 3, p = [], o = 0; o < t; o += 1)
1422
- for (var y = n[o * 3 + 0], R = n[o * 3 + 1], T = n[o * 3 + 2], W = 0; W < y; W += 1)
1423
- p.push(b(R, T));
1424
- return p;
1454
+ throw "bad rs block @ typeNumber:" + a + "/errorCorrectionLevel:" + s;
1455
+ for (var t = n.length / 3, v = [], o = 0; o < t; o += 1)
1456
+ for (var y = n[o * 3 + 0], R = n[o * 3 + 1], C = n[o * 3 + 2], Z = 0; Z < y; Z += 1)
1457
+ v.push(b(R, C));
1458
+ return v;
1425
1459
  }, d;
1426
- }(), C = function() {
1427
- var w = [], b = 0, d = {};
1460
+ }(), T = function() {
1461
+ var p = [], b = 0, d = {};
1428
1462
  return d.getBuffer = function() {
1429
- return w;
1430
- }, d.getAt = function(c) {
1431
- var a = Math.floor(c / 8);
1432
- return (w[a] >>> 7 - c % 8 & 1) == 1;
1433
- }, d.put = function(c, a) {
1434
- for (var h = 0; h < a; h += 1)
1435
- d.putBit((c >>> a - h - 1 & 1) == 1);
1463
+ return p;
1464
+ }, d.getAt = function(w) {
1465
+ var a = Math.floor(w / 8);
1466
+ return (p[a] >>> 7 - w % 8 & 1) == 1;
1467
+ }, d.put = function(w, a) {
1468
+ for (var s = 0; s < a; s += 1)
1469
+ d.putBit((w >>> a - s - 1 & 1) == 1);
1436
1470
  }, d.getLengthInBits = function() {
1437
1471
  return b;
1438
- }, d.putBit = function(c) {
1472
+ }, d.putBit = function(w) {
1439
1473
  var a = Math.floor(b / 8);
1440
- w.length <= a && w.push(0), c && (w[a] |= 128 >>> b % 8), b += 1;
1474
+ p.length <= a && p.push(0), w && (p[a] |= 128 >>> b % 8), b += 1;
1441
1475
  }, d;
1442
- }, j = function(w) {
1443
- var b = q.MODE_NUMBER, d = w, c = {};
1444
- c.getMode = function() {
1476
+ }, $ = function(p) {
1477
+ var b = q.MODE_NUMBER, d = p, w = {};
1478
+ w.getMode = function() {
1445
1479
  return b;
1446
- }, c.getLength = function(n) {
1480
+ }, w.getLength = function(n) {
1447
1481
  return d.length;
1448
- }, c.write = function(n) {
1449
- for (var t = d, p = 0; p + 2 < t.length; )
1450
- n.put(a(t.substring(p, p + 3)), 10), p += 3;
1451
- p < t.length && (t.length - p == 1 ? n.put(a(t.substring(p, p + 1)), 4) : t.length - p == 2 && n.put(a(t.substring(p, p + 2)), 7));
1482
+ }, w.write = function(n) {
1483
+ for (var t = d, v = 0; v + 2 < t.length; )
1484
+ n.put(a(t.substring(v, v + 3)), 10), v += 3;
1485
+ v < t.length && (t.length - v == 1 ? n.put(a(t.substring(v, v + 1)), 4) : t.length - v == 2 && n.put(a(t.substring(v, v + 2)), 7));
1452
1486
  };
1453
1487
  var a = function(n) {
1454
- for (var t = 0, p = 0; p < n.length; p += 1)
1455
- t = t * 10 + h(n.charAt(p));
1488
+ for (var t = 0, v = 0; v < n.length; v += 1)
1489
+ t = t * 10 + s(n.charAt(v));
1456
1490
  return t;
1457
- }, h = function(n) {
1491
+ }, s = function(n) {
1458
1492
  if ("0" <= n && n <= "9")
1459
1493
  return n.charCodeAt(0) - 48;
1460
1494
  throw "illegal char :" + n;
1461
1495
  };
1462
- return c;
1463
- }, S = function(w) {
1464
- var b = q.MODE_ALPHA_NUM, d = w, c = {};
1465
- c.getMode = function() {
1496
+ return w;
1497
+ }, D = function(p) {
1498
+ var b = q.MODE_ALPHA_NUM, d = p, w = {};
1499
+ w.getMode = function() {
1466
1500
  return b;
1467
- }, c.getLength = function(h) {
1501
+ }, w.getLength = function(s) {
1468
1502
  return d.length;
1469
- }, c.write = function(h) {
1503
+ }, w.write = function(s) {
1470
1504
  for (var n = d, t = 0; t + 1 < n.length; )
1471
- h.put(
1505
+ s.put(
1472
1506
  a(n.charAt(t)) * 45 + a(n.charAt(t + 1)),
1473
1507
  11
1474
1508
  ), t += 2;
1475
- t < n.length && h.put(a(n.charAt(t)), 6);
1509
+ t < n.length && s.put(a(n.charAt(t)), 6);
1476
1510
  };
1477
- var a = function(h) {
1478
- if ("0" <= h && h <= "9")
1479
- return h.charCodeAt(0) - 48;
1480
- if ("A" <= h && h <= "Z")
1481
- return h.charCodeAt(0) - 65 + 10;
1482
- switch (h) {
1511
+ var a = function(s) {
1512
+ if ("0" <= s && s <= "9")
1513
+ return s.charCodeAt(0) - 48;
1514
+ if ("A" <= s && s <= "Z")
1515
+ return s.charCodeAt(0) - 65 + 10;
1516
+ switch (s) {
1483
1517
  case " ":
1484
1518
  return 36;
1485
1519
  case "$":
@@ -1499,73 +1533,73 @@ function Hr() {
1499
1533
  case ":":
1500
1534
  return 44;
1501
1535
  default:
1502
- throw "illegal char :" + h;
1536
+ throw "illegal char :" + s;
1503
1537
  }
1504
1538
  };
1505
- return c;
1506
- }, H = function(w) {
1507
- var b = q.MODE_8BIT_BYTE, d = Z.stringToBytes(w), c = {};
1508
- return c.getMode = function() {
1539
+ return w;
1540
+ }, G = function(p) {
1541
+ var b = q.MODE_8BIT_BYTE, d = W.stringToBytes(p), w = {};
1542
+ return w.getMode = function() {
1509
1543
  return b;
1510
- }, c.getLength = function(a) {
1544
+ }, w.getLength = function(a) {
1511
1545
  return d.length;
1512
- }, c.write = function(a) {
1513
- for (var h = 0; h < d.length; h += 1)
1514
- a.put(d[h], 8);
1515
- }, c;
1516
- }, B = function(w) {
1517
- var b = q.MODE_KANJI, d = Z.stringToBytesFuncs.SJIS;
1546
+ }, w.write = function(a) {
1547
+ for (var s = 0; s < d.length; s += 1)
1548
+ a.put(d[s], 8);
1549
+ }, w;
1550
+ }, k = function(p) {
1551
+ var b = q.MODE_KANJI, d = W.stringToBytesFuncs.SJIS;
1518
1552
  if (!d)
1519
1553
  throw "sjis not supported.";
1520
- (function(h, n) {
1521
- var t = d(h);
1554
+ (function(s, n) {
1555
+ var t = d(s);
1522
1556
  if (t.length != 2 || (t[0] << 8 | t[1]) != n)
1523
1557
  throw "sjis not supported.";
1524
1558
  })("友", 38726);
1525
- var c = d(w), a = {};
1559
+ var w = d(p), a = {};
1526
1560
  return a.getMode = function() {
1527
1561
  return b;
1528
- }, a.getLength = function(h) {
1529
- return ~~(c.length / 2);
1530
- }, a.write = function(h) {
1531
- for (var n = c, t = 0; t + 1 < n.length; ) {
1532
- var p = (255 & n[t]) << 8 | 255 & n[t + 1];
1533
- if (33088 <= p && p <= 40956)
1534
- p -= 33088;
1535
- else if (57408 <= p && p <= 60351)
1536
- p -= 49472;
1562
+ }, a.getLength = function(s) {
1563
+ return ~~(w.length / 2);
1564
+ }, a.write = function(s) {
1565
+ for (var n = w, t = 0; t + 1 < n.length; ) {
1566
+ var v = (255 & n[t]) << 8 | 255 & n[t + 1];
1567
+ if (33088 <= v && v <= 40956)
1568
+ v -= 33088;
1569
+ else if (57408 <= v && v <= 60351)
1570
+ v -= 49472;
1537
1571
  else
1538
- throw "illegal char at " + (t + 1) + "/" + p;
1539
- p = (p >>> 8 & 255) * 192 + (p & 255), h.put(p, 13), t += 2;
1572
+ throw "illegal char at " + (t + 1) + "/" + v;
1573
+ v = (v >>> 8 & 255) * 192 + (v & 255), s.put(v, 13), t += 2;
1540
1574
  }
1541
1575
  if (t < n.length)
1542
1576
  throw "illegal char at " + (t + 1);
1543
1577
  }, a;
1544
- }, D = function() {
1545
- var w = [], b = {};
1578
+ }, N = function() {
1579
+ var p = [], b = {};
1546
1580
  return b.writeByte = function(d) {
1547
- w.push(d & 255);
1581
+ p.push(d & 255);
1548
1582
  }, b.writeShort = function(d) {
1549
1583
  b.writeByte(d), b.writeByte(d >>> 8);
1550
- }, b.writeBytes = function(d, c, a) {
1551
- c = c || 0, a = a || d.length;
1552
- for (var h = 0; h < a; h += 1)
1553
- b.writeByte(d[h + c]);
1584
+ }, b.writeBytes = function(d, w, a) {
1585
+ w = w || 0, a = a || d.length;
1586
+ for (var s = 0; s < a; s += 1)
1587
+ b.writeByte(d[s + w]);
1554
1588
  }, b.writeString = function(d) {
1555
- for (var c = 0; c < d.length; c += 1)
1556
- b.writeByte(d.charCodeAt(c));
1589
+ for (var w = 0; w < d.length; w += 1)
1590
+ b.writeByte(d.charCodeAt(w));
1557
1591
  }, b.toByteArray = function() {
1558
- return w;
1592
+ return p;
1559
1593
  }, b.toString = function() {
1560
1594
  var d = "";
1561
1595
  d += "[";
1562
- for (var c = 0; c < w.length; c += 1)
1563
- c > 0 && (d += ","), d += w[c];
1596
+ for (var w = 0; w < p.length; w += 1)
1597
+ w > 0 && (d += ","), d += p[w];
1564
1598
  return d += "]", d;
1565
1599
  }, b;
1566
1600
  }, K = function() {
1567
- var w = 0, b = 0, d = 0, c = "", a = {}, h = function(t) {
1568
- c += String.fromCharCode(n(t & 63));
1601
+ var p = 0, b = 0, d = 0, w = "", a = {}, s = function(t) {
1602
+ w += String.fromCharCode(n(t & 63));
1569
1603
  }, n = function(t) {
1570
1604
  if (!(t < 0)) {
1571
1605
  if (t < 26)
@@ -1582,18 +1616,18 @@ function Hr() {
1582
1616
  throw "n:" + t;
1583
1617
  };
1584
1618
  return a.writeByte = function(t) {
1585
- for (w = w << 8 | t & 255, b += 8, d += 1; b >= 6; )
1586
- h(w >>> b - 6), b -= 6;
1619
+ for (p = p << 8 | t & 255, b += 8, d += 1; b >= 6; )
1620
+ s(p >>> b - 6), b -= 6;
1587
1621
  }, a.flush = function() {
1588
- if (b > 0 && (h(w << 6 - b), w = 0, b = 0), d % 3 != 0)
1589
- for (var t = 3 - d % 3, p = 0; p < t; p += 1)
1590
- c += "=";
1622
+ if (b > 0 && (s(p << 6 - b), p = 0, b = 0), d % 3 != 0)
1623
+ for (var t = 3 - d % 3, v = 0; v < t; v += 1)
1624
+ w += "=";
1591
1625
  }, a.toString = function() {
1592
- return c;
1626
+ return w;
1593
1627
  }, a;
1594
- }, G = function(w) {
1595
- var b = w, d = 0, c = 0, a = 0, h = {};
1596
- h.read = function() {
1628
+ }, Q = function(p) {
1629
+ var b = p, d = 0, w = 0, a = 0, s = {};
1630
+ s.read = function() {
1597
1631
  for (; a < 8; ) {
1598
1632
  if (d >= b.length) {
1599
1633
  if (a == 0)
@@ -1605,10 +1639,10 @@ function Hr() {
1605
1639
  return a = 0, -1;
1606
1640
  if (t.match(/^\s$/))
1607
1641
  continue;
1608
- c = c << 6 | n(t.charCodeAt(0)), a += 6;
1642
+ w = w << 6 | n(t.charCodeAt(0)), a += 6;
1609
1643
  }
1610
- var p = c >>> a - 8 & 255;
1611
- return a -= 8, p;
1644
+ var v = w >>> a - 8 & 255;
1645
+ return a -= 8, v;
1612
1646
  };
1613
1647
  var n = function(t) {
1614
1648
  if (65 <= t && t <= 90)
@@ -1623,136 +1657,136 @@ function Hr() {
1623
1657
  return 63;
1624
1658
  throw "c:" + t;
1625
1659
  };
1626
- return h;
1627
- }, J = function(w, b) {
1628
- var d = w, c = b, a = new Array(w * b), h = {};
1629
- h.setPixel = function(o, y, R) {
1660
+ return s;
1661
+ }, J = function(p, b) {
1662
+ var d = p, w = b, a = new Array(p * b), s = {};
1663
+ s.setPixel = function(o, y, R) {
1630
1664
  a[y * d + o] = R;
1631
- }, h.write = function(o) {
1632
- o.writeString("GIF87a"), o.writeShort(d), o.writeShort(c), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(255), o.writeByte(255), o.writeByte(255), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(d), o.writeShort(c), o.writeByte(0);
1665
+ }, s.write = function(o) {
1666
+ o.writeString("GIF87a"), o.writeShort(d), o.writeShort(w), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(255), o.writeByte(255), o.writeByte(255), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(d), o.writeShort(w), o.writeByte(0);
1633
1667
  var y = 2, R = t(y);
1634
1668
  o.writeByte(y);
1635
- for (var T = 0; R.length - T > 255; )
1636
- o.writeByte(255), o.writeBytes(R, T, 255), T += 255;
1637
- o.writeByte(R.length - T), o.writeBytes(R, T, R.length - T), o.writeByte(0), o.writeString(";");
1669
+ for (var C = 0; R.length - C > 255; )
1670
+ o.writeByte(255), o.writeBytes(R, C, 255), C += 255;
1671
+ o.writeByte(R.length - C), o.writeBytes(R, C, R.length - C), o.writeByte(0), o.writeString(";");
1638
1672
  };
1639
1673
  var n = function(o) {
1640
- var y = o, R = 0, T = 0, W = {};
1641
- return W.write = function(U, re) {
1642
- if (U >>> re)
1674
+ var y = o, R = 0, C = 0, Z = {};
1675
+ return Z.write = function(U, ne) {
1676
+ if (U >>> ne)
1643
1677
  throw "length over";
1644
- for (; R + re >= 8; )
1645
- y.writeByte(255 & (U << R | T)), re -= 8 - R, U >>>= 8 - R, T = 0, R = 0;
1646
- T = U << R | T, R = R + re;
1647
- }, W.flush = function() {
1648
- R > 0 && y.writeByte(T);
1649
- }, W;
1678
+ for (; R + ne >= 8; )
1679
+ y.writeByte(255 & (U << R | C)), ne -= 8 - R, U >>>= 8 - R, C = 0, R = 0;
1680
+ C = U << R | C, R = R + ne;
1681
+ }, Z.flush = function() {
1682
+ R > 0 && y.writeByte(C);
1683
+ }, Z;
1650
1684
  }, t = function(o) {
1651
- for (var y = 1 << o, R = (1 << o) + 1, T = o + 1, W = p(), U = 0; U < y; U += 1)
1652
- W.add(String.fromCharCode(U));
1653
- W.add(String.fromCharCode(y)), W.add(String.fromCharCode(R));
1654
- var re = D(), oe = n(re);
1655
- oe.write(y, T);
1656
- var L = 0, k = String.fromCharCode(a[L]);
1685
+ for (var y = 1 << o, R = (1 << o) + 1, C = o + 1, Z = v(), U = 0; U < y; U += 1)
1686
+ Z.add(String.fromCharCode(U));
1687
+ Z.add(String.fromCharCode(y)), Z.add(String.fromCharCode(R));
1688
+ var ne = N(), oe = n(ne);
1689
+ oe.write(y, C);
1690
+ var L = 0, P = String.fromCharCode(a[L]);
1657
1691
  for (L += 1; L < a.length; ) {
1658
1692
  var ue = String.fromCharCode(a[L]);
1659
- L += 1, W.contains(k + ue) ? k = k + ue : (oe.write(W.indexOf(k), T), W.size() < 4095 && (W.size() == 1 << T && (T += 1), W.add(k + ue)), k = ue);
1693
+ L += 1, Z.contains(P + ue) ? P = P + ue : (oe.write(Z.indexOf(P), C), Z.size() < 4095 && (Z.size() == 1 << C && (C += 1), Z.add(P + ue)), P = ue);
1660
1694
  }
1661
- return oe.write(W.indexOf(k), T), oe.write(R, T), oe.flush(), re.toByteArray();
1662
- }, p = function() {
1695
+ return oe.write(Z.indexOf(P), C), oe.write(R, C), oe.flush(), ne.toByteArray();
1696
+ }, v = function() {
1663
1697
  var o = {}, y = 0, R = {};
1664
- return R.add = function(T) {
1665
- if (R.contains(T))
1666
- throw "dup key:" + T;
1667
- o[T] = y, y += 1;
1698
+ return R.add = function(C) {
1699
+ if (R.contains(C))
1700
+ throw "dup key:" + C;
1701
+ o[C] = y, y += 1;
1668
1702
  }, R.size = function() {
1669
1703
  return y;
1670
- }, R.indexOf = function(T) {
1671
- return o[T];
1672
- }, R.contains = function(T) {
1673
- return typeof o[T] < "u";
1704
+ }, R.indexOf = function(C) {
1705
+ return o[C];
1706
+ }, R.contains = function(C) {
1707
+ return typeof o[C] < "u";
1674
1708
  }, R;
1675
1709
  };
1676
- return h;
1677
- }, O = function(w, b, d) {
1678
- for (var c = J(w, b), a = 0; a < b; a += 1)
1679
- for (var h = 0; h < w; h += 1)
1680
- c.setPixel(h, a, d(h, a));
1681
- var n = D();
1682
- c.write(n);
1683
- for (var t = K(), p = n.toByteArray(), o = 0; o < p.length; o += 1)
1684
- t.writeByte(p[o]);
1710
+ return s;
1711
+ }, O = function(p, b, d) {
1712
+ for (var w = J(p, b), a = 0; a < b; a += 1)
1713
+ for (var s = 0; s < p; s += 1)
1714
+ w.setPixel(s, a, d(s, a));
1715
+ var n = N();
1716
+ w.write(n);
1717
+ for (var t = K(), v = n.toByteArray(), o = 0; o < v.length; o += 1)
1718
+ t.writeByte(v[o]);
1685
1719
  return t.flush(), "data:image/gif;base64," + t;
1686
1720
  };
1687
- return Z;
1721
+ return W;
1688
1722
  }();
1689
1723
  (function() {
1690
- ie.stringToBytesFuncs["UTF-8"] = function(Z) {
1691
- function q(Y) {
1692
- for (var $ = [], M = 0; M < Y.length; M++) {
1693
- var x = Y.charCodeAt(M);
1694
- x < 128 ? $.push(x) : x < 2048 ? $.push(
1724
+ ee.stringToBytesFuncs["UTF-8"] = function(W) {
1725
+ function q(X) {
1726
+ for (var F = [], M = 0; M < X.length; M++) {
1727
+ var x = X.charCodeAt(M);
1728
+ x < 128 ? F.push(x) : x < 2048 ? F.push(
1695
1729
  192 | x >> 6,
1696
1730
  128 | x & 63
1697
- ) : x < 55296 || x >= 57344 ? $.push(
1731
+ ) : x < 55296 || x >= 57344 ? F.push(
1698
1732
  224 | x >> 12,
1699
1733
  128 | x >> 6 & 63,
1700
1734
  128 | x & 63
1701
- ) : (M++, x = 65536 + ((x & 1023) << 10 | Y.charCodeAt(M) & 1023), $.push(
1735
+ ) : (M++, x = 65536 + ((x & 1023) << 10 | X.charCodeAt(M) & 1023), F.push(
1702
1736
  240 | x >> 18,
1703
1737
  128 | x >> 12 & 63,
1704
1738
  128 | x >> 6 & 63,
1705
1739
  128 | x & 63
1706
1740
  ));
1707
1741
  }
1708
- return $;
1742
+ return F;
1709
1743
  }
1710
- return q(Z);
1744
+ return q(W);
1711
1745
  };
1712
- })(), function(Z) {
1713
- V.exports = Z();
1746
+ })(), function(W) {
1747
+ j.exports = W();
1714
1748
  }(function() {
1715
- return ie;
1749
+ return ee;
1716
1750
  });
1717
- }(ht)), ht.exports;
1751
+ }(dt)), dt.exports;
1718
1752
  }
1719
- var Bt;
1720
- function Gr() {
1721
- if (Bt) return Te;
1722
- Bt = 1;
1723
- var V = Te && Te.__extends || /* @__PURE__ */ function() {
1724
- var $ = function(M, x) {
1725
- return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, m) {
1753
+ var Nt;
1754
+ function Qr() {
1755
+ if (Nt) return Ce;
1756
+ Nt = 1;
1757
+ var j = Ce && Ce.__extends || /* @__PURE__ */ function() {
1758
+ var F = function(M, x) {
1759
+ return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, m) {
1726
1760
  g.__proto__ = m;
1727
1761
  } || function(g, m) {
1728
- for (var C in m) Object.prototype.hasOwnProperty.call(m, C) && (g[C] = m[C]);
1729
- }, $(M, x);
1762
+ for (var T in m) Object.prototype.hasOwnProperty.call(m, T) && (g[T] = m[T]);
1763
+ }, F(M, x);
1730
1764
  };
1731
1765
  return function(M, x) {
1732
1766
  if (typeof x != "function" && x !== null)
1733
1767
  throw new TypeError("Class extends value " + String(x) + " is not a constructor or null");
1734
- $(M, x);
1768
+ F(M, x);
1735
1769
  function g() {
1736
1770
  this.constructor = M;
1737
1771
  }
1738
1772
  M.prototype = x === null ? Object.create(x) : (g.prototype = x.prototype, new g());
1739
1773
  };
1740
- }(), z = Te && Te.__assign || function() {
1741
- return z = Object.assign || function($) {
1774
+ }(), Y = Ce && Ce.__assign || function() {
1775
+ return Y = Object.assign || function(F) {
1742
1776
  for (var M, x = 1, g = arguments.length; x < g; x++) {
1743
1777
  M = arguments[x];
1744
- for (var m in M) Object.prototype.hasOwnProperty.call(M, m) && ($[m] = M[m]);
1778
+ for (var m in M) Object.prototype.hasOwnProperty.call(M, m) && (F[m] = M[m]);
1745
1779
  }
1746
- return $;
1747
- }, z.apply(this, arguments);
1780
+ return F;
1781
+ }, Y.apply(this, arguments);
1748
1782
  };
1749
- Object.defineProperty(Te, "__esModule", { value: !0 }), Te.QRCode = void 0;
1750
- var ie = Fr(), Z = Hr(), q = Nt, Y = (
1783
+ Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.QRCode = void 0;
1784
+ var ee = Hr(), W = Gr(), q = Ot, X = (
1751
1785
  /** @class */
1752
- function($) {
1753
- V(M, $);
1786
+ function(F) {
1787
+ j(M, F);
1754
1788
  function M(x) {
1755
- var g = $.call(this, x) || this;
1789
+ var g = F.call(this, x) || this;
1756
1790
  return g.canvasRef = q.createRef(), g;
1757
1791
  }
1758
1792
  return M.prototype.download = function(x, g) {
@@ -1770,102 +1804,102 @@ function Gr() {
1770
1804
  m = "image/png";
1771
1805
  break;
1772
1806
  }
1773
- var C = this.canvasRef.current.toDataURL(m, 1), j = document.createElement("a");
1774
- j.download = g ?? "react-qrcode-logo", j.href = C, j.click();
1807
+ var T = this.canvasRef.current.toDataURL(m, 1), $ = document.createElement("a");
1808
+ $.download = g ?? "react-qrcode-logo", $.href = T, $.click();
1775
1809
  }
1776
1810
  }, M.prototype.utf16to8 = function(x) {
1777
- var g = "", m, C, j = x.length;
1778
- for (m = 0; m < j; m++)
1779
- C = x.charCodeAt(m), C >= 1 && C <= 127 ? g += x.charAt(m) : C > 2047 ? (g += String.fromCharCode(224 | C >> 12 & 15), g += String.fromCharCode(128 | C >> 6 & 63), g += String.fromCharCode(128 | C >> 0 & 63)) : (g += String.fromCharCode(192 | C >> 6 & 31), g += String.fromCharCode(128 | C >> 0 & 63));
1811
+ var g = "", m, T, $ = x.length;
1812
+ for (m = 0; m < $; m++)
1813
+ T = x.charCodeAt(m), T >= 1 && T <= 127 ? g += x.charAt(m) : T > 2047 ? (g += String.fromCharCode(224 | T >> 12 & 15), g += String.fromCharCode(128 | T >> 6 & 63), g += String.fromCharCode(128 | T >> 0 & 63)) : (g += String.fromCharCode(192 | T >> 6 & 31), g += String.fromCharCode(128 | T >> 0 & 63));
1780
1814
  return g;
1781
- }, M.prototype.drawRoundedSquare = function(x, g, m, C, j, S, H, B) {
1782
- B.lineWidth = x, B.fillStyle = j, B.strokeStyle = j, m += x / 2, g += x / 2, C -= x, Array.isArray(S) || (S = [S, S, S, S]), S = S.map(function(O) {
1783
- return O = Math.min(O, C / 2), O < 0 ? 0 : O;
1815
+ }, M.prototype.drawRoundedSquare = function(x, g, m, T, $, D, G, k) {
1816
+ k.lineWidth = x, k.fillStyle = $, k.strokeStyle = $, m += x / 2, g += x / 2, T -= x, Array.isArray(D) || (D = [D, D, D, D]), D = D.map(function(O) {
1817
+ return O = Math.min(O, T / 2), O < 0 ? 0 : O;
1784
1818
  });
1785
- var D = S[0] || 0, K = S[1] || 0, G = S[2] || 0, J = S[3] || 0;
1786
- B.beginPath(), B.moveTo(g + D, m), B.lineTo(g + C - K, m), K && B.quadraticCurveTo(g + C, m, g + C, m + K), B.lineTo(g + C, m + C - G), G && B.quadraticCurveTo(g + C, m + C, g + C - G, m + C), B.lineTo(g + J, m + C), J && B.quadraticCurveTo(g, m + C, g, m + C - J), B.lineTo(g, m + D), D && B.quadraticCurveTo(g, m, g + D, m), B.closePath(), B.stroke(), H && B.fill();
1787
- }, M.prototype.drawPositioningPattern = function(x, g, m, C, j, S, H) {
1788
- H === void 0 && (H = [0, 0, 0, 0]);
1789
- var B = Math.ceil(g), D, K;
1790
- typeof H != "number" && !Array.isArray(H) ? (D = H.outer || 0, K = H.inner || 0) : (D = H, K = D);
1791
- var G, J;
1792
- typeof S != "string" ? (G = S.outer, J = S.inner) : (G = S, J = S);
1793
- var O = C * g + m, w = j * g + m, b = g * 7;
1794
- this.drawRoundedSquare(B, w, O, b, G, D, !1, x), b = g * 3, O += g * 2, w += g * 2, this.drawRoundedSquare(B, w, O, b, J, K, !0, x);
1819
+ var N = D[0] || 0, K = D[1] || 0, Q = D[2] || 0, J = D[3] || 0;
1820
+ k.beginPath(), k.moveTo(g + N, m), k.lineTo(g + T - K, m), K && k.quadraticCurveTo(g + T, m, g + T, m + K), k.lineTo(g + T, m + T - Q), Q && k.quadraticCurveTo(g + T, m + T, g + T - Q, m + T), k.lineTo(g + J, m + T), J && k.quadraticCurveTo(g, m + T, g, m + T - J), k.lineTo(g, m + N), N && k.quadraticCurveTo(g, m, g + N, m), k.closePath(), k.stroke(), G && k.fill();
1821
+ }, M.prototype.drawPositioningPattern = function(x, g, m, T, $, D, G) {
1822
+ G === void 0 && (G = [0, 0, 0, 0]);
1823
+ var k = Math.ceil(g), N, K;
1824
+ typeof G != "number" && !Array.isArray(G) ? (N = G.outer || 0, K = G.inner || 0) : (N = G, K = N);
1825
+ var Q, J;
1826
+ typeof D != "string" ? (Q = D.outer, J = D.inner) : (Q = D, J = D);
1827
+ var O = T * g + m, p = $ * g + m, b = g * 7;
1828
+ this.drawRoundedSquare(k, p, O, b, Q, N, !1, x), b = g * 3, O += g * 2, p += g * 2, this.drawRoundedSquare(k, p, O, b, J, K, !0, x);
1795
1829
  }, M.prototype.isInPositioninZone = function(x, g, m) {
1796
- return m.some(function(C) {
1797
- return g >= C.row && g <= C.row + 7 && x >= C.col && x <= C.col + 7;
1830
+ return m.some(function(T) {
1831
+ return g >= T.row && g <= T.row + 7 && x >= T.col && x <= T.col + 7;
1798
1832
  });
1799
1833
  }, M.prototype.transformPixelLengthIntoNumberOfCells = function(x, g) {
1800
1834
  return x / g;
1801
- }, M.prototype.isCoordinateInImage = function(x, g, m, C, j, S, H, B) {
1802
- if (B) {
1803
- var D = 2, K = this.transformPixelLengthIntoNumberOfCells(j, H), G = this.transformPixelLengthIntoNumberOfCells(S, H), J = this.transformPixelLengthIntoNumberOfCells(m, H) - 1, O = this.transformPixelLengthIntoNumberOfCells(C, H) - 1;
1804
- return g >= K - D && g <= K + J + D && x >= G - D && x <= G + O + D;
1835
+ }, M.prototype.isCoordinateInImage = function(x, g, m, T, $, D, G, k) {
1836
+ if (k) {
1837
+ var N = 2, K = this.transformPixelLengthIntoNumberOfCells($, G), Q = this.transformPixelLengthIntoNumberOfCells(D, G), J = this.transformPixelLengthIntoNumberOfCells(m, G) - 1, O = this.transformPixelLengthIntoNumberOfCells(T, G) - 1;
1838
+ return g >= K - N && g <= K + J + N && x >= Q - N && x <= Q + O + N;
1805
1839
  } else
1806
1840
  return !1;
1807
1841
  }, M.prototype.shouldComponentUpdate = function(x) {
1808
- return !ie(this.props, x);
1842
+ return !ee(this.props, x);
1809
1843
  }, M.prototype.componentDidMount = function() {
1810
1844
  this.update();
1811
1845
  }, M.prototype.componentDidUpdate = function() {
1812
1846
  this.update();
1813
1847
  }, M.prototype.update = function() {
1814
- var x, g = this.props, m = g.value, C = g.ecLevel, j = g.enableCORS, S = g.bgColor, H = g.fgColor, B = g.logoImage, D = g.logoOpacity, K = g.logoOnLoad, G = g.removeQrCodeBehindLogo, J = g.qrStyle, O = g.eyeRadius, w = g.eyeColor, b = g.logoPaddingStyle, d = +this.props.size, c = +this.props.quietZone, a = this.props.logoWidth ? +this.props.logoWidth : 0, h = this.props.logoHeight ? +this.props.logoHeight : 0, n = this.props.logoPadding ? +this.props.logoPadding : 0, t = Z(0, C);
1848
+ var x, g = this.props, m = g.value, T = g.ecLevel, $ = g.enableCORS, D = g.bgColor, G = g.fgColor, k = g.logoImage, N = g.logoOpacity, K = g.logoOnLoad, Q = g.removeQrCodeBehindLogo, J = g.qrStyle, O = g.eyeRadius, p = g.eyeColor, b = g.logoPaddingStyle, d = +this.props.size, w = +this.props.quietZone, a = this.props.logoWidth ? +this.props.logoWidth : 0, s = this.props.logoHeight ? +this.props.logoHeight : 0, n = this.props.logoPadding ? +this.props.logoPadding : 0, t = W(0, T);
1815
1849
  t.addData(this.utf16to8(m)), t.make();
1816
- var p = (x = this.canvasRef) === null || x === void 0 ? void 0 : x.current, o = p.getContext("2d"), y = d + 2 * c, R = t.getModuleCount(), T = d / R, W = window.devicePixelRatio || 1;
1817
- p.height = p.width = y * W, o.scale(W, W), o.fillStyle = S, o.fillRect(0, 0, y, y);
1818
- var U = c, re = [
1850
+ var v = (x = this.canvasRef) === null || x === void 0 ? void 0 : x.current, o = v.getContext("2d"), y = d + 2 * w, R = t.getModuleCount(), C = d / R, Z = window.devicePixelRatio || 1;
1851
+ v.height = v.width = y * Z, o.scale(Z, Z), o.fillStyle = D, o.fillRect(0, 0, y, y);
1852
+ var U = w, ne = [
1819
1853
  { row: 0, col: 0 },
1820
1854
  { row: 0, col: R - 7 },
1821
1855
  { row: R - 7, col: 0 }
1822
1856
  ];
1823
- if (o.strokeStyle = H, J === "dots") {
1824
- o.fillStyle = H;
1825
- for (var oe = T / 2, L = 0; L < R; L++)
1826
- for (var k = 0; k < R; k++)
1827
- t.isDark(L, k) && !this.isInPositioninZone(L, k, re) && (o.beginPath(), o.arc(Math.round(k * T) + oe + U, Math.round(L * T) + oe + U, oe / 100 * 75, 0, 2 * Math.PI, !1), o.closePath(), o.fill());
1857
+ if (o.strokeStyle = G, J === "dots") {
1858
+ o.fillStyle = G;
1859
+ for (var oe = C / 2, L = 0; L < R; L++)
1860
+ for (var P = 0; P < R; P++)
1861
+ t.isDark(L, P) && !this.isInPositioninZone(L, P, ne) && (o.beginPath(), o.arc(Math.round(P * C) + oe + U, Math.round(L * C) + oe + U, oe / 100 * 75, 0, 2 * Math.PI, !1), o.closePath(), o.fill());
1828
1862
  } else if (J === "fluid") {
1829
- for (var oe = Math.ceil(T / 2), L = 0; L < R; L++)
1830
- for (var k = 0; k < R; k++)
1831
- if (t.isDark(L, k) && !this.isInPositioninZone(L, k, re)) {
1863
+ for (var oe = Math.ceil(C / 2), L = 0; L < R; L++)
1864
+ for (var P = 0; P < R; P++)
1865
+ if (t.isDark(L, P) && !this.isInPositioninZone(L, P, ne)) {
1832
1866
  var ue = [!1, !1, !1, !1];
1833
- L > 0 && !t.isDark(L - 1, k) && k > 0 && !t.isDark(L, k - 1) && (ue[0] = !0), L > 0 && !t.isDark(L - 1, k) && k < R - 1 && !t.isDark(L, k + 1) && (ue[1] = !0), L < R - 1 && !t.isDark(L + 1, k) && k < R - 1 && !t.isDark(L, k + 1) && (ue[2] = !0), L < R - 1 && !t.isDark(L + 1, k) && k > 0 && !t.isDark(L, k - 1) && (ue[3] = !0);
1834
- var Q = Math.ceil((k + 1) * T) - Math.floor(k * T), se = Math.ceil((L + 1) * T) - Math.floor(L * T);
1835
- o.fillStyle = H, o.beginPath(), o.arc(Math.round(k * T) + oe + U, Math.round(L * T) + oe + U, oe, 0, 2 * Math.PI, !1), o.closePath(), o.fill(), ue[0] || o.fillRect(Math.round(k * T) + U, Math.round(L * T) + U, Q / 2, se / 2), ue[1] || o.fillRect(Math.round(k * T) + U + Math.floor(Q / 2), Math.round(L * T) + U, Q / 2, se / 2), ue[2] || o.fillRect(Math.round(k * T) + U + Math.floor(Q / 2), Math.round(L * T) + U + Math.floor(se / 2), Q / 2, se / 2), ue[3] || o.fillRect(Math.round(k * T) + U, Math.round(L * T) + U + Math.floor(se / 2), Q / 2, se / 2);
1867
+ L > 0 && !t.isDark(L - 1, P) && P > 0 && !t.isDark(L, P - 1) && (ue[0] = !0), L > 0 && !t.isDark(L - 1, P) && P < R - 1 && !t.isDark(L, P + 1) && (ue[1] = !0), L < R - 1 && !t.isDark(L + 1, P) && P < R - 1 && !t.isDark(L, P + 1) && (ue[2] = !0), L < R - 1 && !t.isDark(L + 1, P) && P > 0 && !t.isDark(L, P - 1) && (ue[3] = !0);
1868
+ var V = Math.ceil((P + 1) * C) - Math.floor(P * C), se = Math.ceil((L + 1) * C) - Math.floor(L * C);
1869
+ o.fillStyle = G, o.beginPath(), o.arc(Math.round(P * C) + oe + U, Math.round(L * C) + oe + U, oe, 0, 2 * Math.PI, !1), o.closePath(), o.fill(), ue[0] || o.fillRect(Math.round(P * C) + U, Math.round(L * C) + U, V / 2, se / 2), ue[1] || o.fillRect(Math.round(P * C) + U + Math.floor(V / 2), Math.round(L * C) + U, V / 2, se / 2), ue[2] || o.fillRect(Math.round(P * C) + U + Math.floor(V / 2), Math.round(L * C) + U + Math.floor(se / 2), V / 2, se / 2), ue[3] || o.fillRect(Math.round(P * C) + U, Math.round(L * C) + U + Math.floor(se / 2), V / 2, se / 2);
1836
1870
  }
1837
1871
  } else
1838
1872
  for (var L = 0; L < R; L++)
1839
- for (var k = 0; k < R; k++)
1840
- if (t.isDark(L, k) && !this.isInPositioninZone(L, k, re)) {
1841
- o.fillStyle = H;
1842
- var Q = Math.ceil((k + 1) * T) - Math.floor(k * T), se = Math.ceil((L + 1) * T) - Math.floor(L * T);
1843
- o.fillRect(Math.round(k * T) + U, Math.round(L * T) + U, Q, se);
1873
+ for (var P = 0; P < R; P++)
1874
+ if (t.isDark(L, P) && !this.isInPositioninZone(L, P, ne)) {
1875
+ o.fillStyle = G;
1876
+ var V = Math.ceil((P + 1) * C) - Math.floor(P * C), se = Math.ceil((L + 1) * C) - Math.floor(L * C);
1877
+ o.fillRect(Math.round(P * C) + U, Math.round(L * C) + U, V, se);
1844
1878
  }
1845
1879
  for (var _e = 0; _e < 3; _e++) {
1846
- var s = re[_e], L = s.row, k = s.col, f = O, i = void 0;
1847
- Array.isArray(f) && (f = f[_e]), typeof f == "number" && (f = [f, f, f, f]), w ? Array.isArray(w) ? i = w[_e] : i = w : i = H, this.drawPositioningPattern(o, T, U, L, k, i, f);
1880
+ var f = ne[_e], L = f.row, P = f.col, u = O, i = void 0;
1881
+ Array.isArray(u) && (u = u[_e]), typeof u == "number" && (u = [u, u, u, u]), p ? Array.isArray(p) ? i = p[_e] : i = p : i = G, this.drawPositioningPattern(o, C, U, L, P, i, u);
1848
1882
  }
1849
- if (B) {
1850
- var u = new Image();
1851
- j && (u.crossOrigin = "Anonymous"), u.onload = function(v) {
1883
+ if (k) {
1884
+ var l = new Image();
1885
+ $ && (l.crossOrigin = "Anonymous"), l.onload = function(h) {
1852
1886
  o.save();
1853
- var _ = a || d * 0.2, I = h || _, E = (d - _) / 2, X = (d - I) / 2;
1854
- if (G || n) {
1855
- o.beginPath(), o.strokeStyle = S, o.fillStyle = S;
1856
- var ee = _ + 2 * n, N = I + 2 * n, le = E + U - n, ce = X + U - n;
1887
+ var _ = a || d * 0.2, I = s || _, E = (d - _) / 2, z = (d - I) / 2;
1888
+ if (Q || n) {
1889
+ o.beginPath(), o.strokeStyle = D, o.fillStyle = D;
1890
+ var te = _ + 2 * n, B = I + 2 * n, le = E + U - n, ce = z + U - n;
1857
1891
  if (b === "circle") {
1858
- var ke = le + ee / 2, Be = ce + N / 2;
1859
- o.ellipse(ke, Be, ee / 2, N / 2, 0, 0, 2 * Math.PI), o.stroke(), o.fill();
1892
+ var ke = le + te / 2, Be = ce + B / 2;
1893
+ o.ellipse(ke, Be, te / 2, B / 2, 0, 0, 2 * Math.PI), o.stroke(), o.fill();
1860
1894
  } else
1861
- o.fillRect(le, ce, ee, N);
1895
+ o.fillRect(le, ce, te, B);
1862
1896
  }
1863
- o.globalAlpha = D, o.drawImage(u, E + U, X + U, _, I), o.restore(), K && K(v);
1864
- }, u.src = B;
1897
+ o.globalAlpha = N, o.drawImage(l, E + U, z + U, _, I), o.restore(), K && K(h);
1898
+ }, l.src = k;
1865
1899
  }
1866
1900
  }, M.prototype.render = function() {
1867
1901
  var x, g = +this.props.size + 2 * +this.props.quietZone;
1868
- return q.createElement("canvas", { id: (x = this.props.id) !== null && x !== void 0 ? x : "react-qrcode-logo", height: g, width: g, style: z({ height: g + "px", width: g + "px" }, this.props.style), ref: this.canvasRef });
1902
+ return q.createElement("canvas", { id: (x = this.props.id) !== null && x !== void 0 ? x : "react-qrcode-logo", height: g, width: g, style: Y({ height: g + "px", width: g + "px" }, this.props.style), ref: this.canvasRef });
1869
1903
  }, M.defaultProps = {
1870
1904
  value: "https://reactjs.org/",
1871
1905
  ecLevel: "M",
@@ -1881,17 +1915,17 @@ function Gr() {
1881
1915
  }, M;
1882
1916
  }(q.Component)
1883
1917
  );
1884
- return Te.QRCode = Y, Te;
1918
+ return Ce.QRCode = X, Ce;
1885
1919
  }
1886
- var Ot = Gr();
1887
- const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v-justify-center", children: [
1888
- /* @__PURE__ */ P(
1920
+ var qt = Qr();
1921
+ const jt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v-justify-center", children: [
1922
+ /* @__PURE__ */ S(
1889
1923
  "svg",
1890
1924
  {
1891
1925
  className: "v-h-16 v-w-16 v-animate-circular-rotate",
1892
1926
  viewBox: "25 25 50 50",
1893
1927
  xmlns: "http://www.w3.org/2000/svg",
1894
- children: /* @__PURE__ */ P(
1928
+ children: /* @__PURE__ */ S(
1895
1929
  "circle",
1896
1930
  {
1897
1931
  className: "v-circular-path",
@@ -1904,7 +1938,7 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1904
1938
  )
1905
1939
  }
1906
1940
  ),
1907
- /* @__PURE__ */ P("style", { children: `
1941
+ /* @__PURE__ */ S("style", { children: `
1908
1942
  @keyframes v-circular-rotate {
1909
1943
  100% {
1910
1944
  transform: rotate(360deg);
@@ -1936,31 +1970,31 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1936
1970
  animation: v-circular-dash 1.4s ease-in-out infinite;
1937
1971
  }
1938
1972
  ` })
1939
- ] }), Wr = ({
1940
- title: V,
1941
- containerClass: z
1973
+ ] }), Zr = ({
1974
+ title: j,
1975
+ containerClass: Y
1942
1976
  }) => {
1943
- const ie = (/* @__PURE__ */ new Date()).getFullYear(), [Z, q] = ge(""), [Y, $] = ge(""), [M, x] = ge(!1), {
1977
+ const ee = (/* @__PURE__ */ new Date()).getFullYear(), [W, q] = ge(""), [X, F] = ge(""), [M, x] = ge(!1), {
1944
1978
  apiUrl: g,
1945
1979
  clientId: m,
1946
- codeChallenge: C,
1947
- authRequestId: j,
1948
- authRequestIdExpires: S,
1949
- setIsAuthenticating: H,
1950
- isAuthenticating: B,
1951
- token: D,
1980
+ codeChallenge: T,
1981
+ authRequestId: $,
1982
+ authRequestIdExpires: D,
1983
+ setIsAuthenticating: G,
1984
+ isAuthenticating: k,
1985
+ token: N,
1952
1986
  setAuthError: K
1953
- } = We(je);
1954
- Ke(() => {
1955
- if (C && j && S) {
1956
- const O = S.getTime() / 1e3, w = `c=${C},r=${j},e=${O},a=${m}`;
1957
- $(w);
1958
- }
1959
- }, [m, j, S, C]);
1960
- const G = Ie(
1987
+ } = Ze($e);
1988
+ je(() => {
1989
+ if (T && $ && D) {
1990
+ const O = D.getTime() / 1e3, p = `c=${T},r=${$},e=${O},a=${m}`;
1991
+ F(p);
1992
+ }
1993
+ }, [m, $, D, T]);
1994
+ const Q = Ie(
1961
1995
  async (O) => {
1962
1996
  try {
1963
- const w = await fetch(
1997
+ const p = await fetch(
1964
1998
  `${g}/v-plus/auth/req?cid=${m}`,
1965
1999
  {
1966
2000
  method: "POST",
@@ -1970,50 +2004,50 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1970
2004
  },
1971
2005
  body: JSON.stringify(O)
1972
2006
  }
1973
- ), b = await w.json();
1974
- if (!w.ok || b.ok === !1) {
2007
+ ), b = await p.json();
2008
+ if (!p.ok || b.ok === !1) {
1975
2009
  K(
1976
- `Auth request failed: ${b.message || w.status}`
2010
+ `Auth request failed: ${b.message || p.status}`
1977
2011
  );
1978
2012
  return;
1979
2013
  }
1980
2014
  return b;
1981
- } catch (w) {
1982
- K(`Auth request failed: ${w}`);
2015
+ } catch (p) {
2016
+ K(`Auth request failed: ${p}`);
1983
2017
  }
1984
2018
  },
1985
2019
  [g, m, K]
1986
2020
  ), J = Ie(async () => {
1987
2021
  x(!0);
1988
2022
  try {
1989
- if (!Z) {
2023
+ if (!W) {
1990
2024
  K("Invalid login. Email or Abaxx ID is required.");
1991
2025
  return;
1992
2026
  }
1993
- const O = await G({
1994
- alias: Z,
1995
- code_challenge: C,
1996
- request_id: j
2027
+ const O = await Q({
2028
+ alias: W,
2029
+ code_challenge: T,
2030
+ request_id: $
1997
2031
  });
1998
- O != null && O.ok ? H(!0) : !(O != null && O.ok) && (O == null ? void 0 : O.message) === "Unable to request auth." && K("Invalid login. Please use your existing Email or Abaxx ID.");
2032
+ O != null && O.ok ? G(!0) : !(O != null && O.ok) && (O == null ? void 0 : O.message) === "Unable to request auth." && K("Invalid login. Please use your existing Email or Abaxx ID.");
1999
2033
  } catch (O) {
2000
2034
  K("Something went wrong. Please try again later."), console.error(O);
2001
2035
  }
2002
2036
  x(!1);
2003
- }, [C, j, Z, x, H, G, K]);
2004
- return /* @__PURE__ */ P(Ve, { children: /* @__PURE__ */ he(
2037
+ }, [T, $, W, x, G, Q, K]);
2038
+ return /* @__PURE__ */ S(We, { children: /* @__PURE__ */ he(
2005
2039
  "div",
2006
2040
  {
2007
- className: `v-auth-container v-grid v-grid-responsive v-h-screen v-bg-white ${z}`,
2041
+ className: `v-auth-container v-grid v-grid-responsive v-h-screen v-bg-white ${Y}`,
2008
2042
  children: [
2009
- /* @__PURE__ */ P(
2043
+ /* @__PURE__ */ S(
2010
2044
  "div",
2011
2045
  {
2012
2046
  className: "v-relative v-bg-left v-bg-cover v-bg-no-repeat v-h-full",
2013
2047
  style: {
2014
2048
  backgroundImage: "url('https://content.abaxx.com/assets/static/email-bg-1.png')"
2015
2049
  },
2016
- children: /* @__PURE__ */ P(
2050
+ children: /* @__PURE__ */ S(
2017
2051
  "div",
2018
2052
  {
2019
2053
  className: "divider v-h-full v-absolute v-bg-white",
@@ -2023,7 +2057,7 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2023
2057
  }
2024
2058
  ),
2025
2059
  /* @__PURE__ */ he("div", { className: "v-flex v-flex-col v-items-center v-justify-center v-px-4", children: [
2026
- /* @__PURE__ */ P(
2060
+ /* @__PURE__ */ S(
2027
2061
  "img",
2028
2062
  {
2029
2063
  src: "https://content.abaxx.com/assets/static/abaxx-logo.png",
@@ -2033,11 +2067,11 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2033
2067
  height: 56
2034
2068
  }
2035
2069
  ),
2036
- !D && !B ? /* @__PURE__ */ he(Ve, { children: [
2037
- /* @__PURE__ */ P("div", { className: "v-mb-8", children: j && Y ? /* @__PURE__ */ P(
2038
- Ot.QRCode,
2070
+ !N && !k ? /* @__PURE__ */ he(We, { children: [
2071
+ /* @__PURE__ */ S("div", { className: "v-mb-8", children: $ && X ? /* @__PURE__ */ S(
2072
+ qt.QRCode,
2039
2073
  {
2040
- value: Y,
2074
+ value: X,
2041
2075
  size: 130,
2042
2076
  fgColor: "#e60100",
2043
2077
  qrStyle: "dots",
@@ -2046,17 +2080,17 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2046
2080
  logoHeight: 20,
2047
2081
  quietZone: 0
2048
2082
  }
2049
- ) : /* @__PURE__ */ P("div", { className: "v-w-130 v-h-130 v-flex v-items-center v-justify-center", children: /* @__PURE__ */ P(qt, {}) }) }),
2050
- /* @__PURE__ */ P("h1", { className: "v-text-black v-text-xl v-tracking-wide v-mb-4 v-font-medium", children: V || "Verifier+ Login" }),
2051
- /* @__PURE__ */ P("p", { className: "v-text-gray-400 v-font-semibold v-mb-6 v-text-sm", children: "Sign in using the latest version of Verifier+ or enter Abaxx ID" }),
2083
+ ) : /* @__PURE__ */ S("div", { className: "v-w-130 v-h-130 v-flex v-items-center v-justify-center", children: /* @__PURE__ */ S(jt, {}) }) }),
2084
+ /* @__PURE__ */ S("h1", { className: "v-text-black v-text-xl v-tracking-wide v-mb-4 v-font-medium", children: j || "Verifier+ Login" }),
2085
+ /* @__PURE__ */ S("p", { className: "v-text-gray-400 v-font-semibold v-mb-6 v-text-sm", children: "Sign in using the latest version of Verifier+ or enter Abaxx ID" }),
2052
2086
  /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2053
- /* @__PURE__ */ P(
2087
+ /* @__PURE__ */ S(
2054
2088
  "input",
2055
2089
  {
2056
2090
  type: "text",
2057
2091
  className: "v-input v-w-full v-h-10 v-mb-4 v-rounded v-bg-transparent v-text-gray-600 v-border-gray-400 v-border v-px-2 v-text-center",
2058
2092
  placeholder: "Enter Email or Abaxx ID",
2059
- value: Z,
2093
+ value: W,
2060
2094
  onChange: (O) => q(O.target.value),
2061
2095
  disabled: M
2062
2096
  }
@@ -2065,10 +2099,10 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2065
2099
  "button",
2066
2100
  {
2067
2101
  className: "v-button v-h-10 v-w-full v-bg-red v-text-white v-text-base v-font-semibold v-flex v-items-center v-gap-2 v-justify-center",
2068
- disabled: M || !Z || !j,
2102
+ disabled: M || !W || !$,
2069
2103
  onClick: J,
2070
2104
  children: [
2071
- M && /* @__PURE__ */ P(
2105
+ M && /* @__PURE__ */ S(
2072
2106
  "svg",
2073
2107
  {
2074
2108
  xmlns: "http://www.w3.org/2000/svg",
@@ -2081,7 +2115,7 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2081
2115
  strokeLinecap: "round",
2082
2116
  strokeLinejoin: "round",
2083
2117
  className: "v-h-4 v-w-4 v-animate-spin",
2084
- children: /* @__PURE__ */ P("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2118
+ children: /* @__PURE__ */ S("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2085
2119
  }
2086
2120
  ),
2087
2121
  "Sign In"
@@ -2090,7 +2124,7 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2090
2124
  )
2091
2125
  ] })
2092
2126
  ] }) : /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2093
- /* @__PURE__ */ P(
2127
+ /* @__PURE__ */ S(
2094
2128
  "svg",
2095
2129
  {
2096
2130
  xmlns: "http://www.w3.org/2000/svg",
@@ -2103,17 +2137,17 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2103
2137
  strokeLinecap: "round",
2104
2138
  strokeLinejoin: "round",
2105
2139
  className: "v-mb-5 v-w-20 v-h-20",
2106
- children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2140
+ children: /* @__PURE__ */ S("path", { d: "M20 6 9 17l-5-5" })
2107
2141
  }
2108
2142
  ),
2109
- D ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(Ve, { children: [
2110
- /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2111
- /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2143
+ N ? /* @__PURE__ */ S("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ S("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(We, { children: [
2144
+ /* @__PURE__ */ S("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ S("span", { children: "Authorization requested!" }) }),
2145
+ /* @__PURE__ */ S("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ S("span", { children: "Please check the Abaxx Verifier App" }) })
2112
2146
  ] })
2113
2147
  ] }),
2114
2148
  /* @__PURE__ */ he("div", { className: "v-text-center v-text-sm v-p-6 v-font-semibold", children: [
2115
- /* @__PURE__ */ P("span", { className: "v-text-gray-400", children: `© ${ie} ` }),
2116
- /* @__PURE__ */ P("span", { className: "v-text-gray-800", children: "Abaxx Technologies" }),
2149
+ /* @__PURE__ */ S("span", { className: "v-text-gray-400", children: `© ${ee} ` }),
2150
+ /* @__PURE__ */ S("span", { className: "v-text-gray-800", children: "Abaxx Technologies" }),
2117
2151
  /* @__PURE__ */ he("span", { className: "v-text-gray-400", children: [
2118
2152
  " ",
2119
2153
  "| All rights reserved"
@@ -2123,51 +2157,51 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2123
2157
  ]
2124
2158
  }
2125
2159
  ) });
2126
- }, Zr = ({
2127
- size: V = 130,
2128
- qrColor: z = "#e60100",
2129
- logoImage: ie = "https://content.abaxx.com/assets/static/qr-logo.png",
2130
- logoWidth: Z = 40,
2160
+ }, Jr = ({
2161
+ size: j = 130,
2162
+ qrColor: Y = "#e60100",
2163
+ logoImage: ee = "https://content.abaxx.com/assets/static/qr-logo.png",
2164
+ logoWidth: W = 40,
2131
2165
  logoHeight: q = 20,
2132
- quietZone: Y = 0,
2133
- containerClass: $ = "",
2166
+ quietZone: X = 0,
2167
+ containerClass: F = "",
2134
2168
  showStatus: M = !0,
2135
2169
  checkmarkColor: x = "#c40808"
2136
2170
  }) => {
2137
2171
  const [g, m] = ge(""), {
2138
- clientId: C,
2139
- codeChallenge: j,
2140
- authRequestId: S,
2141
- authRequestIdExpires: H,
2142
- isAuthenticating: B,
2143
- token: D
2144
- } = We(je);
2145
- return Ke(() => {
2146
- if (j && S && H) {
2147
- const K = H.getTime() / 1e3, G = `c=${j},r=${S},e=${K},a=${C}`;
2148
- m(G);
2149
- }
2150
- }, [C, S, H, j]), /* @__PURE__ */ P("div", { className: `v-auth-qr-container ${$}`, children: !D && !B ? /* @__PURE__ */ P("div", { className: "v-qr-wrapper", children: S && g ? /* @__PURE__ */ P(
2151
- Ot.QRCode,
2172
+ clientId: T,
2173
+ codeChallenge: $,
2174
+ authRequestId: D,
2175
+ authRequestIdExpires: G,
2176
+ isAuthenticating: k,
2177
+ token: N
2178
+ } = Ze($e);
2179
+ return je(() => {
2180
+ if ($ && D && G) {
2181
+ const K = G.getTime() / 1e3, Q = `c=${$},r=${D},e=${K},a=${T}`;
2182
+ m(Q);
2183
+ }
2184
+ }, [T, D, G, $]), /* @__PURE__ */ S("div", { className: `v-auth-qr-container ${F}`, children: !N && !k ? /* @__PURE__ */ S("div", { className: "v-qr-wrapper", children: D && g ? /* @__PURE__ */ S(
2185
+ qt.QRCode,
2152
2186
  {
2153
2187
  value: g,
2154
- size: V,
2155
- fgColor: z,
2188
+ size: j,
2189
+ fgColor: Y,
2156
2190
  qrStyle: "dots",
2157
- logoImage: ie,
2158
- logoWidth: Z,
2191
+ logoImage: ee,
2192
+ logoWidth: W,
2159
2193
  logoHeight: q,
2160
- quietZone: Y
2194
+ quietZone: X
2161
2195
  }
2162
- ) : /* @__PURE__ */ P(
2196
+ ) : /* @__PURE__ */ S(
2163
2197
  "div",
2164
2198
  {
2165
2199
  className: "v-flex v-items-center v-justify-center",
2166
- style: { width: V, height: V },
2167
- children: /* @__PURE__ */ P(qt, {})
2200
+ style: { width: j, height: j },
2201
+ children: /* @__PURE__ */ S(jt, {})
2168
2202
  }
2169
2203
  ) }) : M ? /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2170
- /* @__PURE__ */ P(
2204
+ /* @__PURE__ */ S(
2171
2205
  "svg",
2172
2206
  {
2173
2207
  xmlns: "http://www.w3.org/2000/svg",
@@ -2180,44 +2214,44 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2180
2214
  strokeLinecap: "round",
2181
2215
  strokeLinejoin: "round",
2182
2216
  className: "v-mb-5",
2183
- style: { width: V * 0.6, height: V * 0.6 },
2184
- children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2217
+ style: { width: j * 0.6, height: j * 0.6 },
2218
+ children: /* @__PURE__ */ S("path", { d: "M20 6 9 17l-5-5" })
2185
2219
  }
2186
2220
  ),
2187
- D ? /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(Ve, { children: [
2188
- /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2189
- /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2221
+ N ? /* @__PURE__ */ S("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ S("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(We, { children: [
2222
+ /* @__PURE__ */ S("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ S("span", { children: "Authorization requested!" }) }),
2223
+ /* @__PURE__ */ S("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ S("span", { children: "Please check the Abaxx Verifier App" }) })
2190
2224
  ] })
2191
2225
  ] }) : null });
2192
- }, Jr = ({
2193
- inputPlaceholder: V = "Enter Email or Abaxx ID",
2194
- buttonText: z = "Sign In",
2195
- inputHeight: ie = "v-h-10",
2196
- inputWidth: Z = "v-w-full",
2226
+ }, Yr = ({
2227
+ inputPlaceholder: j = "Enter Email or Abaxx ID",
2228
+ buttonText: Y = "Sign In",
2229
+ inputHeight: ee = "v-h-10",
2230
+ inputWidth: W = "v-w-full",
2197
2231
  inputTextColor: q = "v-text-gray-600",
2198
- inputBorderColor: Y = "v-border-gray-400",
2199
- inputBackgroundColor: $ = "v-bg-transparent",
2232
+ inputBorderColor: X = "v-border-gray-400",
2233
+ inputBackgroundColor: F = "v-bg-transparent",
2200
2234
  buttonHeight: M = "v-h-10",
2201
2235
  buttonWidth: x = "v-w-full",
2202
2236
  buttonBackgroundColor: g = "v-bg-red",
2203
2237
  buttonTextColor: m = "v-text-white",
2204
- containerClass: C = "",
2205
- checkmarkColor: j = "#c40808"
2238
+ containerClass: T = "",
2239
+ checkmarkColor: $ = "#c40808"
2206
2240
  }) => {
2207
- const [S, H] = ge(""), [B, D] = ge(!1), {
2241
+ const [D, G] = ge(""), [k, N] = ge(!1), {
2208
2242
  apiUrl: K,
2209
- clientId: G,
2243
+ clientId: Q,
2210
2244
  codeChallenge: J,
2211
2245
  authRequestId: O,
2212
- setIsAuthenticating: w,
2246
+ setIsAuthenticating: p,
2213
2247
  setAuthError: b,
2214
2248
  isAuthenticating: d,
2215
- token: c
2216
- } = We(je), a = Ie(
2249
+ token: w
2250
+ } = Ze($e), a = Ie(
2217
2251
  async (n) => {
2218
2252
  try {
2219
2253
  const t = await fetch(
2220
- `${K}/v-plus/auth/req?cid=${G}`,
2254
+ `${K}/v-plus/auth/req?cid=${Q}`,
2221
2255
  {
2222
2256
  method: "POST",
2223
2257
  headers: {
@@ -2226,52 +2260,52 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2226
2260
  },
2227
2261
  body: JSON.stringify(n)
2228
2262
  }
2229
- ), p = await t.json();
2230
- if (!t.ok || p.ok === !1) {
2263
+ ), v = await t.json();
2264
+ if (!t.ok || v.ok === !1) {
2231
2265
  b(
2232
- `Auth request failed: ${p.message || t.status}`
2266
+ `Auth request failed: ${v.message || t.status}`
2233
2267
  );
2234
2268
  return;
2235
2269
  }
2236
- return p;
2270
+ return v;
2237
2271
  } catch (t) {
2238
2272
  b(`Auth request failed: ${t}`);
2239
2273
  }
2240
2274
  },
2241
- [K, G, b]
2242
- ), h = Ie(async () => {
2243
- D(!0);
2275
+ [K, Q, b]
2276
+ ), s = Ie(async () => {
2277
+ N(!0);
2244
2278
  try {
2245
- if (!S) {
2279
+ if (!D) {
2246
2280
  b("Invalid login. Email or Abaxx ID is required.");
2247
2281
  return;
2248
2282
  }
2249
2283
  const n = await a({
2250
- alias: S,
2284
+ alias: D,
2251
2285
  code_challenge: J,
2252
2286
  request_id: O
2253
2287
  });
2254
- n != null && n.ok ? w(!0) : !(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth." && b("Invalid login. Please use your existing Email or Abaxx ID.");
2288
+ n != null && n.ok ? p(!0) : !(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth." && b("Invalid login. Please use your existing Email or Abaxx ID.");
2255
2289
  } catch (n) {
2256
2290
  b("Something went wrong. Please try again later."), console.error(n);
2257
2291
  }
2258
- D(!1);
2259
- }, [J, O, S, D, w, a, b]);
2260
- return /* @__PURE__ */ P("div", { className: `v-auth-email-container ${C}`, children: !c && !d ? /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2261
- /* @__PURE__ */ P(
2292
+ N(!1);
2293
+ }, [J, O, D, N, p, a, b]);
2294
+ return /* @__PURE__ */ S("div", { className: `v-auth-email-container ${T}`, children: !w && !d ? /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2295
+ /* @__PURE__ */ S(
2262
2296
  "input",
2263
2297
  {
2264
2298
  type: "text",
2265
- className: `v-input ${Z} ${ie} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2299
+ className: `v-input ${W} ${ee} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2266
2300
  style: {
2267
- backgroundColor: $.startsWith("#") ? $ : $ === "v-bg-transparent" ? "transparent" : $ === "v-bg-white" ? "#ffffff" : "transparent",
2301
+ backgroundColor: F.startsWith("#") ? F : F === "v-bg-transparent" ? "transparent" : F === "v-bg-white" ? "#ffffff" : "transparent",
2268
2302
  color: q.startsWith("#") ? q : q === "v-text-gray-600" ? "#6b7280" : q === "v-text-black" ? "#000000" : q === "v-text-white" ? "#ffffff" : "#6b7280",
2269
- borderColor: Y.startsWith("#") ? Y : Y === "v-border-gray-400" ? "#9ca3af" : Y === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2303
+ borderColor: X.startsWith("#") ? X : X === "v-border-gray-400" ? "#9ca3af" : X === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2270
2304
  },
2271
- placeholder: V,
2272
- value: S,
2273
- onChange: (n) => H(n.target.value),
2274
- disabled: B
2305
+ placeholder: j,
2306
+ value: D,
2307
+ onChange: (n) => G(n.target.value),
2308
+ disabled: k
2275
2309
  }
2276
2310
  ),
2277
2311
  /* @__PURE__ */ he(
@@ -2282,10 +2316,10 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2282
2316
  backgroundColor: g.startsWith("#") ? g : g === "v-bg-blue" ? "#3b82f6" : g === "v-bg-red" ? "#ef4444" : g === "v-bg-green" ? "#10b981" : g === "v-bg-purple" ? "#8b5cf6" : g === "v-bg-yellow" ? "#f59e0b" : g === "v-bg-gray" ? "#6b7280" : "#ef4444",
2283
2317
  color: m.startsWith("#") ? m : m === "v-text-white" ? "#ffffff" : m === "v-text-black" ? "#000000" : m === "v-text-gray-600" ? "#6b7280" : "#ffffff"
2284
2318
  },
2285
- disabled: B || !S || !O,
2286
- onClick: h,
2319
+ disabled: k || !D || !O,
2320
+ onClick: s,
2287
2321
  children: [
2288
- B && /* @__PURE__ */ P(
2322
+ k && /* @__PURE__ */ S(
2289
2323
  "svg",
2290
2324
  {
2291
2325
  xmlns: "http://www.w3.org/2000/svg",
@@ -2293,20 +2327,20 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2293
2327
  height: "24",
2294
2328
  viewBox: "0 0 24 24",
2295
2329
  fill: "none",
2296
- stroke: j,
2330
+ stroke: $,
2297
2331
  strokeWidth: "2",
2298
2332
  strokeLinecap: "round",
2299
2333
  strokeLinejoin: "round",
2300
2334
  className: "v-h-4 v-w-4 v-animate-spin",
2301
- children: /* @__PURE__ */ P("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2335
+ children: /* @__PURE__ */ S("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2302
2336
  }
2303
2337
  ),
2304
- z
2338
+ Y
2305
2339
  ]
2306
2340
  }
2307
2341
  )
2308
2342
  ] }) : /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2309
- /* @__PURE__ */ P(
2343
+ /* @__PURE__ */ S(
2310
2344
  "svg",
2311
2345
  {
2312
2346
  xmlns: "http://www.w3.org/2000/svg",
@@ -2314,36 +2348,36 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2314
2348
  height: "24",
2315
2349
  viewBox: "0 0 24 24",
2316
2350
  fill: "none",
2317
- stroke: j,
2351
+ stroke: $,
2318
2352
  strokeWidth: "2",
2319
2353
  strokeLinecap: "round",
2320
2354
  strokeLinejoin: "round",
2321
2355
  className: "v-mb-5 v-w-20 v-h-20",
2322
- children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2356
+ children: /* @__PURE__ */ S("path", { d: "M20 6 9 17l-5-5" })
2323
2357
  }
2324
2358
  ),
2325
- c ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(Ve, { children: [
2326
- /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2327
- /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2359
+ w ? /* @__PURE__ */ S("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ S("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(We, { children: [
2360
+ /* @__PURE__ */ S("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ S("span", { children: "Authorization requested!" }) }),
2361
+ /* @__PURE__ */ S("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ S("span", { children: "Please check the Abaxx Verifier App" }) })
2328
2362
  ] })
2329
2363
  ] }) });
2330
2364
  };
2331
- function Yr() {
2332
- const { resetState: V } = We(je);
2333
- return V;
2365
+ function Xr() {
2366
+ const { resetState: j } = Ze($e);
2367
+ return j;
2334
2368
  }
2335
- function Xr(V) {
2336
- V.resetState();
2369
+ function zr(j) {
2370
+ j.resetState();
2337
2371
  }
2338
2372
  export {
2339
- je as VContext,
2340
- jr as VContextProvider,
2341
- Wr as VerifierAuth,
2342
- Jr as VerifierAuthEmail,
2343
- Zr as VerifierAuthQr,
2344
- Kr as VerifierProvider,
2345
- Dt as base64urlEncode,
2346
- $r as generateCodeVerifier,
2347
- Xr as resetVerifierStateUnsafe,
2348
- Yr as useVerifierReset
2373
+ $e as VContext,
2374
+ $r as VContextProvider,
2375
+ Zr as VerifierAuth,
2376
+ Yr as VerifierAuthEmail,
2377
+ Jr as VerifierAuthQr,
2378
+ Wr as VerifierProvider,
2379
+ Pt as base64urlEncode,
2380
+ Fr as generateCodeVerifier,
2381
+ zr as resetVerifierStateUnsafe,
2382
+ Xr as useVerifierReset
2349
2383
  };