@depict-ai/utilishared 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ES10/index.js CHANGED
@@ -15,7 +15,7 @@ function $parcel$export(e, n, v, s) {
15
15
  function $parcel$interopDefault(a) {
16
16
  return a && a.__esModule ? a.default : a;
17
17
  }
18
- const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "1.0.35";
18
+ const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "1.0.37";
19
19
  const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
20
20
  const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
21
21
  let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
@@ -45,7 +45,7 @@ function $241f2f02cc612a49$export$997143d41f6a0c9b() {
45
45
  }
46
46
  const $ea5707b8e7b350cf$export$60d1d0e3cfc8b9ed = {};
47
47
  function $ea5707b8e7b350cf$export$2cefb7e61fcbae00(package_name, version) {
48
- (0, $241f2f02cc612a49$export$de56f1198d121036)("@depict-ai/" + package_name + " version", version);
48
+ $241f2f02cc612a49$export$de56f1198d121036("@depict-ai/" + package_name + " version", version);
49
49
  $ea5707b8e7b350cf$export$60d1d0e3cfc8b9ed[package_name] = version;
50
50
  }
51
51
  function $ea5707b8e7b350cf$export$fe609f0216e4ebef(url) {
@@ -71,15 +71,15 @@ function $5c580d87c093cc47$export$a7e53ec3b3fdd030(str) {
71
71
  }
72
72
  class $449d6683cecfa078$export$e2c811ae0eb35313 {
73
73
  constructor() {
74
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "subscribers_", []);
75
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "waiting_for_update_", 0);
76
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "queue_", []);
77
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "has_had_value_", false);
78
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "push_value_", value => {
74
+ $76EG6$babelruntimehelpersdefineProperty(this, "subscribers_", []);
75
+ $76EG6$babelruntimehelpersdefineProperty(this, "waiting_for_update_", 0);
76
+ $76EG6$babelruntimehelpersdefineProperty(this, "queue_", []);
77
+ $76EG6$babelruntimehelpersdefineProperty(this, "has_had_value_", false);
78
+ $76EG6$babelruntimehelpersdefineProperty(this, "push_value_", value => {
79
79
  this.queue_.push(value);
80
80
  this.call_subscribers_();
81
81
  });
82
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "call_subscribers_", () => {
82
+ $76EG6$babelruntimehelpersdefineProperty(this, "call_subscribers_", () => {
83
83
  // intentionally arrow fn so it doesn't matter what .this is when being called
84
84
  if (this.waiting_for_update_ <= 0 && this.queue_.length) {
85
85
  // shift value
@@ -92,7 +92,7 @@ class $449d6683cecfa078$export$e2c811ae0eb35313 {
92
92
  }
93
93
  }
94
94
  });
95
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "subscriber_done_", () => {
95
+ $76EG6$babelruntimehelpersdefineProperty(this, "subscriber_done_", () => {
96
96
  this.waiting_for_update_--;
97
97
  this.call_subscribers_();
98
98
  });
@@ -200,8 +200,8 @@ function $7ca6fdc721083788$export$e806c6c1615a59ae() {
200
200
  let state_obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new (0, $449d6683cecfa078$export$e2c811ae0eb35313)();
201
201
  // @ts-ignore
202
202
  $7ca6fdc721083788$var$on_async_iterator_next_called({}); // work around https://github.com/swc-project/swc/issues/5530
203
- const ai = (0, $449d6683cecfa078$export$3e42f5078e3abfc0)(state_obj);
204
- const [exit, exitable] = (0, $fee212025270d5b9$export$927664b47117acb0)({
203
+ const ai = $449d6683cecfa078$export$3e42f5078e3abfc0(state_obj);
204
+ const [exit, exitable] = $fee212025270d5b9$export$927664b47117acb0({
205
205
  ...ai
206
206
  });
207
207
  const obj = Object.assign(exitable, {
@@ -238,7 +238,7 @@ function $7ca6fdc721083788$export$e806c6c1615a59ae() {
238
238
  yield* $7ca6fdc721083788$var$on_async_iterator_next_called(exitable_for_async_generator, unblock_state_obj, fn => stock_return_function = fn);
239
239
  };
240
240
  const iterator = async_generator();
241
- const [exit_async_generator, exitable_for_async_generator] = (0, $fee212025270d5b9$export$927664b47117acb0)(orig_iterator);
241
+ const [exit_async_generator, exitable_for_async_generator] = $fee212025270d5b9$export$927664b47117acb0(orig_iterator);
242
242
  // we can't use a normal async generator since it can't be "quit" from the outside (by calling .return on the AsyncIterator) while being awaited apparently
243
243
  // therefore we make the async iterable that it's (soon) passing control onto exitable by calling .return() (even if a .next() promise is being currently awaited)
244
244
  iterator.return = () => {
@@ -256,11 +256,11 @@ function $7ca6fdc721083788$export$e806c6c1615a59ae() {
256
256
  };
257
257
  }
258
258
  const callable_obj_with_everything = Object.assign(ai, obj);
259
- (0, $56f6527795ab68e8$export$8df876135bad6d96)(callable_obj_with_everything, "state", {
259
+ $56f6527795ab68e8$export$8df876135bad6d96(callable_obj_with_everything, "state", {
260
260
  get: () => state_obj.last_processed_value_,
261
261
  enumerable: true
262
262
  });
263
- (0, $56f6527795ab68e8$export$8df876135bad6d96)(callable_obj_with_everything, "latest_call_value", {
263
+ $56f6527795ab68e8$export$8df876135bad6d96(callable_obj_with_everything, "latest_call_value", {
264
264
  get: () => {
265
265
  var _state_obj$queue_;
266
266
  return (_state_obj$queue_ = state_obj.queue_[state_obj.queue_.length - 1]) !== null && _state_obj$queue_ !== void 0 ? _state_obj$queue_ : callable_obj_with_everything.state;
@@ -311,7 +311,7 @@ function $7ca6fdc721083788$export$10c3e52ef388b81b(ipns) {
311
311
  return $7ca6fdc721083788$export$e806c6c1615a59ae(true, internal_state_obj);
312
312
  }
313
313
  function $b000f5ef6ce456d9$export$8048b892d651b310(exception, error_for_stack) {
314
- (0, $241f2f02cc612a49$export$de56f1198d121036)(exception);
314
+ $241f2f02cc612a49$export$de56f1198d121036(exception);
315
315
  if (0, $a5a2bdb4ae93374b$export$55fe61489d2c7417) /* eslint-disable no-console */console.trace();
316
316
  if (process.env.BUILD_TARGET !== "node") {
317
317
  const {
@@ -335,7 +335,7 @@ async function $2da62df28669a48a$export$2fc1a072736ae2f6(obj, property) {
335
335
  }
336
336
  async function $2da62df28669a48a$var$wait_for_variable_in_object(variable, obj) {
337
337
  const start = new Date().getTime();
338
- (0, $241f2f02cc612a49$export$de56f1198d121036)("waiting for definition of variable", variable, "in", obj);
338
+ $241f2f02cc612a49$export$de56f1198d121036("waiting for definition of variable", variable, "in", obj);
339
339
  let var_behind_the_scenes;
340
340
  let resolve_variable_definition;
341
341
  let was_defined = false;
@@ -363,9 +363,9 @@ async function $2da62df28669a48a$var$wait_for_variable_in_object(variable, obj)
363
363
  get: get,
364
364
  set: set
365
365
  });
366
- (0, $241f2f02cc612a49$export$de56f1198d121036)("everything's set up, waiting for promise by setter to resolve");
366
+ $241f2f02cc612a49$export$de56f1198d121036("everything's set up, waiting for promise by setter to resolve");
367
367
  const result = await definition_of_var;
368
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Promise resolved, ", result, " is here. We waited", new Date().getTime() - start, "ms");
368
+ $241f2f02cc612a49$export$de56f1198d121036("Promise resolved, ", result, " is here. We waited", new Date().getTime() - start, "ms");
369
369
  return result;
370
370
  }
371
371
  function $2da62df28669a48a$export$d5062f468a0454f3(obj, prop) {
@@ -373,7 +373,7 @@ function $2da62df28669a48a$export$d5062f468a0454f3(obj, prop) {
373
373
  if (obj != null) return Object.hasOwnProperty.call(obj, prop) ? Object.getOwnPropertyDescriptor(obj, prop) : $2da62df28669a48a$export$d5062f468a0454f3(Object.getPrototypeOf(obj), prop);
374
374
  }
375
375
  function $2da62df28669a48a$export$79f910a98828378d(obj, variable, async_iterator_should_return_state_on_first_call) {
376
- const definition_ipns = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)(async_iterator_should_return_state_on_first_call);
376
+ const definition_ipns = $7ca6fdc721083788$export$e806c6c1615a59ae(async_iterator_should_return_state_on_first_call);
377
377
  let var_behind_the_scenes = obj[variable];
378
378
  definition_ipns(var_behind_the_scenes); // resolve with initial value
379
379
  const previous_descriptor = $2da62df28669a48a$export$d5062f468a0454f3(obj, variable);
@@ -508,7 +508,7 @@ async function $e5da8b4d1e6c12b3$var$load_sentry(TENANT) {
508
508
  BrowserClient: BrowserClient,
509
509
  Hub: Hub,
510
510
  defaultIntegrations: defaultIntegrations
511
- } = await (0, $2da62df28669a48a$export$2fc1a072736ae2f6)(window, global_var_name);
511
+ } = await $2da62df28669a48a$export$2fc1a072736ae2f6(window, global_var_name);
512
512
  delete window[global_var_name];
513
513
  if (process.env.SENTRY_SAMPLE_RATE) {
514
514
  var _more_options$sampleR;
@@ -531,7 +531,7 @@ async function $e5da8b4d1e6c12b3$var$load_sentry(TENANT) {
531
531
  // https://github.com/getsentry/sentry-javascript/issues/2541
532
532
  return hub;
533
533
  }
534
- const $17bb552dedcd526c$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true" || process.env.DEPICT_ERROR_REPORTING === "true" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "true") && (process.env.SENTRY === "false" || process.env.DEPICT_ERROR_REPORTING === "false" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "false" || (0, $a5a2bdb4ae93374b$export$55fe61489d2c7417)) ? /*@__PURE__*/$17bb552dedcd526c$var$fakesentry() : /*@__PURE__*/(0, $e5da8b4d1e6c12b3$export$2e2bcd8739ae039)(process.env.TENANT || "unknown", undefined, (0, $241f2f02cc612a49$export$de56f1198d121036));
534
+ const $17bb552dedcd526c$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true" || process.env.DEPICT_ERROR_REPORTING === "true" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "true") && (process.env.SENTRY === "false" || process.env.DEPICT_ERROR_REPORTING === "false" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "false" || (0, $a5a2bdb4ae93374b$export$55fe61489d2c7417)) ? /*@__PURE__*/$17bb552dedcd526c$var$fakesentry() : /*@__PURE__*/$e5da8b4d1e6c12b3$export$2e2bcd8739ae039(process.env.TENANT || "unknown", undefined, (0, $241f2f02cc612a49$export$de56f1198d121036));
535
535
  function $17bb552dedcd526c$var$fakesentry() {
536
536
  // // source: https://docs.sentry.io/platforms/javascript/troubleshooting/#dealing-with-ad-blockers
537
537
  // const handler = {
@@ -601,13 +601,13 @@ function $1cd1e96fe31c935d$export$bb0a9c36cf454ea0(min, max) {
601
601
  function $9c44a7238815fa47$export$535946eb77c946dd(the_function) {
602
602
  let busy = false;
603
603
  let current_promise;
604
- return (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function () {
604
+ return $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
605
605
  // Double awaits to make sure that if busy is true, it must also be true two ticks later.
606
606
  // This is a fix for when a promise that finalizes immediately is passed.
607
607
  // For context: https://javascript.info/microtask-queue
608
608
  if (!busy || !(await await busy, busy)) {
609
609
  busy = true;
610
- const to_finally = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(the_function)(...arguments);
610
+ const to_finally = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(the_function)(...arguments);
611
611
  current_promise = to_finally.finally(() => busy = false);
612
612
  }
613
613
  return current_promise;
@@ -617,14 +617,14 @@ function $9c44a7238815fa47$export$f241be8e610f5c77(the_function) {
617
617
  let busy = false;
618
618
  let queued;
619
619
  let current_promise;
620
- const wrapped_fn = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function () {
620
+ const wrapped_fn = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
621
621
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
622
622
  // Double awaits to make sure that if busy is true, it must also be true two ticks later.
623
623
  // This is a fix for when a promise that finalizes immediately is passed.
624
624
  // For context: https://javascript.info/microtask-queue
625
625
  if (!busy || !(await await busy, busy)) {
626
626
  busy = true;
627
- const to_finally = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(the_function)(...args);
627
+ const to_finally = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(the_function)(...args);
628
628
  current_promise = to_finally.finally(() => {
629
629
  busy = false;
630
630
  if (queued) {
@@ -676,24 +676,24 @@ class $4c6e595091defcd9$export$32ccf3a614c84258 {
676
676
  writable: true,
677
677
  value: Promise.resolve()
678
678
  });
679
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "promise", new Promise(r => (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $4c6e595091defcd9$var$_internal_resolve, r)));
679
+ $76EG6$babelruntimehelpersdefineProperty(this, "promise", new Promise(r => $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $4c6e595091defcd9$var$_internal_resolve, r)));
680
680
  $4c6e595091defcd9$var$_classPrivateFieldInitSpec(this, $4c6e595091defcd9$var$_work_queue_max_once, {
681
681
  writable: true,
682
- value: (0, $9c44a7238815fa47$export$535946eb77c946dd)($4c6e595091defcd9$var$_classPrivateMethodGet(this, $4c6e595091defcd9$var$_work_queue, $4c6e595091defcd9$var$_work_queue2).bind(this))
682
+ value: $9c44a7238815fa47$export$535946eb77c946dd($4c6e595091defcd9$var$_classPrivateMethodGet(this, $4c6e595091defcd9$var$_work_queue, $4c6e595091defcd9$var$_work_queue2).bind(this))
683
683
  });
684
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "resolve", value => {
685
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $4c6e595091defcd9$var$_values_to_resolve_with).push(value);
686
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $4c6e595091defcd9$var$_work_queue_max_once).call(this);
684
+ $76EG6$babelruntimehelpersdefineProperty(this, "resolve", value => {
685
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $4c6e595091defcd9$var$_values_to_resolve_with).push(value);
686
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $4c6e595091defcd9$var$_work_queue_max_once).call(this);
687
687
  });
688
688
  }
689
689
  }
690
690
  async function $4c6e595091defcd9$var$_work_queue2() {
691
- const vtrw = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $4c6e595091defcd9$var$_values_to_resolve_with);
691
+ const vtrw = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $4c6e595091defcd9$var$_values_to_resolve_with);
692
692
  for (let i = 0; i < vtrw.length; i++) {
693
- await (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $4c6e595091defcd9$var$_previous_promise);
694
- const oldresolve = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $4c6e595091defcd9$var$_internal_resolve);
695
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $4c6e595091defcd9$var$_previous_promise, this.promise);
696
- this.promise = new Promise(r => (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $4c6e595091defcd9$var$_internal_resolve, r));
693
+ await $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $4c6e595091defcd9$var$_previous_promise);
694
+ const oldresolve = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $4c6e595091defcd9$var$_internal_resolve);
695
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $4c6e595091defcd9$var$_previous_promise, this.promise);
696
+ this.promise = new Promise(r => $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $4c6e595091defcd9$var$_internal_resolve, r));
697
697
  oldresolve(vtrw[i]);
698
698
  }
699
699
  while (vtrw.length) vtrw.pop();
@@ -729,10 +729,10 @@ class $f5a4b8e233f0e1cd$export$1b28bc5c68cc4d77 extends EventTarget {
729
729
  // WHEN MAKING CHANGES, PLEASE KEEP IN MIND THAT THIS CLASS IS ALSO USED ON THE FRONTEND
730
730
  increase_fails() {
731
731
  var _this$fails, _this$fails2;
732
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_fails, (_this$fails = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_fails), _this$fails2 = _this$fails++, _this$fails)), _this$fails2;
733
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_fails) > (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_max_fails)) {
732
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_fails, (_this$fails = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_fails), _this$fails2 = _this$fails++, _this$fails)), _this$fails2;
733
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_fails) > $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_max_fails)) {
734
734
  this.restart_ws();
735
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_fails, 0);
735
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_fails, 0);
736
736
  }
737
737
  }
738
738
  async send() {
@@ -762,7 +762,7 @@ class $f5a4b8e233f0e1cd$export$1b28bc5c68cc4d77 extends EventTarget {
762
762
  });
763
763
  $f5a4b8e233f0e1cd$var$_classPrivateFieldInitSpec(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, {
764
764
  writable: true,
765
- value: (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_initial_reconnect_delay)
765
+ value: $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_initial_reconnect_delay)
766
766
  });
767
767
  $f5a4b8e233f0e1cd$var$_classPrivateFieldInitSpec(this, $f5a4b8e233f0e1cd$var$_fails, {
768
768
  writable: true,
@@ -776,32 +776,32 @@ class $f5a4b8e233f0e1cd$export$1b28bc5c68cc4d77 extends EventTarget {
776
776
  writable: true,
777
777
  value: $f5a4b8e233f0e1cd$var$ONE_MINUTE
778
778
  });
779
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_ws_constructor_options, [url, protocols]);
779
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_ws_constructor_options, [url, protocols]);
780
780
  const {
781
781
  max_backoff_ms: max_backoff_ms
782
782
  } = options;
783
- if (max_backoff_ms) (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_max_backoff_ms, max_backoff_ms);
783
+ if (max_backoff_ms) $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_max_backoff_ms, max_backoff_ms);
784
784
  $f5a4b8e233f0e1cd$var$_classPrivateMethodGet(this, $f5a4b8e233f0e1cd$var$_setup_dot_on_event_support, $f5a4b8e233f0e1cd$var$_setup_dot_on_event_support2).call(this);
785
785
  $f5a4b8e233f0e1cd$var$_classPrivateMethodGet(this, $f5a4b8e233f0e1cd$var$_connect, $f5a4b8e233f0e1cd$var$_connect2).call(this);
786
- $f5a4b8e233f0e1cd$var$_classPrivateMethodGet(this, $f5a4b8e233f0e1cd$var$_ensure_connection, $f5a4b8e233f0e1cd$var$_ensure_connection2).call(this).catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "error"));
787
- this.addEventListener("open", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
788
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Connection opened");
789
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_initial_reconnect_delay)); // reset exponential backoff
786
+ $f5a4b8e233f0e1cd$var$_classPrivateMethodGet(this, $f5a4b8e233f0e1cd$var$_ensure_connection, $f5a4b8e233f0e1cd$var$_ensure_connection2).call(this).catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error"));
787
+ this.addEventListener("open", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
788
+ $241f2f02cc612a49$export$de56f1198d121036("Connection opened");
789
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_initial_reconnect_delay)); // reset exponential backoff
790
790
  }));
791
791
  }
792
792
  }
793
793
 
794
794
  function $f5a4b8e233f0e1cd$var$_get_initial_reconnect_delay() {
795
- return (0, $1cd1e96fe31c935d$export$bb0a9c36cf454ea0)(1, 1000);
795
+ return $1cd1e96fe31c935d$export$bb0a9c36cf454ea0(1, 1000);
796
796
  }
797
797
  function $f5a4b8e233f0e1cd$var$_connect2() {
798
- this.current_socket = typeof window === "object" || typeof WebSocket === "function" ? new WebSocket(...(0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_ws_constructor_options)) : {
798
+ this.current_socket = typeof window === "object" || typeof WebSocket === "function" ? new WebSocket(...$76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_ws_constructor_options)) : {
799
799
  readyState: 0,
800
800
  addEventListener: () => {},
801
801
  send: () => {}
802
802
  };
803
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_possible_events).forEach(name => {
804
- this.current_socket.addEventListener(name, (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(original_event => {
803
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_possible_events).forEach(name => {
804
+ this.current_socket.addEventListener(name, $5e1f45affc1d7def$export$b3bbfd758f11cfa9(original_event => {
805
805
  let fixed_event;
806
806
  if (!(original_event instanceof Event)) {
807
807
  var _fixed_event;
@@ -835,17 +835,17 @@ function $f5a4b8e233f0e1cd$var$_setup_dot_on_event_support2() {
835
835
  // the idea is to make AutoReconnectingWS usable just like a normal WebSocket
836
836
  // so that you can do .onmessage or .addEventListener("message", handler) on an AutoReconnectingWS. It basically abstracts away connections that can close and die to one big EventTarget where you don't need to care about the underlying connection
837
837
  // this is how we add .onmessage, .onclose, .onopen and .onerror support to our EventTarget (this class)
838
- for (const ev of (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_possible_events)) {
838
+ for (const ev of $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_possible_events)) {
839
839
  Object.defineProperty(this, "on" + ev, {
840
840
  configurable: false,
841
841
  enumerable: true,
842
- get: () => (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_ons)[ev],
843
- set: v => (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_ons)[ev] = v
842
+ get: () => $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_ons)[ev],
843
+ set: v => $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_ons)[ev] = v
844
844
  });
845
845
  this.addEventListener(ev, e => {
846
846
  // e can be MessageEvent | CloseEvent | ErrorEvent I think
847
- const on_fn = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_ons)[ev];
848
- if (typeof on_fn === "function") (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(on_fn).call(ev, e);
847
+ const on_fn = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_ons)[ev];
848
+ if (typeof on_fn === "function") $5e1f45affc1d7def$export$b3bbfd758f11cfa9(on_fn).call(ev, e);
849
849
  });
850
850
  }
851
851
  }
@@ -861,26 +861,26 @@ async function $f5a4b8e233f0e1cd$var$_ensure_connection2() {
861
861
  // 4100 means server thinks this is a scraper bot that's ignoring robots.txt
862
862
  // @ts-ignore
863
863
  if ((error === null || error === void 0 ? void 0 : error.code) === 4100) {
864
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Websocket connection rejected by server, won't reconnect", error);
864
+ $241f2f02cc612a49$export$de56f1198d121036("Websocket connection rejected by server, won't reconnect", error);
865
865
  return;
866
866
  }
867
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Somehow the websocket died", error, "message:", error === null || error === void 0 ? void 0 : error.message, "code:", error === null || error === void 0 ? void 0 : error.code, "reason:", error === null || error === void 0 ? void 0 : error.reason, "reconnecting in", (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms));
867
+ $241f2f02cc612a49$export$de56f1198d121036("Somehow the websocket died", error, "message:", error === null || error === void 0 ? void 0 : error.message, "code:", error === null || error === void 0 ? void 0 : error.code, "reason:", error === null || error === void 0 ? void 0 : error.reason, "reconnecting in", $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms));
868
868
  await new Promise(r => {
869
869
  // "race" the timeout and getting an https://developer.mozilla.org/en-US/docs/Web/API/Window/online_event by the browser
870
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(ev => {
870
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(ev => {
871
871
  r();
872
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Retrying due to 'online' event", ev);
872
+ $241f2f02cc612a49$export$de56f1198d121036("Retrying due to 'online' event", ev);
873
873
  clearTimeout(timeout);
874
874
  });
875
875
  window.addEventListener("online", handler, {
876
876
  once: true
877
877
  });
878
- const timeout = setTimeout((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
879
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms) * (1.5 + Math.random()));
880
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms) > (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_max_backoff_ms)) (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_max_backoff_ms) * (1 + Math.random() / 10));
878
+ const timeout = setTimeout($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
879
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms) * (1.5 + Math.random()));
880
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms) > $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_max_backoff_ms)) $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_max_backoff_ms) * (1 + Math.random() / 10));
881
881
  r();
882
882
  window.removeEventListener("online", handler);
883
- }), (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms));
883
+ }), $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_try_again_in_ms));
884
884
  });
885
885
  $f5a4b8e233f0e1cd$var$_classPrivateMethodGet(this, $f5a4b8e233f0e1cd$var$_connect, $f5a4b8e233f0e1cd$var$_connect2).call(this);
886
886
  }
@@ -901,14 +901,14 @@ class $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f extends $f5a4b8e233f0e1cd$export
901
901
  while (true) {
902
902
  const {
903
903
  data: data
904
- } = await (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_msg_ipns).promise;
904
+ } = await $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_msg_ipns).promise;
905
905
  let reply;
906
906
  try {
907
907
  reply = JSON.parse(data);
908
908
  } catch (e) {
909
909
  const msg = "Got malformed message (ignoring, might cause memory leak)";
910
- (0, $241f2f02cc612a49$export$de56f1198d121036)(msg, data, e);
911
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, msg], "error", {
910
+ $241f2f02cc612a49$export$de56f1198d121036(msg, data, e);
911
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([e, msg], "error", {
912
912
  data: data
913
913
  });
914
914
  continue;
@@ -920,12 +920,12 @@ class $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f extends $f5a4b8e233f0e1cd$export
920
920
  if (status == "ack") {
921
921
  stop_sending();
922
922
  continue;
923
- } else if (status == "not-ok") (0, $241f2f02cc612a49$export$c2363754d4758444)("Got reply not-ok reply from server for event!", payload, reply);else if (status == "ok") {
923
+ } else if (status == "not-ok") $241f2f02cc612a49$export$c2363754d4758444("Got reply not-ok reply from server for event!", payload, reply);else if (status == "ok") {
924
924
  if (process.env.BUILD_TARGET !== "node") {
925
925
  var _payload$event;
926
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Successfully sent ".concat(payload === null || payload === void 0 ? void 0 : (_payload$event = payload.event) === null || _payload$event === void 0 ? void 0 : _payload$event.type, " (WS)"), payload, reply);
926
+ $241f2f02cc612a49$export$de56f1198d121036("Successfully sent ".concat(payload === null || payload === void 0 ? void 0 : (_payload$event = payload.event) === null || _payload$event === void 0 ? void 0 : _payload$event.type, " (WS)"), payload, reply);
927
927
  }
928
- } else (0, $241f2f02cc612a49$export$c2363754d4758444)("Strange reply from WSS server to", payload, ":", reply);
928
+ } else $241f2f02cc612a49$export$c2363754d4758444("Strange reply from WSS server to", payload, ":", reply);
929
929
  stop_sending();
930
930
  return [reply, data];
931
931
  }
@@ -958,22 +958,22 @@ class $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f extends $f5a4b8e233f0e1cd$export
958
958
  });
959
959
  $f5a4b8e233f0e1cd$var$_classPrivateFieldInitSpec(this, $f5a4b8e233f0e1cd$var$_start_reconnection_if_offline_process, {
960
960
  writable: true,
961
- value: (0, $9c44a7238815fa47$export$535946eb77c946dd)(async () => {
962
- await new Promise(r => setTimeout(r, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_reconnect_if_dead_for_ms) + (0, $1cd1e96fe31c935d$export$bb0a9c36cf454ea0)(-2, 10)));
961
+ value: $9c44a7238815fa47$export$535946eb77c946dd(async () => {
962
+ await new Promise(r => setTimeout(r, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_reconnect_if_dead_for_ms) + $1cd1e96fe31c935d$export$bb0a9c36cf454ea0(-2, 10)));
963
963
  // so if we are trying to send something and there's no activity ("error" which could mean the server is down or message or reconnection) we can safely assume that the internet connection is down. In that case we skip the exponential backoff since we want to know when we're connected again ASAP and just retry every like 20s
964
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_messages_queued) === 0) return;
964
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_messages_queued) === 0) return;
965
965
  const now = +new Date();
966
- if (now - (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_connection_last_active) > (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_reconnect_if_dead_for_ms)) {
967
- const reason = "No activity in ".concat((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_reconnect_if_dead_for_ms), " ms");
968
- (0, $241f2f02cc612a49$export$de56f1198d121036)(reason, "reconnecting ws");
966
+ if (now - $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_connection_last_active) > $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_reconnect_if_dead_for_ms)) {
967
+ const reason = "No activity in ".concat($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_reconnect_if_dead_for_ms), " ms");
968
+ $241f2f02cc612a49$export$de56f1198d121036(reason, "reconnecting ws");
969
969
  this.restart_ws(reason);
970
970
  }
971
971
  })
972
972
  });
973
973
  const option_retry_ms = (_ref = arguments.length <= 2 ? undefined : arguments[2]) === null || _ref === void 0 ? void 0 : _ref.initial_retry_ms;
974
- if (option_retry_ms) (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_initial_retry_ms, option_retry_ms);
975
- this.addEventListener("message", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_msg_ipns).resolve));
976
- ["open", "error", "message"].forEach(event => this.addEventListener(event, (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_connection_last_active, +new Date()))));
974
+ if (option_retry_ms) $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_initial_retry_ms, option_retry_ms);
975
+ this.addEventListener("message", $5e1f45affc1d7def$export$b3bbfd758f11cfa9($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_msg_ipns).resolve));
976
+ ["open", "error", "message"].forEach(event => this.addEventListener(event, $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_connection_last_active, +new Date()))));
977
977
  }
978
978
  }
979
979
  async function $f5a4b8e233f0e1cd$var$_wait_for_open_and_send2(msg) {
@@ -986,12 +986,12 @@ async function $f5a4b8e233f0e1cd$var$_wait_for_open_and_send2(msg) {
986
986
  }
987
987
  function $f5a4b8e233f0e1cd$var$_periodic_send2(msg) {
988
988
  var _this$messages_queued, _this$messages_queued2;
989
- let delay_to_next_send = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_initial_retry_ms);
989
+ let delay_to_next_send = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_initial_retry_ms);
990
990
  let quit = false;
991
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_messages_queued, (_this$messages_queued = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_messages_queued), _this$messages_queued2 = _this$messages_queued++, _this$messages_queued)), _this$messages_queued2;
991
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_messages_queued, (_this$messages_queued = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_messages_queued), _this$messages_queued2 = _this$messages_queued++, _this$messages_queued)), _this$messages_queued2;
992
992
  (async (_this$messages_queued3, _this$messages_queued4) => {
993
993
  while (!quit) {
994
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_start_reconnection_if_offline_process).call(this);
994
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_start_reconnection_if_offline_process).call(this);
995
995
  await $f5a4b8e233f0e1cd$var$_classPrivateMethodGet(this, $f5a4b8e233f0e1cd$var$_wait_for_open_and_send, $f5a4b8e233f0e1cd$var$_wait_for_open_and_send2).call(this, msg);
996
996
  const waited = await new Promise(r => {
997
997
  const handler = () => {
@@ -1001,7 +1001,7 @@ function $f5a4b8e233f0e1cd$var$_periodic_send2(msg) {
1001
1001
  // wait the correct delay
1002
1002
  const resend_due_to_lost_message_timeout = setTimeout(
1003
1003
  // this might actually never be needed and be from when Daniel didn't understand WebSockets as well
1004
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
1004
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
1005
1005
  r(true);
1006
1006
  this.removeEventListener("open", handler);
1007
1007
  }), delay_to_next_send);
@@ -1018,8 +1018,8 @@ function $f5a4b8e233f0e1cd$var$_periodic_send2(msg) {
1018
1018
  // this is not a proven theory and might be wrong
1019
1019
  this.increase_fails();
1020
1020
  }
1021
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $f5a4b8e233f0e1cd$var$_messages_queued, (_this$messages_queued3 = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $f5a4b8e233f0e1cd$var$_messages_queued), _this$messages_queued4 = _this$messages_queued3--, _this$messages_queued3)), _this$messages_queued4;
1022
- })().catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "error"));
1021
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $f5a4b8e233f0e1cd$var$_messages_queued, (_this$messages_queued3 = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $f5a4b8e233f0e1cd$var$_messages_queued), _this$messages_queued4 = _this$messages_queued3--, _this$messages_queued3)), _this$messages_queued4;
1022
+ })().catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error"));
1023
1023
  return () => quit = true;
1024
1024
  }
1025
1025
 
@@ -1047,18 +1047,18 @@ const $814c3bf8e175fa59$export$72036d950e1fae95 = /*@__PURE__*/$814c3bf8e175fa59
1047
1047
  const $814c3bf8e175fa59$export$aa26019042811d4f = /*@__PURE__*/$814c3bf8e175fa59$var$c(async bodies => {
1048
1048
  if (process.env.DEPICT === "false") return;
1049
1049
  for (let i = 0; i < bodies.length; i++) {
1050
- const id = (0, $6cb4d83127e468ea$export$656831b7e9c341c3)();
1050
+ const id = $6cb4d83127e468ea$export$656831b7e9c341c3();
1051
1051
  $814c3bf8e175fa59$var$ws_instance === null || $814c3bf8e175fa59$var$ws_instance === void 0 || $814c3bf8e175fa59$var$ws_instance.ensure_sent({
1052
1052
  id: id,
1053
1053
  event: bodies[i]
1054
- }).catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "error"));
1054
+ }).catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error"));
1055
1055
  }
1056
1056
  });
1057
1057
  const $814c3bf8e175fa59$export$608478473a3304a0 = /*@__PURE__*/$814c3bf8e175fa59$var$c(function (payload) {
1058
1058
  let use_ws = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1059
1059
  if (process.env.DEPICT === "false") return;
1060
1060
  if (use_ws && typeof WebSocket == "function" && typeof ($814c3bf8e175fa59$var$ws_instance === null || $814c3bf8e175fa59$var$ws_instance === void 0 ? void 0 : $814c3bf8e175fa59$var$ws_instance.ensure_sent) == "function") {
1061
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Sending to depict (ws)", payload);
1061
+ $241f2f02cc612a49$export$de56f1198d121036("Sending to depict (ws)", payload);
1062
1062
  return $814c3bf8e175fa59$export$aa26019042811d4f(payload);
1063
1063
  }
1064
1064
  const url = (0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/create-events";
@@ -1067,19 +1067,19 @@ const $814c3bf8e175fa59$export$608478473a3304a0 = /*@__PURE__*/$814c3bf8e175fa59
1067
1067
  const $814c3bf8e175fa59$export$cc3b6ddf805f6156 = /*@__PURE__*/$814c3bf8e175fa59$var$c((url, payload) => {
1068
1068
  const payload_json = JSON.stringify(payload);
1069
1069
  let success = false;
1070
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Attempting to send (beacon)", payload);
1070
+ $241f2f02cc612a49$export$de56f1198d121036("Attempting to send (beacon)", payload);
1071
1071
  try {
1072
1072
  success = navigator.sendBeacon(url, new Blob([payload_json], {
1073
1073
  type: "application/json"
1074
1074
  }));
1075
1075
  } catch (first_error) {
1076
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Beacon has failed", first_error, "falling back to sending with wrong mime type which might work");
1076
+ $241f2f02cc612a49$export$de56f1198d121036("Beacon has failed", first_error, "falling back to sending with wrong mime type which might work");
1077
1077
  try {
1078
1078
  success = navigator.sendBeacon(url, new Blob([payload_json], {
1079
1079
  type: "application/x-www-form-urlencoded"
1080
1080
  }));
1081
1081
  } catch (e) {
1082
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Beacon fallback has failed", e, "trying fetch");
1082
+ $241f2f02cc612a49$export$de56f1198d121036("Beacon fallback has failed", e, "trying fetch");
1083
1083
  fetch(url, {
1084
1084
  "headers": {
1085
1085
  "content-type": "application/json"
@@ -1088,7 +1088,7 @@ const $814c3bf8e175fa59$export$cc3b6ddf805f6156 = /*@__PURE__*/$814c3bf8e175fa59
1088
1088
  "method": "POST",
1089
1089
  "mode": "cors",
1090
1090
  "credentials": "include"
1091
- }).then(response => response.text()).then(text => (0, $241f2f02cc612a49$export$de56f1198d121036)("Beacon fallback fallback transmission result", text)).catch(fetch_error => {
1091
+ }).then(response => response.text()).then(text => $241f2f02cc612a49$export$de56f1198d121036("Beacon fallback fallback transmission result", text)).catch(fetch_error => {
1092
1092
  (0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).withScope(function (scope) {
1093
1093
  scope.setExtra("stack", new Error().stack);
1094
1094
  scope.setExtra("url", url);
@@ -1118,9 +1118,9 @@ let $d5f7352b58e0d737$export$6399bdb2291895e0 = () => {
1118
1118
  let cookie_error;
1119
1119
  try {
1120
1120
  var _localStorage;
1121
- id = (_localStorage = localStorage)._dep_id || (_localStorage._dep_id = (0, $6cb4d83127e468ea$export$656831b7e9c341c3)());
1121
+ id = (_localStorage = localStorage)._dep_id || (_localStorage._dep_id = $6cb4d83127e468ea$export$656831b7e9c341c3());
1122
1122
  } catch (e) {
1123
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Can't use localStorage", e);
1123
+ $241f2f02cc612a49$export$de56f1198d121036("Can't use localStorage", e);
1124
1124
  localstorage_error = e;
1125
1125
  }
1126
1126
  if (!id) {
@@ -1133,11 +1133,11 @@ let $d5f7352b58e0d737$export$6399bdb2291895e0 = () => {
1133
1133
  }, {})._dep_id;
1134
1134
  id = get_cookie_id();
1135
1135
  if (!id) {
1136
- document.cookie = "_dep_id=".concat((0, $6cb4d83127e468ea$export$656831b7e9c341c3)(), "; expires=Fri, 31 Dec 9999 23:59:59 GMT");
1136
+ document.cookie = "_dep_id=".concat($6cb4d83127e468ea$export$656831b7e9c341c3(), "; expires=Fri, 31 Dec 9999 23:59:59 GMT");
1137
1137
  id = get_cookie_id();
1138
1138
  }
1139
1139
  } catch (e) {
1140
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "warning");
1140
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "warning");
1141
1141
  cookie_error = e;
1142
1142
  }
1143
1143
  (0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).withScope(function (scope) {
@@ -1148,14 +1148,14 @@ let $d5f7352b58e0d737$export$6399bdb2291895e0 = () => {
1148
1148
  this.captureMessage("".concat(id ? "localStorage" : "cookie and localStorage", " failed to hold a value!"));
1149
1149
  });
1150
1150
  }
1151
- if (!id) id = (0, $6cb4d83127e468ea$export$656831b7e9c341c3)();
1151
+ if (!id) id = $6cb4d83127e468ea$export$656831b7e9c341c3();
1152
1152
  return id;
1153
1153
  };
1154
1154
  let $d5f7352b58e0d737$export$adc61a405a4cabed = $d5f7352b58e0d737$export$6399bdb2291895e0;
1155
1155
  let $d5f7352b58e0d737$export$61e7e1f11e96692f = () => undefined;
1156
- const $d5f7352b58e0d737$export$336e7ad40bae0652 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(newfn => $d5f7352b58e0d737$export$6399bdb2291895e0 = newfn);
1157
- const $d5f7352b58e0d737$export$8a96793bf9f87d90 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(newfn => $d5f7352b58e0d737$export$adc61a405a4cabed = newfn);
1158
- const $d5f7352b58e0d737$export$93ae15b1ae509334 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(newfn => $d5f7352b58e0d737$export$61e7e1f11e96692f = newfn);
1156
+ const $d5f7352b58e0d737$export$336e7ad40bae0652 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(newfn => $d5f7352b58e0d737$export$6399bdb2291895e0 = newfn);
1157
+ const $d5f7352b58e0d737$export$8a96793bf9f87d90 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(newfn => $d5f7352b58e0d737$export$adc61a405a4cabed = newfn);
1158
+ const $d5f7352b58e0d737$export$93ae15b1ae509334 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(newfn => $d5f7352b58e0d737$export$61e7e1f11e96692f = newfn);
1159
1159
  const $d5f7352b58e0d737$export$8c6f26a5b6921b95 = /*@__PURE__*/() => {
1160
1160
  var _document;
1161
1161
  return {
@@ -1167,7 +1167,7 @@ const $d5f7352b58e0d737$export$8c6f26a5b6921b95 = /*@__PURE__*/() => {
1167
1167
  document_referrer: (_document = document) === null || _document === void 0 ? void 0 : _document.referrer
1168
1168
  };
1169
1169
  };
1170
- const $d5f7352b58e0d737$export$82badda1f9923310 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)((vars, use_ws) => {
1170
+ const $d5f7352b58e0d737$export$82badda1f9923310 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9((vars, use_ws) => {
1171
1171
  if (process.env.DEPICT === "false") return;
1172
1172
  const payload = [{
1173
1173
  ...$d5f7352b58e0d737$export$8c6f26a5b6921b95(),
@@ -1177,9 +1177,9 @@ const $d5f7352b58e0d737$export$82badda1f9923310 = /*@__PURE__*/(0, $5e1f45affc1d
1177
1177
  entity_price: vars === null || vars === void 0 ? void 0 : vars.sale_price,
1178
1178
  ...vars
1179
1179
  }];
1180
- return (0, $814c3bf8e175fa59$export$28cacbd9b4306ffc)(payload, use_ws);
1180
+ return $814c3bf8e175fa59$export$28cacbd9b4306ffc(payload, use_ws);
1181
1181
  });
1182
- const $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(vars => {
1182
+ const $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(vars => {
1183
1183
  if (process.env.DEPICT === "false") return;
1184
1184
  const beacon_retval = $d5f7352b58e0d737$export$82badda1f9923310({
1185
1185
  ...vars,
@@ -1195,7 +1195,7 @@ const $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb = /*@__PURE__*/(0, $5e1f45affc1d
1195
1195
 
1196
1196
  return beacon_retval;
1197
1197
  });
1198
- const $d5f7352b58e0d737$export$9028351cb994757e = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(vars => {
1198
+ const $d5f7352b58e0d737$export$9028351cb994757e = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(vars => {
1199
1199
  if (process.env.DEPICT === "false") return;
1200
1200
  return $d5f7352b58e0d737$export$82badda1f9923310({
1201
1201
  ...vars,
@@ -1210,7 +1210,7 @@ function $d5f7352b58e0d737$export$622991c71a1f52b3(cookie_name) {
1210
1210
  function $3a96de5a459d34f9$export$c50e1901e8ed0615(callback) {
1211
1211
  // https://stackoverflow.com/a/61574326
1212
1212
  const channel = new MessageChannel();
1213
- channel.port1.onmessage = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(callback);
1213
+ channel.port1.onmessage = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(callback);
1214
1214
  channel.port2.postMessage("");
1215
1215
  }
1216
1216
  function $5f4e0abe3139380e$export$6f051469dd676a8b(tenant, market, type) {
@@ -1220,11 +1220,11 @@ function $5f4e0abe3139380e$export$6f051469dd676a8b(tenant, market, type) {
1220
1220
  if (!display) return;
1221
1221
  info.set_on_index_change(() => {
1222
1222
  current_displays.add(display);
1223
- (0, $76EG6$onCleanup)(() => current_displays.delete(display));
1223
+ $76EG6$onCleanup(() => current_displays.delete(display));
1224
1224
  if (!queued_sending) {
1225
1225
  queued_sending = true;
1226
- (0, $3a96de5a459d34f9$export$c50e1901e8ed0615)(() => {
1227
- (0, $d5f7352b58e0d737$export$82badda1f9923310)({
1226
+ $3a96de5a459d34f9$export$c50e1901e8ed0615(() => {
1227
+ $d5f7352b58e0d737$export$82badda1f9923310({
1228
1228
  tenant: tenant,
1229
1229
  market: market,
1230
1230
  recommendation_type: type,
@@ -1247,7 +1247,7 @@ function $cdf4691608b4019f$export$6e7454c733fa1fb2(fn) {
1247
1247
  return fn.apply(this, [...args, ...unimportant_args]);
1248
1248
  };
1249
1249
  }
1250
- const $bcc7b73f8b96a6f0$export$8582cf3716962dc2 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async _ref => {
1250
+ const $bcc7b73f8b96a6f0$export$8582cf3716962dc2 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async _ref => {
1251
1251
  let {
1252
1252
  recs: recs,
1253
1253
  min_recs: min_recs,
@@ -1268,11 +1268,11 @@ const $bcc7b73f8b96a6f0$export$8582cf3716962dc2 = /*@__PURE__*/(0, $5e1f45affc1d
1268
1268
  if (Array.isArray(recs)) {
1269
1269
  if (min_recs == undefined) min_recs = 10;
1270
1270
  if (recs.length < min_recs) {
1271
- (0, $241f2f02cc612a49$export$c2363754d4758444)("Displays provided to check_displays is too short, it contains", recs.length, "displays which is less than", min_recs);
1271
+ $241f2f02cc612a49$export$c2363754d4758444("Displays provided to check_displays is too short, it contains", recs.length, "displays which is less than", min_recs);
1272
1272
  return false;
1273
1273
  } else return true;
1274
- } else (0, $241f2f02cc612a49$export$c2363754d4758444)(new Error("neither recs nor recs.displays are an array"));
1275
- } else (0, $241f2f02cc612a49$export$c2363754d4758444)(new Error("Non object was passed to check_displays"));
1274
+ } else $241f2f02cc612a49$export$c2363754d4758444(new Error("neither recs nor recs.displays are an array"));
1275
+ } else $241f2f02cc612a49$export$c2363754d4758444(new Error("Non object was passed to check_displays"));
1276
1276
  });
1277
1277
  const $a01cf8e3169d2af1$var$elem_track_id_map = /*@__PURE__*/new WeakMap();
1278
1278
  function $a01cf8e3169d2af1$export$16d7c76794a38a4(element, event, track_id, func) {
@@ -1321,7 +1321,7 @@ function $914c6f35222c820d$var$check_if_querySelectorAll_needs_patching() {
1321
1321
  }
1322
1322
  let $2c3b8e0102339cd6$var$has_queued_microtask = false;
1323
1323
  const $2c3b8e0102339cd6$var$queued_callbacks = /*@__PURE__*/new Map();
1324
- const $2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($2c3b8e0102339cd6$var$deduplicate_and_dispatch, "error in observer event processing", "error");
1324
+ const $2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9($2c3b8e0102339cd6$var$deduplicate_and_dispatch, "error in observer event processing", "error");
1325
1325
  function $2c3b8e0102339cd6$export$2b08e30396270f0b(callback, ev) {
1326
1326
  $2c3b8e0102339cd6$var$queued_callbacks.set(ev, callback);
1327
1327
  if (!$2c3b8e0102339cd6$var$has_queued_microtask) queueMicrotask($2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch);
@@ -1366,7 +1366,7 @@ function $2c3b8e0102339cd6$var$deduplicate_and_dispatch() {
1366
1366
  }
1367
1367
  }
1368
1368
  function $2c3b8e0102339cd6$var$call_callback(callback, ev) {
1369
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(callback, "Error in observer callback")(ev);
1369
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(callback, "Error in observer callback")(ev);
1370
1370
  }
1371
1371
  class $4f10cdcba0efac85$export$ea60432919e69303 {
1372
1372
  constructor(opts) {
@@ -1456,7 +1456,7 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1456
1456
  });
1457
1457
  $7d82513db34b5d27$var$_classPrivateFieldInitSpec(this, $7d82513db34b5d27$var$_weakref_finalization_registry, {
1458
1458
  writable: true,
1459
- value: typeof FinalizationRegistry === "function" && new FinalizationRegistry((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_finalization_registry_callback, $7d82513db34b5d27$var$_finalization_registry_callback2).bind(this)))
1459
+ value: typeof FinalizationRegistry === "function" && new FinalizationRegistry($5e1f45affc1d7def$export$b3bbfd758f11cfa9($7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_finalization_registry_callback, $7d82513db34b5d27$var$_finalization_registry_callback2).bind(this)))
1460
1460
  });
1461
1461
  $7d82513db34b5d27$var$_classPrivateFieldInitSpec(this, $7d82513db34b5d27$var$_verbs, {
1462
1462
  writable: true,
@@ -1466,7 +1466,7 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1466
1466
  var _classPrivateFieldGet2, _ref;
1467
1467
  $7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_check_observer_args, $7d82513db34b5d27$var$_check_observer_args2).call(this, selector, callback, true);
1468
1468
  if (selector instanceof Node) {
1469
- if (typeof document === "object" && ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_territory) || document.documentElement).contains(selector))
1469
+ if (typeof document === "object" && ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_territory) || document.documentElement).contains(selector))
1470
1470
  // When the selector is a node the selector and the element are the same, dunno how we could reflect that in the typing though
1471
1471
  $7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_call_callbacks, $7d82513db34b5d27$var$_call_callbacks2).call(this, [callback], callback_ => ({
1472
1472
  element_: selector,
@@ -1480,8 +1480,8 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1480
1480
  }));
1481
1481
  return;
1482
1482
  }
1483
- const our_set = (_classPrivateFieldGet2 = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_attribute_attribution_map_object))[_ref = selector] || (_classPrivateFieldGet2[_ref] = new WeakSet());
1484
- const elements = typeof document === "undefined" ? [] : (0, $914c6f35222c820d$export$33f937d741e49339)((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_territory) || document, selector);
1483
+ const our_set = (_classPrivateFieldGet2 = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_attribute_attribution_map_object))[_ref = selector] || (_classPrivateFieldGet2[_ref] = new WeakSet());
1484
+ const elements = typeof document === "undefined" ? [] : $914c6f35222c820d$export$33f937d741e49339($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_territory) || document, selector);
1485
1485
  for (let i = 0; i < elements.length; i++) {
1486
1486
  const element = elements[i];
1487
1487
  our_set.add(element);
@@ -1497,13 +1497,13 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1497
1497
  }
1498
1498
  },
1499
1499
  wait_for_element: (selector, timeout) => {
1500
- return (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_self_proxied).wait_for_listener("exists", selector, timeout);
1500
+ return $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_self_proxied).wait_for_listener("exists", selector, timeout);
1501
1501
  },
1502
1502
  wait_for_listener: (listener, selector, timeout) => {
1503
1503
  $7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_check_observer_args, $7d82513db34b5d27$var$_check_observer_args2).call(this, listener, () => {}, false);
1504
1504
  // console.log("waiting for listener", listener, "selector", selector, "timeout", timeout);
1505
- return new Promise((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(r => {
1506
- const stop_observing = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_self_proxied)["on" + listener](selector, _ref2 => {
1505
+ return new Promise($5e1f45affc1d7def$export$b3bbfd758f11cfa9(r => {
1506
+ const stop_observing = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_self_proxied)["on" + listener](selector, _ref2 => {
1507
1507
  let {
1508
1508
  element: element,
1509
1509
  disconnector: disconnector
@@ -1525,11 +1525,11 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1525
1525
  value: records => {
1526
1526
  // this is the function which needs to be as fast as possible because it is called on EVERY mutation in the DOM
1527
1527
  try {
1528
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_observer_callback_running, true);
1528
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_observer_callback_running, true);
1529
1529
  const steps_to_restore_observing_cache = [];
1530
1530
  try {
1531
- const observing = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_observing); // Currently observing elements. Please make sure they don't get mutated by anything except this function during the running of this function (use observer_callback_running and #execute_after_callback_ran to check for and schedule your mutations for after the run of this function). We previously cloned these on every run but that's super slow.
1532
- const attribute_attribution_map_object = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_attribute_attribution_map_object);
1531
+ const observing = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_observing); // Currently observing elements. Please make sure they don't get mutated by anything except this function during the running of this function (use observer_callback_running and #execute_after_callback_ran to check for and schedule your mutations for after the run of this function). We previously cloned these on every run but that's super slow.
1532
+ const attribute_attribution_map_object = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_attribute_attribution_map_object);
1533
1533
  for (let j = 0; j < records.length; j++) {
1534
1534
  const record = records[j];
1535
1535
  const {
@@ -1636,7 +1636,7 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1636
1636
  if ((addedNodes.length || removedNodes.length) && node.hasChildNodes() &&
1637
1637
  // @ts-ignore
1638
1638
  node.querySelectorAll /* don't act on i.e. textnodes. Doing the check this way is actually faster than both `in` and instanceof */) {
1639
- const matching_children = (0, $914c6f35222c820d$export$33f937d741e49339)(node, selector);
1639
+ const matching_children = $914c6f35222c820d$export$33f937d741e49339(node, selector);
1640
1640
  for (let m = 0; m < matching_children.length; m++) {
1641
1641
  // always use for loops because this can't be slow and forEach takes ages
1642
1642
  if (event == "exists") our_set.add(matching_children[m]);
@@ -1705,7 +1705,7 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1705
1705
  const matching_nodes = [];
1706
1706
  // @ts-ignore
1707
1707
  if (node !== null && node !== void 0 && (_node$matches2 = node.matches) !== null && _node$matches2 !== void 0 && _node$matches2.call(node, selector)) matching_nodes.push(node);
1708
- matching_nodes.push(...((0, $914c6f35222c820d$export$33f937d741e49339)(node, selector) || []));
1708
+ matching_nodes.push(...($914c6f35222c820d$export$33f937d741e49339(node, selector) || []));
1709
1709
  for (let v = 0; v < matching_nodes.length; v++) $7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_call_callbacks, $7d82513db34b5d27$var$_call_callbacks2).call(this, callbacks, callback => ({
1710
1710
  element_: matching_nodes[v],
1711
1711
  selector_: selector,
@@ -1744,36 +1744,36 @@ class $7d82513db34b5d27$export$12e07a2a9f87578a {
1744
1744
  } finally {
1745
1745
  // ensure that we don't leave this.#observing in a broken state if we throw
1746
1746
  while (steps_to_restore_observing_cache.length) steps_to_restore_observing_cache.pop()();
1747
- const execute_after_run = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_execute_after_callback_ran);
1747
+ const execute_after_run = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_execute_after_callback_ran);
1748
1748
  // We need to execute these in order they were added because I'm afraid that things might rely on it
1749
1749
  for (let i = 0; i < execute_after_run.length; i++) try {
1750
1750
  execute_after_run[i]();
1751
1751
  } catch (e) {
1752
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "error in observer running queued function"], "error");
1752
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "error in observer running queued function"], "error");
1753
1753
  }
1754
1754
  // Let the garbage collector empty the old array by creating a new one
1755
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_execute_after_callback_ran, []);
1756
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_observer_callback_running, false);
1755
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_execute_after_callback_ran, []);
1756
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_observer_callback_running, false);
1757
1757
  }
1758
1758
  } catch (e) {
1759
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "error in observer"], "error");
1759
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "error in observer"], "error");
1760
1760
  }
1761
1761
  }
1762
1762
  });
1763
1763
  if (process.env.BUILD_TARGET !== "modern" && Proxy.toString().indexOf("[native code]") === -1) {
1764
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_listeners).forEach(listener => this["on" + listener] = () => {}); // define listeners, needed for IE11 proxy polyfill
1765
- Object.keys((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_verbs)).forEach(listener => this[listener] = () => {});
1764
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_listeners).forEach(listener => this["on" + listener] = () => {}); // define listeners, needed for IE11 proxy polyfill
1765
+ Object.keys($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_verbs)).forEach(listener => this[listener] = () => {});
1766
1766
  }
1767
- if (options.territory) (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_territory, options.territory);
1768
- return (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_self_proxied, new Proxy(this, {
1767
+ if (options.territory) $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_territory, options.territory);
1768
+ return $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_self_proxied, new Proxy(this, {
1769
1769
  get: $7d82513db34b5d27$var$_classPrivateMethodGet(this, $7d82513db34b5d27$var$_get, $7d82513db34b5d27$var$_get2)
1770
1770
  }));
1771
1771
  }
1772
1772
  }
1773
1773
  function $7d82513db34b5d27$var$_kickstart_observer2() {
1774
1774
  if (typeof document === "undefined") return;
1775
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_the_mutation_observer, new MutationObserver((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_observer_callback)));
1776
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_the_mutation_observer).observe((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_territory) || document, {
1775
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_the_mutation_observer, new MutationObserver($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_observer_callback)));
1776
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_the_mutation_observer).observe($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_territory) || document, {
1777
1777
  attributes: true,
1778
1778
  childList: true,
1779
1779
  subtree: true,
@@ -1790,7 +1790,7 @@ function $7d82513db34b5d27$var$_disconnect_fn2(_ref4) {
1790
1790
  } = _ref4;
1791
1791
  return () => {
1792
1792
  const fn = () => {
1793
- const observing = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_observing);
1793
+ const observing = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_observing);
1794
1794
  const selector_to_callback_array_map = observing[event_];
1795
1795
  if (!selector_to_callback_array_map) return;
1796
1796
  const callbacks = selector_to_callback_array_map.get(selector_);
@@ -1799,12 +1799,12 @@ function $7d82513db34b5d27$var$_disconnect_fn2(_ref4) {
1799
1799
  if (selector_to_callback_array_map.size === 0) delete observing[event_];
1800
1800
  if (!Object.keys(observing).length) {
1801
1801
  var _classPrivateFieldGet3;
1802
- (_classPrivateFieldGet3 = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_the_mutation_observer)) === null || _classPrivateFieldGet3 === void 0 || _classPrivateFieldGet3.disconnect();
1803
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_the_mutation_observer, undefined);
1802
+ (_classPrivateFieldGet3 = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_the_mutation_observer)) === null || _classPrivateFieldGet3 === void 0 || _classPrivateFieldGet3.disconnect();
1803
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_the_mutation_observer, undefined);
1804
1804
  }
1805
1805
  };
1806
1806
  // If the observer callback is running, we need to queue every function that mutates this.#observing since we can't clone it for performance reasons
1807
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_observer_callback_running)) (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_execute_after_callback_ran).push(fn);else fn();
1807
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_observer_callback_running)) $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_execute_after_callback_ran).push(fn);else fn();
1808
1808
  };
1809
1809
  }
1810
1810
  function $7d82513db34b5d27$var$_check_observer_args2(selector, callback, allow_nodes) {
@@ -1819,7 +1819,7 @@ function $7d82513db34b5d27$var$_add_listener2(listener) {
1819
1819
  // We are probably running on the server where we can't do anything anyway so we might just return
1820
1820
  return;
1821
1821
  if (!listener || !selector || !callback) {
1822
- (0, $241f2f02cc612a49$export$de56f1198d121036)("listener, selector or callback is falsey", {
1822
+ $241f2f02cc612a49$export$de56f1198d121036("listener, selector or callback is falsey", {
1823
1823
  listener: listener,
1824
1824
  selector: selector,
1825
1825
  callback: callback
@@ -1827,17 +1827,17 @@ function $7d82513db34b5d27$var$_add_listener2(listener) {
1827
1827
  return;
1828
1828
  }
1829
1829
  $7d82513db34b5d27$var$_classPrivateMethodGet(the_class, $7d82513db34b5d27$var$_check_observer_args, $7d82513db34b5d27$var$_check_observer_args2).call(the_class, selector, callback, listener != "change");
1830
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(the_class, $7d82513db34b5d27$var$_observer_callback_running)) {
1830
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(the_class, $7d82513db34b5d27$var$_observer_callback_running)) {
1831
1831
  // Can't mutate #observing right now, queue it for when we can
1832
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(the_class, $7d82513db34b5d27$var$_execute_after_callback_ran).push(() => function_for_listener(selector, callback));
1832
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(the_class, $7d82513db34b5d27$var$_execute_after_callback_ran).push(() => function_for_listener(selector, callback));
1833
1833
  return;
1834
1834
  }
1835
- const observing = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(the_class, $7d82513db34b5d27$var$_observing);
1835
+ const observing = $76EG6$babelruntimehelpersclassPrivateFieldGet(the_class, $7d82513db34b5d27$var$_observing);
1836
1836
  observing[listener] || (observing[listener] = new Map());
1837
1837
  // create map for each listener, this is because the selectors can be objects for .onremoved, .oncreation and .onexists to take explicit nodes
1838
1838
  const selector_map = observing[listener];
1839
1839
  let disconnector;
1840
- if (listener === "exists") (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(the_class, $7d82513db34b5d27$var$_verbs).ifexists(selector, callback);
1840
+ if (listener === "exists") $76EG6$babelruntimehelpersclassPrivateFieldGet(the_class, $7d82513db34b5d27$var$_verbs).ifexists(selector, callback);
1841
1841
  if (typeof selector === "string") {
1842
1842
  // simple code for string selectors
1843
1843
  let callback_set = selector_map.get(selector);
@@ -1886,45 +1886,45 @@ function $7d82513db34b5d27$var$_add_listener2(listener) {
1886
1886
  }
1887
1887
  callback_set_to_add_to.add(callback);
1888
1888
  }
1889
- if (!(0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(the_class, $7d82513db34b5d27$var$_the_mutation_observer)) $7d82513db34b5d27$var$_classPrivateMethodGet(the_class, $7d82513db34b5d27$var$_kickstart_observer, $7d82513db34b5d27$var$_kickstart_observer2).call(the_class);
1889
+ if (!$76EG6$babelruntimehelpersclassPrivateFieldGet(the_class, $7d82513db34b5d27$var$_the_mutation_observer)) $7d82513db34b5d27$var$_classPrivateMethodGet(the_class, $7d82513db34b5d27$var$_kickstart_observer, $7d82513db34b5d27$var$_kickstart_observer2).call(the_class);
1890
1890
  return disconnector;
1891
1891
  };
1892
1892
  return function_for_listener;
1893
1893
  }
1894
1894
  function $7d82513db34b5d27$var$_cleanup_weakref_when_refd_el_gcd2(listener, weakref, element) {
1895
1895
  // we don't want to keep references to elements used as "selectors" in oncreation and onremoved
1896
- if (!(0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_weakref_finalization_registry)) return;
1897
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_weakref_finalization_registry).register(element, [listener, weakref]);
1896
+ if (!$76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_weakref_finalization_registry)) return;
1897
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_weakref_finalization_registry).register(element, [listener, weakref]);
1898
1898
  }
1899
1899
  function $7d82513db34b5d27$var$_finalization_registry_callback2(_ref5) {
1900
1900
  var _observing$listener, _observing$listener$g, _observing$listener2, _observing$listener3;
1901
1901
  let [listener, weak_ref] = _ref5;
1902
1902
  // element was GCd and the callbacks can never be called, remove them
1903
- const observing = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_observing);
1903
+ const observing = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_observing);
1904
1904
  (_observing$listener = observing[listener]) === null || _observing$listener === void 0 || (_observing$listener$g = _observing$listener.get(weak_ref)) === null || _observing$listener$g === void 0 || _observing$listener$g.clear(); // just in case something still has a reference to this set and does something with it, clear it
1905
1905
  (_observing$listener2 = observing[listener]) === null || _observing$listener2 === void 0 || _observing$listener2.delete(weak_ref);
1906
1906
  if (((_observing$listener3 = observing[listener]) === null || _observing$listener3 === void 0 ? void 0 : _observing$listener3.size) === 0) delete observing[listener];
1907
1907
  if (Object.keys(observing).length === 0) {
1908
1908
  var _classPrivateFieldGet4;
1909
- (_classPrivateFieldGet4 = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $7d82513db34b5d27$var$_the_mutation_observer)) === null || _classPrivateFieldGet4 === void 0 || _classPrivateFieldGet4.disconnect();
1910
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $7d82513db34b5d27$var$_the_mutation_observer, undefined);
1909
+ (_classPrivateFieldGet4 = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $7d82513db34b5d27$var$_the_mutation_observer)) === null || _classPrivateFieldGet4 === void 0 || _classPrivateFieldGet4.disconnect();
1910
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $7d82513db34b5d27$var$_the_mutation_observer, undefined);
1911
1911
  }
1912
1912
  }
1913
1913
  function $7d82513db34b5d27$var$_call_callbacks2(callbacks, make_ev_data) {
1914
- for (const callback of callbacks) (0, $2c3b8e0102339cd6$export$2b08e30396270f0b)(callback, new (0, $4f10cdcba0efac85$export$ea60432919e69303)(make_ev_data(callback)));
1914
+ for (const callback of callbacks) $2c3b8e0102339cd6$export$2b08e30396270f0b(callback, new (0, $4f10cdcba0efac85$export$ea60432919e69303)(make_ev_data(callback)));
1915
1915
  }
1916
1916
  function $7d82513db34b5d27$var$_get2(target, verb) {
1917
1917
  // @ts-ignore
1918
- const is_listener = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(target, $7d82513db34b5d27$var$_listeners).includes(verb.slice(2));
1919
- const is_verb = Object.keys((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(target, $7d82513db34b5d27$var$_verbs)).includes(verb);
1920
- if (is_verb) return (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(target, $7d82513db34b5d27$var$_verbs)[verb];else if (is_listener) return $7d82513db34b5d27$var$_classPrivateMethodGet(target, $7d82513db34b5d27$var$_add_listener, $7d82513db34b5d27$var$_add_listener2).call(target, verb.slice(2));else throw new Error("Property " + verb + " is not valid. Valid listeners: " + (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(target, $7d82513db34b5d27$var$_listeners).join(", ") + "; valid verbs: " + Object.keys((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(target, $7d82513db34b5d27$var$_verbs)).join(", "));
1918
+ const is_listener = $76EG6$babelruntimehelpersclassPrivateFieldGet(target, $7d82513db34b5d27$var$_listeners).includes(verb.slice(2));
1919
+ const is_verb = Object.keys($76EG6$babelruntimehelpersclassPrivateFieldGet(target, $7d82513db34b5d27$var$_verbs)).includes(verb);
1920
+ if (is_verb) return $76EG6$babelruntimehelpersclassPrivateFieldGet(target, $7d82513db34b5d27$var$_verbs)[verb];else if (is_listener) return $7d82513db34b5d27$var$_classPrivateMethodGet(target, $7d82513db34b5d27$var$_add_listener, $7d82513db34b5d27$var$_add_listener2).call(target, verb.slice(2));else throw new Error("Property " + verb + " is not valid. Valid listeners: " + $76EG6$babelruntimehelpersclassPrivateFieldGet(target, $7d82513db34b5d27$var$_listeners).join(", ") + "; valid verbs: " + Object.keys($76EG6$babelruntimehelpersclassPrivateFieldGet(target, $7d82513db34b5d27$var$_verbs)).join(", "));
1921
1921
  }
1922
1922
  const $90fa633a9564f115$export$b6ae1bc530f4c149 = /*@__PURE__*/$90fa633a9564f115$var$make_default_observer();
1923
1923
  function $90fa633a9564f115$var$make_default_observer() {
1924
1924
  try {
1925
1925
  return new (0, $7d82513db34b5d27$export$12e07a2a9f87578a)();
1926
1926
  } catch (error) {
1927
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([error, "error starting ElementObserver"], "error");
1927
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([error, "error starting ElementObserver"], "error");
1928
1928
  }
1929
1929
  }
1930
1930
  function $652300c6621d5500$export$925772df9b4d16e5(url, param, value) {
@@ -1957,22 +1957,22 @@ function $652300c6621d5500$export$d4bd03f19260ef1c(url) {
1957
1957
  let stfu = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
1958
1958
  let also_in_all_shadow_roots = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
1959
1959
  if (process.env.DEBUG === "true" && location.href.includes(override_dev_url)) {
1960
- const relativ_callback = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(event => {
1960
+ const relativ_callback = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(event => {
1961
1961
  const anchor = event.element;
1962
1962
  if (typeof url === "string") {
1963
1963
  if (anchor.href.includes(url)) {
1964
- if (!stfu) (0, $241f2f02cc612a49$export$de56f1198d121036)("RUNNING RELATIVIFY on", event);
1964
+ if (!stfu) $241f2f02cc612a49$export$de56f1198d121036("RUNNING RELATIVIFY on", event);
1965
1965
  anchor.href = anchor.href.replaceAll(url, "/");
1966
1966
  }
1967
1967
  } else if (url.test(anchor.href)) {
1968
- if (!stfu) (0, $241f2f02cc612a49$export$de56f1198d121036)("RUNNING RELATIVIFY on", event);
1968
+ if (!stfu) $241f2f02cc612a49$export$de56f1198d121036("RUNNING RELATIVIFY on", event);
1969
1969
  anchor.href = anchor.href.replace(url, "/");
1970
1970
  }
1971
1971
  });
1972
1972
  const link_sel = "a[href]";
1973
1973
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists(link_sel, relativ_callback);
1974
1974
  if (also_onchange) (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onchange(link_sel, relativ_callback);
1975
- if (also_in_all_shadow_roots && typeof ShadowRoot == "function") (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists("*", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(_ref => {
1975
+ if (also_in_all_shadow_roots && typeof ShadowRoot == "function") (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists("*", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(_ref => {
1976
1976
  let {
1977
1977
  element: element
1978
1978
  } = _ref;
@@ -1989,7 +1989,7 @@ function $652300c6621d5500$export$5e63aea0cac01fa0(elements, selector) {
1989
1989
  const matches = [];
1990
1990
  for (const element of elements) {
1991
1991
  var _element$matches;
1992
- if ("querySelectorAll" in element) matches.push(...(0, $914c6f35222c820d$export$33f937d741e49339)(element, selector));
1992
+ if ("querySelectorAll" in element) matches.push(...$914c6f35222c820d$export$33f937d741e49339(element, selector));
1993
1993
  if ("matches" in element && (_element$matches = element.matches) !== null && _element$matches !== void 0 && _element$matches.call(element, selector)) matches.push(element);
1994
1994
  }
1995
1995
  return matches;
@@ -2001,12 +2001,12 @@ function $652300c6621d5500$export$cfef5d5c9ac09253(price) {
2001
2001
  if (!price && price !== 0) return "";
2002
2002
  if (typeof price === "string") {
2003
2003
  if (!isNaN(price)) {
2004
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(new Error("standard_price_format did not expect price as a string"), "warning", {
2004
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(new Error("standard_price_format did not expect price as a string"), "warning", {
2005
2005
  price: price
2006
2006
  });
2007
2007
  price = parseFloat(price);
2008
2008
  } else {
2009
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(new Error("standard_price_format cannot handle price string"), "error", {
2009
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(new Error("standard_price_format cannot handle price string"), "error", {
2010
2010
  price: price
2011
2011
  });
2012
2012
  return "";
@@ -2051,14 +2051,14 @@ function $6c8c963618d41bb2$export$947a20746936143d(promises) {
2051
2051
  async function $df87ac5a30f7baac$export$836f70a28c317905(product_id) {
2052
2052
  if (typeof BroadcastChannel != "function") return;
2053
2053
  const bc = new BroadcastChannel("right_click_attribution");
2054
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Broadcasting", product_id, "to", bc);
2054
+ $241f2f02cc612a49$export$de56f1198d121036("Broadcasting", product_id, "to", bc);
2055
2055
  bc.postMessage(product_id);
2056
2056
  bc.close();
2057
2057
  }
2058
2058
  function $df87ac5a30f7baac$export$58c56fe2313fdbe3(elements, display, info, get_event_listener_remover) {
2059
2059
  if (typeof BroadcastChannel != "function") return elements;
2060
2060
  const disconnectors = [];
2061
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(e => $df87ac5a30f7baac$export$8f66c4c7fb96eda2(e, ("variant_index" in display ? display.variant_displays[display.variant_index] : display).product_id));
2061
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(e => $df87ac5a30f7baac$export$8f66c4c7fb96eda2(e, ("variant_index" in display ? display.variant_displays[display.variant_index] : display).product_id));
2062
2062
  const auxclick_handler = e => e.button === 1 && handler(e);
2063
2063
  for (let i = 0; i < (elements === null || elements === void 0 ? void 0 : elements.length); i++) {
2064
2064
  const element = elements[i];
@@ -2073,15 +2073,15 @@ function $df87ac5a30f7baac$export$58c56fe2313fdbe3(elements, display, info, get_
2073
2073
  return elements;
2074
2074
  }
2075
2075
  async function $df87ac5a30f7baac$export$8f66c4c7fb96eda2(e, product_id) {
2076
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Contextmenu was invoked", e);
2076
+ $241f2f02cc612a49$export$de56f1198d121036("Contextmenu was invoked", e);
2077
2077
  const element = e.currentTarget || e.target;
2078
2078
  const bc = new BroadcastChannel("right_click_attribution");
2079
- const got_wanted_event = await (0, $6c8c963618d41bb2$export$947a20746936143d)([new Promise(resolve => {
2080
- bc.addEventListener("message", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(msg => {
2079
+ const got_wanted_event = await $6c8c963618d41bb2$export$947a20746936143d([new Promise(resolve => {
2080
+ bc.addEventListener("message", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(msg => {
2081
2081
  const {
2082
2082
  data: data
2083
2083
  } = msg;
2084
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Recieved broadcast channel event", data, msg);
2084
+ $241f2f02cc612a49$export$de56f1198d121036("Recieved broadcast channel event", data, msg);
2085
2085
  if (data == product_id) resolve(true);
2086
2086
  }));
2087
2087
  }), new Promise(r => setTimeout(r, 60000, false))]);
@@ -2092,12 +2092,12 @@ async function $df87ac5a30f7baac$export$8f66c4c7fb96eda2(e, product_id) {
2092
2092
  cancelable: true,
2093
2093
  metaKey: true
2094
2094
  });
2095
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Someone broadcasted our product_id! Simulating a click event on the element that was contextmenu'd", element, click);
2095
+ $241f2f02cc612a49$export$de56f1198d121036("Someone broadcasted our product_id! Simulating a click event on the element that was contextmenu'd", element, click);
2096
2096
  element.addEventListener("click", e => (e.preventDefault(), false), {
2097
2097
  once: true
2098
2098
  });
2099
2099
  element.dispatchEvent(click);
2100
- } else (0, $241f2f02cc612a49$export$de56f1198d121036)("Our product_id did not get broadcasted, closing channel");
2100
+ } else $241f2f02cc612a49$export$de56f1198d121036("Our product_id did not get broadcasted, closing channel");
2101
2101
  bc.close();
2102
2102
  }
2103
2103
 
@@ -2132,7 +2132,7 @@ const $20f21bee300687ff$var$unwatch_element = element => {
2132
2132
  };
2133
2133
  const $20f21bee300687ff$export$4c51576248bcdf31 = (element, callback) => {
2134
2134
  if ($20f21bee300687ff$var$watched_elements.has(element)) {
2135
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Not watching", element, "as it's already being watched");
2135
+ $241f2f02cc612a49$export$de56f1198d121036("Not watching", element, "as it's already being watched");
2136
2136
  return () => {};
2137
2137
  }
2138
2138
  $20f21bee300687ff$var$intersection_observer === null || $20f21bee300687ff$var$intersection_observer === void 0 || $20f21bee300687ff$var$intersection_observer.observe(element);
@@ -2187,7 +2187,7 @@ const $20f21bee300687ff$var$intersection_observer_callback = entries => {
2187
2187
  clearTimeout(callback_timeout_);
2188
2188
  if (time_elapsed <= (0, $d6c3e2ba045accda$export$ca8321ea61dc2544)) $20f21bee300687ff$var$current_intersections.delete(target);else {
2189
2189
  // we intersected long enough
2190
- (0, $241f2f02cc612a49$export$de56f1198d121036)("intersection_observer: setTimeout lagged", time_elapsed, (0, $d6c3e2ba045accda$export$ca8321ea61dc2544), "ms", target);
2190
+ $241f2f02cc612a49$export$de56f1198d121036("intersection_observer: setTimeout lagged", time_elapsed, (0, $d6c3e2ba045accda$export$ca8321ea61dc2544), "ms", target);
2191
2191
  callback(target);
2192
2192
  }
2193
2193
  }
@@ -2197,34 +2197,34 @@ const $20f21bee300687ff$var$intersection_observer_callback = entries => {
2197
2197
  * Global IntersectionObserver used for all impression tracking.
2198
2198
  * It's faster to use one observer for all elements than to create a new one for each element.
2199
2199
  */
2200
- const $20f21bee300687ff$var$intersection_observer = typeof window === "object" ? /*@__PURE__*/new IntersectionObserver( /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($20f21bee300687ff$var$intersection_observer_callback), {
2201
- threshold: /*@__PURE__*/(0, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129)(8)
2200
+ const $20f21bee300687ff$var$intersection_observer = typeof window === "object" ? /*@__PURE__*/new IntersectionObserver( /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9($20f21bee300687ff$var$intersection_observer_callback), {
2201
+ threshold: /*@__PURE__*/$ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129(8)
2202
2202
  }) : undefined;
2203
2203
  const $c633189b7b69d048$export$d0efd8ed14f5c33 = (items, display, info) => {
2204
2204
  if (!(items !== null && items !== void 0 && items.length)) return items;
2205
2205
  const node_array = Array.isArray(items) ? items : [...items]; // if it's a NodeList convert it to an array
2206
2206
  const first_watchable_el = node_array.find(el => el instanceof Element);
2207
2207
  if (!first_watchable_el) {
2208
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Impression tracking: Can't observe", items, display);
2208
+ $241f2f02cc612a49$export$de56f1198d121036("Impression tracking: Can't observe", items, display);
2209
2209
  return items;
2210
2210
  }
2211
2211
  if (!info.t) {
2212
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Impression tracking: No tenant instance, can't track", items, display);
2212
+ $241f2f02cc612a49$export$de56f1198d121036("Impression tracking: No tenant instance, can't track", items, display);
2213
2213
  return items;
2214
2214
  }
2215
2215
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists(first_watchable_el, _ref => {
2216
2216
  let {
2217
2217
  element: element
2218
2218
  } = _ref;
2219
- (0, $20f21bee300687ff$export$4c51576248bcdf31)(element, () => {
2219
+ $20f21bee300687ff$export$4c51576248bcdf31(element, () => {
2220
2220
  const {
2221
2221
  recommendation_id: recommendation_id,
2222
2222
  search_result_id: search_result_id,
2223
2223
  product_listing_result_id: product_listing_result_id,
2224
2224
  suggestions_result_id: suggestions_result_id
2225
2225
  } = display;
2226
- (0, $d6c3e2ba045accda$export$4205dc6835bc0d9f)({
2227
- ...(0, $d5f7352b58e0d737$export$8c6f26a5b6921b95)(),
2226
+ $d6c3e2ba045accda$export$4205dc6835bc0d9f({
2227
+ ...$d5f7352b58e0d737$export$8c6f26a5b6921b95(),
2228
2228
  recommendation_type: info.rendering_options.type,
2229
2229
  entity_price: display.sale_price,
2230
2230
  market: info.t.market,
@@ -2247,9 +2247,9 @@ const $e89a1d249db21af0$export$37125ccc5dd98050 = _ref => {
2247
2247
  } = _ref;
2248
2248
  const disconnectors = [];
2249
2249
  const impression_track = () => {
2250
- const disconnector = (0, $20f21bee300687ff$export$4c51576248bcdf31)(element, () => {
2251
- (0, $d6c3e2ba045accda$export$4205dc6835bc0d9f)({
2252
- ...(0, $d5f7352b58e0d737$export$8c6f26a5b6921b95)(),
2250
+ const disconnector = $20f21bee300687ff$export$4c51576248bcdf31(element, () => {
2251
+ $d6c3e2ba045accda$export$4205dc6835bc0d9f({
2252
+ ...$d5f7352b58e0d737$export$8c6f26a5b6921b95(),
2253
2253
  ...data
2254
2254
  });
2255
2255
  });
@@ -2263,7 +2263,7 @@ const $d6c3e2ba045accda$export$c543ee4cdb0d0964 = (start, end) => $d6c3e2ba045ac
2263
2263
  const $d6c3e2ba045accda$export$ca8321ea61dc2544 = 500;
2264
2264
  const $d6c3e2ba045accda$export$4205dc6835bc0d9f = data => {
2265
2265
  data.type = "element_visible"; // Set the type to element_visible as this is optional to pass here.
2266
- (0, $814c3bf8e175fa59$export$28cacbd9b4306ffc)([data], true);
2266
+ $814c3bf8e175fa59$export$28cacbd9b4306ffc([data], true);
2267
2267
  };
2268
2268
  function $bd7c9f254946941d$export$82a685f2da2fb027(a_element, product_id, recommendation_id, additional_listener) {
2269
2269
  var _a_element$depict_tra, _a_element$depict_tra2;
@@ -2297,9 +2297,9 @@ function $bd7c9f254946941d$export$82a685f2da2fb027(a_element, product_id, recomm
2297
2297
  async function $bd7c9f254946941d$export$2c34560c3749dc63(button, get_product_id, tracking_fn, unmatching_tracking, event) {
2298
2298
  // @ts-ignore
2299
2299
  if (!button || button.depict_tracked) return;
2300
- button.addEventListener(event ? event : "click", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async e => {
2300
+ button.addEventListener(event ? event : "click", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async e => {
2301
2301
  if (!e.isTrusted) {
2302
- (0, $241f2f02cc612a49$export$de56f1198d121036)("ignoring event", e, "because it's not user generated");
2302
+ $241f2f02cc612a49$export$de56f1198d121036("ignoring event", e, "because it's not user generated");
2303
2303
  return;
2304
2304
  }
2305
2305
  const product_id = await get_product_id(undefined, e);
@@ -2316,8 +2316,8 @@ async function $bd7c9f254946941d$export$2c34560c3749dc63(button, get_product_id,
2316
2316
  button.depict_tracked = true;
2317
2317
  }
2318
2318
  var $ad1dbddac6af350d$var$_globalThis$window;
2319
- const $ad1dbddac6af350d$export$20e9533e68ee72e7 = /*@__PURE__*/(0, $7ca6fdc721083788$export$e806c6c1615a59ae)(false);
2320
- const $ad1dbddac6af350d$export$a9d39e43ae273d26 = /*@__PURE__*/(0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
2319
+ const $ad1dbddac6af350d$export$20e9533e68ee72e7 = /*@__PURE__*/$7ca6fdc721083788$export$e806c6c1615a59ae(false);
2320
+ const $ad1dbddac6af350d$export$a9d39e43ae273d26 = /*@__PURE__*/$7ca6fdc721083788$export$e806c6c1615a59ae();
2321
2321
  const $ad1dbddac6af350d$export$7500cdfd37aafd43 = /*@__PURE__*/new Set();
2322
2322
  let $ad1dbddac6af350d$var$old_url;
2323
2323
  const $ad1dbddac6af350d$var$maybe_navigation = (what_happened, args) => {
@@ -2334,9 +2334,9 @@ const $ad1dbddac6af350d$var$maybe_navigation = (what_happened, args) => {
2334
2334
  };
2335
2335
  $ad1dbddac6af350d$export$baccefee4a395d8f((args, what_happened) => $ad1dbddac6af350d$var$maybe_navigation(what_happened, args));
2336
2336
  $ad1dbddac6af350d$var$maybe_navigation();
2337
- globalThis === null || globalThis === void 0 || ($ad1dbddac6af350d$var$_globalThis$window = globalThis.window) === null || $ad1dbddac6af350d$var$_globalThis$window === void 0 || $ad1dbddac6af350d$var$_globalThis$window.addEventListener("popstate", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(e => $ad1dbddac6af350d$var$maybe_navigation("popstate", e)));
2337
+ globalThis === null || globalThis === void 0 || ($ad1dbddac6af350d$var$_globalThis$window = globalThis.window) === null || $ad1dbddac6af350d$var$_globalThis$window === void 0 || $ad1dbddac6af350d$var$_globalThis$window.addEventListener("popstate", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(e => $ad1dbddac6af350d$var$maybe_navigation("popstate", e)));
2338
2338
  async function $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(callback) {
2339
- const catchified_callback = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(callback);
2339
+ const catchified_callback = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(callback);
2340
2340
  for await (const href of $ad1dbddac6af350d$export$20e9533e68ee72e7) {
2341
2341
  catchified_callback(href);
2342
2342
  break;
@@ -2358,7 +2358,7 @@ async function $ad1dbddac6af350d$export$baccefee4a395d8f(after_navigation) {
2358
2358
  try {
2359
2359
  after_navigation(arguments_list, the_thing);
2360
2360
  } catch (e) {
2361
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(e);
2361
+ $b000f5ef6ce456d9$export$8048b892d651b310(e);
2362
2362
  }
2363
2363
  return nav_result;
2364
2364
  }
@@ -2381,21 +2381,21 @@ async function $0897f35c3b3fbbc4$export$eee4c4d924348b05(data) {
2381
2381
  } = location;
2382
2382
  if ($0897f35c3b3fbbc4$var$last_page_pageview_sent_for !== href) {
2383
2383
  $0897f35c3b3fbbc4$var$last_page_pageview_sent_for = href;
2384
- (0, $d5f7352b58e0d737$export$82badda1f9923310)({
2384
+ $d5f7352b58e0d737$export$82badda1f9923310({
2385
2385
  ...data,
2386
2386
  type: "page_view"
2387
2387
  });
2388
- if (data.product_id) await (0, $df87ac5a30f7baac$export$836f70a28c317905)(data.product_id); // this takes care of right click click attribution - broadcasts the URL of the current page
2388
+ if (data.product_id) await $df87ac5a30f7baac$export$836f70a28c317905(data.product_id); // this takes care of right click click attribution - broadcasts the URL of the current page
2389
2389
  }
2390
2390
  } catch (error) {
2391
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([error, "Sending page view failed"], "warning");
2391
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([error, "Sending page view failed"], "warning");
2392
2392
  }
2393
2393
  }
2394
2394
  let $0897f35c3b3fbbc4$var$sending_on_navigation = false;
2395
2395
  async function $0897f35c3b3fbbc4$export$f7cb1bd47199ec38(data) {
2396
2396
  if (!$0897f35c3b3fbbc4$var$sending_on_navigation) {
2397
2397
  $0897f35c3b3fbbc4$var$sending_on_navigation = true;
2398
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async () => {
2398
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async () => {
2399
2399
  for await (const _href of (0, $ad1dbddac6af350d$export$a9d39e43ae273d26)) $0897f35c3b3fbbc4$export$eee4c4d924348b05({
2400
2400
  tenant: data.tenant,
2401
2401
  market: data.market,
@@ -2447,10 +2447,9 @@ var $be5f485da4e3f813$exports = {};
2447
2447
  /*@__PURE__*/$parcel$export($be5f485da4e3f813$exports, "cookiebot_wait_for_consent", () => $be5f485da4e3f813$export$56c2e8be65fb14ae);
2448
2448
  /*@__PURE__*/$parcel$export($be5f485da4e3f813$exports, "cookiebot_get_cookie_ipns", () => $be5f485da4e3f813$export$8827362e5e938d26);
2449
2449
  /*@__PURE__*/$parcel$export($be5f485da4e3f813$exports, "init_cookiebot_tracking", () => $be5f485da4e3f813$export$abec7fd9f0b9cc22);
2450
- var $be5f485da4e3f813$var$_consent_from_cookie;
2451
2450
  const $be5f485da4e3f813$var$required_consent_level = process.env.DEPICT_TRACKING_CONSENT_LEVEL;
2452
2451
  function $be5f485da4e3f813$var$consent_from_cookie() {
2453
- const cookie = (0, $d5f7352b58e0d737$export$622991c71a1f52b3)("CookieConsent");
2452
+ const cookie = $d5f7352b58e0d737$export$622991c71a1f52b3("CookieConsent");
2454
2453
  if (!cookie) return;
2455
2454
  const consent_json = cookie.replace(/%2C/g, ",").replace(/%27/g, "'").replace(/'/g, '"').replace(/([{[,])\s*([\w]+?):/g, '$1"$2":');
2456
2455
  try {
@@ -2458,12 +2457,12 @@ function $be5f485da4e3f813$var$consent_from_cookie() {
2458
2457
  } catch ({
2459
2458
  message: message
2460
2459
  }) {
2461
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Error parsing cookie json", consent_json, message);
2460
+ $241f2f02cc612a49$export$de56f1198d121036("Error parsing cookie json", consent_json, message);
2462
2461
  return;
2463
2462
  }
2464
2463
  }
2465
2464
  let $be5f485da4e3f813$var$cookie_ipns;
2466
- let $be5f485da4e3f813$var$has_consent = $be5f485da4e3f813$var$required_consent_level ? (($be5f485da4e3f813$var$_consent_from_cookie = $be5f485da4e3f813$var$consent_from_cookie()) === null || $be5f485da4e3f813$var$_consent_from_cookie === void 0 ? void 0 : $be5f485da4e3f813$var$_consent_from_cookie[$be5f485da4e3f813$var$required_consent_level]) || false : true;
2465
+ let $be5f485da4e3f813$var$has_consent = /*@__PURE__*/(_consent_from_cookie => $be5f485da4e3f813$var$required_consent_level ? ((_consent_from_cookie = $be5f485da4e3f813$var$consent_from_cookie()) === null || _consent_from_cookie === void 0 ? void 0 : _consent_from_cookie[$be5f485da4e3f813$var$required_consent_level]) || false : true)();
2467
2466
  const $be5f485da4e3f813$export$fce59460a1699957 = () => $be5f485da4e3f813$var$has_consent;
2468
2467
  async function $be5f485da4e3f813$export$56c2e8be65fb14ae() {
2469
2468
  for await (const consent_obj of $be5f485da4e3f813$export$8827362e5e938d26()) return consent_obj[process.env.DEPICT_TRACKING_CONSENT_LEVEL];
@@ -2472,10 +2471,10 @@ async function $be5f485da4e3f813$export$56c2e8be65fb14ae() {
2472
2471
  }
2473
2472
  function $be5f485da4e3f813$export$8827362e5e938d26() {
2474
2473
  if ($be5f485da4e3f813$var$cookie_ipns) return $be5f485da4e3f813$var$cookie_ipns;
2475
- $be5f485da4e3f813$var$cookie_ipns = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
2474
+ $be5f485da4e3f813$var$cookie_ipns = $7ca6fdc721083788$export$e806c6c1615a59ae();
2476
2475
  const existing_consent = $be5f485da4e3f813$var$consent_from_cookie();
2477
2476
  if (existing_consent) $be5f485da4e3f813$var$cookie_ipns(existing_consent);
2478
- const consent_maybe_changed = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
2477
+ const consent_maybe_changed = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
2479
2478
  const {
2480
2479
  consent: {
2481
2480
  marketing: marketing,
@@ -2494,29 +2493,28 @@ function $be5f485da4e3f813$export$8827362e5e938d26() {
2494
2493
  var _cookie_ipns$latest_c;
2495
2494
  return ((_cookie_ipns$latest_c = $be5f485da4e3f813$var$cookie_ipns.latest_call_value) === null || _cookie_ipns$latest_c === void 0 ? void 0 : _cookie_ipns$latest_c[k]) === new_consent_obj[k];
2496
2495
  })) {
2497
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Consent changed", new_consent_obj);
2496
+ $241f2f02cc612a49$export$de56f1198d121036("Consent changed", new_consent_obj);
2498
2497
  $be5f485da4e3f813$var$cookie_ipns(new_consent_obj);
2499
2498
  }
2500
2499
  }, "extracting consent failed");
2501
- (0, $2da62df28669a48a$export$2fc1a072736ae2f6)(window, "Cookiebot", "consent").then(consent_maybe_changed);
2500
+ $2da62df28669a48a$export$2fc1a072736ae2f6(window, "Cookiebot", "consent").then(consent_maybe_changed);
2502
2501
  ["CookiebotOnAccept", "CookiebotOnDecline"].forEach(e => window.addEventListener(e, consent_maybe_changed, false));
2503
2502
  return $be5f485da4e3f813$var$cookie_ipns;
2504
2503
  }
2505
- const $be5f485da4e3f813$export$abec7fd9f0b9cc22 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function () {
2504
+ const $be5f485da4e3f813$export$abec7fd9f0b9cc22 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
2506
2505
  let anon_id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "anonymous";
2507
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Initializing Cookiebot tracking");
2508
- if (!$be5f485da4e3f813$var$required_consent_level) return (0, $241f2f02cc612a49$export$de56f1198d121036)("No consent level set for Depict tracking. Ignoring consent and tracking everything.");
2506
+ $241f2f02cc612a49$export$de56f1198d121036("Initializing Cookiebot tracking");
2507
+ if (!$be5f485da4e3f813$var$required_consent_level) return $241f2f02cc612a49$export$de56f1198d121036("No consent level set for Depict tracking. Ignoring consent and tracking everything.");
2509
2508
  const original_get_depict_id = (0, $d5f7352b58e0d737$export$6399bdb2291895e0);
2510
2509
  const original_get_user_id = (0, $d5f7352b58e0d737$export$adc61a405a4cabed);
2511
- (0, $d5f7352b58e0d737$export$336e7ad40bae0652)(() => $be5f485da4e3f813$var$has_consent ? original_get_depict_id() : anon_id);
2512
- (0, $d5f7352b58e0d737$export$8a96793bf9f87d90)(() => $be5f485da4e3f813$var$has_consent ? original_get_user_id() : anon_id);
2510
+ $d5f7352b58e0d737$export$336e7ad40bae0652(() => $be5f485da4e3f813$var$has_consent ? original_get_depict_id() : anon_id);
2511
+ $d5f7352b58e0d737$export$8a96793bf9f87d90(() => $be5f485da4e3f813$var$has_consent ? original_get_user_id() : anon_id);
2513
2512
  for await (const consent_obj of $be5f485da4e3f813$export$8827362e5e938d26()) {
2514
2513
  // Changing this will change the return value of function given to set_depict_id_fn above
2515
2514
  $be5f485da4e3f813$var$has_consent = consent_obj[$be5f485da4e3f813$var$required_consent_level];
2516
- if (!$be5f485da4e3f813$var$has_consent) (0, $241f2f02cc612a49$export$de56f1198d121036)('dsid/user_id will be set to, "'.concat(anon_id, '", until Cookiebot has consent for "').concat($be5f485da4e3f813$var$required_consent_level, '"'));else (0, $241f2f02cc612a49$export$de56f1198d121036)('Cookiebot obtained consent for "'.concat($be5f485da4e3f813$var$required_consent_level, '", will use true dsid/user_id'));
2515
+ if (!$be5f485da4e3f813$var$has_consent) $241f2f02cc612a49$export$de56f1198d121036('dsid/user_id will be set to, "'.concat(anon_id, '", until Cookiebot has consent for "').concat($be5f485da4e3f813$var$required_consent_level, '"'));else $241f2f02cc612a49$export$de56f1198d121036('Cookiebot obtained consent for "'.concat($be5f485da4e3f813$var$required_consent_level, '", will use true dsid/user_id'));
2517
2516
  }
2518
2517
  });
2519
- var $d4217f56717a3207$var$_consent_from_cookie;
2520
2518
  const $d4217f56717a3207$var$required_consent_level = process.env.DEPICT_TRACKING_CONSENT_LEVEL;
2521
2519
  /*
2522
2520
  The Optanon cookie format can vary slightly between integrations. To figure out the key values used for a particular customer,
@@ -2533,7 +2531,7 @@ const $d4217f56717a3207$var$required_consent_level = process.env.DEPICT_TRACKING
2533
2531
  const $d4217f56717a3207$var$KEY_ORDER = ["necessary", "statistics", "preferences", "marketing"];
2534
2532
  const $d4217f56717a3207$var$OPTANON_TO_COOKIEBOT = Object.fromEntries((process.env.OPTANON_KEYS || "").split(",").filter(k => k).map((k, i) => [k, $d4217f56717a3207$var$KEY_ORDER[i]]));
2535
2533
  function $d4217f56717a3207$var$consent_from_cookie() {
2536
- const cookie = (0, $d5f7352b58e0d737$export$622991c71a1f52b3)("OptanonConsent");
2534
+ const cookie = $d5f7352b58e0d737$export$622991c71a1f52b3("OptanonConsent");
2537
2535
  if (!cookie) return;
2538
2536
  const groups = new URLSearchParams(cookie).get("groups") || "";
2539
2537
  const matches = groups.matchAll(/(\w+):(\d)/g);
@@ -2542,7 +2540,7 @@ function $d4217f56717a3207$var$consent_from_cookie() {
2542
2540
  return consent;
2543
2541
  }
2544
2542
  let $d4217f56717a3207$var$cookie_ipns;
2545
- let $d4217f56717a3207$var$has_consent = $d4217f56717a3207$var$required_consent_level ? /*@__PURE__*/(($d4217f56717a3207$var$_consent_from_cookie = $d4217f56717a3207$var$consent_from_cookie()) === null || $d4217f56717a3207$var$_consent_from_cookie === void 0 ? void 0 : $d4217f56717a3207$var$_consent_from_cookie[$d4217f56717a3207$var$required_consent_level]) || false : true;
2543
+ let $d4217f56717a3207$var$has_consent = /*@__PURE__*/(_consent_from_cookie => $d4217f56717a3207$var$required_consent_level ? ((_consent_from_cookie = $d4217f56717a3207$var$consent_from_cookie()) === null || _consent_from_cookie === void 0 ? void 0 : _consent_from_cookie[$d4217f56717a3207$var$required_consent_level]) || false : true)();
2546
2544
  const $d4217f56717a3207$export$1dd9ce50e201eff1 = () => $d4217f56717a3207$var$has_consent;
2547
2545
  async function $d4217f56717a3207$export$7a6d436e0782c6ed() {
2548
2546
  for await (const consent_obj of $d4217f56717a3207$export$7e4427e80d5fc619()) return consent_obj[process.env.DEPICT_TRACKING_CONSENT_LEVEL];
@@ -2551,12 +2549,12 @@ async function $d4217f56717a3207$export$7a6d436e0782c6ed() {
2551
2549
  }
2552
2550
  function $d4217f56717a3207$export$7e4427e80d5fc619() {
2553
2551
  if ($d4217f56717a3207$var$cookie_ipns) return $d4217f56717a3207$var$cookie_ipns;
2554
- $d4217f56717a3207$var$cookie_ipns = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
2552
+ $d4217f56717a3207$var$cookie_ipns = $7ca6fdc721083788$export$e806c6c1615a59ae();
2555
2553
  const existing_consent = $d4217f56717a3207$var$consent_from_cookie();
2556
2554
  if (existing_consent !== null && existing_consent !== void 0 && existing_consent.necessary)
2557
2555
  // If "necessary" isn't set, user hasn't actually given/withold consent yet.
2558
2556
  $d4217f56717a3207$var$cookie_ipns(existing_consent);
2559
- window.addEventListener("consent.onetrust", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(evt => {
2557
+ window.addEventListener("consent.onetrust", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(evt => {
2560
2558
  const c = evt;
2561
2559
  // Cast because TS doesn't know about the forEach coming up
2562
2560
  const consent_obj = {};
@@ -2573,36 +2571,36 @@ function $d4217f56717a3207$export$7e4427e80d5fc619() {
2573
2571
  }));
2574
2572
  return $d4217f56717a3207$var$cookie_ipns;
2575
2573
  }
2576
- const $d4217f56717a3207$export$f0f6c846d96fdbec = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function () {
2574
+ const $d4217f56717a3207$export$f0f6c846d96fdbec = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
2577
2575
  let anon_id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "anonymous";
2578
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Initializing OptAnon tracking");
2579
- if (!$d4217f56717a3207$var$required_consent_level) return (0, $241f2f02cc612a49$export$de56f1198d121036)("No consent level set for Depict tracking. Ignoring consent and tracking everything.");
2576
+ $241f2f02cc612a49$export$de56f1198d121036("Initializing OptAnon tracking");
2577
+ if (!$d4217f56717a3207$var$required_consent_level) return $241f2f02cc612a49$export$de56f1198d121036("No consent level set for Depict tracking. Ignoring consent and tracking everything.");
2580
2578
  const original_get_depict_id = (0, $d5f7352b58e0d737$export$6399bdb2291895e0);
2581
2579
  const original_get_user_id = (0, $d5f7352b58e0d737$export$adc61a405a4cabed);
2582
- (0, $d5f7352b58e0d737$export$336e7ad40bae0652)(() => $d4217f56717a3207$var$has_consent ? original_get_depict_id() : anon_id);
2583
- (0, $d5f7352b58e0d737$export$8a96793bf9f87d90)(() => $d4217f56717a3207$var$has_consent ? original_get_user_id() : anon_id);
2580
+ $d5f7352b58e0d737$export$336e7ad40bae0652(() => $d4217f56717a3207$var$has_consent ? original_get_depict_id() : anon_id);
2581
+ $d5f7352b58e0d737$export$8a96793bf9f87d90(() => $d4217f56717a3207$var$has_consent ? original_get_user_id() : anon_id);
2584
2582
  for await (const consent_obj of $d4217f56717a3207$export$7e4427e80d5fc619()) {
2585
2583
  // Changing this will change the return value of function given to set_depict_id_fn above
2586
2584
  $d4217f56717a3207$var$has_consent = consent_obj[$d4217f56717a3207$var$required_consent_level];
2587
- if (!$d4217f56717a3207$var$has_consent) (0, $241f2f02cc612a49$export$de56f1198d121036)('dsid/user_id will be set to, "'.concat(anon_id, '", until Optanon has consent for "').concat($d4217f56717a3207$var$required_consent_level, '"'));else (0, $241f2f02cc612a49$export$de56f1198d121036)('Optanon obtained consent for "'.concat($d4217f56717a3207$var$required_consent_level, '", will use true dsid/user_id'));
2585
+ if (!$d4217f56717a3207$var$has_consent) $241f2f02cc612a49$export$de56f1198d121036('dsid/user_id will be set to, "'.concat(anon_id, '", until Optanon has consent for "').concat($d4217f56717a3207$var$required_consent_level, '"'));else $241f2f02cc612a49$export$de56f1198d121036('Optanon obtained consent for "'.concat($d4217f56717a3207$var$required_consent_level, '", will use true dsid/user_id'));
2588
2586
  }
2589
2587
  });
2590
2588
  const $3674b9afc9a63520$var$g = typeof globalThis == "object" && globalThis || window;
2591
- const $3674b9afc9a63520$export$f3354ec2ce95ebd9 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async (GA_ID, strict) => {
2589
+ const $3674b9afc9a63520$export$f3354ec2ce95ebd9 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async (GA_ID, strict) => {
2592
2590
  var _g$performance, _g$performance$getEnt, _g$performance$getEnt2, _g$performance$getEnt3;
2593
2591
  if (process.env.GTAG === "false") return;
2594
2592
  if (!GA_ID) {
2595
- (0, $241f2f02cc612a49$export$c2363754d4758444)("Couldn't load gtag, GA_ID not specified", GA_ID);
2593
+ $241f2f02cc612a49$export$c2363754d4758444("Couldn't load gtag, GA_ID not specified", GA_ID);
2596
2594
  return;
2597
2595
  }
2598
2596
  const required_consent_level = process.env.GTAG_LOADING_CONSENT_LEVEL;
2599
2597
  if (required_consent_level !== undefined) {
2600
- (0, $241f2f02cc612a49$export$de56f1198d121036)("GTag loading waiting for consent level ".concat(required_consent_level));
2601
- const ipns = process.env.CONSENT_FRAMEWORK == "optanon" ? (0, $d4217f56717a3207$export$7e4427e80d5fc619)() : (0, $be5f485da4e3f813$export$8827362e5e938d26)();
2598
+ $241f2f02cc612a49$export$de56f1198d121036("GTag loading waiting for consent level ".concat(required_consent_level));
2599
+ const ipns = process.env.CONSENT_FRAMEWORK == "optanon" ? $d4217f56717a3207$export$7e4427e80d5fc619() : $be5f485da4e3f813$export$8827362e5e938d26();
2602
2600
  for await (const consent_status of ipns) {
2603
2601
  const status_for_level = consent_status[required_consent_level];
2604
2602
  if (status_for_level) {
2605
- (0, $241f2f02cc612a49$export$de56f1198d121036)("got consent for", required_consent_level, "loading gtag");
2603
+ $241f2f02cc612a49$export$de56f1198d121036("got consent for", required_consent_level, "loading gtag");
2606
2604
  break;
2607
2605
  }
2608
2606
  }
@@ -2612,13 +2610,13 @@ const $3674b9afc9a63520$export$f3354ec2ce95ebd9 = /*@__PURE__*/(0, $5e1f45affc1d
2612
2610
  const page_hasnt_loaded = ($3674b9afc9a63520$var$g === null || $3674b9afc9a63520$var$g === void 0 ? void 0 : (_g$performance = $3674b9afc9a63520$var$g.performance) === null || _g$performance === void 0 ? void 0 : (_g$performance$getEnt = _g$performance.getEntriesByType) === null || _g$performance$getEnt === void 0 ? void 0 : (_g$performance$getEnt2 = _g$performance$getEnt.call(_g$performance, "navigation")) === null || _g$performance$getEnt2 === void 0 ? void 0 : (_g$performance$getEnt3 = _g$performance$getEnt2.every) === null || _g$performance$getEnt3 === void 0 ? void 0 : _g$performance$getEnt3.call(_g$performance$getEnt2, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
2613
2611
  // Source: comment on https://stackoverflow.com/a/53525488
2614
2612
  // don't use readyState, source: personal experience and comment on https://stackoverflow.com/a/28093606
2615
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Loading gtag after " + (page_hasnt_loaded ? "pageload and " : "") + "3s" + (strict ? "" : ", but setting up queues already"));
2613
+ $241f2f02cc612a49$export$de56f1198d121036("Loading gtag after " + (page_hasnt_loaded ? "pageload and " : "") + "3s" + (strict ? "" : ", but setting up queues already"));
2616
2614
  if (!strict) $3674b9afc9a63520$export$d031e55ccd4c52dc(GA_ID);
2617
2615
  if (page_hasnt_loaded) {
2618
2616
  const load_event = await new Promise(r => window.addEventListener("load", r, {
2619
2617
  once: true
2620
2618
  }));
2621
- (0, $241f2f02cc612a49$export$de56f1198d121036)("page has loaded", load_event);
2619
+ $241f2f02cc612a49$export$de56f1198d121036("page has loaded", load_event);
2622
2620
  }
2623
2621
  await new Promise(r => setTimeout(r, 3000));
2624
2622
  const script = document.createElement("script"),
@@ -2626,9 +2624,9 @@ const $3674b9afc9a63520$export$f3354ec2ce95ebd9 = /*@__PURE__*/(0, $5e1f45affc1d
2626
2624
  script.async = true;
2627
2625
  script.src = "https://www.googletagmanager.com/gtag/js?id=" + GA_ID;
2628
2626
  head.appendChild(script);
2629
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Loading gtag now", script);
2627
+ $241f2f02cc612a49$export$de56f1198d121036("Loading gtag now", script);
2630
2628
  });
2631
- const $3674b9afc9a63520$export$d031e55ccd4c52dc = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(GA_ID => {
2629
+ const $3674b9afc9a63520$export$d031e55ccd4c52dc = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(GA_ID => {
2632
2630
  if (process.env.GTAG === "false") return;
2633
2631
  $3674b9afc9a63520$var$g.dataLayer || ($3674b9afc9a63520$var$g.dataLayer = []);
2634
2632
  function gtag() {
@@ -2639,9 +2637,9 @@ const $3674b9afc9a63520$export$d031e55ccd4c52dc = /*@__PURE__*/(0, $5e1f45affc1d
2639
2637
  $3674b9afc9a63520$var$g.gtag("config", GA_ID, {
2640
2638
  "send_page_view": false
2641
2639
  });
2642
- (0, $241f2f02cc612a49$export$de56f1198d121036)("configuring gtag with", GA_ID);
2640
+ $241f2f02cc612a49$export$de56f1198d121036("configuring gtag with", GA_ID);
2643
2641
  });
2644
- const $3674b9afc9a63520$export$7babcd5d4056b2ca = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async (raw_displays, get_product_id, more) => {
2642
+ const $3674b9afc9a63520$export$7babcd5d4056b2ca = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async (raw_displays, get_product_id, more) => {
2645
2643
  const displays = raw_displays; // gtag tracking is "obsolete" and we don't expect any customers using something else than LegacyDisplay to use it
2646
2644
  if (process.env.GTAG === "false") return;
2647
2645
  if (process.env.GTAG_VIEW === "false") return;
@@ -2663,12 +2661,12 @@ const $3674b9afc9a63520$export$7babcd5d4056b2ca = /*@__PURE__*/(0, $5e1f45affc1d
2663
2661
  const gtag_args = ["event", "view_item_list", {
2664
2662
  "items": gtag_items.slice(i, i + max_products_per_request)
2665
2663
  }];
2666
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Sending product view to gtag", gtag_args);
2664
+ $241f2f02cc612a49$export$de56f1198d121036("Sending product view to gtag", gtag_args);
2667
2665
  $3674b9afc9a63520$var$g.gtag(...gtag_args);
2668
2666
  }
2669
- } else (0, $241f2f02cc612a49$export$c2363754d4758444)("not sending gtag tracking as there is no gtag");
2667
+ } else $241f2f02cc612a49$export$c2363754d4758444("not sending gtag tracking as there is no gtag");
2670
2668
  });
2671
- const $3674b9afc9a63520$export$f522672c9379e339 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async (product_id, index, more) => {
2669
+ const $3674b9afc9a63520$export$f522672c9379e339 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async (product_id, index, more) => {
2672
2670
  if (process.env.GTAG === "false") return;
2673
2671
  if (process.env.GTAG_EVENT_CONSENT_LEVEL !== undefined && !(await $3674b9afc9a63520$var$can_send_gtag_events(product_id, index, more))) return;
2674
2672
  if (typeof $3674b9afc9a63520$var$g.gtag == "function") {
@@ -2681,17 +2679,17 @@ const $3674b9afc9a63520$export$f522672c9379e339 = /*@__PURE__*/(0, $5e1f45affc1d
2681
2679
  ...more
2682
2680
  }]
2683
2681
  }];
2684
- (0, $241f2f02cc612a49$export$de56f1198d121036)("calling gtag with arguments", gtag_args);
2682
+ $241f2f02cc612a49$export$de56f1198d121036("calling gtag with arguments", gtag_args);
2685
2683
  return $3674b9afc9a63520$var$g.gtag(...gtag_args);
2686
- } else (0, $241f2f02cc612a49$export$c2363754d4758444)("not sending gtag tracking as there is no gtag");
2684
+ } else $241f2f02cc612a49$export$c2363754d4758444("not sending gtag tracking as there is no gtag");
2687
2685
  });
2688
- const $3674b9afc9a63520$export$f75172d2e289cd02 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(action => {
2686
+ const $3674b9afc9a63520$export$f75172d2e289cd02 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(action => {
2689
2687
  if (process.env.GA === "false") return;
2690
2688
  if (typeof $3674b9afc9a63520$var$g.ga != "function") {
2691
- (0, $241f2f02cc612a49$export$c2363754d4758444)("Not sending to ga as there is no ga");
2689
+ $241f2f02cc612a49$export$c2363754d4758444("Not sending to ga as there is no ga");
2692
2690
  return;
2693
2691
  }
2694
- (0, $241f2f02cc612a49$export$de56f1198d121036)("sending", action, "to GA");
2692
+ $241f2f02cc612a49$export$de56f1198d121036("sending", action, "to GA");
2695
2693
  return $3674b9afc9a63520$var$g.ga("depict.send", {
2696
2694
  hitType: "event",
2697
2695
  eventCategory: "Depict",
@@ -2700,36 +2698,36 @@ const $3674b9afc9a63520$export$f75172d2e289cd02 = /*@__PURE__*/(0, $5e1f45affc1d
2700
2698
  nonInteraction: 1
2701
2699
  });
2702
2700
  });
2703
- const $3674b9afc9a63520$export$ac7296527cb52311 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(GAID => {
2701
+ const $3674b9afc9a63520$export$ac7296527cb52311 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(GAID => {
2704
2702
  if (process.env.GA === "false") return;
2705
2703
  if (!GAID) {
2706
- (0, $241f2f02cc612a49$export$c2363754d4758444)(new Error("No GAID specified"));
2704
+ $241f2f02cc612a49$export$c2363754d4758444(new Error("No GAID specified"));
2707
2705
  return;
2708
2706
  }
2709
2707
  if (typeof $3674b9afc9a63520$var$g.ga != "function") {
2710
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Creating GA queue");
2711
- (0, $799496226e956169$export$674d8cd8b6868154)();
2708
+ $241f2f02cc612a49$export$de56f1198d121036("Creating GA queue");
2709
+ $799496226e956169$export$674d8cd8b6868154();
2712
2710
  }
2713
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Creating ga with GA-ID", GAID);
2711
+ $241f2f02cc612a49$export$de56f1198d121036("Creating ga with GA-ID", GAID);
2714
2712
  $3674b9afc9a63520$var$g.ga("create", GAID, "auto", "depict");
2715
2713
  $3674b9afc9a63520$export$f3354ec2ce95ebd9(GAID, false);
2716
2714
  });
2717
- const $3674b9afc9a63520$export$127751e82111fcf = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => $3674b9afc9a63520$export$f75172d2e289cd02("rec_bar_click"));
2718
- const $3674b9afc9a63520$export$bf205937e5e012cb = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => $3674b9afc9a63520$export$f75172d2e289cd02("add_to_cart_after_rec_bar_click"));
2715
+ const $3674b9afc9a63520$export$127751e82111fcf = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => $3674b9afc9a63520$export$f75172d2e289cd02("rec_bar_click"));
2716
+ const $3674b9afc9a63520$export$bf205937e5e012cb = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => $3674b9afc9a63520$export$f75172d2e289cd02("add_to_cart_after_rec_bar_click"));
2719
2717
  async function $3674b9afc9a63520$var$can_send_gtag_events() {
2720
2718
  const required_consent_level = process.env.GTAG_LOADING_CONSENT_LEVEL;
2721
2719
  if (required_consent_level !== undefined) return true; // just in case
2722
- const ipns = process.env.CONSENT_FRAMEWORK == "optanon" ? (0, $d4217f56717a3207$export$7e4427e80d5fc619)() : (0, $be5f485da4e3f813$export$8827362e5e938d26)();
2720
+ const ipns = process.env.CONSENT_FRAMEWORK == "optanon" ? $d4217f56717a3207$export$7e4427e80d5fc619() : $be5f485da4e3f813$export$8827362e5e938d26();
2723
2721
  for (var _len = arguments.length, stuff_to_log = new Array(_len), _key = 0; _key < _len; _key++) stuff_to_log[_key] = arguments[_key];
2724
2722
  for await (const consent_obj of ipns) {
2725
2723
  const can_send = consent_obj[required_consent_level];
2726
- if (!can_send) (0, $241f2f02cc612a49$export$de56f1198d121036)("Got no consent for", required_consent_level, "not sending gtag event for", ...stuff_to_log);
2724
+ if (!can_send) $241f2f02cc612a49$export$de56f1198d121036("Got no consent for", required_consent_level, "not sending gtag event for", ...stuff_to_log);
2727
2725
  return can_send;
2728
2726
  }
2729
2727
  }
2730
2728
  let $1013f2e568f87406$var$existing_style_tag;
2731
2729
  let $1013f2e568f87406$var$reactions_in_last_s = 0;
2732
- const $1013f2e568f87406$export$59ba1eb2c083f0cd = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async css => {
2730
+ const $1013f2e568f87406$export$59ba1eb2c083f0cd = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async css => {
2733
2731
  const style_tag = await ($1013f2e568f87406$var$existing_style_tag || ($1013f2e568f87406$var$existing_style_tag = (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element("head").then(head => {
2734
2732
  const tag = document.createElement("style");
2735
2733
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onremoved(
@@ -2739,16 +2737,16 @@ const $1013f2e568f87406$export$59ba1eb2c083f0cd = /*@__PURE__*/(0, $5e1f45affc1d
2739
2737
  // just make sure to not freak out if it's already been added again
2740
2738
  return;
2741
2739
  if ($1013f2e568f87406$var$reactions_in_last_s >= 10) {
2742
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(new Error("Someone removed our styling but insists on it (10 removals in previous second). Giving up \uD83D\uDE2B"), "error");
2740
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(new Error("Someone removed our styling but insists on it (10 removals in previous second). Giving up \uD83D\uDE2B"), "error");
2743
2741
  return;
2744
2742
  }
2745
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Someone removed our styling \uD83D\uDE24, reinserting", eoe);
2743
+ $241f2f02cc612a49$export$de56f1198d121036("Someone removed our styling \uD83D\uDE24, reinserting", eoe);
2746
2744
  $1013f2e568f87406$var$reactions_in_last_s++;
2747
2745
  setTimeout(() => $1013f2e568f87406$var$reactions_in_last_s--, 1000);
2748
2746
  document.head.append(tag); // we're sure that head exists now since we inserted it there previously
2749
2747
  });
2750
2748
 
2751
- (0, $241f2f02cc612a49$export$de56f1198d121036)("inserting", tag, "into", head);
2749
+ $241f2f02cc612a49$export$de56f1198d121036("inserting", tag, "into", head);
2752
2750
  return head.appendChild(tag);
2753
2751
  })));
2754
2752
  style_tag.append(css);
@@ -2758,10 +2756,10 @@ const $1013f2e568f87406$export$a96c18473f2af463 = (tenant, selector, validator)
2758
2756
  let {
2759
2757
  element: element
2760
2758
  } = _ref;
2761
- return (0, $bd7c9f254946941d$export$2c34560c3749dc63)(element, tenant.get_product_id, (p_id, r_id, was_unmatching, event) => {
2759
+ return $bd7c9f254946941d$export$2c34560c3749dc63(element, tenant.get_product_id, (p_id, r_id, was_unmatching, event) => {
2762
2760
  if (typeof validator === "function" && !validator(event)) return;
2763
- if (!was_unmatching) (0, $3674b9afc9a63520$export$bf205937e5e012cb)();
2764
- (0, $d5f7352b58e0d737$export$9028351cb994757e)({
2761
+ if (!was_unmatching) $3674b9afc9a63520$export$bf205937e5e012cb();
2762
+ $d5f7352b58e0d737$export$9028351cb994757e({
2765
2763
  ...tenant,
2766
2764
  product_id: p_id,
2767
2765
  ...(was_unmatching ? {
@@ -2780,11 +2778,11 @@ const $1013f2e568f87406$export$a4f97b27a0592e6c = url => {
2780
2778
  const $1013f2e568f87406$export$692b606677218a16 = callback => {
2781
2779
  if (document.depictwashere) {
2782
2780
  if (process.env.BUILD_TARGET === "dev") {
2783
- (0, $241f2f02cc612a49$export$de56f1198d121036)("HMR tried to rerun us, reloading page");
2781
+ $241f2f02cc612a49$export$de56f1198d121036("HMR tried to rerun us, reloading page");
2784
2782
  /* eslint-disable no-self-assign */
2785
2783
  location.href = location.href;
2786
2784
  }
2787
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Script has already ran", document.currentScript, "is exiting");
2785
+ $241f2f02cc612a49$export$de56f1198d121036("Script has already ran", document.currentScript, "is exiting");
2788
2786
  return;
2789
2787
  }
2790
2788
  if (process.env.BUILD_TARGET === "dev") /* eslint-disable no-console */console.clear = new Proxy(console.clear, {
@@ -2807,26 +2805,26 @@ function $1013f2e568f87406$export$328e81c44cddf3c0(callback, get_market, support
2807
2805
  let localstorage_override;
2808
2806
  const query_param_override = new URLSearchParams(location.search).get("depict-override-market");
2809
2807
  if (query_param_override !== null) {
2810
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Found ?depict-override-market=".concat(query_param_override, ". Using that as the market"));
2808
+ $241f2f02cc612a49$export$de56f1198d121036("Found ?depict-override-market=".concat(query_param_override, ". Using that as the market"));
2811
2809
  get_market = () => query_param_override;
2812
2810
  localStorage.setItem("depict-override-market", query_param_override);
2813
2811
  } else if ((localstorage_override = localStorage.getItem("depict-override-market")) !== null) {
2814
- (0, $241f2f02cc612a49$export$de56f1198d121036)('Found depict-override-market="'.concat(localstorage_override, '" in localStorage. Using that as the market'));
2812
+ $241f2f02cc612a49$export$de56f1198d121036('Found depict-override-market="'.concat(localstorage_override, '" in localStorage. Using that as the market'));
2815
2813
  get_market = () => localstorage_override;
2816
2814
  }
2817
2815
  }
2818
2816
  const market = await get_market();
2819
2817
  if (supported_markets.includes(market)) {
2820
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Initializing with market: ".concat(market));
2818
+ $241f2f02cc612a49$export$de56f1198d121036("Initializing with market: ".concat(market));
2821
2819
  return callback(market).catch((0, $b000f5ef6ce456d9$export$8048b892d651b310));
2822
2820
  } else if (unsupported_markets.includes(market)) {
2823
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Unsupported market: ".concat(market, ". Exiting..."));
2821
+ $241f2f02cc612a49$export$de56f1198d121036("Unsupported market: ".concat(market, ". Exiting..."));
2824
2822
  return;
2825
2823
  } else if (process.env.DEBUG === "true" && location.host.endsWith(".demo.depict.ai") && preferred_demo_market) {
2826
- (0, $241f2f02cc612a49$export$de56f1198d121036)("On demosite with default market override. Setting market to ".concat(preferred_demo_market));
2824
+ $241f2f02cc612a49$export$de56f1198d121036("On demosite with default market override. Setting market to ".concat(preferred_demo_market));
2827
2825
  return callback(preferred_demo_market).catch((0, $b000f5ef6ce456d9$export$8048b892d651b310));
2828
2826
  } else {
2829
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(new Error('Unknown market: "'.concat(market, '". Exiting...')));
2827
+ $b000f5ef6ce456d9$export$8048b892d651b310(new Error('Unknown market: "'.concat(market, '". Exiting...')));
2830
2828
  return;
2831
2829
  }
2832
2830
  });
@@ -2847,9 +2845,9 @@ class $095a7d035ba7d7a7$export$8d42ce4827f43582 {
2847
2845
  this.TYPE = options.TYPE || "normal";
2848
2846
  this.catchify = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9);
2849
2847
  this.err = (0, $b000f5ef6ce456d9$export$8048b892d651b310);
2850
- if (this.GA_ID) (0, $3674b9afc9a63520$export$ac7296527cb52311)(this.GA_ID);
2848
+ if (this.GA_ID) $3674b9afc9a63520$export$ac7296527cb52311(this.GA_ID);
2851
2849
  // https://gitlab.com/depict-ai/depict.ai/-/merge_requests/2318#note_927887712
2852
- this.get_product_id = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(function () {
2850
+ this.get_product_id = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(function () {
2853
2851
  const id = options.get_product_id(...arguments);
2854
2852
  if (id instanceof Promise) return id.then(id => id || "");
2855
2853
  return id || "";
@@ -2861,9 +2859,9 @@ class $095a7d035ba7d7a7$export$8d42ce4827f43582 {
2861
2859
  this.type = this.TYPE;
2862
2860
  this.catchify = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9);
2863
2861
  this.err = (0, $b000f5ef6ce456d9$export$8048b892d651b310);
2864
- if (localStorage.getItem("highlight-depict") === "true") (0, $1013f2e568f87406$export$59ba1eb2c083f0cd)(".depict { background: #f00a !important; }");
2862
+ if (localStorage.getItem("highlight-depict") === "true") $1013f2e568f87406$export$59ba1eb2c083f0cd(".depict { background: #f00a !important; }");
2865
2863
  if ((_options$pageview_tra = options.pageview_tracking) !== null && _options$pageview_tra !== void 0 ? _options$pageview_tra : true) (async () => {
2866
- (0, $0897f35c3b3fbbc4$export$f7cb1bd47199ec38)({
2864
+ $0897f35c3b3fbbc4$export$f7cb1bd47199ec38({
2867
2865
  market: this.market,
2868
2866
  tenant: this.tenant,
2869
2867
  get_product_id: this.get_product_id
@@ -2890,7 +2888,7 @@ const $f2fce07b3a330e05$var$get_index_in_children_of_el = el => {
2890
2888
  var _el$parentElement;
2891
2889
  return [...((el === null || el === void 0 ? void 0 : (_el$parentElement = el.parentElement) === null || _el$parentElement === void 0 ? void 0 : _el$parentElement.children) || [])].indexOf(el);
2892
2890
  };
2893
- const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async (options, gtag_options) => {
2891
+ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async (options, gtag_options) => {
2894
2892
  var _options$t;
2895
2893
  const {
2896
2894
  product_selector: product_selector,
@@ -2927,14 +2925,14 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
2927
2925
  const gtag_view_product_ids = {};
2928
2926
  // Page view
2929
2927
  if (t instanceof (0, $095a7d035ba7d7a7$export$8d42ce4827f43582)) (async () => {
2930
- (0, $0897f35c3b3fbbc4$export$eee4c4d924348b05)({
2928
+ $0897f35c3b3fbbc4$export$eee4c4d924348b05({
2931
2929
  tenant: t.tenant,
2932
2930
  market: t.market,
2933
2931
  product_id: await t.get_product_id()
2934
2932
  });
2935
2933
  })();
2936
2934
  // Product card
2937
- const add_tracking_to_product_card = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async _ref => {
2935
+ const add_tracking_to_product_card = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async _ref => {
2938
2936
  var _Object$keys;
2939
2937
  let {
2940
2938
  element: elem
@@ -2946,7 +2944,7 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
2946
2944
  // Impression tracking
2947
2945
  if (impression_tracking && !impression_tracked_els.has(elem)) {
2948
2946
  impression_tracked_els.add(elem);
2949
- (0, $e89a1d249db21af0$export$37125ccc5dd98050)({
2947
+ $e89a1d249db21af0$export$37125ccc5dd98050({
2950
2948
  element: elem,
2951
2949
  data: {
2952
2950
  recommendation_id: data.recommendation_id,
@@ -2979,12 +2977,12 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
2979
2977
  index: index
2980
2978
  })));
2981
2979
  } catch (e) {
2982
- (0, $241f2f02cc612a49$export$c2363754d4758444)("Something went wrong on a product with multiple ga_ids", e);
2980
+ $241f2f02cc612a49$export$c2363754d4758444("Something went wrong on a product with multiple ga_ids", e);
2983
2981
  }
2984
2982
  }
2985
2983
  if (typeof BroadcastChannel == "function") {
2986
2984
  // right click and mouse wheel click tracking
2987
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(e => (0, $df87ac5a30f7baac$export$8f66c4c7fb96eda2)(e, data.product_id));
2985
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(e => $df87ac5a30f7baac$export$8f66c4c7fb96eda2(e, data.product_id));
2988
2986
  elem.addEventListener("contextmenu", handler);
2989
2987
  elem.addEventListener("auxclick", e => e.button === 1 && handler(e)); // actual wheel click - some mouses / OS:es also dispatch auxclick on rightclick
2990
2988
  }
@@ -2992,14 +2990,14 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
2992
2990
  click_tracking: {
2993
2991
  if (click_tracked_els.has(elem)) break click_tracking;
2994
2992
  click_tracked_els.add(elem);
2995
- elem.addEventListener("click", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
2993
+ elem.addEventListener("click", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
2996
2994
  const product_id = data.product_id || "DNT";
2997
2995
  const recommendation_id = data.recommendation_id || "not_depict";
2998
2996
  localStorage.setItem("depict_attribution_".concat(product_id), recommendation_id);
2999
2997
  const index = $f2fce07b3a330e05$var$get_index_in_children_of_el(elem);
3000
2998
  const click_location = prefix + (index + 1);
3001
- (0, $3674b9afc9a63520$export$127751e82111fcf)();
3002
- (0, $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb)({
2999
+ $3674b9afc9a63520$export$127751e82111fcf();
3000
+ $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb({
3003
3001
  ...(options.t || {}),
3004
3002
  ...options,
3005
3003
  ...data,
@@ -3013,7 +3011,7 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3013
3011
  list_name: gtag_list_name,
3014
3012
  ...gtag_options
3015
3013
  };
3016
- (0, $3674b9afc9a63520$export$f522672c9379e339)(data.product_id, index, gtag_options_with_click_location);
3014
+ $3674b9afc9a63520$export$f522672c9379e339(data.product_id, index, gtag_options_with_click_location);
3017
3015
  try {
3018
3016
  const to_iterate = [];
3019
3017
  if (data.ga_product_id) {
@@ -3021,10 +3019,10 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3021
3019
  to_iterate.push(...((_data$ga_product_id$t = (_data$ga_product_id$t2 = (_data$ga_product_id = data.ga_product_id).toString) === null || _data$ga_product_id$t2 === void 0 ? void 0 : _data$ga_product_id$t2.call(_data$ga_product_id).split(",")) !== null && _data$ga_product_id$t !== void 0 ? _data$ga_product_id$t : []));
3022
3020
  }
3023
3021
  to_iterate.push(...(data.ga_product_ids || []));
3024
- to_iterate.forEach(id => (0, $3674b9afc9a63520$export$f522672c9379e339)(id, index, gtag_options_with_click_location));
3022
+ to_iterate.forEach(id => $3674b9afc9a63520$export$f522672c9379e339(id, index, gtag_options_with_click_location));
3025
3023
  } catch (e) {
3026
- (0, $241f2f02cc612a49$export$c2363754d4758444)("Something went wrong when sending gtag click tracking on a product with multiple ga_ids");
3027
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "error");
3024
+ $241f2f02cc612a49$export$c2363754d4758444("Something went wrong when sending gtag click tracking on a product with multiple ga_ids");
3025
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error");
3028
3026
  }
3029
3027
  }
3030
3028
  }), {
@@ -3054,8 +3052,8 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3054
3052
  });
3055
3053
  element.dispatchEvent(click);
3056
3054
  }
3057
- (0, $3674b9afc9a63520$export$bf205937e5e012cb)();
3058
- (0, $d5f7352b58e0d737$export$9028351cb994757e)({
3055
+ $3674b9afc9a63520$export$bf205937e5e012cb();
3056
+ $d5f7352b58e0d737$export$9028351cb994757e({
3059
3057
  ...(options.t || {}),
3060
3058
  ...options,
3061
3059
  ...data
@@ -3068,11 +3066,11 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3068
3066
  if (options.shade) $f2fce07b3a330e05$export$6ebd242c09192cec(elem);
3069
3067
  if (options.attempt_gtag_view_tracking && (_Object$keys = Object.keys(gtag_view_product_ids)) !== null && _Object$keys !== void 0 && _Object$keys.length)
3070
3068
  // setTimeout to batch the requests / put it all into one gtag view event
3071
- setTimeout((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
3069
+ setTimeout($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
3072
3070
  for (const key in gtag_view_product_ids) {
3073
3071
  const product_ids = gtag_view_product_ids[key];
3074
3072
  if (product_ids !== null && product_ids !== void 0 && product_ids.length) {
3075
- (0, $3674b9afc9a63520$export$7babcd5d4056b2ca)(product_ids, () => "", {
3073
+ $3674b9afc9a63520$export$7babcd5d4056b2ca(product_ids, () => "", {
3076
3074
  list_name: key,
3077
3075
  ...gtag_options
3078
3076
  });
@@ -3083,15 +3081,15 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3083
3081
  });
3084
3082
  if (typeof product_selector == "string") (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists(product_selector, add_tracking_to_product_card);else if (product_elements && typeof (product_elements === null || product_elements === void 0 ? void 0 : product_elements[Symbol.iterator]) == "function") for (const element of product_elements) add_tracking_to_product_card({
3085
3083
  element: element
3086
- });else (0, $241f2f02cc612a49$export$c2363754d4758444)(new Error("AIO can't find elements, try adding a selector or els")); // don't throw so that a2c tracking keeps working
3084
+ });else $241f2f02cc612a49$export$c2363754d4758444(new Error("AIO can't find elements, try adding a selector or els")); // don't throw so that a2c tracking keeps working
3087
3085
  // Page A2C button tracking
3088
3086
  const a2c_handler = _ref2 => {
3089
3087
  let {
3090
3088
  element: element
3091
3089
  } = _ref2;
3092
- (0, $bd7c9f254946941d$export$2c34560c3749dc63)(element, get_product_id, (product_id, recommendation_id, was_unmatching) => {
3093
- if (!was_unmatching) (0, $3674b9afc9a63520$export$bf205937e5e012cb)();
3094
- (0, $d5f7352b58e0d737$export$9028351cb994757e)({
3090
+ $bd7c9f254946941d$export$2c34560c3749dc63(element, get_product_id, (product_id, recommendation_id, was_unmatching) => {
3091
+ if (!was_unmatching) $3674b9afc9a63520$export$bf205937e5e012cb();
3092
+ $d5f7352b58e0d737$export$9028351cb994757e({
3095
3093
  ...(options.t || {}),
3096
3094
  ...options,
3097
3095
  product_id: product_id,
@@ -3106,7 +3104,7 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3106
3104
  };
3107
3105
  if (typeof a2c_selector == "string") (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists(a2c_selector, a2c_handler);else if (a2c_elements && typeof (a2c_elements === null || a2c_elements === void 0 ? void 0 : a2c_elements[Symbol.iterator]) == "function") for (const element of a2c_elements) a2c_handler({
3108
3106
  element: element
3109
- });else (0, $241f2f02cc612a49$export$c2363754d4758444)(new Error("Can't find a2c button, try adding a selector or els"));
3107
+ });else $241f2f02cc612a49$export$c2363754d4758444(new Error("Can't find a2c button, try adding a selector or els"));
3110
3108
  return {
3111
3109
  add_a2c_element: element => a2c_handler({
3112
3110
  element: element
@@ -3116,7 +3114,7 @@ const $f2fce07b3a330e05$export$29a6094e0bd8bc5f = /*@__PURE__*/(0, $5e1f45affc1d
3116
3114
  })
3117
3115
  };
3118
3116
  });
3119
- const $f2fce07b3a330e05$export$6ebd242c09192cec = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(element => {
3117
+ const $f2fce07b3a330e05$export$6ebd242c09192cec = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(element => {
3120
3118
  element.style.boxShadow = "rgba(255,0,0,0.5) 10px 10px 30px 40px";
3121
3119
  element.style.background = "rgba(255,0,0,0.5)";
3122
3120
  element.style.color = "white";
@@ -3166,18 +3164,18 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
3166
3164
  const response = await fetch(url, options);
3167
3165
  if (!response || !response.ok || response.status !== 200) {
3168
3166
  if (response.status === 422) {
3169
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($c95f8181bad32e8d$var$send_sentry_422)(response, (options === null || options === void 0 ? void 0 : options.body) || {}, stack);
3167
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9($c95f8181bad32e8d$var$send_sentry_422)(response, (options === null || options === void 0 ? void 0 : options.body) || {}, stack);
3170
3168
  has_succeeded = true;
3171
3169
  } else if (response.status === 404) has_succeeded = true;
3172
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Response not ok", response);
3170
+ $241f2f02cc612a49$export$de56f1198d121036("Response not ok", response);
3173
3171
  } else has_succeeded = true;
3174
3172
  result = response;
3175
3173
  } catch (error) {
3176
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Error while fetching: ", error, url, options);
3174
+ $241f2f02cc612a49$export$de56f1198d121036("Error while fetching: ", error, url, options);
3177
3175
  // Don't retry CORS
3178
3176
  if (error.message.includes("CORS") && error.name.includes("CORS")) has_succeeded = true;
3179
3177
  } finally {
3180
- if (!has_succeeded) await (0, $57642e3bf93ac1e7$export$5c069c93d2b7493f)(try_again_in_ms);
3178
+ if (!has_succeeded) await $57642e3bf93ac1e7$export$5c069c93d2b7493f(try_again_in_ms);
3181
3179
  try_again_in_ms = calculate_retry(try_again_in_ms);
3182
3180
  max_retries -= 1;
3183
3181
  }
@@ -3186,12 +3184,12 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
3186
3184
  async function $c95f8181bad32e8d$var$send_sentry_422(response, body, stack) {
3187
3185
  const msg = "Validation error: got 422 from API";
3188
3186
  const text = await response.clone().text();
3189
- (0, $241f2f02cc612a49$export$de56f1198d121036)(msg, "body", body, "response", response, "text", text, "stack", stack);
3187
+ $241f2f02cc612a49$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
3190
3188
  (0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).withScope(function (scope) {
3191
3189
  scope.setExtra("stack", stack);
3192
3190
  scope.setExtra("request_body", body);
3193
3191
  scope.setExtra("response", response);
3194
- scope.setExtra("serialized_response", (0, $d9aec442b12a1134$export$39d526a1194b6499)(response));
3192
+ scope.setExtra("serialized_response", $d9aec442b12a1134$export$39d526a1194b6499(response));
3195
3193
  scope.setExtra("response_text", text);
3196
3194
  scope.setLevel("error");
3197
3195
  this.captureException(new Error(msg));
@@ -3204,8 +3202,8 @@ async function $51dfcecbe05cc4e5$export$1bc0df10745d5412(t, options, headers) {
3204
3202
  }
3205
3203
  async function $51dfcecbe05cc4e5$export$d40679eb4cf32f09(t, options, headers) {
3206
3204
  let get_url = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : $51dfcecbe05cc4e5$var$default_get_fetch_url;
3207
- const dsid = (0, $d5f7352b58e0d737$export$6399bdb2291895e0)();
3208
- const session_id = options.session_id || (0, $d5f7352b58e0d737$export$61e7e1f11e96692f)();
3205
+ const dsid = $d5f7352b58e0d737$export$6399bdb2291895e0();
3206
+ const session_id = options.session_id || $d5f7352b58e0d737$export$61e7e1f11e96692f();
3209
3207
  const user_id = options.user_id || dsid;
3210
3208
  const body = {
3211
3209
  tenant: t.tenant,
@@ -3217,17 +3215,17 @@ async function $51dfcecbe05cc4e5$export$d40679eb4cf32f09(t, options, headers) {
3217
3215
  ...options
3218
3216
  };
3219
3217
  const endpoint = $51dfcecbe05cc4e5$var$get_fetch_endpoint_from_options(options);
3220
- return await (0, $c95f8181bad32e8d$export$bcd70d5ed1cf6313)(get_url(endpoint), {
3218
+ return await $c95f8181bad32e8d$export$bcd70d5ed1cf6313(get_url(endpoint), {
3221
3219
  body: JSON.stringify(body),
3222
3220
  ...(headers ? {
3223
3221
  headers: headers
3224
3222
  } : {}),
3225
3223
  method: "POST"
3226
3224
  }) // @ts-ignore
3227
- .then(r => r.json()).catch(e => (0, $241f2f02cc612a49$export$de56f1198d121036)("fetch_retry threw", e));
3225
+ .then(r => r.json()).catch(e => $241f2f02cc612a49$export$de56f1198d121036("fetch_retry threw", e));
3228
3226
  }
3229
3227
  function $51dfcecbe05cc4e5$var$default_get_fetch_url(type) {
3230
- return (0, $ea5707b8e7b350cf$export$fe609f0216e4ebef)("".concat((0, $9e4bee2e3b4b5753$export$362abebb4b313340), "/v2/recommend/products/").concat(type));
3228
+ return $ea5707b8e7b350cf$export$fe609f0216e4ebef("".concat((0, $9e4bee2e3b4b5753$export$362abebb4b313340), "/v2/recommend/products/").concat(type));
3231
3229
  }
3232
3230
  function $51dfcecbe05cc4e5$var$get_fetch_endpoint_from_options(options) {
3233
3231
  if (options["category_id"] !== undefined) return "category";else if (options["product_id"] !== undefined) return "product";else if (options["product_ids"] !== undefined) return "products";
@@ -3241,7 +3239,7 @@ async function $378c98788ab52b9c$export$a9fc160c5ed83bd7(t, rendering_options) {
3241
3239
  } = rendering_options;
3242
3240
  const displays = await $378c98788ab52b9c$var$make_sure_we_have_displays(t, rendering_options);
3243
3241
  if (!(displays !== null && displays !== void 0 && displays.length)) {
3244
- (0, $241f2f02cc612a49$export$de56f1198d121036)("RR: Got no displays for type " + type + ", can't recover.", t, rendering_options);
3242
+ $241f2f02cc612a49$export$de56f1198d121036("RR: Got no displays for type " + type + ", can't recover.", t, rendering_options);
3245
3243
  return {};
3246
3244
  }
3247
3245
  // return if too few displays
@@ -3252,19 +3250,19 @@ async function $378c98788ab52b9c$export$a9fc160c5ed83bd7(t, rendering_options) {
3252
3250
  if (!good_displays) return {};
3253
3251
  const processed_displays = await $378c98788ab52b9c$export$c22e610107c5a15a(t, rendering_options, displays);
3254
3252
  if (!processed_displays.length) {
3255
- (0, $241f2f02cc612a49$export$de56f1198d121036)("RR: No displays left after preprocessing");
3253
+ $241f2f02cc612a49$export$de56f1198d121036("RR: No displays left after preprocessing");
3256
3254
  return {};
3257
3255
  }
3258
3256
  const {
3259
3257
  template: template,
3260
3258
  post_processors = []
3261
3259
  } = rendering_options;
3262
- const caught_post_processing_functions = post_processors.map(post_pro => (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(post_pro));
3260
+ const caught_post_processing_functions = post_processors.map(post_pro => $5e1f45affc1d7def$export$b3bbfd758f11cfa9(post_pro));
3263
3261
  let a;
3264
- const caught_html2elems = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)((0, $652300c6621d5500$export$44951404cb8d0583));
3262
+ const caught_html2elems = $5e1f45affc1d7def$export$b3bbfd758f11cfa9((0, $652300c6621d5500$export$44951404cb8d0583));
3265
3263
  let output_elements;
3266
3264
  if (typeof template === "function") {
3267
- const caught_template = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(template);
3265
+ const caught_template = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(template);
3268
3266
  output_elements = (await Promise.allSettled(processed_displays.map(async (display, index) => {
3269
3267
  const event_listeners = [];
3270
3268
  let keep = true;
@@ -3285,7 +3283,7 @@ async function $378c98788ab52b9c$export$a9fc160c5ed83bd7(t, rendering_options) {
3285
3283
  return Array.from(post_processed_elements);
3286
3284
  }))).flat();
3287
3285
  if (!output_elements.length) {
3288
- (0, $241f2f02cc612a49$export$de56f1198d121036)("RR: No displays left after postprocessing/rendering");
3286
+ $241f2f02cc612a49$export$de56f1198d121036("RR: No displays left after postprocessing/rendering");
3289
3287
  return {};
3290
3288
  }
3291
3289
  return {
@@ -3352,7 +3350,7 @@ async function $378c98788ab52b9c$export$c22e610107c5a15a(t, rendering_options, d
3352
3350
  max_items: max_items,
3353
3351
  pre_processors = []
3354
3352
  } = rendering_options;
3355
- const caught_pre_processors = pre_processors.map(pre_pro => (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(pre_pro));
3353
+ const caught_pre_processors = pre_processors.map(pre_pro => $5e1f45affc1d7def$export$b3bbfd758f11cfa9(pre_pro));
3356
3354
  const processed_displays = [];
3357
3355
  for (let i = 0; i < displays.length; i++) {
3358
3356
  // classic for loop is both fast and can be stopped with break
@@ -3391,7 +3389,7 @@ class $378c98788ab52b9c$export$da854280fb61cd32 {
3391
3389
  async function $378c98788ab52b9c$var$check_displays(displays, min_items_to_run) {
3392
3390
  // don't run if too few recs
3393
3391
  if (min_items_to_run && displays.length < min_items_to_run) {
3394
- (0, $241f2f02cc612a49$export$de56f1198d121036)("RR: Got too few displays, exiting");
3392
+ $241f2f02cc612a49$export$de56f1198d121036("RR: Got too few displays, exiting");
3395
3393
  return false;
3396
3394
  }
3397
3395
  return true;
@@ -3408,7 +3406,7 @@ async function $378c98788ab52b9c$var$make_sure_we_have_displays(t, rendering_opt
3408
3406
  ...(rendering_options.extra_api_options || {})
3409
3407
  };
3410
3408
  for (const key of ["product_ids", "category_id", "product_id"]) if (key in rendering_options) get_displays_options[key] = rendering_options[key];
3411
- return await (0, $51dfcecbe05cc4e5$export$1bc0df10745d5412)(t, get_displays_options, rendering_options.headers || {}).catch(t.err);
3409
+ return await $51dfcecbe05cc4e5$export$1bc0df10745d5412(t, get_displays_options, rendering_options.headers || {}).catch(t.err);
3412
3410
  }
3413
3411
  async function $ddeca43328b507f6$export$c83d8da642b5104a(t, options, GWVM_opts) {
3414
3412
  const {
@@ -3428,8 +3426,8 @@ async function $ddeca43328b507f6$export$c83d8da642b5104a(t, options, GWVM_opts)
3428
3426
  only_full_rows = false,
3429
3427
  should_preload = true
3430
3428
  } = GWVM_opts;
3431
- const outer_els = typeof container_template === "string" ? [...(0, $652300c6621d5500$export$44951404cb8d0583)(container_template)] : container_template;
3432
- const [root] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(outer_els, container_selector);
3429
+ const outer_els = typeof container_template === "string" ? [...$652300c6621d5500$export$44951404cb8d0583(container_template)] : container_template;
3430
+ const [root] = $652300c6621d5500$export$5e63aea0cac01fa0(outer_els, container_selector);
3433
3431
  const cut_off_promise_obj = /*@__PURE__*/new (0, $4c6e595091defcd9$export$32ccf3a614c84258)();
3434
3432
  const i_observer = new IntersectionObserver(catchify($ddeca43328b507f6$var$observer_callback));
3435
3433
  let cut_off_point = 0;
@@ -3472,8 +3470,8 @@ async function $ddeca43328b507f6$export$c83d8da642b5104a(t, options, GWVM_opts)
3472
3470
  return rendering_results;
3473
3471
  }
3474
3472
  root.append(...rendered_elements);
3475
- const load_more_cont = (0, $652300c6621d5500$export$d3e2a0560cbf4787)('<div class="load-more-container"></div>');
3476
- const button_element = button instanceof Element ? button : (0, $652300c6621d5500$export$d3e2a0560cbf4787)('<button class="load_more">'.concat(button || "Visa mer", "</button>"));
3473
+ const load_more_cont = $652300c6621d5500$export$d3e2a0560cbf4787('<div class="load-more-container"></div>');
3474
+ const button_element = button instanceof Element ? button : $652300c6621d5500$export$d3e2a0560cbf4787('<button class="load_more">'.concat(button || "Visa mer", "</button>"));
3477
3475
  button_element.addEventListener("click", load_more);
3478
3476
  load_more_cont.append(button_element);
3479
3477
  root.after(load_more_cont);
@@ -3494,7 +3492,7 @@ async function $ddeca43328b507f6$export$c83d8da642b5104a(t, options, GWVM_opts)
3494
3492
  load_more_observer.observe(load_more_cont);
3495
3493
  }
3496
3494
  if (title) {
3497
- const [title_el] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(outer_els, title_selector || "h1.title");
3495
+ const [title_el] = $652300c6621d5500$export$5e63aea0cac01fa0(outer_els, title_selector || "h1.title");
3498
3496
  if (title_el) {
3499
3497
  if (title instanceof Element) title_el.replaceWith(title);else title_el.innerText = title;
3500
3498
  } else if (is_debug) {
@@ -3535,7 +3533,7 @@ info, cut_off_point, i_observer, cut_off_promise_obj, load_more) {
3535
3533
  const extras = info.extras || (info.extras = {});
3536
3534
  extras.load_more || (extras.load_more = load_more);
3537
3535
  extras.load_more_ipo || (extras.load_more_ipo = cut_off_promise_obj);
3538
- (0, $652300c6621d5500$export$5e63aea0cac01fa0)(elements_arr, "img:not(.filler):not(.ngl):not(.nolazy)").forEach(image => {
3536
+ $652300c6621d5500$export$5e63aea0cac01fa0(elements_arr, "img:not(.filler):not(.ngl):not(.nolazy)").forEach(image => {
3539
3537
  var _image$src, _image$dataset, _image$src2, _image$src2$substr;
3540
3538
  // "img" also selects "image" in IE11 which can be an SVG element which doesn't have a src property, therefore optional chaining
3541
3539
  if ((image !== null && image !== void 0 && (_image$src = image.src) !== null && _image$src !== void 0 && _image$src.length || image !== null && image !== void 0 && (_image$dataset = image.dataset) !== null && _image$dataset !== void 0 && _image$dataset.src) && (image === null || image === void 0 ? void 0 : (_image$src2 = image.src) === null || _image$src2 === void 0 ? void 0 : (_image$src2$substr = _image$src2.substr) === null || _image$src2$substr === void 0 ? void 0 : _image$src2$substr.call(_image$src2, 0, 6)) != "data:") {
@@ -3601,7 +3599,7 @@ async function $a496a9038b9c02cf$export$41de2959a8dd405d(t, options, GWVM_opts)
3601
3599
  if (!parentElement) {
3602
3600
  var _result2, _rec;
3603
3601
  // first rec was removed
3604
- [rec] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.elements) || [], rec_selector);
3602
+ [rec] = $652300c6621d5500$export$5e63aea0cac01fa0(((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.elements) || [], rec_selector);
3605
3603
  parentElement = (_rec = rec) === null || _rec === void 0 ? void 0 : _rec.parentElement;
3606
3604
  if (!parentElement) throw new Error("Could not find element matching " + rec_selector + "to calculate width");
3607
3605
  }
@@ -3638,7 +3636,7 @@ async function $a496a9038b9c02cf$export$41de2959a8dd405d(t, options, GWVM_opts)
3638
3636
  }
3639
3637
  };
3640
3638
  // @ts-ignore
3641
- result = await (0, $ddeca43328b507f6$export$c83d8da642b5104a)(t, options, modified_GWVM_opts);
3639
+ result = await $ddeca43328b507f6$export$c83d8da642b5104a(t, options, modified_GWVM_opts);
3642
3640
  if (!((_result4 = result) !== null && _result4 !== void 0 && _result4.elements))
3643
3641
  // no chance in finding any elements, API didn't return recs
3644
3642
  return result;
@@ -3703,28 +3701,28 @@ async function $d3b90d5099bf2925$export$c0a4d29bc45a38c6(t, options, GWVM_opts)
3703
3701
  $d3b90d5099bf2925$var$observe_first_el_after_dominsertion(all_rendered_elements, elements, info.extras.load_more);
3704
3702
  return elements;
3705
3703
  }];
3706
- return await (0, $a496a9038b9c02cf$export$41de2959a8dd405d)(t, options, options_for_auto_gwvm, {
3704
+ return await $a496a9038b9c02cf$export$41de2959a8dd405d(t, options, options_for_auto_gwvm, {
3707
3705
  rec_selector: rec_selector
3708
3706
  });
3709
3707
  }
3710
3708
  function $d3b90d5099bf2925$var$observe_first_el_after_dominsertion(all_rendered_elements, elements, load_more) {
3711
3709
  const element = $d3b90d5099bf2925$var$find_html_element(elements);
3712
3710
  if (!element) {
3713
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Infinite scroll won't work, couldn't find element to observe", elements);
3711
+ $241f2f02cc612a49$export$de56f1198d121036("Infinite scroll won't work, couldn't find element to observe", elements);
3714
3712
  return;
3715
3713
  }
3716
- (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element(element).then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
3714
+ (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element(element).then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
3717
3715
  $d3b90d5099bf2925$var$find_last_el_and_observe(all_rendered_elements, load_more);
3718
3716
  }));
3719
3717
  }
3720
3718
  function $d3b90d5099bf2925$var$find_last_el_and_observe(all_rendered_elements, load_more) {
3721
3719
  const last_visible_el = $d3b90d5099bf2925$var$find_last_visible(all_rendered_elements);
3722
3720
  if (!last_visible_el) return;
3723
- const i_o = new IntersectionObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(records => {
3721
+ const i_o = new IntersectionObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(records => {
3724
3722
  for (const record of records) if (record.isIntersecting) {
3725
- (0, $241f2f02cc612a49$export$de56f1198d121036)("loading more because of", record);
3723
+ $241f2f02cc612a49$export$de56f1198d121036("loading more because of", record);
3726
3724
  load_more();
3727
- setTimeout((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($d3b90d5099bf2925$var$find_last_el_and_observe), 0, all_rendered_elements, load_more);
3725
+ setTimeout($5e1f45affc1d7def$export$b3bbfd758f11cfa9($d3b90d5099bf2925$var$find_last_el_and_observe), 0, all_rendered_elements, load_more);
3728
3726
  i_o.disconnect();
3729
3727
  }
3730
3728
  }));
@@ -3742,26 +3740,26 @@ function $d3b90d5099bf2925$var$find_last_visible(bunch_of_elements) {
3742
3740
  for (let i = 0; i < considered_elements.length; i++) {
3743
3741
  const respected_element = considered_elements[i];
3744
3742
  if (!respected_element) {
3745
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Infinite scroll error: couldn't find last visible element", bunch_of_elements);
3743
+ $241f2f02cc612a49$export$de56f1198d121036("Infinite scroll error: couldn't find last visible element", bunch_of_elements);
3746
3744
  return;
3747
3745
  }
3748
3746
  if (respected_element.offsetParent === null) {
3749
3747
  if (!i) {
3750
3748
  // if index is 0 and we are not visible don't return the element at index -1 from the array - shit will hit the fan. Return the first one and everything should work out fine
3751
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Inf scroll: No elements visible, ", considered_elements, "will attach to first el", respected_element);
3749
+ $241f2f02cc612a49$export$de56f1198d121036("Inf scroll: No elements visible, ", considered_elements, "will attach to first el", respected_element);
3752
3750
  return considered_elements[i];
3753
3751
  }
3754
3752
  return considered_elements[i - 1];
3755
3753
  }
3756
3754
  }
3757
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Seems like all elements are loaded");
3755
+ $241f2f02cc612a49$export$de56f1198d121036("Seems like all elements are loaded");
3758
3756
  }
3759
3757
  async function $3ee6c00e6df1008f$export$9eae832ae57fbf(t, css, extra_html) {
3760
3758
  const head = await (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element("head"),
3761
3759
  {
3762
3760
  dlog: dlog
3763
3761
  } = t,
3764
- elems = (0, $652300c6621d5500$export$44951404cb8d0583)('<style type="text/css">'.concat(css, "</style>") + (extra_html ? extra_html : ""));
3762
+ elems = $652300c6621d5500$export$44951404cb8d0583('<style type="text/css">'.concat(css, "</style>") + (extra_html ? extra_html : ""));
3765
3763
  dlog("inserting", ...elems, "into", head);
3766
3764
  head.append(...elems);
3767
3765
  }
@@ -3795,7 +3793,7 @@ async function $e64690bc3a7de2b1$var$placeholder_worker(placeholder_elements, fi
3795
3793
  }
3796
3794
  } else {
3797
3795
  await sanit_el_if_needed();
3798
- placeholder_elements[0].addEventListener("placeholder_switch", (0, $9c44a7238815fa47$export$535946eb77c946dd)(async e => {
3796
+ placeholder_elements[0].addEventListener("placeholder_switch", $9c44a7238815fa47$export$535946eb77c946dd(async e => {
3799
3797
  const new_state = e.detail.state;
3800
3798
  if (state != new_state) {
3801
3799
  await sanit_el_if_needed();
@@ -3815,7 +3813,7 @@ async function $e64690bc3a7de2b1$var$decide_direction_and_switch(placeholder_ele
3815
3813
  if (switch_to_final) $e64690bc3a7de2b1$var$switch_elements(placeholder_elements, final_elements);else $e64690bc3a7de2b1$var$switch_elements(final_elements, placeholder_elements);
3816
3814
  }
3817
3815
  function $e64690bc3a7de2b1$var$switch_elements(from, to) {
3818
- if (!from.length || !to.length) (0, $241f2f02cc612a49$export$c2363754d4758444)("Cannot switch elements as from or to is empty", from, to);
3816
+ if (!from.length || !to.length) $241f2f02cc612a49$export$c2363754d4758444("Cannot switch elements as from or to is empty", from, to);
3819
3817
  from[0].replaceWith(...to);
3820
3818
  for (let i = 1; i < from.length; i++) from[i].remove();
3821
3819
  }
@@ -3848,11 +3846,11 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
3848
3846
  // it allows us to just add elements to the observed container and have them added to the elements array if they or their children match the selector
3849
3847
  if (!this.container && !override_container) return;
3850
3848
  const container = override_container !== null && override_container !== void 0 ? override_container : this.container;
3851
- const mutation_observer = new MutationObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(mutations => {
3849
+ const mutation_observer = new MutationObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(mutations => {
3852
3850
  for (let i = 0; i < mutations.length; i++) {
3853
- const matching_added_els = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(mutations[i].addedNodes, this.selector);
3851
+ const matching_added_els = $652300c6621d5500$export$5e63aea0cac01fa0(mutations[i].addedNodes, this.selector);
3854
3852
  if (matching_added_els.length) {
3855
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)("New elements", matching_added_els, " matching selector", this.selector, "were aded to", container, "lazyloading…");
3853
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036("New elements", matching_added_els, " matching selector", this.selector, "were aded to", container, "lazyloading…");
3856
3854
  this.lazyfinder.elements.push(...matching_added_els);
3857
3855
  matching_added_els.forEach($5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_initiate_new_image, $5f31622ffb78bc10$var$_initiate_new_image2).bind(this));
3858
3856
  }
@@ -3917,15 +3915,15 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
3917
3915
  }
3918
3916
  }
3919
3917
  },
3920
- load: (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async image => {
3918
+ load: $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async image => {
3921
3919
  for (const element of [...$5f31622ffb78bc10$export$e4741190ccada479(image, "source"), image]) {
3922
3920
  var _document, _document$body, _document$body$contai, _document$body2, _element$dataset, _element$dataset$src, _element$dataset2, _element$dataset2$src;
3923
3921
  if ("loaded" in element) {
3924
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(class_this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)(element, "is already loading, not loading again");
3922
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(class_this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036(element, "is already loading, not loading again");
3925
3923
  continue;
3926
3924
  }
3927
3925
  if (((_document = document) === null || _document === void 0 ? void 0 : (_document$body = _document.body) === null || _document$body === void 0 ? void 0 : (_document$body$contai = (_document$body2 = _document$body).contains) === null || _document$body$contai === void 0 ? void 0 : _document$body$contai.call(_document$body2, image)) === false) {
3928
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(class_this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)(element, "has been removed from the DOM, can't load");
3926
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(class_this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036(element, "has been removed from the DOM, can't load");
3929
3927
  const {
3930
3928
  elements: elements
3931
3929
  } = class_this.lazyfinder;
@@ -3936,13 +3934,13 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
3936
3934
  const has_src = (_element$dataset = element.dataset) === null || _element$dataset === void 0 ? void 0 : (_element$dataset$src = _element$dataset.src) === null || _element$dataset$src === void 0 ? void 0 : _element$dataset$src.length;
3937
3935
  const has_srcset = (_element$dataset2 = element.dataset) === null || _element$dataset2 === void 0 ? void 0 : (_element$dataset2$src = _element$dataset2.srcset) === null || _element$dataset2$src === void 0 ? void 0 : _element$dataset2$src.length;
3938
3936
  if (has_src || has_srcset) {
3939
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(class_this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)("Loading", element);
3937
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(class_this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036("Loading", element);
3940
3938
  element.loaded = false;
3941
3939
  // here it's of importance that we give the browser the srcset first, otherwise it (safari) might start loading the fallback src at first
3942
3940
  if (has_srcset) {
3943
3941
  // in Safari for some reason sometimes the .sizes attribute isn't set yet, like in https://www.notion.so/depictai/Pictures-in-recommendations-are-not-displayed-88e30e0f98de421e94b9eb273aea21dc. In that case, wait up to one event loop execution for it
3944
3942
  if (!element.sizes) await new Promise(resolve => {
3945
- const mo = new MutationObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(_records => {
3943
+ const mo = new MutationObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(_records => {
3946
3944
  if (element.sizes) {
3947
3945
  resolve();
3948
3946
  mo.disconnect();
@@ -3952,7 +3950,7 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
3952
3950
  attributes: true,
3953
3951
  attributeFilter: ["sizes"]
3954
3952
  });
3955
- setTimeout((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
3953
+ setTimeout($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
3956
3954
  resolve(); // in case ResizeObserver doesn't set .sizes or something
3957
3955
  mo.disconnect();
3958
3956
  }));
@@ -3969,7 +3967,7 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
3969
3967
  var _element$src, _element$src$startsWi, _element$src2;
3970
3968
  if ((_element$src = element.src) !== null && _element$src !== void 0 && (_element$src$startsWi = (_element$src2 = _element$src).startsWith) !== null && _element$src$startsWi !== void 0 && _element$src$startsWi.call(_element$src2, "data:")) continue;
3971
3969
  // This happens quite often for reasons unknown. One day we will figure out why, or replace this lazyloader with a new one/native.
3972
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(class_this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)("Cannot load", element, "as it doesn't have a data-src or data-srcset attribute");
3970
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(class_this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036("Cannot load", element, "as it doesn't have a data-src or data-srcset attribute");
3973
3971
  }
3974
3972
  }
3975
3973
  }),
@@ -3991,20 +3989,20 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
3991
3989
  this.selector = selector;
3992
3990
  this.only_load_intersecting = only_load_intersecting;
3993
3991
  this.ignore_data_urls = ignore_data_urls;
3994
- if (verbose) (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $5f31622ffb78bc10$var$_verbose, true);
3992
+ if (verbose) $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $5f31622ffb78bc10$var$_verbose, true);
3995
3993
  // make sure we have a fully-fledged lazyfinder but still allow max customizability
3996
- this.lazyfinder = lazyfinder || (lazyfinder = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_default_lazyfinder));
3997
- (_lazyfinder = lazyfinder).unload || (_lazyfinder.unload = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_default_lazyfinder).unload);
3998
- (_lazyfinder2 = lazyfinder).load || (_lazyfinder2.load = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_default_lazyfinder).load);
3999
- if (!("elements" in lazyfinder)) Object.defineProperty(lazyfinder, "elements", Object.getOwnPropertyDescriptor((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_default_lazyfinder), "elements"));
3994
+ this.lazyfinder = lazyfinder || (lazyfinder = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_default_lazyfinder));
3995
+ (_lazyfinder = lazyfinder).unload || (_lazyfinder.unload = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_default_lazyfinder).unload);
3996
+ (_lazyfinder2 = lazyfinder).load || (_lazyfinder2.load = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_default_lazyfinder).load);
3997
+ if (!("elements" in lazyfinder)) Object.defineProperty(lazyfinder, "elements", Object.getOwnPropertyDescriptor($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_default_lazyfinder), "elements"));
4000
3998
  $5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_unload_images_and_add_load_listeners, $5f31622ffb78bc10$var$_unload_images_and_add_load_listeners2).call(this);
4001
3999
  // check if we need to branch off to an async function and wait for the elements being in the DOM
4002
4000
  if (wait_for_dominsertion) {
4003
- const caught_start_obs = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_start_observer, $5f31622ffb78bc10$var$_start_observer2)).bind(this);
4001
+ const caught_start_obs = $5e1f45affc1d7def$export$b3bbfd758f11cfa9($5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_start_observer, $5f31622ffb78bc10$var$_start_observer2)).bind(this);
4004
4002
  if (wait_for_dominsertion instanceof Promise) wait_for_dominsertion.then(caught_start_obs);else {
4005
4003
  var _lazyfinder3, _lazyfinder3$elements;
4006
4004
  const el_to_listen_on = container || ((_lazyfinder3 = lazyfinder) === null || _lazyfinder3 === void 0 ? void 0 : (_lazyfinder3$elements = _lazyfinder3.elements) === null || _lazyfinder3$elements === void 0 ? void 0 : _lazyfinder3$elements[0]);
4007
- if (el_to_listen_on instanceof Node) (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element(el_to_listen_on).then(caught_start_obs);else (0, $241f2f02cc612a49$export$de56f1198d121036)("Could not find element to attach event listener to", () => {}); // right click function in inspector and select "jump to definition" to get here
4005
+ if (el_to_listen_on instanceof Node) (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element(el_to_listen_on).then(caught_start_obs);else $241f2f02cc612a49$export$de56f1198d121036("Could not find element to attach event listener to", () => {}); // right click function in inspector and select "jump to definition" to get here
4008
4006
  }
4009
4007
  } else $5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_start_observer, $5f31622ffb78bc10$var$_start_observer2).call(this);
4010
4008
  }
@@ -4012,23 +4010,23 @@ class $5f31622ffb78bc10$export$3be7054c61590ee3 {
4012
4010
  function $5f31622ffb78bc10$var$_initiate_new_image2(image) {
4013
4011
  var _this$intersection_ob, _this$intersection_ob2;
4014
4012
  if (image.loaded === true || image.loaded === false) {
4015
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)("Not lazyloading", image, "because it was loaded before or is loading");
4013
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036("Not lazyloading", image, "because it was loaded before or is loading");
4016
4014
  return;
4017
4015
  }
4018
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(this.lazyfinder.unload)(image);
4016
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(this.lazyfinder.unload)(image);
4019
4017
  $5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_add_load_event_listener, $5f31622ffb78bc10$var$_add_load_event_listener2).call(this, image);
4020
4018
  (_this$intersection_ob = this.intersection_observer) === null || _this$intersection_ob === void 0 || (_this$intersection_ob2 = _this$intersection_ob.observe) === null || _this$intersection_ob2 === void 0 || _this$intersection_ob2.call(_this$intersection_ob, image); // observe if observer already exists, otherwise it won't and start_observer will do it
4021
4019
  }
4022
4020
 
4023
4021
  function $5f31622ffb78bc10$var$_add_load_event_listener2(element) {
4024
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(e => {
4022
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(e => {
4025
4023
  // cookiebot triggers random "load" events on all elements which make the images load before the intersection observer has started
4026
4024
  if (!element.src.length) {
4027
- (0, $241f2f02cc612a49$export$de56f1198d121036)("ignoring load event", e, "because image doesn't have a src");
4025
+ $241f2f02cc612a49$export$de56f1198d121036("ignoring load event", e, "because image doesn't have a src");
4028
4026
  return;
4029
4027
  }
4030
4028
  if (this.ignore_data_urls && element.src.startsWith("data:")) {
4031
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_verbose)) (0, $241f2f02cc612a49$export$de56f1198d121036)("Ignoring load event", e, "because ignore_data_urls is truthy");
4029
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_verbose)) $241f2f02cc612a49$export$de56f1198d121036("Ignoring load event", e, "because ignore_data_urls is truthy");
4032
4030
  return;
4033
4031
  }
4034
4032
  element.removeEventListener("load", handler);
@@ -4042,7 +4040,7 @@ function $5f31622ffb78bc10$var$_unload_images_and_add_load_listeners2() {
4042
4040
  elements: elements,
4043
4041
  unload: unload
4044
4042
  } = this.lazyfinder;
4045
- const caught_unload = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(unload);
4043
+ const caught_unload = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(unload);
4046
4044
  for (let i = 0; i < elements.length; i++) {
4047
4045
  caught_unload(elements[i]);
4048
4046
  $5f31622ffb78bc10$var$_classPrivateMethodGet(this, $5f31622ffb78bc10$var$_add_load_event_listener, $5f31622ffb78bc10$var$_add_load_event_listener2).call(this, elements[i]);
@@ -4051,7 +4049,7 @@ function $5f31622ffb78bc10$var$_unload_images_and_add_load_listeners2() {
4051
4049
  function $5f31622ffb78bc10$var$_start_observer2() {
4052
4050
  let observers_first_call = true;
4053
4051
  if (!this.intersection_observer) {
4054
- this.intersection_observer = new IntersectionObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(entries => {
4052
+ this.intersection_observer = new IntersectionObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(entries => {
4055
4053
  let any_intersected = false;
4056
4054
  for (let i = 0; i < entries.length; i++) {
4057
4055
  const entry = entries[i];
@@ -4061,13 +4059,13 @@ function $5f31622ffb78bc10$var$_start_observer2() {
4061
4059
  if (target.loaded == null)
4062
4060
  // if it's false it's already loading
4063
4061
  this.lazyfinder.load(target);
4064
- if (observers_first_call) (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_images_on_first_page).push(target);
4062
+ if (observers_first_call) $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_images_on_first_page).push(target);
4065
4063
  }
4066
4064
  }
4067
4065
  if (any_intersected) observers_first_call = false;
4068
4066
  }), {
4069
4067
  root: this.container,
4070
- threshold: (0, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129)(3)
4068
+ threshold: $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129(3)
4071
4069
  });
4072
4070
  const {
4073
4071
  elements: elements
@@ -4085,8 +4083,8 @@ function $5f31622ffb78bc10$var$_check_if_first_page_has_loaded2() {
4085
4083
  var _elements$length;
4086
4084
  if (elements[i].loaded === true) loaded_images.push(elements[i]);else not_loaded_or_loading.push(elements[i]);
4087
4085
  }
4088
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $5f31622ffb78bc10$var$_images_on_first_page).length >= loaded_images.length) {
4089
- const caught_loading_fin = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(this.lazyfinder.load);
4086
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $5f31622ffb78bc10$var$_images_on_first_page).length >= loaded_images.length) {
4087
+ const caught_loading_fin = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(this.lazyfinder.load);
4090
4088
  for (let i = 0; i < not_loaded_or_loading.length; i++) caught_loading_fin(not_loaded_or_loading[i]);
4091
4089
  }
4092
4090
  }
@@ -4112,9 +4110,9 @@ function $5f31622ffb78bc10$export$e4741190ccada479(element, selector) {
4112
4110
  }
4113
4111
  return result;
4114
4112
  }
4115
- const $a285401a927e4306$export$eb0b9ed911409b57 = (callback, element) => ((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(callback)(element), element);
4113
+ const $a285401a927e4306$export$eb0b9ed911409b57 = (callback, element) => ($5e1f45affc1d7def$export$b3bbfd758f11cfa9(callback)(element), element);
4116
4114
  function $a285401a927e4306$export$f63fcc839cb0f734(event, handler, element) {
4117
- element.addEventListener(event, (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(handler));
4115
+ element.addEventListener(event, $5e1f45affc1d7def$export$b3bbfd758f11cfa9(handler));
4118
4116
  return element;
4119
4117
  }
4120
4118
  const $a285401a927e4306$export$22a65337c1b43b1f = /* @PURE */classes => classes.filter(c => c !== undefined).join(" ");
@@ -4147,7 +4145,7 @@ const $0f650018c3cbc373$export$34b9dba7ce09269b = (tag, _ref, _unknown) => {
4147
4145
  const element = is_svg ? document.createElementNS(namespace, tag) : document.createElement(tag);
4148
4146
  for (const key in props) {
4149
4147
  const value = props[key];
4150
- if (key === "onClick") element.addEventListener("click", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(value));else if (key.startsWith("xlink:"))
4148
+ if (key === "onClick") element.addEventListener("click", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(value));else if (key.startsWith("xlink:"))
4151
4149
  // https://stackoverflow.com/a/23142447
4152
4150
  // https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course
4153
4151
  element.setAttributeNS("http://www.w3.org/1999/xlink", key, value);else if (key == "xmlns" || key.startsWith("xmlns:")) element.setAttributeNS("http://www.w3.org/2000/xmlns/", key, value);else if (key.startsWith("xml:")) element.setAttributeNS("http://www.w3.org/XML/1998/namespace", key, value);else element.setAttribute(key, props[key]);
@@ -4199,7 +4197,7 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4199
4197
  var _target$parentElement;
4200
4198
  const {
4201
4199
  el_to_number_: el_to_number_
4202
- } = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache);
4200
+ } = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache);
4203
4201
  const value_from_cache = el_to_number_.get(target);
4204
4202
  if (value_from_cache) return value_from_cache;
4205
4203
  const children = target === null || target === void 0 ? void 0 : (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.children;
@@ -4219,7 +4217,7 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4219
4217
  }
4220
4218
  get index_of_last_element() {
4221
4219
  var _classPrivateFieldGet2, _classPrivateFieldGet3, _this$first_intersect, _this$first_intersect2, _this$first_intersect3, _this$first_intersect4, _this$first_intersect5, _classPrivateFieldGet4, _classPrivateFieldGet5, _classPrivateFieldGet6;
4222
- return (_classPrivateFieldGet3 = (_classPrivateFieldGet2 = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache)).last_el_) !== null && _classPrivateFieldGet3 !== void 0 ? _classPrivateFieldGet3 : _classPrivateFieldGet2.last_el_ = ((_this$first_intersect = (_this$first_intersect2 = this.first_intersecting) === null || _this$first_intersect2 === void 0 ? void 0 : (_this$first_intersect3 = _this$first_intersect2.target) === null || _this$first_intersect3 === void 0 ? void 0 : (_this$first_intersect4 = _this$first_intersect3.parentElement) === null || _this$first_intersect4 === void 0 ? void 0 : (_this$first_intersect5 = _this$first_intersect4.children) === null || _this$first_intersect5 === void 0 ? void 0 : _this$first_intersect5.length) !== null && _this$first_intersect !== void 0 ? _this$first_intersect : (_classPrivateFieldGet4 = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements)) === null || _classPrivateFieldGet4 === void 0 ? void 0 : (_classPrivateFieldGet5 = _classPrivateFieldGet4.sliding_el_) === null || _classPrivateFieldGet5 === void 0 ? void 0 : (_classPrivateFieldGet6 = _classPrivateFieldGet5.children) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.length) - 1;
4220
+ return (_classPrivateFieldGet3 = (_classPrivateFieldGet2 = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache)).last_el_) !== null && _classPrivateFieldGet3 !== void 0 ? _classPrivateFieldGet3 : _classPrivateFieldGet2.last_el_ = ((_this$first_intersect = (_this$first_intersect2 = this.first_intersecting) === null || _this$first_intersect2 === void 0 ? void 0 : (_this$first_intersect3 = _this$first_intersect2.target) === null || _this$first_intersect3 === void 0 ? void 0 : (_this$first_intersect4 = _this$first_intersect3.parentElement) === null || _this$first_intersect4 === void 0 ? void 0 : (_this$first_intersect5 = _this$first_intersect4.children) === null || _this$first_intersect5 === void 0 ? void 0 : _this$first_intersect5.length) !== null && _this$first_intersect !== void 0 ? _this$first_intersect : (_classPrivateFieldGet4 = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements)) === null || _classPrivateFieldGet4 === void 0 ? void 0 : (_classPrivateFieldGet5 = _classPrivateFieldGet4.sliding_el_) === null || _classPrivateFieldGet5 === void 0 ? void 0 : (_classPrivateFieldGet6 = _classPrivateFieldGet5.children) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.length) - 1;
4223
4221
  }
4224
4222
  get currently_selected() {
4225
4223
  // this tries to be what distance_to assumes is the current card when converting a relative offset into an absolute one, available for plugins
@@ -4229,7 +4227,7 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4229
4227
  visible_sizes: visible_sizes
4230
4228
  } = this;
4231
4229
  let left_offset = 0;
4232
- const rectangle_of_container = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_.getBoundingClientRect();
4230
+ const rectangle_of_container = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_.getBoundingClientRect();
4233
4231
  const middle_of_container = rectangle_of_container.width / 2;
4234
4232
  for (const [element, info] of visible_sizes) {
4235
4233
  left_offset += info.total_visible;
@@ -4240,11 +4238,11 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4240
4238
  } else return this.first_intersecting_index(0.9);
4241
4239
  }
4242
4240
  get visible_sizes() {
4243
- if ((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_cached_visible_sizes)) return (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_cached_visible_sizes);
4241
+ if ($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_cached_visible_sizes)) return $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_cached_visible_sizes);
4244
4242
  const visible_sizes = new Map();
4245
4243
  const visible_cards = Object.keys(this.intersecting_items_object).map(key => +key);
4246
4244
  const to_calculate = [visible_cards[0] - 1, ...visible_cards, visible_cards[visible_cards.length - 1] + 1].map(index => this.element_by_index(+index)).filter(e => e);
4247
- const root_el = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_;
4245
+ const root_el = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_;
4248
4246
  const root = root_el.getBoundingClientRect();
4249
4247
  const root_computed_style = getComputedStyle(root_el);
4250
4248
  const root_left = root.left - parseInt(root_computed_style.marginLeft);
@@ -4280,9 +4278,9 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4280
4278
  rect: card
4281
4279
  });
4282
4280
  }
4283
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $be288a83d9eabf2a$var$_cached_visible_sizes, visible_sizes);
4281
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $be288a83d9eabf2a$var$_cached_visible_sizes, visible_sizes);
4284
4282
  // let's assume we can cache this for a tick since the slider scrolls smoothly so there's no point in reading it instantly again and assuming a different value
4285
- queueMicrotask((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $be288a83d9eabf2a$var$_cached_visible_sizes, undefined)));
4283
+ queueMicrotask($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $be288a83d9eabf2a$var$_cached_visible_sizes, undefined)));
4286
4284
  return visible_sizes;
4287
4285
  }
4288
4286
  get cards_fitting_in_viewport() {
@@ -4309,25 +4307,25 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4309
4307
  // }
4310
4308
  element_by_index(index) {
4311
4309
  var _ref;
4312
- const from_cache = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache).number_to_el_.get(index);
4310
+ const from_cache = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache).number_to_el_.get(index);
4313
4311
  if (from_cache) return from_cache;
4314
4312
  const {
4315
4313
  sliding_el_: sliding_el_
4316
- } = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements);
4314
+ } = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements);
4317
4315
  let maybe_el = (_ref = [...((sliding_el_ === null || sliding_el_ === void 0 ? void 0 : sliding_el_.children) || [])], _ref === void 0) ? void 0 : _ref[index];
4318
4316
  if (!maybe_el) {
4319
4317
  var _ref2, _this$first_intersect6, _this$first_intersect7, _this$first_intersect8;
4320
4318
  // this is for plantagen which has a double whammy slider
4321
4319
  maybe_el = (_ref2 = [...(((_this$first_intersect6 = this.first_intersecting) === null || _this$first_intersect6 === void 0 ? void 0 : (_this$first_intersect7 = _this$first_intersect6.target) === null || _this$first_intersect7 === void 0 ? void 0 : (_this$first_intersect8 = _this$first_intersect7.parentElement) === null || _this$first_intersect8 === void 0 ? void 0 : _this$first_intersect8.children) || [])], _ref2 === void 0) ? void 0 : _ref2[index];
4322
4320
  }
4323
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache).number_to_el_.set(index, maybe_el);
4321
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache).number_to_el_.set(index, maybe_el);
4324
4322
  return maybe_el;
4325
4323
  }
4326
4324
  invalidate_cache() {
4327
4325
  // dlog("Invalidating index cache");
4328
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache).number_to_el_.clear();
4329
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache).el_to_number_.clear();
4330
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_index_cache).last_el_ = undefined;
4326
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache).number_to_el_.clear();
4327
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache).el_to_number_.clear();
4328
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_index_cache).last_el_ = undefined;
4331
4329
  }
4332
4330
  scroll_to_rel(offset) {
4333
4331
  let harsh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -4359,39 +4357,39 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4359
4357
  $be288a83d9eabf2a$var$_classPrivateMethodInitSpec(this, $be288a83d9eabf2a$var$_hide_buttons_if_needed);
4360
4358
  $be288a83d9eabf2a$var$_classPrivateMethodInitSpec(this, $be288a83d9eabf2a$var$_observer_callback);
4361
4359
  $be288a83d9eabf2a$var$_classPrivateMethodInitSpec(this, $be288a83d9eabf2a$var$_observe_element);
4362
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "container", (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
4360
+ $76EG6$babelruntimehelpersdefineProperty(this, "container", $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
4363
4361
  class: "depict-slider depict"
4364
4362
  }));
4365
4363
  $be288a83d9eabf2a$var$_classPrivateFieldInitSpec(this, $be288a83d9eabf2a$var$_elements, {
4366
4364
  writable: true,
4367
4365
  value: {
4368
- sliding_el_: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
4366
+ sliding_el_: $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
4369
4367
  class: "sliding"
4370
4368
  }),
4371
- left_: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("button", {
4369
+ left_: $0f650018c3cbc373$export$34b9dba7ce09269b("button", {
4372
4370
  "aria-label": "Scroll left",
4373
4371
  class: "left d-navbutton",
4374
4372
  type: "button"
4375
4373
  }),
4376
- right_: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("button", {
4374
+ right_: $0f650018c3cbc373$export$34b9dba7ce09269b("button", {
4377
4375
  "aria-label": "Scroll right",
4378
4376
  class: "right d-navbutton",
4379
4377
  type: "button"
4380
4378
  })
4381
4379
  }
4382
4380
  });
4383
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "insert_here", (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_);
4384
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "intersecting_items_object", {});
4381
+ $76EG6$babelruntimehelpersdefineProperty(this, "insert_here", $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_);
4382
+ $76EG6$babelruntimehelpersdefineProperty(this, "intersecting_items_object", {});
4385
4383
  $be288a83d9eabf2a$var$_classPrivateFieldInitSpec(this, $be288a83d9eabf2a$var$_mutation_plugins, {
4386
4384
  writable: true,
4387
4385
  value: []
4388
4386
  });
4389
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "stepstoslide", 2);
4390
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "dist_to_hide_left", 10);
4391
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "dist_to_hide_right", 10);
4392
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "center_target", false);
4393
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "correct_bs_targets", true);
4394
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "on_elements_changed", [$be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_observe_element, $be288a83d9eabf2a$var$_observe_element2)]);
4387
+ $76EG6$babelruntimehelpersdefineProperty(this, "stepstoslide", 2);
4388
+ $76EG6$babelruntimehelpersdefineProperty(this, "dist_to_hide_left", 10);
4389
+ $76EG6$babelruntimehelpersdefineProperty(this, "dist_to_hide_right", 10);
4390
+ $76EG6$babelruntimehelpersdefineProperty(this, "center_target", false);
4391
+ $76EG6$babelruntimehelpersdefineProperty(this, "correct_bs_targets", true);
4392
+ $76EG6$babelruntimehelpersdefineProperty(this, "on_elements_changed", [$be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_observe_element, $be288a83d9eabf2a$var$_observe_element2)]);
4395
4393
  $be288a83d9eabf2a$var$_classPrivateFieldInitSpec(this, $be288a83d9eabf2a$var$_index_cache, {
4396
4394
  writable: true,
4397
4395
  value: {
@@ -4404,30 +4402,30 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
4404
4402
  writable: true,
4405
4403
  value: void 0
4406
4404
  });
4407
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "observer", new IntersectionObserver($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_observer_callback, $be288a83d9eabf2a$var$_observer_callback2).bind(this), {
4408
- root: (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_,
4409
- threshold: (0, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129)(100)
4405
+ $76EG6$babelruntimehelpersdefineProperty(this, "observer", new IntersectionObserver($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_observer_callback, $be288a83d9eabf2a$var$_observer_callback2).bind(this), {
4406
+ root: $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_,
4407
+ threshold: $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129(100)
4410
4408
  }));
4411
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, "observe", this.observer.observe.bind(this.observer));
4409
+ $76EG6$babelruntimehelpersdefineProperty(this, "observe", this.observer.observe.bind(this.observer));
4412
4410
  dist_to_hide_left && (this.dist_to_hide_left = dist_to_hide_left);
4413
4411
  dist_to_hide_right && (this.dist_to_hide_right = dist_to_hide_right);
4414
4412
  stepstoslide && (this.stepstoslide = stepstoslide);
4415
4413
  center_target && (this.center_target = true);
4416
- _mutation_plugins2 && (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $be288a83d9eabf2a$var$_mutation_plugins, _mutation_plugins2);
4414
+ _mutation_plugins2 && $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $be288a83d9eabf2a$var$_mutation_plugins, _mutation_plugins2);
4417
4415
  correct_bs_targets == false && (this.correct_bs_targets = correct_bs_targets);
4418
4416
  if (button_elems) {
4419
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).right_ = button_elems.right;
4420
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).left_ = button_elems.left;
4417
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).right_ = button_elems.right;
4418
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).left_ = button_elems.left;
4421
4419
  }
4422
- if (button_contents !== null && button_contents !== void 0 && button_contents.right) (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).right_.append(...button_contents.right);
4423
- if (button_contents !== null && button_contents !== void 0 && button_contents.left) (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).left_.append(...button_contents.left);
4424
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_create_element_structure, $be288a83d9eabf2a$var$_create_element_structure2)).call(this, autoinvalidate_cache);
4420
+ if (button_contents !== null && button_contents !== void 0 && button_contents.right) $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).right_.append(...button_contents.right);
4421
+ if (button_contents !== null && button_contents !== void 0 && button_contents.left) $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).left_.append(...button_contents.left);
4422
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_create_element_structure, $be288a83d9eabf2a$var$_create_element_structure2)).call(this, autoinvalidate_cache);
4425
4423
  // @ts-ignore
4426
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_.slider = this; // dunno if this is dumb? So far nordicagolf/kondomvaruhuset depend on it
4424
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_.slider = this; // dunno if this is dumb? So far nordicagolf/kondomvaruhuset depend on it
4427
4425
  // plugin functionality i.e. for dots
4428
4426
  const constructor_args = arguments;
4429
4427
  constructor_plugins === null || constructor_plugins === void 0 || (_constructor_plugins$ = constructor_plugins.forEach) === null || _constructor_plugins$ === void 0 || _constructor_plugins$.call(constructor_plugins, mplugin => {
4430
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(mplugin).call(this, constructor_args);
4428
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(mplugin).call(this, constructor_args);
4431
4429
  });
4432
4430
  }
4433
4431
  }
@@ -4437,7 +4435,7 @@ function $be288a83d9eabf2a$var$_observe_element2(records) {
4437
4435
  } = this;
4438
4436
  const {
4439
4437
  sliding_el_: sliding_el_
4440
- } = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements);
4438
+ } = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements);
4441
4439
  for (const record of records) {
4442
4440
  for (const node of record.addedNodes) if (node instanceof Element && node.parentElement === sliding_el_) observer.observe(node);
4443
4441
  for (const node of record.removedNodes) if (node instanceof Element && node.parentElement === sliding_el_) observer.unobserve(node);
@@ -4453,16 +4451,16 @@ function $be288a83d9eabf2a$var$_observer_callback2(entries) {
4453
4451
  const rec_idx = this.get_index_of_element(target);
4454
4452
  if (entry.intersectionRatio <= 0) {
4455
4453
  for (const key in intersecting_items) if (intersecting_items[key].target === target) delete intersecting_items[key];
4456
- } else if (rec_idx != null) intersecting_items[rec_idx] = entry;else (0, $241f2f02cc612a49$export$de56f1198d121036)("Could not find index of", target, "ignoring observer record");
4454
+ } else if (rec_idx != null) intersecting_items[rec_idx] = entry;else $241f2f02cc612a49$export$de56f1198d121036("Could not find index of", target, "ignoring observer record");
4457
4455
  }
4458
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_hide_buttons_if_needed, $be288a83d9eabf2a$var$_hide_buttons_if_needed2)).call(this);
4459
- const mutation_plugins = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_mutation_plugins);
4460
- for (let i = 0; i < mutation_plugins.length; i++) (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(mutation_plugins[i]).call(this, entries, intersecting_items);
4456
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_hide_buttons_if_needed, $be288a83d9eabf2a$var$_hide_buttons_if_needed2)).call(this);
4457
+ const mutation_plugins = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_mutation_plugins);
4458
+ for (let i = 0; i < mutation_plugins.length; i++) $5e1f45affc1d7def$export$b3bbfd758f11cfa9(mutation_plugins[i]).call(this, entries, intersecting_items);
4461
4459
  }
4462
4460
  function $be288a83d9eabf2a$var$_hide_buttons_if_needed2() {
4463
4461
  var _is$;
4464
4462
  // it should be correct that this routine is using sliding_el because for the buttons the position of the first and last element to the main container is relevant
4465
- const cont = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_,
4463
+ const cont = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_,
4466
4464
  lastel = this.index_of_last_element,
4467
4465
  cont_rect = cont.getBoundingClientRect(),
4468
4466
  is = this.intersecting_items_object;
@@ -4476,17 +4474,17 @@ function $be288a83d9eabf2a$var$_hide_buttons_if_needed2() {
4476
4474
  // slider is empty
4477
4475
  dist_to_left = 0;
4478
4476
  }
4479
- if (dist_to_left >= -this.dist_to_hide_left) $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).left_, 0);else $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).left_, 1);
4480
- const rightmost_edge_of_last_card = Math.floor((this.element_by_index(lastel) || (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_).getBoundingClientRect().right);
4477
+ if (dist_to_left >= -this.dist_to_hide_left) $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).left_, 0);else $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).left_, 1);
4478
+ const rightmost_edge_of_last_card = Math.floor((this.element_by_index(lastel) || $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_).getBoundingClientRect().right);
4481
4479
  const rightmost_edge_of_container = cont_rect.right,
4482
4480
  dist_to_right = rightmost_edge_of_last_card - rightmost_edge_of_container;
4483
4481
  // dlog("dist to right", dist_to_right, "dist to left", dist_to_left);
4484
- if (dist_to_right <= this.dist_to_hide_right) $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).right_, 0);else $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).right_, 1);
4482
+ if (dist_to_right <= this.dist_to_hide_right) $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).right_, 0);else $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_visibility, $be288a83d9eabf2a$var$_visibility2).call(this, $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).right_, 1);
4485
4483
  }
4486
4484
  function $be288a83d9eabf2a$var$_distance_to2(offset) {
4487
4485
  let is_absolute = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4488
4486
  const intersecting_items = this.intersecting_items_object; // the privateFieldGet babel polyfill isn't very fast so for extra snappyness I won't get it multiple times
4489
- (0, $241f2f02cc612a49$export$de56f1198d121036)("intersecting_items", intersecting_items);
4487
+ $241f2f02cc612a49$export$de56f1198d121036("intersecting_items", intersecting_items);
4490
4488
  // I know I could have made this.intersecting_items_object a simple array instead, but maybe someone needs the boundingrect information in it some day. Also I thought I could use it, but it isn't always up to date due to the intersection observer not triggering on every scrolling move.
4491
4489
  // Now, some months later: the triggering frequency can easily be adjusted, the problem is that the observer doesn't trigger on hidden elements, meaning when scrolling left we don't have information about the hidden element's position from the observer
4492
4490
  let target; // absolute index to focus on
@@ -4496,7 +4494,7 @@ function $be288a83d9eabf2a$var$_distance_to2(offset) {
4496
4494
  } = this;
4497
4495
  if (currently_selected == null) {
4498
4496
  // if for whatever reason we don't find a card, don't do anything
4499
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(new Error("can't find card in center"), "error");
4497
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(new Error("can't find card in center"), "error");
4500
4498
  return 0;
4501
4499
  }
4502
4500
  target = currently_selected + offset;
@@ -4511,38 +4509,38 @@ function $be288a83d9eabf2a$var$_distance_to2(offset) {
4511
4509
  }
4512
4510
  target = Math.floor(target);
4513
4511
  let dist;
4514
- (0, $241f2f02cc612a49$export$de56f1198d121036)("trying to focus target", target);
4512
+ $241f2f02cc612a49$export$de56f1198d121036("trying to focus target", target);
4515
4513
  let target_element = this.element_by_index(target);
4516
4514
  if (!target_element) {
4517
4515
  if (this.correct_bs_targets) {
4518
4516
  if (isNaN(target)) {
4519
- (0, $241f2f02cc612a49$export$de56f1198d121036)("target is not a number", target, "can't correct");
4517
+ $241f2f02cc612a49$export$de56f1198d121036("target is not a number", target, "can't correct");
4520
4518
  return 0;
4521
4519
  } else if (target < 0) {
4522
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Target", target, "is < 0, correcting to 0 because correct_bs_targets is enabled");
4520
+ $241f2f02cc612a49$export$de56f1198d121036("Target", target, "is < 0, correcting to 0 because correct_bs_targets is enabled");
4523
4521
  target = 0;
4524
4522
  target_element = this.element_by_index(target);
4525
4523
  if (!target_element) {
4526
- (0, $241f2f02cc612a49$export$de56f1198d121036)("can't find element 0");
4524
+ $241f2f02cc612a49$export$de56f1198d121036("can't find element 0");
4527
4525
  return 0;
4528
4526
  }
4529
4527
  } else {
4530
- (0, $241f2f02cc612a49$export$de56f1198d121036)("target", target, "does not exist, correcting to last sliding element \uD83E\uDD2D");
4528
+ $241f2f02cc612a49$export$de56f1198d121036("target", target, "does not exist, correcting to last sliding element \uD83E\uDD2D");
4531
4529
  target = this.index_of_last_element;
4532
4530
  target_element = this.element_by_index(target);
4533
4531
  if (!target_element) {
4534
- (0, $241f2f02cc612a49$export$de56f1198d121036)("last element", target, "could not be found");
4532
+ $241f2f02cc612a49$export$de56f1198d121036("last element", target, "could not be found");
4535
4533
  return 0;
4536
4534
  }
4537
4535
  }
4538
4536
  } else {
4539
- (0, $241f2f02cc612a49$export$de56f1198d121036)("target is bs, can't find", target, "by either data-index attribute or as child of", (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_);
4537
+ $241f2f02cc612a49$export$de56f1198d121036("target is bs, can't find", target, "by either data-index attribute or as child of", $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_);
4540
4538
  return 0;
4541
4539
  }
4542
4540
  }
4543
4541
  const rectangle_of_target = target_element.getBoundingClientRect();
4544
4542
  const distance_of_li = rectangle_of_target.left + target % 1 * rectangle_of_target.width;
4545
- const rectangle_of_container = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_.getBoundingClientRect();
4543
+ const rectangle_of_container = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_.getBoundingClientRect();
4546
4544
  const distance_of_container = rectangle_of_container.left;
4547
4545
  dist = distance_of_li - distance_of_container;
4548
4546
  if (this.center_target) try {
@@ -4562,7 +4560,7 @@ function $be288a83d9eabf2a$var$_distance_to2(offset) {
4562
4560
  dist += biggest_card * num_cards_off_target;
4563
4561
  }
4564
4562
  } catch (e) {
4565
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(e);
4563
+ $b000f5ef6ce456d9$export$8048b892d651b310(e);
4566
4564
  }
4567
4565
  return dist;
4568
4566
  }
@@ -4571,12 +4569,12 @@ function $be288a83d9eabf2a$var$_visibility2(element, should_be_visible) {
4571
4569
  if (should_be_visible && ishidden) element.classList.remove("hidden");else if (!should_be_visible && !ishidden) element.classList.add("hidden");
4572
4570
  }
4573
4571
  function $be288a83d9eabf2a$var$_setup_buttons2() {
4574
- const goleft = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_scroll_to, $be288a83d9eabf2a$var$_scroll_to2).call(this, -this.stepstoslide, false, -510));
4575
- const goright = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_scroll_to, $be288a83d9eabf2a$var$_scroll_to2).call(this, this.stepstoslide, false, 510));
4572
+ const goleft = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_scroll_to, $be288a83d9eabf2a$var$_scroll_to2).call(this, -this.stepstoslide, false, -510));
4573
+ const goright = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_scroll_to, $be288a83d9eabf2a$var$_scroll_to2).call(this, this.stepstoslide, false, 510));
4576
4574
  const {
4577
4575
  right_: right_,
4578
4576
  left_: left_
4579
- } = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements);
4577
+ } = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements);
4580
4578
  left_.addEventListener("click", goleft);
4581
4579
  right_.addEventListener("click", goright);
4582
4580
  [left_, right_].forEach(button => {
@@ -4585,12 +4583,12 @@ function $be288a83d9eabf2a$var$_setup_buttons2() {
4585
4583
  }
4586
4584
  function $be288a83d9eabf2a$var$_create_element_structure2() {
4587
4585
  let autoinvalidate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
4588
- const es = (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements);
4586
+ const es = $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements);
4589
4587
  $be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_setup_buttons, $be288a83d9eabf2a$var$_setup_buttons2).call(this);
4590
4588
  this.container.append(es.left_, es.right_);
4591
4589
  this.container.append(es.sliding_el_);
4592
4590
  if (autoinvalidate) {
4593
- const cache_mo = new MutationObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(records => {
4591
+ const cache_mo = new MutationObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(records => {
4594
4592
  this.invalidate_cache();
4595
4593
  for (const extra_fn of this.on_elements_changed) extra_fn.call(this, records);
4596
4594
  }));
@@ -4615,14 +4613,14 @@ function $be288a83d9eabf2a$var$_scroll_to2(offset) {
4615
4613
  let is_absolute = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4616
4614
  let fallback_scroll_distance = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 500;
4617
4615
  let harsh = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
4618
- const left = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_distance_to, $be288a83d9eabf2a$var$_distance_to2)).call(this, offset, is_absolute);
4616
+ const left = $5e1f45affc1d7def$export$b3bbfd758f11cfa9($be288a83d9eabf2a$var$_classPrivateMethodGet(this, $be288a83d9eabf2a$var$_distance_to, $be288a83d9eabf2a$var$_distance_to2)).call(this, offset, is_absolute);
4619
4617
  const distance_after_fallback_applied = Math.round(left !== null && left !== void 0 ? left : fallback_scroll_distance);
4620
- if (getComputedStyle((0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_).scrollSnapType !== "none" && Math.abs(distance_after_fallback_applied) < 10) {
4621
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Not scrolling because snapping is enabled and distance not over threshold", distance_after_fallback_applied);
4618
+ if (getComputedStyle($76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_).scrollSnapType !== "none" && Math.abs(distance_after_fallback_applied) < 10) {
4619
+ $241f2f02cc612a49$export$de56f1198d121036("Not scrolling because snapping is enabled and distance not over threshold", distance_after_fallback_applied);
4622
4620
  return;
4623
4621
  }
4624
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Trying to scroll by", left, "px", "before fallback,", distance_after_fallback_applied, "after");
4625
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $be288a83d9eabf2a$var$_elements).sliding_el_.scrollBy({
4622
+ $241f2f02cc612a49$export$de56f1198d121036("Trying to scroll by", left, "px", "before fallback,", distance_after_fallback_applied, "after");
4623
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_.scrollBy({
4626
4624
  left: distance_after_fallback_applied,
4627
4625
  top: 0,
4628
4626
  behavior: harsh ? "auto" : "smooth"
@@ -4637,7 +4635,7 @@ class $f340c415f2e1d03a$export$68babfc5be0de5da extends (0, $be288a83d9eabf2a$ex
4637
4635
  element: element,
4638
4636
  disconnector: disconnector
4639
4637
  } = _ref;
4640
- const i_o = new IntersectionObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(records => {
4638
+ const i_o = new IntersectionObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(records => {
4641
4639
  for (const record of records) if (record.intersectionRatio > 0) {
4642
4640
  r(true);
4643
4641
  i_o.disconnect();
@@ -4647,7 +4645,7 @@ class $f340c415f2e1d03a$export$68babfc5be0de5da extends (0, $be288a83d9eabf2a$ex
4647
4645
  }),
4648
4646
  // Fixes https://gitlab.com/depict-ai/depict.ai/-/merge_requests/5816/diffs, don't understand why
4649
4647
  {
4650
- threshold: (0, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129)(10)
4648
+ threshold: $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129(10)
4651
4649
  });
4652
4650
  i_o.observe(element);
4653
4651
  });
@@ -4667,7 +4665,7 @@ function $943514d07f57df12$export$fb9afe9f540ae069(elements, _display, info) {
4667
4665
  if (!(elements !== null && elements !== void 0 && elements.length)) return elements;
4668
4666
  if (!info.t) return elements;
4669
4667
  const elements_as_array = [...elements];
4670
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async () => {
4668
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async () => {
4671
4669
  const {
4672
4670
  rendering_options: rendering_options,
4673
4671
  t: t
@@ -4675,7 +4673,7 @@ function $943514d07f57df12$export$fb9afe9f540ae069(elements, _display, info) {
4675
4673
  if (!$943514d07f57df12$export$4b50a4de9c6bbe09.has(rendering_options) && elements_as_array.some(e => document.documentElement.contains(e)) // check, just in case
4676
4674
  ) {
4677
4675
  $943514d07f57df12$export$4b50a4de9c6bbe09.add(rendering_options);
4678
- (0, $d5f7352b58e0d737$export$82badda1f9923310)({
4676
+ $d5f7352b58e0d737$export$82badda1f9923310({
4679
4677
  ...t,
4680
4678
  product_id: await t.get_product_id(),
4681
4679
  recommendation_type: info.rendering_options.type,
@@ -4697,7 +4695,7 @@ function $943514d07f57df12$export$1bffac19f9f0d6fc(elements, _display, info) {
4697
4695
  // GTAG tracking is deprecated, if we're doing no-tenant recommendation rendering it's SDK anyway.
4698
4696
  return elements;
4699
4697
  const [first_element] = elements;
4700
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
4698
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
4701
4699
  const {
4702
4700
  rendering_options: rendering_options,
4703
4701
  displays: displays
@@ -4710,7 +4708,7 @@ function $943514d07f57df12$export$1bffac19f9f0d6fc(elements, _display, info) {
4710
4708
  const {
4711
4709
  type: type
4712
4710
  } = rendering_options;
4713
- (0, $3674b9afc9a63520$export$7babcd5d4056b2ca)(displays, get_product_id /* yes this might create errors if there's no page_url in the display but don't have time to fix, sorry */, {
4711
+ $3674b9afc9a63520$export$7babcd5d4056b2ca(displays, get_product_id /* yes this might create errors if there's no page_url in the display but don't have time to fix, sorry */, {
4714
4712
  list_name: "depict_" + type
4715
4713
  });
4716
4714
  }
@@ -4725,7 +4723,7 @@ function $943514d07f57df12$export$9e1caada6901f552(elements, _display, info) {
4725
4723
  } = info;
4726
4724
  if (!t) return elements;
4727
4725
  (async () => {
4728
- (0, $0897f35c3b3fbbc4$export$eee4c4d924348b05)({
4726
+ $0897f35c3b3fbbc4$export$eee4c4d924348b05({
4729
4727
  tenant: t.tenant,
4730
4728
  market: t.market,
4731
4729
  product_id: await t.get_product_id()
@@ -4740,9 +4738,9 @@ function $943514d07f57df12$export$8d72437623fef90c(elements, display, info) {
4740
4738
  ga_product_id: ga_product_id,
4741
4739
  product_id: product_id
4742
4740
  } = display;
4743
- if (Array.isArray(ga_product_ids)) for (let i = 0; i < ga_product_ids.length; i++) (0, $3674b9afc9a63520$export$f522672c9379e339)(ga_product_ids[i], info.index, {
4741
+ if (Array.isArray(ga_product_ids)) for (let i = 0; i < ga_product_ids.length; i++) $3674b9afc9a63520$export$f522672c9379e339(ga_product_ids[i], info.index, {
4744
4742
  list_name: "depict_" + info.rendering_options.type
4745
- });else (0, $3674b9afc9a63520$export$f522672c9379e339)(ga_product_id || product_id, info.index, {
4743
+ });else $3674b9afc9a63520$export$f522672c9379e339(ga_product_id || product_id, info.index, {
4746
4744
  list_name: "depict_" + info.rendering_options.type
4747
4745
  });
4748
4746
  };
@@ -4759,7 +4757,7 @@ function $943514d07f57df12$export$e9106d6e723510d2(elements, display, info) {
4759
4757
  index: index,
4760
4758
  rendering_options: rendering_options
4761
4759
  } = info;
4762
- return (0, $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb)({
4760
+ return $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb({
4763
4761
  ...t,
4764
4762
  ...rendering_options,
4765
4763
  ...display,
@@ -4784,14 +4782,14 @@ function $943514d07f57df12$export$32eb5dd18e963410(elements, display, info) {
4784
4782
  } = "variant_index" in display ? display.variant_displays[display.variant_index] : display;
4785
4783
  if (!(elements !== null && elements !== void 0 && elements.length)) return elements;
4786
4784
  for (const element of elements) {
4787
- const handler = (0, $bd7c9f254946941d$export$82a685f2da2fb027)(element, product_id, recommendation_id || search_result_id);
4785
+ const handler = $bd7c9f254946941d$export$82a685f2da2fb027(element, product_id, recommendation_id || search_result_id);
4788
4786
  if (handler) $943514d07f57df12$var$push_function($943514d07f57df12$export$32eb5dd18e963410, handler);
4789
4787
  }
4790
4788
  return elements;
4791
4789
  }
4792
4790
  function $943514d07f57df12$export$dd32cb565eae0a1f(elements, display, info) {
4793
4791
  const handler = () => {
4794
- (0, $3674b9afc9a63520$export$127751e82111fcf)();
4792
+ $3674b9afc9a63520$export$127751e82111fcf();
4795
4793
  };
4796
4794
  $943514d07f57df12$var$push_function($943514d07f57df12$export$dd32cb565eae0a1f, handler);
4797
4795
  info.register_event_listener("click", handler, {
@@ -4839,7 +4837,7 @@ async function $70017d06e57dffa8$export$50ce83ace0cdd87e(t, rendering_options) {
4839
4837
  view_tracking: view_tracking,
4840
4838
  click_tracking: click_tracking
4841
4839
  } = rendering_options;
4842
- return await (0, $378c98788ab52b9c$export$a9fc160c5ed83bd7)(t, {
4840
+ return await $378c98788ab52b9c$export$a9fc160c5ed83bd7(t, {
4843
4841
  ...rendering_options,
4844
4842
  headers: {
4845
4843
  ...((0, $20fe9624210ef635$export$deca40f48c0569f8) ? {
@@ -4862,7 +4860,7 @@ async function $d4f914b34cc77d0c$export$cab8bc58c64c2013(t, rendering_options, o
4862
4860
  let {
4863
4861
  container: container
4864
4862
  } = options_for_us;
4865
- if (typeof container == "string") container = [...(0, $652300c6621d5500$export$44951404cb8d0583)(container)];
4863
+ if (typeof container == "string") container = [...$652300c6621d5500$export$44951404cb8d0583(container)];
4866
4864
  if (container && !Array.isArray(container)) container = [...container];
4867
4865
  const slider = new (0, $f340c415f2e1d03a$export$68babfc5be0de5da)({
4868
4866
  dist_to_hide_left: 10,
@@ -4872,17 +4870,17 @@ async function $d4f914b34cc77d0c$export$cab8bc58c64c2013(t, rendering_options, o
4872
4870
  const recs = await local_rr(t, {
4873
4871
  ...rendering_options,
4874
4872
  post_processors: [(elements, display) => {
4875
- (0, $652300c6621d5500$export$5e63aea0cac01fa0)(elements, ".rec_outer").forEach(ro => ro.classList.add("noautospacing"));
4873
+ $652300c6621d5500$export$5e63aea0cac01fa0(elements, ".rec_outer").forEach(ro => ro.classList.add("noautospacing"));
4876
4874
  return elements;
4877
4875
  }, ...(rendering_options.post_processors || [])]
4878
4876
  });
4879
4877
  if (!recs.elements) {
4880
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Pro_Slider says bye bye cuz no recs");
4878
+ $241f2f02cc612a49$export$de56f1198d121036("Pro_Slider says bye bye cuz no recs");
4881
4879
  return {};
4882
4880
  }
4883
4881
  slider.insert_here.append(...recs.elements);
4884
4882
  if (container) {
4885
- const [root] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(container, root_selector || ".grid");
4883
+ const [root] = $652300c6621d5500$export$5e63aea0cac01fa0(container, root_selector || ".grid");
4886
4884
  root[insertion_verb](slider.container);
4887
4885
  }
4888
4886
  return {
@@ -4927,7 +4925,7 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
4927
4925
  type: type,
4928
4926
  market: market
4929
4927
  } = this.settings;
4930
- (0, $51dfcecbe05cc4e5$export$1bc0df10745d5412)(
4928
+ $51dfcecbe05cc4e5$export$1bc0df10745d5412(
4931
4929
  // @ts-ignore - Quick workaround, as we don't have a tenant object here
4932
4930
  {
4933
4931
  tenant: tenant,
@@ -4937,7 +4935,7 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
4937
4935
  product_id: product_id()
4938
4936
  }).then(recs => {
4939
4937
  this.data = recs;
4940
- (0, $bcc7b73f8b96a6f0$export$8582cf3716962dc2)({
4938
+ $bcc7b73f8b96a6f0$export$8582cf3716962dc2({
4941
4939
  ...this.settings,
4942
4940
  recs: this.data,
4943
4941
  min_recs: this.settings.min_items || this.settings.max_items
@@ -4954,14 +4952,14 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
4954
4952
  }
4955
4953
  if (!action || action instanceof Event) action = "rec_bar_click";
4956
4954
  if (action == "rec_bar_click" && typeof index != "undefined" && product_id) {
4957
- if (Array.isArray(ga_product_ids)) for (const id of ga_product_ids) (0, $3674b9afc9a63520$export$f522672c9379e339)(id, index, {
4955
+ if (Array.isArray(ga_product_ids)) for (const id of ga_product_ids) $3674b9afc9a63520$export$f522672c9379e339(id, index, {
4958
4956
  list_name: "depict_" + this.settings.type
4959
- });else (0, $3674b9afc9a63520$export$f522672c9379e339)(product_id, index, {
4957
+ });else $3674b9afc9a63520$export$f522672c9379e339(product_id, index, {
4960
4958
  list_name: "depict_" + this.settings.type
4961
4959
  });
4962
4960
  }
4963
4961
  if (this.tracker === undefined) this.tracker = ga("create", this.settings.gaid, "auto", "depict");
4964
- (0, $3674b9afc9a63520$export$f75172d2e289cd02)(action);
4962
+ $3674b9afc9a63520$export$f75172d2e289cd02(action);
4965
4963
  }
4966
4964
  trackPageView() {
4967
4965
  if ($eb252431088a7c2b$var$pageview_sent) {
@@ -4972,12 +4970,12 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
4972
4970
  const {
4973
4971
  product_id: product_id
4974
4972
  } = this.settings;
4975
- (0, $0897f35c3b3fbbc4$export$eee4c4d924348b05)(typeof product_id === "function" ? product_id() : product_id);
4973
+ $0897f35c3b3fbbc4$export$eee4c4d924348b05(typeof product_id === "function" ? product_id() : product_id);
4976
4974
  }
4977
4975
  trackClick(index) {
4978
4976
  const item = this.data[index];
4979
4977
  if (item === undefined) return;
4980
- return (0, $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb)({
4978
+ return $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb({
4981
4979
  ...this.settings,
4982
4980
  ...item,
4983
4981
  click_location: "".concat(this.settings.type, "_").concat(index + 1),
@@ -4985,7 +4983,7 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
4985
4983
  });
4986
4984
  }
4987
4985
  trackAddToCart(pId) {
4988
- return (0, $d5f7352b58e0d737$export$9028351cb994757e)({
4986
+ return $d5f7352b58e0d737$export$9028351cb994757e({
4989
4987
  ...this.settings,
4990
4988
  product_id: pId && !(pId instanceof Event) ? pId : this.settings.product_id()
4991
4989
  });
@@ -5066,9 +5064,9 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
5066
5064
  if (!this.settings.DNT) for (const element of elements) {
5067
5065
  // recommendations_inserted event
5068
5066
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).oncreation(element, () => {
5069
- if (!(0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $eb252431088a7c2b$var$_dispatched_recs_inserted)) {
5070
- (0, $76EG6$babelruntimehelpersclassPrivateFieldSet)(this, $eb252431088a7c2b$var$_dispatched_recs_inserted, true);
5071
- (0, $d5f7352b58e0d737$export$82badda1f9923310)({
5067
+ if (!$76EG6$babelruntimehelpersclassPrivateFieldGet(this, $eb252431088a7c2b$var$_dispatched_recs_inserted)) {
5068
+ $76EG6$babelruntimehelpersclassPrivateFieldSet(this, $eb252431088a7c2b$var$_dispatched_recs_inserted, true);
5069
+ $d5f7352b58e0d737$export$82badda1f9923310({
5072
5070
  ...this.settings,
5073
5071
  product_id: product_id_at_rendering,
5074
5072
  recommendation_type: this.settings.type,
@@ -5081,8 +5079,8 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
5081
5079
  this.trackGAEvent("rec_bar_click", rec_index, item.ga_product_id || item.product_id || this.settings.product_id(item.page_url), item.ga_product_ids);
5082
5080
  };
5083
5081
  element.addEventListener("click", listener);
5084
- (0, $bd7c9f254946941d$export$82a685f2da2fb027)(element, item.product_id, item.recommendation_id);
5085
- if (this.settings.shade) (0, $f2fce07b3a330e05$export$6ebd242c09192cec)(element);
5082
+ $bd7c9f254946941d$export$82a685f2da2fb027(element, item.product_id, item.recommendation_id);
5083
+ if (this.settings.shade) $f2fce07b3a330e05$export$6ebd242c09192cec(element);
5086
5084
  // @ts-ignore
5087
5085
  if (!element.depict_event_listeners)
5088
5086
  // @ts-ignore
@@ -5094,7 +5092,7 @@ class $eb252431088a7c2b$export$1a8782481a9af507 {
5094
5092
  resultingElements.push(...elements);
5095
5093
  });
5096
5094
  this.data = recsArray;
5097
- if (!this.settings.DNT) (0, $3674b9afc9a63520$export$7babcd5d4056b2ca)(recsArray, this.settings.product_id, {
5095
+ if (!this.settings.DNT) $3674b9afc9a63520$export$7babcd5d4056b2ca(recsArray, this.settings.product_id, {
5098
5096
  list_name: "depict_" + this.settings.type
5099
5097
  });
5100
5098
  return resultingElements;
@@ -5167,7 +5165,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
5167
5165
  super(options, {
5168
5166
  lazyfinder: {
5169
5167
  unload(image) {
5170
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async () => {
5168
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async () => {
5171
5169
  var _image$dataset, _image$dataset$src;
5172
5170
  if (!(image !== null && image !== void 0 && (_image$dataset = image.dataset) !== null && _image$dataset !== void 0 && (_image$dataset$src = _image$dataset.src) !== null && _image$dataset$src !== void 0 && _image$dataset$src.length)) {
5173
5171
  image.dataset.src = image.src;
@@ -5200,7 +5198,7 @@ async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, o
5200
5198
  let {
5201
5199
  container: container
5202
5200
  } = options_for_us;
5203
- if (typeof container == "string") container = [...(0, $652300c6621d5500$export$44951404cb8d0583)(container)];
5201
+ if (typeof container == "string") container = [...$652300c6621d5500$export$44951404cb8d0583(container)];
5204
5202
  if (container && !Array.isArray(container)) container = [...container];
5205
5203
  const slider = new (0, $0342f59060b8a196$export$4d41c6499d53639c)({
5206
5204
  dlog: dlog,
@@ -5212,7 +5210,7 @@ async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, o
5212
5210
  const recs = await local_rr(t, {
5213
5211
  ...rendering_options,
5214
5212
  post_processors: [(elements, display) => {
5215
- (0, $652300c6621d5500$export$5e63aea0cac01fa0)(elements, "a.rec_outer").forEach(ro => ro.classList.add("noautospacing"));
5213
+ $652300c6621d5500$export$5e63aea0cac01fa0(elements, "a.rec_outer").forEach(ro => ro.classList.add("noautospacing"));
5216
5214
  return elements;
5217
5215
  }, ...(rendering_options.post_processors || [])]
5218
5216
  });
@@ -5222,7 +5220,7 @@ async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, o
5222
5220
  }
5223
5221
  slider.insert_here.append(...recs.elements);
5224
5222
  if (container) {
5225
- const [root] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(container, root_selector || ".grid");
5223
+ const [root] = $652300c6621d5500$export$5e63aea0cac01fa0(container, root_selector || ".grid");
5226
5224
  root[insertion_verb](slider.container);
5227
5225
  }
5228
5226
  return {
@@ -5256,8 +5254,8 @@ async function $19946af5b386da54$export$30933c637c977eef(_ref) {
5256
5254
  catchify: catchify,
5257
5255
  dlog: dlog
5258
5256
  } = t,
5259
- container = [...(0, $652300c6621d5500$export$44951404cb8d0583)(container_template)],
5260
- root = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(container, ".grid")[0],
5257
+ container = [...$652300c6621d5500$export$44951404cb8d0583(container_template)],
5258
+ root = $652300c6621d5500$export$5e63aea0cac01fa0(container, ".grid")[0],
5261
5259
  internal_pre_processors = [...pre_processors],
5262
5260
  // copy arrays so we don't unintentionally modify an array of a script calling us when doing auto postprocessor for slider if insertion_promise is defined
5263
5261
  internal_post_processors = [...post_processors];
@@ -5270,7 +5268,7 @@ async function $19946af5b386da54$export$30933c637c977eef(_ref) {
5270
5268
  root.replaceWith(slider.container);
5271
5269
  if (insertion_promise) internal_post_processors.push((t, items, d) => {
5272
5270
  for (const item of items) insertion_promise.then(() => {
5273
- (0, $e89a1d249db21af0$export$37125ccc5dd98050)({
5271
+ $e89a1d249db21af0$export$37125ccc5dd98050({
5274
5272
  element: item,
5275
5273
  data: {
5276
5274
  tenant: t.tenant,
@@ -5287,7 +5285,7 @@ async function $19946af5b386da54$export$30933c637c977eef(_ref) {
5287
5285
  });
5288
5286
  }
5289
5287
  if (!slider || !insertion_promise) internal_post_processors.push((t, items, d) => {
5290
- for (const item of items) (0, $e89a1d249db21af0$export$37125ccc5dd98050)({
5288
+ for (const item of items) $e89a1d249db21af0$export$37125ccc5dd98050({
5291
5289
  element: item,
5292
5290
  data: {
5293
5291
  tenant: t.tenant,
@@ -5301,7 +5299,7 @@ async function $19946af5b386da54$export$30933c637c977eef(_ref) {
5301
5299
  });
5302
5300
  return items;
5303
5301
  });
5304
- const template_tool = await (0, $48b0f027b215b8ad$export$2e2bcd8739ae039)({
5302
+ const template_tool = await $48b0f027b215b8ad$export$2e2bcd8739ae039({
5305
5303
  options: {
5306
5304
  ...t,
5307
5305
  ...(template_tool_options || {})
@@ -5325,7 +5323,7 @@ async function $19946af5b386da54$export$30933c637c977eef(_ref) {
5325
5323
  if (with_loadmore) catchify($19946af5b386da54$var$setup_load_more)(t, root, chunk_size_for_load_more);
5326
5324
  if (infinite_scroll) catchify($19946af5b386da54$var$setup_infinite_scroll)(t, root);
5327
5325
  if (title) {
5328
- const [title_element] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(container, "h1.title, h2.title, h3.title, h4.title, h5.title, h6.title");
5326
+ const [title_element] = $652300c6621d5500$export$5e63aea0cac01fa0(container, "h1.title, h2.title, h3.title, h4.title, h5.title, h6.title");
5329
5327
  if (title_element) {
5330
5328
  if (typeof title == "string") title_element.innerText = title;else title_element.replaceWith(...title);
5331
5329
  }
@@ -5371,8 +5369,8 @@ function $19946af5b386da54$var$setup_load_more(t, root, chunk_size) {
5371
5369
  const {
5372
5370
  catchify: catchify
5373
5371
  } = t,
5374
- load_more_cont = (0, $652300c6621d5500$export$d3e2a0560cbf4787)('<div class="load-more-container"></div>'),
5375
- load_button = load_more_cont.appendChild((0, $652300c6621d5500$export$d3e2a0560cbf4787)('<button class="load_more">Visa mer</button>'));
5372
+ load_more_cont = $652300c6621d5500$export$d3e2a0560cbf4787('<div class="load-more-container"></div>'),
5373
+ load_button = load_more_cont.appendChild($652300c6621d5500$export$d3e2a0560cbf4787('<button class="load_more">Visa mer</button>'));
5376
5374
  load_button.addEventListener("click", catchify(load_more_recs_and_hide_button_if_needed));
5377
5375
  root.after(load_more_cont);
5378
5376
  load_more_recs_and_hide_button_if_needed();
@@ -5444,7 +5442,7 @@ $03021b39f80fac4b$export$2e2bcd8739ae039 = (dlog, error_log) => {
5444
5442
  } : {})
5445
5443
  }).then(async response => {
5446
5444
  if (!response || !response.ok || response.status !== 200) {
5447
- if (response.status === 422) (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($03021b39f80fac4b$var$send_sentry_422)(response, body, stack);
5445
+ if (response.status === 422) $5e1f45affc1d7def$export$b3bbfd758f11cfa9($03021b39f80fac4b$var$send_sentry_422)(response, body, stack);
5448
5446
  elog("Response not ok", response);
5449
5447
  return false;
5450
5448
  } else return await response[decode_json ? "json" : "text"]().catch(e => elog("error while decoding json", e));
@@ -5459,32 +5457,32 @@ $03021b39f80fac4b$export$2e2bcd8739ae039 = (dlog, error_log) => {
5459
5457
  async function $03021b39f80fac4b$var$send_sentry_422(response, body, stack) {
5460
5458
  const msg = "Validation error: got 422 from API";
5461
5459
  const text = await response.text();
5462
- (0, $241f2f02cc612a49$export$de56f1198d121036)(msg, "body", body, "response", response, "text", text, "stack", stack);
5460
+ $241f2f02cc612a49$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
5463
5461
  (0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).withScope(function (scope) {
5464
5462
  scope.setExtra("stack", stack);
5465
5463
  scope.setExtra("request_body", body);
5466
5464
  scope.setExtra("response", response);
5467
- scope.setExtra("serialized_response", (0, $d9aec442b12a1134$export$39d526a1194b6499)(response));
5465
+ scope.setExtra("serialized_response", $d9aec442b12a1134$export$39d526a1194b6499(response));
5468
5466
  scope.setExtra("response_text", text);
5469
5467
  scope.setLevel("error");
5470
5468
  this.captureException(new Error(msg));
5471
5469
  });
5472
5470
  }
5473
- const $c755e2b0d4b18501$export$dc84183312f0c201 = /*@__PURE__*/(() => (0, $0f650018c3cbc373$export$25062201e9e25d76)("svg", {
5471
+ const $c755e2b0d4b18501$export$dc84183312f0c201 = /*@__PURE__*/(() => $0f650018c3cbc373$export$25062201e9e25d76("svg", {
5474
5472
  xmlns: "http://www.w3.org/2000/svg",
5475
5473
  viewBox: "0 0 320 512",
5476
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("desc", {
5474
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("desc", {
5477
5475
  children: "Right arrow"
5478
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("path", {
5476
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("path", {
5479
5477
  d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
5480
5478
  })]
5481
5479
  }))();
5482
- const $c755e2b0d4b18501$export$6038895ac52bd044 = /*@__PURE__*/(() => (0, $0f650018c3cbc373$export$25062201e9e25d76)("svg", {
5480
+ const $c755e2b0d4b18501$export$6038895ac52bd044 = /*@__PURE__*/(() => $0f650018c3cbc373$export$25062201e9e25d76("svg", {
5483
5481
  xmlns: "http://www.w3.org/2000/svg",
5484
5482
  viewBox: "0 0 320 512",
5485
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("desc", {
5483
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("desc", {
5486
5484
  children: "Left arrow"
5487
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("path", {
5485
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("path", {
5488
5486
  d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
5489
5487
  })]
5490
5488
  }))();
@@ -5502,7 +5500,7 @@ const $0fe3923936d40f55$export$68c017fd93791405 = function () {
5502
5500
  container.append(content);
5503
5501
  const expand = () => {
5504
5502
  container.style.height = content.clientHeight + "px";
5505
- setTimeout((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
5503
+ setTimeout($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
5506
5504
  container.style.overflow = "unset";
5507
5505
  container.style.height = "auto";
5508
5506
  }), duration);
@@ -5514,14 +5512,14 @@ const $0fe3923936d40f55$export$68c017fd93791405 = function () {
5514
5512
  };
5515
5513
  };
5516
5514
  function $07beada135e5f5e8$export$f8913c8a18f7ca21(iterables) {
5517
- const ourselves = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
5515
+ const ourselves = $7ca6fdc721083788$export$e806c6c1615a59ae();
5518
5516
  const values = new Array(iterables.length);
5519
- Promise.all(iterables.map((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async (iterable, index) => {
5517
+ Promise.all(iterables.map($5e1f45affc1d7def$export$b3bbfd758f11cfa9(async (iterable, index) => {
5520
5518
  for await (const value of iterable) {
5521
5519
  values[index] = value;
5522
5520
  ourselves([...values]);
5523
5521
  }
5524
- }))).then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(ourselves.exit));
5522
+ }))).then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(ourselves.exit));
5525
5523
  return ourselves;
5526
5524
  }
5527
5525
  let $df6d080cba513381$var$_Symbol$iterator, $df6d080cba513381$var$_Symbol$toPrimitive;
@@ -5546,16 +5544,16 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
5546
5544
  ipns: ipns
5547
5545
  } = rows_or_empty_object;
5548
5546
  const is_static = !ipns && !button;
5549
- const our_style_el = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("style", {
5547
+ const our_style_el = $0f650018c3cbc373$export$34b9dba7ce09269b("style", {
5550
5548
  type: "text/css"
5551
5549
  });
5552
- const container_class = (0, $6cb4d83127e468ea$export$a6db784f019668ba)();
5550
+ const container_class = $6cb4d83127e468ea$export$a6db784f019668ba();
5553
5551
  const selector_beginning = ".depict .".concat(container_class, ">");
5554
- const el_count_ipns = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
5552
+ const el_count_ipns = $7ca6fdc721083788$export$e806c6c1615a59ae();
5555
5553
  const set_length = () => el_count_ipns(container_element.children.length);
5556
5554
  const col_styling = $df6d080cba513381$export$17c3166a7ebd4688(selector_beginning, grid_spacing, cols_at_size, layout, override_vertical_spacing);
5557
5555
  let button_class;
5558
- ipns || (ipns = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)());
5556
+ ipns || (ipns = $7ca6fdc721083788$export$e806c6c1615a59ae());
5559
5557
  container_element.after(our_style_el);
5560
5558
  container_element.classList.add(container_class);
5561
5559
  if (rows === "all") {
@@ -5565,7 +5563,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
5565
5563
  }
5566
5564
  ipns(start_rows);
5567
5565
  set_length();
5568
- const mutation_observer = new MutationObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(set_length));
5566
+ const mutation_observer = new MutationObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(set_length));
5569
5567
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).oncreation(container_element, _ref2 => {
5570
5568
  let {
5571
5569
  element: element
@@ -5586,10 +5584,10 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
5586
5584
  ipns.exit();
5587
5585
  });
5588
5586
  if (button) {
5589
- button_class = (0, $6cb4d83127e468ea$export$a6db784f019668ba)();
5590
- const button_container = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
5587
+ button_class = $6cb4d83127e468ea$export$a6db784f019668ba();
5588
+ const button_container = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
5591
5589
  class: "load-more-container " + button_class,
5592
- children: (0, $a285401a927e4306$export$f63fcc839cb0f734)("click", () => {
5590
+ children: $a285401a927e4306$export$f63fcc839cb0f734("click", () => {
5593
5591
  var _rows_or_empty_object;
5594
5592
  return ipns(ipns.state + ((_rows_or_empty_object = rows_or_empty_object.rows_per_click) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1));
5595
5593
  }, button)
@@ -5597,7 +5595,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
5597
5595
  container_element.after(button_container);
5598
5596
  }
5599
5597
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).oncreation(container_element, async () => {
5600
- for await (const [currently_showing_rows, number_of_els] of (0, $07beada135e5f5e8$export$f8913c8a18f7ca21)([
5598
+ for await (const [currently_showing_rows, number_of_els] of $07beada135e5f5e8$export$f8913c8a18f7ca21([
5601
5599
  // start for await loop when the container element gets inserted into the DOM
5602
5600
  // the loop is broken by an observer.onremoved above calling .exit on the IPNS this depends on
5603
5601
  // @ts-ignore
@@ -5742,7 +5740,7 @@ class $df6d080cba513381$var$CSSMeasurement {
5742
5740
  return hint == "number" ? this.valueOf() : this.toString();
5743
5741
  }
5744
5742
  constructor(measurement) {
5745
- (0, $76EG6$babelruntimehelpersdefineProperty)(this, $df6d080cba513381$var$_Symbol$iterator, function* () {
5743
+ $76EG6$babelruntimehelpersdefineProperty(this, $df6d080cba513381$var$_Symbol$iterator, function* () {
5746
5744
  if (this.is_fe) throw new Error("Function expression isn't iterable: " + this.e);
5747
5745
  yield this.v;
5748
5746
  yield this.u;
@@ -5768,7 +5766,7 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
5768
5766
  eager_images: eager_images,
5769
5767
  ...options_for_grid
5770
5768
  } = _ref;
5771
- const [insertion_point] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(container_elements, container_selector || ".grid");
5769
+ const [insertion_point] = $652300c6621d5500$export$5e63aea0cac01fa0(container_elements, container_selector || ".grid");
5772
5770
  const rendering_result = await (override_rec_renderer || (0, $70017d06e57dffa8$export$2e2bcd8739ae039))(t, recommendation_renderer_options);
5773
5771
  const {
5774
5772
  elements: elements
@@ -5779,7 +5777,7 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
5779
5777
  // when the elements are in the DOM starts IntersectionObserver on whole grid
5780
5778
  // when grid intersects starts Lazyfier
5781
5779
  // this is because Lazyfier is fucking stupid
5782
- (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element(insertion_point).then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(element => {
5780
+ (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element(insertion_point).then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(element => {
5783
5781
  let start_lazy_loading;
5784
5782
  const lazy_loading_promise = new Promise(r => start_lazy_loading = r);
5785
5783
  const lf = new (0, $5f31622ffb78bc10$export$3be7054c61590ee3)({
@@ -5788,7 +5786,7 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
5788
5786
  ...lazyfier_options
5789
5787
  });
5790
5788
  lf.start_observing_for_new_children_(element);
5791
- const i_o = new IntersectionObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(records => {
5789
+ const i_o = new IntersectionObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(records => {
5792
5790
  for (const record of records) if (record.intersectionRatio > 0) {
5793
5791
  start_lazy_loading();
5794
5792
  i_o.disconnect();
@@ -5798,7 +5796,7 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
5798
5796
  i_o.observe(insertion_point);
5799
5797
  }));
5800
5798
  insertion_point.append(...elements);
5801
- (0, $df6d080cba513381$export$c84671f46d6a1ca)({
5799
+ $df6d080cba513381$export$c84671f46d6a1ca({
5802
5800
  ...options_for_grid,
5803
5801
  container_element: insertion_point,
5804
5802
  layout: "grid"
@@ -5826,7 +5824,7 @@ async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_rende
5826
5824
  rows = "all",
5827
5825
  ...slider_options
5828
5826
  } = _ref;
5829
- const [insertion_point] = (0, $652300c6621d5500$export$5e63aea0cac01fa0)(container_elements, container_selector || ".grid");
5827
+ const [insertion_point] = $652300c6621d5500$export$5e63aea0cac01fa0(container_elements, container_selector || ".grid");
5830
5828
  const slider = eager_images ? new (0, $be288a83d9eabf2a$export$692b27c28639e5b9)(slider_options) : new (0, $f340c415f2e1d03a$export$68babfc5be0de5da)(slider_options, lazyfier_options);
5831
5829
  const rendering_result = await (override_rec_renderer || (0, $70017d06e57dffa8$export$2e2bcd8739ae039))(t, recommendation_renderer_options);
5832
5830
  const {
@@ -5835,18 +5833,18 @@ async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_rende
5835
5833
  if (!elements) return rendering_result;
5836
5834
  if (!$d89e3aaeb9270095$var$slider_styling_was_inserted) {
5837
5835
  $d89e3aaeb9270095$var$slider_styling_was_inserted = true;
5838
- (0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($9f7f2b36a558e2bd$exports)));
5836
+ $1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9f7f2b36a558e2bd$exports)));
5839
5837
  }
5840
5838
  insertion_point.replaceWith(slider.container);
5841
5839
  slider.insert_here.append(...elements);
5842
- (0, $df6d080cba513381$export$c84671f46d6a1ca)({
5840
+ $df6d080cba513381$export$c84671f46d6a1ca({
5843
5841
  grid_spacing: grid_spacing,
5844
5842
  cols_at_size: cols_at_size,
5845
5843
  container_element: slider.insert_here,
5846
5844
  rows: rows,
5847
5845
  layout: "slider",
5848
5846
  override_vertical_spacing: override_vertical_spacing
5849
- }).catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "Grid had an error"], "warning"));
5847
+ }).catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "Grid had an error"], "warning"));
5850
5848
  return {
5851
5849
  ...rendering_result,
5852
5850
  slider: slider,
@@ -5871,11 +5869,11 @@ function $b109421811582f8c$export$8cbd8aa1c70f9a13() {
5871
5869
  return {
5872
5870
  constructor_plugin() {
5873
5871
  const set_scroll_int = interval_scroll.bind(this);
5874
- this.container.addEventListener("click", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
5872
+ this.container.addEventListener("click", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
5875
5873
  clearInterval(timer);
5876
5874
  set_scroll_int();
5877
5875
  }));
5878
- this.container.addEventListener("mousedown", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
5876
+ this.container.addEventListener("mousedown", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
5879
5877
  clearInterval(timer);
5880
5878
  }));
5881
5879
  set_scroll_int();
@@ -5892,7 +5890,7 @@ function $090af64928922937$export$80039a49055269fb() {
5892
5890
  return Object.fromEntries(["left", "right"].map(side => [side, [new_arrowimage()]]));
5893
5891
  }
5894
5892
  function $66c5b496f7887c00$export$af88b4929c2dc86() {
5895
- const img = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("img", {
5893
+ const img = $0f650018c3cbc373$export$34b9dba7ce09269b("img", {
5896
5894
  src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+"
5897
5895
  });
5898
5896
  return {
@@ -5992,12 +5990,12 @@ function $d3c54fdf1bfb087a$export$1d17a045bcc711b1(_ref) {
5992
5990
  };
5993
5991
  }
5994
5992
  function $d3c54fdf1bfb087a$export$a09282b33e69b43f(unique_name) {
5995
- return (0, $0f650018c3cbc373$export$25062201e9e25d76)("label", {
5993
+ return $0f650018c3cbc373$export$25062201e9e25d76("label", {
5996
5994
  class: "checkbox_container",
5997
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("input", {
5995
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("input", {
5998
5996
  type: "radio",
5999
5997
  name: "radio-".concat(unique_name)
6000
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("span", {
5998
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("span", {
6001
5999
  class: "checkmark"
6002
6000
  })]
6003
6001
  });
@@ -6081,7 +6079,7 @@ function $3ad897e1659ee6d7$export$411b0f20794697ce(t) {
6081
6079
  }
6082
6080
  function mutation_plugin(intersections, intersecting_mutations) {}
6083
6081
  function instant_post_pro(items) {
6084
- (0, $652300c6621d5500$export$5e63aea0cac01fa0)(items, "a, img, canvas").forEach(el => {
6082
+ $652300c6621d5500$export$5e63aea0cac01fa0(items, "a, img, canvas").forEach(el => {
6085
6083
  // @ts-ignore
6086
6084
  el.draggable = false;
6087
6085
  el.addEventListener("dragstart", e => {
@@ -6148,10 +6146,10 @@ function $0cbf24ae3e670238$export$5723caf9a8335aa6(_t) {
6148
6146
  configurable: true,
6149
6147
  enumerable: true,
6150
6148
  set(v) {
6151
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(new Error("Cannot set steps to slide manually when using fractional scroll"));
6149
+ $b000f5ef6ce456d9$export$8048b892d651b310(new Error("Cannot set steps to slide manually when using fractional scroll"));
6152
6150
  return v;
6153
6151
  },
6154
- get: (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
6152
+ get: $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
6155
6153
  const sliding_width = sliding.getBoundingClientRect().width;
6156
6154
  const first_rec = sliding.firstElementChild;
6157
6155
  if (!first_rec)
@@ -6163,7 +6161,7 @@ function $0cbf24ae3e670238$export$5723caf9a8335aa6(_t) {
6163
6161
  const stepsize_limited_up = max_steps && calculated_stepsize > max_steps ? max_steps : calculated_stepsize;
6164
6162
  const stepsize_limited_up_and_down = min_steps && stepsize_limited_up < min_steps ? min_steps : stepsize_limited_up;
6165
6163
  const stepby = stepsize_limited_up_and_down || fallback_stepsize;
6166
- if (stepby != calculated_stepsize) (0, $241f2f02cc612a49$export$de56f1198d121036)("going by", stepby, "because of max_steps or invalid stepsize");
6164
+ if (stepby != calculated_stepsize) $241f2f02cc612a49$export$de56f1198d121036("going by", stepby, "because of max_steps or invalid stepsize");
6167
6165
  return stepby;
6168
6166
  })
6169
6167
  });
@@ -6177,10 +6175,10 @@ function $0cbf24ae3e670238$export$5723caf9a8335aa6(_t) {
6177
6175
  function $4837ebe61ecec421$export$93223e488e7ee078(options) {
6178
6176
  function constructor_plugin(_slider_options) {
6179
6177
  var _options$scroll_bar_c, _options$scroll_conta;
6180
- const scroll_bar = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
6178
+ const scroll_bar = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
6181
6179
  class: "depict_slider_scroll_bar"
6182
6180
  });
6183
- const scroll_container = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
6181
+ const scroll_container = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
6184
6182
  class: "depict_slider_scroll_container"
6185
6183
  });
6186
6184
  if ((_options$scroll_bar_c = options.scroll_bar_classes) !== null && _options$scroll_bar_c !== void 0 && _options$scroll_bar_c.length) scroll_bar.classList.add(...options.scroll_bar_classes);
@@ -6216,14 +6214,14 @@ function $ff905d87817a07f4$export$b36d2489a5a16728(_t) {
6216
6214
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6217
6215
  function constructor_plugin(_slider_options) {
6218
6216
  const slider_this = this;
6219
- const random_classname = "x" + (0, $6cb4d83127e468ea$export$656831b7e9c341c3)().replaceAll(".", "");
6217
+ const random_classname = "x" + $6cb4d83127e468ea$export$656831b7e9c341c3().replaceAll(".", "");
6220
6218
  slider_this.insert_here.classList.add(random_classname);
6221
6219
  const style = document.createElement("style");
6222
6220
  style.append(".depict .".concat(random_classname, "{scroll-snap-type:x mandatory}.depict .").concat(random_classname, ">*:nth-child(").concat(snapEvery !== null && snapEvery !== void 0 ? snapEvery : 1, "n + 1){scroll-snap-align:").concat(align || "start", "}"));
6223
6221
  slider_this.snap_style = slider_this.container.appendChild(style);
6224
6222
  $ff905d87817a07f4$export$49b950309ab787ad().then(we_can => {
6225
6223
  if (!we_can) {
6226
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Disabling slider snapping due browser where it's impossible to have working buttons and css snapping");
6224
+ $241f2f02cc612a49$export$de56f1198d121036("Disabling slider snapping due browser where it's impossible to have working buttons and css snapping");
6227
6225
  style.remove();
6228
6226
  delete slider_this["snap_style"];
6229
6227
  }
@@ -6239,9 +6237,9 @@ function $ff905d87817a07f4$export$b36d2489a5a16728(_t) {
6239
6237
  }
6240
6238
  async function $ff905d87817a07f4$export$49b950309ab787ad() {
6241
6239
  if ("scrollBehavior" in document.documentElement.style) return true;
6242
- const test_div = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
6240
+ const test_div = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
6243
6241
  style: "position: absolute; width: 1em; overflow: scroll; scroll-snap-type: x mandatory;",
6244
- children: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
6242
+ children: $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
6245
6243
  style: "scroll-snap-align: start; color: transparent;",
6246
6244
  children: "test"
6247
6245
  })
@@ -6278,14 +6276,14 @@ function $e1af55c2112926b7$export$dac64fd35a4805a4() {
6278
6276
  insert_here: sliding
6279
6277
  } = this;
6280
6278
  const scroll_abs_no_negative = target => this.scroll_to_abs(target < 0 ? 0 : target); // the slider ignores everything < 0 but we want it to move to the first card
6281
- sliding.addEventListener("mousedown", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
6279
+ sliding.addEventListener("mousedown", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
6282
6280
  lock_on_element.lock_active = true;
6283
6281
  const starting_ratio_left = ratio_left.ratio;
6284
6282
  lock_on_element.left = ratio_left.element;
6285
6283
  const starting_ratio_right = ratio_right.ratio;
6286
6284
  lock_on_element.right = ratio_right.element;
6287
6285
  const scroll_left_start = sliding.scrollLeft;
6288
- const mouseup_listener = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(e => {
6286
+ const mouseup_listener = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(e => {
6289
6287
  lock_on_element.lock_active = false;
6290
6288
  const delta_left = Math.abs(ratio_left.ratio - starting_ratio_left);
6291
6289
  const delta_right = Math.abs(ratio_right.ratio - starting_ratio_right);
@@ -6297,7 +6295,7 @@ function $e1af55c2112926b7$export$dac64fd35a4805a4() {
6297
6295
  try {
6298
6296
  currently_visible = Math.floor(this.insert_here.getBoundingClientRect().width / this.insert_here.firstElementChild.getBoundingClientRect().width);
6299
6297
  } catch (e) {
6300
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "warning");
6298
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "warning");
6301
6299
  }
6302
6300
  const stepsize = options.stepsize || currently_visible || 4;
6303
6301
  if (scrolled_right) scroll_abs_no_negative(+currently_left + stepsize);else scroll_abs_no_negative(+currently_left - stepsize);
@@ -6342,8 +6340,8 @@ function $e1af55c2112926b7$export$dac64fd35a4805a4() {
6342
6340
  }
6343
6341
  }
6344
6342
  return {
6345
- constructor_plugin: (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(constructor_plugin),
6346
- mutation_plugin: (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(mutation_plugin)
6343
+ constructor_plugin: $5e1f45affc1d7def$export$b3bbfd758f11cfa9(constructor_plugin),
6344
+ mutation_plugin: $5e1f45affc1d7def$export$b3bbfd758f11cfa9(mutation_plugin)
6347
6345
  };
6348
6346
  }
6349
6347
  function $c7030fdb9bcc361f$export$53306504b987cbf7() {
@@ -6367,7 +6365,7 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6367
6365
  let are_far_right = false;
6368
6366
  let inactive_checker_timeout;
6369
6367
  // let elgreen;
6370
- const check_if_we_inactive = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(function () {
6368
+ const check_if_we_inactive = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(function () {
6371
6369
  var _window2, _window2$performance, _window2$performance$;
6372
6370
  // const { insert_here: sliding } = this;
6373
6371
  const now = ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$performance = _window2.performance) === null || _window2$performance === void 0 ? void 0 : (_window2$performance$ = _window2$performance.now) === null || _window2$performance$ === void 0 ? void 0 : _window2$performance$.call(_window2$performance)) || +new Date();
@@ -6379,7 +6377,7 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6379
6377
  // sliding.style.background = "green";
6380
6378
  // elgreen = true;
6381
6379
  // }
6382
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($c7030fdb9bcc361f$var$scroll_idle)(this, originally_rendered_elements.length, clones_per_side);
6380
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9($c7030fdb9bcc361f$var$scroll_idle)(this, originally_rendered_elements.length, clones_per_side);
6383
6381
  inactive_checker_running = false;
6384
6382
  } else {
6385
6383
  // if (elgreen !== false) {
@@ -6393,11 +6391,11 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6393
6391
  function constructor_plugin() {
6394
6392
  window.addEventListener("touchstart", () => touches++);
6395
6393
  window.addEventListener("touchend", () => touches--);
6396
- this.insert_here.addEventListener("scroll", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
6394
+ this.insert_here.addEventListener("scroll", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
6397
6395
  var _window3, _window3$performance, _window3$performance$;
6398
6396
  last_move = ((_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$performance = _window3.performance) === null || _window3$performance === void 0 ? void 0 : (_window3$performance$ = _window3$performance.now) === null || _window3$performance$ === void 0 ? void 0 : _window3$performance$.call(_window3$performance)) || +new Date();
6399
6397
  }));
6400
- const mo = new MutationObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(records => {
6398
+ const mo = new MutationObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(records => {
6401
6399
  for (const record of records) for (const node of record.removedNodes) {
6402
6400
  if (removed_by_us.has(node)) {
6403
6401
  removed_by_us.delete(node);
@@ -6406,7 +6404,7 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6406
6404
  for (const a_set of sets_of_els) {
6407
6405
  const index_in_el_set = a_set.indexOf(node);
6408
6406
  if (index_in_el_set >= 0) {
6409
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Removing", node, "from el set", a_set);
6407
+ $241f2f02cc612a49$export$de56f1198d121036("Removing", node, "from el set", a_set);
6410
6408
  a_set.splice(index_in_el_set, 1);
6411
6409
  }
6412
6410
  }
@@ -6436,7 +6434,7 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6436
6434
  // calculate how many cards including margin the slider fits
6437
6435
  const first_rect = first_element.getBoundingClientRect();
6438
6436
  if (!first_rect.width) {
6439
- (0, $241f2f02cc612a49$export$de56f1198d121036)(first_rect);
6437
+ $241f2f02cc612a49$export$de56f1198d121036(first_rect);
6440
6438
  throw new Error("First rect doesn't have width");
6441
6439
  }
6442
6440
  const second_rect = second_element.getBoundingClientRect();
@@ -6454,7 +6452,7 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6454
6452
  }
6455
6453
  if (dont_wraparound) {
6456
6454
  if (surplus_in_body) {
6457
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Removing surplus of els. Total els: ", sets_of_els);
6455
+ $241f2f02cc612a49$export$de56f1198d121036("Removing surplus of els. Total els: ", sets_of_els);
6458
6456
  // @ts-ignore
6459
6457
  for (let i = (sets_of_els.length || 1) - 1; i--;) for (let j = 0; j < sets_of_els[i].length; j++) {
6460
6458
  const el = sets_of_els[i][j];
@@ -6470,7 +6468,7 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6470
6468
  return;
6471
6469
  }
6472
6470
  if (!surplus_in_body) {
6473
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Adding surplus of els");
6471
+ $241f2f02cc612a49$export$de56f1198d121036("Adding surplus of els");
6474
6472
  this.insert_here.append(...sets_of_els.slice(0, -1).flat());
6475
6473
  this.invalidate_cache();
6476
6474
  surplus_in_body = true;
@@ -6508,11 +6506,11 @@ function $c7030fdb9bcc361f$export$53306504b987cbf7() {
6508
6506
  if (our_index >= 0) post_processors.splice(our_index, 1);else {
6509
6507
  const msg = "Couldn't find ourselves in post processors, infinite loop might ensue. Exiting. Wraparound will be broken.";
6510
6508
  (0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).captureException(new Error(msg));
6511
- (0, $241f2f02cc612a49$export$de56f1198d121036)(msg, () => {});
6509
+ $241f2f02cc612a49$export$de56f1198d121036(msg, () => {});
6512
6510
  return elements;
6513
6511
  }
6514
6512
  for (let i = 0; i < clones_per_side * 2; i++) {
6515
- const additional_render = await (0, $378c98788ab52b9c$export$a9fc160c5ed83bd7)(info.t, {
6513
+ const additional_render = await $378c98788ab52b9c$export$a9fc160c5ed83bd7(info.t, {
6516
6514
  ...rendering_options,
6517
6515
  post_processors: post_processors,
6518
6516
  pre_processors: [],
@@ -6628,7 +6626,7 @@ function $26dbd7db7fd1bc2c$export$515c3ea4d599b05a(
6628
6626
  query, handler) {
6629
6627
  var _window, _window$matchMedia;
6630
6628
  let initial_call = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
6631
- const catchified_handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(handler, "Error in media query listener callback");
6629
+ const catchified_handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(handler, "Error in media query listener callback");
6632
6630
  if (typeof window !== "object") {
6633
6631
  // on server call the handler in case nothing is rendered if it isn't called, then do nothing
6634
6632
  catchified_handler({
@@ -6657,9 +6655,9 @@ async function $aadc6d9eeb8e8a56$export$417ef0ab13d8b984(_ref) {
6657
6655
  let resolve_success_promise;
6658
6656
  const success_promise = new Promise(r => resolve_success_promise = r);
6659
6657
  const cache = new Map();
6660
- const [template_els, _get, set_els] = (0, $2b6304d4ce419ed5$export$3d04c40e7acc1a32)();
6661
- const catchified_switch_to_surface = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($aadc6d9eeb8e8a56$var$switch_to_surface);
6662
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async () => {
6658
+ const [template_els, _get, set_els] = $2b6304d4ce419ed5$export$3d04c40e7acc1a32();
6659
+ const catchified_switch_to_surface = $5e1f45affc1d7def$export$b3bbfd758f11cfa9($aadc6d9eeb8e8a56$var$switch_to_surface);
6660
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async () => {
6663
6661
  for await (const surface of current_surface_) {
6664
6662
  const rendering_function = surface_rendering_functions_[surface];
6665
6663
  catchified_switch_to_surface(surface, rendering_function, current_surface_, cache, set_els, resolve_success_promise);
@@ -6678,9 +6676,9 @@ async function $aadc6d9eeb8e8a56$var$switch_to_surface(surface_index, rendering_
6678
6676
  const {
6679
6677
  cache_until_: cache_until_,
6680
6678
  surface_: surface_
6681
- } = await rendering_function().catch(e => ((0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "error in rendering"], "warning"), {}));
6679
+ } = await rendering_function().catch(e => ($5e1f45affc1d7def$export$f18d5b0af29128b7([e, "error in rendering"], "warning"), {}));
6682
6680
  if (!surface_ || !(surface_ !== null && surface_ !== void 0 && (_surface_$elements = surface_.elements) !== null && _surface_$elements !== void 0 && _surface_$elements.length)) {
6683
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Got no/empty surface, not switching");
6681
+ $241f2f02cc612a49$export$de56f1198d121036("Got no/empty surface, not switching");
6684
6682
  // also tell insert_surface that we didn't get recs so it can revert, dunno if we want this
6685
6683
  resolve_success_promise(false);
6686
6684
  return;
@@ -6688,17 +6686,17 @@ async function $aadc6d9eeb8e8a56$var$switch_to_surface(surface_index, rendering_
6688
6686
  rendered_surface = surface_;
6689
6687
  if (cache_until_ instanceof Promise) {
6690
6688
  cache.set(surface_index, surface_);
6691
- cache_until_.then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => cache.delete(surface_index)));
6689
+ cache_until_.then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => cache.delete(surface_index)));
6692
6690
  }
6693
6691
  }
6694
6692
  if (current_surface_ipns.state !== surface_index) {
6695
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Surface switched to", current_surface_ipns.state, "while rendering surface", surface_index, "discarding results");
6693
+ $241f2f02cc612a49$export$de56f1198d121036("Surface switched to", current_surface_ipns.state, "while rendering surface", surface_index, "discarding results");
6696
6694
  return;
6697
6695
  }
6698
6696
  set_els(rendered_surface.elements);
6699
6697
  if (rendered_surface.should_stay_inserted instanceof Promise)
6700
6698
  // if there is promise that says if surface succeeded or not, use that
6701
- rendered_surface.should_stay_inserted.then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(success => {
6699
+ rendered_surface.should_stay_inserted.then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(success => {
6702
6700
  resolve_success_promise(success);
6703
6701
  }));else
6704
6702
  // otherwise let's just assume it suceeded since there are elements
@@ -6706,12 +6704,12 @@ async function $aadc6d9eeb8e8a56$var$switch_to_surface(surface_index, rendering_
6706
6704
  }
6707
6705
  function $aadc6d9eeb8e8a56$export$419f84efad7d9fe(surface_per_size, cleanup_promise) {
6708
6706
  let microtask_queued = false;
6709
- const ipns = (0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
6707
+ const ipns = $7ca6fdc721083788$export$e806c6c1615a59ae();
6710
6708
  const target_indexes = new Set();
6711
- const dedupe_overlapping_queries = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
6709
+ const dedupe_overlapping_queries = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
6712
6710
  microtask_queued = false;
6713
6711
  const first_value = target_indexes[Symbol.iterator]().next().value;
6714
- if (first_value === ipns.latest_call_value) (0, $241f2f02cc612a49$export$de56f1198d121036)("surface", first_value, "is already selected");else ipns(first_value);
6712
+ if (first_value === ipns.latest_call_value) $241f2f02cc612a49$export$de56f1198d121036("surface", first_value, "is already selected");else ipns(first_value);
6715
6713
  if (target_indexes.size > 1) {
6716
6714
  const error_string = "Multiple matching media queries detected, used first one: " + JSON.stringify(surface_per_size.filter(_ref2 => {
6717
6715
  let [index] = _ref2;
@@ -6724,10 +6722,10 @@ function $aadc6d9eeb8e8a56$export$419f84efad7d9fe(surface_per_size, cleanup_prom
6724
6722
  });
6725
6723
  surface_per_size.forEach(_ref3 => {
6726
6724
  let [surface_index, min, max] = _ref3;
6727
- const media_query = (0, $df6d080cba513381$export$717f13d9ba00ca19)(min, max).split("@media ").pop();
6725
+ const media_query = $df6d080cba513381$export$717f13d9ba00ca19(min, max).split("@media ").pop();
6728
6726
  const {
6729
6727
  remove: remove
6730
- } = (0, $26dbd7db7fd1bc2c$export$515c3ea4d599b05a)(media_query, _ref4 => {
6728
+ } = $26dbd7db7fd1bc2c$export$515c3ea4d599b05a(media_query, _ref4 => {
6731
6729
  let {
6732
6730
  matches: matches
6733
6731
  } = _ref4;
@@ -6738,21 +6736,21 @@ function $aadc6d9eeb8e8a56$export$419f84efad7d9fe(surface_per_size, cleanup_prom
6738
6736
  microtask_queued = true;
6739
6737
  }
6740
6738
  });
6741
- if (cleanup_promise instanceof Promise) cleanup_promise.then(remove);else (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(remove);
6739
+ if (cleanup_promise instanceof Promise) cleanup_promise.then(remove);else $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(remove);
6742
6740
  });
6743
6741
  return ipns;
6744
6742
  }
6745
6743
  function $aadc6d9eeb8e8a56$export$be95cb0e8cfd099e() {
6746
- return new Promise(r => (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(r));
6744
+ return new Promise(r => $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(r));
6747
6745
  }
6748
6746
  function $f991aad8d6175c9b$export$3ebd86018b39d9d2(t, selector, filter) {
6749
6747
  (0, $90fa633a9564f115$export$b6ae1bc530f4c149).onexists(selector, eoe => {
6750
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Order confirmation element showed up!", eoe);
6748
+ $241f2f02cc612a49$export$de56f1198d121036("Order confirmation element showed up!", eoe);
6751
6749
  const {
6752
6750
  element: element
6753
6751
  } = eoe;
6754
6752
  const the_id = element.innerText;
6755
- $f991aad8d6175c9b$export$1ac466d53a6636ac(t, the_id, (0, $d5f7352b58e0d737$export$6399bdb2291895e0)(), filter);
6753
+ $f991aad8d6175c9b$export$1ac466d53a6636ac(t, the_id, $d5f7352b58e0d737$export$6399bdb2291895e0(), filter);
6756
6754
  });
6757
6755
  }
6758
6756
  function $f991aad8d6175c9b$export$b11248fa13a8a86c(tenant, id_extractor) {
@@ -6770,7 +6768,7 @@ function $f991aad8d6175c9b$export$b11248fa13a8a86c(tenant, id_extractor) {
6770
6768
  try {
6771
6769
  maybe_send_entries(args_list);
6772
6770
  } catch (e) {
6773
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "Extracting and sending transaction IDs from dataLayer failed"], "warning");
6771
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "Extracting and sending transaction IDs from dataLayer failed"], "warning");
6774
6772
  }
6775
6773
  return target.apply(this_arg, args_list);
6776
6774
  }
@@ -6782,17 +6780,17 @@ function $f991aad8d6175c9b$export$ff8673d5dea82bd4(tenant, id_extractor) {
6782
6780
  const order_id = id_extractor(new URL(href));
6783
6781
  if (order_id && typeof order_id === "string") $f991aad8d6175c9b$export$1ac466d53a6636ac(tenant, order_id);
6784
6782
  }
6785
- })().catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "Extracting and sending transaction IDs from URL failed"], "warning"));
6783
+ })().catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "Extracting and sending transaction IDs from URL failed"], "warning"));
6786
6784
  }
6787
6785
  function $f991aad8d6175c9b$export$1ac466d53a6636ac(t, input_id) {
6788
- let dsid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0, $d5f7352b58e0d737$export$6399bdb2291895e0)();
6786
+ let dsid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : $d5f7352b58e0d737$export$6399bdb2291895e0();
6789
6787
  let filter = arguments.length > 3 ? arguments[3] : undefined;
6790
6788
  const transaction_id = typeof filter == "function" ? filter(input_id) : input_id;
6791
6789
  if (!transaction_id) {
6792
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Not sending", transaction_id, "because it didn't pass filter");
6790
+ $241f2f02cc612a49$export$de56f1198d121036("Not sending", transaction_id, "because it didn't pass filter");
6793
6791
  return;
6794
6792
  }
6795
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Sending this order id:", transaction_id, "(before filtering it was", input_id, ")");
6793
+ $241f2f02cc612a49$export$de56f1198d121036("Sending this order id:", transaction_id, "(before filtering it was", input_id, ")");
6796
6794
  const payload = {
6797
6795
  "tenant": t.tenant,
6798
6796
  "market": t.market,
@@ -6802,37 +6800,37 @@ function $f991aad8d6175c9b$export$1ac466d53a6636ac(t, input_id) {
6802
6800
  dsid: dsid
6803
6801
  }]
6804
6802
  };
6805
- (0, $814c3bf8e175fa59$export$cc3b6ddf805f6156)((0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/v2/track", payload);
6803
+ $814c3bf8e175fa59$export$cc3b6ddf805f6156((0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/v2/track", payload);
6806
6804
  }
6807
6805
  function $ed8073ecbced6e7e$export$1ff14fec60ed5697(t, filter) {
6808
6806
  try {
6809
- (0, $799496226e956169$export$674d8cd8b6868154)();
6810
- ga((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function (tracker) {
6807
+ $799496226e956169$export$674d8cd8b6868154();
6808
+ ga($5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function (tracker) {
6811
6809
  var _window, _window$ga;
6812
6810
  let get_all_function = (_window = window) === null || _window === void 0 ? void 0 : (_window$ga = _window.ga) === null || _window$ga === void 0 ? void 0 : _window$ga.getAll; // https://sentry.io/organizations/depictai-0o/issues/3621911835/?project=5476183&referrer=slack
6813
- if (typeof get_all_function !== "function") get_all_function = await (0, $2da62df28669a48a$export$2fc1a072736ae2f6)(window, "ga", "getAll");
6811
+ if (typeof get_all_function !== "function") get_all_function = await $2da62df28669a48a$export$2fc1a072736ae2f6(window, "ga", "getAll");
6814
6812
  const all_trackers = get_all_function.call(ga);
6815
- (0, $241f2f02cc612a49$export$de56f1198d121036)("we have trackers", all_trackers);
6813
+ $241f2f02cc612a49$export$de56f1198d121036("we have trackers", all_trackers);
6816
6814
  // @ts-ignore
6817
6815
  const {
6818
6816
  P: P
6819
6817
  } = ga;
6820
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(modify_trackers_of_iterable)(all_trackers);
6818
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(modify_trackers_of_iterable)(all_trackers);
6821
6819
  if (typeof (P === null || P === void 0 ? void 0 : P.push) === "function")
6822
6820
  // this check is just so we don't fail if this doesn't exist for some reason, but it always should
6823
6821
  P.push = new Proxy(P.push, {
6824
6822
  apply(target, this_arg, args_list) {
6825
6823
  const retval = target.apply(this_arg, args_list);
6826
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(modify_trackers_of_iterable)(args_list);
6824
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(modify_trackers_of_iterable)(args_list);
6827
6825
  return retval;
6828
6826
  }
6829
6827
  });
6830
6828
  function modify_trackers_of_iterable(array) {
6831
- for (const tracker of array) (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($ed8073ecbced6e7e$var$make_tracker_send_to_depict)(tracker, t, filter);
6829
+ for (const tracker of array) $5e1f45affc1d7def$export$b3bbfd758f11cfa9($ed8073ecbced6e7e$var$make_tracker_send_to_depict)(tracker, t, filter);
6832
6830
  }
6833
6831
  }));
6834
6832
  } catch (error) {
6835
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(error, "error");
6833
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(error, "error");
6836
6834
  }
6837
6835
  }
6838
6836
  function $ed8073ecbced6e7e$var$make_tracker_send_to_depict(ga_tracker, t, filter) {
@@ -6844,22 +6842,22 @@ function $ed8073ecbced6e7e$var$make_tracker_send_to_depict(ga_tracker, t, filter
6844
6842
  originalSendHitTask(model);
6845
6843
  // console.log('Sent original hit, now sending to depict');
6846
6844
  try {
6847
- const dsid = (0, $d5f7352b58e0d737$export$6399bdb2291895e0)();
6845
+ const dsid = $d5f7352b58e0d737$export$6399bdb2291895e0();
6848
6846
  const payload = model.get("hitPayload");
6849
6847
  const sp = new URLSearchParams(payload);
6850
6848
  const id = sp.get("ti");
6851
6849
  if (id) {
6852
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Got interesting analytics request", payload, id);
6853
- (0, $f991aad8d6175c9b$export$1ac466d53a6636ac)(t, id, dsid, filter);
6850
+ $241f2f02cc612a49$export$de56f1198d121036("Got interesting analytics request", payload, id);
6851
+ $f991aad8d6175c9b$export$1ac466d53a6636ac(t, id, dsid, filter);
6854
6852
  }
6855
6853
  } catch (e) {
6856
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)(e, "error");
6854
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error");
6857
6855
  }
6858
6856
  });
6859
6857
  }
6860
6858
  async function $a9d475787bc4d10e$export$d63b08f4f29ddba5(t, unavailability_type) {
6861
6859
  const product_id = await t.get_product_id();
6862
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Notifying Depict that product id: ".concat(product_id, " is ").concat(unavailability_type));
6860
+ $241f2f02cc612a49$export$de56f1198d121036("Notifying Depict that product id: ".concat(product_id, " is ").concat(unavailability_type));
6863
6861
  const payload = {
6864
6862
  "tenant": t.tenant,
6865
6863
  "market": t.market,
@@ -6867,11 +6865,11 @@ async function $a9d475787bc4d10e$export$d63b08f4f29ddba5(t, unavailability_type)
6867
6865
  event_type: "product_unavailable",
6868
6866
  product_id: product_id,
6869
6867
  unavailability_type: unavailability_type,
6870
- user_id: (0, $d5f7352b58e0d737$export$adc61a405a4cabed)(),
6871
- dsid: (0, $d5f7352b58e0d737$export$6399bdb2291895e0)()
6868
+ user_id: $d5f7352b58e0d737$export$adc61a405a4cabed(),
6869
+ dsid: $d5f7352b58e0d737$export$6399bdb2291895e0()
6872
6870
  }]
6873
6871
  };
6874
- (0, $814c3bf8e175fa59$export$cc3b6ddf805f6156)((0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/v2/track", payload);
6872
+ $814c3bf8e175fa59$export$cc3b6ddf805f6156((0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/v2/track", payload);
6875
6873
  }
6876
6874
  function $429b4383ef3d586f$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
6877
6875
  $429b4383ef3d586f$var$_checkPrivateRedeclaration(obj, privateMap);
@@ -6890,21 +6888,21 @@ class $429b4383ef3d586f$export$74108888f38788f3 extends Set {
6890
6888
  });
6891
6889
  }
6892
6890
  addEventListener(event, callback, options) {
6893
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $429b4383ef3d586f$var$_et).addEventListener(event, callback, options);
6891
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $429b4383ef3d586f$var$_et).addEventListener(event, callback, options);
6894
6892
  }
6895
6893
  removeEventListener(event, callback) {
6896
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $429b4383ef3d586f$var$_et).removeEventListener(event, callback);
6894
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $429b4383ef3d586f$var$_et).removeEventListener(event, callback);
6897
6895
  }
6898
6896
  add(property) {
6899
6897
  Set.prototype.add.call(this, property);
6900
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $429b4383ef3d586f$var$_et).dispatchEvent(new CustomEvent("add", {
6898
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $429b4383ef3d586f$var$_et).dispatchEvent(new CustomEvent("add", {
6901
6899
  detail: property
6902
6900
  }));
6903
6901
  return this;
6904
6902
  }
6905
6903
  delete(property) {
6906
6904
  const return_value = Set.prototype.delete.call(this, property);
6907
- (0, $76EG6$babelruntimehelpersclassPrivateFieldGet)(this, $429b4383ef3d586f$var$_et).dispatchEvent(new CustomEvent("delete", {
6905
+ $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $429b4383ef3d586f$var$_et).dispatchEvent(new CustomEvent("delete", {
6908
6906
  detail: property
6909
6907
  }));
6910
6908
  return return_value;
@@ -6944,11 +6942,11 @@ const $45d268baa2df1ba1$export$9426572bd5645bc1 = (arr1, arr2) => $45d268baa2df1
6944
6942
  function $8183c177c3bdf94d$export$82539d9817116aff(e, url) {
6945
6943
  var _window, _window$next;
6946
6944
  if (e.button) {
6947
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Not single page navigating because button is not 0", e);
6945
+ $241f2f02cc612a49$export$de56f1198d121036("Not single page navigating because button is not 0", e);
6948
6946
  return;
6949
6947
  }
6950
6948
  if (e.metaKey || e.ctrlKey) {
6951
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Someone command-clicked a link, not single page navigating");
6949
+ $241f2f02cc612a49$export$de56f1198d121036("Someone command-clicked a link, not single page navigating");
6952
6950
  return;
6953
6951
  }
6954
6952
  // single page navigate
@@ -7011,7 +7009,7 @@ class $201e455525e1fa49$export$f8da66bc4f1d059e extends Response {
7011
7009
  }
7012
7010
  }
7013
7011
  function $f69445e469425bcb$export$ab0f802c05dd969b(on_request) {
7014
- (0, $201e455525e1fa49$export$85be83e1935d93c2)(async (target, this_arg, argument_list) => {
7012
+ $201e455525e1fa49$export$85be83e1935d93c2(async (target, this_arg, argument_list) => {
7015
7013
  const response_promise = target.apply(this_arg, argument_list);
7016
7014
  try {
7017
7015
  const input = argument_list[0];
@@ -7048,7 +7046,7 @@ function $f69445e469425bcb$export$ab0f802c05dd969b(on_request) {
7048
7046
  break;
7049
7047
  }
7050
7048
  } catch (e) {
7051
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "error in shopify interception logic"], "warning");
7049
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "error in shopify interception logic"], "warning");
7052
7050
  }
7053
7051
  return await response_promise;
7054
7052
  }, true);
@@ -7081,8 +7079,8 @@ async function $f69445e469425bcb$export$337197b94b3bd680() {
7081
7079
  const json = await response.json();
7082
7080
  if (Array.isArray(json.items)) return json.items;else if (typeof json.status === "number") return json;else throw new Error("Shopify ".concat(url, " did not respond as expected"));
7083
7081
  }
7084
- const $f69445e469425bcb$export$783ef16647773b3d = /*@__PURE__*/(0, $9c44a7238815fa47$export$535946eb77c946dd)( /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async () => {
7085
- const meta = await (0, $2da62df28669a48a$export$2fc1a072736ae2f6)(window, "ShopifyAnalytics", "meta");
7082
+ const $f69445e469425bcb$export$783ef16647773b3d = /*@__PURE__*/$9c44a7238815fa47$export$535946eb77c946dd( /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async () => {
7083
+ const meta = await $2da62df28669a48a$export$2fc1a072736ae2f6(window, "ShopifyAnalytics", "meta");
7086
7084
  return meta === null || meta === void 0 ? void 0 : meta.product;
7087
7085
  }));
7088
7086
  async function $073645eedb3f65a8$export$b404e20f3c4a490e(_ref) {
@@ -7097,7 +7095,7 @@ async function $073645eedb3f65a8$export$b404e20f3c4a490e(_ref) {
7097
7095
  Sentry: Sentry
7098
7096
  } = t,
7099
7097
  start = new Date().getTime(),
7100
- optimize = await (0, $2da62df28669a48a$export$2fc1a072736ae2f6)(window, "google_optimize"),
7098
+ optimize = await $2da62df28669a48a$export$2fc1a072736ae2f6(window, "google_optimize"),
7101
7099
  end = new Date().getTime();
7102
7100
  dlog("Waited for google_optimize for", end - start, "ms");
7103
7101
  // if (!optimize.get) {
@@ -7124,20 +7122,20 @@ async function $073645eedb3f65a8$export$b404e20f3c4a490e(_ref) {
7124
7122
  function $c1590f86e0eca625$export$2c2f50b30b7b2576(el, attribute_name, async_iterable) {
7125
7123
  let quit_after_navigation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
7126
7124
  (async () => {
7127
- const [exit, exitable_iterable] = (0, $fee212025270d5b9$export$927664b47117acb0)(async_iterable);
7128
- if (quit_after_navigation) (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(exit);
7125
+ const [exit, exitable_iterable] = $fee212025270d5b9$export$927664b47117acb0(async_iterable);
7126
+ if (quit_after_navigation) $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(exit);
7129
7127
  for await (const new_value of exitable_iterable) el.setAttribute(attribute_name, new_value);
7130
- })().catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "Failed to set attribute"], "error"));
7128
+ })().catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "Failed to set attribute"], "error"));
7131
7129
  return el;
7132
7130
  }
7133
7131
  function $332ef338faf216a4$export$7c081fdbc65b6a2a(async_iterable) {
7134
7132
  let quit_after_navigation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
7135
- const [template_els, _get, set] = (0, $2b6304d4ce419ed5$export$3d04c40e7acc1a32)();
7133
+ const [template_els, _get, set] = $2b6304d4ce419ed5$export$3d04c40e7acc1a32();
7136
7134
  (async () => {
7137
- const [exit, exitable_iterable] = (0, $fee212025270d5b9$export$927664b47117acb0)(async_iterable);
7138
- if (quit_after_navigation) (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(exit);
7135
+ const [exit, exitable_iterable] = $fee212025270d5b9$export$927664b47117acb0(async_iterable);
7136
+ if (quit_after_navigation) $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(exit);
7139
7137
  for await (const els of exitable_iterable) set(els);
7140
- })().catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "Failed to convert AsyncIterable to elements"], "error"));
7138
+ })().catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "Failed to convert AsyncIterable to elements"], "error"));
7141
7139
  return template_els;
7142
7140
  }
7143
7141
  let $2c22b027931240e6$var$context_counter = 0; // last context that was created (unless 0), to make sure we don't have two of the same
@@ -7198,10 +7196,10 @@ function $2c22b027931240e6$export$f811d2ce0aa6019b(_ref) {
7198
7196
  (_disconnect_reinserti = disconnect_reinsertion_observers) === null || _disconnect_reinserti === void 0 || _disconnect_reinserti(); // Not sure if necessary? But if we re-insert in the same container and don't disconnect preserve_elements observers before it might lead to two observers acting on one element
7199
7197
  disconnect_reinsertion_observers = $2c22b027931240e6$var$actual_insertion(element, verb, surfaces, try_forever, href, context, remove_after_navigation, preserve_elements);
7200
7198
  });
7201
- if (!try_forever) (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(disconnect_observer);
7199
+ if (!try_forever) $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(disconnect_observer);
7202
7200
  } else {
7203
7201
  if (!context && verb !== "replaceChildren") throw new Error("insert_surface, provided an element, may not be called without a context." + (process.env.DEBUG === "true" ? " Please wrap the function calling it into prevent_infinite_loop(). If you have already done that, make sure that there's no `await` before the calling of insert_surface" : ""));
7204
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)($2c22b027931240e6$var$actual_insertion)(target, verb, surfaces, try_forever, href, context, remove_after_navigation, preserve_elements);
7202
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9($2c22b027931240e6$var$actual_insertion)(target, verb, surfaces, try_forever, href, context, remove_after_navigation, preserve_elements);
7205
7203
  }
7206
7204
  return surfaces.map(_ref3 => {
7207
7205
  let {
@@ -7210,14 +7208,14 @@ function $2c22b027931240e6$export$f811d2ce0aa6019b(_ref) {
7210
7208
  return promise_;
7211
7209
  });
7212
7210
  }
7213
- const $2c22b027931240e6$export$e3f70ef7e3d00501 = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async (target, should_stay_inserted) => {
7211
+ const $2c22b027931240e6$export$e3f70ef7e3d00501 = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(async (target, should_stay_inserted) => {
7214
7212
  const per_el_fn = (el, disconnect_observer) => {
7215
7213
  const comment_node = document.createComment("Old recs were here // Depict");
7216
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Replacing", el, "with", comment_node);
7214
+ $241f2f02cc612a49$export$de56f1198d121036("Replacing", el, "with", comment_node);
7217
7215
  el.replaceWith(comment_node);
7218
7216
  should_stay_inserted.then(keep => {
7219
7217
  if (!keep) {
7220
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Reverting", comment_node, "to", el);
7218
+ $241f2f02cc612a49$export$de56f1198d121036("Reverting", comment_node, "to", el);
7221
7219
  comment_node.replaceWith(el);
7222
7220
  disconnect_observer === null || disconnect_observer === void 0 || disconnect_observer();
7223
7221
  }
@@ -7231,7 +7229,7 @@ const $2c22b027931240e6$export$e3f70ef7e3d00501 = /*@__PURE__*/(0, $5e1f45affc1d
7231
7229
  } = _ref4;
7232
7230
  return per_el_fn(element, disconnector);
7233
7231
  });
7234
- (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(disconnect_observer);
7232
+ $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(disconnect_observer);
7235
7233
  } else {
7236
7234
  let did_already_fail = false;
7237
7235
  should_stay_inserted.then(should_stay_inserted => {
@@ -7239,7 +7237,7 @@ const $2c22b027931240e6$export$e3f70ef7e3d00501 = /*@__PURE__*/(0, $5e1f45affc1d
7239
7237
  });
7240
7238
  await 0;
7241
7239
  if (did_already_fail) {
7242
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Not removing", target, should_stay_inserted, "is already resolved to false");
7240
+ $241f2f02cc612a49$export$de56f1198d121036("Not removing", target, should_stay_inserted, "is already resolved to false");
7243
7241
  return;
7244
7242
  }
7245
7243
  if (Array.isArray(target)) for (let i = 0; i < target.length; i++) per_el_fn(target[i]);else per_el_fn(target);
@@ -7254,7 +7252,7 @@ function $2c22b027931240e6$var$actual_insertion(target, verb, surfaces, try_fore
7254
7252
  const disconnect_all_observers = () => disconnectors.forEach(disconnector => disconnector());
7255
7253
  const check_if_revert_whole = () => {
7256
7254
  if (failed_surfaces !== surfaces.length) return; // we didn't fail
7257
- (0, $241f2f02cc612a49$export$de56f1198d121036)("All surfaces", surfaces, "failed. ".concat(was_replaced ? "Reverting to old els" : "removing els"));
7255
+ $241f2f02cc612a49$export$de56f1198d121036("All surfaces", surfaces, "failed. ".concat(was_replaced ? "Reverting to old els" : "removing els"));
7258
7256
  $2c22b027931240e6$var$failed_contexts.add(context);
7259
7257
  disconnect_all_observers();
7260
7258
  const flat_tnodes = template_nodes.flat();
@@ -7268,29 +7266,29 @@ function $2c22b027931240e6$var$actual_insertion(target, verb, surfaces, try_fore
7268
7266
  surface_: surface_,
7269
7267
  resolve_promise_: resolve_promise_
7270
7268
  } = _ref5;
7271
- const [template_els, _get, set] = (0, $2b6304d4ce419ed5$export$3d04c40e7acc1a32)();
7269
+ const [template_els, _get, set] = $2b6304d4ce419ed5$export$3d04c40e7acc1a32();
7272
7270
  (async _surface => {
7273
7271
  let surface;
7274
7272
  try {
7275
7273
  surface = await surface_;
7276
7274
  } catch (e) {
7277
- (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "A surface promise rejected" + (process.env.DEBUG === "true" ? " please catch this earlier" : "")], "warning");
7275
+ $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "A surface promise rejected" + (process.env.DEBUG === "true" ? " please catch this earlier" : "")], "warning");
7278
7276
  }
7279
7277
  if (!try_forever && location.href !== starting_href)
7280
7278
  // navigated away
7281
7279
  return;
7282
7280
  // @ts-ignore
7283
7281
  if ((_surface = surface) !== null && _surface !== void 0 && _surface.elements) {
7284
- (0, $241f2f02cc612a49$export$de56f1198d121036)("insert_surface:", target, "." + verb, surface);
7282
+ $241f2f02cc612a49$export$de56f1198d121036("insert_surface:", target, "." + verb, surface);
7285
7283
  set(surface.elements);
7286
- if (surface.should_stay_inserted instanceof Promise) surface.should_stay_inserted.then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(keep => {
7284
+ if (surface.should_stay_inserted instanceof Promise) surface.should_stay_inserted.then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(keep => {
7287
7285
  if (keep)
7288
7286
  // @ts-ignore
7289
7287
  resolve_promise_({
7290
7288
  surface: surface,
7291
7289
  succeeded: true
7292
7290
  });else {
7293
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Removing surface", surface, "because it failed");
7291
+ $241f2f02cc612a49$export$de56f1198d121036("Removing surface", surface, "because it failed");
7294
7292
  set("");
7295
7293
  // @ts-ignore
7296
7294
  resolve_promise_({
@@ -7313,7 +7311,7 @@ function $2c22b027931240e6$var$actual_insertion(target, verb, surfaces, try_fore
7313
7311
  failed_surfaces++;
7314
7312
  check_if_revert_whole();
7315
7313
  }
7316
- })().catch(e => (0, $5e1f45affc1d7def$export$f18d5b0af29128b7)([e, "insert_surface failed due to technical errors"], "error"));
7314
+ })().catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7([e, "insert_surface failed due to technical errors"], "error"));
7317
7315
  return template_els;
7318
7316
  });
7319
7317
  target[verb](...template_nodes.flat());
@@ -7322,10 +7320,10 @@ function $2c22b027931240e6$var$actual_insertion(target, verb, surfaces, try_fore
7322
7320
  const already_observing_nodes = new WeakSet();
7323
7321
  $2c22b027931240e6$var$deal_w_removal_of_node_array(node_array, disconnectors.push.bind(disconnectors), already_observing_nodes);
7324
7322
  }
7325
- if (remove_after_navigation) (0, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b)(() => {
7323
+ if (remove_after_navigation) $ad1dbddac6af350d$export$1cd22bab0d2c3b0b(() => {
7326
7324
  disconnect_all_observers();
7327
7325
  template_nodes.flat().forEach(tn => tn.remove());
7328
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Removed", template_nodes, "due to navigation");
7326
+ $241f2f02cc612a49$export$de56f1198d121036("Removed", template_nodes, "due to navigation");
7329
7327
  });
7330
7328
  return disconnect_all_observers;
7331
7329
  }
@@ -7349,7 +7347,7 @@ function $2c22b027931240e6$var$deal_w_removal_of_node_array(node_array, push_dis
7349
7347
  target: target
7350
7348
  } = mutation_record;
7351
7349
  if (previous_parent !== target) {
7352
- (0, $241f2f02cc612a49$export$de56f1198d121036)(element, "was removed", eoe, "but because a parent got removed we're keeping it that way");
7350
+ $241f2f02cc612a49$export$de56f1198d121036(element, "was removed", eoe, "but because a parent got removed we're keeping it that way");
7353
7351
  return;
7354
7352
  }
7355
7353
  if (node_array.every(node => target.contains(node))) {
@@ -7357,18 +7355,18 @@ function $2c22b027931240e6$var$deal_w_removal_of_node_array(node_array, push_dis
7357
7355
  // node_array is a reference to an updating array
7358
7356
  // it has always updated once this callback is ran, so we can just check if the new value are currently in the DOM
7359
7357
  // here we don't check the order but I don't think it's going to be an issue?
7360
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Ignoring removal of", element, eoe, "because it seems to come from reactive_template change");
7358
+ $241f2f02cc612a49$export$de56f1198d121036("Ignoring removal of", element, eoe, "because it seems to come from reactive_template change");
7361
7359
  // protect future nodes
7362
7360
  $2c22b027931240e6$var$deal_w_removal_of_node_array(node_array, push_disconnector, already_observing_nodes);
7363
7361
  } else if (!target.contains(element)) {
7364
7362
  // it's possible that the element already was re-inserted at the same time (this callback is executed a tick late), we obv. don't want to attempt to reinsert then
7365
7363
  if (removals_in_last_s > 10) {
7366
- (0, $241f2f02cc612a49$export$de56f1198d121036)("More than 10 reinsertions in last second, ignoring");
7364
+ $241f2f02cc612a49$export$de56f1198d121036("More than 10 reinsertions in last second, ignoring");
7367
7365
  return;
7368
7366
  }
7369
7367
  removals_in_last_s++;
7370
7368
  setTimeout(() => removals_in_last_s--, 1000);
7371
- (0, $241f2f02cc612a49$export$de56f1198d121036)(element, "was removed from DOM,", eoe, "reinserting");
7369
+ $241f2f02cc612a49$export$de56f1198d121036(element, "was removed from DOM,", eoe, "reinserting");
7372
7370
  const {
7373
7371
  documentElement: documentElement
7374
7372
  } = document;
@@ -7381,7 +7379,7 @@ function $2c22b027931240e6$var$deal_w_removal_of_node_array(node_array, push_dis
7381
7379
  push_disconnector(disconnect_observer);
7382
7380
  }
7383
7381
  }
7384
- const $07ddf7dfff112d01$export$3b75288f46cadd96 = () => new Array((0, $1cd1e96fe31c935d$export$bb0a9c36cf454ea0)(3, 8)).fill("⬜").join("");
7382
+ const $07ddf7dfff112d01$export$3b75288f46cadd96 = () => new Array($1cd1e96fe31c935d$export$bb0a9c36cf454ea0(3, 8)).fill("⬜").join("");
7385
7383
  const $07ddf7dfff112d01$var$make_sel = (image_url, attribute) => "[".concat(attribute, "=").concat(JSON.stringify(image_url), "]");
7386
7384
  const $07ddf7dfff112d01$export$a4eccf92efefa04d = function (image_width, image_height) {
7387
7385
  let color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "#f6f7f8";
@@ -7423,9 +7421,9 @@ async function $07ddf7dfff112d01$export$2dd69958012e3e49() {
7423
7421
  var _classList, _classList$add, _classList2;
7424
7422
  if (elem instanceof HTMLElement) elem.style.cursor = "default";
7425
7423
  elem === null || elem === void 0 || (_classList = elem.classList) === null || _classList === void 0 || (_classList$add = (_classList2 = _classList).add) === null || _classList$add === void 0 || _classList$add.call(_classList2, "placeholder");
7426
- elem.addEventListener("click", e => ((0, $241f2f02cc612a49$export$de56f1198d121036)("Supressing placeholder click", e), e.preventDefault(), e.stopPropagation(), false), true);
7424
+ elem.addEventListener("click", e => ($241f2f02cc612a49$export$de56f1198d121036("Supressing placeholder click", e), e.preventDefault(), e.stopPropagation(), false), true);
7427
7425
  }
7428
- for (const img of (0, $652300c6621d5500$export$5e63aea0cac01fa0)(elems, ["src", "srcset", "data-src", "data-srcset"].map(attribute => $07ddf7dfff112d01$var$make_sel(image_url, attribute)).join(", "))) img.classList.add("nolazy"); // this gets ignored by all lazyloaders
7426
+ for (const img of $652300c6621d5500$export$5e63aea0cac01fa0(elems, ["src", "srcset", "data-src", "data-srcset"].map(attribute => $07ddf7dfff112d01$var$make_sel(image_url, attribute)).join(", "))) img.classList.add("nolazy"); // this gets ignored by all lazyloaders
7429
7427
  return elems;
7430
7428
  }]
7431
7429
  };
@@ -7434,9 +7432,9 @@ async function $07ddf7dfff112d01$export$2dd69958012e3e49() {
7434
7432
  let set_should_stay_inserted;
7435
7433
  const should_stay_inserted = new Promise(r => set_should_stay_inserted = r);
7436
7434
  if (placeholder_rendering !== null && placeholder_rendering !== void 0 && placeholder_rendering.elements) {
7437
- const [template_els, _get_state, set_state] = (0, $2b6304d4ce419ed5$export$3d04c40e7acc1a32)(placeholder_rendering.elements);
7435
+ const [template_els, _get_state, set_state] = $2b6304d4ce419ed5$export$3d04c40e7acc1a32(placeholder_rendering.elements);
7438
7436
  actual_rendering.then(async rendering_result => {
7439
- if (typeof post_rendering == "function") await (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(post_rendering)(rendering_result);
7437
+ if (typeof post_rendering == "function") await $5e1f45affc1d7def$export$b3bbfd758f11cfa9(post_rendering)(rendering_result);
7440
7438
  const {
7441
7439
  elements: elements
7442
7440
  } = rendering_result || {};
@@ -7456,7 +7454,7 @@ async function $07ddf7dfff112d01$export$2dd69958012e3e49() {
7456
7454
  should_stay_inserted: should_stay_inserted
7457
7455
  };
7458
7456
  } else {
7459
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Placeholder rendering went wrong, this is bad! Ditching placeholders");
7457
+ $241f2f02cc612a49$export$de56f1198d121036("Placeholder rendering went wrong, this is bad! Ditching placeholders");
7460
7458
  return (await actual_rendering) || {};
7461
7459
  }
7462
7460
  };
@@ -7470,7 +7468,7 @@ function $243da8b4990520aa$export$8ec5c86406f333ff() {
7470
7468
  try {
7471
7469
  return target.apply(this_arg, arguments_list);
7472
7470
  } catch (e) {
7473
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Swallowing error of removal of node that we have removed or created", e, el);
7471
+ $241f2f02cc612a49$export$de56f1198d121036("Swallowing error of removal of node that we have removed or created", e, el);
7474
7472
  }
7475
7473
  return el;
7476
7474
  }
@@ -7507,7 +7505,7 @@ function $9c0a16930ae6750f$export$38e89c688f9d553a() {
7507
7505
  const w = window;
7508
7506
  let da_promise = w[$9c0a16930ae6750f$var$promise_as_string];
7509
7507
  let iframe_promise;
7510
- if ((typeof da_promise.allSettled !== "function" || typeof ((_da_promise = da_promise) === null || _da_promise === void 0 ? void 0 : (_da_promise$prototype = _da_promise.prototype) === null || _da_promise$prototype === void 0 ? void 0 : _da_promise$prototype.finally) !== "function") && !(0, $735ac9fa5091ab33$export$4fbbab6c30e664d5)(da_promise) && (iframe_promise = $9c0a16930ae6750f$export$e647444ed9403635())) da_promise = iframe_promise;
7508
+ if ((typeof da_promise.allSettled !== "function" || typeof ((_da_promise = da_promise) === null || _da_promise === void 0 ? void 0 : (_da_promise$prototype = _da_promise.prototype) === null || _da_promise$prototype === void 0 ? void 0 : _da_promise$prototype.finally) !== "function") && !$735ac9fa5091ab33$export$4fbbab6c30e664d5(da_promise) && (iframe_promise = $9c0a16930ae6750f$export$e647444ed9403635())) da_promise = iframe_promise;
7511
7509
  if (da_promise) {
7512
7510
  var _Object$getOwnPropert;
7513
7511
  if (((_Object$getOwnPropert = Object.getOwnPropertyDescriptor(w, $9c0a16930ae6750f$var$promise_as_string)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.configurable) !== false) Object.defineProperty(w, $9c0a16930ae6750f$var$promise_as_string, {
@@ -7519,10 +7517,10 @@ function $9c0a16930ae6750f$export$38e89c688f9d553a() {
7519
7517
  set(value) {
7520
7518
  return value;
7521
7519
  }
7522
- });else (0, $241f2f02cc612a49$export$de56f1198d121036)("Unable to redefine " + $9c0a16930ae6750f$var$promise_as_string + ", it's already nonconfigurable");
7520
+ });else $241f2f02cc612a49$export$de56f1198d121036("Unable to redefine " + $9c0a16930ae6750f$var$promise_as_string + ", it's already nonconfigurable");
7523
7521
  }
7524
7522
  } catch (e) {
7525
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(e);
7523
+ $b000f5ef6ce456d9$export$8048b892d651b310(e);
7526
7524
  }
7527
7525
  }
7528
7526
  function $9c0a16930ae6750f$export$e647444ed9403635() {
@@ -7533,7 +7531,7 @@ function $9c0a16930ae6750f$export$e647444ed9403635() {
7533
7531
  return iframe === null || iframe === void 0 ? void 0 : (_iframe$contentWindow = iframe.contentWindow) === null || _iframe$contentWindow === void 0 ? void 0 : _iframe$contentWindow[$9c0a16930ae6750f$var$promise_as_string];
7534
7532
  }
7535
7533
  function $24528b2f119d82fb$export$33d1643df63073a8(fetch_handler) {
7536
- fetch_handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(fetch_handler);
7534
+ fetch_handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(fetch_handler);
7537
7535
  const {
7538
7536
  prototype: prototype
7539
7537
  } = XMLHttpRequest;
@@ -7542,17 +7540,17 @@ function $24528b2f119d82fb$export$33d1643df63073a8(fetch_handler) {
7542
7540
  if (Array.isArray(arg_array)) {
7543
7541
  const request = this_arg;
7544
7542
  const [method, url] = arg_array;
7545
- (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(fetch_handler)(request, method, url, arg_array);
7543
+ $5e1f45affc1d7def$export$b3bbfd758f11cfa9(fetch_handler)(request, method, url, arg_array);
7546
7544
  }
7547
7545
  return target.apply(this_arg, arg_array);
7548
7546
  }
7549
7547
  });
7550
7548
  }
7551
7549
  function $24528b2f119d82fb$export$f314addd5f976083(handler) {
7552
- $24528b2f119d82fb$export$33d1643df63073a8((req, method, url) => req.addEventListener("load", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(event => handler(req, method, url, event))));
7550
+ $24528b2f119d82fb$export$33d1643df63073a8((req, method, url) => req.addEventListener("load", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(event => handler(req, method, url, event))));
7553
7551
  }
7554
7552
  async function $24528b2f119d82fb$export$c74578d2cd47a84a(send_callback) {
7555
- const catchified_callback = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(send_callback);
7553
+ const catchified_callback = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(send_callback);
7556
7554
  const requests = new WeakMap();
7557
7555
  $24528b2f119d82fb$export$33d1643df63073a8((request, _method, _url, arg_array) => {
7558
7556
  requests.set(request, arg_array);
@@ -7565,14 +7563,14 @@ async function $24528b2f119d82fb$export$c74578d2cd47a84a(send_callback) {
7565
7563
  try {
7566
7564
  if (requests.has(this_request)) catchified_callback(this_request, requests.get(this_request), arg_list);
7567
7565
  } catch (e) {
7568
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(e);
7566
+ $b000f5ef6ce456d9$export$8048b892d651b310(e);
7569
7567
  }
7570
7568
  return target.apply(this_request, arg_list);
7571
7569
  }
7572
7570
  });
7573
7571
  }
7574
7572
  async function $24528b2f119d82fb$export$8e16c51fd2b6507(read_callback) {
7575
- const catchified_read_callback = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(read_callback);
7573
+ const catchified_read_callback = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(read_callback);
7576
7574
  const open_send_arg_map = new WeakMap();
7577
7575
  const {
7578
7576
  prototype: prototype
@@ -7593,7 +7591,7 @@ async function $24528b2f119d82fb$export$8e16c51fd2b6507(read_callback) {
7593
7591
  return catchified_read_callback(this_arg, open_args, send_args, default_value, n) || default_value;
7594
7592
  } catch (e) {
7595
7593
  // in case the weakmaps fail for some reason
7596
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(e);
7594
+ $b000f5ef6ce456d9$export$8048b892d651b310(e);
7597
7595
  return default_value;
7598
7596
  }
7599
7597
  }
@@ -7614,11 +7612,11 @@ async function $f82333cd2ffc1582$export$83ec13b10b391f13() {
7614
7612
  const orig_url_with_trailing_slash = o_u_u_o.protocol + "//" + o_u_u_o.host + "/";
7615
7613
  if (orig_url) {
7616
7614
  // change links
7617
- (0, $652300c6621d5500$export$d4bd03f19260ef1c)(orig_url_with_trailing_slash, false, location.hostname);
7615
+ $652300c6621d5500$export$d4bd03f19260ef1c(orig_url_with_trailing_slash, false, location.hostname);
7618
7616
  $f82333cd2ffc1582$export$2a1cc61cffa1f36f(orig_url_with_trailing_slash);
7619
7617
  $f82333cd2ffc1582$export$2a38b176ce969e2c(orig_url_with_trailing_slash);
7620
7618
  $f82333cd2ffc1582$export$f14a775632a826c4(orig_url_with_trailing_slash);
7621
- } else (0, $241f2f02cc612a49$export$de56f1198d121036)(new Error("No ORIG_URL env var was set, demo fixes not gonna work."));
7619
+ } else $241f2f02cc612a49$export$de56f1198d121036(new Error("No ORIG_URL env var was set, demo fixes not gonna work."));
7622
7620
  }
7623
7621
  function $f82333cd2ffc1582$export$f14a775632a826c4(orig_url_with_trailing_slash) {
7624
7622
  // rewrite history.pushState and history.replaceState so that it works if someone calls it with absolute URLs
@@ -7635,21 +7633,21 @@ function $f82333cd2ffc1582$export$f14a775632a826c4(orig_url_with_trailing_slash)
7635
7633
  }
7636
7634
  function $f82333cd2ffc1582$export$2a1cc61cffa1f36f(orig_url_with_trailing_slash) {
7637
7635
  // rewrite fetch requests just in case, maybe we should also rewrite responses
7638
- (0, $201e455525e1fa49$export$85be83e1935d93c2)(async (target, this_arg, arg_list) => {
7636
+ $201e455525e1fa49$export$85be83e1935d93c2(async (target, this_arg, arg_list) => {
7639
7637
  try {
7640
7638
  const [url] = arg_list;
7641
7639
  if (typeof url == "string") arg_list[0] = url.replaceAll(orig_url_with_trailing_slash, "/");else if (url instanceof Request) {
7642
7640
  if (url.url.includes(orig_url_with_trailing_slash)) arg_list[0] = new Request(url.url.replaceAll(orig_url_with_trailing_slash, "/"), url);
7643
7641
  }
7644
7642
  } catch (e) {
7645
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(e);
7643
+ $b000f5ef6ce456d9$export$8048b892d651b310(e);
7646
7644
  }
7647
7645
  return target.apply(this_arg, arg_list);
7648
7646
  });
7649
7647
  }
7650
7648
  function $f82333cd2ffc1582$export$2a38b176ce969e2c(orig_url_with_trailing_slash) {
7651
7649
  // rewrite xhr requests just in case
7652
- (0, $24528b2f119d82fb$export$33d1643df63073a8)((request, method, url, arg_array) => {
7650
+ $24528b2f119d82fb$export$33d1643df63073a8((request, method, url, arg_array) => {
7653
7651
  if (url instanceof URL) url.href = url.href.replaceAll(orig_url_with_trailing_slash, "/");else if (typeof url == "string") arg_array[1] = url.replaceAll(orig_url_with_trailing_slash, "");
7654
7652
  });
7655
7653
  }
@@ -7726,11 +7724,11 @@ function $95b71532fa7f905c$export$a422d714c8cb1a5d(allowed_markets, url) {
7726
7724
  return "se";
7727
7725
  }
7728
7726
  function $cb3a51d87cbe5eff$export$3427ec8268623f1(listener) {
7729
- if (!(0, $5f31622ffb78bc10$export$b87d7e0da8b5cbe3)()) {
7730
- (0, $241f2f02cc612a49$export$de56f1198d121036)("Not hooking localStorage as it would freeze it due to lacking Proxy support");
7727
+ if (!$5f31622ffb78bc10$export$b87d7e0da8b5cbe3()) {
7728
+ $241f2f02cc612a49$export$de56f1198d121036("Not hooking localStorage as it would freeze it due to lacking Proxy support");
7731
7729
  return;
7732
7730
  }
7733
- const caught_listener = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(listener);
7731
+ const caught_listener = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(listener);
7734
7732
  let changed_instance;
7735
7733
  const update_changed_instance = () => changed_instance = Storage.prototype.setItem !== localStorage.setItem;
7736
7734
  update_changed_instance();
@@ -7798,7 +7796,7 @@ function $cb3a51d87cbe5eff$export$3427ec8268623f1(listener) {
7798
7796
  changed_this_args.add(fn_with_changed_this_arg);
7799
7797
  }
7800
7798
  } catch (e) {
7801
- if (key !== "length") (0, $241f2f02cc612a49$export$de56f1198d121036)(e);
7799
+ if (key !== "length") $241f2f02cc612a49$export$de56f1198d121036(e);
7802
7800
  }
7803
7801
  }
7804
7802
 
@@ -7813,17 +7811,17 @@ function $26145caeb41f1f7b$export$cd1adfb8059b5fcd(promise, ms) {
7813
7811
  const $8a812fa4638e2832$var$get_voyado_id = () => {
7814
7812
  var _exec;
7815
7813
  const va = (_exec = /\b_vaI=([^;]+)/.exec(document.cookie)) === null || _exec === void 0 ? void 0 : _exec[1];
7816
- return va || (0, $d5f7352b58e0d737$export$6399bdb2291895e0)();
7814
+ return va || $d5f7352b58e0d737$export$6399bdb2291895e0();
7817
7815
  };
7818
- const $8a812fa4638e2832$export$a739d9a07da7f9ce = /*@__PURE__*/(0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
7819
- (0, $d5f7352b58e0d737$export$336e7ad40bae0652)($8a812fa4638e2832$var$get_voyado_id);
7816
+ const $8a812fa4638e2832$export$a739d9a07da7f9ce = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
7817
+ $d5f7352b58e0d737$export$336e7ad40bae0652($8a812fa4638e2832$var$get_voyado_id);
7820
7818
  });
7821
7819
  function $c40fc6dc2c22b3c4$export$4a3043e508dd72f0(_ref) {
7822
7820
  let {
7823
7821
  children: children,
7824
7822
  ...attributes
7825
7823
  } = _ref;
7826
- const button = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("button", {
7824
+ const button = $0f650018c3cbc373$export$34b9dba7ce09269b("button", {
7827
7825
  ...attributes,
7828
7826
  type: "button",
7829
7827
  children: children
@@ -7841,30 +7839,30 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7841
7839
  let close_;
7842
7840
  const open_promise = new Promise(r => close_ = r);
7843
7841
  const body = await (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element("body");
7844
- const backdrop = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
7842
+ const backdrop = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
7845
7843
  class: "slidein-backdrop",
7846
7844
  onClick: close_
7847
7845
  });
7848
- const [exit_title_iterator, exitable_title_iterator] = (0, $fee212025270d5b9$export$927664b47117acb0)(title_);
7846
+ const [exit_title_iterator, exitable_title_iterator] = $fee212025270d5b9$export$927664b47117acb0(title_);
7849
7847
  const closing_handlers = [exit_title_iterator];
7850
- const slidein = (0, $0f650018c3cbc373$export$25062201e9e25d76)("div", {
7848
+ const slidein = $0f650018c3cbc373$export$25062201e9e25d76("div", {
7851
7849
  class: "slidein",
7852
- children: [(0, $0f650018c3cbc373$export$25062201e9e25d76)("div", {
7850
+ children: [$0f650018c3cbc373$export$25062201e9e25d76("div", {
7853
7851
  class: "header",
7854
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("span", {
7852
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("span", {
7855
7853
  class: "title",
7856
- children: (0, $332ef338faf216a4$export$7c081fdbc65b6a2a)(exitable_title_iterator, false)
7857
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("button", {
7854
+ children: $332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_title_iterator, false)
7855
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("button", {
7858
7856
  class: "close",
7859
7857
  onClick: close_,
7860
7858
  children: CloseIcon()
7861
7859
  })]
7862
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
7860
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
7863
7861
  class: "body",
7864
7862
  children: children
7865
7863
  })]
7866
7864
  });
7867
- const elements_in_container = (0, $0f650018c3cbc373$export$25062201e9e25d76)("div", {
7865
+ const elements_in_container = $0f650018c3cbc373$export$25062201e9e25d76("div", {
7868
7866
  class: "depict",
7869
7867
  children: [backdrop, slidein]
7870
7868
  });
@@ -7882,7 +7880,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7882
7880
  easing: "ease-in",
7883
7881
  duration: 220
7884
7882
  });
7885
- const handler = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(_ref2 => {
7883
+ const handler = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(_ref2 => {
7886
7884
  let {
7887
7885
  key: key
7888
7886
  } = _ref2;
@@ -7891,7 +7889,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7891
7889
  close_();
7892
7890
  });
7893
7891
  window.addEventListener("keydown", handler);
7894
- open_promise.then((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
7892
+ open_promise.then($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
7895
7893
  window.removeEventListener("keydown", handler);
7896
7894
  backdrop.animate({
7897
7895
  opacity: [1, 0]
@@ -7906,7 +7904,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7906
7904
  }, {
7907
7905
  easing: "ease-out",
7908
7906
  duration: 220
7909
- }).addEventListener("finish", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
7907
+ }).addEventListener("finish", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
7910
7908
  elements_in_container.remove();
7911
7909
  closing_handlers.forEach(handler => handler());
7912
7910
  }));
@@ -7923,16 +7921,16 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
7923
7921
  out_of_stock_text_: out_of_stock_text_,
7924
7922
  CloseIcon: CloseIcon
7925
7923
  } = _ref;
7926
- const [exit_oos_iterator, exitable_oos_iterator] = (0, $fee212025270d5b9$export$927664b47117acb0)(out_of_stock_text_);
7924
+ const [exit_oos_iterator, exitable_oos_iterator] = $fee212025270d5b9$export$927664b47117acb0(out_of_stock_text_);
7927
7925
  // eslint-disable-line no-async-promise-executor
7928
- return new Promise((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async size_selected => {
7926
+ return new Promise($5e1f45affc1d7def$export$b3bbfd758f11cfa9(async size_selected => {
7929
7927
  const {
7930
7928
  close_: close_,
7931
7929
  on_close_: on_close_
7932
- } = await (0, $a59cde169150d10b$export$8a0e4d6f6abf7e90)({
7930
+ } = await $a59cde169150d10b$export$8a0e4d6f6abf7e90({
7933
7931
  CloseIcon: CloseIcon,
7934
7932
  title_: title_,
7935
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
7933
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("div", {
7936
7934
  class: "option-list",
7937
7935
  children: items_.map(_ref2 => {
7938
7936
  let {
@@ -7940,19 +7938,19 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
7940
7938
  is_available_: is_available_,
7941
7939
  id_: id_
7942
7940
  } = _ref2;
7943
- const button = (0, $0f650018c3cbc373$export$25062201e9e25d76)("button", {
7941
+ const button = $0f650018c3cbc373$export$25062201e9e25d76("button", {
7944
7942
  type: "button",
7945
7943
  class: "option" + (is_available_ ? " available" : ""),
7946
7944
  onClick: () => {
7947
7945
  size_selected(id_);
7948
7946
  close_();
7949
7947
  },
7950
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("span", {
7948
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("span", {
7951
7949
  class: "size",
7952
7950
  children: size_name_
7953
- }), !is_available_ && (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("span", {
7951
+ }), !is_available_ && $0f650018c3cbc373$export$34b9dba7ce09269b("span", {
7954
7952
  class: "sold-out",
7955
- children: (0, $332ef338faf216a4$export$7c081fdbc65b6a2a)(exitable_oos_iterator)
7953
+ children: $332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator)
7956
7954
  })]
7957
7955
  });
7958
7956
  if (!is_available_) button.disabled = true;
@@ -7977,12 +7975,12 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
7977
7975
  } = _ref;
7978
7976
  if (!$adc0bb548fdb574f$var$inserted) {
7979
7977
  // Insert styling on first import
7980
- (0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($4ef779af61421f56$exports)));
7978
+ $1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($4ef779af61421f56$exports)));
7981
7979
  $adc0bb548fdb574f$var$inserted = true;
7982
7980
  }
7983
7981
  return (
7984
7982
  // @ts-ignore
7985
- (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
7983
+ $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
7986
7984
  class: "depict-placeholder".concat(extra_classes ? " " + extra_classes : ""),
7987
7985
  style: style ? style : "width:".concat(width, ";height:").concat(height, ";"),
7988
7986
  ...attributes
@@ -7994,36 +7992,36 @@ const $adc0bb548fdb574f$export$d613f5b6d0a331a8 = _ref2 => {
7994
7992
  aspect_ratio: aspect_ratio,
7995
7993
  ...attributes
7996
7994
  } = _ref2;
7997
- return (0, $0f650018c3cbc373$export$34b9dba7ce09269b)($adc0bb548fdb574f$export$84712d0562a614b8, {
7995
+ return $0f650018c3cbc373$export$34b9dba7ce09269b($adc0bb548fdb574f$export$84712d0562a614b8, {
7998
7996
  style: "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%"),
7999
7997
  ...attributes
8000
7998
  });
8001
7999
  };
8002
8000
  const $2e6ca552eb0e0b2b$export$97f31f44c68c1d5 = function (title) {
8003
8001
  let surface_classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
8004
- return (0, $a285401a927e4306$export$eb0b9ed911409b57)(e => e.classList.add(...surface_classes), (0, $0f650018c3cbc373$export$25062201e9e25d76)("div", {
8002
+ return $a285401a927e4306$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), $0f650018c3cbc373$export$25062201e9e25d76("div", {
8005
8003
  class: "depict recommendation_container",
8006
- children: [title && typeof title === "string" ? (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("h4", {
8004
+ children: [title && typeof title === "string" ? $0f650018c3cbc373$export$34b9dba7ce09269b("h4", {
8007
8005
  class: "recs_header",
8008
8006
  children: title
8009
- }) : title, (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8007
+ }) : title, $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8010
8008
  class: "grid"
8011
8009
  })]
8012
8010
  }));
8013
8011
  };
8014
- const $ad0b2591dac160be$export$32a55d57d151bc5a = () => (0, $0f650018c3cbc373$export$25062201e9e25d76)("svg", {
8012
+ const $ad0b2591dac160be$export$32a55d57d151bc5a = () => $0f650018c3cbc373$export$25062201e9e25d76("svg", {
8015
8013
  viewBox: "0 0 320 512",
8016
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("desc", {
8014
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("desc", {
8017
8015
  children: "Right arrow"
8018
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("path", {
8016
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("path", {
8019
8017
  d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
8020
8018
  })]
8021
8019
  });
8022
- const $ad0b2591dac160be$export$ddd70fdae1b350e6 = () => (0, $0f650018c3cbc373$export$25062201e9e25d76)("svg", {
8020
+ const $ad0b2591dac160be$export$ddd70fdae1b350e6 = () => $0f650018c3cbc373$export$25062201e9e25d76("svg", {
8023
8021
  viewBox: "0 0 320 512",
8024
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("desc", {
8022
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("desc", {
8025
8023
  children: "Left arrow"
8026
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("path", {
8024
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("path", {
8027
8025
  d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
8028
8026
  })]
8029
8027
  });
@@ -8038,21 +8036,21 @@ function $9a74c17d1ef21fdf$var$ColorCircle(_ref) {
8038
8036
  onClick: onClick,
8039
8037
  onHoverUpdate: onHoverUpdate
8040
8038
  } = _ref;
8041
- const button = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("button", {
8039
+ const button = $0f650018c3cbc373$export$34b9dba7ce09269b("button", {
8042
8040
  class: "color-circle-container",
8043
8041
  onClick: e => onClick(e.currentTarget, color),
8044
8042
  title: color.label || "",
8045
- children: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8043
+ children: $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8046
8044
  class: "outer-circle",
8047
8045
  style: "border-color: ".concat(color.value, ";"),
8048
- children: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8046
+ children: $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8049
8047
  class: "inner-circle",
8050
8048
  style: "background-color: ".concat(color.value, ";")
8051
8049
  })
8052
8050
  })
8053
8051
  });
8054
- button.addEventListener("mouseenter", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => onHoverUpdate(button, color, true)));
8055
- button.addEventListener("mouseleave", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => onHoverUpdate(button, color, false)));
8052
+ button.addEventListener("mouseenter", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, true)));
8053
+ button.addEventListener("mouseleave", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, false)));
8056
8054
  return button;
8057
8055
  }
8058
8056
  function $9a74c17d1ef21fdf$export$590326cc34f49e2d(_ref2) {
@@ -8109,7 +8107,7 @@ function $9a74c17d1ef21fdf$export$590326cc34f49e2d(_ref2) {
8109
8107
  if (selectOnHover) handleSelectOnHover(hovered, color, hovering);
8110
8108
  };
8111
8109
  // Create the color circles
8112
- const circles = colors.map(color => (0, $0f650018c3cbc373$export$34b9dba7ce09269b)($9a74c17d1ef21fdf$var$ColorCircle, {
8110
+ const circles = colors.map(color => $0f650018c3cbc373$export$34b9dba7ce09269b($9a74c17d1ef21fdf$var$ColorCircle, {
8113
8111
  color: color,
8114
8112
  onClick: handleClick,
8115
8113
  onHoverUpdate: handleHoverUpdate
@@ -8120,7 +8118,7 @@ function $9a74c17d1ef21fdf$export$590326cc34f49e2d(_ref2) {
8120
8118
  const initial_index = initialColor == undefined ? -1 : colors.findIndex(c => typeof initialColor === "string" ? c.value === initialColor : c.value === initialColor.value && c.label === initialColor.label);
8121
8119
  if (initial_index > -1) setActiveIndex(initial_index);
8122
8120
  if (onlyCircles) return circles;
8123
- return (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8121
+ return $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8124
8122
  class: "color-picker",
8125
8123
  role: "form",
8126
8124
  "aria-label": "Color picker",
@@ -8154,17 +8152,17 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
8154
8152
  children: children
8155
8153
  } = _ref;
8156
8154
  if (Array.isArray(children) && children.length === 1) children = children[0];
8157
- innerRef = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8155
+ innerRef = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8158
8156
  children: children
8159
8157
  });
8160
- outerRef = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8158
+ outerRef = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8161
8159
  style: "overflow:hidden;height:0px;visibility:hidden",
8162
8160
  "aria-hidden": "true",
8163
8161
  children: innerRef
8164
8162
  });
8165
8163
  return outerRef;
8166
8164
  };
8167
- const expand = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function () {
8165
+ const expand = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
8168
8166
  var _current_animation, _current_animation$ca;
8169
8167
  let expanding_delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : delay;
8170
8168
  let time_to_expand = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : duration;
@@ -8180,14 +8178,14 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
8180
8178
  easing: "ease-in"
8181
8179
  });
8182
8180
  current_animation = animation;
8183
- animation.addEventListener("finish", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
8181
+ animation.addEventListener("finish", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
8184
8182
  current_animation = undefined;
8185
8183
  outerRef.style.overflow = "";
8186
8184
  outerRef.style.height = "auto";
8187
8185
  }));
8188
8186
  return animation;
8189
8187
  });
8190
- const collapse = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(async function () {
8188
+ const collapse = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
8191
8189
  var _current_animation2, _current_animation2$c;
8192
8190
  let collapsing_delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : delay;
8193
8191
  let time_to_collapse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : duration;
@@ -8203,7 +8201,7 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
8203
8201
  easing: "ease-out"
8204
8202
  });
8205
8203
  current_animation = animation;
8206
- animation.addEventListener("finish", (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
8204
+ animation.addEventListener("finish", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
8207
8205
  current_animation = undefined;
8208
8206
  outerRef.style.height = "0";
8209
8207
  outerRef.style.visibility = "hidden";
@@ -8221,10 +8219,10 @@ $bb22ceba3718f8e9$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;
8221
8219
  const $9ef5ce4804a3b61b$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
8222
8220
  const $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
8223
8221
  function $9ef5ce4804a3b61b$export$f39a7d0667e924a(what_to_watch) {
8224
- let sizes_communicator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, $7ca6fdc721083788$export$e806c6c1615a59ae)();
8222
+ let sizes_communicator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $7ca6fdc721083788$export$e806c6c1615a59ae();
8225
8223
  let resolution_factor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
8226
8224
  let currently_live = false;
8227
- const ro = new ResizeObserver((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(records => {
8225
+ const ro = new ResizeObserver($5e1f45affc1d7def$export$b3bbfd758f11cfa9(records => {
8228
8226
  for (let j = 0; j < records.length; j++) {
8229
8227
  const {
8230
8228
  width: width
@@ -8298,9 +8296,9 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8298
8296
  const raw_src = (image_options === null || image_options === void 0 ? void 0 : image_options.src) || (image_options === null || image_options === void 0 ? void 0 : image_options["data-src"]); // get wanted src
8299
8297
  const src = new URL(raw_src, location.origin).href;
8300
8298
  if (!src) {
8301
- (0, $241f2f02cc612a49$export$de56f1198d121036)(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
8302
- (0, $b000f5ef6ce456d9$export$8048b892d651b310)(new Error("no image src provided: " + src));
8303
- return (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("img", {
8299
+ $241f2f02cc612a49$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
8300
+ $b000f5ef6ce456d9$export$8048b892d651b310(new Error("no image src provided: " + src));
8301
+ return $0f650018c3cbc373$export$34b9dba7ce09269b("img", {
8304
8302
  ...image_options
8305
8303
  }); // we don't want everything to fail if someone misused this component
8306
8304
  }
@@ -8313,7 +8311,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8313
8311
  const srcset = $9ef5ce4804a3b61b$var$make_srcset(src, format, resolutions);
8314
8312
  sources.push(
8315
8313
  // 0px important because chrome will load the biggest size otherwise until sizes attribute is set to the correct value
8316
- (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("source", {
8314
+ $0f650018c3cbc373$export$34b9dba7ce09269b("source", {
8317
8315
  sizes: "0px",
8318
8316
  type: "image/".concat(format),
8319
8317
  ...(set_dataset ? {
@@ -8328,7 +8326,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8328
8326
  }; // Prevents the image from instantly loading the original source
8329
8327
  delete opts_without_src["src"];
8330
8328
  delete opts_without_src["srcset"];
8331
- const the_image = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("img", {
8329
+ const the_image = $0f650018c3cbc373$export$34b9dba7ce09269b("img", {
8332
8330
  ...opts_without_src
8333
8331
  }); // create image
8334
8332
  sources.push(the_image); // chrome seems to be the dumbest piece of cake that has ever existed and just load the first source?????
@@ -8337,7 +8335,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8337
8335
  // start a sizes_setter for every source (including fallback image)
8338
8336
  for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $b000f5ef6ce456d9$export$8048b892d651b310));
8339
8337
  // embed all sources into a <picture> so that the browser understands they're "together"
8340
- const picture = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("picture", {
8338
+ const picture = $0f650018c3cbc373$export$34b9dba7ce09269b("picture", {
8341
8339
  children: sources
8342
8340
  });
8343
8341
  // Create src and srcset for fallback image and set it.
@@ -8380,13 +8378,13 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
8380
8378
  } = _ref;
8381
8379
  if (!$c987460cedc0d7ec$var$inserted) {
8382
8380
  // Insert styling on first import
8383
- (0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($bb22ceba3718f8e9$exports)));
8381
+ $1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($bb22ceba3718f8e9$exports)));
8384
8382
  $c987460cedc0d7ec$var$inserted = true;
8385
8383
  }
8386
8384
  const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
8387
8385
  if (init_with_placeholder)
8388
8386
  // 10000 is a magic value, that is just supposed to be bigger than the size of the actual image.
8389
- img.querySelectorAll("img").forEach(i => i.src = (0, $07ddf7dfff112d01$export$a4eccf92efefa04d)(10000 * options.aspect_ratio, 10000));
8387
+ img.querySelectorAll("img").forEach(i => i.src = $07ddf7dfff112d01$export$a4eccf92efefa04d(10000 * options.aspect_ratio, 10000));
8390
8388
  return img;
8391
8389
  };
8392
8390
  function $c987460cedc0d7ec$var$Image(_ref2) {
@@ -8400,20 +8398,20 @@ function $c987460cedc0d7ec$var$Image(_ref2) {
8400
8398
  init_with_placeholder: _,
8401
8399
  ...image_options
8402
8400
  } = _ref2;
8403
- const div = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8401
+ const div = $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8404
8402
  style: "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%")
8405
8403
  });
8406
8404
  const sourceset_component = $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, div);
8407
8405
  const IMG_tag = (_image_options$src = image_options.src) !== null && _image_options$src !== void 0 && _image_options$src.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
8408
8406
  div.append(
8409
8407
  // @ts-ignore
8410
- (0, $0f650018c3cbc373$export$34b9dba7ce09269b)(IMG_tag, {
8408
+ $0f650018c3cbc373$export$34b9dba7ce09269b(IMG_tag, {
8411
8409
  alt: alt,
8412
8410
  ...(remove_on_error ? {
8413
8411
  onerror: "this.remove()"
8414
8412
  } : {}),
8415
8413
  ...image_options,
8416
- class: (0, $a285401a927e4306$export$22a65337c1b43b1f)(["depict-img-mod ", image_options.class, $c987460cedc0d7ec$var$add_nolazy_to_placeholder(rendering_options === null || rendering_options === void 0 ? void 0 : rendering_options.type)])
8414
+ class: $a285401a927e4306$export$22a65337c1b43b1f(["depict-img-mod ", image_options.class, $c987460cedc0d7ec$var$add_nolazy_to_placeholder(rendering_options === null || rendering_options === void 0 ? void 0 : rendering_options.type)])
8417
8415
  }));
8418
8416
  return div;
8419
8417
  }
@@ -8427,24 +8425,24 @@ function $c987460cedc0d7ec$var$CompatibleImage(_ref3) {
8427
8425
  srcset_opts: srcset_opts,
8428
8426
  ...image_options
8429
8427
  } = _ref3;
8430
- const canvas = (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("canvas", {
8428
+ const canvas = $0f650018c3cbc373$export$34b9dba7ce09269b("canvas", {
8431
8429
  class: "depict-img-filler",
8432
8430
  width: 3000 * aspect_ratio,
8433
8431
  height: 3000
8434
8432
  });
8435
8433
  const sourceset_component = $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
8436
8434
  const IMG_tag = (_image_options$src2 = image_options.src) !== null && _image_options$src2 !== void 0 && _image_options$src2.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
8437
- return (0, $0f650018c3cbc373$export$25062201e9e25d76)("div", {
8435
+ return $0f650018c3cbc373$export$25062201e9e25d76("div", {
8438
8436
  style: "position:relative",
8439
- children: [(0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8437
+ children: [$0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8440
8438
  class: "depict-img-cont",
8441
- children: (0, $0f650018c3cbc373$export$34b9dba7ce09269b)(IMG_tag, {
8439
+ children: $0f650018c3cbc373$export$34b9dba7ce09269b(IMG_tag, {
8442
8440
  alt: alt,
8443
8441
  ...(remove_on_error ? {
8444
8442
  onerror: "this.remove()"
8445
8443
  } : {}),
8446
8444
  ...image_options,
8447
- class: (0, $a285401a927e4306$export$22a65337c1b43b1f)(["depict-img-comp", image_options.class, $c987460cedc0d7ec$var$add_nolazy_to_placeholder(rendering_options === null || rendering_options === void 0 ? void 0 : rendering_options.type)])
8445
+ class: $a285401a927e4306$export$22a65337c1b43b1f(["depict-img-comp", image_options.class, $c987460cedc0d7ec$var$add_nolazy_to_placeholder(rendering_options === null || rendering_options === void 0 ? void 0 : rendering_options.type)])
8448
8446
  })
8449
8447
  }), canvas]
8450
8448
  });
@@ -8461,7 +8459,7 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
8461
8459
  ...srcset_opts
8462
8460
  };
8463
8461
  cloned_opts.what_to_watch = canvas;
8464
- sourceset_component = (0, $9ef5ce4804a3b61b$export$a62825542f1bfcf5)(cloned_opts);
8462
+ sourceset_component = $9ef5ce4804a3b61b$export$a62825542f1bfcf5(cloned_opts);
8465
8463
  $c987460cedc0d7ec$var$rendering_options_to_sourceset_component.set(rendering_options, new WeakRef(sourceset_component));
8466
8464
  }
8467
8465
  }
@@ -8498,7 +8496,7 @@ function $73f0a7e385687d5d$var$register_element_for_touch_hover(el, navigation_m
8498
8496
  }
8499
8497
  function $73f0a7e385687d5d$var$start_checking_for_touch_hover() {
8500
8498
  const currently_hovering = new Map();
8501
- const handle_touch_start = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(evt => {
8499
+ const handle_touch_start = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(evt => {
8502
8500
  var _evt$changedTouches;
8503
8501
  const touch = evt === null || evt === void 0 ? void 0 : (_evt$changedTouches = evt.changedTouches) === null || _evt$changedTouches === void 0 ? void 0 : _evt$changedTouches[0];
8504
8502
  if (!touch) return; // Eytys dispatches fake touch events without changedTouches
@@ -8523,7 +8521,7 @@ function $73f0a7e385687d5d$var$start_checking_for_touch_hover() {
8523
8521
  }
8524
8522
  });
8525
8523
  let last_collision_check = +new Date();
8526
- const handle_touch_move = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(evt => {
8524
+ const handle_touch_move = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(evt => {
8527
8525
  var _evt$changedTouches2;
8528
8526
  const first_touch = evt === null || evt === void 0 ? void 0 : (_evt$changedTouches2 = evt.changedTouches) === null || _evt$changedTouches2 === void 0 ? void 0 : _evt$changedTouches2[0];
8529
8527
  if (!first_touch) return;
@@ -8540,7 +8538,7 @@ function $73f0a7e385687d5d$var$start_checking_for_touch_hover() {
8540
8538
  if (get_hover_element_from_coords(clientX, clientY) !== our_touch_data.element_) clear_hover(identifier, our_touch_data, clientX, clientY);
8541
8539
  }
8542
8540
  });
8543
- const handle_touch_cancel = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(evt => {
8541
+ const handle_touch_cancel = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(evt => {
8544
8542
  var _evt$changedTouches3;
8545
8543
  const touch = evt === null || evt === void 0 ? void 0 : (_evt$changedTouches3 = evt.changedTouches) === null || _evt$changedTouches3 === void 0 ? void 0 : _evt$changedTouches3[0];
8546
8544
  if (!touch) return;
@@ -8553,7 +8551,7 @@ function $73f0a7e385687d5d$var$start_checking_for_touch_hover() {
8553
8551
  const hover_element = elements[$73f0a7e385687d5d$var$HOVER_IMAGE_DEPTH - 1];
8554
8552
  return hover_element && $73f0a7e385687d5d$var$touch_hover_elements.has(hover_element) ? hover_element : null;
8555
8553
  };
8556
- const clear_hover = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)((id, info_about_touch, now_x, now_y) => {
8554
+ const clear_hover = $5e1f45affc1d7def$export$b3bbfd758f11cfa9((id, info_about_touch, now_x, now_y) => {
8557
8555
  const {
8558
8556
  element_: element_,
8559
8557
  start_y_: start_y_,
@@ -8602,25 +8600,25 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
8602
8600
  ...options
8603
8601
  } = _ref;
8604
8602
  if (!$73f0a7e385687d5d$var$styling_inserted) {
8605
- (0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($9dac835b40ad5f94$exports)));
8603
+ $1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9dac835b40ad5f94$exports)));
8606
8604
  $73f0a7e385687d5d$var$styling_inserted = true;
8607
8605
  }
8608
- const main_image = (0, $c987460cedc0d7ec$export$788756b42446dc2d)({
8606
+ const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
8609
8607
  ...options
8610
8608
  });
8611
- const second_image = (0, $c987460cedc0d7ec$export$788756b42446dc2d)({
8609
+ const second_image = $c987460cedc0d7ec$export$788756b42446dc2d({
8612
8610
  ...options,
8613
8611
  [(second_srcset_opts === null || second_srcset_opts === void 0 ? void 0 : second_srcset_opts.set_dataset) === false ? "src" : "data-src"]: second_src || "",
8614
8612
  [(second_srcset_opts === null || second_srcset_opts === void 0 ? void 0 : second_srcset_opts.set_dataset) === false ? "srcset" : "data-srcset"]: second_srcset || "",
8615
8613
  srcset_opts: second_srcset_opts || {}
8616
8614
  });
8617
8615
  const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
8618
- const images_container = (0, $0f650018c3cbc373$export$25062201e9e25d76)("div", {
8616
+ const images_container = $0f650018c3cbc373$export$25062201e9e25d76("div", {
8619
8617
  class: "images-container",
8620
- children: [!no_second_img && (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8618
+ children: [!no_second_img && $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8621
8619
  class: "second-image-container",
8622
8620
  children: second_image
8623
- }), (0, $0f650018c3cbc373$export$34b9dba7ce09269b)("div", {
8621
+ }), $0f650018c3cbc373$export$34b9dba7ce09269b("div", {
8624
8622
  class: "main-image-container",
8625
8623
  children: main_image
8626
8624
  })]
@@ -8771,11 +8769,11 @@ let $656899961fd22692$var$running_writers = 0;
8771
8769
  function $656899961fd22692$export$ef73ea4f975745ba(meta_data) {
8772
8770
  if ($656899961fd22692$var$running_writers >= 1) return;
8773
8771
  $656899961fd22692$var$running_writers++;
8774
- (0, $76EG6$onCleanup)(() => $656899961fd22692$var$running_writers--);
8772
+ $76EG6$onCleanup(() => $656899961fd22692$var$running_writers--);
8775
8773
  const disconnectors = [];
8776
- (0, $76EG6$createEffect)((0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9)(() => {
8774
+ $76EG6$createEffect($5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
8777
8775
  if (!meta_data()) return;
8778
- (0, $76EG6$onCleanup)(() => {
8776
+ $76EG6$onCleanup(() => {
8779
8777
  disconnectors.forEach(d => d());
8780
8778
  });
8781
8779
  for (const [type, content] of Object.entries(meta_data())) for (const opts of $656899961fd22692$var$tags[type]) {
@@ -8786,7 +8784,7 @@ function $656899961fd22692$export$ef73ea4f975745ba(meta_data) {
8786
8784
  * It's preferred not to kill any conflicting meta tags because frameworks might go apeshit.
8787
8785
  * Things seem to work when only changing the meta values though */
8788
8786
  const sync_elements_to_head = () => {
8789
- if (retries++ > $656899961fd22692$var$MAX_SYNC_RETRIES) return (0, $241f2f02cc612a49$export$de56f1198d121036)("Failed to sync meta tag to head. Hit max retries.", opts.selector, content);
8787
+ if (retries++ > $656899961fd22692$var$MAX_SYNC_RETRIES) return $241f2f02cc612a49$export$de56f1198d121036("Failed to sync meta tag to head. Hit max retries.", opts.selector, content);
8790
8788
  const existing_elements = document.head.querySelectorAll(opts.selector);
8791
8789
  const elements = existing_elements.length ? existing_elements : [opts.create()];
8792
8790
  elements.forEach(el => {
@@ -8809,5 +8807,5 @@ function $656899961fd22692$export$ef73ea4f975745ba(meta_data) {
8809
8807
  }
8810
8808
  }, "Meta tag writing crashed"));
8811
8809
  }
8812
- (0, $ea5707b8e7b350cf$export$2cefb7e61fcbae00)("utilishared", (0, $b9e07ce3c67aa344$export$83d89fbfd8236492));
8810
+ $ea5707b8e7b350cf$export$2cefb7e61fcbae00("utilishared", (0, $b9e07ce3c67aa344$export$83d89fbfd8236492));
8813
8811
  export { $5c580d87c093cc47$export$a7e53ec3b3fdd030 as base64_decode_unicode, $5c580d87c093cc47$export$a1893782a2a6be0d as base64_encode_unicode, $5f4e0abe3139380e$export$6f051469dd676a8b as make_plp_recommendations_inserted_handler, $ea5707b8e7b350cf$export$60d1d0e3cfc8b9ed as version_info, $ea5707b8e7b350cf$export$fe609f0216e4ebef as add_version_query_params, $cdf4691608b4019f$export$6e7454c733fa1fb2 as cache_args, $bcc7b73f8b96a6f0$export$8582cf3716962dc2 as check_displays, $b000f5ef6ce456d9$export$8048b892d651b310 as err, $a01cf8e3169d2af1$export$16d7c76794a38a4 as require_event_listener, $a496a9038b9c02cf$export$41de2959a8dd405d as Auto_GWVM, $ddeca43328b507f6$export$c83d8da642b5104a as GWVM_Renderer, $6a44fa3f1acf7693$export$55621c1ce3cd536b as infinite_promise_creator, $4c6e595091defcd9$export$32ccf3a614c84258 as infinite_promise_no_skip, $d3b90d5099bf2925$export$c0a4d29bc45a38c6 as infinite_renderer, $3ee6c00e6df1008f$export$9eae832ae57fbf as deprecated_insert_styling, $e64690bc3a7de2b1$export$c7187bbd1a7a9244 as placeholder, $d4f914b34cc77d0c$export$cab8bc58c64c2013 as Pro_Slider, $48b0f027b215b8ad$export$2e2bcd8739ae039 as simplified_template_tool, $0342f59060b8a196$export$f1b8b9fd75ddcab1 as insert_styling_into_slider, $b7b39b38d6e695e9$export$cd12721587f4f16d as RR_Slider, $eb252431088a7c2b$export$1a8782481a9af507 as Depict, $19946af5b386da54$export$30933c637c977eef as get_recs_with_template, $19946af5b386da54$export$c410ce1205e5118a as default_post_processor, $19946af5b386da54$export$4f39078bdc72ecd0 as default_pre_processor, $03021b39f80fac4b$export$2e2bcd8739ae039 as wpff, $7d82513db34b5d27$export$12e07a2a9f87578a as ElementObserver, $90fa633a9564f115$export$b6ae1bc530f4c149 as observer, $0f650018c3cbc373$export$34b9dba7ce09269b as jsx, $0f650018c3cbc373$export$25062201e9e25d76 as jsxs, $a285401a927e4306$export$eb0b9ed911409b57 as use_element, $a285401a927e4306$export$f63fcc839cb0f734 as use_listener, $a285401a927e4306$export$22a65337c1b43b1f as classlist, $241f2f02cc612a49$export$de56f1198d121036 as dlog, $241f2f02cc612a49$export$997143d41f6a0c9b as derror, $241f2f02cc612a49$export$c2363754d4758444 as dwarn, $241f2f02cc612a49$export$2dd75a6b038dc8cb as set_browser_prefix, $5e1f45affc1d7def$export$b3bbfd758f11cfa9 as catchify, $5e1f45affc1d7def$export$f18d5b0af29128b7 as report, $a5a2bdb4ae93374b$export$55fe61489d2c7417 as is_debug, $c755e2b0d4b18501$export$6038895ac52bd044 as chevronLeft, $c755e2b0d4b18501$export$dc84183312f0c201 as chevronRight, $0fe3923936d40f55$export$68c017fd93791405 as expandingContainer, $5f31622ffb78bc10$export$3be7054c61590ee3 as Lazyfier, $5f31622ffb78bc10$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $be288a83d9eabf2a$export$692b27c28639e5b9 as Amazing_Slider, $20fe9624210ef635$export$16501883f477737a as colorize_elements, $20fe9624210ef635$export$deca40f48c0569f8 as should_colorizeLogics, $70017d06e57dffa8$export$50ce83ace0cdd87e as default_rr, $51dfcecbe05cc4e5$export$1bc0df10745d5412 as fetch_recs, $51dfcecbe05cc4e5$export$d40679eb4cf32f09 as fetch_recs_whole_response, $378c98788ab52b9c$export$c42139a43c877ecd as clone_deep, $378c98788ab52b9c$export$e0009e7da572f99b as regex_templating, $378c98788ab52b9c$export$a9fc160c5ed83bd7 as Rec_Renderer, $df6d080cba513381$export$17c3166a7ebd4688 as n_col_styling_with_dist, $df6d080cba513381$export$c84671f46d6a1ca as Layout, $df6d080cba513381$export$483bdd1f1186de13 as layout_get_visible_recs_without_partial_rows, $df6d080cba513381$export$3dc5e2383c924ebf as layout_get_total_rec_amount_for_row, $df6d080cba513381$export$717f13d9ba00ca19 as layout_media_query_header, $297a08bac2d81fab$export$b0a773486c1c2312 as RecommendationGrid, $d89e3aaeb9270095$export$82cfdc85a4d15688 as RecommendationSlider, $943514d07f57df12$export$6830ae1fbe21e589 as default_click_tracking, $943514d07f57df12$export$f37c58ab3d3e3b75 as default_view_tracking, $943514d07f57df12$export$dd32cb565eae0a1f as ga_click, $943514d07f57df12$export$8d72437623fef90c as gtag_click_post_processor, $943514d07f57df12$export$1bffac19f9f0d6fc as gtag_view_post_processor, $943514d07f57df12$export$e9106d6e723510d2 as depict_click_tracking_post_processor, $943514d07f57df12$export$fb9afe9f540ae069 as recs_inserted_tracking, $943514d07f57df12$export$32eb5dd18e963410 as add_to_localstorage, $943514d07f57df12$export$9e1caada6901f552 as depict_page_view, $b109421811582f8c$export$8cbd8aa1c70f9a13 as slider_autoscroll_factory, $090af64928922937$export$80039a49055269fb as make_button1, $66c5b496f7887c00$export$af88b4929c2dc86 as make_button2, $d3c54fdf1bfb087a$export$1d17a045bcc711b1 as slider_dots_factory, $d3c54fdf1bfb087a$export$a09282b33e69b43f as navdot, $3ad897e1659ee6d7$export$411b0f20794697ce as slider_draggable_factory, $21afac8db3f98820$export$5129719c04a52f8c as slider_fading_factory, $0cbf24ae3e670238$export$5723caf9a8335aa6 as slider_fractional_factory, $4837ebe61ecec421$export$93223e488e7ee078 as slider_show_scroll, $ff905d87817a07f4$export$b36d2489a5a16728 as slider_snap_css, $ff905d87817a07f4$export$49b950309ab787ad as can_use_snapping_and_still_scroll, $e1af55c2112926b7$export$dac64fd35a4805a4 as slider_snapping_factory, $f340c415f2e1d03a$export$68babfc5be0de5da as Amazing_Lazy_Slider, $c7030fdb9bcc361f$export$53306504b987cbf7 as slider_wraparound_factory, $aadc6d9eeb8e8a56$export$419f84efad7d9fe as sizes_to_surface, $aadc6d9eeb8e8a56$export$417ef0ab13d8b984 as surface_mixer, $aadc6d9eeb8e8a56$export$be95cb0e8cfd099e as promise_until_next_navigation, $f2fce07b3a330e05$export$29a6094e0bd8bc5f as AIO, $f2fce07b3a330e05$export$6ebd242c09192cec as paint_red, $bd7c9f254946941d$export$2c34560c3749dc63 as bind_to_a2c_button, $bd7c9f254946941d$export$82a685f2da2fb027 as bind_tracking_to_link, $d5f7352b58e0d737$export$336e7ad40bae0652 as set_depict_id_fn, $d5f7352b58e0d737$export$8a96793bf9f87d90 as set_user_id_fn, $d5f7352b58e0d737$export$6399bdb2291895e0 as get_depict_id, $d5f7352b58e0d737$export$adc61a405a4cabed as get_user_id, $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb as depict_click, $d5f7352b58e0d737$export$82badda1f9923310 as depict_prefilled, $d5f7352b58e0d737$export$9028351cb994757e as depict_add_to_cart, $d5f7352b58e0d737$export$93ae15b1ae509334 as set_session_id_fn, $d5f7352b58e0d737$export$61e7e1f11e96692f as get_session_id, $d5f7352b58e0d737$export$622991c71a1f52b3 as get_cookie, $d5f7352b58e0d737$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $814c3bf8e175fa59$export$72036d950e1fae95 as filter_depict_payload, $814c3bf8e175fa59$export$28cacbd9b4306ffc as send_depict, $814c3bf8e175fa59$export$cc3b6ddf805f6156 as foolproof_send_beacon, $814c3bf8e175fa59$export$608478473a3304a0 as send_depict_unfiltered, $814c3bf8e175fa59$export$aa26019042811d4f as send_websocket, $799496226e956169$export$674d8cd8b6868154 as create_ga_queue, $799496226e956169$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $ed8073ecbced6e7e$export$1ff14fec60ed5697 as ga_to_transaction_api, $3674b9afc9a63520$export$f75172d2e289cd02 as send_ga, $3674b9afc9a63520$export$ac7296527cb52311 as setup_ga, $3674b9afc9a63520$export$d031e55ccd4c52dc as setup_gtag, $3674b9afc9a63520$export$f522672c9379e339 as gtag_click, $3674b9afc9a63520$export$bf205937e5e012cb as ga_purchase_click, $3674b9afc9a63520$export$127751e82111fcf as ga_rec_click, $3674b9afc9a63520$export$7babcd5d4056b2ca as gtag_view, $3674b9afc9a63520$export$f3354ec2ce95ebd9 as load_gtag, $d6c3e2ba045accda$export$4205dc6835bc0d9f as send_impression_event, $e89a1d249db21af0$export$37125ccc5dd98050 as impression_track_element, $c633189b7b69d048$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $d6c3e2ba045accda$export$c543ee4cdb0d0964 as set_impression_threshold, $d6c3e2ba045accda$export$135da44d0ba958bc as impression_threshold, $d6c3e2ba045accda$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $df87ac5a30f7baac$export$58c56fe2313fdbe3 as add_new_tab_listener, $df87ac5a30f7baac$export$836f70a28c317905 as broadcast_product_id, $df87ac5a30f7baac$export$8f66c4c7fb96eda2 as contextmenu_callback, $d4217f56717a3207$export$7e4427e80d5fc619 as optanon_get_cookie_ipns, $d4217f56717a3207$export$f0f6c846d96fdbec as init_optanon_tracking, $d4217f56717a3207$export$1dd9ce50e201eff1 as optanon_get_consent, $d4217f56717a3207$export$7a6d436e0782c6ed as optanon_wait_for_consent, $f991aad8d6175c9b$export$1ac466d53a6636ac as send_transaction_id_to_depict, $f991aad8d6175c9b$export$b11248fa13a8a86c as datalayer_transaction_id_extractor, $f991aad8d6175c9b$export$3ebd86018b39d9d2 as orderpage_transaction_id_extractor, $f991aad8d6175c9b$export$ff8673d5dea82bd4 as url_transaction_id_extractor, $a9d475787bc4d10e$export$d63b08f4f29ddba5 as send_product_unavailable_to_depict, $0897f35c3b3fbbc4$export$eee4c4d924348b05 as send_page_view_if_needed, $0897f35c3b3fbbc4$export$f7cb1bd47199ec38 as send_page_view_on_navigation, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f as DepictAPIWS, $429b4383ef3d586f$export$74108888f38788f3 as ListenableSet, $9c44a7238815fa47$export$535946eb77c946dd as deparallelize, $9c44a7238815fa47$export$f241be8e610f5c77 as deparallelize_no_drop, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129 as buildThresholdList, $85906d121f53bacd$export$d9fdc6ce2907f95b as chaotic_closest, $652300c6621d5500$export$cfef5d5c9ac09253 as standard_price_format, $652300c6621d5500$export$9590700a594aef08 as ensure_object_path, $652300c6621d5500$export$925772df9b4d16e5 as ensure_parameter_in_url, $652300c6621d5500$export$44951404cb8d0583 as html2elems, $652300c6621d5500$export$d3e2a0560cbf4787 as html2elem, $652300c6621d5500$export$5e63aea0cac01fa0 as querySelectorAllElements, $652300c6621d5500$export$785f04709990c4ec as querySelectorUpwards, $652300c6621d5500$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $652300c6621d5500$export$d4bd03f19260ef1c as relativify, $45d268baa2df1ba1$export$6b75200e58bc97d0 as deduplicate, $45d268baa2df1ba1$export$9426572bd5645bc1 as dedup_products, $8183c177c3bdf94d$export$82539d9817116aff as navigate_with_next_router, $f69445e469425bcb$export$774bc87373c4fc6c as add_item, $f69445e469425bcb$export$337197b94b3bd680 as get_items_in_cart, $f69445e469425bcb$export$783ef16647773b3d as get_shopify_analytics_meta_product, $f69445e469425bcb$export$ab0f802c05dd969b as intercept, $201e455525e1fa49$export$85be83e1935d93c2 as fetch_replacer, $201e455525e1fa49$export$f8da66bc4f1d059e as FakeResponse, $c95f8181bad32e8d$export$bcd70d5ed1cf6313 as fetch_retry, $073645eedb3f65a8$export$b404e20f3c4a490e as get_optimize_variant, $ad1dbddac6af350d$export$20e9533e68ee72e7 as stateless_href_change_ipns, $ad1dbddac6af350d$export$a9d39e43ae273d26 as href_change_ipns, $ad1dbddac6af350d$export$baccefee4a395d8f as history_replacer, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b as on_next_navigation, $ad1dbddac6af350d$export$7500cdfd37aafd43 as instant_exec_on_suspect_history_change, $7ca6fdc721083788$export$e806c6c1615a59ae as async_iterable_ipns, $7ca6fdc721083788$export$10c3e52ef388b81b as make_ipns_stateful, $7ca6fdc721083788$export$90740b5bc9c2b3b7 as make_ipns_stateless, $449d6683cecfa078$export$3e42f5078e3abfc0 as make_simple_async_iterable, $449d6683cecfa078$export$e2c811ae0eb35313 as RawObservableInformation, $c1590f86e0eca625$export$2c2f50b30b7b2576 as iterable_to_attribute, $332ef338faf216a4$export$7c081fdbc65b6a2a as iterable_to_elems, $fee212025270d5b9$export$927664b47117acb0 as make_asyncIterable_exiter, $07beada135e5f5e8$export$f8913c8a18f7ca21 as zip_async_iterables, $2c22b027931240e6$export$f811d2ce0aa6019b as insert_surfaces, $2c22b027931240e6$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $2c22b027931240e6$export$e3f70ef7e3d00501 as revertable_remove, $1013f2e568f87406$export$59ba1eb2c083f0cd as insert_styling, $1013f2e568f87406$export$692b606677218a16 as depict_init, $1013f2e568f87406$export$328e81c44cddf3c0 as depict_init_with_market_logic, $1013f2e568f87406$export$a4f97b27a0592e6c as normal_get_product_id, $1013f2e568f87406$export$a96c18473f2af463 as track_a2c, $26dbd7db7fd1bc2c$export$515c3ea4d599b05a as javascript_media_query, $914c6f35222c820d$export$33f937d741e49339 as patched_querySelectorAll, $07ddf7dfff112d01$export$a4eccf92efefa04d as placeholder_svg, $07ddf7dfff112d01$export$2dd69958012e3e49 as make_placeholder_rr, $07ddf7dfff112d01$export$3b75288f46cadd96 as random_text_placeholder, $6c8c963618d41bb2$export$947a20746936143d as Promise_Any, $3a96de5a459d34f9$export$c50e1901e8ed0615 as queueMacroTask, $1cd1e96fe31c935d$export$bb0a9c36cf454ea0 as rand, $6cb4d83127e468ea$export$656831b7e9c341c3 as random_string, $6cb4d83127e468ea$export$a6db784f019668ba as make_random_classname, $2b6304d4ce419ed5$export$3d04c40e7acc1a32 as reactive_template, $243da8b4990520aa$export$8ec5c86406f333ff as removeChild_error_swallowing_factory, $9c0a16930ae6750f$export$38e89c688f9d553a as replace_promise_with_native_if_exists_and_enforce, $9c0a16930ae6750f$export$e647444ed9403635 as get_iframe_promise, $f82333cd2ffc1582$export$2a1cc61cffa1f36f as rp_relativify_fetch, $f82333cd2ffc1582$export$f14a775632a826c4 as rp_relativify_history, $f82333cd2ffc1582$export$2a38b176ce969e2c as rp_relativify_xhr, $f82333cd2ffc1582$export$83ec13b10b391f13 as default_rp_fixes, $d9aec442b12a1134$export$39d526a1194b6499 as serialize_object, $b2c9f99c083a1182$export$12b4c6cbc6b8b4e4 as sort_obj, $95b71532fa7f905c$export$a422d714c8cb1a5d as standard_get_market, $cb3a51d87cbe5eff$export$3427ec8268623f1 as listenToLocalStorage, $095a7d035ba7d7a7$export$8d42ce4827f43582 as Tenant, $26145caeb41f1f7b$export$cd1adfb8059b5fcd as timeout_promise, $2da62df28669a48a$export$79f910a98828378d as variable_setter_to_ipns, $2da62df28669a48a$export$d5062f468a0454f3 as find_descriptor, $2da62df28669a48a$export$2fc1a072736ae2f6 as is_available_in, $8a812fa4638e2832$export$a739d9a07da7f9ce as use_voyado_id, $57642e3bf93ac1e7$export$5c069c93d2b7493f as wait, $24528b2f119d82fb$export$f314addd5f976083 as xhr_load, $24528b2f119d82fb$export$8e16c51fd2b6507 as xhr_read_interceptor, $24528b2f119d82fb$export$c74578d2cd47a84a as xhr_send_interceptor, $24528b2f119d82fb$export$33d1643df63073a8 as xhr_replace, $c40fc6dc2c22b3c4$export$4a3043e508dd72f0 as DefaultViewMoreButton, $a59cde169150d10b$export$8a0e4d6f6abf7e90 as GeneralSideSlidein, $24f3fd73864991c0$export$c068ad5361be7646 as GeneralSizeSelector, $adc0bb548fdb574f$export$84712d0562a614b8 as Placeholder, $adc0bb548fdb574f$export$d613f5b6d0a331a8 as ContainedPlaceholderImage, $2e6ca552eb0e0b2b$export$97f31f44c68c1d5 as RecommendationContainer, $ad0b2591dac160be$export$ddd70fdae1b350e6 as LeftChevron, $ad0b2591dac160be$export$32a55d57d151bc5a as RightChevron, $9a74c17d1ef21fdf$export$590326cc34f49e2d as createColorPicker, $0f55c2bc0a7b363b$export$237455ad7e59d4e5 as useExpandingContainer, $73f0a7e385687d5d$export$2369f6fc1c911576 as ContainedHoverImage, $c987460cedc0d7ec$export$788756b42446dc2d as ContainedImage, $9ef5ce4804a3b61b$export$f39a7d0667e924a as make_sizes_setter, $9ef5ce4804a3b61b$export$a62825542f1bfcf5 as make_sourceset_component, $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 as is_safari, $9ef5ce4804a3b61b$export$f7c915448031deac as make_url_with_query_params, $9ef5ce4804a3b61b$export$3d13beba9b52c947 as resize_base_url, $9e4bee2e3b4b5753$export$362abebb4b313340 as base_url, $17bb552dedcd526c$export$af2e17a20c2ea3c5 as Sentry, $c07f1f2ffdcaec61$export$9dc8f3a0aa3efc85 as camelCasifyObject, $c07f1f2ffdcaec61$export$b481488de1caa85 as snakeCasifyObject, $40a5a98adc907fe0$export$499ef00a6a3417f8 as rgb_to_hsl, $40a5a98adc907fe0$export$e4fd3b61e79357a7 as hsl_to_rgb, $40a5a98adc907fe0$export$98c2b3491e76c1f as relative_luminance_from_rgb, $40a5a98adc907fe0$export$486b165479b9284f as hsb_to_rgb, $40a5a98adc907fe0$export$ca305c142c6fc3cf as hex_to_rgb, $b9e07ce3c67aa344$export$83d89fbfd8236492 as version, $ea5707b8e7b350cf$export$2cefb7e61fcbae00 as add_to_version_info, $656899961fd22692$export$ef73ea4f975745ba as edit_current_page_meta_tags, $be5f485da4e3f813$export$fce59460a1699957 as cookiebot_get_consent, $be5f485da4e3f813$export$56c2e8be65fb14ae as cookiebot_wait_for_consent, $be5f485da4e3f813$export$8827362e5e938d26 as cookiebot_get_cookie_ipns, $be5f485da4e3f813$export$abec7fd9f0b9cc22 as init_cookiebot_tracking };