@rebilly/instruments 9.28.1 → 9.29.1

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.js CHANGED
@@ -297,7 +297,7 @@ const readonlyHandlers = {
297
297
  }
298
298
  };
299
299
  const toShallow = (value) => value;
300
- const getProto = (v2) => Reflect.getPrototypeOf(v2);
300
+ const getProto = (v3) => Reflect.getPrototypeOf(v3);
301
301
  function get(target, key, isReadonly2 = false, isShallow2 = false) {
302
302
  target = target[
303
303
  "__v_raw"
@@ -3805,7 +3805,7 @@ const isHTMLForm = kindOfTest("HTMLFormElement");
3805
3805
  const toCamelCase = (str) => {
3806
3806
  return str.toLowerCase().replace(
3807
3807
  /[-_\s]([a-z\d])(\w*)/g,
3808
- function replacer(m2, p1, p2) {
3808
+ function replacer(m, p1, p2) {
3809
3809
  return p1.toUpperCase() + p2;
3810
3810
  }
3811
3811
  );
@@ -6020,9 +6020,9 @@ class d {
6020
6020
  }
6021
6021
  }
6022
6022
  const w$1 = new d();
6023
- class v {
6024
- }
6025
- q$1(v, "cancelById", (t2, s) => {
6023
+ let v$1 = class v {
6024
+ };
6025
+ q$1(v$1, "cancelById", (t2, s) => {
6026
6026
  try {
6027
6027
  w$1.getById(t2).cancel(s), w$1.deleteById(t2);
6028
6028
  } catch {
@@ -6042,14 +6042,14 @@ q$1(v, "cancelById", (t2, s) => {
6042
6042
  * // cancel all active requests
6043
6043
  * cancellation.cancelAll();
6044
6044
  */
6045
- q$1(v, "cancelAll", (t2) => w$1.getAll().forEach((s) => {
6045
+ q$1(v$1, "cancelAll", (t2) => w$1.getAll().forEach((s) => {
6046
6046
  s.cancel(t2), w$1.deleteById(s.id);
6047
6047
  }));
6048
6048
  const cn = {
6049
6049
  /**
6050
6050
  * @type Cancellation.cancelAll
6051
6051
  */
6052
- cancelAll: (...e2) => v.cancelAll(...e2)
6052
+ cancelAll: (...e2) => v$1.cancelAll(...e2)
6053
6053
  }, b$1 = {
6054
6054
  request: "request",
6055
6055
  response: "response"
@@ -6097,21 +6097,21 @@ function C$1({ options: e2 }) {
6097
6097
  const i = l();
6098
6098
  e2.publishableKey = c, i.common.Authorization = `${c}`, t2.defaults.headers = i;
6099
6099
  }
6100
- function E({ host: c, port: i, auth: g2 }) {
6100
+ function E({ host: c, port: i, auth: g }) {
6101
6101
  t2.defaults.proxy = {
6102
6102
  host: c,
6103
6103
  port: i,
6104
- auth: g2
6104
+ auth: g
6105
6105
  };
6106
6106
  }
6107
- function I({ live: c = null, sandbox: i = null }) {
6107
+ function I2({ live: c = null, sandbox: i = null }) {
6108
6108
  c && (e2.apiEndpoints.live = c), i && (e2.apiEndpoints.sandbox = i), t2.defaults.baseURL = u();
6109
6109
  }
6110
- function M2(c, { thenDelegate: i, catchDelegate: g2 = () => {
6110
+ function M2(c, { thenDelegate: i, catchDelegate: g = () => {
6111
6111
  } }) {
6112
6112
  return J$1(c) && t2.interceptors[b$1[c]].use(
6113
6113
  i,
6114
- g2
6114
+ g
6115
6115
  );
6116
6116
  }
6117
6117
  function O2(c, i) {
@@ -6140,27 +6140,27 @@ function C$1({ options: e2 }) {
6140
6140
  function H2(c) {
6141
6141
  O2(b$1.response, c);
6142
6142
  }
6143
- function A2({ request: c, isCollection: i, config: g2 }) {
6144
- const m2 = K2(g2), { id: h, cancelToken: ct } = w$1.save();
6145
- m2.cancelToken = ct;
6143
+ function A2({ request: c, isCollection: i, config: g }) {
6144
+ const m = K2(g), { id: h, cancelToken: ct } = w$1.save();
6145
+ m.cancelToken = ct;
6146
6146
  const z2 = async function() {
6147
6147
  try {
6148
- const k2 = await c(m2);
6148
+ const k2 = await c(m);
6149
6149
  return tt({
6150
6150
  response: k2,
6151
6151
  isCollection: i,
6152
- config: m2
6152
+ config: m
6153
6153
  });
6154
6154
  } catch (k2) {
6155
- return F2({ error: k2, config: m2 });
6155
+ return F2({ error: k2, config: m });
6156
6156
  } finally {
6157
6157
  w$1.deleteById(h);
6158
6158
  }
6159
6159
  }();
6160
- return z2.cancel = (k2) => v.cancelById(h, k2), z2;
6160
+ return z2.cancel = (k2) => v$1.cancelById(h, k2), z2;
6161
6161
  }
6162
- function tt({ response: c, isCollection: i, config: g2 }) {
6163
- return i ? new at(c, g2) : new G$1(c, g2);
6162
+ function tt({ response: c, isCollection: i, config: g }) {
6163
+ return i ? new at(c, g) : new G$1(c, g);
6164
6164
  }
6165
6165
  function F2({ error: c }) {
6166
6166
  if (axios.isCancel(c))
@@ -6185,40 +6185,40 @@ function C$1({ options: e2 }) {
6185
6185
  function et(c) {
6186
6186
  return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
6187
6187
  (i) => c.params[i] !== null && c.params[i] !== ""
6188
- ).reduce((i, g2) => (i[g2] = c.params[g2], i), {})), c;
6188
+ ).reduce((i, g) => (i[g] = c.params[g], i), {})), c;
6189
6189
  }
6190
6190
  function K2(c = {}) {
6191
6191
  return { ...et(c) };
6192
6192
  }
6193
6193
  function B2(c, i = {}) {
6194
6194
  return A2({
6195
- request: (g2) => t2.get(c, g2),
6195
+ request: (g) => t2.get(c, g),
6196
6196
  config: { params: i }
6197
6197
  });
6198
6198
  }
6199
6199
  function st(c, i) {
6200
6200
  return A2({
6201
- request: (g2) => t2.get(c, g2),
6201
+ request: (g) => t2.get(c, g),
6202
6202
  config: { params: i },
6203
6203
  isCollection: true
6204
6204
  });
6205
6205
  }
6206
- function L2(c, i, g2 = {}) {
6207
- let m2 = {};
6208
- return g2.authenticate === false && (m2 = { headers: l() }, delete m2.headers.common["REB-APIKEY"], delete m2.headers.common.Authorization), g2.params && (m2.params = { ...g2.params }), A2({
6206
+ function L2(c, i, g = {}) {
6207
+ let m = {};
6208
+ return g.authenticate === false && (m = { headers: l() }, delete m.headers.common["REB-APIKEY"], delete m.headers.common.Authorization), g.params && (m.params = { ...g.params }), A2({
6209
6209
  request: (h) => t2.post(c, i, h),
6210
- config: m2
6210
+ config: m
6211
6211
  });
6212
6212
  }
6213
- function N2(c, i, g2 = {}) {
6213
+ function N2(c, i, g = {}) {
6214
6214
  return A2({
6215
- request: (m2) => t2.put(c, i, m2),
6216
- config: { params: g2 }
6215
+ request: (m) => t2.put(c, i, m),
6216
+ config: { params: g }
6217
6217
  });
6218
6218
  }
6219
6219
  function nt(c, i) {
6220
6220
  return A2({
6221
- request: (g2) => t2.patch(c, i, g2),
6221
+ request: (g) => t2.patch(c, i, g),
6222
6222
  config: {}
6223
6223
  });
6224
6224
  }
@@ -6230,13 +6230,13 @@ function C$1({ options: e2 }) {
6230
6230
  }
6231
6231
  function ut(c, i) {
6232
6232
  return A2({
6233
- request: (g2) => t2.delete(c, g2),
6233
+ request: (g) => t2.delete(c, g),
6234
6234
  config: { data: { ...i } }
6235
6235
  });
6236
6236
  }
6237
- async function ot(c, i, g2, m2 = {}) {
6237
+ async function ot(c, i, g, m = {}) {
6238
6238
  if (i === "")
6239
- return L2(c, g2, { params: m2 });
6239
+ return L2(c, g, { params: m });
6240
6240
  try {
6241
6241
  if ((await B2(c)).response.status === 200)
6242
6242
  throw new $$1.RebillyConflictError({
@@ -6244,17 +6244,17 @@ function C$1({ options: e2 }) {
6244
6244
  });
6245
6245
  } catch (h) {
6246
6246
  if (h.name === "RebillyNotFoundError")
6247
- return N2(c, g2, m2);
6247
+ return N2(c, g, m);
6248
6248
  throw h;
6249
6249
  }
6250
6250
  }
6251
6251
  async function lt(c, i) {
6252
- const g2 = K2(i);
6252
+ const g = K2(i);
6253
6253
  try {
6254
- const m2 = await t2.get(c, g2);
6255
- return new mt(m2, g2);
6256
- } catch (m2) {
6257
- return F2({ error: m2, config: g2 });
6254
+ const m = await t2.get(c, g);
6255
+ return new mt(m, g);
6256
+ } catch (m) {
6257
+ return F2({ error: m, config: g });
6258
6258
  }
6259
6259
  }
6260
6260
  return {
@@ -6267,7 +6267,7 @@ function C$1({ options: e2 }) {
6267
6267
  setProxyAgent: E,
6268
6268
  setSessionToken: f,
6269
6269
  setPublishableKey: y2,
6270
- setEndpoints: I,
6270
+ setEndpoints: I2,
6271
6271
  get: B2,
6272
6272
  getAll: st,
6273
6273
  post: L2,
@@ -9837,7 +9837,7 @@ function Ts({ apiHandler: e2 }) {
9837
9837
  sort: y2 = null,
9838
9838
  criteria: E = null
9839
9839
  }) {
9840
- const I = {
9840
+ const I2 = {
9841
9841
  aggregationField: t2,
9842
9842
  aggregationPeriod: s,
9843
9843
  includeRefunds: n2,
@@ -9850,7 +9850,7 @@ function Ts({ apiHandler: e2 }) {
9850
9850
  sort: y2,
9851
9851
  criteria: E
9852
9852
  };
9853
- return e2.get("reports/retention-value", I);
9853
+ return e2.get("reports/retention-value", I2);
9854
9854
  },
9855
9855
  /**
9856
9856
  * @returns { rebilly.GetRevenueWaterfallReportResponsePromise } response
@@ -10886,22 +10886,22 @@ function O(r2, e2, t2, n2) {
10886
10886
  return new (t2 || (t2 = Promise))(function(i, a) {
10887
10887
  function l(c) {
10888
10888
  try {
10889
- h(n2.next(c));
10889
+ R2(n2.next(c));
10890
10890
  } catch (s) {
10891
10891
  a(s);
10892
10892
  }
10893
10893
  }
10894
- function u(c) {
10894
+ function d2(c) {
10895
10895
  try {
10896
- h(n2.throw(c));
10896
+ R2(n2.throw(c));
10897
10897
  } catch (s) {
10898
10898
  a(s);
10899
10899
  }
10900
10900
  }
10901
- function h(c) {
10902
- c.done ? i(c.value) : o2(c.value).then(l, u);
10901
+ function R2(c) {
10902
+ c.done ? i(c.value) : o2(c.value).then(l, d2);
10903
10903
  }
10904
- h((n2 = n2.apply(r2, e2 || [])).next());
10904
+ R2((n2 = n2.apply(r2, e2 || [])).next());
10905
10905
  });
10906
10906
  }
10907
10907
  function he(r2, e2, t2) {
@@ -10916,7 +10916,7 @@ function Re(r2, e2) {
10916
10916
  }(r2, e2) ? r2[e2] : void 0;
10917
10917
  }
10918
10918
  var b = { default: "endpoint" }, j = { default: "tlsEndpoint" };
10919
- function m(r2) {
10919
+ function I(r2) {
10920
10920
  for (var e2 = "", t2 = 0; t2 < r2.length; ++t2)
10921
10921
  if (t2 > 0) {
10922
10922
  var n2 = r2[t2].toLowerCase();
@@ -10925,58 +10925,58 @@ function m(r2) {
10925
10925
  e2 += r2[t2].toUpperCase();
10926
10926
  return e2;
10927
10927
  }
10928
- var F = "Client timeout", M = "Network connection error", x = "Network request aborted", B = "Response cannot be parsed", T = "Blocked by CSP", A = "The endpoint parameter is not a valid URL", V = /* @__PURE__ */ m("WrongRegion"), q = /* @__PURE__ */ m("SubscriptionNotActive"), G2 = /* @__PURE__ */ m("UnsupportedVersion"), $ = /* @__PURE__ */ m("InstallationMethodRestricted"), H = /* @__PURE__ */ m("HostnameRestricted"), W = /* @__PURE__ */ m("IntegrationFailed"), P = "API key required", D = "API key not found", C = "API key expired", J = "Request cannot be parsed", Y = "Request failed", X = "Request failed to process", Q = "Too many requests, rate limit exceeded", z = "Not available for this origin", Z = "Not available with restricted header", ee = P, te = D, ne = C, fe = "3.9.2", S = "Failed to load the JS script of the agent", L = "9319";
10928
+ var F = "Client timeout", M = "Network connection error", x = "Network request aborted", B = "Response cannot be parsed", T = "Blocked by CSP", A = "The endpoint parameter is not a valid URL", V = /* @__PURE__ */ I("WrongRegion"), q = /* @__PURE__ */ I("SubscriptionNotActive"), G2 = /* @__PURE__ */ I("UnsupportedVersion"), $ = /* @__PURE__ */ I("InstallationMethodRestricted"), H = /* @__PURE__ */ I("HostnameRestricted"), W = /* @__PURE__ */ I("IntegrationFailed"), P = "API key required", D = "API key not found", C = "API key expired", J = "Request cannot be parsed", Y = "Request failed", X = "Request failed to process", Q = "Too many requests, rate limit exceeded", z = "Not available for this origin", Z = "Not available with restricted header", ee = P, te = D, ne = C, fe = "3.9.2", S = "Failed to load the JS script of the agent", L = "9319";
10929
10929
  function Ee(r2, e2) {
10930
- var t2, n2, o2, i, a, l, u = [], h = (t2 = function(R2) {
10931
- var d2 = he([], R2, true);
10930
+ var t2, n2, o2, i, a, l, d2 = [], R2 = (t2 = function(f) {
10931
+ var h = he([], f, true);
10932
10932
  return { current: function() {
10933
- return d2[0];
10933
+ return h[0];
10934
10934
  }, postpone: function() {
10935
- var f = d2.shift();
10936
- f !== void 0 && d2.push(f);
10935
+ var E = h.shift();
10936
+ E !== void 0 && h.push(E);
10937
10937
  }, exclude: function() {
10938
- d2.shift();
10938
+ h.shift();
10939
10939
  } };
10940
10940
  }(r2), i = 100, a = 3e3, l = 0, n2 = function() {
10941
10941
  return Math.random() * Math.min(a, i * Math.pow(2, l++));
10942
- }, o2 = /* @__PURE__ */ new Set(), [t2.current(), function(R2, d2) {
10943
- var f, p2 = d2 instanceof Error ? d2.message : "";
10944
- if (p2 === T || p2 === A)
10945
- t2.exclude(), f = 0;
10946
- else if (p2 === L)
10942
+ }, o2 = /* @__PURE__ */ new Set(), [t2.current(), function(f, h) {
10943
+ var E, _ = h instanceof Error ? h.message : "";
10944
+ if (_ === T || _ === A)
10945
+ t2.exclude(), E = 0;
10946
+ else if (_ === L)
10947
10947
  t2.exclude();
10948
- else if (p2 === S) {
10949
- var _ = Date.now() - R2.getTime() < 50, v2 = t2.current();
10950
- v2 && _ && !o2.has(v2) && (o2.add(v2), f = 0), t2.postpone();
10948
+ else if (_ === S) {
10949
+ var p2 = Date.now() - f.getTime() < 50, g = t2.current();
10950
+ g && p2 && !o2.has(g) && (o2.add(g), E = 0), t2.postpone();
10951
10951
  } else
10952
10952
  t2.postpone();
10953
- var I = t2.current();
10954
- return I === void 0 ? void 0 : [I, f ?? R2.getTime() + n2() - Date.now()];
10955
- }]), c = h[0], s = h[1];
10953
+ var m = t2.current();
10954
+ return m === void 0 ? void 0 : [m, E ?? f.getTime() + n2() - Date.now()];
10955
+ }]), c = R2[0], s = R2[1];
10956
10956
  if (c === void 0)
10957
10957
  return Promise.reject(new TypeError("The list of script URL patterns is empty"));
10958
- var E = function(R2) {
10959
- var d2 = /* @__PURE__ */ new Date(), f = function(_) {
10960
- return u.push({ url: R2, startedAt: d2, finishedAt: /* @__PURE__ */ new Date(), error: _ });
10961
- }, p2 = e2(R2);
10962
- return p2.then(function() {
10963
- return f();
10964
- }, f), p2.catch(function(_) {
10965
- if (u.length >= 5)
10966
- throw _;
10967
- var v2 = s(d2, _);
10968
- if (!v2)
10969
- throw _;
10970
- var I, se2 = v2[0], le2 = v2[1];
10971
- return (I = le2, new Promise(function(ue2) {
10972
- return setTimeout(ue2, I);
10958
+ var u = function(f) {
10959
+ var h = /* @__PURE__ */ new Date(), E = function(p2) {
10960
+ return d2.push({ url: f, startedAt: h, finishedAt: /* @__PURE__ */ new Date(), error: p2 });
10961
+ }, _ = e2(f);
10962
+ return _.then(function() {
10963
+ return E();
10964
+ }, E), _.catch(function(p2) {
10965
+ if (d2.length >= 5)
10966
+ throw p2;
10967
+ var g = s(h, p2);
10968
+ if (!g)
10969
+ throw p2;
10970
+ var m, se2 = g[0], le2 = g[1];
10971
+ return (m = le2, new Promise(function(ue2) {
10972
+ return setTimeout(ue2, m);
10973
10973
  })).then(function() {
10974
- return E(se2);
10974
+ return u(se2);
10975
10975
  });
10976
10976
  });
10977
10977
  };
10978
- return E(c).then(function(R2) {
10979
- return [R2, u];
10978
+ return u(c).then(function(f) {
10979
+ return [f, d2];
10980
10980
  });
10981
10981
  }
10982
10982
  var re = "https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js", K = re;
@@ -10986,53 +10986,53 @@ function oe(r2) {
10986
10986
  var t2 = r2.token, n2 = r2.apiKey, o2 = n2 === void 0 ? t2 : n2, i = de(r2, ["scriptUrlPattern", "token", "apiKey"]), a = (e2 = Re(r2, "scriptUrlPattern")) !== null && e2 !== void 0 ? e2 : re, l = function() {
10987
10987
  var c = [], s = function() {
10988
10988
  c.push({ time: /* @__PURE__ */ new Date(), state: document.visibilityState });
10989
- }, E = function(R2, d2, f, p2) {
10990
- return R2.addEventListener(d2, f, p2), function() {
10991
- return R2.removeEventListener(d2, f, p2);
10989
+ }, u = function(f, h, E, _) {
10990
+ return f.addEventListener(h, E, _), function() {
10991
+ return f.removeEventListener(h, E, _);
10992
10992
  };
10993
10993
  }(document, "visibilitychange", s);
10994
- return s(), [c, E];
10995
- }(), u = l[0], h = l[1];
10994
+ return s(), [c, u];
10995
+ }(), d2 = l[0], R2 = l[1];
10996
10996
  return Promise.resolve().then(function() {
10997
10997
  if (!o2 || typeof o2 != "string")
10998
10998
  throw new Error(P);
10999
- var c = function(s, E) {
11000
- return (Array.isArray(s) ? s : [s]).map(function(R2) {
11001
- return function(d2, f) {
11002
- var p2 = encodeURIComponent;
11003
- return d2.replace(/<[^<>]+>/g, function(_) {
11004
- return _ === "<version>" ? "3" : _ === "<apiKey>" ? p2(f) : _ === "<loaderVersion>" ? p2(fe) : _;
10999
+ var c = function(s, u) {
11000
+ return (Array.isArray(s) ? s : [s]).map(function(f) {
11001
+ return function(h, E) {
11002
+ var _ = encodeURIComponent;
11003
+ return h.replace(/<[^<>]+>/g, function(p2) {
11004
+ return p2 === "<version>" ? "3" : p2 === "<apiKey>" ? _(E) : p2 === "<loaderVersion>" ? _(fe) : p2;
11005
11005
  });
11006
- }(String(R2), E);
11006
+ }(String(f), u);
11007
11007
  });
11008
11008
  }(a, o2);
11009
- return Ee(c, pe);
11009
+ return Ee(c, _e);
11010
11010
  }).catch(function(c) {
11011
- throw h(), function(s) {
11011
+ throw R2(), function(s) {
11012
11012
  return s instanceof Error && s.message === L ? new Error(S) : s;
11013
11013
  }(c);
11014
11014
  }).then(function(c) {
11015
- var s = c[0], E = c[1];
11016
- return h(), s.load(N(N({}, i), { ldi: { attempts: E, visibilityStates: u } }));
11015
+ var s = c[0], u = c[1];
11016
+ return R2(), s.load(N(N({}, i), { ldi: { attempts: u, visibilityStates: d2 } }));
11017
11017
  });
11018
11018
  }
11019
- function pe(r2) {
11019
+ function _e(r2) {
11020
11020
  return function(e2, t2, n2, o2) {
11021
- var i, a = document, l = "securitypolicyviolation", u = function(c) {
11022
- var s = new URL(e2, location.href), E = c.blockedURI;
11023
- E !== s.href && E !== s.protocol.slice(0, -1) && E !== s.origin || (i = c, h());
11021
+ var i, a = document, l = "securitypolicyviolation", d2 = function(c) {
11022
+ var s = new URL(e2, location.href), u = c.blockedURI;
11023
+ u !== s.href && u !== s.protocol.slice(0, -1) && u !== s.origin || (i = c, R2());
11024
11024
  };
11025
- a.addEventListener(l, u);
11026
- var h = function() {
11027
- return a.removeEventListener(l, u);
11025
+ a.addEventListener(l, d2);
11026
+ var R2 = function() {
11027
+ return a.removeEventListener(l, d2);
11028
11028
  };
11029
- return o2 == null || o2.then(h, h), Promise.resolve().then(t2).then(function(c) {
11030
- return h(), c;
11029
+ return o2 == null || o2.then(R2, R2), Promise.resolve().then(t2).then(function(c) {
11030
+ return R2(), c;
11031
11031
  }, function(c) {
11032
11032
  return new Promise(function(s) {
11033
11033
  return setTimeout(s);
11034
11034
  }).then(function() {
11035
- if (h(), i)
11035
+ if (R2(), i)
11036
11036
  return n2(i);
11037
11037
  throw c;
11038
11038
  });
@@ -11044,10 +11044,10 @@ function pe(r2) {
11044
11044
  if (URL.prototype)
11045
11045
  try {
11046
11046
  return new URL(l, location.href), false;
11047
- } catch (u) {
11048
- if (u instanceof Error && u.name === "TypeError")
11047
+ } catch (d2) {
11048
+ if (d2 instanceof Error && d2.name === "TypeError")
11049
11049
  return true;
11050
- throw u;
11050
+ throw d2;
11051
11051
  }
11052
11052
  }(e2))
11053
11053
  throw new Error(A);
@@ -11064,9 +11064,9 @@ function pe(r2) {
11064
11064
  }(r2);
11065
11065
  }, function() {
11066
11066
  throw new Error(T);
11067
- }).then(_e);
11067
+ }).then(pe);
11068
11068
  }
11069
- function _e() {
11069
+ function pe() {
11070
11070
  var r2 = window, e2 = "__fpjs_p_l_b", t2 = r2[e2];
11071
11071
  if (function(n2, o2) {
11072
11072
  var i, a = (i = Object.getOwnPropertyDescriptor) === null || i === void 0 ? void 0 : i.call(Object, n2, o2);
@@ -11076,7 +11076,7 @@ function _e() {
11076
11076
  return t2;
11077
11077
  }
11078
11078
  var Oe = { load: oe, defaultScriptUrlPattern: K, ERROR_SCRIPT_LOAD_FAIL: S, ERROR_API_KEY_EXPIRED: C, ERROR_API_KEY_INVALID: D, ERROR_API_KEY_MISSING: P, ERROR_BAD_REQUEST_FORMAT: J, ERROR_BAD_RESPONSE_FORMAT: B, ERROR_CLIENT_TIMEOUT: F, ERROR_CSP_BLOCK: T, ERROR_FORBIDDEN_ENDPOINT: H, ERROR_FORBIDDEN_HEADER: Z, ERROR_FORBIDDEN_ORIGIN: z, ERROR_GENERAL_SERVER_FAILURE: Y, ERROR_INSTALLATION_METHOD_RESTRICTED: $, ERROR_INTEGRATION_FAILURE: W, ERROR_INVALID_ENDPOINT: A, ERROR_NETWORK_ABORT: x, ERROR_NETWORK_CONNECTION: M, ERROR_RATE_LIMIT: Q, ERROR_SERVER_TIMEOUT: X, ERROR_SUBSCRIPTION_NOT_ACTIVE: q, ERROR_TOKEN_EXPIRED: ne, ERROR_TOKEN_INVALID: te, ERROR_TOKEN_MISSING: ee, ERROR_UNSUPPORTED_VERSION: G2, ERROR_WRONG_REGION: V, defaultEndpoint: b, defaultTlsEndpoint: j };
11079
- const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11079
+ const ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11080
11080
  __proto__: null,
11081
11081
  ERROR_API_KEY_EXPIRED: C,
11082
11082
  ERROR_API_KEY_INVALID: D,
@@ -11108,8 +11108,8 @@ const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11108
11108
  defaultScriptUrlPattern: K,
11109
11109
  defaultTlsEndpoint: j,
11110
11110
  load: oe
11111
- }, Symbol.toStringTag, { value: "Module" })), ie = "@fpjs@client@", ve = 60 * 60 * 24, ae = 60 * 60, ye = () => Date.now();
11112
- class me {
11111
+ }, Symbol.toStringTag, { value: "Module" })), ie = "@fpjs@client@", ge = 60 * 60 * 24, ae = 60 * 60, ye = () => Date.now();
11112
+ class Ie {
11113
11113
  constructor(e2) {
11114
11114
  var t2;
11115
11115
  this.tag = e2.tag || null, this.linkedId = e2.linkedId || null, this.extendedResult = (t2 = e2.extendedResult) !== null && t2 !== void 0 ? t2 : false;
@@ -11128,7 +11128,7 @@ function y(r2, e2) {
11128
11128
  function ce(r2, e2) {
11129
11129
  return r2.replace(`${e2}__`, "");
11130
11130
  }
11131
- class Ie {
11131
+ class me {
11132
11132
  constructor(e2 = ie) {
11133
11133
  this.prefix = e2;
11134
11134
  }
@@ -11278,26 +11278,26 @@ class Te {
11278
11278
  return [];
11279
11279
  }
11280
11280
  }
11281
- var g;
11281
+ var v2;
11282
11282
  (function(r2) {
11283
11283
  r2.Memory = "memory", r2.LocalStorage = "localstorage", r2.SessionStorage = "sessionstorage", r2.NoCache = "nocache";
11284
- })(g || (g = {}));
11284
+ })(v2 || (v2 = {}));
11285
11285
  var Ae = "1.3.1";
11286
11286
  const Pe = {
11287
- [g.Memory]: () => new Ne().enclosedCache,
11288
- [g.LocalStorage]: (r2) => new Ie(r2),
11289
- [g.SessionStorage]: (r2) => new we(r2),
11290
- [g.NoCache]: () => new Te()
11287
+ [v2.Memory]: () => new Ne().enclosedCache,
11288
+ [v2.LocalStorage]: (r2) => new me(r2),
11289
+ [v2.SessionStorage]: (r2) => new we(r2),
11290
+ [v2.NoCache]: () => new Te()
11291
11291
  }, be = (r2) => {
11292
11292
  switch (r2) {
11293
- case g.SessionStorage:
11293
+ case v2.SessionStorage:
11294
11294
  try {
11295
11295
  window.sessionStorage.getItem("item");
11296
11296
  } catch {
11297
11297
  return false;
11298
11298
  }
11299
11299
  return true;
11300
- case g.LocalStorage:
11300
+ case v2.LocalStorage:
11301
11301
  try {
11302
11302
  window.localStorage.getItem("item");
11303
11303
  } catch {
@@ -11320,11 +11320,11 @@ class w {
11320
11320
  if (e2 != null && e2.cache)
11321
11321
  n2 = e2.cache;
11322
11322
  else {
11323
- if (this.cacheLocation = (e2 == null ? void 0 : e2.cacheLocation) || g.SessionStorage, !k(this.cacheLocation))
11323
+ if (this.cacheLocation = (e2 == null ? void 0 : e2.cacheLocation) || v2.SessionStorage, !k(this.cacheLocation))
11324
11324
  throw new Error(`Invalid cache location "${this.cacheLocation}"`);
11325
- be(this.cacheLocation) || (this.cacheLocation = g.Memory), n2 = k(this.cacheLocation)(e2 == null ? void 0 : e2.cachePrefix);
11325
+ be(this.cacheLocation) || (this.cacheLocation = v2.Memory), n2 = k(this.cacheLocation)(e2 == null ? void 0 : e2.cachePrefix);
11326
11326
  }
11327
- if (e2 != null && e2.cacheTimeInSeconds && e2.cacheTimeInSeconds > ve)
11327
+ if (e2 != null && e2.cacheTimeInSeconds && e2.cacheTimeInSeconds > ge)
11328
11328
  throw new Error("Cache time cannot exceed 86400 seconds (24 hours)");
11329
11329
  const o2 = (t2 = e2 == null ? void 0 : e2.cacheTimeInSeconds) !== null && t2 !== void 0 ? t2 : ae;
11330
11330
  this.cacheManager = new Se(n2, o2);
@@ -11346,7 +11346,7 @@ class w {
11346
11346
  `fingerprintjs-pro-spa/${Ae}`
11347
11347
  ] });
11348
11348
  if (!this.agentPromise) {
11349
- const i = (n2 = this.customAgent) !== null && n2 !== void 0 ? n2 : ge;
11349
+ const i = (n2 = this.customAgent) !== null && n2 !== void 0 ? n2 : ve;
11350
11350
  this.agentPromise = i.load(o2).then((a) => (this.agent = a, a)).catch((a) => {
11351
11351
  throw this.agentPromise = null, a;
11352
11352
  });
@@ -11402,7 +11402,7 @@ class w {
11402
11402
  * Makes a CacheKey object from GetOptions
11403
11403
  */
11404
11404
  static makeCacheKey(e2) {
11405
- return new me(e2);
11405
+ return new Ie(e2);
11406
11406
  }
11407
11407
  _identify(e2) {
11408
11408
  return O(this, arguments, void 0, function* (t2, n2 = false) {
@@ -11421,7 +11421,10 @@ async function U() {
11421
11421
  try {
11422
11422
  const r2 = typeof Cypress == "object", e2 = typeof process == "object" && define_process_env_default.NODE_ENV === "test";
11423
11423
  if (r2 || e2)
11424
- return "a-mock-visitor-id";
11424
+ return {
11425
+ visitorId: "a-mock-visitor-id",
11426
+ requestId: null
11427
+ };
11425
11428
  const t2 = "https://d2hwnq6cq5q3pi.cloudfront.net", n2 = "wyr92st0i7", o2 = "ia1t65gn6i", i = "db4fuswrza", a = new w({
11426
11429
  loadOptions: {
11427
11430
  apiKey: "hpFVJecm7Ni7AjSfvBIW",
@@ -11435,9 +11438,14 @@ async function U() {
11435
11438
  ]
11436
11439
  }
11437
11440
  });
11438
- return await a.init(), (await a.getVisitorData()).visitorId;
11441
+ await a.init();
11442
+ const l = await a.getVisitorData();
11443
+ return {
11444
+ visitorId: l.visitorId,
11445
+ requestId: l.requestId
11446
+ };
11439
11447
  } catch (r2) {
11440
- return console.log(r2), "";
11448
+ return console.log(r2), {};
11441
11449
  }
11442
11450
  }
11443
11451
  async function De() {
@@ -11472,8 +11480,8 @@ async function Ue({
11472
11480
  const a = new ka.ClientSDK();
11473
11481
  a.setupCallback({
11474
11482
  "collect-begin": (l) => {
11475
- const { MercSessId: u } = l;
11476
- n2(u);
11483
+ const { MercSessId: d2 } = l;
11484
+ n2(d2);
11477
11485
  }
11478
11486
  }), a.autoLoadEvents();
11479
11487
  }, i.onerror = () => {
@@ -11498,10 +11506,10 @@ async function Fe({
11498
11506
  getFingerprint: i,
11499
11507
  getFraudSessionId: a
11500
11508
  }) {
11501
- const { colorDepth: l, height: u, width: h } = e2 || {}, { javaEnabled: c, language: s } = t2 || {};
11502
- let E, R2, d2;
11509
+ const { colorDepth: l, height: d2, width: R2 } = e2 || {}, { javaEnabled: c, language: s } = t2 || {};
11510
+ let u, f, h;
11503
11511
  try {
11504
- [d2, E, R2] = await Promise.all([
11512
+ [h, u, f] = await Promise.all([
11505
11513
  je(),
11506
11514
  i == null ? void 0 : i(),
11507
11515
  n2 ? a({
@@ -11510,23 +11518,24 @@ async function Fe({
11510
11518
  kountSessionId: o2
11511
11519
  }) : void 0
11512
11520
  ]);
11513
- } catch (p2) {
11514
- console.error(p2);
11521
+ } catch (_) {
11522
+ console.error(_);
11515
11523
  }
11516
11524
  return {
11517
11525
  riskMetadata: {
11518
- fingerprint: E || null,
11526
+ fingerprint: (u == null ? void 0 : u.visitorId) || null,
11519
11527
  extraData: {
11520
- kountFraudSessionId: R2 || null
11528
+ kountFraudSessionId: f || null,
11529
+ fingerprintJsRequestId: (u == null ? void 0 : u.requestId) || null
11521
11530
  },
11522
11531
  browserData: {
11523
11532
  colorDepth: l || null,
11524
11533
  isJavaEnabled: c ? c.call(t2) : null,
11525
11534
  language: s || null,
11526
- screenHeight: u || null,
11527
- screenWidth: h || null,
11535
+ screenHeight: d2 || null,
11536
+ screenWidth: R2 || null,
11528
11537
  timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
11529
- isAdBlockEnabled: d2
11538
+ isAdBlockEnabled: h
11530
11539
  }
11531
11540
  }
11532
11541
  };
@@ -15288,8 +15297,8 @@ class AddressModel {
15288
15297
  this.region = region;
15289
15298
  this.country = country;
15290
15299
  this.postalCode = postalCode;
15291
- this.email = ((_a = emails.find((v2) => v2.primary)) == null ? void 0 : _a.value) || null;
15292
- this.phoneNumber = ((_b = phoneNumbers.find((v2) => v2.primary)) == null ? void 0 : _b.value) || null;
15300
+ this.email = ((_a = emails.find((v3) => v3.primary)) == null ? void 0 : _a.value) || null;
15301
+ this.phoneNumber = ((_b = phoneNumbers.find((v3) => v3.primary)) == null ? void 0 : _b.value) || null;
15293
15302
  }
15294
15303
  }
15295
15304
  class AccountModel extends BaseModel {
@@ -19763,15 +19772,15 @@ var uri_all = { exports: {} };
19763
19772
  output.push(delimiter);
19764
19773
  }
19765
19774
  while (handledCPCount < inputLength) {
19766
- var m2 = maxInt;
19775
+ var m = maxInt;
19767
19776
  var _iteratorNormalCompletion2 = true;
19768
19777
  var _didIteratorError2 = false;
19769
19778
  var _iteratorError2 = void 0;
19770
19779
  try {
19771
19780
  for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
19772
19781
  var currentValue = _step2.value;
19773
- if (currentValue >= n2 && currentValue < m2) {
19774
- m2 = currentValue;
19782
+ if (currentValue >= n2 && currentValue < m) {
19783
+ m = currentValue;
19775
19784
  }
19776
19785
  }
19777
19786
  } catch (err) {
@@ -19789,11 +19798,11 @@ var uri_all = { exports: {} };
19789
19798
  }
19790
19799
  }
19791
19800
  var handledCPCountPlusOne = handledCPCount + 1;
19792
- if (m2 - n2 > floor((maxInt - delta) / handledCPCountPlusOne)) {
19801
+ if (m - n2 > floor((maxInt - delta) / handledCPCountPlusOne)) {
19793
19802
  error$12("overflow");
19794
19803
  }
19795
- delta += (m2 - n2) * handledCPCountPlusOne;
19796
- n2 = m2;
19804
+ delta += (m - n2) * handledCPCountPlusOne;
19805
+ n2 = m;
19797
19806
  var _iteratorNormalCompletion3 = true;
19798
19807
  var _didIteratorError3 = false;
19799
19808
  var _iteratorError3 = void 0;
@@ -20660,17 +20669,17 @@ uri$1.default = uri;
20660
20669
  return this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : void 0;
20661
20670
  }
20662
20671
  validate(schemaKeyRef, data) {
20663
- let v2;
20672
+ let v3;
20664
20673
  if (typeof schemaKeyRef == "string") {
20665
- v2 = this.getSchema(schemaKeyRef);
20666
- if (!v2)
20674
+ v3 = this.getSchema(schemaKeyRef);
20675
+ if (!v3)
20667
20676
  throw new Error(`no schema with key or ref "${schemaKeyRef}"`);
20668
20677
  } else {
20669
- v2 = this.compile(schemaKeyRef);
20678
+ v3 = this.compile(schemaKeyRef);
20670
20679
  }
20671
- const valid = v2(data);
20672
- if (!("$async" in v2))
20673
- this.errors = v2.errors;
20680
+ const valid = v3(data);
20681
+ if (!("$async" in v3))
20682
+ this.errors = v3.errors;
20674
20683
  return valid;
20675
20684
  }
20676
20685
  compile(schema2, _meta) {
@@ -21155,8 +21164,8 @@ const def$A = {
21155
21164
  return callRef(cxt, (0, codegen_1$p._)`${rootName}.validate`, root2, root2.$async);
21156
21165
  }
21157
21166
  function callValidate(sch) {
21158
- const v2 = getValidate(cxt, sch);
21159
- callRef(cxt, v2, sch, sch.$async);
21167
+ const v3 = getValidate(cxt, sch);
21168
+ callRef(cxt, v3, sch, sch.$async);
21160
21169
  }
21161
21170
  function inlineRefSchema(sch) {
21162
21171
  const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1$p.stringify)(sch) } : { ref: sch });
@@ -21178,7 +21187,7 @@ function getValidate(cxt, sch) {
21178
21187
  return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1$p._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
21179
21188
  }
21180
21189
  ref.getValidate = getValidate;
21181
- function callRef(cxt, v2, sch, $async) {
21190
+ function callRef(cxt, v3, sch, $async) {
21182
21191
  const { gen, it: it2 } = cxt;
21183
21192
  const { allErrors, schemaEnv: env, opts } = it2;
21184
21193
  const passCxt = opts.passContext ? names_1$4.default.this : codegen_1$p.nil;
@@ -21191,8 +21200,8 @@ function callRef(cxt, v2, sch, $async) {
21191
21200
  throw new Error("async schema referenced by sync schema");
21192
21201
  const valid = gen.let("valid");
21193
21202
  gen.try(() => {
21194
- gen.code((0, codegen_1$p._)`await ${(0, code_1$8.callValidateCode)(cxt, v2, passCxt)}`);
21195
- addEvaluatedFrom(v2);
21203
+ gen.code((0, codegen_1$p._)`await ${(0, code_1$8.callValidateCode)(cxt, v3, passCxt)}`);
21204
+ addEvaluatedFrom(v3);
21196
21205
  if (!allErrors)
21197
21206
  gen.assign(valid, true);
21198
21207
  }, (e2) => {
@@ -21204,7 +21213,7 @@ function callRef(cxt, v2, sch, $async) {
21204
21213
  cxt.ok(valid);
21205
21214
  }
21206
21215
  function callSyncRef() {
21207
- cxt.result((0, code_1$8.callValidateCode)(cxt, v2, passCxt), () => addEvaluatedFrom(v2), () => addErrorsFrom(v2));
21216
+ cxt.result((0, code_1$8.callValidateCode)(cxt, v3, passCxt), () => addEvaluatedFrom(v3), () => addErrorsFrom(v3));
21208
21217
  }
21209
21218
  function addErrorsFrom(source) {
21210
21219
  const errs = (0, codegen_1$p._)`${source}.errors`;
@@ -21616,7 +21625,7 @@ const def$q = {
21616
21625
  cxt.pass(valid);
21617
21626
  function loopEnum() {
21618
21627
  gen.assign(valid, false);
21619
- gen.forOf("v", schemaCode, (v2) => gen.if((0, codegen_1$f._)`${getEql()}(${data}, ${v2})`, () => gen.assign(valid, true).break()));
21628
+ gen.forOf("v", schemaCode, (v3) => gen.if((0, codegen_1$f._)`${getEql()}(${data}, ${v3})`, () => gen.assign(valid, true).break()));
21620
21629
  }
21621
21630
  function equalCode(vSchema, i) {
21622
21631
  const sch = schema2[i];
@@ -22592,9 +22601,9 @@ const def$9 = {
22592
22601
  function dynamicAnchor(cxt, anchor) {
22593
22602
  const { gen, it: it2 } = cxt;
22594
22603
  it2.schemaEnv.root.dynamicAnchors[anchor] = true;
22595
- const v2 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
22604
+ const v3 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
22596
22605
  const validate2 = it2.errSchemaPath === "#" ? it2.validateName : _getValidate(cxt);
22597
- gen.if((0, codegen_1$4._)`!${v2}`, () => gen.assign(v2, validate2));
22606
+ gen.if((0, codegen_1$4._)`!${v3}`, () => gen.assign(v3, validate2));
22598
22607
  }
22599
22608
  dynamicAnchor$1.dynamicAnchor = dynamicAnchor;
22600
22609
  function _getValidate(cxt) {
@@ -22631,8 +22640,8 @@ function dynamicRef(cxt, ref2) {
22631
22640
  }
22632
22641
  function _dynamicRef(valid) {
22633
22642
  if (it2.schemaEnv.root.dynamicAnchors[anchor]) {
22634
- const v2 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
22635
- gen.if(v2, _callRef(v2, valid), _callRef(it2.validateName, valid));
22643
+ const v3 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
22644
+ gen.if(v3, _callRef(v3, valid), _callRef(it2.validateName, valid));
22636
22645
  } else {
22637
22646
  _callRef(it2.validateName, valid)();
22638
22647
  }
@@ -23449,7 +23458,7 @@ jsonSchema201909.default = addMetaSchema2019;
23449
23458
  _addVocabularies() {
23450
23459
  super._addVocabularies();
23451
23460
  this.addVocabulary(dynamic_1.default);
23452
- draft7_1.default.forEach((v2) => this.addVocabulary(v2));
23461
+ draft7_1.default.forEach((v3) => this.addVocabulary(v3));
23453
23462
  this.addVocabulary(next_1.default);
23454
23463
  this.addVocabulary(unevaluated_1.default);
23455
23464
  if (this.opts.discriminator)
@@ -24485,7 +24494,7 @@ function handleComputedProperty(options) {
24485
24494
  var _a;
24486
24495
  return Object.assign({}, options, {
24487
24496
  _computed: {
24488
- version: "9.28.0",
24497
+ version: "9.29.0",
24489
24498
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
24490
24499
  }
24491
24500
  });
@@ -24856,8 +24865,8 @@ function parseAlpha$1(alpha) {
24856
24865
  return clamp$3(a, 0, 1);
24857
24866
  }
24858
24867
  function getHEX$1(hex) {
24859
- const [r2, g2, b2, a] = hex2Rgb(hex, { format: "array" });
24860
- return getRGB$1([null, ...[r2, g2, b2, a]]);
24868
+ const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
24869
+ return getRGB$1([null, ...[r2, g, b2, a]]);
24861
24870
  }
24862
24871
  function getHSL$1([, h, s, l, a = 1]) {
24863
24872
  let hh = h;
@@ -24874,10 +24883,10 @@ function getHSL$1([, h, s, l, a = 1]) {
24874
24883
  alpha: parseAlpha$1(a === null ? 1 : a)
24875
24884
  };
24876
24885
  }
24877
- function getRGB$1([, r2, g2, b2, a = 1]) {
24886
+ function getRGB$1([, r2, g, b2, a = 1]) {
24878
24887
  return {
24879
24888
  type: "rgb",
24880
- values: [r2, g2, b2].map(parseRGB$1),
24889
+ values: [r2, g, b2].map(parseRGB$1),
24881
24890
  alpha: parseAlpha$1(a === null ? 1 : a)
24882
24891
  };
24883
24892
  }
@@ -24953,15 +24962,15 @@ function rgb2hex(rgb) {
24953
24962
  var rgb2hex_1 = rgb2hex;
24954
24963
  const rgb2hex$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hex_1);
24955
24964
  function rgb2hsl(rgb) {
24956
- var r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g2, b2), max = Math.max(r2, g2, b2), delta = max - min, h, s, l;
24965
+ var r2 = rgb[0] / 255, g = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g, b2), max = Math.max(r2, g, b2), delta = max - min, h, s, l;
24957
24966
  if (max == min)
24958
24967
  h = 0;
24959
24968
  else if (r2 == max)
24960
- h = (g2 - b2) / delta;
24961
- else if (g2 == max)
24969
+ h = (g - b2) / delta;
24970
+ else if (g == max)
24962
24971
  h = 2 + (b2 - r2) / delta;
24963
24972
  else if (b2 == max)
24964
- h = 4 + (r2 - g2) / delta;
24973
+ h = 4 + (r2 - g) / delta;
24965
24974
  h = Math.min(h * 60, 360);
24966
24975
  if (h < 0)
24967
24976
  h += 360;
@@ -25000,13 +25009,13 @@ function mix(color1, color2, percentage2 = 50) {
25000
25009
  const a = c1.alpha - c2.alpha;
25001
25010
  const w1 = ((w2 * a === -1 ? w2 : (w2 + a) / (1 + w2 * a)) + 1) / 2;
25002
25011
  const w22 = 1 - w1;
25003
- const [r2, g2, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
25012
+ const [r2, g, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
25004
25013
  const alpha = parseFloat((c1.alpha * p2 + c2.alpha * (1 - p2)).toFixed(8));
25005
25014
  return {
25006
- hex: rgb2hex$1([r2, g2, b2]),
25007
- hexa: rgb2hex$1([r2, g2, b2, alpha]),
25008
- rgba: [r2, g2, b2, alpha],
25009
- hsla: [...rgb2hsl$1([r2, g2, b2]).map(Math.round), alpha]
25015
+ hex: rgb2hex$1([r2, g, b2]),
25016
+ hexa: rgb2hex$1([r2, g, b2, alpha]),
25017
+ rgba: [r2, g, b2, alpha],
25018
+ hsla: [...rgb2hsl$1([r2, g, b2]).map(Math.round), alpha]
25010
25019
  };
25011
25020
  }
25012
25021
  const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
@@ -25092,8 +25101,8 @@ function parseAlpha(alpha) {
25092
25101
  return clamp(a, 0, 1);
25093
25102
  }
25094
25103
  function getHEX(hex) {
25095
- const [r2, g2, b2, a] = hex2Rgb(hex, { format: "array" });
25096
- return getRGB([null, ...[r2, g2, b2, a]]);
25104
+ const [r2, g, b2, a] = hex2Rgb(hex, { format: "array" });
25105
+ return getRGB([null, ...[r2, g, b2, a]]);
25097
25106
  }
25098
25107
  function getHSL([, h, s, l, a = 1]) {
25099
25108
  let hh = h;
@@ -25110,10 +25119,10 @@ function getHSL([, h, s, l, a = 1]) {
25110
25119
  alpha: parseAlpha(a === null ? 1 : a)
25111
25120
  };
25112
25121
  }
25113
- function getRGB([, r2, g2, b2, a = 1]) {
25122
+ function getRGB([, r2, g, b2, a = 1]) {
25114
25123
  return {
25115
25124
  type: "rgb",
25116
- values: [r2, g2, b2].map(parseRGB),
25125
+ values: [r2, g, b2].map(parseRGB),
25117
25126
  alpha: parseAlpha(a === null ? 1 : a)
25118
25127
  };
25119
25128
  }
@@ -25148,7 +25157,7 @@ const parseCSSColor = (str) => {
25148
25157
  * @link http://noeldelgado.github.io/values.js/
25149
25158
  * @license MIT
25150
25159
  */
25151
- const defaultNumberParam = (v2, d2) => v2 === null || isNaN(v2) || typeof v2 === "string" ? d2 : v2;
25160
+ const defaultNumberParam = (v3, d2) => v3 === null || isNaN(v3) || typeof v3 === "string" ? d2 : v3;
25152
25161
  class Values {
25153
25162
  constructor(color = "#000", type2 = "base", weight = 0) {
25154
25163
  [this.rgb, this.alpha, this.type, this.weight] = [[0, 0, 0], 1, type2, weight];
@@ -25194,8 +25203,8 @@ class Values {
25194
25203
  getBrightness() {
25195
25204
  return Math.round(this.rgb.reduce((a, b2) => a + b2) / (255 * 3) * 100);
25196
25205
  }
25197
- _setFromRGB([r2, g2, b2, a]) {
25198
- [this.rgb, this.alpha] = [[r2, g2, b2], a];
25206
+ _setFromRGB([r2, g, b2, a]) {
25207
+ [this.rgb, this.alpha] = [[r2, g, b2], a];
25199
25208
  return this;
25200
25209
  }
25201
25210
  _setFromHSL([h, s, l, a]) {
@@ -26317,7 +26326,7 @@ const _Theme = class _Theme {
26317
26326
  });
26318
26327
  }
26319
26328
  get cssVars() {
26320
- return Object.keys(this.theme).filter((v2) => !_Theme.nonCssProperties.includes(v2)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
26329
+ return Object.keys(this.theme).filter((v3) => !_Theme.nonCssProperties.includes(v3)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
26321
26330
  }
26322
26331
  build() {
26323
26332
  this.overrideTheme();
@@ -27827,7 +27836,7 @@ class RebillyInstrumentsInstance {
27827
27836
  await show({ componentName, payload });
27828
27837
  }
27829
27838
  get version() {
27830
- return `RebillyInstruments Ver.${"9.28.0"}`;
27839
+ return `RebillyInstruments Ver.${"9.29.0"}`;
27831
27840
  }
27832
27841
  on(eventName, callback) {
27833
27842
  on({ eventName, callback });