@revolugo/elements 6.7.2 → 6.7.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/index.es.min.js +2618 -2553
  2. package/dist/index.es.min.js.map +1 -1
  3. package/dist/index.min.js +6 -6
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/revolugo._basefor.CodrYJxd.min.js +15 -0
  6. package/dist/{revolugo.banktransferdetails.arP5j__o.min.js → revolugo.banktransferdetails.ES8H8TdX.min.js} +24 -23
  7. package/dist/{revolugo.bdaterangepicker.Ba26rd5I.min.js → revolugo.bdaterangepicker.FofU3mwm.min.js} +121 -6
  8. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.Er0BOzhm.min.js +61 -0
  9. package/dist/{revolugo.bhoteloffersfilterbar.CwCd9oox.min.js → revolugo.bhoteloffersfilterbar.o301OMGn.min.js} +173 -169
  10. package/dist/{revolugo.bpricesummaryskeleton.DH-Kuge7.min.js → revolugo.bhotelroomsdetails.V_1vhP4H.min.js} +169 -241
  11. package/dist/{revolugo.bhotelsearchbar.DaX-iQTB.min.js → revolugo.bhotelsearchbar.B9IrrAQm.min.js} +77 -76
  12. package/dist/{revolugo.bimagecarousel.CgrOcU1C.min.js → revolugo.bimagecarousel.BbOESSh5.min.js} +36 -36
  13. package/dist/{revolugo.bookingdetailssidebar.CXHn5MDn.min.js → revolugo.bookingdetailssidebar.DJCyHj6W.min.js} +184 -202
  14. package/dist/revolugo.bookingdetailssidebar.YExbkGzc.min.js +24 -0
  15. package/dist/{revolugo.bookingmanager.BIFir20P.min.js → revolugo.bookingmanager.dEjhzT2A.min.js} +51 -48
  16. package/dist/revolugo.bpricesummaryskeleton.t8bYETzP.min.js +79 -0
  17. package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.ACZ7Rna9.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CmgO29ZN.min.js} +28 -27
  18. package/dist/{revolugo.btag.0ugEj-2W.min.js → revolugo.btag.HV2MY7n9.min.js} +70 -69
  19. package/dist/{revolugo.cancellationpoliciesbadge.BakDGPnx.min.js → revolugo.cancellationpoliciesbadge.BlxYDvQM.min.js} +51 -70
  20. package/dist/revolugo.cancellationpoliciesbadge.FhiHeLu9.min.js +24 -0
  21. package/dist/{revolugo.cancellationpolicieslist.C_FFhkUD.min.js → revolugo.cancellationpolicieslist.BMKPdB9z.min.js} +28 -47
  22. package/dist/revolugo.cancellationpolicieslist.C4GBKaw8.min.js +24 -0
  23. package/dist/revolugo.case-transformers.Ddd0DZeI.min.js +123 -0
  24. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  25. package/dist/revolugo.creditcardform.CJnUNQmx.min.js +24 -0
  26. package/dist/{revolugo.creditcardform.B5bfYD6z.min.js → revolugo.creditcardform.KPRkwSVZ.min.js} +650 -901
  27. package/dist/revolugo.creditcardpayment.DGWBaIYP.min.js +24 -0
  28. package/dist/{revolugo.creditcardpayment.DzD24_nR.min.js → revolugo.creditcardpayment.gPcfsEC5.min.js} +138 -154
  29. package/dist/{revolugo.currencypicker.LtjCHf9r.min.js → revolugo.currencypicker.CEQB4l-T.min.js} +19 -18
  30. package/dist/revolugo.currencypickerbtn.D3t6zODt.min.js +24 -0
  31. package/dist/revolugo.currencypickerbtn.drvXcNoD.min.js +163 -0
  32. package/dist/revolugo.dialog-attach.CEqY6W2u.min.js +28 -0
  33. package/dist/revolugo.dialog-transition.DjCJstCa.min.js +114 -0
  34. package/dist/revolugo.fastbookingflow.rfdQQDxx.min.js +34 -0
  35. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +71 -0
  36. package/dist/{revolugo.fullbookingflow.CkMmSkIU.min.js → revolugo.fullbookingflow.rmAHR_IC.min.js} +77 -75
  37. package/dist/{revolugo.hoteldescriptionview.Cp5ZgFcV.min.js → revolugo.hoteldescriptionview.BU8Q37ZC.min.js} +363 -379
  38. package/dist/revolugo.hoteldescriptionview.Ctcmbxkx.min.js +24 -0
  39. package/dist/{revolugo.hotelofferitemlayout.Bhhi0sg3.min.js → revolugo.hotelofferitemlayout.yfMiZs8-.min.js} +9 -9
  40. package/dist/revolugo.hotelofferlist.Dt7FXhVI.min.js +24 -0
  41. package/dist/{revolugo.hotelofferlist.BTgDe-tp.min.js → revolugo.hotelofferlist.Il2LjMCL.min.js} +1005 -1053
  42. package/dist/{revolugo.hotelofferrequestcreator.B17qgpU2.min.js → revolugo.hotelofferrequestcreator.BpgknOPE.min.js} +7 -7
  43. package/dist/revolugo.hoteloffersearchmenu.MzJ49afx.min.js +46 -0
  44. package/dist/revolugo.hoteloffersmap.BMFBMh12.min.js +24 -0
  45. package/dist/revolugo.hoteloffersmap.CObm7hoD.min.js +8394 -0
  46. package/dist/{revolugo.hoteloffersview.D1-F8ONF.min.js → revolugo.hoteloffersview.Bpu61_EH.min.js} +161 -176
  47. package/dist/revolugo.hoteloffersview.Cn-wbBGn.min.js +19 -0
  48. package/dist/revolugo.hotelroomofferlist.Cvw5drkG.min.js +24 -0
  49. package/dist/{revolugo.hotelroomofferlist.BpTAFyMO.min.js → revolugo.hotelroomofferlist.DyMNPEmJ.min.js} +468 -485
  50. package/dist/revolugo.hotelroomofferrequestcreator.props.UhEzU-Eo.min.js +171 -0
  51. package/dist/{revolugo.hotelroomoffersbookingflow.BNm52u6c.min.js → revolugo.hotelroomoffersbookingflow.BhZHfo79.min.js} +40 -39
  52. package/dist/{revolugo.hotelroomoffersearchmenu.Bysb279d.min.js → revolugo.hotelroomoffersearchmenu.BDYUJlri.min.js} +29 -49
  53. package/dist/revolugo.hotelroomoffersearchmenu.D7QyRteS.min.js +25 -0
  54. package/dist/revolugo.hotelroomoffersview.BpiOqbeg.min.js +24 -0
  55. package/dist/{revolugo.hotelroomoffersview.BVbajWFv.min.js → revolugo.hotelroomoffersview.DI54bcEi.min.js} +71 -91
  56. package/dist/revolugo.index.CHVqFiWo.min.js +1037 -0
  57. package/dist/{revolugo.index.BX4WZjgg.min.js → revolugo.index.DlCArqY2.min.js} +6 -6
  58. package/dist/{revolugo.rounded.u4maswiM.min.js → revolugo.index.wc.U-Ds0Ud7.min.js} +7732 -7859
  59. package/dist/{revolugo.langpicker.BTmjf3Hy.min.js → revolugo.langpicker.Bfd4GXeG.min.js} +15 -15
  60. package/dist/{revolugo.langpickerbtn.DthGIqyz.min.js → revolugo.langpickerbtn.Bx3onVJO.min.js} +53 -71
  61. package/dist/revolugo.langpickerbtn.Dj9aqzUa.min.js +24 -0
  62. package/dist/revolugo.min.js +1 -1
  63. package/dist/{revolugo.position.CEExVEE8.min.js → revolugo.position.DG21FbXr.min.js} +45 -44
  64. package/dist/revolugo.prebookform.DZiQ5M3q.min.js +24 -0
  65. package/dist/{revolugo.prebookform.By-V1bl9.min.js → revolugo.prebookform.hUDmprdU.min.js} +94 -114
  66. package/dist/revolugo.roominglisteditor.CqHUrQ4g.min.js +24 -0
  67. package/dist/{revolugo.roominglisteditor.BTk6Ieu-.min.js → revolugo.roominglisteditor.meQaCKaE.min.js} +82 -101
  68. package/dist/revolugo.rounded.CDKzGlV8.min.js +68 -0
  69. package/dist/revolugo.ssrboot.me6E0cRY.min.js +18 -0
  70. package/dist/{revolugo.storybooktoolbar.CFuRMVxX.min.js → revolugo.storybooktoolbar.CmOqTdGz.min.js} +110 -108
  71. package/dist/revolugo.termsandconditions.CSbVW2DS.min.js +23 -0
  72. package/dist/{revolugo.termsandconditions.B1itHoql.min.js → revolugo.termsandconditions.CcWZ66ul.min.js} +90 -108
  73. package/dist/revolugo.use-breakpoint-service.DzP23XZi.min.js +106 -0
  74. package/dist/{revolugo.vautocomplete.bQzOaYWm.min.js → revolugo.vautocomplete.1eBdqerb.min.js} +133 -132
  75. package/dist/{revolugo.vbadge.Cm6IZIUx.min.js → revolugo.vbadge.3HWnFhqm.min.js} +33 -32
  76. package/dist/{revolugo.vbtn.D3Vm2ZlS.min.js → revolugo.vbtn.D5oMY_p5.min.js} +82 -81
  77. package/dist/{revolugo.vcard.D7M0YovD.min.js → revolugo.vcard.CLsvQwyI.min.js} +50 -49
  78. package/dist/{revolugo.vcheckboxbtn.DxJuZdU5.min.js → revolugo.vcheckboxbtn.BkLi1Y04.min.js} +72 -71
  79. package/dist/{revolugo.vdialog.B3aAN6LZ.min.js → revolugo.vdialog.8XLsV5dc.min.js} +26 -25
  80. package/dist/revolugo.vdivider.jj-AdUyd.min.js +77 -0
  81. package/dist/{revolugo.vexpansionpanels.Cio1oHcQ.min.js → revolugo.vexpansionpanels.Cc3RP1rh.min.js} +42 -41
  82. package/dist/{revolugo.vform.1YZ7pPUG.min.js → revolugo.vform.Db-PE5B0.min.js} +15 -15
  83. package/dist/{revolugo.vinput.8rjbvXX2.min.js → revolugo.vinput.86caOzy1.min.js} +91 -91
  84. package/dist/{revolugo.vlabel.DYs_A1Ji.min.js → revolugo.vlabel.CVuILaZ8.min.js} +5 -5
  85. package/dist/{revolugo.vlist.DCvg08Wu.min.js → revolugo.vlist.Dyah7BiI.min.js} +90 -88
  86. package/dist/revolugo.vmenu.CXAeU_qi.min.js +152 -0
  87. package/dist/{revolugo.vselect.C8g3avwV.min.js → revolugo.vselect.BsnagCGW.min.js} +133 -132
  88. package/dist/revolugo.vsheet.BG1meZTM.min.js +72 -0
  89. package/dist/{revolugo.vskeletonloader.lUzEuSvU.min.js → revolugo.vskeletonloader.BORzy4_m.min.js} +14 -13
  90. package/dist/{revolugo.vsnackbar.vZBrE3Q7.min.js → revolugo.vsnackbar.CxMxY-0P.min.js} +46 -44
  91. package/dist/revolugo.vspacer.BiUgatwg.min.js +7 -0
  92. package/dist/{revolugo.vtextarea.DQrxw1ua.min.js → revolugo.vtextarea.BkNy6mLm.min.js} +48 -39
  93. package/dist/{revolugo.vtextfield.DPMmhQ6a.min.js → revolugo.vtextfield.DlfEz4JN.min.js} +109 -107
  94. package/dist/{revolugo.vtoolbar.Bzh8TXIO.min.js → revolugo.vtoolbar.2imDjYnr.min.js} +21 -20
  95. package/dist/{revolugo.vtooltip.DMjpxOcA.min.js → revolugo.vtooltip.vIYDBJ4s.min.js} +118 -109
  96. package/dist/{revolugo.vwindowitem.yFpV6WTQ.min.js → revolugo.vwindowitem.CIEwtCBy.min.js} +41 -41
  97. package/dist/revolugo.watch-list.C39H03pK.min.js +16 -0
  98. package/dist/{revolugo.webcomponentwrapper.CfhsVy34.min.js → revolugo.webcomponentwrapper.BzrBNp7K.min.js} +484 -541
  99. package/package.json +5 -5
  100. package/dist/revolugo.currencypickerbtn.D02DHRmR.min.js +0 -181
  101. package/dist/revolugo.dialog-transition.DyO6FFbo.min.js +0 -216
  102. package/dist/revolugo.hoteloffersearchmenu.CQyxBtRu.min.js +0 -46
  103. package/dist/revolugo.hoteloffersmap.Bp9l3_9T.min.js +0 -8409
  104. package/dist/revolugo.hotelroomofferrequestcreator.props.Dj5-GfCx.min.js +0 -317
  105. package/dist/revolugo.index.Ds7GPsGI.min.js +0 -1127
  106. package/dist/revolugo.ssrboot.DrkbeeFe.min.js +0 -91
  107. package/dist/revolugo.vsheet.BeVVp2B7.min.js +0 -71
  108. package/dist/revolugo.vspacer.B9TRu3hb.min.js +0 -14
  109. /package/dist/css/{revolugo.bpricesummaryskeleton.ZHH0C1yQ.css → revolugo.bhotelroomsdetails.ZHH0C1yQ.css} +0 -0
  110. /package/dist/css/{revolugo.rounded.XNPQF1ia.css → revolugo.index.XNPQF1ia.css} +0 -0
  111. /package/dist/css/{revolugo.ssrboot.CTbbZwnv.css → revolugo.vdivider.CTbbZwnv.css} +0 -0
  112. /package/dist/css/{revolugo.hotelroomofferrequestcreator.DvKwEp1j.css → revolugo.vmenu.DvKwEp1j.css} +0 -0
