@astropay/payments-lib 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var Da = Object.defineProperty;
2
2
  var Ma = (ee, re, te) => re in ee ? Da(ee, re, { enumerable: !0, configurable: !0, writable: !0, value: te }) : ee[re] = te;
3
- var Le = (ee, re, te) => Ma(ee, typeof re != "symbol" ? re + "" : re, te);
3
+ var ke = (ee, re, te) => Ma(ee, typeof re != "symbol" ? re + "" : re, te);
4
4
  const FONT_SIZES = {
5
5
  xxsm: 10,
6
6
  xsm: 12,
@@ -612,11 +612,11 @@ const toCamelCase$1 = (ee) => ee.toLowerCase().replace(
612
612
  }
613
613
  // #endregion
614
614
  };
615
- Le(Li, "currentTheme", "light"), Le(Li, "styles", LIGHT_THEME);
615
+ ke(Li, "currentTheme", "light"), ke(Li, "styles", LIGHT_THEME);
616
616
  let ThemeManager = Li;
617
617
  class Component {
618
618
  constructor({ tag: re, elementId: te, styles: ne }) {
619
- Le(this, "element");
619
+ ke(this, "element");
620
620
  if (this.element = document.createElement(re), te && this.element.setAttribute("id", te), ne) {
621
621
  const ie = ThemeManager.getStyles(), oe = ne(ie);
622
622
  this.element.className = oe;
@@ -3034,11 +3034,11 @@ instance.setDefaultNamespace;
3034
3034
  instance.hasLoadedNamespace;
3035
3035
  instance.loadNamespaces;
3036
3036
  instance.loadLanguages;
3037
- const translation$2 = { additional_information: "Additional information", almost_done: "Almost done...", astro_express_checkout: "Express checkout", checkout_method: "Checkout method", or: "OR", email: "E-mail", enter_country_code: "Please enter a country or code", enter_your_email: "Enter your e-mail", enter_your_document_number: "Enter your document number", enter_your_document_type: "Select a document type", enter_your_first_name: "Enter your first name", enter_your_last_name: "Enter your last name", enter_your_phone: "Enter your phone number", continue: "Continue", copied: "Copied!", copy_payment_link: "Copy payment link", document_number: "Document number", document_type: "Document type", do_not_close_window: "Please do not close this window.", didnt_receive: "Didn't receive it?", first_name: "First name", generic_error: "An error occurred. Please try again.", hold_on: "Hold on!", invalid_field: "Invalid field", last_name: "Last name", loading_wait: "Loading, please wait...", pay_amount: "Pay {{amount}}", payment_amount: "Payment amount", push_notification_sent: "We sent a push notification to your app", qr_code: "QR code", required_field: "Required Field", scan_qr_copy_link: "Scan the QR code or copy the link.", select: "Select", select_item: "Select an item", time_up: "Time's up!", try_again: "Try again", waiting_confirmation: "Waiting for confirmation...", card_holder_label: "Cardholder name", card_holder_placeholder: "Full name as on card", card_number: "Card number", card_exp_date: "Expiration date", card_tokenization_error: "We couldn't process your card. Please check your details and try again." }, en$1 = {
3037
+ const translation$2 = { additional_information: "Additional information", almost_done: "Almost done...", already_paid: "Already paid?", astro_express_checkout: "Express checkout", check_payment_status: "Check payment status", checkout_method: "Checkout method", or: "OR", email: "E-mail", enter_country_code: "Please enter a country or code", enter_your_email: "Enter your e-mail", enter_your_document_number: "Enter your document number", enter_your_document_type: "Select a document type", enter_your_first_name: "Enter your first name", enter_your_last_name: "Enter your last name", enter_your_phone: "Enter your phone number", continue: "Continue", copied: "Copied!", copy_payment_link: "Copy payment link", document_number: "Document number", document_type: "Document type", do_not_close_window: "Please do not close this window.", didnt_receive: "Didn't receive it?", first_name: "First name", generic_error: "An error occurred. Please try again.", hold_on: "Hold on!", invalid_field: "Invalid field", last_name: "Last name", loading_wait: "Loading, please wait...", pay_amount: "Pay {{amount}}", payment_amount: "Payment amount", push_notification_sent: "We sent a push notification to your app", qr_code: "QR code", required_field: "Required Field", scan_qr_copy_link: "Scan the QR code or copy the link.", select: "Select", select_item: "Select an item", time_up: "Time's up!", try_again: "Try again", waiting_confirmation: "Waiting for confirmation...", card_holder_label: "Cardholder name", card_holder_placeholder: "Full name as on card", card_number: "Card number", card_exp_date: "Expiration date", card_tokenization_error: "We couldn't process your card. Please check your details and try again." }, en$1 = {
3038
3038
  translation: translation$2
3039
- }, translation$1 = { additional_information: "Información adicional", almost_done: "Casi listo...", astro_express_checkout: "Pago express", checkout_method: "Método de pago", or: "O", email: "Correo electrónico", enter_country_code: "Introduce el país o código del país", enter_your_email: "Ingrese su correo electrónico", enter_your_document_number: "Ingrese su número de documento", enter_your_document_type: "Seleccione un tipo de documento", enter_your_first_name: "Ingrese su nombre", enter_your_last_name: "Ingrese su apellido", enter_your_phone: "Introduzca su número de teléfono", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar enlace de pago", document_number: "Número de documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, no cierres esta ventana.", didnt_receive: "No lo recibiste?", first_name: "Nombre", generic_error: "Ocurrió un error. Por favor, inténtelo de nuevo.", hold_on: "¡Un instante...!", invalid_field: "Campo inválido", last_name: "Apellido", loading_wait: "Cargando, aguantá un toque...", pay_amount: "Pagar {{amount}}", payment_amount: "Monto a pagar", push_notification_sent: "Enviamos una notificación push a tu app", qr_code: "código QR", required_field: "Campo Requerido", scan_qr_copy_link: "Escaneá el código QR o copiá el enlace.", select: "Seleccionar", select_item: "Selecciona una opción", time_up: "Se acabó el tiempo!", try_again: "Inténtalo de nuevo", waiting_confirmation: "Esperando confirmación...", card_holder_label: "Nombre del titular", card_holder_placeholder: "Nombre completo en la tarjeta", card_number: "Número de tarjeta", card_exp_date: "Fecha de vencimiento", card_tokenization_error: "No pudimos procesar tu tarjeta. Verificá los datos y volvé a intentarlo." }, es = {
3039
+ }, translation$1 = { additional_information: "Información adicional", almost_done: "Casi listo...", already_paid: "Ya pagaste?", astro_express_checkout: "Pago express", check_payment_status: "Ver estado del pago", checkout_method: "Método de pago", or: "O", email: "Correo electrónico", enter_country_code: "Introduce el país o código del país", enter_your_email: "Ingrese su correo electrónico", enter_your_document_number: "Ingrese su número de documento", enter_your_document_type: "Seleccione un tipo de documento", enter_your_first_name: "Ingrese su nombre", enter_your_last_name: "Ingrese su apellido", enter_your_phone: "Introduzca su número de teléfono", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar enlace de pago", document_number: "Número de documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, no cierres esta ventana.", didnt_receive: "No lo recibiste?", first_name: "Nombre", generic_error: "Ocurrió un error. Por favor, inténtelo de nuevo.", hold_on: "¡Un instante...!", invalid_field: "Campo inválido", last_name: "Apellido", loading_wait: "Cargando, aguantá un toque...", pay_amount: "Pagar {{amount}}", payment_amount: "Monto a pagar", push_notification_sent: "Enviamos una notificación push a tu app", qr_code: "código QR", required_field: "Campo Requerido", scan_qr_copy_link: "Escaneá el código QR o copiá el enlace.", select: "Seleccionar", select_item: "Selecciona una opción", time_up: "Se acabó el tiempo!", try_again: "Inténtalo de nuevo", waiting_confirmation: "Esperando confirmación...", card_holder_label: "Nombre del titular", card_holder_placeholder: "Nombre completo en la tarjeta", card_number: "Número de tarjeta", card_exp_date: "Fecha de vencimiento", card_tokenization_error: "No pudimos procesar tu tarjeta. Verificá los datos y volvé a intentarlo." }, es = {
3040
3040
  translation: translation$1
3041
- }, translation = { additional_information: "Informações adicionais", almost_done: "Finalizando...", astro_express_checkout: "Pagamento expresso", checkout_method: "Método de pagamento", or: "OU", email: "E-mail", enter_country_code: "Informe um país ou código", enter_your_email: "Digite seu e-mail", enter_your_document_number: "Digite seu número de documento", enter_your_document_type: "Selecione um tipo de documento", enter_your_first_name: "Digite seu primeiro nome", enter_your_last_name: "Digite seu sobrenome", enter_your_phone: "Digite seu número de telefone", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar link de pagamento", document_number: "Número do documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, não feche esta janela.", didnt_receive: "Não recebeu?", first_name: "Primeiro nome", generic_error: "Ocorreu um erro. Por favor, tente novamente.", hold_on: "Só um instante!", invalid_field: "Campo inválido", last_name: "Sobrenome", loading_wait: "Carregando, por favor aguarde...", pay_amount: "Pagar {{amount}}", payment_amount: "Valor do pagamento", push_notification_sent: "Enviamos uma notificação push para seu app", qr_code: "QR code", required_field: "Campo Obrigatório", scan_qr_copy_link: "Escaneie o QR code ou copie o link.", select: "Selecione", select_item: "Selecione um item", time_up: "Tempo esgotado!", try_again: "Tente novamente", waiting_confirmation: "Aguardando confirmação...", card_holder_label: "Nome do titular", card_holder_placeholder: "Nome completo no cartão", card_number: "Número do cartão", card_exp_date: "Data de validade", card_tokenization_error: "Não foi possível processar o seu cartão. Verifique os dados e tente novamente." }, pt$1 = {
3041
+ }, translation = { additional_information: "Informações adicionais", almost_done: "Finalizando...", already_paid: "Já pagou?", astro_express_checkout: "Pagamento expresso", check_payment_status: "Verificar status do pagamento", checkout_method: "Método de pagamento", or: "OU", email: "E-mail", enter_country_code: "Informe um país ou código", enter_your_email: "Digite seu e-mail", enter_your_document_number: "Digite seu número de documento", enter_your_document_type: "Selecione um tipo de documento", enter_your_first_name: "Digite seu primeiro nome", enter_your_last_name: "Digite seu sobrenome", enter_your_phone: "Digite seu número de telefone", continue: "Continuar", copied: "Copiado!", copy_payment_link: "Copiar link de pagamento", document_number: "Número do documento", document_type: "Tipo de documento", do_not_close_window: "Por favor, não feche esta janela.", didnt_receive: "Não recebeu?", first_name: "Primeiro nome", generic_error: "Ocorreu um erro. Por favor, tente novamente.", hold_on: "Só um instante!", invalid_field: "Campo inválido", last_name: "Sobrenome", loading_wait: "Carregando, por favor aguarde...", pay_amount: "Pagar {{amount}}", payment_amount: "Valor do pagamento", push_notification_sent: "Enviamos uma notificação push para seu app", qr_code: "QR code", required_field: "Campo Obrigatório", scan_qr_copy_link: "Escaneie o QR code ou copie o link.", select: "Selecione", select_item: "Selecione um item", time_up: "Tempo esgotado!", try_again: "Tente novamente", waiting_confirmation: "Aguardando confirmação...", card_holder_label: "Nome do titular", card_holder_placeholder: "Nome completo no cartão", card_number: "Número do cartão", card_exp_date: "Data de validade", card_tokenization_error: "Não foi possível processar o seu cartão. Verifique os dados e tente novamente." }, pt$1 = {
3042
3042
  translation
3043
3043
  }, LOCAL_TRANSLATIONS = {
3044
3044
  en: en$1,
@@ -5124,16 +5124,16 @@ class Button extends Component {
5124
5124
  tag: "button",
5125
5125
  styles: (pe) => getButtonStyles(pe, he)
5126
5126
  });
5127
- Le(this, "isLoading");
5128
- Le(this, "isDisabled");
5129
- Le(this, "iconLeft");
5130
- Le(this, "iconRight");
5131
- Le(this, "originalText");
5132
- Le(this, "originalIconLeft");
5133
- Le(this, "originalIconRight");
5134
- Le(this, "variant");
5135
- Le(this, "copyText");
5136
- Le(this, "onClick");
5127
+ ke(this, "isLoading");
5128
+ ke(this, "isDisabled");
5129
+ ke(this, "iconLeft");
5130
+ ke(this, "iconRight");
5131
+ ke(this, "originalText");
5132
+ ke(this, "originalIconLeft");
5133
+ ke(this, "originalIconRight");
5134
+ ke(this, "variant");
5135
+ ke(this, "copyText");
5136
+ ke(this, "onClick");
5137
5137
  this.isLoading = ae, this.isDisabled = ue, this.onClick = le, this.copyText = de, this.element.disabled = ue, this.originalText = te, this.originalIconLeft = oe, this.originalIconRight = se, this.variant = ie, this.updateContent({
5138
5138
  text: te,
5139
5139
  iconLeft: oe,
@@ -5372,27 +5372,27 @@ class InputSelect extends Component {
5372
5372
  tag: "div",
5373
5373
  styles: (ge) => getSelectStyles(ge, { error: ue, disabled: ce, maxWidth: le })
5374
5374
  });
5375
- Le(this, "selectContainer");
5376
- Le(this, "inputElement");
5377
- Le(this, "dropdownIcon");
5378
- Le(this, "optionsList");
5379
- Le(this, "helperTextElement", null);
5380
- Le(this, "labelElement", null);
5381
- Le(this, "isOpen", !1);
5382
- Le(this, "filteredOptions", []);
5383
- Le(this, "selectedValue", null);
5384
- Le(this, "highlightedIndex", -1);
5385
- Le(this, "currentErrorState");
5386
- Le(this, "currentDisabledState");
5387
- Le(this, "currentHelperText");
5388
- Le(this, "name");
5389
- Le(this, "label");
5390
- Le(this, "options");
5391
- Le(this, "emptyMessage");
5392
- Le(this, "showValue");
5393
- Le(this, "validateOn");
5394
- Le(this, "maxWidth");
5395
- Le(this, "onChange");
5375
+ ke(this, "selectContainer");
5376
+ ke(this, "inputElement");
5377
+ ke(this, "dropdownIcon");
5378
+ ke(this, "optionsList");
5379
+ ke(this, "helperTextElement", null);
5380
+ ke(this, "labelElement", null);
5381
+ ke(this, "isOpen", !1);
5382
+ ke(this, "filteredOptions", []);
5383
+ ke(this, "selectedValue", null);
5384
+ ke(this, "highlightedIndex", -1);
5385
+ ke(this, "currentErrorState");
5386
+ ke(this, "currentDisabledState");
5387
+ ke(this, "currentHelperText");
5388
+ ke(this, "name");
5389
+ ke(this, "label");
5390
+ ke(this, "options");
5391
+ ke(this, "emptyMessage");
5392
+ ke(this, "showValue");
5393
+ ke(this, "validateOn");
5394
+ ke(this, "maxWidth");
5395
+ ke(this, "onChange");
5396
5396
  this.name = te, this.label = ne, this.options = ie, this.emptyMessage = ae, this.showValue = de, this.currentErrorState = ue, this.currentDisabledState = ce, this.currentHelperText = oe, this.validateOn = fe, this.maxWidth = le, this.onChange = he, ne && this.renderLabel(), this.selectContainer = document.createElement("div"), this.selectContainer.classList.add("select-input-container"), this.element.append(this.selectContainer), this.inputElement = document.createElement("input"), this.inputElement.classList.add("select-input-field"), this.inputElement.name = te, this.inputElement.id = te, this.inputElement.autocomplete = "off", this.inputElement.disabled = ce, se && (this.inputElement.placeholder = se), this.selectContainer.append(this.inputElement), this.dropdownIcon = document.createElement("span"), this.dropdownIcon.classList.add("dropdown-icon-wrapper");
5397
5397
  const pe = new Icon({ name: "arrow_down_line", size: 24 }).element;
5398
5398
  this.dropdownIcon.appendChild(pe), this.selectContainer.appendChild(this.dropdownIcon), this.optionsList = document.createElement("ul"), this.optionsList.classList.add("select-options-list"), this.selectContainer.append(this.optionsList), this.renderOptions(ie), this.selectContainer.addEventListener("click", (ge) => {
@@ -5654,19 +5654,19 @@ class InputText extends Component {
5654
5654
  tag: "div",
5655
5655
  styles: (me) => getInputTextStyles(me, { error: ae, disabled: ue })
5656
5656
  });
5657
- Le(this, "inputElement");
5658
- Le(this, "helperTextElement", null);
5659
- Le(this, "labelElement", null);
5660
- Le(this, "currentErrorState");
5661
- Le(this, "currentDisabledState");
5662
- Le(this, "name");
5663
- Le(this, "label");
5664
- Le(this, "currentHelperText");
5665
- Le(this, "validationRegex");
5666
- Le(this, "validateOn");
5667
- Le(this, "mask");
5668
- Le(this, "onChange");
5669
- Le(this, "onBlur");
5657
+ ke(this, "inputElement");
5658
+ ke(this, "helperTextElement", null);
5659
+ ke(this, "labelElement", null);
5660
+ ke(this, "currentErrorState");
5661
+ ke(this, "currentDisabledState");
5662
+ ke(this, "name");
5663
+ ke(this, "label");
5664
+ ke(this, "currentHelperText");
5665
+ ke(this, "validationRegex");
5666
+ ke(this, "validateOn");
5667
+ ke(this, "mask");
5668
+ ke(this, "onChange");
5669
+ ke(this, "onBlur");
5670
5670
  this.currentErrorState = ae, this.currentDisabledState = ue, this.name = te, this.label = ne, this.currentHelperText = ie, this.validateOn = le, this.validationRegex = ce, this.mask = de, this.onChange = pe, this.onBlur = ge, ne && this.renderLabel(), this.inputElement = document.createElement("input"), this.inputElement.type = oe === "number" ? "number" : "text", this.inputElement.inputMode = oe, this.inputElement.name = te, this.inputElement.id = te, this.inputElement.autocomplete = "off", this.inputElement.disabled = ue, se && (this.inputElement.placeholder = se), fe && (this.inputElement.maxLength = fe), he && (this.inputElement.minLength = he), this.inputElement.classList.add("input-field"), this.element.append(this.inputElement), ["number", "tel"].includes(oe) && this.inputElement.addEventListener("input", this.handleNumericInput.bind(this)), this.inputElement.addEventListener("input", this.handleInputChange.bind(this)), this.inputElement.addEventListener("blur", this.handleInputBlur.bind(this)), ie && this.renderHelperText(ie);
5671
5671
  }
5672
5672
  // #region Private
@@ -5776,10 +5776,10 @@ class FormTemplate extends Component {
5776
5776
  tag: "div",
5777
5777
  styles: () => getFormTemplateStyles()
5778
5778
  });
5779
- Le(this, "componentProps");
5780
- Le(this, "dynamicInputs", {});
5779
+ ke(this, "componentProps");
5780
+ ke(this, "dynamicInputs", {});
5781
5781
  // eslint-disable-next-line @typescript-eslint/no-empty-function
5782
- Le(this, "onValidationChange", () => {
5782
+ ke(this, "onValidationChange", () => {
5783
5783
  });
5784
5784
  if (this.componentProps = te, te.title) {
5785
5785
  const ne = new Typography({
@@ -5866,7 +5866,7 @@ class FormTemplate extends Component {
5866
5866
  const RUNTIME_CONFIG = {
5867
5867
  test: {
5868
5868
  NAME: "@astropay/payments-lib",
5869
- VERSION: "2.0.3",
5869
+ VERSION: "2.0.4",
5870
5870
  MODE: "test",
5871
5871
  API_BASE_URL: "https://partners-api-tst.astropay.com/api",
5872
5872
  RESOURCES_BUCKET: "https://rs-tst.astropay.com",
@@ -5876,7 +5876,7 @@ const RUNTIME_CONFIG = {
5876
5876
  },
5877
5877
  sandbox: {
5878
5878
  NAME: "@astropay/payments-lib",
5879
- VERSION: "2.0.3",
5879
+ VERSION: "2.0.4",
5880
5880
  MODE: "staging",
5881
5881
  API_BASE_URL: "https://partners-api-sandbox.astropay.com/api",
5882
5882
  RESOURCES_BUCKET: "https://rs-tst.astropay.com",
@@ -5886,7 +5886,7 @@ const RUNTIME_CONFIG = {
5886
5886
  },
5887
5887
  production: {
5888
5888
  NAME: "@astropay/payments-lib",
5889
- VERSION: "2.0.3",
5889
+ VERSION: "2.0.4",
5890
5890
  MODE: "production",
5891
5891
  API_BASE_URL: "https://partners-api.astropay.com/api",
5892
5892
  RESOURCES_BUCKET: "https://rs.astropay.com",
@@ -5920,7 +5920,7 @@ const Ni = class Ni {
5920
5920
  return Ni.currencyMode;
5921
5921
  }
5922
5922
  };
5923
- Le(Ni, "environment"), Le(Ni, "currencyMode");
5923
+ ke(Ni, "environment"), ke(Ni, "currencyMode");
5924
5924
  let AstroPayConfig = Ni;
5925
5925
  const locales = {
5926
5926
  AED: "ar-AE",
@@ -11400,7 +11400,7 @@ var NetworkEventCallback = (
11400
11400
  })(Config)
11401
11401
  ), useBrowserConfig = function(ee, re, te) {
11402
11402
  return re === void 0 && (re = {}), __awaiter(void 0, void 0, void 0, function() {
11403
- var ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, _e, be, Ie, Te, Se, Re, we, Ae, Pe, Ne, Fe, Ue, He, ze, lr, Ke, hr, fr, dr, Qe, Bt, Ir, $e, Oe, qe, mr, ur, Sr, jr;
11403
+ var ne, ie, oe, se, ae, ue, ce, le, de, fe, he, pe, ge, me, ye, ve, _e, be, Ie, Te, Se, Re, we, Ae, Pe, Ne, Fe, Ue, He, ze, lr, Ke, hr, fr, dr, Qe, Bt, Ir, $e, Oe, We, mr, ur, Sr, jr;
11404
11404
  return __generator(this, function(Fr) {
11405
11405
  switch (Fr.label) {
11406
11406
  case 0:
@@ -11419,7 +11419,7 @@ var NetworkEventCallback = (
11419
11419
  return ue = Fr.sent(), [4, ae.get(getCookieName(ee))];
11420
11420
  case 7:
11421
11421
  return ce = Fr.sent(), le = getQueryParams(), de = le.ampTimestamp ? Number(le.ampTimestamp) : void 0, fe = de ? Date.now() < de : !0, he = (ze = (He = (Ue = (Ne = re.deviceId) !== null && Ne !== void 0 ? Ne : fe ? (Fe = le.ampDeviceId) !== null && Fe !== void 0 ? Fe : le.deviceId : void 0) !== null && Ue !== void 0 ? Ue : ce == null ? void 0 : ce.deviceId) !== null && He !== void 0 ? He : ue.deviceId) !== null && ze !== void 0 ? ze : UUID(), pe = (lr = ce == null ? void 0 : ce.lastEventId) !== null && lr !== void 0 ? lr : ue.lastEventId, ge = (Ke = ce == null ? void 0 : ce.lastEventTime) !== null && Ke !== void 0 ? Ke : ue.lastEventTime, me = (fr = (hr = re.optOut) !== null && hr !== void 0 ? hr : ce == null ? void 0 : ce.optOut) !== null && fr !== void 0 ? fr : ue.optOut, ye = (dr = ce == null ? void 0 : ce.sessionId) !== null && dr !== void 0 ? dr : ue.sessionId, ve = (Bt = (Qe = re.userId) !== null && Qe !== void 0 ? Qe : ce == null ? void 0 : ce.userId) !== null && Bt !== void 0 ? Bt : ue.userId, te.previousSessionDeviceId = (Ir = ce == null ? void 0 : ce.deviceId) !== null && Ir !== void 0 ? Ir : ue.deviceId, te.previousSessionUserId = ($e = ce == null ? void 0 : ce.userId) !== null && $e !== void 0 ? $e : ue.userId, _e = {
11422
- ipAddress: (qe = (Oe = re.trackingOptions) === null || Oe === void 0 ? void 0 : Oe.ipAddress) !== null && qe !== void 0 ? qe : !0,
11422
+ ipAddress: (We = (Oe = re.trackingOptions) === null || Oe === void 0 ? void 0 : Oe.ipAddress) !== null && We !== void 0 ? We : !0,
11423
11423
  language: (ur = (mr = re.trackingOptions) === null || mr === void 0 ? void 0 : mr.language) !== null && ur !== void 0 ? ur : !0,
11424
11424
  platform: (jr = (Sr = re.trackingOptions) === null || Sr === void 0 ? void 0 : Sr.platform) !== null && jr !== void 0 ? jr : !0
11425
11425
  }, be = ce == null ? void 0 : ce.pageCounter, Ie = ce == null ? void 0 : ce.debugLogsEnabled, re.autocapture !== void 0 && (re.defaultTracking = re.autocapture), Te = new BrowserConfig(
@@ -14392,9 +14392,9 @@ function a(ee, re) {
14392
14392
  }
14393
14393
  class d {
14394
14394
  constructor() {
14395
- Le(this, "t");
14396
- Le(this, "i", 0);
14397
- Le(this, "o", []);
14395
+ ke(this, "t");
14396
+ ke(this, "i", 0);
14397
+ ke(this, "o", []);
14398
14398
  }
14399
14399
  h(re) {
14400
14400
  var ie;
@@ -14483,10 +14483,10 @@ const C = () => w ? P : performance.interactionCount ?? 0, I = () => {
14483
14483
  let F = 0;
14484
14484
  class k {
14485
14485
  constructor() {
14486
- Le(this, "u", []);
14487
- Le(this, "l", /* @__PURE__ */ new Map());
14488
- Le(this, "m");
14489
- Le(this, "p");
14486
+ ke(this, "u", []);
14487
+ ke(this, "l", /* @__PURE__ */ new Map());
14488
+ ke(this, "m");
14489
+ ke(this, "p");
14490
14490
  }
14491
14491
  v() {
14492
14492
  F = C(), this.u.length = 0, this.l.clear();
@@ -14536,7 +14536,7 @@ const A = (ee) => {
14536
14536
  };
14537
14537
  class N {
14538
14538
  constructor() {
14539
- Le(this, "m");
14539
+ ke(this, "m");
14540
14540
  }
14541
14541
  h(re) {
14542
14542
  var te;
@@ -15144,51 +15144,51 @@ const ApiKey = {
15144
15144
  };
15145
15145
  class AstroPayPaymentCardClicked {
15146
15146
  constructor(re) {
15147
- Le(this, "event_type", "AstroPay Payment Card Clicked");
15147
+ ke(this, "event_type", "AstroPay Payment Card Clicked");
15148
15148
  this.event_properties = re, this.event_properties = re;
15149
15149
  }
15150
15150
  }
15151
15151
  class AstroPayPaymentClicked {
15152
15152
  constructor(re) {
15153
- Le(this, "event_type", "AstroPay Payment Clicked");
15153
+ ke(this, "event_type", "AstroPay Payment Clicked");
15154
15154
  this.event_properties = re, this.event_properties = re;
15155
15155
  }
15156
15156
  }
15157
15157
  class AstroPayPaymentImpression {
15158
15158
  constructor(re) {
15159
- Le(this, "event_type", "AstroPay Payment Impression");
15159
+ ke(this, "event_type", "AstroPay Payment Impression");
15160
15160
  this.event_properties = re, this.event_properties = re;
15161
15161
  }
15162
15162
  }
15163
15163
  class AstroPayPaymentLinkCopied {
15164
15164
  constructor(re) {
15165
- Le(this, "event_type", "AstroPay Payment Link Copied");
15165
+ ke(this, "event_type", "AstroPay Payment Link Copied");
15166
15166
  this.event_properties = re, this.event_properties = re;
15167
15167
  }
15168
15168
  }
15169
15169
  class AstroPayPaymentPhoneNumberEntered {
15170
15170
  constructor(re) {
15171
- Le(this, "event_type", "AstroPay Payment Phone Number Entered");
15171
+ ke(this, "event_type", "AstroPay Payment Phone Number Entered");
15172
15172
  this.event_properties = re, this.event_properties = re;
15173
15173
  }
15174
15174
  }
15175
15175
  class AstroPayPaymentStarted {
15176
15176
  constructor(re) {
15177
- Le(this, "event_type", "AstroPay Payment Started");
15177
+ ke(this, "event_type", "AstroPay Payment Started");
15178
15178
  this.event_properties = re, this.event_properties = re;
15179
15179
  }
15180
15180
  }
15181
15181
  class AstroPayPaymentUserIdentified {
15182
15182
  constructor(re) {
15183
- Le(this, "event_type", "AstroPay Payment User Identified");
15183
+ ke(this, "event_type", "AstroPay Payment User Identified");
15184
15184
  this.event_properties = re, this.event_properties = re;
15185
15185
  }
15186
15186
  }
15187
15187
  const getVoidPromiseResult = () => ({ promise: Promise.resolve() });
15188
15188
  class Ampli {
15189
15189
  constructor() {
15190
- Le(this, "disabled", !1);
15191
- Le(this, "amplitude");
15190
+ ke(this, "disabled", !1);
15191
+ ke(this, "amplitude");
15192
15192
  }
15193
15193
  get client() {
15194
15194
  return this.isInitializedAndEnabled(), this.amplitude;
@@ -15348,15 +15348,15 @@ class Ampli {
15348
15348
  const ampli = new Ampli();
15349
15349
  class AmplitudeTracker {
15350
15350
  }
15351
- Le(AmplitudeTracker, "init", () => {
15351
+ ke(AmplitudeTracker, "init", () => {
15352
15352
  const te = AstroPayConfig.getEnvironment() === "production";
15353
15353
  ampli.load({
15354
15354
  environment: te ? "production" : "development",
15355
15355
  client: { apiKey: te ? ApiKey.production : ApiKey.development }
15356
15356
  });
15357
- }), Le(AmplitudeTracker, "trackEvent", (re, te, ne) => {
15357
+ }), ke(AmplitudeTracker, "trackEvent", (re, te, ne) => {
15358
15358
  typeof re == "string" ? ampli.client.track(re, te, ne) : ampli.track(re);
15359
- }), Le(AmplitudeTracker, "cleanData", () => {
15359
+ }), ke(AmplitudeTracker, "cleanData", () => {
15360
15360
  ampli.client.reset();
15361
15361
  });
15362
15362
  const ConsoleApiName = {
@@ -21602,7 +21602,7 @@ async function lazyLoadRecorder(ee = importRecorder) {
21602
21602
  async function importRecorder() {
21603
21603
  return (await import(
21604
21604
  /* webpackChunkName: "recorder" */
21605
- "./startRecording-Bs55aP6x.js"
21605
+ "./startRecording-Bf99UXAA.js"
21606
21606
  )).startRecording;
21607
21607
  }
21608
21608
  function isProfilingSupported() {
@@ -21622,7 +21622,7 @@ async function lazyLoadProfiler(ee = importProfiler) {
21622
21622
  async function importProfiler() {
21623
21623
  return (await import(
21624
21624
  /* webpackChunkName: "profiler" */
21625
- "./profiler-b0Dqi3aC.js"
21625
+ "./profiler-CRNNYNR3.js"
21626
21626
  )).createRumProfiler;
21627
21627
  }
21628
21628
  function makeProfilerApi() {
@@ -21688,26 +21688,30 @@ const Vi = class Vi {
21688
21688
  return !!(re.type === "view" && ((te = re.view.name) != null && te.startsWith("ap_cl_")) || re.type === "action" && typeof ((ne = re.action.target) == null ? void 0 : ne.name) == "string" && re.action.target.name.startsWith("ap_cl_") || re.type === "error" && ((ie = re.error) == null ? void 0 : ie.source) === "custom");
21689
21689
  }
21690
21690
  };
21691
- Le(Vi, "isInitialized", !1);
21692
- let DatadogTracker = Vi, trackers = [];
21691
+ ke(Vi, "isInitialized", !1);
21692
+ let DatadogTracker = Vi;
21693
21693
  class DataDogTracker {
21694
21694
  static init(re) {
21695
21695
  if (!re) {
21696
21696
  console.info("Tracking disabled");
21697
21697
  return;
21698
21698
  }
21699
- trackers = [new DatadogTracker()], trackers.forEach((te) => te.init());
21699
+ this.initialized || (this.trackers = [new DatadogTracker()], this.trackers.forEach((te) => te.init()), this.initialized = !0);
21700
+ }
21701
+ static isReady() {
21702
+ return this.initialized && this.trackers.length > 0;
21700
21703
  }
21701
21704
  static trackEvent(re, te) {
21702
- trackers.forEach((ne) => ne.track(re, te));
21705
+ this.isReady() && this.trackers.forEach((ne) => ne.track(re, te));
21703
21706
  }
21704
21707
  static trackError(re, te) {
21705
- trackers.forEach((ne) => ne.trackError(re, te));
21708
+ this.isReady() && this.trackers.forEach((ne) => ne.trackError(re, te));
21706
21709
  }
21707
21710
  static destroy() {
21708
- trackers.forEach((re) => re.destroy()), trackers = [];
21711
+ this.trackers.forEach((re) => re.destroy()), this.trackers = [], this.initialized = !1;
21709
21712
  }
21710
21713
  }
21714
+ ke(DataDogTracker, "initialized", !1), ke(DataDogTracker, "trackers", []);
21711
21715
  function getDefaultExportFromCjs(ee) {
21712
21716
  return ee && ee.__esModule && Object.prototype.hasOwnProperty.call(ee, "default") ? ee.default : ee;
21713
21717
  }
@@ -23101,7 +23105,7 @@ function requireSingularSdk() {
23101
23105
  if (!ae) return ie[Je];
23102
23106
  var Tr = lr(ie, Je);
23103
23107
  return Tr && Tr.value;
23104
- }, hr = Ke("fetch"), fr = Ke("Request"), dr = Ke("Headers"), Qe = fr && fr.prototype, Bt = dr && dr.prototype, Ir = ie.RegExp, $e = ie.TypeError, Oe = ie.decodeURIComponent, qe = ie.encodeURIComponent, mr = se("".charAt), ur = se([].join), Sr = se([].push), jr = se("".replace), Fr = se([].shift), Yr = se([].splice), Qr = se("".split), ii = se("".slice), Gr = /\+/g, Ye = Array(4), Cr = function(Je) {
23108
+ }, hr = Ke("fetch"), fr = Ke("Request"), dr = Ke("Headers"), Qe = fr && fr.prototype, Bt = dr && dr.prototype, Ir = ie.RegExp, $e = ie.TypeError, Oe = ie.decodeURIComponent, We = ie.encodeURIComponent, mr = se("".charAt), ur = se([].join), Sr = se([].push), jr = se("".replace), Fr = se([].shift), Yr = se([].splice), Qr = se("".split), ii = se("".slice), Gr = /\+/g, Ye = Array(4), Cr = function(Je) {
23105
23109
  return Ye[Je - 1] || (Ye[Je - 1] = Ir("((?:%[\\da-f]{2}){" + Je + "})", "gi"));
23106
23110
  }, Rr = function(Je) {
23107
23111
  try {
@@ -23120,7 +23124,7 @@ function requireSingularSdk() {
23120
23124
  }, Br = /[!'()~]|%20/g, ui = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+" }, _i = function(Je) {
23121
23125
  return ui[Je];
23122
23126
  }, pi = function(Je) {
23123
- return jr(qe(Je), Br, _i);
23127
+ return jr(We(Je), Br, _i);
23124
23128
  }, ei = fe((function(Je, Tr) {
23125
23129
  Ue(this, { type: "URLSearchParamsIterator", iterator: Re(He(Je).entries), kind: Tr });
23126
23130
  }), "Iterator", (function() {
@@ -23431,7 +23435,7 @@ function requireSingularSdk() {
23431
23435
  return ne(ue) && (ce = ue.constructor, (ie(ce) && (ce === ae || ne(ce.prototype)) || oe(ce) && (ce = ce[se]) === null) && (ce = void 0)), ce === void 0 ? ae : ce;
23432
23436
  };
23433
23437
  }, function(ee, re, te) {
23434
- var ne = te(1), ie = te(9), oe = te(14), se = te(6), ae = te(26), ue = te(15), ce = te(55), le = te(5), de = te(13), fe = te(16), he = te(20), pe = te(27), ge = te(84), me = te(29), ye = te(45), ve = te(57), _e = te(73), be = te(116), Ie = te(217), Te = te(92), Se = te(44), Re = te(28), we = te(112), Ae = te(82), Pe = te(31), Ne = te(70), Fe = te(91), Ue = te(90), He = te(107), ze = te(8), lr = te(93), Ke = te(12), hr = te(138), fr = te(47), dr = te(58), Qe = te(94).forEach, Bt = Fe("hidden"), Ir = dr.set, $e = dr.getterFor("Symbol"), Oe = Object.prototype, qe = ie.Symbol, mr = qe && qe.prototype, ur = ie.TypeError, Sr = ie.QObject, jr = Se.f, Fr = Re.f, Yr = Ie.f, Qr = Ae.f, ii = se([].push), Gr = Ne("symbols"), Ye = Ne("op-symbols"), Cr = Ne("wks"), Rr = !Sr || !Sr.prototype || !Sr.prototype.findChild, xr = ue && le((function() {
23438
+ var ne = te(1), ie = te(9), oe = te(14), se = te(6), ae = te(26), ue = te(15), ce = te(55), le = te(5), de = te(13), fe = te(16), he = te(20), pe = te(27), ge = te(84), me = te(29), ye = te(45), ve = te(57), _e = te(73), be = te(116), Ie = te(217), Te = te(92), Se = te(44), Re = te(28), we = te(112), Ae = te(82), Pe = te(31), Ne = te(70), Fe = te(91), Ue = te(90), He = te(107), ze = te(8), lr = te(93), Ke = te(12), hr = te(138), fr = te(47), dr = te(58), Qe = te(94).forEach, Bt = Fe("hidden"), Ir = dr.set, $e = dr.getterFor("Symbol"), Oe = Object.prototype, We = ie.Symbol, mr = We && We.prototype, ur = ie.TypeError, Sr = ie.QObject, jr = Se.f, Fr = Re.f, Yr = Ie.f, Qr = Ae.f, ii = se([].push), Gr = Ne("symbols"), Ye = Ne("op-symbols"), Cr = Ne("wks"), Rr = !Sr || !Sr.prototype || !Sr.prototype.findChild, xr = ue && le((function() {
23435
23439
  return ve(Fr({}, "a", { get: function() {
23436
23440
  return Fr(this, "a", { value: 7 }).a;
23437
23441
  } })).a != 7;
@@ -23471,7 +23475,7 @@ function requireSingularSdk() {
23471
23475
  !de(Gr, Jr) || kr && !de(Oe, Jr) || ii(Mr, Gr[Jr]);
23472
23476
  })), Mr;
23473
23477
  };
23474
- ce || (Pe(mr = (qe = function() {
23478
+ ce || (Pe(mr = (We = function() {
23475
23479
  if (fe(mr, this)) throw ur("Symbol is not a constructor");
23476
23480
  var Er = arguments.length && arguments[0] !== void 0 ? me(arguments[0]) : void 0, kr = He(Er), Pr = function(Mr) {
23477
23481
  this === Oe && oe(Pr, Ye, Mr), de(this, Bt) && de(this[Bt], kr) && (this[Bt][kr] = !1), xr(this, kr, ye(1, Mr));
@@ -23479,13 +23483,13 @@ function requireSingularSdk() {
23479
23483
  return ue && Rr && xr(Oe, kr, { configurable: !0, set: Pr }), Br(kr, Er);
23480
23484
  }).prototype, "toString", (function() {
23481
23485
  return $e(this).tag;
23482
- })), Pe(qe, "withoutSetter", (function(Er) {
23486
+ })), Pe(We, "withoutSetter", (function(Er) {
23483
23487
  return Br(He(Er), Er);
23484
23488
  })), Ae.f = pi, Re.f = ui, we.f = _i, Se.f = ei, be.f = Ie.f = ci, Te.f = Xr, lr.f = function(Er) {
23485
23489
  return Br(ze(Er), Er);
23486
23490
  }, ue && (Fr(mr, "description", { configurable: !0, get: function() {
23487
23491
  return $e(this).description;
23488
- } }), ae || Pe(Oe, "propertyIsEnumerable", pi, { unsafe: !0 }))), ne({ global: !0, constructor: !0, wrap: !0, forced: !ce, sham: !ce }, { Symbol: qe }), Qe(_e(Cr), (function(Er) {
23492
+ } }), ae || Pe(Oe, "propertyIsEnumerable", pi, { unsafe: !0 }))), ne({ global: !0, constructor: !0, wrap: !0, forced: !ce, sham: !ce }, { Symbol: We }), Qe(_e(Cr), (function(Er) {
23489
23493
  Ke(Er);
23490
23494
  })), ne({ target: "Symbol", stat: !0, forced: !ce }, { useSetter: function() {
23491
23495
  Rr = !0;
@@ -23493,7 +23497,7 @@ function requireSingularSdk() {
23493
23497
  Rr = !1;
23494
23498
  } }), ne({ target: "Object", stat: !0, forced: !ce, sham: !ue }, { create: function(Er, kr) {
23495
23499
  return kr === void 0 ? ve(Er) : _i(ve(Er), kr);
23496
- }, defineProperty: ui, defineProperties: _i, getOwnPropertyDescriptor: ei }), ne({ target: "Object", stat: !0, forced: !ce }, { getOwnPropertyNames: ci }), hr(), fr(qe, "Symbol"), Ue[Bt] = !0;
23500
+ }, defineProperty: ui, defineProperties: _i, getOwnPropertyDescriptor: ei }), ne({ target: "Object", stat: !0, forced: !ce }, { getOwnPropertyNames: ci }), hr(), fr(We, "Symbol"), Ue[Bt] = !0;
23497
23501
  }, function(ee, re, te) {
23498
23502
  var ne = te(51), ie = te(27), oe = te(116).f, se = te(117), ae = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
23499
23503
  ee.exports.f = function(ue) {
@@ -24061,26 +24065,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24061
24065
  ee.exports = he = function() {
24062
24066
  return pe;
24063
24067
  }, ee.exports.__esModule = !0, ee.exports.default = ee.exports;
24064
- var pe = {}, ge = Object.prototype, me = ge.hasOwnProperty, ye = ie || function($e, Oe, qe) {
24065
- $e[Oe] = qe.value;
24068
+ var pe = {}, ge = Object.prototype, me = ge.hasOwnProperty, ye = ie || function($e, Oe, We) {
24069
+ $e[Oe] = We.value;
24066
24070
  }, ve = typeof oe == "function" ? oe : {}, _e = ve.iterator || "@@iterator", be = ve.asyncIterator || "@@asyncIterator", Ie = ve.toStringTag || "@@toStringTag";
24067
- function Te($e, Oe, qe) {
24068
- return ie($e, Oe, { value: qe, enumerable: !0, configurable: !0, writable: !0 }), $e[Oe];
24071
+ function Te($e, Oe, We) {
24072
+ return ie($e, Oe, { value: We, enumerable: !0, configurable: !0, writable: !0 }), $e[Oe];
24069
24073
  }
24070
24074
  try {
24071
24075
  Te({}, "");
24072
24076
  } catch {
24073
- Te = function(Oe, qe, mr) {
24074
- return Oe[qe] = mr;
24077
+ Te = function(Oe, We, mr) {
24078
+ return Oe[We] = mr;
24075
24079
  };
24076
24080
  }
24077
- function Se($e, Oe, qe, mr) {
24081
+ function Se($e, Oe, We, mr) {
24078
24082
  var ur = Oe && Oe.prototype instanceof Ae ? Oe : Ae, Sr = se(ur.prototype), jr = new Qe(mr || []);
24079
- return ye(Sr, "_invoke", { value: Ke($e, qe, jr) }), Sr;
24083
+ return ye(Sr, "_invoke", { value: Ke($e, We, jr) }), Sr;
24080
24084
  }
24081
- function Re($e, Oe, qe) {
24085
+ function Re($e, Oe, We) {
24082
24086
  try {
24083
- return { type: "normal", arg: $e.call(Oe, qe) };
24087
+ return { type: "normal", arg: $e.call(Oe, We) };
24084
24088
  } catch (mr) {
24085
24089
  return { type: "throw", arg: mr };
24086
24090
  }
@@ -24102,14 +24106,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24102
24106
  var He = Ne.prototype = Ae.prototype = se(Fe);
24103
24107
  function ze($e) {
24104
24108
  var Oe;
24105
- ue(Oe = ["next", "throw", "return"]).call(Oe, (function(qe) {
24106
- Te($e, qe, (function(mr) {
24107
- return this._invoke(qe, mr);
24109
+ ue(Oe = ["next", "throw", "return"]).call(Oe, (function(We) {
24110
+ Te($e, We, (function(mr) {
24111
+ return this._invoke(We, mr);
24108
24112
  }));
24109
24113
  }));
24110
24114
  }
24111
24115
  function lr($e, Oe) {
24112
- var qe;
24116
+ var We;
24113
24117
  ye(this, "_invoke", { value: function(mr, ur) {
24114
24118
  function Sr() {
24115
24119
  return new Oe((function(jr, Fr) {
@@ -24131,10 +24135,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24131
24135
  })(mr, ur, jr, Fr);
24132
24136
  }));
24133
24137
  }
24134
- return qe = qe ? qe.then(Sr, Sr) : Sr();
24138
+ return We = We ? We.then(Sr, Sr) : Sr();
24135
24139
  } });
24136
24140
  }
24137
- function Ke($e, Oe, qe) {
24141
+ function Ke($e, Oe, We) {
24138
24142
  var mr = "suspendedStart";
24139
24143
  return function(ur, Sr) {
24140
24144
  if (mr === "executing") throw new Error("Generator is already running");
@@ -24142,33 +24146,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24142
24146
  if (ur === "throw") throw Sr;
24143
24147
  return Ir();
24144
24148
  }
24145
- for (qe.method = ur, qe.arg = Sr; ; ) {
24146
- var jr = qe.delegate;
24149
+ for (We.method = ur, We.arg = Sr; ; ) {
24150
+ var jr = We.delegate;
24147
24151
  if (jr) {
24148
- var Fr = hr(jr, qe);
24152
+ var Fr = hr(jr, We);
24149
24153
  if (Fr) {
24150
24154
  if (Fr === we) continue;
24151
24155
  return Fr;
24152
24156
  }
24153
24157
  }
24154
- if (qe.method === "next") qe.sent = qe._sent = qe.arg;
24155
- else if (qe.method === "throw") {
24156
- if (mr === "suspendedStart") throw mr = "completed", qe.arg;
24157
- qe.dispatchException(qe.arg);
24158
- } else qe.method === "return" && qe.abrupt("return", qe.arg);
24158
+ if (We.method === "next") We.sent = We._sent = We.arg;
24159
+ else if (We.method === "throw") {
24160
+ if (mr === "suspendedStart") throw mr = "completed", We.arg;
24161
+ We.dispatchException(We.arg);
24162
+ } else We.method === "return" && We.abrupt("return", We.arg);
24159
24163
  mr = "executing";
24160
- var Yr = Re($e, Oe, qe);
24164
+ var Yr = Re($e, Oe, We);
24161
24165
  if (Yr.type === "normal") {
24162
- if (mr = qe.done ? "completed" : "suspendedYield", Yr.arg === we) continue;
24163
- return { value: Yr.arg, done: qe.done };
24166
+ if (mr = We.done ? "completed" : "suspendedYield", Yr.arg === we) continue;
24167
+ return { value: Yr.arg, done: We.done };
24164
24168
  }
24165
- Yr.type === "throw" && (mr = "completed", qe.method = "throw", qe.arg = Yr.arg);
24169
+ Yr.type === "throw" && (mr = "completed", We.method = "throw", We.arg = Yr.arg);
24166
24170
  }
24167
24171
  };
24168
24172
  }
24169
24173
  function hr($e, Oe) {
24170
- var qe = Oe.method, mr = $e.iterator[qe];
24171
- if (mr === void 0) return Oe.delegate = null, qe === "throw" && $e.iterator.return && (Oe.method = "return", Oe.arg = void 0, hr($e, Oe), Oe.method === "throw") || qe !== "return" && (Oe.method = "throw", Oe.arg = new TypeError("The iterator does not provide a '" + qe + "' method")), we;
24174
+ var We = Oe.method, mr = $e.iterator[We];
24175
+ if (mr === void 0) return Oe.delegate = null, We === "throw" && $e.iterator.return && (Oe.method = "return", Oe.arg = void 0, hr($e, Oe), Oe.method === "throw") || We !== "return" && (Oe.method = "throw", Oe.arg = new TypeError("The iterator does not provide a '" + We + "' method")), we;
24172
24176
  var ur = Re(mr, $e.iterator, Oe.arg);
24173
24177
  if (ur.type === "throw") return Oe.method = "throw", Oe.arg = ur.arg, Oe.delegate = null, we;
24174
24178
  var Sr = ur.arg;
@@ -24191,8 +24195,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24191
24195
  if (Oe) return Oe.call($e);
24192
24196
  if (typeof $e.next == "function") return $e;
24193
24197
  if (!isNaN($e.length)) {
24194
- var qe = -1, mr = function ur() {
24195
- for (; ++qe < $e.length; ) if (me.call($e, qe)) return ur.value = $e[qe], ur.done = !1, ur;
24198
+ var We = -1, mr = function ur() {
24199
+ for (; ++We < $e.length; ) if (me.call($e, We)) return ur.value = $e[We], ur.done = !1, ur;
24196
24200
  return ur.value = void 0, ur.done = !0, ur;
24197
24201
  };
24198
24202
  return mr.next = mr;
@@ -24212,9 +24216,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24212
24216
  return { __await: $e };
24213
24217
  }, ze(lr.prototype), Te(lr.prototype, be, (function() {
24214
24218
  return this;
24215
- })), pe.AsyncIterator = lr, pe.async = function($e, Oe, qe, mr, ur) {
24219
+ })), pe.AsyncIterator = lr, pe.async = function($e, Oe, We, mr, ur) {
24216
24220
  ur === void 0 && (ur = le);
24217
- var Sr = new lr(Se($e, Oe, qe, mr), ur);
24221
+ var Sr = new lr(Se($e, Oe, We, mr), ur);
24218
24222
  return pe.isGeneratorFunction(Oe) ? Sr : Sr.next().then((function(jr) {
24219
24223
  return jr.done ? jr.value : Sr.next();
24220
24224
  }));
@@ -24223,18 +24227,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24223
24227
  })), Te(He, "toString", (function() {
24224
24228
  return "[object Generator]";
24225
24229
  })), pe.keys = function($e) {
24226
- var Oe = Object($e), qe = [];
24227
- for (var mr in Oe) qe.push(mr);
24228
- return de(qe).call(qe), function ur() {
24229
- for (; qe.length; ) {
24230
- var Sr = qe.pop();
24230
+ var Oe = Object($e), We = [];
24231
+ for (var mr in Oe) We.push(mr);
24232
+ return de(We).call(We), function ur() {
24233
+ for (; We.length; ) {
24234
+ var Sr = We.pop();
24231
24235
  if (Sr in Oe) return ur.value = Sr, ur.done = !1, ur;
24232
24236
  }
24233
24237
  return ur.done = !0, ur;
24234
24238
  };
24235
24239
  }, pe.values = Bt, Qe.prototype = { constructor: Qe, reset: function($e) {
24236
24240
  var Oe;
24237
- if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, ue(Oe = this.tryEntries).call(Oe, dr), !$e) for (var qe in this) qe.charAt(0) === "t" && me.call(this, qe) && !isNaN(+fe(qe).call(qe, 1)) && (this[qe] = void 0);
24241
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, ue(Oe = this.tryEntries).call(Oe, dr), !$e) for (var We in this) We.charAt(0) === "t" && me.call(this, We) && !isNaN(+fe(We).call(We, 1)) && (this[We] = void 0);
24238
24242
  }, stop: function() {
24239
24243
  this.done = !0;
24240
24244
  var $e = this.tryEntries[0].completion;
@@ -24243,28 +24247,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24243
24247
  }, dispatchException: function($e) {
24244
24248
  if (this.done) throw $e;
24245
24249
  var Oe = this;
24246
- function qe(Yr, Qr) {
24250
+ function We(Yr, Qr) {
24247
24251
  return Sr.type = "throw", Sr.arg = $e, Oe.next = Yr, Qr && (Oe.method = "next", Oe.arg = void 0), !!Qr;
24248
24252
  }
24249
24253
  for (var mr = this.tryEntries.length - 1; mr >= 0; --mr) {
24250
24254
  var ur = this.tryEntries[mr], Sr = ur.completion;
24251
- if (ur.tryLoc === "root") return qe("end");
24255
+ if (ur.tryLoc === "root") return We("end");
24252
24256
  if (ur.tryLoc <= this.prev) {
24253
24257
  var jr = me.call(ur, "catchLoc"), Fr = me.call(ur, "finallyLoc");
24254
24258
  if (jr && Fr) {
24255
- if (this.prev < ur.catchLoc) return qe(ur.catchLoc, !0);
24256
- if (this.prev < ur.finallyLoc) return qe(ur.finallyLoc);
24259
+ if (this.prev < ur.catchLoc) return We(ur.catchLoc, !0);
24260
+ if (this.prev < ur.finallyLoc) return We(ur.finallyLoc);
24257
24261
  } else if (jr) {
24258
- if (this.prev < ur.catchLoc) return qe(ur.catchLoc, !0);
24262
+ if (this.prev < ur.catchLoc) return We(ur.catchLoc, !0);
24259
24263
  } else {
24260
24264
  if (!Fr) throw new Error("try statement without catch or finally");
24261
- if (this.prev < ur.finallyLoc) return qe(ur.finallyLoc);
24265
+ if (this.prev < ur.finallyLoc) return We(ur.finallyLoc);
24262
24266
  }
24263
24267
  }
24264
24268
  }
24265
24269
  }, abrupt: function($e, Oe) {
24266
- for (var qe = this.tryEntries.length - 1; qe >= 0; --qe) {
24267
- var mr = this.tryEntries[qe];
24270
+ for (var We = this.tryEntries.length - 1; We >= 0; --We) {
24271
+ var mr = this.tryEntries[We];
24268
24272
  if (mr.tryLoc <= this.prev && me.call(mr, "finallyLoc") && this.prev < mr.finallyLoc) {
24269
24273
  var ur = mr;
24270
24274
  break;
@@ -24278,24 +24282,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24278
24282
  return $e.type === "break" || $e.type === "continue" ? this.next = $e.arg : $e.type === "return" ? (this.rval = this.arg = $e.arg, this.method = "return", this.next = "end") : $e.type === "normal" && Oe && (this.next = Oe), we;
24279
24283
  }, finish: function($e) {
24280
24284
  for (var Oe = this.tryEntries.length - 1; Oe >= 0; --Oe) {
24281
- var qe = this.tryEntries[Oe];
24282
- if (qe.finallyLoc === $e) return this.complete(qe.completion, qe.afterLoc), dr(qe), we;
24285
+ var We = this.tryEntries[Oe];
24286
+ if (We.finallyLoc === $e) return this.complete(We.completion, We.afterLoc), dr(We), we;
24283
24287
  }
24284
24288
  }, catch: function($e) {
24285
24289
  for (var Oe = this.tryEntries.length - 1; Oe >= 0; --Oe) {
24286
- var qe = this.tryEntries[Oe];
24287
- if (qe.tryLoc === $e) {
24288
- var mr = qe.completion;
24290
+ var We = this.tryEntries[Oe];
24291
+ if (We.tryLoc === $e) {
24292
+ var mr = We.completion;
24289
24293
  if (mr.type === "throw") {
24290
24294
  var ur = mr.arg;
24291
- dr(qe);
24295
+ dr(We);
24292
24296
  }
24293
24297
  return ur;
24294
24298
  }
24295
24299
  }
24296
24300
  throw new Error("illegal catch attempt");
24297
- }, delegateYield: function($e, Oe, qe) {
24298
- return this.delegate = { iterator: Bt($e), resultName: Oe, nextLoc: qe }, this.method === "next" && (this.arg = void 0), we;
24301
+ }, delegateYield: function($e, Oe, We) {
24302
+ return this.delegate = { iterator: Bt($e), resultName: Oe, nextLoc: We }, this.method === "next" && (this.arg = void 0), we;
24299
24303
  } }, pe;
24300
24304
  }
24301
24305
  ee.exports = he, ee.exports.__esModule = !0, ee.exports.default = ee.exports;
@@ -24369,13 +24373,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24369
24373
  }, function(ee, re, te) {
24370
24374
  te(375), te(383), te(384), te(385), te(386), te(387);
24371
24375
  }, function(ee, re, te) {
24372
- var ne, ie, oe, se = te(1), ae = te(26), ue = te(97), ce = te(9), le = te(14), de = te(31), fe = te(95), he = te(47), pe = te(376), ge = te(30), me = te(10), ye = te(17), ve = te(120), _e = te(173), be = te(174).set, Ie = te(378), Te = te(381), Se = te(61), Re = te(176), we = te(58), Ae = te(62), Pe = te(78), Ne = te(49), Fe = Pe.CONSTRUCTOR, Ue = Pe.REJECTION_EVENT, He = Pe.SUBCLASSING, ze = we.getterFor("Promise"), lr = we.set, Ke = Ae && Ae.prototype, hr = Ae, fr = Ke, dr = ce.TypeError, Qe = ce.document, Bt = ce.process, Ir = Ne.f, $e = Ir, Oe = !!(Qe && Qe.createEvent && ce.dispatchEvent), qe = function(Ye) {
24376
+ var ne, ie, oe, se = te(1), ae = te(26), ue = te(97), ce = te(9), le = te(14), de = te(31), fe = te(95), he = te(47), pe = te(376), ge = te(30), me = te(10), ye = te(17), ve = te(120), _e = te(173), be = te(174).set, Ie = te(378), Te = te(381), Se = te(61), Re = te(176), we = te(58), Ae = te(62), Pe = te(78), Ne = te(49), Fe = Pe.CONSTRUCTOR, Ue = Pe.REJECTION_EVENT, He = Pe.SUBCLASSING, ze = we.getterFor("Promise"), lr = we.set, Ke = Ae && Ae.prototype, hr = Ae, fr = Ke, dr = ce.TypeError, Qe = ce.document, Bt = ce.process, Ir = Ne.f, $e = Ir, Oe = !!(Qe && Qe.createEvent && ce.dispatchEvent), We = function(Ye) {
24373
24377
  var Cr;
24374
24378
  return !(!ye(Ye) || !me(Cr = Ye.then)) && Cr;
24375
24379
  }, mr = function(Ye, Cr) {
24376
24380
  var Rr, xr, Br, ui = Cr.value, _i = Cr.state == 1, pi = _i ? Ye.ok : Ye.fail, ei = Ye.resolve, ci = Ye.reject, Xr = Ye.domain;
24377
24381
  try {
24378
- pi ? (_i || (Cr.rejection === 2 && Yr(Cr), Cr.rejection = 1), pi === !0 ? Rr = ui : (Xr && Xr.enter(), Rr = pi(ui), Xr && (Xr.exit(), Br = !0)), Rr === Ye.promise ? ci(dr("Promise-chain cycle")) : (xr = qe(Rr)) ? le(xr, Rr, ei, ci) : ei(Rr)) : ci(ui);
24382
+ pi ? (_i || (Cr.rejection === 2 && Yr(Cr), Cr.rejection = 1), pi === !0 ? Rr = ui : (Xr && Xr.enter(), Rr = pi(ui), Xr && (Xr.exit(), Br = !0)), Rr === Ye.promise ? ci(dr("Promise-chain cycle")) : (xr = We(Rr)) ? le(xr, Rr, ei, ci) : ei(Rr)) : ci(ui);
24379
24383
  } catch (Er) {
24380
24384
  Xr && !Br && Xr.exit(), ci(Er);
24381
24385
  }
@@ -24412,7 +24416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24412
24416
  Ye.done = !0, Rr && (Ye = Rr);
24413
24417
  try {
24414
24418
  if (Ye.facade === Cr) throw dr("Promise can't be resolved itself");
24415
- var xr = qe(Cr);
24419
+ var xr = We(Cr);
24416
24420
  xr ? Ie((function() {
24417
24421
  var Br = { done: !1 };
24418
24422
  try {
@@ -24844,42 +24848,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24844
24848
  te(442);
24845
24849
  }, function(ee, re, te) {
24846
24850
  te(60);
24847
- var ne, ie = te(1), oe = te(15), se = te(185), ae = te(9), ue = te(46), ce = te(6), le = te(31), de = te(443), fe = te(120), he = te(13), pe = te(160), ge = te(165), me = te(117), ye = te(150).codeAt, ve = te(444), _e = te(29), be = te(47), Ie = te(98), Te = te(184), Se = te(58), Re = Se.set, we = Se.getterFor("URL"), Ae = Te.URLSearchParams, Pe = Te.getState, Ne = ae.URL, Fe = ae.TypeError, Ue = ae.parseInt, He = Math.floor, ze = Math.pow, lr = ce("".charAt), Ke = ce(/./.exec), hr = ce([].join), fr = ce(1 .toString), dr = ce([].pop), Qe = ce([].push), Bt = ce("".replace), Ir = ce([].shift), $e = ce("".split), Oe = ce("".slice), qe = ce("".toLowerCase), mr = ce([].unshift), ur = /[a-z]/i, Sr = /[\d+-.a-z]/i, jr = /\d/, Fr = /^0x/i, Yr = /^[0-7]+$/, Qr = /^\d+$/, ii = /^[\da-f]+$/i, Gr = /[\0\t\n\r #%/:<>?@[\\\]^|]/, Ye = /[\0\t\n\r #/:<>?@[\\\]^|]/, Cr = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, Rr = /[\t\n\r]/g, xr = function(Be) {
24848
- var Xe, We, Ur, je;
24851
+ var ne, ie = te(1), oe = te(15), se = te(185), ae = te(9), ue = te(46), ce = te(6), le = te(31), de = te(443), fe = te(120), he = te(13), pe = te(160), ge = te(165), me = te(117), ye = te(150).codeAt, ve = te(444), _e = te(29), be = te(47), Ie = te(98), Te = te(184), Se = te(58), Re = Se.set, we = Se.getterFor("URL"), Ae = Te.URLSearchParams, Pe = Te.getState, Ne = ae.URL, Fe = ae.TypeError, Ue = ae.parseInt, He = Math.floor, ze = Math.pow, lr = ce("".charAt), Ke = ce(/./.exec), hr = ce([].join), fr = ce(1 .toString), dr = ce([].pop), Qe = ce([].push), Bt = ce("".replace), Ir = ce([].shift), $e = ce("".split), Oe = ce("".slice), We = ce("".toLowerCase), mr = ce([].unshift), ur = /[a-z]/i, Sr = /[\d+-.a-z]/i, jr = /\d/, Fr = /^0x/i, Yr = /^[0-7]+$/, Qr = /^\d+$/, ii = /^[\da-f]+$/i, Gr = /[\0\t\n\r #%/:<>?@[\\\]^|]/, Ye = /[\0\t\n\r #/:<>?@[\\\]^|]/, Cr = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, Rr = /[\t\n\r]/g, xr = function(Be) {
24852
+ var Xe, qe, Ur, je;
24849
24853
  if (typeof Be == "number") {
24850
- for (Xe = [], We = 0; We < 4; We++) mr(Xe, Be % 256), Be = He(Be / 256);
24854
+ for (Xe = [], qe = 0; qe < 4; qe++) mr(Xe, Be % 256), Be = He(Be / 256);
24851
24855
  return hr(Xe, ".");
24852
24856
  }
24853
24857
  if (typeof Be == "object") {
24854
24858
  for (Xe = "", Ur = (function(Kr) {
24855
24859
  for (var Vr = null, Dr = 1, Me = null, Ze = 0, Hr = 0; Hr < 8; Hr++) Kr[Hr] !== 0 ? (Ze > Dr && (Vr = Me, Dr = Ze), Me = null, Ze = 0) : (Me === null && (Me = Hr), ++Ze);
24856
24860
  return Ze > Dr && (Vr = Me, Dr = Ze), Vr;
24857
- })(Be), We = 0; We < 8; We++) je && Be[We] === 0 || (je && (je = !1), Ur === We ? (Xe += We ? ":" : "::", je = !0) : (Xe += fr(Be[We], 16), We < 7 && (Xe += ":")));
24861
+ })(Be), qe = 0; qe < 8; qe++) je && Be[qe] === 0 || (je && (je = !1), Ur === qe ? (Xe += qe ? ":" : "::", je = !0) : (Xe += fr(Be[qe], 16), qe < 7 && (Xe += ":")));
24858
24862
  return "[" + Xe + "]";
24859
24863
  }
24860
24864
  return Be;
24861
24865
  }, Br = {}, ui = pe({}, Br, { " ": 1, '"': 1, "<": 1, ">": 1, "`": 1 }), _i = pe({}, ui, { "#": 1, "?": 1, "{": 1, "}": 1 }), pi = pe({}, _i, { "/": 1, ":": 1, ";": 1, "=": 1, "@": 1, "[": 1, "\\": 1, "]": 1, "^": 1, "|": 1 }), ei = function(Be, Xe) {
24862
- var We = ye(Be, 0);
24863
- return We > 32 && We < 127 && !he(Xe, Be) ? Be : encodeURIComponent(Be);
24866
+ var qe = ye(Be, 0);
24867
+ return qe > 32 && qe < 127 && !he(Xe, Be) ? Be : encodeURIComponent(Be);
24864
24868
  }, ci = { ftp: 21, file: null, http: 80, https: 443, ws: 80, wss: 443 }, Xr = function(Be, Xe) {
24865
- var We;
24866
- return Be.length == 2 && Ke(ur, lr(Be, 0)) && ((We = lr(Be, 1)) == ":" || !Xe && We == "|");
24869
+ var qe;
24870
+ return Be.length == 2 && Ke(ur, lr(Be, 0)) && ((qe = lr(Be, 1)) == ":" || !Xe && qe == "|");
24867
24871
  }, Er = function(Be) {
24868
24872
  var Xe;
24869
24873
  return Be.length > 1 && Xr(Oe(Be, 0, 2)) && (Be.length == 2 || (Xe = lr(Be, 2)) === "/" || Xe === "\\" || Xe === "?" || Xe === "#");
24870
24874
  }, kr = function(Be) {
24871
- return Be === "." || qe(Be) === "%2e";
24872
- }, Pr = {}, Mr = {}, Jr = {}, Je = {}, Tr = {}, Or = {}, Nr = {}, zr = {}, hi = {}, Si = {}, wi = {}, bi = {}, Oi = {}, Hi = {}, Xi = {}, Ui = {}, Di = {}, Ti = {}, Ji = {}, Pi = {}, Ii = {}, ji = function(Be, Xe, We) {
24875
+ return Be === "." || We(Be) === "%2e";
24876
+ }, Pr = {}, Mr = {}, Jr = {}, Je = {}, Tr = {}, Or = {}, Nr = {}, zr = {}, hi = {}, Si = {}, wi = {}, bi = {}, Oi = {}, Hi = {}, Xi = {}, Ui = {}, Di = {}, Ti = {}, Ji = {}, Pi = {}, Ii = {}, ji = function(Be, Xe, qe) {
24873
24877
  var Ur, je, Kr, Vr = _e(Be);
24874
24878
  if (Xe) {
24875
24879
  if (je = this.parse(Vr)) throw Fe(je);
24876
24880
  this.searchParams = null;
24877
24881
  } else {
24878
- if (We !== void 0 && (Ur = new ji(We, !0)), je = this.parse(Vr, null, Ur)) throw Fe(je);
24882
+ if (qe !== void 0 && (Ur = new ji(qe, !0)), je = this.parse(Vr, null, Ur)) throw Fe(je);
24879
24883
  (Kr = Pe(new Ae())).bindURL(this), this.searchParams = Kr;
24880
24884
  }
24881
24885
  };
24882
- ji.prototype = { type: "URL", parse: function(Be, Xe, We) {
24886
+ ji.prototype = { type: "URL", parse: function(Be, Xe, qe) {
24883
24887
  var Ur, je, Kr, Vr, Dr, Me = this, Ze = Xe || Pr, Hr = 0, Ar = "", Zr = !1, ti = !1, Ei = !1;
24884
24888
  for (Be = _e(Be), Xe || (Me.scheme = "", Me.username = "", Me.password = "", Me.host = null, Me.port = null, Me.path = [], Me.query = null, Me.fragment = null, Me.cannotBeABaseURL = !1, Be = Bt(Be, Cr, "")), Be = Bt(Be, Rr, ""), Ur = ge(Be); Hr <= Ur.length; ) {
24885
24889
  switch (je = Ur[Hr], Ze) {
@@ -24889,10 +24893,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24889
24893
  Ze = Jr;
24890
24894
  continue;
24891
24895
  }
24892
- Ar += qe(je), Ze = Mr;
24896
+ Ar += We(je), Ze = Mr;
24893
24897
  break;
24894
24898
  case Mr:
24895
- if (je && (Ke(Sr, je) || je == "+" || je == "-" || je == ".")) Ar += qe(je);
24899
+ if (je && (Ke(Sr, je) || je == "+" || je == "-" || je == ".")) Ar += We(je);
24896
24900
  else {
24897
24901
  if (je != ":") {
24898
24902
  if (Xe) return "Invalid scheme";
@@ -24901,16 +24905,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24901
24905
  }
24902
24906
  if (Xe && (Me.isSpecial() != he(ci, Ar) || Ar == "file" && (Me.includesCredentials() || Me.port !== null) || Me.scheme == "file" && !Me.host)) return;
24903
24907
  if (Me.scheme = Ar, Xe) return void (Me.isSpecial() && ci[Me.scheme] == Me.port && (Me.port = null));
24904
- Ar = "", Me.scheme == "file" ? Ze = Hi : Me.isSpecial() && We && We.scheme == Me.scheme ? Ze = Je : Me.isSpecial() ? Ze = zr : Ur[Hr + 1] == "/" ? (Ze = Tr, Hr++) : (Me.cannotBeABaseURL = !0, Qe(Me.path, ""), Ze = Ji);
24908
+ Ar = "", Me.scheme == "file" ? Ze = Hi : Me.isSpecial() && qe && qe.scheme == Me.scheme ? Ze = Je : Me.isSpecial() ? Ze = zr : Ur[Hr + 1] == "/" ? (Ze = Tr, Hr++) : (Me.cannotBeABaseURL = !0, Qe(Me.path, ""), Ze = Ji);
24905
24909
  }
24906
24910
  break;
24907
24911
  case Jr:
24908
- if (!We || We.cannotBeABaseURL && je != "#") return "Invalid scheme";
24909
- if (We.cannotBeABaseURL && je == "#") {
24910
- Me.scheme = We.scheme, Me.path = me(We.path), Me.query = We.query, Me.fragment = "", Me.cannotBeABaseURL = !0, Ze = Ii;
24912
+ if (!qe || qe.cannotBeABaseURL && je != "#") return "Invalid scheme";
24913
+ if (qe.cannotBeABaseURL && je == "#") {
24914
+ Me.scheme = qe.scheme, Me.path = me(qe.path), Me.query = qe.query, Me.fragment = "", Me.cannotBeABaseURL = !0, Ze = Ii;
24911
24915
  break;
24912
24916
  }
24913
- Ze = We.scheme == "file" ? Hi : Or;
24917
+ Ze = qe.scheme == "file" ? Hi : Or;
24914
24918
  continue;
24915
24919
  case Je:
24916
24920
  if (je != "/" || Ur[Hr + 1] != "/") {
@@ -24927,21 +24931,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24927
24931
  Ze = Ti;
24928
24932
  continue;
24929
24933
  case Or:
24930
- if (Me.scheme = We.scheme, je == ne) Me.username = We.username, Me.password = We.password, Me.host = We.host, Me.port = We.port, Me.path = me(We.path), Me.query = We.query;
24934
+ if (Me.scheme = qe.scheme, je == ne) Me.username = qe.username, Me.password = qe.password, Me.host = qe.host, Me.port = qe.port, Me.path = me(qe.path), Me.query = qe.query;
24931
24935
  else if (je == "/" || je == "\\" && Me.isSpecial()) Ze = Nr;
24932
- else if (je == "?") Me.username = We.username, Me.password = We.password, Me.host = We.host, Me.port = We.port, Me.path = me(We.path), Me.query = "", Ze = Pi;
24936
+ else if (je == "?") Me.username = qe.username, Me.password = qe.password, Me.host = qe.host, Me.port = qe.port, Me.path = me(qe.path), Me.query = "", Ze = Pi;
24933
24937
  else {
24934
24938
  if (je != "#") {
24935
- Me.username = We.username, Me.password = We.password, Me.host = We.host, Me.port = We.port, Me.path = me(We.path), Me.path.length--, Ze = Ti;
24939
+ Me.username = qe.username, Me.password = qe.password, Me.host = qe.host, Me.port = qe.port, Me.path = me(qe.path), Me.path.length--, Ze = Ti;
24936
24940
  continue;
24937
24941
  }
24938
- Me.username = We.username, Me.password = We.password, Me.host = We.host, Me.port = We.port, Me.path = me(We.path), Me.query = We.query, Me.fragment = "", Ze = Ii;
24942
+ Me.username = qe.username, Me.password = qe.password, Me.host = qe.host, Me.port = qe.port, Me.path = me(qe.path), Me.query = qe.query, Me.fragment = "", Ze = Ii;
24939
24943
  }
24940
24944
  break;
24941
24945
  case Nr:
24942
24946
  if (!Me.isSpecial() || je != "/" && je != "\\") {
24943
24947
  if (je != "/") {
24944
- Me.username = We.username, Me.password = We.password, Me.host = We.host, Me.port = We.port, Ze = Ti;
24948
+ Me.username = qe.username, Me.password = qe.password, Me.host = qe.host, Me.port = qe.port, Ze = Ti;
24945
24949
  continue;
24946
24950
  }
24947
24951
  Ze = Si;
@@ -24998,9 +25002,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24998
25002
  if (!Ke(jr, je)) {
24999
25003
  if (je == ne || je == "/" || je == "?" || je == "#" || je == "\\" && Me.isSpecial() || Xe) {
25000
25004
  if (Ar != "") {
25001
- var qi = Ue(Ar, 10);
25002
- if (qi > 65535) return "Invalid port";
25003
- Me.port = Me.isSpecial() && qi === ci[Me.scheme] ? null : qi, Ar = "";
25005
+ var Wi = Ue(Ar, 10);
25006
+ if (Wi > 65535) return "Invalid port";
25007
+ Me.port = Me.isSpecial() && Wi === ci[Me.scheme] ? null : Wi, Ar = "";
25004
25008
  }
25005
25009
  if (Xe) return;
25006
25010
  Ze = Di;
@@ -25013,18 +25017,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25013
25017
  case Hi:
25014
25018
  if (Me.scheme = "file", je == "/" || je == "\\") Ze = Xi;
25015
25019
  else {
25016
- if (!We || We.scheme != "file") {
25020
+ if (!qe || qe.scheme != "file") {
25017
25021
  Ze = Ti;
25018
25022
  continue;
25019
25023
  }
25020
- if (je == ne) Me.host = We.host, Me.path = me(We.path), Me.query = We.query;
25021
- else if (je == "?") Me.host = We.host, Me.path = me(We.path), Me.query = "", Ze = Pi;
25024
+ if (je == ne) Me.host = qe.host, Me.path = me(qe.path), Me.query = qe.query;
25025
+ else if (je == "?") Me.host = qe.host, Me.path = me(qe.path), Me.query = "", Ze = Pi;
25022
25026
  else {
25023
25027
  if (je != "#") {
25024
- Er(hr(me(Ur, Hr), "")) || (Me.host = We.host, Me.path = me(We.path), Me.shortenPath()), Ze = Ti;
25028
+ Er(hr(me(Ur, Hr), "")) || (Me.host = qe.host, Me.path = me(qe.path), Me.shortenPath()), Ze = Ti;
25025
25029
  continue;
25026
25030
  }
25027
- Me.host = We.host, Me.path = me(We.path), Me.query = We.query, Me.fragment = "", Ze = Ii;
25031
+ Me.host = qe.host, Me.path = me(qe.path), Me.query = qe.query, Me.fragment = "", Ze = Ii;
25028
25032
  }
25029
25033
  }
25030
25034
  break;
@@ -25033,7 +25037,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25033
25037
  Ze = Ui;
25034
25038
  break;
25035
25039
  }
25036
- We && We.scheme == "file" && !Er(hr(me(Ur, Hr), "")) && (Xr(We.path[0], !0) ? Qe(Me.path, We.path[0]) : Me.host = We.host), Ze = Ti;
25040
+ qe && qe.scheme == "file" && !Er(hr(me(Ur, Hr), "")) && (Xr(qe.path[0], !0) ? Qe(Me.path, qe.path[0]) : Me.host = qe.host), Ze = Ti;
25037
25041
  continue;
25038
25042
  case Ui:
25039
25043
  if (je == ne || je == "/" || je == "\\" || je == "?" || je == "#") {
@@ -25060,7 +25064,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25060
25064
  break;
25061
25065
  case Ti:
25062
25066
  if (je == ne || je == "/" || je == "\\" && Me.isSpecial() || !Xe && (je == "?" || je == "#")) {
25063
- if ((Dr = qe(Dr = Ar)) === ".." || Dr === "%2e." || Dr === ".%2e" || Dr === "%2e%2e" ? (Me.shortenPath(), je == "/" || je == "\\" && Me.isSpecial() || Qe(Me.path, "")) : kr(Ar) ? je == "/" || je == "\\" && Me.isSpecial() || Qe(Me.path, "") : (Me.scheme == "file" && !Me.path.length && Xr(Ar) && (Me.host && (Me.host = ""), Ar = lr(Ar, 0) + ":"), Qe(Me.path, Ar)), Ar = "", Me.scheme == "file" && (je == ne || je == "?" || je == "#")) for (; Me.path.length > 1 && Me.path[0] === ""; ) Ir(Me.path);
25067
+ if ((Dr = We(Dr = Ar)) === ".." || Dr === "%2e." || Dr === ".%2e" || Dr === "%2e%2e" ? (Me.shortenPath(), je == "/" || je == "\\" && Me.isSpecial() || Qe(Me.path, "")) : kr(Ar) ? je == "/" || je == "\\" && Me.isSpecial() || Qe(Me.path, "") : (Me.scheme == "file" && !Me.path.length && Xr(Ar) && (Me.host && (Me.host = ""), Ar = lr(Ar, 0) + ":"), Qe(Me.path, Ar)), Ar = "", Me.scheme == "file" && (je == ne || je == "?" || je == "#")) for (; Me.path.length > 1 && Me.path[0] === ""; ) Ir(Me.path);
25064
25068
  je == "?" ? (Me.query = "", Ze = Pi) : je == "#" && (Me.fragment = "", Ze = Ii);
25065
25069
  } else Ar += ei(je, _i);
25066
25070
  break;
@@ -25076,7 +25080,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25076
25080
  Hr++;
25077
25081
  }
25078
25082
  }, parseHost: function(Be) {
25079
- var Xe, We, Ur;
25083
+ var Xe, qe, Ur;
25080
25084
  if (lr(Be, 0) == "[") {
25081
25085
  if (lr(Be, Be.length - 1) != "]" || !(Xe = (function(je) {
25082
25086
  var Kr, Vr, Dr, Me, Ze, Hr, Ar, Zr = [0, 0, 0, 0, 0, 0, 0, 0], ti = 0, Ei = null, vi = 0, ni = function() {
@@ -25148,7 +25152,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25148
25152
  this.host = Xe;
25149
25153
  } else {
25150
25154
  if (Ke(Ye, Be)) return "Invalid host";
25151
- for (Xe = "", We = ge(Be), Ur = 0; Ur < We.length; Ur++) Xe += ei(We[Ur], Br);
25155
+ for (Xe = "", qe = ge(Be), Ur = 0; Ur < qe.length; Ur++) Xe += ei(qe[Ur], Br);
25152
25156
  this.host = Xe;
25153
25157
  }
25154
25158
  }, cannotHaveUsernamePasswordPort: function() {
@@ -25161,8 +25165,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25161
25165
  var Be = this.path, Xe = Be.length;
25162
25166
  !Xe || this.scheme == "file" && Xe == 1 && Xr(Be[0], !0) || Be.length--;
25163
25167
  }, serialize: function() {
25164
- var Be = this, Xe = Be.scheme, We = Be.username, Ur = Be.password, je = Be.host, Kr = Be.port, Vr = Be.path, Dr = Be.query, Me = Be.fragment, Ze = Xe + ":";
25165
- return je !== null ? (Ze += "//", Be.includesCredentials() && (Ze += We + (Ur ? ":" + Ur : "") + "@"), Ze += xr(je), Kr !== null && (Ze += ":" + Kr)) : Xe == "file" && (Ze += "//"), Ze += Be.cannotBeABaseURL ? Vr[0] : Vr.length ? "/" + hr(Vr, "/") : "", Dr !== null && (Ze += "?" + Dr), Me !== null && (Ze += "#" + Me), Ze;
25168
+ var Be = this, Xe = Be.scheme, qe = Be.username, Ur = Be.password, je = Be.host, Kr = Be.port, Vr = Be.path, Dr = Be.query, Me = Be.fragment, Ze = Xe + ":";
25169
+ return je !== null ? (Ze += "//", Be.includesCredentials() && (Ze += qe + (Ur ? ":" + Ur : "") + "@"), Ze += xr(je), Kr !== null && (Ze += ":" + Kr)) : Xe == "file" && (Ze += "//"), Ze += Be.cannotBeABaseURL ? Vr[0] : Vr.length ? "/" + hr(Vr, "/") : "", Dr !== null && (Ze += "?" + Dr), Me !== null && (Ze += "#" + Me), Ze;
25166
25170
  }, setHref: function(Be) {
25167
25171
  var Xe = this.parse(Be);
25168
25172
  if (Xe) throw Fe(Xe);
@@ -25185,7 +25189,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25185
25189
  var Xe = ge(_e(Be));
25186
25190
  if (!this.cannotHaveUsernamePasswordPort()) {
25187
25191
  this.username = "";
25188
- for (var We = 0; We < Xe.length; We++) this.username += ei(Xe[We], pi);
25192
+ for (var qe = 0; qe < Xe.length; qe++) this.username += ei(Xe[qe], pi);
25189
25193
  }
25190
25194
  }, getPassword: function() {
25191
25195
  return this.password;
@@ -25193,7 +25197,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25193
25197
  var Xe = ge(_e(Be));
25194
25198
  if (!this.cannotHaveUsernamePasswordPort()) {
25195
25199
  this.password = "";
25196
- for (var We = 0; We < Xe.length; We++) this.password += ei(Xe[We], pi);
25200
+ for (var qe = 0; qe < Xe.length; qe++) this.password += ei(Xe[qe], pi);
25197
25201
  }
25198
25202
  }, getHost: function() {
25199
25203
  var Be = this.host, Xe = this.port;
@@ -25231,13 +25235,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25231
25235
  this.query = this.searchParams.serialize() || null;
25232
25236
  } };
25233
25237
  var Mi = function(Be) {
25234
- var Xe = fe(this, oi), We = Ie(arguments.length, 1) > 1 ? arguments[1] : void 0, Ur = Re(Xe, new ji(Be, !1, We));
25238
+ var Xe = fe(this, oi), qe = Ie(arguments.length, 1) > 1 ? arguments[1] : void 0, Ur = Re(Xe, new ji(Be, !1, qe));
25235
25239
  oe || (Xe.href = Ur.serialize(), Xe.origin = Ur.getOrigin(), Xe.protocol = Ur.getProtocol(), Xe.username = Ur.getUsername(), Xe.password = Ur.getPassword(), Xe.host = Ur.getHost(), Xe.hostname = Ur.getHostname(), Xe.port = Ur.getPort(), Xe.pathname = Ur.getPathname(), Xe.search = Ur.getSearch(), Xe.searchParams = Ur.getSearchParams(), Xe.hash = Ur.getHash());
25236
25240
  }, oi = Mi.prototype, gi = function(Be, Xe) {
25237
25241
  return { get: function() {
25238
25242
  return we(this)[Be]();
25239
- }, set: Xe && function(We) {
25240
- return we(this)[Xe](We);
25243
+ }, set: Xe && function(qe) {
25244
+ return we(this)[Xe](qe);
25241
25245
  }, configurable: !0, enumerable: !0 };
25242
25246
  };
25243
25247
  if (oe && (de(oi, "href", gi("serialize", "setHref")), de(oi, "origin", gi("getOrigin")), de(oi, "protocol", gi("getProtocol", "setProtocol")), de(oi, "username", gi("getUsername", "setUsername")), de(oi, "password", gi("getPassword", "setPassword")), de(oi, "host", gi("getHost", "setHost")), de(oi, "hostname", gi("getHostname", "setHostname")), de(oi, "port", gi("getPort", "setPort")), de(oi, "pathname", gi("getPathname", "setPathname")), de(oi, "search", gi("getSearch", "setSearch")), de(oi, "searchParams", gi("getSearchParams")), de(oi, "hash", gi("getHash", "setHash"))), le(oi, "toJSON", (function() {
@@ -25411,7 +25415,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25411
25415
  })), te.d(ne, "Version", (function() {
25412
25416
  return Oe;
25413
25417
  })), te.d(ne, "SdidPersistModeOff", (function() {
25414
- return qe;
25418
+ return We;
25415
25419
  })), te.d(ne, "SdidPersistModeAuto", (function() {
25416
25420
  return mr;
25417
25421
  })), te.d(ne, "SdidPersistModeManual", (function() {
@@ -25523,7 +25527,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25523
25527
  })), te.d(ae, "IsFirstVisit", (function() {
25524
25528
  return Xe;
25525
25529
  })), te.d(ae, "IsFirstPageVisitInSession", (function() {
25526
- return We;
25530
+ return qe;
25527
25531
  })), te.d(ae, "isAfterConversionEvent", (function() {
25528
25532
  return Ur;
25529
25533
  })), te.d(ae, "IsPageRefreshed", (function() {
@@ -25555,7 +25559,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25555
25559
  })), te.d(ae, "PreviousSdid", (function() {
25556
25560
  return Qi;
25557
25561
  })), te.d(ae, "ProductId", (function() {
25558
- return qi;
25562
+ return Wi;
25559
25563
  })), te.d(ae, "RevenueAmount", (function() {
25560
25564
  return Lo;
25561
25565
  })), te.d(ae, "RevenueCurrency", (function() {
@@ -25581,11 +25585,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25581
25585
  })), te.d(ae, "Timezone", (function() {
25582
25586
  return zo;
25583
25587
  })), te.d(ae, "TouchpointTimestamp", (function() {
25584
- return qo;
25588
+ return Wo;
25585
25589
  })), te.d(ae, "UserAgent", (function() {
25586
25590
  return go;
25587
25591
  })), te.d(ae, "UUID", (function() {
25588
- return Wo;
25592
+ return qo;
25589
25593
  })), te.d(ae, "UUID_REGEX", (function() {
25590
25594
  return Go;
25591
25595
  })), te.d(ae, "WebParams", (function() {
@@ -25679,42 +25683,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25679
25683
  })), te.d(fe, "SingularDeviceIdKey", (function() {
25680
25684
  return Os;
25681
25685
  }));
25682
- var he = te(2), pe = te.n(he), ge = te(4), me = te.n(ge), ye = te(0), ve = te.n(ye), _e = te(63), be = te.n(_e), Ie = te(64), Te = te.n(Ie), Se = te(40), Re = te.n(Se), we = te(18), Ae = te.n(we), Pe = te(41), Ne = te.n(Pe), Fe = te(34), Ue = te.n(Fe), He = te(42), ze = te.n(He), lr = te(19), Ke = te.n(lr), hr = te(32), fr = te.n(hr), dr = te(25), Qe = te.n(dr), Bt = te(33), Ir = te.n(Bt), $e = 30, Oe = "WebSDK-v".concat("1.4.8"), qe = "off", mr = "auto", ur = "manual", Sr = "__singular_ddl__", jr = "onbeforeunload", Fr = "conversion_event", Yr = "custom_user_id_event", Qr = "event", ii = "page_visit", Gr = "__PAGE_VISIT__", Ye = "setMatchId", Cr = "fetch_banner", Rr = "singular_api_queue", xr = "singular_custom_user_id", Br = "banner_last_dismissed", ui = "did_visit_site", _i = "did_send_event", pi = "conversion_event_occurred", ei = "global", ci = "global_properties", Xr = 1e3, Er = "singular_session_id", kr = "singular_first_page_visit_occurred", Pr = "first_page_visit_url", Mr = "singular_id", Jr = "match_id", Je = "singular_instance_id", Tr = "singular_storage_enabled_test", Or = "test_value", Nr = "last_event_timestamp", zr = "touchpoint_timestamp", hi = "web_url", Si = { Local: "local", Session: "session", Memory: "memory" }, wi = "n", bi = "browser_available_memory", Oi = "browser_used_memory", Hi = "counter_banner_showed", Xi = "source_url", Ui = "client_hints", Di = "custom_user_id", Ti = "current_device_time", Ji = "_dl", Pi = "_ddl", Ii = "document_referrer", ji = "event_id", Mi = "n", oi = "product_name", gi = "e", zi = "global_properties", Zi = "conversion_event", Be = "first", Xe = "is_first_visit", We = "is_first_page_visit_in_session", Ur = "is_after_conversion_event", je = "is_page_refreshed", Kr = "is_revenue_event", Vr = "is_set_match_id", Dr = "k", Me = "lag", Ze = "l", Hr = "match_id", Ar = "os", Zr = "ecid", ti = "a", Ei = "_p", vi = "p", ni = "Web", Qi = "prev_sdid", qi = "i", Lo = "r", No = "pcc", Do = "screen_height", Mo = "screen_width", Uo = "sdid_persist_mode", $o = "sdid_persist_failed_reason", Fo = "sdk", Bo = "s", Vo = "SDID", Ho = "singular_instance_id", jo = "storage_type", zo = "timezone", qo = "touchpoint_timestamp", go = "device_user_agent", Wo = "u", Go = "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$", Ko = "_web_params", mo = "web_url", Yo = "last_dismissed", Xo = "bn", Jo = "baid", Zo = "utm_source", Qo = { clid_params: ["clid="], singular_p_params: ["pcnid=", "pcrnid=", "pcid=", "pcn=", "psc=", "pscid=", "pscn=", "pcrid=", "pcrn=", "ps=", "psid=", "psn=", "pshid=", "paffid=", "paffn=", "pcc=", "psrc=", "pmed="], singular_wp_params: ["wpcid=", "wpcn=", "wpsc=", "wpscid=", "wpscn=", "wpcrid=", "wpcrn=", "wps=", "wpsid=", "wpsn=", "wpshid=", "wpaffid=", "wpaffn=", "wpkw=", "wpsrc=", "wpmed="], utm_params: ["utm_.+="], additional_params: ["kw=", "an=", "ud="] }, ts = "https://sdk-api-v1.singular.net/api/v1/", rs = "Content-Type", ns = "application/json", is = { Session: "start", Event: "event", DeviceCustomUserId: "set_device_for_custom_id", FetchBanner: "banners" }, os = "POST", ss = "GET", as = [zi, gi, mo, go, oi, Ii, Ui], us = "status", cs = 3e4, ls = "ok", ds = 200, fs = "link", ps = "Android", hs = "iOS", gs = "Linux", ms = "MacOS", vs = "Unknown", ys = "Windows", _s = ["iPhone", "iPad", "iPod"], bs = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"], Es = ["Win32", "Win64", "Windows", "WinCE"], Ss = 3, Ts = 2, Is = 1, Cs = 0, ws = ["platformVersion", vo, "uaFullVersion", "model", "architecture"], vo = "platform", As = "domain", xs = "expires", yo = 864e5, _o = 2592e3, Rs = 365 * yo, Os = "singular_device_id", Ps = te(188), ks = te.n(Ps), Ls = te(189), Ns = te.n(Ls), Ds = te(100), bo = te.n(Ds), Ms = te(53), Wi = te.n(Ms), Us = te(35), $i = te.n(Us), $s = te(79), io = te.n($s), Fs = te(11), si = te.n(Fs), Bs = te(3), qr = te.n(Bs), Vs = te(190), Hs = te.n(Vs), js = te(191), zs = te.n(js), qs = te(22), ki = te.n(qs), Ws = te(23), Ai = te.n(Ws), Gs = te(43), Fi = te.n(Gs), Ks = te(65), eo = te.n(Ks), Ys = te(101), Eo = te.n(Ys), Xs = te(192), Js = te.n(Xs), Zs = te(193), Qs = te.n(Zs), yr = (function() {
25686
+ var he = te(2), pe = te.n(he), ge = te(4), me = te.n(ge), ye = te(0), ve = te.n(ye), _e = te(63), be = te.n(_e), Ie = te(64), Te = te.n(Ie), Se = te(40), Re = te.n(Se), we = te(18), Ae = te.n(we), Pe = te(41), Ne = te.n(Pe), Fe = te(34), Ue = te.n(Fe), He = te(42), ze = te.n(He), lr = te(19), Ke = te.n(lr), hr = te(32), fr = te.n(hr), dr = te(25), Qe = te.n(dr), Bt = te(33), Ir = te.n(Bt), $e = 30, Oe = "WebSDK-v".concat("1.4.8"), We = "off", mr = "auto", ur = "manual", Sr = "__singular_ddl__", jr = "onbeforeunload", Fr = "conversion_event", Yr = "custom_user_id_event", Qr = "event", ii = "page_visit", Gr = "__PAGE_VISIT__", Ye = "setMatchId", Cr = "fetch_banner", Rr = "singular_api_queue", xr = "singular_custom_user_id", Br = "banner_last_dismissed", ui = "did_visit_site", _i = "did_send_event", pi = "conversion_event_occurred", ei = "global", ci = "global_properties", Xr = 1e3, Er = "singular_session_id", kr = "singular_first_page_visit_occurred", Pr = "first_page_visit_url", Mr = "singular_id", Jr = "match_id", Je = "singular_instance_id", Tr = "singular_storage_enabled_test", Or = "test_value", Nr = "last_event_timestamp", zr = "touchpoint_timestamp", hi = "web_url", Si = { Local: "local", Session: "session", Memory: "memory" }, wi = "n", bi = "browser_available_memory", Oi = "browser_used_memory", Hi = "counter_banner_showed", Xi = "source_url", Ui = "client_hints", Di = "custom_user_id", Ti = "current_device_time", Ji = "_dl", Pi = "_ddl", Ii = "document_referrer", ji = "event_id", Mi = "n", oi = "product_name", gi = "e", zi = "global_properties", Zi = "conversion_event", Be = "first", Xe = "is_first_visit", qe = "is_first_page_visit_in_session", Ur = "is_after_conversion_event", je = "is_page_refreshed", Kr = "is_revenue_event", Vr = "is_set_match_id", Dr = "k", Me = "lag", Ze = "l", Hr = "match_id", Ar = "os", Zr = "ecid", ti = "a", Ei = "_p", vi = "p", ni = "Web", Qi = "prev_sdid", Wi = "i", Lo = "r", No = "pcc", Do = "screen_height", Mo = "screen_width", Uo = "sdid_persist_mode", $o = "sdid_persist_failed_reason", Fo = "sdk", Bo = "s", Vo = "SDID", Ho = "singular_instance_id", jo = "storage_type", zo = "timezone", Wo = "touchpoint_timestamp", go = "device_user_agent", qo = "u", Go = "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$", Ko = "_web_params", mo = "web_url", Yo = "last_dismissed", Xo = "bn", Jo = "baid", Zo = "utm_source", Qo = { clid_params: ["clid="], singular_p_params: ["pcnid=", "pcrnid=", "pcid=", "pcn=", "psc=", "pscid=", "pscn=", "pcrid=", "pcrn=", "ps=", "psid=", "psn=", "pshid=", "paffid=", "paffn=", "pcc=", "psrc=", "pmed="], singular_wp_params: ["wpcid=", "wpcn=", "wpsc=", "wpscid=", "wpscn=", "wpcrid=", "wpcrn=", "wps=", "wpsid=", "wpsn=", "wpshid=", "wpaffid=", "wpaffn=", "wpkw=", "wpsrc=", "wpmed="], utm_params: ["utm_.+="], additional_params: ["kw=", "an=", "ud="] }, ts = "https://sdk-api-v1.singular.net/api/v1/", rs = "Content-Type", ns = "application/json", is = { Session: "start", Event: "event", DeviceCustomUserId: "set_device_for_custom_id", FetchBanner: "banners" }, os = "POST", ss = "GET", as = [zi, gi, mo, go, oi, Ii, Ui], us = "status", cs = 3e4, ls = "ok", ds = 200, fs = "link", ps = "Android", hs = "iOS", gs = "Linux", ms = "MacOS", vs = "Unknown", ys = "Windows", _s = ["iPhone", "iPad", "iPod"], bs = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"], Es = ["Win32", "Win64", "Windows", "WinCE"], Ss = 3, Ts = 2, Is = 1, Cs = 0, ws = ["platformVersion", vo, "uaFullVersion", "model", "architecture"], vo = "platform", As = "domain", xs = "expires", yo = 864e5, _o = 2592e3, Rs = 365 * yo, Os = "singular_device_id", Ps = te(188), ks = te.n(Ps), Ls = te(189), Ns = te.n(Ls), Ds = te(100), bo = te.n(Ds), Ms = te(53), qi = te.n(Ms), Us = te(35), $i = te.n(Us), $s = te(79), io = te.n($s), Fs = te(11), si = te.n(Fs), Bs = te(3), Wr = te.n(Bs), Vs = te(190), Hs = te.n(Vs), js = te(191), zs = te.n(js), Ws = te(22), ki = te.n(Ws), qs = te(23), Ai = te.n(qs), Gs = te(43), Fi = te.n(Gs), Ks = te(65), eo = te.n(Ks), Ys = te(101), Eo = te.n(Ys), Xs = te(192), Js = te.n(Xs), Zs = te(193), Qs = te.n(Zs), yr = (function() {
25683
25687
  function Ve() {
25684
25688
  pe()(this, Ve);
25685
25689
  }
25686
25690
  var Ee, Ce, xe, De;
25687
25691
  return me()(Ve, null, [{ key: "generateUUID", value: function() {
25688
- var ke = window.crypto ? window.crypto : window.msCrypto;
25689
- return ke && ke.getRandomValues && ke.getRandomValues(new Uint8Array(1)) || (ke = { getRandomValues: function(Ge) {
25692
+ var Le = window.crypto ? window.crypto : window.msCrypto;
25693
+ return Le && Le.getRandomValues && Le.getRandomValues(new Uint8Array(1)) || (Le = { getRandomValues: function(Ge) {
25690
25694
  return Qs()(Ge);
25691
25695
  } }), ("10000000-1000-4000-8000" + -1e11).replace(/[018]/g, (function(Ge) {
25692
- return (Ge ^ ke.getRandomValues(new Uint8Array(1))[0] & 15 >> Ge / 4).toString(16);
25696
+ return (Ge ^ Le.getRandomValues(new Uint8Array(1))[0] & 15 >> Ge / 4).toString(16);
25693
25697
  }));
25694
- } }, { key: "isUUID", value: function(ke) {
25695
- return RegExp(ae.UUID_REGEX).test(ke);
25698
+ } }, { key: "isUUID", value: function(Le) {
25699
+ return RegExp(ae.UUID_REGEX).test(Le);
25696
25700
  } }, { key: "getCurrentTimestamp", value: function() {
25697
25701
  return Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3);
25698
- } }, { key: "getOS", value: (De = ki()(si.a.mark((function ke() {
25702
+ } }, { key: "getOS", value: (De = ki()(si.a.mark((function Le() {
25699
25703
  var Ge, gr, br, vr, _r;
25700
25704
  return si.a.wrap((function(wr) {
25701
25705
  for (; ; ) switch (wr.prev = wr.next) {
25702
25706
  case 0:
25703
25707
  return wr.prev = 0, vr = navigator.platform || "", wr.next = 4, this._getUserAgentInfo();
25704
25708
  case 4:
25705
- if (_r = wr.sent, !Wi()(Ge = ce.MacOsPlatforms).call(Ge, vr)) {
25709
+ if (_r = wr.sent, !qi()(Ge = ce.MacOsPlatforms).call(Ge, vr)) {
25706
25710
  wr.next = 9;
25707
25711
  break;
25708
25712
  }
25709
25713
  return wr.abrupt("return", ce.MacOs);
25710
25714
  case 9:
25711
- if (!Wi()(gr = ce.iOSPlatforms).call(gr, vr) && !/iPad|iPhone|iPod/.test(_r)) {
25715
+ if (!qi()(gr = ce.iOSPlatforms).call(gr, vr) && !/iPad|iPhone|iPod/.test(_r)) {
25712
25716
  wr.next = 13;
25713
25717
  break;
25714
25718
  }
25715
25719
  return wr.abrupt("return", ce.iOS);
25716
25720
  case 13:
25717
- if (!Wi()(br = ce.WindowsPlatforms).call(br, vr)) {
25721
+ if (!qi()(br = ce.WindowsPlatforms).call(br, vr)) {
25718
25722
  wr.next = 17;
25719
25723
  break;
25720
25724
  }
@@ -25742,13 +25746,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25742
25746
  case "end":
25743
25747
  return wr.stop();
25744
25748
  }
25745
- }), ke, this, [[0, 25]]);
25749
+ }), Le, this, [[0, 25]]);
25746
25750
  }))), function() {
25747
25751
  return De.apply(this, arguments);
25748
- }) }, { key: "isNullOrEmpty", value: function(ke) {
25749
- return ke == null || ke === "";
25750
- } }, { key: "calculateHash", value: function(ke, Ge) {
25751
- return Js.a.hex(Ge + ke);
25752
+ }) }, { key: "isNullOrEmpty", value: function(Le) {
25753
+ return Le == null || Le === "";
25754
+ } }, { key: "calculateHash", value: function(Le, Ge) {
25755
+ return Js.a.hex(Ge + Le);
25752
25756
  } }, { key: "getTimeZone", value: function() {
25753
25757
  return (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1];
25754
25758
  } }, { key: "getBrowserAvailableMemory", value: function() {
@@ -25763,33 +25767,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25763
25767
  } catch {
25764
25768
  return null;
25765
25769
  }
25766
- } }, { key: "buildWebToAppLink", value: function(ke, Ge, gr, br, vr) {
25770
+ } }, { key: "buildWebToAppLink", value: function(Le, Ge, gr, br, vr) {
25767
25771
  var _r, wr;
25768
- if (!this.isValidUrl(ke)) return null;
25769
- var $r = this.parseQueryFromUrl(ke), di = this.extractQueryStringWithFragment(Ge);
25772
+ if (!this.isValidUrl(Le)) return null;
25773
+ var $r = this.parseQueryFromUrl(Le), di = this.extractQueryStringWithFragment(Ge);
25770
25774
  this.isNullOrEmpty(di) || ($r[ae.WebParams] = di), this.isNullOrEmpty(gr) || ($r[ae.DeeplinkParam] = gr), this.isNullOrEmpty(br) || ($r[ae.PassthroughParam] = br), this.isNullOrEmpty(vr) || ($r[ae.DeferredDeeplinkParam] = vr);
25771
25775
  var fi = bo()(_r = Ke()($r)).call(_r, (function(yi) {
25772
25776
  var Ci;
25773
- return qr()(Ci = "".concat(encodeURIComponent(yi), "=")).call(Ci, encodeURIComponent($r[yi]));
25777
+ return Wr()(Ci = "".concat(encodeURIComponent(yi), "=")).call(Ci, encodeURIComponent($r[yi]));
25774
25778
  }));
25775
- return qr()(wr = "".concat(this.extractUrlWithPath(ke), "?")).call(wr, fi.join("&"));
25776
- } }, { key: "parseQueryFromUrl", value: function(ke) {
25777
- if (this.isNullOrEmpty(ke)) return {};
25778
- var Ge = ke.split("?");
25779
+ return Wr()(wr = "".concat(this.extractUrlWithPath(Le), "?")).call(wr, fi.join("&"));
25780
+ } }, { key: "parseQueryFromUrl", value: function(Le) {
25781
+ if (this.isNullOrEmpty(Le)) return {};
25782
+ var Ge = Le.split("?");
25779
25783
  if (Ge.length <= 1) return {};
25780
25784
  for (var gr = {}, br = Ge[1].split("#")[0].split("&"), vr = 0; vr < br.length; vr++) {
25781
25785
  var _r = br[vr].split("=");
25782
25786
  gr[decodeURIComponent(_r[0])] = decodeURIComponent(_r[1] || "");
25783
25787
  }
25784
25788
  return gr;
25785
- } }, { key: "extractUrlWithPath", value: function(ke) {
25786
- return this.isNullOrEmpty(ke) ? null : ke.split("?")[0];
25787
- } }, { key: "isValidUrl", value: function(ke) {
25788
- return this.isNullOrEmpty(ke) ? !1 : /(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(ke);
25789
- } }, { key: "extractQueryStringWithFragment", value: function(ke) {
25790
- if (this.isNullOrEmpty(ke)) return null;
25791
- var Ge = ke.split("?");
25792
- return Ge.length >= 2 && !this.isNullOrEmpty(Ge[1]) || (Ge = ke.split("#")).length >= 2 && !this.isNullOrEmpty(Ge[1]) ? Ge[1] : "";
25789
+ } }, { key: "extractUrlWithPath", value: function(Le) {
25790
+ return this.isNullOrEmpty(Le) ? null : Le.split("?")[0];
25791
+ } }, { key: "isValidUrl", value: function(Le) {
25792
+ return this.isNullOrEmpty(Le) ? !1 : /(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(Le);
25793
+ } }, { key: "extractQueryStringWithFragment", value: function(Le) {
25794
+ if (this.isNullOrEmpty(Le)) return null;
25795
+ var Ge = Le.split("?");
25796
+ return Ge.length >= 2 && !this.isNullOrEmpty(Ge[1]) || (Ge = Le.split("#")).length >= 2 && !this.isNullOrEmpty(Ge[1]) ? Ge[1] : "";
25793
25797
  } }, { key: "isPageRefreshed", value: function() {
25794
25798
  try {
25795
25799
  if (!window.performance || window.performance.navigation.type !== 1) return !1;
@@ -25799,28 +25803,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25799
25803
  return !0;
25800
25804
  } }, { key: "getClientHints", value: function() {
25801
25805
  return this._getDataFromClientHints(de.HighEntropyValuesKeys);
25802
- } }, { key: "setSdkWrapper", value: function(ke) {
25803
- Ve.isNullOrEmpty(ke) || (this._sdkWrapper = ke);
25806
+ } }, { key: "setSdkWrapper", value: function(Le) {
25807
+ Ve.isNullOrEmpty(Le) || (this._sdkWrapper = Le);
25804
25808
  } }, { key: "getSdkVersion", value: function() {
25805
- var ke;
25806
- return this._sdkWrapper ? qr()(ke = "".concat(ne.Version, "-")).call(ke, this._sdkWrapper) : ne.Version;
25807
- } }, { key: "getCookie", value: function(ke) {
25809
+ var Le;
25810
+ return this._sdkWrapper ? Wr()(Le = "".concat(ne.Version, "-")).call(Le, this._sdkWrapper) : ne.Version;
25811
+ } }, { key: "getCookie", value: function(Le) {
25808
25812
  var Ge = document.cookie;
25809
25813
  if (Ve.isNullOrEmpty(Ge)) return null;
25810
- var gr = document.cookie.split(";"), br = ke + "=", vr = null;
25814
+ var gr = document.cookie.split(";"), br = Le + "=", vr = null;
25811
25815
  return Ae()(gr).call(gr, (function(_r) {
25812
25816
  _r = Eo()(_r).call(_r), eo()(_r).call(_r, br) === 0 && (vr = decodeURIComponent(_r.substring(br.length, _r.length)));
25813
25817
  })), vr;
25814
- } }, { key: "setCookie", value: function(ke, Ge, gr) {
25818
+ } }, { key: "setCookie", value: function(Le, Ge, gr) {
25815
25819
  var br, vr, _r, wr, $r;
25816
- if (!(Ve.isNullOrEmpty(ke) || Ve.isNullOrEmpty(Ge) || Ve.isNullOrEmpty(gr))) {
25820
+ if (!(Ve.isNullOrEmpty(Le) || Ve.isNullOrEmpty(Ge) || Ve.isNullOrEmpty(gr))) {
25817
25821
  var di = Ve._getCookieExpirationDate();
25818
- document.cookie = qr()(br = qr()(vr = qr()(_r = qr()(wr = qr()($r = "".concat(ke, "=")).call($r, encodeURIComponent(Ge), "; ")).call(wr, fe.CookieDomainKey, "=")).call(_r, gr, "; ")).call(vr, fe.CookieExpiresKey, "=")).call(br, di.toGMTString(), "; path=/");
25822
+ document.cookie = Wr()(br = Wr()(vr = Wr()(_r = Wr()(wr = Wr()($r = "".concat(Le, "=")).call($r, encodeURIComponent(Ge), "; ")).call(wr, fe.CookieDomainKey, "=")).call(_r, gr, "; ")).call(vr, fe.CookieExpiresKey, "=")).call(br, di.toGMTString(), "; path=/");
25819
25823
  }
25820
25824
  } }, { key: "_getCookieExpirationDate", value: function() {
25821
- var ke = /* @__PURE__ */ new Date();
25822
- return ke.setTime(ke.getTime() + fe.CookieExpirationInDays), ke;
25823
- } }, { key: "_getUserAgentInfo", value: (xe = ki()(si.a.mark((function ke() {
25825
+ var Le = /* @__PURE__ */ new Date();
25826
+ return Le.setTime(Le.getTime() + fe.CookieExpirationInDays), Le;
25827
+ } }, { key: "_getUserAgentInfo", value: (xe = ki()(si.a.mark((function Le() {
25824
25828
  return si.a.wrap((function(Ge) {
25825
25829
  for (; ; ) switch (Ge.prev = Ge.next) {
25826
25830
  case 0:
@@ -25837,10 +25841,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25837
25841
  case "end":
25838
25842
  return Ge.stop();
25839
25843
  }
25840
- }), ke, this);
25844
+ }), Le, this);
25841
25845
  }))), function() {
25842
25846
  return xe.apply(this, arguments);
25843
- }) }, { key: "_getClientHintsPlatform", value: (Ce = ki()(si.a.mark((function ke() {
25847
+ }) }, { key: "_getClientHintsPlatform", value: (Ce = ki()(si.a.mark((function Le() {
25844
25848
  var Ge;
25845
25849
  return si.a.wrap((function(gr) {
25846
25850
  for (; ; ) switch (gr.prev = gr.next) {
@@ -25858,10 +25862,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25858
25862
  case "end":
25859
25863
  return gr.stop();
25860
25864
  }
25861
- }), ke, this);
25865
+ }), Le, this);
25862
25866
  }))), function() {
25863
25867
  return Ce.apply(this, arguments);
25864
- }) }, { key: "_getDataFromClientHints", value: (Ee = ki()(si.a.mark((function ke(Ge) {
25868
+ }) }, { key: "_getDataFromClientHints", value: (Ee = ki()(si.a.mark((function Le(Ge) {
25865
25869
  return si.a.wrap((function(gr) {
25866
25870
  for (; ; ) switch (gr.prev = gr.next) {
25867
25871
  case 0:
@@ -25878,13 +25882,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25878
25882
  case "end":
25879
25883
  return gr.stop();
25880
25884
  }
25881
- }), ke);
25882
- }))), function(ke) {
25885
+ }), Le);
25886
+ }))), function(Le) {
25883
25887
  return Ee.apply(this, arguments);
25884
- }) }, { key: "extractMarketingData", value: function(ke) {
25888
+ }) }, { key: "extractMarketingData", value: function(Le) {
25885
25889
  var Ge = [], gr = !0, br = !1, vr = void 0;
25886
25890
  try {
25887
- for (var _r, wr = Fi()(ke); !(gr = (_r = wr.next()).done); gr = !0) {
25891
+ for (var _r, wr = Fi()(Le); !(gr = (_r = wr.next()).done); gr = !0) {
25888
25892
  var $r = _r.value;
25889
25893
  for (var di in ae.WebUrlMarketingParams) {
25890
25894
  var fi = !0, yi = !1, Ci = void 0;
@@ -25914,9 +25918,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25914
25918
  }
25915
25919
  }
25916
25920
  return Ge;
25917
- } }, { key: "appendQueryParamsToUrl", value: function(ke, Ge, gr) {
25921
+ } }, { key: "appendQueryParamsToUrl", value: function(Le, Ge, gr) {
25918
25922
  var br, vr, _r;
25919
- return qr()(br = qr()(vr = qr()(_r = "".concat(gr.split(ke)[0], "?")).call(_r, Ge)).call(vr, ke == "?" ? "&" : "#")).call(br, gr.split(ke)[1]);
25923
+ return Wr()(br = Wr()(vr = Wr()(_r = "".concat(gr.split(Le)[0], "?")).call(_r, Ge)).call(vr, Le == "?" ? "&" : "#")).call(br, gr.split(Le)[1]);
25920
25924
  } }]), Ve;
25921
25925
  })(), ea = te(102), So = te.n(ea), ta = te(194), ra = te.n(ta), na = te(122), To = te.n(na), ia = te(195), oa = te.n(ia), sa = te(196), aa = te.n(sa), ua = te(50), Gi = te.n(ua), ri = (function() {
25922
25926
  function Ve() {
@@ -25939,13 +25943,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25939
25943
  }
25940
25944
  return me()(Ve, [{ key: "getItem", value: function(Ee) {
25941
25945
  var Ce;
25942
- return yr.isNullOrEmpty(Ee) || !this._isInitialized ? null : this._storage.getItem(qr()(Ce = "".concat(this._storagePrefix, "_")).call(Ce, Ee));
25946
+ return yr.isNullOrEmpty(Ee) || !this._isInitialized ? null : this._storage.getItem(Wr()(Ce = "".concat(this._storagePrefix, "_")).call(Ce, Ee));
25943
25947
  } }, { key: "setItem", value: function(Ee, Ce) {
25944
25948
  var xe;
25945
- !yr.isNullOrEmpty(Ee) && Ce && this._isInitialized && this._storage.setItem(qr()(xe = "".concat(this._storagePrefix, "_")).call(xe, Ee), Ce);
25949
+ !yr.isNullOrEmpty(Ee) && Ce && this._isInitialized && this._storage.setItem(Wr()(xe = "".concat(this._storagePrefix, "_")).call(xe, Ee), Ce);
25946
25950
  } }, { key: "removeItem", value: function(Ee) {
25947
25951
  var Ce;
25948
- !yr.isNullOrEmpty(Ee) && this._isInitialized && this._storage.removeItem(qr()(Ce = "".concat(this._storagePrefix, "_")).call(Ce, Ee));
25952
+ !yr.isNullOrEmpty(Ee) && this._isInitialized && this._storage.removeItem(Wr()(Ce = "".concat(this._storagePrefix, "_")).call(Ce, Ee));
25949
25953
  } }, { key: "_buildMemoryStorage", value: function() {
25950
25954
  var Ee = this;
25951
25955
  ri.warn("Using memory storage"), this._storage = { _data: {}, setItem: function(Ce, xe) {
@@ -25987,8 +25991,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
25987
25991
  } }, { key: "loadSingularPersistentData", value: function() {
25988
25992
  this._sdidPersistMode = ne.SdidPersistModeOff, this._sdidPersistFailReason = null, this._previousSdid = null, this._singularDeviceId = null, this._instanceId = null, this._matchId = null, this.getSingularDeviceId(), this.getCustomUserId(), this.getSingularInstanceId(), this._persistSingularDeviceIdIfNeeded();
25989
25993
  } }, { key: "setWebUrl", value: function() {
25990
- var Ee = this._storage.getItem(se.StorageWebUrlKey), Ce = this._storage.getItem(se.StorageTouchpointTimestampKey), xe = window.location.href, De = this._isWebUrlContainingMarketingData(xe), ke = !Ee, Ge = this._didWebUrlChange(xe);
25991
- ke || De && Ge ? (De && (ke || Ge) && this.setConversionEventOccurred(!0), this._webUrl = xe, this._touchpointTimestamp = yr.getCurrentTimestamp(), this._storage.setItem(se.StorageWebUrlKey, this._webUrl), this._storage.setItem(se.StorageTouchpointTimestampKey, this._touchpointTimestamp), this._newSessionIdNeeded = !0) : (this._webUrl = Ee, this._touchpointTimestamp = Ce);
25994
+ var Ee = this._storage.getItem(se.StorageWebUrlKey), Ce = this._storage.getItem(se.StorageTouchpointTimestampKey), xe = window.location.href, De = this._isWebUrlContainingMarketingData(xe), Le = !Ee, Ge = this._didWebUrlChange(xe);
25995
+ Le || De && Ge ? (De && (Le || Ge) && this.setConversionEventOccurred(!0), this._webUrl = xe, this._touchpointTimestamp = yr.getCurrentTimestamp(), this._storage.setItem(se.StorageWebUrlKey, this._webUrl), this._storage.setItem(se.StorageTouchpointTimestampKey, this._touchpointTimestamp), this._newSessionIdNeeded = !0) : (this._webUrl = Ee, this._touchpointTimestamp = Ce);
25992
25996
  } }, { key: "getSingularDeviceId", value: function() {
25993
25997
  if (this._singularDeviceId) return this._singularDeviceId;
25994
25998
  var Ee = this._singularDeviceIdStorage.getItem(se.SingularDeviceIdKey);
@@ -26006,7 +26010,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26006
26010
  return this._previousSdid;
26007
26011
  } }, { key: "getStoragePrefix", value: function() {
26008
26012
  var Ee;
26009
- return qr()(Ee = "".concat(this._singularConfig.apikey, "_")).call(Ee, this._singularConfig.productId);
26013
+ return Wr()(Ee = "".concat(this._singularConfig.apikey, "_")).call(Ee, this._singularConfig.productId);
26010
26014
  } }, { key: "getCustomUserId", value: function() {
26011
26015
  return this._customUserId || (this._customUserId = this._storage.getItem(se.CustomUserIdKey)), this._customUserId;
26012
26016
  } }, { key: "getWebUrl", value: function() {
@@ -26047,7 +26051,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26047
26051
  xe[Ee] = Ce, this._storage.setItem(se.GlobalProperties, Ai()(xe));
26048
26052
  }
26049
26053
  } }, { key: "IsFirstEvent", value: function(Ee) {
26050
- var Ce, xe = qr()(Ce = "".concat(se.DidSendEventKeyBase, ".")).call(Ce, Ee), De = !!this._storage.getItem(xe);
26054
+ var Ce, xe = Wr()(Ce = "".concat(se.DidSendEventKeyBase, ".")).call(Ce, Ee), De = !!this._storage.getItem(xe);
26051
26055
  return De || this._storage.setItem(xe, !0), !De;
26052
26056
  } }, { key: "updateLastEventTimestamp", value: function() {
26053
26057
  this._storage.setItem(se.StorageLastEventTimestamp, yr.getCurrentTimestamp());
@@ -26072,7 +26076,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26072
26076
  try {
26073
26077
  var Ce = new Gi.a(Ee).searchParams;
26074
26078
  for (var xe in ae.WebUrlMarketingParams) {
26075
- var De = !0, ke = !1, Ge = void 0;
26079
+ var De = !0, Le = !1, Ge = void 0;
26076
26080
  try {
26077
26081
  for (var gr, br = Fi()(ae.WebUrlMarketingParams[xe]); !(De = (gr = br.next()).done); De = !0) {
26078
26082
  var vr = gr.value;
@@ -26098,12 +26102,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26098
26102
  }
26099
26103
  }
26100
26104
  } catch (no) {
26101
- ke = !0, Ge = no;
26105
+ Le = !0, Ge = no;
26102
26106
  } finally {
26103
26107
  try {
26104
26108
  De || br.return == null || br.return();
26105
26109
  } finally {
26106
- if (ke) throw Ge;
26110
+ if (Le) throw Ge;
26107
26111
  }
26108
26112
  }
26109
26113
  }
@@ -26131,8 +26135,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26131
26135
  } }, { key: "_didWebUrlChange", value: function(Ee) {
26132
26136
  var Ce = new To.a(this._storage.getItem(se.StorageWebUrlKey)), xe = new To.a(Ee);
26133
26137
  if (Ce.size !== xe.size) return !0;
26134
- for (var De = 0, ke = ra()(So()(xe).call(xe)); De < ke.length; De++) {
26135
- var Ge = $i()(ke[De], 2), gr = Ge[0], br = Ge[1];
26138
+ for (var De = 0, Le = ra()(So()(xe).call(xe)); De < Le.length; De++) {
26139
+ var Ge = $i()(Le[De], 2), gr = Ge[0], br = Ge[1];
26136
26140
  if (Ce.get(gr) !== br) return !0;
26137
26141
  }
26138
26142
  return !1;
@@ -26166,14 +26170,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26166
26170
  function ca(Ve) {
26167
26171
  for (var Ee = 1; Ee < arguments.length; Ee++) {
26168
26172
  var Ce, xe = arguments[Ee] != null ? arguments[Ee] : {};
26169
- if (Ee % 2) Ae()(Ce = Io(xe, !0)).call(Ce, (function(ke) {
26170
- ve()(Ve, ke, xe[ke]);
26173
+ if (Ee % 2) Ae()(Ce = Io(xe, !0)).call(Ce, (function(Le) {
26174
+ ve()(Ve, Le, xe[Le]);
26171
26175
  }));
26172
26176
  else if (Re.a) Te()(Ve, Re()(xe));
26173
26177
  else {
26174
26178
  var De;
26175
- Ae()(De = Io(xe)).call(De, (function(ke) {
26176
- be()(Ve, ke, Ne()(xe, ke));
26179
+ Ae()(De = Io(xe)).call(De, (function(Le) {
26180
+ be()(Ve, Le, Ne()(xe, Le));
26177
26181
  }));
26178
26182
  }
26179
26183
  }
@@ -26190,18 +26194,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26190
26194
  this._params = (Ce = {}, ve()(Ce, ae.BrowserAvailableMemory, yr.getBrowserAvailableMemory()), ve()(Ce, ae.BrowserUsedMemory, yr.getBrowserUsedMemory()), ve()(Ce, ae.CustomUserId, Lr.getInstance().getCustomUserId()), ve()(Ce, ae.CurrentDeviceTime, yr.getCurrentTimestamp()), ve()(Ce, ae.EventId, yr.generateUUID()), ve()(Ce, ae.IsConversion, !1), ve()(Ce, ae.Keyspace, ae.SingularDeviceId), ve()(Ce, ae.Owner, Lr.getInstance().getSingularConfig().apikey), ve()(Ce, ae.Platform, ae.PlatformWeb), ve()(Ce, ae.ProductId, Lr.getInstance().getSingularConfig().productId), ve()(Ce, ae.ScreenHeight, window.screen.height), ve()(Ce, ae.ScreenWidth, window.screen.width), ve()(Ce, ae.SdkVersion, yr.getSdkVersion()), ve()(Ce, ae.SingularInstanceId, Lr.getInstance().getSingularInstanceId()), ve()(Ce, ae.SingularDeviceId.toLowerCase(), Lr.getInstance().getSingularDeviceId()), ve()(Ce, ae.StorageType, Ki.getAvailableStorageType()), ve()(Ce, ae.Timezone, yr.getTimeZone()), ve()(Ce, ae.TouchpointTimestamp, Lr.getInstance().getTouchpointTimestamp()), ve()(Ce, ae.UserAgent, navigator.userAgent), ve()(Ce, ae.UUID, Lr.getInstance().getSingularDeviceId()), ve()(Ce, ae.GlobalProperties, Lr.getInstance().getGlobalProperties() && Ai()(Lr.getInstance().getGlobalProperties())), Ce);
26191
26195
  } }, { key: "sendRequest", value: (Ee = ki()(si.a.mark((function Ce() {
26192
26196
  var xe, De = this;
26193
- return si.a.wrap((function(ke) {
26194
- for (; ; ) switch (ke.prev = ke.next) {
26197
+ return si.a.wrap((function(Le) {
26198
+ for (; ; ) switch (Le.prev = Le.next) {
26195
26199
  case 0:
26196
- return ke.next = 2, yr.getOS();
26200
+ return Le.next = 2, yr.getOS();
26197
26201
  case 2:
26198
- return this._params[ae.OS] = ke.sent, ke.next = 5, yr.getClientHints();
26202
+ return this._params[ae.OS] = Le.sent, Le.next = 5, yr.getClientHints();
26199
26203
  case 5:
26200
- return (xe = ke.sent) && (this._params[ae.ClientHints] = Ai()(xe)), ke.abrupt("return", new zs.a((function(Ge) {
26204
+ return (xe = Le.sent) && (this._params[ae.ClientHints] = Ai()(xe)), Le.abrupt("return", new zs.a((function(Ge) {
26201
26205
  var gr;
26202
26206
  Ke()(De._extra).length > 0 && (De._params[ae.Extra] = Ai()(De._extra)), De._params[ae.SessionId] || (De._params[ae.SessionId] = Lr.getInstance().getSessionId());
26203
26207
  var br = ca({}, De._params, ve()({}, ae.Lag, yr.getCurrentTimestamp() - Hs()(De._params[ae.CurrentDeviceTime]))), vr = De._method === ue.PostMethod ? De._buildRequestBody(br) : null, _r = De._buildQueryParams(br), wr = De._buildRequestUrl(_r);
26204
- ri.debug(qr()(gr = `Sending api request
26208
+ ri.debug(Wr()(gr = `Sending api request
26205
26209
  Url:`.concat(wr, `
26206
26210
  Body:`)).call(gr, Ai()(vr)));
26207
26211
  var $r = new XMLHttpRequest();
@@ -26213,7 +26217,7 @@ Body:`)).call(gr, Ai()(vr)));
26213
26217
  })));
26214
26218
  case 8:
26215
26219
  case "end":
26216
- return ke.stop();
26220
+ return Le.stop();
26217
26221
  }
26218
26222
  }), Ce, this);
26219
26223
  }))), function() {
@@ -26226,28 +26230,28 @@ Body:`)).call(gr, Ai()(vr)));
26226
26230
  return !1;
26227
26231
  }
26228
26232
  } }, { key: "_buildRequestBody", value: function(Ce) {
26229
- var xe, De, ke = {};
26233
+ var xe, De, Le = {};
26230
26234
  if (Ae()(xe = Ue()(De = io()(Ce)).call(De, (function(gr) {
26231
26235
  var br, vr = $i()(gr, 2), _r = vr[0], wr = vr[1];
26232
- return Wi()(br = ue.PostParams).call(br, _r) && !yr.isNullOrEmpty(wr);
26236
+ return qi()(br = ue.PostParams).call(br, _r) && !yr.isNullOrEmpty(wr);
26233
26237
  }))).call(xe, (function(gr) {
26234
26238
  var br = $i()(gr, 2), vr = br[0], _r = br[1];
26235
- ke[vr] = _r;
26236
- })), Ke()(ke).length === 0) return {};
26237
- var Ge = Ai()(ke);
26239
+ Le[vr] = _r;
26240
+ })), Ke()(Le).length === 0) return {};
26241
+ var Ge = Ai()(Le);
26238
26242
  return { payload: Ge, signature: yr.calculateHash(Ge, Lr.getInstance().getSingularConfig().secret) };
26239
26243
  } }, { key: "_buildQueryParams", value: function(Ce) {
26240
- var xe, De, ke, Ge = this, gr = bo()(xe = Ue()(De = Ke()(Ce)).call(De, (function(_r) {
26244
+ var xe, De, Le, Ge = this, gr = bo()(xe = Ue()(De = Ke()(Ce)).call(De, (function(_r) {
26241
26245
  var wr;
26242
- return !yr.isNullOrEmpty(Ce[_r]) && (Ge._method !== ue.PostMethod || !Wi()(wr = ue.PostParams).call(wr, _r));
26246
+ return !yr.isNullOrEmpty(Ce[_r]) && (Ge._method !== ue.PostMethod || !qi()(wr = ue.PostParams).call(wr, _r));
26243
26247
  }))).call(xe, (function(_r) {
26244
26248
  var wr;
26245
- return qr()(wr = "".concat(encodeURIComponent(_r), "=")).call(wr, encodeURIComponent(Ce[_r]));
26249
+ return Wr()(wr = "".concat(encodeURIComponent(_r), "=")).call(wr, encodeURIComponent(Ce[_r]));
26246
26250
  })), br = "?".concat(gr.join("&")), vr = yr.calculateHash(br, Lr.getInstance().getSingularConfig().secret);
26247
- return qr()(ke = "".concat(br, "&h=")).call(ke, vr);
26251
+ return Wr()(Le = "".concat(br, "&h=")).call(Le, vr);
26248
26252
  } }, { key: "_buildRequestUrl", value: function(Ce) {
26249
26253
  var xe, De;
26250
- return qr()(xe = qr()(De = "".concat(ue.BaseUrl)).call(De, this._endpoint)).call(xe, Ce);
26254
+ return Wr()(xe = Wr()(De = "".concat(ue.BaseUrl)).call(De, this._endpoint)).call(xe, Ce);
26251
26255
  } }, { key: "eventId", get: function() {
26252
26256
  return this._params[ae.EventId];
26253
26257
  } }], [{ key: "toJsonString", value: function(Ce) {
@@ -26271,14 +26275,14 @@ Body:`)).call(gr, Ai()(vr)));
26271
26275
  function oo(Ve) {
26272
26276
  for (var Ee = 1; Ee < arguments.length; Ee++) {
26273
26277
  var Ce, xe = arguments[Ee] != null ? arguments[Ee] : {};
26274
- if (Ee % 2) Ae()(Ce = Co(xe, !0)).call(Ce, (function(ke) {
26275
- ve()(Ve, ke, xe[ke]);
26278
+ if (Ee % 2) Ae()(Ce = Co(xe, !0)).call(Ce, (function(Le) {
26279
+ ve()(Ve, Le, xe[Le]);
26276
26280
  }));
26277
26281
  else if (Re.a) Te()(Ve, Re()(xe));
26278
26282
  else {
26279
26283
  var De;
26280
- Ae()(De = Co(xe)).call(De, (function(ke) {
26281
- be()(Ve, ke, Ne()(xe, ke));
26284
+ Ae()(De = Co(xe)).call(De, (function(Le) {
26285
+ be()(Ve, Le, Ne()(xe, Le));
26282
26286
  }));
26283
26287
  }
26284
26288
  }
@@ -26295,8 +26299,8 @@ Body:`)).call(gr, Ai()(vr)));
26295
26299
  var Ce = Lr.getInstance(), xe = Ce.getFirstPageVisitOccurred(), De = Ce.getConversionEventOccurred();
26296
26300
  if (xe && De) {
26297
26301
  Ce.setConversionEventOccurred(!1);
26298
- var ke = Ce.getTouchpointTimestamp();
26299
- if (ke && yr.getCurrentTimestamp() - ke < _o) return !0;
26302
+ var Le = Ce.getTouchpointTimestamp();
26303
+ if (Le && yr.getCurrentTimestamp() - Le < _o) return !0;
26300
26304
  }
26301
26305
  return !1;
26302
26306
  } }, { key: "withRevenue", value: function(Ce, xe) {
@@ -26322,21 +26326,21 @@ Body:`)).call(gr, Ai()(vr)));
26322
26326
  var so, ao = (function(Ve) {
26323
26327
  function Ee(Ce) {
26324
26328
  var xe, De;
26325
- return pe()(this, Ee), (De = fr()(this, Qe()(Ee).call(this, Ce)))._apiType = oe.ConversionEventApi, De._params = (function(ke) {
26329
+ return pe()(this, Ee), (De = fr()(this, Qe()(Ee).call(this, Ce)))._apiType = oe.ConversionEventApi, De._params = (function(Le) {
26326
26330
  for (var Ge = 1; Ge < arguments.length; Ge++) {
26327
26331
  var gr, br = arguments[Ge] != null ? arguments[Ge] : {};
26328
26332
  if (Ge % 2) Ae()(gr = wo(br, !0)).call(gr, (function(_r) {
26329
- ve()(ke, _r, br[_r]);
26333
+ ve()(Le, _r, br[_r]);
26330
26334
  }));
26331
- else if (Re.a) Te()(ke, Re()(br));
26335
+ else if (Re.a) Te()(Le, Re()(br));
26332
26336
  else {
26333
26337
  var vr;
26334
26338
  Ae()(vr = wo(br)).call(vr, (function(_r) {
26335
- be()(ke, _r, Ne()(br, _r));
26339
+ be()(Le, _r, Ne()(br, _r));
26336
26340
  }));
26337
26341
  }
26338
26342
  }
26339
- return ke;
26343
+ return Le;
26340
26344
  })({}, De._params, (xe = {}, ve()(xe, ae.IsConversion, !0), ve()(xe, ae.WebUrl, Lr.getInstance().getWebUrl()), xe)), De;
26341
26345
  }
26342
26346
  return Ir()(Ee, Ve), Ee;
@@ -26368,8 +26372,8 @@ Body:`)).call(gr, Ai()(vr)));
26368
26372
  (Ce = fr()(this, Qe()(Ee).call(this, oe.PageVisitEventName)))._apiType = oe.PageVisitApi, Ce._params[ae.SessionId] = xe, Ce._params[ae.WebUrl] = window.location.href, Ce._params[ae.DocumentReferrer] = document.referrer, Ce._params[ae.IsFirstVisit] = Lr.getInstance().isFirstVisit(), Ce._params[ae.IsPageRefreshed] = yr.isPageRefreshed(), Ce._params[ae.SdidPersistMode] = Lr.getInstance().getSdidPersistMode(), Ce._params[ae.IsFirstPageVisitInSession] = !Lr.getInstance().getFirstPageVisitOccurred(), Ce._params[ae.ECID] = Lr.getInstance().getMatchID() || Lr.getInstance().getSingularDeviceId();
26369
26373
  var De = Lr.getInstance().getSdidPersistFailReason();
26370
26374
  yr.isNullOrEmpty(De) || (Ce._params[ae.SdidPersistFailedReason] = De);
26371
- var ke = Lr.getInstance().getPreviousSdid();
26372
- return yr.isNullOrEmpty(ke) || (Ce._params[ae.PreviousSdid] = ke), Ce;
26375
+ var Le = Lr.getInstance().getPreviousSdid();
26376
+ return yr.isNullOrEmpty(Le) || (Ce._params[ae.PreviousSdid] = Le), Ce;
26373
26377
  }
26374
26378
  return Ir()(Ee, Ve), me()(Ee, [{ key: "_getIsAfterConversionEvent", value: function() {
26375
26379
  return !1;
@@ -26437,30 +26441,30 @@ Body:`)).call(gr, Ai()(vr)));
26437
26441
  function Ee() {
26438
26442
  var xe, De;
26439
26443
  pe()(this, Ee), (De = fr()(this, Qe()(Ee).call(this)))._apiType = oe.FetchBannerApi, De._method = ue.GetMethod, De._endpoint = ue.Endpoints.FetchBanner;
26440
- var ke = Lr.getInstance();
26441
- return De._params = (xe = {}, ve()(xe, ae.Owner, ke.getSingularConfig().apikey), ve()(xe, ae.Locale, navigator.language), ve()(xe, ae.CurrentDeviceTime, yr.getCurrentTimestamp()), ve()(xe, ae.Timezone, yr.getTimeZone()), ve()(xe, ae.BannerShowsCounter, "1"), ve()(xe, ae.Keyspace, ae.SingularDeviceId), ve()(xe, ae.ProductId, ke.getSingularConfig().productId), ve()(xe, ae.IsFirstVisit, ke.isFirstVisit()), ve()(xe, ae.SdkVersion, yr.getSdkVersion()), xe), De;
26444
+ var Le = Lr.getInstance();
26445
+ return De._params = (xe = {}, ve()(xe, ae.Owner, Le.getSingularConfig().apikey), ve()(xe, ae.Locale, navigator.language), ve()(xe, ae.CurrentDeviceTime, yr.getCurrentTimestamp()), ve()(xe, ae.Timezone, yr.getTimeZone()), ve()(xe, ae.BannerShowsCounter, "1"), ve()(xe, ae.Keyspace, ae.SingularDeviceId), ve()(xe, ae.ProductId, Le.getSingularConfig().productId), ve()(xe, ae.IsFirstVisit, Le.isFirstVisit()), ve()(xe, ae.SdkVersion, yr.getSdkVersion()), xe), De;
26442
26446
  }
26443
26447
  var Ce;
26444
26448
  return Ir()(Ee, Ve), me()(Ee, [{ key: "sendRequest", value: (Ce = ki()(si.a.mark((function xe(De) {
26445
- return si.a.wrap((function(ke) {
26446
- for (; ; ) switch (ke.prev = ke.next) {
26449
+ return si.a.wrap((function(Le) {
26450
+ for (; ; ) switch (Le.prev = Le.next) {
26447
26451
  case 0:
26448
- return this._params[ae.BannerSourceUrl] = location.href, De && (this._params[ae.LastDismissed] = De), ke.next = 4, Ao()(Qe()(Ee.prototype), "sendRequest", this).call(this);
26452
+ return this._params[ae.BannerSourceUrl] = location.href, De && (this._params[ae.LastDismissed] = De), Le.next = 4, Ao()(Qe()(Ee.prototype), "sendRequest", this).call(this);
26449
26453
  case 4:
26450
- return ke.abrupt("return", ke.sent);
26454
+ return Le.abrupt("return", Le.sent);
26451
26455
  case 5:
26452
26456
  case "end":
26453
- return ke.stop();
26457
+ return Le.stop();
26454
26458
  }
26455
26459
  }), xe, this);
26456
26460
  }))), function(xe) {
26457
26461
  return Ce.apply(this, arguments);
26458
26462
  }) }, { key: "_buildRequestUrl", value: function(xe) {
26459
- var De, ke;
26460
- return qr()(De = qr()(ke = "".concat(ue.BaseUrl.replace("v1/", ""))).call(ke, this._endpoint)).call(De, xe);
26463
+ var De, Le;
26464
+ return Wr()(De = Wr()(Le = "".concat(ue.BaseUrl.replace("v1/", ""))).call(Le, this._endpoint)).call(De, xe);
26461
26465
  } }, { key: "isValidResponse", value: function(xe) {
26462
- var De = xe.display, ke = xe.meta;
26463
- return De && ke ? ue.FetchBannerResponseLinkKey in ke : (ri.debug("BannerApi.isValidResponse: missing display or meta keys"), !1);
26466
+ var De = xe.display, Le = xe.meta;
26467
+ return De && Le ? ue.FetchBannerResponseLinkKey in Le : (ri.debug("BannerApi.isValidResponse: missing display or meta keys"), !1);
26464
26468
  } }, { key: "handleResponse", value: function(xe) {
26465
26469
  try {
26466
26470
  ri.debug("handeling response of banner request: ".concat(xe));
@@ -26495,7 +26499,7 @@ Body:`)).call(gr, Ai()(vr)));
26495
26499
  } }, { key: "fetchBanner", value: function() {
26496
26500
  return this.bannersAPI.sendRequest(this.getBannerLastDismissed());
26497
26501
  } }, { key: "showBanner", value: (Ce = ki()(si.a.mark((function xe(De) {
26498
- var ke;
26502
+ var Le;
26499
26503
  return si.a.wrap((function(Ge) {
26500
26504
  for (; ; ) switch (Ge.prev = Ge.next) {
26501
26505
  case 0:
@@ -26507,13 +26511,13 @@ Body:`)).call(gr, Ai()(vr)));
26507
26511
  case 2:
26508
26512
  return this.isShowingBanner = !0, Ge.next = 5, this.fetchBanner();
26509
26513
  case 5:
26510
- if (ke = Ge.sent) {
26514
+ if (Le = Ge.sent) {
26511
26515
  Ge.next = 8;
26512
26516
  break;
26513
26517
  }
26514
26518
  return Ge.abrupt("return");
26515
26519
  case 8:
26516
- this.renderBanner(ke, De), this.sendImpression(ke);
26520
+ this.renderBanner(Le, De), this.sendImpression(Le);
26517
26521
  case 10:
26518
26522
  case "end":
26519
26523
  return Ge.stop();
@@ -26533,8 +26537,8 @@ Body:`)).call(gr, Ai()(vr)));
26533
26537
  } }, { key: "setBannerStyle", value: function(xe, De) {
26534
26538
  this.isValidUrl(xe) ? (this.bannerStyle = document.createElement("link"), this.bannerStyle.href = xe, this.bannerStyle.type = "text/css", this.bannerStyle.rel = "stylesheet") : (this.bannerStyle = document.createElement("style"), this.bannerStyle.innerHTML = xe), this.bannerStyle.onload = De, document.head.appendChild(this.bannerStyle);
26535
26539
  } }, { key: "renderBanner", value: function(xe, De) {
26536
- var ke, Ge = this, gr = xe.display, br = gr.placement, vr = gr.css, _r = ma()(gr, ["placement", "css"]), wr = xe.meta;
26537
- Ae()(ke = io()(_r)).call(ke, (function($r) {
26540
+ var Le, Ge = this, gr = xe.display, br = gr.placement, vr = gr.css, _r = ma()(gr, ["placement", "css"]), wr = xe.meta;
26541
+ Ae()(Le = io()(_r)).call(Le, (function($r) {
26538
26542
  var di = $i()($r, 2), fi = di[0], yi = di[1], Ci = Ge.getElementClassName(fi), mi = Ge.bannerElement.getElementsByClassName(Ci)[0];
26539
26543
  mi && (mi.nodeName === "IMG" ? mi.src = yi : mi.nodeName !== "DIV" && mi.nodeName !== "SPAN" || (mi.innerHTML = yi.toString()));
26540
26544
  })), br && this.bannerElement.classList.add(br), this.onCloseClick = function() {
@@ -26546,22 +26550,22 @@ Body:`)).call(gr, Ai()(vr)));
26546
26550
  return document.body.prepend(Ge.bannerElement);
26547
26551
  }));
26548
26552
  } }, { key: "sendImpression", value: (Ee = ki()(si.a.mark((function xe(De) {
26549
- var ke, Ge, gr, br;
26553
+ var Le, Ge, gr, br;
26550
26554
  return si.a.wrap((function(vr) {
26551
26555
  for (; ; ) switch (vr.prev = vr.next) {
26552
26556
  case 0:
26553
- if (ke = De.meta, Ge = ke.impression_link) {
26557
+ if (Le = De.meta, Ge = Le.impression_link) {
26554
26558
  vr.next = 4;
26555
26559
  break;
26556
26560
  }
26557
26561
  return vr.abrupt("return");
26558
26562
  case 4:
26559
- return gr = this.enrichLinkData(Ge, ke), vr.prev = 5, vr.next = 8, fetch(gr, { mode: "no-cors" });
26563
+ return gr = this.enrichLinkData(Ge, Le), vr.prev = 5, vr.next = 8, fetch(gr, { mode: "no-cors" });
26560
26564
  case 8:
26561
26565
  vr.next = 13;
26562
26566
  break;
26563
26567
  case 10:
26564
- vr.prev = 10, vr.t0 = vr.catch(5), ri.debug(qr()(br = "failed to send banner impression ".concat(gr, ", error: ")).call(br, vr.t0));
26568
+ vr.prev = 10, vr.t0 = vr.catch(5), ri.debug(Wr()(br = "failed to send banner impression ".concat(gr, ", error: ")).call(br, vr.t0));
26565
26569
  case 13:
26566
26570
  case "end":
26567
26571
  return vr.stop();
@@ -26571,18 +26575,18 @@ Body:`)).call(gr, Ai()(vr)));
26571
26575
  return Ee.apply(this, arguments);
26572
26576
  }) }, { key: "getElementClassName", value: function(xe) {
26573
26577
  var De;
26574
- return qr()(De = "".concat("singular-banner-")).call(De, xe.replace("_", "-"));
26578
+ return Wr()(De = "".concat("singular-banner-")).call(De, xe.replace("_", "-"));
26575
26579
  } }, { key: "htmlToElement", value: function(xe) {
26576
26580
  var De = document.createElement("div");
26577
26581
  return De.innerHTML = Eo()(xe).call(xe), De.firstChild;
26578
26582
  } }, { key: "prepareLink", value: function(xe, De) {
26579
- var ke = xe || De.link_overrides;
26580
- return this.enrichLinkData(De.link, De, ke);
26583
+ var Le = xe || De.link_overrides;
26584
+ return this.enrichLinkData(De.link, De, Le);
26581
26585
  } }, { key: "enrichLinkData", value: function(xe, De) {
26582
- var ke, Ge = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, gr = Lr.getInstance().getSingularConfig(), br = gr.bannersOptions, vr = xe;
26586
+ var Le, Ge = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, gr = Lr.getInstance().getSingularConfig(), br = gr.bannersOptions, vr = xe;
26583
26587
  br && br.isWebToAppSupported && (vr = to.buildWebToAppLink(xe) || xe);
26584
26588
  var _r = new Gi.a(vr);
26585
- return _r.searchParams.set(ae.Source, "Organic Banner"), Ae()(ke = io()(Ge)).call(ke, (function(wr) {
26589
+ return _r.searchParams.set(ae.Source, "Organic Banner"), Ae()(Le = io()(Ge)).call(Le, (function(wr) {
26586
26590
  var $r = $i()(wr, 2), di = $r[0], fi = $r[1];
26587
26591
  fi && _r.searchParams.set(di, fi);
26588
26592
  })), _r.searchParams.set(ae.BannerName, De.name), _r.searchParams.set(ae.BannerID, De.id), _r.toString();
@@ -26612,7 +26616,7 @@ Body:`)).call(gr, Ai()(vr)));
26612
26616
  }, Ca = (function() {
26613
26617
  function Ve(Ee) {
26614
26618
  var Ce;
26615
- pe()(this, Ve), this._singularState = Lr.getInstance().init(Ee), yr.isNullOrEmpty(Ee.customUserId) || this._singularState.setCustomUserId(Ee.customUserId), ri.info(qr()(Ce = "SDK is initialized Apikey:".concat(Ee.apikey, ", Product Id:")).call(Ce, Ee.productId)), this._apiManager = new fa(), this.sendApi(new uo()), this._bannerManager = new ya();
26619
+ pe()(this, Ve), this._singularState = Lr.getInstance().init(Ee), yr.isNullOrEmpty(Ee.customUserId) || this._singularState.setCustomUserId(Ee.customUserId), ri.info(Wr()(Ce = "SDK is initialized Apikey:".concat(Ee.apikey, ", Product Id:")).call(Ce, Ee.productId)), this._apiManager = new fa(), this.sendApi(new uo()), this._bannerManager = new ya();
26616
26620
  }
26617
26621
  return me()(Ve, [{ key: "sendApi", value: function(Ee) {
26618
26622
  this._apiManager.sendApi(Ee);
@@ -26621,14 +26625,14 @@ Body:`)).call(gr, Ai()(vr)));
26621
26625
  } }, { key: "unsetCustomUserId", value: function() {
26622
26626
  this._singularState.unsetCustomUserId();
26623
26627
  } }, { key: "openApp", value: function(Ee, Ce, xe, De) {
26624
- var ke = this.buildWebToAppLink(Ee, Ce, xe, De);
26625
- ke && window.open(ke);
26628
+ var Le = this.buildWebToAppLink(Ee, Ce, xe, De);
26629
+ Le && window.open(Le);
26626
26630
  } }, { key: "openAppWithClipboardDdl", value: function(Ee, Ce, xe, De) {
26627
- var ke = enrichUrlWithClipboardDdlFlow(this.buildWebToAppLink(Ee, Ce, xe, De));
26628
- ke && window.open(ke);
26631
+ var Le = enrichUrlWithClipboardDdlFlow(this.buildWebToAppLink(Ee, Ce, xe, De));
26632
+ Le && window.open(Le);
26629
26633
  } }, { key: "buildWebToAppLink", value: function(Ee, Ce, xe, De) {
26630
- var ke = yr.buildWebToAppLink(Ee, this._singularState.getWebUrl(), Ce, xe, De);
26631
- return ke || ri.warn("Invalid base link when generating web to app link"), ke;
26634
+ var Le = yr.buildWebToAppLink(Ee, this._singularState.getWebUrl(), Ce, xe, De);
26635
+ return Le || ri.warn("Invalid base link when generating web to app link"), Le;
26632
26636
  } }, { key: "getSingularDeviceId", value: function() {
26633
26637
  return this._singularState.getSingularDeviceId();
26634
26638
  } }, { key: "getMatchID", value: function() {
@@ -26661,25 +26665,25 @@ Body:`)).call(gr, Ai()(vr)));
26661
26665
  Ce = null;
26662
26666
  }
26663
26667
  return Ee.removeAllRanges(), function() {
26664
- Ee.type === "Caret" && Ee.removeAllRanges(), Ee.rangeCount || Ae()(xe).call(xe, (function(ke) {
26665
- Ee.addRange(ke);
26668
+ Ee.type === "Caret" && Ee.removeAllRanges(), Ee.rangeCount || Ae()(xe).call(xe, (function(Le) {
26669
+ Ee.addRange(Le);
26666
26670
  })), Ce && Ce.focus();
26667
26671
  };
26668
26672
  } }, { key: "copyToClipboard", value: function(Ee) {
26669
- var Ce, xe, De, ke;
26670
- Ce = this.deselectCurrent(), xe = document.createRange(), De = document.getSelection(), (ke = document.createElement("span")).textContent = Ee, ke.style.all = "unset", ke.style.position = "fixed", ke.style.top = 0, ke.style.clip = "rect(0, 0, 0, 0)", ke.style.whiteSpace = "pre", ke.style.webkitUserSelect = "text", ke.style.MozUserSelect = "text", ke.style.msUserSelect = "text", ke.style.userSelect = "text", document.body.appendChild(ke), xe.selectNodeContents(ke), De.addRange(xe), document.execCommand("copy"), typeof De.removeRange == "function" ? De.removeRange(xe) : De.removeAllRanges(), document.body.removeChild(ke), Ce();
26673
+ var Ce, xe, De, Le;
26674
+ Ce = this.deselectCurrent(), xe = document.createRange(), De = document.getSelection(), (Le = document.createElement("span")).textContent = Ee, Le.style.all = "unset", Le.style.position = "fixed", Le.style.top = 0, Le.style.clip = "rect(0, 0, 0, 0)", Le.style.whiteSpace = "pre", Le.style.webkitUserSelect = "text", Le.style.MozUserSelect = "text", Le.style.msUserSelect = "text", Le.style.userSelect = "text", document.body.appendChild(Le), xe.selectNodeContents(Le), De.addRange(xe), document.execCommand("copy"), typeof De.removeRange == "function" ? De.removeRange(xe) : De.removeAllRanges(), document.body.removeChild(Le), Ce();
26671
26675
  } }, { key: "enrichUrlWithClipboardDdlFlow", value: function(Ee) {
26672
- var Ce = Ia(), xe = window.location.href, De = new Gi.a(xe), ke = De.protocol + "//" + De.hostname + "/" + ne.ECID_PREFIX + "/" + Ce, Ge = new Gi.a(Ee);
26673
- return Ge.searchParams.append(ae.ECID, ke), this.copyToClipboard(ke), Ge.toString();
26676
+ var Ce = Ia(), xe = window.location.href, De = new Gi.a(xe), Le = De.protocol + "//" + De.hostname + "/" + ne.ECID_PREFIX + "/" + Ce, Ge = new Gi.a(Ee);
26677
+ return Ge.searchParams.append(ae.ECID, Le), this.copyToClipboard(Le), Ge.toString();
26674
26678
  } }, { key: "enrichUrlWithMarketingData", value: function(Ee) {
26675
26679
  if (!this._singularState._isWebUrlContainingMarketingData(window.location.href)) return Ee;
26676
- var Ce = yr.parseQueryFromUrl(window.location.href), xe = yr.parseQueryFromUrl(Ee), De = Ke()(Ce), ke = Ke()(xe), Ge = Ue()(De).call(De, (function(xi) {
26677
- return eo()(ke).call(ke, xi) == -1;
26680
+ var Ce = yr.parseQueryFromUrl(window.location.href), xe = yr.parseQueryFromUrl(Ee), De = Ke()(Ce), Le = Ke()(xe), Ge = Ue()(De).call(De, (function(xi) {
26681
+ return eo()(Le).call(Le, xi) == -1;
26678
26682
  })), gr = yr.extractMarketingData(Ge), br = !0, vr = !1, _r = void 0;
26679
26683
  try {
26680
26684
  for (var wr, $r = Fi()(So()(gr).call(gr)); !(br = (wr = $r.next()).done); br = !0) {
26681
- var di, fi, yi = $i()(wr.value, 2), Ci = (yi[0], yi[1]), mi = qr()(di = "".concat(encodeURIComponent(Ci), "=")).call(di, encodeURIComponent(Ce[Ci]));
26682
- Ee = eo()(Ee).call(Ee, "?") != -1 ? yr.appendQueryParamsToUrl("?", mi, Ee) : eo()(Ee).call(Ee, "#") != -1 ? yr.appendQueryParamsToUrl("#", mi, Ee) : qr()(fi = "".concat(Ee, "?")).call(fi, mi);
26685
+ var di, fi, yi = $i()(wr.value, 2), Ci = (yi[0], yi[1]), mi = Wr()(di = "".concat(encodeURIComponent(Ci), "=")).call(di, encodeURIComponent(Ce[Ci]));
26686
+ Ee = eo()(Ee).call(Ee, "?") != -1 ? yr.appendQueryParamsToUrl("?", mi, Ee) : eo()(Ee).call(Ee, "#") != -1 ? yr.appendQueryParamsToUrl("#", mi, Ee) : Wr()(fi = "".concat(Ee, "?")).call(fi, mi);
26683
26687
  }
26684
26688
  } catch (xi) {
26685
26689
  vr = !0, _r = xi;
@@ -26744,8 +26748,8 @@ Body:`)).call(gr, Ai()(vr)));
26744
26748
  }
26745
26749
  } }, { key: "revenue", value: function(Ee, Ce, xe, De) {
26746
26750
  if (this._isInitialized) {
26747
- var ke = new Yi(Ee).withRevenue(Ce, xe).withArgs(De);
26748
- this._singularInstance.sendApi(ke);
26751
+ var Le = new Yi(Ee).withRevenue(Ce, xe).withArgs(De);
26752
+ this._singularInstance.sendApi(Le);
26749
26753
  }
26750
26754
  } }, { key: "login", value: function(Ee) {
26751
26755
  this._isInitialized && !yr.isNullOrEmpty(Ee) && this._singularInstance.setCustomUserId(Ee);
@@ -26869,14 +26873,14 @@ Body:`)).call(gr, Ai()(vr)));
26869
26873
  var singularSdkExports = requireSingularSdk();
26870
26874
  class SingularTracker {
26871
26875
  }
26872
- Le(SingularTracker, "init", () => {
26876
+ ke(SingularTracker, "init", () => {
26873
26877
  const re = new singularSdkExports.SingularConfig(
26874
26878
  "astropay_1541adf6",
26875
26879
  "c2c4edf215e20ff29957139f9eb9790d",
26876
26880
  "com.astropay.app"
26877
26881
  ).withAutoPersistentSingularDeviceId("astropay.com");
26878
26882
  singularSdkExports.singularSdk.init(re), singularSdkExports.singularSdk.logout();
26879
- }), Le(SingularTracker, "getUrlRedirectApp", ({
26883
+ }), ke(SingularTracker, "getUrlRedirectApp", ({
26880
26884
  appDeepLink: re,
26881
26885
  shouldOpenApp: te = !1,
26882
26886
  fallbackRedirect: ne
@@ -26959,7 +26963,7 @@ const ai = class ai {
26959
26963
  return ai.isInitialized;
26960
26964
  }
26961
26965
  };
26962
- Le(ai, "isInitialized", !1), Le(ai, "token"), Le(ai, "components", /* @__PURE__ */ new Set());
26966
+ ke(ai, "isInitialized", !1), ke(ai, "token"), ke(ai, "components", /* @__PURE__ */ new Set());
26963
26967
  let AstroPayCore = ai;
26964
26968
  function bind(ee, re) {
26965
26969
  return function() {
@@ -28714,7 +28718,7 @@ const {
28714
28718
  } = axios, mockPath = (ee, re) => {
28715
28719
  const te = AstroPayConfig.getRuntimeConfig().MODE === "test";
28716
28720
  return re && te ? `http://localhost:3333${ee.startsWith("/") ? ee : `/${ee}`}` : ee;
28717
- }, Wr = class Wr {
28721
+ }, qr = class qr {
28718
28722
  // #endregion
28719
28723
  // #region Useful methods
28720
28724
  static getAxiosInstance() {
@@ -28724,8 +28728,8 @@ const {
28724
28728
  }
28725
28729
  // #endregion
28726
28730
  };
28727
- Le(Wr, "axiosInstance"), Le(Wr, "config"), Le(Wr, "init", (re) => {
28728
- Wr.config = re, Wr.axiosInstance = axios.create({
28731
+ ke(qr, "axiosInstance"), ke(qr, "config"), ke(qr, "init", (re) => {
28732
+ qr.config = re, qr.axiosInstance = axios.create({
28729
28733
  baseURL: re.baseURL,
28730
28734
  timeout: re.timeout ?? 5e3,
28731
28735
  withCredentials: !0,
@@ -28733,9 +28737,9 @@ Le(Wr, "axiosInstance"), Le(Wr, "config"), Le(Wr, "init", (re) => {
28733
28737
  "Accept-Language": AstroPayI18n.getCurrent(),
28734
28738
  ...re.headers
28735
28739
  }
28736
- }), Wr.setupInterceptors();
28740
+ }), qr.setupInterceptors();
28737
28741
  }), // #region API Methods
28738
- Le(Wr, "GET", async ({
28742
+ ke(qr, "GET", async ({
28739
28743
  url: re,
28740
28744
  params: te = {},
28741
28745
  mock: ne = !1,
@@ -28747,8 +28751,8 @@ Le(Wr, "GET", async ({
28747
28751
  ...te
28748
28752
  }
28749
28753
  };
28750
- return await Wr.getAxiosInstance().get(oe, se);
28751
- }), Le(Wr, "POST", async ({
28754
+ return await qr.getAxiosInstance().get(oe, se);
28755
+ }), ke(qr, "POST", async ({
28752
28756
  url: re,
28753
28757
  data: te = {},
28754
28758
  mock: ne = !1,
@@ -28762,8 +28766,8 @@ Le(Wr, "GET", async ({
28762
28766
  "Content-Type": "text/plain"
28763
28767
  }
28764
28768
  };
28765
- return await Wr.getAxiosInstance().post(oe, te, se);
28766
- }), Le(Wr, "PUT", async ({
28769
+ return await qr.getAxiosInstance().post(oe, te, se);
28770
+ }), ke(qr, "PUT", async ({
28767
28771
  url: re,
28768
28772
  data: te = {},
28769
28773
  mock: ne = !1,
@@ -28774,8 +28778,8 @@ Le(Wr, "GET", async ({
28774
28778
  useQueryParams: ie
28775
28779
  }
28776
28780
  };
28777
- return await Wr.getAxiosInstance().put(oe, te, se);
28778
- }), Le(Wr, "PATCH", async ({
28781
+ return await qr.getAxiosInstance().put(oe, te, se);
28782
+ }), ke(qr, "PATCH", async ({
28779
28783
  url: re,
28780
28784
  data: te = {},
28781
28785
  mock: ne = !1,
@@ -28789,8 +28793,8 @@ Le(Wr, "GET", async ({
28789
28793
  "Content-Type": "text/plain"
28790
28794
  }
28791
28795
  };
28792
- return await Wr.getAxiosInstance().patch(oe, te, se);
28793
- }), Le(Wr, "DELETE", async ({
28796
+ return await qr.getAxiosInstance().patch(oe, te, se);
28797
+ }), ke(qr, "DELETE", async ({
28794
28798
  url: re,
28795
28799
  params: te = {},
28796
28800
  mock: ne = !1,
@@ -28802,22 +28806,22 @@ Le(Wr, "GET", async ({
28802
28806
  ...te
28803
28807
  }
28804
28808
  };
28805
- return await Wr.getAxiosInstance().delete(oe, se);
28806
- }), Le(Wr, "setupInterceptors", () => {
28807
- Wr.axiosInstance.interceptors.request.use((re) => {
28809
+ return await qr.getAxiosInstance().delete(oe, se);
28810
+ }), ke(qr, "setupInterceptors", () => {
28811
+ qr.axiosInstance.interceptors.request.use((re) => {
28808
28812
  const { useQueryParams: te, ...ne } = re.params || {};
28809
28813
  return te ? re.params = {
28810
28814
  ...ne,
28811
- data: Wr.getEncodeParams()
28815
+ data: qr.getEncodeParams()
28812
28816
  } : re.params = ne, re.data && (re.data = convertData(re.data, "camelCase-to-snake_case")), re;
28813
- }), Wr.axiosInstance.interceptors.response.use(
28814
- (re) => Wr.handleResponse(re),
28815
- (re) => Wr.handleError(re)
28817
+ }), qr.axiosInstance.interceptors.response.use(
28818
+ (re) => qr.handleResponse(re),
28819
+ (re) => qr.handleError(re)
28816
28820
  );
28817
- }), Le(Wr, "handleResponse", (re) => {
28821
+ }), ke(qr, "handleResponse", (re) => {
28818
28822
  const te = re.status === 202, ne = convertData(re.data, "snake_case-to-camelCase");
28819
28823
  return te ? { ...ne, statusCode: re.status } : ne;
28820
- }), Le(Wr, "handleError", (re) => {
28824
+ }), ke(qr, "handleError", (re) => {
28821
28825
  var ie;
28822
28826
  const te = convertData(
28823
28827
  (ie = re.response) == null ? void 0 : ie.data,
@@ -28829,9 +28833,9 @@ Le(Wr, "GET", async ({
28829
28833
  description: te == null ? void 0 : te.description
28830
28834
  };
28831
28835
  return Promise.reject(ne);
28832
- }), Le(Wr, "getEncodeParams", () => {
28836
+ }), ke(qr, "getEncodeParams", () => {
28833
28837
  const re = {
28834
- app_name: Wr.config.appName,
28838
+ app_name: qr.config.appName,
28835
28839
  app_id: AstroPayCore.getToken(),
28836
28840
  environment: AstroPayConfig.getEnvironment(),
28837
28841
  platform: getOperatingSystem(),
@@ -28839,7 +28843,7 @@ Le(Wr, "GET", async ({
28839
28843
  };
28840
28844
  return encodeData(re);
28841
28845
  });
28842
- let HttpClient = Wr;
28846
+ let HttpClient = qr;
28843
28847
  const END_POINTS = {
28844
28848
  // Payment
28845
28849
  createPayment: "/v1/web/payments",
@@ -28855,7 +28859,7 @@ const END_POINTS = {
28855
28859
  };
28856
28860
  class CardService {
28857
28861
  }
28858
- Le(CardService, "getPciToken", async (re) => {
28862
+ ke(CardService, "getPciToken", async (re) => {
28859
28863
  try {
28860
28864
  return await HttpClient.POST({
28861
28865
  url: END_POINTS.pciToken,
@@ -28878,10 +28882,10 @@ const formatCardExpiryDate = (ee) => {
28878
28882
  }, APTokenizerVersion = "v1.1.3";
28879
28883
  class CardApService {
28880
28884
  constructor(re, te) {
28881
- Le(this, "collector");
28882
- Le(this, "form");
28883
- Le(this, "fields");
28884
- Le(this, "callback");
28885
+ ke(this, "collector");
28886
+ ke(this, "form");
28887
+ ke(this, "fields");
28888
+ ke(this, "callback");
28885
28889
  this.fields = re, this.callback = te;
28886
28890
  }
28887
28891
  async init(re) {
@@ -28945,7 +28949,7 @@ class CardApService {
28945
28949
  var ECardPayStatus = /* @__PURE__ */ ((ee) => (ee.PENDING = "PENDING", ee.REJECTED = "REJECTED", ee))(ECardPayStatus || {});
28946
28950
  class PaymentService {
28947
28951
  }
28948
- Le(PaymentService, "postCreatePayment", async (re, te) => {
28952
+ ke(PaymentService, "postCreatePayment", async (re, te) => {
28949
28953
  try {
28950
28954
  const ne = await HttpClient.POST({
28951
28955
  data: re,
@@ -28958,7 +28962,7 @@ Le(PaymentService, "postCreatePayment", async (re, te) => {
28958
28962
  } catch (ne) {
28959
28963
  return DataDogTracker.trackError(ne), Promise.reject(ne);
28960
28964
  }
28961
- }), Le(PaymentService, "getPaymentDetails", async (re, te) => {
28965
+ }), ke(PaymentService, "getPaymentDetails", async (re, te) => {
28962
28966
  try {
28963
28967
  const ne = await HttpClient.GET({
28964
28968
  url: buildPathWithParams(END_POINTS.paymentDetails, { paymentExternalId: re })
@@ -28970,7 +28974,7 @@ Le(PaymentService, "postCreatePayment", async (re, te) => {
28970
28974
  } catch (ne) {
28971
28975
  return DataDogTracker.trackError(ne), Promise.reject(ne);
28972
28976
  }
28973
- }), Le(PaymentService, "postIdentifyUser", async (re, te) => {
28977
+ }), ke(PaymentService, "postIdentifyUser", async (re, te) => {
28974
28978
  try {
28975
28979
  const ne = await HttpClient.POST({
28976
28980
  data: te,
@@ -28983,7 +28987,7 @@ Le(PaymentService, "postCreatePayment", async (re, te) => {
28983
28987
  } catch (ne) {
28984
28988
  return DataDogTracker.trackError(ne), Promise.reject(ne);
28985
28989
  }
28986
- }), Le(PaymentService, "getPaymentStatus", async (re) => {
28990
+ }), ke(PaymentService, "getPaymentStatus", async (re) => {
28987
28991
  try {
28988
28992
  return await HttpClient.GET({
28989
28993
  url: buildPathWithParams(END_POINTS.paymentStatus, { paymentExternalId: re })
@@ -28991,7 +28995,7 @@ Le(PaymentService, "postCreatePayment", async (re, te) => {
28991
28995
  } catch (te) {
28992
28996
  return Promise.reject(te);
28993
28997
  }
28994
- }), Le(PaymentService, "getPollingRequest", async (re) => {
28998
+ }), ke(PaymentService, "getPollingRequest", async (re) => {
28995
28999
  try {
28996
29000
  const te = re.replace(/^\/?api\//, "");
28997
29001
  return await HttpClient.GET({
@@ -29000,7 +29004,7 @@ Le(PaymentService, "postCreatePayment", async (re, te) => {
29000
29004
  } catch (te) {
29001
29005
  return Promise.reject(te);
29002
29006
  }
29003
- }), Le(PaymentService, "postGenericPayment", async (re, te, ne) => {
29007
+ }), ke(PaymentService, "postGenericPayment", async (re, te, ne) => {
29004
29008
  try {
29005
29009
  const ie = re.replace(/^\/?api\//, "");
29006
29010
  return await HttpClient.POST({
@@ -29014,7 +29018,7 @@ Le(PaymentService, "postCreatePayment", async (re, te) => {
29014
29018
  var EPollingStatus = /* @__PURE__ */ ((ee) => (ee.ACCEPTED = "ACCEPTED", ee.FINISHED = "FINISHED", ee))(EPollingStatus || {});
29015
29019
  class PaymentMethodsService {
29016
29020
  }
29017
- Le(PaymentMethodsService, "getPaymentMethodDetail", async (re) => {
29021
+ ke(PaymentMethodsService, "getPaymentMethodDetail", async (re) => {
29018
29022
  try {
29019
29023
  return await HttpClient.GET({
29020
29024
  url: buildPathWithParams(END_POINTS.paymentMethodDetail, {
@@ -29028,9 +29032,9 @@ Le(PaymentMethodsService, "getPaymentMethodDetail", async (re) => {
29028
29032
  });
29029
29033
  class PollingService {
29030
29034
  constructor(re, te, ne, ie) {
29031
- Le(this, "pollingTimeout", null);
29032
- Le(this, "isPollingActive", !1);
29033
- Le(this, "remainingAttempts");
29035
+ ke(this, "pollingTimeout", null);
29036
+ ke(this, "isPollingActive", !1);
29037
+ ke(this, "remainingAttempts");
29034
29038
  this.pollingAcceptedData = re, this.onWaitingInfo = te, this.onFinished = ne, this.onError = ie, this.remainingAttempts = re.pollingMetadata.remainingHits, this.validatePollingData();
29035
29039
  }
29036
29040
  startPolling() {
@@ -29161,10 +29165,10 @@ const CARD_STYLES = (ee, re) => ({
29161
29165
  class CardField extends Component {
29162
29166
  constructor({ id: te, label: ne, initialHelperText: ie, isValid: oe = !0 }) {
29163
29167
  super({ tag: "div", styles: () => getCardFieldStyles() });
29164
- Le(this, "inputContainer");
29165
- Le(this, "labelTextElement", null);
29166
- Le(this, "helperTextElement", null);
29167
- Le(this, "id");
29168
+ ke(this, "inputContainer");
29169
+ ke(this, "labelTextElement", null);
29170
+ ke(this, "helperTextElement", null);
29171
+ ke(this, "id");
29168
29172
  this.id = te;
29169
29173
  const se = inputStyle(!oe);
29170
29174
  if (this.inputContainer = document.createElement("div"), this.inputContainer.classList.add("input-container"), ne) {
@@ -29267,18 +29271,18 @@ class CardPaymentMethod extends Component {
29267
29271
  tag: "div",
29268
29272
  styles: (ne) => getCardPaymentMethodStyles(ne, { error: !1, disabled: !1 })
29269
29273
  });
29270
- Le(this, "componentProps");
29271
- Le(this, "loadingWrapper");
29272
- Le(this, "btnPay", null);
29273
- Le(this, "cardManager", null);
29274
- Le(this, "cardHolderInput", null);
29275
- Le(this, "cardNumberInput", null);
29276
- Le(this, "cardExpInput", null);
29277
- Le(this, "cardCvvInput", null);
29278
- Le(this, "requiredFieldsForm", null);
29279
- Le(this, "formState", EMPTY_FORM_DATA);
29280
- Le(this, "isFormTemplateValid", !1);
29281
- Le(this, "pollingService", null);
29274
+ ke(this, "componentProps");
29275
+ ke(this, "loadingWrapper");
29276
+ ke(this, "btnPay", null);
29277
+ ke(this, "cardManager", null);
29278
+ ke(this, "cardHolderInput", null);
29279
+ ke(this, "cardNumberInput", null);
29280
+ ke(this, "cardExpInput", null);
29281
+ ke(this, "cardCvvInput", null);
29282
+ ke(this, "requiredFieldsForm", null);
29283
+ ke(this, "formState", EMPTY_FORM_DATA);
29284
+ ke(this, "isFormTemplateValid", !1);
29285
+ ke(this, "pollingService", null);
29282
29286
  this.componentProps = {
29283
29287
  ...te,
29284
29288
  showPaymentSummary: te.showPaymentSummary ?? !0,
@@ -29527,50 +29531,50 @@ class CardPaymentMethod extends Component {
29527
29531
  }
29528
29532
  class AmplitudeAnalytics {
29529
29533
  constructor() {
29530
- Le(this, "tracker", AmplitudeTracker);
29531
- Le(this, "astroPayPaymentImpression", (re) => {
29534
+ ke(this, "tracker", AmplitudeTracker);
29535
+ ke(this, "astroPayPaymentImpression", (re) => {
29532
29536
  this.tracker.trackEvent(
29533
29537
  new AstroPayPaymentImpression({
29534
29538
  component_name: re
29535
29539
  })
29536
29540
  );
29537
29541
  });
29538
- Le(this, "astroPayPaymentStarted", (re) => {
29542
+ ke(this, "astroPayPaymentStarted", (re) => {
29539
29543
  this.tracker.trackEvent(
29540
29544
  new AstroPayPaymentStarted({
29541
29545
  payment_external_id: re
29542
29546
  })
29543
29547
  );
29544
29548
  });
29545
- Le(this, "astroPayPaymentClicked", (re) => {
29549
+ ke(this, "astroPayPaymentClicked", (re) => {
29546
29550
  this.tracker.trackEvent(
29547
29551
  new AstroPayPaymentClicked({
29548
29552
  payment_external_id: re
29549
29553
  })
29550
29554
  );
29551
29555
  });
29552
- Le(this, "astroPayPaymentPhoneNumberEntered", (re) => {
29556
+ ke(this, "astroPayPaymentPhoneNumberEntered", (re) => {
29553
29557
  this.tracker.trackEvent(
29554
29558
  new AstroPayPaymentPhoneNumberEntered({
29555
29559
  payment_external_id: re
29556
29560
  })
29557
29561
  );
29558
29562
  });
29559
- Le(this, "astroPayPaymentUserIdentified", (re) => {
29563
+ ke(this, "astroPayPaymentUserIdentified", (re) => {
29560
29564
  this.tracker.trackEvent(
29561
29565
  new AstroPayPaymentUserIdentified({
29562
29566
  payment_external_id: re
29563
29567
  })
29564
29568
  );
29565
29569
  });
29566
- Le(this, "astroPayPaymentLinkCopied", (re) => {
29570
+ ke(this, "astroPayPaymentLinkCopied", (re) => {
29567
29571
  this.tracker.trackEvent(
29568
29572
  new AstroPayPaymentLinkCopied({
29569
29573
  payment_external_id: re
29570
29574
  })
29571
29575
  );
29572
29576
  });
29573
- Le(this, "astroPayPaymentCardClicked", (re) => {
29577
+ ke(this, "astroPayPaymentCardClicked", (re) => {
29574
29578
  this.tracker.trackEvent(
29575
29579
  new AstroPayPaymentCardClicked({
29576
29580
  payment_external_id: re
@@ -29623,9 +29627,9 @@ class AstroPayCardPayment extends Component {
29623
29627
  tag: "div",
29624
29628
  styles: (ie) => getAstroPayCardPaymentStyles(ie)
29625
29629
  });
29626
- Le(this, "loadingWrapper");
29627
- Le(this, "componentProps");
29628
- Le(this, "methodCode");
29630
+ ke(this, "loadingWrapper");
29631
+ ke(this, "componentProps");
29632
+ ke(this, "methodCode");
29629
29633
  this.componentProps = {
29630
29634
  ...te,
29631
29635
  country: te.country.trim(),
@@ -29759,7 +29763,7 @@ class Divider extends Component {
29759
29763
  class AccordionContent extends Component {
29760
29764
  constructor({ content: te }) {
29761
29765
  super({ tag: "div" });
29762
- Le(this, "contentElement");
29766
+ ke(this, "contentElement");
29763
29767
  this.element.classList.add("accordion-content"), this.contentElement = te, this.renderContent();
29764
29768
  }
29765
29769
  renderContent() {
@@ -29848,14 +29852,14 @@ class AccordionItem extends Component {
29848
29852
  onClose: le
29849
29853
  }) {
29850
29854
  super({ tag: "div", styles: () => getAccordionItemStyles() });
29851
- Le(this, "isOpen");
29852
- Le(this, "isDisabled");
29853
- Le(this, "content");
29854
- Le(this, "onClick");
29855
- Le(this, "onClose");
29856
- Le(this, "accordionContent", null);
29857
- Le(this, "arrowWrapper");
29858
- Le(this, "header");
29855
+ ke(this, "isOpen");
29856
+ ke(this, "isDisabled");
29857
+ ke(this, "content");
29858
+ ke(this, "onClick");
29859
+ ke(this, "onClose");
29860
+ ke(this, "accordionContent", null);
29861
+ ke(this, "arrowWrapper");
29862
+ ke(this, "header");
29859
29863
  this.isOpen = se, this.isDisabled = ue, this.content = oe, this.onClick = ce, this.onClose = le, this.header = document.createElement("div"), this.header.classList.add("accordion-header"), this.isDisabled || this.header.addEventListener("click", this.handleClick.bind(this));
29860
29864
  const de = new Icon({
29861
29865
  name: te,
@@ -29931,10 +29935,10 @@ class AccordionItem extends Component {
29931
29935
  class Accordion extends Component {
29932
29936
  constructor({ items: te, defaultActiveItem: ne, onChangeContent: ie }) {
29933
29937
  super({ tag: "div" });
29934
- Le(this, "openIndex");
29935
- Le(this, "accordionItems", []);
29936
- Le(this, "onChangeContent");
29937
- Le(this, "hasSingleItem");
29938
+ ke(this, "openIndex");
29939
+ ke(this, "accordionItems", []);
29940
+ ke(this, "onChangeContent");
29941
+ ke(this, "hasSingleItem");
29938
29942
  this.hasSingleItem = te.length === 1, this.openIndex = this.validateDefaultIndex(ne ?? null, te.length), this.accordionItems = te.map((oe, se) => {
29939
29943
  const ae = this.openIndex === se, ue = this.hasSingleItem, ce = new AccordionItem({
29940
29944
  icon: oe.icon,
@@ -30098,6 +30102,53 @@ class Badge extends Component {
30098
30102
  });
30099
30103
  }
30100
30104
  }
30105
+ const defineLinkStyles = ({
30106
+ isDisabled: ee = !1
30107
+ }) => {
30108
+ const re = ThemeManager.getStyles();
30109
+ return ee ? re.button.disabled.textColor : re.button.text.textColor;
30110
+ }, getLinkStyles = (ee) => css`
30111
+ color: ${defineLinkStyles({ isDisabled: ee.isDisabled })};
30112
+ cursor: ${ee.isDisabled ? "not-allowed" : "pointer"};
30113
+ text-decoration: ${ee.underline !== !1 ? "underline" : "none"};
30114
+ opacity: ${ee.isDisabled ? 0.6 : 1};
30115
+ transition: opacity 0.2s ease;
30116
+
30117
+ &:hover {
30118
+ opacity: ${ee.isDisabled ? 0.6 : 0.8};
30119
+ }
30120
+
30121
+ &:active {
30122
+ opacity: ${ee.isDisabled ? 0.6 : 0.9};
30123
+ }
30124
+ `;
30125
+ class Link extends Component {
30126
+ constructor(te) {
30127
+ const { text: ne, onClick: ie, href: oe, target: se, isDisabled: ae = !1, ...ue } = te;
30128
+ super({
30129
+ tag: "a",
30130
+ styles: () => getLinkStyles({ ...ue, isDisabled: ae })
30131
+ });
30132
+ ke(this, "isDisabled");
30133
+ ke(this, "onClick");
30134
+ this.isDisabled = ae, ie && (this.onClick = ie);
30135
+ const ce = new Typography({
30136
+ ...ue,
30137
+ text: ne,
30138
+ variant: "span",
30139
+ color: defineLinkStyles({ isDisabled: this.isDisabled })
30140
+ });
30141
+ this.element.appendChild(ce.element), this.setupLinkBehavior(oe, se);
30142
+ }
30143
+ setupLinkBehavior(te, ne) {
30144
+ te ? (this.element.href = te, this.element.target = ne || "_self") : (this.element.href = "#", this.element.onclick = (ie) => {
30145
+ ie.preventDefault(), !this.isDisabled && this.onClick && this.onClick();
30146
+ });
30147
+ }
30148
+ setDisabled(te) {
30149
+ this.isDisabled = te;
30150
+ }
30151
+ }
30101
30152
  var browser = {}, canPromise, hasRequiredCanPromise;
30102
30153
  function requireCanPromise() {
30103
30154
  return hasRequiredCanPromise || (hasRequiredCanPromise = 1, canPromise = function() {
@@ -31414,13 +31465,13 @@ function requireQrcode() {
31414
31465
  dr[ur] = Ir.slice(fr, fr + Sr), Qe[ur] = hr.encode(dr[ur]), fr += Sr, Bt = Math.max(Bt, Sr);
31415
31466
  }
31416
31467
  const $e = new Uint8Array(we);
31417
- let Oe = 0, qe, mr;
31418
- for (qe = 0; qe < Bt; qe++)
31468
+ let Oe = 0, We, mr;
31469
+ for (We = 0; We < Bt; We++)
31419
31470
  for (mr = 0; mr < Ne; mr++)
31420
- qe < dr[mr].length && ($e[Oe++] = dr[mr][qe]);
31421
- for (qe = 0; qe < Ke; qe++)
31471
+ We < dr[mr].length && ($e[Oe++] = dr[mr][We]);
31472
+ for (We = 0; We < Ke; We++)
31422
31473
  for (mr = 0; mr < Ne; mr++)
31423
- $e[Oe++] = Qe[mr][qe];
31474
+ $e[Oe++] = Qe[mr][We];
31424
31475
  return $e;
31425
31476
  }
31426
31477
  function Ie(Te, Se, Re, we) {
@@ -31650,25 +31701,26 @@ const getFlagByIso = (ee) => `${AstroPayConfig.getRuntimeConfig().RESOURCES_BUCK
31650
31701
  }
31651
31702
  `;
31652
31703
  class PhoneInputForm extends Component {
31653
- constructor({ availableCountries: te, onSubmit: ne }) {
31704
+ constructor({ availableCountries: te, onSubmit: ne, onChange: ie }) {
31654
31705
  super({
31655
31706
  tag: "form",
31656
31707
  styles: () => getPhoneInputStyles()
31657
31708
  });
31658
- Le(this, "inputDialCode");
31659
- Le(this, "inputPhoneNumber");
31660
- Le(this, "btnContinue");
31661
- Le(this, "inputsWrapper");
31662
- Le(this, "onSubmit");
31663
- this.onSubmit = ne;
31664
- const ie = te.map((oe) => ({
31665
- name: oe.name,
31666
- value: oe.callingCode,
31667
- icon: getFlagByIso(oe.iso)
31709
+ ke(this, "inputDialCode");
31710
+ ke(this, "inputPhoneNumber");
31711
+ ke(this, "btnContinue");
31712
+ ke(this, "inputsWrapper");
31713
+ ke(this, "onSubmit");
31714
+ ke(this, "onChange");
31715
+ this.onSubmit = ne, this.onChange = ie;
31716
+ const oe = te.map((ae) => ({
31717
+ name: ae.name,
31718
+ value: ae.callingCode,
31719
+ icon: getFlagByIso(ae.iso)
31668
31720
  }));
31669
31721
  this.inputsWrapper = document.createElement("div"), this.inputsWrapper.classList.add("inputs-wrapper"), this.inputDialCode = new InputSelect({
31670
31722
  name: "country",
31671
- options: ie,
31723
+ options: oe,
31672
31724
  emptyMessage: AstroPayI18n.translate("enter_country_code"),
31673
31725
  maxWidth: "180px",
31674
31726
  showValue: !0
@@ -31683,15 +31735,23 @@ class PhoneInputForm extends Component {
31683
31735
  size: "large",
31684
31736
  isDisabled: !0,
31685
31737
  isApTheme: !0,
31686
- onClick: (oe) => {
31687
- oe.preventDefault(), this.handleSubmit();
31738
+ onClick: (ae) => {
31739
+ ae.preventDefault(), this.handleSubmit();
31688
31740
  }
31689
- }), this.element.append(this.inputsWrapper, this.btnContinue.element), this.inputDialCode.element.addEventListener("change", () => this.validateForm()), this.inputPhoneNumber.element.addEventListener("input", () => this.validateForm()), this.validateForm();
31741
+ }), this.element.append(this.inputsWrapper, this.btnContinue.element);
31742
+ const se = () => {
31743
+ this.validateForm(), this.triggerOnChange();
31744
+ };
31745
+ this.inputDialCode.element.addEventListener("change", se), this.inputPhoneNumber.element.addEventListener("input", se), this.validateForm();
31690
31746
  }
31691
31747
  validateForm() {
31692
31748
  const te = this.inputDialCode.getValue(), ne = this.inputPhoneNumber.getValue(), ie = ne && ne.toString().length >= 5, oe = !!te;
31693
31749
  this.btnContinue.setDisabled(!ie || !oe);
31694
31750
  }
31751
+ triggerOnChange() {
31752
+ var te;
31753
+ (te = this.onChange) == null || te.call(this);
31754
+ }
31695
31755
  handleSubmit() {
31696
31756
  const te = new FormData(this.element), ne = te.get("country"), ie = te.get("phone"), oe = `${ne}${ie}`;
31697
31757
  DataDogTracker.trackEvent("ap_cl_identify_user_init", {
@@ -31716,7 +31776,7 @@ const getAstroPayPaymentStyles$1 = () => css`
31716
31776
  flex-direction: column;
31717
31777
  gap: 10px;
31718
31778
 
31719
- .sent-message-wrapper {
31779
+ .feedback-message-wrapper {
31720
31780
  display: flex;
31721
31781
  flex-direction: column;
31722
31782
  align-items: center;
@@ -31732,12 +31792,26 @@ const getAstroPayPaymentStyles$1 = () => css`
31732
31792
  gap: 4px;
31733
31793
  }
31734
31794
 
31795
+ .already-paid-content {
31796
+ display: flex;
31797
+ flex-direction: row;
31798
+ align-items: center;
31799
+ justify-content: center;
31800
+ gap: 4px;
31801
+ flex-wrap: wrap;
31802
+ }
31803
+
31735
31804
  .loading-pooling {
31736
31805
  display: flex;
31737
31806
  align-items: center;
31738
31807
  gap: 8px;
31739
31808
  }
31740
31809
 
31810
+ .center-row {
31811
+ display: flex;
31812
+ justify-content: center;
31813
+ }
31814
+
31741
31815
  @keyframes fadeIn {
31742
31816
  from {
31743
31817
  opacity: 0;
@@ -31747,16 +31821,19 @@ const getAstroPayPaymentStyles$1 = () => css`
31747
31821
  }
31748
31822
  }
31749
31823
  `;
31824
+ var EFlowType = /* @__PURE__ */ ((ee) => (ee.AUTHENTICATED = "AUTHENTICATED", ee.GUEST = "GUEST", ee))(EFlowType || {});
31750
31825
  class AstroPayPaymentMethod extends Component {
31751
31826
  constructor(te) {
31752
31827
  super({ tag: "div", styles: () => getAstroPayPaymentStyles$1() });
31753
- Le(this, "componentProps");
31754
- Le(this, "btnAstroPay", null);
31755
- Le(this, "formCountryPhone");
31756
- Le(this, "pushFeedbackWrapper");
31757
- Le(this, "pollingService", null);
31758
- Le(this, "updatedInitialState");
31759
- Le(this, "renderAPComponent", () => {
31828
+ ke(this, "componentProps");
31829
+ ke(this, "btnAstroPay", null);
31830
+ ke(this, "formCountryPhone");
31831
+ ke(this, "pushFeedbackWrapper");
31832
+ ke(this, "pollingService", null);
31833
+ ke(this, "updatedInitialState");
31834
+ ke(this, "currentFlow", null);
31835
+ // #region Commons
31836
+ ke(this, "renderAPComponent", () => {
31760
31837
  var te;
31761
31838
  if (this.updatedInitialState) {
31762
31839
  if (this.element.innerHTML = "", this.btnAstroPay = new Button({
@@ -31777,7 +31854,10 @@ class AstroPayPaymentMethod extends Component {
31777
31854
  this.updatedInitialState = !1;
31778
31855
  }
31779
31856
  });
31780
- this.componentProps = te, this.updatedInitialState = !0, AmplitudeAnalytics$1.astroPayPaymentStarted(this.componentProps.paymentExternalId), this.renderAPComponent();
31857
+ ke(this, "handleOnChangePhoneNumber", () => {
31858
+ this.stopPolling(), this.pushFeedbackWrapper && this.pushFeedbackWrapper.remove(), this.currentFlow = null;
31859
+ });
31860
+ this.componentProps = te, this.updatedInitialState = !0, this.currentFlow = null, AmplitudeAnalytics$1.astroPayPaymentStarted(this.componentProps.paymentExternalId), this.renderAPComponent();
31781
31861
  }
31782
31862
  handleAstroPayClick() {
31783
31863
  var te, ne;
@@ -31829,7 +31909,8 @@ class AstroPayPaymentMethod extends Component {
31829
31909
  availableCountries: ((te = this.componentProps) == null ? void 0 : te.countries) ?? [],
31830
31910
  onSubmit: (ne) => {
31831
31911
  AmplitudeAnalytics$1.astroPayPaymentPhoneNumberEntered(this.componentProps.paymentExternalId), this.handlePhoneNumberSubmit(ne);
31832
- }
31912
+ },
31913
+ onChange: this.handleOnChangePhoneNumber
31833
31914
  }), this.element.append(this.formCountryPhone.element);
31834
31915
  }
31835
31916
  generateRedirectUrl() {
@@ -31849,16 +31930,46 @@ class AstroPayPaymentMethod extends Component {
31849
31930
  shouldOpenApp: !0
31850
31931
  });
31851
31932
  }
31852
- handleAccountFlow() {
31853
- this.renderAlreadySent(), this.checkPaymentStatus();
31933
+ async checkPaymentStatus(te) {
31934
+ var ne, ie;
31935
+ try {
31936
+ this.currentFlow = te, this.stopPolling();
31937
+ const oe = await PaymentService.getPaymentStatus(
31938
+ this.componentProps.paymentExternalId
31939
+ );
31940
+ oe.pollingStatus === EPollingStatus.ACCEPTED ? this.initializePollingService(oe) : oe.pollingStatus === EPollingStatus.FINISHED && this.handlePaymentSuccess(oe);
31941
+ } catch (oe) {
31942
+ const se = oe;
31943
+ this.showErrorMessage(se.message), (ie = (ne = this.componentProps) == null ? void 0 : ne.onError) == null || ie.call(ne);
31944
+ }
31854
31945
  }
31855
- handleNoAccountFlow() {
31856
- const te = this.generateRedirectUrl(), ne = window.open(te, "_blank");
31857
- (!ne || ne.closed || typeof ne.closed > "u") && (window.location.href = te);
31946
+ initializePollingService(te) {
31947
+ this.pollingService = new PollingService(
31948
+ te,
31949
+ (ne) => this.showWaitingInfo(ne),
31950
+ (ne) => this.handlePaymentSuccess(ne),
31951
+ (ne) => this.handlePollingError(ne)
31952
+ ), this.pollingService.startPolling();
31953
+ }
31954
+ showWaitingInfo(te) {
31955
+ this.currentFlow === EFlowType.GUEST && (this.pushFeedbackWrapper && this.pushFeedbackWrapper.remove(), this.pushFeedbackWrapper = document.createElement("div"), this.pushFeedbackWrapper.classList.add("feedback-message-wrapper"), this.element.append(this.pushFeedbackWrapper)), this.showAccountWaitingInfo(te);
31956
+ }
31957
+ handlePollingError(te) {
31958
+ var ie, oe;
31959
+ const ne = te;
31960
+ this.showErrorMessage(ne.message), this.stopPolling(), this.currentFlow = null, (oe = (ie = this.componentProps) == null ? void 0 : ie.onError) == null || oe.call(ie);
31961
+ }
31962
+ stopPolling() {
31963
+ this.pollingService && (this.pollingService.stopPolling(), this.pollingService = null), this.element.querySelectorAll(".loading-pooling").forEach((ne) => ne.remove());
31964
+ }
31965
+ // #endregion
31966
+ // #region Account flow
31967
+ handleAccountFlow() {
31968
+ this.renderAlreadySent(), this.checkPaymentStatus(EFlowType.AUTHENTICATED);
31858
31969
  }
31859
31970
  renderAlreadySent() {
31860
31971
  var fe;
31861
- this.pushFeedbackWrapper && this.pushFeedbackWrapper.remove(), (fe = this.btnAstroPay) == null || fe.setDisabled(!0), this.pushFeedbackWrapper = document.createElement("div"), this.pushFeedbackWrapper.classList.add("sent-message-wrapper");
31972
+ this.pushFeedbackWrapper && this.pushFeedbackWrapper.remove(), (fe = this.btnAstroPay) == null || fe.setDisabled(!0), this.pushFeedbackWrapper = document.createElement("div"), this.pushFeedbackWrapper.classList.add("feedback-message-wrapper");
31862
31973
  const te = new Badge({
31863
31974
  items: [
31864
31975
  { title: AstroPayI18n.translate("push_notification_sent"), icon: "notification_fill" }
@@ -31900,35 +32011,7 @@ class AstroPayPaymentMethod extends Component {
31900
32011
  }).element;
31901
32012
  this.pushFeedbackWrapper.append(te, ne, ue, de), this.element.append(this.pushFeedbackWrapper);
31902
32013
  }
31903
- async checkPaymentStatus() {
31904
- try {
31905
- const te = await PaymentService.getPaymentStatus(
31906
- this.componentProps.paymentExternalId
31907
- );
31908
- te.pollingStatus === EPollingStatus.ACCEPTED ? this.initializePollingService(te) : te.pollingStatus === EPollingStatus.FINISHED && this.handlePaymentSuccess(te);
31909
- } catch (te) {
31910
- const ne = te;
31911
- this.showErrorMessage(ne.message);
31912
- }
31913
- }
31914
- initializePollingService(te) {
31915
- this.pollingService = new PollingService(
31916
- te,
31917
- (ne) => this.showWaitingInfo(ne),
31918
- (ne) => this.handlePaymentSuccess(ne),
31919
- (ne) => this.handlePollingError(ne)
31920
- ), this.pollingService.startPolling();
31921
- }
31922
- handlePaymentSuccess(te) {
31923
- var oe, se;
31924
- const ne = [], ie = new Status$1({
31925
- type: "success",
31926
- title: (oe = te.data.successSection) == null ? void 0 : oe.title,
31927
- description: (se = te.data.successSection) == null ? void 0 : se.description
31928
- }).element;
31929
- ne.push(ie), this.componentProps.onSuccess ? this.componentProps.onSuccess(ne) : (this.element.innerHTML = "", ne.forEach((ae) => this.element.append(ae)));
31930
- }
31931
- showWaitingInfo(te) {
32014
+ showAccountWaitingInfo(te) {
31932
32015
  if (!this.pushFeedbackWrapper) return;
31933
32016
  let ne = this.pushFeedbackWrapper.querySelector(".loading-pooling");
31934
32017
  ne || (ne = document.createElement("div"), ne.classList.add("loading-pooling"), this.pushFeedbackWrapper.append(ne)), ne.innerHTML = "";
@@ -31941,10 +32024,41 @@ class AstroPayPaymentMethod extends Component {
31941
32024
  }).element;
31942
32025
  ne.append(ie, oe);
31943
32026
  }
31944
- handlePollingError(te) {
31945
- var ie, oe;
31946
- const ne = te;
31947
- this.showErrorMessage(ne.message), this.stopPolling(), (oe = (ie = this.componentProps) == null ? void 0 : ie.onError) == null || oe.call(ie);
32027
+ // #endregion
32028
+ // #region No account flow
32029
+ handleNoAccountFlow() {
32030
+ const te = this.generateRedirectUrl(), ne = window.open(te, "_blank");
32031
+ (!ne || ne.closed || typeof ne.closed > "u") && (window.location.href = te), setTimeout(() => {
32032
+ this.showNoAccountWaitingInfo();
32033
+ }, 5e3);
32034
+ }
32035
+ showNoAccountWaitingInfo() {
32036
+ this.pushFeedbackWrapper && this.pushFeedbackWrapper.remove(), this.pushFeedbackWrapper = document.createElement("div"), this.pushFeedbackWrapper.classList.add("feedback-message-wrapper");
32037
+ const te = document.createElement("div");
32038
+ te.classList.add("already-paid-content");
32039
+ const ne = new Typography({
32040
+ text: AstroPayI18n.translate("already_paid"),
32041
+ size: "xSmall"
32042
+ }).element, ie = new Link({
32043
+ text: AstroPayI18n.translate("check_payment_status"),
32044
+ size: "xSmall",
32045
+ onClick: () => {
32046
+ var oe;
32047
+ (oe = this.formCountryPhone) == null || oe.setDisable(!0), this.checkPaymentStatus(EFlowType.GUEST);
32048
+ }
32049
+ }).element;
32050
+ te.append(ne, ie), this.pushFeedbackWrapper.append(te), this.element.append(this.pushFeedbackWrapper);
32051
+ }
32052
+ // #endregion
32053
+ // #region Generic
32054
+ handlePaymentSuccess(te) {
32055
+ var oe, se;
32056
+ const ne = [], ie = new Status$1({
32057
+ type: "success",
32058
+ title: (oe = te.data.successSection) == null ? void 0 : oe.title,
32059
+ description: (se = te.data.successSection) == null ? void 0 : se.description
32060
+ }).element;
32061
+ ne.push(ie), this.componentProps.onSuccess ? this.componentProps.onSuccess(ne) : (this.element.innerHTML = "", ne.forEach((ae) => this.element.append(ae)));
31948
32062
  }
31949
32063
  showErrorMessage(te) {
31950
32064
  if (!this.pushFeedbackWrapper) return;
@@ -31956,15 +32070,10 @@ class AstroPayPaymentMethod extends Component {
31956
32070
  }).element;
31957
32071
  this.pushFeedbackWrapper.append(ne);
31958
32072
  }
31959
- stopPolling() {
31960
- this.pollingService && (this.pollingService.stopPolling(), this.pollingService = null), this.element.querySelectorAll(".loading-pooling").forEach((ne) => ne.remove());
31961
- }
31962
- removePollingContent() {
31963
- this.stopPolling(), this.renderAPComponent();
31964
- }
31965
32073
  destroy() {
31966
32074
  this.stopPolling(), this.element.remove();
31967
32075
  }
32076
+ // #endregion
31968
32077
  }
31969
32078
  const formatTimeInSeconds = (ee) => {
31970
32079
  const re = Math.floor(ee / 60), te = ee % 60;
@@ -31988,9 +32097,9 @@ const formatTimeInSeconds = (ee) => {
31988
32097
  class Timer extends Component {
31989
32098
  constructor(te) {
31990
32099
  super({ tag: "div", styles: (ne) => getTimerStyles(ne) });
31991
- Le(this, "compProps");
31992
- Le(this, "intervalId", null);
31993
- Le(this, "isTimeOver", !1);
32100
+ ke(this, "compProps");
32101
+ ke(this, "intervalId", null);
32102
+ ke(this, "isTimeOver", !1);
31994
32103
  this.compProps = {
31995
32104
  timeoutText: AstroPayI18n.translate("time_up"),
31996
32105
  ...te
@@ -32088,11 +32197,11 @@ class PaymentMethod extends Component {
32088
32197
  tag: "div",
32089
32198
  styles: (ne) => getPaymentMethodStyles(ne)
32090
32199
  });
32091
- Le(this, "componentProps");
32092
- Le(this, "loadingWrapper");
32093
- Le(this, "timerElement", null);
32094
- Le(this, "timerInstance", null);
32095
- Le(this, "pollingService", null);
32200
+ ke(this, "componentProps");
32201
+ ke(this, "loadingWrapper");
32202
+ ke(this, "timerElement", null);
32203
+ ke(this, "timerInstance", null);
32204
+ ke(this, "pollingService", null);
32096
32205
  this.componentProps = te, this.loadingWrapper = this.createLoadingWrapper(), this.element.append(this.loadingWrapper), this.fetchPaymentMethodData();
32097
32206
  }
32098
32207
  createLoadingWrapper() {
@@ -32420,9 +32529,9 @@ class AstroPayFullCheckout extends Component {
32420
32529
  elementId: "payment-component",
32421
32530
  styles: (ie) => getAstroPayFullCheckoutStyles(ie)
32422
32531
  });
32423
- Le(this, "loadingWrapper");
32424
- Le(this, "componentProps");
32425
- Le(this, "accPaymentMethods");
32532
+ ke(this, "loadingWrapper");
32533
+ ke(this, "componentProps");
32534
+ ke(this, "accPaymentMethods");
32426
32535
  this.componentProps = {
32427
32536
  ...te,
32428
32537
  showTitle: te.showTitle ?? !0,
@@ -32599,9 +32708,9 @@ class AstroPayPayment extends Component {
32599
32708
  tag: "div",
32600
32709
  styles: (ie) => getAstroPayPaymentStyles(ie)
32601
32710
  });
32602
- Le(this, "loadingWrapper");
32603
- Le(this, "componentProps");
32604
- Le(this, "methodCode");
32711
+ ke(this, "loadingWrapper");
32712
+ ke(this, "componentProps");
32713
+ ke(this, "methodCode");
32605
32714
  this.componentProps = {
32606
32715
  ...te,
32607
32716
  country: te.country.trim(),