@picked/analytics 0.0.12-next.3 → 0.0.12-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { trackSelfDescribingEvent as ht, newTracker as Nt, addGlobalContexts as wt, enableActivityTracking as Pt, enableActivityTrackingCallback as Vt } from "@snowplow/browser-tracker";
2
- import { ButtonClickTrackingPlugin as St, enableButtonClickTracking as Yt } from "@snowplow/browser-plugin-button-click-tracking";
3
- import { PerformanceNavigationTimingPlugin as Bt } from "@snowplow/browser-plugin-performance-navigation-timing";
4
- import { ErrorTrackingPlugin as Ht, enableErrorTracking as qt } from "@snowplow/browser-plugin-error-tracking";
5
- import { WebVitalsPlugin as Rt } from "@snowplow/browser-plugin-web-vitals";
6
- import { supportsDocument as X, supportsWindow as jt, supportsCookies as At } from "@picked/client";
1
+ import { trackSelfDescribingEvent as Nt, newTracker as wt, addGlobalContexts as Pt, enableActivityTracking as Vt, enableActivityTrackingCallback as St } from "@snowplow/browser-tracker";
2
+ import { ButtonClickTrackingPlugin as Yt, enableButtonClickTracking as Bt } from "@snowplow/browser-plugin-button-click-tracking";
3
+ import { PerformanceNavigationTimingPlugin as Ht } from "@snowplow/browser-plugin-performance-navigation-timing";
4
+ import { ErrorTrackingPlugin as qt, enableErrorTracking as At } from "@snowplow/browser-plugin-error-tracking";
5
+ import { WebVitalsPlugin as Ft } from "@snowplow/browser-plugin-web-vitals";
6
+ import { supportsDocument as X, supportsWindow as Rt, supportsCookies as jt } from "@picked/client";
7
7
  function J(t, e) {
8
8
  return `iglu:dev.pckd/${t}/jsonschema/${e}`;
9
9
  }
