@getopenpay/openpay-js 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z as i } from "zod";
2
2
  import { v4 as yn } from "uuid";
3
3
  import { connectToChild as mn } from "penpal";
4
- var Qr = { exports: {} }, Nr = { exports: {} }, D = {};
4
+ var Qr = { exports: {} }, Nr = { exports: {} }, M = {};
5
5
  /**
6
6
  * @license React
7
7
  * react.production.min.js
@@ -13,9 +13,9 @@ var Qr = { exports: {} }, Nr = { exports: {} }, D = {};
13
13
  */
14
14
  var Yr;
15
15
  function hn() {
16
- if (Yr) return D;
16
+ if (Yr) return M;
17
17
  Yr = 1;
18
- var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
18
+ var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), I = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
19
19
  function G(r) {
20
20
  return r === null || typeof r != "object" ? null : (r = U && r[U] || r["@@iterator"], typeof r == "function" ? r : null);
21
21
  }
@@ -42,10 +42,10 @@ function hn() {
42
42
  }
43
43
  var ae = oe.prototype = new ge();
44
44
  ae.constructor = oe, Z(ae, W.prototype), ae.isPureReactComponent = !0;
45
- var K = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
46
- function te(r, s, h) {
47
- var _, E = {}, P = null, k = null;
48
- if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
45
+ var B = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
46
+ function re(r, s, h) {
47
+ var _, E = {}, j = null, k = null;
48
+ if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (j = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
49
49
  var O = arguments.length - 2;
50
50
  if (O === 1) E.children = h;
51
51
  else if (1 < O) {
@@ -53,7 +53,7 @@ function hn() {
53
53
  E.children = C;
54
54
  }
55
55
  if (r && r.defaultProps) for (_ in O = r.defaultProps, O) E[_] === void 0 && (E[_] = O[_]);
56
- return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner: z.current };
56
+ return { $$typeof: c, type: r, key: j, ref: k, props: E, _owner: z.current };
57
57
  }
58
58
  function _e(r, s) {
59
59
  return { $$typeof: c, type: r.type, key: s, ref: r.ref, props: r.props, _owner: r._owner };
@@ -61,7 +61,7 @@ function hn() {
61
61
  function de(r) {
62
62
  return typeof r == "object" && r !== null && r.$$typeof === c;
63
63
  }
64
- function De(r) {
64
+ function Me(r) {
65
65
  var s = { "=": "=0", ":": "=2" };
66
66
  return "$" + r.replace(/[=:]/g, function(h) {
67
67
  return s[h];
@@ -69,14 +69,14 @@ function hn() {
69
69
  }
70
70
  var be = /\/+/g;
71
71
  function pe(r, s) {
72
- return typeof r == "object" && r !== null && r.key != null ? De("" + r.key) : s.toString(36);
72
+ return typeof r == "object" && r !== null && r.key != null ? Me("" + r.key) : s.toString(36);
73
73
  }
74
74
  function ie(r, s, h, _, E) {
75
- var P = typeof r;
76
- (P === "undefined" || P === "boolean") && (r = null);
75
+ var j = typeof r;
76
+ (j === "undefined" || j === "boolean") && (r = null);
77
77
  var k = !1;
78
78
  if (r === null) k = !0;
79
- else switch (P) {
79
+ else switch (j) {
80
80
  case "string":
81
81
  case "number":
82
82
  k = !0;
@@ -88,23 +88,23 @@ function hn() {
88
88
  k = !0;
89
89
  }
90
90
  }
91
- if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, K(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
91
+ if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, B(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
92
92
  return L;
93
93
  })) : E != null && (de(E) && (E = _e(E, h + (!E.key || k && k.key === E.key ? "" : ("" + E.key).replace(be, "$&/") + "/") + r)), s.push(E)), 1;
94
- if (k = 0, _ = _ === "" ? "." : _ + ":", K(r)) for (var O = 0; O < r.length; O++) {
95
- P = r[O];
96
- var C = _ + pe(P, O);
97
- k += ie(P, s, h, C, E);
94
+ if (k = 0, _ = _ === "" ? "." : _ + ":", B(r)) for (var O = 0; O < r.length; O++) {
95
+ j = r[O];
96
+ var C = _ + pe(j, O);
97
+ k += ie(j, s, h, C, E);
98
98
  }
99
- else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(P = r.next()).done; ) P = P.value, C = _ + pe(P, O++), k += ie(P, s, h, C, E);
100
- else if (P === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
99
+ else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(j = r.next()).done; ) j = j.value, C = _ + pe(j, O++), k += ie(j, s, h, C, E);
100
+ else if (j === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
101
101
  return k;
102
102
  }
103
103
  function H(r, s, h) {
104
104
  if (r == null) return r;
105
105
  var _ = [], E = 0;
106
- return ie(r, _, "", "", function(P) {
107
- return s.call(h, P, E++);
106
+ return ie(r, _, "", "", function(j) {
107
+ return s.call(h, j, E++);
108
108
  }), _;
109
109
  }
110
110
  function X(r) {
@@ -119,11 +119,11 @@ function hn() {
119
119
  if (r._status === 1) return r._result.default;
120
120
  throw r._result;
121
121
  }
122
- var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
122
+ var d = { current: null }, ne = { transition: null }, Ee = { ReactCurrentDispatcher: d, ReactCurrentBatchConfig: ne, ReactCurrentOwner: z };
123
123
  function se() {
124
124
  throw Error("act(...) is not supported in production builds of React.");
125
125
  }
126
- return D.Children = { map: H, forEach: function(r, s, h) {
126
+ return M.Children = { map: H, forEach: function(r, s, h) {
127
127
  H(r, function() {
128
128
  s.apply(this, arguments);
129
129
  }, h);
@@ -139,11 +139,11 @@ function hn() {
139
139
  }, only: function(r) {
140
140
  if (!de(r)) throw Error("React.Children.only expected to receive a single React element child.");
141
141
  return r;
142
- } }, D.Component = W, D.Fragment = p, D.Profiler = g, D.PureComponent = oe, D.StrictMode = m, D.Suspense = x, D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, D.act = se, D.cloneElement = function(r, s, h) {
142
+ } }, M.Component = W, M.Fragment = f, M.Profiler = g, M.PureComponent = oe, M.StrictMode = y, M.Suspense = $, M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, M.act = se, M.cloneElement = function(r, s, h) {
143
143
  if (r == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
144
- var _ = Z({}, r.props), E = r.key, P = r.ref, k = r._owner;
144
+ var _ = Z({}, r.props), E = r.key, j = r.ref, k = r._owner;
145
145
  if (s != null) {
146
- if (s.ref !== void 0 && (P = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
146
+ if (s.ref !== void 0 && (j = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
147
147
  for (C in s) F.call(s, C) && !Q.hasOwnProperty(C) && (_[C] = s[C] === void 0 && O !== void 0 ? O[C] : s[C]);
148
148
  }
149
149
  var C = arguments.length - 2;
@@ -153,58 +153,58 @@ function hn() {
153
153
  for (var L = 0; L < C; L++) O[L] = arguments[L + 2];
154
154
  _.children = O;
155
155
  }
156
- return { $$typeof: c, type: r.type, key: E, ref: P, props: _, _owner: k };
157
- }, D.createContext = function(r) {
158
- return r = { $$typeof: j, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
159
- }, D.createElement = te, D.createFactory = function(r) {
160
- var s = te.bind(null, r);
156
+ return { $$typeof: c, type: r.type, key: E, ref: j, props: _, _owner: k };
157
+ }, M.createContext = function(r) {
158
+ return r = { $$typeof: I, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
159
+ }, M.createElement = re, M.createFactory = function(r) {
160
+ var s = re.bind(null, r);
161
161
  return s.type = r, s;
162
- }, D.createRef = function() {
162
+ }, M.createRef = function() {
163
163
  return { current: null };
164
- }, D.forwardRef = function(r) {
165
- return { $$typeof: I, render: r };
166
- }, D.isValidElement = de, D.lazy = function(r) {
164
+ }, M.forwardRef = function(r) {
165
+ return { $$typeof: P, render: r };
166
+ }, M.isValidElement = de, M.lazy = function(r) {
167
167
  return { $$typeof: V, _payload: { _status: -1, _result: r }, _init: X };
168
- }, D.memo = function(r, s) {
168
+ }, M.memo = function(r, s) {
169
169
  return { $$typeof: q, type: r, compare: s === void 0 ? null : s };
170
- }, D.startTransition = function(r) {
171
- var s = re.transition;
172
- re.transition = {};
170
+ }, M.startTransition = function(r) {
171
+ var s = ne.transition;
172
+ ne.transition = {};
173
173
  try {
174
174
  r();
175
175
  } finally {
176
- re.transition = s;
176
+ ne.transition = s;
177
177
  }
178
- }, D.unstable_act = se, D.useCallback = function(r, s) {
179
- return f.current.useCallback(r, s);
180
- }, D.useContext = function(r) {
181
- return f.current.useContext(r);
182
- }, D.useDebugValue = function() {
183
- }, D.useDeferredValue = function(r) {
184
- return f.current.useDeferredValue(r);
185
- }, D.useEffect = function(r, s) {
186
- return f.current.useEffect(r, s);
187
- }, D.useId = function() {
188
- return f.current.useId();
189
- }, D.useImperativeHandle = function(r, s, h) {
190
- return f.current.useImperativeHandle(r, s, h);
191
- }, D.useInsertionEffect = function(r, s) {
192
- return f.current.useInsertionEffect(r, s);
193
- }, D.useLayoutEffect = function(r, s) {
194
- return f.current.useLayoutEffect(r, s);
195
- }, D.useMemo = function(r, s) {
196
- return f.current.useMemo(r, s);
197
- }, D.useReducer = function(r, s, h) {
198
- return f.current.useReducer(r, s, h);
199
- }, D.useRef = function(r) {
200
- return f.current.useRef(r);
201
- }, D.useState = function(r) {
202
- return f.current.useState(r);
203
- }, D.useSyncExternalStore = function(r, s, h) {
204
- return f.current.useSyncExternalStore(r, s, h);
205
- }, D.useTransition = function() {
206
- return f.current.useTransition();
207
- }, D.version = "18.3.1", D;
178
+ }, M.unstable_act = se, M.useCallback = function(r, s) {
179
+ return d.current.useCallback(r, s);
180
+ }, M.useContext = function(r) {
181
+ return d.current.useContext(r);
182
+ }, M.useDebugValue = function() {
183
+ }, M.useDeferredValue = function(r) {
184
+ return d.current.useDeferredValue(r);
185
+ }, M.useEffect = function(r, s) {
186
+ return d.current.useEffect(r, s);
187
+ }, M.useId = function() {
188
+ return d.current.useId();
189
+ }, M.useImperativeHandle = function(r, s, h) {
190
+ return d.current.useImperativeHandle(r, s, h);
191
+ }, M.useInsertionEffect = function(r, s) {
192
+ return d.current.useInsertionEffect(r, s);
193
+ }, M.useLayoutEffect = function(r, s) {
194
+ return d.current.useLayoutEffect(r, s);
195
+ }, M.useMemo = function(r, s) {
196
+ return d.current.useMemo(r, s);
197
+ }, M.useReducer = function(r, s, h) {
198
+ return d.current.useReducer(r, s, h);
199
+ }, M.useRef = function(r) {
200
+ return d.current.useRef(r);
201
+ }, M.useState = function(r) {
202
+ return d.current.useState(r);
203
+ }, M.useSyncExternalStore = function(r, s, h) {
204
+ return d.current.useSyncExternalStore(r, s, h);
205
+ }, M.useTransition = function() {
206
+ return d.current.useTransition();
207
+ }, M.version = "18.3.1", M;
208
208
  }
209
209
  var Pt = { exports: {} };
210
210
  /**
@@ -222,7 +222,7 @@ function vn() {
222
222
  return Hr || (Hr = 1, function(c, a) {
223
223
  process.env.NODE_ENV !== "production" && function() {
224
224
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
225
- var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
225
+ var f = "18.3.1", y = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
226
226
  function oe(e) {
227
227
  if (e === null || typeof e != "object")
228
228
  return null;
@@ -235,7 +235,7 @@ function vn() {
235
235
  * @type {ReactComponent}
236
236
  */
237
237
  current: null
238
- }, K = {
238
+ }, B = {
239
239
  transition: null
240
240
  }, F = {
241
241
  current: null,
@@ -248,21 +248,21 @@ function vn() {
248
248
  * @type {ReactComponent}
249
249
  */
250
250
  current: null
251
- }, Q = {}, te = null;
251
+ }, Q = {}, re = null;
252
252
  function _e(e) {
253
- te = e;
253
+ re = e;
254
254
  }
255
255
  Q.setExtraStackFrame = function(e) {
256
- te = e;
256
+ re = e;
257
257
  }, Q.getCurrentStack = null, Q.getStackAddendum = function() {
258
258
  var e = "";
259
- te && (e += te);
259
+ re && (e += re);
260
260
  var t = Q.getCurrentStack;
261
261
  return t && (e += t() || ""), e;
262
262
  };
263
- var de = !1, De = !1, be = !1, pe = !1, ie = !1, H = {
263
+ var de = !1, Me = !1, be = !1, pe = !1, ie = !1, H = {
264
264
  ReactCurrentDispatcher: ae,
265
- ReactCurrentBatchConfig: K,
265
+ ReactCurrentBatchConfig: B,
266
266
  ReactCurrentOwner: z
267
267
  };
268
268
  H.ReactDebugCurrentFrame = Q, H.ReactCurrentActQueue = F;
@@ -270,24 +270,24 @@ function vn() {
270
270
  {
271
271
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
272
272
  n[o - 1] = arguments[o];
273
- re("warn", e, n);
273
+ ne("warn", e, n);
274
274
  }
275
275
  }
276
- function f(e) {
276
+ function d(e) {
277
277
  {
278
278
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
279
279
  n[o - 1] = arguments[o];
280
- re("error", e, n);
280
+ ne("error", e, n);
281
281
  }
282
282
  }
283
- function re(e, t, n) {
283
+ function ne(e, t, n) {
284
284
  {
285
285
  var o = H.ReactDebugCurrentFrame, u = o.getStackAddendum();
286
286
  u !== "" && (t += "%s", n = n.concat([u]));
287
- var d = n.map(function(l) {
287
+ var p = n.map(function(l) {
288
288
  return String(l);
289
289
  });
290
- d.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, d);
290
+ p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
291
291
  }
292
292
  }
293
293
  var Ee = {};
@@ -296,7 +296,7 @@ function vn() {
296
296
  var n = e.constructor, o = n && (n.displayName || n.name) || "ReactClass", u = o + "." + t;
297
297
  if (Ee[u])
298
298
  return;
299
- f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, o), Ee[u] = !0;
299
+ d("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, o), Ee[u] = !0;
300
300
  }
301
301
  }
302
302
  var r = {
@@ -375,7 +375,7 @@ function vn() {
375
375
  var E = {
376
376
  isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
377
377
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
378
- }, P = function(e, t) {
378
+ }, j = function(e, t) {
379
379
  Object.defineProperty(_.prototype, e, {
380
380
  get: function() {
381
381
  X("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
@@ -383,7 +383,7 @@ function vn() {
383
383
  });
384
384
  };
385
385
  for (var k in E)
386
- E.hasOwnProperty(k) && P(k, E[k]);
386
+ E.hasOwnProperty(k) && j(k, E[k]);
387
387
  }
388
388
  function O() {
389
389
  }
@@ -393,15 +393,15 @@ function vn() {
393
393
  }
394
394
  var L = C.prototype = new O();
395
395
  L.constructor = C, s(L, _.prototype), L.isPureReactComponent = !0;
396
- function Dt() {
396
+ function Mt() {
397
397
  var e = {
398
398
  current: null
399
399
  };
400
400
  return Object.seal(e), e;
401
401
  }
402
- var Mt = Array.isArray;
402
+ var Dt = Array.isArray;
403
403
  function we(e) {
404
- return Mt(e);
404
+ return Dt(e);
405
405
  }
406
406
  function Ft(e) {
407
407
  {
@@ -421,7 +421,7 @@ function vn() {
421
421
  }
422
422
  function Ce(e) {
423
423
  if ($t(e))
424
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ft(e)), We(e);
424
+ return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ft(e)), We(e);
425
425
  }
426
426
  function xt(e, t, n) {
427
427
  var o = e.displayName;
@@ -430,13 +430,13 @@ function vn() {
430
430
  var u = t.displayName || t.name || "";
431
431
  return u !== "" ? n + "(" + u + ")" : n;
432
432
  }
433
- function Ke(e) {
433
+ function Be(e) {
434
434
  return e.displayName || "Context";
435
435
  }
436
436
  function ee(e) {
437
437
  if (e == null)
438
438
  return null;
439
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
439
+ if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
440
440
  return e.displayName || e.name || null;
441
441
  if (typeof e == "string")
442
442
  return e;
@@ -445,9 +445,9 @@ function vn() {
445
445
  return "Fragment";
446
446
  case g:
447
447
  return "Portal";
448
- case I:
448
+ case P:
449
449
  return "Profiler";
450
- case j:
450
+ case I:
451
451
  return "StrictMode";
452
452
  case U:
453
453
  return "Suspense";
@@ -458,19 +458,19 @@ function vn() {
458
458
  switch (e.$$typeof) {
459
459
  case q:
460
460
  var t = e;
461
- return Ke(t) + ".Consumer";
462
- case x:
461
+ return Be(t) + ".Consumer";
462
+ case $:
463
463
  var n = e;
464
- return Ke(n._context) + ".Provider";
464
+ return Be(n._context) + ".Provider";
465
465
  case V:
466
466
  return xt(e, e.render, "ForwardRef");
467
467
  case Y:
468
468
  var o = e.displayName || null;
469
469
  return o !== null ? o : ee(e.type) || "Memo";
470
470
  case Z: {
471
- var u = e, d = u._payload, l = u._init;
471
+ var u = e, p = u._payload, l = u._init;
472
472
  try {
473
- return ee(l(d));
473
+ return ee(l(p));
474
474
  } catch {
475
475
  return null;
476
476
  }
@@ -478,13 +478,13 @@ function vn() {
478
478
  }
479
479
  return null;
480
480
  }
481
- var ye = Object.prototype.hasOwnProperty, Be = {
481
+ var ye = Object.prototype.hasOwnProperty, Ke = {
482
482
  key: !0,
483
483
  ref: !0,
484
484
  __self: !0,
485
485
  __source: !0
486
- }, Ge, Je, Me;
487
- Me = {};
486
+ }, Ge, Je, De;
487
+ De = {};
488
488
  function Ze(e) {
489
489
  if (ye.call(e, "ref")) {
490
490
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -503,7 +503,7 @@ function vn() {
503
503
  }
504
504
  function Lt(e, t) {
505
505
  var n = function() {
506
- Ge || (Ge = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
506
+ Ge || (Ge = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
507
507
  };
508
508
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
509
509
  get: n,
@@ -512,7 +512,7 @@ function vn() {
512
512
  }
513
513
  function Nt(e, t) {
514
514
  var n = function() {
515
- Je || (Je = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
515
+ Je || (Je = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
516
516
  };
517
517
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
518
518
  get: n,
@@ -522,44 +522,44 @@ function vn() {
522
522
  function Ut(e) {
523
523
  if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
524
524
  var t = ee(z.current.type);
525
- Me[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Me[t] = !0);
525
+ De[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), De[t] = !0);
526
526
  }
527
527
  }
528
- var Fe = function(e, t, n, o, u, d, l) {
529
- var y = {
528
+ var Fe = function(e, t, n, o, u, p, l) {
529
+ var m = {
530
530
  // This tag allows us to uniquely identify this as a React Element
531
- $$typeof: m,
531
+ $$typeof: y,
532
532
  // Built-in properties that belong on the element
533
533
  type: e,
534
534
  key: t,
535
535
  ref: n,
536
536
  props: l,
537
537
  // Record the component responsible for creating this element.
538
- _owner: d
538
+ _owner: p
539
539
  };
540
- return y._store = {}, Object.defineProperty(y._store, "validated", {
540
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
541
541
  configurable: !1,
542
542
  enumerable: !1,
543
543
  writable: !0,
544
544
  value: !1
545
- }), Object.defineProperty(y, "_self", {
545
+ }), Object.defineProperty(m, "_self", {
546
546
  configurable: !1,
547
547
  enumerable: !1,
548
548
  writable: !1,
549
549
  value: o
550
- }), Object.defineProperty(y, "_source", {
550
+ }), Object.defineProperty(m, "_source", {
551
551
  configurable: !1,
552
552
  enumerable: !1,
553
553
  writable: !1,
554
554
  value: u
555
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
555
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
556
556
  };
557
557
  function Vt(e, t, n) {
558
- var o, u = {}, d = null, l = null, y = null, v = null;
558
+ var o, u = {}, p = null, l = null, m = null, v = null;
559
559
  if (t != null) {
560
- Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), d = "" + t.key), y = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
560
+ Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), p = "" + t.key), m = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
561
561
  for (o in t)
562
- ye.call(t, o) && !Be.hasOwnProperty(o) && (u[o] = t[o]);
562
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (u[o] = t[o]);
563
563
  }
564
564
  var w = arguments.length - 2;
565
565
  if (w === 1)
@@ -574,11 +574,11 @@ function vn() {
574
574
  for (o in T)
575
575
  u[o] === void 0 && (u[o] = T[o]);
576
576
  }
577
- if (d || l) {
577
+ if (p || l) {
578
578
  var A = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
579
- d && Lt(u, A), l && Nt(u, A);
579
+ p && Lt(u, A), l && Nt(u, A);
580
580
  }
581
- return Fe(e, d, l, y, v, z.current, u);
581
+ return Fe(e, p, l, m, v, z.current, u);
582
582
  }
583
583
  function zt(e, t) {
584
584
  var n = Fe(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
@@ -587,13 +587,13 @@ function vn() {
587
587
  function qt(e, t, n) {
588
588
  if (e == null)
589
589
  throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
590
- var o, u = s({}, e.props), d = e.key, l = e.ref, y = e._self, v = e._source, w = e._owner;
590
+ var o, u = s({}, e.props), p = e.key, l = e.ref, m = e._self, v = e._source, w = e._owner;
591
591
  if (t != null) {
592
- Ze(t) && (l = t.ref, w = z.current), Qe(t) && (Ce(t.key), d = "" + t.key);
592
+ Ze(t) && (l = t.ref, w = z.current), Qe(t) && (Ce(t.key), p = "" + t.key);
593
593
  var R;
594
594
  e.type && e.type.defaultProps && (R = e.type.defaultProps);
595
595
  for (o in t)
596
- ye.call(t, o) && !Be.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
596
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
597
597
  }
598
598
  var S = arguments.length - 2;
599
599
  if (S === 1)
@@ -603,10 +603,10 @@ function vn() {
603
603
  T[A] = arguments[A + 2];
604
604
  u.children = T;
605
605
  }
606
- return Fe(e.type, d, l, y, v, w, u);
606
+ return Fe(e.type, p, l, m, v, w, u);
607
607
  }
608
608
  function ue(e) {
609
- return typeof e == "object" && e !== null && e.$$typeof === m;
609
+ return typeof e == "object" && e !== null && e.$$typeof === y;
610
610
  }
611
611
  var Xe = ".", Yt = ":";
612
612
  function Ht(e) {
@@ -626,37 +626,37 @@ function vn() {
626
626
  return typeof e == "object" && e !== null && e.key != null ? (Ce(e.key), Ht("" + e.key)) : t.toString(36);
627
627
  }
628
628
  function Re(e, t, n, o, u) {
629
- var d = typeof e;
630
- (d === "undefined" || d === "boolean") && (e = null);
629
+ var p = typeof e;
630
+ (p === "undefined" || p === "boolean") && (e = null);
631
631
  var l = !1;
632
632
  if (e === null)
633
633
  l = !0;
634
634
  else
635
- switch (d) {
635
+ switch (p) {
636
636
  case "string":
637
637
  case "number":
638
638
  l = !0;
639
639
  break;
640
640
  case "object":
641
641
  switch (e.$$typeof) {
642
- case m:
642
+ case y:
643
643
  case g:
644
644
  l = !0;
645
645
  }
646
646
  }
647
647
  if (l) {
648
- var y = e, v = u(y), w = o === "" ? Xe + $e(y, 0) : o;
648
+ var m = e, v = u(m), w = o === "" ? Xe + $e(m, 0) : o;
649
649
  if (we(v)) {
650
650
  var R = "";
651
651
  w != null && (R = tt(w) + "/"), Re(v, t, R, "", function(Lr) {
652
652
  return Lr;
653
653
  });
654
- } else v != null && (ue(v) && (v.key && (!y || y.key !== v.key) && Ce(v.key), v = zt(
654
+ } else v != null && (ue(v) && (v.key && (!m || m.key !== v.key) && Ce(v.key), v = zt(
655
655
  v,
656
656
  // Keep both the (mapped) and old keys if they differ, just as
657
657
  // traverseAllChildren used to do for objects as children
658
658
  n + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
659
- (v.key && (!y || y.key !== v.key) ? (
659
+ (v.key && (!m || m.key !== v.key) ? (
660
660
  // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
661
661
  // eslint-disable-next-line react-internal/safe-string-coercion
662
662
  tt("" + v.key) + "/"
@@ -664,18 +664,18 @@ function vn() {
664
664
  )), t.push(v));
665
665
  return 1;
666
666
  }
667
- var S, T, A = 0, $ = o === "" ? Xe : o + Yt;
667
+ var S, T, A = 0, x = o === "" ? Xe : o + Yt;
668
668
  if (we(e))
669
669
  for (var Ae = 0; Ae < e.length; Ae++)
670
- S = e[Ae], T = $ + $e(S, Ae), A += Re(S, t, n, T, u);
670
+ S = e[Ae], T = x + $e(S, Ae), A += Re(S, t, n, T, u);
671
671
  else {
672
672
  var He = oe(e);
673
673
  if (typeof He == "function") {
674
674
  var kt = e;
675
675
  He === kt.entries && (et || X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), et = !0);
676
676
  for (var $r = He.call(kt), Ot, xr = 0; !(Ot = $r.next()).done; )
677
- S = Ot.value, T = $ + $e(S, xr++), A += Re(S, t, n, T, u);
678
- } else if (d === "object") {
677
+ S = Ot.value, T = x + $e(S, xr++), A += Re(S, t, n, T, u);
678
+ } else if (p === "object") {
679
679
  var Tt = String(e);
680
680
  throw new Error("Objects are not valid as a React child (found: " + (Tt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Tt) + "). If you meant to render a collection of children, use an array instead.");
681
681
  }
@@ -686,17 +686,17 @@ function vn() {
686
686
  if (e == null)
687
687
  return e;
688
688
  var o = [], u = 0;
689
- return Re(e, o, "", "", function(d) {
690
- return t.call(n, d, u++);
689
+ return Re(e, o, "", "", function(p) {
690
+ return t.call(n, p, u++);
691
691
  }), o;
692
692
  }
693
- function Kt(e) {
693
+ function Bt(e) {
694
694
  var t = 0;
695
695
  return Se(e, function() {
696
696
  t++;
697
697
  }), t;
698
698
  }
699
- function Bt(e, t, n) {
699
+ function Kt(e, t, n) {
700
700
  Se(e, function() {
701
701
  t.apply(this, arguments);
702
702
  }, n);
@@ -732,19 +732,19 @@ function vn() {
732
732
  _globalName: null
733
733
  };
734
734
  t.Provider = {
735
- $$typeof: x,
735
+ $$typeof: $,
736
736
  _context: t
737
737
  };
738
738
  var n = !1, o = !1, u = !1;
739
739
  {
740
- var d = {
740
+ var p = {
741
741
  $$typeof: q,
742
742
  _context: t
743
743
  };
744
- Object.defineProperties(d, {
744
+ Object.defineProperties(p, {
745
745
  Provider: {
746
746
  get: function() {
747
- return o || (o = !0, f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
747
+ return o || (o = !0, d("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
748
748
  },
749
749
  set: function(l) {
750
750
  t.Provider = l;
@@ -776,7 +776,7 @@ function vn() {
776
776
  },
777
777
  Consumer: {
778
778
  get: function() {
779
- return n || (n = !0, f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
779
+ return n || (n = !0, d("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
780
780
  }
781
781
  },
782
782
  displayName: {
@@ -787,7 +787,7 @@ function vn() {
787
787
  u || (X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", l), u = !0);
788
788
  }
789
789
  }
790
- }), t.Consumer = d;
790
+ }), t.Consumer = p;
791
791
  }
792
792
  return t._currentRenderer = null, t._currentRenderer2 = null, t;
793
793
  }
@@ -795,15 +795,15 @@ function vn() {
795
795
  function Xt(e) {
796
796
  if (e._status === me) {
797
797
  var t = e._result, n = t();
798
- if (n.then(function(d) {
798
+ if (n.then(function(p) {
799
799
  if (e._status === xe || e._status === me) {
800
800
  var l = e;
801
- l._status = rt, l._result = d;
801
+ l._status = rt, l._result = p;
802
802
  }
803
- }, function(d) {
803
+ }, function(p) {
804
804
  if (e._status === xe || e._status === me) {
805
805
  var l = e;
806
- l._status = Qt, l._result = d;
806
+ l._status = Qt, l._result = p;
807
807
  }
808
808
  }), e._status === me) {
809
809
  var o = e;
@@ -812,12 +812,12 @@ function vn() {
812
812
  }
813
813
  if (e._status === rt) {
814
814
  var u = e._result;
815
- return u === void 0 && f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
815
+ return u === void 0 && d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
816
816
 
817
817
  Your code should look like:
818
818
  const MyComponent = lazy(() => import('./MyComponent'))
819
819
 
820
- Did you accidentally put curly braces around the import?`, u), "default" in u || f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
820
+ Did you accidentally put curly braces around the import?`, u), "default" in u || d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
821
821
 
822
822
  Your code should look like:
823
823
  const MyComponent = lazy(() => import('./MyComponent'))`, u), u.default;
@@ -842,8 +842,8 @@ Your code should look like:
842
842
  get: function() {
843
843
  return o;
844
844
  },
845
- set: function(d) {
846
- f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = d, Object.defineProperty(n, "defaultProps", {
845
+ set: function(p) {
846
+ d("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = p, Object.defineProperty(n, "defaultProps", {
847
847
  enumerable: !0
848
848
  });
849
849
  }
@@ -853,8 +853,8 @@ Your code should look like:
853
853
  get: function() {
854
854
  return u;
855
855
  },
856
- set: function(d) {
857
- f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = d, Object.defineProperty(n, "propTypes", {
856
+ set: function(p) {
857
+ d("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = p, Object.defineProperty(n, "propTypes", {
858
858
  enumerable: !0
859
859
  });
860
860
  }
@@ -864,7 +864,7 @@ Your code should look like:
864
864
  return n;
865
865
  }
866
866
  function tr(e) {
867
- e != null && e.$$typeof === Y ? f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? f("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && f("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
867
+ e != null && e.$$typeof === Y ? d("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? d("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && d("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && d("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
868
868
  var t = {
869
869
  $$typeof: V,
870
870
  render: e
@@ -887,14 +887,14 @@ Your code should look like:
887
887
  var nt;
888
888
  nt = Symbol.for("react.module.reference");
889
889
  function ot(e) {
890
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e === U || e === G || pe || e === ve || de || De || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === x || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
890
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === P || ie || e === I || e === U || e === G || pe || e === ve || de || Me || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === $ || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
891
891
  // types supported by any Flight configuration anywhere since
892
892
  // we don't know which Flight build this will end up being used
893
893
  // with.
894
894
  e.$$typeof === nt || e.getModuleId !== void 0));
895
895
  }
896
896
  function rr(e, t) {
897
- ot(e) || f("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
897
+ ot(e) || d("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
898
898
  var n = {
899
899
  $$typeof: Y,
900
900
  type: e,
@@ -917,7 +917,7 @@ Your code should look like:
917
917
  }
918
918
  function N() {
919
919
  var e = ae.current;
920
- return e === null && f(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
920
+ return e === null && d(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
921
921
  1. You might have mismatching versions of React and the renderer (such as React DOM)
922
922
  2. You might be breaking the Rules of Hooks
923
923
  3. You might have more than one copy of React in the same app
@@ -927,7 +927,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
927
927
  var t = N();
928
928
  if (e._context !== void 0) {
929
929
  var n = e._context;
930
- n.Consumer === e ? f("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : n.Provider === e && f("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
930
+ n.Consumer === e ? d("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : n.Provider === e && d("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
931
931
  }
932
932
  return t.useContext(e);
933
933
  }
@@ -1048,7 +1048,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1048
1048
  })
1049
1049
  });
1050
1050
  }
1051
- he < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1051
+ he < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1052
1052
  }
1053
1053
  }
1054
1054
  var Le = H.ReactCurrentDispatcher, Ne;
@@ -1082,8 +1082,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1082
1082
  Ue = !0;
1083
1083
  var u = Error.prepareStackTrace;
1084
1084
  Error.prepareStackTrace = void 0;
1085
- var d;
1086
- d = Le.current, Le.current = null, gr();
1085
+ var p;
1086
+ p = Le.current, Le.current = null, gr();
1087
1087
  try {
1088
1088
  if (t) {
1089
1089
  var l = function() {
@@ -1096,39 +1096,39 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1096
1096
  }), typeof Reflect == "object" && Reflect.construct) {
1097
1097
  try {
1098
1098
  Reflect.construct(l, []);
1099
- } catch ($) {
1100
- o = $;
1099
+ } catch (x) {
1100
+ o = x;
1101
1101
  }
1102
1102
  Reflect.construct(e, [], l);
1103
1103
  } else {
1104
1104
  try {
1105
1105
  l.call();
1106
- } catch ($) {
1107
- o = $;
1106
+ } catch (x) {
1107
+ o = x;
1108
1108
  }
1109
1109
  e.call(l.prototype);
1110
1110
  }
1111
1111
  } else {
1112
1112
  try {
1113
1113
  throw Error();
1114
- } catch ($) {
1115
- o = $;
1114
+ } catch (x) {
1115
+ o = x;
1116
1116
  }
1117
1117
  e();
1118
1118
  }
1119
- } catch ($) {
1120
- if ($ && o && typeof $.stack == "string") {
1121
- for (var y = $.stack.split(`
1119
+ } catch (x) {
1120
+ if (x && o && typeof x.stack == "string") {
1121
+ for (var m = x.stack.split(`
1122
1122
  `), v = o.stack.split(`
1123
- `), w = y.length - 1, R = v.length - 1; w >= 1 && R >= 0 && y[w] !== v[R]; )
1123
+ `), w = m.length - 1, R = v.length - 1; w >= 1 && R >= 0 && m[w] !== v[R]; )
1124
1124
  R--;
1125
1125
  for (; w >= 1 && R >= 0; w--, R--)
1126
- if (y[w] !== v[R]) {
1126
+ if (m[w] !== v[R]) {
1127
1127
  if (w !== 1 || R !== 1)
1128
1128
  do
1129
- if (w--, R--, R < 0 || y[w] !== v[R]) {
1129
+ if (w--, R--, R < 0 || m[w] !== v[R]) {
1130
1130
  var S = `
1131
- ` + y[w].replace(" at new ", " at ");
1131
+ ` + m[w].replace(" at new ", " at ");
1132
1132
  return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && Oe.set(e, S), S;
1133
1133
  }
1134
1134
  while (w >= 1 && R >= 0);
@@ -1136,7 +1136,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1136
1136
  }
1137
1137
  }
1138
1138
  } finally {
1139
- Ue = !1, Le.current = d, _r(), Error.prepareStackTrace = u;
1139
+ Ue = !1, Le.current = p, _r(), Error.prepareStackTrace = u;
1140
1140
  }
1141
1141
  var T = e ? e.displayName || e.name : "", A = T ? ke(T) : "";
1142
1142
  return typeof e == "function" && Oe.set(e, A), A;
@@ -1168,9 +1168,9 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1168
1168
  case Y:
1169
1169
  return Te(e.type, t, n);
1170
1170
  case Z: {
1171
- var o = e, u = o._payload, d = o._init;
1171
+ var o = e, u = o._payload, p = o._init;
1172
1172
  try {
1173
- return Te(d(u), t, n);
1173
+ return Te(p(u), t, n);
1174
1174
  } catch {
1175
1175
  }
1176
1176
  }
@@ -1187,20 +1187,20 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1187
1187
  }
1188
1188
  function Cr(e, t, n, o, u) {
1189
1189
  {
1190
- var d = Function.call.bind(ye);
1190
+ var p = Function.call.bind(ye);
1191
1191
  for (var l in e)
1192
- if (d(e, l)) {
1193
- var y = void 0;
1192
+ if (p(e, l)) {
1193
+ var m = void 0;
1194
1194
  try {
1195
1195
  if (typeof e[l] != "function") {
1196
1196
  var v = Error((o || "React class") + ": " + n + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1197
1197
  throw v.name = "Invariant Violation", v;
1198
1198
  }
1199
- y = e[l](t, l, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1199
+ m = e[l](t, l, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1200
1200
  } catch (w) {
1201
- y = w;
1201
+ m = w;
1202
1202
  }
1203
- y && !(y instanceof Error) && (Pe(u), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, l, typeof y), Pe(null)), y instanceof Error && !(y.message in yt) && (yt[y.message] = !0, Pe(u), f("Failed %s type: %s", n, y.message), Pe(null));
1203
+ m && !(m instanceof Error) && (Pe(u), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, l, typeof m), Pe(null)), m instanceof Error && !(m.message in yt) && (yt[m.message] = !0, Pe(u), d("Failed %s type: %s", n, m.message), Pe(null));
1204
1204
  }
1205
1205
  }
1206
1206
  }
@@ -1253,7 +1253,7 @@ Check the top-level render call using <` + n + ">.");
1253
1253
  if (!vt[n]) {
1254
1254
  vt[n] = !0;
1255
1255
  var o = "";
1256
- e && e._owner && e._owner !== z.current && (o = " It was passed a child from " + ee(e._owner.type) + "."), ce(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), ce(null);
1256
+ e && e._owner && e._owner !== z.current && (o = " It was passed a child from " + ee(e._owner.type) + "."), ce(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), ce(null);
1257
1257
  }
1258
1258
  }
1259
1259
  }
@@ -1269,7 +1269,7 @@ Check the top-level render call using <` + n + ">.");
1269
1269
  else if (e) {
1270
1270
  var u = oe(e);
1271
1271
  if (typeof u == "function" && u !== e.entries)
1272
- for (var d = u.call(e), l; !(l = d.next()).done; )
1272
+ for (var p = u.call(e), l; !(l = p.next()).done; )
1273
1273
  ue(l.value) && gt(l.value, t);
1274
1274
  }
1275
1275
  }
@@ -1294,9 +1294,9 @@ Check the top-level render call using <` + n + ">.");
1294
1294
  } else if (t.PropTypes !== void 0 && !Ve) {
1295
1295
  Ve = !0;
1296
1296
  var u = ee(t);
1297
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
1297
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
1298
1298
  }
1299
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1299
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1300
1300
  }
1301
1301
  }
1302
1302
  function Or(e) {
@@ -1304,11 +1304,11 @@ Check the top-level render call using <` + n + ">.");
1304
1304
  for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
1305
1305
  var o = t[n];
1306
1306
  if (o !== "children" && o !== "key") {
1307
- ce(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), ce(null);
1307
+ ce(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), ce(null);
1308
1308
  break;
1309
1309
  }
1310
1310
  }
1311
- e.ref !== null && (ce(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
1311
+ e.ref !== null && (ce(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
1312
1312
  }
1313
1313
  }
1314
1314
  function Et(e, t, n) {
@@ -1316,18 +1316,18 @@ Check the top-level render call using <` + n + ">.");
1316
1316
  if (!o) {
1317
1317
  var u = "";
1318
1318
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1319
- var d = Sr(t);
1320
- d ? u += d : u += ht();
1319
+ var p = Sr(t);
1320
+ p ? u += p : u += ht();
1321
1321
  var l;
1322
- e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (ee(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, u);
1322
+ e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === y ? (l = "<" + (ee(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, u);
1323
1323
  }
1324
- var y = Vt.apply(this, arguments);
1325
- if (y == null)
1326
- return y;
1324
+ var m = Vt.apply(this, arguments);
1325
+ if (m == null)
1326
+ return m;
1327
1327
  if (o)
1328
1328
  for (var v = 2; v < arguments.length; v++)
1329
1329
  _t(arguments[v], e);
1330
- return e === b ? Or(y) : bt(y), y;
1330
+ return e === b ? Or(m) : bt(m), m;
1331
1331
  }
1332
1332
  var wt = !1;
1333
1333
  function Tr(e) {
@@ -1347,14 +1347,14 @@ Check the top-level render call using <` + n + ">.");
1347
1347
  return bt(o), o;
1348
1348
  }
1349
1349
  function Ir(e, t) {
1350
- var n = K.transition;
1351
- K.transition = {};
1352
- var o = K.transition;
1353
- K.transition._updatedFibers = /* @__PURE__ */ new Set();
1350
+ var n = B.transition;
1351
+ B.transition = {};
1352
+ var o = B.transition;
1353
+ B.transition._updatedFibers = /* @__PURE__ */ new Set();
1354
1354
  try {
1355
1355
  e();
1356
1356
  } finally {
1357
- if (K.transition = n, n === null && o._updatedFibers) {
1357
+ if (B.transition = n, n === null && o._updatedFibers) {
1358
1358
  var u = o._updatedFibers.size;
1359
1359
  u > 10 && X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
1360
1360
  }
@@ -1368,9 +1368,9 @@ Check the top-level render call using <` + n + ">.");
1368
1368
  Ie = n.call(c, "timers").setImmediate;
1369
1369
  } catch {
1370
1370
  Ie = function(u) {
1371
- Ct === !1 && (Ct = !0, typeof MessageChannel > "u" && f("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
1372
- var d = new MessageChannel();
1373
- d.port1.onmessage = u, d.port2.postMessage(void 0);
1371
+ Ct === !1 && (Ct = !0, typeof MessageChannel > "u" && d("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
1372
+ var p = new MessageChannel();
1373
+ p.port1.onmessage = u, p.port2.postMessage(void 0);
1374
1374
  };
1375
1375
  }
1376
1376
  return Ie(e);
@@ -1392,19 +1392,19 @@ Check the top-level render call using <` + n + ">.");
1392
1392
  F.isBatchingLegacy = n;
1393
1393
  }
1394
1394
  if (o !== null && typeof o == "object" && typeof o.then == "function") {
1395
- var d = o, l = !1, y = {
1395
+ var p = o, l = !1, m = {
1396
1396
  then: function(T, A) {
1397
- l = !0, d.then(function($) {
1398
- je(t), le === 0 ? ze($, T, A) : T($);
1399
- }, function($) {
1400
- je(t), A($);
1397
+ l = !0, p.then(function(x) {
1398
+ je(t), le === 0 ? ze(x, T, A) : T(x);
1399
+ }, function(x) {
1400
+ je(t), A(x);
1401
1401
  });
1402
1402
  }
1403
1403
  };
1404
1404
  return !Rt && typeof Promise < "u" && Promise.resolve().then(function() {
1405
1405
  }).then(function() {
1406
- l || (Rt = !0, f("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
1407
- }), y;
1406
+ l || (Rt = !0, d("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
1407
+ }), m;
1408
1408
  } else {
1409
1409
  var v = o;
1410
1410
  if (je(t), le === 0) {
@@ -1428,7 +1428,7 @@ Check the top-level render call using <` + n + ">.");
1428
1428
  }
1429
1429
  }
1430
1430
  function je(e) {
1431
- e !== le - 1 && f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), le = e;
1431
+ e !== le - 1 && d("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), le = e;
1432
1432
  }
1433
1433
  function ze(e, t, n) {
1434
1434
  {
@@ -1465,31 +1465,31 @@ Check the top-level render call using <` + n + ">.");
1465
1465
  }
1466
1466
  }
1467
1467
  }
1468
- var Ar = Et, Dr = Pr, Mr = Tr, Fr = {
1468
+ var Ar = Et, Mr = Pr, Dr = Tr, Fr = {
1469
1469
  map: Se,
1470
- forEach: Bt,
1471
- count: Kt,
1470
+ forEach: Kt,
1471
+ count: Bt,
1472
1472
  toArray: Gt,
1473
1473
  only: Jt
1474
1474
  };
1475
- a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = I, a.PureComponent = C, a.StrictMode = j, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Dr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Mr, a.createRef = Dt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1475
+ a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = P, a.PureComponent = C, a.StrictMode = I, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Mr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Dr, a.createRef = Mt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1476
1476
  }();
1477
1477
  }(Pt, Pt.exports)), Pt.exports;
1478
1478
  }
1479
1479
  process.env.NODE_ENV === "production" ? Nr.exports = hn() : Nr.exports = vn();
1480
1480
  var gn = Nr.exports, _n = gn;
1481
- function Xr(c, a, p) {
1482
- var m = typeof a == "function";
1481
+ function Xr(c, a, f) {
1482
+ var y = typeof a == "function";
1483
1483
  _n.useEffect(function() {
1484
- var g, b = !0, j = c(function() {
1484
+ var g, b = !0, I = c(function() {
1485
1485
  return b;
1486
1486
  });
1487
- return Promise.resolve(j).then(function(I) {
1488
- g = I;
1487
+ return Promise.resolve(I).then(function(P) {
1488
+ g = P;
1489
1489
  }), function() {
1490
- b = !1, m && a(g);
1490
+ b = !1, y && a(g);
1491
1491
  };
1492
- }, m ? p : a);
1492
+ }, y ? f : a);
1493
1493
  }
1494
1494
  Qr.exports = Xr;
1495
1495
  Qr.exports.useAsyncEffect = Xr;
@@ -1532,7 +1532,7 @@ ${c.map((a) => `- ${a.path.join("/")}: ${a.message}`).join(`
1532
1532
  }
1533
1533
  else
1534
1534
  return c + "";
1535
- }, fe = i.string().trim().min(1, { message: "Cannot be blank" }), ne = i.string().trim().optional(), Vr = (c) => i.nullable(c.optional());
1535
+ }, fe = i.string().trim().min(1, { message: "Cannot be blank" }), te = i.string().trim().optional(), Vr = (c) => i.nullable(c.optional());
1536
1536
  var It = /* @__PURE__ */ ((c) => (c.FIRST_NAME = "firstName", c.LAST_NAME = "lastName", c.EMAIL = "email", c.ZIP_CODE = "zipCode", c.CITY = "city", c.STATE = "state", c.COUNTRY = "country", c.ADDRESS = "address", c.PHONE = "phone", c.PROMOTION_CODE = "promotionCode", c))(It || {});
1537
1537
  const tn = i.nativeEnum(It);
1538
1538
  var rn = /* @__PURE__ */ ((c) => (c.CARD_NUMBER = "cardNumber", c.CARD_EXPIRY = "cardExpiry", c.CARD_CVC = "cardCvc", c))(rn || {});
@@ -1544,18 +1544,20 @@ const nn = i.nativeEnum(rn), Tn = i.union([tn, nn]), on = i.object({
1544
1544
  id: i.string()
1545
1545
  });
1546
1546
  i.object({
1547
- cardNumber: ne,
1548
- expiry: ne,
1549
- cvc: ne
1547
+ cardNumber: te,
1548
+ expiry: te,
1549
+ cvc: te
1550
1550
  });
1551
1551
  i.object({
1552
- backgroundColor: ne,
1553
- color: ne,
1554
- fontFamily: ne,
1555
- fontSize: ne,
1556
- fontWeight: ne,
1557
- margin: ne,
1558
- padding: ne
1552
+ backgroundColor: te,
1553
+ color: te,
1554
+ fontFamily: te,
1555
+ fontSize: te,
1556
+ fontWeight: te,
1557
+ margin: te,
1558
+ padding: te,
1559
+ letterSpacing: te,
1560
+ lineHeight: te
1559
1561
  });
1560
1562
  const J = i.enum([
1561
1563
  // Element -> Form
@@ -1578,11 +1580,12 @@ const J = i.enum([
1578
1580
  "TOKENIZE",
1579
1581
  "CHECKOUT",
1580
1582
  "START_PAYMENT_FLOW"
1581
- ]), In = J.extract(["TOKENIZE_STARTED", "CHECKOUT_STARTED"]), jn = i.object({ type: In }), An = J.extract(["BLUR", "FOCUS", "CHANGE"]), Dn = i.object({
1583
+ ]), In = J.extract(["TOKENIZE_STARTED", "CHECKOUT_STARTED"]), jn = i.object({ type: In }), An = J.extract(["BLUR", "FOCUS", "CHANGE"]), Mn = i.object({
1582
1584
  type: An,
1583
- elementType: nn
1584
- }), Mn = J.extract(["LOAD_ERROR", "TOKENIZE_ERROR", "CHECKOUT_ERROR"]), Fn = i.object({
1585
- type: Mn,
1585
+ elementType: nn,
1586
+ errors: i.array(i.string()).optional()
1587
+ }), Dn = J.extract(["LOAD_ERROR", "TOKENIZE_ERROR", "CHECKOUT_ERROR"]), Fn = i.object({
1588
+ type: Dn,
1586
1589
  message: fe
1587
1590
  }), $n = J.extract(["VALIDATION_ERROR"]), xn = i.object({
1588
1591
  type: $n,
@@ -1595,7 +1598,7 @@ const J = i.enum([
1595
1598
  type: i.literal(J.enum.LOADED),
1596
1599
  sessionId: fe,
1597
1600
  totalAmountAtoms: i.number(),
1598
- currency: ne,
1601
+ currency: te,
1599
1602
  checkoutPaymentMethods: i.array(on)
1600
1603
  }), Un = i.object({
1601
1604
  type: i.literal(J.enum.PAYMENT_FLOW_STARTED),
@@ -1611,14 +1614,14 @@ const J = i.enum([
1611
1614
  email: fe,
1612
1615
  zipCode: fe,
1613
1616
  country: fe,
1614
- promotionCode: ne
1617
+ promotionCode: te
1615
1618
  }), qn = J.extract(["TOKENIZE", "CHECKOUT", "START_PAYMENT_FLOW"]), an = i.object({
1616
1619
  type: qn,
1617
1620
  sessionId: fe,
1618
1621
  checkoutPaymentMethod: on,
1619
1622
  paymentFlowMetadata: i.any().optional(),
1620
1623
  doNotUseLegacyCCFlow: i.boolean().optional(),
1621
- existingCCPMId: ne
1624
+ existingCCPMId: te
1622
1625
  }).extend(zn.shape), Yn = i.object({
1623
1626
  type: i.literal(J.enum.TOKENIZE_SUCCESS),
1624
1627
  isReadyForCheckout: i.boolean()
@@ -1629,7 +1632,7 @@ const J = i.enum([
1629
1632
  customerId: i.string()
1630
1633
  }), Wn = i.discriminatedUnion("type", [
1631
1634
  jn,
1632
- Dn,
1635
+ Mn,
1633
1636
  Fn,
1634
1637
  xn,
1635
1638
  Ln,
@@ -1639,7 +1642,7 @@ const J = i.enum([
1639
1642
  Hn,
1640
1643
  Un,
1641
1644
  Vn
1642
- ]), Kn = i.object({
1645
+ ]), Bn = i.object({
1643
1646
  payload: Wn,
1644
1647
  nonce: fe,
1645
1648
  formId: fe,
@@ -1657,14 +1660,14 @@ i.object({
1657
1660
  secure_token: i.string(),
1658
1661
  existing_cc_pm_id: Vr(i.string())
1659
1662
  });
1660
- const Bn = i.object({
1663
+ const Kn = i.object({
1661
1664
  payment_methods: i.array(Pn)
1662
1665
  }), Gn = (c) => {
1663
1666
  const a = {};
1664
- return Object.entries(c).forEach(([p, m]) => {
1667
+ return Object.entries(c).forEach(([f, y]) => {
1665
1668
  try {
1666
- const g = tn.parse(p);
1667
- Array.isArray(m) ? a[g] = m : Array.isArray(m._errors) && (a[g] = m._errors);
1669
+ const g = tn.parse(f);
1670
+ Array.isArray(y) ? a[g] = y : Array.isArray(y._errors) && (a[g] = y._errors);
1668
1671
  } catch {
1669
1672
  return;
1670
1673
  }
@@ -1678,8 +1681,8 @@ const Bn = i.object({
1678
1681
  if (!Wr())
1679
1682
  throw new Error("Stripe JS not found.");
1680
1683
  return new Stripe(c);
1681
- }, sn = async (c, a, p, m) => {
1682
- const g = await zr(c), b = Jn[p.toLowerCase().trim()];
1684
+ }, sn = async (c, a, f, y) => {
1685
+ const g = await zr(c), b = Jn[f.toLowerCase().trim()];
1683
1686
  return g.paymentRequest({
1684
1687
  // TODO: replace this with stripe account country as soon as we support it
1685
1688
  country: "US",
@@ -1687,22 +1690,22 @@ const Bn = i.object({
1687
1690
  total: {
1688
1691
  label: "Total",
1689
1692
  amount: a,
1690
- pending: m
1693
+ pending: y
1691
1694
  },
1692
1695
  requestPayerName: !0,
1693
1696
  requestPayerEmail: !0
1694
1697
  });
1695
1698
  }, Zn = (c) => new Promise((a) => {
1696
1699
  setTimeout(a, c);
1697
- }), Wr = () => "Stripe" in window, Qn = async (c) => new Promise((a, p) => {
1700
+ }), Wr = () => "Stripe" in window, Qn = async (c) => new Promise((a, f) => {
1698
1701
  try {
1699
- c.on("paymentmethod", async (m) => {
1700
- a(m);
1702
+ c.on("paymentmethod", async (y) => {
1703
+ a(y);
1701
1704
  }), c.on("cancel", () => {
1702
- p(new Error("Payment cancelled, please click Submit again to pay"));
1705
+ f(new Error("Payment cancelled, please click Submit again to pay"));
1703
1706
  });
1704
- } catch (m) {
1705
- p(m);
1707
+ } catch (y) {
1708
+ f(y);
1706
1709
  }
1707
1710
  }), Xn = (c) => {
1708
1711
  const a = c == null ? void 0 : c.stripe_pk;
@@ -1710,65 +1713,65 @@ const Bn = i.object({
1710
1713
  throw new Error("Invalid: stripe_pk not passed in checkout payment method");
1711
1714
  return a;
1712
1715
  }, eo = async (c, a) => {
1713
- const p = c.nextActionMetadata;
1716
+ const f = c.nextActionMetadata;
1714
1717
  if (!c.paymentFlowMetadata || !c.paymentFlowMetadata.stripePmId)
1715
1718
  throw new Error(`Invalid payment flow metadata format: ${JSON.stringify(c.paymentFlowMetadata)}`);
1716
- if (!p.stripe_pk || !p.client_secret)
1717
- throw new Error(`Invalid next action metadata format: ${JSON.stringify(p)}`);
1719
+ if (!f.stripe_pk || !f.client_secret)
1720
+ throw new Error(`Invalid next action metadata format: ${JSON.stringify(f)}`);
1718
1721
  if (a.paymentMethod.id !== c.paymentFlowMetadata.stripePmId)
1719
1722
  throw new Error(`PM ID mismatch: ${a.paymentMethod.id} != ${c.paymentFlowMetadata.stripePmId}`);
1720
- const m = await (await zr(p.stripe_pk)).confirmCardSetup(p.client_secret, {
1723
+ const y = await (await zr(f.stripe_pk)).confirmCardSetup(f.client_secret, {
1721
1724
  payment_method: c.paymentFlowMetadata.stripePmId
1722
1725
  });
1723
- if (m.error)
1724
- throw a.complete("fail"), new Error(`Payment failed: ${m.error.message ?? "unknown"}`);
1726
+ if (y.error)
1727
+ throw a.complete("fail"), new Error(`Payment failed: ${y.error.message ?? "unknown"}`);
1725
1728
  a.complete("success");
1726
1729
  }, to = async (c) => {
1727
- var a, p, m, g;
1728
- const b = c.nextActionMetadata, j = await (await zr(b.stripe_pk)).confirmCardSetup(b.client_secret, {
1730
+ var a, f, y, g;
1731
+ const b = c.nextActionMetadata, I = await (await zr(b.stripe_pk)).confirmCardSetup(b.client_secret, {
1729
1732
  payment_method: b.stripe_pm_id
1730
- }), I = (a = j.setupIntent) == null ? void 0 : a.status;
1731
- if (I !== "succeeded")
1732
- throw I === "canceled" ? new Error("Payment cancelled, please click Submit again to pay") : new Error(
1733
- `${((p = j.error) == null ? void 0 : p.message) ?? ((g = (m = j.setupIntent) == null ? void 0 : m.last_setup_error) == null ? void 0 : g.message) ?? "Payment failed, please click submit again to pay."}`
1733
+ }), P = (a = I.setupIntent) == null ? void 0 : a.status;
1734
+ if (P !== "succeeded")
1735
+ throw P === "canceled" ? new Error("Payment cancelled, please click Submit again to pay") : new Error(
1736
+ `${((f = I.error) == null ? void 0 : f.message) ?? ((g = (y = I.setupIntent) == null ? void 0 : y.last_setup_error) == null ? void 0 : g.message) ?? "Payment failed, please click submit again to pay."}`
1734
1737
  );
1735
- }, ro = (c) => JSON.stringify(c), un = (c, a) => Array.from(c.querySelectorAll("[data-opid]") ?? []).reduce((p, m) => {
1736
- const g = m.getAttribute("data-opid");
1737
- return g ? { ...p, [g]: m.value } : p;
1738
- }, a), At = (c, a, p, m, g, b, j) => {
1739
- const I = un(p, {
1738
+ }, ro = (c) => JSON.stringify(c), un = (c, a) => Array.from(c.querySelectorAll("[data-opid]") ?? []).reduce((f, y) => {
1739
+ const g = y.getAttribute("data-opid");
1740
+ return g ? { ...f, [g]: y.value } : f;
1741
+ }, a), At = (c, a, f, y, g, b, I) => {
1742
+ const P = un(f, {
1740
1743
  type: c,
1741
1744
  sessionId: a,
1742
1745
  checkoutPaymentMethod: g,
1743
- paymentFlowMetadata: j,
1746
+ paymentFlowMetadata: I,
1744
1747
  doNotUseLegacyCCFlow: b
1745
1748
  });
1746
- (g.provider === "apple_pay" || g.provider === "google_pay" || g.provider === "stripe_link") && (I[It.ZIP_CODE] || (I[It.ZIP_CODE] = "00000"));
1747
- const x = an.safeParse(I);
1748
- if (x.success)
1749
- return x.data;
1749
+ (g.provider === "apple_pay" || g.provider === "google_pay" || g.provider === "stripe_link") && (P[It.ZIP_CODE] || (P[It.ZIP_CODE] = "00000"));
1750
+ const $ = an.safeParse(P);
1751
+ if ($.success)
1752
+ return $.data;
1750
1753
  {
1751
- const q = x.error.format(), V = Gn(q);
1754
+ const q = $.error.format(), V = Gn(q);
1752
1755
  for (const [U, G] of Object.entries(V))
1753
- m(U, G, U);
1756
+ y(U, G, U);
1754
1757
  return null;
1755
1758
  }
1756
1759
  }, no = (c) => {
1757
1760
  try {
1758
- return Kn.parse(c);
1761
+ return Bn.parse(c);
1759
1762
  } catch (a) {
1760
1763
  throw a;
1761
1764
  }
1762
- }, Kr = (c, a, p, m, g) => {
1765
+ }, Br = (c, a, f, y, g) => {
1763
1766
  const b = {
1764
- payload: m,
1767
+ payload: y,
1765
1768
  nonce: yn(),
1766
1769
  formId: a,
1767
- elementId: p
1770
+ elementId: f
1768
1771
  };
1769
1772
  c.postMessage(JSON.stringify(b), g);
1770
1773
  };
1771
- var M = {};
1774
+ var D = {};
1772
1775
  /**
1773
1776
  * @license React
1774
1777
  * react.production.min.js
@@ -1778,11 +1781,11 @@ var M = {};
1778
1781
  * This source code is licensed under the MIT license found in the
1779
1782
  * LICENSE file in the root directory of this source tree.
1780
1783
  */
1781
- var Br;
1784
+ var Kr;
1782
1785
  function oo() {
1783
- if (Br) return M;
1784
- Br = 1;
1785
- var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
1786
+ if (Kr) return D;
1787
+ Kr = 1;
1788
+ var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), I = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
1786
1789
  function G(r) {
1787
1790
  return r === null || typeof r != "object" ? null : (r = U && r[U] || r["@@iterator"], typeof r == "function" ? r : null);
1788
1791
  }
@@ -1809,10 +1812,10 @@ function oo() {
1809
1812
  }
1810
1813
  var ae = oe.prototype = new ge();
1811
1814
  ae.constructor = oe, Z(ae, W.prototype), ae.isPureReactComponent = !0;
1812
- var K = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
1813
- function te(r, s, h) {
1814
- var _, E = {}, P = null, k = null;
1815
- if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
1815
+ var B = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
1816
+ function re(r, s, h) {
1817
+ var _, E = {}, j = null, k = null;
1818
+ if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (j = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
1816
1819
  var O = arguments.length - 2;
1817
1820
  if (O === 1) E.children = h;
1818
1821
  else if (1 < O) {
@@ -1820,7 +1823,7 @@ function oo() {
1820
1823
  E.children = C;
1821
1824
  }
1822
1825
  if (r && r.defaultProps) for (_ in O = r.defaultProps, O) E[_] === void 0 && (E[_] = O[_]);
1823
- return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner: z.current };
1826
+ return { $$typeof: c, type: r, key: j, ref: k, props: E, _owner: z.current };
1824
1827
  }
1825
1828
  function _e(r, s) {
1826
1829
  return { $$typeof: c, type: r.type, key: s, ref: r.ref, props: r.props, _owner: r._owner };
@@ -1828,7 +1831,7 @@ function oo() {
1828
1831
  function de(r) {
1829
1832
  return typeof r == "object" && r !== null && r.$$typeof === c;
1830
1833
  }
1831
- function De(r) {
1834
+ function Me(r) {
1832
1835
  var s = { "=": "=0", ":": "=2" };
1833
1836
  return "$" + r.replace(/[=:]/g, function(h) {
1834
1837
  return s[h];
@@ -1836,14 +1839,14 @@ function oo() {
1836
1839
  }
1837
1840
  var be = /\/+/g;
1838
1841
  function pe(r, s) {
1839
- return typeof r == "object" && r !== null && r.key != null ? De("" + r.key) : s.toString(36);
1842
+ return typeof r == "object" && r !== null && r.key != null ? Me("" + r.key) : s.toString(36);
1840
1843
  }
1841
1844
  function ie(r, s, h, _, E) {
1842
- var P = typeof r;
1843
- (P === "undefined" || P === "boolean") && (r = null);
1845
+ var j = typeof r;
1846
+ (j === "undefined" || j === "boolean") && (r = null);
1844
1847
  var k = !1;
1845
1848
  if (r === null) k = !0;
1846
- else switch (P) {
1849
+ else switch (j) {
1847
1850
  case "string":
1848
1851
  case "number":
1849
1852
  k = !0;
@@ -1855,23 +1858,23 @@ function oo() {
1855
1858
  k = !0;
1856
1859
  }
1857
1860
  }
1858
- if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, K(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
1861
+ if (k) return k = r, E = E(k), r = _ === "" ? "." + pe(k, 0) : _, B(E) ? (h = "", r != null && (h = r.replace(be, "$&/") + "/"), ie(E, s, h, "", function(L) {
1859
1862
  return L;
1860
1863
  })) : E != null && (de(E) && (E = _e(E, h + (!E.key || k && k.key === E.key ? "" : ("" + E.key).replace(be, "$&/") + "/") + r)), s.push(E)), 1;
1861
- if (k = 0, _ = _ === "" ? "." : _ + ":", K(r)) for (var O = 0; O < r.length; O++) {
1862
- P = r[O];
1863
- var C = _ + pe(P, O);
1864
- k += ie(P, s, h, C, E);
1864
+ if (k = 0, _ = _ === "" ? "." : _ + ":", B(r)) for (var O = 0; O < r.length; O++) {
1865
+ j = r[O];
1866
+ var C = _ + pe(j, O);
1867
+ k += ie(j, s, h, C, E);
1865
1868
  }
1866
- else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(P = r.next()).done; ) P = P.value, C = _ + pe(P, O++), k += ie(P, s, h, C, E);
1867
- else if (P === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
1869
+ else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(j = r.next()).done; ) j = j.value, C = _ + pe(j, O++), k += ie(j, s, h, C, E);
1870
+ else if (j === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
1868
1871
  return k;
1869
1872
  }
1870
1873
  function H(r, s, h) {
1871
1874
  if (r == null) return r;
1872
1875
  var _ = [], E = 0;
1873
- return ie(r, _, "", "", function(P) {
1874
- return s.call(h, P, E++);
1876
+ return ie(r, _, "", "", function(j) {
1877
+ return s.call(h, j, E++);
1875
1878
  }), _;
1876
1879
  }
1877
1880
  function X(r) {
@@ -1886,11 +1889,11 @@ function oo() {
1886
1889
  if (r._status === 1) return r._result.default;
1887
1890
  throw r._result;
1888
1891
  }
1889
- var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
1892
+ var d = { current: null }, ne = { transition: null }, Ee = { ReactCurrentDispatcher: d, ReactCurrentBatchConfig: ne, ReactCurrentOwner: z };
1890
1893
  function se() {
1891
1894
  throw Error("act(...) is not supported in production builds of React.");
1892
1895
  }
1893
- return M.Children = { map: H, forEach: function(r, s, h) {
1896
+ return D.Children = { map: H, forEach: function(r, s, h) {
1894
1897
  H(r, function() {
1895
1898
  s.apply(this, arguments);
1896
1899
  }, h);
@@ -1906,11 +1909,11 @@ function oo() {
1906
1909
  }, only: function(r) {
1907
1910
  if (!de(r)) throw Error("React.Children.only expected to receive a single React element child.");
1908
1911
  return r;
1909
- } }, M.Component = W, M.Fragment = p, M.Profiler = g, M.PureComponent = oe, M.StrictMode = m, M.Suspense = x, M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, M.act = se, M.cloneElement = function(r, s, h) {
1912
+ } }, D.Component = W, D.Fragment = f, D.Profiler = g, D.PureComponent = oe, D.StrictMode = y, D.Suspense = $, D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, D.act = se, D.cloneElement = function(r, s, h) {
1910
1913
  if (r == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
1911
- var _ = Z({}, r.props), E = r.key, P = r.ref, k = r._owner;
1914
+ var _ = Z({}, r.props), E = r.key, j = r.ref, k = r._owner;
1912
1915
  if (s != null) {
1913
- if (s.ref !== void 0 && (P = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
1916
+ if (s.ref !== void 0 && (j = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
1914
1917
  for (C in s) F.call(s, C) && !Q.hasOwnProperty(C) && (_[C] = s[C] === void 0 && O !== void 0 ? O[C] : s[C]);
1915
1918
  }
1916
1919
  var C = arguments.length - 2;
@@ -1920,58 +1923,58 @@ function oo() {
1920
1923
  for (var L = 0; L < C; L++) O[L] = arguments[L + 2];
1921
1924
  _.children = O;
1922
1925
  }
1923
- return { $$typeof: c, type: r.type, key: E, ref: P, props: _, _owner: k };
1924
- }, M.createContext = function(r) {
1925
- return r = { $$typeof: j, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
1926
- }, M.createElement = te, M.createFactory = function(r) {
1927
- var s = te.bind(null, r);
1926
+ return { $$typeof: c, type: r.type, key: E, ref: j, props: _, _owner: k };
1927
+ }, D.createContext = function(r) {
1928
+ return r = { $$typeof: I, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
1929
+ }, D.createElement = re, D.createFactory = function(r) {
1930
+ var s = re.bind(null, r);
1928
1931
  return s.type = r, s;
1929
- }, M.createRef = function() {
1932
+ }, D.createRef = function() {
1930
1933
  return { current: null };
1931
- }, M.forwardRef = function(r) {
1932
- return { $$typeof: I, render: r };
1933
- }, M.isValidElement = de, M.lazy = function(r) {
1934
+ }, D.forwardRef = function(r) {
1935
+ return { $$typeof: P, render: r };
1936
+ }, D.isValidElement = de, D.lazy = function(r) {
1934
1937
  return { $$typeof: V, _payload: { _status: -1, _result: r }, _init: X };
1935
- }, M.memo = function(r, s) {
1938
+ }, D.memo = function(r, s) {
1936
1939
  return { $$typeof: q, type: r, compare: s === void 0 ? null : s };
1937
- }, M.startTransition = function(r) {
1938
- var s = re.transition;
1939
- re.transition = {};
1940
+ }, D.startTransition = function(r) {
1941
+ var s = ne.transition;
1942
+ ne.transition = {};
1940
1943
  try {
1941
1944
  r();
1942
1945
  } finally {
1943
- re.transition = s;
1946
+ ne.transition = s;
1944
1947
  }
1945
- }, M.unstable_act = se, M.useCallback = function(r, s) {
1946
- return f.current.useCallback(r, s);
1947
- }, M.useContext = function(r) {
1948
- return f.current.useContext(r);
1949
- }, M.useDebugValue = function() {
1950
- }, M.useDeferredValue = function(r) {
1951
- return f.current.useDeferredValue(r);
1952
- }, M.useEffect = function(r, s) {
1953
- return f.current.useEffect(r, s);
1954
- }, M.useId = function() {
1955
- return f.current.useId();
1956
- }, M.useImperativeHandle = function(r, s, h) {
1957
- return f.current.useImperativeHandle(r, s, h);
1958
- }, M.useInsertionEffect = function(r, s) {
1959
- return f.current.useInsertionEffect(r, s);
1960
- }, M.useLayoutEffect = function(r, s) {
1961
- return f.current.useLayoutEffect(r, s);
1962
- }, M.useMemo = function(r, s) {
1963
- return f.current.useMemo(r, s);
1964
- }, M.useReducer = function(r, s, h) {
1965
- return f.current.useReducer(r, s, h);
1966
- }, M.useRef = function(r) {
1967
- return f.current.useRef(r);
1968
- }, M.useState = function(r) {
1969
- return f.current.useState(r);
1970
- }, M.useSyncExternalStore = function(r, s, h) {
1971
- return f.current.useSyncExternalStore(r, s, h);
1972
- }, M.useTransition = function() {
1973
- return f.current.useTransition();
1974
- }, M.version = "18.3.1", M;
1948
+ }, D.unstable_act = se, D.useCallback = function(r, s) {
1949
+ return d.current.useCallback(r, s);
1950
+ }, D.useContext = function(r) {
1951
+ return d.current.useContext(r);
1952
+ }, D.useDebugValue = function() {
1953
+ }, D.useDeferredValue = function(r) {
1954
+ return d.current.useDeferredValue(r);
1955
+ }, D.useEffect = function(r, s) {
1956
+ return d.current.useEffect(r, s);
1957
+ }, D.useId = function() {
1958
+ return d.current.useId();
1959
+ }, D.useImperativeHandle = function(r, s, h) {
1960
+ return d.current.useImperativeHandle(r, s, h);
1961
+ }, D.useInsertionEffect = function(r, s) {
1962
+ return d.current.useInsertionEffect(r, s);
1963
+ }, D.useLayoutEffect = function(r, s) {
1964
+ return d.current.useLayoutEffect(r, s);
1965
+ }, D.useMemo = function(r, s) {
1966
+ return d.current.useMemo(r, s);
1967
+ }, D.useReducer = function(r, s, h) {
1968
+ return d.current.useReducer(r, s, h);
1969
+ }, D.useRef = function(r) {
1970
+ return d.current.useRef(r);
1971
+ }, D.useState = function(r) {
1972
+ return d.current.useState(r);
1973
+ }, D.useSyncExternalStore = function(r, s, h) {
1974
+ return d.current.useSyncExternalStore(r, s, h);
1975
+ }, D.useTransition = function() {
1976
+ return d.current.useTransition();
1977
+ }, D.version = "18.3.1", D;
1975
1978
  }
1976
1979
  var jt = { exports: {} };
1977
1980
  /**
@@ -1989,7 +1992,7 @@ function ao() {
1989
1992
  return Gr || (Gr = 1, function(c, a) {
1990
1993
  process.env.NODE_ENV !== "production" && function() {
1991
1994
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1992
- var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
1995
+ var f = "18.3.1", y = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
1993
1996
  function oe(e) {
1994
1997
  if (e === null || typeof e != "object")
1995
1998
  return null;
@@ -2002,7 +2005,7 @@ function ao() {
2002
2005
  * @type {ReactComponent}
2003
2006
  */
2004
2007
  current: null
2005
- }, K = {
2008
+ }, B = {
2006
2009
  transition: null
2007
2010
  }, F = {
2008
2011
  current: null,
@@ -2015,21 +2018,21 @@ function ao() {
2015
2018
  * @type {ReactComponent}
2016
2019
  */
2017
2020
  current: null
2018
- }, Q = {}, te = null;
2021
+ }, Q = {}, re = null;
2019
2022
  function _e(e) {
2020
- te = e;
2023
+ re = e;
2021
2024
  }
2022
2025
  Q.setExtraStackFrame = function(e) {
2023
- te = e;
2026
+ re = e;
2024
2027
  }, Q.getCurrentStack = null, Q.getStackAddendum = function() {
2025
2028
  var e = "";
2026
- te && (e += te);
2029
+ re && (e += re);
2027
2030
  var t = Q.getCurrentStack;
2028
2031
  return t && (e += t() || ""), e;
2029
2032
  };
2030
- var de = !1, De = !1, be = !1, pe = !1, ie = !1, H = {
2033
+ var de = !1, Me = !1, be = !1, pe = !1, ie = !1, H = {
2031
2034
  ReactCurrentDispatcher: ae,
2032
- ReactCurrentBatchConfig: K,
2035
+ ReactCurrentBatchConfig: B,
2033
2036
  ReactCurrentOwner: z
2034
2037
  };
2035
2038
  H.ReactDebugCurrentFrame = Q, H.ReactCurrentActQueue = F;
@@ -2037,24 +2040,24 @@ function ao() {
2037
2040
  {
2038
2041
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
2039
2042
  n[o - 1] = arguments[o];
2040
- re("warn", e, n);
2043
+ ne("warn", e, n);
2041
2044
  }
2042
2045
  }
2043
- function f(e) {
2046
+ function d(e) {
2044
2047
  {
2045
2048
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
2046
2049
  n[o - 1] = arguments[o];
2047
- re("error", e, n);
2050
+ ne("error", e, n);
2048
2051
  }
2049
2052
  }
2050
- function re(e, t, n) {
2053
+ function ne(e, t, n) {
2051
2054
  {
2052
2055
  var o = H.ReactDebugCurrentFrame, u = o.getStackAddendum();
2053
2056
  u !== "" && (t += "%s", n = n.concat([u]));
2054
- var d = n.map(function(l) {
2057
+ var p = n.map(function(l) {
2055
2058
  return String(l);
2056
2059
  });
2057
- d.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, d);
2060
+ p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
2058
2061
  }
2059
2062
  }
2060
2063
  var Ee = {};
@@ -2063,7 +2066,7 @@ function ao() {
2063
2066
  var n = e.constructor, o = n && (n.displayName || n.name) || "ReactClass", u = o + "." + t;
2064
2067
  if (Ee[u])
2065
2068
  return;
2066
- f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, o), Ee[u] = !0;
2069
+ d("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, o), Ee[u] = !0;
2067
2070
  }
2068
2071
  }
2069
2072
  var r = {
@@ -2142,7 +2145,7 @@ function ao() {
2142
2145
  var E = {
2143
2146
  isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
2144
2147
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
2145
- }, P = function(e, t) {
2148
+ }, j = function(e, t) {
2146
2149
  Object.defineProperty(_.prototype, e, {
2147
2150
  get: function() {
2148
2151
  X("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
@@ -2150,7 +2153,7 @@ function ao() {
2150
2153
  });
2151
2154
  };
2152
2155
  for (var k in E)
2153
- E.hasOwnProperty(k) && P(k, E[k]);
2156
+ E.hasOwnProperty(k) && j(k, E[k]);
2154
2157
  }
2155
2158
  function O() {
2156
2159
  }
@@ -2160,15 +2163,15 @@ function ao() {
2160
2163
  }
2161
2164
  var L = C.prototype = new O();
2162
2165
  L.constructor = C, s(L, _.prototype), L.isPureReactComponent = !0;
2163
- function Dt() {
2166
+ function Mt() {
2164
2167
  var e = {
2165
2168
  current: null
2166
2169
  };
2167
2170
  return Object.seal(e), e;
2168
2171
  }
2169
- var Mt = Array.isArray;
2172
+ var Dt = Array.isArray;
2170
2173
  function we(e) {
2171
- return Mt(e);
2174
+ return Dt(e);
2172
2175
  }
2173
2176
  function Ft(e) {
2174
2177
  {
@@ -2188,7 +2191,7 @@ function ao() {
2188
2191
  }
2189
2192
  function Ce(e) {
2190
2193
  if ($t(e))
2191
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ft(e)), We(e);
2194
+ return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ft(e)), We(e);
2192
2195
  }
2193
2196
  function xt(e, t, n) {
2194
2197
  var o = e.displayName;
@@ -2197,13 +2200,13 @@ function ao() {
2197
2200
  var u = t.displayName || t.name || "";
2198
2201
  return u !== "" ? n + "(" + u + ")" : n;
2199
2202
  }
2200
- function Ke(e) {
2203
+ function Be(e) {
2201
2204
  return e.displayName || "Context";
2202
2205
  }
2203
2206
  function ee(e) {
2204
2207
  if (e == null)
2205
2208
  return null;
2206
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
2209
+ if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
2207
2210
  return e.displayName || e.name || null;
2208
2211
  if (typeof e == "string")
2209
2212
  return e;
@@ -2212,9 +2215,9 @@ function ao() {
2212
2215
  return "Fragment";
2213
2216
  case g:
2214
2217
  return "Portal";
2215
- case I:
2218
+ case P:
2216
2219
  return "Profiler";
2217
- case j:
2220
+ case I:
2218
2221
  return "StrictMode";
2219
2222
  case U:
2220
2223
  return "Suspense";
@@ -2225,19 +2228,19 @@ function ao() {
2225
2228
  switch (e.$$typeof) {
2226
2229
  case q:
2227
2230
  var t = e;
2228
- return Ke(t) + ".Consumer";
2229
- case x:
2231
+ return Be(t) + ".Consumer";
2232
+ case $:
2230
2233
  var n = e;
2231
- return Ke(n._context) + ".Provider";
2234
+ return Be(n._context) + ".Provider";
2232
2235
  case V:
2233
2236
  return xt(e, e.render, "ForwardRef");
2234
2237
  case Y:
2235
2238
  var o = e.displayName || null;
2236
2239
  return o !== null ? o : ee(e.type) || "Memo";
2237
2240
  case Z: {
2238
- var u = e, d = u._payload, l = u._init;
2241
+ var u = e, p = u._payload, l = u._init;
2239
2242
  try {
2240
- return ee(l(d));
2243
+ return ee(l(p));
2241
2244
  } catch {
2242
2245
  return null;
2243
2246
  }
@@ -2245,13 +2248,13 @@ function ao() {
2245
2248
  }
2246
2249
  return null;
2247
2250
  }
2248
- var ye = Object.prototype.hasOwnProperty, Be = {
2251
+ var ye = Object.prototype.hasOwnProperty, Ke = {
2249
2252
  key: !0,
2250
2253
  ref: !0,
2251
2254
  __self: !0,
2252
2255
  __source: !0
2253
- }, Ge, Je, Me;
2254
- Me = {};
2256
+ }, Ge, Je, De;
2257
+ De = {};
2255
2258
  function Ze(e) {
2256
2259
  if (ye.call(e, "ref")) {
2257
2260
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -2270,7 +2273,7 @@ function ao() {
2270
2273
  }
2271
2274
  function Lt(e, t) {
2272
2275
  var n = function() {
2273
- Ge || (Ge = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
2276
+ Ge || (Ge = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
2274
2277
  };
2275
2278
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
2276
2279
  get: n,
@@ -2279,7 +2282,7 @@ function ao() {
2279
2282
  }
2280
2283
  function Nt(e, t) {
2281
2284
  var n = function() {
2282
- Je || (Je = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
2285
+ Je || (Je = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
2283
2286
  };
2284
2287
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
2285
2288
  get: n,
@@ -2289,44 +2292,44 @@ function ao() {
2289
2292
  function Ut(e) {
2290
2293
  if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
2291
2294
  var t = ee(z.current.type);
2292
- Me[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Me[t] = !0);
2295
+ De[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), De[t] = !0);
2293
2296
  }
2294
2297
  }
2295
- var Fe = function(e, t, n, o, u, d, l) {
2296
- var y = {
2298
+ var Fe = function(e, t, n, o, u, p, l) {
2299
+ var m = {
2297
2300
  // This tag allows us to uniquely identify this as a React Element
2298
- $$typeof: m,
2301
+ $$typeof: y,
2299
2302
  // Built-in properties that belong on the element
2300
2303
  type: e,
2301
2304
  key: t,
2302
2305
  ref: n,
2303
2306
  props: l,
2304
2307
  // Record the component responsible for creating this element.
2305
- _owner: d
2308
+ _owner: p
2306
2309
  };
2307
- return y._store = {}, Object.defineProperty(y._store, "validated", {
2310
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
2308
2311
  configurable: !1,
2309
2312
  enumerable: !1,
2310
2313
  writable: !0,
2311
2314
  value: !1
2312
- }), Object.defineProperty(y, "_self", {
2315
+ }), Object.defineProperty(m, "_self", {
2313
2316
  configurable: !1,
2314
2317
  enumerable: !1,
2315
2318
  writable: !1,
2316
2319
  value: o
2317
- }), Object.defineProperty(y, "_source", {
2320
+ }), Object.defineProperty(m, "_source", {
2318
2321
  configurable: !1,
2319
2322
  enumerable: !1,
2320
2323
  writable: !1,
2321
2324
  value: u
2322
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
2325
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
2323
2326
  };
2324
2327
  function Vt(e, t, n) {
2325
- var o, u = {}, d = null, l = null, y = null, v = null;
2328
+ var o, u = {}, p = null, l = null, m = null, v = null;
2326
2329
  if (t != null) {
2327
- Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), d = "" + t.key), y = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
2330
+ Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), p = "" + t.key), m = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
2328
2331
  for (o in t)
2329
- ye.call(t, o) && !Be.hasOwnProperty(o) && (u[o] = t[o]);
2332
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (u[o] = t[o]);
2330
2333
  }
2331
2334
  var w = arguments.length - 2;
2332
2335
  if (w === 1)
@@ -2341,11 +2344,11 @@ function ao() {
2341
2344
  for (o in T)
2342
2345
  u[o] === void 0 && (u[o] = T[o]);
2343
2346
  }
2344
- if (d || l) {
2347
+ if (p || l) {
2345
2348
  var A = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
2346
- d && Lt(u, A), l && Nt(u, A);
2349
+ p && Lt(u, A), l && Nt(u, A);
2347
2350
  }
2348
- return Fe(e, d, l, y, v, z.current, u);
2351
+ return Fe(e, p, l, m, v, z.current, u);
2349
2352
  }
2350
2353
  function zt(e, t) {
2351
2354
  var n = Fe(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
@@ -2354,13 +2357,13 @@ function ao() {
2354
2357
  function qt(e, t, n) {
2355
2358
  if (e == null)
2356
2359
  throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
2357
- var o, u = s({}, e.props), d = e.key, l = e.ref, y = e._self, v = e._source, w = e._owner;
2360
+ var o, u = s({}, e.props), p = e.key, l = e.ref, m = e._self, v = e._source, w = e._owner;
2358
2361
  if (t != null) {
2359
- Ze(t) && (l = t.ref, w = z.current), Qe(t) && (Ce(t.key), d = "" + t.key);
2362
+ Ze(t) && (l = t.ref, w = z.current), Qe(t) && (Ce(t.key), p = "" + t.key);
2360
2363
  var R;
2361
2364
  e.type && e.type.defaultProps && (R = e.type.defaultProps);
2362
2365
  for (o in t)
2363
- ye.call(t, o) && !Be.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
2366
+ ye.call(t, o) && !Ke.hasOwnProperty(o) && (t[o] === void 0 && R !== void 0 ? u[o] = R[o] : u[o] = t[o]);
2364
2367
  }
2365
2368
  var S = arguments.length - 2;
2366
2369
  if (S === 1)
@@ -2370,10 +2373,10 @@ function ao() {
2370
2373
  T[A] = arguments[A + 2];
2371
2374
  u.children = T;
2372
2375
  }
2373
- return Fe(e.type, d, l, y, v, w, u);
2376
+ return Fe(e.type, p, l, m, v, w, u);
2374
2377
  }
2375
2378
  function ue(e) {
2376
- return typeof e == "object" && e !== null && e.$$typeof === m;
2379
+ return typeof e == "object" && e !== null && e.$$typeof === y;
2377
2380
  }
2378
2381
  var Xe = ".", Yt = ":";
2379
2382
  function Ht(e) {
@@ -2393,37 +2396,37 @@ function ao() {
2393
2396
  return typeof e == "object" && e !== null && e.key != null ? (Ce(e.key), Ht("" + e.key)) : t.toString(36);
2394
2397
  }
2395
2398
  function Re(e, t, n, o, u) {
2396
- var d = typeof e;
2397
- (d === "undefined" || d === "boolean") && (e = null);
2399
+ var p = typeof e;
2400
+ (p === "undefined" || p === "boolean") && (e = null);
2398
2401
  var l = !1;
2399
2402
  if (e === null)
2400
2403
  l = !0;
2401
2404
  else
2402
- switch (d) {
2405
+ switch (p) {
2403
2406
  case "string":
2404
2407
  case "number":
2405
2408
  l = !0;
2406
2409
  break;
2407
2410
  case "object":
2408
2411
  switch (e.$$typeof) {
2409
- case m:
2412
+ case y:
2410
2413
  case g:
2411
2414
  l = !0;
2412
2415
  }
2413
2416
  }
2414
2417
  if (l) {
2415
- var y = e, v = u(y), w = o === "" ? Xe + $e(y, 0) : o;
2418
+ var m = e, v = u(m), w = o === "" ? Xe + $e(m, 0) : o;
2416
2419
  if (we(v)) {
2417
2420
  var R = "";
2418
2421
  w != null && (R = tt(w) + "/"), Re(v, t, R, "", function(Lr) {
2419
2422
  return Lr;
2420
2423
  });
2421
- } else v != null && (ue(v) && (v.key && (!y || y.key !== v.key) && Ce(v.key), v = zt(
2424
+ } else v != null && (ue(v) && (v.key && (!m || m.key !== v.key) && Ce(v.key), v = zt(
2422
2425
  v,
2423
2426
  // Keep both the (mapped) and old keys if they differ, just as
2424
2427
  // traverseAllChildren used to do for objects as children
2425
2428
  n + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
2426
- (v.key && (!y || y.key !== v.key) ? (
2429
+ (v.key && (!m || m.key !== v.key) ? (
2427
2430
  // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
2428
2431
  // eslint-disable-next-line react-internal/safe-string-coercion
2429
2432
  tt("" + v.key) + "/"
@@ -2431,18 +2434,18 @@ function ao() {
2431
2434
  )), t.push(v));
2432
2435
  return 1;
2433
2436
  }
2434
- var S, T, A = 0, $ = o === "" ? Xe : o + Yt;
2437
+ var S, T, A = 0, x = o === "" ? Xe : o + Yt;
2435
2438
  if (we(e))
2436
2439
  for (var Ae = 0; Ae < e.length; Ae++)
2437
- S = e[Ae], T = $ + $e(S, Ae), A += Re(S, t, n, T, u);
2440
+ S = e[Ae], T = x + $e(S, Ae), A += Re(S, t, n, T, u);
2438
2441
  else {
2439
2442
  var He = oe(e);
2440
2443
  if (typeof He == "function") {
2441
2444
  var kt = e;
2442
2445
  He === kt.entries && (et || X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), et = !0);
2443
2446
  for (var $r = He.call(kt), Ot, xr = 0; !(Ot = $r.next()).done; )
2444
- S = Ot.value, T = $ + $e(S, xr++), A += Re(S, t, n, T, u);
2445
- } else if (d === "object") {
2447
+ S = Ot.value, T = x + $e(S, xr++), A += Re(S, t, n, T, u);
2448
+ } else if (p === "object") {
2446
2449
  var Tt = String(e);
2447
2450
  throw new Error("Objects are not valid as a React child (found: " + (Tt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Tt) + "). If you meant to render a collection of children, use an array instead.");
2448
2451
  }
@@ -2453,17 +2456,17 @@ function ao() {
2453
2456
  if (e == null)
2454
2457
  return e;
2455
2458
  var o = [], u = 0;
2456
- return Re(e, o, "", "", function(d) {
2457
- return t.call(n, d, u++);
2459
+ return Re(e, o, "", "", function(p) {
2460
+ return t.call(n, p, u++);
2458
2461
  }), o;
2459
2462
  }
2460
- function Kt(e) {
2463
+ function Bt(e) {
2461
2464
  var t = 0;
2462
2465
  return Se(e, function() {
2463
2466
  t++;
2464
2467
  }), t;
2465
2468
  }
2466
- function Bt(e, t, n) {
2469
+ function Kt(e, t, n) {
2467
2470
  Se(e, function() {
2468
2471
  t.apply(this, arguments);
2469
2472
  }, n);
@@ -2499,19 +2502,19 @@ function ao() {
2499
2502
  _globalName: null
2500
2503
  };
2501
2504
  t.Provider = {
2502
- $$typeof: x,
2505
+ $$typeof: $,
2503
2506
  _context: t
2504
2507
  };
2505
2508
  var n = !1, o = !1, u = !1;
2506
2509
  {
2507
- var d = {
2510
+ var p = {
2508
2511
  $$typeof: q,
2509
2512
  _context: t
2510
2513
  };
2511
- Object.defineProperties(d, {
2514
+ Object.defineProperties(p, {
2512
2515
  Provider: {
2513
2516
  get: function() {
2514
- return o || (o = !0, f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
2517
+ return o || (o = !0, d("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
2515
2518
  },
2516
2519
  set: function(l) {
2517
2520
  t.Provider = l;
@@ -2543,7 +2546,7 @@ function ao() {
2543
2546
  },
2544
2547
  Consumer: {
2545
2548
  get: function() {
2546
- return n || (n = !0, f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
2549
+ return n || (n = !0, d("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
2547
2550
  }
2548
2551
  },
2549
2552
  displayName: {
@@ -2554,7 +2557,7 @@ function ao() {
2554
2557
  u || (X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", l), u = !0);
2555
2558
  }
2556
2559
  }
2557
- }), t.Consumer = d;
2560
+ }), t.Consumer = p;
2558
2561
  }
2559
2562
  return t._currentRenderer = null, t._currentRenderer2 = null, t;
2560
2563
  }
@@ -2562,15 +2565,15 @@ function ao() {
2562
2565
  function Xt(e) {
2563
2566
  if (e._status === me) {
2564
2567
  var t = e._result, n = t();
2565
- if (n.then(function(d) {
2568
+ if (n.then(function(p) {
2566
2569
  if (e._status === xe || e._status === me) {
2567
2570
  var l = e;
2568
- l._status = rt, l._result = d;
2571
+ l._status = rt, l._result = p;
2569
2572
  }
2570
- }, function(d) {
2573
+ }, function(p) {
2571
2574
  if (e._status === xe || e._status === me) {
2572
2575
  var l = e;
2573
- l._status = Qt, l._result = d;
2576
+ l._status = Qt, l._result = p;
2574
2577
  }
2575
2578
  }), e._status === me) {
2576
2579
  var o = e;
@@ -2579,12 +2582,12 @@ function ao() {
2579
2582
  }
2580
2583
  if (e._status === rt) {
2581
2584
  var u = e._result;
2582
- return u === void 0 && f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2585
+ return u === void 0 && d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2583
2586
 
2584
2587
  Your code should look like:
2585
2588
  const MyComponent = lazy(() => import('./MyComponent'))
2586
2589
 
2587
- Did you accidentally put curly braces around the import?`, u), "default" in u || f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2590
+ Did you accidentally put curly braces around the import?`, u), "default" in u || d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2588
2591
 
2589
2592
  Your code should look like:
2590
2593
  const MyComponent = lazy(() => import('./MyComponent'))`, u), u.default;
@@ -2609,8 +2612,8 @@ Your code should look like:
2609
2612
  get: function() {
2610
2613
  return o;
2611
2614
  },
2612
- set: function(d) {
2613
- f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = d, Object.defineProperty(n, "defaultProps", {
2615
+ set: function(p) {
2616
+ d("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = p, Object.defineProperty(n, "defaultProps", {
2614
2617
  enumerable: !0
2615
2618
  });
2616
2619
  }
@@ -2620,8 +2623,8 @@ Your code should look like:
2620
2623
  get: function() {
2621
2624
  return u;
2622
2625
  },
2623
- set: function(d) {
2624
- f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = d, Object.defineProperty(n, "propTypes", {
2626
+ set: function(p) {
2627
+ d("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = p, Object.defineProperty(n, "propTypes", {
2625
2628
  enumerable: !0
2626
2629
  });
2627
2630
  }
@@ -2631,7 +2634,7 @@ Your code should look like:
2631
2634
  return n;
2632
2635
  }
2633
2636
  function tr(e) {
2634
- e != null && e.$$typeof === Y ? f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? f("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && f("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
2637
+ e != null && e.$$typeof === Y ? d("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? d("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && d("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && d("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
2635
2638
  var t = {
2636
2639
  $$typeof: V,
2637
2640
  render: e
@@ -2654,14 +2657,14 @@ Your code should look like:
2654
2657
  var nt;
2655
2658
  nt = Symbol.for("react.module.reference");
2656
2659
  function ot(e) {
2657
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e === U || e === G || pe || e === ve || de || De || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === x || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
2660
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === P || ie || e === I || e === U || e === G || pe || e === ve || de || Me || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === $ || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
2658
2661
  // types supported by any Flight configuration anywhere since
2659
2662
  // we don't know which Flight build this will end up being used
2660
2663
  // with.
2661
2664
  e.$$typeof === nt || e.getModuleId !== void 0));
2662
2665
  }
2663
2666
  function rr(e, t) {
2664
- ot(e) || f("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
2667
+ ot(e) || d("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
2665
2668
  var n = {
2666
2669
  $$typeof: Y,
2667
2670
  type: e,
@@ -2684,7 +2687,7 @@ Your code should look like:
2684
2687
  }
2685
2688
  function N() {
2686
2689
  var e = ae.current;
2687
- return e === null && f(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2690
+ return e === null && d(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2688
2691
  1. You might have mismatching versions of React and the renderer (such as React DOM)
2689
2692
  2. You might be breaking the Rules of Hooks
2690
2693
  3. You might have more than one copy of React in the same app
@@ -2694,7 +2697,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2694
2697
  var t = N();
2695
2698
  if (e._context !== void 0) {
2696
2699
  var n = e._context;
2697
- n.Consumer === e ? f("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : n.Provider === e && f("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
2700
+ n.Consumer === e ? d("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : n.Provider === e && d("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
2698
2701
  }
2699
2702
  return t.useContext(e);
2700
2703
  }
@@ -2815,7 +2818,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2815
2818
  })
2816
2819
  });
2817
2820
  }
2818
- he < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2821
+ he < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2819
2822
  }
2820
2823
  }
2821
2824
  var Le = H.ReactCurrentDispatcher, Ne;
@@ -2849,8 +2852,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2849
2852
  Ue = !0;
2850
2853
  var u = Error.prepareStackTrace;
2851
2854
  Error.prepareStackTrace = void 0;
2852
- var d;
2853
- d = Le.current, Le.current = null, gr();
2855
+ var p;
2856
+ p = Le.current, Le.current = null, gr();
2854
2857
  try {
2855
2858
  if (t) {
2856
2859
  var l = function() {
@@ -2863,39 +2866,39 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2863
2866
  }), typeof Reflect == "object" && Reflect.construct) {
2864
2867
  try {
2865
2868
  Reflect.construct(l, []);
2866
- } catch ($) {
2867
- o = $;
2869
+ } catch (x) {
2870
+ o = x;
2868
2871
  }
2869
2872
  Reflect.construct(e, [], l);
2870
2873
  } else {
2871
2874
  try {
2872
2875
  l.call();
2873
- } catch ($) {
2874
- o = $;
2876
+ } catch (x) {
2877
+ o = x;
2875
2878
  }
2876
2879
  e.call(l.prototype);
2877
2880
  }
2878
2881
  } else {
2879
2882
  try {
2880
2883
  throw Error();
2881
- } catch ($) {
2882
- o = $;
2884
+ } catch (x) {
2885
+ o = x;
2883
2886
  }
2884
2887
  e();
2885
2888
  }
2886
- } catch ($) {
2887
- if ($ && o && typeof $.stack == "string") {
2888
- for (var y = $.stack.split(`
2889
+ } catch (x) {
2890
+ if (x && o && typeof x.stack == "string") {
2891
+ for (var m = x.stack.split(`
2889
2892
  `), v = o.stack.split(`
2890
- `), w = y.length - 1, R = v.length - 1; w >= 1 && R >= 0 && y[w] !== v[R]; )
2893
+ `), w = m.length - 1, R = v.length - 1; w >= 1 && R >= 0 && m[w] !== v[R]; )
2891
2894
  R--;
2892
2895
  for (; w >= 1 && R >= 0; w--, R--)
2893
- if (y[w] !== v[R]) {
2896
+ if (m[w] !== v[R]) {
2894
2897
  if (w !== 1 || R !== 1)
2895
2898
  do
2896
- if (w--, R--, R < 0 || y[w] !== v[R]) {
2899
+ if (w--, R--, R < 0 || m[w] !== v[R]) {
2897
2900
  var S = `
2898
- ` + y[w].replace(" at new ", " at ");
2901
+ ` + m[w].replace(" at new ", " at ");
2899
2902
  return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && Oe.set(e, S), S;
2900
2903
  }
2901
2904
  while (w >= 1 && R >= 0);
@@ -2903,7 +2906,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2903
2906
  }
2904
2907
  }
2905
2908
  } finally {
2906
- Ue = !1, Le.current = d, _r(), Error.prepareStackTrace = u;
2909
+ Ue = !1, Le.current = p, _r(), Error.prepareStackTrace = u;
2907
2910
  }
2908
2911
  var T = e ? e.displayName || e.name : "", A = T ? ke(T) : "";
2909
2912
  return typeof e == "function" && Oe.set(e, A), A;
@@ -2935,9 +2938,9 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2935
2938
  case Y:
2936
2939
  return Te(e.type, t, n);
2937
2940
  case Z: {
2938
- var o = e, u = o._payload, d = o._init;
2941
+ var o = e, u = o._payload, p = o._init;
2939
2942
  try {
2940
- return Te(d(u), t, n);
2943
+ return Te(p(u), t, n);
2941
2944
  } catch {
2942
2945
  }
2943
2946
  }
@@ -2954,20 +2957,20 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
2954
2957
  }
2955
2958
  function Cr(e, t, n, o, u) {
2956
2959
  {
2957
- var d = Function.call.bind(ye);
2960
+ var p = Function.call.bind(ye);
2958
2961
  for (var l in e)
2959
- if (d(e, l)) {
2960
- var y = void 0;
2962
+ if (p(e, l)) {
2963
+ var m = void 0;
2961
2964
  try {
2962
2965
  if (typeof e[l] != "function") {
2963
2966
  var v = Error((o || "React class") + ": " + n + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2964
2967
  throw v.name = "Invariant Violation", v;
2965
2968
  }
2966
- y = e[l](t, l, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2969
+ m = e[l](t, l, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2967
2970
  } catch (w) {
2968
- y = w;
2971
+ m = w;
2969
2972
  }
2970
- y && !(y instanceof Error) && (Pe(u), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, l, typeof y), Pe(null)), y instanceof Error && !(y.message in yt) && (yt[y.message] = !0, Pe(u), f("Failed %s type: %s", n, y.message), Pe(null));
2973
+ m && !(m instanceof Error) && (Pe(u), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, l, typeof m), Pe(null)), m instanceof Error && !(m.message in yt) && (yt[m.message] = !0, Pe(u), d("Failed %s type: %s", n, m.message), Pe(null));
2971
2974
  }
2972
2975
  }
2973
2976
  }
@@ -3020,7 +3023,7 @@ Check the top-level render call using <` + n + ">.");
3020
3023
  if (!vt[n]) {
3021
3024
  vt[n] = !0;
3022
3025
  var o = "";
3023
- e && e._owner && e._owner !== z.current && (o = " It was passed a child from " + ee(e._owner.type) + "."), ce(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), ce(null);
3026
+ e && e._owner && e._owner !== z.current && (o = " It was passed a child from " + ee(e._owner.type) + "."), ce(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), ce(null);
3024
3027
  }
3025
3028
  }
3026
3029
  }
@@ -3036,7 +3039,7 @@ Check the top-level render call using <` + n + ">.");
3036
3039
  else if (e) {
3037
3040
  var u = oe(e);
3038
3041
  if (typeof u == "function" && u !== e.entries)
3039
- for (var d = u.call(e), l; !(l = d.next()).done; )
3042
+ for (var p = u.call(e), l; !(l = p.next()).done; )
3040
3043
  ue(l.value) && gt(l.value, t);
3041
3044
  }
3042
3045
  }
@@ -3061,9 +3064,9 @@ Check the top-level render call using <` + n + ">.");
3061
3064
  } else if (t.PropTypes !== void 0 && !Ve) {
3062
3065
  Ve = !0;
3063
3066
  var u = ee(t);
3064
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
3067
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
3065
3068
  }
3066
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3069
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3067
3070
  }
3068
3071
  }
3069
3072
  function Or(e) {
@@ -3071,11 +3074,11 @@ Check the top-level render call using <` + n + ">.");
3071
3074
  for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
3072
3075
  var o = t[n];
3073
3076
  if (o !== "children" && o !== "key") {
3074
- ce(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), ce(null);
3077
+ ce(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), ce(null);
3075
3078
  break;
3076
3079
  }
3077
3080
  }
3078
- e.ref !== null && (ce(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
3081
+ e.ref !== null && (ce(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
3079
3082
  }
3080
3083
  }
3081
3084
  function Et(e, t, n) {
@@ -3083,18 +3086,18 @@ Check the top-level render call using <` + n + ">.");
3083
3086
  if (!o) {
3084
3087
  var u = "";
3085
3088
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
3086
- var d = Sr(t);
3087
- d ? u += d : u += ht();
3089
+ var p = Sr(t);
3090
+ p ? u += p : u += ht();
3088
3091
  var l;
3089
- e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (ee(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, u);
3092
+ e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === y ? (l = "<" + (ee(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, u);
3090
3093
  }
3091
- var y = Vt.apply(this, arguments);
3092
- if (y == null)
3093
- return y;
3094
+ var m = Vt.apply(this, arguments);
3095
+ if (m == null)
3096
+ return m;
3094
3097
  if (o)
3095
3098
  for (var v = 2; v < arguments.length; v++)
3096
3099
  _t(arguments[v], e);
3097
- return e === b ? Or(y) : bt(y), y;
3100
+ return e === b ? Or(m) : bt(m), m;
3098
3101
  }
3099
3102
  var wt = !1;
3100
3103
  function Tr(e) {
@@ -3114,14 +3117,14 @@ Check the top-level render call using <` + n + ">.");
3114
3117
  return bt(o), o;
3115
3118
  }
3116
3119
  function Ir(e, t) {
3117
- var n = K.transition;
3118
- K.transition = {};
3119
- var o = K.transition;
3120
- K.transition._updatedFibers = /* @__PURE__ */ new Set();
3120
+ var n = B.transition;
3121
+ B.transition = {};
3122
+ var o = B.transition;
3123
+ B.transition._updatedFibers = /* @__PURE__ */ new Set();
3121
3124
  try {
3122
3125
  e();
3123
3126
  } finally {
3124
- if (K.transition = n, n === null && o._updatedFibers) {
3127
+ if (B.transition = n, n === null && o._updatedFibers) {
3125
3128
  var u = o._updatedFibers.size;
3126
3129
  u > 10 && X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
3127
3130
  }
@@ -3135,7 +3138,7 @@ Check the top-level render call using <` + n + ">.");
3135
3138
  Ie = n.call(c, "timers").setImmediate;
3136
3139
  } catch {
3137
3140
  Ie = function(o) {
3138
- Ct === !1 && (Ct = !0, typeof MessageChannel > "u" && f("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
3141
+ Ct === !1 && (Ct = !0, typeof MessageChannel > "u" && d("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
3139
3142
  var u = new MessageChannel();
3140
3143
  u.port1.onmessage = o, u.port2.postMessage(void 0);
3141
3144
  };
@@ -3159,19 +3162,19 @@ Check the top-level render call using <` + n + ">.");
3159
3162
  F.isBatchingLegacy = n;
3160
3163
  }
3161
3164
  if (o !== null && typeof o == "object" && typeof o.then == "function") {
3162
- var d = o, l = !1, y = {
3165
+ var p = o, l = !1, m = {
3163
3166
  then: function(T, A) {
3164
- l = !0, d.then(function($) {
3165
- je(t), le === 0 ? ze($, T, A) : T($);
3166
- }, function($) {
3167
- je(t), A($);
3167
+ l = !0, p.then(function(x) {
3168
+ je(t), le === 0 ? ze(x, T, A) : T(x);
3169
+ }, function(x) {
3170
+ je(t), A(x);
3168
3171
  });
3169
3172
  }
3170
3173
  };
3171
3174
  return !Rt && typeof Promise < "u" && Promise.resolve().then(function() {
3172
3175
  }).then(function() {
3173
- l || (Rt = !0, f("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
3174
- }), y;
3176
+ l || (Rt = !0, d("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
3177
+ }), m;
3175
3178
  } else {
3176
3179
  var v = o;
3177
3180
  if (je(t), le === 0) {
@@ -3195,7 +3198,7 @@ Check the top-level render call using <` + n + ">.");
3195
3198
  }
3196
3199
  }
3197
3200
  function je(e) {
3198
- e !== le - 1 && f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), le = e;
3201
+ e !== le - 1 && d("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), le = e;
3199
3202
  }
3200
3203
  function ze(e, t, n) {
3201
3204
  {
@@ -3232,14 +3235,14 @@ Check the top-level render call using <` + n + ">.");
3232
3235
  }
3233
3236
  }
3234
3237
  }
3235
- var Ar = Et, Dr = Pr, Mr = Tr, Fr = {
3238
+ var Ar = Et, Mr = Pr, Dr = Tr, Fr = {
3236
3239
  map: Se,
3237
- forEach: Bt,
3238
- count: Kt,
3240
+ forEach: Kt,
3241
+ count: Bt,
3239
3242
  toArray: Gt,
3240
3243
  only: Jt
3241
3244
  };
3242
- a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = I, a.PureComponent = C, a.StrictMode = j, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Dr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Mr, a.createRef = Dt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3245
+ a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = P, a.PureComponent = C, a.StrictMode = I, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Mr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Dr, a.createRef = Mt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3243
3246
  }();
3244
3247
  }(jt, jt.exports)), jt.exports;
3245
3248
  }
@@ -3247,50 +3250,50 @@ process.env.NODE_ENV === "production" ? oo() : ao();
3247
3250
  const io = async (c) => {
3248
3251
  if (typeof c != "object" || !c) return !1;
3249
3252
  try {
3250
- const a = { type: "ping" }, p = await c.send(a);
3251
- if (p !== !0)
3252
- throw new Error(`Expected 'true' after ping, got ${JSON.stringify(p)}`);
3253
+ const a = { type: "ping" }, f = await c.send(a);
3254
+ if (f !== !0)
3255
+ throw new Error(`Expected 'true' after ping, got ${JSON.stringify(f)}`);
3253
3256
  return !0;
3254
3257
  } catch {
3255
3258
  return !1;
3256
3259
  }
3257
- }, so = (c, a) => !!c && a, B = (c) => i.nullable(c.optional());
3260
+ }, so = (c, a) => !!c && a, K = (c) => i.nullable(c.optional());
3258
3261
  i.string().trim().min(1, { message: "Cannot be blank" });
3259
3262
  const uo = i.object({
3260
3263
  cde_response_type: i.literal("error"),
3261
3264
  message: i.string()
3262
3265
  }), co = i.enum(["usd", "brl"]), cn = i.object({
3263
3266
  name: i.string(),
3264
- amount_atom_off: B(i.number()),
3265
- percent_off: B(i.number()),
3266
- currency: B(i.string()),
3267
+ amount_atom_off: K(i.number()),
3268
+ percent_off: K(i.number()),
3269
+ currency: K(i.string()),
3267
3270
  duration: i.string(),
3268
- duration_in_months: B(i.number())
3271
+ duration_in_months: K(i.number())
3269
3272
  }), lo = i.object({
3270
3273
  amount_subtotal_atom: i.number().int(),
3271
3274
  amount_total_atom: i.number().int(),
3272
3275
  currency: i.string(),
3273
- description: B(i.string()),
3276
+ description: K(i.string()),
3274
3277
  price_id: i.string(),
3275
- billing_interval: B(i.string()),
3276
- billing_interval_count: B(i.number().int()),
3278
+ billing_interval: K(i.string()),
3279
+ billing_interval_count: K(i.number().int()),
3277
3280
  quantity: i.number().int()
3278
3281
  }), fo = i.record(i.string(), i.any()), po = i.object({
3279
3282
  name: i.string(),
3280
- settings: B(fo)
3283
+ settings: K(fo)
3281
3284
  }), yo = i.object({
3282
3285
  provider: i.string(),
3283
- processor_name: B(i.string()),
3284
- metadata: B(i.record(i.string(), i.any()))
3286
+ processor_name: K(i.string()),
3287
+ metadata: K(i.record(i.string(), i.any()))
3285
3288
  }), mo = i.object({
3286
3289
  quantity: i.number()
3287
3290
  }), ho = i.object({
3288
- id: B(i.string()),
3289
- billing_interval: B(i.string()),
3290
- billing_interval_count: B(i.number().int()),
3291
+ id: K(i.string()),
3292
+ billing_interval: K(i.string()),
3293
+ billing_interval_count: K(i.number().int()),
3291
3294
  subscription_items: i.array(mo),
3292
- trial_start: B(i.string()),
3293
- trial_end: B(i.string())
3295
+ trial_start: K(i.string()),
3296
+ trial_end: K(i.string())
3294
3297
  }), ln = i.object({
3295
3298
  amount_atom: i.number()
3296
3299
  }), vo = i.object({
@@ -3304,7 +3307,7 @@ const uo = i.object({
3304
3307
  }), _o = i.object({
3305
3308
  currency: i.string(),
3306
3309
  discounts: i.array(go),
3307
- hosted_invoice_url: B(i.string()),
3310
+ hosted_invoice_url: K(i.string()),
3308
3311
  lines: i.array(vo),
3309
3312
  remaining_amount_atom: i.number(),
3310
3313
  tax_amount_atom: i.number(),
@@ -3315,17 +3318,17 @@ const uo = i.object({
3315
3318
  invoices: i.array(_o)
3316
3319
  }), fn = i.object({
3317
3320
  preview: Jr,
3318
- preview_post_trial: B(Jr),
3321
+ preview_post_trial: K(Jr),
3319
3322
  coupons: i.array(cn)
3320
3323
  }), Zr = i.object({
3321
3324
  status: i.literal("open"),
3322
3325
  token: i.string(),
3323
- email: B(i.string()),
3326
+ email: K(i.string()),
3324
3327
  line_items: i.array(lo),
3325
3328
  amount_subtotal_atom: i.number().int(),
3326
3329
  amount_total_atom: i.number().int(),
3327
3330
  brand: po,
3328
- subs_preview: B(fn),
3331
+ subs_preview: K(fn),
3329
3332
  // Null in setup mode
3330
3333
  methods_available: i.array(yo)
3331
3334
  }), dn = i.discriminatedUnion("mode", [
@@ -3375,16 +3378,16 @@ i.object({
3375
3378
  required_user_actions: i.array(i.record(i.string(), i.any())),
3376
3379
  cc_pm_id: i.string()
3377
3380
  });
3378
- const qr = async (c, a, p) => {
3379
- const m = await c.send(a);
3380
- if (Ro(m))
3381
- throw new Error(`[cde-client] Error querying CDE: ${m.message}`);
3382
- if (!Co(m, p)) {
3383
- const g = p.safeParse(m);
3381
+ const qr = async (c, a, f) => {
3382
+ const y = await c.send(a);
3383
+ if (Ro(y))
3384
+ throw new Error(`[cde-client] Error querying CDE: ${y.message}`);
3385
+ if (!Co(y, f)) {
3386
+ const g = f.safeParse(y);
3384
3387
  throw g.success ? new Error("Invalid state") : g.error;
3385
3388
  }
3386
- return m;
3387
- }, Co = (c, a) => a.safeParse(c).success, Ro = (c) => uo.safeParse(c).success, So = async (c, a) => await qr(c, { type: "get_checkout_preview", payload: a }, fn), pn = async (c) => await qr(c, { type: "get_prefill", payload: {} }, dn), ko = async (c, a) => await qr(c, { type: "confirm_payment_flow", payload: a }, Bn);
3389
+ return y;
3390
+ }, Co = (c, a) => a.safeParse(c).success, Ro = (c) => uo.safeParse(c).success, So = async (c, a) => await qr(c, { type: "get_checkout_preview", payload: a }, fn), pn = async (c) => await qr(c, { type: "get_prefill", payload: {} }, dn), ko = async (c, a) => await qr(c, { type: "confirm_payment_flow", payload: a }, Kn);
3388
3391
  class Oo {
3389
3392
  constructor(a) {
3390
3393
  this.formInstance = a, this.config = a.config, this.formId = a.formId, this.eventTargets = {}, this.nonces = /* @__PURE__ */ new Set(), this.tokenizedData = null, this.tokenized = 0, this.connectionManager = a.getConnectionManager();
@@ -3393,22 +3396,26 @@ class Oo {
3393
3396
  this.tokenizedData = a;
3394
3397
  }
3395
3398
  handleMessage(a) {
3396
- if (a.origin !== this.formInstance.config.baseUrl || !a.source) return;
3397
- const p = no(JSON.parse(a.data));
3398
- if (!this.validateEvent(p)) return;
3399
- const { elementId: g, payload: b } = p;
3399
+ var P;
3400
+ if (!a.source)
3401
+ throw new Error("No source found");
3402
+ if (a.origin !== ((P = this.formInstance.config._frameUrl) == null ? void 0 : P.origin))
3403
+ return;
3404
+ const f = no(JSON.parse(a.data));
3405
+ if (!this.validateEvent(f)) return;
3406
+ const { elementId: g, payload: b } = f;
3400
3407
  switch (b.type) {
3401
3408
  case "LAYOUT":
3402
3409
  this.handleLayoutEvent(b);
3403
3410
  break;
3404
3411
  case "FOCUS":
3405
- this.handleFocusEvent(g);
3412
+ this.handleFocusEvent(g, b.elementType);
3406
3413
  break;
3407
3414
  case "BLUR":
3408
- this.handleBlurEvent(g);
3415
+ this.handleBlurEvent(g, b.elementType);
3409
3416
  break;
3410
3417
  case "CHANGE":
3411
- this.handleChangeEvent(g);
3418
+ this.handleChangeEvent(g, b.elementType, b.errors);
3412
3419
  break;
3413
3420
  case "LOADED":
3414
3421
  this.handleLoadedEvent(a.source, g, b);
@@ -3446,20 +3453,20 @@ class Oo {
3446
3453
  return a.formId !== this.formInstance.formId || !a.elementId || this.nonces.has(a.nonce) ? !1 : (this.nonces.add(a.nonce), !0);
3447
3454
  }
3448
3455
  handleLayoutEvent(a) {
3449
- const p = a.height ? `${a.height}px` : "100%";
3450
- this.formInstance.setFormHeight(p);
3456
+ const f = a.height ? `${a.height}px` : "100%";
3457
+ this.formInstance.setFormHeight(f);
3451
3458
  }
3452
- handleFocusEvent(a) {
3453
- this.config.onFocus && this.config.onFocus(a);
3459
+ handleFocusEvent(a, f) {
3460
+ this.config.onFocus && this.config.onFocus(a, f);
3454
3461
  }
3455
- handleBlurEvent(a) {
3456
- this.config.onBlur && this.config.onBlur(a);
3462
+ handleBlurEvent(a, f) {
3463
+ this.config.onBlur && this.config.onBlur(a, f);
3457
3464
  }
3458
- handleChangeEvent(a) {
3459
- this.config.onChange && this.config.onChange(a);
3465
+ handleChangeEvent(a, f, y) {
3466
+ this.config.onChange && this.config.onChange(a, f, y);
3460
3467
  }
3461
- handleLoadedEvent(a, p, m) {
3462
- this.eventTargets[p] = a, this.formInstance.sessionId || (this.formInstance.sessionId = m.sessionId), this.config.onLoad && this.config.onLoad(m.totalAmountAtoms, m.currency), this.formInstance.checkoutPaymentMethods = m.checkoutPaymentMethods;
3468
+ handleLoadedEvent(a, f, y) {
3469
+ this.eventTargets[f] = a, this.formInstance.sessionId || (this.formInstance.sessionId = y.sessionId), this.config.onLoad && this.config.onLoad(y.totalAmountAtoms, y.currency), this.formInstance.checkoutPaymentMethods = y.checkoutPaymentMethods;
3463
3470
  }
3464
3471
  handleTokenizeStartedEvent() {
3465
3472
  this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
@@ -3467,25 +3474,25 @@ class Oo {
3467
3474
  handleCheckoutStartedEvent() {
3468
3475
  this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
3469
3476
  }
3470
- async handlePaymentFlowStartedEvent(a, p, m) {
3471
- var j;
3477
+ async handlePaymentFlowStartedEvent(a, f, y) {
3478
+ var I;
3472
3479
  if (!this.tokenizedData)
3473
3480
  throw new Error("tokenizedData not populated");
3474
3481
  const g = this.connectionManager.getConnection(), b = async () => {
3475
3482
  var q;
3476
- const I = a.nextActionMetadata.type;
3477
- if (I !== void 0) if (I === "stripe_3ds")
3483
+ const P = a.nextActionMetadata.type;
3484
+ if (P !== void 0) if (P === "stripe_3ds")
3478
3485
  await to(a);
3479
- else if (I === "stripe_payment_request") {
3486
+ else if (P === "stripe_payment_request") {
3480
3487
  if (!this.formInstance.getStripePm())
3481
3488
  throw new Error("Stripe PM not set");
3482
3489
  await eo(a, this.formInstance.getStripePm());
3483
3490
  } else
3484
- throw new Error(`Unknown next action type: ${I}`);
3485
- const x = await pn(g);
3486
- if (x.mode === "setup") {
3491
+ throw new Error(`Unknown next action type: ${P}`);
3492
+ const $ = await pn(g);
3493
+ if ($.mode === "setup") {
3487
3494
  const { payment_methods: V } = await ko(g, {
3488
- secure_token: x.token,
3495
+ secure_token: $.token,
3489
3496
  existing_cc_pm_id: (q = this.tokenizedData) == null ? void 0 : q.existingCCPMId
3490
3497
  });
3491
3498
  if (V.length !== 1)
@@ -3499,29 +3506,29 @@ class Oo {
3499
3506
  };
3500
3507
  };
3501
3508
  try {
3502
- const { proceedToCheckout: I } = await b();
3503
- if (!I)
3509
+ const { proceedToCheckout: P } = await b();
3510
+ if (!P)
3504
3511
  return;
3505
- let x;
3506
- if (this.tokenizedData.checkoutPaymentMethod.provider === "credit_card" && (x = (j = a.startPFMetadata) == null ? void 0 : j.cc_pm_id, !x))
3512
+ let $;
3513
+ if (this.tokenizedData.checkoutPaymentMethod.provider === "credit_card" && ($ = (I = a.startPFMetadata) == null ? void 0 : I.cc_pm_id, !$))
3507
3514
  throw new Error("CC PM ID not found");
3508
- Kr(
3509
- p,
3515
+ Br(
3516
+ f,
3510
3517
  this.formInstance.formId,
3511
- m,
3512
- { ...this.tokenizedData, type: "CHECKOUT", doNotUseLegacyCCFlow: !0, existingCCPMId: x },
3518
+ y,
3519
+ { ...this.tokenizedData, type: "CHECKOUT", doNotUseLegacyCCFlow: !0, existingCCPMId: $ },
3513
3520
  this.formInstance.config.baseUrl
3514
3521
  ), this.formInstance.checkoutFired = !0, this.tokenizedData = null, this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
3515
- } catch (I) {
3516
- const x = en(I);
3517
- this.formInstance.checkoutFired = !1, this.formInstance.config.onCheckoutError && this.formInstance.config.onCheckoutError(x);
3522
+ } catch (P) {
3523
+ const $ = en(P);
3524
+ this.formInstance.checkoutFired = !1, this.formInstance.config.onCheckoutError && this.formInstance.config.onCheckoutError($);
3518
3525
  }
3519
3526
  }
3520
- handleTokenizeSuccessEvent(a, p, m) {
3527
+ handleTokenizeSuccessEvent(a, f, y) {
3521
3528
  if (!this.tokenizedData)
3522
3529
  throw new Error("Tokenized data not found");
3523
3530
  const g = this.tokenized + 1, b = g === Object.keys(this.eventTargets).length;
3524
- !this.formInstance.checkoutFired && (b || m.isReadyForCheckout) ? (this.tokenizedData.type = this.tokenizedData.type === J.enum.TOKENIZE ? J.enum.CHECKOUT : J.enum.START_PAYMENT_FLOW, this.postEventToFrame(a, p, this.tokenizedData), this.tokenizedData = null) : this.tokenized = g;
3531
+ !this.formInstance.checkoutFired && (b || y.isReadyForCheckout) ? (this.tokenizedData.type = this.tokenizedData.type === J.enum.TOKENIZE ? J.enum.CHECKOUT : J.enum.START_PAYMENT_FLOW, this.postEventToFrame(a, f, this.tokenizedData), this.tokenizedData = null) : this.tokenized = g;
3525
3532
  }
3526
3533
  handleCheckoutSuccessEvent(a) {
3527
3534
  this.formInstance.config.onCheckoutSuccess && this.formInstance.config.onCheckoutSuccess(a.invoiceUrls, a.subscriptionIds, a.customerId);
@@ -3532,27 +3539,27 @@ class Oo {
3532
3539
  handleLoadErrorEvent(a) {
3533
3540
  this.formInstance.config.onLoadError && this.formInstance.config.onLoadError(a.message);
3534
3541
  }
3535
- handleValidationErrorEvent(a, p) {
3536
- this.formInstance.config.onValidationError && this.formInstance.config.onValidationError(a.elementType, a.errors, p);
3542
+ handleValidationErrorEvent(a, f) {
3543
+ this.formInstance.config.onValidationError && this.formInstance.config.onValidationError(a.elementType, a.errors, f);
3537
3544
  }
3538
3545
  handleErrorEvent(a) {
3539
- var p;
3546
+ var f;
3540
3547
  if (a.message === "3DS_REQUIRED") {
3541
- const m = (p = this.formInstance.checkoutPaymentMethods) == null ? void 0 : p.find((g) => g.provider === "credit_card");
3542
- if (!this.formInstance.sessionId || !this.formInstance.formTarget || !this.config.onValidationError || !m)
3548
+ const y = (f = this.formInstance.checkoutPaymentMethods) == null ? void 0 : f.find((g) => g.provider === "credit_card");
3549
+ if (!this.formInstance.sessionId || !this.formInstance.formTarget || !this.config.onValidationError || !y)
3543
3550
  return;
3544
3551
  for (const [g, b] of Object.entries(this.eventTargets)) {
3545
3552
  if (!b) continue;
3546
- const j = At(
3553
+ const I = At(
3547
3554
  J.enum.START_PAYMENT_FLOW,
3548
3555
  this.formInstance.sessionId,
3549
3556
  document.querySelector(this.formInstance.formTarget) ?? document.body,
3550
3557
  this.config.onValidationError,
3551
- { ...m, processor_name: "stripe" },
3558
+ { ...y, processor_name: "stripe" },
3552
3559
  !1
3553
3560
  );
3554
- if (j) {
3555
- this.formInstance.checkoutFired = !0, this.tokenizedData = j, this.postEventToFrame(b, g, j);
3561
+ if (I) {
3562
+ this.formInstance.checkoutFired = !0, this.tokenizedData = I, this.postEventToFrame(b, g, I);
3556
3563
  break;
3557
3564
  }
3558
3565
  }
@@ -3560,13 +3567,13 @@ class Oo {
3560
3567
  this.formInstance.checkoutFired = !1, this.formInstance.config.onCheckoutError && this.formInstance.config.onCheckoutError(a.message);
3561
3568
  }
3562
3569
  handleFormSubmit() {
3563
- var m;
3564
- if (!this.formInstance.sessionId || !((m = this.formInstance.checkoutPaymentMethods) != null && m.length) || !this.config.onValidationError)
3570
+ var y;
3571
+ if (!this.formInstance.sessionId || !((y = this.formInstance.checkoutPaymentMethods) != null && y.length) || !this.config.onValidationError)
3565
3572
  return;
3566
3573
  const a = this.formInstance.checkoutPaymentMethods.find((g) => g.provider === "credit_card");
3567
3574
  if (!a)
3568
3575
  throw new Error("Card not available as a payment method in checkout");
3569
- const p = At(
3576
+ const f = At(
3570
3577
  J.enum.TOKENIZE,
3571
3578
  this.formInstance.sessionId,
3572
3579
  document.querySelector(this.formInstance.formTarget) ?? document.body,
@@ -3574,31 +3581,31 @@ class Oo {
3574
3581
  a,
3575
3582
  !1
3576
3583
  );
3577
- if (!p)
3584
+ if (!f)
3578
3585
  throw new Error("Error constructing tokenize data");
3579
3586
  for (const [g, b] of Object.entries(this.eventTargets))
3580
- b && this.postEventToFrame(b, g, p);
3581
- this.tokenizedData = p;
3587
+ b && this.postEventToFrame(b, g, f);
3588
+ this.tokenizedData = f;
3582
3589
  }
3583
- postEventToFrame(a, p, m) {
3584
- Kr(a, this.formId, p, m, this.config.baseUrl);
3590
+ postEventToFrame(a, f, y) {
3591
+ Br(a, this.formId, f, y, this.config.baseUrl);
3585
3592
  }
3586
3593
  }
3587
3594
  async function To(c) {
3588
- const p = await mn({
3595
+ const f = await mn({
3589
3596
  iframe: c,
3590
3597
  debug: !0
3591
- }).promise, m = await io(p);
3592
- if (!so(p, m))
3598
+ }).promise, y = await io(f);
3599
+ if (!so(f, y))
3593
3600
  throw new Error("Got invalid CDE connection object");
3594
- return p;
3601
+ return f;
3595
3602
  }
3596
3603
  class Po {
3597
3604
  constructor() {
3598
3605
  this.connections = /* @__PURE__ */ new Map();
3599
3606
  }
3600
- addConnection(a, p) {
3601
- this.connections.set(a, p);
3607
+ addConnection(a, f) {
3608
+ this.connections.set(a, f);
3602
3609
  }
3603
3610
  getConnection() {
3604
3611
  const a = this.connections.values().next().value;
@@ -3607,58 +3614,58 @@ class Po {
3607
3614
  return a;
3608
3615
  }
3609
3616
  }
3610
- async function Io(c, a, p, m, g, b) {
3611
- const j = {
3617
+ async function Io(c, a, f, y, g, b) {
3618
+ const I = {
3612
3619
  apple_pay: { isLoading: !0, isAvailable: !1, startFlow: async () => {
3613
3620
  } },
3614
3621
  google_pay: { isLoading: !0, isAvailable: !1, startFlow: async () => {
3615
3622
  } }
3616
3623
  };
3617
- for (const I of ["apple_pay", "google_pay"])
3624
+ for (const P of ["apple_pay", "google_pay"])
3618
3625
  try {
3619
- const x = a.find(
3620
- (U) => U.provider === I && U.processor_name === "stripe"
3626
+ const $ = a.find(
3627
+ (U) => U.provider === P && U.processor_name === "stripe"
3621
3628
  );
3622
- if (!x)
3623
- throw new Error(`${I} is not available as a checkout method`);
3624
- const q = Xn(x.metadata), V = await jo(q, I);
3625
- j[I] = {
3629
+ if (!$)
3630
+ throw new Error(`${P} is not available as a checkout method`);
3631
+ const q = Xn($.metadata), V = await jo(q, P);
3632
+ I[P] = {
3626
3633
  isLoading: !1,
3627
3634
  isAvailable: V,
3628
3635
  startFlow: (U) => Ao(
3629
- p,
3636
+ f,
3630
3637
  c.checkoutSecureToken,
3631
3638
  document.querySelector(c.formTarget),
3632
- x,
3639
+ $,
3633
3640
  q,
3634
- m,
3641
+ y,
3635
3642
  g,
3636
3643
  b,
3637
3644
  U
3638
3645
  )
3639
3646
  };
3640
3647
  } catch {
3641
- j[I] = {
3648
+ I[P] = {
3642
3649
  isLoading: !1,
3643
3650
  isAvailable: !1,
3644
3651
  startFlow: async () => {
3645
3652
  }
3646
3653
  };
3647
3654
  }
3648
- return j;
3655
+ return I;
3649
3656
  }
3650
3657
  async function jo(c, a) {
3651
- const m = await sn(c, 1e3, "usd"), g = await m.canMakePayment();
3652
- if (m.abort(), !g)
3658
+ const y = await sn(c, 1e3, "usd"), g = await y.canMakePayment();
3659
+ if (y.abort(), !g)
3653
3660
  throw new Error(`Cannot make payment with ${a} for this session`);
3654
3661
  return g[a === "apple_pay" ? "applePay" : "googlePay"];
3655
3662
  }
3656
- async function Ao(c, a, p, m, g, b, j, I, x) {
3663
+ async function Ao(c, a, f, y, g, b, I, P, $) {
3657
3664
  try {
3658
- const q = un(p, {});
3659
- if (!Do(p, j, m))
3665
+ const q = un(f, {});
3666
+ if (!Mo(f, I, y))
3660
3667
  return;
3661
- const U = (await pn(c)).mode === "setup", G = await Mo(U, x, q, c, a), Y = await sn(
3668
+ const U = (await pn(c)).mode === "setup", G = await Do(U, $, q, c, a), Y = await sn(
3662
3669
  g,
3663
3670
  G.amountAtom,
3664
3671
  G.currency,
@@ -3666,42 +3673,44 @@ async function Ao(c, a, p, m, g, b, j, I, x) {
3666
3673
  );
3667
3674
  await Y.canMakePayment(), Y.show();
3668
3675
  const Z = await Qn(Y);
3669
- b(Z, m);
3676
+ b(Z, y);
3670
3677
  } catch (q) {
3671
- I(en(q));
3678
+ P(en(q));
3672
3679
  }
3673
3680
  }
3674
- function Do(c, a, p) {
3681
+ function Mo(c, a, f) {
3675
3682
  return !!At(
3676
3683
  J.enum.START_PAYMENT_FLOW,
3677
3684
  "dummy",
3678
3685
  c,
3679
3686
  a ?? (() => {
3680
3687
  }),
3681
- p,
3688
+ f,
3682
3689
  !1
3683
3690
  );
3684
3691
  }
3685
- async function Mo(c, a, p, m, g) {
3692
+ async function Do(c, a, f, y, g) {
3686
3693
  var V;
3687
3694
  if (c)
3688
3695
  return ((V = a == null ? void 0 : a.overridePaymentRequest) == null ? void 0 : V.amount) ?? { amountAtom: 0, currency: "usd" };
3689
3696
  a != null && a.overridePaymentRequest;
3690
- const b = ne.safeParse(p[It.PROMOTION_CODE]);
3697
+ const b = te.safeParse(f[It.PROMOTION_CODE]);
3691
3698
  if (!b.success)
3692
3699
  throw new Error(`Unknown promo code type: ${b.error.message}`);
3693
- const j = await So(m, {
3700
+ const I = await So(y, {
3694
3701
  secure_token: g,
3695
3702
  promotion_code: b.data
3696
- }), I = new Set(j.preview.invoices.map((U) => U.currency));
3697
- if (I.size !== 1)
3698
- throw new Error(`Expected exactly one currency, got ${I.size}`);
3699
- const x = I.values().next().value;
3700
- return { amountAtom: j.preview.invoices.reduce((U, G) => U + G.remaining_amount_atom, 0), currency: x };
3703
+ }), P = new Set(I.preview.invoices.map((U) => U.currency));
3704
+ if (P.size !== 1)
3705
+ throw new Error(`Expected exactly one currency, got ${P.size}`);
3706
+ const $ = P.values().next().value;
3707
+ return { amountAtom: I.preview.invoices.reduce((U, G) => U + G.remaining_amount_atom, 0), currency: $ };
3701
3708
  }
3702
3709
  class Lo {
3703
3710
  constructor(a) {
3704
- this.config = { ...a, baseUrl: a.baseUrl ?? "https://cde.getopenpay.com" }, this.elements = null, this.formId = `opjs-form-${window.crypto.randomUUID()}`, this.referer = window.location.origin, this.formTarget = a.formTarget ?? "body", this.formProperties = { height: "1px" }, this.sessionId = null, this.checkoutPaymentMethods = [], this.checkoutFired = !1, this.stripePm = void 0, this.paymentRequests = this.initPaymentRequests(), this.connectionManager = new Po(), this.eventHandler = new Oo(this), window.addEventListener("message", this.eventHandler.handleMessage.bind(this.eventHandler));
3711
+ this.config = { ...a, baseUrl: a.baseUrl ?? "https://cde.getopenpay.com" }, this.elements = null, this.formId = `opjs-form-${window.crypto.randomUUID()}`, this.referer = window.location.origin, this.formTarget = a.formTarget ?? "body", this.formProperties = { height: "1px" }, this.sessionId = null, this.checkoutPaymentMethods = [], this.checkoutFired = !1, this.stripePm = void 0, this.paymentRequests = this.initPaymentRequests(), this.connectionManager = new Po(), this.eventHandler = new Oo(this);
3712
+ const f = { version: "0.1.3" };
3713
+ window.ojs_version = f, window.addEventListener("message", this.eventHandler.handleMessage.bind(this.eventHandler));
3705
3714
  }
3706
3715
  getStripePm() {
3707
3716
  return this.stripePm;
@@ -3710,8 +3719,8 @@ class Lo {
3710
3719
  return this.connectionManager;
3711
3720
  }
3712
3721
  setFormHeight(a) {
3713
- this.formProperties.height = a, this.elements && Object.values(this.elements).forEach((p) => {
3714
- p.node.style.height = a;
3722
+ this.formProperties.height = a, this.elements && Object.values(this.elements).forEach((f) => {
3723
+ f.node.style.height = a;
3715
3724
  });
3716
3725
  }
3717
3726
  initPaymentRequests() {
@@ -3722,47 +3731,49 @@ class Lo {
3722
3731
  } }
3723
3732
  };
3724
3733
  }
3725
- createElement(a, p = {}) {
3734
+ createElement(a, f = {}) {
3726
3735
  if (!this.config) throw new Error("OpenPay form not initialized");
3727
- const m = document.createElement("iframe"), g = this.buildQueryString(p);
3728
- m.name = `${a}-element`, m.src = `${this.config.baseUrl}/app/v1/${a}-element/?${g.toString()}`, m.style.border = "none", m.style.width = "100%";
3729
- const b = {
3736
+ const y = document.createElement("iframe"), g = this.buildQueryString(f);
3737
+ y.name = `${a}-element`;
3738
+ const b = new URL(`/app/v1/${y.name}`, this.config.baseUrl);
3739
+ b.search = g.toString(), y.src = b.href, this.config._frameUrl = b, y.style.border = "none", y.style.width = "100%";
3740
+ const I = {
3730
3741
  type: a,
3731
- node: m,
3732
- mount: (j) => {
3733
- var I;
3734
- return (I = document.querySelector(j)) == null ? void 0 : I.appendChild(m);
3742
+ node: y,
3743
+ mount: (P) => {
3744
+ var $;
3745
+ return ($ = document.querySelector(P)) == null ? void 0 : $.appendChild(y);
3735
3746
  }
3736
3747
  };
3737
- return this.elements ? this.elements[a] = b : (this.elements = { [a]: b }, this.connectToElement(b)), b;
3748
+ return this.elements ? this.elements[a] = I : (this.elements = { [a]: I }, this.connectToElement(I)), I;
3738
3749
  }
3739
3750
  buildQueryString(a) {
3740
- const p = new URLSearchParams();
3741
- return p.append("referer", this.referer), p.append("formId", this.formId), a.styles && p.append("styles", ro(a.styles)), p.append("secureToken", this.config.checkoutSecureToken), p;
3751
+ const f = new URLSearchParams();
3752
+ return f.append("referer", this.referer), f.append("formId", this.formId), a.styles && f.append("styles", ro(a.styles)), f.append("secureToken", this.config.checkoutSecureToken), f;
3742
3753
  }
3743
3754
  connectToElement(a) {
3744
- To(a.node).then((p) => {
3745
- this.connectionManager.addConnection(a.type, p), this.initializePaymentRequests();
3746
- }).catch((p) => {
3755
+ To(a.node).then((f) => {
3756
+ this.connectionManager.addConnection(a.type, f), this.initializePaymentRequests();
3757
+ }).catch((f) => {
3747
3758
  });
3748
3759
  }
3749
3760
  submit() {
3750
3761
  this.eventHandler.handleFormSubmit();
3751
3762
  }
3752
- async onUserCompletePaymentRequestUI(a, p) {
3763
+ async onUserCompletePaymentRequestUI(a, f) {
3753
3764
  if (!(!this.config.onValidationError || !this.sessionId || !this.checkoutPaymentMethods))
3754
- for (const [m, g] of Object.entries(this.eventHandler.eventTargets ?? {})) {
3755
- const b = { stripePmId: a.paymentMethod.id }, j = At(
3765
+ for (const [y, g] of Object.entries(this.eventHandler.eventTargets ?? {})) {
3766
+ const b = { stripePmId: a.paymentMethod.id }, I = At(
3756
3767
  J.enum.START_PAYMENT_FLOW,
3757
3768
  this.sessionId,
3758
3769
  document.querySelector(this.formTarget) ?? document.body,
3759
3770
  this.config.onValidationError,
3760
- p,
3771
+ f,
3761
3772
  !1,
3762
3773
  b
3763
3774
  );
3764
- if (j) {
3765
- this.stripePm = a, this.checkoutFired = !0, this.eventHandler.setTokenizedData(j), this.eventHandler.postEventToFrame(g, m, j);
3775
+ if (I) {
3776
+ this.stripePm = a, this.checkoutFired = !0, this.eventHandler.setTokenizedData(I), this.eventHandler.postEventToFrame(g, y, I);
3766
3777
  break;
3767
3778
  }
3768
3779
  }