@nsshunt/ststestrunner 1.0.80 → 1.0.82

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.
@@ -2138,7 +2138,7 @@ var hasRequiredLodash_merge;
2138
2138
  function requireLodash_merge() {
2139
2139
  if (hasRequiredLodash_merge) return lodash_merge.exports;
2140
2140
  hasRequiredLodash_merge = 1;
2141
- (function(module, exports) {
2141
+ (function(module, exports$1) {
2142
2142
  var LARGE_ARRAY_SIZE = 200;
2143
2143
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
2144
2144
  var HOT_COUNT = 800, HOT_SPAN = 16;
@@ -2154,7 +2154,7 @@ function requireLodash_merge() {
2154
2154
  var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2155
2155
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
2156
2156
  var root = freeGlobal || freeSelf || Function("return this")();
2157
- var freeExports = exports && !exports.nodeType && exports;
2157
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
2158
2158
  var freeModule = freeExports && true && module && !module.nodeType && module;
2159
2159
  var moduleExports = freeModule && freeModule.exports === freeExports;
2160
2160
  var freeProcess = moduleExports && freeGlobal.process;
@@ -4507,7 +4507,12 @@ const isFormData = (thing) => {
4507
4507
  kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
4508
4508
  };
4509
4509
  const isURLSearchParams = kindOfTest("URLSearchParams");
4510
- const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
4510
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
4511
+ "ReadableStream",
4512
+ "Request",
4513
+ "Response",
4514
+ "Headers"
4515
+ ].map(kindOfTest);
4511
4516
  const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
4512
4517
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
4513
4518
  if (obj === null || typeof obj === "undefined") {
@@ -4560,6 +4565,9 @@ function merge() {
4560
4565
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
4561
4566
  const result = {};
4562
4567
  const assignValue = (val, key) => {
4568
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
4569
+ return;
4570
+ }
4563
4571
  const targetKey = caseless && findKey(result, key) || key;
4564
4572
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
4565
4573
  result[targetKey] = merge(result[targetKey], val);
@@ -4577,23 +4585,27 @@ function merge() {
4577
4585
  return result;
4578
4586
  }
4579
4587
  const extend = (a2, b2, thisArg, { allOwnKeys } = {}) => {
4580
- forEach(b2, (val, key) => {
4581
- if (thisArg && isFunction$1(val)) {
4582
- Object.defineProperty(a2, key, {
4583
- value: bind(val, thisArg),
4584
- writable: true,
4585
- enumerable: true,
4586
- configurable: true
4587
- });
4588
- } else {
4589
- Object.defineProperty(a2, key, {
4590
- value: val,
4591
- writable: true,
4592
- enumerable: true,
4593
- configurable: true
4594
- });
4595
- }
4596
- }, { allOwnKeys });
4588
+ forEach(
4589
+ b2,
4590
+ (val, key) => {
4591
+ if (thisArg && isFunction$1(val)) {
4592
+ Object.defineProperty(a2, key, {
4593
+ value: bind(val, thisArg),
4594
+ writable: true,
4595
+ enumerable: true,
4596
+ configurable: true
4597
+ });
4598
+ } else {
4599
+ Object.defineProperty(a2, key, {
4600
+ value: val,
4601
+ writable: true,
4602
+ enumerable: true,
4603
+ configurable: true
4604
+ });
4605
+ }
4606
+ },
4607
+ { allOwnKeys }
4608
+ );
4597
4609
  return a2;
4598
4610
  };
4599
4611
  const stripBOM = (content) => {
@@ -4603,7 +4615,10 @@ const stripBOM = (content) => {
4603
4615
  return content;
4604
4616
  };
4605
4617
  const inherits = (constructor, superConstructor, props, descriptors) => {
4606
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
4618
+ constructor.prototype = Object.create(
4619
+ superConstructor.prototype,
4620
+ descriptors
4621
+ );
4607
4622
  Object.defineProperty(constructor.prototype, "constructor", {
4608
4623
  value: constructor,
4609
4624
  writable: true,
@@ -4680,12 +4695,9 @@ const matchAll = (regExp, str) => {
4680
4695
  };
4681
4696
  const isHTMLForm = kindOfTest("HTMLFormElement");
4682
4697
  const toCamelCase = (str) => {
4683
- return str.toLowerCase().replace(
4684
- /[-_\s]([a-z\d])(\w*)/g,
4685
- function replacer(m2, p1, p2) {
4686
- return p1.toUpperCase() + p2;
4687
- }
4688
- );
4698
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {
4699
+ return p1.toUpperCase() + p2;
4700
+ });
4689
4701
  };
4690
4702
  const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
4691
4703
  const isRegExp = kindOfTest("RegExp");
@@ -4769,20 +4781,21 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
4769
4781
  return setImmediate;
4770
4782
  }
4771
4783
  return postMessageSupported ? ((token, callbacks) => {
4772
- _global.addEventListener("message", ({ source: source2, data }) => {
4773
- if (source2 === _global && data === token) {
4774
- callbacks.length && callbacks.shift()();
4775
- }
4776
- }, false);
4784
+ _global.addEventListener(
4785
+ "message",
4786
+ ({ source: source2, data }) => {
4787
+ if (source2 === _global && data === token) {
4788
+ callbacks.length && callbacks.shift()();
4789
+ }
4790
+ },
4791
+ false
4792
+ );
4777
4793
  return (cb) => {
4778
4794
  callbacks.push(cb);
4779
4795
  _global.postMessage(token, "*");
4780
4796
  };
4781
4797
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
4782
- })(
4783
- typeof setImmediate === "function",
4784
- isFunction$1(_global.postMessage)
4785
- );
4798
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
4786
4799
  const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
4787
4800
  const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
4788
4801
  const utils$2 = {
@@ -5143,7 +5156,8 @@ class InterceptorManager {
5143
5156
  const transitionalDefaults = {
5144
5157
  silentJSONParsing: true,
5145
5158
  forcedJSONParsing: true,
5146
- clarifyTimeoutError: false
5159
+ clarifyTimeoutError: false,
5160
+ legacyInterceptorReqResOrdering: true
5147
5161
  };
5148
5162
  const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
5149
5163
  const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
@@ -5812,6 +5826,9 @@ const cookies = platform.hasStandardBrowserEnv ? (
5812
5826
  }
5813
5827
  );
5814
5828
  function isAbsoluteURL(url2) {
5829
+ if (typeof url2 !== "string") {
5830
+ return false;
5831
+ }
5815
5832
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
5816
5833
  }
5817
5834
  function combineURLs(baseURL, relativeURL) {
@@ -5895,11 +5912,16 @@ function mergeConfig$1(config1, config2) {
5895
5912
  validateStatus: mergeDirectKeys,
5896
5913
  headers: (a2, b2, prop) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), prop, true)
5897
5914
  };
5898
- utils$2.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
5899
- const merge2 = mergeMap[prop] || mergeDeepProperties;
5900
- const configValue = merge2(config1[prop], config2[prop], prop);
5901
- utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
5902
- });
5915
+ utils$2.forEach(
5916
+ Object.keys({ ...config1, ...config2 }),
5917
+ function computeConfigValue(prop) {
5918
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
5919
+ return;
5920
+ const merge2 = utils$2.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
5921
+ const configValue = merge2(config1[prop], config2[prop], prop);
5922
+ utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
5923
+ }
5924
+ );
5903
5925
  return config;
5904
5926
  }
5905
5927
  const resolveConfig = (config) => {
@@ -6351,13 +6373,13 @@ const factory = (env) => {
6351
6373
  unsubscribe && unsubscribe();
6352
6374
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
6353
6375
  throw Object.assign(
6354
- new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
6376
+ new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response),
6355
6377
  {
6356
6378
  cause: err.cause || err
6357
6379
  }
6358
6380
  );
6359
6381
  }
6360
- throw AxiosError$1.from(err, err && err.code, config, request);
6382
+ throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
6361
6383
  }
6362
6384
  };
6363
6385
  };
@@ -6486,7 +6508,7 @@ function dispatchRequest(config) {
6486
6508
  return Promise.reject(reason);
6487
6509
  });
6488
6510
  }
6489
- const VERSION$1 = "1.13.4";
6511
+ const VERSION$1 = "1.13.5";
6490
6512
  const validators$1 = {};
6491
6513
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
6492
6514
  validators$1[type] = function validator2(thing) {
@@ -6599,7 +6621,8 @@ let Axios$1 = class Axios {
6599
6621
  validator.assertOptions(transitional2, {
6600
6622
  silentJSONParsing: validators.transitional(validators.boolean),
6601
6623
  forcedJSONParsing: validators.transitional(validators.boolean),
6602
- clarifyTimeoutError: validators.transitional(validators.boolean)
6624
+ clarifyTimeoutError: validators.transitional(validators.boolean),
6625
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
6603
6626
  }, false);
6604
6627
  }
6605
6628
  if (paramsSerializer != null) {
@@ -6643,7 +6666,13 @@ let Axios$1 = class Axios {
6643
6666
  return;
6644
6667
  }
6645
6668
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
6646
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
6669
+ const transitional3 = config.transitional || transitionalDefaults;
6670
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
6671
+ if (legacyInterceptorReqResOrdering) {
6672
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
6673
+ } else {
6674
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
6675
+ }
6647
6676
  });
6648
6677
  const responseInterceptorChain = [];
6649
6678
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -8739,7 +8768,7 @@ function createPacketDecoderStream$1(maxPayload, binaryType) {
8739
8768
  }
8740
8769
  });
