@design.estate/dees-domtools 2.0.56 → 2.0.57

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.
@@ -1185,92 +1185,6 @@ var require_SymbolTree = __commonJS({
1185
1185
  }
1186
1186
  });
1187
1187
 
1188
- // node_modules/.pnpm/@pushrocks+smartpromise@3.1.10/node_modules/@pushrocks/smartpromise/dist_ts/index.js
1189
- var require_dist_ts2 = __commonJS({
1190
- "node_modules/.pnpm/@pushrocks+smartpromise@3.1.10/node_modules/@pushrocks/smartpromise/dist_ts/index.js"(exports) {
1191
- "use strict";
1192
- Object.defineProperty(exports, "__esModule", { value: true });
1193
- exports.getFirstTrueOrFalse = exports.timeoutAndContinue = exports.timeoutWrap = exports.map = exports.rejectedPromise = exports.resolvedPromise = exports.defer = exports.Deferred = void 0;
1194
- var Deferred3 = class {
1195
- constructor() {
1196
- this.promise = new Promise((resolve, reject) => {
1197
- this.resolve = (valueArg) => {
1198
- this.status = "fulfilled";
1199
- this.stoppedAt = Date.now();
1200
- resolve(valueArg);
1201
- };
1202
- this.reject = (reason) => {
1203
- this.status = "rejected";
1204
- this.stoppedAt = Date.now();
1205
- reject(reason);
1206
- };
1207
- this.startedAt = Date.now();
1208
- this.status = "pending";
1209
- });
1210
- }
1211
- get duration() {
1212
- if (this.stoppedAt) {
1213
- return this.stoppedAt - this.startedAt;
1214
- } else {
1215
- return Date.now() - this.startedAt;
1216
- }
1217
- }
1218
- };
1219
- exports.Deferred = Deferred3;
1220
- exports.defer = () => {
1221
- return new Deferred3();
1222
- };
1223
- exports.resolvedPromise = (value2) => {
1224
- return Promise.resolve(value2);
1225
- };
1226
- exports.rejectedPromise = (err) => {
1227
- return Promise.reject(err);
1228
- };
1229
- exports.map = async (inputArg, functionArg) => {
1230
- const promiseArray = [];
1231
- const resultArray = [];
1232
- for (const item of inputArg) {
1233
- const promise = functionArg(item);
1234
- promiseArray.push(promise);
1235
- promise.then((x2) => {
1236
- resultArray.push(x2);
1237
- });
1238
- }
1239
- await Promise.all(promiseArray);
1240
- return resultArray;
1241
- };
1242
- exports.timeoutWrap = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
1243
- return new Promise((resolve, reject) => {
1244
- setTimeout(() => {
1245
- if (rejectArg) {
1246
- reject(new Error("timeout"));
1247
- } else {
1248
- resolve(null);
1249
- }
1250
- }, timeoutInMsArg);
1251
- promiseArg.then(resolve, reject);
1252
- });
1253
- };
1254
- exports.timeoutAndContinue = async (promiseArg, timeoutInMsArg = 6e4) => {
1255
- return exports.timeoutWrap(promiseArg, timeoutInMsArg, false);
1256
- };
1257
- exports.getFirstTrueOrFalse = async (promisesArg) => {
1258
- const done = exports.defer();
1259
- for (const promiseArg of promisesArg) {
1260
- promiseArg.then((resultArg) => {
1261
- if (resultArg === true) {
1262
- done.resolve(true);
1263
- }
1264
- });
1265
- }
1266
- Promise.all(promisesArg).then(() => {
1267
- done.resolve(false);
1268
- });
1269
- return done.promise;
1270
- };
1271
- }
1272
- });
1273
-
1274
1188
  // node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
