@push.rocks/smartstate 2.0.8 → 2.0.9

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.
@@ -114,9 +114,9 @@ var require_dist_ts = __commonJS({
114
114
  }
115
115
  });
116
116
 
117
- // node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js
117
+ // node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js
118
118
  var require_dist_ts2 = __commonJS({
119
- "node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js"(exports) {
119
+ "node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js"(exports) {
120
120
  "use strict";
121
121
  Object.defineProperty(exports, "__esModule", { value: true });
122
122
  exports.uni = void 0;
@@ -4108,9 +4108,9 @@ var require_lib = __commonJS({
4108
4108
  }
4109
4109
  });
4110
4110
 
4111
- // node_modules/.pnpm/url@0.11.1/node_modules/url/url.js
4111
+ // node_modules/.pnpm/url@0.11.2/node_modules/url/url.js
4112
4112
  var require_url = __commonJS({
4113
- "node_modules/.pnpm/url@0.11.1/node_modules/url/url.js"(exports) {
4113
+ "node_modules/.pnpm/url@0.11.2/node_modules/url/url.js"(exports) {
4114
4114
  "use strict";
4115
4115
  var punycode = require_punycode();
4116
4116
  function Url() {
@@ -4392,7 +4392,11 @@ var require_url = __commonJS({
4392
4392
  }
4393
4393
  }
4394
4394
  if (this.query && typeof this.query === "object" && Object.keys(this.query).length) {
4395
- query = querystring.stringify(this.query);
4395
+ query = querystring.stringify(this.query, {
4396
+ arrayFormat: "repeat",
4397
+ encodeValuesOnly: true,
4398
+ addQueryPrefix: false
4399
+ });
4396
4400
  }
4397
4401
  var search = this.search || query && "?" + query || "";
4398
4402
  if (protocol && protocol.substr(-1) !== ":") {
@@ -5843,21 +5847,22 @@ var sha256FromString = async (stringArg) => {
5843
5847
  }
5844
5848
  };
5845
5849
 
5846
- // node_modules/.pnpm/@push.rocks+smartjson@5.0.6/node_modules/@push.rocks/smartjson/dist_ts/index.js
5847
- var dist_ts_exports4 = {};
5848
- __export(dist_ts_exports4, {
5850
+ // node_modules/.pnpm/@push.rocks+smartjson@5.0.10/node_modules/@push.rocks/smartjson/dist_ts/index.js
5851
+ var dist_ts_exports5 = {};
5852
+ __export(dist_ts_exports5, {
5849
5853
  Smartjson: () => Smartjson,
5850
5854
  deepEqualObjects: () => deepEqualObjects,
5851
5855
  foldDec: () => foldDec,
5852
5856
  parse: () => parse,
5853
5857
  parseBase64: () => parseBase64,
5854
5858
  stringify: () => stringify,
5855
- stringifyBase64: () => stringifyBase64
5859
+ stringifyBase64: () => stringifyBase64,
5860
+ stringifyPretty: () => stringifyPretty
5856
5861
  });
5857
5862
 
5858
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/index.js
5859
- var dist_ts_exports3 = {};
5860
- __export(dist_ts_exports3, {
5863
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/index.js
5864
+ var dist_ts_exports4 = {};
5865
+ __export(dist_ts_exports4, {
5861
5866
  Base64: () => Base64,
5862
5867
  Domain: () => Domain,
5863
5868
  GitRepo: () => GitRepo,
@@ -5869,14 +5874,137 @@ __export(dist_ts_exports3, {
5869
5874
  type: () => smartstring_type_exports
5870
5875
  });
5871
5876
 
5872
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.create.js
5877
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
5873
5878
  var smartstring_create_exports = {};
5874
5879
  __export(smartstring_create_exports, {
5875
5880
  createCryptoRandomString: () => createCryptoRandomString,
5876
5881
  createRandomString: () => createRandomString
5877
5882
  });
5878
5883
 
5879
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.plugins.js
5884
+ // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.plugins.js
5885
+ var smartpromise2 = __toESM(require_dist_ts(), 1);
5886
+
5887
+ // node_modules/.pnpm/@push.rocks+smartenv@5.0.5/node_modules/@push.rocks/smartenv/dist_ts/smartenv.classes.smartenv.js
5888
+ var Smartenv2 = class {
5889
+ constructor() {
5890
+ this.loadedScripts = [];
5891
+ }
5892
+ async getEnvAwareModule(optionsArg) {
5893
+ if (this.isNode) {
5894
+ const moduleResult = await this.getSafeNodeModule(optionsArg.nodeModuleName);
5895
+ return moduleResult;
5896
+ } else if (this.isBrowser) {
5897
+ const moduleResult = await this.getSafeWebModule(optionsArg.webUrlArg, optionsArg.getFunction);
5898
+ return moduleResult;
5899
+ } else {
5900
+ console.error("platform for loading not supported by smartenv");
5901
+ }
5902
+ }
5903
+ async getSafeNodeModule(moduleNameArg) {
5904
+ if (!this.isNode) {
5905
+ console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
5906
+ return;
5907
+ }
5908
+ return new Function(`return import('${moduleNameArg}')`)();
5909
+ }
5910
+ async getSafeWebModule(urlArg, getFunctionArg) {
5911
+ if (!this.isBrowser) {
5912
+ console.error("You tried to load a web module in a wrong context");
5913
+ return;
5914
+ }
5915
+ if (this.loadedScripts.includes(urlArg)) {
5916
+ return getFunctionArg();
5917
+ } else {
5918
+ this.loadedScripts.push(urlArg);
5919
+ }
5920
+ const done = smartpromise2.defer();
5921
+ if (globalThis.importScripts) {
5922
+ globalThis.importScripts(urlArg);
5923
+ done.resolve();
5924
+ } else {
5925
+ const script = document.createElement("script");
5926
+ script.onload = () => {
5927
+ done.resolve();
5928
+ };
5929
+ script.src = urlArg;
5930
+ document.head.appendChild(script);
5931
+ }
5932
+ await done.promise;
5933
+ return getFunctionArg();
5934
+ }
5935
+ get runtimeEnv() {
5936
+ if (typeof process !== "undefined") {
5937
+ return "node";
5938
+ } else {
5939
+ return "browser";
5940
+ }
5941
+ }
5942
+ get isBrowser() {
5943
+ return !this.isNode;
5944
+ }
5945
+ get userAgent() {
5946
+ if (this.isBrowser) {
5947
+ return navigator.userAgent;
5948
+ } else {
5949
+ return "undefined";
5950
+ }
5951
+ }
5952
+ get isNode() {
5953
+ return this.runtimeEnv === "node";
5954
+ }
5955
+ get nodeVersion() {
5956
+ return process.version;
5957
+ }
5958
+ get isCI() {
5959
+ if (this.isNode) {
5960
+ if (process.env.CI) {
5961
+ return true;
5962
+ } else {
5963
+ return false;
5964
+ }
5965
+ } else {
5966
+ return false;
5967
+ }
5968
+ }
5969
+ async isMacAsync() {
5970
+ if (this.isNode) {
5971
+ const os = await this.getSafeNodeModule("os");
5972
+ return os.platform() === "darwin";
5973
+ } else {
5974
+ return false;
5975
+ }
5976
+ }
5977
+ async isWindowsAsync() {
5978
+ if (this.isNode) {
5979
+ const os = await this.getSafeNodeModule("os");
5980
+ return os.platform() === "win32";
5981
+ } else {
5982
+ return false;
5983
+ }
5984
+ }
5985
+ async isLinuxAsync() {
5986
+ if (this.isNode) {
5987
+ const os = await this.getSafeNodeModule("os");
5988
+ return os.platform() === "linux";
5989
+ } else {
5990
+ return false;
5991
+ }
5992
+ }
5993
+ /**
5994
+ * prints the environment to console
5995
+ */
5996
+ async printEnv() {
5997
+ if (this.isNode) {
5998
+ console.log("running on NODE");
5999
+ console.log("node version is " + this.nodeVersion);
6000
+ } else {
6001
+ console.log("running on BROWSER");
6002
+ console.log("browser is " + this.userAgent);
6003
+ }
6004
+ }
6005
+ };
6006
+
6007
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
5880
6008
  var isounique = __toESM(require_dist_ts2(), 1);
5881
6009
  var import_buffer = __toESM(require_buffer(), 1);
5882
6010
  var url = __toESM(require_url(), 1);
@@ -6059,14 +6187,14 @@ function normalizeNewline(input) {
6059
6187
  return Buffer.isBuffer(input) ? (0, import_replace_buffer.default)(input, CRLF, "\n") : input.replace(new RegExp(CRLF, "g"), "\n");
6060
6188
  }
6061
6189
 
6062
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.plugins.js
6190
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
6063
6191
  var import_randomatic = __toESM(require_randomatic(), 1);
6064
- var smartenvInstance = new Smartenv();
6192
+ var smartenvInstance = new Smartenv2();
6065
6193
  if (smartenvInstance.isBrowser) {
6066
6194
  globalThis.Buffer = import_buffer.Buffer;
6067
6195
  }
6068
6196
 
6069
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.create.js
6197
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
6070
6198
  var createRandomString = (patternArg, lengthArg, optionsArg) => {
6071
6199
  return import_randomatic.default(patternArg, lengthArg, optionsArg);
6072
6200
  };
@@ -6074,7 +6202,7 @@ var createCryptoRandomString = () => {
6074
6202
  return isounique.uni();
6075
6203
  };
6076
6204
 
6077
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.docker.js
6205
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.docker.js
6078
6206
  var smartstring_docker_exports = {};
6079
6207
  __export(smartstring_docker_exports, {
6080
6208
  makeEnvObject: () => makeEnvObject
@@ -6091,7 +6219,7 @@ var makeEnvObject = function(envArrayArg) {
6091
6219
  return returnObject;
6092
6220
  };
6093
6221
 
6094
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.indent.js
6222
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.indent.js
6095
6223
  var smartstring_indent_exports = {};
6096
6224
  __export(smartstring_indent_exports, {
6097
6225
  indent: () => indent,
@@ -6157,7 +6285,7 @@ var normalize = (stringArg) => {
6157
6285
  return resultString;
6158
6286
  };
6159
6287
 
6160
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.normalize.js
6288
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.normalize.js
6161
6289
  var smartstring_normalize_exports = {};
6162
6290
  __export(smartstring_normalize_exports, {
6163
6291
  replaceAll: () => replaceAll,
@@ -6166,21 +6294,34 @@ __export(smartstring_normalize_exports, {
6166
6294
  var replaceAll = (stringArg, searchPattern, replacementString) => {
6167
6295
  return stringArg.replace(new RegExp(searchPattern, "g"), replacementString);
6168
6296
  };
6169
- var standard = (stringArg) => {
6170
- let fix1 = stripIndent(stringArg);
6171
- let fix2 = normalizeNewline(fix1);
6172
- let fix3 = replaceAll(fix2, " /", " ");
6173
- return fix3;
6297
+ var standard = (stringArg, options) => {
6298
+ let result = stringArg;
6299
+ if (!options || options.stripIndent) {
6300
+ result = stripIndent(result);
6301
+ }
6302
+ if (!options || options.normalizeNewline) {
6303
+ result = normalizeNewline(result);
6304
+ }
6305
+ if (!options || options.replaceTabs) {
6306
+ result = replaceAll(result, " /", " ");
6307
+ }
6308
+ if (!options || options.stripLeadingTrailingEmptyLines) {
6309
+ result = result.replace(/^\s*[\r\n]/gm, "").replace(/\s*[\r\n]$/gm, "");
6310
+ }
6311
+ if (!options || options.stripAllEmptyLines) {
6312
+ result = result.replace(/^\s*[\r\n]/gm, "");
6313
+ }
6314
+ return result;
6174
6315
  };
6175
6316
 
6176
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.type.js
6317
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
6177
6318
  var smartstring_type_exports = {};
6178
6319
  __export(smartstring_type_exports, {
6179
6320
  isBase64: () => isBase64,
6180
6321
  isUtf8: () => isUtf8
6181
6322
  });
6182
6323
 
6183
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.base64.js
6324
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.base64.js
6184
6325
  var Base64 = class {
6185
6326
  constructor(inputStringArg, typeArg) {
6186
6327
  switch (typeArg) {
@@ -6243,7 +6384,7 @@ var base64 = {
6243
6384
  }
6244
6385
  };
6245
6386
 
6246
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.type.js
6387
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
6247
6388
  var isUtf8 = (stringArg) => {
6248
6389
  const bytes = Buffer.from(stringArg);
6249
6390
  let i = 0;
@@ -6294,7 +6435,7 @@ var isBase64 = (stringArg) => {
6294
6435
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && stringArg[len - 1] === "=";
6295
6436
  };
6296
6437
 
6297
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.domain.js
6438
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.domain.js
6298
6439
  var Domain = class {
6299
6440
  constructor(domainStringArg) {
6300
6441
  this.protocol = this._protocolRegex(domainStringArg);
@@ -6355,7 +6496,7 @@ var Domain = class {
6355
6496
  }
6356
6497
  };
6357
6498
 
6358
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.git.js
6499
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.git.js
6359
6500
  var GitRepo = class {
6360
6501
  constructor(stringArg, tokenArg) {
6361
6502
  let regexMatches = gitRegex(stringArg);
@@ -6391,13 +6532,13 @@ var gitLink = function(hostArg, userArg, repoArg, tokenArg = "", linkTypeArg) {
6391
6532
  return returnString;
6392
6533
  };
6393
6534
 
6394
- // node_modules/.pnpm/@push.rocks+smartjson@5.0.6/node_modules/@push.rocks/smartjson/dist_ts/smartjson.plugins.js
6535
+ // node_modules/.pnpm/@push.rocks+smartjson@5.0.10/node_modules/@push.rocks/smartjson/dist_ts/smartjson.plugins.js
6395
6536
  var import_lodash = __toESM(require_lodash(), 1);
6396
6537
  var import_fast_json_stable_stringify = __toESM(require_fast_json_stable_stringify(), 1);
6397
6538
  var import_buffer_json = __toESM(require_buffer_json(), 1);
6398
6539
  var stableJson = import_fast_json_stable_stringify.default;
6399
6540
 
6400
- // node_modules/.pnpm/@push.rocks+smartjson@5.0.6/node_modules/@push.rocks/smartjson/dist_ts/index.js
6541
+ // node_modules/.pnpm/@push.rocks+smartjson@5.0.10/node_modules/@push.rocks/smartjson/dist_ts/index.js
6401
6542
  var parse = import_buffer_json.default.parse;
6402
6543
  var stringify = (objArg, simpleOrderArray, optionsArg = {}) => {
6403
6544
  const bufferedJson = import_buffer_json.default.stringify(objArg);
@@ -6405,15 +6546,20 @@ var stringify = (objArg, simpleOrderArray, optionsArg = {}) => {
6405
6546
  let returnJson = stableJson(objArg, optionsArg);
6406
6547
  return returnJson;
6407
6548
  };
6549
+ var stringifyPretty = (objectArg) => {
6550
+ const stringified = stringify(objectArg);
6551
+ const object = JSON.parse(stringified);
6552
+ return JSON.stringify(object, null, 2);
6553
+ };
6408
6554
  var stringifyBase64 = (...args) => {
6409
6555
  const stringifiedResult = stringify(...args);
6410
- return dist_ts_exports3.base64.encodeUri(stringifiedResult);
6556
+ return dist_ts_exports4.base64.encodeUri(stringifiedResult);
6411
6557
  };
6412
6558
  var parseBase64 = (base64JsonStringArg) => {
6413
- const simpleStringified = dist_ts_exports3.base64.decode(base64JsonStringArg);
6559
+ const simpleStringified = dist_ts_exports4.base64.decode(base64JsonStringArg);
6414
6560
  return parse(simpleStringified);
6415
6561
  };
6416
- var Smartjson = class {
6562
+ var Smartjson = class _Smartjson {
6417
6563
  /**
6418
6564
  * enfolds data from an object
6419
6565
  */
@@ -6441,7 +6587,7 @@ var Smartjson = class {
6441
6587
  const trackMap = [];
6442
6588
  for (const keyName of this.saveableProperties) {
6443
6589
  let value = this[keyName];
6444
- if (value instanceof Smartjson) {
6590
+ if (value instanceof _Smartjson) {
6445
6591
  if (trackMap.includes(value)) {
6446
6592
  throw new Error("cycle detected");
6447
6593
  }
@@ -6475,8 +6621,8 @@ var deepEqualObjects = (object1, object2) => {
6475
6621
  };
6476
6622
 
6477
6623
  // node_modules/.pnpm/@push.rocks+smartpromise@4.0.3/node_modules/@push.rocks/smartpromise/dist_ts/index.js
6478
- var dist_ts_exports5 = {};
6479
- __export(dist_ts_exports5, {
6624
+ var dist_ts_exports6 = {};
6625
+ __export(dist_ts_exports6, {
6480
6626
  CumulativeDeferred: () => CumulativeDeferred,
6481
6627
  Deferred: () => Deferred,
6482
6628
  cumulativeDefer: () => cumulativeDefer,
@@ -6599,8 +6745,8 @@ var getFirstTrueOrFalse = async (promisesArg) => {
6599
6745
  };
6600
6746
 
6601
6747
  // node_modules/.pnpm/@push.rocks+smartrx@3.0.6/node_modules/@push.rocks/smartrx/dist_ts/index.js
6602
- var dist_ts_exports6 = {};
6603
- __export(dist_ts_exports6, {
6748
+ var dist_ts_exports7 = {};
6749
+ __export(dist_ts_exports7, {
6604
6750
  ObservableIntake: () => ObservableIntake,
6605
6751
  Observablemap: () => Observablemap,
6606
6752
  rxjs: () => smartrx_plugins_rxjs_exports
@@ -8750,7 +8896,7 @@ var ObservableIntake = class {
8750
8896
  return observerArg.complete();
8751
8897
  };
8752
8898
  });
8753
- this.completedDeffered = dist_ts_exports5.defer();
8899
+ this.completedDeffered = dist_ts_exports6.defer();
8754
8900
  this.completed = this.completedDeffered.promise;
8755
8901
  }
8756
8902
  setObservable(observableFunc) {
@@ -8828,8 +8974,8 @@ var StateAction = class {
8828
8974
  // ts/smartstate.classes.statepart.ts
8829
8975
  var StatePart2 = class {
8830
8976
  constructor(nameArg) {
8831
- this.state = new dist_ts_exports6.rxjs.Subject();
8832
- this.cumulativeDeferred = dist_ts_exports5.cumulativeDefer();
8977
+ this.state = new dist_ts_exports7.rxjs.Subject();
8978
+ this.cumulativeDeferred = dist_ts_exports6.cumulativeDefer();
8833
8979
  this.name = nameArg;
8834
8980
  }
8835
8981
  /**
@@ -8851,7 +8997,7 @@ var StatePart2 = class {
8851
8997
  */
8852
8998
  notifyChange() {
8853
8999
  const createStateHash = (stateArg) => {
8854
- return dist_ts_exports2.sha256FromString(dist_ts_exports4.stringify(stateArg));
9000
+ return dist_ts_exports2.sha256FromString(dist_ts_exports5.stringify(stateArg));
8855
9001
  };
8856
9002
  if (this.stateStore && this.lastStateNotificationPayloadHash && createStateHash(this.stateStore) === this.lastStateNotificationPayloadHash) {
8857
9003
  return;
@@ -8874,8 +9020,8 @@ var StatePart2 = class {
8874
9020
  selectorFn = (state) => state;
8875
9021
  }
8876
9022
  const mapped = this.state.pipe(
8877
- dist_ts_exports6.rxjs.ops.startWith(this.getState()),
8878
- dist_ts_exports6.rxjs.ops.map((stateArg) => {
9023
+ dist_ts_exports7.rxjs.ops.startWith(this.getState()),
9024
+ dist_ts_exports7.rxjs.ops.map((stateArg) => {
8879
9025
  try {
8880
9026
  return selectorFn(stateArg);
8881
9027
  } catch (e) {
@@ -8903,7 +9049,7 @@ var StatePart2 = class {
8903
9049
  * @param selectorFn
8904
9050
  */
8905
9051
  async waitUntilPresent(selectorFn) {
8906
- const done = dist_ts_exports5.defer();
9052
+ const done = dist_ts_exports6.defer();
8907
9053
  const selectedObservable = this.select(selectorFn);
8908
9054
  const subscription = selectedObservable.subscribe(async (value) => {
8909
9055
  if (value) {