@@ -1,28 +1,30 @@
1
- var $i = Object.defineProperty;
2
- var Ui = (t, e, n) => e in t ? $i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var P = (t, e, n) => Ui(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { u as We, a as Rs, M as Os, _ as ct, q as st, r as Pe, B as Vi, W as Is } from "./revolugo.webcomponentwrapper.CfhsVy34.min.js";
5
- import { b9 as Xe, j as dt, G as pn, aU as jt, a as Me, p as Ie, J as $, c as b, I as Et, E as Fi, cK as ft, S as Le, Y as St, cL as Hi, r as tn, _ as kt, V as Ts, ao as je, a5 as ot, bi as As, a6 as Ds, C as te, a0 as Cs, cb as xi, a3 as Gi, X as ji, t as qi, z as zi, Q as He, K as ge, w as D, M as nn, O as xe, s as q, v as N, aj as _s, n as j, q as ee, P as Ps, R as Rt, k as Ki, a8 as Wi, bm as Yi, be as Qi, bH as Xi, D as Ji, F as Zi, ak as er, x as tr, y as nr } from "./revolugo.rounded.u4maswiM.min.js";
6
- import { H as sr, D as ir, B as rr, p as or, b as ar, c as lr } from "./revolugo.bhoteloffersfilterbar.CwCd9oox.min.js";
7
- import { h as ur, H as cr } from "./revolugo.hotelofferrequestcreator.B17qgpU2.min.js";
8
- import { H as Ns } from "./revolugo.hotelofferitemlayout.Bhhi0sg3.min.js";
9
- import { B as dr, v as Ue, V as fr } from "./revolugo.vtextarea.DQrxw1ua.min.js";
10
- import { V as Je } from "./revolugo.vtextfield.DPMmhQ6a.min.js";
11
- import { V as Cn, u as hr } from "./revolugo.hotelroomofferrequestcreator.props.Dj5-GfCx.min.js";
12
- import { V as ae } from "./revolugo.vbtn.D3Vm2ZlS.min.js";
13
- import { V as gr } from "./revolugo.vspacer.B9TRu3hb.min.js";
14
- import { b as Ft, r as mr, w as pr } from "./revolugo.index.Ds7GPsGI.min.js";
15
- import { c as vr, V as yr } from "./revolugo.position.CEExVEE8.min.js";
16
- import { V as _n, m as br } from "./revolugo.vsheet.BeVVp2B7.min.js";
17
- import { V as Er } from "./revolugo.vform.1YZ7pPUG.min.js";
18
- import { V as sn } from "./revolugo.ssrboot.DrkbeeFe.min.js";
19
- import { a as Sr } from "./revolugo.hotelroomofferlist.BpTAFyMO.min.js";
20
- import { B as kr } from "./revolugo.bhotelsearchbar.DaX-iQTB.min.js";
21
- import { p as Rr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.ACZ7Rna9.min.js";
22
- import { T as Or } from "./revolugo.termsandconditions.B1itHoql.min.js";
23
- import { p as Ir, g as ye } from "./revolugo.dialog-transition.DyO6FFbo.min.js";
24
- import { V as Tr } from "./revolugo.bdaterangepicker.Ba26rd5I.min.js";
25
- function Bi(t) {
1
+ var Li = Object.defineProperty;
2
+ var wi = (t, e, n) => e in t ? Li(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var P = (t, e, n) => wi(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { Y as Xe, d as gn, u as mn, k as xt, Z as Me, _ as Te, D as $, a as b, $ as yt, a0 as $i, a1 as ct, a2 as Le, a3 as bt, a4 as Ui, C as Zt, a5 as Et, M as ks, f as je, a6 as ot, a7 as Rs, a8 as Is, y as re, a9 as Ts, aa as Bi, V as Vi, R as Fi, ab as Hi, ac as xi, F as He, i as ge, w as C, e as en, t as xe, r as oe, o as M, b as Os, c as Q, g as Z, v as As, x as St, K as Gi, Q as ji, ad as qi, S as zi, ae as Ki, H as Yi, I as Wi, A as Qi } from "./revolugo.index.wc.U-Ds0Ud7.min.js";
5
+ import { h as Xi, H as Ji } from "./revolugo.hotelofferrequestcreator.BpgknOPE.min.js";
6
+ import { H as Zi, D as er, B as tr, p as nr, b as sr, c as ir } from "./revolugo.bhoteloffersfilterbar.o301OMGn.min.js";
7
+ import { H as Ds } from "./revolugo.hotelofferitemlayout.yfMiZs8-.min.js";
8
+ import { B as rr, v as Ue, V as or } from "./revolugo.vtextarea.BkNy6mLm.min.js";
9
+ import { u as Ye, b as Cs, M as _s, _ as pn, V as st, a as Pe, B as ar } from "./revolugo.webcomponentwrapper.BzrBNp7K.min.js";
10
+ import { V as Je } from "./revolugo.vtextfield.DlfEz4JN.min.js";
11
+ import { V as Dn } from "./revolugo.vmenu.CXAeU_qi.min.js";
12
+ import { a as ae } from "./revolugo.vbtn.D5oMY_p5.min.js";
13
+ import { V as lr } from "./revolugo.vspacer.BiUgatwg.min.js";
14
+ import { a as Bt, b as ur } from "./revolugo.index.CHVqFiWo.min.js";
15
+ import { c as cr, V as dr } from "./revolugo.position.DG21FbXr.min.js";
16
+ import { V as Cn, m as fr } from "./revolugo.vsheet.BG1meZTM.min.js";
17
+ import { V as hr } from "./revolugo.vform.Db-PE5B0.min.js";
18
+ import { V as tn } from "./revolugo.vdivider.jj-AdUyd.min.js";
19
+ import { H as gr } from "./revolugo.hotelroomofferlist.DyMNPEmJ.min.js";
20
+ import { B as mr } from "./revolugo.bhotelsearchbar.B9IrrAQm.min.js";
21
+ import { p as pr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CmgO29ZN.min.js";
22
+ import { w as vr } from "./revolugo.watch-list.C39H03pK.min.js";
23
+ import { T as yr } from "./revolugo.termsandconditions.CcWZ66ul.min.js";
24
+ import { u as br } from "./revolugo.hotelroomofferrequestcreator.props.UhEzU-Eo.min.js";
25
+ import { p as Er, g as ye } from "./revolugo.use-breakpoint-service.DzP23XZi.min.js";
26
+ import { V as Sr } from "./revolugo.bdaterangepicker.FofU3mwm.min.js";
27
+ function Mi(t) {
26
28
  try {
27
29
  if (typeof document < "u") {
28
30
  window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
@@ -42,15 +44,15 @@ function Bi(t) {
42
44
  console.error("[revolugo-elements] ", e);
43
45
  }
44
46
  }
45
- const Ar = {
47
+ const kr = {
46
48
  FiltersBar: !0,
47
49
  HotelOfferSearchMenu: !1,
48
50
  TermsAndConditionsFooter: !0,
49
- HotelOfferItem: sr
50
- }, vn = {
51
- ...ur,
51
+ HotelOfferItem: Zi
52
+ }, Rr = {
53
+ ...Xi,
52
54
  features: {
53
- default: () => Ar,
55
+ default: () => kr,
54
56
  type: [Object, String]
55
57
  },
56
58
  height: {
@@ -61,7 +63,7 @@ const Ar = {
61
63
  type: Number
62
64
  },
63
65
  limit: {
64
- default: ir,
66
+ default: er,
65
67
  type: Number
66
68
  },
67
69
  loadingBarEnabled: {
@@ -77,12 +79,12 @@ const Ar = {
77
79
  type: Boolean
78
80
  }
79
81
  };
80
- function w(t) {
82
+ function L(t) {
81
83
  return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
82
84
  }
83
85
  function me(t) {
84
86
  return function e(n) {
85
- return arguments.length === 0 || w(n) ? e : t.apply(this, arguments);
87
+ return arguments.length === 0 || L(n) ? e : t.apply(this, arguments);
86
88
  };
87
89
  }
88
90
  function Ee(t) {
@@ -91,76 +93,76 @@ function Ee(t) {
91
93
  case 0:
92
94
  return e;
93
95
  case 1:
94
- return w(n) ? e : me(function(i) {
96
+ return L(n) ? e : me(function(i) {
95
97
  return t(n, i);
96
98
  });
97
99
  default:
98
- return w(n) && w(s) ? e : w(n) ? me(function(i) {
100
+ return L(n) && L(s) ? e : L(n) ? me(function(i) {
99
101
  return t(i, s);
100
- }) : w(s) ? me(function(i) {
102
+ }) : L(s) ? me(function(i) {
101
103
  return t(n, i);
102
104
  }) : t(n, s);
103
105
  }
104
106
  };
105
107
  }
106
- function yn(t) {
108
+ function vn(t) {
107
109
  return function e(n, s, i) {
108
110
  switch (arguments.length) {
109
111
  case 0:
110
112
  return e;
111
113
  case 1:
112
- return w(n) ? e : Ee(function(r, a) {
114
+ return L(n) ? e : Ee(function(r, a) {
113
115
  return t(n, r, a);
114
116
  });
115
117
  case 2:
116
- return w(n) && w(s) ? e : w(n) ? Ee(function(r, a) {
118
+ return L(n) && L(s) ? e : L(n) ? Ee(function(r, a) {
117
119
  return t(r, s, a);
118
- }) : w(s) ? Ee(function(r, a) {
120
+ }) : L(s) ? Ee(function(r, a) {
119
121
  return t(n, r, a);
120
122
  }) : me(function(r) {
121
123
  return t(n, s, r);
122
124
  });
123
125
  default:
124
- return w(n) && w(s) && w(i) ? e : w(n) && w(s) ? Ee(function(r, a) {
126
+ return L(n) && L(s) && L(i) ? e : L(n) && L(s) ? Ee(function(r, a) {
125
127
  return t(r, a, i);
126
- }) : w(n) && w(i) ? Ee(function(r, a) {
128
+ }) : L(n) && L(i) ? Ee(function(r, a) {
127
129
  return t(r, s, a);
128
- }) : w(s) && w(i) ? Ee(function(r, a) {
130
+ }) : L(s) && L(i) ? Ee(function(r, a) {
129
131
  return t(n, r, a);
130
- }) : w(n) ? me(function(r) {
132
+ }) : L(n) ? me(function(r) {
131
133
  return t(r, s, i);
132
- }) : w(s) ? me(function(r) {
134
+ }) : L(s) ? me(function(r) {
133
135
  return t(n, r, i);
134
- }) : w(i) ? me(function(r) {
136
+ }) : L(i) ? me(function(r) {
135
137
  return t(n, s, r);
136
138
  }) : t(n, s, i);
137
139
  }
138
140
  };
139
141
  }
140
- function pt(t, e) {
142
+ function gt(t, e) {
141
143
  return Object.prototype.hasOwnProperty.call(e, t);
142
144
  }
143
- var Dr = /* @__PURE__ */ me(function(e) {
145
+ var Ir = /* @__PURE__ */ me(function(e) {
144
146
  return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
145
147
  });
146
- function Pn(t) {
148
+ function _n(t) {
147
149
  return Object.prototype.toString.call(t) === "[object Object]";
148
150
  }
149
- const Cr = Number.isInteger || function(e) {
151
+ const Tr = Number.isInteger || function(e) {
150
152
  return e << 0 === e;
151
153
  };
152
- function _r(t) {
154
+ function Or(t) {
153
155
  return Object.prototype.toString.call(t) === "[object String]";
154
156
  }
155
- function Pr(t, e) {
157
+ function Ar(t, e) {
156
158
  var n = t < 0 ? e.length + t : t;
157
- return _r(e) ? e.charAt(n) : e[n];
159
+ return Or(e) ? e.charAt(n) : e[n];
158
160
  }
159
- function Nr(t) {
161
+ function Dr(t) {
160
162
  return new RegExp(t.source, t.flags ? t.flags : (t.global ? "g" : "") + (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.sticky ? "y" : "") + (t.unicode ? "u" : "") + (t.dotAll ? "s" : ""));
161
163
  }
162
- function Ls(t, e, n) {
163
- if (n || (n = new wr()), Lr(t))
164
+ function Ps(t, e, n) {
165
+ if (n || (n = new _r()), Cr(t))
164
166
  return t;
165
167
  var s = function(r) {
166
168
  var a = n.get(t);
@@ -168,10 +170,10 @@ function Ls(t, e, n) {
168
170
  return a;
169
171
  n.set(t, r);
170
172
  for (var u in t)
171
- Object.prototype.hasOwnProperty.call(t, u) && (r[u] = Ls(t[u], !0, n));
173
+ Object.prototype.hasOwnProperty.call(t, u) && (r[u] = Ps(t[u], !0, n));
172
174
  return r;
173
175
  };
174
- switch (Dr(t)) {
176
+ switch (Ir(t)) {
175
177
  case "Object":
176
178
  return s(Object.create(Object.getPrototypeOf(t)));
177
179
  case "Array":
@@ -179,7 +181,7 @@ function Ls(t, e, n) {
179
181
  case "Date":
180
182
  return new Date(t.valueOf());
181
183
  case "RegExp":
182
- return Nr(t);
184
+ return Dr(t);
183
185
  case "Int8Array":
184
186
  case "Uint8Array":
185
187
  case "Uint8ClampedArray":
@@ -196,11 +198,11 @@ function Ls(t, e, n) {
196
198
  return t;
197
199
  }
198
200
  }
199
- function Lr(t) {
201
+ function Cr(t) {
200
202
  var e = typeof t;
201
203
  return t == null || e != "object" && e != "function";
202
204
  }
203
- var wr = /* @__PURE__ */ function() {
205
+ var _r = /* @__PURE__ */ function() {
204
206
  function t() {
205
207
  this.map = {}, this.length = 0;
206
208
  }
@@ -230,41 +232,41 @@ var wr = /* @__PURE__ */ function() {
230
232
  return i[1];
231
233
  }
232
234
  }, t;
233
- }(), I = /* @__PURE__ */ me(function(e) {
234
- return e != null && typeof e.clone == "function" ? e.clone() : Ls(e);
235
+ }(), T = /* @__PURE__ */ me(function(e) {
236
+ return e != null && typeof e.clone == "function" ? e.clone() : Ps(e);
235
237
  });
236
- function Mr(t, e) {
238
+ function Pr(t, e) {
237
239
  for (var n = e, s = 0; s < t.length; s += 1) {
238
240
  if (n == null)
239
241
  return;
240
242
  var i = t[s];
241
- Cr(i) ? n = Pr(i, n) : n = n[i];
243
+ Tr(i) ? n = Ar(i, n) : n = n[i];
242
244
  }
243
245
  return n;
244
246
  }
245
- var $r = /* @__PURE__ */ yn(function(e, n, s) {
247
+ var Nr = /* @__PURE__ */ vn(function(e, n, s) {
246
248
  var i = {}, r;
247
249
  n = n || {}, s = s || {};
248
250
  for (r in n)
249
- pt(r, n) && (i[r] = pt(r, s) ? e(r, n[r], s[r]) : n[r]);
251
+ gt(r, n) && (i[r] = gt(r, s) ? e(r, n[r], s[r]) : n[r]);
250
252
  for (r in s)
251
- pt(r, s) && !pt(r, i) && (i[r] = s[r]);
253
+ gt(r, s) && !gt(r, i) && (i[r] = s[r]);
252
254
  return i;
253
- }), Ur = /* @__PURE__ */ yn(function t(e, n, s) {
254
- return $r(function(i, r, a) {
255
- return Pn(r) && Pn(a) ? t(e, r, a) : e(i, r, a);
255
+ }), Lr = /* @__PURE__ */ vn(function t(e, n, s) {
256
+ return Nr(function(i, r, a) {
257
+ return _n(r) && _n(a) ? t(e, r, a) : e(i, r, a);
256
258
  }, n, s);
257
- }), Br = /* @__PURE__ */ yn(function(e, n, s) {
258
- return Ur(function(i, r, a) {
259
+ }), wr = /* @__PURE__ */ vn(function(e, n, s) {
260
+ return Lr(function(i, r, a) {
259
261
  return e(r, a);
260
262
  }, n, s);
261
- }), Vr = /* @__PURE__ */ Ee(Mr), ws = /* @__PURE__ */ Ee(function(e, n) {
263
+ }), Mr = /* @__PURE__ */ Ee(Pr), Ns = /* @__PURE__ */ Ee(function(e, n) {
262
264
  var s = {};
263
265
  for (var i in n)
264
266
  e(n[i], i, n) && (s[i] = n[i]);
265
267
  return s;
266
268
  });
267
- const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), B = (t) => typeof t == "string", ie = (t) => t === null, G = (t) => typeof t > "u", le = (t) => ie(t) || G(t), Fr = (t) => typeof t == "bigint", L = (t) => !G(t), qe = (t) => !le(t), Hr = (t) => qe(t) && t !== "", bn = (t) => {
269
+ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), B = (t) => typeof t == "string", ne = (t) => t === null, G = (t) => typeof t > "u", le = (t) => ne(t) || G(t), $r = (t) => typeof t == "bigint", N = (t) => !G(t), qe = (t) => !le(t), Ur = (t) => qe(t) && t !== "", yn = (t) => {
268
270
  switch (Object.prototype.toString.call(t)) {
269
271
  case "[object Error]":
270
272
  case "[object Exception]":
@@ -273,35 +275,35 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
273
275
  default:
274
276
  return t instanceof Error;
275
277
  }
276
- }, rn = (t, e) => {
278
+ }, nn = (t, e) => {
277
279
  const n = e.split(".");
278
- return Vr(n, t);
279
- }, xr = (t, e) => !!rn(t, e), Gr = (t) => typeof t == "object", jr = (t) => !ie(t) && Gr(t) && !Array.isArray(t), M = (t) => !ie(t) && Object.prototype.toString.call(t) === "[object Object]", qr = (t, e) => {
280
+ return Mr(n, t);
281
+ }, Br = (t, e) => !!nn(t, e), Vr = (t) => typeof t == "object", Fr = (t) => !ne(t) && Vr(t) && !Array.isArray(t), w = (t) => !ne(t) && Object.prototype.toString.call(t) === "[object Object]", Hr = (t, e) => {
280
282
  if (!Array.isArray(t) || !Array.isArray(e))
281
- return I(e);
282
- const n = I(t);
283
+ return T(e);
284
+ const n = T(t);
283
285
  return e.forEach((s, i) => {
284
- n[i] = Array.isArray(s) || jr(s) ? (
286
+ n[i] = Array.isArray(s) || Fr(s) ? (
285
287
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
286
288
  H(n[i], s)
287
289
  ) : s;
288
290
  }), n;
289
- }, H = (t, e) => Br(qr, t, e), Oe = (t) => M(t) && Object.keys(t).length > 0, et = (t) => {
290
- const e = ws(L, t);
291
+ }, H = (t, e) => wr(Hr, t, e), Ie = (t) => w(t) && Object.keys(t).length > 0, et = (t) => {
292
+ const e = Ns(N, t);
291
293
  return Object.keys(e).forEach((n) => {
292
294
  const s = e[n];
293
- M(s) && (e[n] = et(s));
295
+ w(s) && (e[n] = et(s));
294
296
  }), e;
295
- }, Lt = (t) => {
296
- const e = ws(qe, t);
297
+ }, Pt = (t) => {
298
+ const e = Ns(qe, t);
297
299
  return Object.keys(e).forEach((n) => {
298
300
  const s = e[n];
299
- M(s) && (e[n] = Lt(s));
301
+ w(s) && (e[n] = Pt(s));
300
302
  }), e;
301
303
  }, be = (t) => {
302
- if (Oe(t))
303
- return Lt(t);
304
- }, ue = (t, e) => typeof t == "boolean" ? t : e, zr = (t) => t.replace(/^\s+|\s+$/gm, ""), Nn = (t) => t.replace(/^\.+/, ""), wt = (t) => {
304
+ if (Ie(t))
305
+ return Pt(t);
306
+ }, ue = (t, e) => typeof t == "boolean" ? t : e, xr = (t) => t.replace(/^\s+|\s+$/gm, ""), Pn = (t) => t.replace(/^\.+/, ""), Nt = (t) => {
305
307
  let e = t;
306
308
  if (!B(t) && !le(t))
307
309
  try {
@@ -310,56 +312,56 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
310
312
  e = null;
311
313
  }
312
314
  return e;
313
- }, Kr = (t) => {
315
+ }, Gr = (t) => {
314
316
  const e = Array.from(t, (n) => String.fromCodePoint(n)).join("");
315
317
  return globalThis.btoa(e);
316
- }, Wr = (t) => Kr(new TextEncoder().encode(t)), Mt = (t, e, n, s, i) => {
318
+ }, jr = (t) => Gr(new TextEncoder().encode(t)), Lt = (t, e, n, s, i) => {
317
319
  const r = { category: t, name: e, properties: n, options: s, callback: void 0 };
318
- S(i) && (r.callback = i), S(s) && (r.category = t, r.name = e, r.properties = n, r.options = void 0, r.callback = s), S(n) && (r.category = t, r.name = e, r.properties = void 0, r.options = void 0, r.callback = n), S(e) && (r.category = t, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = e), S(t) && (r.category = void 0, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = t), M(t) ? (r.name = void 0, r.category = void 0, r.properties = t, S(e) ? r.options = void 0 : r.options = e) : M(e) && (r.name = void 0, r.properties = e, S(n) ? r.options = void 0 : r.options = n), B(t) && !B(e) && (r.category = void 0, r.name = t), L(r.category) || (r.category = void 0), L(r.name) || (r.name = void 0), r.properties = r.properties ? I(r.properties) : {}, L(r.options) ? r.options = I(r.options) : r.options = void 0;
320
+ S(i) && (r.callback = i), S(s) && (r.category = t, r.name = e, r.properties = n, r.options = void 0, r.callback = s), S(n) && (r.category = t, r.name = e, r.properties = void 0, r.options = void 0, r.callback = n), S(e) && (r.category = t, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = e), S(t) && (r.category = void 0, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = t), w(t) ? (r.name = void 0, r.category = void 0, r.properties = t, S(e) ? r.options = void 0 : r.options = e) : w(e) && (r.name = void 0, r.properties = e, S(n) ? r.options = void 0 : r.options = n), B(t) && !B(e) && (r.category = void 0, r.name = t), N(r.category) || (r.category = void 0), N(r.name) || (r.name = void 0), r.properties = r.properties ? T(r.properties) : {}, N(r.options) ? r.options = T(r.options) : r.options = void 0;
319
321
  const a = B(r.name) ? r.name : r.properties.name, u = B(r.category) ? r.category : r.properties.category;
320
- return r.properties = H(M(r.properties) ? r.properties : {}, { ...a && { name: a }, ...u && { category: u } }), r;
321
- }, En = (t, e, n, s) => {
322
+ return r.properties = H(w(r.properties) ? r.properties : {}, { ...a && { name: a }, ...u && { category: u } }), r;
323
+ }, bn = (t, e, n, s) => {
322
324
  const i = { name: t, properties: e, options: n, callback: void 0 };
323
- return S(s) && (i.callback = s), S(n) && (i.properties = e, i.options = void 0, i.callback = n), S(e) && (i.properties = void 0, i.options = void 0, i.callback = e), i.properties = qe(i.properties) ? I(i.properties) : {}, L(i.options) ? i.options = I(i.options) : i.options = void 0, i;
324
- }, Ms = (t, e, n, s) => {
325
+ return S(s) && (i.callback = s), S(n) && (i.properties = e, i.options = void 0, i.callback = n), S(e) && (i.properties = void 0, i.options = void 0, i.callback = e), i.properties = qe(i.properties) ? T(i.properties) : {}, N(i.options) ? i.options = T(i.options) : i.options = void 0, i;
326
+ }, Ls = (t, e, n, s) => {
325
327
  const i = { userId: t, traits: e, options: n, callback: void 0 };
326
- return S(s) && (i.callback = s), S(n) && (i.userId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.userId = t, i.traits = void 0, i.options = void 0, i.callback = e), (M(t) || ie(t)) && (i.userId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.userId = wt(i.userId), M(i.traits) ? i.traits = I(i.traits) : i.traits = void 0, L(i.options) ? i.options = I(i.options) : i.options = void 0, i;
327
- }, $s = (t, e, n, s) => {
328
+ return S(s) && (i.callback = s), S(n) && (i.userId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.userId = t, i.traits = void 0, i.options = void 0, i.callback = e), (w(t) || ne(t)) && (i.userId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.userId = Nt(i.userId), w(i.traits) ? i.traits = T(i.traits) : i.traits = void 0, N(i.options) ? i.options = T(i.options) : i.options = void 0, i;
329
+ }, ws = (t, e, n, s) => {
328
330
  const i = { to: t, from: e, options: n, callback: void 0 };
329
- return S(s) && (i.callback = s), S(n) && (i.to = t, i.from = e, i.options = void 0, i.callback = n), S(e) ? (i.to = t, i.from = void 0, i.options = void 0, i.callback = e) : (M(e) || ie(e)) && (i.to = t, i.from = void 0, i.options = e), L(i.to) && (i.to = wt(i.to)), L(i.from) ? i.from = wt(i.from) : i.from = void 0, L(i.options) ? i.options = I(i.options) : i.options = void 0, i;
330
- }, Us = (t, e, n, s) => {
331
+ return S(s) && (i.callback = s), S(n) && (i.to = t, i.from = e, i.options = void 0, i.callback = n), S(e) ? (i.to = t, i.from = void 0, i.options = void 0, i.callback = e) : (w(e) || ne(e)) && (i.to = t, i.from = void 0, i.options = e), N(i.to) && (i.to = Nt(i.to)), N(i.from) ? i.from = Nt(i.from) : i.from = void 0, N(i.options) ? i.options = T(i.options) : i.options = void 0, i;
332
+ }, Ms = (t, e, n, s) => {
331
333
  const i = { groupId: t, traits: e, options: n, callback: void 0 };
332
- return S(s) && (i.callback = s), S(n) && (i.groupId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.groupId = t, i.traits = void 0, i.options = void 0, i.callback = e), (M(t) || ie(t)) && (i.groupId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.groupId = wt(i.groupId), M(i.traits) ? i.traits = I(i.traits) : i.traits = void 0, L(i.options) ? i.options = I(i.options) : i.options = void 0, i;
334
+ return S(s) && (i.callback = s), S(n) && (i.groupId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.groupId = t, i.traits = void 0, i.options = void 0, i.callback = e), (w(t) || ne(t)) && (i.groupId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.groupId = Nt(i.groupId), w(i.traits) ? i.traits = T(i.traits) : i.traits = void 0, N(i.options) ? i.options = T(i.options) : i.options = void 0, i;
333
335
  };
334
- let qt = /* @__PURE__ */ function(t) {
336
+ let Gt = /* @__PURE__ */ function(t) {
335
337
  return t.UNLOADED = "Page Unloaded", t;
336
338
  }({});
337
- const Sn = "API", on = "CapabilitiesManager", se = "ConfigManager", Bs = "EventManager", vt = "PluginsManager", De = "UserSessionManager", tt = "ErrorHandler", Be = "PluginEngine", Yr = "StoreManager", zt = `Ready${Sn}`, Qr = `Load${Sn}`, Xr = "ExternalSrcLoader", Jr = "HttpClient", Zr = "RudderStackAnalytics", Kt = "AnalyticsCore";
338
- function eo(t) {
339
+ const En = "API", sn = "CapabilitiesManager", te = "ConfigManager", $s = "EventManager", mt = "PluginsManager", De = "UserSessionManager", tt = "ErrorHandler", Be = "PluginEngine", qr = "StoreManager", jt = `Ready${En}`, zr = `Load${En}`, Kr = "ExternalSrcLoader", Yr = "HttpClient", Wr = "RudderStackAnalytics", qt = "AnalyticsCore";
340
+ function Qr(t) {
339
341
  return crypto.getRandomValues(new Uint8Array(t));
340
342
  }
341
- var Ln = 4096, Ot = [], ke = 0, Wt;
343
+ var Nn = 4096, kt = [], ke = 0, zt;
342
344
  for (; ke < 256; ke++)
343
- Ot[ke] = (ke + 256).toString(16).substring(1);
344
- function to() {
345
- (!Wt || ke + 16 > Ln) && (Wt = eo(Ln), ke = 0);
345
+ kt[ke] = (ke + 256).toString(16).substring(1);
346
+ function Xr() {
347
+ (!zt || ke + 16 > Nn) && (zt = Qr(Nn), ke = 0);
346
348
  for (var t = 0, e, n = ""; t < 16; t++)
347
- e = Wt[ke + t], t == 6 ? n += Ot[e & 15 | 64] : t == 8 ? n += Ot[e & 63 | 128] : n += Ot[e], t & 1 && t > 1 && t < 11 && (n += "-");
349
+ e = zt[ke + t], t == 6 ? n += kt[e & 15 | 64] : t == 8 ? n += kt[e & 63 | 128] : n += kt[e], t & 1 && t > 1 && t < 11 && (n += "-");
348
350
  return ke += 16, n;
349
351
  }
350
- var Ne = 256, It = [], yt;
351
- for (; Ne--; ) It[Ne] = (Ne + 256).toString(16).substring(1);
352
- function no() {
352
+ var Ne = 256, Rt = [], pt;
353
+ for (; Ne--; ) Rt[Ne] = (Ne + 256).toString(16).substring(1);
354
+ function Jr() {
353
355
  var t = 0, e, n = "";
354
- if (!yt || Ne + 16 > 256) {
355
- for (yt = Array(t = 256); t--; ) yt[t] = 256 * Math.random() | 0;
356
+ if (!pt || Ne + 16 > 256) {
357
+ for (pt = Array(t = 256); t--; ) pt[t] = 256 * Math.random() | 0;
356
358
  t = Ne = 0;
357
359
  }
358
360
  for (; t < 16; t++)
359
- e = yt[Ne + t], t == 6 ? n += It[e & 15 | 64] : t == 8 ? n += It[e & 63 | 128] : n += It[e], t & 1 && t > 1 && t < 11 && (n += "-");
361
+ e = pt[Ne + t], t == 6 ? n += Rt[e & 15 | 64] : t == 8 ? n += Rt[e & 63 | 128] : n += Rt[e], t & 1 && t > 1 && t < 11 && (n += "-");
360
362
  return Ne++, n;
361
363
  }
362
- const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), Ht = () => so() ? to() : no(), io = (t) => {
364
+ const Zr = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), Vt = () => Zr() ? Xr() : Jr(), eo = (t) => {
363
365
  let e = !1, n = !1;
364
366
  function s() {
365
367
  e || (e = !0, t(n), setTimeout(() => {
@@ -377,79 +379,79 @@ const so = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
377
379
  }), document.addEventListener("visibilitychange", () => {
378
380
  n = !0, document.visibilityState === "hidden" ? s() : e = !1;
379
381
  });
380
- }, Vs = (t) => t.toISOString(), ro = () => Vs(/* @__PURE__ */ new Date()), R = ":: ", oo = (t) => `A script with the id "${t}" is already loaded. Skipping the loading of this script to prevent conflicts.`, wn = (t, e) => `Failed to load the script with the id "${t}" from URL "${e}".`, ao = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}".`, lo = (t, e) => `${t}${R}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, uo = "Failed to convert the value to a JSON string.", co = "Failed to encode the cookie data.", fo = "JSONStringify", ho = "[BigInt]", Fs = "[Circular Reference]", go = (t, e, n) => {
382
+ }, Us = (t) => t.toISOString(), to = () => Us(/* @__PURE__ */ new Date()), R = ":: ", no = (t) => `A script with the id "${t}" is already loaded. Skipping the loading of this script to prevent conflicts.`, Ln = (t, e) => `Failed to load the script with the id "${t}" from URL "${e}".`, so = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}".`, io = (t, e) => `${t}${R}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, ro = "Failed to convert the value to a JSON string.", oo = "Failed to encode the cookie data.", ao = "JSONStringify", lo = "[BigInt]", Bs = "[Circular Reference]", uo = (t, e, n) => {
381
383
  const s = [];
382
384
  return function(i, r) {
383
385
  if (!(e != null && e.includes(i)) && !(t && le(r))) {
384
- if (typeof r != "object" || ie(r))
386
+ if (typeof r != "object" || ne(r))
385
387
  return r;
386
388
  for (; s.length > 0 && s[s.length - 1] !== this; )
387
389
  s.pop();
388
- return s.includes(r) ? (n == null || n.warn(lo(fo, i)), Fs) : (s.push(r), r);
390
+ return s.includes(r) ? (n == null || n.warn(io(ao, i)), Bs) : (s.push(r), r);
389
391
  }
390
392
  };
391
393
  }, de = (t, e, n, s) => {
392
394
  try {
393
- return JSON.stringify(t, go(e, n, s));
395
+ return JSON.stringify(t, uo(e, n, s));
394
396
  } catch (i) {
395
- return s == null || s.warn(uo, i), null;
397
+ return s == null || s.warn(ro, i), null;
396
398
  }
397
- }, mo = (t) => {
399
+ }, co = (t) => {
398
400
  const e = [];
399
401
  return function(s, i) {
400
- if (Fr(i))
401
- return ho;
402
+ if ($r(i))
403
+ return lo;
402
404
  for (; e.length > 0 && e[e.length - 1] !== this; )
403
405
  e.pop();
404
- return e.includes(i) ? Fs : (e.push(i), i);
406
+ return e.includes(i) ? Bs : (e.push(i), i);
405
407
  };
406
- }, Hs = (t, e) => {
408
+ }, Vs = (t, e) => {
407
409
  const n = Array.isArray(t) ? [] : {};
408
410
  for (const s in t)
409
411
  if (Object.hasOwnProperty.call(t, s)) {
410
412
  const i = t[s], r = e.call(t, s, i);
411
- M(r) || Array.isArray(r) ? n[s] = Hs(r, e) : n[s] = r;
413
+ w(r) || Array.isArray(r) ? n[s] = Vs(r, e) : n[s] = r;
412
414
  }
413
415
  return n;
414
416
  }, A = (t, e) => {
415
- const n = mo(), s = n.call(t, "", t);
416
- return M(t) || Array.isArray(t) ? Hs(t, n) : s;
417
- }, Tt = "[SDK DISPATCHED ERROR]", kn = (t) => {
417
+ const n = co(), s = n.call(t, "", t);
418
+ return w(t) || Array.isArray(t) ? Vs(t, n) : s;
419
+ }, It = "[SDK DISPATCHED ERROR]", Sn = (t) => {
418
420
  const { stack: e, stacktrace: n } = t, s = t["opera#sourceloc"], i = e ?? n ?? s;
419
421
  if (i && typeof i == "string")
420
422
  return i;
421
- }, ht = (t, e) => {
423
+ }, dt = (t, e) => {
422
424
  let n = t;
423
- return bn(t) ? n.message = `${e}: ${t.message}` : n = new Error(`${e}: ${de(t)}`), n;
425
+ return yn(t) ? n.message = `${e}: ${t.message}` : n = new Error(`${e}: ${de(t)}`), n;
424
426
  }, U = (t) => {
425
- if (bn(t)) {
426
- const e = kn(t);
427
+ if (yn(t)) {
428
+ const e = Sn(t);
427
429
  if (e) {
428
430
  const { stack: n, stacktrace: s } = t, i = t["opera#sourceloc"];
429
431
  switch (e) {
430
432
  case n:
431
433
  t.stack = `${n}
432
- ${Tt}`;
434
+ ${It}`;
433
435
  break;
434
436
  case s:
435
437
  t.stacktrace = `${s}
436
- ${Tt}`;
438
+ ${It}`;
437
439
  break;
438
440
  case i:
439
441
  default:
440
442
  t["opera#sourceloc"] = `${i}
441
- ${Tt}`;
443
+ ${It}`;
442
444
  break;
443
445
  }
444
446
  }
445
447
  }
446
448
  globalThis.dispatchEvent(new ErrorEvent("error", { error: t, bubbles: !0, cancelable: !0, composed: !0 }));
447
- }, Mn = "RudderLabs JavaScript SDK", at = "3.18.1", po = "com.rudderlabs.javascript", xs = "npm", $n = "RudderJS-Initiated", vo = "ad-block page request", yo = "/ad-blocked", it = "preloadedEventsBuffer", bo = "Consent Management Interaction", Eo = "ajs_trait_", So = "ajs_prop_", Un = "ajs_aid", Bn = "ajs_uid", Vn = "ajs_event", ko = 10 * 1e3, Ro = 31536e3 * 1e3, Fn = 12 * 60 * 60 * 1e3, an = 30 * 60 * 1e3, Hn = 10 * 1e3, Oo = 10 * 1e3, Io = 250, Gs = (t = "app") => {
449
+ }, wn = "RudderLabs JavaScript SDK", at = "3.18.2", fo = "com.rudderlabs.javascript", Fs = "npm", Mn = "RudderJS-Initiated", ho = "ad-block page request", go = "/ad-blocked", it = "preloadedEventsBuffer", mo = "Consent Management Interaction", po = "ajs_trait_", vo = "ajs_prop_", $n = "ajs_aid", Un = "ajs_uid", Bn = "ajs_event", yo = 10 * 1e3, bo = 31536e3 * 1e3, Vn = 12 * 60 * 60 * 1e3, rn = 30 * 60 * 1e3, Fn = 10 * 1e3, Eo = 10 * 1e3, So = 250, Hs = (t = "app") => {
448
450
  globalThis.RudderStackGlobals || (globalThis.RudderStackGlobals = {}), globalThis.RudderStackGlobals[t] || (globalThis.RudderStackGlobals[t] = {});
449
451
  }, lt = (t, e, n = "app") => {
450
- Gs(n), globalThis.RudderStackGlobals[n][t] = e;
451
- }, js = (t, e = "app") => (Gs(e), globalThis.RudderStackGlobals[e][t]);
452
- function To(t, e, n = Io) {
452
+ Hs(n), globalThis.RudderStackGlobals[n][t] = e;
453
+ }, xs = (t, e = "app") => (Hs(e), globalThis.RudderStackGlobals[e][t]);
454
+ function ko(t, e, n = So) {
453
455
  let s;
454
456
  return (...i) => {
455
457
  globalThis.clearTimeout(s), s = globalThis.setTimeout(() => {
@@ -457,7 +459,7 @@ function To(t, e, n = Io) {
457
459
  }, n);
458
460
  };
459
461
  }
460
- const xn = (t, e) => {
462
+ const Hn = (t, e) => {
461
463
  const n = {};
462
464
  return t.forEach((s, i) => {
463
465
  if (i.startsWith(e)) {
@@ -465,45 +467,45 @@ const xn = (t, e) => {
465
467
  n[r] = t.get(i);
466
468
  }
467
469
  }), n;
468
- }, Ao = (t = []) => {
469
- const e = { trait: Eo, properties: So }, n = new URLSearchParams(globalThis.location.search);
470
- n.get(Vn) && t.unshift(["track", n.get(Vn), xn(n, e.properties)]), n.get(Bn) && t.unshift(["identify", n.get(Bn), xn(n, e.trait)]), n.get(Un) && t.unshift(["setAnonymousId", n.get(Un)]);
471
- }, Do = (t) => {
470
+ }, Ro = (t = []) => {
471
+ const e = { trait: po, properties: vo }, n = new URLSearchParams(globalThis.location.search);
472
+ n.get(Bn) && t.unshift(["track", n.get(Bn), Hn(n, e.properties)]), n.get(Un) && t.unshift(["identify", n.get(Un), Hn(n, e.trait)]), n.get($n) && t.unshift(["setAnonymousId", n.get($n)]);
473
+ }, Io = (t) => {
472
474
  const e = "load";
473
475
  let n = [], s = 0;
474
476
  for (; s < t.length; ) {
475
477
  if (t[s] && t[s][0] === e) {
476
- n = I(t[s]), t.splice(s, 1);
478
+ n = T(t[s]), t.splice(s, 1);
477
479
  break;
478
480
  }
479
481
  s += 1;
480
482
  }
481
483
  return n;
482
- }, Co = (t) => {
484
+ }, To = (t) => {
483
485
  const e = "consent", n = t.filter((i) => i[0] === e), s = t.filter((i) => i[0] !== e);
484
486
  t.splice(0, t.length, ...n, ...s);
485
- }, _o = (t) => {
486
- const e = js(it) || [];
487
- Ao(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), lt(it, []));
488
- }, Po = (t, e) => {
487
+ }, Oo = (t) => {
488
+ const e = xs(it) || [];
489
+ Ro(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), lt(it, []));
490
+ }, Ao = (t, e) => {
489
491
  const n = t.shift();
490
492
  let s;
491
493
  if (S(e[n])) {
492
494
  switch (n) {
493
495
  case "page":
494
- s = Mt(...t);
496
+ s = Lt(...t);
495
497
  break;
496
498
  case "track":
497
- s = En(...t);
499
+ s = bn(...t);
498
500
  break;
499
501
  case "identify":
500
- s = Ms(...t);
502
+ s = Ls(...t);
501
503
  break;
502
504
  case "alias":
503
- s = $s(...t);
505
+ s = ws(...t);
504
506
  break;
505
507
  case "group":
506
- s = Us(...t);
508
+ s = Ms(...t);
507
509
  break;
508
510
  default:
509
511
  e[n](...t);
@@ -511,12 +513,12 @@ const xn = (t, e) => {
511
513
  }
512
514
  s && e[n](s);
513
515
  }
514
- }, No = 10 * 1e3, Lo = "RS_JS_SDK", wo = (t, e, n = !0, s = null, i = null, r = {}) => {
516
+ }, Do = 10 * 1e3, Co = "RS_JS_SDK", _o = (t, e, n = !0, s = null, i = null, r = {}) => {
515
517
  const a = document.createElement("script");
516
518
  return a.type = "text/javascript", a.onload = s, a.onerror = i, a.src = t, a.id = e, a.async = n, Object.keys(r).forEach((u) => {
517
519
  a.setAttribute(u, r[u]);
518
- }), a.setAttribute("data-loader", Lo), a;
519
- }, Mo = (t) => {
520
+ }), a.setAttribute("data-loader", Co), a;
521
+ }, Po = (t) => {
520
522
  var r, a, u, l;
521
523
  const e = document.getElementsByTagName("head");
522
524
  if (e.length > 0) {
@@ -532,23 +534,23 @@ const xn = (t, e) => {
532
534
  s.appendChild(t);
533
535
  const i = document.getElementsByTagName("html")[0];
534
536
  i == null || i.insertBefore(s, i.firstChild);
535
- }, $o = (t, e, n, s = !0, i) => new Promise((r, a) => {
536
- document.getElementById(e) && a(new Error(oo(e)));
537
+ }, No = (t, e, n, s = !0, i) => new Promise((r, a) => {
538
+ document.getElementById(e) && a(new Error(no(e)));
537
539
  try {
538
540
  let l;
539
- Mo(wo(t, e, s, () => {
541
+ Po(_o(t, e, s, () => {
540
542
  globalThis.clearTimeout(l), r(e);
541
543
  }, () => {
542
- globalThis.clearTimeout(l), a(new Error(wn(e, t)));
544
+ globalThis.clearTimeout(l), a(new Error(Ln(e, t)));
543
545
  }, i)), l = globalThis.setTimeout(() => {
544
- a(new Error(ao(e, t, n)));
546
+ a(new Error(so(e, t, n)));
545
547
  }, n);
546
548
  } catch (l) {
547
- a(ht(l, wn(e, t)));
549
+ a(dt(l, Ln(e, t)));
548
550
  }
549
551
  });
550
- class qs {
551
- constructor(e, n, s = No) {
552
+ class Gs {
553
+ constructor(e, n, s = Do) {
552
554
  this.errorHandler = e, this.logger = n, this.timeout = s, this.onError = this.onError.bind(this);
553
555
  }
554
556
  /**
@@ -556,7 +558,7 @@ class qs {
556
558
  */
557
559
  loadJSFile(e) {
558
560
  const { url: n, id: s, timeout: i, async: r, callback: a, extraAttributes: u } = e, l = !S(a);
559
- $o(n, s, i || this.timeout, r, u).then((c) => {
561
+ No(n, s, i || this.timeout, r, u).then((c) => {
560
562
  l || a(c);
561
563
  }).catch((c) => {
562
564
  this.onError(c), l || a();
@@ -566,19 +568,19 @@ class qs {
566
568
  * Handle errors
567
569
  */
568
570
  onError(e) {
569
- this.errorHandler.onError(e, Xr);
571
+ this.errorHandler.onError(e, Kr);
570
572
  }
571
573
  }
572
- var Uo = Symbol.for("preact-signals");
573
- function xt() {
574
+ var Lo = Symbol.for("preact-signals");
575
+ function Ft() {
574
576
  if (Re > 1)
575
577
  Re--;
576
578
  else {
577
579
  for (var t, e = !1; rt !== void 0; ) {
578
580
  var n = rt;
579
- for (rt = void 0, ln++; n !== void 0; ) {
581
+ for (rt = void 0, on++; n !== void 0; ) {
580
582
  var s = n.o;
581
- if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ks(n)) try {
583
+ if (n.o = void 0, n.f &= -3, !(8 & n.f) && qs(n)) try {
582
584
  n.c();
583
585
  } catch (i) {
584
586
  e || (t = i, e = !0);
@@ -586,96 +588,96 @@ function xt() {
586
588
  n = s;
587
589
  }
588
590
  }
589
- if (ln = 0, Re--, e) throw t;
591
+ if (on = 0, Re--, e) throw t;
590
592
  }
591
593
  }
592
- function z(t) {
594
+ function j(t) {
593
595
  if (Re > 0) return t();
594
596
  Re++;
595
597
  try {
596
598
  return t();
597
599
  } finally {
598
- xt();
600
+ Ft();
599
601
  }
600
602
  }
601
- var C = void 0, rt = void 0, Re = 0, ln = 0, $t = 0;
602
- function zs(t) {
603
- if (C !== void 0) {
603
+ var D = void 0, rt = void 0, Re = 0, on = 0, wt = 0;
604
+ function js(t) {
605
+ if (D !== void 0) {
604
606
  var e = t.n;
605
- if (e === void 0 || e.t !== C)
606
- return e = { i: 0, S: t, p: C.s, n: void 0, t: C, e: void 0, x: void 0, r: e }, C.s !== void 0 && (C.s.n = e), C.s = e, t.n = e, 32 & C.f && t.S(e), e;
607
+ if (e === void 0 || e.t !== D)
608
+ return e = { i: 0, S: t, p: D.s, n: void 0, t: D, e: void 0, x: void 0, r: e }, D.s !== void 0 && (D.s.n = e), D.s = e, t.n = e, 32 & D.f && t.S(e), e;
607
609
  if (e.i === -1)
608
- return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = C.s, e.n = void 0, C.s.n = e, C.s = e), e;
610
+ return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = D.s, e.n = void 0, D.s.n = e, D.s = e), e;
609
611
  }
610
612
  }
611
- function K(t) {
613
+ function q(t) {
612
614
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
613
615
  }
614
- K.prototype.brand = Uo;
615
- K.prototype.h = function() {
616
+ q.prototype.brand = Lo;
617
+ q.prototype.h = function() {
616
618
  return !0;
617
619
  };
618
- K.prototype.S = function(t) {
620
+ q.prototype.S = function(t) {
619
621
  this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
620
622
  };
621
- K.prototype.U = function(t) {
623
+ q.prototype.U = function(t) {
622
624
  if (this.t !== void 0) {
623
625
  var e = t.e, n = t.x;
624
626
  e !== void 0 && (e.x = n, t.e = void 0), n !== void 0 && (n.e = e, t.x = void 0), t === this.t && (this.t = n);
625
627
  }
626
628
  };
627
- K.prototype.subscribe = function(t) {
629
+ q.prototype.subscribe = function(t) {
628
630
  var e = this;
629
631
  return pe(function() {
630
- var n = e.value, s = C;
631
- C = void 0;
632
+ var n = e.value, s = D;
633
+ D = void 0;
632
634
  try {
633
635
  t(n);
634
636
  } finally {
635
- C = s;
637
+ D = s;
636
638
  }
637
639
  });
638
640
  };
639
- K.prototype.valueOf = function() {
641
+ q.prototype.valueOf = function() {
640
642
  return this.value;
641
643
  };
642
- K.prototype.toString = function() {
644
+ q.prototype.toString = function() {
643
645
  return this.value + "";
644
646
  };
645
- K.prototype.toJSON = function() {
647
+ q.prototype.toJSON = function() {
646
648
  return this.value;
647
649
  };
648
- K.prototype.peek = function() {
649
- var t = C;
650
- C = void 0;
650
+ q.prototype.peek = function() {
651
+ var t = D;
652
+ D = void 0;
651
653
  try {
652
654
  return this.value;
653
655
  } finally {
654
- C = t;
656
+ D = t;
655
657
  }
656
658
  };
657
- Object.defineProperty(K.prototype, "value", { get: function() {
658
- var t = zs(this);
659
+ Object.defineProperty(q.prototype, "value", { get: function() {
660
+ var t = js(this);
659
661
  return t !== void 0 && (t.i = this.i), this.v;
660
662
  }, set: function(t) {
661
663
  if (t !== this.v) {
662
- if (ln > 100) throw new Error("Cycle detected");
663
- this.v = t, this.i++, $t++, Re++;
664
+ if (on > 100) throw new Error("Cycle detected");
665
+ this.v = t, this.i++, wt++, Re++;
664
666
  try {
665
667
  for (var e = this.t; e !== void 0; e = e.x) e.t.N();
666
668
  } finally {
667
- xt();
669
+ Ft();
668
670
  }
669
671
  }
670
672
  } });
671
673
  function p(t) {
672
- return new K(t);
674
+ return new q(t);
673
675
  }
674
- function Ks(t) {
676
+ function qs(t) {
675
677
  for (var e = t.s; e !== void 0; e = e.n) if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i) return !0;
676
678
  return !1;
677
679
  }
678
- function Ws(t) {
680
+ function zs(t) {
679
681
  for (var e = t.s; e !== void 0; e = e.n) {
680
682
  var n = e.S.n;
681
683
  if (n !== void 0 && (e.r = n), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -684,83 +686,83 @@ function Ws(t) {
684
686
  }
685
687
  }
686
688
  }
687
- function Ys(t) {
689
+ function Ks(t) {
688
690
  for (var e = t.s, n = void 0; e !== void 0; ) {
689
691
  var s = e.p;
690
692
  e.i === -1 ? (e.S.U(e), s !== void 0 && (s.n = e.n), e.n !== void 0 && (e.n.p = s)) : n = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = s;
691
693
  }
692
694
  t.s = n;
693
695
  }
694
- function gt(t) {
695
- K.call(this, void 0), this.x = t, this.s = void 0, this.g = $t - 1, this.f = 4;
696
+ function ft(t) {
697
+ q.call(this, void 0), this.x = t, this.s = void 0, this.g = wt - 1, this.f = 4;
696
698
  }
697
- (gt.prototype = new K()).h = function() {
699
+ (ft.prototype = new q()).h = function() {
698
700
  if (this.f &= -3, 1 & this.f) return !1;
699
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === $t)) return !0;
700
- if (this.g = $t, this.f |= 1, this.i > 0 && !Ks(this))
701
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === wt)) return !0;
702
+ if (this.g = wt, this.f |= 1, this.i > 0 && !qs(this))
701
703
  return this.f &= -2, !0;
702
- var t = C;
704
+ var t = D;
703
705
  try {
704
- Ws(this), C = this;
706
+ zs(this), D = this;
705
707
  var e = this.x();
706
708
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
707
709
  } catch (n) {
708
710
  this.v = n, this.f |= 16, this.i++;
709
711
  }
710
- return C = t, Ys(this), this.f &= -2, !0;
712
+ return D = t, Ks(this), this.f &= -2, !0;
711
713
  };
712
- gt.prototype.S = function(t) {
714
+ ft.prototype.S = function(t) {
713
715
  if (this.t === void 0) {
714
716
  this.f |= 36;
715
717
  for (var e = this.s; e !== void 0; e = e.n) e.S.S(e);
716
718
  }
717
- K.prototype.S.call(this, t);
719
+ q.prototype.S.call(this, t);
718
720
  };
719
- gt.prototype.U = function(t) {
720
- if (this.t !== void 0 && (K.prototype.U.call(this, t), this.t === void 0)) {
721
+ ft.prototype.U = function(t) {
722
+ if (this.t !== void 0 && (q.prototype.U.call(this, t), this.t === void 0)) {
721
723
  this.f &= -33;
722
724
  for (var e = this.s; e !== void 0; e = e.n) e.S.U(e);
723
725
  }
724
726
  };
725
- gt.prototype.N = function() {
727
+ ft.prototype.N = function() {
726
728
  if (!(2 & this.f)) {
727
729
  this.f |= 6;
728
730
  for (var t = this.t; t !== void 0; t = t.x) t.t.N();
729
731
  }
730
732
  };
731
- Object.defineProperty(gt.prototype, "value", { get: function() {
733
+ Object.defineProperty(ft.prototype, "value", { get: function() {
732
734
  if (1 & this.f) throw new Error("Cycle detected");
733
- var t = zs(this);
735
+ var t = js(this);
734
736
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
735
737
  return this.v;
736
738
  } });
737
- function Qs(t) {
739
+ function Ys(t) {
738
740
  var e = t.u;
739
741
  if (t.u = void 0, typeof e == "function") {
740
742
  Re++;
741
- var n = C;
742
- C = void 0;
743
+ var n = D;
744
+ D = void 0;
743
745
  try {
744
746
  e();
745
747
  } catch (s) {
746
- throw t.f &= -2, t.f |= 8, Rn(t), s;
748
+ throw t.f &= -2, t.f |= 8, kn(t), s;
747
749
  } finally {
748
- C = n, xt();
750
+ D = n, Ft();
749
751
  }
750
752
  }
751
753
  }
752
- function Rn(t) {
754
+ function kn(t) {
753
755
  for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
754
- t.x = void 0, t.s = void 0, Qs(t);
756
+ t.x = void 0, t.s = void 0, Ys(t);
755
757
  }
756
- function Bo(t) {
757
- if (C !== this) throw new Error("Out-of-order effect");
758
- Ys(this), C = t, this.f &= -2, 8 & this.f && Rn(this), xt();
758
+ function wo(t) {
759
+ if (D !== this) throw new Error("Out-of-order effect");
760
+ Ks(this), D = t, this.f &= -2, 8 & this.f && kn(this), Ft();
759
761
  }
760
- function mt(t) {
762
+ function ht(t) {
761
763
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
762
764
  }
763
- mt.prototype.c = function() {
765
+ ht.prototype.c = function() {
764
766
  var t = this.S();
765
767
  try {
766
768
  if (8 & this.f || this.x === void 0) return;
@@ -770,20 +772,20 @@ mt.prototype.c = function() {
770
772
  t();
771
773
  }
772
774
  };
773
- mt.prototype.S = function() {
775
+ ht.prototype.S = function() {
774
776
  if (1 & this.f) throw new Error("Cycle detected");
775
- this.f |= 1, this.f &= -9, Qs(this), Ws(this), Re++;
776
- var t = C;
777
- return C = this, Bo.bind(this, t);
777
+ this.f |= 1, this.f &= -9, Ys(this), zs(this), Re++;
778
+ var t = D;
779
+ return D = this, wo.bind(this, t);
778
780
  };
779
- mt.prototype.N = function() {
781
+ ht.prototype.N = function() {
780
782
  2 & this.f || (this.f |= 2, this.o = rt, rt = this);
781
783
  };
782
- mt.prototype.d = function() {
783
- this.f |= 8, 1 & this.f || Rn(this);
784
+ ht.prototype.d = function() {
785
+ this.f |= 8, 1 & this.f || kn(this);
784
786
  };
785
787
  function pe(t) {
786
- var e = new mt(t);
788
+ var e = new ht(t);
787
789
  try {
788
790
  e.c();
789
791
  } catch (n) {
@@ -791,7 +793,7 @@ function pe(t) {
791
793
  }
792
794
  return e.d.bind(e);
793
795
  }
794
- class Vo {
796
+ class Mo {
795
797
  constructor() {
796
798
  this.items = [];
797
799
  }
@@ -811,10 +813,10 @@ class Vo {
811
813
  this.items = [];
812
814
  }
813
815
  }
814
- const bt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Gn = "LOG", Xs = "ERROR", Fo = "RS SDK", Ho = "font-weight: bold; background: black; color: white;", xo = "font-weight: normal;";
815
- class Go {
816
- constructor(e = Gn, n = "", s = console) {
817
- this.minLogLevel = bt[e], this.scope = n, this.logProvider = s;
816
+ const vt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, xn = "LOG", Ws = "ERROR", $o = "RS SDK", Uo = "font-weight: bold; background: black; color: white;", Bo = "font-weight: normal;";
817
+ class Vo {
818
+ constructor(e = xn, n = "", s = console) {
819
+ this.minLogLevel = vt[e], this.scope = n, this.logProvider = s;
818
820
  }
819
821
  log(...e) {
820
822
  this.outputLog("LOG", e);
@@ -833,7 +835,7 @@ class Go {
833
835
  }
834
836
  outputLog(e, n) {
835
837
  var s, i;
836
- this.minLogLevel <= bt[e] && ((i = (s = this.logProvider)[e.toLowerCase()]) == null || i.call(s, ...this.formatLogData(n)));
838
+ this.minLogLevel <= vt[e] && ((i = (s = this.logProvider)[e.toLowerCase()]) == null || i.call(s, ...this.formatLogData(n)));
837
839
  }
838
840
  setScope(e) {
839
841
  this.scope = e || this.scope;
@@ -841,22 +843,22 @@ class Go {
841
843
  // TODO: should we allow to change the level via global variable on run time
842
844
  // to assist on the fly debugging?
843
845
  setMinLogLevel(e) {
844
- this.minLogLevel = bt[e], G(this.minLogLevel) && (this.minLogLevel = bt[Gn]);
846
+ this.minLogLevel = vt[e], G(this.minLogLevel) && (this.minLogLevel = vt[xn]);
845
847
  }
846
848
  /**
847
849
  * Formats the console message using `scope` and styles
848
850
  */
849
851
  formatLogData(e) {
850
852
  if (Array.isArray(e) && e.length > 0) {
851
- let n = `%c ${Fo}`;
853
+ let n = `%c ${$o}`;
852
854
  this.scope && (n = `${n} - ${this.scope}`);
853
855
  const s = B(e[0]) ? e[0].trim() : "";
854
856
  n = `${n} %c ${s}`;
855
857
  const i = [
856
858
  n,
857
- Ho,
859
+ Uo,
858
860
  // add style for the prefix
859
- xo
861
+ Bo
860
862
  // reset the style for the actual message
861
863
  ];
862
864
  return B(e[0]) || i.push(e[0]), i.push(...e.slice(1)), i;
@@ -864,27 +866,27 @@ class Go {
864
866
  return e;
865
867
  }
866
868
  }
867
- const ve = new Go();
869
+ const ve = new Vo();
868
870
  let he = /* @__PURE__ */ function(t) {
869
871
  return t.HANDLEDEXCEPTION = "handledException", t.UNHANDLEDEXCEPTION = "unhandledException", t.UNHANDLEDREJECTION = "unhandledPromiseRejection", t;
870
872
  }({});
871
- const Js = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], un = "cookieStorage", jn = "Unable to process/parse source configuration response", jo = "The source is disabled. Please enable the source in the dashboard to send events.", qo = "Failed to prepare data for the request.", zo = "Failed to invoke plugin because the extension point name is missing.", Ko = "Failed to invoke plugin because the extension point name is invalid.", Wo = (t) => `${t}${R}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, Yo = (t, e, n) => `${t}${R}The base URL "${n}" for ${e} is not valid.`, Qo = (t, e, n) => `${t}${R}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Xo = (t, e) => `${t}${R}Ignoring a non-error: ${e}.`, Jo = (t) => `${t}${R}Failed to log breadcrumb.`, Zo = (t) => `${t}${R}Failed to handle the error.`, ea = (t) => `${t}${R}Plugin name is missing.`, ta = (t, e) => `${t}${R}Plugin "${e}" already exists.`, na = (t, e) => `${t}${R}Plugin "${e}" not found.`, sa = (t, e) => `${t}${R}Plugin "${e}" not found in plugins but found in byName. This indicates a bug in the plugin engine. Please report this issue to the development team.`, ia = (t, e, n) => `${t}${R}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, ra = (t, e, n) => `${t}${R}Failed to invoke the "${e}" extension point of plugin "${n}".`, oa = (t, e) => `${t}${R}The "${e}" storage type is `, qn = "Failed to fetch the source config", aa = (t, e) => `${t}${R}The write key "${e}" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`, la = (t, e) => `${t}${R}The data plane URL "${e}" is invalid. It must be a valid URL string. Please check that the data plane URL is correct and try again.`, Zs = (t) => `${t}${R}The provided callback parameter is not a function.`, ua = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, ca = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, da = (t, e) => `${t} for URL: ${e}`, fa = (t) => `Failed to save the value for "${t}" to storage`, ha = (t) => `Failed to retrieve or parse data for "${t}" from storage`, ga = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, ma = (t) => `The server failed to set the ${t} cookie. As a fallback, the cookies will be set client side.`, pa = "Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.", va = (t, e, n) => `${t}${R}The storage type "${e}" is not supported. Please choose one of the following supported types: "${Js}". The default type "${n}" will be used instead.`, ya = (t, e, n, s) => `${t}${R}The storage encryption version "${e}" is not supported. Please choose one of the following supported versions: "${Object.keys(n)}". The default version "${s}" will be used instead.`, ba = (t, e, n) => `${t}${R}The storage data migration has been disabled because the configured storage encryption version (${e}) is not the latest (${n}). To enable storage data migration, please update the storage encryption version to the latest version.`, Ea = (t, e, n) => `${t}${R}The provided cookie domain (${e}) does not match the current webpage's domain (${n}). Hence, the cookies will be set client-side.`, Sa = (t, e, n, s) => `${t}${R}The "${e}" property defined under "${n}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${s}).`, ka = (t) => `${t}${R}Please make sure that the "context" property in the event API's "options" argument is a valid object literal with key-value pairs.`, Ra = (t) => `${t}${R}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, Oa = (t, e, n) => `${t}${R}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, Ia = (t, e, n) => `${t}${R}The session cut off duration value "${e}" is not a number. The default cut off duration of ${n} ms will be used instead.`, Ta = (t, e, n) => `${t}${R}The session cut off duration value "${e}" ms is less than the session timeout value "${n}" ms. The cut off functionality will be disabled.`, Aa = (t) => `${t}${R}The session timeout value is 0, which disables the automatic session tracking feature. If you want to enable session tracking, please provide a positive integer value for the timeout.`, Da = (t, e, n) => `${t}${R}The session timeout value ${e} ms is less than the recommended minimum of ${n} ms. Please consider increasing the timeout value to ensure optimal performance and reliability.`, Ca = (t, e, n) => `${t}${R}The provided session ID (${e}) is either invalid, not a positive integer, or not at least "${n}" digits long. A new session ID will be auto-generated instead.`, _a = (t) => `${t}${R}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, Pa = (t, e, n, s) => `${t}${R}The storage type "${n}" is not available for entry "${e}". The SDK will initialize the entry with "${s}" storage type instead.`, Na = (t) => `${t}${R}The callback threw an exception`, La = (t, e) => `${t}${R}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, wa = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, Ma = (t, e, n) => `${t}${R}The pre-consent storage strategy "${e}" is not supported. Please choose one of the following supported strategies: "none, session, anonymousId". The default strategy "${n}" will be used instead.`, $a = (t, e, n) => `${t}${R}The pre-consent events delivery type "${e}" is not supported. Please choose one of the following supported types: "immediate, buffer". The default type "${n}" will be used instead.`, Ua = (t, e) => `${t}${R}${e} plugin is deprecated. Please exclude it from the load API options.`, Ba = (t, e, n, s) => {
873
+ const Qs = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], an = "cookieStorage", Gn = "Unable to process/parse source configuration response", Fo = "The source is disabled. Please enable the source in the dashboard to send events.", Ho = "Failed to prepare data for the request.", xo = "Failed to invoke plugin because the extension point name is missing.", Go = "Failed to invoke plugin because the extension point name is invalid.", jo = (t) => `${t}${R}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, qo = (t, e, n) => `${t}${R}The base URL "${n}" for ${e} is not valid.`, zo = (t, e, n) => `${t}${R}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Ko = (t, e) => `${t}${R}Ignoring a non-error: ${e}.`, Yo = (t) => `${t}${R}Failed to log breadcrumb.`, Wo = (t) => `${t}${R}Failed to handle the error.`, Qo = (t) => `${t}${R}Plugin name is missing.`, Xo = (t, e) => `${t}${R}Plugin "${e}" already exists.`, Jo = (t, e) => `${t}${R}Plugin "${e}" not found.`, Zo = (t, e) => `${t}${R}Plugin "${e}" not found in plugins but found in byName. This indicates a bug in the plugin engine. Please report this issue to the development team.`, ea = (t, e, n) => `${t}${R}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, ta = (t, e, n) => `${t}${R}Failed to invoke the "${e}" extension point of plugin "${n}".`, na = (t, e) => `${t}${R}The "${e}" storage type is `, jn = "Failed to fetch the source config", sa = (t, e) => `${t}${R}The write key "${e}" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`, ia = (t, e) => `${t}${R}The data plane URL "${e}" is invalid. It must be a valid URL string. Please check that the data plane URL is correct and try again.`, Xs = (t) => `${t}${R}The provided callback parameter is not a function.`, ra = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, oa = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, aa = (t, e) => `${t} for URL: ${e}`, la = (t) => `Failed to save the value for "${t}" to storage`, ua = (t) => `Failed to retrieve or parse data for "${t}" from storage`, ca = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, da = (t) => `The server failed to set the ${t} cookie. As a fallback, the cookies will be set client side.`, fa = "Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.", ha = (t, e, n) => `${t}${R}The storage type "${e}" is not supported. Please choose one of the following supported types: "${Qs}". The default type "${n}" will be used instead.`, ga = (t, e, n, s) => `${t}${R}The storage encryption version "${e}" is not supported. Please choose one of the following supported versions: "${Object.keys(n)}". The default version "${s}" will be used instead.`, ma = (t, e, n) => `${t}${R}The storage data migration has been disabled because the configured storage encryption version (${e}) is not the latest (${n}). To enable storage data migration, please update the storage encryption version to the latest version.`, pa = (t, e, n) => `${t}${R}The provided cookie domain (${e}) does not match the current webpage's domain (${n}). Hence, the cookies will be set client-side.`, va = (t, e, n, s) => `${t}${R}The "${e}" property defined under "${n}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${s}).`, ya = (t) => `${t}${R}Please make sure that the "context" property in the event API's "options" argument is a valid object literal with key-value pairs.`, ba = (t) => `${t}${R}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, Ea = (t, e, n) => `${t}${R}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, Sa = (t, e, n) => `${t}${R}The session cut off duration value "${e}" is not a number. The default cut off duration of ${n} ms will be used instead.`, ka = (t, e, n) => `${t}${R}The session cut off duration value "${e}" ms is less than the session timeout value "${n}" ms. The cut off functionality will be disabled.`, Ra = (t) => `${t}${R}The session timeout value is 0, which disables the automatic session tracking feature. If you want to enable session tracking, please provide a positive integer value for the timeout.`, Ia = (t, e, n) => `${t}${R}The session timeout value ${e} ms is less than the recommended minimum of ${n} ms. Please consider increasing the timeout value to ensure optimal performance and reliability.`, Ta = (t, e, n) => `${t}${R}The provided session ID (${e}) is either invalid, not a positive integer, or not at least "${n}" digits long. A new session ID will be auto-generated instead.`, Oa = (t) => `${t}${R}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, Aa = (t, e, n, s) => `${t}${R}The storage type "${n}" is not available for entry "${e}". The SDK will initialize the entry with "${s}" storage type instead.`, Da = (t) => `${t}${R}The callback threw an exception`, Ca = (t, e) => `${t}${R}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, _a = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, Pa = (t, e, n) => `${t}${R}The pre-consent storage strategy "${e}" is not supported. Please choose one of the following supported strategies: "none, session, anonymousId". The default strategy "${n}" will be used instead.`, Na = (t, e, n) => `${t}${R}The pre-consent events delivery type "${e}" is not supported. Please choose one of the following supported types: "immediate, buffer". The default type "${n}" will be used instead.`, La = (t, e) => `${t}${R}${e} plugin is deprecated. Please exclude it from the load API options.`, wa = (t, e, n, s) => {
872
874
  const i = n.length === 1, r = i ? ` '${n[0]}' plugin was` : ` ['${n.join("', '")}'] plugins were`, a = `${t}${R}${e}, but${r} not configured to load.`;
873
875
  return s ? `${a} So, ${i ? "the plugin" : "those plugins"} will be loaded automatically.` : `${a} Ignore if this was intentional. Otherwise, consider adding ${i ? "it" : "them"} to the 'plugins' load API option.`;
874
- }, Va = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Fa = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Ha = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`, ei = { All: !0 }, On = "js-integrations", ti = "plugins", xa = new RegExp("^(https?:\\/\\/)(((([a-zA-Z\\d]([a-zA-Z\\d-]*[a-zA-Z\\d])*)\\.)+[a-zA-Z]{2,}|localhost|((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)))(\\:\\d+)?(\\/[-a-zA-Z\\d%_.~+]*)*(\\?[;&a-zA-Z\\d%_.~+=-]*)?(\\#[-a-zA-Z\\d_]*)?$"), ut = "modern", Ut = "https://cdn.rudderlabs.com", In = "v3", ni = `${Ut}/${In}/${ut}/${On}`, si = `${Ut}/${In}/${ut}/${ti}`, ii = "https://api.rudderstack.com", Ce = "v3", Ga = "xhr", cn = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, At = { [Ce]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, ja = { [Ga]: "XhrQueue", beacon: "BeaconQueue" }, qa = "rsaRequest", za = "rsaMetrics", Ka = { configUrl: ii, loadIntegration: !0, sessions: { autoTrack: !0, timeout: an, cutOff: { enabled: !1 } }, sameSiteCookie: "Lax", polyfillIfRequired: !0, integrations: ei, useBeacon: !1, beaconQueueOptions: {}, destinationsQueueOptions: {}, queueOptions: {}, lockIntegrationsVersion: !0, lockPluginsVersion: !0, uaChTrackLevel: "none", plugins: [], useGlobalIntegrationsConfigInEvents: !1, bufferDataPlaneEventsUntilReady: !1, dataPlaneEventsBufferTimeout: Oo, storage: { encryption: { version: Ce }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, Wa = p(I(Ka)), T = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, Ya = 10, Qa = { userId: p(T.userId), userTraits: p(T.userTraits), anonymousId: p(T.anonymousId), groupId: p(T.groupId), groupTraits: p(T.groupTraits), initialReferrer: p(T.initialReferrer), initialReferringDomain: p(T.initialReferringDomain), sessionInfo: p(T.sessionInfo), authToken: p(T.authToken) }, Xa = { isOnline: p(!0), storage: { isLocalStorageAvailable: p(!1), isCookieStorageAvailable: p(!1), isSessionStorageAvailable: p(!1) }, isBeaconAvailable: p(!1), isLegacyDOM: p(!1), isUaCHAvailable: p(!1), isCryptoAvailable: p(!1), isIE11: p(!1), isAdBlocked: p(!1) }, Ja = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Za = p(void 0), el = { activeDataplaneUrl: p(void 0), integrationsCDNPath: p(ni), pluginsCDNPath: p(si), sourceConfigUrl: p(void 0), status: p(void 0), initialized: p(!1), logLevel: p(Xs), loaded: p(!1), readyCallbacks: p([]), writeKey: p(void 0), dataPlaneUrl: p(void 0) }, tl = { enabled: p(!1), initialized: p(!1), data: p({}), activeConsentManagerPluginName: p(void 0), preConsent: p({ enabled: !1 }), postConsent: p({}), resolutionStrategy: p("and"), provider: p(void 0), metadata: p(void 0) }, nl = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, sl = { app: p({ name: Mn, namespace: po, version: at, installType: xs }), traits: p(null), library: p({ name: Mn, version: at, snippetVersion: globalThis.RudderSnippetVersion }), userAgent: p(null), device: p(null), network: p(null), os: p({ name: "", version: "" }), locale: p(null), screen: p({ density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 }), "ua-ch": p(void 0), timezone: p(void 0) }, il = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, rl = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, ol = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, al = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, ll = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, ul = {
876
+ }, Ma = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, $a = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Ua = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`, Js = { All: !0 }, Rn = "js-integrations", Zs = "plugins", Ba = new RegExp("^(https?:\\/\\/)(((([a-zA-Z\\d]([a-zA-Z\\d-]*[a-zA-Z\\d])*)\\.)+[a-zA-Z]{2,}|localhost|((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)))(\\:\\d+)?(\\/[-a-zA-Z\\d%_.~+]*)*(\\?[;&a-zA-Z\\d%_.~+=-]*)?(\\#[-a-zA-Z\\d_]*)?$"), ut = "modern", Mt = "https://cdn.rudderlabs.com", In = "v3", ei = `${Mt}/${In}/${ut}/${Rn}`, ti = `${Mt}/${In}/${ut}/${Zs}`, ni = "https://api.rudderstack.com", Ce = "v3", Va = "xhr", ln = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, Tt = { [Ce]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, Fa = { [Va]: "XhrQueue", beacon: "BeaconQueue" }, Ha = "rsaRequest", xa = "rsaMetrics", Ga = { configUrl: ni, loadIntegration: !0, sessions: { autoTrack: !0, timeout: rn, cutOff: { enabled: !1 } }, sameSiteCookie: "Lax", polyfillIfRequired: !0, integrations: Js, useBeacon: !1, beaconQueueOptions: {}, destinationsQueueOptions: {}, queueOptions: {}, lockIntegrationsVersion: !0, lockPluginsVersion: !0, uaChTrackLevel: "none", plugins: [], useGlobalIntegrationsConfigInEvents: !1, bufferDataPlaneEventsUntilReady: !1, dataPlaneEventsBufferTimeout: Eo, storage: { encryption: { version: Ce }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, ja = p(T(Ga)), O = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, qa = 10, za = { userId: p(O.userId), userTraits: p(O.userTraits), anonymousId: p(O.anonymousId), groupId: p(O.groupId), groupTraits: p(O.groupTraits), initialReferrer: p(O.initialReferrer), initialReferringDomain: p(O.initialReferringDomain), sessionInfo: p(O.sessionInfo), authToken: p(O.authToken) }, Ka = { isOnline: p(!0), storage: { isLocalStorageAvailable: p(!1), isCookieStorageAvailable: p(!1), isSessionStorageAvailable: p(!1) }, isBeaconAvailable: p(!1), isLegacyDOM: p(!1), isUaCHAvailable: p(!1), isCryptoAvailable: p(!1), isIE11: p(!1), isAdBlocked: p(!1) }, Ya = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Wa = p(void 0), Qa = { activeDataplaneUrl: p(void 0), integrationsCDNPath: p(ei), pluginsCDNPath: p(ti), sourceConfigUrl: p(void 0), status: p(void 0), initialized: p(!1), logLevel: p(Ws), loaded: p(!1), readyCallbacks: p([]), writeKey: p(void 0), dataPlaneUrl: p(void 0) }, Xa = { enabled: p(!1), initialized: p(!1), data: p({}), activeConsentManagerPluginName: p(void 0), preConsent: p({ enabled: !1 }), postConsent: p({}), resolutionStrategy: p("and"), provider: p(void 0), metadata: p(void 0) }, Ja = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, Za = { app: p({ name: wn, namespace: fo, version: at, installType: Fs }), traits: p(null), library: p({ name: wn, version: at, snippetVersion: globalThis.RudderSnippetVersion }), userAgent: p(null), device: p(null), network: p(null), os: p({ name: "", version: "" }), locale: p(null), screen: p({ density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 }), "ua-ch": p(void 0), timezone: p(void 0) }, el = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, tl = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, nl = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, sl = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, il = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, rl = {
875
877
  eventsQueuePluginName: p(void 0),
876
878
  deliveryEnabled: p(!0)
877
879
  // Delivery should always happen
878
- }, cl = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, dl = { capabilities: Xa, consents: tl, context: sl, eventBuffer: rl, lifecycle: el, loadOptions: Wa, metrics: nl, nativeDestinations: il, plugins: ol, reporting: Ja, session: Qa, source: Za, storage: al, serverCookies: ll, dataPlaneEvents: ul, autoTrack: cl }, o = { ...I(dl) };
879
- function ri(t) {
880
+ }, ol = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, al = { capabilities: Ka, consents: Xa, context: Za, eventBuffer: tl, lifecycle: Qa, loadOptions: ja, metrics: Ja, nativeDestinations: el, plugins: nl, reporting: Ya, session: za, source: Wa, storage: sl, serverCookies: il, dataPlaneEvents: rl, autoTrack: ol }, o = { ...T(al) };
881
+ function si(t) {
880
882
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
881
883
  }
882
- var Dt = { exports: {} }, Ct = { exports: {} }, fl = Ct.exports, zn;
883
- function hl() {
884
- return zn || (zn = 1, function(t, e) {
884
+ var Ot = { exports: {} }, At = { exports: {} }, ll = At.exports, qn;
885
+ function ul() {
886
+ return qn || (qn = 1, function(t, e) {
885
887
  (function(n, s) {
886
888
  t.exports = s();
887
- })(fl, function() {
889
+ })(ll, function() {
888
890
  function n(m) {
889
891
  return !isNaN(parseFloat(m)) && isFinite(m);
890
892
  }
@@ -921,10 +923,10 @@ function hl() {
921
923
  var m = this.getFileName() || "", v = this.getLineNumber() || "", k = this.getColumnNumber() || "", E = this.getFunctionName() || "";
922
924
  return this.getIsEval() ? m ? "[eval] (" + m + ":" + v + ":" + k + ")" : "[eval]:" + v + ":" + k : E ? E + " (" + m + ":" + v + ":" + k + ")" : m + ":" + v + ":" + k;
923
925
  } }, h.fromString = function(v) {
924
- var k = v.indexOf("("), E = v.lastIndexOf(")"), _ = v.substring(0, k), W = v.substring(k + 1, E).split(","), x = v.substring(E + 1);
926
+ var k = v.indexOf("("), E = v.lastIndexOf(")"), _ = v.substring(0, k), z = v.substring(k + 1, E).split(","), x = v.substring(E + 1);
925
927
  if (x.indexOf("@") === 0)
926
- var Z = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(x, ""), fe = Z[1], Te = Z[2], O = Z[3];
927
- return new h({ functionName: _, args: W || void 0, fileName: fe, lineNumber: Te || void 0, columnNumber: O || void 0 });
928
+ var J = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(x, ""), fe = J[1], Oe = J[2], I = J[3];
929
+ return new h({ functionName: _, args: z || void 0, fileName: fe, lineNumber: Oe || void 0, columnNumber: I || void 0 });
928
930
  };
929
931
  for (var y = 0; y < r.length; y++)
930
932
  h.prototype["get" + s(r[y])] = i(r[y]), h.prototype["set" + s(r[y])] = /* @__PURE__ */ function(m) {
@@ -948,14 +950,14 @@ function hl() {
948
950
  }(u[f]);
949
951
  return h;
950
952
  });
951
- }(Ct)), Ct.exports;
953
+ }(At)), At.exports;
952
954
  }
953
- var gl = Dt.exports, Kn;
954
- function ml() {
955
- return Kn || (Kn = 1, function(t, e) {
955
+ var cl = Ot.exports, zn;
956
+ function dl() {
957
+ return zn || (zn = 1, function(t, e) {
956
958
  (function(n, s) {
957
- t.exports = s(hl());
958
- })(gl, function(s) {
959
+ t.exports = s(ul());
960
+ })(cl, function(s) {
959
961
  var i = /(^|@)\S+:\d+/, r = /^\s*at .*(\S+:\d+|\(native\))/m, a = /^(eval@)?(\[native code])?$/;
960
962
  return {
961
963
  /**
@@ -1042,16 +1044,16 @@ function ml() {
1042
1044
  }
1043
1045
  };
1044
1046
  });
1045
- }(Dt)), Dt.exports;
1047
+ }(Ot)), Ot.exports;
1046
1048
  }
1047
- var pl = ml();
1048
- const vl = /* @__PURE__ */ ri(pl), oi = "global code", yl = (t) => L(t) && /^global code$/i.test(t) ? oi : t, bl = (t) => {
1049
- const e = { file: t.fileName, method: yl(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
1050
- return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = oi), e;
1051
- }, Wn = (t) => B(t) ? t : "";
1049
+ var fl = dl();
1050
+ const hl = /* @__PURE__ */ si(fl), ii = "global code", gl = (t) => N(t) && /^global code$/i.test(t) ? ii : t, ml = (t) => {
1051
+ const e = { file: t.fileName, method: gl(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
1052
+ return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = ii), e;
1053
+ }, Kn = (t) => B(t) ? t : "";
1052
1054
  function Yn(t, e, n, s) {
1053
- return { errorClass: Wn(t), message: `${n}${Wn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
1054
- const a = bl(r);
1055
+ return { errorClass: Kn(t), message: `${n}${Kn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
1056
+ const a = ml(r);
1055
1057
  try {
1056
1058
  return JSON.stringify(a) === "{}" ? i : i.concat(a);
1057
1059
  } catch {
@@ -1059,38 +1061,38 @@ function Yn(t, e, n, s) {
1059
1061
  }
1060
1062
  }, []) };
1061
1063
  }
1062
- const El = (t, e) => {
1064
+ const pl = (t, e) => {
1063
1065
  let n;
1064
- return bn(t) && B(kn(t)) ? n = t : (e.warn(Xo(tt, de(t))), n = void 0), n;
1065
- }, Sl = (t, e) => {
1066
+ return yn(t) && B(Sn(t)) ? n = t : (e.warn(Ko(tt, de(t))), n = void 0), n;
1067
+ }, vl = (t, e) => {
1066
1068
  try {
1067
- const n = vl.parse(t);
1069
+ const n = hl.parse(t);
1068
1070
  return Yn(t.name, t.message, e, n);
1069
1071
  } catch {
1070
1072
  return Yn(t.name, t.message, e, []);
1071
1073
  }
1072
- }, Qn = (t, e) => {
1074
+ }, Wn = (t, e) => {
1073
1075
  try {
1074
1076
  return JSON.parse(t || "");
1075
1077
  } catch (n) {
1076
- const s = ht(n, "Failed to parse response data");
1078
+ const s = dt(n, "Failed to parse response data");
1077
1079
  e(s);
1078
1080
  }
1079
- }, _t = "The request failed", kl = [/Failed to fetch dynamically imported module: .*/], Rl = [/Failed to load the script with the id .*/, /A timeout of \d+ ms occurred while trying to load the script with id .*/], Ol = [new RegExp(`${_t}.*`), /A script with the id .* is already loaded\./], Il = { headers: { Accept: "application/json", "Content-Type": "application/json;charset=UTF-8" }, method: "GET" }, Xn = (t, e, n) => {
1080
- const s = H(Il, e || {});
1081
+ }, Dt = "The request failed", yl = [/Failed to fetch dynamically imported module: .*/], bl = [/Failed to load the script with the id .*/, /A timeout of \d+ ms occurred while trying to load the script with id .*/], El = [new RegExp(`${Dt}.*`), /A script with the id .* is already loaded\./], Sl = { headers: { Accept: "application/json", "Content-Type": "application/json;charset=UTF-8" }, method: "GET" }, Qn = (t, e, n) => {
1082
+ const s = H(Sl, e || {});
1081
1083
  return n && (s.headers = H(s.headers, { Authorization: n })), s.url = t, s;
1082
- }, Jn = (t, e = ko, n) => new Promise((s, i) => {
1084
+ }, Xn = (t, e = yo, n) => new Promise((s, i) => {
1083
1085
  let r;
1084
1086
  if (t.sendRawData === !0)
1085
1087
  r = t.data;
1086
- else if (r = de(t.data, !1, [], n), ie(r)) {
1087
- i({ error: new Error(qo), undefined: void 0, options: t });
1088
+ else if (r = de(t.data, !1, [], n), ne(r)) {
1089
+ i({ error: new Error(Ho), undefined: void 0, options: t });
1088
1090
  return;
1089
1091
  }
1090
1092
  const a = new XMLHttpRequest(), u = (c) => {
1091
- i({ error: new Error(ua(_t, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
1093
+ i({ error: new Error(ra(Dt, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
1092
1094
  }, l = (c) => {
1093
- i({ error: new Error(ca(_t, c, t.url)), xhr: a, options: t });
1095
+ i({ error: new Error(oa(Dt, c, t.url)), xhr: a, options: t });
1094
1096
  };
1095
1097
  a.ontimeout = l, a.onerror = l, a.onload = () => {
1096
1098
  a.status >= 200 && a.status < 400 ? s({ response: a.responseText, xhr: a, options: t }) : u();
@@ -1100,10 +1102,10 @@ const El = (t, e) => {
1100
1102
  try {
1101
1103
  a.send(r);
1102
1104
  } catch (c) {
1103
- i({ error: ht(c, da(_t, t.url)), xhr: a, options: t });
1105
+ i({ error: dt(c, aa(Dt, t.url)), xhr: a, options: t });
1104
1106
  }
1105
1107
  });
1106
- class Tl {
1108
+ class kl {
1107
1109
  constructor(e) {
1108
1110
  this.logger = e, this.onError = this.onError.bind(this);
1109
1111
  }
@@ -1116,8 +1118,8 @@ class Tl {
1116
1118
  async getData(e) {
1117
1119
  const { url: n, options: s, timeout: i, isRawResponse: r } = e;
1118
1120
  try {
1119
- const a = await Jn(Xn(n, s, this.basicAuthHeader), i, this.logger);
1120
- return { data: r ? a.response : Qn(a.response, this.onError), details: a };
1121
+ const a = await Xn(Qn(n, s, this.basicAuthHeader), i, this.logger);
1122
+ return { data: r ? a.response : Wn(a.response, this.onError), details: a };
1121
1123
  } catch (a) {
1122
1124
  return { data: void 0, details: a };
1123
1125
  }
@@ -1127,8 +1129,8 @@ class Tl {
1127
1129
  */
1128
1130
  getAsyncData(e) {
1129
1131
  const { callback: n, url: s, options: i, timeout: r, isRawResponse: a } = e, u = !S(n);
1130
- Jn(Xn(s, i, this.basicAuthHeader), r, this.logger).then((l) => {
1131
- u || n(a ? l.response : Qn(l.response, this.onError), l);
1132
+ Xn(Qn(s, i, this.basicAuthHeader), r, this.logger).then((l) => {
1133
+ u || n(a ? l.response : Wn(l.response, this.onError), l);
1132
1134
  }).catch((l) => {
1133
1135
  u || n(void 0, l);
1134
1136
  });
@@ -1138,13 +1140,13 @@ class Tl {
1138
1140
  */
1139
1141
  onError(e) {
1140
1142
  var n;
1141
- (n = this.errorHandler) == null || n.onError(e, Jr);
1143
+ (n = this.errorHandler) == null || n.onError(e, Yr);
1142
1144
  }
1143
1145
  /**
1144
1146
  * Set basic authentication header (eg writekey)
1145
1147
  */
1146
1148
  setAuthHeader(e, n = !1) {
1147
- const s = n ? e : Wr(`${e}:`);
1149
+ const s = n ? e : jr(`${e}:`);
1148
1150
  this.basicAuthHeader = `Basic ${s}`;
1149
1151
  }
1150
1152
  /**
@@ -1154,10 +1156,10 @@ class Tl {
1154
1156
  this.basicAuthHeader = void 0;
1155
1157
  }
1156
1158
  }
1157
- const ai = new Tl(ve), Al = "1", Dl = () => [
1159
+ const ri = new kl(ve), Rl = "1", Il = () => [
1158
1160
  "rsa"
1159
1161
  // Prefix for all the SDK scripts including plugins and module federated chunks
1160
- ], Cl = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], _l = [
1162
+ ], Tl = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Ol = [
1161
1163
  "userId",
1162
1164
  "userTraits",
1163
1165
  "groupId",
@@ -1170,7 +1172,7 @@ const ai = new Tl(ve), Al = "1", Dl = () => [
1170
1172
  // pre-load event buffer (may contain PII)
1171
1173
  "traits",
1172
1174
  "authToken"
1173
- ], Pl = "RudderStack JavaScript SDK", Nl = "__REPOSITORY_URL__", Ll = "js", wl = (t, e) => {
1175
+ ], Al = "RudderStack JavaScript SDK", Dl = "__REPOSITORY_URL__", Cl = "js", _l = (t, e) => {
1174
1176
  switch (e) {
1175
1177
  case he.UNHANDLEDEXCEPTION: {
1176
1178
  const { error: n } = t;
@@ -1182,39 +1184,39 @@ const ai = new Tl(ve), Al = "1", Dl = () => [
1182
1184
  default:
1183
1185
  return t;
1184
1186
  }
1185
- }, Ml = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), $l = () => {
1187
+ }, Pl = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), Nl = () => {
1186
1188
  const t = globalThis.location.hostname;
1187
- return !t || t && Cl.includes(t) ? "development" : "production";
1188
- }, Ul = (t) => {
1189
- const e = de(t, !1, _l);
1189
+ return !t || t && Tl.includes(t) ? "development" : "production";
1190
+ }, Ll = (t) => {
1191
+ const e = de(t, !1, Ol);
1190
1192
  return e !== null ? JSON.parse(e) : {};
1191
- }, Bl = () => globalThis.location.href.split("?")[0], Vl = (t, e, n, s) => {
1193
+ }, wl = () => globalThis.location.href.split("?")[0], Ml = (t, e, n, s) => {
1192
1194
  var i, r;
1193
1195
  return { id: `${((i = t.value) == null ? void 0 : i.id) ?? n.writeKey.value}..${e.sessionInfo.value.id ?? "NA"}..${s.pageLifecycle.pageViewId.value ?? "NA"}`, name: ((r = t.value) == null ? void 0 : r.name) ?? "NA" };
1194
- }, Fl = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), Hl = (t, e, n, s) => {
1196
+ }, $l = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), Ul = (t, e, n, s) => {
1195
1197
  const { context: i, lifecycle: r, session: a, source: u, reporting: l, autoTrack: c } = n, { app: d, locale: h, userAgent: y, timezone: g, screen: f, library: m } = i;
1196
- return { payloadVersion: "5", notifier: { name: Pl, version: d.value.version, url: Nl }, events: [{ exceptions: [I(t)], severity: e.severity, unhandled: e.unhandled, severityReason: e.severityReason, app: { version: d.value.version, releaseStage: $l(), type: d.value.installType }, device: Fl(h, y), request: { url: Bl(), clientIp: "[NOT COLLECTED]" }, breadcrumbs: I(l.breadcrumbs.value), context: t.message, groupingHash: s, metaData: {
1198
+ return { payloadVersion: "5", notifier: { name: Al, version: d.value.version, url: Dl }, events: [{ exceptions: [T(t)], severity: e.severity, unhandled: e.unhandled, severityReason: e.severityReason, app: { version: d.value.version, releaseStage: Nl(), type: d.value.installType }, device: $l(h, y), request: { url: wl(), clientIp: "[NOT COLLECTED]" }, breadcrumbs: T(l.breadcrumbs.value), context: t.message, groupingHash: s, metaData: {
1197
1199
  app: { snippetVersion: m.value.snippetVersion },
1198
1200
  device: { ...f.value, timezone: g.value },
1199
1201
  // Add rest of the state groups as metadata
1200
1202
  // so that they show up as separate tabs in the dashboard
1201
- ...Ul(n)
1202
- }, user: Vl(u, a, r, c) }] };
1203
- }, xl = (t) => {
1203
+ ...Ll(n)
1204
+ }, user: Ml(u, a, r, c) }] };
1205
+ }, Bl = (t) => {
1204
1206
  const e = t.message;
1205
- return kl.some((n) => n.test(e)) || Rl.some((n) => n.test(e)) ? e.includes(Ut) : !Ol.some((n) => n.test(e));
1206
- }, Gl = (t) => {
1207
+ return yl.some((n) => n.test(e)) || bl.some((n) => n.test(e)) ? e.includes(Mt) : !El.some((n) => n.test(e));
1208
+ }, Vl = (t) => {
1207
1209
  var r;
1208
1210
  const e = (r = t.stacktrace[0]) == null ? void 0 : r.file;
1209
1211
  if (!e || typeof e != "string")
1210
1212
  return !1;
1211
1213
  const n = e.substring(e.lastIndexOf("/") + 1), s = e.split("/");
1212
- return s[s.length - 2] === On || Dl().some((a) => n.startsWith(a) && n.endsWith(".js"));
1213
- }, jl = (t, e) => {
1214
- const n = { version: Al, message_id: Ht(), source: { name: Ll, sdk_version: e.context.app.value.version, write_key: e.lifecycle.writeKey.value, install_type: e.context.app.value.installType }, errors: t };
1214
+ return s[s.length - 2] === Rn || Il().some((a) => n.startsWith(a) && n.endsWith(".js"));
1215
+ }, Fl = (t, e) => {
1216
+ const n = { version: Rl, message_id: Vt(), source: { name: Cl, sdk_version: e.context.app.value.version, write_key: e.lifecycle.writeKey.value, install_type: e.context.app.value.installType }, errors: t };
1215
1217
  return de(n);
1216
1218
  };
1217
- class ql {
1219
+ class Hl {
1218
1220
  // If no logger is passed errors will be thrown as unhandled error
1219
1221
  constructor(e, n) {
1220
1222
  P(this, "initialized", !1);
@@ -1246,19 +1248,19 @@ class ql {
1246
1248
  */
1247
1249
  onError(e, n = "", s = "", i = he.HANDLEDEXCEPTION) {
1248
1250
  try {
1249
- const r = wl(e, i), a = El(r, this.logger);
1251
+ const r = _l(e, i), a = pl(r, this.logger);
1250
1252
  if (G(a))
1251
1253
  return;
1252
- const u = s ? `${s} - ` : "", l = `${n}${R}${u}`, c = Sl(a, l), h = kn(a).includes(Tt);
1253
- if (!h && !Gl(c) && i !== he.HANDLEDEXCEPTION)
1254
+ const u = s ? `${s} - ` : "", l = `${n}${R}${u}`, c = vl(a, l), h = Sn(a).includes(It);
1255
+ if (!h && !Vl(c) && i !== he.HANDLEDEXCEPTION)
1254
1256
  return;
1255
- if (o.reporting.isErrorReportingEnabled.value && xl(c)) {
1256
- const y = { severity: "error", unhandled: i !== he.HANDLEDEXCEPTION, severityReason: { type: i } }, g = Hl(c, y, o);
1257
- this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: jl(g, o), sendRawData: !0 }, isRawResponse: !0 });
1257
+ if (o.reporting.isErrorReportingEnabled.value && Bl(c)) {
1258
+ const y = { severity: "error", unhandled: i !== he.HANDLEDEXCEPTION, severityReason: { type: i } }, g = Ul(c, y, o);
1259
+ this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: Fl(g, o), sendRawData: !0 }, isRawResponse: !0 });
1258
1260
  }
1259
1261
  (i === he.HANDLEDEXCEPTION || h) && this.logger.error(c.message);
1260
1262
  } catch (r) {
1261
- this.logger.error(Zo(tt), r);
1263
+ this.logger.error(Wo(tt), r);
1262
1264
  }
1263
1265
  }
1264
1266
  /**
@@ -1269,14 +1271,14 @@ class ql {
1269
1271
  */
1270
1272
  leaveBreadcrumb(e) {
1271
1273
  try {
1272
- o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, Ml(e)];
1274
+ o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, Pl(e)];
1273
1275
  } catch (n) {
1274
- this.onError(n, Jo(tt));
1276
+ this.onError(n, Yo(tt));
1275
1277
  }
1276
1278
  }
1277
1279
  }
1278
- const li = new ql(ai, ve);
1279
- class zl {
1280
+ const oi = new Hl(ri, ve);
1281
+ class xl {
1280
1282
  constructor(e, n = {}) {
1281
1283
  P(this, "plugins", []);
1282
1284
  P(this, "byName", {});
@@ -1286,14 +1288,14 @@ class zl {
1286
1288
  }
1287
1289
  register(e, n) {
1288
1290
  if (!e.name) {
1289
- const i = ea(Be);
1291
+ const i = Qo(Be);
1290
1292
  if (this.config.throws)
1291
1293
  throw new Error(i);
1292
1294
  this.logger.error(i, e);
1293
1295
  return;
1294
1296
  }
1295
1297
  if (this.byName[e.name]) {
1296
- const i = ta(Be, e.name);
1298
+ const i = Xo(Be, e.name);
1297
1299
  if (this.config.throws)
1298
1300
  throw new Error(i);
1299
1301
  this.logger.error(i);
@@ -1309,7 +1311,7 @@ class zl {
1309
1311
  unregister(e) {
1310
1312
  const n = this.byName[e];
1311
1313
  if (!n) {
1312
- const i = na(Be, e);
1314
+ const i = Jo(Be, e);
1313
1315
  if (this.config.throws)
1314
1316
  throw new Error(i);
1315
1317
  this.logger.error(i);
@@ -1317,7 +1319,7 @@ class zl {
1317
1319
  }
1318
1320
  const s = this.plugins.indexOf(n);
1319
1321
  if (s === -1) {
1320
- const i = sa(Be, e);
1322
+ const i = Zo(Be, e);
1321
1323
  if (this.config.throws)
1322
1324
  throw new Error(i);
1323
1325
  this.logger.error(i);
@@ -1334,9 +1336,9 @@ class zl {
1334
1336
  var i;
1335
1337
  if ((i = s.deps) != null && i.some((r) => !this.byName[r])) {
1336
1338
  const r = s.deps.filter((a) => !this.byName[a]);
1337
- return this.logger.error(ia(Be, s.name, r)), !1;
1339
+ return this.logger.error(ea(Be, s.name, r)), !1;
1338
1340
  }
1339
- return n === "." ? !0 : xr(s, n);
1341
+ return n === "." ? !0 : Br(s, n);
1340
1342
  })), this.cache[n];
1341
1343
  }
1342
1344
  // This method allows to process this.plugins so that it could
@@ -1347,23 +1349,23 @@ class zl {
1347
1349
  invoke(e, n = !0, ...s) {
1348
1350
  let i = e;
1349
1351
  if (!i)
1350
- throw new Error(zo);
1352
+ throw new Error(xo);
1351
1353
  const r = i.startsWith("!"), a = this.config.throws ?? i.endsWith("!");
1352
1354
  if (i = i.replace(/(^!|!$)/g, ""), !i)
1353
- throw new Error(Ko);
1355
+ throw new Error(Go);
1354
1356
  const u = i.split(".");
1355
1357
  u.pop();
1356
1358
  const l = u.join(".");
1357
1359
  return (n ? this.getPlugins(i) : [this.getPlugins(i)[0]]).map((d) => {
1358
- const h = rn(d, i);
1360
+ const h = nn(d, i);
1359
1361
  if (!S(h) || r)
1360
1362
  return h;
1361
1363
  try {
1362
- return h.apply(rn(d, l), s);
1364
+ return h.apply(nn(d, l), s);
1363
1365
  } catch (y) {
1364
1366
  if (a)
1365
1367
  throw y;
1366
- this.logger.error(ra(Be, i, d.name), y);
1368
+ this.logger.error(ta(Be, i, d.name), y);
1367
1369
  }
1368
1370
  return null;
1369
1371
  });
@@ -1375,19 +1377,19 @@ class zl {
1375
1377
  return this.invoke(e, !0, ...n);
1376
1378
  }
1377
1379
  }
1378
- const Kl = new zl(ve, { throws: !0 }), Wl = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
1379
- t.config.useNativeSDK === !0, Yl = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, Zn = (t) => t.filter(Wl), ui = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Ql = ["Bugsnag", "ErrorReporting"], Xl = {
1380
+ const Gl = new xl(ve, { throws: !0 }), jl = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
1381
+ t.config.useNativeSDK === !0, ql = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, Jn = (t) => t.filter(jl), ai = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], zl = ["Bugsnag", "ErrorReporting"], Kl = {
1380
1382
  rudderAnalyticsRemotePlugins: { url: () => Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? `${window.RudderStackGlobals.app.pluginsCDNPath}/rsa-plugins.js` : "https://cdn.rudderlabs.com/v3/modern/plugins//rsa-plugins.js"), format: "esm", from: "vite" }
1381
1383
  };
1382
- function ci(t, e) {
1384
+ function li(t, e) {
1383
1385
  const n = Object.assign(t, e);
1384
1386
  for (const s of Object.keys(n))
1385
- typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = ci(n[s], e[s]));
1387
+ typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = li(n[s], e[s]));
1386
1388
  return n;
1387
1389
  }
1388
- const Jl = (t) => ci({}, (globalThis.__federation_shared__ || {}).default || {});
1389
- async function Zl(t) {
1390
- const e = Xl[t];
1390
+ const Yl = (t) => li({}, (globalThis.__federation_shared__ || {}).default || {});
1391
+ async function Wl(t) {
1392
+ const e = Kl[t];
1391
1393
  if (e.inited)
1392
1394
  return e.lib;
1393
1395
  if (["esm", "systemjs"].includes(e.format))
@@ -1399,7 +1401,7 @@ async function Zl(t) {
1399
1401
  r
1400
1402
  ).then((a) => {
1401
1403
  if (!e.inited) {
1402
- const u = Jl();
1404
+ const u = Yl();
1403
1405
  a.init(u), e.lib = a, e.lib.init(u), e.inited = !0;
1404
1406
  }
1405
1407
  n(e.lib);
@@ -1407,59 +1409,59 @@ async function Zl(t) {
1407
1409
  });
1408
1410
  });
1409
1411
  }
1410
- function Y(t, e) {
1412
+ function K(t, e) {
1411
1413
  if (!(t != null && t.default) && e) {
1412
1414
  let n = /* @__PURE__ */ Object.create(null);
1413
1415
  return n.default = t, n.__esModule = !0, n;
1414
1416
  }
1415
1417
  return t;
1416
1418
  }
1417
- function Q(t, e) {
1418
- return Zl(t).then((n) => n.get(e).then((s) => s()));
1419
+ function Y(t, e) {
1420
+ return Wl(t).then((n) => n.get(e).then((s) => s()));
1419
1421
  }
1420
- const eu = (t) => {
1422
+ const Ql = (t) => {
1421
1423
  switch (t) {
1422
1424
  case "BeaconQueue":
1423
- return () => Q("rudderAnalyticsRemotePlugins", "./BeaconQueue").then((e) => Y(e, !0));
1425
+ return () => Y("rudderAnalyticsRemotePlugins", "./BeaconQueue").then((e) => K(e, !0));
1424
1426
  case "CustomConsentManager":
1425
- return () => Q("rudderAnalyticsRemotePlugins", "./CustomConsentManager").then((e) => Y(e, !0));
1427
+ return () => Y("rudderAnalyticsRemotePlugins", "./CustomConsentManager").then((e) => K(e, !0));
1426
1428
  case "DeviceModeDestinations":
1427
- return () => Q("rudderAnalyticsRemotePlugins", "./DeviceModeDestinations").then((e) => Y(e, !0));
1429
+ return () => Y("rudderAnalyticsRemotePlugins", "./DeviceModeDestinations").then((e) => K(e, !0));
1428
1430
  case "DeviceModeTransformation":
1429
- return () => Q("rudderAnalyticsRemotePlugins", "./DeviceModeTransformation").then((e) => Y(e, !0));
1431
+ return () => Y("rudderAnalyticsRemotePlugins", "./DeviceModeTransformation").then((e) => K(e, !0));
1430
1432
  case "ExternalAnonymousId":
1431
- return () => Q("rudderAnalyticsRemotePlugins", "./ExternalAnonymousId").then((e) => Y(e, !0));
1433
+ return () => Y("rudderAnalyticsRemotePlugins", "./ExternalAnonymousId").then((e) => K(e, !0));
1432
1434
  case "GoogleLinker":
1433
- return () => Q("rudderAnalyticsRemotePlugins", "./GoogleLinker").then((e) => Y(e, !0));
1435
+ return () => Y("rudderAnalyticsRemotePlugins", "./GoogleLinker").then((e) => K(e, !0));
1434
1436
  case "KetchConsentManager":
1435
- return () => Q("rudderAnalyticsRemotePlugins", "./KetchConsentManager").then((e) => Y(e, !0));
1437
+ return () => Y("rudderAnalyticsRemotePlugins", "./KetchConsentManager").then((e) => K(e, !0));
1436
1438
  case "IubendaConsentManager":
1437
- return () => Q("rudderAnalyticsRemotePlugins", "./IubendaConsentManager").then((e) => Y(e, !0));
1439
+ return () => Y("rudderAnalyticsRemotePlugins", "./IubendaConsentManager").then((e) => K(e, !0));
1438
1440
  case "NativeDestinationQueue":
1439
- return () => Q("rudderAnalyticsRemotePlugins", "./NativeDestinationQueue").then((e) => Y(e, !0));
1441
+ return () => Y("rudderAnalyticsRemotePlugins", "./NativeDestinationQueue").then((e) => K(e, !0));
1440
1442
  case "OneTrustConsentManager":
1441
- return () => Q("rudderAnalyticsRemotePlugins", "./OneTrustConsentManager").then((e) => Y(e, !0));
1443
+ return () => Y("rudderAnalyticsRemotePlugins", "./OneTrustConsentManager").then((e) => K(e, !0));
1442
1444
  case "StorageEncryption":
1443
- return () => Q("rudderAnalyticsRemotePlugins", "./StorageEncryption").then((e) => Y(e, !0));
1445
+ return () => Y("rudderAnalyticsRemotePlugins", "./StorageEncryption").then((e) => K(e, !0));
1444
1446
  case "StorageEncryptionLegacy":
1445
- return () => Q("rudderAnalyticsRemotePlugins", "./StorageEncryptionLegacy").then((e) => Y(e, !0));
1447
+ return () => Y("rudderAnalyticsRemotePlugins", "./StorageEncryptionLegacy").then((e) => K(e, !0));
1446
1448
  case "StorageMigrator":
1447
- return () => Q("rudderAnalyticsRemotePlugins", "./StorageMigrator").then((e) => Y(e, !0));
1449
+ return () => Y("rudderAnalyticsRemotePlugins", "./StorageMigrator").then((e) => K(e, !0));
1448
1450
  case "XhrQueue":
1449
- return () => Q("rudderAnalyticsRemotePlugins", "./XhrQueue").then((e) => Y(e, !0));
1451
+ return () => Y("rudderAnalyticsRemotePlugins", "./XhrQueue").then((e) => K(e, !0));
1450
1452
  default:
1451
1453
  return;
1452
1454
  }
1453
- }, Yt = (t) => {
1455
+ }, Kt = (t) => {
1454
1456
  const e = {};
1455
1457
  return t.forEach((n) => {
1456
- if (ui.includes(n)) {
1457
- const s = eu(n);
1458
+ if (ai.includes(n)) {
1459
+ const s = Ql(n);
1458
1460
  s && (e[n] = s);
1459
1461
  }
1460
1462
  }), e;
1461
- }, di = () => ({}), tu = () => ({}), nu = (t) => (Yt == null ? void 0 : Yt(t)) || {}, Qt = { ...di(), ...tu() }, su = (t) => ({ ...nu(t) });
1462
- class iu {
1463
+ }, ui = () => ({}), Xl = () => ({}), Jl = (t) => (Kt == null ? void 0 : Kt(t)) || {}, Yt = { ...ui(), ...Xl() }, Zl = (t) => ({ ...Jl(t) });
1464
+ class eu {
1463
1465
  constructor(e, n, s) {
1464
1466
  this.engine = e, this.errorHandler = n, this.logger = s, this.onError = this.onError.bind(this);
1465
1467
  }
@@ -1475,7 +1477,7 @@ class iu {
1475
1477
  // eslint-disable-next-line class-methods-use-this
1476
1478
  attachEffects() {
1477
1479
  pe(() => {
1478
- (o.plugins.activePlugins.value.length === 0 || o.plugins.loadedPlugins.value.length + o.plugins.failedPlugins.value.length === o.plugins.totalPluginsToLoad.value) && z(() => {
1480
+ (o.plugins.activePlugins.value.length === 0 || o.plugins.loadedPlugins.value.length + o.plugins.failedPlugins.value.length === o.plugins.totalPluginsToLoad.value) && j(() => {
1479
1481
  o.plugins.ready.value = !0, o.lifecycle.status.value = "pluginsReady";
1480
1482
  });
1481
1483
  });
@@ -1488,30 +1490,30 @@ class iu {
1488
1490
  let e = o.plugins.pluginsToLoadFromConfig.value;
1489
1491
  if (!e)
1490
1492
  return [];
1491
- e = e.filter((i) => Ql.includes(i) ? (this.logger.warn(Ua(vt, i)), !1) : !0);
1492
- const n = [{ configurationStatus: () => L(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(ja), shouldAddMissingPlugins: !0 }, { configurationStatus: () => Zn(o.nativeDestinations.configuredDestinations.value).length > 0, configurationStatusStr: "Device mode destinations are connected to the source", supportedPlugins: ["DeviceModeDestinations", "NativeDestinationQueue"] }, { configurationStatus: () => Zn(o.nativeDestinations.configuredDestinations.value).some((i) => i.shouldApplyDeviceModeTransformation), configurationStatusStr: "Device mode transformations are enabled for at least one destination", supportedPlugins: ["DeviceModeTransformation"] }, { configurationStatus: () => L(o.consents.activeConsentManagerPluginName.value), configurationStatusStr: "Consent management is enabled", activePluginName: o.consents.activeConsentManagerPluginName.value, supportedPlugins: Object.values(cn) }, { configurationStatus: () => L(o.storage.encryptionPluginName.value), configurationStatusStr: "Storage encryption is enabled", activePluginName: o.storage.encryptionPluginName.value, supportedPlugins: Object.values(At) }, { configurationStatus: () => o.storage.migrate.value, configurationStatusStr: "Storage migration is enabled", supportedPlugins: ["StorageMigrator"] }], s = !1;
1493
+ e = e.filter((i) => zl.includes(i) ? (this.logger.warn(La(mt, i)), !1) : !0);
1494
+ const n = [{ configurationStatus: () => N(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(Fa), shouldAddMissingPlugins: !0 }, { configurationStatus: () => Jn(o.nativeDestinations.configuredDestinations.value).length > 0, configurationStatusStr: "Device mode destinations are connected to the source", supportedPlugins: ["DeviceModeDestinations", "NativeDestinationQueue"] }, { configurationStatus: () => Jn(o.nativeDestinations.configuredDestinations.value).some((i) => i.shouldApplyDeviceModeTransformation), configurationStatusStr: "Device mode transformations are enabled for at least one destination", supportedPlugins: ["DeviceModeTransformation"] }, { configurationStatus: () => N(o.consents.activeConsentManagerPluginName.value), configurationStatusStr: "Consent management is enabled", activePluginName: o.consents.activeConsentManagerPluginName.value, supportedPlugins: Object.values(ln) }, { configurationStatus: () => N(o.storage.encryptionPluginName.value), configurationStatusStr: "Storage encryption is enabled", activePluginName: o.storage.encryptionPluginName.value, supportedPlugins: Object.values(Tt) }, { configurationStatus: () => o.storage.migrate.value, configurationStatusStr: "Storage migration is enabled", supportedPlugins: ["StorageMigrator"] }], s = !1;
1493
1495
  return n.forEach((i) => {
1494
1496
  i.configurationStatus() ? (e = e.filter(
1495
- i.activePluginName ? (r) => !(r !== i.activePluginName && i.supportedPlugins.includes(r)) : (r) => L(r)
1497
+ i.activePluginName ? (r) => !(r !== i.activePluginName && i.supportedPlugins.includes(r)) : (r) => N(r)
1496
1498
  // pass through
1497
1499
  ), this.addMissingPlugins(i, s, e)) : e = e.filter(i.basePlugins !== void 0 ? (r) => !(i.basePlugins.includes(r) || i.supportedPlugins.includes(r)) : (r) => !i.supportedPlugins.includes(r));
1498
- }), [...Object.keys(di()), ...e];
1500
+ }), [...Object.keys(ui()), ...e];
1499
1501
  }
1500
1502
  addMissingPlugins(e, n, s) {
1501
1503
  const i = e.shouldAddMissingPlugins || n;
1502
1504
  let r;
1503
1505
  e.activePluginName ? r = [...e.basePlugins || [], e.activePluginName] : r = [...e.supportedPlugins];
1504
1506
  const a = r.filter((u) => !s.includes(u));
1505
- a.length > 0 && (i && s.push(...a), this.logger.warn(Ba(vt, e.configurationStatusStr, a, i)));
1507
+ a.length > 0 && (i && s.push(...a), this.logger.warn(wa(mt, e.configurationStatusStr, a, i)));
1506
1508
  }
1507
1509
  /**
1508
1510
  * Determine the list of plugins that should be activated
1509
1511
  */
1510
1512
  setActivePlugins() {
1511
- const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Qt), ...ui], s = [], i = [];
1513
+ const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Yt), ...ai], s = [], i = [];
1512
1514
  e.forEach((r) => {
1513
1515
  n.includes(r) ? s.push(r) : i.push(r);
1514
- }), i.length > 0 && this.logger.warn(Ha(vt, i)), z(() => {
1516
+ }), i.length > 0 && this.logger.warn(Ua(mt, i)), j(() => {
1515
1517
  o.plugins.totalPluginsToLoad.value = e.length, o.plugins.activePlugins.value = s, o.plugins.failedPlugins.value = i;
1516
1518
  });
1517
1519
  }
@@ -1519,7 +1521,7 @@ class iu {
1519
1521
  * Register plugins that are direct imports to PluginEngine
1520
1522
  */
1521
1523
  registerLocalPlugins() {
1522
- Object.values(Qt).forEach((e) => {
1524
+ Object.values(Yt).forEach((e) => {
1523
1525
  S(e) && o.plugins.activePlugins.value.includes(e().name) && this.register([e()]);
1524
1526
  });
1525
1527
  }
@@ -1527,7 +1529,7 @@ class iu {
1527
1529
  * Register plugins that are dynamic imports to PluginEngine
1528
1530
  */
1529
1531
  registerRemotePlugins() {
1530
- const e = su(o.plugins.activePlugins.value);
1532
+ const e = Zl(o.plugins.activePlugins.value);
1531
1533
  Promise.all(Object.keys(e).map(async (n) => {
1532
1534
  await e[n]().then((s) => this.register([s.default()])).catch((s) => {
1533
1535
  o.plugins.failedPlugins.value = [...o.plugins.failedPlugins.value, n], this.onError(s, n);
@@ -1570,7 +1572,7 @@ class iu {
1570
1572
  }
1571
1573
  // TODO: Implement reset API instead
1572
1574
  unregisterLocalPlugins() {
1573
- Object.values(Qt).forEach((e) => {
1575
+ Object.values(Yt).forEach((e) => {
1574
1576
  try {
1575
1577
  this.engine.unregister(e().name);
1576
1578
  } catch (n) {
@@ -1582,53 +1584,53 @@ class iu {
1582
1584
  * Handle errors
1583
1585
  */
1584
1586
  onError(e, n) {
1585
- this.errorHandler.onError(e, vt, n);
1587
+ this.errorHandler.onError(e, mt, n);
1586
1588
  }
1587
1589
  }
1588
- const X = "cookieStorage", J = "localStorage", ne = "sessionStorage", ce = "memoryStorage", we = "none", ru = "rl_user_id", ou = "rl_trait", au = "rl_anonymous_id", lu = "rl_group_id", uu = "rl_group_trait", cu = "rl_page_init_referrer", du = "rl_page_init_referring_domain", fu = "rl_session", hu = "rl_auth_token", Ve = { userId: ru, userTraits: ou, anonymousId: au, groupId: lu, groupTraits: uu, initialReferrer: cu, initialReferringDomain: du, sessionInfo: fu, authToken: hu }, gu = "test_rudder_cookie", mu = "test_rudder_ls", pu = "test_rudder_ss", vu = "__tld__", fi = "clientDataInCookie", hi = "clientDataInLocalStorage", yu = "clientDataInMemory", gi = "clientDataInSessionStorage", mi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Fe = { [X]: fi, [J]: hi, [ce]: yu, [ne]: gi }, es = (t, e) => {
1590
+ const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memoryStorage", we = "none", tu = "rl_user_id", nu = "rl_trait", su = "rl_anonymous_id", iu = "rl_group_id", ru = "rl_group_trait", ou = "rl_page_init_referrer", au = "rl_page_init_referring_domain", lu = "rl_session", uu = "rl_auth_token", Ve = { userId: tu, userTraits: nu, anonymousId: su, groupId: iu, groupTraits: ru, initialReferrer: ou, initialReferringDomain: au, sessionInfo: lu, authToken: uu }, cu = "test_rudder_cookie", du = "test_rudder_ls", fu = "test_rudder_ss", hu = "__tld__", ci = "clientDataInCookie", di = "clientDataInLocalStorage", gu = "clientDataInMemory", fi = "clientDataInSessionStorage", hi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Fe = { [W]: ci, [X]: di, [ce]: gu, [ee]: fi }, Zn = (t, e) => {
1589
1591
  try {
1590
1592
  return encodeURIComponent(t);
1591
1593
  } catch (n) {
1592
- e == null || e.error(co, n);
1594
+ e == null || e.error(oo, n);
1593
1595
  return;
1594
1596
  }
1595
- }, ts = (t) => {
1597
+ }, es = (t) => {
1596
1598
  try {
1597
1599
  return decodeURIComponent(t);
1598
1600
  } catch {
1599
1601
  return;
1600
1602
  }
1601
- }, bu = (t) => {
1603
+ }, mu = (t) => {
1602
1604
  const e = {}, n = t.split(/\s*;\s*/);
1603
1605
  let s;
1604
1606
  return n[0] && n.forEach((i) => {
1605
1607
  s = i.split("=");
1606
- const r = s[0] ? ts(s[0]) : void 0;
1607
- r && (e[r] = s[1] ? ts(s[1]) : void 0);
1608
+ const r = s[0] ? es(s[0]) : void 0;
1609
+ r && (e[r] = s[1] ? es(s[1]) : void 0);
1608
1610
  }), e;
1609
- }, Eu = (t, e, n, s) => {
1611
+ }, pu = (t, e, n, s) => {
1610
1612
  const i = { ...n || {} };
1611
- let r = `${es(t, s)}=${es(e, s)}`;
1612
- ie(e) && (i.maxage = -1), i.maxage && (i.expires = new Date(+/* @__PURE__ */ new Date() + i.maxage)), i.path && (r += `; path=${i.path}`), i.domain && (r += `; domain=${i.domain}`), i.expires && (r += `; expires=${i.expires.toUTCString()}`), i.samesite && (r += `; samesite=${i.samesite}`), i.secure && (r += "; secure"), globalThis.document.cookie = r;
1613
- }, dn = () => {
1613
+ let r = `${Zn(t, s)}=${Zn(e, s)}`;
1614
+ ne(e) && (i.maxage = -1), i.maxage && (i.expires = new Date(+/* @__PURE__ */ new Date() + i.maxage)), i.path && (r += `; path=${i.path}`), i.domain && (r += `; domain=${i.domain}`), i.expires && (r += `; expires=${i.expires.toUTCString()}`), i.samesite && (r += `; samesite=${i.samesite}`), i.secure && (r += "; secure"), globalThis.document.cookie = r;
1615
+ }, un = () => {
1614
1616
  const t = globalThis.document.cookie;
1615
- return bu(t);
1616
- }, Su = (t) => dn()[t], Se = function(t, e, n, s) {
1617
+ return mu(t);
1618
+ }, vu = (t) => un()[t], Se = function(t, e, n, s) {
1617
1619
  switch (arguments.length) {
1618
1620
  case 4:
1619
1621
  case 3:
1620
1622
  case 2:
1621
- return Eu(t, e, n, s);
1623
+ return pu(t, e, n, s);
1622
1624
  case 1:
1623
- return t ? Su(t) : dn();
1625
+ return t ? vu(t) : un();
1624
1626
  default:
1625
- return dn();
1627
+ return un();
1626
1628
  }
1627
- }, ku = (t) => {
1629
+ }, yu = (t) => {
1628
1630
  const e = document.createElement("a");
1629
1631
  return e.href = t, e.hostname;
1630
- }, Ru = (t) => {
1631
- const e = typeof globalThis.URL != "function" ? ku(t) : new URL(t).hostname, n = (e == null ? void 0 : e.split(".")) ?? [], s = n[n.length - 1], i = [];
1632
+ }, bu = (t) => {
1633
+ const e = typeof globalThis.URL != "function" ? yu(t) : new URL(t).hostname, n = (e == null ? void 0 : e.split(".")) ?? [], s = n[n.length - 1], i = [];
1632
1634
  if (n.length === 4 && s && s === parseInt(s, 10).toString())
1633
1635
  return i;
1634
1636
  if (n.length <= 1)
@@ -1636,24 +1638,24 @@ const X = "cookieStorage", J = "localStorage", ne = "sessionStorage", ce = "memo
1636
1638
  for (let r = n.length - 2; r >= 0; r -= 1)
1637
1639
  i.push(n.slice(r).join("."));
1638
1640
  return i;
1639
- }, Ou = (t) => {
1640
- const e = Ru(t);
1641
+ }, Eu = (t) => {
1642
+ const e = bu(t);
1641
1643
  for (let n = 0; n < e.length; n += 1) {
1642
- const s = e[n], i = vu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
1644
+ const s = e[n], i = hu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
1643
1645
  if (Se(i, 1, r), Se(i))
1644
1646
  return Se(i, null, r), s;
1645
1647
  }
1646
1648
  return "";
1647
- }, Iu = () => {
1648
- const t = `.${Ou(globalThis.location.href)}`;
1649
- return { maxage: Ro, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
1650
- }, Tu = () => ({ enabled: !0 }), Au = () => ({ enabled: !0 }), Du = () => ({ enabled: !0 });
1651
- class Cu {
1649
+ }, Su = () => {
1650
+ const t = `.${Eu(globalThis.location.href)}`;
1651
+ return { maxage: bo, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
1652
+ }, ku = () => ({ enabled: !0 }), Ru = () => ({ enabled: !0 }), Iu = () => ({ enabled: !0 });
1653
+ class Tu {
1652
1654
  constructor(e) {
1653
1655
  P(this, "isEnabled", !0);
1654
1656
  P(this, "length", 0);
1655
1657
  P(this, "data", {});
1656
- this.options = Du(), this.logger = e;
1658
+ this.options = Iu(), this.logger = e;
1657
1659
  }
1658
1660
  configure(e) {
1659
1661
  return this.options = H(this.options, e ?? {}), this.isEnabled = !!this.options.enabled, this.options;
@@ -1677,13 +1679,13 @@ class Cu {
1677
1679
  return Object.keys(this.data);
1678
1680
  }
1679
1681
  }
1680
- const Bt = new Cu(ve);
1681
- var Pt = { exports: {} }, _u = Pt.exports, ns;
1682
- function Pu() {
1683
- return ns || (ns = 1, function(t, e) {
1682
+ const $t = new Tu(ve);
1683
+ var Ct = { exports: {} }, Ou = Ct.exports, ts;
1684
+ function Au() {
1685
+ return ts || (ts = 1, function(t, e) {
1684
1686
  (function(n, s) {
1685
1687
  t.exports = s();
1686
- })(_u, function() {
1688
+ })(Ou, function() {
1687
1689
  function n(g) {
1688
1690
  return g = JSON.stringify(g), !!/^\{[\s\S]*\}$/.test(g);
1689
1691
  }
@@ -1738,8 +1740,8 @@ function Pu() {
1738
1740
  }, get: function(f) {
1739
1741
  if (f === void 0) {
1740
1742
  var m = {};
1741
- return this.forEach(function(x, Z) {
1742
- return m[x] = Z;
1743
+ return this.forEach(function(x, J) {
1744
+ return m[x] = J;
1743
1745
  }), m;
1744
1746
  }
1745
1747
  if (f.charAt(0) === "?")
@@ -1747,8 +1749,8 @@ function Pu() {
1747
1749
  var v = arguments;
1748
1750
  if (v.length > 1) {
1749
1751
  for (var k = {}, E = 0, _ = v.length; E < _; E++) {
1750
- var W = i(l.getItem(v[E]));
1751
- this.has(v[E]) && (k[v[E]] = W);
1752
+ var z = i(l.getItem(v[E]));
1753
+ this.has(v[E]) && (k[v[E]] = z);
1752
1754
  }
1753
1755
  return k;
1754
1756
  }
@@ -1799,10 +1801,10 @@ function Pu() {
1799
1801
  for (var y in c.prototype) h[y] = c.prototype[y];
1800
1802
  return h;
1801
1803
  });
1802
- }(Pt)), Pt.exports;
1804
+ }(Ct)), Ct.exports;
1803
1805
  }
1804
- var Nu = Pu();
1805
- const Ae = /* @__PURE__ */ ri(Nu), Lu = (t) => {
1806
+ var Du = Au();
1807
+ const Ae = /* @__PURE__ */ si(Du), Cu = (t) => {
1806
1808
  const e = new URL(o.lifecycle.sourceConfigUrl.value), n = `${e.origin}${e.pathname}?view=ad`;
1807
1809
  t.getAsyncData({ url: n, options: {
1808
1810
  // We actually don't need the response from the request, so we are using HEAD
@@ -1812,17 +1814,17 @@ const Ae = /* @__PURE__ */ ri(Nu), Lu = (t) => {
1812
1814
  var r;
1813
1815
  o.capabilities.isAdBlocked.value = (i == null ? void 0 : i.error) !== void 0 || ((r = i == null ? void 0 : i.xhr) == null ? void 0 : r.responseURL) !== n;
1814
1816
  } });
1815
- }, wu = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), ss = () => !le(globalThis.navigator.userAgentData), Mu = () => !le(globalThis.navigator.sendBeacon) && S(globalThis.navigator.sendBeacon), $u = () => !!globalThis.navigator.userAgent.match(/Trident.*rv:11\./), Uu = (t, e = "none") => {
1817
+ }, _u = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues), ns = () => !le(globalThis.navigator.userAgentData), Pu = () => !le(globalThis.navigator.sendBeacon) && S(globalThis.navigator.sendBeacon), Nu = () => !!globalThis.navigator.userAgent.match(/Trident.*rv:11\./), Lu = (t, e = "none") => {
1816
1818
  var n;
1817
1819
  e === "none" && t(void 0), e === "default" && t(navigator.userAgentData), e === "full" && ((n = navigator.userAgentData) == null || n.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion", "fullVersionList", "wow64"]).then((s) => {
1818
1820
  t(s);
1819
1821
  }).catch(() => {
1820
1822
  t();
1821
1823
  }));
1822
- }, Bu = () => {
1824
+ }, wu = () => {
1823
1825
  const t = globalThis.document.createElement("div");
1824
1826
  return t.setAttribute("data-a-b", "c"), t.dataset ? t.dataset.aB === "c" : !1;
1825
- }, fn = {
1827
+ }, cn = {
1826
1828
  // Ideally, we should separate the checks for URL and URLSearchParams but
1827
1829
  // the polyfill service serves them under the same feature name, "URL".
1828
1830
  URL: () => !S(globalThis.URL) || !S(globalThis.URLSearchParams),
@@ -1841,7 +1843,7 @@ const Ae = /* @__PURE__ */ ri(Nu), Lu = (t) => {
1841
1843
  "Object.values": () => !S(globalThis.Object.values),
1842
1844
  "Object.assign": () => !S(globalThis.Object.assign),
1843
1845
  "Object.fromEntries": () => !S(globalThis.Object.fromEntries),
1844
- "Element.prototype.dataset": () => !Bu(),
1846
+ "Element.prototype.dataset": () => !wu(),
1845
1847
  // Ideally, we should separate the checks for TextEncoder and TextDecoder but
1846
1848
  // the polyfill service serves them under the same feature name, "TextEncoder".
1847
1849
  TextEncoder: () => !S(globalThis.TextEncoder) || !S(globalThis.TextDecoder),
@@ -1852,39 +1854,39 @@ const Ae = /* @__PURE__ */ ri(Nu), Lu = (t) => {
1852
1854
  ArrayBuffer: () => !S(globalThis.Uint8Array),
1853
1855
  Set: () => !S(globalThis.Set),
1854
1856
  atob: () => !S(globalThis.atob)
1855
- }, Vu = () => {
1856
- const t = Object.keys(fn);
1857
+ }, Mu = () => {
1858
+ const t = Object.keys(cn);
1857
1859
  let e = !1;
1858
1860
  for (let n = 0; n < t.length; n++) {
1859
- const s = fn[t[n]];
1861
+ const s = cn[t[n]];
1860
1862
  if (S(s) && s()) {
1861
1863
  e = !0;
1862
1864
  break;
1863
1865
  }
1864
1866
  }
1865
1867
  return e;
1866
- }, is = () => {
1868
+ }, ss = () => {
1867
1869
  let t = { density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 };
1868
1870
  return t = { width: globalThis.screen.width, height: globalThis.screen.height, density: globalThis.devicePixelRatio, innerWidth: globalThis.innerWidth, innerHeight: globalThis.innerHeight }, t;
1869
- }, pi = (t) => {
1871
+ }, gi = (t) => {
1870
1872
  const e = ["QuotaExceededError", "NS_ERROR_DOM_QUOTA_REACHED"], n = [22, 1014], s = e.includes(t.name) || n.includes(t.code);
1871
1873
  return t instanceof DOMException && s;
1872
- }, Ge = (t = J, e, n) => {
1874
+ }, Ge = (t = X, e, n) => {
1873
1875
  let s, i;
1874
- const r = oa(on, t);
1876
+ const r = na(sn, t);
1875
1877
  let a = "unavailable", u = !0, l;
1876
1878
  try {
1877
1879
  switch (t) {
1878
1880
  case ce:
1879
1881
  return !0;
1880
- case X:
1881
- s = e, i = gu;
1882
+ case W:
1883
+ s = e, i = cu;
1882
1884
  break;
1883
- case J:
1884
- s = e ?? globalThis.localStorage, i = mu;
1885
+ case X:
1886
+ s = e ?? globalThis.localStorage, i = du;
1885
1887
  break;
1886
- case ne:
1887
- s = e ?? globalThis.sessionStorage, i = pu;
1888
+ case ee:
1889
+ s = e ?? globalThis.sessionStorage, i = fu;
1888
1890
  break;
1889
1891
  default:
1890
1892
  return !1;
@@ -1893,19 +1895,19 @@ const Ae = /* @__PURE__ */ ri(Nu), Lu = (t) => {
1893
1895
  return s.removeItem(i), !0;
1894
1896
  u = !1;
1895
1897
  } catch (c) {
1896
- u = !1, l = c, pi(c) && (a = "full");
1898
+ u = !1, l = c, gi(c) && (a = "full");
1897
1899
  }
1898
1900
  return u || n == null || n.warn(`${r}${a}.`, l), !1;
1899
1901
  };
1900
- class Fu {
1902
+ class $u {
1901
1903
  constructor(e) {
1902
1904
  P(this, "isSupportAvailable", !0);
1903
1905
  P(this, "isEnabled", !0);
1904
1906
  P(this, "length", 0);
1905
- this.options = Tu(), this.logger = e;
1907
+ this.options = ku(), this.logger = e;
1906
1908
  }
1907
1909
  configure(e) {
1908
- return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(J), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1910
+ return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(X), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1909
1911
  }
1910
1912
  setItem(e, n) {
1911
1913
  Ae.set(e, n), this.length = Ae.len();
@@ -1929,16 +1931,16 @@ class Fu {
1929
1931
  return Ae.keys();
1930
1932
  }
1931
1933
  }
1932
- const Tn = new Fu(ve);
1933
- class Hu {
1934
+ const Tn = new $u(ve);
1935
+ class Uu {
1934
1936
  constructor(e) {
1935
1937
  P(this, "isSupportAvailable", !0);
1936
1938
  P(this, "isEnabled", !0);
1937
1939
  P(this, "length", 0);
1938
- this.options = Au(), this.logger = e;
1940
+ this.options = Ru(), this.logger = e;
1939
1941
  }
1940
1942
  configure(e) {
1941
- return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(ne), this.isSupportAvailable && (this.store = globalThis.sessionStorage), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1943
+ return this.options = H(this.options, e ?? {}), this.isSupportAvailable = Ge(ee), this.isSupportAvailable && (this.store = globalThis.sessionStorage), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1942
1944
  }
1943
1945
  setItem(e, n) {
1944
1946
  this.store && (this.store.setItem(e, n), this.length = this.store.length);
@@ -1971,8 +1973,8 @@ class Hu {
1971
1973
  return e;
1972
1974
  }
1973
1975
  }
1974
- const An = new Hu(ve);
1975
- class xu {
1976
+ const On = new Uu(ve);
1977
+ class Bu {
1976
1978
  constructor(e) {
1977
1979
  P(this, "isSupportAvailable", !0);
1978
1980
  P(this, "isEnabled", !0);
@@ -1980,7 +1982,7 @@ class xu {
1980
1982
  this.logger = e;
1981
1983
  }
1982
1984
  configure(e) {
1983
- return this.options || (this.options = Iu()), this.options = H(this.options, e ?? {}), this.options.sameDomainCookiesOnly && delete this.options.domain, this.isSupportAvailable = Ge(X, this), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1985
+ return this.options || (this.options = Su()), this.options = H(this.options, e ?? {}), this.options.sameDomainCookiesOnly && delete this.options.domain, this.isSupportAvailable = Ge(W, this), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
1984
1986
  }
1985
1987
  setItem(e, n) {
1986
1988
  return Se(e, n, this.options, this.logger), this.length = Object.keys(Se()).length, !0;
@@ -2005,32 +2007,32 @@ class xu {
2005
2007
  return Object.keys(Se());
2006
2008
  }
2007
2009
  }
2008
- const Dn = new xu(ve), oe = (t) => {
2010
+ const An = new Bu(ve), ie = (t) => {
2009
2011
  switch (t) {
2010
- case J:
2012
+ case X:
2011
2013
  return Tn;
2012
- case ne:
2013
- return An;
2014
+ case ee:
2015
+ return On;
2014
2016
  case ce:
2015
- return Bt;
2016
- case X:
2017
- return Dn;
2017
+ return $t;
2018
+ case W:
2019
+ return An;
2018
2020
  default:
2019
- return Bt;
2021
+ return $t;
2020
2022
  }
2021
- }, Gu = (t) => {
2022
- const e = Dn.configure(t);
2023
+ }, Vu = (t) => {
2024
+ const e = An.configure(t);
2023
2025
  o.storage.cookie.value = { maxage: e.maxage, path: e.path, domain: e.domain, samesite: e.samesite, expires: e.expires, secure: e.secure };
2024
- }, ju = (t) => {
2026
+ }, Fu = (t) => {
2025
2027
  Tn.configure(t);
2026
- }, qu = (t) => {
2027
- Bt.configure(t);
2028
- }, zu = (t) => {
2029
- An.configure(t);
2030
- }, Ku = (t = {}, e = {}, n = {}, s = {}) => {
2031
- Gu(t), ju(e), qu(n), zu(s);
2028
+ }, Hu = (t) => {
2029
+ $t.configure(t);
2030
+ }, xu = (t) => {
2031
+ On.configure(t);
2032
+ }, Gu = (t = {}, e = {}, n = {}, s = {}) => {
2033
+ Vu(t), Fu(e), Hu(n), xu(s);
2032
2034
  };
2033
- class Wu {
2035
+ class ju {
2034
2036
  constructor(e, n, s) {
2035
2037
  this.id = e.id, this.name = e.name, this.isEncrypted = e.isEncrypted ?? !1, this.validKeys = e.validKeys ?? {}, this.engine = n, this.noKeyValidation = Object.keys(this.validKeys).length === 0, this.noCompoundKey = e.noCompoundKey, this.originalEngine = this.engine, this.errorHandler = e.errorHandler, this.logger = e.logger, this.pluginsManager = s;
2036
2038
  }
@@ -2050,7 +2052,7 @@ class Wu {
2050
2052
  * Switch to inMemoryEngine, bringing any existing data with.
2051
2053
  */
2052
2054
  swapQueueStoreToInMemoryEngine() {
2053
- const { name: e, id: n, validKeys: s, noCompoundKey: i } = this, r = oe(ce);
2055
+ const { name: e, id: n, validKeys: s, noCompoundKey: i } = this, r = ie(ce);
2054
2056
  Object.keys(s).forEach((a) => {
2055
2057
  const u = this.get(s[a]), l = i ? a : [e, n, a].join(".");
2056
2058
  r.setItem(l, u), this.remove(a);
@@ -2065,7 +2067,7 @@ class Wu {
2065
2067
  try {
2066
2068
  this.engine.setItem(s, this.encrypt(de(n, !1, [], this.logger)));
2067
2069
  } catch (i) {
2068
- pi(i) ? (this.logger.warn(_a(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n)) : this.onError(ht(i, fa(e)));
2070
+ gi(i) ? (this.logger.warn(Oa(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n)) : this.onError(dt(i, la(e)));
2069
2071
  }
2070
2072
  }
2071
2073
  /**
@@ -2077,7 +2079,7 @@ class Wu {
2077
2079
  try {
2078
2080
  return !n || (s = this.decrypt(this.engine.getItem(n)), le(s)) ? null : JSON.parse(s);
2079
2081
  } catch (i) {
2080
- return this.onError(new Error(`${ha(e)}: ${i.message}`)), null;
2082
+ return this.onError(new Error(`${ua(e)}: ${i.message}`)), null;
2081
2083
  }
2082
2084
  }
2083
2085
  /**
@@ -2109,7 +2111,7 @@ class Wu {
2109
2111
  * Extension point to use with encryption plugins
2110
2112
  */
2111
2113
  crypto(e, n) {
2112
- if (!this.isEncrypted || !e || typeof e != "string" || zr(e) === "")
2114
+ if (!this.isEncrypted || !e || typeof e != "string" || xr(e) === "")
2113
2115
  return e;
2114
2116
  const i = `storage.${n}`, r = this.pluginsManager ? this.pluginsManager.invokeSingle(i, e) : e;
2115
2117
  return typeof r > "u" ? e : r ?? "";
@@ -2121,7 +2123,7 @@ class Wu {
2121
2123
  this.errorHandler.onError(e, `Store ${this.id}`);
2122
2124
  }
2123
2125
  }
2124
- const Yu = (t, e) => {
2126
+ const qu = (t, e) => {
2125
2127
  var s;
2126
2128
  let n;
2127
2129
  if (t.consents.preConsent.value.enabled)
@@ -2138,7 +2140,7 @@ const Yu = (t, e) => {
2138
2140
  }
2139
2141
  return n;
2140
2142
  };
2141
- class Qu {
2143
+ class zu {
2142
2144
  constructor(e, n, s) {
2143
2145
  P(this, "stores", {});
2144
2146
  P(this, "isInitialized", !1);
@@ -2152,28 +2154,28 @@ class Qu {
2152
2154
  if (this.isInitialized)
2153
2155
  return;
2154
2156
  const e = o.loadOptions.value, n = { cookieStorageOptions: { samesite: e.sameSiteCookie, secure: e.secureCookie, domain: e.setCookieDomain, sameDomainCookiesOnly: e.sameDomainCookiesOnly }, localStorageOptions: {}, inMemoryStorageOptions: {}, sessionStorageOptions: {} };
2155
- Ku(et(H(n.cookieStorageOptions ?? {}, ((s = o.storage.cookie) == null ? void 0 : s.value) ?? {})), et(n.localStorageOptions), et(n.inMemoryStorageOptions), et(n.sessionStorageOptions)), this.initClientDataStores(), this.isInitialized = !0;
2157
+ Gu(et(H(n.cookieStorageOptions ?? {}, ((s = o.storage.cookie) == null ? void 0 : s.value) ?? {})), et(n.localStorageOptions), et(n.inMemoryStorageOptions), et(n.sessionStorageOptions)), this.initClientDataStores(), this.isInitialized = !0;
2156
2158
  }
2157
2159
  /**
2158
2160
  * Create store to persist data used by the SDK like session, used details etc
2159
2161
  */
2160
2162
  initClientDataStores() {
2161
- this.initializeStorageState(), [ce, J, X, ne].forEach((n) => {
2163
+ this.initializeStorageState(), [ce, X, W, ee].forEach((n) => {
2162
2164
  var s;
2163
- (s = oe(n)) != null && s.isEnabled && this.setStore({ id: Fe[n], name: Fe[n], isEncrypted: !0, noCompoundKey: !0, type: n, errorHandler: this.errorHandler, logger: this.logger });
2165
+ (s = ie(n)) != null && s.isEnabled && this.setStore({ id: Fe[n], name: Fe[n], isEncrypted: !0, noCompoundKey: !0, type: n, errorHandler: this.errorHandler, logger: this.logger });
2164
2166
  });
2165
2167
  }
2166
2168
  initializeStorageState() {
2167
2169
  var a;
2168
2170
  let e = o.storage.type.value, n = (a = o.loadOptions.value.storage) == null ? void 0 : a.entries;
2169
2171
  const s = o.consents.postConsent.value.storage;
2170
- (L(s == null ? void 0 : s.type) || L(s == null ? void 0 : s.entries)) && (e = s == null ? void 0 : s.type, n = s == null ? void 0 : s.entries);
2172
+ (N(s == null ? void 0 : s.type) || N(s == null ? void 0 : s.entries)) && (e = s == null ? void 0 : s.type, n = s == null ? void 0 : s.entries);
2171
2173
  let i = !0, r = {};
2172
- mi.forEach((u) => {
2174
+ hi.forEach((u) => {
2173
2175
  var f;
2174
- const l = u, c = u, d = (f = n == null ? void 0 : n[l]) == null ? void 0 : f.type, y = Yu(o, u) ?? d ?? e ?? un, g = this.getResolvedStorageTypeForEntry(y, u);
2176
+ const l = u, c = u, d = (f = n == null ? void 0 : n[l]) == null ? void 0 : f.type, y = qu(o, u) ?? d ?? e ?? an, g = this.getResolvedStorageTypeForEntry(y, u);
2175
2177
  g !== we && (i = !1), r = { ...r, [u]: { type: g, key: Ve[c] } };
2176
- }), z(() => {
2178
+ }), j(() => {
2177
2179
  o.storage.type.value = e, o.storage.entries.value = r, o.storage.trulyAnonymousTracking.value = i;
2178
2180
  });
2179
2181
  }
@@ -2181,28 +2183,28 @@ class Qu {
2181
2183
  var i, r, a, u, l;
2182
2184
  let s = e;
2183
2185
  switch (e) {
2184
- case J:
2185
- (i = oe(J)) != null && i.isEnabled || (s = ce);
2186
+ case X:
2187
+ (i = ie(X)) != null && i.isEnabled || (s = ce);
2186
2188
  break;
2187
- case ne:
2188
- (r = oe(ne)) != null && r.isEnabled || (s = ce);
2189
+ case ee:
2190
+ (r = ie(ee)) != null && r.isEnabled || (s = ce);
2189
2191
  break;
2190
2192
  case ce:
2191
2193
  case we:
2192
2194
  break;
2193
- case X:
2195
+ case W:
2194
2196
  default:
2195
- (a = oe(X)) != null && a.isEnabled ? s = X : (u = oe(J)) != null && u.isEnabled ? s = J : (l = oe(ne)) != null && l.isEnabled ? s = ne : s = ce;
2197
+ (a = ie(W)) != null && a.isEnabled ? s = W : (u = ie(X)) != null && u.isEnabled ? s = X : (l = ie(ee)) != null && l.isEnabled ? s = ee : s = ce;
2196
2198
  break;
2197
2199
  }
2198
- return s !== e && this.logger.warn(Pa(Yr, n, e, s)), s;
2200
+ return s !== e && this.logger.warn(Aa(qr, n, e, s)), s;
2199
2201
  }
2200
2202
  /**
2201
2203
  * Create a new store
2202
2204
  */
2203
2205
  setStore(e) {
2204
- const n = oe(e.type);
2205
- return this.stores[e.id] = new Wu(e, n, this.pluginsManager), this.stores[e.id];
2206
+ const n = ie(e.type);
2207
+ return this.stores[e.id] = new ju(e, n, this.pluginsManager), this.stores[e.id];
2206
2208
  }
2207
2209
  /**
2208
2210
  * Retrieve a store
@@ -2211,31 +2213,31 @@ class Qu {
2211
2213
  return this.stores[e];
2212
2214
  }
2213
2215
  }
2214
- const Xu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config) && Array.isArray(t.source.destinations), Ju = (t) => typeof t == "string" && Js.includes(t), vi = (t) => {
2216
+ const Ku = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config) && Array.isArray(t.source.destinations), Yu = (t) => typeof t == "string" && Qs.includes(t), mi = (t) => {
2215
2217
  const e = new URL(t), { host: n, protocol: s } = e, i = n.split(".");
2216
2218
  let r;
2217
2219
  return i.length > 2 ? r = `${i[i.length - 2]}.${i[i.length - 1]}` : r = n, { topDomain: r, protocol: s };
2218
- }, Zu = (t) => {
2219
- const { topDomain: e, protocol: n } = vi(t);
2220
+ }, Wu = (t) => {
2221
+ const { topDomain: e, protocol: n } = mi(t);
2220
2222
  return `${n}//${e}`;
2221
- }, ec = (t, e) => {
2222
- const n = e ? window.location.origin : Zu(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
2223
+ }, Qu = (t, e) => {
2224
+ const n = e ? window.location.origin : Wu(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
2223
2225
  return `${n}/${s}`;
2224
- }, tc = (t) => {
2225
- const { topDomain: e } = vi(window.location.href);
2226
+ }, Xu = (t) => {
2227
+ const { topDomain: e } = mi(window.location.href);
2226
2228
  return e === t;
2227
- }, nc = (t) => {
2229
+ }, Ju = (t) => {
2228
2230
  const e = [];
2229
2231
  return t.forEach((n) => {
2230
2232
  n.enabled && !n.deleted && e.push({ id: n.id, displayName: n.destinationDefinition.displayName, config: n.config, shouldApplyDeviceModeTransformation: n.shouldApplyDeviceModeTransformation || !1, propagateEventsUntransformedOnError: n.propagateEventsUntransformedOnError || !1, userFriendlyId: `${n.destinationDefinition.displayName.replaceAll(" ", "-")}___${n.id}` });
2231
2233
  }), e;
2232
- }, ze = (t) => t != null && t.endsWith("/") ? ze(t.substring(0, t.length - 1)) : t, hn = (t) => {
2234
+ }, ze = (t) => t != null && t.endsWith("/") ? ze(t.substring(0, t.length - 1)) : t, dn = (t) => {
2233
2235
  try {
2234
2236
  return new URL(t).host;
2235
2237
  } catch {
2236
2238
  return null;
2237
2239
  }
2238
- }, yi = (t) => hn(t) ?? "", sc = (t) => {
2240
+ }, pi = (t) => dn(t) ?? "", Zu = (t) => {
2239
2241
  const e = {};
2240
2242
  try {
2241
2243
  const n = new URL(t), s = "utm_";
@@ -2248,7 +2250,7 @@ const Xu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2248
2250
  } catch {
2249
2251
  }
2250
2252
  return e;
2251
- }, ic = (t) => {
2253
+ }, ec = (t) => {
2252
2254
  let e = t;
2253
2255
  try {
2254
2256
  const n = new URL(t);
@@ -2256,40 +2258,40 @@ const Xu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2256
2258
  } catch {
2257
2259
  }
2258
2260
  return e;
2259
- }, rc = (t) => t.replace(/\/{2,}/g, "/"), Ke = (t) => {
2261
+ }, tc = (t) => t.replace(/\/{2,}/g, "/"), Ke = (t) => {
2260
2262
  if (!B(t))
2261
2263
  return !1;
2262
2264
  try {
2263
- return S(globalThis.URL) && new URL(t), xa.test(t);
2265
+ return S(globalThis.URL) && new URL(t), Ba.test(t);
2264
2266
  } catch {
2265
2267
  return !1;
2266
2268
  }
2267
- }, oc = () => {
2269
+ }, nc = () => {
2268
2270
  var t, e;
2269
2271
  return !!((e = (t = window.chrome) == null ? void 0 : t.runtime) != null && e.id);
2270
- }, Xt = "none", Jt = "immediate", ac = (t) => {
2272
+ }, Wt = "none", Qt = "immediate", sc = (t) => {
2271
2273
  var e, n;
2272
2274
  return ((n = (e = t == null ? void 0 : t.statsCollection) == null ? void 0 : e.errors) == null ? void 0 : n.enabled) === !0;
2273
- }, lc = (t) => {
2275
+ }, ic = (t) => {
2274
2276
  var e, n;
2275
2277
  return ((n = (e = t == null ? void 0 : t.statsCollection) == null ? void 0 : e.metrics) == null ? void 0 : n.enabled) === !0;
2276
- }, uc = (t) => {
2278
+ }, rc = (t) => {
2277
2279
  const e = { sendPageEvent: !1, trackConsent: !1, discardPreConsentEvents: !1 };
2278
- if (M(t)) {
2279
- const n = I(t);
2280
- e.storage = n.storage, Oe(n.integrations) && (e.integrations = n.integrations), e.discardPreConsentEvents = n.discardPreConsentEvents === !0, e.sendPageEvent = n.sendPageEvent === !0, e.trackConsent = n.trackConsent === !0, Oe(n.consentManagement) && (e.consentManagement = H(n.consentManagement, { enabled: o.consents.enabled.value }));
2280
+ if (w(t)) {
2281
+ const n = T(t);
2282
+ e.storage = n.storage, Ie(n.integrations) && (e.integrations = n.integrations), e.discardPreConsentEvents = n.discardPreConsentEvents === !0, e.sendPageEvent = n.sendPageEvent === !0, e.trackConsent = n.trackConsent === !0, Ie(n.consentManagement) && (e.consentManagement = H(n.consentManagement, { enabled: o.consents.enabled.value }));
2281
2283
  }
2282
2284
  return e;
2283
- }, rs = (t) => Oe(t) || Array.isArray(t), cc = (t, e) => {
2285
+ }, is = (t) => Ie(t) || Array.isArray(t), oc = (t, e) => {
2284
2286
  let { provider: n } = t;
2285
- const s = n ? cn[n] : void 0;
2286
- return n && !s && (e.error(Qo(se, n, cn)), n = void 0), { provider: n, consentManagerPluginName: s };
2287
- }, bi = (t, e) => {
2287
+ const s = n ? ln[n] : void 0;
2288
+ return n && !s && (e.error(zo(te, n, ln)), n = void 0), { provider: n, consentManagerPluginName: s };
2289
+ }, vi = (t, e) => {
2288
2290
  let n, s = [], i = [], r = !1, a, u = (t == null ? void 0 : t.enabled) === !0;
2289
- Oe(t) && u && ({ provider: a, consentManagerPluginName: n } = cc(t, e), rs(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), rs(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
2291
+ Ie(t) && u && ({ provider: a, consentManagerPluginName: n } = oc(t, e), is(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), is(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
2290
2292
  const l = { allowedConsentIds: s, deniedConsentIds: i };
2291
2293
  return u = u && !!n, { provider: a, consentManagerPluginName: n, initialized: r, enabled: u, consentsData: l };
2292
- }, dc = () => {
2294
+ }, ac = () => {
2293
2295
  const t = document.querySelector("script[data-rsa-write-key]");
2294
2296
  if (t && t.dataset.rsaWriteKey === o.lifecycle.writeKey.value)
2295
2297
  return t.src;
@@ -2299,45 +2301,45 @@ const Xu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2299
2301
  if (i && n.test(i))
2300
2302
  return i;
2301
2303
  }
2302
- }, fc = (t) => {
2303
- o.reporting.isErrorReportingEnabled.value = ac(t.source.config) && !oc(), o.reporting.isMetricsReportingEnabled.value = lc(t.source.config);
2304
- }, hc = (t) => {
2304
+ }, lc = (t) => {
2305
+ o.reporting.isErrorReportingEnabled.value = sc(t.source.config) && !nc(), o.reporting.isMetricsReportingEnabled.value = ic(t.source.config);
2306
+ }, uc = (t) => {
2305
2307
  const { useServerSideCookies: e, dataServiceEndpoint: n, storage: s, setCookieDomain: i, sameDomainCookiesOnly: r } = o.loadOptions.value;
2306
2308
  let a = s == null ? void 0 : s.cookie, u = !1, l;
2307
2309
  if (e) {
2308
2310
  u = e;
2309
- const c = a.domain ?? i, d = L(c) && !tc(Nn(c)) || r, h = ec(n ?? qa, d);
2311
+ const c = a.domain ?? i, d = N(c) && !Xu(Pn(c)) || r, h = Qu(n ?? Ha, d);
2310
2312
  if (Ke(h)) {
2311
2313
  l = ze(h);
2312
- const y = hn(window.location.href), g = hn(h);
2313
- y !== g && (a = { ...a, samesite: "None", secure: !0 }), !r && d && g !== Nn(c) && (u = !1, t.warn(Ea(se, c, g)));
2314
+ const y = dn(window.location.href), g = dn(h);
2315
+ y !== g && (a = { ...a, samesite: "None", secure: !0 }), !r && d && g !== Pn(c) && (u = !1, t.warn(pa(te, c, g)));
2314
2316
  } else
2315
2317
  u = !1;
2316
2318
  }
2317
2319
  return { sscEnabled: u, cookieOptions: a, finalDataServiceUrl: l };
2318
- }, gc = (t) => {
2320
+ }, cc = (t) => {
2319
2321
  var d;
2320
2322
  const { storage: e } = o.loadOptions.value;
2321
2323
  let n = e == null ? void 0 : e.type;
2322
- L(n) && !Ju(n) && (t.warn(va(se, n, un)), n = un);
2324
+ N(n) && !Yu(n) && (t.warn(ha(te, n, an)), n = an);
2323
2325
  let s = (d = e == null ? void 0 : e.encryption) == null ? void 0 : d.version;
2324
- const i = s && At[s];
2325
- !G(s) && G(i) ? (t.warn(ya(se, s, At, Ce)), s = Ce) : G(s) && (s = Ce);
2326
+ const i = s && Tt[s];
2327
+ !G(s) && G(i) ? (t.warn(ga(te, s, Tt, Ce)), s = Ce) : G(s) && (s = Ce);
2326
2328
  const r = e == null ? void 0 : e.migrate, a = r && s === Ce;
2327
- r === !0 && a !== r && t.warn(ba(se, s, Ce));
2328
- const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = hc(t);
2329
- z(() => {
2330
- o.storage.type.value = n, o.storage.cookie.value = c, o.serverCookies.isEnabledServerSideCookies.value = u, o.serverCookies.dataServiceUrl.value = l, o.storage.encryptionPluginName.value = At[s], o.storage.migrate.value = a;
2329
+ r === !0 && a !== r && t.warn(ma(te, s, Ce));
2330
+ const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = uc(t);
2331
+ j(() => {
2332
+ o.storage.type.value = n, o.storage.cookie.value = c, o.serverCookies.isEnabledServerSideCookies.value = u, o.serverCookies.dataServiceUrl.value = l, o.storage.encryptionPluginName.value = Tt[s], o.storage.migrate.value = a;
2331
2333
  });
2332
- }, mc = (t) => {
2334
+ }, dc = (t) => {
2333
2335
  var h, y, g, f;
2334
- const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = bi(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
2335
- let u = ((h = a == null ? void 0 : a.storage) == null ? void 0 : h.strategy) ?? Xt;
2336
+ const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = vi(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
2337
+ let u = ((h = a == null ? void 0 : a.storage) == null ? void 0 : h.strategy) ?? Wt;
2336
2338
  const l = ["none", "session", "anonymousId"];
2337
- L(u) && !l.includes(u) && (u = Xt, t.warn(Ma(se, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Xt)));
2338
- let c = ((g = a == null ? void 0 : a.events) == null ? void 0 : g.delivery) ?? Jt;
2339
+ N(u) && !l.includes(u) && (u = Wt, t.warn(Pa(te, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Wt)));
2340
+ let c = ((g = a == null ? void 0 : a.events) == null ? void 0 : g.delivery) ?? Qt;
2339
2341
  const d = ["immediate", "buffer"];
2340
- L(c) && !d.includes(c) && (c = Jt, t.warn($a(se, (f = a == null ? void 0 : a.events) == null ? void 0 : f.delivery, Jt))), z(() => {
2342
+ N(c) && !d.includes(c) && (c = Qt, t.warn(Na(te, (f = a == null ? void 0 : a.events) == null ? void 0 : f.delivery, Qt))), j(() => {
2341
2343
  var m;
2342
2344
  o.consents.activeConsentManagerPluginName.value = n, o.consents.initialized.value = s, o.consents.enabled.value = i, o.consents.data.value = r, o.consents.provider.value = e, o.consents.preConsent.value = {
2343
2345
  // Only enable pre-consent if it is explicitly enabled and
@@ -2348,44 +2350,44 @@ const Xu = (t) => M(t) && M(t.source) && !le(t.source.id) && M(t.source.config)
2348
2350
  events: { delivery: c }
2349
2351
  };
2350
2352
  });
2351
- }, pc = (t) => {
2353
+ }, fc = (t) => {
2352
2354
  var s;
2353
2355
  let e = o.consents.resolutionStrategy.value, n;
2354
- M(t.consentManagementMetadata) && (o.consents.provider.value && (e = ((s = t.consentManagementMetadata.providers.find((i) => i.provider === o.consents.provider.value)) == null ? void 0 : s.resolutionStrategy) ?? o.consents.resolutionStrategy.value), n = t.consentManagementMetadata), o.consents.provider.value === "custom" && (e = void 0), z(() => {
2355
- o.consents.metadata.value = I(n), o.consents.resolutionStrategy.value = e;
2356
+ w(t.consentManagementMetadata) && (o.consents.provider.value && (e = ((s = t.consentManagementMetadata.providers.find((i) => i.provider === o.consents.provider.value)) == null ? void 0 : s.resolutionStrategy) ?? o.consents.resolutionStrategy.value), n = t.consentManagementMetadata), o.consents.provider.value === "custom" && (e = void 0), j(() => {
2357
+ o.consents.metadata.value = T(n), o.consents.resolutionStrategy.value = e;
2356
2358
  });
2357
- }, vc = (t) => {
2359
+ }, hc = (t) => {
2358
2360
  if (o.dataPlaneEvents.deliveryEnabled.value) {
2359
2361
  const e = "XhrQueue";
2360
2362
  let n = e;
2361
- o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(Ra(se)))), z(() => {
2363
+ o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(ba(te)))), j(() => {
2362
2364
  o.dataPlaneEvents.eventsQueuePluginName.value = n;
2363
2365
  });
2364
2366
  }
2365
- }, yc = (t, e, n, s, i) => {
2366
- const r = new URLSearchParams({ p: xs, v: at, build: ut, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
2367
- let a = ii, u = r, l = "/sourceConfig/", c = "";
2367
+ }, gc = (t, e, n, s, i) => {
2368
+ const r = new URLSearchParams({ p: Fs, v: at, build: ut, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
2369
+ let a = ni, u = r, l = "/sourceConfig/", c = "";
2368
2370
  if (Ke(t)) {
2369
2371
  const d = new URL(t);
2370
- ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = rc(d.pathname), r.forEach((h, y) => {
2372
+ ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = tc(d.pathname), r.forEach((h, y) => {
2371
2373
  d.searchParams.get(y) === null && d.searchParams.set(y, h);
2372
2374
  }), a = d.origin, l = d.pathname, u = d.searchParams, c = d.hash;
2373
2375
  } else
2374
- i.warn(La(se, t));
2376
+ i.warn(Ca(te, t));
2375
2377
  return `${a}${l}?${u}${c}`;
2376
- }, Ei = (t, e, n, s, i, r, a) => {
2378
+ }, yi = (t, e, n, s, i, r, a) => {
2377
2379
  let u;
2378
2380
  if (r) {
2379
2381
  if (!Ke(r))
2380
- return a.error(Yo(se, t, r)), null;
2382
+ return a.error(qo(te, t, r)), null;
2381
2383
  u = ze(r);
2382
2384
  } else if (u = n, o.context.app.value.installType === "cdn") {
2383
- const l = dc();
2385
+ const l = ac();
2384
2386
  l && (u = l.split("/").slice(0, -1).concat(e).join("/"));
2385
2387
  }
2386
2388
  return i && (u = u.replace(new RegExp(`/${In}/${ut}/${e}$`), `/${s}/${ut}/${e}`)), u;
2387
- }, bc = (t, e, n, s) => Ei("integrations", On, ni, t, e, n, s), Ec = (t, e, n, s) => Ei("plugins", ti, si, t, e, n, s);
2388
- class Sc {
2389
+ }, mc = (t, e, n, s) => yi("integrations", Rn, ei, t, e, n, s), pc = (t, e, n, s) => yi("plugins", Zs, ti, t, e, n, s);
2390
+ class vc {
2389
2391
  constructor(e, n, s) {
2390
2392
  this.errorHandler = n, this.logger = s, this.httpClient = e, this.onError = this.onError.bind(this), this.processConfig = this.processConfig.bind(this);
2391
2393
  }
@@ -2399,48 +2401,48 @@ class Sc {
2399
2401
  * config related information in global state
2400
2402
  */
2401
2403
  init() {
2402
- const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l = bc(at, s, r, this.logger);
2403
- if (ie(l))
2404
+ const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l = mc(at, s, r, this.logger);
2405
+ if (ne(l))
2404
2406
  return;
2405
2407
  let c;
2406
- c = Ec(at, i, a, this.logger), c !== null && (this.attachEffects(), o.lifecycle.activeDataplaneUrl.value = ze(o.lifecycle.dataPlaneUrl.value), gc(this.logger), mc(this.logger), vc(this.logger), z(() => {
2407
- o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value = yc(n, o.lifecycle.writeKey.value, s, i, this.logger), o.metrics.metricsServiceUrl.value = `${o.lifecycle.activeDataplaneUrl.value}/${za}`, o.nativeDestinations.loadOnlyIntegrations.value = u;
2408
+ c = pc(at, i, a, this.logger), c !== null && (this.attachEffects(), o.lifecycle.activeDataplaneUrl.value = ze(o.lifecycle.dataPlaneUrl.value), cc(this.logger), dc(this.logger), hc(this.logger), j(() => {
2409
+ o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value = gc(n, o.lifecycle.writeKey.value, s, i, this.logger), o.metrics.metricsServiceUrl.value = `${o.lifecycle.activeDataplaneUrl.value}/${xa}`, o.nativeDestinations.loadOnlyIntegrations.value = u;
2408
2410
  }), this.getConfig());
2409
2411
  }
2410
2412
  /**
2411
2413
  * Handle errors
2412
2414
  */
2413
2415
  onError(e, n) {
2414
- this.errorHandler.onError(e, se, n);
2416
+ this.errorHandler.onError(e, te, n);
2415
2417
  }
2416
2418
  /**
2417
2419
  * A callback function that is executed once we fetch the source config response.
2418
2420
  * Use to construct and store information that are dependent on the sourceConfig.
2419
2421
  */
2420
2422
  processConfig(e, n) {
2421
- if (!L(e)) {
2422
- L(n) ? this.onError(n.error, qn) : this.onError(new Error(qn));
2423
+ if (!N(e)) {
2424
+ N(n) ? this.onError(n.error, jn) : this.onError(new Error(jn));
2423
2425
  return;
2424
2426
  }
2425
2427
  let s;
2426
2428
  try {
2427
2429
  B(e) ? s = JSON.parse(e) : s = e;
2428
2430
  } catch (r) {
2429
- this.onError(r, jn);
2431
+ this.onError(r, Gn);
2430
2432
  return;
2431
2433
  }
2432
- if (!Xu(s)) {
2433
- this.onError(new Error(jn));
2434
+ if (!Ku(s)) {
2435
+ this.onError(new Error(Gn));
2434
2436
  return;
2435
2437
  }
2436
2438
  if (s.source.enabled === !1) {
2437
- this.logger.error(jo);
2439
+ this.logger.error(Fo);
2438
2440
  return;
2439
2441
  }
2440
- fc(s);
2441
- const i = s.source.destinations.length > 0 ? nc(s.source.destinations) : [];
2442
- z(() => {
2443
- o.source.value = { config: s.source.config, name: s.source.name, id: s.source.id, workspaceId: s.source.workspaceId }, o.nativeDestinations.configuredDestinations.value = i, o.plugins.pluginsToLoadFromConfig.value = o.loadOptions.value.plugins ?? [], pc(s), o.lifecycle.status.value = "configured";
2442
+ lc(s);
2443
+ const i = s.source.destinations.length > 0 ? Ju(s.source.destinations) : [];
2444
+ j(() => {
2445
+ o.source.value = { config: s.source.config, name: s.source.name, id: s.source.id, workspaceId: s.source.workspaceId }, o.nativeDestinations.configuredDestinations.value = i, o.plugins.pluginsToLoadFromConfig.value = o.loadOptions.value.plugins ?? [], fc(s), o.lifecycle.status.value = "configured";
2444
2446
  });
2445
2447
  }
2446
2448
  /**
@@ -2452,7 +2454,7 @@ class Sc {
2452
2454
  const e = o.loadOptions.value.getSourceConfig;
2453
2455
  if (e) {
2454
2456
  if (!S(e)) {
2455
- this.logger.error(Wo(se));
2457
+ this.logger.error(jo(te));
2456
2458
  return;
2457
2459
  }
2458
2460
  const n = e();
@@ -2463,10 +2465,10 @@ class Sc {
2463
2465
  this.httpClient.getAsyncData({ url: o.lifecycle.sourceConfigUrl.value, options: { headers: { "Content-Type": void 0 } }, callback: this.processConfig });
2464
2466
  }
2465
2467
  }
2466
- const kc = () => {
2468
+ const yc = () => {
2467
2469
  const t = /([A-Z]+[+-]\d+)/.exec((/* @__PURE__ */ new Date()).toString());
2468
2470
  return t != null && t[1] ? t[1] : "NA";
2469
- }, Si = () => (document == null ? void 0 : document.referrer) || "$direct", Rc = () => {
2471
+ }, bi = () => (document == null ? void 0 : document.referrer) || "$direct", bc = () => {
2470
2472
  const t = document.getElementsByTagName("link");
2471
2473
  let e = "";
2472
2474
  for (let n = 0; t[n]; n += 1) {
@@ -2477,7 +2479,7 @@ const kc = () => {
2477
2479
  }
2478
2480
  }
2479
2481
  return e;
2480
- }, Oc = () => {
2482
+ }, Ec = () => {
2481
2483
  if (G(globalThis.navigator))
2482
2484
  return null;
2483
2485
  let { userAgent: t } = globalThis.navigator;
@@ -2487,8 +2489,8 @@ const kc = () => {
2487
2489
  n && (t = `${t} Brave/${n[2]}`);
2488
2490
  }
2489
2491
  return t;
2490
- }, Ic = () => G(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, ki = () => {
2491
- const t = Rc();
2492
+ }, Sc = () => G(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, Ei = () => {
2493
+ const t = bc();
2492
2494
  let e = globalThis.location.pathname;
2493
2495
  const { href: n } = globalThis.location;
2494
2496
  let s = n;
@@ -2499,12 +2501,12 @@ const kc = () => {
2499
2501
  l.search === "" ? s = t + i : s = t, e = l.pathname;
2500
2502
  } catch {
2501
2503
  }
2502
- const r = ic(s), { title: a } = document, u = Si();
2503
- return { path: e, referrer: u, referring_domain: yi(u), search: i, title: a, url: r, tab_url: n };
2504
- }, Tc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(fn).join("%2C")}`, Ac = 10 * 1e3, os = "rudderstackPolyfill";
2505
- class Dc {
2504
+ const r = ec(s), { title: a } = document, u = bi();
2505
+ return { path: e, referrer: u, referring_domain: pi(u), search: i, title: a, url: r, tab_url: n };
2506
+ }, kc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(cn).join("%2C")}`, Rc = 10 * 1e3, rs = "rudderstackPolyfill";
2507
+ class Ic {
2506
2508
  constructor(e, n, s) {
2507
- this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new qs(this.errorHandler, this.logger), this.onError = this.onError.bind(this), this.onReady = this.onReady.bind(this);
2509
+ this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new Gs(this.errorHandler, this.logger), this.onError = this.onError.bind(this), this.onReady = this.onReady.bind(this);
2508
2510
  }
2509
2511
  init() {
2510
2512
  this.prepareBrowserCapabilities(), this.attachWindowListeners();
@@ -2514,22 +2516,22 @@ class Dc {
2514
2516
  */
2515
2517
  // eslint-disable-next-line class-methods-use-this
2516
2518
  detectBrowserCapabilities() {
2517
- z(() => {
2518
- o.capabilities.storage.isCookieStorageAvailable.value = Ge(X, oe(X), this.logger), o.capabilities.storage.isLocalStorageAvailable.value = Ge(J, void 0, this.logger), o.capabilities.storage.isSessionStorageAvailable.value = Ge(ne, void 0, this.logger), o.capabilities.isBeaconAvailable.value = Mu(), o.capabilities.isUaCHAvailable.value = ss(), o.capabilities.isCryptoAvailable.value = wu(), o.capabilities.isIE11.value = $u(), o.capabilities.isOnline.value = globalThis.navigator.onLine, o.context.userAgent.value = Oc(), o.context.locale.value = Ic(), o.context.screen.value = is(), o.context.timezone.value = kc(), ss() && Uu((e) => {
2519
+ j(() => {
2520
+ o.capabilities.storage.isCookieStorageAvailable.value = Ge(W, ie(W), this.logger), o.capabilities.storage.isLocalStorageAvailable.value = Ge(X, void 0, this.logger), o.capabilities.storage.isSessionStorageAvailable.value = Ge(ee, void 0, this.logger), o.capabilities.isBeaconAvailable.value = Pu(), o.capabilities.isUaCHAvailable.value = ns(), o.capabilities.isCryptoAvailable.value = _u(), o.capabilities.isIE11.value = Nu(), o.capabilities.isOnline.value = globalThis.navigator.onLine, o.context.userAgent.value = Ec(), o.context.locale.value = Sc(), o.context.screen.value = ss(), o.context.timezone.value = yc(), ns() && Lu((e) => {
2519
2521
  o.context["ua-ch"].value = e;
2520
2522
  }, o.loadOptions.value.uaChTrackLevel);
2521
2523
  }), pe(() => {
2522
- o.loadOptions.value.sendAdblockPage === !0 && o.lifecycle.sourceConfigUrl.value !== void 0 && Lu(this.httpClient);
2524
+ o.loadOptions.value.sendAdblockPage === !0 && o.lifecycle.sourceConfigUrl.value !== void 0 && Cu(this.httpClient);
2523
2525
  });
2524
2526
  }
2525
2527
  /**
2526
2528
  * Detect if polyfills are required and then load script from polyfill URL
2527
2529
  */
2528
2530
  prepareBrowserCapabilities() {
2529
- o.capabilities.isLegacyDOM.value = Vu();
2531
+ o.capabilities.isLegacyDOM.value = Mu();
2530
2532
  const e = o.loadOptions.value.polyfillURL;
2531
- let n = Tc;
2532
- if (qe(e) && (Ke(e) ? n = e : this.logger.warn(Va(on, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && Ke(n)) {
2533
+ let n = kc;
2534
+ if (qe(e) && (Ke(e) ? n = e : this.logger.warn(Ma(sn, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && Ke(n)) {
2533
2535
  const i = n !== o.loadOptions.value.polyfillURL;
2534
2536
  if (i) {
2535
2537
  const r = `RS_polyfillCallback_${o.lifecycle.writeKey.value}`, a = () => {
@@ -2537,8 +2539,8 @@ class Dc {
2537
2539
  };
2538
2540
  globalThis[r] = a, n = `${n}&callback=${r}`;
2539
2541
  }
2540
- this.externalSrcLoader.loadJSFile({ url: n, id: os, async: !0, timeout: Ac, callback: (r) => {
2541
- r ? i || this.onReady() : this.onError(new Error(wa(os, n)));
2542
+ this.externalSrcLoader.loadJSFile({ url: n, id: rs, async: !0, timeout: Rc, callback: (r) => {
2543
+ r ? i || this.onReady() : this.onError(new Error(_a(rs, n)));
2542
2544
  } });
2543
2545
  } else
2544
2546
  this.onReady();
@@ -2551,8 +2553,8 @@ class Dc {
2551
2553
  o.capabilities.isOnline.value = !1;
2552
2554
  }), globalThis.addEventListener("online", () => {
2553
2555
  o.capabilities.isOnline.value = !0;
2554
- }), globalThis.addEventListener("resize", To(() => {
2555
- o.context.screen.value = is();
2556
+ }), globalThis.addEventListener("resize", ko(() => {
2557
+ o.context.screen.value = ss();
2556
2558
  }, this));
2557
2559
  }
2558
2560
  /**
@@ -2567,16 +2569,16 @@ class Dc {
2567
2569
  * @param error The error object
2568
2570
  */
2569
2571
  onError(e) {
2570
- this.errorHandler.onError(e, on);
2572
+ this.errorHandler.onError(e, sn);
2571
2573
  }
2572
2574
  }
2573
- const Cc = "web", _c = ["integrations", "anonymousId", "originalTimestamp"], as = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Zt = ["id", "anonymous_id", "user_id", "sent_at", "timestamp", "received_at", "original_timestamp", "event", "event_text", "channel", "context_ip", "context_request_ip", "context_passed_ip", "group_id", "previous_id"], Ri = (t) => typeof t == "number" && !Number.isNaN(t), Pc = (t, e) => e.toString().length >= t, Vt = (t) => Ri(t) && t >= 0 && Number.isInteger(t), ls = 10, Oi = (t) => {
2575
+ const Tc = "web", Oc = ["integrations", "anonymousId", "originalTimestamp"], os = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Xt = ["id", "anonymous_id", "user_id", "sent_at", "timestamp", "received_at", "original_timestamp", "event", "event_text", "channel", "context_ip", "context_request_ip", "context_passed_ip", "group_id", "previous_id"], Si = (t) => typeof t == "number" && !Number.isNaN(t), Ac = (t, e) => e.toString().length >= t, Ut = (t) => Si(t) && t >= 0 && Number.isInteger(t), as = 10, ki = (t) => {
2574
2576
  const { cutOff: e } = t, n = Date.now();
2575
2577
  return !!(e != null && e.enabled && e.expiresAt && n > e.expiresAt);
2576
- }, us = (t) => !t.expiresAt || Date.now() > t.expiresAt || Oi(t), Nc = () => Date.now(), Lc = (t, e) => !t || !Vt(t) || !Pc(ls, t) ? (e.warn(Ca(De, t, ls)), !1) : !0, wc = (t) => {
2578
+ }, ls = (t) => !t.expiresAt || Date.now() > t.expiresAt || ki(t), Dc = () => Date.now(), Cc = (t, e) => !t || !Ut(t) || !Ac(as, t) ? (e.warn(Ta(De, t, as)), !1) : !0, _c = (t) => {
2577
2579
  if (t != null && t.enabled)
2578
- return t.expiresAt ?? (Vt(t.duration) ? Date.now() + t.duration : void 0);
2579
- }, Mc = (t) => {
2580
+ return t.expiresAt ?? (Ut(t.duration) ? Date.now() + t.duration : void 0);
2581
+ }, Pc = (t) => {
2580
2582
  const { timeout: e, cutOff: n } = t, s = Date.now();
2581
2583
  return {
2582
2584
  id: s,
@@ -2587,52 +2589,52 @@ const Cc = "web", _c = ["integrations", "anonymousId", "originalTimestamp"], as
2587
2589
  autoTrack: !0,
2588
2590
  ...n && { cutOff: n }
2589
2591
  };
2590
- }, $c = (t, e) => ({ id: Lc(t, e) ? t : Nc(), sessionStart: void 0, manualTrack: !0 }), nt = (t) => t === X || t === J || t === ne || t === ce, gn = () => Ht(), Uc = (t) => {
2591
- const e = ki(), n = {};
2592
+ }, Nc = (t, e) => ({ id: Cc(t, e) ? t : Dc(), sessionStart: void 0, manualTrack: !0 }), nt = (t) => t === W || t === X || t === ee || t === ce, fn = () => Vt(), Lc = (t) => {
2593
+ const e = Ei(), n = {};
2592
2594
  return Object.keys(e).forEach((s) => {
2593
2595
  n[s] = (t == null ? void 0 : t[s]) || e[s];
2594
2596
  }), n.initial_referrer = (t == null ? void 0 : t.initial_referrer) || o.session.initialReferrer.value, n.initial_referring_domain = (t == null ? void 0 : t.initial_referring_domain) || o.session.initialReferringDomain.value, n;
2595
- }, Bc = (t, e) => {
2596
- const n = (e == null ? void 0 : e.page) || {}, s = t, i = ki();
2597
+ }, wc = (t, e) => {
2598
+ const n = (e == null ? void 0 : e.page) || {}, s = t, i = Ei();
2597
2599
  return Object.keys(i).forEach((r) => {
2598
2600
  G(s[r]) && (s[r] = n[r] || i[r]);
2599
2601
  }), G(s.initial_referrer) && (s.initial_referrer = n.initial_referrer || o.session.initialReferrer.value), G(s.initial_referring_domain) && (s.initial_referring_domain = n.initial_referring_domain || o.session.initialReferringDomain.value), s;
2600
- }, en = (t, e, n) => {
2601
- M(t) && Object.keys(t).forEach((s) => {
2602
- (Zt.includes(s) || Zt.includes(s.toLowerCase())) && n.warn(Sa(Bs, s, e, Zt));
2602
+ }, Jt = (t, e, n) => {
2603
+ w(t) && Object.keys(t).forEach((s) => {
2604
+ (Xt.includes(s) || Xt.includes(s.toLowerCase())) && n.warn(va($s, s, e, Xt));
2603
2605
  });
2604
- }, Vc = (t, e) => {
2606
+ }, Mc = (t, e) => {
2605
2607
  const { properties: n, traits: s, context: i } = t, { traits: r } = i;
2606
- en(n, "properties", e), en(s, "traits", e), en(r, "context.traits", e);
2607
- }, Fc = (t, e) => {
2608
- e.anonymousId && B(e.anonymousId) && (t.anonymousId = e.anonymousId), Oe(e.integrations) && (t.integrations = e.integrations), e.originalTimestamp && B(e.originalTimestamp) && (t.originalTimestamp = e.originalTimestamp);
2609
- }, Hc = (t, e, n) => {
2608
+ Jt(n, "properties", e), Jt(s, "traits", e), Jt(r, "context.traits", e);
2609
+ }, $c = (t, e) => {
2610
+ e.anonymousId && B(e.anonymousId) && (t.anonymousId = e.anonymousId), Ie(e.integrations) && (t.integrations = e.integrations), e.originalTimestamp && B(e.originalTimestamp) && (t.originalTimestamp = e.originalTimestamp);
2611
+ }, Uc = (t, e, n) => {
2610
2612
  let s = t;
2611
2613
  return Object.keys(e).forEach((i) => {
2612
- if (!_c.includes(i) && !as.includes(i))
2614
+ if (!Oc.includes(i) && !os.includes(i))
2613
2615
  if (i !== "context")
2614
2616
  s = H(s, { [i]: e[i] });
2615
- else if (!G(e[i]) && M(e[i])) {
2617
+ else if (!G(e[i]) && w(e[i])) {
2616
2618
  const r = {};
2617
2619
  Object.keys(e[i]).forEach((a) => {
2618
- as.includes(a) || (r[a] = e[i][a]);
2620
+ os.includes(a) || (r[a] = e[i][a]);
2619
2621
  }), s = H(s, { ...r });
2620
2622
  } else
2621
- n.warn(ka(Bs));
2623
+ n.warn(ya($s));
2622
2624
  }), s;
2623
- }, xc = (t, e, n) => {
2624
- M(e) && (Fc(t, e), t.context = Hc(t.context, e, n));
2625
- }, Gc = (t) => {
2625
+ }, Bc = (t, e, n) => {
2626
+ w(e) && ($c(t, e), t.context = Uc(t.context, e, n));
2627
+ }, Vc = (t) => {
2626
2628
  let e;
2627
- return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = ei, I(e);
2629
+ return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = Js, T(e);
2628
2630
  }, Ze = (t, e, n, s) => {
2629
2631
  var a, u, l;
2630
- const i = { channel: Cc, context: {
2631
- traits: I(o.session.userTraits.value),
2632
+ const i = { channel: Tc, context: {
2633
+ traits: T(o.session.userTraits.value),
2632
2634
  sessionId: o.session.sessionInfo.value.id || void 0,
2633
2635
  sessionStart: o.session.sessionInfo.value.sessionStart || void 0,
2634
2636
  // Add 'consentManagement' only if consent management is enabled
2635
- ...o.consents.enabled.value && { consentManagement: { deniedConsentIds: I(o.consents.data.value.deniedConsentIds), allowedConsentIds: I(o.consents.data.value.allowedConsentIds), provider: o.consents.provider.value, resolutionStrategy: o.consents.resolutionStrategy.value } },
2637
+ ...o.consents.enabled.value && { consentManagement: { deniedConsentIds: T(o.consents.data.value.deniedConsentIds), allowedConsentIds: T(o.consents.data.value.allowedConsentIds), provider: o.consents.provider.value, resolutionStrategy: o.consents.resolutionStrategy.value } },
2636
2638
  "ua-ch": o.context["ua-ch"].value,
2637
2639
  app: o.context.app.value,
2638
2640
  library: o.context.library.value,
@@ -2640,17 +2642,17 @@ const Cc = "web", _c = ["integrations", "anonymousId", "originalTimestamp"], as
2640
2642
  os: o.context.os.value,
2641
2643
  locale: o.context.locale.value,
2642
2644
  screen: o.context.screen.value,
2643
- campaign: sc(globalThis.location.href),
2644
- page: Uc(n),
2645
+ campaign: Zu(globalThis.location.href),
2646
+ page: Lc(n),
2645
2647
  timezone: o.context.timezone.value,
2646
2648
  // Add auto tracking information
2647
2649
  ...o.autoTrack.enabled.value && { autoTrack: { ...o.autoTrack.pageLifecycle.enabled.value && { page: { pageViewId: o.autoTrack.pageLifecycle.pageViewId.value } } } }
2648
- }, originalTimestamp: ro(), messageId: Ht(), userId: t.userId || o.session.userId.value };
2649
- nt((a = o.storage.entries.value.anonymousId) == null ? void 0 : a.type) ? i.anonymousId = o.session.anonymousId.value : i.anonymousId = gn(), o.storage.trulyAnonymousTracking.value && (i.context.trulyAnonymousTracking = !0), t.type === "identify" && (i.context.traits = ((u = o.storage.entries.value.userTraits) == null ? void 0 : u.type) !== we ? I(o.session.userTraits.value) : t.context.traits), t.type === "group" && ((t.groupId || o.session.groupId.value) && (i.groupId = t.groupId || o.session.groupId.value), (t.traits || o.session.groupTraits.value) && (i.traits = ((l = o.storage.entries.value.groupTraits) == null ? void 0 : l.type) !== we ? I(o.session.groupTraits.value) : t.traits));
2650
+ }, originalTimestamp: to(), messageId: Vt(), userId: t.userId || o.session.userId.value };
2651
+ nt((a = o.storage.entries.value.anonymousId) == null ? void 0 : a.type) ? i.anonymousId = o.session.anonymousId.value : i.anonymousId = fn(), o.storage.trulyAnonymousTracking.value && (i.context.trulyAnonymousTracking = !0), t.type === "identify" && (i.context.traits = ((u = o.storage.entries.value.userTraits) == null ? void 0 : u.type) !== we ? T(o.session.userTraits.value) : t.context.traits), t.type === "group" && ((t.groupId || o.session.groupId.value) && (i.groupId = t.groupId || o.session.groupId.value), (t.traits || o.session.groupTraits.value) && (i.traits = ((l = o.storage.entries.value.groupTraits) == null ? void 0 : l.type) !== we ? T(o.session.groupTraits.value) : t.traits));
2650
2652
  const r = H(t, i);
2651
- return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null), xc(r, e, s), Vc(r, s), r.integrations = Gc(r.integrations), r;
2653
+ return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null), Bc(r, e, s), Mc(r, s), r.integrations = Vc(r.integrations), r;
2652
2654
  };
2653
- class jc {
2655
+ class Fc {
2654
2656
  constructor(e) {
2655
2657
  this.logger = e;
2656
2658
  }
@@ -2663,7 +2665,7 @@ class jc {
2663
2665
  */
2664
2666
  generatePageEvent(e, n, s, i) {
2665
2667
  let r = s ?? {};
2666
- return r = Bc(r, i), Ze({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
2668
+ return r = wc(r, i), Ze({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
2667
2669
  }
2668
2670
  /**
2669
2671
  * Generate a 'track' event based on the user-input fields
@@ -2731,7 +2733,7 @@ class jc {
2731
2733
  return n;
2732
2734
  }
2733
2735
  }
2734
- class qc {
2736
+ class Hc {
2735
2737
  /**
2736
2738
  *
2737
2739
  * @param eventRepository Event repository instance
@@ -2740,7 +2742,7 @@ class qc {
2740
2742
  * @param logger Logger object
2741
2743
  */
2742
2744
  constructor(e, n, s, i) {
2743
- this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new jc(this.logger);
2745
+ this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new Fc(this.logger);
2744
2746
  }
2745
2747
  /**
2746
2748
  * Initializes the event manager
@@ -2761,7 +2763,7 @@ class qc {
2761
2763
  this.eventRepository.enqueue(n, e.callback);
2762
2764
  }
2763
2765
  }
2764
- class zc {
2766
+ class xc {
2765
2767
  constructor(e, n, s, i, r) {
2766
2768
  this.storeManager = n, this.pluginsManager = e, this.logger = r, this.errorHandler = i, this.httpClient = s, this.onError = this.onError.bind(this), this.serverSideCookieDebounceFuncs = {};
2767
2769
  }
@@ -2781,7 +2783,7 @@ class zc {
2781
2783
  var n, s;
2782
2784
  let e;
2783
2785
  if (this.isPersistenceEnabledForStorageEntry("sessionInfo")) {
2784
- const i = this.getConfiguredSessionTrackingInfo(), r = this.getSessionInfo() ?? T.sessionInfo;
2786
+ const i = this.getConfiguredSessionTrackingInfo(), r = this.getSessionInfo() ?? O.sessionInfo;
2785
2787
  e = {
2786
2788
  // If manualTrack is set to true in the storage, then do not enable auto tracking even if configured.
2787
2789
  // Once manual tracking ends (endSession is called), auto tracking will be enabled in the next SDK run.
@@ -2791,9 +2793,9 @@ class zc {
2791
2793
  expiresAt: r.expiresAt,
2792
2794
  id: r.id,
2793
2795
  sessionStart: r.sessionStart
2794
- }, !e.autoTrack && e.manualTrack !== !0 ? e = T.sessionInfo : ((n = i.cutOff) == null ? void 0 : n.enabled) === !0 && (e.cutOff = { enabled: !0, duration: i.cutOff.duration, expiresAt: (s = r.cutOff) == null ? void 0 : s.expiresAt });
2796
+ }, !e.autoTrack && e.manualTrack !== !0 ? e = O.sessionInfo : ((n = i.cutOff) == null ? void 0 : n.enabled) === !0 && (e.cutOff = { enabled: !0, duration: i.cutOff.duration, expiresAt: (s = r.cutOff) == null ? void 0 : s.expiresAt });
2795
2797
  } else
2796
- e = T.sessionInfo;
2798
+ e = O.sessionInfo;
2797
2799
  o.session.sessionInfo.value = e, o.session.sessionInfo.value.autoTrack && this.startOrRenewAutoTracking(o.session.sessionInfo.value);
2798
2800
  }
2799
2801
  setInitialReferrerInfo() {
@@ -2801,8 +2803,8 @@ class zc {
2801
2803
  if (e && n)
2802
2804
  this.setInitialReferrer(e), this.setInitialReferringDomain(n);
2803
2805
  else {
2804
- const s = e || Si();
2805
- this.setInitialReferrer(s), this.setInitialReferringDomain(yi(s));
2806
+ const s = e || bi();
2807
+ this.setInitialReferrer(s), this.setInitialReferringDomain(pi(s));
2806
2808
  }
2807
2809
  }
2808
2810
  isPersistenceEnabledForStorageEntry(e) {
@@ -2810,7 +2812,7 @@ class zc {
2810
2812
  return nt((n = o.storage.entries.value[e]) == null ? void 0 : n.type);
2811
2813
  }
2812
2814
  migrateDataFromPreviousStorage() {
2813
- const e = o.storage.entries.value, n = [X, J, ne];
2815
+ const e = o.storage.entries.value, n = [W, X, ee];
2814
2816
  Object.keys(e).forEach((s) => {
2815
2817
  var u, l;
2816
2818
  const i = s, r = (u = e[i]) == null ? void 0 : u.type, a = (l = this.storeManager) == null ? void 0 : l.getStore(Fe[r]);
@@ -2819,7 +2821,7 @@ class zc {
2819
2821
  const d = (h = this.storeManager) == null ? void 0 : h.getStore(Fe[c]);
2820
2822
  if (d && c !== r) {
2821
2823
  const y = d.get(Ve[i]);
2822
- Hr(y) && a.set(Ve[i], y), d.remove(Ve[i]);
2824
+ Ur(y) && a.set(Ve[i], y), d.remove(Ve[i]);
2823
2825
  }
2824
2826
  });
2825
2827
  });
@@ -2828,7 +2830,7 @@ class zc {
2828
2830
  if (!o.storage.migrate.value)
2829
2831
  return;
2830
2832
  let n = e ?? [];
2831
- n.length === 0 && [fi, hi, gi].forEach((i) => {
2833
+ n.length === 0 && [ci, di, fi].forEach((i) => {
2832
2834
  var a;
2833
2835
  const r = (a = this.storeManager) == null ? void 0 : a.getStore(i);
2834
2836
  r && n.push(r);
@@ -2848,14 +2850,14 @@ class zc {
2848
2850
  return { autoTrack: e };
2849
2851
  let n;
2850
2852
  const s = (r = o.loadOptions.value.sessions) == null ? void 0 : r.timeout;
2851
- Vt(s) ? n = s : (this.logger.warn(Oa(De, s, an)), n = an), n === 0 && (this.logger.warn(Aa(De)), e = !1), n > 0 && n < Hn && this.logger.warn(Da(De, n, Hn));
2853
+ Ut(s) ? n = s : (this.logger.warn(Ea(De, s, rn)), n = rn), n === 0 && (this.logger.warn(Ra(De)), e = !1), n > 0 && n < Fn && this.logger.warn(Ia(De, n, Fn));
2852
2854
  const i = this.getCutOffInfo(n);
2853
2855
  return { timeout: n, autoTrack: e, cutOff: i };
2854
2856
  }
2855
2857
  getCutOffInfo(e) {
2856
2858
  const n = o.loadOptions.value.sessions.cutOff;
2857
2859
  let s, i = !1;
2858
- return n.enabled === !0 && (s = n.duration, i = !0, Vt(s) ? s < e && (this.logger.warn(Ta(De, s, e)), i = !1) : (this.logger.warn(Ia(De, s, Fn)), s = Fn)), { enabled: i, duration: s };
2860
+ return n.enabled === !0 && (s = n.duration, i = !0, Ut(s) ? s < e && (this.logger.warn(ka(De, s, e)), i = !1) : (this.logger.warn(Sa(De, s, Vn)), s = Vn)), { enabled: i, duration: s };
2859
2861
  }
2860
2862
  /**
2861
2863
  * Handles error
@@ -2898,13 +2900,13 @@ class zc {
2898
2900
  var u, l;
2899
2901
  ((u = a == null ? void 0 : a.xhr) == null ? void 0 : u.status) === 200 ? e.forEach((c) => {
2900
2902
  const d = s == null ? void 0 : s.get(c.name), h = de(c.value, !1, []);
2901
- de(d, !1, []) !== h && (this.logger.error(ma(c.name)), n && n(c.name, c.value));
2902
- }) : (this.logger.error(ga((l = a == null ? void 0 : a.xhr) == null ? void 0 : l.status)), e.forEach((c) => {
2903
+ de(d, !1, []) !== h && (this.logger.error(da(c.name)), n && n(c.name, c.value));
2904
+ }) : (this.logger.error(ca((l = a == null ? void 0 : a.xhr) == null ? void 0 : l.status)), e.forEach((c) => {
2903
2905
  n && n(c.name, c.value);
2904
2906
  }));
2905
2907
  });
2906
2908
  } catch (i) {
2907
- this.onError(i, pa), e.forEach((r) => {
2909
+ this.onError(i, fa), e.forEach((r) => {
2908
2910
  n && n(r.name, r.value);
2909
2911
  });
2910
2912
  }
@@ -2919,18 +2921,18 @@ class zc {
2919
2921
  const s = o.storage.entries.value, i = (r = s[e]) == null ? void 0 : r.type;
2920
2922
  if (nt(i)) {
2921
2923
  const l = (a = this.storeManager) == null ? void 0 : a.getStore(Fe[i]), c = (u = s[e]) == null ? void 0 : u.key;
2922
- n && (B(n) || Oe(n)) ? o.serverCookies.isEnabledServerSideCookies.value && i === X ? (this.serverSideCookieDebounceFuncs[e] && globalThis.clearTimeout(this.serverSideCookieDebounceFuncs[e]), this.serverSideCookieDebounceFuncs[e] = globalThis.setTimeout(() => {
2924
+ n && (B(n) || Ie(n)) ? o.serverCookies.isEnabledServerSideCookies.value && i === W ? (this.serverSideCookieDebounceFuncs[e] && globalThis.clearTimeout(this.serverSideCookieDebounceFuncs[e]), this.serverSideCookieDebounceFuncs[e] = globalThis.setTimeout(() => {
2923
2925
  this.setServerSideCookies([{ name: c, value: n }], (d, h) => {
2924
2926
  l == null || l.set(d, h);
2925
2927
  }, l);
2926
- }, Ya)) : l == null || l.set(c, n) : l == null || l.remove(c);
2928
+ }, qa)) : l == null || l.set(c, n) : l == null || l.remove(c);
2927
2929
  }
2928
2930
  }
2929
2931
  /**
2930
2932
  * Function to update storage whenever state value changes
2931
2933
  */
2932
2934
  registerEffects() {
2933
- mi.forEach((e) => {
2935
+ hi.forEach((e) => {
2934
2936
  pe(() => {
2935
2937
  this.syncValueToStorage(e, o.session[e].value);
2936
2938
  });
@@ -2947,7 +2949,7 @@ class zc {
2947
2949
  setAnonymousId(e, n) {
2948
2950
  var i;
2949
2951
  let s = e;
2950
- (!B(e) || !s) && (s = void 0), this.isPersistenceEnabledForStorageEntry("anonymousId") ? (!s && n && (s = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("userSession.anonymousIdGoogleLinker", n)), s = s || gn()) : s = T.anonymousId, o.session.anonymousId.value = s;
2952
+ (!B(e) || !s) && (s = void 0), this.isPersistenceEnabledForStorageEntry("anonymousId") ? (!s && n && (s = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("userSession.anonymousIdGoogleLinker", n)), s = s || fn()) : s = O.anonymousId, o.session.anonymousId.value = s;
2951
2953
  }
2952
2954
  /**
2953
2955
  * Fetches anonymousId
@@ -2959,7 +2961,7 @@ class zc {
2959
2961
  const n = (s = o.storage.entries.value.anonymousId) == null ? void 0 : s.type;
2960
2962
  if (nt(n)) {
2961
2963
  let r = o.session.anonymousId.value;
2962
- (!r || r === T.anonymousId) && (r = this.getEntryValue("anonymousId")), !r && e && (r = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("storage.getAnonymousId", oe, e)), o.session.anonymousId.value = r || gn();
2964
+ (!r || r === O.anonymousId) && (r = this.getEntryValue("anonymousId")), !r && e && (r = (i = this.pluginsManager) == null ? void 0 : i.invokeSingle("storage.getAnonymousId", ie, e)), o.session.anonymousId.value = r || fn();
2963
2965
  }
2964
2966
  return o.session.anonymousId.value;
2965
2967
  }
@@ -2975,7 +2977,7 @@ class zc {
2975
2977
  return null;
2976
2978
  }
2977
2979
  getExternalAnonymousIdByCookieName(e) {
2978
- const n = oe(X);
2980
+ const n = ie(W);
2979
2981
  return n != null && n.isEnabled ? n.getItem(e) ?? null : null;
2980
2982
  }
2981
2983
  /**
@@ -3039,15 +3041,15 @@ class zc {
3039
3041
  * @returns
3040
3042
  */
3041
3043
  getSessionId() {
3042
- const e = this.getSessionInfo() ?? T.sessionInfo;
3043
- return e.autoTrack && !us(e) || e.manualTrack ? e.id ?? null : null;
3044
+ const e = this.getSessionInfo() ?? O.sessionInfo;
3045
+ return e.autoTrack && !ls(e) || e.manualTrack ? e.id ?? null : null;
3044
3046
  }
3045
3047
  /**
3046
3048
  * A function to keep the session information up to date in the state
3047
3049
  * before using it for building event payloads.
3048
3050
  */
3049
3051
  refreshSession() {
3050
- let e = this.getSessionInfo() ?? T.sessionInfo;
3052
+ let e = this.getSessionInfo() ?? O.sessionInfo;
3051
3053
  (e.autoTrack || e.manualTrack) && (e.autoTrack && (this.startOrRenewAutoTracking(e), e = o.session.sessionInfo.value), e.sessionStart === void 0 ? e = { ...e, sessionStart: !0 } : e.sessionStart && (e = { ...e, sessionStart: !1 })), o.session.sessionInfo.value = e, o.lifecycle.status.value !== "readyExecuted" && this.syncValueToStorage("sessionInfo", e);
3052
3054
  }
3053
3055
  /**
@@ -3058,10 +3060,10 @@ class zc {
3058
3060
  */
3059
3061
  reset(e, n) {
3060
3062
  const { session: s } = o, { manualTrack: i, autoTrack: r, timeout: a, cutOff: u } = s.sessionInfo.value;
3061
- z(() => {
3062
- if (s.userId.value = T.userId, s.userTraits.value = T.userTraits, s.groupId.value = T.groupId, s.groupTraits.value = T.groupTraits, s.authToken.value = T.authToken, e === !0 && this.setAnonymousId(), !n)
3063
+ j(() => {
3064
+ if (s.userId.value = O.userId, s.userTraits.value = O.userTraits, s.groupId.value = O.groupId, s.groupTraits.value = O.groupTraits, s.authToken.value = O.authToken, e === !0 && this.setAnonymousId(), !n)
3063
3065
  if (r) {
3064
- const l = { ...T.sessionInfo, timeout: a };
3066
+ const l = { ...O.sessionInfo, timeout: a };
3065
3067
  u && (l.cutOff = { enabled: u.enabled, duration: u.duration }), s.sessionInfo.value = l, this.startOrRenewAutoTracking(s.sessionInfo.value);
3066
3068
  } else i && this.startManualTrackingInternal();
3067
3069
  });
@@ -3071,56 +3073,56 @@ class zc {
3071
3073
  * @param userId
3072
3074
  */
3073
3075
  setUserId(e) {
3074
- o.session.userId.value = this.isPersistenceEnabledForStorageEntry("userId") && e ? e : T.userId;
3076
+ o.session.userId.value = this.isPersistenceEnabledForStorageEntry("userId") && e ? e : O.userId;
3075
3077
  }
3076
3078
  /**
3077
3079
  * Set user traits
3078
3080
  * @param traits
3079
3081
  */
3080
3082
  setUserTraits(e) {
3081
- o.session.userTraits.value = this.isPersistenceEnabledForStorageEntry("userTraits") && M(e) ? H(o.session.userTraits.value ?? T.userTraits, e) : T.userTraits;
3083
+ o.session.userTraits.value = this.isPersistenceEnabledForStorageEntry("userTraits") && w(e) ? H(o.session.userTraits.value ?? O.userTraits, e) : O.userTraits;
3082
3084
  }
3083
3085
  /**
3084
3086
  * Set group Id
3085
3087
  * @param groupId
3086
3088
  */
3087
3089
  setGroupId(e) {
3088
- o.session.groupId.value = this.isPersistenceEnabledForStorageEntry("groupId") && e ? e : T.groupId;
3090
+ o.session.groupId.value = this.isPersistenceEnabledForStorageEntry("groupId") && e ? e : O.groupId;
3089
3091
  }
3090
3092
  /**
3091
3093
  * Set group traits
3092
3094
  * @param traits
3093
3095
  */
3094
3096
  setGroupTraits(e) {
3095
- o.session.groupTraits.value = this.isPersistenceEnabledForStorageEntry("groupTraits") && M(e) ? H(o.session.groupTraits.value ?? T.groupTraits, e) : T.groupTraits;
3097
+ o.session.groupTraits.value = this.isPersistenceEnabledForStorageEntry("groupTraits") && w(e) ? H(o.session.groupTraits.value ?? O.groupTraits, e) : O.groupTraits;
3096
3098
  }
3097
3099
  /**
3098
3100
  * Set initial referrer
3099
3101
  * @param referrer
3100
3102
  */
3101
3103
  setInitialReferrer(e) {
3102
- o.session.initialReferrer.value = this.isPersistenceEnabledForStorageEntry("initialReferrer") && e ? e : T.initialReferrer;
3104
+ o.session.initialReferrer.value = this.isPersistenceEnabledForStorageEntry("initialReferrer") && e ? e : O.initialReferrer;
3103
3105
  }
3104
3106
  /**
3105
3107
  * Set initial referring domain
3106
3108
  * @param {String} referringDomain
3107
3109
  */
3108
3110
  setInitialReferringDomain(e) {
3109
- o.session.initialReferringDomain.value = this.isPersistenceEnabledForStorageEntry("initialReferringDomain") && e ? e : T.initialReferringDomain;
3111
+ o.session.initialReferringDomain.value = this.isPersistenceEnabledForStorageEntry("initialReferringDomain") && e ? e : O.initialReferringDomain;
3110
3112
  }
3111
3113
  /**
3112
3114
  * A function to check for existing session details and depending on that create a new session
3113
3115
  */
3114
3116
  startOrRenewAutoTracking(e) {
3115
3117
  let n = e;
3116
- if (us(e))
3117
- n = Mc(e);
3118
+ if (ls(e))
3119
+ n = Pc(e);
3118
3120
  else {
3119
3121
  const s = Date.now(), i = e.timeout;
3120
3122
  n.expiresAt = s + i;
3121
3123
  }
3122
- if (Oi(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
3123
- const s = wc(n.cutOff);
3124
+ if (ki(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
3125
+ const s = _c(n.cutOff);
3124
3126
  n.cutOff.expiresAt = s;
3125
3127
  }
3126
3128
  o.session.sessionInfo.value = n;
@@ -3131,7 +3133,7 @@ class zc {
3131
3133
  * @returns
3132
3134
  */
3133
3135
  start(e) {
3134
- o.session.sessionInfo.value = $c(e, this.logger);
3136
+ o.session.sessionInfo.value = Nc(e, this.logger);
3135
3137
  }
3136
3138
  /**
3137
3139
  * An internal function to start manual session
@@ -3143,41 +3145,41 @@ class zc {
3143
3145
  * A public method to end an ongoing session.
3144
3146
  */
3145
3147
  end() {
3146
- o.session.sessionInfo.value = T.sessionInfo;
3148
+ o.session.sessionInfo.value = O.sessionInfo;
3147
3149
  }
3148
3150
  /**
3149
3151
  * Set auth token
3150
3152
  * @param userId
3151
3153
  */
3152
3154
  setAuthToken(e) {
3153
- o.session.authToken.value = this.isPersistenceEnabledForStorageEntry("authToken") && e ? e : T.authToken;
3155
+ o.session.authToken.value = this.isPersistenceEnabledForStorageEntry("authToken") && e ? e : O.authToken;
3154
3156
  }
3155
3157
  }
3156
- const Kc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Wc = (t, e) => {
3158
+ const Gc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], jc = (t, e) => {
3157
3159
  var a;
3158
- const n = I(e);
3159
- return B(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ue(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ue(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations = be(n.integrations), Array.isArray(n.plugins) || (n.plugins = Kc), n.useGlobalIntegrationsConfigInEvents = ue(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ue(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ue(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ue(n.useServerSideCookies, t.useServerSideCookies), B(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = be(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Oe(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = be(n.storage.cookie), n.storage.encryption = be(n.storage.encryption), n.storage = Lt(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = be(n.destinationsQueueOptions), n.queueOptions = be(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion), Ri(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = be(n.beaconQueueOptions), n.preConsent = be(n.preConsent), H(t, Lt(n));
3160
- }, cs = "dataplaneEventsQueue", ds = "destinationsEventsQueue", Yc = "transformEvent", Qc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
3161
- const i = I(n);
3160
+ const n = T(e);
3161
+ return B(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ue(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ue(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations = be(n.integrations), Array.isArray(n.plugins) || (n.plugins = Gc), n.useGlobalIntegrationsConfigInEvents = ue(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ue(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ue(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ue(n.useServerSideCookies, t.useServerSideCookies), B(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = be(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Ie(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = be(n.storage.cookie), n.storage.encryption = be(n.storage.encryption), n.storage = Pt(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = be(n.destinationsQueueOptions), n.queueOptions = be(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion), Si(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = be(n.beaconQueueOptions), n.preConsent = be(n.preConsent), H(t, Pt(n));
3162
+ }, us = "dataplaneEventsQueue", cs = "destinationsEventsQueue", qc = "transformEvent", zc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
3163
+ const i = T(n);
3162
3164
  return i[s] = t[s], i;
3163
- }, {}), Xc = (t, e) => {
3164
- const n = I(t), s = e.nativeDestinations.integrationsConfig.value, i = Qc(t.integrations, s);
3165
+ }, {}), Kc = (t, e) => {
3166
+ const n = T(t), s = e.nativeDestinations.integrationsConfig.value, i = zc(t.integrations, s);
3165
3167
  return n.integrations = H(s, i), n;
3166
- }, Jc = (t) => {
3168
+ }, Yc = (t) => {
3167
3169
  var e;
3168
3170
  return t.consents.preConsent.value.enabled && ((e = t.consents.preConsent.value.events) == null ? void 0 : e.delivery) === "buffer";
3169
- }, Nt = (t, e, n, s) => {
3170
- if (L(t))
3171
+ }, _t = (t, e, n, s) => {
3172
+ if (N(t))
3171
3173
  if (S(t))
3172
3174
  try {
3173
3175
  t(...e);
3174
3176
  } catch (i) {
3175
- s.error(Na(n), i);
3177
+ s.error(Da(n), i);
3176
3178
  }
3177
3179
  else
3178
- s.error(Zs(n));
3180
+ s.error(Xs(n));
3179
3181
  };
3180
- class Zc {
3182
+ class Wc {
3181
3183
  /**
3182
3184
  *
3183
3185
  * @param pluginsManager Plugins manager instance
@@ -3192,16 +3194,16 @@ class Zc {
3192
3194
  * Initializes the event repository
3193
3195
  */
3194
3196
  init() {
3195
- this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${cs}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${Yc}.init`, o, this.pluginsManager, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.destinationsEventsQueue = this.pluginsManager.invokeSingle(`${ds}.init`, o, this.pluginsManager, this.storeManager, this.dmtEventsQueue, this.errorHandler, this.logger), pe(() => {
3197
+ this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${us}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${qc}.init`, o, this.pluginsManager, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.destinationsEventsQueue = this.pluginsManager.invokeSingle(`${cs}.init`, o, this.pluginsManager, this.storeManager, this.dmtEventsQueue, this.errorHandler, this.logger), pe(() => {
3196
3198
  var s, i;
3197
3199
  o.nativeDestinations.clientDestinationsReady.value === !0 && ((s = this.destinationsEventsQueue) == null || s.start(), (i = this.dmtEventsQueue) == null || i.start());
3198
3200
  });
3199
- const e = Jc(o);
3201
+ const e = Yc(o);
3200
3202
  let n;
3201
3203
  pe(() => {
3202
3204
  var r, a;
3203
3205
  const s = o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && o.nativeDestinations.clientDestinationsReady.value === !1;
3204
- (o.nativeDestinations.activeDestinations.value.some((u) => Yl(u)) === !1 || s === !1) && !e && ((r = this.dataplaneEventsQueue) == null ? void 0 : r.scheduleTimeoutActive) !== !0 && (globalThis.clearTimeout(n), (a = this.dataplaneEventsQueue) == null || a.start());
3206
+ (o.nativeDestinations.activeDestinations.value.some((u) => ql(u)) === !1 || s === !1) && !e && ((r = this.dataplaneEventsQueue) == null ? void 0 : r.scheduleTimeoutActive) !== !0 && (globalThis.clearTimeout(n), (a = this.dataplaneEventsQueue) == null || a.start());
3205
3207
  }), o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && (n = globalThis.setTimeout(() => {
3206
3208
  var s, i;
3207
3209
  ((s = this.dataplaneEventsQueue) == null ? void 0 : s.scheduleTimeoutActive) !== !0 && ((i = this.dataplaneEventsQueue) == null || i.start());
@@ -3217,41 +3219,41 @@ class Zc {
3217
3219
  * @param callback API callback function
3218
3220
  */
3219
3221
  enqueue(e, n) {
3220
- const s = Xc(e, o);
3221
- this.pluginsManager.invokeSingle(`${cs}.enqueue`, o, this.dataplaneEventsQueue, s, this.errorHandler, this.logger);
3222
- const i = I(e);
3223
- this.pluginsManager.invokeSingle(`${ds}.enqueue`, o, this.destinationsEventsQueue, i, this.errorHandler, this.logger);
3224
- const r = `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}${Sn}`;
3225
- Nt(n, [s], r, this.logger);
3222
+ const s = Kc(e, o);
3223
+ this.pluginsManager.invokeSingle(`${us}.enqueue`, o, this.dataplaneEventsQueue, s, this.errorHandler, this.logger);
3224
+ const i = T(e);
3225
+ this.pluginsManager.invokeSingle(`${cs}.enqueue`, o, this.destinationsEventsQueue, i, this.errorHandler, this.logger);
3226
+ const r = `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}${En}`;
3227
+ _t(n, [s], r, this.logger);
3226
3228
  }
3227
3229
  }
3228
- const fs = (t) => {
3230
+ const ds = (t) => {
3229
3231
  const e = new CustomEvent(t, { detail: { analyticsInstance: globalThis.rudderanalytics }, bubbles: !0, cancelable: !0, composed: !0 });
3230
3232
  globalThis.document.dispatchEvent(e);
3231
- }, ed = (t) => B(t) && t.trim().length > 0, td = (t) => Ke(t);
3232
- class nd {
3233
+ }, Qc = (t) => B(t) && t.trim().length > 0, Xc = (t) => Ke(t);
3234
+ class Jc {
3233
3235
  /**
3234
3236
  * Initialize services and components or use default ones if singletons
3235
3237
  */
3236
3238
  constructor() {
3237
- this.preloadBuffer = new Vo(), this.initialized = !1, this.errorHandler = li, this.logger = ve, this.externalSrcLoader = new qs(this.errorHandler, this.logger), this.httpClient = ai, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Dc(this.httpClient, this.errorHandler, this.logger);
3239
+ this.preloadBuffer = new Mo(), this.initialized = !1, this.errorHandler = oi, this.logger = ve, this.externalSrcLoader = new Gs(this.errorHandler, this.logger), this.httpClient = ri, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Ic(this.httpClient, this.errorHandler, this.logger);
3238
3240
  }
3239
3241
  /**
3240
3242
  * Start application lifecycle if not already started
3241
3243
  */
3242
3244
  load(e, n, s = {}) {
3243
3245
  if (!o.lifecycle.status.value) {
3244
- if (!ed(e)) {
3245
- this.logger.error(aa(Kt, e));
3246
+ if (!Qc(e)) {
3247
+ this.logger.error(sa(qt, e));
3246
3248
  return;
3247
3249
  }
3248
- if (!td(n)) {
3249
- this.logger.error(la(Kt, n));
3250
+ if (!Xc(n)) {
3251
+ this.logger.error(ia(qt, n));
3250
3252
  return;
3251
3253
  }
3252
- z(() => {
3253
- o.lifecycle.writeKey.value = I(e), o.lifecycle.dataPlaneUrl.value = I(n), o.loadOptions.value = Wc(o.loadOptions.value, s), o.lifecycle.status.value = "mounted";
3254
- }), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Xs), lt("state", o, e), this.startLifecycle();
3254
+ j(() => {
3255
+ o.lifecycle.writeKey.value = T(e), o.lifecycle.dataPlaneUrl.value = T(n), o.loadOptions.value = jc(o.loadOptions.value, s), o.lifecycle.status.value = "mounted";
3256
+ }), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Ws), lt("state", o, e), this.startLifecycle();
3255
3257
  }
3256
3258
  }
3257
3259
  // Start lifecycle methods
@@ -3295,12 +3297,12 @@ class nd {
3295
3297
  break;
3296
3298
  }
3297
3299
  } catch (e) {
3298
- this.errorHandler.onError(ht(e, "Failed to load the SDK"), Kt);
3300
+ this.errorHandler.onError(dt(e, "Failed to load the SDK"), qt);
3299
3301
  }
3300
3302
  });
3301
3303
  }
3302
3304
  onBrowserCapabilitiesReady() {
3303
- _o(this), this.prepareInternalServices(), this.loadConfig();
3305
+ Oo(this), this.prepareInternalServices(), this.loadConfig();
3304
3306
  }
3305
3307
  onLoaded() {
3306
3308
  this.processBufferedEvents(), o.consents.preConsent.value.enabled === !0 ? o.lifecycle.status.value = "ready" : this.loadDestinations();
@@ -3315,7 +3317,7 @@ class nd {
3315
3317
  * Enqueue in SDK preload buffer events, used from preloadBuffer component
3316
3318
  */
3317
3319
  enqueuePreloadBufferEvents(e) {
3318
- Array.isArray(e) && e.forEach((n) => this.preloadBuffer.enqueue(I(n)));
3320
+ Array.isArray(e) && e.forEach((n) => this.preloadBuffer.enqueue(T(n)));
3319
3321
  }
3320
3322
  /**
3321
3323
  * Process the buffer preloaded events by passing their arguments to the respective facade methods
@@ -3323,11 +3325,11 @@ class nd {
3323
3325
  processDataInPreloadBuffer() {
3324
3326
  for (; this.preloadBuffer.size() > 0; ) {
3325
3327
  const e = this.preloadBuffer.dequeue();
3326
- e && Po([...e], this);
3328
+ e && Ao([...e], this);
3327
3329
  }
3328
3330
  }
3329
3331
  prepareInternalServices() {
3330
- this.pluginsManager = new iu(Kl, this.errorHandler, this.logger), this.storeManager = new Qu(this.pluginsManager, this.errorHandler, this.logger), this.configManager = new Sc(this.httpClient, this.errorHandler, this.logger), this.userSessionManager = new zc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventRepository = new Zc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventManager = new qc(this.eventRepository, this.userSessionManager, this.errorHandler, this.logger);
3332
+ this.pluginsManager = new eu(Gl, this.errorHandler, this.logger), this.storeManager = new zu(this.pluginsManager, this.errorHandler, this.logger), this.configManager = new vc(this.httpClient, this.errorHandler, this.logger), this.userSessionManager = new xc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventRepository = new Wc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventManager = new Hc(this.eventRepository, this.userSessionManager, this.errorHandler, this.logger);
3331
3333
  }
3332
3334
  /**
3333
3335
  * Load configuration
@@ -3356,9 +3358,9 @@ class nd {
3356
3358
  onInitialized() {
3357
3359
  this.processDataInPreloadBuffer();
3358
3360
  const e = o.loadOptions.value.onLoaded;
3359
- Nt(e, [globalThis.rudderanalytics], Qr, this.logger), z(() => {
3361
+ _t(e, [globalThis.rudderanalytics], zr, this.logger), j(() => {
3360
3362
  o.lifecycle.loaded.value = !0, o.lifecycle.status.value = "loaded";
3361
- }), this.initialized = !0, fs("RSA_Initialised");
3363
+ }), this.initialized = !0, ds("RSA_Initialised");
3362
3364
  }
3363
3365
  /**
3364
3366
  * Emit ready event
@@ -3366,8 +3368,8 @@ class nd {
3366
3368
  // eslint-disable-next-line class-methods-use-this
3367
3369
  onReady() {
3368
3370
  o.lifecycle.status.value = "readyExecuted", o.eventBuffer.readyCallbacksArray.value.forEach((e) => {
3369
- Nt(e, [], zt, this.logger);
3370
- }), fs("RSA_Ready");
3371
+ _t(e, [], jt, this.logger);
3372
+ }), ds("RSA_Ready");
3371
3373
  }
3372
3374
  /**
3373
3375
  * Consume preloaded events buffer
@@ -3397,7 +3399,7 @@ class nd {
3397
3399
  return;
3398
3400
  }
3399
3401
  o.lifecycle.status.value = "destinationsLoading", (s = this.pluginsManager) == null || s.invokeSingle("nativeDestinations.load", o, this.externalSrcLoader, this.errorHandler, this.logger), pe(() => {
3400
- (e === 0 || o.nativeDestinations.initializedDestinations.value.length + o.nativeDestinations.failedDestinations.value.length === e) && z(() => {
3402
+ (e === 0 || o.nativeDestinations.initializedDestinations.value.length + o.nativeDestinations.failedDestinations.value.length === e) && j(() => {
3401
3403
  o.lifecycle.status.value = "destinationsReady", o.nativeDestinations.clientDestinationsReady.value = !0;
3402
3404
  });
3403
3405
  });
@@ -3418,10 +3420,10 @@ class nd {
3418
3420
  return;
3419
3421
  }
3420
3422
  if (this.errorHandler.leaveBreadcrumb(`New ${s} invocation`), !S(e)) {
3421
- this.logger.error(Zs(zt));
3423
+ this.logger.error(Xs(jt));
3422
3424
  return;
3423
3425
  }
3424
- o.lifecycle.status.value === "readyExecuted" ? Nt(e, [], zt, this.logger) : o.eventBuffer.readyCallbacksArray.value = [...o.eventBuffer.readyCallbacksArray.value, e];
3426
+ o.lifecycle.status.value === "readyExecuted" ? _t(e, [], jt, this.logger) : o.eventBuffer.readyCallbacksArray.value = [...o.eventBuffer.readyCallbacksArray.value, e];
3425
3427
  }
3426
3428
  page(e, n = !1) {
3427
3429
  var i;
@@ -3430,10 +3432,10 @@ class nd {
3430
3432
  o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
3431
3433
  return;
3432
3434
  }
3433
- this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, (i = this.eventManager) == null || i.addEvent({ type: "page", category: e.category, name: e.name, properties: e.properties, options: e.options, callback: e.callback }), o.capabilities.isAdBlocked.value === !0 && e.category !== $n && this.page(Mt($n, vo, {
3435
+ this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, (i = this.eventManager) == null || i.addEvent({ type: "page", category: e.category, name: e.name, properties: e.properties, options: e.options, callback: e.callback }), o.capabilities.isAdBlocked.value === !0 && e.category !== Mn && this.page(Lt(Mn, ho, {
3434
3436
  // 'title' is intentionally omitted as it does not make sense
3435
3437
  // in v3 implementation
3436
- path: yo
3438
+ path: go
3437
3439
  }, o.loadOptions.value.sendAdblockPageOptions));
3438
3440
  }
3439
3441
  track(e, n = !1) {
@@ -3452,7 +3454,7 @@ class nd {
3452
3454
  o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
3453
3455
  return;
3454
3456
  }
3455
- this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, !!(e.userId && o.session.userId.value && e.userId !== o.session.userId.value) && this.reset(), ie(e.userId) || (r = this.userSessionManager) == null || r.setUserId(e.userId), (a = this.userSessionManager) == null || a.setUserTraits(e.traits), (u = this.eventManager) == null || u.addEvent({ type: s, userId: e.userId, traits: e.traits, options: e.options, callback: e.callback });
3457
+ this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, !!(e.userId && o.session.userId.value && e.userId !== o.session.userId.value) && this.reset(), ne(e.userId) || (r = this.userSessionManager) == null || r.setUserId(e.userId), (a = this.userSessionManager) == null || a.setUserTraits(e.traits), (u = this.eventManager) == null || u.addEvent({ type: s, userId: e.userId, traits: e.traits, options: e.options, callback: e.callback });
3456
3458
  }
3457
3459
  alias(e, n = !1) {
3458
3460
  var r, a;
@@ -3472,7 +3474,7 @@ class nd {
3472
3474
  o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
3473
3475
  return;
3474
3476
  }
3475
- this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, ie(e.groupId) || (i = this.userSessionManager) == null || i.setGroupId(e.groupId), (r = this.userSessionManager) == null || r.setGroupTraits(e.traits), (a = this.eventManager) == null || a.addEvent({ type: s, groupId: e.groupId, traits: e.traits, options: e.options, callback: e.callback });
3477
+ this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, ne(e.groupId) || (i = this.userSessionManager) == null || i.setGroupId(e.groupId), (r = this.userSessionManager) == null || r.setGroupTraits(e.traits), (a = this.eventManager) == null || a.addEvent({ type: s, groupId: e.groupId, traits: e.traits, options: e.options, callback: e.callback });
3476
3478
  }
3477
3479
  reset(e, n = !1) {
3478
3480
  var i;
@@ -3542,19 +3544,19 @@ class nd {
3542
3544
  o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
3543
3545
  return;
3544
3546
  }
3545
- this.errorHandler.leaveBreadcrumb("New consent invocation"), z(() => {
3546
- o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = uc(e);
3547
- const { initialized: l, consentsData: c } = bi(o.consents.postConsent.value.consentManagement, this.logger);
3547
+ this.errorHandler.leaveBreadcrumb("New consent invocation"), j(() => {
3548
+ o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = rc(e);
3549
+ const { initialized: l, consentsData: c } = vi(o.consents.postConsent.value.consentManagement, this.logger);
3548
3550
  o.consents.initialized.value = l, o.consents.data.value = c;
3549
3551
  }), o.consents.enabled.value && !o.consents.initialized.value && ((i = this.pluginsManager) == null || i.invokeSingle("consentManager.updateConsentsInfo", o, this.storeManager, this.logger)), (r = this.storeManager) == null || r.initializeStorageState(), (a = this.userSessionManager) == null || a.syncStorageDataToState(), (u = this.eventManager) == null || u.resume(), this.loadDestinations(), this.sendTrackingEvents(n);
3550
3552
  }
3551
3553
  sendTrackingEvents(e) {
3552
3554
  if (o.consents.postConsent.value.trackConsent) {
3553
- const n = En(bo);
3555
+ const n = bn(mo);
3554
3556
  e ? o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, ["track", n]] : this.track(n);
3555
3557
  }
3556
3558
  if (o.consents.postConsent.value.sendPageEvent) {
3557
- const n = Mt();
3559
+ const n = Lt();
3558
3560
  e ? o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, ["page", n]] : this.page(n);
3559
3561
  }
3560
3562
  }
@@ -3574,13 +3576,13 @@ const _e = class _e {
3574
3576
  try {
3575
3577
  if (_e.globalSingleton)
3576
3578
  return _e.globalSingleton;
3577
- _e.initializeGlobalResources(), this.setDefaultInstanceKey = this.setDefaultInstanceKey.bind(this), this.getAnalyticsInstance = this.getAnalyticsInstance.bind(this), this.load = this.load.bind(this), this.ready = this.ready.bind(this), this.triggerBufferedLoadEvent = this.triggerBufferedLoadEvent.bind(this), this.page = this.page.bind(this), this.track = this.track.bind(this), this.identify = this.identify.bind(this), this.alias = this.alias.bind(this), this.group = this.group.bind(this), this.reset = this.reset.bind(this), this.getAnonymousId = this.getAnonymousId.bind(this), this.setAnonymousId = this.setAnonymousId.bind(this), this.getUserId = this.getUserId.bind(this), this.getUserTraits = this.getUserTraits.bind(this), this.getGroupId = this.getGroupId.bind(this), this.getGroupTraits = this.getGroupTraits.bind(this), this.startSession = this.startSession.bind(this), this.endSession = this.endSession.bind(this), this.getSessionId = this.getSessionId.bind(this), this.setAuthToken = this.setAuthToken.bind(this), this.consent = this.consent.bind(this), _e.globalSingleton = this, o.autoTrack.pageLifecycle.pageViewId.value = Ht(), o.autoTrack.pageLifecycle.pageLoadedTimestamp.value = Date.now(), this.triggerBufferedLoadEvent(), globalThis.rudderanalytics = this;
3579
+ _e.initializeGlobalResources(), this.setDefaultInstanceKey = this.setDefaultInstanceKey.bind(this), this.getAnalyticsInstance = this.getAnalyticsInstance.bind(this), this.load = this.load.bind(this), this.ready = this.ready.bind(this), this.triggerBufferedLoadEvent = this.triggerBufferedLoadEvent.bind(this), this.page = this.page.bind(this), this.track = this.track.bind(this), this.identify = this.identify.bind(this), this.alias = this.alias.bind(this), this.group = this.group.bind(this), this.reset = this.reset.bind(this), this.getAnonymousId = this.getAnonymousId.bind(this), this.setAnonymousId = this.setAnonymousId.bind(this), this.getUserId = this.getUserId.bind(this), this.getUserTraits = this.getUserTraits.bind(this), this.getGroupId = this.getGroupId.bind(this), this.getGroupTraits = this.getGroupTraits.bind(this), this.startSession = this.startSession.bind(this), this.endSession = this.endSession.bind(this), this.getSessionId = this.getSessionId.bind(this), this.setAuthToken = this.setAuthToken.bind(this), this.consent = this.consent.bind(this), _e.globalSingleton = this, o.autoTrack.pageLifecycle.pageViewId.value = Vt(), o.autoTrack.pageLifecycle.pageLoadedTimestamp.value = Date.now(), this.triggerBufferedLoadEvent(), globalThis.rudderanalytics = this;
3578
3580
  } catch (e) {
3579
3581
  U(e);
3580
3582
  }
3581
3583
  }
3582
3584
  static initializeGlobalResources() {
3583
- li.init(), Dn.configure(), Tn.configure(), An.configure(), Bt.configure();
3585
+ oi.init(), An.configure(), Tn.configure(), On.configure(), $t.configure();
3584
3586
  }
3585
3587
  /**
3586
3588
  * Set instance to use if no specific writeKey is provided in methods
@@ -3596,7 +3598,7 @@ const _e = class _e {
3596
3598
  getAnalyticsInstance(e) {
3597
3599
  try {
3598
3600
  let n = e;
3599
- return (!B(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new nd()), this.analyticsInstances[n];
3601
+ return (!B(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new Jc()), this.analyticsInstances[n];
3600
3602
  } catch (n) {
3601
3603
  U(n);
3602
3604
  return;
@@ -3615,8 +3617,8 @@ const _e = class _e {
3615
3617
  if (this.analyticsInstances[e])
3616
3618
  return;
3617
3619
  this.setDefaultInstanceKey(e), this.trackPageLifecycleEvents(s);
3618
- const r = js(it);
3619
- Co(r), lt(it, I(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, A(s));
3620
+ const r = xs(it);
3621
+ To(r), lt(it, T(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, A(s));
3620
3622
  } catch (r) {
3621
3623
  U(r);
3622
3624
  }
@@ -3627,7 +3629,7 @@ const _e = class _e {
3627
3629
  * @returns
3628
3630
  */
3629
3631
  trackPageLifecycleEvents(e) {
3630
- const { autoTrack: n, useBeacon: s } = e ?? {}, { enabled: i = !1, options: r = {}, pageLifecycle: a } = n ?? {}, { events: u = [qt.UNLOADED], enabled: l = i, options: c = r } = a ?? {};
3632
+ const { autoTrack: n, useBeacon: s } = e ?? {}, { enabled: i = !1, options: r = {}, pageLifecycle: a } = n ?? {}, { events: u = [Gt.UNLOADED], enabled: l = i, options: c = r } = a ?? {};
3631
3633
  o.autoTrack.pageLifecycle.enabled.value = l, o.autoTrack.enabled.value = i || l, l && this.setupPageUnloadTracking(u, s, c);
3632
3634
  }
3633
3635
  /**
@@ -3637,20 +3639,20 @@ const _e = class _e {
3637
3639
  * @param options
3638
3640
  */
3639
3641
  setupPageUnloadTracking(e, n, s) {
3640
- (e.length === 0 || e.includes(qt.UNLOADED)) && (n === !0 ? io((i) => {
3642
+ (e.length === 0 || e.includes(Gt.UNLOADED)) && (n === !0 ? eo((i) => {
3641
3643
  if (i === !1 && o.lifecycle.loaded.value) {
3642
3644
  const r = Date.now(), a = r - o.autoTrack.pageLifecycle.pageLoadedTimestamp.value;
3643
- this.track(qt.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Vs(new Date(r)) });
3645
+ this.track(Gt.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Us(new Date(r)) });
3644
3646
  }
3645
- }) : this.logger.warn(Fa(Zr)));
3647
+ }) : this.logger.warn($a(Wr)));
3646
3648
  }
3647
3649
  /**
3648
3650
  * Trigger load event in buffer queue if exists and stores the
3649
3651
  * remaining preloaded events array in global object
3650
3652
  */
3651
3653
  triggerBufferedLoadEvent() {
3652
- const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Do(e);
3653
- lt(it, I([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
3654
+ const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Io(e);
3655
+ lt(it, T([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
3654
3656
  }
3655
3657
  /**
3656
3658
  * Get ready callback arguments and forward to ready call
@@ -3670,7 +3672,7 @@ const _e = class _e {
3670
3672
  page(e, n, s, i, r) {
3671
3673
  var a;
3672
3674
  try {
3673
- (a = this.getAnalyticsInstance()) == null || a.page(Mt(A(e), A(n), A(s), A(i), A(r)));
3675
+ (a = this.getAnalyticsInstance()) == null || a.page(Lt(A(e), A(n), A(s), A(i), A(r)));
3674
3676
  } catch (u) {
3675
3677
  U(u);
3676
3678
  }
@@ -3682,7 +3684,7 @@ const _e = class _e {
3682
3684
  track(e, n, s, i) {
3683
3685
  var r;
3684
3686
  try {
3685
- (r = this.getAnalyticsInstance()) == null || r.track(En(A(e), A(n), A(s), A(i)));
3687
+ (r = this.getAnalyticsInstance()) == null || r.track(bn(A(e), A(n), A(s), A(i)));
3686
3688
  } catch (a) {
3687
3689
  U(a);
3688
3690
  }
@@ -3694,7 +3696,7 @@ const _e = class _e {
3694
3696
  identify(e, n, s, i) {
3695
3697
  var r;
3696
3698
  try {
3697
- (r = this.getAnalyticsInstance()) == null || r.identify(Ms(A(e), A(n), A(s), A(i)));
3699
+ (r = this.getAnalyticsInstance()) == null || r.identify(Ls(A(e), A(n), A(s), A(i)));
3698
3700
  } catch (a) {
3699
3701
  U(a);
3700
3702
  }
@@ -3706,7 +3708,7 @@ const _e = class _e {
3706
3708
  alias(e, n, s, i) {
3707
3709
  var r;
3708
3710
  try {
3709
- (r = this.getAnalyticsInstance()) == null || r.alias($s(A(e), A(n), A(s), A(i)));
3711
+ (r = this.getAnalyticsInstance()) == null || r.alias(ws(A(e), A(n), A(s), A(i)));
3710
3712
  } catch (a) {
3711
3713
  U(a);
3712
3714
  }
@@ -3718,7 +3720,7 @@ const _e = class _e {
3718
3720
  group(e, n, s, i) {
3719
3721
  var r;
3720
3722
  try {
3721
- (r = this.getAnalyticsInstance()) == null || r.group(Us(A(e), A(n), A(s), A(i)));
3723
+ (r = this.getAnalyticsInstance()) == null || r.group(Ms(A(e), A(n), A(s), A(i)));
3722
3724
  } catch (a) {
3723
3725
  U(a);
3724
3726
  }
@@ -3829,20 +3831,20 @@ const _e = class _e {
3829
3831
  // START-NO-SONAR-SCAN
3830
3832
  // eslint-disable-next-line sonarjs/public-static-readonly
3831
3833
  P(_e, "globalSingleton", null);
3832
- let mn = _e;
3833
- const sd = {
3834
+ let hn = _e;
3835
+ const Zc = {
3834
3836
  [Xe.Production]: "2R6mT9xSJCcbvr6JkiEu7vbrUSW",
3835
3837
  [Xe.Sandbox]: "2R6mEpjiTJBErRIn724pt2MWyLA",
3836
3838
  [Xe.Staging]: "2R6llJi7YSuOeJToPXGlQfizt18",
3837
3839
  [Xe.CiCd]: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
3838
3840
  [Xe.Local]: "2QHmFAx84bL4Up6CDHRw0XkKJKC"
3839
- }, id = "https://revolugohxxwg.dataplane.rudderstack.com", rd = window.RevolugoElements.config.apiEnvironment, od = sd[rd], Ii = new mn();
3841
+ }, ed = "https://revolugohxxwg.dataplane.rudderstack.com", td = window.RevolugoElements.config.apiEnvironment, nd = Zc[td], Ri = new hn();
3840
3842
  try {
3841
- Ii.load(od, id);
3843
+ Ri.load(nd, ed);
3842
3844
  } catch (t) {
3843
3845
  console.error(t);
3844
3846
  }
3845
- const Ti = {
3847
+ const Ii = {
3846
3848
  adultCount: {
3847
3849
  type: Number
3848
3850
  },
@@ -3858,10 +3860,10 @@ const Ti = {
3858
3860
  startDate: {
3859
3861
  type: String
3860
3862
  }
3861
- }, Ai = dt({
3863
+ }, Ti = gn({
3862
3864
  components: {
3863
- BPhoneInput: dr,
3864
- BSearchLocationInput: rr
3865
+ BPhoneInput: rr,
3866
+ BSearchLocationInput: tr
3865
3867
  },
3866
3868
  data() {
3867
3869
  return {
@@ -3869,7 +3871,7 @@ const Ti = {
3869
3871
  formData: {
3870
3872
  adultCount: this.adultCount,
3871
3873
  email: "",
3872
- endDate: jt(this.endDate).toDate(),
3874
+ endDate: xt(this.endDate).toDate(),
3873
3875
  location: this.location,
3874
3876
  phoneData: {
3875
3877
  phoneCountry: "FR",
@@ -3878,7 +3880,7 @@ const Ti = {
3878
3880
  },
3879
3881
  roomCount: this.roomCount,
3880
3882
  specificRequest: "",
3881
- startDate: jt(this.startDate).toDate()
3883
+ startDate: xt(this.startDate).toDate()
3882
3884
  },
3883
3885
  isFormValid: !1,
3884
3886
  isSubmitting: !1,
@@ -3903,13 +3905,13 @@ const Ti = {
3903
3905
  },
3904
3906
  methods: {
3905
3907
  formatDate(t) {
3906
- return jt(t).format("YYYY-MM-DD");
3908
+ return xt(t).format("YYYY-MM-DD");
3907
3909
  },
3908
3910
  onSubmit() {
3909
3911
  var e, n;
3910
3912
  this.isSubmitting = !0;
3911
3913
  let t = ((e = this.config.eventMetadata) == null ? void 0 : e.name) || "";
3912
- (n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Ii.track(
3914
+ (n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Ri.track(
3913
3915
  "accommodation-request",
3914
3916
  {
3915
3917
  data: {
@@ -3926,15 +3928,15 @@ const Ti = {
3926
3928
  }
3927
3929
  },
3928
3930
  name: "ContactForm",
3929
- props: Ti,
3931
+ props: Ii,
3930
3932
  setup() {
3931
- const { t } = pn();
3933
+ const { t } = mn();
3932
3934
  return {
3933
3935
  t
3934
3936
  };
3935
3937
  }
3936
3938
  });
3937
- function hs(t) {
3939
+ function fs(t) {
3938
3940
  const e = t;
3939
3941
  e.__i18n = e.__i18n || [], e.__i18n.push({
3940
3942
  locale: "",
@@ -4103,7 +4105,7 @@ function hs(t) {
4103
4105
  }
4104
4106
  });
4105
4107
  }
4106
- const Di = Ie({
4108
+ const Oi = Te({
4107
4109
  active: {
4108
4110
  type: [String, Array],
4109
4111
  default: void 0
@@ -4113,15 +4115,15 @@ const Di = Ie({
4113
4115
  default: null
4114
4116
  },
4115
4117
  nextIcon: {
4116
- type: Et,
4118
+ type: yt,
4117
4119
  default: "$next"
4118
4120
  },
4119
4121
  prevIcon: {
4120
- type: Et,
4122
+ type: yt,
4121
4123
  default: "$prev"
4122
4124
  },
4123
4125
  modeIcon: {
4124
- type: Et,
4126
+ type: yt,
4125
4127
  default: "$subgroup"
4126
4128
  },
4127
4129
  text: String,
@@ -4129,9 +4131,9 @@ const Di = Ie({
4129
4131
  type: String,
4130
4132
  default: "month"
4131
4133
  }
4132
- }, "VDatePickerControls"), gs = Me()({
4134
+ }, "VDatePickerControls"), hs = Me()({
4133
4135
  name: "VDatePickerControls",
4134
- props: Di(),
4136
+ props: Oi(),
4135
4137
  emits: {
4136
4138
  "click:year": () => !0,
4137
4139
  "click:month": () => !0,
@@ -4156,7 +4158,7 @@ const Di = Ie({
4156
4158
  function d() {
4157
4159
  n("click:month");
4158
4160
  }
4159
- return We(() => b("div", {
4161
+ return Ye(() => b("div", {
4160
4162
  class: ["v-date-picker-controls"]
4161
4163
  }, [b(ae, {
4162
4164
  class: "v-date-picker-controls__month-btn",
@@ -4174,7 +4176,7 @@ const Di = Ie({
4174
4176
  icon: t.modeIcon,
4175
4177
  variant: "text",
4176
4178
  onClick: c
4177
- }, null), b(gr, null, null), b("div", {
4179
+ }, null), b(lr, null, null), b("div", {
4178
4180
  class: "v-date-picker-controls__month"
4179
4181
  }, [b(ae, {
4180
4182
  "data-testid": "prev-month",
@@ -4190,15 +4192,15 @@ const Di = Ie({
4190
4192
  onClick: l
4191
4193
  }, null)])])), {};
4192
4194
  }
4193
- }), ad = Ie({
4194
- appendIcon: Et,
4195
+ }), sd = Te({
4196
+ appendIcon: yt,
4195
4197
  color: String,
4196
4198
  header: String,
4197
4199
  transition: String,
4198
- onClick: Fi()
4199
- }, "VDatePickerHeader"), ms = Me()({
4200
+ onClick: $i()
4201
+ }, "VDatePickerHeader"), gs = Me()({
4200
4202
  name: "VDatePickerHeader",
4201
- props: ad(),
4203
+ props: sd(),
4202
4204
  emits: {
4203
4205
  click: () => !0,
4204
4206
  "click:append": () => !0
@@ -4211,14 +4213,14 @@ const Di = Ie({
4211
4213
  const {
4212
4214
  backgroundColorClasses: i,
4213
4215
  backgroundColorStyles: r
4214
- } = Rs(t, "color");
4216
+ } = Cs(t, "color");
4215
4217
  function a() {
4216
4218
  n("click");
4217
4219
  }
4218
4220
  function u() {
4219
4221
  n("click:append");
4220
4222
  }
4221
- return We(() => {
4223
+ return Ye(() => {
4222
4224
  const l = !!(s.default || t.header), c = !!(s.append || t.appendIcon);
4223
4225
  return b("div", {
4224
4226
  class: ["v-date-picker-header", {
@@ -4229,7 +4231,7 @@ const Di = Ie({
4229
4231
  }, [s.prepend && b("div", {
4230
4232
  key: "prepend",
4231
4233
  class: "v-date-picker-header__prepend"
4232
- }, [s.prepend()]), l && b(Os, {
4234
+ }, [s.prepend()]), l && b(_s, {
4233
4235
  key: "content",
4234
4236
  name: t.transition
4235
4237
  }, {
@@ -4242,7 +4244,7 @@ const Di = Ie({
4242
4244
  }
4243
4245
  }), c && b("div", {
4244
4246
  class: "v-date-picker-header__append"
4245
- }, [s.append ? b(Ft, {
4247
+ }, [s.append ? b(Bt, {
4246
4248
  key: "append-defaults",
4247
4249
  disabled: !t.appendIcon,
4248
4250
  defaults: {
@@ -4264,7 +4266,7 @@ const Di = Ie({
4264
4266
  }, null)])]);
4265
4267
  }), {};
4266
4268
  }
4267
- }), ld = Ie({
4269
+ }), id = Te({
4268
4270
  allowedDates: [Array, Function],
4269
4271
  disabled: {
4270
4272
  type: Boolean,
@@ -4287,8 +4289,8 @@ const Di = Ie({
4287
4289
  },
4288
4290
  firstDayOfWeek: [Number, String]
4289
4291
  }, "calendar");
4290
- function ud(t) {
4291
- const e = ft(), n = Le(t, "modelValue", [], (f) => St(f)), s = $(() => t.displayValue ? e.date(t.displayValue) : n.value.length > 0 ? e.date(n.value[0]) : t.min ? e.date(t.min) : Array.isArray(t.allowedDates) ? e.date(t.allowedDates[0]) : e.date()), i = Le(t, "year", void 0, (f) => {
4292
+ function rd(t) {
4293
+ const e = ct(), n = Le(t, "modelValue", [], (f) => bt(f)), s = $(() => t.displayValue ? e.date(t.displayValue) : n.value.length > 0 ? e.date(n.value[0]) : t.min ? e.date(t.min) : Array.isArray(t.allowedDates) ? e.date(t.allowedDates[0]) : e.date()), i = Le(t, "year", void 0, (f) => {
4292
4294
  const m = f != null ? Number(f) : e.getYear(s.value);
4293
4295
  return e.startOfYear(e.setYear(e.date(), m));
4294
4296
  }, (f) => e.getYear(f)), r = Le(t, "month", void 0, (f) => {
@@ -4309,7 +4311,7 @@ function ud(t) {
4309
4311
  });
4310
4312
  function c(f, m) {
4311
4313
  return f.filter((v) => u.value.includes(e.toJsDate(v).getDay())).map((v, k) => {
4312
- const E = e.toISO(v), _ = !e.isSameMonth(v, r.value), W = e.isSameDay(v, e.startOfMonth(r.value)), x = e.isSameDay(v, e.endOfMonth(r.value)), Z = e.isSameDay(v, r.value);
4314
+ const E = e.toISO(v), _ = !e.isSameMonth(v, r.value), z = e.isSameDay(v, e.startOfMonth(r.value)), x = e.isSameDay(v, e.endOfMonth(r.value)), J = e.isSameDay(v, r.value);
4313
4315
  return {
4314
4316
  date: v,
4315
4317
  isoDate: E,
@@ -4322,10 +4324,10 @@ function ud(t) {
4322
4324
  isToday: e.isSameDay(v, m),
4323
4325
  isAdjacent: _,
4324
4326
  isHidden: _ && !t.showAdjacentMonths,
4325
- isStart: W,
4327
+ isStart: z,
4326
4328
  isSelected: n.value.some((fe) => e.isSameDay(v, fe)),
4327
4329
  isEnd: x,
4328
- isSame: Z,
4330
+ isSame: J,
4329
4331
  localized: e.format(v, "dayOfMonth")
4330
4332
  };
4331
4333
  });
@@ -4339,7 +4341,7 @@ function ud(t) {
4339
4341
  }), h = $(() => {
4340
4342
  const f = l.value.flat(), m = e.date();
4341
4343
  return c(f, m);
4342
- }), y = $(() => l.value.map((f) => f.length ? Hi(e, f[0]) : null));
4344
+ }), y = $(() => l.value.map((f) => f.length ? Ui(e, f[0]) : null));
4343
4345
  function g(f) {
4344
4346
  if (t.disabled) return !0;
4345
4347
  const m = e.date(f);
@@ -4356,7 +4358,7 @@ function ud(t) {
4356
4358
  weekNumbers: y
4357
4359
  };
4358
4360
  }
4359
- const Ci = Ie({
4361
+ const Ai = Te({
4360
4362
  color: String,
4361
4363
  hideWeekdays: Boolean,
4362
4364
  multiple: [Boolean, Number, String],
@@ -4369,10 +4371,10 @@ const Ci = Ie({
4369
4371
  type: String,
4370
4372
  default: "picker-reverse-transition"
4371
4373
  },
4372
- ...ot(ld(), ["displayValue"])
4373
- }, "VDatePickerMonth"), ps = Me()({
4374
+ ...ot(id(), ["displayValue"])
4375
+ }, "VDatePickerMonth"), ms = Me()({
4374
4376
  name: "VDatePickerMonth",
4375
- props: Ci(),
4377
+ props: Ai(),
4376
4378
  emits: {
4377
4379
  "update:modelValue": (t) => !0,
4378
4380
  "update:month": (t) => !0,
@@ -4383,17 +4385,17 @@ const Ci = Ie({
4383
4385
  emit: n,
4384
4386
  slots: s
4385
4387
  } = e;
4386
- const i = tn(), {
4388
+ const i = Zt(), {
4387
4389
  daysInMonth: r,
4388
4390
  model: a,
4389
4391
  weekNumbers: u
4390
- } = ud(t), l = ft(), c = kt(), d = kt(), h = kt(!1), y = $(() => h.value ? t.reverseTransition : t.transition);
4392
+ } = rd(t), l = ct(), c = Et(), d = Et(), h = Et(!1), y = $(() => h.value ? t.reverseTransition : t.transition);
4391
4393
  t.multiple === "range" && a.value.length > 0 && (c.value = a.value[0], a.value.length > 1 && (d.value = a.value[a.value.length - 1]));
4392
4394
  const g = $(() => {
4393
4395
  const k = ["number", "string"].includes(typeof t.multiple) ? Number(t.multiple) : 1 / 0;
4394
4396
  return a.value.length >= k;
4395
4397
  });
4396
- Ts(r, (k, E) => {
4398
+ ks(r, (k, E) => {
4397
4399
  E && (h.value = l.isBefore(k[0].date, E[0].date));
4398
4400
  });
4399
4401
  function f(k) {
@@ -4407,12 +4409,12 @@ const Ci = Ie({
4407
4409
  c.value = void 0, a.value = [];
4408
4410
  return;
4409
4411
  } else l.isBefore(E, c.value) ? (d.value = l.endOfDay(c.value), c.value = E) : d.value = l.endOfDay(E);
4410
- const _ = l.getDiff(d.value, c.value, "days"), W = [c.value];
4412
+ const _ = l.getDiff(d.value, c.value, "days"), z = [c.value];
4411
4413
  for (let x = 1; x < _; x++) {
4412
- const Z = l.addDays(c.value, x);
4413
- W.push(Z);
4414
+ const J = l.addDays(c.value, x);
4415
+ z.push(J);
4414
4416
  }
4415
- W.push(d.value), a.value = W;
4417
+ z.push(d.value), a.value = z;
4416
4418
  }
4417
4419
  }
4418
4420
  function m(k) {
@@ -4437,7 +4439,7 @@ const Ci = Ie({
4437
4439
  class: "v-date-picker-month__day"
4438
4440
  }, [je(" ")]), u.value.map((k) => b("div", {
4439
4441
  class: ["v-date-picker-month__day", "v-date-picker-month__day--adjacent"]
4440
- }, [k]))]), b(Os, {
4442
+ }, [k]))]), b(_s, {
4441
4443
  name: y.value
4442
4444
  }, {
4443
4445
  default: () => {
@@ -4449,7 +4451,7 @@ const Ci = Ie({
4449
4451
  }, [!t.hideWeekdays && l.getWeekdays(t.firstDayOfWeek).map((E) => b("div", {
4450
4452
  class: ["v-date-picker-month__day", "v-date-picker-month__weekday"]
4451
4453
  }, [E])), r.value.map((E, _) => {
4452
- const W = {
4454
+ const z = {
4453
4455
  props: {
4454
4456
  onClick: () => v(E.date)
4455
4457
  },
@@ -4465,7 +4467,7 @@ const Ci = Ie({
4465
4467
  "v-date-picker-month__day--week-start": E.isWeekStart
4466
4468
  }],
4467
4469
  "data-v-date": E.isDisabled ? void 0 : E.isoDate
4468
- }, [(t.showAdjacentMonths || !E.isAdjacent) && b(Ft, {
4470
+ }, [(t.showAdjacentMonths || !E.isAdjacent) && b(Bt, {
4469
4471
  defaults: {
4470
4472
  VBtn: {
4471
4473
  class: "v-date-picker-month__day-btn",
@@ -4481,23 +4483,23 @@ const Ci = Ie({
4481
4483
  }, {
4482
4484
  default: () => {
4483
4485
  var x;
4484
- return [((x = s.day) == null ? void 0 : x.call(s, W)) ?? b(ae, W.props, null)];
4486
+ return [((x = s.day) == null ? void 0 : x.call(s, z)) ?? b(ae, z.props, null)];
4485
4487
  }
4486
4488
  })]);
4487
4489
  })])];
4488
4490
  }
4489
4491
  })]);
4490
4492
  }
4491
- }), _i = Ie({
4493
+ }), Di = Te({
4492
4494
  color: String,
4493
4495
  height: [String, Number],
4494
4496
  min: null,
4495
4497
  max: null,
4496
4498
  modelValue: Number,
4497
4499
  year: Number
4498
- }, "VDatePickerMonths"), vs = Me()({
4500
+ }, "VDatePickerMonths"), ps = Me()({
4499
4501
  name: "VDatePickerMonths",
4500
- props: _i(),
4502
+ props: Di(),
4501
4503
  emits: {
4502
4504
  "update:modelValue": (t) => !0
4503
4505
  },
@@ -4506,9 +4508,9 @@ const Ci = Ie({
4506
4508
  emit: n,
4507
4509
  slots: s
4508
4510
  } = e;
4509
- const i = ft(), r = Le(t, "modelValue"), a = $(() => {
4511
+ const i = ct(), r = Le(t, "modelValue"), a = $(() => {
4510
4512
  let u = i.startOfYear(i.date());
4511
- return t.year && (u = i.setYear(u, t.year)), As(12).map((l) => {
4513
+ return t.year && (u = i.setYear(u, t.year)), Rs(12).map((l) => {
4512
4514
  const c = i.format(u, "monthShort"), d = !!(t.min && i.isAfter(i.startOfMonth(i.date(t.min)), u) || t.max && i.isAfter(u, i.startOfMonth(i.date(t.max))));
4513
4515
  return u = i.getNextMonth(u), {
4514
4516
  isDisabled: d,
@@ -4517,12 +4519,12 @@ const Ci = Ie({
4517
4519
  };
4518
4520
  });
4519
4521
  });
4520
- return Ds(() => {
4522
+ return Is(() => {
4521
4523
  r.value = r.value ?? i.getMonth(i.date());
4522
- }), We(() => b("div", {
4524
+ }), Ye(() => b("div", {
4523
4525
  class: "v-date-picker-months",
4524
4526
  style: {
4525
- height: Cs(t.height)
4527
+ height: Ts(t.height)
4526
4528
  }
4527
4529
  }, [b("div", {
4528
4530
  class: "v-date-picker-months__content"
@@ -4548,20 +4550,20 @@ const Ci = Ie({
4548
4550
  month: u,
4549
4551
  i: l,
4550
4552
  props: c
4551
- })) ?? b(ae, te({
4553
+ })) ?? b(ae, re({
4552
4554
  key: "month"
4553
4555
  }, c), null);
4554
4556
  })])])), {};
4555
4557
  }
4556
- }), Pi = Ie({
4558
+ }), Ci = Te({
4557
4559
  color: String,
4558
4560
  height: [String, Number],
4559
4561
  min: null,
4560
4562
  max: null,
4561
4563
  modelValue: Number
4562
- }, "VDatePickerYears"), ys = Me()({
4564
+ }, "VDatePickerYears"), vs = Me()({
4563
4565
  name: "VDatePickerYears",
4564
- props: Pi(),
4566
+ props: Ci(),
4565
4567
  emits: {
4566
4568
  "update:modelValue": (t) => !0
4567
4569
  },
@@ -4570,12 +4572,12 @@ const Ci = Ie({
4570
4572
  emit: n,
4571
4573
  slots: s
4572
4574
  } = e;
4573
- const i = ft(), r = Le(t, "modelValue"), a = $(() => {
4575
+ const i = ct(), r = Le(t, "modelValue"), a = $(() => {
4574
4576
  const l = i.getYear(i.date());
4575
4577
  let c = l - 100, d = l + 52;
4576
4578
  t.min && (c = i.getYear(i.date(t.min))), t.max && (d = i.getYear(i.date(t.max)));
4577
4579
  let h = i.startOfYear(i.date());
4578
- return h = i.setYear(h, c), As(d - c + 1, c).map((y) => {
4580
+ return h = i.setYear(h, c), Rs(d - c + 1, c).map((y) => {
4579
4581
  const g = i.format(h, "year");
4580
4582
  return h = i.setYear(h, i.getYear(h) + 1), {
4581
4583
  text: g,
@@ -4583,19 +4585,19 @@ const Ci = Ie({
4583
4585
  };
4584
4586
  });
4585
4587
  });
4586
- Ds(() => {
4588
+ Is(() => {
4587
4589
  r.value = r.value ?? i.getYear(i.date());
4588
4590
  });
4589
- const u = xi();
4590
- return Gi(async () => {
4591
+ const u = Bi();
4592
+ return Vi(async () => {
4591
4593
  var l;
4592
- await ji(), (l = u.el) == null || l.scrollIntoView({
4594
+ await Fi(), (l = u.el) == null || l.scrollIntoView({
4593
4595
  block: "center"
4594
4596
  });
4595
- }), We(() => b("div", {
4597
+ }), Ye(() => b("div", {
4596
4598
  class: "v-date-picker-years",
4597
4599
  style: {
4598
- height: Cs(t.height)
4600
+ height: Ts(t.height)
4599
4601
  }
4600
4602
  }, [b("div", {
4601
4603
  class: "v-date-picker-years__content"
@@ -4620,20 +4622,20 @@ const Ci = Ie({
4620
4622
  year: l,
4621
4623
  i: c,
4622
4624
  props: d
4623
- })) ?? b(ae, te({
4625
+ })) ?? b(ae, re({
4624
4626
  key: "month"
4625
4627
  }, d), null);
4626
4628
  })])])), {};
4627
4629
  }
4628
- }), cd = vr("v-picker-title"), Ni = Ie({
4630
+ }), od = cr("v-picker-title"), _i = Te({
4629
4631
  bgColor: String,
4630
4632
  landscape: Boolean,
4631
4633
  title: String,
4632
4634
  hideHeader: Boolean,
4633
- ...br()
4634
- }, "VPicker"), bs = Me()({
4635
+ ...fr()
4636
+ }, "VPicker"), ys = Me()({
4635
4637
  name: "VPicker",
4636
- props: Ni(),
4638
+ props: _i(),
4637
4639
  setup(t, e) {
4638
4640
  let {
4639
4641
  slots: n
@@ -4641,10 +4643,10 @@ const Ci = Ie({
4641
4643
  const {
4642
4644
  backgroundColorClasses: s,
4643
4645
  backgroundColorStyles: i
4644
- } = Rs(qi(t, "color"));
4645
- return We(() => {
4646
- const r = _n.filterProps(t), a = !!(t.title || n.title);
4647
- return b(_n, te(r, {
4646
+ } = Cs(Hi(t, "color"));
4647
+ return Ye(() => {
4648
+ const r = Cn.filterProps(t), a = !!(t.title || n.title);
4649
+ return b(Cn, re(r, {
4648
4650
  color: t.bgColor,
4649
4651
  class: ["v-picker", {
4650
4652
  "v-picker--landscape": t.landscape,
@@ -4658,7 +4660,7 @@ const Ci = Ie({
4658
4660
  key: "header",
4659
4661
  class: [s.value],
4660
4662
  style: [i.value]
4661
- }, [a && b(cd, {
4663
+ }, [a && b(od, {
4662
4664
  key: "picker-title"
4663
4665
  }, {
4664
4666
  default: () => {
@@ -4669,7 +4671,7 @@ const Ci = Ie({
4669
4671
  class: "v-picker__header"
4670
4672
  }, [n.header()])]), b("div", {
4671
4673
  class: "v-picker__body"
4672
- }, [(u = n.default) == null ? void 0 : u.call(n)]), n.actions && b(Ft, {
4674
+ }, [(u = n.default) == null ? void 0 : u.call(n)]), n.actions && b(Bt, {
4673
4675
  defaults: {
4674
4676
  VBtn: {
4675
4677
  slim: !0,
@@ -4685,7 +4687,7 @@ const Ci = Ie({
4685
4687
  });
4686
4688
  }), {};
4687
4689
  }
4688
- }), dd = Ie({
4690
+ }), ad = Te({
4689
4691
  // TODO: implement in v3.5
4690
4692
  // calendarIcon: {
4691
4693
  // type: String,
@@ -4711,19 +4713,19 @@ const Ci = Ie({
4711
4713
  type: String,
4712
4714
  default: "$vuetify.datePicker.header"
4713
4715
  },
4714
- ...Di(),
4715
- ...Ci({
4716
+ ...Oi(),
4717
+ ...Ai({
4716
4718
  weeksInMonth: "static"
4717
4719
  }),
4718
- ...ot(_i(), ["modelValue"]),
4719
- ...ot(Pi(), ["modelValue"]),
4720
- ...Ni({
4720
+ ...ot(Di(), ["modelValue"]),
4721
+ ...ot(Ci(), ["modelValue"]),
4722
+ ..._i({
4721
4723
  title: "$vuetify.datePicker.title"
4722
4724
  }),
4723
4725
  modelValue: null
4724
- }, "VDatePicker"), Es = Me()({
4726
+ }, "VDatePicker"), bs = Me()({
4725
4727
  name: "VDatePicker",
4726
- props: dd(),
4728
+ props: ad(),
4727
4729
  emits: {
4728
4730
  "update:modelValue": (t) => !0,
4729
4731
  "update:month": (t) => !0,
@@ -4736,72 +4738,72 @@ const Ci = Ie({
4736
4738
  emit: n,
4737
4739
  slots: s
4738
4740
  } = e;
4739
- const i = ft(), {
4741
+ const i = ct(), {
4740
4742
  t: r
4741
- } = zi(), a = Le(t, "modelValue", void 0, (O) => St(O), (O) => t.multiple ? O : O[0]), u = Le(t, "viewMode"), l = $(() => {
4742
- const O = i.date(t.min);
4743
- return t.min && i.isValid(O) ? O : null;
4743
+ } = xi(), a = Le(t, "modelValue", void 0, (I) => bt(I), (I) => t.multiple ? I : I[0]), u = Le(t, "viewMode"), l = $(() => {
4744
+ const I = i.date(t.min);
4745
+ return t.min && i.isValid(I) ? I : null;
4744
4746
  }), c = $(() => {
4745
- const O = i.date(t.max);
4746
- return t.max && i.isValid(O) ? O : null;
4747
+ const I = i.date(t.max);
4748
+ return t.max && i.isValid(I) ? I : null;
4747
4749
  }), d = $(() => {
4748
- var re;
4749
- const O = i.date();
4750
- let V = O;
4751
- return (re = a.value) != null && re[0] ? V = i.date(a.value[0]) : l.value && i.isBefore(O, l.value) ? V = l.value : c.value && i.isAfter(O, c.value) && (V = c.value), V && i.isValid(V) ? V : O;
4752
- }), h = tn(Number(t.month ?? i.getMonth(i.startOfMonth(d.value)))), y = tn(Number(t.year ?? i.getYear(i.startOfYear(i.setMonth(d.value, h.value))))), g = kt(!1), f = $(() => t.multiple && a.value.length > 1 ? r("$vuetify.datePicker.itemsSelected", a.value.length) : a.value[0] && i.isValid(a.value[0]) ? i.format(i.date(a.value[0]), "normalDateWithWeekday") : r(t.header)), m = $(() => {
4753
- let O = i.date();
4754
- return O = i.setDate(O, 1), O = i.setMonth(O, h.value), O = i.setYear(O, y.value), i.format(O, "monthAndYear");
4750
+ var se;
4751
+ const I = i.date();
4752
+ let V = I;
4753
+ return (se = a.value) != null && se[0] ? V = i.date(a.value[0]) : l.value && i.isBefore(I, l.value) ? V = l.value : c.value && i.isAfter(I, c.value) && (V = c.value), V && i.isValid(V) ? V : I;
4754
+ }), h = Zt(Number(t.month ?? i.getMonth(i.startOfMonth(d.value)))), y = Zt(Number(t.year ?? i.getYear(i.startOfYear(i.setMonth(d.value, h.value))))), g = Et(!1), f = $(() => t.multiple && a.value.length > 1 ? r("$vuetify.datePicker.itemsSelected", a.value.length) : a.value[0] && i.isValid(a.value[0]) ? i.format(i.date(a.value[0]), "normalDateWithWeekday") : r(t.header)), m = $(() => {
4755
+ let I = i.date();
4756
+ return I = i.setDate(I, 1), I = i.setMonth(I, h.value), I = i.setYear(I, y.value), i.format(I, "monthAndYear");
4755
4757
  }), v = $(() => `date-picker-header${g.value ? "-reverse" : ""}-transition`), k = $(() => {
4756
4758
  if (t.disabled) return !0;
4757
- const O = [];
4759
+ const I = [];
4758
4760
  if (u.value !== "month")
4759
- O.push("prev", "next");
4761
+ I.push("prev", "next");
4760
4762
  else {
4761
4763
  let V = i.date();
4762
4764
  if (V = i.startOfMonth(V), V = i.setMonth(V, h.value), V = i.setYear(V, y.value), l.value) {
4763
- const re = i.addDays(i.startOfMonth(V), -1);
4764
- i.isAfter(l.value, re) && O.push("prev");
4765
+ const se = i.addDays(i.startOfMonth(V), -1);
4766
+ i.isAfter(l.value, se) && I.push("prev");
4765
4767
  }
4766
4768
  if (c.value) {
4767
- const re = i.addDays(i.endOfMonth(V), 1);
4768
- i.isAfter(re, c.value) && O.push("next");
4769
+ const se = i.addDays(i.endOfMonth(V), 1);
4770
+ i.isAfter(se, c.value) && I.push("next");
4769
4771
  }
4770
4772
  }
4771
- return O;
4773
+ return I;
4772
4774
  });
4773
4775
  function E() {
4774
- h.value < 11 ? h.value++ : (y.value++, h.value = 0, Te(y.value)), fe(h.value);
4776
+ h.value < 11 ? h.value++ : (y.value++, h.value = 0, Oe(y.value)), fe(h.value);
4775
4777
  }
4776
4778
  function _() {
4777
- h.value > 0 ? h.value-- : (y.value--, h.value = 11, Te(y.value)), fe(h.value);
4779
+ h.value > 0 ? h.value-- : (y.value--, h.value = 11, Oe(y.value)), fe(h.value);
4778
4780
  }
4779
- function W() {
4781
+ function z() {
4780
4782
  u.value = "month";
4781
4783
  }
4782
4784
  function x() {
4783
4785
  u.value = u.value === "months" ? "month" : "months";
4784
4786
  }
4785
- function Z() {
4787
+ function J() {
4786
4788
  u.value = u.value === "year" ? "month" : "year";
4787
4789
  }
4788
- function fe(O) {
4789
- u.value === "months" && x(), n("update:month", O);
4790
+ function fe(I) {
4791
+ u.value === "months" && x(), n("update:month", I);
4790
4792
  }
4791
- function Te(O) {
4792
- u.value === "year" && Z(), n("update:year", O);
4793
+ function Oe(I) {
4794
+ u.value === "year" && J(), n("update:year", I);
4793
4795
  }
4794
- return Ts(a, (O, V) => {
4795
- const re = St(V), Ye = St(O);
4796
- if (!Ye.length) return;
4797
- const Gt = i.date(re[re.length - 1]), Qe = i.date(Ye[Ye.length - 1]), $e = i.getMonth(Qe), F = i.getYear(Qe);
4798
- $e !== h.value && (h.value = $e, fe(h.value)), F !== y.value && (y.value = F, Te(y.value)), g.value = i.isBefore(Gt, Qe);
4799
- }), We(() => {
4800
- const O = bs.filterProps(t), V = gs.filterProps(t), re = ms.filterProps(t), Ye = ps.filterProps(t), Gt = ot(vs.filterProps(t), ["modelValue"]), Qe = ot(ys.filterProps(t), ["modelValue"]), $e = {
4796
+ return ks(a, (I, V) => {
4797
+ const se = bt(V), We = bt(I);
4798
+ if (!We.length) return;
4799
+ const Ht = i.date(se[se.length - 1]), Qe = i.date(We[We.length - 1]), $e = i.getMonth(Qe), F = i.getYear(Qe);
4800
+ $e !== h.value && (h.value = $e, fe(h.value)), F !== y.value && (y.value = F, Oe(y.value)), g.value = i.isBefore(Ht, Qe);
4801
+ }), Ye(() => {
4802
+ const I = ys.filterProps(t), V = hs.filterProps(t), se = gs.filterProps(t), We = ms.filterProps(t), Ht = ot(ps.filterProps(t), ["modelValue"]), Qe = ot(vs.filterProps(t), ["modelValue"]), $e = {
4801
4803
  header: f.value,
4802
4804
  transition: v.value
4803
4805
  };
4804
- return b(bs, te(O, {
4806
+ return b(ys, re(I, {
4805
4807
  class: ["v-date-picker", `v-date-picker--${u.value}`, {
4806
4808
  "v-date-picker--show-week": t.showWeek
4807
4809
  }, t.class],
@@ -4813,7 +4815,7 @@ const Ci = Ie({
4813
4815
  class: "v-date-picker__title"
4814
4816
  }, [r(t.title)]);
4815
4817
  },
4816
- header: () => s.header ? b(Ft, {
4818
+ header: () => s.header ? b(Bt, {
4817
4819
  defaults: {
4818
4820
  VDatePickerHeader: {
4819
4821
  ...$e
@@ -4824,48 +4826,48 @@ const Ci = Ie({
4824
4826
  var F;
4825
4827
  return [(F = s.header) == null ? void 0 : F.call(s, $e)];
4826
4828
  }
4827
- }) : b(ms, te({
4829
+ }) : b(gs, re({
4828
4830
  key: "header"
4829
- }, re, $e, {
4830
- onClick: u.value !== "month" ? W : void 0
4831
+ }, se, $e, {
4832
+ onClick: u.value !== "month" ? z : void 0
4831
4833
  }), {
4832
4834
  ...s,
4833
4835
  default: void 0
4834
4836
  }),
4835
- default: () => b(He, null, [b(gs, te(V, {
4837
+ default: () => b(He, null, [b(hs, re(V, {
4836
4838
  disabled: k.value,
4837
4839
  text: m.value,
4838
4840
  "onClick:next": E,
4839
4841
  "onClick:prev": _,
4840
4842
  "onClick:month": x,
4841
- "onClick:year": Z
4842
- }), null), b(mr, {
4843
+ "onClick:year": J
4844
+ }), null), b(ur, {
4843
4845
  hideOnLeave: !0
4844
4846
  }, {
4845
- default: () => [u.value === "months" ? b(vs, te({
4847
+ default: () => [u.value === "months" ? b(ps, re({
4846
4848
  key: "date-picker-months"
4847
- }, Gt, {
4849
+ }, Ht, {
4848
4850
  modelValue: h.value,
4849
4851
  "onUpdate:modelValue": [(F) => h.value = F, fe],
4850
4852
  min: l.value,
4851
4853
  max: c.value,
4852
4854
  year: y.value
4853
- }), null) : u.value === "year" ? b(ys, te({
4855
+ }), null) : u.value === "year" ? b(vs, re({
4854
4856
  key: "date-picker-years"
4855
4857
  }, Qe, {
4856
4858
  modelValue: y.value,
4857
- "onUpdate:modelValue": [(F) => y.value = F, Te],
4859
+ "onUpdate:modelValue": [(F) => y.value = F, Oe],
4858
4860
  min: l.value,
4859
4861
  max: c.value
4860
- }), null) : b(ps, te({
4862
+ }), null) : b(ms, re({
4861
4863
  key: "date-picker-month"
4862
- }, Ye, {
4864
+ }, We, {
4863
4865
  modelValue: a.value,
4864
4866
  "onUpdate:modelValue": (F) => a.value = F,
4865
4867
  month: h.value,
4866
4868
  "onUpdate:month": [(F) => h.value = F, fe],
4867
4869
  year: y.value,
4868
- "onUpdate:year": [(F) => y.value = F, Te],
4870
+ "onUpdate:year": [(F) => y.value = F, Oe],
4869
4871
  min: l.value,
4870
4872
  max: c.value
4871
4873
  }), null)]
@@ -4874,16 +4876,16 @@ const Ci = Ie({
4874
4876
  });
4875
4877
  }), {};
4876
4878
  }
4877
- }), fd = { class: "d-flex justify-end" };
4878
- function hd(t, e, n, s, i, r) {
4879
- const a = q("BPhoneInput"), u = q("BSearchLocationInput");
4880
- return N(), ge("div", null, [
4881
- b(Er, {
4879
+ }), ld = { class: "d-flex justify-end" };
4880
+ function ud(t, e, n, s, i, r) {
4881
+ const a = oe("BPhoneInput"), u = oe("BSearchLocationInput");
4882
+ return M(), ge("div", null, [
4883
+ b(hr, {
4882
4884
  modelValue: t.isFormValid,
4883
4885
  "onUpdate:modelValue": e[13] || (e[13] = (l) => t.isFormValid = l),
4884
4886
  style: { gap: "8px", display: "flex", flexDirection: "column" }
4885
4887
  }, {
4886
- default: D(() => [
4888
+ default: C(() => [
4887
4889
  b(Je, {
4888
4890
  modelValue: t.formData.email,
4889
4891
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.formData.email = l),
@@ -4894,7 +4896,7 @@ function hd(t, e, n, s, i, r) {
4894
4896
  rules: t.rules.email,
4895
4897
  color: "primary"
4896
4898
  }, {
4897
- message: D(({ message: l }) => [
4899
+ message: C(({ message: l }) => [
4898
4900
  je(xe(t.t(l)), 1)
4899
4901
  ]),
4900
4902
  _: 1
@@ -4905,18 +4907,18 @@ function hd(t, e, n, s, i, r) {
4905
4907
  class: "mt-0"
4906
4908
  }, null, 8, ["modelValue"]),
4907
4909
  b(st, { class: "mt-0" }, {
4908
- default: D(() => [
4910
+ default: C(() => [
4909
4911
  b(Pe, null, {
4910
- default: D(() => [
4911
- b(Cn, {
4912
+ default: C(() => [
4913
+ b(Dn, {
4912
4914
  modelValue: t.menuStartDate,
4913
4915
  "onUpdate:modelValue": e[4] || (e[4] = (l) => t.menuStartDate = l),
4914
4916
  "close-on-content-click": !1,
4915
4917
  "min-width": "auto",
4916
4918
  transition: "scale-transition"
4917
4919
  }, {
4918
- activator: D(({ props: l }) => [
4919
- b(Je, te({
4920
+ activator: C(({ props: l }) => [
4921
+ b(Je, re({
4920
4922
  "model-value": t.formatDate(t.formData.startDate),
4921
4923
  density: "compact",
4922
4924
  "hide-details": "",
@@ -4926,8 +4928,8 @@ function hd(t, e, n, s, i, r) {
4926
4928
  required: ""
4927
4929
  }, l, { color: "primary" }), null, 16, ["model-value", "label"])
4928
4930
  ]),
4929
- default: D(() => [
4930
- b(Es, {
4931
+ default: C(() => [
4932
+ b(bs, {
4931
4933
  modelValue: t.formData.startDate,
4932
4934
  "onUpdate:modelValue": [
4933
4935
  e[2] || (e[2] = (l) => t.formData.startDate = l),
@@ -4941,16 +4943,16 @@ function hd(t, e, n, s, i, r) {
4941
4943
  _: 1
4942
4944
  }),
4943
4945
  b(Pe, null, {
4944
- default: D(() => [
4945
- b(Cn, {
4946
+ default: C(() => [
4947
+ b(Dn, {
4946
4948
  modelValue: t.menuEndDate,
4947
4949
  "onUpdate:modelValue": e[7] || (e[7] = (l) => t.menuEndDate = l),
4948
4950
  "close-on-content-click": !1,
4949
4951
  "min-width": "auto",
4950
4952
  transition: "scale-transition"
4951
4953
  }, {
4952
- activator: D(({ props: l }) => [
4953
- b(Je, te({
4954
+ activator: C(({ props: l }) => [
4955
+ b(Je, re({
4954
4956
  "model-value": t.formatDate(t.formData.endDate),
4955
4957
  density: "compact",
4956
4958
  "hide-details": "",
@@ -4960,8 +4962,8 @@ function hd(t, e, n, s, i, r) {
4960
4962
  required: ""
4961
4963
  }, l, { color: "primary" }), null, 16, ["model-value", "label"])
4962
4964
  ]),
4963
- default: D(() => [
4964
- b(Es, {
4965
+ default: C(() => [
4966
+ b(bs, {
4965
4967
  modelValue: t.formData.endDate,
4966
4968
  "onUpdate:modelValue": [
4967
4969
  e[5] || (e[5] = (l) => t.formData.endDate = l),
@@ -4978,9 +4980,9 @@ function hd(t, e, n, s, i, r) {
4978
4980
  _: 1
4979
4981
  }),
4980
4982
  b(st, null, {
4981
- default: D(() => [
4983
+ default: C(() => [
4982
4984
  b(Pe, null, {
4983
- default: D(() => [
4985
+ default: C(() => [
4984
4986
  b(Je, {
4985
4987
  modelValue: t.formData.adultCount,
4986
4988
  "onUpdate:modelValue": e[8] || (e[8] = (l) => t.formData.adultCount = l),
@@ -4998,7 +5000,7 @@ function hd(t, e, n, s, i, r) {
4998
5000
  _: 1
4999
5001
  }),
5000
5002
  b(Pe, null, {
5001
- default: D(() => [
5003
+ default: C(() => [
5002
5004
  b(Je, {
5003
5005
  modelValue: t.formData.roomCount,
5004
5006
  "onUpdate:modelValue": e[9] || (e[9] = (l) => t.formData.roomCount = l),
@@ -5025,7 +5027,7 @@ function hd(t, e, n, s, i, r) {
5025
5027
  variant: "outlined",
5026
5028
  "with-details": ""
5027
5029
  }, null, 8, ["modelValue"]),
5028
- b(fr, {
5030
+ b(or, {
5029
5031
  modelValue: t.formData.specificRequest,
5030
5032
  "onUpdate:modelValue": e[11] || (e[11] = (l) => t.formData.specificRequest = l),
5031
5033
  density: "compact",
@@ -5033,7 +5035,7 @@ function hd(t, e, n, s, i, r) {
5033
5035
  variant: "outlined",
5034
5036
  color: "primary"
5035
5037
  }, null, 8, ["modelValue", "label"]),
5036
- nn("div", fd, [
5038
+ en("div", ld, [
5037
5039
  b(ae, {
5038
5040
  color: t.isSuccess ? "green" : "primary",
5039
5041
  "data-cy": "submit-button",
@@ -5042,7 +5044,7 @@ function hd(t, e, n, s, i, r) {
5042
5044
  loading: t.isSubmitting,
5043
5045
  onClick: e[12] || (e[12] = (l) => t.onSubmit())
5044
5046
  }, {
5045
- default: D(() => [
5047
+ default: C(() => [
5046
5048
  je(xe(t.t("ContactForm.submit")), 1)
5047
5049
  ]),
5048
5050
  _: 1
@@ -5053,9 +5055,9 @@ function hd(t, e, n, s, i, r) {
5053
5055
  }, 8, ["modelValue"])
5054
5056
  ]);
5055
5057
  }
5056
- typeof hs == "function" && hs(Ai);
5057
- const gd = /* @__PURE__ */ ct(Ai, [["render", hd]]), md = {
5058
- ...Ti,
5058
+ typeof fs == "function" && fs(Ti);
5059
+ const cd = /* @__PURE__ */ pn(Ti, [["render", ud]]), dd = {
5060
+ ...Ii,
5059
5061
  boilerplateSkeleton: {
5060
5062
  type: Boolean
5061
5063
  },
@@ -5072,11 +5074,11 @@ const gd = /* @__PURE__ */ ct(Ai, [["render", hd]]), md = {
5072
5074
  type: {
5073
5075
  type: String
5074
5076
  }
5075
- }, Li = dt({
5077
+ }, Pi = gn({
5076
5078
  components: {
5077
- BErrorOverlay: Vi,
5078
- ContactForm: gd,
5079
- HotelOfferItemLayout: Ns
5079
+ BErrorOverlay: ar,
5080
+ ContactForm: cd,
5081
+ HotelOfferItemLayout: Ds
5080
5082
  },
5081
5083
  computed: {
5082
5084
  wording() {
@@ -5145,11 +5147,11 @@ const gd = /* @__PURE__ */ ct(Ai, [["render", hd]]), md = {
5145
5147
  this.$emit("reset-filters");
5146
5148
  }
5147
5149
  },
5148
- mixins: [_s],
5150
+ mixins: [Os],
5149
5151
  name: "HotelOfferListEmpty",
5150
- props: md,
5152
+ props: dd,
5151
5153
  setup() {
5152
- const { t } = pn();
5154
+ const { t } = mn();
5153
5155
  return {
5154
5156
  t
5155
5157
  };
@@ -5163,7 +5165,7 @@ const gd = /* @__PURE__ */ ct(Ai, [["render", hd]]), md = {
5163
5165
  }
5164
5166
  }
5165
5167
  });
5166
- function Ss(t) {
5168
+ function Es(t) {
5167
5169
  const e = t;
5168
5170
  e.__i18n = e.__i18n || [], e.__i18n.push({
5169
5171
  locale: "",
@@ -5339,32 +5341,32 @@ function Ss(t) {
5339
5341
  }
5340
5342
  });
5341
5343
  }
5342
- const pd = { class: "position-relative" };
5343
- function vd(t, e, n, s, i, r) {
5344
- const a = q("HotelOfferItemLayout"), u = q("ContactForm"), l = q("BErrorOverlay");
5345
- return N(), ge("div", pd, [
5346
- (N(), ge(He, null, Ps(6, (c) => (N(), ge(He, { key: c }, [
5344
+ const fd = { class: "position-relative" };
5345
+ function hd(t, e, n, s, i, r) {
5346
+ const a = oe("HotelOfferItemLayout"), u = oe("ContactForm"), l = oe("BErrorOverlay");
5347
+ return M(), ge("div", fd, [
5348
+ (M(), ge(He, null, As(6, (c) => (M(), ge(He, { key: c }, [
5347
5349
  b(a, {
5348
5350
  boilerplate: t.boilerplateSkeleton,
5349
- class: Rt({
5351
+ class: St({
5350
5352
  "mt-0": c === 1,
5351
5353
  "mb-0": c === t.itemCount,
5352
5354
  "mb-2": t.$breakpointService.xs
5353
5355
  })
5354
5356
  }, null, 8, ["boilerplate", "class"]),
5355
- t.$breakpointService.xs ? ee("", !0) : (N(), j(sn, { key: 0 }))
5357
+ t.$breakpointService.xs ? Z("", !0) : (M(), Q(tn, { key: 0 }))
5356
5358
  ], 64))), 64)),
5357
- t.typeData ? (N(), j(l, {
5359
+ t.typeData ? (M(), Q(l, {
5358
5360
  key: 0,
5359
5361
  "z-index": 0
5360
5362
  }, {
5361
- title: D(() => [
5363
+ title: C(() => [
5362
5364
  je(xe(t.wording.title), 1)
5363
5365
  ]),
5364
- description: D(() => [
5365
- nn("div", null, [
5366
- nn("p", null, xe(t.wording.description), 1),
5367
- t.typeData !== "noResultsFiltered" && t.typeData !== "accommodationSuccess" ? (N(), j(u, {
5366
+ description: C(() => [
5367
+ en("div", null, [
5368
+ en("p", null, xe(t.wording.description), 1),
5369
+ t.typeData !== "noResultsFiltered" && t.typeData !== "accommodationSuccess" ? (M(), Q(u, {
5368
5370
  key: 0,
5369
5371
  "adult-count": t.adultCount,
5370
5372
  "end-date": t.checkOutDate,
@@ -5372,41 +5374,41 @@ function vd(t, e, n, s, i, r) {
5372
5374
  "room-count": t.roomCount,
5373
5375
  "start-date": t.checkInDate,
5374
5376
  onAccommodationSuccess: e[0] || (e[0] = (c) => t.typeData = "accommodationSuccess")
5375
- }, null, 8, ["adult-count", "end-date", "location", "room-count", "start-date"])) : ee("", !0),
5376
- t.typeData === "noResultsFiltered" ? (N(), j(ae, {
5377
+ }, null, 8, ["adult-count", "end-date", "location", "room-count", "start-date"])) : Z("", !0),
5378
+ t.typeData === "noResultsFiltered" ? (M(), Q(ae, {
5377
5379
  key: 1,
5378
5380
  color: "primary",
5379
5381
  variant: "outlined",
5380
5382
  size: "small",
5381
5383
  onClick: t.onResetFilters
5382
5384
  }, {
5383
- default: D(() => [
5385
+ default: C(() => [
5384
5386
  je(xe(t.t("HotelOfferListEmpty.noResultsFiltered.reset")), 1)
5385
5387
  ]),
5386
5388
  _: 1
5387
- }, 8, ["onClick"])) : ee("", !0)
5389
+ }, 8, ["onClick"])) : Z("", !0)
5388
5390
  ])
5389
5391
  ]),
5390
5392
  _: 1
5391
- })) : ee("", !0)
5393
+ })) : Z("", !0)
5392
5394
  ]);
5393
5395
  }
5394
- typeof Ss == "function" && Ss(Li);
5395
- const yd = /* @__PURE__ */ ct(Li, [["render", vd]]), wi = dt({
5396
+ typeof Es == "function" && Es(Pi);
5397
+ const gd = /* @__PURE__ */ pn(Pi, [["render", hd]]), Ni = gn({
5396
5398
  components: {
5397
- BHotelOffersFilterBar: lr,
5398
- BHotelSearchBar: kr,
5399
- HotelOfferItem: ar,
5400
- HotelOfferItemLayout: Ns,
5401
- HotelOfferListEmpty: yd,
5402
- HotelRoomOfferList: Sr,
5403
- TermsAndConditions: Or
5399
+ BHotelOffersFilterBar: ir,
5400
+ BHotelSearchBar: mr,
5401
+ HotelOfferItem: sr,
5402
+ HotelOfferItemLayout: Ds,
5403
+ HotelOfferListEmpty: gd,
5404
+ HotelRoomOfferList: gr,
5405
+ TermsAndConditions: yr
5404
5406
  },
5405
5407
  computed: {
5406
- ...Ki(
5407
- Xi,
5408
- hr,
5409
- Qi
5408
+ ...Gi(
5409
+ Ki,
5410
+ br,
5411
+ zi
5410
5412
  ),
5411
5413
  areFiltersActive: ye("hotelOffers/areFiltersActive"),
5412
5414
  displayFiltersMenu() {
@@ -5420,7 +5422,7 @@ const yd = /* @__PURE__ */ ct(Li, [["render", vd]]), wi = dt({
5420
5422
  isPollingHotelOffers: ye("hotelOffers/isPolling"),
5421
5423
  isTopPicksSelected() {
5422
5424
  var t;
5423
- return ((t = this.filters.sort_by) == null ? void 0 : t.value) === Yi.TopPicks;
5425
+ return ((t = this.filters.sort_by) == null ? void 0 : t.value) === qi.TopPicks;
5424
5426
  },
5425
5427
  showErrorMessage() {
5426
5428
  return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
@@ -5463,23 +5465,23 @@ const yd = /* @__PURE__ */ ct(Li, [["render", vd]]), wi = dt({
5463
5465
  }
5464
5466
  },
5465
5467
  mixins: [
5466
- _s,
5467
- or,
5468
- pr(
5468
+ Os,
5469
+ nr,
5470
+ vr(
5469
5471
  ["bookingApiClient", "config.currency", "config.lang"],
5470
5472
  "retrieveHotelOffers"
5471
5473
  ),
5472
- cr,
5473
- Rr({
5474
+ Ji,
5475
+ pr({
5474
5476
  fallbackValue: {},
5475
5477
  propsName: "features"
5476
5478
  }),
5477
- Ir()
5479
+ Er()
5478
5480
  ],
5479
5481
  name: "HotelOfferList",
5480
- props: vn,
5482
+ props: Rr,
5481
5483
  setup() {
5482
- const { t } = pn();
5484
+ const { t } = mn();
5483
5485
  return {
5484
5486
  t
5485
5487
  };
@@ -5488,7 +5490,7 @@ const yd = /* @__PURE__ */ ct(Li, [["render", vd]]), wi = dt({
5488
5490
  filters: {
5489
5491
  deep: !0,
5490
5492
  async handler(t, e) {
5491
- Wi(t, e) || await this.retrieveHotelOffers();
5493
+ ji(t, e) || await this.retrieveHotelOffers();
5492
5494
  }
5493
5495
  },
5494
5496
  "hotelOfferRequest.id": {
@@ -5509,7 +5511,7 @@ const yd = /* @__PURE__ */ ct(Li, [["render", vd]]), wi = dt({
5509
5511
  }
5510
5512
  }
5511
5513
  });
5512
- function ks(t) {
5514
+ function Ss(t) {
5513
5515
  const e = t;
5514
5516
  e.__i18n = e.__i18n || [], e.__i18n.push({
5515
5517
  locale: "",
@@ -5552,72 +5554,72 @@ function ks(t) {
5552
5554
  }
5553
5555
  });
5554
5556
  }
5555
- const bd = {
5557
+ const md = {
5556
5558
  key: 0,
5557
5559
  class: "mx-n2"
5558
- }, Ed = {
5560
+ }, pd = {
5559
5561
  key: 1,
5560
5562
  class: "d-flex justify-center align-center py-3"
5561
5563
  };
5562
- function Sd(t, e, n, s, i, r) {
5563
- const a = q("BHotelSearchBar"), u = q("BHotelOffersFilterBar"), l = q("HotelOfferListEmpty"), c = q("HotelRoomOfferList"), d = q("HotelOfferItem"), h = q("TermsAndConditions");
5564
- return N(), j(Tr, {
5564
+ function vd(t, e, n, s, i, r) {
5565
+ const a = oe("BHotelSearchBar"), u = oe("BHotelOffersFilterBar"), l = oe("HotelOfferListEmpty"), c = oe("HotelRoomOfferList"), d = oe("HotelOfferItem"), h = oe("TermsAndConditions");
5566
+ return M(), Q(Sr, {
5565
5567
  ref: "hotel-offer-list-container",
5566
5568
  class: "pa-0 bg-white",
5567
- style: er([{ "min-height": "500px" }, {
5569
+ style: Qi([{ "min-height": "500px" }, {
5568
5570
  height: t.parsedHeight,
5569
5571
  maxHeight: t.maxHeight,
5570
5572
  overflowY: "auto",
5571
5573
  overflowX: "hidden"
5572
5574
  }])
5573
5575
  }, {
5574
- default: D(() => [
5575
- t.parsedFeatures.HotelOfferSearchMenu ? (N(), j(st, {
5576
+ default: C(() => [
5577
+ t.parsedFeatures.HotelOfferSearchMenu ? (M(), Q(st, {
5576
5578
  key: 0,
5577
- class: Rt(["px-2 pt-4", t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""]),
5579
+ class: St(["px-2 pt-4", t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""]),
5578
5580
  "no-gutters": ""
5579
5581
  }, {
5580
- default: D(() => [
5582
+ default: C(() => [
5581
5583
  b(Pe, null, {
5582
- default: D(() => [
5583
- t.isBookingApiClientDefined ? (N(), j(a, {
5584
+ default: C(() => [
5585
+ t.isBookingApiClientDefined ? (M(), Q(a, {
5584
5586
  key: 0,
5585
5587
  modelValue: t.hotelOfferRequestInternal,
5586
5588
  "onUpdate:modelValue": e[0] || (e[0] = (y) => t.hotelOfferRequestInternal = y),
5587
5589
  "is-fetching": t.showSkeleton,
5588
5590
  "loading-bar-enabled": !1,
5589
5591
  "with-border": !1
5590
- }, null, 8, ["modelValue", "is-fetching"])) : ee("", !0)
5592
+ }, null, 8, ["modelValue", "is-fetching"])) : Z("", !0)
5591
5593
  ]),
5592
5594
  _: 1
5593
5595
  })
5594
5596
  ]),
5595
5597
  _: 1
5596
- }, 8, ["class"])) : ee("", !0),
5597
- t.displayFiltersMenu && t.isBookingApiClientDefined ? (N(), j(st, {
5598
+ }, 8, ["class"])) : Z("", !0),
5599
+ t.displayFiltersMenu && t.isBookingApiClientDefined ? (M(), Q(st, {
5598
5600
  key: 1,
5599
- class: Rt(t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""),
5601
+ class: St(t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : ""),
5600
5602
  "no-gutters": ""
5601
5603
  }, {
5602
- default: D(() => [
5604
+ default: C(() => [
5603
5605
  b(Pe, null, {
5604
- default: D(() => [
5606
+ default: C(() => [
5605
5607
  b(u),
5606
- t.$breakpointService.xs ? ee("", !0) : (N(), j(sn, { key: 0 }))
5608
+ t.$breakpointService.xs ? Z("", !0) : (M(), Q(tn, { key: 0 }))
5607
5609
  ]),
5608
5610
  _: 1
5609
5611
  })
5610
5612
  ]),
5611
5613
  _: 1
5612
- }, 8, ["class"])) : ee("", !0),
5614
+ }, 8, ["class"])) : Z("", !0),
5613
5615
  b(st, { "no-gutters": "" }, {
5614
- default: D(() => [
5616
+ default: C(() => [
5615
5617
  b(Pe, null, {
5616
- default: D(() => [
5617
- t.showSkeleton ? (N(), j(l, { key: 0 })) : t.showErrorMessage ? (N(), j(l, {
5618
+ default: C(() => [
5619
+ t.showSkeleton ? (M(), Q(l, { key: 0 })) : t.showErrorMessage ? (M(), Q(l, {
5618
5620
  key: 1,
5619
5621
  type: "internalError"
5620
- })) : t.showNoResultsMessage ? (N(), j(l, {
5622
+ })) : t.showNoResultsMessage ? (M(), Q(l, {
5621
5623
  key: 2,
5622
5624
  address: t.hotelOfferRequest.address,
5623
5625
  "adult-count": t.hotelOfferRequest.adultCount,
@@ -5629,18 +5631,18 @@ function Sd(t, e, n, s, i, r) {
5629
5631
  "source-market": t.hotelOfferRequest.sourceMarket,
5630
5632
  type: "noResults",
5631
5633
  onResetFilters: t.onResetFilters
5632
- }, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : (N(), ge(He, { key: 3 }, [
5633
- Ji(b(yr, {
5634
+ }, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : (M(), ge(He, { key: 3 }, [
5635
+ Yi(b(dr, {
5634
5636
  color: "primary",
5635
5637
  indeterminate: ""
5636
5638
  }, null, 512), [
5637
- [Zi, t.loadingBarEnabled && t.isPollingHotelOffers]
5639
+ [Wi, t.loadingBarEnabled && t.isPollingHotelOffers]
5638
5640
  ]),
5639
- t.hotelOffers ? (N(!0), ge(He, { key: 0 }, Ps(t.hotelOffers, (y, g) => (N(), ge(He, {
5641
+ t.hotelOffers ? (M(!0), ge(He, { key: 0 }, As(t.hotelOffers, (y, g) => (M(), ge(He, {
5640
5642
  key: y.id
5641
5643
  }, [
5642
5644
  b(d, {
5643
- class: Rt(["pr-3", {
5645
+ class: St(["pr-3", {
5644
5646
  "mt-0": g === 0,
5645
5647
  "mb-0": g === t.hotelOffers.length - 1
5646
5648
  }]),
@@ -5650,10 +5652,10 @@ function Sd(t, e, n, s, i, r) {
5650
5652
  onMouseleave: t.onHotelOfferItemMouseleave,
5651
5653
  onMouseover: (f) => t.onHotelOfferItemMouseover(y)
5652
5654
  }, {
5653
- default: D(() => {
5655
+ default: C(() => {
5654
5656
  var f;
5655
5657
  return [
5656
- (f = t.parsedFeatures.HotelOfferItem) != null && f.HotelRoomOfferList ? (N(), ge("div", bd, [
5658
+ (f = t.parsedFeatures.HotelOfferItem) != null && f.HotelRoomOfferList ? (M(), ge("div", md, [
5657
5659
  b(c, {
5658
5660
  "adult-count": t.hotelOfferRequest.adultCount,
5659
5661
  "check-in-date": t.hotelOfferRequest.checkInDate,
@@ -5665,14 +5667,14 @@ function Sd(t, e, n, s, i, r) {
5665
5667
  "room-count": t.hotelOfferRequest.roomCount,
5666
5668
  "source-market": t.hotelOfferRequest.sourceMarket
5667
5669
  }, null, 8, ["adult-count", "check-in-date", "check-out-date", "children", "hotel-id", "hotel-timezone", "limit", "room-count", "source-market"])
5668
- ])) : ee("", !0)
5670
+ ])) : Z("", !0)
5669
5671
  ];
5670
5672
  }),
5671
5673
  _: 2
5672
5674
  }, 1032, ["class", "features", "hotel-offer", "single-offer", "onMouseleave", "onMouseover"]),
5673
- b(sn)
5674
- ], 64))), 128)) : ee("", !0),
5675
- t.startingAfter ? (N(), ge("div", Ed, [
5675
+ b(tn)
5676
+ ], 64))), 128)) : Z("", !0),
5677
+ t.startingAfter ? (M(), ge("div", pd, [
5676
5678
  b(ae, {
5677
5679
  color: "primary",
5678
5680
  variant: "flat",
@@ -5680,12 +5682,12 @@ function Sd(t, e, n, s, i, r) {
5680
5682
  loading: t.isPollingHotelOffers,
5681
5683
  onClick: t.onSeeMoreClick
5682
5684
  }, {
5683
- default: D(() => [
5685
+ default: C(() => [
5684
5686
  je(xe(t.t("HotelOfferList.showMore")), 1)
5685
5687
  ]),
5686
5688
  _: 1
5687
5689
  }, 8, ["disabled", "loading", "onClick"])
5688
- ])) : ee("", !0)
5690
+ ])) : Z("", !0)
5689
5691
  ], 64))
5690
5692
  ]),
5691
5693
  _: 1
@@ -5693,70 +5695,20 @@ function Sd(t, e, n, s, i, r) {
5693
5695
  ]),
5694
5696
  _: 1
5695
5697
  }),
5696
- t.parsedFeatures.TermsAndConditionsFooter ? (N(), j(h, {
5698
+ t.parsedFeatures.TermsAndConditionsFooter ? (M(), Q(h, {
5697
5699
  key: 2,
5698
5700
  theme: "light"
5699
- })) : ee("", !0)
5701
+ })) : Z("", !0)
5700
5702
  ]),
5701
5703
  _: 1
5702
5704
  }, 8, ["style"]);
5703
5705
  }
5704
- typeof ks == "function" && ks(wi);
5705
- const Mi = /* @__PURE__ */ ct(wi, [["render", Sd]]), kd = dt({
5706
- components: {
5707
- HotelOfferList: Mi,
5708
- WebComponentWrapper: Is
5709
- },
5710
- props: vn
5711
- });
5712
- function Rd(t, e, n, s, i, r) {
5713
- const a = q("HotelOfferList"), u = q("WebComponentWrapper");
5714
- return N(), j(u, null, {
5715
- default: D(() => [
5716
- b(a, te(t.$props, { features: {
5717
- HotelOfferSearchMenu: !0,
5718
- FiltersBar: !0,
5719
- TermsAndConditionsFooter: !0,
5720
- HotelOfferItem: {
5721
- HotelDescriptionViewDialog: !1,
5722
- HotelRoomOfferList: !0,
5723
- HotelRoomOffersViewDialog: !0,
5724
- RoomsDetails: !0
5725
- }
5726
- } }), null, 16)
5727
- ]),
5728
- _: 1
5729
- });
5730
- }
5731
- const Od = /* @__PURE__ */ ct(kd, [["render", Rd]]), Qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5732
- __proto__: null,
5733
- default: Od
5734
- }, Symbol.toStringTag, { value: "Module" })), Id = dt({
5735
- components: {
5736
- HotelOfferList: Mi,
5737
- WebComponentWrapper: Is
5738
- },
5739
- props: vn
5740
- });
5741
- function Td(t, e, n, s, i, r) {
5742
- const a = q("HotelOfferList", !0), u = q("WebComponentWrapper");
5743
- return N(), j(u, null, {
5744
- default: D(() => [
5745
- b(a, tr(nr(t.$props)), null, 16)
5746
- ]),
5747
- _: 1
5748
- });
5749
- }
5750
- const Ad = /* @__PURE__ */ ct(Id, [["render", Td]]), Xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5751
- __proto__: null,
5752
- default: Ad
5753
- }, Symbol.toStringTag, { value: "Module" }));
5754
- Bi("css/revolugo.hotelofferlist.BkctzTMI.css");
5706
+ typeof Ss == "function" && Ss(Ni);
5707
+ const xd = /* @__PURE__ */ pn(Ni, [["render", vd]]);
5708
+ Mi("css/revolugo.hotelofferlist.BkctzTMI.css");
5755
5709
  export {
5756
- Qd as F,
5757
- Ar as H,
5758
- Mi as a,
5759
- Xd as b,
5760
- vn as h
5710
+ xd as H,
5711
+ kr as a,
5712
+ Rr as h
5761
5713
  };
5762
- //# sourceMappingURL=revolugo.hotelofferlist.BTgDe-tp.min.js.map
5714
+ //# sourceMappingURL=revolugo.hotelofferlist.Il2LjMCL.min.js.map