1275
1189
  var require_base64_js = __commonJS({
1276
1190
  "node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports) {
@@ -5248,9 +5162,9 @@ var require_lib = __commonJS({
5248
5162
  }
5249
5163
  });
5250
5164
 
5251
- // node_modules/.pnpm/url@0.11.2/node_modules/url/url.js
5165
+ // node_modules/.pnpm/url@0.11.3/node_modules/url/url.js
5252
5166
  var require_url = __commonJS({
5253
- "node_modules/.pnpm/url@0.11.2/node_modules/url/url.js"(exports) {
5167
+ "node_modules/.pnpm/url@0.11.3/node_modules/url/url.js"(exports) {
5254
5168
  "use strict";
5255
5169
  var punycode = require_punycode();
5256
5170
  function Url() {
@@ -5534,7 +5448,6 @@ var require_url = __commonJS({
5534
5448
  if (this.query && typeof this.query === "object" && Object.keys(this.query).length) {
5535
5449
  query = querystring.stringify(this.query, {
5536
5450
  arrayFormat: "repeat",
5537
- encodeValuesOnly: true,
5538
5451
  addQueryPrefix: false
5539
5452
  });
5540
5453
  }
@@ -6825,6 +6738,92 @@ var require_buffer_json = __commonJS({
6825
6738
  }
6826
6739
  });
6827
6740
 
6741
+ // node_modules/.pnpm/@pushrocks+smartpromise@3.1.10/node_modules/@pushrocks/smartpromise/dist_ts/index.js
6742
+ var require_dist_ts2 = __commonJS({
6743
+ "node_modules/.pnpm/@pushrocks+smartpromise@3.1.10/node_modules/@pushrocks/smartpromise/dist_ts/index.js"(exports) {
6744
+ "use strict";
6745
+ Object.defineProperty(exports, "__esModule", { value: true });
6746
+ exports.getFirstTrueOrFalse = exports.timeoutAndContinue = exports.timeoutWrap = exports.map = exports.rejectedPromise = exports.resolvedPromise = exports.defer = exports.Deferred = void 0;
6747
+ var Deferred3 = class {
6748
+ constructor() {
6749
+ this.promise = new Promise((resolve, reject) => {
6750
+ this.resolve = (valueArg) => {
6751
+ this.status = "fulfilled";
6752
+ this.stoppedAt = Date.now();
6753
+ resolve(valueArg);
6754
+ };
6755
+ this.reject = (reason) => {
6756
+ this.status = "rejected";
6757
+ this.stoppedAt = Date.now();
6758
+ reject(reason);
6759
+ };
6760
+ this.startedAt = Date.now();
6761
+ this.status = "pending";
6762
+ });
6763
+ }
6764
+ get duration() {
6765
+ if (this.stoppedAt) {
6766
+ return this.stoppedAt - this.startedAt;
6767
+ } else {
6768
+ return Date.now() - this.startedAt;
6769
+ }
6770
+ }
6771
+ };
6772
+ exports.Deferred = Deferred3;
6773
+ exports.defer = () => {
6774
+ return new Deferred3();
6775
+ };
6776
+ exports.resolvedPromise = (value2) => {
6777
+ return Promise.resolve(value2);
6778
+ };
6779
+ exports.rejectedPromise = (err) => {
6780
+ return Promise.reject(err);
6781
+ };
6782
+ exports.map = async (inputArg, functionArg) => {
6783
+ const promiseArray = [];
6784
+ const resultArray = [];
6785
+ for (const item of inputArg) {
6786
+ const promise = functionArg(item);
6787
+ promiseArray.push(promise);
6788
+ promise.then((x2) => {
6789
+ resultArray.push(x2);
6790
+ });
6791
+ }
6792
+ await Promise.all(promiseArray);
6793
+ return resultArray;
6794
+ };
6795
+ exports.timeoutWrap = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
6796
+ return new Promise((resolve, reject) => {
6797
+ setTimeout(() => {
6798
+ if (rejectArg) {
6799
+ reject(new Error("timeout"));
6800
+ } else {
6801
+ resolve(null);
6802
+ }
6803
+ }, timeoutInMsArg);
6804
+ promiseArg.then(resolve, reject);
6805
+ });
6806
+ };
6807
+ exports.timeoutAndContinue = async (promiseArg, timeoutInMsArg = 6e4) => {
6808
+ return exports.timeoutWrap(promiseArg, timeoutInMsArg, false);
6809
+ };
6810
+ exports.getFirstTrueOrFalse = async (promisesArg) => {
6811
+ const done = exports.defer();
6812
+ for (const promiseArg of promisesArg) {
6813
+ promiseArg.then((resultArg) => {
6814
+ if (resultArg === true) {
6815
+ done.resolve(true);
6816
+ }
6817
+ });
6818
+ }
6819
+ Promise.all(promisesArg).then(() => {
6820
+ done.resolve(false);
6821
+ });
6822
+ return done.promise;
6823
+ };
6824
+ }
6825
+ });
6826
+
6828
6827
  // (disabled):node_modules/.pnpm/broadcast-channel@3.7.0/node_modules/broadcast-channel/src/methods/node.js
6829
6828
  var require_node = __commonJS({
6830
6829
  "(disabled):node_modules/.pnpm/broadcast-channel@3.7.0/node_modules/broadcast-channel/src/methods/node.js"() {
@@ -10605,8 +10604,8 @@ __export(domtools_elementbasic_exports, {
10605
10604
  });
10606
10605
 
10607
10606
  // node_modules/.pnpm/@design.estate+dees-comms@1.0.24/node_modules/@design.estate/dees-comms/dist_ts/index.js
10608
- var dist_ts_exports16 = {};
10609
- __export(dist_ts_exports16, {
10607
+ var dist_ts_exports17 = {};
10608
+ __export(dist_ts_exports17, {
10610
10609
  DeesComms: () => DeesComms
10611
10610
  });
10612
10611
 
@@ -10788,8 +10787,8 @@ var Timeout = class {
10788
10787
  };
10789
10788
 
10790
10789
  // node_modules/.pnpm/@api.global+typedrequest@3.0.4/node_modules/@api.global/typedrequest/dist_ts/index.js
10791
- var dist_ts_exports15 = {};
10792
- __export(dist_ts_exports15, {
10790
+ var dist_ts_exports16 = {};
10791
+ __export(dist_ts_exports16, {
10793
10792
  TypedHandler: () => TypedHandler,
10794
10793
  TypedRequest: () => TypedRequest,
10795
10794
  TypedResponseError: () => TypedResponseError,
@@ -15328,8 +15327,8 @@ var Tree = class {
15328
15327
  };
15329
15328
 
15330
15329
  // node_modules/.pnpm/@push.rocks+webrequest@3.0.34/node_modules/@push.rocks/webrequest/dist_ts/index.js
15331
- var dist_ts_exports13 = {};
15332
- __export(dist_ts_exports13, {
15330
+ var dist_ts_exports14 = {};
15331
+ __export(dist_ts_exports14, {
15333
15332
  WebRequest: () => WebRequest
15334
15333
  });
15335
15334
 
@@ -15346,7 +15345,7 @@ __export(dist_ts_exports9, {
15346
15345
  stringifyPretty: () => stringifyPretty
15347
15346
  });
15348
15347
 
15349
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/index.js
15348
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/index.js
15350
15349
  var dist_ts_exports8 = {};
15351
15350
  __export(dist_ts_exports8, {
15352
15351
  Base64: () => Base64,
@@ -15360,23 +15359,14 @@ __export(dist_ts_exports8, {
15360
15359
  type: () => smartstring_type_exports
15361
15360
  });
15362
15361
 
15363
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
15362
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
15364
15363
  var smartstring_create_exports = {};
15365
15364
  __export(smartstring_create_exports, {
15366
15365
  createCryptoRandomString: () => createCryptoRandomString,
15367
15366
  createRandomString: () => createRandomString
15368
15367
  });
15369
15368
 
15370
- // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/index.js
15371
- var dist_ts_exports7 = {};
15372
- __export(dist_ts_exports7, {
15373
- Smartenv: () => Smartenv
15374
- });
15375
-
15376
- // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.plugins.js
15377
- var smartpromise = __toESM(require_dist_ts2(), 1);
15378
-
15379
- // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
15369
+ // node_modules/.pnpm/@push.rocks+smartenv@5.0.12/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
15380
15370
  var Smartenv = class {
15381
15371
  constructor() {
15382
15372
  this.loadedScripts = [];
@@ -15392,12 +15382,16 @@ var Smartenv = class {
15392
15382
  console.error("platform for loading not supported by smartenv");
15393
15383
  }
15394
15384
  }
15395
- async getSafeNodeModule(moduleNameArg) {
15385
+ async getSafeNodeModule(moduleNameArg, runAfterFunc) {
15396
15386
  if (!this.isNode) {
15397
15387
  console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
15398
15388
  return;
15399
15389
  }
15400
- return new Function(`return import('${moduleNameArg}')`)();
15390
+ const returnValue = await new Function(`return import('${moduleNameArg}')`)();
15391
+ if (runAfterFunc) {
15392
+ await runAfterFunc(returnValue);
15393
+ }
15394
+ return returnValue;
15401
15395
  }
15402
15396
  async getSafeWebModule(urlArg, getFunctionArg) {
15403
15397
  if (!this.isBrowser) {
@@ -15409,7 +15403,7 @@ var Smartenv = class {
15409
15403
  } else {
15410
15404
  this.loadedScripts.push(urlArg);
15411
15405
  }
15412
- const done = smartpromise.defer();
15406
+ const done = dist_ts_exports.defer();
15413
15407
  if (globalThis.importScripts) {
15414
15408
  globalThis.importScripts(urlArg);
15415
15409
  done.resolve();
@@ -15496,7 +15490,7 @@ var Smartenv = class {
15496
15490
  }
15497
15491
  };
15498
15492
 
15499
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
15493
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
15500
15494
  var isounique = __toESM(require_dist_ts(), 1);
15501
15495
  var import_buffer = __toESM(require_buffer(), 1);
15502
15496
  var url = __toESM(require_url(), 1);
@@ -15679,14 +15673,14 @@ function normalizeNewline(input) {
15679
15673
  return Buffer.isBuffer(input) ? (0, import_replace_buffer.default)(input, CRLF, "\n") : input.replace(new RegExp(CRLF, "g"), "\n");
15680
15674
  }
15681
15675
 
15682
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
15676
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
15683
15677
  var import_randomatic = __toESM(require_randomatic(), 1);
15684
15678
  var smartenvInstance = new Smartenv();
15685
15679
  if (smartenvInstance.isBrowser) {
15686
15680
  globalThis.Buffer = import_buffer.Buffer;
15687
15681
  }
15688
15682
 
15689
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
15683
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
15690
15684
  var createRandomString = (patternArg, lengthArg, optionsArg) => {
15691
15685
  return import_randomatic.default(patternArg, lengthArg, optionsArg);
15692
15686
  };
@@ -15694,7 +15688,7 @@ var createCryptoRandomString = () => {
15694
15688
  return isounique.uni();
15695
15689
  };
15696
15690
 
15697
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.docker.js
15691
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.docker.js
15698
15692
  var smartstring_docker_exports = {};
15699
15693
  __export(smartstring_docker_exports, {
15700
15694
  makeEnvObject: () => makeEnvObject
@@ -15711,7 +15705,7 @@ var makeEnvObject = function(envArrayArg) {
15711
15705
  return returnObject;
15712
15706
  };
15713
15707
 
15714
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.indent.js
15708
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.indent.js
15715
15709
  var smartstring_indent_exports = {};
15716
15710
  __export(smartstring_indent_exports, {
15717
15711
  indent: () => indent,
@@ -15777,7 +15771,7 @@ var normalize = (stringArg) => {
15777
15771
  return resultString;
15778
15772
  };
15779
15773
 
15780
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.normalize.js
15774
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.normalize.js
15781
15775
  var smartstring_normalize_exports = {};
15782
15776
  __export(smartstring_normalize_exports, {
15783
15777
  replaceAll: () => replaceAll,
@@ -15806,14 +15800,14 @@ var standard = (stringArg, options) => {
15806
15800
  return result;
15807
15801
  };
15808
15802
 
15809
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
15803
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
15810
15804
  var smartstring_type_exports = {};
15811
15805
  __export(smartstring_type_exports, {
15812
15806
  isBase64: () => isBase64,
15813
15807
  isUtf8: () => isUtf8
15814
15808
  });
15815
15809
 
15816
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.base64.js
15810
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.base64.js
15817
15811
  var Base64 = class {
15818
15812
  constructor(inputStringArg, typeArg) {
15819
15813
  switch (typeArg) {
@@ -15876,7 +15870,7 @@ var base64 = {
15876
15870
  }
15877
15871
  };
15878
15872
 
15879
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
15873
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
15880
15874
  var isUtf8 = (stringArg) => {
15881
15875
  const bytes = Buffer.from(stringArg);
15882
15876
  let i4 = 0;
@@ -15927,7 +15921,7 @@ var isBase64 = (stringArg) => {
15927
15921
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && stringArg[len - 1] === "=";
15928
15922
  };
15929
15923
 
15930
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.domain.js
15924
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.domain.js
15931
15925
  var Domain = class {
15932
15926
  constructor(domainStringArg) {
15933
15927
  this.protocol = this._protocolRegex(domainStringArg);
@@ -15988,7 +15982,7 @@ var Domain = class {
15988
15982
  }
15989
15983
  };
15990
15984
 
15991
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.git.js
15985
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.13/node_modules/@push.rocks/smartstring/dist_ts/smartstring.git.js
15992
15986
  var GitRepo = class {
15993
15987
  constructor(stringArg, tokenArg) {
15994
15988
  let regexMatches = gitRegex(stringArg);
@@ -16113,12 +16107,141 @@ var deepEqualObjects = (object1, object2) => {
16113
16107
  };
16114
16108
 
16115
16109
  // node_modules/.pnpm/@push.rocks+webstore@2.0.13/node_modules/@push.rocks/webstore/dist_ts/index.js
16116
- var dist_ts_exports11 = {};
16117
- __export(dist_ts_exports11, {
16110
+ var dist_ts_exports12 = {};
16111
+ __export(dist_ts_exports12, {
16118
16112
  TypedrequestCache: () => TypedrequestCache,
16119
16113
  WebStore: () => WebStore
16120
16114
  });
16121
16115
 
16116
+ // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/index.js
16117
+ var dist_ts_exports10 = {};
16118
+ __export(dist_ts_exports10, {
16119
+ Smartenv: () => Smartenv2
16120
+ });
16121
+
16122
+ // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.plugins.js
16123
+ var smartpromise = __toESM(require_dist_ts2(), 1);
16124
+
16125
+ // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
16126
+ var Smartenv2 = class {
16127
+ constructor() {
16128
+ this.loadedScripts = [];
16129
+ }
16130
+ async getEnvAwareModule(optionsArg) {
16131
+ if (this.isNode) {
16132
+ const moduleResult = await this.getSafeNodeModule(optionsArg.nodeModuleName);
16133
+ return moduleResult;
16134
+ } else if (this.isBrowser) {
16135
+ const moduleResult = await this.getSafeWebModule(optionsArg.webUrlArg, optionsArg.getFunction);
16136
+ return moduleResult;
16137
+ } else {
16138
+ console.error("platform for loading not supported by smartenv");
16139
+ }
16140
+ }
16141
+ async getSafeNodeModule(moduleNameArg) {
16142
+ if (!this.isNode) {
16143
+ console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
16144
+ return;
16145
+ }
16146
+ return new Function(`return import('${moduleNameArg}')`)();
16147
+ }
16148
+ async getSafeWebModule(urlArg, getFunctionArg) {
16149
+ if (!this.isBrowser) {
16150
+ console.error("You tried to load a web module in a wrong context");
16151
+ return;
16152
+ }
16153
+ if (this.loadedScripts.includes(urlArg)) {
16154
+ return getFunctionArg();
16155
+ } else {
16156
+ this.loadedScripts.push(urlArg);
16157
+ }
16158
+ const done = smartpromise.defer();
16159
+ if (globalThis.importScripts) {
16160
+ globalThis.importScripts(urlArg);
16161
+ done.resolve();
16162
+ } else {
16163
+ const script = document.createElement("script");
16164
+ script.onload = () => {
16165
+ done.resolve();
16166
+ };
16167
+ script.src = urlArg;
16168
+ document.head.appendChild(script);
16169
+ }
16170
+ await done.promise;
16171
+ return getFunctionArg();
16172
+ }
16173
+ get runtimeEnv() {
16174
+ if (typeof process !== "undefined") {
16175
+ return "node";
16176
+ } else {
16177
+ return "browser";
16178
+ }
16179
+ }
16180
+ get isBrowser() {
16181
+ return !this.isNode;
16182
+ }
16183
+ get userAgent() {
16184
+ if (this.isBrowser) {
16185
+ return navigator.userAgent;
16186
+ } else {
16187
+ return "undefined";
16188
+ }
16189
+ }
16190
+ get isNode() {
16191
+ return this.runtimeEnv === "node";
16192
+ }
16193
+ get nodeVersion() {
16194
+ return process.version;
16195
+ }
16196
+ get isCI() {
16197
+ if (this.isNode) {
16198
+ if (process.env.CI) {
16199
+ return true;
16200
+ } else {
16201
+ return false;
16202
+ }
16203
+ } else {
16204
+ return false;
16205
+ }
16206
+ }
16207
+ async isMacAsync() {
16208
+ if (this.isNode) {
16209
+ const os = await this.getSafeNodeModule("os");
16210
+ return os.platform() === "darwin";
16211
+ } else {
16212
+ return false;
16213
+ }
16214
+ }
16215
+ async isWindowsAsync() {
16216
+ if (this.isNode) {
16217
+ const os = await this.getSafeNodeModule("os");
16218
+ return os.platform() === "win32";
16219
+ } else {
16220
+ return false;
16221
+ }
16222
+ }
16223
+ async isLinuxAsync() {
16224
+ if (this.isNode) {
16225
+ const os = await this.getSafeNodeModule("os");
16226
+ return os.platform() === "linux";
16227
+ } else {
16228
+ return false;
16229
+ }
16230
+ }
16231
+ /**
16232
+ * prints the environment to console
16233
+ */
16234
+ async printEnv() {
16235
+ if (this.isNode) {
16236
+ console.log("running on NODE");
16237
+ console.log("node version is " + this.nodeVersion);
16238
+ } else {
16239
+ console.log("running on BROWSER");
16240
+ console.log("browser is " + this.userAgent);
16241
+ }
16242
+ }
16243
+ };
16244
+
16122
16245
  // node_modules/.pnpm/idb@7.1.1/node_modules/idb/build/index.js
16123
16246
  var build_exports = {};
16124
16247
  __export(build_exports, {
@@ -16359,7 +16482,7 @@ var WebStore = class {
16359
16482
  return;
16360
16483
  }
16361
16484
  this.initCalled = true;
16362
- const smartenv = new dist_ts_exports7.Smartenv();
16485
+ const smartenv = new dist_ts_exports10.Smartenv();
16363
16486
  if (!smartenv.isBrowser && !globalThis.indexedDB) {
16364
16487
  console.log("hey");
16365
16488
  console.log(globalThis.indexedDB);
@@ -16442,7 +16565,7 @@ var TypedrequestCache = class {
16442
16565
  var WebRequest = class {
16443
16566
  constructor(optionsArg = {}) {
16444
16567
  this.optionsArg = optionsArg;
16445
- this.cacheStore = new dist_ts_exports11.WebStore({
16568
+ this.cacheStore = new dist_ts_exports12.WebStore({
16446
16569
  dbName: "webrequest",
16447
16570
  storeName: "webrequest"
16448
16571
  });
@@ -16763,7 +16886,7 @@ var TypedTarget = class {
16763
16886
  };
16764
16887
 
16765
16888
  // node_modules/.pnpm/@api.global+typedrequest@3.0.4/node_modules/@api.global/typedrequest/dist_ts/typedrequest.classes.typedrequest.js
16766
- var webrequestInstance = new dist_ts_exports13.WebRequest();
16889
+ var webrequestInstance = new dist_ts_exports14.WebRequest();
16767
16890
  var TypedRequest = class {
16768
16891
  /**
16769
16892
  * note the overloading is thought to deal with promises
@@ -17606,8 +17729,8 @@ var DeesComms = class {
17606
17729
  // receiving messages
17607
17730
  constructor() {
17608
17731
  this.broadcastChannel = new BroadcastChannel4("dees-comms");
17609
- this.typedrouter = new dist_ts_exports15.TypedRouter();
17610
- this.typedtarget = new dist_ts_exports15.TypedTarget({
17732
+ this.typedrouter = new dist_ts_exports16.TypedRouter();
17733
+ this.typedtarget = new dist_ts_exports16.TypedTarget({
17611
17734
  postMethodWithTypedRouter: async (messageArg) => {
17612
17735
  this.postMessage(messageArg);
17613
17736
  },
@@ -17627,7 +17750,7 @@ var DeesComms = class {
17627
17750
  * creates a typedrequest with this classes postMessage as postMethod
17628
17751
  */
17629
17752
  createTypedRequest(methodName) {
17630
- const typedrequest = new dist_ts_exports15.TypedRequest(this.typedtarget, methodName);
17753
+ const typedrequest = new dist_ts_exports16.TypedRequest(this.typedtarget, methodName);
17631
17754
  return typedrequest;
17632
17755
  }
17633
17756
  /**
@@ -17640,13 +17763,13 @@ var DeesComms = class {
17640
17763
  * subscribe to messages
17641
17764
  */
17642
17765
  async createTypedHandler(methodArg, handlerFunction) {
17643
- this.typedrouter.addTypedHandler(new dist_ts_exports15.TypedHandler(methodArg, handlerFunction));
17766
+ this.typedrouter.addTypedHandler(new dist_ts_exports16.TypedHandler(methodArg, handlerFunction));
17644
17767
  }
17645
17768
  };
17646
17769
 
17647
17770
  // node_modules/.pnpm/@push.rocks+smartmarkdown@3.0.3/node_modules/@push.rocks/smartmarkdown/dist_ts/index.js
17648
- var dist_ts_exports17 = {};
17649
- __export(dist_ts_exports17, {
17771
+ var dist_ts_exports18 = {};
17772
+ __export(dist_ts_exports18, {
17650
17773
  SmartMarkdown: () => SmartMarkdown
17651
17774
  });
17652
17775
 
@@ -32824,8 +32947,8 @@ var SmartMarkdown = class _SmartMarkdown {
32824
32947
  };
32825
32948
 
32826
32949
  // node_modules/.pnpm/@push.rocks+smartrouter@1.0.16/node_modules/@push.rocks/smartrouter/dist_ts/index.js
32827
- var dist_ts_exports18 = {};
32828
- __export(dist_ts_exports18, {
32950
+ var dist_ts_exports19 = {};
32951
+ __export(dist_ts_exports19, {
32829
32952
  SmartRouter: () => SmartRouter
32830
32953
  });
32831
32954
 
@@ -33285,30 +33408,30 @@ var SmartRouter = class {
33285
33408
  };
33286
33409
 
33287
33410
  // node_modules/.pnpm/@push.rocks+smartstate@2.0.17/node_modules/@push.rocks/smartstate/dist_ts/index.js
33288
- var dist_ts_exports21 = {};
33289
- __export(dist_ts_exports21, {
33411
+ var dist_ts_exports22 = {};
33412
+ __export(dist_ts_exports22, {
33290
33413
  Smartstate: () => Smartstate,
33291
33414
  StateAction: () => StateAction,
33292
33415
  StatePart: () => StatePart
33293
33416
  });
33294
33417
 
33295
33418
  // node_modules/.pnpm/@push.rocks+isohash@2.0.1/node_modules/@push.rocks/isohash/dist_ts/index.js
33296
- var dist_ts_exports20 = {};
33297
- __export(dist_ts_exports20, {
33419
+ var dist_ts_exports21 = {};
33420
+ __export(dist_ts_exports21, {
33298
33421
  sha256FromString: () => sha256FromString
33299
33422
  });
33300
33423
 
33301
33424
  // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/index.js
33302
- var dist_ts_exports19 = {};
33303
- __export(dist_ts_exports19, {
33304
- Smartenv: () => Smartenv2
33425
+ var dist_ts_exports20 = {};
33426
+ __export(dist_ts_exports20, {
33427
+ Smartenv: () => Smartenv3
33305
33428
  });
33306
33429
 
33307
33430
  // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.plugins.js
33308
33431
  var smartpromise2 = __toESM(require_dist_ts2(), 1);
33309
33432
 
33310
33433
  // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.classes.smartenv.js
33311
- var Smartenv2 = class {
33434
+ var Smartenv3 = class {
33312
33435
  constructor() {
33313
33436
  this.loadedScripts = [];
33314
33437
  }
@@ -33441,7 +33564,7 @@ var hex = (buffer) => {
33441
33564
  return hexCodes.join("");
33442
33565
  };
33443
33566
  var sha256FromString = async (stringArg) => {
33444
- const smartenv = new dist_ts_exports19.Smartenv();
33567
+ const smartenv = new dist_ts_exports20.Smartenv();
33445
33568
  if (smartenv.isBrowser) {
33446
33569
  const buffer = new TextEncoder().encode(stringArg);
33447
33570
  const hash = await crypto.subtle.digest("SHA-256", buffer);
@@ -33481,7 +33604,7 @@ var StatePart = class {
33481
33604
  */
33482
33605
  async init() {
33483
33606
  if (this.webStoreOptions) {
33484
- this.webStore = new dist_ts_exports11.WebStore(this.webStoreOptions);
33607
+ this.webStore = new dist_ts_exports12.WebStore(this.webStoreOptions);
33485
33608
  await this.webStore.init();
33486
33609
  const storedState = await this.webStore.get(String(this.name));
33487
33610
  if (storedState) {
@@ -33513,7 +33636,7 @@ var StatePart = class {
33513
33636
  */
33514
33637
  notifyChange() {
33515
33638
  const createStateHash = (stateArg) => {
33516
- return dist_ts_exports20.sha256FromString(dist_ts_exports9.stringify(stateArg));
33639
+ return dist_ts_exports21.sha256FromString(dist_ts_exports9.stringify(stateArg));
33517
33640
  };
33518
33641
  if (this.stateStore && this.lastStateNotificationPayloadHash && createStateHash(this.stateStore) === this.lastStateNotificationPayloadHash) {
33519
33642
  return;
@@ -33633,8 +33756,8 @@ var Smartstate = class {
33633
33756
  };
33634
33757
 
33635
33758
  // node_modules/.pnpm/@push.rocks+smarturl@3.0.7/node_modules/@push.rocks/smarturl/dist_ts/index.js
33636
- var dist_ts_exports22 = {};
33637
- __export(dist_ts_exports22, {
33759
+ var dist_ts_exports23 = {};
33760
+ __export(dist_ts_exports23, {
33638
33761
  Smarturl: () => Smarturl
33639
33762
  });
33640
33763
 
@@ -33720,8 +33843,8 @@ var Smarturl = class _Smarturl {
33720
33843
  };
33721
33844
 
33722
33845
  // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
33723
- var dist_ts_exports23 = {};
33724
- __export(dist_ts_exports23, {
33846
+ var dist_ts_exports24 = {};
33847
+ __export(dist_ts_exports24, {
33725
33848
  CumulativeDeferred: () => CumulativeDeferred2,
33726
33849
  Deferred: () => Deferred2,
33727
33850
  cumulativeDefer: () => cumulativeDefer2,
@@ -34114,8 +34237,8 @@ var TagManager = class {
34114
34237
  var WebSetup = class {
34115
34238
  constructor(optionsArg) {
34116
34239
  this.tagManager = new TagManager();
34117
- this.readyDeferred = dist_ts_exports23.defer();
34118
- this.readyForSmartssrDeferred = dist_ts_exports23.defer();
34240
+ this.readyDeferred = dist_ts_exports24.defer();
34241
+ this.readyForSmartssrDeferred = dist_ts_exports24.defer();
34119
34242
  this.readyPromise = this.readyDeferred.promise;
34120
34243
  this.readyForSmartssrPromise = this.readyForSmartssrDeferred.promise;
34121
34244
  this.options = optionsArg;
@@ -34419,21 +34542,21 @@ var DomTools2 = class _DomTools {
34419
34542
  title: "loading..."
34420
34543
  }
34421
34544
  });
34422
- this.smartstate = new dist_ts_exports21.Smartstate();
34545
+ this.smartstate = new dist_ts_exports22.Smartstate();
34423
34546
  this.domToolsStatePart = this.smartstate.getStatePart("domtools", {
34424
34547
  virtualViewport: "native",
34425
34548
  jwt: null
34426
34549
  });
34427
- this.router = new dist_ts_exports18.SmartRouter({
34550
+ this.router = new dist_ts_exports19.SmartRouter({
34428
34551
  debug: false
34429
34552
  });
34430
34553
  this.convenience = {
34431
- typedrequest: dist_ts_exports15,
34554
+ typedrequest: dist_ts_exports16,
34432
34555
  smartdelay: dist_ts_exports2,
34433
34556
  smartjson: dist_ts_exports9,
34434
- smarturl: dist_ts_exports22
34557
+ smarturl: dist_ts_exports23
34435
34558
  };
34436
- this.deesComms = new dist_ts_exports16.DeesComms();
34559
+ this.deesComms = new dist_ts_exports17.DeesComms();
34437
34560
  this.scroller = new import_sweet_scroll.default({
34438
34561
  /* some options */
34439
34562
  });
@@ -35293,13 +35416,14 @@ var cssGridColumns = (amountOfColumnsArg, gapSizeArg) => {
35293
35416
  // ts/index.ts
35294
35417
  var plugins3 = {
35295
35418
  smartdelay: dist_ts_exports2,
35296
- smartmarkdown: dist_ts_exports17,
35419
+ smartmarkdown: dist_ts_exports18,
35297
35420
  smartpromise: dist_ts_exports,
35298
35421
  SweetScroll: import_sweet_scroll.default,
35299
- smartstate: dist_ts_exports21,
35422
+ smartstate: dist_ts_exports22,
35300
35423
  smartrx: dist_ts_exports4,
35301
- smarturl: dist_ts_exports22,
35302
- typedrequest: dist_ts_exports15
35424
+ smartstring: dist_ts_exports8,
35425
+ smarturl: dist_ts_exports23,
35426
+ typedrequest: dist_ts_exports16
35303
35427
  };
35304
35428
  export {
35305
35429
  DomTools2 as DomTools,