@push.rocks/smartsocket 2.0.20 → 2.0.22

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.
@@ -34,7 +34,7 @@ var require_dist_ts = __commonJS({
34
34
  "use strict";
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.getFirstTrueOrFalse = exports.timeoutAndContinue = exports.timeoutWrap = exports.map = exports.rejectedPromise = exports.resolvedPromise = exports.defer = exports.Deferred = void 0;
37
- var Deferred3 = class {
37
+ var Deferred2 = class {
38
38
  constructor() {
39
39
  this.promise = new Promise((resolve, reject) => {
40
40
  this.resolve = (valueArg) => {
@@ -59,9 +59,9 @@ var require_dist_ts = __commonJS({
59
59
  }
60
60
  }
61
61
  };
62
- exports.Deferred = Deferred3;
62
+ exports.Deferred = Deferred2;
63
63
  exports.defer = () => {
64
- return new Deferred3();
64
+ return new Deferred2();
65
65
  };
66
66
  exports.resolvedPromise = (value) => {
67
67
  return Promise.resolve(value);
@@ -120,96 +120,14 @@ var require_dist_ts2 = __commonJS({
120
120
  "use strict";
121
121
  Object.defineProperty(exports, "__esModule", { value: true });
122
122
  exports.uni = void 0;
123
- var uni3 = (prefix = "uni") => {
123
+ var uni2 = (prefix = "uni") => {
124
124
  return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
125
125
  const r = Math.random() * 16 | 0;
126
126
  const v = c === "x" ? r : r & 3 | 8;
127
127
  return v.toString(16);
128
128
  })}`;
129
129
  };
130
- exports.uni = uni3;
131
- }
132
- });
133
-
134
- // node_modules/.pnpm/@pushrocks+smartdelay@2.0.13/node_modules/@pushrocks/smartdelay/dist_ts/index.js
135
- var require_dist_ts3 = __commonJS({
136
- "node_modules/.pnpm/@pushrocks+smartdelay@2.0.13/node_modules/@pushrocks/smartdelay/dist_ts/index.js"(exports) {
137
- "use strict";
138
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
139
- if (k2 === void 0)
140
- k2 = k;
141
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
142
- return m[k];
143
- } });
144
- } : function(o, m, k, k2) {
145
- if (k2 === void 0)
146
- k2 = k;
147
- o[k2] = m[k];
148
- });
149
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
150
- Object.defineProperty(o, "default", { enumerable: true, value: v });
151
- } : function(o, v) {
152
- o["default"] = v;
153
- });
154
- var __importStar = exports && exports.__importStar || function(mod) {
155
- if (mod && mod.__esModule)
156
- return mod;
157
- var result = {};
158
- if (mod != null) {
159
- for (var k in mod)
160
- if (k !== "default" && Object.hasOwnProperty.call(mod, k))
161
- __createBinding(result, mod, k);
162
- }
163
- __setModuleDefault(result, mod);
164
- return result;
165
- };
166
- Object.defineProperty(exports, "__esModule", { value: true });
167
- exports.Timeout = exports.delayForRandom = exports.delayFor = void 0;
168
- var smartpromise6 = __importStar(require_dist_ts());
169
- exports.delayFor = async (timeInMillisecondArg, passOnArg, unrefedArg = false) => {
170
- const timeout = new Timeout2(timeInMillisecondArg, null, unrefedArg);
171
- await timeout.promise;
172
- return passOnArg;
173
- };
174
- exports.delayForRandom = async (timeMinInMillisecondArg, timeMaxInMillisecondArg, passOnArg, unrefedArg = false) => {
175
- await exports.delayFor(Math.random() * (timeMaxInMillisecondArg - timeMinInMillisecondArg) + timeMinInMillisecondArg, null, unrefedArg);
176
- return passOnArg;
177
- };
178
- var Timeout2 = class {
179
- constructor(timeInMillisecondArg, passOn, unrefedArg = false) {
180
- this._cancelled = false;
181
- this.timeoutInMillis = timeInMillisecondArg;
182
- this._deferred = smartpromise6.defer();
183
- this.promise = this._deferred.promise;
184
- this._timeout = setTimeout(() => {
185
- if (!this._cancelled) {
186
- this._deferred.resolve(passOn);
187
- }
188
- }, timeInMillisecondArg);
189
- this.started = Date.now();
190
- if (unrefedArg) {
191
- this.makeUnrefed();
192
- }
193
- }
194
- /**
195
- * unreffing a timeout causes the node process to not wait for completion before exit
196
- */
197
- makeUnrefed() {
198
- this._timeout.unref();
199
- }
200
- /**
201
- * cancels the timer
202
- */
203
- cancel() {
204
- this._cancelled = true;
205
- clearTimeout(this._timeout);
206
- }
207
- getTimeLeft() {
208
- const result = this.started + this.timeoutInMillis - Date.now();
209
- return result > 0 ? result : 0;
210
- }
211
- };
212
- exports.Timeout = Timeout2;
130
+ exports.uni = uni2;
213
131
  }
214
132
  });
215
133
 
@@ -868,7 +786,7 @@ var require_SymbolTree = __commonJS({
868
786
  */
869
787
  childrenToArray(parent, options) {
870
788
  const array = options && options.array || [];
871
- const filter = options && options.filter || returnTrue;
789
+ const filter2 = options && options.filter || returnTrue;
872
790
  const thisArg = options && options.thisArg || void 0;
873
791
  const parentNode = this._node(parent);
874
792
  let object = parentNode.firstChild;
@@ -876,7 +794,7 @@ var require_SymbolTree = __commonJS({
876
794
  while (object) {
877
795
  const node = this._node(object);
878
796
  node.setCachedIndex(parentNode, index);
879
- if (filter.call(thisArg, object)) {
797
+ if (filter2.call(thisArg, object)) {
880
798
  array.push(object);
881
799
  }
882
800
  object = node.nextSibling;
@@ -902,11 +820,11 @@ var require_SymbolTree = __commonJS({
902
820
  */
903
821
  ancestorsToArray(object, options) {
904
822
  const array = options && options.array || [];
905
- const filter = options && options.filter || returnTrue;
823
+ const filter2 = options && options.filter || returnTrue;
906
824
  const thisArg = options && options.thisArg || void 0;
907
825
  let ancestor = object;
908
826
  while (ancestor) {
909
- if (filter.call(thisArg, ancestor)) {
827
+ if (filter2.call(thisArg, ancestor)) {
910
828
  array.push(ancestor);
911
829
  }
912
830
  ancestor = this._node(ancestor).parent;
@@ -931,11 +849,11 @@ var require_SymbolTree = __commonJS({
931
849
  */
932
850
  treeToArray(root, options) {
933
851
  const array = options && options.array || [];
934
- const filter = options && options.filter || returnTrue;
852
+ const filter2 = options && options.filter || returnTrue;
935
853
  const thisArg = options && options.thisArg || void 0;
936
854
  let object = root;
937
855
  while (object) {
938
- if (filter.call(thisArg, object)) {
856
+ if (filter2.call(thisArg, object)) {
939
857
  array.push(object);
940
858
  }
941
859
  object = this.following(object, { root });
@@ -1347,19 +1265,19 @@ var require_SymbolTree = __commonJS({
1347
1265
  });
1348
1266
 
1349
1267
  // node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js
1350
- var require_dist_ts4 = __commonJS({
1268
+ var require_dist_ts3 = __commonJS({
1351
1269
  "node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js"(exports) {
1352
1270
  "use strict";
1353
1271
  Object.defineProperty(exports, "__esModule", { value: true });
1354
1272
  exports.uni = void 0;
1355
- var uni3 = (prefix = "uni") => {
1273
+ var uni2 = (prefix = "uni") => {
1356
1274
  return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
1357
1275
  const r = Math.random() * 16 | 0;
1358
1276
  const v = c === "x" ? r : r & 3 | 8;
1359
1277
  return v.toString(16);
1360
1278
  })}`;
1361
1279
  };
1362
- exports.uni = uni3;
1280
+ exports.uni = uni2;
1363
1281
  }
1364
1282
  });
1365
1283
 
@@ -3116,8 +3034,8 @@ var require_buffer = __commonJS({
3116
3034
  }
3117
3035
  return str;
3118
3036
  }
3119
- function utf8ToBytes(string, units3) {
3120
- units3 = units3 || Infinity;
3037
+ function utf8ToBytes(string, units2) {
3038
+ units2 = units2 || Infinity;
3121
3039
  let codePoint;
3122
3040
  const length = string.length;
3123
3041
  let leadSurrogate = null;
@@ -3127,11 +3045,11 @@ var require_buffer = __commonJS({
3127
3045
  if (codePoint > 55295 && codePoint < 57344) {
3128
3046
  if (!leadSurrogate) {
3129
3047
  if (codePoint > 56319) {
3130
- if ((units3 -= 3) > -1)
3048
+ if ((units2 -= 3) > -1)
3131
3049
  bytes.push(239, 191, 189);
3132
3050
  continue;
3133
3051
  } else if (i + 1 === length) {
3134
- if ((units3 -= 3) > -1)
3052
+ if ((units2 -= 3) > -1)
3135
3053
  bytes.push(239, 191, 189);
3136
3054
  continue;
3137
3055
  }
@@ -3139,30 +3057,30 @@ var require_buffer = __commonJS({
3139
3057
  continue;
3140
3058
  }
3141
3059
  if (codePoint < 56320) {
3142
- if ((units3 -= 3) > -1)
3060
+ if ((units2 -= 3) > -1)
3143
3061
  bytes.push(239, 191, 189);
3144
3062
  leadSurrogate = codePoint;
3145
3063
  continue;
3146
3064
  }
3147
3065
  codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
3148
3066
  } else if (leadSurrogate) {
3149
- if ((units3 -= 3) > -1)
3067
+ if ((units2 -= 3) > -1)
3150
3068
  bytes.push(239, 191, 189);
3151
3069
  }
3152
3070
  leadSurrogate = null;
3153
3071
  if (codePoint < 128) {
3154
- if ((units3 -= 1) < 0)
3072
+ if ((units2 -= 1) < 0)
3155
3073
  break;
3156
3074
  bytes.push(codePoint);
3157
3075
  } else if (codePoint < 2048) {
3158
- if ((units3 -= 2) < 0)
3076
+ if ((units2 -= 2) < 0)
3159
3077
  break;
3160
3078
  bytes.push(
3161
3079
  codePoint >> 6 | 192,
3162
3080
  codePoint & 63 | 128
3163
3081
  );
3164
3082
  } else if (codePoint < 65536) {
3165
- if ((units3 -= 3) < 0)
3083
+ if ((units2 -= 3) < 0)
3166
3084
  break;
3167
3085
  bytes.push(
3168
3086
  codePoint >> 12 | 224,
@@ -3170,7 +3088,7 @@ var require_buffer = __commonJS({
3170
3088
  codePoint & 63 | 128
3171
3089
  );
3172
3090
  } else if (codePoint < 1114112) {
3173
- if ((units3 -= 4) < 0)
3091
+ if ((units2 -= 4) < 0)
3174
3092
  break;
3175
3093
  bytes.push(
3176
3094
  codePoint >> 18 | 240,
@@ -3191,11 +3109,11 @@ var require_buffer = __commonJS({
3191
3109
  }
3192
3110
  return byteArray;
3193
3111
  }
3194
- function utf16leToBytes(str, units3) {
3112
+ function utf16leToBytes(str, units2) {
3195
3113
  let c, hi, lo;
3196
3114
  const byteArray = [];
3197
3115
  for (let i = 0; i < str.length; ++i) {
3198
- if ((units3 -= 2) < 0)
3116
+ if ((units2 -= 2) < 0)
3199
3117
  break;
3200
3118
  c = str.charCodeAt(i);
3201
3119
  hi = c >> 8;
@@ -3261,7 +3179,7 @@ var require_punycode = __commonJS({
3261
3179
  function error(type) {
3262
3180
  throw new RangeError(errors[type]);
3263
3181
  }
3264
- function map4(array, fn) {
3182
+ function map3(array, fn) {
3265
3183
  var length = array.length;
3266
3184
  var result = [];
3267
3185
  while (length--) {
@@ -3278,7 +3196,7 @@ var require_punycode = __commonJS({
3278
3196
  }
3279
3197
  string = string.replace(regexSeparators, ".");
3280
3198
  var labels = string.split(".");
3281
- var encoded = map4(labels, fn).join(".");
3199
+ var encoded = map3(labels, fn).join(".");
3282
3200
  return result + encoded;
3283
3201
  }
3284
3202
  function ucs2decode(string) {
@@ -3300,7 +3218,7 @@ var require_punycode = __commonJS({
3300
3218
  return output;
3301
3219
  }
3302
3220
  function ucs2encode(array) {
3303
- return map4(array, function(value) {
3221
+ return map3(array, function(value) {
3304
3222
  var output = "";
3305
3223
  if (value > 65535) {
3306
3224
  value -= 65536;
@@ -4916,7 +4834,7 @@ var require_stringify = __commonJS({
4916
4834
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
4917
4835
  };
4918
4836
  var sentinel = {};
4919
- var stringify2 = function stringify3(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
4837
+ var stringify2 = function stringify3(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
4920
4838
  var obj = object;
4921
4839
  var tmpSc = sideChannel;
4922
4840
  var step = 0;
@@ -4935,8 +4853,8 @@ var require_stringify = __commonJS({
4935
4853
  step = 0;
4936
4854
  }
4937
4855
  }
4938
- if (typeof filter === "function") {
4939
- obj = filter(prefix, obj);
4856
+ if (typeof filter2 === "function") {
4857
+ obj = filter2(prefix, obj);
4940
4858
  } else if (obj instanceof Date) {
4941
4859
  obj = serializeDate(obj);
4942
4860
  } else if (generateArrayPrefix === "comma" && isArray2(obj)) {
@@ -4970,8 +4888,8 @@ var require_stringify = __commonJS({
4970
4888
  obj = utils.maybeMap(obj, encoder);
4971
4889
  }
4972
4890
  objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
4973
- } else if (isArray2(filter)) {
4974
- objKeys = filter;
4891
+ } else if (isArray2(filter2)) {
4892
+ objKeys = filter2;
4975
4893
  } else {
4976
4894
  var keys = Object.keys(obj);
4977
4895
  objKeys = sort ? keys.sort(sort) : keys;
@@ -4995,7 +4913,7 @@ var require_stringify = __commonJS({
4995
4913
  strictNullHandling,
4996
4914
  skipNulls,
4997
4915
  generateArrayPrefix === "comma" && encodeValuesOnly && isArray2(obj) ? null : encoder,
4998
- filter,
4916
+ filter2,
4999
4917
  sort,
5000
4918
  allowDots,
5001
4919
  serializeDate,
@@ -5027,9 +4945,9 @@ var require_stringify = __commonJS({
5027
4945
  format = opts.format;
5028
4946
  }
5029
4947
  var formatter = formats.formatters[format];
5030
- var filter = defaults.filter;
4948
+ var filter2 = defaults.filter;
5031
4949
  if (typeof opts.filter === "function" || isArray2(opts.filter)) {
5032
- filter = opts.filter;
4950
+ filter2 = opts.filter;
5033
4951
  }
5034
4952
  return {
5035
4953
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
@@ -5040,7 +4958,7 @@ var require_stringify = __commonJS({
5040
4958
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
5041
4959
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
5042
4960
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
5043
- filter,
4961
+ filter: filter2,
5044
4962
  format,
5045
4963
  formatter,
5046
4964
  serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
@@ -5053,13 +4971,13 @@ var require_stringify = __commonJS({
5053
4971
  var obj = object;
5054
4972
  var options = normalizeStringifyOptions(opts);
5055
4973
  var objKeys;
5056
- var filter;
4974
+ var filter2;
5057
4975
  if (typeof options.filter === "function") {
5058
- filter = options.filter;
5059
- obj = filter("", obj);
4976
+ filter2 = options.filter;
4977
+ obj = filter2("", obj);
5060
4978
  } else if (isArray2(options.filter)) {
5061
- filter = options.filter;
5062
- objKeys = filter;
4979
+ filter2 = options.filter;
4980
+ objKeys = filter2;
5063
4981
  }
5064
4982
  var keys = [];
5065
4983
  if (typeof obj !== "object" || obj === null) {
@@ -6216,9 +6134,9 @@ var require_lodash = __commonJS({
6216
6134
  var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
6217
6135
  var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
6218
6136
  var moduleExports = freeModule && freeModule.exports === freeExports;
6219
- function addMapEntry(map4, pair) {
6220
- map4.set(pair[0], pair[1]);
6221
- return map4;
6137
+ function addMapEntry(map3, pair) {
6138
+ map3.set(pair[0], pair[1]);
6139
+ return map3;
6222
6140
  }
6223
6141
  function addSetEntry(set, value) {
6224
6142
  set.add(value);
@@ -6270,9 +6188,9 @@ var require_lodash = __commonJS({
6270
6188
  }
6271
6189
  return result;
6272
6190
  }
6273
- function mapToArray(map4) {
6274
- var index = -1, result = Array(map4.size);
6275
- map4.forEach(function(value, key) {
6191
+ function mapToArray(map3) {
6192
+ var index = -1, result = Array(map3.size);
6193
+ map3.forEach(function(value, key) {
6276
6194
  result[++index] = [key, value];
6277
6195
  });
6278
6196
  return result;
@@ -6602,9 +6520,9 @@ var require_lodash = __commonJS({
6602
6520
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
6603
6521
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
6604
6522
  }
6605
- function cloneMap(map4, isDeep, cloneFunc) {
6606
- var array = isDeep ? cloneFunc(mapToArray(map4), true) : mapToArray(map4);
6607
- return arrayReduce(array, addMapEntry, new map4.constructor());
6523
+ function cloneMap(map3, isDeep, cloneFunc) {
6524
+ var array = isDeep ? cloneFunc(mapToArray(map3), true) : mapToArray(map3);
6525
+ return arrayReduce(array, addMapEntry, new map3.constructor());
6608
6526
  }
6609
6527
  function cloneRegExp(regexp) {
6610
6528
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
@@ -6646,8 +6564,8 @@ var require_lodash = __commonJS({
6646
6564
  function getAllKeys(object) {
6647
6565
  return baseGetAllKeys(object, keys, getSymbols);
6648
6566
  }
6649
- function getMapData(map4, key) {
6650
- var data = map4.__data__;
6567
+ function getMapData(map3, key) {
6568
+ var data = map3.__data__;
6651
6569
  return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
6652
6570
  }
6653
6571
  function getNative(object, key) {
@@ -7040,19 +6958,19 @@ var Smartenv = class {
7040
6958
  var isounique3 = __toESM(require_dist_ts2(), 1);
7041
6959
 
7042
6960
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/index.js
7043
- var dist_ts_exports12 = {};
7044
- __export(dist_ts_exports12, {
7045
- AsyncExecutionStack: () => AsyncExecutionStack2,
7046
- FastMap: () => FastMap2,
7047
- Interest: () => Interest2,
7048
- InterestMap: () => InterestMap2,
7049
- LimitedArray: () => LimitedArray2,
7050
- LoopTracker: () => LoopTracker2,
7051
- ObjectMap: () => ObjectMap2,
7052
- Stringmap: () => Stringmap2,
7053
- TimedAggregtor: () => TimedAggregtor2,
7054
- Tree: () => Tree2,
7055
- uni: () => uni2
6961
+ var dist_ts_exports6 = {};
6962
+ __export(dist_ts_exports6, {
6963
+ AsyncExecutionStack: () => AsyncExecutionStack,
6964
+ FastMap: () => FastMap,
6965
+ Interest: () => Interest,
6966
+ InterestMap: () => InterestMap,
6967
+ LimitedArray: () => LimitedArray,
6968
+ LoopTracker: () => LoopTracker,
6969
+ ObjectMap: () => ObjectMap,
6970
+ Stringmap: () => Stringmap,
6971
+ TimedAggregtor: () => TimedAggregtor,
6972
+ Tree: () => Tree,
6973
+ uni: () => uni
7056
6974
  });
7057
6975
 
7058
6976
  // node_modules/.pnpm/@push.rocks+smartdelay@3.0.5/node_modules/@push.rocks/smartdelay/dist_ts/index.js
@@ -7344,7 +7262,7 @@ var SmartMatch = class {
7344
7262
  }
7345
7263
  };
7346
7264
 
7347
- // node_modules/.pnpm/@push.rocks+smartrx@3.0.3/node_modules/@push.rocks/smartrx/dist_ts/index.js
7265
+ // node_modules/.pnpm/@push.rocks+smartrx@3.0.6/node_modules/@push.rocks/smartrx/dist_ts/index.js
7348
7266
  var dist_ts_exports5 = {};
7349
7267
  __export(dist_ts_exports5, {
7350
7268
  ObservableIntake: () => ObservableIntake,
@@ -7352,13 +7270,14 @@ __export(dist_ts_exports5, {
7352
7270
  rxjs: () => smartrx_plugins_rxjs_exports
7353
7271
  });
7354
7272
 
7355
- // node_modules/.pnpm/@push.rocks+smartrx@3.0.3/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.rxjs.js
7273
+ // node_modules/.pnpm/@push.rocks+smartrx@3.0.6/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.rxjs.js
7356
7274
  var smartrx_plugins_rxjs_exports = {};
7357
7275
  __export(smartrx_plugins_rxjs_exports, {
7358
7276
  Observable: () => Observable,
7359
7277
  ReplaySubject: () => ReplaySubject,
7360
7278
  Subject: () => Subject,
7361
7279
  Subscription: () => Subscription,
7280
+ from: () => from,
7362
7281
  fromEvent: () => fromEvent,
7363
7282
  ops: () => ops
7364
7283
  });
@@ -9254,6 +9173,16 @@ function timer(dueTime, intervalOrScheduler, scheduler) {
9254
9173
  });
9255
9174
  }
9256
9175
 
9176
+ // node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/operators/filter.js
9177
+ function filter(predicate, thisArg) {
9178
+ return operate(function(source, subscriber) {
9179
+ var index = 0;
9180
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
9181
+ return predicate.call(thisArg, value, index++) && subscriber.next(value);
9182
+ }));
9183
+ });
9184
+ }
9185
+
9257
9186
  // node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm5/internal/operators/debounce.js
9258
9187
  function debounce(durationSelector) {
9259
9188
  return operate(function(source, subscriber) {
@@ -9405,17 +9334,18 @@ function throttleTime(duration, scheduler, config2) {
9405
9334
  }, config2);
9406
9335
  }
9407
9336
 
9408
- // node_modules/.pnpm/@push.rocks+smartrx@3.0.3/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.rxjs.js
9337
+ // node_modules/.pnpm/@push.rocks+smartrx@3.0.6/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.rxjs.js
9409
9338
  var ops = {
9410
9339
  debounce,
9411
9340
  debounceTime,
9412
9341
  map: map2,
9413
9342
  startWith,
9414
9343
  takeUntil,
9415
- throttleTime
9344
+ throttleTime,
9345
+ filter
9416
9346
  };
9417
9347
 
9418
- // node_modules/.pnpm/@push.rocks+smartrx@3.0.3/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observablemap.js
9348
+ // node_modules/.pnpm/@push.rocks+smartrx@3.0.6/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observablemap.js
9419
9349
  var Observablemap = class {
9420
9350
  constructor() {
9421
9351
  this.observableEventEmitterBundleArray = new Array();
@@ -9463,7 +9393,7 @@ var Observablemap = class {
9463
9393
  }
9464
9394
  };
9465
9395
 
9466
- // node_modules/.pnpm/@push.rocks+smartrx@3.0.3/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observableintake.js
9396
+ // node_modules/.pnpm/@push.rocks+smartrx@3.0.6/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observableintake.js
9467
9397
  var ObservableIntake = class {
9468
9398
  constructor() {
9469
9399
  this.observableFunctions = {
@@ -9548,427 +9478,88 @@ var ObservableIntake = class {
9548
9478
  }
9549
9479
  };
9550
9480
 
9551
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/index.js
9552
- var dist_ts_exports11 = {};
9553
- __export(dist_ts_exports11, {
9554
- CronJob: () => CronJob2,
9555
- CronManager: () => CronManager2,
9556
- ExtendedDate: () => ExtendedDate2,
9557
- HrtMeasurement: () => HrtMeasurement2,
9558
- Interval: () => Interval2,
9559
- TimeStamp: () => TimeStamp2,
9560
- Timer: () => Timer2,
9561
- getMilliSecondsAsHumanReadableString: () => getMilliSecondsAsHumanReadableString2,
9562
- getMilliSecondsFromUnits: () => getMilliSecondsFromUnits2,
9563
- units: () => units2
9564
- });
9565
-
9566
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/index.js
9567
- var dist_ts_exports9 = {};
9568
- __export(dist_ts_exports9, {
9569
- AsyncExecutionStack: () => AsyncExecutionStack,
9570
- FastMap: () => FastMap,
9571
- Interest: () => Interest,
9572
- InterestMap: () => InterestMap,
9573
- LimitedArray: () => LimitedArray,
9574
- LoopTracker: () => LoopTracker,
9575
- ObjectMap: () => ObjectMap,
9576
- Stringmap: () => Stringmap,
9577
- TimedAggregtor: () => TimedAggregtor,
9578
- Tree: () => Tree,
9579
- uni: () => uni
9580
- });
9581
-
9582
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.plugins.js
9583
- var smartdelay2 = __toESM(require_dist_ts3(), 1);
9584
-
9585
- // node_modules/.pnpm/@pushrocks+smartmatch@2.0.0/node_modules/@pushrocks/smartmatch/dist_ts/index.js
9586
- var dist_ts_exports6 = {};
9587
- __export(dist_ts_exports6, {
9588
- SmartMatch: () => SmartMatch2
9589
- });
9590
- var SmartMatch2 = class {
9591
- constructor(wildcardArg) {
9592
- this.wildcard = wildcardArg;
9593
- }
9594
- match(matchStringArg) {
9595
- return matcher_exports.isMatch(matchStringArg, this.wildcard);
9596
- }
9597
- };
9598
-
9599
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.plugins.js
9600
- var smartpromise3 = __toESM(require_dist_ts(), 1);
9601
-
9602
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/index.js
9603
- var dist_ts_exports8 = {};
9604
- __export(dist_ts_exports8, {
9605
- ObservableIntake: () => ObservableIntake2,
9606
- Observablemap: () => Observablemap2,
9607
- rxjs: () => smartrx_plugins_rxjs_exports2
9608
- });
9609
-
9610
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
9481
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/index.js
9611
9482
  var dist_ts_exports7 = {};
9612
9483
  __export(dist_ts_exports7, {
9613
- CumulativeDeferred: () => CumulativeDeferred2,
9614
- Deferred: () => Deferred2,
9615
- cumulativeDefer: () => cumulativeDefer2,
9616
- defer: () => defer2,
9617
- getFirstTrueOrFalse: () => getFirstTrueOrFalse2,
9618
- map: () => map3,
9619
- rejectedPromise: () => rejectedPromise2,
9620
- resolvedPromise: () => resolvedPromise2,
9621
- timeoutAndContinue: () => timeoutAndContinue2,
9622
- timeoutWrap: () => timeoutWrap2
9484
+ CronJob: () => CronJob,
9485
+ CronManager: () => CronManager,
9486
+ ExtendedDate: () => ExtendedDate,
9487
+ HrtMeasurement: () => HrtMeasurement,
9488
+ Interval: () => Interval,
9489
+ TimeStamp: () => TimeStamp,
9490
+ Timer: () => Timer,
9491
+ getMilliSecondsAsHumanReadableString: () => getMilliSecondsAsHumanReadableString,
9492
+ getMilliSecondsFromUnits: () => getMilliSecondsFromUnits,
9493
+ units: () => units
9623
9494
  });
9624
9495
 
9625
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/smartpromise.classes.deferred.js
9626
- var Deferred2 = class {
9627
- claim() {
9628
- if (this.claimed) {
9629
- throw new Error("Deferred already claimed");
9630
- }
9631
- this.claimed = true;
9632
- }
9633
- get duration() {
9634
- if (this.stoppedAt) {
9635
- return this.stoppedAt - this.startedAt;
9496
+ // node_modules/.pnpm/croner@5.7.0/node_modules/croner/dist/croner.min.mjs
9497
+ function minitz(y, m, d, h, i, s, tz, throwOnInvalid) {
9498
+ return minitz.fromTZ(minitz.tp(y, m, d, h, i, s, tz), throwOnInvalid);
9499
+ }
9500
+ minitz.fromTZISO = (localTimeStr, tz, throwOnInvalid) => {
9501
+ return minitz.fromTZ(parseISOLocal(localTimeStr, tz), throwOnInvalid);
9502
+ };
9503
+ minitz.fromTZ = function(tp, throwOnInvalid) {
9504
+ const inDate = new Date(Date.UTC(tp.y, tp.m - 1, tp.d, tp.h, tp.i, tp.s)), offset = getTimezoneOffset(tp.tz, inDate), dateGuess = new Date(inDate.getTime() - offset), dateOffsGuess = getTimezoneOffset(tp.tz, dateGuess);
9505
+ if (dateOffsGuess - offset === 0) {
9506
+ return dateGuess;
9507
+ } else {
9508
+ const dateGuess2 = new Date(inDate.getTime() - dateOffsGuess), dateOffsGuess2 = getTimezoneOffset(tp.tz, dateGuess2);
9509
+ if (dateOffsGuess2 - dateOffsGuess === 0) {
9510
+ return dateGuess2;
9511
+ } else if (!throwOnInvalid && dateOffsGuess2 - dateOffsGuess > 0) {
9512
+ return dateGuess2;
9513
+ } else if (!throwOnInvalid) {
9514
+ return dateGuess;
9636
9515
  } else {
9637
- return Date.now() - this.startedAt;
9516
+ throw new Error("Invalid date passed to fromTZ()");
9638
9517
  }
9639
9518
  }
9640
- constructor() {
9641
- this.claimed = false;
9642
- this.promise = new Promise((resolve, reject) => {
9643
- this.resolve = (valueArg) => {
9644
- this.status = "fulfilled";
9645
- this.stoppedAt = Date.now();
9646
- resolve(valueArg);
9647
- };
9648
- this.reject = (reason) => {
9649
- this.status = "rejected";
9650
- this.stoppedAt = Date.now();
9651
- reject(reason);
9652
- };
9653
- this.startedAt = Date.now();
9654
- this.status = "pending";
9655
- });
9656
- }
9657
9519
  };
9658
- var defer2 = () => {
9659
- return new Deferred2();
9520
+ minitz.toTZ = function(d, tzStr) {
9521
+ const td = new Date(d.toLocaleString("sv-SE", { timeZone: tzStr }));
9522
+ return { y: td.getFullYear(), m: td.getMonth() + 1, d: td.getDate(), h: td.getHours(), i: td.getMinutes(), s: td.getSeconds(), tz: tzStr };
9660
9523
  };
9661
-
9662
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js
9663
- var CumulativeDeferred2 = class {
9664
- constructor() {
9665
- this.accumulatedPromises = [];
9666
- this.deferred = defer2();
9667
- this.promise = this.deferred.promise;
9668
- setTimeout(async () => {
9669
- while (this.accumulatedPromises.length > 0) {
9670
- const poppedPromise = this.accumulatedPromises.shift();
9671
- await poppedPromise;
9672
- }
9673
- this.deferred.resolve();
9674
- }, 0);
9524
+ minitz.tp = (y, m, d, h, i, s, tz) => {
9525
+ return { y, m, d, h, i, s, tz };
9526
+ };
9527
+ function getTimezoneOffset(timeZone, date = /* @__PURE__ */ new Date()) {
9528
+ const tz = date.toLocaleString("en", { timeZone, timeStyle: "long" }).split(" ").slice(-1)[0];
9529
+ const dateString = date.toLocaleString("en-US").replace(/[\u202f]/, " ");
9530
+ return Date.parse(`${dateString} GMT`) - Date.parse(`${dateString} ${tz}`);
9531
+ }
9532
+ function parseISOLocal(dtStr, tz) {
9533
+ const pd = new Date(Date.parse(dtStr));
9534
+ if (isNaN(pd)) {
9535
+ throw new Error("minitz: Invalid ISO8601 passed to parser.");
9675
9536
  }
9676
- addPromise(promiseArg) {
9677
- this.accumulatedPromises.push(promiseArg);
9537
+ const stringEnd = dtStr.substring(9);
9538
+ if (dtStr.includes("Z") || stringEnd.includes("-") || stringEnd.includes("+")) {
9539
+ return minitz.tp(pd.getUTCFullYear(), pd.getUTCMonth() + 1, pd.getUTCDate(), pd.getUTCHours(), pd.getUTCMinutes(), pd.getUTCSeconds(), "Etc/UTC");
9540
+ } else {
9541
+ return minitz.tp(pd.getFullYear(), pd.getMonth() + 1, pd.getDate(), pd.getHours(), pd.getMinutes(), pd.getSeconds(), tz);
9678
9542
  }
9679
- };
9680
- var cumulativeDefer2 = () => {
9681
- return new CumulativeDeferred2();
9682
- };
9683
-
9684
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
9685
- var resolvedPromise2 = (value) => {
9686
- return Promise.resolve(value);
9687
- };
9688
- var rejectedPromise2 = (err) => {
9689
- return Promise.reject(err);
9690
- };
9691
- var map3 = async (inputArg, functionArg) => {
9692
- const promiseArray = [];
9693
- const resultArray = [];
9694
- for (const item of inputArg) {
9695
- const promise = functionArg(item);
9696
- promiseArray.push(promise);
9697
- promise.then((x) => {
9698
- resultArray.push(x);
9699
- });
9543
+ }
9544
+ minitz.minitz = minitz;
9545
+ function CronOptions(options) {
9546
+ if (options === void 0) {
9547
+ options = {};
9700
9548
  }
9701
- await Promise.all(promiseArray);
9702
- return resultArray;
9703
- };
9704
- var timeoutWrap2 = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
9705
- return new Promise((resolve, reject) => {
9706
- setTimeout(() => {
9707
- if (rejectArg) {
9708
- reject(new Error("timeout"));
9709
- } else {
9710
- resolve(null);
9711
- }
9712
- }, timeoutInMsArg);
9713
- promiseArg.then(resolve, reject);
9714
- });
9715
- };
9716
- var timeoutAndContinue2 = async (promiseArg, timeoutInMsArg = 6e4) => {
9717
- return timeoutWrap2(promiseArg, timeoutInMsArg, false);
9718
- };
9719
- var getFirstTrueOrFalse2 = async (promisesArg) => {
9720
- const done = defer2();
9721
- for (const promiseArg of promisesArg) {
9722
- promiseArg.then((resultArg) => {
9723
- if (resultArg === true) {
9724
- done.resolve(true);
9725
- }
9726
- });
9549
+ delete options.name;
9550
+ options.legacyMode = options.legacyMode === void 0 ? true : options.legacyMode;
9551
+ options.paused = options.paused === void 0 ? false : options.paused;
9552
+ options.maxRuns = options.maxRuns === void 0 ? Infinity : options.maxRuns;
9553
+ options.catch = options.catch === void 0 ? false : options.catch;
9554
+ options.interval = options.interval === void 0 ? 0 : parseInt(options.interval, 10);
9555
+ options.utcOffset = options.utcOffset === void 0 ? void 0 : parseInt(options.utcOffset, 10);
9556
+ options.unref = options.unref === void 0 ? false : options.unref;
9557
+ options.kill = false;
9558
+ if (options.startAt) {
9559
+ options.startAt = new CronDate(options.startAt, options.timezone);
9727
9560
  }
9728
- Promise.all(promisesArg).then(() => {
9729
- done.resolve(false);
9730
- });
9731
- return done.promise;
9732
- };
9733
-
9734
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/smartrx.plugins.rxjs.js
9735
- var smartrx_plugins_rxjs_exports2 = {};
9736
- __export(smartrx_plugins_rxjs_exports2, {
9737
- Observable: () => Observable,
9738
- ReplaySubject: () => ReplaySubject,
9739
- Subject: () => Subject,
9740
- Subscription: () => Subscription,
9741
- fromEvent: () => fromEvent,
9742
- ops: () => ops2
9743
- });
9744
- var ops2 = {
9745
- debounce,
9746
- debounceTime,
9747
- map: map2,
9748
- startWith,
9749
- takeUntil,
9750
- throttleTime
9751
- };
9752
-
9753
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/smartrx.classes.observablemap.js
9754
- var Observablemap2 = class {
9755
- constructor() {
9756
- this.observableEventEmitterBundleArray = new Array();
9757
- this.observableEventTargetBundleArray = new Array();
9758
- }
9759
- /**
9760
- * creates a hot subject if not yet registered for the event.
9761
- * In case event has been registered before the same observable is returned.
9762
- */
9763
- getSubjectForEmitterEvent(emitterArg, eventArg) {
9764
- const existingBundle = this.observableEventEmitterBundleArray.find((bundleArg) => {
9765
- return bundleArg.eventRef === emitterArg && bundleArg.event === eventArg;
9766
- });
9767
- if (existingBundle) {
9768
- return existingBundle.subject;
9769
- } else {
9770
- const emitterObservable = fromEvent(emitterArg, eventArg);
9771
- const emitterSubject = new Subject();
9772
- emitterObservable.subscribe(emitterSubject);
9773
- const newBundle = {
9774
- subject: emitterSubject,
9775
- eventRef: emitterArg,
9776
- event: eventArg
9777
- };
9778
- this.observableEventEmitterBundleArray.push(newBundle);
9779
- return newBundle.subject;
9780
- }
9781
- }
9782
- getSubjectForEventTarget(eventTargetArg, eventNameArg) {
9783
- const existingBundle = this.observableEventTargetBundleArray.find((bundleArg) => {
9784
- return bundleArg.eventRef === eventTargetArg && bundleArg.event === eventNameArg;
9785
- });
9786
- if (existingBundle) {
9787
- return existingBundle.subject;
9788
- } else {
9789
- const emitterSubject = new Subject();
9790
- const newBundle = {
9791
- subject: emitterSubject,
9792
- eventRef: eventTargetArg,
9793
- event: eventNameArg
9794
- };
9795
- this.observableEventTargetBundleArray.push(newBundle);
9796
- return newBundle.subject;
9797
- }
9798
- }
9799
- };
9800
-
9801
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/smartrx.classes.observableintake.js
9802
- var ObservableIntake2 = class {
9803
- constructor() {
9804
- this.observableFunctions = {
9805
- next: (payloadArg) => {
9806
- },
9807
- complete: (payloadArg) => {
9808
- }
9809
- };
9810
- this.generator = null;
9811
- this.buffered = false;
9812
- this.payloadBuffer = [];
9813
- this.observable = new Observable((observerArg) => {
9814
- this.observableFunctions.next = (...args) => {
9815
- return observerArg.next(args);
9816
- };
9817
- this.observableFunctions.complete = () => {
9818
- this.completedDeffered.resolve();
9819
- return observerArg.complete();
9820
- };
9821
- });
9822
- this.completedDeffered = dist_ts_exports7.defer();
9823
- this.completed = this.completedDeffered.promise;
9824
- }
9825
- setObservable(observableFunc) {
9826
- this.observable = observableFunc;
9827
- }
9828
- push(payloadArg) {
9829
- if (this.buffered) {
9830
- this.payloadBuffer.push(payloadArg);
9831
- } else {
9832
- this.internalPush(payloadArg);
9833
- }
9834
- }
9835
- /**
9836
- * pushes many payloads as array
9837
- * @param payloadArgArray
9838
- */
9839
- pushMany(payloadArgArray) {
9840
- for (const item of payloadArgArray) {
9841
- this.push(item);
9842
- }
9843
- }
9844
- /**
9845
- * sets a generator to query the next pushed value
9846
- * @param generatorArg
9847
- */
9848
- setGenerator(generatorArg) {
9849
- this.generator = generatorArg;
9850
- }
9851
- makeBuffered() {
9852
- this.buffered = true;
9853
- }
9854
- subscribe(...args) {
9855
- return this.observable.subscribe(...args);
9856
- }
9857
- /**
9858
- * request the next values in the quantity specified
9859
- * @param howManyArg if a generator is set, of a buffer exists, this allows retrieving values
9860
- */
9861
- request(howManyArg) {
9862
- if (howManyArg === 0) {
9863
- return;
9864
- } else {
9865
- for (let i = 0; i !== howManyArg; i++) {
9866
- if (this.payloadBuffer.length > 0) {
9867
- this.internalPush(this.payloadBuffer.shift());
9868
- } else {
9869
- const nextPayload = this.generator.next();
9870
- this.internalPush(nextPayload.value);
9871
- }
9872
- }
9873
- }
9874
- }
9875
- /**
9876
- * signals the completion of this observable
9877
- */
9878
- signalComplete() {
9879
- this.observableFunctions.complete();
9880
- }
9881
- internalPush(payloadArg) {
9882
- this.observableFunctions.next(payloadArg);
9883
- }
9884
- };
9885
-
9886
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/index.js
9887
- var dist_ts_exports10 = {};
9888
- __export(dist_ts_exports10, {
9889
- CronJob: () => CronJob,
9890
- CronManager: () => CronManager,
9891
- ExtendedDate: () => ExtendedDate,
9892
- HrtMeasurement: () => HrtMeasurement,
9893
- Interval: () => Interval,
9894
- TimeStamp: () => TimeStamp,
9895
- Timer: () => Timer,
9896
- getMilliSecondsAsHumanReadableString: () => getMilliSecondsAsHumanReadableString,
9897
- getMilliSecondsFromUnits: () => getMilliSecondsFromUnits,
9898
- units: () => units
9899
- });
9900
-
9901
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.plugins.js
9902
- var smartdelay = __toESM(require_dist_ts3(), 1);
9903
- var smartpromise2 = __toESM(require_dist_ts(), 1);
9904
-
9905
- // node_modules/.pnpm/croner@5.7.0/node_modules/croner/dist/croner.min.mjs
9906
- function minitz(y, m, d, h, i, s, tz, throwOnInvalid) {
9907
- return minitz.fromTZ(minitz.tp(y, m, d, h, i, s, tz), throwOnInvalid);
9908
- }
9909
- minitz.fromTZISO = (localTimeStr, tz, throwOnInvalid) => {
9910
- return minitz.fromTZ(parseISOLocal(localTimeStr, tz), throwOnInvalid);
9911
- };
9912
- minitz.fromTZ = function(tp, throwOnInvalid) {
9913
- const inDate = new Date(Date.UTC(tp.y, tp.m - 1, tp.d, tp.h, tp.i, tp.s)), offset = getTimezoneOffset(tp.tz, inDate), dateGuess = new Date(inDate.getTime() - offset), dateOffsGuess = getTimezoneOffset(tp.tz, dateGuess);
9914
- if (dateOffsGuess - offset === 0) {
9915
- return dateGuess;
9916
- } else {
9917
- const dateGuess2 = new Date(inDate.getTime() - dateOffsGuess), dateOffsGuess2 = getTimezoneOffset(tp.tz, dateGuess2);
9918
- if (dateOffsGuess2 - dateOffsGuess === 0) {
9919
- return dateGuess2;
9920
- } else if (!throwOnInvalid && dateOffsGuess2 - dateOffsGuess > 0) {
9921
- return dateGuess2;
9922
- } else if (!throwOnInvalid) {
9923
- return dateGuess;
9924
- } else {
9925
- throw new Error("Invalid date passed to fromTZ()");
9926
- }
9927
- }
9928
- };
9929
- minitz.toTZ = function(d, tzStr) {
9930
- const td = new Date(d.toLocaleString("sv-SE", { timeZone: tzStr }));
9931
- return { y: td.getFullYear(), m: td.getMonth() + 1, d: td.getDate(), h: td.getHours(), i: td.getMinutes(), s: td.getSeconds(), tz: tzStr };
9932
- };
9933
- minitz.tp = (y, m, d, h, i, s, tz) => {
9934
- return { y, m, d, h, i, s, tz };
9935
- };
9936
- function getTimezoneOffset(timeZone, date = /* @__PURE__ */ new Date()) {
9937
- const tz = date.toLocaleString("en", { timeZone, timeStyle: "long" }).split(" ").slice(-1)[0];
9938
- const dateString = date.toLocaleString("en-US").replace(/[\u202f]/, " ");
9939
- return Date.parse(`${dateString} GMT`) - Date.parse(`${dateString} ${tz}`);
9940
- }
9941
- function parseISOLocal(dtStr, tz) {
9942
- const pd = new Date(Date.parse(dtStr));
9943
- if (isNaN(pd)) {
9944
- throw new Error("minitz: Invalid ISO8601 passed to parser.");
9945
- }
9946
- const stringEnd = dtStr.substring(9);
9947
- if (dtStr.includes("Z") || stringEnd.includes("-") || stringEnd.includes("+")) {
9948
- return minitz.tp(pd.getUTCFullYear(), pd.getUTCMonth() + 1, pd.getUTCDate(), pd.getUTCHours(), pd.getUTCMinutes(), pd.getUTCSeconds(), "Etc/UTC");
9949
- } else {
9950
- return minitz.tp(pd.getFullYear(), pd.getMonth() + 1, pd.getDate(), pd.getHours(), pd.getMinutes(), pd.getSeconds(), tz);
9951
- }
9952
- }
9953
- minitz.minitz = minitz;
9954
- function CronOptions(options) {
9955
- if (options === void 0) {
9956
- options = {};
9957
- }
9958
- delete options.name;
9959
- options.legacyMode = options.legacyMode === void 0 ? true : options.legacyMode;
9960
- options.paused = options.paused === void 0 ? false : options.paused;
9961
- options.maxRuns = options.maxRuns === void 0 ? Infinity : options.maxRuns;
9962
- options.catch = options.catch === void 0 ? false : options.catch;
9963
- options.interval = options.interval === void 0 ? 0 : parseInt(options.interval, 10);
9964
- options.utcOffset = options.utcOffset === void 0 ? void 0 : parseInt(options.utcOffset, 10);
9965
- options.unref = options.unref === void 0 ? false : options.unref;
9966
- options.kill = false;
9967
- if (options.startAt) {
9968
- options.startAt = new CronDate(options.startAt, options.timezone);
9969
- }
9970
- if (options.stopAt) {
9971
- options.stopAt = new CronDate(options.stopAt, options.timezone);
9561
+ if (options.stopAt) {
9562
+ options.stopAt = new CronDate(options.stopAt, options.timezone);
9972
9563
  }
9973
9564
  if (options.interval !== null) {
9974
9565
  if (isNaN(options.interval)) {
@@ -10454,1445 +10045,180 @@ Cron.prototype.schedule = function(func, partial) {
10454
10045
  } else if (func) {
10455
10046
  this.fn = func;
10456
10047
  }
10457
- let waitMs = this.msToNext(partial ? partial : this.previousrun);
10458
- const target = this.next(partial ? partial : this.previousrun);
10459
- if (waitMs === null || target === null)
10460
- return this;
10461
- if (waitMs > maxDelay) {
10462
- waitMs = maxDelay;
10463
- }
10464
- this.currentTimeout = setTimeout(() => this._checkTrigger(target), waitMs);
10465
- if (this.currentTimeout && this.options.unref) {
10466
- unref(this.currentTimeout);
10467
- }
10468
- return this;
10469
- };
10470
- Cron.prototype._trigger = async function(initiationDate) {
10471
- this.blocking = true;
10472
- this.runstarted = new CronDate(initiationDate, this.options.timezone || this.options.utcOffset);
10473
- if (this.options.catch) {
10474
- try {
10475
- await this.fn(this, this.options.context);
10476
- } catch (_e) {
10477
- if (isFn(this.options.catch)) {
10478
- ((inst) => inst.options.catch(_e, inst))(this);
10479
- }
10480
- } finally {
10481
- this.blocking = false;
10482
- }
10483
- } else {
10484
- await this.fn(this, this.options.context);
10485
- this.blocking = false;
10486
- }
10487
- };
10488
- Cron.prototype._checkTrigger = function(target) {
10489
- const now = /* @__PURE__ */ new Date(), shouldRun = !this.options.paused && now.getTime() >= target, isBlocked = this.blocking && this.options.protect;
10490
- if (shouldRun && !isBlocked) {
10491
- this.options.maxRuns--;
10492
- this._trigger();
10493
- this.previousrun = new CronDate(void 0, this.options.timezone || this.options.utcOffset);
10494
- this.schedule();
10495
- } else {
10496
- if (shouldRun && isBlocked && isFn(this.options.protect)) {
10497
- (async (inst) => inst.options.protect(inst))(this);
10498
- }
10499
- this.schedule(void 0, now);
10500
- }
10501
- };
10502
- Cron.prototype._next = function(prev) {
10503
- const hasPreviousRun = prev || this.previousrun ? true : false;
10504
- prev = new CronDate(prev, this.options.timezone || this.options.utcOffset);
10505
- if (this.options.startAt && prev && prev.getTime() < this.options.startAt.getTime()) {
10506
- prev = this.options.startAt;
10507
- }
10508
- const nextRun = this.once || new CronDate(prev, this.options.timezone || this.options.utcOffset).increment(this.pattern, this.options, hasPreviousRun);
10509
- if (this.once && this.once.getTime() <= prev.getTime()) {
10510
- return null;
10511
- } else if (nextRun === null || this.options.maxRuns <= 0 || this.options.kill || this.options.stopAt && nextRun.getTime() >= this.options.stopAt.getTime()) {
10512
- return null;
10513
- } else {
10514
- return nextRun;
10515
- }
10516
- };
10517
- Cron.Cron = Cron;
10518
- Cron.scheduledJobs = scheduledJobs;
10519
-
10520
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.plugins.js
10521
- var import_dayjs = __toESM(require_dayjs_min(), 1);
10522
- var import_isToday = __toESM(require_isToday(), 1);
10523
-
10524
- // node_modules/.pnpm/parse-ms@3.0.0/node_modules/parse-ms/index.js
10525
- function parseMilliseconds(milliseconds) {
10526
- if (typeof milliseconds !== "number") {
10527
- throw new TypeError("Expected a number");
10528
- }
10529
- const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;
10530
- return {
10531
- days: roundTowardsZero(milliseconds / 864e5),
10532
- hours: roundTowardsZero(milliseconds / 36e5) % 24,
10533
- minutes: roundTowardsZero(milliseconds / 6e4) % 60,
10534
- seconds: roundTowardsZero(milliseconds / 1e3) % 60,
10535
- milliseconds: roundTowardsZero(milliseconds) % 1e3,
10536
- microseconds: roundTowardsZero(milliseconds * 1e3) % 1e3,
10537
- nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1e3
10538
- };
10539
- }
10540
-
10541
- // node_modules/.pnpm/pretty-ms@8.0.0/node_modules/pretty-ms/index.js
10542
- var pluralize = (word, count) => count === 1 ? word : `${word}s`;
10543
- var SECOND_ROUNDING_EPSILON = 1e-7;
10544
- function prettyMilliseconds(milliseconds, options = {}) {
10545
- if (!Number.isFinite(milliseconds)) {
10546
- throw new TypeError("Expected a finite number");
10547
- }
10548
- if (options.colonNotation) {
10549
- options.compact = false;
10550
- options.formatSubMilliseconds = false;
10551
- options.separateMilliseconds = false;
10552
- options.verbose = false;
10553
- }
10554
- if (options.compact) {
10555
- options.secondsDecimalDigits = 0;
10556
- options.millisecondsDecimalDigits = 0;
10557
- }
10558
- const result = [];
10559
- const floorDecimals = (value, decimalDigits) => {
10560
- const flooredInterimValue = Math.floor(value * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON);
10561
- const flooredValue = Math.round(flooredInterimValue) / 10 ** decimalDigits;
10562
- return flooredValue.toFixed(decimalDigits);
10563
- };
10564
- const add = (value, long, short, valueString) => {
10565
- if ((result.length === 0 || !options.colonNotation) && value === 0 && !(options.colonNotation && short === "m")) {
10566
- return;
10567
- }
10568
- valueString = (valueString || value || "0").toString();
10569
- let prefix;
10570
- let suffix;
10571
- if (options.colonNotation) {
10572
- prefix = result.length > 0 ? ":" : "";
10573
- suffix = "";
10574
- const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
10575
- const minLength = result.length > 0 ? 2 : 1;
10576
- valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString;
10577
- } else {
10578
- prefix = "";
10579
- suffix = options.verbose ? " " + pluralize(long, value) : short;
10580
- }
10581
- result.push(prefix + valueString + suffix);
10582
- };
10583
- const parsed = parseMilliseconds(milliseconds);
10584
- add(Math.trunc(parsed.days / 365), "year", "y");
10585
- add(parsed.days % 365, "day", "d");
10586
- add(parsed.hours, "hour", "h");
10587
- add(parsed.minutes, "minute", "m");
10588
- if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
10589
- add(parsed.seconds, "second", "s");
10590
- if (options.formatSubMilliseconds) {
10591
- add(parsed.milliseconds, "millisecond", "ms");
10592
- add(parsed.microseconds, "microsecond", "\xB5s");
10593
- add(parsed.nanoseconds, "nanosecond", "ns");
10594
- } else {
10595
- const millisecondsAndBelow = parsed.milliseconds + parsed.microseconds / 1e3 + parsed.nanoseconds / 1e6;
10596
- const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
10597
- const roundedMiliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
10598
- const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMiliseconds;
10599
- add(
10600
- Number.parseFloat(millisecondsString),
10601
- "millisecond",
10602
- "ms",
10603
- millisecondsString
10604
- );
10605
- }
10606
- } else {
10607
- const seconds = milliseconds / 1e3 % 60;
10608
- const secondsDecimalDigits = typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1;
10609
- const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
10610
- const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
10611
- add(Number.parseFloat(secondsString), "second", "s", secondsString);
10612
- }
10613
- if (result.length === 0) {
10614
- return "0" + (options.verbose ? " milliseconds" : "ms");
10615
- }
10616
- if (options.compact) {
10617
- return result[0];
10618
- }
10619
- if (typeof options.unitCount === "number") {
10620
- const separator = options.colonNotation ? "" : " ";
10621
- return result.slice(0, Math.max(options.unitCount, 1)).join(separator);
10622
- }
10623
- return options.colonNotation ? result.join("") : result.join(" ");
10624
- }
10625
-
10626
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.plugins.js
10627
- import_dayjs.default.extend(import_isToday.default);
10628
-
10629
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.cronjob.js
10630
- var CronJob = class {
10631
- constructor(cronManager, cronExpressionArg, jobFunction) {
10632
- this.status = "initial";
10633
- this.nextExecutionUnix = 0;
10634
- this.cronExpression = cronExpressionArg;
10635
- this.jobFunction = jobFunction;
10636
- this.cronParser = Cron(cronExpressionArg);
10637
- }
10638
- /**
10639
- * checks wether the cronjob needs to be executed
10640
- */
10641
- checkExecution() {
10642
- if (this.nextExecutionUnix === 0) {
10643
- this.getNextExecutionTime();
10644
- }
10645
- if (Date.now() > this.nextExecutionUnix) {
10646
- const maybePromise = this.jobFunction(this.nextExecutionUnix);
10647
- if (maybePromise instanceof Promise) {
10648
- maybePromise.catch((e) => console.log(e));
10649
- }
10650
- this.nextExecutionUnix = this.getNextExecutionTime();
10651
- }
10652
- return this.nextExecutionUnix;
10653
- }
10654
- getNextExecutionTime() {
10655
- return this.nextExecutionUnix = Date.now() + this.getTimeToNextExecution();
10656
- }
10657
- /**
10658
- * gets the time to next execution
10659
- */
10660
- getTimeToNextExecution() {
10661
- return this.cronParser.msToNext();
10662
- }
10663
- start() {
10664
- this.status = "started";
10665
- }
10666
- stop() {
10667
- this.status = "stopped";
10668
- }
10669
- };
10670
-
10671
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.units.js
10672
- var units = {
10673
- years: (timesArg = 1) => {
10674
- return timesArg * 3154e7;
10675
- },
10676
- months: (timesArg = 1) => {
10677
- return timesArg * 2628e6;
10678
- },
10679
- weeks: (timesArg = 1) => {
10680
- return timesArg * 6048e5;
10681
- },
10682
- days: (timesArg = 1) => {
10683
- return timesArg * 864e5;
10684
- },
10685
- hours: (timesArg = 1) => {
10686
- return timesArg * 36e5;
10687
- },
10688
- minutes: (timesArg = 1) => {
10689
- return timesArg * 6e4;
10690
- }
10691
- };
10692
- var getMilliSecondsFromUnits = (combinationArg) => {
10693
- let timeInMilliseconds = 0;
10694
- let addMilliSeconds = (milliSecondsArg) => {
10695
- timeInMilliseconds = timeInMilliseconds + milliSecondsArg;
10696
- };
10697
- if (combinationArg.years) {
10698
- addMilliSeconds(units.years(combinationArg.years));
10699
- }
10700
- if (combinationArg.months) {
10701
- addMilliSeconds(units.months(combinationArg.months));
10702
- }
10703
- if (combinationArg.weeks) {
10704
- addMilliSeconds(units.weeks(combinationArg.weeks));
10705
- }
10706
- if (combinationArg.days) {
10707
- addMilliSeconds(units.days(combinationArg.days));
10708
- }
10709
- if (combinationArg.hours) {
10710
- addMilliSeconds(units.hours(combinationArg.hours));
10711
- }
10712
- if (combinationArg.minutes) {
10713
- addMilliSeconds(units.minutes(combinationArg.minutes));
10714
- }
10715
- return timeInMilliseconds;
10716
- };
10717
- var getMilliSecondsAsHumanReadableString = (milliSecondsArg) => {
10718
- return prettyMilliseconds(milliSecondsArg);
10719
- };
10720
-
10721
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
10722
- var CronManager = class {
10723
- constructor() {
10724
- this.status = "stopped";
10725
- this.cronjobs = new dist_ts_exports9.ObjectMap();
10726
- }
10727
- addCronjob(cronIdentifierArg, cronFunctionArg) {
10728
- const newCronJob = new CronJob(this, cronIdentifierArg, cronFunctionArg);
10729
- this.cronjobs.add(newCronJob);
10730
- if (this.status === "started") {
10731
- newCronJob.start();
10732
- }
10733
- return newCronJob;
10734
- }
10735
- removeCronjob(cronjobArg) {
10736
- cronjobArg.stop();
10737
- this.cronjobs.remove(cronjobArg);
10738
- }
10739
- /**
10740
- * starts the cronjob
10741
- */
10742
- start() {
10743
- if (this.status !== "started") {
10744
- this.status = "started";
10745
- for (const cronJob of this.cronjobs.getArray()) {
10746
- cronJob.start();
10747
- }
10748
- const runCronCycle = async () => {
10749
- this.executionTimeout = new smartdelay.Timeout(0);
10750
- do {
10751
- let nextRunningCronjob;
10752
- for (const cronJob of this.cronjobs.getArray()) {
10753
- cronJob.checkExecution();
10754
- if (!nextRunningCronjob || cronJob.getTimeToNextExecution() < nextRunningCronjob.getTimeToNextExecution()) {
10755
- nextRunningCronjob = cronJob;
10756
- }
10757
- }
10758
- if (nextRunningCronjob) {
10759
- this.executionTimeout = new smartdelay.Timeout(nextRunningCronjob.getTimeToNextExecution());
10760
- console.log(`Next CronJob scheduled in ${getMilliSecondsAsHumanReadableString(this.executionTimeout.getTimeLeft())}`);
10761
- } else {
10762
- this.executionTimeout = new smartdelay.Timeout(1e3);
10763
- console.log("no cronjobs specified! Checking again in 1 second");
10764
- }
10765
- await this.executionTimeout.promise;
10766
- } while (this.status === "started");
10767
- };
10768
- runCronCycle();
10769
- }
10770
- }
10771
- /**
10772
- * stops all cronjobs
10773
- */
10774
- stop() {
10775
- if (this.status === "started") {
10776
- this.status = "stopped";
10777
- this.executionTimeout.cancel();
10778
- } else {
10779
- console.log(`You tried to stop a CronManager that was not actually started.`);
10780
- }
10781
- for (const cron of this.cronjobs.getArray()) {
10782
- cron.stop();
10783
- }
10784
- }
10785
- };
10786
-
10787
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
10788
- var ExtendedDate = class extends Date {
10789
- // STATIC factories
10790
- static fromMillis(milliSeconds) {
10791
- return new ExtendedDate(milliSeconds);
10792
- }
10793
- static fromDate(dateArg) {
10794
- return new ExtendedDate(dateArg.getTime());
10795
- }
10796
- static fromEuropeanDate(europeanDate) {
10797
- const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate);
10798
- const date = new Date(
10799
- parseFloat(dateArray[3]),
10800
- // year
10801
- parseFloat(dateArray[2]) - 1,
10802
- // month
10803
- parseFloat(dateArray[1])
10804
- // day
10805
- );
10806
- const unixMilli = date.getTime();
10807
- return new ExtendedDate(unixMilli);
10808
- }
10809
- /**
10810
- * creates an Extended date from a hypedDate like "2018-03-28"
10811
- * @param dateString
10812
- */
10813
- static fromHyphedDate(dateString) {
10814
- const dateMillis = new Date(dateString).getTime();
10815
- return new ExtendedDate(dateMillis);
10816
- }
10817
- /**
10818
- * Same as .fromEuropeanDate(), but accepts additional timeArg and zoneArg
10819
- */
10820
- static fromEuropeanDateAndTime(europeanDateArg, timeArg = "12:00:00", zoneArg = "Europe/Berlin") {
10821
- const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDateArg);
10822
- const sliceDate = (dateString) => {
10823
- return `0${dateString}`.slice(-2);
10824
- };
10825
- const dateTimeString = `${dateArray[3]}-${sliceDate(dateArray[2])}-${sliceDate(dateArray[1])}T${timeArg}`;
10826
- const date = import_dayjs.default(dateTimeString);
10827
- const unixMilli = date.toDate().getTime();
10828
- return new ExtendedDate(unixMilli);
10829
- }
10830
- constructor(unixMilli = Date.now()) {
10831
- super(unixMilli);
10832
- }
10833
- //
10834
- exportToEuropeanDate() {
10835
- const units3 = this.exportToUnits();
10836
- return `${units3.dayString}.${units3.monthString}.${units3.yearString}`;
10837
- }
10838
- exportToHyphedSortableDate() {
10839
- const units3 = this.exportToUnits();
10840
- return `${units3.yearString}-${units3.monthString}-${units3.dayString}`;
10841
- }
10842
- /**
10843
- * exports units
10844
- */
10845
- exportToUnits() {
10846
- const monthsArray = [
10847
- "January",
10848
- "February",
10849
- "March",
10850
- "April",
10851
- "May",
10852
- "June",
10853
- "July",
10854
- "August",
10855
- "September",
10856
- "October",
10857
- "November",
10858
- "December"
10859
- ];
10860
- const daysArray = [
10861
- "Monday",
10862
- "Tuesday",
10863
- "Wednesday",
10864
- "Thursday",
10865
- "Friday",
10866
- "Saturday",
10867
- "Sunday"
10868
- ];
10869
- return {
10870
- year: this.getFullYear(),
10871
- yearString: `${this.getFullYear()}`,
10872
- month: this.getMonth() + 1,
10873
- monthString: ("0" + (this.getMonth() + 1)).slice(-2),
10874
- monthName: monthsArray[this.getMonth()],
10875
- day: this.getDate(),
10876
- dayString: ("0" + this.getDate()).slice(-2),
10877
- dayOfTheWeek: this.getDay(),
10878
- dayOfTheWeekName: daysArray[this.getDay()]
10879
- };
10880
- }
10881
- format(formatArg) {
10882
- return import_dayjs.default(this.getTime()).format(formatArg);
10883
- }
10884
- /**
10885
- * boolean checks
10886
- */
10887
- isToday() {
10888
- return import_dayjs.default(this.getTime()).isToday();
10889
- }
10890
- lessTimePassedToNow(unitArgs) {
10891
- const maxPassedUnixTime = getMilliSecondsFromUnits(unitArgs);
10892
- const actualPassedUnixTime = Date.now() - this.getTime();
10893
- return actualPassedUnixTime < maxPassedUnixTime;
10894
- }
10895
- moreTimePassedToNow(unitArgs) {
10896
- return !this.lessTimePassedToNow(unitArgs);
10897
- }
10898
- };
10899
-
10900
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
10901
- var HrtMeasurement = class {
10902
- constructor() {
10903
- this.nanoSeconds = null;
10904
- this.milliSeconds = null;
10905
- this._milliStart = null;
10906
- this._milliDiff = null;
10907
- this._started = false;
10908
- }
10909
- /**
10910
- * start the measurement
10911
- */
10912
- start() {
10913
- this._started = true;
10914
- this._milliStart = Date.now();
10915
- }
10916
- /**
10917
- * stop the measurement
10918
- */
10919
- stop() {
10920
- if (this._started === false) {
10921
- console.log("Hasn't started yet");
10922
- return;
10923
- }
10924
- this._milliDiff = Date.now() - this._milliStart;
10925
- this.nanoSeconds = this._milliDiff * 1e3;
10926
- this.milliSeconds = this._milliDiff;
10927
- return this;
10928
- }
10929
- /**
10930
- * reset the measurement
10931
- */
10932
- reset() {
10933
- this.nanoSeconds = null;
10934
- this.milliSeconds = null;
10935
- this._milliStart = null;
10936
- this._milliDiff = null;
10937
- this._started = false;
10938
- }
10939
- };
10940
-
10941
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.interval.js
10942
- var Interval = class {
10943
- constructor(intervalMillisencondsArg) {
10944
- this.status = "initial";
10945
- this.statusAuthorization = null;
10946
- this.intervalJobs = [];
10947
- this.intervalMilliseconds = intervalMillisencondsArg;
10948
- }
10949
- start() {
10950
- this.status = "started";
10951
- const statusAuth = /* @__PURE__ */ new Date();
10952
- this.statusAuthorization = statusAuth;
10953
- const runInterval = async () => {
10954
- while (this.status === "started" && this.statusAuthorization === statusAuth) {
10955
- await smartdelay.delayFor(this.intervalMilliseconds);
10956
- this.executeIntervalJobs();
10957
- }
10958
- };
10959
- runInterval();
10960
- }
10961
- stop() {
10962
- this.status = "stopped";
10963
- this.statusAuthorization = null;
10964
- }
10965
- addIntervalJob(funcArg) {
10966
- this.intervalJobs.push(funcArg);
10967
- }
10968
- executeIntervalJobs() {
10969
- for (const funcArg of this.intervalJobs) {
10970
- funcArg();
10971
- }
10972
- }
10973
- };
10974
-
10975
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.timestamp.js
10976
- var TimeStamp = class {
10977
- /**
10978
- * returns new TimeStamp from milliseconds
10979
- */
10980
- static fromMilliSeconds(milliSecondsArg) {
10981
- return new TimeStamp(milliSecondsArg);
10982
- }
10983
- /**
10984
- * returns new TimeStamp for now with change set
10985
- * @param timeStampArg
10986
- */
10987
- static fromTimeStamp(timeStampArg) {
10988
- const localTimeStamp = new TimeStamp();
10989
- localTimeStamp.change = localTimeStamp.milliSeconds - timeStampArg.milliSeconds;
10990
- return localTimeStamp;
10991
- }
10992
- constructor(creatorArg) {
10993
- this.change = null;
10994
- if (!creatorArg) {
10995
- this.date = /* @__PURE__ */ new Date();
10996
- } else if (typeof creatorArg === "number") {
10997
- this.date = new Date(creatorArg);
10998
- }
10999
- this.milliSeconds = this.date.getTime();
11000
- this.epochtime = Math.floor(this.milliSeconds / 1e3);
11001
- }
11002
- /**
11003
- * returns a boolean for wether the timestamp is older than another timestamp
11004
- * @param TimeStampArg
11005
- * @param tresholdTimeArg
11006
- */
11007
- isOlderThanOtherTimeStamp(TimeStampArg, tresholdTimeArg = 0) {
11008
- if (this.milliSeconds < TimeStampArg.milliSeconds - tresholdTimeArg) {
11009
- return true;
11010
- } else {
11011
- return false;
11012
- }
11013
- }
11014
- /**
11015
- * Is the current instance older than the argument
11016
- * @param TimeStampArg
11017
- */
11018
- isOlderThan(TimeStampArg, tresholdTimeArg = 0) {
11019
- if (this.milliSeconds + tresholdTimeArg < TimeStampArg.milliSeconds) {
11020
- return true;
11021
- } else {
11022
- return false;
11023
- }
11024
- }
11025
- /**
11026
- * returns a boolean for wether the timestamp is younger than another timestamp
11027
- * @param TimeStampArg
11028
- * @param tresholdTimeArg
11029
- */
11030
- isYoungerThanOtherTimeStamp(TimeStampArg, tresholdTimeArg = 0) {
11031
- if (this.milliSeconds > TimeStampArg.milliSeconds + tresholdTimeArg) {
11032
- return true;
11033
- } else {
11034
- return false;
11035
- }
11036
- }
11037
- isYoungerThanMilliSeconds(millisecondArg) {
11038
- const nowTimeStamp = new TimeStamp();
11039
- const compareEpochTime = nowTimeStamp.epochtime - millisecondArg;
11040
- const compareTimeStamp = new TimeStamp(compareEpochTime);
11041
- return this.isYoungerThanOtherTimeStamp(compareTimeStamp);
11042
- }
11043
- };
11044
-
11045
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.timer.js
11046
- var Timer = class {
11047
- get timeLeft() {
11048
- return this.timeInMilliseconds - this.pausedAt.change;
11049
- }
11050
- constructor(timeInMillisecondsArg) {
11051
- this.state = "initiated";
11052
- this.completedDeferred = smartpromise2.defer();
11053
- this.timeInMilliseconds = timeInMillisecondsArg;
11054
- this.completed = this.completedDeferred.promise;
11055
- }
11056
- /**
11057
- * starts the timer
11058
- */
11059
- start() {
11060
- if (!this.startedAt) {
11061
- this.currentTimeout = setTimeout(() => {
11062
- this.completedDeferred.resolve();
11063
- }, this.timeInMilliseconds);
11064
- this.startedAt = new TimeStamp();
11065
- } else {
11066
- throw new Error("timer has been started before. Please use resume instead");
11067
- }
11068
- }
11069
- pause() {
11070
- if (this.startedAt) {
11071
- clearTimeout(this.currentTimeout);
11072
- this.currentTimeout = null;
11073
- this.pausedAt = TimeStamp.fromTimeStamp(this.startedAt);
11074
- }
11075
- }
11076
- resume() {
11077
- if (this.startedAt) {
11078
- this.currentTimeout = setTimeout(() => {
11079
- this.completedDeferred.resolve();
11080
- }, this.timeLeft);
11081
- } else {
11082
- throw new Error("timer has NOT been started before. Please use .start() instead");
11083
- }
11084
- }
11085
- reset() {
11086
- this.pause();
11087
- this.startedAt = null;
11088
- this.pausedAt = null;
11089
- }
11090
- };
11091
-
11092
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.plugins.js
11093
- var import_symbol_tree = __toESM(require_SymbolTree(), 1);
11094
-
11095
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.asyncexecutionstack.js
11096
- var AsyncExecutionStack = class {
11097
- constructor() {
11098
- this.executionSlots = [];
11099
- }
11100
- async getExclusiveExecutionSlot(funcArg, timeoutArg) {
11101
- const executionDeferred = smartpromise3.defer();
11102
- const executionSlot = {
11103
- funcToExecute: funcArg,
11104
- executionDeferred,
11105
- timeout: timeoutArg,
11106
- mode: "exclusive"
11107
- };
11108
- this.executionSlots.push(executionSlot);
11109
- this.processExecutionSlots();
11110
- return executionDeferred.promise;
11111
- }
11112
- async getNonExclusiveExecutionSlot(funcArg, timeoutArg) {
11113
- const executionDeferred = smartpromise3.defer();
11114
- const executionSlot = {
11115
- funcToExecute: funcArg,
11116
- executionDeferred,
11117
- timeout: timeoutArg,
11118
- mode: "nonexclusive"
11119
- };
11120
- this.executionSlots.push(executionSlot);
11121
- this.processExecutionSlots();
11122
- return executionDeferred.promise;
11123
- }
11124
- async processExecutionSlots() {
11125
- if (this.currentlyExecutingDeferred) {
11126
- return;
11127
- }
11128
- this.currentlyExecutingDeferred = smartpromise3.defer();
11129
- let nonExclusiveRunningSlots = [];
11130
- const checkNonExclusiveRunningSlots = async (cleanArg = false) => {
11131
- if (nonExclusiveRunningSlots.length > 100 || cleanArg) {
11132
- await Promise.all(nonExclusiveRunningSlots.map((nonExclusiveRunningSlotArg) => nonExclusiveRunningSlotArg.executionDeferred.promise));
11133
- nonExclusiveRunningSlots = [];
11134
- }
11135
- };
11136
- while (this.executionSlots.length > 0) {
11137
- const nextExecutionSlot = this.executionSlots.shift();
11138
- const runNextExecution = async () => {
11139
- if (nextExecutionSlot.timeout) {
11140
- const result = await Promise.race([
11141
- nextExecutionSlot.funcToExecute(),
11142
- smartdelay2.delayFor(nextExecutionSlot.timeout)
11143
- ]);
11144
- nextExecutionSlot.executionDeferred.resolve(result);
11145
- } else {
11146
- nextExecutionSlot.executionDeferred.resolve(await nextExecutionSlot.funcToExecute());
11147
- }
11148
- };
11149
- if (nextExecutionSlot.mode === "exclusive") {
11150
- await checkNonExclusiveRunningSlots(true);
11151
- await runNextExecution();
11152
- } else {
11153
- nonExclusiveRunningSlots.push(nextExecutionSlot);
11154
- await checkNonExclusiveRunningSlots(false);
11155
- runNextExecution();
11156
- }
11157
- }
11158
- this.currentlyExecutingDeferred.resolve();
11159
- this.currentlyExecutingDeferred = null;
11160
- }
11161
- };
11162
-
11163
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.fastmap.js
11164
- var FastMap = class {
11165
- constructor() {
11166
- this.mapObject = {};
11167
- }
11168
- isUniqueKey(keyArg) {
11169
- return this.mapObject[keyArg] ? false : true;
11170
- }
11171
- addToMap(keyArg, objectArg, optionsArg) {
11172
- if (this.isUniqueKey(keyArg) || optionsArg && optionsArg.force) {
11173
- this.mapObject[keyArg] = objectArg;
11174
- return true;
11175
- } else {
11176
- return false;
11177
- }
11178
- }
11179
- getByKey(keyArg) {
11180
- return this.mapObject[keyArg];
11181
- }
11182
- removeFromMap(keyArg) {
11183
- const removedItem = this.getByKey(keyArg);
11184
- delete this.mapObject[keyArg];
11185
- return removedItem;
11186
- }
11187
- getKeys() {
11188
- const keys = [];
11189
- for (const keyArg in this.mapObject) {
11190
- if (this.mapObject[keyArg]) {
11191
- keys.push(keyArg);
11192
- }
11193
- }
11194
- return keys;
11195
- }
11196
- clean() {
11197
- this.mapObject = {};
11198
- }
11199
- /**
11200
- * returns a new Fastmap that includes all values from this and all from the fastmap in the argument
11201
- */
11202
- concat(fastMapArg) {
11203
- const concatedFastmap = new FastMap();
11204
- for (const key of this.getKeys()) {
11205
- concatedFastmap.addToMap(key, this.getByKey(key));
11206
- }
11207
- for (const key of fastMapArg.getKeys()) {
11208
- concatedFastmap.addToMap(key, fastMapArg.getByKey(key), {
11209
- force: true
11210
- });
11211
- }
11212
- return concatedFastmap;
11213
- }
11214
- /**
11215
- * tries to merge another Fastmap
11216
- * Note: uniqueKeyCollisions will cause overwrite
11217
- * @param fastMapArg
11218
- */
11219
- addAllFromOther(fastMapArg) {
11220
- for (const key of fastMapArg.getKeys()) {
11221
- this.addToMap(key, fastMapArg.getByKey(key), {
11222
- force: true
11223
- });
11224
- }
11225
- }
11226
- async find(findFunctionArg) {
11227
- for (const key of this.getKeys()) {
11228
- const item = this.getByKey(key);
11229
- const findFunctionResult = await findFunctionArg(item);
11230
- if (findFunctionResult) {
11231
- return item;
11232
- }
11233
- }
11234
- }
11235
- };
11236
-
11237
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.objectmap.js
11238
- var uni = (prefix = "uni") => {
11239
- return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, (c) => {
11240
- const r = Math.random() * 16 | 0;
11241
- const v = c === "x" ? r : r & 3 | 8;
11242
- return v.toString(16);
11243
- });
11244
- };
11245
- var ObjectMap = class {
11246
- /**
11247
- * returns a new instance
11248
- */
11249
- constructor() {
11250
- this.fastMap = new FastMap();
11251
- this.eventSubject = new dist_ts_exports8.rxjs.Subject();
11252
- }
11253
- /**
11254
- * adds an object mapped to a string
11255
- * the string must be unique
11256
- */
11257
- addMappedUnique(uniqueKeyArg, objectArg) {
11258
- this.fastMap.addToMap(uniqueKeyArg, objectArg);
11259
- }
11260
- /**
11261
- * fastest way to get an object from the map
11262
- * @param uniqueKey
11263
- */
11264
- getMappedUnique(uniqueKeyArg) {
11265
- return this.fastMap.getByKey(uniqueKeyArg);
11266
- }
11267
- /**
11268
- * remove key
11269
- * @param functionArg
11270
- */
11271
- removeMappedUnique(uniqueKey) {
11272
- const object = this.getMappedUnique(uniqueKey);
11273
- }
11274
- /**
11275
- * add object to Objectmap
11276
- * returns false if the object is already in the map
11277
- * returns true if the object was added successfully
11278
- */
11279
- add(objectArg) {
11280
- for (const keyArg of this.fastMap.getKeys()) {
11281
- const object = this.fastMap.getByKey(keyArg);
11282
- if (object === objectArg) {
11283
- return keyArg;
11284
- }
11285
- }
11286
- const uniqueKey = uni("key");
11287
- this.addMappedUnique(uniqueKey, objectArg);
11288
- this.eventSubject.next({
11289
- operation: "add",
11290
- payload: objectArg
11291
- });
11292
- return uniqueKey;
11293
- }
11294
- /**
11295
- * like .add but adds an whole array of objects
11296
- */
11297
- addArray(objectArrayArg) {
11298
- for (const item of objectArrayArg) {
11299
- this.add(item);
11300
- }
11301
- }
11302
- /**
11303
- * check if object is in Objectmap
11304
- */
11305
- checkForObject(objectArg) {
11306
- return !!this.getKeyForObject(objectArg);
11307
- }
11308
- /**
11309
- * get key for object
11310
- * @param findFunction
11311
- */
11312
- getKeyForObject(objectArg) {
11313
- let foundKey = null;
11314
- for (const keyArg of this.fastMap.getKeys()) {
11315
- if (!foundKey && this.fastMap.getByKey(keyArg) === objectArg) {
11316
- foundKey = keyArg;
11317
- } else {
11318
- continue;
11319
- }
11320
- }
11321
- return foundKey;
11322
- }
11323
- /**
11324
- * find object
11325
- */
11326
- async find(findFunction) {
11327
- return this.fastMap.find(findFunction);
11328
- }
11329
- findSync(findFunction) {
11330
- for (const keyArg of this.fastMap.getKeys()) {
11331
- if (findFunction(this.fastMap.getByKey(keyArg))) {
11332
- return this.getMappedUnique(keyArg);
11333
- }
11334
- }
11335
- }
11336
- /**
11337
- * finds a specific element and then removes it
11338
- */
11339
- async findOneAndRemove(findFunction) {
11340
- const foundElement = await this.find(findFunction);
11341
- if (foundElement) {
11342
- this.remove(foundElement);
11343
- }
11344
- return foundElement;
11345
- }
11346
- findOneAndRemoveSync(findFunction) {
11347
- const foundElement = this.findSync(findFunction);
11348
- if (foundElement) {
11349
- this.remove(foundElement);
11350
- }
11351
- return foundElement;
11352
- }
11353
- /**
11354
- * run function for each item in Objectmap
11355
- */
11356
- async forEach(functionArg) {
11357
- for (const keyArg of this.fastMap.getKeys()) {
11358
- await functionArg(this.fastMap.getByKey(keyArg));
11359
- }
11360
- }
11361
- /**
11362
- * gets an object in the Observablemap and removes it, so it can't be retrieved again
11363
- */
11364
- getOneAndRemove() {
11365
- const keys = this.fastMap.getKeys();
11366
- if (keys.length === 0) {
11367
- return null;
11368
- } else {
11369
- const keyToUse = keys[0];
11370
- const removedItem = this.fastMap.removeFromMap(keyToUse);
11371
- this.eventSubject.next({
11372
- operation: "remove",
11373
- payload: removedItem
11374
- });
11375
- return removedItem;
11376
- }
11377
- }
11378
- /**
11379
- * returns a cloned array of all the objects currently in the Objectmap
11380
- */
11381
- getArray() {
11382
- const returnArray = [];
11383
- for (const keyArg of this.fastMap.getKeys()) {
11384
- returnArray.push(this.fastMap.getByKey(keyArg));
11385
- }
11386
- return returnArray;
11387
- }
11388
- /**
11389
- * check if Objectmap ist empty
11390
- */
11391
- isEmpty() {
11392
- return this.fastMap.getKeys().length === 0;
11393
- }
11394
- /**
11395
- * remove object from Objectmap
11396
- */
11397
- remove(objectArg) {
11398
- if (this.checkForObject(objectArg)) {
11399
- const keyArg = this.getKeyForObject(objectArg);
11400
- const removedObject = this.fastMap.removeFromMap(keyArg);
11401
- this.eventSubject.next({
11402
- operation: "remove",
11403
- payload: removedObject
11404
- });
11405
- return removedObject;
11406
- }
11407
- return null;
11408
- }
11409
- /**
11410
- * wipe Objectmap
11411
- */
11412
- wipe() {
11413
- for (const keyArg of this.fastMap.getKeys()) {
11414
- this.fastMap.removeFromMap(keyArg);
11415
- }
11416
- }
11417
- /**
11418
- * returns a new Objectmap that includes
11419
- */
11420
- concat(objectMapArg) {
11421
- const concattedObjectMap = new ObjectMap();
11422
- concattedObjectMap.fastMap.addAllFromOther(this.fastMap);
11423
- concattedObjectMap.fastMap.addAllFromOther(objectMapArg.fastMap);
11424
- return concattedObjectMap;
11425
- }
11426
- /**
11427
- * tries to merge another Objectmap
11428
- * Note: uniqueKeyCollisions will cause overwrite
11429
- * @param objectMapArg
11430
- */
11431
- addAllFromOther(objectMapArg) {
11432
- this.fastMap.addAllFromOther(objectMapArg.fastMap);
11433
- }
11434
- };
11435
-
11436
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.interestmap.interest.js
11437
- var Interest = class {
11438
- /**
11439
- * quick access to a string that makes the interest comparable for checking for similar interests
11440
- */
11441
- get comparisonString() {
11442
- return this.comparisonFunc(this.originalInterest);
11443
- }
11444
- /**
11445
- * fullfill the interest
11446
- */
11447
- fullfillInterest(objectArg) {
11448
- this.isFullfilled = true;
11449
- this.fullfillmentStore = [];
11450
- this.interestDeferred.resolve(objectArg);
11451
- }
11452
- /**
11453
- *
11454
- */
11455
- constructor(interestMapArg, interestArg, comparisonFuncArg, optionsArg) {
11456
- this.destructionTimer = new dist_ts_exports10.Timer(1e4);
11457
- this.isFullfilled = false;
11458
- this.fullfillmentStore = [];
11459
- this.interestDeferred = new smartpromise3.Deferred();
11460
- this.interestFullfilled = this.interestDeferred.promise;
11461
- this.interestMapRef = interestMapArg;
11462
- this.originalInterest = interestArg;
11463
- this.comparisonFunc = comparisonFuncArg;
11464
- this.options = optionsArg;
11465
- this.destructionTimer.completed.then(() => {
11466
- this.destroy();
11467
- });
11468
- if (this.options?.markLostAfterDefault) {
11469
- smartdelay2.delayFor(this.options.markLostAfterDefault).then(this.markLost);
11470
- }
11471
- }
11472
- // ===============================
11473
- // LIFECYCLE MANAGEMENT
11474
- // ===============================
11475
- /**
11476
- * self destructs the interest
11477
- */
11478
- destroy() {
11479
- this.interestMapRef.removeInterest(this);
11480
- if (!this.isFullfilled && this.options.defaultFullfillment) {
11481
- this.fullfillInterest(this.options.defaultFullfillment);
11482
- }
11483
- }
11484
- /**
11485
- * notifies the interest that the interest in it has been lost
11486
- */
11487
- markLost() {
11488
- this.destructionTimer.start();
11489
- }
11490
- /**
11491
- * notifies the interest that the interest in it has been restored
11492
- */
11493
- renew() {
11494
- this.destructionTimer.reset();
11495
- }
11496
- };
11497
-
11498
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.interestmap.js
11499
- var InterestMap = class {
11500
- constructor(comparisonFuncArg, optionsArg = {}) {
11501
- this.interestObjectMap = new ObjectMap();
11502
- this.interestObservable = new dist_ts_exports8.ObservableIntake();
11503
- this.comparisonFunc = comparisonFuncArg;
11504
- this.options = optionsArg;
11505
- }
11506
- /**
11507
- * adds an interest to the InterestMap
11508
- * @param interestId
11509
- */
11510
- async addInterest(interestId, defaultFullfillmentArg) {
11511
- const comparisonString = this.comparisonFunc(interestId);
11512
- let returnInterest;
11513
- const newInterest = new Interest(this, interestId, this.comparisonFunc, {
11514
- markLostAfterDefault: this.options.markLostAfterDefault,
11515
- defaultFullfillment: defaultFullfillmentArg
11516
- });
11517
- let interestExists = false;
11518
- await this.interestObjectMap.forEach((interestArg) => {
11519
- if (!interestExists && interestArg.comparisonString === newInterest.comparisonString) {
11520
- console.log("info", `interest already exists for ${newInterest.comparisonString}`);
11521
- interestExists = true;
11522
- returnInterest = interestArg;
11523
- returnInterest.renew();
11524
- }
11525
- });
11526
- if (!returnInterest) {
11527
- returnInterest = newInterest;
11528
- this.interestObjectMap.add(returnInterest);
11529
- }
11530
- this.interestObservable.push(returnInterest);
11531
- return returnInterest;
11532
- }
11533
- /**
11534
- * removes an interest from the interest map
11535
- */
11536
- removeInterest(interestArg) {
11537
- const interestToRemove = this.interestObjectMap.findOneAndRemoveSync((interestArg2) => {
11538
- return interestArg.comparisonString === interestArg2.comparisonString;
11539
- });
11540
- }
11541
- /**
11542
- * check interest
11543
- */
11544
- checkInterest(objectArg) {
11545
- const comparisonString = this.comparisonFunc(objectArg);
11546
- return this.checkInterestByString(comparisonString);
11547
- }
11548
- /**
11549
- * checks an interest
11550
- * @param comparisonStringArg
11551
- */
11552
- checkInterestByString(comparisonStringArg) {
11553
- const foundInterest = this.interestObjectMap.findSync((interest) => {
11554
- return interest.comparisonString === comparisonStringArg;
11555
- });
11556
- if (foundInterest) {
11557
- return true;
11558
- } else {
11559
- return false;
11560
- }
11561
- }
11562
- /**
11563
- * inform lost interest
11564
- * @param interestId
11565
- */
11566
- informLostInterest(interestId) {
11567
- const wantedInterest = this.findInterest(interestId);
11568
- if (wantedInterest) {
11569
- wantedInterest.markLost();
11570
- }
11571
- }
11572
- /**
11573
- * finds an interest
11574
- * @param interestId
11575
- */
11576
- findInterest(interestId) {
11577
- const comparableString = this.comparisonFunc(interestId);
11578
- const interest = this.interestObjectMap.findSync((interestArg) => {
11579
- return interestArg.comparisonString === comparableString;
11580
- });
11581
- return interest;
11582
- }
11583
- };
11584
-
11585
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.limitedarray.js
11586
- var LimitedArray = class {
11587
- constructor(limitArg) {
11588
- this.array = [];
11589
- this.arrayLimit = limitArg;
11590
- }
11591
- addOne(objectArg) {
11592
- this.array.unshift(objectArg);
11593
- if (this.array.length > this.arrayLimit) {
11594
- this.array.length = this.arrayLimit;
11595
- }
11596
- }
11597
- addMany(objectArrayArg) {
11598
- for (let objectArg of objectArrayArg) {
11599
- this.addOne(objectArg);
11600
- }
11601
- }
11602
- setLimit(limitArg) {
11603
- this.arrayLimit = limitArg;
11604
- if (this.array.length > this.arrayLimit) {
11605
- this.array.length = this.arrayLimit;
11606
- }
11607
- }
11608
- getAverage() {
11609
- if (typeof this.array[0] === "number") {
11610
- let sum = 0;
11611
- for (let localNumber of this.array) {
11612
- let localNumberAny = localNumber;
11613
- sum = sum + localNumberAny;
11614
- }
11615
- return sum / this.array.length;
11616
- } else {
11617
- return null;
11618
- }
11619
- }
11620
- };
11621
-
11622
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.looptracker.js
11623
- var LoopTracker = class {
11624
- constructor() {
11625
- this.referenceObjectMap = new ObjectMap();
11626
- }
11627
- /**
11628
- * checks and tracks an object
11629
- * @param objectArg
11630
- */
11631
- checkAndTrack(objectArg) {
11632
- if (!this.referenceObjectMap.checkForObject(objectArg)) {
11633
- this.referenceObjectMap.add(objectArg);
11634
- return true;
11635
- } else {
11636
- return false;
11637
- }
11638
- }
11639
- };
11640
-
11641
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.stringmap.js
11642
- var Stringmap = class {
11643
- constructor() {
11644
- this._stringArray = [];
11645
- this._triggerUntilTrueFunctionArray = [];
11646
- }
11647
- /**
11648
- * add a string to the Stringmap
11649
- */
11650
- addString(stringArg) {
11651
- this._stringArray.push(stringArg);
11652
- this.notifyTrigger();
11653
- }
11654
- /**
11655
- * like addString, but accepts an array of strings
11656
- */
11657
- addStringArray(stringArrayArg) {
11658
- for (const stringItem of stringArrayArg) {
11659
- this.addString(stringItem);
11660
- }
11661
- }
11662
- /**
11663
- * removes a string from Stringmap
11664
- */
11665
- removeString(stringArg) {
11666
- for (const keyArg in this._stringArray) {
11667
- if (this._stringArray[keyArg] === stringArg) {
11668
- this._stringArray.splice(parseInt(keyArg), 1);
11669
- }
11670
- }
11671
- this.notifyTrigger();
11672
- }
11673
- /**
11674
- * wipes the Stringmap
11675
- */
11676
- wipe() {
11677
- this._stringArray = [];
11678
- this.notifyTrigger();
11679
- }
11680
- /**
11681
- * check if string is in Stringmap
11682
- */
11683
- checkString(stringArg) {
11684
- return this._stringArray.indexOf(stringArg) !== -1;
11685
- }
11686
- /**
11687
- * checks stringPresence with minimatch
11688
- */
11689
- checkMinimatch(miniMatchStringArg) {
11690
- const smartMatchInstance = new dist_ts_exports6.SmartMatch(miniMatchStringArg);
11691
- let foundMatch = false;
11692
- for (const stringItem of this._stringArray) {
11693
- if (smartMatchInstance.match(stringItem)) {
11694
- foundMatch = true;
11695
- }
11696
- }
11697
- return foundMatch;
11698
- }
11699
- /**
11700
- * checks if the Stringmap is empty
11701
- */
11702
- checkIsEmpty() {
11703
- return this._stringArray.length === 0;
11704
- }
11705
- /**
11706
- * gets a cloned copy of the current string Array
11707
- */
11708
- getStringArray() {
11709
- const returnArray = [];
11710
- for (const stringItem of this._stringArray) {
11711
- returnArray.push(stringItem);
11712
- }
11713
- return returnArray;
11714
- }
11715
- // trigger registering
11716
- /**
11717
- * register a new trigger
11718
- */
11719
- registerUntilTrue(functionArg, callbackArg) {
11720
- const trueDeferred = smartpromise3.defer();
11721
- this._triggerUntilTrueFunctionArray.push(() => {
11722
- const result = functionArg(this.getStringArray());
11723
- if (result === true) {
11724
- if (callbackArg) {
11725
- callbackArg();
11726
- }
11727
- trueDeferred.resolve();
11728
- }
11729
- return result;
11730
- });
11731
- this.notifyTrigger();
11732
- return trueDeferred.promise;
11733
- }
11734
- /**
11735
- * notifies triggers
11736
- */
11737
- notifyTrigger() {
11738
- const filteredArray = this._triggerUntilTrueFunctionArray.filter((functionArg) => {
11739
- return !functionArg();
11740
- });
11741
- this._triggerUntilTrueFunctionArray = filteredArray;
11742
- }
11743
- };
11744
-
11745
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.timedaggregator.js
11746
- var TimedAggregtor = class {
11747
- constructor(optionsArg) {
11748
- this.storageArray = [];
11749
- this.options = optionsArg;
11750
- }
11751
- checkAggregationStatus() {
11752
- const addAggregationTimer = () => {
11753
- this.aggregationTimer = new dist_ts_exports10.Timer(this.options.aggregationIntervalInMillis);
11754
- this.aggregationTimer.completed.then(() => {
11755
- const aggregateForProcessing = this.storageArray;
11756
- if (aggregateForProcessing.length === 0) {
11757
- this.aggregationTimer = null;
11758
- return;
11759
- }
11760
- this.storageArray = [];
11761
- addAggregationTimer();
11762
- this.options.functionForAggregation(aggregateForProcessing);
11763
- });
11764
- this.aggregationTimer.start();
11765
- };
11766
- if (!this.aggregationTimer) {
11767
- addAggregationTimer();
11768
- }
11769
- }
11770
- add(aggregationArg) {
11771
- this.storageArray.push(aggregationArg);
11772
- this.checkAggregationStatus();
11773
- }
11774
- };
11775
-
11776
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.tree.js
11777
- var Tree = class {
11778
- constructor() {
11779
- this.symbolTree = new import_symbol_tree.default();
11780
- }
11781
- // =======================================
11782
- // Functions that map to the functionality of symbol-tree
11783
- // =======================================
11784
- /**
11785
- *
11786
- * @param objectArg
11787
- */
11788
- initialize(objectArg) {
11789
- return this.symbolTree.initialize(objectArg);
11790
- }
11791
- hasChildren(objectArg) {
11792
- return this.symbolTree.hasChildren(objectArg);
11793
- }
11794
- firstChild(objectArg) {
11795
- return this.symbolTree.firstChild(objectArg);
11796
- }
11797
- lastChild(objectArg) {
11798
- return this.symbolTree.lastChild(objectArg);
11799
- }
11800
- previousSibling(objectArg) {
11801
- return this.symbolTree.previousSibling(objectArg);
11802
- }
11803
- nextSibling(objectArg) {
11804
- return this.symbolTree.nextSibling(objectArg);
11805
- }
11806
- parent(objectArg) {
11807
- return this.symbolTree.parent(objectArg);
11808
- }
11809
- lastInclusiveDescendant(objectArg) {
11810
- return this.symbolTree.lastInclusiveDescendant(objectArg);
11811
- }
11812
- preceding(objectArg, optionsArg) {
11813
- return this.symbolTree.preceding(objectArg, optionsArg);
11814
- }
11815
- following(object, optionsArg) {
11816
- return this.symbolTree.following(object, optionsArg);
11817
- }
11818
- childrenToArray(parentArg, optionsArg) {
11819
- return this.symbolTree.childrenToArray(parentArg, optionsArg);
11820
- }
11821
- ancestorsToArray(objectArg, optionsArg) {
11822
- return this.symbolTree.ancestorsToArray(objectArg, optionsArg);
11823
- }
11824
- treeToArray(rootArg, optionsArg) {
11825
- return this.symbolTree.treeToArray(rootArg, optionsArg);
11826
- }
11827
- childrenIterator(parentArg, optionsArg) {
11828
- return this.symbolTree.childrenIterator(parentArg, optionsArg);
11829
- }
11830
- previousSiblingsIterator(objectArg) {
11831
- return this.symbolTree.previousSiblingsIterator(objectArg);
11832
- }
11833
- nextSiblingsIterator(objectArg) {
11834
- return this.symbolTree.nextSiblingsIterator();
11835
- }
11836
- ancestorsIterator(objectArg) {
11837
- this.symbolTree.ancestorsIterator();
10048
+ let waitMs = this.msToNext(partial ? partial : this.previousrun);
10049
+ const target = this.next(partial ? partial : this.previousrun);
10050
+ if (waitMs === null || target === null)
10051
+ return this;
10052
+ if (waitMs > maxDelay) {
10053
+ waitMs = maxDelay;
11838
10054
  }
11839
- treeIterator(rootArg, optionsArg) {
11840
- return this.symbolTree.treeIterator(rootArg);
10055
+ this.currentTimeout = setTimeout(() => this._checkTrigger(target), waitMs);
10056
+ if (this.currentTimeout && this.options.unref) {
10057
+ unref(this.currentTimeout);
11841
10058
  }
11842
- index(childArg) {
11843
- return this.symbolTree.index(childArg);
10059
+ return this;
10060
+ };
10061
+ Cron.prototype._trigger = async function(initiationDate) {
10062
+ this.blocking = true;
10063
+ this.runstarted = new CronDate(initiationDate, this.options.timezone || this.options.utcOffset);
10064
+ if (this.options.catch) {
10065
+ try {
10066
+ await this.fn(this, this.options.context);
10067
+ } catch (_e) {
10068
+ if (isFn(this.options.catch)) {
10069
+ ((inst) => inst.options.catch(_e, inst))(this);
10070
+ }
10071
+ } finally {
10072
+ this.blocking = false;
10073
+ }
10074
+ } else {
10075
+ await this.fn(this, this.options.context);
10076
+ this.blocking = false;
11844
10077
  }
11845
- childrenCount(parentArg) {
11846
- return this.symbolTree.childrenCount(parentArg);
10078
+ };
10079
+ Cron.prototype._checkTrigger = function(target) {
10080
+ const now = /* @__PURE__ */ new Date(), shouldRun = !this.options.paused && now.getTime() >= target, isBlocked = this.blocking && this.options.protect;
10081
+ if (shouldRun && !isBlocked) {
10082
+ this.options.maxRuns--;
10083
+ this._trigger();
10084
+ this.previousrun = new CronDate(void 0, this.options.timezone || this.options.utcOffset);
10085
+ this.schedule();
10086
+ } else {
10087
+ if (shouldRun && isBlocked && isFn(this.options.protect)) {
10088
+ (async (inst) => inst.options.protect(inst))(this);
10089
+ }
10090
+ this.schedule(void 0, now);
11847
10091
  }
11848
- compareTreePosition(leftArg, rightArg) {
11849
- return this.compareTreePosition(leftArg, rightArg);
10092
+ };
10093
+ Cron.prototype._next = function(prev) {
10094
+ const hasPreviousRun = prev || this.previousrun ? true : false;
10095
+ prev = new CronDate(prev, this.options.timezone || this.options.utcOffset);
10096
+ if (this.options.startAt && prev && prev.getTime() < this.options.startAt.getTime()) {
10097
+ prev = this.options.startAt;
11850
10098
  }
11851
- remove(removeObjectArg) {
11852
- return this.symbolTree.remove(removeObjectArg);
10099
+ const nextRun = this.once || new CronDate(prev, this.options.timezone || this.options.utcOffset).increment(this.pattern, this.options, hasPreviousRun);
10100
+ if (this.once && this.once.getTime() <= prev.getTime()) {
10101
+ return null;
10102
+ } else if (nextRun === null || this.options.maxRuns <= 0 || this.options.kill || this.options.stopAt && nextRun.getTime() >= this.options.stopAt.getTime()) {
10103
+ return null;
10104
+ } else {
10105
+ return nextRun;
11853
10106
  }
11854
- insertBefore(referenceObjectArg, newObjectArg) {
11855
- return this.symbolTree.insertBefore(referenceObjectArg, newObjectArg);
10107
+ };
10108
+ Cron.Cron = Cron;
10109
+ Cron.scheduledJobs = scheduledJobs;
10110
+
10111
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
10112
+ var import_dayjs = __toESM(require_dayjs_min(), 1);
10113
+ var import_isToday = __toESM(require_isToday(), 1);
10114
+
10115
+ // node_modules/.pnpm/parse-ms@3.0.0/node_modules/parse-ms/index.js
10116
+ function parseMilliseconds(milliseconds) {
10117
+ if (typeof milliseconds !== "number") {
10118
+ throw new TypeError("Expected a number");
11856
10119
  }
11857
- insertAfter(referenceObject, newObjectArg) {
11858
- return this.symbolTree.insertAfter(referenceObject, newObjectArg);
10120
+ const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;
10121
+ return {
10122
+ days: roundTowardsZero(milliseconds / 864e5),
10123
+ hours: roundTowardsZero(milliseconds / 36e5) % 24,
10124
+ minutes: roundTowardsZero(milliseconds / 6e4) % 60,
10125
+ seconds: roundTowardsZero(milliseconds / 1e3) % 60,
10126
+ milliseconds: roundTowardsZero(milliseconds) % 1e3,
10127
+ microseconds: roundTowardsZero(milliseconds * 1e3) % 1e3,
10128
+ nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1e3
10129
+ };
10130
+ }
10131
+
10132
+ // node_modules/.pnpm/pretty-ms@8.0.0/node_modules/pretty-ms/index.js
10133
+ var pluralize = (word, count) => count === 1 ? word : `${word}s`;
10134
+ var SECOND_ROUNDING_EPSILON = 1e-7;
10135
+ function prettyMilliseconds(milliseconds, options = {}) {
10136
+ if (!Number.isFinite(milliseconds)) {
10137
+ throw new TypeError("Expected a finite number");
11859
10138
  }
11860
- prependChild(referenceObjectArg, newObjectArg) {
11861
- return this.symbolTree.prependChild(referenceObjectArg, newObjectArg);
10139
+ if (options.colonNotation) {
10140
+ options.compact = false;
10141
+ options.formatSubMilliseconds = false;
10142
+ options.separateMilliseconds = false;
10143
+ options.verbose = false;
11862
10144
  }
11863
- appendChild(referenceObjectArg, newObjectArg) {
11864
- return this.symbolTree.appendChild(referenceObjectArg, newObjectArg);
10145
+ if (options.compact) {
10146
+ options.secondsDecimalDigits = 0;
10147
+ options.millisecondsDecimalDigits = 0;
11865
10148
  }
11866
- // ===========================================
11867
- // Functionionality that extends symbol-tree
11868
- // ===========================================
11869
- /**
11870
- * returns a branch of the tree as JSON
11871
- * can be user
11872
- */
11873
- toJsonWithHierachy(rootElement) {
11874
- const treeIterable = this.treeIterator(rootElement, {});
11875
- for (const treeItem of treeIterable) {
11876
- console.log(treeItem);
10149
+ const result = [];
10150
+ const floorDecimals = (value, decimalDigits) => {
10151
+ const flooredInterimValue = Math.floor(value * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON);
10152
+ const flooredValue = Math.round(flooredInterimValue) / 10 ** decimalDigits;
10153
+ return flooredValue.toFixed(decimalDigits);
10154
+ };
10155
+ const add = (value, long, short, valueString) => {
10156
+ if ((result.length === 0 || !options.colonNotation) && value === 0 && !(options.colonNotation && short === "m")) {
10157
+ return;
10158
+ }
10159
+ valueString = (valueString || value || "0").toString();
10160
+ let prefix;
10161
+ let suffix;
10162
+ if (options.colonNotation) {
10163
+ prefix = result.length > 0 ? ":" : "";
10164
+ suffix = "";
10165
+ const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
10166
+ const minLength = result.length > 0 ? 2 : 1;
10167
+ valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString;
10168
+ } else {
10169
+ prefix = "";
10170
+ suffix = options.verbose ? " " + pluralize(long, value) : short;
10171
+ }
10172
+ result.push(prefix + valueString + suffix);
10173
+ };
10174
+ const parsed = parseMilliseconds(milliseconds);
10175
+ add(Math.trunc(parsed.days / 365), "year", "y");
10176
+ add(parsed.days % 365, "day", "d");
10177
+ add(parsed.hours, "hour", "h");
10178
+ add(parsed.minutes, "minute", "m");
10179
+ if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
10180
+ add(parsed.seconds, "second", "s");
10181
+ if (options.formatSubMilliseconds) {
10182
+ add(parsed.milliseconds, "millisecond", "ms");
10183
+ add(parsed.microseconds, "microsecond", "\xB5s");
10184
+ add(parsed.nanoseconds, "nanosecond", "ns");
10185
+ } else {
10186
+ const millisecondsAndBelow = parsed.milliseconds + parsed.microseconds / 1e3 + parsed.nanoseconds / 1e6;
10187
+ const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
10188
+ const roundedMiliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
10189
+ const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMiliseconds;
10190
+ add(
10191
+ Number.parseFloat(millisecondsString),
10192
+ "millisecond",
10193
+ "ms",
10194
+ millisecondsString
10195
+ );
11877
10196
  }
10197
+ } else {
10198
+ const seconds = milliseconds / 1e3 % 60;
10199
+ const secondsDecimalDigits = typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1;
10200
+ const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
10201
+ const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
10202
+ add(Number.parseFloat(secondsString), "second", "s", secondsString);
11878
10203
  }
11879
- /**
11880
- * builds a tree from a JSON with hierachy
11881
- * @param rootElement
11882
- */
11883
- fromJsonWithHierachy(rootElement) {
10204
+ if (result.length === 0) {
10205
+ return "0" + (options.verbose ? " milliseconds" : "ms");
11884
10206
  }
11885
- };
10207
+ if (options.compact) {
10208
+ return result[0];
10209
+ }
10210
+ if (typeof options.unitCount === "number") {
10211
+ const separator = options.colonNotation ? "" : " ";
10212
+ return result.slice(0, Math.max(options.unitCount, 1)).join(separator);
10213
+ }
10214
+ return options.colonNotation ? result.join("") : result.join(" ");
10215
+ }
11886
10216
 
11887
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
11888
- var smartdelay3 = __toESM(require_dist_ts3(), 1);
11889
- var smartpromise4 = __toESM(require_dist_ts(), 1);
11890
- var import_dayjs2 = __toESM(require_dayjs_min(), 1);
11891
- var import_isToday2 = __toESM(require_isToday(), 1);
11892
- import_dayjs2.default.extend(import_isToday2.default);
10217
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
10218
+ import_dayjs.default.extend(import_isToday.default);
11893
10219
 
11894
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js
11895
- var CronJob2 = class {
10220
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js
10221
+ var CronJob = class {
11896
10222
  constructor(cronManager, cronExpressionArg, jobFunction) {
11897
10223
  this.status = "initial";
11898
10224
  this.nextExecutionUnix = 0;
@@ -11933,8 +10259,8 @@ var CronJob2 = class {
11933
10259
  }
11934
10260
  };
11935
10261
 
11936
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js
11937
- var units2 = {
10262
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js
10263
+ var units = {
11938
10264
  years: (timesArg = 1) => {
11939
10265
  return timesArg * 3154e7;
11940
10266
  },
@@ -11954,43 +10280,43 @@ var units2 = {
11954
10280
  return timesArg * 6e4;
11955
10281
  }
11956
10282
  };
11957
- var getMilliSecondsFromUnits2 = (combinationArg) => {
10283
+ var getMilliSecondsFromUnits = (combinationArg) => {
11958
10284
  let timeInMilliseconds = 0;
11959
10285
  let addMilliSeconds = (milliSecondsArg) => {
11960
10286
  timeInMilliseconds = timeInMilliseconds + milliSecondsArg;
11961
10287
  };
11962
10288
  if (combinationArg.years) {
11963
- addMilliSeconds(units2.years(combinationArg.years));
10289
+ addMilliSeconds(units.years(combinationArg.years));
11964
10290
  }
11965
10291
  if (combinationArg.months) {
11966
- addMilliSeconds(units2.months(combinationArg.months));
10292
+ addMilliSeconds(units.months(combinationArg.months));
11967
10293
  }
11968
10294
  if (combinationArg.weeks) {
11969
- addMilliSeconds(units2.weeks(combinationArg.weeks));
10295
+ addMilliSeconds(units.weeks(combinationArg.weeks));
11970
10296
  }
11971
10297
  if (combinationArg.days) {
11972
- addMilliSeconds(units2.days(combinationArg.days));
10298
+ addMilliSeconds(units.days(combinationArg.days));
11973
10299
  }
11974
10300
  if (combinationArg.hours) {
11975
- addMilliSeconds(units2.hours(combinationArg.hours));
10301
+ addMilliSeconds(units.hours(combinationArg.hours));
11976
10302
  }
11977
10303
  if (combinationArg.minutes) {
11978
- addMilliSeconds(units2.minutes(combinationArg.minutes));
10304
+ addMilliSeconds(units.minutes(combinationArg.minutes));
11979
10305
  }
11980
10306
  return timeInMilliseconds;
11981
10307
  };
11982
- var getMilliSecondsAsHumanReadableString2 = (milliSecondsArg) => {
10308
+ var getMilliSecondsAsHumanReadableString = (milliSecondsArg) => {
11983
10309
  return prettyMilliseconds(milliSecondsArg);
11984
10310
  };
11985
10311
 
11986
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
11987
- var CronManager2 = class {
10312
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
10313
+ var CronManager = class {
11988
10314
  constructor() {
11989
10315
  this.status = "stopped";
11990
- this.cronjobs = new dist_ts_exports9.ObjectMap();
10316
+ this.cronjobs = new dist_ts_exports6.ObjectMap();
11991
10317
  }
11992
10318
  addCronjob(cronIdentifierArg, cronFunctionArg) {
11993
- const newCronJob = new CronJob2(this, cronIdentifierArg, cronFunctionArg);
10319
+ const newCronJob = new CronJob(this, cronIdentifierArg, cronFunctionArg);
11994
10320
  this.cronjobs.add(newCronJob);
11995
10321
  if (this.status === "started") {
11996
10322
  newCronJob.start();
@@ -12011,7 +10337,7 @@ var CronManager2 = class {
12011
10337
  cronJob.start();
12012
10338
  }
12013
10339
  const runCronCycle = async () => {
12014
- this.executionTimeout = new smartdelay3.Timeout(0);
10340
+ this.executionTimeout = new dist_ts_exports3.Timeout(0);
12015
10341
  do {
12016
10342
  let nextRunningCronjob;
12017
10343
  for (const cronJob of this.cronjobs.getArray()) {
@@ -12021,10 +10347,10 @@ var CronManager2 = class {
12021
10347
  }
12022
10348
  }
12023
10349
  if (nextRunningCronjob) {
12024
- this.executionTimeout = new smartdelay3.Timeout(nextRunningCronjob.getTimeToNextExecution());
12025
- console.log(`Next CronJob scheduled in ${getMilliSecondsAsHumanReadableString2(this.executionTimeout.getTimeLeft())}`);
10350
+ this.executionTimeout = new dist_ts_exports3.Timeout(nextRunningCronjob.getTimeToNextExecution());
10351
+ console.log(`Next CronJob scheduled in ${getMilliSecondsAsHumanReadableString(this.executionTimeout.getTimeLeft())}`);
12026
10352
  } else {
12027
- this.executionTimeout = new smartdelay3.Timeout(1e3);
10353
+ this.executionTimeout = new dist_ts_exports3.Timeout(1e3);
12028
10354
  console.log("no cronjobs specified! Checking again in 1 second");
12029
10355
  }
12030
10356
  await this.executionTimeout.promise;
@@ -12049,14 +10375,14 @@ var CronManager2 = class {
12049
10375
  }
12050
10376
  };
12051
10377
 
12052
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
12053
- var ExtendedDate2 = class extends Date {
10378
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
10379
+ var ExtendedDate = class extends Date {
12054
10380
  // STATIC factories
12055
10381
  static fromMillis(milliSeconds) {
12056
- return new ExtendedDate2(milliSeconds);
10382
+ return new ExtendedDate(milliSeconds);
12057
10383
  }
12058
10384
  static fromDate(dateArg) {
12059
- return new ExtendedDate2(dateArg.getTime());
10385
+ return new ExtendedDate(dateArg.getTime());
12060
10386
  }
12061
10387
  static fromEuropeanDate(europeanDate) {
12062
10388
  const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate);
@@ -12069,7 +10395,7 @@ var ExtendedDate2 = class extends Date {
12069
10395
  // day
12070
10396
  );
12071
10397
  const unixMilli = date.getTime();
12072
- return new ExtendedDate2(unixMilli);
10398
+ return new ExtendedDate(unixMilli);
12073
10399
  }
12074
10400
  /**
12075
10401
  * creates an Extended date from a hypedDate like "2018-03-28"
@@ -12077,7 +10403,7 @@ var ExtendedDate2 = class extends Date {
12077
10403
  */
12078
10404
  static fromHyphedDate(dateString) {
12079
10405
  const dateMillis = new Date(dateString).getTime();
12080
- return new ExtendedDate2(dateMillis);
10406
+ return new ExtendedDate(dateMillis);
12081
10407
  }
12082
10408
  /**
12083
10409
  * Same as .fromEuropeanDate(), but accepts additional timeArg and zoneArg
@@ -12088,21 +10414,21 @@ var ExtendedDate2 = class extends Date {
12088
10414
  return `0${dateString}`.slice(-2);
12089
10415
  };
12090
10416
  const dateTimeString = `${dateArray[3]}-${sliceDate(dateArray[2])}-${sliceDate(dateArray[1])}T${timeArg}`;
12091
- const date = import_dayjs2.default(dateTimeString);
10417
+ const date = import_dayjs.default(dateTimeString);
12092
10418
  const unixMilli = date.toDate().getTime();
12093
- return new ExtendedDate2(unixMilli);
10419
+ return new ExtendedDate(unixMilli);
12094
10420
  }
12095
10421
  constructor(unixMilli = Date.now()) {
12096
10422
  super(unixMilli);
12097
10423
  }
12098
10424
  //
12099
10425
  exportToEuropeanDate() {
12100
- const units3 = this.exportToUnits();
12101
- return `${units3.dayString}.${units3.monthString}.${units3.yearString}`;
10426
+ const units2 = this.exportToUnits();
10427
+ return `${units2.dayString}.${units2.monthString}.${units2.yearString}`;
12102
10428
  }
12103
10429
  exportToHyphedSortableDate() {
12104
- const units3 = this.exportToUnits();
12105
- return `${units3.yearString}-${units3.monthString}-${units3.dayString}`;
10430
+ const units2 = this.exportToUnits();
10431
+ return `${units2.yearString}-${units2.monthString}-${units2.dayString}`;
12106
10432
  }
12107
10433
  /**
12108
10434
  * exports units
@@ -12144,16 +10470,16 @@ var ExtendedDate2 = class extends Date {
12144
10470
  };
12145
10471
  }
12146
10472
  format(formatArg) {
12147
- return import_dayjs2.default(this.getTime()).format(formatArg);
10473
+ return import_dayjs.default(this.getTime()).format(formatArg);
12148
10474
  }
12149
10475
  /**
12150
10476
  * boolean checks
12151
10477
  */
12152
10478
  isToday() {
12153
- return import_dayjs2.default(this.getTime()).isToday();
10479
+ return import_dayjs.default(this.getTime()).isToday();
12154
10480
  }
12155
10481
  lessTimePassedToNow(unitArgs) {
12156
- const maxPassedUnixTime = getMilliSecondsFromUnits2(unitArgs);
10482
+ const maxPassedUnixTime = getMilliSecondsFromUnits(unitArgs);
12157
10483
  const actualPassedUnixTime = Date.now() - this.getTime();
12158
10484
  return actualPassedUnixTime < maxPassedUnixTime;
12159
10485
  }
@@ -12162,8 +10488,8 @@ var ExtendedDate2 = class extends Date {
12162
10488
  }
12163
10489
  };
12164
10490
 
12165
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
12166
- var HrtMeasurement2 = class {
10491
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
10492
+ var HrtMeasurement = class {
12167
10493
  constructor() {
12168
10494
  this.nanoSeconds = null;
12169
10495
  this.milliSeconds = null;
@@ -12203,8 +10529,8 @@ var HrtMeasurement2 = class {
12203
10529
  }
12204
10530
  };
12205
10531
 
12206
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js
12207
- var Interval2 = class {
10532
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js
10533
+ var Interval = class {
12208
10534
  constructor(intervalMillisencondsArg) {
12209
10535
  this.status = "initial";
12210
10536
  this.statusAuthorization = null;
@@ -12217,7 +10543,7 @@ var Interval2 = class {
12217
10543
  this.statusAuthorization = statusAuth;
12218
10544
  const runInterval = async () => {
12219
10545
  while (this.status === "started" && this.statusAuthorization === statusAuth) {
12220
- await smartdelay3.delayFor(this.intervalMilliseconds);
10546
+ await dist_ts_exports3.delayFor(this.intervalMilliseconds);
12221
10547
  this.executeIntervalJobs();
12222
10548
  }
12223
10549
  };
@@ -12237,20 +10563,20 @@ var Interval2 = class {
12237
10563
  }
12238
10564
  };
12239
10565
 
12240
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js
12241
- var TimeStamp2 = class {
10566
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js
10567
+ var TimeStamp = class {
12242
10568
  /**
12243
10569
  * returns new TimeStamp from milliseconds
12244
10570
  */
12245
10571
  static fromMilliSeconds(milliSecondsArg) {
12246
- return new TimeStamp2(milliSecondsArg);
10572
+ return new TimeStamp(milliSecondsArg);
12247
10573
  }
12248
10574
  /**
12249
10575
  * returns new TimeStamp for now with change set
12250
10576
  * @param timeStampArg
12251
10577
  */
12252
10578
  static fromTimeStamp(timeStampArg) {
12253
- const localTimeStamp = new TimeStamp2();
10579
+ const localTimeStamp = new TimeStamp();
12254
10580
  localTimeStamp.change = localTimeStamp.milliSeconds - timeStampArg.milliSeconds;
12255
10581
  return localTimeStamp;
12256
10582
  }
@@ -12300,21 +10626,21 @@ var TimeStamp2 = class {
12300
10626
  }
12301
10627
  }
12302
10628
  isYoungerThanMilliSeconds(millisecondArg) {
12303
- const nowTimeStamp = new TimeStamp2();
10629
+ const nowTimeStamp = new TimeStamp();
12304
10630
  const compareEpochTime = nowTimeStamp.epochtime - millisecondArg;
12305
- const compareTimeStamp = new TimeStamp2(compareEpochTime);
10631
+ const compareTimeStamp = new TimeStamp(compareEpochTime);
12306
10632
  return this.isYoungerThanOtherTimeStamp(compareTimeStamp);
12307
10633
  }
12308
10634
  };
12309
10635
 
12310
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js
12311
- var Timer2 = class {
10636
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js
10637
+ var Timer = class {
12312
10638
  get timeLeft() {
12313
10639
  return this.timeInMilliseconds - this.pausedAt.change;
12314
10640
  }
12315
10641
  constructor(timeInMillisecondsArg) {
12316
10642
  this.state = "initiated";
12317
- this.completedDeferred = smartpromise4.defer();
10643
+ this.completedDeferred = dist_ts_exports2.defer();
12318
10644
  this.timeInMilliseconds = timeInMillisecondsArg;
12319
10645
  this.completed = this.completedDeferred.promise;
12320
10646
  }
@@ -12326,7 +10652,7 @@ var Timer2 = class {
12326
10652
  this.currentTimeout = setTimeout(() => {
12327
10653
  this.completedDeferred.resolve();
12328
10654
  }, this.timeInMilliseconds);
12329
- this.startedAt = new TimeStamp2();
10655
+ this.startedAt = new TimeStamp();
12330
10656
  } else {
12331
10657
  throw new Error("timer has been started before. Please use resume instead");
12332
10658
  }
@@ -12335,7 +10661,7 @@ var Timer2 = class {
12335
10661
  if (this.startedAt) {
12336
10662
  clearTimeout(this.currentTimeout);
12337
10663
  this.currentTimeout = null;
12338
- this.pausedAt = TimeStamp2.fromTimeStamp(this.startedAt);
10664
+ this.pausedAt = TimeStamp.fromTimeStamp(this.startedAt);
12339
10665
  }
12340
10666
  }
12341
10667
  resume() {
@@ -12355,10 +10681,10 @@ var Timer2 = class {
12355
10681
  };
12356
10682
 
12357
10683
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.plugins.js
12358
- var import_symbol_tree2 = __toESM(require_SymbolTree(), 1);
10684
+ var import_symbol_tree = __toESM(require_SymbolTree(), 1);
12359
10685
 
12360
10686
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.asyncexecutionstack.js
12361
- var AsyncExecutionStack2 = class {
10687
+ var AsyncExecutionStack = class {
12362
10688
  constructor() {
12363
10689
  this.executionSlots = [];
12364
10690
  }
@@ -12426,7 +10752,7 @@ var AsyncExecutionStack2 = class {
12426
10752
  };
12427
10753
 
12428
10754
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.fastmap.js
12429
- var FastMap2 = class {
10755
+ var FastMap = class {
12430
10756
  constructor() {
12431
10757
  this.mapObject = {};
12432
10758
  }
@@ -12465,7 +10791,7 @@ var FastMap2 = class {
12465
10791
  * returns a new Fastmap that includes all values from this and all from the fastmap in the argument
12466
10792
  */
12467
10793
  concat(fastMapArg) {
12468
- const concatedFastmap = new FastMap2();
10794
+ const concatedFastmap = new FastMap();
12469
10795
  for (const key of this.getKeys()) {
12470
10796
  concatedFastmap.addToMap(key, this.getByKey(key));
12471
10797
  }
@@ -12500,19 +10826,19 @@ var FastMap2 = class {
12500
10826
  };
12501
10827
 
12502
10828
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.objectmap.js
12503
- var uni2 = (prefix = "uni") => {
10829
+ var uni = (prefix = "uni") => {
12504
10830
  return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, (c) => {
12505
10831
  const r = Math.random() * 16 | 0;
12506
10832
  const v = c === "x" ? r : r & 3 | 8;
12507
10833
  return v.toString(16);
12508
10834
  });
12509
10835
  };
12510
- var ObjectMap2 = class {
10836
+ var ObjectMap = class {
12511
10837
  /**
12512
10838
  * returns a new instance
12513
10839
  */
12514
10840
  constructor() {
12515
- this.fastMap = new FastMap2();
10841
+ this.fastMap = new FastMap();
12516
10842
  this.eventSubject = new dist_ts_exports5.rxjs.Subject();
12517
10843
  }
12518
10844
  /**
@@ -12548,7 +10874,7 @@ var ObjectMap2 = class {
12548
10874
  return keyArg;
12549
10875
  }
12550
10876
  }
12551
- const uniqueKey = uni2("key");
10877
+ const uniqueKey = uni("key");
12552
10878
  this.addMappedUnique(uniqueKey, objectArg);
12553
10879
  this.eventSubject.next({
12554
10880
  operation: "add",
@@ -12683,7 +11009,7 @@ var ObjectMap2 = class {
12683
11009
  * returns a new Objectmap that includes
12684
11010
  */
12685
11011
  concat(objectMapArg) {
12686
- const concattedObjectMap = new ObjectMap2();
11012
+ const concattedObjectMap = new ObjectMap();
12687
11013
  concattedObjectMap.fastMap.addAllFromOther(this.fastMap);
12688
11014
  concattedObjectMap.fastMap.addAllFromOther(objectMapArg.fastMap);
12689
11015
  return concattedObjectMap;
@@ -12699,7 +11025,7 @@ var ObjectMap2 = class {
12699
11025
  };
12700
11026
 
12701
11027
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.interest.js
12702
- var Interest2 = class {
11028
+ var Interest = class {
12703
11029
  /**
12704
11030
  * quick access to a string that makes the interest comparable for checking for similar interests
12705
11031
  */
@@ -12718,7 +11044,7 @@ var Interest2 = class {
12718
11044
  *
12719
11045
  */
12720
11046
  constructor(interestMapArg, interestArg, comparisonFuncArg, optionsArg) {
12721
- this.destructionTimer = new dist_ts_exports11.Timer(1e4);
11047
+ this.destructionTimer = new dist_ts_exports7.Timer(1e4);
12722
11048
  this.isFullfilled = false;
12723
11049
  this.fullfillmentStore = [];
12724
11050
  this.interestDeferred = new dist_ts_exports2.Deferred();
@@ -12761,9 +11087,9 @@ var Interest2 = class {
12761
11087
  };
12762
11088
 
12763
11089
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.js
12764
- var InterestMap2 = class {
11090
+ var InterestMap = class {
12765
11091
  constructor(comparisonFuncArg, optionsArg = {}) {
12766
- this.interestObjectMap = new ObjectMap2();
11092
+ this.interestObjectMap = new ObjectMap();
12767
11093
  this.interestObservable = new dist_ts_exports5.ObservableIntake();
12768
11094
  this.comparisonFunc = comparisonFuncArg;
12769
11095
  this.options = optionsArg;
@@ -12775,7 +11101,7 @@ var InterestMap2 = class {
12775
11101
  async addInterest(interestId, defaultFullfillmentArg) {
12776
11102
  const comparisonString = this.comparisonFunc(interestId);
12777
11103
  let returnInterest;
12778
- const newInterest = new Interest2(this, interestId, this.comparisonFunc, {
11104
+ const newInterest = new Interest(this, interestId, this.comparisonFunc, {
12779
11105
  markLostAfterDefault: this.options.markLostAfterDefault,
12780
11106
  defaultFullfillment: defaultFullfillmentArg
12781
11107
  });
@@ -12848,7 +11174,7 @@ var InterestMap2 = class {
12848
11174
  };
12849
11175
 
12850
11176
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.limitedarray.js
12851
- var LimitedArray2 = class {
11177
+ var LimitedArray = class {
12852
11178
  constructor(limitArg) {
12853
11179
  this.array = [];
12854
11180
  this.arrayLimit = limitArg;
@@ -12885,9 +11211,9 @@ var LimitedArray2 = class {
12885
11211
  };
12886
11212
 
12887
11213
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.looptracker.js
12888
- var LoopTracker2 = class {
11214
+ var LoopTracker = class {
12889
11215
  constructor() {
12890
- this.referenceObjectMap = new ObjectMap2();
11216
+ this.referenceObjectMap = new ObjectMap();
12891
11217
  }
12892
11218
  /**
12893
11219
  * checks and tracks an object
@@ -12904,7 +11230,7 @@ var LoopTracker2 = class {
12904
11230
  };
12905
11231
 
12906
11232
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.stringmap.js
12907
- var Stringmap2 = class {
11233
+ var Stringmap = class {
12908
11234
  constructor() {
12909
11235
  this._stringArray = [];
12910
11236
  this._triggerUntilTrueFunctionArray = [];
@@ -13008,14 +11334,14 @@ var Stringmap2 = class {
13008
11334
  };
13009
11335
 
13010
11336
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.timedaggregator.js
13011
- var TimedAggregtor2 = class {
11337
+ var TimedAggregtor = class {
13012
11338
  constructor(optionsArg) {
13013
11339
  this.storageArray = [];
13014
11340
  this.options = optionsArg;
13015
11341
  }
13016
11342
  checkAggregationStatus() {
13017
11343
  const addAggregationTimer = () => {
13018
- this.aggregationTimer = new dist_ts_exports11.Timer(this.options.aggregationIntervalInMillis);
11344
+ this.aggregationTimer = new dist_ts_exports7.Timer(this.options.aggregationIntervalInMillis);
13019
11345
  this.aggregationTimer.completed.then(() => {
13020
11346
  const aggregateForProcessing = this.storageArray;
13021
11347
  if (aggregateForProcessing.length === 0) {
@@ -13039,9 +11365,9 @@ var TimedAggregtor2 = class {
13039
11365
  };
13040
11366
 
13041
11367
  // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.tree.js
13042
- var Tree2 = class {
11368
+ var Tree = class {
13043
11369
  constructor() {
13044
- this.symbolTree = new import_symbol_tree2.default();
11370
+ this.symbolTree = new import_symbol_tree.default();
13045
11371
  }
13046
11372
  // =======================================
13047
11373
  // Functions that map to the functionality of symbol-tree
@@ -13150,13 +11476,13 @@ var Tree2 = class {
13150
11476
  };
13151
11477
 
13152
11478
  // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/index.js
13153
- var dist_ts_exports13 = {};
13154
- __export(dist_ts_exports13, {
11479
+ var dist_ts_exports8 = {};
11480
+ __export(dist_ts_exports8, {
13155
11481
  Smartenv: () => Smartenv2
13156
11482
  });
13157
11483
 
13158
11484
  // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.plugins.js
13159
- var smartpromise5 = __toESM(require_dist_ts(), 1);
11485
+ var smartpromise2 = __toESM(require_dist_ts(), 1);
13160
11486
 
13161
11487
  // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
13162
11488
  var Smartenv2 = class {
@@ -13191,7 +11517,7 @@ var Smartenv2 = class {
13191
11517
  } else {
13192
11518
  this.loadedScripts.push(urlArg);
13193
11519
  }
13194
- const done = smartpromise5.defer();
11520
+ const done = smartpromise2.defer();
13195
11521
  if (globalThis.importScripts) {
13196
11522
  globalThis.importScripts(urlArg);
13197
11523
  done.resolve();
@@ -13279,8 +11605,8 @@ var Smartenv2 = class {
13279
11605
  };
13280
11606
 
13281
11607
  // node_modules/.pnpm/@push.rocks+smartjson@5.0.6/node_modules/@push.rocks/smartjson/dist_ts/index.js
13282
- var dist_ts_exports15 = {};
13283
- __export(dist_ts_exports15, {
11608
+ var dist_ts_exports10 = {};
11609
+ __export(dist_ts_exports10, {
13284
11610
  Smartjson: () => Smartjson,
13285
11611
  deepEqualObjects: () => deepEqualObjects,
13286
11612
  foldDec: () => foldDec,
@@ -13291,8 +11617,8 @@ __export(dist_ts_exports15, {
13291
11617
  });
13292
11618
 
13293
11619
  // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/index.js
13294
- var dist_ts_exports14 = {};
13295
- __export(dist_ts_exports14, {
11620
+ var dist_ts_exports9 = {};
11621
+ __export(dist_ts_exports9, {
13296
11622
  Base64: () => Base64,
13297
11623
  Domain: () => Domain,
13298
11624
  GitRepo: () => GitRepo,
@@ -13312,7 +11638,7 @@ __export(smartstring_create_exports, {
13312
11638
  });
13313
11639
 
13314
11640
  // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.plugins.js
13315
- var isounique = __toESM(require_dist_ts4(), 1);
11641
+ var isounique = __toESM(require_dist_ts3(), 1);
13316
11642
  var import_buffer = __toESM(require_buffer(), 1);
13317
11643
  var url = __toESM(require_url(), 1);
13318
11644
 
@@ -13842,10 +12168,10 @@ var stringify = (objArg, simpleOrderArray, optionsArg = {}) => {
13842
12168
  };
13843
12169
  var stringifyBase64 = (...args) => {
13844
12170
  const stringifiedResult = stringify(...args);
13845
- return dist_ts_exports14.base64.encodeUri(stringifiedResult);
12171
+ return dist_ts_exports9.base64.encodeUri(stringifiedResult);
13846
12172
  };
13847
12173
  var parseBase64 = (base64JsonStringArg) => {
13848
- const simpleStringified = dist_ts_exports14.base64.decode(base64JsonStringArg);
12174
+ const simpleStringified = dist_ts_exports9.base64.decode(base64JsonStringArg);
13849
12175
  return parse(simpleStringified);
13850
12176
  };
13851
12177
  var Smartjson = class {
@@ -13910,8 +12236,8 @@ var deepEqualObjects = (object1, object2) => {
13910
12236
  };
13911
12237
 
13912
12238
  // node_modules/.pnpm/@push.rocks+smartlog@3.0.3/node_modules/@push.rocks/smartlog/dist_ts/index.js
13913
- var dist_ts_exports18 = {};
13914
- __export(dist_ts_exports18, {
12239
+ var dist_ts_exports13 = {};
12240
+ __export(dist_ts_exports13, {
13915
12241
  ConsoleLog: () => ConsoleLog,
13916
12242
  LogGroup: () => LogGroup,
13917
12243
  Smartlog: () => Smartlog
@@ -14072,7 +12398,7 @@ var LogGroup = class {
14072
12398
  };
14073
12399
 
14074
12400
  // ts/smartsocket.logging.ts
14075
- var logger = new dist_ts_exports18.ConsoleLog();
12401
+ var logger = new dist_ts_exports13.ConsoleLog();
14076
12402
 
14077
12403
  // ts/smartsocket.classes.socketrequest.ts
14078
12404
  var SocketRequest = class {
@@ -14146,8 +12472,8 @@ var SmartsocketClient2 = class {
14146
12472
  // status handling
14147
12473
  this.eventSubject = new dist_ts_exports5.rxjs.Subject();
14148
12474
  this.eventStatus = "new";
14149
- this.socketFunctions = new dist_ts_exports12.ObjectMap();
14150
- this.socketRequests = new dist_ts_exports12.ObjectMap();
12475
+ this.socketFunctions = new dist_ts_exports6.ObjectMap();
12476
+ this.socketRequests = new dist_ts_exports6.ObjectMap();
14151
12477
  // tagStore
14152
12478
  this.tagStore = {};
14153
12479
  this.disconnectRunning = false;
@@ -14191,7 +12517,7 @@ var SmartsocketClient2 = class {
14191
12517
  */
14192
12518
  async connect() {
14193
12519
  const done = dist_ts_exports2.defer();
14194
- const smartenvInstance2 = new dist_ts_exports13.Smartenv();
12520
+ const smartenvInstance2 = new dist_ts_exports8.Smartenv();
14195
12521
  const socketIoClient = await smartenvInstance2.getEnvAwareModule({
14196
12522
  nodeModuleName: "socket.io-client",
14197
12523
  webUrlArg: "https://cdn.jsdelivr.net/npm/socket.io-client@4/dist/socket.io.js",
@@ -14215,7 +12541,7 @@ var SmartsocketClient2 = class {
14215
12541
  rejectUnauthorized: socketUrl.startsWith("https://localhost") ? false : true
14216
12542
  }).open()
14217
12543
  });
14218
- const timer2 = new dist_ts_exports11.Timer(5e3);
12544
+ const timer2 = new dist_ts_exports7.Timer(5e3);
14219
12545
  timer2.start();
14220
12546
  timer2.completed.then(() => {
14221
12547
  this.updateStatus("timedOut");
@@ -14367,7 +12693,7 @@ var SocketFunction = class {
14367
12693
  };
14368
12694
 
14369
12695
  // ts/smartsocket.classes.socketconnection.ts
14370
- var allSocketConnections = new dist_ts_exports12.ObjectMap();
12696
+ var allSocketConnections = new dist_ts_exports6.ObjectMap();
14371
12697
  var SocketConnection2 = class {
14372
12698
  constructor(optionsArg) {
14373
12699
  this.authenticated = false;
@@ -14406,8 +12732,8 @@ var SocketConnection2 = class {
14406
12732
  if (!remoteTagStore[tagArg.id]) {
14407
12733
  return;
14408
12734
  }
14409
- const localTagString = dist_ts_exports15.stringify(tagArg);
14410
- const remoteTagString = dist_ts_exports15.stringify(remoteTagStore[tagArg.id]);
12735
+ const localTagString = dist_ts_exports10.stringify(tagArg);
12736
+ const remoteTagString = dist_ts_exports10.stringify(remoteTagStore[tagArg.id]);
14411
12737
  if (localTagString === remoteTagString) {
14412
12738
  remoteSubscription.unsubscribe();
14413
12739
  done.resolve();
@@ -14489,7 +12815,7 @@ var SocketConnection2 = class {
14489
12815
  targetSocketRequest.handleResponse(dataArg);
14490
12816
  });
14491
12817
  this.socket.on("updateTagStore", async (tagStoreArg) => {
14492
- if (!dist_ts_exports15.deepEqualObjects(this.tagStore, tagStoreArg)) {
12818
+ if (!dist_ts_exports10.deepEqualObjects(this.tagStore, tagStoreArg)) {
14493
12819
  this.tagStore = tagStoreArg;
14494
12820
  this.socket.emit("updateTagStore", this.tagStore);
14495
12821
  this.tagStoreObservable.next(this.tagStore);
@@ -14592,10 +12918,10 @@ var SocketServer = class {
14592
12918
  // ts/smartsocket.classes.smartsocket.ts
14593
12919
  var Smartsocket5 = class {
14594
12920
  constructor(optionsArg) {
14595
- this.smartenv = new dist_ts_exports13.Smartenv();
14596
- this.socketConnections = new dist_ts_exports12.ObjectMap();
14597
- this.socketFunctions = new dist_ts_exports12.ObjectMap();
14598
- this.socketRequests = new dist_ts_exports12.ObjectMap();
12921
+ this.smartenv = new dist_ts_exports8.Smartenv();
12922
+ this.socketConnections = new dist_ts_exports6.ObjectMap();
12923
+ this.socketFunctions = new dist_ts_exports6.ObjectMap();
12924
+ this.socketRequests = new dist_ts_exports6.ObjectMap();
14599
12925
  this.eventSubject = new dist_ts_exports5.rxjs.Subject();
14600
12926
  this.socketServer = new SocketServer(this);
14601
12927
  this.options = optionsArg;