autotel-subscribers 41.0.3 → 41.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +191 -21
  2. package/README.md +1 -1
  3. package/dist/amplitude.cjs +2 -2
  4. package/dist/amplitude.cjs.map +1 -1
  5. package/dist/amplitude.js +2 -2
  6. package/dist/architecture-snapshot.cjs +6 -6
  7. package/dist/architecture-snapshot.cjs.map +1 -1
  8. package/dist/architecture-snapshot.js +3 -3
  9. package/dist/architecture-snapshot.js.map +1 -1
  10. package/dist/{cjs-BS1fE_MP.js → cjs-Bef2t9Tr.js} +348 -109
  11. package/dist/cjs-Bef2t9Tr.js.map +1 -0
  12. package/dist/{cjs-CC1S3xV3.cjs → cjs-C2fugEI8.cjs} +169 -164
  13. package/dist/{cjs-CC1S3xV3.cjs.map → cjs-C2fugEI8.cjs.map} +1 -1
  14. package/dist/{cjs-BVWTUHeD.cjs → cjs-C5tev9Yr.cjs} +458 -219
  15. package/dist/cjs-C5tev9Yr.cjs.map +1 -0
  16. package/dist/{cjs-j3aHAiuq.js → cjs-CY69zXGd.js} +20 -15
  17. package/dist/{cjs-j3aHAiuq.js.map → cjs-CY69zXGd.js.map} +1 -1
  18. package/dist/factories.cjs +2 -2
  19. package/dist/factories.d.cts +1 -1
  20. package/dist/factories.d.ts +1 -1
  21. package/dist/factories.js +1 -1
  22. package/dist/file.cjs +2 -2
  23. package/dist/index.cjs +2 -2
  24. package/dist/index.d.cts +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/{index.node-T6N3xCyo.js → index.node-BF2WkODf.js} +368 -148
  28. package/dist/index.node-BF2WkODf.js.map +1 -0
  29. package/dist/{index.node-CVFSZNnN.cjs → index.node-DOkEUdYV.cjs} +369 -149
  30. package/dist/index.node-DOkEUdYV.cjs.map +1 -0
  31. package/dist/middleware.cjs +1 -1
  32. package/dist/{mixpanel-node-CTaHqgil.cjs → mixpanel-node-BVS2X-h7.cjs} +32 -31
  33. package/dist/{mixpanel-node-CTaHqgil.cjs.map → mixpanel-node-BVS2X-h7.cjs.map} +1 -1
  34. package/dist/{mixpanel-node-2RXHuOWK.js → mixpanel-node-BltEtoG6.js} +5 -4
  35. package/dist/{mixpanel-node-2RXHuOWK.js.map → mixpanel-node-BltEtoG6.js.map} +1 -1
  36. package/dist/mixpanel.cjs +2 -2
  37. package/dist/mixpanel.cjs.map +1 -1
  38. package/dist/mixpanel.js +2 -2
  39. package/dist/{posthog-DTpCMk3r.js → posthog-C9M1c_oG.js} +2 -2
  40. package/dist/{posthog-DTpCMk3r.js.map → posthog-C9M1c_oG.js.map} +1 -1
  41. package/dist/{posthog-DLBf2UJJ.d.ts → posthog-DCV5Arkw.d.ts} +217 -24
  42. package/dist/posthog-DCV5Arkw.d.ts.map +1 -0
  43. package/dist/{posthog-Duh9pZs7.d.cts → posthog-DRYlG5fG.d.cts} +217 -24
  44. package/dist/posthog-DRYlG5fG.d.cts.map +1 -0
  45. package/dist/{posthog-Bz9XTdX5.cjs → posthog-DZfoAW1q.cjs} +4 -4
  46. package/dist/{posthog-Bz9XTdX5.cjs.map → posthog-DZfoAW1q.cjs.map} +1 -1
  47. package/dist/posthog.cjs +2 -2
  48. package/dist/posthog.d.cts +1 -1
  49. package/dist/posthog.d.ts +1 -1
  50. package/dist/posthog.js +1 -1
  51. package/dist/{chunk-CiiB0FCw.js → rolldown-runtime-BHkdefai.js} +9 -2
  52. package/dist/{chunk-BIkA7V7q.cjs → rolldown-runtime-CfAboj1T.cjs} +8 -1
  53. package/dist/security.cjs +1 -1
  54. package/dist/segment.cjs +2 -2
  55. package/dist/segment.cjs.map +1 -1
  56. package/dist/segment.js +2 -2
  57. package/dist/slack.cjs +1 -1
  58. package/dist/{tslib.es6-Ck6tgf4J.cjs → tslib.es6-02HJIdSd.cjs} +4 -4
  59. package/dist/{tslib.es6-Ck6tgf4J.cjs.map → tslib.es6-02HJIdSd.cjs.map} +1 -1
  60. package/dist/{tslib.es6-13Ha9x3r.js → tslib.es6-Dvm0j0am.js} +2 -2
  61. package/dist/{tslib.es6-13Ha9x3r.js.map → tslib.es6-Dvm0j0am.js.map} +1 -1
  62. package/dist/webhook.cjs +1 -1
  63. package/package.json +16 -16
  64. package/dist/cjs-BS1fE_MP.js.map +0 -1
  65. package/dist/cjs-BVWTUHeD.cjs.map +0 -1
  66. package/dist/index.node-CVFSZNnN.cjs.map +0 -1
  67. package/dist/index.node-T6N3xCyo.js.map +0 -1
  68. package/dist/posthog-DLBf2UJJ.d.ts.map +0 -1
  69. package/dist/posthog-Duh9pZs7.d.cts.map +0 -1
@@ -1,7 +1,7 @@
1
- import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-CiiB0FCw.js";
2
- import { n as tslib_es6_exports, t as init_tslib_es6 } from "./tslib.es6-13Ha9x3r.js";
1
+ import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./rolldown-runtime-BHkdefai.js";
2
+ import { n as tslib_es6_exports, t as init_tslib_es6 } from "./tslib.es6-Dvm0j0am.js";
3
3
 
4
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/event/event.js
4
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/event/event.js
5
5
  var require_event = /* @__PURE__ */ __commonJSMin(((exports) => {
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.SpecialEventType = exports.IdentifyOperation = void 0;
@@ -25,7 +25,7 @@ var require_event = /* @__PURE__ */ __commonJSMin(((exports) => {
25
25
  }));
26
26
 
27
27
  //#endregion
28
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/constants.js
28
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/constants.js
29
29
  var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
31
  exports.FORBIDDEN_HEADERS = exports.SAFE_HEADERS = exports.MKTG = exports.BASE_CAMPAIGN = exports.EMPTY_VALUE = exports.WBRAID = exports.TWCLID = exports.TTCLID = exports.RDT_CID = exports.MSCLKID = exports.LI_FAT_ID = exports.KO_CLICK_ID = exports.GCLID = exports.GBRAID = exports.FBCLID = exports.DCLID = exports.UTM_TERM = exports.UTM_SOURCE = exports.UTM_MEDIUM = exports.UTM_ID = exports.UTM_CONTENT = exports.UTM_CAMPAIGN = exports.EU_AMPLITUDE_BATCH_SERVER_URL = exports.AMPLITUDE_BATCH_SERVER_URL = exports.EU_AMPLITUDE_SERVER_URL = exports.AMPLITUDE_SERVER_URL = exports.DEFAULT_INSTANCE_NAME = exports.STORAGE_PREFIX = exports.AMPLITUDE_PREFIX = exports.UNSET_VALUE = void 0;
@@ -135,7 +135,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
135
135
  }));
136
136
 
137
137
  //#endregion
138
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/valid-properties.js
138
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/valid-properties.js
139
139
  var require_valid_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
140
140
  Object.defineProperty(exports, "__esModule", { value: true });
141
141
  exports.isValidProperties = exports.isValidObject = void 0;
@@ -185,7 +185,7 @@ var require_valid_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
185
185
  }));
186
186
 
187
187
  //#endregion
188
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/identify.js
188
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/identify.js
189
189
  var require_identify = /* @__PURE__ */ __commonJSMin(((exports) => {
190
190
  Object.defineProperty(exports, "__esModule", { value: true });
191
191
  exports.OrderedIdentifyOperations = exports.IdentifyOperation = exports.Identify = void 0;
@@ -295,7 +295,7 @@ var require_identify = /* @__PURE__ */ __commonJSMin(((exports) => {
295
295
  }));
296
296
 
297
297
  //#endregion
298
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/messages.js
298
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/messages.js
299
299
  var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
300
300
  Object.defineProperty(exports, "__esModule", { value: true });
301
301
  exports.CLIENT_NOT_INITIALIZED = exports.INVALID_API_KEY = exports.MISSING_API_KEY_MESSAGE = exports.OPT_OUT_MESSAGE = exports.MAX_RETRIES_EXCEEDED_MESSAGE = exports.UNEXPECTED_ERROR_MESSAGE = exports.SUCCESS_MESSAGE = void 0;
@@ -309,7 +309,7 @@ var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
309
309
  }));
