@kevisual/cli 0.1.25 → 0.1.26

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.
package/dist/assistant.js CHANGED
@@ -4047,26 +4047,26 @@ var require_escape_html = __commonJS((exports, module) => {
4047
4047
  if (!match) {
4048
4048
  return str;
4049
4049
  }
4050
- var escape2;
4050
+ var escape3;
4051
4051
  var html = "";
4052
4052
  var index = 0;
4053
4053
  var lastIndex = 0;
4054
4054
  for (index = match.index;index < str.length; index++) {
4055
4055
  switch (str.charCodeAt(index)) {
4056
4056
  case 34:
4057
- escape2 = "&quot;";
4057
+ escape3 = "&quot;";
4058
4058
  break;
4059
4059
  case 38:
4060
- escape2 = "&amp;";
4060
+ escape3 = "&amp;";
4061
4061
  break;
4062
4062
  case 39:
4063
- escape2 = "&#39;";
4063
+ escape3 = "&#39;";
4064
4064
  break;
4065
4065
  case 60:
4066
- escape2 = "&lt;";
4066
+ escape3 = "&lt;";
4067
4067
  break;
4068
4068
  case 62:
4069
- escape2 = "&gt;";
4069
+ escape3 = "&gt;";
4070
4070
  break;
4071
4071
  default:
4072
4072
  continue;
@@ -4075,7 +4075,7 @@ var require_escape_html = __commonJS((exports, module) => {
4075
4075
  html += str.substring(lastIndex, index);
4076
4076
  }
4077
4077
  lastIndex = index + 1;
4078
- html += escape2;
4078
+ html += escape3;
4079
4079
  }
4080
4080
  return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
4081
4081
  }
@@ -51415,7 +51415,7 @@ var getStringHash = (str) => {
51415
51415
  return crypto2.createHash("md5").update(str).digest("hex");
51416
51416
  };
51417
51417
 
51418
- // ../node_modules/.pnpm/@kevisual+router@0.1.1/node_modules/@kevisual/router/dist/router.js
51418
+ // ../node_modules/.pnpm/@kevisual+router@0.1.2/node_modules/@kevisual/router/dist/router.js
51419
51419
  import { createRequire as createRequire3 } from "node:module";
51420
51420
  import { webcrypto as crypto3 } from "node:crypto";
51421
51421
  import http from "node:http";
@@ -51427,25 +51427,43 @@ var __getProtoOf4 = Object.getPrototypeOf;
51427
51427
  var __defProp4 = Object.defineProperty;
51428
51428
  var __getOwnPropNames4 = Object.getOwnPropertyNames;
51429
51429
  var __hasOwnProp4 = Object.prototype.hasOwnProperty;
51430
+ function __accessProp2(key) {
51431
+ return this[key];
51432
+ }
51433
+ var __toESMCache_node2;
51434
+ var __toESMCache_esm2;
51430
51435
  var __toESM4 = (mod, isNodeMode, target) => {
51436
+ var canCache = mod != null && typeof mod === "object";
51437
+ if (canCache) {
51438
+ var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
51439
+ var cached2 = cache.get(mod);
51440
+ if (cached2)
51441
+ return cached2;
51442
+ }
51431
51443
  target = mod != null ? __create4(__getProtoOf4(mod)) : {};
51432
51444
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp4(target, "default", { value: mod, enumerable: true }) : target;
51433
51445
  for (let key of __getOwnPropNames4(mod))
51434
51446
  if (!__hasOwnProp4.call(to, key))
51435
51447
  __defProp4(to, key, {
51436
- get: () => mod[key],
51448
+ get: __accessProp2.bind(mod, key),
51437
51449
  enumerable: true
51438
51450
  });
51451
+ if (canCache)
51452
+ cache.set(mod, to);
51439
51453
  return to;
51440
51454
  };
51441
51455
  var __commonJS4 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
51456
+ var __returnValue2 = (v) => v;
51457
+ function __exportSetter2(name, newValue) {
51458
+ this[name] = __returnValue2.bind(null, newValue);
51459
+ }
51442
51460
  var __export3 = (target, all) => {
51443
51461
  for (var name in all)
51444
51462
  __defProp4(target, name, {
51445
51463
  get: all[name],
51446
51464
  enumerable: true,
51447
51465
  configurable: true,
51448
- set: (newValue) => all[name] = () => newValue
51466
+ set: __exportSetter2.bind(all, name)
51449
51467
  });
51450
51468
  };
51451
51469
  var __require3 = /* @__PURE__ */ createRequire3(import.meta.url);
@@ -51625,6 +51643,464 @@ var require_eventemitter33 = __commonJS4((exports, module) => {
51625
51643
  module.exports = EventEmitter3;
51626
51644
  }
51627
51645
  });
51646
+ var require_core = __commonJS4((exports, module) => {
51647
+ (function(root2, factory) {
51648
+ if (typeof exports === "object") {
51649
+ module.exports = exports = factory();
51650
+ } else if (typeof define === "function" && define.amd) {
51651
+ define([], factory);
51652
+ } else {
51653
+ root2.CryptoJS = factory();
51654
+ }
51655
+ })(exports, function() {
51656
+ var CryptoJS = CryptoJS || function(Math2, undefined2) {
51657
+ var crypto22;
51658
+ if (typeof window !== "undefined" && window.crypto) {
51659
+ crypto22 = window.crypto;
51660
+ }
51661
+ if (typeof self !== "undefined" && self.crypto) {
51662
+ crypto22 = self.crypto;
51663
+ }
51664
+ if (typeof globalThis !== "undefined" && globalThis.crypto) {
51665
+ crypto22 = globalThis.crypto;
51666
+ }
51667
+ if (!crypto22 && typeof window !== "undefined" && window.msCrypto) {
51668
+ crypto22 = window.msCrypto;
51669
+ }
51670
+ if (!crypto22 && typeof global !== "undefined" && global.crypto) {
51671
+ crypto22 = global.crypto;
51672
+ }
51673
+ if (!crypto22 && true) {
51674
+ try {
51675
+ crypto22 = __require3("crypto");
51676
+ } catch (err) {}
51677
+ }
51678
+ var cryptoSecureRandomInt = function() {
51679
+ if (crypto22) {
51680
+ if (typeof crypto22.getRandomValues === "function") {
51681
+ try {
51682
+ return crypto22.getRandomValues(new Uint32Array(1))[0];
51683
+ } catch (err) {}
51684
+ }
51685
+ if (typeof crypto22.randomBytes === "function") {
51686
+ try {
51687
+ return crypto22.randomBytes(4).readInt32LE();
51688
+ } catch (err) {}
51689
+ }
51690
+ }
51691
+ throw new Error("Native crypto module could not be used to get secure random number.");
51692
+ };
51693
+ var create = Object.create || function() {
51694
+ function F() {}
51695
+ return function(obj) {
51696
+ var subtype;
51697
+ F.prototype = obj;
51698
+ subtype = new F;
51699
+ F.prototype = null;
51700
+ return subtype;
51701
+ };
51702
+ }();
51703
+ var C = {};
51704
+ var C_lib = C.lib = {};
51705
+ var Base = C_lib.Base = function() {
51706
+ return {
51707
+ extend: function(overrides) {
51708
+ var subtype = create(this);
51709
+ if (overrides) {
51710
+ subtype.mixIn(overrides);
51711
+ }
51712
+ if (!subtype.hasOwnProperty("init") || this.init === subtype.init) {
51713
+ subtype.init = function() {
51714
+ subtype.$super.init.apply(this, arguments);
51715
+ };
51716
+ }
51717
+ subtype.init.prototype = subtype;
51718
+ subtype.$super = this;
51719
+ return subtype;
51720
+ },
51721
+ create: function() {
51722
+ var instance = this.extend();
51723
+ instance.init.apply(instance, arguments);
51724
+ return instance;
51725
+ },
51726
+ init: function() {},
51727
+ mixIn: function(properties) {
51728
+ for (var propertyName in properties) {
51729
+ if (properties.hasOwnProperty(propertyName)) {
51730
+ this[propertyName] = properties[propertyName];
51731
+ }
51732
+ }
51733
+ if (properties.hasOwnProperty("toString")) {
51734
+ this.toString = properties.toString;
51735
+ }
51736
+ },
51737
+ clone: function() {
51738
+ return this.init.prototype.extend(this);
51739
+ }
51740
+ };
51741
+ }();
51742
+ var WordArray = C_lib.WordArray = Base.extend({
51743
+ init: function(words2, sigBytes) {
51744
+ words2 = this.words = words2 || [];
51745
+ if (sigBytes != undefined2) {
51746
+ this.sigBytes = sigBytes;
51747
+ } else {
51748
+ this.sigBytes = words2.length * 4;
51749
+ }
51750
+ },
51751
+ toString: function(encoder) {
51752
+ return (encoder || Hex).stringify(this);
51753
+ },
51754
+ concat: function(wordArray) {
51755
+ var thisWords = this.words;
51756
+ var thatWords = wordArray.words;
51757
+ var thisSigBytes = this.sigBytes;
51758
+ var thatSigBytes = wordArray.sigBytes;
51759
+ this.clamp();
51760
+ if (thisSigBytes % 4) {
51761
+ for (var i = 0;i < thatSigBytes; i++) {
51762
+ var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 255;
51763
+ thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
51764
+ }
51765
+ } else {
51766
+ for (var j = 0;j < thatSigBytes; j += 4) {
51767
+ thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
51768
+ }
51769
+ }
51770
+ this.sigBytes += thatSigBytes;
51771
+ return this;
51772
+ },
51773
+ clamp: function() {
51774
+ var words2 = this.words;
51775
+ var sigBytes = this.sigBytes;
51776
+ words2[sigBytes >>> 2] &= 4294967295 << 32 - sigBytes % 4 * 8;
51777
+ words2.length = Math2.ceil(sigBytes / 4);
51778
+ },
51779
+ clone: function() {
51780
+ var clone3 = Base.clone.call(this);
51781
+ clone3.words = this.words.slice(0);
51782
+ return clone3;
51783
+ },
51784
+ random: function(nBytes) {
51785
+ var words2 = [];
51786
+ for (var i = 0;i < nBytes; i += 4) {
51787
+ words2.push(cryptoSecureRandomInt());
51788
+ }
51789
+ return new WordArray.init(words2, nBytes);
51790
+ }
51791
+ });
51792
+ var C_enc = C.enc = {};
51793
+ var Hex = C_enc.Hex = {
51794
+ stringify: function(wordArray) {
51795
+ var words2 = wordArray.words;
51796
+ var sigBytes = wordArray.sigBytes;
51797
+ var hexChars = [];
51798
+ for (var i = 0;i < sigBytes; i++) {
51799
+ var bite = words2[i >>> 2] >>> 24 - i % 4 * 8 & 255;
51800
+ hexChars.push((bite >>> 4).toString(16));
51801
+ hexChars.push((bite & 15).toString(16));
51802
+ }
51803
+ return hexChars.join("");
51804
+ },
51805
+ parse: function(hexStr) {
51806
+ var hexStrLength = hexStr.length;
51807
+ var words2 = [];
51808
+ for (var i = 0;i < hexStrLength; i += 2) {
51809
+ words2[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
51810
+ }
51811
+ return new WordArray.init(words2, hexStrLength / 2);
51812
+ }
51813
+ };
51814
+ var Latin1 = C_enc.Latin1 = {
51815
+ stringify: function(wordArray) {
51816
+ var words2 = wordArray.words;
51817
+ var sigBytes = wordArray.sigBytes;
51818
+ var latin1Chars = [];
51819
+ for (var i = 0;i < sigBytes; i++) {
51820
+ var bite = words2[i >>> 2] >>> 24 - i % 4 * 8 & 255;
51821
+ latin1Chars.push(String.fromCharCode(bite));
51822
+ }
51823
+ return latin1Chars.join("");
51824
+ },
51825
+ parse: function(latin1Str) {
51826
+ var latin1StrLength = latin1Str.length;
51827
+ var words2 = [];
51828
+ for (var i = 0;i < latin1StrLength; i++) {
51829
+ words2[i >>> 2] |= (latin1Str.charCodeAt(i) & 255) << 24 - i % 4 * 8;
51830
+ }
51831
+ return new WordArray.init(words2, latin1StrLength);
51832
+ }
51833
+ };
51834
+ var Utf8 = C_enc.Utf8 = {
51835
+ stringify: function(wordArray) {
51836
+ try {
51837
+ return decodeURIComponent(escape(Latin1.stringify(wordArray)));
51838
+ } catch (e) {
51839
+ throw new Error("Malformed UTF-8 data");
51840
+ }
51841
+ },
51842
+ parse: function(utf8Str) {
51843
+ return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
51844
+ }
51845
+ };
51846
+ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
51847
+ reset: function() {
51848
+ this._data = new WordArray.init;
51849
+ this._nDataBytes = 0;
51850
+ },
51851
+ _append: function(data) {
51852
+ if (typeof data == "string") {
51853
+ data = Utf8.parse(data);
51854
+ }
51855
+ this._data.concat(data);
51856
+ this._nDataBytes += data.sigBytes;
51857
+ },
51858
+ _process: function(doFlush) {
51859
+ var processedWords;
51860
+ var data = this._data;
51861
+ var dataWords = data.words;
51862
+ var dataSigBytes = data.sigBytes;
51863
+ var blockSize = this.blockSize;
51864
+ var blockSizeBytes = blockSize * 4;
51865
+ var nBlocksReady = dataSigBytes / blockSizeBytes;
51866
+ if (doFlush) {
51867
+ nBlocksReady = Math2.ceil(nBlocksReady);
51868
+ } else {
51869
+ nBlocksReady = Math2.max((nBlocksReady | 0) - this._minBufferSize, 0);
51870
+ }
51871
+ var nWordsReady = nBlocksReady * blockSize;
51872
+ var nBytesReady = Math2.min(nWordsReady * 4, dataSigBytes);
51873
+ if (nWordsReady) {
51874
+ for (var offset = 0;offset < nWordsReady; offset += blockSize) {
51875
+ this._doProcessBlock(dataWords, offset);
51876
+ }
51877
+ processedWords = dataWords.splice(0, nWordsReady);
51878
+ data.sigBytes -= nBytesReady;
51879
+ }
51880
+ return new WordArray.init(processedWords, nBytesReady);
51881
+ },
51882
+ clone: function() {
51883
+ var clone3 = Base.clone.call(this);
51884
+ clone3._data = this._data.clone();
51885
+ return clone3;
51886
+ },
51887
+ _minBufferSize: 0
51888
+ });
51889
+ var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
51890
+ cfg: Base.extend(),
51891
+ init: function(cfg) {
51892
+ this.cfg = this.cfg.extend(cfg);
51893
+ this.reset();
51894
+ },
51895
+ reset: function() {
51896
+ BufferedBlockAlgorithm.reset.call(this);
51897
+ this._doReset();
51898
+ },
51899
+ update: function(messageUpdate) {
51900
+ this._append(messageUpdate);
51901
+ this._process();
51902
+ return this;
51903
+ },
51904
+ finalize: function(messageUpdate) {
51905
+ if (messageUpdate) {
51906
+ this._append(messageUpdate);
51907
+ }
51908
+ var hash22 = this._doFinalize();
51909
+ return hash22;
51910
+ },
51911
+ blockSize: 512 / 32,
51912
+ _createHelper: function(hasher) {
51913
+ return function(message, cfg) {
51914
+ return new hasher.init(cfg).finalize(message);
51915
+ };
51916
+ },
51917
+ _createHmacHelper: function(hasher) {
51918
+ return function(message, key) {
51919
+ return new C_algo.HMAC.init(hasher, key).finalize(message);
51920
+ };
51921
+ }
51922
+ });
51923
+ var C_algo = C.algo = {};
51924
+ return C;
51925
+ }(Math);
51926
+ return CryptoJS;
51927
+ });
51928
+ });
51929
+ var require_md5 = __commonJS4((exports, module) => {
51930
+ (function(root2, factory) {
51931
+ if (typeof exports === "object") {
51932
+ module.exports = exports = factory(require_core());
51933
+ } else if (typeof define === "function" && define.amd) {
51934
+ define(["./core"], factory);
51935
+ } else {
51936
+ factory(root2.CryptoJS);
51937
+ }
51938
+ })(exports, function(CryptoJS) {
51939
+ (function(Math2) {
51940
+ var C = CryptoJS;
51941
+ var C_lib = C.lib;
51942
+ var WordArray = C_lib.WordArray;
51943
+ var Hasher = C_lib.Hasher;
51944
+ var C_algo = C.algo;
51945
+ var T = [];
51946
+ (function() {
51947
+ for (var i = 0;i < 64; i++) {
51948
+ T[i] = Math2.abs(Math2.sin(i + 1)) * 4294967296 | 0;
51949
+ }
51950
+ })();
51951
+ var MD5 = C_algo.MD5 = Hasher.extend({
51952
+ _doReset: function() {
51953
+ this._hash = new WordArray.init([
51954
+ 1732584193,
51955
+ 4023233417,
51956
+ 2562383102,
51957
+ 271733878
51958
+ ]);
51959
+ },
51960
+ _doProcessBlock: function(M, offset) {
51961
+ for (var i = 0;i < 16; i++) {
51962
+ var offset_i = offset + i;
51963
+ var M_offset_i = M[offset_i];
51964
+ M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360;
51965
+ }
51966
+ var H = this._hash.words;
51967
+ var M_offset_0 = M[offset + 0];
51968
+ var M_offset_1 = M[offset + 1];
51969
+ var M_offset_2 = M[offset + 2];
51970
+ var M_offset_3 = M[offset + 3];
51971
+ var M_offset_4 = M[offset + 4];
51972
+ var M_offset_5 = M[offset + 5];
51973
+ var M_offset_6 = M[offset + 6];
51974
+ var M_offset_7 = M[offset + 7];
51975
+ var M_offset_8 = M[offset + 8];
51976
+ var M_offset_9 = M[offset + 9];
51977
+ var M_offset_10 = M[offset + 10];
51978
+ var M_offset_11 = M[offset + 11];
51979
+ var M_offset_12 = M[offset + 12];
51980
+ var M_offset_13 = M[offset + 13];
51981
+ var M_offset_14 = M[offset + 14];
51982
+ var M_offset_15 = M[offset + 15];
51983
+ var a = H[0];
51984
+ var b = H[1];
51985
+ var c = H[2];
51986
+ var d = H[3];
51987
+ a = FF(a, b, c, d, M_offset_0, 7, T[0]);
51988
+ d = FF(d, a, b, c, M_offset_1, 12, T[1]);
51989
+ c = FF(c, d, a, b, M_offset_2, 17, T[2]);
51990
+ b = FF(b, c, d, a, M_offset_3, 22, T[3]);
51991
+ a = FF(a, b, c, d, M_offset_4, 7, T[4]);
51992
+ d = FF(d, a, b, c, M_offset_5, 12, T[5]);
51993
+ c = FF(c, d, a, b, M_offset_6, 17, T[6]);
51994
+ b = FF(b, c, d, a, M_offset_7, 22, T[7]);
51995
+ a = FF(a, b, c, d, M_offset_8, 7, T[8]);
51996
+ d = FF(d, a, b, c, M_offset_9, 12, T[9]);
51997
+ c = FF(c, d, a, b, M_offset_10, 17, T[10]);
51998
+ b = FF(b, c, d, a, M_offset_11, 22, T[11]);
51999
+ a = FF(a, b, c, d, M_offset_12, 7, T[12]);
52000
+ d = FF(d, a, b, c, M_offset_13, 12, T[13]);
52001
+ c = FF(c, d, a, b, M_offset_14, 17, T[14]);
52002
+ b = FF(b, c, d, a, M_offset_15, 22, T[15]);
52003
+ a = GG(a, b, c, d, M_offset_1, 5, T[16]);
52004
+ d = GG(d, a, b, c, M_offset_6, 9, T[17]);
52005
+ c = GG(c, d, a, b, M_offset_11, 14, T[18]);
52006
+ b = GG(b, c, d, a, M_offset_0, 20, T[19]);
52007
+ a = GG(a, b, c, d, M_offset_5, 5, T[20]);
52008
+ d = GG(d, a, b, c, M_offset_10, 9, T[21]);
52009
+ c = GG(c, d, a, b, M_offset_15, 14, T[22]);
52010
+ b = GG(b, c, d, a, M_offset_4, 20, T[23]);
52011
+ a = GG(a, b, c, d, M_offset_9, 5, T[24]);
52012
+ d = GG(d, a, b, c, M_offset_14, 9, T[25]);
52013
+ c = GG(c, d, a, b, M_offset_3, 14, T[26]);
52014
+ b = GG(b, c, d, a, M_offset_8, 20, T[27]);
52015
+ a = GG(a, b, c, d, M_offset_13, 5, T[28]);
52016
+ d = GG(d, a, b, c, M_offset_2, 9, T[29]);
52017
+ c = GG(c, d, a, b, M_offset_7, 14, T[30]);
52018
+ b = GG(b, c, d, a, M_offset_12, 20, T[31]);
52019
+ a = HH(a, b, c, d, M_offset_5, 4, T[32]);
52020
+ d = HH(d, a, b, c, M_offset_8, 11, T[33]);
52021
+ c = HH(c, d, a, b, M_offset_11, 16, T[34]);
52022
+ b = HH(b, c, d, a, M_offset_14, 23, T[35]);
52023
+ a = HH(a, b, c, d, M_offset_1, 4, T[36]);
52024
+ d = HH(d, a, b, c, M_offset_4, 11, T[37]);
52025
+ c = HH(c, d, a, b, M_offset_7, 16, T[38]);
52026
+ b = HH(b, c, d, a, M_offset_10, 23, T[39]);
52027
+ a = HH(a, b, c, d, M_offset_13, 4, T[40]);
52028
+ d = HH(d, a, b, c, M_offset_0, 11, T[41]);
52029
+ c = HH(c, d, a, b, M_offset_3, 16, T[42]);
52030
+ b = HH(b, c, d, a, M_offset_6, 23, T[43]);
52031
+ a = HH(a, b, c, d, M_offset_9, 4, T[44]);
52032
+ d = HH(d, a, b, c, M_offset_12, 11, T[45]);
52033
+ c = HH(c, d, a, b, M_offset_15, 16, T[46]);
52034
+ b = HH(b, c, d, a, M_offset_2, 23, T[47]);
52035
+ a = II(a, b, c, d, M_offset_0, 6, T[48]);
52036
+ d = II(d, a, b, c, M_offset_7, 10, T[49]);
52037
+ c = II(c, d, a, b, M_offset_14, 15, T[50]);
52038
+ b = II(b, c, d, a, M_offset_5, 21, T[51]);
52039
+ a = II(a, b, c, d, M_offset_12, 6, T[52]);
52040
+ d = II(d, a, b, c, M_offset_3, 10, T[53]);
52041
+ c = II(c, d, a, b, M_offset_10, 15, T[54]);
52042
+ b = II(b, c, d, a, M_offset_1, 21, T[55]);
52043
+ a = II(a, b, c, d, M_offset_8, 6, T[56]);
52044
+ d = II(d, a, b, c, M_offset_15, 10, T[57]);
52045
+ c = II(c, d, a, b, M_offset_6, 15, T[58]);
52046
+ b = II(b, c, d, a, M_offset_13, 21, T[59]);
52047
+ a = II(a, b, c, d, M_offset_4, 6, T[60]);
52048
+ d = II(d, a, b, c, M_offset_11, 10, T[61]);
52049
+ c = II(c, d, a, b, M_offset_2, 15, T[62]);
52050
+ b = II(b, c, d, a, M_offset_9, 21, T[63]);
52051
+ H[0] = H[0] + a | 0;
52052
+ H[1] = H[1] + b | 0;
52053
+ H[2] = H[2] + c | 0;
52054
+ H[3] = H[3] + d | 0;
52055
+ },
52056
+ _doFinalize: function() {
52057
+ var data = this._data;
52058
+ var dataWords = data.words;
52059
+ var nBitsTotal = this._nDataBytes * 8;
52060
+ var nBitsLeft = data.sigBytes * 8;
52061
+ dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32;
52062
+ var nBitsTotalH = Math2.floor(nBitsTotal / 4294967296);
52063
+ var nBitsTotalL = nBitsTotal;
52064
+ dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 16711935 | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 4278255360;
52065
+ dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 16711935 | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 4278255360;
52066
+ data.sigBytes = (dataWords.length + 1) * 4;
52067
+ this._process();
52068
+ var hash22 = this._hash;
52069
+ var H = hash22.words;
52070
+ for (var i = 0;i < 4; i++) {
52071
+ var H_i = H[i];
52072
+ H[i] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360;
52073
+ }
52074
+ return hash22;
52075
+ },
52076
+ clone: function() {
52077
+ var clone3 = Hasher.clone.call(this);
52078
+ clone3._hash = this._hash.clone();
52079
+ return clone3;
52080
+ }
52081
+ });
52082
+ function FF(a, b, c, d, x, s, t) {
52083
+ var n = a + (b & c | ~b & d) + x + t;
52084
+ return (n << s | n >>> 32 - s) + b;
52085
+ }
52086
+ function GG(a, b, c, d, x, s, t) {
52087
+ var n = a + (b & d | c & ~d) + x + t;
52088
+ return (n << s | n >>> 32 - s) + b;
52089
+ }
52090
+ function HH(a, b, c, d, x, s, t) {
52091
+ var n = a + (b ^ c ^ d) + x + t;
52092
+ return (n << s | n >>> 32 - s) + b;
52093
+ }
52094
+ function II(a, b, c, d, x, s, t) {
52095
+ var n = a + (c ^ (b | ~d)) + x + t;
52096
+ return (n << s | n >>> 32 - s) + b;
52097
+ }
52098
+ C.MD5 = Hasher._createHelper(MD5);
52099
+ C.HmacMD5 = Hasher._createHmacHelper(MD5);
52100
+ })(Math);
52101
+ return CryptoJS.MD5;
52102
+ });
52103
+ });
51628
52104
  var require_constants4 = __commonJS4((exports, module) => {
51629
52105
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
51630
52106
  var hasBlob = typeof Blob !== "undefined";
@@ -51632,6 +52108,7 @@ var require_constants4 = __commonJS4((exports, module) => {
51632
52108
  BINARY_TYPES.push("blob");
51633
52109
  module.exports = {
51634
52110
  BINARY_TYPES,
52111
+ CLOSE_TIMEOUT: 30000,
51635
52112
  EMPTY_BUFFER: Buffer.alloc(0),
51636
52113
  GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
51637
52114
  hasBlob,
@@ -51985,6 +52462,10 @@ var require_permessage_deflate = __commonJS4((exports, module) => {
51985
52462
  }
51986
52463
  function inflateOnError(err) {
51987
52464
  this[kPerMessageDeflate]._inflate = null;
52465
+ if (this[kError]) {
52466
+ this[kCallback](this[kError]);
52467
+ return;
52468
+ }
51988
52469
  err[kStatusCode] = 1007;
51989
52470
  this[kCallback](err);
51990
52471
  }
@@ -53225,6 +53706,7 @@ var require_websocket = __commonJS4((exports, module) => {
53225
53706
  var { isBlob: isBlob2 } = require_validation();
53226
53707
  var {
53227
53708
  BINARY_TYPES,
53709
+ CLOSE_TIMEOUT,
53228
53710
  EMPTY_BUFFER,
53229
53711
  GUID,
53230
53712
  kForOnEventAttribute,
@@ -53238,7 +53720,6 @@ var require_websocket = __commonJS4((exports, module) => {
53238
53720
  } = require_event_target();
53239
53721
  var { format, parse: parse5 } = require_extension();
53240
53722
  var { toBuffer } = require_buffer_util();
53241
- var closeTimeout = 30 * 1000;
53242
53723
  var kAborted = Symbol("kAborted");
53243
53724
  var protocolVersions = [8, 13];
53244
53725
  var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
@@ -53278,6 +53759,7 @@ var require_websocket = __commonJS4((exports, module) => {
53278
53759
  initAsClient(this, address, protocols, options);
53279
53760
  } else {
53280
53761
  this._autoPong = options.autoPong;
53762
+ this._closeTimeout = options.closeTimeout;
53281
53763
  this._isServer = true;
53282
53764
  }
53283
53765
  }
@@ -53569,6 +54051,7 @@ var require_websocket = __commonJS4((exports, module) => {
53569
54051
  const opts = {
53570
54052
  allowSynchronousEvents: true,
53571
54053
  autoPong: true,
54054
+ closeTimeout: CLOSE_TIMEOUT,
53572
54055
  protocolVersion: protocolVersions[1],
53573
54056
  maxPayload: 100 * 1024 * 1024,
53574
54057
  skipUTF8Validation: false,
@@ -53586,6 +54069,7 @@ var require_websocket = __commonJS4((exports, module) => {
53586
54069
  port: undefined
53587
54070
  };
53588
54071
  websocket._autoPong = opts.autoPong;
54072
+ websocket._closeTimeout = opts.closeTimeout;
53589
54073
  if (!protocolVersions.includes(opts.protocolVersion)) {
53590
54074
  throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} ` + `(supported versions: ${protocolVersions.join(", ")})`);
53591
54075
  }
@@ -53924,7 +54408,7 @@ var require_websocket = __commonJS4((exports, module) => {
53924
54408
  }
53925
54409
  }
53926
54410
  function setCloseTimer(websocket) {
53927
- websocket._closeTimer = setTimeout(websocket._socket.destroy.bind(websocket._socket), closeTimeout);
54411
+ websocket._closeTimer = setTimeout(websocket._socket.destroy.bind(websocket._socket), websocket._closeTimeout);
53928
54412
  }
53929
54413
  function socketOnClose() {
53930
54414
  const websocket = this[kWebSocket];
@@ -53932,8 +54416,8 @@ var require_websocket = __commonJS4((exports, module) => {
53932
54416
  this.removeListener("data", socketOnData);
53933
54417
  this.removeListener("end", socketOnEnd);
53934
54418
  websocket._readyState = WebSocket2.CLOSING;
53935
- let chunk2;
53936
- if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (chunk2 = websocket._socket.read()) !== null) {
54419
+ if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && this._readableState.length !== 0) {
54420
+ const chunk2 = this.read(this._readableState.length);
53937
54421
  websocket._receiver.write(chunk2);
53938
54422
  }
53939
54423
  websocket._receiver.end();
@@ -54120,7 +54604,7 @@ var require_websocket_server = __commonJS4((exports, module) => {
54120
54604
  var PerMessageDeflate = require_permessage_deflate();
54121
54605
  var subprotocol = require_subprotocol();
54122
54606
  var WebSocket2 = require_websocket();
54123
- var { GUID, kWebSocket } = require_constants4();
54607
+ var { CLOSE_TIMEOUT, GUID, kWebSocket } = require_constants4();
54124
54608
  var keyRegex = /^[+/0-9A-Za-z]{22}==$/;
54125
54609
  var RUNNING = 0;
54126
54610
  var CLOSING = 1;
@@ -54137,6 +54621,7 @@ var require_websocket_server = __commonJS4((exports, module) => {
54137
54621
  perMessageDeflate: false,
54138
54622
  handleProtocols: null,
54139
54623
  clientTracking: true,
54624
+ closeTimeout: CLOSE_TIMEOUT,
54140
54625
  verifyClient: null,
54141
54626
  noServer: false,
54142
54627
  backlog: null,
@@ -54257,9 +54742,11 @@ var require_websocket_server = __commonJS4((exports, module) => {
54257
54742
  abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
54258
54743
  return;
54259
54744
  }
54260
- if (version2 !== 8 && version2 !== 13) {
54745
+ if (version2 !== 13 && version2 !== 8) {
54261
54746
  const message = "Missing or invalid Sec-WebSocket-Version header";
54262
- abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
54747
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, {
54748
+ "Sec-WebSocket-Version": "13, 8"
54749
+ });
54263
54750
  return;
54264
54751
  }
54265
54752
  if (!this.shouldHandle(req)) {
@@ -54398,13 +54885,13 @@ var require_websocket_server = __commonJS4((exports, module) => {
54398
54885
  \r
54399
54886
  ` + message);
54400
54887
  }
54401
- function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) {
54888
+ function abortHandshakeOrEmitwsClientError(server, req, socket, code, message, headers) {
54402
54889
  if (server.listenerCount("wsClientError")) {
54403
54890
  const err = new Error(message);
54404
54891
  Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
54405
54892
  server.emit("wsClientError", err, socket, req);
54406
54893
  } else {
54407
- abortHandshake(socket, code, message);
54894
+ abortHandshake(socket, code, message, headers);
54408
54895
  }
54409
54896
  }
54410
54897
  });
@@ -54480,6 +54967,9 @@ function pick3(obj, keys) {
54480
54967
  return result;
54481
54968
  }
54482
54969
  var import__4 = __toESM4(require_eventemitter33(), 1);
54970
+ function isUnsafeProperty2(key) {
54971
+ return key === "__proto__";
54972
+ }
54483
54973
  function isPlainObject4(value) {
54484
54974
  if (!value || typeof value !== "object") {
54485
54975
  return false;
@@ -54491,9 +54981,6 @@ function isPlainObject4(value) {
54491
54981
  }
54492
54982
  return Object.prototype.toString.call(value) === "[object Object]";
54493
54983
  }
54494
- function isUnsafeProperty2(key) {
54495
- return key === "__proto__";
54496
- }
54497
54984
  function merge3(target, source) {
54498
54985
  const sourceKeys = Object.keys(source);
54499
54986
  for (let i = 0;i < sourceKeys.length; i++) {
@@ -54524,8 +55011,8 @@ class MockProcess {
54524
55011
  process;
54525
55012
  constructor(opts) {
54526
55013
  this.emitter = opts?.emitter || new import__4.default;
54527
- const isNode3 = opts?.isNode ?? true;
54528
- if (isNode3) {
55014
+ const isNode22 = opts?.isNode ?? true;
55015
+ if (isNode22) {
54529
55016
  this.process = globalThis?.process;
54530
55017
  }
54531
55018
  }
@@ -54608,7 +55095,7 @@ var listenProcess = async ({ app, mockProcess, params = {}, timeout: timeout2 =
54608
55095
  };
54609
55096
  var exports_external2 = {};
54610
55097
  __export3(exports_external2, {
54611
- xor: () => xor3,
55098
+ xor: () => xor22,
54612
55099
  xid: () => xid22,
54613
55100
  void: () => _void22,
54614
55101
  uuidv7: () => uuidv72,
@@ -54619,7 +55106,7 @@ __export3(exports_external2, {
54619
55106
  url: () => url3,
54620
55107
  uppercase: () => _uppercase2,
54621
55108
  unknown: () => unknown2,
54622
- union: () => union3,
55109
+ union: () => union22,
54623
55110
  undefined: () => _undefined32,
54624
55111
  ulid: () => ulid22,
54625
55112
  uint64: () => uint642,
@@ -54707,7 +55194,7 @@ __export3(exports_external2, {
54707
55194
  iso: () => exports_iso2,
54708
55195
  ipv6: () => ipv622,
54709
55196
  ipv4: () => ipv422,
54710
- intersection: () => intersection3,
55197
+ intersection: () => intersection22,
54711
55198
  int64: () => int642,
54712
55199
  int32: () => int322,
54713
55200
  int: () => int2,
@@ -54749,7 +55236,7 @@ __export3(exports_external2, {
54749
55236
  config: () => config2,
54750
55237
  coerce: () => exports_coerce2,
54751
55238
  codec: () => codec2,
54752
- clone: () => clone3,
55239
+ clone: () => clone22,
54753
55240
  cidrv6: () => cidrv622,
54754
55241
  cidrv4: () => cidrv422,
54755
55242
  check: () => check2,
@@ -54884,7 +55371,7 @@ __export3(exports_core22, {
54884
55371
  createToJSONSchemaMethod: () => createToJSONSchemaMethod2,
54885
55372
  createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod2,
54886
55373
  config: () => config2,
54887
- clone: () => clone3,
55374
+ clone: () => clone22,
54888
55375
  _xor: () => _xor2,
54889
55376
  _xid: () => _xid2,
54890
55377
  _void: () => _void3,
@@ -55212,8 +55699,8 @@ __export3(exports_util2, {
55212
55699
  promiseAllObject: () => promiseAllObject2,
55213
55700
  primitiveTypes: () => primitiveTypes2,
55214
55701
  prefixIssues: () => prefixIssues2,
55215
- pick: () => pick22,
55216
- partial: () => partial4,
55702
+ pick: () => pick32,
55703
+ partial: () => partial22,
55217
55704
  parsedType: () => parsedType2,
55218
55705
  optionalKeys: () => optionalKeys2,
55219
55706
  omit: () => omit2,
@@ -55226,7 +55713,7 @@ __export3(exports_util2, {
55226
55713
  jsonStringifyReplacer: () => jsonStringifyReplacer2,
55227
55714
  joinValues: () => joinValues2,
55228
55715
  issue: () => issue2,
55229
- isPlainObject: () => isPlainObject23,
55716
+ isPlainObject: () => isPlainObject32,
55230
55717
  isObject: () => isObject3,
55231
55718
  hexToUint8Array: () => hexToUint8Array2,
55232
55719
  getSizableOrigin: () => getSizableOrigin2,
@@ -55242,7 +55729,7 @@ __export3(exports_util2, {
55242
55729
  defineLazy: () => defineLazy2,
55243
55730
  createTransparentProxy: () => createTransparentProxy2,
55244
55731
  cloneDef: () => cloneDef2,
55245
- clone: () => clone3,
55732
+ clone: () => clone22,
55246
55733
  cleanRegex: () => cleanRegex2,
55247
55734
  cleanEnum: () => cleanEnum2,
55248
55735
  captureStackTrace: () => captureStackTrace2,
@@ -55411,7 +55898,7 @@ var allowsEval2 = cached2(() => {
55411
55898
  return false;
55412
55899
  }
55413
55900
  });
55414
- function isPlainObject23(o) {
55901
+ function isPlainObject32(o) {
55415
55902
  if (isObject3(o) === false)
55416
55903
  return false;
55417
55904
  const ctor = o.constructor;
@@ -55428,7 +55915,7 @@ function isPlainObject23(o) {
55428
55915
  return true;
55429
55916
  }
55430
55917
  function shallowClone2(o) {
55431
- if (isPlainObject23(o))
55918
+ if (isPlainObject32(o))
55432
55919
  return { ...o };
55433
55920
  if (Array.isArray(o))
55434
55921
  return [...o];
@@ -55492,7 +55979,7 @@ var primitiveTypes2 = new Set(["string", "number", "bigint", "boolean", "symbol"
55492
55979
  function escapeRegex2(str) {
55493
55980
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
55494
55981
  }
55495
- function clone3(inst, def, params) {
55982
+ function clone22(inst, def, params) {
55496
55983
  const cl = new inst._zod.constr(def ?? inst._zod.def);
55497
55984
  if (!def || params?.parent)
55498
55985
  cl._zod.parent = inst;
@@ -55570,7 +56057,7 @@ var BIGINT_FORMAT_RANGES2 = {
55570
56057
  int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
55571
56058
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
55572
56059
  };
55573
- function pick22(schema, mask) {
56060
+ function pick32(schema, mask) {
55574
56061
  const currDef = schema._zod.def;
55575
56062
  const checks = currDef.checks;
55576
56063
  const hasChecks = checks && checks.length > 0;
@@ -55593,7 +56080,7 @@ function pick22(schema, mask) {
55593
56080
  },
55594
56081
  checks: []
55595
56082
  });
55596
- return clone3(schema, def);
56083
+ return clone22(schema, def);
55597
56084
  }
55598
56085
  function omit2(schema, mask) {
55599
56086
  const currDef = schema._zod.def;
@@ -55618,10 +56105,10 @@ function omit2(schema, mask) {
55618
56105
  },
55619
56106
  checks: []
55620
56107
  });
55621
- return clone3(schema, def);
56108
+ return clone22(schema, def);
55622
56109
  }
55623
56110
  function extend2(schema, shape) {
55624
- if (!isPlainObject23(shape)) {
56111
+ if (!isPlainObject32(shape)) {
55625
56112
  throw new Error("Invalid input to extend: expected a plain object");
55626
56113
  }
55627
56114
  const checks = schema._zod.def.checks;
@@ -55641,10 +56128,10 @@ function extend2(schema, shape) {
55641
56128
  return _shape;
55642
56129
  }
55643
56130
  });
55644
- return clone3(schema, def);
56131
+ return clone22(schema, def);
55645
56132
  }
55646
56133
  function safeExtend2(schema, shape) {
55647
- if (!isPlainObject23(shape)) {
56134
+ if (!isPlainObject32(shape)) {
55648
56135
  throw new Error("Invalid input to safeExtend: expected a plain object");
55649
56136
  }
55650
56137
  const def = mergeDefs2(schema._zod.def, {
@@ -55654,7 +56141,7 @@ function safeExtend2(schema, shape) {
55654
56141
  return _shape;
55655
56142
  }
55656
56143
  });
55657
- return clone3(schema, def);
56144
+ return clone22(schema, def);
55658
56145
  }
55659
56146
  function merge23(a, b) {
55660
56147
  const def = mergeDefs2(a._zod.def, {
@@ -55668,9 +56155,9 @@ function merge23(a, b) {
55668
56155
  },
55669
56156
  checks: []
55670
56157
  });
55671
- return clone3(a, def);
56158
+ return clone22(a, def);
55672
56159
  }
55673
- function partial4(Class2, schema, mask) {
56160
+ function partial22(Class2, schema, mask) {
55674
56161
  const currDef = schema._zod.def;
55675
56162
  const checks = currDef.checks;
55676
56163
  const hasChecks = checks && checks.length > 0;
@@ -55706,7 +56193,7 @@ function partial4(Class2, schema, mask) {
55706
56193
  },
55707
56194
  checks: []
55708
56195
  });
55709
- return clone3(schema, def);
56196
+ return clone22(schema, def);
55710
56197
  }
55711
56198
  function required2(Class2, schema, mask) {
55712
56199
  const def = mergeDefs2(schema._zod.def, {
@@ -55737,7 +56224,7 @@ function required2(Class2, schema, mask) {
55737
56224
  return shape;
55738
56225
  }
55739
56226
  });
55740
- return clone3(schema, def);
56227
+ return clone22(schema, def);
55741
56228
  }
55742
56229
  function aborted2(x, startIndex = 0) {
55743
56230
  if (x.aborted === true)
@@ -57902,7 +58389,7 @@ function mergeValues2(a, b) {
57902
58389
  if (a instanceof Date && b instanceof Date && +a === +b) {
57903
58390
  return { valid: true, data: a };
57904
58391
  }
57905
- if (isPlainObject23(a) && isPlainObject23(b)) {
58392
+ if (isPlainObject32(a) && isPlainObject32(b)) {
57906
58393
  const bKeys = Object.keys(b);
57907
58394
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
57908
58395
  const newObj = { ...a, ...b };
@@ -58056,7 +58543,7 @@ var $ZodRecord2 = /* @__PURE__ */ $constructor2("$ZodRecord", (inst, def) => {
58056
58543
  $ZodType2.init(inst, def);
58057
58544
  inst._zod.parse = (payload, ctx) => {
58058
58545
  const input = payload.value;
58059
- if (!isPlainObject23(input)) {
58546
+ if (!isPlainObject32(input)) {
58060
58547
  payload.issues.push({
58061
58548
  expected: "record",
58062
58549
  code: "invalid_type",
@@ -66183,7 +66670,7 @@ class JSONSchemaGenerator2 {
66183
66670
  var exports_json_schema2 = {};
66184
66671
  var exports_schemas22 = {};
66185
66672
  __export3(exports_schemas22, {
66186
- xor: () => xor3,
66673
+ xor: () => xor22,
66187
66674
  xid: () => xid22,
66188
66675
  void: () => _void22,
66189
66676
  uuidv7: () => uuidv72,
@@ -66192,7 +66679,7 @@ __export3(exports_schemas22, {
66192
66679
  uuid: () => uuid22,
66193
66680
  url: () => url3,
66194
66681
  unknown: () => unknown2,
66195
- union: () => union3,
66682
+ union: () => union22,
66196
66683
  undefined: () => _undefined32,
66197
66684
  ulid: () => ulid22,
66198
66685
  uint64: () => uint642,
@@ -66240,7 +66727,7 @@ __export3(exports_schemas22, {
66240
66727
  json: () => json2,
66241
66728
  ipv6: () => ipv622,
66242
66729
  ipv4: () => ipv422,
66243
- intersection: () => intersection3,
66730
+ intersection: () => intersection22,
66244
66731
  int64: () => int642,
66245
66732
  int32: () => int322,
66246
66733
  int: () => int2,
@@ -66487,7 +66974,7 @@ var ZodType2 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => {
66487
66974
  });
66488
66975
  };
66489
66976
  inst.with = inst.check;
66490
- inst.clone = (def2, params) => clone3(inst, def2, params);
66977
+ inst.clone = (def2, params) => clone22(inst, def2, params);
66491
66978
  inst.brand = () => inst;
66492
66979
  inst.register = (reg, meta22) => {
66493
66980
  reg.add(inst, meta22);
@@ -66515,8 +67002,8 @@ var ZodType2 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => {
66515
67002
  inst.nullish = () => optional2(nullable2(inst));
66516
67003
  inst.nonoptional = (params) => nonoptional2(inst, params);
66517
67004
  inst.array = () => array3(inst);
66518
- inst.or = (arg) => union3([inst, arg]);
66519
- inst.and = (arg) => intersection3(inst, arg);
67005
+ inst.or = (arg) => union22([inst, arg]);
67006
+ inst.and = (arg) => intersection22(inst, arg);
66520
67007
  inst.transform = (tx) => pipe2(inst, transform2(tx));
66521
67008
  inst.default = (def2) => _default22(inst, def2);
66522
67009
  inst.prefault = (def2) => prefault2(inst, def2);
@@ -67019,7 +67506,7 @@ var ZodUnion2 = /* @__PURE__ */ $constructor2("ZodUnion", (inst, def) => {
67019
67506
  inst._zod.processJSONSchema = (ctx, json2, params) => unionProcessor2(inst, ctx, json2, params);
67020
67507
  inst.options = def.options;
67021
67508
  });
67022
- function union3(options, params) {
67509
+ function union22(options, params) {
67023
67510
  return new ZodUnion2({
67024
67511
  type: "union",
67025
67512
  options,
@@ -67032,7 +67519,7 @@ var ZodXor2 = /* @__PURE__ */ $constructor2("ZodXor", (inst, def) => {
67032
67519
  inst._zod.processJSONSchema = (ctx, json2, params) => unionProcessor2(inst, ctx, json2, params);
67033
67520
  inst.options = def.options;
67034
67521
  });
67035
- function xor3(options, params) {
67522
+ function xor22(options, params) {
67036
67523
  return new ZodXor2({
67037
67524
  type: "union",
67038
67525
  options,
@@ -67057,7 +67544,7 @@ var ZodIntersection2 = /* @__PURE__ */ $constructor2("ZodIntersection", (inst, d
67057
67544
  ZodType2.init(inst, def);
67058
67545
  inst._zod.processJSONSchema = (ctx, json2, params) => intersectionProcessor2(inst, ctx, json2, params);
67059
67546
  });
67060
- function intersection3(left, right) {
67547
+ function intersection22(left, right) {
67061
67548
  return new ZodIntersection2({
67062
67549
  type: "intersection",
67063
67550
  left,
@@ -67100,7 +67587,7 @@ function record2(keyType, valueType, params) {
67100
67587
  });
67101
67588
  }
67102
67589
  function partialRecord2(keyType, valueType, params) {
67103
- const k = clone3(keyType);
67590
+ const k = clone22(keyType);
67104
67591
  k._zod.values = undefined;
67105
67592
  return new ZodRecord2({
67106
67593
  type: "record",
@@ -67532,7 +68019,7 @@ var stringbool2 = (...args2) => _stringbool2({
67532
68019
  }, ...args2);
67533
68020
  function json2(params) {
67534
68021
  const jsonSchema = lazy2(() => {
67535
- return union3([string23(params), number22(), boolean22(), _null32(), array3(jsonSchema), record2(string23(), jsonSchema)]);
68022
+ return union22([string23(params), number22(), boolean22(), _null32(), array3(jsonSchema), record2(string23(), jsonSchema)]);
67536
68023
  });
67537
68024
  return jsonSchema;
67538
68025
  }
@@ -68060,7 +68547,7 @@ function fillPool(bytes) {
68060
68547
  }
68061
68548
  poolOffset += bytes;
68062
68549
  }
68063
- function random3(bytes) {
68550
+ function random22(bytes) {
68064
68551
  fillPool(bytes |= 0);
68065
68552
  return pool.subarray(poolOffset - bytes, poolOffset);
68066
68553
  }
@@ -68083,12 +68570,16 @@ function customRandom2(alphabet, defaultSize, getRandom) {
68083
68570
  };
68084
68571
  }
68085
68572
  function customAlphabet2(alphabet, size = 21) {
68086
- return customRandom2(alphabet, size, random3);
68573
+ return customRandom2(alphabet, size, random22);
68087
68574
  }
68575
+ var import_md5 = __toESM4(require_md5(), 1);
68088
68576
  var nanoid32 = customAlphabet2("abcdefghijklmnopqrstuvwxyz", 16);
68089
68577
  var randomId2 = (length = 8, affix = "") => {
68090
68578
  return affix + nanoid32(length);
68091
68579
  };
68580
+ var hashIdMd5Sync = (pathKey) => {
68581
+ return import_md5.default(pathKey).toString().substring(0, 16);
68582
+ };
68092
68583
  var extractArgs = (args2) => {
68093
68584
  if (args2 && typeof args2 === "object" && typeof args2.shape === "object") {
68094
68585
  return args2.shape;
@@ -68193,12 +68684,9 @@ class Route {
68193
68684
  key = key.trim();
68194
68685
  this.path = path7;
68195
68686
  this.key = key;
68687
+ const pathKey = `${path7}$$${key}`;
68196
68688
  if (opts) {
68197
- this.id = opts.id || randomId2(12, "rand-");
68198
- if (!opts.id && opts.idUsePath) {
68199
- const delimiter = opts.delimiter ?? "$$";
68200
- this.id = path7 + delimiter + key;
68201
- }
68689
+ this.id = opts.id || hashIdMd5Sync(pathKey);
68202
68690
  this.run = opts.run;
68203
68691
  this.nextRoute = opts.nextRoute;
68204
68692
  this.description = opts.description;
@@ -68209,7 +68697,9 @@ class Route {
68209
68697
  this.path = opts.path || path7;
68210
68698
  } else {
68211
68699
  this.middleware = [];
68212
- this.id = randomId2(12, "rand-");
68700
+ }
68701
+ if (!this.id) {
68702
+ this.id = hashIdMd5Sync(pathKey);
68213
68703
  }
68214
68704
  this.isDebug = opts?.isDebug ?? false;
68215
68705
  }
@@ -68691,8 +69181,8 @@ class QueryRouterServer2 extends QueryRouter {
68691
69181
  return this.run({ path: path7, key, id, payload }, ctx);
68692
69182
  }
68693
69183
  }
68694
- var isNode3 = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
68695
- var isBrowser3 = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
69184
+ var isNode22 = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
69185
+ var isBrowser22 = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
68696
69186
  var isDeno2 = typeof Deno !== "undefined" && typeof Deno.version === "object" && typeof Deno.version.deno === "string";
68697
69187
  var isBun2 = typeof Bun !== "undefined" && typeof Bun.version === "string";
68698
69188
  var parseBody = async (req) => {
@@ -69614,22 +70104,36 @@ class App extends QueryRouterServer2 {
69614
70104
  }
69615
70105
  }
69616
70106
 
69617
- // ../node_modules/.pnpm/@kevisual+router@0.1.1/node_modules/@kevisual/router/dist/router-simple.js
70107
+ // ../node_modules/.pnpm/@kevisual+router@0.1.2/node_modules/@kevisual/router/dist/router-simple.js
69618
70108
  import url5 from "node:url";
69619
70109
  var __create5 = Object.create;
69620
70110
  var __getProtoOf5 = Object.getPrototypeOf;
69621
70111
  var __defProp5 = Object.defineProperty;
69622
70112
  var __getOwnPropNames5 = Object.getOwnPropertyNames;
69623
70113
  var __hasOwnProp5 = Object.prototype.hasOwnProperty;
70114
+ function __accessProp3(key) {
70115
+ return this[key];
70116
+ }
70117
+ var __toESMCache_node3;
70118
+ var __toESMCache_esm3;
69624
70119
  var __toESM5 = (mod, isNodeMode, target) => {
70120
+ var canCache = mod != null && typeof mod === "object";
70121
+ if (canCache) {
70122
+ var cache = isNodeMode ? __toESMCache_node3 ??= new WeakMap : __toESMCache_esm3 ??= new WeakMap;
70123
+ var cached3 = cache.get(mod);
70124
+ if (cached3)
70125
+ return cached3;
70126
+ }
69625
70127
  target = mod != null ? __create5(__getProtoOf5(mod)) : {};
69626
70128
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp5(target, "default", { value: mod, enumerable: true }) : target;
69627
70129
  for (let key of __getOwnPropNames5(mod))
69628
70130
  if (!__hasOwnProp5.call(to, key))
69629
70131
  __defProp5(to, key, {
69630
- get: () => mod[key],
70132
+ get: __accessProp3.bind(mod, key),
69631
70133
  enumerable: true
69632
70134
  });
70135
+ if (canCache)
70136
+ cache.set(mod, to);
69633
70137
  return to;
69634
70138
  };
69635
70139
  var __commonJS5 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
@@ -69659,7 +70163,7 @@ var require_dist = __commonJS5((exports) => {
69659
70163
  function escapeText(str) {
69660
70164
  return str.replace(/[{}()\[\]+?!:*\\]/g, "\\$&");
69661
70165
  }
69662
- function escape2(str) {
70166
+ function escape3(str) {
69663
70167
  return str.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
69664
70168
  }
69665
70169
 
@@ -69874,8 +70378,8 @@ var require_dist = __commonJS5((exports) => {
69874
70378
  }
69875
70379
  let pattern2 = `^(?:${sources.join("|")})`;
69876
70380
  if (trailing)
69877
- pattern2 += `(?:${escape2(delimiter)}$)?`;
69878
- pattern2 += end ? "$" : `(?=${escape2(delimiter)}|$)`;
70381
+ pattern2 += `(?:${escape3(delimiter)}$)?`;
70382
+ pattern2 += end ? "$" : `(?=${escape3(delimiter)}|$)`;
69879
70383
  const regexp = new RegExp(pattern2, flags);
69880
70384
  return { regexp, keys };
69881
70385
  }
@@ -69908,7 +70412,7 @@ var require_dist = __commonJS5((exports) => {
69908
70412
  let isSafeSegmentParam = true;
69909
70413
  for (const token of tokens) {
69910
70414
  if (token.type === "text") {
69911
- result += escape2(token.value);
70415
+ result += escape3(token.value);
69912
70416
  backtrack += token.value;
69913
70417
  isSafeSegmentParam || (isSafeSegmentParam = token.value.includes(delimiter));
69914
70418
  continue;
@@ -69933,13 +70437,13 @@ var require_dist = __commonJS5((exports) => {
69933
70437
  function negate2(delimiter, backtrack) {
69934
70438
  if (backtrack.length < 2) {
69935
70439
  if (delimiter.length < 2)
69936
- return `[^${escape2(delimiter + backtrack)}]`;
69937
- return `(?:(?!${escape2(delimiter)})[^${escape2(backtrack)}])`;
70440
+ return `[^${escape3(delimiter + backtrack)}]`;
70441
+ return `(?:(?!${escape3(delimiter)})[^${escape3(backtrack)}])`;
69938
70442
  }
69939
70443
  if (delimiter.length < 2) {
69940
- return `(?:(?!${escape2(backtrack)})[^${escape2(delimiter)}])`;
70444
+ return `(?:(?!${escape3(backtrack)})[^${escape3(delimiter)}])`;
69941
70445
  }
69942
- return `(?:(?!${escape2(backtrack)}|${escape2(delimiter)})[\\s\\S])`;
70446
+ return `(?:(?!${escape3(backtrack)}|${escape3(delimiter)})[\\s\\S])`;
69943
70447
  }
69944
70448
  function stringifyTokens(tokens) {
69945
70449
  let value = "";
@@ -69984,8 +70488,8 @@ var require_dist = __commonJS5((exports) => {
69984
70488
  }
69985
70489
  });
69986
70490
  var import_path_to_regexp = __toESM5(require_dist(), 1);
69987
- var isNode4 = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
69988
- var isBrowser4 = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
70491
+ var isNode3 = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
70492
+ var isBrowser3 = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
69989
70493
  var isDeno3 = typeof Deno !== "undefined" && typeof Deno.version === "object" && typeof Deno.version.deno === "string";
69990
70494
  var isBun3 = typeof Bun !== "undefined" && typeof Bun.version === "string";
69991
70495
  var parseBody2 = async (req) => {
@@ -73354,7 +73858,7 @@ class ModuleResolver {
73354
73858
  // ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
73355
73859
  var exports_external3 = {};
73356
73860
  __export(exports_external3, {
73357
- xor: () => xor4,
73861
+ xor: () => xor3,
73358
73862
  xid: () => xid6,
73359
73863
  void: () => _void6,
73360
73864
  uuidv7: () => uuidv73,
@@ -73365,7 +73869,7 @@ __export(exports_external3, {
73365
73869
  url: () => url6,
73366
73870
  uppercase: () => _uppercase3,
73367
73871
  unknown: () => unknown3,
73368
- union: () => union4,
73872
+ union: () => union3,
73369
73873
  undefined: () => _undefined8,
73370
73874
  ulid: () => ulid6,
73371
73875
  uint64: () => uint643,
@@ -73453,7 +73957,7 @@ __export(exports_external3, {
73453
73957
  iso: () => exports_iso3,
73454
73958
  ipv6: () => ipv66,
73455
73959
  ipv4: () => ipv46,
73456
- intersection: () => intersection4,
73960
+ intersection: () => intersection3,
73457
73961
  int64: () => int643,
73458
73962
  int32: () => int323,
73459
73963
  int: () => int3,
@@ -73495,7 +73999,7 @@ __export(exports_external3, {
73495
73999
  config: () => config4,
73496
74000
  coerce: () => exports_coerce3,
73497
74001
  codec: () => codec3,
73498
- clone: () => clone4,
74002
+ clone: () => clone3,
73499
74003
  cidrv6: () => cidrv66,
73500
74004
  cidrv4: () => cidrv46,
73501
74005
  check: () => check3,
@@ -73632,7 +74136,7 @@ __export(exports_core3, {
73632
74136
  createToJSONSchemaMethod: () => createToJSONSchemaMethod3,
73633
74137
  createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod3,
73634
74138
  config: () => config4,
73635
- clone: () => clone4,
74139
+ clone: () => clone3,
73636
74140
  _xor: () => _xor3,
73637
74141
  _xid: () => _xid3,
73638
74142
  _void: () => _void5,
@@ -73964,7 +74468,7 @@ __export(exports_util3, {
73964
74468
  primitiveTypes: () => primitiveTypes3,
73965
74469
  prefixIssues: () => prefixIssues3,
73966
74470
  pick: () => pick5,
73967
- partial: () => partial5,
74471
+ partial: () => partial4,
73968
74472
  parsedType: () => parsedType3,
73969
74473
  optionalKeys: () => optionalKeys3,
73970
74474
  omit: () => omit3,
@@ -73993,7 +74497,7 @@ __export(exports_util3, {
73993
74497
  defineLazy: () => defineLazy3,
73994
74498
  createTransparentProxy: () => createTransparentProxy3,
73995
74499
  cloneDef: () => cloneDef3,
73996
- clone: () => clone4,
74500
+ clone: () => clone3,
73997
74501
  cleanRegex: () => cleanRegex3,
73998
74502
  cleanEnum: () => cleanEnum3,
73999
74503
  captureStackTrace: () => captureStackTrace3,
@@ -74243,7 +74747,7 @@ var primitiveTypes3 = new Set(["string", "number", "bigint", "boolean", "symbol"
74243
74747
  function escapeRegex3(str) {
74244
74748
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
74245
74749
  }
74246
- function clone4(inst, def, params) {
74750
+ function clone3(inst, def, params) {
74247
74751
  const cl = new inst._zod.constr(def ?? inst._zod.def);
74248
74752
  if (!def || params?.parent)
74249
74753
  cl._zod.parent = inst;
@@ -74344,7 +74848,7 @@ function pick5(schema, mask) {
74344
74848
  },
74345
74849
  checks: []
74346
74850
  });
74347
- return clone4(schema, def);
74851
+ return clone3(schema, def);
74348
74852
  }
74349
74853
  function omit3(schema, mask) {
74350
74854
  const currDef = schema._zod.def;
@@ -74369,7 +74873,7 @@ function omit3(schema, mask) {
74369
74873
  },
74370
74874
  checks: []
74371
74875
  });
74372
- return clone4(schema, def);
74876
+ return clone3(schema, def);
74373
74877
  }
74374
74878
  function extend3(schema, shape) {
74375
74879
  if (!isPlainObject5(shape)) {
@@ -74392,7 +74896,7 @@ function extend3(schema, shape) {
74392
74896
  return _shape;
74393
74897
  }
74394
74898
  });
74395
- return clone4(schema, def);
74899
+ return clone3(schema, def);
74396
74900
  }
74397
74901
  function safeExtend3(schema, shape) {
74398
74902
  if (!isPlainObject5(shape)) {
@@ -74405,7 +74909,7 @@ function safeExtend3(schema, shape) {
74405
74909
  return _shape;
74406
74910
  }
74407
74911
  });
74408
- return clone4(schema, def);
74912
+ return clone3(schema, def);
74409
74913
  }
74410
74914
  function merge4(a, b) {
74411
74915
  const def = mergeDefs3(a._zod.def, {
@@ -74419,9 +74923,9 @@ function merge4(a, b) {
74419
74923
  },
74420
74924
  checks: []
74421
74925
  });
74422
- return clone4(a, def);
74926
+ return clone3(a, def);
74423
74927
  }
74424
- function partial5(Class3, schema, mask) {
74928
+ function partial4(Class3, schema, mask) {
74425
74929
  const currDef = schema._zod.def;
74426
74930
  const checks = currDef.checks;
74427
74931
  const hasChecks = checks && checks.length > 0;
@@ -74457,7 +74961,7 @@ function partial5(Class3, schema, mask) {
74457
74961
  },
74458
74962
  checks: []
74459
74963
  });
74460
- return clone4(schema, def);
74964
+ return clone3(schema, def);
74461
74965
  }
74462
74966
  function required3(Class3, schema, mask) {
74463
74967
  const def = mergeDefs3(schema._zod.def, {
@@ -74488,7 +74992,7 @@ function required3(Class3, schema, mask) {
74488
74992
  return shape;
74489
74993
  }
74490
74994
  });
74491
- return clone4(schema, def);
74995
+ return clone3(schema, def);
74492
74996
  }
74493
74997
  function aborted3(x, startIndex = 0) {
74494
74998
  if (x.aborted === true)
@@ -85005,7 +85509,7 @@ var exports_json_schema3 = {};
85005
85509
  // ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
85006
85510
  var exports_schemas3 = {};
85007
85511
  __export(exports_schemas3, {
85008
- xor: () => xor4,
85512
+ xor: () => xor3,
85009
85513
  xid: () => xid6,
85010
85514
  void: () => _void6,
85011
85515
  uuidv7: () => uuidv73,
@@ -85014,7 +85518,7 @@ __export(exports_schemas3, {
85014
85518
  uuid: () => uuid8,
85015
85519
  url: () => url6,
85016
85520
  unknown: () => unknown3,
85017
- union: () => union4,
85521
+ union: () => union3,
85018
85522
  undefined: () => _undefined8,
85019
85523
  ulid: () => ulid6,
85020
85524
  uint64: () => uint643,
@@ -85062,7 +85566,7 @@ __export(exports_schemas3, {
85062
85566
  json: () => json3,
85063
85567
  ipv6: () => ipv66,
85064
85568
  ipv4: () => ipv46,
85065
- intersection: () => intersection4,
85569
+ intersection: () => intersection3,
85066
85570
  int64: () => int643,
85067
85571
  int32: () => int323,
85068
85572
  int: () => int3,
@@ -85319,7 +85823,7 @@ var ZodType3 = /* @__PURE__ */ $constructor3("ZodType", (inst, def) => {
85319
85823
  });
85320
85824
  };
85321
85825
  inst.with = inst.check;
85322
- inst.clone = (def2, params) => clone4(inst, def2, params);
85826
+ inst.clone = (def2, params) => clone3(inst, def2, params);
85323
85827
  inst.brand = () => inst;
85324
85828
  inst.register = (reg, meta4) => {
85325
85829
  reg.add(inst, meta4);
@@ -85347,8 +85851,8 @@ var ZodType3 = /* @__PURE__ */ $constructor3("ZodType", (inst, def) => {
85347
85851
  inst.nullish = () => optional3(nullable3(inst));
85348
85852
  inst.nonoptional = (params) => nonoptional3(inst, params);
85349
85853
  inst.array = () => array4(inst);
85350
- inst.or = (arg) => union4([inst, arg]);
85351
- inst.and = (arg) => intersection4(inst, arg);
85854
+ inst.or = (arg) => union3([inst, arg]);
85855
+ inst.and = (arg) => intersection3(inst, arg);
85352
85856
  inst.transform = (tx) => pipe3(inst, transform3(tx));
85353
85857
  inst.default = (def2) => _default6(inst, def2);
85354
85858
  inst.prefault = (def2) => prefault3(inst, def2);
@@ -85851,7 +86355,7 @@ var ZodUnion3 = /* @__PURE__ */ $constructor3("ZodUnion", (inst, def) => {
85851
86355
  inst._zod.processJSONSchema = (ctx, json3, params) => unionProcessor3(inst, ctx, json3, params);
85852
86356
  inst.options = def.options;
85853
86357
  });
85854
- function union4(options, params) {
86358
+ function union3(options, params) {
85855
86359
  return new ZodUnion3({
85856
86360
  type: "union",
85857
86361
  options,
@@ -85864,7 +86368,7 @@ var ZodXor3 = /* @__PURE__ */ $constructor3("ZodXor", (inst, def) => {
85864
86368
  inst._zod.processJSONSchema = (ctx, json3, params) => unionProcessor3(inst, ctx, json3, params);
85865
86369
  inst.options = def.options;
85866
86370
  });
85867
- function xor4(options, params) {
86371
+ function xor3(options, params) {
85868
86372
  return new ZodXor3({
85869
86373
  type: "union",
85870
86374
  options,
@@ -85889,7 +86393,7 @@ var ZodIntersection3 = /* @__PURE__ */ $constructor3("ZodIntersection", (inst, d
85889
86393
  ZodType3.init(inst, def);
85890
86394
  inst._zod.processJSONSchema = (ctx, json3, params) => intersectionProcessor3(inst, ctx, json3, params);
85891
86395
  });
85892
- function intersection4(left, right) {
86396
+ function intersection3(left, right) {
85893
86397
  return new ZodIntersection3({
85894
86398
  type: "intersection",
85895
86399
  left,
@@ -85932,7 +86436,7 @@ function record3(keyType, valueType, params) {
85932
86436
  });
85933
86437
  }
85934
86438
  function partialRecord3(keyType, valueType, params) {
85935
- const k = clone4(keyType);
86439
+ const k = clone3(keyType);
85936
86440
  k._zod.values = undefined;
85937
86441
  return new ZodRecord3({
85938
86442
  type: "record",
@@ -86364,7 +86868,7 @@ var stringbool3 = (...args2) => _stringbool3({
86364
86868
  }, ...args2);
86365
86869
  function json3(params) {
86366
86870
  const jsonSchema = lazy3(() => {
86367
- return union4([string7(params), number7(), boolean7(), _null8(), array4(jsonSchema), record3(string7(), jsonSchema)]);
86871
+ return union3([string7(params), number7(), boolean7(), _null8(), array4(jsonSchema), record3(string7(), jsonSchema)]);
86368
86872
  });
86369
86873
  return jsonSchema;
86370
86874
  }
@@ -86887,8 +87391,8 @@ config4(en_default3());
86887
87391
  var zod_default = exports_external3;
86888
87392
 
86889
87393
  // ../node_modules/.pnpm/@kevisual+context@0.0.8/node_modules/@kevisual/context/dist/app.js
86890
- var isBrowser5 = typeof window !== "undefined" && typeof document !== "undefined";
86891
- var isBrowser22 = typeof window !== "undefined" && typeof window.document !== "undefined";
87394
+ var isBrowser4 = typeof window !== "undefined" && typeof document !== "undefined";
87395
+ var isBrowser23 = typeof window !== "undefined" && typeof window.document !== "undefined";
86892
87396
  function getDefaultExportFromCjs4(x) {
86893
87397
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
86894
87398
  }
@@ -87448,7 +87952,7 @@ var useKey2 = (envKey, initKey = "context") => {
87448
87952
  if (typeof _env[key] !== "undefined") {
87449
87953
  return _env[key];
87450
87954
  }
87451
- if (!isBrowser5) {
87955
+ if (!isBrowser4) {
87452
87956
  const nodeEev = gt2?.process?.env;
87453
87957
  if (typeof nodeEev !== "undefined") {
87454
87958
  const value = nodeEev[key];