@@ -34,7 +34,7 @@ function n(t, e, s) {
34
34
  function u(t, e) {
35
35
  return (s, i) => {
36
36
  const a = e(s, i);
37
- ht(a);
37
+ Nt(a);
38
38
  };
39
39
  }
40
40
  function _(t, e, s = { passive: !0 }) {
@@ -44,13 +44,13 @@ function _(t, e, s = { passive: !0 }) {
44
44
  if (r || (r = /* @__PURE__ */ new Set(), i.set(a, r)), r.has(t))
45
45
  return;
46
46
  function c(m) {
47
- const E = o();
48
- e({ event: m, analyticsContext: E });
47
+ const C = o();
48
+ e({ event: m, analyticsContext: C });
49
49
  }
50
50
  a.addEventListener(t, c, s), r.add(t);
51
51
  };
52
52
  }
53
- function Ft(t, e) {
53
+ function Ot(t, e) {
54
54
  const s = /* @__PURE__ */ new Set();
55
55
  return (i) => {
56
56
  if (s.has(t) || !X())
@@ -65,7 +65,7 @@ function Ft(t, e) {
65
65
  function y(t, e) {
66
66
  const s = /* @__PURE__ */ new Set();
67
67
  return (i) => {
68
- if (s.has(t) || !jt())
68
+ if (s.has(t) || !Rt())
69
69
  return;
70
70
  function a(o) {
71
71
  const r = i();
@@ -86,7 +86,7 @@ function f(t) {
86
86
  const D = "unknown";
87
87
  function d(t) {
88
88
  var i;
89
- const e = Ot(), s = {
89
+ const e = Wt(), s = {
90
90
  id: t.sessionId || null
91
91
  };
92
92
  return e && (s.gaid = e), (i = t.shopifySession) != null && i.clientId && (s.shopify_client_id = t.shopifySession.clientId), s;
@@ -126,7 +126,7 @@ function x(t, e = !1) {
126
126
  title: D
127
127
  };
128
128
  }
129
- function Yn(t, e = !1) {
129
+ function Hn(t, e = !1) {
130
130
  const { productList: s } = t;
131
131
  if (s) {
132
132
  const i = {};
@@ -200,7 +200,7 @@ function w(t) {
200
200
  title: D
201
201
  });
202
202
  }
203
- function Bn(t) {
203
+ function qn(t) {
204
204
  const { modal: e } = t;
205
205
  return e ? {
206
206
  id: e.id,
@@ -225,8 +225,8 @@ function h(t) {
225
225
  if (!isNaN(e))
226
226
  return e;
227
227
  }
228
- function Ot() {
229
- if (!X() || !At())
228
+ function Wt() {
229
+ if (!X() || !jt())
230
230
  return null;
231
231
  const t = "_ga=", e = document.cookie ? document.cookie.split(";") : [];
232
232
  for (const s of e) {
@@ -238,25 +238,25 @@ function Ot() {
238
238
  }
239
239
  }
240
240
  }
241
- function Wt(t) {
241
+ function Mt(t) {
242
242
  const e = [];
243
- return t.trackErrors && ($(), e.push(Ht())), t.trackVitals && ($(), e.push(Rt())), t.trackPerformance && ($(), e.push(Bt())), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && e.push(St()), e;
243
+ return t.trackErrors && ($(), e.push(qt())), t.trackVitals && ($(), e.push(Ft())), t.trackPerformance && ($(), e.push(Ht())), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && e.push(Yt()), e;
244
244
  }
245
- function Mt(t) {
246
- t.trackActivity && !t.trackActivityCallback && ($(), Pt({
245
+ function Gt(t) {
246
+ t.trackActivity && !t.trackActivityCallback && ($(), Vt({
247
247
  minimumVisitLength: 30,
248
248
  heartbeatDelay: 10
249
- })), t.trackActivity && t.trackActivityCallback && ($(), Vt({
249
+ })), t.trackActivity && t.trackActivityCallback && ($(), St({
250
250
  minimumVisitLength: 30,
251
251
  heartbeatDelay: 10,
252
252
  callback: t.trackActivityCallback
253
- })), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && ($(), Yt({
253
+ })), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && ($(), Bt({
254
254
  filter: t.trackButtonClickAllowList ? {
255
255
  allowlist: t.trackButtonClickAllowList
256
256
  } : t.trackButtonClickFilter
257
- })), t.trackErrors && ($(), qt());
257
+ })), t.trackErrors && ($(), At());
258
258
  }
259
- function Hn({
259
+ function An({
260
260
  organizationId: t,
261
261
  projectId: e,
262
262
  cvlyX: s,
@@ -266,37 +266,37 @@ function Hn({
266
266
  trackPerformance: r = !0,
267
267
  trackWebPage: c = !0,
268
268
  trackSessions: m = !0,
269
- trackBrowser: E = !0,
270
- trackActivity: Tt = !0,
271
- trackErrors: kt = !0,
272
- trackActivityCallback: $t,
273
- trackButtonClickAllowList: gt
269
+ trackBrowser: C = !0,
270
+ trackActivity: kt = !0,
271
+ trackErrors: $t = !0,
272
+ trackActivityCallback: gt,
273
+ trackButtonClickAllowList: Lt
274
274
  }) {
275
275
  $();
276
276
  const W = {
277
277
  trackVitals: o,
278
- trackErrors: kt,
279
- trackActivity: Tt,
278
+ trackErrors: $t,
279
+ trackActivity: kt,
280
280
  trackPerformance: r,
281
- trackActivityCallback: $t,
282
- trackButtonClickAllowList: gt
283
- }, Lt = {
281
+ trackActivityCallback: gt,
282
+ trackButtonClickAllowList: Lt
283
+ }, yt = {
284
284
  appId: a,
285
285
  platform: "web",
286
286
  contexts: {
287
287
  webPage: c,
288
288
  session: m,
289
- browser: E || !1
289
+ browser: C || !1
290
290
  },
291
- plugins: Wt(W)
292
- }, yt = Nt(a, i, Lt);
293
- return Gt({
291
+ plugins: Mt(W)
292
+ }, ht = wt(a, i, yt);
293
+ return Ut({
294
294
  organizationId: t,
295
295
  projectId: e,
296
296
  cvlyX: s
297
- }), Mt(W), yt;
297
+ }), Gt(W), ht;
298
298
  }
299
- function Gt({ organizationId: t, projectId: e, cvlyX: s }) {
299
+ function Ut({ organizationId: t, projectId: e, cvlyX: s }) {
300
300
  if (!t || !e)
301
301
  throw new Error("bindGlobalContext: Both organizationId and projectId are required");
302
302
  const i = [];
@@ -311,10 +311,10 @@ function Gt({ organizationId: t, projectId: e, cvlyX: s }) {
311
311
  vercel_env: s.vercelEnv,
312
312
  vercel_url: s.vercelUrl
313
313
  })
314
- ), wt(i);
314
+ ), Pt(i);
315
315
  }
316
316
  const tt = "app_close";
317
- function Ut(t, e) {
317
+ function zt(t, e) {
318
318
  const s = f(t), i = d(t), a = p(t), o = x(t);
319
319
  return l(
320
320
  tt,
@@ -327,8 +327,8 @@ function Ut(t, e) {
327
327
  e
328
328
  );
329
329
  }
330
- const qn = u(tt, Ut), et = "app_load";
331
- function zt(t, e) {
330
+ const Fn = u(tt, zt), et = "app_load";
331
+ function It(t, e) {
332
332
  const s = f(t), i = d(t), a = p(t), o = x(t);
333
333
  return l(
334
334
  et,
@@ -341,8 +341,8 @@ function zt(t, e) {
341
341
  e
342
342
  );
343
343
  }
344
- const Rn = u(et, zt), nt = "app_open";
345
- function It(t, e) {
344
+ const Rn = u(et, It), nt = "app_open";
345
+ function Kt(t, e) {
346
346
  const s = f(t), i = d(t), a = p(t), o = x(t);
347
347
  return l(
348
348
  nt,
@@ -355,8 +355,8 @@ function It(t, e) {
355
355
  e
356
356
  );
357
357
  }
358
- const jn = u(nt, It), st = "experience_load";
359
- function Kt(t, e) {
358
+ const jn = u(nt, Kt), st = "experience_load";
359
+ function Xt(t, e) {
360
360
  const s = f(t), i = d(t), a = p(t, !0), o = x(t);
361
361
  return l(
362
362
  st,
@@ -369,8 +369,8 @@ function Kt(t, e) {
369
369
  e
370
370
  );
371
371
  }
372
- const An = u(st, Kt), ot = "field_validation_error";
373
- function Xt(t, e) {
372
+ const On = u(st, Xt), ot = "field_validation_error";
373
+ function Jt(t, e) {
374
374
  const s = f(t), i = d(t), a = w(t), o = Z(t, !0), r = p(t), c = x(t);
375
375
  return l(
376
376
  ot,
@@ -385,8 +385,8 @@ function Xt(t, e) {
385
385
  e
386
386
  );
387
387
  }
388
- const Fn = u(ot, Xt), at = "form_submit";
389
- function Jt(t, e) {
388
+ const Wn = u(ot, Jt), at = "form_submit";
389
+ function Qt(t, e) {
390
390
  const s = f(t), i = d(t), a = w(t), o = p(t), r = x(t);
391
391
  return l(
392
392
  at,
@@ -400,8 +400,8 @@ function Jt(t, e) {
400
400
  e
401
401
  );
402
402
  }
403
- const On = u(at, Jt), it = "form_submit_error";
404
- function Qt(t, e) {
403
+ const Mn = u(at, Qt), it = "form_submit_error";
404
+ function Zt(t, e) {
405
405
  const s = f(t), i = d(t), a = w(t), o = Z(t, !0), r = p(t), c = x(t);
406
406
  return l(
407
407
  it,
@@ -416,8 +416,8 @@ function Qt(t, e) {
416
416
  e
417
417
  );
418
418
  }
419
- const Wn = u(it, Qt), rt = "form_submit_success";
420
- function Zt(t, e) {
419
+ const Gn = u(it, Zt), rt = "form_submit_success";
420
+ function te(t, e) {
421
421
  const s = f(t), i = d(t), a = w(t), o = p(t), r = x(t);
422
422
  return l(
423
423
  rt,
@@ -431,8 +431,8 @@ function Zt(t, e) {
431
431
  e
432
432
  );
433
433
  }
434
- const Mn = u(rt, Zt), ct = "step_enter";
435
- function te(t, e) {
434
+ const Un = u(rt, te), ct = "step_enter";
435
+ function ee(t, e) {
436
436
  const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = O(t);
437
437
  return l(
438
438
  ct,
@@ -446,8 +446,8 @@ function te(t, e) {
446
446
  e
447
447
  );
448
448
  }
449
- const Gn = u(ct, te), lt = "step_submit";
450
- function ee(t, e) {
449
+ const zn = u(ct, ee), lt = "step_submit";
450
+ function ne(t, e) {
451
451
  const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = Q(t), c = O(t);
452
452
  return l(
453
453
  lt,
@@ -462,8 +462,8 @@ function ee(t, e) {
462
462
  e
463
463
  );
464
464
  }
465
- const Un = u(lt, ee), ut = "step_submit_success";
466
- function ne(t, e) {
465
+ const In = u(lt, ne), ut = "step_submit_success";
466
+ function se(t, e) {
467
467
  const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = O(t), c = Q(t);
468
468
  return l(
469
469
  ut,
@@ -478,7 +478,21 @@ function ne(t, e) {
478
478
  e
479
479
  );
480
480
  }
481
- const zn = u(ut, ne);
481
+ const Kn = u(ut, se), ft = "feature_decide";
482
+ function oe(t, e) {
483
+ const s = f(t), i = d(t), a = p(t), o = x(t);
484
+ return l(
485
+ ft,
486
+ [
487
+ n("feature_list", "2-0-0", s),
488
+ n("session", "1-0-2", i),
489
+ o ? n("step", "1-0-0", o) : void 0,
490
+ a ? n("experience", "1-0-0", a) : void 0
491
+ ],
492
+ e
493
+ );
494
+ }
495
+ const Xn = u(ft, oe);
482
496
  function b(t) {
483
497
  return t instanceof Element;
484
498
  }
@@ -555,15 +569,15 @@ function k(t) {
555
569
  }
556
570
  return "placeholder" in t && typeof t.placeholder == "string" ? t.placeholder : null;
557
571
  }
558
- const se = 255;
559
- function C(t) {
560
- return t ? t.slice(0, se) : null;
572
+ const ae = 255;
573
+ function E(t) {
574
+ return t ? t.slice(0, ae) : null;
561
575
  }
562
576
  const S = "rapid_scroll";
563
- function oe(t, e) {
577
+ function ie(t, e) {
564
578
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
565
579
  if (!b(r)) {
566
- const E = {
580
+ const C = {
567
581
  node_type: "unknown"
568
582
  };
569
583
  return l(
@@ -573,7 +587,7 @@ function oe(t, e) {
573
587
  n("session", "1-0-2", i),
574
588
  o ? n("step", "1-0-0", o) : void 0,
575
589
  a ? n("experience", "1-0-0", a) : void 0,
576
- n("element", "1-0-0", E)
590
+ n("element", "1-0-0", C)
577
591
  ],
578
592
  e
579
593
  );
@@ -581,8 +595,8 @@ function oe(t, e) {
581
595
  const c = T(r) || r, m = {
582
596
  id: c.id || null,
583
597
  node_type: c.nodeName.toLowerCase(),
584
- label: C(k(c)),
585
- text: C(v(c))
598
+ label: E(k(c)),
599
+ text: E(v(c))
586
600
  };
587
601
  return l(
588
602
  S,
@@ -596,26 +610,26 @@ function oe(t, e) {
596
610
  e
597
611
  );
598
612
  }
599
- const ae = u(S, oe), ie = 100, re = 100, ce = 300;
613
+ const re = u(S, ie), ce = 100, le = 100, ue = 300;
600
614
  let M = 0, G = 0;
601
- const le = P(
615
+ const fe = P(
602
616
  (t, e) => {
603
- ae(t, e);
617
+ re(t, e);
604
618
  },
605
- ce
619
+ ue
606
620
  );
607
- function ue(t, e) {
621
+ function de(t, e) {
608
622
  const s = t.event.target || document.documentElement;
609
623
  if (!(s instanceof HTMLElement))
610
624
  return;
611
625
  const i = s.scrollTop, a = Date.now() - G;
612
- Math.abs(i - M) > ie && a < re && le(t.event, e), M = i, G = Date.now();
626
+ Math.abs(i - M) > ce && a < le && fe(t.event, e), M = i, G = Date.now();
613
627
  }
614
- const fe = _("scroll", ue, !0), Y = "rapid_click";
615
- function de(t, e) {
628
+ const xe = _("scroll", de, !0), Y = "rapid_click";
629
+ function pe(t, e) {
616
630
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
617
631
  if (!b(r)) {
618
- const E = {
632
+ const C = {
619
633
  node_type: "unknown"
620
634
  };
621
635
  return l(
@@ -623,7 +637,7 @@ function de(t, e) {
623
637
  [
624
638
  n("feature_list", "2-0-0", s),
625
639
  n("session", "1-0-2", i),
626
- n("element", "1-0-0", E),
640
+ n("element", "1-0-0", C),
627
641
  o ? n("step", "1-0-0", o) : void 0,
628
642
  a ? n("experience", "1-0-0", a) : void 0
629
643
  ],
@@ -633,8 +647,8 @@ function de(t, e) {
633
647
  const c = T(r) || r, m = {
634
648
  id: c.id || null,
635
649
  node_type: c.nodeName.toLowerCase(),
636
- label: C(k(c)),
637
- text: C(v(c))
650
+ label: E(k(c)),
651
+ text: E(v(c))
638
652
  };
639
653
  return l(
640
654
  Y,
@@ -648,24 +662,24 @@ function de(t, e) {
648
662
  e
649
663
  );
650
664
  }
651
- const xe = u(Y, de);
665
+ const me = u(Y, pe);
652
666
  let N = 0, U = 0;
653
- const pe = 3, me = 500;
654
- function Ce(t, e) {
667
+ const Ee = 3, Ce = 500;
668
+ function ve(t, e) {
655
669
  const s = (/* @__PURE__ */ new Date()).getTime();
656
- s - U < me ? N++ : N = 1, U = s, N >= pe && (xe(t, e), N = 0);
670
+ s - U < Ce ? N++ : N = 1, U = s, N >= Ee && (me(t, e), N = 0);
657
671
  }
658
- const Ee = _("click", Ce), B = "right_click";
659
- function ve(t, e) {
672
+ const De = _("click", ve), B = "right_click";
673
+ function _e(t, e) {
660
674
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
661
675
  if (!b(r)) {
662
- const E = {
676
+ const C = {
663
677
  node_type: "unknown"
664
678
  };
665
679
  return l(B, [
666
680
  n("feature_list", "2-0-0", s),
667
681
  n("session", "1-0-2", i),
668
- n("element", "1-0-0", E),
682
+ n("element", "1-0-0", C),
669
683
  o ? n("step", "1-0-0", o) : void 0,
670
684
  a ? n("experience", "1-0-0", a) : void 0
671
685
  ]);
@@ -673,8 +687,8 @@ function ve(t, e) {
673
687
  const c = T(r) || r, m = {
674
688
  id: c.id || null,
675
689
  node_type: c.nodeName.toLowerCase(),
676
- label: C(k(c)),
677
- text: C(v(c))
690
+ label: E(k(c)),
691
+ text: E(v(c))
678
692
  };
679
693
  return l(
680
694
  B,
@@ -688,15 +702,15 @@ function ve(t, e) {
688
702
  e
689
703
  );
690
704
  }
691
- const De = u(B, ve);
692
- function _e(t, e) {
693
- De(t, e);
694
- }
695
- const be = _("contextmenu", _e), ft = "mouse_shake";
705
+ const be = u(B, _e);
696
706
  function Te(t, e) {
707
+ be(t, e);
708
+ }
709
+ const ke = _("contextmenu", Te), dt = "mouse_shake";
710
+ function $e(t, e) {
697
711
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
698
712
  return l(
699
- ft,
713
+ dt,
700
714
  [
701
715
  n("feature_list", "2-0-0", s),
702
716
  n("session", "1-0-2", i),
@@ -706,23 +720,23 @@ function Te(t, e) {
706
720
  e
707
721
  );
708
722
  }
709
- const ke = u(ft, Te), $e = 5, ge = 500, Le = 500;
723
+ const ge = u(dt, $e), Le = 5, ye = 500, he = 500;
710
724
  let z = { x: 0 }, g = [], I = 0;
711
- const ye = P(
725
+ const Ne = P(
712
726
  (t, e) => {
713
- ke(t, e);
727
+ ge(t, e);
714
728
  },
715
- ge
729
+ ye
716
730
  );
717
- function he(t, e) {
731
+ function we(t, e) {
718
732
  const s = Date.now(), i = t.event.clientX - z.x, a = Math.sign(i);
719
- s - I > Le && (g = []), a !== 0 && (g.length === 0 || g[g.length - 1] !== a) && g.push(a), z = { x: t.event.clientX, y: t.event.clientY }, g.length >= $e && (ye(t, e), g = []), I = s;
733
+ s - I > he && (g = []), a !== 0 && (g.length === 0 || g[g.length - 1] !== a) && g.push(a), z = { x: t.event.clientX, y: t.event.clientY }, g.length >= Le && (Ne(t, e), g = []), I = s;
720
734
  }
721
- const Ne = _("mousemove", he), dt = "page_visible";
722
- function we(t, e) {
735
+ const Pe = _("mousemove", we), xt = "page_visible";
736
+ function Ve(t, e) {
723
737
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
724
738
  return l(
725
- dt,
739
+ xt,
726
740
  [
727
741
  n("feature_list", "2-0-0", s),
728
742
  n("session", "1-0-2", i),
@@ -732,11 +746,11 @@ function we(t, e) {
732
746
  e
733
747
  );
734
748
  }
735
- const Pe = u(dt, we), xt = "page_hidden";
736
- function Ve(t, e) {
749
+ const Se = u(xt, Ve), pt = "page_hidden";
750
+ function Ye(t, e) {
737
751
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
738
752
  return l(
739
- xt,
753
+ pt,
740
754
  [
741
755
  n("feature_list", "2-0-0", s),
742
756
  n("session", "1-0-2", i),
@@ -746,19 +760,19 @@ function Ve(t, e) {
746
760
  e
747
761
  );
748
762
  }
749
- const Se = u(xt, Ve);
750
- function Ye(t, e) {
763
+ const Be = u(pt, Ye);
764
+ function He(t, e) {
751
765
  if (document.visibilityState === "visible") {
752
- Pe(t, e);
766
+ Se(t, e);
753
767
  return;
754
768
  }
755
- Se(t, e);
769
+ Be(t, e);
756
770
  }
757
- const Be = Ft("visibilitychange", Ye), H = "backspace";
758
- function He(t, e) {
771
+ const qe = Ot("visibilitychange", He), H = "backspace";
772
+ function Ae(t, e) {
759
773
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
760
774
  if (!b(r)) {
761
- const E = {
775
+ const C = {
762
776
  node_type: "unknown"
763
777
  };
764
778
  return l(
@@ -766,7 +780,7 @@ function He(t, e) {
766
780
  [
767
781
  n("feature_list", "2-0-0", s),
768
782
  n("session", "1-0-2", i),
769
- n("element", "1-0-0", E),
783
+ n("element", "1-0-0", C),
770
784
  o ? n("step", "1-0-0", o) : void 0,
771
785
  a ? n("experience", "1-0-0", a) : void 0
772
786
  ],
@@ -776,8 +790,8 @@ function He(t, e) {
776
790
  const c = T(r) || r, m = {
777
791
  id: c.id || null,
778
792
  node_type: c.nodeName.toLowerCase(),
779
- label: C(k(c)),
780
- text: C(v(c))
793
+ label: E(k(c)),
794
+ text: E(v(c))
781
795
  };
782
796
  return l(
783
797
  H,
@@ -791,15 +805,15 @@ function He(t, e) {
791
805
  e
792
806
  );
793
807
  }
794
- const qe = u(H, He);
808
+ const Fe = u(H, Ae);
795
809
  function Re(t, e) {
796
- t.event.key === "Backspace" && qe(t, e);
810
+ t.event.key === "Backspace" && Fe(t, e);
797
811
  }
798
- const je = _("keydown", Re), pt = "page_hide";
799
- function Ae(t, e) {
812
+ const je = _("keydown", Re), mt = "page_hide";
813
+ function Oe(t, e) {
800
814
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
801
815
  return l(
802
- pt,
816
+ mt,
803
817
  [
804
818
  n("feature_list", "2-0-0", s),
805
819
  n("session", "1-0-2", i),
@@ -809,15 +823,15 @@ function Ae(t, e) {
809
823
  e
810
824
  );
811
825
  }
812
- const Fe = u(pt, Ae);
813
- function Oe(t, e) {
814
- Fe(t, e);
815
- }
816
- const We = y("pagehide", Oe), mt = "page_show";
826
+ const We = u(mt, Oe);
817
827
  function Me(t, e) {
828
+ We(t, e);
829
+ }
830
+ const Ge = y("pagehide", Me), Et = "page_show";
831
+ function Ue(t, e) {
818
832
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
819
833
  return l(
820
- mt,
834
+ Et,
821
835
  [
822
836
  n("feature_list", "2-0-0", s),
823
837
  n("session", "1-0-2", i),
@@ -827,12 +841,12 @@ function Me(t, e) {
827
841
  e
828
842
  );
829
843
  }
830
- const Ge = u(mt, Me);
831
- function Ue(t, e) {
832
- Ge(t, e);
833
- }
834
- const ze = y("pageshow", Ue), Ct = "offline";
844
+ const ze = u(Et, Ue);
835
845
  function Ie(t, e) {
846
+ ze(t, e);
847
+ }
848
+ const Ke = y("pageshow", Ie), Ct = "offline";
849
+ function Xe(t, e) {
836
850
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
837
851
  return l(
838
852
  Ct,
@@ -845,12 +859,12 @@ function Ie(t, e) {
845
859
  e
846
860
  );
847
861
  }
848
- const Ke = u(Ct, Ie);
849
- function Xe(t, e) {
850
- Ke(t, e);
851
- }
852
- const Je = y("offline", Xe), q = "scroll";
862
+ const Je = u(Ct, Xe);
853
863
  function Qe(t, e) {
864
+ Je(t, e);
865
+ }
866
+ const Ze = y("offline", Qe), q = "scroll";
867
+ function tn(t, e) {
854
868
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
855
869
  if (!b(r))
856
870
  return l(
@@ -866,8 +880,8 @@ function Qe(t, e) {
866
880
  const c = T(r) || r, m = {
867
881
  id: c.id || null,
868
882
  node_type: c.nodeName.toLowerCase(),
869
- label: C(k(c)),
870
- text: C(v(c))
883
+ label: E(k(c)),
884
+ text: E(v(c))
871
885
  };
872
886
  return l(
873
887
  q,
@@ -881,16 +895,16 @@ function Qe(t, e) {
881
895
  e
882
896
  );
883
897
  }
884
- const Ze = u(q, Qe), tn = P(
898
+ const en = u(q, tn), nn = P(
885
899
  (t, e) => {
886
- Ze(t, e);
900
+ en(t, e);
887
901
  },
888
902
  500
889
- ), en = _("scroll", tn, !0), Et = "online";
890
- function nn(t, e) {
903
+ ), sn = _("scroll", nn, !0), vt = "online";
904
+ function on(t, e) {
891
905
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
892
906
  return l(
893
- Et,
907
+ vt,
894
908
  [
895
909
  n("feature_list", "2-0-0", s),
896
910
  n("session", "1-0-2", i),
@@ -900,15 +914,15 @@ function nn(t, e) {
900
914
  e
901
915
  );
902
916
  }
903
- const sn = u(Et, nn);
904
- function on(t, e) {
905
- sn(t, e);
906
- }
907
- const an = y("online", on), vt = "resize";
917
+ const an = u(vt, on);
908
918
  function rn(t, e) {
919
+ an(t, e);
920
+ }
921
+ const cn = y("online", rn), Dt = "resize";
922
+ function ln(t, e) {
909
923
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
910
924
  return l(
911
- vt,
925
+ Dt,
912
926
  [
913
927
  n("feature_list", "2-0-0", s),
914
928
  n("session", "1-0-2", i),
@@ -918,19 +932,19 @@ function rn(t, e) {
918
932
  e
919
933
  );
920
934
  }
921
- const K = u(vt, rn);
935
+ const K = u(Dt, ln);
922
936
  let V = 0;
923
- const cn = P(
937
+ const un = P(
924
938
  (t, e) => {
925
939
  const s = window.innerWidth;
926
940
  s !== V ? (K(t, e), V = s) : "ontouchstart" in window || K(t, e), V = s;
927
941
  },
928
942
  300
929
- ), ln = y("resize", cn), Dt = "unload";
930
- function un(t, e) {
943
+ ), fn = y("resize", un), _t = "unload";
944
+ function dn(t, e) {
931
945
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
932
946
  return l(
933
- Dt,
947
+ _t,
934
948
  [
935
949
  n("feature_list", "2-0-0", s),
936
950
  n("session", "1-0-2", i),
@@ -940,23 +954,23 @@ function un(t, e) {
940
954
  e
941
955
  );
942
956
  }
943
- const fn = u(Dt, un);
944
- function dn(t, e) {
945
- fn(t, e);
946
- }
947
- const xn = y("unload", dn), R = "click";
957
+ const xn = u(_t, dn);
948
958
  function pn(t, e) {
959
+ xn(t, e);
960
+ }
961
+ const mn = y("unload", pn), A = "click";
962
+ function En(t, e) {
949
963
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
950
964
  if (!b(r)) {
951
- const E = {
965
+ const C = {
952
966
  node_type: "unknown"
953
967
  };
954
968
  return l(
955
- R,
969
+ A,
956
970
  [
957
971
  n("feature_list", "2-0-0", s),
958
972
  n("session", "1-0-2", i),
959
- n("element", "1-0-0", E),
973
+ n("element", "1-0-0", C),
960
974
  o ? n("step", "1-0-0", o) : void 0,
961
975
  a ? n("experience", "1-0-0", a) : void 0
962
976
  ],
@@ -966,11 +980,11 @@ function pn(t, e) {
966
980
  const c = T(r) || r, m = {
967
981
  id: c.id || null,
968
982
  node_type: c.nodeName.toLowerCase(),
969
- label: C(k(c)),
970
- text: C(v(c))
983
+ label: E(k(c)),
984
+ text: E(v(c))
971
985
  };
972
986
  return l(
973
- R,
987
+ A,
974
988
  [
975
989
  n("feature_list", "2-0-0", s),
976
990
  n("session", "1-0-2", i),
@@ -981,16 +995,16 @@ function pn(t, e) {
981
995
  e
982
996
  );
983
997
  }
984
- const mn = u(R, pn);
985
- function Cn(t, e) {
986
- mn(t, e);
987
- }
988
- const En = _("click", Cn), j = "paste";
998
+ const Cn = u(A, En);
989
999
  function vn(t, e) {
1000
+ Cn(t, e);
1001
+ }
1002
+ const Dn = _("click", vn), F = "paste";
1003
+ function _n(t, e) {
990
1004
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
991
1005
  if (!b(r))
992
1006
  return l(
993
- j,
1007
+ F,
994
1008
  [
995
1009
  n("feature_list", "2-0-0", s),
996
1010
  n("session", "1-0-2", i),
@@ -1002,11 +1016,11 @@ function vn(t, e) {
1002
1016
  const c = T(r) || r, m = {
1003
1017
  id: c.id || null,
1004
1018
  node_type: c.nodeName.toLowerCase(),
1005
- label: C(k(c)),
1006
- text: C(v(c))
1019
+ label: E(k(c)),
1020
+ text: E(v(c))
1007
1021
  };
1008
1022
  return l(
1009
- j,
1023
+ F,
1010
1024
  [
1011
1025
  n("feature_list", "2-0-0", s),
1012
1026
  n("session", "1-0-2", i),
@@ -1017,16 +1031,16 @@ function vn(t, e) {
1017
1031
  e
1018
1032
  );
1019
1033
  }
1020
- const Dn = u(j, vn);
1021
- function _n(t, e) {
1022
- Dn(t, e);
1023
- }
1024
- const bn = _("paste", _n), A = "copy";
1034
+ const bn = u(F, _n);
1025
1035
  function Tn(t, e) {
1036
+ bn(t, e);
1037
+ }
1038
+ const kn = _("paste", Tn), R = "copy";
1039
+ function $n(t, e) {
1026
1040
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1027
1041
  if (!b(r))
1028
1042
  return l(
1029
- A,
1043
+ R,
1030
1044
  [
1031
1045
  n("feature_list", "2-0-0", s),
1032
1046
  n("session", "1-0-2", i),
@@ -1038,11 +1052,11 @@ function Tn(t, e) {
1038
1052
  const c = T(r) || r, m = {
1039
1053
  id: c.id || null,
1040
1054
  node_type: c.nodeName.toLowerCase(),
1041
- label: C(k(c)),
1042
- text: C(v(c))
1055
+ label: E(k(c)),
1056
+ text: E(v(c))
1043
1057
  };
1044
1058
  return l(
1045
- A,
1059
+ R,
1046
1060
  [
1047
1061
  n("feature_list", "2-0-0", s),
1048
1062
  n("session", "1-0-2", i),
@@ -1053,16 +1067,16 @@ function Tn(t, e) {
1053
1067
  e
1054
1068
  );
1055
1069
  }
1056
- const kn = u(A, Tn);
1057
- function $n(t, e) {
1058
- kn(t, e);
1059
- }
1060
- const gn = _("copy", $n), F = "drag";
1070
+ const gn = u(R, $n);
1061
1071
  function Ln(t, e) {
1072
+ gn(t, e);
1073
+ }
1074
+ const yn = _("copy", Ln), j = "drag";
1075
+ function hn(t, e) {
1062
1076
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1063
1077
  if (!b(r))
1064
1078
  return l(
1065
- F,
1079
+ j,
1066
1080
  [
1067
1081
  n("feature_list", "2-0-0", s),
1068
1082
  n("session", "1-0-2", i),
@@ -1074,11 +1088,11 @@ function Ln(t, e) {
1074
1088
  const c = T(r) || r, m = {
1075
1089
  id: c.id || null,
1076
1090
  node_type: c.nodeName.toLowerCase(),
1077
- label: C(k(c)),
1078
- text: C(v(c))
1091
+ label: E(k(c)),
1092
+ text: E(v(c))
1079
1093
  };
1080
1094
  return l(
1081
- F,
1095
+ j,
1082
1096
  [
1083
1097
  n("feature_list", "2-0-0", s),
1084
1098
  n("session", "1-0-2", i),
@@ -1089,51 +1103,52 @@ function Ln(t, e) {
1089
1103
  e
1090
1104
  );
1091
1105
  }
1092
- const yn = u(F, Ln);
1093
- function _t(t, e) {
1106
+ const Nn = u(j, hn);
1107
+ function bt(t, e) {
1094
1108
  const s = t.event.currentTarget;
1095
1109
  if (!s || !(s instanceof HTMLElement))
1096
1110
  return;
1097
1111
  function i(a) {
1098
- _t({ event: a, analyticsContext: t.analyticsContext });
1112
+ bt({ event: a, analyticsContext: t.analyticsContext });
1099
1113
  }
1100
1114
  s.removeEventListener("drag", i), s.addEventListener(
1101
1115
  "dragend",
1102
- () => bt(s, () => t.analyticsContext)
1103
- ), yn(t, e);
1116
+ () => Tt(s, () => t.analyticsContext)
1117
+ ), Nn(t, e);
1104
1118
  }
1105
- const bt = _("drag", _t);
1106
- function In(t, e) {
1107
- e && (En(e, t), Ee(e, t), be(e, t), gn(e, t), bn(e, t), bt(e, t), je(e, t), en(e, t), fe(e, t), Ne(e, t));
1119
+ const Tt = _("drag", bt);
1120
+ function Jn(t, e) {
1121
+ e && (Dn(e, t), De(e, t), ke(e, t), yn(e, t), kn(e, t), Tt(e, t), je(e, t), sn(e, t), xe(e, t), Pe(e, t));
1108
1122
  }
1109
- function Kn(t) {
1110
- Be(t), We(t), ze(t), Je(t), an(t), ln(t), xn(t);
1123
+ function Qn(t) {
1124
+ qe(t), Ge(t), Ke(t), Ze(t), cn(t), fn(t), mn(t);
1111
1125
  }
1112
1126
  export {
1127
+ Xn as A,
1113
1128
  d as a,
1114
- Yn as b,
1129
+ Hn as b,
1115
1130
  u as c,
1116
1131
  p as d,
1117
1132
  x as e,
1118
1133
  f,
1119
1134
  l as g,
1120
1135
  n as h,
1121
- Bn as i,
1136
+ qn as i,
1122
1137
  Q as j,
1123
1138
  O as k,
1124
1139
  Z as l,
1125
- Hn as m,
1126
- In as n,
1127
- Kn as o,
1140
+ An as m,
1141
+ Jn as n,
1142
+ Qn as o,
1128
1143
  Rn as p,
1129
1144
  jn as q,
1130
- An as r,
1131
- Fn as s,
1132
- qn as t,
1133
- On as u,
1134
- Wn as v,
1135
- Mn as w,
1136
- Gn as x,
1137
- Un as y,
1138
- zn as z
1145
+ On as r,
1146
+ Wn as s,
1147
+ Fn as t,
1148
+ Mn as u,
1149
+ Gn as v,
1150
+ Un as w,
1151
+ zn as x,
1152
+ In as y,
1153
+ Kn as z
1139
1154
  };