@launchdarkly/session-replay 0.5.1 → 0.5.2

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.
@@ -21,7 +21,7 @@ const Br = /* @__PURE__ */ Object.create(null), Ve = (e, t, ...i) => {
21
21
  Br[`${e}-${t}`] || (Br[`${e}-${t}`] = !0, Ve(e, i, ...n));
22
22
  }, bu = (e, ...t) => mu(void 0, null, function* () {
23
23
  try {
24
- const { LDObserve: i } = yield import("./LDObserve-BeLi-QhE.js");
24
+ const { LDObserve: i } = yield import("./LDObserve-BKmgHYw8.js");
25
25
  i.recordLog(`${e}${t}`, "warn");
26
26
  } catch {
27
27
  }
@@ -3222,7 +3222,7 @@ function Wd(e) {
3222
3222
  }
3223
3223
  return $i.get(t);
3224
3224
  }
3225
- function Ie(e) {
3225
+ function Se(e) {
3226
3226
  for (var t = [], i = 1; i < arguments.length; i++)
3227
3227
  t[i - 1] = arguments[i];
3228
3228
  typeof e == "string" && (e = [e]);
@@ -3244,7 +3244,7 @@ function vd() {
3244
3244
  dn = !1;
3245
3245
  }
3246
3246
  var Ft = {
3247
- gql: Ie,
3247
+ gql: Se,
3248
3248
  resetCaches: Cd,
3249
3249
  disableFragmentWarnings: Rd,
3250
3250
  enableExperimentalFragmentVariables: kd,
@@ -3252,14 +3252,14 @@ var Ft = {
3252
3252
  };
3253
3253
  (function(e) {
3254
3254
  e.gql = Ft.gql, e.resetCaches = Ft.resetCaches, e.disableFragmentWarnings = Ft.disableFragmentWarnings, e.enableExperimentalFragmentVariables = Ft.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = Ft.disableExperimentalFragmentVariables;
3255
- })(Ie || (Ie = {}));
3256
- Ie.default = Ie;
3257
- const jl = Ie`
3255
+ })(Se || (Se = {}));
3256
+ Se.default = Se;
3257
+ const jl = Se`
3258
3258
  fragment MatchParts on MatchConfig {
3259
3259
  regexValue
3260
3260
  matchValue
3261
3261
  }
3262
- `, wd = Ie`
3262
+ `, wd = Se`
3263
3263
  mutation PushPayload(
3264
3264
  $session_secure_id: String!
3265
3265
  $payload_id: ID!
@@ -3285,7 +3285,7 @@ const jl = Ie`
3285
3285
  highlight_logs: $highlight_logs
3286
3286
  )
3287
3287
  }
3288
- `, Ql = Ie`
3288
+ `, Ql = Se`
3289
3289
  mutation PushSessionEvents(
3290
3290
  $session_secure_id: String!
3291
3291
  $payload_id: Int64ID!
@@ -3297,7 +3297,7 @@ const jl = Ie`
3297
3297
  data: $data
3298
3298
  )
3299
3299
  }
3300
- `, xd = Ie`
3300
+ `, xd = Se`
3301
3301
  mutation identifySession(
3302
3302
  $session_secure_id: String!
3303
3303
  $user_identifier: String!
@@ -3309,7 +3309,7 @@ const jl = Ie`
3309
3309
  user_object: $user_object
3310
3310
  )
3311
3311
  }
3312
- `, Td = Ie`
3312
+ `, Td = Se`
3313
3313
  mutation addSessionProperties(
3314
3314
  $session_secure_id: String!
3315
3315
  $properties_object: Any
@@ -3319,11 +3319,11 @@ const jl = Ie`
3319
3319
  properties_object: $properties_object
3320
3320
  )
3321
3321
  }
3322
- `, Nd = Ie`
3322
+ `, Nd = Se`
3323
3323
  mutation pushMetrics($metrics: [MetricInput]!) {
3324
3324
  pushMetrics(metrics: $metrics)
3325
3325
  }
3326
- `, Ld = Ie`
3326
+ `, Ld = Se`
3327
3327
  mutation addSessionFeedback(
3328
3328
  $session_secure_id: String!
3329
3329
  $user_name: String
@@ -3339,7 +3339,7 @@ const jl = Ie`
3339
3339
  timestamp: $timestamp
3340
3340
  )
3341
3341
  }
3342
- `, Jd = Ie`
3342
+ `, Jd = Se`
3343
3343
  mutation initializeSession(
3344
3344
  $session_secure_id: String!
3345
3345
  $session_key: String
@@ -3427,11 +3427,11 @@ const jl = Ie`
3427
3427
  }
3428
3428
  }
3429
3429
  ${jl}
3430
- `, Yd = Ie`
3430
+ `, Yd = Se`
3431
3431
  query Ignore($id: ID!) {
3432
3432
  ignore(id: $id)
3433
3433
  }
3434
- `, Ud = Ie`
3434
+ `, Ud = Se`
3435
3435
  query GetSamplingConfig($organization_verbose_id: String!) {
3436
3436
  sampling(organization_verbose_id: $organization_verbose_id) {
3437
3437
  spans {
@@ -3814,17 +3814,17 @@ const Xt = new $d(), pn = new qd(), ri = () => {
3814
3814
  e({ keyName: i, keyValue: n }), t.apply(this, [i, n]);
3815
3815
  };
3816
3816
  };
3817
- var ge = /* @__PURE__ */ ((e) => (e.SEGMENT_LAST_SENT_HASH_KEY = "HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY", e.SESSION_ID = "sessionID", e.SESSION_DATA = "sessionData", e.USER_IDENTIFIER = "highlightIdentifier", e.USER_OBJECT = "highlightUserObject", e))(ge || {});
3818
- const Jn = (e) => `${ge.SESSION_DATA}_${e}`, ih = () => {
3817
+ var Ze = /* @__PURE__ */ ((e) => (e.SEGMENT_LAST_SENT_HASH_KEY = "HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY", e.SESSION_ID = "sessionID", e.SESSION_DATA = "sessionData", e.USER_IDENTIFIER = "highlightIdentifier", e.USER_OBJECT = "highlightUserObject", e))(Ze || {});
3818
+ const Jn = (e) => `${Ze.SESSION_DATA}_${e}`, ih = () => {
3819
3819
  var e;
3820
3820
  return typeof globalThis < "u" && (e = globalThis.persistentSessionSecureID) != null && e.length ? globalThis.persistentSessionSecureID : Al();
3821
3821
  }, nh = (e) => {
3822
3822
  typeof globalThis < "u" && e != null && e.length && (globalThis.persistentSessionSecureID = e);
3823
3823
  }, Al = () => {
3824
3824
  var e;
3825
- return (e = Xe(ge.SESSION_ID)) != null ? e : "";
3825
+ return (e = Xe(Ze.SESSION_ID)) != null ? e : "";
3826
3826
  }, At = (e) => {
3827
- Pe(ge.SESSION_ID, e);
3827
+ Pe(Ze.SESSION_ID, e);
3828
3828
  }, sh = (e) => {
3829
3829
  const t = Jn(e);
3830
3830
  return JSON.parse(Xe(t) || "{}");
@@ -3842,7 +3842,7 @@ const Jn = (e) => `${ge.SESSION_DATA}_${e}`, ih = () => {
3842
3842
  Pe(i, JSON.stringify(e)), oh(i);
3843
3843
  }, rh = function() {
3844
3844
  const e = pn.getItem(
3845
- ge.SESSION_ID
3845
+ Ze.SESSION_ID
3846
3846
  );
3847
3847
  At(e);
3848
3848
  const t = Jn(e), i = pn.getItem(t);
@@ -3852,7 +3852,7 @@ const Jn = (e) => `${ge.SESSION_DATA}_${e}`, ih = () => {
3852
3852
  }
3853
3853
  };
3854
3854
  function oh(e) {
3855
- const t = `${ge.SESSION_DATA}_`;
3855
+ const t = `${Ze.SESSION_DATA}_`;
3856
3856
  for (let i = ri().length - 1; i >= 0; i--) {
3857
3857
  const n = ri().key(i);
3858
3858
  if (n && n.startsWith(t) && n !== e)
@@ -3991,7 +3991,7 @@ class Ih extends wl {
3991
3991
  return this._bufferCall("track", [t, i]);
3992
3992
  }
3993
3993
  }
3994
- const Sh = "9.25.1", Gh = {
3994
+ const Sh = "9.26.0", Gh = {
3995
3995
  version: Sh
3996
3996
  }, Vh = Gh.version;
3997
3997
  function ta(e, t) {
@@ -4192,7 +4192,7 @@ var Th = Object.defineProperty, Nh = Object.defineProperties, Lh = Object.getOwn
4192
4192
  for (var i of bn(t))
4193
4193
  sa.call(t, i) && Rs(e, i, t[i]);
4194
4194
  return e;
4195
- }, Se = (e, t) => Nh(e, Lh(t)), Ct = (e, t) => {
4195
+ }, me = (e, t) => Nh(e, Lh(t)), Ct = (e, t) => {
4196
4196
  var i = {};
4197
4197
  for (var n in e)
4198
4198
  na.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
@@ -4200,7 +4200,7 @@ var Th = Object.defineProperty, Nh = Object.defineProperties, Lh = Object.getOwn
4200
4200
  for (var n of bn(e))
4201
4201
  t.indexOf(n) < 0 && sa.call(e, n) && (i[n] = e[n]);
4202
4202
  return i;
4203
- }, K = (e, t, i) => Rs(e, typeof t != "symbol" ? t + "" : t, i), fe = (e, t, i) => new Promise((n, s) => {
4203
+ }, K = (e, t, i) => Rs(e, typeof t != "symbol" ? t + "" : t, i), ye = (e, t, i) => new Promise((n, s) => {
4204
4204
  var r = (a) => {
4205
4205
  try {
4206
4206
  o(i.next(a));
@@ -5243,15 +5243,15 @@ function St(e, t) {
5243
5243
  if (!(y.type === ae.Element && y.tagName === "textarea" && y.attributes.value !== void 0)) {
5244
5244
  y.type === ae.Element && y.attributes._cssText !== void 0 && typeof y.attributes._cssText == "string" && (A.cssCaptured = !0);
5245
5245
  for (const de of Array.from(he.childNodes(e))) {
5246
- const me = St(de, A);
5247
- me && y.childNodes.push(me);
5246
+ const be = St(de, A);
5247
+ be && y.childNodes.push(be);
5248
5248
  }
5249
5249
  }
5250
5250
  let D = null;
5251
5251
  if (oa(e) && (D = he.shadowRoot(e)))
5252
5252
  for (const de of Array.from(he.childNodes(D))) {
5253
- const me = St(de, A);
5254
- me && (qt(D) && (me.isShadow = !0), y.childNodes.push(me));
5253
+ const be = St(de, A);
5254
+ be && (qt(D) && (be.isShadow = !0), y.childNodes.push(be));
5255
5255
  }
5256
5256
  }
5257
5257
  const N = he.parentNode(e);
@@ -5954,7 +5954,7 @@ let _p = Un, Ys = class extends _p {
5954
5954
  return this.prop.startsWith("--") || this.prop[0] === "$";
5955
5955
  }
5956
5956
  constructor(e) {
5957
- e && typeof e.value < "u" && typeof e.value != "string" && (e = Se(Y({}, e), { value: String(e.value) })), super(e), this.type = "decl";
5957
+ e && typeof e.value < "u" && typeof e.value != "string" && (e = me(Y({}, e), { value: String(e.value) })), super(e), this.type = "decl";
5958
5958
  }
5959
5959
  };
5960
5960
  var Kn = Ys;
@@ -6498,8 +6498,8 @@ function ci(e, t) {
6498
6498
  if (n) {
6499
6499
  t = [];
6500
6500
  for (let r of n) {
6501
- let l = Se(Y({}, r), { __proto__: fm.prototype });
6502
- l.map && (l.map = Se(Y({}, l.map), {
6501
+ let l = me(Y({}, r), { __proto__: fm.prototype });
6502
+ l.map && (l.map = me(Y({}, l.map), {
6503
6503
  __proto__: ym.prototype
6504
6504
  })), t.push(l);
6505
6505
  }
@@ -7254,7 +7254,7 @@ let Hs = {}, wt = class Pa {
7254
7254
  }
7255
7255
  s && !s[tb] && Qm.rebuild(s);
7256
7256
  }
7257
- this.result = new Yo(t, s, n), this.helpers = Se(Y({}, Hs), { postcss: Hs, result: this.result }), this.plugins = this.processor.plugins.map((r) => typeof r == "object" && r.prepare ? Y(Y({}, r), r.prepare(this.result)) : r);
7257
+ this.result = new Yo(t, s, n), this.helpers = me(Y({}, Hs), { postcss: Hs, result: this.result }), this.plugins = this.processor.plugins.map((r) => typeof r == "object" && r.prepare ? Y(Y({}, r), r.prepare(this.result)) : r);
7258
7258
  }
7259
7259
  async() {
7260
7260
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -7309,7 +7309,7 @@ let Hs = {}, wt = class Pa {
7309
7309
  this.hasListener = Object.keys(this.listeners).length > 0;
7310
7310
  }
7311
7311
  runAsync() {
7312
- return fe(this, null, function* () {
7312
+ return ye(this, null, function* () {
7313
7313
  this.plugin = 0;
7314
7314
  for (let t = 0; t < this.plugins.length; t++) {
7315
7315
  let i = this.plugins[t], n = this.runOnRoot(i);
@@ -8188,7 +8188,7 @@ let Ob = En, _s = class extends Ob {
8188
8188
  return this.prop.startsWith("--") || this.prop[0] === "$";
8189
8189
  }
8190
8190
  constructor(e) {
8191
- e && typeof e.value < "u" && typeof e.value != "string" && (e = Se(Y({}, e), { value: String(e.value) })), super(e), this.type = "decl";
8191
+ e && typeof e.value < "u" && typeof e.value != "string" && (e = me(Y({}, e), { value: String(e.value) })), super(e), this.type = "decl";
8192
8192
  }
8193
8193
  };
8194
8194
  var zn = _s;
@@ -8732,8 +8732,8 @@ function pi(e, t) {
8732
8732
  if (n) {
8733
8733
  t = [];
8734
8734
  for (let r of n) {
8735
- let l = Se(Y({}, r), { __proto__: lf.prototype });
8736
- l.map && (l.map = Se(Y({}, l.map), {
8735
+ let l = me(Y({}, r), { __proto__: lf.prototype });
8736
+ l.map && (l.map = me(Y({}, l.map), {
8737
8737
  __proto__: af.prototype
8738
8738
  })), t.push(l);
8739
8739
  }
@@ -9488,7 +9488,7 @@ let sr = {}, Nt = class kc {
9488
9488
  }
9489
9489
  s && !s[Bf] && Mf.rebuild(s);
9490
9490
  }
9491
- this.result = new el(t, s, n), this.helpers = Se(Y({}, sr), { postcss: sr, result: this.result }), this.plugins = this.processor.plugins.map((r) => typeof r == "object" && r.prepare ? Y(Y({}, r), r.prepare(this.result)) : r);
9491
+ this.result = new el(t, s, n), this.helpers = me(Y({}, sr), { postcss: sr, result: this.result }), this.plugins = this.processor.plugins.map((r) => typeof r == "object" && r.prepare ? Y(Y({}, r), r.prepare(this.result)) : r);
9492
9492
  }
9493
9493
  async() {
9494
9494
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -9543,7 +9543,7 @@ let sr = {}, Nt = class kc {
9543
9543
  this.hasListener = Object.keys(this.listeners).length > 0;
9544
9544
  }
9545
9545
  runAsync() {
9546
- return fe(this, null, function* () {
9546
+ return ye(this, null, function* () {
9547
9547
  this.plugin = 0;
9548
9548
  for (let t = 0; t < this.plugins.length; t++) {
9549
9549
  let i = this.plugins[t], n = this.runOnRoot(i);
@@ -10102,7 +10102,7 @@ const z = {
10102
10102
  patch: dt,
10103
10103
  wrapCanvasContextDrawImage: Zy
10104
10104
  };
10105
- function Ze(e, t, i = document) {
10105
+ function Ie(e, t, i = document) {
10106
10106
  const n = { capture: !0 };
10107
10107
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
10108
10108
  }
@@ -10739,9 +10739,9 @@ function zy({
10739
10739
  }
10740
10740
  )
10741
10741
  ), u = [
10742
- Ze("mousemove", c, i),
10743
- Ze("touchmove", c, i),
10744
- Ze("drag", c, i)
10742
+ Ie("mousemove", c, i),
10743
+ Ie("touchmove", c, i),
10744
+ Ie("drag", c, i)
10745
10745
  ];
10746
10746
  return B(() => {
10747
10747
  u.forEach((h) => h());
@@ -10810,7 +10810,7 @@ function Py({
10810
10810
  case Ge.TouchEnd:
10811
10811
  return;
10812
10812
  }
10813
- o.push(Ze(h, p, t));
10813
+ o.push(Ie(h, p, t));
10814
10814
  }), B(() => {
10815
10815
  o.forEach((u) => u());
10816
10816
  });
@@ -10847,7 +10847,7 @@ function Ac({
10847
10847
  r.scroll || 100
10848
10848
  )
10849
10849
  );
10850
- return Ze("scroll", l, t);
10850
+ return Ie("scroll", l, t);
10851
10851
  }
10852
10852
  function By({ viewportResizeCb: e }, { win: t }) {
10853
10853
  let i = -1, n = -1;
@@ -10863,7 +10863,7 @@ function By({ viewportResizeCb: e }, { win: t }) {
10863
10863
  200
10864
10864
  )
10865
10865
  );
10866
- return Ze("resize", s, t);
10866
+ return Ie("resize", s, t);
10867
10867
  }
10868
10868
  const Dy = ["INPUT", "TEXTAREA", "SELECT"], dl = /* @__PURE__ */ new WeakMap();
10869
10869
  function jy({
@@ -10919,13 +10919,13 @@ function jy({
10919
10919
  if (!C || C.text !== V.text || C.isChecked !== V.isChecked) {
10920
10920
  dl.set(I, V);
10921
10921
  const X = i.getId(I);
10922
- B(e)(Se(Y({}, V), {
10922
+ B(e)(me(Y({}, V), {
10923
10923
  id: X
10924
10924
  }));
10925
10925
  }
10926
10926
  }
10927
10927
  const m = (c.input === "last" ? ["change"] : ["input", "change"]).map(
10928
- (I) => Ze(I, B(h), t)
10928
+ (I) => Ie(I, B(h), t)
10929
10929
  ), b = t.defaultView;
10930
10930
  if (!b)
10931
10931
  return () => {
@@ -11257,11 +11257,11 @@ function _y({
11257
11257
  s.media || 500
11258
11258
  )
11259
11259
  ), o = [
11260
- Ze("play", l(Zt.Play), r),
11261
- Ze("pause", l(Zt.Pause), r),
11262
- Ze("seeked", l(Zt.Seeked), r),
11263
- Ze("volumechange", l(Zt.VolumeChange), r),
11264
- Ze("ratechange", l(Zt.RateChange), r)
11260
+ Ie("play", l(Zt.Play), r),
11261
+ Ie("pause", l(Zt.Pause), r),
11262
+ Ie("seeked", l(Zt.Seeked), r),
11263
+ Ie("volumechange", l(Zt.VolumeChange), r),
11264
+ Ie("ratechange", l(Zt.RateChange), r)
11265
11265
  ];
11266
11266
  return B(() => {
11267
11267
  o.forEach((a) => a());
@@ -11322,7 +11322,7 @@ function qy(e) {
11322
11322
  }
11323
11323
  r({ ranges: c });
11324
11324
  });
11325
- return o(), Ze("selectionchange", o);
11325
+ return o(), Ie("selectionchange", o);
11326
11326
  }
11327
11327
  function eg({
11328
11328
  doc: e,
@@ -11644,7 +11644,7 @@ class sg {
11644
11644
  if (!qt(t) || this.shadowDoms.has(t)) return;
11645
11645
  this.shadowDoms.add(t);
11646
11646
  const n = Qc(
11647
- Se(Y({}, this.bypassOptions), {
11647
+ me(Y({}, this.bypassOptions), {
11648
11648
  doc: i,
11649
11649
  mutationCb: this.mutationCb,
11650
11650
  mirror: this.mirror,
@@ -11653,7 +11653,7 @@ class sg {
11653
11653
  t
11654
11654
  );
11655
11655
  this.restoreHandlers.push(() => n.disconnect()), this.restoreHandlers.push(
11656
- Ac(Se(Y({}, this.bypassOptions), {
11656
+ Ac(me(Y({}, this.bypassOptions), {
11657
11657
  scrollCb: this.scrollCb,
11658
11658
  // https://gist.github.com/praveenpuglia/0832da687ed5a5d7a0907046c9ef1813
11659
11659
  // scroll is not allowed to pass the boundary, so we need to listen the shadow document
@@ -12085,7 +12085,7 @@ class pg {
12085
12085
  t && (s = `[highlight-canvas] [id:${n}]`, t.tagName.toLowerCase() === "canvas" && (s += ` [ctx:${t.__context}]`)), this.logger.debug(s, t, ...i);
12086
12086
  }
12087
12087
  snapshot(t) {
12088
- return fe(this, null, function* () {
12088
+ return ye(this, null, function* () {
12089
12089
  var i;
12090
12090
  const n = this.mirror.getId(t);
12091
12091
  if (this.snapshotInProgressMap.get(n)) {
@@ -12185,7 +12185,7 @@ class pg {
12185
12185
  b.has(k) || b.set(k, C);
12186
12186
  }
12187
12187
  }), X;
12188
- }, V = (C) => fe(this, null, function* () {
12188
+ }, V = (C) => ye(this, null, function* () {
12189
12189
  if (p && C - p < h) {
12190
12190
  m = requestAnimationFrame(V);
12191
12191
  return;
@@ -12202,7 +12202,7 @@ class pg {
12202
12202
  G.push(
12203
12203
  ...S(C).filter(X).map((k) => this.snapshot(k))
12204
12204
  ), G.push(
12205
- ...I(C).filter(X).map((k) => fe(this, null, function* () {
12205
+ ...I(C).filter(X).map((k) => ye(this, null, function* () {
12206
12206
  this.debug(k, "starting video snapshotting");
12207
12207
  const v = this.mirror.getId(k);
12208
12208
  if (this.snapshotInProgressMap.get(v)) {
@@ -12428,7 +12428,7 @@ function Be(e = {}) {
12428
12428
  plugins: A,
12429
12429
  keepIframeSrcFn: D = () => !1,
12430
12430
  privacySetting: de = "default",
12431
- ignoreCSSAttributes: me = /* @__PURE__ */ new Set([]),
12431
+ ignoreCSSAttributes: be = /* @__PURE__ */ new Set([]),
12432
12432
  errorHandler: Ce,
12433
12433
  logger: ce
12434
12434
  } = e, ve = Y(Y({}, e.dataURLOptions), (i = (t = e.sampling) == null ? void 0 : t.canvas) == null ? void 0 : i.dataURLOptions);
@@ -12752,7 +12752,7 @@ function Be(e = {}) {
12752
12752
  shadowDomManager: Gi,
12753
12753
  processedNodeManager: Dn,
12754
12754
  canvasManager: ti,
12755
- ignoreCSSAttributes: me,
12755
+ ignoreCSSAttributes: be,
12756
12756
  privacySetting: de,
12757
12757
  plugins: ((Je = A?.filter((te) => te.observer)) == null ? void 0 : Je.map((te) => ({
12758
12758
  observer: te.observer,
@@ -12780,14 +12780,14 @@ function Be(e = {}) {
12780
12780
  on(), _.push(we(document)), xn = !0;
12781
12781
  };
12782
12782
  return document.readyState === "interactive" || document.readyState === "complete" ? se() : (_.push(
12783
- Ze("DOMContentLoaded", () => {
12783
+ Ie("DOMContentLoaded", () => {
12784
12784
  oe({
12785
12785
  type: j.DomContentLoaded,
12786
12786
  data: {}
12787
12787
  }), y === "DOMContentLoaded" && se();
12788
12788
  })
12789
12789
  ), _.push(
12790
- Ze(
12790
+ Ie(
12791
12791
  "load",
12792
12792
  () => {
12793
12793
  oe({
@@ -12821,7 +12821,7 @@ Be.takeFullSnapshot = (e) => {
12821
12821
  throw new Error("please take full snapshot after start recording");
12822
12822
  on(e);
12823
12823
  };
12824
- Be.snapshotCanvas = (e) => fe(void 0, null, function* () {
12824
+ Be.snapshotCanvas = (e) => ye(void 0, null, function* () {
12825
12825
  if (!ti)
12826
12826
  throw new Error("canvas manager is not initialized");
12827
12827
  yield ti.snapshot(e);
@@ -12853,14 +12853,14 @@ const { addCustomEvent: gl } = Be, fg = (e) => {
12853
12853
  return window.addEventListener("locationchange", s), () => {
12854
12854
  window.removeEventListener("popstate", n), window.removeEventListener("locationchange", s), history.pushState = t, history.replaceState = i;
12855
12855
  };
12856
- }, yg = (e) => {
12856
+ }, yg = (e, t, i) => {
12857
12857
  switch (e) {
12858
12858
  case "strict":
12859
12859
  return [!0, void 0];
12860
12860
  case "default":
12861
12861
  return [!0, void 0];
12862
12862
  case "none":
12863
- return [!1, { password: !0 }];
12863
+ return [!!t, me(Y({}, i), { password: !0 })];
12864
12864
  }
12865
12865
  }, gg = (e) => {
12866
12866
  const t = (i) => {
@@ -12965,9 +12965,9 @@ const { addCustomEvent: gl } = Be, fg = (e) => {
12965
12965
  return !1;
12966
12966
  }
12967
12967
  const i = Gg(t), n = Xe(
12968
- ge.SEGMENT_LAST_SENT_HASH_KEY
12968
+ Ze.SEGMENT_LAST_SENT_HASH_KEY
12969
12969
  );
12970
- return n === void 0 || i !== n ? (Pe(ge.SEGMENT_LAST_SENT_HASH_KEY, i), !0) : !1;
12970
+ return n === void 0 || i !== n ? (Pe(Ze.SEGMENT_LAST_SENT_HASH_KEY, i), !0) : !1;
12971
12971
  }, Gg = (e) => {
12972
12972
  var t = 0, i = e.length, n = 0;
12973
12973
  if (i > 0) for (; n < i; ) t = (t << 5) - t + e.charCodeAt(n++) | 0;
@@ -12993,7 +12993,7 @@ const { addCustomEvent: gl } = Be, fg = (e) => {
12993
12993
  wg(l);
12994
12994
  });
12995
12995
  };
12996
- let be = [];
12996
+ let fe = [];
12997
12997
  function Xg(e) {
12998
12998
  typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
12999
12999
  const t = e.split(",");
@@ -13061,7 +13061,7 @@ const Ke = {}, bs = typeof navigator < "u" ? navigator.userAgent.toLowerCase().i
13061
13061
  ctrlKey: 17,
13062
13062
  altKey: 18,
13063
13063
  metaKey: 91
13064
- }, ye = {
13064
+ }, ge = {
13065
13065
  16: !1,
13066
13066
  18: !1,
13067
13067
  17: !1,
@@ -13102,23 +13102,23 @@ function vg(e, t, i) {
13102
13102
  let n;
13103
13103
  if (t.scope === i || t.scope === "all") {
13104
13104
  n = t.mods.length > 0;
13105
- for (const s in ye)
13106
- Object.prototype.hasOwnProperty.call(ye, s) && // @ts-expect-error
13107
- (!ye[s] && t.mods.indexOf(+s) > -1 || // @ts-expect-error
13108
- ye[s] && t.mods.indexOf(+s) === -1) && (n = !1);
13109
- (t.mods.length === 0 && !ye[16] && !ye[18] && !ye[17] && !ye[91] || n || t.shortcut === "*") && t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0));
13105
+ for (const s in ge)
13106
+ Object.prototype.hasOwnProperty.call(ge, s) && // @ts-expect-error
13107
+ (!ge[s] && t.mods.indexOf(+s) > -1 || // @ts-expect-error
13108
+ ge[s] && t.mods.indexOf(+s) === -1) && (n = !1);
13109
+ (t.mods.length === 0 && !ge[16] && !ge[18] && !ge[17] && !ge[91] || n || t.shortcut === "*") && t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0));
13110
13110
  }
13111
13111
  }
13112
13112
  function wg(e) {
13113
13113
  const t = Ke["*"];
13114
13114
  let i = e.keyCode || e.which || e.charCode;
13115
- if ((i === 93 || i === 224) && (i = 91), be.indexOf(i) === -1 && i !== 229 && be.push(i), ["ctrlKey", "altKey", "shiftKey", "metaKey"].forEach((n) => {
13115
+ if ((i === 93 || i === 224) && (i = 91), fe.indexOf(i) === -1 && i !== 229 && fe.push(i), ["ctrlKey", "altKey", "shiftKey", "metaKey"].forEach((n) => {
13116
13116
  const s = Il[n];
13117
- e[n] && be.indexOf(s) === -1 ? be.push(s) : !e[n] && be.indexOf(s) > -1 ? be.splice(be.indexOf(s), 1) : n === "metaKey" && e[n] && be.length === 3 && (e.ctrlKey || e.shiftKey || e.altKey || (be = be.slice(be.indexOf(s))));
13118
- }), !(i in ye && (ye[i] = !0, !t))) {
13119
- for (const n in ye)
13120
- Object.prototype.hasOwnProperty.call(ye, n) && (ye[n] = e[Il[n]]);
13121
- if (e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (be.indexOf(17) === -1 && be.push(17), be.indexOf(18) === -1 && be.push(18), ye[17] = !0, ye[18] = !0), i in Ke) {
13117
+ e[n] && fe.indexOf(s) === -1 ? fe.push(s) : !e[n] && fe.indexOf(s) > -1 ? fe.splice(fe.indexOf(s), 1) : n === "metaKey" && e[n] && fe.length === 3 && (e.ctrlKey || e.shiftKey || e.altKey || (fe = fe.slice(fe.indexOf(s))));
13118
+ }), !(i in ge && (ge[i] = !0, !t))) {
13119
+ for (const n in ge)
13120
+ Object.prototype.hasOwnProperty.call(ge, n) && (ge[n] = e[Il[n]]);
13121
+ if (e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (fe.indexOf(17) === -1 && fe.push(17), fe.indexOf(18) === -1 && fe.push(18), ge[17] = !0, ge[18] = !0), i in Ke) {
13122
13122
  for (let n = 0; n < Ke[i].length; n++)
13123
13123
  if (
13124
13124
  // @ts-expect-error
@@ -13358,9 +13358,9 @@ var Yg = /* @__PURE__ */ ii(at, 9), Ug = /* @__PURE__ */ ii(Tn, 5), ou = functio
13358
13358
  He(t, u + 3 * w, R[Vl[w]]);
13359
13359
  u += 3 * E;
13360
13360
  for (var D = [V, G], de = 0; de < 2; ++de)
13361
- for (var me = D[de], w = 0; w < me.length; ++w) {
13362
- var Ce = me[w] & 31;
13363
- He(t, u, A[Ce]), u += R[Ce], Ce > 15 && (He(t, u, me[w] >> 5 & 127), u += me[w] >> 12);
13361
+ for (var be = D[de], w = 0; w < be.length; ++w) {
13362
+ var Ce = be[w] & 31;
13363
+ He(t, u, A[Ce]), u += R[Ce], Ce > 15 && (He(t, u, be[w] >> 5 & 127), u += be[w] >> 12);
13364
13364
  }
13365
13365
  } else
13366
13366
  T = Yg, U = at, F = Ug, N = Tn;
@@ -13394,7 +13394,7 @@ var Yg = /* @__PURE__ */ ii(at, 9), Ug = /* @__PURE__ */ ii(Tn, 5), ou = functio
13394
13394
  }
13395
13395
  var F = 2, N = 0, A = m, D = f - y & 32767;
13396
13396
  if (T > 2 && $ == C(g - D))
13397
- for (var de = Math.min(p, T) - 1, me = Math.min(32767, g), Ce = Math.min(258, T); D <= me && --A && f != y; ) {
13397
+ for (var de = Math.min(p, T) - 1, be = Math.min(32767, g), Ce = Math.min(258, T); D <= be && --A && f != y; ) {
13398
13398
  if (e[g + F] == e[g + F - D]) {
13399
13399
  for (var ce = 0; ce < Ce && e[g + ce] == e[g + ce - D]; ++ce)
13400
13400
  ;
@@ -13495,7 +13495,7 @@ function Dg(e, t) {
13495
13495
  return lu(s, 0, r);
13496
13496
  }
13497
13497
  function jg(e) {
13498
- return fe(this, null, function* () {
13498
+ return ye(this, null, function* () {
13499
13499
  const t = Dg(JSON.stringify(e)), i = Pg(t), n = yield new Promise((s) => {
13500
13500
  const r = new FileReader();
13501
13501
  r.onload = () => s(r.result), r.readAsDataURL(new Blob([new Uint8Array(i)]));
@@ -13690,7 +13690,7 @@ class eZ {
13690
13690
  `Tab reloaded, continuing previous session: ${this.sessionData.sessionSecureID}`
13691
13691
  );
13692
13692
  else {
13693
- for (const a of Object.values(ge))
13693
+ for (const a of Object.values(Ze))
13694
13694
  mn(a);
13695
13695
  this.sessionData = {
13696
13696
  sessionSecureID: this.options.sessionSecureID,
@@ -13708,7 +13708,7 @@ class eZ {
13708
13708
  }
13709
13709
  // Start a new session
13710
13710
  _reset(t) {
13711
- return fe(this, arguments, function* ({
13711
+ return ye(this, arguments, function* ({
13712
13712
  forceNew: i,
13713
13713
  sessionKey: n
13714
13714
  }) {
@@ -13716,14 +13716,14 @@ class eZ {
13716
13716
  let s, r;
13717
13717
  if (!i)
13718
13718
  try {
13719
- s = Xe(ge.USER_IDENTIFIER);
13719
+ s = Xe(Ze.USER_IDENTIFIER);
13720
13720
  const l = Xe(
13721
- ge.USER_OBJECT
13721
+ Ze.USER_OBJECT
13722
13722
  );
13723
13723
  l && (r = JSON.parse(l));
13724
13724
  } catch {
13725
13725
  }
13726
- for (const l of Object.values(ge))
13726
+ for (const l of Object.values(Ze))
13727
13727
  mn(l);
13728
13728
  this.sessionData.sessionSecureID = n ? _t(`${this.organizationID}-${n}`) : _t(), this.sessionData.sessionKey = n, this.sessionData.sessionStartTime = Date.now(), this.options.sessionSecureID = this.sessionData.sessionSecureID, this.stop(), this._worker.postMessage({ message: { type: Fe.Reset } }), yield this.start(), s && r && this.identify(s, r);
13729
13729
  });
@@ -13761,9 +13761,9 @@ class eZ {
13761
13761
  return;
13762
13762
  }
13763
13763
  this.sessionData.userIdentifier = t.toString(), this.sessionData.userObject = i, Pe(
13764
- ge.USER_IDENTIFIER,
13764
+ Ze.USER_IDENTIFIER,
13765
13765
  t.toString()
13766
- ), Pe(ge.USER_OBJECT, JSON.stringify(i)), this._worker.postMessage({
13766
+ ), Pe(Ze.USER_OBJECT, JSON.stringify(i)), this._worker.postMessage({
13767
13767
  message: {
13768
13768
  type: Fe.Identify,
13769
13769
  userIdentifier: t,
@@ -13773,7 +13773,7 @@ class eZ {
13773
13773
  });
13774
13774
  }
13775
13775
  track(t, i) {
13776
- this.addProperties(Se(Y({}, i), { event: t }));
13776
+ this.addProperties(me(Y({}, i), { event: t }));
13777
13777
  }
13778
13778
  addProperties(t = {}, i) {
13779
13779
  const n = Y({}, t);
@@ -13799,7 +13799,7 @@ class eZ {
13799
13799
  this.addProperties(t, { type: "session" });
13800
13800
  }
13801
13801
  start(t) {
13802
- return fe(this, null, function* () {
13802
+ return ye(this, null, function* () {
13803
13803
  var i, n, s, r, l, o, a, c, u, h;
13804
13804
  if (!((i = navigator?.userAgent) != null && i.includes("Googlebot") || (n = navigator?.userAgent) != null && n.includes("AdsBot")))
13805
13805
  try {
@@ -13808,7 +13808,7 @@ class eZ {
13808
13808
  return;
13809
13809
  }
13810
13810
  if (t != null && t.sessionKey && t?.sessionKey !== this.sessionData.sessionKey) {
13811
- yield this._reset(Se(Y({}, t), { forceNew: !0 }));
13811
+ yield this._reset(me(Y({}, t), { forceNew: !0 }));
13812
13812
  return;
13813
13813
  }
13814
13814
  this.logger.log(
@@ -13889,7 +13889,9 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
13889
13889
  const S = !!this._recordStop;
13890
13890
  this._recordStop && (this._recordStop(), this._recordStop = void 0);
13891
13891
  const [I, V] = yg(
13892
- this.privacySetting
13892
+ this.privacySetting,
13893
+ this.options.maskAllInputs,
13894
+ this.options.maskInputOptions
13893
13895
  );
13894
13896
  this._recordStop = Be({
13895
13897
  ignoreClass: (u = this.options.ignoreClass) != null ? u : "highlight-ignore",
@@ -13940,7 +13942,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
13940
13942
  });
13941
13943
  }
13942
13944
  _visibilityHandler(t) {
13943
- return fe(this, null, function* () {
13945
+ return ye(this, null, function* () {
13944
13946
  if (this.manualStopped) {
13945
13947
  this.logger.log("Ignoring visibility event due to manual stop.");
13946
13948
  return;
@@ -13949,7 +13951,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
13949
13951
  });
13950
13952
  }
13951
13953
  _setupCrossOriginIframe() {
13952
- return fe(this, null, function* () {
13954
+ return ye(this, null, function* () {
13953
13955
  this.logger.log("highlight in cross-origin iframe is waiting "), yield new Promise((t) => {
13954
13956
  const i = (n) => {
13955
13957
  if (n.data.highlight === Sl) {
@@ -14099,7 +14101,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
14099
14101
  return t && i ? `https://${io}/${t}/sessions/${i}` : null;
14100
14102
  }
14101
14103
  snapshot(t) {
14102
- return fe(this, null, function* () {
14104
+ return ye(this, null, function* () {
14103
14105
  yield Be.snapshotCanvas(t);
14104
14106
  });
14105
14107
  }
@@ -14122,14 +14124,14 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
14122
14124
  }
14123
14125
  // Reset the events array and push to a backend.
14124
14126
  _save() {
14125
- return fe(this, null, function* () {
14127
+ return ye(this, null, function* () {
14126
14128
  var t;
14127
14129
  try {
14128
14130
  this.state === "Recording" && this.listeners && !this.sessionData.sessionKey && this.sessionData.sessionStartTime && Date.now() - this.sessionData.sessionStartTime > Pd && (this.logger.log("Resetting session", {
14129
14131
  start: this.sessionData.sessionStartTime
14130
14132
  }), yield this._reset({}));
14131
14133
  let i;
14132
- ((t = this.options) == null ? void 0 : t.sendMode) === "local" && (i = (n) => fe(this, null, function* () {
14134
+ ((t = this.options) == null ? void 0 : t.sendMode) === "local" && (i = (n) => ye(this, null, function* () {
14133
14135
  let s = new Blob(
14134
14136
  [
14135
14137
  JSON.stringify({
@@ -14168,7 +14170,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
14168
14170
  } else this.state === "Recording" && (this.events.length > 0 || this.hasPushedData) && gl(t, i);
14169
14171
  }
14170
14172
  _sendPayload(t) {
14171
- return fe(this, arguments, function* ({
14173
+ return ye(this, arguments, function* ({
14172
14174
  sendFn: i
14173
14175
  }) {
14174
14176
  const n = [...this.events], { bytes: s, time: r } = this.enableCanvasRecording ? to.canvas : to.normal;
@@ -14303,7 +14305,7 @@ class hZ extends wh {
14303
14305
  return;
14304
14306
  }
14305
14307
  this.configureSession(t, i);
14306
- const p = Se(Y({}, i), {
14308
+ const p = me(Y({}, i), {
14307
14309
  organizationID: t,
14308
14310
  firstloadVersion: Vh,
14309
14311
  environment: i?.environment || "production",
@@ -14352,7 +14354,7 @@ class hZ extends wh {
14352
14354
  for (const V of (p = (h = (u = this.record) == null ? void 0 : u.getHooks) == null ? void 0 : h.call(u, t)) != null ? p : [])
14353
14355
  (m = V.afterIdentify) == null || m.call(V, o, a, c);
14354
14356
  if (c.status === "completed") {
14355
- const V = Se(Y({}, gh(o.context)), {
14357
+ const V = me(Y({}, gh(o.context)), {
14356
14358
  key: (S = (d = (b = this.options) == null ? void 0 : b.contextFriendlyName) == null ? void 0 : d.call(
14357
14359
  b,
14358
14360
  o.context
@@ -14391,4 +14393,4 @@ export {
14391
14393
  jt as t,
14392
14394
  wl as x
14393
14395
  };
14394
- //# sourceMappingURL=index-6I8VmpDC.js.map
14396
+ //# sourceMappingURL=index-CTojSwVM.js.map