8741
8770
  }
8742
- const protocol$1$1 = 4;
8771
+ const protocol$1 = 4;
8743
8772
  const nextTick$1 = (() => {
8744
8773
  const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
8745
8774
  if (isPromiseAvailable) {
@@ -8943,7 +8972,7 @@ let Transport$1 = class Transport extends Emitter {
8943
8972
  return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
8944
8973
  }
8945
8974
  _port() {
8946
- if (this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80)) {
8975
+ if (this.opts.port && (this.opts.secure && Number(this.opts.port) !== 443 || !this.opts.secure && Number(this.opts.port) !== 80)) {
8947
8976
  return ":" + this.opts.port;
8948
8977
  } else {
8949
8978
  return "";
@@ -9647,7 +9676,7 @@ let SocketWithoutUpgrade$1 = class SocketWithoutUpgrade extends Emitter {
9647
9676
  */
9648
9677
  createTransport(name) {
9649
9678
  const query = Object.assign({}, this.opts.query);
9650
- query.EIO = protocol$1$1;
9679
+ query.EIO = protocol$1;
9651
9680
  query.transport = name;
9652
9681
  if (this.id)
9653
9682
  query.sid = this.id;
@@ -9976,7 +10005,7 @@ let SocketWithoutUpgrade$1 = class SocketWithoutUpgrade extends Emitter {
9976
10005
  }
9977
10006
  }
9978
10007
  };
9979
- SocketWithoutUpgrade$1.protocol = protocol$1$1;
10008
+ SocketWithoutUpgrade$1.protocol = protocol$1;
9980
10009
  let SocketWithUpgrade$1 = class SocketWithUpgrade extends SocketWithoutUpgrade$1 {
9981
10010
  constructor() {
9982
10011
  super(...arguments);
@@ -10242,14 +10271,18 @@ function _reconstructPacket$1(data, buffers) {
10242
10271
  }
10243
10272
  const RESERVED_EVENTS$1$1 = [
10244
10273
  "connect",
10274
+ // used on the client side
10245
10275
  "connect_error",
10276
+ // used on the client side
10246
10277
  "disconnect",
10278
+ // used on both sides
10247
10279
  "disconnecting",
10280
+ // used on the server side
10248
10281
  "newListener",
10282
+ // used by the Node.js EventEmitter
10249
10283
  "removeListener"
10250
10284
  // used by the Node.js EventEmitter
10251
10285
  ];
10252
- const protocol$2 = 5;
10253
10286
  var PacketType$1;
10254
10287
  (function(PacketType2) {
10255
10288
  PacketType2[PacketType2["CONNECT"] = 0] = "CONNECT";
@@ -10320,9 +10353,6 @@ let Encoder$1 = class Encoder {
10320
10353
  return buffers;
10321
10354
  }
10322
10355
  };
10323
- function isObject$1(value2) {
10324
- return Object.prototype.toString.call(value2) === "[object Object]";
10325
- }
10326
10356
  let Decoder$1 = class Decoder extends Emitter {
10327
10357
  /**
10328
10358
  * Decoder constructor
@@ -10494,14 +10524,16 @@ let BinaryReconstructor$1 = class BinaryReconstructor {
10494
10524
  this.buffers = [];
10495
10525
  }
10496
10526
  };
10527
+ function isObject$1(value2) {
10528
+ return Object.prototype.toString.call(value2) === "[object Object]";
10529
+ }
10497
10530
  const parser$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10498
10531
  __proto__: null,
10499
10532
  Decoder: Decoder$1,
10500
10533
  Encoder: Encoder$1,
10501
10534
  get PacketType() {
10502
10535
  return PacketType$1;
10503
- },
10504
- protocol: protocol$2
10536
+ }
10505
10537
  }, Symbol.toStringTag, { value: "Module" }));
10506
10538
  function on$1(obj, ev, fn) {
10507
10539
  obj.on(ev, fn);
@@ -11828,14 +11860,18 @@ let SocketIoClient$1 = class SocketIoClient extends tinyEmitterExports$1.TinyEmi
11828
11860
  this.#EstablishSocketConnect();
11829
11861
  return this;
11830
11862
  }
11863
+ // Engine Errors / Events
11864
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
11865
+ EngineError(error) {
11866
+ }
11831
11867
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11832
- ConnectCallBack(socket) {
11868
+ EngineReconnectError(error) {
11833
11869
  }
11834
11870
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11835
- SocketEventsCallBack(socket) {
11871
+ EngineConnectError(error) {
11836
11872
  }
11837
11873
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11838
- ErrorCallBack(error) {
11874
+ EngineReconnect(attempt) {
11839
11875
  }
11840
11876
  /*
11841
11877
  emit<Ev extends EventNames<ClientToServerEvents>>(ev: Ev, ...args: EventParams<ClientToServerEvents, Ev>): Socket<ServerToClientEvents, ClientToServerEvents> {
@@ -11888,31 +11924,36 @@ let SocketIoClient$1 = class SocketIoClient extends tinyEmitterExports$1.TinyEmi
11888
11924
  this.#socket = lookup$2(this.#address, socketOptions);
11889
11925
  this.#socket.io.on("error", (err) => {
11890
11926
  this.LogErrorMessage(`socketDetail.socket.io.on('error'): [${err}] Address: [${this.#address}]`);
11927
+ this.EngineError(err);
11891
11928
  });
11892
11929
  this.#socket.io.on("reconnect_error", (err) => {
11893
11930
  this.LogErrorMessage(`socketDetail.socket.io.on('reconnect_error'): [${err}] Address: [${this.#address}]`);
11931
+ this.EngineReconnectError(err);
11894
11932
  });
11895
11933
  this.#socket.on("connect_error", (err) => {
11896
11934
  this.LogErrorMessage(`socketDetail.socket.on('connect_error'): [${err}] Address: [${this.#address}]`);
11935
+ this.EngineConnectError(err);
11897
11936
  });
11898
11937
  this.#socket.io.on("reconnect", (attempt) => {
11899
11938
  this.LogErrorMessage(`socketDetail.socket.io.on('reconnect'): Number: [${attempt}] Address: [${this.#address}]`);
11939
+ this.EngineReconnect(attempt);
11900
11940
  });
11901
11941
  this.#socket.on("connect", () => {
11902
11942
  if (this.#socket) {
11903
11943
  this.LogDebugMessage(`Socket: [${this.#socket.id}]: connected, Address: [${this.#address}]`);
11904
11944
  setTimeout(() => {
11905
- this.ConnectCallBack(this.#socket);
11945
+ this.SocketConnect(this.#socket);
11906
11946
  }, 0);
11907
- this.SocketEventsCallBack(this.#socket);
11947
+ this.SetupSocketEvents(this.#socket);
11908
11948
  } else {
11909
11949
  const errorMessage = "Could not get socket object from socket.io, Address: [${socketDetail.address}]";
11910
11950
  this.LogErrorMessage(errorMessage);
11911
- this.ErrorCallBack(new Error(errorMessage));
11951
+ this.SocketConnectError(new Error(errorMessage));
11912
11952
  }
11913
11953
  });
11914
11954
  this.#socket.on("disconnect", (reason) => {
11915
11955
  this.LogDebugMessage("socket disconnect: " + reason);
11956
+ this.SocketDisconnect(reason);
11916
11957
  switch (reason) {
11917
11958
  case "io server disconnect":
11918
11959
  {
@@ -12001,16 +12042,20 @@ class FhirSocketClient extends SocketIoClient$1 {
12001
12042
  this.#options = options;
12002
12043
  this.#SetupWSSClient();
12003
12044
  }
12004
- ConnectCallBack(socket) {
12045
+ SocketConnect(socket) {
12005
12046
  this.LogDebugMessage(chalk.green(`FhirSocketClient:#OnSocketConnected(): ID: [${this.#id}] clientName: [${this.name}]: --> connected`));
12006
12047
  if (this.#options.joinRooms.length > 0 && socket) {
12007
12048
  socket.emit("__STSjoinRoom", this.#options.joinRooms);
12008
12049
  }
12009
12050
  }
12010
- ErrorCallBack(error) {
12051
+ SocketError(error) {
12011
12052
  this.LogErrorMessage(`FhirSocketClient:#SetupWSSClient(): Error clientName: [${this.name}]: SetupClientSideSocket call back: Error: [${error}]`);
12012
12053
  }
12013
- SocketEventsCallBack(socket) {
12054
+ SocketConnectError(error) {
12055
+ }
12056
+ SocketDisconnect(reason) {
12057
+ }
12058
+ SetupSocketEvents(socket) {
12014
12059
  }
12015
12060
  #SetupWSSClient = async () => {
12016
12061
  console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): ID: [${this.#id}] clientName: [${this.name}] Starting ...`));
@@ -12716,17 +12761,17 @@ var hasRequiredCode$1;
12716
12761
  function requireCode$1() {
12717
12762
  if (hasRequiredCode$1) return code$1;
12718
12763
  hasRequiredCode$1 = 1;
12719
- (function(exports) {
12720
- Object.defineProperty(exports, "__esModule", { value: true });
12721
- exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
12764
+ (function(exports$1) {
12765
+ Object.defineProperty(exports$1, "__esModule", { value: true });
12766
+ exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
12722
12767
  class _CodeOrName {
12723
12768
  }
12724
- exports._CodeOrName = _CodeOrName;
12725
- exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
12769
+ exports$1._CodeOrName = _CodeOrName;
12770
+ exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
12726
12771
  class Name extends _CodeOrName {
12727
12772
  constructor(s2) {
12728
12773
  super();
12729
- if (!exports.IDENTIFIER.test(s2))
12774
+ if (!exports$1.IDENTIFIER.test(s2))
12730
12775
  throw new Error("CodeGen: name must be a valid identifier");
12731
12776
  this.str = s2;
12732
12777
  }
@@ -12740,7 +12785,7 @@ function requireCode$1() {
12740
12785
  return { [this.str]: 1 };
12741
12786
  }
12742
12787
  }
12743
- exports.Name = Name;
12788
+ exports$1.Name = Name;
12744
12789
  class _Code extends _CodeOrName {
12745
12790
  constructor(code2) {
12746
12791
  super();
@@ -12768,8 +12813,8 @@ function requireCode$1() {
12768
12813
  }, {});
12769
12814
  }
12770
12815
  }
12771
- exports._Code = _Code;
12772
- exports.nil = new _Code("");
12816
+ exports$1._Code = _Code;
12817
+ exports$1.nil = new _Code("");
12773
12818
  function _2(strs, ...args) {
12774
12819
  const code2 = [strs[0]];
12775
12820
  let i = 0;
@@ -12779,7 +12824,7 @@ function requireCode$1() {
12779
12824
  }
12780
12825
  return new _Code(code2);
12781
12826
  }
12782
- exports._ = _2;
12827
+ exports$1._ = _2;
12783
12828
  const plus = new _Code("+");
12784
12829
  function str(strs, ...args) {
12785
12830
  const expr = [safeStringify(strs[0])];
@@ -12792,7 +12837,7 @@ function requireCode$1() {
12792
12837
  optimize(expr);
12793
12838
  return new _Code(expr);
12794
12839
  }
12795
- exports.str = str;
12840
+ exports$1.str = str;
12796
12841
  function addCodeArg(code2, arg) {
12797
12842
  if (arg instanceof _Code)
12798
12843
  code2.push(...arg._items);
@@ -12801,7 +12846,7 @@ function requireCode$1() {
12801
12846
  else
12802
12847
  code2.push(interpolate(arg));
12803
12848
  }
12804
- exports.addCodeArg = addCodeArg;
12849
+ exports$1.addCodeArg = addCodeArg;
12805
12850
  function optimize(expr) {
12806
12851
  let i = 1;
12807
12852
  while (i < expr.length - 1) {
@@ -12837,33 +12882,33 @@ function requireCode$1() {
12837
12882
  function strConcat(c1, c2) {
12838
12883
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
12839
12884
  }
12840
- exports.strConcat = strConcat;
12885
+ exports$1.strConcat = strConcat;
12841
12886
  function interpolate(x2) {
12842
12887
  return typeof x2 == "number" || typeof x2 == "boolean" || x2 === null ? x2 : safeStringify(Array.isArray(x2) ? x2.join(",") : x2);
12843
12888
  }
12844
12889
  function stringify(x2) {
12845
12890
  return new _Code(safeStringify(x2));
12846
12891
  }
12847
- exports.stringify = stringify;
12892
+ exports$1.stringify = stringify;
12848
12893
  function safeStringify(x2) {
12849
12894
  return JSON.stringify(x2).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
12850
12895
  }
12851
- exports.safeStringify = safeStringify;
12896
+ exports$1.safeStringify = safeStringify;
12852
12897
  function getProperty(key) {
12853
- return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _2`[${key}]`;
12898
+ return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _2`[${key}]`;
12854
12899
  }
12855
- exports.getProperty = getProperty;
12900
+ exports$1.getProperty = getProperty;
12856
12901
  function getEsmExportName(key) {
12857
- if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
12902
+ if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
12858
12903
  return new _Code(`${key}`);
12859
12904
  }
12860
12905
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
12861
12906
  }
12862
- exports.getEsmExportName = getEsmExportName;
12907
+ exports$1.getEsmExportName = getEsmExportName;
12863
12908
  function regexpCode(rx) {
12864
12909
  return new _Code(rx.toString());
12865
12910
  }
12866
- exports.regexpCode = regexpCode;
12911
+ exports$1.regexpCode = regexpCode;
12867
12912
  })(code$1);
12868
12913
  return code$1;
12869
12914
  }
@@ -12872,9 +12917,9 @@ var hasRequiredScope;
12872
12917
  function requireScope() {
12873
12918
  if (hasRequiredScope) return scope;
12874
12919
  hasRequiredScope = 1;
12875
- (function(exports) {
12876
- Object.defineProperty(exports, "__esModule", { value: true });
12877
- exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
12920
+ (function(exports$1) {
12921
+ Object.defineProperty(exports$1, "__esModule", { value: true });
12922
+ exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
12878
12923
  const code_1 = requireCode$1();
12879
12924
  class ValueError extends Error {
12880
12925
  constructor(name) {
@@ -12886,8 +12931,8 @@ function requireScope() {
12886
12931
  (function(UsedValueState2) {
12887
12932
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
12888
12933
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
12889
- })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
12890
- exports.varKinds = {
12934
+ })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
12935
+ exports$1.varKinds = {
12891
12936
  const: new code_1.Name("const"),
12892
12937
  let: new code_1.Name("let"),
12893
12938
  var: new code_1.Name("var")
@@ -12916,7 +12961,7 @@ function requireScope() {
12916
12961
  return this._names[prefix] = { prefix, index: 0 };
12917
12962
  }
12918
12963
  }
12919
- exports.Scope = Scope;
12964
+ exports$1.Scope = Scope;
12920
12965
  class ValueScopeName extends code_1.Name {
12921
12966
  constructor(prefix, nameStr) {
12922
12967
  super(nameStr);
@@ -12927,7 +12972,7 @@ function requireScope() {
12927
12972
  this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
12928
12973
  }
12929
12974
  }
12930
- exports.ValueScopeName = ValueScopeName;
12975
+ exports$1.ValueScopeName = ValueScopeName;
12931
12976
  const line = (0, code_1._)`\n`;
12932
12977
  class ValueScope extends Scope {
12933
12978
  constructor(opts) {
@@ -12997,7 +13042,7 @@ function requireScope() {
12997
13042
  nameSet.set(name, UsedValueState.Started);
12998
13043
  let c2 = valueCode(name);
12999
13044
  if (c2) {
13000
- const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
13045
+ const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
13001
13046
  code2 = (0, code_1._)`${code2}${def} ${name} = ${c2};${this.opts._n}`;
13002
13047
  } else if (c2 = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
13003
13048
  code2 = (0, code_1._)`${code2}${c2}${this.opts._n}`;
@@ -13010,7 +13055,7 @@ function requireScope() {
13010
13055
  return code2;
13011
13056
  }
13012
13057
  }
13013
- exports.ValueScope = ValueScope;
13058
+ exports$1.ValueScope = ValueScope;
13014
13059
  })(scope);
13015
13060
  return scope;
13016
13061
  }
@@ -13018,50 +13063,50 @@ var hasRequiredCodegen;
13018
13063
  function requireCodegen() {
13019
13064
  if (hasRequiredCodegen) return codegen;
13020
13065
  hasRequiredCodegen = 1;
13021
- (function(exports) {
13022
- Object.defineProperty(exports, "__esModule", { value: true });
13023
- exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
13066
+ (function(exports$1) {
13067
+ Object.defineProperty(exports$1, "__esModule", { value: true });
13068
+ exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
13024
13069
  const code_1 = requireCode$1();
13025
13070
  const scope_1 = requireScope();
13026
13071
  var code_2 = requireCode$1();
13027
- Object.defineProperty(exports, "_", { enumerable: true, get: function() {
13072
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
13028
13073
  return code_2._;
13029
13074
  } });
13030
- Object.defineProperty(exports, "str", { enumerable: true, get: function() {
13075
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
13031
13076
  return code_2.str;
13032
13077
  } });
13033
- Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
13078
+ Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function() {
13034
13079
  return code_2.strConcat;
13035
13080
  } });
13036
- Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
13081
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
13037
13082
  return code_2.nil;
13038
13083
  } });
13039
- Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
13084
+ Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function() {
13040
13085
  return code_2.getProperty;
13041
13086
  } });
13042
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
13087
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
13043
13088
  return code_2.stringify;
13044
13089
  } });
13045
- Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
13090
+ Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function() {
13046
13091
  return code_2.regexpCode;
13047
13092
  } });
13048
- Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
13093
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
13049
13094
  return code_2.Name;
13050
13095
  } });
13051
13096
  var scope_2 = requireScope();
13052
- Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
13097
+ Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function() {
13053
13098
  return scope_2.Scope;
13054
13099
  } });
13055
- Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
13100
+ Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function() {
13056
13101
  return scope_2.ValueScope;
13057
13102
  } });
13058
- Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
13103
+ Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function() {
13059
13104
  return scope_2.ValueScopeName;
13060
13105
  } });
13061
- Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
13106
+ Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function() {
13062
13107
  return scope_2.varKinds;
13063
13108
  } });
13064
- exports.operators = {
13109
+ exports$1.operators = {
13065
13110
  GT: new code_1._Code(">"),
13066
13111
  GTE: new code_1._Code(">="),
13067
13112
  LT: new code_1._Code("<"),
@@ -13474,7 +13519,7 @@ function requireCodegen() {
13474
13519
  }
13475
13520
  // `+=` code
13476
13521
  add(lhs, rhs) {
13477
- return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
13522
+ return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
13478
13523
  }
13479
13524
  // appends passed SafeExpr to code or executes Block
13480
13525
  code(c2) {
@@ -13674,7 +13719,7 @@ function requireCodegen() {
13674
13719
  ns[ns.length - 1] = node;
13675
13720
  }
13676
13721
  }
13677
- exports.CodeGen = CodeGen;
13722
+ exports$1.CodeGen = CodeGen;
13678
13723
  function addNames(names2, from) {
13679
13724
  for (const n2 in from)
13680
13725
  names2[n2] = (names2[n2] || 0) + (from[n2] || 0);
@@ -13715,17 +13760,17 @@ function requireCodegen() {
13715
13760
  function not2(x2) {
13716
13761
  return typeof x2 == "boolean" || typeof x2 == "number" || x2 === null ? !x2 : (0, code_1._)`!${par(x2)}`;
13717
13762
  }
13718
- exports.not = not2;
13719
- const andCode = mappend(exports.operators.AND);
13763
+ exports$1.not = not2;
13764
+ const andCode = mappend(exports$1.operators.AND);
13720
13765
  function and(...args) {
13721
13766
  return args.reduce(andCode);
13722
13767
  }
13723
- exports.and = and;
13724
- const orCode = mappend(exports.operators.OR);
13768
+ exports$1.and = and;
13769
+ const orCode = mappend(exports$1.operators.OR);
13725
13770
  function or2(...args) {
13726
13771
  return args.reduce(orCode);
13727
13772
  }
13728
- exports.or = or2;
13773
+ exports$1.or = or2;
13729
13774
  function mappend(op) {
13730
13775
  return (x2, y2) => x2 === code_1.nil ? y2 : y2 === code_1.nil ? x2 : (0, code_1._)`${par(x2)} ${op} ${par(y2)}`;
13731
13776
  }
@@ -13945,19 +13990,19 @@ var hasRequiredErrors;
13945
13990
  function requireErrors() {
13946
13991
  if (hasRequiredErrors) return errors;
13947
13992
  hasRequiredErrors = 1;
13948
- (function(exports) {
13949
- Object.defineProperty(exports, "__esModule", { value: true });
13950
- exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
13993
+ (function(exports$1) {
13994
+ Object.defineProperty(exports$1, "__esModule", { value: true });
13995
+ exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
13951
13996
  const codegen_1 = requireCodegen();
13952
13997
  const util_1 = requireUtil();
13953
13998
  const names_1 = requireNames();
13954
- exports.keywordError = {
13999
+ exports$1.keywordError = {
13955
14000
  message: ({ keyword: keyword2 }) => (0, codegen_1.str)`must pass "${keyword2}" keyword validation`
13956
14001
  };
13957
- exports.keyword$DataError = {
14002
+ exports$1.keyword$DataError = {
13958
14003
  message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword2}" keyword is invalid ($data)`
13959
14004
  };
13960
- function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
14005
+ function reportError(cxt, error = exports$1.keywordError, errorPaths, overrideAllErrors) {
13961
14006
  const { it: it2 } = cxt;
13962
14007
  const { gen, compositeRule, allErrors } = it2;
13963
14008
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -13967,8 +14012,8 @@ function requireErrors() {
13967
14012
  returnErrors(it2, (0, codegen_1._)`[${errObj}]`);
13968
14013
  }
13969
14014
  }
13970
- exports.reportError = reportError;
13971
- function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
14015
+ exports$1.reportError = reportError;
14016
+ function reportExtraError(cxt, error = exports$1.keywordError, errorPaths) {
13972
14017
  const { it: it2 } = cxt;
13973
14018
  const { gen, compositeRule, allErrors } = it2;
13974
14019
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -13977,12 +14022,12 @@ function requireErrors() {
13977
14022
  returnErrors(it2, names_1.default.vErrors);
13978
14023
  }
13979
14024
  }
13980
- exports.reportExtraError = reportExtraError;
14025
+ exports$1.reportExtraError = reportExtraError;
13981
14026
  function resetErrorsCount(gen, errsCount) {
13982
14027
  gen.assign(names_1.default.errors, errsCount);
13983
14028
  gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
13984
14029
  }
13985
- exports.resetErrorsCount = resetErrorsCount;
14030
+ exports$1.resetErrorsCount = resetErrorsCount;
13986
14031
  function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it: it2 }) {
13987
14032
  if (errsCount === void 0)
13988
14033
  throw new Error("ajv implementation error");
@@ -13997,7 +14042,7 @@ function requireErrors() {
13997
14042
  }
13998
14043
  });
13999
14044
  }
14000
- exports.extendErrors = extendErrors;
14045
+ exports$1.extendErrors = extendErrors;
14001
14046
  function addError(gen, errObj) {
14002
14047
  const err = gen.const("err", errObj);
14003
14048
  gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
@@ -16516,30 +16561,30 @@ var hasRequiredCore$1;
16516
16561
  function requireCore$1() {
16517
16562
  if (hasRequiredCore$1) return core$1;
16518
16563
  hasRequiredCore$1 = 1;
16519
- (function(exports) {
16520
- Object.defineProperty(exports, "__esModule", { value: true });
16521
- exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
16564
+ (function(exports$1) {
16565
+ Object.defineProperty(exports$1, "__esModule", { value: true });
16566
+ exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
16522
16567
  var validate_1 = requireValidate();
16523
- Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
16568
+ Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
16524
16569
  return validate_1.KeywordCxt;
16525
16570
  } });
16526
16571
  var codegen_1 = requireCodegen();
16527
- Object.defineProperty(exports, "_", { enumerable: true, get: function() {
16572
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
16528
16573
  return codegen_1._;
16529
16574
  } });
16530
- Object.defineProperty(exports, "str", { enumerable: true, get: function() {
16575
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
16531
16576
  return codegen_1.str;
16532
16577
  } });
16533
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
16578
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
16534
16579
  return codegen_1.stringify;
16535
16580
  } });
16536
- Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
16581
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
16537
16582
  return codegen_1.nil;
16538
16583
  } });
16539
- Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
16584
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
16540
16585
  return codegen_1.Name;
16541
16586
  } });
16542
- Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
16587
+ Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
16543
16588
  return codegen_1.CodeGen;
16544
16589
  } });
16545
16590
  const validation_error_1 = requireValidation_error();
@@ -16993,7 +17038,7 @@ function requireCore$1() {
16993
17038
  }
16994
17039
  Ajv2.ValidationError = validation_error_1.default;
16995
17040
  Ajv2.MissingRefError = ref_error_1.default;
16996
- exports.default = Ajv2;
17041
+ exports$1.default = Ajv2;
16997
17042
  function checkOptions(checkOpts, options, msg, log = "error") {
16998
17043
  for (const key in checkOpts) {
16999
17044
  const opt = key;
@@ -18025,13 +18070,13 @@ var hasRequiredDependencies;
18025
18070
  function requireDependencies() {
18026
18071
  if (hasRequiredDependencies) return dependencies;
18027
18072
  hasRequiredDependencies = 1;
18028
- (function(exports) {
18029
- Object.defineProperty(exports, "__esModule", { value: true });
18030
- exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
18073
+ (function(exports$1) {
18074
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18075
+ exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
18031
18076
  const codegen_1 = requireCodegen();
18032
18077
  const util_1 = requireUtil();
18033
18078
  const code_1 = requireCode();
18034
- exports.error = {
18079
+ exports$1.error = {
18035
18080
  message: ({ params: { property, depsCount, deps } }) => {
18036
18081
  const property_ies = depsCount === 1 ? "property" : "properties";
18037
18082
  return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
@@ -18046,7 +18091,7 @@ function requireDependencies() {
18046
18091
  keyword: "dependencies",
18047
18092
  type: "object",
18048
18093
  schemaType: "object",
18049
- error: exports.error,
18094
+ error: exports$1.error,
18050
18095
  code(cxt) {
18051
18096
  const [propDeps, schDeps] = splitDependencies(cxt);
18052
18097
  validatePropertyDeps(cxt, propDeps);
@@ -18092,7 +18137,7 @@ function requireDependencies() {
18092
18137
  }
18093
18138
  }
18094
18139
  }
18095
- exports.validatePropertyDeps = validatePropertyDeps;
18140
+ exports$1.validatePropertyDeps = validatePropertyDeps;
18096
18141
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
18097
18142
  const { gen, data, keyword: keyword2, it: it2 } = cxt;
18098
18143
  const valid = gen.name("valid");
@@ -18111,8 +18156,8 @@ function requireDependencies() {
18111
18156
  cxt.ok(valid);
18112
18157
  }
18113
18158
  }
18114
- exports.validateSchemaDeps = validateSchemaDeps;
18115
- exports.default = def;
18159
+ exports$1.validateSchemaDeps = validateSchemaDeps;
18160
+ exports$1.default = def;
18116
18161
  })(dependencies);
18117
18162
  return dependencies;
18118
18163
  }
@@ -18947,9 +18992,9 @@ var hasRequiredAjv;
18947
18992
  function requireAjv() {
18948
18993
  if (hasRequiredAjv) return ajv.exports;
18949
18994
  hasRequiredAjv = 1;
18950
- (function(module, exports) {
18951
- Object.defineProperty(exports, "__esModule", { value: true });
18952
- exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
18995
+ (function(module, exports$1) {
18996
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18997
+ exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
18953
18998
  const core_1 = requireCore$1();
18954
18999
  const draft7_1 = requireDraft7();
18955
19000
  const discriminator_1 = requireDiscriminator();
@@ -18975,40 +19020,40 @@ function requireAjv() {
18975
19020
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
18976
19021
  }
18977
19022
  }
18978
- exports.Ajv = Ajv2;
18979
- module.exports = exports = Ajv2;
19023
+ exports$1.Ajv = Ajv2;
19024
+ module.exports = exports$1 = Ajv2;
18980
19025
  module.exports.Ajv = Ajv2;
18981
- Object.defineProperty(exports, "__esModule", { value: true });
18982
- exports.default = Ajv2;
19026
+ Object.defineProperty(exports$1, "__esModule", { value: true });
19027
+ exports$1.default = Ajv2;
18983
19028
  var validate_1 = requireValidate();
18984
- Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
19029
+ Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
18985
19030
  return validate_1.KeywordCxt;
18986
19031
  } });
18987
19032
  var codegen_1 = requireCodegen();
18988
- Object.defineProperty(exports, "_", { enumerable: true, get: function() {
19033
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
18989
19034
  return codegen_1._;
18990
19035
  } });
18991
- Object.defineProperty(exports, "str", { enumerable: true, get: function() {
19036
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
18992
19037
  return codegen_1.str;
18993
19038
  } });
18994
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
19039
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
18995
19040
  return codegen_1.stringify;
18996
19041
  } });
18997
- Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
19042
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
18998
19043
  return codegen_1.nil;
18999
19044
  } });
19000
- Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
19045
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
19001
19046
  return codegen_1.Name;
19002
19047
  } });
19003
- Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
19048
+ Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
19004
19049
  return codegen_1.CodeGen;
19005
19050
  } });
19006
19051
  var validation_error_1 = requireValidation_error();
19007
- Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
19052
+ Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
19008
19053
  return validation_error_1.default;
19009
19054
  } });
19010
19055
  var ref_error_1 = requireRef_error();
19011
- Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
19056
+ Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
19012
19057
  return ref_error_1.default;
19013
19058
  } });
19014
19059
  })(ajv, ajv.exports);
@@ -22578,7 +22623,7 @@ function createPacketDecoderStream(maxPayload, binaryType) {
22578
22623
  }
22579
22624
  });
22580
22625
  }
22581
- const protocol$1 = 4;
22626
+ const protocol = 4;
22582
22627
  const nextTick = (() => {
22583
22628
  const isPromiseAvailable = typeof Promise === "function" && typeof Promise.resolve === "function";
22584
22629
  if (isPromiseAvailable) {
@@ -22782,7 +22827,7 @@ class Transport2 extends Emitter {
22782
22827
  return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
22783
22828
  }
22784
22829
  _port() {
22785
- if (this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80)) {
22830
+ if (this.opts.port && (this.opts.secure && Number(this.opts.port) !== 443 || !this.opts.secure && Number(this.opts.port) !== 80)) {
22786
22831
  return ":" + this.opts.port;
22787
22832
  } else {
22788
22833
  return "";
@@ -23486,7 +23531,7 @@ class SocketWithoutUpgrade2 extends Emitter {
23486
23531
  */
23487
23532
  createTransport(name) {
23488
23533
  const query = Object.assign({}, this.opts.query);
23489
- query.EIO = protocol$1;
23534
+ query.EIO = protocol;
23490
23535
  query.transport = name;
23491
23536
  if (this.id)
23492
23537
  query.sid = this.id;
@@ -23815,7 +23860,7 @@ class SocketWithoutUpgrade2 extends Emitter {
23815
23860
  }
23816
23861
  }
23817
23862
  }
23818
- SocketWithoutUpgrade2.protocol = protocol$1;
23863
+ SocketWithoutUpgrade2.protocol = protocol;
23819
23864
  class SocketWithUpgrade2 extends SocketWithoutUpgrade2 {
23820
23865
  constructor() {
23821
23866
  super(...arguments);
@@ -24081,14 +24126,18 @@ function _reconstructPacket(data, buffers) {
24081
24126
  }
24082
24127
  const RESERVED_EVENTS$1 = [
24083
24128
  "connect",
24129
+ // used on the client side
24084
24130
  "connect_error",
24131
+ // used on the client side
24085
24132
  "disconnect",
24133
+ // used on both sides
24086
24134
  "disconnecting",
24135
+ // used on the server side
24087
24136
  "newListener",
24137
+ // used by the Node.js EventEmitter
24088
24138
  "removeListener"
24089
24139
  // used by the Node.js EventEmitter
24090
24140
  ];
24091
- const protocol = 5;
24092
24141
  var PacketType;
24093
24142
  (function(PacketType2) {
24094
24143
  PacketType2[PacketType2["CONNECT"] = 0] = "CONNECT";
@@ -24159,9 +24208,6 @@ class Encoder2 {
24159
24208
  return buffers;
24160
24209
  }
24161
24210
  }
24162
- function isObject(value2) {
24163
- return Object.prototype.toString.call(value2) === "[object Object]";
24164
- }
24165
24211
  class Decoder2 extends Emitter {
24166
24212
  /**
24167
24213
  * Decoder constructor
@@ -24333,14 +24379,16 @@ class BinaryReconstructor2 {
24333
24379
  this.buffers = [];
24334
24380
  }
24335
24381
  }
24382
+ function isObject(value2) {
24383
+ return Object.prototype.toString.call(value2) === "[object Object]";
24384
+ }
24336
24385
  const parser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24337
24386
  __proto__: null,
24338
24387
  Decoder: Decoder2,
24339
24388
  Encoder: Encoder2,
24340
24389
  get PacketType() {
24341
24390
  return PacketType;
24342
- },
24343
- protocol
24391
+ }
24344
24392
  }, Symbol.toStringTag, { value: "Module" }));
24345
24393
  function on(obj, ev, fn) {
24346
24394
  obj.on(ev, fn);
@@ -25667,14 +25715,18 @@ class SocketIoClient2 extends tinyEmitterExports.TinyEmitter {
25667
25715
  this.#EstablishSocketConnect();
25668
25716
  return this;
25669
25717
  }
25718
+ // Engine Errors / Events
25670
25719
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
25671
- ConnectCallBack(socket) {
25720
+ EngineError(error) {
25672
25721
  }
25673
25722
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
25674
- SocketEventsCallBack(socket) {
25723
+ EngineReconnectError(error) {
25675
25724
  }
25676
25725
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
25677
- ErrorCallBack(error) {
25726
+ EngineConnectError(error) {
25727
+ }
25728
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
25729
+ EngineReconnect(attempt) {
25678
25730
  }
25679
25731
  /*
25680
25732
  emit<Ev extends EventNames<ClientToServerEvents>>(ev: Ev, ...args: EventParams<ClientToServerEvents, Ev>): Socket<ServerToClientEvents, ClientToServerEvents> {
@@ -25727,31 +25779,36 @@ class SocketIoClient2 extends tinyEmitterExports.TinyEmitter {
25727
25779
  this.#socket = lookup(this.#address, socketOptions);
25728
25780
  this.#socket.io.on("error", (err) => {
25729
25781
  this.LogErrorMessage(`socketDetail.socket.io.on('error'): [${err}] Address: [${this.#address}]`);
25782
+ this.EngineError(err);
25730
25783
  });
25731
25784
  this.#socket.io.on("reconnect_error", (err) => {
25732
25785
  this.LogErrorMessage(`socketDetail.socket.io.on('reconnect_error'): [${err}] Address: [${this.#address}]`);
25786
+ this.EngineReconnectError(err);
25733
25787
  });
25734
25788
  this.#socket.on("connect_error", (err) => {
25735
25789
  this.LogErrorMessage(`socketDetail.socket.on('connect_error'): [${err}] Address: [${this.#address}]`);
25790
+ this.EngineConnectError(err);
25736
25791
  });
25737
25792
  this.#socket.io.on("reconnect", (attempt) => {
25738
25793
  this.LogErrorMessage(`socketDetail.socket.io.on('reconnect'): Number: [${attempt}] Address: [${this.#address}]`);
25794
+ this.EngineReconnect(attempt);
25739
25795
  });
25740
25796
  this.#socket.on("connect", () => {
25741
25797
  if (this.#socket) {
25742
25798
  this.LogDebugMessage(`Socket: [${this.#socket.id}]: connected, Address: [${this.#address}]`);
25743
25799
  setTimeout(() => {
25744
- this.ConnectCallBack(this.#socket);
25800
+ this.SocketConnect(this.#socket);
25745
25801
  }, 0);
25746
- this.SocketEventsCallBack(this.#socket);
25802
+ this.SetupSocketEvents(this.#socket);
25747
25803
  } else {
25748
25804
  const errorMessage = "Could not get socket object from socket.io, Address: [${socketDetail.address}]";
25749
25805
  this.LogErrorMessage(errorMessage);
25750
- this.ErrorCallBack(new Error(errorMessage));
25806
+ this.SocketConnectError(new Error(errorMessage));
25751
25807
  }
25752
25808
  });
25753
25809
  this.#socket.on("disconnect", (reason) => {
25754
25810
  this.LogDebugMessage("socket disconnect: " + reason);
25811
+ this.SocketDisconnect(reason);
25755
25812
  switch (reason) {
25756
25813
  case "io server disconnect":
25757
25814
  {
@@ -26428,19 +26485,23 @@ class ServiceInstance extends SocketIoClient2 {
26428
26485
  };
26429
26486
  start();
26430
26487
  }
26488
+ SocketConnectError(error) {
26489
+ }
26490
+ SocketDisconnect(reason) {
26491
+ }
26431
26492
  get workerManager() {
26432
26493
  return this.#wm;
26433
26494
  }
26434
26495
  get id() {
26435
26496
  return this.#id;
26436
26497
  }
26437
- ConnectCallBack(socket) {
26498
+ SocketConnect(socket) {
26438
26499
  this.#OnSocketConnected(socket, this.name, []);
26439
26500
  }
26440
- ErrorCallBack(error) {
26501
+ SocketError(error) {
26441
26502
  this.#error(`${this.name}: SetupClientSideSocket call back: [${error}]`);
26442
26503
  }
26443
- SocketEventsCallBack(socket) {
26504
+ SetupSocketEvents(socket) {
26444
26505
  this.#RegisterSocketEvents(socket, this.name);
26445
26506
  }
26446
26507
  #GetKeyPayloadData = (eventRequestCommand, eventReturnValueBaseType) => {