autotel-subscribers 16.0.1 → 18.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.
@@ -115,11 +115,11 @@ function normalizeWindowsPath(path) {
115
115
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
116
116
  }
117
117
  var init_module_node = __esm({
118
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
118
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
119
119
  }
120
120
  });
121
121
 
122
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
122
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs
123
123
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
124
124
  return {
125
125
  key,
@@ -136,7 +136,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
136
136
  }
137
137
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
138
138
  var init_featureFlagUtils = __esm({
139
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
139
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
140
140
  normalizeFlagsResponse = (flagsResponse) => {
141
141
  if ("flags" in flagsResponse) {
142
142
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -194,10 +194,10 @@ var init_featureFlagUtils = __esm({
194
194
  }
195
195
  });
196
196
 
197
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
197
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
198
198
  var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
199
199
  var init_uuidv7 = __esm({
200
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
200
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
201
201
  DIGITS = "0123456789abcdef";
202
202
  UUID = class _UUID {
203
203
  constructor(bytes) {
@@ -358,10 +358,10 @@ var init_uuidv7 = __esm({
358
358
  }
359
359
  });
360
360
 
361
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
361
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs
362
362
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
363
363
  var init_bot_detection = __esm({
364
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
364
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
365
365
  DEFAULT_BLOCKED_UA_STRS = [
366
366
  "amazonbot",
367
367
  "amazonproductbot",
@@ -452,14 +452,16 @@ var init_bot_detection = __esm({
452
452
  }
453
453
  });
454
454
 
455
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs
456
- var types_PostHogPersistedProperty;
455
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/types.mjs
456
+ var types_PostHogPersistedProperty, FeatureFlagError;
457
457
  var init_types = __esm({
458
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs"() {
458
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/types.mjs"() {
459
459
  types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
460
460
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
461
461
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
462
462
  PostHogPersistedProperty["Props"] = "props";
463
+ PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
464
+ PostHogPersistedProperty["PersonMode"] = "person_mode";
463
465
  PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
464
466
  PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
465
467
  PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
@@ -484,16 +486,25 @@ var init_types = __esm({
484
486
  PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
485
487
  return PostHogPersistedProperty;
486
488
  })({});
489
+ FeatureFlagError = {
490
+ ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
491
+ FLAG_MISSING: "flag_missing",
492
+ QUOTA_LIMITED: "quota_limited",
493
+ TIMEOUT: "timeout",
494
+ CONNECTION_ERROR: "connection_error",
495
+ UNKNOWN_ERROR: "unknown_error",
496
+ apiError: (status) => `api_error_${status}`
497
+ };
487
498
  }
488
499
  });
489
500
 
490
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
501
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/string-utils.mjs
491
502
  var init_string_utils = __esm({
492
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
503
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
493
504
  }
494
505
  });
495
506
 
496
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
507
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/type-utils.mjs
497
508
  function isPrimitive(value) {
498
509
  return null === value || "object" != typeof value;
499
510
  }
@@ -518,7 +529,7 @@ function isInstanceOf(candidate, base) {
518
529
  }
519
530
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
520
531
  var init_type_utils = __esm({
521
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
532
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
522
533
  init_types();
523
534
  init_string_utils();
524
535
  nativeIsArray = Array.isArray;
@@ -532,12 +543,12 @@ var init_type_utils = __esm({
532
543
  isUndefined = (x) => void 0 === x;
533
544
  isString = (x) => "[object String]" == type_utils_toString.call(x);
534
545
  isEmptyString = (x) => isString(x) && 0 === x.trim().length;
535
- isNumber = (x) => "[object Number]" == type_utils_toString.call(x);
546
+ isNumber = (x) => "[object Number]" == type_utils_toString.call(x) && x === x;
536
547
  isPlainError = (x) => x instanceof Error;
537
548
  }
538
549
  });
539
550
 
540
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
551
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/number-utils.mjs
541
552
  function clampToRange(value, min, max, logger, fallbackValue) {
542
553
  if (min > max) {
543
554
  logger.warn("min cannot be greater than max.");
@@ -555,15 +566,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
555
566
  return clampToRange(max, min, max, logger);
556
567
  }
557
568
  var init_number_utils = __esm({
558
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
569
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
559
570
  init_type_utils();
560
571
  }
561
572
  });
562
573
 
563
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
574
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
564
575
  var ONE_DAY_IN_MS, BucketedRateLimiter;
565
576
  var init_bucketed_rate_limiter = __esm({
566
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
577
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
567
578
  init_number_utils();
568
579
  ONE_DAY_IN_MS = 864e5;
569
580
  BucketedRateLimiter = class {
@@ -607,10 +618,10 @@ var init_bucketed_rate_limiter = __esm({
607
618
  }
608
619
  });
609
620
 
610
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
621
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs
611
622
  var PromiseQueue;
612
623
  var init_promise_queue = __esm({
613
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
624
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
614
625
  init_uuidv7();
615
626
  PromiseQueue = class {
616
627
  add(promise) {
@@ -641,7 +652,7 @@ var init_promise_queue = __esm({
641
652
  }
642
653
  });
643
654
 
644
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs
655
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/logger.mjs
645
656
  function createConsole(consoleLike = console) {
646
657
  const lockedMethods = {
647
658
  log: consoleLike.log.bind(consoleLike),
@@ -656,7 +667,7 @@ function createLogger(prefix, maybeCall = passThrough) {
656
667
  }
657
668
  var _createLogger, passThrough;
658
669
  var init_logger = __esm({
659
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
670
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/logger.mjs"() {
660
671
  _createLogger = (prefix, maybeCall, consoleLike) => {
661
672
  function _log(level, ...args) {
662
673
  maybeCall(() => {
@@ -685,10 +696,10 @@ var init_logger = __esm({
685
696
  }
686
697
  });
687
698
 
688
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
699
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
689
700
  var MOBILE, TABLET, GENERIC;
690
701
  var init_user_agent_utils = __esm({
691
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
702
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
692
703
  init_string_utils();
693
704
  init_type_utils();
694
705
  MOBILE = "Mobile";
@@ -699,7 +710,7 @@ var init_user_agent_utils = __esm({
699
710
  }
700
711
  });
701
712
 
702
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs
713
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/index.mjs
703
714
  function assert(truthyValue, message2) {
704
715
  if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
705
716
  }
@@ -743,7 +754,7 @@ function allSettled(promises) {
743
754
  }
744
755
  var STRING_FORMAT, isError;
745
756
  var init_utils = __esm({
746
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
757
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/index.mjs"() {
747
758
  init_bot_detection();
748
759
  init_bucketed_rate_limiter();
749
760
  init_number_utils();
@@ -757,10 +768,10 @@ var init_utils = __esm({
757
768
  }
758
769
  });
759
770
 
760
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs
771
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/eventemitter.mjs
761
772
  var SimpleEventEmitter;
762
773
  var init_eventemitter = __esm({
763
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
774
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/eventemitter.mjs"() {
764
775
  SimpleEventEmitter = class {
765
776
  constructor() {
766
777
  this.events = {};
@@ -781,7 +792,7 @@ var init_eventemitter = __esm({
781
792
  }
782
793
  });
783
794
 
784
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs
795
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/gzip.mjs
785
796
  function isGzipSupported() {
786
797
  return "CompressionStream" in globalThis;
787
798
  }
@@ -800,11 +811,11 @@ async function gzipCompress(input, isDebug = true) {
800
811
  }
801
812
  }
802
813
  var init_gzip = __esm({
803
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs"() {
814
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/gzip.mjs"() {
804
815
  }
805
816
  });
806
817
 
807
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
818
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
808
819
  async function logFlushError(err) {
809
820
  if (err instanceof PostHogFetchHttpError) {
810
821
  let text = "";
@@ -824,7 +835,7 @@ function isPostHogFetchContentTooLargeError(err) {
824
835
  }
825
836
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
826
837
  var init_posthog_core_stateless = __esm({
827
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
838
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
828
839
  init_eventemitter();
829
840
  init_featureFlagUtils();
830
841
  init_gzip();
@@ -880,10 +891,11 @@ var init_posthog_core_stateless = __esm({
880
891
  this.disableGeoip = options.disableGeoip ?? true;
881
892
  this.disabled = options.disabled ?? false;
882
893
  this.historicalMigration = options?.historicalMigration ?? false;
883
- this.evaluationEnvironments = options?.evaluationEnvironments;
884
894
  this._initPromise = Promise.resolve();
885
895
  this._isInitialized = true;
886
896
  this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
897
+ this.evaluationContexts = options?.evaluationContexts ?? options?.evaluationEnvironments;
898
+ if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
887
899
  this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
888
900
  }
889
901
  logMsgIfDebug(fn) {
@@ -1058,7 +1070,7 @@ var init_posthog_core_stateless = __esm({
1058
1070
  group_properties: groupProperties,
1059
1071
  ...extraPayload
1060
1072
  };
1061
- if (this.evaluationEnvironments && this.evaluationEnvironments.length > 0) requestData.evaluation_environments = this.evaluationEnvironments;
1073
+ if (this.evaluationContexts && this.evaluationContexts.length > 0) requestData.evaluation_contexts = this.evaluationContexts;
1062
1074
  const fetchOptions = {
1063
1075
  method: "POST",
1064
1076
  headers: {
@@ -1070,10 +1082,35 @@ var init_posthog_core_stateless = __esm({
1070
1082
  this._logger.info("Flags URL", url);
1071
1083
  return this.fetchWithRetry(url, fetchOptions, {
1072
1084
  retryCount: 0
1073
- }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => normalizeFlagsResponse(response)).catch((error) => {
1085
+ }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => ({
1086
+ success: true,
1087
+ response: normalizeFlagsResponse(response)
1088
+ })).catch((error) => {
1074
1089
  this._events.emit("error", error);
1090
+ return {
1091
+ success: false,
1092
+ error: this.categorizeRequestError(error)
1093
+ };
1075
1094
  });
1076
1095
  }
1096
+ categorizeRequestError(error) {
1097
+ if (error instanceof PostHogFetchHttpError) return {
1098
+ type: "api_error",
1099
+ statusCode: error.status
1100
+ };
1101
+ if (error instanceof PostHogFetchNetworkError) {
1102
+ const cause = error.error;
1103
+ if (cause instanceof Error && ("AbortError" === cause.name || "TimeoutError" === cause.name)) return {
1104
+ type: "timeout"
1105
+ };
1106
+ return {
1107
+ type: "connection_error"
1108
+ };
1109
+ }
1110
+ return {
1111
+ type: "unknown_error"
1112
+ };
1113
+ }
1077
1114
  async getFeatureFlagStateless(key, distinctId, groups = {}, personProperties = {}, groupProperties = {}, disableGeoip) {
1078
1115
  await this._initPromise;
1079
1116
  const flagDetailResponse = await this.getFeatureFlagDetailStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
@@ -1140,8 +1177,9 @@ var init_posthog_core_stateless = __esm({
1140
1177
  const extraPayload = {};
1141
1178
  if (disableGeoip ?? this.disableGeoip) extraPayload["geoip_disable"] = true;
1142
1179
  if (flagKeysToEvaluate) extraPayload["flag_keys_to_evaluate"] = flagKeysToEvaluate;
1143
- const flagsResponse = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1144
- if (void 0 === flagsResponse) return;
1180
+ const result = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1181
+ if (!result.success) return;
1182
+ const flagsResponse = result.response;
1145
1183
  if (flagsResponse.errorsWhileComputingFlags) console.error("[FEATURE FLAGS] Error while computing feature flags, some flags may be missing or incorrect. Learn more at https://posthog.com/docs/feature-flags/best-practices");
1146
1184
  if (flagsResponse.quotaLimited?.includes("feature_flags")) {
1147
1185
  console.warn("[FEATURE FLAGS] Feature flags quota limit exceeded - feature flags unavailable. Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts");
@@ -1208,10 +1246,15 @@ var init_posthog_core_stateless = __esm({
1208
1246
  this.setPersistedProperty(types_PostHogPersistedProperty.Props, this.props);
1209
1247
  });
1210
1248
  }
1249
+ processBeforeEnqueue(message2) {
1250
+ return message2;
1251
+ }
1211
1252
  enqueue(type, _message, options) {
1212
1253
  this.wrap(() => {
1213
1254
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1214
- const message2 = this.prepareMessage(type, _message, options);
1255
+ let message2 = this.prepareMessage(type, _message, options);
1256
+ message2 = this.processBeforeEnqueue(message2);
1257
+ if (null === message2) return;
1215
1258
  const queue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
1216
1259
  if (queue.length >= this.maxQueueSize) {
1217
1260
  queue.shift();
@@ -1230,10 +1273,13 @@ var init_posthog_core_stateless = __esm({
1230
1273
  if (this.disabled) return void this._logger.warn("The client is disabled");
1231
1274
  if (!this._isInitialized) await this._initPromise;
1232
1275
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1276
+ let message2 = this.prepareMessage(type, _message, options);
1277
+ message2 = this.processBeforeEnqueue(message2);
1278
+ if (null === message2) return;
1233
1279
  const data = {
1234
1280
  api_key: this.apiKey,
1235
1281
  batch: [
1236
- this.prepareMessage(type, _message, options)
1282
+ message2
1237
1283
  ],
1238
1284
  sent_at: currentISOTime()
1239
1285
  };
@@ -1442,9 +1488,9 @@ var init_posthog_core_stateless = __esm({
1442
1488
  }
1443
1489
  });
1444
1490
 
1445
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs
1491
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core.mjs
1446
1492
  var init_posthog_core = __esm({
1447
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1493
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1448
1494
  init_featureFlagUtils();
1449
1495
  init_types();
1450
1496
  init_posthog_core_stateless();
@@ -1453,7 +1499,7 @@ var init_posthog_core = __esm({
1453
1499
  }
1454
1500
  });
1455
1501
 
1456
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1502
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1457
1503
  function getFilenameToChunkIdMap(stackParser) {
1458
1504
  const chunkIdMap = globalThis._posthogChunkIds;
1459
1505
  if (!chunkIdMap) return;
@@ -1486,14 +1532,14 @@ function getFilenameToChunkIdMap(stackParser) {
1486
1532
  }
1487
1533
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1488
1534
  var init_chunk_ids = __esm({
1489
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1535
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1490
1536
  }
1491
1537
  });
1492
1538
 
1493
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1539
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1494
1540
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1495
1541
  var init_error_properties_builder = __esm({
1496
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1542
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1497
1543
  init_utils();
1498
1544
  init_chunk_ids();
1499
1545
  MAX_CAUSE_RECURSION = 4;
@@ -1607,7 +1653,7 @@ var init_error_properties_builder = __esm({
1607
1653
  }
1608
1654
  });
1609
1655
 
1610
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1656
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1611
1657
  function createFrame(platform, filename, func, lineno, colno) {
1612
1658
  const frame = {
1613
1659
  platform,
@@ -1621,16 +1667,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1621
1667
  }
1622
1668
  var UNKNOWN_FUNCTION;
1623
1669
  var init_base = __esm({
1624
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1670
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1625
1671
  init_utils();
1626
1672
  UNKNOWN_FUNCTION = "?";
1627
1673
  }
1628
1674
  });
1629
1675
 
1630
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1676
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1631
1677
  var extractSafariExtensionDetails;
1632
1678
  var init_safari = __esm({
1633
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1679
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1634
1680
  init_base();
1635
1681
  extractSafariExtensionDetails = (func, filename) => {
1636
1682
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1646,10 +1692,10 @@ var init_safari = __esm({
1646
1692
  }
1647
1693
  });
1648
1694
 
1649
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1695
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1650
1696
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1651
1697
  var init_chrome = __esm({
1652
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1698
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1653
1699
  init_base();
1654
1700
  init_safari();
1655
1701
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1679,10 +1725,10 @@ var init_chrome = __esm({
1679
1725
  }
1680
1726
  });
1681
1727
 
1682
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1728
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1683
1729
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1684
1730
  var init_gecko = __esm({
1685
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1731
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1686
1732
  init_base();
1687
1733
  init_safari();
1688
1734
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1709,10 +1755,10 @@ var init_gecko = __esm({
1709
1755
  }
1710
1756
  });
1711
1757
 
1712
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1758
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1713
1759
  var winjsRegex, winjsStackLineParser;
1714
1760
  var init_winjs = __esm({
1715
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1761
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1716
1762
  init_base();
1717
1763
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1718
1764
  winjsStackLineParser = (line, platform) => {
@@ -1722,10 +1768,10 @@ var init_winjs = __esm({
1722
1768
  }
1723
1769
  });
1724
1770
 
1725
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1771
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1726
1772
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1727
1773
  var init_opera = __esm({
1728
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1774
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1729
1775
  init_base();
1730
1776
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1731
1777
  opera10StackLineParser = (line, platform) => {
@@ -1740,7 +1786,7 @@ var init_opera = __esm({
1740
1786
  }
1741
1787
  });
1742
1788
 
1743
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1789
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1744
1790
  function filenameIsInApp(filename, isNative = false) {
1745
1791
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1746
1792
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1750,7 +1796,7 @@ function _parseIntOrUndefined(input) {
1750
1796
  }
1751
1797
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1752
1798
  var init_node = __esm({
1753
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1799
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1754
1800
  init_base();
1755
1801
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1756
1802
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1811,7 +1857,7 @@ var init_node = __esm({
1811
1857
  }
1812
1858
  });
1813
1859
 
1814
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1860
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1815
1861
  function reverseAndStripFrames(stack) {
1816
1862
  if (!stack.length) return [];
1817
1863
  const localStack = Array.from(stack);
@@ -1852,7 +1898,7 @@ function createStackParser(platform, ...parsers) {
1852
1898
  }
1853
1899
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1854
1900
  var init_parsers = __esm({
1855
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1901
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1856
1902
  init_base();
1857
1903
  init_chrome();
1858
1904
  init_gecko();
@@ -1864,10 +1910,10 @@ var init_parsers = __esm({
1864
1910
  }
1865
1911
  });
1866
1912
 
1867
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1913
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1868
1914
  var DOMExceptionCoercer;
1869
1915
  var init_dom_exception_coercer = __esm({
1870
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1916
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1871
1917
  init_utils();
1872
1918
  DOMExceptionCoercer = class {
1873
1919
  match(err) {
@@ -1901,10 +1947,10 @@ var init_dom_exception_coercer = __esm({
1901
1947
  }
1902
1948
  });
1903
1949
 
1904
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1950
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1905
1951
  var ErrorCoercer;
1906
1952
  var init_error_coercer = __esm({
1907
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1953
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1908
1954
  init_utils();
1909
1955
  ErrorCoercer = class {
1910
1956
  match(err) {
@@ -1934,10 +1980,10 @@ var init_error_coercer = __esm({
1934
1980
  }
1935
1981
  });
1936
1982
 
1937
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1983
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1938
1984
  var ErrorEventCoercer;
1939
1985
  var init_error_event_coercer = __esm({
1940
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1986
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1941
1987
  init_utils();
1942
1988
  ErrorEventCoercer = class {
1943
1989
  constructor() {
@@ -1959,10 +2005,10 @@ var init_error_event_coercer = __esm({
1959
2005
  }
1960
2006
  });
1961
2007
 
1962
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
2008
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1963
2009
  var ERROR_TYPES_PATTERN, StringCoercer;
1964
2010
  var init_string_coercer = __esm({
1965
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
2011
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1966
2012
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
1967
2013
  StringCoercer = class {
1968
2014
  match(input) {
@@ -1994,10 +2040,10 @@ var init_string_coercer = __esm({
1994
2040
  }
1995
2041
  });
1996
2042
 
1997
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
2043
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/types.mjs
1998
2044
  var severityLevels;
1999
2045
  var init_types2 = __esm({
2000
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2046
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2001
2047
  severityLevels = [
2002
2048
  "fatal",
2003
2049
  "error",
@@ -2009,7 +2055,7 @@ var init_types2 = __esm({
2009
2055
  }
2010
2056
  });
2011
2057
 
2012
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2058
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2013
2059
  function extractExceptionKeysForMessage(err, maxLength = 40) {
2014
2060
  const keys = Object.keys(err);
2015
2061
  keys.sort();
@@ -2024,14 +2070,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
2024
2070
  return "";
2025
2071
  }
2026
2072
  var init_utils2 = __esm({
2027
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2073
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2028
2074
  }
2029
2075
  });
2030
2076
 
2031
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2077
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2032
2078
  var ObjectCoercer;
2033
2079
  var init_object_coercer = __esm({
2034
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2080
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2035
2081
  init_utils();
2036
2082
  init_types2();
2037
2083
  init_utils2();
@@ -2085,10 +2131,10 @@ var init_object_coercer = __esm({
2085
2131
  }
2086
2132
  });
2087
2133
 
2088
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2134
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2089
2135
  var EventCoercer;
2090
2136
  var init_event_coercer = __esm({
2091
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2137
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2092
2138
  init_utils();
2093
2139
  init_utils2();
2094
2140
  EventCoercer = class {
@@ -2108,10 +2154,10 @@ var init_event_coercer = __esm({
2108
2154
  }
2109
2155
  });
2110
2156
 
2111
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2157
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2112
2158
  var PrimitiveCoercer;
2113
2159
  var init_primitive_coercer = __esm({
2114
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2160
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2115
2161
  init_utils();
2116
2162
  PrimitiveCoercer = class {
2117
2163
  match(candidate) {
@@ -2129,10 +2175,10 @@ var init_primitive_coercer = __esm({
2129
2175
  }
2130
2176
  });
2131
2177
 
2132
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2178
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2133
2179
  var PromiseRejectionEventCoercer;
2134
2180
  var init_promise_rejection_event = __esm({
2135
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2181
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2136
2182
  init_utils();
2137
2183
  PromiseRejectionEventCoercer = class {
2138
2184
  match(err) {
@@ -2161,9 +2207,9 @@ var init_promise_rejection_event = __esm({
2161
2207
  }
2162
2208
  });
2163
2209
 
2164
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2210
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2165
2211
  var init_coercers = __esm({
2166
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2212
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2167
2213
  init_dom_exception_coercer();
2168
2214
  init_error_coercer();
2169
2215
  init_error_event_coercer();
@@ -2175,10 +2221,10 @@ var init_coercers = __esm({
2175
2221
  }
2176
2222
  });
2177
2223
 
2178
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2224
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2179
2225
  var ReduceableCache;
2180
2226
  var init_utils3 = __esm({
2181
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2227
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2182
2228
  ReduceableCache = class {
2183
2229
  constructor(_maxSize) {
2184
2230
  this._maxSize = _maxSize;
@@ -2204,7 +2250,7 @@ var init_utils3 = __esm({
2204
2250
  }
2205
2251
  });
2206
2252
 
2207
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
2253
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/index.mjs
2208
2254
  var error_tracking_exports = {};
2209
2255
  __export(error_tracking_exports, {
2210
2256
  DOMExceptionCoercer: () => DOMExceptionCoercer,
@@ -2228,7 +2274,7 @@ __export(error_tracking_exports, {
2228
2274
  winjsStackLineParser: () => winjsStackLineParser
2229
2275
  });
2230
2276
  var init_error_tracking = __esm({
2231
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2277
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2232
2278
  init_error_properties_builder();
2233
2279
  init_parsers();
2234
2280
  init_coercers();
@@ -2236,9 +2282,9 @@ var init_error_tracking = __esm({
2236
2282
  }
2237
2283
  });
2238
2284
 
2239
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs
2285
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/index.mjs
2240
2286
  var init_dist = __esm({
2241
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs"() {
2287
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/index.mjs"() {
2242
2288
  init_featureFlagUtils();
2243
2289
  init_uuidv7();
2244
2290
  init_utils();
@@ -2429,7 +2475,7 @@ function snipLine(line, colno) {
2429
2475
  }
2430
2476
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2431
2477
  var init_context_lines_node = __esm({
2432
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2478
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2433
2479
  init_dist();
2434
2480
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2435
2481
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2439,7 +2485,7 @@ var init_context_lines_node = __esm({
2439
2485
  }
2440
2486
  });
2441
2487
 
2442
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2488
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2443
2489
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
2444
2490
  let calledFatalError = false;
2445
2491
  return Object.assign((error) => {
@@ -2471,14 +2517,14 @@ function addUnhandledRejectionListener(captureFn) {
2471
2517
  }));
2472
2518
  }
2473
2519
  var init_autocapture = __esm({
2474
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2520
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2475
2521
  }
2476
2522
  });
2477
2523
 
2478
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2524
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2479
2525
  var SHUTDOWN_TIMEOUT, ErrorTracking;
2480
2526
  var init_error_tracking2 = __esm({
2481
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2527
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2482
2528
  init_autocapture();
2483
2529
  init_dist();
2484
2530
  SHUTDOWN_TIMEOUT = 2e3;
@@ -2549,19 +2595,19 @@ var init_error_tracking2 = __esm({
2549
2595
  }
2550
2596
  });
2551
2597
 
2552
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs
2598
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/version.mjs
2553
2599
  var version;
2554
2600
  var init_version = __esm({
2555
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs"() {
2556
- version = "5.21.0";
2601
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/version.mjs"() {
2602
+ version = "5.24.2";
2557
2603
  }
2558
2604
  });
2559
2605
 
2560
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs
2561
- var FeatureFlagError;
2606
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/types.mjs
2607
+ var FeatureFlagError2;
2562
2608
  var init_types3 = __esm({
2563
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs"() {
2564
- FeatureFlagError = {
2609
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/types.mjs"() {
2610
+ FeatureFlagError2 = {
2565
2611
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2566
2612
  FLAG_MISSING: "flag_missing",
2567
2613
  QUOTA_LIMITED: "quota_limited",
@@ -2570,7 +2616,7 @@ var init_types3 = __esm({
2570
2616
  }
2571
2617
  });
2572
2618
 
2573
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2619
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2574
2620
  async function hashSHA1(text) {
2575
2621
  const subtle = globalThis.crypto?.subtle;
2576
2622
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -2579,11 +2625,11 @@ async function hashSHA1(text) {
2579
2625
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
2580
2626
  }
2581
2627
  var init_crypto = __esm({
2582
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2628
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2583
2629
  }
2584
2630
  });
2585
2631
 
2586
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2632
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2587
2633
  async function _hash(key, distinctId, salt = "") {
2588
2634
  const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
2589
2635
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -2751,7 +2797,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
2751
2797
  }
2752
2798
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
2753
2799
  var init_feature_flags = __esm({
2754
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2800
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2755
2801
  init_dist();
2756
2802
  init_crypto();
2757
2803
  SIXTY_SECONDS = 6e4;
@@ -3164,10 +3210,10 @@ var init_feature_flags = __esm({
3164
3210
  }
3165
3211
  });
3166
3212
 
3167
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs
3213
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/storage-memory.mjs
3168
3214
  var PostHogMemoryStorage;
3169
3215
  var init_storage_memory = __esm({
3170
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs"() {
3216
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3171
3217
  PostHogMemoryStorage = class {
3172
3218
  getProperty(key) {
3173
3219
  return this._memoryStorage[key];
@@ -3182,10 +3228,10 @@ var init_storage_memory = __esm({
3182
3228
  }
3183
3229
  });
3184
3230
 
3185
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs
3231
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/client.mjs
3186
3232
  var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
3187
3233
  var init_client = __esm({
3188
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs"() {
3234
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/client.mjs"() {
3189
3235
  init_version();
3190
3236
  init_dist();
3191
3237
  init_types3();
@@ -3325,94 +3371,148 @@ var init_client = __esm({
3325
3371
  });
3326
3372
  });
3327
3373
  }
3328
- async getFeatureFlag(key, distinctId, options) {
3329
- if (void 0 !== this._flagOverrides && key in this._flagOverrides) return this._flagOverrides[key];
3330
- const { groups, disableGeoip } = options || {};
3331
- let { onlyEvaluateLocally, sendFeatureFlagEvents, personProperties, groupProperties } = options || {};
3374
+ async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
3375
+ const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
3376
+ if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
3377
+ const overrideValue = this._flagOverrides[key];
3378
+ if (void 0 === overrideValue) return;
3379
+ const overridePayload = this._payloadOverrides?.[key];
3380
+ return {
3381
+ key,
3382
+ enabled: false !== overrideValue,
3383
+ variant: "string" == typeof overrideValue ? overrideValue : void 0,
3384
+ payload: overridePayload
3385
+ };
3386
+ }
3387
+ const { groups, disableGeoip } = options;
3388
+ let { onlyEvaluateLocally, personProperties, groupProperties } = options;
3332
3389
  const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3333
3390
  personProperties = adjustedProperties.allPersonProperties;
3334
3391
  groupProperties = adjustedProperties.allGroupProperties;
3335
3392
  if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3336
- if (void 0 == sendFeatureFlagEvents) sendFeatureFlagEvents = this.options.sendFeatureFlagEvent ?? true;
3337
- let response = await this.featureFlagsPoller?.getFeatureFlag(key, distinctId, groups, personProperties, groupProperties);
3338
- const flagWasLocallyEvaluated = void 0 !== response;
3393
+ let result;
3394
+ let flagWasLocallyEvaluated = false;
3339
3395
  let requestId;
3340
3396
  let evaluatedAt;
3341
- let flagDetail;
3342
3397
  let featureFlagError;
3398
+ let flagId;
3399
+ let flagVersion;
3400
+ let flagReason;
3401
+ const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3402
+ if (localEvaluationEnabled) {
3403
+ await this.featureFlagsPoller?.loadFeatureFlags();
3404
+ const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3405
+ if (flag) try {
3406
+ const localResult = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3407
+ if (localResult) {
3408
+ flagWasLocallyEvaluated = true;
3409
+ const value = localResult.value;
3410
+ flagId = flag.id;
3411
+ flagReason = "Evaluated locally";
3412
+ result = {
3413
+ key,
3414
+ enabled: false !== value,
3415
+ variant: "string" == typeof value ? value : void 0,
3416
+ payload: localResult.payload ?? void 0
3417
+ };
3418
+ }
3419
+ } catch (e) {
3420
+ if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${key}: ${e.message}`);
3421
+ else throw e;
3422
+ }
3423
+ }
3343
3424
  if (!flagWasLocallyEvaluated && !onlyEvaluateLocally) {
3344
3425
  const flagsResponse = await super.getFeatureFlagDetailsStateless(distinctId, groups, personProperties, groupProperties, disableGeoip, [
3345
3426
  key
3346
3427
  ]);
3347
- if (void 0 === flagsResponse) featureFlagError = FeatureFlagError.UNKNOWN_ERROR;
3428
+ if (void 0 === flagsResponse) featureFlagError = FeatureFlagError2.UNKNOWN_ERROR;
3348
3429
  else {
3349
3430
  requestId = flagsResponse.requestId;
3350
3431
  evaluatedAt = flagsResponse.evaluatedAt;
3351
3432
  const errors = [];
3352
- if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError.ERRORS_WHILE_COMPUTING);
3353
- if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError.QUOTA_LIMITED);
3354
- flagDetail = flagsResponse.flags[key];
3355
- if (void 0 === flagDetail) errors.push(FeatureFlagError.FLAG_MISSING);
3433
+ if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError2.ERRORS_WHILE_COMPUTING);
3434
+ if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError2.QUOTA_LIMITED);
3435
+ const flagDetail = flagsResponse.flags[key];
3436
+ if (void 0 === flagDetail) errors.push(FeatureFlagError2.FLAG_MISSING);
3437
+ else {
3438
+ flagId = flagDetail.metadata?.id;
3439
+ flagVersion = flagDetail.metadata?.version;
3440
+ flagReason = flagDetail.reason?.description ?? flagDetail.reason?.code;
3441
+ let parsedPayload;
3442
+ if (flagDetail.metadata?.payload !== void 0) try {
3443
+ parsedPayload = JSON.parse(flagDetail.metadata.payload);
3444
+ } catch {
3445
+ parsedPayload = flagDetail.metadata.payload;
3446
+ }
3447
+ result = {
3448
+ key,
3449
+ enabled: flagDetail.enabled,
3450
+ variant: flagDetail.variant,
3451
+ payload: parsedPayload
3452
+ };
3453
+ }
3356
3454
  if (errors.length > 0) featureFlagError = errors.join(",");
3357
- response = getFeatureFlagValue(flagDetail);
3358
3455
  }
3359
3456
  }
3360
- const featureFlagReportedKey = `${key}_${response}`;
3361
- if (sendFeatureFlagEvents && (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey))) {
3362
- if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3363
- if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3364
- else this.distinctIdHasSentFlagCalls[distinctId] = [
3365
- featureFlagReportedKey
3366
- ];
3367
- const properties = {
3368
- $feature_flag: key,
3369
- $feature_flag_response: response,
3370
- $feature_flag_id: flagDetail?.metadata?.id,
3371
- $feature_flag_version: flagDetail?.metadata?.version,
3372
- $feature_flag_reason: flagDetail?.reason?.description ?? flagDetail?.reason?.code,
3373
- locally_evaluated: flagWasLocallyEvaluated,
3374
- [`$feature/${key}`]: response,
3375
- $feature_flag_request_id: requestId,
3376
- $feature_flag_evaluated_at: evaluatedAt
3377
- };
3378
- if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3379
- this.capture({
3380
- distinctId,
3381
- event: "$feature_flag_called",
3382
- properties,
3383
- groups,
3384
- disableGeoip
3385
- });
3457
+ if (sendFeatureFlagEvents) {
3458
+ const response = void 0 === result ? void 0 : false === result.enabled ? false : result.variant ?? true;
3459
+ const featureFlagReportedKey = `${key}_${response}`;
3460
+ if (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey)) {
3461
+ if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3462
+ if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3463
+ else this.distinctIdHasSentFlagCalls[distinctId] = [
3464
+ featureFlagReportedKey
3465
+ ];
3466
+ const properties = {
3467
+ $feature_flag: key,
3468
+ $feature_flag_response: response,
3469
+ $feature_flag_id: flagId,
3470
+ $feature_flag_version: flagVersion,
3471
+ $feature_flag_reason: flagReason,
3472
+ locally_evaluated: flagWasLocallyEvaluated,
3473
+ [`$feature/${key}`]: response,
3474
+ $feature_flag_request_id: requestId,
3475
+ $feature_flag_evaluated_at: evaluatedAt
3476
+ };
3477
+ if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3478
+ this.capture({
3479
+ distinctId,
3480
+ event: "$feature_flag_called",
3481
+ properties,
3482
+ groups,
3483
+ disableGeoip
3484
+ });
3485
+ }
3386
3486
  }
3387
- return response;
3487
+ if (void 0 !== result && void 0 !== this._payloadOverrides && key in this._payloadOverrides) result = {
3488
+ ...result,
3489
+ payload: this._payloadOverrides[key]
3490
+ };
3491
+ return result;
3492
+ }
3493
+ async getFeatureFlag(key, distinctId, options) {
3494
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3495
+ ...options,
3496
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3497
+ });
3498
+ if (void 0 === result) return;
3499
+ if (false === result.enabled) return false;
3500
+ return result.variant ?? true;
3388
3501
  }
3389
3502
  async getFeatureFlagPayload(key, distinctId, matchValue, options) {
3390
3503
  if (void 0 !== this._payloadOverrides && key in this._payloadOverrides) return this._payloadOverrides[key];
3391
- const { groups, disableGeoip } = options || {};
3392
- let { onlyEvaluateLocally, personProperties, groupProperties } = options || {};
3393
- const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3394
- personProperties = adjustedProperties.allPersonProperties;
3395
- groupProperties = adjustedProperties.allGroupProperties;
3396
- let response;
3397
- const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3398
- if (localEvaluationEnabled) {
3399
- await this.featureFlagsPoller?.loadFeatureFlags();
3400
- const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3401
- if (flag) try {
3402
- const result = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3403
- if (result) {
3404
- matchValue = result.value;
3405
- response = result.payload;
3406
- }
3407
- } catch (e) {
3408
- if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${flag.key}: ${e.message}`);
3409
- else throw e;
3410
- }
3411
- }
3412
- if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3413
- const payloadWasLocallyEvaluated = void 0 !== response;
3414
- if (!payloadWasLocallyEvaluated && !onlyEvaluateLocally) response = await super.getFeatureFlagPayloadStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
3415
- return response;
3504
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3505
+ ...options,
3506
+ sendFeatureFlagEvents: false
3507
+ }, matchValue);
3508
+ if (void 0 === result) return;
3509
+ return result.payload ?? null;
3510
+ }
3511
+ async getFeatureFlagResult(key, distinctId, options) {
3512
+ return this._getFeatureFlagResult(key, distinctId, {
3513
+ ...options,
3514
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3515
+ });
3416
3516
  }
3417
3517
  async getRemoteConfigPayload(flagKey) {
3418
3518
  if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
@@ -3739,7 +3839,7 @@ var init_client = __esm({
3739
3839
  });
3740
3840
  var PostHogContext;
3741
3841
  var init_context = __esm({
3742
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3842
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3743
3843
  PostHogContext = class {
3744
3844
  constructor() {
3745
3845
  this.storage = new async_hooks.AsyncLocalStorage();
@@ -3767,7 +3867,7 @@ var init_context = __esm({
3767
3867
  }
3768
3868
  });
3769
3869
 
3770
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3870
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3771
3871
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
3772
3872
  "error"
3773
3873
  ], sendExceptionsToPostHog = true } = {}) {
@@ -3823,7 +3923,7 @@ function sentryIntegration(_posthog, options) {
3823
3923
  }
3824
3924
  var NAME, PostHogSentryIntegration;
3825
3925
  var init_sentry_integration = __esm({
3826
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3926
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3827
3927
  NAME = "posthog-node";
3828
3928
  PostHogSentryIntegration = class {
3829
3929
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -3845,7 +3945,7 @@ var init_sentry_integration = __esm({
3845
3945
  }
3846
3946
  });
3847
3947
 
3848
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs
3948
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/express.mjs
3849
3949
  function setupExpressErrorHandler(_posthog, app) {
3850
3950
  app.use(posthogErrorHandler(_posthog));
3851
3951
  }
@@ -3877,21 +3977,22 @@ function posthogErrorHandler(posthog) {
3877
3977
  };
3878
3978
  }
3879
3979
  var init_express = __esm({
3880
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs"() {
3980
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
3881
3981
  init_error_tracking2();
3882
3982
  }
3883
3983
  });
3884
3984
 
3885
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs
3985
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/exports.mjs
3886
3986
  var init_exports = __esm({
3887
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs"() {
3987
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/exports.mjs"() {
3988
+ init_dist();
3888
3989
  init_sentry_integration();
3889
3990
  init_express();
3890
3991
  init_types3();
3891
3992
  }
3892
3993
  });
3893
3994
 
3894
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3995
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3895
3996
  var index_node_exports = {};
3896
3997
  __export(index_node_exports, {
3897
3998
  FeatureFlagError: () => FeatureFlagError,
@@ -3903,7 +4004,7 @@ __export(index_node_exports, {
3903
4004
  });
3904
4005
  var PostHog;
3905
4006
  var init_index_node = __esm({
3906
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
4007
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3907
4008
  init_module_node();
3908
4009
  init_context_lines_node();
3909
4010
  init_error_tracking2();
@@ -7475,10 +7576,10 @@ var init_tslib_es6 = __esm({
7475
7576
  }
7476
7577
  });
7477
7578
 
7478
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7579
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7479
7580
  var IdentifyOperation, SpecialEventType;
7480
7581
  var init_event = __esm({
7481
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7582
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7482
7583
  (function(IdentifyOperation3) {
7483
7584
  IdentifyOperation3["SET"] = "$set";
7484
7585
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -7499,10 +7600,10 @@ var init_event = __esm({
7499
7600
  }
7500
7601
  });
7501
7602
 
7502
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7603
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7503
7604
  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;
7504
7605
  var init_constants = __esm({
7505
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7606
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7506
7607
  UNSET_VALUE = "-";
7507
7608
  AMPLITUDE_PREFIX = "AMP";
7508
7609
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -7514,10 +7615,10 @@ var init_constants = __esm({
7514
7615
  }
7515
7616
  });
7516
7617
 
7517
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7618
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7518
7619
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
7519
7620
  var init_valid_properties = __esm({
7520
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7621
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7521
7622
  init_tslib_es6();
7522
7623
  MAX_PROPERTY_KEYS = 1e3;
7523
7624
  isValidObject = function(properties) {
@@ -7572,10 +7673,10 @@ var init_valid_properties = __esm({
7572
7673
  }
7573
7674
  });
7574
7675
 
7575
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7676
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7576
7677
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
7577
7678
  var init_identify = __esm({
7578
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7679
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7579
7680
  init_tslib_es6();
7580
7681
  init_constants();
7581
7682
  init_valid_properties();
@@ -7686,10 +7787,10 @@ var init_identify = __esm({
7686
7787
  }
7687
7788
  });
7688
7789
 
7689
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
7790
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
7690
7791
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
7691
7792
  var init_messages = __esm({
7692
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
7793
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
7693
7794
  SUCCESS_MESSAGE = "Event tracked successfully";
7694
7795
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
7695
7796
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -7700,10 +7801,10 @@ var init_messages = __esm({
7700
7801
  }
7701
7802
  });
7702
7803
 
7703
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
7804
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
7704
7805
  var Status;
7705
7806
  var init_status = __esm({
7706
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
7807
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
7707
7808
  (function(Status2) {
7708
7809
  Status2["Unknown"] = "unknown";
7709
7810
  Status2["Skipped"] = "skipped";
@@ -7718,10 +7819,10 @@ var init_status = __esm({
7718
7819
  }
7719
7820
  });
7720
7821
 
7721
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
7822
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
7722
7823
  var buildResult;
7723
7824
  var init_result_builder = __esm({
7724
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
7825
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
7725
7826
  init_status();
7726
7827
  buildResult = function(event, code, message2) {
7727
7828
  if (code === void 0) {
@@ -7735,10 +7836,10 @@ var init_result_builder = __esm({
7735
7836
  }
7736
7837
  });
7737
7838
 
7738
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
7839
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
7739
7840
  var getGlobalScope;
7740
7841
  var init_global_scope = __esm({
7741
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
7842
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
7742
7843
  getGlobalScope = function() {
7743
7844
  var ampIntegrationContextName = "ampIntegrationContext";
7744
7845
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -7761,10 +7862,10 @@ var init_global_scope = __esm({
7761
7862
  }
7762
7863
  });
7763
7864
 
7764
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
7865
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
7765
7866
  var legacyUUID, hex, UUID2;
7766
7867
  var init_uuid = __esm({
7767
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
7868
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
7768
7869
  init_tslib_es6();
7769
7870
  init_global_scope();
7770
7871
  legacyUUID = function(a) {
@@ -7808,10 +7909,10 @@ var init_uuid = __esm({
7808
7909
  }
7809
7910
  });
7810
7911
 
7811
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
7912
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
7812
7913
  var Timeline;
7813
7914
  var init_timeline = __esm({
7814
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
7915
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
7815
7916
  init_tslib_es6();
7816
7917
  init_result_builder();
7817
7918
  init_uuid();
@@ -8113,10 +8214,10 @@ var init_timeline = __esm({
8113
8214
  }
8114
8215
  });
8115
8216
 
8116
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8217
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8117
8218
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
8118
8219
  var init_event_builder = __esm({
8119
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8220
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8120
8221
  init_tslib_es6();
8121
8222
  init_identify();
8122
8223
  init_event();
@@ -8146,10 +8247,10 @@ var init_event_builder = __esm({
8146
8247
  }
8147
8248
  });
8148
8249
 
8149
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8250
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8150
8251
  var returnWrapper;
8151
8252
  var init_return_wrapper = __esm({
8152
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8253
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8153
8254
  returnWrapper = function(awaitable) {
8154
8255
  return {
8155
8256
  promise: awaitable || Promise.resolve()
@@ -8158,10 +8259,10 @@ var init_return_wrapper = __esm({
8158
8259
  }
8159
8260
  });
8160
8261
 
8161
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8262
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8162
8263
  var AmplitudeCore;
8163
8264
  var init_core_client = __esm({
8164
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8265
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8165
8266
  init_tslib_es6();
8166
8267
  init_event();
8167
8268
  init_identify();
@@ -8429,10 +8530,10 @@ var init_core_client = __esm({
8429
8530
  }
8430
8531
  });
8431
8532
 
8432
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8533
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8433
8534
  var Revenue, RevenueProperty;
8434
8535
  var init_revenue = __esm({
8435
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8536
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8436
8537
  init_tslib_es6();
8437
8538
  init_valid_properties();
8438
8539
  Revenue = /** @class */
@@ -8509,10 +8610,10 @@ var init_revenue = __esm({
8509
8610
  }
8510
8611
  });
8511
8612
 
8512
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8613
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8513
8614
  var chunk;
8514
8615
  var init_chunk = __esm({
8515
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8616
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8516
8617
  chunk = function(arr, size) {
8517
8618
  var chunkSize = Math.max(size, 1);
8518
8619
  return arr.reduce(function(chunks, element, index) {
@@ -8527,10 +8628,10 @@ var init_chunk = __esm({
8527
8628
  }
8528
8629
  });
8529
8630
 
8530
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
8631
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
8531
8632
  var LogLevel;
8532
8633
  var init_loglevel = __esm({
8533
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
8634
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
8534
8635
  (function(LogLevel2) {
8535
8636
  LogLevel2[LogLevel2["None"] = 0] = "None";
8536
8637
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -8541,10 +8642,10 @@ var init_loglevel = __esm({
8541
8642
  }
8542
8643
  });
8543
8644
 
8544
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
8645
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
8545
8646
  var PREFIX, Logger;
8546
8647
  var init_logger2 = __esm({
8547
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
8648
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
8548
8649
  init_loglevel();
8549
8650
  PREFIX = "Amplitude Logger ";
8550
8651
  Logger = /** @class */
@@ -8606,10 +8707,10 @@ var init_logger2 = __esm({
8606
8707
  }
8607
8708
  });
8608
8709
 
8609
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
8710
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
8610
8711
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
8611
8712
  var init_config = __esm({
8612
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
8713
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
8613
8714
  init_constants();
8614
8715
  init_logger2();
8615
8716
  init_loglevel();
@@ -8710,19 +8811,19 @@ var init_config = __esm({
8710
8811
  }
8711
8812
  });
8712
8813
 
8713
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
8814
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
8714
8815
  function isSuccessStatusCode(code) {
8715
8816
  return code >= 200 && code < 300;
8716
8817
  }
8717
8818
  var init_status_code = __esm({
8718
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
8819
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
8719
8820
  }
8720
8821
  });
8721
8822
 
8722
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
8823
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
8723
8824
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
8724
8825
  var init_debug = __esm({
8725
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
8826
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
8726
8827
  init_tslib_es6();
8727
8828
  init_loglevel();
8728
8829
  getStacktrace = function(ignoreDepth) {
@@ -8840,7 +8941,7 @@ var init_debug = __esm({
8840
8941
  }
8841
8942
  });
8842
8943
 
8843
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
8944
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
8844
8945
  function getErrorMessage(error) {
8845
8946
  if (error instanceof Error)
8846
8947
  return error.message;
@@ -8858,7 +8959,7 @@ function getResponseBodyString(res) {
8858
8959
  }
8859
8960
  var Destination;
8860
8961
  var init_destination = __esm({
8861
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
8962
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
8862
8963
  init_tslib_es6();
8863
8964
  init_status();
8864
8965
  init_messages();
@@ -9249,10 +9350,10 @@ var init_destination = __esm({
9249
9350
  }
9250
9351
  });
9251
9352
 
9252
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9353
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9253
9354
  var BaseTransport;
9254
9355
  var init_base2 = __esm({
9255
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9356
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9256
9357
  init_status();
9257
9358
  init_status_code();
9258
9359
  BaseTransport = /** @class */
@@ -9354,10 +9455,10 @@ var init_base2 = __esm({
9354
9455
  }
9355
9456
  });
9356
9457
 
9357
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9458
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9358
9459
  var ServerZone;
9359
9460
  var init_server_zone = __esm({
9360
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9461
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9361
9462
  (function(ServerZone2) {
9362
9463
  ServerZone2["US"] = "US";
9363
9464
  ServerZone2["EU"] = "EU";
@@ -9366,17 +9467,17 @@ var init_server_zone = __esm({
9366
9467
  }
9367
9468
  });
9368
9469
 
9369
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9470
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9370
9471
  var OfflineDisabled;
9371
9472
  var init_offline = __esm({
9372
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9473
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9373
9474
  OfflineDisabled = null;
9374
9475
  }
9375
9476
  });
9376
9477
 
9377
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
9478
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
9378
9479
  var init_esm = __esm({
9379
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9480
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9380
9481
  init_core_client();
9381
9482
  init_identify();
9382
9483
  init_revenue();
@@ -9393,18 +9494,18 @@ var init_esm = __esm({
9393
9494
  }
9394
9495
  });
9395
9496
 
9396
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js
9497
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/version.js
9397
9498
  var VERSION;
9398
9499
  var init_version2 = __esm({
9399
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9400
- VERSION = "1.5.31";
9500
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9501
+ VERSION = "1.5.34";
9401
9502
  }
9402
9503
  });
9403
9504
 
9404
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9505
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9405
9506
  var Context;
9406
9507
  var init_context2 = __esm({
9407
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9508
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9408
9509
  init_tslib_es6();
9409
9510
  init_esm();
9410
9511
  init_version2();
@@ -9439,7 +9540,7 @@ var init_context2 = __esm({
9439
9540
  });
9440
9541
  var Http;
9441
9542
  var init_http = __esm({
9442
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9543
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9443
9544
  init_tslib_es6();
9444
9545
  init_esm();
9445
9546
  Http = /** @class */
@@ -9501,10 +9602,10 @@ var init_http = __esm({
9501
9602
  }
9502
9603
  });
9503
9604
 
9504
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js
9605
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/config.js
9505
9606
  var NodeConfig, useNodeConfig;
9506
9607
  var init_config2 = __esm({
9507
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9608
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9508
9609
  init_tslib_es6();
9509
9610
  init_esm();
9510
9611
  init_http();
@@ -9522,10 +9623,10 @@ var init_config2 = __esm({
9522
9623
  }
9523
9624
  });
9524
9625
 
9525
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
9626
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
9526
9627
  var AmplitudeNode, createInstance, node_client_default;
9527
9628
  var init_node_client = __esm({
9528
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
9629
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
9529
9630
  init_tslib_es6();
9530
9631
  init_esm();
9531
9632
  init_context2();
@@ -9599,7 +9700,7 @@ var init_node_client = __esm({
9599
9700
  }
9600
9701
  });
9601
9702
 
9602
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js
9703
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/types.js
9603
9704
  var types_exports = {};
9604
9705
  __export(types_exports, {
9605
9706
  IdentifyOperation: () => IdentifyOperation,
@@ -9610,12 +9711,12 @@ __export(types_exports, {
9610
9711
  SpecialEventType: () => SpecialEventType
9611
9712
  });
9612
9713
  var init_types4 = __esm({
9613
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
9714
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
9614
9715
  init_esm();
9615
9716
  }
9616
9717
  });
9617
9718
 
9618
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js
9719
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/index.js
9619
9720
  var esm_exports = {};
9620
9721
  __export(esm_exports, {
9621
9722
  Identify: () => Identify,
@@ -9636,7 +9737,7 @@ __export(esm_exports, {
9636
9737
  });
9637
9738
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
9638
9739
  var init_esm2 = __esm({
9639
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
9740
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
9640
9741
  init_node_client();
9641
9742
  init_node_client();
9642
9743
  init_esm();