@one-payments/web-components 1.2.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const ye = globalThis, Ve = ye.ShadowRoot && (ye.ShadyCSS === void 0 || ye.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, He = Symbol(), Ge = /* @__PURE__ */ new WeakMap();
7
- let ut = class {
6
+ const ye = globalThis, qe = ye.ShadowRoot && (ye.ShadyCSS === void 0 || ye.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ve = Symbol(), Je = /* @__PURE__ */ new WeakMap();
7
+ let ht = class {
8
8
  constructor(e, r, n) {
9
- if (this._$cssResult$ = !0, n !== He) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, n !== Ve) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = e, this.t = r;
11
11
  }
12
12
  get styleSheet() {
13
13
  let e = this.o;
14
14
  const r = this.t;
15
- if (Ve && e === void 0) {
15
+ if (qe && e === void 0) {
16
16
  const n = r !== void 0 && r.length === 1;
17
- n && (e = Ge.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && Ge.set(r, e));
17
+ n && (e = Je.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && Je.set(r, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,30 +22,30 @@ let ut = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Bt = (t) => new ut(typeof t == "string" ? t : t + "", void 0, He), Ut = (t, ...e) => {
25
+ const Lt = (t) => new ht(typeof t == "string" ? t : t + "", void 0, Ve), Bt = (t, ...e) => {
26
26
  const r = t.length === 1 ? t[0] : e.reduce((n, i, o) => n + ((s) => {
27
27
  if (s._$cssResult$ === !0) return s.cssText;
28
28
  if (typeof s == "number") return s;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(i) + t[o + 1], t[0]);
31
- return new ut(r, t, He);
32
- }, zt = (t, e) => {
33
- if (Ve) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
31
+ return new ht(r, t, Ve);
32
+ }, Ft = (t, e) => {
33
+ if (qe) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
34
34
  else for (const r of e) {
35
35
  const n = document.createElement("style"), i = ye.litNonce;
36
36
  i !== void 0 && n.setAttribute("nonce", i), n.textContent = r.cssText, t.appendChild(n);
37
37
  }
38
- }, _e = Ve ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
38
+ }, Ge = qe ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
39
39
  let r = "";
40
40
  for (const n of e.cssRules) r += n.cssText;
41
- return Bt(r);
41
+ return Lt(r);
42
42
  })(t) : t;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: qt, defineProperty: Ot, getOwnPropertyDescriptor: jt, getOwnPropertyNames: Vt, getOwnPropertySymbols: Ht, getPrototypeOf: Zt } = Object, O = globalThis, $e = O.trustedTypes, Yt = $e ? $e.emptyScript : "", Ie = O.reactiveElementPolyfillSupport, ie = (t, e) => t, be = { toAttribute(t, e) {
48
+ const { is: Ut, defineProperty: Ot, getOwnPropertyDescriptor: zt, getOwnPropertyNames: qt, getOwnPropertySymbols: Vt, getPrototypeOf: Ht } = Object, z = globalThis, Xe = z.trustedTypes, Yt = Xe ? Xe.emptyScript : "", Ie = z.reactiveElementPolyfillSupport, ie = (t, e) => t, be = { toAttribute(t, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
51
  t = t ? Yt : null;
@@ -73,8 +73,8 @@ const { is: qt, defineProperty: Ot, getOwnPropertyDescriptor: jt, getOwnProperty
73
73
  }
74
74
  }
75
75
  return r;
76
- } }, Ze = (t, e) => !qt(t, e), et = { attribute: !0, type: String, converter: be, reflect: !1, useDefault: !1, hasChanged: Ze };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
76
+ } }, He = (t, e) => !Ut(t, e), et = { attribute: !0, type: String, converter: be, reflect: !1, useDefault: !1, hasChanged: He };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), z.litPropertyMetadata ?? (z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let K = class extends HTMLElement {
79
79
  static addInitializer(e) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
@@ -89,7 +89,7 @@ let K = class extends HTMLElement {
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, r, n) {
92
- const { get: i, set: o } = jt(this.prototype, e) ?? { get() {
92
+ const { get: i, set: o } = zt(this.prototype, e) ?? { get() {
93
93
  return this[r];
94
94
  }, set(s) {
95
95
  this[r] = s;
@@ -104,13 +104,13 @@ let K = class extends HTMLElement {
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(ie("elementProperties"))) return;
107
- const e = Zt(this);
107
+ const e = Ht(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(ie("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
113
- const r = this.properties, n = [...Vt(r), ...Ht(r)];
113
+ const r = this.properties, n = [...qt(r), ...Vt(r)];
114
114
  for (const i of n) this.createProperty(i, r[i]);
115
115
  }
116
116
  const e = this[Symbol.metadata];
@@ -129,8 +129,8 @@ let K = class extends HTMLElement {
129
129
  const r = [];
130
130
  if (Array.isArray(e)) {
131
131
  const n = new Set(e.flat(1 / 0).reverse());
132
- for (const i of n) r.unshift(_e(i));
133
- } else e !== void 0 && r.push(_e(e));
132
+ for (const i of n) r.unshift(Ge(i));
133
+ } else e !== void 0 && r.push(Ge(e));
134
134
  return r;
135
135
  }
136
136
  static _$Eu(e, r) {
@@ -159,7 +159,7 @@ let K = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return zt(e, this.constructor.elementStyles), e;
162
+ return Ft(e, this.constructor.elementStyles), e;
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
@@ -194,15 +194,15 @@ let K = class extends HTMLElement {
194
194
  if (i !== void 0 && this._$Em !== i) {
195
195
  const l = n.getPropertyOptions(i), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : be;
196
196
  this._$Em = i;
197
- const d = a.fromAttribute(r, l.type);
198
- this[i] = d ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? d, this._$Em = null;
197
+ const c = a.fromAttribute(r, l.type);
198
+ this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(e, r, n) {
202
202
  var i;
203
203
  if (e !== void 0) {
204
204
  const o = this.constructor, s = this[e];
205
- if (n ?? (n = o.getPropertyOptions(e)), !((n.hasChanged ?? Ze)(s, r) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(o._$Eu(e, n)))) return;
205
+ if (n ?? (n = o.getPropertyOptions(e)), !((n.hasChanged ?? He)(s, r) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(o._$Eu(e, n)))) return;
206
206
  this.C(e, r, n);
207
207
  }
208
208
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -278,76 +278,76 @@ let K = class extends HTMLElement {
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- K.elementStyles = [], K.shadowRootOptions = { mode: "open" }, K[ie("elementProperties")] = /* @__PURE__ */ new Map(), K[ie("finalized")] = /* @__PURE__ */ new Map(), Ie == null || Ie({ ReactiveElement: K }), (O.reactiveElementVersions ?? (O.reactiveElementVersions = [])).push("2.1.1");
281
+ K.elementStyles = [], K.shadowRootOptions = { mode: "open" }, K[ie("elementProperties")] = /* @__PURE__ */ new Map(), K[ie("finalized")] = /* @__PURE__ */ new Map(), Ie == null || Ie({ ReactiveElement: K }), (z.reactiveElementVersions ?? (z.reactiveElementVersions = [])).push("2.1.1");
282
282
  /**
283
283
  * @license
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const oe = globalThis, ve = oe.trustedTypes, tt = ve ? ve.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pt = "$lit$", z = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + z, Qt = `<${mt}>`, W = document, le = () => W.createComment(""), de = (t) => t === null || typeof t != "object" && typeof t != "function", Ye = Array.isArray, Wt = (t) => Ye(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Me = `[
288
- \f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, nt = />/g, V = RegExp(`>|${Me}(?:([^\\s"'>=/]+)(${Me}*=${Me}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, ot = /"/g, ft = /^(?:script|style|textarea|title)$/i, Kt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), P = Kt(1), J = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), st = /* @__PURE__ */ new WeakMap(), Z = W.createTreeWalker(W, 129);
287
+ const oe = globalThis, ve = oe.trustedTypes, tt = ve ? ve.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pt = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + U, jt = `<${mt}>`, Q = document, le = () => Q.createComment(""), ce = (t) => t === null || typeof t != "object" && typeof t != "function", Ye = Array.isArray, Qt = (t) => Ye(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", _e = `[
288
+ \f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, nt = />/g, V = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, ot = /"/g, ft = /^(?:script|style|textarea|title)$/i, Kt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), C = Kt(1), Z = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), st = /* @__PURE__ */ new WeakMap(), H = Q.createTreeWalker(Q, 129);
290
290
  function gt(t, e) {
291
291
  if (!Ye(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return tt !== void 0 ? tt.createHTML(e) : e;
293
293
  }
294
- const Xt = (t, e) => {
294
+ const Wt = (t, e) => {
295
295
  const r = t.length - 1, n = [];
296
296
  let i, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = ne;
297
297
  for (let l = 0; l < r; l++) {
298
298
  const a = t[l];
299
- let d, c, u = -1, p = 0;
300
- for (; p < a.length && (s.lastIndex = p, c = s.exec(a), c !== null); ) p = s.lastIndex, s === ne ? c[1] === "!--" ? s = rt : c[1] !== void 0 ? s = nt : c[2] !== void 0 ? (ft.test(c[2]) && (i = RegExp("</" + c[2], "g")), s = V) : c[3] !== void 0 && (s = V) : s === V ? c[0] === ">" ? (s = i ?? ne, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? V : c[3] === '"' ? ot : it) : s === ot || s === it ? s = V : s === rt || s === nt ? s = ne : (s = V, i = void 0);
301
- const h = s === V && t[l + 1].startsWith("/>") ? " " : "";
302
- o += s === ne ? a + Qt : u >= 0 ? (n.push(d), a.slice(0, u) + pt + a.slice(u) + z + h) : a + z + (u === -2 ? l : h);
299
+ let c, d, h = -1, p = 0;
300
+ for (; p < a.length && (s.lastIndex = p, d = s.exec(a), d !== null); ) p = s.lastIndex, s === ne ? d[1] === "!--" ? s = rt : d[1] !== void 0 ? s = nt : d[2] !== void 0 ? (ft.test(d[2]) && (i = RegExp("</" + d[2], "g")), s = V) : d[3] !== void 0 && (s = V) : s === V ? d[0] === ">" ? (s = i ?? ne, h = -1) : d[1] === void 0 ? h = -2 : (h = s.lastIndex - d[2].length, c = d[1], s = d[3] === void 0 ? V : d[3] === '"' ? ot : it) : s === ot || s === it ? s = V : s === rt || s === nt ? s = ne : (s = V, i = void 0);
301
+ const u = s === V && t[l + 1].startsWith("/>") ? " " : "";
302
+ o += s === ne ? a + jt : h >= 0 ? (n.push(c), a.slice(0, h) + pt + a.slice(h) + U + u) : a + U + (h === -2 ? l : u);
303
303
  }
304
304
  return [gt(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
305
305
  };
306
- class ce {
306
+ class de {
307
307
  constructor({ strings: e, _$litType$: r }, n) {
308
308
  let i;
309
309
  this.parts = [];
310
310
  let o = 0, s = 0;
311
- const l = e.length - 1, a = this.parts, [d, c] = Xt(e, r);
312
- if (this.el = ce.createElement(d, n), Z.currentNode = this.el.content, r === 2 || r === 3) {
313
- const u = this.el.content.firstChild;
314
- u.replaceWith(...u.childNodes);
311
+ const l = e.length - 1, a = this.parts, [c, d] = Wt(e, r);
312
+ if (this.el = de.createElement(c, n), H.currentNode = this.el.content, r === 2 || r === 3) {
313
+ const h = this.el.content.firstChild;
314
+ h.replaceWith(...h.childNodes);
315
315
  }
316
- for (; (i = Z.nextNode()) !== null && a.length < l; ) {
316
+ for (; (i = H.nextNode()) !== null && a.length < l; ) {
317
317
  if (i.nodeType === 1) {
318
- if (i.hasAttributes()) for (const u of i.getAttributeNames()) if (u.endsWith(pt)) {
319
- const p = c[s++], h = i.getAttribute(u).split(z), m = /([.?@])?(.*)/.exec(p);
320
- a.push({ type: 1, index: o, name: m[2], strings: h, ctor: m[1] === "." ? Gt : m[1] === "?" ? _t : m[1] === "@" ? $t : Se }), i.removeAttribute(u);
321
- } else u.startsWith(z) && (a.push({ type: 6, index: o }), i.removeAttribute(u));
318
+ if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(pt)) {
319
+ const p = d[s++], u = i.getAttribute(h).split(U), m = /([.?@])?(.*)/.exec(p);
320
+ a.push({ type: 1, index: o, name: m[2], strings: u, ctor: m[1] === "." ? Jt : m[1] === "?" ? Gt : m[1] === "@" ? Xt : Se }), i.removeAttribute(h);
321
+ } else h.startsWith(U) && (a.push({ type: 6, index: o }), i.removeAttribute(h));
322
322
  if (ft.test(i.tagName)) {
323
- const u = i.textContent.split(z), p = u.length - 1;
323
+ const h = i.textContent.split(U), p = h.length - 1;
324
324
  if (p > 0) {
325
325
  i.textContent = ve ? ve.emptyScript : "";
326
- for (let h = 0; h < p; h++) i.append(u[h], le()), Z.nextNode(), a.push({ type: 2, index: ++o });
327
- i.append(u[p], le());
326
+ for (let u = 0; u < p; u++) i.append(h[u], le()), H.nextNode(), a.push({ type: 2, index: ++o });
327
+ i.append(h[p], le());
328
328
  }
329
329
  }
330
330
  } else if (i.nodeType === 8) if (i.data === mt) a.push({ type: 2, index: o });
331
331
  else {
332
- let u = -1;
333
- for (; (u = i.data.indexOf(z, u + 1)) !== -1; ) a.push({ type: 7, index: o }), u += z.length - 1;
332
+ let h = -1;
333
+ for (; (h = i.data.indexOf(U, h + 1)) !== -1; ) a.push({ type: 7, index: o }), h += U.length - 1;
334
334
  }
335
335
  o++;
336
336
  }
337
337
  }
338
338
  static createElement(e, r) {
339
- const n = W.createElement("template");
339
+ const n = Q.createElement("template");
340
340
  return n.innerHTML = e, n;
341
341
  }
342
342
  }
343
- function G(t, e, r = t, n) {
343
+ function J(t, e, r = t, n) {
344
344
  var s, l;
345
- if (e === J) return e;
345
+ if (e === Z) return e;
346
346
  let i = n !== void 0 ? (s = r._$Co) == null ? void 0 : s[n] : r._$Cl;
347
- const o = de(e) ? void 0 : e._$litDirective$;
348
- return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, r, n)), n !== void 0 ? (r._$Co ?? (r._$Co = []))[n] = i : r._$Cl = i), i !== void 0 && (e = G(t, i._$AS(t, e.values), i, n)), e;
347
+ const o = ce(e) ? void 0 : e._$litDirective$;
348
+ return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, r, n)), n !== void 0 ? (r._$Co ?? (r._$Co = []))[n] = i : r._$Cl = i), i !== void 0 && (e = J(t, i._$AS(t, e.values), i, n)), e;
349
349
  }
350
- class Jt {
350
+ class Zt {
351
351
  constructor(e, r) {
352
352
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
353
353
  }
@@ -358,30 +358,30 @@ class Jt {
358
358
  return this._$AM._$AU;
359
359
  }
360
360
  u(e) {
361
- const { el: { content: r }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? W).importNode(r, !0);
362
- Z.currentNode = i;
363
- let o = Z.nextNode(), s = 0, l = 0, a = n[0];
361
+ const { el: { content: r }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? Q).importNode(r, !0);
362
+ H.currentNode = i;
363
+ let o = H.nextNode(), s = 0, l = 0, a = n[0];
364
364
  for (; a !== void 0; ) {
365
365
  if (s === a.index) {
366
- let d;
367
- a.type === 2 ? d = new ue(o, o.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (d = new er(o, this, e)), this._$AV.push(d), a = n[++l];
366
+ let c;
367
+ a.type === 2 ? c = new he(o, o.nextSibling, this, e) : a.type === 1 ? c = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (c = new er(o, this, e)), this._$AV.push(c), a = n[++l];
368
368
  }
369
- s !== (a == null ? void 0 : a.index) && (o = Z.nextNode(), s++);
369
+ s !== (a == null ? void 0 : a.index) && (o = H.nextNode(), s++);
370
370
  }
371
- return Z.currentNode = W, i;
371
+ return H.currentNode = Q, i;
372
372
  }
373
373
  p(e) {
374
374
  let r = 0;
375
375
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(e, n, r), r += n.strings.length - 2) : n._$AI(e[r])), r++;
376
376
  }
377
377
  }
378
- class ue {
378
+ class he {
379
379
  get _$AU() {
380
380
  var e;
381
381
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
382
382
  }
383
383
  constructor(e, r, n, i) {
384
- this.type = 2, this._$AH = I, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
384
+ this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
385
385
  }
386
386
  get parentNode() {
387
387
  let e = this._$AA.parentNode;
@@ -395,7 +395,7 @@ class ue {
395
395
  return this._$AB;
396
396
  }
397
397
  _$AI(e, r = this) {
398
- e = G(this, e, r), de(e) ? e === I || e == null || e === "" ? (this._$AH !== I && this._$AR(), this._$AH = I) : e !== this._$AH && e !== J && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Wt(e) ? this.k(e) : this._(e);
398
+ e = J(this, e, r), ce(e) ? e === _ || e == null || e === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : e !== this._$AH && e !== Z && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Qt(e) ? this.k(e) : this._(e);
399
399
  }
400
400
  O(e) {
401
401
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -404,26 +404,26 @@ class ue {
404
404
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
405
405
  }
406
406
  _(e) {
407
- this._$AH !== I && de(this._$AH) ? this._$AA.nextSibling.data = e : this.T(W.createTextNode(e)), this._$AH = e;
407
+ this._$AH !== _ && ce(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Q.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
410
  var o;
411
- const { values: r, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = ce.createElement(gt(n.h, n.h[0]), this.options)), n);
411
+ const { values: r, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = de.createElement(gt(n.h, n.h[0]), this.options)), n);
412
412
  if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(r);
413
413
  else {
414
- const s = new Jt(i, this), l = s.u(this.options);
414
+ const s = new Zt(i, this), l = s.u(this.options);
415
415
  s.p(r), this.T(l), this._$AH = s;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
419
  let r = st.get(e.strings);
420
- return r === void 0 && st.set(e.strings, r = new ce(e)), r;
420
+ return r === void 0 && st.set(e.strings, r = new de(e)), r;
421
421
  }
422
422
  k(e) {
423
423
  Ye(this._$AH) || (this._$AH = [], this._$AR());
424
424
  const r = this._$AH;
425
425
  let n, i = 0;
426
- for (const o of e) i === r.length ? r.push(n = new ue(this.O(le()), this.O(le()), this, this.options)) : n = r[i], n._$AI(o), i++;
426
+ for (const o of e) i === r.length ? r.push(n = new he(this.O(le()), this.O(le()), this, this.options)) : n = r[i], n._$AI(o), i++;
427
427
  i < r.length && (this._$AR(n && n._$AB.nextSibling, i), r.length = i);
428
428
  }
429
429
  _$AR(e = this._$AA.nextSibling, r) {
@@ -446,46 +446,46 @@ class Se {
446
446
  return this._$AM._$AU;
447
447
  }
448
448
  constructor(e, r, n, i, o) {
449
- this.type = 1, this._$AH = I, this._$AN = void 0, this.element = e, this.name = r, this._$AM = i, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = I;
449
+ this.type = 1, this._$AH = _, this._$AN = void 0, this.element = e, this.name = r, this._$AM = i, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = _;
450
450
  }
451
451
  _$AI(e, r = this, n, i) {
452
452
  const o = this.strings;
453
453
  let s = !1;
454
- if (o === void 0) e = G(this, e, r, 0), s = !de(e) || e !== this._$AH && e !== J, s && (this._$AH = e);
454
+ if (o === void 0) e = J(this, e, r, 0), s = !ce(e) || e !== this._$AH && e !== Z, s && (this._$AH = e);
455
455
  else {
456
456
  const l = e;
457
- let a, d;
458
- for (e = o[0], a = 0; a < o.length - 1; a++) d = G(this, l[n + a], r, a), d === J && (d = this._$AH[a]), s || (s = !de(d) || d !== this._$AH[a]), d === I ? e = I : e !== I && (e += (d ?? "") + o[a + 1]), this._$AH[a] = d;
457
+ let a, c;
458
+ for (e = o[0], a = 0; a < o.length - 1; a++) c = J(this, l[n + a], r, a), c === Z && (c = this._$AH[a]), s || (s = !ce(c) || c !== this._$AH[a]), c === _ ? e = _ : e !== _ && (e += (c ?? "") + o[a + 1]), this._$AH[a] = c;
459
459
  }
460
460
  s && !i && this.j(e);
461
461
  }
462
462
  j(e) {
463
- e === I ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
463
+ e === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
464
  }
465
465
  }
466
- class Gt extends Se {
466
+ class Jt extends Se {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
470
470
  j(e) {
471
- this.element[this.name] = e === I ? void 0 : e;
471
+ this.element[this.name] = e === _ ? void 0 : e;
472
472
  }
473
473
  }
474
- class _t extends Se {
474
+ class Gt extends Se {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
478
478
  j(e) {
479
- this.element.toggleAttribute(this.name, !!e && e !== I);
479
+ this.element.toggleAttribute(this.name, !!e && e !== _);
480
480
  }
481
481
  }
482
- class $t extends Se {
482
+ class Xt extends Se {
483
483
  constructor(e, r, n, i, o) {
484
484
  super(e, r, n, i, o), this.type = 5;
485
485
  }
486
486
  _$AI(e, r = this) {
487
- if ((e = G(this, e, r, 0) ?? I) === J) return;
488
- const n = this._$AH, i = e === I && n !== I || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== I && (n === I || i);
487
+ if ((e = J(this, e, r, 0) ?? _) === Z) return;
488
+ const n = this._$AH, i = e === _ && n !== _ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== _ && (n === _ || i);
489
489
  i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
491
491
  handleEvent(e) {
@@ -501,17 +501,17 @@ class er {
501
501
  return this._$AM._$AU;
502
502
  }
503
503
  _$AI(e) {
504
- G(this, e);
504
+ J(this, e);
505
505
  }
506
506
  }
507
- const Te = oe.litHtmlPolyfillSupport;
508
- Te == null || Te(ce, ue), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.3.1");
507
+ const Me = oe.litHtmlPolyfillSupport;
508
+ Me == null || Me(de, he), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.3.1");
509
509
  const tr = (t, e, r) => {
510
510
  const n = (r == null ? void 0 : r.renderBefore) ?? e;
511
511
  let i = n._$litPart$;
512
512
  if (i === void 0) {
513
513
  const o = (r == null ? void 0 : r.renderBefore) ?? null;
514
- n._$litPart$ = i = new ue(e.insertBefore(le(), o), o, void 0, r ?? {});
514
+ n._$litPart$ = i = new he(e.insertBefore(le(), o), o, void 0, r ?? {});
515
515
  }
516
516
  return i._$AI(t), i;
517
517
  };
@@ -520,7 +520,7 @@ const tr = (t, e, r) => {
520
520
  * Copyright 2017 Google LLC
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
- const Q = globalThis;
523
+ const j = globalThis;
524
524
  class se extends K {
525
525
  constructor() {
526
526
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -543,14 +543,14 @@ class se extends K {
543
543
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
544
544
  }
545
545
  render() {
546
- return J;
546
+ return Z;
547
547
  }
548
548
  }
549
- var ht;
550
- se._$litElement$ = !0, se.finalized = !0, (ht = Q.litElementHydrateSupport) == null || ht.call(Q, { LitElement: se });
551
- const De = Q.litElementPolyfillSupport;
549
+ var ut;
550
+ se._$litElement$ = !0, se.finalized = !0, (ut = j.litElementHydrateSupport) == null || ut.call(j, { LitElement: se });
551
+ const De = j.litElementPolyfillSupport;
552
552
  De == null || De({ LitElement: se });
553
- (Q.litElementVersions ?? (Q.litElementVersions = [])).push("4.2.1");
553
+ (j.litElementVersions ?? (j.litElementVersions = [])).push("4.2.1");
554
554
  /**
555
555
  * @license
556
556
  * Copyright 2017 Google LLC
@@ -566,7 +566,7 @@ const rr = (t) => (e, r) => {
566
566
  * Copyright 2017 Google LLC
567
567
  * SPDX-License-Identifier: BSD-3-Clause
568
568
  */
569
- const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged: Ze }, ir = (t = nr, e, r) => {
569
+ const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged: He }, ir = (t = nr, e, r) => {
570
570
  const { kind: n, metadata: i } = r;
571
571
  let o = globalThis.litPropertyMetadata.get(i);
572
572
  if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(r.name, t), n === "accessor") {
@@ -587,7 +587,7 @@ const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged
587
587
  }
588
588
  throw Error("Unsupported decorator location: " + n);
589
589
  };
590
- function T(t) {
590
+ function D(t) {
591
591
  return (e, r) => typeof r == "object" ? ir(t, e, r) : ((n, i, o) => {
592
592
  const s = i.hasOwnProperty(o);
593
593
  return i.constructor.createProperty(o, n), s ? Object.getOwnPropertyDescriptor(i, o) : void 0;
@@ -599,14 +599,16 @@ function T(t) {
599
599
  * SPDX-License-Identifier: BSD-3-Clause
600
600
  */
601
601
  function M(t) {
602
- return T({ ...t, state: !0, attribute: !1 });
602
+ return D({ ...t, state: !0, attribute: !1 });
603
603
  }
604
604
  function or(t) {
605
605
  return t instanceof Error && ("response" in t && typeof t.response == "object" && t.response !== null || "data" in t && typeof t.data == "object" && t.data !== null);
606
606
  }
607
- var H = {
607
+ var A = {
608
608
  CARD: "card",
609
- PAYNOW: "paynow"
609
+ PAYNOW: "paynow",
610
+ PROMPTPAY: "promptpay",
611
+ DUITNOW: "duitnow"
610
612
  }, N = {
611
613
  IDLE: "idle",
612
614
  INITIALIZING: "initializing",
@@ -751,7 +753,7 @@ function lr(t) {
751
753
  return "https://public.dev.one.ooo";
752
754
  }
753
755
  }
754
- var dr = class {
756
+ var cr = class {
755
757
  // Flag to ignore qrCode after user scans it
756
758
  constructor(t, e) {
757
759
  this.state = { status: N.IDLE }, this.subscribers = /* @__PURE__ */ new Set(), this.eventListeners = {}, this.paymentToken = null, this.paymentIntentId = null, this.pollingService = null, this.ignore3DSInPolling = !1, this.ignoreQRInPolling = !1, this.config = t, this.adapters = e;
@@ -940,32 +942,44 @@ var dr = class {
940
942
  {
941
943
  "x-token": this.paymentToken
942
944
  }
943
- ), d = {
945
+ ), c = {
944
946
  id: this.paymentIntentId,
945
947
  amount: l.result.customerAmount || t.amount,
946
948
  currency: l.result.currency || t.currency,
947
949
  status: N.READY,
948
950
  ...t.metadata && { metadata: t.metadata }
949
- }, c = a.result.paymentMethods.map((u, p) => {
950
- let h = null;
951
- const m = u.type.toLowerCase(), f = u.capabilities || [];
952
- return m.includes("card") ? h = "card" : (m.includes("paynow") || m.includes("bank transfer") || f.includes("payments_pay_now")) && (h = "paynow"), h === null ? null : {
953
- id: h,
951
+ }, d = [];
952
+ let h = 0;
953
+ return a.result.paymentMethods.forEach((p) => {
954
+ const u = p.type.toLowerCase(), m = p.capabilities || [];
955
+ u.includes("card") && d.push({
956
+ id: "card",
954
957
  enabled: !0,
955
- priority: p
956
- };
957
- }).filter((u) => u !== null);
958
- return this.setState({
958
+ priority: h++
959
+ }), (u.includes("paynow") || m.includes("payments_pay_now")) && d.push({
960
+ id: "paynow",
961
+ enabled: !0,
962
+ priority: h++
963
+ }), (u.includes("promptpay") || u.includes("prompt pay") || m.includes("payments_prompt_pay")) && d.push({
964
+ id: "promptpay",
965
+ enabled: !0,
966
+ priority: h++
967
+ }), (u.includes("duitnow") || u.includes("duit now") || m.includes("payments_duit_now")) && d.push({
968
+ id: "duitnow",
969
+ enabled: !0,
970
+ priority: h++
971
+ });
972
+ }), this.setState({
959
973
  status: N.READY,
960
- paymentIntent: d,
961
- availableMethods: c
974
+ paymentIntent: c,
975
+ availableMethods: d
962
976
  }), this.emit({
963
977
  type: "initialized",
964
978
  payload: {
965
- paymentIntent: d,
979
+ paymentIntent: c,
966
980
  paymentData: l.result
967
981
  }
968
- }), d;
982
+ }), c;
969
983
  } catch (e) {
970
984
  const r = {
971
985
  code: "INITIALIZATION_FAILED",
@@ -1065,7 +1079,8 @@ var dr = class {
1065
1079
  expiryYear: String(e.expiryYear),
1066
1080
  cvc: String(e.cvv)
1067
1081
  }
1068
- } : { type: "qr" }
1082
+ } : t === "promptpay" ? { type: "prompt_pay" } : t === "duitnow" ? { type: "duit_now" } : { type: "qr" }
1083
+ // PayNow
1069
1084
  };
1070
1085
  return await this.adapters.http.patch(
1071
1086
  `${this.getApiBaseUrl()}/payment-intent/confirm`,
@@ -1080,30 +1095,30 @@ var dr = class {
1080
1095
  status: N.PROCESSING
1081
1096
  };
1082
1097
  } catch (a) {
1083
- let d = "Unknown error", c = "PAYMENT_FAILED";
1098
+ let c = "Unknown error", d = "PAYMENT_FAILED";
1084
1099
  if (a instanceof Error)
1085
1100
  try {
1086
1101
  if (or(a)) {
1087
- const p = (n = a.response) == null ? void 0 : n.data, h = a.data;
1088
- p ? (d = p.message || ((i = p.error) == null ? void 0 : i.message) || a.message, c = p.code || ((o = p.error) == null ? void 0 : o.code) || c) : h ? (d = h.message || ((s = h.error) == null ? void 0 : s.message) || a.message, c = h.code || ((l = h.error) == null ? void 0 : l.code) || c) : d = a.message;
1102
+ const p = (n = a.response) == null ? void 0 : n.data, u = a.data;
1103
+ p ? (c = p.message || ((i = p.error) == null ? void 0 : i.message) || a.message, d = p.code || ((o = p.error) == null ? void 0 : o.code) || d) : u ? (c = u.message || ((s = u.error) == null ? void 0 : s.message) || a.message, d = u.code || ((l = u.error) == null ? void 0 : l.code) || d) : c = a.message;
1089
1104
  } else
1090
- d = a.message;
1105
+ c = a.message;
1091
1106
  } catch {
1092
- d = a.message;
1107
+ c = a.message;
1093
1108
  }
1094
- const u = {
1095
- code: c,
1096
- message: d,
1109
+ const h = {
1110
+ code: d,
1111
+ message: c,
1097
1112
  timestamp: this.adapters.timer.now()
1098
1113
  };
1099
1114
  throw this.setState({
1100
1115
  status: N.FAILED,
1101
- error: u,
1116
+ error: h,
1102
1117
  paymentIntent: r.paymentIntent
1103
1118
  }), this.emit({
1104
1119
  type: "payment_failed",
1105
1120
  payload: {
1106
- error: u,
1121
+ error: h,
1107
1122
  paymentIntent: r.paymentIntent
1108
1123
  }
1109
1124
  }), a;
@@ -1241,6 +1256,26 @@ var dr = class {
1241
1256
  return;
1242
1257
  }
1243
1258
  if (t.nextActionUrl && !this.ignore3DSInPolling) {
1259
+ if (e.selectedMethod === "promptpay") {
1260
+ this.stopPolling(), this.emit({
1261
+ type: "promptpay_redirect",
1262
+ payload: {
1263
+ redirectUrl: t.nextActionUrl,
1264
+ methodId: e.selectedMethod
1265
+ }
1266
+ });
1267
+ return;
1268
+ }
1269
+ if (e.selectedMethod === "duitnow") {
1270
+ this.stopPolling(), this.emit({
1271
+ type: "duitnow_redirect",
1272
+ payload: {
1273
+ redirectUrl: t.nextActionUrl,
1274
+ methodId: e.selectedMethod
1275
+ }
1276
+ });
1277
+ return;
1278
+ }
1244
1279
  if (e.selectedMethod === "paynow" && !this.ignoreQRInPolling) {
1245
1280
  this.emit({
1246
1281
  type: "qr_code_received",
@@ -1338,9 +1373,9 @@ var dr = class {
1338
1373
  r(t);
1339
1374
  });
1340
1375
  }
1341
- }, cr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABxCAYAAACawUJxAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADY3SURBVHgB7X0HnBRF+vZb1d0TN+ccyEgGRREDnp53KuqdHsYzYODMqCiKcc0ooGDW0zOdn4E7wxnxzFkBT7KEZXfZ3dmcJ3d31VfVM7M7G2amZ3YW+cs+/Iadnq6qru5+qupNVQXw2wKKc9poyotHvsHm3S8hBv5SoOqpyX+c5sHUC3ECBYJMxOhohD1tX3dsavP/jLpPxxf8XpQz807McDhdhSrC8kCJJEpFs8Fc90rjfxrYIWYfEqZMdFLGSblYcWXJCCkQAfx+raJBWN30/s+B+kD0wMeNOk40N5EJet+FREWxS/VUf9L1CX/GBPYzdLf6T0b9c1OD0jwRDUFHIIIARsHQZfM0fmVX7GXX1S9dCz4CccTtob9S8tjpJoxfdZPw794gCABe68xTq+evgwiN6avRr7ftkWtTcHd1w4MRGUYKI749uPzk2eB7vtE0Vq1RfTXq9bYapS5FbybC2kohlKw5ovLUP8J+iG7Gri551NWgtBjZMx+y4Yw1ECpijIqFovpmZ8ef/9pw1fcQe4/Vu2hW8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Iz37aHgUt/sLdBbREBjicPFYW1+0+TQb8FHl5x81Ho++yywYRd+mLuFl5FBz9gJ9Zr84Yhp0DsJaG7rL6bvMK6sbnmxOf9VP4IAMPFQE5ojmHVLQ9+yj4VHc7m9vWid+LWhEPrTi7NscKj1whCEPqb61rLtXsNT+/ipEZr5mJgAXS5nMJCicULDhBj5lfm/tdPqbwVA4HvZVBBoseb/kqTUOofPYDq+dCJq+RZEe0aKvSKBHtPD91lu08GlyVE0SzEKBlLr+5ZaPjyizveMCfUP2MPpgfyJxAFpP90R22cSRSblvtyitI1yqh2Btz5+A3WDIZGStAzZgEZdI2e0/u3aeeNbuVV/D3hEffrPYH0nMEeAWWZZ/3axJ5hHPe4hnTLPSBiISNCNYnImsaXEJohGVCInN65w1F59VueKt4HrAMGLG/kriALpFjMsy54063nrUXWYJ/6VFbhUd4NY65m63XV/RAgWLGSHMZojPhzNAgZSuOuSm/35rL795se2fP8EweeOK/Z3EAXR72fh/D+XdNL0Q0uenmxPnMqtccQf1IA/p0hw9vTVhduwXkrU518xnYBHMkCZYqUBIS4239YNWr+25x3PWf71+/Xq573WGER8Mk7g/ehFtwYwFUvKu6qIM6/gJFpEeoFJawhwSORliosnIXAE2pcklgdAsIrFKUJVt5WrFlo+xrWK9bb1zoPKGMYxhDGMYwxjGMIaxz+H/Az2jvqCLQeXsAAAAAElFTkSuQmCC", X = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = function(t, e, r, n, i, o, s, l, a, d) {
1342
- var c = this;
1343
- c.numeralDecimalMark = t || ".", c.numeralIntegerScale = e > 0 ? e : 0, c.numeralDecimalScale = r >= 0 ? r : 2, c.numeralThousandsGroupStyle = n || Y.groupStyle.thousand, c.numeralPositiveOnly = !!i, c.stripLeadingZeroes = o !== !1, c.prefix = s || s === "" ? s : "", c.signBeforePrefix = !!l, c.tailPrefix = !!a, c.delimiter = d || d === "" ? d : ",", c.delimiterRE = d ? new RegExp("\\" + d, "g") : "";
1376
+ }, dr = "https://images.ctfassets.net/c3n7jozh84hr/2A5qlS6JkUsOyFVPzQ0KlK/22b497afd71030ef1a44a52394b15027/______2022-06-30_11.03.43.png", ur = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/xLSOJpNvMp7cBKdvDln0B/eb2f53a0a3f2317750739dceff9df413/______2022-06-30_10.59.00.png", hr = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/4Iq13VoxktB3amHFbQK1yb/f2fe12add0dac233d56c22cf5651c65c/image-20220630-030728.png", W = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = function(t, e, r, n, i, o, s, l, a, c) {
1377
+ var d = this;
1378
+ d.numeralDecimalMark = t || ".", d.numeralIntegerScale = e > 0 ? e : 0, d.numeralDecimalScale = r >= 0 ? r : 2, d.numeralThousandsGroupStyle = n || Y.groupStyle.thousand, d.numeralPositiveOnly = !!i, d.stripLeadingZeroes = o !== !1, d.prefix = s || s === "" ? s : "", d.signBeforePrefix = !!l, d.tailPrefix = !!a, d.delimiter = c || c === "" ? c : ",", d.delimiterRE = c ? new RegExp("\\" + c, "g") : "";
1344
1379
  };
1345
1380
  Y.groupStyle = {
1346
1381
  thousand: "thousand",
@@ -1368,7 +1403,7 @@ Y.prototype = {
1368
1403
  return e.tailPrefix ? n + o.toString() + (e.numeralDecimalScale > 0 ? s.toString() : "") + e.prefix : i + o.toString() + (e.numeralDecimalScale > 0 ? s.toString() : "");
1369
1404
  }
1370
1405
  };
1371
- var hr = Y, yt = function(t, e, r) {
1406
+ var pr = Y, yt = function(t, e, r) {
1372
1407
  var n = this;
1373
1408
  n.date = [], n.blocks = [], n.datePattern = t, n.dateMin = e.split("-").reverse().map(function(i) {
1374
1409
  return parseInt(i, 10);
@@ -1408,30 +1443,30 @@ yt.prototype = {
1408
1443
  }), this.getFixedDateString(r);
1409
1444
  },
1410
1445
  getFixedDateString: function(t) {
1411
- var e = this, r = e.datePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, d = 0, c, u, p, h = !1;
1412
- t.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (l = r[0] === "d" ? 0 : 2, a = 2 - l, c = parseInt(t.slice(l, l + 2), 10), u = parseInt(t.slice(a, a + 2), 10), n = this.getFixedDate(c, u, 0)), t.length === 8 && (r.forEach(function(f, C) {
1413
- switch (f) {
1446
+ var e = this, r = e.datePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, c = 0, d, h, p, u = !1;
1447
+ t.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (l = r[0] === "d" ? 0 : 2, a = 2 - l, d = parseInt(t.slice(l, l + 2), 10), h = parseInt(t.slice(a, a + 2), 10), n = this.getFixedDate(d, h, 0)), t.length === 8 && (r.forEach(function(y, P) {
1448
+ switch (y) {
1414
1449
  case "d":
1415
- i = C;
1450
+ i = P;
1416
1451
  break;
1417
1452
  case "m":
1418
- o = C;
1453
+ o = P;
1419
1454
  break;
1420
1455
  default:
1421
- s = C;
1456
+ s = P;
1422
1457
  break;
1423
1458
  }
1424
- }), d = s * 2, l = i <= s ? i * 2 : i * 2 + 2, a = o <= s ? o * 2 : o * 2 + 2, c = parseInt(t.slice(l, l + 2), 10), u = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(d, d + 4), 10), h = t.slice(d, d + 4).length === 4, n = this.getFixedDate(c, u, p)), t.length === 4 && (r[0] === "y" || r[1] === "y") && (a = r[0] === "m" ? 0 : 2, d = 2 - a, u = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(d, d + 2), 10), h = t.slice(d, d + 2).length === 2, n = [0, u, p]), t.length === 6 && (r[0] === "Y" || r[1] === "Y") && (a = r[0] === "m" ? 0 : 4, d = 2 - 0.5 * a, u = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(d, d + 4), 10), h = t.slice(d, d + 4).length === 4, n = [0, u, p]), n = e.getRangeFixedDate(n), e.date = n;
1425
- var m = n.length === 0 ? t : r.reduce(function(f, C) {
1426
- switch (C) {
1459
+ }), c = s * 2, l = i <= s ? i * 2 : i * 2 + 2, a = o <= s ? o * 2 : o * 2 + 2, d = parseInt(t.slice(l, l + 2), 10), h = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(c, c + 4), 10), u = t.slice(c, c + 4).length === 4, n = this.getFixedDate(d, h, p)), t.length === 4 && (r[0] === "y" || r[1] === "y") && (a = r[0] === "m" ? 0 : 2, c = 2 - a, h = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(c, c + 2), 10), u = t.slice(c, c + 2).length === 2, n = [0, h, p]), t.length === 6 && (r[0] === "Y" || r[1] === "Y") && (a = r[0] === "m" ? 0 : 4, c = 2 - 0.5 * a, h = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(c, c + 4), 10), u = t.slice(c, c + 4).length === 4, n = [0, h, p]), n = e.getRangeFixedDate(n), e.date = n;
1460
+ var m = n.length === 0 ? t : r.reduce(function(y, P) {
1461
+ switch (P) {
1427
1462
  case "d":
1428
- return f + (n[0] === 0 ? "" : e.addLeadingZero(n[0]));
1463
+ return y + (n[0] === 0 ? "" : e.addLeadingZero(n[0]));
1429
1464
  case "m":
1430
- return f + (n[1] === 0 ? "" : e.addLeadingZero(n[1]));
1465
+ return y + (n[1] === 0 ? "" : e.addLeadingZero(n[1]));
1431
1466
  case "y":
1432
- return f + (h ? e.addLeadingZeroForYear(n[2], !1) : "");
1467
+ return y + (u ? e.addLeadingZeroForYear(n[2], !1) : "");
1433
1468
  case "Y":
1434
- return f + (h ? e.addLeadingZeroForYear(n[2], !0) : "");
1469
+ return y + (u ? e.addLeadingZeroForYear(n[2], !0) : "");
1435
1470
  }
1436
1471
  }, "");
1437
1472
  return m;
@@ -1455,7 +1490,7 @@ yt.prototype = {
1455
1490
  return e ? (t < 10 ? "000" : t < 100 ? "00" : t < 1e3 ? "0" : "") + t : (t < 10 ? "0" : "") + t;
1456
1491
  }
1457
1492
  };
1458
- var ur = yt, bt = function(t, e) {
1493
+ var mr = yt, bt = function(t, e) {
1459
1494
  var r = this;
1460
1495
  r.time = [], r.blocks = [], r.timePattern = t, r.timeFormat = e, r.initBlocks();
1461
1496
  };
@@ -1508,9 +1543,9 @@ bt.prototype = {
1508
1543
  }), this.getFixedTimeString(r);
1509
1544
  },
1510
1545
  getFixedTimeString: function(t) {
1511
- var e = this, r = e.timePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, d = 0, c, u, p;
1512
- return t.length === 6 && (r.forEach(function(h, m) {
1513
- switch (h) {
1546
+ var e = this, r = e.timePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, c = 0, d, h, p;
1547
+ return t.length === 6 && (r.forEach(function(u, m) {
1548
+ switch (u) {
1514
1549
  case "s":
1515
1550
  i = m * 2;
1516
1551
  break;
@@ -1521,8 +1556,8 @@ bt.prototype = {
1521
1556
  s = m * 2;
1522
1557
  break;
1523
1558
  }
1524
- }), d = s, a = o, l = i, c = parseInt(t.slice(l, l + 2), 10), u = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(d, d + 2), 10), n = this.getFixedTime(p, u, c)), t.length === 4 && e.timePattern.indexOf("s") < 0 && (r.forEach(function(h, m) {
1525
- switch (h) {
1559
+ }), c = s, a = o, l = i, d = parseInt(t.slice(l, l + 2), 10), h = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(c, c + 2), 10), n = this.getFixedTime(p, h, d)), t.length === 4 && e.timePattern.indexOf("s") < 0 && (r.forEach(function(u, m) {
1560
+ switch (u) {
1526
1561
  case "m":
1527
1562
  o = m * 2;
1528
1563
  break;
@@ -1530,14 +1565,14 @@ bt.prototype = {
1530
1565
  s = m * 2;
1531
1566
  break;
1532
1567
  }
1533
- }), d = s, a = o, c = 0, u = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(d, d + 2), 10), n = this.getFixedTime(p, u, c)), e.time = n, n.length === 0 ? t : r.reduce(function(h, m) {
1568
+ }), c = s, a = o, d = 0, h = parseInt(t.slice(a, a + 2), 10), p = parseInt(t.slice(c, c + 2), 10), n = this.getFixedTime(p, h, d)), e.time = n, n.length === 0 ? t : r.reduce(function(u, m) {
1534
1569
  switch (m) {
1535
1570
  case "s":
1536
- return h + e.addLeadingZero(n[2]);
1571
+ return u + e.addLeadingZero(n[2]);
1537
1572
  case "m":
1538
- return h + e.addLeadingZero(n[1]);
1573
+ return u + e.addLeadingZero(n[1]);
1539
1574
  case "h":
1540
- return h + e.addLeadingZero(n[0]);
1575
+ return u + e.addLeadingZero(n[0]);
1541
1576
  }
1542
1577
  }, "");
1543
1578
  },
@@ -1548,7 +1583,7 @@ bt.prototype = {
1548
1583
  return (t < 10 ? "0" : "") + t;
1549
1584
  }
1550
1585
  };
1551
- var pr = bt, vt = function(t, e) {
1586
+ var fr = bt, vt = function(t, e) {
1552
1587
  var r = this;
1553
1588
  r.delimiter = e || e === "" ? e : " ", r.delimiterRE = e ? new RegExp("\\" + e, "g") : "", r.formatter = t;
1554
1589
  };
@@ -1564,7 +1599,7 @@ vt.prototype = {
1564
1599
  return r = r.replace(/[()]/g, ""), r = r.replace(/[\s-]/g, e.delimiter), r;
1565
1600
  }
1566
1601
  };
1567
- var mr = vt, Ue = {
1602
+ var gr = vt, Be = {
1568
1603
  blocks: {
1569
1604
  uatp: [4, 5, 6],
1570
1605
  amex: [4, 6, 5],
@@ -1616,7 +1651,7 @@ var mr = vt, Ue = {
1616
1651
  return t.concat(19 - e);
1617
1652
  },
1618
1653
  getInfo: function(t, e) {
1619
- var r = Ue.blocks, n = Ue.re;
1654
+ var r = Be.blocks, n = Be.re;
1620
1655
  e = !!e;
1621
1656
  for (var i in n)
1622
1657
  if (n[i].test(t)) {
@@ -1631,7 +1666,7 @@ var mr = vt, Ue = {
1631
1666
  blocks: e ? this.getStrictBlocks(r.general) : r.general
1632
1667
  };
1633
1668
  }
1634
- }, fr = Ue, gr = {
1669
+ }, yr = Be, br = {
1635
1670
  noop: function() {
1636
1671
  },
1637
1672
  strip: function(t, e) {
@@ -1687,15 +1722,15 @@ var mr = vt, Ue = {
1687
1722
  if (t === e && t !== "")
1688
1723
  return "";
1689
1724
  if (a && t.slice(0, 1) == "-") {
1690
- var d = n.slice(0, 1) == "-" ? n.slice(1) : n;
1691
- return "-" + this.getPrefixStrippedValue(t.slice(1), e, r, d, i, o, s, l, a);
1725
+ var c = n.slice(0, 1) == "-" ? n.slice(1) : n;
1726
+ return "-" + this.getPrefixStrippedValue(t.slice(1), e, r, c, i, o, s, l, a);
1692
1727
  }
1693
1728
  if (n.slice(0, r) !== e && !l)
1694
1729
  return s && !n && t ? t : "";
1695
1730
  if (n.slice(-r) !== e && l)
1696
1731
  return s && !n && t ? t : "";
1697
- var c = this.stripDelimiters(n, i, o);
1698
- return t.slice(0, r) !== e && !l ? c.slice(r) : t.slice(-r) !== e && l ? c.slice(0, -r - 1) : l ? t.slice(0, -r) : t.slice(r);
1732
+ var d = this.stripDelimiters(n, i, o);
1733
+ return t.slice(0, r) !== e && !l ? d.slice(r) : t.slice(-r) !== e && l ? d.slice(0, -r - 1) : l ? t.slice(0, -r) : t.slice(r);
1699
1734
  },
1700
1735
  getFirstDiffIndex: function(t, e) {
1701
1736
  for (var r = 0; t.charAt(r) === e.charAt(r); )
@@ -1705,10 +1740,10 @@ var mr = vt, Ue = {
1705
1740
  },
1706
1741
  getFormattedValue: function(t, e, r, n, i, o) {
1707
1742
  var s = "", l = i.length > 0, a = "";
1708
- return r === 0 ? t : (e.forEach(function(d, c) {
1743
+ return r === 0 ? t : (e.forEach(function(c, d) {
1709
1744
  if (t.length > 0) {
1710
- var u = t.slice(0, d), p = t.slice(d);
1711
- l ? a = i[o ? c - 1 : c] || a : a = n, o ? (c > 0 && (s += a), s += u) : (s += u, u.length === d && c < r - 1 && (s += a)), t = p;
1745
+ var h = t.slice(0, c), p = t.slice(c);
1746
+ l ? a = i[o ? d - 1 : d] || a : a = n, o ? (d > 0 && (s += a), s += h) : (s += h, h.length === c && d < r - 1 && (s += a)), t = p;
1712
1747
  }
1713
1748
  }), s);
1714
1749
  },
@@ -1760,15 +1795,15 @@ var mr = vt, Ue = {
1760
1795
  isAndroidBackspaceKeydown: function(t, e) {
1761
1796
  return !this.isAndroid() || !t || !e ? !1 : e === t.slice(0, -1);
1762
1797
  }
1763
- }, yr = gr, br = {
1798
+ }, vr = br, wr = {
1764
1799
  // Maybe change to object-assign
1765
1800
  // for now just keep it as simple
1766
1801
  assign: function(t, e) {
1767
1802
  return t = t || {}, e = e || {}, t.creditCard = !!e.creditCard, t.creditCardStrictMode = !!e.creditCardStrictMode, t.creditCardType = "", t.onCreditCardTypeChanged = e.onCreditCardTypeChanged || function() {
1768
- }, t.phone = !!e.phone, t.phoneRegionCode = e.phoneRegionCode || "AU", t.phoneFormatter = {}, t.time = !!e.time, t.timePattern = e.timePattern || ["h", "m", "s"], t.timeFormat = e.timeFormat || "24", t.timeFormatter = {}, t.date = !!e.date, t.datePattern = e.datePattern || ["d", "m", "Y"], t.dateMin = e.dateMin || "", t.dateMax = e.dateMax || "", t.dateFormatter = {}, t.numeral = !!e.numeral, t.numeralIntegerScale = e.numeralIntegerScale > 0 ? e.numeralIntegerScale : 0, t.numeralDecimalScale = e.numeralDecimalScale >= 0 ? e.numeralDecimalScale : 2, t.numeralDecimalMark = e.numeralDecimalMark || ".", t.numeralThousandsGroupStyle = e.numeralThousandsGroupStyle || "thousand", t.numeralPositiveOnly = !!e.numeralPositiveOnly, t.stripLeadingZeroes = e.stripLeadingZeroes !== !1, t.signBeforePrefix = !!e.signBeforePrefix, t.tailPrefix = !!e.tailPrefix, t.swapHiddenInput = !!e.swapHiddenInput, t.numericOnly = t.creditCard || t.date || !!e.numericOnly, t.uppercase = !!e.uppercase, t.lowercase = !!e.lowercase, t.prefix = t.creditCard || t.date ? "" : e.prefix || "", t.noImmediatePrefix = !!e.noImmediatePrefix, t.prefixLength = t.prefix.length, t.rawValueTrimPrefix = !!e.rawValueTrimPrefix, t.copyDelimiter = !!e.copyDelimiter, t.initValue = e.initValue !== void 0 && e.initValue !== null ? e.initValue.toString() : "", t.delimiter = e.delimiter || e.delimiter === "" ? e.delimiter : e.date ? "/" : e.time ? ":" : e.numeral ? "," : (e.phone, " "), t.delimiterLength = t.delimiter.length, t.delimiterLazyShow = !!e.delimiterLazyShow, t.delimiters = e.delimiters || [], t.blocks = e.blocks || [], t.blocksLength = t.blocks.length, t.root = typeof X == "object" && X ? X : window, t.document = e.document || t.root.document, t.maxLength = 0, t.backspace = !1, t.result = "", t.onValueChanged = e.onValueChanged || function() {
1803
+ }, t.phone = !!e.phone, t.phoneRegionCode = e.phoneRegionCode || "AU", t.phoneFormatter = {}, t.time = !!e.time, t.timePattern = e.timePattern || ["h", "m", "s"], t.timeFormat = e.timeFormat || "24", t.timeFormatter = {}, t.date = !!e.date, t.datePattern = e.datePattern || ["d", "m", "Y"], t.dateMin = e.dateMin || "", t.dateMax = e.dateMax || "", t.dateFormatter = {}, t.numeral = !!e.numeral, t.numeralIntegerScale = e.numeralIntegerScale > 0 ? e.numeralIntegerScale : 0, t.numeralDecimalScale = e.numeralDecimalScale >= 0 ? e.numeralDecimalScale : 2, t.numeralDecimalMark = e.numeralDecimalMark || ".", t.numeralThousandsGroupStyle = e.numeralThousandsGroupStyle || "thousand", t.numeralPositiveOnly = !!e.numeralPositiveOnly, t.stripLeadingZeroes = e.stripLeadingZeroes !== !1, t.signBeforePrefix = !!e.signBeforePrefix, t.tailPrefix = !!e.tailPrefix, t.swapHiddenInput = !!e.swapHiddenInput, t.numericOnly = t.creditCard || t.date || !!e.numericOnly, t.uppercase = !!e.uppercase, t.lowercase = !!e.lowercase, t.prefix = t.creditCard || t.date ? "" : e.prefix || "", t.noImmediatePrefix = !!e.noImmediatePrefix, t.prefixLength = t.prefix.length, t.rawValueTrimPrefix = !!e.rawValueTrimPrefix, t.copyDelimiter = !!e.copyDelimiter, t.initValue = e.initValue !== void 0 && e.initValue !== null ? e.initValue.toString() : "", t.delimiter = e.delimiter || e.delimiter === "" ? e.delimiter : e.date ? "/" : e.time ? ":" : e.numeral ? "," : (e.phone, " "), t.delimiterLength = t.delimiter.length, t.delimiterLazyShow = !!e.delimiterLazyShow, t.delimiters = e.delimiters || [], t.blocks = e.blocks || [], t.blocksLength = t.blocks.length, t.root = typeof W == "object" && W ? W : window, t.document = e.document || t.root.document, t.maxLength = 0, t.backspace = !1, t.result = "", t.onValueChanged = e.onValueChanged || function() {
1769
1804
  }, t;
1770
1805
  }
1771
- }, vr = br, x = function(t, e) {
1806
+ }, xr = wr, x = function(t, e) {
1772
1807
  var r = this, n = !1;
1773
1808
  if (typeof t == "string" ? (r.element = document.querySelector(t), n = document.querySelectorAll(t).length > 1) : typeof t.length < "u" && t.length > 0 ? (r.element = t[0], n = t.length > 1) : r.element = t, !r.element)
1774
1809
  throw new Error("[cleave.js] Please check the element");
@@ -1939,19 +1974,19 @@ x.prototype = {
1939
1974
  return "[Cleave Object]";
1940
1975
  }
1941
1976
  };
1942
- x.NumeralFormatter = hr;
1943
- x.DateFormatter = ur;
1944
- x.TimeFormatter = pr;
1945
- x.PhoneFormatter = mr;
1946
- x.CreditCardDetector = fr;
1947
- x.Util = yr;
1948
- x.DefaultProperties = vr;
1949
- (typeof X == "object" && X ? X : window).Cleave = x;
1950
- var at = x, pe = {}, wr = function() {
1977
+ x.NumeralFormatter = pr;
1978
+ x.DateFormatter = mr;
1979
+ x.TimeFormatter = fr;
1980
+ x.PhoneFormatter = gr;
1981
+ x.CreditCardDetector = yr;
1982
+ x.Util = vr;
1983
+ x.DefaultProperties = xr;
1984
+ (typeof W == "object" && W ? W : window).Cleave = x;
1985
+ var at = x, pe = {}, Sr = function() {
1951
1986
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
1952
- }, wt = {}, D = {};
1953
- let Qe;
1954
- const xr = [
1987
+ }, wt = {}, T = {};
1988
+ let je;
1989
+ const kr = [
1955
1990
  0,
1956
1991
  // Not used
1957
1992
  26,
@@ -1995,30 +2030,30 @@ const xr = [
1995
2030
  3532,
1996
2031
  3706
1997
2032
  ];
1998
- D.getSymbolSize = function(e) {
2033
+ T.getSymbolSize = function(e) {
1999
2034
  if (!e) throw new Error('"version" cannot be null or undefined');
2000
2035
  if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
2001
2036
  return e * 4 + 17;
2002
2037
  };
2003
- D.getSymbolTotalCodewords = function(e) {
2004
- return xr[e];
2038
+ T.getSymbolTotalCodewords = function(e) {
2039
+ return kr[e];
2005
2040
  };
2006
- D.getBCHDigit = function(t) {
2041
+ T.getBCHDigit = function(t) {
2007
2042
  let e = 0;
2008
2043
  for (; t !== 0; )
2009
2044
  e++, t >>>= 1;
2010
2045
  return e;
2011
2046
  };
2012
- D.setToSJISFunction = function(e) {
2047
+ T.setToSJISFunction = function(e) {
2013
2048
  if (typeof e != "function")
2014
2049
  throw new Error('"toSJISFunc" is not a valid function.');
2015
- Qe = e;
2050
+ je = e;
2016
2051
  };
2017
- D.isKanjiModeEnabled = function() {
2018
- return typeof Qe < "u";
2052
+ T.isKanjiModeEnabled = function() {
2053
+ return typeof je < "u";
2019
2054
  };
2020
- D.toSJIS = function(e) {
2021
- return Qe(e);
2055
+ T.toSJIS = function(e) {
2056
+ return je(e);
2022
2057
  };
2023
2058
  var ke = {};
2024
2059
  (function(t) {
@@ -2075,7 +2110,7 @@ xt.prototype = {
2075
2110
  this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
2076
2111
  }
2077
2112
  };
2078
- var Sr = xt;
2113
+ var Cr = xt;
2079
2114
  function me(t) {
2080
2115
  if (!t || t < 1)
2081
2116
  throw new Error("BitMatrix size must be defined and greater than 0");
@@ -2094,9 +2129,9 @@ me.prototype.xor = function(t, e, r) {
2094
2129
  me.prototype.isReserved = function(t, e) {
2095
2130
  return this.reservedBit[t * this.size + e];
2096
2131
  };
2097
- var kr = me, St = {};
2132
+ var Pr = me, St = {};
2098
2133
  (function(t) {
2099
- const e = D.getSymbolSize;
2134
+ const e = T.getSymbolSize;
2100
2135
  t.getRowColCoords = function(n) {
2101
2136
  if (n === 1) return [];
2102
2137
  const i = Math.floor(n / 7) + 2, o = e(n), s = o === 145 ? 26 : Math.ceil((o - 13) / (2 * i - 2)) * 2, l = [o - 7];
@@ -2114,9 +2149,9 @@ var kr = me, St = {};
2114
2149
  };
2115
2150
  })(St);
2116
2151
  var kt = {};
2117
- const Cr = D.getSymbolSize, lt = 7;
2152
+ const Er = T.getSymbolSize, lt = 7;
2118
2153
  kt.getPositions = function(e) {
2119
- const r = Cr(e);
2154
+ const r = Er(e);
2120
2155
  return [
2121
2156
  // top-left
2122
2157
  [0, 0],
@@ -2150,12 +2185,12 @@ var Ct = {};
2150
2185
  return t.isValid(i) ? parseInt(i, 10) : void 0;
2151
2186
  }, t.getPenaltyN1 = function(i) {
2152
2187
  const o = i.size;
2153
- let s = 0, l = 0, a = 0, d = null, c = null;
2154
- for (let u = 0; u < o; u++) {
2155
- l = a = 0, d = c = null;
2188
+ let s = 0, l = 0, a = 0, c = null, d = null;
2189
+ for (let h = 0; h < o; h++) {
2190
+ l = a = 0, c = d = null;
2156
2191
  for (let p = 0; p < o; p++) {
2157
- let h = i.get(u, p);
2158
- h === d ? l++ : (l >= 5 && (s += e.N1 + (l - 5)), d = h, l = 1), h = i.get(p, u), h === c ? a++ : (a >= 5 && (s += e.N1 + (a - 5)), c = h, a = 1);
2192
+ let u = i.get(h, p);
2193
+ u === c ? l++ : (l >= 5 && (s += e.N1 + (l - 5)), c = u, l = 1), u = i.get(p, h), u === d ? a++ : (a >= 5 && (s += e.N1 + (a - 5)), d = u, a = 1);
2159
2194
  }
2160
2195
  l >= 5 && (s += e.N1 + (l - 5)), a >= 5 && (s += e.N1 + (a - 5));
2161
2196
  }
@@ -2165,17 +2200,17 @@ var Ct = {};
2165
2200
  let s = 0;
2166
2201
  for (let l = 0; l < o - 1; l++)
2167
2202
  for (let a = 0; a < o - 1; a++) {
2168
- const d = i.get(l, a) + i.get(l, a + 1) + i.get(l + 1, a) + i.get(l + 1, a + 1);
2169
- (d === 4 || d === 0) && s++;
2203
+ const c = i.get(l, a) + i.get(l, a + 1) + i.get(l + 1, a) + i.get(l + 1, a + 1);
2204
+ (c === 4 || c === 0) && s++;
2170
2205
  }
2171
2206
  return s * e.N2;
2172
2207
  }, t.getPenaltyN3 = function(i) {
2173
2208
  const o = i.size;
2174
2209
  let s = 0, l = 0, a = 0;
2175
- for (let d = 0; d < o; d++) {
2210
+ for (let c = 0; c < o; c++) {
2176
2211
  l = a = 0;
2177
- for (let c = 0; c < o; c++)
2178
- l = l << 1 & 2047 | i.get(d, c), c >= 10 && (l === 1488 || l === 93) && s++, a = a << 1 & 2047 | i.get(c, d), c >= 10 && (a === 1488 || a === 93) && s++;
2212
+ for (let d = 0; d < o; d++)
2213
+ l = l << 1 & 2047 | i.get(c, d), d >= 10 && (l === 1488 || l === 93) && s++, a = a << 1 & 2047 | i.get(d, c), d >= 10 && (a === 1488 || a === 93) && s++;
2179
2214
  }
2180
2215
  return s * e.N3;
2181
2216
  }, t.getPenaltyN4 = function(i) {
@@ -2214,16 +2249,16 @@ var Ct = {};
2214
2249
  }, t.getBestMask = function(i, o) {
2215
2250
  const s = Object.keys(t.Patterns).length;
2216
2251
  let l = 0, a = 1 / 0;
2217
- for (let d = 0; d < s; d++) {
2218
- o(d), t.applyMask(d, i);
2219
- const c = t.getPenaltyN1(i) + t.getPenaltyN2(i) + t.getPenaltyN3(i) + t.getPenaltyN4(i);
2220
- t.applyMask(d, i), c < a && (a = c, l = d);
2252
+ for (let c = 0; c < s; c++) {
2253
+ o(c), t.applyMask(c, i);
2254
+ const d = t.getPenaltyN1(i) + t.getPenaltyN2(i) + t.getPenaltyN3(i) + t.getPenaltyN4(i);
2255
+ t.applyMask(c, i), d < a && (a = d, l = c);
2221
2256
  }
2222
2257
  return l;
2223
2258
  };
2224
2259
  })(Ct);
2225
2260
  var Ce = {};
2226
- const q = ke, fe = [
2261
+ const O = ke, fe = [
2227
2262
  // L M Q H
2228
2263
  1,
2229
2264
  1,
@@ -2550,13 +2585,13 @@ const q = ke, fe = [
2550
2585
  ];
2551
2586
  Ce.getBlocksCount = function(e, r) {
2552
2587
  switch (r) {
2553
- case q.L:
2588
+ case O.L:
2554
2589
  return fe[(e - 1) * 4 + 0];
2555
- case q.M:
2590
+ case O.M:
2556
2591
  return fe[(e - 1) * 4 + 1];
2557
- case q.Q:
2592
+ case O.Q:
2558
2593
  return fe[(e - 1) * 4 + 2];
2559
- case q.H:
2594
+ case O.H:
2560
2595
  return fe[(e - 1) * 4 + 3];
2561
2596
  default:
2562
2597
  return;
@@ -2564,19 +2599,19 @@ Ce.getBlocksCount = function(e, r) {
2564
2599
  };
2565
2600
  Ce.getTotalCodewordsCount = function(e, r) {
2566
2601
  switch (r) {
2567
- case q.L:
2602
+ case O.L:
2568
2603
  return ge[(e - 1) * 4 + 0];
2569
- case q.M:
2604
+ case O.M:
2570
2605
  return ge[(e - 1) * 4 + 1];
2571
- case q.Q:
2606
+ case O.Q:
2572
2607
  return ge[(e - 1) * 4 + 2];
2573
- case q.H:
2608
+ case O.H:
2574
2609
  return ge[(e - 1) * 4 + 3];
2575
2610
  default:
2576
2611
  return;
2577
2612
  }
2578
2613
  };
2579
- var Et = {}, Ee = {};
2614
+ var Pt = {}, Pe = {};
2580
2615
  const ae = new Uint8Array(512), we = new Uint8Array(256);
2581
2616
  (function() {
2582
2617
  let e = 1;
@@ -2585,18 +2620,18 @@ const ae = new Uint8Array(512), we = new Uint8Array(256);
2585
2620
  for (let r = 255; r < 512; r++)
2586
2621
  ae[r] = ae[r - 255];
2587
2622
  })();
2588
- Ee.log = function(e) {
2623
+ Pe.log = function(e) {
2589
2624
  if (e < 1) throw new Error("log(" + e + ")");
2590
2625
  return we[e];
2591
2626
  };
2592
- Ee.exp = function(e) {
2627
+ Pe.exp = function(e) {
2593
2628
  return ae[e];
2594
2629
  };
2595
- Ee.mul = function(e, r) {
2630
+ Pe.mul = function(e, r) {
2596
2631
  return e === 0 || r === 0 ? 0 : ae[we[e] + we[r]];
2597
2632
  };
2598
2633
  (function(t) {
2599
- const e = Ee;
2634
+ const e = Pe;
2600
2635
  t.mul = function(n, i) {
2601
2636
  const o = new Uint8Array(n.length + i.length - 1);
2602
2637
  for (let s = 0; s < n.length; s++)
@@ -2620,53 +2655,53 @@ Ee.mul = function(e, r) {
2620
2655
  i = t.mul(i, new Uint8Array([1, e.exp(o)]));
2621
2656
  return i;
2622
2657
  };
2623
- })(Et);
2624
- const Pt = Et;
2625
- function We(t) {
2658
+ })(Pt);
2659
+ const Et = Pt;
2660
+ function Qe(t) {
2626
2661
  this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
2627
2662
  }
2628
- We.prototype.initialize = function(e) {
2629
- this.degree = e, this.genPoly = Pt.generateECPolynomial(this.degree);
2663
+ Qe.prototype.initialize = function(e) {
2664
+ this.degree = e, this.genPoly = Et.generateECPolynomial(this.degree);
2630
2665
  };
2631
- We.prototype.encode = function(e) {
2666
+ Qe.prototype.encode = function(e) {
2632
2667
  if (!this.genPoly)
2633
2668
  throw new Error("Encoder not initialized");
2634
2669
  const r = new Uint8Array(e.length + this.degree);
2635
2670
  r.set(e);
2636
- const n = Pt.mod(r, this.genPoly), i = this.degree - n.length;
2671
+ const n = Et.mod(r, this.genPoly), i = this.degree - n.length;
2637
2672
  if (i > 0) {
2638
2673
  const o = new Uint8Array(this.degree);
2639
2674
  return o.set(n, i), o;
2640
2675
  }
2641
2676
  return n;
2642
2677
  };
2643
- var Er = We, At = {}, j = {}, Ke = {};
2678
+ var Ar = Qe, At = {}, q = {}, Ke = {};
2644
2679
  Ke.isValid = function(e) {
2645
2680
  return !isNaN(e) && e >= 1 && e <= 40;
2646
2681
  };
2647
- var R = {};
2648
- const It = "[0-9]+", Pr = "[A-Z $%*+\\-./:]+";
2649
- let he = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
2650
- he = he.replace(/u/g, "\\u");
2651
- const Ar = "(?:(?![A-Z0-9 $%*+\\-./:]|" + he + `)(?:.|[\r
2682
+ var L = {};
2683
+ const It = "[0-9]+", Ir = "[A-Z $%*+\\-./:]+";
2684
+ let ue = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
2685
+ ue = ue.replace(/u/g, "\\u");
2686
+ const _r = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ue + `)(?:.|[\r
2652
2687
  ]))+`;
2653
- R.KANJI = new RegExp(he, "g");
2654
- R.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
2655
- R.BYTE = new RegExp(Ar, "g");
2656
- R.NUMERIC = new RegExp(It, "g");
2657
- R.ALPHANUMERIC = new RegExp(Pr, "g");
2658
- const Ir = new RegExp("^" + he + "$"), Mr = new RegExp("^" + It + "$"), Tr = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
2659
- R.testKanji = function(e) {
2660
- return Ir.test(e);
2661
- };
2662
- R.testNumeric = function(e) {
2688
+ L.KANJI = new RegExp(ue, "g");
2689
+ L.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
2690
+ L.BYTE = new RegExp(_r, "g");
2691
+ L.NUMERIC = new RegExp(It, "g");
2692
+ L.ALPHANUMERIC = new RegExp(Ir, "g");
2693
+ const Mr = new RegExp("^" + ue + "$"), Dr = new RegExp("^" + It + "$"), Tr = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
2694
+ L.testKanji = function(e) {
2663
2695
  return Mr.test(e);
2664
2696
  };
2665
- R.testAlphanumeric = function(e) {
2697
+ L.testNumeric = function(e) {
2698
+ return Dr.test(e);
2699
+ };
2700
+ L.testAlphanumeric = function(e) {
2666
2701
  return Tr.test(e);
2667
2702
  };
2668
2703
  (function(t) {
2669
- const e = Ke, r = R;
2704
+ const e = Ke, r = L;
2670
2705
  t.NUMERIC = {
2671
2706
  id: "Numeric",
2672
2707
  bit: 1,
@@ -2723,102 +2758,102 @@ R.testAlphanumeric = function(e) {
2723
2758
  return s;
2724
2759
  }
2725
2760
  };
2726
- })(j);
2761
+ })(q);
2727
2762
  (function(t) {
2728
- const e = D, r = Ce, n = ke, i = j, o = Ke, s = 7973, l = e.getBCHDigit(s);
2729
- function a(p, h, m) {
2730
- for (let f = 1; f <= 40; f++)
2731
- if (h <= t.getCapacity(f, m, p))
2732
- return f;
2763
+ const e = T, r = Ce, n = ke, i = q, o = Ke, s = 7973, l = e.getBCHDigit(s);
2764
+ function a(p, u, m) {
2765
+ for (let y = 1; y <= 40; y++)
2766
+ if (u <= t.getCapacity(y, m, p))
2767
+ return y;
2733
2768
  }
2734
- function d(p, h) {
2735
- return i.getCharCountIndicator(p, h) + 4;
2769
+ function c(p, u) {
2770
+ return i.getCharCountIndicator(p, u) + 4;
2736
2771
  }
2737
- function c(p, h) {
2772
+ function d(p, u) {
2738
2773
  let m = 0;
2739
- return p.forEach(function(f) {
2740
- const C = d(f.mode, h);
2741
- m += C + f.getBitsLength();
2774
+ return p.forEach(function(y) {
2775
+ const P = c(y.mode, u);
2776
+ m += P + y.getBitsLength();
2742
2777
  }), m;
2743
2778
  }
2744
- function u(p, h) {
2779
+ function h(p, u) {
2745
2780
  for (let m = 1; m <= 40; m++)
2746
- if (c(p, m) <= t.getCapacity(m, h, i.MIXED))
2781
+ if (d(p, m) <= t.getCapacity(m, u, i.MIXED))
2747
2782
  return m;
2748
2783
  }
2749
- t.from = function(h, m) {
2750
- return o.isValid(h) ? parseInt(h, 10) : m;
2751
- }, t.getCapacity = function(h, m, f) {
2752
- if (!o.isValid(h))
2784
+ t.from = function(u, m) {
2785
+ return o.isValid(u) ? parseInt(u, 10) : m;
2786
+ }, t.getCapacity = function(u, m, y) {
2787
+ if (!o.isValid(u))
2753
2788
  throw new Error("Invalid QR Code version");
2754
- typeof f > "u" && (f = i.BYTE);
2755
- const C = e.getSymbolTotalCodewords(h), b = r.getTotalCodewordsCount(h, m), v = (C - b) * 8;
2756
- if (f === i.MIXED) return v;
2757
- const y = v - d(f, h);
2758
- switch (f) {
2789
+ typeof y > "u" && (y = i.BYTE);
2790
+ const P = e.getSymbolTotalCodewords(u), b = r.getTotalCodewordsCount(u, m), v = (P - b) * 8;
2791
+ if (y === i.MIXED) return v;
2792
+ const g = v - c(y, u);
2793
+ switch (y) {
2759
2794
  case i.NUMERIC:
2760
- return Math.floor(y / 10 * 3);
2795
+ return Math.floor(g / 10 * 3);
2761
2796
  case i.ALPHANUMERIC:
2762
- return Math.floor(y / 11 * 2);
2797
+ return Math.floor(g / 11 * 2);
2763
2798
  case i.KANJI:
2764
- return Math.floor(y / 13);
2799
+ return Math.floor(g / 13);
2765
2800
  case i.BYTE:
2766
2801
  default:
2767
- return Math.floor(y / 8);
2768
- }
2769
- }, t.getBestVersionForData = function(h, m) {
2770
- let f;
2771
- const C = n.from(m, n.M);
2772
- if (Array.isArray(h)) {
2773
- if (h.length > 1)
2774
- return u(h, C);
2775
- if (h.length === 0)
2802
+ return Math.floor(g / 8);
2803
+ }
2804
+ }, t.getBestVersionForData = function(u, m) {
2805
+ let y;
2806
+ const P = n.from(m, n.M);
2807
+ if (Array.isArray(u)) {
2808
+ if (u.length > 1)
2809
+ return h(u, P);
2810
+ if (u.length === 0)
2776
2811
  return 1;
2777
- f = h[0];
2812
+ y = u[0];
2778
2813
  } else
2779
- f = h;
2780
- return a(f.mode, f.getLength(), C);
2781
- }, t.getEncodedBits = function(h) {
2782
- if (!o.isValid(h) || h < 7)
2814
+ y = u;
2815
+ return a(y.mode, y.getLength(), P);
2816
+ }, t.getEncodedBits = function(u) {
2817
+ if (!o.isValid(u) || u < 7)
2783
2818
  throw new Error("Invalid QR Code version");
2784
- let m = h << 12;
2819
+ let m = u << 12;
2785
2820
  for (; e.getBCHDigit(m) - l >= 0; )
2786
2821
  m ^= s << e.getBCHDigit(m) - l;
2787
- return h << 12 | m;
2822
+ return u << 12 | m;
2788
2823
  };
2789
2824
  })(At);
2790
- var Mt = {};
2791
- const ze = D, Tt = 1335, Dr = 21522, dt = ze.getBCHDigit(Tt);
2792
- Mt.getEncodedBits = function(e, r) {
2825
+ var _t = {};
2826
+ const Fe = T, Mt = 1335, Nr = 21522, ct = Fe.getBCHDigit(Mt);
2827
+ _t.getEncodedBits = function(e, r) {
2793
2828
  const n = e.bit << 3 | r;
2794
2829
  let i = n << 10;
2795
- for (; ze.getBCHDigit(i) - dt >= 0; )
2796
- i ^= Tt << ze.getBCHDigit(i) - dt;
2797
- return (n << 10 | i) ^ Dr;
2830
+ for (; Fe.getBCHDigit(i) - ct >= 0; )
2831
+ i ^= Mt << Fe.getBCHDigit(i) - ct;
2832
+ return (n << 10 | i) ^ Nr;
2798
2833
  };
2799
2834
  var Dt = {};
2800
- const Nr = j;
2801
- function _(t) {
2802
- this.mode = Nr.NUMERIC, this.data = t.toString();
2835
+ const $r = q;
2836
+ function G(t) {
2837
+ this.mode = $r.NUMERIC, this.data = t.toString();
2803
2838
  }
2804
- _.getBitsLength = function(e) {
2839
+ G.getBitsLength = function(e) {
2805
2840
  return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
2806
2841
  };
2807
- _.prototype.getLength = function() {
2842
+ G.prototype.getLength = function() {
2808
2843
  return this.data.length;
2809
2844
  };
2810
- _.prototype.getBitsLength = function() {
2811
- return _.getBitsLength(this.data.length);
2845
+ G.prototype.getBitsLength = function() {
2846
+ return G.getBitsLength(this.data.length);
2812
2847
  };
2813
- _.prototype.write = function(e) {
2848
+ G.prototype.write = function(e) {
2814
2849
  let r, n, i;
2815
2850
  for (r = 0; r + 3 <= this.data.length; r += 3)
2816
2851
  n = this.data.substr(r, 3), i = parseInt(n, 10), e.put(i, 10);
2817
2852
  const o = this.data.length - r;
2818
2853
  o > 0 && (n = this.data.substr(r), i = parseInt(n, 10), e.put(i, o * 3 + 1));
2819
2854
  };
2820
- var Fr = _;
2821
- const Lr = j, Ne = [
2855
+ var Rr = G;
2856
+ const Lr = q, Te = [
2822
2857
  "0",
2823
2858
  "1",
2824
2859
  "2",
@@ -2865,30 +2900,30 @@ const Lr = j, Ne = [
2865
2900
  "/",
2866
2901
  ":"
2867
2902
  ];
2868
- function $(t) {
2903
+ function X(t) {
2869
2904
  this.mode = Lr.ALPHANUMERIC, this.data = t;
2870
2905
  }
2871
- $.getBitsLength = function(e) {
2906
+ X.getBitsLength = function(e) {
2872
2907
  return 11 * Math.floor(e / 2) + 6 * (e % 2);
2873
2908
  };
2874
- $.prototype.getLength = function() {
2909
+ X.prototype.getLength = function() {
2875
2910
  return this.data.length;
2876
2911
  };
2877
- $.prototype.getBitsLength = function() {
2878
- return $.getBitsLength(this.data.length);
2912
+ X.prototype.getBitsLength = function() {
2913
+ return X.getBitsLength(this.data.length);
2879
2914
  };
2880
- $.prototype.write = function(e) {
2915
+ X.prototype.write = function(e) {
2881
2916
  let r;
2882
2917
  for (r = 0; r + 2 <= this.data.length; r += 2) {
2883
- let n = Ne.indexOf(this.data[r]) * 45;
2884
- n += Ne.indexOf(this.data[r + 1]), e.put(n, 11);
2918
+ let n = Te.indexOf(this.data[r]) * 45;
2919
+ n += Te.indexOf(this.data[r + 1]), e.put(n, 11);
2885
2920
  }
2886
- this.data.length % 2 && e.put(Ne.indexOf(this.data[r]), 6);
2921
+ this.data.length % 2 && e.put(Te.indexOf(this.data[r]), 6);
2887
2922
  };
2888
- var Rr = $;
2889
- const Br = j;
2923
+ var Br = X;
2924
+ const Fr = q;
2890
2925
  function ee(t) {
2891
- this.mode = Br.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
2926
+ this.mode = Fr.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
2892
2927
  }
2893
2928
  ee.getBitsLength = function(e) {
2894
2929
  return e * 8;
@@ -2904,9 +2939,9 @@ ee.prototype.write = function(t) {
2904
2939
  t.put(this.data[e], 8);
2905
2940
  };
2906
2941
  var Ur = ee;
2907
- const zr = j, qr = D;
2942
+ const Or = q, zr = T;
2908
2943
  function te(t) {
2909
- this.mode = zr.KANJI, this.data = t;
2944
+ this.mode = Or.KANJI, this.data = t;
2910
2945
  }
2911
2946
  te.getBitsLength = function(e) {
2912
2947
  return e * 13;
@@ -2920,7 +2955,7 @@ te.prototype.getBitsLength = function() {
2920
2955
  te.prototype.write = function(t) {
2921
2956
  let e;
2922
2957
  for (e = 0; e < this.data.length; e++) {
2923
- let r = qr.toSJIS(this.data[e]);
2958
+ let r = zr.toSJIS(this.data[e]);
2924
2959
  if (r >= 33088 && r <= 40956)
2925
2960
  r -= 33088;
2926
2961
  else if (r >= 57408 && r <= 60351)
@@ -2933,7 +2968,7 @@ Make sure your charset is UTF-8`
2933
2968
  r = (r >>> 8 & 255) * 192 + (r & 255), t.put(r, 13);
2934
2969
  }
2935
2970
  };
2936
- var Or = te, Nt = { exports: {} };
2971
+ var qr = te, Tt = { exports: {} };
2937
2972
  (function(t) {
2938
2973
  var e = {
2939
2974
  single_source_shortest_paths: function(r, n, i) {
@@ -2941,10 +2976,10 @@ var Or = te, Nt = { exports: {} };
2941
2976
  s[n] = 0;
2942
2977
  var l = e.PriorityQueue.make();
2943
2978
  l.push(n, 0);
2944
- for (var a, d, c, u, p, h, m, f, C; !l.empty(); ) {
2945
- a = l.pop(), d = a.value, u = a.cost, p = r[d] || {};
2946
- for (c in p)
2947
- p.hasOwnProperty(c) && (h = p[c], m = u + h, f = s[c], C = typeof s[c] > "u", (C || f > m) && (s[c] = m, l.push(c, m), o[c] = d));
2979
+ for (var a, c, d, h, p, u, m, y, P; !l.empty(); ) {
2980
+ a = l.pop(), c = a.value, h = a.cost, p = r[c] || {};
2981
+ for (d in p)
2982
+ p.hasOwnProperty(d) && (u = p[d], m = h + u, y = s[d], P = typeof s[d] > "u", (P || y > m) && (s[d] = m, l.push(d, m), o[d] = c));
2948
2983
  }
2949
2984
  if (typeof i < "u" && typeof s[i] > "u") {
2950
2985
  var b = ["Could not find a path from ", n, " to ", i, "."].join("");
@@ -2998,35 +3033,35 @@ var Or = te, Nt = { exports: {} };
2998
3033
  }
2999
3034
  };
3000
3035
  t.exports = e;
3001
- })(Nt);
3002
- var jr = Nt.exports;
3036
+ })(Tt);
3037
+ var Vr = Tt.exports;
3003
3038
  (function(t) {
3004
- const e = j, r = Fr, n = Rr, i = Ur, o = Or, s = R, l = D, a = jr;
3005
- function d(b) {
3039
+ const e = q, r = Rr, n = Br, i = Ur, o = qr, s = L, l = T, a = Vr;
3040
+ function c(b) {
3006
3041
  return unescape(encodeURIComponent(b)).length;
3007
3042
  }
3008
- function c(b, v, y) {
3009
- const g = [];
3043
+ function d(b, v, g) {
3044
+ const f = [];
3010
3045
  let k;
3011
- for (; (k = b.exec(y)) !== null; )
3012
- g.push({
3046
+ for (; (k = b.exec(g)) !== null; )
3047
+ f.push({
3013
3048
  data: k[0],
3014
3049
  index: k.index,
3015
3050
  mode: v,
3016
3051
  length: k[0].length
3017
3052
  });
3018
- return g;
3053
+ return f;
3019
3054
  }
3020
- function u(b) {
3021
- const v = c(s.NUMERIC, e.NUMERIC, b), y = c(s.ALPHANUMERIC, e.ALPHANUMERIC, b);
3022
- let g, k;
3023
- return l.isKanjiModeEnabled() ? (g = c(s.BYTE, e.BYTE, b), k = c(s.KANJI, e.KANJI, b)) : (g = c(s.BYTE_KANJI, e.BYTE, b), k = []), v.concat(y, g, k).sort(function(A, F) {
3024
- return A.index - F.index;
3025
- }).map(function(A) {
3055
+ function h(b) {
3056
+ const v = d(s.NUMERIC, e.NUMERIC, b), g = d(s.ALPHANUMERIC, e.ALPHANUMERIC, b);
3057
+ let f, k;
3058
+ return l.isKanjiModeEnabled() ? (f = d(s.BYTE, e.BYTE, b), k = d(s.KANJI, e.KANJI, b)) : (f = d(s.BYTE_KANJI, e.BYTE, b), k = []), v.concat(g, f, k).sort(function(I, $) {
3059
+ return I.index - $.index;
3060
+ }).map(function(I) {
3026
3061
  return {
3027
- data: A.data,
3028
- mode: A.mode,
3029
- length: A.length
3062
+ data: I.data,
3063
+ mode: I.mode,
3064
+ length: I.length
3030
3065
  };
3031
3066
  });
3032
3067
  }
@@ -3042,70 +3077,70 @@ var jr = Nt.exports;
3042
3077
  return i.getBitsLength(b);
3043
3078
  }
3044
3079
  }
3045
- function h(b) {
3046
- return b.reduce(function(v, y) {
3047
- const g = v.length - 1 >= 0 ? v[v.length - 1] : null;
3048
- return g && g.mode === y.mode ? (v[v.length - 1].data += y.data, v) : (v.push(y), v);
3080
+ function u(b) {
3081
+ return b.reduce(function(v, g) {
3082
+ const f = v.length - 1 >= 0 ? v[v.length - 1] : null;
3083
+ return f && f.mode === g.mode ? (v[v.length - 1].data += g.data, v) : (v.push(g), v);
3049
3084
  }, []);
3050
3085
  }
3051
3086
  function m(b) {
3052
3087
  const v = [];
3053
- for (let y = 0; y < b.length; y++) {
3054
- const g = b[y];
3055
- switch (g.mode) {
3088
+ for (let g = 0; g < b.length; g++) {
3089
+ const f = b[g];
3090
+ switch (f.mode) {
3056
3091
  case e.NUMERIC:
3057
3092
  v.push([
3058
- g,
3059
- { data: g.data, mode: e.ALPHANUMERIC, length: g.length },
3060
- { data: g.data, mode: e.BYTE, length: g.length }
3093
+ f,
3094
+ { data: f.data, mode: e.ALPHANUMERIC, length: f.length },
3095
+ { data: f.data, mode: e.BYTE, length: f.length }
3061
3096
  ]);
3062
3097
  break;
3063
3098
  case e.ALPHANUMERIC:
3064
3099
  v.push([
3065
- g,
3066
- { data: g.data, mode: e.BYTE, length: g.length }
3100
+ f,
3101
+ { data: f.data, mode: e.BYTE, length: f.length }
3067
3102
  ]);
3068
3103
  break;
3069
3104
  case e.KANJI:
3070
3105
  v.push([
3071
- g,
3072
- { data: g.data, mode: e.BYTE, length: d(g.data) }
3106
+ f,
3107
+ { data: f.data, mode: e.BYTE, length: c(f.data) }
3073
3108
  ]);
3074
3109
  break;
3075
3110
  case e.BYTE:
3076
3111
  v.push([
3077
- { data: g.data, mode: e.BYTE, length: d(g.data) }
3112
+ { data: f.data, mode: e.BYTE, length: c(f.data) }
3078
3113
  ]);
3079
3114
  }
3080
3115
  }
3081
3116
  return v;
3082
3117
  }
3083
- function f(b, v) {
3084
- const y = {}, g = { start: {} };
3118
+ function y(b, v) {
3119
+ const g = {}, f = { start: {} };
3085
3120
  let k = ["start"];
3086
3121
  for (let E = 0; E < b.length; E++) {
3087
- const A = b[E], F = [];
3088
- for (let U = 0; U < A.length; U++) {
3089
- const L = A[U], re = "" + E + U;
3090
- F.push(re), y[re] = { node: L, lastCount: 0 }, g[re] = {};
3122
+ const I = b[E], $ = [];
3123
+ for (let F = 0; F < I.length; F++) {
3124
+ const R = I[F], re = "" + E + F;
3125
+ $.push(re), g[re] = { node: R, lastCount: 0 }, f[re] = {};
3091
3126
  for (let Ae = 0; Ae < k.length; Ae++) {
3092
3127
  const B = k[Ae];
3093
- y[B] && y[B].node.mode === L.mode ? (g[B][re] = p(y[B].lastCount + L.length, L.mode) - p(y[B].lastCount, L.mode), y[B].lastCount += L.length) : (y[B] && (y[B].lastCount = L.length), g[B][re] = p(L.length, L.mode) + 4 + e.getCharCountIndicator(L.mode, v));
3128
+ g[B] && g[B].node.mode === R.mode ? (f[B][re] = p(g[B].lastCount + R.length, R.mode) - p(g[B].lastCount, R.mode), g[B].lastCount += R.length) : (g[B] && (g[B].lastCount = R.length), f[B][re] = p(R.length, R.mode) + 4 + e.getCharCountIndicator(R.mode, v));
3094
3129
  }
3095
3130
  }
3096
- k = F;
3131
+ k = $;
3097
3132
  }
3098
3133
  for (let E = 0; E < k.length; E++)
3099
- g[k[E]].end = 0;
3100
- return { map: g, table: y };
3101
- }
3102
- function C(b, v) {
3103
- let y;
3104
- const g = e.getBestModeForData(b);
3105
- if (y = e.from(v, g), y !== e.BYTE && y.bit < g.bit)
3106
- throw new Error('"' + b + '" cannot be encoded with mode ' + e.toString(y) + `.
3107
- Suggested mode is: ` + e.toString(g));
3108
- switch (y === e.KANJI && !l.isKanjiModeEnabled() && (y = e.BYTE), y) {
3134
+ f[k[E]].end = 0;
3135
+ return { map: f, table: g };
3136
+ }
3137
+ function P(b, v) {
3138
+ let g;
3139
+ const f = e.getBestModeForData(b);
3140
+ if (g = e.from(v, f), g !== e.BYTE && g.bit < f.bit)
3141
+ throw new Error('"' + b + '" cannot be encoded with mode ' + e.toString(g) + `.
3142
+ Suggested mode is: ` + e.toString(f));
3143
+ switch (g === e.KANJI && !l.isKanjiModeEnabled() && (g = e.BYTE), g) {
3109
3144
  case e.NUMERIC:
3110
3145
  return new r(b);
3111
3146
  case e.ALPHANUMERIC:
@@ -3117,23 +3152,23 @@ var jr = Nt.exports;
3117
3152
  }
3118
3153
  }
3119
3154
  t.fromArray = function(v) {
3120
- return v.reduce(function(y, g) {
3121
- return typeof g == "string" ? y.push(C(g, null)) : g.data && y.push(C(g.data, g.mode)), y;
3155
+ return v.reduce(function(g, f) {
3156
+ return typeof f == "string" ? g.push(P(f, null)) : f.data && g.push(P(f.data, f.mode)), g;
3122
3157
  }, []);
3123
- }, t.fromString = function(v, y) {
3124
- const g = u(v, l.isKanjiModeEnabled()), k = m(g), E = f(k, y), A = a.find_path(E.map, "start", "end"), F = [];
3125
- for (let U = 1; U < A.length - 1; U++)
3126
- F.push(E.table[A[U]].node);
3127
- return t.fromArray(h(F));
3158
+ }, t.fromString = function(v, g) {
3159
+ const f = h(v, l.isKanjiModeEnabled()), k = m(f), E = y(k, g), I = a.find_path(E.map, "start", "end"), $ = [];
3160
+ for (let F = 1; F < I.length - 1; F++)
3161
+ $.push(E.table[I[F]].node);
3162
+ return t.fromArray(u($));
3128
3163
  }, t.rawSplit = function(v) {
3129
3164
  return t.fromArray(
3130
- u(v, l.isKanjiModeEnabled())
3165
+ h(v, l.isKanjiModeEnabled())
3131
3166
  );
3132
3167
  };
3133
3168
  })(Dt);
3134
- const Pe = D, Fe = ke, Vr = Sr, Hr = kr, Zr = St, Yr = kt, qe = Ct, Oe = Ce, Qr = Er, xe = At, Wr = Mt, Kr = j, Le = Dt;
3135
- function Xr(t, e) {
3136
- const r = t.size, n = Yr.getPositions(e);
3169
+ const Ee = T, Ne = ke, Hr = Cr, Yr = Pr, jr = St, Qr = kt, Ue = Ct, Oe = Ce, Kr = Ar, xe = At, Wr = _t, Zr = q, $e = Dt;
3170
+ function Jr(t, e) {
3171
+ const r = t.size, n = Qr.getPositions(e);
3137
3172
  for (let i = 0; i < n.length; i++) {
3138
3173
  const o = n[i][0], s = n[i][1];
3139
3174
  for (let l = -1; l <= 7; l++)
@@ -3142,15 +3177,15 @@ function Xr(t, e) {
3142
3177
  s + a <= -1 || r <= s + a || (l >= 0 && l <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && a >= 2 && a <= 4 ? t.set(o + l, s + a, !0, !0) : t.set(o + l, s + a, !1, !0));
3143
3178
  }
3144
3179
  }
3145
- function Jr(t) {
3180
+ function Gr(t) {
3146
3181
  const e = t.size;
3147
3182
  for (let r = 8; r < e - 8; r++) {
3148
3183
  const n = r % 2 === 0;
3149
3184
  t.set(r, 6, n, !0), t.set(6, r, n, !0);
3150
3185
  }
3151
3186
  }
3152
- function Gr(t, e) {
3153
- const r = Zr.getPositions(e);
3187
+ function Xr(t, e) {
3188
+ const r = jr.getPositions(e);
3154
3189
  for (let n = 0; n < r.length; n++) {
3155
3190
  const i = r[n][0], o = r[n][1];
3156
3191
  for (let s = -2; s <= 2; s++)
@@ -3158,7 +3193,7 @@ function Gr(t, e) {
3158
3193
  s === -2 || s === 2 || l === -2 || l === 2 || s === 0 && l === 0 ? t.set(i + s, o + l, !0, !0) : t.set(i + s, o + l, !1, !0);
3159
3194
  }
3160
3195
  }
3161
- function _r(t, e) {
3196
+ function en(t, e) {
3162
3197
  const r = t.size, n = xe.getEncodedBits(e);
3163
3198
  let i, o, s;
3164
3199
  for (let l = 0; l < 18; l++)
@@ -3171,15 +3206,15 @@ function Re(t, e, r) {
3171
3206
  s = (i >> o & 1) === 1, o < 6 ? t.set(o, 8, s, !0) : o < 8 ? t.set(o + 1, 8, s, !0) : t.set(n - 15 + o, 8, s, !0), o < 8 ? t.set(8, n - o - 1, s, !0) : o < 9 ? t.set(8, 15 - o - 1 + 1, s, !0) : t.set(8, 15 - o - 1, s, !0);
3172
3207
  t.set(n - 8, 8, 1, !0);
3173
3208
  }
3174
- function $r(t, e) {
3209
+ function tn(t, e) {
3175
3210
  const r = t.size;
3176
3211
  let n = -1, i = r - 1, o = 7, s = 0;
3177
3212
  for (let l = r - 1; l > 0; l -= 2)
3178
3213
  for (l === 6 && l--; ; ) {
3179
3214
  for (let a = 0; a < 2; a++)
3180
3215
  if (!t.isReserved(i, l - a)) {
3181
- let d = !1;
3182
- s < e.length && (d = (e[s] >>> o & 1) === 1), t.set(i, l - a, d), o--, o === -1 && (s++, o = 7);
3216
+ let c = !1;
3217
+ s < e.length && (c = (e[s] >>> o & 1) === 1), t.set(i, l - a, c), o--, o === -1 && (s++, o = 7);
3183
3218
  }
3184
3219
  if (i += n, i < 0 || r <= i) {
3185
3220
  i -= n, n = -n;
@@ -3187,50 +3222,50 @@ function $r(t, e) {
3187
3222
  }
3188
3223
  }
3189
3224
  }
3190
- function en(t, e, r) {
3191
- const n = new Vr();
3225
+ function rn(t, e, r) {
3226
+ const n = new Hr();
3192
3227
  r.forEach(function(a) {
3193
- n.put(a.mode.bit, 4), n.put(a.getLength(), Kr.getCharCountIndicator(a.mode, t)), a.write(n);
3228
+ n.put(a.mode.bit, 4), n.put(a.getLength(), Zr.getCharCountIndicator(a.mode, t)), a.write(n);
3194
3229
  });
3195
- const i = Pe.getSymbolTotalCodewords(t), o = Oe.getTotalCodewordsCount(t, e), s = (i - o) * 8;
3230
+ const i = Ee.getSymbolTotalCodewords(t), o = Oe.getTotalCodewordsCount(t, e), s = (i - o) * 8;
3196
3231
  for (n.getLengthInBits() + 4 <= s && n.put(0, 4); n.getLengthInBits() % 8 !== 0; )
3197
3232
  n.putBit(0);
3198
3233
  const l = (s - n.getLengthInBits()) / 8;
3199
3234
  for (let a = 0; a < l; a++)
3200
3235
  n.put(a % 2 ? 17 : 236, 8);
3201
- return tn(n, t, e);
3236
+ return nn(n, t, e);
3202
3237
  }
3203
- function tn(t, e, r) {
3204
- const n = Pe.getSymbolTotalCodewords(e), i = Oe.getTotalCodewordsCount(e, r), o = n - i, s = Oe.getBlocksCount(e, r), l = n % s, a = s - l, d = Math.floor(n / s), c = Math.floor(o / s), u = c + 1, p = d - c, h = new Qr(p);
3238
+ function nn(t, e, r) {
3239
+ const n = Ee.getSymbolTotalCodewords(e), i = Oe.getTotalCodewordsCount(e, r), o = n - i, s = Oe.getBlocksCount(e, r), l = n % s, a = s - l, c = Math.floor(n / s), d = Math.floor(o / s), h = d + 1, p = c - d, u = new Kr(p);
3205
3240
  let m = 0;
3206
- const f = new Array(s), C = new Array(s);
3241
+ const y = new Array(s), P = new Array(s);
3207
3242
  let b = 0;
3208
3243
  const v = new Uint8Array(t.buffer);
3209
- for (let A = 0; A < s; A++) {
3210
- const F = A < a ? c : u;
3211
- f[A] = v.slice(m, m + F), C[A] = h.encode(f[A]), m += F, b = Math.max(b, F);
3244
+ for (let I = 0; I < s; I++) {
3245
+ const $ = I < a ? d : h;
3246
+ y[I] = v.slice(m, m + $), P[I] = u.encode(y[I]), m += $, b = Math.max(b, $);
3212
3247
  }
3213
- const y = new Uint8Array(n);
3214
- let g = 0, k, E;
3248
+ const g = new Uint8Array(n);
3249
+ let f = 0, k, E;
3215
3250
  for (k = 0; k < b; k++)
3216
3251
  for (E = 0; E < s; E++)
3217
- k < f[E].length && (y[g++] = f[E][k]);
3252
+ k < y[E].length && (g[f++] = y[E][k]);
3218
3253
  for (k = 0; k < p; k++)
3219
3254
  for (E = 0; E < s; E++)
3220
- y[g++] = C[E][k];
3221
- return y;
3255
+ g[f++] = P[E][k];
3256
+ return g;
3222
3257
  }
3223
- function rn(t, e, r, n) {
3258
+ function on(t, e, r, n) {
3224
3259
  let i;
3225
3260
  if (Array.isArray(t))
3226
- i = Le.fromArray(t);
3261
+ i = $e.fromArray(t);
3227
3262
  else if (typeof t == "string") {
3228
- let d = e;
3229
- if (!d) {
3230
- const c = Le.rawSplit(t);
3231
- d = xe.getBestVersionForData(c, r);
3263
+ let c = e;
3264
+ if (!c) {
3265
+ const d = $e.rawSplit(t);
3266
+ c = xe.getBestVersionForData(d, r);
3232
3267
  }
3233
- i = Le.fromString(t, d || 40);
3268
+ i = $e.fromString(t, c || 40);
3234
3269
  } else
3235
3270
  throw new Error("Invalid data");
3236
3271
  const o = xe.getBestVersionForData(i, r);
@@ -3245,11 +3280,11 @@ The chosen QR Code version cannot contain this amount of data.
3245
3280
  Minimum version required to store current data is: ` + o + `.
3246
3281
  `
3247
3282
  );
3248
- const s = en(e, r, i), l = Pe.getSymbolSize(e), a = new Hr(l);
3249
- return Xr(a, e), Jr(a), Gr(a, e), Re(a, r, 0), e >= 7 && _r(a, e), $r(a, s), isNaN(n) && (n = qe.getBestMask(
3283
+ const s = rn(e, r, i), l = Ee.getSymbolSize(e), a = new Yr(l);
3284
+ return Jr(a, e), Gr(a), Xr(a, e), Re(a, r, 0), e >= 7 && en(a, e), tn(a, s), isNaN(n) && (n = Ue.getBestMask(
3250
3285
  a,
3251
3286
  Re.bind(null, a, r)
3252
- )), qe.applyMask(n, a), Re(a, r, n), {
3287
+ )), Ue.applyMask(n, a), Re(a, r, n), {
3253
3288
  modules: a,
3254
3289
  version: e,
3255
3290
  errorCorrectionLevel: r,
@@ -3260,10 +3295,10 @@ Minimum version required to store current data is: ` + o + `.
3260
3295
  wt.create = function(e, r) {
3261
3296
  if (typeof e > "u" || e === "")
3262
3297
  throw new Error("No input text");
3263
- let n = Fe.M, i, o;
3264
- return typeof r < "u" && (n = Fe.from(r.errorCorrectionLevel, Fe.M), i = xe.from(r.version), o = qe.from(r.maskPattern), r.toSJISFunc && Pe.setToSJISFunction(r.toSJISFunc)), rn(e, i, n, o);
3298
+ let n = Ne.M, i, o;
3299
+ return typeof r < "u" && (n = Ne.from(r.errorCorrectionLevel, Ne.M), i = xe.from(r.version), o = Ue.from(r.maskPattern), r.toSJISFunc && Ee.setToSJISFunction(r.toSJISFunc)), on(e, i, n, o);
3265
3300
  };
3266
- var Ft = {}, Xe = {};
3301
+ var Nt = {}, We = {};
3267
3302
  (function(t) {
3268
3303
  function e(r) {
3269
3304
  if (typeof r == "number" && (r = r.toString()), typeof r != "string")
@@ -3303,20 +3338,20 @@ var Ft = {}, Xe = {};
3303
3338
  const o = t.getScale(n, i);
3304
3339
  return Math.floor((n + i.margin * 2) * o);
3305
3340
  }, t.qrToImageData = function(n, i, o) {
3306
- const s = i.modules.size, l = i.modules.data, a = t.getScale(s, o), d = Math.floor((s + o.margin * 2) * a), c = o.margin * a, u = [o.color.light, o.color.dark];
3307
- for (let p = 0; p < d; p++)
3308
- for (let h = 0; h < d; h++) {
3309
- let m = (p * d + h) * 4, f = o.color.light;
3310
- if (p >= c && h >= c && p < d - c && h < d - c) {
3311
- const C = Math.floor((p - c) / a), b = Math.floor((h - c) / a);
3312
- f = u[l[C * s + b] ? 1 : 0];
3341
+ const s = i.modules.size, l = i.modules.data, a = t.getScale(s, o), c = Math.floor((s + o.margin * 2) * a), d = o.margin * a, h = [o.color.light, o.color.dark];
3342
+ for (let p = 0; p < c; p++)
3343
+ for (let u = 0; u < c; u++) {
3344
+ let m = (p * c + u) * 4, y = o.color.light;
3345
+ if (p >= d && u >= d && p < c - d && u < c - d) {
3346
+ const P = Math.floor((p - d) / a), b = Math.floor((u - d) / a);
3347
+ y = h[l[P * s + b] ? 1 : 0];
3313
3348
  }
3314
- n[m++] = f.r, n[m++] = f.g, n[m++] = f.b, n[m] = f.a;
3349
+ n[m++] = y.r, n[m++] = y.g, n[m++] = y.b, n[m] = y.a;
3315
3350
  }
3316
3351
  };
3317
- })(Xe);
3352
+ })(We);
3318
3353
  (function(t) {
3319
- const e = Xe;
3354
+ const e = We;
3320
3355
  function r(i, o, s) {
3321
3356
  i.clearRect(0, 0, o.width, o.height), o.style || (o.style = {}), o.height = s, o.width = s, o.style.height = s + "px", o.style.width = s + "px";
3322
3357
  }
@@ -3328,44 +3363,44 @@ var Ft = {}, Xe = {};
3328
3363
  }
3329
3364
  }
3330
3365
  t.render = function(o, s, l) {
3331
- let a = l, d = s;
3332
- typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (d = n()), a = e.getOptions(a);
3333
- const c = e.getImageWidth(o.modules.size, a), u = d.getContext("2d"), p = u.createImageData(c, c);
3334
- return e.qrToImageData(p.data, o, a), r(u, d, c), u.putImageData(p, 0, 0), d;
3366
+ let a = l, c = s;
3367
+ typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (c = n()), a = e.getOptions(a);
3368
+ const d = e.getImageWidth(o.modules.size, a), h = c.getContext("2d"), p = h.createImageData(d, d);
3369
+ return e.qrToImageData(p.data, o, a), r(h, c, d), h.putImageData(p, 0, 0), c;
3335
3370
  }, t.renderToDataURL = function(o, s, l) {
3336
3371
  let a = l;
3337
3372
  typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), a || (a = {});
3338
- const d = t.render(o, s, a), c = a.type || "image/png", u = a.rendererOpts || {};
3339
- return d.toDataURL(c, u.quality);
3373
+ const c = t.render(o, s, a), d = a.type || "image/png", h = a.rendererOpts || {};
3374
+ return c.toDataURL(d, h.quality);
3340
3375
  };
3341
- })(Ft);
3342
- var Lt = {};
3343
- const nn = Xe;
3344
- function ct(t, e) {
3376
+ })(Nt);
3377
+ var $t = {};
3378
+ const sn = We;
3379
+ function dt(t, e) {
3345
3380
  const r = t.a / 255, n = e + '="' + t.hex + '"';
3346
3381
  return r < 1 ? n + " " + e + '-opacity="' + r.toFixed(2).slice(1) + '"' : n;
3347
3382
  }
3348
- function Be(t, e, r) {
3383
+ function Le(t, e, r) {
3349
3384
  let n = t + e;
3350
3385
  return typeof r < "u" && (n += " " + r), n;
3351
3386
  }
3352
- function on(t, e, r) {
3387
+ function an(t, e, r) {
3353
3388
  let n = "", i = 0, o = !1, s = 0;
3354
3389
  for (let l = 0; l < t.length; l++) {
3355
- const a = Math.floor(l % e), d = Math.floor(l / e);
3356
- !a && !o && (o = !0), t[l] ? (s++, l > 0 && a > 0 && t[l - 1] || (n += o ? Be("M", a + r, 0.5 + d + r) : Be("m", i, 0), i = 0, o = !1), a + 1 < e && t[l + 1] || (n += Be("h", s), s = 0)) : i++;
3390
+ const a = Math.floor(l % e), c = Math.floor(l / e);
3391
+ !a && !o && (o = !0), t[l] ? (s++, l > 0 && a > 0 && t[l - 1] || (n += o ? Le("M", a + r, 0.5 + c + r) : Le("m", i, 0), i = 0, o = !1), a + 1 < e && t[l + 1] || (n += Le("h", s), s = 0)) : i++;
3357
3392
  }
3358
3393
  return n;
3359
3394
  }
3360
- Lt.render = function(e, r, n) {
3361
- const i = nn.getOptions(r), o = e.modules.size, s = e.modules.data, l = o + i.margin * 2, a = i.color.light.a ? "<path " + ct(i.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", d = "<path " + ct(i.color.dark, "stroke") + ' d="' + on(s, o, i.margin) + '"/>', c = 'viewBox="0 0 ' + l + " " + l + '"', p = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + c + ' shape-rendering="crispEdges">' + a + d + `</svg>
3395
+ $t.render = function(e, r, n) {
3396
+ const i = sn.getOptions(r), o = e.modules.size, s = e.modules.data, l = o + i.margin * 2, a = i.color.light.a ? "<path " + dt(i.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", c = "<path " + dt(i.color.dark, "stroke") + ' d="' + an(s, o, i.margin) + '"/>', d = 'viewBox="0 0 ' + l + " " + l + '"', p = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + a + c + `</svg>
3362
3397
  `;
3363
3398
  return typeof n == "function" && n(null, p), p;
3364
3399
  };
3365
- const sn = wr, je = wt, Rt = Ft, an = Lt;
3366
- function Je(t, e, r, n, i) {
3400
+ const ln = Sr, ze = wt, Rt = Nt, cn = $t;
3401
+ function Ze(t, e, r, n, i) {
3367
3402
  const o = [].slice.call(arguments, 1), s = o.length, l = typeof o[s - 1] == "function";
3368
- if (!l && !sn())
3403
+ if (!l && !ln())
3369
3404
  throw new Error("Callback required as last argument");
3370
3405
  if (l) {
3371
3406
  if (s < 2)
@@ -3374,32 +3409,32 @@ function Je(t, e, r, n, i) {
3374
3409
  } else {
3375
3410
  if (s < 1)
3376
3411
  throw new Error("Too few arguments provided");
3377
- return s === 1 ? (r = e, e = n = void 0) : s === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(a, d) {
3412
+ return s === 1 ? (r = e, e = n = void 0) : s === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(a, c) {
3378
3413
  try {
3379
- const c = je.create(r, n);
3380
- a(t(c, e, n));
3381
- } catch (c) {
3382
- d(c);
3414
+ const d = ze.create(r, n);
3415
+ a(t(d, e, n));
3416
+ } catch (d) {
3417
+ c(d);
3383
3418
  }
3384
3419
  });
3385
3420
  }
3386
3421
  try {
3387
- const a = je.create(r, n);
3422
+ const a = ze.create(r, n);
3388
3423
  i(null, t(a, e, n));
3389
3424
  } catch (a) {
3390
3425
  i(a);
3391
3426
  }
3392
3427
  }
3393
- pe.create = je.create;
3394
- pe.toCanvas = Je.bind(null, Rt.render);
3395
- pe.toDataURL = Je.bind(null, Rt.renderToDataURL);
3396
- pe.toString = Je.bind(null, function(t, e, r) {
3397
- return an.render(t, r);
3428
+ pe.create = ze.create;
3429
+ pe.toCanvas = Ze.bind(null, Rt.render);
3430
+ pe.toDataURL = Ze.bind(null, Rt.renderToDataURL);
3431
+ pe.toString = Ze.bind(null, function(t, e, r) {
3432
+ return cn.render(t, r);
3398
3433
  });
3399
- var ln = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, S = (t, e, r, n) => {
3400
- for (var i = n > 1 ? void 0 : n ? dn(e, r) : e, o = t.length - 1, s; o >= 0; o--)
3434
+ var dn = Object.defineProperty, un = Object.getOwnPropertyDescriptor, S = (t, e, r, n) => {
3435
+ for (var i = n > 1 ? void 0 : n ? un(e, r) : e, o = t.length - 1, s; o >= 0; o--)
3401
3436
  (s = t[o]) && (i = (n ? s(e, r, i) : s(i)) || i);
3402
- return n && i && ln(e, r, i), i;
3437
+ return n && i && dn(e, r, i), i;
3403
3438
  };
3404
3439
  let w = class extends se {
3405
3440
  constructor() {
@@ -3556,10 +3591,18 @@ let w = class extends se {
3556
3591
  return t.length === 0 ? [] : t.filter((e) => {
3557
3592
  var r;
3558
3593
  return !((r = this.excludePaymentMethods) != null && r.includes(e.id));
3559
- }).map((e) => e.id === H.PAYNOW && this.getTransactionData().currency !== "SGD" ? {
3594
+ }).map((e) => e.id === A.PAYNOW && this.getTransactionData().currency !== "SGD" ? {
3560
3595
  id: e.id,
3561
3596
  enabled: !1,
3562
3597
  disabledReason: "PayNow is only available for SGD currency"
3598
+ } : e.id === A.PROMPTPAY && this.getTransactionData().currency !== "THB" ? {
3599
+ id: e.id,
3600
+ enabled: !1,
3601
+ disabledReason: "PromptPay is only available for THB currency"
3602
+ } : e.id === A.DUITNOW && this.getTransactionData().currency !== "MYR" ? {
3603
+ id: e.id,
3604
+ enabled: !1,
3605
+ disabledReason: "DuitNow is only available for MYR currency"
3563
3606
  } : {
3564
3607
  id: e.id,
3565
3608
  enabled: !0
@@ -3591,7 +3634,7 @@ let w = class extends se {
3591
3634
  );
3592
3635
  return;
3593
3636
  }
3594
- this.isInitialized || (this.isInitialized = !0, (t = this.sdk) == null || t.destroy(), this.sdk = new dr(this.config, this.adapters), this.sdk.subscribe((e) => {
3637
+ this.isInitialized || (this.isInitialized = !0, (t = this.sdk) == null || t.destroy(), this.sdk = new cr(this.config, this.adapters), this.sdk.subscribe((e) => {
3595
3638
  var r;
3596
3639
  ((r = this.previousState) == null ? void 0 : r.status) === "requires_action" && e.status !== "requires_action" && this.show3DSModal && (this.show3DSModal = !1, this.nextActionUrl = null, this.leaveEventsCounter = 0, this.sdk && this.sdk.resumePolling()), this.previousState = e, this.currentState = e, this.dispatchEvent(
3597
3640
  new CustomEvent("state-change", {
@@ -3649,6 +3692,18 @@ let w = class extends se {
3649
3692
  this.handleQRScanned();
3650
3693
  }, 1e4);
3651
3694
  }
3695
+ ), this.sdk.on(
3696
+ "promptpay_redirect",
3697
+ (e) => {
3698
+ const { redirectUrl: r } = e.payload;
3699
+ r && (window.location.href = r);
3700
+ }
3701
+ ), this.sdk.on(
3702
+ "duitnow_redirect",
3703
+ (e) => {
3704
+ const { redirectUrl: r } = e.payload;
3705
+ r && (window.location.href = r);
3706
+ }
3652
3707
  ), this.sdk.initialize({
3653
3708
  amount: this.amount,
3654
3709
  currency: this.currency,
@@ -3695,14 +3750,14 @@ let w = class extends se {
3695
3750
  const l = parseInt(o, 10);
3696
3751
  if (l < 1 || l > 12)
3697
3752
  return { valid: !1, error: "Invalid month (01-12)" };
3698
- const a = /* @__PURE__ */ new Date(), d = a.getFullYear(), c = a.getMonth() + 1;
3699
- let u;
3753
+ const a = /* @__PURE__ */ new Date(), c = a.getFullYear(), d = a.getMonth() + 1;
3754
+ let h;
3700
3755
  if (s.length === 2) {
3701
- const p = parseInt(s, 10), h = d % 100, m = Math.floor(d / 100) * 100;
3702
- p < h && h - p > 80 ? u = m + 100 + p : u = m + p;
3756
+ const p = parseInt(s, 10), u = c % 100, m = Math.floor(c / 100) * 100;
3757
+ p < u && u - p > 80 ? h = m + 100 + p : h = m + p;
3703
3758
  } else
3704
3759
  return { valid: !1, error: "Invalid year format" };
3705
- return u < d ? { valid: !1, error: "Card has expired" } : u === d && l < c ? { valid: !1, error: "Card has expired" } : { valid: !0 };
3760
+ return h < c ? { valid: !1, error: "Card has expired" } : h === c && l < d ? { valid: !1, error: "Card has expired" } : { valid: !0 };
3706
3761
  }
3707
3762
  validateCardForm() {
3708
3763
  const t = {};
@@ -3719,7 +3774,7 @@ let w = class extends se {
3719
3774
  return;
3720
3775
  this.paymentLocked = !0;
3721
3776
  const t = this.cardFormData.expiry.split("/"), e = (t[0] || "").trim(), n = `20${(t[1] || "").trim().substring(0, 2)}`;
3722
- this.sdk.submitPayment(H.CARD, {
3777
+ this.sdk.submitPayment(A.CARD, {
3723
3778
  cardNumber: this.cardFormData.cardNumber.replace(/\s/g, ""),
3724
3779
  expiryMonth: e,
3725
3780
  expiryYear: n,
@@ -3730,7 +3785,21 @@ let w = class extends se {
3730
3785
  });
3731
3786
  }
3732
3787
  handlePayNowPayment() {
3733
- !this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(H.PAYNOW, {
3788
+ !this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(A.PAYNOW, {
3789
+ firstName: this.firstName,
3790
+ lastName: this.lastName,
3791
+ email: this.email
3792
+ }));
3793
+ }
3794
+ handlePromptPayPayment() {
3795
+ !this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(A.PROMPTPAY, {
3796
+ firstName: this.firstName,
3797
+ lastName: this.lastName,
3798
+ email: this.email
3799
+ }));
3800
+ }
3801
+ handleDuitNowPayment() {
3802
+ !this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(A.DUITNOW, {
3734
3803
  firstName: this.firstName,
3735
3804
  lastName: this.lastName,
3736
3805
  email: this.email
@@ -3752,7 +3821,7 @@ let w = class extends se {
3752
3821
  },
3753
3822
  netAmount: this.amount
3754
3823
  };
3755
- const e = (a = t.fees) == null ? void 0 : a.find((d) => d.owner === "merchant"), r = () => e ? e.type === "percentage" ? `${e.value}%` : `${e.value} ${e.currency}` : "", n = typeof t.totalFee == "number" ? t.totalFee : Number(t.totalFee) || 0, i = typeof t.totalSystemFee == "number" ? t.totalSystemFee : Number(t.totalSystemFee) || 0, o = t.initialAmount != null ? typeof t.initialAmount == "number" ? t.initialAmount : Number(t.initialAmount) || 0 : this.amount, s = t.customerAmount != null ? typeof t.customerAmount == "number" ? t.customerAmount : Number(t.customerAmount) || 0 : o, l = n - i;
3824
+ const e = (a = t.fees) == null ? void 0 : a.find((c) => c.owner === "merchant"), r = () => e ? e.type === "percentage" ? `${e.value}%` : `${e.value} ${e.currency}` : "", n = typeof t.totalFee == "number" ? t.totalFee : Number(t.totalFee) || 0, i = typeof t.totalSystemFee == "number" ? t.totalSystemFee : Number(t.totalSystemFee) || 0, o = t.initialAmount != null ? typeof t.initialAmount == "number" ? t.initialAmount : Number(t.initialAmount) || 0 : this.amount, s = t.customerAmount != null ? typeof t.customerAmount == "number" ? t.customerAmount : Number(t.customerAmount) || 0 : o, l = n - i;
3756
3825
  return {
3757
3826
  currency: t.currency || this.currency,
3758
3827
  charge: o,
@@ -3766,7 +3835,7 @@ let w = class extends se {
3766
3835
  };
3767
3836
  }
3768
3837
  renderTransactionDetailsSkeleton() {
3769
- return P`
3838
+ return C`
3770
3839
  <div class="skeleton-transaction">
3771
3840
  <div class="skeleton skeleton-title"></div>
3772
3841
  <div class="skeleton-row">
@@ -3790,7 +3859,7 @@ let w = class extends se {
3790
3859
  `;
3791
3860
  }
3792
3861
  renderPaymentMethodsSkeleton() {
3793
- return P`
3862
+ return C`
3794
3863
  <div>
3795
3864
  <div class="skeleton-method">
3796
3865
  <div class="skeleton skeleton-radio"></div>
@@ -3810,7 +3879,7 @@ let w = class extends se {
3810
3879
  this.width ? `--one-payment-width: ${this.width}` : "",
3811
3880
  this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
3812
3881
  ].filter(Boolean).join("; ");
3813
- return P`
3882
+ return C`
3814
3883
  <div class="payment-element" style="${t}">
3815
3884
  ${this.renderTransactionDetailsSkeleton()}
3816
3885
  <div class="header">Select a payment method</div>
@@ -3820,7 +3889,7 @@ let w = class extends se {
3820
3889
  }
3821
3890
  renderTransactionDetails() {
3822
3891
  const t = this.getTransactionData(), e = (r) => r.toFixed(2);
3823
- return P`
3892
+ return C`
3824
3893
  <div class="transaction-details">
3825
3894
  <h2 class="transaction-title">Transaction details</h2>
3826
3895
 
@@ -3855,7 +3924,7 @@ let w = class extends se {
3855
3924
  margin-top: ${this.feesExpanded ? "0.625rem" : "0"};
3856
3925
  `}
3857
3926
  >
3858
- ${t.feeBreakdown ? P`
3927
+ ${t.feeBreakdown ? C`
3859
3928
  <div class="fee-breakdown-inner">
3860
3929
  <div class="breakdown-row">
3861
3930
  <span class="breakdown-label">Transaction fee:</span>
@@ -3889,7 +3958,7 @@ let w = class extends se {
3889
3958
  renderCardForm() {
3890
3959
  setTimeout(() => this.setupCleave(), 0);
3891
3960
  const t = this.cardBrand === "amex" ? 4 : 3, e = this.cardBrand === "amex" ? "1234" : "123";
3892
- return P`
3961
+ return C`
3893
3962
  <div class="card-form">
3894
3963
  <h4 class="form-title">Card Information</h4>
3895
3964
  <div class="form-fields">
@@ -3904,7 +3973,7 @@ let w = class extends se {
3904
3973
  .value=${this.cardFormData.cardNumber}
3905
3974
  @input=${(r) => this.handleInputChange("cardNumber", r.target.value)}
3906
3975
  />
3907
- ${this.formErrors.cardNumber ? P`<div class="error-message">${this.formErrors.cardNumber}</div>` : ""}
3976
+ ${this.formErrors.cardNumber ? C`<div class="error-message">${this.formErrors.cardNumber}</div>` : ""}
3908
3977
  </div>
3909
3978
 
3910
3979
  <!-- Single Expiry Field -->
@@ -3923,7 +3992,7 @@ let w = class extends se {
3923
3992
  }, 0);
3924
3993
  }}
3925
3994
  />
3926
- ${this.formErrors.expiry ? P`<div class="error-message">${this.formErrors.expiry}</div>` : ""}
3995
+ ${this.formErrors.expiry ? C`<div class="error-message">${this.formErrors.expiry}</div>` : ""}
3927
3996
  </div>
3928
3997
 
3929
3998
  <!-- CVV -->
@@ -3940,7 +4009,7 @@ let w = class extends se {
3940
4009
  r.target.value = n, this.handleInputChange("cvv", n);
3941
4010
  }}
3942
4011
  />
3943
- ${this.formErrors.cvv ? P`<div class="error-message">${this.formErrors.cvv}</div>` : ""}
4012
+ ${this.formErrors.cvv ? C`<div class="error-message">${this.formErrors.cvv}</div>` : ""}
3944
4013
  </div>
3945
4014
 
3946
4015
  <!-- Cardholder Name -->
@@ -3956,7 +4025,7 @@ let w = class extends se {
3956
4025
  r.target.value = n, this.handleInputChange("cardholderName", n);
3957
4026
  }}
3958
4027
  />
3959
- ${this.formErrors.cardholderName ? P`<div class="error-message">${this.formErrors.cardholderName}</div>` : ""}
4028
+ ${this.formErrors.cardholderName ? C`<div class="error-message">${this.formErrors.cardholderName}</div>` : ""}
3960
4029
  </div>
3961
4030
  </div>
3962
4031
 
@@ -3973,7 +4042,7 @@ let w = class extends se {
3973
4042
  `;
3974
4043
  }
3975
4044
  renderPayNowContent() {
3976
- return this.showQRModal && this.qrCodeDataUrl ? P`
4045
+ return this.showQRModal && this.qrCodeDataUrl ? C`
3977
4046
  <div class="paynow-container">
3978
4047
  <!-- Render generated QR code image -->
3979
4048
  <div class="qr-code-wrapper">
@@ -3990,7 +4059,7 @@ let w = class extends se {
3990
4059
  ${this.qrPollingInProgress ? "Verifying..." : "I Have Scanned the QR Code"}
3991
4060
  </button>
3992
4061
  </div>
3993
- ` : P`
4062
+ ` : C`
3994
4063
  <div class="paynow-container">
3995
4064
  <div class="paynow-instructions">
3996
4065
  <h3 class="instructions-title">How to Pay by QR:</h3>
@@ -4020,8 +4089,80 @@ let w = class extends se {
4020
4089
  </div>
4021
4090
  `;
4022
4091
  }
4092
+ renderPromptPayContent() {
4093
+ return C`
4094
+ <div class="paynow-container">
4095
+ <div class="paynow-instructions">
4096
+ <h3 class="instructions-title">How to Pay with PromptPay:</h3>
4097
+
4098
+ <div class="instruction-steps">
4099
+ <div class="instruction-step">
4100
+ <div class="step-number">1</div>
4101
+ <p class="step-text">Click <strong>"Pay"</strong> to go to the payment page.</p>
4102
+ </div>
4103
+
4104
+ <div class="instruction-step">
4105
+ <div class="step-number">2</div>
4106
+ <p class="step-text">Scan the QR code with your banking app.</p>
4107
+ </div>
4108
+
4109
+ <div class="instruction-step">
4110
+ <div class="step-number">3</div>
4111
+ <p class="step-text">You'll be redirected back automatically.</p>
4112
+ </div>
4113
+ </div>
4114
+
4115
+ <div class="submit-section">
4116
+ <button
4117
+ class="pay-button ${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "loading" : ""}"
4118
+ @click=${this.handlePromptPayPayment}
4119
+ ?disabled=${this.currentState.status === "processing" || this.currentState.status === "requires_action"}
4120
+ >
4121
+ ${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "Redirecting..." : `Pay ${this.currency} ${this.amount.toFixed(2)}`}
4122
+ </button>
4123
+ </div>
4124
+ </div>
4125
+ </div>
4126
+ `;
4127
+ }
4128
+ renderDuitNowContent() {
4129
+ return C`
4130
+ <div class="paynow-container">
4131
+ <div class="paynow-instructions">
4132
+ <h3 class="instructions-title">How to Pay with DuitNow:</h3>
4133
+
4134
+ <div class="instruction-steps">
4135
+ <div class="instruction-step">
4136
+ <div class="step-number">1</div>
4137
+ <p class="step-text">Click <strong>"Pay"</strong> to go to the payment page.</p>
4138
+ </div>
4139
+
4140
+ <div class="instruction-step">
4141
+ <div class="step-number">2</div>
4142
+ <p class="step-text">Scan the QR code with your banking app.</p>
4143
+ </div>
4144
+
4145
+ <div class="instruction-step">
4146
+ <div class="step-number">3</div>
4147
+ <p class="step-text">You'll be redirected back automatically.</p>
4148
+ </div>
4149
+ </div>
4150
+
4151
+ <div class="submit-section">
4152
+ <button
4153
+ class="pay-button ${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "loading" : ""}"
4154
+ @click=${this.handleDuitNowPayment}
4155
+ ?disabled=${this.currentState.status === "processing" || this.currentState.status === "requires_action"}
4156
+ >
4157
+ ${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "Redirecting..." : `Pay ${this.currency} ${this.amount.toFixed(2)}`}
4158
+ </button>
4159
+ </div>
4160
+ </div>
4161
+ </div>
4162
+ `;
4163
+ }
4023
4164
  render3DSModal() {
4024
- return !this.show3DSModal || !this.nextActionUrl ? null : P`
4165
+ return !this.show3DSModal || !this.nextActionUrl ? null : C`
4025
4166
  <div class="modal-overlay">
4026
4167
  <div class="modal-content iframe-modal">
4027
4168
  <iframe
@@ -4036,7 +4177,7 @@ let w = class extends se {
4036
4177
  }
4037
4178
  renderStatusBlock() {
4038
4179
  if (this.currentState.status === "succeeded")
4039
- return P`
4180
+ return C`
4040
4181
  <div class="result-card success">
4041
4182
  <div class="result-icon-wrapper">
4042
4183
  <div class="result-icon">✓</div>
@@ -4050,7 +4191,7 @@ let w = class extends se {
4050
4191
  `;
4051
4192
  if (this.currentState.status === "failed") {
4052
4193
  const t = this.currentState.error ? this.currentState.error.message : "An error occurred while processing your payment";
4053
- return P`
4194
+ return C`
4054
4195
  <div class="result-card error">
4055
4196
  <div class="result-icon-wrapper">
4056
4197
  <div class="result-icon">✕</div>
@@ -4076,7 +4217,20 @@ let w = class extends se {
4076
4217
  l && this.selectedMethod !== l.id && (this.selectedMethod = l.id);
4077
4218
  }
4078
4219
  }
4079
- const n = (s) => s === H.CARD ? "Card" : "PayNow", i = (s) => s === H.CARD ? P`
4220
+ const n = (s) => {
4221
+ switch (s) {
4222
+ case A.CARD:
4223
+ return "Card";
4224
+ case A.PAYNOW:
4225
+ return "PayNow";
4226
+ case A.PROMPTPAY:
4227
+ return "PromptPay";
4228
+ case A.DUITNOW:
4229
+ return "DuitNow";
4230
+ default:
4231
+ return s;
4232
+ }
4233
+ }, i = (s) => s === A.CARD ? C`
4080
4234
  <div class="method-icon-right">
4081
4235
  <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
4082
4236
  <path
@@ -4089,26 +4243,34 @@ let w = class extends se {
4089
4243
  />
4090
4244
  </svg>
4091
4245
  </div>
4092
- ` : s === H.PAYNOW ? P`
4246
+ ` : s === A.PAYNOW ? C`
4093
4247
  <div class="method-icon-right">
4094
- <img src="${cr}" alt="PayNow" />
4248
+ <img src="${dr}" alt="PayNow" style="width: 45px; height: auto;" />
4249
+ </div>
4250
+ ` : s === A.PROMPTPAY ? C`
4251
+ <div class="method-icon-right">
4252
+ <img src="${ur}" alt="PromptPay" style="width: 45px; height: auto;" />
4253
+ </div>
4254
+ ` : s === A.DUITNOW ? C`
4255
+ <div class="method-icon-right">
4256
+ <img src="${hr}" alt="DuitNow" style="width: 45px; height: auto;" />
4095
4257
  </div>
4096
4258
  ` : null, o = [
4097
4259
  this.width ? `--one-payment-width: ${this.width}` : "",
4098
4260
  this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
4099
4261
  ].filter(Boolean).join("; ");
4100
- return P`
4262
+ return C`
4101
4263
  <div class="payment-element" style="${o}">
4102
4264
  ${this.renderTransactionDetails()}
4103
- ${e ? P`
4265
+ ${e ? C`
4104
4266
  <div class="header">Select a payment method</div>
4105
4267
  <div class="payment-methods-list">
4106
4268
  ${r.map((s) => {
4107
4269
  const l = this.selectedMethod === s.id, a = !s.enabled || this.paymentLocked && !l;
4108
- return P`
4270
+ return C`
4109
4271
  <div
4110
4272
  class="payment-method-item"
4111
- ${s.disabledReason ? P`data-tooltip="${s.disabledReason}"` : ""}
4273
+ ${s.disabledReason ? C`data-tooltip="${s.disabledReason}"` : ""}
4112
4274
  >
4113
4275
  <div
4114
4276
  class="method-header ${l ? "selected" : ""} ${a ? "disabled" : ""}"
@@ -4120,13 +4282,13 @@ let w = class extends se {
4120
4282
  name="payment-method"
4121
4283
  .checked=${l}
4122
4284
  ?disabled=${a}
4123
- @click=${(d) => d.stopPropagation()}
4285
+ @click=${(c) => c.stopPropagation()}
4124
4286
  />
4125
4287
  <span class="method-name">${n(s.id)}</span>
4126
4288
  ${i(s.id)}
4127
4289
  </div>
4128
- ${l ? P`<div class="method-content">
4129
- ${s.id === H.CARD ? this.renderCardForm() : this.renderPayNowContent()}
4290
+ ${l ? C`<div class="method-content">
4291
+ ${s.id === A.CARD ? this.renderCardForm() : s.id === A.PAYNOW ? this.renderPayNowContent() : s.id === A.PROMPTPAY ? this.renderPromptPayContent() : s.id === A.DUITNOW ? this.renderDuitNowContent() : null}
4130
4292
  </div>` : ""}
4131
4293
  </div>
4132
4294
  `;
@@ -4140,7 +4302,7 @@ let w = class extends se {
4140
4302
  `;
4141
4303
  }
4142
4304
  };
4143
- w.styles = Ut`
4305
+ w.styles = Bt`
4144
4306
  /* ═══════════════════════════════════════════════════════════════
4145
4307
  CSS CUSTOM PROPERTIES (Theming)
4146
4308
  ═══════════════════════════════════════════════════════════════ */
@@ -5463,40 +5625,40 @@ w.styles = Ut`
5463
5625
  }
5464
5626
  `;
5465
5627
  S([
5466
- T({ type: Object })
5628
+ D({ type: Object })
5467
5629
  ], w.prototype, "config", 2);
5468
5630
  S([
5469
- T({ type: Object })
5631
+ D({ type: Object })
5470
5632
  ], w.prototype, "adapters", 2);
5471
5633
  S([
5472
- T({ type: Number })
5634
+ D({ type: Number })
5473
5635
  ], w.prototype, "amount", 2);
5474
5636
  S([
5475
- T({ type: String })
5637
+ D({ type: String })
5476
5638
  ], w.prototype, "currency", 2);
5477
5639
  S([
5478
- T({ type: String })
5640
+ D({ type: String })
5479
5641
  ], w.prototype, "orderId", 2);
5480
5642
  S([
5481
- T({ type: String })
5643
+ D({ type: String })
5482
5644
  ], w.prototype, "firstName", 2);
5483
5645
  S([
5484
- T({ type: String })
5646
+ D({ type: String })
5485
5647
  ], w.prototype, "lastName", 2);
5486
5648
  S([
5487
- T({ type: String })
5649
+ D({ type: String })
5488
5650
  ], w.prototype, "email", 2);
5489
5651
  S([
5490
- T({ type: Array })
5652
+ D({ type: Array })
5491
5653
  ], w.prototype, "excludePaymentMethods", 2);
5492
5654
  S([
5493
- T({ type: String })
5655
+ D({ type: String })
5494
5656
  ], w.prototype, "width", 2);
5495
5657
  S([
5496
- T({ type: String })
5658
+ D({ type: String })
5497
5659
  ], w.prototype, "maxWidth", 2);
5498
5660
  S([
5499
- T({ type: Object })
5661
+ D({ type: Object })
5500
5662
  ], w.prototype, "appearance", 2);
5501
5663
  S([
5502
5664
  M()
@@ -5549,7 +5711,19 @@ S([
5549
5711
  w = S([
5550
5712
  rr("one-payment")
5551
5713
  ], w);
5714
+ const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5715
+ __proto__: null,
5716
+ get OnePayment() {
5717
+ return w;
5718
+ }
5719
+ }, Symbol.toStringTag, { value: "Module" }));
5720
+ function fn() {
5721
+ customElements.get("one-payment") || Promise.resolve().then(() => hn).then(({ OnePayment: t }) => {
5722
+ customElements.define("one-payment", t);
5723
+ });
5724
+ }
5552
5725
  export {
5553
5726
  w as OnePayment,
5554
- w as OnePaymentElement
5727
+ w as OnePaymentElement,
5728
+ fn as defineCustomElements
5555
5729
  };