autotel-subscribers 35.0.2 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,11 +111,11 @@ function normalizeWindowsPath(path) {
111
111
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
112
112
  }
113
113
  var init_module_node = __esm({
114
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
114
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
115
115
  }
116
116
  });
117
117
 
118
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/featureFlagUtils.mjs
118
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/featureFlagUtils.mjs
119
119
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
120
120
  return {
121
121
  key,
@@ -132,7 +132,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
132
132
  }
133
133
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
134
134
  var init_featureFlagUtils = __esm({
135
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
135
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
136
136
  normalizeFlagsResponse = (flagsResponse) => {
137
137
  if ("flags" in flagsResponse) {
138
138
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -190,10 +190,10 @@ var init_featureFlagUtils = __esm({
190
190
  }
191
191
  });
192
192
 
193
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/types.mjs
193
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/types.mjs
194
194
  var types_PostHogPersistedProperty, FeatureFlagError;
195
195
  var init_types = __esm({
196
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/types.mjs"() {
196
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/types.mjs"() {
197
197
  types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
198
198
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
199
199
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
@@ -238,7 +238,7 @@ var init_types = __esm({
238
238
  }
239
239
  });
240
240
 
241
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/gzip.mjs
241
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/gzip.mjs
242
242
  function isGzipSupported() {
243
243
  return "CompressionStream" in globalThis && "TextEncoder" in globalThis && "Response" in globalThis && "function" == typeof Response.prototype.blob;
244
244
  }
@@ -268,7 +268,7 @@ async function gzipCompress(input, isDebug = true, options) {
268
268
  }
269
269
  var NATIVE_GZIP_VALIDATION_ERROR, GZIP_MAGIC_FIRST_BYTE, GZIP_MAGIC_SECOND_BYTE, GZIP_DEFLATE_METHOD, hasGzipMagic, crc32Table, getCrc32Table, crc32, throwNativeGzipValidationError, validateNativeGzip;
270
270
  var init_gzip = __esm({
271
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/gzip.mjs"() {
271
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/gzip.mjs"() {
272
272
  init_types();
273
273
  NATIVE_GZIP_VALIDATION_ERROR = "NativeGzipValidationError";
274
274
  GZIP_MAGIC_FIRST_BYTE = 31;
@@ -308,10 +308,10 @@ var init_gzip = __esm({
308
308
  }
309
309
  });
310
310
 
311
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/bot-detection.mjs
311
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bot-detection.mjs
312
312
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
313
313
  var init_bot_detection = __esm({
314
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
314
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
315
315
  DEFAULT_BLOCKED_UA_STRS = [
316
316
  "amazonbot",
317
317
  "amazonproductbot",
@@ -402,13 +402,13 @@ var init_bot_detection = __esm({
402
402
  }
403
403
  });
404
404
 
405
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/string-utils.mjs
405
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/string-utils.mjs
406
406
  var init_string_utils = __esm({
407
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
407
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
408
408
  }
409
409
  });
410
410
 
411
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/type-utils.mjs
411
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/type-utils.mjs
412
412
  function isPrimitive(value) {
413
413
  return null === value || "object" != typeof value;
414
414
  }
@@ -433,7 +433,7 @@ function isInstanceOf(candidate, base) {
433
433
  }
434
434
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
435
435
  var init_type_utils = __esm({
436
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
436
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
437
437
  init_types();
438
438
  init_string_utils();
439
439
  nativeIsArray = Array.isArray;
@@ -452,7 +452,7 @@ var init_type_utils = __esm({
452
452
  }
453
453
  });
454
454
 
455
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/number-utils.mjs
455
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/number-utils.mjs
456
456
  function clampToRange(value, min, max, logger, fallbackValue) {
457
457
  if (min > max) {
458
458
  logger.warn("min cannot be greater than max.");
@@ -470,15 +470,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
470
470
  return clampToRange(max, min, max, logger);
471
471
  }
472
472
  var init_number_utils = __esm({
473
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
473
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
474
474
  init_type_utils();
475
475
  }
476
476
  });
477
477
 
478
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
478
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
479
479
  var ONE_DAY_IN_MS, BucketedRateLimiter;
480
480
  var init_bucketed_rate_limiter = __esm({
481
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
481
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
482
482
  init_number_utils();
483
483
  ONE_DAY_IN_MS = 864e5;
484
484
  BucketedRateLimiter = class {
@@ -522,10 +522,10 @@ var init_bucketed_rate_limiter = __esm({
522
522
  }
523
523
  });
524
524
 
525
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
525
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
526
526
  var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
527
527
  var init_uuidv7 = __esm({
528
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
528
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
529
529
  DIGITS = "0123456789abcdef";
530
530
  UUID = class _UUID {
531
531
  constructor(bytes) {
@@ -686,10 +686,10 @@ var init_uuidv7 = __esm({
686
686
  }
687
687
  });
688
688
 
689
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/promise-queue.mjs
689
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/promise-queue.mjs
690
690
  var PromiseQueue;
691
691
  var init_promise_queue = __esm({
692
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
692
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
693
693
  init_uuidv7();
694
694
  PromiseQueue = class {
695
695
  add(promise) {
@@ -720,7 +720,7 @@ var init_promise_queue = __esm({
720
720
  }
721
721
  });
722
722
 
723
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/logger.mjs
723
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/logger.mjs
724
724
  function createConsole(consoleLike = console) {
725
725
  const lockedMethods = {
726
726
  log: consoleLike.log.bind(consoleLike),
@@ -735,7 +735,7 @@ function createLogger(prefix, maybeCall = passThrough) {
735
735
  }
736
736
  var _createLogger, passThrough;
737
737
  var init_logger = __esm({
738
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/logger.mjs"() {
738
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/logger.mjs"() {
739
739
  _createLogger = (prefix, maybeCall, consoleLike) => {
740
740
  function _log(level, ...args) {
741
741
  maybeCall(() => {
@@ -767,10 +767,10 @@ var init_logger = __esm({
767
767
  }
768
768
  });
769
769
 
770
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
770
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
771
771
  var MOBILE, TABLET, GENERIC;
772
772
  var init_user_agent_utils = __esm({
773
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
773
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
774
774
  init_string_utils();
775
775
  init_type_utils();
776
776
  MOBILE = "Mobile";
@@ -781,7 +781,7 @@ var init_user_agent_utils = __esm({
781
781
  }
782
782
  });
783
783
 
784
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/index.mjs
784
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/index.mjs
785
785
  function removeTrailingSlash(url) {
786
786
  return url?.replace(/\/+$/, "");
787
787
  }
@@ -818,7 +818,7 @@ function allSettled(promises) {
818
818
  }
819
819
  var STRING_FORMAT, isError;
820
820
  var init_utils = __esm({
821
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/utils/index.mjs"() {
821
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/utils/index.mjs"() {
822
822
  init_bot_detection();
823
823
  init_bucketed_rate_limiter();
824
824
  init_number_utils();
@@ -832,10 +832,10 @@ var init_utils = __esm({
832
832
  }
833
833
  });
834
834
 
835
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/logs/logs-utils.mjs
835
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/logs-utils.mjs
836
836
  var OTLP_SEVERITY_MAP;
837
837
  var init_logs_utils = __esm({
838
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/logs/logs-utils.mjs"() {
838
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/logs-utils.mjs"() {
839
839
  init_utils();
840
840
  OTLP_SEVERITY_MAP = {
841
841
  trace: {
@@ -867,23 +867,23 @@ var init_logs_utils = __esm({
867
867
  }
868
868
  });
869
869
 
870
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/logs/index.mjs
870
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/index.mjs
871
871
  var init_logs = __esm({
872
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/logs/index.mjs"() {
872
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/logs/index.mjs"() {
873
873
  init_logs_utils();
874
874
  init_types();
875
875
  init_utils();
876
876
  }
877
877
  });
878
878
 
879
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/surveys/validation.mjs
879
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/surveys/validation.mjs
880
880
  var init_validation = __esm({
881
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
881
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
882
882
  init_types();
883
883
  }
884
884
  });
885
885
 
886
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/cookie.mjs
886
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/cookie.mjs
887
887
  function cookieStoreFromHeader(cookieHeader) {
888
888
  const cookies = {};
889
889
  if (cookieHeader) for (const pair of cookieHeader.split(";")) {
@@ -951,7 +951,7 @@ function parsePostHogCookie(cookieValue) {
951
951
  }
952
952
  var COOKIE_PREFIX, COOKIE_SUFFIX;
953
953
  var init_cookie = __esm({
954
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/cookie.mjs"() {
954
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/cookie.mjs"() {
955
955
  init_utils();
956
956
  init_uuidv7();
957
957
  COOKIE_PREFIX = "ph_";
@@ -959,10 +959,10 @@ var init_cookie = __esm({
959
959
  }
960
960
  });
961
961
 
962
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/eventemitter.mjs
962
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/eventemitter.mjs
963
963
  var SimpleEventEmitter;
964
964
  var init_eventemitter = __esm({
965
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/eventemitter.mjs"() {
965
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/eventemitter.mjs"() {
966
966
  SimpleEventEmitter = class {
967
967
  constructor() {
968
968
  this.events = {};
@@ -983,7 +983,7 @@ var init_eventemitter = __esm({
983
983
  }
984
984
  });
985
985
 
986
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
986
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
987
987
  function getFilenameToChunkIdMap(stackParser) {
988
988
  const chunkIdMap = globalThis._posthogChunkIds;
989
989
  if (!chunkIdMap) return;
@@ -1016,14 +1016,14 @@ function getFilenameToChunkIdMap(stackParser) {
1016
1016
  }
1017
1017
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1018
1018
  var init_chunk_ids = __esm({
1019
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1019
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1020
1020
  }
1021
1021
  });
1022
1022
 
1023
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1023
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1024
1024
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1025
1025
  var init_error_properties_builder = __esm({
1026
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1026
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1027
1027
  init_utils();
1028
1028
  init_chunk_ids();
1029
1029
  MAX_CAUSE_RECURSION = 4;
@@ -1138,7 +1138,7 @@ var init_error_properties_builder = __esm({
1138
1138
  }
1139
1139
  });
1140
1140
 
1141
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1141
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1142
1142
  function createFrame(platform, filename, func, lineno, colno) {
1143
1143
  const frame = {
1144
1144
  platform,
@@ -1152,16 +1152,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1152
1152
  }
1153
1153
  var UNKNOWN_FUNCTION;
1154
1154
  var init_base = __esm({
1155
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1155
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1156
1156
  init_utils();
1157
1157
  UNKNOWN_FUNCTION = "?";
1158
1158
  }
1159
1159
  });
1160
1160
 
1161
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1161
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1162
1162
  var extractSafariExtensionDetails;
1163
1163
  var init_safari = __esm({
1164
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1164
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1165
1165
  init_base();
1166
1166
  extractSafariExtensionDetails = (func, filename) => {
1167
1167
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1177,10 +1177,10 @@ var init_safari = __esm({
1177
1177
  }
1178
1178
  });
1179
1179
 
1180
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1180
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1181
1181
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1182
1182
  var init_chrome = __esm({
1183
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1183
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1184
1184
  init_base();
1185
1185
  init_safari();
1186
1186
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1210,10 +1210,10 @@ var init_chrome = __esm({
1210
1210
  }
1211
1211
  });
1212
1212
 
1213
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1213
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1214
1214
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1215
1215
  var init_gecko = __esm({
1216
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1216
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1217
1217
  init_base();
1218
1218
  init_safari();
1219
1219
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1240,10 +1240,10 @@ var init_gecko = __esm({
1240
1240
  }
1241
1241
  });
1242
1242
 
1243
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1243
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1244
1244
  var winjsRegex, winjsStackLineParser;
1245
1245
  var init_winjs = __esm({
1246
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1246
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1247
1247
  init_base();
1248
1248
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1249
1249
  winjsStackLineParser = (line, platform) => {
@@ -1253,10 +1253,10 @@ var init_winjs = __esm({
1253
1253
  }
1254
1254
  });
1255
1255
 
1256
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1256
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1257
1257
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1258
1258
  var init_opera = __esm({
1259
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1259
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1260
1260
  init_base();
1261
1261
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1262
1262
  opera10StackLineParser = (line, platform) => {
@@ -1271,7 +1271,7 @@ var init_opera = __esm({
1271
1271
  }
1272
1272
  });
1273
1273
 
1274
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1274
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1275
1275
  function filenameIsInApp(filename, isNative = false) {
1276
1276
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1277
1277
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1281,7 +1281,7 @@ function _parseIntOrUndefined(input) {
1281
1281
  }
1282
1282
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1283
1283
  var init_node = __esm({
1284
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1284
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1285
1285
  init_base();
1286
1286
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1287
1287
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1342,7 +1342,7 @@ var init_node = __esm({
1342
1342
  }
1343
1343
  });
1344
1344
 
1345
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1345
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1346
1346
  function reverseAndStripFrames(stack) {
1347
1347
  if (!stack.length) return [];
1348
1348
  const localStack = Array.from(stack);
@@ -1383,7 +1383,7 @@ function createStackParser(platform, ...parsers) {
1383
1383
  }
1384
1384
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1385
1385
  var init_parsers = __esm({
1386
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1386
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1387
1387
  init_base();
1388
1388
  init_chrome();
1389
1389
  init_gecko();
@@ -1395,10 +1395,10 @@ var init_parsers = __esm({
1395
1395
  }
1396
1396
  });
1397
1397
 
1398
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1398
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1399
1399
  var DOMExceptionCoercer;
1400
1400
  var init_dom_exception_coercer = __esm({
1401
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1401
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1402
1402
  init_utils();
1403
1403
  DOMExceptionCoercer = class {
1404
1404
  match(err) {
@@ -1432,10 +1432,10 @@ var init_dom_exception_coercer = __esm({
1432
1432
  }
1433
1433
  });
1434
1434
 
1435
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1435
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1436
1436
  var ErrorCoercer;
1437
1437
  var init_error_coercer = __esm({
1438
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1438
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1439
1439
  init_utils();
1440
1440
  ErrorCoercer = class {
1441
1441
  match(err) {
@@ -1465,10 +1465,10 @@ var init_error_coercer = __esm({
1465
1465
  }
1466
1466
  });
1467
1467
 
1468
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1468
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1469
1469
  var ErrorEventCoercer;
1470
1470
  var init_error_event_coercer = __esm({
1471
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1471
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1472
1472
  init_utils();
1473
1473
  ErrorEventCoercer = class {
1474
1474
  constructor() {
@@ -1490,10 +1490,10 @@ var init_error_event_coercer = __esm({
1490
1490
  }
1491
1491
  });
1492
1492
 
1493
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1493
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1494
1494
  var ERROR_TYPES_PATTERN, StringCoercer;
1495
1495
  var init_string_coercer = __esm({
1496
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1496
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1497
1497
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
1498
1498
  StringCoercer = class {
1499
1499
  match(input) {
@@ -1525,10 +1525,10 @@ var init_string_coercer = __esm({
1525
1525
  }
1526
1526
  });
1527
1527
 
1528
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/types.mjs
1528
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/types.mjs
1529
1529
  var severityLevels;
1530
1530
  var init_types2 = __esm({
1531
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
1531
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
1532
1532
  severityLevels = [
1533
1533
  "fatal",
1534
1534
  "error",
@@ -1540,7 +1540,7 @@ var init_types2 = __esm({
1540
1540
  }
1541
1541
  });
1542
1542
 
1543
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
1543
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
1544
1544
  function extractExceptionKeysForMessage(err, maxLength = 40) {
1545
1545
  const keys = Object.keys(err);
1546
1546
  keys.sort();
@@ -1555,14 +1555,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
1555
1555
  return "";
1556
1556
  }
1557
1557
  var init_utils2 = __esm({
1558
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
1558
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
1559
1559
  }
1560
1560
  });
1561
1561
 
1562
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
1562
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
1563
1563
  var ObjectCoercer;
1564
1564
  var init_object_coercer = __esm({
1565
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
1565
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
1566
1566
  init_utils();
1567
1567
  init_types2();
1568
1568
  init_utils2();
@@ -1616,10 +1616,10 @@ var init_object_coercer = __esm({
1616
1616
  }
1617
1617
  });
1618
1618
 
1619
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
1619
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
1620
1620
  var EventCoercer;
1621
1621
  var init_event_coercer = __esm({
1622
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
1622
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
1623
1623
  init_utils();
1624
1624
  init_utils2();
1625
1625
  EventCoercer = class {
@@ -1639,10 +1639,10 @@ var init_event_coercer = __esm({
1639
1639
  }
1640
1640
  });
1641
1641
 
1642
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
1642
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
1643
1643
  var PrimitiveCoercer;
1644
1644
  var init_primitive_coercer = __esm({
1645
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
1645
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
1646
1646
  init_utils();
1647
1647
  PrimitiveCoercer = class {
1648
1648
  match(candidate) {
@@ -1660,10 +1660,10 @@ var init_primitive_coercer = __esm({
1660
1660
  }
1661
1661
  });
1662
1662
 
1663
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
1663
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
1664
1664
  var PromiseRejectionEventCoercer;
1665
1665
  var init_promise_rejection_event = __esm({
1666
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
1666
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
1667
1667
  init_utils();
1668
1668
  PromiseRejectionEventCoercer = class {
1669
1669
  match(err) {
@@ -1700,9 +1700,9 @@ var init_promise_rejection_event = __esm({
1700
1700
  }
1701
1701
  });
1702
1702
 
1703
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
1703
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
1704
1704
  var init_coercers = __esm({
1705
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
1705
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
1706
1706
  init_dom_exception_coercer();
1707
1707
  init_error_coercer();
1708
1708
  init_error_event_coercer();
@@ -1714,10 +1714,10 @@ var init_coercers = __esm({
1714
1714
  }
1715
1715
  });
1716
1716
 
1717
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/utils.mjs
1717
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/utils.mjs
1718
1718
  var ReduceableCache;
1719
1719
  var init_utils3 = __esm({
1720
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
1720
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
1721
1721
  ReduceableCache = class {
1722
1722
  constructor(_maxSize) {
1723
1723
  this._maxSize = _maxSize;
@@ -1743,7 +1743,7 @@ var init_utils3 = __esm({
1743
1743
  }
1744
1744
  });
1745
1745
 
1746
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
1746
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
1747
1747
  function resolveExceptionStepsConfig(config) {
1748
1748
  if (!config) return {
1749
1749
  ...DEFAULT_EXCEPTION_STEPS_CONFIG
@@ -1831,7 +1831,7 @@ function getUtf8ByteLength(value) {
1831
1831
  }
1832
1832
  var EXCEPTION_STEP_INTERNAL_FIELDS, RESERVED_EXCEPTION_STEP_KEYS, DEFAULT_EXCEPTION_STEPS_CONFIG, ExceptionStepsBuffer;
1833
1833
  var init_exception_steps = __esm({
1834
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs"() {
1834
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs"() {
1835
1835
  init_utils();
1836
1836
  EXCEPTION_STEP_INTERNAL_FIELDS = {
1837
1837
  MESSAGE: "$message",
@@ -1887,7 +1887,7 @@ var init_exception_steps = __esm({
1887
1887
  }
1888
1888
  });
1889
1889
 
1890
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/index.mjs
1890
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/index.mjs
1891
1891
  var error_tracking_exports = {};
1892
1892
  __export(error_tracking_exports, {
1893
1893
  DEFAULT_EXCEPTION_STEPS_CONFIG: () => DEFAULT_EXCEPTION_STEPS_CONFIG,
@@ -1917,7 +1917,7 @@ __export(error_tracking_exports, {
1917
1917
  winjsStackLineParser: () => winjsStackLineParser
1918
1918
  });
1919
1919
  var init_error_tracking = __esm({
1920
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
1920
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
1921
1921
  init_error_properties_builder();
1922
1922
  init_parsers();
1923
1923
  init_coercers();
@@ -1926,7 +1926,7 @@ var init_error_tracking = __esm({
1926
1926
  }
1927
1927
  });
1928
1928
 
1929
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
1929
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
1930
1930
  async function logFlushError(err) {
1931
1931
  if (err instanceof PostHogFetchHttpError) {
1932
1932
  let text = "";
@@ -1949,7 +1949,7 @@ function isPostHogFetchContentTooLargeError(err) {
1949
1949
  }
1950
1950
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
1951
1951
  var init_posthog_core_stateless = __esm({
1952
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
1952
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
1953
1953
  init_eventemitter();
1954
1954
  init_featureFlagUtils();
1955
1955
  init_gzip();
@@ -2677,9 +2677,9 @@ var init_posthog_core_stateless = __esm({
2677
2677
  }
2678
2678
  });
2679
2679
 
2680
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/posthog-core.mjs
2680
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core.mjs
2681
2681
  var init_posthog_core = __esm({
2682
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/posthog-core.mjs"() {
2682
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/posthog-core.mjs"() {
2683
2683
  init_featureFlagUtils();
2684
2684
  init_types();
2685
2685
  init_posthog_core_stateless();
@@ -2688,16 +2688,16 @@ var init_posthog_core = __esm({
2688
2688
  }
2689
2689
  });
2690
2690
 
2691
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/tracing-headers.mjs
2691
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/tracing-headers.mjs
2692
2692
  var init_tracing_headers = __esm({
2693
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/tracing-headers.mjs"() {
2693
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/tracing-headers.mjs"() {
2694
2694
  init_type_utils();
2695
2695
  }
2696
2696
  });
2697
2697
 
2698
- // ../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/index.mjs
2698
+ // ../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/index.mjs
2699
2699
  var init_dist = __esm({
2700
- "../../node_modules/.pnpm/@posthog+core@1.29.13/node_modules/@posthog/core/dist/index.mjs"() {
2700
+ "../../node_modules/.pnpm/@posthog+core@1.30.10/node_modules/@posthog/core/dist/index.mjs"() {
2701
2701
  init_featureFlagUtils();
2702
2702
  init_gzip();
2703
2703
  init_logs_utils();
@@ -2894,7 +2894,7 @@ function snipLine(line, colno) {
2894
2894
  }
2895
2895
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2896
2896
  var init_context_lines_node = __esm({
2897
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2897
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2898
2898
  init_dist();
2899
2899
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2900
2900
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2915,22 +2915,22 @@ function createRelativePathModifier(basePath = process.cwd()) {
2915
2915
  };
2916
2916
  }
2917
2917
  var init_relative_path_node = __esm({
2918
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs"() {
2918
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs"() {
2919
2919
  }
2920
2920
  });
2921
2921
 
2922
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
2922
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
2923
2923
  var version;
2924
2924
  var init_version = __esm({
2925
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
2926
- version = "5.35.6";
2925
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
2926
+ version = "5.36.4";
2927
2927
  }
2928
2928
  });
2929
2929
 
2930
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
2930
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
2931
2931
  var FeatureFlagError2;
2932
2932
  var init_types3 = __esm({
2933
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
2933
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
2934
2934
  FeatureFlagError2 = {
2935
2935
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2936
2936
  FLAG_MISSING: "flag_missing",
@@ -2940,10 +2940,10 @@ var init_types3 = __esm({
2940
2940
  }
2941
2941
  });
2942
2942
 
2943
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs
2943
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs
2944
2944
  var FeatureFlagEvaluations;
2945
2945
  var init_feature_flag_evaluations = __esm({
2946
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs"() {
2946
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/feature-flag-evaluations.mjs"() {
2947
2947
  init_types3();
2948
2948
  FeatureFlagEvaluations = class _FeatureFlagEvaluations {
2949
2949
  constructor(init2) {
@@ -3063,7 +3063,7 @@ var init_feature_flag_evaluations = __esm({
3063
3063
  }
3064
3064
  });
3065
3065
 
3066
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
3066
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
3067
3067
  async function hashSHA1(text) {
3068
3068
  const subtle = globalThis.crypto?.subtle;
3069
3069
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -3072,11 +3072,11 @@ async function hashSHA1(text) {
3072
3072
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
3073
3073
  }
3074
3074
  var init_crypto = __esm({
3075
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
3075
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
3076
3076
  }
3077
3077
  });
3078
3078
 
3079
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
3079
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
3080
3080
  async function _hash(key, bucketingValue, salt = "") {
3081
3081
  const hashString = await hashSHA1(`${key}.${bucketingValue}${salt}`);
3082
3082
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -3401,7 +3401,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
3401
3401
  }
3402
3402
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
3403
3403
  var init_feature_flags = __esm({
3404
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
3404
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
3405
3405
  init_dist();
3406
3406
  init_crypto();
3407
3407
  SIXTY_SECONDS = 6e4;
@@ -3874,7 +3874,7 @@ var init_feature_flags = __esm({
3874
3874
  }
3875
3875
  });
3876
3876
 
3877
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
3877
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
3878
3878
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
3879
3879
  let calledFatalError = false;
3880
3880
  return Object.assign((error) => {
@@ -3906,14 +3906,14 @@ function addUnhandledRejectionListener(captureFn) {
3906
3906
  }));
3907
3907
  }
3908
3908
  var init_autocapture = __esm({
3909
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
3909
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
3910
3910
  }
3911
3911
  });
3912
3912
 
3913
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
3913
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
3914
3914
  var SHUTDOWN_TIMEOUT, ErrorTracking;
3915
3915
  var init_error_tracking2 = __esm({
3916
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
3916
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
3917
3917
  init_autocapture();
3918
3918
  init_dist();
3919
3919
  SHUTDOWN_TIMEOUT = 2e3;
@@ -3984,10 +3984,10 @@ var init_error_tracking2 = __esm({
3984
3984
  }
3985
3985
  });
3986
3986
 
3987
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
3987
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
3988
3988
  var PostHogMemoryStorage;
3989
3989
  var init_storage_memory = __esm({
3990
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3990
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3991
3991
  PostHogMemoryStorage = class {
3992
3992
  getProperty(key) {
3993
3993
  return this._memoryStorage[key];
@@ -4002,7 +4002,7 @@ var init_storage_memory = __esm({
4002
4002
  }
4003
4003
  });
4004
4004
 
4005
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
4005
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
4006
4006
  function emitDeprecationWarningOnce(id, message2) {
4007
4007
  if (_emittedDeprecations.has(id)) return;
4008
4008
  _emittedDeprecations.add(id);
@@ -4029,7 +4029,7 @@ function buildFlagEventProperties(flagValues) {
4029
4029
  }
4030
4030
  var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, DEFAULT_NODE_HOST, _emittedDeprecations, PostHogBackendClient;
4031
4031
  var init_client = __esm({
4032
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
4032
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
4033
4033
  init_version();
4034
4034
  init_dist();
4035
4035
  init_types3();
@@ -4058,7 +4058,7 @@ var init_client = __esm({
4058
4058
  this.options.featureFlagsPollingInterval = "number" == typeof normalizedOptions.featureFlagsPollingInterval ? Math.max(normalizedOptions.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
4059
4059
  if ("number" == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
4060
4060
  if ("number" == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
4061
- if (normalizedOptions.personalApiKey) {
4061
+ if (!this.disabled && normalizedOptions.personalApiKey) {
4062
4062
  if (normalizedOptions.personalApiKey.includes("phc_")) throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');
4063
4063
  const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
4064
4064
  if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new FeatureFlagsPoller({
@@ -4159,6 +4159,11 @@ var init_client = __esm({
4159
4159
  getCustomUserAgent() {
4160
4160
  return `${this.getLibraryId()}/${this.getLibraryVersion()}`;
4161
4161
  }
4162
+ getCommonEventProperties() {
4163
+ const commonProperties = super.getCommonEventProperties();
4164
+ if (this.options.isServer ?? true) commonProperties.$is_server = true;
4165
+ return commonProperties;
4166
+ }
4162
4167
  enable() {
4163
4168
  return super.optIn();
4164
4169
  }
@@ -4256,6 +4261,7 @@ var init_client = __esm({
4256
4261
  };
4257
4262
  }
4258
4263
  async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
4264
+ if (this.disabled) return void this._logger.warn("The client is disabled");
4259
4265
  const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
4260
4266
  if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
4261
4267
  const overrideValue = this._flagOverrides[key];
@@ -4403,6 +4409,7 @@ var init_client = __esm({
4403
4409
  });
4404
4410
  }
4405
4411
  async getRemoteConfigPayload(flagKey) {
4412
+ if (this.disabled) return void this._logger.warn("The client is disabled");
4406
4413
  if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
4407
4414
  const response = await this._requestRemoteConfigPayload(flagKey);
4408
4415
  if (!response) return;
@@ -4442,6 +4449,13 @@ var init_client = __esm({
4442
4449
  featureFlagPayloads: {}
4443
4450
  };
4444
4451
  }
4452
+ if (this.disabled) {
4453
+ this._logger.warn("The client is disabled");
4454
+ return {
4455
+ featureFlags: {},
4456
+ featureFlagPayloads: {}
4457
+ };
4458
+ }
4445
4459
  const { groups, disableGeoip, flagKeys } = resolvedOptions || {};
4446
4460
  let { onlyEvaluateLocally, personProperties, groupProperties } = resolvedOptions || {};
4447
4461
  const adjustedProperties = this.addLocalPersonAndGroupProperties(resolvedDistinctId, groups, personProperties, groupProperties);
@@ -4492,6 +4506,14 @@ var init_client = __esm({
4492
4506
  flags: {}
4493
4507
  });
4494
4508
  }
4509
+ if (this.disabled) {
4510
+ this._logger.warn("The client is disabled");
4511
+ return new FeatureFlagEvaluations({
4512
+ host: this._getFeatureFlagEvaluationsHost(),
4513
+ distinctId: resolvedDistinctId,
4514
+ flags: {}
4515
+ });
4516
+ }
4495
4517
  const { groups, disableGeoip, flagKeys } = resolvedOptions || {};
4496
4518
  let { onlyEvaluateLocally, personProperties, groupProperties } = resolvedOptions || {};
4497
4519
  const adjustedProperties = this.addLocalPersonAndGroupProperties(resolvedDistinctId, groups, personProperties, groupProperties);
@@ -4689,7 +4711,7 @@ var init_client = __esm({
4689
4711
  }
4690
4712
  }
4691
4713
  async _requestRemoteConfigPayload(flagKey) {
4692
- if (!this.options.personalApiKey) return;
4714
+ if (this.disabled || !this.apiKey || !this.options.personalApiKey) return;
4693
4715
  const url = `${this.host}/api/projects/@current/feature_flags/${flagKey}/remote_config?token=${encodeURIComponent(this.apiKey)}`;
4694
4716
  const options = {
4695
4717
  method: "GET",
@@ -4734,6 +4756,7 @@ var init_client = __esm({
4734
4756
  };
4735
4757
  }
4736
4758
  async getFeatureFlagsForEvent(distinctId, groups, disableGeoip, sendFeatureFlagsOptions) {
4759
+ if (this.disabled || !this.apiKey) return void this._logger.warn("The client is disabled");
4737
4760
  const finalPersonProperties = sendFeatureFlagsOptions?.personProperties || {};
4738
4761
  const finalGroupProperties = sendFeatureFlagsOptions?.groupProperties || {};
4739
4762
  const flagKeys = sendFeatureFlagsOptions?.flagKeys;
@@ -4900,7 +4923,7 @@ var init_client = __esm({
4900
4923
  });
4901
4924
  var PostHogContext;
4902
4925
  var init_context = __esm({
4903
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
4926
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
4904
4927
  PostHogContext = class {
4905
4928
  constructor() {
4906
4929
  this.storage = new async_hooks.AsyncLocalStorage();
@@ -4930,7 +4953,7 @@ var init_context = __esm({
4930
4953
  }
4931
4954
  });
4932
4955
 
4933
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
4956
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
4934
4957
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
4935
4958
  "error"
4936
4959
  ], sendExceptionsToPostHog = true } = {}) {
@@ -4986,7 +5009,7 @@ function sentryIntegration(_posthog, options) {
4986
5009
  }
4987
5010
  var NAME, PostHogSentryIntegration;
4988
5011
  var init_sentry_integration = __esm({
4989
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
5012
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
4990
5013
  NAME = "posthog-node";
4991
5014
  PostHogSentryIntegration = class {
4992
5015
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -5008,7 +5031,7 @@ var init_sentry_integration = __esm({
5008
5031
  }
5009
5032
  });
5010
5033
 
5011
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs
5034
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs
5012
5035
  function addProperty(properties, key, value) {
5013
5036
  if (null != value && "" !== value) properties[key] = value;
5014
5037
  }
@@ -5043,7 +5066,7 @@ function getPostHogTracingHeaderValues(headers) {
5043
5066
  }
5044
5067
  var TRACING_HEADER_MAX_LENGTH, TRACING_HEADER_CONTROL_CHARS_REGEX, POSTHOG_TRACING_HEADERS;
5045
5068
  var init_tracing_headers2 = __esm({
5046
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs"() {
5069
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/tracing-headers.mjs"() {
5047
5070
  TRACING_HEADER_MAX_LENGTH = 1e3;
5048
5071
  TRACING_HEADER_CONTROL_CHARS_REGEX = /[\x00-\x1f\x7f-\x9f]/g;
5049
5072
  POSTHOG_TRACING_HEADERS = {
@@ -5053,7 +5076,7 @@ var init_tracing_headers2 = __esm({
5053
5076
  }
5054
5077
  });
5055
5078
 
5056
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
5079
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
5057
5080
  function getClientIp(req) {
5058
5081
  const forwarded = getFirstHeaderValue(req.headers["x-forwarded-for"]);
5059
5082
  if (forwarded) {
@@ -5117,15 +5140,15 @@ function posthogErrorHandler(posthog) {
5117
5140
  };
5118
5141
  }
5119
5142
  var init_express = __esm({
5120
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
5143
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
5121
5144
  init_error_tracking2();
5122
5145
  init_tracing_headers2();
5123
5146
  }
5124
5147
  });
5125
5148
 
5126
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
5149
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
5127
5150
  var init_exports = __esm({
5128
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
5151
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
5129
5152
  init_feature_flag_evaluations();
5130
5153
  init_dist();
5131
5154
  init_sentry_integration();
@@ -5134,7 +5157,7 @@ var init_exports = __esm({
5134
5157
  }
5135
5158
  });
5136
5159
 
5137
- // ../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
5160
+ // ../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
5138
5161
  var index_node_exports = {};
5139
5162
  __export(index_node_exports, {
5140
5163
  FeatureFlagError: () => FeatureFlagError,
@@ -5155,7 +5178,7 @@ __export(index_node_exports, {
5155
5178
  });
5156
5179
  var PostHog;
5157
5180
  var init_index_node = __esm({
5158
- "../../node_modules/.pnpm/posthog-node@5.35.6_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
5181
+ "../../node_modules/.pnpm/posthog-node@5.36.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
5159
5182
  init_module_node();
5160
5183
  init_context_lines_node();
5161
5184
  init_relative_path_node();
@@ -8750,10 +8773,10 @@ var init_tslib_es6 = __esm({
8750
8773
  }
8751
8774
  });
8752
8775
 
8753
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
8776
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
8754
8777
  var IdentifyOperation, SpecialEventType;
8755
8778
  var init_event = __esm({
8756
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
8779
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
8757
8780
  (function(IdentifyOperation3) {
8758
8781
  IdentifyOperation3["SET"] = "$set";
8759
8782
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -8774,10 +8797,10 @@ var init_event = __esm({
8774
8797
  }
8775
8798
  });
8776
8799
 
8777
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
8800
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
8778
8801
  var UNSET_VALUE, AMPLITUDE_PREFIX, STORAGE_PREFIX, DEFAULT_INSTANCE_NAME, AMPLITUDE_SERVER_URL, EU_AMPLITUDE_SERVER_URL, AMPLITUDE_BATCH_SERVER_URL, EU_AMPLITUDE_BATCH_SERVER_URL;
8779
8802
  var init_constants = __esm({
8780
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
8803
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
8781
8804
  UNSET_VALUE = "-";
8782
8805
  AMPLITUDE_PREFIX = "AMP";
8783
8806
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -8789,10 +8812,10 @@ var init_constants = __esm({
8789
8812
  }
8790
8813
  });
8791
8814
 
8792
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
8815
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
8793
8816
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
8794
8817
  var init_valid_properties = __esm({
8795
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
8818
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
8796
8819
  init_tslib_es6();
8797
8820
  MAX_PROPERTY_KEYS = 1e3;
8798
8821
  isValidObject = function(properties) {
@@ -8847,10 +8870,10 @@ var init_valid_properties = __esm({
8847
8870
  }
8848
8871
  });
8849
8872
 
8850
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
8873
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
8851
8874
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
8852
8875
  var init_identify = __esm({
8853
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
8876
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
8854
8877
  init_tslib_es6();
8855
8878
  init_constants();
8856
8879
  init_valid_properties();
@@ -8961,10 +8984,10 @@ var init_identify = __esm({
8961
8984
  }
8962
8985
  });
8963
8986
 
8964
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
8987
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
8965
8988
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
8966
8989
  var init_messages = __esm({
8967
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
8990
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
8968
8991
  SUCCESS_MESSAGE = "Event tracked successfully";
8969
8992
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
8970
8993
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -8975,10 +8998,10 @@ var init_messages = __esm({
8975
8998
  }
8976
8999
  });
8977
9000
 
8978
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
9001
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
8979
9002
  var Status;
8980
9003
  var init_status = __esm({
8981
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
9004
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
8982
9005
  (function(Status2) {
8983
9006
  Status2["Unknown"] = "unknown";
8984
9007
  Status2["Skipped"] = "skipped";
@@ -8993,10 +9016,10 @@ var init_status = __esm({
8993
9016
  }
8994
9017
  });
8995
9018
 
8996
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
9019
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
8997
9020
  var buildResult;
8998
9021
  var init_result_builder = __esm({
8999
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
9022
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
9000
9023
  init_status();
9001
9024
  buildResult = function(event, code, message2) {
9002
9025
  if (code === void 0) {
@@ -9010,10 +9033,10 @@ var init_result_builder = __esm({
9010
9033
  }
9011
9034
  });
9012
9035
 
9013
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
9036
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
9014
9037
  var getGlobalScope;
9015
9038
  var init_global_scope = __esm({
9016
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
9039
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
9017
9040
  getGlobalScope = function() {
9018
9041
  var ampIntegrationContextName = "ampIntegrationContext";
9019
9042
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -9036,10 +9059,10 @@ var init_global_scope = __esm({
9036
9059
  }
9037
9060
  });
9038
9061
 
9039
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
9062
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
9040
9063
  var legacyUUID, hex, UUID2;
9041
9064
  var init_uuid = __esm({
9042
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
9065
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
9043
9066
  init_tslib_es6();
9044
9067
  init_global_scope();
9045
9068
  legacyUUID = function(a) {
@@ -9083,10 +9106,10 @@ var init_uuid = __esm({
9083
9106
  }
9084
9107
  });
9085
9108
 
9086
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
9109
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
9087
9110
  var Timeline;
9088
9111
  var init_timeline = __esm({
9089
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
9112
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
9090
9113
  init_tslib_es6();
9091
9114
  init_result_builder();
9092
9115
  init_uuid();
@@ -9460,10 +9483,10 @@ var init_timeline = __esm({
9460
9483
  }
9461
9484
  });
9462
9485
 
9463
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
9486
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
9464
9487
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
9465
9488
  var init_event_builder = __esm({
9466
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
9489
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
9467
9490
  init_tslib_es6();
9468
9491
  init_identify();
9469
9492
  init_event();
@@ -9493,10 +9516,10 @@ var init_event_builder = __esm({
9493
9516
  }
9494
9517
  });
9495
9518
 
9496
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
9519
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
9497
9520
  var returnWrapper;
9498
9521
  var init_return_wrapper = __esm({
9499
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
9522
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
9500
9523
  returnWrapper = function(awaitable) {
9501
9524
  return {
9502
9525
  promise: awaitable || Promise.resolve()
@@ -9505,10 +9528,10 @@ var init_return_wrapper = __esm({
9505
9528
  }
9506
9529
  });
9507
9530
 
9508
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
9531
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
9509
9532
  var AmplitudeCore;
9510
9533
  var init_core_client = __esm({
9511
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
9534
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
9512
9535
  init_tslib_es6();
9513
9536
  init_event();
9514
9537
  init_identify();
@@ -9780,10 +9803,10 @@ var init_core_client = __esm({
9780
9803
  }
9781
9804
  });
9782
9805
 
9783
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
9806
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
9784
9807
  var Revenue, RevenueProperty;
9785
9808
  var init_revenue = __esm({
9786
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
9809
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
9787
9810
  init_tslib_es6();
9788
9811
  init_valid_properties();
9789
9812
  Revenue = /** @class */
@@ -9864,10 +9887,10 @@ var init_revenue = __esm({
9864
9887
  }
9865
9888
  });
9866
9889
 
9867
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
9890
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
9868
9891
  var chunk;
9869
9892
  var init_chunk = __esm({
9870
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
9893
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
9871
9894
  chunk = function(arr, size) {
9872
9895
  var chunkSize = Math.max(size, 1);
9873
9896
  return arr.reduce(function(chunks, element, index) {
@@ -9882,10 +9905,10 @@ var init_chunk = __esm({
9882
9905
  }
9883
9906
  });
9884
9907
 
9885
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
9908
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
9886
9909
  var LogLevel;
9887
9910
  var init_loglevel = __esm({
9888
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
9911
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
9889
9912
  (function(LogLevel2) {
9890
9913
  LogLevel2[LogLevel2["None"] = 0] = "None";
9891
9914
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -9896,10 +9919,10 @@ var init_loglevel = __esm({
9896
9919
  }
9897
9920
  });
9898
9921
 
9899
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
9922
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
9900
9923
  var PREFIX, Logger;
9901
9924
  var init_logger2 = __esm({
9902
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
9925
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
9903
9926
  init_loglevel();
9904
9927
  PREFIX = "Amplitude Logger ";
9905
9928
  Logger = /** @class */
@@ -9961,10 +9984,10 @@ var init_logger2 = __esm({
9961
9984
  }
9962
9985
  });
9963
9986
 
9964
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
9987
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
9965
9988
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
9966
9989
  var init_config = __esm({
9967
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
9990
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
9968
9991
  init_constants();
9969
9992
  init_logger2();
9970
9993
  init_loglevel();
@@ -10065,19 +10088,19 @@ var init_config = __esm({
10065
10088
  }
10066
10089
  });
10067
10090
 
10068
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
10091
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
10069
10092
  function isSuccessStatusCode(code) {
10070
10093
  return code >= 200 && code < 300;
10071
10094
  }
10072
10095
  var init_status_code = __esm({
10073
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
10096
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
10074
10097
  }
10075
10098
  });
10076
10099
 
10077
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
10100
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
10078
10101
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
10079
10102
  var init_debug = __esm({
10080
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
10103
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
10081
10104
  init_tslib_es6();
10082
10105
  init_loglevel();
10083
10106
  getStacktrace = function(ignoreDepth) {
@@ -10195,7 +10218,7 @@ var init_debug = __esm({
10195
10218
  }
10196
10219
  });
10197
10220
 
10198
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
10221
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
10199
10222
  function getErrorMessage(error) {
10200
10223
  if (error instanceof Error)
10201
10224
  return error.message;
@@ -10213,7 +10236,7 @@ function getResponseBodyString(res) {
10213
10236
  }
10214
10237
  var DEFAULT_AMPLITUDE_SERVER_URLS, shouldCompressUploadBodyForRequest, Destination;
10215
10238
  var init_destination = __esm({
10216
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
10239
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
10217
10240
  init_tslib_es6();
10218
10241
  init_status();
10219
10242
  init_messages();
@@ -10620,10 +10643,10 @@ var init_destination = __esm({
10620
10643
  }
10621
10644
  });
10622
10645
 
10623
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
10646
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
10624
10647
  var BaseTransport;
10625
10648
  var init_base2 = __esm({
10626
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
10649
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
10627
10650
  init_status();
10628
10651
  init_status_code();
10629
10652
  BaseTransport = /** @class */
@@ -10725,10 +10748,10 @@ var init_base2 = __esm({
10725
10748
  }
10726
10749
  });
10727
10750
 
10728
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
10751
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
10729
10752
  var ServerZone;
10730
10753
  var init_server_zone = __esm({
10731
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
10754
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
10732
10755
  (function(ServerZone2) {
10733
10756
  ServerZone2["US"] = "US";
10734
10757
  ServerZone2["EU"] = "EU";
@@ -10737,17 +10760,17 @@ var init_server_zone = __esm({
10737
10760
  }
10738
10761
  });
10739
10762
 
10740
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
10763
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
10741
10764
  var OfflineDisabled;
10742
10765
  var init_offline = __esm({
10743
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
10766
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
10744
10767
  OfflineDisabled = null;
10745
10768
  }
10746
10769
  });
10747
10770
 
10748
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
10771
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
10749
10772
  var init_esm = __esm({
10750
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.48.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
10773
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.49.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
10751
10774
  init_core_client();
10752
10775
  init_identify();
10753
10776
  init_revenue();
@@ -10764,18 +10787,18 @@ var init_esm = __esm({
10764
10787
  }
10765
10788
  });
10766
10789
 
10767
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/version.js
10790
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/version.js
10768
10791
  var VERSION;
10769
10792
  var init_version2 = __esm({
10770
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
10771
- VERSION = "1.5.58";
10793
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
10794
+ VERSION = "1.5.59";
10772
10795
  }
10773
10796
  });
10774
10797
 
10775
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
10798
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
10776
10799
  var Context;
10777
10800
  var init_context2 = __esm({
10778
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
10801
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
10779
10802
  init_tslib_es6();
10780
10803
  init_esm();
10781
10804
  init_version2();
@@ -10810,7 +10833,7 @@ var init_context2 = __esm({
10810
10833
  });
10811
10834
  var Http;
10812
10835
  var init_http = __esm({
10813
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
10836
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
10814
10837
  init_tslib_es6();
10815
10838
  init_esm();
10816
10839
  Http = /** @class */
@@ -10872,10 +10895,10 @@ var init_http = __esm({
10872
10895
  }
10873
10896
  });
10874
10897
 
10875
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/config.js
10898
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/config.js
10876
10899
  var NodeConfig, useNodeConfig;
10877
10900
  var init_config2 = __esm({
10878
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
10901
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
10879
10902
  init_tslib_es6();
10880
10903
  init_esm();
10881
10904
  init_http();
@@ -10893,10 +10916,10 @@ var init_config2 = __esm({
10893
10916
  }
10894
10917
  });
10895
10918
 
10896
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
10919
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
10897
10920
  var AmplitudeNode, createInstance, node_client_default;
10898
10921
  var init_node_client = __esm({
10899
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
10922
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
10900
10923
  init_tslib_es6();
10901
10924
  init_esm();
10902
10925
  init_context2();
@@ -10970,7 +10993,7 @@ var init_node_client = __esm({
10970
10993
  }
10971
10994
  });
10972
10995
 
10973
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/types.js
10996
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/types.js
10974
10997
  var types_exports = {};
10975
10998
  __export(types_exports, {
10976
10999
  IdentifyOperation: () => IdentifyOperation,
@@ -10981,12 +11004,12 @@ __export(types_exports, {
10981
11004
  SpecialEventType: () => SpecialEventType
10982
11005
  });
10983
11006
  var init_types4 = __esm({
10984
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
11007
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
10985
11008
  init_esm();
10986
11009
  }
10987
11010
  });
10988
11011
 
10989
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/index.js
11012
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/index.js
10990
11013
  var esm_exports = {};
10991
11014
  __export(esm_exports, {
10992
11015
  Identify: () => Identify,
@@ -11007,7 +11030,7 @@ __export(esm_exports, {
11007
11030
  });
11008
11031
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
11009
11032
  var init_esm2 = __esm({
11010
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.58/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
11033
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.59/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
11011
11034
  init_node_client();
11012
11035
  init_node_client();
11013
11036
  init_esm();
@@ -11343,7 +11366,7 @@ function sleep(timeoutInMs) {
11343
11366
  return setTimeout(resolve, timeoutInMs);
11344
11367
  });
11345
11368
  }
11346
- function invokeCallback(ctx, callback, delay) {
11369
+ function invokeCallback(ctx, callback, delay2) {
11347
11370
  var cb = function() {
11348
11371
  try {
11349
11372
  return Promise.resolve(callback(ctx));
@@ -11351,7 +11374,7 @@ function invokeCallback(ctx, callback, delay) {
11351
11374
  return Promise.reject(err);
11352
11375
  }
11353
11376
  };
11354
- return sleep(delay).then(function() {
11377
+ return sleep(delay2).then(function() {
11355
11378
  return pTimeout(cb(), 1e3);
11356
11379
  }).catch(function(err) {
11357
11380
  ctx === null || ctx === void 0 ? void 0 : ctx.log("warn", "Callback Error", { error: err });
@@ -11557,8 +11580,8 @@ var init_priority_queue = __esm({
11557
11580
  }
11558
11581
  return this.scheduleItem(item, timeout);
11559
11582
  };
11560
- PriorityQueue2.prototype.pushWithDelay = function(item, delay) {
11561
- return this.scheduleItem(item, delay);
11583
+ PriorityQueue2.prototype.pushWithDelay = function(item, delay2) {
11584
+ return this.scheduleItem(item, delay2);
11562
11585
  };
11563
11586
  PriorityQueue2.prototype.scheduleItem = function(item, timeout) {
11564
11587
  var _this = this;
@@ -15901,6 +15924,50 @@ function isProviderRetriable(error) {
15901
15924
  return true;
15902
15925
  }
15903
15926
 
15927
+ // src/webhook-delivery.ts
15928
+ function delay(ms) {
15929
+ return new Promise((resolve) => setTimeout(resolve, ms));
15930
+ }
15931
+ async function postJsonWithRetry(client, url, payload, options = {}) {
15932
+ const maxRetries = options.maxRetries ?? 3;
15933
+ const retryDelayMs = options.retryDelayMs ?? 1e3;
15934
+ const method = options.method ?? "POST";
15935
+ const label = options.label ?? "Webhook";
15936
+ let lastError;
15937
+ for (let attempt2 = 1; attempt2 <= maxRetries; attempt2++) {
15938
+ const response = await client.request(url, {
15939
+ method,
15940
+ headers: {
15941
+ "Content-Type": "application/json",
15942
+ ...options.headers
15943
+ },
15944
+ body: JSON.stringify(payload)
15945
+ });
15946
+ if (response.ok) return;
15947
+ if (response.kind === "network") {
15948
+ lastError = new SubscriberProviderError({
15949
+ message: response.timedOut ? `${label} request timed out` : `${label} network request failed`,
15950
+ code: "NETWORK",
15951
+ retriable: true,
15952
+ details: response.cause,
15953
+ cause: response.cause
15954
+ });
15955
+ } else {
15956
+ const mapped = mapHttpStatus(response.status);
15957
+ lastError = new SubscriberProviderError({
15958
+ message: `${label} returned ${response.status}: ${response.statusText}`,
15959
+ code: mapped.code,
15960
+ retriable: mapped.retriable,
15961
+ details: response.body
15962
+ });
15963
+ }
15964
+ const canRetry = isProviderRetriable(lastError) && attempt2 < maxRetries;
15965
+ if (!canRetry) break;
15966
+ await delay(retryDelayMs * 2 ** (attempt2 - 1));
15967
+ }
15968
+ throw lastError ?? new Error(`${label} send failed`);
15969
+ }
15970
+
15904
15971
  // src/webhook.ts
15905
15972
  var WebhookSubscriber = class {
15906
15973
  name = "WebhookSubscriber";
@@ -15914,52 +15981,15 @@ var WebhookSubscriber = class {
15914
15981
  this.enabled = config.enabled ?? true;
15915
15982
  this.httpClient = createHttpClient({ timeoutMs: config.timeoutMs });
15916
15983
  }
15917
- async delay(ms) {
15918
- await new Promise((resolve) => setTimeout(resolve, ms));
15919
- }
15920
15984
  async send(payload) {
15921
15985
  if (!this.enabled) return;
15922
- const maxRetries = this.config.maxRetries ?? 3;
15923
- const retryDelayMs = this.config.retryDelayMs ?? 1e3;
15924
- const method = this.config.method ?? "POST";
15925
- let lastError;
15926
- for (let attempt2 = 1; attempt2 <= maxRetries; attempt2++) {
15927
- const response = await this.httpClient.request(
15928
- this.config.url,
15929
- {
15930
- method,
15931
- headers: {
15932
- "Content-Type": "application/json",
15933
- ...this.config.headers
15934
- },
15935
- body: JSON.stringify(payload),
15936
- timeoutMs: this.config.timeoutMs
15937
- }
15938
- );
15939
- if (response.ok) return;
15940
- if (response.kind === "network") {
15941
- lastError = new SubscriberProviderError({
15942
- message: response.timedOut ? "Webhook request timed out" : "Webhook network request failed",
15943
- code: "NETWORK",
15944
- retriable: true,
15945
- details: response.cause,
15946
- cause: response.cause
15947
- });
15948
- } else {
15949
- const mapped = mapHttpStatus(response.status);
15950
- lastError = new SubscriberProviderError({
15951
- message: `Webhook returned ${response.status}: ${response.statusText}`,
15952
- code: mapped.code,
15953
- retriable: mapped.retriable,
15954
- details: response.body
15955
- });
15956
- }
15957
- const canRetry = isProviderRetriable(lastError) && attempt2 < maxRetries;
15958
- if (!canRetry) break;
15959
- const backoffMs = retryDelayMs * 2 ** (attempt2 - 1);
15960
- await this.delay(backoffMs);
15961
- }
15962
- throw lastError ?? new Error("Webhook send failed");
15986
+ await postJsonWithRetry(this.httpClient, this.config.url, payload, {
15987
+ method: this.config.method,
15988
+ headers: this.config.headers,
15989
+ maxRetries: this.config.maxRetries,
15990
+ retryDelayMs: this.config.retryDelayMs,
15991
+ label: "Webhook"
15992
+ });
15963
15993
  }
15964
15994
  async trackEvent(name, attributes, options) {
15965
15995
  const request = this.send({