@picked/analytics 0.0.1-dev.1774244905386 → 0.0.1-dev.1774912386475

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.
@@ -31,34 +31,47 @@ function _(e, t) {
31
31
  i(t(e, n));
32
32
  };
33
33
  }
34
- function v(e, t) {
35
- return (n) => {
36
- e({
37
- event: n,
38
- analyticsContext: t()
39
- });
40
- };
41
- }
42
- function y(e, t, n = { passive: !0 }) {
34
+ function v(e, t, n = { passive: !0 }) {
43
35
  let r = /* @__PURE__ */ new WeakMap();
44
36
  return (i, a) => {
45
37
  let o = r.get(i);
46
- o || (o = /* @__PURE__ */ new Set(), r.set(i, o)), !o.has(e) && (i.addEventListener(e, v(t, a), n), o.add(e));
38
+ if (o || (o = /* @__PURE__ */ new Set(), r.set(i, o)), o.has(e)) return;
39
+ function s(e) {
40
+ t({
41
+ event: e,
42
+ analyticsContext: a()
43
+ });
44
+ }
45
+ i.addEventListener(e, s, n), o.add(e);
47
46
  };
48
47
  }
49
48
  function ee(e, t) {
50
49
  let n = /* @__PURE__ */ new Set();
51
50
  return (r) => {
52
- n.has(e) || f() && (document.addEventListener(e, v(t, r), { passive: !0 }), n.add(e));
51
+ if (n.has(e) || !f()) return;
52
+ function i(e) {
53
+ t({
54
+ event: e,
55
+ analyticsContext: r()
56
+ });
57
+ }
58
+ document.addEventListener(e, i, { passive: !0 }), n.add(e);
53
59
  };
54
60
  }
55
- function b(e, t) {
61
+ function y(e, t) {
56
62
  let n = /* @__PURE__ */ new Set();
57
63
  return (r) => {
58
- n.has(e) || p() && (window.addEventListener(e, v(t, r), { passive: !0 }), n.add(e));
64
+ if (n.has(e) || !p()) return;
65
+ function i(e) {
66
+ t({
67
+ event: e,
68
+ analyticsContext: r()
69
+ });
70
+ }
71
+ window.addEventListener(e, i, { passive: !0 }), n.add(e);
59
72
  };
60
73
  }
61
- function x(e) {
74
+ function b(e) {
62
75
  return { items: e.features?.map(({ feature: e, name: t, key: n, bucket: r }) => ({
63
76
  ab_feature: e,
64
77
  ab_name: t,
@@ -66,37 +79,45 @@ function x(e) {
66
79
  ab_bucket: r
67
80
  })) || [] };
68
81
  }
69
- var S = "unknown";
70
- function C(e) {
82
+ var x = "unknown";
83
+ function S(e) {
71
84
  let t = te(), n = { id: e.sessionId || null };
72
85
  return e.isUser !== void 0 && (n.is_user = e.isUser), e.identifiers && Object.assign(n, e.identifiers), t && (n.gaid = t), e.shopifySession?.clientId && (n.shopify_client_id = e.shopifySession.clientId), e.shopifySession?.customerId && (n.shopify_customer_id = e.shopifySession.customerId), e.shopifySession?.checkoutToken && (n.shopify_checkout_token = e.shopifySession.checkoutToken), n;
73
86
  }
74
- function w(e) {
87
+ function C(e) {
75
88
  if (e.fields) return { items: e.fields.map(({ id: e, type: t, label: n, options: r }) => ({
76
89
  id: e,
77
90
  type: t,
78
91
  label: n,
79
- options: Array.isArray(r) ? r : void 0
80
- })) };
81
- }
82
- function T(e) {
83
- if (e.responses) return { items: e.responses.map(({ fieldId: e, value: t }) => ({
84
- field_id: e,
85
- values: Array.isArray(t) ? t.map((e) => ({ value: e })) : [{ value: t }]
92
+ options: Array.isArray(r) ? r.map(({ id: e, label: t, value: n }) => ({
93
+ id: e,
94
+ label: t,
95
+ value: n
96
+ })) : void 0
86
97
  })) };
87
98
  }
88
- function E(e, t = !1) {
99
+ function w(e) {
100
+ if (e.responses) return { items: e.responses.reduce((e, { fieldKey: t, value: n }) => {
101
+ if (n == null) return e;
102
+ let r = Array.isArray(n) ? Array.from(n, (e) => ({ value: e })) : [{ value: n }];
103
+ return e.push({
104
+ field_id: t,
105
+ values: r
106
+ }), e;
107
+ }, []) };
108
+ }
109
+ function T(e, t = !1) {
89
110
  let { step: n } = e;
90
111
  if (n) return {
91
112
  id: n.id,
92
113
  title: n.name
93
114
  };
94
115
  if (t) return {
95
- id: S,
96
- title: S
116
+ id: x,
117
+ title: x
97
118
  };
98
119
  }
99
- function D(e, t = !1) {
120
+ function E(e, t = !1) {
100
121
  let { productList: n } = e;
101
122
  if (n) {
102
123
  let e = {};
@@ -110,8 +131,8 @@ function D(e, t = !1) {
110
131
  currency: e.currency,
111
132
  creative_name: e.creativeName,
112
133
  creative_slot: e.creativeSlot,
113
- discount: P(e.discount),
114
- index: P(e.index),
134
+ discount: N(e.discount),
135
+ index: N(e.index),
115
136
  item_brand: e.itemBrand,
116
137
  item_category: e.itemCategory,
117
138
  item_category2: e.itemCategory2,
@@ -122,66 +143,66 @@ function D(e, t = !1) {
122
143
  item_list_name: e.itemListName,
123
144
  item_variant: e.itemVariant,
124
145
  location_id: e.locationId,
125
- price: P(e.price),
146
+ price: N(e.price),
126
147
  promotion_id: e.promotionId,
127
148
  promotion_name: e.promotionName,
128
- quantity: P(e.quantity),
149
+ quantity: N(e.quantity),
129
150
  in_stock: e.inStock
130
151
  })) }), e;
131
152
  }
132
153
  if (t) return { items: [] };
133
154
  }
134
- function O(e, t = !1) {
155
+ function D(e, t = !1) {
135
156
  let { order: n } = e;
136
157
  if (n) {
137
158
  let e = { id: n.id };
138
159
  return n.checkoutToken && (e.checkout_token = n.checkoutToken), n.cartToken && (e.cart_token = n.cartToken), n.customerId && (e.customer_id = n.customerId), e;
139
160
  }
140
- if (t) return { id: S };
161
+ if (t) return { id: x };
141
162
  }
142
- function k(e, t = !1) {
163
+ function O(e, t = !1) {
143
164
  let { experience: n } = e;
144
165
  if (n) return {
145
166
  id: n.id,
146
167
  title: n.title
147
168
  };
148
169
  if (t) return {
149
- id: S,
150
- title: S
170
+ id: x,
171
+ title: x
151
172
  };
152
173
  }
153
- function A(e, t = !1) {
174
+ function k(e, t = !1) {
154
175
  let { exception: n } = e;
155
176
  if (n) return typeof n == "string" ? { reason: n } : { reason: n.systemMessage };
156
- if (t) return { reason: S };
177
+ if (t) return { reason: x };
157
178
  }
158
- function j(e) {
179
+ function A(e) {
159
180
  let { form: t } = e;
160
181
  return t ? {
161
182
  id: t.id,
162
183
  title: t.title
163
184
  } : {
164
- id: S,
165
- title: S
185
+ id: x,
186
+ title: x
166
187
  };
167
188
  }
168
- function M(e) {
189
+ function j(e) {
169
190
  let { modal: t } = e;
170
191
  return t ? {
171
192
  id: t.id,
172
193
  title: t.title
173
194
  } : {
174
- id: S,
175
- title: S
195
+ id: x,
196
+ title: x
176
197
  };
177
198
  }
178
- function N(e, t = 300) {
199
+ function M(e, t = 300) {
179
200
  let n;
180
201
  return function(...r) {
181
202
  clearTimeout(n), n = setTimeout(() => e.apply(this, r), t);
182
203
  };
183
204
  }
184
- function P(e) {
205
+ function N(e) {
185
206
  if (typeof e == "number") return e;
186
207
  if (typeof e != "string") return;
187
208
  let t = parseFloat(e);
@@ -262,7 +283,7 @@ function ae({ organizationId: t, projectId: n, cvlyX: r, deployment: i }) {
262
283
  //#region src/events/app_close.ts
263
284
  var oe = "app_close";
264
285
  function se(e, t) {
265
- let n = x(e), r = C(e), i = k(e), a = E(e);
286
+ let n = b(e), r = S(e), i = O(e), a = T(e);
266
287
  return h(oe, [
267
288
  g("feature_list", "2-0-0", n),
268
289
  g("session", "1-0-4", r),
@@ -272,7 +293,7 @@ function se(e, t) {
272
293
  }
273
294
  var ce = _(oe, se), le = "app_initialize";
274
295
  function ue(e, t) {
275
- let n = x(e), r = C(e), i = k(e), a = E(e);
296
+ let n = b(e), r = S(e), i = O(e), a = T(e);
276
297
  return h(le, [
277
298
  g("feature_list", "2-0-0", n),
278
299
  g("session", "1-0-4", r),
@@ -282,7 +303,7 @@ function ue(e, t) {
282
303
  }
283
304
  var de = _(le, ue), fe = "app_load";
284
305
  function pe(e, t) {
285
- let n = x(e), r = C(e), i = k(e), a = E(e);
306
+ let n = b(e), r = S(e), i = O(e), a = T(e);
286
307
  return h(fe, [
287
308
  g("feature_list", "2-0-0", n),
288
309
  g("session", "1-0-4", r),
@@ -292,7 +313,7 @@ function pe(e, t) {
292
313
  }
293
314
  var me = _(fe, pe), he = "app_open";
294
315
  function ge(e, t) {
295
- let n = x(e), r = C(e), i = k(e), a = E(e);
316
+ let n = b(e), r = S(e), i = O(e), a = T(e);
296
317
  return h(he, [
297
318
  g("feature_list", "2-0-0", n),
298
319
  g("session", "1-0-4", r),
@@ -302,7 +323,7 @@ function ge(e, t) {
302
323
  }
303
324
  var _e = _(he, ge), ve = "experience_load";
304
325
  function ye(e, t) {
305
- let n = x(e), r = C(e), i = k(e, !0), a = E(e);
326
+ let n = b(e), r = S(e), i = O(e, !0), a = T(e);
306
327
  return h(ve, [
307
328
  g("feature_list", "2-0-0", n),
308
329
  g("session", "1-0-4", r),
@@ -312,7 +333,7 @@ function ye(e, t) {
312
333
  }
313
334
  var be = _(ve, ye), xe = "feature_decide";
314
335
  function Se(e, t) {
315
- let n = x(e), r = C(e), i = k(e), a = E(e);
336
+ let n = b(e), r = S(e), i = O(e), a = T(e);
316
337
  return h(xe, [
317
338
  g("feature_list", "2-0-0", n),
318
339
  g("session", "1-0-4", r),
@@ -322,7 +343,7 @@ function Se(e, t) {
322
343
  }
323
344
  var Ce = _(xe, Se), we = "step_complete";
324
345
  function Te(e, t) {
325
- let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = T(e), s = w(e);
346
+ let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = w(e), s = C(e);
326
347
  return h(we, [
327
348
  g("feature_list", "2-0-0", n),
328
349
  g("session", "1-0-4", r),
@@ -334,7 +355,7 @@ function Te(e, t) {
334
355
  }
335
356
  var Ee = _(we, Te), De = "step_enter";
336
357
  function Oe(e, t) {
337
- let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = w(e);
358
+ let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = C(e);
338
359
  return h(De, [
339
360
  g("feature_list", "2-0-0", n),
340
361
  g("session", "1-0-4", r),
@@ -345,7 +366,7 @@ function Oe(e, t) {
345
366
  }
346
367
  var ke = _(De, Oe), Ae = "step_submit";
347
368
  function je(e, t) {
348
- let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = T(e), s = w(e);
369
+ let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = w(e), s = C(e);
349
370
  return h(Ae, [
350
371
  g("feature_list", "2-0-0", n),
351
372
  g("session", "1-0-4", r),
@@ -357,7 +378,7 @@ function je(e, t) {
357
378
  }
358
379
  var Me = _(Ae, je), Ne = "step_submit_error";
359
380
  function Pe(e, t) {
360
- let n = x(e), r = C(e), i = A(e, !0), a = k(e), o = E(e, !0), s = w(e), c = T(e);
381
+ let n = b(e), r = S(e), i = k(e, !0), a = O(e), o = T(e, !0), s = C(e), c = w(e);
361
382
  return h(Ne, [
362
383
  g("feature_list", "2-0-0", n),
363
384
  g("session", "1-0-4", r),
@@ -370,7 +391,7 @@ function Pe(e, t) {
370
391
  }
371
392
  var Fe = _(Ne, Pe), Ie = "step_submit_success";
372
393
  function Le(e, t) {
373
- let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = w(e), s = T(e);
394
+ let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = C(e), s = w(e);
374
395
  return h(Ie, [
375
396
  g("feature_list", "2-0-0", n),
376
397
  g("session", "1-0-4", r),
@@ -382,7 +403,7 @@ function Le(e, t) {
382
403
  }
383
404
  var Re = _(Ie, Le), ze = "cart_add";
384
405
  function Be(e, t) {
385
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
406
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
386
407
  return h(ze, [
387
408
  g("app", "1-0-0", {
388
409
  organization_id: e.organizationId,
@@ -400,7 +421,7 @@ function Ve(e, t) {
400
421
  }
401
422
  var He = _(ze, Be), Ue = "cart_remove";
402
423
  function We(e, t) {
403
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
424
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
404
425
  return h(Ue, [
405
426
  g("app", "1-0-0", {
406
427
  organization_id: e.organizationId,
@@ -418,7 +439,7 @@ function Ge(e, t) {
418
439
  }
419
440
  var Ke = _(Ue, We), qe = "checkout_complete";
420
441
  function Je(e, t) {
421
- let n = x(e), r = C(e), i = D(e, !0), a = O(e, !0), o = k(e), s = E(e);
442
+ let n = b(e), r = S(e), i = E(e, !0), a = D(e, !0), o = O(e), s = T(e);
422
443
  return h(qe, [
423
444
  g("app", "1-0-0", {
424
445
  organization_id: e.organizationId,
@@ -437,7 +458,7 @@ function Ye(e, t) {
437
458
  }
438
459
  var Xe = _(qe, Je), Ze = "checkout_start";
439
460
  function Qe(e, t) {
440
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
461
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
441
462
  return h(Ze, [
442
463
  g("app", "1-0-0", {
443
464
  organization_id: e.organizationId,
@@ -455,7 +476,7 @@ function $e(e, t) {
455
476
  }
456
477
  var et = _(Ze, Qe), tt = "order_create";
457
478
  function nt(e, t) {
458
- let n = x(e), r = C(e), i = D(e, !0), a = O(e, !0), o = k(e), s = E(e);
479
+ let n = b(e), r = S(e), i = E(e, !0), a = D(e, !0), o = O(e), s = T(e);
459
480
  return h(tt, [
460
481
  g("app", "1-0-0", {
461
482
  organization_id: e.organizationId,
@@ -472,10 +493,10 @@ function nt(e, t) {
472
493
  function rt(e, t) {
473
494
  return nt(e, t);
474
495
  }
475
- var it = _(tt, nt), at = "product_list_view";
476
- function ot(e, t) {
477
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
478
- return h(at, [
496
+ var it = _(tt, nt), P = "product_list_view";
497
+ function at(e, t) {
498
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
499
+ return h(P, [
479
500
  g("app", "1-0-0", {
480
501
  organization_id: e.organizationId,
481
502
  project_id: e.projectId
@@ -487,13 +508,13 @@ function ot(e, t) {
487
508
  a ? g("experience", "1-0-1", a) : void 0
488
509
  ], t);
489
510
  }
490
- function st(e, t) {
491
- return ot(e, t);
511
+ function ot(e, t) {
512
+ return at(e, t);
492
513
  }
493
- var ct = _(at, ot), lt = "product_select";
494
- function ut(e, t) {
495
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
496
- return h(lt, [
514
+ var st = _(P, at), ct = "product_select";
515
+ function lt(e, t) {
516
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
517
+ return h(ct, [
497
518
  g("feature_list", "2-0-0", n),
498
519
  g("session", "1-0-4", r),
499
520
  g("product_list", "2-0-1", i),
@@ -501,10 +522,10 @@ function ut(e, t) {
501
522
  o && g("step", "1-0-0", o)
502
523
  ], t);
503
524
  }
504
- var dt = _(lt, ut), ft = "product_view_details";
505
- function pt(e, t) {
506
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
507
- return h(ft, [
525
+ var ut = _(ct, lt), dt = "product_view_details";
526
+ function ft(e, t) {
527
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
528
+ return h(dt, [
508
529
  g("app", "1-0-0", {
509
530
  organization_id: e.organizationId,
510
531
  project_id: e.projectId
@@ -516,13 +537,13 @@ function pt(e, t) {
516
537
  o && g("step", "1-0-0", o)
517
538
  ], t);
518
539
  }
519
- function mt(e, t) {
520
- return pt(e, t);
540
+ function pt(e, t) {
541
+ return ft(e, t);
521
542
  }
522
- var ht = _(ft, pt), gt = "recommendation_present";
523
- function _t(e, t) {
524
- let n = x(e), r = C(e), i = k(e), a = E(e), o = D(e, !0);
525
- return h(gt, [
543
+ var mt = _(dt, ft), ht = "recommendation_present";
544
+ function gt(e, t) {
545
+ let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e, !0);
546
+ return h(ht, [
526
547
  g("feature_list", "2-0-0", n),
527
548
  g("session", "1-0-4", r),
528
549
  g("product_list", "2-0-1", o),
@@ -530,10 +551,10 @@ function _t(e, t) {
530
551
  a && g("step", "1-0-0", a)
531
552
  ], t);
532
553
  }
533
- var vt = _(gt, _t), yt = "search_results_list_view";
534
- function bt(e, t) {
535
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
536
- return h(yt, [
554
+ var _t = _(ht, gt), vt = "search_results_list_view";
555
+ function yt(e, t) {
556
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
557
+ return h(vt, [
537
558
  g("feature_list", "2-0-0", n),
538
559
  g("session", "1-0-4", r),
539
560
  g("product_list", "2-0-1", i),
@@ -541,10 +562,10 @@ function bt(e, t) {
541
562
  a ? g("experience", "1-0-1", a) : void 0
542
563
  ], t);
543
564
  }
544
- var xt = _(yt, bt), St = "waitlist_join";
545
- function Ct(e, t) {
546
- let n = x(e), r = C(e), i = k(e), a = E(e), o = D(e);
547
- return h(St, [
565
+ var bt = _(vt, yt), xt = "waitlist_join";
566
+ function St(e, t) {
567
+ let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e);
568
+ return h(xt, [
548
569
  g("app", "1-0-0", {
549
570
  organization_id: e.organizationId,
550
571
  project_id: e.projectId
@@ -556,10 +577,10 @@ function Ct(e, t) {
556
577
  o ? g("product_list", "2-0-1", o) : void 0
557
578
  ], t);
558
579
  }
559
- var wt = _(St, Ct), Tt = "wishlist_add";
560
- function Et(e, t) {
561
- let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
562
- return h(Tt, [
580
+ var Ct = _(xt, St), wt = "wishlist_add";
581
+ function Tt(e, t) {
582
+ let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
583
+ return h(wt, [
563
584
  g("feature_list", "2-0-0", n),
564
585
  g("session", "1-0-4", r),
565
586
  g("product_list", "2-0-1", i),
@@ -567,10 +588,10 @@ function Et(e, t) {
567
588
  o && g("step", "1-0-0", o)
568
589
  ], t);
569
590
  }
570
- var Dt = _(Tt, Et), Ot = "field_validation_error";
571
- function kt(e, t) {
572
- let n = x(e), r = C(e), i = j(e), a = A(e, !0), o = k(e), s = E(e);
573
- return h(Ot, [
591
+ var Et = _(wt, Tt), Dt = "field_validation_error";
592
+ function Ot(e, t) {
593
+ let n = b(e), r = S(e), i = A(e), a = k(e, !0), o = O(e), s = T(e);
594
+ return h(Dt, [
574
595
  g("feature_list", "2-0-0", n),
575
596
  g("session", "1-0-4", r),
576
597
  g("exception", "1-0-0", a),
@@ -579,10 +600,10 @@ function kt(e, t) {
579
600
  s && g("step", "1-0-0", s)
580
601
  ], t);
581
602
  }
582
- var At = _(Ot, kt), jt = "form_submit";
583
- function Mt(e, t) {
584
- let n = x(e), r = C(e), i = j(e), a = k(e), o = E(e);
585
- return h(jt, [
603
+ var kt = _(Dt, Ot), At = "form_submit";
604
+ function jt(e, t) {
605
+ let n = b(e), r = S(e), i = A(e), a = O(e), o = T(e);
606
+ return h(At, [
586
607
  g("feature_list", "2-0-0", n),
587
608
  g("session", "1-0-4", r),
588
609
  g("form", "1-0-0", i),
@@ -590,10 +611,10 @@ function Mt(e, t) {
590
611
  o && g("step", "1-0-0", o)
591
612
  ], t);
592
613
  }
593
- var Nt = _(jt, Mt), Pt = "form_submit_error";
594
- function Ft(e, t) {
595
- let n = x(e), r = C(e), i = j(e), a = A(e, !0), o = k(e), s = E(e);
596
- return h(Pt, [
614
+ var Mt = _(At, jt), Nt = "form_submit_error";
615
+ function Pt(e, t) {
616
+ let n = b(e), r = S(e), i = A(e), a = k(e, !0), o = O(e), s = T(e);
617
+ return h(Nt, [
597
618
  g("feature_list", "2-0-0", n),
598
619
  g("session", "1-0-4", r),
599
620
  g("form", "1-0-0", i),
@@ -602,10 +623,10 @@ function Ft(e, t) {
602
623
  s && g("step", "1-0-0", s)
603
624
  ], t);
604
625
  }
605
- var It = _(Pt, Ft), Lt = "form_submit_success";
606
- function Rt(e, t) {
607
- let n = x(e), r = C(e), i = j(e), a = k(e), o = E(e);
608
- return h(Lt, [
626
+ var Ft = _(Nt, Pt), It = "form_submit_success";
627
+ function Lt(e, t) {
628
+ let n = b(e), r = S(e), i = A(e), a = O(e), o = T(e);
629
+ return h(It, [
609
630
  g("feature_list", "2-0-0", n),
610
631
  g("session", "1-0-4", r),
611
632
  g("form", "1-0-0", i),
@@ -613,10 +634,10 @@ function Rt(e, t) {
613
634
  o && g("step", "1-0-0", o)
614
635
  ], t);
615
636
  }
616
- var zt = _(Lt, Rt), Bt = "identify";
617
- function Vt(e, t) {
618
- let n = x(e), r = C(e), i = k(e), a = E(e);
619
- return h(Bt, [
637
+ var Rt = _(It, Lt), zt = "identify";
638
+ function Bt(e, t) {
639
+ let n = b(e), r = S(e), i = O(e), a = T(e);
640
+ return h(zt, [
620
641
  g("app", "1-0-0", {
621
642
  organization_id: e.organizationId,
622
643
  project_id: e.projectId
@@ -627,23 +648,23 @@ function Vt(e, t) {
627
648
  i ? g("experience", "1-0-1", i) : void 0
628
649
  ], t);
629
650
  }
630
- function Ht(e, t) {
631
- return Vt(e, t);
651
+ function Vt(e, t) {
652
+ return Bt(e, t);
632
653
  }
633
- var Ut = _(Bt, Vt), Wt = "lead_capture";
634
- function Gt(e, t) {
635
- let n = x(e), r = C(e), i = k(e), a = E(e);
636
- return h(Wt, [
654
+ var Ht = _(zt, Bt), Ut = "lead_capture";
655
+ function Wt(e, t) {
656
+ let n = b(e), r = S(e), i = O(e), a = T(e);
657
+ return h(Ut, [
637
658
  g("feature_list", "2-0-0", n),
638
659
  g("session", "1-0-4", r),
639
660
  a && g("step", "1-0-0", a),
640
661
  i && g("experience", "1-0-1", i)
641
662
  ], t);
642
663
  }
643
- var Kt = _(Wt, Gt), qt = "modal_close";
644
- function Jt(e, t) {
645
- let n = x(e), r = C(e), i = M(e), a = k(e), o = E(e);
646
- return h(qt, [
664
+ var Gt = _(Ut, Wt), Kt = "modal_close";
665
+ function qt(e, t) {
666
+ let n = b(e), r = S(e), i = j(e), a = O(e), o = T(e);
667
+ return h(Kt, [
647
668
  g("feature_list", "2-0-0", n),
648
669
  g("session", "1-0-4", r),
649
670
  g("modal", "1-0-0", i),
@@ -651,10 +672,10 @@ function Jt(e, t) {
651
672
  o && g("step", "1-0-0", o)
652
673
  ], t);
653
674
  }
654
- var Yt = _(qt, Jt), Xt = "modal_open";
655
- function Zt(e, t) {
656
- let n = x(e), r = C(e), i = M(e), a = k(e), o = E(e);
657
- return h(Xt, [
675
+ var Jt = _(Kt, qt), Yt = "modal_open";
676
+ function Xt(e, t) {
677
+ let n = b(e), r = S(e), i = j(e), a = O(e), o = T(e);
678
+ return h(Yt, [
658
679
  g("feature_list", "2-0-0", n),
659
680
  g("session", "1-0-4", r),
660
681
  g("modal", "1-0-0", i),
@@ -662,10 +683,10 @@ function Zt(e, t) {
662
683
  o && g("step", "1-0-0", o)
663
684
  ], t);
664
685
  }
665
- var Qt = _(Xt, Zt), $t = "page_view";
666
- function en(e, t) {
667
- let n = x(e), r = C(e), i = k(e), a = E(e), o = D(e);
668
- return h($t, [
686
+ var Zt = _(Yt, Xt), Qt = "page_view";
687
+ function $t(e, t) {
688
+ let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e);
689
+ return h(Qt, [
669
690
  g("app", "1-0-0", {
670
691
  organization_id: e.organizationId,
671
692
  project_id: e.projectId
@@ -677,16 +698,16 @@ function en(e, t) {
677
698
  o ? g("product_list", "2-0-1", o) : void 0
678
699
  ], t);
679
700
  }
680
- function tn(e, t) {
681
- return en(e, t);
701
+ function en(e, t) {
702
+ return $t(e, t);
682
703
  }
683
- var nn = _($t, en);
704
+ var tn = _(Qt, $t);
684
705
  //#endregion
685
706
  //#region src/helpers/element.ts
686
707
  function F(e) {
687
708
  return e instanceof Element;
688
709
  }
689
- function rn(e) {
710
+ function nn(e) {
690
711
  return `data-picked-${e.replaceAll("_", "-")}`;
691
712
  }
692
713
  function I(e) {
@@ -757,9 +778,9 @@ function R(e) {
757
778
  }
758
779
  return "placeholder" in e && typeof e.placeholder == "string" ? e.placeholder : null;
759
780
  }
760
- function an(e, t) {
781
+ function rn(e, t) {
761
782
  if (!F(e)) return null;
762
- let n = rn(t), r = e.closest(`[${n}]`);
783
+ let n = nn(t), r = e.closest(`[${n}]`);
763
784
  if (!r) return null;
764
785
  let i = r.getAttribute(n);
765
786
  return i ? {
@@ -769,15 +790,15 @@ function an(e, t) {
769
790
  }
770
791
  //#endregion
771
792
  //#region src/helpers/text.ts
772
- var on = 255;
793
+ var an = 255;
773
794
  function z(e) {
774
- return e ? e.slice(0, on) : null;
795
+ return e ? e.slice(0, an) : null;
775
796
  }
776
797
  //#endregion
777
798
  //#region src/events/interaction/click.ts
778
799
  var B = "click";
779
- function sn(e, t) {
780
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
800
+ function on(e, t) {
801
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
781
802
  if (!F(o)) return h(B, [
782
803
  g("feature_list", "2-0-0", n),
783
804
  g("session", "1-0-4", r),
@@ -799,11 +820,11 @@ function sn(e, t) {
799
820
  i ? g("experience", "1-0-1", i) : void 0
800
821
  ], t);
801
822
  }
802
- var cn = _(B, sn);
823
+ var V = _(B, on);
803
824
  //#endregion
804
825
  //#region src/events/custom.ts
805
- function ln(e, t, n, r) {
806
- let i = A(n.analyticsContext), a = k(n.analyticsContext), o = x(n.analyticsContext), s = w(n.analyticsContext), c = j(n.analyticsContext), l = M(n.analyticsContext), u = O(n.analyticsContext), d = D(n.analyticsContext), f = T(n.analyticsContext), p = C(n.analyticsContext), m = E(n.analyticsContext), _ = {
826
+ function sn(e, t, n, r) {
827
+ let i = k(n.analyticsContext), a = O(n.analyticsContext), o = b(n.analyticsContext), s = C(n.analyticsContext), c = A(n.analyticsContext), l = j(n.analyticsContext), u = D(n.analyticsContext), d = E(n.analyticsContext), f = w(n.analyticsContext), p = S(n.analyticsContext), m = T(n.analyticsContext), _ = {
807
828
  id: t.id || null,
808
829
  node_type: t.nodeName.toLowerCase(),
809
830
  label: z(R(t)),
@@ -828,14 +849,14 @@ function ln(e, t, n, r) {
828
849
  m ? g("step", "1-0-0", m) : void 0
829
850
  ], r);
830
851
  }
831
- function V(e, t, n) {
832
- let r = an(t.event.target, e);
852
+ function H(e, t, n) {
853
+ let r = rn(t.event.target, e);
833
854
  if (!r) return;
834
855
  let { element: a, customEventName: o } = r;
835
- i(ln(o, a, t, n));
856
+ i(sn(o, a, t, n));
836
857
  }
837
- function un(e, t, n) {
838
- let r = A(e), a = k(e), o = x(e), s = w(e), c = e.form ? j(e) : void 0, l = e.modal ? M(e) : void 0, u = O(e), d = D(e), f = T(e), p = C(e), m = E(e);
858
+ function cn(e, t, n) {
859
+ let r = k(e), a = O(e), o = b(e), s = C(e), c = e.form ? A(e) : void 0, l = e.modal ? j(e) : void 0, u = D(e), d = E(e), f = w(e), p = S(e), m = T(e);
839
860
  i(h(t, [
840
861
  g("app", "1-0-0", {
841
862
  organization_id: e.organizationId,
@@ -856,10 +877,10 @@ function un(e, t, n) {
856
877
  }
857
878
  //#endregion
858
879
  //#region src/events/interaction/rapid_scroll.ts
859
- var H = "rapid_scroll";
860
- function dn(e, t) {
861
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
862
- if (!F(o)) return h(H, [
880
+ var U = "rapid_scroll";
881
+ function ln(e, t) {
882
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
883
+ if (!F(o)) return h(U, [
863
884
  g("feature_list", "2-0-0", n),
864
885
  g("session", "1-0-4", r),
865
886
  a ? g("step", "1-0-0", a) : void 0,
@@ -872,7 +893,7 @@ function dn(e, t) {
872
893
  label: z(R(s)),
873
894
  text: z(L(s))
874
895
  };
875
- return h(H, [
896
+ return h(U, [
876
897
  g("feature_list", "2-0-0", n),
877
898
  g("session", "1-0-4", r),
878
899
  a ? g("step", "1-0-0", a) : void 0,
@@ -880,19 +901,19 @@ function dn(e, t) {
880
901
  g("element", "1-0-0", c)
881
902
  ], t);
882
903
  }
883
- var fn = _(H, dn), pn = 100, mn = 100, hn = 300, gn = 0, _n = 0, vn = N((e, t) => {
884
- fn(e, t), V("rapid_scroll", e, t);
885
- }, hn);
886
- function yn(e, t) {
904
+ var un = _(U, ln), dn = 100, fn = 100, pn = 300, mn = 0, hn = 0, gn = M((e, t) => {
905
+ un(e, t), H("rapid_scroll", e, t);
906
+ }, pn);
907
+ function _n(e, t) {
887
908
  let n = e.event.target || document.documentElement;
888
909
  if (!(n instanceof HTMLElement)) return;
889
- let r = n.scrollTop, i = Date.now() - _n;
890
- Math.abs(r - gn) > pn && i < mn && vn(e, t), gn = r, _n = Date.now();
910
+ let r = n.scrollTop, i = Date.now() - hn;
911
+ Math.abs(r - mn) > dn && i < fn && gn(e, t), mn = r, hn = Date.now();
891
912
  }
892
- var bn = y("scroll", yn, !0), U = "rapid_click";
893
- function xn(e, t) {
894
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
895
- if (!F(o)) return h(U, [
913
+ var vn = v("scroll", _n, !0), W = "rapid_click";
914
+ function yn(e, t) {
915
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
916
+ if (!F(o)) return h(W, [
896
917
  g("feature_list", "2-0-0", n),
897
918
  g("session", "1-0-4", r),
898
919
  g("element", "1-0-0", { node_type: "unknown" }),
@@ -905,7 +926,7 @@ function xn(e, t) {
905
926
  label: z(R(s)),
906
927
  text: z(L(s))
907
928
  };
908
- return h(U, [
929
+ return h(W, [
909
930
  g("feature_list", "2-0-0", n),
910
931
  g("session", "1-0-4", r),
911
932
  g("element", "1-0-0", c),
@@ -913,15 +934,15 @@ function xn(e, t) {
913
934
  i ? g("experience", "1-0-1", i) : void 0
914
935
  ], t);
915
936
  }
916
- var Sn = _(U, xn), W = 0, Cn = 0, wn = 3, Tn = 500;
917
- function En(e, t) {
937
+ var bn = _(W, yn), G = 0, xn = 0, Sn = 3, Cn = 500;
938
+ function wn(e, t) {
918
939
  let n = (/* @__PURE__ */ new Date()).getTime();
919
- n - Cn < Tn ? W++ : W = 1, Cn = n, W >= wn && (Sn(e, t), V("rapid_click", e, t), W = 0);
940
+ n - xn < Cn ? G++ : G = 1, xn = n, G >= Sn && (bn(e, t), H("rapid_click", e, t), G = 0);
920
941
  }
921
- var Dn = y("click", En), G = "right_click";
922
- function On(e, t) {
923
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
924
- if (!F(o)) return h(G, [
942
+ var Tn = v("click", wn), K = "right_click";
943
+ function En(e, t) {
944
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
945
+ if (!F(o)) return h(K, [
925
946
  g("feature_list", "2-0-0", n),
926
947
  g("session", "1-0-4", r),
927
948
  g("element", "1-0-0", { node_type: "unknown" }),
@@ -934,7 +955,7 @@ function On(e, t) {
934
955
  label: z(R(s)),
935
956
  text: z(L(s))
936
957
  };
937
- return h(G, [
958
+ return h(K, [
938
959
  g("feature_list", "2-0-0", n),
939
960
  g("session", "1-0-4", r),
940
961
  g("element", "1-0-0", c),
@@ -942,69 +963,74 @@ function On(e, t) {
942
963
  i ? g("experience", "1-0-1", i) : void 0
943
964
  ], t);
944
965
  }
945
- var kn = _(G, On);
966
+ var Dn = _(K, En);
946
967
  //#endregion
947
968
  //#region src/listeners/right_click.ts
948
- function An(e, t) {
949
- kn(e, t), V("right_click", e, t);
969
+ function On(e, t) {
970
+ Dn(e, t), H("right_click", e, t);
950
971
  }
951
- var jn = y("contextmenu", An), Mn = "mouse_shake";
952
- function Nn(e, t) {
953
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
954
- return h(Mn, [
972
+ var kn = v("contextmenu", On), An = "mouse_shake";
973
+ function jn(e, t) {
974
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
975
+ return h(An, [
955
976
  g("feature_list", "2-0-0", n),
956
977
  g("session", "1-0-4", r),
957
978
  a ? g("step", "1-0-0", a) : void 0,
958
979
  i ? g("experience", "1-0-1", i) : void 0
959
980
  ], t);
960
981
  }
961
- var Pn = _(Mn, Nn), Fn = 5, In = 500, Ln = 500, Rn = {
982
+ var Mn = _(An, jn), Nn = 5, Pn = 500, Fn = 500, In = {
962
983
  x: 0,
963
984
  y: 0
964
- }, K = [], zn = 0, Bn = N((e, t) => {
965
- Pn(e, t), V("mouse_shake", e, t);
966
- }, In);
967
- function Vn(e, t) {
968
- let n = Date.now(), r = e.event.clientX - Rn.x, i = Math.sign(r);
969
- n - zn > Ln && (K = []), i !== 0 && (K.length === 0 || K.at(-1) !== i) && K.push(i), Rn = {
970
- x: e.event.clientX,
971
- y: e.event.clientY
972
- }, K.length >= Fn && (Bn(e, t), K = []), zn = n;
973
- }
974
- var Hn = y("mousemove", Vn), Un = "page_visible";
975
- function Wn(e, t) {
976
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
977
- return h(Un, [
985
+ }, q = [], Ln = 0, Rn = M((e, t) => {
986
+ Mn(e, t), H("mouse_shake", e, t);
987
+ }, Pn);
988
+ function zn(e, t) {
989
+ let { event: n } = e;
990
+ if (!(n instanceof MouseEvent)) return;
991
+ let r = Date.now(), i = n.clientX - In.x, a = Math.sign(i);
992
+ r - Ln > Fn && (q = []), a !== 0 && (q.length === 0 || q.at(-1) !== a) && q.push(a), In = {
993
+ x: n.clientX,
994
+ y: n.clientY
995
+ }, q.length >= Nn && (Rn({
996
+ analyticsContext: e.analyticsContext,
997
+ event: n
998
+ }, t), q = []), Ln = r;
999
+ }
1000
+ var Bn = v("mousemove", zn), Vn = "page_visible";
1001
+ function Hn(e, t) {
1002
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1003
+ return h(Vn, [
978
1004
  g("feature_list", "2-0-0", n),
979
1005
  g("session", "1-0-4", r),
980
1006
  a ? g("step", "1-0-0", a) : void 0,
981
1007
  i ? g("experience", "1-0-1", i) : void 0
982
1008
  ], t);
983
1009
  }
984
- var Gn = _(Un, Wn), Kn = "page_hidden";
985
- function qn(e, t) {
986
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
987
- return h(Kn, [
1010
+ var Un = _(Vn, Hn), Wn = "page_hidden";
1011
+ function Gn(e, t) {
1012
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1013
+ return h(Wn, [
988
1014
  g("feature_list", "2-0-0", n),
989
1015
  g("session", "1-0-4", r),
990
1016
  a ? g("step", "1-0-0", a) : void 0,
991
1017
  i ? g("experience", "1-0-1", i) : void 0
992
1018
  ], t);
993
1019
  }
994
- var Jn = _(Kn, qn);
1020
+ var Kn = _(Wn, Gn);
995
1021
  //#endregion
996
1022
  //#region src/listeners/visibility.ts
997
- function Yn(e, t) {
1023
+ function qn(e, t) {
998
1024
  if (document.visibilityState === "visible") {
999
- Gn(e, t);
1025
+ Un(e, t);
1000
1026
  return;
1001
1027
  }
1002
- Jn(e, t);
1028
+ Kn(e, t);
1003
1029
  }
1004
- var Xn = ee("visibilitychange", Yn), q = "backspace";
1005
- function Zn(e, t) {
1006
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1007
- if (!F(o)) return h(q, [
1030
+ var Jn = ee("visibilitychange", qn), J = "backspace";
1031
+ function Yn(e, t) {
1032
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1033
+ if (!F(o)) return h(J, [
1008
1034
  g("feature_list", "2-0-0", n),
1009
1035
  g("session", "1-0-4", r),
1010
1036
  g("element", "1-0-0", { node_type: "unknown" }),
@@ -1017,7 +1043,7 @@ function Zn(e, t) {
1017
1043
  label: z(R(s)),
1018
1044
  text: z(L(s))
1019
1045
  };
1020
- return h(q, [
1046
+ return h(J, [
1021
1047
  g("feature_list", "2-0-0", n),
1022
1048
  g("session", "1-0-4", r),
1023
1049
  g("element", "1-0-0", c),
@@ -1025,64 +1051,68 @@ function Zn(e, t) {
1025
1051
  i ? g("experience", "1-0-1", i) : void 0
1026
1052
  ], t);
1027
1053
  }
1028
- var Qn = _(q, Zn);
1054
+ var Xn = _(J, Yn);
1029
1055
  //#endregion
1030
1056
  //#region src/listeners/backspace.ts
1031
- function $n(e, t) {
1032
- e.event.key === "Backspace" && Qn(e, t);
1033
- }
1034
- var er = y("keydown", $n), tr = "page_hide";
1035
- function nr(e, t) {
1036
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1037
- return h(tr, [
1057
+ function Zn(e, t) {
1058
+ let { event: n } = e;
1059
+ n instanceof KeyboardEvent && n.key === "Backspace" && Xn({
1060
+ analyticsContext: e.analyticsContext,
1061
+ event: n
1062
+ }, t);
1063
+ }
1064
+ var Qn = v("keydown", Zn), $n = "page_hide";
1065
+ function er(e, t) {
1066
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1067
+ return h($n, [
1038
1068
  g("feature_list", "2-0-0", n),
1039
1069
  g("session", "1-0-4", r),
1040
1070
  a ? g("step", "1-0-0", a) : void 0,
1041
1071
  i ? g("experience", "1-0-1", i) : void 0
1042
1072
  ], t);
1043
1073
  }
1044
- var rr = _(tr, nr);
1074
+ var tr = _($n, er);
1045
1075
  //#endregion
1046
1076
  //#region src/listeners/pagehide.ts
1047
- function ir(e, t) {
1048
- rr(e, t);
1077
+ function nr(e, t) {
1078
+ tr(e, t);
1049
1079
  }
1050
- var ar = b("pagehide", ir), or = "page_show";
1051
- function sr(e, t) {
1052
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1053
- return h(or, [
1080
+ var rr = y("pagehide", nr), ir = "page_show";
1081
+ function ar(e, t) {
1082
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1083
+ return h(ir, [
1054
1084
  g("feature_list", "2-0-0", n),
1055
1085
  g("session", "1-0-4", r),
1056
1086
  a ? g("step", "1-0-0", a) : void 0,
1057
1087
  i ? g("experience", "1-0-1", i) : void 0
1058
1088
  ], t);
1059
1089
  }
1060
- var cr = _(or, sr);
1090
+ var or = _(ir, ar);
1061
1091
  //#endregion
1062
1092
  //#region src/listeners/pageshow.ts
1063
- function lr(e, t) {
1064
- cr(e, t);
1093
+ function sr(e, t) {
1094
+ or(e, t);
1065
1095
  }
1066
- var ur = b("pageshow", lr), dr = "offline";
1067
- function fr(e, t) {
1068
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1069
- return h(dr, [
1096
+ var cr = y("pageshow", sr), lr = "offline";
1097
+ function ur(e, t) {
1098
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1099
+ return h(lr, [
1070
1100
  g("feature_list", "2-0-0", n),
1071
1101
  g("session", "1-0-4", r),
1072
1102
  a ? g("step", "1-0-0", a) : void 0,
1073
1103
  i ? g("experience", "1-0-1", i) : void 0
1074
1104
  ], t);
1075
1105
  }
1076
- var pr = _(dr, fr);
1106
+ var dr = _(lr, ur);
1077
1107
  //#endregion
1078
1108
  //#region src/listeners/offline.ts
1079
- function mr(e, t) {
1080
- pr(e, t);
1109
+ function fr(e, t) {
1110
+ dr(e, t);
1081
1111
  }
1082
- var hr = b("offline", mr), J = "scroll";
1083
- function gr(e, t) {
1084
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1085
- if (!F(o)) return h(J, [
1112
+ var pr = y("offline", fr), Y = "scroll";
1113
+ function mr(e, t) {
1114
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1115
+ if (!F(o)) return h(Y, [
1086
1116
  g("feature_list", "2-0-0", n),
1087
1117
  g("session", "1-0-4", r),
1088
1118
  a ? g("step", "1-0-0", a) : void 0,
@@ -1094,7 +1124,7 @@ function gr(e, t) {
1094
1124
  label: z(R(s)),
1095
1125
  text: z(L(s))
1096
1126
  };
1097
- return h(J, [
1127
+ return h(Y, [
1098
1128
  g("feature_list", "2-0-0", n),
1099
1129
  g("session", "1-0-4", r),
1100
1130
  a ? g("step", "1-0-0", a) : void 0,
@@ -1102,62 +1132,62 @@ function gr(e, t) {
1102
1132
  g("element", "1-0-0", c)
1103
1133
  ], t);
1104
1134
  }
1105
- var _r = _(J, gr), vr = y("scroll", N((e, t) => {
1106
- _r(e, t), V("scroll", e, t);
1107
- }, 500), !0), yr = "online";
1108
- function br(e, t) {
1109
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1110
- return h(yr, [
1135
+ var hr = _(Y, mr), gr = v("scroll", M((e, t) => {
1136
+ hr(e, t), H("scroll", e, t);
1137
+ }, 500), !0), _r = "online";
1138
+ function vr(e, t) {
1139
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1140
+ return h(_r, [
1111
1141
  g("feature_list", "2-0-0", n),
1112
1142
  g("session", "1-0-4", r),
1113
1143
  a ? g("step", "1-0-0", a) : void 0,
1114
1144
  i ? g("experience", "1-0-1", i) : void 0
1115
1145
  ], t);
1116
1146
  }
1117
- var xr = _(yr, br);
1147
+ var yr = _(_r, vr);
1118
1148
  //#endregion
1119
1149
  //#region src/listeners/online.ts
1120
- function Sr(e, t) {
1121
- xr(e, t);
1150
+ function br(e, t) {
1151
+ yr(e, t);
1122
1152
  }
1123
- var Cr = b("online", Sr), Y = "resize";
1124
- function wr(e, t) {
1125
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1126
- return h(Y, [
1153
+ var xr = y("online", br), Sr = "resize";
1154
+ function Cr(e, t) {
1155
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1156
+ return h(Sr, [
1127
1157
  g("feature_list", "2-0-0", n),
1128
1158
  g("session", "1-0-4", r),
1129
1159
  a ? g("step", "1-0-0", a) : void 0,
1130
1160
  i ? g("experience", "1-0-1", i) : void 0
1131
1161
  ], t);
1132
1162
  }
1133
- var Tr = _(Y, wr), X = 0, Er = b("resize", N((e, t) => {
1163
+ var wr = _(Sr, Cr), X = 0, Tr = y("resize", M((e, t) => {
1134
1164
  let n = window.innerWidth;
1135
- n === X ? "ontouchstart" in window || Tr(e, t) : (Tr(e, t), X = n), X = n;
1136
- }, 300)), Dr = "unload";
1137
- function Or(e, t) {
1138
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1139
- return h(Dr, [
1165
+ n === X ? "ontouchstart" in window || wr(e, t) : (wr(e, t), X = n), X = n;
1166
+ }, 300)), Er = "unload";
1167
+ function Dr(e, t) {
1168
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1169
+ return h(Er, [
1140
1170
  g("feature_list", "2-0-0", n),
1141
1171
  g("session", "1-0-4", r),
1142
1172
  a ? g("step", "1-0-0", a) : void 0,
1143
1173
  i ? g("experience", "1-0-1", i) : void 0
1144
1174
  ], t);
1145
1175
  }
1146
- var kr = _(Dr, Or);
1176
+ var Or = _(Er, Dr);
1147
1177
  //#endregion
1148
1178
  //#region src/listeners/unload.ts
1149
- function Ar(e, t) {
1150
- kr(e, t);
1179
+ function kr(e, t) {
1180
+ Or(e, t);
1151
1181
  }
1152
- var jr = b("unload", Ar);
1182
+ var Ar = y("unload", kr);
1153
1183
  //#endregion
1154
1184
  //#region src/listeners/click.ts
1155
- function Mr(e, t) {
1156
- cn(e, t), V("click", e, t);
1185
+ function jr(e, t) {
1186
+ V(e, t), H("click", e, t);
1157
1187
  }
1158
- var Nr = y("click", Mr), Z = "paste";
1159
- function Pr(e, t) {
1160
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1188
+ var Mr = v("click", jr), Z = "paste";
1189
+ function Nr(e, t) {
1190
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1161
1191
  if (!F(o)) return h(Z, [
1162
1192
  g("feature_list", "2-0-0", n),
1163
1193
  g("session", "1-0-4", r),
@@ -1178,15 +1208,15 @@ function Pr(e, t) {
1178
1208
  g("element", "1-0-0", c)
1179
1209
  ], t);
1180
1210
  }
1181
- var Fr = _(Z, Pr);
1211
+ var Pr = _(Z, Nr);
1182
1212
  //#endregion
1183
1213
  //#region src/listeners/paste.ts
1184
- function Ir(e, t) {
1185
- Fr(e, t);
1214
+ function Fr(e, t) {
1215
+ Pr(e, t);
1186
1216
  }
1187
- var Lr = y("paste", Ir), Q = "copy";
1188
- function Rr(e, t) {
1189
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1217
+ var Ir = v("paste", Fr), Q = "copy";
1218
+ function Lr(e, t) {
1219
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1190
1220
  if (!F(o)) return h(Q, [
1191
1221
  g("feature_list", "2-0-0", n),
1192
1222
  g("session", "1-0-4", r),
@@ -1207,15 +1237,15 @@ function Rr(e, t) {
1207
1237
  g("element", "1-0-0", c)
1208
1238
  ], t);
1209
1239
  }
1210
- var zr = _(Q, Rr);
1240
+ var Rr = _(Q, Lr);
1211
1241
  //#endregion
1212
1242
  //#region src/listeners/copy.ts
1213
- function Br(e, t) {
1214
- zr(e, t);
1243
+ function zr(e, t) {
1244
+ Rr(e, t);
1215
1245
  }
1216
- var Vr = y("copy", Br), $ = "drag";
1217
- function Hr(e, t) {
1218
- let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1246
+ var Br = v("copy", zr), $ = "drag";
1247
+ function Vr(e, t) {
1248
+ let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1219
1249
  if (!F(o)) return h($, [
1220
1250
  g("feature_list", "2-0-0", n),
1221
1251
  g("session", "1-0-4", r),
@@ -1236,28 +1266,28 @@ function Hr(e, t) {
1236
1266
  g("element", "1-0-0", c)
1237
1267
  ], t);
1238
1268
  }
1239
- var Ur = _($, Hr);
1269
+ var Hr = _($, Vr);
1240
1270
  //#endregion
1241
1271
  //#region src/listeners/drag.ts
1242
- function Wr(e, t) {
1272
+ function Ur(e, t) {
1243
1273
  let n = e.event.currentTarget;
1244
1274
  if (!n || !(n instanceof HTMLElement)) return;
1245
1275
  function r(t) {
1246
- Wr({
1276
+ Ur({
1247
1277
  event: t,
1248
1278
  analyticsContext: e.analyticsContext
1249
1279
  });
1250
1280
  }
1251
- n.removeEventListener("drag", r), n.addEventListener("dragend", () => Gr(n, () => e.analyticsContext)), Ur(e, t), V("drag", e, t);
1281
+ n.removeEventListener("drag", r), n.addEventListener("dragend", () => Wr(n, () => e.analyticsContext)), Hr(e, t), H("drag", e, t);
1252
1282
  }
1253
- var Gr = y("drag", Wr);
1283
+ var Wr = v("drag", Ur);
1254
1284
  //#endregion
1255
1285
  //#region src/user-interaction.ts
1256
- function Kr(e, t) {
1257
- t && (Nr(t, e), Dn(t, e), jn(t, e), Vr(t, e), Lr(t, e), Gr(t, e), er(t, e), vr(t, e), bn(t, e), Hn(t, e));
1286
+ function Gr(e, t) {
1287
+ t && (Mr(t, e), Tn(t, e), kn(t, e), Br(t, e), Ir(t, e), Wr(t, e), Qn(t, e), gr(t, e), vn(t, e), Bn(t, e));
1258
1288
  }
1259
- function qr(e) {
1260
- Xn(e), ar(e), ur(e), hr(e), Cr(e), Er(e), jr(e);
1289
+ function Kr(e) {
1290
+ Jn(e), rr(e), cr(e), pr(e), xr(e), Tr(e), Ar(e);
1261
1291
  }
1262
1292
  //#endregion
1263
- export { Ye as A, Ee as B, dt as C, it as D, rt as E, He as F, de as G, be as H, Re as I, ce as K, Fe as L, Ge as M, Ke as N, $e as O, Ve as P, Me as R, ht as S, ct as T, _e as U, Ce as V, me as W, Dt as _, cn as a, vt as b, Qt as c, Ht as d, Ut as f, At as g, Nt as h, un as i, Xe as j, et as k, Yt as l, It as m, Kr as n, tn as o, zt as p, ie as q, V as r, nn as s, qr as t, Kt as u, wt as v, st as w, mt as x, xt as y, ke as z };
1293
+ export { Ye as A, Ee as B, ut as C, it as D, rt as E, He as F, de as G, be as H, Re as I, ce as K, Fe as L, Ge as M, Ke as N, $e as O, Ve as P, Me as R, mt as S, st as T, _e as U, Ce as V, me as W, Et as _, V as a, _t as b, Zt as c, Vt as d, Ht as f, kt as g, Mt as h, cn as i, Xe as j, et as k, Jt as l, Ft as m, Gr as n, en as o, Rt as p, ie as q, H as r, tn as s, Kr as t, Gt as u, Ct as v, ot as w, pt as x, bt as y, ke as z };