310
310
 
311
311
  //#endregion
312
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/status.js
312
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/status.js
313
313
  var require_status = /* @__PURE__ */ __commonJSMin(((exports) => {
314
314
  Object.defineProperty(exports, "__esModule", { value: true });
315
315
  exports.Status = void 0;
@@ -336,7 +336,7 @@ var require_status = /* @__PURE__ */ __commonJSMin(((exports) => {
336
336
  }));
337
337
 
338
338
  //#endregion
339
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/result-builder.js
339
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/result-builder.js
340
340
  var require_result_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
341
341
  Object.defineProperty(exports, "__esModule", { value: true });
342
342
  exports.buildResult = void 0;
@@ -354,7 +354,7 @@ var require_result_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
354
354
  }));
355
355
 
356
356
  //#endregion
357
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/global-scope.js
357
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/global-scope.js
358
358
  var require_global_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
359
359
  Object.defineProperty(exports, "__esModule", { value: true });
360
360
  exports.getGlobalScope = void 0;
@@ -370,7 +370,7 @@ var require_global_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
370
370
  }));
371
371
 
372
372
  //#endregion
373
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/uuid.js
373
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/uuid.js
374
374
  var require_uuid = /* @__PURE__ */ __commonJSMin(((exports) => {
375
375
  /**
376
376
  * Source: [jed's gist's comment]{@link https://gist.github.com/jed/982883?permalink_comment_id=3223002#gistcomment-3223002}.
@@ -395,7 +395,7 @@ var require_uuid = /* @__PURE__ */ __commonJSMin(((exports) => {
395
395
  var globalScope = (0, global_scope_1.getGlobalScope)();
396
396
  /* istanbul ignore next */
397
397
  if (!((_a = globalScope === null || globalScope === void 0 ? void 0 : globalScope.crypto) === null || _a === void 0 ? void 0 : _a.getRandomValues)) return legacyUUID(a);
398
- var r = globalScope.crypto.getRandomValues(new Uint8Array(16));
398
+ var r = globalScope.crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
399
399
  r[6] = r[6] & 15 | 64;
400
400
  r[8] = r[8] & 63 | 128;
401
401
  return tslib_1.__spreadArray([], tslib_1.__read(r.entries()), false).map(function(_a) {
@@ -412,7 +412,7 @@ var require_uuid = /* @__PURE__ */ __commonJSMin(((exports) => {
412
412
  }));
413
413
 
414
414
  //#endregion
415
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/timeline.js
415
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/timeline.js
416
416
  var require_timeline = /* @__PURE__ */ __commonJSMin(((exports) => {
417
417
  Object.defineProperty(exports, "__esModule", { value: true });
418
418
  exports.Timeline = void 0;
@@ -765,7 +765,7 @@ var require_timeline = /* @__PURE__ */ __commonJSMin(((exports) => {
765
765
  }));
766
766
 
767
767
  //#endregion
768
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/event-builder.js
768
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/event-builder.js
769
769
  var require_event_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
770
770
  Object.defineProperty(exports, "__esModule", { value: true });
771
771
  exports.createRevenueEvent = exports.createGroupEvent = exports.createGroupIdentifyEvent = exports.createIdentifyEvent = exports.createTrackEvent = void 0;
@@ -814,7 +814,7 @@ var require_event_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
814
814
  }));
815
815
 
816
816
  //#endregion
817
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/return-wrapper.js
817
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/return-wrapper.js
818
818
  var require_return_wrapper = /* @__PURE__ */ __commonJSMin(((exports) => {
819
819
  Object.defineProperty(exports, "__esModule", { value: true });
820
820
  exports.returnWrapper = void 0;
@@ -825,7 +825,7 @@ var require_return_wrapper = /* @__PURE__ */ __commonJSMin(((exports) => {
825
825
  }));
826
826
 
827
827
  //#endregion
828
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/core-client.js
828
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/core-client.js
829
829
  var require_core_client = /* @__PURE__ */ __commonJSMin(((exports) => {
830
830
  Object.defineProperty(exports, "__esModule", { value: true });
831
831
  exports.AmplitudeCore = void 0;
@@ -1106,7 +1106,7 @@ var require_core_client = /* @__PURE__ */ __commonJSMin(((exports) => {
1106
1106
  }));
1107
1107
 
1108
1108
  //#endregion
1109
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/revenue.js
1109
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/revenue.js
1110
1110
  var require_revenue = /* @__PURE__ */ __commonJSMin(((exports) => {
1111
1111
  Object.defineProperty(exports, "__esModule", { value: true });
1112
1112
  exports.RevenueProperty = exports.Revenue = void 0;
@@ -1186,7 +1186,7 @@ var require_revenue = /* @__PURE__ */ __commonJSMin(((exports) => {
1186
1186
  }));
1187
1187
 
1188
1188
  //#endregion
1189
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/chunk.js
1189
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/chunk.js
1190
1190
  var require_chunk = /* @__PURE__ */ __commonJSMin(((exports) => {
1191
1191
  Object.defineProperty(exports, "__esModule", { value: true });
1192
1192
  exports.chunk = void 0;
@@ -1203,7 +1203,7 @@ var require_chunk = /* @__PURE__ */ __commonJSMin(((exports) => {
1203
1203
  }));
1204
1204
 
1205
1205
  //#endregion
1206
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/loglevel.js
1206
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/loglevel.js
1207
1207
  var require_loglevel = /* @__PURE__ */ __commonJSMin(((exports) => {
1208
1208
  Object.defineProperty(exports, "__esModule", { value: true });
1209
1209
  exports.LogLevel = void 0;
@@ -1217,7 +1217,7 @@ var require_loglevel = /* @__PURE__ */ __commonJSMin(((exports) => {
1217
1217
  }));
1218
1218
 
1219
1219
  //#endregion
1220
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/logger.js
1220
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/logger.js
1221
1221
  var require_logger = /* @__PURE__ */ __commonJSMin(((exports) => {
1222
1222
  Object.defineProperty(exports, "__esModule", { value: true });
1223
1223
  exports.Logger = void 0;
@@ -1264,7 +1264,7 @@ var require_logger = /* @__PURE__ */ __commonJSMin(((exports) => {
1264
1264
  }));
1265
1265
 
1266
1266
  //#endregion
1267
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/config.js
1267
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/config.js
1268
1268
  var require_config$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1269
1269
  Object.defineProperty(exports, "__esModule", { value: true });
1270
1270
  exports.RequestMetadata = exports.createServerConfig = exports.getServerUrl = exports.Config = exports.getDefaultConfig = void 0;
@@ -1364,7 +1364,7 @@ var require_config$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1364
1364
  }));
1365
1365
 
1366
1366
  //#endregion
1367
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/status-code.js
1367
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/status-code.js
1368
1368
  var require_status_code = /* @__PURE__ */ __commonJSMin(((exports) => {
1369
1369
  Object.defineProperty(exports, "__esModule", { value: true });
1370
1370
  exports.isSuccessStatusCode = void 0;
@@ -1380,7 +1380,7 @@ var require_status_code = /* @__PURE__ */ __commonJSMin(((exports) => {
1380
1380
  }));
1381
1381
 
1382
1382
  //#endregion
1383
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/debug.js
1383
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/debug.js
1384
1384
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports) => {
1385
1385
  Object.defineProperty(exports, "__esModule", { value: true });
1386
1386
  exports.debugWrapper = exports.getClientStates = exports.getValueByStringPath = exports.getClientLogConfig = exports.getStacktrace = void 0;
@@ -1481,7 +1481,7 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports) => {
1481
1481
  }));
1482
1482
 
1483
1483
  //#endregion
1484
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/plugins/destination.js
1484
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/plugins/destination.js
1485
1485
  var require_destination = /* @__PURE__ */ __commonJSMin(((exports) => {
1486
1486
  Object.defineProperty(exports, "__esModule", { value: true });
1487
1487
  exports.Destination = exports.getResponseBodyString = void 0;
@@ -1495,7 +1495,7 @@ var require_destination = /* @__PURE__ */ __commonJSMin(((exports) => {
1495
1495
  var uuid_1 = require_uuid();
1496
1496
  var status_code_1 = require_status_code();
1497
1497
  var debug_1 = require_debug();
1498
- var DEFAULT_AMPLITUDE_SERVER_URLS = new Set([
1498
+ var DEFAULT_AMPLITUDE_SERVER_URLS = /* @__PURE__ */ new Set([
1499
1499
  constants_1.AMPLITUDE_SERVER_URL,
1500
1500
  constants_1.EU_AMPLITUDE_SERVER_URL,
1501
1501
  constants_1.AMPLITUDE_BATCH_SERVER_URL,
@@ -1858,6 +1858,198 @@ var require_destination = /* @__PURE__ */ __commonJSMin(((exports) => {
1858
1858
  exports.Destination = Destination;
1859
1859
  }));
1860
1860
 
1861
+ //#endregion
1862
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/heartbeat.js
1863
+ var require_heartbeat = /* @__PURE__ */ __commonJSMin(((exports) => {
1864
+ Object.defineProperty(exports, "__esModule", { value: true });
1865
+ exports.getHeartbeatInstance = exports.Heartbeat = void 0;
1866
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
1867
+ var uuid_1 = require_uuid();
1868
+ var EVENTS_SIZE_LIMIT = 4 * 1e4;
1869
+ var Heartbeat = function() {
1870
+ function Heartbeat(client, pulse, delayTimeout, logger) {
1871
+ this.client = client;
1872
+ this.pulse = pulse;
1873
+ this.delayTimeout = delayTimeout;
1874
+ this.logger = logger;
1875
+ this.interval = null;
1876
+ this.resetPromise = null;
1877
+ this.events = /* @__PURE__ */ new Map();
1878
+ this.delayId = (0, uuid_1.UUID)();
1879
+ }
1880
+ Heartbeat.prototype.heartbeat = function() {
1881
+ return tslib_1.__awaiter(this, void 0, void 0, function() {
1882
+ var trackedEvents, _loop_1, this_1, _a, _b, event_1;
1883
+ var e_1, _c;
1884
+ var _this = this;
1885
+ return tslib_1.__generator(this, function(_d) {
1886
+ switch (_d.label) {
1887
+ case 0:
1888
+ if (this.events.size === 0) {
1889
+ this.stop();
1890
+ return [2, []];
1891
+ }
1892
+ trackedEvents = [];
1893
+ _loop_1 = function(event_1) {
1894
+ var event_type = event_1.event_type, event_properties = event_1.event_properties, eventOptions = tslib_1.__rest(event_1, ["event_type", "event_properties"]);
1895
+ var eventPromise = this_1.client.track(event_type, event_properties, eventOptions).promise;
1896
+ if (this_1.isInstantEvent(event_1)) {
1897
+ var insertId_1 = event_1.insert_id;
1898
+ eventPromise.finally(function() {
1899
+ return _this.events.delete(insertId_1);
1900
+ });
1901
+ }
1902
+ trackedEvents.push(eventPromise);
1903
+ };
1904
+ this_1 = this;
1905
+ try {
1906
+ for (_a = tslib_1.__values(this.events.values()), _b = _a.next(); !_b.done; _b = _a.next()) {
1907
+ event_1 = _b.value;
1908
+ _loop_1(event_1);
1909
+ }
1910
+ } catch (e_1_1) {
1911
+ e_1 = { error: e_1_1 };
1912
+ } finally {
1913
+ try {
1914
+ if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
1915
+ } finally {
1916
+ if (e_1) throw e_1.error;
1917
+ }
1918
+ }
1919
+ return [4, Promise.all(trackedEvents)];
1920
+ case 1: return [2, _d.sent()];
1921
+ }
1922
+ });
1923
+ });
1924
+ };
1925
+ Heartbeat.prototype.resetHeartbeat = function() {
1926
+ return tslib_1.__awaiter(this, void 0, void 0, function() {
1927
+ var _this = this;
1928
+ return tslib_1.__generator(this, function(_a) {
1929
+ switch (_a.label) {
1930
+ case 0:
1931
+ if (!this.resetPromise) return [3, 2];
1932
+ return [4, this.resetPromise];
1933
+ case 1: return [2, _a.sent()];
1934
+ case 2:
1935
+ if (this.interval) clearInterval(this.interval);
1936
+ this.interval = setInterval(function() {
1937
+ _this.heartbeat();
1938
+ }, this.pulse);
1939
+ this.resetPromise = new Promise(function(resolve) {
1940
+ setTimeout(function() {
1941
+ resolve(_this.heartbeat());
1942
+ }, 0);
1943
+ });
1944
+ this.resetPromise.finally(function() {
1945
+ return _this.resetPromise = null;
1946
+ });
1947
+ return [4, this.resetPromise];
1948
+ case 3: return [2, _a.sent()];
1949
+ }
1950
+ });
1951
+ });
1952
+ };
1953
+ /**
1954
+ * An instant event is one that has no delay and gets ingested immediately
1955
+ * @param event
1956
+ * @returns
1957
+ */
1958
+ Heartbeat.prototype.isInstantEvent = function(event) {
1959
+ return Boolean(event.insert_id && !event.delay.timeout);
1960
+ };
1961
+ Heartbeat.prototype.checkEventSizeLimit = function(event) {
1962
+ var _a;
1963
+ if (JSON.stringify(tslib_1.__spreadArray([], tslib_1.__read(this.events.values()), false)).length > EVENTS_SIZE_LIMIT) {
1964
+ /* istanbul ignore next */
1965
+ (_a = this.logger) === null || _a === void 0 || _a.warn("Heartbeat: events size limit reached, rejecting event with id=".concat(event.insert_id));
1966
+ if (event.insert_id) this.events.delete(event.insert_id);
1967
+ return false;
1968
+ }
1969
+ return true;
1970
+ };
1971
+ Heartbeat.prototype.track = function(event) {
1972
+ return tslib_1.__awaiter(this, void 0, void 0, function() {
1973
+ var heartbeatResult;
1974
+ return tslib_1.__generator(this, function(_a) {
1975
+ switch (_a.label) {
1976
+ case 0:
1977
+ if (!event.insert_id) return [2, /* @__PURE__ */ new Error("insert_id is required on events tracked with heartbeat")];
1978
+ this.events.set(event.insert_id, tslib_1.__assign(tslib_1.__assign({}, event), { delay: event.delay || {
1979
+ id: this.delayId,
1980
+ timeout: this.delayTimeout
1981
+ } }));
1982
+ if (!this.checkEventSizeLimit(event)) return [2];
1983
+ return [4, this.resetHeartbeat()];
1984
+ case 1:
1985
+ heartbeatResult = _a.sent();
1986
+ return [2, heartbeatResult.find(function(result) {
1987
+ return result.event.insert_id === event.insert_id;
1988
+ })];
1989
+ }
1990
+ });
1991
+ });
1992
+ };
1993
+ /**
1994
+ * Ingest an event with no delay
1995
+ *
1996
+ * (This is different from normal "track". It sends the events to the "/delayed" endpoint
1997
+ * so that it can be tracked in the same payload as other events, for atomicity)
1998
+ * @param event
1999
+ * @returns
2000
+ */
2001
+ Heartbeat.prototype.trackNoDelay = function(event) {
2002
+ return tslib_1.__awaiter(this, void 0, void 0, function() {
2003
+ return tslib_1.__generator(this, function(_a) {
2004
+ event.delay = { id: this.delayId };
2005
+ return [2, this.track(event)];
2006
+ });
2007
+ });
2008
+ };
2009
+ /**
2010
+ * Update an existing event
2011
+ * @param event
2012
+ */
2013
+ Heartbeat.prototype.update = function(event) {
2014
+ return tslib_1.__awaiter(this, void 0, void 0, function() {
2015
+ var backupEvent;
2016
+ return tslib_1.__generator(this, function(_a) {
2017
+ if (event.insert_id && this.events.has(event.insert_id)) {
2018
+ backupEvent = this.events.get(event.insert_id);
2019
+ this.events.set(event.insert_id, tslib_1.__assign(tslib_1.__assign({}, event), { delay: {
2020
+ id: this.delayId,
2021
+ timeout: this.delayTimeout
2022
+ } }));
2023
+ if (!this.checkEventSizeLimit(event) && backupEvent) {
2024
+ this.events.set(event.insert_id, backupEvent);
2025
+ return [2];
2026
+ }
2027
+ }
2028
+ return [2];
2029
+ });
2030
+ });
2031
+ };
2032
+ Heartbeat.prototype.stop = function() {
2033
+ this.interval && clearInterval(this.interval);
2034
+ this.interval = null;
2035
+ this.events.clear();
2036
+ };
2037
+ return Heartbeat;
2038
+ }();
2039
+ exports.Heartbeat = Heartbeat;
2040
+ var DEFAULT_HEARTBEAT_INTERVAL = 6e4;
2041
+ var DEFAULT_HEARTBEAT_DELAY_TIMEOUT = 36e5;
2042
+ var heartbeatMap = /* @__PURE__ */ new Map();
2043
+ function getHeartbeatInstance(client, logger) {
2044
+ var existing = heartbeatMap.get(client);
2045
+ if (existing) return existing;
2046
+ var heartbeat = new Heartbeat(client, DEFAULT_HEARTBEAT_INTERVAL, DEFAULT_HEARTBEAT_DELAY_TIMEOUT, logger);
2047
+ heartbeatMap.set(client, heartbeat);
2048
+ return heartbeat;
2049
+ }
2050
+ exports.getHeartbeatInstance = getHeartbeatInstance;
2051
+ }));
2052
+
1861
2053
  //#endregion
1862
2054
  //#region ../../node_modules/.pnpm/@amplitude+analytics-connector@1.6.4/node_modules/@amplitude/analytics-connector/dist/analytics-connector.umd.js
1863
2055
  var require_analytics_connector_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2128,7 +2320,7 @@ var require_analytics_connector_umd = /* @__PURE__ */ __commonJSMin(((exports, m
2128
2320
  }));
2129
2321
 
2130
2322
  //#endregion
2131
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/analytics-connector.js
2323
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/analytics-connector.js
2132
2324
  var require_analytics_connector = /* @__PURE__ */ __commonJSMin(((exports) => {
2133
2325
  Object.defineProperty(exports, "__esModule", { value: true });
2134
2326
  exports.setConnectorDeviceId = exports.setConnectorUserId = exports.getAnalyticsConnector = void 0;
@@ -2150,7 +2342,7 @@ var require_analytics_connector = /* @__PURE__ */ __commonJSMin(((exports) => {
2150
2342
  }));
2151
2343
 
2152
2344
  //#endregion
2153
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/plugins/identity.js
2345
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/plugins/identity.js
2154
2346
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
2155
2347
  Object.defineProperty(exports, "__esModule", { value: true });
2156
2348
  exports.IdentityEventSender = void 0;
@@ -2186,7 +2378,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
2186
2378
  }));
2187
2379
 
2188
2380
  //#endregion
2189
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/session.js
2381
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/session.js
2190
2382
  var require_session = /* @__PURE__ */ __commonJSMin(((exports) => {
2191
2383
  Object.defineProperty(exports, "__esModule", { value: true });
2192
2384
  exports.isNewSession = void 0;
@@ -2198,7 +2390,7 @@ var require_session = /* @__PURE__ */ __commonJSMin(((exports) => {
2198
2390
  }));
2199
2391
 
2200
2392
  //#endregion
2201
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/cookie-name.js
2393
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/cookie-name.js
2202
2394
  var require_cookie_name = /* @__PURE__ */ __commonJSMin(((exports) => {
2203
2395
  Object.defineProperty(exports, "__esModule", { value: true });
2204
2396
  exports.getOldCookieName = exports.getCookieName = void 0;
@@ -2220,7 +2412,7 @@ var require_cookie_name = /* @__PURE__ */ __commonJSMin(((exports) => {
2220
2412
  }));
2221
2413
 
2222
2414
  //#endregion
2223
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/language.js
2415
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/language.js
2224
2416
  var require_language = /* @__PURE__ */ __commonJSMin(((exports) => {
2225
2417
  Object.defineProperty(exports, "__esModule", { value: true });
2226
2418
  exports.getLanguage = void 0;
@@ -2234,7 +2426,7 @@ var require_language = /* @__PURE__ */ __commonJSMin(((exports) => {
2234
2426
  }));
2235
2427
 
2236
2428
  //#endregion
2237
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/query-params.js
2429
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/query-params.js
2238
2430
  var require_query_params = /* @__PURE__ */ __commonJSMin(((exports) => {
2239
2431
  Object.defineProperty(exports, "__esModule", { value: true });
2240
2432
  exports.tryDecodeURIComponent = exports.getQueryParams = void 0;
@@ -2266,7 +2458,7 @@ var require_query_params = /* @__PURE__ */ __commonJSMin(((exports) => {
2266
2458
  }));
2267
2459
 
2268
2460
  //#endregion
2269
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/url-utils.js
2461
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/url-utils.js
2270
2462
  var require_url_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
2271
2463
  Object.defineProperty(exports, "__esModule", { value: true });
2272
2464
  exports.getDecodeURI = exports.isUrlMatchAllowlist = void 0;
@@ -2298,7 +2490,7 @@ var require_url_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
2298
2490
  }));
2299
2491
 
2300
2492
  //#endregion
2301
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/sampling.js
2493
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/sampling.js
2302
2494
  var require_sampling = /* @__PURE__ */ __commonJSMin(((exports) => {
2303
2495
  Object.defineProperty(exports, "__esModule", { value: true });
2304
2496
  exports.isTimestampInSampleTemp = exports.isTimestampInSample = exports.generateHashCode = void 0;
@@ -2327,7 +2519,7 @@ var require_sampling = /* @__PURE__ */ __commonJSMin(((exports) => {
2327
2519
  }));
2328
2520
 
2329
2521
  //#endregion
2330
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/omit-undefined.js
2522
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/omit-undefined.js
2331
2523
  var require_omit_undefined = /* @__PURE__ */ __commonJSMin(((exports) => {
2332
2524
  Object.defineProperty(exports, "__esModule", { value: true });
2333
2525
  exports.omitUndefined = void 0;
@@ -2343,7 +2535,7 @@ var require_omit_undefined = /* @__PURE__ */ __commonJSMin(((exports) => {
2343
2535
  }));
2344
2536
 
2345
2537
  //#endregion
2346
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/memory.js
2538
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/memory.js
2347
2539
  var require_memory = /* @__PURE__ */ __commonJSMin(((exports) => {
2348
2540
  Object.defineProperty(exports, "__esModule", { value: true });
2349
2541
  exports.MemoryStorage = void 0;
@@ -2409,7 +2601,7 @@ var require_memory = /* @__PURE__ */ __commonJSMin(((exports) => {
2409
2601
  }));
2410
2602
 
2411
2603
  //#endregion
2412
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/cookie.js
2604
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/cookie.js
2413
2605
  var require_cookie = /* @__PURE__ */ __commonJSMin(((exports) => {
2414
2606
  Object.defineProperty(exports, "__esModule", { value: true });
2415
2607
  exports.isDomainEqual = exports.decodeCookieValue = exports.CookieStorage = void 0;
@@ -2757,7 +2949,7 @@ var require_cookie = /* @__PURE__ */ __commonJSMin(((exports) => {
2757
2949
  }));
2758
2950
 
2759
2951
  //#endregion
2760
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/helpers.js
2952
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/helpers.js
2761
2953
  var require_helpers$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2762
2954
  Object.defineProperty(exports, "__esModule", { value: true });
2763
2955
  exports.getStorageKey = void 0;
@@ -2775,7 +2967,7 @@ var require_helpers$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2775
2967
  }));
2776
2968
 
2777
2969
  //#endregion
2778
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/browser-storage.js
2970
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/storage/browser-storage.js
2779
2971
  var require_browser_storage = /* @__PURE__ */ __commonJSMin(((exports) => {
2780
2972
  Object.defineProperty(exports, "__esModule", { value: true });
2781
2973
  exports.BrowserStorage = void 0;
@@ -2896,7 +3088,7 @@ var require_browser_storage = /* @__PURE__ */ __commonJSMin(((exports) => {
2896
3088
  }));
2897
3089
 
2898
3090
  //#endregion
2899
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/diagnostics/diagnostics-storage.js
3091
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/diagnostics/diagnostics-storage.js
2900
3092
  var require_diagnostics_storage = /* @__PURE__ */ __commonJSMin(((exports) => {
2901
3093
  Object.defineProperty(exports, "__esModule", { value: true });
2902
3094
  exports.DiagnosticsStorage = exports.INTERNAL_KEYS = exports.TABLE_NAMES = void 0;
@@ -3427,7 +3619,7 @@ var require_diagnostics_storage = /* @__PURE__ */ __commonJSMin(((exports) => {
3427
3619
  }));
3428
3620
 
3429
3621
  //#endregion
3430
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/diagnostics/uncaught-sdk-errors.js
3622
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/diagnostics/uncaught-sdk-errors.js
3431
3623
  var require_uncaught_sdk_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
3432
3624
  Object.defineProperty(exports, "__esModule", { value: true });
3433
3625
  exports.enableSdkErrorListeners = exports.registerSdkLoaderMetadata = exports.EVENT_NAME_ERROR_UNCAUGHT = exports.GLOBAL_KEY = void 0;
@@ -3571,7 +3763,7 @@ var require_uncaught_sdk_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
3571
3763
  }));
3572
3764
 
3573
3765
  //#endregion
3574
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/diagnostics/diagnostics-client.js
3766
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/diagnostics/diagnostics-client.js
3575
3767
  var require_diagnostics_client = /* @__PURE__ */ __commonJSMin(((exports) => {
3576
3768
  Object.defineProperty(exports, "__esModule", { value: true });
3577
3769
  exports.DiagnosticsClient = exports.MAX_MEMORY_STORAGE_EVENTS_COUNT = exports.MAX_MEMORY_STORAGE_COUNT = exports.DIAGNOSTICS_EU_SERVER_URL = exports.DIAGNOSTICS_US_SERVER_URL = exports.FLUSH_INTERVAL_MS = exports.SAVE_INTERVAL_MS = void 0;
@@ -3866,7 +4058,7 @@ var require_diagnostics_client = /* @__PURE__ */ __commonJSMin(((exports) => {
3866
4058
  }));
3867
4059
 
3868
4060
  //#endregion
3869
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/transports/base.js
4061
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/transports/base.js
3870
4062
  var require_base = /* @__PURE__ */ __commonJSMin(((exports) => {
3871
4063
  Object.defineProperty(exports, "__esModule", { value: true });
3872
4064
  exports.BaseTransport = void 0;
@@ -3949,7 +4141,7 @@ var require_base = /* @__PURE__ */ __commonJSMin(((exports) => {
3949
4141
  }));
3950
4142
 
3951
4143
  //#endregion
3952
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/transports/fetch.js
4144
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/transports/fetch.js
3953
4145
  var require_fetch = /* @__PURE__ */ __commonJSMin(((exports) => {
3954
4146
  Object.defineProperty(exports, "__esModule", { value: true });
3955
4147
  exports.FetchTransport = void 0;
@@ -4000,7 +4192,7 @@ var require_fetch = /* @__PURE__ */ __commonJSMin(((exports) => {
4000
4192
  }));
4001
4193
 
4002
4194
  //#endregion
4003
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/transports/gzip.js
4195
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/transports/gzip.js
4004
4196
  var require_gzip = /* @__PURE__ */ __commonJSMin(((exports) => {
4005
4197
  Object.defineProperty(exports, "__esModule", { value: true });
4006
4198
  exports.compressToGzipArrayBuffer = exports.isCompressionStreamAvailable = exports.MIN_GZIP_UPLOAD_BODY_SIZE_BYTES = void 0;
@@ -4049,7 +4241,7 @@ var require_gzip = /* @__PURE__ */ __commonJSMin(((exports) => {
4049
4241
  }));
4050
4242
 
4051
4243
  //#endregion
4052
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/remote-config/remote-config-localstorage.js
4244
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/remote-config/remote-config-localstorage.js
4053
4245
  var require_remote_config_localstorage = /* @__PURE__ */ __commonJSMin(((exports) => {
4054
4246
  Object.defineProperty(exports, "__esModule", { value: true });
4055
4247
  exports.RemoteConfigLocalStorage = void 0;
@@ -4103,13 +4295,36 @@ var require_remote_config_localstorage = /* @__PURE__ */ __commonJSMin(((exports
4103
4295
  }));
4104
4296
 
4105
4297
  //#endregion
4106
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/remote-config/remote-config.js
4298
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/remote-config/remote-config.js
4107
4299
  var require_remote_config = /* @__PURE__ */ __commonJSMin(((exports) => {
4108
4300
  Object.defineProperty(exports, "__esModule", { value: true });
4109
4301
  exports.RemoteConfigClient = exports.DEFAULT_MAX_RETRIES = exports.EU_SERVER_URL = exports.US_SERVER_URL = void 0;
4110
4302
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
4111
4303
  var remote_config_localstorage_1 = require_remote_config_localstorage();
4112
4304
  var uuid_1 = require_uuid();
4305
+ /**
4306
+ * Settles with `promise`, but rejects with an AbortError when `signal` fires. The request-timeout
4307
+ * signal is handed to customFetch, but a transport that ignores it would block the await (and the
4308
+ * retry loop) indefinitely; racing the abort guarantees the client-side timeout always applies.
4309
+ * The transport's own promise keeps running — we can't cancel it — we just stop awaiting it.
4310
+ */
4311
+ function abortableFetch(promise, signal) {
4312
+ return new Promise(function(resolve, reject) {
4313
+ var onAbort = function() {
4314
+ var err = /* @__PURE__ */ new Error("Remote config custom fetch aborted by timeout");
4315
+ err.name = "AbortError";
4316
+ reject(err);
4317
+ };
4318
+ signal.addEventListener("abort", onAbort, { once: true });
4319
+ promise.then(function(value) {
4320
+ signal.removeEventListener("abort", onAbort);
4321
+ resolve(value);
4322
+ }, function(err) {
4323
+ signal.removeEventListener("abort", onAbort);
4324
+ reject(err);
4325
+ });
4326
+ });
4327
+ }
4113
4328
  exports.US_SERVER_URL = "https://sr-client-cfg.amplitude.com/config";
4114
4329
  exports.EU_SERVER_URL = "https://sr-client-cfg.eu.amplitude.com/config";
4115
4330
  exports.DEFAULT_MAX_RETRIES = 3;
@@ -4129,7 +4344,7 @@ var require_remote_config = /* @__PURE__ */ __commonJSMin(((exports) => {
4129
4344
  */
4130
4345
  var DEFAULT_MIN_TIME_BETWEEN_FETCHES = 300 * 1e3;
4131
4346
  var RemoteConfigClient = function() {
4132
- function RemoteConfigClient(apiKey, logger, serverZone, serverUrl) {
4347
+ function RemoteConfigClient(apiKey, logger, serverZone, serverUrl, customFetch) {
4133
4348
  if (serverZone === void 0) serverZone = "US";
4134
4349
  this.callbackInfos = [];
4135
4350
  this.lastSuccessfulFetch = null;
@@ -4139,6 +4354,7 @@ var require_remote_config = /* @__PURE__ */ __commonJSMin(((exports) => {
4139
4354
  this.serverUrl = serverUrl || (serverZone === "US" ? exports.US_SERVER_URL : exports.EU_SERVER_URL);
4140
4355
  this.logger = logger;
4141
4356
  this.storage = new remote_config_localstorage_1.RemoteConfigLocalStorage(apiKey, logger);
4357
+ this.customFetch = customFetch;
4142
4358
  }
4143
4359
  RemoteConfigClient.prototype.subscribe = function(key, deliveryMode, callback) {
4144
4360
  var id = (0, uuid_1.UUID)();
@@ -4346,67 +4562,83 @@ var require_remote_config = /* @__PURE__ */ __commonJSMin(((exports) => {
4346
4562
  lastFetch: /* @__PURE__ */ new Date()
4347
4563
  };
4348
4564
  _loop_1 = function(attempt) {
4349
- var shouldRetry, abortController, timeoutId, res, body, remoteConfig, error_2;
4350
- return tslib_1.__generator(this, function(_b) {
4351
- switch (_b.label) {
4565
+ var shouldRetry, abortController, timeoutId, url, headers, res, _b, isSuccess, body, remoteConfig, error_2;
4566
+ return tslib_1.__generator(this, function(_c) {
4567
+ switch (_c.label) {
4352
4568
  case 0:
4353
4569
  shouldRetry = true;
4354
4570
  abortController = new AbortController();
4355
4571
  timeoutId = setTimeout(function() {
4356
4572
  return abortController.abort();
4357
4573
  }, timeout);
4358
- _b.label = 1;
4574
+ _c.label = 1;
4359
4575
  case 1:
4360
- _b.trys.push([
4576
+ _c.trys.push([
4361
4577
  1,
4362
- 7,
4363
- 8,
4364
- 9
4578
+ 10,
4579
+ 11,
4580
+ 12
4365
4581
  ]);
4366
- return [4, fetch(this_1.getUrlParams(), {
4582
+ url = this_1.getUrlParams();
4583
+ headers = { Accept: "*/*" };
4584
+ if (!this_1.customFetch) return [3, 3];
4585
+ return [4, abortableFetch(this_1.customFetch({
4586
+ url,
4367
4587
  method: "GET",
4368
- headers: { Accept: "*/*" },
4588
+ headers,
4369
4589
  signal: abortController.signal
4370
- })];
4590
+ }), abortController.signal)];
4371
4591
  case 2:
4372
- res = _b.sent();
4373
- if (!!res.ok) return [3, 4];
4592
+ _b = _c.sent();
4593
+ return [3, 5];
4594
+ case 3: return [4, fetch(url, {
4595
+ method: "GET",
4596
+ headers,
4597
+ signal: abortController.signal
4598
+ })];
4599
+ case 4:
4600
+ _b = _c.sent();
4601
+ _c.label = 5;
4602
+ case 5:
4603
+ res = _b;
4604
+ isSuccess = res.ok || res.status >= 200 && res.status < 300;
4605
+ if (!!isSuccess) return [3, 7];
4374
4606
  return [4, res.text()];
4375
- case 3:
4376
- body = _b.sent();
4607
+ case 6:
4608
+ body = _c.sent();
4377
4609
  this_1.logger.debug("Remote config client fetch with retry time ".concat(retries, " failed with ").concat(res.status, ": ").concat(body));
4378
4610
  if (res.status === CODE_STATUS.INVALID_API_KEY || res.status === CODE_STATUS.FORBIDDEN) {
4379
4611
  this_1.logger.error("Remote config client fetch failed with ".concat(res.status, ". Invalid API key; future fetches will be skipped."));
4380
4612
  this_1.isLastFetchInvalidApiKey = true;
4381
4613
  shouldRetry = false;
4382
4614
  } else if (res.status >= 400 && res.status < 500 && res.status !== CODE_STATUS.RATE_LIMIT) shouldRetry = false;
4383
- return [3, 6];
4384
- case 4: return [4, res.json()];
4385
- case 5:
4386
- remoteConfig = _b.sent();
4615
+ return [3, 9];
4616
+ case 7: return [4, res.json()];
4617
+ case 8:
4618
+ remoteConfig = _c.sent();
4387
4619
  return [2, { value: {
4388
4620
  remoteConfig,
4389
4621
  lastFetch: /* @__PURE__ */ new Date()
4390
4622
  } }];
4391
- case 6: return [3, 9];
4392
- case 7:
4393
- error_2 = _b.sent();
4623
+ case 9: return [3, 12];
4624
+ case 10:
4625
+ error_2 = _c.sent();
4394
4626
  if (error_2 instanceof Error && error_2.name === "AbortError") this_1.logger.debug("Remote config client fetch with retry time ".concat(retries, " timed out after ").concat(timeout, "ms"));
4395
4627
  else this_1.logger.debug("Remote config client fetch with retry time ".concat(retries, " is rejected because: "), error_2);
4396
- return [3, 9];
4397
- case 8:
4628
+ return [3, 12];
4629
+ case 11:
4398
4630
  clearTimeout(timeoutId);
4399
4631
  return [7];
4400
- case 9:
4632
+ case 12:
4401
4633
  if (!shouldRetry) return [2, "break"];
4402
- if (!(attempt < retries - 1)) return [3, 11];
4634
+ if (!(attempt < retries - 1)) return [3, 14];
4403
4635
  return [4, new Promise(function(resolve) {
4404
4636
  return setTimeout(resolve, _this.getJitterDelay(interval));
4405
4637
  })];
4406
- case 10:
4407
- _b.sent();
4408
- _b.label = 11;
4409
- case 11: return [2];
4638
+ case 13:
4639
+ _c.sent();
4640
+ _c.label = 14;
4641
+ case 14: return [2];
4410
4642
  }
4411
4643
  });
4412
4644
  };
@@ -4448,7 +4680,7 @@ var require_remote_config = /* @__PURE__ */ __commonJSMin(((exports) => {
4448
4680
  }));
4449
4681
 
4450
4682
  //#endregion
4451
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/observers/console.js
4683
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/observers/console.js
4452
4684
  var require_console = /* @__PURE__ */ __commonJSMin(((exports) => {
4453
4685
  Object.defineProperty(exports, "__esModule", { value: true });
4454
4686
  exports.consoleObserver = void 0;
@@ -4548,7 +4780,7 @@ var require_console = /* @__PURE__ */ __commonJSMin(((exports) => {
4548
4780
  }));
4549
4781
 
4550
4782
  //#endregion
4551
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/server-zone.js
4783
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/server-zone.js
4552
4784
  var require_server_zone = /* @__PURE__ */ __commonJSMin(((exports) => {
4553
4785
  Object.defineProperty(exports, "__esModule", { value: true });
4554
4786
  exports.ServerZone = void 0;
@@ -4563,7 +4795,7 @@ var require_server_zone = /* @__PURE__ */ __commonJSMin(((exports) => {
4563
4795
  }));
4564
4796
 
4565
4797
  //#endregion
4566
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/offline.js
4798
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/offline.js
4567
4799
  var require_offline = /* @__PURE__ */ __commonJSMin(((exports) => {
4568
4800
  Object.defineProperty(exports, "__esModule", { value: true });
4569
4801
  exports.OfflineDisabled = void 0;
@@ -4571,7 +4803,7 @@ var require_offline = /* @__PURE__ */ __commonJSMin(((exports) => {
4571
4803
  }));
4572
4804
 
4573
4805
  //#endregion
4574
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/element-interactions.js
4806
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/element-interactions.js
4575
4807
  var require_element_interactions = /* @__PURE__ */ __commonJSMin(((exports) => {
4576
4808
  Object.defineProperty(exports, "__esModule", { value: true });
4577
4809
  exports.DEFAULT_EXPOSURE_DURATION = exports.DEFAULT_ACTION_CLICK_ALLOWLIST = exports.DEFAULT_DATA_ATTRIBUTE_PREFIX = exports.DEFAULT_CSS_SELECTOR_ALLOWLIST = void 0;
@@ -4618,7 +4850,7 @@ var require_element_interactions = /* @__PURE__ */ __commonJSMin(((exports) => {
4618
4850
  }));
4619
4851
 
4620
4852
  //#endregion
4621
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/frustration-interactions.js
4853
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/frustration-interactions.js
4622
4854
  var require_frustration_interactions = /* @__PURE__ */ __commonJSMin(((exports) => {
4623
4855
  Object.defineProperty(exports, "__esModule", { value: true });
4624
4856
  exports.DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD = exports.DEFAULT_RAGE_CLICK_THRESHOLD = exports.DEFAULT_RAGE_CLICK_WINDOW_MS = exports.DEFAULT_DEAD_CLICK_WINDOW_MS = exports.DEFAULT_RAGE_CLICK_ALLOWLIST = exports.DEFAULT_ERROR_CLICK_ALLOWLIST = exports.DEFAULT_DEAD_CLICK_ALLOWLIST = void 0;
@@ -4673,7 +4905,7 @@ var require_frustration_interactions = /* @__PURE__ */ __commonJSMin(((exports)
4673
4905
  }));
4674
4906
 
4675
4907
  //#endregion
4676
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/json-query.js
4908
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/json-query.js
4677
4909
  var require_json_query = /* @__PURE__ */ __commonJSMin(((exports) => {
4678
4910
  Object.defineProperty(exports, "__esModule", { value: true });
4679
4911
  exports.isPathMatch = exports.tokenizeJsonPath = exports._pruneJson = exports.pruneJson = void 0;
@@ -4797,7 +5029,7 @@ var require_json_query = /* @__PURE__ */ __commonJSMin(((exports) => {
4797
5029
  }));
4798
5030
 
4799
5031
  //#endregion
4800
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/network-request-event.js
5032
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/network-request-event.js
4801
5033
  var require_network_request_event = /* @__PURE__ */ __commonJSMin(((exports) => {
4802
5034
  Object.defineProperty(exports, "__esModule", { value: true });
4803
5035
  exports.NetworkRequestEvent = exports.pruneHeaders = exports.PRUNE_STRATEGY = exports.ResponseWrapperXhr = exports.ResponseWrapperFetch = exports.RequestWrapperXhr = exports.RequestWrapperFetch = exports.MAXIMUM_ENTRIES = void 0;
@@ -5270,7 +5502,7 @@ var require_network_request_event = /* @__PURE__ */ __commonJSMin(((exports) =>
5270
5502
  }));
5271
5503
 
5272
5504
  //#endregion
5273
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/observers/network.js
5505
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/observers/network.js
5274
5506
  var require_network = /* @__PURE__ */ __commonJSMin(((exports) => {
5275
5507
  Object.defineProperty(exports, "__esModule", { value: true });
5276
5508
  exports.networkObserver = exports.NetworkObserver = exports.NetworkEventCallback = void 0;
@@ -5588,7 +5820,7 @@ var require_network = /* @__PURE__ */ __commonJSMin(((exports) => {
5588
5820
  }));
5589
5821
 
5590
5822
  //#endregion
5591
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/campaign/campaign-parser.js
5823
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/campaign/campaign-parser.js
5592
5824
  var require_campaign_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5593
5825
  Object.defineProperty(exports, "__esModule", { value: true });
5594
5826
  exports.CampaignParser = void 0;
@@ -5638,7 +5870,7 @@ var require_campaign_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5638
5870
  }));
5639
5871
 
5640
5872
  //#endregion
5641
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/plugins/helpers.js
5873
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/plugins/helpers.js
5642
5874
  var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
5643
5875
  Object.defineProperty(exports, "__esModule", { value: true });
5644
5876
  exports.getPageTitle = exports.replaceSensitiveString = exports.EMAIL_REGEX = exports.SSN_REGEX = exports.CC_REGEX = exports.MASKED_TEXT_VALUE = exports.TEXT_MASK_ATTRIBUTE = void 0;
@@ -6101,7 +6333,7 @@ var require_zen_observable = /* @__PURE__ */ __commonJSMin(((exports, module) =>
6101
6333
  }));
6102
6334
 
6103
6335
  //#endregion
6104
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/observable.js
6336
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/observable.js
6105
6337
  var require_observable = /* @__PURE__ */ __commonJSMin(((exports) => {
6106
6338
  Object.defineProperty(exports, "__esModule", { value: true });
6107
6339
  exports.merge = exports.multicast = exports.asyncMap = exports.Observable = void 0;
@@ -6329,7 +6561,7 @@ var require_safe_json_stringify = /* @__PURE__ */ __commonJSMin(((exports, modul
6329
6561
  }));
6330
6562
 
6331
6563
  //#endregion
6332
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/safe-stringify.js
6564
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/safe-stringify.js
6333
6565
  var require_safe_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
6334
6566
  Object.defineProperty(exports, "__esModule", { value: true });
6335
6567
  exports.safeJsonStringify = void 0;
@@ -6340,7 +6572,7 @@ var require_safe_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
6340
6572
  }));
6341
6573
 
6342
6574
  //#endregion
6343
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/constants.js
6575
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/constants.js
6344
6576
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
6345
6577
  Object.defineProperty(exports, "__esModule", { value: true });
6346
6578
  exports.AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL = exports.AMPLITUDE_ORIGINS_MAP = exports.AMPLITUDE_ORIGIN_STAGING = exports.AMPLITUDE_ORIGIN_EU = exports.AMPLITUDE_ORIGIN = void 0;
@@ -6356,7 +6588,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
6356
6588
  }));
6357
6589
 
6358
6590
  //#endregion
6359
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/utils.js
6591
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/utils.js
6360
6592
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
6361
6593
  Object.defineProperty(exports, "__esModule", { value: true });
6362
6594
  exports.generateUniqueId = exports.asyncLoadScript = void 0;
@@ -6401,7 +6633,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
6401
6633
  }));
6402
6634
 
6403
6635
  //#endregion
6404
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/base-window-messenger.js
6636
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/base-window-messenger.js
6405
6637
  var require_base_window_messenger = /* @__PURE__ */ __commonJSMin(((exports) => {
6406
6638
  var _a;
6407
6639
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6637,7 +6869,7 @@ var require_base_window_messenger = /* @__PURE__ */ __commonJSMin(((exports) =>
6637
6869
  }));
6638
6870
 
6639
6871
  //#endregion
6640
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/background-capture.js
6872
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/messenger/background-capture.js
6641
6873
  var require_background_capture = /* @__PURE__ */ __commonJSMin(((exports) => {
6642
6874
  Object.defineProperty(exports, "__esModule", { value: true });
6643
6875
  exports.enableBackgroundCapture = void 0;
@@ -6699,7 +6931,7 @@ var require_background_capture = /* @__PURE__ */ __commonJSMin(((exports) => {
6699
6931
  }));
6700
6932
 
6701
6933
  //#endregion
6702
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/types/config/browser-config.js
6934
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/types/config/browser-config.js
6703
6935
  var require_browser_config = /* @__PURE__ */ __commonJSMin(((exports) => {
6704
6936
  Object.defineProperty(exports, "__esModule", { value: true });
6705
6937
  exports.EXCLUDE_INTERNAL_REFERRERS_CONDITIONS = void 0;
@@ -6710,7 +6942,7 @@ var require_browser_config = /* @__PURE__ */ __commonJSMin(((exports) => {
6710
6942
  }));
6711
6943
 
6712
6944
  //#endregion
6713
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/video-analytics/track-video.js
6945
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/video-analytics/track-video.js
6714
6946
  var require_track_video = /* @__PURE__ */ __commonJSMin(((exports) => {
6715
6947
  Object.defineProperty(exports, "__esModule", { value: true });
6716
6948
  exports.trackEmbeddedVideo = exports.trackHtmlVideo = void 0;
@@ -6930,7 +7162,7 @@ var require_track_video = /* @__PURE__ */ __commonJSMin(((exports) => {
6930
7162
  }));
6931
7163
 
6932
7164
  //#endregion
6933
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/observers/video.js
7165
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/observers/video.js
6934
7166
  var require_video = /* @__PURE__ */ __commonJSMin(((exports) => {
6935
7167
  Object.defineProperty(exports, "__esModule", { value: true });
6936
7168
  exports.VideoObserver = void 0;
@@ -7025,7 +7257,7 @@ var require_video = /* @__PURE__ */ __commonJSMin(((exports) => {
7025
7257
  }));
7026
7258
 
7027
7259
  //#endregion
7028
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/environment.js
7260
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/utils/environment.js
7029
7261
  var require_environment = /* @__PURE__ */ __commonJSMin(((exports) => {
7030
7262
  Object.defineProperty(exports, "__esModule", { value: true });
7031
7263
  exports.isChromeExtension = void 0;
@@ -7039,11 +7271,11 @@ var require_environment = /* @__PURE__ */ __commonJSMin(((exports) => {
7039
7271
  }));
7040
7272
 
7041
7273
  //#endregion
7042
- //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/cjs/index.js
7274
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-core@2.52.0/node_modules/@amplitude/analytics-core/lib/cjs/index.js
7043
7275
  var require_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
7044
7276
  Object.defineProperty(exports, "__esModule", { value: true });
7045
- exports.ServerZone = exports.SpecialEventType = exports.IdentifyOperation = exports.consoleObserver = exports.STORAGE_PREFIX = exports.AMPLITUDE_PREFIX = exports.LogLevel = exports.RemoteConfigClient = exports.MIN_GZIP_UPLOAD_BODY_SIZE_BYTES = exports.isCompressionStreamAvailable = exports.compressToGzipArrayBuffer = exports.FetchTransport = exports.BaseTransport = exports.registerSdkLoaderMetadata = exports.DiagnosticsClient = exports.BrowserStorage = exports.getStorageKey = exports.decodeCookieValue = exports.isDomainEqual = exports.CookieStorage = exports.MemoryStorage = exports.omitUndefined = exports.isTimestampInSample = exports.generateHashCode = exports.getDecodeURI = exports.isUrlMatchAllowlist = exports.createIdentifyEvent = exports.UUID = exports.getClientStates = exports.getClientLogConfig = exports.debugWrapper = exports.returnWrapper = exports.getQueryParams = exports.getLanguage = exports.getOldCookieName = exports.getCookieName = exports.isNewSession = exports.setConnectorUserId = exports.setConnectorDeviceId = exports.getAnalyticsConnector = exports.getGlobalScope = exports.Logger = exports.RequestMetadata = exports.Config = exports.IdentityEventSender = exports.Destination = exports.RevenueProperty = exports.Revenue = exports.Identify = exports.AmplitudeCore = void 0;
7046
- exports.isChromeExtension = exports.VideoObserver = exports.EXCLUDE_INTERNAL_REFERRERS_CONDITIONS = exports.AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL = exports.AMPLITUDE_ORIGINS_MAP = exports.AMPLITUDE_ORIGIN_STAGING = exports.AMPLITUDE_ORIGIN_EU = exports.AMPLITUDE_ORIGIN = exports.enableBackgroundCapture = exports.getOrCreateWindowMessenger = exports.safeJsonStringify = exports.multicast = exports.merge = exports.asyncMap = exports.Observable = exports.EMAIL_REGEX = exports.SSN_REGEX = exports.CC_REGEX = exports.replaceSensitiveString = exports.MASKED_TEXT_VALUE = exports.TEXT_MASK_ATTRIBUTE = exports.getPageTitle = exports.CampaignParser = exports.MKTG = exports.BASE_CAMPAIGN = exports.EMPTY_VALUE = exports.FORBIDDEN_HEADERS = exports.SAFE_HEADERS = exports.NetworkRequestEvent = exports.networkObserver = exports.NetworkEventCallback = exports.Status = exports.DEFAULT_DEAD_CLICK_WINDOW_MS = exports.DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD = exports.DEFAULT_RAGE_CLICK_WINDOW_MS = exports.DEFAULT_RAGE_CLICK_THRESHOLD = exports.DEFAULT_ERROR_CLICK_ALLOWLIST = exports.DEFAULT_RAGE_CLICK_ALLOWLIST = exports.DEFAULT_DEAD_CLICK_ALLOWLIST = exports.DEFAULT_EXPOSURE_DURATION = exports.DEFAULT_ACTION_CLICK_ALLOWLIST = exports.DEFAULT_DATA_ATTRIBUTE_PREFIX = exports.DEFAULT_CSS_SELECTOR_ALLOWLIST = exports.OfflineDisabled = void 0;
7277
+ exports.SpecialEventType = exports.IdentifyOperation = exports.consoleObserver = exports.STORAGE_PREFIX = exports.AMPLITUDE_PREFIX = exports.LogLevel = exports.RemoteConfigClient = exports.MIN_GZIP_UPLOAD_BODY_SIZE_BYTES = exports.isCompressionStreamAvailable = exports.compressToGzipArrayBuffer = exports.FetchTransport = exports.BaseTransport = exports.registerSdkLoaderMetadata = exports.DiagnosticsClient = exports.BrowserStorage = exports.getStorageKey = exports.decodeCookieValue = exports.isDomainEqual = exports.CookieStorage = exports.MemoryStorage = exports.omitUndefined = exports.isTimestampInSample = exports.generateHashCode = exports.getDecodeURI = exports.isUrlMatchAllowlist = exports.createIdentifyEvent = exports.UUID = exports.getClientStates = exports.getClientLogConfig = exports.debugWrapper = exports.returnWrapper = exports.getQueryParams = exports.getLanguage = exports.getOldCookieName = exports.getCookieName = exports.isNewSession = exports.setConnectorUserId = exports.setConnectorDeviceId = exports.getAnalyticsConnector = exports.getGlobalScope = exports.Logger = exports.RequestMetadata = exports.Config = exports.IdentityEventSender = exports.getHeartbeatInstance = exports.Destination = exports.RevenueProperty = exports.Revenue = exports.Identify = exports.AmplitudeCore = void 0;
7278
+ exports.isChromeExtension = exports.VideoObserver = exports.EXCLUDE_INTERNAL_REFERRERS_CONDITIONS = exports.AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL = exports.AMPLITUDE_ORIGINS_MAP = exports.AMPLITUDE_ORIGIN_STAGING = exports.AMPLITUDE_ORIGIN_EU = exports.AMPLITUDE_ORIGIN = exports.enableBackgroundCapture = exports.getOrCreateWindowMessenger = exports.safeJsonStringify = exports.multicast = exports.merge = exports.asyncMap = exports.Observable = exports.EMAIL_REGEX = exports.SSN_REGEX = exports.CC_REGEX = exports.replaceSensitiveString = exports.MASKED_TEXT_VALUE = exports.TEXT_MASK_ATTRIBUTE = exports.getPageTitle = exports.CampaignParser = exports.MKTG = exports.BASE_CAMPAIGN = exports.EMPTY_VALUE = exports.FORBIDDEN_HEADERS = exports.SAFE_HEADERS = exports.NetworkRequestEvent = exports.networkObserver = exports.NetworkEventCallback = exports.Status = exports.DEFAULT_DEAD_CLICK_WINDOW_MS = exports.DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD = exports.DEFAULT_RAGE_CLICK_WINDOW_MS = exports.DEFAULT_RAGE_CLICK_THRESHOLD = exports.DEFAULT_ERROR_CLICK_ALLOWLIST = exports.DEFAULT_RAGE_CLICK_ALLOWLIST = exports.DEFAULT_DEAD_CLICK_ALLOWLIST = exports.DEFAULT_EXPOSURE_DURATION = exports.DEFAULT_ACTION_CLICK_ALLOWLIST = exports.DEFAULT_DATA_ATTRIBUTE_PREFIX = exports.DEFAULT_CSS_SELECTOR_ALLOWLIST = exports.OfflineDisabled = exports.ServerZone = void 0;
7047
7279
  var core_client_1 = require_core_client();
7048
7280
  Object.defineProperty(exports, "AmplitudeCore", {
7049
7281
  enumerable: true,
@@ -7078,6 +7310,13 @@ var require_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
7078
7310
  return destination_1.Destination;
7079
7311
  }
7080
7312
  });
7313
+ var heartbeat_1 = require_heartbeat();
7314
+ Object.defineProperty(exports, "getHeartbeatInstance", {
7315
+ enumerable: true,
7316
+ get: function() {
7317
+ return heartbeat_1.getHeartbeatInstance;
7318
+ }
7319
+ });
7081
7320
  var identity_1 = require_identity();
7082
7321
  Object.defineProperty(exports, "IdentityEventSender", {
7083
7322
  enumerable: true,
@@ -7664,15 +7903,15 @@ var require_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
7664
7903
  }));
7665
7904
 
7666
7905
  //#endregion
7667
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/version.js
7906
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/version.js
7668
7907
  var require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
7669
7908
  Object.defineProperty(exports, "__esModule", { value: true });
7670
7909
  exports.VERSION = void 0;
7671
- exports.VERSION = "1.5.59";
7910
+ exports.VERSION = "1.5.62";
7672
7911
  }));
7673
7912
 
7674
7913
  //#endregion
7675
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/plugins/context.js
7914
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/plugins/context.js
7676
7915
  var require_context = /* @__PURE__ */ __commonJSMin(((exports) => {
7677
7916
  Object.defineProperty(exports, "__esModule", { value: true });
7678
7917
  exports.Context = void 0;
@@ -7713,7 +7952,7 @@ var require_context = /* @__PURE__ */ __commonJSMin(((exports) => {
7713
7952
  }));
7714
7953
 
7715
7954
  //#endregion
7716
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/transports/http.js
7955
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/transports/http.js
7717
7956
  var require_http = /* @__PURE__ */ __commonJSMin(((exports) => {
7718
7957
  Object.defineProperty(exports, "__esModule", { value: true });
7719
7958
  exports.Http = void 0;
@@ -7773,7 +8012,7 @@ var require_http = /* @__PURE__ */ __commonJSMin(((exports) => {
7773
8012
  }));
7774
8013
 
7775
8014
  //#endregion
7776
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/config.js
8015
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/config.js
7777
8016
  var require_config = /* @__PURE__ */ __commonJSMin(((exports) => {
7778
8017
  Object.defineProperty(exports, "__esModule", { value: true });
7779
8018
  exports.useNodeConfig = exports.NodeConfig = void 0;
@@ -7795,7 +8034,7 @@ var require_config = /* @__PURE__ */ __commonJSMin(((exports) => {
7795
8034
  }));
7796
8035
 
7797
8036
  //#endregion
7798
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/node-client.js
8037
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/node-client.js
7799
8038
  var require_node_client = /* @__PURE__ */ __commonJSMin(((exports) => {
7800
8039
  Object.defineProperty(exports, "__esModule", { value: true });
7801
8040
  exports.createInstance = exports.AmplitudeNode = void 0;
@@ -7863,7 +8102,7 @@ var require_node_client = /* @__PURE__ */ __commonJSMin(((exports) => {
7863
8102
  }));
7864
8103
 
7865
8104
  //#endregion
7866
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/types.js
8105
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/types.js
7867
8106
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
7868
8107
  Object.defineProperty(exports, "__esModule", { value: true });
7869
8108
  exports.OfflineDisabled = exports.ServerZone = exports.LogLevel = exports.RevenueProperty = exports.SpecialEventType = exports.IdentifyOperation = void 0;
@@ -7907,7 +8146,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
7907
8146
  }));
7908
8147
 
7909
8148
  //#endregion
7910
- //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/cjs/index.js
8149
+ //#region ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.62/node_modules/@amplitude/analytics-node/lib/cjs/index.js
7911
8150
  var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
7912
8151
  Object.defineProperty(exports, "__esModule", { value: true });
7913
8152
  exports.Types = exports.Identify = exports.Revenue = exports.flush = exports.track = exports.setOptOut = exports.setGroup = exports.revenue = exports.remove = exports.logEvent = exports.init = exports.identify = exports.groupIdentify = exports.add = exports.createInstance = void 0;
@@ -7941,4 +8180,4 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
7941
8180
  export default require_cjs();
7942
8181
 
7943
8182
  export { };
7944
- //# sourceMappingURL=cjs-BS1fE_MP.js.map
8183
+ //# sourceMappingURL=cjs-Bef2t9Tr.js.map